@getlatedev/node 0.2.19 → 0.2.21

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