@macro-inc/sdk 0.4.1 → 0.5.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 +169 -7
- package/dist/{chunk-PTX2RV2N.js → chunk-3SW6QVDV.js} +33 -0
- package/dist/{chunk-XFA7NCJ5.js → chunk-GT5EUYOR.js} +13 -15
- package/dist/{chunk-ZLBDES7U.js → chunk-HIW6KU2I.js} +490 -4
- package/dist/{chunk-AZJUIUIV.js → chunk-J2VK3NOR.js} +56 -0
- package/dist/{chunk-PZPTJI6F.js → chunk-UVJLWLSJ.js} +41 -2
- package/dist/generated/agent-fold/index.d.ts +8 -6
- 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 +17 -1
- package/dist/generated/agent-harness/types.gen.d.ts +188 -3
- package/dist/generated/auth/index.js +1 -1
- package/dist/generated/auth/sdk.gen.d.ts +13 -15
- package/dist/generated/auth/types.gen.d.ts +36 -17
- 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 +38 -1
- package/dist/generated/cognition/types.gen.d.ts +473 -4
- package/dist/generated/connection/types.gen.d.ts +1 -1
- package/dist/generated/notification/index.d.ts +1 -1
- package/dist/generated/notification/types.gen.d.ts +36 -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 +17 -2
- package/dist/generated/scheduled-action/types.gen.d.ts +642 -104
- 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 +204 -5
- package/dist/generated/storage/types.gen.d.ts +3969 -374
- 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 +10 -2
- package/dist/src/entities/agent-sessions/agent-session.d.ts +193 -18
- 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 +71 -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 +55 -4
- 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 +9 -1
- package/dist/src/entities/api-keys/api-key.d.ts +6 -1
- package/dist/src/entities/api-keys/namespace.d.ts +15 -3
- package/dist/src/entities/bots/bot.d.ts +38 -6
- 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 +13 -0
- package/dist/src/entities/calendar/booking.d.ts +15 -0
- package/dist/src/entities/calendar/calendar.d.ts +7 -1
- package/dist/src/entities/calendar/event.d.ts +59 -9
- package/dist/src/entities/calendar/namespace.d.ts +88 -10
- package/dist/src/entities/calendar/replacement.d.ts +19 -3
- package/dist/src/entities/calls/call-record.d.ts +90 -14
- 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 +324 -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 +130 -23
- package/dist/src/entities/channels/labels.d.ts +41 -7
- package/dist/src/entities/channels/message.d.ts +41 -7
- package/dist/src/entities/channels/namespace.d.ts +28 -3
- package/dist/src/entities/channels/post.test.d.ts +1 -0
- package/dist/src/entities/channels/thread.d.ts +19 -3
- package/dist/src/entities/chats/chat.d.ts +56 -6
- 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 +14 -1
- package/dist/src/entities/connected-apps/connector.d.ts +3 -0
- package/dist/src/entities/connected-apps/namespace.d.ts +16 -0
- package/dist/src/entities/crm/company.d.ts +63 -15
- package/dist/src/entities/crm/contact.d.ts +60 -13
- package/dist/src/entities/crm/namespace.d.ts +85 -11
- package/dist/src/entities/crm/pipeline-entry.d.ts +102 -0
- package/dist/src/entities/crm/pipeline.d.ts +271 -27
- package/dist/src/entities/crm/pipelines.d.ts +39 -2
- package/dist/src/entities/databases/column.d.ts +54 -7
- package/dist/src/entities/databases/database.d.ts +126 -12
- package/dist/src/entities/databases/namespace.d.ts +16 -4
- package/dist/src/entities/databases/row.d.ts +2 -0
- package/dist/src/entities/databases/saved-query.d.ts +145 -0
- package/dist/src/entities/databases/table.d.ts +64 -10
- package/dist/src/entities/databases/view.d.ts +27 -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/document.d.ts +243 -20
- package/dist/src/entities/documents/markdown.d.ts +25 -0
- package/dist/src/entities/documents/namespace.d.ts +132 -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 +55 -8
- package/dist/src/entities/email/namespace.d.ts +127 -21
- package/dist/src/entities/email/thread.d.ts +99 -16
- 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 +56 -6
- package/dist/src/entities/external-chat/chat.d.ts +62 -11
- 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 +4 -0
- package/dist/src/entities/forms/form.d.ts +71 -13
- 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 +53 -7
- package/dist/src/entities/harnesses/pairing.d.ts +12 -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/initiatives/initiative.d.ts +117 -3
- package/dist/src/entities/initiatives/initiative.test.d.ts +1 -0
- package/dist/src/entities/initiatives/namespace.d.ts +69 -7
- package/dist/src/entities/me/namespace.d.ts +27 -2
- package/dist/src/entities/meetings/meeting.d.ts +45 -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 +40 -7
- package/dist/src/entities/notifications/notification.d.ts +29 -5
- 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 +47 -6
- 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 +128 -7
- package/dist/src/entities/routines/routine.d.ts +111 -25
- package/dist/src/entities/saved-views/namespace.d.ts +57 -0
- package/dist/src/entities/saved-views/saved-view.d.ts +78 -0
- package/dist/src/entities/search/namespace.d.ts +5 -1
- package/dist/src/entities/sharing/access.d.ts +50 -9
- package/dist/src/entities/spreadsheets/spreadsheet.d.ts +201 -0
- package/dist/src/entities/tasks/namespace.d.ts +13 -1
- package/dist/src/entities/tasks/task.d.ts +7 -1
- 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 +7 -0
- package/dist/src/entities/unfurls/namespace.d.ts +12 -2
- package/dist/src/entities/users/namespace.d.ts +19 -1
- 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 +7 -1
- package/dist/src/entities/workspace/query.d.ts +5 -1
- 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 +33 -5
- package/dist/src/macro.js +15635 -10132
- package/dist/src/utils/lazy.d.ts +7 -1
- package/package.json +1 -1
- package/dist/src/entities/crm/comment.d.ts +0 -64
|
@@ -899,6 +899,20 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
899
899
|
}
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
|
+
/**
|
|
903
|
+
* Handler for `PATCH /agents/{agent_id}`: change only the settings the body
|
|
904
|
+
* names, keeping every other one, as the `ConfigureAgent` tool does.
|
|
905
|
+
*/
|
|
906
|
+
patchAgent(options) {
|
|
907
|
+
return (options.client ?? this.client).patch({
|
|
908
|
+
url: "/agents/{agent_id}",
|
|
909
|
+
...options,
|
|
910
|
+
headers: {
|
|
911
|
+
"Content-Type": "application/json",
|
|
912
|
+
...options.headers
|
|
913
|
+
}
|
|
914
|
+
});
|
|
915
|
+
}
|
|
902
916
|
/**
|
|
903
917
|
* Handler for `PUT /agents/{agent_id}`.
|
|
904
918
|
*/
|
|
@@ -1086,6 +1100,19 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1086
1100
|
listTeamOutOfOffice(options) {
|
|
1087
1101
|
return (options.client ?? this.client).get({ url: "/calendar-events/team-out-of-office", ...options });
|
|
1088
1102
|
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Merge the requester's and selected teammates' busy time in a bounded window.
|
|
1105
|
+
*/
|
|
1106
|
+
getTeamAvailability(options) {
|
|
1107
|
+
return (options.client ?? this.client).post({
|
|
1108
|
+
url: "/calendar-events/team/availability",
|
|
1109
|
+
...options,
|
|
1110
|
+
headers: {
|
|
1111
|
+
"Content-Type": "application/json",
|
|
1112
|
+
...options.headers
|
|
1113
|
+
}
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1089
1116
|
/**
|
|
1090
1117
|
* Export an event the requester can see — their own, or one shared with a
|
|
1091
1118
|
* channel they belong to — as an iCalendar file named after its title.
|
|
@@ -1837,6 +1864,24 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1837
1864
|
}
|
|
1838
1865
|
});
|
|
1839
1866
|
}
|
|
1867
|
+
/**
|
|
1868
|
+
* Handler for `POST /channels/{channel_id}/shares`.
|
|
1869
|
+
*
|
|
1870
|
+
* Grants the channel's current members access to one item, the way posting
|
|
1871
|
+
* it in a message does. Calendar events can be shared only from the caller's
|
|
1872
|
+
* own calendar, and private or confidential events are refused. Sharing again
|
|
1873
|
+
* is a no-op.
|
|
1874
|
+
*/
|
|
1875
|
+
shareWithChannel(options) {
|
|
1876
|
+
return (options.client ?? this.client).post({
|
|
1877
|
+
url: "/channels/{channel_id}/shares",
|
|
1878
|
+
...options,
|
|
1879
|
+
headers: {
|
|
1880
|
+
"Content-Type": "application/json",
|
|
1881
|
+
...options.headers
|
|
1882
|
+
}
|
|
1883
|
+
});
|
|
1884
|
+
}
|
|
1840
1885
|
/**
|
|
1841
1886
|
* Handler for `POST /channels/{channel_id}/webhook`.
|
|
1842
1887
|
*/
|
|
@@ -1931,6 +1976,20 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1931
1976
|
}
|
|
1932
1977
|
});
|
|
1933
1978
|
}
|
|
1979
|
+
/**
|
|
1980
|
+
* Create the companies a CSV lists, and put its Stage, Owner and Revenue
|
|
1981
|
+
* values on entries of a company pipeline.
|
|
1982
|
+
*/
|
|
1983
|
+
importCrmCompaniesCsv(options) {
|
|
1984
|
+
return (options.client ?? this.client).post({
|
|
1985
|
+
url: "/crm/companies/import",
|
|
1986
|
+
...options,
|
|
1987
|
+
headers: {
|
|
1988
|
+
"Content-Type": "application/json",
|
|
1989
|
+
...options.headers
|
|
1990
|
+
}
|
|
1991
|
+
});
|
|
1992
|
+
}
|
|
1934
1993
|
/**
|
|
1935
1994
|
* Fetch a single CRM company by id, hydrated with its domains, the
|
|
1936
1995
|
* primary domain's directory display metadata (name + description),
|
|
@@ -1972,9 +2031,8 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1972
2031
|
});
|
|
1973
2032
|
}
|
|
1974
2033
|
/**
|
|
1975
|
-
* Toggle
|
|
1976
|
-
*
|
|
1977
|
-
* this company. Existing CRM data is unaffected.
|
|
2034
|
+
* Toggle email contribution for a CRM company without archiving its records.
|
|
2035
|
+
* Individual consent and all remaining exclusions still apply.
|
|
1978
2036
|
*/
|
|
1979
2037
|
setEmailSync(options) {
|
|
1980
2038
|
return (options.client ?? this.client).put({
|
|
@@ -2064,6 +2122,32 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2064
2122
|
getContact(options) {
|
|
2065
2123
|
return (options.client ?? this.client).get({ url: "/crm/contacts/{contact_id}", ...options });
|
|
2066
2124
|
}
|
|
2125
|
+
/**
|
|
2126
|
+
* Update an existing team-owned contact without merging its identity.
|
|
2127
|
+
*/
|
|
2128
|
+
setCrmContactCompany(options) {
|
|
2129
|
+
return (options.client ?? this.client).put({
|
|
2130
|
+
url: "/crm/contacts/{contact_id}/company",
|
|
2131
|
+
...options,
|
|
2132
|
+
headers: {
|
|
2133
|
+
"Content-Type": "application/json",
|
|
2134
|
+
...options.headers
|
|
2135
|
+
}
|
|
2136
|
+
});
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* Update an existing team-owned contact without merging its identity.
|
|
2140
|
+
*/
|
|
2141
|
+
setCrmContactEmail(options) {
|
|
2142
|
+
return (options.client ?? this.client).put({
|
|
2143
|
+
url: "/crm/contacts/{contact_id}/email",
|
|
2144
|
+
...options,
|
|
2145
|
+
headers: {
|
|
2146
|
+
"Content-Type": "application/json",
|
|
2147
|
+
...options.headers
|
|
2148
|
+
}
|
|
2149
|
+
});
|
|
2150
|
+
}
|
|
2067
2151
|
/**
|
|
2068
2152
|
* Toggle `hidden` on a CRM contact. Hiding is a display-only opt-out
|
|
2069
2153
|
* scoped to the team that owns the contact's company.
|
|
@@ -2095,6 +2179,25 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2095
2179
|
}
|
|
2096
2180
|
});
|
|
2097
2181
|
}
|
|
2182
|
+
/**
|
|
2183
|
+
* Read the caller's mailbox consent and both exclusion lists.
|
|
2184
|
+
*/
|
|
2185
|
+
getCrmEmailPrivacy(options) {
|
|
2186
|
+
return (options?.client ?? this.client).get({ url: "/crm/email-privacy", ...options });
|
|
2187
|
+
}
|
|
2188
|
+
/**
|
|
2189
|
+
* Apply one consent or domain-exclusion change as the authenticated member.
|
|
2190
|
+
*/
|
|
2191
|
+
updateCrmEmailPrivacy(options) {
|
|
2192
|
+
return (options.client ?? this.client).put({
|
|
2193
|
+
url: "/crm/email-privacy",
|
|
2194
|
+
...options,
|
|
2195
|
+
headers: {
|
|
2196
|
+
"Content-Type": "application/json",
|
|
2197
|
+
...options.headers
|
|
2198
|
+
}
|
|
2199
|
+
});
|
|
2200
|
+
}
|
|
2098
2201
|
/**
|
|
2099
2202
|
* List the caller's live pipelines in their CRM.
|
|
2100
2203
|
*/
|
|
@@ -2114,12 +2217,132 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2114
2217
|
}
|
|
2115
2218
|
});
|
|
2116
2219
|
}
|
|
2220
|
+
/**
|
|
2221
|
+
* Entries whose company or contact matches the search, across the caller's
|
|
2222
|
+
* pipelines; pipelines without a match are left out.
|
|
2223
|
+
*/
|
|
2224
|
+
searchCrmPipelineEntries(options) {
|
|
2225
|
+
return (options.client ?? this.client).get({ url: "/crm/pipelines/entry-search", ...options });
|
|
2226
|
+
}
|
|
2227
|
+
/**
|
|
2228
|
+
* Every entry tracking one of the records, across the caller's pipelines;
|
|
2229
|
+
* pipelines without one are left out.
|
|
2230
|
+
*/
|
|
2231
|
+
listCrmRecordPipelineEntries(options) {
|
|
2232
|
+
return (options.client ?? this.client).post({
|
|
2233
|
+
url: "/crm/pipelines/record-entries",
|
|
2234
|
+
...options,
|
|
2235
|
+
headers: {
|
|
2236
|
+
"Content-Type": "application/json",
|
|
2237
|
+
...options.headers
|
|
2238
|
+
}
|
|
2239
|
+
});
|
|
2240
|
+
}
|
|
2117
2241
|
/**
|
|
2118
2242
|
* Read one pipeline by its entity identity.
|
|
2119
2243
|
*/
|
|
2120
2244
|
getCrmPipeline(options) {
|
|
2121
2245
|
return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}", ...options });
|
|
2122
2246
|
}
|
|
2247
|
+
/**
|
|
2248
|
+
* Every entry as CSV text: Company and Domain (or Contact and Email), then
|
|
2249
|
+
* one column per field, people as emails. An import reads the same layout.
|
|
2250
|
+
*/
|
|
2251
|
+
getCrmPipelineCsv(options) {
|
|
2252
|
+
return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/csv", ...options });
|
|
2253
|
+
}
|
|
2254
|
+
/**
|
|
2255
|
+
* Rename or share a pipeline, and add, rename or delete its fields and
|
|
2256
|
+
* options by name, in one change.
|
|
2257
|
+
*/
|
|
2258
|
+
editCrmPipeline(options) {
|
|
2259
|
+
return (options.client ?? this.client).post({
|
|
2260
|
+
url: "/crm/pipelines/{id}/edit",
|
|
2261
|
+
...options,
|
|
2262
|
+
headers: {
|
|
2263
|
+
"Content-Type": "application/json",
|
|
2264
|
+
...options.headers
|
|
2265
|
+
}
|
|
2266
|
+
});
|
|
2267
|
+
}
|
|
2268
|
+
/**
|
|
2269
|
+
* Set fields of entries by name, all or nothing; a stage takes its label.
|
|
2270
|
+
*/
|
|
2271
|
+
updateCrmPipelineEntries(options) {
|
|
2272
|
+
return (options.client ?? this.client).patch({
|
|
2273
|
+
url: "/crm/pipelines/{id}/entries",
|
|
2274
|
+
...options,
|
|
2275
|
+
headers: {
|
|
2276
|
+
"Content-Type": "application/json",
|
|
2277
|
+
...options.headers
|
|
2278
|
+
}
|
|
2279
|
+
});
|
|
2280
|
+
}
|
|
2281
|
+
/**
|
|
2282
|
+
* Add entries, filling fields by name: companies or contacts in a tracked
|
|
2283
|
+
* pipeline, free-form rows in a generic one. A record already in the
|
|
2284
|
+
* pipeline is returned in `alreadyPresent` instead, unless `allowDuplicates`.
|
|
2285
|
+
*/
|
|
2286
|
+
addCrmPipelineEntries(options) {
|
|
2287
|
+
return (options.client ?? this.client).post({
|
|
2288
|
+
url: "/crm/pipelines/{id}/entries",
|
|
2289
|
+
...options,
|
|
2290
|
+
headers: {
|
|
2291
|
+
"Content-Type": "application/json",
|
|
2292
|
+
...options.headers
|
|
2293
|
+
}
|
|
2294
|
+
});
|
|
2295
|
+
}
|
|
2296
|
+
/**
|
|
2297
|
+
* Entries of one pipeline matching filters, records or a search, with
|
|
2298
|
+
* per-option counts and number totals over every match.
|
|
2299
|
+
*/
|
|
2300
|
+
findCrmPipelineEntries(options) {
|
|
2301
|
+
return (options.client ?? this.client).post({
|
|
2302
|
+
url: "/crm/pipelines/{id}/entries/find",
|
|
2303
|
+
...options,
|
|
2304
|
+
headers: {
|
|
2305
|
+
"Content-Type": "application/json",
|
|
2306
|
+
...options.headers
|
|
2307
|
+
}
|
|
2308
|
+
});
|
|
2309
|
+
}
|
|
2310
|
+
/**
|
|
2311
|
+
* Delete entries by id, or every entry of the records; the companies and
|
|
2312
|
+
* contacts stay in the CRM.
|
|
2313
|
+
*/
|
|
2314
|
+
removeCrmPipelineEntries(options) {
|
|
2315
|
+
return (options.client ?? this.client).post({
|
|
2316
|
+
url: "/crm/pipelines/{id}/entries/remove",
|
|
2317
|
+
...options,
|
|
2318
|
+
headers: {
|
|
2319
|
+
"Content-Type": "application/json",
|
|
2320
|
+
...options.headers
|
|
2321
|
+
}
|
|
2322
|
+
});
|
|
2323
|
+
}
|
|
2324
|
+
/**
|
|
2325
|
+
* Save every entry as a CSV file in the caller's files, laid out as
|
|
2326
|
+
* `/csv` returns it.
|
|
2327
|
+
*/
|
|
2328
|
+
exportCrmPipelineCsv(options) {
|
|
2329
|
+
return (options.client ?? this.client).post({ url: "/crm/pipelines/{id}/export", ...options });
|
|
2330
|
+
}
|
|
2331
|
+
/**
|
|
2332
|
+
* Add a CSV's rows as entries, matching its columns to fields by name and
|
|
2333
|
+
* creating the companies or contacts the team lacks. Records already in the
|
|
2334
|
+
* pipeline are not added again.
|
|
2335
|
+
*/
|
|
2336
|
+
importCrmPipelineCsv(options) {
|
|
2337
|
+
return (options.client ?? this.client).post({
|
|
2338
|
+
url: "/crm/pipelines/{id}/import",
|
|
2339
|
+
...options,
|
|
2340
|
+
headers: {
|
|
2341
|
+
"Content-Type": "application/json",
|
|
2342
|
+
...options.headers
|
|
2343
|
+
}
|
|
2344
|
+
});
|
|
2345
|
+
}
|
|
2123
2346
|
/**
|
|
2124
2347
|
* Rename a pipeline.
|
|
2125
2348
|
*/
|
|
@@ -2307,7 +2530,9 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2307
2530
|
});
|
|
2308
2531
|
}
|
|
2309
2532
|
/**
|
|
2310
|
-
* Save
|
|
2533
|
+
* Save a question: a `SELECT` that compiles against the caller's databases,
|
|
2534
|
+
* whose chart columns, when given, are ones it returns. Saved questions
|
|
2535
|
+
* never change; editing one saves a new one.
|
|
2311
2536
|
*/
|
|
2312
2537
|
saveDatabaseQuery(options) {
|
|
2313
2538
|
return (options.client ?? this.client).post({
|
|
@@ -2648,6 +2873,19 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2648
2873
|
}
|
|
2649
2874
|
});
|
|
2650
2875
|
}
|
|
2876
|
+
/**
|
|
2877
|
+
* Create a blank native spreadsheet, ready to read and edit.
|
|
2878
|
+
*/
|
|
2879
|
+
createSpreadsheet(options) {
|
|
2880
|
+
return (options.client ?? this.client).post({
|
|
2881
|
+
url: "/documents/create_spreadsheet",
|
|
2882
|
+
...options,
|
|
2883
|
+
headers: {
|
|
2884
|
+
"Content-Type": "application/json",
|
|
2885
|
+
...options.headers
|
|
2886
|
+
}
|
|
2887
|
+
});
|
|
2888
|
+
}
|
|
2651
2889
|
/**
|
|
2652
2890
|
* Creates a task document with properties and initialized markdown content in
|
|
2653
2891
|
* one backend-owned lifecycle.
|
|
@@ -2862,6 +3100,79 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2862
3100
|
getDocumentBranchName(options) {
|
|
2863
3101
|
return (options.client ?? this.client).get({ url: "/documents/{document_id}/branch_name", ...options });
|
|
2864
3102
|
}
|
|
3103
|
+
/**
|
|
3104
|
+
* Edit a canvas by natural-language instructions with edit access, through
|
|
3105
|
+
* EditCanvas's editor, AI admission and billing.
|
|
3106
|
+
*/
|
|
3107
|
+
editCanvasWithAi(options) {
|
|
3108
|
+
return (options.client ?? this.client).post({
|
|
3109
|
+
url: "/documents/{document_id}/canvas/ai-edit",
|
|
3110
|
+
...options,
|
|
3111
|
+
headers: {
|
|
3112
|
+
"Content-Type": "application/json",
|
|
3113
|
+
...options.headers
|
|
3114
|
+
}
|
|
3115
|
+
});
|
|
3116
|
+
}
|
|
3117
|
+
/**
|
|
3118
|
+
* Apply one batch of CanvasEditor code with edit access, against the revision
|
|
3119
|
+
* it was planned on, without a model. The batch validates, measures text and
|
|
3120
|
+
* commits once, or not at all.
|
|
3121
|
+
*/
|
|
3122
|
+
applyCanvasEdits(options) {
|
|
3123
|
+
return (options.client ?? this.client).post({
|
|
3124
|
+
url: "/documents/{document_id}/canvas/edits",
|
|
3125
|
+
...options,
|
|
3126
|
+
headers: {
|
|
3127
|
+
"Content-Type": "application/json",
|
|
3128
|
+
...options.headers
|
|
3129
|
+
}
|
|
3130
|
+
});
|
|
3131
|
+
}
|
|
3132
|
+
/**
|
|
3133
|
+
* Render a canvas to a PNG with view access, with the Canvas renderer, and
|
|
3134
|
+
* keep it as a static file owned by the caller. No model runs.
|
|
3135
|
+
*/
|
|
3136
|
+
renderCanvas(options) {
|
|
3137
|
+
return (options.client ?? this.client).post({
|
|
3138
|
+
url: "/documents/{document_id}/canvas/render",
|
|
3139
|
+
...options,
|
|
3140
|
+
headers: {
|
|
3141
|
+
"Content-Type": "application/json",
|
|
3142
|
+
...options.headers
|
|
3143
|
+
}
|
|
3144
|
+
});
|
|
3145
|
+
}
|
|
3146
|
+
/**
|
|
3147
|
+
* Read a canvas's live scene with view access: stable item ids, containment
|
|
3148
|
+
* and order, transforms, world bounds, shapes and text. No model runs.
|
|
3149
|
+
*/
|
|
3150
|
+
readCanvasScene(options) {
|
|
3151
|
+
return (options.client ?? this.client).post({
|
|
3152
|
+
url: "/documents/{document_id}/canvas/scene",
|
|
3153
|
+
...options,
|
|
3154
|
+
headers: {
|
|
3155
|
+
"Content-Type": "application/json",
|
|
3156
|
+
...options.headers
|
|
3157
|
+
}
|
|
3158
|
+
});
|
|
3159
|
+
}
|
|
3160
|
+
/**
|
|
3161
|
+
* Start a comment thread anchored to a quoted passage of a markdown or Word
|
|
3162
|
+
* document, with the caller's comment access. On markdown the passage is
|
|
3163
|
+
* marked in the live document first, and nothing is posted when the quote is
|
|
3164
|
+
* ambiguous or missing.
|
|
3165
|
+
*/
|
|
3166
|
+
commentOnDocumentText(options) {
|
|
3167
|
+
return (options.client ?? this.client).post({
|
|
3168
|
+
url: "/documents/{document_id}/comments/text",
|
|
3169
|
+
...options,
|
|
3170
|
+
headers: {
|
|
3171
|
+
"Content-Type": "application/json",
|
|
3172
|
+
...options.headers
|
|
3173
|
+
}
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
2865
3176
|
/**
|
|
2866
3177
|
* Handler for `POST /documents/{document_id}/copy`.
|
|
2867
3178
|
*
|
|
@@ -2925,6 +3236,28 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2925
3236
|
getDocumentLocationV3(options) {
|
|
2926
3237
|
return (options.client ?? this.client).get({ url: "/documents/{document_id}/location_v3", ...options });
|
|
2927
3238
|
}
|
|
3239
|
+
/**
|
|
3240
|
+
* Read a markdown document's or task's body with the revision it was read
|
|
3241
|
+
* at, to write it back with `PUT` without overwriting anyone's edits.
|
|
3242
|
+
*/
|
|
3243
|
+
getDocumentMarkdown(options) {
|
|
3244
|
+
return (options.client ?? this.client).get({ url: "/documents/{document_id}/markdown", ...options });
|
|
3245
|
+
}
|
|
3246
|
+
/**
|
|
3247
|
+
* Replace a markdown document's or task's body, only if the document is still
|
|
3248
|
+
* at the revision the caller read. Top-level blocks whose Markdown is
|
|
3249
|
+
* unchanged keep their comments and formatting; changed blocks are replaced.
|
|
3250
|
+
*/
|
|
3251
|
+
writeDocumentMarkdown(options) {
|
|
3252
|
+
return (options.client ?? this.client).put({
|
|
3253
|
+
url: "/documents/{document_id}/markdown",
|
|
3254
|
+
...options,
|
|
3255
|
+
headers: {
|
|
3256
|
+
"Content-Type": "application/json",
|
|
3257
|
+
...options.headers
|
|
3258
|
+
}
|
|
3259
|
+
});
|
|
3260
|
+
}
|
|
2928
3261
|
/**
|
|
2929
3262
|
* Permanently deletes a document.
|
|
2930
3263
|
*/
|
|
@@ -3032,6 +3365,68 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
3032
3365
|
}
|
|
3033
3366
|
});
|
|
3034
3367
|
}
|
|
3368
|
+
/**
|
|
3369
|
+
* Edit a native spreadsheet by instructions with the caller's edit access:
|
|
3370
|
+
* a writer model reads the workbook and saves one atomic batch, with AI
|
|
3371
|
+
* admission and billing. A workbook changed while it worked saves nothing
|
|
3372
|
+
* and answers 409.
|
|
3373
|
+
*
|
|
3374
|
+
* A client that disconnects drops the worker request, which cancels the
|
|
3375
|
+
* edit before its save.
|
|
3376
|
+
*/
|
|
3377
|
+
editSpreadsheetWithAi(options) {
|
|
3378
|
+
return (options.client ?? this.client).post({
|
|
3379
|
+
url: "/documents/{document_id}/spreadsheet/ai-edit",
|
|
3380
|
+
...options,
|
|
3381
|
+
headers: {
|
|
3382
|
+
"Content-Type": "application/json",
|
|
3383
|
+
...options.headers
|
|
3384
|
+
}
|
|
3385
|
+
});
|
|
3386
|
+
}
|
|
3387
|
+
/**
|
|
3388
|
+
* Evaluate scratch formulas against a native spreadsheet with view access,
|
|
3389
|
+
* optionally with hypothetical inputs. Nothing is saved.
|
|
3390
|
+
*/
|
|
3391
|
+
calculateSpreadsheet(options) {
|
|
3392
|
+
return (options.client ?? this.client).post({
|
|
3393
|
+
url: "/documents/{document_id}/spreadsheet/calculate",
|
|
3394
|
+
...options,
|
|
3395
|
+
headers: {
|
|
3396
|
+
"Content-Type": "application/json",
|
|
3397
|
+
...options.headers
|
|
3398
|
+
}
|
|
3399
|
+
});
|
|
3400
|
+
}
|
|
3401
|
+
/**
|
|
3402
|
+
* Apply one atomic batch of operations to a native spreadsheet with edit
|
|
3403
|
+
* access. Every operation validates before anything is saved; a workbook that
|
|
3404
|
+
* changed since `expectedRevision` rejects the batch with 409.
|
|
3405
|
+
*/
|
|
3406
|
+
editSpreadsheet(options) {
|
|
3407
|
+
return (options.client ?? this.client).post({
|
|
3408
|
+
url: "/documents/{document_id}/spreadsheet/edits",
|
|
3409
|
+
...options,
|
|
3410
|
+
headers: {
|
|
3411
|
+
"Content-Type": "application/json",
|
|
3412
|
+
...options.headers
|
|
3413
|
+
}
|
|
3414
|
+
});
|
|
3415
|
+
}
|
|
3416
|
+
/**
|
|
3417
|
+
* Read a native spreadsheet with view access: every sheet's summary, and the
|
|
3418
|
+
* cells of the requested ranges. Returns the revision an edit needs.
|
|
3419
|
+
*/
|
|
3420
|
+
readSpreadsheet(options) {
|
|
3421
|
+
return (options.client ?? this.client).post({
|
|
3422
|
+
url: "/documents/{document_id}/spreadsheet/read",
|
|
3423
|
+
...options,
|
|
3424
|
+
headers: {
|
|
3425
|
+
"Content-Type": "application/json",
|
|
3426
|
+
...options.headers
|
|
3427
|
+
}
|
|
3428
|
+
});
|
|
3429
|
+
}
|
|
3035
3430
|
/**
|
|
3036
3431
|
* Gets the team-share state of a document. The team is resolved from the
|
|
3037
3432
|
* document owner's team membership; `teamId` is omitted when the owner does
|
|
@@ -3593,6 +3988,12 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
3593
3988
|
listHarnesses(options) {
|
|
3594
3989
|
return (options?.client ?? this.client).get({ url: "/harnesses", ...options });
|
|
3595
3990
|
}
|
|
3991
|
+
/**
|
|
3992
|
+
* Handler for `GET /harnesses/directory`.
|
|
3993
|
+
*/
|
|
3994
|
+
listHarnessDirectory(options) {
|
|
3995
|
+
return (options?.client ?? this.client).get({ url: "/harnesses/directory", ...options });
|
|
3996
|
+
}
|
|
3596
3997
|
/**
|
|
3597
3998
|
* Handler for `DELETE /harnesses/me`.
|
|
3598
3999
|
*
|
|
@@ -3638,6 +4039,28 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
3638
4039
|
}
|
|
3639
4040
|
});
|
|
3640
4041
|
}
|
|
4042
|
+
/**
|
|
4043
|
+
* Handler for `GET /harnesses/{harness_id}/residents`.
|
|
4044
|
+
*/
|
|
4045
|
+
listHarnessResidents(options) {
|
|
4046
|
+
return (options.client ?? this.client).get({ url: "/harnesses/{harness_id}/residents", ...options });
|
|
4047
|
+
}
|
|
4048
|
+
/**
|
|
4049
|
+
* Handler for `PUT /harnesses/{harness_id}/team-access`.
|
|
4050
|
+
*
|
|
4051
|
+
* Requires the owner's own session: an agent can ask for access to a machine
|
|
4052
|
+
* but never open one, since that grants code execution on it.
|
|
4053
|
+
*/
|
|
4054
|
+
setHarnessTeamAccess(options) {
|
|
4055
|
+
return (options.client ?? this.client).put({
|
|
4056
|
+
url: "/harnesses/{harness_id}/team-access",
|
|
4057
|
+
...options,
|
|
4058
|
+
headers: {
|
|
4059
|
+
"Content-Type": "application/json",
|
|
4060
|
+
...options.headers
|
|
4061
|
+
}
|
|
4062
|
+
});
|
|
4063
|
+
}
|
|
3641
4064
|
/**
|
|
3642
4065
|
* Health check
|
|
3643
4066
|
*/
|
|
@@ -3681,6 +4104,13 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
3681
4104
|
}
|
|
3682
4105
|
});
|
|
3683
4106
|
}
|
|
4107
|
+
/**
|
|
4108
|
+
* Page the initiatives the caller can view, filtered by name and canonical properties,
|
|
4109
|
+
* with each row's properties and progress over the tasks the caller can view.
|
|
4110
|
+
*/
|
|
4111
|
+
pageInitiatives(options) {
|
|
4112
|
+
return (options?.client ?? this.client).get({ url: "/initiatives/page", ...options });
|
|
4113
|
+
}
|
|
3684
4114
|
/**
|
|
3685
4115
|
* Delete the initiative the caller owns.
|
|
3686
4116
|
*/
|
|
@@ -3706,6 +4136,23 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
3706
4136
|
}
|
|
3707
4137
|
});
|
|
3708
4138
|
}
|
|
4139
|
+
/**
|
|
4140
|
+
* Read an initiative's creation, edits, property changes and task membership
|
|
4141
|
+
* changes, newest first.
|
|
4142
|
+
*
|
|
4143
|
+
* Task references require current view access to the task, so a page can hold
|
|
4144
|
+
* fewer records than `limit`, even none. Follow `nextCursor` with the same
|
|
4145
|
+
* window until it is absent.
|
|
4146
|
+
*/
|
|
4147
|
+
getInitiativeActivity(options) {
|
|
4148
|
+
return (options.client ?? this.client).get({ url: "/initiatives/{initiative_id}/activity", ...options });
|
|
4149
|
+
}
|
|
4150
|
+
/**
|
|
4151
|
+
* Read the description of an initiative the caller can view.
|
|
4152
|
+
*/
|
|
4153
|
+
getInitiativeDescription(options) {
|
|
4154
|
+
return (options.client ?? this.client).get({ url: "/initiatives/{initiative_id}/description", ...options });
|
|
4155
|
+
}
|
|
3709
4156
|
/**
|
|
3710
4157
|
* Gets the instructions document for the current user
|
|
3711
4158
|
*/
|
|
@@ -4065,6 +4512,45 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
4065
4512
|
}
|
|
4066
4513
|
});
|
|
4067
4514
|
}
|
|
4515
|
+
listSavedViewDefinitions(options) {
|
|
4516
|
+
return (options?.client ?? this.client).get({ url: "/saved_views/definitions", ...options });
|
|
4517
|
+
}
|
|
4518
|
+
createSavedViewDefinition(options) {
|
|
4519
|
+
return (options.client ?? this.client).post({
|
|
4520
|
+
url: "/saved_views/definitions",
|
|
4521
|
+
...options,
|
|
4522
|
+
headers: {
|
|
4523
|
+
"Content-Type": "application/json",
|
|
4524
|
+
...options.headers
|
|
4525
|
+
}
|
|
4526
|
+
});
|
|
4527
|
+
}
|
|
4528
|
+
reorderSavedViewDefinitions(options) {
|
|
4529
|
+
return (options.client ?? this.client).put({
|
|
4530
|
+
url: "/saved_views/definitions/order",
|
|
4531
|
+
...options,
|
|
4532
|
+
headers: {
|
|
4533
|
+
"Content-Type": "application/json",
|
|
4534
|
+
...options.headers
|
|
4535
|
+
}
|
|
4536
|
+
});
|
|
4537
|
+
}
|
|
4538
|
+
deleteSavedViewDefinition(options) {
|
|
4539
|
+
return (options.client ?? this.client).delete({ url: "/saved_views/definitions/{saved_view_id}", ...options });
|
|
4540
|
+
}
|
|
4541
|
+
getSavedViewDefinition(options) {
|
|
4542
|
+
return (options.client ?? this.client).get({ url: "/saved_views/definitions/{saved_view_id}", ...options });
|
|
4543
|
+
}
|
|
4544
|
+
updateSavedViewDefinition(options) {
|
|
4545
|
+
return (options.client ?? this.client).patch({
|
|
4546
|
+
url: "/saved_views/definitions/{saved_view_id}",
|
|
4547
|
+
...options,
|
|
4548
|
+
headers: {
|
|
4549
|
+
"Content-Type": "application/json",
|
|
4550
|
+
...options.headers
|
|
4551
|
+
}
|
|
4552
|
+
});
|
|
4553
|
+
}
|
|
4068
4554
|
excludeDefaultViewHandler(options) {
|
|
4069
4555
|
return (options.client ?? this.client).post({
|
|
4070
4556
|
url: "/saved_views/exclude_default",
|
|
@@ -804,6 +804,15 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
804
804
|
super(args);
|
|
805
805
|
_Sdk.__registry.set(this, args?.key);
|
|
806
806
|
}
|
|
807
|
+
/**
|
|
808
|
+
* Read the acting user's own activity in a time range, newest first.
|
|
809
|
+
*
|
|
810
|
+
* Includes actions agents performed on the user's behalf. Returns at most
|
|
811
|
+
* 100 events; `truncated` reports that more matched, so narrow the range.
|
|
812
|
+
*/
|
|
813
|
+
readMyActivity(options) {
|
|
814
|
+
return (options.client ?? this.client).get({ url: "/activity", ...options });
|
|
815
|
+
}
|
|
807
816
|
/**
|
|
808
817
|
* Set the pricing for a model and recompute its recorded rows. Admin only.
|
|
809
818
|
*/
|
|
@@ -1174,6 +1183,39 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1174
1183
|
getMemoryHandler(options) {
|
|
1175
1184
|
return (options?.client ?? this.client).get({ url: "/memory", ...options });
|
|
1176
1185
|
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Read privacy-reviewed professional activity of the caller or a current teammate.
|
|
1188
|
+
*
|
|
1189
|
+
* Reports use UTC calendar days, Monday-start weeks and calendar months.
|
|
1190
|
+
* An empty list means no stored activity, not no work.
|
|
1191
|
+
*/
|
|
1192
|
+
getUserActivity(options) {
|
|
1193
|
+
return (options.client ?? this.client).get({ url: "/memory/activity", ...options });
|
|
1194
|
+
}
|
|
1195
|
+
/**
|
|
1196
|
+
* Read the caller's private explicit memory and its revision.
|
|
1197
|
+
*
|
|
1198
|
+
* Content is newline-separated; edits address one-based lines.
|
|
1199
|
+
*/
|
|
1200
|
+
readExplicitMemory(options) {
|
|
1201
|
+
return (options?.client ?? this.client).get({ url: "/memory/explicit", ...options });
|
|
1202
|
+
}
|
|
1203
|
+
/**
|
|
1204
|
+
* Apply one edit to the caller's private explicit memory.
|
|
1205
|
+
*
|
|
1206
|
+
* A stale revision changes nothing and answers 409; reread before retrying.
|
|
1207
|
+
* Additions that fail privacy review answer 422.
|
|
1208
|
+
*/
|
|
1209
|
+
editExplicitMemory(options) {
|
|
1210
|
+
return (options.client ?? this.client).patch({
|
|
1211
|
+
url: "/memory/explicit",
|
|
1212
|
+
...options,
|
|
1213
|
+
headers: {
|
|
1214
|
+
"Content-Type": "application/json",
|
|
1215
|
+
...options.headers
|
|
1216
|
+
}
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
1177
1219
|
/**
|
|
1178
1220
|
* Get the authenticated user's onboarding state.
|
|
1179
1221
|
*/
|
|
@@ -1329,6 +1371,20 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1329
1371
|
}
|
|
1330
1372
|
});
|
|
1331
1373
|
}
|
|
1374
|
+
/**
|
|
1375
|
+
* List the caller's skills, or search them by name when `query` is given.
|
|
1376
|
+
* Built-in skills are included.
|
|
1377
|
+
*/
|
|
1378
|
+
listSkills(options) {
|
|
1379
|
+
return (options?.client ?? this.client).get({ url: "/skills", ...options });
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
* Read one skill's complete instructions: a skill document the caller can
|
|
1383
|
+
* view, or a built-in skill.
|
|
1384
|
+
*/
|
|
1385
|
+
readSkill(options) {
|
|
1386
|
+
return (options.client ?? this.client).get({ url: "/skills/{id}", ...options });
|
|
1387
|
+
}
|
|
1332
1388
|
/**
|
|
1333
1389
|
* Send a new chat message and stream the AI response.
|
|
1334
1390
|
*
|