@openfort/openfort-node 0.6.33 → 0.6.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/README.md +24 -0
  2. package/dist/apis/inventoriesApiWrapper.js +2 -2
  3. package/dist/apis/inventoriesApiWrapper.js.map +1 -1
  4. package/dist/apis/playersApiWrapper.d.ts +1 -21
  5. package/dist/apis/playersApiWrapper.js +0 -31
  6. package/dist/apis/playersApiWrapper.js.map +1 -1
  7. package/dist/apis/policiesApiWrapper.d.ts +1 -16
  8. package/dist/apis/policiesApiWrapper.js +0 -23
  9. package/dist/apis/policiesApiWrapper.js.map +1 -1
  10. package/dist/apis/settingsApiWrapper.d.ts +5 -0
  11. package/dist/apis/settingsApiWrapper.js +6 -0
  12. package/dist/apis/settingsApiWrapper.js.map +1 -1
  13. package/dist/apis/transactionIntentsApiWrapper.js +1 -1
  14. package/dist/apis/transactionIntentsApiWrapper.js.map +1 -1
  15. package/dist/generated/apis/AccountsApi.d.ts +9 -9
  16. package/dist/generated/apis/AccountsApi.js +9 -9
  17. package/dist/generated/apis/InventoriesApi.d.ts +4 -32
  18. package/dist/generated/apis/InventoriesApi.js +8 -119
  19. package/dist/generated/apis/InventoriesApi.js.map +1 -1
  20. package/dist/generated/apis/PlayersApi.d.ts +2 -64
  21. package/dist/generated/apis/PlayersApi.js +2 -249
  22. package/dist/generated/apis/PlayersApi.js.map +1 -1
  23. package/dist/generated/apis/PoliciesApi.d.ts +2 -47
  24. package/dist/generated/apis/PoliciesApi.js +2 -197
  25. package/dist/generated/apis/PoliciesApi.js.map +1 -1
  26. package/dist/generated/apis/SessionsApi.d.ts +4 -1
  27. package/dist/generated/apis/SessionsApi.js +4 -1
  28. package/dist/generated/apis/SessionsApi.js.map +1 -1
  29. package/dist/generated/apis/SettingsApi.d.ts +22 -1
  30. package/dist/generated/apis/SettingsApi.js +81 -1
  31. package/dist/generated/apis/SettingsApi.js.map +1 -1
  32. package/dist/generated/apis/TransactionIntentsApi.d.ts +10 -8
  33. package/dist/generated/apis/TransactionIntentsApi.js +16 -14
  34. package/dist/generated/apis/TransactionIntentsApi.js.map +1 -1
  35. package/dist/generated/models/CancelTransferOwnershipRequest.d.ts +1 -1
  36. package/dist/generated/models/CreateAccountRequest.d.ts +6 -6
  37. package/dist/generated/models/CreateContractRequest.d.ts +1 -1
  38. package/dist/generated/models/CreatePolicyRequest.d.ts +1 -1
  39. package/dist/generated/models/CreatePolicyRuleRequest.d.ts +2 -2
  40. package/dist/generated/models/CreateSessionRequest.d.ts +3 -3
  41. package/dist/generated/models/CreateTransactionIntentRequest.d.ts +8 -8
  42. package/dist/generated/models/CreateWeb3ConnectionRequest.d.ts +2 -2
  43. package/dist/generated/models/{RevokeSessionPlayerRequest.d.ts → DeveloperAccount.d.ts} +9 -16
  44. package/dist/generated/models/DeveloperAccount.js +68 -0
  45. package/dist/generated/models/DeveloperAccount.js.map +1 -0
  46. package/dist/generated/models/{CreatePlayerAccountRequest.d.ts → DeveloperAccountListQueries.d.ts} +10 -15
  47. package/dist/generated/models/DeveloperAccountListQueries.js +50 -0
  48. package/dist/generated/models/DeveloperAccountListQueries.js.map +1 -0
  49. package/dist/generated/models/DeveloperAccountResponse.d.ts +3 -1
  50. package/dist/generated/models/DeveloperAccountResponse.js +12 -6
  51. package/dist/generated/models/DeveloperAccountResponse.js.map +1 -1
  52. package/dist/generated/models/{ObsoleteAssetType.d.ts → DeveloperAccountResponseExpandable.d.ts} +1 -1
  53. package/dist/generated/models/{ObsoleteAssetType.js → DeveloperAccountResponseExpandable.js} +1 -1
  54. package/dist/generated/models/DeveloperAccountResponseExpandable.js.map +1 -0
  55. package/dist/generated/models/Interaction.d.ts +5 -5
  56. package/dist/generated/models/NextActionPayload.d.ts +8 -0
  57. package/dist/generated/models/NextActionPayload.js +12 -0
  58. package/dist/generated/models/NextActionPayload.js.map +1 -1
  59. package/dist/generated/models/ObjectSerializer.d.ts +3 -7
  60. package/dist/generated/models/ObjectSerializer.js +8 -20
  61. package/dist/generated/models/ObjectSerializer.js.map +1 -1
  62. package/dist/generated/models/PlayerCancelTransferOwnershipRequest.d.ts +2 -2
  63. package/dist/generated/models/PlayerInventoryListQueries.d.ts +1 -1
  64. package/dist/generated/models/PlayerInventoryListQueries.js +2 -2
  65. package/dist/generated/models/PlayerInventoryListQueries.js.map +1 -1
  66. package/dist/generated/models/PlayerTransferOwnershipRequest.d.ts +3 -3
  67. package/dist/generated/models/ResponseResponse.d.ts +0 -1
  68. package/dist/generated/models/ResponseResponse.js +0 -6
  69. package/dist/generated/models/ResponseResponse.js.map +1 -1
  70. package/dist/generated/models/RevokeSessionRequest.d.ts +2 -2
  71. package/dist/generated/models/SignatureRequest.d.ts +1 -1
  72. package/dist/generated/models/SubmitWeb3ActionRequest.d.ts +1 -1
  73. package/dist/generated/models/TransactionIntentListQueries.d.ts +5 -5
  74. package/dist/generated/models/TransactionIntentListQueries.js +6 -6
  75. package/dist/generated/models/TransactionIntentListQueries.js.map +1 -1
  76. package/dist/generated/models/TransactionIntentResponseAccount.d.ts +4 -3
  77. package/dist/generated/models/TransactionIntentResponseAccount.js +9 -3
  78. package/dist/generated/models/TransactionIntentResponseAccount.js.map +1 -1
  79. package/dist/generated/models/TransactionIntentResponseExpandable.d.ts +1 -1
  80. package/dist/generated/models/TransferOwnershipRequest.d.ts +1 -1
  81. package/dist/generated/models/UpdateContractRequest.d.ts +1 -1
  82. package/dist/generated/models/UpdatePolicyRequest.d.ts +1 -1
  83. package/dist/generated/models/UpdatePolicyRuleRequest.d.ts +2 -2
  84. package/dist/generated/models/all.d.ts +3 -7
  85. package/dist/generated/models/all.js +3 -7
  86. package/dist/generated/models/all.js.map +1 -1
  87. package/dist/generated/types/ObjectParamAPI.d.ts +74 -197
  88. package/dist/generated/types/ObjectParamAPI.js +31 -78
  89. package/dist/generated/types/ObjectParamAPI.js.map +1 -1
  90. package/dist/generated/types/ObservableAPI.d.ts +44 -83
  91. package/dist/generated/types/ObservableAPI.js +62 -217
  92. package/dist/generated/types/ObservableAPI.js.map +1 -1
  93. package/dist/generated/types/PromiseAPI.d.ts +44 -83
  94. package/dist/generated/types/PromiseAPI.js +50 -109
  95. package/dist/generated/types/PromiseAPI.js.map +1 -1
  96. package/dist/models/getDeveloperAccountRequest.d.ts +4 -0
  97. package/dist/models/{createPlayerSessionRequest.js → getDeveloperAccountRequest.js} +1 -1
  98. package/dist/models/getDeveloperAccountRequest.js.map +1 -0
  99. package/dist/models/index.d.ts +0 -2
  100. package/dist/models/index.js +0 -1
  101. package/dist/models/index.js.map +1 -1
  102. package/dist/version.d.ts +1 -1
  103. package/dist/version.js +1 -1
  104. package/package.json +1 -1
  105. package/tsconfig.tsbuildinfo +1 -1
  106. package/dist/generated/models/CreatePlayerAccountRequest.js +0 -56
  107. package/dist/generated/models/CreatePlayerAccountRequest.js.map +0 -1
  108. package/dist/generated/models/CreatePlayerSessionRequest.d.ts +0 -63
  109. package/dist/generated/models/CreatePlayerSessionRequest.js +0 -80
  110. package/dist/generated/models/CreatePlayerSessionRequest.js.map +0 -1
  111. package/dist/generated/models/CreatePolicyAllowFunctionRequest.d.ts +0 -51
  112. package/dist/generated/models/CreatePolicyAllowFunctionRequest.js +0 -68
  113. package/dist/generated/models/CreatePolicyAllowFunctionRequest.js.map +0 -1
  114. package/dist/generated/models/ObsoleteAssetInventory.d.ts +0 -36
  115. package/dist/generated/models/ObsoleteAssetInventory.js +0 -56
  116. package/dist/generated/models/ObsoleteAssetInventory.js.map +0 -1
  117. package/dist/generated/models/ObsoleteAssetType.js.map +0 -1
  118. package/dist/generated/models/ObsoleteInventoryResponse.d.ts +0 -33
  119. package/dist/generated/models/ObsoleteInventoryResponse.js +0 -50
  120. package/dist/generated/models/ObsoleteInventoryResponse.js.map +0 -1
  121. package/dist/generated/models/RevokeSessionPlayerRequest.js +0 -50
  122. package/dist/generated/models/RevokeSessionPlayerRequest.js.map +0 -1
  123. package/dist/models/createPlayerSessionRequest.d.ts +0 -4
  124. package/dist/models/createPlayerSessionRequest.js.map +0 -1
  125. package/dist/models/revokePlayerSessionRequest.d.ts +0 -4
  126. package/dist/models/revokePlayerSessionRequest.js +0 -3
  127. package/dist/models/revokePlayerSessionRequest.js.map +0 -1
