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.
- 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 -3
- package/dist/services/BaseService.d.ts +5 -5
- package/dist/types/index.d.ts +0 -1
- package/package.json +2 -2
|
@@ -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
|
*/
|
|
@@ -168,15 +169,15 @@ export declare class Auth {
|
|
|
168
169
|
/**
|
|
169
170
|
* List all users (admin only)
|
|
170
171
|
*/
|
|
171
|
-
listUsers(
|
|
172
|
+
listUsers(projectId?: string): Promise<AuthUser[] | ErrorResponse>;
|
|
172
173
|
/**
|
|
173
174
|
* Lookup users (for autocomplete/search)
|
|
174
175
|
*/
|
|
175
|
-
lookupUsers(
|
|
176
|
+
lookupUsers(projectId?: string): Promise<AuthUser[] | ErrorResponse>;
|
|
176
177
|
/**
|
|
177
178
|
* Get user by ID
|
|
178
179
|
*/
|
|
179
|
-
getUser(userId: string,
|
|
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
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buildx-sdk",
|
|
3
|
-
"version": "1.8.
|
|
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": "^
|
|
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"
|