@near-mobile/connector 0.0.2 → 0.0.4
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/dist/chunk-2P3A4VVY.js +37 -0
- package/dist/{chunk-OQVZGXMP.mjs → chunk-B2YNUFH6.mjs} +1 -1
- package/dist/chunk-CC4VKGDC.mjs +37 -0
- package/dist/{chunk-ZTA2C53I.js → chunk-HVMVKTGG.js} +2 -2
- package/dist/{chunk-LWAUIGDD.js → chunk-JLBRCZBF.js} +2 -2
- package/dist/{chunk-AVS7JT4Z.mjs → chunk-L2EA5E7P.mjs} +2 -2
- package/dist/chunk-MLBWBY57.js +2577 -0
- package/dist/chunk-YAMG4CQQ.mjs +2577 -0
- package/dist/config.js +1 -1
- package/dist/config.mjs +1 -1
- package/dist/connector.js +3 -3
- package/dist/connector.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/main.d.mts +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.js +5 -5
- package/dist/main.mjs +4 -4
- package/dist/strategies/qr-code/index.js +4 -4
- package/dist/strategies/qr-code/index.mjs +3 -3
- package/dist/strategies/qr-code/qr-code.config.js +3 -3
- package/dist/strategies/qr-code/qr-code.config.mjs +2 -2
- package/dist/strategies/qr-code/qr-code.js +4 -4
- package/dist/strategies/qr-code/qr-code.mjs +3 -3
- package/dist/types.d.mts +114 -19
- package/dist/types.d.ts +114 -19
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-25UUG7ZP.mjs +0 -506
- package/dist/chunk-7P6ASYW6.mjs +0 -9
- package/dist/chunk-IRBR4FPV.js +0 -506
- package/dist/chunk-MLKGABMK.js +0 -9
|
@@ -0,0 +1,2577 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunk7VPD5BMLjs = require('./chunk-7VPD5BML.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunk2P3A4VVYjs = require('./chunk-2P3A4VVY.js');
|
|
10
|
+
|
|
11
|
+
// ../../shared/connector/dist/core/ApiError.js
|
|
12
|
+
var require_ApiError = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
13
|
+
"../../shared/connector/dist/core/ApiError.js"(exports, module) {
|
|
14
|
+
"use strict";
|
|
15
|
+
var __defProp = Object.defineProperty;
|
|
16
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
17
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
18
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
19
|
+
var __export2 = (target, all) => {
|
|
20
|
+
for (var name in all)
|
|
21
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
22
|
+
};
|
|
23
|
+
var __copyProps = (to, from, except, desc) => {
|
|
24
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
25
|
+
for (let key of __getOwnPropNames(from))
|
|
26
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
27
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
28
|
+
}
|
|
29
|
+
return to;
|
|
30
|
+
};
|
|
31
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
+
var ApiError_exports = {};
|
|
33
|
+
__export2(ApiError_exports, {
|
|
34
|
+
ApiError: () => ApiError2
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(ApiError_exports);
|
|
37
|
+
var ApiError2 = class extends Error {
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
constructor(request, response, message) {
|
|
44
|
+
super(message);
|
|
45
|
+
this.name = "ApiError";
|
|
46
|
+
this.url = response.url;
|
|
47
|
+
this.status = response.status;
|
|
48
|
+
this.statusText = response.statusText;
|
|
49
|
+
this.body = response.body;
|
|
50
|
+
this.request = request;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// ../../shared/connector/dist/core/CancelablePromise.js
|
|
57
|
+
var require_CancelablePromise = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
58
|
+
"../../shared/connector/dist/core/CancelablePromise.js"(exports, module) {
|
|
59
|
+
"use strict";
|
|
60
|
+
var __defProp = Object.defineProperty;
|
|
61
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
62
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
63
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
64
|
+
var __export2 = (target, all) => {
|
|
65
|
+
for (var name in all)
|
|
66
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
67
|
+
};
|
|
68
|
+
var __copyProps = (to, from, except, desc) => {
|
|
69
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
70
|
+
for (let key of __getOwnPropNames(from))
|
|
71
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
72
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
73
|
+
}
|
|
74
|
+
return to;
|
|
75
|
+
};
|
|
76
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
77
|
+
var CancelablePromise_exports = {};
|
|
78
|
+
__export2(CancelablePromise_exports, {
|
|
79
|
+
CancelError: () => CancelError2,
|
|
80
|
+
CancelablePromise: () => CancelablePromise2
|
|
81
|
+
});
|
|
82
|
+
module.exports = __toCommonJS(CancelablePromise_exports);
|
|
83
|
+
var CancelError2 = class extends Error {
|
|
84
|
+
constructor(message) {
|
|
85
|
+
super(message);
|
|
86
|
+
this.name = "CancelError";
|
|
87
|
+
}
|
|
88
|
+
get isCancelled() {
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
var CancelablePromise2 = class {
|
|
93
|
+
#isResolved;
|
|
94
|
+
#isRejected;
|
|
95
|
+
#isCancelled;
|
|
96
|
+
#cancelHandlers;
|
|
97
|
+
#promise;
|
|
98
|
+
#resolve;
|
|
99
|
+
#reject;
|
|
100
|
+
constructor(executor) {
|
|
101
|
+
this.#isResolved = false;
|
|
102
|
+
this.#isRejected = false;
|
|
103
|
+
this.#isCancelled = false;
|
|
104
|
+
this.#cancelHandlers = [];
|
|
105
|
+
this.#promise = new Promise((resolve, reject) => {
|
|
106
|
+
this.#resolve = resolve;
|
|
107
|
+
this.#reject = reject;
|
|
108
|
+
const onResolve = (value) => {
|
|
109
|
+
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
this.#isResolved = true;
|
|
113
|
+
if (this.#resolve) this.#resolve(value);
|
|
114
|
+
};
|
|
115
|
+
const onReject = (reason) => {
|
|
116
|
+
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
this.#isRejected = true;
|
|
120
|
+
if (this.#reject) this.#reject(reason);
|
|
121
|
+
};
|
|
122
|
+
const onCancel = (cancelHandler) => {
|
|
123
|
+
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
this.#cancelHandlers.push(cancelHandler);
|
|
127
|
+
};
|
|
128
|
+
Object.defineProperty(onCancel, "isResolved", {
|
|
129
|
+
get: () => this.#isResolved
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(onCancel, "isRejected", {
|
|
132
|
+
get: () => this.#isRejected
|
|
133
|
+
});
|
|
134
|
+
Object.defineProperty(onCancel, "isCancelled", {
|
|
135
|
+
get: () => this.#isCancelled
|
|
136
|
+
});
|
|
137
|
+
return executor(onResolve, onReject, onCancel);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
get [Symbol.toStringTag]() {
|
|
141
|
+
return "Cancellable Promise";
|
|
142
|
+
}
|
|
143
|
+
then(onFulfilled, onRejected) {
|
|
144
|
+
return this.#promise.then(onFulfilled, onRejected);
|
|
145
|
+
}
|
|
146
|
+
catch(onRejected) {
|
|
147
|
+
return this.#promise.catch(onRejected);
|
|
148
|
+
}
|
|
149
|
+
finally(onFinally) {
|
|
150
|
+
return this.#promise.finally(onFinally);
|
|
151
|
+
}
|
|
152
|
+
cancel() {
|
|
153
|
+
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
this.#isCancelled = true;
|
|
157
|
+
if (this.#cancelHandlers.length) {
|
|
158
|
+
try {
|
|
159
|
+
for (const cancelHandler of this.#cancelHandlers) {
|
|
160
|
+
cancelHandler();
|
|
161
|
+
}
|
|
162
|
+
} catch (error) {
|
|
163
|
+
console.warn("Cancellation threw an error", error);
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
this.#cancelHandlers.length = 0;
|
|
168
|
+
if (this.#reject) this.#reject(new CancelError2("Request aborted"));
|
|
169
|
+
}
|
|
170
|
+
get isCancelled() {
|
|
171
|
+
return this.#isCancelled;
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
// ../../shared/connector/dist/core/OpenAPI.js
|
|
178
|
+
var require_OpenAPI = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
179
|
+
"../../shared/connector/dist/core/OpenAPI.js"(exports, module) {
|
|
180
|
+
"use strict";
|
|
181
|
+
var __defProp = Object.defineProperty;
|
|
182
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
183
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
184
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
185
|
+
var __export2 = (target, all) => {
|
|
186
|
+
for (var name in all)
|
|
187
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
188
|
+
};
|
|
189
|
+
var __copyProps = (to, from, except, desc) => {
|
|
190
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
191
|
+
for (let key of __getOwnPropNames(from))
|
|
192
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
193
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
194
|
+
}
|
|
195
|
+
return to;
|
|
196
|
+
};
|
|
197
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
198
|
+
var OpenAPI_exports = {};
|
|
199
|
+
__export2(OpenAPI_exports, {
|
|
200
|
+
OpenAPI: () => OpenAPI2
|
|
201
|
+
});
|
|
202
|
+
module.exports = __toCommonJS(OpenAPI_exports);
|
|
203
|
+
var OpenAPI2 = {
|
|
204
|
+
BASE: "",
|
|
205
|
+
VERSION: "0.0.1",
|
|
206
|
+
WITH_CREDENTIALS: false,
|
|
207
|
+
CREDENTIALS: "include",
|
|
208
|
+
TOKEN: void 0,
|
|
209
|
+
USERNAME: void 0,
|
|
210
|
+
PASSWORD: void 0,
|
|
211
|
+
HEADERS: void 0,
|
|
212
|
+
ENCODE_PATH: void 0
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
// ../../shared/connector/dist/schemas/$AllowMethodsAllDto.js
|
|
218
|
+
var require_AllowMethodsAllDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
219
|
+
"../../shared/connector/dist/schemas/$AllowMethodsAllDto.js"(exports, module) {
|
|
220
|
+
"use strict";
|
|
221
|
+
var __defProp = Object.defineProperty;
|
|
222
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
223
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
224
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
225
|
+
var __export2 = (target, all) => {
|
|
226
|
+
for (var name in all)
|
|
227
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
228
|
+
};
|
|
229
|
+
var __copyProps = (to, from, except, desc) => {
|
|
230
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
231
|
+
for (let key of __getOwnPropNames(from))
|
|
232
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
233
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
234
|
+
}
|
|
235
|
+
return to;
|
|
236
|
+
};
|
|
237
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
238
|
+
var AllowMethodsAllDto_exports = {};
|
|
239
|
+
__export2(AllowMethodsAllDto_exports, {
|
|
240
|
+
$AllowMethodsAllDto: () => $AllowMethodsAllDto2
|
|
241
|
+
});
|
|
242
|
+
module.exports = __toCommonJS(AllowMethodsAllDto_exports);
|
|
243
|
+
var $AllowMethodsAllDto2 = {
|
|
244
|
+
properties: {
|
|
245
|
+
anyMethod: {
|
|
246
|
+
type: "boolean",
|
|
247
|
+
description: `Whether to allow all methods`,
|
|
248
|
+
isRequired: true
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
// ../../shared/connector/dist/schemas/$AllowMethodsAllParams.js
|
|
256
|
+
var require_AllowMethodsAllParams = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
257
|
+
"../../shared/connector/dist/schemas/$AllowMethodsAllParams.js"(exports, module) {
|
|
258
|
+
"use strict";
|
|
259
|
+
var __defProp = Object.defineProperty;
|
|
260
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
261
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
262
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
263
|
+
var __export2 = (target, all) => {
|
|
264
|
+
for (var name in all)
|
|
265
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
266
|
+
};
|
|
267
|
+
var __copyProps = (to, from, except, desc) => {
|
|
268
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
269
|
+
for (let key of __getOwnPropNames(from))
|
|
270
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
271
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
272
|
+
}
|
|
273
|
+
return to;
|
|
274
|
+
};
|
|
275
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
276
|
+
var AllowMethodsAllParams_exports = {};
|
|
277
|
+
__export2(AllowMethodsAllParams_exports, {
|
|
278
|
+
$AllowMethodsAllParams: () => $AllowMethodsAllParams2
|
|
279
|
+
});
|
|
280
|
+
module.exports = __toCommonJS(AllowMethodsAllParams_exports);
|
|
281
|
+
var $AllowMethodsAllParams2 = {
|
|
282
|
+
properties: {
|
|
283
|
+
anyMethod: {
|
|
284
|
+
type: "boolean",
|
|
285
|
+
description: `Whether to allow all methods`,
|
|
286
|
+
isRequired: true
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
// ../../shared/connector/dist/schemas/$AllowMethodsSelectDto.js
|
|
294
|
+
var require_AllowMethodsSelectDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
295
|
+
"../../shared/connector/dist/schemas/$AllowMethodsSelectDto.js"(exports, module) {
|
|
296
|
+
"use strict";
|
|
297
|
+
var __defProp = Object.defineProperty;
|
|
298
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
299
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
300
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
301
|
+
var __export2 = (target, all) => {
|
|
302
|
+
for (var name in all)
|
|
303
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
304
|
+
};
|
|
305
|
+
var __copyProps = (to, from, except, desc) => {
|
|
306
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
307
|
+
for (let key of __getOwnPropNames(from))
|
|
308
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
309
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
310
|
+
}
|
|
311
|
+
return to;
|
|
312
|
+
};
|
|
313
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
314
|
+
var AllowMethodsSelectDto_exports = {};
|
|
315
|
+
__export2(AllowMethodsSelectDto_exports, {
|
|
316
|
+
$AllowMethodsSelectDto: () => $AllowMethodsSelectDto2
|
|
317
|
+
});
|
|
318
|
+
module.exports = __toCommonJS(AllowMethodsSelectDto_exports);
|
|
319
|
+
var $AllowMethodsSelectDto2 = {
|
|
320
|
+
properties: {
|
|
321
|
+
anyMethod: {
|
|
322
|
+
type: "boolean",
|
|
323
|
+
description: `Whether to allow all methods`,
|
|
324
|
+
isRequired: true
|
|
325
|
+
},
|
|
326
|
+
methodNames: {
|
|
327
|
+
type: "array",
|
|
328
|
+
contains: {
|
|
329
|
+
type: "string"
|
|
330
|
+
},
|
|
331
|
+
isRequired: true
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
// ../../shared/connector/dist/schemas/$AllowMethodsSelectParams.js
|
|
339
|
+
var require_AllowMethodsSelectParams = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
340
|
+
"../../shared/connector/dist/schemas/$AllowMethodsSelectParams.js"(exports, module) {
|
|
341
|
+
"use strict";
|
|
342
|
+
var __defProp = Object.defineProperty;
|
|
343
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
344
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
345
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
346
|
+
var __export2 = (target, all) => {
|
|
347
|
+
for (var name in all)
|
|
348
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
349
|
+
};
|
|
350
|
+
var __copyProps = (to, from, except, desc) => {
|
|
351
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
352
|
+
for (let key of __getOwnPropNames(from))
|
|
353
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
354
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
355
|
+
}
|
|
356
|
+
return to;
|
|
357
|
+
};
|
|
358
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
359
|
+
var AllowMethodsSelectParams_exports = {};
|
|
360
|
+
__export2(AllowMethodsSelectParams_exports, {
|
|
361
|
+
$AllowMethodsSelectParams: () => $AllowMethodsSelectParams2
|
|
362
|
+
});
|
|
363
|
+
module.exports = __toCommonJS(AllowMethodsSelectParams_exports);
|
|
364
|
+
var $AllowMethodsSelectParams2 = {
|
|
365
|
+
properties: {
|
|
366
|
+
anyMethod: {
|
|
367
|
+
type: "boolean",
|
|
368
|
+
description: `Whether to allow all methods`,
|
|
369
|
+
isRequired: true
|
|
370
|
+
},
|
|
371
|
+
methodNames: {
|
|
372
|
+
type: "array",
|
|
373
|
+
contains: {
|
|
374
|
+
type: "string"
|
|
375
|
+
},
|
|
376
|
+
isRequired: true
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
|
|
383
|
+
// ../../shared/connector/dist/schemas/$ConnectorActionDto.js
|
|
384
|
+
var require_ConnectorActionDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
385
|
+
"../../shared/connector/dist/schemas/$ConnectorActionDto.js"(exports, module) {
|
|
386
|
+
"use strict";
|
|
387
|
+
var __defProp = Object.defineProperty;
|
|
388
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
389
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
390
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
391
|
+
var __export2 = (target, all) => {
|
|
392
|
+
for (var name in all)
|
|
393
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
394
|
+
};
|
|
395
|
+
var __copyProps = (to, from, except, desc) => {
|
|
396
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
397
|
+
for (let key of __getOwnPropNames(from))
|
|
398
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
399
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
400
|
+
}
|
|
401
|
+
return to;
|
|
402
|
+
};
|
|
403
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
404
|
+
var ConnectorActionDto_exports = {};
|
|
405
|
+
__export2(ConnectorActionDto_exports, {
|
|
406
|
+
$ConnectorActionDto: () => $ConnectorActionDto2
|
|
407
|
+
});
|
|
408
|
+
module.exports = __toCommonJS(ConnectorActionDto_exports);
|
|
409
|
+
var $ConnectorActionDto2 = {
|
|
410
|
+
properties: {
|
|
411
|
+
type: {
|
|
412
|
+
type: "string",
|
|
413
|
+
isRequired: true
|
|
414
|
+
},
|
|
415
|
+
params: {
|
|
416
|
+
type: "dictionary",
|
|
417
|
+
contains: {
|
|
418
|
+
properties: {}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
// ../../shared/connector/dist/schemas/$ConnectorActionRequest.js
|
|
427
|
+
var require_ConnectorActionRequest = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
428
|
+
"../../shared/connector/dist/schemas/$ConnectorActionRequest.js"(exports, module) {
|
|
429
|
+
"use strict";
|
|
430
|
+
var __defProp = Object.defineProperty;
|
|
431
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
432
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
433
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
434
|
+
var __export2 = (target, all) => {
|
|
435
|
+
for (var name in all)
|
|
436
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
437
|
+
};
|
|
438
|
+
var __copyProps = (to, from, except, desc) => {
|
|
439
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
440
|
+
for (let key of __getOwnPropNames(from))
|
|
441
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
442
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
443
|
+
}
|
|
444
|
+
return to;
|
|
445
|
+
};
|
|
446
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
447
|
+
var ConnectorActionRequest_exports = {};
|
|
448
|
+
__export2(ConnectorActionRequest_exports, {
|
|
449
|
+
$ConnectorActionRequest: () => $ConnectorActionRequest2
|
|
450
|
+
});
|
|
451
|
+
module.exports = __toCommonJS(ConnectorActionRequest_exports);
|
|
452
|
+
var $ConnectorActionRequest2 = {
|
|
453
|
+
properties: {
|
|
454
|
+
type: {
|
|
455
|
+
type: "string",
|
|
456
|
+
description: `The type of the connector action`,
|
|
457
|
+
isRequired: true
|
|
458
|
+
},
|
|
459
|
+
params: {
|
|
460
|
+
type: "array",
|
|
461
|
+
contains: {
|
|
462
|
+
type: "dictionary",
|
|
463
|
+
contains: {
|
|
464
|
+
properties: {}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
// ../../shared/connector/dist/schemas/$ConnectorDelegateActionDto.js
|
|
474
|
+
var require_ConnectorDelegateActionDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
475
|
+
"../../shared/connector/dist/schemas/$ConnectorDelegateActionDto.js"(exports, module) {
|
|
476
|
+
"use strict";
|
|
477
|
+
var __defProp = Object.defineProperty;
|
|
478
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
479
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
480
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
481
|
+
var __export2 = (target, all) => {
|
|
482
|
+
for (var name in all)
|
|
483
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
484
|
+
};
|
|
485
|
+
var __copyProps = (to, from, except, desc) => {
|
|
486
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
487
|
+
for (let key of __getOwnPropNames(from))
|
|
488
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
489
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
490
|
+
}
|
|
491
|
+
return to;
|
|
492
|
+
};
|
|
493
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
494
|
+
var ConnectorDelegateActionDto_exports = {};
|
|
495
|
+
__export2(ConnectorDelegateActionDto_exports, {
|
|
496
|
+
$ConnectorDelegateActionDto: () => $ConnectorDelegateActionDto2
|
|
497
|
+
});
|
|
498
|
+
module.exports = __toCommonJS(ConnectorDelegateActionDto_exports);
|
|
499
|
+
var $ConnectorDelegateActionDto2 = {
|
|
500
|
+
properties: {
|
|
501
|
+
receiverId: {
|
|
502
|
+
type: "string",
|
|
503
|
+
description: `The receiver id of the connector delegate action payload`,
|
|
504
|
+
isRequired: true
|
|
505
|
+
},
|
|
506
|
+
actions: {
|
|
507
|
+
type: "array",
|
|
508
|
+
contains: {
|
|
509
|
+
type: "any-of",
|
|
510
|
+
contains: [{
|
|
511
|
+
type: "ConnectorActionDto"
|
|
512
|
+
}]
|
|
513
|
+
},
|
|
514
|
+
isRequired: true
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
// ../../shared/connector/dist/schemas/$ConnectorDelegateActionRequest.js
|
|
522
|
+
var require_ConnectorDelegateActionRequest = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
523
|
+
"../../shared/connector/dist/schemas/$ConnectorDelegateActionRequest.js"(exports, module) {
|
|
524
|
+
"use strict";
|
|
525
|
+
var __defProp = Object.defineProperty;
|
|
526
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
527
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
528
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
529
|
+
var __export2 = (target, all) => {
|
|
530
|
+
for (var name in all)
|
|
531
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
532
|
+
};
|
|
533
|
+
var __copyProps = (to, from, except, desc) => {
|
|
534
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
535
|
+
for (let key of __getOwnPropNames(from))
|
|
536
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
537
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
538
|
+
}
|
|
539
|
+
return to;
|
|
540
|
+
};
|
|
541
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
542
|
+
var ConnectorDelegateActionRequest_exports = {};
|
|
543
|
+
__export2(ConnectorDelegateActionRequest_exports, {
|
|
544
|
+
$ConnectorDelegateActionRequest: () => $ConnectorDelegateActionRequest2
|
|
545
|
+
});
|
|
546
|
+
module.exports = __toCommonJS(ConnectorDelegateActionRequest_exports);
|
|
547
|
+
var $ConnectorDelegateActionRequest2 = {
|
|
548
|
+
properties: {
|
|
549
|
+
receiverId: {
|
|
550
|
+
type: "string",
|
|
551
|
+
description: `The receiver id of the connector delegate action payload`,
|
|
552
|
+
isRequired: true
|
|
553
|
+
},
|
|
554
|
+
actions: {
|
|
555
|
+
type: "array",
|
|
556
|
+
contains: {
|
|
557
|
+
type: "any-of",
|
|
558
|
+
contains: [{
|
|
559
|
+
type: "ConnectorActionRequest"
|
|
560
|
+
}]
|
|
561
|
+
},
|
|
562
|
+
isRequired: true
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
|
|
569
|
+
// ../../shared/connector/dist/schemas/$ConnectorRequestDto.js
|
|
570
|
+
var require_ConnectorRequestDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
571
|
+
"../../shared/connector/dist/schemas/$ConnectorRequestDto.js"(exports, module) {
|
|
572
|
+
"use strict";
|
|
573
|
+
var __defProp = Object.defineProperty;
|
|
574
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
575
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
576
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
577
|
+
var __export2 = (target, all) => {
|
|
578
|
+
for (var name in all)
|
|
579
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
580
|
+
};
|
|
581
|
+
var __copyProps = (to, from, except, desc) => {
|
|
582
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
583
|
+
for (let key of __getOwnPropNames(from))
|
|
584
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
585
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
586
|
+
}
|
|
587
|
+
return to;
|
|
588
|
+
};
|
|
589
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
590
|
+
var ConnectorRequestDto_exports = {};
|
|
591
|
+
__export2(ConnectorRequestDto_exports, {
|
|
592
|
+
$ConnectorRequestDto: () => $ConnectorRequestDto2
|
|
593
|
+
});
|
|
594
|
+
module.exports = __toCommonJS(ConnectorRequestDto_exports);
|
|
595
|
+
var $ConnectorRequestDto2 = {
|
|
596
|
+
properties: {
|
|
597
|
+
method: {
|
|
598
|
+
type: "Enum",
|
|
599
|
+
isRequired: true
|
|
600
|
+
},
|
|
601
|
+
status: {
|
|
602
|
+
type: "Enum",
|
|
603
|
+
isRequired: true
|
|
604
|
+
},
|
|
605
|
+
network: {
|
|
606
|
+
type: "Enum",
|
|
607
|
+
isRequired: true
|
|
608
|
+
},
|
|
609
|
+
id: {
|
|
610
|
+
type: "string",
|
|
611
|
+
isRequired: true
|
|
612
|
+
},
|
|
613
|
+
origin: {
|
|
614
|
+
type: "string",
|
|
615
|
+
isRequired: true
|
|
616
|
+
},
|
|
617
|
+
payload: {
|
|
618
|
+
type: "dictionary",
|
|
619
|
+
contains: {
|
|
620
|
+
properties: {}
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
response: {
|
|
624
|
+
type: "dictionary",
|
|
625
|
+
contains: {
|
|
626
|
+
properties: {}
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
expiresAt: {
|
|
630
|
+
type: "string",
|
|
631
|
+
isRequired: true
|
|
632
|
+
},
|
|
633
|
+
createdAt: {
|
|
634
|
+
type: "string",
|
|
635
|
+
isRequired: true
|
|
636
|
+
},
|
|
637
|
+
updatedAt: {
|
|
638
|
+
type: "string",
|
|
639
|
+
isRequired: true
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
|
|
646
|
+
// ../../shared/connector/dist/schemas/$ConnectorRequestRequest.js
|
|
647
|
+
var require_ConnectorRequestRequest = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
648
|
+
"../../shared/connector/dist/schemas/$ConnectorRequestRequest.js"(exports, module) {
|
|
649
|
+
"use strict";
|
|
650
|
+
var __defProp = Object.defineProperty;
|
|
651
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
652
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
653
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
654
|
+
var __export2 = (target, all) => {
|
|
655
|
+
for (var name in all)
|
|
656
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
657
|
+
};
|
|
658
|
+
var __copyProps = (to, from, except, desc) => {
|
|
659
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
660
|
+
for (let key of __getOwnPropNames(from))
|
|
661
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
662
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
663
|
+
}
|
|
664
|
+
return to;
|
|
665
|
+
};
|
|
666
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
667
|
+
var ConnectorRequestRequest_exports = {};
|
|
668
|
+
__export2(ConnectorRequestRequest_exports, {
|
|
669
|
+
$ConnectorRequestRequest: () => $ConnectorRequestRequest2
|
|
670
|
+
});
|
|
671
|
+
module.exports = __toCommonJS(ConnectorRequestRequest_exports);
|
|
672
|
+
var $ConnectorRequestRequest2 = {
|
|
673
|
+
properties: {
|
|
674
|
+
method: {
|
|
675
|
+
type: "Enum",
|
|
676
|
+
isRequired: true
|
|
677
|
+
},
|
|
678
|
+
network: {
|
|
679
|
+
type: "Enum",
|
|
680
|
+
isRequired: true
|
|
681
|
+
},
|
|
682
|
+
origin: {
|
|
683
|
+
type: "string",
|
|
684
|
+
description: `The origin of the connector request`,
|
|
685
|
+
isRequired: true
|
|
686
|
+
},
|
|
687
|
+
payload: {
|
|
688
|
+
type: "dictionary",
|
|
689
|
+
contains: {
|
|
690
|
+
properties: {}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
|
|
698
|
+
// ../../shared/connector/dist/schemas/$ConnectorRequestResponseRequest.js
|
|
699
|
+
var require_ConnectorRequestResponseRequest = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
700
|
+
"../../shared/connector/dist/schemas/$ConnectorRequestResponseRequest.js"(exports, module) {
|
|
701
|
+
"use strict";
|
|
702
|
+
var __defProp = Object.defineProperty;
|
|
703
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
704
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
705
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
706
|
+
var __export2 = (target, all) => {
|
|
707
|
+
for (var name in all)
|
|
708
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
709
|
+
};
|
|
710
|
+
var __copyProps = (to, from, except, desc) => {
|
|
711
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
712
|
+
for (let key of __getOwnPropNames(from))
|
|
713
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
714
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
715
|
+
}
|
|
716
|
+
return to;
|
|
717
|
+
};
|
|
718
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
719
|
+
var ConnectorRequestResponseRequest_exports = {};
|
|
720
|
+
__export2(ConnectorRequestResponseRequest_exports, {
|
|
721
|
+
$ConnectorRequestResponseRequest: () => $ConnectorRequestResponseRequest2
|
|
722
|
+
});
|
|
723
|
+
module.exports = __toCommonJS(ConnectorRequestResponseRequest_exports);
|
|
724
|
+
var $ConnectorRequestResponseRequest2 = {
|
|
725
|
+
properties: {
|
|
726
|
+
status: {
|
|
727
|
+
type: "Enum",
|
|
728
|
+
isRequired: true
|
|
729
|
+
},
|
|
730
|
+
response: {
|
|
731
|
+
type: "dictionary",
|
|
732
|
+
contains: {
|
|
733
|
+
properties: {}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
|
|
741
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignAndSendTransactionPayloadDto.js
|
|
742
|
+
var require_ConnectorSignAndSendTransactionPayloadDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
743
|
+
"../../shared/connector/dist/schemas/$ConnectorSignAndSendTransactionPayloadDto.js"(exports, module) {
|
|
744
|
+
"use strict";
|
|
745
|
+
var __defProp = Object.defineProperty;
|
|
746
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
747
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
748
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
749
|
+
var __export2 = (target, all) => {
|
|
750
|
+
for (var name in all)
|
|
751
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
752
|
+
};
|
|
753
|
+
var __copyProps = (to, from, except, desc) => {
|
|
754
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
755
|
+
for (let key of __getOwnPropNames(from))
|
|
756
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
757
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
758
|
+
}
|
|
759
|
+
return to;
|
|
760
|
+
};
|
|
761
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
762
|
+
var ConnectorSignAndSendTransactionPayloadDto_exports = {};
|
|
763
|
+
__export2(ConnectorSignAndSendTransactionPayloadDto_exports, {
|
|
764
|
+
$ConnectorSignAndSendTransactionPayloadDto: () => $ConnectorSignAndSendTransactionPayloadDto2
|
|
765
|
+
});
|
|
766
|
+
module.exports = __toCommonJS(ConnectorSignAndSendTransactionPayloadDto_exports);
|
|
767
|
+
var $ConnectorSignAndSendTransactionPayloadDto2 = {
|
|
768
|
+
properties: {
|
|
769
|
+
signerId: {
|
|
770
|
+
type: "string",
|
|
771
|
+
description: `The signer id of the connector sign and send transaction payload`
|
|
772
|
+
},
|
|
773
|
+
receiverId: {
|
|
774
|
+
type: "string",
|
|
775
|
+
description: `The receiver id of the connector sign and send transaction payload`,
|
|
776
|
+
isRequired: true
|
|
777
|
+
},
|
|
778
|
+
actions: {
|
|
779
|
+
type: "array",
|
|
780
|
+
contains: {
|
|
781
|
+
type: "any-of",
|
|
782
|
+
contains: [{
|
|
783
|
+
type: "ConnectorActionDto"
|
|
784
|
+
}]
|
|
785
|
+
},
|
|
786
|
+
isRequired: true
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
|
|
793
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignAndSendTransactionPayloadRequest.js
|
|
794
|
+
var require_ConnectorSignAndSendTransactionPayloadRequest = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
795
|
+
"../../shared/connector/dist/schemas/$ConnectorSignAndSendTransactionPayloadRequest.js"(exports, module) {
|
|
796
|
+
"use strict";
|
|
797
|
+
var __defProp = Object.defineProperty;
|
|
798
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
799
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
800
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
801
|
+
var __export2 = (target, all) => {
|
|
802
|
+
for (var name in all)
|
|
803
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
804
|
+
};
|
|
805
|
+
var __copyProps = (to, from, except, desc) => {
|
|
806
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
807
|
+
for (let key of __getOwnPropNames(from))
|
|
808
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
809
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
810
|
+
}
|
|
811
|
+
return to;
|
|
812
|
+
};
|
|
813
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
814
|
+
var ConnectorSignAndSendTransactionPayloadRequest_exports = {};
|
|
815
|
+
__export2(ConnectorSignAndSendTransactionPayloadRequest_exports, {
|
|
816
|
+
$ConnectorSignAndSendTransactionPayloadRequest: () => $ConnectorSignAndSendTransactionPayloadRequest2
|
|
817
|
+
});
|
|
818
|
+
module.exports = __toCommonJS(ConnectorSignAndSendTransactionPayloadRequest_exports);
|
|
819
|
+
var $ConnectorSignAndSendTransactionPayloadRequest2 = {
|
|
820
|
+
properties: {
|
|
821
|
+
signerId: {
|
|
822
|
+
type: "string",
|
|
823
|
+
description: `The signer id of the connector sign and send transaction payload`
|
|
824
|
+
},
|
|
825
|
+
receiverId: {
|
|
826
|
+
type: "string",
|
|
827
|
+
description: `The receiver id of the connector sign and send transaction payload`,
|
|
828
|
+
isRequired: true
|
|
829
|
+
},
|
|
830
|
+
actions: {
|
|
831
|
+
type: "array",
|
|
832
|
+
contains: {
|
|
833
|
+
type: "any-of",
|
|
834
|
+
contains: [{
|
|
835
|
+
type: "ConnectorActionRequest"
|
|
836
|
+
}]
|
|
837
|
+
},
|
|
838
|
+
isRequired: true
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
|
|
845
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignAndSendTransactionsPayloadDto.js
|
|
846
|
+
var require_ConnectorSignAndSendTransactionsPayloadDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
847
|
+
"../../shared/connector/dist/schemas/$ConnectorSignAndSendTransactionsPayloadDto.js"(exports, module) {
|
|
848
|
+
"use strict";
|
|
849
|
+
var __defProp = Object.defineProperty;
|
|
850
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
851
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
852
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
853
|
+
var __export2 = (target, all) => {
|
|
854
|
+
for (var name in all)
|
|
855
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
856
|
+
};
|
|
857
|
+
var __copyProps = (to, from, except, desc) => {
|
|
858
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
859
|
+
for (let key of __getOwnPropNames(from))
|
|
860
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
861
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
862
|
+
}
|
|
863
|
+
return to;
|
|
864
|
+
};
|
|
865
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
866
|
+
var ConnectorSignAndSendTransactionsPayloadDto_exports = {};
|
|
867
|
+
__export2(ConnectorSignAndSendTransactionsPayloadDto_exports, {
|
|
868
|
+
$ConnectorSignAndSendTransactionsPayloadDto: () => $ConnectorSignAndSendTransactionsPayloadDto2
|
|
869
|
+
});
|
|
870
|
+
module.exports = __toCommonJS(ConnectorSignAndSendTransactionsPayloadDto_exports);
|
|
871
|
+
var $ConnectorSignAndSendTransactionsPayloadDto2 = {
|
|
872
|
+
properties: {
|
|
873
|
+
signerId: {
|
|
874
|
+
type: "string",
|
|
875
|
+
description: `The signer id of the connector sign and send transactions payload`
|
|
876
|
+
},
|
|
877
|
+
transactions: {
|
|
878
|
+
type: "array",
|
|
879
|
+
contains: {
|
|
880
|
+
type: "any-of",
|
|
881
|
+
contains: [{
|
|
882
|
+
type: "ConnectorTransactionDto"
|
|
883
|
+
}]
|
|
884
|
+
},
|
|
885
|
+
isRequired: true
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
});
|
|
891
|
+
|
|
892
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignAndSendTransactionsPayloadRequest.js
|
|
893
|
+
var require_ConnectorSignAndSendTransactionsPayloadRequest = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
894
|
+
"../../shared/connector/dist/schemas/$ConnectorSignAndSendTransactionsPayloadRequest.js"(exports, module) {
|
|
895
|
+
"use strict";
|
|
896
|
+
var __defProp = Object.defineProperty;
|
|
897
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
898
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
899
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
900
|
+
var __export2 = (target, all) => {
|
|
901
|
+
for (var name in all)
|
|
902
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
903
|
+
};
|
|
904
|
+
var __copyProps = (to, from, except, desc) => {
|
|
905
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
906
|
+
for (let key of __getOwnPropNames(from))
|
|
907
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
908
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
909
|
+
}
|
|
910
|
+
return to;
|
|
911
|
+
};
|
|
912
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
913
|
+
var ConnectorSignAndSendTransactionsPayloadRequest_exports = {};
|
|
914
|
+
__export2(ConnectorSignAndSendTransactionsPayloadRequest_exports, {
|
|
915
|
+
$ConnectorSignAndSendTransactionsPayloadRequest: () => $ConnectorSignAndSendTransactionsPayloadRequest2
|
|
916
|
+
});
|
|
917
|
+
module.exports = __toCommonJS(ConnectorSignAndSendTransactionsPayloadRequest_exports);
|
|
918
|
+
var $ConnectorSignAndSendTransactionsPayloadRequest2 = {
|
|
919
|
+
properties: {
|
|
920
|
+
signerId: {
|
|
921
|
+
type: "string",
|
|
922
|
+
description: `The signer id of the connector sign and send transactions payload`
|
|
923
|
+
},
|
|
924
|
+
transactions: {
|
|
925
|
+
type: "array",
|
|
926
|
+
contains: {
|
|
927
|
+
type: "any-of",
|
|
928
|
+
contains: [{
|
|
929
|
+
type: "ConnectorTransactionRequest"
|
|
930
|
+
}]
|
|
931
|
+
},
|
|
932
|
+
isRequired: true
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
|
|
939
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignDelegateActionsPayloadDto.js
|
|
940
|
+
var require_ConnectorSignDelegateActionsPayloadDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
941
|
+
"../../shared/connector/dist/schemas/$ConnectorSignDelegateActionsPayloadDto.js"(exports, module) {
|
|
942
|
+
"use strict";
|
|
943
|
+
var __defProp = Object.defineProperty;
|
|
944
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
945
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
946
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
947
|
+
var __export2 = (target, all) => {
|
|
948
|
+
for (var name in all)
|
|
949
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
950
|
+
};
|
|
951
|
+
var __copyProps = (to, from, except, desc) => {
|
|
952
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
953
|
+
for (let key of __getOwnPropNames(from))
|
|
954
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
955
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
956
|
+
}
|
|
957
|
+
return to;
|
|
958
|
+
};
|
|
959
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
960
|
+
var ConnectorSignDelegateActionsPayloadDto_exports = {};
|
|
961
|
+
__export2(ConnectorSignDelegateActionsPayloadDto_exports, {
|
|
962
|
+
$ConnectorSignDelegateActionsPayloadDto: () => $ConnectorSignDelegateActionsPayloadDto2
|
|
963
|
+
});
|
|
964
|
+
module.exports = __toCommonJS(ConnectorSignDelegateActionsPayloadDto_exports);
|
|
965
|
+
var $ConnectorSignDelegateActionsPayloadDto2 = {
|
|
966
|
+
properties: {
|
|
967
|
+
signerId: {
|
|
968
|
+
type: "string",
|
|
969
|
+
description: `The signer id of the connector sign delegate actions payload`
|
|
970
|
+
},
|
|
971
|
+
delegateActions: {
|
|
972
|
+
type: "array",
|
|
973
|
+
contains: {
|
|
974
|
+
type: "any-of",
|
|
975
|
+
contains: [{
|
|
976
|
+
type: "ConnectorDelegateActionDto"
|
|
977
|
+
}]
|
|
978
|
+
},
|
|
979
|
+
isRequired: true
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
}
|
|
984
|
+
});
|
|
985
|
+
|
|
986
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignDelegateActionsPayloadRequest.js
|
|
987
|
+
var require_ConnectorSignDelegateActionsPayloadRequest = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
988
|
+
"../../shared/connector/dist/schemas/$ConnectorSignDelegateActionsPayloadRequest.js"(exports, module) {
|
|
989
|
+
"use strict";
|
|
990
|
+
var __defProp = Object.defineProperty;
|
|
991
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
992
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
993
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
994
|
+
var __export2 = (target, all) => {
|
|
995
|
+
for (var name in all)
|
|
996
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
997
|
+
};
|
|
998
|
+
var __copyProps = (to, from, except, desc) => {
|
|
999
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1000
|
+
for (let key of __getOwnPropNames(from))
|
|
1001
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1002
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1003
|
+
}
|
|
1004
|
+
return to;
|
|
1005
|
+
};
|
|
1006
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1007
|
+
var ConnectorSignDelegateActionsPayloadRequest_exports = {};
|
|
1008
|
+
__export2(ConnectorSignDelegateActionsPayloadRequest_exports, {
|
|
1009
|
+
$ConnectorSignDelegateActionsPayloadRequest: () => $ConnectorSignDelegateActionsPayloadRequest2
|
|
1010
|
+
});
|
|
1011
|
+
module.exports = __toCommonJS(ConnectorSignDelegateActionsPayloadRequest_exports);
|
|
1012
|
+
var $ConnectorSignDelegateActionsPayloadRequest2 = {
|
|
1013
|
+
properties: {
|
|
1014
|
+
signerId: {
|
|
1015
|
+
type: "string",
|
|
1016
|
+
description: `The signer id of the connector sign delegate actions payload`
|
|
1017
|
+
},
|
|
1018
|
+
delegateActions: {
|
|
1019
|
+
type: "array",
|
|
1020
|
+
contains: {
|
|
1021
|
+
type: "any-of",
|
|
1022
|
+
contains: [{
|
|
1023
|
+
type: "ConnectorDelegateActionRequest"
|
|
1024
|
+
}]
|
|
1025
|
+
},
|
|
1026
|
+
isRequired: true
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
});
|
|
1032
|
+
|
|
1033
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignInAddFunctionCallKeyDto.js
|
|
1034
|
+
var require_ConnectorSignInAddFunctionCallKeyDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1035
|
+
"../../shared/connector/dist/schemas/$ConnectorSignInAddFunctionCallKeyDto.js"(exports, module) {
|
|
1036
|
+
"use strict";
|
|
1037
|
+
var __defProp = Object.defineProperty;
|
|
1038
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1039
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1040
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1041
|
+
var __export2 = (target, all) => {
|
|
1042
|
+
for (var name in all)
|
|
1043
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1044
|
+
};
|
|
1045
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1046
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1047
|
+
for (let key of __getOwnPropNames(from))
|
|
1048
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1049
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1050
|
+
}
|
|
1051
|
+
return to;
|
|
1052
|
+
};
|
|
1053
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1054
|
+
var ConnectorSignInAddFunctionCallKeyDto_exports = {};
|
|
1055
|
+
__export2(ConnectorSignInAddFunctionCallKeyDto_exports, {
|
|
1056
|
+
$ConnectorSignInAddFunctionCallKeyDto: () => $ConnectorSignInAddFunctionCallKeyDto2
|
|
1057
|
+
});
|
|
1058
|
+
module.exports = __toCommonJS(ConnectorSignInAddFunctionCallKeyDto_exports);
|
|
1059
|
+
var $ConnectorSignInAddFunctionCallKeyDto2 = {
|
|
1060
|
+
properties: {
|
|
1061
|
+
contractId: {
|
|
1062
|
+
type: "string",
|
|
1063
|
+
description: `The contract id of the connector sign in payload`,
|
|
1064
|
+
isRequired: true
|
|
1065
|
+
},
|
|
1066
|
+
publicKey: {
|
|
1067
|
+
type: "string",
|
|
1068
|
+
description: `The public key of the connector sign in payload`,
|
|
1069
|
+
isRequired: true
|
|
1070
|
+
},
|
|
1071
|
+
allowMethods: {
|
|
1072
|
+
type: "any-of",
|
|
1073
|
+
description: `The allow methods of the connector sign in payload`,
|
|
1074
|
+
contains: [{
|
|
1075
|
+
type: "AllowMethodsAllDto"
|
|
1076
|
+
}, {
|
|
1077
|
+
type: "AllowMethodsSelectDto"
|
|
1078
|
+
}],
|
|
1079
|
+
isRequired: true
|
|
1080
|
+
},
|
|
1081
|
+
gasAllowance: {
|
|
1082
|
+
type: "any-of",
|
|
1083
|
+
description: `The gas allowance of the connector sign in payload`,
|
|
1084
|
+
contains: [{
|
|
1085
|
+
type: "GasAllowanceUnlimitedDto"
|
|
1086
|
+
}, {
|
|
1087
|
+
type: "GasAllowanceLimitedDto"
|
|
1088
|
+
}]
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
};
|
|
1092
|
+
}
|
|
1093
|
+
});
|
|
1094
|
+
|
|
1095
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignInAddFunctionCallKeyParams.js
|
|
1096
|
+
var require_ConnectorSignInAddFunctionCallKeyParams = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1097
|
+
"../../shared/connector/dist/schemas/$ConnectorSignInAddFunctionCallKeyParams.js"(exports, module) {
|
|
1098
|
+
"use strict";
|
|
1099
|
+
var __defProp = Object.defineProperty;
|
|
1100
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1101
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1102
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1103
|
+
var __export2 = (target, all) => {
|
|
1104
|
+
for (var name in all)
|
|
1105
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1106
|
+
};
|
|
1107
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1108
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1109
|
+
for (let key of __getOwnPropNames(from))
|
|
1110
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1111
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1112
|
+
}
|
|
1113
|
+
return to;
|
|
1114
|
+
};
|
|
1115
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1116
|
+
var ConnectorSignInAddFunctionCallKeyParams_exports = {};
|
|
1117
|
+
__export2(ConnectorSignInAddFunctionCallKeyParams_exports, {
|
|
1118
|
+
$ConnectorSignInAddFunctionCallKeyParams: () => $ConnectorSignInAddFunctionCallKeyParams2
|
|
1119
|
+
});
|
|
1120
|
+
module.exports = __toCommonJS(ConnectorSignInAddFunctionCallKeyParams_exports);
|
|
1121
|
+
var $ConnectorSignInAddFunctionCallKeyParams2 = {
|
|
1122
|
+
properties: {
|
|
1123
|
+
contractId: {
|
|
1124
|
+
type: "string",
|
|
1125
|
+
description: `The contract id of the connector sign in payload`,
|
|
1126
|
+
isRequired: true
|
|
1127
|
+
},
|
|
1128
|
+
publicKey: {
|
|
1129
|
+
type: "string",
|
|
1130
|
+
description: `The public key of the connector sign in payload`,
|
|
1131
|
+
isRequired: true
|
|
1132
|
+
},
|
|
1133
|
+
allowMethods: {
|
|
1134
|
+
type: "any-of",
|
|
1135
|
+
description: `The allow methods of the connector sign in payload`,
|
|
1136
|
+
contains: [{
|
|
1137
|
+
type: "AllowMethodsAllParams"
|
|
1138
|
+
}, {
|
|
1139
|
+
type: "AllowMethodsSelectParams"
|
|
1140
|
+
}],
|
|
1141
|
+
isRequired: true
|
|
1142
|
+
},
|
|
1143
|
+
gasAllowance: {
|
|
1144
|
+
type: "any-of",
|
|
1145
|
+
description: `The gas allowance of the connector sign in payload`,
|
|
1146
|
+
contains: [{
|
|
1147
|
+
type: "GasAllowanceUnlimitedParams"
|
|
1148
|
+
}, {
|
|
1149
|
+
type: "GasAllowanceLimitedParams"
|
|
1150
|
+
}]
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
});
|
|
1156
|
+
|
|
1157
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignInAndSignMessageDto.js
|
|
1158
|
+
var require_ConnectorSignInAndSignMessageDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1159
|
+
"../../shared/connector/dist/schemas/$ConnectorSignInAndSignMessageDto.js"(exports, module) {
|
|
1160
|
+
"use strict";
|
|
1161
|
+
var __defProp = Object.defineProperty;
|
|
1162
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1163
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1164
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1165
|
+
var __export2 = (target, all) => {
|
|
1166
|
+
for (var name in all)
|
|
1167
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1168
|
+
};
|
|
1169
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1170
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1171
|
+
for (let key of __getOwnPropNames(from))
|
|
1172
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1173
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1174
|
+
}
|
|
1175
|
+
return to;
|
|
1176
|
+
};
|
|
1177
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1178
|
+
var ConnectorSignInAndSignMessageDto_exports = {};
|
|
1179
|
+
__export2(ConnectorSignInAndSignMessageDto_exports, {
|
|
1180
|
+
$ConnectorSignInAndSignMessageDto: () => $ConnectorSignInAndSignMessageDto2
|
|
1181
|
+
});
|
|
1182
|
+
module.exports = __toCommonJS(ConnectorSignInAndSignMessageDto_exports);
|
|
1183
|
+
var $ConnectorSignInAndSignMessageDto2 = {
|
|
1184
|
+
properties: {
|
|
1185
|
+
message: {
|
|
1186
|
+
type: "string",
|
|
1187
|
+
description: `The message of the connector sign message payload`,
|
|
1188
|
+
isRequired: true
|
|
1189
|
+
},
|
|
1190
|
+
recipient: {
|
|
1191
|
+
type: "string",
|
|
1192
|
+
description: `The recipient of the connector sign message payload`,
|
|
1193
|
+
isRequired: true
|
|
1194
|
+
},
|
|
1195
|
+
nonce: {
|
|
1196
|
+
type: "array",
|
|
1197
|
+
contains: {
|
|
1198
|
+
type: "number"
|
|
1199
|
+
},
|
|
1200
|
+
isRequired: true
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1206
|
+
|
|
1207
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignInAndSignMessageParams.js
|
|
1208
|
+
var require_ConnectorSignInAndSignMessageParams = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1209
|
+
"../../shared/connector/dist/schemas/$ConnectorSignInAndSignMessageParams.js"(exports, module) {
|
|
1210
|
+
"use strict";
|
|
1211
|
+
var __defProp = Object.defineProperty;
|
|
1212
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1213
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1214
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1215
|
+
var __export2 = (target, all) => {
|
|
1216
|
+
for (var name in all)
|
|
1217
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1218
|
+
};
|
|
1219
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1220
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1221
|
+
for (let key of __getOwnPropNames(from))
|
|
1222
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1223
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1224
|
+
}
|
|
1225
|
+
return to;
|
|
1226
|
+
};
|
|
1227
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1228
|
+
var ConnectorSignInAndSignMessageParams_exports = {};
|
|
1229
|
+
__export2(ConnectorSignInAndSignMessageParams_exports, {
|
|
1230
|
+
$ConnectorSignInAndSignMessageParams: () => $ConnectorSignInAndSignMessageParams2
|
|
1231
|
+
});
|
|
1232
|
+
module.exports = __toCommonJS(ConnectorSignInAndSignMessageParams_exports);
|
|
1233
|
+
var $ConnectorSignInAndSignMessageParams2 = {
|
|
1234
|
+
properties: {
|
|
1235
|
+
message: {
|
|
1236
|
+
type: "string",
|
|
1237
|
+
description: `The message of the connector sign message payload`,
|
|
1238
|
+
isRequired: true
|
|
1239
|
+
},
|
|
1240
|
+
recipient: {
|
|
1241
|
+
type: "string",
|
|
1242
|
+
description: `The recipient of the connector sign message payload`,
|
|
1243
|
+
isRequired: true
|
|
1244
|
+
},
|
|
1245
|
+
nonce: {
|
|
1246
|
+
type: "array",
|
|
1247
|
+
contains: {
|
|
1248
|
+
type: "number"
|
|
1249
|
+
},
|
|
1250
|
+
isRequired: true
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
});
|
|
1256
|
+
|
|
1257
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignInResponseDto.js
|
|
1258
|
+
var require_ConnectorSignInResponseDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1259
|
+
"../../shared/connector/dist/schemas/$ConnectorSignInResponseDto.js"(exports, module) {
|
|
1260
|
+
"use strict";
|
|
1261
|
+
var __defProp = Object.defineProperty;
|
|
1262
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1263
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1264
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1265
|
+
var __export2 = (target, all) => {
|
|
1266
|
+
for (var name in all)
|
|
1267
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1268
|
+
};
|
|
1269
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1270
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1271
|
+
for (let key of __getOwnPropNames(from))
|
|
1272
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1273
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1274
|
+
}
|
|
1275
|
+
return to;
|
|
1276
|
+
};
|
|
1277
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1278
|
+
var ConnectorSignInResponseDto_exports = {};
|
|
1279
|
+
__export2(ConnectorSignInResponseDto_exports, {
|
|
1280
|
+
$ConnectorSignInResponseDto: () => $ConnectorSignInResponseDto2
|
|
1281
|
+
});
|
|
1282
|
+
module.exports = __toCommonJS(ConnectorSignInResponseDto_exports);
|
|
1283
|
+
var $ConnectorSignInResponseDto2 = {
|
|
1284
|
+
properties: {
|
|
1285
|
+
accountId: {
|
|
1286
|
+
type: "string",
|
|
1287
|
+
description: `The account id of the connector sign in response`,
|
|
1288
|
+
isRequired: true
|
|
1289
|
+
},
|
|
1290
|
+
publicKey: {
|
|
1291
|
+
type: "string",
|
|
1292
|
+
description: `The public key of the connector sign in response`,
|
|
1293
|
+
isRequired: true
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
});
|
|
1299
|
+
|
|
1300
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignInWithKeyPayloadDto.js
|
|
1301
|
+
var require_ConnectorSignInWithKeyPayloadDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1302
|
+
"../../shared/connector/dist/schemas/$ConnectorSignInWithKeyPayloadDto.js"(exports, module) {
|
|
1303
|
+
"use strict";
|
|
1304
|
+
var __defProp = Object.defineProperty;
|
|
1305
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1306
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1307
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1308
|
+
var __export2 = (target, all) => {
|
|
1309
|
+
for (var name in all)
|
|
1310
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1311
|
+
};
|
|
1312
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1313
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1314
|
+
for (let key of __getOwnPropNames(from))
|
|
1315
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1316
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1317
|
+
}
|
|
1318
|
+
return to;
|
|
1319
|
+
};
|
|
1320
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1321
|
+
var ConnectorSignInWithKeyPayloadDto_exports = {};
|
|
1322
|
+
__export2(ConnectorSignInWithKeyPayloadDto_exports, {
|
|
1323
|
+
$ConnectorSignInWithKeyPayloadDto: () => $ConnectorSignInWithKeyPayloadDto2
|
|
1324
|
+
});
|
|
1325
|
+
module.exports = __toCommonJS(ConnectorSignInWithKeyPayloadDto_exports);
|
|
1326
|
+
var $ConnectorSignInWithKeyPayloadDto2 = {
|
|
1327
|
+
properties: {
|
|
1328
|
+
addFunctionCallKey: {
|
|
1329
|
+
type: "any-of",
|
|
1330
|
+
description: `The add function call key params of the connector sign in payload`,
|
|
1331
|
+
contains: [{
|
|
1332
|
+
type: "ConnectorSignInAddFunctionCallKeyDto"
|
|
1333
|
+
}],
|
|
1334
|
+
isRequired: true
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
});
|
|
1340
|
+
|
|
1341
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignInWithKeyPayloadRequest.js
|
|
1342
|
+
var require_ConnectorSignInWithKeyPayloadRequest = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1343
|
+
"../../shared/connector/dist/schemas/$ConnectorSignInWithKeyPayloadRequest.js"(exports, module) {
|
|
1344
|
+
"use strict";
|
|
1345
|
+
var __defProp = Object.defineProperty;
|
|
1346
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1347
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1348
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1349
|
+
var __export2 = (target, all) => {
|
|
1350
|
+
for (var name in all)
|
|
1351
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1352
|
+
};
|
|
1353
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1354
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1355
|
+
for (let key of __getOwnPropNames(from))
|
|
1356
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1357
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1358
|
+
}
|
|
1359
|
+
return to;
|
|
1360
|
+
};
|
|
1361
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1362
|
+
var ConnectorSignInWithKeyPayloadRequest_exports = {};
|
|
1363
|
+
__export2(ConnectorSignInWithKeyPayloadRequest_exports, {
|
|
1364
|
+
$ConnectorSignInWithKeyPayloadRequest: () => $ConnectorSignInWithKeyPayloadRequest2
|
|
1365
|
+
});
|
|
1366
|
+
module.exports = __toCommonJS(ConnectorSignInWithKeyPayloadRequest_exports);
|
|
1367
|
+
var $ConnectorSignInWithKeyPayloadRequest2 = {
|
|
1368
|
+
properties: {
|
|
1369
|
+
addFunctionCallKey: {
|
|
1370
|
+
type: "any-of",
|
|
1371
|
+
description: `The add function call key params of the connector sign in payload`,
|
|
1372
|
+
contains: [{
|
|
1373
|
+
type: "ConnectorSignInAddFunctionCallKeyParams"
|
|
1374
|
+
}],
|
|
1375
|
+
isRequired: true
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
});
|
|
1381
|
+
|
|
1382
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignInWithMessagePayloadDto.js
|
|
1383
|
+
var require_ConnectorSignInWithMessagePayloadDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1384
|
+
"../../shared/connector/dist/schemas/$ConnectorSignInWithMessagePayloadDto.js"(exports, module) {
|
|
1385
|
+
"use strict";
|
|
1386
|
+
var __defProp = Object.defineProperty;
|
|
1387
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1388
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1389
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1390
|
+
var __export2 = (target, all) => {
|
|
1391
|
+
for (var name in all)
|
|
1392
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1393
|
+
};
|
|
1394
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1395
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1396
|
+
for (let key of __getOwnPropNames(from))
|
|
1397
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1398
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1399
|
+
}
|
|
1400
|
+
return to;
|
|
1401
|
+
};
|
|
1402
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1403
|
+
var ConnectorSignInWithMessagePayloadDto_exports = {};
|
|
1404
|
+
__export2(ConnectorSignInWithMessagePayloadDto_exports, {
|
|
1405
|
+
$ConnectorSignInWithMessagePayloadDto: () => $ConnectorSignInWithMessagePayloadDto2
|
|
1406
|
+
});
|
|
1407
|
+
module.exports = __toCommonJS(ConnectorSignInWithMessagePayloadDto_exports);
|
|
1408
|
+
var $ConnectorSignInWithMessagePayloadDto2 = {
|
|
1409
|
+
properties: {
|
|
1410
|
+
messageParams: {
|
|
1411
|
+
type: "any-of",
|
|
1412
|
+
description: `The sign message params of the connector sign message payload`,
|
|
1413
|
+
contains: [{
|
|
1414
|
+
type: "ConnectorSignInAndSignMessageDto"
|
|
1415
|
+
}],
|
|
1416
|
+
isRequired: true
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
}
|
|
1421
|
+
});
|
|
1422
|
+
|
|
1423
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignInWithMessagePayloadRequest.js
|
|
1424
|
+
var require_ConnectorSignInWithMessagePayloadRequest = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1425
|
+
"../../shared/connector/dist/schemas/$ConnectorSignInWithMessagePayloadRequest.js"(exports, module) {
|
|
1426
|
+
"use strict";
|
|
1427
|
+
var __defProp = Object.defineProperty;
|
|
1428
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1429
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1430
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1431
|
+
var __export2 = (target, all) => {
|
|
1432
|
+
for (var name in all)
|
|
1433
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1434
|
+
};
|
|
1435
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1436
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1437
|
+
for (let key of __getOwnPropNames(from))
|
|
1438
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1439
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1440
|
+
}
|
|
1441
|
+
return to;
|
|
1442
|
+
};
|
|
1443
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1444
|
+
var ConnectorSignInWithMessagePayloadRequest_exports = {};
|
|
1445
|
+
__export2(ConnectorSignInWithMessagePayloadRequest_exports, {
|
|
1446
|
+
$ConnectorSignInWithMessagePayloadRequest: () => $ConnectorSignInWithMessagePayloadRequest2
|
|
1447
|
+
});
|
|
1448
|
+
module.exports = __toCommonJS(ConnectorSignInWithMessagePayloadRequest_exports);
|
|
1449
|
+
var $ConnectorSignInWithMessagePayloadRequest2 = {
|
|
1450
|
+
properties: {
|
|
1451
|
+
messageParams: {
|
|
1452
|
+
type: "any-of",
|
|
1453
|
+
description: `The sign message params of the connector sign message payload`,
|
|
1454
|
+
contains: [{
|
|
1455
|
+
type: "ConnectorSignInAndSignMessageParams"
|
|
1456
|
+
}],
|
|
1457
|
+
isRequired: true
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
};
|
|
1461
|
+
}
|
|
1462
|
+
});
|
|
1463
|
+
|
|
1464
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignInWithMessageResponseDto.js
|
|
1465
|
+
var require_ConnectorSignInWithMessageResponseDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1466
|
+
"../../shared/connector/dist/schemas/$ConnectorSignInWithMessageResponseDto.js"(exports, module) {
|
|
1467
|
+
"use strict";
|
|
1468
|
+
var __defProp = Object.defineProperty;
|
|
1469
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1470
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1471
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1472
|
+
var __export2 = (target, all) => {
|
|
1473
|
+
for (var name in all)
|
|
1474
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1475
|
+
};
|
|
1476
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1477
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1478
|
+
for (let key of __getOwnPropNames(from))
|
|
1479
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1480
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1481
|
+
}
|
|
1482
|
+
return to;
|
|
1483
|
+
};
|
|
1484
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1485
|
+
var ConnectorSignInWithMessageResponseDto_exports = {};
|
|
1486
|
+
__export2(ConnectorSignInWithMessageResponseDto_exports, {
|
|
1487
|
+
$ConnectorSignInWithMessageResponseDto: () => $ConnectorSignInWithMessageResponseDto2
|
|
1488
|
+
});
|
|
1489
|
+
module.exports = __toCommonJS(ConnectorSignInWithMessageResponseDto_exports);
|
|
1490
|
+
var $ConnectorSignInWithMessageResponseDto2 = {
|
|
1491
|
+
properties: {
|
|
1492
|
+
accountId: {
|
|
1493
|
+
type: "string",
|
|
1494
|
+
description: `The account id of the connector sign in with message response`,
|
|
1495
|
+
isRequired: true
|
|
1496
|
+
},
|
|
1497
|
+
publicKey: {
|
|
1498
|
+
type: "string",
|
|
1499
|
+
description: `The public key of the connector sign in with message response`,
|
|
1500
|
+
isRequired: true
|
|
1501
|
+
},
|
|
1502
|
+
signedMessage: {
|
|
1503
|
+
type: "any-of",
|
|
1504
|
+
description: `The signed message of the connector sign in with message response`,
|
|
1505
|
+
contains: [{
|
|
1506
|
+
type: "ConnectorSignMessageResponseDto"
|
|
1507
|
+
}],
|
|
1508
|
+
isRequired: true
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
});
|
|
1514
|
+
|
|
1515
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignMessagePayloadDto.js
|
|
1516
|
+
var require_ConnectorSignMessagePayloadDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1517
|
+
"../../shared/connector/dist/schemas/$ConnectorSignMessagePayloadDto.js"(exports, module) {
|
|
1518
|
+
"use strict";
|
|
1519
|
+
var __defProp = Object.defineProperty;
|
|
1520
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1521
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1522
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1523
|
+
var __export2 = (target, all) => {
|
|
1524
|
+
for (var name in all)
|
|
1525
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1526
|
+
};
|
|
1527
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1528
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1529
|
+
for (let key of __getOwnPropNames(from))
|
|
1530
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1531
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1532
|
+
}
|
|
1533
|
+
return to;
|
|
1534
|
+
};
|
|
1535
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1536
|
+
var ConnectorSignMessagePayloadDto_exports = {};
|
|
1537
|
+
__export2(ConnectorSignMessagePayloadDto_exports, {
|
|
1538
|
+
$ConnectorSignMessagePayloadDto: () => $ConnectorSignMessagePayloadDto2
|
|
1539
|
+
});
|
|
1540
|
+
module.exports = __toCommonJS(ConnectorSignMessagePayloadDto_exports);
|
|
1541
|
+
var $ConnectorSignMessagePayloadDto2 = {
|
|
1542
|
+
properties: {
|
|
1543
|
+
message: {
|
|
1544
|
+
type: "string",
|
|
1545
|
+
description: `The message of the connector sign message payload`,
|
|
1546
|
+
isRequired: true
|
|
1547
|
+
},
|
|
1548
|
+
recipient: {
|
|
1549
|
+
type: "string",
|
|
1550
|
+
description: `The recipient of the connector sign message payload`,
|
|
1551
|
+
isRequired: true
|
|
1552
|
+
},
|
|
1553
|
+
nonce: {
|
|
1554
|
+
type: "array",
|
|
1555
|
+
contains: {
|
|
1556
|
+
type: "number"
|
|
1557
|
+
},
|
|
1558
|
+
isRequired: true
|
|
1559
|
+
},
|
|
1560
|
+
signerId: {
|
|
1561
|
+
type: "string",
|
|
1562
|
+
description: `The signer id of the connector sign message payload`
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
});
|
|
1568
|
+
|
|
1569
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignMessagePayloadRequest.js
|
|
1570
|
+
var require_ConnectorSignMessagePayloadRequest = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1571
|
+
"../../shared/connector/dist/schemas/$ConnectorSignMessagePayloadRequest.js"(exports, module) {
|
|
1572
|
+
"use strict";
|
|
1573
|
+
var __defProp = Object.defineProperty;
|
|
1574
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1575
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1576
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1577
|
+
var __export2 = (target, all) => {
|
|
1578
|
+
for (var name in all)
|
|
1579
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1580
|
+
};
|
|
1581
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1582
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1583
|
+
for (let key of __getOwnPropNames(from))
|
|
1584
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1585
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1586
|
+
}
|
|
1587
|
+
return to;
|
|
1588
|
+
};
|
|
1589
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1590
|
+
var ConnectorSignMessagePayloadRequest_exports = {};
|
|
1591
|
+
__export2(ConnectorSignMessagePayloadRequest_exports, {
|
|
1592
|
+
$ConnectorSignMessagePayloadRequest: () => $ConnectorSignMessagePayloadRequest2
|
|
1593
|
+
});
|
|
1594
|
+
module.exports = __toCommonJS(ConnectorSignMessagePayloadRequest_exports);
|
|
1595
|
+
var $ConnectorSignMessagePayloadRequest2 = {
|
|
1596
|
+
properties: {
|
|
1597
|
+
message: {
|
|
1598
|
+
type: "string",
|
|
1599
|
+
description: `The message of the connector sign message payload`,
|
|
1600
|
+
isRequired: true
|
|
1601
|
+
},
|
|
1602
|
+
recipient: {
|
|
1603
|
+
type: "string",
|
|
1604
|
+
description: `The recipient of the connector sign message payload`,
|
|
1605
|
+
isRequired: true
|
|
1606
|
+
},
|
|
1607
|
+
nonce: {
|
|
1608
|
+
type: "array",
|
|
1609
|
+
contains: {
|
|
1610
|
+
type: "number"
|
|
1611
|
+
},
|
|
1612
|
+
isRequired: true
|
|
1613
|
+
},
|
|
1614
|
+
signerId: {
|
|
1615
|
+
type: "string",
|
|
1616
|
+
description: `The signer id of the connector sign message payload`
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
};
|
|
1620
|
+
}
|
|
1621
|
+
});
|
|
1622
|
+
|
|
1623
|
+
// ../../shared/connector/dist/schemas/$ConnectorSignMessageResponseDto.js
|
|
1624
|
+
var require_ConnectorSignMessageResponseDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1625
|
+
"../../shared/connector/dist/schemas/$ConnectorSignMessageResponseDto.js"(exports, module) {
|
|
1626
|
+
"use strict";
|
|
1627
|
+
var __defProp = Object.defineProperty;
|
|
1628
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1629
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1630
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1631
|
+
var __export2 = (target, all) => {
|
|
1632
|
+
for (var name in all)
|
|
1633
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1634
|
+
};
|
|
1635
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1636
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1637
|
+
for (let key of __getOwnPropNames(from))
|
|
1638
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1639
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1640
|
+
}
|
|
1641
|
+
return to;
|
|
1642
|
+
};
|
|
1643
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1644
|
+
var ConnectorSignMessageResponseDto_exports = {};
|
|
1645
|
+
__export2(ConnectorSignMessageResponseDto_exports, {
|
|
1646
|
+
$ConnectorSignMessageResponseDto: () => $ConnectorSignMessageResponseDto2
|
|
1647
|
+
});
|
|
1648
|
+
module.exports = __toCommonJS(ConnectorSignMessageResponseDto_exports);
|
|
1649
|
+
var $ConnectorSignMessageResponseDto2 = {
|
|
1650
|
+
properties: {
|
|
1651
|
+
accountId: {
|
|
1652
|
+
type: "string",
|
|
1653
|
+
description: `The account id of the connector sign message response`,
|
|
1654
|
+
isRequired: true
|
|
1655
|
+
},
|
|
1656
|
+
publicKey: {
|
|
1657
|
+
type: "string",
|
|
1658
|
+
description: `The public key of the connector sign message response`,
|
|
1659
|
+
isRequired: true
|
|
1660
|
+
},
|
|
1661
|
+
signature: {
|
|
1662
|
+
type: "string",
|
|
1663
|
+
description: `The signature of the connector sign message response`,
|
|
1664
|
+
isRequired: true
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
};
|
|
1668
|
+
}
|
|
1669
|
+
});
|
|
1670
|
+
|
|
1671
|
+
// ../../shared/connector/dist/schemas/$ConnectorTransactionDto.js
|
|
1672
|
+
var require_ConnectorTransactionDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1673
|
+
"../../shared/connector/dist/schemas/$ConnectorTransactionDto.js"(exports, module) {
|
|
1674
|
+
"use strict";
|
|
1675
|
+
var __defProp = Object.defineProperty;
|
|
1676
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1677
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1678
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1679
|
+
var __export2 = (target, all) => {
|
|
1680
|
+
for (var name in all)
|
|
1681
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1682
|
+
};
|
|
1683
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1684
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1685
|
+
for (let key of __getOwnPropNames(from))
|
|
1686
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1687
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1688
|
+
}
|
|
1689
|
+
return to;
|
|
1690
|
+
};
|
|
1691
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1692
|
+
var ConnectorTransactionDto_exports = {};
|
|
1693
|
+
__export2(ConnectorTransactionDto_exports, {
|
|
1694
|
+
$ConnectorTransactionDto: () => $ConnectorTransactionDto2
|
|
1695
|
+
});
|
|
1696
|
+
module.exports = __toCommonJS(ConnectorTransactionDto_exports);
|
|
1697
|
+
var $ConnectorTransactionDto2 = {
|
|
1698
|
+
properties: {
|
|
1699
|
+
actions: {
|
|
1700
|
+
type: "array",
|
|
1701
|
+
contains: {
|
|
1702
|
+
type: "any-of",
|
|
1703
|
+
contains: [{
|
|
1704
|
+
type: "ConnectorActionDto"
|
|
1705
|
+
}]
|
|
1706
|
+
},
|
|
1707
|
+
isRequired: true
|
|
1708
|
+
},
|
|
1709
|
+
receiverId: {
|
|
1710
|
+
type: "string",
|
|
1711
|
+
isRequired: true
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
};
|
|
1715
|
+
}
|
|
1716
|
+
});
|
|
1717
|
+
|
|
1718
|
+
// ../../shared/connector/dist/schemas/$ConnectorTransactionRequest.js
|
|
1719
|
+
var require_ConnectorTransactionRequest = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1720
|
+
"../../shared/connector/dist/schemas/$ConnectorTransactionRequest.js"(exports, module) {
|
|
1721
|
+
"use strict";
|
|
1722
|
+
var __defProp = Object.defineProperty;
|
|
1723
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1724
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1725
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1726
|
+
var __export2 = (target, all) => {
|
|
1727
|
+
for (var name in all)
|
|
1728
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1729
|
+
};
|
|
1730
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1731
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1732
|
+
for (let key of __getOwnPropNames(from))
|
|
1733
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1734
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1735
|
+
}
|
|
1736
|
+
return to;
|
|
1737
|
+
};
|
|
1738
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1739
|
+
var ConnectorTransactionRequest_exports = {};
|
|
1740
|
+
__export2(ConnectorTransactionRequest_exports, {
|
|
1741
|
+
$ConnectorTransactionRequest: () => $ConnectorTransactionRequest2
|
|
1742
|
+
});
|
|
1743
|
+
module.exports = __toCommonJS(ConnectorTransactionRequest_exports);
|
|
1744
|
+
var $ConnectorTransactionRequest2 = {
|
|
1745
|
+
properties: {
|
|
1746
|
+
receiverId: {
|
|
1747
|
+
type: "string",
|
|
1748
|
+
description: `The receiver id of the connector sign and send transaction payload`,
|
|
1749
|
+
isRequired: true
|
|
1750
|
+
},
|
|
1751
|
+
actions: {
|
|
1752
|
+
type: "any-of",
|
|
1753
|
+
description: `The actions of the connector sign and send transaction payload`,
|
|
1754
|
+
contains: [{
|
|
1755
|
+
type: "ConnectorActionRequest"
|
|
1756
|
+
}],
|
|
1757
|
+
isRequired: true
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
};
|
|
1761
|
+
}
|
|
1762
|
+
});
|
|
1763
|
+
|
|
1764
|
+
// ../../shared/connector/dist/schemas/$GasAllowanceLimitedDto.js
|
|
1765
|
+
var require_GasAllowanceLimitedDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1766
|
+
"../../shared/connector/dist/schemas/$GasAllowanceLimitedDto.js"(exports, module) {
|
|
1767
|
+
"use strict";
|
|
1768
|
+
var __defProp = Object.defineProperty;
|
|
1769
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1770
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1771
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1772
|
+
var __export2 = (target, all) => {
|
|
1773
|
+
for (var name in all)
|
|
1774
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1775
|
+
};
|
|
1776
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1777
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1778
|
+
for (let key of __getOwnPropNames(from))
|
|
1779
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1780
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1781
|
+
}
|
|
1782
|
+
return to;
|
|
1783
|
+
};
|
|
1784
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1785
|
+
var GasAllowanceLimitedDto_exports = {};
|
|
1786
|
+
__export2(GasAllowanceLimitedDto_exports, {
|
|
1787
|
+
$GasAllowanceLimitedDto: () => $GasAllowanceLimitedDto2
|
|
1788
|
+
});
|
|
1789
|
+
module.exports = __toCommonJS(GasAllowanceLimitedDto_exports);
|
|
1790
|
+
var $GasAllowanceLimitedDto2 = {
|
|
1791
|
+
properties: {
|
|
1792
|
+
kind: {
|
|
1793
|
+
type: "string",
|
|
1794
|
+
description: `The kind of the gas allowance limited params`,
|
|
1795
|
+
isRequired: true
|
|
1796
|
+
},
|
|
1797
|
+
amount: {
|
|
1798
|
+
type: "string",
|
|
1799
|
+
description: `The amount of the gas allowance limited params`,
|
|
1800
|
+
isRequired: true
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
};
|
|
1804
|
+
}
|
|
1805
|
+
});
|
|
1806
|
+
|
|
1807
|
+
// ../../shared/connector/dist/schemas/$GasAllowanceLimitedParams.js
|
|
1808
|
+
var require_GasAllowanceLimitedParams = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1809
|
+
"../../shared/connector/dist/schemas/$GasAllowanceLimitedParams.js"(exports, module) {
|
|
1810
|
+
"use strict";
|
|
1811
|
+
var __defProp = Object.defineProperty;
|
|
1812
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1813
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1814
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1815
|
+
var __export2 = (target, all) => {
|
|
1816
|
+
for (var name in all)
|
|
1817
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1818
|
+
};
|
|
1819
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1820
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1821
|
+
for (let key of __getOwnPropNames(from))
|
|
1822
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1823
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1824
|
+
}
|
|
1825
|
+
return to;
|
|
1826
|
+
};
|
|
1827
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1828
|
+
var GasAllowanceLimitedParams_exports = {};
|
|
1829
|
+
__export2(GasAllowanceLimitedParams_exports, {
|
|
1830
|
+
$GasAllowanceLimitedParams: () => $GasAllowanceLimitedParams2
|
|
1831
|
+
});
|
|
1832
|
+
module.exports = __toCommonJS(GasAllowanceLimitedParams_exports);
|
|
1833
|
+
var $GasAllowanceLimitedParams2 = {
|
|
1834
|
+
properties: {
|
|
1835
|
+
kind: {
|
|
1836
|
+
type: "string",
|
|
1837
|
+
description: `The kind of the gas allowance limited params`,
|
|
1838
|
+
isRequired: true
|
|
1839
|
+
},
|
|
1840
|
+
amount: {
|
|
1841
|
+
type: "string",
|
|
1842
|
+
description: `The amount of the gas allowance limited params`,
|
|
1843
|
+
isRequired: true
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
};
|
|
1847
|
+
}
|
|
1848
|
+
});
|
|
1849
|
+
|
|
1850
|
+
// ../../shared/connector/dist/schemas/$GasAllowanceUnlimitedDto.js
|
|
1851
|
+
var require_GasAllowanceUnlimitedDto = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1852
|
+
"../../shared/connector/dist/schemas/$GasAllowanceUnlimitedDto.js"(exports, module) {
|
|
1853
|
+
"use strict";
|
|
1854
|
+
var __defProp = Object.defineProperty;
|
|
1855
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1856
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1857
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1858
|
+
var __export2 = (target, all) => {
|
|
1859
|
+
for (var name in all)
|
|
1860
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1861
|
+
};
|
|
1862
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1863
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1864
|
+
for (let key of __getOwnPropNames(from))
|
|
1865
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1866
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1867
|
+
}
|
|
1868
|
+
return to;
|
|
1869
|
+
};
|
|
1870
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1871
|
+
var GasAllowanceUnlimitedDto_exports = {};
|
|
1872
|
+
__export2(GasAllowanceUnlimitedDto_exports, {
|
|
1873
|
+
$GasAllowanceUnlimitedDto: () => $GasAllowanceUnlimitedDto2
|
|
1874
|
+
});
|
|
1875
|
+
module.exports = __toCommonJS(GasAllowanceUnlimitedDto_exports);
|
|
1876
|
+
var $GasAllowanceUnlimitedDto2 = {
|
|
1877
|
+
properties: {
|
|
1878
|
+
kind: {
|
|
1879
|
+
type: "string",
|
|
1880
|
+
description: `The kind of the gas allowance unlimited params`,
|
|
1881
|
+
isRequired: true
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
});
|
|
1887
|
+
|
|
1888
|
+
// ../../shared/connector/dist/schemas/$GasAllowanceUnlimitedParams.js
|
|
1889
|
+
var require_GasAllowanceUnlimitedParams = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1890
|
+
"../../shared/connector/dist/schemas/$GasAllowanceUnlimitedParams.js"(exports, module) {
|
|
1891
|
+
"use strict";
|
|
1892
|
+
var __defProp = Object.defineProperty;
|
|
1893
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1894
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1895
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1896
|
+
var __export2 = (target, all) => {
|
|
1897
|
+
for (var name in all)
|
|
1898
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1899
|
+
};
|
|
1900
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1901
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1902
|
+
for (let key of __getOwnPropNames(from))
|
|
1903
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1904
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1905
|
+
}
|
|
1906
|
+
return to;
|
|
1907
|
+
};
|
|
1908
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1909
|
+
var GasAllowanceUnlimitedParams_exports = {};
|
|
1910
|
+
__export2(GasAllowanceUnlimitedParams_exports, {
|
|
1911
|
+
$GasAllowanceUnlimitedParams: () => $GasAllowanceUnlimitedParams2
|
|
1912
|
+
});
|
|
1913
|
+
module.exports = __toCommonJS(GasAllowanceUnlimitedParams_exports);
|
|
1914
|
+
var $GasAllowanceUnlimitedParams2 = {
|
|
1915
|
+
properties: {
|
|
1916
|
+
kind: {
|
|
1917
|
+
type: "string",
|
|
1918
|
+
description: `The kind of the gas allowance unlimited params`,
|
|
1919
|
+
isRequired: true
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
};
|
|
1923
|
+
}
|
|
1924
|
+
});
|
|
1925
|
+
|
|
1926
|
+
// ../../shared/connector/dist/core/request.js
|
|
1927
|
+
var require_request = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
1928
|
+
"../../shared/connector/dist/core/request.js"(exports, module) {
|
|
1929
|
+
"use strict";
|
|
1930
|
+
var __defProp = Object.defineProperty;
|
|
1931
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1932
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1933
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1934
|
+
var __export2 = (target, all) => {
|
|
1935
|
+
for (var name in all)
|
|
1936
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1937
|
+
};
|
|
1938
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1939
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1940
|
+
for (let key of __getOwnPropNames(from))
|
|
1941
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1942
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1943
|
+
}
|
|
1944
|
+
return to;
|
|
1945
|
+
};
|
|
1946
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1947
|
+
var request_exports = {};
|
|
1948
|
+
__export2(request_exports, {
|
|
1949
|
+
base64: () => base64,
|
|
1950
|
+
catchErrorCodes: () => catchErrorCodes,
|
|
1951
|
+
getFormData: () => getFormData,
|
|
1952
|
+
getHeaders: () => getHeaders,
|
|
1953
|
+
getQueryString: () => getQueryString,
|
|
1954
|
+
getRequestBody: () => getRequestBody,
|
|
1955
|
+
getResponseBody: () => getResponseBody,
|
|
1956
|
+
getResponseHeader: () => getResponseHeader,
|
|
1957
|
+
isBlob: () => isBlob,
|
|
1958
|
+
isDefined: () => isDefined,
|
|
1959
|
+
isFormData: () => isFormData,
|
|
1960
|
+
isString: () => isString,
|
|
1961
|
+
isStringWithValue: () => isStringWithValue,
|
|
1962
|
+
request: () => request,
|
|
1963
|
+
resolve: () => resolve,
|
|
1964
|
+
sendRequest: () => sendRequest
|
|
1965
|
+
});
|
|
1966
|
+
module.exports = __toCommonJS(request_exports);
|
|
1967
|
+
var import_ApiError2 = require_ApiError();
|
|
1968
|
+
var import_CancelablePromise2 = require_CancelablePromise();
|
|
1969
|
+
var isDefined = (value) => {
|
|
1970
|
+
return value !== void 0 && value !== null;
|
|
1971
|
+
};
|
|
1972
|
+
var isString = (value) => {
|
|
1973
|
+
return typeof value === "string";
|
|
1974
|
+
};
|
|
1975
|
+
var isStringWithValue = (value) => {
|
|
1976
|
+
return isString(value) && value !== "";
|
|
1977
|
+
};
|
|
1978
|
+
var isBlob = (value) => {
|
|
1979
|
+
return typeof value === "object" && typeof value.type === "string" && typeof value.stream === "function" && typeof value.arrayBuffer === "function" && typeof value.constructor === "function" && typeof value.constructor.name === "string" && /^(Blob|File)$/.test(value.constructor.name) && /^(Blob|File)$/.test(value[Symbol.toStringTag]);
|
|
1980
|
+
};
|
|
1981
|
+
var isFormData = (value) => {
|
|
1982
|
+
return value instanceof FormData;
|
|
1983
|
+
};
|
|
1984
|
+
var base64 = (str) => {
|
|
1985
|
+
try {
|
|
1986
|
+
return btoa(str);
|
|
1987
|
+
} catch (err) {
|
|
1988
|
+
return Buffer.from(str).toString("base64");
|
|
1989
|
+
}
|
|
1990
|
+
};
|
|
1991
|
+
var getQueryString = (params) => {
|
|
1992
|
+
const qs = [];
|
|
1993
|
+
const append = (key, value) => {
|
|
1994
|
+
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
|
1995
|
+
};
|
|
1996
|
+
const process = (key, value) => {
|
|
1997
|
+
if (isDefined(value)) {
|
|
1998
|
+
if (Array.isArray(value)) {
|
|
1999
|
+
value.forEach((v) => {
|
|
2000
|
+
process(key, v);
|
|
2001
|
+
});
|
|
2002
|
+
} else if (typeof value === "object") {
|
|
2003
|
+
Object.entries(value).forEach(([k, v]) => {
|
|
2004
|
+
process(`${key}[${k}]`, v);
|
|
2005
|
+
});
|
|
2006
|
+
} else {
|
|
2007
|
+
append(key, value);
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
};
|
|
2011
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
2012
|
+
process(key, value);
|
|
2013
|
+
});
|
|
2014
|
+
if (qs.length > 0) {
|
|
2015
|
+
return `?${qs.join("&")}`;
|
|
2016
|
+
}
|
|
2017
|
+
return "";
|
|
2018
|
+
};
|
|
2019
|
+
var getUrl = (config, options) => {
|
|
2020
|
+
const encoder = config.ENCODE_PATH || encodeURI;
|
|
2021
|
+
const path = options.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
|
|
2022
|
+
if (_optionalChain([options, 'access', _2 => _2.path, 'optionalAccess', _3 => _3.hasOwnProperty, 'call', _4 => _4(group)])) {
|
|
2023
|
+
return encoder(String(options.path[group]));
|
|
2024
|
+
}
|
|
2025
|
+
return substring;
|
|
2026
|
+
});
|
|
2027
|
+
const url = `${config.BASE}${path}`;
|
|
2028
|
+
if (options.query) {
|
|
2029
|
+
return `${url}${getQueryString(options.query)}`;
|
|
2030
|
+
}
|
|
2031
|
+
return url;
|
|
2032
|
+
};
|
|
2033
|
+
var getFormData = (options) => {
|
|
2034
|
+
if (options.formData) {
|
|
2035
|
+
const formData = new FormData();
|
|
2036
|
+
const process = (key, value) => {
|
|
2037
|
+
if (isString(value) || isBlob(value)) {
|
|
2038
|
+
formData.append(key, value);
|
|
2039
|
+
} else {
|
|
2040
|
+
formData.append(key, JSON.stringify(value));
|
|
2041
|
+
}
|
|
2042
|
+
};
|
|
2043
|
+
Object.entries(options.formData).filter(([_, value]) => isDefined(value)).forEach(([key, value]) => {
|
|
2044
|
+
if (Array.isArray(value)) {
|
|
2045
|
+
value.forEach((v) => process(key, v));
|
|
2046
|
+
} else {
|
|
2047
|
+
process(key, value);
|
|
2048
|
+
}
|
|
2049
|
+
});
|
|
2050
|
+
return formData;
|
|
2051
|
+
}
|
|
2052
|
+
return void 0;
|
|
2053
|
+
};
|
|
2054
|
+
var resolve = async (options, resolver) => {
|
|
2055
|
+
if (typeof resolver === "function") {
|
|
2056
|
+
return resolver(options);
|
|
2057
|
+
}
|
|
2058
|
+
return resolver;
|
|
2059
|
+
};
|
|
2060
|
+
var getHeaders = async (config, options) => {
|
|
2061
|
+
const [token, username, password, additionalHeaders] = await Promise.all([
|
|
2062
|
+
resolve(options, config.TOKEN),
|
|
2063
|
+
resolve(options, config.USERNAME),
|
|
2064
|
+
resolve(options, config.PASSWORD),
|
|
2065
|
+
resolve(options, config.HEADERS)
|
|
2066
|
+
]);
|
|
2067
|
+
const headers = Object.entries({
|
|
2068
|
+
Accept: "application/json",
|
|
2069
|
+
...additionalHeaders,
|
|
2070
|
+
...options.headers
|
|
2071
|
+
}).filter(([_, value]) => isDefined(value)).reduce((headers2, [key, value]) => ({
|
|
2072
|
+
...headers2,
|
|
2073
|
+
[key]: String(value)
|
|
2074
|
+
}), {});
|
|
2075
|
+
if (isStringWithValue(token)) {
|
|
2076
|
+
headers["Authorization"] = `Bearer ${token}`;
|
|
2077
|
+
}
|
|
2078
|
+
if (isStringWithValue(username) && isStringWithValue(password)) {
|
|
2079
|
+
const credentials = base64(`${username}:${password}`);
|
|
2080
|
+
headers["Authorization"] = `Basic ${credentials}`;
|
|
2081
|
+
}
|
|
2082
|
+
if (options.body !== void 0) {
|
|
2083
|
+
if (options.mediaType) {
|
|
2084
|
+
headers["Content-Type"] = options.mediaType;
|
|
2085
|
+
} else if (isBlob(options.body)) {
|
|
2086
|
+
headers["Content-Type"] = options.body.type || "application/octet-stream";
|
|
2087
|
+
} else if (isString(options.body)) {
|
|
2088
|
+
headers["Content-Type"] = "text/plain";
|
|
2089
|
+
} else if (!isFormData(options.body)) {
|
|
2090
|
+
headers["Content-Type"] = "application/json";
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
return new Headers(headers);
|
|
2094
|
+
};
|
|
2095
|
+
var getRequestBody = (options) => {
|
|
2096
|
+
if (options.body !== void 0) {
|
|
2097
|
+
if (_optionalChain([options, 'access', _5 => _5.mediaType, 'optionalAccess', _6 => _6.includes, 'call', _7 => _7("/json")])) {
|
|
2098
|
+
return JSON.stringify(options.body);
|
|
2099
|
+
} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
|
|
2100
|
+
return options.body;
|
|
2101
|
+
} else {
|
|
2102
|
+
return JSON.stringify(options.body);
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
return void 0;
|
|
2106
|
+
};
|
|
2107
|
+
var sendRequest = async (config, options, url, body, formData, headers, onCancel) => {
|
|
2108
|
+
const controller = new AbortController();
|
|
2109
|
+
const request2 = {
|
|
2110
|
+
headers,
|
|
2111
|
+
body: _nullishCoalesce(body, () => ( formData)),
|
|
2112
|
+
method: options.method,
|
|
2113
|
+
signal: controller.signal
|
|
2114
|
+
};
|
|
2115
|
+
if (config.WITH_CREDENTIALS) {
|
|
2116
|
+
request2.credentials = config.CREDENTIALS;
|
|
2117
|
+
}
|
|
2118
|
+
onCancel(() => controller.abort());
|
|
2119
|
+
return await fetch(url, request2);
|
|
2120
|
+
};
|
|
2121
|
+
var getResponseHeader = (response, responseHeader) => {
|
|
2122
|
+
if (responseHeader) {
|
|
2123
|
+
const content = response.headers.get(responseHeader);
|
|
2124
|
+
if (isString(content)) {
|
|
2125
|
+
return content;
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
return void 0;
|
|
2129
|
+
};
|
|
2130
|
+
var getResponseBody = async (response) => {
|
|
2131
|
+
if (response.status !== 204) {
|
|
2132
|
+
try {
|
|
2133
|
+
const contentType = response.headers.get("Content-Type");
|
|
2134
|
+
if (contentType) {
|
|
2135
|
+
const jsonTypes = ["application/json", "application/problem+json"];
|
|
2136
|
+
const isJSON = jsonTypes.some((type) => contentType.toLowerCase().startsWith(type));
|
|
2137
|
+
if (isJSON) {
|
|
2138
|
+
return await response.json();
|
|
2139
|
+
} else {
|
|
2140
|
+
return await response.text();
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
} catch (error) {
|
|
2144
|
+
console.error(error);
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
return void 0;
|
|
2148
|
+
};
|
|
2149
|
+
var catchErrorCodes = (options, result) => {
|
|
2150
|
+
const errors = {
|
|
2151
|
+
400: "Bad Request",
|
|
2152
|
+
401: "Unauthorized",
|
|
2153
|
+
403: "Forbidden",
|
|
2154
|
+
404: "Not Found",
|
|
2155
|
+
500: "Internal Server Error",
|
|
2156
|
+
502: "Bad Gateway",
|
|
2157
|
+
503: "Service Unavailable",
|
|
2158
|
+
...options.errors
|
|
2159
|
+
};
|
|
2160
|
+
const error = errors[result.status];
|
|
2161
|
+
if (error) {
|
|
2162
|
+
throw new import_ApiError2.ApiError(options, result, error);
|
|
2163
|
+
}
|
|
2164
|
+
if (!result.ok) {
|
|
2165
|
+
const errorStatus = _nullishCoalesce(result.status, () => ( "unknown"));
|
|
2166
|
+
const errorStatusText = _nullishCoalesce(result.statusText, () => ( "unknown"));
|
|
2167
|
+
const errorBody = (() => {
|
|
2168
|
+
try {
|
|
2169
|
+
return JSON.stringify(result.body, null, 2);
|
|
2170
|
+
} catch (e) {
|
|
2171
|
+
return void 0;
|
|
2172
|
+
}
|
|
2173
|
+
})();
|
|
2174
|
+
throw new import_ApiError2.ApiError(
|
|
2175
|
+
options,
|
|
2176
|
+
result,
|
|
2177
|
+
`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`
|
|
2178
|
+
);
|
|
2179
|
+
}
|
|
2180
|
+
};
|
|
2181
|
+
var request = (config, options) => {
|
|
2182
|
+
return new import_CancelablePromise2.CancelablePromise(async (resolve2, reject, onCancel) => {
|
|
2183
|
+
try {
|
|
2184
|
+
const url = getUrl(config, options);
|
|
2185
|
+
const formData = getFormData(options);
|
|
2186
|
+
const body = getRequestBody(options);
|
|
2187
|
+
const headers = await getHeaders(config, options);
|
|
2188
|
+
if (!onCancel.isCancelled) {
|
|
2189
|
+
const response = await sendRequest(config, options, url, body, formData, headers, onCancel);
|
|
2190
|
+
const responseBody = await getResponseBody(response);
|
|
2191
|
+
const responseHeader = getResponseHeader(response, options.responseHeader);
|
|
2192
|
+
const result = {
|
|
2193
|
+
url,
|
|
2194
|
+
ok: response.ok,
|
|
2195
|
+
status: response.status,
|
|
2196
|
+
statusText: response.statusText,
|
|
2197
|
+
body: _nullishCoalesce(responseHeader, () => ( responseBody))
|
|
2198
|
+
};
|
|
2199
|
+
catchErrorCodes(options, result);
|
|
2200
|
+
resolve2(result.body);
|
|
2201
|
+
}
|
|
2202
|
+
} catch (error) {
|
|
2203
|
+
reject(error);
|
|
2204
|
+
}
|
|
2205
|
+
});
|
|
2206
|
+
};
|
|
2207
|
+
}
|
|
2208
|
+
});
|
|
2209
|
+
|
|
2210
|
+
// ../../shared/connector/dist/services/HealthApi.js
|
|
2211
|
+
var require_HealthApi = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
2212
|
+
"../../shared/connector/dist/services/HealthApi.js"(exports, module) {
|
|
2213
|
+
"use strict";
|
|
2214
|
+
var __defProp = Object.defineProperty;
|
|
2215
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2216
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2217
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2218
|
+
var __export2 = (target, all) => {
|
|
2219
|
+
for (var name in all)
|
|
2220
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2221
|
+
};
|
|
2222
|
+
var __copyProps = (to, from, except, desc) => {
|
|
2223
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
2224
|
+
for (let key of __getOwnPropNames(from))
|
|
2225
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
2226
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
2227
|
+
}
|
|
2228
|
+
return to;
|
|
2229
|
+
};
|
|
2230
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2231
|
+
var HealthApi_exports = {};
|
|
2232
|
+
__export2(HealthApi_exports, {
|
|
2233
|
+
HealthApi: () => HealthApi2
|
|
2234
|
+
});
|
|
2235
|
+
module.exports = __toCommonJS(HealthApi_exports);
|
|
2236
|
+
var import_OpenAPI2 = require_OpenAPI();
|
|
2237
|
+
var import_request = require_request();
|
|
2238
|
+
var HealthApi2 = class {
|
|
2239
|
+
/**
|
|
2240
|
+
* Liveness probe endpoint.
|
|
2241
|
+
* Returns 200 OK to indicate the application is running.
|
|
2242
|
+
* @returns any
|
|
2243
|
+
* @throws ApiError
|
|
2244
|
+
*/
|
|
2245
|
+
static livez() {
|
|
2246
|
+
return (0, import_request.request)(import_OpenAPI2.OpenAPI, {
|
|
2247
|
+
method: "GET",
|
|
2248
|
+
url: "/connector/livez"
|
|
2249
|
+
});
|
|
2250
|
+
}
|
|
2251
|
+
/**
|
|
2252
|
+
* Readiness probe endpoint.
|
|
2253
|
+
* Checks database and Redis health before returning success.
|
|
2254
|
+
* @returns any
|
|
2255
|
+
* @throws ApiError
|
|
2256
|
+
*/
|
|
2257
|
+
static readyz() {
|
|
2258
|
+
return (0, import_request.request)(import_OpenAPI2.OpenAPI, {
|
|
2259
|
+
method: "GET",
|
|
2260
|
+
url: "/connector/readyz"
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2263
|
+
};
|
|
2264
|
+
}
|
|
2265
|
+
});
|
|
2266
|
+
|
|
2267
|
+
// ../../shared/connector/dist/services/PrometheusApi.js
|
|
2268
|
+
var require_PrometheusApi = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
2269
|
+
"../../shared/connector/dist/services/PrometheusApi.js"(exports, module) {
|
|
2270
|
+
"use strict";
|
|
2271
|
+
var __defProp = Object.defineProperty;
|
|
2272
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2273
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2274
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2275
|
+
var __export2 = (target, all) => {
|
|
2276
|
+
for (var name in all)
|
|
2277
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2278
|
+
};
|
|
2279
|
+
var __copyProps = (to, from, except, desc) => {
|
|
2280
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
2281
|
+
for (let key of __getOwnPropNames(from))
|
|
2282
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
2283
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
2284
|
+
}
|
|
2285
|
+
return to;
|
|
2286
|
+
};
|
|
2287
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2288
|
+
var PrometheusApi_exports = {};
|
|
2289
|
+
__export2(PrometheusApi_exports, {
|
|
2290
|
+
PrometheusApi: () => PrometheusApi2
|
|
2291
|
+
});
|
|
2292
|
+
module.exports = __toCommonJS(PrometheusApi_exports);
|
|
2293
|
+
var import_OpenAPI2 = require_OpenAPI();
|
|
2294
|
+
var import_request = require_request();
|
|
2295
|
+
var PrometheusApi2 = class {
|
|
2296
|
+
/**
|
|
2297
|
+
* @returns any
|
|
2298
|
+
* @throws ApiError
|
|
2299
|
+
*/
|
|
2300
|
+
static index() {
|
|
2301
|
+
return (0, import_request.request)(import_OpenAPI2.OpenAPI, {
|
|
2302
|
+
method: "GET",
|
|
2303
|
+
url: "/connector/metrics"
|
|
2304
|
+
});
|
|
2305
|
+
}
|
|
2306
|
+
};
|
|
2307
|
+
}
|
|
2308
|
+
});
|
|
2309
|
+
|
|
2310
|
+
// ../../shared/connector/dist/services/RequestApi.js
|
|
2311
|
+
var require_RequestApi = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
2312
|
+
"../../shared/connector/dist/services/RequestApi.js"(exports, module) {
|
|
2313
|
+
"use strict";
|
|
2314
|
+
var __defProp = Object.defineProperty;
|
|
2315
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2316
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2317
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2318
|
+
var __export2 = (target, all) => {
|
|
2319
|
+
for (var name in all)
|
|
2320
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2321
|
+
};
|
|
2322
|
+
var __copyProps = (to, from, except, desc) => {
|
|
2323
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
2324
|
+
for (let key of __getOwnPropNames(from))
|
|
2325
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
2326
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
2327
|
+
}
|
|
2328
|
+
return to;
|
|
2329
|
+
};
|
|
2330
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2331
|
+
var RequestApi_exports = {};
|
|
2332
|
+
__export2(RequestApi_exports, {
|
|
2333
|
+
RequestApi: () => RequestApi2
|
|
2334
|
+
});
|
|
2335
|
+
module.exports = __toCommonJS(RequestApi_exports);
|
|
2336
|
+
var import_OpenAPI2 = require_OpenAPI();
|
|
2337
|
+
var import_request = require_request();
|
|
2338
|
+
var RequestApi2 = class {
|
|
2339
|
+
/**
|
|
2340
|
+
* @param requestBody
|
|
2341
|
+
* @returns ConnectorRequestDto
|
|
2342
|
+
* @throws ApiError
|
|
2343
|
+
*/
|
|
2344
|
+
static createRequest(requestBody) {
|
|
2345
|
+
return (0, import_request.request)(import_OpenAPI2.OpenAPI, {
|
|
2346
|
+
method: "POST",
|
|
2347
|
+
url: "/connector/request",
|
|
2348
|
+
body: requestBody,
|
|
2349
|
+
mediaType: "application/json"
|
|
2350
|
+
});
|
|
2351
|
+
}
|
|
2352
|
+
/**
|
|
2353
|
+
* @param id
|
|
2354
|
+
* @returns ConnectorRequestDto
|
|
2355
|
+
* @throws ApiError
|
|
2356
|
+
*/
|
|
2357
|
+
static getRequest(id) {
|
|
2358
|
+
return (0, import_request.request)(import_OpenAPI2.OpenAPI, {
|
|
2359
|
+
method: "GET",
|
|
2360
|
+
url: "/connector/request/{id}",
|
|
2361
|
+
path: {
|
|
2362
|
+
"id": id
|
|
2363
|
+
}
|
|
2364
|
+
});
|
|
2365
|
+
}
|
|
2366
|
+
/**
|
|
2367
|
+
* @param id
|
|
2368
|
+
* @param requestBody
|
|
2369
|
+
* @returns any
|
|
2370
|
+
* @throws ApiError
|
|
2371
|
+
*/
|
|
2372
|
+
static createResponse(id, requestBody) {
|
|
2373
|
+
return (0, import_request.request)(import_OpenAPI2.OpenAPI, {
|
|
2374
|
+
method: "PUT",
|
|
2375
|
+
url: "/connector/request/{id}/response",
|
|
2376
|
+
path: {
|
|
2377
|
+
"id": id
|
|
2378
|
+
},
|
|
2379
|
+
body: requestBody,
|
|
2380
|
+
mediaType: "application/json"
|
|
2381
|
+
});
|
|
2382
|
+
}
|
|
2383
|
+
};
|
|
2384
|
+
}
|
|
2385
|
+
});
|
|
2386
|
+
|
|
2387
|
+
// ../../shared/utils/dist/timeout-promise.js
|
|
2388
|
+
var require_timeout_promise = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
2389
|
+
"../../shared/utils/dist/timeout-promise.js"(exports, module) {
|
|
2390
|
+
"use strict";
|
|
2391
|
+
var __defProp = Object.defineProperty;
|
|
2392
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2393
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2394
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2395
|
+
var __export2 = (target, all) => {
|
|
2396
|
+
for (var name in all)
|
|
2397
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2398
|
+
};
|
|
2399
|
+
var __copyProps = (to, from, except, desc) => {
|
|
2400
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
2401
|
+
for (let key of __getOwnPropNames(from))
|
|
2402
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
2403
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
2404
|
+
}
|
|
2405
|
+
return to;
|
|
2406
|
+
};
|
|
2407
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2408
|
+
var timeout_promise_exports = {};
|
|
2409
|
+
__export2(timeout_promise_exports, {
|
|
2410
|
+
TimeoutPromiseError: () => TimeoutPromiseError,
|
|
2411
|
+
timeoutPromise: () => timeoutPromise
|
|
2412
|
+
});
|
|
2413
|
+
module.exports = __toCommonJS(timeout_promise_exports);
|
|
2414
|
+
var TimeoutPromiseError = class extends Error {
|
|
2415
|
+
constructor() {
|
|
2416
|
+
super("Promise timeout");
|
|
2417
|
+
}
|
|
2418
|
+
};
|
|
2419
|
+
async function timeoutPromise(promise, ms) {
|
|
2420
|
+
let timeout;
|
|
2421
|
+
const rejectedPromise = new Promise((_, reject) => {
|
|
2422
|
+
timeout = setTimeout(() => {
|
|
2423
|
+
reject(new TimeoutPromiseError());
|
|
2424
|
+
}, ms);
|
|
2425
|
+
});
|
|
2426
|
+
const res = await Promise.race([promise, rejectedPromise]);
|
|
2427
|
+
clearTimeout(timeout);
|
|
2428
|
+
return res;
|
|
2429
|
+
}
|
|
2430
|
+
}
|
|
2431
|
+
});
|
|
2432
|
+
|
|
2433
|
+
// ../../shared/utils/dist/polling/polling.js
|
|
2434
|
+
var require_polling = _chunk2P3A4VVYjs.__commonJS.call(void 0, {
|
|
2435
|
+
"../../shared/utils/dist/polling/polling.js"(exports, module) {
|
|
2436
|
+
"use strict";
|
|
2437
|
+
var __defProp = Object.defineProperty;
|
|
2438
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2439
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2440
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2441
|
+
var __export2 = (target, all) => {
|
|
2442
|
+
for (var name in all)
|
|
2443
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2444
|
+
};
|
|
2445
|
+
var __copyProps = (to, from, except, desc) => {
|
|
2446
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
2447
|
+
for (let key of __getOwnPropNames(from))
|
|
2448
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
2449
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
2450
|
+
}
|
|
2451
|
+
return to;
|
|
2452
|
+
};
|
|
2453
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2454
|
+
var polling_exports2 = {};
|
|
2455
|
+
__export2(polling_exports2, {
|
|
2456
|
+
polling: () => polling2
|
|
2457
|
+
});
|
|
2458
|
+
module.exports = __toCommonJS(polling_exports2);
|
|
2459
|
+
var import_timeout_promise = require_timeout_promise();
|
|
2460
|
+
function polling2(fn, condition, options = {}) {
|
|
2461
|
+
let timeout;
|
|
2462
|
+
let abort = false;
|
|
2463
|
+
const polling22 = async () => {
|
|
2464
|
+
const { delay = 1e3, maxIterations, timeout: timeoutMs } = options;
|
|
2465
|
+
let i = 0;
|
|
2466
|
+
let promiseDidTimeout = false;
|
|
2467
|
+
let res;
|
|
2468
|
+
async function resolveFn() {
|
|
2469
|
+
promiseDidTimeout = false;
|
|
2470
|
+
try {
|
|
2471
|
+
return await (timeoutMs !== void 0 ? (0, import_timeout_promise.timeoutPromise)(fn(), timeoutMs) : fn());
|
|
2472
|
+
} catch (e) {
|
|
2473
|
+
if (e instanceof import_timeout_promise.TimeoutPromiseError) promiseDidTimeout = true;
|
|
2474
|
+
else throw e;
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
res = await resolveFn();
|
|
2478
|
+
while (!abort && (promiseDidTimeout || condition(res))) {
|
|
2479
|
+
if (i === maxIterations) throw new Error("Polling executed the maximum number iterations");
|
|
2480
|
+
await new Promise((resolve) => {
|
|
2481
|
+
timeout = setTimeout(async () => {
|
|
2482
|
+
i++;
|
|
2483
|
+
res = await resolveFn();
|
|
2484
|
+
resolve();
|
|
2485
|
+
}, delay);
|
|
2486
|
+
});
|
|
2487
|
+
}
|
|
2488
|
+
return res;
|
|
2489
|
+
};
|
|
2490
|
+
const result = polling22();
|
|
2491
|
+
result.abort = () => {
|
|
2492
|
+
abort = true;
|
|
2493
|
+
clearTimeout(timeout);
|
|
2494
|
+
};
|
|
2495
|
+
return result;
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
});
|
|
2499
|
+
|
|
2500
|
+
// src/connector.ts
|
|
2501
|
+
var connector_exports = {};
|
|
2502
|
+
_chunk2P3A4VVYjs.__export.call(void 0, connector_exports, {
|
|
2503
|
+
createRequest: () => createRequest,
|
|
2504
|
+
getRequest: () => getRequest,
|
|
2505
|
+
pollResponse: () => pollResponse
|
|
2506
|
+
});
|
|
2507
|
+
|
|
2508
|
+
// ../../shared/connector/dist/index.mjs
|
|
2509
|
+
var import_ApiError = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ApiError(), 1);
|
|
2510
|
+
var import_CancelablePromise = _chunk2P3A4VVYjs.__toESM.call(void 0, require_CancelablePromise(), 1);
|
|
2511
|
+
var import_OpenAPI = _chunk2P3A4VVYjs.__toESM.call(void 0, require_OpenAPI(), 1);
|
|
2512
|
+
var import_AllowMethodsAllDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_AllowMethodsAllDto(), 1);
|
|
2513
|
+
var import_AllowMethodsAllParams = _chunk2P3A4VVYjs.__toESM.call(void 0, require_AllowMethodsAllParams(), 1);
|
|
2514
|
+
var import_AllowMethodsSelectDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_AllowMethodsSelectDto(), 1);
|
|
2515
|
+
var import_AllowMethodsSelectParams = _chunk2P3A4VVYjs.__toESM.call(void 0, require_AllowMethodsSelectParams(), 1);
|
|
2516
|
+
var import_ConnectorActionDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorActionDto(), 1);
|
|
2517
|
+
var import_ConnectorActionRequest = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorActionRequest(), 1);
|
|
2518
|
+
var import_ConnectorDelegateActionDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorDelegateActionDto(), 1);
|
|
2519
|
+
var import_ConnectorDelegateActionRequest = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorDelegateActionRequest(), 1);
|
|
2520
|
+
var import_ConnectorRequestDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorRequestDto(), 1);
|
|
2521
|
+
var import_ConnectorRequestRequest = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorRequestRequest(), 1);
|
|
2522
|
+
var import_ConnectorRequestResponseRequest = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorRequestResponseRequest(), 1);
|
|
2523
|
+
var import_ConnectorSignAndSendTransactionPayloadDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignAndSendTransactionPayloadDto(), 1);
|
|
2524
|
+
var import_ConnectorSignAndSendTransactionPayloadRequest = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignAndSendTransactionPayloadRequest(), 1);
|
|
2525
|
+
var import_ConnectorSignAndSendTransactionsPayloadDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignAndSendTransactionsPayloadDto(), 1);
|
|
2526
|
+
var import_ConnectorSignAndSendTransactionsPayloadRequest = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignAndSendTransactionsPayloadRequest(), 1);
|
|
2527
|
+
var import_ConnectorSignDelegateActionsPayloadDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignDelegateActionsPayloadDto(), 1);
|
|
2528
|
+
var import_ConnectorSignDelegateActionsPayloadRequest = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignDelegateActionsPayloadRequest(), 1);
|
|
2529
|
+
var import_ConnectorSignInAddFunctionCallKeyDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignInAddFunctionCallKeyDto(), 1);
|
|
2530
|
+
var import_ConnectorSignInAddFunctionCallKeyParams = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignInAddFunctionCallKeyParams(), 1);
|
|
2531
|
+
var import_ConnectorSignInAndSignMessageDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignInAndSignMessageDto(), 1);
|
|
2532
|
+
var import_ConnectorSignInAndSignMessageParams = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignInAndSignMessageParams(), 1);
|
|
2533
|
+
var import_ConnectorSignInResponseDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignInResponseDto(), 1);
|
|
2534
|
+
var import_ConnectorSignInWithKeyPayloadDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignInWithKeyPayloadDto(), 1);
|
|
2535
|
+
var import_ConnectorSignInWithKeyPayloadRequest = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignInWithKeyPayloadRequest(), 1);
|
|
2536
|
+
var import_ConnectorSignInWithMessagePayloadDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignInWithMessagePayloadDto(), 1);
|
|
2537
|
+
var import_ConnectorSignInWithMessagePayloadRequest = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignInWithMessagePayloadRequest(), 1);
|
|
2538
|
+
var import_ConnectorSignInWithMessageResponseDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignInWithMessageResponseDto(), 1);
|
|
2539
|
+
var import_ConnectorSignMessagePayloadDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignMessagePayloadDto(), 1);
|
|
2540
|
+
var import_ConnectorSignMessagePayloadRequest = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignMessagePayloadRequest(), 1);
|
|
2541
|
+
var import_ConnectorSignMessageResponseDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorSignMessageResponseDto(), 1);
|
|
2542
|
+
var import_ConnectorTransactionDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorTransactionDto(), 1);
|
|
2543
|
+
var import_ConnectorTransactionRequest = _chunk2P3A4VVYjs.__toESM.call(void 0, require_ConnectorTransactionRequest(), 1);
|
|
2544
|
+
var import_GasAllowanceLimitedDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_GasAllowanceLimitedDto(), 1);
|
|
2545
|
+
var import_GasAllowanceLimitedParams = _chunk2P3A4VVYjs.__toESM.call(void 0, require_GasAllowanceLimitedParams(), 1);
|
|
2546
|
+
var import_GasAllowanceUnlimitedDto = _chunk2P3A4VVYjs.__toESM.call(void 0, require_GasAllowanceUnlimitedDto(), 1);
|
|
2547
|
+
var import_GasAllowanceUnlimitedParams = _chunk2P3A4VVYjs.__toESM.call(void 0, require_GasAllowanceUnlimitedParams(), 1);
|
|
2548
|
+
var import_HealthApi = _chunk2P3A4VVYjs.__toESM.call(void 0, require_HealthApi(), 1);
|
|
2549
|
+
var import_PrometheusApi = _chunk2P3A4VVYjs.__toESM.call(void 0, require_PrometheusApi(), 1);
|
|
2550
|
+
var import_RequestApi = _chunk2P3A4VVYjs.__toESM.call(void 0, require_RequestApi(), 1);
|
|
2551
|
+
|
|
2552
|
+
// ../../shared/utils/dist/polling/index.mjs
|
|
2553
|
+
var polling_exports = {};
|
|
2554
|
+
_chunk2P3A4VVYjs.__reExport.call(void 0, polling_exports, _chunk2P3A4VVYjs.__toESM.call(void 0, require_polling(), 1));
|
|
2555
|
+
|
|
2556
|
+
// src/connector.ts
|
|
2557
|
+
import_OpenAPI.OpenAPI.BASE = _chunk7VPD5BMLjs.nearMobileConnectorConfig.apiUrl;
|
|
2558
|
+
var createRequest = import_RequestApi.RequestApi.createRequest;
|
|
2559
|
+
var getRequest = import_RequestApi.RequestApi.getRequest;
|
|
2560
|
+
function pollResponse(id, options = {}) {
|
|
2561
|
+
const mergedOptions = {
|
|
2562
|
+
..._chunk7VPD5BMLjs.nearMobileConnectorConfig.responsePolling,
|
|
2563
|
+
...options
|
|
2564
|
+
};
|
|
2565
|
+
return (0, polling_exports.polling)(
|
|
2566
|
+
async () => getRequest(id),
|
|
2567
|
+
(request) => request.status === "pending",
|
|
2568
|
+
mergedOptions
|
|
2569
|
+
);
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
|
|
2576
|
+
|
|
2577
|
+
exports.createRequest = createRequest; exports.getRequest = getRequest; exports.pollResponse = pollResponse; exports.connector_exports = connector_exports;
|