@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,142 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import { APIPromise } from "../../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../../internal/request-options.mjs";
4
- export declare class APIKeys extends APIResource {
5
- /**
6
- * Creates a new API key for the specified project. API keys are used for
7
- * authenticating requests to the API. This endpoint generates a new key with the
8
- * provided name and returns the complete key details including the actual key
9
- * value. Note that the full API key value is only returned once at creation time
10
- * and cannot be retrieved later, so it should be securely stored immediately.
11
- *
12
- * @example
13
- * ```ts
14
- * const apiKey = await client.org.project.apiKeys.create(
15
- * 'proj_abc123xyz456',
16
- * { name: 'Production API Key' },
17
- * );
18
- * ```
19
- */
20
- create(projectID: string, body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKeyCreateResponse>;
21
- /**
22
- * Retrieves all API keys associated with the specified project. This endpoint
23
- * returns details about each API key including its name, creation date, and last
24
- * used information. Use this endpoint to audit which keys exist for a project or
25
- * to manage key rotation policies.
26
- *
27
- * @example
28
- * ```ts
29
- * const apiKeys = await client.org.project.apiKeys.list(
30
- * 'proj_abc123xyz456',
31
- * );
32
- * ```
33
- */
34
- list(projectID: string, options?: RequestOptions): APIPromise<APIKeyListResponse>;
35
- /**
36
- * Permanently deletes an API key from the specified project. Once deleted, the API
37
- * key can no longer be used for authentication and any services using it will need
38
- * to be updated with a new key. This operation cannot be undone, so it should be
39
- * used with caution.
40
- *
41
- * @example
42
- * ```ts
43
- * const apiKey = await client.org.project.apiKeys.delete(
44
- * '01H4DKRF5SMP7NQCA3BWT0JYB6',
45
- * { projectId: 'proj_abc123xyz456' },
46
- * );
47
- * ```
48
- */
49
- delete(id: string, params: APIKeyDeleteParams, options?: RequestOptions): APIPromise<APIKeyDeleteResponse>;
50
- }
51
- /**
52
- * API key object containing the key details
53
- */
54
- export interface APIKeyCreateResponse {
55
- /**
56
- * Database record identifier for the API key
57
- */
58
- id: string;
59
- /**
60
- * UTC timestamp indicating when the API key was created
61
- */
62
- created_at: string;
63
- /**
64
- * The API key string value that should be included in API requests. This value is
65
- * only shown once at creation time.
66
- */
67
- key: string;
68
- /**
69
- * Descriptive name assigned to help identify the key's purpose
70
- */
71
- name: string;
72
- /**
73
- * UTC timestamp indicating when the API key was last used for authentication. Will
74
- * be null for newly created keys.
75
- */
76
- last_used_at?: string;
77
- }
78
- /**
79
- * Response containing the list of API keys for a project
80
- */
81
- export interface APIKeyListResponse {
82
- /**
83
- * List of all API keys for the specified project, including their properties and
84
- * usage information
85
- */
86
- items: Array<APIKeyListResponse.Item>;
87
- }
88
- export declare namespace APIKeyListResponse {
89
- interface Item {
90
- /**
91
- * Unique identifier for the API key record
92
- */
93
- id: string;
94
- /**
95
- * UTC timestamp indicating when the API key was created
96
- */
97
- created_at: string;
98
- /**
99
- * The API key string that should be included in API requests for authentication
100
- */
101
- key: string;
102
- /**
103
- * Descriptive name assigned to the API key for identification purposes
104
- */
105
- name: string;
106
- /**
107
- * UTC timestamp indicating when the API key was last used for authentication. Will
108
- * be null if the key has never been used.
109
- */
110
- last_used?: string;
111
- }
112
- }
113
- /**
114
- * Response indicating the status of the API key deletion operation
115
- */
116
- export interface APIKeyDeleteResponse {
117
- /**
118
- * Status message providing details about the deletion operation
119
- */
120
- message: string;
121
- /**
122
- * Boolean flag indicating if the deletion operation was successful
123
- */
124
- success: boolean;
125
- }
126
- export interface APIKeyCreateParams {
127
- /**
128
- * A user-friendly name to identify the API key's purpose (e.g., "Production
129
- * Server", "Test Environment")
130
- */
131
- name: string;
132
- }
133
- export interface APIKeyDeleteParams {
134
- /**
135
- * The project Nano ID that owns the API key to be deleted
136
- */
137
- projectId: string;
138
- }
139
- export declare namespace APIKeys {
140
- export { type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyDeleteParams as APIKeyDeleteParams, };
141
- }
142
- //# sourceMappingURL=api-keys.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-keys.d.mts","sourceRoot":"","sources":["../../../src/resources/org/project/api-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIjF;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAI3G;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,142 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import { APIPromise } from "../../../core/api-promise.js";
3
- import { RequestOptions } from "../../../internal/request-options.js";
4
- export declare class APIKeys extends APIResource {
5
- /**
6
- * Creates a new API key for the specified project. API keys are used for
7
- * authenticating requests to the API. This endpoint generates a new key with the
8
- * provided name and returns the complete key details including the actual key
9
- * value. Note that the full API key value is only returned once at creation time
10
- * and cannot be retrieved later, so it should be securely stored immediately.
11
- *
12
- * @example
13
- * ```ts
14
- * const apiKey = await client.org.project.apiKeys.create(
15
- * 'proj_abc123xyz456',
16
- * { name: 'Production API Key' },
17
- * );
18
- * ```
19
- */
20
- create(projectID: string, body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKeyCreateResponse>;
21
- /**
22
- * Retrieves all API keys associated with the specified project. This endpoint
23
- * returns details about each API key including its name, creation date, and last
24
- * used information. Use this endpoint to audit which keys exist for a project or
25
- * to manage key rotation policies.
26
- *
27
- * @example
28
- * ```ts
29
- * const apiKeys = await client.org.project.apiKeys.list(
30
- * 'proj_abc123xyz456',
31
- * );
32
- * ```
33
- */
34
- list(projectID: string, options?: RequestOptions): APIPromise<APIKeyListResponse>;
35
- /**
36
- * Permanently deletes an API key from the specified project. Once deleted, the API
37
- * key can no longer be used for authentication and any services using it will need
38
- * to be updated with a new key. This operation cannot be undone, so it should be
39
- * used with caution.
40
- *
41
- * @example
42
- * ```ts
43
- * const apiKey = await client.org.project.apiKeys.delete(
44
- * '01H4DKRF5SMP7NQCA3BWT0JYB6',
45
- * { projectId: 'proj_abc123xyz456' },
46
- * );
47
- * ```
48
- */
49
- delete(id: string, params: APIKeyDeleteParams, options?: RequestOptions): APIPromise<APIKeyDeleteResponse>;
50
- }
51
- /**
52
- * API key object containing the key details
53
- */
54
- export interface APIKeyCreateResponse {
55
- /**
56
- * Database record identifier for the API key
57
- */
58
- id: string;
59
- /**
60
- * UTC timestamp indicating when the API key was created
61
- */
62
- created_at: string;
63
- /**
64
- * The API key string value that should be included in API requests. This value is
65
- * only shown once at creation time.
66
- */
67
- key: string;
68
- /**
69
- * Descriptive name assigned to help identify the key's purpose
70
- */
71
- name: string;
72
- /**
73
- * UTC timestamp indicating when the API key was last used for authentication. Will
74
- * be null for newly created keys.
75
- */
76
- last_used_at?: string;
77
- }
78
- /**
79
- * Response containing the list of API keys for a project
80
- */
81
- export interface APIKeyListResponse {
82
- /**
83
- * List of all API keys for the specified project, including their properties and
84
- * usage information
85
- */
86
- items: Array<APIKeyListResponse.Item>;
87
- }
88
- export declare namespace APIKeyListResponse {
89
- interface Item {
90
- /**
91
- * Unique identifier for the API key record
92
- */
93
- id: string;
94
- /**
95
- * UTC timestamp indicating when the API key was created
96
- */
97
- created_at: string;
98
- /**
99
- * The API key string that should be included in API requests for authentication
100
- */
101
- key: string;
102
- /**
103
- * Descriptive name assigned to the API key for identification purposes
104
- */
105
- name: string;
106
- /**
107
- * UTC timestamp indicating when the API key was last used for authentication. Will
108
- * be null if the key has never been used.
109
- */
110
- last_used?: string;
111
- }
112
- }
113
- /**
114
- * Response indicating the status of the API key deletion operation
115
- */
116
- export interface APIKeyDeleteResponse {
117
- /**
118
- * Status message providing details about the deletion operation
119
- */
120
- message: string;
121
- /**
122
- * Boolean flag indicating if the deletion operation was successful
123
- */
124
- success: boolean;
125
- }
126
- export interface APIKeyCreateParams {
127
- /**
128
- * A user-friendly name to identify the API key's purpose (e.g., "Production
129
- * Server", "Test Environment")
130
- */
131
- name: string;
132
- }
133
- export interface APIKeyDeleteParams {
134
- /**
135
- * The project Nano ID that owns the API key to be deleted
136
- */
137
- projectId: string;
138
- }
139
- export declare namespace APIKeys {
140
- export { type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyDeleteParams as APIKeyDeleteParams, };
141
- }
142
- //# sourceMappingURL=api-keys.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../../../src/resources/org/project/api-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIjF;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAI3G;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,62 +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.APIKeys = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- const path_1 = require("../../../internal/utils/path.js");
7
- class APIKeys extends resource_1.APIResource {
8
- /**
9
- * Creates a new API key for the specified project. API keys are used for
10
- * authenticating requests to the API. This endpoint generates a new key with the
11
- * provided name and returns the complete key details including the actual key
12
- * value. Note that the full API key value is only returned once at creation time
13
- * and cannot be retrieved later, so it should be securely stored immediately.
14
- *
15
- * @example
16
- * ```ts
17
- * const apiKey = await client.org.project.apiKeys.create(
18
- * 'proj_abc123xyz456',
19
- * { name: 'Production API Key' },
20
- * );
21
- * ```
22
- */
23
- create(projectID, body, options) {
24
- return this._client.post((0, path_1.path) `/api/v3/org/project/${projectID}/api_keys/create`, { body, ...options });
25
- }
26
- /**
27
- * Retrieves all API keys associated with the specified project. This endpoint
28
- * returns details about each API key including its name, creation date, and last
29
- * used information. Use this endpoint to audit which keys exist for a project or
30
- * to manage key rotation policies.
31
- *
32
- * @example
33
- * ```ts
34
- * const apiKeys = await client.org.project.apiKeys.list(
35
- * 'proj_abc123xyz456',
36
- * );
37
- * ```
38
- */
39
- list(projectID, options) {
40
- return this._client.get((0, path_1.path) `/api/v3/org/project/${projectID}/api_keys/list`, options);
41
- }
42
- /**
43
- * Permanently deletes an API key from the specified project. Once deleted, the API
44
- * key can no longer be used for authentication and any services using it will need
45
- * to be updated with a new key. This operation cannot be undone, so it should be
46
- * used with caution.
47
- *
48
- * @example
49
- * ```ts
50
- * const apiKey = await client.org.project.apiKeys.delete(
51
- * '01H4DKRF5SMP7NQCA3BWT0JYB6',
52
- * { projectId: 'proj_abc123xyz456' },
53
- * );
54
- * ```
55
- */
56
- delete(id, params, options) {
57
- const { projectId } = params;
58
- return this._client.delete((0, path_1.path) `/api/v3/org/project/${projectId}/api_keys/remove/${id}`, options);
59
- }
60
- }
61
- exports.APIKeys = APIKeys;
62
- //# sourceMappingURL=api-keys.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../../../src/resources/org/project/api-keys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,uBAAuB,SAAS,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,SAAiB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,SAAS,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,MAA0B,EAAE,OAAwB;QACrE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uBAAuB,SAAS,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF;AA3DD,0BA2DC"}
@@ -1,58 +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 APIKeys extends APIResource {
5
- /**
6
- * Creates a new API key for the specified project. API keys are used for
7
- * authenticating requests to the API. This endpoint generates a new key with the
8
- * provided name and returns the complete key details including the actual key
9
- * value. Note that the full API key value is only returned once at creation time
10
- * and cannot be retrieved later, so it should be securely stored immediately.
11
- *
12
- * @example
13
- * ```ts
14
- * const apiKey = await client.org.project.apiKeys.create(
15
- * 'proj_abc123xyz456',
16
- * { name: 'Production API Key' },
17
- * );
18
- * ```
19
- */
20
- create(projectID, body, options) {
21
- return this._client.post(path `/api/v3/org/project/${projectID}/api_keys/create`, { body, ...options });
22
- }
23
- /**
24
- * Retrieves all API keys associated with the specified project. This endpoint
25
- * returns details about each API key including its name, creation date, and last
26
- * used information. Use this endpoint to audit which keys exist for a project or
27
- * to manage key rotation policies.
28
- *
29
- * @example
30
- * ```ts
31
- * const apiKeys = await client.org.project.apiKeys.list(
32
- * 'proj_abc123xyz456',
33
- * );
34
- * ```
35
- */
36
- list(projectID, options) {
37
- return this._client.get(path `/api/v3/org/project/${projectID}/api_keys/list`, options);
38
- }
39
- /**
40
- * Permanently deletes an API key from the specified project. Once deleted, the API
41
- * key can no longer be used for authentication and any services using it will need
42
- * to be updated with a new key. This operation cannot be undone, so it should be
43
- * used with caution.
44
- *
45
- * @example
46
- * ```ts
47
- * const apiKey = await client.org.project.apiKeys.delete(
48
- * '01H4DKRF5SMP7NQCA3BWT0JYB6',
49
- * { projectId: 'proj_abc123xyz456' },
50
- * );
51
- * ```
52
- */
53
- delete(id, params, options) {
54
- const { projectId } = params;
55
- return this._client.delete(path `/api/v3/org/project/${projectId}/api_keys/remove/${id}`, options);
56
- }
57
- }
58
- //# sourceMappingURL=api-keys.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-keys.mjs","sourceRoot":"","sources":["../../../src/resources/org/project/api-keys.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,uBAAuB,SAAS,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,SAAiB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,SAAS,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,MAA0B,EAAE,OAAwB;QACrE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uBAAuB,SAAS,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF"}
@@ -1,5 +0,0 @@
1
- export { APIKeys, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyDeleteResponse, type APIKeyCreateParams, type APIKeyDeleteParams, } from "./api-keys.mjs";
2
- export { Project, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectListResponse, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectListParams, } from "./project.mjs";
3
- export { Trigger, type TriggerUpdateResponse, type TriggerListResponse, type TriggerUpdateParams, } from "./trigger.mjs";
4
- export { Webhook, type WebhookRetrieveResponse, type WebhookUpdateResponse, type WebhookDeleteResponse, type WebhookRefreshResponse, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookDeleteParams, } from "./webhook.mjs";
5
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/org/project/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
@@ -1,5 +0,0 @@
1
- export { APIKeys, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyDeleteResponse, type APIKeyCreateParams, type APIKeyDeleteParams, } from "./api-keys.js";
2
- export { Project, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectListResponse, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectListParams, } from "./project.js";
3
- export { Trigger, type TriggerUpdateResponse, type TriggerListResponse, type TriggerUpdateParams, } from "./trigger.js";
4
- export { Webhook, type WebhookRetrieveResponse, type WebhookUpdateResponse, type WebhookDeleteResponse, type WebhookRefreshResponse, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookDeleteParams, } from "./webhook.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/org/project/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
@@ -1,13 +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 = exports.Trigger = exports.Project = exports.APIKeys = void 0;
5
- var api_keys_1 = require("./api-keys.js");
6
- Object.defineProperty(exports, "APIKeys", { enumerable: true, get: function () { return api_keys_1.APIKeys; } });
7
- var project_1 = require("./project.js");
8
- Object.defineProperty(exports, "Project", { enumerable: true, get: function () { return project_1.Project; } });
9
- var trigger_1 = require("./trigger.js");
10
- Object.defineProperty(exports, "Trigger", { enumerable: true, get: function () { return trigger_1.Trigger; } });
11
- var webhook_1 = require("./webhook.js");
12
- Object.defineProperty(exports, "Webhook", { enumerable: true, get: function () { return webhook_1.Webhook; } });
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/org/project/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAOoB;AANlB,mGAAA,OAAO,OAAA;AAOT,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,wCASmB;AARjB,kGAAA,OAAO,OAAA"}
@@ -1,6 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { APIKeys, } from "./api-keys.mjs";
3
- export { Project, } from "./project.mjs";
4
- export { Trigger, } from "./trigger.mjs";
5
- export { Webhook, } from "./webhook.mjs";
6
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/org/project/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAMR;OACM,EACL,OAAO,GAOR;OACM,EACL,OAAO,GAIR;OACM,EACL,OAAO,GAQR"}