@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
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)
@@ -21,7 +21,7 @@ let InventoriesApiWrapper = class InventoriesApiWrapper extends baseApiWrapper_1
21
21
  * Retrieves the native assets list 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.
22
22
  */
23
23
  async getPlayerNftInventory(req) {
24
- return await this.api.getPlayerNftInventory(req.playerId, req.chainId, req.limit, req.skip, req.order, req.contractId);
24
+ return await this.api.getPlayerNftInventory(req.playerId, req.chainId, req.limit, req.skip, req.order, req.contract);
25
25
  }
26
26
  /**
27
27
  * Retrieves the native assets list 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.
@@ -33,7 +33,7 @@ let InventoriesApiWrapper = class InventoriesApiWrapper extends baseApiWrapper_1
33
33
  * Retrieves the native assets list 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.
34
34
  */
35
35
  async getPlayerCryptoCurrencyInventory(req) {
36
- return await this.api.getPlayerCryptoCurrencyInventory(req.playerId, req.chainId, req.limit, req.skip, req.order, req.contractId);
36
+ return await this.api.getPlayerCryptoCurrencyInventory(req.playerId, req.chainId, req.limit, req.skip, req.order, req.contract);
37
37
  }
38
38
  /**
39
39
  * Retrieves the native assets list 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.
@@ -1 +1 @@
1
- {"version":3,"file":"inventoriesApiWrapper.js","sourceRoot":"","sources":["../../src/apis/inventoriesApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,qDAAkD;AAClD,4CAA8C;AAC9C,oEAAiE;AAG1D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+BAA8B;IACrE,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,0BAAc,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,qBAAqB,CAAC,GAA+B;QAC9D,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,qBAAqB,CACvC,GAAG,CAAC,QAAQ,EACZ,GAAG,CAAC,OAAO,EACX,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,IAAI,EACR,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,UAAU,CACjB,CAAC;IACN,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,sBAAsB,CAAC,GAAgC;QAChE,OAAO,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,GAAG,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,gCAAgC,CAAC,GAA+B;QACzE,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,gCAAgC,CAClD,GAAG,CAAC,QAAQ,EACZ,GAAG,CAAC,OAAO,EACX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AAqB,CAkEjC;AAlEY,sDAAqB"}
@@ -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,CAAC,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,GAAwB;QACxC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,aAAa,CAAC,GAAyB;QAChD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,CAAC;QAChC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,aAAa,CAAC,GAA+B;QACtD,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,CAAC;QAClC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC9D,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,CA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AAG,IAAI,EAAE,GAAG,GAAG,CAAC;QAClC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,+BAA+B,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,8BAA8B,CACvC,GAAyC;QAEzC,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,CAAC;QAClC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,8BAA8B,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,GAAwB;QACxC,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,CAAC;QAC5B,OAAO,MAAM,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
- {"version":3,"file":"policiesApiWrapper.js","sourceRoot":"","sources":["../../src/apis/policiesApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,qDAAkD;AAClD,4CAA2C;AAC3C,oEAAiE;AAG1D,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,+BAA2B;IAC/D,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,uBAAW,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,GAAwB;QACxC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,GAAwB;QACxC,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,CAAC;QAC5B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,mBAAmB,CAAC,GAA4B;QACzD,MAAM,EAAE,MAAM,EAAE,GAAG,IA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AO,CAAC,EAAU;QAC3B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;IACD;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,EAAU;QAC1B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,IAAI,CAAC,GAAuB;QACrC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAC7B,GAAG,EAAE,KAAK,EACV,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,KAAK,EACV,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,OAAO,EACZ,GAAG,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"}
@@ -1,6 +1,7 @@
1
1
  import { DeveloperAccountCreateRequest, DeveloperAccountListResponse, DeveloperAccountDeleteResponse } from "../models";
2
2
  import { BaseApiWrapper } from "./baseApiWrapper";
3
3
  import { DeveloperAccountResponse, SettingsApi } from "../generated";
4
+ import { GetDeveloperAccountRequest } from "../models/getDeveloperAccountRequest";
4
5
  export declare class SettingsApiWrapper extends BaseApiWrapper<SettingsApi> {
5
6
  constructor(accessToken: string, basePath?: string);
6
7
  /**
@@ -12,6 +13,10 @@ export declare class SettingsApiWrapper extends BaseApiWrapper<SettingsApi> {
12
13
  * Lists the developer accounts of a project.
13
14
  */
14
15
  getDeveloperAccounts(): Promise<DeveloperAccountListResponse>;
