@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.
- package/.openapi-generator/FILES +0 -8
- package/README.md +3 -6
- package/dist/apis/BillingApi.d.ts +14 -0
- package/dist/apis/BillingApi.js +43 -0
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/esm/apis/BillingApi.d.ts +14 -0
- package/dist/esm/apis/BillingApi.js +43 -0
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -1
- package/dist/esm/models/index.d.ts +0 -3
- package/dist/esm/models/index.js +0 -3
- package/dist/esm/runtime.js +1 -1
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/dist/runtime.js +1 -1
- package/docs/BillingApi.md +68 -0
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +46 -0
- package/src/apis/index.ts +0 -1
- package/src/models/index.ts +0 -3
- package/src/runtime.ts +1 -1
- package/dist/apis/OperationsApi.d.ts +0 -33
- package/dist/apis/OperationsApi.js +0 -79
- package/dist/esm/apis/OperationsApi.d.ts +0 -33
- package/dist/esm/apis/OperationsApi.js +0 -75
- package/dist/esm/models/Operation.d.ts +0 -107
- package/dist/esm/models/Operation.js +0 -86
- package/dist/esm/models/OperationError.d.ts +0 -38
- package/dist/esm/models/OperationError.js +0 -43
- package/dist/esm/models/OperationResult.d.ts +0 -44
- package/dist/esm/models/OperationResult.js +0 -45
- package/dist/models/Operation.d.ts +0 -107
- package/dist/models/Operation.js +0 -94
- package/dist/models/OperationError.d.ts +0 -38
- package/dist/models/OperationError.js +0 -50
- package/dist/models/OperationResult.d.ts +0 -44
- package/dist/models/OperationResult.js +0 -52
- package/docs/Operation.md +0 -52
- package/docs/OperationError.md +0 -36
- package/docs/OperationResult.md +0 -39
- package/docs/OperationsApi.md +0 -80
- package/src/apis/OperationsApi.ts +0 -89
- package/src/models/Operation.ts +0 -179
- package/src/models/OperationError.ts +0 -73
- package/src/models/OperationResult.ts +0 -81
|
@@ -1,75 +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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
import * as runtime from '../runtime';
|
|
24
|
-
import { OperationFromJSON, } from '../models/Operation';
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export class OperationsApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* Creates request options for getOperation without sending the request
|
|
31
|
-
*/
|
|
32
|
-
getOperationRequestOpts(requestParameters) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
if (requestParameters['id'] == null) {
|
|
35
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getOperation().');
|
|
36
|
-
}
|
|
37
|
-
const queryParameters = {};
|
|
38
|
-
const headerParameters = {};
|
|
39
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
-
const token = this.configuration.accessToken;
|
|
41
|
-
const tokenString = yield token("bearerAuth", []);
|
|
42
|
-
if (tokenString) {
|
|
43
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
let urlPath = `/operations/{id}`;
|
|
47
|
-
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
48
|
-
return {
|
|
49
|
-
path: urlPath,
|
|
50
|
-
method: 'GET',
|
|
51
|
-
headers: headerParameters,
|
|
52
|
-
query: queryParameters,
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Get an async operation status
|
|
58
|
-
*/
|
|
59
|
-
getOperationRaw(requestParameters, initOverrides) {
|
|
60
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
const requestOptions = yield this.getOperationRequestOpts(requestParameters);
|
|
62
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
63
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => OperationFromJSON(jsonValue));
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Get an async operation status
|
|
68
|
-
*/
|
|
69
|
-
getOperation(requestParameters, initOverrides) {
|
|
70
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
const response = yield this.getOperationRaw(requestParameters, initOverrides);
|
|
72
|
-
return yield response.value();
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,107 +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
|
-
import type { OperationResult } from './OperationResult';
|
|
13
|
-
import type { OperationError } from './OperationError';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface Operation
|
|
18
|
-
*/
|
|
19
|
-
export interface Operation {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof Operation
|
|
24
|
-
*/
|
|
25
|
-
operationId: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {OperationKindEnum}
|
|
29
|
-
* @memberof Operation
|
|
30
|
-
*/
|
|
31
|
-
kind: OperationKindEnum;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {OperationStateEnum}
|
|
35
|
-
* @memberof Operation
|
|
36
|
-
*/
|
|
37
|
-
state: OperationStateEnum;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof Operation
|
|
42
|
-
*/
|
|
43
|
-
resourceId?: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {OperationError}
|
|
47
|
-
* @memberof Operation
|
|
48
|
-
*/
|
|
49
|
-
error?: OperationError;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {OperationResult}
|
|
53
|
-
* @memberof Operation
|
|
54
|
-
*/
|
|
55
|
-
result?: OperationResult;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Date}
|
|
59
|
-
* @memberof Operation
|
|
60
|
-
*/
|
|
61
|
-
createdAt: Date;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {Date}
|
|
65
|
-
* @memberof Operation
|
|
66
|
-
*/
|
|
67
|
-
updatedAt?: Date;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {Date}
|
|
71
|
-
* @memberof Operation
|
|
72
|
-
*/
|
|
73
|
-
completedAt?: Date;
|
|
74
|
-
/**
|
|
75
|
-
* 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.
|
|
76
|
-
* @type {Array<string>}
|
|
77
|
-
* @memberof Operation
|
|
78
|
-
*/
|
|
79
|
-
warnings?: Array<string>;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* @export
|
|
83
|
-
*/
|
|
84
|
-
export declare const OperationKindEnum: {
|
|
85
|
-
readonly InstanceCreate: "instance.create";
|
|
86
|
-
readonly InstanceDelete: "instance.delete";
|
|
87
|
-
};
|
|
88
|
-
export type OperationKindEnum = typeof OperationKindEnum[keyof typeof OperationKindEnum];
|
|
89
|
-
/**
|
|
90
|
-
* @export
|
|
91
|
-
*/
|
|
92
|
-
export declare const OperationStateEnum: {
|
|
93
|
-
readonly Pending: "pending";
|
|
94
|
-
readonly InProgress: "in_progress";
|
|
95
|
-
readonly Succeeded: "succeeded";
|
|
96
|
-
readonly Failed: "failed";
|
|
97
|
-
readonly Cancelled: "cancelled";
|
|
98
|
-
};
|
|
99
|
-
export type OperationStateEnum = typeof OperationStateEnum[keyof typeof OperationStateEnum];
|
|
100
|
-
/**
|
|
101
|
-
* Check if a given object implements the Operation interface.
|
|
102
|
-
*/
|
|
103
|
-
export declare function instanceOfOperation(value: object): value is Operation;
|
|
104
|
-
export declare function OperationFromJSON(json: any): Operation;
|
|
105
|
-
export declare function OperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Operation;
|
|
106
|
-
export declare function OperationToJSON(json: any): Operation;
|
|
107
|
-
export declare function OperationToJSONTyped(value?: Operation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,86 +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
|
-
import { OperationResultFromJSON, OperationResultToJSON, } from './OperationResult';
|
|
15
|
-
import { OperationErrorFromJSON, OperationErrorToJSON, } from './OperationError';
|
|
16
|
-
/**
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export const OperationKindEnum = {
|
|
20
|
-
InstanceCreate: 'instance.create',
|
|
21
|
-
InstanceDelete: 'instance.delete'
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
export const OperationStateEnum = {
|
|
27
|
-
Pending: 'pending',
|
|
28
|
-
InProgress: 'in_progress',
|
|
29
|
-
Succeeded: 'succeeded',
|
|
30
|
-
Failed: 'failed',
|
|
31
|
-
Cancelled: 'cancelled'
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the Operation interface.
|
|
35
|
-
*/
|
|
36
|
-
export function instanceOfOperation(value) {
|
|
37
|
-
if ((!('operationId' in value) && !('operation_id' in value)) || (value['operationId'] === undefined && value['operation_id'] === undefined))
|
|
38
|
-
return false;
|
|
39
|
-
if (!('kind' in value) || value['kind'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('state' in value) || value['state'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
|
|
44
|
-
return false;
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
export function OperationFromJSON(json) {
|
|
48
|
-
return OperationFromJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
export function OperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
-
if (json == null) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'operationId': json['operation_id'],
|
|
56
|
-
'kind': json['kind'],
|
|
57
|
-
'state': json['state'],
|
|
58
|
-
'resourceId': json['resource_id'] == null ? undefined : json['resource_id'],
|
|
59
|
-
'error': json['error'] == null ? undefined : OperationErrorFromJSON(json['error']),
|
|
60
|
-
'result': json['result'] == null ? undefined : OperationResultFromJSON(json['result']),
|
|
61
|
-
'createdAt': (new Date(json['created_at'])),
|
|
62
|
-
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
63
|
-
'completedAt': json['completed_at'] == null ? undefined : (new Date(json['completed_at'])),
|
|
64
|
-
'warnings': json['warnings'] == null ? undefined : json['warnings'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export function OperationToJSON(json) {
|
|
68
|
-
return OperationToJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
export function OperationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
-
if (value == null) {
|
|
72
|
-
return value;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
'operation_id': value['operationId'],
|
|
76
|
-
'kind': value['kind'],
|
|
77
|
-
'state': value['state'],
|
|
78
|
-
'resource_id': value['resourceId'],
|
|
79
|
-
'error': OperationErrorToJSON(value['error']),
|
|
80
|
-
'result': OperationResultToJSON(value['result']),
|
|
81
|
-
'created_at': value['createdAt'].toISOString(),
|
|
82
|
-
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
83
|
-
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
84
|
-
'warnings': value['warnings'],
|
|
85
|
-
};
|
|
86
|
-
}
|
|
@@ -1,38 +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
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface OperationError
|
|
16
|
-
*/
|
|
17
|
-
export interface OperationError {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof OperationError
|
|
22
|
-
*/
|
|
23
|
-
code?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof OperationError
|
|
28
|
-
*/
|
|
29
|
-
detail?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the OperationError interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfOperationError(value: object): value is OperationError;
|
|
35
|
-
export declare function OperationErrorFromJSON(json: any): OperationError;
|
|
36
|
-
export declare function OperationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationError;
|
|
37
|
-
export declare function OperationErrorToJSON(json: any): OperationError;
|
|
38
|
-
export declare function OperationErrorToJSONTyped(value?: OperationError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,43 +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
|
-
* Check if a given object implements the OperationError interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfOperationError(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function OperationErrorFromJSON(json) {
|
|
21
|
-
return OperationErrorFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function OperationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'code': json['code'] == null ? undefined : json['code'],
|
|
29
|
-
'detail': json['detail'] == null ? undefined : json['detail'],
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export function OperationErrorToJSON(json) {
|
|
33
|
-
return OperationErrorToJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
export function OperationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
-
if (value == null) {
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'code': value['code'],
|
|
41
|
-
'detail': value['detail'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -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,45 +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
|
-
* Check if a given object implements the OperationResult interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfOperationResult(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function OperationResultFromJSON(json) {
|
|
21
|
-
return OperationResultFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function OperationResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'appUrl': json['app_url'] == null ? undefined : json['app_url'],
|
|
29
|
-
'terminalUrl': json['terminal_url'] == null ? undefined : json['terminal_url'],
|
|
30
|
-
'appBasicAuthUser': json['app_basic_auth_user'] == null ? undefined : json['app_basic_auth_user'],
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function OperationResultToJSON(json) {
|
|
34
|
-
return OperationResultToJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
export function OperationResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
-
if (value == null) {
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'app_url': value['appUrl'],
|
|
42
|
-
'terminal_url': value['terminalUrl'],
|
|
43
|
-
'app_basic_auth_user': value['appBasicAuthUser'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
@@ -1,107 +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
|
-
import type { OperationResult } from './OperationResult';
|
|
13
|
-
import type { OperationError } from './OperationError';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface Operation
|
|
18
|
-
*/
|
|
19
|
-
export interface Operation {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof Operation
|
|
24
|
-
*/
|
|
25
|
-
operationId: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {OperationKindEnum}
|
|
29
|
-
* @memberof Operation
|
|
30
|
-
*/
|
|
31
|
-
kind: OperationKindEnum;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {OperationStateEnum}
|
|
35
|
-
* @memberof Operation
|
|
36
|
-
*/
|
|
37
|
-
state: OperationStateEnum;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof Operation
|
|
42
|
-
*/
|
|
43
|
-
resourceId?: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {OperationError}
|
|
47
|
-
* @memberof Operation
|
|
48
|
-
*/
|
|
49
|
-
error?: OperationError;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {OperationResult}
|
|
53
|
-
* @memberof Operation
|
|
54
|
-
*/
|
|
55
|
-
result?: OperationResult;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Date}
|
|
59
|
-
* @memberof Operation
|
|
60
|
-
*/
|
|
61
|
-
createdAt: Date;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {Date}
|
|
65
|
-
* @memberof Operation
|
|
66
|
-
*/
|
|
67
|
-
updatedAt?: Date;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {Date}
|
|
71
|
-
* @memberof Operation
|
|
72
|
-
*/
|
|
73
|
-
completedAt?: Date;
|
|
74
|
-
/**
|
|
75
|
-
* 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.
|
|
76
|
-
* @type {Array<string>}
|
|
77
|
-
* @memberof Operation
|
|
78
|
-
*/
|
|
79
|
-
warnings?: Array<string>;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* @export
|
|
83
|
-
*/
|
|
84
|
-
export declare const OperationKindEnum: {
|
|
85
|
-
readonly InstanceCreate: "instance.create";
|
|
86
|
-
readonly InstanceDelete: "instance.delete";
|
|
87
|
-
};
|
|
88
|
-
export type OperationKindEnum = typeof OperationKindEnum[keyof typeof OperationKindEnum];
|
|
89
|
-
/**
|
|
90
|
-
* @export
|
|
91
|
-
*/
|
|
92
|
-
export declare const OperationStateEnum: {
|
|
93
|
-
readonly Pending: "pending";
|
|
94
|
-
readonly InProgress: "in_progress";
|
|
95
|
-
readonly Succeeded: "succeeded";
|
|
96
|
-
readonly Failed: "failed";
|
|
97
|
-
readonly Cancelled: "cancelled";
|
|
98
|
-
};
|
|
99
|
-
export type OperationStateEnum = typeof OperationStateEnum[keyof typeof OperationStateEnum];
|
|
100
|
-
/**
|
|
101
|
-
* Check if a given object implements the Operation interface.
|
|
102
|
-
*/
|
|
103
|
-
export declare function instanceOfOperation(value: object): value is Operation;
|
|
104
|
-
export declare function OperationFromJSON(json: any): Operation;
|
|
105
|
-
export declare function OperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Operation;
|
|
106
|
-
export declare function OperationToJSON(json: any): Operation;
|
|
107
|
-
export declare function OperationToJSONTyped(value?: Operation | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/Operation.js
DELETED
|
@@ -1,94 +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.OperationStateEnum = exports.OperationKindEnum = void 0;
|
|
17
|
-
exports.instanceOfOperation = instanceOfOperation;
|
|
18
|
-
exports.OperationFromJSON = OperationFromJSON;
|
|
19
|
-
exports.OperationFromJSONTyped = OperationFromJSONTyped;
|
|
20
|
-
exports.OperationToJSON = OperationToJSON;
|
|
21
|
-
exports.OperationToJSONTyped = OperationToJSONTyped;
|
|
22
|
-
const OperationResult_1 = require("./OperationResult");
|
|
23
|
-
const OperationError_1 = require("./OperationError");
|
|
24
|
-
/**
|
|
25
|
-
* @export
|
|
26
|
-
*/
|
|
27
|
-
exports.OperationKindEnum = {
|
|
28
|
-
InstanceCreate: 'instance.create',
|
|
29
|
-
InstanceDelete: 'instance.delete'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
exports.OperationStateEnum = {
|
|
35
|
-
Pending: 'pending',
|
|
36
|
-
InProgress: 'in_progress',
|
|
37
|
-
Succeeded: 'succeeded',
|
|
38
|
-
Failed: 'failed',
|
|
39
|
-
Cancelled: 'cancelled'
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Check if a given object implements the Operation interface.
|
|
43
|
-
*/
|
|
44
|
-
function instanceOfOperation(value) {
|
|
45
|
-
if ((!('operationId' in value) && !('operation_id' in value)) || (value['operationId'] === undefined && value['operation_id'] === undefined))
|
|
46
|
-
return false;
|
|
47
|
-
if (!('kind' in value) || value['kind'] === undefined)
|
|
48
|
-
return false;
|
|
49
|
-
if (!('state' in value) || value['state'] === undefined)
|
|
50
|
-
return false;
|
|
51
|
-
if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
|
|
52
|
-
return false;
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
function OperationFromJSON(json) {
|
|
56
|
-
return OperationFromJSONTyped(json, false);
|
|
57
|
-
}
|
|
58
|
-
function OperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
-
if (json == null) {
|
|
60
|
-
return json;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
'operationId': json['operation_id'],
|
|
64
|
-
'kind': json['kind'],
|
|
65
|
-
'state': json['state'],
|
|
66
|
-
'resourceId': json['resource_id'] == null ? undefined : json['resource_id'],
|
|
67
|
-
'error': json['error'] == null ? undefined : (0, OperationError_1.OperationErrorFromJSON)(json['error']),
|
|
68
|
-
'result': json['result'] == null ? undefined : (0, OperationResult_1.OperationResultFromJSON)(json['result']),
|
|
69
|
-
'createdAt': (new Date(json['created_at'])),
|
|
70
|
-
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
71
|
-
'completedAt': json['completed_at'] == null ? undefined : (new Date(json['completed_at'])),
|
|
72
|
-
'warnings': json['warnings'] == null ? undefined : json['warnings'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
function OperationToJSON(json) {
|
|
76
|
-
return OperationToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
function OperationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
|
-
if (value == null) {
|
|
80
|
-
return value;
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
'operation_id': value['operationId'],
|
|
84
|
-
'kind': value['kind'],
|
|
85
|
-
'state': value['state'],
|
|
86
|
-
'resource_id': value['resourceId'],
|
|
87
|
-
'error': (0, OperationError_1.OperationErrorToJSON)(value['error']),
|
|
88
|
-
'result': (0, OperationResult_1.OperationResultToJSON)(value['result']),
|
|
89
|
-
'created_at': value['createdAt'].toISOString(),
|
|
90
|
-
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
91
|
-
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
92
|
-
'warnings': value['warnings'],
|
|
93
|
-
};
|
|
94
|
-
}
|
|
@@ -1,38 +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
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface OperationError
|
|
16
|
-
*/
|
|
17
|
-
export interface OperationError {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof OperationError
|
|
22
|
-
*/
|
|
23
|
-
code?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof OperationError
|
|
28
|
-
*/
|
|
29
|
-
detail?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the OperationError interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfOperationError(value: object): value is OperationError;
|
|
35
|
-
export declare function OperationErrorFromJSON(json: any): OperationError;
|
|
36
|
-
export declare function OperationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationError;
|
|
37
|
-
export declare function OperationErrorToJSON(json: any): OperationError;
|
|
38
|
-
export declare function OperationErrorToJSONTyped(value?: OperationError | null, ignoreDiscriminator?: boolean): any;
|