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.
@@ -24,13 +24,13 @@ export declare class ApiKeys {
24
24
  /**
25
25
  * List all API keys
26
26
  */
27
- list(organizationId?: string): Promise<ApiKey[] | ErrorResponse>;
27
+ list(projectId?: string): Promise<ApiKey[] | ErrorResponse>;
28
28
  /**
29
29
  * Get API key by ID
30
30
  */
31
- get(apiKeyId: string, organizationId?: string): Promise<ApiKey | ErrorResponse>;
31
+ get(apiKeyId: string, projectId?: string): Promise<ApiKey | ErrorResponse>;
32
32
  /**
33
33
  * Get API key secret
34
34
  */
35
- getSecret(apiKeyId: string, organizationId?: string): Promise<any | ErrorResponse>;
35
+ getSecret(apiKeyId: string, projectId?: string): Promise<any | ErrorResponse>;
36
36
  }
@@ -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(organizationId?: string): Promise<AuthUser[] | ErrorResponse>;
172
+ listUsers(projectId?: string): Promise<AuthUser[] | ErrorResponse>;
183
173
  /**
184
174
  * Lookup users (for autocomplete/search)
185
175
  */
186
- lookupUsers(organizationId?: string): Promise<AuthUser[] | ErrorResponse>;
176
+ lookupUsers(projectId?: string): Promise<AuthUser[] | ErrorResponse>;
187
177
  /**
188
178
  * Get user by ID
189
179
  */
190
- getUser(userId: string, organizationId?: string): Promise<AuthUser | ErrorResponse>;
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 getInstance(apiKey: string, projectId?: string, apiEndpoint?: string, organizationId?: string): BaseService;
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
  */
@@ -343,7 +343,6 @@ export interface BuildxConfig {
343
343
  apiEndpoint: string;
344
344
  apiKey: string;
345
345
  projectId?: string;
346
- organizationId?: string;
347
346
  clientId?: string;
348
347
  clientProof?: string;
349
348
  onTokenChange?: (tokens: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildx-sdk",
3
- "version": "1.8.20",
3
+ "version": "1.8.21",
4
4
  "description": "Official JavaScript/TypeScript SDK for Buildx low-code platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",