runpod-sdk 1.1.2 → 1.2.0-beta.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.
Files changed (41) hide show
  1. package/README.md +217 -32
  2. package/dist/src/graphql/client.d.ts +22 -0
  3. package/dist/src/graphql/client.js +75 -0
  4. package/dist/src/graphql/client.js.map +1 -0
  5. package/dist/src/graphql/generated/index.d.ts +742 -0
  6. package/dist/src/graphql/generated/index.js +347 -0
  7. package/dist/src/graphql/generated/index.js.map +1 -0
  8. package/dist/src/graphql/generated/operations.d.ts +428 -0
  9. package/dist/src/graphql/generated/operations.js +2 -0
  10. package/dist/src/graphql/generated/operations.js.map +1 -0
  11. package/dist/src/graphql/generated/sdk.d.ts +31 -0
  12. package/dist/src/graphql/generated/sdk.js +232 -0
  13. package/dist/src/graphql/generated/sdk.js.map +1 -0
  14. package/dist/src/graphql/generated/types.d.ts +4281 -0
  15. package/dist/src/graphql/generated/types.js +2 -0
  16. package/dist/src/graphql/generated/types.js.map +1 -0
  17. package/dist/src/index.d.ts +53 -8
  18. package/dist/src/index.js +73 -9
  19. package/dist/src/index.js.map +1 -1
  20. package/dist/src/pods/generated-gpu-types.d.ts +299 -0
  21. package/dist/src/pods/generated-gpu-types.js +148 -0
  22. package/dist/src/pods/generated-gpu-types.js.map +1 -0
  23. package/dist/src/pods/index.d.ts +122 -0
  24. package/dist/src/pods/index.js +242 -0
  25. package/dist/src/pods/index.js.map +1 -0
  26. package/package.json +17 -2
  27. package/schema.gql +161 -0
  28. package/.prettierrc +0 -12
  29. package/README-dev.md +0 -7
  30. package/examples/basic.js +0 -19
  31. package/examples/cancel.js +0 -27
  32. package/examples/devServerless.js +0 -17
  33. package/examples/errors.js +0 -11
  34. package/examples/health.js +0 -11
  35. package/examples/purge-queue.js +0 -11
  36. package/examples/run.js +0 -27
  37. package/examples/runSync.js +0 -17
  38. package/examples/stream.js +0 -48
  39. package/examples/test.js +0 -74
  40. package/src/index.ts +0 -330
  41. package/tsconfig.json +0 -17
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/graphql/generated/types.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
+ import { PodManager } from './pods/index.js';
1
2
  export type ExecutionPolicy = {
2
3
  executionTimeout?: number;
3
4
  lowPriority?: boolean;
@@ -61,11 +62,14 @@ export type PurgeQueueOutput = {
61
62
  status: string;
62
63
  };
63
64
  export type SdkOptions = {
64
- baseUrl: string;
65
+ baseUrl?: string;
66
+ graphqlUrl?: string;
67
+ timeout?: number;
68
+ retries?: number;
65
69
  };
66
70
  export declare const runpodServerlessBaseUrlProd = "https://api.runpod.ai/v2";
67
71
  export declare const runpodServerlessBaseUrlDev = "https://dev-api.runpod.ai/v2";
68
- export declare const runSync: import("ts-toolbelt/out/Function/Curry").Curry<(baseUrl: string, apiKey: string, endpointId: string, request: EndpointInputPayload, timeout?: number) => Promise<{
72
+ export declare const runSync: import("ts-toolbelt/out/Function/Curry.js").Curry<(baseUrl: string, apiKey: string, endpointId: string, request: EndpointInputPayload, timeout?: number) => Promise<{
69
73
  started: boolean;
70
74
  completed: boolean;
71
75
  delayTime?: number | undefined;
@@ -96,11 +100,11 @@ export declare const runSync: import("ts-toolbelt/out/Function/Curry").Curry<(ba
96
100
  executionTime: number;
97
101
  delayTime: number;
98
102
  }>>;
99
- export declare const run: import("ts-toolbelt/out/Function/Curry").Curry<(baseUrl: string, apiKey: string, endpointId: string, request: EndpointInputPayload, timeout?: number) => Promise<any>>;
100
- export declare const status: import("ts-toolbelt/out/Function/Curry").Curry<(baseUrl: string, apiKey: string, endpointId: string, requestId: string, timeout?: number) => Promise<any>>;
103
+ export declare const run: import("ts-toolbelt/out/Function/Curry.js").Curry<(baseUrl: string, apiKey: string, endpointId: string, request: EndpointInputPayload, timeout?: number) => Promise<any>>;
104
+ export declare const status: import("ts-toolbelt/out/Function/Curry.js").Curry<(baseUrl: string, apiKey: string, endpointId: string, requestId: string, timeout?: number) => Promise<any>>;
101
105
  export declare function stream(baseUrl: string, apiKey: string, endpointId: string, requestId: string, timeout?: number): AsyncGenerator<any, void, unknown>;
102
- export declare const health: import("ts-toolbelt/out/Function/Curry").Curry<(baseUrl: string, apiKey: string, endpointId: string, timeout?: number) => Promise<any>>;
103
- export declare const purgeQueue: import("ts-toolbelt/out/Function/Curry").Curry<(baseUrl: string, apiKey: string, endpointId: string, timeout?: number) => Promise<any>>;
106
+ export declare const health: import("ts-toolbelt/out/Function/Curry.js").Curry<(baseUrl: string, apiKey: string, endpointId: string, timeout?: number) => Promise<any>>;
107
+ export declare const purgeQueue: import("ts-toolbelt/out/Function/Curry.js").Curry<(baseUrl: string, apiKey: string, endpointId: string, timeout?: number) => Promise<any>>;
104
108
  declare class Endpoint {
105
109
  endpointId: string;
106
110
  baseUrl: string;
@@ -117,9 +121,50 @@ declare class Endpoint {
117
121
  }
118
122
  declare class RunpodSdk {
119
123
  private apiKey;
120
- baseUrl: string;
121
- constructor(apiKey: string, options: SdkOptions);
124
+ private options;
125
+ private graphqlClient;
126
+ private _pods?;
127
+ constructor(apiKey: string, options?: SdkOptions);
128
+ /**
129
+ * Get serverless endpoint instance (existing functionality)
130
+ */
122
131
  endpoint(endpointId: string): Endpoint | null;
132
+ /**
133
+ * Pod management API
134
+ */
135
+ get pods(): PodManager;
136
+ /**
137
+ * Get current user profile and usage information
138
+ */
139
+ getProfile(): Promise<{
140
+ id?: string | null | undefined;
141
+ email?: string | null | undefined;
142
+ machineQuota?: number | null | undefined;
143
+ currentSpendPerHr?: number | null | undefined;
144
+ spendLimit?: number | null | undefined;
145
+ referralEarned?: number | null | undefined;
146
+ } | null | undefined>;
147
+ /**
148
+ * List available GPU types
149
+ */
150
+ listGpuTypes(): Promise<{
151
+ id: string;
152
+ displayName: string;
153
+ memoryInGb: number;
154
+ secureCloud: boolean;
155
+ communityCloud: boolean;
156
+ }[]>;
157
+ /**
158
+ * Update API key for both REST and GraphQL clients
159
+ */
160
+ updateApiKey(apiKey: string): void;
161
+ /**
162
+ * Switch between production and development environments
163
+ */
164
+ setEnvironment(env: 'production' | 'development'): void;
123
165
  }
124
166
  declare const _default: (apiKey: string, options?: SdkOptions) => RunpodSdk;
125
167
  export default _default;
168
+ export { RunpodSdk, PodManager };
169
+ export type { Pod, PodConfig, PodFilters, GpuType, GpuTypeId } from './pods/index.js';
170
+ export { GpuTypes, getGpuDisplayName } from './pods/index.js';
package/dist/src/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  import xior from "xior";
2
2
  import { curry, clamp, isNil } from "ramda";
3
3
  import { createRequire } from 'module';
4
+ import { RunPodGraphQLClient } from './graphql/client.js';
5
+ import { PodManager } from './pods/index.js';
6
+ import { getSdk } from './graphql/generated/index.js';
4
7
  const require = createRequire(import.meta.url);
5
- const pkg = require('../../package.json');
8
+ const pkg = require('../package.json');
6
9
  const axios = xior.create();
7
10
  function getUserAgent() {
8
11
  const sdkVersion = pkg.version;
@@ -164,25 +167,86 @@ class Endpoint {
164
167
  }
165
168
  const defaultSdkOptions = {
166
169
  baseUrl: runpodServerlessBaseUrlProd,
170
+ graphqlUrl: 'https://api.runpod.io/graphql',
171
+ timeout: 30000,
172
+ retries: 3,
167
173
  };
168
174
  class RunpodSdk {
169
- constructor(apiKey, options) {
170
- this.apiKey = "";
171
- this.baseUrl = runpodServerlessBaseUrlProd;
175
+ constructor(apiKey, options = {}) {
172
176
  if (isNil(apiKey)) {
173
177
  print("Api key not supplied");
174
- return;
178
+ throw new Error("API key is required");
175
179
  }
176
180
  this.apiKey = apiKey;
177
- this.baseUrl = options.baseUrl ?? this.baseUrl;
178
- }
181
+ this.options = { ...defaultSdkOptions, ...options };
182
+ // Initialize GraphQL client
183
+ this.graphqlClient = new RunPodGraphQLClient({
184
+ apiKey: this.apiKey,
185
+ baseUrl: this.options.graphqlUrl,
186
+ timeout: this.options.timeout,
187
+ retries: this.options.retries
188
+ });
189
+ }
190
+ /**
191
+ * Get serverless endpoint instance (existing functionality)
192
+ */
179
193
  endpoint(endpointId) {
180
194
  if (isNil(endpointId)) {
181
195
  print("Endpoint id not supplied");
182
196
  return null;
183
197
  }
184
- return new Endpoint(this.baseUrl, this.apiKey, endpointId);
198
+ return new Endpoint(this.options.baseUrl, this.apiKey, endpointId);
199
+ }
200
+ /**
201
+ * Pod management API
202
+ */
203
+ get pods() {
204
+ if (!this._pods) {
205
+ this._pods = new PodManager(this.graphqlClient);
206
+ }
207
+ return this._pods;
208
+ }
209
+ /**
210
+ * Get current user profile and usage information
211
+ */
212
+ async getProfile() {
213
+ const sdk = getSdk(this.graphqlClient.graphqlClient);
214
+ const result = await sdk.GetMyProfile();
215
+ return result.myself;
216
+ }
217
+ /**
218
+ * List available GPU types
219
+ */
220
+ async listGpuTypes() {
221
+ const sdk = getSdk(this.graphqlClient.graphqlClient);
222
+ const result = await sdk.ListGpuTypes();
223
+ return result.gpuTypes || [];
224
+ }
225
+ /**
226
+ * Update API key for both REST and GraphQL clients
227
+ */
228
+ updateApiKey(apiKey) {
229
+ this.apiKey = apiKey;
230
+ this.graphqlClient.updateApiKey(apiKey);
231
+ }
232
+ /**
233
+ * Switch between production and development environments
234
+ */
235
+ setEnvironment(env) {
236
+ if (env === 'development') {
237
+ this.options.baseUrl = runpodServerlessBaseUrlDev;
238
+ this.options.graphqlUrl = 'https://api.runpod.dev/graphql';
239
+ }
240
+ else {
241
+ this.options.baseUrl = runpodServerlessBaseUrlProd;
242
+ this.options.graphqlUrl = 'https://api.runpod.io/graphql';
243
+ }
244
+ // Update GraphQL client endpoint
245
+ this.graphqlClient.setEndpoint(this.options.graphqlUrl);
185
246
  }
186
247
  }
187
- export default (apiKey, options = defaultSdkOptions) => new RunpodSdk(apiKey, options);
248
+ export default (apiKey, options = {}) => new RunpodSdk(apiKey, options);
249
+ // Named exports for convenience
250
+ export { RunpodSdk, PodManager };
251
+ export { GpuTypes, getGpuDisplayName } from './pods/index.js';
188
252
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAuC,MAAM,MAAM,CAAA;AAC1D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC9C,MAAM,GAAG,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAA;AAEzC,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;AA8D5B,SAAS,YAAY;IACnB,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC;IAE/B,IAAI,eAAe,GAAG,qBAAqB,CAAC;IAE5C,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,SAAS,EAAE;QACrD,eAAe,GAAG,WAAW,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;KAC3D;IAED,OAAO,iBAAiB,UAAU,KAAK,eAAe,GAAG,CAAC;AAC5D,CAAC;AAED,MAAM,aAAa,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC;IACzC,OAAO,EAAE;QACP,eAAe,EAAE,UAAU,MAAM,EAAE;QAC/B,cAAc,EAAE,kBAAkB;QAClC,YAAY,EAAE,YAAY,EAAE;KACjC;CACF,CAAC,CAAA;AACF,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAA;AAEzB,MAAM,YAAY,GAAG,KAAK,EAAE,YAAoC,EAAE,EAAE;IAClE,MAAM,IAAI,GAAG,MAAM,YAAY,CAAA;IAC/B,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IACnC,IAAI,MAAM,KAAK,GAAG,EAAE;QAClB,OAAO,EAAE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,EAAE,CAAA;QACvC,OAAO,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAA;IAC9B,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,MAAc;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;IACzC,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,GAAiC;QAC9C,IAAI,GAAG,KAAK,aAAa,EAAE;YACzB,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,0BAA0B,CAAA;YACjD,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,gCAAgC,CAAA;SAC3D;aAAM;YACL,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,2BAA2B,CAAA;YAClD,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,+BAA+B,CAAA;SAC1D;QAED,iCAAiC;QACjC,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IACzD,CAAC;CACF;AACD,eAAe,CAAC,MAAc,EAAE,UAAsB,EAAE,EAAE,EAAE,CAC1D,IAAI,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEhC,gCAAgC;AAChC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,CAAA;AAEhC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,299 @@
1
+ /**
2
+ * GPU types available in RunPod production environment
3
+ * Use these constants for type-safe GPU selection
4
+ */
5
+ export declare enum GpuTypes {
6
+ MI300X = "AMD Instinct MI300X OAM",
7
+ A100_PCIE = "NVIDIA A100 80GB PCIe",
8
+ A100_SXM = "NVIDIA A100-SXM4-80GB",
9
+ A30 = "NVIDIA A30",
10
+ A40 = "NVIDIA A40",
11
+ B200 = "NVIDIA B200",
12
+ RTX_3070 = "NVIDIA GeForce RTX 3070",
13
+ RTX_3080 = "NVIDIA GeForce RTX 3080",
14
+ RTX_3080_TI = "NVIDIA GeForce RTX 3080 Ti",
15
+ RTX_3090 = "NVIDIA GeForce RTX 3090",
16
+ RTX_3090_TI = "NVIDIA GeForce RTX 3090 Ti",
17
+ RTX_4070_TI = "NVIDIA GeForce RTX 4070 Ti",
18
+ RTX_4080 = "NVIDIA GeForce RTX 4080",
19
+ RTX_4080_SUPER = "NVIDIA GeForce RTX 4080 SUPER",
20
+ RTX_4090 = "NVIDIA GeForce RTX 4090",
21
+ RTX_5080 = "NVIDIA GeForce RTX 5080",
22
+ RTX_5090 = "NVIDIA GeForce RTX 5090",
23
+ H100_SXM = "NVIDIA H100 80GB HBM3",
24
+ H100_NVL = "NVIDIA H100 NVL",
25
+ H100_PCIE = "NVIDIA H100 PCIe",
26
+ H200_SXM = "NVIDIA H200",
27
+ L4 = "NVIDIA L4",
28
+ L40 = "NVIDIA L40",
29
+ L40S = "NVIDIA L40S",
30
+ RTX_2000_ADA = "NVIDIA RTX 2000 Ada Generation",
31
+ RTX_4000_ADA = "NVIDIA RTX 4000 Ada Generation",
32
+ RTX_4000_ADA_SFF = "NVIDIA RTX 4000 SFF Ada Generation",
33
+ RTX_5000_ADA = "NVIDIA RTX 5000 Ada Generation",
34
+ RTX_6000_ADA = "NVIDIA RTX 6000 Ada Generation",
35
+ RTX_A2000 = "NVIDIA RTX A2000",
36
+ RTX_A4000 = "NVIDIA RTX A4000",
37
+ RTX_A4500 = "NVIDIA RTX A4500",
38
+ RTX_A5000 = "NVIDIA RTX A5000",
39
+ RTX_A6000 = "NVIDIA RTX A6000",
40
+ RTX_PRO_6000 = "NVIDIA RTX PRO 6000 Blackwell Workstation Edition",
41
+ V100_FHHL = "Tesla V100-FHHL-16GB",
42
+ TESLA_V100 = "Tesla V100-PCIE-16GB",
43
+ V100_SXM2 = "Tesla V100-SXM2-16GB",
44
+ V100_SXM2_32GB = "Tesla V100-SXM2-32GB",
45
+ UNKNOWN = "unknown"
46
+ }
47
+ /**
48
+ * Human-readable display names for GPU types
49
+ */
50
+ export declare const GPU_TYPE_DISPLAY_NAMES: Record<string, string>;
51
+ /**
52
+ * Full GPU type data with specifications
53
+ */
54
+ export declare const GPU_TYPES_LIST: readonly [{
55
+ readonly id: "AMD Instinct MI300X OAM";
56
+ readonly displayName: "MI300X";
57
+ readonly memoryInGb: 192;
58
+ readonly secureCloud: true;
59
+ readonly communityCloud: false;
60
+ }, {
61
+ readonly id: "NVIDIA A100 80GB PCIe";
62
+ readonly displayName: "A100 PCIe";
63
+ readonly memoryInGb: 80;
64
+ readonly secureCloud: true;
65
+ readonly communityCloud: true;
66
+ }, {
67
+ readonly id: "NVIDIA A100-SXM4-80GB";
68
+ readonly displayName: "A100 SXM";
69
+ readonly memoryInGb: 80;
70
+ readonly secureCloud: true;
71
+ readonly communityCloud: true;
72
+ }, {
73
+ readonly id: "NVIDIA A30";
74
+ readonly displayName: "A30";
75
+ readonly memoryInGb: 24;
76
+ readonly secureCloud: false;
77
+ readonly communityCloud: true;
78
+ }, {
79
+ readonly id: "NVIDIA A40";
80
+ readonly displayName: "A40";
81
+ readonly memoryInGb: 48;
82
+ readonly secureCloud: true;
83
+ readonly communityCloud: false;
84
+ }, {
85
+ readonly id: "NVIDIA B200";
86
+ readonly displayName: "B200";
87
+ readonly memoryInGb: 180;
88
+ readonly secureCloud: true;
89
+ readonly communityCloud: false;
90
+ }, {
91
+ readonly id: "NVIDIA GeForce RTX 3070";
92
+ readonly displayName: "RTX 3070";
93
+ readonly memoryInGb: 8;
94
+ readonly secureCloud: false;
95
+ readonly communityCloud: true;
96
+ }, {
97
+ readonly id: "NVIDIA GeForce RTX 3080";
98
+ readonly displayName: "RTX 3080";
99
+ readonly memoryInGb: 10;
100
+ readonly secureCloud: false;
101
+ readonly communityCloud: true;
102
+ }, {
103
+ readonly id: "NVIDIA GeForce RTX 3080 Ti";
104
+ readonly displayName: "RTX 3080 Ti";
105
+ readonly memoryInGb: 12;
106
+ readonly secureCloud: false;
107
+ readonly communityCloud: true;
108
+ }, {
109
+ readonly id: "NVIDIA GeForce RTX 3090";
110
+ readonly displayName: "RTX 3090";
111
+ readonly memoryInGb: 24;
112
+ readonly secureCloud: true;
113
+ readonly communityCloud: true;
114
+ }, {
115
+ readonly id: "NVIDIA GeForce RTX 3090 Ti";
116
+ readonly displayName: "RTX 3090 Ti";
117
+ readonly memoryInGb: 24;
118
+ readonly secureCloud: false;
119
+ readonly communityCloud: true;
120
+ }, {
121
+ readonly id: "NVIDIA GeForce RTX 4070 Ti";
122
+ readonly displayName: "RTX 4070 Ti";
123
+ readonly memoryInGb: 12;
124
+ readonly secureCloud: false;
125
+ readonly communityCloud: true;
126
+ }, {
127
+ readonly id: "NVIDIA GeForce RTX 4080";
128
+ readonly displayName: "RTX 4080";
129
+ readonly memoryInGb: 16;
130
+ readonly secureCloud: false;
131
+ readonly communityCloud: true;
132
+ }, {
133
+ readonly id: "NVIDIA GeForce RTX 4080 SUPER";
134
+ readonly displayName: "RTX 4080 SUPER";
135
+ readonly memoryInGb: 16;
136
+ readonly secureCloud: false;
137
+ readonly communityCloud: true;
138
+ }, {
139
+ readonly id: "NVIDIA GeForce RTX 4090";
140
+ readonly displayName: "RTX 4090";
141
+ readonly memoryInGb: 24;
142
+ readonly secureCloud: true;
143
+ readonly communityCloud: true;
144
+ }, {
145
+ readonly id: "NVIDIA GeForce RTX 5080";
146
+ readonly displayName: "RTX 5080";
147
+ readonly memoryInGb: 16;
148
+ readonly secureCloud: false;
149
+ readonly communityCloud: true;
150
+ }, {
151
+ readonly id: "NVIDIA GeForce RTX 5090";
152
+ readonly displayName: "RTX 5090";
153
+ readonly memoryInGb: 32;
154
+ readonly secureCloud: true;
155
+ readonly communityCloud: true;
156
+ }, {
157
+ readonly id: "NVIDIA H100 80GB HBM3";
158
+ readonly displayName: "H100 SXM";
159
+ readonly memoryInGb: 80;
160
+ readonly secureCloud: true;
161
+ readonly communityCloud: true;
162
+ }, {
163
+ readonly id: "NVIDIA H100 NVL";
164
+ readonly displayName: "H100 NVL";
165
+ readonly memoryInGb: 94;
166
+ readonly secureCloud: true;
167
+ readonly communityCloud: true;
168
+ }, {
169
+ readonly id: "NVIDIA H100 PCIe";
170
+ readonly displayName: "H100 PCIe";
171
+ readonly memoryInGb: 80;
172
+ readonly secureCloud: true;
173
+ readonly communityCloud: true;
174
+ }, {
175
+ readonly id: "NVIDIA H200";
176
+ readonly displayName: "H200 SXM";
177
+ readonly memoryInGb: 141;
178
+ readonly secureCloud: true;
179
+ readonly communityCloud: true;
180
+ }, {
181
+ readonly id: "NVIDIA L4";
182
+ readonly displayName: "L4";
183
+ readonly memoryInGb: 24;
184
+ readonly secureCloud: true;
185
+ readonly communityCloud: false;
186
+ }, {
187
+ readonly id: "NVIDIA L40";
188
+ readonly displayName: "L40";
189
+ readonly memoryInGb: 48;
190
+ readonly secureCloud: true;
191
+ readonly communityCloud: true;
192
+ }, {
193
+ readonly id: "NVIDIA L40S";
194
+ readonly displayName: "L40S";
195
+ readonly memoryInGb: 48;
196
+ readonly secureCloud: true;
197
+ readonly communityCloud: true;
198
+ }, {
199
+ readonly id: "NVIDIA RTX 2000 Ada Generation";
200
+ readonly displayName: "RTX 2000 Ada";
201
+ readonly memoryInGb: 16;
202
+ readonly secureCloud: true;
203
+ readonly communityCloud: false;
204
+ }, {
205
+ readonly id: "NVIDIA RTX 4000 Ada Generation";
206
+ readonly displayName: "RTX 4000 Ada";
207
+ readonly memoryInGb: 20;
208
+ readonly secureCloud: true;
209
+ readonly communityCloud: true;
210
+ }, {
211
+ readonly id: "NVIDIA RTX 4000 SFF Ada Generation";
212
+ readonly displayName: "RTX 4000 Ada SFF";
213
+ readonly memoryInGb: 20;
214
+ readonly secureCloud: false;
215
+ readonly communityCloud: true;
216
+ }, {
217
+ readonly id: "NVIDIA RTX 5000 Ada Generation";
218
+ readonly displayName: "RTX 5000 Ada";
219
+ readonly memoryInGb: 32;
220
+ readonly secureCloud: false;
221
+ readonly communityCloud: true;
222
+ }, {
223
+ readonly id: "NVIDIA RTX 6000 Ada Generation";
224
+ readonly displayName: "RTX 6000 Ada";
225
+ readonly memoryInGb: 48;
226
+ readonly secureCloud: true;
227
+ readonly communityCloud: true;
228
+ }, {
229
+ readonly id: "NVIDIA RTX A2000";
230
+ readonly displayName: "RTX A2000";
231
+ readonly memoryInGb: 6;
232
+ readonly secureCloud: false;
233
+ readonly communityCloud: true;
234
+ }, {
235
+ readonly id: "NVIDIA RTX A4000";
236
+ readonly displayName: "RTX A4000";
237
+ readonly memoryInGb: 16;
238
+ readonly secureCloud: true;
239
+ readonly communityCloud: true;
240
+ }, {
241
+ readonly id: "NVIDIA RTX A4500";
242
+ readonly displayName: "RTX A4500";
243
+ readonly memoryInGb: 20;
244
+ readonly secureCloud: true;
245
+ readonly communityCloud: true;
246
+ }, {
247
+ readonly id: "NVIDIA RTX A5000";
248
+ readonly displayName: "RTX A5000";
249
+ readonly memoryInGb: 24;
250
+ readonly secureCloud: true;
251
+ readonly communityCloud: true;
252
+ }, {
253
+ readonly id: "NVIDIA RTX A6000";
254
+ readonly displayName: "RTX A6000";
255
+ readonly memoryInGb: 48;
256
+ readonly secureCloud: true;
257
+ readonly communityCloud: true;
258
+ }, {
259
+ readonly id: "NVIDIA RTX PRO 6000 Blackwell Workstation Edition";
260
+ readonly displayName: "RTX PRO 6000";
261
+ readonly memoryInGb: 96;
262
+ readonly secureCloud: true;
263
+ readonly communityCloud: true;
264
+ }, {
265
+ readonly id: "Tesla V100-FHHL-16GB";
266
+ readonly displayName: "V100 FHHL";
267
+ readonly memoryInGb: 16;
268
+ readonly secureCloud: false;
269
+ readonly communityCloud: true;
270
+ }, {
271
+ readonly id: "Tesla V100-PCIE-16GB";
272
+ readonly displayName: "Tesla V100";
273
+ readonly memoryInGb: 16;
274
+ readonly secureCloud: false;
275
+ readonly communityCloud: true;
276
+ }, {
277
+ readonly id: "Tesla V100-SXM2-16GB";
278
+ readonly displayName: "V100 SXM2";
279
+ readonly memoryInGb: 16;
280
+ readonly secureCloud: false;
281
+ readonly communityCloud: true;
282
+ }, {
283
+ readonly id: "Tesla V100-SXM2-32GB";
284
+ readonly displayName: "V100 SXM2 32GB";
285
+ readonly memoryInGb: 32;
286
+ readonly secureCloud: false;
287
+ readonly communityCloud: true;
288
+ }, {
289
+ readonly id: "unknown";
290
+ readonly displayName: "unknown";
291
+ readonly memoryInGb: 0;
292
+ readonly secureCloud: false;
293
+ readonly communityCloud: false;
294
+ }];
295
+ export type GpuTypeId = keyof typeof GPU_TYPE_DISPLAY_NAMES;
296
+ /**
297
+ * Get display name for a GPU type ID
298
+ */
299
+ export declare function getGpuDisplayName(gpuTypeId: string): string;