@getlatedev/node 0.2.20 → 0.2.22

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.
@@ -3342,6 +3342,14 @@ export type UpdatePostMetadataData = {
3342
3342
  * The platform to update metadata on
3343
3343
  */
3344
3344
  platform: 'youtube';
3345
+ /**
3346
+ * YouTube video ID (required for direct mode, ignored for post-based mode)
3347
+ */
3348
+ videoId?: string;
3349
+ /**
3350
+ * Zernio social account ID (required for direct mode, ignored for post-based mode)
3351
+ */
3352
+ accountId?: string;
3345
3353
  /**
3346
3354
  * New video title (max 100 characters for YouTube)
3347
3355
  */
@@ -3364,6 +3372,9 @@ export type UpdatePostMetadataData = {
3364
3372
  privacyStatus?: 'public' | 'private' | 'unlisted';
3365
3373
  };
3366
3374
  path: {
3375
+ /**
3376
+ * Zernio post ID, or "_" when using direct video ID mode
3377
+ */
3367
3378
  postId: string;
3368
3379
  };
3369
3380
  };
@@ -3371,6 +3382,10 @@ export type UpdatePostMetadataData = {
3371
3382
  export type UpdatePostMetadataResponse = ({
3372
3383
  success?: boolean;
3373
3384
  message?: string;
3385
+ /**
3386
+ * Only present in direct video ID mode
3387
+ */
3388
+ videoId?: string;
3374
3389
  updatedFields?: Array<(string)>;
3375
3390
  });
3376
3391
 
@@ -9062,6 +9077,355 @@ export type ReleaseWhatsAppPhoneNumberError = (unknown | {
9062
9077
  error?: string;
9063
9078
  });
9064
9079
 
9080
+ export type ListWhatsAppGroupChatsData = {
9081
+ query: {
9082
+ /**
9083
+ * WhatsApp social account ID
9084
+ */
9085
+ accountId: string;
9086
+ /**
9087
+ * Pagination cursor
9088
+ */
9089
+ after?: string;
9090
+ /**
9091
+ * Max groups to return
9092
+ */
9093
+ limit?: number;
9094
+ };
9095
+ };
9096
+
9097
+ export type ListWhatsAppGroupChatsResponse = ({
9098
+ groups?: Array<{
9099
+ /**
9100
+ * Group ID
9101
+ */
9102
+ id?: string;
9103
+ /**
9104
+ * Group name
9105
+ */
9106
+ subject?: string;
9107
+ /**
9108
+ * Group creation timestamp
9109
+ */
9110
+ createdAt?: string;
9111
+ }>;
9112
+ paging?: {
9113
+ cursors?: {
9114
+ after?: string;
9115
+ before?: string;
9116
+ };
9117
+ };
9118
+ });
9119
+
9120
+ export type ListWhatsAppGroupChatsError = ({
9121
+ error?: string;
9122
+ });
9123
+
9124
+ export type CreateWhatsAppGroupChatData = {
9125
+ body: {
9126
+ /**
9127
+ * WhatsApp social account ID
9128
+ */
9129
+ accountId: string;
9130
+ /**
9131
+ * Group name (max 128 characters)
9132
+ */
9133
+ subject: string;
9134
+ /**
9135
+ * Group description (max 2048 characters)
9136
+ */
9137
+ description?: string;
9138
+ /**
9139
+ * Whether users need approval to join via invite link
9140
+ */
9141
+ joinApprovalMode?: 'approval_required' | 'auto_approve';
9142
+ };
9143
+ };
9144
+
9145
+ export type CreateWhatsAppGroupChatResponse = ({
9146
+ success?: boolean;
9147
+ group?: {
9148
+ groupId?: string;
9149
+ inviteLink?: string;
9150
+ };
9151
+ });
9152
+
9153
+ export type CreateWhatsAppGroupChatError = ({
9154
+ error?: string;
9155
+ });
9156
+
9157
+ export type GetWhatsAppGroupChatData = {
9158
+ path: {
9159
+ /**
9160
+ * Group ID
9161
+ */
9162
+ groupId: string;
9163
+ };
9164
+ query: {
9165
+ /**
9166
+ * WhatsApp social account ID
9167
+ */
9168
+ accountId: string;
9169
+ };
9170
+ };
9171
+
9172
+ export type GetWhatsAppGroupChatResponse = ({
9173
+ success?: boolean;
9174
+ group?: {
9175
+ id?: string;
9176
+ subject?: string;
9177
+ description?: string;
9178
+ joinApprovalMode?: string;
9179
+ participants?: Array<{
9180
+ /**
9181
+ * Phone number
9182
+ */
9183
+ user?: string;
9184
+ admin?: string;
9185
+ }>;
9186
+ participantCount?: number;
9187
+ /**
9188
+ * UNIX timestamp
9189
+ */
9190
+ createdAt?: number;
9191
+ isSuspended?: boolean;
9192
+ };
9193
+ });
9194
+
9195
+ export type GetWhatsAppGroupChatError = ({
9196
+ error?: string;
9197
+ });
9198
+
9199
+ export type UpdateWhatsAppGroupChatData = {
9200
+ body: {
9201
+ subject?: string;
9202
+ description?: string;
9203
+ joinApprovalMode?: 'approval_required' | 'auto_approve';
9204
+ };
9205
+ path: {
9206
+ /**
9207
+ * Group ID
9208
+ */
9209
+ groupId: string;
9210
+ };
9211
+ query: {
9212
+ /**
9213
+ * WhatsApp social account ID
9214
+ */
9215
+ accountId: string;
9216
+ };
9217
+ };
9218
+
9219
+ export type UpdateWhatsAppGroupChatResponse = ({
9220
+ success?: boolean;
9221
+ message?: string;
9222
+ });
9223
+
9224
+ export type UpdateWhatsAppGroupChatError = ({
9225
+ error?: string;
9226
+ });
9227
+
9228
+ export type DeleteWhatsAppGroupChatData = {
9229
+ path: {
9230
+ /**
9231
+ * Group ID
9232
+ */
9233
+ groupId: string;
9234
+ };
9235
+ query: {
9236
+ /**
9237
+ * WhatsApp social account ID
9238
+ */
9239
+ accountId: string;
9240
+ };
9241
+ };
9242
+
9243
+ export type DeleteWhatsAppGroupChatResponse = ({
9244
+ success?: boolean;
9245
+ message?: string;
9246
+ });
9247
+
9248
+ export type DeleteWhatsAppGroupChatError = ({
9249
+ error?: string;
9250
+ });
9251
+
9252
+ export type AddWhatsAppGroupParticipantsData = {
9253
+ body: {
9254
+ /**
9255
+ * Phone numbers in E.164 format (max 8)
9256
+ */
9257
+ phoneNumbers: Array<(string)>;
9258
+ };
9259
+ path: {
9260
+ /**
9261
+ * Group ID
9262
+ */
9263
+ groupId: string;
9264
+ };
9265
+ query: {
9266
+ /**
9267
+ * WhatsApp social account ID
9268
+ */
9269
+ accountId: string;
9270
+ };
9271
+ };
9272
+
9273
+ export type AddWhatsAppGroupParticipantsResponse = ({
9274
+ success?: boolean;
9275
+ message?: string;
9276
+ });
9277
+
9278
+ export type AddWhatsAppGroupParticipantsError = ({
9279
+ error?: string;
9280
+ });
9281
+
9282
+ export type RemoveWhatsAppGroupParticipantsData = {
9283
+ body: {
9284
+ /**
9285
+ * Phone numbers to remove
9286
+ */
9287
+ phoneNumbers: Array<(string)>;
9288
+ };
9289
+ path: {
9290
+ /**
9291
+ * Group ID
9292
+ */
9293
+ groupId: string;
9294
+ };
9295
+ query: {
9296
+ /**
9297
+ * WhatsApp social account ID
9298
+ */
9299
+ accountId: string;
9300
+ };
9301
+ };
9302
+
9303
+ export type RemoveWhatsAppGroupParticipantsResponse = ({
9304
+ success?: boolean;
9305
+ message?: string;
9306
+ });
9307
+
9308
+ export type RemoveWhatsAppGroupParticipantsError = ({
9309
+ error?: string;
9310
+ });
9311
+
9312
+ export type CreateWhatsAppGroupInviteLinkData = {
9313
+ path: {
9314
+ /**
9315
+ * Group ID
9316
+ */
9317
+ groupId: string;
9318
+ };
9319
+ query: {
9320
+ /**
9321
+ * WhatsApp social account ID
9322
+ */
9323
+ accountId: string;
9324
+ };
9325
+ };
9326
+
9327
+ export type CreateWhatsAppGroupInviteLinkResponse = ({
9328
+ success?: boolean;
9329
+ inviteLink?: string;
9330
+ });
9331
+
9332
+ export type CreateWhatsAppGroupInviteLinkError = ({
9333
+ error?: string;
9334
+ });
9335
+
9336
+ export type ListWhatsAppGroupJoinRequestsData = {
9337
+ path: {
9338
+ /**
9339
+ * Group ID
9340
+ */
9341
+ groupId: string;
9342
+ };
9343
+ query: {
9344
+ /**
9345
+ * WhatsApp social account ID
9346
+ */
9347
+ accountId: string;
9348
+ };
9349
+ };
9350
+
9351
+ export type ListWhatsAppGroupJoinRequestsResponse = ({
9352
+ success?: boolean;
9353
+ joinRequests?: Array<{
9354
+ /**
9355
+ * Phone number
9356
+ */
9357
+ user?: string;
9358
+ /**
9359
+ * UNIX timestamp of request
9360
+ */
9361
+ timestamp?: number;
9362
+ }>;
9363
+ });
9364
+
9365
+ export type ListWhatsAppGroupJoinRequestsError = ({
9366
+ error?: string;
9367
+ });
9368
+
9369
+ export type ApproveWhatsAppGroupJoinRequestsData = {
9370
+ body: {
9371
+ /**
9372
+ * Phone numbers to approve
9373
+ */
9374
+ phoneNumbers: Array<(string)>;
9375
+ };
9376
+ path: {
9377
+ /**
9378
+ * Group ID
9379
+ */
9380
+ groupId: string;
9381
+ };
9382
+ query: {
9383
+ /**
9384
+ * WhatsApp social account ID
9385
+ */
9386
+ accountId: string;
9387
+ };
9388
+ };
9389
+
9390
+ export type ApproveWhatsAppGroupJoinRequestsResponse = ({
9391
+ success?: boolean;
9392
+ message?: string;
9393
+ });
9394
+
9395
+ export type ApproveWhatsAppGroupJoinRequestsError = ({
9396
+ error?: string;
9397
+ });
9398
+
9399
+ export type RejectWhatsAppGroupJoinRequestsData = {
9400
+ body: {
9401
+ /**
9402
+ * Phone numbers to reject
9403
+ */
9404
+ phoneNumbers: Array<(string)>;
9405
+ };
9406
+ path: {
9407
+ /**
9408
+ * Group ID
9409
+ */
9410
+ groupId: string;
9411
+ };
9412
+ query: {
9413
+ /**
9414
+ * WhatsApp social account ID
9415
+ */
9416
+ accountId: string;
9417
+ };
9418
+ };
9419
+
9420
+ export type RejectWhatsAppGroupJoinRequestsResponse = ({
9421
+ success?: boolean;
9422
+ message?: string;
9423
+ });
9424
+
9425
+ export type RejectWhatsAppGroupJoinRequestsError = ({
9426
+ error?: string;
9427
+ });
9428
+
9065
9429
  export type ListContactsData = {
9066
9430
  query?: {
9067
9431
  isSubscribed?: 'true' | 'false';