samva 0.51.0 → 0.52.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.
Files changed (83) hide show
  1. package/AGENTS.md +5 -2
  2. package/README.md +1 -0
  3. package/dist/client/sdk.gen.d.ts +67 -28
  4. package/dist/client/sdk.gen.js +157 -29
  5. package/dist/client/types.gen.d.ts +520 -281
  6. package/dist/effect/campaigns.d.ts +56 -56
  7. package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
  8. package/dist/effect/descriptors/integrations-catalog.js +1 -1
  9. package/dist/effect/descriptors/integrations.d.ts +1 -1
  10. package/dist/effect/descriptors/integrations.js +1 -1
  11. package/dist/effect/descriptors/logs.d.ts +21 -0
  12. package/dist/effect/descriptors/logs.js +23 -0
  13. package/dist/effect/descriptors/whats-app.d.ts +1 -1
  14. package/dist/effect/descriptors/whats-app.js +1 -1
  15. package/dist/effect/generated/agents.js +4 -4
  16. package/dist/effect/generated/campaigns.d.ts +18 -6
  17. package/dist/effect/generated/campaigns.js +2 -6
  18. package/dist/effect/generated/email.js +3 -3
  19. package/dist/effect/generated/index.d.ts +3 -1
  20. package/dist/effect/generated/integrations-catalog.d.ts +93 -49
  21. package/dist/effect/generated/integrations-catalog.js +17 -28
  22. package/dist/effect/generated/integrations.d.ts +20 -40
  23. package/dist/effect/generated/integrations.js +9 -13
  24. package/dist/effect/generated/journeys.d.ts +61 -13
  25. package/dist/effect/generated/journeys.js +5 -5
  26. package/dist/effect/generated/logs.d.ts +2311 -0
  27. package/dist/effect/generated/logs.js +312 -0
  28. package/dist/effect/generated/mailboxes.d.ts +30 -24
  29. package/dist/effect/generated/mailboxes.js +20 -20
  30. package/dist/effect/generated/messages.d.ts +1 -882
  31. package/dist/effect/generated/messages.js +4 -243
  32. package/dist/effect/generated/newsletter-domains.d.ts +61 -13
  33. package/dist/effect/generated/newsletter-domains.js +5 -5
  34. package/dist/effect/generated/newsletter-issues.d.ts +166 -34
  35. package/dist/effect/generated/newsletter-issues.js +12 -12
  36. package/dist/effect/generated/newsletters.d.ts +76 -16
  37. package/dist/effect/generated/newsletters.js +6 -6
  38. package/dist/effect/generated/organizations.js +1 -1
  39. package/dist/effect/generated/scheduled-messages.js +1 -1
  40. package/dist/effect/generated/shared.d.ts +1138 -257
  41. package/dist/effect/generated/shared.js +321 -82
  42. package/dist/effect/generated/subscriptions.d.ts +4 -4
  43. package/dist/effect/generated/subscriptions.js +2 -6
  44. package/dist/effect/generated/template-registrations.d.ts +46 -10
  45. package/dist/effect/generated/template-registrations.js +4 -4
  46. package/dist/effect/generated/templates.js +2 -2
  47. package/dist/effect/generated/whats-app-flows.d.ts +151 -31
  48. package/dist/effect/generated/whats-app-flows.js +11 -11
  49. package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
  50. package/dist/effect/generated/whats-app-setup-links.js +5 -5
  51. package/dist/effect/generated/whats-app.d.ts +187 -65
  52. package/dist/effect/generated/whats-app.js +18 -24
  53. package/dist/effect/generated-metadata.d.ts +15 -3
  54. package/dist/effect/generated-metadata.js +375 -349
  55. package/dist/effect/index.d.ts +1 -0
  56. package/dist/effect/index.js +2 -1
  57. package/dist/effect/integrations-catalog.d.ts +92 -4
  58. package/dist/effect/integrations.d.ts +40 -8
  59. package/dist/effect/internal/client.js +25 -3
  60. package/dist/effect/internal/log-events.d.ts +19 -0
  61. package/dist/effect/internal/log-events.js +53 -0
  62. package/dist/effect/internal/mailbox-events.d.ts +6 -2
  63. package/dist/effect/internal/mailbox-events.js +4 -3
  64. package/dist/effect/journeys.d.ts +148 -148
  65. package/dist/effect/logs.d.ts +149 -0
  66. package/dist/effect/logs.js +18 -0
  67. package/dist/effect/mailboxes.d.ts +156 -150
  68. package/dist/effect/mailboxes.js +1 -1
  69. package/dist/effect/newsletter-domains.d.ts +2 -2
  70. package/dist/effect/whatsapp-setup-links.d.ts +2 -2
  71. package/dist/effect/whatsapp.d.ts +73 -3
  72. package/dist/mailbox-events.d.ts +50 -3
  73. package/dist/mailbox-events.js +38 -19
  74. package/dist/package.js +1 -1
  75. package/dist/promises/client.d.ts +3 -1
  76. package/dist/promises/client.js +3 -1
  77. package/dist/promises/errors.gen.d.ts +2 -0
  78. package/dist/promises/errors.gen.js +137 -34
  79. package/dist/promises/types.gen.d.ts +1 -1
  80. package/dist/request-id.d.ts +3 -0
  81. package/dist/request-id.js +7 -0
  82. package/dist/service-map.d.ts +14 -3
  83. package/package.json +6 -2
