@openfort/openfort-node 0.6.49 → 0.6.51

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 (103) hide show
  1. package/dist/apis/exchangeApiWrapper.d.ts +15 -0
  2. package/dist/apis/exchangeApiWrapper.js +40 -0
  3. package/dist/apis/exchangeApiWrapper.js.map +1 -0
  4. package/dist/apis/payamsterApiWrapper.d.ts +27 -0
  5. package/dist/apis/payamsterApiWrapper.js +55 -0
  6. package/dist/apis/payamsterApiWrapper.js.map +1 -0
  7. package/dist/generated/apis/AccountsApi.d.ts +1 -1
  8. package/dist/generated/apis/AccountsApi.js +1 -1
  9. package/dist/generated/apis/ExchangeApi.d.ts +41 -0
  10. package/dist/generated/apis/ExchangeApi.js +137 -0
  11. package/dist/generated/apis/ExchangeApi.js.map +1 -0
  12. package/dist/generated/apis/PaymasterApi.d.ts +87 -0
  13. package/dist/generated/apis/PaymasterApi.js +318 -0
  14. package/dist/generated/apis/PaymasterApi.js.map +1 -0
  15. package/dist/generated/index.d.ts +1 -1
  16. package/dist/generated/index.js +3 -1
  17. package/dist/generated/index.js.map +1 -1
  18. package/dist/generated/models/Amount.d.ts +33 -0
  19. package/dist/generated/models/Amount.js +41 -0
  20. package/dist/generated/models/Amount.js.map +1 -0
  21. package/dist/generated/models/ApiKeyType.d.ts +1 -1
  22. package/dist/generated/models/CreateExchangeRequest.d.ts +69 -0
  23. package/dist/generated/models/CreateExchangeRequest.js +92 -0
  24. package/dist/generated/models/CreateExchangeRequest.js.map +1 -0
  25. package/dist/generated/models/CreatePaymasterRequest.d.ts +39 -0
  26. package/dist/generated/models/CreatePaymasterRequest.js +44 -0
  27. package/dist/generated/models/CreatePaymasterRequest.js.map +1 -0
  28. package/dist/generated/models/CreatePolicyRequest.d.ts +4 -0
  29. package/dist/generated/models/CreatePolicyRequest.js +6 -0
  30. package/dist/generated/models/CreatePolicyRequest.js.map +1 -1
  31. package/dist/generated/models/EntityTypePAYMASTER.d.ts +12 -0
  32. package/dist/generated/models/EntityTypePAYMASTER.js +14 -0
  33. package/dist/generated/models/EntityTypePAYMASTER.js.map +1 -0
  34. package/dist/generated/models/Fee.d.ts +34 -0
  35. package/dist/generated/models/Fee.js +47 -0
  36. package/dist/generated/models/Fee.js.map +1 -0
  37. package/dist/generated/models/Interaction.d.ts +8 -0
  38. package/dist/generated/models/Interaction.js +12 -0
  39. package/dist/generated/models/Interaction.js.map +1 -1
  40. package/dist/generated/models/ObjectSerializer.d.ts +12 -0
  41. package/dist/generated/models/ObjectSerializer.js +34 -0
  42. package/dist/generated/models/ObjectSerializer.js.map +1 -1
  43. package/dist/generated/models/PagingQueries.d.ts +37 -0
  44. package/dist/generated/models/PagingQueries.js +44 -0
  45. package/dist/generated/models/PagingQueries.js.map +1 -0
  46. package/dist/generated/models/PaymasterDeleteResponse.d.ts +31 -0
  47. package/dist/generated/models/PaymasterDeleteResponse.js +44 -0
  48. package/dist/generated/models/PaymasterDeleteResponse.js.map +1 -0
  49. package/dist/generated/models/PaymasterResponse.d.ts +34 -0
  50. package/dist/generated/models/PaymasterResponse.js +62 -0
  51. package/dist/generated/models/PaymasterResponse.js.map +1 -0
  52. package/dist/generated/models/Policy.d.ts +1 -0
  53. package/dist/generated/models/Policy.js +6 -0
  54. package/dist/generated/models/Policy.js.map +1 -1
  55. package/dist/generated/models/PolicyResponse.d.ts +2 -0
  56. package/dist/generated/models/PolicyResponse.js +6 -0
  57. package/dist/generated/models/PolicyResponse.js.map +1 -1
  58. package/dist/generated/models/ProjectStatsResponse.d.ts +3 -1
  59. package/dist/generated/models/ProjectStatsResponse.js +6 -0
  60. package/dist/generated/models/ProjectStatsResponse.js.map +1 -1
  61. package/dist/generated/models/QuoteExchangeResult.d.ts +36 -0
  62. package/dist/generated/models/QuoteExchangeResult.js +68 -0
  63. package/dist/generated/models/QuoteExchangeResult.js.map +1 -0
  64. package/dist/generated/models/Stat.d.ts +0 -2
  65. package/dist/generated/models/Stat.js +0 -12
  66. package/dist/generated/models/Stat.js.map +1 -1
  67. package/dist/generated/models/Token.d.ts +35 -0
  68. package/dist/generated/models/Token.js +59 -0
  69. package/dist/generated/models/Token.js.map +1 -0
  70. package/dist/generated/models/TradeType.d.ts +12 -0
  71. package/dist/generated/models/TradeType.js +14 -0
  72. package/dist/generated/models/TradeType.js.map +1 -0
  73. package/dist/generated/models/TransactionIntentResponsePolicy.d.ts +1 -0
  74. package/dist/generated/models/TransactionIntentResponsePolicy.js +6 -0
  75. package/dist/generated/models/TransactionIntentResponsePolicy.js.map +1 -1
  76. package/dist/generated/models/TransactionStat.d.ts +31 -0
  77. package/dist/generated/models/TransactionStat.js +50 -0
  78. package/dist/generated/models/TransactionStat.js.map +1 -0
  79. package/dist/generated/models/UpdatePolicyRequest.d.ts +4 -0
  80. package/dist/generated/models/UpdatePolicyRequest.js +6 -0
  81. package/dist/generated/models/UpdatePolicyRequest.js.map +1 -1
  82. package/dist/generated/models/all.d.ts +12 -0
  83. package/dist/generated/models/all.js +12 -0
  84. package/dist/generated/models/all.js.map +1 -1
  85. package/dist/generated/types/ObjectParamAPI.d.ts +132 -1
  86. package/dist/generated/types/ObjectParamAPI.js +93 -23
  87. package/dist/generated/types/ObjectParamAPI.js.map +1 -1
  88. package/dist/generated/types/ObservableAPI.d.ts +65 -1
  89. package/dist/generated/types/ObservableAPI.js +170 -2
  90. package/dist/generated/types/ObservableAPI.js.map +1 -1
  91. package/dist/generated/types/PromiseAPI.d.ts +61 -1
  92. package/dist/generated/types/PromiseAPI.js +103 -23
  93. package/dist/generated/types/PromiseAPI.js.map +1 -1
  94. package/dist/models/getPaymasterRequest.d.ts +3 -0
  95. package/dist/models/getPaymasterRequest.js +3 -0
  96. package/dist/models/getPaymasterRequest.js.map +1 -0
  97. package/dist/models/updatePaymasterRequest.d.ts +4 -0
  98. package/dist/models/updatePaymasterRequest.js +3 -0
  99. package/dist/models/updatePaymasterRequest.js.map +1 -0
  100. package/dist/version.d.ts +1 -1
  101. package/dist/version.js +1 -1
  102. package/package.json +1 -1
  103. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,318 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymasterApiResponseProcessor = exports.PaymasterApiRequestFactory = void 0;
