@composio/client 0.1.0-alpha.36 → 0.1.0-alpha.37
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 +29 -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/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 +3 -3
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +3 -3
- 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 +468 -4
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +468 -4
- package/resources/connected-accounts.d.ts.map +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 +1 -91
- package/resources/link.d.mts.map +1 -1
- package/resources/link.d.ts +1 -91
- 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 +77 -0
- package/resources/tool-router.d.mts.map +1 -0
- package/resources/tool-router.d.ts +77 -0
- package/resources/tool-router.d.ts.map +1 -0
- package/resources/tool-router.js +32 -0
- package/resources/tool-router.js.map +1 -0
- package/resources/tool-router.mjs +28 -0
- package/resources/tool-router.mjs.map +1 -0
- package/resources/toolkits.d.mts +16 -2
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +16 -2
- 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 +72 -2
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +72 -2
- 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 +0 -4
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +0 -4
- 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/src/client.ts +16 -46
- package/src/internal/utils/values.ts +3 -3
- package/src/resources/auth-configs.ts +6 -3
- package/src/resources/cli.ts +0 -89
- package/src/resources/connected-accounts.ts +967 -67
- package/src/resources/index.ts +6 -19
- package/src/resources/link.ts +1 -137
- package/src/resources/mcp/index.ts +0 -2
- package/src/resources/mcp/mcp.ts +0 -123
- package/src/resources/tool-router.ts +96 -0
- package/src/resources/toolkits.ts +24 -2
- package/src/resources/tools.ts +132 -2
- package/src/resources/trigger-instances/index.ts +0 -7
- package/src/resources/trigger-instances/trigger-instances.ts +0 -18
- 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
|
@@ -1,70 +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 Webhook extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the webhook URL and secret for the current project. Webhooks come in
|
|
6
|
-
* two types: "trigger" webhooks are used for integration trigger events, while
|
|
7
|
-
* "event" webhooks receive system notifications about project events. The response
|
|
8
|
-
* includes both the URL and the secret key used to verify webhook signatures.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const webhook = await client.org.project.webhook.retrieve({
|
|
13
|
-
* type: 'trigger',
|
|
14
|
-
* });
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
retrieve(query, options) {
|
|
18
|
-
return this._client.get('/api/v3/org/project/webhook', { query, ...options });
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Updates the webhook URL for the current project based on the specified type
|
|
22
|
-
* (trigger or event). Webhook URLs are endpoints that receive notifications about
|
|
23
|
-
* events in your project. "Trigger" webhooks receive integration trigger events,
|
|
24
|
-
* while "event" webhooks receive system notifications. This endpoint allows you to
|
|
25
|
-
* set or change these notification destinations.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* const webhook = await client.org.project.webhook.update({
|
|
30
|
-
* type: 'trigger',
|
|
31
|
-
* webhook_url: 'https://example.com/api/webhooks/triggers',
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
update(body, options) {
|
|
36
|
-
return this._client.post('/api/v3/org/project/webhook/update', { body, ...options });
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Removes a webhook URL (trigger or event) from the project configuration. This
|
|
40
|
-
* operation sets the specified webhook URL to null in the database but preserves
|
|
41
|
-
* the webhook secret. After deletion, the project will no longer receive webhook
|
|
42
|
-
* notifications of the specified type until a new URL is configured.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* const webhook = await client.org.project.webhook.delete({
|
|
47
|
-
* type: 'trigger',
|
|
48
|
-
* });
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
delete(body, options) {
|
|
52
|
-
return this._client.delete('/api/v3/org/project/webhook', { body, ...options });
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Generates a new webhook secret for the project, invalidating the previous one.
|
|
56
|
-
* Webhook secrets are used to verify the authenticity of incoming webhook payloads
|
|
57
|
-
* through signature verification. This endpoint should be used when you need to
|
|
58
|
-
* rotate your webhook secret for security purposes. After refreshing, you must
|
|
59
|
-
* update your webhook verification logic to use the new secret.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```ts
|
|
63
|
-
* const response = await client.org.project.webhook.refresh();
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
refresh(options) {
|
|
67
|
-
return this._client.post('/api/v3/org/project/webhook/refresh', options);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=webhook.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.mjs","sourceRoot":"","sources":["../../../src/resources/org/project/webhook.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,KAA4B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.mts","sourceRoot":"","sources":["../../src/resources/org/project.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/resources/org/project.ts"],"names":[],"mappings":""}
|
package/resources/org/project.js
DELETED
|
@@ -1,6 +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
|
-
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./project/index.js"), exports);
|
|
6
|
-
//# sourceMappingURL=project.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/resources/org/project.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project.mjs","sourceRoot":"","sources":["../../src/resources/org/project.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/org.d.mts
DELETED
package/resources/org.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.d.mts","sourceRoot":"","sources":["../src/resources/org.ts"],"names":[],"mappings":""}
|
package/resources/org.d.ts
DELETED
package/resources/org.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.d.ts","sourceRoot":"","sources":["../src/resources/org.ts"],"names":[],"mappings":""}
|
package/resources/org.js
DELETED
|
@@ -1,6 +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
|
-
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./org/index.js"), exports);
|
|
6
|
-
//# sourceMappingURL=org.js.map
|
package/resources/org.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.js","sourceRoot":"","sources":["../src/resources/org.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAA4B"}
|
package/resources/org.mjs
DELETED
package/resources/org.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.mjs","sourceRoot":"","sources":["../src/resources/org.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,55 +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 TeamMembers extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Update the details of an existing team member
|
|
7
|
-
*/
|
|
8
|
-
update(id: string, body?: TeamMemberUpdateParams | null | undefined, options?: RequestOptions): APIPromise<TeamMemberUpdateResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Retrieve a list of all team members in the current organization
|
|
11
|
-
*/
|
|
12
|
-
list(options?: RequestOptions): APIPromise<TeamMemberListResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Send an invitation to a new team member to join the organization
|
|
15
|
-
*/
|
|
16
|
-
invite(options?: RequestOptions): APIPromise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Remove a team member from the organization and revoke their access
|
|
19
|
-
*/
|
|
20
|
-
remove(id: string, options?: RequestOptions): APIPromise<TeamMemberRemoveResponse>;
|
|
21
|
-
}
|
|
22
|
-
export interface TeamMemberUpdateResponse {
|
|
23
|
-
id: string;
|
|
24
|
-
created_at: string;
|
|
25
|
-
email: string;
|
|
26
|
-
name: string;
|
|
27
|
-
role: string;
|
|
28
|
-
updated_at: string;
|
|
29
|
-
}
|
|
30
|
-
export interface TeamMemberListResponse {
|
|
31
|
-
items: Array<TeamMemberListResponse.Item>;
|
|
32
|
-
}
|
|
33
|
-
export declare namespace TeamMemberListResponse {
|
|
34
|
-
interface Item {
|
|
35
|
-
id: string;
|
|
36
|
-
created_at: string;
|
|
37
|
-
email: string;
|
|
38
|
-
name: string;
|
|
39
|
-
role: string;
|
|
40
|
-
updated_at: string;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export interface TeamMemberRemoveResponse {
|
|
44
|
-
message: string;
|
|
45
|
-
success: boolean;
|
|
46
|
-
}
|
|
47
|
-
export interface TeamMemberUpdateParams {
|
|
48
|
-
email?: string;
|
|
49
|
-
name?: string;
|
|
50
|
-
role?: 'ADMIN' | 'DEVELOPER';
|
|
51
|
-
}
|
|
52
|
-
export declare namespace TeamMembers {
|
|
53
|
-
export { type TeamMemberUpdateResponse as TeamMemberUpdateResponse, type TeamMemberListResponse as TeamMemberListResponse, type TeamMemberRemoveResponse as TeamMemberRemoveResponse, type TeamMemberUpdateParams as TeamMemberUpdateParams, };
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=team-members.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"team-members.d.mts","sourceRoot":"","sources":["../src/resources/team-members.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlE;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOlD;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGnF;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IAEX,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,UAAU,EAAE,MAAM,CAAC;QAEnB,KAAK,EAAE,MAAM,CAAC;QAEd,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,MAAM,CAAC;QAEb,UAAU,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,55 +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 TeamMembers extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Update the details of an existing team member
|
|
7
|
-
*/
|
|
8
|
-
update(id: string, body?: TeamMemberUpdateParams | null | undefined, options?: RequestOptions): APIPromise<TeamMemberUpdateResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Retrieve a list of all team members in the current organization
|
|
11
|
-
*/
|
|
12
|
-
list(options?: RequestOptions): APIPromise<TeamMemberListResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Send an invitation to a new team member to join the organization
|
|
15
|
-
*/
|
|
16
|
-
invite(options?: RequestOptions): APIPromise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Remove a team member from the organization and revoke their access
|
|
19
|
-
*/
|
|
20
|
-
remove(id: string, options?: RequestOptions): APIPromise<TeamMemberRemoveResponse>;
|
|
21
|
-
}
|
|
22
|
-
export interface TeamMemberUpdateResponse {
|
|
23
|
-
id: string;
|
|
24
|
-
created_at: string;
|
|
25
|
-
email: string;
|
|
26
|
-
name: string;
|
|
27
|
-
role: string;
|
|
28
|
-
updated_at: string;
|
|
29
|
-
}
|
|
30
|
-
export interface TeamMemberListResponse {
|
|
31
|
-
items: Array<TeamMemberListResponse.Item>;
|
|
32
|
-
}
|
|
33
|
-
export declare namespace TeamMemberListResponse {
|
|
34
|
-
interface Item {
|
|
35
|
-
id: string;
|
|
36
|
-
created_at: string;
|
|
37
|
-
email: string;
|
|
38
|
-
name: string;
|
|
39
|
-
role: string;
|
|
40
|
-
updated_at: string;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export interface TeamMemberRemoveResponse {
|
|
44
|
-
message: string;
|
|
45
|
-
success: boolean;
|
|
46
|
-
}
|
|
47
|
-
export interface TeamMemberUpdateParams {
|
|
48
|
-
email?: string;
|
|
49
|
-
name?: string;
|
|
50
|
-
role?: 'ADMIN' | 'DEVELOPER';
|
|
51
|
-
}
|
|
52
|
-
export declare namespace TeamMembers {
|
|
53
|
-
export { type TeamMemberUpdateResponse as TeamMemberUpdateResponse, type TeamMemberListResponse as TeamMemberListResponse, type TeamMemberRemoveResponse as TeamMemberRemoveResponse, type TeamMemberUpdateParams as TeamMemberUpdateParams, };
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=team-members.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"team-members.d.ts","sourceRoot":"","sources":["../src/resources/team-members.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlE;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOlD;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGnF;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IAEX,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,UAAU,EAAE,MAAM,CAAC;QAEnB,KAAK,EAAE,MAAM,CAAC;QAEd,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,MAAM,CAAC;QAEb,UAAU,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,38 +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.TeamMembers = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const headers_1 = require("../internal/headers.js");
|
|
7
|
-
const path_1 = require("../internal/utils/path.js");
|
|
8
|
-
class TeamMembers extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Update the details of an existing team member
|
|
11
|
-
*/
|
|
12
|
-
update(id, body = {}, options) {
|
|
13
|
-
return this._client.put((0, path_1.path) `/api/v3/team-members/update/${id}`, { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Retrieve a list of all team members in the current organization
|
|
17
|
-
*/
|
|
18
|
-
list(options) {
|
|
19
|
-
return this._client.get('/api/v3/team-members/list', options);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Send an invitation to a new team member to join the organization
|
|
23
|
-
*/
|
|
24
|
-
invite(options) {
|
|
25
|
-
return this._client.post('/api/v3/team-members/invite', {
|
|
26
|
-
...options,
|
|
27
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Remove a team member from the organization and revoke their access
|
|
32
|
-
*/
|
|
33
|
-
remove(id, options) {
|
|
34
|
-
return this._client.delete((0, path_1.path) `/api/v3/team-members/remove/${id}`, options);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.TeamMembers = TeamMembers;
|
|
38
|
-
//# sourceMappingURL=team-members.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"team-members.js","sourceRoot":"","sources":["../src/resources/team-members.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,OAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,+BAA+B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAnCD,kCAmCC"}
|
|
@@ -1,34 +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 { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
-
import { path } from "../internal/utils/path.mjs";
|
|
5
|
-
export class TeamMembers extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Update the details of an existing team member
|
|
8
|
-
*/
|
|
9
|
-
update(id, body = {}, options) {
|
|
10
|
-
return this._client.put(path `/api/v3/team-members/update/${id}`, { body, ...options });
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Retrieve a list of all team members in the current organization
|
|
14
|
-
*/
|
|
15
|
-
list(options) {
|
|
16
|
-
return this._client.get('/api/v3/team-members/list', options);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Send an invitation to a new team member to join the organization
|
|
20
|
-
*/
|
|
21
|
-
invite(options) {
|
|
22
|
-
return this._client.post('/api/v3/team-members/invite', {
|
|
23
|
-
...options,
|
|
24
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Remove a team member from the organization and revoke their access
|
|
29
|
-
*/
|
|
30
|
-
remove(id, options) {
|
|
31
|
-
return this._client.delete(path `/api/v3/team-members/remove/${id}`, options);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=team-members.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"team-members.mjs","sourceRoot":"","sources":["../src/resources/team-members.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,OAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,+BAA+B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
|
@@ -1,25 +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 Handle extends APIResource {
|
|
5
|
-
retrieve(projectID: (string & {}) | 'default', params: HandleRetrieveParams, options?: RequestOptions): APIPromise<string>;
|
|
6
|
-
execute(projectID: (string & {}) | 'default', params: HandleExecuteParams, options?: RequestOptions): APIPromise<string>;
|
|
7
|
-
}
|
|
8
|
-
export type HandleRetrieveResponse = string;
|
|
9
|
-
export type HandleExecuteResponse = string;
|
|
10
|
-
export interface HandleRetrieveParams {
|
|
11
|
-
/**
|
|
12
|
-
* The slug of the trigger instance
|
|
13
|
-
*/
|
|
14
|
-
slug: string;
|
|
15
|
-
}
|
|
16
|
-
export interface HandleExecuteParams {
|
|
17
|
-
/**
|
|
18
|
-
* The slug of the trigger instance
|
|
19
|
-
*/
|
|
20
|
-
slug: string;
|
|
21
|
-
}
|
|
22
|
-
export declare namespace Handle {
|
|
23
|
-
export { type HandleRetrieveResponse as HandleRetrieveResponse, type HandleExecuteResponse as HandleExecuteResponse, type HandleRetrieveParams as HandleRetrieveParams, type HandleExecuteParams as HandleExecuteParams, };
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=handle.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handle.d.mts","sourceRoot":"","sources":["../../src/resources/trigger-instances/handle.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,QAAQ,CACN,SAAS,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,SAAS,EACpC,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAKrB,OAAO,CACL,SAAS,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,SAAS,EACpC,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;CAItB;AAED,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,25 +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 Handle extends APIResource {
|
|
5
|
-
retrieve(projectID: (string & {}) | 'default', params: HandleRetrieveParams, options?: RequestOptions): APIPromise<string>;
|
|
6
|
-
execute(projectID: (string & {}) | 'default', params: HandleExecuteParams, options?: RequestOptions): APIPromise<string>;
|
|
7
|
-
}
|
|
8
|
-
export type HandleRetrieveResponse = string;
|
|
9
|
-
export type HandleExecuteResponse = string;
|
|
10
|
-
export interface HandleRetrieveParams {
|
|
11
|
-
/**
|
|
12
|
-
* The slug of the trigger instance
|
|
13
|
-
*/
|
|
14
|
-
slug: string;
|
|
15
|
-
}
|
|
16
|
-
export interface HandleExecuteParams {
|
|
17
|
-
/**
|
|
18
|
-
* The slug of the trigger instance
|
|
19
|
-
*/
|
|
20
|
-
slug: string;
|
|
21
|
-
}
|
|
22
|
-
export declare namespace Handle {
|
|
23
|
-
export { type HandleRetrieveResponse as HandleRetrieveResponse, type HandleExecuteResponse as HandleExecuteResponse, type HandleRetrieveParams as HandleRetrieveParams, type HandleExecuteParams as HandleExecuteParams, };
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=handle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handle.d.ts","sourceRoot":"","sources":["../../src/resources/trigger-instances/handle.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,QAAQ,CACN,SAAS,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,SAAS,EACpC,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAKrB,OAAO,CACL,SAAS,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,SAAS,EACpC,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;CAItB;AAED,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,18 +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.Handle = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
-
class Handle extends resource_1.APIResource {
|
|
8
|
-
retrieve(projectID, params, options) {
|
|
9
|
-
const { slug } = params;
|
|
10
|
-
return this._client.get((0, path_1.path) `/api/v3/trigger_instances/${slug}/${projectID}/handle`, options);
|
|
11
|
-
}
|
|
12
|
-
execute(projectID, params, options) {
|
|
13
|
-
const { slug } = params;
|
|
14
|
-
return this._client.post((0, path_1.path) `/api/v3/trigger_instances/${slug}/${projectID}/handle`, options);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.Handle = Handle;
|
|
18
|
-
//# sourceMappingURL=handle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handle.js","sourceRoot":"","sources":["../../src/resources/trigger-instances/handle.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC,QAAQ,CACN,SAAoC,EACpC,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QACxB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,6BAA6B,IAAI,IAAI,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED,OAAO,CACL,SAAoC,EACpC,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QACxB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,6BAA6B,IAAI,IAAI,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IACjG,CAAC;CACF;AAlBD,wBAkBC"}
|
|
@@ -1,14 +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 { path } from "../../internal/utils/path.mjs";
|
|
4
|
-
export class Handle extends APIResource {
|
|
5
|
-
retrieve(projectID, params, options) {
|
|
6
|
-
const { slug } = params;
|
|
7
|
-
return this._client.get(path `/api/v3/trigger_instances/${slug}/${projectID}/handle`, options);
|
|
8
|
-
}
|
|
9
|
-
execute(projectID, params, options) {
|
|
10
|
-
const { slug } = params;
|
|
11
|
-
return this._client.post(path `/api/v3/trigger_instances/${slug}/${projectID}/handle`, options);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=handle.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handle.mjs","sourceRoot":"","sources":["../../src/resources/trigger-instances/handle.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC,QAAQ,CACN,SAAoC,EACpC,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QACxB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,6BAA6B,IAAI,IAAI,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED,OAAO,CACL,SAAoC,EACpC,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QACxB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,6BAA6B,IAAI,IAAI,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IACjG,CAAC;CACF"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class APIKey extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieve the API key for the current organization. This endpoint is restricted
|
|
10
|
-
* to organization administrators only. The returned API key can be used for
|
|
11
|
-
* authenticating organization-level API requests.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const apiKey = await client.org.apiKey.retrieve();
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
retrieve(options?: RequestOptions): APIPromise<APIKeyRetrieveResponse> {
|
|
19
|
-
return this._client.get('/api/v3/org/api_key', options);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Generate a new API key for the organization, invalidating the previous one
|
|
24
|
-
* (admin only).
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const response = await client.org.apiKey.regenerate();
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
regenerate(options?: RequestOptions): APIPromise<APIKeyRegenerateResponse> {
|
|
32
|
-
return this._client.post('/api/v3/org/api_key/regenerate', options);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface APIKeyRetrieveResponse {
|
|
37
|
-
/**
|
|
38
|
-
* The API key for the organization that can be used for authentication. Format:
|
|
39
|
-
* org_xxx
|
|
40
|
-
*/
|
|
41
|
-
org_api_key: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface APIKeyRegenerateResponse {
|
|
45
|
-
/**
|
|
46
|
-
* The newly generated API key for the organization that can be used for
|
|
47
|
-
* authentication. Format: org_xxx
|
|
48
|
-
*/
|
|
49
|
-
org_api_key: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export declare namespace APIKey {
|
|
53
|
-
export {
|
|
54
|
-
type APIKeyRetrieveResponse as APIKeyRetrieveResponse,
|
|
55
|
-
type APIKeyRegenerateResponse as APIKeyRegenerateResponse,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
export { APIKey, type APIKeyRetrieveResponse, type APIKeyRegenerateResponse } from './api-key';
|
|
4
|
-
export { Org } from './org';
|
|
5
|
-
export {
|
|
6
|
-
Project,
|
|
7
|
-
type ProjectCreateResponse,
|
|
8
|
-
type ProjectRetrieveResponse,
|
|
9
|
-
type ProjectListResponse,
|
|
10
|
-
type ProjectDeleteResponse,
|
|
11
|
-
type ProjectCreateParams,
|
|
12
|
-
type ProjectListParams,
|
|
13
|
-
} from './project/index';
|
package/src/resources/org/org.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as APIKeyAPI from './api-key';
|
|
5
|
-
import { APIKey, APIKeyRegenerateResponse, APIKeyRetrieveResponse } from './api-key';
|
|
6
|
-
import * as ProjectAPI from './project/project';
|
|
7
|
-
import {
|
|
8
|
-
Project,
|
|
9
|
-
ProjectCreateParams,
|
|
10
|
-
ProjectCreateResponse,
|
|
11
|
-
ProjectDeleteResponse,
|
|
12
|
-
ProjectListParams,
|
|
13
|
-
ProjectListResponse,
|
|
14
|
-
ProjectRetrieveResponse,
|
|
15
|
-
} from './project/project';
|
|
16
|
-
|
|
17
|
-
export class Org extends APIResource {
|
|
18
|
-
apiKey: APIKeyAPI.APIKey = new APIKeyAPI.APIKey(this._client);
|
|
19
|
-
project: ProjectAPI.Project = new ProjectAPI.Project(this._client);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
Org.APIKey = APIKey;
|
|
23
|
-
Org.Project = Project;
|
|
24
|
-
|
|
25
|
-
export declare namespace Org {
|
|
26
|
-
export {
|
|
27
|
-
APIKey as APIKey,
|
|
28
|
-
type APIKeyRetrieveResponse as APIKeyRetrieveResponse,
|
|
29
|
-
type APIKeyRegenerateResponse as APIKeyRegenerateResponse,
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
Project as Project,
|
|
34
|
-
type ProjectCreateResponse as ProjectCreateResponse,
|
|
35
|
-
type ProjectRetrieveResponse as ProjectRetrieveResponse,
|
|
36
|
-
type ProjectListResponse as ProjectListResponse,
|
|
37
|
-
type ProjectDeleteResponse as ProjectDeleteResponse,
|
|
38
|
-
type ProjectCreateParams as ProjectCreateParams,
|
|
39
|
-
type ProjectListParams as ProjectListParams,
|
|
40
|
-
};
|
|
41
|
-
}
|