@@ -37,6 +37,9 @@ 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
+ } | {
40
43
  readonly type: "contact.created";
41
44
  } | {
42
45
  readonly type: "contact.tag_added";
@@ -44,19 +47,10 @@ export declare const create: (input: {
44
47
  } | {
45
48
  readonly type: "contact.joined_group";
46
49
  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
- } | {
60
54
  readonly type: "send_email";
61
55
  readonly config: {
62
56
  readonly template: string;
@@ -93,67 +87,6 @@ export declare const create: (input: {
93
87
  readonly next: readonly {
94
88
  readonly nodeId: string;
95
89
  }[];
96
- } | {
97
- readonly type: "wait";
98
- readonly config: {
99
- readonly durationSeconds: number;
100
- };
101
- readonly next: readonly {
102
- readonly nodeId: string;
103
- }[];
104
- } | {
105
- readonly type: "update_tags";
106
- readonly config: {
107
- readonly add: readonly string[];
108
- readonly remove: readonly string[];
109
- };
110
- readonly next: readonly {
111
- readonly nodeId: string;
112
- }[];
113
- } | {
114
- readonly type: "webhook";
115
- readonly config: {
116
- readonly data?: {
117
- 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 | {
118
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
119
- } | null)[] | {
120
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
121
- } | null)[] | {
122
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
123
- } | null)[] | {
124
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
125
- } | null)[] | {
126
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
127
- } | null)[] | {
128
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
129
- } | null)[] | {
130
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
131
- } | null)[] | {
132
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
133
- } | null)[] | {
134
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
135
- } | null)[] | {
136
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
137
- } | null)[] | {
138
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
139
- } | null)[] | {
140
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
141
- } | null | undefined;
142
- } | undefined;
143
- };
144
- readonly next: readonly {
145
- readonly nodeId: string;
146
- }[];
147
- } | {
148
- readonly type: "wait_for_event";
149
- readonly config: {
150
- readonly eventName: string;
151
- readonly timeoutSeconds: number;
152
- };
153
- readonly next: readonly {
154
- readonly nodeId: string;
155
- readonly outcome: "matched" | "timed_out";
156
- }[];
157
90
  } | {
158
91
  readonly type: "send_whatsapp";
159
92
  readonly config: {
@@ -204,6 +137,24 @@ export declare const create: (input: {
204
137
  readonly next: readonly {
205
138
  readonly nodeId: string;
206
139
  }[];
140
+ } | {
141
+ readonly type: "wait";
142
+ readonly config: {
143
+ readonly durationSeconds: number;
144
+ };
145
+ readonly next: readonly {
146
+ readonly nodeId: string;
147
+ }[];
148
+ } | {
149
+ readonly type: "wait_for_event";
150
+ readonly config: {
151
+ readonly eventName: string;
152
+ readonly timeoutSeconds: number;
153
+ };
154
+ readonly next: readonly {
155
+ readonly nodeId: string;
156
+ readonly outcome: "matched" | "timed_out";
157
+ }[];
207
158
  } | {
208
159
  readonly type: "branch";
209
160
  readonly config: {
@@ -217,10 +168,6 @@ export declare const create: (input: {
217
168
  readonly type: "tag";
218
169
  readonly tag: string;
219
170
  readonly present: boolean;
220
- } | {
221
- readonly type: "event";
222
- readonly eventName: string;
223
- readonly occurred: boolean;
224
171
  } | {
225
172
  readonly type: "property";
226
173
  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";
@@ -251,9 +198,62 @@ export declare const create: (input: {
251
198
  } | {
252
199
  readonly operator: "exists" | "not_exists";
253
200
  };
201
+ } | {
202
+ readonly type: "event";
203
+ readonly eventName: string;
204
+ readonly occurred: boolean;
254
205
  })[];
255
206
  } | undefined;
256
207
  }[];
208
+ } | {
209
+ readonly type: "update_tags";
210
+ readonly config: {
211
+ readonly add: readonly string[];
212
+ readonly remove: readonly string[];
213
+ };
214
+ readonly next: readonly {
215
+ readonly nodeId: string;
216
+ }[];
217
+ } | {
218
+ readonly type: "webhook";
219
+ readonly config: {
220
+ readonly data?: {
221
+ 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 | {
222
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
223
+ } | null)[] | {
224
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
225
+ } | null)[] | {
226
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
227
+ } | null)[] | {
228
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
229
+ } | null)[] | {
230
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
231
+ } | null)[] | {
232
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
233
+ } | null)[] | {
234
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
235
+ } | null)[] | {
236
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
237
+ } | null)[] | {
238
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
239
+ } | null)[] | {
240
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
241
+ } | null)[] | {
242
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
243
+ } | null)[] | {
244
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
245
+ } | null | undefined;
246
+ } | undefined;
247
+ };
248
+ readonly next: readonly {
249
+ readonly nodeId: string;
250
+ }[];
251
+ } | {
252
+ readonly type: "exit";
253
+ readonly config: {
254
+ readonly [x: string]: undefined;
255
+ };
256
+ readonly next: readonly never[];
257
257
  } | undefined;
