@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.
Files changed (223) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/client.d.mts +11 -14
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -14
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -6
  7. package/client.js.map +1 -1
  8. package/client.mjs +5 -8
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/values.js +3 -3
  11. package/internal/utils/values.js.map +1 -1
  12. package/internal/utils/values.mjs +3 -3
  13. package/internal/utils/values.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/auth-configs.d.mts +3 -3
  16. package/resources/auth-configs.d.mts.map +1 -1
  17. package/resources/auth-configs.d.ts +3 -3
  18. package/resources/auth-configs.d.ts.map +1 -1
  19. package/resources/cli.d.mts +1 -76
  20. package/resources/cli.d.mts.map +1 -1
  21. package/resources/cli.d.ts +1 -76
  22. package/resources/cli.d.ts.map +1 -1
  23. package/resources/cli.js +0 -28
  24. package/resources/cli.js.map +1 -1
  25. package/resources/cli.mjs +0 -28
  26. package/resources/cli.mjs.map +1 -1
  27. package/resources/connected-accounts.d.mts +476 -12
  28. package/resources/connected-accounts.d.mts.map +1 -1
  29. package/resources/connected-accounts.d.ts +476 -12
  30. package/resources/connected-accounts.d.ts.map +1 -1
  31. package/resources/index.d.mts +5 -6
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +5 -6
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +3 -5
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +2 -3
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/link.d.mts +1 -86
  40. package/resources/link.d.mts.map +1 -1
  41. package/resources/link.d.ts +1 -86
  42. package/resources/link.d.ts.map +1 -1
  43. package/resources/link.js +0 -13
  44. package/resources/link.js.map +1 -1
  45. package/resources/link.mjs +0 -13
  46. package/resources/link.mjs.map +1 -1
  47. package/resources/mcp/index.d.mts +1 -1
  48. package/resources/mcp/index.d.mts.map +1 -1
  49. package/resources/mcp/index.d.ts +1 -1
  50. package/resources/mcp/index.d.ts.map +1 -1
  51. package/resources/mcp/index.js.map +1 -1
  52. package/resources/mcp/index.mjs.map +1 -1
  53. package/resources/mcp/mcp.d.mts +1 -95
  54. package/resources/mcp/mcp.d.mts.map +1 -1
  55. package/resources/mcp/mcp.d.ts +1 -95
  56. package/resources/mcp/mcp.d.ts.map +1 -1
  57. package/resources/mcp/mcp.js +0 -22
  58. package/resources/mcp/mcp.js.map +1 -1
  59. package/resources/mcp/mcp.mjs +0 -22
  60. package/resources/mcp/mcp.mjs.map +1 -1
  61. package/resources/tool-router.d.mts +77 -0
  62. package/resources/tool-router.d.mts.map +1 -0
  63. package/resources/tool-router.d.ts +77 -0
  64. package/resources/tool-router.d.ts.map +1 -0
  65. package/resources/tool-router.js +32 -0
  66. package/resources/tool-router.js.map +1 -0
  67. package/resources/tool-router.mjs +28 -0
  68. package/resources/tool-router.mjs.map +1 -0
  69. package/resources/toolkits.d.mts +16 -2
  70. package/resources/toolkits.d.mts.map +1 -1
  71. package/resources/toolkits.d.ts +16 -2
  72. package/resources/toolkits.d.ts.map +1 -1
  73. package/resources/toolkits.js +2 -2
  74. package/resources/toolkits.js.map +1 -1
  75. package/resources/toolkits.mjs +2 -2
  76. package/resources/toolkits.mjs.map +1 -1
  77. package/resources/tools.d.mts +80 -4
  78. package/resources/tools.d.mts.map +1 -1
  79. package/resources/tools.d.ts +80 -4
  80. package/resources/tools.d.ts.map +1 -1
  81. package/resources/trigger-instances/index.d.mts +0 -1
  82. package/resources/trigger-instances/index.d.mts.map +1 -1
  83. package/resources/trigger-instances/index.d.ts +0 -1
  84. package/resources/trigger-instances/index.d.ts.map +1 -1
  85. package/resources/trigger-instances/index.js +1 -3
  86. package/resources/trigger-instances/index.js.map +1 -1
  87. package/resources/trigger-instances/index.mjs +0 -1
  88. package/resources/trigger-instances/index.mjs.map +1 -1
  89. package/resources/trigger-instances/trigger-instances.d.mts +0 -4
  90. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  91. package/resources/trigger-instances/trigger-instances.d.ts +0 -4
  92. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  93. package/resources/trigger-instances/trigger-instances.js +0 -4
  94. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  95. package/resources/trigger-instances/trigger-instances.mjs +0 -4
  96. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  97. package/src/client.ts +16 -46
  98. package/src/internal/utils/values.ts +3 -3
  99. package/src/resources/auth-configs.ts +6 -3
  100. package/src/resources/cli.ts +0 -89
  101. package/src/resources/connected-accounts.ts +967 -67
  102. package/src/resources/index.ts +6 -19
  103. package/src/resources/link.ts +1 -131
  104. package/src/resources/mcp/index.ts +0 -2
  105. package/src/resources/mcp/mcp.ts +0 -123
  106. package/src/resources/tool-router.ts +96 -0
  107. package/src/resources/toolkits.ts +24 -2
  108. package/src/resources/tools.ts +141 -6
  109. package/src/resources/trigger-instances/index.ts +0 -7
  110. package/src/resources/trigger-instances/trigger-instances.ts +0 -18
  111. package/src/version.ts +1 -1
  112. package/version.d.mts +1 -1
  113. package/version.d.ts +1 -1
  114. package/version.js +1 -1
  115. package/version.mjs +1 -1
  116. package/resources/org/api-key.d.mts +0 -44
  117. package/resources/org/api-key.d.mts.map +0 -1
  118. package/resources/org/api-key.d.ts +0 -44
  119. package/resources/org/api-key.d.ts.map +0 -1
  120. package/resources/org/api-key.js +0 -34
  121. package/resources/org/api-key.js.map +0 -1
  122. package/resources/org/api-key.mjs +0 -30
  123. package/resources/org/api-key.mjs.map +0 -1
  124. package/resources/org/index.d.mts +0 -4
  125. package/resources/org/index.d.mts.map +0 -1
  126. package/resources/org/index.d.ts +0 -4
  127. package/resources/org/index.d.ts.map +0 -1
  128. package/resources/org/index.js +0 -11
  129. package/resources/org/index.js.map +0 -1
  130. package/resources/org/index.mjs +0 -5
  131. package/resources/org/index.mjs.map +0 -1
  132. package/resources/org/org.d.mts +0 -14
  133. package/resources/org/org.d.mts.map +0 -1
  134. package/resources/org/org.d.ts +0 -14
  135. package/resources/org/org.d.ts.map +0 -1
  136. package/resources/org/org.js +0 -21
  137. package/resources/org/org.js.map +0 -1
  138. package/resources/org/org.mjs +0 -16
  139. package/resources/org/org.mjs.map +0 -1
  140. package/resources/org/project/api-keys.d.mts +0 -142
  141. package/resources/org/project/api-keys.d.mts.map +0 -1
  142. package/resources/org/project/api-keys.d.ts +0 -142
  143. package/resources/org/project/api-keys.d.ts.map +0 -1
  144. package/resources/org/project/api-keys.js +0 -62
  145. package/resources/org/project/api-keys.js.map +0 -1
  146. package/resources/org/project/api-keys.mjs +0 -58
  147. package/resources/org/project/api-keys.mjs.map +0 -1
  148. package/resources/org/project/index.d.mts +0 -5
  149. package/resources/org/project/index.d.mts.map +0 -1
  150. package/resources/org/project/index.d.ts +0 -5
  151. package/resources/org/project/index.d.ts.map +0 -1
  152. package/resources/org/project/index.js +0 -13
  153. package/resources/org/project/index.js.map +0 -1
  154. package/resources/org/project/index.mjs +0 -6
  155. package/resources/org/project/index.mjs.map +0 -1
  156. package/resources/org/project/project.d.mts +0 -268
  157. package/resources/org/project/project.d.mts.map +0 -1
  158. package/resources/org/project/project.d.ts +0 -268
  159. package/resources/org/project/project.d.ts.map +0 -1
  160. package/resources/org/project/project.js +0 -90
  161. package/resources/org/project/project.js.map +0 -1
  162. package/resources/org/project/project.mjs +0 -85
  163. package/resources/org/project/project.mjs.map +0 -1
  164. package/resources/org/project/trigger.d.mts +0 -145
  165. package/resources/org/project/trigger.d.mts.map +0 -1
  166. package/resources/org/project/trigger.d.ts +0 -145
  167. package/resources/org/project/trigger.d.ts.map +0 -1
  168. package/resources/org/project/trigger.js +0 -35
  169. package/resources/org/project/trigger.js.map +0 -1
  170. package/resources/org/project/trigger.mjs +0 -31
  171. package/resources/org/project/trigger.mjs.map +0 -1
  172. package/resources/org/project/webhook.d.mts +0 -166
  173. package/resources/org/project/webhook.d.mts.map +0 -1
  174. package/resources/org/project/webhook.d.ts +0 -166
  175. package/resources/org/project/webhook.d.ts.map +0 -1
  176. package/resources/org/project/webhook.js +0 -74
  177. package/resources/org/project/webhook.js.map +0 -1
  178. package/resources/org/project/webhook.mjs +0 -70
  179. package/resources/org/project/webhook.mjs.map +0 -1
  180. package/resources/org/project.d.mts +0 -2
  181. package/resources/org/project.d.mts.map +0 -1
  182. package/resources/org/project.d.ts +0 -2
  183. package/resources/org/project.d.ts.map +0 -1
  184. package/resources/org/project.js +0 -6
  185. package/resources/org/project.js.map +0 -1
  186. package/resources/org/project.mjs +0 -3
  187. package/resources/org/project.mjs.map +0 -1
  188. package/resources/org.d.mts +0 -2
  189. package/resources/org.d.mts.map +0 -1
  190. package/resources/org.d.ts +0 -2
  191. package/resources/org.d.ts.map +0 -1
  192. package/resources/org.js +0 -6
  193. package/resources/org.js.map +0 -1
  194. package/resources/org.mjs +0 -3
  195. package/resources/org.mjs.map +0 -1
  196. package/resources/team-members.d.mts +0 -55
  197. package/resources/team-members.d.mts.map +0 -1
  198. package/resources/team-members.d.ts +0 -55
  199. package/resources/team-members.d.ts.map +0 -1
  200. package/resources/team-members.js +0 -38
  201. package/resources/team-members.js.map +0 -1
  202. package/resources/team-members.mjs +0 -34
  203. package/resources/team-members.mjs.map +0 -1
  204. package/resources/trigger-instances/handle.d.mts +0 -25
  205. package/resources/trigger-instances/handle.d.mts.map +0 -1
  206. package/resources/trigger-instances/handle.d.ts +0 -25
  207. package/resources/trigger-instances/handle.d.ts.map +0 -1
  208. package/resources/trigger-instances/handle.js +0 -18
  209. package/resources/trigger-instances/handle.js.map +0 -1
  210. package/resources/trigger-instances/handle.mjs +0 -14
  211. package/resources/trigger-instances/handle.mjs.map +0 -1
  212. package/src/resources/org/api-key.ts +0 -57
  213. package/src/resources/org/index.ts +0 -13
  214. package/src/resources/org/org.ts +0 -41
  215. package/src/resources/org/project/api-keys.ts +0 -180
  216. package/src/resources/org/project/index.ts +0 -35
  217. package/src/resources/org/project/project.ts +0 -381
  218. package/src/resources/org/project/trigger.ts +0 -188
  219. package/src/resources/org/project/webhook.ts +0 -205
  220. package/src/resources/org/project.ts +0 -3
  221. package/src/resources/org.ts +0 -3
  222. package/src/resources/team-members.ts +0 -101
  223. package/src/resources/trigger-instances/handle.ts +0 -53
