@openfort/openfort-node 0.6.69 → 0.6.70

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 (157) hide show
  1. package/dist/apis/accountsApiWrapper.js +1 -1
  2. package/dist/apis/accountsApiWrapper.js.map +1 -1
  3. package/dist/generated/apis/AccountsApi.d.ts +56 -2
  4. package/dist/generated/apis/AccountsApi.js +206 -10
  5. package/dist/generated/apis/AccountsApi.js.map +1 -1
  6. package/dist/generated/apis/AdminAuthenticationApi.d.ts +1 -1
  7. package/dist/generated/apis/AdminAuthenticationApi.js +1 -1
  8. package/dist/generated/apis/AuthenticationApi.d.ts +29 -0
  9. package/dist/generated/apis/AuthenticationApi.js +106 -0
  10. package/dist/generated/apis/AuthenticationApi.js.map +1 -1
  11. package/dist/generated/apis/DevicesApi.d.ts +54 -0
  12. package/dist/generated/apis/DevicesApi.js +175 -0
  13. package/dist/generated/apis/DevicesApi.js.map +1 -0
  14. package/dist/generated/apis/PlayersApi.d.ts +1 -0
  15. package/dist/generated/apis/PlayersApi.js +1 -0
  16. package/dist/generated/apis/PlayersApi.js.map +1 -1
  17. package/dist/generated/apis/PoliciesApi.d.ts +4 -3
  18. package/dist/generated/apis/PoliciesApi.js +12 -7
  19. package/dist/generated/apis/PoliciesApi.js.map +1 -1
  20. package/dist/generated/apis/SignersApi.d.ts +65 -0
  21. package/dist/generated/apis/SignersApi.js +207 -0
  22. package/dist/generated/apis/SignersApi.js.map +1 -0
  23. package/dist/generated/models/AccountCreateRequest.d.ts +30 -0
  24. package/dist/generated/models/AccountCreateRequest.js +38 -0
  25. package/dist/generated/models/AccountCreateRequest.js.map +1 -0
  26. package/dist/generated/models/AccountListQueries.d.ts +8 -4
  27. package/dist/generated/models/AccountListQueries.js +11 -5
  28. package/dist/generated/models/AccountListQueries.js.map +1 -1
  29. package/dist/generated/models/AccountsListQueries.d.ts +32 -0
  30. package/dist/generated/models/AccountsListQueries.js +50 -0
  31. package/dist/generated/models/AccountsListQueries.js.map +1 -0
  32. package/dist/generated/models/{TelegramThirdPartyConfig.d.ts → AppleNativeOAuthConfig.d.ts} +5 -5
  33. package/dist/generated/models/{TelegramThirdPartyConfig.js → AppleNativeOAuthConfig.js} +10 -10
  34. package/dist/generated/models/AppleNativeOAuthConfig.js.map +1 -0
  35. package/dist/generated/models/{TelegramOAuthConfig.d.ts → AppleOAuthConfig.d.ts} +7 -7
  36. package/dist/generated/models/{TelegramOAuthConfig.js → AppleOAuthConfig.js} +12 -12
  37. package/dist/generated/models/AppleOAuthConfig.js.map +1 -0
  38. package/dist/generated/models/AuthConfig.d.ts +0 -8
  39. package/dist/generated/models/AuthConfig.js +0 -12
  40. package/dist/generated/models/AuthConfig.js.map +1 -1
  41. package/dist/generated/models/AuthProviderResponse.d.ts +1 -1
  42. package/dist/generated/models/AuthenticatedPlayerResponse.d.ts +29 -0
  43. package/dist/generated/models/AuthenticatedPlayerResponse.js +32 -0
  44. package/dist/generated/models/AuthenticatedPlayerResponse.js.map +1 -0
  45. package/dist/generated/models/Authorize200Response.d.ts +0 -8
  46. package/dist/generated/models/Authorize200Response.js +0 -12
  47. package/dist/generated/models/Authorize200Response.js.map +1 -1
  48. package/dist/generated/models/CreateAccountRequest.d.ts +1 -1
  49. package/dist/generated/models/CreateEcosystemConfigurationRequest.d.ts +8 -0
  50. package/dist/generated/models/CreateEcosystemConfigurationRequest.js +12 -0
  51. package/dist/generated/models/CreateEcosystemConfigurationRequest.js.map +1 -1
  52. package/dist/generated/models/CreatePolicyRequest.d.ts +4 -0
  53. package/dist/generated/models/CreatePolicyRequest.js +6 -0
  54. package/dist/generated/models/CreatePolicyRequest.js.map +1 -1
  55. package/dist/generated/models/CreateSignerRequest.d.ts +31 -0
  56. package/dist/generated/models/CreateSignerRequest.js +44 -0
  57. package/dist/generated/models/CreateSignerRequest.js.map +1 -0
  58. package/dist/generated/models/DeviceCreateRequest.d.ts +28 -0
  59. package/dist/generated/models/DeviceCreateRequest.js +32 -0
  60. package/dist/generated/models/DeviceCreateRequest.js.map +1 -0
  61. package/dist/generated/models/EcosystemConfigurationResponse.d.ts +8 -0
  62. package/dist/generated/models/EcosystemConfigurationResponse.js +12 -0
  63. package/dist/generated/models/EcosystemConfigurationResponse.js.map +1 -1
  64. package/dist/generated/models/EstimateTransactionIntentGasResult.d.ts +0 -6
  65. package/dist/generated/models/EstimateTransactionIntentGasResult.js +0 -36
  66. package/dist/generated/models/EstimateTransactionIntentGasResult.js.map +1 -1
  67. package/dist/generated/models/{PrismaInputJsonValue.d.ts → GoogleNativeOAuthConfig.d.ts} +12 -2
  68. package/dist/generated/models/GoogleNativeOAuthConfig.js +47 -0
  69. package/dist/generated/models/GoogleNativeOAuthConfig.js.map +1 -0
  70. package/dist/generated/models/LinkedAccountResponse.d.ts +6 -2
  71. package/dist/generated/models/LinkedAccountResponse.js +13 -1
  72. package/dist/generated/models/LinkedAccountResponse.js.map +1 -1
  73. package/dist/generated/models/ListQueries.d.ts +31 -0
  74. package/dist/generated/models/ListQueries.js +44 -0
  75. package/dist/generated/models/ListQueries.js.map +1 -0
  76. package/dist/generated/models/ListResponseAccount.d.ts +33 -0
  77. package/dist/generated/models/ListResponseAccount.js +56 -0
  78. package/dist/generated/models/ListResponseAccount.js.map +1 -0
  79. package/dist/generated/models/ListResponseSigner.d.ts +33 -0
  80. package/dist/generated/models/ListResponseSigner.js +56 -0
  81. package/dist/generated/models/ListResponseSigner.js.map +1 -0
  82. package/dist/generated/models/OAuthProvders.d.ts +1 -1
  83. package/dist/generated/models/OAuthProvider.d.ts +1 -1
  84. package/dist/generated/models/{OAuthProviderTELEGRAM.d.ts → OAuthProviderAPPLE.d.ts} +1 -1
  85. package/dist/generated/models/{OAuthProviderTELEGRAM.js → OAuthProviderAPPLE.js} +1 -1
  86. package/dist/generated/models/OAuthProviderAPPLE.js.map +1 -0
  87. package/dist/generated/models/ObjectSerializer.d.ts +22 -5
  88. package/dist/generated/models/ObjectSerializer.js +67 -13
  89. package/dist/generated/models/ObjectSerializer.js.map +1 -1
  90. package/dist/generated/models/Policy.d.ts +1 -0
  91. package/dist/generated/models/Policy.js +6 -0
  92. package/dist/generated/models/Policy.js.map +1 -1
  93. package/dist/generated/models/PolicyReportQueries.d.ts +6 -4
  94. package/dist/generated/models/PolicyReportQueries.js +12 -6
  95. package/dist/generated/models/PolicyReportQueries.js.map +1 -1
  96. package/dist/generated/models/PolicyResponse.d.ts +1 -0
  97. package/dist/generated/models/PolicyResponse.js +6 -0
  98. package/dist/generated/models/PolicyResponse.js.map +1 -1
  99. package/dist/generated/models/ShamirParams.d.ts +29 -0
  100. package/dist/generated/models/ShamirParams.js +38 -0
  101. package/dist/generated/models/ShamirParams.js.map +1 -0
  102. package/dist/generated/models/ShamirSigner.d.ts +29 -0
  103. package/dist/generated/models/ShamirSigner.js +38 -0
  104. package/dist/generated/models/ShamirSigner.js.map +1 -0
  105. package/dist/generated/models/Signer.d.ts +33 -0
  106. package/dist/generated/models/Signer.js +50 -0
  107. package/dist/generated/models/Signer.js.map +1 -0
  108. package/dist/generated/models/SignerListQueries.d.ts +33 -0
  109. package/dist/generated/models/SignerListQueries.js +56 -0
  110. package/dist/generated/models/SignerListQueries.js.map +1 -0
  111. package/dist/generated/models/SignerOwner.d.ts +28 -0
  112. package/dist/generated/models/SignerOwner.js +32 -0
  113. package/dist/generated/models/SignerOwner.js.map +1 -0
  114. package/dist/generated/models/SignerResponse.d.ts +29 -0
  115. package/dist/generated/models/SignerResponse.js +32 -0
  116. package/dist/generated/models/SignerResponse.js.map +1 -0
  117. package/dist/generated/models/SwitchChainRequest.d.ts +29 -0
  118. package/dist/generated/models/SwitchChainRequest.js +38 -0
  119. package/dist/generated/models/SwitchChainRequest.js.map +1 -0
  120. package/dist/generated/models/ThirdPartyLinkRequest.d.ts +31 -0
  121. package/dist/generated/models/ThirdPartyLinkRequest.js +44 -0
  122. package/dist/generated/models/ThirdPartyLinkRequest.js.map +1 -0
  123. package/dist/generated/models/ThirdPartyOAuthProvider.d.ts +1 -1
  124. package/dist/generated/models/{ThirdPartyOAuthProviderTELEGRAMMINIAPP.d.ts → ThirdPartyOAuthProviderAPPLENATIVE.d.ts} +1 -1
  125. package/dist/generated/models/{ThirdPartyOAuthProviderTELEGRAMMINIAPP.js → ThirdPartyOAuthProviderAPPLENATIVE.js} +1 -1
  126. package/dist/generated/models/ThirdPartyOAuthProviderAPPLENATIVE.js.map +1 -0
  127. package/dist/generated/models/ThirdPartyOAuthProviderGOOGLENATIVE.d.ts +12 -0
  128. package/dist/generated/models/ThirdPartyOAuthProviderGOOGLENATIVE.js +14 -0
  129. package/dist/generated/models/ThirdPartyOAuthProviderGOOGLENATIVE.js.map +1 -0
  130. package/dist/generated/models/TransactionIntentResponsePolicy.d.ts +1 -0
  131. package/dist/generated/models/TransactionIntentResponsePolicy.js +6 -0
  132. package/dist/generated/models/TransactionIntentResponsePolicy.js.map +1 -1
  133. package/dist/generated/models/UpdatePolicyRequest.d.ts +4 -0
  134. package/dist/generated/models/UpdatePolicyRequest.js +6 -0
  135. package/dist/generated/models/UpdatePolicyRequest.js.map +1 -1
  136. package/dist/generated/models/all.d.ts +22 -5
  137. package/dist/generated/models/all.js +22 -5
  138. package/dist/generated/models/all.js.map +1 -1
  139. package/dist/generated/types/ObjectParamAPI.d.ts +279 -10
  140. package/dist/generated/types/ObjectParamAPI.js +124 -28
  141. package/dist/generated/types/ObjectParamAPI.js.map +1 -1
  142. package/dist/generated/types/ObservableAPI.d.ts +100 -6
  143. package/dist/generated/types/ObservableAPI.js +293 -9
  144. package/dist/generated/types/ObservableAPI.js.map +1 -1
  145. package/dist/generated/types/PromiseAPI.d.ts +96 -6
  146. package/dist/generated/types/PromiseAPI.js +156 -32
  147. package/dist/generated/types/PromiseAPI.js.map +1 -1
  148. package/dist/version.d.ts +1 -1
  149. package/dist/version.js +1 -1
  150. package/package.json +1 -1
  151. package/tsconfig.tsbuildinfo +1 -1
  152. package/dist/generated/models/OAuthProviderTELEGRAM.js.map +0 -1
  153. package/dist/generated/models/PrismaInputJsonValue.js +0 -28
  154. package/dist/generated/models/PrismaInputJsonValue.js.map +0 -1
  155. package/dist/generated/models/TelegramOAuthConfig.js.map +0 -1
  156. package/dist/generated/models/TelegramThirdPartyConfig.js.map +0 -1
  157. package/dist/generated/models/ThirdPartyOAuthProviderTELEGRAMMINIAPP.js.map +0 -1
