@roarkanalytics/sdk 7.9.0 → 8.0.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 +16 -0
- package/client.d.mts +20 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -5
- package/client.d.ts.map +1 -1
- package/client.js +18 -3
- package/client.js.map +1 -1
- package/client.mjs +18 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-connection.d.mts +1952 -0
- package/resources/agent-connection.d.mts.map +1 -0
- package/resources/agent-connection.d.ts +1952 -0
- package/resources/agent-connection.d.ts.map +1 -0
- package/resources/agent-connection.js +173 -0
- package/resources/agent-connection.js.map +1 -0
- package/resources/agent-connection.mjs +169 -0
- package/resources/agent-connection.mjs.map +1 -0
- package/resources/agent-conversation.d.mts +110 -0
- package/resources/agent-conversation.d.mts.map +1 -0
- package/resources/agent-conversation.d.ts +110 -0
- package/resources/agent-conversation.d.ts.map +1 -0
- package/resources/agent-conversation.js +41 -0
- package/resources/agent-conversation.js.map +1 -0
- package/resources/agent-conversation.mjs +37 -0
- package/resources/agent-conversation.mjs.map +1 -0
- package/resources/agent-draft.d.mts +101 -35
- package/resources/agent-draft.d.mts.map +1 -1
- package/resources/agent-draft.d.ts +101 -35
- package/resources/agent-draft.d.ts.map +1 -1
- package/resources/agent-endpoint.d.mts +4 -4
- package/resources/agent-endpoint.d.mts.map +1 -1
- package/resources/agent-endpoint.d.ts +4 -4
- package/resources/agent-endpoint.d.ts.map +1 -1
- package/resources/agent-setup.d.mts +1057 -0
- package/resources/agent-setup.d.mts.map +1 -0
- package/resources/agent-setup.d.ts +1057 -0
- package/resources/agent-setup.d.ts.map +1 -0
- package/resources/agent-setup.js +113 -0
- package/resources/agent-setup.js.map +1 -0
- package/resources/agent-setup.mjs +109 -0
- package/resources/agent-setup.mjs.map +1 -0
- package/resources/agent-version.d.mts +57 -18
- package/resources/agent-version.d.mts.map +1 -1
- package/resources/agent-version.d.ts +57 -18
- package/resources/agent-version.d.ts.map +1 -1
- package/resources/agent.d.mts +263 -4
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +263 -4
- package/resources/agent.d.ts.map +1 -1
- package/resources/calendar-connection.d.mts +834 -56
- package/resources/calendar-connection.d.mts.map +1 -1
- package/resources/calendar-connection.d.ts +834 -56
- package/resources/calendar-connection.d.ts.map +1 -1
- package/resources/calendar-connection.js +127 -8
- package/resources/calendar-connection.js.map +1 -1
- package/resources/calendar-connection.mjs +127 -8
- package/resources/calendar-connection.mjs.map +1 -1
- package/resources/call.d.mts +2 -2
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +2 -2
- package/resources/call.d.ts.map +1 -1
- package/resources/config.d.mts +78 -36
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +78 -36
- package/resources/config.d.ts.map +1 -1
- package/resources/conversation.d.mts +156 -0
- package/resources/conversation.d.mts.map +1 -0
- package/resources/conversation.d.ts +156 -0
- package/resources/conversation.d.ts.map +1 -0
- package/resources/conversation.js +40 -0
- package/resources/conversation.js.map +1 -0
- package/resources/conversation.mjs +36 -0
- package/resources/conversation.mjs.map +1 -0
- package/resources/customer-flow-edge-case.d.mts +637 -40
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +637 -40
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +2583 -156
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +2583 -156
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/{customer-profile.d.mts → customer.d.mts} +287 -92
- package/resources/customer.d.mts.map +1 -0
- package/resources/{customer-profile.d.ts → customer.d.ts} +287 -92
- package/resources/customer.d.ts.map +1 -0
- package/resources/customer.js +180 -0
- package/resources/customer.js.map +1 -0
- package/resources/customer.mjs +176 -0
- package/resources/customer.mjs.map +1 -0
- package/resources/index.d.mts +7 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-server.d.mts +588 -0
- package/resources/mcp-server.d.mts.map +1 -0
- package/resources/mcp-server.d.ts +588 -0
- package/resources/mcp-server.d.ts.map +1 -0
- package/resources/mcp-server.js +109 -0
- package/resources/mcp-server.js.map +1 -0
- package/resources/mcp-server.mjs +105 -0
- package/resources/mcp-server.mjs.map +1 -0
- package/resources/metric-policy.d.mts +5 -4
- package/resources/metric-policy.d.mts.map +1 -1
- package/resources/metric-policy.d.ts +5 -4
- package/resources/metric-policy.d.ts.map +1 -1
- package/resources/metric-policy.js +1 -1
- package/resources/metric-policy.mjs +1 -1
- package/resources/metric-variant.d.mts +4 -1
- package/resources/metric-variant.d.mts.map +1 -1
- package/resources/metric-variant.d.ts +4 -1
- package/resources/metric-variant.d.ts.map +1 -1
- package/resources/metric.d.mts +7 -2
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +7 -2
- package/resources/metric.d.ts.map +1 -1
- package/resources/simulation-environment.d.mts +366 -0
- package/resources/simulation-environment.d.mts.map +1 -1
- package/resources/simulation-environment.d.ts +366 -0
- package/resources/simulation-environment.d.ts.map +1 -1
- package/resources/simulation-job.d.mts +12 -8
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +12 -8
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-persona.d.mts +25 -15
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +25 -15
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +32 -6
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +32 -6
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan.d.mts +126 -13
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +126 -13
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-template.d.mts +1 -1
- package/resources/simulation-template.d.mts.map +1 -1
- package/resources/simulation-template.d.ts +1 -1
- package/resources/simulation-template.d.ts.map +1 -1
- package/resources/simulation.d.mts +35 -3
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +35 -3
- package/resources/simulation.d.ts.map +1 -1
- package/resources/tool.d.mts +565 -6
- package/resources/tool.d.mts.map +1 -1
- package/resources/tool.d.ts +565 -6
- package/resources/tool.d.ts.map +1 -1
- package/resources/tool.js +9 -6
- package/resources/tool.js.map +1 -1
- package/resources/tool.mjs +9 -6
- package/resources/tool.mjs.map +1 -1
- package/resources/usage.d.mts +1 -1
- package/resources/usage.d.mts.map +1 -1
- package/resources/usage.d.ts +1 -1
- package/resources/usage.d.ts.map +1 -1
- package/resources/webhook.d.mts +4 -4
- package/resources/webhook.d.mts.map +1 -1
- package/resources/webhook.d.ts +4 -4
- package/resources/webhook.d.ts.map +1 -1
- package/src/client.ts +197 -34
- package/src/resources/agent-connection.ts +2523 -0
- package/src/resources/agent-conversation.ts +139 -0
- package/src/resources/agent-draft.ts +239 -35
- package/src/resources/agent-endpoint.ts +8 -4
- package/src/resources/agent-setup.ts +1685 -0
- package/src/resources/agent-version.ts +126 -18
- package/src/resources/agent.ts +506 -4
- package/src/resources/calendar-connection.ts +1035 -63
- package/src/resources/call.ts +12 -2
- package/src/resources/config.ts +198 -36
- package/src/resources/conversation.ts +205 -0
- package/src/resources/customer-flow-edge-case.ts +709 -40
- package/src/resources/customer-flow.ts +3141 -156
- package/src/resources/{customer-profile.ts → customer.ts} +406 -294
- package/src/resources/index.ts +91 -17
- package/src/resources/mcp-server.ts +786 -0
- package/src/resources/metric-policy.ts +5 -4
- package/src/resources/metric-variant.ts +4 -1
- package/src/resources/metric.ts +7 -2
- package/src/resources/simulation-environment.ts +414 -0
- package/src/resources/simulation-job.ts +14 -8
- package/src/resources/simulation-persona.ts +25 -15
- package/src/resources/simulation-run-plan-job.ts +47 -6
- package/src/resources/simulation-run-plan.ts +140 -0
- package/src/resources/simulation-template.ts +1 -0
- package/src/resources/simulation.ts +39 -0
- package/src/resources/tool.ts +697 -6
- package/src/resources/usage.ts +6 -1
- package/src/resources/webhook.ts +8 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/customer-profile.d.mts.map +0 -1
- package/resources/customer-profile.d.ts.map +0 -1
- package/resources/customer-profile.js +0 -141
- package/resources/customer-profile.js.map +0 -1
- package/resources/customer-profile.mjs +0 -137
- package/resources/customer-profile.mjs.map +0 -1
|
@@ -74,6 +74,43 @@ export declare class CalendarConnection extends APIResource {
|
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
76
|
check(connectionID: string, options?: RequestOptions): APIPromise<CalendarConnectionCheckResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Only for a connection whose `capabilities.roarkOwnsBookingPolicy` is true. A
|
|
79
|
+
* calendar with no scheduling of its own has nothing an agent can be pointed at,
|
|
80
|
+
* so the thing a calendar tool books into is created here: the calendar, how long
|
|
81
|
+
* an appointment runs, and the hours it is offered in. The policy and the hours
|
|
82
|
+
* are written together, because a target with no hours offers nothing. Refused if
|
|
83
|
+
* the calendar is one the account can only read.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const response =
|
|
88
|
+
* await client.calendarConnection.createTarget(
|
|
89
|
+
* 'connectionId',
|
|
90
|
+
* {
|
|
91
|
+
* calendarId: 'clinic@example.com',
|
|
92
|
+
* durationMinutes: 30,
|
|
93
|
+
* name: 'Front desk',
|
|
94
|
+
* },
|
|
95
|
+
* );
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
createTarget(connectionID: string, body: CalendarConnectionCreateTargetParams, options?: RequestOptions): APIPromise<CalendarConnectionCreateTargetResponse>;
|
|
99
|
+
/**
|
|
100
|
+
* Refused while a calendar tool still books into it, naming the tools. A dangling
|
|
101
|
+
* binding would otherwise be found by whoever next tried to ship the agent, who is
|
|
102
|
+
* not the person who deleted the target. Appointments already recorded against it
|
|
103
|
+
* are kept.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* const response =
|
|
108
|
+
* await client.calendarConnection.deleteTarget('targetId', {
|
|
109
|
+
* connectionId: 'connectionId',
|
|
110
|
+
* });
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
deleteTarget(targetID: string, params: CalendarConnectionDeleteTargetParams, options?: RequestOptions): APIPromise<CalendarConnectionDeleteTargetResponse>;
|
|
77
114
|
/**
|
|
78
115
|
* Returns one calendar connection. The stored credential is never included.
|
|
79
116
|
*
|
|
@@ -102,6 +139,22 @@ export declare class CalendarConnection extends APIResource {
|
|
|
102
139
|
* ```
|
|
103
140
|
*/
|
|
104
141
|
getTarget(targetID: string, params: CalendarConnectionGetTargetParams, options?: RequestOptions): APIPromise<CalendarConnectionGetTargetResponse>;
|
|
142
|
+
/**
|
|
143
|
+
* Only for a connection whose `capabilities.roarkOwnsBookingPolicy` is true: on a
|
|
144
|
+
* scheduling system the bookable things already exist and `GET /targets` returns
|
|
145
|
+
* them. Calendars the account can only read are left out rather than listed and
|
|
146
|
+
* refused: one would answer availability perfectly well and then fail the booking,
|
|
147
|
+
* mid-call, with a caller on the line.
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* ```ts
|
|
151
|
+
* const response =
|
|
152
|
+
* await client.calendarConnection.listCalendars(
|
|
153
|
+
* 'connectionId',
|
|
154
|
+
* );
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
listCalendars(connectionID: string, options?: RequestOptions): APIPromise<CalendarConnectionListCalendarsResponse>;
|
|
105
158
|
/**
|
|
106
159
|
* What an agent can be pointed at on this connection: Cal.com event types today,
|
|
107
160
|
* Google calendars when that lands. Read live from the provider, so an event type
|
|
@@ -118,6 +171,55 @@ export declare class CalendarConnection extends APIResource {
|
|
|
118
171
|
* ```
|
|
119
172
|
*/
|
|
120
173
|
listTargets(connectionID: string, options?: RequestOptions): APIPromise<CalendarConnectionListTargetsResponse>;
|
|
174
|
+
/**
|
|
175
|
+
* Returns a URL to open in a browser. Calendly has no credential a request body
|
|
176
|
+
* can carry, so connecting one is two steps: ask for this URL, let the customer
|
|
177
|
+
* consent, and Roark finishes the rest server-side (it exchanges the code,
|
|
178
|
+
* verifies the credential, reads the account’s own timezone when none was given,
|
|
179
|
+
* and stores the connection). Nothing is created until the customer consents, and
|
|
180
|
+
* a link that is not used expires. Read the result with
|
|
181
|
+
* `GET /v1/connections/calendar?provider=CALENDLY`.
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* ```ts
|
|
185
|
+
* const response =
|
|
186
|
+
* await client.calendarConnection.startCalendlyOauth();
|
|
187
|
+
* ```
|
|
188
|
+
*/
|
|
189
|
+
startCalendlyOauth(body?: CalendarConnectionStartCalendlyOauthParams | null | undefined, options?: RequestOptions): APIPromise<CalendarConnectionStartCalendlyOauthResponse>;
|
|
190
|
+
/**
|
|
191
|
+
* Returns a URL to open in a browser. Google has no credential a request body can
|
|
192
|
+
* carry, so connecting one is two steps: ask for this URL, let the customer
|
|
193
|
+
* consent, and Roark finishes the rest server-side (it exchanges the code,
|
|
194
|
+
* verifies that both calendar permissions were granted, reads the account’s own
|
|
195
|
+
* timezone when none was given, and stores the connection). Nothing is created
|
|
196
|
+
* until the customer consents, and a link that is not used expires. Read the
|
|
197
|
+
* result with `GET /v1/connections/calendar?provider=GOOGLE`.
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* ```ts
|
|
201
|
+
* const response =
|
|
202
|
+
* await client.calendarConnection.startGoogleOauth();
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
startGoogleOauth(body?: CalendarConnectionStartGoogleOauthParams | null | undefined, options?: RequestOptions): APIPromise<CalendarConnectionStartGoogleOauthResponse>;
|
|
206
|
+
/**
|
|
207
|
+
* Changes what agents ALREADY PUBLISHED against this target book, with no new tool
|
|
208
|
+
* version, the same thing editing a Cal.com event type on cal.com does. `hours`
|
|
209
|
+
* replaces the whole week when present, because a rota is described as a week and
|
|
210
|
+
* a partial update of one window has no meaning anybody would expect. The calendar
|
|
211
|
+
* cannot be changed: it is the target’s identity for the booking ledger, so moving
|
|
212
|
+
* it would orphan every appointment made on the old one.
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* ```ts
|
|
216
|
+
* const response =
|
|
217
|
+
* await client.calendarConnection.updateTarget('targetId', {
|
|
218
|
+
* connectionId: 'connectionId',
|
|
219
|
+
* });
|
|
220
|
+
* ```
|
|
221
|
+
*/
|
|
222
|
+
updateTarget(targetID: string, params: CalendarConnectionUpdateTargetParams, options?: RequestOptions): APIPromise<CalendarConnectionUpdateTargetResponse>;
|
|
121
223
|
}
|
|
122
224
|
export interface CalendarConnectionCreateResponse {
|
|
123
225
|
/**
|
|
@@ -162,9 +264,10 @@ export declare namespace CalendarConnectionCreateResponse {
|
|
|
162
264
|
*/
|
|
163
265
|
lastCheckedAt: string | null;
|
|
164
266
|
/**
|
|
165
|
-
* Who holds the calendar. CAL_COM is
|
|
166
|
-
*
|
|
167
|
-
*
|
|
267
|
+
* Who holds the calendar. CAL_COM is connected with an API key; GOOGLE and
|
|
268
|
+
* CALENDLY are connected by consent, through
|
|
269
|
+
* `POST /v1/connections/calendar/google/authorize-url` and
|
|
270
|
+
* `POST /v1/connections/calendar/calendly/authorize-url`.
|
|
168
271
|
*/
|
|
169
272
|
provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY';
|
|
170
273
|
/**
|
|
@@ -199,7 +302,9 @@ export declare namespace CalendarConnectionCreateResponse {
|
|
|
199
302
|
*/
|
|
200
303
|
interface Capabilities {
|
|
201
304
|
/**
|
|
202
|
-
* How
|
|
305
|
+
* How a credential is obtained, which is the whole of what connecting looks like:
|
|
306
|
+
* API_KEY takes a key in the create body, OAUTH sends the customer to the provider
|
|
307
|
+
* and Roark stores the result itself.
|
|
203
308
|
*/
|
|
204
309
|
auth: 'API_KEY' | 'OAUTH';
|
|
205
310
|
/**
|
|
@@ -220,9 +325,11 @@ export declare namespace CalendarConnectionCreateResponse {
|
|
|
220
325
|
*/
|
|
221
326
|
requiresAttendeeEmail: boolean;
|
|
222
327
|
/**
|
|
223
|
-
* True for a
|
|
224
|
-
*
|
|
225
|
-
*
|
|
328
|
+
* True for a calendar that exposes only events and free/busy. Roark then owns the
|
|
329
|
+
* bookable hours, duration, buffers, lead time and horizon, because the provider
|
|
330
|
+
* has no notion of them. A tool on one of these is pointed at a bookable target
|
|
331
|
+
* you create through this API, rather than at something that already exists on the
|
|
332
|
+
* account. Read this instead of matching on the provider name.
|
|
226
333
|
*/
|
|
227
334
|
roarkOwnsBookingPolicy: boolean;
|
|
228
335
|
/**
|
|
@@ -277,9 +384,10 @@ export declare namespace CalendarConnectionUpdateResponse {
|
|
|
277
384
|
*/
|
|
278
385
|
lastCheckedAt: string | null;
|
|
279
386
|
/**
|
|
280
|
-
* Who holds the calendar. CAL_COM is
|
|
281
|
-
*
|
|
282
|
-
*
|
|
387
|
+
* Who holds the calendar. CAL_COM is connected with an API key; GOOGLE and
|
|
388
|
+
* CALENDLY are connected by consent, through
|
|
389
|
+
* `POST /v1/connections/calendar/google/authorize-url` and
|
|
390
|
+
* `POST /v1/connections/calendar/calendly/authorize-url`.
|
|
283
391
|
*/
|
|
284
392
|
provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY';
|
|
285
393
|
/**
|
|
@@ -314,7 +422,9 @@ export declare namespace CalendarConnectionUpdateResponse {
|
|
|
314
422
|
*/
|
|
315
423
|
interface Capabilities {
|
|
316
424
|
/**
|
|
317
|
-
* How
|
|
425
|
+
* How a credential is obtained, which is the whole of what connecting looks like:
|
|
426
|
+
* API_KEY takes a key in the create body, OAUTH sends the customer to the provider
|
|
427
|
+
* and Roark stores the result itself.
|
|
318
428
|
*/
|
|
319
429
|
auth: 'API_KEY' | 'OAUTH';
|
|
320
430
|
/**
|
|
@@ -335,9 +445,11 @@ export declare namespace CalendarConnectionUpdateResponse {
|
|
|
335
445
|
*/
|
|
336
446
|
requiresAttendeeEmail: boolean;
|
|
337
447
|
/**
|
|
338
|
-
* True for a
|
|
339
|
-
*
|
|
340
|
-
*
|
|
448
|
+
* True for a calendar that exposes only events and free/busy. Roark then owns the
|
|
449
|
+
* bookable hours, duration, buffers, lead time and horizon, because the provider
|
|
450
|
+
* has no notion of them. A tool on one of these is pointed at a bookable target
|
|
451
|
+
* you create through this API, rather than at something that already exists on the
|
|
452
|
+
* account. Read this instead of matching on the provider name.
|
|
341
453
|
*/
|
|
342
454
|
roarkOwnsBookingPolicy: boolean;
|
|
343
455
|
/**
|
|
@@ -389,9 +501,10 @@ export declare namespace CalendarConnectionListResponse {
|
|
|
389
501
|
*/
|
|
390
502
|
lastCheckedAt: string | null;
|
|
391
503
|
/**
|
|
392
|
-
* Who holds the calendar. CAL_COM is
|
|
393
|
-
*
|
|
394
|
-
*
|
|
504
|
+
* Who holds the calendar. CAL_COM is connected with an API key; GOOGLE and
|
|
505
|
+
* CALENDLY are connected by consent, through
|
|
506
|
+
* `POST /v1/connections/calendar/google/authorize-url` and
|
|
507
|
+
* `POST /v1/connections/calendar/calendly/authorize-url`.
|
|
395
508
|
*/
|
|
396
509
|
provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY';
|
|
397
510
|
/**
|
|
@@ -426,7 +539,9 @@ export declare namespace CalendarConnectionListResponse {
|
|
|
426
539
|
*/
|
|
427
540
|
interface Capabilities {
|
|
428
541
|
/**
|
|
429
|
-
* How
|
|
542
|
+
* How a credential is obtained, which is the whole of what connecting looks like:
|
|
543
|
+
* API_KEY takes a key in the create body, OAUTH sends the customer to the provider
|
|
544
|
+
* and Roark stores the result itself.
|
|
430
545
|
*/
|
|
431
546
|
auth: 'API_KEY' | 'OAUTH';
|
|
432
547
|
/**
|
|
@@ -447,9 +562,11 @@ export declare namespace CalendarConnectionListResponse {
|
|
|
447
562
|
*/
|
|
448
563
|
requiresAttendeeEmail: boolean;
|
|
449
564
|
/**
|
|
450
|
-
* True for a
|
|
451
|
-
*
|
|
452
|
-
*
|
|
565
|
+
* True for a calendar that exposes only events and free/busy. Roark then owns the
|
|
566
|
+
* bookable hours, duration, buffers, lead time and horizon, because the provider
|
|
567
|
+
* has no notion of them. A tool on one of these is pointed at a bookable target
|
|
568
|
+
* you create through this API, rather than at something that already exists on the
|
|
569
|
+
* account. Read this instead of matching on the provider name.
|
|
453
570
|
*/
|
|
454
571
|
roarkOwnsBookingPolicy: boolean;
|
|
455
572
|
/**
|
|
@@ -533,9 +650,10 @@ export declare namespace CalendarConnectionCheckResponse {
|
|
|
533
650
|
*/
|
|
534
651
|
lastCheckedAt: string | null;
|
|
535
652
|
/**
|
|
536
|
-
* Who holds the calendar. CAL_COM is
|
|
537
|
-
*
|
|
538
|
-
*
|
|
653
|
+
* Who holds the calendar. CAL_COM is connected with an API key; GOOGLE and
|
|
654
|
+
* CALENDLY are connected by consent, through
|
|
655
|
+
* `POST /v1/connections/calendar/google/authorize-url` and
|
|
656
|
+
* `POST /v1/connections/calendar/calendly/authorize-url`.
|
|
539
657
|
*/
|
|
540
658
|
provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY';
|
|
541
659
|
/**
|
|
@@ -570,7 +688,9 @@ export declare namespace CalendarConnectionCheckResponse {
|
|
|
570
688
|
*/
|
|
571
689
|
interface Capabilities {
|
|
572
690
|
/**
|
|
573
|
-
* How
|
|
691
|
+
* How a credential is obtained, which is the whole of what connecting looks like:
|
|
692
|
+
* API_KEY takes a key in the create body, OAUTH sends the customer to the provider
|
|
693
|
+
* and Roark stores the result itself.
|
|
574
694
|
*/
|
|
575
695
|
auth: 'API_KEY' | 'OAUTH';
|
|
576
696
|
/**
|
|
@@ -591,9 +711,11 @@ export declare namespace CalendarConnectionCheckResponse {
|
|
|
591
711
|
*/
|
|
592
712
|
requiresAttendeeEmail: boolean;
|
|
593
713
|
/**
|
|
594
|
-
* True for a
|
|
595
|
-
*
|
|
596
|
-
*
|
|
714
|
+
* True for a calendar that exposes only events and free/busy. Roark then owns the
|
|
715
|
+
* bookable hours, duration, buffers, lead time and horizon, because the provider
|
|
716
|
+
* has no notion of them. A tool on one of these is pointed at a bookable target
|
|
717
|
+
* you create through this API, rather than at something that already exists on the
|
|
718
|
+
* account. Read this instead of matching on the provider name.
|
|
597
719
|
*/
|
|
598
720
|
roarkOwnsBookingPolicy: boolean;
|
|
599
721
|
/**
|
|
@@ -605,6 +727,140 @@ export declare namespace CalendarConnectionCheckResponse {
|
|
|
605
727
|
}
|
|
606
728
|
}
|
|
607
729
|
}
|
|
730
|
+
export interface CalendarConnectionCreateTargetResponse {
|
|
731
|
+
/**
|
|
732
|
+
* Something on a connected account an agent can be pointed at: a Cal.com event
|
|
733
|
+
* type, or a bookable target on a calendar whose booking policy Roark owns.
|
|
734
|
+
*/
|
|
735
|
+
data: CalendarConnectionCreateTargetResponse.Data;
|
|
736
|
+
}
|
|
737
|
+
export declare namespace CalendarConnectionCreateTargetResponse {
|
|
738
|
+
/**
|
|
739
|
+
* Something on a connected account an agent can be pointed at: a Cal.com event
|
|
740
|
+
* type, or a bookable target on a calendar whose booking policy Roark owns.
|
|
741
|
+
*/
|
|
742
|
+
interface Data {
|
|
743
|
+
/**
|
|
744
|
+
* Identifier within this connection. Pass it back to read one target in detail.
|
|
745
|
+
*/
|
|
746
|
+
id: string;
|
|
747
|
+
/**
|
|
748
|
+
* How long an appointment runs, when the provider fixes one length.
|
|
749
|
+
*/
|
|
750
|
+
durationMinutes: number | null;
|
|
751
|
+
/**
|
|
752
|
+
* Other lengths this target offers, when it offers a choice. A calendar tool pins
|
|
753
|
+
* one of these with `durationMinutes`; an empty list means the length is not the
|
|
754
|
+
* customer’s to choose.
|
|
755
|
+
*/
|
|
756
|
+
durationOptions: Array<number>;
|
|
757
|
+
/**
|
|
758
|
+
* Hidden on the provider’s own booking page. Still bookable through this API.
|
|
759
|
+
*/
|
|
760
|
+
isHidden: boolean;
|
|
761
|
+
/**
|
|
762
|
+
* What the customer called it on the provider.
|
|
763
|
+
*/
|
|
764
|
+
label: string;
|
|
765
|
+
/**
|
|
766
|
+
* The booking policy Roark applies, for a calendar with no scheduling of its own.
|
|
767
|
+
* Null on a scheduling system, which owns its own rules, so this one field says
|
|
768
|
+
* which kind of provider you are looking at without matching on the provider name.
|
|
769
|
+
*/
|
|
770
|
+
policy: Data.Policy | null;
|
|
771
|
+
/**
|
|
772
|
+
* A human has to accept before it is an appointment. An agent booking one of these
|
|
773
|
+
* must say "requested", never "confirmed".
|
|
774
|
+
*/
|
|
775
|
+
requiresConfirmation: boolean;
|
|
776
|
+
/**
|
|
777
|
+
* Ready to put on a calendar tool, so nothing has to assemble one by hand.
|
|
778
|
+
*/
|
|
779
|
+
target: Data.UnionMember0 | Data.UnionMember1 | Data.UnionMember2;
|
|
780
|
+
}
|
|
781
|
+
namespace Data {
|
|
782
|
+
/**
|
|
783
|
+
* The booking policy Roark applies, for a calendar with no scheduling of its own.
|
|
784
|
+
* Null on a scheduling system, which owns its own rules, so this one field says
|
|
785
|
+
* which kind of provider you are looking at without matching on the provider name.
|
|
786
|
+
*/
|
|
787
|
+
interface Policy {
|
|
788
|
+
/**
|
|
789
|
+
* Whether an all-day event closes the day. On by default: a calendar marks all-day
|
|
790
|
+
* events free unless their creator says otherwise, so a public holiday entered as
|
|
791
|
+
* one would otherwise still be bookable.
|
|
792
|
+
*/
|
|
793
|
+
allDayEventsBlock: boolean;
|
|
794
|
+
bufferAfterMinutes: number;
|
|
795
|
+
/**
|
|
796
|
+
* Dead time before an appointment, counted as busy.
|
|
797
|
+
*/
|
|
798
|
+
bufferBeforeMinutes: number;
|
|
799
|
+
durationMinutes: number;
|
|
800
|
+
/**
|
|
801
|
+
* How far ahead appointments may be made.
|
|
802
|
+
*/
|
|
803
|
+
horizonDays: number;
|
|
804
|
+
hours: Array<Policy.Hour>;
|
|
805
|
+
/**
|
|
806
|
+
* How soon from now an appointment may be made.
|
|
807
|
+
*/
|
|
808
|
+
minNoticeMinutes: number;
|
|
809
|
+
/**
|
|
810
|
+
* The grid slots are offered on, measured from each bookable window’s own start
|
|
811
|
+
* rather than the hour.
|
|
812
|
+
*/
|
|
813
|
+
slotIntervalMinutes: number;
|
|
814
|
+
}
|
|
815
|
+
namespace Policy {
|
|
816
|
+
/**
|
|
817
|
+
* One window of the week appointments are offered in. A window that runs past
|
|
818
|
+
* midnight is two entries on two weekdays; a day the business is closed is simply
|
|
819
|
+
* absent.
|
|
820
|
+
*/
|
|
821
|
+
interface Hour {
|
|
822
|
+
endMinute: number;
|
|
823
|
+
/**
|
|
824
|
+
* Minutes from local midnight, in the connection’s timezone.
|
|
825
|
+
*/
|
|
826
|
+
startMinute: number;
|
|
827
|
+
/**
|
|
828
|
+
* ISO weekday: Monday is 1, Sunday is 7.
|
|
829
|
+
*/
|
|
830
|
+
weekday: number;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
interface UnionMember0 {
|
|
834
|
+
eventTypeId: number;
|
|
835
|
+
provider: 'CAL_COM';
|
|
836
|
+
}
|
|
837
|
+
interface UnionMember1 {
|
|
838
|
+
calendarId: string;
|
|
839
|
+
provider: 'GOOGLE';
|
|
840
|
+
targetId: string;
|
|
841
|
+
}
|
|
842
|
+
interface UnionMember2 {
|
|
843
|
+
/**
|
|
844
|
+
* The event type, by URI rather than by id: Calendly names every resource with an
|
|
845
|
+
* absolute URL and its own API takes that URL back.
|
|
846
|
+
*/
|
|
847
|
+
eventTypeUri: string;
|
|
848
|
+
provider: 'CALENDLY';
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
export interface CalendarConnectionDeleteTargetResponse {
|
|
853
|
+
data: CalendarConnectionDeleteTargetResponse.Data;
|
|
854
|
+
}
|
|
855
|
+
export declare namespace CalendarConnectionDeleteTargetResponse {
|
|
856
|
+
interface Data {
|
|
857
|
+
/**
|
|
858
|
+
* Identifier of the deleted target.
|
|
859
|
+
*/
|
|
860
|
+
id: string;
|
|
861
|
+
deleted: true;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
608
864
|
export interface CalendarConnectionGetByIDResponse {
|
|
609
865
|
/**
|
|
610
866
|
* A project’s credential for one calendar account, the thing a calendar tool books
|
|
@@ -648,9 +904,10 @@ export declare namespace CalendarConnectionGetByIDResponse {
|
|
|
648
904
|
*/
|
|
649
905
|
lastCheckedAt: string | null;
|
|
650
906
|
/**
|
|
651
|
-
* Who holds the calendar. CAL_COM is
|
|
652
|
-
*
|
|
653
|
-
*
|
|
907
|
+
* Who holds the calendar. CAL_COM is connected with an API key; GOOGLE and
|
|
908
|
+
* CALENDLY are connected by consent, through
|
|
909
|
+
* `POST /v1/connections/calendar/google/authorize-url` and
|
|
910
|
+
* `POST /v1/connections/calendar/calendly/authorize-url`.
|
|
654
911
|
*/
|
|
655
912
|
provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY';
|
|
656
913
|
/**
|
|
@@ -685,7 +942,9 @@ export declare namespace CalendarConnectionGetByIDResponse {
|
|
|
685
942
|
*/
|
|
686
943
|
interface Capabilities {
|
|
687
944
|
/**
|
|
688
|
-
* How
|
|
945
|
+
* How a credential is obtained, which is the whole of what connecting looks like:
|
|
946
|
+
* API_KEY takes a key in the create body, OAUTH sends the customer to the provider
|
|
947
|
+
* and Roark stores the result itself.
|
|
689
948
|
*/
|
|
690
949
|
auth: 'API_KEY' | 'OAUTH';
|
|
691
950
|
/**
|
|
@@ -706,9 +965,11 @@ export declare namespace CalendarConnectionGetByIDResponse {
|
|
|
706
965
|
*/
|
|
707
966
|
requiresAttendeeEmail: boolean;
|
|
708
967
|
/**
|
|
709
|
-
* True for a
|
|
710
|
-
*
|
|
711
|
-
*
|
|
968
|
+
* True for a calendar that exposes only events and free/busy. Roark then owns the
|
|
969
|
+
* bookable hours, duration, buffers, lead time and horizon, because the provider
|
|
970
|
+
* has no notion of them. A tool on one of these is pointed at a bookable target
|
|
971
|
+
* you create through this API, rather than at something that already exists on the
|
|
972
|
+
* account. Read this instead of matching on the provider name.
|
|
712
973
|
*/
|
|
713
974
|
roarkOwnsBookingPolicy: boolean;
|
|
714
975
|
/**
|
|
@@ -723,14 +984,14 @@ export declare namespace CalendarConnectionGetByIDResponse {
|
|
|
723
984
|
export interface CalendarConnectionGetTargetResponse {
|
|
724
985
|
/**
|
|
725
986
|
* Something on a connected account an agent can be pointed at: a Cal.com event
|
|
726
|
-
* type
|
|
987
|
+
* type, or a bookable target on a calendar whose booking policy Roark owns.
|
|
727
988
|
*/
|
|
728
989
|
data: CalendarConnectionGetTargetResponse.Data;
|
|
729
990
|
}
|
|
730
991
|
export declare namespace CalendarConnectionGetTargetResponse {
|
|
731
992
|
/**
|
|
732
993
|
* Something on a connected account an agent can be pointed at: a Cal.com event
|
|
733
|
-
* type
|
|
994
|
+
* type, or a bookable target on a calendar whose booking policy Roark owns.
|
|
734
995
|
*/
|
|
735
996
|
interface Data {
|
|
736
997
|
/**
|
|
@@ -756,9 +1017,16 @@ export declare namespace CalendarConnectionGetTargetResponse {
|
|
|
756
1017
|
*/
|
|
757
1018
|
label: string;
|
|
758
1019
|
/**
|
|
759
|
-
*
|
|
760
|
-
*
|
|
761
|
-
*
|
|
1020
|
+
* The booking policy Roark applies, for a calendar with no scheduling of its own.
|
|
1021
|
+
* Null on a scheduling system, which owns its own rules, so this one field says
|
|
1022
|
+
* which kind of provider you are looking at without matching on the provider name.
|
|
1023
|
+
*/
|
|
1024
|
+
policy: Data.Policy | null;
|
|
1025
|
+
/**
|
|
1026
|
+
* What a booking is refused without, as the provider names it (`email`, `name`, or
|
|
1027
|
+
* a Calendly event type’s own required questions). On Cal.com the attendee object
|
|
1028
|
+
* itself needs only a name and a timezone, so this is the only place that says
|
|
1029
|
+
* whether an agent has to collect an email; on Calendly both are always required.
|
|
762
1030
|
*/
|
|
763
1031
|
requiredBookingFields: Array<string>;
|
|
764
1032
|
/**
|
|
@@ -774,16 +1042,104 @@ export declare namespace CalendarConnectionGetTargetResponse {
|
|
|
774
1042
|
/**
|
|
775
1043
|
* Ready to put on a calendar tool, so nothing has to assemble one by hand.
|
|
776
1044
|
*/
|
|
777
|
-
target: Data.
|
|
1045
|
+
target: Data.UnionMember0 | Data.UnionMember1 | Data.UnionMember2;
|
|
778
1046
|
}
|
|
779
1047
|
namespace Data {
|
|
780
1048
|
/**
|
|
781
|
-
*
|
|
1049
|
+
* The booking policy Roark applies, for a calendar with no scheduling of its own.
|
|
1050
|
+
* Null on a scheduling system, which owns its own rules, so this one field says
|
|
1051
|
+
* which kind of provider you are looking at without matching on the provider name.
|
|
782
1052
|
*/
|
|
783
|
-
interface
|
|
1053
|
+
interface Policy {
|
|
1054
|
+
/**
|
|
1055
|
+
* Whether an all-day event closes the day. On by default: a calendar marks all-day
|
|
1056
|
+
* events free unless their creator says otherwise, so a public holiday entered as
|
|
1057
|
+
* one would otherwise still be bookable.
|
|
1058
|
+
*/
|
|
1059
|
+
allDayEventsBlock: boolean;
|
|
1060
|
+
bufferAfterMinutes: number;
|
|
1061
|
+
/**
|
|
1062
|
+
* Dead time before an appointment, counted as busy.
|
|
1063
|
+
*/
|
|
1064
|
+
bufferBeforeMinutes: number;
|
|
1065
|
+
durationMinutes: number;
|
|
1066
|
+
/**
|
|
1067
|
+
* How far ahead appointments may be made.
|
|
1068
|
+
*/
|
|
1069
|
+
horizonDays: number;
|
|
1070
|
+
hours: Array<Policy.Hour>;
|
|
1071
|
+
/**
|
|
1072
|
+
* How soon from now an appointment may be made.
|
|
1073
|
+
*/
|
|
1074
|
+
minNoticeMinutes: number;
|
|
1075
|
+
/**
|
|
1076
|
+
* The grid slots are offered on, measured from each bookable window’s own start
|
|
1077
|
+
* rather than the hour.
|
|
1078
|
+
*/
|
|
1079
|
+
slotIntervalMinutes: number;
|
|
1080
|
+
}
|
|
1081
|
+
namespace Policy {
|
|
1082
|
+
/**
|
|
1083
|
+
* One window of the week appointments are offered in. A window that runs past
|
|
1084
|
+
* midnight is two entries on two weekdays; a day the business is closed is simply
|
|
1085
|
+
* absent.
|
|
1086
|
+
*/
|
|
1087
|
+
interface Hour {
|
|
1088
|
+
endMinute: number;
|
|
1089
|
+
/**
|
|
1090
|
+
* Minutes from local midnight, in the connection’s timezone.
|
|
1091
|
+
*/
|
|
1092
|
+
startMinute: number;
|
|
1093
|
+
/**
|
|
1094
|
+
* ISO weekday: Monday is 1, Sunday is 7.
|
|
1095
|
+
*/
|
|
1096
|
+
weekday: number;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
interface UnionMember0 {
|
|
784
1100
|
eventTypeId: number;
|
|
785
1101
|
provider: 'CAL_COM';
|
|
786
1102
|
}
|
|
1103
|
+
interface UnionMember1 {
|
|
1104
|
+
calendarId: string;
|
|
1105
|
+
provider: 'GOOGLE';
|
|
1106
|
+
targetId: string;
|
|
1107
|
+
}
|
|
1108
|
+
interface UnionMember2 {
|
|
1109
|
+
/**
|
|
1110
|
+
* The event type, by URI rather than by id: Calendly names every resource with an
|
|
1111
|
+
* absolute URL and its own API takes that URL back.
|
|
1112
|
+
*/
|
|
1113
|
+
eventTypeUri: string;
|
|
1114
|
+
provider: 'CALENDLY';
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
export interface CalendarConnectionListCalendarsResponse {
|
|
1119
|
+
data: Array<CalendarConnectionListCalendarsResponse.Data>;
|
|
1120
|
+
}
|
|
1121
|
+
export declare namespace CalendarConnectionListCalendarsResponse {
|
|
1122
|
+
/**
|
|
1123
|
+
* A calendar on the connected account that a bookable target can be created on.
|
|
1124
|
+
*/
|
|
1125
|
+
interface Data {
|
|
1126
|
+
/**
|
|
1127
|
+
* Pass this as `calendarId` when creating a target.
|
|
1128
|
+
*/
|
|
1129
|
+
id: string;
|
|
1130
|
+
/**
|
|
1131
|
+
* Always true: a calendar that cannot be written to is not listed.
|
|
1132
|
+
*/
|
|
1133
|
+
canWrite: boolean;
|
|
1134
|
+
isPrimary: boolean;
|
|
1135
|
+
/**
|
|
1136
|
+
* What the calendar is called on the account.
|
|
1137
|
+
*/
|
|
1138
|
+
label: string;
|
|
1139
|
+
/**
|
|
1140
|
+
* The calendar’s own timezone, when it reports one.
|
|
1141
|
+
*/
|
|
1142
|
+
timezone: string | null;
|
|
787
1143
|
}
|
|
788
1144
|
}
|
|
789
1145
|
export interface CalendarConnectionListTargetsResponse {
|
|
@@ -792,7 +1148,7 @@ export interface CalendarConnectionListTargetsResponse {
|
|
|
792
1148
|
export declare namespace CalendarConnectionListTargetsResponse {
|
|
793
1149
|
/**
|
|
794
1150
|
* Something on a connected account an agent can be pointed at: a Cal.com event
|
|
795
|
-
* type
|
|
1151
|
+
* type, or a bookable target on a calendar whose booking policy Roark owns.
|
|
796
1152
|
*/
|
|
797
1153
|
interface Data {
|
|
798
1154
|
/**
|
|
@@ -817,6 +1173,12 @@ export declare namespace CalendarConnectionListTargetsResponse {
|
|
|
817
1173
|
* What the customer called it on the provider.
|
|
818
1174
|
*/
|
|
819
1175
|
label: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* The booking policy Roark applies, for a calendar with no scheduling of its own.
|
|
1178
|
+
* Null on a scheduling system, which owns its own rules, so this one field says
|
|
1179
|
+
* which kind of provider you are looking at without matching on the provider name.
|
|
1180
|
+
*/
|
|
1181
|
+
policy: Data.Policy | null;
|
|
820
1182
|
/**
|
|
821
1183
|
* A human has to accept before it is an appointment. An agent booking one of these
|
|
822
1184
|
* must say "requested", never "confirmed".
|
|
@@ -825,23 +1187,251 @@ export declare namespace CalendarConnectionListTargetsResponse {
|
|
|
825
1187
|
/**
|
|
826
1188
|
* Ready to put on a calendar tool, so nothing has to assemble one by hand.
|
|
827
1189
|
*/
|
|
828
|
-
target: Data.
|
|
1190
|
+
target: Data.UnionMember0 | Data.UnionMember1 | Data.UnionMember2;
|
|
829
1191
|
}
|
|
830
1192
|
namespace Data {
|
|
1193
|
+
/**
|
|
1194
|
+
* The booking policy Roark applies, for a calendar with no scheduling of its own.
|
|
1195
|
+
* Null on a scheduling system, which owns its own rules, so this one field says
|
|
1196
|
+
* which kind of provider you are looking at without matching on the provider name.
|
|
1197
|
+
*/
|
|
1198
|
+
interface Policy {
|
|
1199
|
+
/**
|
|
1200
|
+
* Whether an all-day event closes the day. On by default: a calendar marks all-day
|
|
1201
|
+
* events free unless their creator says otherwise, so a public holiday entered as
|
|
1202
|
+
* one would otherwise still be bookable.
|
|
1203
|
+
*/
|
|
1204
|
+
allDayEventsBlock: boolean;
|
|
1205
|
+
bufferAfterMinutes: number;
|
|
1206
|
+
/**
|
|
1207
|
+
* Dead time before an appointment, counted as busy.
|
|
1208
|
+
*/
|
|
1209
|
+
bufferBeforeMinutes: number;
|
|
1210
|
+
durationMinutes: number;
|
|
1211
|
+
/**
|
|
1212
|
+
* How far ahead appointments may be made.
|
|
1213
|
+
*/
|
|
1214
|
+
horizonDays: number;
|
|
1215
|
+
hours: Array<Policy.Hour>;
|
|
1216
|
+
/**
|
|
1217
|
+
* How soon from now an appointment may be made.
|
|
1218
|
+
*/
|
|
1219
|
+
minNoticeMinutes: number;
|
|
1220
|
+
/**
|
|
1221
|
+
* The grid slots are offered on, measured from each bookable window’s own start
|
|
1222
|
+
* rather than the hour.
|
|
1223
|
+
*/
|
|
1224
|
+
slotIntervalMinutes: number;
|
|
1225
|
+
}
|
|
1226
|
+
namespace Policy {
|
|
1227
|
+
/**
|
|
1228
|
+
* One window of the week appointments are offered in. A window that runs past
|
|
1229
|
+
* midnight is two entries on two weekdays; a day the business is closed is simply
|
|
1230
|
+
* absent.
|
|
1231
|
+
*/
|
|
1232
|
+
interface Hour {
|
|
1233
|
+
endMinute: number;
|
|
1234
|
+
/**
|
|
1235
|
+
* Minutes from local midnight, in the connection’s timezone.
|
|
1236
|
+
*/
|
|
1237
|
+
startMinute: number;
|
|
1238
|
+
/**
|
|
1239
|
+
* ISO weekday: Monday is 1, Sunday is 7.
|
|
1240
|
+
*/
|
|
1241
|
+
weekday: number;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
interface UnionMember0 {
|
|
1245
|
+
eventTypeId: number;
|
|
1246
|
+
provider: 'CAL_COM';
|
|
1247
|
+
}
|
|
1248
|
+
interface UnionMember1 {
|
|
1249
|
+
calendarId: string;
|
|
1250
|
+
provider: 'GOOGLE';
|
|
1251
|
+
targetId: string;
|
|
1252
|
+
}
|
|
1253
|
+
interface UnionMember2 {
|
|
1254
|
+
/**
|
|
1255
|
+
* The event type, by URI rather than by id: Calendly names every resource with an
|
|
1256
|
+
* absolute URL and its own API takes that URL back.
|
|
1257
|
+
*/
|
|
1258
|
+
eventTypeUri: string;
|
|
1259
|
+
provider: 'CALENDLY';
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
export interface CalendarConnectionStartCalendlyOauthResponse {
|
|
1264
|
+
data: CalendarConnectionStartCalendlyOauthResponse.Data;
|
|
1265
|
+
}
|
|
1266
|
+
export declare namespace CalendarConnectionStartCalendlyOauthResponse {
|
|
1267
|
+
interface Data {
|
|
1268
|
+
/**
|
|
1269
|
+
* Open this in a browser. After the customer consents, the provider returns to
|
|
1270
|
+
* Roark, which exchanges the code, verifies the credential and stores the
|
|
1271
|
+
* connection. Read the result with `GET /v1/connections/calendar?provider=…`.
|
|
1272
|
+
*/
|
|
1273
|
+
authorizeUrl: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* When the link stops working, ISO 8601. Start again after that.
|
|
1276
|
+
*/
|
|
1277
|
+
expiresAt: string;
|
|
1278
|
+
/**
|
|
1279
|
+
* The opaque single-use value this flow is identified by, echoed so a caller can
|
|
1280
|
+
* correlate its own UI. Not a credential and not accepted anywhere as one.
|
|
1281
|
+
*/
|
|
1282
|
+
state: string;
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
export interface CalendarConnectionStartGoogleOauthResponse {
|
|
1286
|
+
data: CalendarConnectionStartGoogleOauthResponse.Data;
|
|
1287
|
+
}
|
|
1288
|
+
export declare namespace CalendarConnectionStartGoogleOauthResponse {
|
|
1289
|
+
interface Data {
|
|
1290
|
+
/**
|
|
1291
|
+
* Open this in a browser. After the customer consents, the provider returns to
|
|
1292
|
+
* Roark, which exchanges the code, verifies the credential and stores the
|
|
1293
|
+
* connection. Read the result with `GET /v1/connections/calendar?provider=…`.
|
|
1294
|
+
*/
|
|
1295
|
+
authorizeUrl: string;
|
|
1296
|
+
/**
|
|
1297
|
+
* When the link stops working, ISO 8601. Start again after that.
|
|
1298
|
+
*/
|
|
1299
|
+
expiresAt: string;
|
|
1300
|
+
/**
|
|
1301
|
+
* The opaque single-use value this flow is identified by, echoed so a caller can
|
|
1302
|
+
* correlate its own UI. Not a credential and not accepted anywhere as one.
|
|
1303
|
+
*/
|
|
1304
|
+
state: string;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
export interface CalendarConnectionUpdateTargetResponse {
|
|
1308
|
+
/**
|
|
1309
|
+
* Something on a connected account an agent can be pointed at: a Cal.com event
|
|
1310
|
+
* type, or a bookable target on a calendar whose booking policy Roark owns.
|
|
1311
|
+
*/
|
|
1312
|
+
data: CalendarConnectionUpdateTargetResponse.Data;
|
|
1313
|
+
}
|
|
1314
|
+
export declare namespace CalendarConnectionUpdateTargetResponse {
|
|
1315
|
+
/**
|
|
1316
|
+
* Something on a connected account an agent can be pointed at: a Cal.com event
|
|
1317
|
+
* type, or a bookable target on a calendar whose booking policy Roark owns.
|
|
1318
|
+
*/
|
|
1319
|
+
interface Data {
|
|
1320
|
+
/**
|
|
1321
|
+
* Identifier within this connection. Pass it back to read one target in detail.
|
|
1322
|
+
*/
|
|
1323
|
+
id: string;
|
|
1324
|
+
/**
|
|
1325
|
+
* How long an appointment runs, when the provider fixes one length.
|
|
1326
|
+
*/
|
|
1327
|
+
durationMinutes: number | null;
|
|
1328
|
+
/**
|
|
1329
|
+
* Other lengths this target offers, when it offers a choice. A calendar tool pins
|
|
1330
|
+
* one of these with `durationMinutes`; an empty list means the length is not the
|
|
1331
|
+
* customer’s to choose.
|
|
1332
|
+
*/
|
|
1333
|
+
durationOptions: Array<number>;
|
|
1334
|
+
/**
|
|
1335
|
+
* Hidden on the provider’s own booking page. Still bookable through this API.
|
|
1336
|
+
*/
|
|
1337
|
+
isHidden: boolean;
|
|
1338
|
+
/**
|
|
1339
|
+
* What the customer called it on the provider.
|
|
1340
|
+
*/
|
|
1341
|
+
label: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* The booking policy Roark applies, for a calendar with no scheduling of its own.
|
|
1344
|
+
* Null on a scheduling system, which owns its own rules, so this one field says
|
|
1345
|
+
* which kind of provider you are looking at without matching on the provider name.
|
|
1346
|
+
*/
|
|
1347
|
+
policy: Data.Policy | null;
|
|
1348
|
+
/**
|
|
1349
|
+
* A human has to accept before it is an appointment. An agent booking one of these
|
|
1350
|
+
* must say "requested", never "confirmed".
|
|
1351
|
+
*/
|
|
1352
|
+
requiresConfirmation: boolean;
|
|
831
1353
|
/**
|
|
832
1354
|
* Ready to put on a calendar tool, so nothing has to assemble one by hand.
|
|
833
1355
|
*/
|
|
834
|
-
|
|
1356
|
+
target: Data.UnionMember0 | Data.UnionMember1 | Data.UnionMember2;
|
|
1357
|
+
}
|
|
1358
|
+
namespace Data {
|
|
1359
|
+
/**
|
|
1360
|
+
* The booking policy Roark applies, for a calendar with no scheduling of its own.
|
|
1361
|
+
* Null on a scheduling system, which owns its own rules, so this one field says
|
|
1362
|
+
* which kind of provider you are looking at without matching on the provider name.
|
|
1363
|
+
*/
|
|
1364
|
+
interface Policy {
|
|
1365
|
+
/**
|
|
1366
|
+
* Whether an all-day event closes the day. On by default: a calendar marks all-day
|
|
1367
|
+
* events free unless their creator says otherwise, so a public holiday entered as
|
|
1368
|
+
* one would otherwise still be bookable.
|
|
1369
|
+
*/
|
|
1370
|
+
allDayEventsBlock: boolean;
|
|
1371
|
+
bufferAfterMinutes: number;
|
|
1372
|
+
/**
|
|
1373
|
+
* Dead time before an appointment, counted as busy.
|
|
1374
|
+
*/
|
|
1375
|
+
bufferBeforeMinutes: number;
|
|
1376
|
+
durationMinutes: number;
|
|
1377
|
+
/**
|
|
1378
|
+
* How far ahead appointments may be made.
|
|
1379
|
+
*/
|
|
1380
|
+
horizonDays: number;
|
|
1381
|
+
hours: Array<Policy.Hour>;
|
|
1382
|
+
/**
|
|
1383
|
+
* How soon from now an appointment may be made.
|
|
1384
|
+
*/
|
|
1385
|
+
minNoticeMinutes: number;
|
|
1386
|
+
/**
|
|
1387
|
+
* The grid slots are offered on, measured from each bookable window’s own start
|
|
1388
|
+
* rather than the hour.
|
|
1389
|
+
*/
|
|
1390
|
+
slotIntervalMinutes: number;
|
|
1391
|
+
}
|
|
1392
|
+
namespace Policy {
|
|
1393
|
+
/**
|
|
1394
|
+
* One window of the week appointments are offered in. A window that runs past
|
|
1395
|
+
* midnight is two entries on two weekdays; a day the business is closed is simply
|
|
1396
|
+
* absent.
|
|
1397
|
+
*/
|
|
1398
|
+
interface Hour {
|
|
1399
|
+
endMinute: number;
|
|
1400
|
+
/**
|
|
1401
|
+
* Minutes from local midnight, in the connection’s timezone.
|
|
1402
|
+
*/
|
|
1403
|
+
startMinute: number;
|
|
1404
|
+
/**
|
|
1405
|
+
* ISO weekday: Monday is 1, Sunday is 7.
|
|
1406
|
+
*/
|
|
1407
|
+
weekday: number;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
interface UnionMember0 {
|
|
835
1411
|
eventTypeId: number;
|
|
836
1412
|
provider: 'CAL_COM';
|
|
837
1413
|
}
|
|
1414
|
+
interface UnionMember1 {
|
|
1415
|
+
calendarId: string;
|
|
1416
|
+
provider: 'GOOGLE';
|
|
1417
|
+
targetId: string;
|
|
1418
|
+
}
|
|
1419
|
+
interface UnionMember2 {
|
|
1420
|
+
/**
|
|
1421
|
+
* The event type, by URI rather than by id: Calendly names every resource with an
|
|
1422
|
+
* absolute URL and its own API takes that URL back.
|
|
1423
|
+
*/
|
|
1424
|
+
eventTypeUri: string;
|
|
1425
|
+
provider: 'CALENDLY';
|
|
1426
|
+
}
|
|
838
1427
|
}
|
|
839
1428
|
}
|
|
840
1429
|
export interface CalendarConnectionCreateParams {
|
|
841
1430
|
/**
|
|
842
|
-
* For CAL*COM
|
|
843
|
-
*
|
|
844
|
-
* is created. Stored encrypted and never
|
|
1431
|
+
* The provider account’s API key. For CAL*COM, a Cal.com API key (starts with
|
|
1432
|
+
* `cal*`). It is verified against the provider before anything is stored, so an
|
|
1433
|
+
* invalid key is a 400 and no connection is created. Stored encrypted and never
|
|
1434
|
+
* returned.
|
|
845
1435
|
*/
|
|
846
1436
|
apiKey: string;
|
|
847
1437
|
/**
|
|
@@ -849,9 +1439,10 @@ export interface CalendarConnectionCreateParams {
|
|
|
849
1439
|
*/
|
|
850
1440
|
label: string;
|
|
851
1441
|
/**
|
|
852
|
-
* Who holds the calendar. CAL_COM is
|
|
853
|
-
*
|
|
854
|
-
*
|
|
1442
|
+
* Who holds the calendar. CAL_COM is connected with an API key; GOOGLE and
|
|
1443
|
+
* CALENDLY are connected by consent, through
|
|
1444
|
+
* `POST /v1/connections/calendar/google/authorize-url` and
|
|
1445
|
+
* `POST /v1/connections/calendar/calendly/authorize-url`.
|
|
855
1446
|
*/
|
|
856
1447
|
provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY';
|
|
857
1448
|
/**
|
|
@@ -879,19 +1470,206 @@ export interface CalendarConnectionUpdateParams {
|
|
|
879
1470
|
}
|
|
880
1471
|
export interface CalendarConnectionListParams {
|
|
881
1472
|
/**
|
|
882
|
-
* Who holds the calendar. CAL_COM is
|
|
883
|
-
*
|
|
884
|
-
*
|
|
1473
|
+
* Who holds the calendar. CAL_COM is connected with an API key; GOOGLE and
|
|
1474
|
+
* CALENDLY are connected by consent, through
|
|
1475
|
+
* `POST /v1/connections/calendar/google/authorize-url` and
|
|
1476
|
+
* `POST /v1/connections/calendar/calendly/authorize-url`.
|
|
885
1477
|
*/
|
|
886
1478
|
provider?: 'CAL_COM' | 'GOOGLE' | 'CALENDLY';
|
|
887
1479
|
}
|
|
1480
|
+
export interface CalendarConnectionCreateTargetParams {
|
|
1481
|
+
/**
|
|
1482
|
+
* The calendar to write appointments to, from
|
|
1483
|
+
* `GET /v1/connections/calendar/{connectionId}/calendars`. `primary` is accepted
|
|
1484
|
+
* and stored as the account’s own id.
|
|
1485
|
+
*/
|
|
1486
|
+
calendarId: string;
|
|
1487
|
+
durationMinutes: number;
|
|
1488
|
+
/**
|
|
1489
|
+
* Unique within the connection, and how a config file refers to this target.
|
|
1490
|
+
* Letters, digits, spaces, \_ or -.
|
|
1491
|
+
*/
|
|
1492
|
+
name: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* Whether an all-day event closes the day. Defaults to true, because a calendar
|
|
1495
|
+
* marks all-day events free unless their creator says otherwise and a public
|
|
1496
|
+
* holiday entered as one would otherwise be bookable.
|
|
1497
|
+
*/
|
|
1498
|
+
allDayEventsBlock?: boolean | null;
|
|
1499
|
+
bufferAfterMinutes?: number | null;
|
|
1500
|
+
/**
|
|
1501
|
+
* Dead time before an appointment, counted as busy when a slot is offered.
|
|
1502
|
+
* Defaults to 0.
|
|
1503
|
+
*/
|
|
1504
|
+
bufferBeforeMinutes?: number | null;
|
|
1505
|
+
/**
|
|
1506
|
+
* How far ahead appointments may be made. Defaults to 30.
|
|
1507
|
+
*/
|
|
1508
|
+
horizonDays?: number | null;
|
|
1509
|
+
/**
|
|
1510
|
+
* The windows of the week appointments are offered in. Omit to adopt Monday to
|
|
1511
|
+
* Friday, 09:00 to 17:00. A target with no windows offers nothing at all, which
|
|
1512
|
+
* reads to a caller as a permanently full diary.
|
|
1513
|
+
*/
|
|
1514
|
+
hours?: Array<CalendarConnectionCreateTargetParams.Hour> | null;
|
|
1515
|
+
/**
|
|
1516
|
+
* How soon from now an appointment may be made. Defaults to 120.
|
|
1517
|
+
*/
|
|
1518
|
+
minNoticeMinutes?: number | null;
|
|
1519
|
+
/**
|
|
1520
|
+
* The grid slots are offered on. Defaults to the duration, which gives
|
|
1521
|
+
* back-to-back appointments.
|
|
1522
|
+
*/
|
|
1523
|
+
slotIntervalMinutes?: number | null;
|
|
1524
|
+
}
|
|
1525
|
+
export declare namespace CalendarConnectionCreateTargetParams {
|
|
1526
|
+
/**
|
|
1527
|
+
* One window of the week appointments are offered in. A window that runs past
|
|
1528
|
+
* midnight is two entries on two weekdays; a day the business is closed is simply
|
|
1529
|
+
* absent.
|
|
1530
|
+
*/
|
|
1531
|
+
interface Hour {
|
|
1532
|
+
endMinute: number;
|
|
1533
|
+
/**
|
|
1534
|
+
* Minutes from local midnight, in the connection’s timezone.
|
|
1535
|
+
*/
|
|
1536
|
+
startMinute: number;
|
|
1537
|
+
/**
|
|
1538
|
+
* ISO weekday: Monday is 1, Sunday is 7.
|
|
1539
|
+
*/
|
|
1540
|
+
weekday: number;
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
export interface CalendarConnectionDeleteTargetParams {
|
|
1544
|
+
/**
|
|
1545
|
+
* Calendar connection ID
|
|
1546
|
+
*/
|
|
1547
|
+
connectionId: string;
|
|
1548
|
+
}
|
|
888
1549
|
export interface CalendarConnectionGetTargetParams {
|
|
889
1550
|
/**
|
|
890
1551
|
* Calendar connection ID
|
|
891
1552
|
*/
|
|
892
1553
|
connectionId: string;
|
|
893
1554
|
}
|
|
1555
|
+
export interface CalendarConnectionStartCalendlyOauthParams {
|
|
1556
|
+
/**
|
|
1557
|
+
* Reconnect an existing connection instead of creating one: the consent screen
|
|
1558
|
+
* replaces that connection’s credential in place, so every tool bound to it keeps
|
|
1559
|
+
* working. Use this when a connection reports `INVALID_CREDENTIALS`. The
|
|
1560
|
+
* connection’s existing name and timezone are kept, so `label` is ignored when
|
|
1561
|
+
* this is set.
|
|
1562
|
+
*/
|
|
1563
|
+
calendarConnectionId?: string | null;
|
|
1564
|
+
/**
|
|
1565
|
+
* Customer-facing name for the connection, unique within the project. Required
|
|
1566
|
+
* unless `calendarConnectionId` is set, and decided now because the consent screen
|
|
1567
|
+
* has nowhere to carry it.
|
|
1568
|
+
*/
|
|
1569
|
+
label?: string | null;
|
|
1570
|
+
/**
|
|
1571
|
+
* The named IANA timezone to offer slots in, for example `America/Los_Angeles`.
|
|
1572
|
+
* Omit to adopt the Calendly account’s own. A fixed offset such as `-08:00` is
|
|
1573
|
+
* rejected: it does not observe DST.
|
|
1574
|
+
*/
|
|
1575
|
+
timezone?: string | null;
|
|
1576
|
+
}
|
|
1577
|
+
export interface CalendarConnectionStartGoogleOauthParams {
|
|
1578
|
+
/**
|
|
1579
|
+
* Reconnect an existing connection instead of creating one: the consent screen
|
|
1580
|
+
* replaces that connection’s credential in place, so every tool bound to it keeps
|
|
1581
|
+
* working. Use this when a connection reports `INVALID_CREDENTIALS`. The
|
|
1582
|
+
* connection’s existing name and timezone are kept, so `label` is ignored when
|
|
1583
|
+
* this is set.
|
|
1584
|
+
*/
|
|
1585
|
+
calendarConnectionId?: string | null;
|
|
1586
|
+
/**
|
|
1587
|
+
* Customer-facing name for the connection, unique within the project. Required
|
|
1588
|
+
* unless `calendarConnectionId` is set, and decided now because the consent screen
|
|
1589
|
+
* has nowhere to carry it.
|
|
1590
|
+
*/
|
|
1591
|
+
label?: string | null;
|
|
1592
|
+
/**
|
|
1593
|
+
* The Google account to preselect on the consent screen. A hint only: it is
|
|
1594
|
+
* ignored if the user is signed into another account, and nothing is authorized by
|
|
1595
|
+
* it.
|
|
1596
|
+
*/
|
|
1597
|
+
loginHint?: string | null;
|
|
1598
|
+
/**
|
|
1599
|
+
* The named IANA timezone to offer slots in, for example `America/Los_Angeles`.
|
|
1600
|
+
* Omit to adopt the Google account’s own. A fixed offset such as `-08:00` is
|
|
1601
|
+
* rejected: it does not observe DST.
|
|
1602
|
+
*/
|
|
1603
|
+
timezone?: string | null;
|
|
1604
|
+
}
|
|
1605
|
+
export interface CalendarConnectionUpdateTargetParams {
|
|
1606
|
+
/**
|
|
1607
|
+
* Path param: Calendar connection ID
|
|
1608
|
+
*/
|
|
1609
|
+
connectionId: string;
|
|
1610
|
+
/**
|
|
1611
|
+
* Body param: Whether an all-day event closes the day. Defaults to true, because a
|
|
1612
|
+
* calendar marks all-day events free unless their creator says otherwise and a
|
|
1613
|
+
* public holiday entered as one would otherwise be bookable.
|
|
1614
|
+
*/
|
|
1615
|
+
allDayEventsBlock?: boolean | null;
|
|
1616
|
+
/**
|
|
1617
|
+
* Body param
|
|
1618
|
+
*/
|
|
1619
|
+
bufferAfterMinutes?: number | null;
|
|
1620
|
+
/**
|
|
1621
|
+
* Body param: Dead time before an appointment, counted as busy when a slot is
|
|
1622
|
+
* offered. Defaults to 0.
|
|
1623
|
+
*/
|
|
1624
|
+
bufferBeforeMinutes?: number | null;
|
|
1625
|
+
/**
|
|
1626
|
+
* Body param
|
|
1627
|
+
*/
|
|
1628
|
+
durationMinutes?: number;
|
|
1629
|
+
/**
|
|
1630
|
+
* Body param: How far ahead appointments may be made. Defaults to 30.
|
|
1631
|
+
*/
|
|
1632
|
+
horizonDays?: number | null;
|
|
1633
|
+
/**
|
|
1634
|
+
* Body param: The windows of the week appointments are offered in. Omit to adopt
|
|
1635
|
+
* Monday to Friday, 09:00 to 17:00. A target with no windows offers nothing at
|
|
1636
|
+
* all, which reads to a caller as a permanently full diary.
|
|
1637
|
+
*/
|
|
1638
|
+
hours?: Array<CalendarConnectionUpdateTargetParams.Hour> | null;
|
|
1639
|
+
/**
|
|
1640
|
+
* Body param: How soon from now an appointment may be made. Defaults to 120.
|
|
1641
|
+
*/
|
|
1642
|
+
minNoticeMinutes?: number | null;
|
|
1643
|
+
/**
|
|
1644
|
+
* Body param: Unique within the connection, and how a config file refers to this
|
|
1645
|
+
* target. Letters, digits, spaces, \_ or -.
|
|
1646
|
+
*/
|
|
1647
|
+
name?: string;
|
|
1648
|
+
/**
|
|
1649
|
+
* Body param: The grid slots are offered on. Defaults to the duration, which gives
|
|
1650
|
+
* back-to-back appointments.
|
|
1651
|
+
*/
|
|
1652
|
+
slotIntervalMinutes?: number | null;
|
|
1653
|
+
}
|
|
1654
|
+
export declare namespace CalendarConnectionUpdateTargetParams {
|
|
1655
|
+
/**
|
|
1656
|
+
* One window of the week appointments are offered in. A window that runs past
|
|
1657
|
+
* midnight is two entries on two weekdays; a day the business is closed is simply
|
|
1658
|
+
* absent.
|
|
1659
|
+
*/
|
|
1660
|
+
interface Hour {
|
|
1661
|
+
endMinute: number;
|
|
1662
|
+
/**
|
|
1663
|
+
* Minutes from local midnight, in the connection’s timezone.
|
|
1664
|
+
*/
|
|
1665
|
+
startMinute: number;
|
|
1666
|
+
/**
|
|
1667
|
+
* ISO weekday: Monday is 1, Sunday is 7.
|
|
1668
|
+
*/
|
|
1669
|
+
weekday: number;
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
894
1672
|
export declare namespace CalendarConnection {
|
|
895
|
-
export { type CalendarConnectionCreateResponse as CalendarConnectionCreateResponse, type CalendarConnectionUpdateResponse as CalendarConnectionUpdateResponse, type CalendarConnectionListResponse as CalendarConnectionListResponse, type CalendarConnectionDeleteResponse as CalendarConnectionDeleteResponse, type CalendarConnectionCheckResponse as CalendarConnectionCheckResponse, type CalendarConnectionGetByIDResponse as CalendarConnectionGetByIDResponse, type CalendarConnectionGetTargetResponse as CalendarConnectionGetTargetResponse, type CalendarConnectionListTargetsResponse as CalendarConnectionListTargetsResponse, type CalendarConnectionCreateParams as CalendarConnectionCreateParams, type CalendarConnectionUpdateParams as CalendarConnectionUpdateParams, type CalendarConnectionListParams as CalendarConnectionListParams, type CalendarConnectionGetTargetParams as CalendarConnectionGetTargetParams, };
|
|
1673
|
+
export { type CalendarConnectionCreateResponse as CalendarConnectionCreateResponse, type CalendarConnectionUpdateResponse as CalendarConnectionUpdateResponse, type CalendarConnectionListResponse as CalendarConnectionListResponse, type CalendarConnectionDeleteResponse as CalendarConnectionDeleteResponse, type CalendarConnectionCheckResponse as CalendarConnectionCheckResponse, type CalendarConnectionCreateTargetResponse as CalendarConnectionCreateTargetResponse, type CalendarConnectionDeleteTargetResponse as CalendarConnectionDeleteTargetResponse, type CalendarConnectionGetByIDResponse as CalendarConnectionGetByIDResponse, type CalendarConnectionGetTargetResponse as CalendarConnectionGetTargetResponse, type CalendarConnectionListCalendarsResponse as CalendarConnectionListCalendarsResponse, type CalendarConnectionListTargetsResponse as CalendarConnectionListTargetsResponse, type CalendarConnectionStartCalendlyOauthResponse as CalendarConnectionStartCalendlyOauthResponse, type CalendarConnectionStartGoogleOauthResponse as CalendarConnectionStartGoogleOauthResponse, type CalendarConnectionUpdateTargetResponse as CalendarConnectionUpdateTargetResponse, type CalendarConnectionCreateParams as CalendarConnectionCreateParams, type CalendarConnectionUpdateParams as CalendarConnectionUpdateParams, type CalendarConnectionListParams as CalendarConnectionListParams, type CalendarConnectionCreateTargetParams as CalendarConnectionCreateTargetParams, type CalendarConnectionDeleteTargetParams as CalendarConnectionDeleteTargetParams, type CalendarConnectionGetTargetParams as CalendarConnectionGetTargetParams, type CalendarConnectionStartCalendlyOauthParams as CalendarConnectionStartCalendlyOauthParams, type CalendarConnectionStartGoogleOauthParams as CalendarConnectionStartGoogleOauthParams, type CalendarConnectionUpdateTargetParams as CalendarConnectionUpdateTargetParams, };
|
|
896
1674
|
}
|
|
897
1675
|
//# sourceMappingURL=calendar-connection.d.mts.map
|