4
+ // TODO: better import syntax?
5
+ const baseapi_1 = require("./baseapi");
6
+ const http_1 = require("../http/http");
7
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
8
+ const exception_1 = require("./exception");
9
+ const util_1 = require("../util");
10
+ /**
11
+ * no description
12
+ */
13
+ class PaymasterApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
14
+ /**
15
+ * Create a new paymaster. This object represents the paymaster that will be used to pay the gas fees of the transactions.
16
+ * Create a new paymaster.
17
+ * @param createPaymasterRequest
18
+ */
19
+ async createPaymaster(createPaymasterRequest, _options) {
20
+ let _config = _options || this.configuration;
21
+ // verify required parameter 'createPaymasterRequest' is not null or undefined
22
+ if (createPaymasterRequest === null || createPaymasterRequest === undefined) {
23
+ throw new baseapi_1.RequiredError("PaymasterApi", "createPaymaster", "createPaymasterRequest");
24
+ }
25
+ // Path Params
26
+ const localVarPath = '/v1/paymasters';
27
+ // Make Request Context
28
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
29
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
30
+ // Body Params
31
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
32
+ "application/json"
33
+ ]);
34
+ requestContext.setHeaderParam("Content-Type", contentType);
35
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createPaymasterRequest, "CreatePaymasterRequest", ""), contentType);
36
+ requestContext.setBody(serializedBody);
37
+ let authMethod;
38
+ // Apply auth methods
39
+ authMethod = _config.authMethods["sk"];
40
+ if (authMethod?.applySecurityAuthentication) {
41
+ await authMethod?.applySecurityAuthentication(requestContext);
42
+ }
43
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
44
+ if (defaultAuth?.applySecurityAuthentication) {
45
+ await defaultAuth?.applySecurityAuthentication(requestContext);
46
+ }
47
+ return requestContext;
48
+ }
49
+ /**
50
+ * Delete the paymaster with the given id. This object represents the paymaster that will be used to pay the gas fees for the transactions.
51
+ * Delete paymaster by id.
52
+ * @param id
53
+ */
54
+ async deletePaymaster(id, _options) {
55
+ let _config = _options || this.configuration;
56
+ // verify required parameter 'id' is not null or undefined
57
+ if (id === null || id === undefined) {
58
+ throw new baseapi_1.RequiredError("PaymasterApi", "deletePaymaster", "id");
59
+ }
60
+ // Path Params
61
+ const localVarPath = '/v1/paymasters/{id}'
62
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
63
+ // Make Request Context
64
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
65
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
66
+ let authMethod;
67
+ // Apply auth methods
68
+ authMethod = _config.authMethods["sk"];
69
+ if (authMethod?.applySecurityAuthentication) {
70
+ await authMethod?.applySecurityAuthentication(requestContext);
71
+ }
72
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
73
+ if (defaultAuth?.applySecurityAuthentication) {
74
+ await defaultAuth?.applySecurityAuthentication(requestContext);
75
+ }
76
+ return requestContext;
77
+ }
78
+ /**
79
+ * Returns the paymaster with the given id. This object represents the paymaster that will be used to pay the gas fees for the transactions.
80
+ * Get paymaster by id.
81
+ * @param id
82
+ */
83
+ async getPaymaster(id, _options) {
84
+ let _config = _options || this.configuration;
85
+ // verify required parameter 'id' is not null or undefined
86
+ if (id === null || id === undefined) {
87
+ throw new baseapi_1.RequiredError("PaymasterApi", "getPaymaster", "id");
88
+ }
89
+ // Path Params
90
+ const localVarPath = '/v1/paymasters/{id}'
91
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
92
+ // Make Request Context
93
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
94
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
95
+ let authMethod;
96
+ // Apply auth methods
97
+ authMethod = _config.authMethods["sk"];
98
+ if (authMethod?.applySecurityAuthentication) {
99
+ await authMethod?.applySecurityAuthentication(requestContext);
100
+ }
101
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
102
+ if (defaultAuth?.applySecurityAuthentication) {
103
+ await defaultAuth?.applySecurityAuthentication(requestContext);
104
+ }
105
+ return requestContext;
106
+ }
107
+ /**
108
+ * Returns a list of paymasters. This object represents the paymasters that will be used to pay the gas fees for the transactions. By default, a maximum of 10 paymasters are shown per page.
109
+ * List paymasters.
110
+ * @param limit Specifies the maximum number of records to return.
111
+ * @param skip Specifies the offset for the first records to return.
112
+ * @param order Specifies the order in which to sort the results.
113
+ */
114
+ async listPaymasters(limit, skip, order, _options) {
115
+ let _config = _options || this.configuration;
116
+ // Path Params
117
+ const localVarPath = '/v1/paymasters';
118
+ // Make Request Context
119
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
120
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
121
+ // Query Params
122
+ if (limit !== undefined) {
123
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", "int32"));
124
+ }
125
+ // Query Params
126
+ if (skip !== undefined) {
127
+ requestContext.setQueryParam("skip", ObjectSerializer_1.ObjectSerializer.serialize(skip, "number", "int32"));
128
+ }
129
+ // Query Params
130
+ if (order !== undefined) {
131
+ requestContext.setQueryParam("order", ObjectSerializer_1.ObjectSerializer.serialize(order, "SortOrder", ""));
132
+ }
133
+ let authMethod;
134
+ // Apply auth methods
135
+ authMethod = _config.authMethods["sk"];
136
+ if (authMethod?.applySecurityAuthentication) {
137
+ await authMethod?.applySecurityAuthentication(requestContext);
138
+ }
139
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
140
+ if (defaultAuth?.applySecurityAuthentication) {
141
+ await defaultAuth?.applySecurityAuthentication(requestContext);
142
+ }
143
+ return requestContext;
144
+ }
145
+ /**
146
+ * Update a paymaster. This object represents the paymaster that will be used to pay the gas fees of the transactions.
147
+ * Update a paymaster.
148
+ * @param id
149
+ * @param createPaymasterRequest
150
+ */
151
+ async updatePaymaster(id, createPaymasterRequest, _options) {
152
+ let _config = _options || this.configuration;
153
+ // verify required parameter 'id' is not null or undefined
154
+ if (id === null || id === undefined) {
155
+ throw new baseapi_1.RequiredError("PaymasterApi", "updatePaymaster", "id");
156
+ }
157
+ // verify required parameter 'createPaymasterRequest' is not null or undefined
158
+ if (createPaymasterRequest === null || createPaymasterRequest === undefined) {
159
+ throw new baseapi_1.RequiredError("PaymasterApi", "updatePaymaster", "createPaymasterRequest");
160
+ }
161
+ // Path Params
162
+ const localVarPath = '/v1/paymasters/{id}'
163
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
164
+ // Make Request Context
165
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
166
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
167
+ // Body Params
168
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
169
+ "application/json"
170
+ ]);
171
+ requestContext.setHeaderParam("Content-Type", contentType);
172
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createPaymasterRequest, "CreatePaymasterRequest", ""), contentType);
173
+ requestContext.setBody(serializedBody);
174
+ let authMethod;
175
+ // Apply auth methods
176
+ authMethod = _config.authMethods["sk"];
177
+ if (authMethod?.applySecurityAuthentication) {
178
+ await authMethod?.applySecurityAuthentication(requestContext);
179
+ }
180
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
181
+ if (defaultAuth?.applySecurityAuthentication) {
182
+ await defaultAuth?.applySecurityAuthentication(requestContext);
183
+ }
184
+ return requestContext;
185
+ }
186
+ }
187
+ exports.PaymasterApiRequestFactory = PaymasterApiRequestFactory;
188
+ class PaymasterApiResponseProcessor {
189
+ /**
190
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
191
+ * to the expected objects
192
+ *
193
+ * @params response Response returned by the server for a request to createPaymaster
194
+ * @throws ApiException if the response code was not in [200, 299]
195
+ */
196
+ async createPaymaster(response) {
197
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
198
+ if ((0, util_1.isCodeInRange)("201", response.httpStatusCode)) {
199
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "PaymasterResponse", "");
200
+ return body;
201
+ }
202
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
203
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
204
+ }
205
+ if ((0, util_1.isCodeInRange)("409", response.httpStatusCode)) {
206
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
207
+ }
208
+ // Work around for missing responses in specification, e.g. for petstore.yaml
209
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
210
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "PaymasterResponse", "");
211
+ return body;
212
+ }
213
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
214
+ }
215
+ /**
216
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
217
+ * to the expected objects
218
+ *
219
+ * @params response Response returned by the server for a request to deletePaymaster
220
+ * @throws ApiException if the response code was not in [200, 299]
221
+ */
222
+ async deletePaymaster(response) {
223
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
224
+ if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
225
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "PaymasterDeleteResponse", "");
226
+ return body;
227
+ }
228
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
229
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
230
+ }
231
+ if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
232
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
233
+ }
234
+ // Work around for missing responses in specification, e.g. for petstore.yaml
235
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
236
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "PaymasterDeleteResponse", "");
237
+ return body;
238
+ }
239
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
240
+ }
241
+ /**
242
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
243
+ * to the expected objects
244
+ *
245
+ * @params response Response returned by the server for a request to getPaymaster
246
+ * @throws ApiException if the response code was not in [200, 299]
247
+ */
248
+ async getPaymaster(response) {
249
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
250
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
251
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "PaymasterResponse", "");
252
+ return body;
253
+ }
254
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
255
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
256
+ }
257
+ if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
258
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
259
+ }
260
+ // Work around for missing responses in specification, e.g. for petstore.yaml
261
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
262
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "PaymasterResponse", "");
263
+ return body;
264
+ }
265
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
266
+ }
267
+ /**
268
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
269
+ * to the expected objects
270
+ *
271
+ * @params response Response returned by the server for a request to listPaymasters
272
+ * @throws ApiException if the response code was not in [200, 299]
273
+ */
274
+ async listPaymasters(response) {
275
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
276
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
277
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Array<PaymasterResponse>", "");
278
+ return body;
279
+ }
280
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
281
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
282
+ }
283
+ // Work around for missing responses in specification, e.g. for petstore.yaml
284
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
285
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Array<PaymasterResponse>", "");
286
+ return body;
287
+ }
288
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
289
+ }
290
+ /**
291
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
292
+ * to the expected objects
293
+ *
294
+ * @params response Response returned by the server for a request to updatePaymaster
295
+ * @throws ApiException if the response code was not in [200, 299]
296
+ */
297
+ async updatePaymaster(response) {
298
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
299
+ if ((0, util_1.isCodeInRange)("201", response.httpStatusCode)) {
300
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "PaymasterResponse", "");
301
+ return body;
302
+ }
303
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
304
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
305
+ }
306
+ if ((0, util_1.isCodeInRange)("409", response.httpStatusCode)) {
307
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
308
+ }
309
+ // Work around for missing responses in specification, e.g. for petstore.yaml
310
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
311
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "PaymasterResponse", "");
312
+ return body;
313
+ }
314
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
315
+ }
316
+ }
317
+ exports.PaymasterApiResponseProcessor = PaymasterApiResponseProcessor;
318
+ //# sourceMappingURL=PaymasterApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymasterApi.js","sourceRoot":"","sources":["../../../src/generated/apis/PaymasterApi.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAC9B,uCAAmF;AAEnF,uCAAmF;AAGnF,iEAA4D;AAC5D,2CAAyC;AACzC,kCAAsD;AAStD;;GAEG;AACH,MAAa,0BAA2B,SAAQ,+BAAqB;IAEjE;;;;OAIG;IACI,KAAK,CAAC,eAAe,CAAC,sBAA8C,EAAE,QAAwB;QACjG,IAAI,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;QAE7C,8EAA8E;QAC9E,IAAI,sBAAsB,KAAK,IAAI,IAAI,sBAAsB,KAAK,SAAS,EAAE;YACzE,MAAM,IAAI,uBAAa,CAAC,cAAc,EAAE,iBAAiB,EAAE,wBAAwB,CAAC,CAAC;SACxF;QAGD,cAAc;QACd,MAAM,YAAY,GAAG,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BAA0B,EAAE,MAAM,QAAQ,CAAC,YAAY,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC9J,CAAC;CAEJ;AA9KD,sEA8KC"}
@@ -7,4 +7,4 @@ export * from "./apis/exception";
7
7
  export * from "./servers";
