@dynamic-labs/sdk-api 0.0.195 → 0.0.196
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 +1 -0
- package/src/apis/AllowlistsApi.js +1 -0
- package/src/apis/AnalyticsApi.cjs +1 -0
- package/src/apis/AnalyticsApi.js +1 -0
- package/src/apis/ChainalysisApi.cjs +1 -0
- package/src/apis/ChainalysisApi.js +1 -0
- package/src/apis/EnvironmentsApi.cjs +1 -0
- package/src/apis/EnvironmentsApi.js +1 -0
- package/src/apis/GatesApi.cjs +265 -0
- package/src/apis/GatesApi.d.ts +97 -0
- package/src/apis/GatesApi.js +261 -0
- package/src/apis/InvitesApi.cjs +1 -0
- package/src/apis/InvitesApi.js +1 -0
- package/src/apis/MembersApi.cjs +1 -0
- package/src/apis/MembersApi.js +1 -0
- package/src/apis/OrganizationsApi.cjs +1 -0
- package/src/apis/OrganizationsApi.js +1 -0
- package/src/apis/OriginsApi.cjs +1 -0
- package/src/apis/OriginsApi.js +1 -0
- package/src/apis/ProjectsApi.cjs +1 -0
- package/src/apis/ProjectsApi.js +1 -0
- package/src/apis/SDKApi.cjs +1 -0
- package/src/apis/SDKApi.js +1 -0
- package/src/apis/SessionsApi.cjs +1 -0
- package/src/apis/SessionsApi.js +1 -0
- package/src/apis/SettingsApi.cjs +1 -0
- package/src/apis/SettingsApi.js +1 -0
- package/src/apis/TokensApi.cjs +1 -0
- package/src/apis/TokensApi.js +1 -0
- package/src/apis/UsersApi.cjs +1 -0
- package/src/apis/UsersApi.js +1 -0
- package/src/apis/VisitsApi.cjs +1 -0
- package/src/apis/VisitsApi.js +1 -0
- package/src/apis/WalletsApi.cjs +1 -0
- package/src/apis/WalletsApi.js +1 -0
- package/src/apis/index.d.ts +1 -0
- package/src/index.cjs +34 -0
- package/src/index.js +8 -0
- package/src/models/DynamicJwt.d.ts +1 -1
- package/src/models/Gate.cjs +42 -0
- package/src/models/Gate.d.ts +52 -0
- package/src/models/Gate.js +36 -0
- package/src/models/GateCreateRequest.cjs +37 -0
- package/src/models/GateCreateRequest.d.ts +40 -0
- package/src/models/GateCreateRequest.js +31 -0
- package/src/models/GateRule.cjs +39 -0
- package/src/models/GateRule.d.ts +41 -0
- package/src/models/GateRule.js +33 -0
- package/src/models/GateRuleFilter.cjs +33 -0
- package/src/models/GateRuleFilter.d.ts +27 -0
- package/src/models/GateRuleFilter.js +27 -0
- package/src/models/GateRuleType.cjs +40 -0
- package/src/models/GateRuleType.d.ts +23 -0
- package/src/models/GateRuleType.js +34 -0
- package/src/models/GateUpdateRequest.cjs +38 -0
- package/src/models/GateUpdateRequest.d.ts +40 -0
- package/src/models/GateUpdateRequest.js +32 -0
- package/src/models/GatesResponse.cjs +34 -0
- package/src/models/GatesResponse.d.ts +28 -0
- package/src/models/GatesResponse.js +28 -0
- package/src/models/index.d.ts +7 -0
|
@@ -0,0 +1,52 @@
|
|
|
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 { GateRule } from './GateRule';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Gate
|
|
17
|
+
*/
|
|
18
|
+
export interface Gate {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Gate
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Human-readable name of the gate. This should be something helpful to organize gates.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Gate
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* String for the resulting scope of the gate. If the rules of the gate apply to the user being verified, then this scope will be surfaced in the JWT
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Gate
|
|
35
|
+
*/
|
|
36
|
+
scope: string;
|
|
37
|
+
/**
|
|
38
|
+
* If the gate is enabled, then this timestamp will be present.
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof Gate
|
|
41
|
+
*/
|
|
42
|
+
enabledAt?: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
* The rules which will be used to evaluate users being verified. If multiple rules are present in a single gate, then all the rules need to apply for the user to gain the scope defined by the gate.
|
|
45
|
+
* @type {Array<GateRule>}
|
|
46
|
+
* @memberof Gate
|
|
47
|
+
*/
|
|
48
|
+
rules: Array<GateRule>;
|
|
49
|
+
}
|
|
50
|
+
export declare function GateFromJSON(json: any): Gate;
|
|
51
|
+
export declare function GateFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gate;
|
|
52
|
+
export declare function GateToJSON(value?: Gate | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { GateRuleFromJSON, GateRuleToJSON } from './GateRule.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function GateFromJSON(json) {
|
|
6
|
+
return GateFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function GateFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'id': json['id'],
|
|
14
|
+
'name': json['name'],
|
|
15
|
+
'scope': json['scope'],
|
|
16
|
+
'enabledAt': !exists(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
|
|
17
|
+
'rules': (json['rules'].map(GateRuleFromJSON)),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function GateToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': value.id,
|
|
29
|
+
'name': value.name,
|
|
30
|
+
'scope': value.scope,
|
|
31
|
+
'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
|
|
32
|
+
'rules': (value.rules.map(GateRuleToJSON)),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { GateFromJSON, GateFromJSONTyped, GateToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var GateRule = require('./GateRule.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function GateCreateRequestFromJSON(json) {
|
|
9
|
+
return GateCreateRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function GateCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'name': json['name'],
|
|
17
|
+
'scope': json['scope'],
|
|
18
|
+
'rules': (json['rules'].map(GateRule.GateRuleFromJSON)),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function GateCreateRequestToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'name': value.name,
|
|
30
|
+
'scope': value.scope,
|
|
31
|
+
'rules': (value.rules.map(GateRule.GateRuleToJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.GateCreateRequestFromJSON = GateCreateRequestFromJSON;
|
|
36
|
+
exports.GateCreateRequestFromJSONTyped = GateCreateRequestFromJSONTyped;
|
|
37
|
+
exports.GateCreateRequestToJSON = GateCreateRequestToJSON;
|
|
@@ -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 { GateRule } from './GateRule';
|
|
13
|
+
/**
|
|
14
|
+
* Request body to create a new gate. The gate will be not enabled by default.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GateCreateRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface GateCreateRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Human-readable name of the gate. This should be something helpful to organize gates.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GateCreateRequest
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* String for the resulting scope of the gate. If the rules of the gate apply to the user being verified, then this scope will be surfaced in the JWT
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GateCreateRequest
|
|
29
|
+
*/
|
|
30
|
+
scope: string;
|
|
31
|
+
/**
|
|
32
|
+
* The rules which will be used to evaluate users being verified. If multiple rules are present in a single gate, then all the rules need to apply for the user to gain the scope defined by the gate.
|
|
33
|
+
* @type {Array<GateRule>}
|
|
34
|
+
* @memberof GateCreateRequest
|
|
35
|
+
*/
|
|
36
|
+
rules: Array<GateRule>;
|
|
37
|
+
}
|
|
38
|
+
export declare function GateCreateRequestFromJSON(json: any): GateCreateRequest;
|
|
39
|
+
export declare function GateCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GateCreateRequest;
|
|
40
|
+
export declare function GateCreateRequestToJSON(value?: GateCreateRequest | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { GateRuleFromJSON, GateRuleToJSON } from './GateRule.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function GateCreateRequestFromJSON(json) {
|
|
5
|
+
return GateCreateRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function GateCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'name': json['name'],
|
|
13
|
+
'scope': json['scope'],
|
|
14
|
+
'rules': (json['rules'].map(GateRuleFromJSON)),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function GateCreateRequestToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'name': value.name,
|
|
26
|
+
'scope': value.scope,
|
|
27
|
+
'rules': (value.rules.map(GateRuleToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { GateCreateRequestFromJSON, GateCreateRequestFromJSONTyped, GateCreateRequestToJSON };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var GateRuleFilter = require('./GateRuleFilter.cjs');
|
|
7
|
+
var GateRuleType = require('./GateRuleType.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function GateRuleFromJSON(json) {
|
|
11
|
+
return GateRuleFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function GateRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'type': GateRuleType.GateRuleTypeFromJSON(json['type']),
|
|
19
|
+
'contractAddress': json['contractAddress'],
|
|
20
|
+
'filter': !runtime.exists(json, 'filter') ? undefined : GateRuleFilter.GateRuleFilterFromJSON(json['filter']),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function GateRuleToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'type': GateRuleType.GateRuleTypeToJSON(value.type),
|
|
32
|
+
'contractAddress': value.contractAddress,
|
|
33
|
+
'filter': GateRuleFilter.GateRuleFilterToJSON(value.filter),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.GateRuleFromJSON = GateRuleFromJSON;
|
|
38
|
+
exports.GateRuleFromJSONTyped = GateRuleFromJSONTyped;
|
|
39
|
+
exports.GateRuleToJSON = GateRuleToJSON;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { GateRuleFilter } from './GateRuleFilter';
|
|
13
|
+
import { GateRuleType } from './GateRuleType';
|
|
14
|
+
/**
|
|
15
|
+
* Definition for a single rule in a Gate. This will check for the presence of a token or NFT, given the contract address, in the wallet of a user being evaluated. For multi-wallet users, we will check all wallets. If a filter is defined, then we will also check that the filter checks apply to the user
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GateRule
|
|
18
|
+
*/
|
|
19
|
+
export interface GateRule {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {GateRuleType}
|
|
23
|
+
* @memberof GateRule
|
|
24
|
+
*/
|
|
25
|
+
type: GateRuleType;
|
|
26
|
+
/**
|
|
27
|
+
* This contains the smart contract address of the token or NFT being used to evaluate users to be verified.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GateRule
|
|
30
|
+
*/
|
|
31
|
+
contractAddress: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {GateRuleFilter}
|
|
35
|
+
* @memberof GateRule
|
|
36
|
+
*/
|
|
37
|
+
filter?: GateRuleFilter;
|
|
38
|
+
}
|
|
39
|
+
export declare function GateRuleFromJSON(json: any): GateRule;
|
|
40
|
+
export declare function GateRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): GateRule;
|
|
41
|
+
export declare function GateRuleToJSON(value?: GateRule | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { GateRuleFilterFromJSON, GateRuleFilterToJSON } from './GateRuleFilter.js';
|
|
3
|
+
import { GateRuleTypeFromJSON, GateRuleTypeToJSON } from './GateRuleType.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
function GateRuleFromJSON(json) {
|
|
7
|
+
return GateRuleFromJSONTyped(json);
|
|
8
|
+
}
|
|
9
|
+
function GateRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if ((json === undefined) || (json === null)) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
'type': GateRuleTypeFromJSON(json['type']),
|
|
15
|
+
'contractAddress': json['contractAddress'],
|
|
16
|
+
'filter': !exists(json, 'filter') ? undefined : GateRuleFilterFromJSON(json['filter']),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function GateRuleToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'type': GateRuleTypeToJSON(value.type),
|
|
28
|
+
'contractAddress': value.contractAddress,
|
|
29
|
+
'filter': GateRuleFilterToJSON(value.filter),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { GateRuleFromJSON, GateRuleFromJSONTyped, GateRuleToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function GateRuleFilterFromJSON(json) {
|
|
9
|
+
return GateRuleFilterFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function GateRuleFilterFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'amount': !runtime.exists(json, 'amount') ? undefined : json['amount'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function GateRuleFilterToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'amount': value.amount,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.GateRuleFilterFromJSON = GateRuleFilterFromJSON;
|
|
32
|
+
exports.GateRuleFilterFromJSONTyped = GateRuleFilterFromJSONTyped;
|
|
33
|
+
exports.GateRuleFilterToJSON = GateRuleFilterToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Defines the filter properties used for the gate
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GateRuleFilter
|
|
16
|
+
*/
|
|
17
|
+
export interface GateRuleFilter {
|
|
18
|
+
/**
|
|
19
|
+
* Minimum token or NFT amount held by the user. If this `amount` field is provided, then Dynamic will also check that the user has this minimum amount held by the user of the NFT or Token
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GateRuleFilter
|
|
22
|
+
*/
|
|
23
|
+
amount?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare function GateRuleFilterFromJSON(json: any): GateRuleFilter;
|
|
26
|
+
export declare function GateRuleFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): GateRuleFilter;
|
|
27
|
+
export declare function GateRuleFilterToJSON(value?: GateRuleFilter | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function GateRuleFilterFromJSON(json) {
|
|
5
|
+
return GateRuleFilterFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function GateRuleFilterFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'amount': !exists(json, 'amount') ? undefined : json['amount'],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function GateRuleFilterToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'amount': value.amount,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { GateRuleFilterFromJSON, GateRuleFilterFromJSONTyped, GateRuleFilterToJSON };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.GateRuleType = void 0;
|
|
24
|
+
(function (GateRuleType) {
|
|
25
|
+
GateRuleType["Nft"] = "nft";
|
|
26
|
+
GateRuleType["Token"] = "token";
|
|
27
|
+
})(exports.GateRuleType || (exports.GateRuleType = {}));
|
|
28
|
+
function GateRuleTypeFromJSON(json) {
|
|
29
|
+
return GateRuleTypeFromJSONTyped(json);
|
|
30
|
+
}
|
|
31
|
+
function GateRuleTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
function GateRuleTypeToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.GateRuleTypeFromJSON = GateRuleTypeFromJSON;
|
|
39
|
+
exports.GateRuleTypeFromJSONTyped = GateRuleTypeFromJSONTyped;
|
|
40
|
+
exports.GateRuleTypeToJSON = GateRuleTypeToJSON;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum GateRuleType {
|
|
18
|
+
Nft = "nft",
|
|
19
|
+
Token = "token"
|
|
20
|
+
}
|
|
21
|
+
export declare function GateRuleTypeFromJSON(json: any): GateRuleType;
|
|
22
|
+
export declare function GateRuleTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GateRuleType;
|
|
23
|
+
export declare function GateRuleTypeToJSON(value?: GateRuleType | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var GateRuleType;
|
|
20
|
+
(function (GateRuleType) {
|
|
21
|
+
GateRuleType["Nft"] = "nft";
|
|
22
|
+
GateRuleType["Token"] = "token";
|
|
23
|
+
})(GateRuleType || (GateRuleType = {}));
|
|
24
|
+
function GateRuleTypeFromJSON(json) {
|
|
25
|
+
return GateRuleTypeFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function GateRuleTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
function GateRuleTypeToJSON(value) {
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { GateRuleType, GateRuleTypeFromJSON, GateRuleTypeFromJSONTyped, GateRuleTypeToJSON };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var GateRule = require('./GateRule.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function GateUpdateRequestFromJSON(json) {
|
|
10
|
+
return GateUpdateRequestFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function GateUpdateRequestFromJSONTyped(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
|
+
'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(GateRule.GateRuleFromJSON)),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function GateUpdateRequestToJSON(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
|
+
'rules': value.rules === undefined ? undefined : (value.rules.map(GateRule.GateRuleToJSON)),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.GateUpdateRequestFromJSON = GateUpdateRequestFromJSON;
|
|
37
|
+
exports.GateUpdateRequestFromJSONTyped = GateUpdateRequestFromJSONTyped;
|
|
38
|
+
exports.GateUpdateRequestToJSON = GateUpdateRequestToJSON;
|
|
@@ -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 { GateRule } from './GateRule';
|
|
13
|
+
/**
|
|
14
|
+
* Request body to update an existing gate. This will not affect whether a gate is enabled or not.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GateUpdateRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface GateUpdateRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Human-readable name of the gate. This should be something helpful to organize gates.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GateUpdateRequest
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* String for the resulting scope of the gate. If the rules of the gate apply to the user being verified, then this scope will be surfaced in the JWT
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GateUpdateRequest
|
|
29
|
+
*/
|
|
30
|
+
scope?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The rules which will be used to evaluate users being verified. If multiple rules are present in a single gate, then all the rules need to apply for the user to gain the scope defined by the gate.
|
|
33
|
+
* @type {Array<GateRule>}
|
|
34
|
+
* @memberof GateUpdateRequest
|
|
35
|
+
*/
|
|
36
|
+
rules?: Array<GateRule>;
|
|
37
|
+
}
|
|
38
|
+
export declare function GateUpdateRequestFromJSON(json: any): GateUpdateRequest;
|
|
39
|
+
export declare function GateUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GateUpdateRequest;
|
|
40
|
+
export declare function GateUpdateRequestToJSON(value?: GateUpdateRequest | null): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { GateRuleFromJSON, GateRuleToJSON } from './GateRule.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function GateUpdateRequestFromJSON(json) {
|
|
6
|
+
return GateUpdateRequestFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function GateUpdateRequestFromJSONTyped(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
|
+
'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(GateRuleFromJSON)),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function GateUpdateRequestToJSON(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
|
+
'rules': value.rules === undefined ? undefined : (value.rules.map(GateRuleToJSON)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { GateUpdateRequestFromJSON, GateUpdateRequestFromJSONTyped, GateUpdateRequestToJSON };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var Gate = require('./Gate.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function GatesResponseFromJSON(json) {
|
|
10
|
+
return GatesResponseFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function GatesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'providers': !runtime.exists(json, 'providers') ? undefined : (json['providers'].map(Gate.GateFromJSON)),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function GatesResponseToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'providers': value.providers === undefined ? undefined : (value.providers.map(Gate.GateToJSON)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
exports.GatesResponseFromJSON = GatesResponseFromJSON;
|
|
33
|
+
exports.GatesResponseFromJSONTyped = GatesResponseFromJSONTyped;
|
|
34
|
+
exports.GatesResponseToJSON = GatesResponseToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { Gate } from './Gate';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GatesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GatesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<Gate>}
|
|
22
|
+
* @memberof GatesResponse
|
|
23
|
+
*/
|
|
24
|
+
providers?: Array<Gate>;
|
|
25
|
+
}
|
|
26
|
+
export declare function GatesResponseFromJSON(json: any): GatesResponse;
|
|
27
|
+
export declare function GatesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatesResponse;
|
|
28
|
+
export declare function GatesResponseToJSON(value?: GatesResponse | null): any;
|