@@ -13,9 +13,6 @@ import { ContractReadResponse } from '../models/ContractReadResponse';
13
13
  import { ContractResponse } from '../models/ContractResponse';
14
14
  import { CreateAccountRequest } from '../models/CreateAccountRequest';
15
15
  import { CreateContractRequest } from '../models/CreateContractRequest';
16
- import { CreatePlayerAccountRequest } from '../models/CreatePlayerAccountRequest';
17
- import { CreatePlayerSessionRequest } from '../models/CreatePlayerSessionRequest';
18
- import { CreatePolicyAllowFunctionRequest } from '../models/CreatePolicyAllowFunctionRequest';
19
16
  import { CreatePolicyRequest } from '../models/CreatePolicyRequest';
20
17
  import { CreatePolicyRuleRequest } from '../models/CreatePolicyRuleRequest';
21
18
  import { CreateSessionRequest } from '../models/CreateSessionRequest';
@@ -27,6 +24,7 @@ import { DeveloperAccountDeleteResponse } from '../models/DeveloperAccountDelete
27
24
  import { DeveloperAccountGetMessageResponse } from '../models/DeveloperAccountGetMessageResponse';
28
25
  import { DeveloperAccountListResponse } from '../models/DeveloperAccountListResponse';
29
26
  import { DeveloperAccountResponse } from '../models/DeveloperAccountResponse';
