@composio/client 0.1.0-alpha.57 → 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 (98) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +1 -0
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +1 -0
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +3 -1
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +1 -0
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/logs/index.d.mts +4 -0
  20. package/resources/logs/index.d.mts.map +1 -0
  21. package/resources/logs/index.d.ts +4 -0
  22. package/resources/logs/index.d.ts.map +1 -0
  23. package/resources/logs/index.js +11 -0
  24. package/resources/logs/index.js.map +1 -0
  25. package/resources/logs/index.mjs +5 -0
  26. package/resources/logs/index.mjs.map +1 -0
  27. package/resources/logs/logs.d.mts +14 -0
  28. package/resources/logs/logs.d.mts.map +1 -0
  29. package/resources/logs/logs.d.ts +14 -0
  30. package/resources/logs/logs.d.ts.map +1 -0
  31. package/resources/logs/logs.js +21 -0
  32. package/resources/logs/logs.js.map +1 -0
  33. package/resources/logs/logs.mjs +16 -0
  34. package/resources/logs/logs.mjs.map +1 -0
  35. package/resources/logs/tools.d.mts +151 -0
  36. package/resources/logs/tools.d.mts.map +1 -0
  37. package/resources/logs/tools.d.ts +151 -0
  38. package/resources/logs/tools.d.ts.map +1 -0
  39. package/resources/logs/tools.js +33 -0
  40. package/resources/logs/tools.js.map +1 -0
  41. package/resources/logs/tools.mjs +29 -0
  42. package/resources/logs/tools.mjs.map +1 -0
  43. package/resources/logs/triggers.d.mts +109 -0
  44. package/resources/logs/triggers.d.mts.map +1 -0
  45. package/resources/logs/triggers.d.ts +109 -0
  46. package/resources/logs/triggers.d.ts.map +1 -0
  47. package/resources/logs/triggers.js +21 -0
  48. package/resources/logs/triggers.js.map +1 -0
  49. package/resources/logs/triggers.mjs +17 -0
  50. package/resources/logs/triggers.mjs.map +1 -0
  51. package/resources/logs.d.mts +2 -0
  52. package/resources/logs.d.mts.map +1 -0
  53. package/resources/logs.d.ts +2 -0
  54. package/resources/logs.d.ts.map +1 -0
  55. package/resources/logs.js +6 -0
  56. package/resources/logs.js.map +1 -0
  57. package/resources/logs.mjs +3 -0
  58. package/resources/logs.mjs.map +1 -0
  59. package/resources/tool-router/index.d.mts +1 -1
  60. package/resources/tool-router/index.d.mts.map +1 -1
  61. package/resources/tool-router/index.d.ts +1 -1
  62. package/resources/tool-router/index.d.ts.map +1 -1
  63. package/resources/tool-router/index.js.map +1 -1
  64. package/resources/tool-router/index.mjs.map +1 -1
  65. package/resources/tool-router/session.d.mts +293 -1
  66. package/resources/tool-router/session.d.mts.map +1 -1
  67. package/resources/tool-router/session.d.ts +293 -1
  68. package/resources/tool-router/session.d.ts.map +1 -1
  69. package/resources/tool-router/session.js +20 -0
  70. package/resources/tool-router/session.js.map +1 -1
  71. package/resources/tool-router/session.mjs +20 -0
  72. package/resources/tool-router/session.mjs.map +1 -1
  73. package/resources/tool-router/tool-router.d.mts +2 -2
  74. package/resources/tool-router/tool-router.d.mts.map +1 -1
  75. package/resources/tool-router/tool-router.d.ts +2 -2
  76. package/resources/tool-router/tool-router.d.ts.map +1 -1
  77. package/resources/tool-router/tool-router.js.map +1 -1
  78. package/resources/tool-router/tool-router.mjs.map +1 -1
  79. package/resources/tools.d.mts +8 -0
  80. package/resources/tools.d.mts.map +1 -1
  81. package/resources/tools.d.ts +8 -0
  82. package/resources/tools.d.ts.map +1 -1
  83. package/src/client.ts +5 -0
  84. package/src/resources/index.ts +1 -0
  85. package/src/resources/logs/index.ts +11 -0
  86. package/src/resources/logs/logs.ts +31 -0
  87. package/src/resources/logs/tools.ts +214 -0
  88. package/src/resources/logs/triggers.ts +157 -0
  89. package/src/resources/logs.ts +3 -0
  90. package/src/resources/tool-router/index.ts +2 -0
  91. package/src/resources/tool-router/session.ts +340 -0
  92. package/src/resources/tool-router/tool-router.ts +4 -0
  93. package/src/resources/tools.ts +10 -0
  94. package/src/version.ts +1 -1
  95. package/version.d.mts +1 -1
  96. package/version.d.ts +1 -1
  97. package/version.js +1 -1
  98. package/version.mjs +1 -1
