Skip to content

Commit 296f14c

Browse files
sarinrgithub-actions[bot]
authored andcommitted
feat: update generated Swift files from latest OpenAPI spec
1 parent 57be463 commit 296f14c

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

Scripts/openapi.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.0.0",
33
"info": {
44
"title": "NEAR Protocol JSON RPC API",
5-
"version": "1.2.1"
5+
"version": "1.2.2"
66
},
77
"paths": {
88
"/EXPERIMENTAL_changes": {
@@ -10575,6 +10575,19 @@
1057510575
},
1057610576
"type": "array"
1057710577
},
10578+
"refund_to": {
10579+
"anyOf": [
10580+
{
10581+
"$ref": "#/components/schemas/AccountId"
10582+
},
10583+
{
10584+
"enum": [
10585+
null
10586+
],
10587+
"nullable": true
10588+
}
10589+
]
10590+
},
1057810591
"signer_id": {
1057910592
"$ref": "#/components/schemas/AccountId"
1058010593
},
@@ -11317,6 +11330,12 @@
1131711330
"minItems": 2,
1131811331
"type": "array"
1131911332
},
11333+
"chunks_cache_height_horizon": {
11334+
"description": "Height horizon for the chunk cache. A chunk is removed from the cache\nif its height + chunks_cache_height_horizon < largest_seen_height.\nThe default value is DEFAULT_CHUNKS_CACHE_HEIGHT_HORIZON.",
11335+
"format": "uint64",
11336+
"minimum": 0,
11337+
"type": "integer"
11338+
},
1132011339
"client_background_migration_threads": {
1132111340
"description": "Number of threads to execute background migration work in client.",
1132211341
"format": "uint",
@@ -16170,7 +16189,7 @@
1617016189
"$ref": "#/components/schemas/NearToken"
1617116190
}
1617216191
],
16173-
"description": "Amount of yN per byte required to have on the account. See\n<https://nomicon.io/Economics/Economic#state-stake> for details."
16192+
"description": "Amount of yN per byte required to have on the account. See\n<https://nomicon.io/Economics/Economics.html#state-stake> for details."
1617416193
},
1617516194
"transaction_costs": {
1617616195
"allOf": [

Sources/NearJsonRpcTypes/Types.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8730,6 +8730,7 @@ public struct ReceiptEnumViewOneOfActionInline: Codable, Sendable {
87308730
public let inputDataIds: [CryptoHash]
87318731
public let isPromiseYield: Bool?
87328732
public let outputDataReceivers: [DataReceiverView]
8733+
public let refundTo: AccountId?
87338734
public let signerId: AccountId
87348735
public let signerPublicKey: PublicKey
87358736

@@ -8739,6 +8740,7 @@ public struct ReceiptEnumViewOneOfActionInline: Codable, Sendable {
87398740
inputDataIds: [CryptoHash],
87408741
isPromiseYield: Bool?,
87418742
outputDataReceivers: [DataReceiverView],
8743+
refundTo: AccountId?,
87428744
signerId: AccountId,
87438745
signerPublicKey: PublicKey,
87448746
) {
@@ -8747,6 +8749,7 @@ public struct ReceiptEnumViewOneOfActionInline: Codable, Sendable {
87478749
self.inputDataIds = inputDataIds
87488750
self.isPromiseYield = isPromiseYield
87498751
self.outputDataReceivers = outputDataReceivers
8752+
self.refundTo = refundTo
87508753
self.signerId = signerId
87518754
self.signerPublicKey = signerPublicKey
87528755
}
@@ -17704,6 +17707,7 @@ public struct RpcClientConfigResponse: Codable, Sendable {
1770417707
public let chunkRequestRetryPeriod: [UInt64]?
1770517708
public let chunkValidationThreads: Int?
1770617709
public let chunkWaitMult: [Int32]?
17710+
public let chunksCacheHeightHorizon: UInt64?
1770717711
public let clientBackgroundMigrationThreads: Int?
1770817712
public let cloudArchivalWriter: CloudArchivalWriterConfig?
1770917713
public let disableTxRouting: Bool?
@@ -17775,6 +17779,7 @@ public struct RpcClientConfigResponse: Codable, Sendable {
1777517779
chunkRequestRetryPeriod: [UInt64]?,
1777617780
chunkValidationThreads: Int?,
1777717781
chunkWaitMult: [Int32]?,
17782+
chunksCacheHeightHorizon: UInt64?,
1777817783
clientBackgroundMigrationThreads: Int?,
1777917784
cloudArchivalWriter: CloudArchivalWriterConfig?,
1778017785
disableTxRouting: Bool?,
@@ -17845,6 +17850,7 @@ public struct RpcClientConfigResponse: Codable, Sendable {
1784517850
self.chunkRequestRetryPeriod = chunkRequestRetryPeriod
1784617851
self.chunkValidationThreads = chunkValidationThreads
1784717852
self.chunkWaitMult = chunkWaitMult
17853+
self.chunksCacheHeightHorizon = chunksCacheHeightHorizon
1784817854
self.clientBackgroundMigrationThreads = clientBackgroundMigrationThreads
1784917855
self.cloudArchivalWriter = cloudArchivalWriter
1785017856
self.disableTxRouting = disableTxRouting

0 commit comments

Comments
 (0)