16
+ /**
17
+ * Retrieve the list of the developer accounts for the current project
18
+ */
19
+ getDeveloperAccount(req: GetDeveloperAccountRequest): Promise<DeveloperAccountResponse>;
15
20
  /**
16
21
  * Delete a developer account from a project.
17
22
  * @param id Id of the developer account
@@ -30,6 +30,12 @@ let SettingsApiWrapper = class SettingsApiWrapper extends baseApiWrapper_1.BaseA
30
30
  async getDeveloperAccounts() {
31
31
  return await this.api.getDeveloperAccounts();
32
32
  }
33
+ /**
34
+ * Retrieve the list of the developer accounts for the current project
35
+ */
36
+ async getDeveloperAccount(req) {
37
+ return await this.api.getDeveloperAccount(req.id, req.expand);
38
+ }
33
39
  /**
34
40
  * Delete a developer account from a project.
35
41
  * @param id Id of the developer account
@@ -1 +1 @@
1
- {"version":3,"file":"settingsApiWrapper.js","sourceRoot":"","sources":["../../src/apis/settingsApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAAkD;AAClD,4CAAqE;AACrE,oEAAiE;AAG1D,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,+BAA2B;IAC/D,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,uBAAW,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,sBAAsB,CAAC,GAAkC;QAClE,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,oBAAoB;QAC7B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,sBAAsB,CAAC,EAAU;QAC1C,OAAO,MAAM,IAAI,CAAC,GAA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AC,mBAAmB,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAClE,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,sBAAsB,CAAC,EAAU;QAC1C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,sBAAsB,CAAC,OAAe;QAC/C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;QAC9D,OAAO,MAAM,CAAC,OAAO,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,aAAa,CAAC,GAAW;QAClC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,aAAa;QACtB,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;IAC1C,CAAC;CACJ,CAAA;AA1DY,kBAAkB;IAD9B,mCAAgB;;GACJ,kBAAkB,CA0D9B;AA1DY,gDAAkB"}
@@ -43,7 +43,7 @@ let TransactionIntentsApiWrapper = class TransactionIntentsApiWrapper extends ba
43
43
  * @param req Parameters to get list of the transaction intents
44
44
  */
45
45
  async list(req) {
46
- return await this.api.getTransactionIntents(req?.limit, req?.skip, req?.order, req?.expand, req?.chainId, req?.accountId, req?.playerId, req?.policyId);
46
+ return await this.api.getTransactionIntents(req?.limit, req?.skip, req?.order, req?.expand, req?.chainId, req?.account, req?.player, req?.policy);
47
47
  }
48
48
  /**
49
49
  * Confirms the creation of a transaction intent with an external owner.
@@ -1 +1 @@
1
- {"version":3,"file":"transactionIntentsApiWrapper.js","sourceRoot":"","sources":["../../src/apis/transactionIntentsApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AASA,qDAAkD;AAClD,4CAAqD;AACrD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
1
+ {"version":3,"file":"transactionIntentsApiWrapper.js","sourceRoot":"","sources":["../../src/apis/transactionIntentsApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AASA,qDAAkD;AAClD,4CAAqD;AACrD,oEAAiE;AAG1D,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,+BAAqC;IACnF,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,iCAAqB,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACxD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,YAAY,CAAC,GAAmC;QACzD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,6BAA6B,CAAC,GAAG,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,GAAmC;QACnD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;IACvD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,GAAG,CAAC,GAAgC;QAC7C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnE,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,IAAI,CAAC,GAAkC;QAChD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,qBAAqB,CACvC,GAAG,EAAE,KAAK,EACV,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,KAAK,EACV,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,CACd,CAAC;IACN,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,SAAS,CAAC,GAAsC;QACzD,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,CAAC;QAC5B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAC9C,CAAC;CACJ,CAAA;AAtDY,4BAA4B;IADxC,mCAAgB;;GACJ,4BAA4B,CAsDxC;AAtDY,oEAA4B"}
@@ -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.
@@ -44,15 +38,9 @@ export declare class InventoriesApiRequestFactory extends BaseAPIRequestFactory
44
38
  * @param limit Specifies the maximum number of records to return.
45
39
  * @param skip Specifies the offset for the first records to return.
46
40
  * @param order Specifies the order in which to sort the results.
47
- * @param contractId Filter by contract ID (starts with con_).
41
+ * @param contract Filter by contract ID (starts with con_).
48
42
  */
49
- 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>;
43
+ getPlayerCryptoCurrencyInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contract?: Array<string>, _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_).
@@ -66,9 +54,9 @@ export declare class InventoriesApiRequestFactory extends BaseAPIRequestFactory
66
54
  * @param limit Specifies the maximum number of records to return.
67
55
  * @param skip Specifies the offset for the first records to return.
68
56
  * @param order Specifies the order in which to sort the results.
69
- * @param contractId Filter by contract ID (starts with con_).
57
+ * @param contract Filter by contract ID (starts with con_).
70
58
  */
71
- getPlayerNftInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<RequestContext>;
59
+ getPlayerNftInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contract?: Array<string>, _options?: Configuration): Promise<RequestContext>;
72
60
  }
73
61
  export declare class InventoriesApiResponseProcessor {
74
62
  /**
@@ -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