@@ -1,268 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as APIKeysAPI from "./api-keys.mjs";
3
- import { APIKeyCreateParams, APIKeyCreateResponse, APIKeyDeleteParams, APIKeyDeleteResponse, APIKeyListResponse, APIKeys } from "./api-keys.mjs";
4
- import * as TriggerAPI from "./trigger.mjs";
5
- import { Trigger, TriggerListResponse, TriggerUpdateParams, TriggerUpdateResponse } from "./trigger.mjs";
6
- import * as WebhookAPI from "./webhook.mjs";
7
- import { Webhook, WebhookDeleteParams, WebhookDeleteResponse, WebhookRefreshResponse, WebhookRetrieveParams, WebhookRetrieveResponse, WebhookUpdateParams, WebhookUpdateResponse } from "./webhook.mjs";
8
- import { APIPromise } from "../../../core/api-promise.mjs";
9
- import { RequestOptions } from "../../../internal/request-options.mjs";
10
- export declare class Project extends APIResource {
11
- apiKeys: APIKeysAPI.APIKeys;
12
- webhook: WebhookAPI.Webhook;
13
- trigger: TriggerAPI.Trigger;
14
- /**
15
- * Creates a new project within the authenticated user's organization using the
16
- * specified name. Projects are isolated environments within your organization,
17
- * each with their own API keys, webhook configurations, and resources. Use this
18
- * endpoint to create additional projects for different environments (e.g.,
19
- * development, staging, production) or for separate applications.
20
- *
21
- * @example
22
- * ```ts
23
- * const project = await client.org.project.create({
24
- * name: 'my-production-api',
25
- * });
26
- * ```
27
- */
28
- create(body: ProjectCreateParams, options?: RequestOptions): APIPromise<ProjectCreateResponse>;
29
- /**
30
- * Retrieves detailed information about a specific project using its unique
31
- * identifier. This endpoint provides complete project configuration including
32
- * webhook URLs, creation and update timestamps, and webhook secrets. Use this
33
- * endpoint to inspect project settings or verify project configuration.
34
- *
35
- * @example
36
- * ```ts
37
- * const project = await client.org.project.retrieve(
38
- * 'proj_abc123xyz456',
39
- * );
40
- * ```
41
- */
42
- retrieve(projectID: string, options?: RequestOptions): APIPromise<ProjectRetrieveResponse>;
43
- /**
44
- * Retrieves all projects belonging to the authenticated user's organization.
45
- * Projects are returned in descending order of creation date (newest first). This
46
- * endpoint is useful for displaying project selection in dashboards or for
47
- * integrations that need to list all available projects.
48
- *
49
- * @example
50
- * ```ts
51
- * const projects = await client.org.project.list();
52
- * ```
53
- */
54
- list(query?: ProjectListParams | null | undefined, options?: RequestOptions): APIPromise<ProjectListResponse>;
55
- /**
56
- * Soft-deletes a project within the organization by its unique identifier. When a
57
- * project is deleted, it is marked as deleted but not immediately removed from the
58
- * database. This operation affects all resources associated with the project
59
- * including API keys, webhook configurations, and connected services. This action
60
- * cannot be undone through the API.
61
- *
62
- * @example
63
- * ```ts
64
- * const project = await client.org.project.delete(
65
- * 'proj_abc123xyz456',
66
- * );
67
- * ```
68
- */
69
- delete(projectID: string, options?: RequestOptions): APIPromise<ProjectDeleteResponse>;
70
- }
71
- export interface ProjectCreateResponse {
72
- /**
73
- * Unique identifier for the project
74
- */
75
- id: string;
76
- /**
77
- * ISO timestamp when the project was created
78
- */
79
- created_at: string;
80
- /**
81
- * Whether this project has been soft-deleted
82
- */
83
- deleted: boolean;
84
- /**
85
- * Email address associated with the project
86
- */
87
- email: string;
88
- /**
89
- * URL where event webhook notifications will be sent (can be null)
90
- */
91
- event_webhook_url: string | null;
92
- /**
93
- * Name of the project
94
- */
95
- name: string;
96
- /**
97
- * Identifier of the organization that owns this project
98
- */
99
- org_id: string;
100
- /**
101
- * ISO timestamp when the project was last updated
102
- */
103
- updated_at: string;
104
- /**
105
- * Secret key used to sign webhook payloads for verification
106
- */
107
- webhook_secret: string | null;
108
- /**
109
- * URL where webhook events will be sent (can be null)
110
- */
111
- webhook_url: string | null;
112
- /**
113
- * Indicates if the webhook configuration is using the new format
114
- */
115
- is_new_webhook?: boolean;
116
- /**
117
- * ISO timestamp when the project last subscribed to updates
118
- */
119
- last_subscribed_at?: string | null;
120
- /**
121
- * Whether triggers are enabled for this project
122
- */
123
- triggers_enabled?: boolean;
124
- }
125
- export interface ProjectRetrieveResponse {
126
- /**
127
- * Unique identifier for the project
128
- */
129
- id: string;
130
- /**
131
- * ISO timestamp when the project was created
132
- */
133
- created_at: string;
134
- /**
135
- * Whether this project has been soft-deleted
136
- */
137
- deleted: boolean;
138
- /**
139
- * Email address associated with the project
140
- */
141
- email: string;
142
- /**
143
- * URL where event webhook notifications will be sent (can be null)
144
- */
145
- event_webhook_url: string | null;
146
- /**
147
- * Name of the project
148
- */
149
- name: string;
150
- /**
151
- * Identifier of the organization that owns this project
152
- */
153
- org_id: string;
154
- /**
155
- * ISO timestamp when the project was last updated
156
- */
157
- updated_at: string;
158
- /**
159
- * Secret key used to sign webhook payloads for verification
160
- */
161
- webhook_secret: string | null;
162
- /**
163
- * URL where webhook events will be sent (can be null)
164
- */
165
- webhook_url: string | null;
166
- /**
167
- * Indicates if the webhook configuration is using the new format
168
- */
169
- is_new_webhook?: boolean;
170
- /**
171
- * ISO timestamp when the project last subscribed to updates
172
- */
173
- last_subscribed_at?: string | null;
174
- /**
175
- * Whether triggers are enabled for this project
176
- */
177
- triggers_enabled?: boolean;
178
- }
179
- /**
180
- * Response containing a list of projects
181
- */
182
- export interface ProjectListResponse {
183
- /**
184
- * Array of projects belonging to the organization
185
- */
186
- data: Array<ProjectListResponse.Data>;
187
- }
188
- export declare namespace ProjectListResponse {
189
- interface Data {
190
- /**
191
- * Unique identifier for the project
192
- */
193
- id: string;
194
- /**
195
- * ISO timestamp when the project was created
196
- */
197
- created_at: string;
198
- /**
199
- * Whether this project has been soft-deleted
200
- */
201
- deleted: boolean;
202
- /**
203
- * Email address associated with the project
204
- */
205
- email: string;
206
- /**
207
- * URL where event webhook notifications will be sent (can be null)
208
- */
209
- event_webhook_url: string | null;
210
- /**
211
- * Name of the project
212
- */
213
- name: string;
214
- /**
215
- * Identifier of the organization that owns this project
216
- */
217
- org_id: string;
218
- /**
219
- * ISO timestamp when the project was last updated
220
- */
221
- updated_at: string;
222
- /**
223
- * Secret key used to sign webhook payloads for verification
224
- */
225
- webhook_secret: string | null;
226
- /**
227
- * URL where webhook events will be sent (can be null)
228
- */
229
- webhook_url: string | null;
230
- /**
231
- * Indicates if the webhook configuration is using the new format
232
- */
233
- is_new_webhook?: boolean;
234
- /**
235
- * ISO timestamp when the project last subscribed to updates
236
- */
237
- last_subscribed_at?: string | null;
238
- /**
239
- * Whether triggers are enabled for this project
240
- */
241
- triggers_enabled?: boolean;
242
- }
243
- }
244
- /**
245
- * Response indicating the result of a project deletion operation
246
- */
247
- export interface ProjectDeleteResponse {
248
- /**
249
- * Status of the delete operation
250
- */
251
- status: string;
252
- }
253
- export interface ProjectCreateParams {
254
- /**
255
- * A unique name for your project that follows the required format rules
256
- */
257
- name: string;
258
- }
259
- export interface ProjectListParams {
260
- list_all_org_projects?: boolean | null;
261
- }
262
- export declare namespace Project {
263
- export { type ProjectCreateResponse as ProjectCreateResponse, type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectListResponse as ProjectListResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectListParams as ProjectListParams, };
264
- export { APIKeys as APIKeys, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyDeleteParams as APIKeyDeleteParams, };
265
- export { Webhook as Webhook, 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, };
266
- export { Trigger as Trigger, type TriggerUpdateResponse as TriggerUpdateResponse, type TriggerListResponse as TriggerListResponse, type TriggerUpdateParams as TriggerUpdateParams, };
267
- }
268
- //# sourceMappingURL=project.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project.d.mts","sourceRoot":"","sources":["../../../src/resources/org/project/project.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,OAAO,EACR;OACM,KAAK,UAAU;OACf,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE;OAC5E,KAAK,UAAU;OACf,EACL,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACtB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;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,OAAO,GAAG,IAAI,CAAC;CACxC;AAMD,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,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;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,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;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,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;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,268 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import * as APIKeysAPI from "./api-keys.js";
3
- import { APIKeyCreateParams, APIKeyCreateResponse, APIKeyDeleteParams, APIKeyDeleteResponse, APIKeyListResponse, APIKeys } from "./api-keys.js";
4
- import * as TriggerAPI from "./trigger.js";
5
- import { Trigger, TriggerListResponse, TriggerUpdateParams, TriggerUpdateResponse } from "./trigger.js";
6
- import * as WebhookAPI from "./webhook.js";
7
- import { Webhook, WebhookDeleteParams, WebhookDeleteResponse, WebhookRefreshResponse, WebhookRetrieveParams, WebhookRetrieveResponse, WebhookUpdateParams, WebhookUpdateResponse } from "./webhook.js";
8
- import { APIPromise } from "../../../core/api-promise.js";
9
- import { RequestOptions } from "../../../internal/request-options.js";
10
- export declare class Project extends APIResource {
11
- apiKeys: APIKeysAPI.APIKeys;
12
- webhook: WebhookAPI.Webhook;
13
- trigger: TriggerAPI.Trigger;
14
- /**
15
- * Creates a new project within the authenticated user's organization using the
16
- * specified name. Projects are isolated environments within your organization,
17
- * each with their own API keys, webhook configurations, and resources. Use this
18
- * endpoint to create additional projects for different environments (e.g.,
19
- * development, staging, production) or for separate applications.
20
- *
21
- * @example
22
- * ```ts
23
- * const project = await client.org.project.create({
24
- * name: 'my-production-api',
25
- * });
26
- * ```
27
- */
28
- create(body: ProjectCreateParams, options?: RequestOptions): APIPromise<ProjectCreateResponse>;
29
- /**
30
- * Retrieves detailed information about a specific project using its unique
31
- * identifier. This endpoint provides complete project configuration including
32
- * webhook URLs, creation and update timestamps, and webhook secrets. Use this
33
- * endpoint to inspect project settings or verify project configuration.
34
- *
35
- * @example
36
- * ```ts
37
- * const project = await client.org.project.retrieve(
38
- * 'proj_abc123xyz456',
39
- * );
40
- * ```
41
- */
42
- retrieve(projectID: string, options?: RequestOptions): APIPromise<ProjectRetrieveResponse>;
43
- /**
44
- * Retrieves all projects belonging to the authenticated user's organization.
45
- * Projects are returned in descending order of creation date (newest first). This
46
- * endpoint is useful for displaying project selection in dashboards or for
47
- * integrations that need to list all available projects.
48
- *
49
- * @example
50
- * ```ts
51
- * const projects = await client.org.project.list();
52
- * ```
53
- */
54
- list(query?: ProjectListParams | null | undefined, options?: RequestOptions): APIPromise<ProjectListResponse>;
55
- /**
56
- * Soft-deletes a project within the organization by its unique identifier. When a
57
- * project is deleted, it is marked as deleted but not immediately removed from the
58
- * database. This operation affects all resources associated with the project
59
- * including API keys, webhook configurations, and connected services. This action
60
- * cannot be undone through the API.
61
- *
62
- * @example
63
- * ```ts
64
- * const project = await client.org.project.delete(
65
- * 'proj_abc123xyz456',
66
- * );
67
- * ```
68
- */
69
- delete(projectID: string, options?: RequestOptions): APIPromise<ProjectDeleteResponse>;
70
- }
71
- export interface ProjectCreateResponse {
72
- /**
73
- * Unique identifier for the project
74
- */
75
- id: string;
76
- /**
77
- * ISO timestamp when the project was created
78
- */
79
- created_at: string;
80
- /**
81
- * Whether this project has been soft-deleted
82
- */
83
- deleted: boolean;
84
- /**
85
- * Email address associated with the project
86
- */
87
- email: string;
88
- /**
89
- * URL where event webhook notifications will be sent (can be null)
90
- */
91
- event_webhook_url: string | null;
92
- /**
93
- * Name of the project
94
- */
95
- name: string;
96
- /**
97
- * Identifier of the organization that owns this project
98
- */
99
- org_id: string;
100
- /**
101
- * ISO timestamp when the project was last updated
102
- */
103
- updated_at: string;
104
- /**
105
- * Secret key used to sign webhook payloads for verification
106
- */
107
- webhook_secret: string | null;
108
- /**
109
- * URL where webhook events will be sent (can be null)
110
- */
111
- webhook_url: string | null;
112
- /**
113
- * Indicates if the webhook configuration is using the new format
114
- */
115
- is_new_webhook?: boolean;
116
- /**
117
- * ISO timestamp when the project last subscribed to updates
118
- */
119
- last_subscribed_at?: string | null;
120
- /**
121
- * Whether triggers are enabled for this project
122
- */
123
- triggers_enabled?: boolean;
124
- }
125
- export interface ProjectRetrieveResponse {
126
- /**
127
- * Unique identifier for the project
128
- */
129
- id: string;
130
- /**
131
- * ISO timestamp when the project was created
132
- */
133
- created_at: string;
134
- /**
135
- * Whether this project has been soft-deleted
136
- */
137
- deleted: boolean;
138
- /**
139
- * Email address associated with the project
140
- */
141
- email: string;
142
- /**
143
- * URL where event webhook notifications will be sent (can be null)
144
- */
145
- event_webhook_url: string | null;
146
- /**
147
- * Name of the project
148
- */
149
- name: string;
150
- /**
151
- * Identifier of the organization that owns this project
152
- */
153
- org_id: string;
154
- /**
155
- * ISO timestamp when the project was last updated
156
- */
157
- updated_at: string;
158
- /**
159
- * Secret key used to sign webhook payloads for verification
160
- */
161
- webhook_secret: string | null;
162
- /**
163
- * URL where webhook events will be sent (can be null)
164
- */
165
- webhook_url: string | null;
166
- /**
167
- * Indicates if the webhook configuration is using the new format
168
- */
169
- is_new_webhook?: boolean;
170
- /**
171
- * ISO timestamp when the project last subscribed to updates
172
- */
173
- last_subscribed_at?: string | null;
174
- /**
175
- * Whether triggers are enabled for this project
176
- */
177
- triggers_enabled?: boolean;
178
- }
179
- /**
180
- * Response containing a list of projects
181
- */
182
- export interface ProjectListResponse {
183
- /**
184
- * Array of projects belonging to the organization
185
- */
186
- data: Array<ProjectListResponse.Data>;
187
- }
188
- export declare namespace ProjectListResponse {
189
- interface Data {
190
- /**
191
- * Unique identifier for the project
192
- */
193
- id: string;
194
- /**
195
- * ISO timestamp when the project was created
196
- */
197
- created_at: string;
198
- /**
199
- * Whether this project has been soft-deleted
200
- */
201
- deleted: boolean;
202
- /**
203
- * Email address associated with the project
204
- */
205
- email: string;
206
- /**
207
- * URL where event webhook notifications will be sent (can be null)
208
- */
209
- event_webhook_url: string | null;
210
- /**
211
- * Name of the project
212
- */
213
- name: string;
214
- /**
215
- * Identifier of the organization that owns this project
216
- */
217
- org_id: string;
218
- /**
219
- * ISO timestamp when the project was last updated
220
- */
221
- updated_at: string;
222
- /**
223
- * Secret key used to sign webhook payloads for verification
224
- */
225
- webhook_secret: string | null;
226
- /**
227
- * URL where webhook events will be sent (can be null)
228
- */
229
- webhook_url: string | null;
230
- /**
231
- * Indicates if the webhook configuration is using the new format
232
- */
233
- is_new_webhook?: boolean;
234
- /**
235
- * ISO timestamp when the project last subscribed to updates
236
- */
237
- last_subscribed_at?: string | null;
238
- /**
239
- * Whether triggers are enabled for this project
240
- */
241
- triggers_enabled?: boolean;
242
- }
243
- }
244
- /**
245
- * Response indicating the result of a project deletion operation
246
- */
247
- export interface ProjectDeleteResponse {
248
- /**
249
- * Status of the delete operation
250
- */
251
- status: string;
252
- }
253
- export interface ProjectCreateParams {
254
- /**
255
- * A unique name for your project that follows the required format rules
256
- */
257
- name: string;
258
- }
259
- export interface ProjectListParams {
260
- list_all_org_projects?: boolean | null;
261
- }
262
- export declare namespace Project {
263
- export { type ProjectCreateResponse as ProjectCreateResponse, type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectListResponse as ProjectListResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectListParams as ProjectListParams, };
264
- export { APIKeys as APIKeys, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyDeleteParams as APIKeyDeleteParams, };
265
- export { Webhook as Webhook, 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, };
266
- export { Trigger as Trigger, type TriggerUpdateResponse as TriggerUpdateResponse, type TriggerListResponse as TriggerListResponse, type TriggerUpdateParams as TriggerUpdateParams, };
267
- }
268
- //# sourceMappingURL=project.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/resources/org/project/project.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,OAAO,EACR;OACM,KAAK,UAAU;OACf,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE;OAC5E,KAAK,UAAU;OACf,EACL,OAAO,EACP,mBAAmB,EACnB,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9C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,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;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,90 +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 = void 0;
5
- const tslib_1 = require("../../../internal/tslib.js");
6
- const resource_1 = require("../../../core/resource.js");
7
- const APIKeysAPI = tslib_1.__importStar(require("./api-keys.js"));
8
- const api_keys_1 = require("./api-keys.js");
9
- const TriggerAPI = tslib_1.__importStar(require("./trigger.js"));
10
- const trigger_1 = require("./trigger.js");
11
- const WebhookAPI = tslib_1.__importStar(require("./webhook.js"));
12
- const webhook_1 = require("./webhook.js");
13
- const path_1 = require("../../../internal/utils/path.js");
14
- class Project extends resource_1.APIResource {
15
- constructor() {
16
- super(...arguments);
17
- this.apiKeys = new APIKeysAPI.APIKeys(this._client);
18
- this.webhook = new WebhookAPI.Webhook(this._client);
19
- this.trigger = new TriggerAPI.Trigger(this._client);
20
- }
21
- /**
22
- * Creates a new project within the authenticated user's organization using the
23
- * specified name. Projects are isolated environments within your organization,
24
- * each with their own API keys, webhook configurations, and resources. Use this
25
- * endpoint to create additional projects for different environments (e.g.,
26
- * development, staging, production) or for separate applications.
27
- *
28
- * @example
29
- * ```ts
30
- * const project = await client.org.project.create({
31
- * name: 'my-production-api',
32
- * });
33
- * ```
34
- */
35
- create(body, options) {
36
- return this._client.post('/api/v3/org/project/new', { body, ...options });
37
- }
38
- /**
39
- * Retrieves detailed information about a specific project using its unique
40
- * identifier. This endpoint provides complete project configuration including
41
- * webhook URLs, creation and update timestamps, and webhook secrets. Use this
42
- * endpoint to inspect project settings or verify project configuration.
43
- *
44
- * @example
45
- * ```ts
46
- * const project = await client.org.project.retrieve(
47
- * 'proj_abc123xyz456',
48
- * );
49
- * ```
50
- */
51
- retrieve(projectID, options) {
52
- return this._client.get((0, path_1.path) `/api/v3/org/project/${projectID}`, options);
53
- }
54
- /**
55
- * Retrieves all projects belonging to the authenticated user's organization.
56
- * Projects are returned in descending order of creation date (newest first). This
57
- * endpoint is useful for displaying project selection in dashboards or for
58
- * integrations that need to list all available projects.
59
- *
60
- * @example
61
- * ```ts
62
- * const projects = await client.org.project.list();
63
- * ```
64
- */
65
- list(query = {}, options) {
66
- return this._client.get('/api/v3/org/project/list', { query, ...options });
67
- }
68
- /**
69
- * Soft-deletes a project within the organization by its unique identifier. When a
70
- * project is deleted, it is marked as deleted but not immediately removed from the
71
- * database. This operation affects all resources associated with the project
72
- * including API keys, webhook configurations, and connected services. This action
73
- * cannot be undone through the API.
74
- *
75
- * @example
76
- * ```ts
77
- * const project = await client.org.project.delete(
78
- * 'proj_abc123xyz456',
79
- * );
80
- * ```
81
- */
82
- delete(projectID, options) {
83
- return this._client.delete((0, path_1.path) `/api/v3/org/project/delete/${projectID}`, options);
84
- }
85
- }
86
- exports.Project = Project;
87
- Project.APIKeys = api_keys_1.APIKeys;
88
- Project.Webhook = webhook_1.Webhook;
89
- Project.Trigger = trigger_1.Trigger;
90
- //# sourceMappingURL=project.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project.js","sourceRoot":"","sources":["../../../src/resources/org/project/project.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,kEAAyC;AACzC,4CAOoB;AACpB,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