27
+ import { DeveloperAccountResponseExpandable } from '../models/DeveloperAccountResponseExpandable';
30
28
  import { EstimateTransactionIntentGasResult } from '../models/EstimateTransactionIntentGasResult';
31
29
  import { GasReport } from '../models/GasReport';
32
30
  import { GetSigninUrlResponse } from '../models/GetSigninUrlResponse';
@@ -37,7 +35,6 @@ import { OAuthConfig } from '../models/OAuthConfig';
37
35
  import { OAuthConfigListResponse } from '../models/OAuthConfigListResponse';
38
36
  import { OAuthProvider } from '../models/OAuthProvider';
39
37
  import { OAuthRequest } from '../models/OAuthRequest';
40
- import { ObsoleteInventoryResponse } from '../models/ObsoleteInventoryResponse';
41
38
  import { PlayerCancelTransferOwnershipRequest } from '../models/PlayerCancelTransferOwnershipRequest';
42
39
  import { PlayerCreateRequest } from '../models/PlayerCreateRequest';
43
40
  import { PlayerDeleteResponse } from '../models/PlayerDeleteResponse';
@@ -56,7 +53,6 @@ import { PolicyRuleResponse } from '../models/PolicyRuleResponse';
56
53
  import { RegisterPlayerEncryptedKeyRequest } from '../models/RegisterPlayerEncryptedKeyRequest';
