runpod-sdk 1.2.0-beta.2 → 2.0.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/LICENSE +21 -0
- package/README.md +53 -200
- package/dist/index.cjs +247 -0
- package/dist/index.d.cts +127 -0
- package/dist/index.d.ts +127 -0
- package/dist/index.js +208 -0
- package/package.json +55 -29
- package/dist/package.json +0 -24
- package/dist/src/graphql/client.d.ts +0 -22
- package/dist/src/graphql/client.js +0 -75
- package/dist/src/graphql/client.js.map +0 -1
- package/dist/src/graphql/generated/index.d.ts +0 -742
- package/dist/src/graphql/generated/index.js +0 -347
- package/dist/src/graphql/generated/index.js.map +0 -1
- package/dist/src/graphql/generated/operations.d.ts +0 -428
- package/dist/src/graphql/generated/operations.js +0 -2
- package/dist/src/graphql/generated/operations.js.map +0 -1
- package/dist/src/graphql/generated/sdk.d.ts +0 -31
- package/dist/src/graphql/generated/sdk.js +0 -232
- package/dist/src/graphql/generated/sdk.js.map +0 -1
- package/dist/src/graphql/generated/types.d.ts +0 -4281
- package/dist/src/graphql/generated/types.js +0 -2
- package/dist/src/graphql/generated/types.js.map +0 -1
- package/dist/src/index.d.ts +0 -170
- package/dist/src/index.js +0 -252
- package/dist/src/index.js.map +0 -1
- package/dist/src/pods/generated-gpu-types.d.ts +0 -299
- package/dist/src/pods/generated-gpu-types.js +0 -148
- package/dist/src/pods/generated-gpu-types.js.map +0 -1
- package/dist/src/pods/index.d.ts +0 -122
- package/dist/src/pods/index.js +0 -242
- package/dist/src/pods/index.js.map +0 -1
- package/schema.gql +0 -161
|
@@ -1,742 +0,0 @@
|
|
|
1
|
-
import { GraphQLClient, RequestOptions } from "graphql-request";
|
|
2
|
-
export type Maybe<T> = T | null;
|
|
3
|
-
export type InputMaybe<T> = Maybe<T>;
|
|
4
|
-
export type Exact<T extends {
|
|
5
|
-
[key: string]: unknown;
|
|
6
|
-
}> = {
|
|
7
|
-
[K in keyof T]: T[K];
|
|
8
|
-
};
|
|
9
|
-
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
-
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
-
};
|
|
12
|
-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
-
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
-
};
|
|
15
|
-
export type MakeEmpty<T extends {
|
|
16
|
-
[key: string]: unknown;
|
|
17
|
-
}, K extends keyof T> = {
|
|
18
|
-
[_ in K]?: never;
|
|
19
|
-
};
|
|
20
|
-
export type Incremental<T> = T | {
|
|
21
|
-
[P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never;
|
|
22
|
-
};
|
|
23
|
-
type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
|
|
24
|
-
/** All built-in and custom scalars, mapped to their actual values */
|
|
25
|
-
export type Scalars = {
|
|
26
|
-
ID: {
|
|
27
|
-
input: string;
|
|
28
|
-
output: string;
|
|
29
|
-
};
|
|
30
|
-
String: {
|
|
31
|
-
input: string;
|
|
32
|
-
output: string;
|
|
33
|
-
};
|
|
34
|
-
Boolean: {
|
|
35
|
-
input: boolean;
|
|
36
|
-
output: boolean;
|
|
37
|
-
};
|
|
38
|
-
Int: {
|
|
39
|
-
input: number;
|
|
40
|
-
output: number;
|
|
41
|
-
};
|
|
42
|
-
Float: {
|
|
43
|
-
input: number;
|
|
44
|
-
output: number;
|
|
45
|
-
};
|
|
46
|
-
DateTime: {
|
|
47
|
-
input: string;
|
|
48
|
-
output: string;
|
|
49
|
-
};
|
|
50
|
-
JSON: {
|
|
51
|
-
input: any;
|
|
52
|
-
output: any;
|
|
53
|
-
};
|
|
54
|
-
JSONObject: {
|
|
55
|
-
input: Record<string, any>;
|
|
56
|
-
output: Record<string, any>;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
export type EnvironmentVariableInput = {
|
|
60
|
-
key: Scalars["String"]["input"];
|
|
61
|
-
value: Scalars["String"]["input"];
|
|
62
|
-
};
|
|
63
|
-
export type GpuLowestPriceInput = {
|
|
64
|
-
gpuCount: Scalars["Int"]["input"];
|
|
65
|
-
minMemoryInGb?: InputMaybe<Scalars["Int"]["input"]>;
|
|
66
|
-
secureCloud?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
67
|
-
totalDisk?: InputMaybe<Scalars["Int"]["input"]>;
|
|
68
|
-
};
|
|
69
|
-
export type GpuType = {
|
|
70
|
-
communityCloud: Scalars["Boolean"]["output"];
|
|
71
|
-
displayName: Scalars["String"]["output"];
|
|
72
|
-
id: Scalars["String"]["output"];
|
|
73
|
-
lowestPrice?: Maybe<LowestPrice>;
|
|
74
|
-
memoryInGb: Scalars["Int"]["output"];
|
|
75
|
-
secureCloud: Scalars["Boolean"]["output"];
|
|
76
|
-
};
|
|
77
|
-
export type GpuTypeLowestPriceArgs = {
|
|
78
|
-
input: GpuLowestPriceInput;
|
|
79
|
-
};
|
|
80
|
-
export type LowestPrice = {
|
|
81
|
-
availableGpuCounts?: Maybe<Array<Maybe<Scalars["Int"]["output"]>>>;
|
|
82
|
-
gpuName?: Maybe<Scalars["String"]["output"]>;
|
|
83
|
-
maxUnreservedGpuCount?: Maybe<Scalars["Int"]["output"]>;
|
|
84
|
-
minimumBidPrice?: Maybe<Scalars["Float"]["output"]>;
|
|
85
|
-
rentedCount?: Maybe<Scalars["Int"]["output"]>;
|
|
86
|
-
stockStatus?: Maybe<Scalars["String"]["output"]>;
|
|
87
|
-
totalCount?: Maybe<Scalars["Int"]["output"]>;
|
|
88
|
-
uninterruptablePrice?: Maybe<Scalars["Float"]["output"]>;
|
|
89
|
-
};
|
|
90
|
-
export type Mutation = {
|
|
91
|
-
podFindAndDeployOnDemand?: Maybe<Pod>;
|
|
92
|
-
podRentInterruptable?: Maybe<Pod>;
|
|
93
|
-
podResume?: Maybe<Pod>;
|
|
94
|
-
podStop?: Maybe<Pod>;
|
|
95
|
-
podTerminate?: Maybe<Scalars["String"]["output"]>;
|
|
96
|
-
};
|
|
97
|
-
export type MutationPodFindAndDeployOnDemandArgs = {
|
|
98
|
-
input: PodFindAndDeployOnDemandInput;
|
|
99
|
-
};
|
|
100
|
-
export type MutationPodRentInterruptableArgs = {
|
|
101
|
-
input: PodRentInterruptableInput;
|
|
102
|
-
};
|
|
103
|
-
export type MutationPodResumeArgs = {
|
|
104
|
-
input: PodResumeInput;
|
|
105
|
-
};
|
|
106
|
-
export type MutationPodStopArgs = {
|
|
107
|
-
input: PodInput;
|
|
108
|
-
};
|
|
109
|
-
export type MutationPodTerminateArgs = {
|
|
110
|
-
input: PodInput;
|
|
111
|
-
};
|
|
112
|
-
export type Pod = {
|
|
113
|
-
containerDiskInGb?: Maybe<Scalars["Int"]["output"]>;
|
|
114
|
-
containerRegistryAuthId?: Maybe<Scalars["String"]["output"]>;
|
|
115
|
-
costPerHr: Scalars["Float"]["output"];
|
|
116
|
-
desiredStatus: Scalars["String"]["output"];
|
|
117
|
-
env?: Maybe<Array<Maybe<Scalars["String"]["output"]>>>;
|
|
118
|
-
gpuCount?: Maybe<Scalars["Int"]["output"]>;
|
|
119
|
-
id: Scalars["String"]["output"];
|
|
120
|
-
imageName?: Maybe<Scalars["String"]["output"]>;
|
|
121
|
-
machine?: Maybe<PodMachine>;
|
|
122
|
-
machineId?: Maybe<Scalars["String"]["output"]>;
|
|
123
|
-
memoryInGb?: Maybe<Scalars["Float"]["output"]>;
|
|
124
|
-
name: Scalars["String"]["output"];
|
|
125
|
-
podType?: Maybe<Scalars["String"]["output"]>;
|
|
126
|
-
ports?: Maybe<Scalars["String"]["output"]>;
|
|
127
|
-
runtime?: Maybe<PodRuntime>;
|
|
128
|
-
vcpuCount?: Maybe<Scalars["Float"]["output"]>;
|
|
129
|
-
volumeInGb?: Maybe<Scalars["Float"]["output"]>;
|
|
130
|
-
volumeKey?: Maybe<Scalars["String"]["output"]>;
|
|
131
|
-
volumeMountPath?: Maybe<Scalars["String"]["output"]>;
|
|
132
|
-
};
|
|
133
|
-
export type PodFindAndDeployOnDemandInput = {
|
|
134
|
-
containerDiskInGb?: InputMaybe<Scalars["Int"]["input"]>;
|
|
135
|
-
dockerArgs?: InputMaybe<Scalars["String"]["input"]>;
|
|
136
|
-
env?: InputMaybe<Array<InputMaybe<EnvironmentVariableInput>>>;
|
|
137
|
-
gpuCount?: InputMaybe<Scalars["Int"]["input"]>;
|
|
138
|
-
gpuTypeId: Scalars["String"]["input"];
|
|
139
|
-
imageName: Scalars["String"]["input"];
|
|
140
|
-
name: Scalars["String"]["input"];
|
|
141
|
-
ports?: InputMaybe<Scalars["String"]["input"]>;
|
|
142
|
-
volumeInGb?: InputMaybe<Scalars["Int"]["input"]>;
|
|
143
|
-
volumeMountPath?: InputMaybe<Scalars["String"]["input"]>;
|
|
144
|
-
};
|
|
145
|
-
export type PodInput = {
|
|
146
|
-
podId: Scalars["String"]["input"];
|
|
147
|
-
};
|
|
148
|
-
export type PodMachine = {
|
|
149
|
-
gpuDisplayName?: Maybe<Scalars["String"]["output"]>;
|
|
150
|
-
podHostId?: Maybe<Scalars["String"]["output"]>;
|
|
151
|
-
};
|
|
152
|
-
export type PodRentInterruptableInput = {
|
|
153
|
-
bidPerGpu: Scalars["Float"]["input"];
|
|
154
|
-
containerDiskInGb?: InputMaybe<Scalars["Int"]["input"]>;
|
|
155
|
-
dockerArgs?: InputMaybe<Scalars["String"]["input"]>;
|
|
156
|
-
env?: InputMaybe<Array<InputMaybe<EnvironmentVariableInput>>>;
|
|
157
|
-
gpuCount?: InputMaybe<Scalars["Int"]["input"]>;
|
|
158
|
-
gpuTypeId: Scalars["String"]["input"];
|
|
159
|
-
imageName: Scalars["String"]["input"];
|
|
160
|
-
name: Scalars["String"]["input"];
|
|
161
|
-
ports?: InputMaybe<Scalars["String"]["input"]>;
|
|
162
|
-
volumeInGb?: InputMaybe<Scalars["Int"]["input"]>;
|
|
163
|
-
volumeMountPath?: InputMaybe<Scalars["String"]["input"]>;
|
|
164
|
-
};
|
|
165
|
-
export type PodResumeInput = {
|
|
166
|
-
gpuCount: Scalars["Int"]["input"];
|
|
167
|
-
podId: Scalars["String"]["input"];
|
|
168
|
-
};
|
|
169
|
-
export type PodRuntime = {
|
|
170
|
-
container?: Maybe<PodRuntimeContainer>;
|
|
171
|
-
gpus?: Maybe<Array<Maybe<PodRuntimeGpu>>>;
|
|
172
|
-
ports?: Maybe<Array<Maybe<PodRuntimePort>>>;
|
|
173
|
-
uptimeInSeconds?: Maybe<Scalars["Int"]["output"]>;
|
|
174
|
-
};
|
|
175
|
-
export type PodRuntimeContainer = {
|
|
176
|
-
cpuPercent?: Maybe<Scalars["Int"]["output"]>;
|
|
177
|
-
memoryPercent?: Maybe<Scalars["Int"]["output"]>;
|
|
178
|
-
};
|
|
179
|
-
export type PodRuntimeGpu = {
|
|
180
|
-
gpuUtilPercent?: Maybe<Scalars["Int"]["output"]>;
|
|
181
|
-
id?: Maybe<Scalars["String"]["output"]>;
|
|
182
|
-
memoryUtilPercent?: Maybe<Scalars["Int"]["output"]>;
|
|
183
|
-
};
|
|
184
|
-
export type PodRuntimePort = {
|
|
185
|
-
ip?: Maybe<Scalars["String"]["output"]>;
|
|
186
|
-
isIpPublic?: Maybe<Scalars["Boolean"]["output"]>;
|
|
187
|
-
privatePort?: Maybe<Scalars["Int"]["output"]>;
|
|
188
|
-
publicPort?: Maybe<Scalars["Int"]["output"]>;
|
|
189
|
-
type?: Maybe<Scalars["String"]["output"]>;
|
|
190
|
-
};
|
|
191
|
-
export type Query = {
|
|
192
|
-
gpuTypes: Array<GpuType>;
|
|
193
|
-
myself?: Maybe<User>;
|
|
194
|
-
pod?: Maybe<Pod>;
|
|
195
|
-
};
|
|
196
|
-
export type QueryPodArgs = {
|
|
197
|
-
input: PodInput;
|
|
198
|
-
};
|
|
199
|
-
export type User = {
|
|
200
|
-
currentSpendPerHr?: Maybe<Scalars["Float"]["output"]>;
|
|
201
|
-
email?: Maybe<Scalars["String"]["output"]>;
|
|
202
|
-
id?: Maybe<Scalars["String"]["output"]>;
|
|
203
|
-
machineQuota?: Maybe<Scalars["Int"]["output"]>;
|
|
204
|
-
pods?: Maybe<Array<Pod>>;
|
|
205
|
-
referralEarned?: Maybe<Scalars["Float"]["output"]>;
|
|
206
|
-
spendLimit?: Maybe<Scalars["Float"]["output"]>;
|
|
207
|
-
};
|
|
208
|
-
export type PodCoreFragment = {
|
|
209
|
-
id: string;
|
|
210
|
-
name: string;
|
|
211
|
-
desiredStatus: string;
|
|
212
|
-
imageName?: string | null;
|
|
213
|
-
env?: Array<string | null> | null;
|
|
214
|
-
machineId?: string | null;
|
|
215
|
-
memoryInGb?: number | null;
|
|
216
|
-
vcpuCount?: number | null;
|
|
217
|
-
volumeInGb?: number | null;
|
|
218
|
-
volumeMountPath?: string | null;
|
|
219
|
-
podType?: string | null;
|
|
220
|
-
costPerHr: number;
|
|
221
|
-
gpuCount?: number | null;
|
|
222
|
-
containerDiskInGb?: number | null;
|
|
223
|
-
ports?: string | null;
|
|
224
|
-
volumeKey?: string | null;
|
|
225
|
-
containerRegistryAuthId?: string | null;
|
|
226
|
-
};
|
|
227
|
-
export type PodRuntimeFragment = {
|
|
228
|
-
runtime?: {
|
|
229
|
-
uptimeInSeconds?: number | null;
|
|
230
|
-
ports?: Array<{
|
|
231
|
-
ip?: string | null;
|
|
232
|
-
isIpPublic?: boolean | null;
|
|
233
|
-
privatePort?: number | null;
|
|
234
|
-
publicPort?: number | null;
|
|
235
|
-
type?: string | null;
|
|
236
|
-
} | null> | null;
|
|
237
|
-
gpus?: Array<{
|
|
238
|
-
id?: string | null;
|
|
239
|
-
gpuUtilPercent?: number | null;
|
|
240
|
-
memoryUtilPercent?: number | null;
|
|
241
|
-
} | null> | null;
|
|
242
|
-
container?: {
|
|
243
|
-
cpuPercent?: number | null;
|
|
244
|
-
memoryPercent?: number | null;
|
|
245
|
-
} | null;
|
|
246
|
-
} | null;
|
|
247
|
-
};
|
|
248
|
-
export type PodMachineFragment = {
|
|
249
|
-
machine?: {
|
|
250
|
-
podHostId?: string | null;
|
|
251
|
-
gpuDisplayName?: string | null;
|
|
252
|
-
} | null;
|
|
253
|
-
};
|
|
254
|
-
export type PodDetailsFragment = {
|
|
255
|
-
id: string;
|
|
256
|
-
name: string;
|
|
257
|
-
desiredStatus: string;
|
|
258
|
-
imageName?: string | null;
|
|
259
|
-
env?: Array<string | null> | null;
|
|
260
|
-
machineId?: string | null;
|
|
261
|
-
memoryInGb?: number | null;
|
|
262
|
-
vcpuCount?: number | null;
|
|
263
|
-
volumeInGb?: number | null;
|
|
264
|
-
volumeMountPath?: string | null;
|
|
265
|
-
podType?: string | null;
|
|
266
|
-
costPerHr: number;
|
|
267
|
-
gpuCount?: number | null;
|
|
268
|
-
containerDiskInGb?: number | null;
|
|
269
|
-
ports?: string | null;
|
|
270
|
-
volumeKey?: string | null;
|
|
271
|
-
containerRegistryAuthId?: string | null;
|
|
272
|
-
runtime?: {
|
|
273
|
-
uptimeInSeconds?: number | null;
|
|
274
|
-
ports?: Array<{
|
|
275
|
-
ip?: string | null;
|
|
276
|
-
isIpPublic?: boolean | null;
|
|
277
|
-
privatePort?: number | null;
|
|
278
|
-
publicPort?: number | null;
|
|
279
|
-
type?: string | null;
|
|
280
|
-
} | null> | null;
|
|
281
|
-
gpus?: Array<{
|
|
282
|
-
id?: string | null;
|
|
283
|
-
gpuUtilPercent?: number | null;
|
|
284
|
-
memoryUtilPercent?: number | null;
|
|
285
|
-
} | null> | null;
|
|
286
|
-
container?: {
|
|
287
|
-
cpuPercent?: number | null;
|
|
288
|
-
memoryPercent?: number | null;
|
|
289
|
-
} | null;
|
|
290
|
-
} | null;
|
|
291
|
-
machine?: {
|
|
292
|
-
podHostId?: string | null;
|
|
293
|
-
gpuDisplayName?: string | null;
|
|
294
|
-
} | null;
|
|
295
|
-
};
|
|
296
|
-
export type GetPodQueryVariables = Exact<{
|
|
297
|
-
podId: Scalars["String"]["input"];
|
|
298
|
-
}>;
|
|
299
|
-
export type GetPodQuery = {
|
|
300
|
-
pod?: {
|
|
301
|
-
id: string;
|
|
302
|
-
name: string;
|
|
303
|
-
desiredStatus: string;
|
|
304
|
-
imageName?: string | null;
|
|
305
|
-
env?: Array<string | null> | null;
|
|
306
|
-
machineId?: string | null;
|
|
307
|
-
memoryInGb?: number | null;
|
|
308
|
-
vcpuCount?: number | null;
|
|
309
|
-
volumeInGb?: number | null;
|
|
310
|
-
volumeMountPath?: string | null;
|
|
311
|
-
podType?: string | null;
|
|
312
|
-
costPerHr: number;
|
|
313
|
-
gpuCount?: number | null;
|
|
314
|
-
containerDiskInGb?: number | null;
|
|
315
|
-
ports?: string | null;
|
|
316
|
-
volumeKey?: string | null;
|
|
317
|
-
containerRegistryAuthId?: string | null;
|
|
318
|
-
runtime?: {
|
|
319
|
-
uptimeInSeconds?: number | null;
|
|
320
|
-
ports?: Array<{
|
|
321
|
-
ip?: string | null;
|
|
322
|
-
isIpPublic?: boolean | null;
|
|
323
|
-
privatePort?: number | null;
|
|
324
|
-
publicPort?: number | null;
|
|
325
|
-
type?: string | null;
|
|
326
|
-
} | null> | null;
|
|
327
|
-
gpus?: Array<{
|
|
328
|
-
id?: string | null;
|
|
329
|
-
gpuUtilPercent?: number | null;
|
|
330
|
-
memoryUtilPercent?: number | null;
|
|
331
|
-
} | null> | null;
|
|
332
|
-
container?: {
|
|
333
|
-
cpuPercent?: number | null;
|
|
334
|
-
memoryPercent?: number | null;
|
|
335
|
-
} | null;
|
|
336
|
-
} | null;
|
|
337
|
-
machine?: {
|
|
338
|
-
podHostId?: string | null;
|
|
339
|
-
gpuDisplayName?: string | null;
|
|
340
|
-
} | null;
|
|
341
|
-
} | null;
|
|
342
|
-
};
|
|
343
|
-
export type ListMyPodsQueryVariables = Exact<{
|
|
344
|
-
[key: string]: never;
|
|
345
|
-
}>;
|
|
346
|
-
export type ListMyPodsQuery = {
|
|
347
|
-
myself?: {
|
|
348
|
-
pods?: Array<{
|
|
349
|
-
id: string;
|
|
350
|
-
name: string;
|
|
351
|
-
desiredStatus: string;
|
|
352
|
-
imageName?: string | null;
|
|
353
|
-
env?: Array<string | null> | null;
|
|
354
|
-
machineId?: string | null;
|
|
355
|
-
memoryInGb?: number | null;
|
|
356
|
-
vcpuCount?: number | null;
|
|
357
|
-
volumeInGb?: number | null;
|
|
358
|
-
volumeMountPath?: string | null;
|
|
359
|
-
podType?: string | null;
|
|
360
|
-
costPerHr: number;
|
|
361
|
-
gpuCount?: number | null;
|
|
362
|
-
containerDiskInGb?: number | null;
|
|
363
|
-
ports?: string | null;
|
|
364
|
-
volumeKey?: string | null;
|
|
365
|
-
containerRegistryAuthId?: string | null;
|
|
366
|
-
runtime?: {
|
|
367
|
-
uptimeInSeconds?: number | null;
|
|
368
|
-
ports?: Array<{
|
|
369
|
-
ip?: string | null;
|
|
370
|
-
isIpPublic?: boolean | null;
|
|
371
|
-
privatePort?: number | null;
|
|
372
|
-
publicPort?: number | null;
|
|
373
|
-
type?: string | null;
|
|
374
|
-
} | null> | null;
|
|
375
|
-
gpus?: Array<{
|
|
376
|
-
id?: string | null;
|
|
377
|
-
gpuUtilPercent?: number | null;
|
|
378
|
-
memoryUtilPercent?: number | null;
|
|
379
|
-
} | null> | null;
|
|
380
|
-
container?: {
|
|
381
|
-
cpuPercent?: number | null;
|
|
382
|
-
memoryPercent?: number | null;
|
|
383
|
-
} | null;
|
|
384
|
-
} | null;
|
|
385
|
-
machine?: {
|
|
386
|
-
podHostId?: string | null;
|
|
387
|
-
gpuDisplayName?: string | null;
|
|
388
|
-
} | null;
|
|
389
|
-
}> | null;
|
|
390
|
-
} | null;
|
|
391
|
-
};
|
|
392
|
-
export type CreateOnDemandPodMutationVariables = Exact<{
|
|
393
|
-
input: PodFindAndDeployOnDemandInput;
|
|
394
|
-
}>;
|
|
395
|
-
export type CreateOnDemandPodMutation = {
|
|
396
|
-
podFindAndDeployOnDemand?: {
|
|
397
|
-
id: string;
|
|
398
|
-
name: string;
|
|
399
|
-
desiredStatus: string;
|
|
400
|
-
imageName?: string | null;
|
|
401
|
-
env?: Array<string | null> | null;
|
|
402
|
-
machineId?: string | null;
|
|
403
|
-
memoryInGb?: number | null;
|
|
404
|
-
vcpuCount?: number | null;
|
|
405
|
-
volumeInGb?: number | null;
|
|
406
|
-
volumeMountPath?: string | null;
|
|
407
|
-
podType?: string | null;
|
|
408
|
-
costPerHr: number;
|
|
409
|
-
gpuCount?: number | null;
|
|
410
|
-
containerDiskInGb?: number | null;
|
|
411
|
-
ports?: string | null;
|
|
412
|
-
volumeKey?: string | null;
|
|
413
|
-
containerRegistryAuthId?: string | null;
|
|
414
|
-
runtime?: {
|
|
415
|
-
uptimeInSeconds?: number | null;
|
|
416
|
-
ports?: Array<{
|
|
417
|
-
ip?: string | null;
|
|
418
|
-
isIpPublic?: boolean | null;
|
|
419
|
-
privatePort?: number | null;
|
|
420
|
-
publicPort?: number | null;
|
|
421
|
-
type?: string | null;
|
|
422
|
-
} | null> | null;
|
|
423
|
-
gpus?: Array<{
|
|
424
|
-
id?: string | null;
|
|
425
|
-
gpuUtilPercent?: number | null;
|
|
426
|
-
memoryUtilPercent?: number | null;
|
|
427
|
-
} | null> | null;
|
|
428
|
-
container?: {
|
|
429
|
-
cpuPercent?: number | null;
|
|
430
|
-
memoryPercent?: number | null;
|
|
431
|
-
} | null;
|
|
432
|
-
} | null;
|
|
433
|
-
machine?: {
|
|
434
|
-
podHostId?: string | null;
|
|
435
|
-
gpuDisplayName?: string | null;
|
|
436
|
-
} | null;
|
|
437
|
-
} | null;
|
|
438
|
-
};
|
|
439
|
-
export type CreateInterruptablePodMutationVariables = Exact<{
|
|
440
|
-
input: PodRentInterruptableInput;
|
|
441
|
-
}>;
|
|
442
|
-
export type CreateInterruptablePodMutation = {
|
|
443
|
-
podRentInterruptable?: {
|
|
444
|
-
id: string;
|
|
445
|
-
name: string;
|
|
446
|
-
desiredStatus: string;
|
|
447
|
-
imageName?: string | null;
|
|
448
|
-
env?: Array<string | null> | null;
|
|
449
|
-
machineId?: string | null;
|
|
450
|
-
memoryInGb?: number | null;
|
|
451
|
-
vcpuCount?: number | null;
|
|
452
|
-
volumeInGb?: number | null;
|
|
453
|
-
volumeMountPath?: string | null;
|
|
454
|
-
podType?: string | null;
|
|
455
|
-
costPerHr: number;
|
|
456
|
-
gpuCount?: number | null;
|
|
457
|
-
containerDiskInGb?: number | null;
|
|
458
|
-
ports?: string | null;
|
|
459
|
-
volumeKey?: string | null;
|
|
460
|
-
containerRegistryAuthId?: string | null;
|
|
461
|
-
runtime?: {
|
|
462
|
-
uptimeInSeconds?: number | null;
|
|
463
|
-
ports?: Array<{
|
|
464
|
-
ip?: string | null;
|
|
465
|
-
isIpPublic?: boolean | null;
|
|
466
|
-
privatePort?: number | null;
|
|
467
|
-
publicPort?: number | null;
|
|
468
|
-
type?: string | null;
|
|
469
|
-
} | null> | null;
|
|
470
|
-
gpus?: Array<{
|
|
471
|
-
id?: string | null;
|
|
472
|
-
gpuUtilPercent?: number | null;
|
|
473
|
-
memoryUtilPercent?: number | null;
|
|
474
|
-
} | null> | null;
|
|
475
|
-
container?: {
|
|
476
|
-
cpuPercent?: number | null;
|
|
477
|
-
memoryPercent?: number | null;
|
|
478
|
-
} | null;
|
|
479
|
-
} | null;
|
|
480
|
-
machine?: {
|
|
481
|
-
podHostId?: string | null;
|
|
482
|
-
gpuDisplayName?: string | null;
|
|
483
|
-
} | null;
|
|
484
|
-
} | null;
|
|
485
|
-
};
|
|
486
|
-
export type StopPodMutationVariables = Exact<{
|
|
487
|
-
podId: Scalars["String"]["input"];
|
|
488
|
-
}>;
|
|
489
|
-
export type StopPodMutation = {
|
|
490
|
-
podStop?: {
|
|
491
|
-
id: string;
|
|
492
|
-
name: string;
|
|
493
|
-
desiredStatus: string;
|
|
494
|
-
imageName?: string | null;
|
|
495
|
-
env?: Array<string | null> | null;
|
|
496
|
-
machineId?: string | null;
|
|
497
|
-
memoryInGb?: number | null;
|
|
498
|
-
vcpuCount?: number | null;
|
|
499
|
-
volumeInGb?: number | null;
|
|
500
|
-
volumeMountPath?: string | null;
|
|
501
|
-
podType?: string | null;
|
|
502
|
-
costPerHr: number;
|
|
503
|
-
gpuCount?: number | null;
|
|
504
|
-
containerDiskInGb?: number | null;
|
|
505
|
-
ports?: string | null;
|
|
506
|
-
volumeKey?: string | null;
|
|
507
|
-
containerRegistryAuthId?: string | null;
|
|
508
|
-
runtime?: {
|
|
509
|
-
uptimeInSeconds?: number | null;
|
|
510
|
-
ports?: Array<{
|
|
511
|
-
ip?: string | null;
|
|
512
|
-
isIpPublic?: boolean | null;
|
|
513
|
-
privatePort?: number | null;
|
|
514
|
-
publicPort?: number | null;
|
|
515
|
-
type?: string | null;
|
|
516
|
-
} | null> | null;
|
|
517
|
-
gpus?: Array<{
|
|
518
|
-
id?: string | null;
|
|
519
|
-
gpuUtilPercent?: number | null;
|
|
520
|
-
memoryUtilPercent?: number | null;
|
|
521
|
-
} | null> | null;
|
|
522
|
-
container?: {
|
|
523
|
-
cpuPercent?: number | null;
|
|
524
|
-
memoryPercent?: number | null;
|
|
525
|
-
} | null;
|
|
526
|
-
} | null;
|
|
527
|
-
machine?: {
|
|
528
|
-
podHostId?: string | null;
|
|
529
|
-
gpuDisplayName?: string | null;
|
|
530
|
-
} | null;
|
|
531
|
-
} | null;
|
|
532
|
-
};
|
|
533
|
-
export type ResumePodMutationVariables = Exact<{
|
|
534
|
-
podId: Scalars["String"]["input"];
|
|
535
|
-
gpuCount: Scalars["Int"]["input"];
|
|
536
|
-
}>;
|
|
537
|
-
export type ResumePodMutation = {
|
|
538
|
-
podResume?: {
|
|
539
|
-
id: string;
|
|
540
|
-
name: string;
|
|
541
|
-
desiredStatus: string;
|
|
542
|
-
imageName?: string | null;
|
|
543
|
-
env?: Array<string | null> | null;
|
|
544
|
-
machineId?: string | null;
|
|
545
|
-
memoryInGb?: number | null;
|
|
546
|
-
vcpuCount?: number | null;
|
|
547
|
-
volumeInGb?: number | null;
|
|
548
|
-
volumeMountPath?: string | null;
|
|
549
|
-
podType?: string | null;
|
|
550
|
-
costPerHr: number;
|
|
551
|
-
gpuCount?: number | null;
|
|
552
|
-
containerDiskInGb?: number | null;
|
|
553
|
-
ports?: string | null;
|
|
554
|
-
volumeKey?: string | null;
|
|
555
|
-
containerRegistryAuthId?: string | null;
|
|
556
|
-
runtime?: {
|
|
557
|
-
uptimeInSeconds?: number | null;
|
|
558
|
-
ports?: Array<{
|
|
559
|
-
ip?: string | null;
|
|
560
|
-
isIpPublic?: boolean | null;
|
|
561
|
-
privatePort?: number | null;
|
|
562
|
-
publicPort?: number | null;
|
|
563
|
-
type?: string | null;
|
|
564
|
-
} | null> | null;
|
|
565
|
-
gpus?: Array<{
|
|
566
|
-
id?: string | null;
|
|
567
|
-
gpuUtilPercent?: number | null;
|
|
568
|
-
memoryUtilPercent?: number | null;
|
|
569
|
-
} | null> | null;
|
|
570
|
-
container?: {
|
|
571
|
-
cpuPercent?: number | null;
|
|
572
|
-
memoryPercent?: number | null;
|
|
573
|
-
} | null;
|
|
574
|
-
} | null;
|
|
575
|
-
machine?: {
|
|
576
|
-
podHostId?: string | null;
|
|
577
|
-
gpuDisplayName?: string | null;
|
|
578
|
-
} | null;
|
|
579
|
-
} | null;
|
|
580
|
-
};
|
|
581
|
-
export type TerminatePodMutationVariables = Exact<{
|
|
582
|
-
podId: Scalars["String"]["input"];
|
|
583
|
-
}>;
|
|
584
|
-
export type TerminatePodMutation = {
|
|
585
|
-
podTerminate?: string | null;
|
|
586
|
-
};
|
|
587
|
-
export type UserBasicsFragment = {
|
|
588
|
-
id?: string | null;
|
|
589
|
-
email?: string | null;
|
|
590
|
-
machineQuota?: number | null;
|
|
591
|
-
currentSpendPerHr?: number | null;
|
|
592
|
-
spendLimit?: number | null;
|
|
593
|
-
referralEarned?: number | null;
|
|
594
|
-
};
|
|
595
|
-
export type GetMyProfileQueryVariables = Exact<{
|
|
596
|
-
[key: string]: never;
|
|
597
|
-
}>;
|
|
598
|
-
export type GetMyProfileQuery = {
|
|
599
|
-
myself?: {
|
|
600
|
-
id?: string | null;
|
|
601
|
-
email?: string | null;
|
|
602
|
-
machineQuota?: number | null;
|
|
603
|
-
currentSpendPerHr?: number | null;
|
|
604
|
-
spendLimit?: number | null;
|
|
605
|
-
referralEarned?: number | null;
|
|
606
|
-
} | null;
|
|
607
|
-
};
|
|
608
|
-
export type GpuTypeBasicsFragment = {
|
|
609
|
-
id: string;
|
|
610
|
-
displayName: string;
|
|
611
|
-
memoryInGb: number;
|
|
612
|
-
secureCloud: boolean;
|
|
613
|
-
communityCloud: boolean;
|
|
614
|
-
};
|
|
615
|
-
export type ListGpuTypesQueryVariables = Exact<{
|
|
616
|
-
[key: string]: never;
|
|
617
|
-
}>;
|
|
618
|
-
export type ListGpuTypesQuery = {
|
|
619
|
-
gpuTypes: Array<{
|
|
620
|
-
id: string;
|
|
621
|
-
displayName: string;
|
|
622
|
-
memoryInGb: number;
|
|
623
|
-
secureCloud: boolean;
|
|
624
|
-
communityCloud: boolean;
|
|
625
|
-
}>;
|
|
626
|
-
};
|
|
627
|
-
export type CheckGpuAvailabilityQueryVariables = Exact<{
|
|
628
|
-
gpuTypeId: Scalars["String"]["input"];
|
|
629
|
-
input: GpuLowestPriceInput;
|
|
630
|
-
}>;
|
|
631
|
-
export type CheckGpuAvailabilityQuery = {
|
|
632
|
-
gpuTypes: Array<{
|
|
633
|
-
id: string;
|
|
634
|
-
displayName: string;
|
|
635
|
-
memoryInGb: number;
|
|
636
|
-
secureCloud: boolean;
|
|
637
|
-
communityCloud: boolean;
|
|
638
|
-
lowestPrice?: {
|
|
639
|
-
gpuName?: string | null;
|
|
640
|
-
stockStatus?: string | null;
|
|
641
|
-
uninterruptablePrice?: number | null;
|
|
642
|
-
minimumBidPrice?: number | null;
|
|
643
|
-
rentedCount?: number | null;
|
|
644
|
-
totalCount?: number | null;
|
|
645
|
-
availableGpuCounts?: Array<number | null> | null;
|
|
646
|
-
maxUnreservedGpuCount?: number | null;
|
|
647
|
-
} | null;
|
|
648
|
-
}>;
|
|
649
|
-
};
|
|
650
|
-
export type GetAvailableGpusQueryVariables = Exact<{
|
|
651
|
-
gpuCount: Scalars["Int"]["input"];
|
|
652
|
-
secureCloud?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
653
|
-
minMemoryInGb?: InputMaybe<Scalars["Int"]["input"]>;
|
|
654
|
-
}>;
|
|
655
|
-
export type GetAvailableGpusQuery = {
|
|
656
|
-
gpuTypes: Array<{
|
|
657
|
-
id: string;
|
|
658
|
-
displayName: string;
|
|
659
|
-
memoryInGb: number;
|
|
660
|
-
secureCloud: boolean;
|
|
661
|
-
communityCloud: boolean;
|
|
662
|
-
lowestPrice?: {
|
|
663
|
-
stockStatus?: string | null;
|
|
664
|
-
uninterruptablePrice?: number | null;
|
|
665
|
-
minimumBidPrice?: number | null;
|
|
666
|
-
rentedCount?: number | null;
|
|
667
|
-
totalCount?: number | null;
|
|
668
|
-
availableGpuCounts?: Array<number | null> | null;
|
|
669
|
-
maxUnreservedGpuCount?: number | null;
|
|
670
|
-
} | null;
|
|
671
|
-
}>;
|
|
672
|
-
};
|
|
673
|
-
export type CreateMinimalOnDemandPodMutationVariables = Exact<{
|
|
674
|
-
input: PodFindAndDeployOnDemandInput;
|
|
675
|
-
}>;
|
|
676
|
-
export type CreateMinimalOnDemandPodMutation = {
|
|
677
|
-
podFindAndDeployOnDemand?: {
|
|
678
|
-
id: string;
|
|
679
|
-
name: string;
|
|
680
|
-
desiredStatus: string;
|
|
681
|
-
costPerHr: number;
|
|
682
|
-
gpuCount?: number | null;
|
|
683
|
-
} | null;
|
|
684
|
-
};
|
|
685
|
-
export type ListMinimalPodsQueryVariables = Exact<{
|
|
686
|
-
[key: string]: never;
|
|
687
|
-
}>;
|
|
688
|
-
export type ListMinimalPodsQuery = {
|
|
689
|
-
myself?: {
|
|
690
|
-
pods?: Array<{
|
|
691
|
-
id: string;
|
|
692
|
-
name: string;
|
|
693
|
-
desiredStatus: string;
|
|
694
|
-
costPerHr: number;
|
|
695
|
-
}> | null;
|
|
696
|
-
} | null;
|
|
697
|
-
};
|
|
698
|
-
export type TerminateMinimalPodMutationVariables = Exact<{
|
|
699
|
-
podId: Scalars["String"]["input"];
|
|
700
|
-
}>;
|
|
701
|
-
export type TerminateMinimalPodMutation = {
|
|
702
|
-
podTerminate?: string | null;
|
|
703
|
-
};
|
|
704
|
-
export declare const PodCoreFragmentDoc: import("graphql").DocumentNode;
|
|
705
|
-
export declare const PodRuntimeFragmentDoc: import("graphql").DocumentNode;
|
|
706
|
-
export declare const PodMachineFragmentDoc: import("graphql").DocumentNode;
|
|
707
|
-
export declare const PodDetailsFragmentDoc: import("graphql").DocumentNode;
|
|
708
|
-
export declare const UserBasicsFragmentDoc: import("graphql").DocumentNode;
|
|
709
|
-
export declare const GpuTypeBasicsFragmentDoc: import("graphql").DocumentNode;
|
|
710
|
-
export declare const GetPodDocument: import("graphql").DocumentNode;
|
|
711
|
-
export declare const ListMyPodsDocument: import("graphql").DocumentNode;
|
|
712
|
-
export declare const CreateOnDemandPodDocument: import("graphql").DocumentNode;
|
|
713
|
-
export declare const CreateInterruptablePodDocument: import("graphql").DocumentNode;
|
|
714
|
-
export declare const StopPodDocument: import("graphql").DocumentNode;
|
|
715
|
-
export declare const ResumePodDocument: import("graphql").DocumentNode;
|
|
716
|
-
export declare const TerminatePodDocument: import("graphql").DocumentNode;
|
|
717
|
-
export declare const GetMyProfileDocument: import("graphql").DocumentNode;
|
|
718
|
-
export declare const ListGpuTypesDocument: import("graphql").DocumentNode;
|
|
719
|
-
export declare const CheckGpuAvailabilityDocument: import("graphql").DocumentNode;
|
|
720
|
-
export declare const GetAvailableGpusDocument: import("graphql").DocumentNode;
|
|
721
|
-
export declare const CreateMinimalOnDemandPodDocument: import("graphql").DocumentNode;
|
|
722
|
-
export declare const ListMinimalPodsDocument: import("graphql").DocumentNode;
|
|
723
|
-
export declare const TerminateMinimalPodDocument: import("graphql").DocumentNode;
|
|
724
|
-
export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
725
|
-
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
726
|
-
GetPod(variables: GetPodQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetPodQuery>;
|
|
727
|
-
ListMyPods(variables?: ListMyPodsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ListMyPodsQuery>;
|
|
728
|
-
CreateOnDemandPod(variables: CreateOnDemandPodMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateOnDemandPodMutation>;
|
|
729
|
-
CreateInterruptablePod(variables: CreateInterruptablePodMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateInterruptablePodMutation>;
|
|
730
|
-
StopPod(variables: StopPodMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<StopPodMutation>;
|
|
731
|
-
ResumePod(variables: ResumePodMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ResumePodMutation>;
|
|
732
|
-
TerminatePod(variables: TerminatePodMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<TerminatePodMutation>;
|
|
733
|
-
GetMyProfile(variables?: GetMyProfileQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetMyProfileQuery>;
|
|
734
|
-
ListGpuTypes(variables?: ListGpuTypesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ListGpuTypesQuery>;
|
|
735
|
-
CheckGpuAvailability(variables: CheckGpuAvailabilityQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CheckGpuAvailabilityQuery>;
|
|
736
|
-
GetAvailableGpus(variables: GetAvailableGpusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetAvailableGpusQuery>;
|
|
737
|
-
CreateMinimalOnDemandPod(variables: CreateMinimalOnDemandPodMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateMinimalOnDemandPodMutation>;
|
|
738
|
-
ListMinimalPods(variables?: ListMinimalPodsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ListMinimalPodsQuery>;
|
|
739
|
-
TerminateMinimalPod(variables: TerminateMinimalPodMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<TerminateMinimalPodMutation>;
|
|
740
|
-
};
|
|
741
|
-
export type Sdk = ReturnType<typeof getSdk>;
|
|
742
|
-
export {};
|