@composio/client 0.1.0-alpha.56 → 0.1.0-alpha.58

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 (191) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/client.d.mts +6 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +19 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +19 -3
  9. package/client.mjs.map +1 -1
  10. package/internal/parse.d.mts.map +1 -1
  11. package/internal/parse.d.ts.map +1 -1
  12. package/internal/parse.js +5 -0
  13. package/internal/parse.js.map +1 -1
  14. package/internal/parse.mjs +5 -0
  15. package/internal/parse.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/auth-configs.d.mts +19 -5
  18. package/resources/auth-configs.d.mts.map +1 -1
  19. package/resources/auth-configs.d.ts +19 -5
  20. package/resources/auth-configs.d.ts.map +1 -1
  21. package/resources/auth-configs.js +8 -2
  22. package/resources/auth-configs.js.map +1 -1
  23. package/resources/auth-configs.mjs +8 -2
  24. package/resources/auth-configs.mjs.map +1 -1
  25. package/resources/cli/cli.d.mts +120 -0
  26. package/resources/cli/cli.d.mts.map +1 -0
  27. package/resources/cli/cli.d.ts +120 -0
  28. package/resources/cli/cli.d.ts.map +1 -0
  29. package/resources/cli/cli.js +36 -0
  30. package/resources/cli/cli.js.map +1 -0
  31. package/resources/cli/cli.mjs +31 -0
  32. package/resources/cli/cli.mjs.map +1 -0
  33. package/resources/cli/index.d.mts +3 -0
  34. package/resources/cli/index.d.mts.map +1 -0
  35. package/resources/cli/index.d.ts +3 -0
  36. package/resources/cli/index.d.ts.map +1 -0
  37. package/resources/cli/index.js +9 -0
  38. package/resources/cli/index.js.map +1 -0
  39. package/resources/cli/index.mjs +4 -0
  40. package/resources/cli/index.mjs.map +1 -0
  41. package/resources/cli/realtime.d.mts +53 -0
  42. package/resources/cli/realtime.d.mts.map +1 -0
  43. package/resources/cli/realtime.d.ts +53 -0
  44. package/resources/cli/realtime.d.ts.map +1 -0
  45. package/resources/cli/realtime.js +22 -0
  46. package/resources/cli/realtime.js.map +1 -0
  47. package/resources/cli/realtime.mjs +18 -0
  48. package/resources/cli/realtime.mjs.map +1 -0
  49. package/resources/cli.d.mts +1 -95
  50. package/resources/cli.d.mts.map +1 -1
  51. package/resources/cli.d.ts +1 -95
  52. package/resources/cli.d.ts.map +1 -1
  53. package/resources/cli.js +2 -23
  54. package/resources/cli.js.map +1 -1
  55. package/resources/cli.mjs +1 -21
  56. package/resources/cli.mjs.map +1 -1
  57. package/resources/connected-accounts.d.mts +11 -4
  58. package/resources/connected-accounts.d.mts.map +1 -1
  59. package/resources/connected-accounts.d.ts +11 -4
  60. package/resources/connected-accounts.d.ts.map +1 -1
  61. package/resources/connected-accounts.js +9 -2
  62. package/resources/connected-accounts.js.map +1 -1
  63. package/resources/connected-accounts.mjs +9 -2
  64. package/resources/connected-accounts.mjs.map +1 -1
  65. package/resources/index.d.mts +2 -1
  66. package/resources/index.d.mts.map +1 -1
  67. package/resources/index.d.ts +2 -1
  68. package/resources/index.d.ts.map +1 -1
  69. package/resources/index.js +4 -2
  70. package/resources/index.js.map +1 -1
  71. package/resources/index.mjs +2 -1
  72. package/resources/index.mjs.map +1 -1
  73. package/resources/logs/index.d.mts +4 -0
  74. package/resources/logs/index.d.mts.map +1 -0
  75. package/resources/logs/index.d.ts +4 -0
  76. package/resources/logs/index.d.ts.map +1 -0
  77. package/resources/logs/index.js +11 -0
  78. package/resources/logs/index.js.map +1 -0
  79. package/resources/logs/index.mjs +5 -0
  80. package/resources/logs/index.mjs.map +1 -0
  81. package/resources/logs/logs.d.mts +14 -0
  82. package/resources/logs/logs.d.mts.map +1 -0
  83. package/resources/logs/logs.d.ts +14 -0
  84. package/resources/logs/logs.d.ts.map +1 -0
  85. package/resources/logs/logs.js +21 -0
  86. package/resources/logs/logs.js.map +1 -0
  87. package/resources/logs/logs.mjs +16 -0
  88. package/resources/logs/logs.mjs.map +1 -0
  89. package/resources/logs/tools.d.mts +151 -0
  90. package/resources/logs/tools.d.mts.map +1 -0
  91. package/resources/logs/tools.d.ts +151 -0
  92. package/resources/logs/tools.d.ts.map +1 -0
  93. package/resources/logs/tools.js +33 -0
  94. package/resources/logs/tools.js.map +1 -0
  95. package/resources/logs/tools.mjs +29 -0
  96. package/resources/logs/tools.mjs.map +1 -0
  97. package/resources/logs/triggers.d.mts +109 -0
  98. package/resources/logs/triggers.d.mts.map +1 -0
  99. package/resources/logs/triggers.d.ts +109 -0
  100. package/resources/logs/triggers.d.ts.map +1 -0
  101. package/resources/logs/triggers.js +21 -0
  102. package/resources/logs/triggers.js.map +1 -0
  103. package/resources/logs/triggers.mjs +17 -0
  104. package/resources/logs/triggers.mjs.map +1 -0
  105. package/resources/logs.d.mts +2 -0
  106. package/resources/logs.d.mts.map +1 -0
  107. package/resources/logs.d.ts +2 -0
  108. package/resources/logs.d.ts.map +1 -0
  109. package/resources/logs.js +6 -0
  110. package/resources/logs.js.map +1 -0
  111. package/resources/logs.mjs +3 -0
  112. package/resources/logs.mjs.map +1 -0
  113. package/resources/tool-router/index.d.mts +1 -1
  114. package/resources/tool-router/index.d.mts.map +1 -1
  115. package/resources/tool-router/index.d.ts +1 -1
  116. package/resources/tool-router/index.d.ts.map +1 -1
  117. package/resources/tool-router/index.js.map +1 -1
  118. package/resources/tool-router/index.mjs.map +1 -1
  119. package/resources/tool-router/session.d.mts +293 -5
  120. package/resources/tool-router/session.d.mts.map +1 -1
  121. package/resources/tool-router/session.d.ts +293 -5
  122. package/resources/tool-router/session.d.ts.map +1 -1
  123. package/resources/tool-router/session.js +20 -0
  124. package/resources/tool-router/session.js.map +1 -1
  125. package/resources/tool-router/session.mjs +20 -0
  126. package/resources/tool-router/session.mjs.map +1 -1
  127. package/resources/tool-router/tool-router.d.mts +2 -2
  128. package/resources/tool-router/tool-router.d.mts.map +1 -1
  129. package/resources/tool-router/tool-router.d.ts +2 -2
  130. package/resources/tool-router/tool-router.d.ts.map +1 -1
  131. package/resources/tool-router/tool-router.js.map +1 -1
  132. package/resources/tool-router/tool-router.mjs.map +1 -1
  133. package/resources/toolkits.d.mts +0 -8
  134. package/resources/toolkits.d.mts.map +1 -1
  135. package/resources/toolkits.d.ts +0 -8
  136. package/resources/toolkits.d.ts.map +1 -1
  137. package/resources/tools.d.mts +38 -22
  138. package/resources/tools.d.mts.map +1 -1
  139. package/resources/tools.d.ts +38 -22
  140. package/resources/tools.d.ts.map +1 -1
  141. package/resources/tools.js +11 -2
  142. package/resources/tools.js.map +1 -1
  143. package/resources/tools.mjs +11 -2
  144. package/resources/tools.mjs.map +1 -1
  145. package/resources/trigger-instances/manage.d.mts +9 -0
  146. package/resources/trigger-instances/manage.d.mts.map +1 -1
  147. package/resources/trigger-instances/manage.d.ts +9 -0
  148. package/resources/trigger-instances/manage.d.ts.map +1 -1
  149. package/resources/trigger-instances/manage.js +9 -0
  150. package/resources/trigger-instances/manage.js.map +1 -1
  151. package/resources/trigger-instances/manage.mjs +9 -0
  152. package/resources/trigger-instances/manage.mjs.map +1 -1
  153. package/resources/trigger-instances/trigger-instances.d.mts +11 -0
  154. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  155. package/resources/trigger-instances/trigger-instances.d.ts +11 -0
  156. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  157. package/resources/trigger-instances/trigger-instances.js +11 -0
  158. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  159. package/resources/trigger-instances/trigger-instances.mjs +11 -0
  160. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  161. package/resources/triggers-types.d.mts +0 -8
  162. package/resources/triggers-types.d.mts.map +1 -1
  163. package/resources/triggers-types.d.ts +0 -8
  164. package/resources/triggers-types.d.ts.map +1 -1
  165. package/src/client.ts +31 -4
  166. package/src/internal/parse.ts +6 -0
  167. package/src/resources/auth-configs.ts +24 -5
  168. package/src/resources/cli/cli.ts +163 -0
  169. package/src/resources/cli/index.ts +15 -0
  170. package/src/resources/cli/realtime.ts +72 -0
  171. package/src/resources/cli.ts +1 -120
  172. package/src/resources/connected-accounts.ts +13 -4
  173. package/src/resources/index.ts +3 -1
  174. package/src/resources/logs/index.ts +11 -0
  175. package/src/resources/logs/logs.ts +31 -0
  176. package/src/resources/logs/tools.ts +214 -0
  177. package/src/resources/logs/triggers.ts +157 -0
  178. package/src/resources/logs.ts +3 -0
  179. package/src/resources/tool-router/index.ts +2 -0
  180. package/src/resources/tool-router/session.ts +340 -5
  181. package/src/resources/tool-router/tool-router.ts +4 -0
  182. package/src/resources/toolkits.ts +0 -10
  183. package/src/resources/tools.ts +52 -25
  184. package/src/resources/trigger-instances/manage.ts +9 -0
  185. package/src/resources/trigger-instances/trigger-instances.ts +11 -0
  186. package/src/resources/triggers-types.ts +0 -10
  187. package/src/version.ts +1 -1
  188. package/version.d.mts +1 -1
  189. package/version.d.ts +1 -1
  190. package/version.js +1 -1
  191. package/version.mjs +1 -1