@@ -0,0 +1,16 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as ToolsAPI from "./tools.mjs";
4
+ import { Tools } from "./tools.mjs";
5
+ import * as TriggersAPI from "./triggers.mjs";
6
+ import { Triggers } from "./triggers.mjs";
7
+ export class Logs extends APIResource {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.triggers = new TriggersAPI.Triggers(this._client);
11
+ this.tools = new ToolsAPI.Tools(this._client);
12
+ }
13
+ }
14
+ Logs.Triggers = Triggers;
15
+ Logs.Tools = Tools;
16
+ //# sourceMappingURL=logs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.mjs","sourceRoot":"","sources":["../../src/resources/logs/logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAA8E,KAAK,EAAE;OACrF,KAAK,WAAW;OAChB,EAA0C,QAAQ,EAAE;AAE3D,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC"}
@@ -0,0 +1,151 @@
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 Tools extends APIResource {
5
+ /**
6
+ * Search and retrieve action execution logs
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const tool = await client.logs.tools.retrieve({
11
+ * cursor: 0,
12
+ * });
13
+ * ```
14
+ */
15
+ retrieve(body: ToolRetrieveParams, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
16
+ /**
17
+ * Search and retrieve action execution logs
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const tools = await client.logs.tools.list({ cursor: 0 });
22
+ * ```
23
+ */
24
+ list(body: ToolListParams, options?: RequestOptions): APIPromise<ToolListResponse>;
25
+ }
26
+ export interface ToolRetrieveResponse {
27
+ data: Array<ToolRetrieveResponse.Data>;
28
+ nextCursor: number | null;
29
+ }
30
+ export declare namespace ToolRetrieveResponse {
31
+ interface Data {
32
+ id: string;
33
+ actionKey: string;
34
+ app: Data.App;
35
+ appKey: string;
36
+ connectedAccountId: string;
37
+ createdAt: number;
38
+ entityId: string;
39
+ executionTime: number;
40
+ /**
41
+ * @deprecated
42
+ */
43
+ minimalResponse: string;
44
+ status: 'success' | 'failed';
45
+ metadata?: Data.Metadata;
46
+ }
47
+ namespace Data {
48
+ interface App {
49
+ icon: string;
50
+ name: string;
51
+ }
52
+ interface Metadata {
53
+ recipe_id?: string;
54
+ }
55
+ }
56
+ }
57
+ export interface ToolListResponse {
58
+ data: Array<ToolListResponse.Data>;
59
+ nextCursor: number | null;
60
+ }
61
+ export declare namespace ToolListResponse {
62
+ interface Data {
63
+ id: string;
64
+ actionKey: string;
65
+ app: Data.App;
66
+ appKey: string;
67
+ connectedAccountId: string;
68
+ createdAt: number;
69
+ entityId: string;
70
+ executionTime: number;
71
+ /**
72
+ * @deprecated
73
+ */
74
+ minimalResponse: string;
75
+ status: 'success' | 'failed';
76
+ metadata?: Data.Metadata;
77
+ }
78
+ namespace Data {
79
+ interface App {
80
+ icon: string;
81
+ name: string;
82
+ }
83
+ interface Metadata {
84
+ recipe_id?: string;
85
+ }
86
+ }
87
+ }
88
+ export interface ToolRetrieveParams {
89
+ /**
90
+ * cursor_that_can_be_used_to_paginate_through_the_logs
91
+ */
92
+ cursor: number | null;
93
+ /**
94
+ * whether_the_search_is_case_sensitive_or_not
95
+ */
96
+ case_sensitive?: boolean | null;
97
+ /**
98
+ * start_time_of_the_logs_in_epoch_time
99
+ */
100
+ from?: number;
101
+ /**
102
+ * number_of_logs_to_return
103
+ */
104
+ limit?: number;
105
+ search_params?: Array<ToolRetrieveParams.SearchParam>;
106
+ /**
107
+ * end_time_of_the_logs_in_epoch_time
108
+ */
109
+ to?: number;
110
+ }
111
+ export declare namespace ToolRetrieveParams {
112
+ interface SearchParam {
113
+ field?: string;
114
+ operation?: string;
115
+ value?: string;
116
+ }
117
+ }
118
+ export interface ToolListParams {
119
+ /**
120
+ * cursor_that_can_be_used_to_paginate_through_the_logs
121
+ */
122
+ cursor: number | null;
123
+ /**
124
+ * whether_the_search_is_case_sensitive_or_not
125
+ */
126
+ case_sensitive?: boolean | null;
127
+ /**
128
+ * start_time_of_the_logs_in_epoch_time
129
+ */
130
+ from?: number;
131
+ /**
132
+ * number_of_logs_to_return
133
+ */
134
+ limit?: number;
135
+ search_params?: Array<ToolListParams.SearchParam>;
136
+ /**
137
+ * end_time_of_the_logs_in_epoch_time
138
+ */
139
+ to?: number;
140
+ }
141
+ export declare namespace ToolListParams {
142
+ interface SearchParam {
143
+ field?: string;
144
+ operation?: string;
145
+ value?: string;
146
+ }
147
+ }
148
+ export declare namespace Tools {
149
+ export { type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type ToolRetrieveParams as ToolRetrieveParams, type ToolListParams as ToolListParams, };
150
+ }
151
+ //# sourceMappingURL=tools.d.mts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C;QAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAElD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,yBAAiB,cAAc,CAAC;IAC9B,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,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
@@ -0,0 +1,151 @@
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 Tools extends APIResource {
5
+ /**
6
+ * Search and retrieve action execution logs
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const tool = await client.logs.tools.retrieve({
11
+ * cursor: 0,
12
+ * });
13
+ * ```
14
+ */
15
+ retrieve(body: ToolRetrieveParams, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
16
+ /**
17
+ * Search and retrieve action execution logs
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const tools = await client.logs.tools.list({ cursor: 0 });
22
+ * ```
23
+ */
24
+ list(body: ToolListParams, options?: RequestOptions): APIPromise<ToolListResponse>;
25
+ }
26
+ export interface ToolRetrieveResponse {
27
+ data: Array<ToolRetrieveResponse.Data>;
28
+ nextCursor: number | null;
29
+ }
30
+ export declare namespace ToolRetrieveResponse {
31
+ interface Data {
32
+ id: string;
33
+ actionKey: string;
34
+ app: Data.App;
35
+ appKey: string;
36
+ connectedAccountId: string;
37
+ createdAt: number;
38
+ entityId: string;
39
+ executionTime: number;
40
+ /**
41
+ * @deprecated
42
+ */
43
+ minimalResponse: string;
44
+ status: 'success' | 'failed';
45
+ metadata?: Data.Metadata;
46
+ }
47
+ namespace Data {
48
+ interface App {
49
+ icon: string;
50
+ name: string;
51
+ }
52
+ interface Metadata {
53
+ recipe_id?: string;
54
+ }
55
+ }
56
+ }
57
+ export interface ToolListResponse {
58
+ data: Array<ToolListResponse.Data>;
59
+ nextCursor: number | null;
60
+ }
61
+ export declare namespace ToolListResponse {
62
+ interface Data {
63
+ id: string;
64
+ actionKey: string;
65
+ app: Data.App;
66
+ appKey: string;
67
+ connectedAccountId: string;
68
+ createdAt: number;
69
+ entityId: string;
70
+ executionTime: number;
71
+ /**
72
+ * @deprecated
73
+ */
74
+ minimalResponse: string;
75
+ status: 'success' | 'failed';
76
+ metadata?: Data.Metadata;
77
+ }
78
+ namespace Data {
79
+ interface App {
80
+ icon: string;
81
+ name: string;
82
+ }
83
+ interface Metadata {
84
+ recipe_id?: string;
85
+ }
86
+ }
87
+ }
88
+ export interface ToolRetrieveParams {
89
+ /**
90
+ * cursor_that_can_be_used_to_paginate_through_the_logs
91
+ */
92
+ cursor: number | null;
93
+ /**
94
+ * whether_the_search_is_case_sensitive_or_not
95
+ */
96
+ case_sensitive?: boolean | null;
97
+ /**
98
+ * start_time_of_the_logs_in_epoch_time
99
+ */
100
+ from?: number;
101
+ /**
102
+ * number_of_logs_to_return
103
+ */
104
+ limit?: number;
105
+ search_params?: Array<ToolRetrieveParams.SearchParam>;
106
+ /**
107
+ * end_time_of_the_logs_in_epoch_time
108
+ */
109
+ to?: number;
110
+ }
111
+ export declare namespace ToolRetrieveParams {
112
+ interface SearchParam {
113
+ field?: string;
114
+ operation?: string;
115
+ value?: string;
116
+ }
117
+ }
118
+ export interface ToolListParams {
119
+ /**
120
+ * cursor_that_can_be_used_to_paginate_through_the_logs
121
+ */
122
+ cursor: number | null;
123
+ /**
124
+ * whether_the_search_is_case_sensitive_or_not
125
+ */
126
+ case_sensitive?: boolean | null;
127
+ /**
128
+ * start_time_of_the_logs_in_epoch_time
129
+ */
130
+ from?: number;
131
+ /**
132
+ * number_of_logs_to_return
133
+ */
134
+ limit?: number;
135
+ search_params?: Array<ToolListParams.SearchParam>;
136
+ /**
137
+ * end_time_of_the_logs_in_epoch_time
138
+ */
139
+ to?: number;
140
+ }
141
+ export declare namespace ToolListParams {
142
+ interface SearchParam {
143
+ field?: string;
144
+ operation?: string;
145
+ value?: string;
146
+ }
147
+ }
148
+ export declare namespace Tools {
149
+ export { type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type ToolRetrieveParams as ToolRetrieveParams, type ToolListParams as ToolListParams, };
150
+ }
151
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/logs/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI9F;;;;;;;OAOG;IACH,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,oB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AC,EAAE,MAAM,CAAC;QAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
@@ -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,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,M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ErD;;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/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
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