@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
package/docs/OperationsApi.md
DELETED
|
@@ -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
|
-
}
|
package/src/models/Operation.ts
DELETED
|
@@ -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
|
-
|
|
@@ -1,81 +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
|
-
* 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).
|
|
18
|
-
* @export
|
|
19
|
-
* @interface OperationResult
|
|
20
|
-
*/
|
|
21
|
-
export interface OperationResult {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof OperationResult
|
|
26
|
-
*/
|
|
27
|
-
appUrl?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof OperationResult
|
|
32
|
-
*/
|
|
33
|
-
terminalUrl?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof OperationResult
|
|
38
|
-
*/
|
|
39
|
-
appBasicAuthUser?: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the OperationResult interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfOperationResult(value: object): value is OperationResult {
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function OperationResultFromJSON(json: any): OperationResult {
|
|
50
|
-
return OperationResultFromJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function OperationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationResult {
|
|
54
|
-
if (json == null) {
|
|
55
|
-
return json;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
|
|
59
|
-
'appUrl': json['app_url'] == null ? undefined : json['app_url'],
|
|
60
|
-
'terminalUrl': json['terminal_url'] == null ? undefined : json['terminal_url'],
|
|
61
|
-
'appBasicAuthUser': json['app_basic_auth_user'] == null ? undefined : json['app_basic_auth_user'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function OperationResultToJSON(json: any): OperationResult {
|
|
66
|
-
return OperationResultToJSONTyped(json, false);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function OperationResultToJSONTyped(value?: OperationResult | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
-
if (value == null) {
|
|
71
|
-
return value;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
return {
|
|
75
|
-
|
|
76
|
-
'app_url': value['appUrl'],
|
|
77
|
-
'terminal_url': value['terminalUrl'],
|
|
78
|
-
'app_basic_auth_user': value['appBasicAuthUser'],
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
|