@recovr/sdk 1.0.0 → 1.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,30 @@
1
+ # Changelog
2
+
3
+ ## 1.1.0
4
+
5
+ Brings the SDK up to date with the API reference. Nothing in 1.0.0 changed, so upgrading needs no code changes.
6
+
7
+ New methods:
8
+
9
+ - Inbox: `listConversations`, `getConversation`, `listConversationMessages`, `replyToConversation` and `listChannels`.
10
+ - Inbox actions: `markConversationRead`, `markConversationUnread`, `archiveConversation`, `unarchiveConversation`, `markConversationNoReplyNeeded`, `undoConversationNoReplyNeeded` and `linkConversationToClient`; new messages with `sendClientMessage`; `getChannel`. Conversations and messages carry `channel_id`, and their lists filter by it (and messages by `direction` and `status`).
11
+ - Leads: `createLead`, `listLeads`, `getLead`, `listLeadSources`, `archiveLead`, `unarchiveLead`, `archiveClientLeads`, `unarchiveClientLeads`, `listPossibleDuplicates` and `markNotDuplicate`.
12
+ - Reports: `getSummary`, `listActivity` and `getActionsReport`.
13
+ - Custom fields: `listCustomFields`, `getClientCustomFields` and `setClientCustomField`.
14
+ - Labels: `createClientLabel`, `updateClientLabel`, `archiveClientLabel` and `restoreClientLabel`.
15
+ - Timeline: `getClientTimeline`.
16
+ - Attendance: `listClientSessions`, `getClientAttendance`, `getClientMilestones`, `listSessions` and `getClassTimetable`.
17
+ - Reminders: `listReminders` (the location's reminders, across clients), `getReminder` and `assignReminder`.
18
+ - Team: `inviteTeamMember`, `updateTeamMember`, `resendTeamMemberInvite`, `cancelTeamMemberInvite` and `removeTeamMember`, which need the new `team:manage` scope.
19
+ - Next Up: `listNextUp`, `getClientNextUp`, `markNextUpItemDone`, `skipNextUpItem`, `snoozeNextUpItem`, `approveNextUpItem`, `rejectNextUpItem`, `recheckNextUpItem`, `settleNextUpItem` and `openNextUpBatch`.
20
+
21
+ Types:
22
+
23
+ - `KnownAttendanceTrend` lists the `attendance_trend` values in use today. The field stays a string, so a value added later still parses.
24
+ - `KnownNextUpItemKind`, `KnownNextUpApprovalType` and `KnownNextUpOperation` do the same for a Next Up item's `kind`, `approval.type` and `operations`.
25
+ - `TeamMember` gains `role` and `status`, so `listTeamMembers` says each person's role and whether they're still an invite.
26
+ - Fuller descriptions on many fields and parameters, shown in your editor.
27
+
28
+ ## 1.0.0
29
+
30
+ First release: account, clients, client actions, notes, interactions, reminders and forms.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @recovr/sdk
2
2
 
3
- TypeScript client for the [Recovr API](https://retention-backend.recovr.com/v1/docs). Read your location's clients, health scores and attendance, and add notes, reminders and client actions from your own tools.
3
+ TypeScript client for the [Recovr API](https://retention-backend.recovr.com/v1/docs). Read your location's clients, health scores and attendance, form submissions, inbox and reports, and add notes, reminders, leads, replies and client actions from your own tools.
4
4
 
5
- Works in Node 20+, Deno, Bun, Cloudflare Workers and browsers (with an OAuth token, never a personal access token). ESM and CommonJS, fully typed.
5
+ Works in Node 20+, Deno, Bun and Cloudflare Workers, and in browsers with an OAuth token. ESM and CommonJS, fully typed.
6
6
 
7
7
  ```sh
8
8
  npm install @recovr/sdk
@@ -10,9 +10,9 @@ npm install @recovr/sdk
10
10
 
11
11
  ## Connect
12
12
 
13
- Every token belongs to one location. Both kinds are passed the same way.
13
+ There are two kinds of token. Each belongs to one location, and both are passed the same way.
14
14
 
15
- **Personal access token**, for your own gym's scripts and integrations. An owner or manager creates one in Recovr under **Account → API**. It starts with `rcvr_sk_`. Keep it on a server.
15
+ **Personal access token**, for your own gym's scripts and integrations. An owner or manager creates one in Recovr under **Account → API**. It starts with `rcvr_sk_` and is a secret, like a password: keep it in your server's environment, and never put it in code that runs in a browser or app, where anyone can read it.
16
16
 
17
17
  ```ts
18
18
  import { createRecovrClient } from "@recovr/sdk";
@@ -20,7 +20,7 @@ import { createRecovrClient } from "@recovr/sdk";
20
20
  const recovr = createRecovrClient({ token: process.env.RECOVR_TOKEN! });
21
21
  ```
22
22
 
23
- **OAuth**, for apps that other gyms connect. Email support@recovr.com to register your app, then use the authorization code flow with PKCE (details in the [reference](https://retention-backend.recovr.com/v1/docs)). Pass the access token, and refresh it when it expires. A confidential (server-side) app authenticates to the token endpoint with HTTP Basic auth, never `client_secret` in the body; a public app sends `client_id` in the body instead:
23
+ **OAuth**, for apps that other gyms connect, and for anything that runs in a browser. Email support@recovr.com to register your app, then use the authorization code flow with PKCE (details in the [reference](https://retention-backend.recovr.com/v1/docs)). Pass the access token, and refresh it when it expires. A confidential (server-side) app authenticates to the token endpoint with HTTP Basic auth, never `client_secret` in the body; a public app sends `client_id` in the body instead:
24
24
 
25
25
  ```ts
26
26
  let refreshToken = savedRefreshToken;
@@ -64,6 +64,166 @@ await recovr.createClientNote({
64
64
  });
65
65
  ```
66
66
 
67
+ ## Read and answer the inbox
68
+
69
+ List the conversations that need a reply, read one, and reply on its own channel (SMS, email, WhatsApp, Instagram, Messenger). Reading needs `conversations:read`; replying needs `messages:send`, which doesn't include reading. A reply reaches a real person, so keep the automatic `Idempotency-Key` and never resend after a timeout without reading the messages first.
70
+
71
+ ```ts
72
+ import { paginate } from "@recovr/sdk";
73
+
74
+ for await (const conversation of paginate(recovr.listConversations, { query: { needs_reply: "true" } })) {
75
+ const { data } = await recovr.listConversationMessages({ path: { id: conversation.id }, query: { limit: 20 } });
76
+ console.log(conversation.contact_name, data.data[0]?.text);
77
+ }
78
+
79
+ await recovr.replyToConversation({ path: { id: 9876 }, body: { text: "Hi Sam, yes, we can pause it from Monday." } });
80
+ ```
81
+
82
+ Tidy the inbox as staff do, with `conversations:write`: `markConversationRead`, `markConversationUnread`, `archiveConversation`, `unarchiveConversation`, `markConversationNoReplyNeeded` (undo with `undoConversationNoReplyNeeded`), and `linkConversationToClient` for a message from a number Recovr didn't match. Each answers with the conversation as it is afterwards.
83
+
84
+ ```ts
85
+ await recovr.markConversationNoReplyNeeded({ path: { id: 9876 } });
86
+ await recovr.linkConversationToClient({ path: { id: 9877 }, body: { client_id: 12345 } });
87
+ ```
88
+
89
+ Start a text or email to a client who has no conversation yet, or on another channel, with `sendClientMessage` (`messages:send`, the same checks as a reply). Name the channel by kind (`sms` or `email`) or by an id from `listChannels`. On WhatsApp, Instagram or Messenger, reply in the client's conversation instead.
90
+
91
+ ```ts
92
+ await recovr.sendClientMessage({ path: { id: 12345 }, body: { text: "Hi Sam, we missed you this week.", channel: "sms" } });
93
+ ```
94
+
95
+ `recovr.listChannels()` lists the location's channels and whether each can send (`channels:read`); `getChannel` reads one. Every conversation and message names its channel as `channel_id`, and `listConversations` and `listConversationMessages` filter by it.
96
+
97
+ ## Work Next Up
98
+
99
+ `listNextUp` returns today's Next Up list, ranked as the app's Next Up page ranks it: moments (a client to reach out to, and why now), reminders that are due, and approvals (a draft or booking change Recovr AI is holding for a person). Each item's `id` is good for that day, and its `operations` list what it takes now: mark it done, skip it for yourself, snooze the client, or approve or reject an approval. Reading needs `next_up:read` and never uses AI credits; the model-written `why` and an approval's message text also need `conversations:read`. Acting needs `next_up:write`, and approving a held draft sends it, so that also needs `messages:send`.
100
+
101
+ ```ts
102
+ const { data: list } = await recovr.listNextUp({ query: { assigned_to: 42 } });
103
+ for (const item of list.data) {
104
+ console.log(item.rank, item.client_name, item.kind === "moment" ? item.headline : item.reminder?.due_at);
105
+ }
106
+
107
+ await recovr.markNextUpItemDone({ path: { item_id: list.data[0].id } });
108
+ await recovr.snoozeNextUpItem({ path: { item_id: list.data[1].id }, body: { days: 7 } });
109
+
110
+ const { data: forClient } = await recovr.getClientNextUp({ path: { id: 12345 } });
111
+
112
+ // Approvals: send a held draft with your own words, or reject a booking change.
113
+ const { data: approvals } = await recovr.listNextUp({ query: { kinds: "approval" } });
114
+ for (const item of approvals.data) {
115
+ if (item.approval?.type === "held_draft" && item.operations.includes("approve")) {
116
+ await recovr.approveNextUpItem({ path: { item_id: item.id }, body: { text: "Hi Jo, paused from Monday." } });
117
+ } else if (item.operations.includes("reject")) {
118
+ await recovr.rejectNextUpItem({ path: { item_id: item.id } });
119
+ }
120
+ }
121
+
122
+ // Once you've worked through a batch of moments, open the next.
123
+ if (list.batch && list.batch.remaining > 0) await recovr.openNextUpBatch({ body: { after: list.batch.number } });
124
+ ```
125
+
126
+ ## Read attendance and classes
127
+
128
+ Attendance is read-only: the booking platform owns bookings. A client's sessions, attendance counts and milestones need `clients:read`; the location's classes and the class timetable need `sessions:read` (and `clients:read` too to see who booked). Days are the location's calendar days.
129
+
130
+ ```ts
131
+ const { data: sessions } = await recovr.listClientSessions({ path: { id: 12345 }, query: { from: "2026-11-01", to: "2026-11-30" } });
132
+ const { data: attendance } = await recovr.getClientAttendance({ path: { id: 12345 } }); // the last 30 days
133
+ const { data: milestones } = await recovr.getClientMilestones({ path: { id: 12345 } });
134
+
135
+ const { data: today } = await recovr.listSessions(); // today's classes and their bookings
136
+ const { data: timetable } = await recovr.getClassTimetable({ query: { from: "2026-12-02", to: "2026-12-08" } });
137
+ ```
138
+
139
+ ## Read a client's timeline
140
+
141
+ `getClientTimeline` returns everything that happened with a client, newest first, as their profile's timeline shows it. Filter by `type` (`message`, `call`, `note`, `session`, `label_added` and more). It needs `clients:read`; an entry's `content` also needs the permission that guards it elsewhere (`conversations:read` for messages, `notes:read` for notes, calls, logged contact and reminders, `forms:read` for form submissions), and is left out without it.
142
+
143
+ ```ts
144
+ import { paginate } from "@recovr/sdk";
145
+
146
+ for await (const entry of paginate(recovr.getClientTimeline, { path: { id: 12345 }, query: { type: "message,note" } })) {
147
+ console.log(entry.occurred_at, entry.title, entry.content ?? "");
148
+ }
149
+ ```
150
+
151
+ ## Add a lead
152
+
153
+ Send leads from a quiz, a website form or another system. Recovr matches the person to an existing client by email (or phone and first name), or adds them as a new lead, and starts your Lead received workflows once. Pass your own id as `external_id`: sending it again adds nothing. Needs `clients:write` and `contact_details:read`.
154
+
155
+ ```ts
156
+ const { data } = await recovr.createLead({
157
+ body: {
158
+ external_id: "quiz-result-88123",
159
+ first_name: "Sam",
160
+ last_name: "Taylor",
161
+ email: "sam.taylor@example.com",
162
+ phone: "+61 412 345 678",
163
+ source_label: "Website quiz",
164
+ fields: { "What's your main goal?": "Build strength" },
165
+ },
166
+ });
167
+ console.log(data.data.client_id, data.data.created ? "added" : "already added");
168
+ ```
169
+
170
+ Read and work the Leads list with `leads:read` and `leads:write`. A lead is one enquiry; its `status` (`new`, `visited`, `member`) follows what the person did next, so there is nothing to set. The lead's `client_id` is the client to assign, label or add notes to.
171
+
172
+ ```ts
173
+ for await (const lead of paginate(recovr.listLeads, { query: { status: "new", source: "meta_lead_form" } })) {
174
+ console.log(lead.name, lead.campaign_name, lead.submitted_at);
175
+ }
176
+
177
+ await recovr.archiveLead({ path: { id: 90412 } });
178
+ ```
179
+
180
+ `recovr.listLeadSources()` lists the sources, forms and campaigns the location's leads came from, to filter by.
181
+
182
+ ## Custom fields and labels
183
+
184
+ Read the location's custom fields and set a client's value (`clients:read`, `clients:write`). A `select` field takes one of its `options`; `null` clears a value.
185
+
186
+ ```ts
187
+ const { data: fields } = await recovr.listCustomFields();
188
+ const shirtSize = fields.data.find((field) => field.key === "shirt_size")!;
189
+ await recovr.setClientCustomField({ path: { id: 12345, field_id: shirtSize.id }, body: { value: "M" } });
190
+ ```
191
+
192
+ Label a challenge's finishers: create the label once (an existing label of that name comes back instead), add it to each client, then list everyone who has it. Creating, renaming, archiving and restoring labels needs `labels:manage`; archiving takes a label off every client.
193
+
194
+ ```ts
195
+ const { data: label } = await recovr.createClientLabel({ body: { name: "Challenge finisher" } });
196
+ await recovr.addClientLabel({ path: { id: 12345 }, body: { label_id: label.data.id } });
197
+
198
+ for await (const client of paginate(recovr.listClients, { query: { label_ids: String(label.data.id) } })) {
199
+ console.log(client.name);
200
+ }
201
+ ```
202
+
203
+ ## Read form submissions
204
+
205
+ Poll a form's submissions with `after_id`, the highest submission `id` you've stored (`0` the first time). They come oldest first and none is skipped, so the last `id` is all you need to keep. Needs `forms:read`.
206
+
207
+ ```ts
208
+ for await (const submission of paginate(recovr.listFormSubmissions, { path: { id: formId }, query: { after_id: lastId } })) {
209
+ console.log(submission.submitted_at, submission.answers);
210
+ lastId = submission.id;
211
+ }
212
+ ```
213
+
214
+ ## Manage the team
215
+
216
+ `listTeamMembers` lists the team with each person's role and whether they're still an invite (`clients:read`). With `team:manage`, which only an owner's or Manager's token can use, invite someone with a role, resend or cancel an invite, change a role, or remove someone. A token never changes its own person's access or gives a role above theirs, and ownership is handed over in the app.
217
+
218
+ ```ts
219
+ const { data: invited } = await recovr.inviteTeamMember({
220
+ body: { email: "sam.lee@example.com", first_name: "Sam", last_name: "Lee", role: "team_member" },
221
+ });
222
+ await recovr.resendTeamMemberInvite({ path: { id: invited.data.id } });
223
+ await recovr.updateTeamMember({ path: { id: 42 }, body: { role: "manager" } });
224
+ await recovr.removeTeamMember({ path: { id: 57 } });
225
+ ```
226
+
67
227
  ## Pagination
68
228
 
69
229
  `paginate` follows `next_cursor` for you and yields one item at a time:
@@ -76,6 +236,21 @@ for await (const client of paginate(recovr.listClients, { query: { risk_level: "
76
236
  }
77
237
  ```
78
238
 
239
+ ## Dashboards and KPIs
240
+
241
+ `getSummary` returns the counts Recovr's reports show: active members, trials, holds and each risk band. `listActivity` lists what the team did, by team member, and `getActionsReport` totals it as the app's Actions Report does. Team member ids match `listTeamMembers`. The API reference's Definitions section explains how each number is counted.
242
+
243
+ ```ts
244
+ const { data: summary } = await recovr.getSummary();
245
+ console.log(summary.data.active_members, summary.data.high_risk);
246
+
247
+ for await (const action of paginate(recovr.listActivity, { query: { from: "2026-10-01", to: "2026-10-31", type: "call,message" } })) {
248
+ console.log(action.occurred_at, action.team_member?.name, action.type);
249
+ }
250
+
251
+ const { data: report } = await recovr.getActionsReport({ query: { from: "2026-10-01", to: "2026-10-31", group_by: "week" } });
252
+ ```
253
+
79
254
  ## Errors
80
255
 
81
256
  Error responses throw `RecovrApiError`. Branch on `code`, which is stable; `message` is for people.
@@ -109,32 +284,25 @@ await recovr.createClientNote({
109
284
 
110
285
  A retry with the same key returns the first response, errors included. After a `5xx` the change may have been made before the failure, so the same key returns the same error: check whether the change was made, then send it with a new key. If the first request didn't finish recording its result, the same key returns `409 idempotency_outcome_unknown` rather than running the change again: check the record, then use a new key if you still need it. A refusal is kept too (a `404`, a `409`, or a `400` the endpoint itself returned), so after correcting a request the API refused, send it with a new key; only a request that never reached the endpoint (`400` validation, `401`, `403`) isn't kept. The SDK doesn't retry `5xx` responses itself.
111
286
 
112
- ## Recipes
287
+ ## Examples
113
288
 
114
- In [`examples/`](./examples):
289
+ The package includes four runnable scripts in `examples/`:
115
290
 
116
- - [`export-health-scores.ts`](./examples/export-health-scores.ts): a nightly CSV of every client's status, health score, risk level and last visit.
117
- - [`add-note.ts`](./examples/add-note.ts): add a note from your own system, found by the booking platform's client ID, safe to re-run.
118
- - [`set-suspension.ts`](./examples/set-suspension.ts): record a suspended client's reason and expected return date.
291
+ - `export-health-scores.ts`: a nightly CSV of every client's status, health score, risk level and last visit.
292
+ - `add-note.ts`: add a note from your own system, found by the booking platform's client ID, safe to re-run.
293
+ - `add-lead.ts`: add a lead from a quiz or form tool, safe to re-run.
294
+ - `set-suspension.ts`: record a suspended client's reason and expected return date.
119
295
 
120
296
  ```sh
121
- RECOVR_TOKEN=rcvr_sk_… npx tsx examples/export-health-scores.ts health-scores.csv
297
+ RECOVR_TOKEN=rcvr_sk_… npx tsx node_modules/@recovr/sdk/examples/export-health-scores.ts health-scores.csv
122
298
  ```
123
299
 
124
300
  ## Reference
125
301
 
126
- Every endpoint, field and error code, with an SDK sample for each: [retention-backend.recovr.com/v1/docs](https://retention-backend.recovr.com/v1/docs).
302
+ Every endpoint, field and error code, with an SDK sample and example responses for each: [retention-backend.recovr.com/v1/docs](https://retention-backend.recovr.com/v1/docs). The same guide and endpoint list for AI coding assistants is at [/v1/llms.txt](https://retention-backend.recovr.com/v1/llms.txt).
127
303
 
128
- Within v1, the API only adds things. Breaking changes go to a new version with notice.
304
+ Using Recovr from Claude, ChatGPT or Codex rather than from code? Connect the [Recovr MCP server](https://retention.recovr.com/mcp).
129
305
 
130
- ## Developing this package
306
+ Changes by version are in [CHANGELOG.md](./CHANGELOG.md).
131
307
 
132
- The client is generated with [Hey API](https://heyapi.dev) from the backend's committed contract, `backend/src/hono/routes/public-v1/openapi.json`, into `src/generated/` (committed). After a contract change:
133
-
134
- ```sh
135
- cd backend && pnpm run openapi:public # routes -> openapi.json
136
- cd ../sdk && pnpm run generate # openapi.json -> src/generated
137
- pnpm run check-types && pnpm test && pnpm run build
138
- ```
139
-
140
- CI (`.github/workflows/public-api-contract.yml`) fails if either file is stale or the contract has a breaking change. Publishing is `.github/workflows/sdk-publish.yml`, run by pushing a `sdk-v<version>` tag.
308
+ Within v1, the API only adds things. Breaking changes go to a new version with notice.
@@ -1,2 +1,2 @@
1
1
  export { type Options, RecovrSdk } from './sdk.gen.js';
2
- export type { AddClientLabel, AddClientLabelData, AddClientLabelError, AddClientLabelErrors, AddClientLabelResponse, AddClientLabelResponses, AssignClient, AssignClientData, AssignClientError, AssignClientErrors, AssignClientResponse, AssignClientResponses, Client, ClientLabel, ClientOptions, ClientSuspension, CloseReminder, CloseReminderData, CloseReminderError, CloseReminderErrors, CloseReminderResponse, CloseReminderResponses, CreateCallInteraction, CreateClientInteractionData, CreateClientInteractionError, CreateClientInteractionErrors, CreateClientInteractionResponse, CreateClientInteractionResponses, CreateClientNoteData, CreateClientNoteError, CreateClientNoteErrors, CreateClientNoteResponse, CreateClientNoteResponses, CreateClientReminderData, CreateClientReminderError, CreateClientReminderErrors, CreateClientReminderResponse, CreateClientReminderResponses, CreateInPersonInteraction, CreateInteraction, CreateMessageInteraction, CreateNote, CreateReminder, DoNotContact, Error, FlagClient, FlagClientData, FlagClientError, FlagClientErrors, FlagClientResponse, FlagClientResponses, Form, FormAnswer, FormDetail, FormQuestion, FormSubmission, GetClientData, GetClientError, GetClientErrors, GetClientResponse, GetClientResponses, GetClientSuspensionData, GetClientSuspensionError, GetClientSuspensionErrors, GetClientSuspensionResponse, GetClientSuspensionResponses, GetFormData, GetFormError, GetFormErrors, GetFormResponse, GetFormResponses, GetFormSubmissionData, GetFormSubmissionError, GetFormSubmissionErrors, GetFormSubmissionResponse, GetFormSubmissionResponses, GetLocationData, GetLocationError, GetLocationErrors, GetLocationResponse, GetLocationResponses, GetMeData, GetMeError, GetMeErrors, GetMeResponse, GetMeResponses, Interaction, KnownClientStatus, ListClientFormSubmissionsData, ListClientFormSubmissionsError, ListClientFormSubmissionsErrors, ListClientFormSubmissionsResponse, ListClientFormSubmissionsResponses, ListClientInteractionsData, ListClientInteractionsError, ListClientInteractionsErrors, ListClientInteractionsResponse, ListClientInteractionsResponses, ListClientLabelsData, ListClientLabelsError, ListClientLabelsErrors, ListClientLabelsResponse, ListClientLabelsResponses, ListClientNotesData, ListClientNotesError, ListClientNotesErrors, ListClientNotesResponse, ListClientNotesResponses, ListClientRemindersData, ListClientRemindersError, ListClientRemindersErrors, ListClientRemindersResponse, ListClientRemindersResponses, ListClientsData, ListClientsError, ListClientsErrors, ListClientsResponse, ListClientsResponses, ListFormsData, ListFormsError, ListFormsErrors, ListFormsResponse, ListFormsResponses, ListFormSubmissionsData, ListFormSubmissionsError, ListFormSubmissionsErrors, ListFormSubmissionsResponse, ListFormSubmissionsResponses, ListTeamMembersData, ListTeamMembersError, ListTeamMembersErrors, ListTeamMembersResponse, ListTeamMembersResponses, Location, Note, PinNoteData, PinNoteError, PinNoteErrors, PinNoteResponse, PinNoteResponses, Reminder, RemoveClientLabelData, RemoveClientLabelError, RemoveClientLabelErrors, RemoveClientLabelResponse, RemoveClientLabelResponses, SetClientDoNotContact, SetClientDoNotContactData, SetClientDoNotContactError, SetClientDoNotContactErrors, SetClientDoNotContactResponse, SetClientDoNotContactResponses, SnoozeClient, SnoozeClientData, SnoozeClientError, SnoozeClientErrors, SnoozeClientResponse, SnoozeClientResponses, TeamMember, UnflagClientData, UnflagClientError, UnflagClientErrors, UnflagClientResponse, UnflagClientResponses, UnpinNoteData, UnpinNoteError, UnpinNoteErrors, UnpinNoteResponse, UnpinNoteResponses, UnsnoozeClientData, UnsnoozeClientError, UnsnoozeClientErrors, UnsnoozeClientResponse, UnsnoozeClientResponses, UpdateClientSuspension, UpdateClientSuspensionData, UpdateClientSuspensionError, UpdateClientSuspensionErrors, UpdateClientSuspensionResponse, UpdateClientSuspensionResponses, UpdateReminder, UpdateReminderData, UpdateReminderError, UpdateReminderErrors, UpdateReminderResponse, UpdateReminderResponses } from './types.gen.js';
2
+ export type { ActionsReport, Activity, AddClientLabel, AddClientLabelData, AddClientLabelError, AddClientLabelErrors, AddClientLabelResponse, AddClientLabelResponses, ApproveNextUpItem, ApproveNextUpItemData, ApproveNextUpItemError, ApproveNextUpItemErrors, ApproveNextUpItemResponse, ApproveNextUpItemResponses, ArchiveClientLabelData, ArchiveClientLabelError, ArchiveClientLabelErrors, ArchiveClientLabelResponse, ArchiveClientLabelResponses, ArchiveClientLeadsData, ArchiveClientLeadsError, ArchiveClientLeadsErrors, ArchiveClientLeadsResponse, ArchiveClientLeadsResponses, ArchiveConversationData, ArchiveConversationError, ArchiveConversationErrors, ArchiveConversationResponse, ArchiveConversationResponses, ArchiveLeadData, ArchiveLeadError, ArchiveLeadErrors, ArchiveLeadResponse, ArchiveLeadResponses, AssignClient, AssignClientData, AssignClientError, AssignClientErrors, AssignClientResponse, AssignClientResponses, AssignReminder, AssignReminderData, AssignReminderError, AssignReminderErrors, AssignReminderResponse, AssignReminderResponses, CancelTeamMemberInviteData, CancelTeamMemberInviteError, CancelTeamMemberInviteErrors, CancelTeamMemberInviteResponse, CancelTeamMemberInviteResponses, Channel, ClassAttendee, ClassTimetable, Client, ClientAttendance, ClientCustomFieldValue, ClientLabel, ClientLeadsArchive, ClientMilestones, ClientNextUpList, ClientOptions, ClientSuspension, CloseReminder, CloseReminderData, CloseReminderError, CloseReminderErrors, CloseReminderResponse, CloseReminderResponses, Conversation, CreateCallInteraction, CreateClientInteractionData, CreateClientInteractionError, CreateClientInteractionErrors, CreateClientInteractionResponse, CreateClientInteractionResponses, CreateClientLabel, CreateClientLabelData, CreateClientLabelError, CreateClientLabelErrors, CreateClientLabelResponse, CreateClientLabelResponses, CreateClientNoteData, CreateClientNoteError, CreateClientNoteErrors, CreateClientNoteResponse, CreateClientNoteResponses, CreateClientReminderData, CreateClientReminderError, CreateClientReminderErrors, CreateClientReminderResponse, CreateClientReminderResponses, CreateInPersonInteraction, CreateInteraction, CreateLead, CreateLeadData, CreateLeadError, CreateLeadErrors, CreateLeadResponse, CreateLeadResponses, CreateMessageInteraction, CreateNote, CreateReminder, CustomField, DoNotContact, Error, FlagClient, FlagClientData, FlagClientError, FlagClientErrors, FlagClientResponse, FlagClientResponses, Form, FormAnswer, FormDetail, FormQuestion, FormSubmission, GetActionsReportData, GetActionsReportError, GetActionsReportErrors, GetActionsReportResponse, GetActionsReportResponses, GetChannelData, GetChannelError, GetChannelErrors, GetChannelResponse, GetChannelResponses, GetClassTimetableData, GetClassTimetableError, GetClassTimetableErrors, GetClassTimetableResponse, GetClassTimetableResponses, GetClientAttendanceData, GetClientAttendanceError, GetClientAttendanceErrors, GetClientAttendanceResponse, GetClientAttendanceResponses, GetClientCustomFieldsData, GetClientCustomFieldsError, GetClientCustomFieldsErrors, GetClientCustomFieldsResponse, GetClientCustomFieldsResponses, GetClientData, GetClientError, GetClientErrors, GetClientMilestonesData, GetClientMilestonesError, GetClientMilestonesErrors, GetClientMilestonesResponse, GetClientMilestonesResponses, GetClientNextUpData, GetClientNextUpError, GetClientNextUpErrors, GetClientNextUpResponse, GetClientNextUpResponses, GetClientResponse, GetClientResponses, GetClientSuspensionData, GetClientSuspensionError, GetClientSuspensionErrors, GetClientSuspensionResponse, GetClientSuspensionResponses, GetClientTimelineData, GetClientTimelineError, GetClientTimelineErrors, GetClientTimelineResponse, GetClientTimelineResponses, GetConversationData, GetConversationError, GetConversationErrors, GetConversationResponse, GetConversationResponses, GetFormData, GetFormError, GetFormErrors, GetFormResponse, GetFormResponses, GetFormSubmissionData, GetFormSubmissionError, GetFormSubmissionErrors, GetFormSubmissionResponse, GetFormSubmissionResponses, GetLeadData, GetLeadError, GetLeadErrors, GetLeadResponse, GetLeadResponses, GetLocationData, GetLocationError, GetLocationErrors, GetLocationResponse, GetLocationResponses, GetMeData, GetMeError, GetMeErrors, GetMeResponse, GetMeResponses, GetReminderData, GetReminderError, GetReminderErrors, GetReminderResponse, GetReminderResponses, GetSummaryData, GetSummaryError, GetSummaryErrors, GetSummaryResponse, GetSummaryResponses, IdempotencyKey, IdempotencyKey2, Interaction, InviteTeamMember, InviteTeamMemberData, InviteTeamMemberError, InviteTeamMemberErrors, InviteTeamMemberResponse, InviteTeamMemberResponses, KnownAttendanceTrend, KnownClientStatus, KnownNextUpApprovalType, KnownNextUpItemKind, KnownNextUpOperation, Lead, LeadResult, LeadSources, LinkConversationToClient, LinkConversationToClientData, LinkConversationToClientError, LinkConversationToClientErrors, LinkConversationToClientResponse, LinkConversationToClientResponses, ListActivityData, ListActivityError, ListActivityErrors, ListActivityResponse, ListActivityResponses, ListChannelsData, ListChannelsError, ListChannelsErrors, ListChannelsResponse, ListChannelsResponses, ListClientFormSubmissionsData, ListClientFormSubmissionsError, ListClientFormSubmissionsErrors, ListClientFormSubmissionsResponse, ListClientFormSubmissionsResponses, ListClientInteractionsData, ListClientInteractionsError, ListClientInteractionsErrors, ListClientInteractionsResponse, ListClientInteractionsResponses, ListClientLabelsData, ListClientLabelsError, ListClientLabelsErrors, ListClientLabelsResponse, ListClientLabelsResponses, ListClientNotesData, ListClientNotesError, ListClientNotesErrors, ListClientNotesResponse, ListClientNotesResponses, ListClientRemindersData, ListClientRemindersError, ListClientRemindersErrors, ListClientRemindersResponse, ListClientRemindersResponses, ListClientsData, ListClientsError, ListClientsErrors, ListClientSessionsData, ListClientSessionsError, ListClientSessionsErrors, ListClientSessionsResponse, ListClientSessionsResponses, ListClientsResponse, ListClientsResponses, ListConversationMessagesData, ListConversationMessagesError, ListConversationMessagesErrors, ListConversationMessagesResponse, ListConversationMessagesResponses, ListConversationsData, ListConversationsError, ListConversationsErrors, ListConversationsResponse, ListConversationsResponses, ListCustomFieldsData, ListCustomFieldsError, ListCustomFieldsErrors, ListCustomFieldsResponse, ListCustomFieldsResponses, ListFormsData, ListFormsError, ListFormsErrors, ListFormsResponse, ListFormsResponses, ListFormSubmissionsData, ListFormSubmissionsError, ListFormSubmissionsErrors, ListFormSubmissionsResponse, ListFormSubmissionsResponses, ListLeadsData, ListLeadsError, ListLeadsErrors, ListLeadSourcesData, ListLeadSourcesError, ListLeadSourcesErrors, ListLeadSourcesResponse, ListLeadSourcesResponses, ListLeadsResponse, ListLeadsResponses, ListNextUpData, ListNextUpError, ListNextUpErrors, ListNextUpResponse, ListNextUpResponses, ListPossibleDuplicatesData, ListPossibleDuplicatesError, ListPossibleDuplicatesErrors, ListPossibleDuplicatesResponse, ListPossibleDuplicatesResponses, ListRemindersData, ListRemindersError, ListRemindersErrors, ListRemindersResponse, ListRemindersResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, ListTeamMembersData, ListTeamMembersError, ListTeamMembersErrors, ListTeamMembersResponse, ListTeamMembersResponses, Location, LocationClass, MarkConversationNoReplyNeededData, MarkConversationNoReplyNeededError, MarkConversationNoReplyNeededErrors, MarkConversationNoReplyNeededResponse, MarkConversationNoReplyNeededResponses, MarkConversationReadData, MarkConversationReadError, MarkConversationReadErrors, MarkConversationReadResponse, MarkConversationReadResponses, MarkConversationUnreadData, MarkConversationUnreadError, MarkConversationUnreadErrors, MarkConversationUnreadResponse, MarkConversationUnreadResponses, MarkNextUpItemDone, MarkNextUpItemDoneData, MarkNextUpItemDoneError, MarkNextUpItemDoneErrors, MarkNextUpItemDoneResponse, MarkNextUpItemDoneResponses, MarkNoReplyNeeded, MarkNotDuplicateData, MarkNotDuplicateError, MarkNotDuplicateErrors, MarkNotDuplicateResponse, MarkNotDuplicateResponses, MembersBreakdown, Message, MilestoneReached, NewMessage, NextUpAction, NextUpApproval, NextUpBatch, NextUpDecision, NextUpItem, NextUpList, NextUpProposedAction, NextUpReminder, Note, OpenNextUpBatch, OpenNextUpBatchData, OpenNextUpBatchError, OpenNextUpBatchErrors, OpenNextUpBatchResponse, OpenNextUpBatchResponses, PinNoteData, PinNoteError, PinNoteErrors, PinNoteResponse, PinNoteResponses, PossibleDuplicate, RecheckNextUpItemData, RecheckNextUpItemError, RecheckNextUpItemErrors, RecheckNextUpItemResponse, RecheckNextUpItemResponses, RejectNextUpItem, RejectNextUpItemData, RejectNextUpItemError, RejectNextUpItemErrors, RejectNextUpItemResponse, RejectNextUpItemResponses, Reminder, RemoveClientLabelData, RemoveClientLabelError, RemoveClientLabelErrors, RemoveClientLabelResponse, RemoveClientLabelResponses, RemoveTeamMemberData, RemoveTeamMemberError, RemoveTeamMemberErrors, RemoveTeamMemberResponse, RemoveTeamMemberResponses, ReplyToConversation, ReplyToConversationData, ReplyToConversationError, ReplyToConversationErrors, ReplyToConversationResponse, ReplyToConversationResponses, ResendTeamMemberInviteData, ResendTeamMemberInviteError, ResendTeamMemberInviteErrors, ResendTeamMemberInviteResponse, ResendTeamMemberInviteResponses, RestoreClientLabelData, RestoreClientLabelError, RestoreClientLabelErrors, RestoreClientLabelResponse, RestoreClientLabelResponses, SendClientMessage, SendClientMessageData, SendClientMessageError, SendClientMessageErrors, SendClientMessageResponse, SendClientMessageResponses, SentMessage, Session, SessionDay, SessionList, SessionReport, SessionStatusCounts, SetClientCustomFieldData, SetClientCustomFieldError, SetClientCustomFieldErrors, SetClientCustomFieldResponse, SetClientCustomFieldResponses, SetClientCustomFieldValue, SetClientDoNotContact, SetClientDoNotContactData, SetClientDoNotContactError, SetClientDoNotContactErrors, SetClientDoNotContactResponse, SetClientDoNotContactResponses, SettleNextUpItem, SettleNextUpItemData, SettleNextUpItemError, SettleNextUpItemErrors, SettleNextUpItemResponse, SettleNextUpItemResponses, SkipNextUpItemData, SkipNextUpItemError, SkipNextUpItemErrors, SkipNextUpItemResponse, SkipNextUpItemResponses, SnoozeClient, SnoozeClientData, SnoozeClientError, SnoozeClientErrors, SnoozeClientResponse, SnoozeClientResponses, SnoozeNextUpItem, SnoozeNextUpItemData, SnoozeNextUpItemError, SnoozeNextUpItemErrors, SnoozeNextUpItemResponse, SnoozeNextUpItemResponses, Summary, TeamMember, TeamMemberRemoval, TimelineEntry, TimetableClass, UnarchiveClientLeadsData, UnarchiveClientLeadsError, UnarchiveClientLeadsErrors, UnarchiveClientLeadsResponse, UnarchiveClientLeadsResponses, UnarchiveConversationData, UnarchiveConversationError, UnarchiveConversationErrors, UnarchiveConversationResponse, UnarchiveConversationResponses, UnarchiveLeadData, UnarchiveLeadError, UnarchiveLeadErrors, UnarchiveLeadResponse, UnarchiveLeadResponses, UndoConversationNoReplyNeededData, UndoConversationNoReplyNeededError, UndoConversationNoReplyNeededErrors, UndoConversationNoReplyNeededResponse, UndoConversationNoReplyNeededResponses, UnflagClientData, UnflagClientError, UnflagClientErrors, UnflagClientResponse, UnflagClientResponses, UnpinNoteData, UnpinNoteError, UnpinNoteErrors, UnpinNoteResponse, UnpinNoteResponses, UnsnoozeClientData, UnsnoozeClientError, UnsnoozeClientErrors, UnsnoozeClientResponse, UnsnoozeClientResponses, UpdateClientLabel, UpdateClientLabelData, UpdateClientLabelError, UpdateClientLabelErrors, UpdateClientLabelResponse, UpdateClientLabelResponses, UpdateClientSuspension, UpdateClientSuspensionData, UpdateClientSuspensionError, UpdateClientSuspensionErrors, UpdateClientSuspensionResponse, UpdateClientSuspensionResponses, UpdateReminder, UpdateReminderData, UpdateReminderError, UpdateReminderErrors, UpdateReminderResponse, UpdateReminderResponses, UpdateTeamMember, UpdateTeamMemberData, UpdateTeamMemberError, UpdateTeamMemberErrors, UpdateTeamMemberResponse, UpdateTeamMemberResponses } from './types.gen.js';