57
54
  import { RegisterPlayerEncryptedKeyResponse } from '../models/RegisterPlayerEncryptedKeyResponse';
58
55
  import { RetrievePlayerEncryptedKeyResponse } from '../models/RetrievePlayerEncryptedKeyResponse';
59
- import { RevokeSessionPlayerRequest } from '../models/RevokeSessionPlayerRequest';
60
56
  import { RevokeSessionRequest } from '../models/RevokeSessionRequest';
61
57
  import { SessionListResponse } from '../models/SessionListResponse';
62
58
  import { SessionResponse } from '../models/SessionResponse';
@@ -86,9 +82,9 @@ export declare class PromiseAccountsApi {
86
82
  private api;
87
83
  constructor(configuration: Configuration, requestFactory?: AccountsApiRequestFactory, responseProcessor?: AccountsApiResponseProcessor);
88
84
  /**
89
- * This endpoint allows you to cancel a pending transfer of ownership.
85
+ * Cancel a pending transfer of ownership.
90
86
  * Cancel request to transfer ownership of an account.
91
- * @param id Specifies the unique account ID.
87
+ * @param id Specifies the unique account ID (starts with acc_).
92
88
  * @param cancelTransferOwnershipRequest
93
89
  */
94
90
  cancelTransferOwnership(id: string, cancelTransferOwnershipRequest: CancelTransferOwnershipRequest, _options?: Configuration): Promise<TransactionIntentResponse>;
@@ -99,7 +95,7 @@ export declare class PromiseAccountsApi {
99
95
  */
100
96
  completeRecovery(id: string, completeRecoveryRequest: CompleteRecoveryRequest, _options?: Configuration): Promise<TransactionIntentResponse>;
101
97
  /**
102
- * This endpoint allows you to add a new account to your Openfort player. Only one account can be active per chain per player.
98
+ * Creates a new blockchain account for the provided player. Account creation does not consume any gas. All accounts of a player will use the same address across blockchains. Only one account can per chain per player.
103
99
  * Create an account object.
104
100
  * @param createAccountRequest
105
101
  */
@@ -112,14 +108,14 @@ export declare class PromiseAccountsApi {
112
108
  */
113
109
  deployAccount(id: string, deployRequest: DeployRequest, _options?: Configuration): Promise<AccountResponse>;
114
110
  /**
115
- * Retrieves the details of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.
111
+ * Retrieves the details of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.
116
112
  * Get existing account.
117
113
  * @param id Specifies the unique account ID (starts with acc_).
118
114
  * @param expand
119
115
  */
120
116
  getAccount(id: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<AccountResponse>;
121
117
  /**
122
- * Returns a list of accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of ten accounts are shown per page.
118
+ * Returns a list of accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 accounts are shown per page.
123
119
  * List accounts of a player.
124
120
  * @param player Specifies the unique player ID (starts with pla_)
125
121
  * @param limit Specifies the maximum number of records to return.
@@ -129,16 +125,16 @@ export declare class PromiseAccountsApi {
129
125
  */
130
126
  getAccounts(player: string, limit?: number, skip?: number, order?: SortOrder, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<AccountListResponse>;
131
127
  /**
132
- * This endpoint allows you to perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
128
+ * Perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
133
129
  * Request transfer ownership of account.
134
- * @param id Specifies the unique account ID.
130
+ * @param id Specifies the unique account ID (starts with acc_).
135
131
  * @param transferOwnershipRequest
136
132
  */
137
133
  requestTransferOwnership(id: string, transferOwnershipRequest: TransferOwnershipRequest, _options?: Configuration): Promise<TransactionIntentResponse>;
138
134
  /**
139
135
  * Signs the typed data value with types data structure for domain using the [EIP-712](https://eips.ethereum.org/EIPS/eip-712) specification.
140
136
  * Sign a given payload
141
- * @param id Specifies the unique account ID.
137
+ * @param id Specifies the unique account ID (starts with acc_).
142
138
  * @param signPayloadRequest
143
139
  */
144
140
  signPayload(id: string, signPayloadRequest: SignPayloadRequest, _options?: Configuration): Promise<SignPayloadResponse>;
@@ -149,7 +145,7 @@ export declare class PromiseAccountsApi {
149
145
  */
150
146
  startRecovery(id: string, startRecoveryRequest: StartRecoveryRequest, _options?: Configuration): Promise<TransactionIntentResponse>;
151
147
  /**
152
- * This endpoint updates the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
148
+ * Synchronize the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
153
149
  * Sync account state with the blockchain
154
150
  * @param id Specifies the unique account ID (starts with acc_).
155
151
  */
@@ -254,11 +250,6 @@ export declare class PromiseInventoriesApi {
254
250
  * @param contractId
255
251
  */
256
252
  getAccountCryptoCurrencyInventory(id: string, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<InventoryListResponse>;
257
- /**
258
- * Get inventory of account.
259
- * @param id Specifies the unique account ID (starts with acc_).
260
- */
261
- getAccountInventory(id: string, _options?: Configuration): Promise<ObsoleteInventoryResponse>;
262
253
  /**
263
254
  * Retrieves the native asset of an existing account.
264
255
  * @param id Specifies the unique account ID.
@@ -280,15 +271,9 @@ export declare class PromiseInventoriesApi {
280
271
  * @param limit Specifies the maximum number of records to return.
281
272
  * @param skip Specifies the offset for the first records to return.
282
273
  * @param order Specifies the order in which to sort the results.
283
- * @param contractId Filter by contract ID (starts with con_).
284
- */
285
- getPlayerCryptoCurrencyInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<InventoryListResponse>;
286
- /**
287
- * Get inventory of player.
288
- * @param id Specifies the unique player ID (starts with pla_).
289
- * @param chainId Filter by chain id.
274
+ * @param contract Filter by contract ID (starts with con_).
290
275
  */
291
- getPlayerInventory(id: string, chainId: number, _options?: Configuration): Promise<ObsoleteInventoryResponse>;
276
+ getPlayerCryptoCurrencyInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contract?: Array<string>, _options?: Configuration): Promise<InventoryListResponse>;
292
277
  /**
293
278
  * Get native token list of player.
294
279
  * @param id Specifies the unique player ID (starts with pla_).
@@ -302,9 +287,9 @@ export declare class PromiseInventoriesApi {
302
287
  * @param limit Specifies the maximum number of records to return.
303
288
  * @param skip Specifies the offset for the first records to return.
304
289
  * @param order Specifies the order in which to sort the results.
305
- * @param contractId Filter by contract ID (starts with con_).
290
+ * @param contract Filter by contract ID (starts with con_).
306
291
  */
307
- getPlayerNftInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<InventoryListResponse>;
292
+ getPlayerNftInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contract?: Array<string>, _options?: Configuration): Promise<InventoryListResponse>;
308
293
  }
309
294
  import { OAuthApiRequestFactory, OAuthApiResponseProcessor } from "../apis/OAuthApi";
310
295
  export declare class PromiseOAuthApi {
@@ -367,23 +352,11 @@ export declare class PromisePlayersApi {
367
352
  */
368
353
  cancelTransferAccountOwnership(id: string, playerCancelTransferOwnershipRequest: PlayerCancelTransferOwnershipRequest, _options?: Configuration): Promise<TransactionIntentResponse>;
369
354
  /**
370
- * Add a new player to your player list in Openfort.
355
+ * Creates a Player.
371
356
  * Create a player object.
372
357
  * @param playerCreateRequest
373
358
  */
374
359
  createPlayer(playerCreateRequest: PlayerCreateRequest, _options?: Configuration): Promise<PlayerResponse>;
375
- /**
376
- * Create account object for a player.
377
- * @param id Specifies the unique player ID (starts with pla_).
378
- * @param createPlayerAccountRequest
379
- */
380
- createPlayerAccount(id: string, createPlayerAccountRequest: CreatePlayerAccountRequest, _options?: Configuration): Promise<AccountResponse>;
381
- /**
382
- * Create session object for a player.
383
- * @param id Specifies the unique player ID (starts with pla_).
384
- * @param createPlayerSessionRequest
385
- */
386
- createPlayerSession(id: string, createPlayerSessionRequest: CreatePlayerSessionRequest, _options?: Configuration): Promise<SessionResponse>;
387
360
  /**
388
361
  * Deletes a player object.
389
362
  * @param id Specifies the unique player ID (starts with pla_).
@@ -395,12 +368,6 @@ export declare class PromisePlayersApi {
395
368
  * @param expand Specifies the expandable fields.
396
369
  */
397
370
  getPlayer(id: string, expand?: Array<PlayerResponseExpandable>, _options?: Configuration): Promise<PlayerResponse>;
398
- /**
399
- * List of accounts of a player.
400
- * @param id Specifies the unique player ID (starts with pla_).
401
- * @param expand Specifies the expandable fields.
402
- */
403
- getPlayerAccounts(id: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<AccountListResponse>;
404
371
  /**
405
372
  * By default, a maximum of ten players are shown.
406
373
  * List players.
@@ -419,12 +386,7 @@ export declare class PromisePlayersApi {
419
386
  */
420
387
  requestTransferAccountOwnership(id: string, playerTransferOwnershipRequest: PlayerTransferOwnershipRequest, _options?: Configuration): Promise<TransactionIntentResponse>;
421
388
  /**
422
- * Revoke session object for a player.
423
- * @param id Specifies the unique player ID (starts with pla_).
424
- * @param revokeSessionPlayerRequest
425
- */
426
- revokePlayerSession(id: string, revokeSessionPlayerRequest: RevokeSessionPlayerRequest, _options?: Configuration): Promise<SessionResponse>;
427
- /**
389
+ * Updates the specified Player by setting the values of the parameters passed.
428
390
  * Updates a player object.
429
391
  * @param id Specifies the unique player ID (starts with pla_).
430
392
  * @param playerUpdateRequest
@@ -462,12 +424,6 @@ export declare class PromisePoliciesApi {
462
424
  * @param createPolicyRequest
463
425
  */
464
426
  createPolicy(createPolicyRequest: CreatePolicyRequest, _options?: Configuration): Promise<PolicyResponse>;
465
- /**
466
- * Create a policy rule object for a policy.
467
- * @param id Specifies the unique policy ID (starts with pol_).
468
- * @param createPolicyAllowFunctionRequest
469
- */
470
- createPolicyAllowFunction(id: string, createPolicyAllowFunctionRequest: CreatePolicyAllowFunctionRequest, _options?: Configuration): Promise<PolicyRuleResponse>;
471
427
  /**
472
428
  * Delete a policy object.
473
429
  * @param id Specifies the unique policy ID (starts with pol_).
@@ -484,6 +440,7 @@ export declare class PromisePoliciesApi {
484
440
  */
485
441
  enablePolicy(id: string, _options?: Configuration): Promise<PolicyResponse>;
486
442
  /**
443
+ * Returns a list of Policies.
487
444
  * List policies.
488
445
  * @param limit Specifies the maximum number of records to return.
489
446
  * @param skip Specifies the offset for the first records to return.
@@ -496,17 +453,12 @@ export declare class PromisePoliciesApi {
496
453
  */
497
454
  getPolicies(limit?: number, skip?: number, order?: SortOrder, expand?: Array<PolicyResponseExpandable>, name?: string, deleted?: boolean, chainId?: number, enabled?: boolean, _options?: Configuration): Promise<PolicyListResponse>;
498
455
  /**
456
+ * Retrieves the details of a Policy that has previously been created.
499
457
  * Get a policy object.
500
458
  * @param id Specifies the unique policy ID (starts with pol_).
501
459
  * @param expand Specifies the fields to expand.
502
460
  */
503
461
  getPolicy(id: string, expand?: Array<PolicyResponseExpandable>, _options?: Configuration): Promise<PolicyResponse>;
504
- /**
505
- * List policy rules of a policy.
506
- * @param id Specifies the unique policy ID (starts with pol_).
507
- * @param expand Specifies the fields to expand.
508
- */
509
- getPolicyAllowFunctions(id: string, expand?: Array<'contract'>, _options?: Configuration): Promise<PolicyRuleListResponse>;
510
462
  /**
511
463
  * List all gas reports of a policy.
512
464
  * @param id Specifies the unique policy ID (starts with pol_).
@@ -518,13 +470,6 @@ export declare class PromisePoliciesApi {
518
470
  * @param updatePolicyRequest
519
471
  */
520
472
  updatePolicy(id: string, updatePolicyRequest: UpdatePolicyRequest, _options?: Configuration): Promise<PolicyResponse>;
521
- /**
522
- * Update a policy rule object of a policy.
523
- * @param policy Specifies the unique policy ID (starts with pol_).
524
- * @param policyRule Specifies the unique policy rule ID (starts with afu_).
525
- * @param updatePolicyRuleRequest
526
- */
527
- updatePolicyAllowFunction(policy: string, policyRule: string, updatePolicyRuleRequest: UpdatePolicyRuleRequest, _options?: Configuration): Promise<PolicyRuleResponse>;
528
473
  }
529
474
  import { PolicyRulesApiRequestFactory, PolicyRulesApiResponseProcessor } from "../apis/PolicyRulesApi";
530
475
  export declare class PromisePolicyRulesApi {
@@ -561,11 +506,13 @@ export declare class PromiseSessionsApi {
561
506
  private api;
562
507
  constructor(configuration: Configuration, requestFactory?: SessionsApiRequestFactory, responseProcessor?: SessionsApiResponseProcessor);
563
508
  /**
509
+ * Creates a Session.
564
510
  * Create a session key.
565
511
  * @param createSessionRequest
566
512
  */
567
513
  createSession(createSessionRequest: CreateSessionRequest, _options?: Configuration): Promise<SessionResponse>;
568
514
  /**
515
+ * Returns a list of Sessions.
569
516
  * List session keys of a player.
570
517
  * @param player The player ID (starts with pla_)
571
518
  * @param limit Specifies the maximum number of records to return.
@@ -575,6 +522,7 @@ export declare class PromiseSessionsApi {
575
522
  */
576
523
  getPlayerSessions(player: string, limit?: number, skip?: number, order?: SortOrder, expand?: Array<SessionResponseExpandable>, _options?: Configuration): Promise<SessionListResponse>;
577
524
  /**
525
+ * Retrieves the details of a Session that has previously been created.
578
526
  * Returns a player session by session id
579
527
  * @param id Specifies the unique session ID (starts with ses_).
580
528
  * @param expand Specifies the fields to expand.
@@ -586,7 +534,7 @@ export declare class PromiseSessionsApi {
586
534
  */
587
535
  revokeSession(revokeSessionRequest: RevokeSessionRequest, _options?: Configuration): Promise<SessionResponse>;
588
536
  /**
589
- * Send signed userOpHash to create session.
537
+ * Send signed userOperationHash to create session.
590
538
  * @param id Specifies the unique session ID (starts with ses_).
591
539
  * @param signatureRequest
592
540
  */
@@ -610,9 +558,20 @@ export declare class PromiseSettingsApi {
610
558
  deleteDeveloperAccount(id: string, _options?: Configuration): Promise<DeveloperAccountDeleteResponse>;
611
559
  /**
612
560
  * Retrieve the list of the developer accounts for the current project.
561
+ * Get existing developer account.
562
+ * @param id
563
+ * @param expand
564
+ */
565
+ getDeveloperAccount(id: string, expand?: Array<DeveloperAccountResponseExpandable>, _options?: Configuration): Promise<DeveloperAccountResponse>;
566
+ /**
567
+ * Retrieve the list of the developer accounts for the current project. By default, a maximum of 10 accounts are shown per page.
613
568
  * List of developer accounts.
569
+ * @param limit Specifies the maximum number of records to return.
570
+ * @param skip Specifies the offset for the first records to return.
571
+ * @param order Specifies the order in which to sort the results.
572
+ * @param expand Specifies the fields to expand in the response.
614
573
  */
615
- getDeveloperAccounts(_options?: Configuration): Promise<DeveloperAccountListResponse>;
574
+ getDeveloperAccounts(limit?: number, skip?: number, order?: SortOrder, expand?: Array<DeveloperAccountResponseExpandable>, _options?: Configuration): Promise<DeveloperAccountListResponse>;
616
575
  /**
617
576
  * Generate message, which should be signed by the account your want to add as a developer account.
618
577
  * Generate message to sign
@@ -636,37 +595,39 @@ export declare class PromiseTransactionIntentsApi {
636
595
  private api;
637
596
  constructor(configuration: Configuration, requestFactory?: TransactionIntentsApiRequestFactory, responseProcessor?: TransactionIntentsApiResponseProcessor);
638
597
  /**
639
- * Retrieve a transaction intent by providing their id on Openfort. Transaction intents that have not been processed yet, have the `response` attribute as undefined.
598
+ * Creates a TransactionIntent. A pending TransactionIntent has the `response` attribute as undefined. After the TransactionIntent is created and broadcasted to the blockchain, `response` will be populated with the transaction hash and a status (1 success, 0 fail). When using a non-custodial account, a `nextAction` attribute is returned with the `userOperationHash` that must be signed by the owner of the account.
640
599
  * Create a transaction intent object.
641
600
  * @param createTransactionIntentRequest
642
601
  */
643
602
  createTransactionIntent(createTransactionIntentRequest: CreateTransactionIntentRequest, _options?: Configuration): Promise<TransactionIntentResponse>;
644
603
  /**
645
- * Estimate the gas cost of creating a transaction intent and putting it on chain. If a policy that includes payment of gas in ERC-20 tokens is provided, an extra field `estimatedTXGasFeeToken` is returned with the estimated amount of tokens.
604
+ * Estimate the gas cost of broadcasting a TransactionIntent. This is a simulation, it does not send the transaction on-chain. If a Policy ID is used that includes payment of gas in ERC-20 tokens, an extra field `estimatedTXGasFeeToken` is returned with the estimated amount of tokens that will be used.
646
605
  * Estimate gas cost of creating a transaction
647
606
  * @param createTransactionIntentRequest
648
607
  */
649
608
  estimateTransactionIntentCost(createTransactionIntentRequest: CreateTransactionIntentRequest, _options?: Configuration): Promise<EstimateTransactionIntentGasResult>;
650
609
  /**
610
+ * Retrieves the details of a TransactionIntent that has previously been created.
651
611
  * Get a transaction intent object.
652
612
  * @param id Specifies the unique transaction intent ID (starts with tin_).
653
613
  * @param expand Specifies the expandable fields.
654
614
  */
655
615
  getTransactionIntent(id: string, expand?: Array<TransactionIntentResponseExpandable>, _options?: Configuration): Promise<TransactionIntentResponse>;
656
616
  /**
617
+ * Returns a list of TransactionIntents.
657
618
  * List transaction intents.
658
619
  * @param limit Specifies the maximum number of records to return.
659
620
  * @param skip Specifies the offset for the first records to return.
660
621
  * @param order Specifies the order in which to sort the results.
661
622
  * @param expand Specifies the fields to expand in the response.
662
- * @param chainId The chain ID.
663
- * @param accountId Filter by account ID.
664
- * @param playerId Filter by player ID (starts with pla_).
665
- * @param policyId Filter by policy ID (starts with pol_).
623
+ * @param chainId The chain ID. Must be a [supported chain](/chains).
624
+ * @param account Filter by account ID or developer account (starts with acc_ or dac_ respectively).
625
+ * @param player Filter by player ID (starts with pla_).
626
+ * @param policy Filter by policy ID (starts with pol_).
666
627
  */
667
- getTransactionIntents(limit?: number, skip?: number, order?: SortOrder, expand?: Array<TransactionIntentResponseExpandable>, chainId?: number, accountId?: Array<string>, playerId?: Array<string>, policyId?: Array<string>, _options?: Configuration): Promise<TransactionIntentListResponse>;
628
+ getTransactionIntents(limit?: number, skip?: number, order?: SortOrder, expand?: Array<TransactionIntentResponseExpandable>, chainId?: number, account?: Array<string>, player?: Array<string>, policy?: Array<string>, _options?: Configuration): Promise<TransactionIntentListResponse>;
668
629
  /**
669
- * For non-custodial smart accounts, each on chain action using their wallet, they must sign the userOperationHash received from the `POST` API endpoint that creates a transactionIntent.
630
+ * Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `userOperationHash`. Openfort will then put it on-chain.
670
631
  * Send a signed transaction userOperationHash.
671
632
  * @param id Specifies the unique transaction intent ID (starts with tin_).
672
633
  * @param signatureRequest