8
8
  export { RequiredError } from "./apis/baseapi";
9
9
  export { PromiseMiddleware as Middleware } from './middleware';
10
- export { PromiseNotificationTriggersApi as NotificationTriggersApi, PromiseNotificationSubscriptionsApi as NotificationSubscriptionsApi, PromiseNotificationsApi as NotificationsApi, PromiseAccountsApi as AccountsApi, PromiseAuthenticationApi as AuthenticationApi, PromiseContractsApi as ContractsApi, PromiseInventoriesApi as InventoriesApi, PromisePlayersApi as PlayersApi, PromiseAdminAuthenticationApi as AdminAuthenticationApi, PromisePoliciesApi as PoliciesApi, PromisePolicyRulesApi as PolicyRulesApi, PromiseSessionsApi as SessionsApi, PromiseSettingsApi as SettingsApi, PromiseTransactionIntentsApi as TransactionIntentsApi, PromiseWeb3ConnectionsApi as Web3ConnectionsApi } from './types/PromiseAPI';
10
+ export { PromiseNotificationTriggersApi as NotificationTriggersApi, PromiseNotificationSubscriptionsApi as NotificationSubscriptionsApi, PromiseNotificationsApi as NotificationsApi, PromiseAccountsApi as AccountsApi, PromiseAuthenticationApi as AuthenticationApi, PromiseContractsApi as ContractsApi, PromiseInventoriesApi as InventoriesApi, PromisePlayersApi as PlayersApi, PromiseAdminAuthenticationApi as AdminAuthenticationApi, PromisePoliciesApi as PoliciesApi, PromisePolicyRulesApi as PolicyRulesApi, PromiseSessionsApi as SessionsApi, PromiseSettingsApi as SettingsApi, PromiseTransactionIntentsApi as TransactionIntentsApi, PromiseWeb3ConnectionsApi as Web3ConnectionsApi, PromiseExchangeApi as ExchangeApi, PromisePaymasterApi as PaymasterApi } from './types/PromiseAPI';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Web3ConnectionsApi = exports.TransactionIntentsApi = exports.SettingsApi = exports.SessionsApi = exports.PolicyRulesApi = exports.PoliciesApi = exports.AdminAuthenticationApi = exports.PlayersApi = exports.InventoriesApi = exports.ContractsApi = exports.AuthenticationApi = exports.AccountsApi = exports.NotificationsApi = exports.NotificationSubscriptionsApi = exports.NotificationTriggersApi = exports.RequiredError = exports.createConfiguration = void 0;
17
+ exports.PaymasterApi = exports.ExchangeApi = exports.Web3ConnectionsApi = exports.TransactionIntentsApi = exports.SettingsApi = exports.SessionsApi = exports.PolicyRulesApi = exports.PoliciesApi = exports.AdminAuthenticationApi = exports.PlayersApi = exports.InventoriesApi = exports.ContractsApi = exports.AuthenticationApi = exports.AccountsApi = exports.NotificationsApi = exports.NotificationSubscriptionsApi = exports.NotificationTriggersApi = exports.RequiredError = exports.createConfiguration = void 0;
18
18
  __exportStar(require("./http/http"), exports);
