@getlatedev/node 0.2.4 → 0.2.6
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/README.md +59 -0
- package/dist/index.d.mts +643 -1
- package/dist/index.d.ts +643 -1
- package/dist/index.js +298 -0
- package/dist/index.mjs +298 -0
- package/package.json +1 -1
- package/src/client.ts +108 -0
- package/src/generated/sdk.gen.ts +455 -1
- package/src/generated/types.gen.ts +695 -0
|
@@ -1563,6 +1563,19 @@ export type TwitterPlatformData = {
|
|
|
1563
1563
|
content?: string;
|
|
1564
1564
|
mediaItems?: Array<MediaItem>;
|
|
1565
1565
|
}>;
|
|
1566
|
+
/**
|
|
1567
|
+
* Create a poll with this tweet. Mutually exclusive with media attachments and threads.
|
|
1568
|
+
*/
|
|
1569
|
+
poll?: {
|
|
1570
|
+
/**
|
|
1571
|
+
* Poll options (2-4 choices, max 25 characters each)
|
|
1572
|
+
*/
|
|
1573
|
+
options: Array<(string)>;
|
|
1574
|
+
/**
|
|
1575
|
+
* Poll duration in minutes (5 min to 7 days)
|
|
1576
|
+
*/
|
|
1577
|
+
duration_minutes: number;
|
|
1578
|
+
};
|
|
1566
1579
|
};
|
|
1567
1580
|
|
|
1568
1581
|
/**
|
|
@@ -8955,4 +8968,686 @@ export type ReleaseWhatsAppPhoneNumberResponse = ({
|
|
|
8955
8968
|
|
|
8956
8969
|
export type ReleaseWhatsAppPhoneNumberError = (unknown | {
|
|
8957
8970
|
error?: string;
|
|
8971
|
+
});
|
|
8972
|
+
|
|
8973
|
+
export type ListContactsData = {
|
|
8974
|
+
query: {
|
|
8975
|
+
isSubscribed?: 'true' | 'false';
|
|
8976
|
+
limit?: number;
|
|
8977
|
+
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
|
|
8978
|
+
profileId: string;
|
|
8979
|
+
search?: string;
|
|
8980
|
+
skip?: number;
|
|
8981
|
+
tag?: string;
|
|
8982
|
+
};
|
|
8983
|
+
};
|
|
8984
|
+
|
|
8985
|
+
export type ListContactsResponse = (unknown);
|
|
8986
|
+
|
|
8987
|
+
export type ListContactsError = ({
|
|
8988
|
+
error?: string;
|
|
8989
|
+
});
|
|
8990
|
+
|
|
8991
|
+
export type CreateContactData = {
|
|
8992
|
+
body: {
|
|
8993
|
+
profileId: string;
|
|
8994
|
+
name: string;
|
|
8995
|
+
email?: string;
|
|
8996
|
+
company?: string;
|
|
8997
|
+
tags?: Array<(string)>;
|
|
8998
|
+
isSubscribed?: boolean;
|
|
8999
|
+
notes?: string;
|
|
9000
|
+
/**
|
|
9001
|
+
* Optional. Creates a channel if provided with platform + platformIdentifier
|
|
9002
|
+
*/
|
|
9003
|
+
accountId?: string;
|
|
9004
|
+
platform?: string;
|
|
9005
|
+
platformIdentifier?: string;
|
|
9006
|
+
displayIdentifier?: string;
|
|
9007
|
+
};
|
|
9008
|
+
};
|
|
9009
|
+
|
|
9010
|
+
export type CreateContactResponse = (unknown);
|
|
9011
|
+
|
|
9012
|
+
export type CreateContactError = ({
|
|
9013
|
+
error?: string;
|
|
9014
|
+
} | unknown);
|
|
9015
|
+
|
|
9016
|
+
export type GetContactData = {
|
|
9017
|
+
path: {
|
|
9018
|
+
contactId: string;
|
|
9019
|
+
};
|
|
9020
|
+
};
|
|
9021
|
+
|
|
9022
|
+
export type GetContactResponse = (unknown);
|
|
9023
|
+
|
|
9024
|
+
export type GetContactError = ({
|
|
9025
|
+
error?: string;
|
|
9026
|
+
});
|
|
9027
|
+
|
|
9028
|
+
export type UpdateContactData = {
|
|
9029
|
+
body?: {
|
|
9030
|
+
name?: string;
|
|
9031
|
+
email?: string;
|
|
9032
|
+
company?: string;
|
|
9033
|
+
avatarUrl?: string;
|
|
9034
|
+
tags?: Array<(string)>;
|
|
9035
|
+
isSubscribed?: boolean;
|
|
9036
|
+
isBlocked?: boolean;
|
|
9037
|
+
notes?: string;
|
|
9038
|
+
};
|
|
9039
|
+
path: {
|
|
9040
|
+
contactId: string;
|
|
9041
|
+
};
|
|
9042
|
+
};
|
|
9043
|
+
|
|
9044
|
+
export type UpdateContactResponse = (unknown);
|
|
9045
|
+
|
|
9046
|
+
export type UpdateContactError = ({
|
|
9047
|
+
error?: string;
|
|
9048
|
+
});
|
|
9049
|
+
|
|
9050
|
+
export type DeleteContactData = {
|
|
9051
|
+
path: {
|
|
9052
|
+
contactId: string;
|
|
9053
|
+
};
|
|
9054
|
+
};
|
|
9055
|
+
|
|
9056
|
+
export type DeleteContactResponse = (unknown);
|
|
9057
|
+
|
|
9058
|
+
export type DeleteContactError = ({
|
|
9059
|
+
error?: string;
|
|
9060
|
+
});
|
|
9061
|
+
|
|
9062
|
+
export type GetContactChannelsData = {
|
|
9063
|
+
path: {
|
|
9064
|
+
contactId: string;
|
|
9065
|
+
};
|
|
9066
|
+
};
|
|
9067
|
+
|
|
9068
|
+
export type GetContactChannelsResponse = (unknown);
|
|
9069
|
+
|
|
9070
|
+
export type GetContactChannelsError = ({
|
|
9071
|
+
error?: string;
|
|
9072
|
+
});
|
|
9073
|
+
|
|
9074
|
+
export type BulkCreateContactsData = {
|
|
9075
|
+
body: {
|
|
9076
|
+
profileId: string;
|
|
9077
|
+
accountId: string;
|
|
9078
|
+
platform: string;
|
|
9079
|
+
contacts: Array<{
|
|
9080
|
+
name: string;
|
|
9081
|
+
platformIdentifier: string;
|
|
9082
|
+
displayIdentifier?: string;
|
|
9083
|
+
email?: string;
|
|
9084
|
+
company?: string;
|
|
9085
|
+
tags?: Array<(string)>;
|
|
9086
|
+
}>;
|
|
9087
|
+
};
|
|
9088
|
+
};
|
|
9089
|
+
|
|
9090
|
+
export type BulkCreateContactsResponse = (unknown);
|
|
9091
|
+
|
|
9092
|
+
export type BulkCreateContactsError = ({
|
|
9093
|
+
error?: string;
|
|
9094
|
+
});
|
|
9095
|
+
|
|
9096
|
+
export type SetContactFieldValueData = {
|
|
9097
|
+
body: {
|
|
9098
|
+
/**
|
|
9099
|
+
* Field value (type depends on field definition)
|
|
9100
|
+
*/
|
|
9101
|
+
value: unknown;
|
|
9102
|
+
};
|
|
9103
|
+
path: {
|
|
9104
|
+
contactId: string;
|
|
9105
|
+
slug: string;
|
|
9106
|
+
};
|
|
9107
|
+
};
|
|
9108
|
+
|
|
9109
|
+
export type SetContactFieldValueResponse = (unknown);
|
|
9110
|
+
|
|
9111
|
+
export type SetContactFieldValueError = ({
|
|
9112
|
+
error?: string;
|
|
9113
|
+
});
|
|
9114
|
+
|
|
9115
|
+
export type ClearContactFieldValueData = {
|
|
9116
|
+
path: {
|
|
9117
|
+
contactId: string;
|
|
9118
|
+
slug: string;
|
|
9119
|
+
};
|
|
9120
|
+
};
|
|
9121
|
+
|
|
9122
|
+
export type ClearContactFieldValueResponse = (unknown);
|
|
9123
|
+
|
|
9124
|
+
export type ClearContactFieldValueError = ({
|
|
9125
|
+
error?: string;
|
|
9126
|
+
});
|
|
9127
|
+
|
|
9128
|
+
export type ListCustomFieldsData = {
|
|
9129
|
+
query: {
|
|
9130
|
+
profileId: string;
|
|
9131
|
+
};
|
|
9132
|
+
};
|
|
9133
|
+
|
|
9134
|
+
export type ListCustomFieldsResponse = (unknown);
|
|
9135
|
+
|
|
9136
|
+
export type ListCustomFieldsError = ({
|
|
9137
|
+
error?: string;
|
|
9138
|
+
});
|
|
9139
|
+
|
|
9140
|
+
export type CreateCustomFieldData = {
|
|
9141
|
+
body: {
|
|
9142
|
+
profileId: string;
|
|
9143
|
+
name: string;
|
|
9144
|
+
/**
|
|
9145
|
+
* Auto-generated from name if not provided
|
|
9146
|
+
*/
|
|
9147
|
+
slug?: string;
|
|
9148
|
+
type: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9149
|
+
/**
|
|
9150
|
+
* Required for select type
|
|
9151
|
+
*/
|
|
9152
|
+
options?: Array<(string)>;
|
|
9153
|
+
};
|
|
9154
|
+
};
|
|
9155
|
+
|
|
9156
|
+
export type CreateCustomFieldResponse = (unknown);
|
|
9157
|
+
|
|
9158
|
+
export type CreateCustomFieldError = ({
|
|
9159
|
+
error?: string;
|
|
9160
|
+
} | unknown);
|
|
9161
|
+
|
|
9162
|
+
export type UpdateCustomFieldData = {
|
|
9163
|
+
body?: {
|
|
9164
|
+
name?: string;
|
|
9165
|
+
options?: Array<(string)>;
|
|
9166
|
+
};
|
|
9167
|
+
path: {
|
|
9168
|
+
fieldId: string;
|
|
9169
|
+
};
|
|
9170
|
+
};
|
|
9171
|
+
|
|
9172
|
+
export type UpdateCustomFieldResponse = (unknown);
|
|
9173
|
+
|
|
9174
|
+
export type UpdateCustomFieldError = ({
|
|
9175
|
+
error?: string;
|
|
9176
|
+
});
|
|
9177
|
+
|
|
9178
|
+
export type DeleteCustomFieldData = {
|
|
9179
|
+
path: {
|
|
9180
|
+
fieldId: string;
|
|
9181
|
+
};
|
|
9182
|
+
};
|
|
9183
|
+
|
|
9184
|
+
export type DeleteCustomFieldResponse = (unknown);
|
|
9185
|
+
|
|
9186
|
+
export type DeleteCustomFieldError = ({
|
|
9187
|
+
error?: string;
|
|
9188
|
+
});
|
|
9189
|
+
|
|
9190
|
+
export type ListBroadcastsData = {
|
|
9191
|
+
query: {
|
|
9192
|
+
limit?: number;
|
|
9193
|
+
platform?: string;
|
|
9194
|
+
profileId: string;
|
|
9195
|
+
skip?: number;
|
|
9196
|
+
status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
|
|
9197
|
+
};
|
|
9198
|
+
};
|
|
9199
|
+
|
|
9200
|
+
export type ListBroadcastsResponse = (unknown);
|
|
9201
|
+
|
|
9202
|
+
export type ListBroadcastsError = ({
|
|
9203
|
+
error?: string;
|
|
9204
|
+
});
|
|
9205
|
+
|
|
9206
|
+
export type CreateBroadcastData = {
|
|
9207
|
+
body: {
|
|
9208
|
+
profileId: string;
|
|
9209
|
+
accountId: string;
|
|
9210
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
|
|
9211
|
+
name: string;
|
|
9212
|
+
description?: string;
|
|
9213
|
+
message?: {
|
|
9214
|
+
text?: string;
|
|
9215
|
+
attachments?: Array<{
|
|
9216
|
+
type?: string;
|
|
9217
|
+
url?: string;
|
|
9218
|
+
filename?: string;
|
|
9219
|
+
}>;
|
|
9220
|
+
};
|
|
9221
|
+
/**
|
|
9222
|
+
* WhatsApp template (required when platform is whatsapp)
|
|
9223
|
+
*/
|
|
9224
|
+
template?: {
|
|
9225
|
+
name?: string;
|
|
9226
|
+
language?: string;
|
|
9227
|
+
components?: unknown[];
|
|
9228
|
+
};
|
|
9229
|
+
segmentFilters?: {
|
|
9230
|
+
tags?: Array<(string)>;
|
|
9231
|
+
isSubscribed?: boolean;
|
|
9232
|
+
};
|
|
9233
|
+
};
|
|
9234
|
+
};
|
|
9235
|
+
|
|
9236
|
+
export type CreateBroadcastResponse = (unknown);
|
|
9237
|
+
|
|
9238
|
+
export type CreateBroadcastError = ({
|
|
9239
|
+
error?: string;
|
|
9240
|
+
});
|
|
9241
|
+
|
|
9242
|
+
export type GetBroadcastData = {
|
|
9243
|
+
path: {
|
|
9244
|
+
broadcastId: string;
|
|
9245
|
+
};
|
|
9246
|
+
};
|
|
9247
|
+
|
|
9248
|
+
export type GetBroadcastResponse = (unknown);
|
|
9249
|
+
|
|
9250
|
+
export type GetBroadcastError = ({
|
|
9251
|
+
error?: string;
|
|
9252
|
+
});
|
|
9253
|
+
|
|
9254
|
+
export type UpdateBroadcastData = {
|
|
9255
|
+
path: {
|
|
9256
|
+
broadcastId: string;
|
|
9257
|
+
};
|
|
9258
|
+
};
|
|
9259
|
+
|
|
9260
|
+
export type UpdateBroadcastResponse = (unknown);
|
|
9261
|
+
|
|
9262
|
+
export type UpdateBroadcastError = ({
|
|
9263
|
+
error?: string;
|
|
9264
|
+
});
|
|
9265
|
+
|
|
9266
|
+
export type DeleteBroadcastData = {
|
|
9267
|
+
path: {
|
|
9268
|
+
broadcastId: string;
|
|
9269
|
+
};
|
|
9270
|
+
};
|
|
9271
|
+
|
|
9272
|
+
export type DeleteBroadcastResponse = (unknown);
|
|
9273
|
+
|
|
9274
|
+
export type DeleteBroadcastError = ({
|
|
9275
|
+
error?: string;
|
|
9276
|
+
});
|
|
9277
|
+
|
|
9278
|
+
export type SendBroadcastData = {
|
|
9279
|
+
path: {
|
|
9280
|
+
broadcastId: string;
|
|
9281
|
+
};
|
|
9282
|
+
};
|
|
9283
|
+
|
|
9284
|
+
export type SendBroadcastResponse = (unknown);
|
|
9285
|
+
|
|
9286
|
+
export type SendBroadcastError = (unknown | {
|
|
9287
|
+
error?: string;
|
|
9288
|
+
});
|
|
9289
|
+
|
|
9290
|
+
export type ScheduleBroadcastData = {
|
|
9291
|
+
body: {
|
|
9292
|
+
scheduledAt: string;
|
|
9293
|
+
};
|
|
9294
|
+
path: {
|
|
9295
|
+
broadcastId: string;
|
|
9296
|
+
};
|
|
9297
|
+
};
|
|
9298
|
+
|
|
9299
|
+
export type ScheduleBroadcastResponse = (unknown);
|
|
9300
|
+
|
|
9301
|
+
export type ScheduleBroadcastError = (unknown | {
|
|
9302
|
+
error?: string;
|
|
9303
|
+
});
|
|
9304
|
+
|
|
9305
|
+
export type CancelBroadcastData = {
|
|
9306
|
+
path: {
|
|
9307
|
+
broadcastId: string;
|
|
9308
|
+
};
|
|
9309
|
+
};
|
|
9310
|
+
|
|
9311
|
+
export type CancelBroadcastResponse = (unknown);
|
|
9312
|
+
|
|
9313
|
+
export type CancelBroadcastError = (unknown | {
|
|
9314
|
+
error?: string;
|
|
9315
|
+
});
|
|
9316
|
+
|
|
9317
|
+
export type ListBroadcastRecipientsData = {
|
|
9318
|
+
path: {
|
|
9319
|
+
broadcastId: string;
|
|
9320
|
+
};
|
|
9321
|
+
query?: {
|
|
9322
|
+
limit?: number;
|
|
9323
|
+
skip?: number;
|
|
9324
|
+
status?: 'pending' | 'sent' | 'delivered' | 'read' | 'failed';
|
|
9325
|
+
};
|
|
9326
|
+
};
|
|
9327
|
+
|
|
9328
|
+
export type ListBroadcastRecipientsResponse = (unknown);
|
|
9329
|
+
|
|
9330
|
+
export type ListBroadcastRecipientsError = ({
|
|
9331
|
+
error?: string;
|
|
9332
|
+
});
|
|
9333
|
+
|
|
9334
|
+
export type AddBroadcastRecipientsData = {
|
|
9335
|
+
body: {
|
|
9336
|
+
/**
|
|
9337
|
+
* Specific contact IDs to add
|
|
9338
|
+
*/
|
|
9339
|
+
contactIds?: Array<(string)>;
|
|
9340
|
+
/**
|
|
9341
|
+
* Auto-populate from broadcast segment filters
|
|
9342
|
+
*/
|
|
9343
|
+
useSegment?: boolean;
|
|
9344
|
+
};
|
|
9345
|
+
path: {
|
|
9346
|
+
broadcastId: string;
|
|
9347
|
+
};
|
|
9348
|
+
};
|
|
9349
|
+
|
|
9350
|
+
export type AddBroadcastRecipientsResponse = (unknown);
|
|
9351
|
+
|
|
9352
|
+
export type AddBroadcastRecipientsError = ({
|
|
9353
|
+
error?: string;
|
|
9354
|
+
});
|
|
9355
|
+
|
|
9356
|
+
export type ListSequencesData = {
|
|
9357
|
+
query: {
|
|
9358
|
+
limit?: number;
|
|
9359
|
+
profileId: string;
|
|
9360
|
+
skip?: number;
|
|
9361
|
+
status?: 'draft' | 'active' | 'paused';
|
|
9362
|
+
};
|
|
9363
|
+
};
|
|
9364
|
+
|
|
9365
|
+
export type ListSequencesResponse = (unknown);
|
|
9366
|
+
|
|
9367
|
+
export type ListSequencesError = ({
|
|
9368
|
+
error?: string;
|
|
9369
|
+
});
|
|
9370
|
+
|
|
9371
|
+
export type CreateSequenceData = {
|
|
9372
|
+
body: {
|
|
9373
|
+
profileId: string;
|
|
9374
|
+
accountId: string;
|
|
9375
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
|
|
9376
|
+
name: string;
|
|
9377
|
+
description?: string;
|
|
9378
|
+
steps?: Array<{
|
|
9379
|
+
order: number;
|
|
9380
|
+
delayMinutes: number;
|
|
9381
|
+
message?: {
|
|
9382
|
+
text?: string;
|
|
9383
|
+
};
|
|
9384
|
+
template?: {
|
|
9385
|
+
name?: string;
|
|
9386
|
+
language?: string;
|
|
9387
|
+
};
|
|
9388
|
+
}>;
|
|
9389
|
+
exitOnReply?: boolean;
|
|
9390
|
+
exitOnUnsubscribe?: boolean;
|
|
9391
|
+
};
|
|
9392
|
+
};
|
|
9393
|
+
|
|
9394
|
+
export type CreateSequenceResponse = (unknown);
|
|
9395
|
+
|
|
9396
|
+
export type CreateSequenceError = ({
|
|
9397
|
+
error?: string;
|
|
9398
|
+
});
|
|
9399
|
+
|
|
9400
|
+
export type GetSequenceData = {
|
|
9401
|
+
path: {
|
|
9402
|
+
sequenceId: string;
|
|
9403
|
+
};
|
|
9404
|
+
};
|
|
9405
|
+
|
|
9406
|
+
export type GetSequenceResponse = (unknown);
|
|
9407
|
+
|
|
9408
|
+
export type GetSequenceError = ({
|
|
9409
|
+
error?: string;
|
|
9410
|
+
});
|
|
9411
|
+
|
|
9412
|
+
export type UpdateSequenceData = {
|
|
9413
|
+
path: {
|
|
9414
|
+
sequenceId: string;
|
|
9415
|
+
};
|
|
9416
|
+
};
|
|
9417
|
+
|
|
9418
|
+
export type UpdateSequenceResponse = (unknown);
|
|
9419
|
+
|
|
9420
|
+
export type UpdateSequenceError = ({
|
|
9421
|
+
error?: string;
|
|
9422
|
+
});
|
|
9423
|
+
|
|
9424
|
+
export type DeleteSequenceData = {
|
|
9425
|
+
path: {
|
|
9426
|
+
sequenceId: string;
|
|
9427
|
+
};
|
|
9428
|
+
};
|
|
9429
|
+
|
|
9430
|
+
export type DeleteSequenceResponse = (unknown);
|
|
9431
|
+
|
|
9432
|
+
export type DeleteSequenceError = ({
|
|
9433
|
+
error?: string;
|
|
9434
|
+
});
|
|
9435
|
+
|
|
9436
|
+
export type ActivateSequenceData = {
|
|
9437
|
+
path: {
|
|
9438
|
+
sequenceId: string;
|
|
9439
|
+
};
|
|
9440
|
+
};
|
|
9441
|
+
|
|
9442
|
+
export type ActivateSequenceResponse = (unknown);
|
|
9443
|
+
|
|
9444
|
+
export type ActivateSequenceError = (unknown | {
|
|
9445
|
+
error?: string;
|
|
9446
|
+
});
|
|
9447
|
+
|
|
9448
|
+
export type PauseSequenceData = {
|
|
9449
|
+
path: {
|
|
9450
|
+
sequenceId: string;
|
|
9451
|
+
};
|
|
9452
|
+
};
|
|
9453
|
+
|
|
9454
|
+
export type PauseSequenceResponse = (unknown);
|
|
9455
|
+
|
|
9456
|
+
export type PauseSequenceError = (unknown | {
|
|
9457
|
+
error?: string;
|
|
9458
|
+
});
|
|
9459
|
+
|
|
9460
|
+
export type EnrollContactsData = {
|
|
9461
|
+
body: {
|
|
9462
|
+
contactIds: Array<(string)>;
|
|
9463
|
+
/**
|
|
9464
|
+
* Optional. Auto-detected if not provided.
|
|
9465
|
+
*/
|
|
9466
|
+
channelIds?: Array<(string)>;
|
|
9467
|
+
};
|
|
9468
|
+
path: {
|
|
9469
|
+
sequenceId: string;
|
|
9470
|
+
};
|
|
9471
|
+
};
|
|
9472
|
+
|
|
9473
|
+
export type EnrollContactsResponse = (unknown);
|
|
9474
|
+
|
|
9475
|
+
export type EnrollContactsError = ({
|
|
9476
|
+
error?: string;
|
|
9477
|
+
});
|
|
9478
|
+
|
|
9479
|
+
export type UnenrollContactData = {
|
|
9480
|
+
path: {
|
|
9481
|
+
contactId: string;
|
|
9482
|
+
sequenceId: string;
|
|
9483
|
+
};
|
|
9484
|
+
};
|
|
9485
|
+
|
|
9486
|
+
export type UnenrollContactResponse = (unknown);
|
|
9487
|
+
|
|
9488
|
+
export type UnenrollContactError = ({
|
|
9489
|
+
error?: string;
|
|
9490
|
+
});
|
|
9491
|
+
|
|
9492
|
+
export type ListSequenceEnrollmentsData = {
|
|
9493
|
+
path: {
|
|
9494
|
+
sequenceId: string;
|
|
9495
|
+
};
|
|
9496
|
+
query?: {
|
|
9497
|
+
limit?: number;
|
|
9498
|
+
skip?: number;
|
|
9499
|
+
status?: 'active' | 'completed' | 'exited' | 'paused';
|
|
9500
|
+
};
|
|
9501
|
+
};
|
|
9502
|
+
|
|
9503
|
+
export type ListSequenceEnrollmentsResponse = (unknown);
|
|
9504
|
+
|
|
9505
|
+
export type ListSequenceEnrollmentsError = ({
|
|
9506
|
+
error?: string;
|
|
9507
|
+
});
|
|
9508
|
+
|
|
9509
|
+
export type ListCommentAutomationsData = {
|
|
9510
|
+
query: {
|
|
9511
|
+
/**
|
|
9512
|
+
* Profile ID
|
|
9513
|
+
*/
|
|
9514
|
+
profileId: string;
|
|
9515
|
+
};
|
|
9516
|
+
};
|
|
9517
|
+
|
|
9518
|
+
export type ListCommentAutomationsResponse = ({
|
|
9519
|
+
success?: boolean;
|
|
9520
|
+
automations?: Array<{
|
|
9521
|
+
id?: string;
|
|
9522
|
+
name?: string;
|
|
9523
|
+
platform?: 'instagram' | 'facebook';
|
|
9524
|
+
accountId?: string;
|
|
9525
|
+
platformPostId?: string;
|
|
9526
|
+
postTitle?: string;
|
|
9527
|
+
keywords?: Array<(string)>;
|
|
9528
|
+
matchMode?: 'exact' | 'contains';
|
|
9529
|
+
dmMessage?: string;
|
|
9530
|
+
commentReply?: string;
|
|
9531
|
+
isActive?: boolean;
|
|
9532
|
+
stats?: {
|
|
9533
|
+
triggered?: number;
|
|
9534
|
+
dmsSent?: number;
|
|
9535
|
+
dmsFailed?: number;
|
|
9536
|
+
uniqueContacts?: number;
|
|
9537
|
+
};
|
|
9538
|
+
createdAt?: string;
|
|
9539
|
+
}>;
|
|
9540
|
+
});
|
|
9541
|
+
|
|
9542
|
+
export type ListCommentAutomationsError = ({
|
|
9543
|
+
error?: string;
|
|
9544
|
+
});
|
|
9545
|
+
|
|
9546
|
+
export type CreateCommentAutomationData = {
|
|
9547
|
+
body: {
|
|
9548
|
+
profileId: string;
|
|
9549
|
+
/**
|
|
9550
|
+
* Instagram or Facebook account ID
|
|
9551
|
+
*/
|
|
9552
|
+
accountId: string;
|
|
9553
|
+
/**
|
|
9554
|
+
* Platform media/post ID
|
|
9555
|
+
*/
|
|
9556
|
+
platformPostId: string;
|
|
9557
|
+
/**
|
|
9558
|
+
* Zernio post ID (optional)
|
|
9559
|
+
*/
|
|
9560
|
+
postId?: string;
|
|
9561
|
+
/**
|
|
9562
|
+
* Post content snippet for display
|
|
9563
|
+
*/
|
|
9564
|
+
postTitle?: string;
|
|
9565
|
+
/**
|
|
9566
|
+
* Automation label
|
|
9567
|
+
*/
|
|
9568
|
+
name: string;
|
|
9569
|
+
/**
|
|
9570
|
+
* Trigger keywords (empty = any comment triggers)
|
|
9571
|
+
*/
|
|
9572
|
+
keywords?: Array<(string)>;
|
|
9573
|
+
matchMode?: 'exact' | 'contains';
|
|
9574
|
+
/**
|
|
9575
|
+
* DM text to send to commenter
|
|
9576
|
+
*/
|
|
9577
|
+
dmMessage: string;
|
|
9578
|
+
/**
|
|
9579
|
+
* Optional public reply to the comment
|
|
9580
|
+
*/
|
|
9581
|
+
commentReply?: string;
|
|
9582
|
+
};
|
|
9583
|
+
};
|
|
9584
|
+
|
|
9585
|
+
export type CreateCommentAutomationResponse = (unknown);
|
|
9586
|
+
|
|
9587
|
+
export type CreateCommentAutomationError = (unknown | {
|
|
9588
|
+
error?: string;
|
|
9589
|
+
});
|
|
9590
|
+
|
|
9591
|
+
export type GetCommentAutomationData = {
|
|
9592
|
+
path: {
|
|
9593
|
+
automationId: string;
|
|
9594
|
+
};
|
|
9595
|
+
};
|
|
9596
|
+
|
|
9597
|
+
export type GetCommentAutomationResponse = (unknown);
|
|
9598
|
+
|
|
9599
|
+
export type GetCommentAutomationError = ({
|
|
9600
|
+
error?: string;
|
|
9601
|
+
});
|
|
9602
|
+
|
|
9603
|
+
export type UpdateCommentAutomationData = {
|
|
9604
|
+
body?: {
|
|
9605
|
+
name?: string;
|
|
9606
|
+
keywords?: Array<(string)>;
|
|
9607
|
+
matchMode?: 'exact' | 'contains';
|
|
9608
|
+
dmMessage?: string;
|
|
9609
|
+
commentReply?: string;
|
|
9610
|
+
isActive?: boolean;
|
|
9611
|
+
};
|
|
9612
|
+
path: {
|
|
9613
|
+
automationId: string;
|
|
9614
|
+
};
|
|
9615
|
+
};
|
|
9616
|
+
|
|
9617
|
+
export type UpdateCommentAutomationResponse = (unknown);
|
|
9618
|
+
|
|
9619
|
+
export type UpdateCommentAutomationError = ({
|
|
9620
|
+
error?: string;
|
|
9621
|
+
});
|
|
9622
|
+
|
|
9623
|
+
export type DeleteCommentAutomationData = {
|
|
9624
|
+
path: {
|
|
9625
|
+
automationId: string;
|
|
9626
|
+
};
|
|
9627
|
+
};
|
|
9628
|
+
|
|
9629
|
+
export type DeleteCommentAutomationResponse = (unknown);
|
|
9630
|
+
|
|
9631
|
+
export type DeleteCommentAutomationError = ({
|
|
9632
|
+
error?: string;
|
|
9633
|
+
});
|
|
9634
|
+
|
|
9635
|
+
export type ListCommentAutomationLogsData = {
|
|
9636
|
+
path: {
|
|
9637
|
+
automationId: string;
|
|
9638
|
+
};
|
|
9639
|
+
query?: {
|
|
9640
|
+
limit?: number;
|
|
9641
|
+
skip?: number;
|
|
9642
|
+
/**
|
|
9643
|
+
* Filter by result status
|
|
9644
|
+
*/
|
|
9645
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
9646
|
+
};
|
|
9647
|
+
};
|
|
9648
|
+
|
|
9649
|
+
export type ListCommentAutomationLogsResponse = (unknown);
|
|
9650
|
+
|
|
9651
|
+
export type ListCommentAutomationLogsError = ({
|
|
9652
|
+
error?: string;
|
|
8958
9653
|
});
|