@getlatedev/node 0.2.5 → 0.2.7

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