@composio/client 0.1.0-alpha.36 → 0.1.0-alpha.38
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/CHANGELOG.md +64 -0
- package/client.d.mts +11 -14
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -14
- package/client.d.ts.map +1 -1
- package/client.js +3 -6
- package/client.js.map +1 -1
- package/client.mjs +5 -8
- package/client.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +1 -1
- package/internal/utils/values.js +3 -3
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +3 -3
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +10 -4
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +10 -4
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/cli.d.mts +1 -76
- package/resources/cli.d.mts.map +1 -1
- package/resources/cli.d.ts +1 -76
- package/resources/cli.d.ts.map +1 -1
- package/resources/cli.js +0 -28
- package/resources/cli.js.map +1 -1
- package/resources/cli.mjs +0 -28
- package/resources/cli.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +478 -4
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +478 -4
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/files.d.mts +1 -1
- package/resources/files.d.ts +1 -1
- package/resources/index.d.mts +5 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -3
- package/resources/index.mjs.map +1 -1
- package/resources/link.d.mts +1562 -81
- package/resources/link.d.mts.map +1 -1
- package/resources/link.d.ts +1562 -81
- package/resources/link.d.ts.map +1 -1
- package/resources/link.js +0 -13
- package/resources/link.js.map +1 -1
- package/resources/link.mjs +0 -13
- package/resources/link.mjs.map +1 -1
- package/resources/mcp/index.d.mts +1 -1
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts +1 -1
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.js.map +1 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +1 -95
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +1 -95
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +0 -22
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +0 -22
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/tool-router.d.mts +87 -0
- package/resources/tool-router.d.mts.map +1 -0
- package/resources/tool-router.d.ts +87 -0
- package/resources/tool-router.d.ts.map +1 -0
- package/resources/tool-router.js +38 -0
- package/resources/tool-router.js.map +1 -0
- package/resources/tool-router.mjs +34 -0
- package/resources/tool-router.mjs.map +1 -0
- package/resources/toolkits.d.mts +21 -3
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +21 -3
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +2 -2
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +2 -2
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +87 -7
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +87 -7
- package/resources/tools.d.ts.map +1 -1
- package/resources/trigger-instances/index.d.mts +0 -1
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +0 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js +1 -3
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs +0 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +1 -5
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +1 -5
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +0 -4
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +0 -4
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/triggers-types.d.mts +11 -2
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +11 -2
- package/resources/triggers-types.d.ts.map +1 -1
- package/src/client.ts +16 -46
- package/src/internal/to-file.ts +1 -1
- package/src/internal/utils/values.ts +3 -3
- package/src/resources/auth-configs.ts +11 -4
- package/src/resources/cli.ts +0 -89
- package/src/resources/connected-accounts.ts +975 -63
- package/src/resources/files.ts +1 -1
- package/src/resources/index.ts +6 -19
- package/src/resources/link.ts +3001 -112
- package/src/resources/mcp/index.ts +0 -2
- package/src/resources/mcp/mcp.ts +0 -123
- package/src/resources/tool-router.ts +107 -0
- package/src/resources/toolkits.ts +30 -3
- package/src/resources/tools.ts +149 -7
- package/src/resources/trigger-instances/index.ts +0 -7
- package/src/resources/trigger-instances/trigger-instances.ts +1 -19
- package/src/resources/triggers-types.ts +13 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/org/api-key.d.mts +0 -44
- package/resources/org/api-key.d.mts.map +0 -1
- package/resources/org/api-key.d.ts +0 -44
- package/resources/org/api-key.d.ts.map +0 -1
- package/resources/org/api-key.js +0 -34
- package/resources/org/api-key.js.map +0 -1
- package/resources/org/api-key.mjs +0 -30
- package/resources/org/api-key.mjs.map +0 -1
- package/resources/org/index.d.mts +0 -4
- package/resources/org/index.d.mts.map +0 -1
- package/resources/org/index.d.ts +0 -4
- package/resources/org/index.d.ts.map +0 -1
- package/resources/org/index.js +0 -11
- package/resources/org/index.js.map +0 -1
- package/resources/org/index.mjs +0 -5
- package/resources/org/index.mjs.map +0 -1
- package/resources/org/org.d.mts +0 -14
- package/resources/org/org.d.mts.map +0 -1
- package/resources/org/org.d.ts +0 -14
- package/resources/org/org.d.ts.map +0 -1
- package/resources/org/org.js +0 -21
- package/resources/org/org.js.map +0 -1
- package/resources/org/org.mjs +0 -16
- package/resources/org/org.mjs.map +0 -1
- package/resources/org/project/api-keys.d.mts +0 -142
- package/resources/org/project/api-keys.d.mts.map +0 -1
- package/resources/org/project/api-keys.d.ts +0 -142
- package/resources/org/project/api-keys.d.ts.map +0 -1
- package/resources/org/project/api-keys.js +0 -62
- package/resources/org/project/api-keys.js.map +0 -1
- package/resources/org/project/api-keys.mjs +0 -58
- package/resources/org/project/api-keys.mjs.map +0 -1
- package/resources/org/project/index.d.mts +0 -5
- package/resources/org/project/index.d.mts.map +0 -1
- package/resources/org/project/index.d.ts +0 -5
- package/resources/org/project/index.d.ts.map +0 -1
- package/resources/org/project/index.js +0 -13
- package/resources/org/project/index.js.map +0 -1
- package/resources/org/project/index.mjs +0 -6
- package/resources/org/project/index.mjs.map +0 -1
- package/resources/org/project/project.d.mts +0 -268
- package/resources/org/project/project.d.mts.map +0 -1
- package/resources/org/project/project.d.ts +0 -268
- package/resources/org/project/project.d.ts.map +0 -1
- package/resources/org/project/project.js +0 -90
- package/resources/org/project/project.js.map +0 -1
- package/resources/org/project/project.mjs +0 -85
- package/resources/org/project/project.mjs.map +0 -1
- package/resources/org/project/trigger.d.mts +0 -145
- package/resources/org/project/trigger.d.mts.map +0 -1
- package/resources/org/project/trigger.d.ts +0 -145
- package/resources/org/project/trigger.d.ts.map +0 -1
- package/resources/org/project/trigger.js +0 -35
- package/resources/org/project/trigger.js.map +0 -1
- package/resources/org/project/trigger.mjs +0 -31
- package/resources/org/project/trigger.mjs.map +0 -1
- package/resources/org/project/webhook.d.mts +0 -166
- package/resources/org/project/webhook.d.mts.map +0 -1
- package/resources/org/project/webhook.d.ts +0 -166
- package/resources/org/project/webhook.d.ts.map +0 -1
- package/resources/org/project/webhook.js +0 -74
- package/resources/org/project/webhook.js.map +0 -1
- package/resources/org/project/webhook.mjs +0 -70
- package/resources/org/project/webhook.mjs.map +0 -1
- package/resources/org/project.d.mts +0 -2
- package/resources/org/project.d.mts.map +0 -1
- package/resources/org/project.d.ts +0 -2
- package/resources/org/project.d.ts.map +0 -1
- package/resources/org/project.js +0 -6
- package/resources/org/project.js.map +0 -1
- package/resources/org/project.mjs +0 -3
- package/resources/org/project.mjs.map +0 -1
- package/resources/org.d.mts +0 -2
- package/resources/org.d.mts.map +0 -1
- package/resources/org.d.ts +0 -2
- package/resources/org.d.ts.map +0 -1
- package/resources/org.js +0 -6
- package/resources/org.js.map +0 -1
- package/resources/org.mjs +0 -3
- package/resources/org.mjs.map +0 -1
- package/resources/team-members.d.mts +0 -55
- package/resources/team-members.d.mts.map +0 -1
- package/resources/team-members.d.ts +0 -55
- package/resources/team-members.d.ts.map +0 -1
- package/resources/team-members.js +0 -38
- package/resources/team-members.js.map +0 -1
- package/resources/team-members.mjs +0 -34
- package/resources/team-members.mjs.map +0 -1
- package/resources/trigger-instances/handle.d.mts +0 -25
- package/resources/trigger-instances/handle.d.mts.map +0 -1
- package/resources/trigger-instances/handle.d.ts +0 -25
- package/resources/trigger-instances/handle.d.ts.map +0 -1
- package/resources/trigger-instances/handle.js +0 -18
- package/resources/trigger-instances/handle.js.map +0 -1
- package/resources/trigger-instances/handle.mjs +0 -14
- package/resources/trigger-instances/handle.mjs.map +0 -1
- package/src/resources/org/api-key.ts +0 -57
- package/src/resources/org/index.ts +0 -13
- package/src/resources/org/org.ts +0 -41
- package/src/resources/org/project/api-keys.ts +0 -180
- package/src/resources/org/project/index.ts +0 -35
- package/src/resources/org/project/project.ts +0 -381
- package/src/resources/org/project/trigger.ts +0 -188
- package/src/resources/org/project/webhook.ts +0 -205
- package/src/resources/org/project.ts +0 -3
- package/src/resources/org.ts +0 -3
- package/src/resources/team-members.ts +0 -101
- package/src/resources/trigger-instances/handle.ts +0 -53
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.38'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.38'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
-
export declare class APIKey extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieve the API key for the current organization. This endpoint is restricted
|
|
7
|
-
* to organization administrators only. The returned API key can be used for
|
|
8
|
-
* authenticating organization-level API requests.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const apiKey = await client.org.apiKey.retrieve();
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
retrieve(options?: RequestOptions): APIPromise<APIKeyRetrieveResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Generate a new API key for the organization, invalidating the previous one
|
|
18
|
-
* (admin only).
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* const response = await client.org.apiKey.regenerate();
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
regenerate(options?: RequestOptions): APIPromise<APIKeyRegenerateResponse>;
|
|
26
|
-
}
|
|
27
|
-
export interface APIKeyRetrieveResponse {
|
|
28
|
-
/**
|
|
29
|
-
* The API key for the organization that can be used for authentication. Format:
|
|
30
|
-
* org_xxx
|
|
31
|
-
*/
|
|
32
|
-
org_api_key: string;
|
|
33
|
-
}
|
|
34
|
-
export interface APIKeyRegenerateResponse {
|
|
35
|
-
/**
|
|
36
|
-
* The newly generated API key for the organization that can be used for
|
|
37
|
-
* authentication. Format: org_xxx
|
|
38
|
-
*/
|
|
39
|
-
org_api_key: string;
|
|
40
|
-
}
|
|
41
|
-
export declare namespace APIKey {
|
|
42
|
-
export { type APIKeyRetrieveResponse as APIKeyRetrieveResponse, type APIKeyRegenerateResponse as APIKeyRegenerateResponse, };
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=api-key.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.d.mts","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAItE;;;;;;;;OAQG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAG3E;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
-
export declare class APIKey extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieve the API key for the current organization. This endpoint is restricted
|
|
7
|
-
* to organization administrators only. The returned API key can be used for
|
|
8
|
-
* authenticating organization-level API requests.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const apiKey = await client.org.apiKey.retrieve();
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
retrieve(options?: RequestOptions): APIPromise<APIKeyRetrieveResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Generate a new API key for the organization, invalidating the previous one
|
|
18
|
-
* (admin only).
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* const response = await client.org.apiKey.regenerate();
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
regenerate(options?: RequestOptions): APIPromise<APIKeyRegenerateResponse>;
|
|
26
|
-
}
|
|
27
|
-
export interface APIKeyRetrieveResponse {
|
|
28
|
-
/**
|
|
29
|
-
* The API key for the organization that can be used for authentication. Format:
|
|
30
|
-
* org_xxx
|
|
31
|
-
*/
|
|
32
|
-
org_api_key: string;
|
|
33
|
-
}
|
|
34
|
-
export interface APIKeyRegenerateResponse {
|
|
35
|
-
/**
|
|
36
|
-
* The newly generated API key for the organization that can be used for
|
|
37
|
-
* authentication. Format: org_xxx
|
|
38
|
-
*/
|
|
39
|
-
org_api_key: string;
|
|
40
|
-
}
|
|
41
|
-
export declare namespace APIKey {
|
|
42
|
-
export { type APIKeyRetrieveResponse as APIKeyRetrieveResponse, type APIKeyRegenerateResponse as APIKeyRegenerateResponse, };
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=api-key.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAItE;;;;;;;;OAQG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAG3E;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
package/resources/org/api-key.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.APIKey = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
class APIKey extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Retrieve the API key for the current organization. This endpoint is restricted
|
|
9
|
-
* to organization administrators only. The returned API key can be used for
|
|
10
|
-
* authenticating organization-level API requests.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const apiKey = await client.org.apiKey.retrieve();
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
retrieve(options) {
|
|
18
|
-
return this._client.get('/api/v3/org/api_key', options);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Generate a new API key for the organization, invalidating the previous one
|
|
22
|
-
* (admin only).
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const response = await client.org.apiKey.regenerate();
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
regenerate(options) {
|
|
30
|
-
return this._client.post('/api/v3/org/api_key/regenerate', options);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.APIKey = APIKey;
|
|
34
|
-
//# sourceMappingURL=api-key.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.js","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;OAQG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF;AA3BD,wBA2BC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
export class APIKey extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieve the API key for the current organization. This endpoint is restricted
|
|
6
|
-
* to organization administrators only. The returned API key can be used for
|
|
7
|
-
* authenticating organization-level API requests.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const apiKey = await client.org.apiKey.retrieve();
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
retrieve(options) {
|
|
15
|
-
return this._client.get('/api/v3/org/api_key', options);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Generate a new API key for the organization, invalidating the previous one
|
|
19
|
-
* (admin only).
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const response = await client.org.apiKey.regenerate();
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
regenerate(options) {
|
|
27
|
-
return this._client.post('/api/v3/org/api_key/regenerate', options);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=api-key.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.mjs","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;OAQG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { APIKey, type APIKeyRetrieveResponse, type APIKeyRegenerateResponse } from "./api-key.mjs";
|
|
2
|
-
export { Org } from "./org.mjs";
|
|
3
|
-
export { Project, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectListResponse, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectListParams, } from "./project/index.mjs";
|
|
4
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/org/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,sBAAsB,EAAE,KAAK,wBAAwB,EAAE;OACtE,EAAE,GAAG,EAAE;OACP,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB"}
|
package/resources/org/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { APIKey, type APIKeyRetrieveResponse, type APIKeyRegenerateResponse } from "./api-key.js";
|
|
2
|
-
export { Org } from "./org.js";
|
|
3
|
-
export { Project, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectListResponse, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectListParams, } from "./project/index.js";
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/org/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,sBAAsB,EAAE,KAAK,wBAAwB,EAAE;OACtE,EAAE,GAAG,EAAE;OACP,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB"}
|
package/resources/org/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Project = exports.Org = exports.APIKey = void 0;
|
|
5
|
-
var api_key_1 = require("./api-key.js");
|
|
6
|
-
Object.defineProperty(exports, "APIKey", { enumerable: true, get: function () { return api_key_1.APIKey; } });
|
|
7
|
-
var org_1 = require("./org.js");
|
|
8
|
-
Object.defineProperty(exports, "Org", { enumerable: true, get: function () { return org_1.Org; } });
|
|
9
|
-
var index_1 = require("./project/index.js");
|
|
10
|
-
Object.defineProperty(exports, "Project", { enumerable: true, get: function () { return index_1.Project; } });
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/org/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA+F;AAAtF,iGAAA,MAAM,OAAA;AACf,gCAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,4CAQyB;AAPvB,gGAAA,OAAO,OAAA"}
|
package/resources/org/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/org/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAA8D;OACtE,EAAE,GAAG,EAAE;OACP,EACL,OAAO,GAOR"}
|
package/resources/org/org.d.mts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as APIKeyAPI from "./api-key.mjs";
|
|
3
|
-
import { APIKey, APIKeyRegenerateResponse, APIKeyRetrieveResponse } from "./api-key.mjs";
|
|
4
|
-
import * as ProjectAPI from "./project/project.mjs";
|
|
5
|
-
import { Project, ProjectCreateParams, ProjectCreateResponse, ProjectDeleteResponse, ProjectListParams, ProjectListResponse, ProjectRetrieveResponse } from "./project/project.mjs";
|
|
6
|
-
export declare class Org extends APIResource {
|
|
7
|
-
apiKey: APIKeyAPI.APIKey;
|
|
8
|
-
project: ProjectAPI.Project;
|
|
9
|
-
}
|
|
10
|
-
export declare namespace Org {
|
|
11
|
-
export { APIKey as APIKey, type APIKeyRetrieveResponse as APIKeyRetrieveResponse, type APIKeyRegenerateResponse as APIKeyRegenerateResponse, };
|
|
12
|
-
export { Project as Project, type ProjectCreateResponse as ProjectCreateResponse, type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectListResponse as ProjectListResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectListParams as ProjectListParams, };
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=org.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.d.mts","sourceRoot":"","sources":["../../src/resources/org/org.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,wBAAwB,EAAE,sBAAsB,EAAE;OAC5D,KAAK,UAAU;OACf,EACL,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACxB;AAED,qBAAa,GAAI,SAAQ,WAAW;IAClC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAKD,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/org/org.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as APIKeyAPI from "./api-key.js";
|
|
3
|
-
import { APIKey, APIKeyRegenerateResponse, APIKeyRetrieveResponse } from "./api-key.js";
|
|
4
|
-
import * as ProjectAPI from "./project/project.js";
|
|
5
|
-
import { Project, ProjectCreateParams, ProjectCreateResponse, ProjectDeleteResponse, ProjectListParams, ProjectListResponse, ProjectRetrieveResponse } from "./project/project.js";
|
|
6
|
-
export declare class Org extends APIResource {
|
|
7
|
-
apiKey: APIKeyAPI.APIKey;
|
|
8
|
-
project: ProjectAPI.Project;
|
|
9
|
-
}
|
|
10
|
-
export declare namespace Org {
|
|
11
|
-
export { APIKey as APIKey, type APIKeyRetrieveResponse as APIKeyRetrieveResponse, type APIKeyRegenerateResponse as APIKeyRegenerateResponse, };
|
|
12
|
-
export { Project as Project, type ProjectCreateResponse as ProjectCreateResponse, type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectListResponse as ProjectListResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectListParams as ProjectListParams, };
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=org.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.d.ts","sourceRoot":"","sources":["../../src/resources/org/org.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,wBAAwB,EAAE,sBAAsB,EAAE;OAC5D,KAAK,UAAU;OACf,EACL,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACxB;AAED,qBAAa,GAAI,SAAQ,WAAW;IAClC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAKD,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/org/org.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Org = void 0;
|
|
5
|
-
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
-
const resource_1 = require("../../core/resource.js");
|
|
7
|
-
const APIKeyAPI = tslib_1.__importStar(require("./api-key.js"));
|
|
8
|
-
const api_key_1 = require("./api-key.js");
|
|
9
|
-
const ProjectAPI = tslib_1.__importStar(require("./project/project.js"));
|
|
10
|
-
const project_1 = require("./project/project.js");
|
|
11
|
-
class Org extends resource_1.APIResource {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.apiKey = new APIKeyAPI.APIKey(this._client);
|
|
15
|
-
this.project = new ProjectAPI.Project(this._client);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.Org = Org;
|
|
19
|
-
Org.APIKey = api_key_1.APIKey;
|
|
20
|
-
Org.Project = project_1.Project;
|
|
21
|
-
//# sourceMappingURL=org.js.map
|
package/resources/org/org.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.js","sourceRoot":"","sources":["../../src/resources/org/org.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,gEAAuC;AACvC,0CAAqF;AACrF,yEAAgD;AAChD,kDAQ2B;AAE3B,MAAa,GAAI,SAAQ,sBAAW;IAApC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAHD,kBAGC;AAED,GAAG,CAAC,MAAM,GAAG,gBAAM,CAAC;AACpB,GAAG,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
package/resources/org/org.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import * as APIKeyAPI from "./api-key.mjs";
|
|
4
|
-
import { APIKey } from "./api-key.mjs";
|
|
5
|
-
import * as ProjectAPI from "./project/project.mjs";
|
|
6
|
-
import { Project, } from "./project/project.mjs";
|
|
7
|
-
export class Org extends APIResource {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.apiKey = new APIKeyAPI.APIKey(this._client);
|
|
11
|
-
this.project = new ProjectAPI.Project(this._client);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
Org.APIKey = APIKey;
|
|
15
|
-
Org.Project = Project;
|
|
16
|
-
//# sourceMappingURL=org.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.mjs","sourceRoot":"","sources":["../../src/resources/org/org.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAoD;OAC5D,KAAK,UAAU;OACf,EACL,OAAO,GAOR;AAED,MAAM,OAAO,GAAI,SAAQ,WAAW;IAApC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAED,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC;AACpB,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
-
export declare class APIKeys extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Creates a new API key for the specified project. API keys are used for
|
|
7
|
-
* authenticating requests to the API. This endpoint generates a new key with the
|
|
8
|
-
* provided name and returns the complete key details including the actual key
|
|
9
|
-
* value. Note that the full API key value is only returned once at creation time
|
|
10
|
-
* and cannot be retrieved later, so it should be securely stored immediately.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const apiKey = await client.org.project.apiKeys.create(
|
|
15
|
-
* 'proj_abc123xyz456',
|
|
16
|
-
* { name: 'Production API Key' },
|
|
17
|
-
* );
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
create(projectID: string, body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKeyCreateResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Retrieves all API keys associated with the specified project. This endpoint
|
|
23
|
-
* returns details about each API key including its name, creation date, and last
|
|
24
|
-
* used information. Use this endpoint to audit which keys exist for a project or
|
|
25
|
-
* to manage key rotation policies.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* const apiKeys = await client.org.project.apiKeys.list(
|
|
30
|
-
* 'proj_abc123xyz456',
|
|
31
|
-
* );
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
list(projectID: string, options?: RequestOptions): APIPromise<APIKeyListResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* Permanently deletes an API key from the specified project. Once deleted, the API
|
|
37
|
-
* key can no longer be used for authentication and any services using it will need
|
|
38
|
-
* to be updated with a new key. This operation cannot be undone, so it should be
|
|
39
|
-
* used with caution.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* const apiKey = await client.org.project.apiKeys.delete(
|
|
44
|
-
* '01H4DKRF5SMP7NQCA3BWT0JYB6',
|
|
45
|
-
* { projectId: 'proj_abc123xyz456' },
|
|
46
|
-
* );
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
delete(id: string, params: APIKeyDeleteParams, options?: RequestOptions): APIPromise<APIKeyDeleteResponse>;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* API key object containing the key details
|
|
53
|
-
*/
|
|
54
|
-
export interface APIKeyCreateResponse {
|
|
55
|
-
/**
|
|
56
|
-
* Database record identifier for the API key
|
|
57
|
-
*/
|
|
58
|
-
id: string;
|
|
59
|
-
/**
|
|
60
|
-
* UTC timestamp indicating when the API key was created
|
|
61
|
-
*/
|
|
62
|
-
created_at: string;
|
|
63
|
-
/**
|
|
64
|
-
* The API key string value that should be included in API requests. This value is
|
|
65
|
-
* only shown once at creation time.
|
|
66
|
-
*/
|
|
67
|
-
key: string;
|
|
68
|
-
/**
|
|
69
|
-
* Descriptive name assigned to help identify the key's purpose
|
|
70
|
-
*/
|
|
71
|
-
name: string;
|
|
72
|
-
/**
|
|
73
|
-
* UTC timestamp indicating when the API key was last used for authentication. Will
|
|
74
|
-
* be null for newly created keys.
|
|
75
|
-
*/
|
|
76
|
-
last_used_at?: string;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Response containing the list of API keys for a project
|
|
80
|
-
*/
|
|
81
|
-
export interface APIKeyListResponse {
|
|
82
|
-
/**
|
|
83
|
-
* List of all API keys for the specified project, including their properties and
|
|
84
|
-
* usage information
|
|
85
|
-
*/
|
|
86
|
-
items: Array<APIKeyListResponse.Item>;
|
|
87
|
-
}
|
|
88
|
-
export declare namespace APIKeyListResponse {
|
|
89
|
-
interface Item {
|
|
90
|
-
/**
|
|
91
|
-
* Unique identifier for the API key record
|
|
92
|
-
*/
|
|
93
|
-
id: string;
|
|
94
|
-
/**
|
|
95
|
-
* UTC timestamp indicating when the API key was created
|
|
96
|
-
*/
|
|
97
|
-
created_at: string;
|
|
98
|
-
/**
|
|
99
|
-
* The API key string that should be included in API requests for authentication
|
|
100
|
-
*/
|
|
101
|
-
key: string;
|
|
102
|
-
/**
|
|
103
|
-
* Descriptive name assigned to the API key for identification purposes
|
|
104
|
-
*/
|
|
105
|
-
name: string;
|
|
106
|
-
/**
|
|
107
|
-
* UTC timestamp indicating when the API key was last used for authentication. Will
|
|
108
|
-
* be null if the key has never been used.
|
|
109
|
-
*/
|
|
110
|
-
last_used?: string;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Response indicating the status of the API key deletion operation
|
|
115
|
-
*/
|
|
116
|
-
export interface APIKeyDeleteResponse {
|
|
117
|
-
/**
|
|
118
|
-
* Status message providing details about the deletion operation
|
|
119
|
-
*/
|
|
120
|
-
message: string;
|
|
121
|
-
/**
|
|
122
|
-
* Boolean flag indicating if the deletion operation was successful
|
|
123
|
-
*/
|
|
124
|
-
success: boolean;
|
|
125
|
-
}
|
|
126
|
-
export interface APIKeyCreateParams {
|
|
127
|
-
/**
|
|
128
|
-
* A user-friendly name to identify the API key's purpose (e.g., "Production
|
|
129
|
-
* Server", "Test Environment")
|
|
130
|
-
*/
|
|
131
|
-
name: string;
|
|
132
|
-
}
|
|
133
|
-
export interface APIKeyDeleteParams {
|
|
134
|
-
/**
|
|
135
|
-
* The project Nano ID that owns the API key to be deleted
|
|
136
|
-
*/
|
|
137
|
-
projectId: string;
|
|
138
|
-
}
|
|
139
|
-
export declare namespace APIKeys {
|
|
140
|
-
export { type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyDeleteParams as APIKeyDeleteParams, };
|
|
141
|
-
}
|
|
142
|
-
//# sourceMappingURL=api-keys.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.d.mts","sourceRoot":"","sources":["../../../src/resources/org/project/api-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIjF;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAI3G;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
-
export declare class APIKeys extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Creates a new API key for the specified project. API keys are used for
|
|
7
|
-
* authenticating requests to the API. This endpoint generates a new key with the
|
|
8
|
-
* provided name and returns the complete key details including the actual key
|
|
9
|
-
* value. Note that the full API key value is only returned once at creation time
|
|
10
|
-
* and cannot be retrieved later, so it should be securely stored immediately.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const apiKey = await client.org.project.apiKeys.create(
|
|
15
|
-
* 'proj_abc123xyz456',
|
|
16
|
-
* { name: 'Production API Key' },
|
|
17
|
-
* );
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
create(projectID: string, body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKeyCreateResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Retrieves all API keys associated with the specified project. This endpoint
|
|
23
|
-
* returns details about each API key including its name, creation date, and last
|
|
24
|
-
* used information. Use this endpoint to audit which keys exist for a project or
|
|
25
|
-
* to manage key rotation policies.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* const apiKeys = await client.org.project.apiKeys.list(
|
|
30
|
-
* 'proj_abc123xyz456',
|
|
31
|
-
* );
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
list(projectID: string, options?: RequestOptions): APIPromise<APIKeyListResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* Permanently deletes an API key from the specified project. Once deleted, the API
|
|
37
|
-
* key can no longer be used for authentication and any services using it will need
|
|
38
|
-
* to be updated with a new key. This operation cannot be undone, so it should be
|
|
39
|
-
* used with caution.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* const apiKey = await client.org.project.apiKeys.delete(
|
|
44
|
-
* '01H4DKRF5SMP7NQCA3BWT0JYB6',
|
|
45
|
-
* { projectId: 'proj_abc123xyz456' },
|
|
46
|
-
* );
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
delete(id: string, params: APIKeyDeleteParams, options?: RequestOptions): APIPromise<APIKeyDeleteResponse>;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* API key object containing the key details
|
|
53
|
-
*/
|
|
54
|
-
export interface APIKeyCreateResponse {
|
|
55
|
-
/**
|
|
56
|
-
* Database record identifier for the API key
|
|
57
|
-
*/
|
|
58
|
-
id: string;
|
|
59
|
-
/**
|
|
60
|
-
* UTC timestamp indicating when the API key was created
|
|
61
|
-
*/
|
|
62
|
-
created_at: string;
|
|
63
|
-
/**
|
|
64
|
-
* The API key string value that should be included in API requests. This value is
|
|
65
|
-
* only shown once at creation time.
|
|
66
|
-
*/
|
|
67
|
-
key: string;
|
|
68
|
-
/**
|
|
69
|
-
* Descriptive name assigned to help identify the key's purpose
|
|
70
|
-
*/
|
|
71
|
-
name: string;
|
|
72
|
-
/**
|
|
73
|
-
* UTC timestamp indicating when the API key was last used for authentication. Will
|
|
74
|
-
* be null for newly created keys.
|
|
75
|
-
*/
|
|
76
|
-
last_used_at?: string;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Response containing the list of API keys for a project
|
|
80
|
-
*/
|
|
81
|
-
export interface APIKeyListResponse {
|
|
82
|
-
/**
|
|
83
|
-
* List of all API keys for the specified project, including their properties and
|
|
84
|
-
* usage information
|
|
85
|
-
*/
|
|
86
|
-
items: Array<APIKeyListResponse.Item>;
|
|
87
|
-
}
|
|
88
|
-
export declare namespace APIKeyListResponse {
|
|
89
|
-
interface Item {
|
|
90
|
-
/**
|
|
91
|
-
* Unique identifier for the API key record
|
|
92
|
-
*/
|
|
93
|
-
id: string;
|
|
94
|
-
/**
|
|
95
|
-
* UTC timestamp indicating when the API key was created
|
|
96
|
-
*/
|
|
97
|
-
created_at: string;
|
|
98
|
-
/**
|
|
99
|
-
* The API key string that should be included in API requests for authentication
|
|
100
|
-
*/
|
|
101
|
-
key: string;
|
|
102
|
-
/**
|
|
103
|
-
* Descriptive name assigned to the API key for identification purposes
|
|
104
|
-
*/
|
|
105
|
-
name: string;
|
|
106
|
-
/**
|
|
107
|
-
* UTC timestamp indicating when the API key was last used for authentication. Will
|
|
108
|
-
* be null if the key has never been used.
|
|
109
|
-
*/
|
|
110
|
-
last_used?: string;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Response indicating the status of the API key deletion operation
|
|
115
|
-
*/
|
|
116
|
-
export interface APIKeyDeleteResponse {
|
|
117
|
-
/**
|
|
118
|
-
* Status message providing details about the deletion operation
|
|
119
|
-
*/
|
|
120
|
-
message: string;
|
|
121
|
-
/**
|
|
122
|
-
* Boolean flag indicating if the deletion operation was successful
|
|
123
|
-
*/
|
|
124
|
-
success: boolean;
|
|
125
|
-
}
|
|
126
|
-
export interface APIKeyCreateParams {
|
|
127
|
-
/**
|
|
128
|
-
* A user-friendly name to identify the API key's purpose (e.g., "Production
|
|
129
|
-
* Server", "Test Environment")
|
|
130
|
-
*/
|
|
131
|
-
name: string;
|
|
132
|
-
}
|
|
133
|
-
export interface APIKeyDeleteParams {
|
|
134
|
-
/**
|
|
135
|
-
* The project Nano ID that owns the API key to be deleted
|
|
136
|
-
*/
|
|
137
|
-
projectId: string;
|
|
138
|
-
}
|
|
139
|
-
export declare namespace APIKeys {
|
|
140
|
-
export { type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyDeleteParams as APIKeyDeleteParams, };
|
|
141
|
-
}
|
|
142
|
-
//# sourceMappingURL=api-keys.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../../../src/resources/org/project/api-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIjF;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAI3G;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|