@dynamic-labs/sdk-api 0.0.981 → 0.0.983
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/AdminActionsApi.cjs +3 -0
- package/src/apis/AdminActionsApi.js +3 -0
- package/src/apis/AllowlistsApi.cjs +3 -0
- package/src/apis/AllowlistsApi.js +3 -0
- package/src/apis/AnalyticsApi.cjs +3 -0
- package/src/apis/AnalyticsApi.js +3 -0
- package/src/apis/AuthorizedClientsApi.cjs +217 -0
- package/src/apis/AuthorizedClientsApi.d.ts +55 -0
- package/src/apis/AuthorizedClientsApi.js +213 -0
- package/src/apis/ChainalysisApi.cjs +3 -0
- package/src/apis/ChainalysisApi.js +3 -0
- package/src/apis/ChainsApi.cjs +3 -0
- package/src/apis/ChainsApi.js +3 -0
- package/src/apis/CheckoutApi.cjs +3 -0
- package/src/apis/CheckoutApi.js +3 -0
- package/src/apis/ClientGrantApi.cjs +250 -0
- package/src/apis/ClientGrantApi.d.ts +70 -0
- package/src/apis/ClientGrantApi.js +246 -0
- package/src/apis/CustomFieldsApi.cjs +3 -0
- package/src/apis/CustomFieldsApi.js +3 -0
- package/src/apis/CustomHostnamesApi.cjs +3 -0
- package/src/apis/CustomHostnamesApi.js +3 -0
- package/src/apis/CustomNetworksApi.cjs +3 -0
- package/src/apis/CustomNetworksApi.js +3 -0
- package/src/apis/DeeplinkUrlsApi.cjs +3 -0
- package/src/apis/DeeplinkUrlsApi.js +3 -0
- package/src/apis/EnvironmentsApi.cjs +3 -0
- package/src/apis/EnvironmentsApi.js +3 -0
- package/src/apis/EventsApi.cjs +3 -0
- package/src/apis/EventsApi.js +3 -0
- package/src/apis/ExchangesApi.cjs +3 -0
- package/src/apis/ExchangesApi.js +3 -0
- package/src/apis/ExportsApi.cjs +3 -0
- package/src/apis/ExportsApi.js +3 -0
- package/src/apis/ExternalJwtApi.cjs +3 -0
- package/src/apis/ExternalJwtApi.js +3 -0
- package/src/apis/GatesApi.cjs +3 -0
- package/src/apis/GatesApi.js +3 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +3 -0
- package/src/apis/GlobalWalletAccessControlApi.js +3 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +3 -0
- package/src/apis/GlobalWalletConnectionsApi.js +3 -0
- package/src/apis/GlobalWalletsApi.cjs +3 -0
- package/src/apis/GlobalWalletsApi.js +3 -0
- package/src/apis/InvitesApi.cjs +3 -0
- package/src/apis/InvitesApi.js +3 -0
- package/src/apis/MembersApi.cjs +3 -0
- package/src/apis/MembersApi.js +3 -0
- package/src/apis/MfaSettingsApi.cjs +3 -0
- package/src/apis/MfaSettingsApi.js +3 -0
- package/src/apis/NameServicesApi.cjs +3 -0
- package/src/apis/NameServicesApi.js +3 -0
- package/src/apis/OrganizationSettingsApi.cjs +3 -0
- package/src/apis/OrganizationSettingsApi.js +3 -0
- package/src/apis/OrganizationsApi.cjs +3 -0
- package/src/apis/OrganizationsApi.js +3 -0
- package/src/apis/OriginsApi.cjs +3 -0
- package/src/apis/OriginsApi.js +3 -0
- package/src/apis/ProjectsApi.cjs +3 -0
- package/src/apis/ProjectsApi.js +3 -0
- package/src/apis/ProvidersApi.cjs +3 -0
- package/src/apis/ProvidersApi.js +3 -0
- package/src/apis/SDKApi.cjs +3 -0
- package/src/apis/SDKApi.js +3 -0
- package/src/apis/SDKViewsApi.cjs +3 -0
- package/src/apis/SDKViewsApi.js +3 -0
- package/src/apis/SessionsApi.cjs +3 -0
- package/src/apis/SessionsApi.js +3 -0
- package/src/apis/TestAccountApi.cjs +3 -0
- package/src/apis/TestAccountApi.js +3 -0
- package/src/apis/TokensApi.cjs +3 -0
- package/src/apis/TokensApi.js +3 -0
- package/src/apis/UserApiTokensApi.cjs +3 -0
- package/src/apis/UserApiTokensApi.js +3 -0
- package/src/apis/UsersApi.cjs +3 -0
- package/src/apis/UsersApi.js +3 -0
- package/src/apis/VisitsApi.cjs +3 -0
- package/src/apis/VisitsApi.js +3 -0
- package/src/apis/WaasApi.cjs +3 -0
- package/src/apis/WaasApi.js +3 -0
- package/src/apis/WalletConnectApi.cjs +3 -0
- package/src/apis/WalletConnectApi.js +3 -0
- package/src/apis/WalletsApi.cjs +3 -0
- package/src/apis/WalletsApi.js +3 -0
- package/src/apis/WebhooksApi.cjs +3 -0
- package/src/apis/WebhooksApi.js +3 -0
- package/src/apis/index.d.ts +2 -0
- package/src/index.cjs +68 -0
- package/src/index.js +15 -0
- package/src/models/AuthorizedClient.cjs +54 -0
- package/src/models/AuthorizedClient.d.ts +94 -0
- package/src/models/AuthorizedClient.js +48 -0
- package/src/models/AuthorizedClientList.cjs +33 -0
- package/src/models/AuthorizedClientList.d.ts +28 -0
- package/src/models/AuthorizedClientList.js +27 -0
- package/src/models/ClientMetadata.cjs +39 -0
- package/src/models/ClientMetadata.d.ts +48 -0
- package/src/models/ClientMetadata.js +33 -0
- package/src/models/ClientTypeEnum.cjs +45 -0
- package/src/models/ClientTypeEnum.d.ts +28 -0
- package/src/models/ClientTypeEnum.js +39 -0
- package/src/models/GetEVMSponsoredTransactionStatusResponse.cjs +4 -8
- package/src/models/GetEVMSponsoredTransactionStatusResponse.d.ts +7 -11
- package/src/models/GetEVMSponsoredTransactionStatusResponse.js +4 -8
- package/src/models/GrantActionEnum.cjs +42 -0
- package/src/models/GrantActionEnum.d.ts +25 -0
- package/src/models/GrantActionEnum.js +36 -0
- package/src/models/GrantApproveRequest.cjs +35 -0
- package/src/models/GrantApproveRequest.d.ts +34 -0
- package/src/models/GrantApproveRequest.js +29 -0
- package/src/models/GrantApproveResponse.cjs +33 -0
- package/src/models/GrantApproveResponse.d.ts +28 -0
- package/src/models/GrantApproveResponse.js +27 -0
- package/src/models/GrantCodeRequest.cjs +37 -0
- package/src/models/GrantCodeRequest.d.ts +37 -0
- package/src/models/GrantCodeRequest.js +31 -0
- package/src/models/GrantCodeResponse.cjs +53 -0
- package/src/models/GrantCodeResponse.d.ts +59 -0
- package/src/models/GrantCodeResponse.js +47 -0
- package/src/models/GrantPeekResponse.cjs +37 -0
- package/src/models/GrantPeekResponse.d.ts +37 -0
- package/src/models/GrantPeekResponse.js +31 -0
- package/src/models/GrantTokenRequest.cjs +43 -0
- package/src/models/GrantTokenRequest.d.ts +27 -0
- package/src/models/GrantTokenRequest.js +37 -0
- package/src/models/GrantTokenResponse.cjs +49 -0
- package/src/models/GrantTokenResponse.d.ts +52 -0
- package/src/models/GrantTokenResponse.js +43 -0
- package/src/models/UpdateAuthorizedClientRequest.cjs +33 -0
- package/src/models/UpdateAuthorizedClientRequest.d.ts +27 -0
- package/src/models/UpdateAuthorizedClientRequest.js +27 -0
- package/src/models/index.d.ts +13 -0
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
function GrantCodeResponseFromJSON(json) {
|
|
15
|
+
return GrantCodeResponseFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function GrantCodeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'grantCode': json['grant_code'],
|
|
23
|
+
'userCode': json['user_code'],
|
|
24
|
+
'verificationUri': json['verification_uri'],
|
|
25
|
+
'verificationUriComplete': json['verification_uri_complete'],
|
|
26
|
+
'expiresIn': json['expires_in'],
|
|
27
|
+
'interval': json['interval'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function GrantCodeResponseToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'grant_code': value.grantCode,
|
|
39
|
+
'user_code': value.userCode,
|
|
40
|
+
'verification_uri': value.verificationUri,
|
|
41
|
+
'verification_uri_complete': value.verificationUriComplete,
|
|
42
|
+
'expires_in': value.expiresIn,
|
|
43
|
+
'interval': value.interval,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { GrantCodeResponseFromJSON, GrantCodeResponseFromJSONTyped, GrantCodeResponseToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var ClientMetadata = require('./ClientMetadata.cjs');
|
|
7
|
+
var ClientTypeEnum = require('./ClientTypeEnum.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function GrantPeekResponseFromJSON(json) {
|
|
11
|
+
return GrantPeekResponseFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function GrantPeekResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'clientType': ClientTypeEnum.ClientTypeEnumFromJSON(json['client_type']),
|
|
19
|
+
'clientMetadata': !runtime.exists(json, 'client_metadata') ? undefined : ClientMetadata.ClientMetadataFromJSON(json['client_metadata']),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function GrantPeekResponseToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'client_type': ClientTypeEnum.ClientTypeEnumToJSON(value.clientType),
|
|
31
|
+
'client_metadata': ClientMetadata.ClientMetadataToJSON(value.clientMetadata),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.GrantPeekResponseFromJSON = GrantPeekResponseFromJSON;
|
|
36
|
+
exports.GrantPeekResponseFromJSONTyped = GrantPeekResponseFromJSONTyped;
|
|
37
|
+
exports.GrantPeekResponseToJSON = GrantPeekResponseToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { ClientMetadata } from './ClientMetadata';
|
|
13
|
+
import { ClientTypeEnum } from './ClientTypeEnum';
|
|
14
|
+
/**
|
|
15
|
+
* Response from `GET /auth/grant/peek?user_code=...`. Used by the dashboard
|
|
16
|
+
* authorize page to render `Authorize {clientName}?` before the user clicks
|
|
17
|
+
* Approve. Does NOT return the grant_code — only the public-safe metadata.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GrantPeekResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface GrantPeekResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {ClientTypeEnum}
|
|
25
|
+
* @memberof GrantPeekResponse
|
|
26
|
+
*/
|
|
27
|
+
clientType: ClientTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ClientMetadata}
|
|
31
|
+
* @memberof GrantPeekResponse
|
|
32
|
+
*/
|
|
33
|
+
clientMetadata?: ClientMetadata;
|
|
34
|
+
}
|
|
35
|
+
export declare function GrantPeekResponseFromJSON(json: any): GrantPeekResponse;
|
|
36
|
+
export declare function GrantPeekResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantPeekResponse;
|
|
37
|
+
export declare function GrantPeekResponseToJSON(value?: GrantPeekResponse | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { ClientMetadataFromJSON, ClientMetadataToJSON } from './ClientMetadata.js';
|
|
3
|
+
import { ClientTypeEnumFromJSON, ClientTypeEnumToJSON } from './ClientTypeEnum.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
function GrantPeekResponseFromJSON(json) {
|
|
7
|
+
return GrantPeekResponseFromJSONTyped(json);
|
|
8
|
+
}
|
|
9
|
+
function GrantPeekResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if ((json === undefined) || (json === null)) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
'clientType': ClientTypeEnumFromJSON(json['client_type']),
|
|
15
|
+
'clientMetadata': !exists(json, 'client_metadata') ? undefined : ClientMetadataFromJSON(json['client_metadata']),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function GrantPeekResponseToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'client_type': ClientTypeEnumToJSON(value.clientType),
|
|
27
|
+
'client_metadata': ClientMetadataToJSON(value.clientMetadata),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { GrantPeekResponseFromJSON, GrantPeekResponseFromJSONTyped, GrantPeekResponseToJSON };
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
function GrantTokenRequestFromJSON(json) {
|
|
19
|
+
return GrantTokenRequestFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function GrantTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'grantCode': json['grant_code'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function GrantTokenRequestToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'grant_code': value.grantCode,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.GrantTokenRequestFromJSON = GrantTokenRequestFromJSON;
|
|
42
|
+
exports.GrantTokenRequestFromJSONTyped = GrantTokenRequestFromJSONTyped;
|
|
43
|
+
exports.GrantTokenRequestToJSON = GrantTokenRequestToJSON;
|
|
@@ -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
|
+
* Request body for `POST /auth/grant/token`.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GrantTokenRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GrantTokenRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GrantTokenRequest
|
|
22
|
+
*/
|
|
23
|
+
grantCode: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function GrantTokenRequestFromJSON(json: any): GrantTokenRequest;
|
|
26
|
+
export declare function GrantTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantTokenRequest;
|
|
27
|
+
export declare function GrantTokenRequestToJSON(value?: GrantTokenRequest | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
function GrantTokenRequestFromJSON(json) {
|
|
15
|
+
return GrantTokenRequestFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function GrantTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'grantCode': json['grant_code'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function GrantTokenRequestToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'grant_code': value.grantCode,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { GrantTokenRequestFromJSON, GrantTokenRequestFromJSONTyped, GrantTokenRequestToJSON };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
/**
|
|
9
|
+
* @export
|
|
10
|
+
* @enum {string}
|
|
11
|
+
*/
|
|
12
|
+
exports.GrantTokenResponseStatusEnum = void 0;
|
|
13
|
+
(function (GrantTokenResponseStatusEnum) {
|
|
14
|
+
GrantTokenResponseStatusEnum["AuthorizationPending"] = "authorization_pending";
|
|
15
|
+
GrantTokenResponseStatusEnum["Approved"] = "approved";
|
|
16
|
+
GrantTokenResponseStatusEnum["AccessDenied"] = "access_denied";
|
|
17
|
+
GrantTokenResponseStatusEnum["ExpiredToken"] = "expired_token";
|
|
18
|
+
GrantTokenResponseStatusEnum["SlowDown"] = "slow_down";
|
|
19
|
+
})(exports.GrantTokenResponseStatusEnum || (exports.GrantTokenResponseStatusEnum = {}));
|
|
20
|
+
function GrantTokenResponseFromJSON(json) {
|
|
21
|
+
return GrantTokenResponseFromJSONTyped(json);
|
|
22
|
+
}
|
|
23
|
+
function GrantTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'status': json['status'],
|
|
29
|
+
'jwt': !runtime.exists(json, 'jwt') ? undefined : json['jwt'],
|
|
30
|
+
'tokenType': !runtime.exists(json, 'token_type') ? undefined : json['token_type'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function GrantTokenResponseToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'status': value.status,
|
|
42
|
+
'jwt': value.jwt,
|
|
43
|
+
'token_type': value.tokenType,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
exports.GrantTokenResponseFromJSON = GrantTokenResponseFromJSON;
|
|
48
|
+
exports.GrantTokenResponseFromJSONTyped = GrantTokenResponseFromJSONTyped;
|
|
49
|
+
exports.GrantTokenResponseToJSON = GrantTokenResponseToJSON;
|
|
@@ -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
|
+
/**
|
|
13
|
+
* Response from `POST /auth/grant/token`. The `status` field follows
|
|
14
|
+
* RFC 8628's "error-via-200" convention so the client can branch its polling
|
|
15
|
+
* loop on `status` without interpreting HTTP error codes.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GrantTokenResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface GrantTokenResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Current state of the grant.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GrantTokenResponse
|
|
24
|
+
*/
|
|
25
|
+
status: GrantTokenResponseStatusEnum;
|
|
26
|
+
/**
|
|
27
|
+
* The minted client JWT. Present only when `status === "approved"`.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GrantTokenResponse
|
|
30
|
+
*/
|
|
31
|
+
jwt?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Always `bearer` when a token is returned.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GrantTokenResponse
|
|
36
|
+
*/
|
|
37
|
+
tokenType?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
* @enum {string}
|
|
42
|
+
*/
|
|
43
|
+
export declare enum GrantTokenResponseStatusEnum {
|
|
44
|
+
AuthorizationPending = "authorization_pending",
|
|
45
|
+
Approved = "approved",
|
|
46
|
+
AccessDenied = "access_denied",
|
|
47
|
+
ExpiredToken = "expired_token",
|
|
48
|
+
SlowDown = "slow_down"
|
|
49
|
+
}
|
|
50
|
+
export declare function GrantTokenResponseFromJSON(json: any): GrantTokenResponse;
|
|
51
|
+
export declare function GrantTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantTokenResponse;
|
|
52
|
+
export declare function GrantTokenResponseToJSON(value?: GrantTokenResponse | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/**
|
|
5
|
+
* @export
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*/
|
|
8
|
+
var GrantTokenResponseStatusEnum;
|
|
9
|
+
(function (GrantTokenResponseStatusEnum) {
|
|
10
|
+
GrantTokenResponseStatusEnum["AuthorizationPending"] = "authorization_pending";
|
|
11
|
+
GrantTokenResponseStatusEnum["Approved"] = "approved";
|
|
12
|
+
GrantTokenResponseStatusEnum["AccessDenied"] = "access_denied";
|
|
13
|
+
GrantTokenResponseStatusEnum["ExpiredToken"] = "expired_token";
|
|
14
|
+
GrantTokenResponseStatusEnum["SlowDown"] = "slow_down";
|
|
15
|
+
})(GrantTokenResponseStatusEnum || (GrantTokenResponseStatusEnum = {}));
|
|
16
|
+
function GrantTokenResponseFromJSON(json) {
|
|
17
|
+
return GrantTokenResponseFromJSONTyped(json);
|
|
18
|
+
}
|
|
19
|
+
function GrantTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
20
|
+
if ((json === undefined) || (json === null)) {
|
|
21
|
+
return json;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'status': json['status'],
|
|
25
|
+
'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
|
|
26
|
+
'tokenType': !exists(json, 'token_type') ? undefined : json['token_type'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function GrantTokenResponseToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'status': value.status,
|
|
38
|
+
'jwt': value.jwt,
|
|
39
|
+
'token_type': value.tokenType,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { GrantTokenResponseFromJSON, GrantTokenResponseFromJSONTyped, GrantTokenResponseStatusEnum, GrantTokenResponseToJSON };
|
|
@@ -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 UpdateAuthorizedClientRequestFromJSON(json) {
|
|
9
|
+
return UpdateAuthorizedClientRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function UpdateAuthorizedClientRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'label': !runtime.exists(json, 'label') ? undefined : json['label'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function UpdateAuthorizedClientRequestToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'label': value.label,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.UpdateAuthorizedClientRequestFromJSON = UpdateAuthorizedClientRequestFromJSON;
|
|
32
|
+
exports.UpdateAuthorizedClientRequestFromJSONTyped = UpdateAuthorizedClientRequestFromJSONTyped;
|
|
33
|
+
exports.UpdateAuthorizedClientRequestToJSON = UpdateAuthorizedClientRequestToJSON;
|
|
@@ -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
|
+
* Request body for `PATCH /auth/clients/{authorizedClientId}`.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateAuthorizedClientRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateAuthorizedClientRequest {
|
|
18
|
+
/**
|
|
19
|
+
* New user-editable label. Pass null to clear.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateAuthorizedClientRequest
|
|
22
|
+
*/
|
|
23
|
+
label?: string | null;
|
|
24
|
+
}
|
|
25
|
+
export declare function UpdateAuthorizedClientRequestFromJSON(json: any): UpdateAuthorizedClientRequest;
|
|
26
|
+
export declare function UpdateAuthorizedClientRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAuthorizedClientRequest;
|
|
27
|
+
export declare function UpdateAuthorizedClientRequestToJSON(value?: UpdateAuthorizedClientRequest | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function UpdateAuthorizedClientRequestFromJSON(json) {
|
|
5
|
+
return UpdateAuthorizedClientRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function UpdateAuthorizedClientRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'label': !exists(json, 'label') ? undefined : json['label'],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function UpdateAuthorizedClientRequestToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'label': value.label,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { UpdateAuthorizedClientRequestFromJSON, UpdateAuthorizedClientRequestFromJSONTyped, UpdateAuthorizedClientRequestToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export * from './AuthenticatorAttachment';
|
|
|
59
59
|
export * from './AuthenticatorAttestationResponse';
|
|
60
60
|
export * from './AuthenticatorSelectionCriteria';
|
|
61
61
|
export * from './AuthenticatorTransportProtocol';
|
|
62
|
+
export * from './AuthorizedClient';
|
|
63
|
+
export * from './AuthorizedClientList';
|
|
62
64
|
export * from './BackupKeySharesToLocationRequest';
|
|
63
65
|
export * from './BackupKeySharesToLocationResponse';
|
|
64
66
|
export * from './BackupKeySharesToLocationsPendingResponse';
|
|
@@ -105,6 +107,8 @@ export * from './CheckoutTransactionExchangeSource';
|
|
|
105
107
|
export * from './CheckoutTransactionQuote';
|
|
106
108
|
export * from './CheckoutUpdateRequest';
|
|
107
109
|
export * from './CheckoutsResponse';
|
|
110
|
+
export * from './ClientMetadata';
|
|
111
|
+
export * from './ClientTypeEnum';
|
|
108
112
|
export * from './CoinbaseMpcWalletProperties';
|
|
109
113
|
export * from './CoinbaseOnrampBuyUrlExperience';
|
|
110
114
|
export * from './CoinbaseOnrampFee';
|
|
@@ -276,6 +280,14 @@ export * from './GlobalWalletSettings';
|
|
|
276
280
|
export * from './GlobalWalletSettingsCreateRequest';
|
|
277
281
|
export * from './GlobalWalletSettingsCreateRequestCustomMenuLinks';
|
|
278
282
|
export * from './GlobalWalletSettingsUpdateRequest';
|
|
283
|
+
export * from './GrantActionEnum';
|
|
284
|
+
export * from './GrantApproveRequest';
|
|
285
|
+
export * from './GrantApproveResponse';
|
|
286
|
+
export * from './GrantCodeRequest';
|
|
287
|
+
export * from './GrantCodeResponse';
|
|
288
|
+
export * from './GrantPeekResponse';
|
|
289
|
+
export * from './GrantTokenRequest';
|
|
290
|
+
export * from './GrantTokenResponse';
|
|
279
291
|
export * from './HCaptchaSettings';
|
|
280
292
|
export * from './HardwareWalletEnum';
|
|
281
293
|
export * from './HardwareWalletProperties';
|
|
@@ -611,6 +623,7 @@ export * from './Unauthorized';
|
|
|
611
623
|
export * from './UnprocessableEntity';
|
|
612
624
|
export * from './UnprocessableEntityErrorCode';
|
|
613
625
|
export * from './UnprocessableEntityErrorPayload';
|
|
626
|
+
export * from './UpdateAuthorizedClientRequest';
|
|
614
627
|
export * from './UpdateProjectRequest';
|
|
615
628
|
export * from './UpdateProjectResponse';
|
|
616
629
|
export * from './UpdateRecoveryEmailRequest';
|