@openfort/openfort-node 0.6.33 → 0.6.34

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 (101) hide show
  1. package/README.md +24 -0
  2. package/dist/apis/playersApiWrapper.d.ts +1 -21
  3. package/dist/apis/playersApiWrapper.js +0 -31
  4. package/dist/apis/playersApiWrapper.js.map +1 -1
  5. package/dist/apis/policiesApiWrapper.d.ts +1 -16
  6. package/dist/apis/policiesApiWrapper.js +0 -23
  7. package/dist/apis/policiesApiWrapper.js.map +1 -1
  8. package/dist/generated/apis/AccountsApi.d.ts +9 -9
  9. package/dist/generated/apis/AccountsApi.js +9 -9
  10. package/dist/generated/apis/InventoriesApi.d.ts +0 -28
  11. package/dist/generated/apis/InventoriesApi.js +0 -111
  12. package/dist/generated/apis/InventoriesApi.js.map +1 -1
  13. package/dist/generated/apis/PlayersApi.d.ts +2 -64
  14. package/dist/generated/apis/PlayersApi.js +2 -249
  15. package/dist/generated/apis/PlayersApi.js.map +1 -1
  16. package/dist/generated/apis/PoliciesApi.d.ts +2 -47
  17. package/dist/generated/apis/PoliciesApi.js +2 -197
  18. package/dist/generated/apis/PoliciesApi.js.map +1 -1
  19. package/dist/generated/apis/SessionsApi.d.ts +4 -1
  20. package/dist/generated/apis/SessionsApi.js +4 -1
  21. package/dist/generated/apis/SessionsApi.js.map +1 -1
  22. package/dist/generated/apis/TransactionIntentsApi.d.ts +6 -4
  23. package/dist/generated/apis/TransactionIntentsApi.js +6 -4
  24. package/dist/generated/apis/TransactionIntentsApi.js.map +1 -1
  25. package/dist/generated/models/CancelTransferOwnershipRequest.d.ts +1 -1
  26. package/dist/generated/models/CreateAccountRequest.d.ts +6 -6
  27. package/dist/generated/models/CreateContractRequest.d.ts +1 -1
  28. package/dist/generated/models/CreatePolicyRequest.d.ts +1 -1
  29. package/dist/generated/models/CreatePolicyRuleRequest.d.ts +2 -2
  30. package/dist/generated/models/CreateSessionRequest.d.ts +3 -3
  31. package/dist/generated/models/CreateTransactionIntentRequest.d.ts +8 -8
  32. package/dist/generated/models/CreateWeb3ConnectionRequest.d.ts +2 -2
  33. package/dist/generated/models/Interaction.d.ts +5 -5
  34. package/dist/generated/models/NextActionPayload.d.ts +8 -0
  35. package/dist/generated/models/NextActionPayload.js +12 -0
  36. package/dist/generated/models/NextActionPayload.js.map +1 -1
  37. package/dist/generated/models/ObjectSerializer.d.ts +0 -7
  38. package/dist/generated/models/ObjectSerializer.js +0 -20
  39. package/dist/generated/models/ObjectSerializer.js.map +1 -1
  40. package/dist/generated/models/PlayerCancelTransferOwnershipRequest.d.ts +2 -2
  41. package/dist/generated/models/PlayerTransferOwnershipRequest.d.ts +3 -3
  42. package/dist/generated/models/ResponseResponse.d.ts +0 -1
  43. package/dist/generated/models/ResponseResponse.js +0 -6
  44. package/dist/generated/models/ResponseResponse.js.map +1 -1
  45. package/dist/generated/models/RevokeSessionRequest.d.ts +2 -2
  46. package/dist/generated/models/SignatureRequest.d.ts +1 -1
  47. package/dist/generated/models/SubmitWeb3ActionRequest.d.ts +1 -1
  48. package/dist/generated/models/TransactionIntentListQueries.d.ts +1 -1
  49. package/dist/generated/models/TransactionIntentResponseAccount.d.ts +1 -1
  50. package/dist/generated/models/TransactionIntentResponseAccount.js +1 -1
  51. package/dist/generated/models/TransactionIntentResponseExpandable.d.ts +1 -1
  52. package/dist/generated/models/TransferOwnershipRequest.d.ts +1 -1
  53. package/dist/generated/models/UpdateContractRequest.d.ts +1 -1
  54. package/dist/generated/models/UpdatePolicyRequest.d.ts +1 -1
  55. package/dist/generated/models/UpdatePolicyRuleRequest.d.ts +2 -2
  56. package/dist/generated/models/all.d.ts +0 -7
  57. package/dist/generated/models/all.js +0 -7
  58. package/dist/generated/models/all.js.map +1 -1
  59. package/dist/generated/types/ObjectParamAPI.d.ts +23 -191
  60. package/dist/generated/types/ObjectParamAPI.js +19 -74
  61. package/dist/generated/types/ObjectParamAPI.js.map +1 -1
  62. package/dist/generated/types/ObservableAPI.d.ts +23 -74
  63. package/dist/generated/types/ObservableAPI.js +23 -204
  64. package/dist/generated/types/ObservableAPI.js.map +1 -1
  65. package/dist/generated/types/PromiseAPI.d.ts +23 -74
  66. package/dist/generated/types/PromiseAPI.js +23 -96
  67. package/dist/generated/types/PromiseAPI.js.map +1 -1
  68. package/dist/models/index.d.ts +0 -2
  69. package/dist/models/index.js +0 -1
  70. package/dist/models/index.js.map +1 -1
  71. package/dist/version.d.ts +1 -1
  72. package/dist/version.js +1 -1
  73. package/package.json +1 -1
  74. package/tsconfig.tsbuildinfo +1 -1
  75. package/dist/generated/models/CreatePlayerAccountRequest.d.ts +0 -47
  76. package/dist/generated/models/CreatePlayerAccountRequest.js +0 -56
  77. package/dist/generated/models/CreatePlayerAccountRequest.js.map +0 -1
  78. package/dist/generated/models/CreatePlayerSessionRequest.d.ts +0 -63
  79. package/dist/generated/models/CreatePlayerSessionRequest.js +0 -80
  80. package/dist/generated/models/CreatePlayerSessionRequest.js.map +0 -1
  81. package/dist/generated/models/CreatePolicyAllowFunctionRequest.d.ts +0 -51
  82. package/dist/generated/models/CreatePolicyAllowFunctionRequest.js +0 -68
  83. package/dist/generated/models/CreatePolicyAllowFunctionRequest.js.map +0 -1
  84. package/dist/generated/models/ObsoleteAssetInventory.d.ts +0 -36
  85. package/dist/generated/models/ObsoleteAssetInventory.js +0 -56
  86. package/dist/generated/models/ObsoleteAssetInventory.js.map +0 -1
  87. package/dist/generated/models/ObsoleteAssetType.d.ts +0 -12
  88. package/dist/generated/models/ObsoleteAssetType.js +0 -14
  89. package/dist/generated/models/ObsoleteAssetType.js.map +0 -1
  90. package/dist/generated/models/ObsoleteInventoryResponse.d.ts +0 -33
  91. package/dist/generated/models/ObsoleteInventoryResponse.js +0 -50
  92. package/dist/generated/models/ObsoleteInventoryResponse.js.map +0 -1
  93. package/dist/generated/models/RevokeSessionPlayerRequest.d.ts +0 -43
  94. package/dist/generated/models/RevokeSessionPlayerRequest.js +0 -50
  95. package/dist/generated/models/RevokeSessionPlayerRequest.js.map +0 -1
  96. package/dist/models/createPlayerSessionRequest.d.ts +0 -4
  97. package/dist/models/createPlayerSessionRequest.js +0 -3
  98. package/dist/models/createPlayerSessionRequest.js.map +0 -1
  99. package/dist/models/revokePlayerSessionRequest.d.ts +0 -4
  100. package/dist/models/revokePlayerSessionRequest.js +0 -3
  101. package/dist/models/revokePlayerSessionRequest.js.map +0 -1
