@dynamic-labs/sdk-api 0.0.982 → 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.
Files changed (133) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +3 -0
  3. package/src/apis/AdminActionsApi.js +3 -0
  4. package/src/apis/AllowlistsApi.cjs +3 -0
  5. package/src/apis/AllowlistsApi.js +3 -0
  6. package/src/apis/AnalyticsApi.cjs +3 -0
  7. package/src/apis/AnalyticsApi.js +3 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +217 -0
  9. package/src/apis/AuthorizedClientsApi.d.ts +55 -0
  10. package/src/apis/AuthorizedClientsApi.js +213 -0
  11. package/src/apis/ChainalysisApi.cjs +3 -0
  12. package/src/apis/ChainalysisApi.js +3 -0
  13. package/src/apis/ChainsApi.cjs +3 -0
  14. package/src/apis/ChainsApi.js +3 -0
  15. package/src/apis/CheckoutApi.cjs +3 -0
  16. package/src/apis/CheckoutApi.js +3 -0
  17. package/src/apis/ClientGrantApi.cjs +250 -0
  18. package/src/apis/ClientGrantApi.d.ts +70 -0
  19. package/src/apis/ClientGrantApi.js +246 -0
  20. package/src/apis/CustomFieldsApi.cjs +3 -0
  21. package/src/apis/CustomFieldsApi.js +3 -0
  22. package/src/apis/CustomHostnamesApi.cjs +3 -0
  23. package/src/apis/CustomHostnamesApi.js +3 -0
  24. package/src/apis/CustomNetworksApi.cjs +3 -0
  25. package/src/apis/CustomNetworksApi.js +3 -0
  26. package/src/apis/DeeplinkUrlsApi.cjs +3 -0
  27. package/src/apis/DeeplinkUrlsApi.js +3 -0
  28. package/src/apis/EnvironmentsApi.cjs +3 -0
  29. package/src/apis/EnvironmentsApi.js +3 -0
  30. package/src/apis/EventsApi.cjs +3 -0
  31. package/src/apis/EventsApi.js +3 -0
  32. package/src/apis/ExchangesApi.cjs +3 -0
  33. package/src/apis/ExchangesApi.js +3 -0
  34. package/src/apis/ExportsApi.cjs +3 -0
  35. package/src/apis/ExportsApi.js +3 -0
  36. package/src/apis/ExternalJwtApi.cjs +3 -0
  37. package/src/apis/ExternalJwtApi.js +3 -0
  38. package/src/apis/GatesApi.cjs +3 -0
  39. package/src/apis/GatesApi.js +3 -0
  40. package/src/apis/GlobalWalletAccessControlApi.cjs +3 -0
  41. package/src/apis/GlobalWalletAccessControlApi.js +3 -0
  42. package/src/apis/GlobalWalletConnectionsApi.cjs +3 -0
  43. package/src/apis/GlobalWalletConnectionsApi.js +3 -0
  44. package/src/apis/GlobalWalletsApi.cjs +3 -0
  45. package/src/apis/GlobalWalletsApi.js +3 -0
  46. package/src/apis/InvitesApi.cjs +3 -0
  47. package/src/apis/InvitesApi.js +3 -0
  48. package/src/apis/MembersApi.cjs +3 -0
  49. package/src/apis/MembersApi.js +3 -0
  50. package/src/apis/MfaSettingsApi.cjs +3 -0
  51. package/src/apis/MfaSettingsApi.js +3 -0
  52. package/src/apis/NameServicesApi.cjs +3 -0
  53. package/src/apis/NameServicesApi.js +3 -0
  54. package/src/apis/OrganizationSettingsApi.cjs +3 -0
  55. package/src/apis/OrganizationSettingsApi.js +3 -0
  56. package/src/apis/OrganizationsApi.cjs +3 -0
  57. package/src/apis/OrganizationsApi.js +3 -0
  58. package/src/apis/OriginsApi.cjs +3 -0
  59. package/src/apis/OriginsApi.js +3 -0
  60. package/src/apis/ProjectsApi.cjs +3 -0
  61. package/src/apis/ProjectsApi.js +3 -0
  62. package/src/apis/ProvidersApi.cjs +3 -0
  63. package/src/apis/ProvidersApi.js +3 -0
  64. package/src/apis/SDKApi.cjs +3 -0
  65. package/src/apis/SDKApi.js +3 -0
  66. package/src/apis/SDKViewsApi.cjs +3 -0
  67. package/src/apis/SDKViewsApi.js +3 -0
  68. package/src/apis/SessionsApi.cjs +3 -0
  69. package/src/apis/SessionsApi.js +3 -0
  70. package/src/apis/TestAccountApi.cjs +3 -0
  71. package/src/apis/TestAccountApi.js +3 -0
  72. package/src/apis/TokensApi.cjs +3 -0
  73. package/src/apis/TokensApi.js +3 -0
  74. package/src/apis/UserApiTokensApi.cjs +3 -0
  75. package/src/apis/UserApiTokensApi.js +3 -0
  76. package/src/apis/UsersApi.cjs +3 -0
  77. package/src/apis/UsersApi.js +3 -0
  78. package/src/apis/VisitsApi.cjs +3 -0
  79. package/src/apis/VisitsApi.js +3 -0
  80. package/src/apis/WaasApi.cjs +3 -0
  81. package/src/apis/WaasApi.js +3 -0
  82. package/src/apis/WalletConnectApi.cjs +3 -0
  83. package/src/apis/WalletConnectApi.js +3 -0
  84. package/src/apis/WalletsApi.cjs +3 -0
  85. package/src/apis/WalletsApi.js +3 -0
  86. package/src/apis/WebhooksApi.cjs +3 -0
  87. package/src/apis/WebhooksApi.js +3 -0
  88. package/src/apis/index.d.ts +2 -0
  89. package/src/index.cjs +68 -0
  90. package/src/index.js +15 -0
  91. package/src/models/AuthorizedClient.cjs +54 -0
  92. package/src/models/AuthorizedClient.d.ts +94 -0
  93. package/src/models/AuthorizedClient.js +48 -0
  94. package/src/models/AuthorizedClientList.cjs +33 -0
  95. package/src/models/AuthorizedClientList.d.ts +28 -0
  96. package/src/models/AuthorizedClientList.js +27 -0
  97. package/src/models/ClientMetadata.cjs +39 -0
  98. package/src/models/ClientMetadata.d.ts +48 -0
  99. package/src/models/ClientMetadata.js +33 -0
  100. package/src/models/ClientTypeEnum.cjs +45 -0
  101. package/src/models/ClientTypeEnum.d.ts +28 -0
  102. package/src/models/ClientTypeEnum.js +39 -0
  103. package/src/models/GetEVMSponsoredTransactionStatusResponse.cjs +4 -8
  104. package/src/models/GetEVMSponsoredTransactionStatusResponse.d.ts +7 -11
  105. package/src/models/GetEVMSponsoredTransactionStatusResponse.js +4 -8
  106. package/src/models/GrantActionEnum.cjs +42 -0
  107. package/src/models/GrantActionEnum.d.ts +25 -0
  108. package/src/models/GrantActionEnum.js +36 -0
  109. package/src/models/GrantApproveRequest.cjs +35 -0
  110. package/src/models/GrantApproveRequest.d.ts +34 -0
  111. package/src/models/GrantApproveRequest.js +29 -0
  112. package/src/models/GrantApproveResponse.cjs +33 -0
  113. package/src/models/GrantApproveResponse.d.ts +28 -0
  114. package/src/models/GrantApproveResponse.js +27 -0
  115. package/src/models/GrantCodeRequest.cjs +37 -0
  116. package/src/models/GrantCodeRequest.d.ts +37 -0
  117. package/src/models/GrantCodeRequest.js +31 -0
  118. package/src/models/GrantCodeResponse.cjs +53 -0
  119. package/src/models/GrantCodeResponse.d.ts +59 -0
  120. package/src/models/GrantCodeResponse.js +47 -0
  121. package/src/models/GrantPeekResponse.cjs +37 -0
  122. package/src/models/GrantPeekResponse.d.ts +37 -0
  123. package/src/models/GrantPeekResponse.js +31 -0
  124. package/src/models/GrantTokenRequest.cjs +43 -0
  125. package/src/models/GrantTokenRequest.d.ts +27 -0
  126. package/src/models/GrantTokenRequest.js +37 -0
  127. package/src/models/GrantTokenResponse.cjs +49 -0
  128. package/src/models/GrantTokenResponse.d.ts +52 -0
  129. package/src/models/GrantTokenResponse.js +43 -0
  130. package/src/models/UpdateAuthorizedClientRequest.cjs +33 -0
  131. package/src/models/UpdateAuthorizedClientRequest.d.ts +27 -0
  132. package/src/models/UpdateAuthorizedClientRequest.js +27 -0
  133. package/src/models/index.d.ts +13 -0
