@unipile/sdk 2.7.0 → 2.21.0

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/sdk.gen.js CHANGED
@@ -242,7 +242,10 @@ class UnipileMessaging extends HeyApiClient {
242
242
  /**
243
243
  * List all Chats
244
244
  *
245
- * Returns a list of account's chats, whatever the inbox they belong to. The chats are returned sorted by their last message date, with the most recent appearing first. You might want to use the <a href="https://developer.unipile.com/v2.0/reference/get_v2-account-id-inboxes-inbox-id-chats">List inbox Chats</a> instead if not supported by the provider. Filters are applied with an AND logic if supported by the provider.
245
+ * Returns a list of account's chats, whatever the inbox they belong to. The chats are returned sorted by their last message date, with the most recent appearing first.
246
+ * You might want to use the <a href="https://developer.unipile.com/v2.0/reference/getinboxchatslist">List inbox Chats</a> instead if not supported by the provider.
247
+ * Filters are applied with an AND logic if supported by the provider.
248
+ *
246
249
  */
247
250
  getChatsList(options) {
248
251
  return (options.client ?? this.client).get({
@@ -266,7 +269,10 @@ class UnipileMessaging extends HeyApiClient {
266
269
  /**
267
270
  * List Inbox Chats
268
271
  *
269
- * Returns a list of account's chats from a specific inbox. The chats are returned sorted by their last message date, with the most recent appearing first. Filters are applied with an AND logic if supported by the provider.
272
+ * Returns a list of account's chats from a specific inbox.
273
+ * The chats are returned sorted by their last message date, with the most recent appearing first.
274
+ * Filters are applied with an AND logic if supported by the provider.
275
+ *
270
276
  */
271
277
  getInboxChatsList(options) {
272
278
  return (options.client ?? this.client).get({
@@ -331,12 +337,8 @@ class UnipileMessaging extends HeyApiClient {
331
337
  * Start a Chat
332
338
  *
333
339
  * Starts a new 1to1 or group chat by sending the first message.
334
- * <br/>
335
- * Use <a href="https://developer.unipile.com/v2.0/reference/post_v2-account-id-chats-chat-id-messages-send">Send a Message</a> if a conversation already exist with the wanted user(s).
336
- * <br/>
337
- * Use <a href="https://developer.unipile.com/v2.0/reference/post_v2-account-id-inboxes-inbox-id-chats">Start a Chat from Inbox</a> if the provider uses the inbox concept.
338
- * <br/>
339
- * Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
340
+ * Use <a href="https://developer.unipile.com/v2.0/reference/sendmessage">Send a Message</a> if a conversation already exist with the wanted user(s).
341
+ * Use <a href="https://developer.unipile.com/v2.0/reference/startchatfrominbox">Start a Chat from Inbox</a> if the provider uses the inbox concept.<br/><br/>Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
340
342
  */
341
343
  startChat(options) {
342
344
  return (options.client ?? this.client).post({
@@ -353,13 +355,8 @@ class UnipileMessaging extends HeyApiClient {
353
355
  * Start a Chat from Inbox
354
356
  *
355
357
  * Starts a new 1to1 or group chat in the given inbox by sending the first message.
356
- * <br/>
357
- * Use <a href="https://developer.unipile.com/v2.0/reference/post_v2-account-id-chats-chat-id-messages-send">Send a Message</a> if a conversation already exist with the wanted user(s).
358
- * <br/>
359
- * Use <a href="https://developer.unipile.com/v2.0/reference/post_v2-account-id-chats-send">Start a Chat</a> instead if the provider does not use the inbox concept.
360
- *
361
- * <br/>
362
- * Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
358
+ * Use <a href="https://developer.unipile.com/v2.0/reference/sendmessage">Send a Message</a> if a conversation already exist with the wanted user(s).
359
+ * Use <a href="https://developer.unipile.com/v2.0/reference/startchat">Start a Chat</a> instead if the provider does not use the inbox concept.<br/><br/>Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
363
360
  */
364
361
  startChatFromInbox(options) {
365
362
  return (options.client ?? this.client).post({
@@ -388,7 +385,6 @@ class UnipileMessaging extends HeyApiClient {
388
385
  * Delete a Message
389
386
  *
390
387
  * Deletes one of your own messages. Depending of the provider, the message might still be visible as deleted.
391
- * <br />
392
388
  * Trying to delete the message of another user will fail.
393
389
  */
394
390
  deleteMessage(options) {
@@ -414,10 +410,7 @@ class UnipileMessaging extends HeyApiClient {
414
410
  * Send a Message
415
411
  *
416
412
  * Sends a message in the specified chat.
417
- * <br/>
418
- * Use <a href="https://developer.unipile.com/v2.0/reference/post_v2-account-id-chats-send">Start a Chat</a> if you don't have a conversation with the wanted user(s) yet.
419
- * <br/>
420
- * Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
413
+ * Use <a href="https://developer.unipile.com/v2.0/reference/startchat">Start a Chat</a> or <a href="https://developer.unipile.com/v2.0/reference/startchatfrominbox">Start a Chat from Inbox</a> if no conversation has been started with the specified user or group of users yet.<br/><br/>Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
421
414
  */
422
415
  sendMessage(options) {
423
416
  return (options.client ?? this.client).post({
@@ -450,7 +443,6 @@ class UnipileMessaging extends HeyApiClient {
450
443
  * Modify a Message
451
444
  *
452
445
  * Modifies one of the account's owner messages.
453
- * <br/>
454
446
  * Trying to modify the message of another user will fail.
455
447
  */
456
448
  modifyMessage(options) {
@@ -469,7 +461,7 @@ class UnipileMessaging extends HeyApiClient {
469
461
  *
470
462
  * Marks a message sent in the chat by another user as read by you.
471
463
  * Trying to mark your own messages as read will fail.
472
- * This does not affect the read status of the chat. Use <a href="https://developer.unipile.com/v2.0/reference/patch_v2-account-id-chats-chat-id">Update a Chat</a> to mark a chat as read.
464
+ * This does not affect the read status of the chat. Use <a href="https://developer.unipile.com/v2.0/reference/updatechat">Update a Chat</a> to mark a chat as read.
473
465
  */
474
466
  readMessage(options) {
475
467
  return (options.client ?? this.client).post({
@@ -482,7 +474,6 @@ class UnipileMessaging extends HeyApiClient {
482
474
  * List all Chat Participants
483
475
  *
484
476
  * Returns a list of participants in the specified group chat. For 1to1 chats, the unique participant is given in the chat object.
485
- * <br />
486
477
  * Trying to retrieve the list of participants of a 1to1 chat will fail.
487
478
  */
488
479
  getParticipantsList(options) {
@@ -496,7 +487,6 @@ class UnipileMessaging extends HeyApiClient {
496
487
  * Add a Chat Participant
497
488
  *
498
489
  * Adds a new user as participant of chat if you have the rights to. Providers might requires an admin role or some permissions.
499
- * <br />
500
490
  * Trying to add a participant into a 1to1 chat can fail depending on the provider.
501
491
  */
502
492
  addParticipant(options) {
@@ -514,7 +504,6 @@ class UnipileMessaging extends HeyApiClient {
514
504
  * Remove a Chat Participant
515
505
  *
516
506
  * Removes a participant user from a chat if you have the rights to. Providers might requires an admin role or some permissions.
517
- * <br />
518
507
  * Trying to remove a participant from a 1to1 chat will fail.
519
508
  */
520
509
  removeParticipant(options) {
@@ -527,7 +516,9 @@ class UnipileMessaging extends HeyApiClient {
527
516
  /**
528
517
  * Remove a Message Reaction
529
518
  *
530
- * Removes a reaction of the account's owner from a message. Trying to remove a reaction from another user will fail.
519
+ * Removes a reaction of the account's owner from a message.
520
+ * Trying to remove a reaction from another user will fail.
521
+ *
531
522
  */
532
523
  removeMessageReaction(options) {
533
524
  return (options.client ?? this.client).delete({
@@ -619,7 +610,7 @@ class UnipileEmails extends HeyApiClient {
619
610
  /**
620
611
  * List all Emails
621
612
  *
622
- * Returns a list of emails in the account mailbox. Emails are returned sorted by their `date`, with the most recent appearing first.
613
+ * Returns a list of emails in the account mailbox. Emails are returned sorted by their `date`, with the most recent appearing first. Search mode applies when `q`, `from`, `to`, or `any_email` is set. Filter mode applies for browse-only queries (dates, folder scope, read/starred/attachment status).
623
614
  */
624
615
  getEmailsList(options) {
625
616
  return (options.client ?? this.client).get({
@@ -631,7 +622,7 @@ class UnipileEmails extends HeyApiClient {
631
622
  /**
632
623
  * List folder Emails
633
624
  *
634
- * Returns a list of emails in the specific folder of the account mailbox. Emails are returned sorted by their `date`, with the most recent appearing first.
625
+ * Returns a list of emails in the specific folder of the account mailbox. Emails are returned sorted by their `date`, with the most recent appearing first. Search mode applies when `q`, `from`, `to`, or `any_email` is set. Filter mode applies for browse-only queries (dates, read/starred/attachment status).
635
626
  */
636
627
  getFolderEmailsList(options) {
637
628
  return (options.client ?? this.client).get({
@@ -731,9 +722,7 @@ class UnipileEmails extends HeyApiClient {
731
722
  /**
732
723
  * Send an Email
733
724
  *
734
- * Sends an Email to the recipients in the `to`, `cc`, and `bcc`.
735
- * <br/>
736
- * Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
725
+ * Sends an Email to the recipients in the `to`, `cc`, and `bcc`.<br/><br/>Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
737
726
  */
738
727
  sendEmail(options) {
739
728
  return (options.client ?? this.client).post({
@@ -761,9 +750,7 @@ class UnipileEmails extends HeyApiClient {
761
750
  /**
762
751
  * Create a Draft
763
752
  *
764
- * Creates a new Draft in the draft folder of the provider. Use <a href="@todo">Send a Draft</a> to send the Email later.
765
- * <br/>
766
- * Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
753
+ * Creates a new Draft in the draft folder of the provider. Use <a href="@todo">Send a Draft</a> to send the Email later.<br/><br/>Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
767
754
  */
768
755
  createDraft(options) {
769
756
  return (options.client ?? this.client).post({
@@ -803,9 +790,7 @@ class UnipileEmails extends HeyApiClient {
803
790
  /**
804
791
  * Update a Draft
805
792
  *
806
- * Updates the specified Draft by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
807
- * <br/>
808
- * Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
793
+ * Updates the specified Draft by setting the values of the parameters passed. Any parameters not provided will be left unchanged.<br/><br/>Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
809
794
  */
810
795
  updateDraft(options) {
811
796
  return (options.client ?? this.client).patch({
@@ -933,9 +918,7 @@ class UnipileUsers extends HeyApiClient {
933
918
  /**
934
919
  * Update a User Profile
935
920
  *
936
- * Updates the specified User profile. Use `me` as `user_id` to update the account owner profile.
937
- * <br/>
938
- * Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
921
+ * Updates the specified User profile. Use `me` as `user_id` to update the account owner profile.<br/><br/>Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
939
922
  */
940
923
  updateUserProfile(options) {
941
924
  return (options.client ?? this.client).patch({
@@ -1159,9 +1142,7 @@ class UnipilePosts extends HeyApiClient {
1159
1142
  /**
1160
1143
  * Create a Post
1161
1144
  *
1162
- * Creates a new post.
1163
- * <br/>
1164
- * Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
1145
+ * Creates a new post.<br/><br/>Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
1165
1146
  */
1166
1147
  createPost(options) {
1167
1148
  return (options.client ?? this.client).post({
@@ -1193,7 +1174,9 @@ class UnipilePosts extends HeyApiClient {
1193
1174
  /**
1194
1175
  * List all Post's Reactions
1195
1176
  *
1196
- * Returns the list of reactions made to a post. Reaction counts are given with the Post object. This is useful to show a detailed list of all reactions and their author. LIMITATIONS: On Instagram, the list is always limited to a maximum of 100 reactions.
1177
+ * Returns the list of reactions made to a post. Reaction counts are given with the Post object. This is useful to show a detailed list of all reactions and their author.
1178
+ * LIMITATIONS: On Instagram, the list is always limited to a maximum of 100 reactions.
1179
+ *
1197
1180
  */
1198
1181
  getPostReactionsList(options) {
1199
1182
  return (options.client ?? this.client).get({
@@ -1233,9 +1216,7 @@ class UnipilePosts extends HeyApiClient {
1233
1216
  /**
1234
1217
  * Add Comment to a Post
1235
1218
  *
1236
- * Adds a comment to a post.
1237
- * <br/>
1238
- * Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
1219
+ * Adds a comment to a post.<br/><br/>Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
1239
1220
  */
1240
1221
  addPostComment(options) {
1241
1222
  return (options.client ?? this.client).post({
@@ -1279,9 +1260,7 @@ class UnipilePosts extends HeyApiClient {
1279
1260
  /**
1280
1261
  * Reply to a Comment
1281
1262
  *
1282
- * Replies to a particular comment.
1283
- * <br/>
1284
- * Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
1263
+ * Replies to a particular comment.<br/><br/>Multipart supported, refer to <a href="https://developer.unipile.com/v2.0/reference/api-usage#sending-files">Sending Files</a>.
1285
1264
  */
1286
1265
  replyToComment(options) {
1287
1266
  return (options.client ?? this.client).post({
@@ -1578,6 +1557,18 @@ class UnipileLinkedIn extends HeyApiClient {
1578
1557
  ...options
1579
1558
  });
1580
1559
  }
1560
+ /**
1561
+ * List Managed Company Pages
1562
+ *
1563
+ * Returns a list of company pages for which the account user is an administrator.
1564
+ */
1565
+ getManagedCompanyPages(options) {
1566
+ return (options.client ?? this.client).get({
1567
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
1568
+ url: '/v2/{account_id}/linkedin/company/pages',
1569
+ ...options
1570
+ });
1571
+ }
1581
1572
  /**
1582
1573
  * Get a Company Profile
1583
1574
  *
@@ -1746,8 +1737,7 @@ class UnipileLinkedIn extends HeyApiClient {
1746
1737
  * Create a Job Posting Draft
1747
1738
  *
1748
1739
  * Creates a new job posting as draft.
1749
- * <br/>
1750
- * Use <a href="https://developer.unipile.com/v2.0/reference/post_v2-account-id-linkedin-jobs-job-id-publish">Publish a Job Posting Draft</a> to publish the job once you are ready.
1740
+ * Use <a href="https://developer.unipile.com/v2.0/reference/publishclassicjobposting">Publish a Job Posting</a> to publish the job once you are ready.
1751
1741
  *
1752
1742
  */
1753
1743
  createClassicJobPostingDraft(options) {
@@ -2029,6 +2019,8 @@ class UnipileLinkedIn extends HeyApiClient {
2029
2019
  * Create a Job Posting Draft in an Existing Project
2030
2020
  *
2031
2021
  * Creates a new job posting as draft in a new project.
2022
+ * Use <a href="https://developer.unipile.com/v2.0/reference/publishrecruiterjobposting">Publish a Job Posting</a> to publish the job once you are ready.
2023
+ *
2032
2024
  */
2033
2025
  createRecruiterJobPostingDraftInExistingProject(options) {
2034
2026
  return (options.client ?? this.client).post({
@@ -2069,8 +2061,7 @@ class UnipileLinkedIn extends HeyApiClient {
2069
2061
  * Create a Job Posting Draft in a New Project
2070
2062
  *
2071
2063
  * Creates a new job posting as draft in a new project.
2072
- * <br/>
2073
- * Use <a href="https://developer.unipile.com/v2.0/reference/post_v2-account-id-linkedin-recruiter-projects-project-id-jobs-job-id-publish">Publish a Job Posting Draft</a> to publish the job once you are ready.
2064
+ * Use <a href="https://developer.unipile.com/v2.0/reference/publishrecruiterjobposting">Publish a Job Posting</a> to publish the job once you are ready.
2074
2065
  *
2075
2066
  */
2076
2067
  createRecruiterJobPostingDraftInNewProject(options) {
@@ -2428,10 +2419,26 @@ class UnipileCustomAuth extends HeyApiClient {
2428
2419
  }
2429
2420
  });
2430
2421
  }
2422
+ /**
2423
+ * Resend Checkpoint Notification or Code
2424
+ *
2425
+ * Resend the notification or code for the current checkpoint of the given authentication intent. Use Request Checkpoint to request a different checkpoint.
2426
+ */
2427
+ resendCheckpoint(options) {
2428
+ return (options.client ?? this.client).post({
2429
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
2430
+ url: '/v2/auth/checkpoint/resend',
2431
+ ...options,
2432
+ headers: {
2433
+ 'Content-Type': 'application/json',
2434
+ ...options.headers
2435
+ }
2436
+ });
2437
+ }
2431
2438
  /**
2432
2439
  * Start Auth Intent
2433
2440
  *
2434
- * Start an auth intent for a provider. This might require handling of checkpoints and oauth flows depending on the provider. Use <a href="https://developer.unipile.com/v2.0/reference/post_v2-auth-link">Create Auth Link</a> to let Unipile handle everything for you.
2441
+ * Start an auth intent for a provider. This might require handling of checkpoints and oauth flows depending on the provider. Use <a href="https://developer.unipile.com/v2.0/reference/createauthlink">Create Auth Link</a> to let Unipile handle everything for you.
2435
2442
  */
2436
2443
  startAuthIntent(options) {
2437
2444
  return (options?.client ?? this.client).post({