@@ -0,0 +1,33 @@
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.Tools = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ class Tools extends resource_1.APIResource {
7
+ /**
8
+ * Search and retrieve action execution logs
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const tool = await client.logs.tools.retrieve({
13
+ * cursor: 0,
14
+ * });
15
+ * ```
16
+ */
17
+ retrieve(body, options) {
18
+ return this._client.post('/api/v3/internal/action_execution/logs', { body, ...options });
19
+ }
20
+ /**
21
+ * Search and retrieve action execution logs
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const tools = await client.logs.tools.list({ cursor: 0 });
26
+ * ```
27
+ */
28
+ list(body, options) {
29
+ return this._client.post('/api/v3/internal/action_execution/logs', { body, ...options });
30
+ }
31
+ }
32
+ exports.Tools = Tools;
33
+ //# sourceMappingURL=tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAwB,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,IAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AA1BD,sBA0BC"}
@@ -0,0 +1,29 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ export class Tools extends APIResource {
4
+ /**
5
+ * Search and retrieve action execution logs
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const tool = await client.logs.tools.retrieve({
10
+ * cursor: 0,
11
+ * });
12
+ * ```
13
+ */
14
+ retrieve(body, options) {
15
+ return this._client.post('/api/v3/internal/action_execution/logs', { body, ...options });
16
+ }
17
+ /**
18
+ * Search and retrieve action execution logs
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const tools = await client.logs.tools.list({ cursor: 0 });
23
+ * ```
24
+ */
25
+ list(body, options) {
26
+ return this._client.post('/api/v3/internal/action_execution/logs', { body, ...options });
27
+ }
28
+ }
29
+ //# sourceMappingURL=tools.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAwB,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,IAAoB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
@@ -0,0 +1,109 @@
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 Triggers extends APIResource {
5
+ /**
6
+ * Search and retrieve trigger event logs with advanced filtering capabilities
7
+ * including search parameters
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const triggers = await client.logs.triggers.list();
12
+ * ```
13
+ */
14
+ list(body?: TriggerListParams | null | undefined, options?: RequestOptions): APIPromise<TriggerListResponse>;
15
+ }
16
+ export interface TriggerListResponse {
17
+ nextCursor: string | null;
18
+ data?: Array<TriggerListResponse.Data>;
19
+ }
20
+ export declare namespace TriggerListResponse {
21
+ interface Data {
22
+ id: string;
23
+ appName: string;
24
+ clientId: string;
25
+ connectionId: string;
26
+ createdAt: string;
27
+ entityId: string;
28
+ meta: Data.Meta;
29
+ status: string;
30
+ /**
31
+ * Log entity type (trigger or action)
32
+ */
33
+ type: 'trigger' | 'action';
34
+ }
35
+ namespace Data {
36
+ interface Meta {
37
+ id: string;
38
+ clientId: string;
39
+ connectionId: string;
40
+ createdAt: string;
41
+ provider: string;
42
+ /**
43
+ * Log entity type (trigger or action)
44
+ */
45
+ type: 'trigger' | 'action';
46
+ updatedAt: string;
47
+ triggerClientError?: string;
48
+ triggerClientPayload?: string;
49
+ triggerClientResponse?: string;
50
+ triggerId?: string;
51
+ triggerName?: string;
52
+ triggerNanoId?: string;
53
+ triggerProviderPayload?: string;
54
+ }
55
+ }
56
+ }
57
+ export interface TriggerListParams {
58
+ cursor?: string | null;
59
+ entityId?: string;
60
+ /**
61
+ * Start time for logs (epoch timestamp in milliseconds)
62
+ */
63
+ from?: number | null;
64
+ /**
65
+ * Whether to include payload fields in the response. Set to false for faster list
66
+ * views.
67
+ */
68
+ include_payload?: boolean;
69
+ integrationId?: string;
70
+ /**
71
+ * The limit of trigger logs to return
72
+ */
73
+ limit?: number | null;
74
+ /**
75
+ * Search term to filter logs
76
+ */
77
+ search?: string;
78
+ /**
79
+ * Advanced search parameters for filtering logs
80
+ */
81
+ search_params?: Array<TriggerListParams.SearchParam>;
82
+ /**
83
+ * Filter logs by their status level
84
+ */
85
+ status?: 'all' | 'success' | 'error';
86
+ /**
87
+ * Return logs from the last N time units
88
+ */
89
+ time?: '5m' | '30m' | '6h' | '1d' | '1w' | '1month' | '1y';
90
+ /**
91
+ * End time for logs (epoch timestamp in milliseconds)
92
+ */
93
+ to?: number | null;
94
+ /**
95
+ * Filter logs by user ID
96
+ */
97
+ userId?: string;
98
+ }
99
+ export declare namespace TriggerListParams {
100
+ interface SearchParam {
101
+ field?: string;
102
+ operation?: string;
103
+ value?: string;
104
+ }
105
+ }
106
+ export declare namespace Triggers {
107
+ export { type TriggerListResponse as TriggerListResponse, type TriggerListParams as TriggerListParams };
108
+ }
109
+ //# sourceMappingURL=triggers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggers.d.mts","sourceRoot":"","sources":["../../src/resources/logs/triggers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;OAQG;IACH,IAAI,CACF,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAA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AC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAErD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,OAAO,CAAC;IAErC;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC;IAE3D;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,WAAW;QAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
@@ -0,0 +1,109 @@
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 Triggers extends APIResource {
5
+ /**
6
+ * Search and retrieve trigger event logs with advanced filtering capabilities
7
+ * including search parameters
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const triggers = await client.logs.triggers.list();
12
+ * ```
13
+ */
14
+ list(body?: TriggerListParams | null | undefined, options?: RequestOptions): APIPromise<TriggerListResponse>;
15
+ }
16
+ export interface TriggerListResponse {
17
+ nextCursor: string | null;
18
+ data?: Array<TriggerListResponse.Data>;
19
+ }
20
+ export declare namespace TriggerListResponse {
21
+ interface Data {
22
+ id: string;
23
+ appName: string;
24
+ clientId: string;
25
+ connectionId: string;
26
+ createdAt: string;
27
+ entityId: string;
28
+ meta: Data.Meta;
29
+ status: string;
30
+ /**
31
+ * Log entity type (trigger or action)
32
+ */
33
+ type: 'trigger' | 'action';
34
+ }
35
+ namespace Data {
36
+ interface Meta {
37
+ id: string;
38
+ clientId: string;
39
+ connectionId: string;
40
+ createdAt: string;
41
+ provider: string;
42
+ /**
43
+ * Log entity type (trigger or action)
44
+ */
45
+ type: 'trigger' | 'action';
46
+ updatedAt: string;
47
+ triggerClientError?: string;
48
+ triggerClientPayload?: string;
49
+ triggerClientResponse?: string;
50
+ triggerId?: string;
51
+ triggerName?: string;
52
+ triggerNanoId?: string;
53
+ triggerProviderPayload?: string;
54
+ }
55
+ }
56
+ }
57
+ export interface TriggerListParams {
58
+ cursor?: string | null;
59
+ entityId?: string;
60
+ /**
61
+ * Start time for logs (epoch timestamp in milliseconds)
62
+ */
63
+ from?: number | null;
64
+ /**
65
+ * Whether to include payload fields in the response. Set to false for faster list
66
+ * views.
67
+ */
68
+ include_payload?: boolean;
69
+ integrationId?: string;
70
+ /**
71
+ * The limit of trigger logs to return
72
+ */
73
+ limit?: number | null;
74
+ /**
75
+ * Search term to filter logs
76
+ */
77
+ search?: string;
78
+ /**
79
+ * Advanced search parameters for filtering logs
80
+ */
81
+ search_params?: Array<TriggerListParams.SearchParam>;
82
+ /**
83
+ * Filter logs by their status level
84
+ */
85
+ status?: 'all' | 'success' | 'error';
86
+ /**
87
+ * Return logs from the last N time units
88
+ */
89
+ time?: '5m' | '30m' | '6h' | '1d' | '1w' | '1month' | '1y';
90
+ /**
91
+ * End time for logs (epoch timestamp in milliseconds)
92
+ */
93
+ to?: number | null;
94
+ /**
95
+ * Filter logs by user ID
96
+ */
97
+ userId?: string;
98
+ }
99
+ export declare namespace TriggerListParams {
100
+ interface SearchParam {
101
+ field?: string;
102
+ operation?: string;
103
+ value?: string;
104
+ }
105
+ }
106
+ export declare namespace Triggers {
107
+ export { type TriggerListResponse as TriggerListResponse, type TriggerListParams as TriggerListParams };
108
+ }
109
+ //# sourceMappingURL=triggers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../src/resources/logs/triggers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;OAQG;IACH,IAAI,CACF,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,IAAI,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;CACxC;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,OAAO,EAAE,MAAM,CAAC;QAEhB,QAAQ,EAAE,MAAM,CAAC;QAEjB,YAAY,EAAE,MAAM,CAAC;QAErB,SAAS,EAAE,MAAM,CAAC;QAElB,QAAQ,EAAE,MAAM,CAAC;QAEjB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAEhB,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;KAC5B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,IAAI;YACnB,EAAE,EAAE,MAAM,CAAC;YAEX,QAAQ,EAAE,MAA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B;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,WAAW;QAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
@@ -0,0 +1,21 @@
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.Triggers = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ class Triggers extends resource_1.APIResource {
7
+ /**
8
+ * Search and retrieve trigger event logs with advanced filtering capabilities
9
+ * including search parameters
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const triggers = await client.logs.triggers.list();
14
+ * ```
15
+ */
16
+ list(body = {}, options) {
17
+ return this._client.post('/api/v3/internal/trigger/logs', { body, ...options });
18
+ }
19
+ }
20
+ exports.Triggers = Triggers;
21
+ //# sourceMappingURL=triggers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../src/resources/logs/triggers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;OAQG;IACH,IAAI,CACF,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAhBD,4BAgBC"}
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ export class Triggers extends APIResource {
4
+ /**
5
+ * Search and retrieve trigger event logs with advanced filtering capabilities
6
+ * including search parameters
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const triggers = await client.logs.triggers.list();
11
+ * ```
12
+ */
13
+ list(body = {}, options) {
14
+ return this._client.post('/api/v3/internal/trigger/logs', { body, ...options });
15
+ }
16
+ }
17
+ //# sourceMappingURL=triggers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggers.mjs","sourceRoot":"","sources":["../../src/resources/logs/triggers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;OAQG;IACH,IAAI,CACF,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./logs/index.mjs";
2
+ //# sourceMappingURL=logs.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.d.mts","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./logs/index.js";
2
+ //# sourceMappingURL=logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
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("./logs/index.js"), exports);
6
+ //# sourceMappingURL=logs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.js","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./logs/index.mjs";
3
+ //# sourceMappingURL=logs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.mjs","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,3 +1,3 @@
1
- export { Session, type SessionCreateResponse, type SessionRetrieveResponse, type SessionExecuteResponse, type SessionExecuteMetaResponse, type SessionLinkResponse, type SessionToolkitsResponse, type SessionToolsResponse, type SessionCreateParams, type SessionExecuteParams, type SessionExecuteMetaParams, type SessionLinkParams, type SessionToolkitsParams, type SessionToolsParams, } from "./session.mjs";
1
+ export { Session, type SessionCreateResponse, type SessionRetrieveResponse, type SessionExecuteResponse, type SessionExecuteMetaResponse, type SessionLinkResponse, type SessionSearchResponse, type SessionToolkitsResponse, type SessionToolsResponse, type SessionCreateParams, type SessionExecuteParams, type SessionExecuteMetaParams, type SessionLinkParams, type SessionSearchParams, type SessionToolkitsParams, type SessionToolsParams, } from "./session.mjs";
2
2
  export { ToolRouter, type ToolRouterCreateSessionResponse, type ToolRouterCreateSessionParams, } from "./tool-router.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/tool-router/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,GACxB;OACM,EACL,UAAU,EACV,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/tool-router/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,GACxB;OACM,EACL,UAAU,EACV,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC"}