package/README.md CHANGED
@@ -1,3 +1,27 @@
1
+ ![Openfort Protocol][banner-image]
2
+
3
+ <div align="center">
4
+ <h4>
5
+ <a href="https://www.openfort.xyz/">
6
+ Website
7
+ </a>
8
+ <span> | </span>
9
+ <a href="https://www.openfort.xyz/docs">
10
+ Documentation
11
+ </a>
12
+ <span> | </span>
13
+ <a href="https://www.openfort.xyz/docs/reference/api/authentication">
14
+ API Docs
15
+ </a>
16
+ <span> | </span>
17
+ <a href="https://twitter.com/openfortxyz">
18
+ Twitter
19
+ </a>
20
+ </h4>
21
+ </div>
22
+
23
+ [banner-image]: https://blog-cms.openfort.xyz/uploads/nodejs_d651988940.png
24
+
1
25
  # Openfort Node.js Library
2
26
 
3
27
  [![Version](https://img.shields.io/npm/v/@openfort/openfort-node.svg)](https://www.npmjs.org/package/@openfort/openfort-node)
@@ -1,4 +1,4 @@
1
- import { AccountListQueries, AccountListResponse, AccountResponse, CreateAccountRequest, CreatePlayerSessionRequest, GetPlayerRequest, PlayerCancelTransferOwnershipRequest, PlayerCreateRequest, PlayerDeleteResponse, PlayerListQueries, PlayerListResponse, PlayerResponse, PlayerTransferOwnershipRequest, RevokePlayerSessionRequest, SessionResponse, TransactionIntentResponse, UpdatePlayerRequest } from "../models";
1
+ import { GetPlayerRequest, PlayerCancelTransferOwnershipRequest, PlayerCreateRequest, PlayerDeleteResponse, PlayerListQueries, PlayerListResponse, PlayerResponse, PlayerTransferOwnershipRequest, TransactionIntentResponse, UpdatePlayerRequest } from "../models";
2
2
  import { BaseApiWrapper } from "./baseApiWrapper";
3
3
  import { PlayersApi } from "../generated";
4
4
  export declare class PlayersApiWrapper extends BaseApiWrapper<PlayersApi> {
@@ -8,36 +8,16 @@ export declare class PlayersApiWrapper extends BaseApiWrapper<PlayersApi> {
8
8
  * @param req Parameters to create a player
9
9
  */
10
10
  create(req: PlayerCreateRequest): Promise<PlayerResponse>;
11
- /**
12
- * Creates an account object for an existing player.
13
- * @param req Parameters to create a player account.
14
- */
15
- createAccount(req: CreateAccountRequest): Promise<AccountResponse>;
16
- /**
17
- * Creates a session object for the given player.
18
- * @param req Parameters to create a player session.
19
- */
20
- createSession(req: CreatePlayerSessionRequest): Promise<SessionResponse>;
21
11
  /**
22
12
  * Retrieves the details of an existing player. Supply the unique player ID from either a player creation request or the player list, and Openfort will return the corresponding player information.
23
13
  * @param req Criteria to get the player.
24
14
  */
25
15
  get(req: GetPlayerRequest): Promise<PlayerResponse>;
26
- /**
27
- * Returns a list of your accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
28
- * @param req Criteria to get the accounts list.
29
- */
30
- listAccounts(req: Pick<AccountListQueries, "player" | "expand">): Promise<AccountListResponse>;
31
16
  /**
32
17
  * Returns a list of your players. The players are returned sorted by creation date, with the most recently created players appearing first.
33
18
  * @param req Criteria to retrieve the list of the players
34
19
  */
35
20
  list(req?: PlayerListQueries): Promise<PlayerListResponse>;
36
- /**
37
- * Creates a session object for the given player.
38
- * @param req Parameters to revoce the player session.
39
- */
40
- revokeSession(req: RevokePlayerSessionRequest): Promise<SessionResponse>;
41
21
  /**
42
22
  * Transfer ownership of an account to an address.
43
23
  * @param req Parameters to transfer account ownership.
@@ -24,22 +24,6 @@ let PlayersApiWrapper = class PlayersApiWrapper extends baseApiWrapper_1.BaseApi
24
24
  async create(req) {
25
25
  return await this.api.createPlayer(req);
26
26
  }
27
- /**
28
- * Creates an account object for an existing player.
29
- * @param req Parameters to create a player account.
30
- */
31
- async createAccount(req) {
32
- const { player, ...body } = req;
33
- return await this.api.createPlayerAccount(player, body);
34
- }
35
- /**
36
- * Creates a session object for the given player.
37
- * @param req Parameters to create a player session.
38
- */
39
- async createSession(req) {
40
- const { playerId, ...body } = req;
41
- return await this.api.createPlayerSession(playerId, body);
42
- }
43
27
  /**
44
28
  * Retrieves the details of an existing player. Supply the unique player ID from either a player creation request or the player list, and Openfort will return the corresponding player information.
45
29
  * @param req Criteria to get the player.
@@ -47,13 +31,6 @@ let PlayersApiWrapper = class PlayersApiWrapper extends baseApiWrapper_1.BaseApi
47
31
  async get(req) {
48
32
  return await this.api.getPlayer(req.id, req.expand);
49
33
  }
50
- /**
51
- * Returns a list of your accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
52
- * @param req Criteria to get the accounts list.
53
- */
54
- async listAccounts(req) {
55
- return await this.api.getPlayerAccounts(req.player, req.expand);
56
- }
57
34
  /**
58
35
  * Returns a list of your players. The players are returned sorted by creation date, with the most recently created players appearing first.
59
36
  * @param req Criteria to retrieve the list of the players
@@ -61,14 +38,6 @@ let PlayersApiWrapper = class PlayersApiWrapper extends baseApiWrapper_1.BaseApi
61
38
  async list(req) {
62
39
  return await this.api.getPlayers(req?.limit, req?.skip, req?.order, req?.expand, req?.name);
63
40
  }
64
- /**
65
- * Creates a session object for the given player.
66
- * @param req Parameters to revoce the player session.
67
- */
68
- async revokeSession(req) {
69
- const { playerId, ...body } = req;
70
- return await this.api.revokePlayerSession(playerId, body);
71
- }
72
41
  /**
73
42
  * Transfer ownership of an account to an address.
74
43
  * @param req Parameters to transfer account ownership.
@@ -1 +1 @@
1
- {"version":3,"file":"playersApiWrapper.js","sourceRoot":"","sources":["../../src/apis/playersApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAmBA,qDAAkD;AAClD,4CAA0C;AAC1C,oEAAiE;AAG1D,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+BAA0B;IAC7D,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,sBAAU,EAAE,WAAW,EAAE,QAAQ,C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AAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,EAAU;QAC1B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAC3C,CAAC;CACJ,CAAA;AAnEY,iBAAiB;IAD7B,mCAAgB;;GACJ,iBAAiB,CAmE7B;AAnEY,8CAAiB"}
@@ -1,4 +1,4 @@
1
- import { CreatePolicyRequest, CreatePolicyRuleRequest, GasReport, GetAllowFunctionsRequest, GetPolicyRequest, GetPolicyTotalGasUsageRequest, PolicyListResponse, PolicyDeleteResponse, PolicyResponse, PolicyRuleResponse, PolicyRuleListResponse, UpdatePolicyAllowFunctionRequest, UpdatePolicyRequest, PolicyListQueries } from "../models";
1
+ import { CreatePolicyRequest, GasReport, GetPolicyRequest, GetPolicyTotalGasUsageRequest, PolicyListResponse, PolicyDeleteResponse, PolicyResponse, UpdatePolicyRequest, PolicyListQueries } from "../models";
2
2
  import { BaseApiWrapper } from "./baseApiWrapper";
3
3
  import { PoliciesApi } from "../generated";
4
4
  export declare class PoliciesApiWrapper extends BaseApiWrapper<PoliciesApi> {
@@ -13,11 +13,6 @@ export declare class PoliciesApiWrapper extends BaseApiWrapper<PoliciesApi> {
13
13
  * @param req parameters to create
14
14
  */
15
15
  update(req: UpdatePolicyRequest): Promise<PolicyResponse>;
16
- /**
17
- * Creates allow function
18
- * @param req parameters to create
19
- */
20
- createAllowFunction(req: CreatePolicyRuleRequest): Promise<PolicyRuleResponse>;
21
16
  /**
22
17
  * Deletes a policy object.
23
18
  * @param id
@@ -43,19 +38,9 @@ export declare class PoliciesApiWrapper extends BaseApiWrapper<PoliciesApi> {
43
38
  * @param req Criteria to retrieve the policy by
44
39
  */
45
40
  get(req: GetPolicyRequest): Promise<PolicyResponse>;
46
- /**
47
- * Gets allows functions
48
- * @param req Criteria to get allow functions
49
- */
50
- getAllowFunctions(req: GetAllowFunctionsRequest): Promise<PolicyRuleListResponse>;
51
41
  /**
52
42
  * Get policy total gas usage
53
43
  * @param req Criteria to get usage
54
44
  */
55
45
  getPolicyTotalGasUsage(req: GetPolicyTotalGasUsageRequest): Promise<GasReport>;
56
- /**
57
- * Update policy allow function
58
- * @param req Parameters to update
59
- */
60
- updateAllowFunction(req: UpdatePolicyAllowFunctionRequest): Promise<PolicyRuleResponse>;
61
46
  }
@@ -32,14 +32,6 @@ let PoliciesApiWrapper = class PoliciesApiWrapper extends baseApiWrapper_1.BaseA
32
32
  const { id, ...body } = req;
33
33
  return await this.api.updatePolicy(id, body);
34
34
  }
35
- /**
36
- * Creates allow function
37
- * @param req parameters to create
38
- */
39
- async createAllowFunction(req) {
40
- const { policy, ...body } = req;
41
- return await this.api.createPolicyAllowFunction(policy, body);
42
- }
43
35
  /**
44
36
  * Deletes a policy object.
45
37
  * @param id
@@ -75,13 +67,6 @@ let PoliciesApiWrapper = class PoliciesApiWrapper extends baseApiWrapper_1.BaseA
75
67
  async get(req) {
76
68
  return await this.api.getPolicy(req.id, req.expand);
77
69
  }
78
- /**
79
- * Gets allows functions
80
- * @param req Criteria to get allow functions
81
- */
82
- async getAllowFunctions(req) {
83
- return await this.api.getPolicyAllowFunctions(req.id, req.expand);
84
- }
85
70
  /**
86
71
  * Get policy total gas usage
87
72
  * @param req Criteria to get usage
@@ -89,14 +74,6 @@ let PoliciesApiWrapper = class PoliciesApiWrapper extends baseApiWrapper_1.BaseA
89
74
  async getPolicyTotalGasUsage(req) {
90
75
  return await this.api.getPolicyTotalGasUsage(req.id);
91
76
  }
92
- /**
93
- * Update policy allow function
94
- * @param req Parameters to update
95
- */
96
- async updateAllowFunction(req) {
97
- const { policy, policyRule, ...body } = req;
98
- return await this.api.updatePolicyAllowFunction(policy, policyRule, body);
99
- }
100
77
  };
101
78
  PoliciesApiWrapper = __decorate([
102
79
  httpErrorHandler_1.httpErrorHandler,
@@ -1 +1 @@
1
- {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EAAE,OAAO,CACf,CAAC;IACN,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,GAAG,CAAC,GAAqB;QAClC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,sBAAsB,CAAC,GAAkC;QAClE,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACzD,CAAC;CACJ,CAAA;AA5EY,kBAAkB;IAD9B,mCAAgB;;GACJ,kBAAkB,CA4E9B;AA5EY,gDAAkB"}
@@ -19,9 +19,9 @@ import { TransferOwnershipRequest } from '../models/TransferOwnershipRequest';
19
19
  */
20
20
  export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
21
21
  /**
22
- * This endpoint allows you to cancel a pending transfer of ownership.
22
+ * Cancel a pending transfer of ownership.
23
23
  * Cancel request to transfer ownership of an account.
24
- * @param id Specifies the unique account ID.
24
+ * @param id Specifies the unique account ID (starts with acc_).
25
25
  * @param cancelTransferOwnershipRequest
26
26
  */
27
27
  cancelTransferOwnership(id: string, cancelTransferOwnershipRequest: CancelTransferOwnershipRequest, _options?: Configuration): Promise<RequestContext>;
@@ -32,7 +32,7 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
32
32
  */
33
33
  completeRecovery(id: string, completeRecoveryRequest: CompleteRecoveryRequest, _options?: Configuration): Promise<RequestContext>;
34
34
  /**
35
- * This endpoint allows you to add a new account to your Openfort player. Only one account can be active per chain per player.
35
+ * 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.
36
36
  * Create an account object.
37
37
  * @param createAccountRequest
38
38
  */
@@ -45,14 +45,14 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
45
45
  */
46
46
  deployAccount(id: string, deployRequest: DeployRequest, _options?: Configuration): Promise<RequestContext>;
47
47
  /**
48
- * 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.
48
+ * 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.
49
49
  * Get existing account.
50
50
  * @param id Specifies the unique account ID (starts with acc_).
51
51
  * @param expand
52
52
  */
53
53
  getAccount(id: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<RequestContext>;
54
54
  /**
55
- * 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.
55
+ * 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.
56
56
  * List accounts of a player.
57
57
  * @param player Specifies the unique player ID (starts with pla_)
58
58
  * @param limit Specifies the maximum number of records to return.
@@ -62,16 +62,16 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
62
62
  */
63
63
  getAccounts(player: string, limit?: number, skip?: number, order?: SortOrder, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<RequestContext>;
64
64
  /**
65
- * 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.
65
+ * 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.
66
66
  * Request transfer ownership of account.
67
- * @param id Specifies the unique account ID.
67
+ * @param id Specifies the unique account ID (starts with acc_).
68
68
  * @param transferOwnershipRequest
69
69
  */
70
70
  requestTransferOwnership(id: string, transferOwnershipRequest: TransferOwnershipRequest, _options?: Configuration): Promise<RequestContext>;
71
71
  /**
72
72
  * Signs the typed data value with types data structure for domain using the [EIP-712](https://eips.ethereum.org/EIPS/eip-712) specification.
73
73
  * Sign a given payload
74
- * @param id Specifies the unique account ID.
74
+ * @param id Specifies the unique account ID (starts with acc_).
75
75
  * @param signPayloadRequest
76
76
  */
77
77
  signPayload(id: string, signPayloadRequest: SignPayloadRequest, _options?: Configuration): Promise<RequestContext>;
@@ -82,7 +82,7 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
82
82
  */
83
83
  startRecovery(id: string, startRecoveryRequest: StartRecoveryRequest, _options?: Configuration): Promise<RequestContext>;
84
84
  /**
85
- * This endpoint updates the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
85
+ * Synchronize the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
86
86
  * Sync account state with the blockchain
87
87
  * @param id Specifies the unique account ID (starts with acc_).
88
88
  */
@@ -12,9 +12,9 @@ const util_1 = require("../util");
12
12
  */
13
13
  class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
14
14
  /**
15
- * This endpoint allows you to cancel a pending transfer of ownership.
15
+ * Cancel a pending transfer of ownership.
16
16
  * Cancel request to transfer ownership of an account.
17
- * @param id Specifies the unique account ID.
17
+ * @param id Specifies the unique account ID (starts with acc_).
18
18
  * @param cancelTransferOwnershipRequest
19
19
  */
20
20
  async cancelTransferOwnership(id, cancelTransferOwnershipRequest, _options) {
@@ -93,7 +93,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
93
93
  return requestContext;
94
94
  }
95
95
  /**
96
- * This endpoint allows you to add a new account to your Openfort player. Only one account can be active per chain per player.
96
+ * 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.
97
97
  * Create an account object.
98
98
  * @param createAccountRequest
99
99
  */
@@ -169,7 +169,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
169
169
  return requestContext;
170
170
  }
171
171
  /**
172
- * 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.
172
+ * 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.
173
173
  * Get existing account.
174
174
  * @param id Specifies the unique account ID (starts with acc_).
175
175
  * @param expand
@@ -203,7 +203,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
203
203
  return requestContext;
204
204
  }
205
205
  /**
206
- * 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.
206
+ * 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.
207
207
  * List accounts of a player.
208
208
  * @param player Specifies the unique player ID (starts with pla_)
209
209
  * @param limit Specifies the maximum number of records to return.
@@ -255,9 +255,9 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
255
255
  return requestContext;
256
256
  }
257
257
  /**
258
- * 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.
258
+ * 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.
259
259
  * Request transfer ownership of account.
260
- * @param id Specifies the unique account ID.
260
+ * @param id Specifies the unique account ID (starts with acc_).
261
261
  * @param transferOwnershipRequest
262
262
  */
263
263
  async requestTransferOwnership(id, transferOwnershipRequest, _options) {
@@ -298,7 +298,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
298
298
  /**
299
299
  * Signs the typed data value with types data structure for domain using the [EIP-712](https://eips.ethereum.org/EIPS/eip-712) specification.
300
300
  * Sign a given payload
301
- * @param id Specifies the unique account ID.
301
+ * @param id Specifies the unique account ID (starts with acc_).
302
302
  * @param signPayloadRequest
303
303
  */
304
304
  async signPayload(id, signPayloadRequest, _options) {
@@ -377,7 +377,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
377
377
  return requestContext;
378
378
  }
379
379
  /**
380
- * This endpoint updates the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
380
+ * Synchronize the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
381
381
  * Sync account state with the blockchain
382
382
  * @param id Specifies the unique account ID (starts with acc_).
383
383
  */
@@ -3,7 +3,6 @@ import { Configuration } from '../configuration';
3
3
  import { RequestContext, ResponseContext } from '../http/http';
4
4
  import { InventoryListResponse } from '../models/InventoryListResponse';
5
5
  import { InventoryResponse } from '../models/InventoryResponse';
6
- import { ObsoleteInventoryResponse } from '../models/ObsoleteInventoryResponse';
7
6
  import { SortOrder } from '../models/SortOrder';
8
7
  /**
9
8
  * no description
@@ -18,11 +17,6 @@ export declare class InventoriesApiRequestFactory extends BaseAPIRequestFactory
18
17
  * @param contractId
19
18
  */
20
19
  getAccountCryptoCurrencyInventory(id: string, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<RequestContext>;
21
- /**
22
- * Get inventory of account.
23
- * @param id Specifies the unique account ID (starts with acc_).
24
- */
25
- getAccountInventory(id: string, _options?: Configuration): Promise<RequestContext>;
26
20
  /**
27
21
  * Retrieves the native asset of an existing account.
28
22
  * @param id Specifies the unique account ID.
@@ -47,12 +41,6 @@ export declare class InventoriesApiRequestFactory extends BaseAPIRequestFactory
47
41
  * @param contractId Filter by contract ID (starts with con_).
48
42
  */
49
43
  getPlayerCryptoCurrencyInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<RequestContext>;
50
- /**
51
- * Get inventory of player.
52
- * @param id Specifies the unique player ID (starts with pla_).
53
- * @param chainId Filter by chain id.
54
- */
55
- getPlayerInventory(id: string, chainId: number, _options?: Configuration): Promise<RequestContext>;
56
44
  /**
57
45
  * Get native token list of player.
58
46
  * @param id Specifies the unique player ID (starts with pla_).
@@ -79,14 +67,6 @@ export declare class InventoriesApiResponseProcessor {
79
67
  * @throws ApiException if the response code was not in [200, 299]
80
68
  */
81
69
  getAccountCryptoCurrencyInventory(response: ResponseContext): Promise<InventoryListResponse>;
82
- /**
83
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
84
- * to the expected objects
85
- *
86
- * @params response Response returned by the server for a request to getAccountInventory
87
- * @throws ApiException if the response code was not in [200, 299]
88
- */
89
- getAccountInventory(response: ResponseContext): Promise<ObsoleteInventoryResponse>;
90
70
  /**
91
71
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
92
72
  * to the expected objects
@@ -111,14 +91,6 @@ export declare class InventoriesApiResponseProcessor {
111
91
  * @throws ApiException if the response code was not in [200, 299]
112
92
  */
113
93
  getPlayerCryptoCurrencyInventory(response: ResponseContext): Promise<InventoryListResponse>;
114
- /**
115
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
116
- * to the expected objects
117
- *
118
- * @params response Response returned by the server for a request to getPlayerInventory
119
- * @throws ApiException if the response code was not in [200, 299]
120
- */
121
- getPlayerInventory(response: ResponseContext): Promise<ObsoleteInventoryResponse>;
122
94
  /**
123
95
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
124
96
  * to the expected objects
@@ -59,34 +59,6 @@ class InventoriesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
59
59
  }
60
60
  return requestContext;
61
61
  }
62
- /**
63
- * Get inventory of account.
64
- * @param id Specifies the unique account ID (starts with acc_).
65
- */
66
- async getAccountInventory(id, _options) {
67
- let _config = _options || this.configuration;
68
- // verify required parameter 'id' is not null or undefined
69
- if (id === null || id === undefined) {
70
- throw new baseapi_1.RequiredError("InventoriesApi", "getAccountInventory", "id");
71
- }
72
- // Path Params
73
- const localVarPath = '/v1/accounts/{id}/inventory'
74
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
75
- // Make Request Context
76
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
77
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
78
- let authMethod;
79
- // Apply auth methods
80
- authMethod = _config.authMethods["sk"];
81
- if (authMethod?.applySecurityAuthentication) {
82
- await authMethod?.applySecurityAuthentication(requestContext);
83
- }
84
- const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
85
- if (defaultAuth?.applySecurityAuthentication) {
86
- await defaultAuth?.applySecurityAuthentication(requestContext);
87
- }
88
- return requestContext;
89
- }
90
62
  /**
91
63
  * Retrieves the native asset of an existing account.
92
64
  * @param id Specifies the unique account ID.
@@ -220,43 +192,6 @@ class InventoriesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
220
192
  }
221
193
  return requestContext;
222
194
  }
223
- /**
224
- * Get inventory of player.
225
- * @param id Specifies the unique player ID (starts with pla_).
226
- * @param chainId Filter by chain id.
227
- */
228
- async getPlayerInventory(id, chainId, _options) {
229
- let _config = _options || this.configuration;
230
- // verify required parameter 'id' is not null or undefined
231
- if (id === null || id === undefined) {
232
- throw new baseapi_1.RequiredError("InventoriesApi", "getPlayerInventory", "id");
233
- }
234
- // verify required parameter 'chainId' is not null or undefined
235
- if (chainId === null || chainId === undefined) {
236
- throw new baseapi_1.RequiredError("InventoriesApi", "getPlayerInventory", "chainId");
237
- }
238
- // Path Params
239
- const localVarPath = '/v1/players/{id}/inventory'
240
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
241
- // Make Request Context
242
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
243
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
244
- // Query Params
245
- if (chainId !== undefined) {
246
- requestContext.setQueryParam("chainId", ObjectSerializer_1.ObjectSerializer.serialize(chainId, "number", "int32"));
247
- }
248
- let authMethod;
249
- // Apply auth methods
250
- authMethod = _config.authMethods["sk"];
251
- if (authMethod?.applySecurityAuthentication) {
252
- await authMethod?.applySecurityAuthentication(requestContext);
253
- }
254
- const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
255
- if (defaultAuth?.applySecurityAuthentication) {
256
- await defaultAuth?.applySecurityAuthentication(requestContext);
257
- }
258
- return requestContext;
259
- }
260
195
  /**
261
196
  * Get native token list of player.
262
197
  * @param id Specifies the unique player ID (starts with pla_).
@@ -377,29 +312,6 @@ class InventoriesApiResponseProcessor {
377
312
  }
378
313
  throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
379
314
  }
380
- /**
381
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
382
- * to the expected objects
383
- *
384
- * @params response Response returned by the server for a request to getAccountInventory
385
- * @throws ApiException if the response code was not in [200, 299]
386
- */
387
- async getAccountInventory(response) {
388
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
389
- if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
390
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ObsoleteInventoryResponse", "");
391
- return body;
392
- }
393
- if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
394
- throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
395
- }
396
- // Work around for missing responses in specification, e.g. for petstore.yaml
397
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
398
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ObsoleteInventoryResponse", "");
399
- return body;
400
- }
401
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
402
- }
403
315
  /**
404
316
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
405
317
  * to the expected objects
@@ -469,29 +381,6 @@ class InventoriesApiResponseProcessor {
469
381
  }
470
382
  throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
471
383
  }
472
- /**
473
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
474
- * to the expected objects
475
- *
476
- * @params response Response returned by the server for a request to getPlayerInventory
477
- * @throws ApiException if the response code was not in [200, 299]
478
- */
479
- async getPlayerInventory(response) {
480
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
481
- if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
482
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ObsoleteInventoryResponse", "");
483
- return body;
484
- }
485
- if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
486
- throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
487
- }
488
- // Work around for missing responses in specification, e.g. for petstore.yaml
489
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
490
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ObsoleteInventoryResponse", "");
491
- return body;
492
- }
493
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
494
- }
495
384
  /**
496
385
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
497
386
  * to the expected objects