@@ -1629,7 +1629,7 @@ public record ListResourcesResult( // @formatter:off
16291629 @ JsonProperty ("resources" ) List <Resource > resources ,
16301630 @ JsonProperty ("nextCursor" ) String nextCursor ,
16311631 @ JsonProperty ("_meta" ) Map <String , Object > meta ,
1632- @ JsonProperty ("ttlMs" ) Integer ttlMs ,
1632+ @ JsonProperty ("ttlMs" ) Long ttlMs ,
16331633 @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) implements Result { // @formatter:on
16341634
16351635 public ListResourcesResult {
@@ -1639,7 +1639,7 @@ public record ListResourcesResult( // @formatter:off
16391639 @ JsonCreator
16401640 static ListResourcesResult fromJson (@ JsonProperty ("resources" ) List <Resource > resources ,
16411641 @ JsonProperty ("nextCursor" ) String nextCursor , @ JsonProperty ("_meta" ) Map <String , Object > meta ,
1642- @ JsonProperty ("ttlMs" ) Integer ttlMs , @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) {
1642+ @ JsonProperty ("ttlMs" ) Long ttlMs , @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) {
16431643 if (resources == null ) {
16441644 logger .warn (
16451645 "ListResourcesResult: missing required field 'resources' during deserialization, using default []" );
@@ -1670,7 +1670,7 @@ public static class Builder {
16701670
16711671 private Map <String , Object > meta ;
16721672
1673- private Integer ttlMs ;
1673+ private Long ttlMs ;
16741674
16751675 private CacheScope cacheScope ;
16761676
@@ -1689,7 +1689,7 @@ public Builder meta(Map<String, Object> meta) {
16891689 return this ;
16901690 }
16911691
1692- public Builder ttlMs (Integer ttlMs ) {
1692+ public Builder ttlMs (Long ttlMs ) {
16931693 this .ttlMs = ttlMs ;
16941694 return this ;
16951695 }
@@ -1723,7 +1723,7 @@ public record ListResourceTemplatesResult( // @formatter:off
17231723 @ JsonProperty ("resourceTemplates" ) List <ResourceTemplate > resourceTemplates ,
17241724 @ JsonProperty ("nextCursor" ) String nextCursor ,
17251725 @ JsonProperty ("_meta" ) Map <String , Object > meta ,
1726- @ JsonProperty ("ttlMs" ) Integer ttlMs ,
1726+ @ JsonProperty ("ttlMs" ) Long ttlMs ,
17271727 @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) implements Result { // @formatter:on
17281728
17291729 public ListResourceTemplatesResult {
@@ -1734,7 +1734,7 @@ public record ListResourceTemplatesResult( // @formatter:off
17341734 static ListResourceTemplatesResult fromJson (
17351735 @ JsonProperty ("resourceTemplates" ) List <ResourceTemplate > resourceTemplates ,
17361736 @ JsonProperty ("nextCursor" ) String nextCursor , @ JsonProperty ("_meta" ) Map <String , Object > meta ,
1737- @ JsonProperty ("ttlMs" ) Integer ttlMs , @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) {
1737+ @ JsonProperty ("ttlMs" ) Long ttlMs , @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) {
17381738 if (resourceTemplates == null ) {
17391739 logger .warn (
17401740 "ListResourceTemplatesResult: missing required field 'resourceTemplates' during deserialization, using default []" );
@@ -1766,7 +1766,7 @@ public static class Builder {
17661766
17671767 private Map <String , Object > meta ;
17681768
1769- private Integer ttlMs ;
1769+ private Long ttlMs ;
17701770
17711771 private CacheScope cacheScope ;
17721772
@@ -1785,7 +1785,7 @@ public Builder meta(Map<String, Object> meta) {
17851785 return this ;
17861786 }
17871787
1788- public Builder ttlMs (Integer ttlMs ) {
1788+ public Builder ttlMs (Long ttlMs ) {
17891789 this .ttlMs = ttlMs ;
17901790 return this ;
17911791 }
@@ -1876,7 +1876,7 @@ public ReadResourceRequest build() {
18761876 public record ReadResourceResult ( // @formatter:off
18771877 @ JsonProperty ("contents" ) List <ResourceContents > contents ,
18781878 @ JsonProperty ("_meta" ) Map <String , Object > meta ,
1879- @ JsonProperty ("ttlMs" ) Integer ttlMs ,
1879+ @ JsonProperty ("ttlMs" ) Long ttlMs ,
18801880 @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) implements Result { // @formatter:on
18811881
18821882 public ReadResourceResult {
@@ -1885,7 +1885,7 @@ public record ReadResourceResult( // @formatter:off
18851885
18861886 @ JsonCreator
18871887 static ReadResourceResult fromJson (@ JsonProperty ("contents" ) List <ResourceContents > contents ,
1888- @ JsonProperty ("_meta" ) Map <String , Object > meta , @ JsonProperty ("ttlMs" ) Integer ttlMs ,
1888+ @ JsonProperty ("_meta" ) Map <String , Object > meta , @ JsonProperty ("ttlMs" ) Long ttlMs ,
18891889 @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) {
18901890 if (contents == null ) {
18911891 logger .warn (
@@ -1915,7 +1915,7 @@ public static class Builder {
19151915
19161916 private Map <String , Object > meta ;
19171917
1918- private Integer ttlMs ;
1918+ private Long ttlMs ;
19191919
19201920 private CacheScope cacheScope ;
19211921
@@ -1929,7 +1929,7 @@ public Builder meta(Map<String, Object> meta) {
19291929 return this ;
19301930 }
19311931
1932- public Builder ttlMs (Integer ttlMs ) {
1932+ public Builder ttlMs (Long ttlMs ) {
19331933 this .ttlMs = ttlMs ;
19341934 return this ;
19351935 }
@@ -2512,7 +2512,7 @@ public record ListPromptsResult( // @formatter:off
25122512 @ JsonProperty ("prompts" ) List <Prompt > prompts ,
25132513 @ JsonProperty ("nextCursor" ) String nextCursor ,
25142514 @ JsonProperty ("_meta" ) Map <String , Object > meta ,
2515- @ JsonProperty ("ttlMs" ) Integer ttlMs ,
2515+ @ JsonProperty ("ttlMs" ) Long ttlMs ,
25162516 @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) implements Result { // @formatter:on
25172517
25182518 public ListPromptsResult {
@@ -2522,7 +2522,7 @@ public record ListPromptsResult( // @formatter:off
25222522 @ JsonCreator
25232523 static ListPromptsResult fromJson (@ JsonProperty ("prompts" ) List <Prompt > prompts ,
25242524 @ JsonProperty ("nextCursor" ) String nextCursor , @ JsonProperty ("_meta" ) Map <String , Object > meta ,
2525- @ JsonProperty ("ttlMs" ) Integer ttlMs , @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) {
2525+ @ JsonProperty ("ttlMs" ) Long ttlMs , @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) {
25262526 if (prompts == null ) {
25272527 logger .warn (
25282528 "ListPromptsResult: missing required field 'prompts' during deserialization, using default []" );
@@ -2553,7 +2553,7 @@ public static class Builder {
25532553
25542554 private Map <String , Object > meta ;
25552555
2556- private Integer ttlMs ;
2556+ private Long ttlMs ;
25572557
25582558 private CacheScope cacheScope ;
25592559
@@ -2572,7 +2572,7 @@ public Builder meta(Map<String, Object> meta) {
25722572 return this ;
25732573 }
25742574
2575- public Builder ttlMs (Integer ttlMs ) {
2575+ public Builder ttlMs (Long ttlMs ) {
25762576 this .ttlMs = ttlMs ;
25772577 return this ;
25782578 }
@@ -2746,7 +2746,7 @@ public record ListToolsResult( // @formatter:off
27462746 @ JsonProperty ("tools" ) List <Tool > tools ,
27472747 @ JsonProperty ("nextCursor" ) String nextCursor ,
27482748 @ JsonProperty ("_meta" ) Map <String , Object > meta ,
2749- @ JsonProperty ("ttlMs" ) Integer ttlMs ,
2749+ @ JsonProperty ("ttlMs" ) Long ttlMs ,
27502750 @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) implements Result { // @formatter:on
27512751
27522752 public ListToolsResult {
@@ -2756,7 +2756,7 @@ public record ListToolsResult( // @formatter:off
27562756 @ JsonCreator
27572757 static ListToolsResult fromJson (@ JsonProperty ("tools" ) List <Tool > tools ,
27582758 @ JsonProperty ("nextCursor" ) String nextCursor , @ JsonProperty ("_meta" ) Map <String , Object > meta ,
2759- @ JsonProperty ("ttlMs" ) Integer ttlMs , @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) {
2759+ @ JsonProperty ("ttlMs" ) Long ttlMs , @ JsonProperty ("cacheScope" ) CacheScope cacheScope ) {
27602760 if (tools == null ) {
27612761 logger .warn ("ListToolsResult: missing required field 'tools' during deserialization, using default []" );
27622762 tools = List .of ();
@@ -2786,7 +2786,7 @@ public static class Builder {
27862786
27872787 private Map <String , Object > meta ;
27882788
2789- private Integer ttlMs ;
2789+ private Long ttlMs ;
27902790
27912791 private CacheScope cacheScope ;
27922792
@@ -2805,7 +2805,7 @@ public Builder meta(Map<String, Object> meta) {
28052805 return this ;
28062806 }
28072807
2808- public Builder ttlMs (Integer ttlMs ) {
2808+ public Builder ttlMs (Long ttlMs ) {
28092809 this .ttlMs = ttlMs ;
28102810 return this ;
28112811 }
0 commit comments