buildx-sdk 1.8.19 → 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
  */
@@ -168,15 +169,15 @@ export declare class Auth {
168
169
  /**
169
170
  * List all users (admin only)
170
171
  */
171
- listUsers(organizationId?: string): Promise<AuthUser[] | ErrorResponse>;
172
+ listUsers(projectId?: string): Promise<AuthUser[] | ErrorResponse>;
172
173
  /**
173
174
  * Lookup users (for autocomplete/search)
174
175
  */
175
- lookupUsers(organizationId?: string): Promise<AuthUser[] | ErrorResponse>;
176
+ lookupUsers(projectId?: string): Promise<AuthUser[] | ErrorResponse>;
176
177
  /**
177
178
  * Get user by ID
178
179
  */
179
- getUser(userId: string, organizationId?: string): Promise<AuthUser | ErrorResponse>;
180
+ getUser(userId: string, projectId?: string): Promise<AuthUser | ErrorResponse>;
180
181
  /**
181
182
  * Delete user (admin only)
182
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.19",
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",
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "dependencies": {
81
81
  "axios": "^1.10.0",
82
- "buildx-common": "^0.1.66",
82
+ "buildx-common": "^1.8.67",
83
83
  "lodash": "^4.17.0",
84
84
  "tslib": "^2.8.1",
85
85
  "typedoc-plugin-jekyll": "^0.1.0"