samva 0.51.0 → 0.53.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 (89) hide show
  1. package/AGENTS.md +5 -2
  2. package/README.md +1 -0
  3. package/dist/client/sdk.gen.d.ts +82 -36
  4. package/dist/client/sdk.gen.js +192 -57
  5. package/dist/client/types.gen.d.ts +607 -291
  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/events.d.ts +16 -0
  16. package/dist/effect/generated/agents.js +4 -4
  17. package/dist/effect/generated/campaigns.d.ts +18 -6
  18. package/dist/effect/generated/campaigns.js +2 -6
  19. package/dist/effect/generated/email.js +3 -3
  20. package/dist/effect/generated/events.d.ts +48 -0
  21. package/dist/effect/generated/events.js +1 -1
  22. package/dist/effect/generated/index.d.ts +3 -1
  23. package/dist/effect/generated/integrations-catalog.d.ts +93 -49
  24. package/dist/effect/generated/integrations-catalog.js +17 -28
  25. package/dist/effect/generated/integrations.d.ts +20 -40
  26. package/dist/effect/generated/integrations.js +9 -13
  27. package/dist/effect/generated/journeys.d.ts +1113 -67
  28. package/dist/effect/generated/journeys.js +14 -8
  29. package/dist/effect/generated/logs.d.ts +2323 -0
  30. package/dist/effect/generated/logs.js +312 -0
  31. package/dist/effect/generated/mailboxes.d.ts +38 -24
  32. package/dist/effect/generated/mailboxes.js +22 -21
  33. package/dist/effect/generated/messages.d.ts +11 -882
  34. package/dist/effect/generated/messages.js +4 -243
  35. package/dist/effect/generated/newsletter-domains.d.ts +61 -13
  36. package/dist/effect/generated/newsletter-domains.js +5 -5
  37. package/dist/effect/generated/newsletter-issues.d.ts +166 -34
  38. package/dist/effect/generated/newsletter-issues.js +12 -12
  39. package/dist/effect/generated/newsletters.d.ts +76 -16
  40. package/dist/effect/generated/newsletters.js +6 -6
  41. package/dist/effect/generated/organizations.js +1 -1
  42. package/dist/effect/generated/scheduled-messages.d.ts +36 -0
  43. package/dist/effect/generated/scheduled-messages.js +1 -1
  44. package/dist/effect/generated/shared.d.ts +1706 -442
  45. package/dist/effect/generated/shared.js +370 -93
  46. package/dist/effect/generated/subscriptions.d.ts +4 -4
  47. package/dist/effect/generated/subscriptions.js +2 -6
  48. package/dist/effect/generated/template-registrations.d.ts +46 -10
  49. package/dist/effect/generated/template-registrations.js +4 -4
  50. package/dist/effect/generated/templates.js +2 -2
  51. package/dist/effect/generated/whats-app-flows.d.ts +173 -35
  52. package/dist/effect/generated/whats-app-flows.js +19 -17
  53. package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
  54. package/dist/effect/generated/whats-app-setup-links.js +5 -5
  55. package/dist/effect/generated/whats-app.d.ts +187 -65
  56. package/dist/effect/generated/whats-app.js +18 -24
  57. package/dist/effect/generated-metadata.d.ts +15 -3
  58. package/dist/effect/generated-metadata.js +375 -349
  59. package/dist/effect/index.d.ts +1 -0
  60. package/dist/effect/index.js +2 -1
  61. package/dist/effect/integrations-catalog.d.ts +92 -4
  62. package/dist/effect/integrations.d.ts +40 -8
  63. package/dist/effect/internal/client.js +25 -3
  64. package/dist/effect/internal/log-events.d.ts +19 -0
  65. package/dist/effect/internal/log-events.js +53 -0
  66. package/dist/effect/internal/mailbox-events.d.ts +6 -2
  67. package/dist/effect/internal/mailbox-events.js +4 -3
  68. package/dist/effect/journeys.d.ts +212 -146
  69. package/dist/effect/logs.d.ts +149 -0
  70. package/dist/effect/logs.js +18 -0
  71. package/dist/effect/mailboxes.d.ts +158 -150
  72. package/dist/effect/mailboxes.js +1 -1
  73. package/dist/effect/newsletter-domains.d.ts +2 -2
  74. package/dist/effect/scheduled-messages.d.ts +66 -0
  75. package/dist/effect/whatsapp-flows.d.ts +30 -0
  76. package/dist/effect/whatsapp-setup-links.d.ts +2 -2
  77. package/dist/effect/whatsapp.d.ts +73 -3
  78. package/dist/mailbox-events.d.ts +50 -3
  79. package/dist/mailbox-events.js +38 -19
  80. package/dist/package.js +1 -1
  81. package/dist/promises/client.d.ts +3 -1
  82. package/dist/promises/client.js +3 -1
  83. package/dist/promises/errors.gen.d.ts +2 -0
  84. package/dist/promises/errors.gen.js +137 -34
  85. package/dist/promises/types.gen.d.ts +1 -1
  86. package/dist/request-id.d.ts +3 -0
  87. package/dist/request-id.js +7 -0
  88. package/dist/service-map.d.ts +14 -3
  89. package/package.json +6 -2
