@deeprelay/sdk 0.1.2 → 0.2.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.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +0 -8
  2. package/README.md +3 -6
  3. package/dist/apis/BillingApi.d.ts +14 -0
  4. package/dist/apis/BillingApi.js +43 -0
  5. package/dist/apis/index.d.ts +0 -1
  6. package/dist/apis/index.js +0 -1
  7. package/dist/esm/apis/BillingApi.d.ts +14 -0
  8. package/dist/esm/apis/BillingApi.js +43 -0
  9. package/dist/esm/apis/index.d.ts +0 -1
  10. package/dist/esm/apis/index.js +0 -1
  11. package/dist/esm/models/index.d.ts +0 -3
  12. package/dist/esm/models/index.js +0 -3
  13. package/dist/esm/runtime.js +1 -1
  14. package/dist/models/index.d.ts +0 -3
  15. package/dist/models/index.js +0 -3
  16. package/dist/runtime.js +1 -1
  17. package/docs/BillingApi.md +68 -0
  18. package/package.json +1 -1
  19. package/src/apis/BillingApi.ts +46 -0
  20. package/src/apis/index.ts +0 -1
  21. package/src/models/index.ts +0 -3
  22. package/src/runtime.ts +1 -1
  23. package/dist/apis/OperationsApi.d.ts +0 -33
  24. package/dist/apis/OperationsApi.js +0 -79
  25. package/dist/esm/apis/OperationsApi.d.ts +0 -33
  26. package/dist/esm/apis/OperationsApi.js +0 -75
  27. package/dist/esm/models/Operation.d.ts +0 -107
  28. package/dist/esm/models/Operation.js +0 -86
  29. package/dist/esm/models/OperationError.d.ts +0 -38
  30. package/dist/esm/models/OperationError.js +0 -43
  31. package/dist/esm/models/OperationResult.d.ts +0 -44
  32. package/dist/esm/models/OperationResult.js +0 -45
  33. package/dist/models/Operation.d.ts +0 -107
  34. package/dist/models/Operation.js +0 -94
  35. package/dist/models/OperationError.d.ts +0 -38
  36. package/dist/models/OperationError.js +0 -50
  37. package/dist/models/OperationResult.d.ts +0 -44
  38. package/dist/models/OperationResult.js +0 -52
  39. package/docs/Operation.md +0 -52
  40. package/docs/OperationError.md +0 -36
  41. package/docs/OperationResult.md +0 -39
  42. package/docs/OperationsApi.md +0 -80
  43. package/src/apis/OperationsApi.ts +0 -89
  44. package/src/models/Operation.ts +0 -179
  45. package/src/models/OperationError.ts +0 -73
  46. package/src/models/OperationResult.ts +0 -81
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * deeprelay Public Developer API
6
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: support@deeprelay.ai
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfOperationError = instanceOfOperationError;
17
- exports.OperationErrorFromJSON = OperationErrorFromJSON;
18
- exports.OperationErrorFromJSONTyped = OperationErrorFromJSONTyped;
19
- exports.OperationErrorToJSON = OperationErrorToJSON;
20
- exports.OperationErrorToJSONTyped = OperationErrorToJSONTyped;
21
- /**
22
- * Check if a given object implements the OperationError interface.
23
- */
24
- function instanceOfOperationError(value) {
25
- return true;
26
- }
27
- function OperationErrorFromJSON(json) {
28
- return OperationErrorFromJSONTyped(json, false);
29
- }
30
- function OperationErrorFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'code': json['code'] == null ? undefined : json['code'],
36
- 'detail': json['detail'] == null ? undefined : json['detail'],
37
- };
38
- }
39
- function OperationErrorToJSON(json) {
40
- return OperationErrorToJSONTyped(json, false);
41
- }
42
- function OperationErrorToJSONTyped(value, ignoreDiscriminator = false) {
43
- if (value == null) {
44
- return value;
45
- }
46
- return {
47
- 'code': value['code'],
48
- 'detail': value['detail'],
49
- };
50
- }
@@ -1,44 +0,0 @@
1
- /**
2
- * deeprelay Public Developer API
3
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: support@deeprelay.ai
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
- * Terminal-success payload. Carries the per-instance web-access coordinates — app_url for template deploys, terminal_url for instances provisioned with the browser web console, and the basic-auth username shared by both. The basic-auth PASSWORD is never included here — retrieve it via GET /instances/{id}?include=credentials (connection.app_password).
14
- * @export
15
- * @interface OperationResult
16
- */
17
- export interface OperationResult {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof OperationResult
22
- */
23
- appUrl?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof OperationResult
28
- */
29
- terminalUrl?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof OperationResult
34
- */
35
- appBasicAuthUser?: string;
36
- }
37
- /**
38
- * Check if a given object implements the OperationResult interface.
39
- */
40
- export declare function instanceOfOperationResult(value: object): value is OperationResult;
41
- export declare function OperationResultFromJSON(json: any): OperationResult;
42
- export declare function OperationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationResult;
43
- export declare function OperationResultToJSON(json: any): OperationResult;
44
- export declare function OperationResultToJSONTyped(value?: OperationResult | null, ignoreDiscriminator?: boolean): any;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * deeprelay Public Developer API
6
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: support@deeprelay.ai
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfOperationResult = instanceOfOperationResult;
17
- exports.OperationResultFromJSON = OperationResultFromJSON;
18
- exports.OperationResultFromJSONTyped = OperationResultFromJSONTyped;
19
- exports.OperationResultToJSON = OperationResultToJSON;
20
- exports.OperationResultToJSONTyped = OperationResultToJSONTyped;
21
- /**
22
- * Check if a given object implements the OperationResult interface.
23
- */
24
- function instanceOfOperationResult(value) {
25
- return true;
26
- }
27
- function OperationResultFromJSON(json) {
28
- return OperationResultFromJSONTyped(json, false);
29
- }
30
- function OperationResultFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'appUrl': json['app_url'] == null ? undefined : json['app_url'],
36
- 'terminalUrl': json['terminal_url'] == null ? undefined : json['terminal_url'],
37
- 'appBasicAuthUser': json['app_basic_auth_user'] == null ? undefined : json['app_basic_auth_user'],
38
- };
39
- }
40
- function OperationResultToJSON(json) {
41
- return OperationResultToJSONTyped(json, false);
42
- }
43
- function OperationResultToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'app_url': value['appUrl'],
49
- 'terminal_url': value['terminalUrl'],
50
- 'app_basic_auth_user': value['appBasicAuthUser'],
51
- };
52
- }
package/docs/Operation.md DELETED
@@ -1,52 +0,0 @@
1
-
2
- # Operation
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `operationId` | string
10
- `kind` | string
11
- `state` | string
12
- `resourceId` | string
13
- `error` | [OperationError](OperationError.md)
14
- `result` | [OperationResult](OperationResult.md)
15
- `createdAt` | Date
16
- `updatedAt` | Date
17
- `completedAt` | Date
18
- `warnings` | Array<string>
19
-
20
- ## Example
21
-
22
- ```typescript
23
- import type { Operation } from '@deeprelay/sdk'
24
-
25
- // TODO: Update the object below with actual values
26
- const example = {
27
- "operationId": null,
28
- "kind": null,
29
- "state": null,
30
- "resourceId": null,
31
- "error": null,
32
- "result": null,
33
- "createdAt": null,
34
- "updatedAt": null,
35
- "completedAt": null,
36
- "warnings": null,
37
- } satisfies Operation
38
-
39
- console.log(example)
40
-
41
- // Convert the instance to a JSON string
42
- const exampleJSON: string = JSON.stringify(example)
43
- console.log(exampleJSON)
44
-
45
- // Parse the JSON string back to an object
46
- const exampleParsed = JSON.parse(exampleJSON) as Operation
47
- console.log(exampleParsed)
48
- ```
49
-
50
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
51
-
52
-
@@ -1,36 +0,0 @@
1
-
2
- # OperationError
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `code` | string
10
- `detail` | string
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { OperationError } from '@deeprelay/sdk'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "code": null,
20
- "detail": null,
21
- } satisfies OperationError
22
-
23
- console.log(example)
24
-
25
- // Convert the instance to a JSON string
26
- const exampleJSON: string = JSON.stringify(example)
27
- console.log(exampleJSON)
28
-
29
- // Parse the JSON string back to an object
30
- const exampleParsed = JSON.parse(exampleJSON) as OperationError
31
- console.log(exampleParsed)
32
- ```
33
-
34
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
-
36
-
@@ -1,39 +0,0 @@
1
-
2
- # OperationResult
3
-
4
- Terminal-success payload. Carries the per-instance web-access coordinates — app_url for template deploys, terminal_url for instances provisioned with the browser web console, and the basic-auth username shared by both. The basic-auth PASSWORD is never included here — retrieve it via GET /instances/{id}?include=credentials (connection.app_password).
5
-
6
- ## Properties
7
-
8
- Name | Type
9
- ------------ | -------------
10
- `appUrl` | string
11
- `terminalUrl` | string
12
- `appBasicAuthUser` | string
13
-
14
- ## Example
15
-
16
- ```typescript
17
- import type { OperationResult } from '@deeprelay/sdk'
18
-
19
- // TODO: Update the object below with actual values
20
- const example = {
21
- "appUrl": null,
22
- "terminalUrl": null,
23
- "appBasicAuthUser": null,
24
- } satisfies OperationResult
25
-
26
- console.log(example)
27
-
28
- // Convert the instance to a JSON string
29
- const exampleJSON: string = JSON.stringify(example)
30
- console.log(exampleJSON)
31
-
32
- // Parse the JSON string back to an object
33
- const exampleParsed = JSON.parse(exampleJSON) as OperationResult
34
- console.log(exampleParsed)
35
- ```
36
-
37
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
-
39
-
@@ -1,80 +0,0 @@
1
- # OperationsApi
2
-
3
- All URIs are relative to *https://api.deeprelay.ai/v1*
4
-
5
- | Method | HTTP request | Description |
6
- |------------- | ------------- | -------------|
7
- | [**getOperation**](OperationsApi.md#getoperation) | **GET** /operations/{id} | Get an async operation status |
8
-
9
-
10
-
11
- ## getOperation
12
-
13
- > Operation getOperation(id)
14
-
15
- Get an async operation status
16
-
17
- ### Example
18
-
19
- ```ts
20
- import {
21
- Configuration,
22
- OperationsApi,
23
- } from '@deeprelay/sdk';
24
- import type { GetOperationRequest } from '@deeprelay/sdk';
25
-
26
- async function example() {
27
- console.log("🚀 Testing @deeprelay/sdk SDK...");
28
- const config = new Configuration({
29
- // Configure HTTP bearer authorization: bearerAuth
30
- accessToken: "YOUR BEARER TOKEN",
31
- });
32
- const api = new OperationsApi(config);
33
-
34
- const body = {
35
- // string
36
- id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
37
- } satisfies GetOperationRequest;
38
-
39
- try {
40
- const data = await api.getOperation(body);
41
- console.log(data);
42
- } catch (error) {
43
- console.error(error);
44
- }
45
- }
46
-
47
- // Run the test
48
- example().catch(console.error);
49
- ```
50
-
51
- ### Parameters
52
-
53
-
54
- | Name | Type | Description | Notes |
55
- |------------- | ------------- | ------------- | -------------|
56
- | **id** | `string` | | [Defaults to `undefined`] |
57
-
58
- ### Return type
59
-
60
- [**Operation**](Operation.md)
61
-
62
- ### Authorization
63
-
64
- [bearerAuth](../README.md#bearerAuth)
65
-
66
- ### HTTP request headers
67
-
68
- - **Content-Type**: Not defined
69
- - **Accept**: `application/json`, `application/problem+json`
70
-
71
-
72
- ### HTTP response details
73
- | Status code | Description | Response headers |
74
- |-------------|-------------|------------------|
75
- | **200** | OK | - |
76
- | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
77
- | **0** | Error response (RFC 7807) | - |
78
-
79
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
80
-
@@ -1,89 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@deeprelay.ai
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
- import * as runtime from '../runtime';
16
- import {
17
- type Operation,
18
- OperationFromJSON,
19
- OperationToJSON,
20
- } from '../models/Operation';
21
- import {
22
- type Problem,
23
- ProblemFromJSON,
24
- ProblemToJSON,
25
- } from '../models/Problem';
26
-
27
- export interface GetOperationRequest {
28
- id: string;
29
- }
30
-
31
- /**
32
- *
33
- */
34
- export class OperationsApi extends runtime.BaseAPI {
35
-
36
- /**
37
- * Creates request options for getOperation without sending the request
38
- */
39
- async getOperationRequestOpts(requestParameters: GetOperationRequest): Promise<runtime.RequestOpts> {
40
- if (requestParameters['id'] == null) {
41
- throw new runtime.RequiredError(
42
- 'id',
43
- 'Required parameter "id" was null or undefined when calling getOperation().'
44
- );
45
- }
46
-
47
- const queryParameters: any = {};
48
-
49
- const headerParameters: runtime.HTTPHeaders = {};
50
-
51
- if (this.configuration && this.configuration.accessToken) {
52
- const token = this.configuration.accessToken;
53
- const tokenString = await token("bearerAuth", []);
54
-
55
- if (tokenString) {
56
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
57
- }
58
- }
59
-
60
- let urlPath = `/operations/{id}`;
61
- urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
62
-
63
- return {
64
- path: urlPath,
65
- method: 'GET',
66
- headers: headerParameters,
67
- query: queryParameters,
68
- };
69
- }
70
-
71
- /**
72
- * Get an async operation status
73
- */
74
- async getOperationRaw(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Operation>> {
75
- const requestOptions = await this.getOperationRequestOpts(requestParameters);
76
- const response = await this.request(requestOptions, initOverrides);
77
-
78
- return new runtime.JSONApiResponse(response, (jsonValue) => OperationFromJSON(jsonValue));
79
- }
80
-
81
- /**
82
- * Get an async operation status
83
- */
84
- async getOperation(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Operation> {
85
- const response = await this.getOperationRaw(requestParameters, initOverrides);
86
- return await response.value();
87
- }
88
-
89
- }
@@ -1,179 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@deeprelay.ai
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
- import { mapValues } from '../runtime';
16
- import type { OperationResult } from './OperationResult';
17
- import {
18
- OperationResultFromJSON,
19
- OperationResultFromJSONTyped,
20
- OperationResultToJSON,
21
- OperationResultToJSONTyped,
22
- } from './OperationResult';
23
- import type { OperationError } from './OperationError';
24
- import {
25
- OperationErrorFromJSON,
26
- OperationErrorFromJSONTyped,
27
- OperationErrorToJSON,
28
- OperationErrorToJSONTyped,
29
- } from './OperationError';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface Operation
35
- */
36
- export interface Operation {
37
- /**
38
- *
39
- * @type {string}
40
- * @memberof Operation
41
- */
42
- operationId: string;
43
- /**
44
- *
45
- * @type {OperationKindEnum}
46
- * @memberof Operation
47
- */
48
- kind: OperationKindEnum;
49
- /**
50
- *
51
- * @type {OperationStateEnum}
52
- * @memberof Operation
53
- */
54
- state: OperationStateEnum;
55
- /**
56
- *
57
- * @type {string}
58
- * @memberof Operation
59
- */
60
- resourceId?: string;
61
- /**
62
- *
63
- * @type {OperationError}
64
- * @memberof Operation
65
- */
66
- error?: OperationError;
67
- /**
68
- *
69
- * @type {OperationResult}
70
- * @memberof Operation
71
- */
72
- result?: OperationResult;
73
- /**
74
- *
75
- * @type {Date}
76
- * @memberof Operation
77
- */
78
- createdAt: Date;
79
- /**
80
- *
81
- * @type {Date}
82
- * @memberof Operation
83
- */
84
- updatedAt?: Date;
85
- /**
86
- *
87
- * @type {Date}
88
- * @memberof Operation
89
- */
90
- completedAt?: Date;
91
- /**
92
- * Create-time advisories, present only on the synchronous 202 from POST /instances (never on GET /operations/{id} polls) — e.g. the model-size guard failing open because a template deploy's MODEL is a gated or unknown Hugging Face repo whose size could not be verified.
93
- * @type {Array<string>}
94
- * @memberof Operation
95
- */
96
- warnings?: Array<string>;
97
- }
98
-
99
-
100
- /**
101
- * @export
102
- */
103
- export const OperationKindEnum = {
104
- InstanceCreate: 'instance.create',
105
- InstanceDelete: 'instance.delete'
106
- } as const;
107
- export type OperationKindEnum = typeof OperationKindEnum[keyof typeof OperationKindEnum];
108
-
109
- /**
110
- * @export
111
- */
112
- export const OperationStateEnum = {
113
- Pending: 'pending',
114
- InProgress: 'in_progress',
115
- Succeeded: 'succeeded',
116
- Failed: 'failed',
117
- Cancelled: 'cancelled'
118
- } as const;
119
- export type OperationStateEnum = typeof OperationStateEnum[keyof typeof OperationStateEnum];
120
-
121
-
122
- /**
123
- * Check if a given object implements the Operation interface.
124
- */
125
- export function instanceOfOperation(value: object): value is Operation {
126
- if ((!('operationId' in (value as Record<string, any>)) && !('operation_id' in (value as Record<string, any>))) || ((value as Record<string, any>)['operationId'] === undefined && (value as Record<string, any>)['operation_id'] === undefined)) return false;
127
- if (!('kind' in value) || value['kind'] === undefined) return false;
128
- if (!('state' in value) || value['state'] === undefined) return false;
129
- if ((!('createdAt' in (value as Record<string, any>)) && !('created_at' in (value as Record<string, any>))) || ((value as Record<string, any>)['createdAt'] === undefined && (value as Record<string, any>)['created_at'] === undefined)) return false;
130
- return true;
131
- }
132
-
133
- export function OperationFromJSON(json: any): Operation {
134
- return OperationFromJSONTyped(json, false);
135
- }
136
-
137
- export function OperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Operation {
138
- if (json == null) {
139
- return json;
140
- }
141
- return {
142
-
143
- 'operationId': json['operation_id'],
144
- 'kind': json['kind'],
145
- 'state': json['state'],
146
- 'resourceId': json['resource_id'] == null ? undefined : json['resource_id'],
147
- 'error': json['error'] == null ? undefined : OperationErrorFromJSON(json['error']),
148
- 'result': json['result'] == null ? undefined : OperationResultFromJSON(json['result']),
149
- 'createdAt': (new Date(json['created_at'])),
150
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
151
- 'completedAt': json['completed_at'] == null ? undefined : (new Date(json['completed_at'])),
152
- 'warnings': json['warnings'] == null ? undefined : json['warnings'],
153
- };
154
- }
155
-
156
- export function OperationToJSON(json: any): Operation {
157
- return OperationToJSONTyped(json, false);
158
- }
159
-
160
- export function OperationToJSONTyped(value?: Operation | null, ignoreDiscriminator: boolean = false): any {
161
- if (value == null) {
162
- return value;
163
- }
164
-
165
- return {
166
-
167
- 'operation_id': value['operationId'],
168
- 'kind': value['kind'],
169
- 'state': value['state'],
170
- 'resource_id': value['resourceId'],
171
- 'error': OperationErrorToJSON(value['error']),
172
- 'result': OperationResultToJSON(value['result']),
173
- 'created_at': value['createdAt'].toISOString(),
174
- 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
175
- 'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
176
- 'warnings': value['warnings'],
177
- };
178
- }
179
-
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * deeprelay Public Developer API
5
- * Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@deeprelay.ai
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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface OperationError
20
- */
21
- export interface OperationError {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof OperationError
26
- */
27
- code?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof OperationError
32
- */
33
- detail?: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the OperationError interface.
38
- */
39
- export function instanceOfOperationError(value: object): value is OperationError {
40
- return true;
41
- }
42
-
43
- export function OperationErrorFromJSON(json: any): OperationError {
44
- return OperationErrorFromJSONTyped(json, false);
45
- }
46
-
47
- export function OperationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationError {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
-
53
- 'code': json['code'] == null ? undefined : json['code'],
54
- 'detail': json['detail'] == null ? undefined : json['detail'],
55
- };
56
- }
57
-
58
- export function OperationErrorToJSON(json: any): OperationError {
59
- return OperationErrorToJSONTyped(json, false);
60
- }
61
-
62
- export function OperationErrorToJSONTyped(value?: OperationError | null, ignoreDiscriminator: boolean = false): any {
63
- if (value == null) {
64
- return value;
65
- }
66
-
67
- return {
68
-
69
- 'code': value['code'],
70
- 'detail': value['detail'],
71
- };
72
- }
73
-