@macro-inc/sdk 0.5.0 → 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 +156 -23
- package/dist/{chunk-3SW6QVDV.js → chunk-4MI52GWV.js} +60 -1
- package/dist/{chunk-GT5EUYOR.js → chunk-HO75UE4Z.js} +133 -0
- package/dist/{chunk-P4DTO6VD.js → chunk-MCSQNZ4E.js} +6 -0
- package/dist/{chunk-HIW6KU2I.js → chunk-SJ6S2GAT.js} +712 -14
- package/dist/{chunk-J2VK3NOR.js → chunk-SK5CMXRV.js} +44 -14
- package/dist/{chunk-UVJLWLSJ.js → chunk-TMTYN2UK.js} +190 -2
- package/dist/{chunk-PPR7IWZ7.js → chunk-ZYBAKW25.js} +2 -1
- package/dist/generated/agent-fold/index.d.ts +194 -8
- 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 +33 -2
- package/dist/generated/agent-harness/types.gen.d.ts +341 -8
- 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 +69 -1
- package/dist/generated/auth/types.gen.d.ts +734 -3
- 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 +23 -6
- package/dist/generated/cognition/types.gen.d.ts +202 -114
- 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 +138 -0
- 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 +92 -2
- package/dist/generated/scheduled-action/types.gen.d.ts +1455 -21
- 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 +309 -15
- package/dist/generated/storage/types.gen.d.ts +12437 -8899
- package/dist/src/entities/agent-sessions/activity.d.ts +3 -2
- package/dist/src/entities/agent-sessions/agent-session.d.ts +17 -5
- package/dist/src/entities/agent-sessions/namespace.d.ts +5 -4
- package/dist/src/entities/agent-sessions/review.d.ts +1 -1
- package/dist/src/entities/ai/namespace.d.ts +2 -2
- package/dist/src/entities/api-keys/namespace.d.ts +5 -2
- package/dist/src/entities/bots/bot.d.ts +6 -3
- package/dist/src/entities/calendar/booking-namespace.d.ts +1 -1
- package/dist/src/entities/calendar/calendar.d.ts +3 -2
- package/dist/src/entities/calendar/event.d.ts +9 -0
- package/dist/src/entities/calendar/namespace.d.ts +3 -2
- package/dist/src/entities/calls/call-record.d.ts +19 -5
- package/dist/src/entities/canvases/canvas.d.ts +5 -0
- package/dist/src/entities/channels/channel.d.ts +27 -7
- package/dist/src/entities/channels/message.d.ts +65 -2
- package/dist/src/entities/channels/message.test.d.ts +1 -0
- package/dist/src/entities/channels/namespace.d.ts +9 -4
- package/dist/src/entities/channels/post.d.ts +13 -7
- 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 +5 -1
- package/dist/src/entities/chats/chat.d.ts +1 -1
- package/dist/src/entities/chats/namespace.d.ts +1 -1
- package/dist/src/entities/connected-apps/connected-app.d.ts +2 -1
- package/dist/src/entities/connected-apps/namespace.d.ts +2 -0
- package/dist/src/entities/crm/company.d.ts +1 -1
- package/dist/src/entities/crm/contact.d.ts +44 -3
- package/dist/src/entities/crm/namespace.d.ts +30 -13
- package/dist/src/entities/crm/pipeline-entry.d.ts +10 -3
- package/dist/src/entities/crm/pipeline.d.ts +39 -20
- package/dist/src/entities/crm/pipelines.d.ts +33 -5
- 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/database.d.ts +34 -6
- package/dist/src/entities/databases/namespace.d.ts +26 -6
- package/dist/src/entities/databases/saved-query.d.ts +7 -1
- package/dist/src/entities/databases/table.d.ts +9 -0
- package/dist/src/entities/databases/view.d.ts +10 -0
- package/dist/src/entities/documents/create.test.d.ts +1 -0
- package/dist/src/entities/documents/document.d.ts +41 -6
- package/dist/src/entities/documents/namespace.d.ts +17 -3
- package/dist/src/entities/email/draft.d.ts +2 -2
- package/dist/src/entities/email/message.d.ts +18 -7
- package/dist/src/entities/email/namespace.d.ts +11 -7
- package/dist/src/entities/email/thread.d.ts +26 -3
- package/dist/src/entities/entity.d.ts +10 -1
- package/dist/src/entities/external-chat/chat.d.ts +19 -2
- package/dist/src/entities/foreign/namespace.d.ts +1 -1
- package/dist/src/entities/forms/form.d.ts +20 -1
- package/dist/src/entities/harnesses/namespace.d.ts +1 -1
- package/dist/src/entities/harnesses/pairing.d.ts +2 -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 +14 -4
- package/dist/src/entities/initiatives/namespace.d.ts +4 -2
- package/dist/src/entities/me/namespace.d.ts +1 -1
- package/dist/src/entities/meetings/meeting.d.ts +2 -1
- package/dist/src/entities/notifications/namespace.d.ts +2 -1
- package/dist/src/entities/notifications/notification.d.ts +2 -1
- package/dist/src/entities/passwords/item.d.ts +118 -0
- package/dist/src/entities/passwords/namespace.d.ts +45 -0
- package/dist/src/entities/projects/namespace.d.ts +1 -1
- package/dist/src/entities/projects/project.d.ts +11 -1
- package/dist/src/entities/referrals/namespace.d.ts +1 -1
- package/dist/src/entities/routines/namespace.d.ts +81 -18
- package/dist/src/entities/routines/routine.d.ts +65 -4
- package/dist/src/entities/routines/suggestion.d.ts +38 -0
- package/dist/src/entities/saved-views/namespace.d.ts +2 -1
- package/dist/src/entities/search/exclusions.d.ts +6 -0
- package/dist/src/entities/search/namespace.d.ts +4 -2
- package/dist/src/entities/search/options.d.ts +3 -2
- 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 +6 -5
- package/dist/src/entities/tasks/task.d.ts +14 -2
- package/dist/src/entities/teams/team.d.ts +16 -3
- 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/users/namespace.d.ts +7 -3
- package/dist/src/entities/web/namespace.d.ts +2 -2
- package/dist/src/entities/workspace/namespace.d.ts +5 -3
- package/dist/src/entities/workspace/query.test.d.ts +1 -0
- package/dist/src/events/hydrate/document.d.ts +5 -0
- package/dist/src/macro.d.ts +26 -1
- package/dist/src/macro.js +4086 -1234
- 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 +13 -0
- 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
|
@@ -1170,6 +1170,57 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Post a guest message to the shared call thread.
|
|
1175
|
+
*/
|
|
1176
|
+
guestCallChatPostMessage(options) {
|
|
1177
|
+
return (options.client ?? this.client).post({
|
|
1178
|
+
url: "/call/guest-chat/{call_id}/messages",
|
|
1179
|
+
...options,
|
|
1180
|
+
headers: {
|
|
1181
|
+
"Content-Type": "application/json",
|
|
1182
|
+
...options.headers
|
|
1183
|
+
}
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Delete a message owned by this guest.
|
|
1188
|
+
*/
|
|
1189
|
+
guestCallChatDeleteMessage(options) {
|
|
1190
|
+
return (options.client ?? this.client).delete({ url: "/call/guest-chat/{call_id}/messages/{message_id}", ...options });
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Edit a message owned by this guest.
|
|
1194
|
+
*/
|
|
1195
|
+
guestCallChatPatchMessage(options) {
|
|
1196
|
+
return (options.client ?? this.client).patch({
|
|
1197
|
+
url: "/call/guest-chat/{call_id}/messages/{message_id}",
|
|
1198
|
+
...options,
|
|
1199
|
+
headers: {
|
|
1200
|
+
"Content-Type": "application/json",
|
|
1201
|
+
...options.headers
|
|
1202
|
+
}
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* Add or remove this guest's reaction.
|
|
1207
|
+
*/
|
|
1208
|
+
guestCallChatReactMessage(options) {
|
|
1209
|
+
return (options.client ?? this.client).post({
|
|
1210
|
+
url: "/call/guest-chat/{call_id}/messages/{message_id}/reactions",
|
|
1211
|
+
...options,
|
|
1212
|
+
headers: {
|
|
1213
|
+
"Content-Type": "application/json",
|
|
1214
|
+
...options.headers
|
|
1215
|
+
}
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
* Read the shared call thread with identities redacted.
|
|
1220
|
+
*/
|
|
1221
|
+
guestCallChatReadThread(options) {
|
|
1222
|
+
return (options.client ?? this.client).get({ url: "/call/guest-chat/{call_id}/thread", ...options });
|
|
1223
|
+
}
|
|
1173
1224
|
/**
|
|
1174
1225
|
* Handle `GET /call/join/{token}` through the call domain service.
|
|
1175
1226
|
*/
|
|
@@ -1599,6 +1650,70 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1599
1650
|
}
|
|
1600
1651
|
});
|
|
1601
1652
|
}
|
|
1653
|
+
/**
|
|
1654
|
+
* List the caller's shared or private labels.
|
|
1655
|
+
*/
|
|
1656
|
+
listChannelSections(options) {
|
|
1657
|
+
return (options?.client ?? this.client).get({ url: "/channel-sections", ...options });
|
|
1658
|
+
}
|
|
1659
|
+
/**
|
|
1660
|
+
* Create a label for the caller's authorized scope.
|
|
1661
|
+
*/
|
|
1662
|
+
createChannelSection(options) {
|
|
1663
|
+
return (options.client ?? this.client).post({
|
|
1664
|
+
url: "/channel-sections",
|
|
1665
|
+
...options,
|
|
1666
|
+
headers: {
|
|
1667
|
+
"Content-Type": "application/json",
|
|
1668
|
+
...options.headers
|
|
1669
|
+
}
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Move a channel into a label of the caller's authorized scope, or out of any label.
|
|
1674
|
+
*/
|
|
1675
|
+
setChannelSection(options) {
|
|
1676
|
+
return (options.client ?? this.client).put({
|
|
1677
|
+
url: "/channel-sections/channels/{channel_id}",
|
|
1678
|
+
...options,
|
|
1679
|
+
headers: {
|
|
1680
|
+
"Content-Type": "application/json",
|
|
1681
|
+
...options.headers
|
|
1682
|
+
}
|
|
1683
|
+
});
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* Preview visible channels matched by a smart tag, without creating it.
|
|
1687
|
+
*/
|
|
1688
|
+
previewChannelSection(options) {
|
|
1689
|
+
return (options.client ?? this.client).post({
|
|
1690
|
+
url: "/channel-sections/preview",
|
|
1691
|
+
...options,
|
|
1692
|
+
headers: {
|
|
1693
|
+
"Content-Type": "application/json",
|
|
1694
|
+
...options.headers
|
|
1695
|
+
}
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
* Delete a label of the caller's authorized scope. Its channels return to the plain list.
|
|
1700
|
+
*/
|
|
1701
|
+
deleteChannelSection(options) {
|
|
1702
|
+
return (options.client ?? this.client).delete({ url: "/channel-sections/{label_id}", ...options });
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
* Update a label, optionally moving it to another authorized scope.
|
|
1706
|
+
*/
|
|
1707
|
+
updateChannelSection(options) {
|
|
1708
|
+
return (options.client ?? this.client).patch({
|
|
1709
|
+
url: "/channel-sections/{label_id}",
|
|
1710
|
+
...options,
|
|
1711
|
+
headers: {
|
|
1712
|
+
"Content-Type": "application/json",
|
|
1713
|
+
...options.headers
|
|
1714
|
+
}
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1602
1717
|
/**
|
|
1603
1718
|
* Handler for `POST /channels`.
|
|
1604
1719
|
*/
|
|
@@ -1945,16 +2060,16 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1945
2060
|
return (options?.client ?? this.client).get({ url: "/crm/blocked-domains", ...options });
|
|
1946
2061
|
}
|
|
1947
2062
|
/**
|
|
1948
|
-
*
|
|
1949
|
-
*
|
|
2063
|
+
* Remove a team domain exclusion and schedule eligible email backfill,
|
|
2064
|
+
* preserving record visibility. Idempotent. Requires an admin/owner role (403).
|
|
1950
2065
|
*/
|
|
1951
2066
|
unblockCrmDomain(options) {
|
|
1952
2067
|
return (options.client ?? this.client).delete({ url: "/crm/blocked-domains/{domain}", ...options });
|
|
1953
2068
|
}
|
|
1954
2069
|
/**
|
|
1955
|
-
* Block a domain
|
|
1956
|
-
*
|
|
1957
|
-
* Idempotent. Requires an admin/owner team role (403).
|
|
2070
|
+
* Block a domain and its subdomains from email contributions, preserving records.
|
|
2071
|
+
* Refuses a domain covering any member's connected primary mailbox (400).
|
|
2072
|
+
* Idempotent for permitted domains. Requires an admin/owner team role (403).
|
|
1958
2073
|
*/
|
|
1959
2074
|
blockCrmDomain(options) {
|
|
1960
2075
|
return (options.client ?? this.client).put({ url: "/crm/blocked-domains/{domain}", ...options });
|
|
@@ -2030,6 +2145,16 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2030
2145
|
}
|
|
2031
2146
|
});
|
|
2032
2147
|
}
|
|
2148
|
+
/**
|
|
2149
|
+
* List a CRM company's contacts a page at a time, filtered by archive
|
|
2150
|
+
* state and an optional name or email search. Access is enforced by
|
|
2151
|
+
* [`CrmCompanyAccessLevelExtractor`] as for
|
|
2152
|
+
* `GET /crm/companies/{company_id}/contacts`; hidden contacts are
|
|
2153
|
+
* invisible to plain members.
|
|
2154
|
+
*/
|
|
2155
|
+
listCompanyContactsPage(options) {
|
|
2156
|
+
return (options.client ?? this.client).get({ url: "/crm/companies/{company_id}/contacts/page", ...options });
|
|
2157
|
+
}
|
|
2033
2158
|
/**
|
|
2034
2159
|
* Toggle email contribution for a CRM company without archiving its records.
|
|
2035
2160
|
* Individual consent and all remaining exclusions still apply.
|
|
@@ -2113,15 +2238,22 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2113
2238
|
return (options.client ?? this.client).get({ url: "/crm/contacts/by-email", ...options });
|
|
2114
2239
|
}
|
|
2115
2240
|
/**
|
|
2116
|
-
* Fetch a single CRM contact by id
|
|
2117
|
-
* [`CrmContactAccessLevelExtractor`]:
|
|
2118
|
-
* owns the contact
|
|
2119
|
-
* to plain members. Admin/owner callers see
|
|
2120
|
-
* render the right unhide UI.
|
|
2241
|
+
* Fetch a single CRM contact by id, with its company's name and
|
|
2242
|
+
* visibility. Access is enforced by [`CrmContactAccessLevelExtractor`]:
|
|
2243
|
+
* the user must be on the team that owns the contact, and hidden
|
|
2244
|
+
* contacts are invisible to plain members. Admin/owner callers see
|
|
2245
|
+
* hidden contacts so they can render the right unhide UI.
|
|
2121
2246
|
*/
|
|
2122
2247
|
getContact(options) {
|
|
2123
2248
|
return (options.client ?? this.client).get({ url: "/crm/contacts/{contact_id}", ...options });
|
|
2124
2249
|
}
|
|
2250
|
+
/**
|
|
2251
|
+
* Remove a contact's company link. A contact with an address on one of its
|
|
2252
|
+
* company's domains cannot be unlinked. Idempotent.
|
|
2253
|
+
*/
|
|
2254
|
+
unlinkCrmContactCompany(options) {
|
|
2255
|
+
return (options.client ?? this.client).delete({ url: "/crm/contacts/{contact_id}/company", ...options });
|
|
2256
|
+
}
|
|
2125
2257
|
/**
|
|
2126
2258
|
* Update an existing team-owned contact without merging its identity.
|
|
2127
2259
|
*/
|
|
@@ -2148,6 +2280,36 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2148
2280
|
}
|
|
2149
2281
|
});
|
|
2150
2282
|
}
|
|
2283
|
+
/**
|
|
2284
|
+
* Remove an address from a contact. Nothing else is deleted: the contact
|
|
2285
|
+
* stops showing that address's email history. Removing the primary promotes
|
|
2286
|
+
* the oldest address left. The last address on a domain of the contact's
|
|
2287
|
+
* company cannot be removed while the contact is linked to it. Idempotent.
|
|
2288
|
+
*/
|
|
2289
|
+
removeCrmContactEmail(options) {
|
|
2290
|
+
return (options.client ?? this.client).delete({
|
|
2291
|
+
url: "/crm/contacts/{contact_id}/emails",
|
|
2292
|
+
...options,
|
|
2293
|
+
headers: {
|
|
2294
|
+
"Content-Type": "application/json",
|
|
2295
|
+
...options.headers
|
|
2296
|
+
}
|
|
2297
|
+
});
|
|
2298
|
+
}
|
|
2299
|
+
/**
|
|
2300
|
+
* Add an address to a contact. It must not belong to another contact in the
|
|
2301
|
+
* team, and becomes the primary only when the contact has none. Idempotent.
|
|
2302
|
+
*/
|
|
2303
|
+
addCrmContactEmail(options) {
|
|
2304
|
+
return (options.client ?? this.client).put({
|
|
2305
|
+
url: "/crm/contacts/{contact_id}/emails",
|
|
2306
|
+
...options,
|
|
2307
|
+
headers: {
|
|
2308
|
+
"Content-Type": "application/json",
|
|
2309
|
+
...options.headers
|
|
2310
|
+
}
|
|
2311
|
+
});
|
|
2312
|
+
}
|
|
2151
2313
|
/**
|
|
2152
2314
|
* Toggle `hidden` on a CRM contact. Hiding is a display-only opt-out
|
|
2153
2315
|
* scoped to the team that owns the contact's company.
|
|
@@ -2186,7 +2348,7 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2186
2348
|
return (options?.client ?? this.client).get({ url: "/crm/email-privacy", ...options });
|
|
2187
2349
|
}
|
|
2188
2350
|
/**
|
|
2189
|
-
* Apply one consent or
|
|
2351
|
+
* Apply one consent, domain, or thread exclusion change as the member.
|
|
2190
2352
|
*/
|
|
2191
2353
|
updateCrmEmailPrivacy(options) {
|
|
2192
2354
|
return (options.client ?? this.client).put({
|
|
@@ -2198,6 +2360,87 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2198
2360
|
}
|
|
2199
2361
|
});
|
|
2200
2362
|
}
|
|
2363
|
+
/**
|
|
2364
|
+
* Read sharing state without initializing consent or scheduling work.
|
|
2365
|
+
*/
|
|
2366
|
+
getCrmEmailPolicy(options) {
|
|
2367
|
+
return (options?.client ?? this.client).get({ url: "/crm/email-privacy/policy", ...options });
|
|
2368
|
+
}
|
|
2369
|
+
/**
|
|
2370
|
+
* Direct member/agent activation with CAS, idempotency and verified audit.
|
|
2371
|
+
*/
|
|
2372
|
+
updateCrmEmailPolicy(options) {
|
|
2373
|
+
return (options.client ?? this.client).put({
|
|
2374
|
+
url: "/crm/email-privacy/policy",
|
|
2375
|
+
...options,
|
|
2376
|
+
headers: {
|
|
2377
|
+
"Content-Type": "application/json",
|
|
2378
|
+
...options.headers
|
|
2379
|
+
}
|
|
2380
|
+
});
|
|
2381
|
+
}
|
|
2382
|
+
/**
|
|
2383
|
+
* Read only the acting member's audit history.
|
|
2384
|
+
*/
|
|
2385
|
+
listCrmEmailPolicyHistory(options) {
|
|
2386
|
+
return (options?.client ?? this.client).get({ url: "/crm/email-privacy/policy/history", ...options });
|
|
2387
|
+
}
|
|
2388
|
+
/**
|
|
2389
|
+
* Inspect the owner's current count preview; no email content is returned.
|
|
2390
|
+
*/
|
|
2391
|
+
getCrmEmailRulePreview(options) {
|
|
2392
|
+
return (options?.client ?? this.client).get({ url: "/crm/email-privacy/policy/preview", ...options });
|
|
2393
|
+
}
|
|
2394
|
+
/**
|
|
2395
|
+
* Start optional count-only work; this never initializes or activates consent.
|
|
2396
|
+
*/
|
|
2397
|
+
previewCrmEmailRules(options) {
|
|
2398
|
+
return (options.client ?? this.client).post({
|
|
2399
|
+
url: "/crm/email-privacy/policy/preview",
|
|
2400
|
+
...options,
|
|
2401
|
+
headers: {
|
|
2402
|
+
"Content-Type": "application/json",
|
|
2403
|
+
...options.headers
|
|
2404
|
+
}
|
|
2405
|
+
});
|
|
2406
|
+
}
|
|
2407
|
+
/**
|
|
2408
|
+
* Cancel the owner's current named preview, including while rollout is off.
|
|
2409
|
+
*/
|
|
2410
|
+
cancelCrmEmailRulePreview(options) {
|
|
2411
|
+
return (options.client ?? this.client).delete({ url: "/crm/email-privacy/policy/preview/{preview_id}", ...options });
|
|
2412
|
+
}
|
|
2413
|
+
/**
|
|
2414
|
+
* Fetch one saved definition, independently of live CRM viewing permission.
|
|
2415
|
+
*/
|
|
2416
|
+
getCrmEmailRuleRevision(options) {
|
|
2417
|
+
return (options.client ?? this.client).get({ url: "/crm/email-privacy/policy/revisions/{revision}", ...options });
|
|
2418
|
+
}
|
|
2419
|
+
/**
|
|
2420
|
+
* Canonicalize and authorize a definition without sharing mail.
|
|
2421
|
+
*/
|
|
2422
|
+
validateCrmEmailRules(options) {
|
|
2423
|
+
return (options.client ?? this.client).post({
|
|
2424
|
+
url: "/crm/email-privacy/policy/validate",
|
|
2425
|
+
...options,
|
|
2426
|
+
headers: {
|
|
2427
|
+
"Content-Type": "application/json",
|
|
2428
|
+
...options.headers
|
|
2429
|
+
}
|
|
2430
|
+
});
|
|
2431
|
+
}
|
|
2432
|
+
/**
|
|
2433
|
+
* List only the authenticated member's thread exclusions.
|
|
2434
|
+
*/
|
|
2435
|
+
listCrmExcludedEmailThreads(options) {
|
|
2436
|
+
return (options?.client ?? this.client).get({ url: "/crm/email-privacy/threads", ...options });
|
|
2437
|
+
}
|
|
2438
|
+
/**
|
|
2439
|
+
* Read fresh authority without requiring CRM access.
|
|
2440
|
+
*/
|
|
2441
|
+
getCrmMemberAccess(options) {
|
|
2442
|
+
return (options?.client ?? this.client).get({ url: "/crm/member-access", ...options });
|
|
2443
|
+
}
|
|
2201
2444
|
/**
|
|
2202
2445
|
* List the caller's live pipelines in their CRM.
|
|
2203
2446
|
*/
|
|
@@ -2217,6 +2460,28 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2217
2460
|
}
|
|
2218
2461
|
});
|
|
2219
2462
|
}
|
|
2463
|
+
/**
|
|
2464
|
+
* Create a pipeline with its stages, replacing the team's defaults, and its
|
|
2465
|
+
* fields, in one call.
|
|
2466
|
+
*/
|
|
2467
|
+
createCrmPipelineWithFields(options) {
|
|
2468
|
+
return (options.client ?? this.client).post({
|
|
2469
|
+
url: "/crm/pipelines/create",
|
|
2470
|
+
...options,
|
|
2471
|
+
headers: {
|
|
2472
|
+
"Content-Type": "application/json",
|
|
2473
|
+
...options.headers
|
|
2474
|
+
}
|
|
2475
|
+
});
|
|
2476
|
+
}
|
|
2477
|
+
/**
|
|
2478
|
+
* The caller's live pipelines, each with its fields in column order (a
|
|
2479
|
+
* select field lists its options, so Stage lists the stages) and its table
|
|
2480
|
+
* version: what `ListPipelines` gives the agent, in one call.
|
|
2481
|
+
*/
|
|
2482
|
+
listCrmPipelineDetails(options) {
|
|
2483
|
+
return (options?.client ?? this.client).get({ url: "/crm/pipelines/details", ...options });
|
|
2484
|
+
}
|
|
2220
2485
|
/**
|
|
2221
2486
|
* Entries whose company or contact matches the search, across the caller's
|
|
2222
2487
|
* pipelines; pipelines without a match are left out.
|
|
@@ -2465,6 +2730,22 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2465
2730
|
getCrmPipelineViewPositions(options) {
|
|
2466
2731
|
return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/views/{view}/positions", ...options });
|
|
2467
2732
|
}
|
|
2733
|
+
/**
|
|
2734
|
+
* Title many CRM company and contact chips at once. Each record answers as
|
|
2735
|
+
* its own read (`GET /crm/companies/{company_id}`,
|
|
2736
|
+
* `GET /crm/contacts/{contact_id}`) would: a record the caller may not open,
|
|
2737
|
+
* or that does not exist, is left out of the response.
|
|
2738
|
+
*/
|
|
2739
|
+
previewCrmRecords(options) {
|
|
2740
|
+
return (options.client ?? this.client).post({
|
|
2741
|
+
url: "/crm/previews",
|
|
2742
|
+
...options,
|
|
2743
|
+
headers: {
|
|
2744
|
+
"Content-Type": "application/json",
|
|
2745
|
+
...options.headers
|
|
2746
|
+
}
|
|
2747
|
+
});
|
|
2748
|
+
}
|
|
2468
2749
|
/**
|
|
2469
2750
|
* Read the caller's team CRM configuration. Any team member may read;
|
|
2470
2751
|
* teams without a settings row get the defaults.
|
|
@@ -2516,8 +2797,8 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2516
2797
|
return (options?.client ?? this.client).get({ url: "/databases", ...options });
|
|
2517
2798
|
}
|
|
2518
2799
|
/**
|
|
2519
|
-
* Create a database owned by the caller; its first table, "Table 1"
|
|
2520
|
-
* "Name" text column.
|
|
2800
|
+
* Create a database owned by the caller; its first table, "Table 1" unless
|
|
2801
|
+
* `firstTable` names it, holds a "Name" text column.
|
|
2521
2802
|
*/
|
|
2522
2803
|
createDatabase(options) {
|
|
2523
2804
|
return (options.client ?? this.client).post({
|
|
@@ -2593,6 +2874,19 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2593
2874
|
getDatabase(options) {
|
|
2594
2875
|
return (options.client ?? this.client).get({ url: "/databases/{id}", ...options });
|
|
2595
2876
|
}
|
|
2877
|
+
/**
|
|
2878
|
+
* Replace a database's icon and color without changing its content timestamp.
|
|
2879
|
+
*/
|
|
2880
|
+
setDatabaseAppearance(options) {
|
|
2881
|
+
return (options.client ?? this.client).put({
|
|
2882
|
+
url: "/databases/{id}/appearance",
|
|
2883
|
+
...options,
|
|
2884
|
+
headers: {
|
|
2885
|
+
"Content-Type": "application/json",
|
|
2886
|
+
...options.headers
|
|
2887
|
+
}
|
|
2888
|
+
});
|
|
2889
|
+
}
|
|
2596
2890
|
/**
|
|
2597
2891
|
* Tell a database's other viewers where the caller is.
|
|
2598
2892
|
*/
|
|
@@ -3091,6 +3385,19 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
3091
3385
|
}
|
|
3092
3386
|
});
|
|
3093
3387
|
}
|
|
3388
|
+
/**
|
|
3389
|
+
* Replace a document's presentation overrides without editing its content.
|
|
3390
|
+
*/
|
|
3391
|
+
setDocumentAppearance(options) {
|
|
3392
|
+
return (options.client ?? this.client).put({
|
|
3393
|
+
url: "/documents/{document_id}/appearance",
|
|
3394
|
+
...options,
|
|
3395
|
+
headers: {
|
|
3396
|
+
"Content-Type": "application/json",
|
|
3397
|
+
...options.headers
|
|
3398
|
+
}
|
|
3399
|
+
});
|
|
3400
|
+
}
|
|
3094
3401
|
/**
|
|
3095
3402
|
* Handler for `GET /documents/{document_id}/branch_name`.
|
|
3096
3403
|
*
|
|
@@ -3808,6 +4115,19 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
3808
4115
|
}
|
|
3809
4116
|
});
|
|
3810
4117
|
}
|
|
4118
|
+
/**
|
|
4119
|
+
* Replace a form's icon and color without changing its content timestamp.
|
|
4120
|
+
*/
|
|
4121
|
+
setFormAppearance(options) {
|
|
4122
|
+
return (options.client ?? this.client).put({
|
|
4123
|
+
url: "/forms/{id}/appearance",
|
|
4124
|
+
...options,
|
|
4125
|
+
headers: {
|
|
4126
|
+
"Content-Type": "application/json",
|
|
4127
|
+
...options.headers
|
|
4128
|
+
}
|
|
4129
|
+
});
|
|
4130
|
+
}
|
|
3811
4131
|
/**
|
|
3812
4132
|
* Open the editor-only collaborative layout, or publish its latest valid
|
|
3813
4133
|
* revision. Content stays in the existing collaboration surface.
|
|
@@ -4147,6 +4467,19 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
4147
4467
|
getInitiativeActivity(options) {
|
|
4148
4468
|
return (options.client ?? this.client).get({ url: "/initiatives/{initiative_id}/activity", ...options });
|
|
4149
4469
|
}
|
|
4470
|
+
/**
|
|
4471
|
+
* Replace a project's appearance without changing content timestamps.
|
|
4472
|
+
*/
|
|
4473
|
+
setInitiativeAppearance(options) {
|
|
4474
|
+
return (options.client ?? this.client).put({
|
|
4475
|
+
url: "/initiatives/{initiative_id}/appearance",
|
|
4476
|
+
...options,
|
|
4477
|
+
headers: {
|
|
4478
|
+
"Content-Type": "application/json",
|
|
4479
|
+
...options.headers
|
|
4480
|
+
}
|
|
4481
|
+
});
|
|
4482
|
+
}
|
|
4150
4483
|
/**
|
|
4151
4484
|
* Read the description of an initiative the caller can view.
|
|
4152
4485
|
*/
|
|
@@ -4317,6 +4650,363 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
4317
4650
|
}
|
|
4318
4651
|
});
|
|
4319
4652
|
}
|
|
4653
|
+
/**
|
|
4654
|
+
* Search the agent's catalog: metadata and current access only.
|
|
4655
|
+
*/
|
|
4656
|
+
passwordsAgentSearch(options) {
|
|
4657
|
+
return (options.client ?? this.client).get({ url: "/passwords/agent/teams/{team}/items", ...options });
|
|
4658
|
+
}
|
|
4659
|
+
/**
|
|
4660
|
+
* Create a login or API item attributed to this agent.
|
|
4661
|
+
*/
|
|
4662
|
+
passwordsAgentCreate(options) {
|
|
4663
|
+
return (options.client ?? this.client).post({
|
|
4664
|
+
url: "/passwords/agent/teams/{team}/items",
|
|
4665
|
+
...options,
|
|
4666
|
+
headers: {
|
|
4667
|
+
"Content-Type": "application/json",
|
|
4668
|
+
...options.headers
|
|
4669
|
+
}
|
|
4670
|
+
});
|
|
4671
|
+
}
|
|
4672
|
+
/**
|
|
4673
|
+
* Replace supplied fields of a login or API item.
|
|
4674
|
+
*/
|
|
4675
|
+
passwordsAgentUpdate(options) {
|
|
4676
|
+
return (options.client ?? this.client).patch({
|
|
4677
|
+
url: "/passwords/agent/teams/{team}/items/{item}",
|
|
4678
|
+
...options,
|
|
4679
|
+
headers: {
|
|
4680
|
+
"Content-Type": "application/json",
|
|
4681
|
+
...options.headers
|
|
4682
|
+
}
|
|
4683
|
+
});
|
|
4684
|
+
}
|
|
4685
|
+
/**
|
|
4686
|
+
* Ask authorized humans for access to an item.
|
|
4687
|
+
*/
|
|
4688
|
+
passwordsAgentRequestAccess(options) {
|
|
4689
|
+
return (options.client ?? this.client).post({
|
|
4690
|
+
url: "/passwords/agent/teams/{team}/items/{item}/access-requests",
|
|
4691
|
+
...options,
|
|
4692
|
+
headers: {
|
|
4693
|
+
"Content-Type": "application/json",
|
|
4694
|
+
...options.headers
|
|
4695
|
+
}
|
|
4696
|
+
});
|
|
4697
|
+
}
|
|
4698
|
+
/**
|
|
4699
|
+
* This agent's own request state for the item.
|
|
4700
|
+
*/
|
|
4701
|
+
passwordsAgentMyRequest(options) {
|
|
4702
|
+
return (options.client ?? this.client).get({ url: "/passwords/agent/teams/{team}/items/{item}/access-requests/mine", ...options });
|
|
4703
|
+
}
|
|
4704
|
+
/**
|
|
4705
|
+
* Disclose one selected field to the agent's capability.
|
|
4706
|
+
*/
|
|
4707
|
+
passwordsAgentDisclose(options) {
|
|
4708
|
+
return (options.client ?? this.client).post({
|
|
4709
|
+
url: "/passwords/agent/teams/{team}/items/{item}/disclose",
|
|
4710
|
+
...options,
|
|
4711
|
+
headers: {
|
|
4712
|
+
"Content-Type": "application/json",
|
|
4713
|
+
...options.headers
|
|
4714
|
+
}
|
|
4715
|
+
});
|
|
4716
|
+
}
|
|
4717
|
+
/**
|
|
4718
|
+
* Enroll a verification-code seed on an item this agent created.
|
|
4719
|
+
*/
|
|
4720
|
+
passwordsAgentSetTotp(options) {
|
|
4721
|
+
return (options.client ?? this.client).put({
|
|
4722
|
+
url: "/passwords/agent/teams/{team}/items/{item}/totp",
|
|
4723
|
+
...options,
|
|
4724
|
+
headers: {
|
|
4725
|
+
"Content-Type": "application/json",
|
|
4726
|
+
...options.headers
|
|
4727
|
+
}
|
|
4728
|
+
});
|
|
4729
|
+
}
|
|
4730
|
+
/**
|
|
4731
|
+
* The current verification code of a login or verification-code item.
|
|
4732
|
+
*/
|
|
4733
|
+
passwordsAgentTotpCode(options) {
|
|
4734
|
+
return (options.client ?? this.client).post({
|
|
4735
|
+
url: "/passwords/agent/teams/{team}/items/{item}/totp/code",
|
|
4736
|
+
...options,
|
|
4737
|
+
headers: {
|
|
4738
|
+
"Content-Type": "application/json",
|
|
4739
|
+
...options.headers
|
|
4740
|
+
}
|
|
4741
|
+
});
|
|
4742
|
+
}
|
|
4743
|
+
/**
|
|
4744
|
+
* List current teams available to the authenticated human.
|
|
4745
|
+
*/
|
|
4746
|
+
passwordsTeams(options) {
|
|
4747
|
+
return (options?.client ?? this.client).get({ url: "/passwords/teams", ...options });
|
|
4748
|
+
}
|
|
4749
|
+
/**
|
|
4750
|
+
* Pending agent requests on items the caller may manage.
|
|
4751
|
+
*/
|
|
4752
|
+
passwordsAgentAccessRequests(options) {
|
|
4753
|
+
return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/agent-access-requests", ...options });
|
|
4754
|
+
}
|
|
4755
|
+
/**
|
|
4756
|
+
* List the authenticated team’s folders.
|
|
4757
|
+
*/
|
|
4758
|
+
passwordsFolders(options) {
|
|
4759
|
+
return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/folders", ...options });
|
|
4760
|
+
}
|
|
4761
|
+
/**
|
|
4762
|
+
* Create a folder within the authenticated team.
|
|
4763
|
+
*/
|
|
4764
|
+
passwordsCreateFolder(options) {
|
|
4765
|
+
return (options.client ?? this.client).post({
|
|
4766
|
+
url: "/passwords/teams/{team}/folders",
|
|
4767
|
+
...options,
|
|
4768
|
+
headers: {
|
|
4769
|
+
"Content-Type": "application/json",
|
|
4770
|
+
...options.headers
|
|
4771
|
+
}
|
|
4772
|
+
});
|
|
4773
|
+
}
|
|
4774
|
+
/**
|
|
4775
|
+
* Delete a folder within the authenticated team.
|
|
4776
|
+
*/
|
|
4777
|
+
passwordsRemoveFolder(options) {
|
|
4778
|
+
return (options.client ?? this.client).delete({ url: "/passwords/teams/{team}/folders/{folder}", ...options });
|
|
4779
|
+
}
|
|
4780
|
+
/**
|
|
4781
|
+
* Rename a folder within the authenticated team.
|
|
4782
|
+
*/
|
|
4783
|
+
passwordsRenameFolder(options) {
|
|
4784
|
+
return (options.client ?? this.client).put({
|
|
4785
|
+
url: "/passwords/teams/{team}/folders/{folder}",
|
|
4786
|
+
...options,
|
|
4787
|
+
headers: {
|
|
4788
|
+
"Content-Type": "application/json",
|
|
4789
|
+
...options.headers
|
|
4790
|
+
}
|
|
4791
|
+
});
|
|
4792
|
+
}
|
|
4793
|
+
/**
|
|
4794
|
+
* Move a folder under another folder of the team, or to the top level.
|
|
4795
|
+
*/
|
|
4796
|
+
passwordsMoveFolder(options) {
|
|
4797
|
+
return (options.client ?? this.client).put({
|
|
4798
|
+
url: "/passwords/teams/{team}/folders/{folder}/parent",
|
|
4799
|
+
...options,
|
|
4800
|
+
headers: {
|
|
4801
|
+
"Content-Type": "application/json",
|
|
4802
|
+
...options.headers
|
|
4803
|
+
}
|
|
4804
|
+
});
|
|
4805
|
+
}
|
|
4806
|
+
/**
|
|
4807
|
+
* Import normalized credentials with independently retryable per-item outcomes.
|
|
4808
|
+
*/
|
|
4809
|
+
passwordsImportBatch(options) {
|
|
4810
|
+
return (options.client ?? this.client).post({
|
|
4811
|
+
url: "/passwords/teams/{team}/imports/{import_id}/items",
|
|
4812
|
+
...options,
|
|
4813
|
+
headers: {
|
|
4814
|
+
"Content-Type": "application/json",
|
|
4815
|
+
...options.headers
|
|
4816
|
+
}
|
|
4817
|
+
});
|
|
4818
|
+
}
|
|
4819
|
+
/**
|
|
4820
|
+
* Search authorized metadata without resolving private values.
|
|
4821
|
+
*/
|
|
4822
|
+
passwordsList(options) {
|
|
4823
|
+
return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items", ...options });
|
|
4824
|
+
}
|
|
4825
|
+
/**
|
|
4826
|
+
* Create one item using an idempotent logical operation identifier.
|
|
4827
|
+
*/
|
|
4828
|
+
passwordsCreate(options) {
|
|
4829
|
+
return (options.client ?? this.client).post({
|
|
4830
|
+
url: "/passwords/teams/{team}/items",
|
|
4831
|
+
...options,
|
|
4832
|
+
headers: {
|
|
4833
|
+
"Content-Type": "application/json",
|
|
4834
|
+
...options.headers
|
|
4835
|
+
}
|
|
4836
|
+
});
|
|
4837
|
+
}
|
|
4838
|
+
/**
|
|
4839
|
+
* Visible items named like the given names, for an import's duplicate check;
|
|
4840
|
+
* names travel in the body so they stay out of URLs and access logs.
|
|
4841
|
+
*/
|
|
4842
|
+
passwordsMatch(options) {
|
|
4843
|
+
return (options.client ?? this.client).post({
|
|
4844
|
+
url: "/passwords/teams/{team}/items/match",
|
|
4845
|
+
...options,
|
|
4846
|
+
headers: {
|
|
4847
|
+
"Content-Type": "application/json",
|
|
4848
|
+
...options.headers
|
|
4849
|
+
}
|
|
4850
|
+
});
|
|
4851
|
+
}
|
|
4852
|
+
/**
|
|
4853
|
+
* Delete an owned item with a resumable provider fence.
|
|
4854
|
+
*/
|
|
4855
|
+
passwordsRemove(options) {
|
|
4856
|
+
return (options.client ?? this.client).delete({ url: "/passwords/teams/{team}/items/{item}", ...options });
|
|
4857
|
+
}
|
|
4858
|
+
/**
|
|
4859
|
+
* Read authorized item metadata only.
|
|
4860
|
+
*/
|
|
4861
|
+
passwordsDetail(options) {
|
|
4862
|
+
return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items/{item}", ...options });
|
|
4863
|
+
}
|
|
4864
|
+
/**
|
|
4865
|
+
* Change metadata without resolving private values.
|
|
4866
|
+
*/
|
|
4867
|
+
passwordsPatch(options) {
|
|
4868
|
+
return (options.client ?? this.client).patch({
|
|
4869
|
+
url: "/passwords/teams/{team}/items/{item}",
|
|
4870
|
+
...options,
|
|
4871
|
+
headers: {
|
|
4872
|
+
"Content-Type": "application/json",
|
|
4873
|
+
...options.headers
|
|
4874
|
+
}
|
|
4875
|
+
});
|
|
4876
|
+
}
|
|
4877
|
+
/**
|
|
4878
|
+
* Save a new protected value version and its metadata.
|
|
4879
|
+
*/
|
|
4880
|
+
passwordsUpdate(options) {
|
|
4881
|
+
return (options.client ?? this.client).put({
|
|
4882
|
+
url: "/passwords/teams/{team}/items/{item}",
|
|
4883
|
+
...options,
|
|
4884
|
+
headers: {
|
|
4885
|
+
"Content-Type": "application/json",
|
|
4886
|
+
...options.headers
|
|
4887
|
+
}
|
|
4888
|
+
});
|
|
4889
|
+
}
|
|
4890
|
+
/**
|
|
4891
|
+
* List recorded activity for an authorized item.
|
|
4892
|
+
*/
|
|
4893
|
+
passwordsActivity(options) {
|
|
4894
|
+
return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items/{item}/activity", ...options });
|
|
4895
|
+
}
|
|
4896
|
+
/**
|
|
4897
|
+
* Approve or deny a pending agent request.
|
|
4898
|
+
*/
|
|
4899
|
+
passwordsAgentResolveRequest(options) {
|
|
4900
|
+
return (options.client ?? this.client).post({
|
|
4901
|
+
url: "/passwords/teams/{team}/items/{item}/agent-access-requests/{request}/resolve",
|
|
4902
|
+
...options,
|
|
4903
|
+
headers: {
|
|
4904
|
+
"Content-Type": "application/json",
|
|
4905
|
+
...options.headers
|
|
4906
|
+
}
|
|
4907
|
+
});
|
|
4908
|
+
}
|
|
4909
|
+
/**
|
|
4910
|
+
* Revoke an agent's standing approval, or its grant and approval.
|
|
4911
|
+
*/
|
|
4912
|
+
passwordsAgentRevoke(options) {
|
|
4913
|
+
return (options.client ?? this.client).post({
|
|
4914
|
+
url: "/passwords/teams/{team}/items/{item}/agents/{agent}/revoke",
|
|
4915
|
+
...options,
|
|
4916
|
+
headers: {
|
|
4917
|
+
"Content-Type": "application/json",
|
|
4918
|
+
...options.headers
|
|
4919
|
+
}
|
|
4920
|
+
});
|
|
4921
|
+
}
|
|
4922
|
+
/**
|
|
4923
|
+
* Disclose values for an explicitly audited clipboard action.
|
|
4924
|
+
*/
|
|
4925
|
+
passwordsCopy(options) {
|
|
4926
|
+
return (options.client ?? this.client).post({
|
|
4927
|
+
url: "/passwords/teams/{team}/items/{item}/copy",
|
|
4928
|
+
...options,
|
|
4929
|
+
headers: {
|
|
4930
|
+
"Content-Type": "application/json",
|
|
4931
|
+
...options.headers
|
|
4932
|
+
}
|
|
4933
|
+
});
|
|
4934
|
+
}
|
|
4935
|
+
/**
|
|
4936
|
+
* List protected-value version metadata.
|
|
4937
|
+
*/
|
|
4938
|
+
passwordsHistory(options) {
|
|
4939
|
+
return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items/{item}/history", ...options });
|
|
4940
|
+
}
|
|
4941
|
+
/**
|
|
4942
|
+
* Disclose a current or historical value with normal human-session item access.
|
|
4943
|
+
*/
|
|
4944
|
+
passwordsReveal(options) {
|
|
4945
|
+
return (options.client ?? this.client).post({
|
|
4946
|
+
url: "/passwords/teams/{team}/items/{item}/reveal",
|
|
4947
|
+
...options,
|
|
4948
|
+
headers: {
|
|
4949
|
+
"Content-Type": "application/json",
|
|
4950
|
+
...options.headers
|
|
4951
|
+
}
|
|
4952
|
+
});
|
|
4953
|
+
}
|
|
4954
|
+
/**
|
|
4955
|
+
* Read the owned item’s explicit recipient set.
|
|
4956
|
+
*/
|
|
4957
|
+
passwordsGrants(options) {
|
|
4958
|
+
return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items/{item}/share", ...options });
|
|
4959
|
+
}
|
|
4960
|
+
/**
|
|
4961
|
+
* Replace the owned item’s explicit recipient set.
|
|
4962
|
+
*/
|
|
4963
|
+
passwordsShare(options) {
|
|
4964
|
+
return (options.client ?? this.client).put({
|
|
4965
|
+
url: "/passwords/teams/{team}/items/{item}/share",
|
|
4966
|
+
...options,
|
|
4967
|
+
headers: {
|
|
4968
|
+
"Content-Type": "application/json",
|
|
4969
|
+
...options.headers
|
|
4970
|
+
}
|
|
4971
|
+
});
|
|
4972
|
+
}
|
|
4973
|
+
/**
|
|
4974
|
+
* Remove a verification-code seed with normal human-session edit access.
|
|
4975
|
+
*/
|
|
4976
|
+
passwordsRemoveTotp(options) {
|
|
4977
|
+
return (options.client ?? this.client).delete({ url: "/passwords/teams/{team}/items/{item}/totp", ...options });
|
|
4978
|
+
}
|
|
4979
|
+
/**
|
|
4980
|
+
* Enroll or replace a verification-code seed with normal human-session edit access.
|
|
4981
|
+
*/
|
|
4982
|
+
passwordsSetTotp(options) {
|
|
4983
|
+
return (options.client ?? this.client).put({
|
|
4984
|
+
url: "/passwords/teams/{team}/items/{item}/totp",
|
|
4985
|
+
...options,
|
|
4986
|
+
headers: {
|
|
4987
|
+
"Content-Type": "application/json",
|
|
4988
|
+
...options.headers
|
|
4989
|
+
}
|
|
4990
|
+
});
|
|
4991
|
+
}
|
|
4992
|
+
/**
|
|
4993
|
+
* Resolve the current verification code with normal human-session item access.
|
|
4994
|
+
*/
|
|
4995
|
+
passwordsTotp(options) {
|
|
4996
|
+
return (options.client ?? this.client).post({ url: "/passwords/teams/{team}/items/{item}/totp/code", ...options });
|
|
4997
|
+
}
|
|
4998
|
+
/**
|
|
4999
|
+
* Read only the current account identifier with normal human view authorization.
|
|
5000
|
+
*/
|
|
5001
|
+
passwordsUsername(options) {
|
|
5002
|
+
return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items/{item}/username", ...options });
|
|
5003
|
+
}
|
|
5004
|
+
/**
|
|
5005
|
+
* Read only the current account identifier and record an explicit clipboard action.
|
|
5006
|
+
*/
|
|
5007
|
+
passwordsCopyUsername(options) {
|
|
5008
|
+
return (options.client ?? this.client).post({ url: "/passwords/teams/{team}/items/{item}/username/copy", ...options });
|
|
5009
|
+
}
|
|
4320
5010
|
/**
|
|
4321
5011
|
* Gets the users pinned items
|
|
4322
5012
|
*/
|
|
@@ -4426,6 +5116,13 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
4426
5116
|
}
|
|
4427
5117
|
});
|
|
4428
5118
|
}
|
|
5119
|
+
/**
|
|
5120
|
+
* Where the caller's folder upload stands, so the uploader can follow it to
|
|
5121
|
+
* the end even when a websocket update is missed.
|
|
5122
|
+
*/
|
|
5123
|
+
getUploadExtractStatusHandler(options) {
|
|
5124
|
+
return (options.client ?? this.client).get({ url: "/projects/upload_extract/{request_id}", ...options });
|
|
5125
|
+
}
|
|
4429
5126
|
/**
|
|
4430
5127
|
* Soft-delete a project and all of its children.
|
|
4431
5128
|
*/
|
|
@@ -4469,7 +5166,8 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
4469
5166
|
return (options.client ?? this.client).put({ url: "/projects/{id}/revert_delete", ...options });
|
|
4470
5167
|
}
|
|
4471
5168
|
/**
|
|
4472
|
-
* Gets the
|
|
5169
|
+
* Gets one page of the user's trashed documents, chats and folders, most
|
|
5170
|
+
* recently trashed first.
|
|
4473
5171
|
*/
|
|
4474
5172
|
recentlyDeleted(options) {
|
|
4475
5173
|
return (options?.client ?? this.client).get({ url: "/recents/deleted", ...options });
|