@gpuai/sdk 0.4.1 → 0.4.2
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/README.md +2 -2
- package/dist/esm/models/Instance.d.ts +15 -0
- package/dist/esm/models/Instance.js +10 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/Instance.d.ts +15 -0
- package/dist/models/Instance.js +11 -1
- package/dist/runtime.js +1 -1
- package/docs/Instance.md +2 -0
- package/package.json +1 -1
- package/src/models/Instance.ts +18 -0
- package/src/runtime.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @gpuai/sdk@0.4.
|
|
1
|
+
# @gpuai/sdk@0.4.2
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the api.gpu.ai API.
|
|
4
4
|
|
|
@@ -274,7 +274,7 @@ and is automatically generated by the
|
|
|
274
274
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
275
275
|
|
|
276
276
|
- API version: `1.0.0`
|
|
277
|
-
- Package version: `0.4.
|
|
277
|
+
- Package version: `0.4.2`
|
|
278
278
|
- Generator version: `7.24.0`
|
|
279
279
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
280
280
|
|
|
@@ -137,6 +137,12 @@ export interface Instance {
|
|
|
137
137
|
* @memberof Instance
|
|
138
138
|
*/
|
|
139
139
|
unreachableSince?: Date;
|
|
140
|
+
/**
|
|
141
|
+
* How far a launch that is not ready yet has got. machine_requested means the machine was requested and no image download has been reported yet; pulling_image means the image is downloading or unpacking; setting_up means the container is up and the platform is finishing SSH and the GPU check. Present only while status is allocating or starting and the platform is following the boot; absent otherwise. Lets a client with a fixed timeout tell a launch that is still moving from one that is stuck.
|
|
142
|
+
* @type {InstanceBootPhaseEnum}
|
|
143
|
+
* @memberof Instance
|
|
144
|
+
*/
|
|
145
|
+
bootPhase?: InstanceBootPhaseEnum;
|
|
140
146
|
}
|
|
141
147
|
/**
|
|
142
148
|
* @export
|
|
@@ -160,6 +166,15 @@ export declare const InstanceTierEnum: {
|
|
|
160
166
|
readonly OnDemand: "on_demand";
|
|
161
167
|
};
|
|
162
168
|
export type InstanceTierEnum = typeof InstanceTierEnum[keyof typeof InstanceTierEnum];
|
|
169
|
+
/**
|
|
170
|
+
* @export
|
|
171
|
+
*/
|
|
172
|
+
export declare const InstanceBootPhaseEnum: {
|
|
173
|
+
readonly MachineRequested: "machine_requested";
|
|
174
|
+
readonly PullingImage: "pulling_image";
|
|
175
|
+
readonly SettingUp: "setting_up";
|
|
176
|
+
};
|
|
177
|
+
export type InstanceBootPhaseEnum = typeof InstanceBootPhaseEnum[keyof typeof InstanceBootPhaseEnum];
|
|
163
178
|
/**
|
|
164
179
|
* Check if a given object implements the Instance interface.
|
|
165
180
|
*/
|
|
@@ -33,6 +33,14 @@ export const InstanceTierEnum = {
|
|
|
33
33
|
Spot: 'spot',
|
|
34
34
|
OnDemand: 'on_demand'
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
export const InstanceBootPhaseEnum = {
|
|
40
|
+
MachineRequested: 'machine_requested',
|
|
41
|
+
PullingImage: 'pulling_image',
|
|
42
|
+
SettingUp: 'setting_up'
|
|
43
|
+
};
|
|
36
44
|
/**
|
|
37
45
|
* Check if a given object implements the Instance interface.
|
|
38
46
|
*/
|
|
@@ -83,6 +91,7 @@ export function InstanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
83
91
|
'terminatedAt': json['terminated_at'] == null ? undefined : (new Date(json['terminated_at'])),
|
|
84
92
|
'lastReachableAt': json['last_reachable_at'] == null ? undefined : (new Date(json['last_reachable_at'])),
|
|
85
93
|
'unreachableSince': json['unreachable_since'] == null ? undefined : (new Date(json['unreachable_since'])),
|
|
94
|
+
'bootPhase': json['boot_phase'] == null ? undefined : json['boot_phase'],
|
|
86
95
|
};
|
|
87
96
|
}
|
|
88
97
|
export function InstanceToJSON(json) {
|
|
@@ -113,5 +122,6 @@ export function InstanceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
113
122
|
'terminated_at': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
|
|
114
123
|
'last_reachable_at': value['lastReachableAt'] == null ? value['lastReachableAt'] : value['lastReachableAt'].toISOString(),
|
|
115
124
|
'unreachable_since': value['unreachableSince'] == null ? value['unreachableSince'] : value['unreachableSince'].toISOString(),
|
|
125
|
+
'boot_phase': value['bootPhase'],
|
|
116
126
|
};
|
|
117
127
|
}
|
package/dist/esm/runtime.js
CHANGED
|
@@ -61,7 +61,7 @@ export class Configuration {
|
|
|
61
61
|
return undefined;
|
|
62
62
|
}
|
|
63
63
|
get headers() {
|
|
64
|
-
return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.4.
|
|
64
|
+
return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.4.2' }, this.configuration.headers);
|
|
65
65
|
}
|
|
66
66
|
get credentials() {
|
|
67
67
|
return this.configuration.credentials;
|
|
@@ -137,6 +137,12 @@ export interface Instance {
|
|
|
137
137
|
* @memberof Instance
|
|
138
138
|
*/
|
|
139
139
|
unreachableSince?: Date;
|
|
140
|
+
/**
|
|
141
|
+
* How far a launch that is not ready yet has got. machine_requested means the machine was requested and no image download has been reported yet; pulling_image means the image is downloading or unpacking; setting_up means the container is up and the platform is finishing SSH and the GPU check. Present only while status is allocating or starting and the platform is following the boot; absent otherwise. Lets a client with a fixed timeout tell a launch that is still moving from one that is stuck.
|
|
142
|
+
* @type {InstanceBootPhaseEnum}
|
|
143
|
+
* @memberof Instance
|
|
144
|
+
*/
|
|
145
|
+
bootPhase?: InstanceBootPhaseEnum;
|
|
140
146
|
}
|
|
141
147
|
/**
|
|
142
148
|
* @export
|
|
@@ -160,6 +166,15 @@ export declare const InstanceTierEnum: {
|
|
|
160
166
|
readonly OnDemand: "on_demand";
|
|
161
167
|
};
|
|
162
168
|
export type InstanceTierEnum = typeof InstanceTierEnum[keyof typeof InstanceTierEnum];
|
|
169
|
+
/**
|
|
170
|
+
* @export
|
|
171
|
+
*/
|
|
172
|
+
export declare const InstanceBootPhaseEnum: {
|
|
173
|
+
readonly MachineRequested: "machine_requested";
|
|
174
|
+
readonly PullingImage: "pulling_image";
|
|
175
|
+
readonly SettingUp: "setting_up";
|
|
176
|
+
};
|
|
177
|
+
export type InstanceBootPhaseEnum = typeof InstanceBootPhaseEnum[keyof typeof InstanceBootPhaseEnum];
|
|
163
178
|
/**
|
|
164
179
|
* Check if a given object implements the Instance interface.
|
|
165
180
|
*/
|
package/dist/models/Instance.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.InstanceTierEnum = exports.InstanceStatusEnum = void 0;
|
|
16
|
+
exports.InstanceBootPhaseEnum = exports.InstanceTierEnum = exports.InstanceStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfInstance = instanceOfInstance;
|
|
18
18
|
exports.InstanceFromJSON = InstanceFromJSON;
|
|
19
19
|
exports.InstanceFromJSONTyped = InstanceFromJSONTyped;
|
|
@@ -41,6 +41,14 @@ exports.InstanceTierEnum = {
|
|
|
41
41
|
Spot: 'spot',
|
|
42
42
|
OnDemand: 'on_demand'
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
exports.InstanceBootPhaseEnum = {
|
|
48
|
+
MachineRequested: 'machine_requested',
|
|
49
|
+
PullingImage: 'pulling_image',
|
|
50
|
+
SettingUp: 'setting_up'
|
|
51
|
+
};
|
|
44
52
|
/**
|
|
45
53
|
* Check if a given object implements the Instance interface.
|
|
46
54
|
*/
|
|
@@ -91,6 +99,7 @@ function InstanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
99
|
'terminatedAt': json['terminated_at'] == null ? undefined : (new Date(json['terminated_at'])),
|
|
92
100
|
'lastReachableAt': json['last_reachable_at'] == null ? undefined : (new Date(json['last_reachable_at'])),
|
|
93
101
|
'unreachableSince': json['unreachable_since'] == null ? undefined : (new Date(json['unreachable_since'])),
|
|
102
|
+
'bootPhase': json['boot_phase'] == null ? undefined : json['boot_phase'],
|
|
94
103
|
};
|
|
95
104
|
}
|
|
96
105
|
function InstanceToJSON(json) {
|
|
@@ -121,5 +130,6 @@ function InstanceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
121
130
|
'terminated_at': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
|
|
122
131
|
'last_reachable_at': value['lastReachableAt'] == null ? value['lastReachableAt'] : value['lastReachableAt'].toISOString(),
|
|
123
132
|
'unreachable_since': value['unreachableSince'] == null ? value['unreachableSince'] : value['unreachableSince'].toISOString(),
|
|
133
|
+
'boot_phase': value['bootPhase'],
|
|
124
134
|
};
|
|
125
135
|
}
|
package/dist/runtime.js
CHANGED
|
@@ -69,7 +69,7 @@ class Configuration {
|
|
|
69
69
|
return undefined;
|
|
70
70
|
}
|
|
71
71
|
get headers() {
|
|
72
|
-
return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.4.
|
|
72
|
+
return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.4.2' }, this.configuration.headers);
|
|
73
73
|
}
|
|
74
74
|
get credentials() {
|
|
75
75
|
return this.configuration.credentials;
|
package/docs/Instance.md
CHANGED
|
@@ -26,6 +26,7 @@ Name | Type
|
|
|
26
26
|
`terminatedAt` | Date
|
|
27
27
|
`lastReachableAt` | Date
|
|
28
28
|
`unreachableSince` | Date
|
|
29
|
+
`bootPhase` | string
|
|
29
30
|
|
|
30
31
|
## Example
|
|
31
32
|
|
|
@@ -54,6 +55,7 @@ const example = {
|
|
|
54
55
|
"terminatedAt": null,
|
|
55
56
|
"lastReachableAt": null,
|
|
56
57
|
"unreachableSince": null,
|
|
58
|
+
"bootPhase": null,
|
|
57
59
|
} satisfies Instance
|
|
58
60
|
|
|
59
61
|
console.log(example)
|
package/package.json
CHANGED
package/src/models/Instance.ts
CHANGED
|
@@ -154,6 +154,12 @@ export interface Instance {
|
|
|
154
154
|
* @memberof Instance
|
|
155
155
|
*/
|
|
156
156
|
unreachableSince?: Date;
|
|
157
|
+
/**
|
|
158
|
+
* How far a launch that is not ready yet has got. machine_requested means the machine was requested and no image download has been reported yet; pulling_image means the image is downloading or unpacking; setting_up means the container is up and the platform is finishing SSH and the GPU check. Present only while status is allocating or starting and the platform is following the boot; absent otherwise. Lets a client with a fixed timeout tell a launch that is still moving from one that is stuck.
|
|
159
|
+
* @type {InstanceBootPhaseEnum}
|
|
160
|
+
* @memberof Instance
|
|
161
|
+
*/
|
|
162
|
+
bootPhase?: InstanceBootPhaseEnum;
|
|
157
163
|
}
|
|
158
164
|
|
|
159
165
|
|
|
@@ -181,6 +187,16 @@ export const InstanceTierEnum = {
|
|
|
181
187
|
} as const;
|
|
182
188
|
export type InstanceTierEnum = typeof InstanceTierEnum[keyof typeof InstanceTierEnum];
|
|
183
189
|
|
|
190
|
+
/**
|
|
191
|
+
* @export
|
|
192
|
+
*/
|
|
193
|
+
export const InstanceBootPhaseEnum = {
|
|
194
|
+
MachineRequested: 'machine_requested',
|
|
195
|
+
PullingImage: 'pulling_image',
|
|
196
|
+
SettingUp: 'setting_up'
|
|
197
|
+
} as const;
|
|
198
|
+
export type InstanceBootPhaseEnum = typeof InstanceBootPhaseEnum[keyof typeof InstanceBootPhaseEnum];
|
|
199
|
+
|
|
184
200
|
|
|
185
201
|
/**
|
|
186
202
|
* Check if a given object implements the Instance interface.
|
|
@@ -227,6 +243,7 @@ export function InstanceFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
227
243
|
'terminatedAt': json['terminated_at'] == null ? undefined : (new Date(json['terminated_at'])),
|
|
228
244
|
'lastReachableAt': json['last_reachable_at'] == null ? undefined : (new Date(json['last_reachable_at'])),
|
|
229
245
|
'unreachableSince': json['unreachable_since'] == null ? undefined : (new Date(json['unreachable_since'])),
|
|
246
|
+
'bootPhase': json['boot_phase'] == null ? undefined : json['boot_phase'],
|
|
230
247
|
};
|
|
231
248
|
}
|
|
232
249
|
|
|
@@ -261,6 +278,7 @@ export function InstanceToJSONTyped(value?: Instance | null, ignoreDiscriminator
|
|
|
261
278
|
'terminated_at': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
|
|
262
279
|
'last_reachable_at': value['lastReachableAt'] == null ? value['lastReachableAt'] : value['lastReachableAt'].toISOString(),
|
|
263
280
|
'unreachable_since': value['unreachableSince'] == null ? value['unreachableSince'] : value['unreachableSince'].toISOString(),
|
|
281
|
+
'boot_phase': value['bootPhase'],
|
|
264
282
|
};
|
|
265
283
|
}
|
|
266
284
|
|
package/src/runtime.ts
CHANGED
|
@@ -75,7 +75,7 @@ export class Configuration {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
get headers(): HTTPHeaders | undefined {
|
|
78
|
-
return { 'User-Agent': 'gpuai-sdk-ts/0.4.
|
|
78
|
+
return { 'User-Agent': 'gpuai-sdk-ts/0.4.2', ...this.configuration.headers };
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
get credentials(): RequestCredentials | undefined {
|