@gpuai/sdk 0.1.3 → 0.1.4
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @gpuai/sdk@0.1.
|
|
1
|
+
# @gpuai/sdk@0.1.4
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the api.gpu.ai API.
|
|
4
4
|
|
|
@@ -202,7 +202,7 @@ and is automatically generated by the
|
|
|
202
202
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
203
203
|
|
|
204
204
|
- API version: `1.0.0`
|
|
205
|
-
- Package version: `0.1.
|
|
205
|
+
- Package version: `0.1.4`
|
|
206
206
|
- Generator version: `7.24.0`
|
|
207
207
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
208
208
|
|
|
@@ -100,6 +100,12 @@ export interface Instance {
|
|
|
100
100
|
* @memberof Instance
|
|
101
101
|
*/
|
|
102
102
|
terminatedAt?: Date;
|
|
103
|
+
/**
|
|
104
|
+
* Last time the platform verified the SSH path to this instance end-to-end through the tunnel. Absent means the instance has not been probed yet (freshly launched, or no tunnel) — it does NOT mean unreachable. An instance whose status is still "running" while this timestamp stops advancing is one whose SSH has died even though the machine is up.
|
|
105
|
+
* @type {Date}
|
|
106
|
+
* @memberof Instance
|
|
107
|
+
*/
|
|
108
|
+
lastReachableAt?: Date;
|
|
103
109
|
}
|
|
104
110
|
/**
|
|
105
111
|
* @export
|
|
@@ -75,6 +75,7 @@ export function InstanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
75
|
'createdAt': (new Date(json['created_at'])),
|
|
76
76
|
'readyAt': json['ready_at'] == null ? undefined : (new Date(json['ready_at'])),
|
|
77
77
|
'terminatedAt': json['terminated_at'] == null ? undefined : (new Date(json['terminated_at'])),
|
|
78
|
+
'lastReachableAt': json['last_reachable_at'] == null ? undefined : (new Date(json['last_reachable_at'])),
|
|
78
79
|
};
|
|
79
80
|
}
|
|
80
81
|
export function InstanceToJSON(json) {
|
|
@@ -99,5 +100,6 @@ export function InstanceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
99
100
|
'created_at': value['createdAt'].toISOString(),
|
|
100
101
|
'ready_at': value['readyAt'] == null ? value['readyAt'] : value['readyAt'].toISOString(),
|
|
101
102
|
'terminated_at': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
|
|
103
|
+
'last_reachable_at': value['lastReachableAt'] == null ? value['lastReachableAt'] : value['lastReachableAt'].toISOString(),
|
|
102
104
|
};
|
|
103
105
|
}
|
|
@@ -100,6 +100,12 @@ export interface Instance {
|
|
|
100
100
|
* @memberof Instance
|
|
101
101
|
*/
|
|
102
102
|
terminatedAt?: Date;
|
|
103
|
+
/**
|
|
104
|
+
* Last time the platform verified the SSH path to this instance end-to-end through the tunnel. Absent means the instance has not been probed yet (freshly launched, or no tunnel) — it does NOT mean unreachable. An instance whose status is still "running" while this timestamp stops advancing is one whose SSH has died even though the machine is up.
|
|
105
|
+
* @type {Date}
|
|
106
|
+
* @memberof Instance
|
|
107
|
+
*/
|
|
108
|
+
lastReachableAt?: Date;
|
|
103
109
|
}
|
|
104
110
|
/**
|
|
105
111
|
* @export
|
package/dist/models/Instance.js
CHANGED
|
@@ -83,6 +83,7 @@ function InstanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
83
83
|
'createdAt': (new Date(json['created_at'])),
|
|
84
84
|
'readyAt': json['ready_at'] == null ? undefined : (new Date(json['ready_at'])),
|
|
85
85
|
'terminatedAt': json['terminated_at'] == null ? undefined : (new Date(json['terminated_at'])),
|
|
86
|
+
'lastReachableAt': json['last_reachable_at'] == null ? undefined : (new Date(json['last_reachable_at'])),
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
function InstanceToJSON(json) {
|
|
@@ -107,5 +108,6 @@ function InstanceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
107
108
|
'created_at': value['createdAt'].toISOString(),
|
|
108
109
|
'ready_at': value['readyAt'] == null ? value['readyAt'] : value['readyAt'].toISOString(),
|
|
109
110
|
'terminated_at': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
|
|
111
|
+
'last_reachable_at': value['lastReachableAt'] == null ? value['lastReachableAt'] : value['lastReachableAt'].toISOString(),
|
|
110
112
|
};
|
|
111
113
|
}
|
package/docs/Instance.md
CHANGED
|
@@ -20,6 +20,7 @@ Name | Type
|
|
|
20
20
|
`createdAt` | Date
|
|
21
21
|
`readyAt` | Date
|
|
22
22
|
`terminatedAt` | Date
|
|
23
|
+
`lastReachableAt` | Date
|
|
23
24
|
|
|
24
25
|
## Example
|
|
25
26
|
|
|
@@ -42,6 +43,7 @@ const example = {
|
|
|
42
43
|
"createdAt": null,
|
|
43
44
|
"readyAt": null,
|
|
44
45
|
"terminatedAt": null,
|
|
46
|
+
"lastReachableAt": null,
|
|
45
47
|
} satisfies Instance
|
|
46
48
|
|
|
47
49
|
console.log(example)
|
package/package.json
CHANGED
package/src/models/Instance.ts
CHANGED
|
@@ -111,6 +111,12 @@ export interface Instance {
|
|
|
111
111
|
* @memberof Instance
|
|
112
112
|
*/
|
|
113
113
|
terminatedAt?: Date;
|
|
114
|
+
/**
|
|
115
|
+
* Last time the platform verified the SSH path to this instance end-to-end through the tunnel. Absent means the instance has not been probed yet (freshly launched, or no tunnel) — it does NOT mean unreachable. An instance whose status is still "running" while this timestamp stops advancing is one whose SSH has died even though the machine is up.
|
|
116
|
+
* @type {Date}
|
|
117
|
+
* @memberof Instance
|
|
118
|
+
*/
|
|
119
|
+
lastReachableAt?: Date;
|
|
114
120
|
}
|
|
115
121
|
|
|
116
122
|
|
|
@@ -177,6 +183,7 @@ export function InstanceFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
177
183
|
'createdAt': (new Date(json['created_at'])),
|
|
178
184
|
'readyAt': json['ready_at'] == null ? undefined : (new Date(json['ready_at'])),
|
|
179
185
|
'terminatedAt': json['terminated_at'] == null ? undefined : (new Date(json['terminated_at'])),
|
|
186
|
+
'lastReachableAt': json['last_reachable_at'] == null ? undefined : (new Date(json['last_reachable_at'])),
|
|
180
187
|
};
|
|
181
188
|
}
|
|
182
189
|
|
|
@@ -205,6 +212,7 @@ export function InstanceToJSONTyped(value?: Instance | null, ignoreDiscriminator
|
|
|
205
212
|
'created_at': value['createdAt'].toISOString(),
|
|
206
213
|
'ready_at': value['readyAt'] == null ? value['readyAt'] : value['readyAt'].toISOString(),
|
|
207
214
|
'terminated_at': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
|
|
215
|
+
'last_reachable_at': value['lastReachableAt'] == null ? value['lastReachableAt'] : value['lastReachableAt'].toISOString(),
|
|
208
216
|
};
|
|
209
217
|
}
|
|
210
218
|
|