@@ -1,5 +1,6 @@
1
1
  import { Configuration } from '../configuration';
2
2
  import { APITopic } from '../models/APITopic';
3
+ import { AccountCreateRequest } from '../models/AccountCreateRequest';
3
4
  import { AccountListResponse } from '../models/AccountListResponse';
4
5
  import { AccountResponse } from '../models/AccountResponse';
5
6
  import { AccountResponseExpandable } from '../models/AccountResponseExpandable';
@@ -14,6 +15,7 @@ import { AuthSessionResponse } from '../models/AuthSessionResponse';
14
15
  import { AuthenticateOAuthRequest } from '../models/AuthenticateOAuthRequest';
15
16
  import { Authorize200Response } from '../models/Authorize200Response';
16
17
  import { AuthorizePlayerRequest } from '../models/AuthorizePlayerRequest';
18
+ import { BaseEntityListResponseDeviceResponse } from '../models/BaseEntityListResponseDeviceResponse';
17
19
  import { BaseEntityListResponseLogResponse } from '../models/BaseEntityListResponseLogResponse';
18
20
  import { BaseEntityListResponseTriggerResponse } from '../models/BaseEntityListResponseTriggerResponse';
19
21
  import { CancelTransferOwnershipRequest } from '../models/CancelTransferOwnershipRequest';