@@ -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
+ /**
13
+ * Type of first-party client being authorized. `cli` for the dyn CLI,
14
+ * `mcp` for an MCP server, `demo` for demo applications oauth-ing into
15
+ * redcoast, `ide-plugin` for editor extensions, and `other` as a catch-all.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export declare enum ClientTypeEnum {
20
+ Cli = "cli",
21
+ Mcp = "mcp",
22
+ Demo = "demo",
23
+ IdePlugin = "ide-plugin",
24
+ Other = "other"
25
+ }
26
+ export declare function ClientTypeEnumFromJSON(json: any): ClientTypeEnum;
27
+ export declare function ClientTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientTypeEnum;
28
+ export declare function ClientTypeEnumToJSON(value?: ClientTypeEnum | null): any;
@@ -0,0 +1,39 @@
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
+ * Type of first-party client being authorized. `cli` for the dyn CLI,
16
+ * `mcp` for an MCP server, `demo` for demo applications oauth-ing into
17
+ * redcoast, `ide-plugin` for editor extensions, and `other` as a catch-all.
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var ClientTypeEnum;
22
+ (function (ClientTypeEnum) {
23
+ ClientTypeEnum["Cli"] = "cli";
24
+ ClientTypeEnum["Mcp"] = "mcp";
25
+ ClientTypeEnum["Demo"] = "demo";
26
+ ClientTypeEnum["IdePlugin"] = "ide-plugin";
27
+ ClientTypeEnum["Other"] = "other";
28
+ })(ClientTypeEnum || (ClientTypeEnum = {}));
29
+ function ClientTypeEnumFromJSON(json) {
30
+ return ClientTypeEnumFromJSONTyped(json);
31
+ }
32
+ function ClientTypeEnumFromJSONTyped(json, ignoreDiscriminator) {
33
+ return json;
34
+ }
35
+ function ClientTypeEnumToJSON(value) {
36
+ return value;
37
+ }
38
+
39
+ export { ClientTypeEnum, ClientTypeEnumFromJSON, ClientTypeEnumFromJSONTyped, ClientTypeEnumToJSON };
@@ -11,14 +11,10 @@ var runtime = require('../runtime.cjs');
11
11
  */