@@ -1,3 +1,3 @@
1
- export { Session, type SessionCreateResponse, type SessionRetrieveResponse, type SessionExecuteResponse, type SessionExecuteMetaResponse, type SessionLinkResponse, type SessionToolkitsResponse, type SessionToolsResponse, type SessionCreateParams, type SessionExecuteParams, type SessionExecuteMetaParams, type SessionLinkParams, type SessionToolkitsParams, type SessionToolsParams, } from "./session.js";
1
+ export { Session, type SessionCreateResponse, type SessionRetrieveResponse, type SessionExecuteResponse, type SessionExecuteMetaResponse, type SessionLinkResponse, type SessionSearchResponse, type SessionToolkitsResponse, type SessionToolsResponse, type SessionCreateParams, type SessionExecuteParams, type SessionExecuteMetaParams, type SessionLinkParams, type SessionSearchParams, type SessionToolkitsParams, type SessionToolsParams, } from "./session.js";
2
2
  export { ToolRouter, type ToolRouterCreateSessionResponse, type ToolRouterCreateSessionParams, } from "./tool-router.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/tool-router/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,GACxB;OACM,EACL,UAAU,EACV,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/tool-router/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,GACxB;OACM,EACL,UAAU,EACV,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tool-router/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAemB;AAdjB,kGAAA,OAAO,OAAA;AAeT,gDAIuB;AAHrB,yGAAA,UAAU,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tool-router/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAiBmB;AAhBjB,kGAAA,OAAO,OAAA;AAiBT,gDAIuB;AAHrB,yGAAA,UAAU,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tool-router/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAcR;OACM,EACL,UAAU,GAGX"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tool-router/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAgBR;OACM,EACL,UAAU,GAGX"}