samva 0.28.1 → 0.29.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/AGENTS.md +8 -0
- package/dist/client/sdk.gen.d.ts +156 -1
- package/dist/client/sdk.gen.js +475 -1
- package/dist/client/types.gen.d.ts +1653 -183
- package/dist/effect/campaigns.d.ts +32 -0
- package/dist/effect/generated/agents.js +36 -36
- package/dist/effect/generated/analytics.js +24 -24
- package/dist/effect/generated/api-keys.js +29 -29
- package/dist/effect/generated/attachments.js +13 -13
- package/dist/effect/generated/brands.js +13 -13
- package/dist/effect/generated/campaigns.d.ts +178 -60
- package/dist/effect/generated/campaigns.js +92 -104
- package/dist/effect/generated/contact-events.js +5 -5
- package/dist/effect/generated/contact-groups.js +38 -38
- package/dist/effect/generated/contacts.js +93 -93
- package/dist/effect/generated/conversations.js +38 -38
- package/dist/effect/generated/custom-fields.js +15 -15
- package/dist/effect/generated/email.js +225 -225
- package/dist/effect/generated/events.js +5 -5
- package/dist/effect/generated/extension-installations.js +35 -35
- package/dist/effect/generated/extensions.js +24 -24
- package/dist/effect/generated/feedback.js +6 -6
- package/dist/effect/generated/index.d.ts +5 -1
- package/dist/effect/generated/journeys.js +67 -67
- package/dist/effect/generated/mailboxes.js +286 -286
- package/dist/effect/generated/media.js +16 -16
- package/dist/effect/generated/messages.js +65 -65
- package/dist/effect/generated/namespaces.js +27 -27
- package/dist/effect/generated/operations.js +6 -6
- package/dist/effect/generated/organizations.js +19 -19
- package/dist/effect/generated/publication-domains.d.ts +548 -0
- package/dist/effect/generated/publication-domains.js +163 -0
- package/dist/effect/generated/scheduled-messages.js +25 -25
- package/dist/effect/generated/shared.d.ts +142 -30
- package/dist/effect/generated/shared.js +356 -328
- package/dist/effect/generated/subscriptions.js +10 -10
- package/dist/effect/generated/templates.d.ts +172 -15
- package/dist/effect/generated/templates.js +207 -162
- package/dist/effect/generated/topic-forms.js +21 -21
- package/dist/effect/generated/topic-issues.d.ts +2995 -0
- package/dist/effect/generated/topic-issues.js +985 -0
- package/dist/effect/generated/topics.d.ts +61 -1
- package/dist/effect/generated/topics.js +39 -31
- package/dist/effect/generated/webhooks.js +50 -50
- package/dist/effect/generated/whoami.js +10 -10
- package/dist/effect/generated-metadata.d.ts +70 -0
- package/dist/effect/generated-metadata.js +57 -13
- package/dist/effect/index.d.ts +2 -0
- package/dist/effect/index.js +3 -1
- package/dist/effect/journeys.d.ts +112 -112
- package/dist/effect/mailboxes.d.ts +78 -78
- package/dist/effect/publication-domains.d.ts +14 -0
- package/dist/effect/publication-domains.js +17 -0
- package/dist/effect/topic-issues.d.ts +57 -0
- package/dist/effect/topic-issues.js +33 -0
- package/dist/effect/topics.d.ts +6 -2
- package/dist/package.js +1 -1
- package/dist/promises/index.d.ts +5 -1
- package/dist/promises/index.js +5 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +74 -0
- package/dist/service-map.js +56 -0
- package/package.json +11 -3
|
@@ -37,9 +37,6 @@ export declare const create: (input: {
|
|
|
37
37
|
readonly name: string;
|
|
38
38
|
readonly definition: {
|
|
39
39
|
readonly trigger: {
|
|
40
|
-
readonly type: "event";
|
|
41
|
-
readonly eventName: string;
|
|
42
|
-
} | {
|
|
43
40
|
readonly type: "contact.created";
|
|
44
41
|
} | {
|
|
45
42
|
readonly type: "contact.tag_added";
|
|
@@ -47,10 +44,19 @@ export declare const create: (input: {
|
|
|
47
44
|
} | {
|
|
48
45
|
readonly type: "contact.joined_group";
|
|
49
46
|
readonly groupId: string;
|
|
47
|
+
} | {
|
|
48
|
+
readonly type: "event";
|
|
49
|
+
readonly eventName: string;
|
|
50
50
|
};
|
|
51
51
|
readonly rootNodeId: string;
|
|
52
52
|
readonly nodes: {
|
|
53
53
|
readonly [x: string]: {
|
|
54
|
+
readonly type: "exit";
|
|
55
|
+
readonly config: {
|
|
56
|
+
readonly [x: string]: undefined;
|
|
57
|
+
};
|
|
58
|
+
readonly next: readonly never[];
|
|
59
|
+
} | {
|
|
54
60
|
readonly type: "send_email";
|
|
55
61
|
readonly config: {
|
|
56
62
|
readonly template: string;
|
|
@@ -94,6 +100,49 @@ export declare const create: (input: {
|
|
|
94
100
|
readonly next: readonly {
|
|
95
101
|
readonly nodeId: string;
|
|
96
102
|
}[];
|
|
103
|
+
} | {
|
|
104
|
+
readonly type: "update_tags";
|
|
105
|
+
readonly config: {
|
|
106
|
+
readonly add: readonly string[];
|
|
107
|
+
readonly remove: readonly string[];
|
|
108
|
+
};
|
|
109
|
+
readonly next: readonly {
|
|
110
|
+
readonly nodeId: string;
|
|
111
|
+
}[];
|
|
112
|
+
} | {
|
|
113
|
+
readonly type: "webhook";
|
|
114
|
+
readonly config: {
|
|
115
|
+
readonly data?: {
|
|
116
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
117
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
118
|
+
} | null)[] | {
|
|
119
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
120
|
+
} | null)[] | {
|
|
121
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
122
|
+
} | null)[] | {
|
|
123
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
124
|
+
} | null)[] | {
|
|
125
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
126
|
+
} | null)[] | {
|
|
127
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
128
|
+
} | null)[] | {
|
|
129
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
130
|
+
} | null)[] | {
|
|
131
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
132
|
+
} | null)[] | {
|
|
133
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
134
|
+
} | null)[] | {
|
|
135
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
136
|
+
} | null)[] | {
|
|
137
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
138
|
+
} | null)[] | {
|
|
139
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
140
|
+
} | null | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
};
|
|
143
|
+
readonly next: readonly {
|
|
144
|
+
readonly nodeId: string;
|
|
145
|
+
}[];
|
|
97
146
|
} | {
|
|
98
147
|
readonly type: "wait_for_event";
|
|
99
148
|
readonly config: {
|
|
@@ -117,6 +166,10 @@ export declare const create: (input: {
|
|
|
117
166
|
readonly type: "tag";
|
|
118
167
|
readonly tag: string;
|
|
119
168
|
readonly present: boolean;
|
|
169
|
+
} | {
|
|
170
|
+
readonly type: "event";
|
|
171
|
+
readonly eventName: string;
|
|
172
|
+
readonly occurred: boolean;
|
|
120
173
|
} | {
|
|
121
174
|
readonly type: "property";
|
|
122
175
|
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
@@ -147,62 +200,9 @@ export declare const create: (input: {
|
|
|
147
200
|
} | {
|
|
148
201
|
readonly operator: "exists" | "not_exists";
|
|
149
202
|
};
|
|
150
|
-
} | {
|
|
151
|
-
readonly type: "event";
|
|
152
|
-
readonly eventName: string;
|
|
153
|
-
readonly occurred: boolean;
|
|
154
203
|
})[];
|
|
155
204
|
} | undefined;
|
|
156
205
|
}[];
|
|
157
|
-
} | {
|
|
158
|
-
readonly type: "update_tags";
|
|
159
|
-
readonly config: {
|
|
160
|
-
readonly add: readonly string[];
|
|
161
|
-
readonly remove: readonly string[];
|
|
162
|
-
};
|
|
163
|
-
readonly next: readonly {
|
|
164
|
-
readonly nodeId: string;
|
|
165
|
-
}[];
|
|
166
|
-
} | {
|
|
167
|
-
readonly type: "webhook";
|
|
168
|
-
readonly config: {
|
|
169
|
-
readonly data?: {
|
|
170
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
171
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
172
|
-
} | null)[] | {
|
|
173
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
174
|
-
} | null)[] | {
|
|
175
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
176
|
-
} | null)[] | {
|
|
177
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
178
|
-
} | null)[] | {
|
|
179
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
180
|
-
} | null)[] | {
|
|
181
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
182
|
-
} | null)[] | {
|
|
183
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
184
|
-
} | null)[] | {
|
|
185
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
186
|
-
} | null)[] | {
|
|
187
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
188
|
-
} | null)[] | {
|
|
189
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
190
|
-
} | null)[] | {
|
|
191
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
192
|
-
} | null)[] | {
|
|
193
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
194
|
-
} | null | undefined;
|
|
195
|
-
} | undefined;
|
|
196
|
-
};
|
|
197
|
-
readonly next: readonly {
|
|
198
|
-
readonly nodeId: string;
|
|
199
|
-
}[];
|
|
200
|
-
} | {
|
|
201
|
-
readonly type: "exit";
|
|
202
|
-
readonly config: {
|
|
203
|
-
readonly [x: string]: undefined;
|
|
204
|
-
};
|
|
205
|
-
readonly next: readonly never[];
|
|
206
206
|
} | undefined;
|
|
207
207
|
};
|
|
208
208
|
readonly goal?: {
|
|
@@ -226,9 +226,6 @@ export declare const replaceDraft: (input: {
|
|
|
226
226
|
readonly revision: string;
|
|
227
227
|
readonly definition: {
|
|
228
228
|
readonly trigger: {
|
|
229
|
-
readonly type: "event";
|
|
230
|
-
readonly eventName: string;
|
|
231
|
-
} | {
|
|
232
229
|
readonly type: "contact.created";
|
|
233
230
|
} | {
|
|
234
231
|
readonly type: "contact.tag_added";
|
|
@@ -236,10 +233,19 @@ export declare const replaceDraft: (input: {
|
|
|
236
233
|
} | {
|
|
237
234
|
readonly type: "contact.joined_group";
|
|
238
235
|
readonly groupId: string;
|
|
236
|
+
} | {
|
|
237
|
+
readonly type: "event";
|
|
238
|
+
readonly eventName: string;
|
|
239
239
|
};
|
|
240
240
|
readonly rootNodeId: string;
|
|
241
241
|
readonly nodes: {
|
|
242
242
|
readonly [x: string]: {
|
|
243
|
+
readonly type: "exit";
|
|
244
|
+
readonly config: {
|
|
245
|
+
readonly [x: string]: undefined;
|
|
246
|
+
};
|
|
247
|
+
readonly next: readonly never[];
|
|
248
|
+
} | {
|
|
243
249
|
readonly type: "send_email";
|
|
244
250
|
readonly config: {
|
|
245
251
|
readonly template: string;
|
|
@@ -283,6 +289,49 @@ export declare const replaceDraft: (input: {
|
|
|
283
289
|
readonly next: readonly {
|
|
284
290
|
readonly nodeId: string;
|
|
285
291
|
}[];
|
|
292
|
+
} | {
|
|
293
|
+
readonly type: "update_tags";
|
|
294
|
+
readonly config: {
|
|
295
|
+
readonly add: readonly string[];
|
|
296
|
+
readonly remove: readonly string[];
|
|
297
|
+
};
|
|
298
|
+
readonly next: readonly {
|
|
299
|
+
readonly nodeId: string;
|
|
300
|
+
}[];
|
|
301
|
+
} | {
|
|
302
|
+
readonly type: "webhook";
|
|
303
|
+
readonly config: {
|
|
304
|
+
readonly data?: {
|
|
305
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
306
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
307
|
+
} | null)[] | {
|
|
308
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
309
|
+
} | null)[] | {
|
|
310
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
311
|
+
} | null)[] | {
|
|
312
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
313
|
+
} | null)[] | {
|
|
314
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
315
|
+
} | null)[] | {
|
|
316
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
317
|
+
} | null)[] | {
|
|
318
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
319
|
+
} | null)[] | {
|
|
320
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
321
|
+
} | null)[] | {
|
|
322
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
323
|
+
} | null)[] | {
|
|
324
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
325
|
+
} | null)[] | {
|
|
326
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
327
|
+
} | null)[] | {
|
|
328
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
329
|
+
} | null | undefined;
|
|
330
|
+
} | undefined;
|
|
331
|
+
};
|
|
332
|
+
readonly next: readonly {
|
|
333
|
+
readonly nodeId: string;
|
|
334
|
+
}[];
|
|
286
335
|
} | {
|
|
287
336
|
readonly type: "wait_for_event";
|
|
288
337
|
readonly config: {
|
|
@@ -306,6 +355,10 @@ export declare const replaceDraft: (input: {
|
|
|
306
355
|
readonly type: "tag";
|
|
307
356
|
readonly tag: string;
|
|
308
357
|
readonly present: boolean;
|
|
358
|
+
} | {
|
|
359
|
+
readonly type: "event";
|
|
360
|
+
readonly eventName: string;
|
|
361
|
+
readonly occurred: boolean;
|
|
309
362
|
} | {
|
|
310
363
|
readonly type: "property";
|
|
311
364
|
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
@@ -336,62 +389,9 @@ export declare const replaceDraft: (input: {
|
|
|
336
389
|
} | {
|
|
337
390
|
readonly operator: "exists" | "not_exists";
|
|
338
391
|
};
|
|
339
|
-
} | {
|
|
340
|
-
readonly type: "event";
|
|
341
|
-
readonly eventName: string;
|
|
342
|
-
readonly occurred: boolean;
|
|
343
392
|
})[];
|
|
344
393
|
} | undefined;
|
|
345
394
|
}[];
|
|
346
|
-
} | {
|
|
347
|
-
readonly type: "update_tags";
|
|
348
|
-
readonly config: {
|
|
349
|
-
readonly add: readonly string[];
|
|
350
|
-
readonly remove: readonly string[];
|
|
351
|
-
};
|
|
352
|
-
readonly next: readonly {
|
|
353
|
-
readonly nodeId: string;
|
|
354
|
-
}[];
|
|
355
|
-
} | {
|
|
356
|
-
readonly type: "webhook";
|
|
357
|
-
readonly config: {
|
|
358
|
-
readonly data?: {
|
|
359
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
360
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
361
|
-
} | null)[] | {
|
|
362
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
363
|
-
} | null)[] | {
|
|
364
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
365
|
-
} | null)[] | {
|
|
366
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
367
|
-
} | null)[] | {
|
|
368
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
369
|
-
} | null)[] | {
|
|
370
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
371
|
-
} | null)[] | {
|
|
372
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
373
|
-
} | null)[] | {
|
|
374
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
375
|
-
} | null)[] | {
|
|
376
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
377
|
-
} | null)[] | {
|
|
378
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
379
|
-
} | null)[] | {
|
|
380
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
381
|
-
} | null)[] | {
|
|
382
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
383
|
-
} | null | undefined;
|
|
384
|
-
} | undefined;
|
|
385
|
-
};
|
|
386
|
-
readonly next: readonly {
|
|
387
|
-
readonly nodeId: string;
|
|
388
|
-
}[];
|
|
389
|
-
} | {
|
|
390
|
-
readonly type: "exit";
|
|
391
|
-
readonly config: {
|
|
392
|
-
readonly [x: string]: undefined;
|
|
393
|
-
};
|
|
394
|
-
readonly next: readonly never[];
|
|
395
395
|
} | undefined;
|
|
396
396
|
};
|
|
397
397
|
readonly goal?: {
|
|
@@ -838,45 +838,6 @@ export declare const listActions: ((input: {
|
|
|
838
838
|
readonly before?: string | null | undefined;
|
|
839
839
|
}) => import("effect/Stream").Stream<{
|
|
840
840
|
readonly items: readonly ({
|
|
841
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
842
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
843
|
-
readonly proposedBy: {
|
|
844
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
845
|
-
readonly id: string;
|
|
846
|
-
readonly displayName?: string | null;
|
|
847
|
-
};
|
|
848
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
849
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
850
|
-
readonly decision: {
|
|
851
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
852
|
-
readonly reason: string | null;
|
|
853
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
854
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
855
|
-
readonly decidedAt: string;
|
|
856
|
-
} | null;
|
|
857
|
-
readonly resolution: {
|
|
858
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
859
|
-
readonly actor: {
|
|
860
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
861
|
-
readonly id: string;
|
|
862
|
-
readonly displayName?: string | null;
|
|
863
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
864
|
-
};
|
|
865
|
-
readonly resolvedAt: string;
|
|
866
|
-
readonly reason: string | null;
|
|
867
|
-
} | null;
|
|
868
|
-
readonly createdAt: string;
|
|
869
|
-
readonly updatedAt: string;
|
|
870
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "toolCall" | "updateDraft";
|
|
871
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
872
|
-
readonly tool: {
|
|
873
|
-
readonly name: string;
|
|
874
|
-
readonly argumentsHash: string;
|
|
875
|
-
readonly arguments: {
|
|
876
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
877
|
-
};
|
|
878
|
-
} | null;
|
|
879
|
-
} | {
|
|
880
841
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
881
842
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
882
843
|
readonly proposedBy: {
|
|
@@ -1000,6 +961,45 @@ export declare const listActions: ((input: {
|
|
|
1000
961
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1001
962
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1002
963
|
} | null;
|
|
964
|
+
} | {
|
|
965
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
966
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
967
|
+
readonly proposedBy: {
|
|
968
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
969
|
+
readonly id: string;
|
|
970
|
+
readonly displayName?: string | null;
|
|
971
|
+
};
|
|
972
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
973
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
974
|
+
readonly decision: {
|
|
975
|
+
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
976
|
+
readonly reason: string | null;
|
|
977
|
+
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
978
|
+
readonly source: "grant" | "installation" | "policy" | null;
|
|
979
|
+
readonly decidedAt: string;
|
|
980
|
+
} | null;
|
|
981
|
+
readonly resolution: {
|
|
982
|
+
readonly outcome: "approved" | "cancelled" | "denied";
|
|
983
|
+
readonly actor: {
|
|
984
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
985
|
+
readonly id: string;
|
|
986
|
+
readonly displayName?: string | null;
|
|
987
|
+
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
988
|
+
};
|
|
989
|
+
readonly resolvedAt: string;
|
|
990
|
+
readonly reason: string | null;
|
|
991
|
+
} | null;
|
|
992
|
+
readonly createdAt: string;
|
|
993
|
+
readonly updatedAt: string;
|
|
994
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "toolCall" | "updateDraft";
|
|
995
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
996
|
+
readonly tool: {
|
|
997
|
+
readonly name: string;
|
|
998
|
+
readonly argumentsHash: string;
|
|
999
|
+
readonly arguments: {
|
|
1000
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1001
|
+
};
|
|
1002
|
+
} | null;
|
|
1003
1003
|
})[];
|
|
1004
1004
|
readonly nextCursor: string | null;
|
|
1005
1005
|
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
@@ -1012,45 +1012,6 @@ export declare const listActions: ((input: {
|
|
|
1012
1012
|
readonly after?: string | null | undefined;
|
|
1013
1013
|
readonly before?: string | null | undefined;
|
|
1014
1014
|
}) => import("effect/Stream").Stream<{
|
|
1015
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1016
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1017
|
-
readonly proposedBy: {
|
|
1018
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1019
|
-
readonly id: string;
|
|
1020
|
-
readonly displayName?: string | null;
|
|
1021
|
-
};
|
|
1022
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1023
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1024
|
-
readonly decision: {
|
|
1025
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1026
|
-
readonly reason: string | null;
|
|
1027
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1028
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1029
|
-
readonly decidedAt: string;
|
|
1030
|
-
} | null;
|
|
1031
|
-
readonly resolution: {
|
|
1032
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1033
|
-
readonly actor: {
|
|
1034
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1035
|
-
readonly id: string;
|
|
1036
|
-
readonly displayName?: string | null;
|
|
1037
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1038
|
-
};
|
|
1039
|
-
readonly resolvedAt: string;
|
|
1040
|
-
readonly reason: string | null;
|
|
1041
|
-
} | null;
|
|
1042
|
-
readonly createdAt: string;
|
|
1043
|
-
readonly updatedAt: string;
|
|
1044
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "toolCall" | "updateDraft";
|
|
1045
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1046
|
-
readonly tool: {
|
|
1047
|
-
readonly name: string;
|
|
1048
|
-
readonly argumentsHash: string;
|
|
1049
|
-
readonly arguments: {
|
|
1050
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1051
|
-
};
|
|
1052
|
-
} | null;
|
|
1053
|
-
} | {
|
|
1054
1015
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1055
1016
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1056
1017
|
readonly proposedBy: {
|
|
@@ -1174,6 +1135,45 @@ export declare const listActions: ((input: {
|
|
|
1174
1135
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1175
1136
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1176
1137
|
} | null;
|
|
1138
|
+
} | {
|
|
1139
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1140
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1141
|
+
readonly proposedBy: {
|
|
1142
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1143
|
+
readonly id: string;
|
|
1144
|
+
readonly displayName?: string | null;
|
|
1145
|
+
};
|
|
1146
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1147
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1148
|
+
readonly decision: {
|
|
1149
|
+
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1150
|
+
readonly reason: string | null;
|
|
1151
|
+
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1152
|
+
readonly source: "grant" | "installation" | "policy" | null;
|
|
1153
|
+
readonly decidedAt: string;
|
|
1154
|
+
} | null;
|
|
1155
|
+
readonly resolution: {
|
|
1156
|
+
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1157
|
+
readonly actor: {
|
|
1158
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1159
|
+
readonly id: string;
|
|
1160
|
+
readonly displayName?: string | null;
|
|
1161
|
+
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1162
|
+
};
|
|
1163
|
+
readonly resolvedAt: string;
|
|
1164
|
+
readonly reason: string | null;
|
|
1165
|
+
} | null;
|
|
1166
|
+
readonly createdAt: string;
|
|
1167
|
+
readonly updatedAt: string;
|
|
1168
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "toolCall" | "updateDraft";
|
|
1169
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1170
|
+
readonly tool: {
|
|
1171
|
+
readonly name: string;
|
|
1172
|
+
readonly argumentsHash: string;
|
|
1173
|
+
readonly arguments: {
|
|
1174
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1175
|
+
};
|
|
1176
|
+
} | null;
|
|
1177
1177
|
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1178
1178
|
};
|
|
1179
1179
|
export declare const getAction: (input: {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const add: (input: {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly hostname: string;
|
|
4
|
+
readonly idempotencyKey: string;
|
|
5
|
+
}) => import("./internal/operation").OperationResult<"topicPublicationDomainsAdd">;
|
|
6
|
+
export declare const get: (input: {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly hostname: string;
|
|
9
|
+
}) => import("./internal/operation").OperationResult<"topicPublicationDomainsGet">;
|
|
10
|
+
export declare const remove: (input: {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly hostname: string;
|
|
13
|
+
readonly idempotencyKey: string;
|
|
14
|
+
}) => import("./internal/operation").OperationResult<"topicPublicationDomainsRemove">;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { PublicationDomainsGroup } from "./generated/publication-domains.js";
|
|
4
|
+
//#region src/effect/publication-domains.ts
|
|
5
|
+
var publication_domains_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
add: () => add,
|
|
7
|
+
get: () => get,
|
|
8
|
+
remove: () => remove
|
|
9
|
+
});
|
|
10
|
+
const make = /* @__PURE__ */ forGroup(PublicationDomainsGroup);
|
|
11
|
+
const add = /* @__PURE__ */ make("topicPublicationDomainsAdd");
|
|
12
|
+
const get = /* @__PURE__ */ make("topicPublicationDomainsGet");
|
|
13
|
+
const remove = /* @__PURE__ */ make("topicPublicationDomainsRemove");
|
|
14
|
+
//#endregion
|
|
15
|
+
export { add, get, publication_domains_exports, remove };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=publication-domains.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const list: (input: {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
}) => import("./internal/operation").OperationResult<"topicIssuesList">;
|
|
4
|
+
export declare const open: (input: {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
}) => import("./internal/operation").OperationResult<"topicIssuesOpen">;
|
|
7
|
+
export declare const get: (input: {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly path: string;
|
|
10
|
+
readonly expectedRevision: string;
|
|
11
|
+
}) => import("./internal/operation").OperationResult<"topicIssuesGet">;
|
|
12
|
+
export declare const create: (input: {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly path: string;
|
|
15
|
+
readonly content: string;
|
|
16
|
+
readonly idempotencyKey: string;
|
|
17
|
+
readonly expectedRevision?: string | null | undefined;
|
|
18
|
+
}) => import("./internal/operation").OperationResult<"topicIssuesCreate">;
|
|
19
|
+
export declare const update: (input: {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly path: string;
|
|
22
|
+
readonly content: string;
|
|
23
|
+
readonly idempotencyKey: string;
|
|
24
|
+
readonly expectedRevision: string;
|
|
25
|
+
}) => import("./internal/operation").OperationResult<"topicIssuesUpdate">;
|
|
26
|
+
export declare const remove: (input: {
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly path: string;
|
|
29
|
+
readonly idempotencyKey: string;
|
|
30
|
+
readonly expectedRevision: string;
|
|
31
|
+
}) => import("./internal/operation").OperationResult<"topicIssuesRemove">;
|
|
32
|
+
export declare const save: (input: {
|
|
33
|
+
readonly id: string;
|
|
34
|
+
readonly expectedRevision: string;
|
|
35
|
+
readonly expectedHead: string;
|
|
36
|
+
readonly message: string;
|
|
37
|
+
readonly idempotencyKey: string;
|
|
38
|
+
}) => import("./internal/operation").OperationResult<"topicIssuesSave">;
|
|
39
|
+
export declare const check: (input: {
|
|
40
|
+
readonly id: string;
|
|
41
|
+
readonly path: string;
|
|
42
|
+
readonly expectedRevision: string;
|
|
43
|
+
}) => import("./internal/operation").OperationResult<"topicIssuesCheck">;
|
|
44
|
+
export declare const render: (input: {
|
|
45
|
+
readonly id: string;
|
|
46
|
+
readonly path: string;
|
|
47
|
+
readonly expectedRevision: string;
|
|
48
|
+
readonly fixture: string;
|
|
49
|
+
readonly target: "email" | "web";
|
|
50
|
+
}) => import("./internal/operation").OperationResult<"topicIssuesRender">;
|
|
51
|
+
export declare const head: (input: {
|
|
52
|
+
readonly id: string;
|
|
53
|
+
}) => import("./internal/operation").OperationResult<"topicIssuesHead">;
|
|
54
|
+
export declare const history: (input: {
|
|
55
|
+
readonly id: string;
|
|
56
|
+
readonly limit?: number | null | undefined;
|
|
57
|
+
}) => import("./internal/operation").OperationResult<"topicIssuesHistory">;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { TopicIssuesGroup } from "./generated/topic-issues.js";
|
|
4
|
+
//#region src/effect/topic-issues.ts
|
|
5
|
+
var topic_issues_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
check: () => check,
|
|
7
|
+
create: () => create,
|
|
8
|
+
get: () => get,
|
|
9
|
+
head: () => head,
|
|
10
|
+
history: () => history,
|
|
11
|
+
list: () => list,
|
|
12
|
+
open: () => open,
|
|
13
|
+
remove: () => remove,
|
|
14
|
+
render: () => render,
|
|
15
|
+
save: () => save,
|
|
16
|
+
update: () => update
|
|
17
|
+
});
|
|
18
|
+
const make = /* @__PURE__ */ forGroup(TopicIssuesGroup);
|
|
19
|
+
const list = /* @__PURE__ */ make("topicIssuesList");
|
|
20
|
+
const open = /* @__PURE__ */ make("topicIssuesOpen");
|
|
21
|
+
const get = /* @__PURE__ */ make("topicIssuesGet");
|
|
22
|
+
const create = /* @__PURE__ */ make("topicIssuesCreate");
|
|
23
|
+
const update = /* @__PURE__ */ make("topicIssuesUpdate");
|
|
24
|
+
const remove = /* @__PURE__ */ make("topicIssuesRemove");
|
|
25
|
+
const save = /* @__PURE__ */ make("topicIssuesSave");
|
|
26
|
+
const check = /* @__PURE__ */ make("topicIssuesCheck");
|
|
27
|
+
const render = /* @__PURE__ */ make("topicIssuesRender");
|
|
28
|
+
const head = /* @__PURE__ */ make("topicIssuesHead");
|
|
29
|
+
const history = /* @__PURE__ */ make("topicIssuesHistory");
|
|
30
|
+
//#endregion
|
|
31
|
+
export { check, create, get, head, history, list, open, remove, render, save, topic_issues_exports, update };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=topic-issues.js.map
|
package/dist/effect/topics.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare const create: (input: {
|
|
|
9
9
|
readonly description?: string | null | undefined;
|
|
10
10
|
readonly namespaceId?: string | null | undefined;
|
|
11
11
|
readonly default?: "opt_in" | "opt_out" | null | undefined;
|
|
12
|
+
readonly archiveEnabled?: boolean | null | undefined;
|
|
13
|
+
readonly publicationSlug?: string | null | undefined;
|
|
12
14
|
readonly defaultSenderId?: string | null | undefined;
|
|
13
15
|
readonly replyMailboxId?: string | null | undefined;
|
|
14
16
|
readonly templateId?: string | null | undefined;
|
|
@@ -18,6 +20,8 @@ export declare const update: (input: {
|
|
|
18
20
|
readonly name?: string | null | undefined;
|
|
19
21
|
readonly description?: string | null | undefined;
|
|
20
22
|
readonly default?: "opt_in" | "opt_out" | null | undefined;
|
|
23
|
+
readonly archiveEnabled?: boolean | null | undefined;
|
|
24
|
+
readonly publicationSlug?: string | null | undefined;
|
|
21
25
|
readonly defaultSenderId?: string | null | undefined;
|
|
22
26
|
readonly replyMailboxId?: string | null | undefined;
|
|
23
27
|
readonly templateId?: string | null | undefined;
|
|
@@ -74,11 +78,11 @@ export declare const listSubscriptions: ((input: {
|
|
|
74
78
|
export declare const setSubscriptions: (input: {
|
|
75
79
|
readonly id: string;
|
|
76
80
|
readonly contacts: readonly ({
|
|
77
|
-
readonly contactId: string;
|
|
78
|
-
} | {
|
|
79
81
|
readonly email: string;
|
|
80
82
|
} | {
|
|
81
83
|
readonly phone: string;
|
|
84
|
+
} | {
|
|
85
|
+
readonly contactId: string;
|
|
82
86
|
})[];
|
|
83
87
|
readonly channel: "email";
|
|
84
88
|
readonly status: "subscribed" | "unsubscribed";
|
package/dist/package.js
CHANGED