@gpuai/sdk 0.3.4 → 0.3.6
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 +10 -0
- package/README.md +9 -2
- package/dist/apis/RegistryCredentialsApi.d.ts +66 -0
- package/dist/apis/RegistryCredentialsApi.js +173 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/RegistryCredentialsApi.d.ts +66 -0
- package/dist/esm/apis/RegistryCredentialsApi.js +169 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/CreateInstanceRequest.d.ts +26 -1
- package/dist/esm/models/CreateInstanceRequest.js +9 -0
- package/dist/esm/models/CreateInstanceRequestPortsInner.d.ts +52 -0
- package/dist/esm/models/CreateInstanceRequestPortsInner.js +56 -0
- package/dist/esm/models/CreateRegistryCredentialRequest.d.ts +50 -0
- package/dist/esm/models/CreateRegistryCredentialRequest.js +55 -0
- package/dist/esm/models/ListRegistryCredentials200Response.d.ts +33 -0
- package/dist/esm/models/ListRegistryCredentials200Response.js +42 -0
- package/dist/esm/models/RegistryCredential.d.ts +56 -0
- package/dist/esm/models/RegistryCredential.js +49 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/CreateInstanceRequest.d.ts +26 -1
- package/dist/models/CreateInstanceRequest.js +9 -0
- package/dist/models/CreateInstanceRequestPortsInner.d.ts +52 -0
- package/dist/models/CreateInstanceRequestPortsInner.js +64 -0
- package/dist/models/CreateRegistryCredentialRequest.d.ts +50 -0
- package/dist/models/CreateRegistryCredentialRequest.js +62 -0
- package/dist/models/ListRegistryCredentials200Response.d.ts +33 -0
- package/dist/models/ListRegistryCredentials200Response.js +49 -0
- package/dist/models/RegistryCredential.d.ts +56 -0
- package/dist/models/RegistryCredential.js +56 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/CreateInstanceRequest.md +8 -0
- package/docs/CreateInstanceRequestPortsInner.md +38 -0
- package/docs/CreateRegistryCredentialRequest.md +40 -0
- package/docs/ListRegistryCredentials200Response.md +34 -0
- package/docs/RegistryCredential.md +43 -0
- package/docs/RegistryCredentialsApi.md +220 -0
- package/package.json +1 -1
- package/src/apis/RegistryCredentialsApi.ts +206 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreateInstanceRequest.ts +41 -1
- package/src/models/CreateInstanceRequestPortsInner.ts +94 -0
- package/src/models/CreateRegistryCredentialRequest.ts +93 -0
- package/src/models/ListRegistryCredentials200Response.ts +73 -0
- package/src/models/RegistryCredential.ts +97 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.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 CreateRegistryCredentialRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateRegistryCredentialRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Org-unique handle (at most 64 characters).
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateRegistryCredentialRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Registry host the login belongs to.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateRegistryCredentialRequest
|
|
32
|
+
*/
|
|
33
|
+
registry: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateRegistryCredentialRequest
|
|
38
|
+
*/
|
|
39
|
+
username: string;
|
|
40
|
+
/**
|
|
41
|
+
* Registry password or access token. Write-only.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateRegistryCredentialRequest
|
|
44
|
+
*/
|
|
45
|
+
password: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the CreateRegistryCredentialRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfCreateRegistryCredentialRequest(value: object): value is CreateRegistryCredentialRequest {
|
|
52
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
|
+
if (!('registry' in value) || value['registry'] === undefined) return false;
|
|
54
|
+
if (!('username' in value) || value['username'] === undefined) return false;
|
|
55
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CreateRegistryCredentialRequestFromJSON(json: any): CreateRegistryCredentialRequest {
|
|
60
|
+
return CreateRegistryCredentialRequestFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CreateRegistryCredentialRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRegistryCredentialRequest {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': json['name'],
|
|
70
|
+
'registry': json['registry'],
|
|
71
|
+
'username': json['username'],
|
|
72
|
+
'password': json['password'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function CreateRegistryCredentialRequestToJSON(json: any): CreateRegistryCredentialRequest {
|
|
77
|
+
return CreateRegistryCredentialRequestToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function CreateRegistryCredentialRequestToJSONTyped(value?: CreateRegistryCredentialRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'registry': value['registry'],
|
|
89
|
+
'username': value['username'],
|
|
90
|
+
'password': value['password'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.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 { RegistryCredential } from './RegistryCredential';
|
|
17
|
+
import {
|
|
18
|
+
RegistryCredentialFromJSON,
|
|
19
|
+
RegistryCredentialFromJSONTyped,
|
|
20
|
+
RegistryCredentialToJSON,
|
|
21
|
+
RegistryCredentialToJSONTyped,
|
|
22
|
+
} from './RegistryCredential';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ListRegistryCredentials200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ListRegistryCredentials200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<RegistryCredential>}
|
|
33
|
+
* @memberof ListRegistryCredentials200Response
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<RegistryCredential>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ListRegistryCredentials200Response interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfListRegistryCredentials200Response(value: object): value is ListRegistryCredentials200Response {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ListRegistryCredentials200ResponseFromJSON(json: any): ListRegistryCredentials200Response {
|
|
46
|
+
return ListRegistryCredentials200ResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ListRegistryCredentials200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListRegistryCredentials200Response {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(RegistryCredentialFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ListRegistryCredentials200ResponseToJSON(json: any): ListRegistryCredentials200Response {
|
|
60
|
+
return ListRegistryCredentials200ResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ListRegistryCredentials200ResponseToJSONTyped(value?: ListRegistryCredentials200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(RegistryCredentialToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.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
|
+
* A stored private-registry login (metadata only — the password is write-only and encrypted at rest).
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RegistryCredential
|
|
20
|
+
*/
|
|
21
|
+
export interface RegistryCredential {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RegistryCredential
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RegistryCredential
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RegistryCredential
|
|
38
|
+
*/
|
|
39
|
+
registry?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof RegistryCredential
|
|
44
|
+
*/
|
|
45
|
+
username?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof RegistryCredential
|
|
50
|
+
*/
|
|
51
|
+
createdAt?: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the RegistryCredential interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfRegistryCredential(value: object): value is RegistryCredential {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function RegistryCredentialFromJSON(json: any): RegistryCredential {
|
|
62
|
+
return RegistryCredentialFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RegistryCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegistryCredential {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
72
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
73
|
+
'registry': json['registry'] == null ? undefined : json['registry'],
|
|
74
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
75
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function RegistryCredentialToJSON(json: any): RegistryCredential {
|
|
80
|
+
return RegistryCredentialToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function RegistryCredentialToJSONTyped(value?: RegistryCredential | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': value['id'],
|
|
91
|
+
'name': value['name'],
|
|
92
|
+
'registry': value['registry'],
|
|
93
|
+
'username': value['username'],
|
|
94
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -14,6 +14,8 @@ export * from './CreateFineTuningJobRequestGpuai';
|
|
|
14
14
|
export * from './CreateFineTuningJobRequestMethod';
|
|
15
15
|
export * from './CreateFineTuningJobRequestMethodLora';
|
|
16
16
|
export * from './CreateInstanceRequest';
|
|
17
|
+
export * from './CreateInstanceRequestPortsInner';
|
|
18
|
+
export * from './CreateRegistryCredentialRequest';
|
|
17
19
|
export * from './CreateSshKeyRequest';
|
|
18
20
|
export * from './CreateWebhookEndpointRequest';
|
|
19
21
|
export * from './CryptoDeposit';
|
|
@@ -39,6 +41,7 @@ export * from './InstanceConnection';
|
|
|
39
41
|
export * from './InstancePage';
|
|
40
42
|
export * from './ListCommunityMachines200Response';
|
|
41
43
|
export * from './ListDeposits200Response';
|
|
44
|
+
export * from './ListRegistryCredentials200Response';
|
|
42
45
|
export * from './Model';
|
|
43
46
|
export * from './ModelList';
|
|
44
47
|
export * from './ModelParametersInner';
|
|
@@ -52,6 +55,7 @@ export * from './Pricing';
|
|
|
52
55
|
export * from './PricingPage';
|
|
53
56
|
export * from './Problem';
|
|
54
57
|
export * from './RegisterCommunityMachineRequest';
|
|
58
|
+
export * from './RegistryCredential';
|
|
55
59
|
export * from './SSHKey';
|
|
56
60
|
export * from './SSHKeyPage';
|
|
57
61
|
export * from './SpendingLimit';
|