@composio/client 0.1.0-alpha.35 → 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 +38 -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 +476 -12
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +476 -12
- 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 -86
- package/resources/link.d.mts.map +1 -1
- package/resources/link.d.ts +1 -86
- 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 +80 -4
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +80 -4
- 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 -131
- 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 +141 -6
- 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,166 +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 Webhook extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieves the webhook URL and secret for the current project. Webhooks come in
|
|
7
|
-
* two types: "trigger" webhooks are used for integration trigger events, while
|
|
8
|
-
* "event" webhooks receive system notifications about project events. The response
|
|
9
|
-
* includes both the URL and the secret key used to verify webhook signatures.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const webhook = await client.org.project.webhook.retrieve({
|
|
14
|
-
* type: 'trigger',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
retrieve(query: WebhookRetrieveParams, options?: RequestOptions): APIPromise<WebhookRetrieveResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Updates the webhook URL for the current project based on the specified type
|
|
21
|
-
* (trigger or event). Webhook URLs are endpoints that receive notifications about
|
|
22
|
-
* events in your project. "Trigger" webhooks receive integration trigger events,
|
|
23
|
-
* while "event" webhooks receive system notifications. This endpoint allows you to
|
|
24
|
-
* set or change these notification destinations.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const webhook = await client.org.project.webhook.update({
|
|
29
|
-
* type: 'trigger',
|
|
30
|
-
* webhook_url: 'https://example.com/api/webhooks/triggers',
|
|
31
|
-
* });
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
update(body: WebhookUpdateParams, options?: RequestOptions): APIPromise<WebhookUpdateResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* Removes a webhook URL (trigger or event) from the project configuration. This
|
|
37
|
-
* operation sets the specified webhook URL to null in the database but preserves
|
|
38
|
-
* the webhook secret. After deletion, the project will no longer receive webhook
|
|
39
|
-
* notifications of the specified type until a new URL is configured.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* const webhook = await client.org.project.webhook.delete({
|
|
44
|
-
* type: 'trigger',
|
|
45
|
-
* });
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
delete(body: WebhookDeleteParams, options?: RequestOptions): APIPromise<WebhookDeleteResponse>;
|
|
49
|
-
/**
|
|
50
|
-
* Generates a new webhook secret for the project, invalidating the previous one.
|
|
51
|
-
* Webhook secrets are used to verify the authenticity of incoming webhook payloads
|
|
52
|
-
* through signature verification. This endpoint should be used when you need to
|
|
53
|
-
* rotate your webhook secret for security purposes. After refreshing, you must
|
|
54
|
-
* update your webhook verification logic to use the new secret.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* const response = await client.org.project.webhook.refresh();
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
refresh(options?: RequestOptions): APIPromise<WebhookRefreshResponse>;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Response containing webhook URL configuration and secret
|
|
65
|
-
*/
|
|
66
|
-
export interface WebhookRetrieveResponse {
|
|
67
|
-
/**
|
|
68
|
-
* Indicates whether the webhook was found and retrieved successfully
|
|
69
|
-
*/
|
|
70
|
-
status: 'success' | 'not found';
|
|
71
|
-
/**
|
|
72
|
-
* The webhook configuration containing either trigger or event webhook URL
|
|
73
|
-
*/
|
|
74
|
-
url: WebhookRetrieveResponse.UnionMember0 | WebhookRetrieveResponse.UnionMember1;
|
|
75
|
-
/**
|
|
76
|
-
* The secret key that should be used to verify webhook signatures
|
|
77
|
-
*/
|
|
78
|
-
webhook_secret: string;
|
|
79
|
-
}
|
|
80
|
-
export declare namespace WebhookRetrieveResponse {
|
|
81
|
-
interface UnionMember0 {
|
|
82
|
-
/**
|
|
83
|
-
* Identifies this as a trigger webhook response
|
|
84
|
-
*/
|
|
85
|
-
type: 'trigger';
|
|
86
|
-
/**
|
|
87
|
-
* The URL endpoint where trigger notifications will be delivered
|
|
88
|
-
*/
|
|
89
|
-
webhook_url?: string;
|
|
90
|
-
}
|
|
91
|
-
interface UnionMember1 {
|
|
92
|
-
/**
|
|
93
|
-
* Identifies this as an event webhook response
|
|
94
|
-
*/
|
|
95
|
-
type: 'event';
|
|
96
|
-
/**
|
|
97
|
-
* The URL endpoint where event notifications will be delivered
|
|
98
|
-
*/
|
|
99
|
-
event_webhook_url?: string;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Response indicating the status of the webhook URL update operation
|
|
104
|
-
*/
|
|
105
|
-
export interface WebhookUpdateResponse {
|
|
106
|
-
/**
|
|
107
|
-
* Human-readable description of the update operation result
|
|
108
|
-
*/
|
|
109
|
-
message: string;
|
|
110
|
-
/**
|
|
111
|
-
* Indicates if the webhook URL update was completed successfully
|
|
112
|
-
*/
|
|
113
|
-
success: boolean;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Response indicating successful webhook URL deletion
|
|
117
|
-
*/
|
|
118
|
-
export interface WebhookDeleteResponse {
|
|
119
|
-
/**
|
|
120
|
-
* Indicates the webhook URL was successfully removed
|
|
121
|
-
*/
|
|
122
|
-
status: 'success';
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Response containing the newly generated webhook secret
|
|
126
|
-
*/
|
|
127
|
-
export interface WebhookRefreshResponse {
|
|
128
|
-
/**
|
|
129
|
-
* Human-readable description of the refresh operation result
|
|
130
|
-
*/
|
|
131
|
-
message: string;
|
|
132
|
-
/**
|
|
133
|
-
* Indicates if the webhook secret was successfully refreshed
|
|
134
|
-
*/
|
|
135
|
-
success: boolean;
|
|
136
|
-
/**
|
|
137
|
-
* The new secret key that should be used to verify incoming webhook payloads
|
|
138
|
-
*/
|
|
139
|
-
webhook_secret: string;
|
|
140
|
-
}
|
|
141
|
-
export interface WebhookRetrieveParams {
|
|
142
|
-
/**
|
|
143
|
-
* Type of webhook to retrieve (trigger or event)
|
|
144
|
-
*/
|
|
145
|
-
type: 'trigger' | 'event';
|
|
146
|
-
}
|
|
147
|
-
export interface WebhookUpdateParams {
|
|
148
|
-
/**
|
|
149
|
-
* Specifies which webhook type to update (trigger or event)
|
|
150
|
-
*/
|
|
151
|
-
type: 'trigger' | 'event';
|
|
152
|
-
/**
|
|
153
|
-
* Valid URL that will receive webhook payloads. Must include https:// protocol.
|
|
154
|
-
*/
|
|
155
|
-
webhook_url: string;
|
|
156
|
-
}
|
|
157
|
-
export interface WebhookDeleteParams {
|
|
158
|
-
/**
|
|
159
|
-
* Specifies which webhook type to remove from the project configuration
|
|
160
|
-
*/
|
|
161
|
-
type: 'trigger' | 'event';
|
|
162
|
-
}
|
|
163
|
-
export declare namespace Webhook {
|
|
164
|
-
export { type WebhookRetrieveResponse as WebhookRetrieveResponse, type WebhookUpdateResponse as WebhookUpdateResponse, type WebhookDeleteResponse as WebhookDeleteResponse, type WebhookRefreshResponse as WebhookRefreshResponse, type WebhookRetrieveParams as WebhookRetrieveParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookDeleteParams as WebhookDeleteParams, };
|
|
165
|
-
}
|
|
166
|
-
//# sourceMappingURL=webhook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../src/resources/org/project/webhook.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,KAAK,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIrG;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGtE;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,WAAW,CAAC;IAEhC;;OAEG;IACH,GAAG,EAAE,uBAAuB,CAAC,YAAY,GAAG,uBAAuB,CAAC,YAAY,CAAC;IAEjF;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,YAAY;QAC3B;;WAEG;QACH,IAAI,EAAE,SAAS,CAAC;QAEhB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,UAAiB,YAAY;QAC3B;;WAEG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B;CACF;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;IAE1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,74 +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.Webhook = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
class Webhook extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves the webhook URL and secret for the current project. Webhooks come in
|
|
9
|
-
* two types: "trigger" webhooks are used for integration trigger events, while
|
|
10
|
-
* "event" webhooks receive system notifications about project events. The response
|
|
11
|
-
* includes both the URL and the secret key used to verify webhook signatures.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const webhook = await client.org.project.webhook.retrieve({
|
|
16
|
-
* type: 'trigger',
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
retrieve(query, options) {
|
|
21
|
-
return this._client.get('/api/v3/org/project/webhook', { query, ...options });
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Updates the webhook URL for the current project based on the specified type
|
|
25
|
-
* (trigger or event). Webhook URLs are endpoints that receive notifications about
|
|
26
|
-
* events in your project. "Trigger" webhooks receive integration trigger events,
|
|
27
|
-
* while "event" webhooks receive system notifications. This endpoint allows you to
|
|
28
|
-
* set or change these notification destinations.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const webhook = await client.org.project.webhook.update({
|
|
33
|
-
* type: 'trigger',
|
|
34
|
-
* webhook_url: 'https://example.com/api/webhooks/triggers',
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
update(body, options) {
|
|
39
|
-
return this._client.post('/api/v3/org/project/webhook/update', { body, ...options });
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Removes a webhook URL (trigger or event) from the project configuration. This
|
|
43
|
-
* operation sets the specified webhook URL to null in the database but preserves
|
|
44
|
-
* the webhook secret. After deletion, the project will no longer receive webhook
|
|
45
|
-
* notifications of the specified type until a new URL is configured.
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* const webhook = await client.org.project.webhook.delete({
|
|
50
|
-
* type: 'trigger',
|
|
51
|
-
* });
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
delete(body, options) {
|
|
55
|
-
return this._client.delete('/api/v3/org/project/webhook', { body, ...options });
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Generates a new webhook secret for the project, invalidating the previous one.
|
|
59
|
-
* Webhook secrets are used to verify the authenticity of incoming webhook payloads
|
|
60
|
-
* through signature verification. This endpoint should be used when you need to
|
|
61
|
-
* rotate your webhook secret for security purposes. After refreshing, you must
|
|
62
|
-
* update your webhook verification logic to use the new secret.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```ts
|
|
66
|
-
* const response = await client.org.project.webhook.refresh();
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
refresh(options) {
|
|
70
|
-
return this._client.post('/api/v3/org/project/webhook/refresh', options);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.Webhook = Webhook;
|
|
74
|
-
//# sourceMappingURL=webhook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../../src/resources/org/project/webhook.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,OAAQ,SAAQ,sBAAW;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;AArED,0BAqEC"}
|
|
@@ -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"}
|