@zavudev/sdk 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +11 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -5
- package/client.d.ts.map +1 -1
- package/client.js +7 -1
- package/client.js.map +1 -1
- package/client.mjs +7 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/addresses.d.mts +104 -0
- package/resources/addresses.d.mts.map +1 -0
- package/resources/addresses.d.ts +104 -0
- package/resources/addresses.d.ts.map +1 -0
- package/resources/addresses.js +72 -0
- package/resources/addresses.js.map +1 -0
- package/resources/addresses.mjs +68 -0
- package/resources/addresses.mjs.map +1 -0
- package/resources/broadcasts/broadcasts.d.mts +27 -5
- package/resources/broadcasts/broadcasts.d.mts.map +1 -1
- package/resources/broadcasts/broadcasts.d.ts +27 -5
- package/resources/broadcasts/broadcasts.d.ts.map +1 -1
- package/resources/broadcasts/broadcasts.js +15 -0
- package/resources/broadcasts/broadcasts.js.map +1 -1
- package/resources/broadcasts/broadcasts.mjs +15 -0
- package/resources/broadcasts/broadcasts.mjs.map +1 -1
- package/resources/broadcasts/index.d.mts +1 -1
- package/resources/broadcasts/index.d.mts.map +1 -1
- package/resources/broadcasts/index.d.ts +1 -1
- package/resources/broadcasts/index.d.ts.map +1 -1
- package/resources/broadcasts/index.js.map +1 -1
- package/resources/broadcasts/index.mjs.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/phone-numbers.d.mts +67 -1
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +67 -1
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.js +15 -0
- package/resources/phone-numbers.js.map +1 -1
- package/resources/phone-numbers.mjs +15 -0
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/regulatory-documents.d.mts +114 -0
- package/resources/regulatory-documents.d.mts.map +1 -0
- package/resources/regulatory-documents.d.ts +114 -0
- package/resources/regulatory-documents.d.ts.map +1 -0
- package/resources/regulatory-documents.js +84 -0
- package/resources/regulatory-documents.js.map +1 -0
- package/resources/regulatory-documents.mjs +80 -0
- package/resources/regulatory-documents.mjs.map +1 -0
- package/resources/senders/agent/agent.d.mts +230 -0
- package/resources/senders/agent/agent.d.mts.map +1 -0
- package/resources/senders/agent/agent.d.ts +230 -0
- package/resources/senders/agent/agent.d.ts.map +1 -0
- package/resources/senders/agent/agent.js +105 -0
- package/resources/senders/agent/agent.js.map +1 -0
- package/resources/senders/agent/agent.mjs +100 -0
- package/resources/senders/agent/agent.mjs.map +1 -0
- package/resources/senders/agent/executions.d.mts +32 -0
- package/resources/senders/agent/executions.d.mts.map +1 -0
- package/resources/senders/agent/executions.d.ts +32 -0
- package/resources/senders/agent/executions.d.ts.map +1 -0
- package/resources/senders/agent/executions.js +27 -0
- package/resources/senders/agent/executions.js.map +1 -0
- package/resources/senders/agent/executions.mjs +23 -0
- package/resources/senders/agent/executions.mjs.map +1 -0
- package/resources/senders/agent/flows.d.mts +301 -0
- package/resources/senders/agent/flows.d.mts.map +1 -0
- package/resources/senders/agent/flows.d.ts +301 -0
- package/resources/senders/agent/flows.d.ts.map +1 -0
- package/resources/senders/agent/flows.js +135 -0
- package/resources/senders/agent/flows.js.map +1 -0
- package/resources/senders/agent/flows.mjs +131 -0
- package/resources/senders/agent/flows.mjs.map +1 -0
- package/resources/senders/agent/index.d.mts +6 -0
- package/resources/senders/agent/index.d.mts.map +1 -0
- package/resources/senders/agent/index.d.ts +6 -0
- package/resources/senders/agent/index.d.ts.map +1 -0
- package/resources/senders/agent/index.js +15 -0
- package/resources/senders/agent/index.js.map +1 -0
- package/resources/senders/agent/index.mjs +7 -0
- package/resources/senders/agent/index.mjs.map +1 -0
- package/resources/senders/agent/knowledge-bases/documents.d.mts +86 -0
- package/resources/senders/agent/knowledge-bases/documents.d.mts.map +1 -0
- package/resources/senders/agent/knowledge-bases/documents.d.ts +86 -0
- package/resources/senders/agent/knowledge-bases/documents.d.ts.map +1 -0
- package/resources/senders/agent/knowledge-bases/documents.js +70 -0
- package/resources/senders/agent/knowledge-bases/documents.js.map +1 -0
- package/resources/senders/agent/knowledge-bases/documents.mjs +66 -0
- package/resources/senders/agent/knowledge-bases/documents.mjs.map +1 -0
- package/resources/senders/agent/knowledge-bases/index.d.mts +3 -0
- package/resources/senders/agent/knowledge-bases/index.d.mts.map +1 -0
- package/resources/senders/agent/knowledge-bases/index.d.ts +3 -0
- package/resources/senders/agent/knowledge-bases/index.d.ts.map +1 -0
- package/resources/senders/agent/knowledge-bases/index.js +9 -0
- package/resources/senders/agent/knowledge-bases/index.js.map +1 -0
- package/resources/senders/agent/knowledge-bases/index.mjs +4 -0
- package/resources/senders/agent/knowledge-bases/index.mjs.map +1 -0
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts +147 -0
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts.map +1 -0
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts +147 -0
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts.map +1 -0
- package/resources/senders/agent/knowledge-bases/knowledge-bases.js +106 -0
- package/resources/senders/agent/knowledge-bases/knowledge-bases.js.map +1 -0
- package/resources/senders/agent/knowledge-bases/knowledge-bases.mjs +101 -0
- package/resources/senders/agent/knowledge-bases/knowledge-bases.mjs.map +1 -0
- package/resources/senders/agent/knowledge-bases.d.mts +2 -0
- package/resources/senders/agent/knowledge-bases.d.mts.map +1 -0
- package/resources/senders/agent/knowledge-bases.d.ts +2 -0
- package/resources/senders/agent/knowledge-bases.d.ts.map +1 -0
- package/resources/senders/agent/knowledge-bases.js +6 -0
- package/resources/senders/agent/knowledge-bases.js.map +1 -0
- package/resources/senders/agent/knowledge-bases.mjs +3 -0
- package/resources/senders/agent/knowledge-bases.mjs.map +1 -0
- package/resources/senders/agent/tools.d.mts +242 -0
- package/resources/senders/agent/tools.d.mts.map +1 -0
- package/resources/senders/agent/tools.d.ts +242 -0
- package/resources/senders/agent/tools.d.ts.map +1 -0
- package/resources/senders/agent/tools.js +126 -0
- package/resources/senders/agent/tools.js.map +1 -0
- package/resources/senders/agent/tools.mjs +122 -0
- package/resources/senders/agent/tools.mjs.map +1 -0
- package/resources/senders/agent.d.mts +2 -0
- package/resources/senders/agent.d.mts.map +1 -0
- package/resources/senders/agent.d.ts +2 -0
- package/resources/senders/agent.d.ts.map +1 -0
- package/resources/senders/agent.js +6 -0
- package/resources/senders/agent.js.map +1 -0
- package/resources/senders/agent.mjs +3 -0
- package/resources/senders/agent.mjs.map +1 -0
- package/resources/senders/index.d.mts +3 -0
- package/resources/senders/index.d.mts.map +1 -0
- package/resources/senders/index.d.ts +3 -0
- package/resources/senders/index.d.ts.map +1 -0
- package/resources/senders/index.js +9 -0
- package/resources/senders/index.js.map +1 -0
- package/resources/senders/index.mjs +4 -0
- package/resources/senders/index.mjs.map +1 -0
- package/resources/senders/senders.d.mts +342 -0
- package/resources/senders/senders.d.mts.map +1 -0
- package/resources/senders/senders.d.ts +342 -0
- package/resources/senders/senders.d.ts.map +1 -0
- package/resources/senders/senders.js +150 -0
- package/resources/senders/senders.js.map +1 -0
- package/resources/senders/senders.mjs +145 -0
- package/resources/senders/senders.mjs.map +1 -0
- package/resources/senders.d.mts +1 -337
- package/resources/senders.d.mts.map +1 -1
- package/resources/senders.d.ts +1 -337
- package/resources/senders.d.ts.map +1 -1
- package/resources/senders.js +2 -138
- package/resources/senders.js.map +1 -1
- package/resources/senders.mjs +1 -136
- package/resources/senders.mjs.map +1 -1
- package/src/client.ts +79 -17
- package/src/resources/addresses.ts +160 -0
- package/src/resources/broadcasts/broadcasts.ts +37 -4
- package/src/resources/broadcasts/index.ts +2 -0
- package/src/resources/index.ts +29 -1
- package/src/resources/phone-numbers.ts +97 -0
- package/src/resources/regulatory-documents.ts +184 -0
- package/src/resources/senders/agent/agent.ts +417 -0
- package/src/resources/senders/agent/executions.ts +48 -0
- package/src/resources/senders/agent/flows.ts +409 -0
- package/src/resources/senders/agent/index.ts +60 -0
- package/src/resources/senders/agent/knowledge-bases/documents.ts +133 -0
- package/src/resources/senders/agent/knowledge-bases/index.ts +24 -0
- package/src/resources/senders/agent/knowledge-bases/knowledge-bases.ts +251 -0
- package/src/resources/senders/agent/knowledge-bases.ts +3 -0
- package/src/resources/senders/agent/tools.ts +334 -0
- package/src/resources/senders/agent.ts +3 -0
- package/src/resources/senders/index.ts +32 -0
- package/src/resources/senders/senders.ts +506 -0
- package/src/resources/senders.ts +1 -476
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
|
+
export declare class Tools extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new tool for an agent. Tools allow the agent to call external webhooks.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const tool = await client.senders.agent.tools.create(
|
|
12
|
+
* 'senderId',
|
|
13
|
+
* {
|
|
14
|
+
* description: 'Get the status of a customer order',
|
|
15
|
+
* name: 'get_order_status',
|
|
16
|
+
* parameters: {
|
|
17
|
+
* type: 'object',
|
|
18
|
+
* properties: {
|
|
19
|
+
* order_id: {
|
|
20
|
+
* type: 'string',
|
|
21
|
+
* description: 'The order ID to look up',
|
|
22
|
+
* },
|
|
23
|
+
* },
|
|
24
|
+
* required: ['order_id'],
|
|
25
|
+
* },
|
|
26
|
+
* webhookUrl:
|
|
27
|
+
* 'https://api.example.com/webhooks/order-status',
|
|
28
|
+
* webhookSecret: 'whsec_...',
|
|
29
|
+
* },
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
create(senderID: string, body: ToolCreateParams, options?: RequestOptions): APIPromise<ToolCreateResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Get a specific tool.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const tool = await client.senders.agent.tools.retrieve(
|
|
40
|
+
* 'toolId',
|
|
41
|
+
* { senderId: 'senderId' },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
retrieve(toolID: string, params: ToolRetrieveParams, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Update a tool.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const tool = await client.senders.agent.tools.update(
|
|
52
|
+
* 'toolId',
|
|
53
|
+
* { senderId: 'senderId' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
update(toolID: string, params: ToolUpdateParams, options?: RequestOptions): APIPromise<ToolUpdateResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* List tools for an agent.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* // Automatically fetches more pages as needed.
|
|
64
|
+
* for await (const agentTool of client.senders.agent.tools.list(
|
|
65
|
+
* 'senderId',
|
|
66
|
+
* )) {
|
|
67
|
+
* // ...
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
list(senderID: string, query?: ToolListParams | null | undefined, options?: RequestOptions): PagePromise<AgentToolsCursor, AgentTool>;
|
|
72
|
+
/**
|
|
73
|
+
* Delete a tool.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* await client.senders.agent.tools.delete('toolId', {
|
|
78
|
+
* senderId: 'senderId',
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
delete(toolID: string, params: ToolDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Test a tool by triggering its webhook with test parameters.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* const response = await client.senders.agent.tools.test(
|
|
89
|
+
* 'toolId',
|
|
90
|
+
* {
|
|
91
|
+
* senderId: 'senderId',
|
|
92
|
+
* testParams: { order_id: 'ORD-12345' },
|
|
93
|
+
* },
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
test(toolID: string, params: ToolTestParams, options?: RequestOptions): APIPromise<ToolTestResponse>;
|
|
98
|
+
}
|
|
99
|
+
export type AgentToolsCursor = Cursor<AgentTool>;
|
|
100
|
+
export interface AgentTool {
|
|
101
|
+
id: string;
|
|
102
|
+
agentId: string;
|
|
103
|
+
createdAt: string;
|
|
104
|
+
/**
|
|
105
|
+
* Description for the LLM to understand when to use this tool.
|
|
106
|
+
*/
|
|
107
|
+
description: string;
|
|
108
|
+
enabled: boolean;
|
|
109
|
+
name: string;
|
|
110
|
+
parameters: AgentTool.Parameters;
|
|
111
|
+
updatedAt: string;
|
|
112
|
+
/**
|
|
113
|
+
* HTTPS URL to call when the tool is executed.
|
|
114
|
+
*/
|
|
115
|
+
webhookUrl: string;
|
|
116
|
+
}
|
|
117
|
+
export declare namespace AgentTool {
|
|
118
|
+
interface Parameters {
|
|
119
|
+
properties: {
|
|
120
|
+
[key: string]: Parameters.Properties;
|
|
121
|
+
};
|
|
122
|
+
required: Array<string>;
|
|
123
|
+
type: 'object';
|
|
124
|
+
}
|
|
125
|
+
namespace Parameters {
|
|
126
|
+
interface Properties {
|
|
127
|
+
description?: string;
|
|
128
|
+
type?: string;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export interface ToolCreateResponse {
|
|
133
|
+
tool: AgentTool;
|
|
134
|
+
}
|
|
135
|
+
export interface ToolRetrieveResponse {
|
|
136
|
+
tool: AgentTool;
|
|
137
|
+
}
|
|
138
|
+
export interface ToolUpdateResponse {
|
|
139
|
+
tool: AgentTool;
|
|
140
|
+
}
|
|
141
|
+
export interface ToolTestResponse {
|
|
142
|
+
scheduled: boolean;
|
|
143
|
+
}
|
|
144
|
+
export interface ToolCreateParams {
|
|
145
|
+
description: string;
|
|
146
|
+
name: string;
|
|
147
|
+
parameters: ToolCreateParams.Parameters;
|
|
148
|
+
/**
|
|
149
|
+
* Must be HTTPS.
|
|
150
|
+
*/
|
|
151
|
+
webhookUrl: string;
|
|
152
|
+
enabled?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Optional secret for webhook signature verification.
|
|
155
|
+
*/
|
|
156
|
+
webhookSecret?: string;
|
|
157
|
+
}
|
|
158
|
+
export declare namespace ToolCreateParams {
|
|
159
|
+
interface Parameters {
|
|
160
|
+
properties: {
|
|
161
|
+
[key: string]: Parameters.Properties;
|
|
162
|
+
};
|
|
163
|
+
required: Array<string>;
|
|
164
|
+
type: 'object';
|
|
165
|
+
}
|
|
166
|
+
namespace Parameters {
|
|
167
|
+
interface Properties {
|
|
168
|
+
description?: string;
|
|
169
|
+
type?: string;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
export interface ToolRetrieveParams {
|
|
174
|
+
senderId: string;
|
|
175
|
+
}
|
|
176
|
+
export interface ToolUpdateParams {
|
|
177
|
+
/**
|
|
178
|
+
* Path param:
|
|
179
|
+
*/
|
|
180
|
+
senderId: string;
|
|
181
|
+
/**
|
|
182
|
+
* Body param:
|
|
183
|
+
*/
|
|
184
|
+
description?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Body param:
|
|
187
|
+
*/
|
|
188
|
+
enabled?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Body param:
|
|
191
|
+
*/
|
|
192
|
+
name?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Body param:
|
|
195
|
+
*/
|
|
196
|
+
parameters?: ToolUpdateParams.Parameters;
|
|
197
|
+
/**
|
|
198
|
+
* Body param:
|
|
199
|
+
*/
|
|
200
|
+
webhookSecret?: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Body param:
|
|
203
|
+
*/
|
|
204
|
+
webhookUrl?: string;
|
|
205
|
+
}
|
|
206
|
+
export declare namespace ToolUpdateParams {
|
|
207
|
+
interface Parameters {
|
|
208
|
+
properties: {
|
|
209
|
+
[key: string]: Parameters.Properties;
|
|
210
|
+
};
|
|
211
|
+
required: Array<string>;
|
|
212
|
+
type: 'object';
|
|
213
|
+
}
|
|
214
|
+
namespace Parameters {
|
|
215
|
+
interface Properties {
|
|
216
|
+
description?: string;
|
|
217
|
+
type?: string;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
export interface ToolListParams extends CursorParams {
|
|
222
|
+
enabled?: boolean;
|
|
223
|
+
}
|
|
224
|
+
export interface ToolDeleteParams {
|
|
225
|
+
senderId: string;
|
|
226
|
+
}
|
|
227
|
+
export interface ToolTestParams {
|
|
228
|
+
/**
|
|
229
|
+
* Path param:
|
|
230
|
+
*/
|
|
231
|
+
senderId: string;
|
|
232
|
+
/**
|
|
233
|
+
* Body param: Parameters to pass to the tool for testing.
|
|
234
|
+
*/
|
|
235
|
+
testParams: {
|
|
236
|
+
[key: string]: unknown;
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
export declare namespace Tools {
|
|
240
|
+
export { type AgentTool as AgentTool, type ToolCreateResponse as ToolCreateResponse, type ToolRetrieveResponse as ToolRetrieveResponse, type ToolUpdateResponse as ToolUpdateResponse, type ToolTestResponse as ToolTestResponse, type AgentToolsCursor as AgentToolsCursor, type ToolCreateParams as ToolCreateParams, type ToolRetrieveParams as ToolRetrieveParams, type ToolUpdateParams as ToolUpdateParams, type ToolListParams as ToolListParams, type ToolDeleteParams as ToolDeleteParams, type ToolTestParams as ToolTestParams, };
|
|
241
|
+
}
|
|
242
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/resources/senders/agent/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAE1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1G;;;;;;;;;;OAUG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAKnC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAK1G;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gBAAgB,EAAE,SAAS,CAAC;IAO3C;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAA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IAAI,EAAE,QAAQ,CAAC;KAChB;IAED,UAAiB,UAAU,CAAC;QAC1B,UAAiB,UAAU;YACzB,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB,IAAI,CAAC,EAAE,MAAM,CAAC;SACf;KACF;CACF;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -0,0 +1,126 @@
|
|
|
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
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
8
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
9
|
+
class Tools extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new tool for an agent. Tools allow the agent to call external webhooks.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const tool = await client.senders.agent.tools.create(
|
|
16
|
+
* 'senderId',
|
|
17
|
+
* {
|
|
18
|
+
* description: 'Get the status of a customer order',
|
|
19
|
+
* name: 'get_order_status',
|
|
20
|
+
* parameters: {
|
|
21
|
+
* type: 'object',
|
|
22
|
+
* properties: {
|
|
23
|
+
* order_id: {
|
|
24
|
+
* type: 'string',
|
|
25
|
+
* description: 'The order ID to look up',
|
|
26
|
+
* },
|
|
27
|
+
* },
|
|
28
|
+
* required: ['order_id'],
|
|
29
|
+
* },
|
|
30
|
+
* webhookUrl:
|
|
31
|
+
* 'https://api.example.com/webhooks/order-status',
|
|
32
|
+
* webhookSecret: 'whsec_...',
|
|
33
|
+
* },
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
create(senderID, body, options) {
|
|
38
|
+
return this._client.post((0, path_1.path) `/v1/senders/${senderID}/agent/tools`, { body, ...options });
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Get a specific tool.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const tool = await client.senders.agent.tools.retrieve(
|
|
46
|
+
* 'toolId',
|
|
47
|
+
* { senderId: 'senderId' },
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
retrieve(toolID, params, options) {
|
|
52
|
+
const { senderId } = params;
|
|
53
|
+
return this._client.get((0, path_1.path) `/v1/senders/${senderId}/agent/tools/${toolID}`, options);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Update a tool.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const tool = await client.senders.agent.tools.update(
|
|
61
|
+
* 'toolId',
|
|
62
|
+
* { senderId: 'senderId' },
|
|
63
|
+
* );
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
update(toolID, params, options) {
|
|
67
|
+
const { senderId, ...body } = params;
|
|
68
|
+
return this._client.patch((0, path_1.path) `/v1/senders/${senderId}/agent/tools/${toolID}`, { body, ...options });
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* List tools for an agent.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* // Automatically fetches more pages as needed.
|
|
76
|
+
* for await (const agentTool of client.senders.agent.tools.list(
|
|
77
|
+
* 'senderId',
|
|
78
|
+
* )) {
|
|
79
|
+
* // ...
|
|
80
|
+
* }
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
list(senderID, query = {}, options) {
|
|
84
|
+
return this._client.getAPIList((0, path_1.path) `/v1/senders/${senderID}/agent/tools`, (pagination_1.Cursor), {
|
|
85
|
+
query,
|
|
86
|
+
...options,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Delete a tool.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* await client.senders.agent.tools.delete('toolId', {
|
|
95
|
+
* senderId: 'senderId',
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
delete(toolID, params, options) {
|
|
100
|
+
const { senderId } = params;
|
|
101
|
+
return this._client.delete((0, path_1.path) `/v1/senders/${senderId}/agent/tools/${toolID}`, {
|
|
102
|
+
...options,
|
|
103
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Test a tool by triggering its webhook with test parameters.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* const response = await client.senders.agent.tools.test(
|
|
112
|
+
* 'toolId',
|
|
113
|
+
* {
|
|
114
|
+
* senderId: 'senderId',
|
|
115
|
+
* testParams: { order_id: 'ORD-12345' },
|
|
116
|
+
* },
|
|
117
|
+
* );
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
test(toolID, params, options) {
|
|
121
|
+
const { senderId, ...body } = params;
|
|
122
|
+
return this._client.post((0, path_1.path) `/v1/senders/${senderId}/agent/tools/${toolID}/test`, { body, ...options });
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.Tools = Tools;
|
|
126
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/resources/senders/agent/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,4DAAkF;AAClF,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,MAAM,CAAC,QAAgB,EAAE,IAAsB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,gBAAgB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,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
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { Cursor } from "../../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
export class Tools extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a new tool for an agent. Tools allow the agent to call external webhooks.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const tool = await client.senders.agent.tools.create(
|
|
13
|
+
* 'senderId',
|
|
14
|
+
* {
|
|
15
|
+
* description: 'Get the status of a customer order',
|
|
16
|
+
* name: 'get_order_status',
|
|
17
|
+
* parameters: {
|
|
18
|
+
* type: 'object',
|
|
19
|
+
* properties: {
|
|
20
|
+
* order_id: {
|
|
21
|
+
* type: 'string',
|
|
22
|
+
* description: 'The order ID to look up',
|
|
23
|
+
* },
|
|
24
|
+
* },
|
|
25
|
+
* required: ['order_id'],
|
|
26
|
+
* },
|
|
27
|
+
* webhookUrl:
|
|
28
|
+
* 'https://api.example.com/webhooks/order-status',
|
|
29
|
+
* webhookSecret: 'whsec_...',
|
|
30
|
+
* },
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
create(senderID, body, options) {
|
|
35
|
+
return this._client.post(path `/v1/senders/${senderID}/agent/tools`, { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Get a specific tool.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const tool = await client.senders.agent.tools.retrieve(
|
|
43
|
+
* 'toolId',
|
|
44
|
+
* { senderId: 'senderId' },
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
retrieve(toolID, params, options) {
|
|
49
|
+
const { senderId } = params;
|
|
50
|
+
return this._client.get(path `/v1/senders/${senderId}/agent/tools/${toolID}`, options);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Update a tool.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const tool = await client.senders.agent.tools.update(
|
|
58
|
+
* 'toolId',
|
|
59
|
+
* { senderId: 'senderId' },
|
|
60
|
+
* );
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
update(toolID, params, options) {
|
|
64
|
+
const { senderId, ...body } = params;
|
|
65
|
+
return this._client.patch(path `/v1/senders/${senderId}/agent/tools/${toolID}`, { body, ...options });
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* List tools for an agent.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* // Automatically fetches more pages as needed.
|
|
73
|
+
* for await (const agentTool of client.senders.agent.tools.list(
|
|
74
|
+
* 'senderId',
|
|
75
|
+
* )) {
|
|
76
|
+
* // ...
|
|
77
|
+
* }
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
list(senderID, query = {}, options) {
|
|
81
|
+
return this._client.getAPIList(path `/v1/senders/${senderID}/agent/tools`, (Cursor), {
|
|
82
|
+
query,
|
|
83
|
+
...options,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Delete a tool.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* await client.senders.agent.tools.delete('toolId', {
|
|
92
|
+
* senderId: 'senderId',
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
delete(toolID, params, options) {
|
|
97
|
+
const { senderId } = params;
|
|
98
|
+
return this._client.delete(path `/v1/senders/${senderId}/agent/tools/${toolID}`, {
|
|
99
|
+
...options,
|
|
100
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Test a tool by triggering its webhook with test parameters.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```ts
|
|
108
|
+
* const response = await client.senders.agent.tools.test(
|
|
109
|
+
* 'toolId',
|
|
110
|
+
* {
|
|
111
|
+
* senderId: 'senderId',
|
|
112
|
+
* testParams: { order_id: 'ORD-12345' },
|
|
113
|
+
* },
|
|
114
|
+
* );
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
test(toolID, params, options) {
|
|
118
|
+
const { senderId, ...body } = params;
|
|
119
|
+
return this._client.post(path `/v1/senders/${senderId}/agent/tools/${toolID}/test`, { body, ...options });
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=tools.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../../../src/resources/senders/agent/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAC1C,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,MAAM,CAAC,QAAgB,EAAE,IAAsB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,QAAQ,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,gBAAgB,MAAM,EAAE,EAAE,OAA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;IAC3G,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.mts","sourceRoot":"","sources":["../../src/resources/senders/agent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/resources/senders/agent.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("./agent/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/resources/senders/agent.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../../src/resources/senders/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { AgentResource, type Agent, type AgentExecution, type AgentExecutionStatus, type AgentProvider, type AgentResponse, type AgentStats, type AgentCreateParams, type AgentUpdateParams, type AgentExecutionsCursor, } from "./agent/index.mjs";
|
|
2
|
+
export { Senders, type Sender, type SenderWebhook, type WebhookEvent, type WebhookSecretResponse, type WhatsappBusinessProfile, type WhatsappBusinessProfileResponse, type WhatsappBusinessProfileVertical, type SenderUpdateProfileResponse, type SenderUploadProfilePictureResponse, type SenderCreateParams, type SenderUpdateParams, type SenderListParams, type SenderUpdateProfileParams, type SenderUploadProfilePictureParams, type SendersCursor, } from "./senders.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/senders/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,GAC3B;OACM,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,aAAa,GACnB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { AgentResource, type Agent, type AgentExecution, type AgentExecutionStatus, type AgentProvider, type AgentResponse, type AgentStats, type AgentCreateParams, type AgentUpdateParams, type AgentExecutionsCursor, } from "./agent/index.js";
|
|
2
|
+
export { Senders, type Sender, type SenderWebhook, type WebhookEvent, type WebhookSecretResponse, type WhatsappBusinessProfile, type WhatsappBusinessProfileResponse, type WhatsappBusinessProfileVertical, type SenderUpdateProfileResponse, type SenderUploadProfilePictureResponse, type SenderCreateParams, type SenderUpdateParams, type SenderListParams, type SenderUpdateProfileParams, type SenderUploadProfilePictureParams, type SendersCursor, } from "./senders.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/senders/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,GAC3B;OACM,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,aAAa,GACnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Senders = exports.AgentResource = void 0;
|
|
5
|
+
var index_1 = require("./agent/index.js");
|
|
6
|
+
Object.defineProperty(exports, "AgentResource", { enumerable: true, get: function () { return index_1.AgentResource; } });
|
|
7
|
+
var senders_1 = require("./senders.js");
|
|
8
|
+
Object.defineProperty(exports, "Senders", { enumerable: true, get: function () { return senders_1.Senders; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/senders/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAWuB;AAVrB,sGAAA,aAAa,OAAA;AAWf,wCAiBmB;AAhBjB,kGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/senders/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,aAAa,GAUd;OACM,EACL,OAAO,GAgBR"}
|