@hermeticacomms/sdk-node 0.1.0 → 0.4.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/dist/contracts/auth.d.ts +10 -6
- package/dist/contracts/auth.js +14 -5
- package/dist/contracts/billing.d.ts +2 -0
- package/dist/contracts/billing.js +2 -1
- package/dist/contracts/campaigns.d.ts +6 -9
- package/dist/contracts/campaigns.js +9 -2
- package/dist/contracts/consent.d.ts +24 -0
- package/dist/contracts/consent.js +15 -1
- package/dist/contracts/content-blocks.d.ts +1 -0
- package/dist/contracts/content-blocks.js +5 -3
- package/dist/contracts/content-library.d.ts +8 -0
- package/dist/contracts/content-library.js +3 -1
- package/dist/contracts/content.d.ts +6 -0
- package/dist/contracts/content.js +5 -3
- package/dist/contracts/delivery.d.ts +3 -0
- package/dist/contracts/delivery.js +6 -0
- package/dist/contracts/events.d.ts +2 -1
- package/dist/contracts/events.js +4 -2
- package/dist/contracts/experiments.d.ts +4 -2
- package/dist/contracts/experiments.js +7 -3
- package/dist/contracts/identity.d.ts +6 -1
- package/dist/contracts/identity.js +5 -4
- package/dist/contracts/integrations.d.ts +66 -2
- package/dist/contracts/integrations.js +32 -5
- package/dist/contracts/metrics.d.ts +6 -1
- package/dist/contracts/metrics.js +8 -2
- package/dist/contracts/outbound.d.ts +25 -0
- package/dist/contracts/outbound.js +14 -5
- package/dist/contracts/pickers.d.ts +1 -1
- package/dist/contracts/pickers.js +1 -1
- package/dist/contracts/platform-admin.d.ts +14 -0
- package/dist/contracts/platform-admin.js +7 -0
- package/dist/contracts/segments.d.ts +5 -0
- package/dist/contracts/segments.js +8 -3
- package/dist/contracts/workflow-nodes.d.ts +12 -0
- package/dist/contracts/workflow-nodes.js +5 -0
- package/dist/contracts/workflows.d.ts +398 -0
- package/dist/contracts/workflows.js +11 -2
- package/dist/index.d.ts +126 -2
- package/dist/resources.d.ts +20 -0
- package/dist/x10.d.ts +1 -0
- package/dist/z10.d.ts +5 -0
- package/package.json +1 -1
|
@@ -841,6 +841,36 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
841
841
|
dedupeKeyTemplate: z.ZodString;
|
|
842
842
|
}, z.core.$strip>], "mode">>;
|
|
843
843
|
type: z.ZodLiteral<"meeting_booked">;
|
|
844
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
845
|
+
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
846
|
+
mode: z.ZodLiteral<"never">;
|
|
847
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
848
|
+
mode: z.ZodLiteral<"once">;
|
|
849
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
850
|
+
mode: z.ZodLiteral<"after_completion">;
|
|
851
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
852
|
+
mode: z.ZodLiteral<"after_cooldown">;
|
|
853
|
+
cooldown: z.ZodObject<{
|
|
854
|
+
amount: z.ZodNumber;
|
|
855
|
+
unit: z.ZodEnum<{
|
|
856
|
+
days: "days";
|
|
857
|
+
hours: "hours";
|
|
858
|
+
minutes: "minutes";
|
|
859
|
+
weeks: "weeks";
|
|
860
|
+
}>;
|
|
861
|
+
}, z.core.$strip>;
|
|
862
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
863
|
+
mode: z.ZodLiteral<"concurrent">;
|
|
864
|
+
dedupeKeyTemplate: z.ZodString;
|
|
865
|
+
}, z.core.$strip>], "mode">>;
|
|
866
|
+
type: z.ZodLiteral<"lead_signal">;
|
|
867
|
+
signalType: z.ZodOptional<z.ZodEnum<{
|
|
868
|
+
funding: "funding";
|
|
869
|
+
hiring: "hiring";
|
|
870
|
+
job_change: "job_change";
|
|
871
|
+
new_hire: "new_hire";
|
|
872
|
+
website_visit: "website_visit";
|
|
873
|
+
}>>;
|
|
844
874
|
}, z.core.$strip>, z.ZodObject<{
|
|
845
875
|
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
846
876
|
mode: z.ZodLiteral<"never">;
|
|
@@ -5102,6 +5132,18 @@ export declare const WorkflowGraph: z.ZodObject<{
|
|
|
5102
5132
|
y: z.ZodNumber;
|
|
5103
5133
|
}, z.core.$strip>>;
|
|
5104
5134
|
name: z.ZodOptional<z.ZodString>;
|
|
5135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5136
|
+
id: z.ZodString;
|
|
5137
|
+
type: z.ZodLiteral<"send_social_dm">;
|
|
5138
|
+
config: z.ZodObject<{
|
|
5139
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
5140
|
+
text: z.ZodString;
|
|
5141
|
+
}, z.core.$strip>;
|
|
5142
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
5143
|
+
x: z.ZodNumber;
|
|
5144
|
+
y: z.ZodNumber;
|
|
5145
|
+
}, z.core.$strip>>;
|
|
5146
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5105
5147
|
}, z.core.$strip>, z.ZodObject<{
|
|
5106
5148
|
id: z.ZodString;
|
|
5107
5149
|
type: z.ZodLiteral<"ad_audience">;
|
|
@@ -7080,6 +7122,18 @@ export declare const WorkflowDefinition: z.ZodObject<{
|
|
|
7080
7122
|
y: z.ZodNumber;
|
|
7081
7123
|
}, z.core.$strip>>;
|
|
7082
7124
|
name: z.ZodOptional<z.ZodString>;
|
|
7125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7126
|
+
id: z.ZodString;
|
|
7127
|
+
type: z.ZodLiteral<"send_social_dm">;
|
|
7128
|
+
config: z.ZodObject<{
|
|
7129
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
7130
|
+
text: z.ZodString;
|
|
7131
|
+
}, z.core.$strip>;
|
|
7132
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
7133
|
+
x: z.ZodNumber;
|
|
7134
|
+
y: z.ZodNumber;
|
|
7135
|
+
}, z.core.$strip>>;
|
|
7136
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7083
7137
|
}, z.core.$strip>, z.ZodObject<{
|
|
7084
7138
|
id: z.ZodString;
|
|
7085
7139
|
type: z.ZodLiteral<"ad_audience">;
|
|
@@ -7893,6 +7947,36 @@ export declare const WorkflowDefinition: z.ZodObject<{
|
|
|
7893
7947
|
dedupeKeyTemplate: z.ZodString;
|
|
7894
7948
|
}, z.core.$strip>], "mode">>;
|
|
7895
7949
|
type: z.ZodLiteral<"meeting_booked">;
|
|
7950
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7951
|
+
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7952
|
+
mode: z.ZodLiteral<"never">;
|
|
7953
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7954
|
+
mode: z.ZodLiteral<"once">;
|
|
7955
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7956
|
+
mode: z.ZodLiteral<"after_completion">;
|
|
7957
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7958
|
+
mode: z.ZodLiteral<"after_cooldown">;
|
|
7959
|
+
cooldown: z.ZodObject<{
|
|
7960
|
+
amount: z.ZodNumber;
|
|
7961
|
+
unit: z.ZodEnum<{
|
|
7962
|
+
days: "days";
|
|
7963
|
+
hours: "hours";
|
|
7964
|
+
minutes: "minutes";
|
|
7965
|
+
weeks: "weeks";
|
|
7966
|
+
}>;
|
|
7967
|
+
}, z.core.$strip>;
|
|
7968
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7969
|
+
mode: z.ZodLiteral<"concurrent">;
|
|
7970
|
+
dedupeKeyTemplate: z.ZodString;
|
|
7971
|
+
}, z.core.$strip>], "mode">>;
|
|
7972
|
+
type: z.ZodLiteral<"lead_signal">;
|
|
7973
|
+
signalType: z.ZodOptional<z.ZodEnum<{
|
|
7974
|
+
funding: "funding";
|
|
7975
|
+
hiring: "hiring";
|
|
7976
|
+
job_change: "job_change";
|
|
7977
|
+
new_hire: "new_hire";
|
|
7978
|
+
website_visit: "website_visit";
|
|
7979
|
+
}>>;
|
|
7896
7980
|
}, z.core.$strip>, z.ZodObject<{
|
|
7897
7981
|
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7898
7982
|
mode: z.ZodLiteral<"never">;
|
|
@@ -12176,6 +12260,18 @@ export declare const ValidateBody: z.ZodObject<{
|
|
|
12176
12260
|
y: z.ZodNumber;
|
|
12177
12261
|
}, z.core.$strip>>;
|
|
12178
12262
|
name: z.ZodOptional<z.ZodString>;
|
|
12263
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12264
|
+
id: z.ZodString;
|
|
12265
|
+
type: z.ZodLiteral<"send_social_dm">;
|
|
12266
|
+
config: z.ZodObject<{
|
|
12267
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
12268
|
+
text: z.ZodString;
|
|
12269
|
+
}, z.core.$strip>;
|
|
12270
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
12271
|
+
x: z.ZodNumber;
|
|
12272
|
+
y: z.ZodNumber;
|
|
12273
|
+
}, z.core.$strip>>;
|
|
12274
|
+
name: z.ZodOptional<z.ZodString>;
|
|
12179
12275
|
}, z.core.$strip>, z.ZodObject<{
|
|
12180
12276
|
id: z.ZodString;
|
|
12181
12277
|
type: z.ZodLiteral<"ad_audience">;
|
|
@@ -12989,6 +13085,36 @@ export declare const ValidateBody: z.ZodObject<{
|
|
|
12989
13085
|
dedupeKeyTemplate: z.ZodString;
|
|
12990
13086
|
}, z.core.$strip>], "mode">>;
|
|
12991
13087
|
type: z.ZodLiteral<"meeting_booked">;
|
|
13088
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13089
|
+
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13090
|
+
mode: z.ZodLiteral<"never">;
|
|
13091
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13092
|
+
mode: z.ZodLiteral<"once">;
|
|
13093
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13094
|
+
mode: z.ZodLiteral<"after_completion">;
|
|
13095
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13096
|
+
mode: z.ZodLiteral<"after_cooldown">;
|
|
13097
|
+
cooldown: z.ZodObject<{
|
|
13098
|
+
amount: z.ZodNumber;
|
|
13099
|
+
unit: z.ZodEnum<{
|
|
13100
|
+
days: "days";
|
|
13101
|
+
hours: "hours";
|
|
13102
|
+
minutes: "minutes";
|
|
13103
|
+
weeks: "weeks";
|
|
13104
|
+
}>;
|
|
13105
|
+
}, z.core.$strip>;
|
|
13106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13107
|
+
mode: z.ZodLiteral<"concurrent">;
|
|
13108
|
+
dedupeKeyTemplate: z.ZodString;
|
|
13109
|
+
}, z.core.$strip>], "mode">>;
|
|
13110
|
+
type: z.ZodLiteral<"lead_signal">;
|
|
13111
|
+
signalType: z.ZodOptional<z.ZodEnum<{
|
|
13112
|
+
funding: "funding";
|
|
13113
|
+
hiring: "hiring";
|
|
13114
|
+
job_change: "job_change";
|
|
13115
|
+
new_hire: "new_hire";
|
|
13116
|
+
website_visit: "website_visit";
|
|
13117
|
+
}>>;
|
|
12992
13118
|
}, z.core.$strip>, z.ZodObject<{
|
|
12993
13119
|
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12994
13120
|
mode: z.ZodLiteral<"never">;
|
|
@@ -17248,6 +17374,18 @@ export declare const CreateWorkflowBody: z.ZodObject<{
|
|
|
17248
17374
|
y: z.ZodNumber;
|
|
17249
17375
|
}, z.core.$strip>>;
|
|
17250
17376
|
name: z.ZodOptional<z.ZodString>;
|
|
17377
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17378
|
+
id: z.ZodString;
|
|
17379
|
+
type: z.ZodLiteral<"send_social_dm">;
|
|
17380
|
+
config: z.ZodObject<{
|
|
17381
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
17382
|
+
text: z.ZodString;
|
|
17383
|
+
}, z.core.$strip>;
|
|
17384
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
17385
|
+
x: z.ZodNumber;
|
|
17386
|
+
y: z.ZodNumber;
|
|
17387
|
+
}, z.core.$strip>>;
|
|
17388
|
+
name: z.ZodOptional<z.ZodString>;
|
|
17251
17389
|
}, z.core.$strip>, z.ZodObject<{
|
|
17252
17390
|
id: z.ZodString;
|
|
17253
17391
|
type: z.ZodLiteral<"ad_audience">;
|
|
@@ -18061,6 +18199,36 @@ export declare const CreateWorkflowBody: z.ZodObject<{
|
|
|
18061
18199
|
dedupeKeyTemplate: z.ZodString;
|
|
18062
18200
|
}, z.core.$strip>], "mode">>;
|
|
18063
18201
|
type: z.ZodLiteral<"meeting_booked">;
|
|
18202
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18203
|
+
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18204
|
+
mode: z.ZodLiteral<"never">;
|
|
18205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18206
|
+
mode: z.ZodLiteral<"once">;
|
|
18207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18208
|
+
mode: z.ZodLiteral<"after_completion">;
|
|
18209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18210
|
+
mode: z.ZodLiteral<"after_cooldown">;
|
|
18211
|
+
cooldown: z.ZodObject<{
|
|
18212
|
+
amount: z.ZodNumber;
|
|
18213
|
+
unit: z.ZodEnum<{
|
|
18214
|
+
days: "days";
|
|
18215
|
+
hours: "hours";
|
|
18216
|
+
minutes: "minutes";
|
|
18217
|
+
weeks: "weeks";
|
|
18218
|
+
}>;
|
|
18219
|
+
}, z.core.$strip>;
|
|
18220
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18221
|
+
mode: z.ZodLiteral<"concurrent">;
|
|
18222
|
+
dedupeKeyTemplate: z.ZodString;
|
|
18223
|
+
}, z.core.$strip>], "mode">>;
|
|
18224
|
+
type: z.ZodLiteral<"lead_signal">;
|
|
18225
|
+
signalType: z.ZodOptional<z.ZodEnum<{
|
|
18226
|
+
funding: "funding";
|
|
18227
|
+
hiring: "hiring";
|
|
18228
|
+
job_change: "job_change";
|
|
18229
|
+
new_hire: "new_hire";
|
|
18230
|
+
website_visit: "website_visit";
|
|
18231
|
+
}>>;
|
|
18064
18232
|
}, z.core.$strip>, z.ZodObject<{
|
|
18065
18233
|
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18066
18234
|
mode: z.ZodLiteral<"never">;
|
|
@@ -20353,6 +20521,7 @@ export declare const CreateWorkflowBody: z.ZodObject<{
|
|
|
20353
20521
|
}, z.core.$strip>>;
|
|
20354
20522
|
}, z.core.$strip>>;
|
|
20355
20523
|
}, z.core.$strip>>;
|
|
20524
|
+
app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20356
20525
|
}, z.core.$strip>;
|
|
20357
20526
|
export declare const WorkflowColor: z.ZodString;
|
|
20358
20527
|
export declare const UpdateWorkflowBody: z.ZodObject<{
|
|
@@ -22312,6 +22481,18 @@ export declare const UpdateWorkflowBody: z.ZodObject<{
|
|
|
22312
22481
|
y: z.ZodNumber;
|
|
22313
22482
|
}, z.core.$strip>>;
|
|
22314
22483
|
name: z.ZodOptional<z.ZodString>;
|
|
22484
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22485
|
+
id: z.ZodString;
|
|
22486
|
+
type: z.ZodLiteral<"send_social_dm">;
|
|
22487
|
+
config: z.ZodObject<{
|
|
22488
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
22489
|
+
text: z.ZodString;
|
|
22490
|
+
}, z.core.$strip>;
|
|
22491
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
22492
|
+
x: z.ZodNumber;
|
|
22493
|
+
y: z.ZodNumber;
|
|
22494
|
+
}, z.core.$strip>>;
|
|
22495
|
+
name: z.ZodOptional<z.ZodString>;
|
|
22315
22496
|
}, z.core.$strip>, z.ZodObject<{
|
|
22316
22497
|
id: z.ZodString;
|
|
22317
22498
|
type: z.ZodLiteral<"ad_audience">;
|
|
@@ -23125,6 +23306,36 @@ export declare const UpdateWorkflowBody: z.ZodObject<{
|
|
|
23125
23306
|
dedupeKeyTemplate: z.ZodString;
|
|
23126
23307
|
}, z.core.$strip>], "mode">>;
|
|
23127
23308
|
type: z.ZodLiteral<"meeting_booked">;
|
|
23309
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23310
|
+
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23311
|
+
mode: z.ZodLiteral<"never">;
|
|
23312
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23313
|
+
mode: z.ZodLiteral<"once">;
|
|
23314
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23315
|
+
mode: z.ZodLiteral<"after_completion">;
|
|
23316
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23317
|
+
mode: z.ZodLiteral<"after_cooldown">;
|
|
23318
|
+
cooldown: z.ZodObject<{
|
|
23319
|
+
amount: z.ZodNumber;
|
|
23320
|
+
unit: z.ZodEnum<{
|
|
23321
|
+
days: "days";
|
|
23322
|
+
hours: "hours";
|
|
23323
|
+
minutes: "minutes";
|
|
23324
|
+
weeks: "weeks";
|
|
23325
|
+
}>;
|
|
23326
|
+
}, z.core.$strip>;
|
|
23327
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23328
|
+
mode: z.ZodLiteral<"concurrent">;
|
|
23329
|
+
dedupeKeyTemplate: z.ZodString;
|
|
23330
|
+
}, z.core.$strip>], "mode">>;
|
|
23331
|
+
type: z.ZodLiteral<"lead_signal">;
|
|
23332
|
+
signalType: z.ZodOptional<z.ZodEnum<{
|
|
23333
|
+
funding: "funding";
|
|
23334
|
+
hiring: "hiring";
|
|
23335
|
+
job_change: "job_change";
|
|
23336
|
+
new_hire: "new_hire";
|
|
23337
|
+
website_visit: "website_visit";
|
|
23338
|
+
}>>;
|
|
23128
23339
|
}, z.core.$strip>, z.ZodObject<{
|
|
23129
23340
|
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23130
23341
|
mode: z.ZodLiteral<"never">;
|
|
@@ -25417,6 +25628,7 @@ export declare const UpdateWorkflowBody: z.ZodObject<{
|
|
|
25417
25628
|
}, z.core.$strip>>;
|
|
25418
25629
|
}, z.core.$strip>;
|
|
25419
25630
|
}, z.core.$strip>>;
|
|
25631
|
+
app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25420
25632
|
}, z.core.$strip>;
|
|
25421
25633
|
/** `started*` is when the first version went live. Sorts other than the default (newest id first) still page by cursor. */
|
|
25422
25634
|
export declare const WorkflowListQuery: z.ZodObject<{
|
|
@@ -25445,6 +25657,7 @@ export declare const WorkflowListQuery: z.ZodObject<{
|
|
|
25445
25657
|
updatedTo: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
25446
25658
|
startedFrom: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
25447
25659
|
startedTo: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
25660
|
+
app: z.ZodOptional<z.ZodString>;
|
|
25448
25661
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
25449
25662
|
"-created": "-created";
|
|
25450
25663
|
"-name": "-name";
|
|
@@ -25486,6 +25699,7 @@ export declare const WorkflowDto: z.ZodObject<{
|
|
|
25486
25699
|
folder: z.ZodNullable<z.ZodString>;
|
|
25487
25700
|
tags: z.ZodArray<z.ZodString>;
|
|
25488
25701
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25702
|
+
app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25489
25703
|
draftGraph: z.ZodUnknown;
|
|
25490
25704
|
draftTriggers: z.ZodUnknown;
|
|
25491
25705
|
draftSettings: z.ZodUnknown;
|
|
@@ -25523,6 +25737,7 @@ export declare const WorkflowPage: z.ZodObject<{
|
|
|
25523
25737
|
folder: z.ZodNullable<z.ZodString>;
|
|
25524
25738
|
tags: z.ZodArray<z.ZodString>;
|
|
25525
25739
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25740
|
+
app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25526
25741
|
draftGraph: z.ZodUnknown;
|
|
25527
25742
|
draftTriggers: z.ZodUnknown;
|
|
25528
25743
|
draftSettings: z.ZodUnknown;
|
|
@@ -27642,6 +27857,18 @@ export declare const SimulateBody: z.ZodObject<{
|
|
|
27642
27857
|
y: z.ZodNumber;
|
|
27643
27858
|
}, z.core.$strip>>;
|
|
27644
27859
|
name: z.ZodOptional<z.ZodString>;
|
|
27860
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27861
|
+
id: z.ZodString;
|
|
27862
|
+
type: z.ZodLiteral<"send_social_dm">;
|
|
27863
|
+
config: z.ZodObject<{
|
|
27864
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
27865
|
+
text: z.ZodString;
|
|
27866
|
+
}, z.core.$strip>;
|
|
27867
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
27868
|
+
x: z.ZodNumber;
|
|
27869
|
+
y: z.ZodNumber;
|
|
27870
|
+
}, z.core.$strip>>;
|
|
27871
|
+
name: z.ZodOptional<z.ZodString>;
|
|
27645
27872
|
}, z.core.$strip>, z.ZodObject<{
|
|
27646
27873
|
id: z.ZodString;
|
|
27647
27874
|
type: z.ZodLiteral<"ad_audience">;
|
|
@@ -28455,6 +28682,36 @@ export declare const SimulateBody: z.ZodObject<{
|
|
|
28455
28682
|
dedupeKeyTemplate: z.ZodString;
|
|
28456
28683
|
}, z.core.$strip>], "mode">>;
|
|
28457
28684
|
type: z.ZodLiteral<"meeting_booked">;
|
|
28685
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28686
|
+
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28687
|
+
mode: z.ZodLiteral<"never">;
|
|
28688
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28689
|
+
mode: z.ZodLiteral<"once">;
|
|
28690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28691
|
+
mode: z.ZodLiteral<"after_completion">;
|
|
28692
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28693
|
+
mode: z.ZodLiteral<"after_cooldown">;
|
|
28694
|
+
cooldown: z.ZodObject<{
|
|
28695
|
+
amount: z.ZodNumber;
|
|
28696
|
+
unit: z.ZodEnum<{
|
|
28697
|
+
days: "days";
|
|
28698
|
+
hours: "hours";
|
|
28699
|
+
minutes: "minutes";
|
|
28700
|
+
weeks: "weeks";
|
|
28701
|
+
}>;
|
|
28702
|
+
}, z.core.$strip>;
|
|
28703
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28704
|
+
mode: z.ZodLiteral<"concurrent">;
|
|
28705
|
+
dedupeKeyTemplate: z.ZodString;
|
|
28706
|
+
}, z.core.$strip>], "mode">>;
|
|
28707
|
+
type: z.ZodLiteral<"lead_signal">;
|
|
28708
|
+
signalType: z.ZodOptional<z.ZodEnum<{
|
|
28709
|
+
funding: "funding";
|
|
28710
|
+
hiring: "hiring";
|
|
28711
|
+
job_change: "job_change";
|
|
28712
|
+
new_hire: "new_hire";
|
|
28713
|
+
website_visit: "website_visit";
|
|
28714
|
+
}>>;
|
|
28458
28715
|
}, z.core.$strip>, z.ZodObject<{
|
|
28459
28716
|
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28460
28717
|
mode: z.ZodLiteral<"never">;
|
|
@@ -32789,6 +33046,18 @@ export declare const WorkflowTemplateDto: z.ZodObject<{
|
|
|
32789
33046
|
y: z.ZodNumber;
|
|
32790
33047
|
}, z.core.$strip>>;
|
|
32791
33048
|
name: z.ZodOptional<z.ZodString>;
|
|
33049
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33050
|
+
id: z.ZodString;
|
|
33051
|
+
type: z.ZodLiteral<"send_social_dm">;
|
|
33052
|
+
config: z.ZodObject<{
|
|
33053
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
33054
|
+
text: z.ZodString;
|
|
33055
|
+
}, z.core.$strip>;
|
|
33056
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
33057
|
+
x: z.ZodNumber;
|
|
33058
|
+
y: z.ZodNumber;
|
|
33059
|
+
}, z.core.$strip>>;
|
|
33060
|
+
name: z.ZodOptional<z.ZodString>;
|
|
32792
33061
|
}, z.core.$strip>, z.ZodObject<{
|
|
32793
33062
|
id: z.ZodString;
|
|
32794
33063
|
type: z.ZodLiteral<"ad_audience">;
|
|
@@ -33602,6 +33871,36 @@ export declare const WorkflowTemplateDto: z.ZodObject<{
|
|
|
33602
33871
|
dedupeKeyTemplate: z.ZodString;
|
|
33603
33872
|
}, z.core.$strip>], "mode">>;
|
|
33604
33873
|
type: z.ZodLiteral<"meeting_booked">;
|
|
33874
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33875
|
+
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33876
|
+
mode: z.ZodLiteral<"never">;
|
|
33877
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33878
|
+
mode: z.ZodLiteral<"once">;
|
|
33879
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33880
|
+
mode: z.ZodLiteral<"after_completion">;
|
|
33881
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33882
|
+
mode: z.ZodLiteral<"after_cooldown">;
|
|
33883
|
+
cooldown: z.ZodObject<{
|
|
33884
|
+
amount: z.ZodNumber;
|
|
33885
|
+
unit: z.ZodEnum<{
|
|
33886
|
+
days: "days";
|
|
33887
|
+
hours: "hours";
|
|
33888
|
+
minutes: "minutes";
|
|
33889
|
+
weeks: "weeks";
|
|
33890
|
+
}>;
|
|
33891
|
+
}, z.core.$strip>;
|
|
33892
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33893
|
+
mode: z.ZodLiteral<"concurrent">;
|
|
33894
|
+
dedupeKeyTemplate: z.ZodString;
|
|
33895
|
+
}, z.core.$strip>], "mode">>;
|
|
33896
|
+
type: z.ZodLiteral<"lead_signal">;
|
|
33897
|
+
signalType: z.ZodOptional<z.ZodEnum<{
|
|
33898
|
+
funding: "funding";
|
|
33899
|
+
hiring: "hiring";
|
|
33900
|
+
job_change: "job_change";
|
|
33901
|
+
new_hire: "new_hire";
|
|
33902
|
+
website_visit: "website_visit";
|
|
33903
|
+
}>>;
|
|
33605
33904
|
}, z.core.$strip>, z.ZodObject<{
|
|
33606
33905
|
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33607
33906
|
mode: z.ZodLiteral<"never">;
|
|
@@ -35909,6 +36208,20 @@ export declare const WorkflowTemplateDto: z.ZodObject<{
|
|
|
35909
36208
|
smsConsent: z.ZodBoolean;
|
|
35910
36209
|
dateFields: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
35911
36210
|
}, z.core.$strip>>;
|
|
36211
|
+
happyPreset: z.ZodOptional<z.ZodObject<{
|
|
36212
|
+
triggerEvent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
36213
|
+
events: z.ZodArray<z.ZodObject<{
|
|
36214
|
+
name: z.ZodString;
|
|
36215
|
+
afterHours: z.ZodNumber;
|
|
36216
|
+
}, z.core.$strip>>;
|
|
36217
|
+
waitOutcomes: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
36218
|
+
happens: "happens";
|
|
36219
|
+
never: "never";
|
|
36220
|
+
}>>;
|
|
36221
|
+
tags: z.ZodArray<z.ZodString>;
|
|
36222
|
+
smsConsent: z.ZodBoolean;
|
|
36223
|
+
dateFields: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
36224
|
+
}, z.core.$strip>>;
|
|
35912
36225
|
category: z.ZodDefault<z.ZodString>;
|
|
35913
36226
|
requires: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
35914
36227
|
missing: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -37883,6 +38196,18 @@ export declare const ExportDto: z.ZodObject<{
|
|
|
37883
38196
|
y: z.ZodNumber;
|
|
37884
38197
|
}, z.core.$strip>>;
|
|
37885
38198
|
name: z.ZodOptional<z.ZodString>;
|
|
38199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
38200
|
+
id: z.ZodString;
|
|
38201
|
+
type: z.ZodLiteral<"send_social_dm">;
|
|
38202
|
+
config: z.ZodObject<{
|
|
38203
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
38204
|
+
text: z.ZodString;
|
|
38205
|
+
}, z.core.$strip>;
|
|
38206
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
38207
|
+
x: z.ZodNumber;
|
|
38208
|
+
y: z.ZodNumber;
|
|
38209
|
+
}, z.core.$strip>>;
|
|
38210
|
+
name: z.ZodOptional<z.ZodString>;
|
|
37886
38211
|
}, z.core.$strip>, z.ZodObject<{
|
|
37887
38212
|
id: z.ZodString;
|
|
37888
38213
|
type: z.ZodLiteral<"ad_audience">;
|
|
@@ -38696,6 +39021,36 @@ export declare const ExportDto: z.ZodObject<{
|
|
|
38696
39021
|
dedupeKeyTemplate: z.ZodString;
|
|
38697
39022
|
}, z.core.$strip>], "mode">>;
|
|
38698
39023
|
type: z.ZodLiteral<"meeting_booked">;
|
|
39024
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39025
|
+
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39026
|
+
mode: z.ZodLiteral<"never">;
|
|
39027
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39028
|
+
mode: z.ZodLiteral<"once">;
|
|
39029
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39030
|
+
mode: z.ZodLiteral<"after_completion">;
|
|
39031
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39032
|
+
mode: z.ZodLiteral<"after_cooldown">;
|
|
39033
|
+
cooldown: z.ZodObject<{
|
|
39034
|
+
amount: z.ZodNumber;
|
|
39035
|
+
unit: z.ZodEnum<{
|
|
39036
|
+
days: "days";
|
|
39037
|
+
hours: "hours";
|
|
39038
|
+
minutes: "minutes";
|
|
39039
|
+
weeks: "weeks";
|
|
39040
|
+
}>;
|
|
39041
|
+
}, z.core.$strip>;
|
|
39042
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39043
|
+
mode: z.ZodLiteral<"concurrent">;
|
|
39044
|
+
dedupeKeyTemplate: z.ZodString;
|
|
39045
|
+
}, z.core.$strip>], "mode">>;
|
|
39046
|
+
type: z.ZodLiteral<"lead_signal">;
|
|
39047
|
+
signalType: z.ZodOptional<z.ZodEnum<{
|
|
39048
|
+
funding: "funding";
|
|
39049
|
+
hiring: "hiring";
|
|
39050
|
+
job_change: "job_change";
|
|
39051
|
+
new_hire: "new_hire";
|
|
39052
|
+
website_visit: "website_visit";
|
|
39053
|
+
}>>;
|
|
38699
39054
|
}, z.core.$strip>, z.ZodObject<{
|
|
38700
39055
|
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38701
39056
|
mode: z.ZodLiteral<"never">;
|
|
@@ -42952,6 +43307,18 @@ export declare const ImportBody: z.ZodObject<{
|
|
|
42952
43307
|
y: z.ZodNumber;
|
|
42953
43308
|
}, z.core.$strip>>;
|
|
42954
43309
|
name: z.ZodOptional<z.ZodString>;
|
|
43310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43311
|
+
id: z.ZodString;
|
|
43312
|
+
type: z.ZodLiteral<"send_social_dm">;
|
|
43313
|
+
config: z.ZodObject<{
|
|
43314
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
43315
|
+
text: z.ZodString;
|
|
43316
|
+
}, z.core.$strip>;
|
|
43317
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
43318
|
+
x: z.ZodNumber;
|
|
43319
|
+
y: z.ZodNumber;
|
|
43320
|
+
}, z.core.$strip>>;
|
|
43321
|
+
name: z.ZodOptional<z.ZodString>;
|
|
42955
43322
|
}, z.core.$strip>, z.ZodObject<{
|
|
42956
43323
|
id: z.ZodString;
|
|
42957
43324
|
type: z.ZodLiteral<"ad_audience">;
|
|
@@ -43765,6 +44132,36 @@ export declare const ImportBody: z.ZodObject<{
|
|
|
43765
44132
|
dedupeKeyTemplate: z.ZodString;
|
|
43766
44133
|
}, z.core.$strip>], "mode">>;
|
|
43767
44134
|
type: z.ZodLiteral<"meeting_booked">;
|
|
44135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44136
|
+
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44137
|
+
mode: z.ZodLiteral<"never">;
|
|
44138
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44139
|
+
mode: z.ZodLiteral<"once">;
|
|
44140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44141
|
+
mode: z.ZodLiteral<"after_completion">;
|
|
44142
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44143
|
+
mode: z.ZodLiteral<"after_cooldown">;
|
|
44144
|
+
cooldown: z.ZodObject<{
|
|
44145
|
+
amount: z.ZodNumber;
|
|
44146
|
+
unit: z.ZodEnum<{
|
|
44147
|
+
days: "days";
|
|
44148
|
+
hours: "hours";
|
|
44149
|
+
minutes: "minutes";
|
|
44150
|
+
weeks: "weeks";
|
|
44151
|
+
}>;
|
|
44152
|
+
}, z.core.$strip>;
|
|
44153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44154
|
+
mode: z.ZodLiteral<"concurrent">;
|
|
44155
|
+
dedupeKeyTemplate: z.ZodString;
|
|
44156
|
+
}, z.core.$strip>], "mode">>;
|
|
44157
|
+
type: z.ZodLiteral<"lead_signal">;
|
|
44158
|
+
signalType: z.ZodOptional<z.ZodEnum<{
|
|
44159
|
+
funding: "funding";
|
|
44160
|
+
hiring: "hiring";
|
|
44161
|
+
job_change: "job_change";
|
|
44162
|
+
new_hire: "new_hire";
|
|
44163
|
+
website_visit: "website_visit";
|
|
44164
|
+
}>>;
|
|
43768
44165
|
}, z.core.$strip>, z.ZodObject<{
|
|
43769
44166
|
reentry: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
43770
44167
|
mode: z.ZodLiteral<"never">;
|
|
@@ -46058,6 +46455,7 @@ export declare const ImportBody: z.ZodObject<{
|
|
|
46058
46455
|
}, z.core.$strip>;
|
|
46059
46456
|
}, z.core.$strip>;
|
|
46060
46457
|
name: z.ZodString;
|
|
46458
|
+
app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46061
46459
|
}, z.core.$strip>;
|
|
46062
46460
|
/** What happens to enrollments already inside when a new version goes live. */
|
|
46063
46461
|
export declare const PublishBody: z.ZodObject<{
|
|
@@ -72,6 +72,8 @@ export const Trigger = z.discriminatedUnion('type', [
|
|
|
72
72
|
/** `keyword`: for SMS replies, the first word of the reply (case-insensitive), e.g. STOP-style opt-ins like JOIN. */
|
|
73
73
|
t('reply_received', { classification: pick(z.string(), 'reply_class').optional(), keyword: z.string().max(64).optional() }),
|
|
74
74
|
t('meeting_booked', {}),
|
|
75
|
+
/** A lead signal (`lead.signal`) for the contact on it or a contact linked to its company. Empty `signalType` = any signal. */
|
|
76
|
+
t('lead_signal', { signalType: z.enum(['job_change', 'new_hire', 'hiring', 'funding', 'website_visit']).optional() }),
|
|
75
77
|
/** The person's device entered an in-app geofence (the SDK hit is recorded as a `geofence_entered` event, so the app sends nothing custom). Empty `geofenceId` = any geofence. */
|
|
76
78
|
t('geofence_entered', { geofenceId: pick(z.string().max(128), 'geofence').optional() }),
|
|
77
79
|
/** A workspace-registered trigger type (Settings > Custom actions and triggers): fires on its event when every `values` entry equals the event property. */
|
|
@@ -142,6 +144,8 @@ export const CreateWorkflowBody = z.object({
|
|
|
142
144
|
folder: z.string().max(100).nullish(),
|
|
143
145
|
tags: z.array(z.string().max(64)).max(50).default([]),
|
|
144
146
|
definition: WorkflowDefinition.partial().optional(),
|
|
147
|
+
/** Product (app slug) that owns the journey; an app-bound API key stamps its own. */
|
|
148
|
+
app: AppSlug.nullish(),
|
|
145
149
|
});
|
|
146
150
|
export const WorkflowColor = z.string().regex(/^#[0-9a-fA-F]{6}$/, 'Use a #rrggbb colour');
|
|
147
151
|
export const UpdateWorkflowBody = z.object({
|
|
@@ -150,13 +154,15 @@ export const UpdateWorkflowBody = z.object({
|
|
|
150
154
|
folder: z.string().max(100).nullish(),
|
|
151
155
|
tags: z.array(z.string().max(64)).max(50).optional(),
|
|
152
156
|
definition: WorkflowDefinition.optional(),
|
|
157
|
+
/** Move to another product, or null to share. App-bound keys cannot. */
|
|
158
|
+
app: AppSlug.nullable().optional(),
|
|
153
159
|
});
|
|
154
160
|
/** `started*` is when the first version went live. Sorts other than the default (newest id first) still page by cursor. */
|
|
155
161
|
export const WorkflowListQuery = PageQuery.extend({
|
|
156
162
|
status: WorkflowStatus.optional(), folder: z.string().optional(), mode: WorkflowMode.optional(),
|
|
157
163
|
q: z.string().trim().max(200).optional(), archived: z.enum(['true', 'false']).optional(), triggerType: z.string().max(32).optional(),
|
|
158
164
|
createdFrom: DateTimeIn().optional(), createdTo: DateTimeIn().optional(), updatedFrom: DateTimeIn().optional(), updatedTo: DateTimeIn().optional(),
|
|
159
|
-
startedFrom: DateTimeIn().optional(), startedTo: DateTimeIn().optional(),
|
|
165
|
+
startedFrom: DateTimeIn().optional(), startedTo: DateTimeIn().optional(), app: AppSlug.optional(),
|
|
160
166
|
sort: z.enum(['created', '-created', 'updated', '-updated', 'name', '-name']).optional(),
|
|
161
167
|
});
|
|
162
168
|
const Row = z.looseObject({ id: Id });
|
|
@@ -172,6 +178,7 @@ export const WorkflowDto = z.object({
|
|
|
172
178
|
folder: z.string().nullable(),
|
|
173
179
|
tags: z.array(z.string()),
|
|
174
180
|
color: z.string().nullable().optional(),
|
|
181
|
+
app: z.string().nullable().optional(),
|
|
175
182
|
draftGraph: z.unknown(),
|
|
176
183
|
draftTriggers: z.unknown(),
|
|
177
184
|
draftSettings: z.unknown(),
|
|
@@ -262,6 +269,8 @@ export const WorkflowTemplateDto = z.object({
|
|
|
262
269
|
key: z.string(), name: z.string(), description: z.string(), definition: WorkflowDefinition,
|
|
263
270
|
/** Gallery email templates designed for this flow, and the simulator scenario that walks it. */
|
|
264
271
|
templates: z.array(z.string()).default([]), preset: SimPreset.optional(),
|
|
272
|
+
/** The converting variant of `preset`: awaited events happen and engagement waits are met. */
|
|
273
|
+
happyPreset: SimPreset.optional(),
|
|
265
274
|
category: z.string().default('lifecycle'),
|
|
266
275
|
/** Events the flow relies on; `missing` lists those this workspace has never received (filled by the API). */
|
|
267
276
|
requires: z.array(z.string()).default([]),
|
|
@@ -273,7 +282,7 @@ export const InstallReport = z.object({
|
|
|
273
282
|
todo: z.array(z.string()),
|
|
274
283
|
});
|
|
275
284
|
export const ExportDto = z.object({ name: z.string(), purpose: Purpose, mode: WorkflowMode, definition: WorkflowDefinition });
|
|
276
|
-
export const ImportBody = ExportDto.extend({ name: z.string().trim().min(1).max(200) });
|
|
285
|
+
export const ImportBody = ExportDto.extend({ name: z.string().trim().min(1).max(200), app: AppSlug.nullish() });
|
|
277
286
|
/** What happens to enrollments already inside when a new version goes live. */
|
|
278
287
|
export const PublishBody = z.object({
|
|
279
288
|
inFlight: z.enum(['stay', 'migrate', 'exit']).default('stay'),
|