@getlatedev/node 0.2.13 → 0.2.14
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/index.d.mts +196 -24
- package/dist/index.d.ts +196 -24
- package/package.json +1 -1
- package/src/generated/types.gen.ts +184 -12
package/dist/index.d.mts
CHANGED
|
@@ -429,14 +429,14 @@ declare class Zernio {
|
|
|
429
429
|
broadcasts: {
|
|
430
430
|
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastsResponse, ListBroadcastsError, ThrowOnError>;
|
|
431
431
|
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateBroadcastError, ThrowOnError>;
|
|
432
|
-
getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
433
|
-
updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
432
|
+
getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetBroadcastResponse, GetBroadcastError, ThrowOnError>;
|
|
433
|
+
updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateBroadcastResponse, UpdateBroadcastError, ThrowOnError>;
|
|
434
434
|
deleteBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteBroadcastError, ThrowOnError>;
|
|
435
435
|
sendBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendBroadcastResponse, unknown, ThrowOnError>;
|
|
436
|
-
scheduleBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ScheduleBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
437
|
-
cancelBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CancelBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
438
|
-
listBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
439
|
-
addBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<AddBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
436
|
+
scheduleBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ScheduleBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ScheduleBroadcastResponse, unknown, ThrowOnError>;
|
|
437
|
+
cancelBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CancelBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CancelBroadcastResponse, unknown, ThrowOnError>;
|
|
438
|
+
listBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastRecipientsResponse, ListBroadcastRecipientsError, ThrowOnError>;
|
|
439
|
+
addBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<AddBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AddBroadcastRecipientsResponse, AddBroadcastRecipientsError, ThrowOnError>;
|
|
440
440
|
};
|
|
441
441
|
/**
|
|
442
442
|
* sequences API
|
|
@@ -444,14 +444,14 @@ declare class Zernio {
|
|
|
444
444
|
sequences: {
|
|
445
445
|
listSequences: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListSequencesResponse, ListSequencesError, ThrowOnError>;
|
|
446
446
|
createSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateSequenceError, ThrowOnError>;
|
|
447
|
-
getSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
448
|
-
updateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
447
|
+
getSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetSequenceResponse, GetSequenceError, ThrowOnError>;
|
|
448
|
+
updateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateSequenceResponse, UpdateSequenceError, ThrowOnError>;
|
|
449
449
|
deleteSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteSequenceError, ThrowOnError>;
|
|
450
|
-
activateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ActivateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
451
|
-
pauseSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<PauseSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
452
|
-
enrollContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<EnrollContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
450
|
+
activateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ActivateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ActivateSequenceResponse, unknown, ThrowOnError>;
|
|
451
|
+
pauseSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<PauseSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PauseSequenceResponse, unknown, ThrowOnError>;
|
|
452
|
+
enrollContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<EnrollContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<EnrollContactsResponse, EnrollContactsError, ThrowOnError>;
|
|
453
453
|
unenrollContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UnenrollContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UnenrollContactError, ThrowOnError>;
|
|
454
|
-
listSequenceEnrollments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListSequenceEnrollmentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
454
|
+
listSequenceEnrollments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListSequenceEnrollmentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListSequenceEnrollmentsResponse, ListSequenceEnrollmentsError, ThrowOnError>;
|
|
455
455
|
};
|
|
456
456
|
/**
|
|
457
457
|
* commentautomations API
|
|
@@ -9105,7 +9105,37 @@ type GetBroadcastData = {
|
|
|
9105
9105
|
broadcastId: string;
|
|
9106
9106
|
};
|
|
9107
9107
|
};
|
|
9108
|
-
type GetBroadcastResponse = (
|
|
9108
|
+
type GetBroadcastResponse = ({
|
|
9109
|
+
success?: boolean;
|
|
9110
|
+
broadcast?: {
|
|
9111
|
+
id?: string;
|
|
9112
|
+
name?: string;
|
|
9113
|
+
description?: string;
|
|
9114
|
+
platform?: string;
|
|
9115
|
+
accountId?: string;
|
|
9116
|
+
message?: {
|
|
9117
|
+
text?: string;
|
|
9118
|
+
};
|
|
9119
|
+
template?: {
|
|
9120
|
+
name?: string;
|
|
9121
|
+
language?: string;
|
|
9122
|
+
};
|
|
9123
|
+
segmentFilters?: {
|
|
9124
|
+
tags?: Array<(string)>;
|
|
9125
|
+
};
|
|
9126
|
+
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
9127
|
+
scheduledAt?: string;
|
|
9128
|
+
startedAt?: string;
|
|
9129
|
+
completedAt?: string;
|
|
9130
|
+
recipientCount?: number;
|
|
9131
|
+
sentCount?: number;
|
|
9132
|
+
deliveredCount?: number;
|
|
9133
|
+
readCount?: number;
|
|
9134
|
+
failedCount?: number;
|
|
9135
|
+
createdAt?: string;
|
|
9136
|
+
updatedAt?: string;
|
|
9137
|
+
};
|
|
9138
|
+
});
|
|
9109
9139
|
type GetBroadcastError = ({
|
|
9110
9140
|
error?: string;
|
|
9111
9141
|
});
|
|
@@ -9114,7 +9144,16 @@ type UpdateBroadcastData = {
|
|
|
9114
9144
|
broadcastId: string;
|
|
9115
9145
|
};
|
|
9116
9146
|
};
|
|
9117
|
-
type UpdateBroadcastResponse = (
|
|
9147
|
+
type UpdateBroadcastResponse = ({
|
|
9148
|
+
success?: boolean;
|
|
9149
|
+
broadcast?: {
|
|
9150
|
+
id?: string;
|
|
9151
|
+
name?: string;
|
|
9152
|
+
description?: string;
|
|
9153
|
+
status?: string;
|
|
9154
|
+
updatedAt?: string;
|
|
9155
|
+
};
|
|
9156
|
+
});
|
|
9118
9157
|
type UpdateBroadcastError = ({
|
|
9119
9158
|
error?: string;
|
|
9120
9159
|
});
|
|
@@ -9162,7 +9201,14 @@ type ScheduleBroadcastData = {
|
|
|
9162
9201
|
broadcastId: string;
|
|
9163
9202
|
};
|
|
9164
9203
|
};
|
|
9165
|
-
type ScheduleBroadcastResponse = (
|
|
9204
|
+
type ScheduleBroadcastResponse = ({
|
|
9205
|
+
success?: boolean;
|
|
9206
|
+
broadcast?: {
|
|
9207
|
+
id?: string;
|
|
9208
|
+
status?: string;
|
|
9209
|
+
scheduledAt?: string;
|
|
9210
|
+
};
|
|
9211
|
+
});
|
|
9166
9212
|
type ScheduleBroadcastError = (unknown | {
|
|
9167
9213
|
error?: string;
|
|
9168
9214
|
});
|
|
@@ -9171,7 +9217,13 @@ type CancelBroadcastData = {
|
|
|
9171
9217
|
broadcastId: string;
|
|
9172
9218
|
};
|
|
9173
9219
|
};
|
|
9174
|
-
type CancelBroadcastResponse = (
|
|
9220
|
+
type CancelBroadcastResponse = ({
|
|
9221
|
+
success?: boolean;
|
|
9222
|
+
broadcast?: {
|
|
9223
|
+
id?: string;
|
|
9224
|
+
status?: string;
|
|
9225
|
+
};
|
|
9226
|
+
});
|
|
9175
9227
|
type CancelBroadcastError = (unknown | {
|
|
9176
9228
|
error?: string;
|
|
9177
9229
|
});
|
|
@@ -9185,7 +9237,28 @@ type ListBroadcastRecipientsData = {
|
|
|
9185
9237
|
status?: 'pending' | 'sent' | 'delivered' | 'read' | 'failed';
|
|
9186
9238
|
};
|
|
9187
9239
|
};
|
|
9188
|
-
type ListBroadcastRecipientsResponse = (
|
|
9240
|
+
type ListBroadcastRecipientsResponse = ({
|
|
9241
|
+
success?: boolean;
|
|
9242
|
+
recipients?: Array<{
|
|
9243
|
+
id?: string;
|
|
9244
|
+
contactId?: string;
|
|
9245
|
+
channelId?: string;
|
|
9246
|
+
platformIdentifier?: string;
|
|
9247
|
+
contactName?: string;
|
|
9248
|
+
status?: 'pending' | 'sent' | 'delivered' | 'read' | 'failed';
|
|
9249
|
+
messageId?: string;
|
|
9250
|
+
error?: string;
|
|
9251
|
+
sentAt?: string;
|
|
9252
|
+
deliveredAt?: string;
|
|
9253
|
+
readAt?: string;
|
|
9254
|
+
}>;
|
|
9255
|
+
pagination?: {
|
|
9256
|
+
total?: number;
|
|
9257
|
+
limit?: number;
|
|
9258
|
+
skip?: number;
|
|
9259
|
+
hasMore?: boolean;
|
|
9260
|
+
};
|
|
9261
|
+
});
|
|
9189
9262
|
type ListBroadcastRecipientsError = ({
|
|
9190
9263
|
error?: string;
|
|
9191
9264
|
});
|
|
@@ -9208,7 +9281,17 @@ type AddBroadcastRecipientsData = {
|
|
|
9208
9281
|
broadcastId: string;
|
|
9209
9282
|
};
|
|
9210
9283
|
};
|
|
9211
|
-
type AddBroadcastRecipientsResponse = (
|
|
9284
|
+
type AddBroadcastRecipientsResponse = ({
|
|
9285
|
+
success?: boolean;
|
|
9286
|
+
/**
|
|
9287
|
+
* Number of recipients successfully added
|
|
9288
|
+
*/
|
|
9289
|
+
added?: number;
|
|
9290
|
+
/**
|
|
9291
|
+
* Number skipped (duplicates or missing channels)
|
|
9292
|
+
*/
|
|
9293
|
+
skipped?: number;
|
|
9294
|
+
});
|
|
9212
9295
|
type AddBroadcastRecipientsError = ({
|
|
9213
9296
|
error?: string;
|
|
9214
9297
|
});
|
|
@@ -9301,7 +9384,38 @@ type GetSequenceData = {
|
|
|
9301
9384
|
sequenceId: string;
|
|
9302
9385
|
};
|
|
9303
9386
|
};
|
|
9304
|
-
type GetSequenceResponse = (
|
|
9387
|
+
type GetSequenceResponse = ({
|
|
9388
|
+
success?: boolean;
|
|
9389
|
+
sequence?: {
|
|
9390
|
+
id?: string;
|
|
9391
|
+
name?: string;
|
|
9392
|
+
description?: string;
|
|
9393
|
+
platform?: string;
|
|
9394
|
+
accountId?: string;
|
|
9395
|
+
status?: 'draft' | 'active' | 'paused';
|
|
9396
|
+
steps?: Array<{
|
|
9397
|
+
order?: number;
|
|
9398
|
+
delayMinutes?: number;
|
|
9399
|
+
message?: {
|
|
9400
|
+
text?: string;
|
|
9401
|
+
};
|
|
9402
|
+
template?: {
|
|
9403
|
+
name?: string;
|
|
9404
|
+
language?: string;
|
|
9405
|
+
variableMapping?: {
|
|
9406
|
+
[key: string]: unknown;
|
|
9407
|
+
};
|
|
9408
|
+
};
|
|
9409
|
+
}>;
|
|
9410
|
+
exitOnReply?: boolean;
|
|
9411
|
+
exitOnUnsubscribe?: boolean;
|
|
9412
|
+
totalEnrolled?: number;
|
|
9413
|
+
totalCompleted?: number;
|
|
9414
|
+
totalExited?: number;
|
|
9415
|
+
createdAt?: string;
|
|
9416
|
+
updatedAt?: string;
|
|
9417
|
+
};
|
|
9418
|
+
});
|
|
9305
9419
|
type GetSequenceError = ({
|
|
9306
9420
|
error?: string;
|
|
9307
9421
|
});
|
|
@@ -9310,7 +9424,21 @@ type UpdateSequenceData = {
|
|
|
9310
9424
|
sequenceId: string;
|
|
9311
9425
|
};
|
|
9312
9426
|
};
|
|
9313
|
-
type UpdateSequenceResponse = (
|
|
9427
|
+
type UpdateSequenceResponse = ({
|
|
9428
|
+
success?: boolean;
|
|
9429
|
+
sequence?: {
|
|
9430
|
+
id?: string;
|
|
9431
|
+
name?: string;
|
|
9432
|
+
description?: string;
|
|
9433
|
+
status?: string;
|
|
9434
|
+
steps?: Array<{
|
|
9435
|
+
[key: string]: unknown;
|
|
9436
|
+
}>;
|
|
9437
|
+
exitOnReply?: boolean;
|
|
9438
|
+
exitOnUnsubscribe?: boolean;
|
|
9439
|
+
updatedAt?: string;
|
|
9440
|
+
};
|
|
9441
|
+
});
|
|
9314
9442
|
type UpdateSequenceError = ({
|
|
9315
9443
|
error?: string;
|
|
9316
9444
|
});
|
|
@@ -9328,7 +9456,13 @@ type ActivateSequenceData = {
|
|
|
9328
9456
|
sequenceId: string;
|
|
9329
9457
|
};
|
|
9330
9458
|
};
|
|
9331
|
-
type ActivateSequenceResponse = (
|
|
9459
|
+
type ActivateSequenceResponse = ({
|
|
9460
|
+
success?: boolean;
|
|
9461
|
+
sequence?: {
|
|
9462
|
+
id?: string;
|
|
9463
|
+
status?: string;
|
|
9464
|
+
};
|
|
9465
|
+
});
|
|
9332
9466
|
type ActivateSequenceError = (unknown | {
|
|
9333
9467
|
error?: string;
|
|
9334
9468
|
});
|
|
@@ -9337,7 +9471,13 @@ type PauseSequenceData = {
|
|
|
9337
9471
|
sequenceId: string;
|
|
9338
9472
|
};
|
|
9339
9473
|
};
|
|
9340
|
-
type PauseSequenceResponse = (
|
|
9474
|
+
type PauseSequenceResponse = ({
|
|
9475
|
+
success?: boolean;
|
|
9476
|
+
sequence?: {
|
|
9477
|
+
id?: string;
|
|
9478
|
+
status?: string;
|
|
9479
|
+
};
|
|
9480
|
+
});
|
|
9341
9481
|
type PauseSequenceError = (unknown | {
|
|
9342
9482
|
error?: string;
|
|
9343
9483
|
});
|
|
@@ -9353,7 +9493,17 @@ type EnrollContactsData = {
|
|
|
9353
9493
|
sequenceId: string;
|
|
9354
9494
|
};
|
|
9355
9495
|
};
|
|
9356
|
-
type EnrollContactsResponse = (
|
|
9496
|
+
type EnrollContactsResponse = ({
|
|
9497
|
+
success?: boolean;
|
|
9498
|
+
/**
|
|
9499
|
+
* Number of contacts successfully enrolled
|
|
9500
|
+
*/
|
|
9501
|
+
enrolled?: number;
|
|
9502
|
+
/**
|
|
9503
|
+
* Number skipped (already enrolled or missing channel)
|
|
9504
|
+
*/
|
|
9505
|
+
skipped?: number;
|
|
9506
|
+
});
|
|
9357
9507
|
type EnrollContactsError = ({
|
|
9358
9508
|
error?: string;
|
|
9359
9509
|
});
|
|
@@ -9377,7 +9527,29 @@ type ListSequenceEnrollmentsData = {
|
|
|
9377
9527
|
status?: 'active' | 'completed' | 'exited' | 'paused';
|
|
9378
9528
|
};
|
|
9379
9529
|
};
|
|
9380
|
-
type ListSequenceEnrollmentsResponse = (
|
|
9530
|
+
type ListSequenceEnrollmentsResponse = ({
|
|
9531
|
+
success?: boolean;
|
|
9532
|
+
enrollments?: Array<{
|
|
9533
|
+
id?: string;
|
|
9534
|
+
contactId?: string;
|
|
9535
|
+
channelId?: string;
|
|
9536
|
+
platformIdentifier?: string;
|
|
9537
|
+
contactName?: string;
|
|
9538
|
+
currentStepIndex?: number;
|
|
9539
|
+
status?: 'active' | 'completed' | 'exited' | 'paused';
|
|
9540
|
+
exitReason?: string;
|
|
9541
|
+
nextStepAt?: string;
|
|
9542
|
+
stepsSent?: number;
|
|
9543
|
+
lastStepSentAt?: string;
|
|
9544
|
+
createdAt?: string;
|
|
9545
|
+
}>;
|
|
9546
|
+
pagination?: {
|
|
9547
|
+
total?: number;
|
|
9548
|
+
limit?: number;
|
|
9549
|
+
skip?: number;
|
|
9550
|
+
hasMore?: boolean;
|
|
9551
|
+
};
|
|
9552
|
+
});
|
|
9381
9553
|
type ListSequenceEnrollmentsError = ({
|
|
9382
9554
|
error?: string;
|
|
9383
9555
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -429,14 +429,14 @@ declare class Zernio {
|
|
|
429
429
|
broadcasts: {
|
|
430
430
|
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastsResponse, ListBroadcastsError, ThrowOnError>;
|
|
431
431
|
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateBroadcastError, ThrowOnError>;
|
|
432
|
-
getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
433
|
-
updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
432
|
+
getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetBroadcastResponse, GetBroadcastError, ThrowOnError>;
|
|
433
|
+
updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateBroadcastResponse, UpdateBroadcastError, ThrowOnError>;
|
|
434
434
|
deleteBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteBroadcastError, ThrowOnError>;
|
|
435
435
|
sendBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendBroadcastResponse, unknown, ThrowOnError>;
|
|
436
|
-
scheduleBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ScheduleBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
437
|
-
cancelBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CancelBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
438
|
-
listBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
439
|
-
addBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<AddBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
436
|
+
scheduleBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ScheduleBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ScheduleBroadcastResponse, unknown, ThrowOnError>;
|
|
437
|
+
cancelBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CancelBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CancelBroadcastResponse, unknown, ThrowOnError>;
|
|
438
|
+
listBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastRecipientsResponse, ListBroadcastRecipientsError, ThrowOnError>;
|
|
439
|
+
addBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<AddBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AddBroadcastRecipientsResponse, AddBroadcastRecipientsError, ThrowOnError>;
|
|
440
440
|
};
|
|
441
441
|
/**
|
|
442
442
|
* sequences API
|
|
@@ -444,14 +444,14 @@ declare class Zernio {
|
|
|
444
444
|
sequences: {
|
|
445
445
|
listSequences: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListSequencesResponse, ListSequencesError, ThrowOnError>;
|
|
446
446
|
createSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateSequenceError, ThrowOnError>;
|
|
447
|
-
getSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
448
|
-
updateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
447
|
+
getSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetSequenceResponse, GetSequenceError, ThrowOnError>;
|
|
448
|
+
updateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateSequenceResponse, UpdateSequenceError, ThrowOnError>;
|
|
449
449
|
deleteSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteSequenceError, ThrowOnError>;
|
|
450
|
-
activateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ActivateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
451
|
-
pauseSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<PauseSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
452
|
-
enrollContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<EnrollContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
450
|
+
activateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ActivateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ActivateSequenceResponse, unknown, ThrowOnError>;
|
|
451
|
+
pauseSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<PauseSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PauseSequenceResponse, unknown, ThrowOnError>;
|
|
452
|
+
enrollContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<EnrollContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<EnrollContactsResponse, EnrollContactsError, ThrowOnError>;
|
|
453
453
|
unenrollContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UnenrollContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UnenrollContactError, ThrowOnError>;
|
|
454
|
-
listSequenceEnrollments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListSequenceEnrollmentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
454
|
+
listSequenceEnrollments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListSequenceEnrollmentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListSequenceEnrollmentsResponse, ListSequenceEnrollmentsError, ThrowOnError>;
|
|
455
455
|
};
|
|
456
456
|
/**
|
|
457
457
|
* commentautomations API
|
|
@@ -9105,7 +9105,37 @@ type GetBroadcastData = {
|
|
|
9105
9105
|
broadcastId: string;
|
|
9106
9106
|
};
|
|
9107
9107
|
};
|
|
9108
|
-
type GetBroadcastResponse = (
|
|
9108
|
+
type GetBroadcastResponse = ({
|
|
9109
|
+
success?: boolean;
|
|
9110
|
+
broadcast?: {
|
|
9111
|
+
id?: string;
|
|
9112
|
+
name?: string;
|
|
9113
|
+
description?: string;
|
|
9114
|
+
platform?: string;
|
|
9115
|
+
accountId?: string;
|
|
9116
|
+
message?: {
|
|
9117
|
+
text?: string;
|
|
9118
|
+
};
|
|
9119
|
+
template?: {
|
|
9120
|
+
name?: string;
|
|
9121
|
+
language?: string;
|
|
9122
|
+
};
|
|
9123
|
+
segmentFilters?: {
|
|
9124
|
+
tags?: Array<(string)>;
|
|
9125
|
+
};
|
|
9126
|
+
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
9127
|
+
scheduledAt?: string;
|
|
9128
|
+
startedAt?: string;
|
|
9129
|
+
completedAt?: string;
|
|
9130
|
+
recipientCount?: number;
|
|
9131
|
+
sentCount?: number;
|
|
9132
|
+
deliveredCount?: number;
|
|
9133
|
+
readCount?: number;
|
|
9134
|
+
failedCount?: number;
|
|
9135
|
+
createdAt?: string;
|
|
9136
|
+
updatedAt?: string;
|
|
9137
|
+
};
|
|
9138
|
+
});
|
|
9109
9139
|
type GetBroadcastError = ({
|
|
9110
9140
|
error?: string;
|
|
9111
9141
|
});
|
|
@@ -9114,7 +9144,16 @@ type UpdateBroadcastData = {
|
|
|
9114
9144
|
broadcastId: string;
|
|
9115
9145
|
};
|
|
9116
9146
|
};
|
|
9117
|
-
type UpdateBroadcastResponse = (
|
|
9147
|
+
type UpdateBroadcastResponse = ({
|
|
9148
|
+
success?: boolean;
|
|
9149
|
+
broadcast?: {
|
|
9150
|
+
id?: string;
|
|
9151
|
+
name?: string;
|
|
9152
|
+
description?: string;
|
|
9153
|
+
status?: string;
|
|
9154
|
+
updatedAt?: string;
|
|
9155
|
+
};
|
|
9156
|
+
});
|
|
9118
9157
|
type UpdateBroadcastError = ({
|
|
9119
9158
|
error?: string;
|
|
9120
9159
|
});
|
|
@@ -9162,7 +9201,14 @@ type ScheduleBroadcastData = {
|
|
|
9162
9201
|
broadcastId: string;
|
|
9163
9202
|
};
|
|
9164
9203
|
};
|
|
9165
|
-
type ScheduleBroadcastResponse = (
|
|
9204
|
+
type ScheduleBroadcastResponse = ({
|
|
9205
|
+
success?: boolean;
|
|
9206
|
+
broadcast?: {
|
|
9207
|
+
id?: string;
|
|
9208
|
+
status?: string;
|
|
9209
|
+
scheduledAt?: string;
|
|
9210
|
+
};
|
|
9211
|
+
});
|
|
9166
9212
|
type ScheduleBroadcastError = (unknown | {
|
|
9167
9213
|
error?: string;
|
|
9168
9214
|
});
|
|
@@ -9171,7 +9217,13 @@ type CancelBroadcastData = {
|
|
|
9171
9217
|
broadcastId: string;
|
|
9172
9218
|
};
|
|
9173
9219
|
};
|
|
9174
|
-
type CancelBroadcastResponse = (
|
|
9220
|
+
type CancelBroadcastResponse = ({
|
|
9221
|
+
success?: boolean;
|
|
9222
|
+
broadcast?: {
|
|
9223
|
+
id?: string;
|
|
9224
|
+
status?: string;
|
|
9225
|
+
};
|
|
9226
|
+
});
|
|
9175
9227
|
type CancelBroadcastError = (unknown | {
|
|
9176
9228
|
error?: string;
|
|
9177
9229
|
});
|
|
@@ -9185,7 +9237,28 @@ type ListBroadcastRecipientsData = {
|
|
|
9185
9237
|
status?: 'pending' | 'sent' | 'delivered' | 'read' | 'failed';
|
|
9186
9238
|
};
|
|
9187
9239
|
};
|
|
9188
|
-
type ListBroadcastRecipientsResponse = (
|
|
9240
|
+
type ListBroadcastRecipientsResponse = ({
|
|
9241
|
+
success?: boolean;
|
|
9242
|
+
recipients?: Array<{
|
|
9243
|
+
id?: string;
|
|
9244
|
+
contactId?: string;
|
|
9245
|
+
channelId?: string;
|
|
9246
|
+
platformIdentifier?: string;
|
|
9247
|
+
contactName?: string;
|
|
9248
|
+
status?: 'pending' | 'sent' | 'delivered' | 'read' | 'failed';
|
|
9249
|
+
messageId?: string;
|
|
9250
|
+
error?: string;
|
|
9251
|
+
sentAt?: string;
|
|
9252
|
+
deliveredAt?: string;
|
|
9253
|
+
readAt?: string;
|
|
9254
|
+
}>;
|
|
9255
|
+
pagination?: {
|
|
9256
|
+
total?: number;
|
|
9257
|
+
limit?: number;
|
|
9258
|
+
skip?: number;
|
|
9259
|
+
hasMore?: boolean;
|
|
9260
|
+
};
|
|
9261
|
+
});
|
|
9189
9262
|
type ListBroadcastRecipientsError = ({
|
|
9190
9263
|
error?: string;
|
|
9191
9264
|
});
|
|
@@ -9208,7 +9281,17 @@ type AddBroadcastRecipientsData = {
|
|
|
9208
9281
|
broadcastId: string;
|
|
9209
9282
|
};
|
|
9210
9283
|
};
|
|
9211
|
-
type AddBroadcastRecipientsResponse = (
|
|
9284
|
+
type AddBroadcastRecipientsResponse = ({
|
|
9285
|
+
success?: boolean;
|
|
9286
|
+
/**
|
|
9287
|
+
* Number of recipients successfully added
|
|
9288
|
+
*/
|
|
9289
|
+
added?: number;
|
|
9290
|
+
/**
|
|
9291
|
+
* Number skipped (duplicates or missing channels)
|
|
9292
|
+
*/
|
|
9293
|
+
skipped?: number;
|
|
9294
|
+
});
|
|
9212
9295
|
type AddBroadcastRecipientsError = ({
|
|
9213
9296
|
error?: string;
|
|
9214
9297
|
});
|
|
@@ -9301,7 +9384,38 @@ type GetSequenceData = {
|
|
|
9301
9384
|
sequenceId: string;
|
|
9302
9385
|
};
|
|
9303
9386
|
};
|
|
9304
|
-
type GetSequenceResponse = (
|
|
9387
|
+
type GetSequenceResponse = ({
|
|
9388
|
+
success?: boolean;
|
|
9389
|
+
sequence?: {
|
|
9390
|
+
id?: string;
|
|
9391
|
+
name?: string;
|
|
9392
|
+
description?: string;
|
|
9393
|
+
platform?: string;
|
|
9394
|
+
accountId?: string;
|
|
9395
|
+
status?: 'draft' | 'active' | 'paused';
|
|
9396
|
+
steps?: Array<{
|
|
9397
|
+
order?: number;
|
|
9398
|
+
delayMinutes?: number;
|
|
9399
|
+
message?: {
|
|
9400
|
+
text?: string;
|
|
9401
|
+
};
|
|
9402
|
+
template?: {
|
|
9403
|
+
name?: string;
|
|
9404
|
+
language?: string;
|
|
9405
|
+
variableMapping?: {
|
|
9406
|
+
[key: string]: unknown;
|
|
9407
|
+
};
|
|
9408
|
+
};
|
|
9409
|
+
}>;
|
|
9410
|
+
exitOnReply?: boolean;
|
|
9411
|
+
exitOnUnsubscribe?: boolean;
|
|
9412
|
+
totalEnrolled?: number;
|
|
9413
|
+
totalCompleted?: number;
|
|
9414
|
+
totalExited?: number;
|
|
9415
|
+
createdAt?: string;
|
|
9416
|
+
updatedAt?: string;
|
|
9417
|
+
};
|
|
9418
|
+
});
|
|
9305
9419
|
type GetSequenceError = ({
|
|
9306
9420
|
error?: string;
|
|
9307
9421
|
});
|
|
@@ -9310,7 +9424,21 @@ type UpdateSequenceData = {
|
|
|
9310
9424
|
sequenceId: string;
|
|
9311
9425
|
};
|
|
9312
9426
|
};
|
|
9313
|
-
type UpdateSequenceResponse = (
|
|
9427
|
+
type UpdateSequenceResponse = ({
|
|
9428
|
+
success?: boolean;
|
|
9429
|
+
sequence?: {
|
|
9430
|
+
id?: string;
|
|
9431
|
+
name?: string;
|
|
9432
|
+
description?: string;
|
|
9433
|
+
status?: string;
|
|
9434
|
+
steps?: Array<{
|
|
9435
|
+
[key: string]: unknown;
|
|
9436
|
+
}>;
|
|
9437
|
+
exitOnReply?: boolean;
|
|
9438
|
+
exitOnUnsubscribe?: boolean;
|
|
9439
|
+
updatedAt?: string;
|
|
9440
|
+
};
|
|
9441
|
+
});
|
|
9314
9442
|
type UpdateSequenceError = ({
|
|
9315
9443
|
error?: string;
|
|
9316
9444
|
});
|
|
@@ -9328,7 +9456,13 @@ type ActivateSequenceData = {
|
|
|
9328
9456
|
sequenceId: string;
|
|
9329
9457
|
};
|
|
9330
9458
|
};
|
|
9331
|
-
type ActivateSequenceResponse = (
|
|
9459
|
+
type ActivateSequenceResponse = ({
|
|
9460
|
+
success?: boolean;
|
|
9461
|
+
sequence?: {
|
|
9462
|
+
id?: string;
|
|
9463
|
+
status?: string;
|
|
9464
|
+
};
|
|
9465
|
+
});
|
|
9332
9466
|
type ActivateSequenceError = (unknown | {
|
|
9333
9467
|
error?: string;
|
|
9334
9468
|
});
|
|
@@ -9337,7 +9471,13 @@ type PauseSequenceData = {
|
|
|
9337
9471
|
sequenceId: string;
|
|
9338
9472
|
};
|
|
9339
9473
|
};
|
|
9340
|
-
type PauseSequenceResponse = (
|
|
9474
|
+
type PauseSequenceResponse = ({
|
|
9475
|
+
success?: boolean;
|
|
9476
|
+
sequence?: {
|
|
9477
|
+
id?: string;
|
|
9478
|
+
status?: string;
|
|
9479
|
+
};
|
|
9480
|
+
});
|
|
9341
9481
|
type PauseSequenceError = (unknown | {
|
|
9342
9482
|
error?: string;
|
|
9343
9483
|
});
|
|
@@ -9353,7 +9493,17 @@ type EnrollContactsData = {
|
|
|
9353
9493
|
sequenceId: string;
|
|
9354
9494
|
};
|
|
9355
9495
|
};
|
|
9356
|
-
type EnrollContactsResponse = (
|
|
9496
|
+
type EnrollContactsResponse = ({
|
|
9497
|
+
success?: boolean;
|
|
9498
|
+
/**
|
|
9499
|
+
* Number of contacts successfully enrolled
|
|
9500
|
+
*/
|
|
9501
|
+
enrolled?: number;
|
|
9502
|
+
/**
|
|
9503
|
+
* Number skipped (already enrolled or missing channel)
|
|
9504
|
+
*/
|
|
9505
|
+
skipped?: number;
|
|
9506
|
+
});
|
|
9357
9507
|
type EnrollContactsError = ({
|
|
9358
9508
|
error?: string;
|
|
9359
9509
|
});
|
|
@@ -9377,7 +9527,29 @@ type ListSequenceEnrollmentsData = {
|
|
|
9377
9527
|
status?: 'active' | 'completed' | 'exited' | 'paused';
|
|
9378
9528
|
};
|
|
9379
9529
|
};
|
|
9380
|
-
type ListSequenceEnrollmentsResponse = (
|
|
9530
|
+
type ListSequenceEnrollmentsResponse = ({
|
|
9531
|
+
success?: boolean;
|
|
9532
|
+
enrollments?: Array<{
|
|
9533
|
+
id?: string;
|
|
9534
|
+
contactId?: string;
|
|
9535
|
+
channelId?: string;
|
|
9536
|
+
platformIdentifier?: string;
|
|
9537
|
+
contactName?: string;
|
|
9538
|
+
currentStepIndex?: number;
|
|
9539
|
+
status?: 'active' | 'completed' | 'exited' | 'paused';
|
|
9540
|
+
exitReason?: string;
|
|
9541
|
+
nextStepAt?: string;
|
|
9542
|
+
stepsSent?: number;
|
|
9543
|
+
lastStepSentAt?: string;
|
|
9544
|
+
createdAt?: string;
|
|
9545
|
+
}>;
|
|
9546
|
+
pagination?: {
|
|
9547
|
+
total?: number;
|
|
9548
|
+
limit?: number;
|
|
9549
|
+
skip?: number;
|
|
9550
|
+
hasMore?: boolean;
|
|
9551
|
+
};
|
|
9552
|
+
});
|
|
9381
9553
|
type ListSequenceEnrollmentsError = ({
|
|
9382
9554
|
error?: string;
|
|
9383
9555
|
});
|
package/package.json
CHANGED
|
@@ -9302,7 +9302,37 @@ export type GetBroadcastData = {
|
|
|
9302
9302
|
};
|
|
9303
9303
|
};
|
|
9304
9304
|
|
|
9305
|
-
export type GetBroadcastResponse = (
|
|
9305
|
+
export type GetBroadcastResponse = ({
|
|
9306
|
+
success?: boolean;
|
|
9307
|
+
broadcast?: {
|
|
9308
|
+
id?: string;
|
|
9309
|
+
name?: string;
|
|
9310
|
+
description?: string;
|
|
9311
|
+
platform?: string;
|
|
9312
|
+
accountId?: string;
|
|
9313
|
+
message?: {
|
|
9314
|
+
text?: string;
|
|
9315
|
+
};
|
|
9316
|
+
template?: {
|
|
9317
|
+
name?: string;
|
|
9318
|
+
language?: string;
|
|
9319
|
+
};
|
|
9320
|
+
segmentFilters?: {
|
|
9321
|
+
tags?: Array<(string)>;
|
|
9322
|
+
};
|
|
9323
|
+
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
9324
|
+
scheduledAt?: string;
|
|
9325
|
+
startedAt?: string;
|
|
9326
|
+
completedAt?: string;
|
|
9327
|
+
recipientCount?: number;
|
|
9328
|
+
sentCount?: number;
|
|
9329
|
+
deliveredCount?: number;
|
|
9330
|
+
readCount?: number;
|
|
9331
|
+
failedCount?: number;
|
|
9332
|
+
createdAt?: string;
|
|
9333
|
+
updatedAt?: string;
|
|
9334
|
+
};
|
|
9335
|
+
});
|
|
9306
9336
|
|
|
9307
9337
|
export type GetBroadcastError = ({
|
|
9308
9338
|
error?: string;
|
|
@@ -9314,7 +9344,16 @@ export type UpdateBroadcastData = {
|
|
|
9314
9344
|
};
|
|
9315
9345
|
};
|
|
9316
9346
|
|
|
9317
|
-
export type UpdateBroadcastResponse = (
|
|
9347
|
+
export type UpdateBroadcastResponse = ({
|
|
9348
|
+
success?: boolean;
|
|
9349
|
+
broadcast?: {
|
|
9350
|
+
id?: string;
|
|
9351
|
+
name?: string;
|
|
9352
|
+
description?: string;
|
|
9353
|
+
status?: string;
|
|
9354
|
+
updatedAt?: string;
|
|
9355
|
+
};
|
|
9356
|
+
});
|
|
9318
9357
|
|
|
9319
9358
|
export type UpdateBroadcastError = ({
|
|
9320
9359
|
error?: string;
|
|
@@ -9371,7 +9410,14 @@ export type ScheduleBroadcastData = {
|
|
|
9371
9410
|
};
|
|
9372
9411
|
};
|
|
9373
9412
|
|
|
9374
|
-
export type ScheduleBroadcastResponse = (
|
|
9413
|
+
export type ScheduleBroadcastResponse = ({
|
|
9414
|
+
success?: boolean;
|
|
9415
|
+
broadcast?: {
|
|
9416
|
+
id?: string;
|
|
9417
|
+
status?: string;
|
|
9418
|
+
scheduledAt?: string;
|
|
9419
|
+
};
|
|
9420
|
+
});
|
|
9375
9421
|
|
|
9376
9422
|
export type ScheduleBroadcastError = (unknown | {
|
|
9377
9423
|
error?: string;
|
|
@@ -9383,7 +9429,13 @@ export type CancelBroadcastData = {
|
|
|
9383
9429
|
};
|
|
9384
9430
|
};
|
|
9385
9431
|
|
|
9386
|
-
export type CancelBroadcastResponse = (
|
|
9432
|
+
export type CancelBroadcastResponse = ({
|
|
9433
|
+
success?: boolean;
|
|
9434
|
+
broadcast?: {
|
|
9435
|
+
id?: string;
|
|
9436
|
+
status?: string;
|
|
9437
|
+
};
|
|
9438
|
+
});
|
|
9387
9439
|
|
|
9388
9440
|
export type CancelBroadcastError = (unknown | {
|
|
9389
9441
|
error?: string;
|
|
@@ -9400,7 +9452,28 @@ export type ListBroadcastRecipientsData = {
|
|
|
9400
9452
|
};
|
|
9401
9453
|
};
|
|
9402
9454
|
|
|
9403
|
-
export type ListBroadcastRecipientsResponse = (
|
|
9455
|
+
export type ListBroadcastRecipientsResponse = ({
|
|
9456
|
+
success?: boolean;
|
|
9457
|
+
recipients?: Array<{
|
|
9458
|
+
id?: string;
|
|
9459
|
+
contactId?: string;
|
|
9460
|
+
channelId?: string;
|
|
9461
|
+
platformIdentifier?: string;
|
|
9462
|
+
contactName?: string;
|
|
9463
|
+
status?: 'pending' | 'sent' | 'delivered' | 'read' | 'failed';
|
|
9464
|
+
messageId?: string;
|
|
9465
|
+
error?: string;
|
|
9466
|
+
sentAt?: string;
|
|
9467
|
+
deliveredAt?: string;
|
|
9468
|
+
readAt?: string;
|
|
9469
|
+
}>;
|
|
9470
|
+
pagination?: {
|
|
9471
|
+
total?: number;
|
|
9472
|
+
limit?: number;
|
|
9473
|
+
skip?: number;
|
|
9474
|
+
hasMore?: boolean;
|
|
9475
|
+
};
|
|
9476
|
+
});
|
|
9404
9477
|
|
|
9405
9478
|
export type ListBroadcastRecipientsError = ({
|
|
9406
9479
|
error?: string;
|
|
@@ -9426,7 +9499,17 @@ export type AddBroadcastRecipientsData = {
|
|
|
9426
9499
|
};
|
|
9427
9500
|
};
|
|
9428
9501
|
|
|
9429
|
-
export type AddBroadcastRecipientsResponse = (
|
|
9502
|
+
export type AddBroadcastRecipientsResponse = ({
|
|
9503
|
+
success?: boolean;
|
|
9504
|
+
/**
|
|
9505
|
+
* Number of recipients successfully added
|
|
9506
|
+
*/
|
|
9507
|
+
added?: number;
|
|
9508
|
+
/**
|
|
9509
|
+
* Number skipped (duplicates or missing channels)
|
|
9510
|
+
*/
|
|
9511
|
+
skipped?: number;
|
|
9512
|
+
});
|
|
9430
9513
|
|
|
9431
9514
|
export type AddBroadcastRecipientsError = ({
|
|
9432
9515
|
error?: string;
|
|
@@ -9528,7 +9611,38 @@ export type GetSequenceData = {
|
|
|
9528
9611
|
};
|
|
9529
9612
|
};
|
|
9530
9613
|
|
|
9531
|
-
export type GetSequenceResponse = (
|
|
9614
|
+
export type GetSequenceResponse = ({
|
|
9615
|
+
success?: boolean;
|
|
9616
|
+
sequence?: {
|
|
9617
|
+
id?: string;
|
|
9618
|
+
name?: string;
|
|
9619
|
+
description?: string;
|
|
9620
|
+
platform?: string;
|
|
9621
|
+
accountId?: string;
|
|
9622
|
+
status?: 'draft' | 'active' | 'paused';
|
|
9623
|
+
steps?: Array<{
|
|
9624
|
+
order?: number;
|
|
9625
|
+
delayMinutes?: number;
|
|
9626
|
+
message?: {
|
|
9627
|
+
text?: string;
|
|
9628
|
+
};
|
|
9629
|
+
template?: {
|
|
9630
|
+
name?: string;
|
|
9631
|
+
language?: string;
|
|
9632
|
+
variableMapping?: {
|
|
9633
|
+
[key: string]: unknown;
|
|
9634
|
+
};
|
|
9635
|
+
};
|
|
9636
|
+
}>;
|
|
9637
|
+
exitOnReply?: boolean;
|
|
9638
|
+
exitOnUnsubscribe?: boolean;
|
|
9639
|
+
totalEnrolled?: number;
|
|
9640
|
+
totalCompleted?: number;
|
|
9641
|
+
totalExited?: number;
|
|
9642
|
+
createdAt?: string;
|
|
9643
|
+
updatedAt?: string;
|
|
9644
|
+
};
|
|
9645
|
+
});
|
|
9532
9646
|
|
|
9533
9647
|
export type GetSequenceError = ({
|
|
9534
9648
|
error?: string;
|
|
@@ -9540,7 +9654,21 @@ export type UpdateSequenceData = {
|
|
|
9540
9654
|
};
|
|
9541
9655
|
};
|
|
9542
9656
|
|
|
9543
|
-
export type UpdateSequenceResponse = (
|
|
9657
|
+
export type UpdateSequenceResponse = ({
|
|
9658
|
+
success?: boolean;
|
|
9659
|
+
sequence?: {
|
|
9660
|
+
id?: string;
|
|
9661
|
+
name?: string;
|
|
9662
|
+
description?: string;
|
|
9663
|
+
status?: string;
|
|
9664
|
+
steps?: Array<{
|
|
9665
|
+
[key: string]: unknown;
|
|
9666
|
+
}>;
|
|
9667
|
+
exitOnReply?: boolean;
|
|
9668
|
+
exitOnUnsubscribe?: boolean;
|
|
9669
|
+
updatedAt?: string;
|
|
9670
|
+
};
|
|
9671
|
+
});
|
|
9544
9672
|
|
|
9545
9673
|
export type UpdateSequenceError = ({
|
|
9546
9674
|
error?: string;
|
|
@@ -9564,7 +9692,13 @@ export type ActivateSequenceData = {
|
|
|
9564
9692
|
};
|
|
9565
9693
|
};
|
|
9566
9694
|
|
|
9567
|
-
export type ActivateSequenceResponse = (
|
|
9695
|
+
export type ActivateSequenceResponse = ({
|
|
9696
|
+
success?: boolean;
|
|
9697
|
+
sequence?: {
|
|
9698
|
+
id?: string;
|
|
9699
|
+
status?: string;
|
|
9700
|
+
};
|
|
9701
|
+
});
|
|
9568
9702
|
|
|
9569
9703
|
export type ActivateSequenceError = (unknown | {
|
|
9570
9704
|
error?: string;
|
|
@@ -9576,7 +9710,13 @@ export type PauseSequenceData = {
|
|
|
9576
9710
|
};
|
|
9577
9711
|
};
|
|
9578
9712
|
|
|
9579
|
-
export type PauseSequenceResponse = (
|
|
9713
|
+
export type PauseSequenceResponse = ({
|
|
9714
|
+
success?: boolean;
|
|
9715
|
+
sequence?: {
|
|
9716
|
+
id?: string;
|
|
9717
|
+
status?: string;
|
|
9718
|
+
};
|
|
9719
|
+
});
|
|
9580
9720
|
|
|
9581
9721
|
export type PauseSequenceError = (unknown | {
|
|
9582
9722
|
error?: string;
|
|
@@ -9595,7 +9735,17 @@ export type EnrollContactsData = {
|
|
|
9595
9735
|
};
|
|
9596
9736
|
};
|
|
9597
9737
|
|
|
9598
|
-
export type EnrollContactsResponse = (
|
|
9738
|
+
export type EnrollContactsResponse = ({
|
|
9739
|
+
success?: boolean;
|
|
9740
|
+
/**
|
|
9741
|
+
* Number of contacts successfully enrolled
|
|
9742
|
+
*/
|
|
9743
|
+
enrolled?: number;
|
|
9744
|
+
/**
|
|
9745
|
+
* Number skipped (already enrolled or missing channel)
|
|
9746
|
+
*/
|
|
9747
|
+
skipped?: number;
|
|
9748
|
+
});
|
|
9599
9749
|
|
|
9600
9750
|
export type EnrollContactsError = ({
|
|
9601
9751
|
error?: string;
|
|
@@ -9625,7 +9775,29 @@ export type ListSequenceEnrollmentsData = {
|
|
|
9625
9775
|
};
|
|
9626
9776
|
};
|
|
9627
9777
|
|
|
9628
|
-
export type ListSequenceEnrollmentsResponse = (
|
|
9778
|
+
export type ListSequenceEnrollmentsResponse = ({
|
|
9779
|
+
success?: boolean;
|
|
9780
|
+
enrollments?: Array<{
|
|
9781
|
+
id?: string;
|
|
9782
|
+
contactId?: string;
|
|
9783
|
+
channelId?: string;
|
|
9784
|
+
platformIdentifier?: string;
|
|
9785
|
+
contactName?: string;
|
|
9786
|
+
currentStepIndex?: number;
|
|
9787
|
+
status?: 'active' | 'completed' | 'exited' | 'paused';
|
|
9788
|
+
exitReason?: string;
|
|
9789
|
+
nextStepAt?: string;
|
|
9790
|
+
stepsSent?: number;
|
|
9791
|
+
lastStepSentAt?: string;
|
|
9792
|
+
createdAt?: string;
|
|
9793
|
+
}>;
|
|
9794
|
+
pagination?: {
|
|
9795
|
+
total?: number;
|
|
9796
|
+
limit?: number;
|
|
9797
|
+
skip?: number;
|
|
9798
|
+
hasMore?: boolean;
|
|
9799
|
+
};
|
|
9800
|
+
});
|
|
9629
9801
|
|
|
9630
9802
|
export type ListSequenceEnrollmentsError = ({
|
|
9631
9803
|
error?: string;
|