@@ -33,6 +35,7 @@ import { CreatePaymasterRequest } from '../models/CreatePaymasterRequest';
33
35
  import { CreatePolicyRequest } from '../models/CreatePolicyRequest';
34
36
  import { CreatePolicyRuleRequest } from '../models/CreatePolicyRuleRequest';
35
37
  import { CreateSessionRequest } from '../models/CreateSessionRequest';
38
+ import { CreateSignerRequest } from '../models/CreateSignerRequest';
36
39
  import { CreateSubscriptionRequest } from '../models/CreateSubscriptionRequest';
37
40
  import { CreateTransactionIntentRequest } from '../models/CreateTransactionIntentRequest';
38
41
  import { CreateTriggerRequest } from '../models/CreateTriggerRequest';
@@ -43,6 +46,8 @@ import { DeveloperAccountGetMessageResponse } from '../models/DeveloperAccountGe
43
46
  import { DeveloperAccountListResponse } from '../models/DeveloperAccountListResponse';
44
47
  import { DeveloperAccountResponse } from '../models/DeveloperAccountResponse';
45
48
  import { DeveloperAccountResponseExpandable } from '../models/DeveloperAccountResponseExpandable';
49
+ import { DeviceCreateRequest } from '../models/DeviceCreateRequest';
50
+ import { DeviceResponse } from '../models/DeviceResponse';
46
51
  import { EstimateTransactionIntentGasResult } from '../models/EstimateTransactionIntentGasResult';
47
52
  import { EventDeleteResponse } from '../models/EventDeleteResponse';
48
53
  import { EventListResponse } from '../models/EventListResponse';
@@ -54,6 +59,8 @@ import { GasReportTransactionIntentsListResponse } from '../models/GasReportTran
54
59
  import { InventoryListResponse } from '../models/InventoryListResponse';
55
60
  import { InventoryResponse } from '../models/InventoryResponse';
56
61
  import { JwtKeyResponse } from '../models/JwtKeyResponse';
62
+ import { ListResponseAccount } from '../models/ListResponseAccount';
63
+ import { ListResponseSigner } from '../models/ListResponseSigner';
57
64
  import { LoginOIDCRequest } from '../models/LoginOIDCRequest';
58
65
  import { LoginRequest } from '../models/LoginRequest';
59
66
  import { LogoutRequest } from '../models/LogoutRequest';
@@ -95,6 +102,7 @@ import { SessionResponseExpandable } from '../models/SessionResponseExpandable';
95
102
  import { SignPayloadRequest } from '../models/SignPayloadRequest';
96
103
  import { SignPayloadResponse } from '../models/SignPayloadResponse';
97
104
  import { SignatureRequest } from '../models/SignatureRequest';
105
+ import { SignerResponse } from '../models/SignerResponse';
98
106
  import { SignupRequest } from '../models/SignupRequest';
99
107
  import { SortOrder } from '../models/SortOrder';
100
108
  import { StartRecoveryRequest } from '../models/StartRecoveryRequest';
@@ -103,6 +111,7 @@ import { SubscriptionDeleteResponse } from '../models/SubscriptionDeleteResponse
103
111
  import { SubscriptionListResponse } from '../models/SubscriptionListResponse';
104
112
  import { SubscriptionResponse } from '../models/SubscriptionResponse';
105
113
  import { TestTrigger200Response } from '../models/TestTrigger200Response';
114
+ import { ThirdPartyLinkRequest } from '../models/ThirdPartyLinkRequest';
106
115
  import { ThirdPartyOAuthRequest } from '../models/ThirdPartyOAuthRequest';
