buildx-sdk 1.8.20 → 1.8.21
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 +11 -6
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/services/ApiKeys.d.ts +3 -3
- package/dist/services/Auth.d.ts +4 -14
- package/dist/services/BaseService.d.ts +5 -5
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
|
@@ -24,13 +24,13 @@ export declare class ApiKeys {
|
|
|
24
24
|
/**
|
|
25
25
|
* List all API keys
|
|
26
26
|
*/
|
|
27
|
-
list(
|
|
27
|
+
list(projectId?: string): Promise<ApiKey[] | ErrorResponse>;
|
|
28
28
|
/**
|
|
29
29
|
* Get API key by ID
|
|
30
30
|
*/
|
|
31
|
-
get(apiKeyId: string,
|
|
31
|
+
get(apiKeyId: string, projectId?: string): Promise<ApiKey | ErrorResponse>;
|
|
32
32
|
/**
|
|
33
33
|
* Get API key secret
|
|
34
34
|
*/
|
|
35
|
-
getSecret(apiKeyId: string,
|
|
35
|
+
getSecret(apiKeyId: string, projectId?: string): Promise<any | ErrorResponse>;
|
|
36
36
|
}
|
package/dist/services/Auth.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { AuthUser, LoginCredentials, GoogleCredentials, EotpRequest, EotpVerify,
|
|
|
21
21
|
export declare class Auth {
|
|
22
22
|
private baseService;
|
|
23
23
|
constructor(baseService: BaseService);
|
|
24
|
+
private resolveAuthProjectScope;
|
|
24
25
|
/**
|
|
25
26
|
* Set the access token
|
|
26
27
|
*/
|
|
@@ -61,17 +62,6 @@ export declare class Auth {
|
|
|
61
62
|
* Check if user is authenticated
|
|
62
63
|
*/
|
|
63
64
|
isAuthenticated(): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Set auth project scope for auth route selection.
|
|
66
|
-
* - null => buildx auth mode (no /:project_id prefix)
|
|
67
|
-
* - "<project-id>" => project-based auth mode
|
|
68
|
-
*/
|
|
69
|
-
setProjectScope(projectId: string | null): void;
|
|
70
|
-
/**
|
|
71
|
-
* Get current auth project scope.
|
|
72
|
-
* Returns null when current scope is buildx/root mode.
|
|
73
|
-
*/
|
|
74
|
-
getProjectScope(): string | null;
|
|
75
65
|
/**
|
|
76
66
|
* Store tokens from authentication response
|
|
77
67
|
*/
|
|
@@ -179,15 +169,15 @@ export declare class Auth {
|
|
|
179
169
|
/**
|
|
180
170
|
* List all users (admin only)
|
|
181
171
|
*/
|
|
182
|
-
listUsers(
|
|
172
|
+
listUsers(projectId?: string): Promise<AuthUser[] | ErrorResponse>;
|
|
183
173
|
/**
|
|
184
174
|
* Lookup users (for autocomplete/search)
|
|
185
175
|
*/
|
|
186
|
-
lookupUsers(
|
|
176
|
+
lookupUsers(projectId?: string): Promise<AuthUser[] | ErrorResponse>;
|
|
187
177
|
/**
|
|
188
178
|
* Get user by ID
|
|
189
179
|
*/
|
|
190
|
-
getUser(userId: string,
|
|
180
|
+
getUser(userId: string, projectId?: string): Promise<AuthUser | ErrorResponse>;
|
|
191
181
|
/**
|
|
192
182
|
* Delete user (admin only)
|
|
193
183
|
*/
|
|
@@ -11,7 +11,11 @@ export declare class BaseService {
|
|
|
11
11
|
private _clientId;
|
|
12
12
|
private _clientProof;
|
|
13
13
|
private refreshPromise;
|
|
14
|
-
static
|
|
14
|
+
private static normalizeProjectId;
|
|
15
|
+
private static normalizeEndpoint;
|
|
16
|
+
private static createInstanceKey;
|
|
17
|
+
private static isInstanceConfigMatching;
|
|
18
|
+
static getInstance(apiKey: string, projectId?: string, apiEndpoint?: string): BaseService;
|
|
15
19
|
constructor(config: BuildxConfig);
|
|
16
20
|
/**
|
|
17
21
|
* Update the service configuration
|
|
@@ -107,10 +111,6 @@ export declare class BaseService {
|
|
|
107
111
|
* Build URL with project ID
|
|
108
112
|
*/
|
|
109
113
|
buildProjectUrl(path?: string): string;
|
|
110
|
-
/**
|
|
111
|
-
* Build URL with organization ID
|
|
112
|
-
*/
|
|
113
|
-
buildOrgUrl(path?: string): string;
|
|
114
114
|
/**
|
|
115
115
|
* Build query string from options
|
|
116
116
|
*/
|
package/dist/types/index.d.ts
CHANGED