@dynamic-labs/sdk-api 0.40.0 → 0.42.0
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/package.json +1 -1
- package/src/apis/AllowlistsApi.cjs +4 -3
- package/src/apis/AllowlistsApi.d.ts +2 -2
- package/src/apis/AllowlistsApi.js +4 -3
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/PostAllowlistsRequest.cjs +1 -1
- package/src/models/PostAllowlistsRequest.d.ts +1 -1
- package/src/models/PostAllowlistsRequest.js +1 -1
- package/src/models/ProjectSettingsSdkEmbeddedWallets.cjs +2 -0
- package/src/models/ProjectSettingsSdkEmbeddedWallets.d.ts +6 -0
- package/src/models/ProjectSettingsSdkEmbeddedWallets.js +2 -0
- package/src/models/PutAllowlistsRequest.cjs +38 -0
- package/src/models/PutAllowlistsRequest.d.ts +40 -0
- package/src/models/PutAllowlistsRequest.js +32 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -149,6 +149,7 @@ require('../models/WhenToImplementEnum.cjs');
|
|
|
149
149
|
var PostAllowlistEntriesRequest = require('../models/PostAllowlistEntriesRequest.cjs');
|
|
150
150
|
var PostAllowlistsRequest = require('../models/PostAllowlistsRequest.cjs');
|
|
151
151
|
require('../models/PublishEventsEvents.cjs');
|
|
152
|
+
var PutAllowlistsRequest = require('../models/PutAllowlistsRequest.cjs');
|
|
152
153
|
require('../models/ReshareKind.cjs');
|
|
153
154
|
require('../models/SanctionsWalletBlockedEventPayload.cjs');
|
|
154
155
|
require('../models/ScreenTransactionResponse.cjs');
|
|
@@ -516,8 +517,8 @@ class AllowlistsApi extends runtime.BaseAPI {
|
|
|
516
517
|
if (requestParameters.allowlistId === null || requestParameters.allowlistId === undefined) {
|
|
517
518
|
throw new runtime.RequiredError('allowlistId', 'Required parameter requestParameters.allowlistId was null or undefined when calling updateAllowlistById.');
|
|
518
519
|
}
|
|
519
|
-
if (requestParameters.
|
|
520
|
-
throw new runtime.RequiredError('
|
|
520
|
+
if (requestParameters.putAllowlistsRequest === null || requestParameters.putAllowlistsRequest === undefined) {
|
|
521
|
+
throw new runtime.RequiredError('putAllowlistsRequest', 'Required parameter requestParameters.putAllowlistsRequest was null or undefined when calling updateAllowlistById.');
|
|
521
522
|
}
|
|
522
523
|
const queryParameters = {};
|
|
523
524
|
const headerParameters = {};
|
|
@@ -534,7 +535,7 @@ class AllowlistsApi extends runtime.BaseAPI {
|
|
|
534
535
|
method: 'PUT',
|
|
535
536
|
headers: headerParameters,
|
|
536
537
|
query: queryParameters,
|
|
537
|
-
body:
|
|
538
|
+
body: PutAllowlistsRequest.PutAllowlistsRequestToJSON(requestParameters.putAllowlistsRequest),
|
|
538
539
|
}, initOverrides);
|
|
539
540
|
return new runtime.JSONApiResponse(response, (jsonValue) => Allowlist.AllowlistFromJSON(jsonValue));
|
|
540
541
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Allowlist, AllowlistEntriesResponse, AllowlistEntry, PostAllowlistEntriesRequest, PostAllowlistsRequest } from '../models';
|
|
13
|
+
import { Allowlist, AllowlistEntriesResponse, AllowlistEntry, PostAllowlistEntriesRequest, PostAllowlistsRequest, PutAllowlistsRequest } from '../models';
|
|
14
14
|
export interface CreateAllowlistByEnvironmentIdRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
postAllowlistsRequest: PostAllowlistsRequest;
|
|
@@ -46,7 +46,7 @@ export interface PostEntryByAllowlistIdRequest {
|
|
|
46
46
|
}
|
|
47
47
|
export interface UpdateAllowlistByIdRequest {
|
|
48
48
|
allowlistId: string;
|
|
49
|
-
|
|
49
|
+
putAllowlistsRequest: PutAllowlistsRequest;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
@@ -145,6 +145,7 @@ import '../models/WhenToImplementEnum.js';
|
|
|
145
145
|
import { PostAllowlistEntriesRequestToJSON } from '../models/PostAllowlistEntriesRequest.js';
|
|
146
146
|
import { PostAllowlistsRequestToJSON } from '../models/PostAllowlistsRequest.js';
|
|
147
147
|
import '../models/PublishEventsEvents.js';
|
|
148
|
+
import { PutAllowlistsRequestToJSON } from '../models/PutAllowlistsRequest.js';
|
|
148
149
|
import '../models/ReshareKind.js';
|
|
149
150
|
import '../models/SanctionsWalletBlockedEventPayload.js';
|
|
150
151
|
import '../models/ScreenTransactionResponse.js';
|
|
@@ -512,8 +513,8 @@ class AllowlistsApi extends BaseAPI {
|
|
|
512
513
|
if (requestParameters.allowlistId === null || requestParameters.allowlistId === undefined) {
|
|
513
514
|
throw new RequiredError('allowlistId', 'Required parameter requestParameters.allowlistId was null or undefined when calling updateAllowlistById.');
|
|
514
515
|
}
|
|
515
|
-
if (requestParameters.
|
|
516
|
-
throw new RequiredError('
|
|
516
|
+
if (requestParameters.putAllowlistsRequest === null || requestParameters.putAllowlistsRequest === undefined) {
|
|
517
|
+
throw new RequiredError('putAllowlistsRequest', 'Required parameter requestParameters.putAllowlistsRequest was null or undefined when calling updateAllowlistById.');
|
|
517
518
|
}
|
|
518
519
|
const queryParameters = {};
|
|
519
520
|
const headerParameters = {};
|
|
@@ -530,7 +531,7 @@ class AllowlistsApi extends BaseAPI {
|
|
|
530
531
|
method: 'PUT',
|
|
531
532
|
headers: headerParameters,
|
|
532
533
|
query: queryParameters,
|
|
533
|
-
body:
|
|
534
|
+
body: PutAllowlistsRequestToJSON(requestParameters.putAllowlistsRequest),
|
|
534
535
|
}, initOverrides);
|
|
535
536
|
return new JSONApiResponse(response, (jsonValue) => AllowlistFromJSON(jsonValue));
|
|
536
537
|
}
|
package/src/index.cjs
CHANGED
|
@@ -678,6 +678,7 @@ var PublicKeyCredentialType = require('./models/PublicKeyCredentialType.cjs');
|
|
|
678
678
|
var PublicKeyCredentialUserEntity = require('./models/PublicKeyCredentialUserEntity.cjs');
|
|
679
679
|
var PublishEvents = require('./models/PublishEvents.cjs');
|
|
680
680
|
var PublishEventsEvents = require('./models/PublishEventsEvents.cjs');
|
|
681
|
+
var PutAllowlistsRequest = require('./models/PutAllowlistsRequest.cjs');
|
|
681
682
|
var RampConfiguration = require('./models/RampConfiguration.cjs');
|
|
682
683
|
var ReactSettings = require('./models/ReactSettings.cjs');
|
|
683
684
|
var RealtimeAuthTokenResponse = require('./models/RealtimeAuthTokenResponse.cjs');
|
|
@@ -3424,6 +3425,9 @@ Object.defineProperty(exports, 'PublishEventsEventsTypeEnum', {
|
|
|
3424
3425
|
enumerable: true,
|
|
3425
3426
|
get: function () { return PublishEventsEvents.PublishEventsEventsTypeEnum; }
|
|
3426
3427
|
});
|
|
3428
|
+
exports.PutAllowlistsRequestFromJSON = PutAllowlistsRequest.PutAllowlistsRequestFromJSON;
|
|
3429
|
+
exports.PutAllowlistsRequestFromJSONTyped = PutAllowlistsRequest.PutAllowlistsRequestFromJSONTyped;
|
|
3430
|
+
exports.PutAllowlistsRequestToJSON = PutAllowlistsRequest.PutAllowlistsRequestToJSON;
|
|
3427
3431
|
exports.RampConfigurationFromJSON = RampConfiguration.RampConfigurationFromJSON;
|
|
3428
3432
|
exports.RampConfigurationFromJSONTyped = RampConfiguration.RampConfigurationFromJSONTyped;
|
|
3429
3433
|
exports.RampConfigurationToJSON = RampConfiguration.RampConfigurationToJSON;
|
package/src/index.js
CHANGED
|
@@ -674,6 +674,7 @@ export { PublicKeyCredentialType, PublicKeyCredentialTypeFromJSON, PublicKeyCred
|
|
|
674
674
|
export { PublicKeyCredentialUserEntityFromJSON, PublicKeyCredentialUserEntityFromJSONTyped, PublicKeyCredentialUserEntityToJSON } from './models/PublicKeyCredentialUserEntity.js';
|
|
675
675
|
export { PublishEventsFromJSON, PublishEventsFromJSONTyped, PublishEventsToJSON } from './models/PublishEvents.js';
|
|
676
676
|
export { PublishEventsEventsFromJSON, PublishEventsEventsFromJSONTyped, PublishEventsEventsToJSON, PublishEventsEventsTypeEnum } from './models/PublishEventsEvents.js';
|
|
677
|
+
export { PutAllowlistsRequestFromJSON, PutAllowlistsRequestFromJSONTyped, PutAllowlistsRequestToJSON } from './models/PutAllowlistsRequest.js';
|
|
677
678
|
export { RampConfigurationFromJSON, RampConfigurationFromJSONTyped, RampConfigurationToJSON } from './models/RampConfiguration.js';
|
|
678
679
|
export { ReactSettingsFromJSON, ReactSettingsFromJSONTyped, ReactSettingsToJSON } from './models/ReactSettings.js';
|
|
679
680
|
export { RealtimeAuthTokenResponseFromJSON, RealtimeAuthTokenResponseFromJSONTyped, RealtimeAuthTokenResponseToJSON } from './models/RealtimeAuthTokenResponse.js';
|
|
@@ -14,7 +14,7 @@ function PostAllowlistsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
14
|
return json;
|
|
15
15
|
}
|
|
16
16
|
return {
|
|
17
|
-
'name':
|
|
17
|
+
'name': json['name'],
|
|
18
18
|
'scope': !runtime.exists(json, 'scope') ? undefined : json['scope'],
|
|
19
19
|
'outcome': !runtime.exists(json, 'outcome') ? undefined : AccessOutcomeEnum.AccessOutcomeEnumFromJSON(json['outcome']),
|
|
20
20
|
};
|
|
@@ -10,7 +10,7 @@ function PostAllowlistsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
10
10
|
return json;
|
|
11
11
|
}
|
|
12
12
|
return {
|
|
13
|
-
'name':
|
|
13
|
+
'name': json['name'],
|
|
14
14
|
'scope': !exists(json, 'scope') ? undefined : json['scope'],
|
|
15
15
|
'outcome': !exists(json, 'outcome') ? undefined : AccessOutcomeEnumFromJSON(json['outcome']),
|
|
16
16
|
};
|
|
@@ -41,6 +41,7 @@ function ProjectSettingsSdkEmbeddedWalletsFromJSONTyped(json, ignoreDiscriminato
|
|
|
41
41
|
'transactionSimulation': !runtime.exists(json, 'transactionSimulation') ? undefined : json['transactionSimulation'],
|
|
42
42
|
'evmGasSponsorshipEnabled': !runtime.exists(json, 'evmGasSponsorshipEnabled') ? undefined : json['evmGasSponsorshipEnabled'],
|
|
43
43
|
'evmGasSponsorshipRelayMode': !runtime.exists(json, 'evmGasSponsorshipRelayMode') ? undefined : json['evmGasSponsorshipRelayMode'],
|
|
44
|
+
'evmGasSponsorshipNetworks': !runtime.exists(json, 'evmGasSponsorshipNetworks') ? undefined : json['evmGasSponsorshipNetworks'],
|
|
44
45
|
'svmGasSponsorshipEnabled': !runtime.exists(json, 'svmGasSponsorshipEnabled') ? undefined : json['svmGasSponsorshipEnabled'],
|
|
45
46
|
};
|
|
46
47
|
}
|
|
@@ -67,6 +68,7 @@ function ProjectSettingsSdkEmbeddedWalletsToJSON(value) {
|
|
|
67
68
|
'transactionSimulation': value.transactionSimulation,
|
|
68
69
|
'evmGasSponsorshipEnabled': value.evmGasSponsorshipEnabled,
|
|
69
70
|
'evmGasSponsorshipRelayMode': value.evmGasSponsorshipRelayMode,
|
|
71
|
+
'evmGasSponsorshipNetworks': value.evmGasSponsorshipNetworks,
|
|
70
72
|
'svmGasSponsorshipEnabled': value.svmGasSponsorshipEnabled,
|
|
71
73
|
};
|
|
72
74
|
}
|
|
@@ -109,6 +109,12 @@ export interface ProjectSettingsSdkEmbeddedWallets {
|
|
|
109
109
|
* @memberof ProjectSettingsSdkEmbeddedWallets
|
|
110
110
|
*/
|
|
111
111
|
evmGasSponsorshipRelayMode?: ProjectSettingsSdkEmbeddedWalletsEvmGasSponsorshipRelayModeEnum;
|
|
112
|
+
/**
|
|
113
|
+
* Restricts EVM gas sponsorship to specific networks. Use mainnet or testnet for every supported chain of that class, or a numeric chain id for a single chain. Absent or empty covers every supported chain.
|
|
114
|
+
* @type {Array<string>}
|
|
115
|
+
* @memberof ProjectSettingsSdkEmbeddedWallets
|
|
116
|
+
*/
|
|
117
|
+
evmGasSponsorshipNetworks?: Array<string>;
|
|
112
118
|
/**
|
|
113
119
|
* When true, network fees for Solana embedded wallet transactions will be sponsored.
|
|
114
120
|
* @type {boolean}
|
|
@@ -37,6 +37,7 @@ function ProjectSettingsSdkEmbeddedWalletsFromJSONTyped(json, ignoreDiscriminato
|
|
|
37
37
|
'transactionSimulation': !exists(json, 'transactionSimulation') ? undefined : json['transactionSimulation'],
|
|
38
38
|
'evmGasSponsorshipEnabled': !exists(json, 'evmGasSponsorshipEnabled') ? undefined : json['evmGasSponsorshipEnabled'],
|
|
39
39
|
'evmGasSponsorshipRelayMode': !exists(json, 'evmGasSponsorshipRelayMode') ? undefined : json['evmGasSponsorshipRelayMode'],
|
|
40
|
+
'evmGasSponsorshipNetworks': !exists(json, 'evmGasSponsorshipNetworks') ? undefined : json['evmGasSponsorshipNetworks'],
|
|
40
41
|
'svmGasSponsorshipEnabled': !exists(json, 'svmGasSponsorshipEnabled') ? undefined : json['svmGasSponsorshipEnabled'],
|
|
41
42
|
};
|
|
42
43
|
}
|
|
@@ -63,6 +64,7 @@ function ProjectSettingsSdkEmbeddedWalletsToJSON(value) {
|
|
|
63
64
|
'transactionSimulation': value.transactionSimulation,
|
|
64
65
|
'evmGasSponsorshipEnabled': value.evmGasSponsorshipEnabled,
|
|
65
66
|
'evmGasSponsorshipRelayMode': value.evmGasSponsorshipRelayMode,
|
|
67
|
+
'evmGasSponsorshipNetworks': value.evmGasSponsorshipNetworks,
|
|
66
68
|
'svmGasSponsorshipEnabled': value.svmGasSponsorshipEnabled,
|
|
67
69
|
};
|
|
68
70
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var AccessOutcomeEnum = require('./AccessOutcomeEnum.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function PutAllowlistsRequestFromJSON(json) {
|
|
10
|
+
return PutAllowlistsRequestFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function PutAllowlistsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'name': !runtime.exists(json, 'name') ? undefined : json['name'],
|
|
18
|
+
'scope': !runtime.exists(json, 'scope') ? undefined : json['scope'],
|
|
19
|
+
'outcome': !runtime.exists(json, 'outcome') ? undefined : AccessOutcomeEnum.AccessOutcomeEnumFromJSON(json['outcome']),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function PutAllowlistsRequestToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': value.name,
|
|
31
|
+
'scope': value.scope,
|
|
32
|
+
'outcome': AccessOutcomeEnum.AccessOutcomeEnumToJSON(value.outcome),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.PutAllowlistsRequestFromJSON = PutAllowlistsRequestFromJSON;
|
|
37
|
+
exports.PutAllowlistsRequestFromJSONTyped = PutAllowlistsRequestFromJSONTyped;
|
|
38
|
+
exports.PutAllowlistsRequestToJSON = PutAllowlistsRequestToJSON;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AccessOutcomeEnum } from './AccessOutcomeEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PutAllowlistsRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface PutAllowlistsRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PutAllowlistsRequest
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PutAllowlistsRequest
|
|
29
|
+
*/
|
|
30
|
+
scope?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {AccessOutcomeEnum}
|
|
34
|
+
* @memberof PutAllowlistsRequest
|
|
35
|
+
*/
|
|
36
|
+
outcome?: AccessOutcomeEnum;
|
|
37
|
+
}
|
|
38
|
+
export declare function PutAllowlistsRequestFromJSON(json: any): PutAllowlistsRequest;
|
|
39
|
+
export declare function PutAllowlistsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutAllowlistsRequest;
|
|
40
|
+
export declare function PutAllowlistsRequestToJSON(value?: PutAllowlistsRequest | null): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { AccessOutcomeEnumFromJSON, AccessOutcomeEnumToJSON } from './AccessOutcomeEnum.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function PutAllowlistsRequestFromJSON(json) {
|
|
6
|
+
return PutAllowlistsRequestFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function PutAllowlistsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
14
|
+
'scope': !exists(json, 'scope') ? undefined : json['scope'],
|
|
15
|
+
'outcome': !exists(json, 'outcome') ? undefined : AccessOutcomeEnumFromJSON(json['outcome']),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function PutAllowlistsRequestToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'name': value.name,
|
|
27
|
+
'scope': value.scope,
|
|
28
|
+
'outcome': AccessOutcomeEnumToJSON(value.outcome),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { PutAllowlistsRequestFromJSON, PutAllowlistsRequestFromJSONTyped, PutAllowlistsRequestToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -621,6 +621,7 @@ export * from './PublicKeyCredentialType';
|
|
|
621
621
|
export * from './PublicKeyCredentialUserEntity';
|
|
622
622
|
export * from './PublishEvents';
|
|
623
623
|
export * from './PublishEventsEvents';
|
|
624
|
+
export * from './PutAllowlistsRequest';
|
|
624
625
|
export * from './RampConfiguration';
|
|
625
626
|
export * from './ReactSettings';
|
|
626
627
|
export * from './RealtimeAuthTokenResponse';
|