@deeprelay/sdk 0.1.1 → 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 +4 -8
- package/README.md +6 -6
- package/dist/apis/BillingApi.d.ts +29 -0
- package/dist/apis/BillingApi.js +88 -0
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/esm/apis/BillingApi.d.ts +29 -0
- package/dist/esm/apis/BillingApi.js +88 -0
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -1
- package/dist/esm/models/RefereeStatus.d.ts +79 -0
- package/dist/esm/models/RefereeStatus.js +70 -0
- package/dist/esm/models/Referral.d.ts +94 -0
- package/dist/esm/models/Referral.js +82 -0
- package/dist/esm/models/VideoJob.d.ts +6 -0
- package/dist/esm/models/VideoJob.js +2 -0
- package/dist/esm/models/index.d.ts +2 -3
- package/dist/esm/models/index.js +2 -3
- package/dist/esm/runtime.js +1 -1
- package/dist/models/RefereeStatus.d.ts +79 -0
- package/dist/models/RefereeStatus.js +78 -0
- package/dist/models/Referral.d.ts +94 -0
- package/dist/models/Referral.js +89 -0
- package/dist/models/VideoJob.d.ts +6 -0
- package/dist/models/VideoJob.js +2 -0
- package/dist/models/index.d.ts +2 -3
- package/dist/models/index.js +2 -3
- package/dist/runtime.js +1 -1
- package/docs/BillingApi.md +134 -0
- package/docs/RefereeStatus.md +47 -0
- package/docs/Referral.md +55 -0
- package/docs/VideoJob.md +2 -0
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +98 -0
- package/src/apis/index.ts +0 -1
- package/src/models/RefereeStatus.ts +131 -0
- package/src/models/Referral.ts +164 -0
- package/src/models/VideoJob.ts +8 -0
- package/src/models/index.ts +2 -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,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;
|
|
@@ -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
|
-
|
package/docs/OperationError.md
DELETED
|
@@ -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
|
-
|
package/docs/OperationResult.md
DELETED
|
@@ -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
|
-
|