258
258
  };
259
259
  readonly goal?: {
@@ -281,6 +281,9 @@ export declare const replaceDraft: (input: {
281
281
  readonly revision: string;
282
282
  readonly definition: {
283
283
  readonly trigger: {
284
+ readonly type: "event";
285
+ readonly eventName: string;
286
+ } | {
284
287
  readonly type: "contact.created";
285
288
  } | {
286
289
  readonly type: "contact.tag_added";
@@ -288,19 +291,10 @@ export declare const replaceDraft: (input: {
288
291
  } | {
289
292
  readonly type: "contact.joined_group";
290
293
  readonly groupId: string;
291
- } | {
292
- readonly type: "event";
293
- readonly eventName: string;
294
294
  };
295
295
  readonly rootNodeId: string;
296
296
  readonly nodes: {
297
297
  readonly [x: string]: {
298
- readonly type: "exit";
299
- readonly config: {
300
- readonly [x: string]: undefined;
301
- };
302
- readonly next: readonly never[];
303
- } | {
304
298
  readonly type: "send_email";
305
299
  readonly config: {
306
300
  readonly template: string;
@@ -337,67 +331,6 @@ export declare const replaceDraft: (input: {
337
331
  readonly next: readonly {
338
332
  readonly nodeId: string;
339
333
  }[];
340
- } | {
341
- readonly type: "wait";
342
- readonly config: {
343
- readonly durationSeconds: number;
344
- };
345
- readonly next: readonly {
346
- readonly nodeId: string;
347
- }[];
348
- } | {
349
- readonly type: "update_tags";
350
- readonly config: {
351
- readonly add: readonly string[];
352
- readonly remove: readonly string[];
353
- };
354
- readonly next: readonly {
355
- readonly nodeId: string;
356
- }[];
357
- } | {
358
- readonly type: "webhook";
359
- readonly config: {
360
- readonly data?: {
361
- 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 | {
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)[] | {
384
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
385
- } | null | undefined;
386
- } | undefined;
387
- };
388
- readonly next: readonly {
389
- readonly nodeId: string;
390
- }[];
391
- } | {
392
- readonly type: "wait_for_event";
393
- readonly config: {
394
- readonly eventName: string;
395
- readonly timeoutSeconds: number;
396
- };
397
- readonly next: readonly {
398
- readonly nodeId: string;
399
- readonly outcome: "matched" | "timed_out";
400
- }[];
401
334
  } | {
402
335
  readonly type: "send_whatsapp";
403
336
  readonly config: {
@@ -448,6 +381,24 @@ export declare const replaceDraft: (input: {
448
381
  readonly next: readonly {
449
382
  readonly nodeId: string;
450
383
  }[];
384
+ } | {
385
+ readonly type: "wait";
386
+ readonly config: {
387
+ readonly durationSeconds: number;
388
+ };
389
+ readonly next: readonly {
390
+ readonly nodeId: string;
391
+ }[];
392
+ } | {
393
+ readonly type: "wait_for_event";
394
+ readonly config: {
395
+ readonly eventName: string;
396
+ readonly timeoutSeconds: number;
397
+ };
398
+ readonly next: readonly {
399
+ readonly nodeId: string;
400
+ readonly outcome: "matched" | "timed_out";
401
+ }[];
451
402
  } | {
452
403
  readonly type: "branch";
453
404
  readonly config: {
@@ -461,10 +412,6 @@ export declare const replaceDraft: (input: {
461
412
  readonly type: "tag";
462
413
  readonly tag: string;
463
414
  readonly present: boolean;
464
- } | {
465
- readonly type: "event";
466
- readonly eventName: string;
467
- readonly occurred: boolean;
468
415
  } | {
469
416
  readonly type: "property";
470
417
  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";
@@ -495,9 +442,62 @@ export declare const replaceDraft: (input: {
495
442
  } | {
496
443
  readonly operator: "exists" | "not_exists";
497
444
  };
445
+ } | {
446
+ readonly type: "event";
447
+ readonly eventName: string;
448
+ readonly occurred: boolean;
498
449
  })[];
499
450
  } | undefined;
500
451
  }[];
452
+ } | {
453
+ readonly type: "update_tags";
454
+ readonly config: {
455
+ readonly add: readonly string[];
456
+ readonly remove: readonly string[];
457
+ };
458
+ readonly next: readonly {
459
+ readonly nodeId: string;
460
+ }[];
461
+ } | {
462
+ readonly type: "webhook";
463
+ readonly config: {
464
+ readonly data?: {
465
+ 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 | {
466
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
467
+ } | null)[] | {
468
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
469
+ } | null)[] | {
470
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
471
+ } | null)[] | {
472
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
473
+ } | null)[] | {
474
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
475
+ } | null)[] | {
476
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
477
+ } | null)[] | {
478
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
479
+ } | null)[] | {
480
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
481
+ } | null)[] | {
482
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
483
+ } | null)[] | {
484
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
485
+ } | null)[] | {
486
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
487
+ } | null)[] | {
488
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
489
+ } | null | undefined;
490
+ } | undefined;
491
+ };
492
+ readonly next: readonly {
493
+ readonly nodeId: string;
494
+ }[];
495
+ } | {
496
+ readonly type: "exit";
497
+ readonly config: {
498
+ readonly [x: string]: undefined;
499
+ };
500
+ readonly next: readonly never[];
501
501
  } | undefined;
502
502
  };
503
503
  readonly goal?: {
@@ -0,0 +1,149 @@
1
+ export { events, streamCursor, type LogEvent, type LogEventStreamOptions, } from "./internal/log-events.js";
2
+ export declare const list: ((input?: {
3
+ readonly limit?: number | null | undefined;
4
+ readonly cursor?: string | undefined;
5
+ readonly after?: string | undefined;
6
+ readonly orderBy?: "recorded" | "timestamp" | undefined;
7
+ readonly order?: "asc" | "desc" | undefined;
8
+ readonly since?: Date | undefined;
9
+ readonly until?: Date | undefined;
10
+ readonly status?: string | undefined;
11
+ readonly event?: string | undefined;
12
+ readonly channel?: "email" | "sms" | "whatsapp" | undefined;
13
+ readonly direction?: "inbound" | "outbound" | undefined;
14
+ readonly origin?: "businessApp" | "campaign" | "direct" | "forwarding" | "journey" | "mailbox" | "scheduled" | undefined;
15
+ readonly credential?: string | undefined;
16
+ readonly from?: string | undefined;
17
+ readonly messageId?: string | undefined;
18
+ readonly mailboxId?: string | undefined;
19
+ readonly requestId?: string | undefined;
20
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"logsList">) & {
21
+ readonly pages: (input?: {
22
+ readonly limit?: number | null | undefined;
23
+ readonly cursor?: string | undefined;
24
+ readonly after?: string | undefined;
25
+ readonly orderBy?: "recorded" | "timestamp" | undefined;
26
+ readonly order?: "asc" | "desc" | undefined;
27
+ readonly since?: Date | undefined;
28
+ readonly until?: Date | undefined;
29
+ readonly status?: string | undefined;
30
+ readonly event?: string | undefined;
31
+ readonly channel?: "email" | "sms" | "whatsapp" | undefined;
32
+ readonly direction?: "inbound" | "outbound" | undefined;
33
+ readonly origin?: "businessApp" | "campaign" | "direct" | "forwarding" | "journey" | "mailbox" | "scheduled" | undefined;
34
+ readonly credential?: string | undefined;
35
+ readonly from?: string | undefined;
36
+ readonly messageId?: string | undefined;
37
+ readonly mailboxId?: string | undefined;
38
+ readonly requestId?: string | undefined;
39
+ } | undefined) => import("effect/Stream").Stream<{
40
+ readonly items: readonly {
41
+ readonly id: string;
42
+ readonly cursor: string;
43
+ readonly timestamp: string;
44
+ readonly event: "accepted" | "agent_escalation" | "agent_handoff" | "agent_processing_completed" | "agent_processing_started" | "archived" | "bounced" | "clicked" | "complained" | "cost_calculated" | "created" | "deleted" | "delivered" | "failed" | "forwarded" | "marked_spam" | "opened" | "processing" | "queued" | "read" | "received" | "rejected" | "replied" | "retry_attempted" | "retry_scheduled" | "sent" | "unsubscribed" | "waiting" | "whatsapp_deleted" | "whatsapp_read";
45
+ readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
46
+ readonly channel: "email" | "sms" | "whatsapp" | null;
47
+ readonly direction: "inbound" | "outbound";
48
+ readonly origin: "businessApp" | "campaign" | "direct" | "forwarding" | "journey" | "mailbox" | "scheduled" | null;
49
+ readonly from: {
50
+ readonly address: string;
51
+ readonly name: string | null;
52
+ } | null;
53
+ readonly recipient: string | null;
54
+ readonly subject: string | null;
55
+ readonly submission: {
56
+ readonly origin: "businessApp" | "campaign" | "direct" | "forwarding" | "journey" | "mailbox" | "scheduled";
57
+ readonly transport: "http" | "smtp" | null;
58
+ readonly credential: {
59
+ readonly kind: "api_key";
60
+ readonly apiKeyId: (string & import("effect/Brand").Brand<"ApiKeyId">) | null;
61
+ readonly name: string | null;
62
+ } | {
63
+ readonly kind: "oauth";
64
+ readonly clientId: string | null;
65
+ readonly name: string | null;
66
+ } | {
67
+ readonly kind: "session";
68
+ } | null;
69
+ readonly user?: {
70
+ readonly id: string & import("effect/Brand").Brand<"UserId">;
71
+ readonly email: string;
72
+ readonly name: string;
73
+ } | null;
74
+ readonly client: {
75
+ readonly surface: "cli" | "mcp" | "typescript-effect" | "typescript-promise";
76
+ readonly version: string;
77
+ } | null;
78
+ } | null;
79
+ readonly requestId: string | null;
80
+ readonly reason: string | null;
81
+ readonly errorTag: string | null;
82
+ }[];
83
+ readonly nextCursor: string | null;
84
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
85
+ readonly items: (input?: {
86
+ readonly limit?: number | null | undefined;
87
+ readonly cursor?: string | undefined;
88
+ readonly after?: string | undefined;
89
+ readonly orderBy?: "recorded" | "timestamp" | undefined;
90
+ readonly order?: "asc" | "desc" | undefined;
91
+ readonly since?: Date | undefined;
92
+ readonly until?: Date | undefined;
93
+ readonly status?: string | undefined;
94
+ readonly event?: string | undefined;
95
+ readonly channel?: "email" | "sms" | "whatsapp" | undefined;
96
+ readonly direction?: "inbound" | "outbound" | undefined;
97
+ readonly origin?: "businessApp" | "campaign" | "direct" | "forwarding" | "journey" | "mailbox" | "scheduled" | undefined;
98
+ readonly credential?: string | undefined;
99
+ readonly from?: string | undefined;
100
+ readonly messageId?: string | undefined;
101
+ readonly mailboxId?: string | undefined;
102
+ readonly requestId?: string | undefined;
103
+ } | undefined) => import("effect/Stream").Stream<{
104
+ readonly id: string;
105
+ readonly cursor: string;
106
+ readonly timestamp: string;
107
+ readonly event: "accepted" | "agent_escalation" | "agent_handoff" | "agent_processing_completed" | "agent_processing_started" | "archived" | "bounced" | "clicked" | "complained" | "cost_calculated" | "created" | "deleted" | "delivered" | "failed" | "forwarded" | "marked_spam" | "opened" | "processing" | "queued" | "read" | "received" | "rejected" | "replied" | "retry_attempted" | "retry_scheduled" | "sent" | "unsubscribed" | "waiting" | "whatsapp_deleted" | "whatsapp_read";
108
+ readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
109
+ readonly channel: "email" | "sms" | "whatsapp" | null;
110
+ readonly direction: "inbound" | "outbound";
111
+ readonly origin: "businessApp" | "campaign" | "direct" | "forwarding" | "journey" | "mailbox" | "scheduled" | null;
112
+ readonly from: {
113
+ readonly address: string;
114
+ readonly name: string | null;
115
+ } | null;
116
+ readonly recipient: string | null;
117
+ readonly subject: string | null;
118
+ readonly submission: {
119
+ readonly origin: "businessApp" | "campaign" | "direct" | "forwarding" | "journey" | "mailbox" | "scheduled";
120
+ readonly transport: "http" | "smtp" | null;
121
+ readonly credential: {
122
+ readonly kind: "api_key";
123
+ readonly apiKeyId: (string & import("effect/Brand").Brand<"ApiKeyId">) | null;
124
+ readonly name: string | null;
125
+ } | {
126
+ readonly kind: "oauth";
127
+ readonly clientId: string | null;
128
+ readonly name: string | null;
129
+ } | {
130
+ readonly kind: "session";
131
+ } | null;
132
+ readonly user?: {
133
+ readonly id: string & import("effect/Brand").Brand<"UserId">;
134
+ readonly email: string;
135
+ readonly name: string;
136
+ } | null;
137
+ readonly client: {
138
+ readonly surface: "cli" | "mcp" | "typescript-effect" | "typescript-promise";
139
+ readonly version: string;
140
+ } | null;
141
+ } | null;
142
+ readonly requestId: string | null;
143
+ readonly reason: string | null;
144
+ readonly errorTag: string | null;
145
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
146
+ };
147
+ export declare const get: (input: {
148
+ readonly id: string;
149
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"logsGet">;
@@ -0,0 +1,18 @@
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ import { forGroup } from "./internal/operation.js";
3
+ import { logsOperations } from "./descriptors/logs.js";
4
+ import { LogsGroup } from "./generated/logs.js";
5
+ import { events, streamCursor } from "./internal/log-events.js";
6
+ // src/effect/logs.ts
7
+ var logs_exports = /* @__PURE__ */ __exportAll({
8
+ events: () => events,
9
+ get: () => get,
10
+ list: () => list,
11
+ streamCursor: () => streamCursor
12
+ });
13
+ const make = /* @__PURE__ */ forGroup(LogsGroup, logsOperations);
14
+ const list = /* @__PURE__ */ make("logsList");
15
+ const get = /* @__PURE__ */ make("logsGet");
16
+ export { events, get, list, logs_exports, streamCursor };
17
+
18
+ //# sourceMappingURL=logs.js.map