@openfort/openfort-js 0.0.2 → 0.1.2

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/api.js CHANGED
@@ -32,7 +32,7 @@ exports.AssetType = {
32
32
  NUMBER_1: 1,
33
33
  NUMBER_2: 2,
34
34
  NUMBER_3: 3,
35
- NUMBER_4: 4
35
+ NUMBER_4: 4,
36
36
  };
37
37
  /**
38
38
  * ContractsApi - axios parameter creator
@@ -53,9 +53,9 @@ const ContractsApiAxiosParamCreator = function (configuration) {
53
53
  */
54
54
  createContract: async (name, chainId, address, abi, publicVerification, project, options = {}) => {
55
55
  // verify required parameter 'name' is not null or undefined
56
- (0, common_1.assertParamExists)('createContract', 'name', name);
56
+ (0, common_1.assertParamExists)("createContract", "name", name);
57
57
  // verify required parameter 'chainId' is not null or undefined
58
- (0, common_1.assertParamExists)('createContract', 'chainId', chainId);
58
+ (0, common_1.assertParamExists)("createContract", "chainId", chainId);
59
59
  const localVarPath = `/v1/contracts`;
60
60
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
61
61
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -63,32 +63,36 @@ const ContractsApiAxiosParamCreator = function (configuration) {
63
63
  if (configuration) {
64
64
  baseOptions = configuration.baseOptions;
65
65
  }
66
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
66
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
67
67
  const localVarHeaderParameter = {};
68
68
  const localVarQueryParameter = {};
69
69
  const localVarFormParams = new URLSearchParams();
70
70
  if (name !== undefined) {
71
- localVarFormParams.set('name', name);
71
+ localVarFormParams.set("name", name);
72
72
  }
73
73
  if (chainId !== undefined) {
74
- localVarFormParams.set('chain_id', chainId);
74
+ localVarFormParams.set("chain_id", chainId);
75
75
  }
76
76
  if (address !== undefined) {
77
- localVarFormParams.set('address', address);
77
+ localVarFormParams.set("address", address);
78
78
  }
79
79
  if (abi !== undefined) {
80
- localVarFormParams.set('abi', abi);
80
+ localVarFormParams.set("abi", abi);
81
81
  }
82
82
  if (publicVerification !== undefined) {
83
- localVarFormParams.set('public_verification', publicVerification);
83
+ localVarFormParams.set("public_verification", publicVerification);
84
84
  }
85
85
  if (project !== undefined) {
86
- localVarFormParams.set('project', project);
86
+ localVarFormParams.set("project", project);
87
87
  }
88
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
88
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
89
89
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
90
90
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
91
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
91
+ localVarRequestOptions.headers = {
92
+ ...localVarHeaderParameter,
93
+ ...headersFromBaseOptions,
94
+ ...options.headers,
95
+ };
92
96
  localVarRequestOptions.data = localVarFormParams.toString();
93
97
  return {
94
98
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -104,24 +108,27 @@ const ContractsApiAxiosParamCreator = function (configuration) {
104
108
  */
105
109
  getContract: async (id, project, options = {}) => {
106
110
  // verify required parameter 'id' is not null or undefined
107
- (0, common_1.assertParamExists)('getContract', 'id', id);
108
- const localVarPath = `/v1/contracts/{id}`
109
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
111
+ (0, common_1.assertParamExists)("getContract", "id", id);
112
+ const localVarPath = `/v1/contracts/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
110
113
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
111
114
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
112
115
  let baseOptions;
113
116
  if (configuration) {
114
117
  baseOptions = configuration.baseOptions;
115
118
  }
116
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
119
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
117
120
  const localVarHeaderParameter = {};
118
121
  const localVarQueryParameter = {};
119
122
  if (project !== undefined) {
120
- localVarQueryParameter['project'] = project;
123
+ localVarQueryParameter["project"] = project;
121
124
  }
122
125
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
123
126
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
127
+ localVarRequestOptions.headers = {
128
+ ...localVarHeaderParameter,
129
+ ...headersFromBaseOptions,
130
+ ...options.headers,
131
+ };
125
132
  return {
126
133
  url: (0, common_1.toPathString)(localVarUrlObj),
127
134
  options: localVarRequestOptions,
@@ -141,15 +148,19 @@ const ContractsApiAxiosParamCreator = function (configuration) {
141
148
  if (configuration) {
142
149
  baseOptions = configuration.baseOptions;
143
150
  }
144
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
151
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
145
152
  const localVarHeaderParameter = {};
146
153
  const localVarQueryParameter = {};
147
154
  if (project !== undefined) {
148
- localVarQueryParameter['project'] = project;
155
+ localVarQueryParameter["project"] = project;
149
156
  }
150
157
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
151
158
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
159
+ localVarRequestOptions.headers = {
160
+ ...localVarHeaderParameter,
161
+ ...headersFromBaseOptions,
162
+ ...options.headers,
163
+ };
153
164
  return {
154
165
  url: (0, common_1.toPathString)(localVarUrlObj),
155
166
  options: localVarRequestOptions,
@@ -223,7 +234,9 @@ const ContractsApiFactory = function (configuration, basePath, axios) {
223
234
  * @throws {RequiredError}
224
235
  */
225
236
  createContract(name, chainId, address, abi, publicVerification, project, options) {
226
- return localVarFp.createContract(name, chainId, address, abi, publicVerification, project, options).then((request) => request(axios, basePath));
237
+ return localVarFp
238
+ .createContract(name, chainId, address, abi, publicVerification, project, options)
239
+ .then((request) => request(axios, basePath));
227
240
  },
228
241
  /**
229
242
  * Retrieves the details of an existing contract. Supply the unique contract ID from either a contract creation request or the contract list, and Openfort will return the corresponding contract information.
@@ -267,7 +280,9 @@ class ContractsApi extends base_1.BaseAPI {
267
280
  * @memberof ContractsApi
268
281
  */
269
282
  createContract(name, chainId, address, abi, publicVerification, project, options) {
270
- return (0, exports.ContractsApiFp)(this.configuration).createContract(name, chainId, address, abi, publicVerification, project, options).then((request) => request(this.axios, this.basePath));
283
+ return (0, exports.ContractsApiFp)(this.configuration)
284
+ .createContract(name, chainId, address, abi, publicVerification, project, options)
285
+ .then((request) => request(this.axios, this.basePath));
271
286
  }
272
287
  /**
273
288
  * Retrieves the details of an existing contract. Supply the unique contract ID from either a contract creation request or the contract list, and Openfort will return the corresponding contract information.
@@ -278,7 +293,9 @@ class ContractsApi extends base_1.BaseAPI {
278
293
  * @memberof ContractsApi
279
294
  */
280
295
  getContract(id, project, options) {
281
- return (0, exports.ContractsApiFp)(this.configuration).getContract(id, project, options).then((request) => request(this.axios, this.basePath));
296
+ return (0, exports.ContractsApiFp)(this.configuration)
297
+ .getContract(id, project, options)
298
+ .then((request) => request(this.axios, this.basePath));
282
299
  }
283
300
  /**
284
301
  * Returns a list of your contracts. The contracts are returned sorted by creation date, with the most recently created contracts appearing first.
@@ -288,7 +305,9 @@ class ContractsApi extends base_1.BaseAPI {
288
305
  * @memberof ContractsApi
289
306
  */
290
307
  getContracts(project, options) {
291
- return (0, exports.ContractsApiFp)(this.configuration).getContracts(project, options).then((request) => request(this.axios, this.basePath));
308
+ return (0, exports.ContractsApiFp)(this.configuration)
309
+ .getContracts(project, options)
310
+ .then((request) => request(this.axios, this.basePath));
292
311
  }
293
312
  }
294
313
  exports.ContractsApi = ContractsApi;
@@ -309,9 +328,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
309
328
  */
310
329
  createAccount: async (chainId, player, project, externalOwnerAddress, options = {}) => {
311
330
  // verify required parameter 'chainId' is not null or undefined
312
- (0, common_1.assertParamExists)('createAccount', 'chainId', chainId);
331
+ (0, common_1.assertParamExists)("createAccount", "chainId", chainId);
313
332
  // verify required parameter 'player' is not null or undefined
314
- (0, common_1.assertParamExists)('createAccount', 'player', player);
333
+ (0, common_1.assertParamExists)("createAccount", "player", player);
315
334
  const localVarPath = `/v1/accounts`;
316
335
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
317
336
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -319,26 +338,30 @@ const DefaultApiAxiosParamCreator = function (configuration) {
319
338
  if (configuration) {
320
339
  baseOptions = configuration.baseOptions;
321
340
  }
322
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
341
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
323
342
  const localVarHeaderParameter = {};
324
343
  const localVarQueryParameter = {};
325
344
  const localVarFormParams = new URLSearchParams();
326
345
  if (project !== undefined) {
327
- localVarFormParams.set('project', project);
346
+ localVarFormParams.set("project", project);
328
347
  }
329
348
  if (chainId !== undefined) {
330
- localVarFormParams.set('chain_id', chainId);
349
+ localVarFormParams.set("chain_id", chainId);
331
350
  }
332
351
  if (player !== undefined) {
333
- localVarFormParams.set('player', player);
352
+ localVarFormParams.set("player", player);
334
353
  }
335
354
  if (externalOwnerAddress !== undefined) {
336
- localVarFormParams.set('external_owner_address', externalOwnerAddress);
355
+ localVarFormParams.set("external_owner_address", externalOwnerAddress);
337
356
  }
338
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
357
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
339
358
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
340
359
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
341
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
360
+ localVarRequestOptions.headers = {
361
+ ...localVarHeaderParameter,
362
+ ...headersFromBaseOptions,
363
+ ...options.headers,
364
+ };
342
365
  localVarRequestOptions.data = localVarFormParams.toString();
343
366
  return {
344
367
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -357,9 +380,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
357
380
  */
358
381
  createAllowFunction: async (type, policy, functionName, project, contract, options = {}) => {
359
382
  // verify required parameter 'type' is not null or undefined
360
- (0, common_1.assertParamExists)('createAllowFunction', 'type', type);
383
+ (0, common_1.assertParamExists)("createAllowFunction", "type", type);
361
384
  // verify required parameter 'policy' is not null or undefined
362
- (0, common_1.assertParamExists)('createAllowFunction', 'policy', policy);
385
+ (0, common_1.assertParamExists)("createAllowFunction", "policy", policy);
363
386
  const localVarPath = `/v1/allow_functions`;
364
387
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
365
388
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -367,29 +390,33 @@ const DefaultApiAxiosParamCreator = function (configuration) {
367
390
  if (configuration) {
368
391
  baseOptions = configuration.baseOptions;
369
392
  }
370
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
393
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
371
394
  const localVarHeaderParameter = {};
372
395
  const localVarQueryParameter = {};
373
396
  const localVarFormParams = new URLSearchParams();
374
397
  if (type !== undefined) {
375
- localVarFormParams.set('type', type);
398
+ localVarFormParams.set("type", type);
376
399
  }
377
400
  if (functionName !== undefined) {
378
- localVarFormParams.set('function_name', functionName);
401
+ localVarFormParams.set("function_name", functionName);
379
402
  }
380
403
  if (policy !== undefined) {
381
- localVarFormParams.set('policy', policy);
404
+ localVarFormParams.set("policy", policy);
382
405
  }
383
406
  if (project !== undefined) {
384
- localVarFormParams.set('project', project);
407
+ localVarFormParams.set("project", project);
385
408
  }
386
409
  if (contract !== undefined) {
387
- localVarFormParams.set('contract', contract);
410
+ localVarFormParams.set("contract", contract);
388
411
  }
389
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
412
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
390
413
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
391
414
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
392
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
415
+ localVarRequestOptions.headers = {
416
+ ...localVarHeaderParameter,
417
+ ...headersFromBaseOptions,
418
+ ...options.headers,
419
+ };
393
420
  localVarRequestOptions.data = localVarFormParams.toString();
394
421
  return {
395
422
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -405,24 +432,27 @@ const DefaultApiAxiosParamCreator = function (configuration) {
405
432
  */
406
433
  getAccount: async (id, project, options = {}) => {
407
434
  // verify required parameter 'id' is not null or undefined
408
- (0, common_1.assertParamExists)('getAccount', 'id', id);
409
- const localVarPath = `/v1/accounts/{id}`
410
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
435
+ (0, common_1.assertParamExists)("getAccount", "id", id);
436
+ const localVarPath = `/v1/accounts/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
411
437
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
412
438
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
413
439
  let baseOptions;
414
440
  if (configuration) {
415
441
  baseOptions = configuration.baseOptions;
416
442
  }
417
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
443
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
418
444
  const localVarHeaderParameter = {};
419
445
  const localVarQueryParameter = {};
420
446
  if (project !== undefined) {
421
- localVarQueryParameter['project'] = project;
447
+ localVarQueryParameter["project"] = project;
422
448
  }
423
449
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
424
450
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
425
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
451
+ localVarRequestOptions.headers = {
452
+ ...localVarHeaderParameter,
453
+ ...headersFromBaseOptions,
454
+ ...options.headers,
455
+ };
426
456
  return {
427
457
  url: (0, common_1.toPathString)(localVarUrlObj),
428
458
  options: localVarRequestOptions,
@@ -437,24 +467,27 @@ const DefaultApiAxiosParamCreator = function (configuration) {
437
467
  */
438
468
  getAccountInventory: async (id, project, options = {}) => {
439
469
  // verify required parameter 'id' is not null or undefined
440
- (0, common_1.assertParamExists)('getAccountInventory', 'id', id);
441
- const localVarPath = `/v1/accounts/{id}/inventory`
442
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
470
+ (0, common_1.assertParamExists)("getAccountInventory", "id", id);
471
+ const localVarPath = `/v1/accounts/{id}/inventory`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
443
472
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
444
473
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
445
474
  let baseOptions;
446
475
  if (configuration) {
447
476
  baseOptions = configuration.baseOptions;
448
477
  }
449
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
478
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
450
479
  const localVarHeaderParameter = {};
451
480
  const localVarQueryParameter = {};
452
481
  if (project !== undefined) {
453
- localVarQueryParameter['project'] = project;
482
+ localVarQueryParameter["project"] = project;
454
483
  }
455
484
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
456
485
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
457
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
486
+ localVarRequestOptions.headers = {
487
+ ...localVarHeaderParameter,
488
+ ...headersFromBaseOptions,
489
+ ...options.headers,
490
+ };
458
491
  return {
459
492
  url: (0, common_1.toPathString)(localVarUrlObj),
460
493
  options: localVarRequestOptions,
@@ -469,7 +502,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
469
502
  */
470
503
  getAccounts: async (player, project, options = {}) => {
471
504
  // verify required parameter 'player' is not null or undefined
472
- (0, common_1.assertParamExists)('getAccounts', 'player', player);
505
+ (0, common_1.assertParamExists)("getAccounts", "player", player);
473
506
  const localVarPath = `/v1/accounts`;
474
507
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
475
508
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -477,18 +510,22 @@ const DefaultApiAxiosParamCreator = function (configuration) {
477
510
  if (configuration) {
478
511
  baseOptions = configuration.baseOptions;
479
512
  }
480
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
513
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
481
514
  const localVarHeaderParameter = {};
482
515
  const localVarQueryParameter = {};
483
516
  if (player !== undefined) {
484
- localVarQueryParameter['player'] = player;
517
+ localVarQueryParameter["player"] = player;
485
518
  }
486
519
  if (project !== undefined) {
487
- localVarQueryParameter['project'] = project;
520
+ localVarQueryParameter["project"] = project;
488
521
  }
489
522
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
490
523
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
491
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
524
+ localVarRequestOptions.headers = {
525
+ ...localVarHeaderParameter,
526
+ ...headersFromBaseOptions,
527
+ ...options.headers,
528
+ };
492
529
  return {
493
530
  url: (0, common_1.toPathString)(localVarUrlObj),
494
531
  options: localVarRequestOptions,
@@ -509,18 +546,22 @@ const DefaultApiAxiosParamCreator = function (configuration) {
509
546
  if (configuration) {
510
547
  baseOptions = configuration.baseOptions;
511
548
  }
512
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
549
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
513
550
  const localVarHeaderParameter = {};
514
551
  const localVarQueryParameter = {};
515
552
  if (project !== undefined) {
516
- localVarQueryParameter['project'] = project;
553
+ localVarQueryParameter["project"] = project;
517
554
  }
518
555
  if (policy !== undefined) {
519
- localVarQueryParameter['policy'] = policy;
556
+ localVarQueryParameter["policy"] = policy;
520
557
  }
521
558
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
522
559
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
523
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
560
+ localVarRequestOptions.headers = {
561
+ ...localVarHeaderParameter,
562
+ ...headersFromBaseOptions,
563
+ ...options.headers,
564
+ };
524
565
  return {
525
566
  url: (0, common_1.toPathString)(localVarUrlObj),
526
567
  options: localVarRequestOptions,
@@ -539,42 +580,45 @@ const DefaultApiAxiosParamCreator = function (configuration) {
539
580
  */
540
581
  updateAllowFunction: async (id, type, policy, functionName, project, contract, options = {}) => {
541
582
  // verify required parameter 'id' is not null or undefined
542
- (0, common_1.assertParamExists)('updateAllowFunction', 'id', id);
583
+ (0, common_1.assertParamExists)("updateAllowFunction", "id", id);
543
584
  // verify required parameter 'type' is not null or undefined
544
- (0, common_1.assertParamExists)('updateAllowFunction', 'type', type);
585
+ (0, common_1.assertParamExists)("updateAllowFunction", "type", type);
545
586
  // verify required parameter 'policy' is not null or undefined
546
- (0, common_1.assertParamExists)('updateAllowFunction', 'policy', policy);
547
- const localVarPath = `/v1/allow_functions/{id}`
548
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
587
+ (0, common_1.assertParamExists)("updateAllowFunction", "policy", policy);
588
+ const localVarPath = `/v1/allow_functions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
549
589
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
550
590
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
551
591
  let baseOptions;
552
592
  if (configuration) {
553
593
  baseOptions = configuration.baseOptions;
554
594
  }
555
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
595
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
556
596
  const localVarHeaderParameter = {};
557
597
  const localVarQueryParameter = {};
558
598
  const localVarFormParams = new URLSearchParams();
559
599
  if (type !== undefined) {
560
- localVarFormParams.set('type', type);
600
+ localVarFormParams.set("type", type);
561
601
  }
562
602
  if (functionName !== undefined) {
563
- localVarFormParams.set('function_name', functionName);
603
+ localVarFormParams.set("function_name", functionName);
564
604
  }
565
605
  if (policy !== undefined) {
566
- localVarFormParams.set('policy', policy);
606
+ localVarFormParams.set("policy", policy);
567
607
  }
568
608
  if (project !== undefined) {
569
- localVarFormParams.set('project', project);
609
+ localVarFormParams.set("project", project);
570
610
  }
571
611
  if (contract !== undefined) {
572
- localVarFormParams.set('contract', contract);
612
+ localVarFormParams.set("contract", contract);
573
613
  }
574
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
614
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
575
615
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
576
616
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
577
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
617
+ localVarRequestOptions.headers = {
618
+ ...localVarHeaderParameter,
619
+ ...headersFromBaseOptions,
620
+ ...options.headers,
621
+ };
578
622
  localVarRequestOptions.data = localVarFormParams.toString();
579
623
  return {
580
624
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -697,7 +741,9 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
697
741
  * @throws {RequiredError}
698
742
  */
699
743
  createAccount(chainId, player, project, externalOwnerAddress, options) {
700
- return localVarFp.createAccount(chainId, player, project, externalOwnerAddress, options).then((request) => request(axios, basePath));
744
+ return localVarFp
745
+ .createAccount(chainId, player, project, externalOwnerAddress, options)
746
+ .then((request) => request(axios, basePath));
701
747
  },
702
748
  /**
703
749
  * Creates an allow function object.
@@ -710,7 +756,9 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
710
756
  * @throws {RequiredError}
711
757
  */
712
758
  createAllowFunction(type, policy, functionName, project, contract, options) {
713
- return localVarFp.createAllowFunction(type, policy, functionName, project, contract, options).then((request) => request(axios, basePath));
759
+ return localVarFp
760
+ .createAllowFunction(type, policy, functionName, project, contract, options)
761
+ .then((request) => request(axios, basePath));
714
762
  },
715
763
  /**
716
764
  * Retrieves the details of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.
@@ -764,7 +812,9 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
764
812
  * @throws {RequiredError}
765
813
  */
766
814
  updateAllowFunction(id, type, policy, functionName, project, contract, options) {
767
- return localVarFp.updateAllowFunction(id, type, policy, functionName, project, contract, options).then((request) => request(axios, basePath));
815
+ return localVarFp
816
+ .updateAllowFunction(id, type, policy, functionName, project, contract, options)
817
+ .then((request) => request(axios, basePath));
768
818
  },
769
819
  };
770
820
  };
@@ -787,7 +837,9 @@ class DefaultApi extends base_1.BaseAPI {
787
837
  * @memberof DefaultApi
788
838
  */
789
839
  createAccount(chainId, player, project, externalOwnerAddress, options) {
790
- return (0, exports.DefaultApiFp)(this.configuration).createAccount(chainId, player, project, externalOwnerAddress, options).then((request) => request(this.axios, this.basePath));
840
+ return (0, exports.DefaultApiFp)(this.configuration)
841
+ .createAccount(chainId, player, project, externalOwnerAddress, options)
842
+ .then((request) => request(this.axios, this.basePath));
791
843
  }
792
844
  /**
793
845
  * Creates an allow function object.
@@ -801,7 +853,9 @@ class DefaultApi extends base_1.BaseAPI {
801
853
  * @memberof DefaultApi
802
854
  */
803
855
  createAllowFunction(type, policy, functionName, project, contract, options) {
804
- return (0, exports.DefaultApiFp)(this.configuration).createAllowFunction(type, policy, functionName, project, contract, options).then((request) => request(this.axios, this.basePath));
856
+ return (0, exports.DefaultApiFp)(this.configuration)
857
+ .createAllowFunction(type, policy, functionName, project, contract, options)
858
+ .then((request) => request(this.axios, this.basePath));
805
859
  }
806
860
  /**
807
861
  * Retrieves the details of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.
@@ -812,7 +866,9 @@ class DefaultApi extends base_1.BaseAPI {
812
866
  * @memberof DefaultApi
813
867
  */
814
868
  getAccount(id, project, options) {
815
- return (0, exports.DefaultApiFp)(this.configuration).getAccount(id, project, options).then((request) => request(this.axios, this.basePath));
869
+ return (0, exports.DefaultApiFp)(this.configuration)
870
+ .getAccount(id, project, options)
871
+ .then((request) => request(this.axios, this.basePath));
816
872
  }
817
873
  /**
818
874
  * Retrieves the inventory of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.
@@ -823,7 +879,9 @@ class DefaultApi extends base_1.BaseAPI {
823
879
  * @memberof DefaultApi
824
880
  */
825
881
  getAccountInventory(id, project, options) {
826
- return (0, exports.DefaultApiFp)(this.configuration).getAccountInventory(id, project, options).then((request) => request(this.axios, this.basePath));
882
+ return (0, exports.DefaultApiFp)(this.configuration)
883
+ .getAccountInventory(id, project, options)
884
+ .then((request) => request(this.axios, this.basePath));
827
885
  }
828
886
  /**
829
887
  * Returns a list of your accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
@@ -834,7 +892,9 @@ class DefaultApi extends base_1.BaseAPI {
834
892
  * @memberof DefaultApi
835
893
  */
836
894
  getAccounts(player, project, options) {
837
- return (0, exports.DefaultApiFp)(this.configuration).getAccounts(player, project, options).then((request) => request(this.axios, this.basePath));
895
+ return (0, exports.DefaultApiFp)(this.configuration)
896
+ .getAccounts(player, project, options)
897
+ .then((request) => request(this.axios, this.basePath));
838
898
  }
839
899
  /**
840
900
  * Returns a list of your allow functions for the given policy. The allow functions are returned sorted by creation date, with the most recently created allow functions appearing first.
@@ -845,7 +905,9 @@ class DefaultApi extends base_1.BaseAPI {
845
905
  * @memberof DefaultApi
846
906
  */
847
907
  getAllowFunctions(project, policy, options) {
848
- return (0, exports.DefaultApiFp)(this.configuration).getAllowFunctions(project, policy, options).then((request) => request(this.axios, this.basePath));
908
+ return (0, exports.DefaultApiFp)(this.configuration)
909
+ .getAllowFunctions(project, policy, options)
910
+ .then((request) => request(this.axios, this.basePath));
849
911
  }
850
912
  /**
851
913
  * Updates your allow functions object.
@@ -860,7 +922,9 @@ class DefaultApi extends base_1.BaseAPI {
860
922
  * @memberof DefaultApi
861
923
  */
862
924
  updateAllowFunction(id, type, policy, functionName, project, contract, options) {
863
- return (0, exports.DefaultApiFp)(this.configuration).updateAllowFunction(id, type, policy, functionName, project, contract, options).then((request) => request(this.axios, this.basePath));
925
+ return (0, exports.DefaultApiFp)(this.configuration)
926
+ .updateAllowFunction(id, type, policy, functionName, project, contract, options)
927
+ .then((request) => request(this.axios, this.basePath));
864
928
  }
865
929
  }
866
930
  exports.DefaultApi = DefaultApi;
@@ -886,21 +950,25 @@ const LogsApiAxiosParamCreator = function (configuration) {
886
950
  if (configuration) {
887
951
  baseOptions = configuration.baseOptions;
888
952
  }
889
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
953
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
890
954
  const localVarHeaderParameter = {};
891
955
  const localVarQueryParameter = {};
892
956
  if (project !== undefined) {
893
- localVarQueryParameter['project'] = project;
957
+ localVarQueryParameter["project"] = project;
894
958
  }
895
959
  if (method) {
896
- localVarQueryParameter['method'] = method;
960
+ localVarQueryParameter["method"] = method;
897
961
  }
898
962
  if (id !== undefined) {
899
- localVarQueryParameter['id'] = id;
963
+ localVarQueryParameter["id"] = id;
900
964
  }
901
965
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
902
966
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
903
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
967
+ localVarRequestOptions.headers = {
968
+ ...localVarHeaderParameter,
969
+ ...headersFromBaseOptions,
970
+ ...options.headers,
971
+ };
904
972
  return {
905
973
  url: (0, common_1.toPathString)(localVarUrlObj),
906
974
  options: localVarRequestOptions,
@@ -969,7 +1037,9 @@ class LogsApi extends base_1.BaseAPI {
969
1037
  * @memberof LogsApi
970
1038
  */
971
1039
  getProjectLogs(project, method, id, options) {
972
- return (0, exports.LogsApiFp)(this.configuration).getProjectLogs(project, method, id, options).then((request) => request(this.axios, this.basePath));
1040
+ return (0, exports.LogsApiFp)(this.configuration)
1041
+ .getProjectLogs(project, method, id, options)
1042
+ .then((request) => request(this.axios, this.basePath));
973
1043
  }
974
1044
  }
975
1045
  exports.LogsApi = LogsApi;
@@ -989,7 +1059,7 @@ const PlayersApiAxiosParamCreator = function (configuration) {
989
1059
  */
990
1060
  createPlayer: async (name, description, project, options = {}) => {
991
1061
  // verify required parameter 'name' is not null or undefined
992
- (0, common_1.assertParamExists)('createPlayer', 'name', name);
1062
+ (0, common_1.assertParamExists)("createPlayer", "name", name);
993
1063
  const localVarPath = `/v1/players`;
994
1064
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
995
1065
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -997,23 +1067,27 @@ const PlayersApiAxiosParamCreator = function (configuration) {
997
1067
  if (configuration) {
998
1068
  baseOptions = configuration.baseOptions;
999
1069
  }
1000
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1070
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1001
1071
  const localVarHeaderParameter = {};
1002
1072
  const localVarQueryParameter = {};
1003
1073
  const localVarFormParams = new URLSearchParams();
1004
1074
  if (name !== undefined) {
1005
- localVarFormParams.set('name', name);
1075
+ localVarFormParams.set("name", name);
1006
1076
  }
1007
1077
  if (description !== undefined) {
1008
- localVarFormParams.set('description', description);
1078
+ localVarFormParams.set("description", description);
1009
1079
  }
1010
1080
  if (project !== undefined) {
1011
- localVarFormParams.set('project', project);
1081
+ localVarFormParams.set("project", project);
1012
1082
  }
1013
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
1083
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
1014
1084
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1015
1085
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1016
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1086
+ localVarRequestOptions.headers = {
1087
+ ...localVarHeaderParameter,
1088
+ ...headersFromBaseOptions,
1089
+ ...options.headers,
1090
+ };
1017
1091
  localVarRequestOptions.data = localVarFormParams.toString();
1018
1092
  return {
1019
1093
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -1031,34 +1105,37 @@ const PlayersApiAxiosParamCreator = function (configuration) {
1031
1105
  */
1032
1106
  createPlayerAccount: async (player, chainId, project, externalOwnerAddress, options = {}) => {
1033
1107
  // verify required parameter 'player' is not null or undefined
1034
- (0, common_1.assertParamExists)('createPlayerAccount', 'player', player);
1108
+ (0, common_1.assertParamExists)("createPlayerAccount", "player", player);
1035
1109
  // verify required parameter 'chainId' is not null or undefined
1036
- (0, common_1.assertParamExists)('createPlayerAccount', 'chainId', chainId);
1037
- const localVarPath = `/v1/players/{player}/accounts`
1038
- .replace(`{${"player"}}`, encodeURIComponent(String(player)));
1110
+ (0, common_1.assertParamExists)("createPlayerAccount", "chainId", chainId);
1111
+ const localVarPath = `/v1/players/{player}/accounts`.replace(`{${"player"}}`, encodeURIComponent(String(player)));
1039
1112
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1040
1113
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1041
1114
  let baseOptions;
1042
1115
  if (configuration) {
1043
1116
  baseOptions = configuration.baseOptions;
1044
1117
  }
1045
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1118
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1046
1119
  const localVarHeaderParameter = {};
1047
1120
  const localVarQueryParameter = {};
1048
1121
  const localVarFormParams = new URLSearchParams();
1049
1122
  if (project !== undefined) {
1050
- localVarFormParams.set('project', project);
1123
+ localVarFormParams.set("project", project);
1051
1124
  }
1052
1125
  if (chainId !== undefined) {
1053
- localVarFormParams.set('chain_id', chainId);
1126
+ localVarFormParams.set("chain_id", chainId);
1054
1127
  }
1055
1128
  if (externalOwnerAddress !== undefined) {
1056
- localVarFormParams.set('external_owner_address', externalOwnerAddress);
1129
+ localVarFormParams.set("external_owner_address", externalOwnerAddress);
1057
1130
  }
1058
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
1131
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
1059
1132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1060
1133
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1061
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1134
+ localVarRequestOptions.headers = {
1135
+ ...localVarHeaderParameter,
1136
+ ...headersFromBaseOptions,
1137
+ ...options.headers,
1138
+ };
1062
1139
  localVarRequestOptions.data = localVarFormParams.toString();
1063
1140
  return {
1064
1141
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -1080,52 +1157,55 @@ const PlayersApiAxiosParamCreator = function (configuration) {
1080
1157
  */
1081
1158
  createPlayerSession: async (player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options = {}) => {
1082
1159
  // verify required parameter 'player' is not null or undefined
1083
- (0, common_1.assertParamExists)('createPlayerSession', 'player', player);
1160
+ (0, common_1.assertParamExists)("createPlayerSession", "player", player);
1084
1161
  // verify required parameter 'address' is not null or undefined
1085
- (0, common_1.assertParamExists)('createPlayerSession', 'address', address);
1162
+ (0, common_1.assertParamExists)("createPlayerSession", "address", address);
1086
1163
  // verify required parameter 'chainId' is not null or undefined
1087
- (0, common_1.assertParamExists)('createPlayerSession', 'chainId', chainId);
1164
+ (0, common_1.assertParamExists)("createPlayerSession", "chainId", chainId);
1088
1165
  // verify required parameter 'validUntil' is not null or undefined
1089
- (0, common_1.assertParamExists)('createPlayerSession', 'validUntil', validUntil);
1166
+ (0, common_1.assertParamExists)("createPlayerSession", "validUntil", validUntil);
1090
1167
  // verify required parameter 'validAfter' is not null or undefined
1091
- (0, common_1.assertParamExists)('createPlayerSession', 'validAfter', validAfter);
1092
- const localVarPath = `/v1/players/{player}/sessions`
1093
- .replace(`{${"player"}}`, encodeURIComponent(String(player)));
1168
+ (0, common_1.assertParamExists)("createPlayerSession", "validAfter", validAfter);
1169
+ const localVarPath = `/v1/players/{player}/sessions`.replace(`{${"player"}}`, encodeURIComponent(String(player)));
1094
1170
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1095
1171
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1096
1172
  let baseOptions;
1097
1173
  if (configuration) {
1098
1174
  baseOptions = configuration.baseOptions;
1099
1175
  }
1100
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1176
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1101
1177
  const localVarHeaderParameter = {};
1102
1178
  const localVarQueryParameter = {};
1103
1179
  const localVarFormParams = new URLSearchParams();
1104
1180
  if (address !== undefined) {
1105
- localVarFormParams.set('address', address);
1181
+ localVarFormParams.set("address", address);
1106
1182
  }
1107
1183
  if (policy !== undefined) {
1108
- localVarFormParams.set('policy', policy);
1184
+ localVarFormParams.set("policy", policy);
1109
1185
  }
1110
1186
  if (chainId !== undefined) {
1111
- localVarFormParams.set('chain_id', chainId);
1187
+ localVarFormParams.set("chain_id", chainId);
1112
1188
  }
1113
1189
  if (validUntil !== undefined) {
1114
- localVarFormParams.set('valid_until', validUntil);
1190
+ localVarFormParams.set("valid_until", validUntil);
1115
1191
  }
1116
1192
  if (validAfter !== undefined) {
1117
- localVarFormParams.set('valid_after', validAfter);
1193
+ localVarFormParams.set("valid_after", validAfter);
1118
1194
  }
1119
1195
  if (whitelist) {
1120
- localVarFormParams.set('whitelist', whitelist.join(base_1.COLLECTION_FORMATS.csv));
1196
+ localVarFormParams.set("whitelist", whitelist.join(base_1.COLLECTION_FORMATS.csv));
1121
1197
  }
1122
1198
  if (limit !== undefined) {
1123
- localVarFormParams.set('limit', limit);
1199
+ localVarFormParams.set("limit", limit);
1124
1200
  }
1125
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
1201
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
1126
1202
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1127
1203
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1128
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1204
+ localVarRequestOptions.headers = {
1205
+ ...localVarHeaderParameter,
1206
+ ...headersFromBaseOptions,
1207
+ ...options.headers,
1208
+ };
1129
1209
  localVarRequestOptions.data = localVarFormParams.toString();
1130
1210
  return {
1131
1211
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -1141,24 +1221,27 @@ const PlayersApiAxiosParamCreator = function (configuration) {
1141
1221
  */
1142
1222
  getPlayer: async (id, project, options = {}) => {
1143
1223
  // verify required parameter 'id' is not null or undefined
1144
- (0, common_1.assertParamExists)('getPlayer', 'id', id);
1145
- const localVarPath = `/v1/players/{id}`
1146
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1224
+ (0, common_1.assertParamExists)("getPlayer", "id", id);
1225
+ const localVarPath = `/v1/players/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1147
1226
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1148
1227
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1149
1228
  let baseOptions;
1150
1229
  if (configuration) {
1151
1230
  baseOptions = configuration.baseOptions;
1152
1231
  }
1153
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1232
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1154
1233
  const localVarHeaderParameter = {};
1155
1234
  const localVarQueryParameter = {};
1156
1235
  if (project !== undefined) {
1157
- localVarQueryParameter['project'] = project;
1236
+ localVarQueryParameter["project"] = project;
1158
1237
  }
1159
1238
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1160
1239
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1161
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1240
+ localVarRequestOptions.headers = {
1241
+ ...localVarHeaderParameter,
1242
+ ...headersFromBaseOptions,
1243
+ ...options.headers,
1244
+ };
1162
1245
  return {
1163
1246
  url: (0, common_1.toPathString)(localVarUrlObj),
1164
1247
  options: localVarRequestOptions,
@@ -1173,24 +1256,27 @@ const PlayersApiAxiosParamCreator = function (configuration) {
1173
1256
  */
1174
1257
  getPlayerAccounts: async (player, project, options = {}) => {
1175
1258
  // verify required parameter 'player' is not null or undefined
1176
- (0, common_1.assertParamExists)('getPlayerAccounts', 'player', player);
1177
- const localVarPath = `/v1/players/{player}/accounts`
1178
- .replace(`{${"player"}}`, encodeURIComponent(String(player)));
1259
+ (0, common_1.assertParamExists)("getPlayerAccounts", "player", player);
1260
+ const localVarPath = `/v1/players/{player}/accounts`.replace(`{${"player"}}`, encodeURIComponent(String(player)));
1179
1261
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1180
1262
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1181
1263
  let baseOptions;
1182
1264
  if (configuration) {
1183
1265
  baseOptions = configuration.baseOptions;
1184
1266
  }
1185
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1267
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1186
1268
  const localVarHeaderParameter = {};
1187
1269
  const localVarQueryParameter = {};
1188
1270
  if (project !== undefined) {
1189
- localVarQueryParameter['project'] = project;
1271
+ localVarQueryParameter["project"] = project;
1190
1272
  }
1191
1273
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1192
1274
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1193
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1275
+ localVarRequestOptions.headers = {
1276
+ ...localVarHeaderParameter,
1277
+ ...headersFromBaseOptions,
1278
+ ...options.headers,
1279
+ };
1194
1280
  return {
1195
1281
  url: (0, common_1.toPathString)(localVarUrlObj),
1196
1282
  options: localVarRequestOptions,
@@ -1206,29 +1292,32 @@ const PlayersApiAxiosParamCreator = function (configuration) {
1206
1292
  */
1207
1293
  getPlayerInventory: async (id, chainId, project, options = {}) => {
1208
1294
  // verify required parameter 'id' is not null or undefined
1209
- (0, common_1.assertParamExists)('getPlayerInventory', 'id', id);
1295
+ (0, common_1.assertParamExists)("getPlayerInventory", "id", id);
1210
1296
  // verify required parameter 'chainId' is not null or undefined
1211
- (0, common_1.assertParamExists)('getPlayerInventory', 'chainId', chainId);
1212
- const localVarPath = `/v1/players/{id}/inventory`
1213
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1297
+ (0, common_1.assertParamExists)("getPlayerInventory", "chainId", chainId);
1298
+ const localVarPath = `/v1/players/{id}/inventory`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1214
1299
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1215
1300
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1216
1301
  let baseOptions;
1217
1302
  if (configuration) {
1218
1303
  baseOptions = configuration.baseOptions;
1219
1304
  }
1220
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1305
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1221
1306
  const localVarHeaderParameter = {};
1222
1307
  const localVarQueryParameter = {};
1223
1308
  if (chainId !== undefined) {
1224
- localVarQueryParameter['chain_id'] = chainId;
1309
+ localVarQueryParameter["chain_id"] = chainId;
1225
1310
  }
1226
1311
  if (project !== undefined) {
1227
- localVarQueryParameter['project'] = project;
1312
+ localVarQueryParameter["project"] = project;
1228
1313
  }
1229
1314
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1230
1315
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1231
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1316
+ localVarRequestOptions.headers = {
1317
+ ...localVarHeaderParameter,
1318
+ ...headersFromBaseOptions,
1319
+ ...options.headers,
1320
+ };
1232
1321
  return {
1233
1322
  url: (0, common_1.toPathString)(localVarUrlObj),
1234
1323
  options: localVarRequestOptions,
@@ -1252,27 +1341,31 @@ const PlayersApiAxiosParamCreator = function (configuration) {
1252
1341
  if (configuration) {
1253
1342
  baseOptions = configuration.baseOptions;
1254
1343
  }
1255
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1344
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1256
1345
  const localVarHeaderParameter = {};
1257
1346
  const localVarQueryParameter = {};
1258
1347
  if (project !== undefined) {
1259
- localVarQueryParameter['project'] = project;
1348
+ localVarQueryParameter["project"] = project;
1260
1349
  }
1261
1350
  if (filter !== undefined) {
1262
- localVarQueryParameter['filter'] = filter;
1351
+ localVarQueryParameter["filter"] = filter;
1263
1352
  }
1264
1353
  if (order !== undefined) {
1265
- localVarQueryParameter['order'] = order;
1354
+ localVarQueryParameter["order"] = order;
1266
1355
  }
1267
1356
  if (skip !== undefined) {
1268
- localVarQueryParameter['skip'] = skip;
1357
+ localVarQueryParameter["skip"] = skip;
1269
1358
  }
1270
1359
  if (take !== undefined) {
1271
- localVarQueryParameter['take'] = take;
1360
+ localVarQueryParameter["take"] = take;
1272
1361
  }
1273
1362
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1274
1363
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1275
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1364
+ localVarRequestOptions.headers = {
1365
+ ...localVarHeaderParameter,
1366
+ ...headersFromBaseOptions,
1367
+ ...options.headers,
1368
+ };
1276
1369
  return {
1277
1370
  url: (0, common_1.toPathString)(localVarUrlObj),
1278
1371
  options: localVarRequestOptions,
@@ -1289,34 +1382,37 @@ const PlayersApiAxiosParamCreator = function (configuration) {
1289
1382
  */
1290
1383
  updatePlayer: async (id, name, description, project, options = {}) => {
1291
1384
  // verify required parameter 'id' is not null or undefined
1292
- (0, common_1.assertParamExists)('updatePlayer', 'id', id);
1385
+ (0, common_1.assertParamExists)("updatePlayer", "id", id);
1293
1386
  // verify required parameter 'name' is not null or undefined
1294
- (0, common_1.assertParamExists)('updatePlayer', 'name', name);
1295
- const localVarPath = `/v1/players/{id}`
1296
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1387
+ (0, common_1.assertParamExists)("updatePlayer", "name", name);
1388
+ const localVarPath = `/v1/players/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1297
1389
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1298
1390
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1299
1391
  let baseOptions;
1300
1392
  if (configuration) {
1301
1393
  baseOptions = configuration.baseOptions;
1302
1394
  }
1303
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1395
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1304
1396
  const localVarHeaderParameter = {};
1305
1397
  const localVarQueryParameter = {};
1306
1398
  const localVarFormParams = new URLSearchParams();
1307
1399
  if (name !== undefined) {
1308
- localVarFormParams.set('name', name);
1400
+ localVarFormParams.set("name", name);
1309
1401
  }
1310
1402
  if (description !== undefined) {
1311
- localVarFormParams.set('description', description);
1403
+ localVarFormParams.set("description", description);
1312
1404
  }
1313
1405
  if (project !== undefined) {
1314
- localVarFormParams.set('project', project);
1406
+ localVarFormParams.set("project", project);
1315
1407
  }
1316
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
1408
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
1317
1409
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1318
1410
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1319
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1411
+ localVarRequestOptions.headers = {
1412
+ ...localVarHeaderParameter,
1413
+ ...headersFromBaseOptions,
1414
+ ...options.headers,
1415
+ };
1320
1416
  localVarRequestOptions.data = localVarFormParams.toString();
1321
1417
  return {
1322
1418
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -1455,7 +1551,9 @@ const PlayersApiFactory = function (configuration, basePath, axios) {
1455
1551
  * @throws {RequiredError}
1456
1552
  */
1457
1553
  createPlayer(name, description, project, options) {
1458
- return localVarFp.createPlayer(name, description, project, options).then((request) => request(axios, basePath));
1554
+ return localVarFp
1555
+ .createPlayer(name, description, project, options)
1556
+ .then((request) => request(axios, basePath));
1459
1557
  },
1460
1558
  /**
1461
1559
  * Updates an account object of an existing player.
@@ -1467,7 +1565,9 @@ const PlayersApiFactory = function (configuration, basePath, axios) {
1467
1565
  * @throws {RequiredError}
1468
1566
  */
1469
1567
  createPlayerAccount(player, chainId, project, externalOwnerAddress, options) {
1470
- return localVarFp.createPlayerAccount(player, chainId, project, externalOwnerAddress, options).then((request) => request(axios, basePath));
1568
+ return localVarFp
1569
+ .createPlayerAccount(player, chainId, project, externalOwnerAddress, options)
1570
+ .then((request) => request(axios, basePath));
1471
1571
  },
1472
1572
  /**
1473
1573
  * Returns a list of your accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
@@ -1483,7 +1583,9 @@ const PlayersApiFactory = function (configuration, basePath, axios) {
1483
1583
  * @throws {RequiredError}
1484
1584
  */
1485
1585
  createPlayerSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options) {
1486
- return localVarFp.createPlayerSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options).then((request) => request(axios, basePath));
1586
+ return localVarFp
1587
+ .createPlayerSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options)
1588
+ .then((request) => request(axios, basePath));
1487
1589
  },
1488
1590
  /**
1489
1591
  * Retrieves the details of an existing player. Supply the unique player ID from either a player creation request or the player list, and Openfort will return the corresponding player information.
@@ -1514,7 +1616,9 @@ const PlayersApiFactory = function (configuration, basePath, axios) {
1514
1616
  * @throws {RequiredError}
1515
1617
  */
1516
1618
  getPlayerInventory(id, chainId, project, options) {
1517
- return localVarFp.getPlayerInventory(id, chainId, project, options).then((request) => request(axios, basePath));
1619
+ return localVarFp
1620
+ .getPlayerInventory(id, chainId, project, options)
1621
+ .then((request) => request(axios, basePath));
1518
1622
  },
1519
1623
  /**
1520
1624
  * Returns a list of your players. The players are returned sorted by creation date, with the most recently created players appearing first.
@@ -1527,7 +1631,9 @@ const PlayersApiFactory = function (configuration, basePath, axios) {
1527
1631
  * @throws {RequiredError}
1528
1632
  */
1529
1633
  getPlayers(project, filter, order, skip, take, options) {
1530
- return localVarFp.getPlayers(project, filter, order, skip, take, options).then((request) => request(axios, basePath));
1634
+ return localVarFp
1635
+ .getPlayers(project, filter, order, skip, take, options)
1636
+ .then((request) => request(axios, basePath));
1531
1637
  },
1532
1638
  /**
1533
1639
  * Updates a player object.
@@ -1539,7 +1645,9 @@ const PlayersApiFactory = function (configuration, basePath, axios) {
1539
1645
  * @throws {RequiredError}
1540
1646
  */
1541
1647
  updatePlayer(id, name, description, project, options) {
1542
- return localVarFp.updatePlayer(id, name, description, project, options).then((request) => request(axios, basePath));
1648
+ return localVarFp
1649
+ .updatePlayer(id, name, description, project, options)
1650
+ .then((request) => request(axios, basePath));
1543
1651
  },
1544
1652
  };
1545
1653
  };
@@ -1561,7 +1669,9 @@ class PlayersApi extends base_1.BaseAPI {
1561
1669
  * @memberof PlayersApi
1562
1670
  */
1563
1671
  createPlayer(name, description, project, options) {
1564
- return (0, exports.PlayersApiFp)(this.configuration).createPlayer(name, description, project, options).then((request) => request(this.axios, this.basePath));
1672
+ return (0, exports.PlayersApiFp)(this.configuration)
1673
+ .createPlayer(name, description, project, options)
1674
+ .then((request) => request(this.axios, this.basePath));
1565
1675
  }
1566
1676
  /**
1567
1677
  * Updates an account object of an existing player.
@@ -1574,7 +1684,9 @@ class PlayersApi extends base_1.BaseAPI {
1574
1684
  * @memberof PlayersApi
1575
1685
  */
1576
1686
  createPlayerAccount(player, chainId, project, externalOwnerAddress, options) {
1577
- return (0, exports.PlayersApiFp)(this.configuration).createPlayerAccount(player, chainId, project, externalOwnerAddress, options).then((request) => request(this.axios, this.basePath));
1687
+ return (0, exports.PlayersApiFp)(this.configuration)
1688
+ .createPlayerAccount(player, chainId, project, externalOwnerAddress, options)
1689
+ .then((request) => request(this.axios, this.basePath));
1578
1690
  }
1579
1691
  /**
1580
1692
  * Returns a list of your accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
@@ -1591,7 +1703,9 @@ class PlayersApi extends base_1.BaseAPI {
1591
1703
  * @memberof PlayersApi
1592
1704
  */
1593
1705
  createPlayerSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options) {
1594
- return (0, exports.PlayersApiFp)(this.configuration).createPlayerSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options).then((request) => request(this.axios, this.basePath));
1706
+ return (0, exports.PlayersApiFp)(this.configuration)
1707
+ .createPlayerSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options)
1708
+ .then((request) => request(this.axios, this.basePath));
1595
1709
  }
1596
1710
  /**
1597
1711
  * Retrieves the details of an existing player. Supply the unique player ID from either a player creation request or the player list, and Openfort will return the corresponding player information.
@@ -1602,7 +1716,9 @@ class PlayersApi extends base_1.BaseAPI {
1602
1716
  * @memberof PlayersApi
1603
1717
  */
1604
1718
  getPlayer(id, project, options) {
1605
- return (0, exports.PlayersApiFp)(this.configuration).getPlayer(id, project, options).then((request) => request(this.axios, this.basePath));
1719
+ return (0, exports.PlayersApiFp)(this.configuration)
1720
+ .getPlayer(id, project, options)
1721
+ .then((request) => request(this.axios, this.basePath));
1606
1722
  }
1607
1723
  /**
1608
1724
  * Returns a list of your accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
@@ -1613,7 +1729,9 @@ class PlayersApi extends base_1.BaseAPI {
1613
1729
  * @memberof PlayersApi
1614
1730
  */
1615
1731
  getPlayerAccounts(player, project, options) {
1616
- return (0, exports.PlayersApiFp)(this.configuration).getPlayerAccounts(player, project, options).then((request) => request(this.axios, this.basePath));
1732
+ return (0, exports.PlayersApiFp)(this.configuration)
1733
+ .getPlayerAccounts(player, project, options)
1734
+ .then((request) => request(this.axios, this.basePath));
1617
1735
  }
1618
1736
  /**
1619
1737
  * Retrieves the inventory of an existing player. Supply the unique player ID from either a player creation request or the player list, and Openfort will return the corresponding player information.
@@ -1625,7 +1743,9 @@ class PlayersApi extends base_1.BaseAPI {
1625
1743
  * @memberof PlayersApi
1626
1744
  */
1627
1745
  getPlayerInventory(id, chainId, project, options) {
1628
- return (0, exports.PlayersApiFp)(this.configuration).getPlayerInventory(id, chainId, project, options).then((request) => request(this.axios, this.basePath));
1746
+ return (0, exports.PlayersApiFp)(this.configuration)
1747
+ .getPlayerInventory(id, chainId, project, options)
1748
+ .then((request) => request(this.axios, this.basePath));
1629
1749
  }
1630
1750
  /**
1631
1751
  * Returns a list of your players. The players are returned sorted by creation date, with the most recently created players appearing first.
@@ -1639,7 +1759,9 @@ class PlayersApi extends base_1.BaseAPI {
1639
1759
  * @memberof PlayersApi
1640
1760
  */
1641
1761
  getPlayers(project, filter, order, skip, take, options) {
1642
- return (0, exports.PlayersApiFp)(this.configuration).getPlayers(project, filter, order, skip, take, options).then((request) => request(this.axios, this.basePath));
1762
+ return (0, exports.PlayersApiFp)(this.configuration)
1763
+ .getPlayers(project, filter, order, skip, take, options)
1764
+ .then((request) => request(this.axios, this.basePath));
1643
1765
  }
1644
1766
  /**
1645
1767
  * Updates a player object.
@@ -1652,7 +1774,9 @@ class PlayersApi extends base_1.BaseAPI {
1652
1774
  * @memberof PlayersApi
1653
1775
  */
1654
1776
  updatePlayer(id, name, description, project, options) {
1655
- return (0, exports.PlayersApiFp)(this.configuration).updatePlayer(id, name, description, project, options).then((request) => request(this.axios, this.basePath));
1777
+ return (0, exports.PlayersApiFp)(this.configuration)
1778
+ .updatePlayer(id, name, description, project, options)
1779
+ .then((request) => request(this.axios, this.basePath));
1656
1780
  }
1657
1781
  }
1658
1782
  exports.PlayersApi = PlayersApi;
@@ -1673,9 +1797,9 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
1673
1797
  */
1674
1798
  createPolicy: async (name, chainId, strategy, project, options = {}) => {
1675
1799
  // verify required parameter 'name' is not null or undefined
1676
- (0, common_1.assertParamExists)('createPolicy', 'name', name);
1800
+ (0, common_1.assertParamExists)("createPolicy", "name", name);
1677
1801
  // verify required parameter 'chainId' is not null or undefined
1678
- (0, common_1.assertParamExists)('createPolicy', 'chainId', chainId);
1802
+ (0, common_1.assertParamExists)("createPolicy", "chainId", chainId);
1679
1803
  const localVarPath = `/v1/policies`;
1680
1804
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1681
1805
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1683,26 +1807,30 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
1683
1807
  if (configuration) {
1684
1808
  baseOptions = configuration.baseOptions;
1685
1809
  }
1686
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1810
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1687
1811
  const localVarHeaderParameter = {};
1688
1812
  const localVarQueryParameter = {};
1689
1813
  const localVarFormParams = new URLSearchParams();
1690
1814
  if (name !== undefined) {
1691
- localVarFormParams.set('name', name);
1815
+ localVarFormParams.set("name", name);
1692
1816
  }
1693
1817
  if (chainId !== undefined) {
1694
- localVarFormParams.set('chain_id', chainId);
1818
+ localVarFormParams.set("chain_id", chainId);
1695
1819
  }
1696
1820
  if (strategy !== undefined) {
1697
- localVarFormParams.set('strategy', strategy);
1821
+ localVarFormParams.set("strategy", strategy);
1698
1822
  }
1699
1823
  if (project !== undefined) {
1700
- localVarFormParams.set('project', project);
1824
+ localVarFormParams.set("project", project);
1701
1825
  }
1702
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
1826
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
1703
1827
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1704
1828
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1705
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1829
+ localVarRequestOptions.headers = {
1830
+ ...localVarHeaderParameter,
1831
+ ...headersFromBaseOptions,
1832
+ ...options.headers,
1833
+ };
1706
1834
  localVarRequestOptions.data = localVarFormParams.toString();
1707
1835
  return {
1708
1836
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -1721,37 +1849,40 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
1721
1849
  */
1722
1850
  createPolicyAllowFunction: async (policy, type, functionName, project, contract, options = {}) => {
1723
1851
  // verify required parameter 'policy' is not null or undefined
1724
- (0, common_1.assertParamExists)('createPolicyAllowFunction', 'policy', policy);
1852
+ (0, common_1.assertParamExists)("createPolicyAllowFunction", "policy", policy);
1725
1853
  // verify required parameter 'type' is not null or undefined
1726
- (0, common_1.assertParamExists)('createPolicyAllowFunction', 'type', type);
1727
- const localVarPath = `/v1/policies/{policy}/allow_functions`
1728
- .replace(`{${"policy"}}`, encodeURIComponent(String(policy)));
1854
+ (0, common_1.assertParamExists)("createPolicyAllowFunction", "type", type);
1855
+ const localVarPath = `/v1/policies/{policy}/allow_functions`.replace(`{${"policy"}}`, encodeURIComponent(String(policy)));
1729
1856
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1730
1857
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1731
1858
  let baseOptions;
1732
1859
  if (configuration) {
1733
1860
  baseOptions = configuration.baseOptions;
1734
1861
  }
1735
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1862
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1736
1863
  const localVarHeaderParameter = {};
1737
1864
  const localVarQueryParameter = {};
1738
1865
  const localVarFormParams = new URLSearchParams();
1739
1866
  if (type !== undefined) {
1740
- localVarFormParams.set('type', type);
1867
+ localVarFormParams.set("type", type);
1741
1868
  }
1742
1869
  if (functionName !== undefined) {
1743
- localVarFormParams.set('function_name', functionName);
1870
+ localVarFormParams.set("function_name", functionName);
1744
1871
  }
1745
1872
  if (project !== undefined) {
1746
- localVarFormParams.set('project', project);
1873
+ localVarFormParams.set("project", project);
1747
1874
  }
1748
1875
  if (contract !== undefined) {
1749
- localVarFormParams.set('contract', contract);
1876
+ localVarFormParams.set("contract", contract);
1750
1877
  }
1751
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
1878
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
1752
1879
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1753
1880
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1754
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1881
+ localVarRequestOptions.headers = {
1882
+ ...localVarHeaderParameter,
1883
+ ...headersFromBaseOptions,
1884
+ ...options.headers,
1885
+ };
1755
1886
  localVarRequestOptions.data = localVarFormParams.toString();
1756
1887
  return {
1757
1888
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -1772,15 +1903,19 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
1772
1903
  if (configuration) {
1773
1904
  baseOptions = configuration.baseOptions;
1774
1905
  }
1775
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1906
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1776
1907
  const localVarHeaderParameter = {};
1777
1908
  const localVarQueryParameter = {};
1778
1909
  if (project !== undefined) {
1779
- localVarQueryParameter['project'] = project;
1910
+ localVarQueryParameter["project"] = project;
1780
1911
  }
1781
1912
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1782
1913
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1783
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1914
+ localVarRequestOptions.headers = {
1915
+ ...localVarHeaderParameter,
1916
+ ...headersFromBaseOptions,
1917
+ ...options.headers,
1918
+ };
1784
1919
  return {
1785
1920
  url: (0, common_1.toPathString)(localVarUrlObj),
1786
1921
  options: localVarRequestOptions,
@@ -1795,24 +1930,27 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
1795
1930
  */
1796
1931
  getPolicy: async (id, project, options = {}) => {
1797
1932
  // verify required parameter 'id' is not null or undefined
1798
- (0, common_1.assertParamExists)('getPolicy', 'id', id);
1799
- const localVarPath = `/v1/policies/{id}`
1800
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1933
+ (0, common_1.assertParamExists)("getPolicy", "id", id);
1934
+ const localVarPath = `/v1/policies/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1801
1935
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1802
1936
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1803
1937
  let baseOptions;
1804
1938
  if (configuration) {
1805
1939
  baseOptions = configuration.baseOptions;
1806
1940
  }
1807
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1941
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1808
1942
  const localVarHeaderParameter = {};
1809
1943
  const localVarQueryParameter = {};
1810
1944
  if (project !== undefined) {
1811
- localVarQueryParameter['project'] = project;
1945
+ localVarQueryParameter["project"] = project;
1812
1946
  }
1813
1947
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1814
1948
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1815
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1949
+ localVarRequestOptions.headers = {
1950
+ ...localVarHeaderParameter,
1951
+ ...headersFromBaseOptions,
1952
+ ...options.headers,
1953
+ };
1816
1954
  return {
1817
1955
  url: (0, common_1.toPathString)(localVarUrlObj),
1818
1956
  options: localVarRequestOptions,
@@ -1827,24 +1965,27 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
1827
1965
  */
1828
1966
  getPolicyAllowFunctions: async (policy, project, options = {}) => {
1829
1967
  // verify required parameter 'policy' is not null or undefined
1830
- (0, common_1.assertParamExists)('getPolicyAllowFunctions', 'policy', policy);
1831
- const localVarPath = `/v1/policies/{policy}/allow_functions`
1832
- .replace(`{${"policy"}}`, encodeURIComponent(String(policy)));
1968
+ (0, common_1.assertParamExists)("getPolicyAllowFunctions", "policy", policy);
1969
+ const localVarPath = `/v1/policies/{policy}/allow_functions`.replace(`{${"policy"}}`, encodeURIComponent(String(policy)));
1833
1970
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1834
1971
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1835
1972
  let baseOptions;
1836
1973
  if (configuration) {
1837
1974
  baseOptions = configuration.baseOptions;
1838
1975
  }
1839
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1976
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1840
1977
  const localVarHeaderParameter = {};
1841
1978
  const localVarQueryParameter = {};
1842
1979
  if (project !== undefined) {
1843
- localVarQueryParameter['project'] = project;
1980
+ localVarQueryParameter["project"] = project;
1844
1981
  }
1845
1982
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1846
1983
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1847
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1984
+ localVarRequestOptions.headers = {
1985
+ ...localVarHeaderParameter,
1986
+ ...headersFromBaseOptions,
1987
+ ...options.headers,
1988
+ };
1848
1989
  return {
1849
1990
  url: (0, common_1.toPathString)(localVarUrlObj),
1850
1991
  options: localVarRequestOptions,
@@ -1860,27 +2001,30 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
1860
2001
  */
1861
2002
  getPolicyDailyGasUsage: async (policy, from, to, options = {}) => {
1862
2003
  // verify required parameter 'policy' is not null or undefined
1863
- (0, common_1.assertParamExists)('getPolicyDailyGasUsage', 'policy', policy);
1864
- const localVarPath = `/v1/policies/{policy}/daily_gas_usage`
1865
- .replace(`{${"policy"}}`, encodeURIComponent(String(policy)));
2004
+ (0, common_1.assertParamExists)("getPolicyDailyGasUsage", "policy", policy);
2005
+ const localVarPath = `/v1/policies/{policy}/daily_gas_usage`.replace(`{${"policy"}}`, encodeURIComponent(String(policy)));
1866
2006
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1867
2007
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1868
2008
  let baseOptions;
1869
2009
  if (configuration) {
1870
2010
  baseOptions = configuration.baseOptions;
1871
2011
  }
1872
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2012
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1873
2013
  const localVarHeaderParameter = {};
1874
2014
  const localVarQueryParameter = {};
1875
2015
  if (from !== undefined) {
1876
- localVarQueryParameter['from'] = from;
2016
+ localVarQueryParameter["from"] = from;
1877
2017
  }
1878
2018
  if (to !== undefined) {
1879
- localVarQueryParameter['to'] = to;
2019
+ localVarQueryParameter["to"] = to;
1880
2020
  }
1881
2021
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1882
2022
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1883
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2023
+ localVarRequestOptions.headers = {
2024
+ ...localVarHeaderParameter,
2025
+ ...headersFromBaseOptions,
2026
+ ...options.headers,
2027
+ };
1884
2028
  return {
1885
2029
  url: (0, common_1.toPathString)(localVarUrlObj),
1886
2030
  options: localVarRequestOptions,
@@ -1896,27 +2040,30 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
1896
2040
  */
1897
2041
  getPolicyTotalGasUsage: async (policy, from, to, options = {}) => {
1898
2042
  // verify required parameter 'policy' is not null or undefined
1899
- (0, common_1.assertParamExists)('getPolicyTotalGasUsage', 'policy', policy);
1900
- const localVarPath = `/v1/policies/{policy}/gas_usage`
1901
- .replace(`{${"policy"}}`, encodeURIComponent(String(policy)));
2043
+ (0, common_1.assertParamExists)("getPolicyTotalGasUsage", "policy", policy);
2044
+ const localVarPath = `/v1/policies/{policy}/gas_usage`.replace(`{${"policy"}}`, encodeURIComponent(String(policy)));
1902
2045
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1903
2046
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1904
2047
  let baseOptions;
1905
2048
  if (configuration) {
1906
2049
  baseOptions = configuration.baseOptions;
1907
2050
  }
1908
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2051
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1909
2052
  const localVarHeaderParameter = {};
1910
2053
  const localVarQueryParameter = {};
1911
2054
  if (from !== undefined) {
1912
- localVarQueryParameter['from'] = from;
2055
+ localVarQueryParameter["from"] = from;
1913
2056
  }
1914
2057
  if (to !== undefined) {
1915
- localVarQueryParameter['to'] = to;
2058
+ localVarQueryParameter["to"] = to;
1916
2059
  }
1917
2060
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1918
2061
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1919
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2062
+ localVarRequestOptions.headers = {
2063
+ ...localVarHeaderParameter,
2064
+ ...headersFromBaseOptions,
2065
+ ...options.headers,
2066
+ };
1920
2067
  return {
1921
2068
  url: (0, common_1.toPathString)(localVarUrlObj),
1922
2069
  options: localVarRequestOptions,
@@ -1934,35 +2081,38 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
1934
2081
  */
1935
2082
  updatePolicy: async (id, name, chainId, strategy, project, options = {}) => {
1936
2083
  // verify required parameter 'id' is not null or undefined
1937
- (0, common_1.assertParamExists)('updatePolicy', 'id', id);
1938
- const localVarPath = `/v1/policies/{id}`
1939
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2084
+ (0, common_1.assertParamExists)("updatePolicy", "id", id);
2085
+ const localVarPath = `/v1/policies/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1940
2086
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1941
2087
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1942
2088
  let baseOptions;
1943
2089
  if (configuration) {
1944
2090
  baseOptions = configuration.baseOptions;
1945
2091
  }
1946
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2092
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1947
2093
  const localVarHeaderParameter = {};
1948
2094
  const localVarQueryParameter = {};
1949
2095
  const localVarFormParams = new URLSearchParams();
1950
2096
  if (name !== undefined) {
1951
- localVarFormParams.set('name', name);
2097
+ localVarFormParams.set("name", name);
1952
2098
  }
1953
2099
  if (chainId !== undefined) {
1954
- localVarFormParams.set('chain_id', chainId);
2100
+ localVarFormParams.set("chain_id", chainId);
1955
2101
  }
1956
2102
  if (strategy !== undefined) {
1957
- localVarFormParams.set('strategy', strategy);
2103
+ localVarFormParams.set("strategy", strategy);
1958
2104
  }
1959
2105
  if (project !== undefined) {
1960
- localVarFormParams.set('project', project);
2106
+ localVarFormParams.set("project", project);
1961
2107
  }
1962
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
2108
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
1963
2109
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1964
2110
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1965
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2111
+ localVarRequestOptions.headers = {
2112
+ ...localVarHeaderParameter,
2113
+ ...headersFromBaseOptions,
2114
+ ...options.headers,
2115
+ };
1966
2116
  localVarRequestOptions.data = localVarFormParams.toString();
1967
2117
  return {
1968
2118
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -1983,9 +2133,9 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
1983
2133
  */
1984
2134
  updatePolicyAllowFunction: async (policy, id, type, functionName, policy2, project, contract, options = {}) => {
1985
2135
  // verify required parameter 'policy' is not null or undefined
1986
- (0, common_1.assertParamExists)('updatePolicyAllowFunction', 'policy', policy);
2136
+ (0, common_1.assertParamExists)("updatePolicyAllowFunction", "policy", policy);
1987
2137
  // verify required parameter 'id' is not null or undefined
1988
- (0, common_1.assertParamExists)('updatePolicyAllowFunction', 'id', id);
2138
+ (0, common_1.assertParamExists)("updatePolicyAllowFunction", "id", id);
1989
2139
  const localVarPath = `/v1/policies/{policy}/allow_functions/{id}`
1990
2140
  .replace(`{${"policy"}}`, encodeURIComponent(String(policy)))
1991
2141
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
@@ -1995,29 +2145,33 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
1995
2145
  if (configuration) {
1996
2146
  baseOptions = configuration.baseOptions;
1997
2147
  }
1998
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2148
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1999
2149
  const localVarHeaderParameter = {};
2000
2150
  const localVarQueryParameter = {};
2001
2151
  const localVarFormParams = new URLSearchParams();
2002
2152
  if (type !== undefined) {
2003
- localVarFormParams.set('type', type);
2153
+ localVarFormParams.set("type", type);
2004
2154
  }
2005
2155
  if (functionName !== undefined) {
2006
- localVarFormParams.set('function_name', functionName);
2156
+ localVarFormParams.set("function_name", functionName);
2007
2157
  }
2008
2158
  if (policy2 !== undefined) {
2009
- localVarFormParams.set('policy', policy2);
2159
+ localVarFormParams.set("policy", policy2);
2010
2160
  }
2011
2161
  if (project !== undefined) {
2012
- localVarFormParams.set('project', project);
2162
+ localVarFormParams.set("project", project);
2013
2163
  }
2014
2164
  if (contract !== undefined) {
2015
- localVarFormParams.set('contract', contract);
2165
+ localVarFormParams.set("contract", contract);
2016
2166
  }
2017
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
2167
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
2018
2168
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2019
2169
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2020
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2170
+ localVarRequestOptions.headers = {
2171
+ ...localVarHeaderParameter,
2172
+ ...headersFromBaseOptions,
2173
+ ...options.headers,
2174
+ };
2021
2175
  localVarRequestOptions.data = localVarFormParams.toString();
2022
2176
  return {
2023
2177
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -2167,7 +2321,9 @@ const PoliciesApiFactory = function (configuration, basePath, axios) {
2167
2321
  * @throws {RequiredError}
2168
2322
  */
2169
2323
  createPolicy(name, chainId, strategy, project, options) {
2170
- return localVarFp.createPolicy(name, chainId, strategy, project, options).then((request) => request(axios, basePath));
2324
+ return localVarFp
2325
+ .createPolicy(name, chainId, strategy, project, options)
2326
+ .then((request) => request(axios, basePath));
2171
2327
  },
2172
2328
  /**
2173
2329
  *
@@ -2180,7 +2336,9 @@ const PoliciesApiFactory = function (configuration, basePath, axios) {
2180
2336
  * @throws {RequiredError}
2181
2337
  */
2182
2338
  createPolicyAllowFunction(policy, type, functionName, project, contract, options) {
2183
- return localVarFp.createPolicyAllowFunction(policy, type, functionName, project, contract, options).then((request) => request(axios, basePath));
2339
+ return localVarFp
2340
+ .createPolicyAllowFunction(policy, type, functionName, project, contract, options)
2341
+ .then((request) => request(axios, basePath));
2184
2342
  },
2185
2343
  /**
2186
2344
  *
@@ -2209,7 +2367,9 @@ const PoliciesApiFactory = function (configuration, basePath, axios) {
2209
2367
  * @throws {RequiredError}
2210
2368
  */
2211
2369
  getPolicyAllowFunctions(policy, project, options) {
2212
- return localVarFp.getPolicyAllowFunctions(policy, project, options).then((request) => request(axios, basePath));
2370
+ return localVarFp
2371
+ .getPolicyAllowFunctions(policy, project, options)
2372
+ .then((request) => request(axios, basePath));
2213
2373
  },
2214
2374
  /**
2215
2375
  *
@@ -2220,7 +2380,9 @@ const PoliciesApiFactory = function (configuration, basePath, axios) {
2220
2380
  * @throws {RequiredError}
2221
2381
  */
2222
2382
  getPolicyDailyGasUsage(policy, from, to, options) {
2223
- return localVarFp.getPolicyDailyGasUsage(policy, from, to, options).then((request) => request(axios, basePath));
2383
+ return localVarFp
2384
+ .getPolicyDailyGasUsage(policy, from, to, options)
2385
+ .then((request) => request(axios, basePath));
2224
2386
  },
2225
2387
  /**
2226
2388
  *
@@ -2231,7 +2393,9 @@ const PoliciesApiFactory = function (configuration, basePath, axios) {
2231
2393
  * @throws {RequiredError}
2232
2394
  */
2233
2395
  getPolicyTotalGasUsage(policy, from, to, options) {
2234
- return localVarFp.getPolicyTotalGasUsage(policy, from, to, options).then((request) => request(axios, basePath));
2396
+ return localVarFp
2397
+ .getPolicyTotalGasUsage(policy, from, to, options)
2398
+ .then((request) => request(axios, basePath));
2235
2399
  },
2236
2400
  /**
2237
2401
  * Updates a policy object.
@@ -2244,7 +2408,9 @@ const PoliciesApiFactory = function (configuration, basePath, axios) {
2244
2408
  * @throws {RequiredError}
2245
2409
  */
2246
2410
  updatePolicy(id, name, chainId, strategy, project, options) {
2247
- return localVarFp.updatePolicy(id, name, chainId, strategy, project, options).then((request) => request(axios, basePath));
2411
+ return localVarFp
2412
+ .updatePolicy(id, name, chainId, strategy, project, options)
2413
+ .then((request) => request(axios, basePath));
2248
2414
  },
2249
2415
  /**
2250
2416
  *
@@ -2259,7 +2425,9 @@ const PoliciesApiFactory = function (configuration, basePath, axios) {
2259
2425
  * @throws {RequiredError}
2260
2426
  */
2261
2427
  updatePolicyAllowFunction(policy, id, type, functionName, policy2, project, contract, options) {
2262
- return localVarFp.updatePolicyAllowFunction(policy, id, type, functionName, policy2, project, contract, options).then((request) => request(axios, basePath));
2428
+ return localVarFp
2429
+ .updatePolicyAllowFunction(policy, id, type, functionName, policy2, project, contract, options)
2430
+ .then((request) => request(axios, basePath));
2263
2431
  },
2264
2432
  };
2265
2433
  };
@@ -2282,7 +2450,9 @@ class PoliciesApi extends base_1.BaseAPI {
2282
2450
  * @memberof PoliciesApi
2283
2451
  */
2284
2452
  createPolicy(name, chainId, strategy, project, options) {
2285
- return (0, exports.PoliciesApiFp)(this.configuration).createPolicy(name, chainId, strategy, project, options).then((request) => request(this.axios, this.basePath));
2453
+ return (0, exports.PoliciesApiFp)(this.configuration)
2454
+ .createPolicy(name, chainId, strategy, project, options)
2455
+ .then((request) => request(this.axios, this.basePath));
2286
2456
  }
2287
2457
  /**
2288
2458
  *
@@ -2296,7 +2466,9 @@ class PoliciesApi extends base_1.BaseAPI {
2296
2466
  * @memberof PoliciesApi
2297
2467
  */
2298
2468
  createPolicyAllowFunction(policy, type, functionName, project, contract, options) {
2299
- return (0, exports.PoliciesApiFp)(this.configuration).createPolicyAllowFunction(policy, type, functionName, project, contract, options).then((request) => request(this.axios, this.basePath));
2469
+ return (0, exports.PoliciesApiFp)(this.configuration)
2470
+ .createPolicyAllowFunction(policy, type, functionName, project, contract, options)
2471
+ .then((request) => request(this.axios, this.basePath));
2300
2472
  }
2301
2473
  /**
2302
2474
  *
@@ -2306,7 +2478,9 @@ class PoliciesApi extends base_1.BaseAPI {
2306
2478
  * @memberof PoliciesApi
2307
2479
  */
2308
2480
  getPolicies(project, options) {
2309
- return (0, exports.PoliciesApiFp)(this.configuration).getPolicies(project, options).then((request) => request(this.axios, this.basePath));
2481
+ return (0, exports.PoliciesApiFp)(this.configuration)
2482
+ .getPolicies(project, options)
2483
+ .then((request) => request(this.axios, this.basePath));
2310
2484
  }
2311
2485
  /**
2312
2486
  *
@@ -2317,7 +2491,9 @@ class PoliciesApi extends base_1.BaseAPI {
2317
2491
  * @memberof PoliciesApi
2318
2492
  */
2319
2493
  getPolicy(id, project, options) {
2320
- return (0, exports.PoliciesApiFp)(this.configuration).getPolicy(id, project, options).then((request) => request(this.axios, this.basePath));
2494
+ return (0, exports.PoliciesApiFp)(this.configuration)
2495
+ .getPolicy(id, project, options)
2496
+ .then((request) => request(this.axios, this.basePath));
2321
2497
  }
2322
2498
  /**
2323
2499
  *
@@ -2328,7 +2504,9 @@ class PoliciesApi extends base_1.BaseAPI {
2328
2504
  * @memberof PoliciesApi
2329
2505
  */
2330
2506
  getPolicyAllowFunctions(policy, project, options) {
2331
- return (0, exports.PoliciesApiFp)(this.configuration).getPolicyAllowFunctions(policy, project, options).then((request) => request(this.axios, this.basePath));
2507
+ return (0, exports.PoliciesApiFp)(this.configuration)
2508
+ .getPolicyAllowFunctions(policy, project, options)
2509
+ .then((request) => request(this.axios, this.basePath));
2332
2510
  }
2333
2511
  /**
2334
2512
  *
@@ -2340,7 +2518,9 @@ class PoliciesApi extends base_1.BaseAPI {
2340
2518
  * @memberof PoliciesApi
2341
2519
  */
2342
2520
  getPolicyDailyGasUsage(policy, from, to, options) {
2343
- return (0, exports.PoliciesApiFp)(this.configuration).getPolicyDailyGasUsage(policy, from, to, options).then((request) => request(this.axios, this.basePath));
2521
+ return (0, exports.PoliciesApiFp)(this.configuration)
2522
+ .getPolicyDailyGasUsage(policy, from, to, options)
2523
+ .then((request) => request(this.axios, this.basePath));
2344
2524
  }
2345
2525
  /**
2346
2526
  *
@@ -2352,7 +2532,9 @@ class PoliciesApi extends base_1.BaseAPI {
2352
2532
  * @memberof PoliciesApi
2353
2533
  */
2354
2534
  getPolicyTotalGasUsage(policy, from, to, options) {
2355
- return (0, exports.PoliciesApiFp)(this.configuration).getPolicyTotalGasUsage(policy, from, to, options).then((request) => request(this.axios, this.basePath));
2535
+ return (0, exports.PoliciesApiFp)(this.configuration)
2536
+ .getPolicyTotalGasUsage(policy, from, to, options)
2537
+ .then((request) => request(this.axios, this.basePath));
2356
2538
  }
2357
2539
  /**
2358
2540
  * Updates a policy object.
@@ -2366,7 +2548,9 @@ class PoliciesApi extends base_1.BaseAPI {
2366
2548
  * @memberof PoliciesApi
2367
2549
  */
2368
2550
  updatePolicy(id, name, chainId, strategy, project, options) {
2369
- return (0, exports.PoliciesApiFp)(this.configuration).updatePolicy(id, name, chainId, strategy, project, options).then((request) => request(this.axios, this.basePath));
2551
+ return (0, exports.PoliciesApiFp)(this.configuration)
2552
+ .updatePolicy(id, name, chainId, strategy, project, options)
2553
+ .then((request) => request(this.axios, this.basePath));
2370
2554
  }
2371
2555
  /**
2372
2556
  *
@@ -2382,7 +2566,9 @@ class PoliciesApi extends base_1.BaseAPI {
2382
2566
  * @memberof PoliciesApi
2383
2567
  */
2384
2568
  updatePolicyAllowFunction(policy, id, type, functionName, policy2, project, contract, options) {
2385
- return (0, exports.PoliciesApiFp)(this.configuration).updatePolicyAllowFunction(policy, id, type, functionName, policy2, project, contract, options).then((request) => request(this.axios, this.basePath));
2569
+ return (0, exports.PoliciesApiFp)(this.configuration)
2570
+ .updatePolicyAllowFunction(policy, id, type, functionName, policy2, project, contract, options)
2571
+ .then((request) => request(this.axios, this.basePath));
2386
2572
  }
2387
2573
  }
2388
2574
  exports.PoliciesApi = PoliciesApi;
@@ -2402,7 +2588,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
2402
2588
  */
2403
2589
  createProject: async (name, livemode, project, options = {}) => {
2404
2590
  // verify required parameter 'name' is not null or undefined
2405
- (0, common_1.assertParamExists)('createProject', 'name', name);
2591
+ (0, common_1.assertParamExists)("createProject", "name", name);
2406
2592
  const localVarPath = `/v1/projects`;
2407
2593
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2408
2594
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2410,23 +2596,27 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
2410
2596
  if (configuration) {
2411
2597
  baseOptions = configuration.baseOptions;
2412
2598
  }
2413
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2599
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2414
2600
  const localVarHeaderParameter = {};
2415
2601
  const localVarQueryParameter = {};
2416
2602
  const localVarFormParams = new URLSearchParams();
2417
2603
  if (name !== undefined) {
2418
- localVarFormParams.set('name', name);
2604
+ localVarFormParams.set("name", name);
2419
2605
  }
2420
2606
  if (livemode !== undefined) {
2421
- localVarFormParams.set('livemode', livemode);
2607
+ localVarFormParams.set("livemode", livemode);
2422
2608
  }
2423
2609
  if (project !== undefined) {
2424
- localVarFormParams.set('project', project);
2610
+ localVarFormParams.set("project", project);
2425
2611
  }
2426
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
2612
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
2427
2613
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2428
2614
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2429
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2615
+ localVarRequestOptions.headers = {
2616
+ ...localVarHeaderParameter,
2617
+ ...headersFromBaseOptions,
2618
+ ...options.headers,
2619
+ };
2430
2620
  localVarRequestOptions.data = localVarFormParams.toString();
2431
2621
  return {
2432
2622
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -2446,7 +2636,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
2446
2636
  if (configuration) {
2447
2637
  baseOptions = configuration.baseOptions;
2448
2638
  }
2449
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2639
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2450
2640
  const localVarHeaderParameter = {};
2451
2641
  const localVarQueryParameter = {};
2452
2642
  // authentication pk required
@@ -2454,7 +2644,11 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
2454
2644
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2455
2645
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2456
2646
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2457
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2647
+ localVarRequestOptions.headers = {
2648
+ ...localVarHeaderParameter,
2649
+ ...headersFromBaseOptions,
2650
+ ...options.headers,
2651
+ };
2458
2652
  return {
2459
2653
  url: (0, common_1.toPathString)(localVarUrlObj),
2460
2654
  options: localVarRequestOptions,
@@ -2468,21 +2662,24 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
2468
2662
  */
2469
2663
  getProject: async (id, options = {}) => {
2470
2664
  // verify required parameter 'id' is not null or undefined
2471
- (0, common_1.assertParamExists)('getProject', 'id', id);
2472
- const localVarPath = `/v1/projects/{id}`
2473
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2665
+ (0, common_1.assertParamExists)("getProject", "id", id);
2666
+ const localVarPath = `/v1/projects/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
2474
2667
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2475
2668
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2476
2669
  let baseOptions;
2477
2670
  if (configuration) {
2478
2671
  baseOptions = configuration.baseOptions;
2479
2672
  }
2480
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2673
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2481
2674
  const localVarHeaderParameter = {};
2482
2675
  const localVarQueryParameter = {};
2483
2676
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2484
2677
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2485
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2678
+ localVarRequestOptions.headers = {
2679
+ ...localVarHeaderParameter,
2680
+ ...headersFromBaseOptions,
2681
+ ...options.headers,
2682
+ };
2486
2683
  return {
2487
2684
  url: (0, common_1.toPathString)(localVarUrlObj),
2488
2685
  options: localVarRequestOptions,
@@ -2502,15 +2699,19 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
2502
2699
  if (configuration) {
2503
2700
  baseOptions = configuration.baseOptions;
2504
2701
  }
2505
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2702
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2506
2703
  const localVarHeaderParameter = {};
2507
2704
  const localVarQueryParameter = {};
2508
2705
  if (project !== undefined) {
2509
- localVarQueryParameter['project'] = project;
2706
+ localVarQueryParameter["project"] = project;
2510
2707
  }
2511
2708
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2512
2709
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2513
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2710
+ localVarRequestOptions.headers = {
2711
+ ...localVarHeaderParameter,
2712
+ ...headersFromBaseOptions,
2713
+ ...options.headers,
2714
+ };
2514
2715
  return {
2515
2716
  url: (0, common_1.toPathString)(localVarUrlObj),
2516
2717
  options: localVarRequestOptions,
@@ -2527,34 +2728,37 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
2527
2728
  */
2528
2729
  updateProject: async (id, name, livemode, project, options = {}) => {
2529
2730
  // verify required parameter 'id' is not null or undefined
2530
- (0, common_1.assertParamExists)('updateProject', 'id', id);
2731
+ (0, common_1.assertParamExists)("updateProject", "id", id);
2531
2732
  // verify required parameter 'name' is not null or undefined
2532
- (0, common_1.assertParamExists)('updateProject', 'name', name);
2533
- const localVarPath = `/v1/projects/{id}`
2534
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2733
+ (0, common_1.assertParamExists)("updateProject", "name", name);
2734
+ const localVarPath = `/v1/projects/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
2535
2735
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2536
2736
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2537
2737
  let baseOptions;
2538
2738
  if (configuration) {
2539
2739
  baseOptions = configuration.baseOptions;
2540
2740
  }
2541
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2741
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2542
2742
  const localVarHeaderParameter = {};
2543
2743
  const localVarQueryParameter = {};
2544
2744
  const localVarFormParams = new URLSearchParams();
2545
2745
  if (name !== undefined) {
2546
- localVarFormParams.set('name', name);
2746
+ localVarFormParams.set("name", name);
2547
2747
  }
2548
2748
  if (livemode !== undefined) {
2549
- localVarFormParams.set('livemode', livemode);
2749
+ localVarFormParams.set("livemode", livemode);
2550
2750
  }
2551
2751
  if (project !== undefined) {
2552
- localVarFormParams.set('project', project);
2752
+ localVarFormParams.set("project", project);
2553
2753
  }
2554
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
2754
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
2555
2755
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2556
2756
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2557
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2757
+ localVarRequestOptions.headers = {
2758
+ ...localVarHeaderParameter,
2759
+ ...headersFromBaseOptions,
2760
+ ...options.headers,
2761
+ };
2558
2762
  localVarRequestOptions.data = localVarFormParams.toString();
2559
2763
  return {
2560
2764
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -2644,7 +2848,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
2644
2848
  * @throws {RequiredError}
2645
2849
  */
2646
2850
  createProject(name, livemode, project, options) {
2647
- return localVarFp.createProject(name, livemode, project, options).then((request) => request(axios, basePath));
2851
+ return localVarFp
2852
+ .createProject(name, livemode, project, options)
2853
+ .then((request) => request(axios, basePath));
2648
2854
  },
2649
2855
  /**
2650
2856
  *
@@ -2682,7 +2888,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
2682
2888
  * @throws {RequiredError}
2683
2889
  */
2684
2890
  updateProject(id, name, livemode, project, options) {
2685
- return localVarFp.updateProject(id, name, livemode, project, options).then((request) => request(axios, basePath));
2891
+ return localVarFp
2892
+ .updateProject(id, name, livemode, project, options)
2893
+ .then((request) => request(axios, basePath));
2686
2894
  },
2687
2895
  };
2688
2896
  };
@@ -2704,7 +2912,9 @@ class ProjectsApi extends base_1.BaseAPI {
2704
2912
  * @memberof ProjectsApi
2705
2913
  */
2706
2914
  createProject(name, livemode, project, options) {
2707
- return (0, exports.ProjectsApiFp)(this.configuration).createProject(name, livemode, project, options).then((request) => request(this.axios, this.basePath));
2915
+ return (0, exports.ProjectsApiFp)(this.configuration)
2916
+ .createProject(name, livemode, project, options)
2917
+ .then((request) => request(this.axios, this.basePath));
2708
2918
  }
2709
2919
  /**
2710
2920
  *
@@ -2713,7 +2923,9 @@ class ProjectsApi extends base_1.BaseAPI {
2713
2923
  * @memberof ProjectsApi
2714
2924
  */
2715
2925
  get(options) {
2716
- return (0, exports.ProjectsApiFp)(this.configuration).get(options).then((request) => request(this.axios, this.basePath));
2926
+ return (0, exports.ProjectsApiFp)(this.configuration)
2927
+ .get(options)
2928
+ .then((request) => request(this.axios, this.basePath));
2717
2929
  }
2718
2930
  /**
2719
2931
  *
@@ -2723,7 +2935,9 @@ class ProjectsApi extends base_1.BaseAPI {
2723
2935
  * @memberof ProjectsApi
2724
2936
  */
2725
2937
  getProject(id, options) {
2726
- return (0, exports.ProjectsApiFp)(this.configuration).getProject(id, options).then((request) => request(this.axios, this.basePath));
2938
+ return (0, exports.ProjectsApiFp)(this.configuration)
2939
+ .getProject(id, options)
2940
+ .then((request) => request(this.axios, this.basePath));
2727
2941
  }
2728
2942
  /**
2729
2943
  *
@@ -2733,7 +2947,9 @@ class ProjectsApi extends base_1.BaseAPI {
2733
2947
  * @memberof ProjectsApi
2734
2948
  */
2735
2949
  getProjects(project, options) {
2736
- return (0, exports.ProjectsApiFp)(this.configuration).getProjects(project, options).then((request) => request(this.axios, this.basePath));
2950
+ return (0, exports.ProjectsApiFp)(this.configuration)
2951
+ .getProjects(project, options)
2952
+ .then((request) => request(this.axios, this.basePath));
2737
2953
  }
2738
2954
  /**
2739
2955
  * Updates a project object.
@@ -2746,7 +2962,9 @@ class ProjectsApi extends base_1.BaseAPI {
2746
2962
  * @memberof ProjectsApi
2747
2963
  */
2748
2964
  updateProject(id, name, livemode, project, options) {
2749
- return (0, exports.ProjectsApiFp)(this.configuration).updateProject(id, name, livemode, project, options).then((request) => request(this.axios, this.basePath));
2965
+ return (0, exports.ProjectsApiFp)(this.configuration)
2966
+ .updateProject(id, name, livemode, project, options)
2967
+ .then((request) => request(this.axios, this.basePath));
2750
2968
  }
2751
2969
  }
2752
2970
  exports.ProjectsApi = ProjectsApi;
@@ -2771,15 +2989,15 @@ const SessionsApiAxiosParamCreator = function (configuration) {
2771
2989
  */
2772
2990
  createSession: async (player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options = {}) => {
2773
2991
  // verify required parameter 'player' is not null or undefined
2774
- (0, common_1.assertParamExists)('createSession', 'player', player);
2992
+ (0, common_1.assertParamExists)("createSession", "player", player);
2775
2993
  // verify required parameter 'address' is not null or undefined
2776
- (0, common_1.assertParamExists)('createSession', 'address', address);
2994
+ (0, common_1.assertParamExists)("createSession", "address", address);
2777
2995
  // verify required parameter 'chainId' is not null or undefined
2778
- (0, common_1.assertParamExists)('createSession', 'chainId', chainId);
2996
+ (0, common_1.assertParamExists)("createSession", "chainId", chainId);
2779
2997
  // verify required parameter 'validUntil' is not null or undefined
2780
- (0, common_1.assertParamExists)('createSession', 'validUntil', validUntil);
2998
+ (0, common_1.assertParamExists)("createSession", "validUntil", validUntil);
2781
2999
  // verify required parameter 'validAfter' is not null or undefined
2782
- (0, common_1.assertParamExists)('createSession', 'validAfter', validAfter);
3000
+ (0, common_1.assertParamExists)("createSession", "validAfter", validAfter);
2783
3001
  const localVarPath = `/v1/sessions`;
2784
3002
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2785
3003
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2787,38 +3005,42 @@ const SessionsApiAxiosParamCreator = function (configuration) {
2787
3005
  if (configuration) {
2788
3006
  baseOptions = configuration.baseOptions;
2789
3007
  }
2790
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3008
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2791
3009
  const localVarHeaderParameter = {};
2792
3010
  const localVarQueryParameter = {};
2793
3011
  const localVarFormParams = new URLSearchParams();
2794
3012
  if (player !== undefined) {
2795
- localVarFormParams.set('player', player);
3013
+ localVarFormParams.set("player", player);
2796
3014
  }
2797
3015
  if (policy !== undefined) {
2798
- localVarFormParams.set('policy', policy);
3016
+ localVarFormParams.set("policy", policy);
2799
3017
  }
2800
3018
  if (address !== undefined) {
2801
- localVarFormParams.set('address', address);
3019
+ localVarFormParams.set("address", address);
2802
3020
  }
2803
3021
  if (chainId !== undefined) {
2804
- localVarFormParams.set('chain_id', chainId);
3022
+ localVarFormParams.set("chain_id", chainId);
2805
3023
  }
2806
3024
  if (validUntil !== undefined) {
2807
- localVarFormParams.set('valid_until', validUntil);
3025
+ localVarFormParams.set("valid_until", validUntil);
2808
3026
  }
2809
3027
  if (validAfter !== undefined) {
2810
- localVarFormParams.set('valid_after', validAfter);
3028
+ localVarFormParams.set("valid_after", validAfter);
2811
3029
  }
2812
3030
  if (whitelist) {
2813
- localVarFormParams.set('whitelist', whitelist.join(base_1.COLLECTION_FORMATS.csv));
3031
+ localVarFormParams.set("whitelist", whitelist.join(base_1.COLLECTION_FORMATS.csv));
2814
3032
  }
2815
3033
  if (limit !== undefined) {
2816
- localVarFormParams.set('limit', limit);
3034
+ localVarFormParams.set("limit", limit);
2817
3035
  }
2818
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
3036
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
2819
3037
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2820
3038
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2821
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3039
+ localVarRequestOptions.headers = {
3040
+ ...localVarHeaderParameter,
3041
+ ...headersFromBaseOptions,
3042
+ ...options.headers,
3043
+ };
2822
3044
  localVarRequestOptions.data = localVarFormParams.toString();
2823
3045
  return {
2824
3046
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -2834,18 +3056,17 @@ const SessionsApiAxiosParamCreator = function (configuration) {
2834
3056
  */
2835
3057
  signatureSession: async (session, signature, options = {}) => {
2836
3058
  // verify required parameter 'session' is not null or undefined
2837
- (0, common_1.assertParamExists)('signatureSession', 'session', session);
3059
+ (0, common_1.assertParamExists)("signatureSession", "session", session);
2838
3060
  // verify required parameter 'signature' is not null or undefined
2839
- (0, common_1.assertParamExists)('signatureSession', 'signature', signature);
2840
- const localVarPath = `/v1/sessions/{session}/signature`
2841
- .replace(`{${"session"}}`, encodeURIComponent(String(session)));
3061
+ (0, common_1.assertParamExists)("signatureSession", "signature", signature);
3062
+ const localVarPath = `/v1/sessions/{session}/signature`.replace(`{${"session"}}`, encodeURIComponent(String(session)));
2842
3063
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2843
3064
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2844
3065
  let baseOptions;
2845
3066
  if (configuration) {
2846
3067
  baseOptions = configuration.baseOptions;
2847
3068
  }
2848
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3069
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2849
3070
  const localVarHeaderParameter = {};
2850
3071
  const localVarQueryParameter = {};
2851
3072
  const localVarFormParams = new URLSearchParams();
@@ -2853,12 +3074,16 @@ const SessionsApiAxiosParamCreator = function (configuration) {
2853
3074
  // http bearer authentication required
2854
3075
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2855
3076
  if (signature !== undefined) {
2856
- localVarFormParams.set('signature', signature);
3077
+ localVarFormParams.set("signature", signature);
2857
3078
  }
2858
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
3079
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
2859
3080
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2860
3081
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2861
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3082
+ localVarRequestOptions.headers = {
3083
+ ...localVarHeaderParameter,
3084
+ ...headersFromBaseOptions,
3085
+ ...options.headers,
3086
+ };
2862
3087
  localVarRequestOptions.data = localVarFormParams.toString();
2863
3088
  return {
2864
3089
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -2927,7 +3152,9 @@ const SessionsApiFactory = function (configuration, basePath, axios) {
2927
3152
  * @throws {RequiredError}
2928
3153
  */
2929
3154
  createSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options) {
2930
- return localVarFp.createSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options).then((request) => request(axios, basePath));
3155
+ return localVarFp
3156
+ .createSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options)
3157
+ .then((request) => request(axios, basePath));
2931
3158
  },
2932
3159
  /**
2933
3160
  * Confirms the creation of a session with an external owner.
@@ -2964,7 +3191,9 @@ class SessionsApi extends base_1.BaseAPI {
2964
3191
  * @memberof SessionsApi
2965
3192
  */
2966
3193
  createSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options) {
2967
- return (0, exports.SessionsApiFp)(this.configuration).createSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options).then((request) => request(this.axios, this.basePath));
3194
+ return (0, exports.SessionsApiFp)(this.configuration)
3195
+ .createSession(player, address, chainId, validUntil, validAfter, policy, whitelist, limit, options)
3196
+ .then((request) => request(this.axios, this.basePath));
2968
3197
  }
2969
3198
  /**
2970
3199
  * Confirms the creation of a session with an external owner.
@@ -2975,7 +3204,9 @@ class SessionsApi extends base_1.BaseAPI {
2975
3204
  * @memberof SessionsApi
2976
3205
  */
2977
3206
  signatureSession(session, signature, options) {
2978
- return (0, exports.SessionsApiFp)(this.configuration).signatureSession(session, signature, options).then((request) => request(this.axios, this.basePath));
3207
+ return (0, exports.SessionsApiFp)(this.configuration)
3208
+ .signatureSession(session, signature, options)
3209
+ .then((request) => request(this.axios, this.basePath));
2979
3210
  }
2980
3211
  }
2981
3212
  exports.SessionsApi = SessionsApi;
@@ -2998,13 +3229,13 @@ const TransactionIntentsApiAxiosParamCreator = function (configuration) {
2998
3229
  */
2999
3230
  createTransactionIntent: async (player, chainId, optimistic, interactions, policy, project, options = {}) => {
3000
3231
  // verify required parameter 'player' is not null or undefined
3001
- (0, common_1.assertParamExists)('createTransactionIntent', 'player', player);
3232
+ (0, common_1.assertParamExists)("createTransactionIntent", "player", player);
3002
3233
  // verify required parameter 'chainId' is not null or undefined
3003
- (0, common_1.assertParamExists)('createTransactionIntent', 'chainId', chainId);
3234
+ (0, common_1.assertParamExists)("createTransactionIntent", "chainId", chainId);
3004
3235
  // verify required parameter 'optimistic' is not null or undefined
3005
- (0, common_1.assertParamExists)('createTransactionIntent', 'optimistic', optimistic);
3236
+ (0, common_1.assertParamExists)("createTransactionIntent", "optimistic", optimistic);
3006
3237
  // verify required parameter 'interactions' is not null or undefined
3007
- (0, common_1.assertParamExists)('createTransactionIntent', 'interactions', interactions);
3238
+ (0, common_1.assertParamExists)("createTransactionIntent", "interactions", interactions);
3008
3239
  const localVarPath = `/v1/transaction_intents`;
3009
3240
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3010
3241
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3012,32 +3243,36 @@ const TransactionIntentsApiAxiosParamCreator = function (configuration) {
3012
3243
  if (configuration) {
3013
3244
  baseOptions = configuration.baseOptions;
3014
3245
  }
3015
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3246
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
3016
3247
  const localVarHeaderParameter = {};
3017
3248
  const localVarQueryParameter = {};
3018
3249
  const localVarFormParams = new URLSearchParams();
3019
3250
  if (player !== undefined) {
3020
- localVarFormParams.set('player', player);
3251
+ localVarFormParams.set("player", player);
3021
3252
  }
3022
3253
  if (chainId !== undefined) {
3023
- localVarFormParams.set('chain_id', chainId);
3254
+ localVarFormParams.set("chain_id", chainId);
3024
3255
  }
3025
3256
  if (policy !== undefined) {
3026
- localVarFormParams.set('policy', policy);
3257
+ localVarFormParams.set("policy", policy);
3027
3258
  }
3028
3259
  if (project !== undefined) {
3029
- localVarFormParams.set('project', project);
3260
+ localVarFormParams.set("project", project);
3030
3261
  }
3031
3262
  if (optimistic !== undefined) {
3032
- localVarFormParams.set('optimistic', optimistic);
3263
+ localVarFormParams.set("optimistic", optimistic);
3033
3264
  }
3034
3265
  if (interactions) {
3035
- localVarFormParams.set('interactions', interactions.join(base_1.COLLECTION_FORMATS.csv));
3266
+ localVarFormParams.set("interactions", interactions.join(base_1.COLLECTION_FORMATS.csv));
3036
3267
  }
3037
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
3268
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
3038
3269
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3039
3270
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3040
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3271
+ localVarRequestOptions.headers = {
3272
+ ...localVarHeaderParameter,
3273
+ ...headersFromBaseOptions,
3274
+ ...options.headers,
3275
+ };
3041
3276
  localVarRequestOptions.data = localVarFormParams.toString();
3042
3277
  return {
3043
3278
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -3053,24 +3288,27 @@ const TransactionIntentsApiAxiosParamCreator = function (configuration) {
3053
3288
  */
3054
3289
  getTransactionIntent: async (id, project, options = {}) => {
3055
3290
  // verify required parameter 'id' is not null or undefined
3056
- (0, common_1.assertParamExists)('getTransactionIntent', 'id', id);
3057
- const localVarPath = `/v1/transaction_intents/{id}`
3058
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3291
+ (0, common_1.assertParamExists)("getTransactionIntent", "id", id);
3292
+ const localVarPath = `/v1/transaction_intents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
3059
3293
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3060
3294
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3061
3295
  let baseOptions;
3062
3296
  if (configuration) {
3063
3297
  baseOptions = configuration.baseOptions;
3064
3298
  }
3065
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3299
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3066
3300
  const localVarHeaderParameter = {};
3067
3301
  const localVarQueryParameter = {};
3068
3302
  if (project !== undefined) {
3069
- localVarQueryParameter['project'] = project;
3303
+ localVarQueryParameter["project"] = project;
3070
3304
  }
3071
3305
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3072
3306
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3073
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3307
+ localVarRequestOptions.headers = {
3308
+ ...localVarHeaderParameter,
3309
+ ...headersFromBaseOptions,
3310
+ ...options.headers,
3311
+ };
3074
3312
  return {
3075
3313
  url: (0, common_1.toPathString)(localVarUrlObj),
3076
3314
  options: localVarRequestOptions,
@@ -3094,27 +3332,31 @@ const TransactionIntentsApiAxiosParamCreator = function (configuration) {
3094
3332
  if (configuration) {
3095
3333
  baseOptions = configuration.baseOptions;
3096
3334
  }
3097
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3335
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3098
3336
  const localVarHeaderParameter = {};
3099
3337
  const localVarQueryParameter = {};
3100
3338
  if (project !== undefined) {
3101
- localVarQueryParameter['project'] = project;
3339
+ localVarQueryParameter["project"] = project;
3102
3340
  }
3103
3341
  if (filter !== undefined) {
3104
- localVarQueryParameter['filter'] = filter;
3342
+ localVarQueryParameter["filter"] = filter;
3105
3343
  }
3106
3344
  if (order !== undefined) {
3107
- localVarQueryParameter['order'] = order;
3345
+ localVarQueryParameter["order"] = order;
3108
3346
  }
3109
3347
  if (skip !== undefined) {
3110
- localVarQueryParameter['skip'] = skip;
3348
+ localVarQueryParameter["skip"] = skip;
3111
3349
  }
3112
3350
  if (take !== undefined) {
3113
- localVarQueryParameter['take'] = take;
3351
+ localVarQueryParameter["take"] = take;
3114
3352
  }
3115
3353
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3116
3354
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3117
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3355
+ localVarRequestOptions.headers = {
3356
+ ...localVarHeaderParameter,
3357
+ ...headersFromBaseOptions,
3358
+ ...options.headers,
3359
+ };
3118
3360
  return {
3119
3361
  url: (0, common_1.toPathString)(localVarUrlObj),
3120
3362
  options: localVarRequestOptions,
@@ -3129,18 +3371,17 @@ const TransactionIntentsApiAxiosParamCreator = function (configuration) {
3129
3371
  */
3130
3372
  signature: async (transactionIntent, signature, options = {}) => {
3131
3373
  // verify required parameter 'transactionIntent' is not null or undefined
3132
- (0, common_1.assertParamExists)('signature', 'transactionIntent', transactionIntent);
3374
+ (0, common_1.assertParamExists)("signature", "transactionIntent", transactionIntent);
3133
3375
  // verify required parameter 'signature' is not null or undefined
3134
- (0, common_1.assertParamExists)('signature', 'signature', signature);
3135
- const localVarPath = `/v1/transaction_intents/{transaction_intent}/signature`
3136
- .replace(`{${"transaction_intent"}}`, encodeURIComponent(String(transactionIntent)));
3376
+ (0, common_1.assertParamExists)("signature", "signature", signature);
3377
+ const localVarPath = `/v1/transaction_intents/{transaction_intent}/signature`.replace(`{${"transaction_intent"}}`, encodeURIComponent(String(transactionIntent)));
3137
3378
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3138
3379
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3139
3380
  let baseOptions;
3140
3381
  if (configuration) {
3141
3382
  baseOptions = configuration.baseOptions;
3142
3383
  }
3143
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3384
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
3144
3385
  const localVarHeaderParameter = {};
3145
3386
  const localVarQueryParameter = {};
3146
3387
  const localVarFormParams = new URLSearchParams();
@@ -3148,12 +3389,16 @@ const TransactionIntentsApiAxiosParamCreator = function (configuration) {
3148
3389
  // http bearer authentication required
3149
3390
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3150
3391
  if (signature !== undefined) {
3151
- localVarFormParams.set('signature', signature);
3392
+ localVarFormParams.set("signature", signature);
3152
3393
  }
3153
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
3394
+ localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
3154
3395
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3155
3396
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3156
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3397
+ localVarRequestOptions.headers = {
3398
+ ...localVarHeaderParameter,
3399
+ ...headersFromBaseOptions,
3400
+ ...options.headers,
3401
+ };
3157
3402
  localVarRequestOptions.data = localVarFormParams.toString();
3158
3403
  return {
3159
3404
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -3169,24 +3414,27 @@ const TransactionIntentsApiAxiosParamCreator = function (configuration) {
3169
3414
  */
3170
3415
  updateTransactionIntentResponse: async (id, project, options = {}) => {
3171
3416
  // verify required parameter 'id' is not null or undefined
3172
- (0, common_1.assertParamExists)('updateTransactionIntentResponse', 'id', id);
3173
- const localVarPath = `/v1/transaction_intents/{id}/update_response`
3174
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3417
+ (0, common_1.assertParamExists)("updateTransactionIntentResponse", "id", id);
3418
+ const localVarPath = `/v1/transaction_intents/{id}/update_response`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
3175
3419
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3176
3420
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3177
3421
  let baseOptions;
3178
3422
  if (configuration) {
3179
3423
  baseOptions = configuration.baseOptions;
3180
3424
  }
3181
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3425
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
3182
3426
  const localVarHeaderParameter = {};
3183
3427
  const localVarQueryParameter = {};
3184
3428
  if (project !== undefined) {
3185
- localVarQueryParameter['project'] = project;
3429
+ localVarQueryParameter["project"] = project;
3186
3430
  }
3187
3431
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3188
3432
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3189
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3433
+ localVarRequestOptions.headers = {
3434
+ ...localVarHeaderParameter,
3435
+ ...headersFromBaseOptions,
3436
+ ...options.headers,
3437
+ };
3190
3438
  return {
3191
3439
  url: (0, common_1.toPathString)(localVarUrlObj),
3192
3440
  options: localVarRequestOptions,
@@ -3206,15 +3454,19 @@ const TransactionIntentsApiAxiosParamCreator = function (configuration) {
3206
3454
  if (configuration) {
3207
3455
  baseOptions = configuration.baseOptions;
3208
3456
  }
3209
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3457
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
3210
3458
  const localVarHeaderParameter = {};
3211
3459
  const localVarQueryParameter = {};
3212
3460
  if (project !== undefined) {
3213
- localVarQueryParameter['project'] = project;
3461
+ localVarQueryParameter["project"] = project;
3214
3462
  }
3215
3463
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3216
3464
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3217
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3465
+ localVarRequestOptions.headers = {
3466
+ ...localVarHeaderParameter,
3467
+ ...headersFromBaseOptions,
3468
+ ...options.headers,
3469
+ };
3218
3470
  return {
3219
3471
  url: (0, common_1.toPathString)(localVarUrlObj),
3220
3472
  options: localVarRequestOptions,
@@ -3324,7 +3576,9 @@ const TransactionIntentsApiFactory = function (configuration, basePath, axios) {
3324
3576
  * @throws {RequiredError}
3325
3577
  */
3326
3578
  createTransactionIntent(player, chainId, optimistic, interactions, policy, project, options) {
3327
- return localVarFp.createTransactionIntent(player, chainId, optimistic, interactions, policy, project, options).then((request) => request(axios, basePath));
3579
+ return localVarFp
3580
+ .createTransactionIntent(player, chainId, optimistic, interactions, policy, project, options)
3581
+ .then((request) => request(axios, basePath));
3328
3582
  },
3329
3583
  /**
3330
3584
  * Updates a transaction intent object.
@@ -3347,7 +3601,9 @@ const TransactionIntentsApiFactory = function (configuration, basePath, axios) {
3347
3601
  * @throws {RequiredError}
3348
3602
  */
3349
3603
  getTransactionIntents(project, filter, order, skip, take, options) {
3350
- return localVarFp.getTransactionIntents(project, filter, order, skip, take, options).then((request) => request(axios, basePath));
3604
+ return localVarFp
3605
+ .getTransactionIntents(project, filter, order, skip, take, options)
3606
+ .then((request) => request(axios, basePath));
3351
3607
  },
3352
3608
  /**
3353
3609
  * Confirms the creation of a transaction intent with an external owner.
@@ -3357,7 +3613,9 @@ const TransactionIntentsApiFactory = function (configuration, basePath, axios) {
3357
3613
  * @throws {RequiredError}
3358
3614
  */
3359
3615
  signature(transactionIntent, signature, options) {
3360
- return localVarFp.signature(transactionIntent, signature, options).then((request) => request(axios, basePath));
3616
+ return localVarFp
3617
+ .signature(transactionIntent, signature, options)
3618
+ .then((request) => request(axios, basePath));
3361
3619
  },
3362
3620
  /**
3363
3621
  *
@@ -3367,7 +3625,9 @@ const TransactionIntentsApiFactory = function (configuration, basePath, axios) {
3367
3625
  * @throws {RequiredError}
3368
3626
  */
3369
3627
  updateTransactionIntentResponse(id, project, options) {
3370
- return localVarFp.updateTransactionIntentResponse(id, project, options).then((request) => request(axios, basePath));
3628
+ return localVarFp
3629
+ .updateTransactionIntentResponse(id, project, options)
3630
+ .then((request) => request(axios, basePath));
3371
3631
  },
3372
3632
  /**
3373
3633
  *
@@ -3376,7 +3636,9 @@ const TransactionIntentsApiFactory = function (configuration, basePath, axios) {
3376
3636
  * @throws {RequiredError}
3377
3637
  */
3378
3638
  updateTransactionIntentsResponse(project, options) {
3379
- return localVarFp.updateTransactionIntentsResponse(project, options).then((request) => request(axios, basePath));
3639
+ return localVarFp
3640
+ .updateTransactionIntentsResponse(project, options)
3641
+ .then((request) => request(axios, basePath));
3380
3642
  },
3381
3643
  };
3382
3644
  };
@@ -3401,7 +3663,9 @@ class TransactionIntentsApi extends base_1.BaseAPI {
3401
3663
  * @memberof TransactionIntentsApi
3402
3664
  */
3403
3665
  createTransactionIntent(player, chainId, optimistic, interactions, policy, project, options) {
3404
- return (0, exports.TransactionIntentsApiFp)(this.configuration).createTransactionIntent(player, chainId, optimistic, interactions, policy, project, options).then((request) => request(this.axios, this.basePath));
3666
+ return (0, exports.TransactionIntentsApiFp)(this.configuration)
3667
+ .createTransactionIntent(player, chainId, optimistic, interactions, policy, project, options)
3668
+ .then((request) => request(this.axios, this.basePath));
3405
3669
  }
3406
3670
  /**
3407
3671
  * Updates a transaction intent object.
@@ -3412,7 +3676,9 @@ class TransactionIntentsApi extends base_1.BaseAPI {
3412
3676
  * @memberof TransactionIntentsApi
3413
3677
  */
3414
3678
  getTransactionIntent(id, project, options) {
3415
- return (0, exports.TransactionIntentsApiFp)(this.configuration).getTransactionIntent(id, project, options).then((request) => request(this.axios, this.basePath));
3679
+ return (0, exports.TransactionIntentsApiFp)(this.configuration)
3680
+ .getTransactionIntent(id, project, options)
3681
+ .then((request) => request(this.axios, this.basePath));
3416
3682
  }
3417
3683
  /**
3418
3684
  *
@@ -3426,7 +3692,9 @@ class TransactionIntentsApi extends base_1.BaseAPI {
3426
3692
  * @memberof TransactionIntentsApi
3427
3693
  */
3428
3694
  getTransactionIntents(project, filter, order, skip, take, options) {
3429
- return (0, exports.TransactionIntentsApiFp)(this.configuration).getTransactionIntents(project, filter, order, skip, take, options).then((request) => request(this.axios, this.basePath));
3695
+ return (0, exports.TransactionIntentsApiFp)(this.configuration)
3696
+ .getTransactionIntents(project, filter, order, skip, take, options)
3697
+ .then((request) => request(this.axios, this.basePath));
3430
3698
  }
3431
3699
  /**
3432
3700
  * Confirms the creation of a transaction intent with an external owner.
@@ -3437,7 +3705,9 @@ class TransactionIntentsApi extends base_1.BaseAPI {
3437
3705
  * @memberof TransactionIntentsApi
3438
3706
  */
3439
3707
  signature(transactionIntent, signature, options) {
3440
- return (0, exports.TransactionIntentsApiFp)(this.configuration).signature(transactionIntent, signature, options).then((request) => request(this.axios, this.basePath));
3708
+ return (0, exports.TransactionIntentsApiFp)(this.configuration)
3709
+ .signature(transactionIntent, signature, options)
3710
+ .then((request) => request(this.axios, this.basePath));
3441
3711
  }
3442
3712
  /**
3443
3713
  *
@@ -3448,7 +3718,9 @@ class TransactionIntentsApi extends base_1.BaseAPI {
3448
3718
  * @memberof TransactionIntentsApi
3449
3719
  */
3450
3720
  updateTransactionIntentResponse(id, project, options) {
3451
- return (0, exports.TransactionIntentsApiFp)(this.configuration).updateTransactionIntentResponse(id, project, options).then((request) => request(this.axios, this.basePath));
3721
+ return (0, exports.TransactionIntentsApiFp)(this.configuration)
3722
+ .updateTransactionIntentResponse(id, project, options)
3723
+ .then((request) => request(this.axios, this.basePath));
3452
3724
  }
3453
3725
  /**
3454
3726
  *
@@ -3458,7 +3730,9 @@ class TransactionIntentsApi extends base_1.BaseAPI {
3458
3730
  * @memberof TransactionIntentsApi
3459
3731
  */
3460
3732
  updateTransactionIntentsResponse(project, options) {
3461
- return (0, exports.TransactionIntentsApiFp)(this.configuration).updateTransactionIntentsResponse(project, options).then((request) => request(this.axios, this.basePath));
3733
+ return (0, exports.TransactionIntentsApiFp)(this.configuration)
3734
+ .updateTransactionIntentsResponse(project, options)
3735
+ .then((request) => request(this.axios, this.basePath));
3462
3736
  }
3463
3737
  }
3464
3738
  exports.TransactionIntentsApi = TransactionIntentsApi;