@@ -1,15 +1,18 @@
1
1
  export declare const list: ((input?: {
2
+ readonly namespaceId?: string | undefined;
2
3
  readonly status?: "active" | "archived" | "draft" | "paused" | undefined;
3
4
  readonly limit?: number | null | undefined;
4
5
  readonly cursor?: string | undefined;
5
6
  } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"journeysList">) & {
6
7
  readonly pages: (input?: {
8
+ readonly namespaceId?: string | undefined;
7
9
  readonly status?: "active" | "archived" | "draft" | "paused" | undefined;
8
10
  readonly limit?: number | null | undefined;
9
11
  readonly cursor?: string | undefined;
10
12
  } | undefined) => import("effect/Stream").Stream<{
11
13
  readonly items: readonly {
12
14
  readonly id: string & import("effect/Brand").Brand<"JourneyId">;
15
+ readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
13
16
  readonly name: string;
14
17
  readonly status: "active" | "archived" | "draft" | "paused";
15
18
  readonly publishedVersion: number | null;
@@ -20,11 +23,13 @@ export declare const list: ((input?: {
20
23
  readonly nextCursor: string | null;
21
24
  }, 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>;
22
25
  readonly items: (input?: {
26
+ readonly namespaceId?: string | undefined;
23
27
  readonly status?: "active" | "archived" | "draft" | "paused" | undefined;
24
28
  readonly limit?: number | null | undefined;
25
29
  readonly cursor?: string | undefined;
26
30
  } | undefined) => import("effect/Stream").Stream<{
27
31
  readonly id: string & import("effect/Brand").Brand<"JourneyId">;
32
+ readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
28
33
  readonly name: string;
29
34
  readonly status: "active" | "archived" | "draft" | "paused";
30
35
  readonly publishedVersion: number | null;
@@ -35,8 +40,12 @@ export declare const list: ((input?: {
35
40
  };
36
41
  export declare const create: (input: {
37
42
  readonly name: string;
43
+ readonly namespaceId?: string | undefined;
38
44
  readonly definition: {
39
45
  readonly trigger: {
46
+ readonly type: "event";
47
+ readonly eventName: string;
48
+ } | {
40
49
  readonly type: "contact.created";
41
50
  } | {
42
51
  readonly type: "contact.tag_added";
@@ -44,19 +53,10 @@ export declare const create: (input: {
44
53
  } | {
45
54
  readonly type: "contact.joined_group";
46
55
  readonly groupId: string;
47
- } | {
48
- readonly type: "event";
49
- readonly eventName: string;
50
56
  };
51
57
  readonly rootNodeId: string;
52
58
  readonly nodes: {
53
59
  readonly [x: string]: {
54
- readonly type: "exit";
55
- readonly config: {
56
- readonly [x: string]: undefined;
57
- };
58
- readonly next: readonly never[];
59
- } | {
60
60
  readonly type: "send_email";
61
61
  readonly config: {
62
62
  readonly template: string;
@@ -89,71 +89,13 @@ export declare const create: (input: {
89
89
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
90
90
  } | null | undefined;
91
91
  } | undefined;
92
- };
93
- readonly next: readonly {
94
- readonly nodeId: string;
95
- }[];
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;
92
+ readonly eventBindings?: {
93
+ readonly [x: string]: string | undefined;
142
94
  } | undefined;
143
95
  };
144
96
  readonly next: readonly {
145
97
  readonly nodeId: string;
146
98
  }[];
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
99
  } | {
158
100
  readonly type: "send_whatsapp";
159
101
  readonly config: {
@@ -200,10 +142,33 @@ export declare const create: (input: {
200
142
  readonly eventBindings?: {
201
143
  readonly [x: string]: string | undefined;
202
144
  } | undefined;
145
+ readonly flowActionDataBinding?: string | undefined;
203
146
  };
204
147
  readonly next: readonly {
205
148
  readonly nodeId: string;
206
149
  }[];
150
+ } | {
151
+ readonly type: "wait";
152
+ readonly config: {
153
+ readonly durationSeconds: number;
154
+ };
155
+ readonly next: readonly {
156
+ readonly nodeId: string;
157
+ }[];
158
+ } | {
159
+ readonly type: "wait_for_event";
160
+ readonly config: {
161
+ readonly eventName: string;
162
+ readonly correlation?: {
163
+ readonly eventProperty: string;
164
+ readonly entryProperty: string;
165
+ } | undefined;
166
+ readonly timeoutSeconds: number;
167
+ };
168
+ readonly next: readonly {
169
+ readonly nodeId: string;
170
+ readonly outcome: "matched" | "timed_out";
171
+ }[];
207
172
  } | {
208
173
  readonly type: "branch";
209
174
  readonly config: {
@@ -217,10 +182,6 @@ export declare const create: (input: {
217
182
  readonly type: "tag";
218
183
  readonly tag: string;
219
184
  readonly present: boolean;
220
- } | {
221
- readonly type: "event";
222
- readonly eventName: string;
223
- readonly occurred: boolean;
224
185
  } | {
225
186
  readonly type: "property";
226
187
  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 +212,80 @@ export declare const create: (input: {
251
212
  } | {
252
213
  readonly operator: "exists" | "not_exists";
253
214
  };
215
+ } | {
216
+ readonly type: "event";
217
+ readonly eventName: string;
218
+ readonly occurred: boolean;
219
+ } | {
220
+ readonly type: "entry_event_property";
221
+ readonly property: string;
222
+ readonly comparison: {
223
+ readonly operator: "eq" | "neq";
224
+ readonly value: string | number | boolean | null;
225
+ } | {
226
+ readonly operator: "gt" | "gte" | "lt" | "lte";
227
+ readonly value: number;
228
+ } | {
229
+ readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
230
+ readonly value: string;
231
+ } | {
232
+ readonly operator: "exists" | "not_exists";
233
+ };
254
234
  })[];
255
235
  } | undefined;
256
236
  }[];
237
+ } | {
238
+ readonly type: "update_tags";
239
+ readonly config: {
240
+ readonly add: readonly string[];
241
+ readonly remove: readonly string[];
242
+ };
243
+ readonly next: readonly {
244
+ readonly nodeId: string;
245
+ }[];
246
+ } | {
247
+ readonly type: "webhook";
248
+ readonly config: {
249
+ readonly data?: {
250
+ 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 | {
251
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
252
+ } | null)[] | {
253
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
254
+ } | null)[] | {
255
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
256
+ } | null)[] | {
257
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
258
+ } | null)[] | {
259
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
260
+ } | null)[] | {
261
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
262
+ } | null)[] | {
263
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
264
+ } | null)[] | {
265
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
266
+ } | null)[] | {
267
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
268
+ } | null)[] | {
269
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
270
+ } | null)[] | {
271
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
272
+ } | null)[] | {
273
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
274
+ } | null | undefined;
275
+ } | undefined;
276
+ readonly eventBindings?: {
277
+ readonly [x: string]: string | undefined;
278
+ } | undefined;
279
+ };
280
+ readonly next: readonly {
281
+ readonly nodeId: string;
282
+ }[];
283
+ } | {
284
+ readonly type: "exit";
285
+ readonly config: {
286
+ readonly [x: string]: undefined;
287
+ };
288
+ readonly next: readonly never[];
257
289
  } | undefined;
258
290
  };
259
291
  readonly goal?: {
@@ -263,6 +295,9 @@ export declare const create: (input: {
263
295
  readonly enrollment?: {
264
296
  readonly type: "shopify_order";
265
297
  readonly shop: string;
298
+ } | {
299
+ readonly type: "event_property";
300
+ readonly property: string;
266
301
  } | undefined;
267
302
  };
268
303
  }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"journeysCreate">;
@@ -281,6 +316,9 @@ export declare const replaceDraft: (input: {
281
316
  readonly revision: string;
282
317
  readonly definition: {
283
318
  readonly trigger: {
319
+ readonly type: "event";
320
+ readonly eventName: string;
321
+ } | {
284
322
  readonly type: "contact.created";
285
323
  } | {
286
324
  readonly type: "contact.tag_added";
@@ -288,19 +326,10 @@ export declare const replaceDraft: (input: {
288
326
  } | {
289
327
  readonly type: "contact.joined_group";
290
328
  readonly groupId: string;
291
- } | {
292
- readonly type: "event";
293
- readonly eventName: string;
294
329
  };
295
330
  readonly rootNodeId: string;
296
331
  readonly nodes: {
297
332
  readonly [x: string]: {
298
- readonly type: "exit";
299
- readonly config: {
300
- readonly [x: string]: undefined;
301
- };
302
- readonly next: readonly never[];
303
- } | {
304
333
  readonly type: "send_email";
305
334
  readonly config: {
306
335
  readonly template: string;
@@ -333,71 +362,13 @@ export declare const replaceDraft: (input: {
333
362
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
334
363
  } | null | undefined;
335
364
  } | undefined;
336
- };
337
- readonly next: readonly {
338
- readonly nodeId: string;
339
- }[];
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;
365
+ readonly eventBindings?: {
366
+ readonly [x: string]: string | undefined;
386
367
  } | undefined;
387
368
  };
388
369
  readonly next: readonly {
389
370
  readonly nodeId: string;
390
371
  }[];
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
372
  } | {
402
373
  readonly type: "send_whatsapp";
403
374
  readonly config: {
@@ -444,10 +415,33 @@ export declare const replaceDraft: (input: {
444
415
  readonly eventBindings?: {
445
416
  readonly [x: string]: string | undefined;
446
417
  } | undefined;
418
+ readonly flowActionDataBinding?: string | undefined;
447
419
  };
448
420
  readonly next: readonly {
449
421
  readonly nodeId: string;
450
422
  }[];
423
+ } | {
424
+ readonly type: "wait";
425
+ readonly config: {
426
+ readonly durationSeconds: number;
427
+ };
428
+ readonly next: readonly {
429
+ readonly nodeId: string;
430
+ }[];
431
+ } | {
432
+ readonly type: "wait_for_event";
433
+ readonly config: {
434
+ readonly eventName: string;
435
+ readonly correlation?: {
436
+ readonly eventProperty: string;
437
+ readonly entryProperty: string;
438
+ } | undefined;
439
+ readonly timeoutSeconds: number;
440
+ };
441
+ readonly next: readonly {
442
+ readonly nodeId: string;
443
+ readonly outcome: "matched" | "timed_out";
444
+ }[];
451
445
  } | {
452
446
  readonly type: "branch";
453
447
  readonly config: {
@@ -461,10 +455,6 @@ export declare const replaceDraft: (input: {
461
455
  readonly type: "tag";
462
456
  readonly tag: string;
463
457
  readonly present: boolean;
464
- } | {
465
- readonly type: "event";
466
- readonly eventName: string;
467
- readonly occurred: boolean;
468
458
  } | {
469
459
  readonly type: "property";
470
460
  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 +485,80 @@ export declare const replaceDraft: (input: {
495
485
  } | {
496
486
  readonly operator: "exists" | "not_exists";
497
487
  };
488
+ } | {
489
+ readonly type: "event";
490
+ readonly eventName: string;
491
+ readonly occurred: boolean;
492
+ } | {
493
+ readonly type: "entry_event_property";
494
+ readonly property: string;
495
+ readonly comparison: {
496
+ readonly operator: "eq" | "neq";
497
+ readonly value: string | number | boolean | null;
498
+ } | {
499
+ readonly operator: "gt" | "gte" | "lt" | "lte";
500
+ readonly value: number;
501
+ } | {
502
+ readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
503
+ readonly value: string;
504
+ } | {
505
+ readonly operator: "exists" | "not_exists";
506
+ };
498
507
  })[];
499
508
  } | undefined;
500
509
  }[];
510
+ } | {
511
+ readonly type: "update_tags";
512
+ readonly config: {
513
+ readonly add: readonly string[];
514
+ readonly remove: readonly string[];
515
+ };
516
+ readonly next: readonly {
517
+ readonly nodeId: string;
518
+ }[];
519
+ } | {
520
+ readonly type: "webhook";
521
+ readonly config: {
522
+ readonly data?: {
523
+ 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 | {
524
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
525
+ } | null)[] | {
526
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
527
+ } | null)[] | {
528
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
529
+ } | null)[] | {
530
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
531
+ } | null)[] | {
532
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
533
+ } | null)[] | {
534
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
535
+ } | null)[] | {
536
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
537
+ } | null)[] | {
538
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
539
+ } | null)[] | {
540
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
541
+ } | null)[] | {
542
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
543
+ } | null)[] | {
544
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
545
+ } | null)[] | {
546
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
547
+ } | null | undefined;
548
+ } | undefined;
549
+ readonly eventBindings?: {
550
+ readonly [x: string]: string | undefined;
551
+ } | undefined;
552
+ };
553
+ readonly next: readonly {
554
+ readonly nodeId: string;
555
+ }[];
556
+ } | {
557
+ readonly type: "exit";
558
+ readonly config: {
559
+ readonly [x: string]: undefined;
560
+ };
561
+ readonly next: readonly never[];
501
562
  } | undefined;
502
563
  };
503
564
  readonly goal?: {
@@ -507,6 +568,9 @@ export declare const replaceDraft: (input: {
507
568
  readonly enrollment?: {
508
569
  readonly type: "shopify_order";
509
570
  readonly shop: string;
571
+ } | {
572
+ readonly type: "event_property";
573
+ readonly property: string;
510
574
  } | undefined;
511
575
  };
512
576
  }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"journeysReplaceDraft">;
@@ -547,6 +611,7 @@ export declare const listRuns: ((input: {
547
611
  }) => import("effect/Stream").Stream<{
548
612
  readonly items: readonly {
549
613
  readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
614
+ readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
550
615
  readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
551
616
  readonly version: number;
552
617
  readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
@@ -576,6 +641,7 @@ export declare const listRuns: ((input: {
576
641
  readonly cursor?: string | undefined;
577
642
  }) => import("effect/Stream").Stream<{
578
643
  readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
644
+ readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
579
645
  readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
580
646
  readonly version: number;
581
647
  readonly contactId: string & import("effect/Brand").Brand<"ContactId">;