107
116
  import { TransactionIntentListResponse } from '../models/TransactionIntentListResponse';
108
117
  import { TransactionIntentResponse } from '../models/TransactionIntentResponse';
@@ -141,6 +150,10 @@ export declare class PromiseAccountsApi {
141
150
  * @param createAccountRequest
142
151
  */
143
152
  createAccount(createAccountRequest: CreateAccountRequest, _options?: Configuration): Promise<AccountResponse>;
153
+ /**
154
+ * @param accountCreateRequest
155
+ */
156
+ createAccountV2(accountCreateRequest: AccountCreateRequest, _options?: Configuration): Promise<AccountResponse>;
144
157
  /**
145
158
  * This endpoint can be used to deploy a smart contract account that was counterfactually generated.
146
159
  * Deploy an account.
@@ -148,6 +161,10 @@ export declare class PromiseAccountsApi {
148
161
  * @param deployRequest
149
162
  */
150
163
  deployAccount(id: string, deployRequest: DeployRequest, _options?: Configuration): Promise<AccountResponse>;
164
+ /**
165
+ * @param id
166
+ */
167
+ disableAccount(id: string, _options?: Configuration): Promise<void>;
151
168
  /**
152
169
  * 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. Returns the latest 10 transaction intents created by this account.
153
170
  * Get existing account.
@@ -155,16 +172,28 @@ export declare class PromiseAccountsApi {
155
172
  * @param expand
156
173
  */
157
174
  getAccount(id: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<AccountResponse>;
175
+ /**
176
+ * @param accountId
177
+ */
178
+ getAccountV2(accountId: string, _options?: Configuration): Promise<AccountResponse>;
158
179
  /**
159
180
  * Returns a list of accounts for the given player. This object represents a player\'s account, which is a blockchain smart account that can be used to interact with the blockchain. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. Returns the latest 10 transaction intents for each account. By default, a maximum of 10 accounts are shown per page.
160
181
  * List accounts of a player.
161
- * @param player Specifies the unique player ID (starts with pla_)
162
182
  * @param limit Specifies the maximum number of records to return.
163
183
  * @param skip Specifies the offset for the first records to return.
164
184
  * @param order Specifies the order in which to sort the results.
185
+ * @param player Specifies the unique player ID (starts with pla_)
186
+ * @param address Specifies the address of the account
165
187
  * @param expand Specifies the fields to expand in the response.
166
188
  */
167
- getAccounts(player: string, limit?: number, skip?: number, order?: SortOrder, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<AccountListResponse>;
189
+ getAccounts(limit?: number, skip?: number, order?: SortOrder, player?: string, address?: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<AccountListResponse>;
190
+ /**
191
+ * @param limit
192
+ * @param skip
193
+ * @param order
194
+ * @param accountType
195
+ */
196
+ listAccountsV2(limit?: number, skip?: number, order?: 'asc' | 'desc', accountType?: string, _options?: Configuration): Promise<ListResponseAccount>;
168
197
  /**
169
198
  * 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.
170
199
  * Request transfer ownership of account.
@@ -219,7 +248,7 @@ export declare class PromiseAdminAuthenticationApi {
219
248
  */
220
249
  createOAuthConfig(body: AuthConfig, _options?: Configuration): Promise<AuthConfig>;
221
250
  /**
222
- * Deletes a player auth object. It will delete all linked accounts the player is authenticated with.
251
+ * Deletes a player auth object. It will delete all linked accounts the player is authenticated with. If the player has a linked embedded signer, it will be deleted as well.
223
252
  * Deletes a player auth object.
224
253
  * @param id Specifies the unique player ID (starts with pla_).
225
254
  */
@@ -328,6 +357,12 @@ export declare class PromiseAuthenticationApi {
328
357
  * @param sIWEAuthenticateRequest
329
358
  */
330
359
  linkSIWE(sIWEAuthenticateRequest: SIWEAuthenticateRequest, _options?: Configuration): Promise<AuthPlayerResponse | void>;
360
+ /**
361
+ * Initialize Link OAuth.
362
+ * @param thirdPartyLinkRequest
363
+ * @param xGame
364
+ */
365
+ linkThirdParty(thirdPartyLinkRequest: ThirdPartyLinkRequest, xGame?: string, _options?: Configuration): Promise<AuthPlayerResponse>;
331
366
  /**
332
367
  * Authenticate a player based on email and password.
333
368
  * Email and password login.
@@ -362,6 +397,12 @@ export declare class PromiseAuthenticationApi {
362
397
  * @param refreshTokenRequest
363
398
  */
364
399
  refresh(refreshTokenRequest: RefreshTokenRequest, _options?: Configuration): Promise<AuthResponse>;
400
+ /**
401
+ * Create a guest player.
402
+ * Create a guest player.
403
+ * @param xGame
404
+ */
405
+ registerGuest(xGame?: string, _options?: Configuration): Promise<AuthResponse>;
365
406
  /**
366
407
  * Start the Email Verification process for a player.
367
408
  * Request an Email Verification.
@@ -487,6 +528,28 @@ export declare class PromiseDefaultApi {
487
528
  */
488
529
  list(enabled?: boolean, _options?: Configuration): Promise<AuthProviderListResponse>;
489
530
  }
531
+ import { DevicesApiRequestFactory, DevicesApiResponseProcessor } from "../apis/DevicesApi";
532
+ export declare class PromiseDevicesApi {
533
+ private api;
534
+ constructor(configuration: Configuration, requestFactory?: DevicesApiRequestFactory, responseProcessor?: DevicesApiResponseProcessor);
535
+ /**
536
+ * @param signerId
537
+ * @param deviceCreateRequest
538
+ */
539
+ createDevice(signerId: string, deviceCreateRequest: DeviceCreateRequest, _options?: Configuration): Promise<DeviceResponse>;
540
+ /**
541
+ * @param signerId
542
+ * @param deviceId
543
+ */
544
+ getDevice(signerId: string, deviceId: string, _options?: Configuration): Promise<DeviceResponse>;
545
+ /**
546
+ * @param signerId
547
+ * @param limit
548
+ * @param skip
549
+ * @param order
550
+ */
551
+ listDevices(signerId: string, limit?: number, skip?: number, order?: 'asc' | 'desc', _options?: Configuration): Promise<BaseEntityListResponseDeviceResponse>;
552
+ }
490
553
  import { EventsApiRequestFactory, EventsApiResponseProcessor } from "../apis/EventsApi";
491
554
  export declare class PromiseEventsApi {
492
555
  private api;
@@ -691,6 +754,7 @@ export declare class PromisePlayersApi {
691
754
  */
692
755
  createPlayer(playerCreateRequest: PlayerCreateRequest, _options?: Configuration): Promise<PlayerResponse>;
693
756
  /**
757
+ * It will delete all linked accounts the player is authenticated with. If the player has a linked embedded signer, it will be deleted as well.
694
758
  * Deletes a player object.
695
759
  * @param id Specifies the unique player ID (starts with pla_).
696
760
  */
@@ -794,10 +858,11 @@ export declare class PromisePoliciesApi {
794
858
  /**
795
859
  * List all gas reports of a policy.
796
860
  * @param id Specifies the unique policy ID (starts with pol_).
797
- * @param to The start date of the period in unix timestamp.
798
- * @param _from The end date of the period in unix timestamp.
861
+ * @param limit Specifies the maximum number of records to return.
862
+ * @param skip Specifies the offset for the first records to return.
863
+ * @param order Specifies the order in which to sort the results.
799
864
  */
800
- getPolicyTotalGasUsage(id: string, to?: number, _from?: number, _options?: Configuration): Promise<GasReportListResponse>;
865
+ getPolicyTotalGasUsage(id: string, limit?: number, skip?: number, order?: SortOrder, _options?: Configuration): Promise<GasReportListResponse>;
801
866
  /**
802
867
  * Update a policy object.
803
868
  * @param id Specifies the unique policy ID (starts with pol_).
@@ -924,6 +989,31 @@ export declare class PromiseSettingsApi {
924
989
  */
925
990
  updateDeveloperAccount(id: string, updateDeveloperAccountCreateRequest: UpdateDeveloperAccountCreateRequest, _options?: Configuration): Promise<DeveloperAccountResponse>;
926
991
  }
992
+ import { SignersApiRequestFactory, SignersApiResponseProcessor } from "../apis/SignersApi";
993
+ export declare class PromiseSignersApi {
994
+ private api;
995
+ constructor(configuration: Configuration, requestFactory?: SignersApiRequestFactory, responseProcessor?: SignersApiResponseProcessor);
996
+ /**
997
+ * @param createSignerRequest
998
+ */
999
+ createSigner(createSignerRequest: CreateSignerRequest, _options?: Configuration): Promise<SignerResponse>;
1000
+ /**
1001
+ * @param signerId
1002
+ */
1003
+ exportSigner(signerId: string, _options?: Configuration): Promise<void>;
1004
+ /**
1005
+ * @param signerId
1006
+ */
1007
+ getSigner(signerId: string, _options?: Configuration): Promise<SignerResponse>;
1008
+ /**
1009
+ * @param limit
1010
+ * @param skip
1011
+ * @param order
1012
+ * @param signerType
1013
+ * @param account
1014
+ */
1015
+ listSigners(limit?: number, skip?: number, order?: 'asc' | 'desc', signerType?: string, account?: string, _options?: Configuration): Promise<ListResponseSigner>;
1016
+ }
927
1017
  import { SubscriptionsApiRequestFactory, SubscriptionsApiResponseProcessor } from "../apis/SubscriptionsApi";
928
1018
  export declare class PromiseSubscriptionsApi {
929
1019
  private api;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PromiseTransactionIntentsApi = exports.PromiseSubscriptionsApi = exports.PromiseSettingsApi = exports.PromiseSessionsApi = exports.PromisePolicyRulesApi = exports.PromisePoliciesApi = exports.PromisePlayersApi = exports.PromisePaymasterApi = exports.PromiseInventoriesApi = exports.PromiseForwarderContractApi = exports.PromiseExchangeApi = exports.PromiseEventsApi = exports.PromiseDefaultApi = exports.PromiseContractsApi = exports.PromiseAuthenticationApi = exports.PromiseAdminAuthenticationApi = exports.PromiseAccountsApi = void 0;
3
+ exports.PromiseTransactionIntentsApi = exports.PromiseSubscriptionsApi = exports.PromiseSignersApi = exports.PromiseSettingsApi = exports.PromiseSessionsApi = exports.PromisePolicyRulesApi = exports.PromisePoliciesApi = exports.PromisePlayersApi = exports.PromisePaymasterApi = exports.PromiseInventoriesApi = exports.PromiseForwarderContractApi = exports.PromiseExchangeApi = exports.PromiseEventsApi = exports.PromiseDevicesApi = exports.PromiseDefaultApi = exports.PromiseContractsApi = exports.PromiseAuthenticationApi = exports.PromiseAdminAuthenticationApi = exports.PromiseAccountsApi = void 0;
4
4
  const ObservableAPI_1 = require("./ObservableAPI");
5
5
  class PromiseAccountsApi {
6
6
  constructor(configuration, requestFactory, responseProcessor) {
@@ -34,6 +34,13 @@ class PromiseAccountsApi {
34
34
  const result = this.api.createAccount(createAccountRequest, _options);
35
35
  return result.toPromise();
36
36
  }
37
+ /**
38
+ * @param accountCreateRequest
39
+ */
40
+ createAccountV2(accountCreateRequest, _options) {
41
+ const result = this.api.createAccountV2(accountCreateRequest, _options);
42
+ return result.toPromise();
43
+ }
37
44
  /**
38
45
  * This endpoint can be used to deploy a smart contract account that was counterfactually generated.
39
46
  * Deploy an account.
@@ -44,6 +51,13 @@ class PromiseAccountsApi {
44
51
  const result = this.api.deployAccount(id, deployRequest, _options);
45
52
  return result.toPromise();
46
53
  }
54
+ /**
55
+ * @param id
56
+ */
57
+ disableAccount(id, _options) {
58
+ const result = this.api.disableAccount(id, _options);
59
+ return result.toPromise();
60
+ }
47
61
  /**
48
62
  * 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. Returns the latest 10 transaction intents created by this account.
49
63
  * Get existing account.
@@ -54,17 +68,35 @@ class PromiseAccountsApi {
54
68
  const result = this.api.getAccount(id, expand, _options);
55
69
  return result.toPromise();
56
70
  }
71
+ /**
72
+ * @param accountId
73
+ */
74
+ getAccountV2(accountId, _options) {
75
+ const result = this.api.getAccountV2(accountId, _options);
76
+ return result.toPromise();
77
+ }
57
78
  /**
58
79
  * Returns a list of accounts for the given player. This object represents a player\'s account, which is a blockchain smart account that can be used to interact with the blockchain. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. Returns the latest 10 transaction intents for each account. By default, a maximum of 10 accounts are shown per page.
59
80
  * List accounts of a player.
60
- * @param player Specifies the unique player ID (starts with pla_)
61
81
  * @param limit Specifies the maximum number of records to return.
62
82
  * @param skip Specifies the offset for the first records to return.
63
83
  * @param order Specifies the order in which to sort the results.
84
+ * @param player Specifies the unique player ID (starts with pla_)
85
+ * @param address Specifies the address of the account
64
86
  * @param expand Specifies the fields to expand in the response.
65
87
  */
66
- getAccounts(player, limit, skip, order, expand, _options) {
67
- const result = this.api.getAccounts(player, limit, skip, order, expand, _options);
88
+ getAccounts(limit, skip, order, player, address, expand, _options) {
89
+ const result = this.api.getAccounts(limit, skip, order, player, address, expand, _options);
90
+ return result.toPromise();
91
+ }
92
+ /**
93
+ * @param limit
94
+ * @param skip
95
+ * @param order
96
+ * @param accountType
97
+ */
98
+ listAccountsV2(limit, skip, order, accountType, _options) {
99
+ const result = this.api.listAccountsV2(limit, skip, order, accountType, _options);
68
100
  return result.toPromise();
69
101
  }
70
102
  /**
@@ -147,7 +179,7 @@ class PromiseAdminAuthenticationApi {
147
179
  return result.toPromise();
148
180
  }
149
181
  /**
150
- * Deletes a player auth object. It will delete all linked accounts the player is authenticated with.
182
+ * Deletes a player auth object. It will delete all linked accounts the player is authenticated with. If the player has a linked embedded signer, it will be deleted as well.
151
183
  * Deletes a player auth object.
152
184
  * @param id Specifies the unique player ID (starts with pla_).
153
185
  */
@@ -309,6 +341,15 @@ class PromiseAuthenticationApi {
309
341
  const result = this.api.linkSIWE(sIWEAuthenticateRequest, _options);
310
342
  return result.toPromise();
311
343
  }
344
+ /**
345
+ * Initialize Link OAuth.
346
+ * @param thirdPartyLinkRequest
347
+ * @param xGame
348
+ */
349
+ linkThirdParty(thirdPartyLinkRequest, xGame, _options) {
350
+ const result = this.api.linkThirdParty(thirdPartyLinkRequest, xGame, _options);
351
+ return result.toPromise();
352
+ }
312
353
  /**
313
354
  * Authenticate a player based on email and password.
314
355
  * Email and password login.
@@ -361,6 +402,15 @@ class PromiseAuthenticationApi {
361
402
  const result = this.api.refresh(refreshTokenRequest, _options);
362
403
  return result.toPromise();
363
404
  }
405
+ /**
406
+ * Create a guest player.
407
+ * Create a guest player.
408
+ * @param xGame
409
+ */
410
+ registerGuest(xGame, _options) {
411
+ const result = this.api.registerGuest(xGame, _options);
412
+ return result.toPromise();
413
+ }
364
414
  /**
365
415
  * Start the Email Verification process for a player.
366
416
  * Request an Email Verification.
@@ -546,9 +596,42 @@ class PromiseDefaultApi {
546
596
  }
547
597
  exports.PromiseDefaultApi = PromiseDefaultApi;
548
598
  const ObservableAPI_6 = require("./ObservableAPI");
599
+ class PromiseDevicesApi {
600
+ constructor(configuration, requestFactory, responseProcessor) {
601
+ this.api = new ObservableAPI_6.ObservableDevicesApi(configuration, requestFactory, responseProcessor);
602
+ }
603
+ /**
604
+ * @param signerId
605
+ * @param deviceCreateRequest
606
+ */
607
+ createDevice(signerId, deviceCreateRequest, _options) {
608
+ const result = this.api.createDevice(signerId, deviceCreateRequest, _options);
609
+ return result.toPromise();
610
+ }
611
+ /**
612
+ * @param signerId
613
+ * @param deviceId
614
+ */
615
+ getDevice(signerId, deviceId, _options) {
616
+ const result = this.api.getDevice(signerId, deviceId, _options);
617
+ return result.toPromise();
618
+ }
619
+ /**
620
+ * @param signerId
621
+ * @param limit
622
+ * @param skip
623
+ * @param order
624
+ */
625
+ listDevices(signerId, limit, skip, order, _options) {
626
+ const result = this.api.listDevices(signerId, limit, skip, order, _options);
627
+ return result.toPromise();
628
+ }
629
+ }
630
+ exports.PromiseDevicesApi = PromiseDevicesApi;
631
+ const ObservableAPI_7 = require("./ObservableAPI");
549
632
  class PromiseEventsApi {
550
633
  constructor(configuration, requestFactory, responseProcessor) {
551
- this.api = new ObservableAPI_6.ObservableEventsApi(configuration, requestFactory, responseProcessor);
634
+ this.api = new ObservableAPI_7.ObservableEventsApi(configuration, requestFactory, responseProcessor);
552
635
  }
553
636
  /**
554
637
  * Create a new event.
@@ -592,10 +675,10 @@ class PromiseEventsApi {
592
675
  }
593
676
  }
594
677
  exports.PromiseEventsApi = PromiseEventsApi;
595
- const ObservableAPI_7 = require("./ObservableAPI");
678
+ const ObservableAPI_8 = require("./ObservableAPI");
596
679
  class PromiseExchangeApi {
597
680
  constructor(configuration, requestFactory, responseProcessor) {
598
- this.api = new ObservableAPI_7.ObservableExchangeApi(configuration, requestFactory, responseProcessor);
681
+ this.api = new ObservableAPI_8.ObservableExchangeApi(configuration, requestFactory, responseProcessor);
599
682
  }
600
683
  /**
601
684
  * Creates token swap.
@@ -617,10 +700,10 @@ class PromiseExchangeApi {
617
700
  }
618
701
  }
619
702
  exports.PromiseExchangeApi = PromiseExchangeApi;
620
- const ObservableAPI_8 = require("./ObservableAPI");
703
+ const ObservableAPI_9 = require("./ObservableAPI");
621
704
  class PromiseForwarderContractApi {
622
705
  constructor(configuration, requestFactory, responseProcessor) {
623
- this.api = new ObservableAPI_8.ObservableForwarderContractApi(configuration, requestFactory, responseProcessor);
706
+ this.api = new ObservableAPI_9.ObservableForwarderContractApi(configuration, requestFactory, responseProcessor);
624
707
  }
625
708
  /**
626
709
  * Create a new forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees of the transactions.
@@ -672,10 +755,10 @@ class PromiseForwarderContractApi {
672
755
  }
673
756
  }
674
757
  exports.PromiseForwarderContractApi = PromiseForwarderContractApi;
675
- const ObservableAPI_9 = require("./ObservableAPI");
758
+ const ObservableAPI_10 = require("./ObservableAPI");
676
759
  class PromiseInventoriesApi {
677
760
  constructor(configuration, requestFactory, responseProcessor) {
678
- this.api = new ObservableAPI_9.ObservableInventoriesApi(configuration, requestFactory, responseProcessor);
761
+ this.api = new ObservableAPI_10.ObservableInventoriesApi(configuration, requestFactory, responseProcessor);
679
762
  }
680
763
  /**
681
764
  * For development purposes only. Under higher load scenarios, this endpoint may be rate limited.
@@ -752,10 +835,10 @@ class PromiseInventoriesApi {
752
835
  }
753
836
  }
754
837
  exports.PromiseInventoriesApi = PromiseInventoriesApi;
755
- const ObservableAPI_10 = require("./ObservableAPI");
838
+ const ObservableAPI_11 = require("./ObservableAPI");
756
839
  class PromisePaymasterApi {
757
840
  constructor(configuration, requestFactory, responseProcessor) {
758
- this.api = new ObservableAPI_10.ObservablePaymasterApi(configuration, requestFactory, responseProcessor);
841
+ this.api = new ObservableAPI_11.ObservablePaymasterApi(configuration, requestFactory, responseProcessor);
759
842
  }
760
843
  /**
761
844
  * Create a new paymaster. This object represents the paymaster that will be used to pay the gas fees of the transactions.
@@ -807,10 +890,10 @@ class PromisePaymasterApi {
807
890
  }
808
891
  }
809
892
  exports.PromisePaymasterApi = PromisePaymasterApi;
810
- const ObservableAPI_11 = require("./ObservableAPI");
893
+ const ObservableAPI_12 = require("./ObservableAPI");
811
894
  class PromisePlayersApi {
812
895
  constructor(configuration, requestFactory, responseProcessor) {
813
- this.api = new ObservableAPI_11.ObservablePlayersApi(configuration, requestFactory, responseProcessor);
896
+ this.api = new ObservableAPI_12.ObservablePlayersApi(configuration, requestFactory, responseProcessor);
814
897
  }
815
898
  /**
816
899
  * This endpoint allows you to cancel a pending transfer of ownership.
@@ -832,6 +915,7 @@ class PromisePlayersApi {
832
915
  return result.toPromise();
833
916
  }
834
917
  /**
918
+ * It will delete all linked accounts the player is authenticated with. If the player has a linked embedded signer, it will be deleted as well.
835
919
  * Deletes a player object.
836
920
  * @param id Specifies the unique player ID (starts with pla_).
837
921
  */
@@ -884,10 +968,10 @@ class PromisePlayersApi {
884
968
  }
885
969
  }
886
970
  exports.PromisePlayersApi = PromisePlayersApi;
887
- const ObservableAPI_12 = require("./ObservableAPI");
971
+ const ObservableAPI_13 = require("./ObservableAPI");
888
972
  class PromisePoliciesApi {
889
973
  constructor(configuration, requestFactory, responseProcessor) {
890
- this.api = new ObservableAPI_12.ObservablePoliciesApi(configuration, requestFactory, responseProcessor);
974
+ this.api = new ObservableAPI_13.ObservablePoliciesApi(configuration, requestFactory, responseProcessor);
891
975
  }
892
976
  /**
893
977
  * Create a policy object.
@@ -979,11 +1063,12 @@ class PromisePoliciesApi {
979
1063
  /**
980
1064
  * List all gas reports of a policy.
981
1065
  * @param id Specifies the unique policy ID (starts with pol_).
982
- * @param to The start date of the period in unix timestamp.
983
- * @param _from The end date of the period in unix timestamp.
1066
+ * @param limit Specifies the maximum number of records to return.
1067
+ * @param skip Specifies the offset for the first records to return.
1068
+ * @param order Specifies the order in which to sort the results.
984
1069
  */
985
- getPolicyTotalGasUsage(id, to, _from, _options) {
986
- const result = this.api.getPolicyTotalGasUsage(id, to, _from, _options);
1070
+ getPolicyTotalGasUsage(id, limit, skip, order, _options) {
1071
+ const result = this.api.getPolicyTotalGasUsage(id, limit, skip, order, _options);
987
1072
  return result.toPromise();
988
1073
  }
989
1074
  /**
@@ -997,10 +1082,10 @@ class PromisePoliciesApi {
997
1082
  }
998
1083
  }
999
1084
  exports.PromisePoliciesApi = PromisePoliciesApi;
1000
- const ObservableAPI_13 = require("./ObservableAPI");
1085
+ const ObservableAPI_14 = require("./ObservableAPI");
1001
1086
  class PromisePolicyRulesApi {
1002
1087
  constructor(configuration, requestFactory, responseProcessor) {
1003
- this.api = new ObservableAPI_13.ObservablePolicyRulesApi(configuration, requestFactory, responseProcessor);
1088
+ this.api = new ObservableAPI_14.ObservablePolicyRulesApi(configuration, requestFactory, responseProcessor);
1004
1089
  }
1005
1090
  /**
1006
1091
  * Create a policy rule object.
@@ -1042,10 +1127,10 @@ class PromisePolicyRulesApi {
1042
1127
  }
1043
1128
  }
1044
1129
  exports.PromisePolicyRulesApi = PromisePolicyRulesApi;
1045
- const ObservableAPI_14 = require("./ObservableAPI");
1130
+ const ObservableAPI_15 = require("./ObservableAPI");
1046
1131
  class PromiseSessionsApi {
1047
1132
  constructor(configuration, requestFactory, responseProcessor) {
1048
- this.api = new ObservableAPI_14.ObservableSessionsApi(configuration, requestFactory, responseProcessor);
1133
+ this.api = new ObservableAPI_15.ObservableSessionsApi(configuration, requestFactory, responseProcessor);
1049
1134
  }
1050
1135
  /**
1051
1136
  * Creates a Session.
@@ -1100,10 +1185,10 @@ class PromiseSessionsApi {
1100
1185
  }
1101
1186
  }
1102
1187
  exports.PromiseSessionsApi = PromiseSessionsApi;
1103
- const ObservableAPI_15 = require("./ObservableAPI");
1188
+ const ObservableAPI_16 = require("./ObservableAPI");
1104
1189
  class PromiseSettingsApi {
1105
1190
  constructor(configuration, requestFactory, responseProcessor) {
1106
- this.api = new ObservableAPI_15.ObservableSettingsApi(configuration, requestFactory, responseProcessor);
1191
+ this.api = new ObservableAPI_16.ObservableSettingsApi(configuration, requestFactory, responseProcessor);
1107
1192
  }
1108
1193
  /**
1109
1194
  * Create or add a developer account. Developer accounts can be used as for escrow, minting and transferring assets. To add your own external account, add a signature and the address of the account. This verified account can then be used as a verified depositor
@@ -1167,10 +1252,49 @@ class PromiseSettingsApi {
1167
1252
  }
1168
1253
  }
1169
1254
  exports.PromiseSettingsApi = PromiseSettingsApi;
1170
- const ObservableAPI_16 = require("./ObservableAPI");
1255
+ const ObservableAPI_17 = require("./ObservableAPI");
1256
+ class PromiseSignersApi {
1257
+ constructor(configuration, requestFactory, responseProcessor) {
1258
+ this.api = new ObservableAPI_17.ObservableSignersApi(configuration, requestFactory, responseProcessor);
1259
+ }
1260
+ /**
1261
+ * @param createSignerRequest
1262
+ */
1263
+ createSigner(createSignerRequest, _options) {
1264
+ const result = this.api.createSigner(createSignerRequest, _options);
1265
+ return result.toPromise();
1266
+ }
1267
+ /**
1268
+ * @param signerId
1269
+ */
1270
+ exportSigner(signerId, _options) {
1271
+ const result = this.api.exportSigner(signerId, _options);
1272
+ return result.toPromise();
1273
+ }
1274
+ /**
1275
+ * @param signerId
1276
+ */
1277
+ getSigner(signerId, _options) {
1278
+ const result = this.api.getSigner(signerId, _options);
1279
+ return result.toPromise();
1280
+ }
1281
+ /**
1282
+ * @param limit
1283
+ * @param skip
1284
+ * @param order
1285
+ * @param signerType
1286
+ * @param account
1287
+ */
1288
+ listSigners(limit, skip, order, signerType, account, _options) {
1289
+ const result = this.api.listSigners(limit, skip, order, signerType, account, _options);
1290
+ return result.toPromise();
1291
+ }
1292
+ }
1293
+ exports.PromiseSignersApi = PromiseSignersApi;
1294
+ const ObservableAPI_18 = require("./ObservableAPI");
1171
1295
  class PromiseSubscriptionsApi {
1172
1296
  constructor(configuration, requestFactory, responseProcessor) {
1173
- this.api = new ObservableAPI_16.ObservableSubscriptionsApi(configuration, requestFactory, responseProcessor);
1297
+ this.api = new ObservableAPI_18.ObservableSubscriptionsApi(configuration, requestFactory, responseProcessor);
1174
1298
  }
1175
1299
  /**
1176
1300
  * Creates a subscription for the given project. This object represents the subscription where the project owner has subscribed to.
@@ -1273,10 +1397,10 @@ class PromiseSubscriptionsApi {
1273
1397
  }
1274
1398
  }
1275
1399
  exports.PromiseSubscriptionsApi = PromiseSubscriptionsApi;
1276
- const ObservableAPI_17 = require("./ObservableAPI");
1400
+ const ObservableAPI_19 = require("./ObservableAPI");
1277
1401
  class PromiseTransactionIntentsApi {
1278
1402
  constructor(configuration, requestFactory, responseProcessor) {
1279
- this.api = new ObservableAPI_17.ObservableTransactionIntentsApi(configuration, requestFactory, responseProcessor);
1403
+ this.api = new ObservableAPI_19.ObservableTransactionIntentsApi(configuration, requestFactory, responseProcessor);
1280
1404
  }
1281
1405
  /**
1282
1406
  * 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.