@macro-inc/sdk 0.4.1 → 0.6.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/README.md +316 -21
- package/dist/{chunk-PTX2RV2N.js → chunk-4MI52GWV.js} +93 -1
- package/dist/{chunk-XFA7NCJ5.js → chunk-HO75UE4Z.js} +146 -15
- package/dist/{chunk-P4DTO6VD.js → chunk-MCSQNZ4E.js} +6 -0
- package/dist/{chunk-ZLBDES7U.js → chunk-SJ6S2GAT.js} +1271 -87
- package/dist/{chunk-AZJUIUIV.js → chunk-SK5CMXRV.js} +100 -14
- package/dist/{chunk-PZPTJI6F.js → chunk-TMTYN2UK.js} +229 -2
- package/dist/{chunk-PPR7IWZ7.js → chunk-ZYBAKW25.js} +2 -1
- package/dist/generated/agent-fold/index.d.ts +202 -14
- package/dist/generated/agent-harness/index.d.ts +1 -1
- package/dist/generated/agent-harness/index.js +1 -1
- package/dist/generated/agent-harness/sdk.gen.d.ts +49 -2
- package/dist/generated/agent-harness/types.gen.d.ts +527 -9
- package/dist/generated/agent-reviews/index.d.ts +11 -9
- package/dist/generated/auth/index.d.ts +1 -1
- package/dist/generated/auth/index.js +1 -1
- package/dist/generated/auth/sdk.gen.d.ts +82 -16
- package/dist/generated/auth/types.gen.d.ts +768 -18
- package/dist/generated/calendar/types.gen.d.ts +10 -3
- package/dist/generated/cognition/index.d.ts +1 -1
- package/dist/generated/cognition/index.js +1 -1
- package/dist/generated/cognition/sdk.gen.d.ts +60 -6
- package/dist/generated/cognition/types.gen.d.ts +663 -106
- package/dist/generated/connection/types.gen.d.ts +1 -1
- package/dist/generated/contacts/index.d.ts +1 -1
- package/dist/generated/contacts/index.js +1 -1
- package/dist/generated/contacts/sdk.gen.d.ts +5 -1
- package/dist/generated/contacts/types.gen.d.ts +56 -0
- package/dist/generated/email/types.gen.d.ts +8 -2
- package/dist/generated/notification/index.d.ts +1 -1
- package/dist/generated/notification/index.js +1 -1
- package/dist/generated/notification/sdk.gen.d.ts +2 -1
- package/dist/generated/notification/types.gen.d.ts +174 -1
- package/dist/generated/scheduled-action/index.d.ts +1 -1
- package/dist/generated/scheduled-action/index.js +1 -1
- package/dist/generated/scheduled-action/sdk.gen.d.ts +107 -2
- package/dist/generated/scheduled-action/types.gen.d.ts +2451 -479
- package/dist/generated/search/index.d.ts +1 -1
- package/dist/generated/search/types.gen.d.ts +50 -11
- package/dist/generated/storage/index.d.ts +1 -1
- package/dist/generated/storage/index.js +1 -1
- package/dist/generated/storage/sdk.gen.d.ts +511 -18
- package/dist/generated/storage/types.gen.d.ts +18528 -11395
- package/dist/src/entities/account-managers/grant.d.ts +28 -5
- package/dist/src/entities/account-managers/namespace.d.ts +15 -3
- package/dist/src/entities/activity/entity.d.ts +7 -0
- package/dist/src/entities/activity/namespace.d.ts +58 -0
- package/dist/src/entities/activity/namespace.test.d.ts +1 -0
- package/dist/src/entities/agent-sessions/activity.d.ts +12 -3
- package/dist/src/entities/agent-sessions/agent-session.d.ts +209 -22
- package/dist/src/entities/agent-sessions/code-execution.d.ts +15 -3
- package/dist/src/entities/agent-sessions/conversation.d.ts +46 -9
- package/dist/src/entities/agent-sessions/namespace.d.ts +72 -16
- package/dist/src/entities/agent-sessions/origin.d.ts +1 -1
- package/dist/src/entities/agent-sessions/queued-action.d.ts +17 -3
- package/dist/src/entities/agent-sessions/review.d.ts +56 -5
- package/dist/src/entities/agent-sessions/tool-approval.d.ts +5 -1
- package/dist/src/entities/agents/agent.d.ts +98 -3
- package/dist/src/entities/agents/namespace.d.ts +52 -8
- package/dist/src/entities/ai/namespace.d.ts +10 -2
- package/dist/src/entities/api-keys/api-key.d.ts +6 -1
- package/dist/src/entities/api-keys/namespace.d.ts +18 -3
- package/dist/src/entities/bots/bot.d.ts +44 -9
- package/dist/src/entities/bots/namespace.d.ts +13 -1
- package/dist/src/entities/bots/token.d.ts +6 -1
- package/dist/src/entities/calendar/booking-link.d.ts +7 -1
- package/dist/src/entities/calendar/booking-namespace.d.ts +14 -1
- package/dist/src/entities/calendar/booking.d.ts +15 -0
- package/dist/src/entities/calendar/calendar.d.ts +10 -3
- package/dist/src/entities/calendar/event.d.ts +68 -9
- package/dist/src/entities/calendar/namespace.d.ts +91 -12
- package/dist/src/entities/calendar/replacement.d.ts +19 -3
- package/dist/src/entities/calls/call-record.d.ts +107 -17
- package/dist/src/entities/calls/connection.d.ts +7 -1
- package/dist/src/entities/calls/message.d.ts +27 -5
- package/dist/src/entities/calls/namespace.d.ts +15 -3
- package/dist/src/entities/canvases/canvas.d.ts +329 -0
- package/dist/src/entities/channels/access-request.d.ts +10 -2
- package/dist/src/entities/channels/activity.d.ts +20 -4
- package/dist/src/entities/channels/channel.d.ts +154 -27
- package/dist/src/entities/channels/labels.d.ts +41 -7
- package/dist/src/entities/channels/message.d.ts +105 -8
- package/dist/src/entities/channels/message.test.d.ts +1 -0
- package/dist/src/entities/channels/namespace.d.ts +37 -7
- package/dist/src/entities/channels/post.d.ts +13 -7
- package/dist/src/entities/channels/post.test.d.ts +1 -0
- package/dist/src/entities/channels/share.d.ts +9 -0
- package/dist/src/entities/channels/share.test.d.ts +1 -0
- package/dist/src/entities/channels/thread.d.ts +24 -4
- package/dist/src/entities/chats/chat.d.ts +57 -7
- package/dist/src/entities/chats/generation.d.ts +11 -2
- package/dist/src/entities/chats/namespace.d.ts +10 -2
- package/dist/src/entities/connected-apps/connected-app.d.ts +16 -2
- package/dist/src/entities/connected-apps/connector.d.ts +3 -0
- package/dist/src/entities/connected-apps/namespace.d.ts +18 -0
- package/dist/src/entities/crm/company.d.ts +64 -16
- package/dist/src/entities/crm/contact.d.ts +102 -14
- package/dist/src/entities/crm/namespace.d.ts +113 -22
- package/dist/src/entities/crm/pipeline-entry.d.ts +109 -0
- package/dist/src/entities/crm/pipeline.d.ts +292 -29
- package/dist/src/entities/crm/pipelines.d.ts +69 -4
- package/dist/src/entities/crm-email-privacy/email-privacy.d.ts +238 -0
- package/dist/src/entities/crm-email-privacy/email-rule-preview.d.ts +55 -0
- package/dist/src/entities/crm-email-privacy/email-rule-revision.d.ts +27 -0
- package/dist/src/entities/crm-email-privacy/email-rules.d.ts +32 -0
- package/dist/src/entities/databases/column.d.ts +54 -7
- package/dist/src/entities/databases/database.d.ts +160 -18
- package/dist/src/entities/databases/namespace.d.ts +40 -8
- package/dist/src/entities/databases/row.d.ts +2 -0
- package/dist/src/entities/databases/saved-query.d.ts +151 -0
- package/dist/src/entities/databases/table.d.ts +73 -10
- package/dist/src/entities/databases/view.d.ts +37 -5
- package/dist/src/entities/databases/webhook.d.ts +8 -1
- package/dist/src/entities/documents/ai-edit.d.ts +2 -0
- package/dist/src/entities/documents/anchor.d.ts +12 -2
- package/dist/src/entities/documents/comment.d.ts +29 -5
- package/dist/src/entities/documents/create.test.d.ts +1 -0
- package/dist/src/entities/documents/document.d.ts +284 -26
- package/dist/src/entities/documents/markdown.d.ts +25 -0
- package/dist/src/entities/documents/namespace.d.ts +146 -13
- package/dist/src/entities/documents/skills.test.d.ts +1 -0
- package/dist/src/entities/documents/system-skill.d.ts +21 -1
- package/dist/src/entities/documents/text-comment.d.ts +41 -0
- package/dist/src/entities/documents/text-comment.test.d.ts +1 -0
- package/dist/src/entities/documents/version.d.ts +5 -1
- package/dist/src/entities/email/attachment.d.ts +3 -0
- package/dist/src/entities/email/draft.d.ts +61 -9
- package/dist/src/entities/email/filter.d.ts +12 -2
- package/dist/src/entities/email/label.d.ts +7 -1
- package/dist/src/entities/email/link.d.ts +5 -1
- package/dist/src/entities/email/message.d.ts +72 -14
- package/dist/src/entities/email/namespace.d.ts +134 -24
- package/dist/src/entities/email/thread.d.ts +124 -18
- package/dist/src/entities/entity-mentions/mention.d.ts +6 -1
- package/dist/src/entities/entity-mentions/namespace.d.ts +5 -1
- package/dist/src/entities/entity.d.ts +65 -6
- package/dist/src/entities/external-chat/chat.d.ts +80 -12
- package/dist/src/entities/external-chat/message.d.ts +1 -1
- package/dist/src/entities/external-chat/namespace.d.ts +5 -1
- package/dist/src/entities/external-chat/send.d.ts +10 -2
- package/dist/src/entities/favorites/namespace.d.ts +20 -3
- package/dist/src/entities/foreign/foreign-entity.d.ts +5 -1
- package/dist/src/entities/foreign/namespace.d.ts +5 -1
- package/dist/src/entities/forms/form.d.ts +91 -14
- package/dist/src/entities/forms/namespace.d.ts +10 -2
- package/dist/src/entities/forms/question.d.ts +35 -7
- package/dist/src/entities/forms/response.d.ts +25 -5
- package/dist/src/entities/forms/section.d.ts +15 -3
- package/dist/src/entities/github-pull-requests/namespace.d.ts +5 -1
- package/dist/src/entities/github-pull-requests/pull-request.d.ts +15 -3
- package/dist/src/entities/harnesses/harness.d.ts +51 -3
- package/dist/src/entities/harnesses/namespace.d.ts +54 -8
- package/dist/src/entities/harnesses/pairing.d.ts +13 -2
- package/dist/src/entities/images/image.d.ts +16 -5
- package/dist/src/entities/images/namespace.d.ts +8 -1
- package/dist/src/entities/imports/entry.d.ts +65 -0
- package/dist/src/entities/imports/namespace.d.ts +103 -0
- package/dist/src/entities/imports/namespace.test.d.ts +1 -0
- package/dist/src/entities/initiatives/initiative.d.ts +128 -4
- package/dist/src/entities/initiatives/initiative.test.d.ts +1 -0
- package/dist/src/entities/initiatives/namespace.d.ts +71 -7
- package/dist/src/entities/me/namespace.d.ts +28 -3
- package/dist/src/entities/meetings/meeting.d.ts +46 -8
- package/dist/src/entities/meetings/namespace.d.ts +20 -4
- package/dist/src/entities/memory/namespace.d.ts +49 -0
- package/dist/src/entities/memory/namespace.test.d.ts +1 -0
- package/dist/src/entities/messages/discussion.d.ts +84 -0
- package/dist/src/entities/messages/thread.d.ts +19 -5
- package/dist/src/entities/notifications/namespace.d.ts +41 -7
- package/dist/src/entities/notifications/notification.d.ts +31 -6
- package/dist/src/entities/passwords/item.d.ts +118 -0
- package/dist/src/entities/passwords/namespace.d.ts +45 -0
- package/dist/src/entities/pins/namespace.d.ts +23 -4
- package/dist/src/entities/projects/namespace.d.ts +29 -0
- package/dist/src/entities/projects/project.d.ts +58 -7
- package/dist/src/entities/properties/namespace.d.ts +67 -11
- package/dist/src/entities/properties/namespace.test.d.ts +1 -0
- package/dist/src/entities/properties/property-definition.d.ts +30 -5
- package/dist/src/entities/properties/property-option.d.ts +14 -2
- package/dist/src/entities/referrals/namespace.d.ts +8 -1
- package/dist/src/entities/routines/namespace.d.ts +198 -14
- package/dist/src/entities/routines/routine.d.ts +174 -27
- package/dist/src/entities/routines/suggestion.d.ts +38 -0
- package/dist/src/entities/saved-views/namespace.d.ts +58 -0
- package/dist/src/entities/saved-views/saved-view.d.ts +78 -0
- package/dist/src/entities/search/exclusions.d.ts +6 -0
- package/dist/src/entities/search/namespace.d.ts +9 -3
- package/dist/src/entities/search/options.d.ts +3 -2
- package/dist/src/entities/sharing/access.d.ts +50 -9
- package/dist/src/entities/spreadsheets/spreadsheet.d.ts +201 -0
- package/dist/src/entities/suggestions/namespace.d.ts +118 -0
- package/dist/src/entities/suggestions/suggestion.d.ts +172 -0
- package/dist/src/entities/suggestions/suggestion.test.d.ts +1 -0
- package/dist/src/entities/tasks/namespace.d.ts +18 -5
- package/dist/src/entities/tasks/task.d.ts +21 -3
- package/dist/src/entities/teams/invite.d.ts +3 -0
- package/dist/src/entities/teams/namespace.d.ts +10 -2
- package/dist/src/entities/teams/team.d.ts +22 -2
- package/dist/src/entities/ui/app-link.d.ts +24 -0
- package/dist/src/entities/ui/namespace.d.ts +75 -0
- package/dist/src/entities/unfurls/namespace.d.ts +12 -2
- package/dist/src/entities/users/namespace.d.ts +26 -4
- package/dist/src/entities/users/profile-picture.d.ts +29 -0
- package/dist/src/entities/users/profile-picture.test.d.ts +1 -0
- package/dist/src/entities/users/user.d.ts +52 -1
- package/dist/src/entities/web/namespace.d.ts +6 -0
- package/dist/src/entities/webhooks/namespace.d.ts +5 -0
- package/dist/src/entities/webhooks/webhook.d.ts +47 -7
- package/dist/src/entities/whatsapp/account.d.ts +5 -1
- package/dist/src/entities/whatsapp/chat.d.ts +9 -1
- package/dist/src/entities/whatsapp/namespace.d.ts +7 -1
- package/dist/src/entities/workspace/namespace.d.ts +12 -4
- package/dist/src/entities/workspace/query.d.ts +5 -1
- package/dist/src/entities/workspace/query.test.d.ts +1 -0
- package/dist/src/events/hydrate/document.d.ts +5 -0
- package/dist/src/events/hydrate/user.d.ts +14 -0
- package/dist/src/events/receiver.d.ts +2 -0
- package/dist/src/events/types.d.ts +2 -1
- package/dist/src/macro.d.ts +59 -6
- package/dist/src/macro.js +18710 -10355
- package/dist/src/utils/activity.d.ts +2 -0
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/lazy.d.ts +20 -1
- package/dist/src/utils/options.d.ts +7 -0
- package/dist/src/utils/pagination.d.ts +16 -0
- package/dist/src/utils/verbs.d.ts +3 -0
- package/package.json +1 -1
- package/dist/src/entities/crm/comment.d.ts +0 -64
|
@@ -971,13 +971,16 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
971
971
|
});
|
|
972
972
|
}
|
|
973
973
|
/**
|
|
974
|
-
* Choose the model this user's `@cursor` sessions
|
|
974
|
+
* Choose the model, and optionally the effort, this user's `@cursor` sessions
|
|
975
|
+
* start on.
|
|
975
976
|
*
|
|
976
|
-
* Stores the id only;
|
|
977
|
-
*
|
|
978
|
-
* the
|
|
979
|
-
*
|
|
980
|
-
*
|
|
977
|
+
* Stores the id and effort value only; the other parameters are resolved from
|
|
978
|
+
* Cursor's own variants at session start. Saving a model without an effort
|
|
979
|
+
* clears the previous effort, which belonged to the previous model. Not
|
|
980
|
+
* validated against the live model list here — the settings controls offer
|
|
981
|
+
* only real values, and a stale id or effort degrades to the deployment or
|
|
982
|
+
* model default at spawn rather than failing, so a round trip to Cursor on
|
|
983
|
+
* every save would buy nothing.
|
|
981
984
|
*/
|
|
982
985
|
putCursorDefaultModel(options) {
|
|
983
986
|
return (options.client ?? this.client).put({
|
|
@@ -1480,15 +1483,95 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1480
1483
|
return (options?.client ?? this.client).post({ url: "/team/auto-join-domain/toggle", ...options });
|
|
1481
1484
|
}
|
|
1482
1485
|
/**
|
|
1483
|
-
*
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
*
|
|
1490
|
-
*
|
|
1491
|
-
|
|
1486
|
+
* The team's computers, oldest first.
|
|
1487
|
+
*/
|
|
1488
|
+
listTeamComputers(options) {
|
|
1489
|
+
return (options?.client ?? this.client).get({ url: "/team/computers", ...options });
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* Buy a computer for the team, billed on the team subscription. An error
|
|
1493
|
+
* means nothing was charged; 202 means the charge is still being confirmed.
|
|
1494
|
+
*/
|
|
1495
|
+
purchaseTeamComputer(options) {
|
|
1496
|
+
return (options.client ?? this.client).post({
|
|
1497
|
+
url: "/team/computers",
|
|
1498
|
+
...options,
|
|
1499
|
+
headers: {
|
|
1500
|
+
"Content-Type": "application/json",
|
|
1501
|
+
...options.headers
|
|
1502
|
+
}
|
|
1503
|
+
});
|
|
1504
|
+
}
|
|
1505
|
+
/**
|
|
1506
|
+
* Every size with its price and availability.
|
|
1507
|
+
*/
|
|
1508
|
+
listTeamComputerOffers(options) {
|
|
1509
|
+
return (options?.client ?? this.client).get({ url: "/team/computers/offers", ...options });
|
|
1510
|
+
}
|
|
1511
|
+
/**
|
|
1512
|
+
* Keep a computer that was canceled at period end.
|
|
1513
|
+
*/
|
|
1514
|
+
undoCancelTeamComputer(options) {
|
|
1515
|
+
return (options.client ?? this.client).delete({ url: "/team/computers/{computer_id}/cancel", ...options });
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Stop billing at the end of the current period.
|
|
1519
|
+
*/
|
|
1520
|
+
cancelTeamComputer(options) {
|
|
1521
|
+
return (options.client ?? this.client).post({ url: "/team/computers/{computer_id}/cancel", ...options });
|
|
1522
|
+
}
|
|
1523
|
+
/**
|
|
1524
|
+
* Turn a computer on or off. A computer that is off keeps its disk and stays billed.
|
|
1525
|
+
*/
|
|
1526
|
+
setTeamComputerPower(options) {
|
|
1527
|
+
return (options.client ?? this.client).post({
|
|
1528
|
+
url: "/team/computers/{computer_id}/power",
|
|
1529
|
+
...options,
|
|
1530
|
+
headers: {
|
|
1531
|
+
"Content-Type": "application/json",
|
|
1532
|
+
...options.headers
|
|
1533
|
+
}
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* Stop billing and destroy the computer now, without a refund.
|
|
1538
|
+
*/
|
|
1539
|
+
releaseTeamComputer(options) {
|
|
1540
|
+
return (options.client ?? this.client).post({
|
|
1541
|
+
url: "/team/computers/{computer_id}/release",
|
|
1542
|
+
...options,
|
|
1543
|
+
headers: {
|
|
1544
|
+
"Content-Type": "application/json",
|
|
1545
|
+
...options.headers
|
|
1546
|
+
}
|
|
1547
|
+
});
|
|
1548
|
+
}
|
|
1549
|
+
/**
|
|
1550
|
+
* Keep a computer whose billing ended, during retention: re-adds its
|
|
1551
|
+
* billing item (the rest of the period is invoiced now) and keeps the
|
|
1552
|
+
* stopped computer and its disk.
|
|
1553
|
+
*/
|
|
1554
|
+
restoreTeamComputer(options) {
|
|
1555
|
+
return (options.client ?? this.client).post({ url: "/team/computers/{computer_id}/restore", ...options });
|
|
1556
|
+
}
|
|
1557
|
+
/**
|
|
1558
|
+
* Retry a failed computer without changing billing.
|
|
1559
|
+
*/
|
|
1560
|
+
retryTeamComputer(options) {
|
|
1561
|
+
return (options.client ?? this.client).post({ url: "/team/computers/{computer_id}/retry", ...options });
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* Mark the guided setup after buying the computer finished. Idempotent;
|
|
1565
|
+
* allowed to the team's owner and admins, like Claude sign-in.
|
|
1566
|
+
*/
|
|
1567
|
+
completeTeamComputerSetup(options) {
|
|
1568
|
+
return (options.client ?? this.client).post({ url: "/team/computers/{computer_id}/setup-complete", ...options });
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* Legacy compatibility endpoint for team admins and owners. Enabling
|
|
1572
|
+
* is a no-op; disabling is rejected. CRM records remain available.
|
|
1573
|
+
* Each member manages mailbox contribution through `/crm/email-privacy`;
|
|
1574
|
+
* this endpoint does not enroll mailboxes, backfill emails, or purge records.
|
|
1492
1575
|
*/
|
|
1493
1576
|
patchTeamCrmSettings(options) {
|
|
1494
1577
|
return (options.client ?? this.client).patch({
|
|
@@ -1638,6 +1721,54 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1638
1721
|
getUserInvites(options) {
|
|
1639
1722
|
return (options?.client ?? this.client).get({ url: "/team/user/invites", ...options });
|
|
1640
1723
|
}
|
|
1724
|
+
/**
|
|
1725
|
+
* The caller's team's agents, with their computers' status.
|
|
1726
|
+
*/
|
|
1727
|
+
listTeamAgents(options) {
|
|
1728
|
+
return (options?.client ?? this.client).get({ url: "/team_agents", ...options });
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* Invite an agent teammate and buy its computer. Requires a team admin or
|
|
1732
|
+
* owner using their own credential. The agent comes back `provisioning`.
|
|
1733
|
+
*/
|
|
1734
|
+
createTeamAgent(options) {
|
|
1735
|
+
return (options.client ?? this.client).post({
|
|
1736
|
+
url: "/team_agents",
|
|
1737
|
+
...options,
|
|
1738
|
+
headers: {
|
|
1739
|
+
"Content-Type": "application/json",
|
|
1740
|
+
...options.headers
|
|
1741
|
+
}
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
1744
|
+
/**
|
|
1745
|
+
* Remove an agent teammate: release its computer, take it off the team and
|
|
1746
|
+
* delete its repository and account. Requires a team admin or owner.
|
|
1747
|
+
*/
|
|
1748
|
+
deleteTeamAgent(options) {
|
|
1749
|
+
return (options.client ?? this.client).delete({ url: "/team_agents/{agent_user_id}", ...options });
|
|
1750
|
+
}
|
|
1751
|
+
/**
|
|
1752
|
+
* The agent's call voice, as committed in its workspace repository.
|
|
1753
|
+
* Requires a team admin or owner.
|
|
1754
|
+
*/
|
|
1755
|
+
getTeamAgentVoice(options) {
|
|
1756
|
+
return (options.client ?? this.client).get({ url: "/team_agents/{agent_user_id}/voice", ...options });
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Change the agent's call voice: a commit to its workspace repository that
|
|
1760
|
+
* its next call picks up. Requires a team admin or owner.
|
|
1761
|
+
*/
|
|
1762
|
+
setTeamAgentVoice(options) {
|
|
1763
|
+
return (options.client ?? this.client).put({
|
|
1764
|
+
url: "/team_agents/{agent_user_id}/voice",
|
|
1765
|
+
...options,
|
|
1766
|
+
headers: {
|
|
1767
|
+
"Content-Type": "application/json",
|
|
1768
|
+
...options.headers
|
|
1769
|
+
}
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1641
1772
|
/**
|
|
1642
1773
|
* Finishes an agent's signup: joins the team that invited it and mints its
|
|
1643
1774
|
* SDK token.
|
|
@@ -823,6 +823,12 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
823
823
|
}
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
|
+
/**
|
|
827
|
+
* GET /contacts/search handler: ranked search of the viewer's contacts and team.
|
|
828
|
+
*/
|
|
829
|
+
searchPeople(options) {
|
|
830
|
+
return (options.client ?? this.client).get({ url: "/contacts/search", ...options });
|
|
831
|
+
}
|
|
826
832
|
};
|
|
827
833
|
|
|
828
834
|
export {
|