19
19
  __exportStar(require("./auth/auth"), exports);
20
20
  __exportStar(require("./models/all"), exports);
@@ -40,4 +40,6 @@ Object.defineProperty(exports, "SessionsApi", { enumerable: true, get: function
40
40
  Object.defineProperty(exports, "SettingsApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseSettingsApi; } });
41
41
  Object.defineProperty(exports, "TransactionIntentsApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseTransactionIntentsApi; } });
42
42
  Object.defineProperty(exports, "Web3ConnectionsApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseWeb3ConnectionsApi; } });
43
+ Object.defineProperty(exports, "ExchangeApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseExchangeApi; } });
44
+ Object.defineProperty(exports, "PaymasterApi", { enumerable: true, get: function () { return PromiseAPI_1.PromisePaymasterApi; } });
43
45
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts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,yGAAA,kBAAkB,OAAe;AAAG,yGAAA,kBAAkB,OAAe;AAAG,mHAAA,4BAA4B,OAAyB;AAAG,gHAAA,yBAAyB,OAAsB;AAAE,yGAAA,kBAAkB,OAAe;AAAE,0GAAA,mBAAmB,OAAgB"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Openfort API
3
+ * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
4
+ *
5
+ * OpenAPI spec version: 1.0.0
6
+ * Contact: founders@openfort.xyz
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { Token } from '../models/Token';
13
+ /**
14
+ * Interface representing a token amount
15
+ */
16
+ export declare class Amount {
17
+ 'value': string;
18
+ 'token': Token;
19
+ static readonly discriminator: string | undefined;
20
+ static readonly attributeTypeMap: Array<{
21
+ name: string;
22
+ baseName: string;
23
+ type: string;
24
+ format: string;
25
+ }>;
26
+ static getAttributeTypeMap(): {
27
+ name: string;
28
+ baseName: string;
29
+ type: string;
30
+ format: string;
31
+ }[];
32
+ constructor();
33
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * Openfort API
4
+ * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
5
+ *
6
+ * OpenAPI spec version: 1.0.0
7
+ * Contact: founders@openfort.xyz
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Amount = void 0;
15
+ /**
16
+ * Interface representing a token amount
17
+ */
18
+ class Amount {
19
+ static getAttributeTypeMap() {
20
+ return Amount.attributeTypeMap;
21
+ }
22
+ constructor() {
23
+ }
24
+ }
25
+ exports.Amount = Amount;
26
+ Amount.discriminator = undefined;
27
+ Amount.attributeTypeMap = [
28
+ {
29
+ "name": "value",
30
+ "baseName": "value",
31
+ "type": "string",
32
+ "format": ""
33
+ },
34
+ {
35
+ "name": "token",
36
+ "baseName": "token",
37
+ "type": "Token",
38
+ "format": ""
39
+ }
40
+ ];
41
+ //# sourceMappingURL=Amount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Amount.js","sourceRoot":"","sources":["../../../src/generated/models/Amount.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAKH;;EAEE;AACF,MAAa,MAAM;IAoBf,MAAM,CAAC,mBAAmB;QACtB,OAAO,MAAM,CAAC,gBAAgB,CAAC;IACnC,CAAC;IAED;IACA,CAAC;;AAzBL,wBA0BC;AAtBmB,oBAAa,GAAuB,SAAS,CAAC;AAE9C,uBAAgB,GAA0E;IACtG;QACI,MAAM,EAAE,OAAO;QACf,UAAU,EAAE,OAAO;QACnB,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,EAAE;KACf;IACD;QACI,MAAM,EAAE,OAAO;QACf,UAAU,EAAE,OAAO;QACnB,MAAM,EAAE,OAAO;QACf,QAAQ,EAAE,EAAE;KACf;CAAK,CAAC"}
@@ -9,4 +9,4 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export type ApiKeyType = "pk" | "sk";
12
+ export type ApiKeyType = "pk" | "sk" | "pk_shield" | "sk_shield";
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Openfort API
3
+ * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
4
+ *
5
+ * OpenAPI spec version: 1.0.0
6
+ * Contact: founders@openfort.xyz
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { TradeType } from '../models/TradeType';
13
+ export declare class CreateExchangeRequest {
14
+ /**
15
+ * The chain ID. Must be a [supported chain](/chains).
16
+ */
17
+ 'chainId': number;
18
+ /**
19
+ * The public address that will sign and submit the transaction. If you provide one of a `pla_...` or `acc_...` it will be converted to the corresponding address.
20
+ */
21
+ 'fromAddress': string;
22
+ /**
23
+ * Token address or \'native\' to sell
24
+ */
25
+ 'tokenInAddress': string;
26
+ /**
27
+ * Token address or \'native\' to buy
28
+ */
29
+ 'tokenOutAddress': string;
30
+ /**
31
+ * Amount in the smallest unit of the token
32
+ */
33
+ 'amount': string;
34
+ 'tradeType': TradeType;
35
+ /**
36
+ * The percentage of slippage tolerance. Default = 0.1. Max = 50. Min = 0
37
+ */
38
+ 'slippagePercent'?: number;
39
+ /**
40
+ * Maximum hops allowed in optimal route. Default is 2
41
+ */
42
+ 'maxHops'?: number;
43
+ /**
44
+ * Latest time swap can execute. Default is 15 minutes
45
+ */
46
+ 'deadline'?: number;
47
+ /**
48
+ * ID of the Policy that defines the gas sponsorship strategy (starts with `pol_`). If no Policy is provided, the own Account native token funds will be used to pay for gas.
49
+ */
50
+ 'policy'?: string;
51
+ /**
52
+ * Set to `true` to indicate that the transactionIntent request should be resolved as soon as possible, after the transactionIntent is created and simulated and before it arrives on chain.
53
+ */
54
+ 'optimistic'?: boolean;
55
+ static readonly discriminator: string | undefined;
56
+ static readonly attributeTypeMap: Array<{
57
+ name: string;
58
+ baseName: string;
59
+ type: string;
60
+ format: string;
61
+ }>;
62
+ static getAttributeTypeMap(): {
63
+ name: string;
64
+ baseName: string;
65
+ type: string;
66
+ format: string;
67
+ }[];
68
+ constructor();
69
+ }
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ /**
3
+ * Openfort API
4
+ * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
5
+ *
6
+ * OpenAPI spec version: 1.0.0
7
+ * Contact: founders@openfort.xyz
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.CreateExchangeRequest = void 0;
15
+ class CreateExchangeRequest {
16
+ static getAttributeTypeMap() {
17
+ return CreateExchangeRequest.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.CreateExchangeRequest = CreateExchangeRequest;
23
+ CreateExchangeRequest.discriminator = undefined;
24
+ CreateExchangeRequest.attributeTypeMap = [
25
+ {
26
+ "name": "chainId",
27
+ "baseName": "chainId",
28
+ "type": "number",
29
+ "format": "int32"
30
+ },
31
+ {
32
+ "name": "fromAddress",
33
+ "baseName": "fromAddress",
34
+ "type": "string",
35
+ "format": ""
36
+ },
37
+ {
38
+ "name": "tokenInAddress",
39
+ "baseName": "tokenInAddress",
40
+ "type": "string",
41
+ "format": ""
42
+ },
43
+ {
44
+ "name": "tokenOutAddress",
45
+ "baseName": "tokenOutAddress",
46
+ "type": "string",
47
+ "format": ""
48
+ },
49
+ {
50
+ "name": "amount",
51
+ "baseName": "amount",
52
+ "type": "string",
53
+ "format": ""
54
+ },
55
+ {
56
+ "name": "tradeType",
57
+ "baseName": "tradeType",
58
+ "type": "TradeType",
59
+ "format": ""
60
+ },
61
+ {
62
+ "name": "slippagePercent",
63
+ "baseName": "slippagePercent",
64
+ "type": "number",
65
+ "format": "double"
66
+ },
67
+ {
68
+ "name": "maxHops",
69
+ "baseName": "maxHops",
70
+ "type": "number",
71
+ "format": "double"
72
+ },
73
+ {
74
+ "name": "deadline",
75
+ "baseName": "deadline",
76
+ "type": "number",
77
+ "format": "double"
78
+ },
79
+ {
80
+ "name": "policy",
81
+ "baseName": "policy",
82
+ "type": "string",
83
+ "format": ""
84
+ },
85
+ {
86
+ "name": "optimistic",
87
+ "baseName": "optimistic",
88
+ "type": "boolean",
89
+ "format": ""
90
+ }
91
+ ];
92
+ //# sourceMappingURL=CreateExchangeRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateExchangeRequest.js","sourceRoot":"","sources":["../../../src/generated/models/CreateExchangeRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAKH,MAAa,qBAAqB;I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