@seal-protocol/backendjs 0.0.49 → 0.0.50
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.
- package/lib/api/seal-client.d.ts +43 -0
- package/lib/api/seal-client.js +60 -0
- package/lib/model/index.d.ts +2 -0
- package/lib/model/index.js +2 -0
- package/lib/model/seal-calculate-required-permit-response.d.ts +7 -0
- package/lib/model/seal-config.d.ts +7 -0
- package/lib/model/seal-delete-token-permit-approval-request.d.ts +60 -0
- package/lib/model/seal-delete-token-permit-approval-request.js +15 -0
- package/lib/model/seal-domain-info.d.ts +42 -0
- package/lib/model/seal-domain-info.js +15 -0
- package/package.json +1 -1
package/lib/api/seal-client.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import type { SealCancelOrderRequest } from '../model';
|
|
|
17
17
|
import type { SealCreateOrderRequest } from '../model';
|
|
18
18
|
import type { SealCreateOrderResponse } from '../model';
|
|
19
19
|
import type { SealCreateTokenPermitApprovalRequest } from '../model';
|
|
20
|
+
import type { SealDeleteTokenPermitApprovalRequest } from '../model';
|
|
20
21
|
import type { SealGetChainsResponse } from '../model';
|
|
21
22
|
import type { SealGetConfigResponse } from '../model';
|
|
22
23
|
import type { SealGetHealthCheckResponse } from '../model';
|
|
@@ -72,6 +73,13 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
72
73
|
* @throws {RequiredError}
|
|
73
74
|
*/
|
|
74
75
|
createTokenPermitApproval: (body: SealCreateTokenPermitApprovalRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @param {SealDeleteTokenPermitApprovalRequest} body
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
deleteTokenPermitApproval: (body: SealDeleteTokenPermitApprovalRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
75
83
|
/**
|
|
76
84
|
*
|
|
77
85
|
* @param {string} [paginationKey]
|
|
@@ -251,6 +259,13 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
251
259
|
* @throws {RequiredError}
|
|
252
260
|
*/
|
|
253
261
|
createTokenPermitApproval(body: SealCreateTokenPermitApprovalRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @param {SealDeleteTokenPermitApprovalRequest} body
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
*/
|
|
268
|
+
deleteTokenPermitApproval(body: SealDeleteTokenPermitApprovalRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
254
269
|
/**
|
|
255
270
|
*
|
|
256
271
|
* @param {string} [paginationKey]
|
|
@@ -426,6 +441,13 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
|
|
|
426
441
|
* @throws {RequiredError}
|
|
427
442
|
*/
|
|
428
443
|
createTokenPermitApproval(requestParameters: SealClientCreateTokenPermitApprovalRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @param {SealClientDeleteTokenPermitApprovalRequest} requestParameters Request parameters.
|
|
447
|
+
* @param {*} [options] Override http request option.
|
|
448
|
+
* @throws {RequiredError}
|
|
449
|
+
*/
|
|
450
|
+
deleteTokenPermitApproval(requestParameters: SealClientDeleteTokenPermitApprovalRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
429
451
|
/**
|
|
430
452
|
*
|
|
431
453
|
* @param {SealClientGetChainsRequest} requestParameters Request parameters.
|
|
@@ -578,6 +600,19 @@ export interface SealClientCreateTokenPermitApprovalRequest {
|
|
|
578
600
|
*/
|
|
579
601
|
readonly body: SealCreateTokenPermitApprovalRequest;
|
|
580
602
|
}
|
|
603
|
+
/**
|
|
604
|
+
* Request parameters for deleteTokenPermitApproval operation in SealClient.
|
|
605
|
+
* @export
|
|
606
|
+
* @interface SealClientDeleteTokenPermitApprovalRequest
|
|
607
|
+
*/
|
|
608
|
+
export interface SealClientDeleteTokenPermitApprovalRequest {
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @type {SealDeleteTokenPermitApprovalRequest}
|
|
612
|
+
* @memberof SealClientDeleteTokenPermitApproval
|
|
613
|
+
*/
|
|
614
|
+
readonly body: SealDeleteTokenPermitApprovalRequest;
|
|
615
|
+
}
|
|
581
616
|
/**
|
|
582
617
|
* Request parameters for getChains operation in SealClient.
|
|
583
618
|
* @export
|
|
@@ -1101,6 +1136,14 @@ export declare class SealClient extends BaseAPI {
|
|
|
1101
1136
|
* @memberof SealClient
|
|
1102
1137
|
*/
|
|
1103
1138
|
createTokenPermitApproval(requestParameters: SealClientCreateTokenPermitApprovalRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
1139
|
+
/**
|
|
1140
|
+
*
|
|
1141
|
+
* @param {SealClientDeleteTokenPermitApprovalRequest} requestParameters Request parameters.
|
|
1142
|
+
* @param {*} [options] Override http request option.
|
|
1143
|
+
* @throws {RequiredError}
|
|
1144
|
+
* @memberof SealClient
|
|
1145
|
+
*/
|
|
1146
|
+
deleteTokenPermitApproval(requestParameters: SealClientDeleteTokenPermitApprovalRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
1104
1147
|
/**
|
|
1105
1148
|
*
|
|
1106
1149
|
* @param {SealClientGetChainsRequest} requestParameters Request parameters.
|
package/lib/api/seal-client.js
CHANGED
|
@@ -192,6 +192,35 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
192
192
|
options: localVarRequestOptions,
|
|
193
193
|
};
|
|
194
194
|
},
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @param {SealDeleteTokenPermitApprovalRequest} body
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
deleteTokenPermitApproval: async (body, options = {}) => {
|
|
202
|
+
// verify required parameter 'body' is not null or undefined
|
|
203
|
+
(0, common_1.assertParamExists)('deleteTokenPermitApproval', 'body', body);
|
|
204
|
+
const localVarPath = `/seal/delete_token_permit_approval`;
|
|
205
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
207
|
+
let baseOptions;
|
|
208
|
+
if (configuration) {
|
|
209
|
+
baseOptions = configuration.baseOptions;
|
|
210
|
+
}
|
|
211
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
212
|
+
const localVarHeaderParameter = {};
|
|
213
|
+
const localVarQueryParameter = {};
|
|
214
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
215
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
217
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
218
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
219
|
+
return {
|
|
220
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
221
|
+
options: localVarRequestOptions,
|
|
222
|
+
};
|
|
223
|
+
},
|
|
195
224
|
/**
|
|
196
225
|
*
|
|
197
226
|
* @param {string} [paginationKey]
|
|
@@ -811,6 +840,18 @@ const SealClientFp = function (configuration) {
|
|
|
811
840
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createTokenPermitApproval']?.[localVarOperationServerIndex]?.url;
|
|
812
841
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
813
842
|
},
|
|
843
|
+
/**
|
|
844
|
+
*
|
|
845
|
+
* @param {SealDeleteTokenPermitApprovalRequest} body
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
*/
|
|
849
|
+
async deleteTokenPermitApproval(body, options) {
|
|
850
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTokenPermitApproval(body, options);
|
|
851
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
852
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.deleteTokenPermitApproval']?.[localVarOperationServerIndex]?.url;
|
|
853
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
854
|
+
},
|
|
814
855
|
/**
|
|
815
856
|
*
|
|
816
857
|
* @param {string} [paginationKey]
|
|
@@ -1055,6 +1096,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1055
1096
|
createTokenPermitApproval(requestParameters, options) {
|
|
1056
1097
|
return localVarFp.createTokenPermitApproval(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1057
1098
|
},
|
|
1099
|
+
/**
|
|
1100
|
+
*
|
|
1101
|
+
* @param {SealClientDeleteTokenPermitApprovalRequest} requestParameters Request parameters.
|
|
1102
|
+
* @param {*} [options] Override http request option.
|
|
1103
|
+
* @throws {RequiredError}
|
|
1104
|
+
*/
|
|
1105
|
+
deleteTokenPermitApproval(requestParameters, options) {
|
|
1106
|
+
return localVarFp.deleteTokenPermitApproval(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1107
|
+
},
|
|
1058
1108
|
/**
|
|
1059
1109
|
*
|
|
1060
1110
|
* @param {SealClientGetChainsRequest} requestParameters Request parameters.
|
|
@@ -1211,6 +1261,16 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1211
1261
|
createTokenPermitApproval(requestParameters, options) {
|
|
1212
1262
|
return (0, exports.SealClientFp)(this.configuration).createTokenPermitApproval(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1213
1263
|
}
|
|
1264
|
+
/**
|
|
1265
|
+
*
|
|
1266
|
+
* @param {SealClientDeleteTokenPermitApprovalRequest} requestParameters Request parameters.
|
|
1267
|
+
* @param {*} [options] Override http request option.
|
|
1268
|
+
* @throws {RequiredError}
|
|
1269
|
+
* @memberof SealClient
|
|
1270
|
+
*/
|
|
1271
|
+
deleteTokenPermitApproval(requestParameters, options) {
|
|
1272
|
+
return (0, exports.SealClientFp)(this.configuration).deleteTokenPermitApproval(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1273
|
+
}
|
|
1214
1274
|
/**
|
|
1215
1275
|
*
|
|
1216
1276
|
* @param {SealClientGetChainsRequest} requestParameters Request parameters.
|
package/lib/model/index.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export * from './seal-create-order-request';
|
|
|
15
15
|
export * from './seal-create-order-response';
|
|
16
16
|
export * from './seal-create-token-permit-approval-request';
|
|
17
17
|
export * from './seal-database-config';
|
|
18
|
+
export * from './seal-delete-token-permit-approval-request';
|
|
19
|
+
export * from './seal-domain-info';
|
|
18
20
|
export * from './seal-domain-separator-config';
|
|
19
21
|
export * from './seal-get-chains-response';
|
|
20
22
|
export * from './seal-get-config-response';
|
package/lib/model/index.js
CHANGED
|
@@ -31,6 +31,8 @@ __exportStar(require("./seal-create-order-request"), exports);
|
|
|
31
31
|
__exportStar(require("./seal-create-order-response"), exports);
|
|
32
32
|
__exportStar(require("./seal-create-token-permit-approval-request"), exports);
|
|
33
33
|
__exportStar(require("./seal-database-config"), exports);
|
|
34
|
+
__exportStar(require("./seal-delete-token-permit-approval-request"), exports);
|
|
35
|
+
__exportStar(require("./seal-domain-info"), exports);
|
|
34
36
|
__exportStar(require("./seal-domain-separator-config"), exports);
|
|
35
37
|
__exportStar(require("./seal-get-chains-response"), exports);
|
|
36
38
|
__exportStar(require("./seal-get-config-response"), exports);
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SealApprovalType } from './seal-approval-type';
|
|
13
|
+
import type { SealDomainInfo } from './seal-domain-info';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface SealCalculateRequiredPermitResponse {
|
|
|
34
35
|
* @memberof SealCalculateRequiredPermitResponse
|
|
35
36
|
*/
|
|
36
37
|
'approvalType'?: SealApprovalType;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {SealDomainInfo}
|
|
41
|
+
* @memberof SealCalculateRequiredPermitResponse
|
|
42
|
+
*/
|
|
43
|
+
'domainInfo'?: SealDomainInfo;
|
|
37
44
|
/**
|
|
38
45
|
*
|
|
39
46
|
* @type {string}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { SealChainConfig } from './seal-chain-config';
|
|
13
13
|
import type { SealDatabaseConfig } from './seal-database-config';
|
|
14
|
+
import type { SealDomainSeparatorConfig } from './seal-domain-separator-config';
|
|
14
15
|
import type { SealLoggerConfig } from './seal-logger-config';
|
|
15
16
|
import type { SealOrderConfig } from './seal-order-config';
|
|
16
17
|
/**
|
|
@@ -43,4 +44,10 @@ export interface SealConfig {
|
|
|
43
44
|
* @memberof SealConfig
|
|
44
45
|
*/
|
|
45
46
|
'ethereum'?: SealChainConfig;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {SealDomainSeparatorConfig}
|
|
50
|
+
* @memberof SealConfig
|
|
51
|
+
*/
|
|
52
|
+
'domain'?: SealDomainSeparatorConfig;
|
|
46
53
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* seal/seal.proto
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
6
|
+
*
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SealDeleteTokenPermitApprovalRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SealDeleteTokenPermitApprovalRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SealDeleteTokenPermitApprovalRequest
|
|
22
|
+
*/
|
|
23
|
+
'chainId': string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SealDeleteTokenPermitApprovalRequest
|
|
28
|
+
*/
|
|
29
|
+
'owner': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SealDeleteTokenPermitApprovalRequest
|
|
34
|
+
*/
|
|
35
|
+
'spender': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SealDeleteTokenPermitApprovalRequest
|
|
40
|
+
*/
|
|
41
|
+
'token': string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SealDeleteTokenPermitApprovalRequest
|
|
46
|
+
*/
|
|
47
|
+
'creationSignature': string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof SealDeleteTokenPermitApprovalRequest
|
|
52
|
+
*/
|
|
53
|
+
'deletionDeadline': number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SealDeleteTokenPermitApprovalRequest
|
|
58
|
+
*/
|
|
59
|
+
'signature': string;
|
|
60
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* seal/seal.proto
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: version not set
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* seal/seal.proto
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
6
|
+
*
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SealDomainInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface SealDomainInfo {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SealDomainInfo
|
|
22
|
+
*/
|
|
23
|
+
'name'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SealDomainInfo
|
|
28
|
+
*/
|
|
29
|
+
'version'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SealDomainInfo
|
|
34
|
+
*/
|
|
35
|
+
'verifyingContract'?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SealDomainInfo
|
|
40
|
+
*/
|
|
41
|
+
'chainId'?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* seal/seal.proto
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: version not set
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/package.json
CHANGED