12
12
  exports.GetEVMSponsoredTransactionStatusResponseStatusEnum = void 0;
13
13
  (function (GetEVMSponsoredTransactionStatusResponseStatusEnum) {
14
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Canceled"] = "CANCELED";
15
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Confirmed"] = "CONFIRMED";
16
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Expired"] = "EXPIRED";
17
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Failed"] = "FAILED";
18
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Pending"] = "PENDING";
19
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Rejected"] = "REJECTED";
20
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Sent"] = "SENT";
21
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Submitted"] = "SUBMITTED";
14
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Pending"] = "pending";
15
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Submitted"] = "submitted";
16
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Success"] = "success";
17
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Failure"] = "failure";
22
18
  })(exports.GetEVMSponsoredTransactionStatusResponseStatusEnum || (exports.GetEVMSponsoredTransactionStatusResponseStatusEnum = {}));
23
19
  function GetEVMSponsoredTransactionStatusResponseFromJSON(json) {
24
20
  return GetEVMSponsoredTransactionStatusResponseFromJSONTyped(json);
@@ -16,19 +16,19 @@
16
16
  */
17
17
  export interface GetEVMSponsoredTransactionStatusResponse {
18
18
  /**
19
- * Error message if the transaction was rejected or reverted
19
+ * Error message describing the failure
20
20
  * @type {string}
21
21
  * @memberof GetEVMSponsoredTransactionStatusResponse
22
22
  */
23
23
  errorMessage?: string;
24
24
  /**
25
- * Current status of the relay request
25
+ * Current state of the relay request
26
26
  * @type {string}
27
27
  * @memberof GetEVMSponsoredTransactionStatusResponse
28
28
  */
29
29
  status: GetEVMSponsoredTransactionStatusResponseStatusEnum;
30
30
  /**
31
- * On-chain transaction hash once confirmed or reverted
31
+ * On-chain transaction hash
32
32
  * @type {string}
33
33
  * @memberof GetEVMSponsoredTransactionStatusResponse
34
34
  */
@@ -39,14 +39,10 @@ export interface GetEVMSponsoredTransactionStatusResponse {
39
39
  * @enum {string}
40
40
  */
41
41
  export declare enum GetEVMSponsoredTransactionStatusResponseStatusEnum {
42
- Canceled = "CANCELED",
43
- Confirmed = "CONFIRMED",
44
- Expired = "EXPIRED",
45
- Failed = "FAILED",
46
- Pending = "PENDING",
47
- Rejected = "REJECTED",
48
- Sent = "SENT",
49
- Submitted = "SUBMITTED"
42
+ Pending = "pending",
43
+ Submitted = "submitted",
44
+ Success = "success",
45
+ Failure = "failure"
50
46
  }
51
47
  export declare function GetEVMSponsoredTransactionStatusResponseFromJSON(json: any): GetEVMSponsoredTransactionStatusResponse;
52
48
  export declare function GetEVMSponsoredTransactionStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEVMSponsoredTransactionStatusResponse;
@@ -7,14 +7,10 @@ import { exists } from '../runtime.js';
7
7
  */
8
8
  var GetEVMSponsoredTransactionStatusResponseStatusEnum;
9
9
  (function (GetEVMSponsoredTransactionStatusResponseStatusEnum) {
10
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Canceled"] = "CANCELED";
11
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Confirmed"] = "CONFIRMED";
12
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Expired"] = "EXPIRED";
13
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Failed"] = "FAILED";
14
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Pending"] = "PENDING";
15
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Rejected"] = "REJECTED";
16
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Sent"] = "SENT";
17
- GetEVMSponsoredTransactionStatusResponseStatusEnum["Submitted"] = "SUBMITTED";
10
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Pending"] = "pending";
11
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Submitted"] = "submitted";
12
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Success"] = "success";
13
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Failure"] = "failure";
18
14
  })(GetEVMSponsoredTransactionStatusResponseStatusEnum || (GetEVMSponsoredTransactionStatusResponseStatusEnum = {}));
19
15
  function GetEVMSponsoredTransactionStatusResponseFromJSON(json) {
20
16
  return GetEVMSponsoredTransactionStatusResponseFromJSONTyped(json);
@@ -0,0 +1,42 @@
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
+ * Outcome of an `/auth/grant/approve` call. `approve` mints a fresh client
20
+ * JWT and stores it against the grant for the polling client to collect;
21
+ * `deny` records an `access_denied` terminal status.
22
+ * @export
23
+ * @enum {string}
24
+ */
25
+ exports.GrantActionEnum = void 0;
26
+ (function (GrantActionEnum) {
27
+ GrantActionEnum["Approve"] = "approve";
28
+ GrantActionEnum["Deny"] = "deny";
29
+ })(exports.GrantActionEnum || (exports.GrantActionEnum = {}));
30
+ function GrantActionEnumFromJSON(json) {
31
+ return GrantActionEnumFromJSONTyped(json);
32
+ }
33
+ function GrantActionEnumFromJSONTyped(json, ignoreDiscriminator) {
34
+ return json;
35
+ }
36
+ function GrantActionEnumToJSON(value) {
37
+ return value;
38
+ }
39
+
40
+ exports.GrantActionEnumFromJSON = GrantActionEnumFromJSON;
41
+ exports.GrantActionEnumFromJSONTyped = GrantActionEnumFromJSONTyped;
42
+ exports.GrantActionEnumToJSON = GrantActionEnumToJSON;
@@ -0,0 +1,25 @@
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
+ * Outcome of an `/auth/grant/approve` call. `approve` mints a fresh client
14
+ * JWT and stores it against the grant for the polling client to collect;
15
+ * `deny` records an `access_denied` terminal status.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export declare enum GrantActionEnum {
20
+ Approve = "approve",
21
+ Deny = "deny"
22
+ }
23
+ export declare function GrantActionEnumFromJSON(json: any): GrantActionEnum;
24
+ export declare function GrantActionEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantActionEnum;
25
+ export declare function GrantActionEnumToJSON(value?: GrantActionEnum | null): any;
@@ -0,0 +1,36 @@
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
+ * Outcome of an `/auth/grant/approve` call. `approve` mints a fresh client
16
+ * JWT and stores it against the grant for the polling client to collect;
17
+ * `deny` records an `access_denied` terminal status.
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var GrantActionEnum;
22
+ (function (GrantActionEnum) {
23
+ GrantActionEnum["Approve"] = "approve";
24
+ GrantActionEnum["Deny"] = "deny";
25
+ })(GrantActionEnum || (GrantActionEnum = {}));
26
+ function GrantActionEnumFromJSON(json) {
27
+ return GrantActionEnumFromJSONTyped(json);
28
+ }
29
+ function GrantActionEnumFromJSONTyped(json, ignoreDiscriminator) {
30
+ return json;
31
+ }
32
+ function GrantActionEnumToJSON(value) {
33
+ return value;
34
+ }
35
+
36
+ export { GrantActionEnum, GrantActionEnumFromJSON, GrantActionEnumFromJSONTyped, GrantActionEnumToJSON };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var GrantActionEnum = require('./GrantActionEnum.cjs');
6
+
7
+ /* tslint:disable */
8
+ function GrantApproveRequestFromJSON(json) {
9
+ return GrantApproveRequestFromJSONTyped(json);
10
+ }
11
+ function GrantApproveRequestFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'userCode': json['user_code'],
17
+ 'action': GrantActionEnum.GrantActionEnumFromJSON(json['action']),
18
+ };
19
+ }
20
+ function GrantApproveRequestToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'user_code': value.userCode,
29
+ 'action': GrantActionEnum.GrantActionEnumToJSON(value.action),
30
+ };
31
+ }
32
+
33
+ exports.GrantApproveRequestFromJSON = GrantApproveRequestFromJSON;
34
+ exports.GrantApproveRequestFromJSONTyped = GrantApproveRequestFromJSONTyped;
35
+ exports.GrantApproveRequestToJSON = GrantApproveRequestToJSON;
@@ -0,0 +1,34 @@
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 { GrantActionEnum } from './GrantActionEnum';
13
+ /**
14
+ * Request body for `POST /auth/grant/approve`.
15
+ * @export
16
+ * @interface GrantApproveRequest
17
+ */
18
+ export interface GrantApproveRequest {
19
+ /**
20
+ * The user_code displayed in the client's terminal/UI.
21
+ * @type {string}
22
+ * @memberof GrantApproveRequest
23
+ */
24
+ userCode: string;
25
+ /**
26
+ *
27
+ * @type {GrantActionEnum}
28
+ * @memberof GrantApproveRequest
29
+ */
30
+ action: GrantActionEnum;
31
+ }
32
+ export declare function GrantApproveRequestFromJSON(json: any): GrantApproveRequest;
33
+ export declare function GrantApproveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantApproveRequest;
34
+ export declare function GrantApproveRequestToJSON(value?: GrantApproveRequest | null): any;
@@ -0,0 +1,29 @@
1
+ import { GrantActionEnumFromJSON, GrantActionEnumToJSON } from './GrantActionEnum.js';
2
+
3
+ /* tslint:disable */
4
+ function GrantApproveRequestFromJSON(json) {
5
+ return GrantApproveRequestFromJSONTyped(json);
6
+ }
7
+ function GrantApproveRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'userCode': json['user_code'],
13
+ 'action': GrantActionEnumFromJSON(json['action']),
14
+ };
15
+ }
16
+ function GrantApproveRequestToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'user_code': value.userCode,
25
+ 'action': GrantActionEnumToJSON(value.action),
26
+ };
27
+ }
28
+
29
+ export { GrantApproveRequestFromJSON, GrantApproveRequestFromJSONTyped, GrantApproveRequestToJSON };
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var GrantActionEnum = require('./GrantActionEnum.cjs');
6
+
7
+ /* tslint:disable */
8
+ function GrantApproveResponseFromJSON(json) {
9
+ return GrantApproveResponseFromJSONTyped(json);
10
+ }
11
+ function GrantApproveResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'status': GrantActionEnum.GrantActionEnumFromJSON(json['status']),
17
+ };
18
+ }
19
+ function GrantApproveResponseToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'status': GrantActionEnum.GrantActionEnumToJSON(value.status),
28
+ };
29
+ }
30
+
31
+ exports.GrantApproveResponseFromJSON = GrantApproveResponseFromJSON;
32
+ exports.GrantApproveResponseFromJSONTyped = GrantApproveResponseFromJSONTyped;
33
+ exports.GrantApproveResponseToJSON = GrantApproveResponseToJSON;
@@ -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 { GrantActionEnum } from './GrantActionEnum';
13
+ /**
14
+ * Response from `POST /auth/grant/approve`.
15
+ * @export
16
+ * @interface GrantApproveResponse
17
+ */
18
+ export interface GrantApproveResponse {
19
+ /**
20
+ *
21
+ * @type {GrantActionEnum}
22
+ * @memberof GrantApproveResponse
23
+ */
24
+ status: GrantActionEnum;
25
+ }
26
+ export declare function GrantApproveResponseFromJSON(json: any): GrantApproveResponse;
27
+ export declare function GrantApproveResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantApproveResponse;
28
+ export declare function GrantApproveResponseToJSON(value?: GrantApproveResponse | null): any;
@@ -0,0 +1,27 @@
1
+ import { GrantActionEnumFromJSON, GrantActionEnumToJSON } from './GrantActionEnum.js';
2
+
3
+ /* tslint:disable */
4
+ function GrantApproveResponseFromJSON(json) {
5
+ return GrantApproveResponseFromJSONTyped(json);
6
+ }
7
+ function GrantApproveResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'status': GrantActionEnumFromJSON(json['status']),
13
+ };
14
+ }
15
+ function GrantApproveResponseToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'status': GrantActionEnumToJSON(value.status),
24
+ };
25
+ }
26
+
27
+ export { GrantApproveResponseFromJSON, GrantApproveResponseFromJSONTyped, GrantApproveResponseToJSON };
@@ -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 GrantCodeRequestFromJSON(json) {
11
+ return GrantCodeRequestFromJSONTyped(json);
12
+ }
13
+ function GrantCodeRequestFromJSONTyped(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 GrantCodeRequestToJSON(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.GrantCodeRequestFromJSON = GrantCodeRequestFromJSON;
36
+ exports.GrantCodeRequestFromJSONTyped = GrantCodeRequestFromJSONTyped;
37
+ exports.GrantCodeRequestToJSON = GrantCodeRequestToJSON;
@@ -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
+ * Request body for `POST /auth/grant/code`. `client_type` is required so the
16
+ * authorizing user always sees what kind of client they are approving; pass
17
+ * `other` if no specific category fits.
18
+ * @export
19
+ * @interface GrantCodeRequest
20
+ */
21
+ export interface GrantCodeRequest {
22
+ /**
23
+ *
24
+ * @type {ClientTypeEnum}
25
+ * @memberof GrantCodeRequest
26
+ */
27
+ clientType: ClientTypeEnum;
28
+ /**
29
+ *
30
+ * @type {ClientMetadata}
31
+ * @memberof GrantCodeRequest
32
+ */
33
+ clientMetadata?: ClientMetadata;
34
+ }
35
+ export declare function GrantCodeRequestFromJSON(json: any): GrantCodeRequest;
36
+ export declare function GrantCodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantCodeRequest;
37
+ export declare function GrantCodeRequestToJSON(value?: GrantCodeRequest | 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 GrantCodeRequestFromJSON(json) {
7
+ return GrantCodeRequestFromJSONTyped(json);
8
+ }
9
+ function GrantCodeRequestFromJSONTyped(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 GrantCodeRequestToJSON(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 { GrantCodeRequestFromJSON, GrantCodeRequestFromJSONTyped, GrantCodeRequestToJSON };
@@ -0,0 +1,53 @@
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 GrantCodeResponseFromJSON(json) {
19
+ return GrantCodeResponseFromJSONTyped(json);
20
+ }
21
+ function GrantCodeResponseFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'grantCode': json['grant_code'],
27
+ 'userCode': json['user_code'],
28
+ 'verificationUri': json['verification_uri'],
29
+ 'verificationUriComplete': json['verification_uri_complete'],
30
+ 'expiresIn': json['expires_in'],
31
+ 'interval': json['interval'],
32
+ };
33
+ }
34
+ function GrantCodeResponseToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'grant_code': value.grantCode,
43
+ 'user_code': value.userCode,
44
+ 'verification_uri': value.verificationUri,
45
+ 'verification_uri_complete': value.verificationUriComplete,
46
+ 'expires_in': value.expiresIn,
47
+ 'interval': value.interval,
48
+ };
49
+ }
50
+
51
+ exports.GrantCodeResponseFromJSON = GrantCodeResponseFromJSON;
52
+ exports.GrantCodeResponseFromJSONTyped = GrantCodeResponseFromJSONTyped;
53
+ exports.GrantCodeResponseToJSON = GrantCodeResponseToJSON;
@@ -0,0 +1,59 @@
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/code`. Returns the long-secret `grant_code`
14
+ * that only the polling client should ever see, plus a short `user_code`
15
+ * that the user verifies on the dashboard authorize page.
16
+ * @export
17
+ * @interface GrantCodeResponse
18
+ */
19
+ export interface GrantCodeResponse {
20
+ /**
21
+ * Long random secret used by the client to poll for the result.
22
+ * @type {string}
23
+ * @memberof GrantCodeResponse
24
+ */
25
+ grantCode: string;
26
+ /**
27
+ * Short code shown to the user (`XXXX-XXXX`, no ambiguous chars).
28
+ * @type {string}
29
+ * @memberof GrantCodeResponse
30
+ */
31
+ userCode: string;
32
+ /**
33
+ * Where the user goes to authorize the request.
34
+ * @type {string}
35
+ * @memberof GrantCodeResponse
36
+ */
37
+ verificationUri: string;
38
+ /**
39
+ * `verification_uri` with `?code={user_code}` appended.
40
+ * @type {string}
41
+ * @memberof GrantCodeResponse
42
+ */
43
+ verificationUriComplete: string;
44
+ /**
45
+ * Seconds until the grant expires (typically 900 = 15 min).
46
+ * @type {number}
47
+ * @memberof GrantCodeResponse
48
+ */
49
+ expiresIn: number;
50
+ /**
51
+ * Minimum seconds between polling attempts (typically 5).
52
+ * @type {number}
53
+ * @memberof GrantCodeResponse
54
+ */
55
+ interval: number;
56
+ }
57
+ export declare function GrantCodeResponseFromJSON(json: any): GrantCodeResponse;
58
+ export declare function GrantCodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantCodeResponse;
59
+ export declare function GrantCodeResponseToJSON(value?: GrantCodeResponse | null): any;