@gravity-rail/sdk 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-RJ5TGOOB.js → chunk-QS6ZRQUZ.js} +15 -12
- package/dist/chunk-QS6ZRQUZ.js.map +1 -0
- package/dist/{chunk-3BG2GMJZ.js → chunk-QZC4QPP2.js} +732 -62
- package/dist/chunk-QZC4QPP2.js.map +1 -0
- package/dist/{index-BXdVk_yu.d.cts → index-CIwgGcAm.d.ts} +7302 -5414
- package/dist/{index-MwOlcqFm.d.ts → index-DNxSoo5S.d.cts} +7302 -5414
- package/dist/index.cjs +758 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +44 -2
- package/dist/inquiries-DiTDrTG2.d.cts +3536 -0
- package/dist/inquiries-DiTDrTG2.d.ts +3536 -0
- package/dist/internal.cjs +772 -72
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +108 -64
- package/dist/internal.d.ts +108 -64
- package/dist/internal.js +50 -2
- package/dist/schemas.cjs +87 -19
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +183 -39
- package/dist/schemas.d.ts +183 -39
- package/dist/schemas.js +72 -9
- package/dist/schemas.js.map +1 -1
- package/package.json +8 -3
- package/dist/chunk-3BG2GMJZ.js.map +0 -1
- package/dist/chunk-RJ5TGOOB.js.map +0 -1
- package/dist/inquiries-s_RbhMsE.d.cts +0 -1941
- package/dist/inquiries-s_RbhMsE.d.ts +0 -1941
package/dist/index.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
|
+
AbilityConfigIssueCode: () => AbilityConfigIssueCode,
|
|
24
|
+
AbilityConfigIssueSeverity: () => AbilityConfigIssueSeverity,
|
|
23
25
|
AbilityTypeSlugs: () => AbilityTypeSlugs,
|
|
24
26
|
AccessGrantResourceType: () => AccessGrantResourceType,
|
|
25
27
|
AccessGrantStatus: () => AccessGrantStatus,
|
|
@@ -32,6 +34,9 @@ __export(src_exports, {
|
|
|
32
34
|
BUILTIN_ASSISTANT_CHAT_TYPES: () => BUILTIN_ASSISTANT_CHAT_TYPES,
|
|
33
35
|
BaseApiClient: () => BaseApiClient,
|
|
34
36
|
BuildersApi: () => BuildersApi,
|
|
37
|
+
BulkMemberResultStatus: () => BulkMemberResultStatus,
|
|
38
|
+
BusinessIndustry: () => BusinessIndustry,
|
|
39
|
+
BusinessType: () => BusinessType,
|
|
35
40
|
CELApi: () => CELApi,
|
|
36
41
|
CHAT_TYPES: () => CHAT_TYPES,
|
|
37
42
|
CalendarEventStatus: () => CalendarEventStatus,
|
|
@@ -50,6 +55,7 @@ __export(src_exports, {
|
|
|
50
55
|
DataSensitivity: () => DataSensitivity,
|
|
51
56
|
DataTypeRecordScope: () => DataTypeRecordScope,
|
|
52
57
|
DriverMode: () => DriverMode,
|
|
58
|
+
EmailDnsRecordType: () => EmailDnsRecordType,
|
|
53
59
|
EventRuleActionType: () => EventRuleActionType,
|
|
54
60
|
EventRuleEventType: () => EventRuleEventType,
|
|
55
61
|
EventRuleObjectType: () => EventRuleObjectType,
|
|
@@ -61,11 +67,17 @@ __export(src_exports, {
|
|
|
61
67
|
GravityRailClient: () => GravityRailClient,
|
|
62
68
|
IndexStatus: () => IndexStatus,
|
|
63
69
|
InvitationStatus: () => InvitationStatus,
|
|
70
|
+
JobPosition: () => JobPosition,
|
|
64
71
|
MASKED_SECRET_SENTINEL: () => MASKED_SECRET_SENTINEL,
|
|
65
72
|
McpServerState: () => McpServerState,
|
|
66
73
|
MemberFeature: () => MemberFeature,
|
|
67
74
|
MemberType: () => MemberType,
|
|
75
|
+
MenuItemResponseItemType: () => MenuItemResponseItemType,
|
|
76
|
+
MenuItemType: () => MenuItemResponseItemType,
|
|
77
|
+
ModelProvider: () => ModelProvider,
|
|
78
|
+
ModelType: () => ModelType,
|
|
68
79
|
NO_ASSISTANT_PARTICIPANT_CHAT_TYPES: () => NO_ASSISTANT_PARTICIPANT_CHAT_TYPES,
|
|
80
|
+
OIDCAdminConfigViewProviderType: () => OIDCAdminConfigViewProviderType,
|
|
69
81
|
ORG_ONLY_RESOURCES: () => ORG_ONLY_RESOURCES,
|
|
70
82
|
OrgApi: () => OrgApi,
|
|
71
83
|
OrgFeature: () => OrgFeature,
|
|
@@ -85,15 +97,21 @@ __export(src_exports, {
|
|
|
85
97
|
REALTIME_MODEL_GEMINI_VERTEX: () => REALTIME_MODEL_GEMINI_VERTEX,
|
|
86
98
|
REALTIME_MODEL_NOVA_SONIC: () => REALTIME_MODEL_NOVA_SONIC,
|
|
87
99
|
REALTIME_MODEL_OPENAI: () => REALTIME_MODEL_OPENAI,
|
|
100
|
+
REALTIME_MODEL_OPENAI_2: () => REALTIME_MODEL_OPENAI_2,
|
|
88
101
|
REALTIME_MODEL_OPENAI_MINI: () => REALTIME_MODEL_OPENAI_MINI,
|
|
102
|
+
Region: () => Region,
|
|
103
|
+
RegistrationIdentifier: () => RegistrationIdentifier,
|
|
89
104
|
Resource: () => Resource,
|
|
90
105
|
SCOPES: () => SCOPES,
|
|
91
106
|
SCOPE_PRESETS: () => SCOPE_PRESETS,
|
|
107
|
+
SMS_DELIVERY_FAILURE_STATUSES: () => SMS_DELIVERY_FAILURE_STATUSES,
|
|
92
108
|
STT_MODEL_DEEPGRAM_FLUX: () => STT_MODEL_DEEPGRAM_FLUX,
|
|
109
|
+
STT_MODEL_DEEPGRAM_FLUX_MULTI: () => STT_MODEL_DEEPGRAM_FLUX_MULTI,
|
|
93
110
|
STT_MODEL_ELEVENLABS_SCRIBE: () => STT_MODEL_ELEVENLABS_SCRIBE,
|
|
94
111
|
Scope: () => Scope,
|
|
95
112
|
ScopeCategory: () => ScopeCategory,
|
|
96
113
|
ScopeManager: () => ScopeManager,
|
|
114
|
+
SiteDnsRecordType: () => SiteDnsRecordType,
|
|
97
115
|
SupervisorsApi: () => SupervisorsApi,
|
|
98
116
|
TTS_MODEL_AWS_POLLY_GENERATIVE: () => TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
99
117
|
TTS_MODEL_AWS_POLLY_NEURAL: () => TTS_MODEL_AWS_POLLY_NEURAL,
|
|
@@ -105,6 +123,8 @@ __export(src_exports, {
|
|
|
105
123
|
TTS_PREVIEW_PROVIDERS: () => TTS_PREVIEW_PROVIDERS,
|
|
106
124
|
TemplatesApi: () => TemplatesApi,
|
|
107
125
|
ToolkitState: () => ToolkitState,
|
|
126
|
+
WorkflowAccessWarningResourceType: () => WorkflowAccessWarningResourceType,
|
|
127
|
+
WorkflowResourceType: () => WorkflowAccessWarningResourceType,
|
|
108
128
|
WorkspaceFeature: () => WorkspaceFeature,
|
|
109
129
|
WorkspaceProvisionStatus: () => WorkspaceProvisionStatus,
|
|
110
130
|
areDependenciesSatisfied: () => areDependenciesSatisfied,
|
|
@@ -112,6 +132,7 @@ __export(src_exports, {
|
|
|
112
132
|
clearRegistry: () => clearRegistry,
|
|
113
133
|
decodePermissions: () => decodePermissions,
|
|
114
134
|
encodePermissions: () => encodePermissions,
|
|
135
|
+
eventRuleActionParams: () => eventRuleActionParams,
|
|
115
136
|
formatAppContextAsMarkdown: () => formatAppContextAsMarkdown,
|
|
116
137
|
getAllFeatures: () => getAllFeatures,
|
|
117
138
|
getAllResourceSlugs: () => getAllResourceSlugs,
|
|
@@ -131,6 +152,7 @@ __export(src_exports, {
|
|
|
131
152
|
isChatType: () => isChatType,
|
|
132
153
|
isFeatureAvailable: () => isFeatureAvailable,
|
|
133
154
|
isRegistryInitialized: () => isRegistryInitialized,
|
|
155
|
+
isSMSDeliveryFailureStatus: () => isSMSDeliveryFailureStatus,
|
|
134
156
|
requiresAssistantParticipant: () => requiresAssistantParticipant,
|
|
135
157
|
usesBuiltinAssistant: () => usesBuiltinAssistant,
|
|
136
158
|
validateFeatureDependencies: () => validateFeatureDependencies
|
|
@@ -185,7 +207,7 @@ function parseOrgAuthChallenge(wwwAuthenticate) {
|
|
|
185
207
|
const cookieNameMatch = wwwAuthenticate.match(/cookie_name="([^"]+)"/);
|
|
186
208
|
const authUrlMatch = wwwAuthenticate.match(/auth_url="([^"]+)"/);
|
|
187
209
|
if (!orgUuidMatch?.[1] || !cookieNameMatch?.[1] || !authUrlMatch?.[1]) {
|
|
188
|
-
console.warn("Invalid org auth challenge header:"
|
|
210
|
+
console.warn("Invalid org auth challenge header: missing required fields");
|
|
189
211
|
return null;
|
|
190
212
|
}
|
|
191
213
|
return {
|
|
@@ -202,8 +224,17 @@ var BaseApiClient = class {
|
|
|
202
224
|
enhancedAuthHandler;
|
|
203
225
|
enhancedAuthInProgress = null;
|
|
204
226
|
orgAuthHandler;
|
|
227
|
+
orgAuthInProgress = null;
|
|
205
228
|
actingMemberUuid;
|
|
206
229
|
orgToken;
|
|
230
|
+
/**
|
|
231
|
+
* The org_uuid that issued the current orgToken. Tracked so we can detect
|
|
232
|
+
* a 401 challenge from a *different* org and re-fire the handler — the
|
|
233
|
+
* orgToken is an opaque JWE we cannot decrypt client-side, so without this
|
|
234
|
+
* the original guard `!this.orgToken` would prevent re-auth across orgs and
|
|
235
|
+
* surface as a silent 401 in multi-org CLI workflows.
|
|
236
|
+
*/
|
|
237
|
+
orgTokenOrgUuid;
|
|
207
238
|
constructor(apiKey, baseUrl, customFetch) {
|
|
208
239
|
this.baseUrl = baseUrl;
|
|
209
240
|
this.apiKey = apiKey;
|
|
@@ -253,9 +284,15 @@ var BaseApiClient = class {
|
|
|
253
284
|
* Set the org token for cross-domain requests.
|
|
254
285
|
* When set, all API requests will include the X-Org-Token header,
|
|
255
286
|
* allowing org-level SSO verification without cookies.
|
|
287
|
+
*
|
|
288
|
+
* `orgUuid` is the org that issued the token; passing it lets the 401
|
|
289
|
+
* handler detect a stale token when a subsequent request targets a
|
|
290
|
+
* different org and re-fire the org-auth handler instead of silently
|
|
291
|
+
* 401-ing. Callers without that context (legacy / unknown) may omit it.
|
|
256
292
|
*/
|
|
257
|
-
setOrgToken(token) {
|
|
293
|
+
setOrgToken(token, orgUuid) {
|
|
258
294
|
this.orgToken = token;
|
|
295
|
+
this.orgTokenOrgUuid = token ? orgUuid : void 0;
|
|
259
296
|
}
|
|
260
297
|
async fetch(endpoint, options) {
|
|
261
298
|
try {
|
|
@@ -303,29 +340,61 @@ var BaseApiClient = class {
|
|
|
303
340
|
return await this.fetch(endpoint, options);
|
|
304
341
|
} catch (retryError) {
|
|
305
342
|
this.orgToken = void 0;
|
|
343
|
+
this.orgTokenOrgUuid = void 0;
|
|
306
344
|
throw retryError;
|
|
307
345
|
}
|
|
308
346
|
}
|
|
309
347
|
if (response.status === 401) {
|
|
310
348
|
const orgAuthInfo = parseOrgAuthChallenge(response.headers.get("WWW-Authenticate"));
|
|
349
|
+
if (orgAuthInfo && this.orgToken && this.orgTokenOrgUuid && this.orgTokenOrgUuid !== orgAuthInfo.orgUuid) {
|
|
350
|
+
this.orgToken = void 0;
|
|
351
|
+
this.orgTokenOrgUuid = void 0;
|
|
352
|
+
}
|
|
311
353
|
if (orgAuthInfo && !this.orgToken) {
|
|
312
354
|
const requestCookieName = orgAuthInfo.cookieName.replace(
|
|
313
|
-
|
|
355
|
+
/^orgToken/,
|
|
314
356
|
"requestOrgToken"
|
|
315
357
|
);
|
|
316
358
|
const cachedOrgToken = getCookieValue(requestCookieName);
|
|
317
359
|
if (cachedOrgToken) {
|
|
318
360
|
this.orgToken = cachedOrgToken;
|
|
361
|
+
this.orgTokenOrgUuid = orgAuthInfo.orgUuid;
|
|
319
362
|
try {
|
|
320
363
|
return await this.fetch(endpoint, options);
|
|
321
364
|
} catch (retryError) {
|
|
322
365
|
this.orgToken = void 0;
|
|
366
|
+
this.orgTokenOrgUuid = void 0;
|
|
323
367
|
throw retryError;
|
|
324
368
|
}
|
|
325
369
|
}
|
|
326
370
|
if (this.orgAuthHandler) {
|
|
327
|
-
|
|
328
|
-
|
|
371
|
+
if (!this.orgAuthInProgress) {
|
|
372
|
+
const handler = this.orgAuthHandler;
|
|
373
|
+
this.orgAuthInProgress = (async () => {
|
|
374
|
+
try {
|
|
375
|
+
await handler(orgAuthInfo);
|
|
376
|
+
} finally {
|
|
377
|
+
this.orgAuthInProgress = null;
|
|
378
|
+
}
|
|
379
|
+
})();
|
|
380
|
+
}
|
|
381
|
+
await this.orgAuthInProgress;
|
|
382
|
+
const postHandlerToken = getCookieValue(requestCookieName) ?? this.orgToken;
|
|
383
|
+
if (!postHandlerToken) {
|
|
384
|
+
throw new ApiError(
|
|
385
|
+
"Organization authentication did not issue a token",
|
|
386
|
+
401
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
this.orgToken = postHandlerToken;
|
|
390
|
+
this.orgTokenOrgUuid = orgAuthInfo.orgUuid;
|
|
391
|
+
try {
|
|
392
|
+
return await this.fetch(endpoint, options);
|
|
393
|
+
} catch (retryError) {
|
|
394
|
+
this.orgToken = void 0;
|
|
395
|
+
this.orgTokenOrgUuid = void 0;
|
|
396
|
+
throw retryError;
|
|
397
|
+
}
|
|
329
398
|
}
|
|
330
399
|
}
|
|
331
400
|
}
|
|
@@ -424,29 +493,61 @@ ${formattedErrors}`, response.status);
|
|
|
424
493
|
return await this.fetchRaw(endpoint, options, allowedErrorStatuses);
|
|
425
494
|
} catch (retryError) {
|
|
426
495
|
this.orgToken = void 0;
|
|
496
|
+
this.orgTokenOrgUuid = void 0;
|
|
427
497
|
throw retryError;
|
|
428
498
|
}
|
|
429
499
|
}
|
|
430
500
|
if (response.status === 401) {
|
|
431
501
|
const orgAuthInfo = parseOrgAuthChallenge(response.headers.get("WWW-Authenticate"));
|
|
502
|
+
if (orgAuthInfo && this.orgToken && this.orgTokenOrgUuid && this.orgTokenOrgUuid !== orgAuthInfo.orgUuid) {
|
|
503
|
+
this.orgToken = void 0;
|
|
504
|
+
this.orgTokenOrgUuid = void 0;
|
|
505
|
+
}
|
|
432
506
|
if (orgAuthInfo && !this.orgToken) {
|
|
433
507
|
const requestCookieName = orgAuthInfo.cookieName.replace(
|
|
434
|
-
|
|
508
|
+
/^orgToken/,
|
|
435
509
|
"requestOrgToken"
|
|
436
510
|
);
|
|
437
511
|
const cachedOrgToken = getCookieValue(requestCookieName);
|
|
438
512
|
if (cachedOrgToken) {
|
|
439
513
|
this.orgToken = cachedOrgToken;
|
|
514
|
+
this.orgTokenOrgUuid = orgAuthInfo.orgUuid;
|
|
440
515
|
try {
|
|
441
516
|
return await this.fetchRaw(endpoint, options, allowedErrorStatuses);
|
|
442
517
|
} catch (retryError) {
|
|
443
518
|
this.orgToken = void 0;
|
|
519
|
+
this.orgTokenOrgUuid = void 0;
|
|
444
520
|
throw retryError;
|
|
445
521
|
}
|
|
446
522
|
}
|
|
447
523
|
if (this.orgAuthHandler) {
|
|
448
|
-
|
|
449
|
-
|
|
524
|
+
if (!this.orgAuthInProgress) {
|
|
525
|
+
const handler = this.orgAuthHandler;
|
|
526
|
+
this.orgAuthInProgress = (async () => {
|
|
527
|
+
try {
|
|
528
|
+
await handler(orgAuthInfo);
|
|
529
|
+
} finally {
|
|
530
|
+
this.orgAuthInProgress = null;
|
|
531
|
+
}
|
|
532
|
+
})();
|
|
533
|
+
}
|
|
534
|
+
await this.orgAuthInProgress;
|
|
535
|
+
const postHandlerToken = getCookieValue(requestCookieName) ?? this.orgToken;
|
|
536
|
+
if (!postHandlerToken) {
|
|
537
|
+
throw new ApiError(
|
|
538
|
+
"Organization authentication did not issue a token",
|
|
539
|
+
401
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
this.orgToken = postHandlerToken;
|
|
543
|
+
this.orgTokenOrgUuid = orgAuthInfo.orgUuid;
|
|
544
|
+
try {
|
|
545
|
+
return await this.fetchRaw(endpoint, options, allowedErrorStatuses);
|
|
546
|
+
} catch (retryError) {
|
|
547
|
+
this.orgToken = void 0;
|
|
548
|
+
this.orgTokenOrgUuid = void 0;
|
|
549
|
+
throw retryError;
|
|
550
|
+
}
|
|
450
551
|
}
|
|
451
552
|
}
|
|
452
553
|
}
|
|
@@ -869,7 +970,8 @@ var AssignmentsApi = class extends BaseApiClient {
|
|
|
869
970
|
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
870
971
|
if (options.mine) params.append("mine", options.mine.toString());
|
|
871
972
|
if (options.taskId) params.append("taskId", options.taskId.toString());
|
|
872
|
-
if (options.memberId
|
|
973
|
+
if (options.memberId !== void 0)
|
|
974
|
+
params.append("memberId", options.memberId.toString());
|
|
873
975
|
if (options.status) params.append("status", options.status);
|
|
874
976
|
return this.fetch(
|
|
875
977
|
`w/${wid}/assignments${params.toString() ? `?${params.toString()}` : ""}`
|
|
@@ -1675,6 +1777,8 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
1675
1777
|
if (options.filters && options.filters.length > 0) {
|
|
1676
1778
|
params.append("filters", JSON.stringify(options.filters));
|
|
1677
1779
|
}
|
|
1780
|
+
if (options.createdAfter) params.append("createdAfter", options.createdAfter);
|
|
1781
|
+
if (options.createdBefore) params.append("createdBefore", options.createdBefore);
|
|
1678
1782
|
return params;
|
|
1679
1783
|
}
|
|
1680
1784
|
/** List chats with optional filtering, sorting, and pagination. */
|
|
@@ -2453,6 +2557,68 @@ var SlackAppsApi = class extends BaseApiClient {
|
|
|
2453
2557
|
}
|
|
2454
2558
|
};
|
|
2455
2559
|
|
|
2560
|
+
// src/api/teams-apps.ts
|
|
2561
|
+
var TeamsAppsApi = class extends BaseApiClient {
|
|
2562
|
+
/**
|
|
2563
|
+
* List all Teams apps configured for a workspace.
|
|
2564
|
+
*/
|
|
2565
|
+
async getTeamsApps(wid, options = {}) {
|
|
2566
|
+
const params = new URLSearchParams();
|
|
2567
|
+
if (options.page) params.append("page", options.page.toString());
|
|
2568
|
+
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
2569
|
+
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
2570
|
+
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
2571
|
+
if (options.search) params.append("search", options.search);
|
|
2572
|
+
return this.fetch(
|
|
2573
|
+
`w/${wid}/app-connections/teams/apps${params.toString() ? `?${params.toString()}` : ""}`
|
|
2574
|
+
);
|
|
2575
|
+
}
|
|
2576
|
+
async getTeamsApp(wid, appId) {
|
|
2577
|
+
return this.fetch(`w/${wid}/app-connections/teams/apps/${appId}`);
|
|
2578
|
+
}
|
|
2579
|
+
async createTeamsApp(wid, data) {
|
|
2580
|
+
return this.fetch(`w/${wid}/app-connections/teams/apps`, {
|
|
2581
|
+
method: "POST",
|
|
2582
|
+
body: JSON.stringify(data)
|
|
2583
|
+
});
|
|
2584
|
+
}
|
|
2585
|
+
async updateTeamsApp(wid, appId, data) {
|
|
2586
|
+
return this.fetch(`w/${wid}/app-connections/teams/apps/${appId}`, {
|
|
2587
|
+
method: "PUT",
|
|
2588
|
+
body: JSON.stringify(data)
|
|
2589
|
+
});
|
|
2590
|
+
}
|
|
2591
|
+
async deleteTeamsApp(wid, appId) {
|
|
2592
|
+
return this.fetch(`w/${wid}/app-connections/teams/apps/${appId}`, {
|
|
2593
|
+
method: "DELETE"
|
|
2594
|
+
});
|
|
2595
|
+
}
|
|
2596
|
+
async getTeamsConversations(wid, appId, options = {}) {
|
|
2597
|
+
const params = new URLSearchParams();
|
|
2598
|
+
if (options.page) params.append("page", options.page.toString());
|
|
2599
|
+
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
2600
|
+
return this.fetch(
|
|
2601
|
+
`w/${wid}/app-connections/teams/apps/${appId}/conversations${params.toString() ? `?${params.toString()}` : ""}`
|
|
2602
|
+
);
|
|
2603
|
+
}
|
|
2604
|
+
async getTeamsInstallations(wid, appId, options = {}) {
|
|
2605
|
+
const params = new URLSearchParams();
|
|
2606
|
+
if (options.page) params.append("page", options.page.toString());
|
|
2607
|
+
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
2608
|
+
return this.fetch(
|
|
2609
|
+
`w/${wid}/app-connections/teams/apps/${appId}/installations${params.toString() ? `?${params.toString()}` : ""}`
|
|
2610
|
+
);
|
|
2611
|
+
}
|
|
2612
|
+
async getTeamsAppAccounts(wid, appId, options = {}) {
|
|
2613
|
+
const params = new URLSearchParams();
|
|
2614
|
+
if (options.page) params.append("page", options.page.toString());
|
|
2615
|
+
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
2616
|
+
return this.fetch(
|
|
2617
|
+
`w/${wid}/app-connections/teams/apps/${appId}/accounts${params.toString() ? `?${params.toString()}` : ""}`
|
|
2618
|
+
);
|
|
2619
|
+
}
|
|
2620
|
+
};
|
|
2621
|
+
|
|
2456
2622
|
// src/api/events.ts
|
|
2457
2623
|
var EventsApi = class extends BaseApiClient {
|
|
2458
2624
|
/** List event rules in the workspace, paginated. */
|
|
@@ -2955,6 +3121,40 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
2955
3121
|
method: "DELETE"
|
|
2956
3122
|
});
|
|
2957
3123
|
}
|
|
3124
|
+
async listHealthieAppointmentTypes(wid, providerId) {
|
|
3125
|
+
const query = new URLSearchParams();
|
|
3126
|
+
if (providerId) query.set("provider_id", providerId);
|
|
3127
|
+
const qs = query.toString() ? `?${query.toString()}` : "";
|
|
3128
|
+
return this.fetch(
|
|
3129
|
+
`w/${wid}/app-connections/healthie/appointment-types${qs}`
|
|
3130
|
+
);
|
|
3131
|
+
}
|
|
3132
|
+
async listHealthiePatients(wid, keywords) {
|
|
3133
|
+
const query = new URLSearchParams();
|
|
3134
|
+
if (keywords?.trim()) query.set("keywords", keywords.trim());
|
|
3135
|
+
const qs = query.toString() ? `?${query.toString()}` : "";
|
|
3136
|
+
return this.fetch(
|
|
3137
|
+
`w/${wid}/app-connections/healthie/patients${qs}`
|
|
3138
|
+
);
|
|
3139
|
+
}
|
|
3140
|
+
async getHealthieAvailableSlots(wid, request) {
|
|
3141
|
+
return this.fetch(
|
|
3142
|
+
`w/${wid}/app-connections/healthie/scheduling/available-slots`,
|
|
3143
|
+
{
|
|
3144
|
+
method: "POST",
|
|
3145
|
+
body: JSON.stringify(request)
|
|
3146
|
+
}
|
|
3147
|
+
);
|
|
3148
|
+
}
|
|
3149
|
+
async bookHealthieAppointment(wid, request) {
|
|
3150
|
+
return this.fetch(
|
|
3151
|
+
`w/${wid}/app-connections/healthie/scheduling/book`,
|
|
3152
|
+
{
|
|
3153
|
+
method: "POST",
|
|
3154
|
+
body: JSON.stringify(request)
|
|
3155
|
+
}
|
|
3156
|
+
);
|
|
3157
|
+
}
|
|
2958
3158
|
};
|
|
2959
3159
|
|
|
2960
3160
|
// src/api/files.ts
|
|
@@ -3222,10 +3422,17 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
3222
3422
|
method: "POST"
|
|
3223
3423
|
});
|
|
3224
3424
|
}
|
|
3425
|
+
/** Reply to an email from the inbox. */
|
|
3426
|
+
async replyToEmail(wid, inboxId, emailId, content) {
|
|
3427
|
+
return this.fetch(`w/${wid}/inboxes/${inboxId}/emails/${emailId}/reply`, {
|
|
3428
|
+
method: "POST",
|
|
3429
|
+
body: JSON.stringify({ content })
|
|
3430
|
+
});
|
|
3431
|
+
}
|
|
3225
3432
|
/** Convert an email to text, markdown, or PDF format. */
|
|
3226
|
-
async convertEmail(wid, emailId, format = "pdf") {
|
|
3433
|
+
async convertEmail(wid, inboxId, emailId, format = "pdf") {
|
|
3227
3434
|
return this.fetch(
|
|
3228
|
-
`w/${wid}/inboxes/emails/${emailId}/convert?format=${format}`,
|
|
3435
|
+
`w/${wid}/inboxes/${inboxId}/emails/${emailId}/convert?format=${format}`,
|
|
3229
3436
|
{
|
|
3230
3437
|
method: "POST"
|
|
3231
3438
|
}
|
|
@@ -3400,6 +3607,19 @@ var AppConnectionsApi = class extends BaseApiClient {
|
|
|
3400
3607
|
{ method: "DELETE" }
|
|
3401
3608
|
);
|
|
3402
3609
|
}
|
|
3610
|
+
/**
|
|
3611
|
+
* List distinct ``MemberField.key`` values scoped to a connection
|
|
3612
|
+
* (GRA-2920). Drives the Monday custom-match "Custom fields" picker.
|
|
3613
|
+
*
|
|
3614
|
+
* Returns only the set of keys already in use on this connection;
|
|
3615
|
+
* values are intentionally never exposed. Operators can also add a
|
|
3616
|
+
* new key via the UI's "Add custom field key" free-text action.
|
|
3617
|
+
*/
|
|
3618
|
+
async listConnectionMemberFieldKeys(wid, connectionId) {
|
|
3619
|
+
return this.fetch(
|
|
3620
|
+
`w/${wid}/app-connections/${connectionId}/member-field-keys`
|
|
3621
|
+
);
|
|
3622
|
+
}
|
|
3403
3623
|
};
|
|
3404
3624
|
|
|
3405
3625
|
// src/api/mcp-servers.ts
|
|
@@ -4022,33 +4242,6 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
4022
4242
|
);
|
|
4023
4243
|
return { columns };
|
|
4024
4244
|
}
|
|
4025
|
-
/**
|
|
4026
|
-
* Create a webhook in Monday.com
|
|
4027
|
-
*/
|
|
4028
|
-
async createWebhook(wid, params) {
|
|
4029
|
-
return this.fetch(`w/${wid}/app-connections/monday/webhooks`, {
|
|
4030
|
-
method: "POST",
|
|
4031
|
-
body: JSON.stringify(params)
|
|
4032
|
-
});
|
|
4033
|
-
}
|
|
4034
|
-
/**
|
|
4035
|
-
* Delete a webhook from Monday.com
|
|
4036
|
-
*/
|
|
4037
|
-
async deleteWebhook(wid, webhookId) {
|
|
4038
|
-
return this.fetch(
|
|
4039
|
-
`w/${wid}/app-connections/monday/webhooks/${webhookId}`,
|
|
4040
|
-
{ method: "DELETE" }
|
|
4041
|
-
);
|
|
4042
|
-
}
|
|
4043
|
-
/**
|
|
4044
|
-
* Get details of a specific webhook from Monday.com
|
|
4045
|
-
* Returns 404 if the webhook no longer exists
|
|
4046
|
-
*/
|
|
4047
|
-
async getWebhook(wid, boardId, webhookId) {
|
|
4048
|
-
return this.fetch(
|
|
4049
|
-
`w/${wid}/app-connections/monday/boards/${boardId}/webhooks/${webhookId}`
|
|
4050
|
-
);
|
|
4051
|
-
}
|
|
4052
4245
|
/**
|
|
4053
4246
|
* Get groups for a specific Monday.com board
|
|
4054
4247
|
*/
|
|
@@ -4661,6 +4854,53 @@ var OrgApi = class extends BaseApiClient {
|
|
|
4661
4854
|
body: JSON.stringify({ sampleMessages })
|
|
4662
4855
|
});
|
|
4663
4856
|
}
|
|
4857
|
+
// ============================================================================
|
|
4858
|
+
// Organization Business Profile API (Twilio Trust Hub Secondary CP)
|
|
4859
|
+
// ============================================================================
|
|
4860
|
+
/**
|
|
4861
|
+
* Live fetch of the org's Twilio Customer Profile + related entities.
|
|
4862
|
+
*
|
|
4863
|
+
* Response carries both the lifecycle `status` and the compliance
|
|
4864
|
+
* `evaluationStatus`. Twilio models lifecycle and evaluation as two
|
|
4865
|
+
* separate enums on two separate resources, so the Submit-button gate
|
|
4866
|
+
* is `evaluationStatus === 'compliant'` — never `status === 'compliant'`,
|
|
4867
|
+
* which is impossible (lifecycle status is one of `draft` /
|
|
4868
|
+
* `pending-review` / `in-review` / `twilio-approved` / `twilio-rejected`).
|
|
4869
|
+
*/
|
|
4870
|
+
async getBusinessProfile(orgUuid) {
|
|
4871
|
+
return this.fetch(`o/${orgUuid}/business-profile`);
|
|
4872
|
+
}
|
|
4873
|
+
/**
|
|
4874
|
+
* Upsert the org's business profile. Idempotent via cached SIDs.
|
|
4875
|
+
* Returns a fresh BusinessProfileResponse on success — including the
|
|
4876
|
+
* compliance evaluation result so the frontend can immediately enable
|
|
4877
|
+
* Submit without a second round-trip.
|
|
4878
|
+
*/
|
|
4879
|
+
async updateBusinessProfile(orgUuid, data) {
|
|
4880
|
+
return this.fetch(`o/${orgUuid}/business-profile`, {
|
|
4881
|
+
method: "PUT",
|
|
4882
|
+
body: JSON.stringify(data)
|
|
4883
|
+
});
|
|
4884
|
+
}
|
|
4885
|
+
/**
|
|
4886
|
+
* Submit the business profile to Twilio for review. Server re-evaluates
|
|
4887
|
+
* compliance live and returns 412 if the profile is not currently
|
|
4888
|
+
* `compliant`; returns 409 if a review is already in flight.
|
|
4889
|
+
*/
|
|
4890
|
+
async submitBusinessProfile(orgUuid) {
|
|
4891
|
+
return this.fetch(`o/${orgUuid}/business-profile/submit`, {
|
|
4892
|
+
method: "POST"
|
|
4893
|
+
});
|
|
4894
|
+
}
|
|
4895
|
+
/**
|
|
4896
|
+
* Cancel an in-flight Twilio review. Resets the cached profile state
|
|
4897
|
+
* to `draft` so the user can edit and resubmit.
|
|
4898
|
+
*/
|
|
4899
|
+
async cancelBusinessProfile(orgUuid) {
|
|
4900
|
+
return this.fetch(`o/${orgUuid}/business-profile/cancel`, {
|
|
4901
|
+
method: "POST"
|
|
4902
|
+
});
|
|
4903
|
+
}
|
|
4664
4904
|
/**
|
|
4665
4905
|
* List available member roles for a workspace in the organization.
|
|
4666
4906
|
*/
|
|
@@ -5012,15 +5252,15 @@ var PronunciationsApi = class extends BaseApiClient {
|
|
|
5012
5252
|
// src/api/prompts.ts
|
|
5013
5253
|
var PromptsApi = class extends BaseApiClient {
|
|
5014
5254
|
/** Inspect the full composed prompt for a task (static) or chat (live). */
|
|
5015
|
-
async inspectPrompt(wid,
|
|
5255
|
+
async inspectPrompt(wid, options) {
|
|
5016
5256
|
const params = new URLSearchParams();
|
|
5017
|
-
if (options.chatId) {
|
|
5257
|
+
if (options.chatId !== void 0) {
|
|
5018
5258
|
params.append("chat_id", options.chatId.toString());
|
|
5019
|
-
} else {
|
|
5020
|
-
params.append("task_id", taskId.toString());
|
|
5259
|
+
} else if (options.taskId !== void 0) {
|
|
5260
|
+
params.append("task_id", options.taskId.toString());
|
|
5021
5261
|
}
|
|
5022
5262
|
if (options.channel) params.append("channel", options.channel);
|
|
5023
|
-
if (options.turn) params.append("turn", options.turn.toString());
|
|
5263
|
+
if (options.turn !== void 0) params.append("turn", options.turn.toString());
|
|
5024
5264
|
return this.fetch(`w/${wid}/prompts/inspect?${params}`);
|
|
5025
5265
|
}
|
|
5026
5266
|
};
|
|
@@ -5373,7 +5613,8 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
5373
5613
|
dryRun: options?.dryRun ?? false,
|
|
5374
5614
|
resetCheckpoints: options?.resetCheckpoints ?? false,
|
|
5375
5615
|
...options?.entityType ? { entityType: options.entityType } : {},
|
|
5376
|
-
...options?.boardId ? { boardId: options.boardId } : {}
|
|
5616
|
+
...options?.boardId ? { boardId: options.boardId } : {},
|
|
5617
|
+
...typeof options?.recordLimit === "number" ? { recordLimit: options.recordLimit } : {}
|
|
5377
5618
|
})
|
|
5378
5619
|
});
|
|
5379
5620
|
}
|
|
@@ -5392,6 +5633,19 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
5392
5633
|
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items?limit=${limit}`
|
|
5393
5634
|
);
|
|
5394
5635
|
}
|
|
5636
|
+
/**
|
|
5637
|
+
* Clear a manual-unlink exclusion for a member on a connection so
|
|
5638
|
+
* subsequent outbound syncs stop silently skipping them. Idempotent:
|
|
5639
|
+
* returns ``cleared=false`` when no matching exclusion exists.
|
|
5640
|
+
* ``boardId`` is only meaningful for multi-scope connectors (Monday).
|
|
5641
|
+
*/
|
|
5642
|
+
async clearConnectionMemberExclusion(wid, connectionId, memberId, options) {
|
|
5643
|
+
const query = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
|
|
5644
|
+
return this.fetch(
|
|
5645
|
+
`w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query}`,
|
|
5646
|
+
{ method: "DELETE" }
|
|
5647
|
+
);
|
|
5648
|
+
}
|
|
5395
5649
|
};
|
|
5396
5650
|
|
|
5397
5651
|
// src/api/hubspot.ts
|
|
@@ -5765,6 +6019,98 @@ var SubscriptionsApi = class extends BaseApiClient {
|
|
|
5765
6019
|
}
|
|
5766
6020
|
};
|
|
5767
6021
|
|
|
6022
|
+
// src/api/support-requests.ts
|
|
6023
|
+
function supportRequestParams(params) {
|
|
6024
|
+
const searchParams = new URLSearchParams();
|
|
6025
|
+
if (params?.page) searchParams.append("page", params.page.toString());
|
|
6026
|
+
if (params?.pageSize) searchParams.append("pageSize", params.pageSize.toString());
|
|
6027
|
+
if (params?.status) searchParams.append("status", params.status);
|
|
6028
|
+
if (params?.supportRequestType) {
|
|
6029
|
+
searchParams.append("supportRequestType", params.supportRequestType);
|
|
6030
|
+
}
|
|
6031
|
+
if (params?.severity) searchParams.append("severity", params.severity);
|
|
6032
|
+
if (params?.source) searchParams.append("source", params.source);
|
|
6033
|
+
if (params?.organizationId !== void 0) {
|
|
6034
|
+
searchParams.append("organizationId", params.organizationId.toString());
|
|
6035
|
+
}
|
|
6036
|
+
if (params?.workspaceId !== void 0) {
|
|
6037
|
+
searchParams.append("workspaceId", params.workspaceId.toString());
|
|
6038
|
+
}
|
|
6039
|
+
if (params?.linearLinked !== void 0) {
|
|
6040
|
+
searchParams.append("linearLinked", params.linearLinked.toString());
|
|
6041
|
+
}
|
|
6042
|
+
const query = searchParams.toString();
|
|
6043
|
+
return query ? `?${query}` : "";
|
|
6044
|
+
}
|
|
6045
|
+
var SupportRequestsApi = class extends BaseApiClient {
|
|
6046
|
+
async listSupportRequests(params) {
|
|
6047
|
+
return this.fetch(
|
|
6048
|
+
`support-requests${supportRequestParams(params)}`
|
|
6049
|
+
);
|
|
6050
|
+
}
|
|
6051
|
+
async getSupportRequest(uuid) {
|
|
6052
|
+
return this.fetch(`support-requests/${uuid}`);
|
|
6053
|
+
}
|
|
6054
|
+
async createSupportRequest(data) {
|
|
6055
|
+
return this.fetch("support-requests", {
|
|
6056
|
+
method: "POST",
|
|
6057
|
+
body: JSON.stringify(data)
|
|
6058
|
+
});
|
|
6059
|
+
}
|
|
6060
|
+
async commentOnSupportRequest(uuid, data) {
|
|
6061
|
+
return this.fetch(`support-requests/${uuid}/comments`, {
|
|
6062
|
+
method: "POST",
|
|
6063
|
+
body: JSON.stringify(data)
|
|
6064
|
+
});
|
|
6065
|
+
}
|
|
6066
|
+
async listOrgSupportRequests(orgUuid, params) {
|
|
6067
|
+
return this.fetch(
|
|
6068
|
+
`o/${orgUuid}/support-requests${supportRequestParams(params)}`
|
|
6069
|
+
);
|
|
6070
|
+
}
|
|
6071
|
+
async getOrgSupportRequest(orgUuid, uuid) {
|
|
6072
|
+
return this.fetch(`o/${orgUuid}/support-requests/${uuid}`);
|
|
6073
|
+
}
|
|
6074
|
+
async createOrgSupportRequest(orgUuid, data) {
|
|
6075
|
+
return this.fetch(`o/${orgUuid}/support-requests`, {
|
|
6076
|
+
method: "POST",
|
|
6077
|
+
body: JSON.stringify(data)
|
|
6078
|
+
});
|
|
6079
|
+
}
|
|
6080
|
+
async commentOnOrgSupportRequest(orgUuid, uuid, data) {
|
|
6081
|
+
return this.fetch(`o/${orgUuid}/support-requests/${uuid}/comments`, {
|
|
6082
|
+
method: "POST",
|
|
6083
|
+
body: JSON.stringify(data)
|
|
6084
|
+
});
|
|
6085
|
+
}
|
|
6086
|
+
async listWorkspaceSupportRequests(workspaceUuid, params) {
|
|
6087
|
+
return this.fetch(
|
|
6088
|
+
`w/${workspaceUuid}/support-requests${supportRequestParams(params)}`
|
|
6089
|
+
);
|
|
6090
|
+
}
|
|
6091
|
+
async getWorkspaceSupportRequest(workspaceUuid, uuid) {
|
|
6092
|
+
return this.fetch(`w/${workspaceUuid}/support-requests/${uuid}`);
|
|
6093
|
+
}
|
|
6094
|
+
async createWorkspaceSupportRequest(workspaceUuid, data) {
|
|
6095
|
+
return this.fetch(`w/${workspaceUuid}/support-requests`, {
|
|
6096
|
+
method: "POST",
|
|
6097
|
+
body: JSON.stringify(data)
|
|
6098
|
+
});
|
|
6099
|
+
}
|
|
6100
|
+
async commentOnWorkspaceSupportRequest(workspaceUuid, uuid, data) {
|
|
6101
|
+
return this.fetch(`w/${workspaceUuid}/support-requests/${uuid}/comments`, {
|
|
6102
|
+
method: "POST",
|
|
6103
|
+
body: JSON.stringify(data)
|
|
6104
|
+
});
|
|
6105
|
+
}
|
|
6106
|
+
async closeWorkspaceSupportRequest(workspaceUuid, uuid, data = {}) {
|
|
6107
|
+
return this.fetch(`w/${workspaceUuid}/support-requests/${uuid}/close`, {
|
|
6108
|
+
method: "POST",
|
|
6109
|
+
body: JSON.stringify(data)
|
|
6110
|
+
});
|
|
6111
|
+
}
|
|
6112
|
+
};
|
|
6113
|
+
|
|
5768
6114
|
// src/api/customers.ts
|
|
5769
6115
|
var CustomersApi = class extends BaseApiClient {
|
|
5770
6116
|
async getMyCustomers() {
|
|
@@ -5779,8 +6125,8 @@ var CustomersApi = class extends BaseApiClient {
|
|
|
5779
6125
|
async getMyCustomerSubscriptions(uuid, opts) {
|
|
5780
6126
|
const params = new URLSearchParams();
|
|
5781
6127
|
if (opts?.status) params.set("status", opts.status);
|
|
5782
|
-
if (opts?.page) params.set("page", String(opts.page));
|
|
5783
|
-
if (opts?.pageSize) params.set("page_size", String(opts.pageSize));
|
|
6128
|
+
if (opts?.page !== void 0) params.set("page", String(opts.page));
|
|
6129
|
+
if (opts?.pageSize !== void 0) params.set("page_size", String(opts.pageSize));
|
|
5784
6130
|
const qs = params.toString();
|
|
5785
6131
|
return this.fetch(`customers/${uuid}/subscriptions${qs ? "?" + qs : ""}`);
|
|
5786
6132
|
}
|
|
@@ -5817,6 +6163,16 @@ var CustomersApi = class extends BaseApiClient {
|
|
|
5817
6163
|
method: "PUT"
|
|
5818
6164
|
});
|
|
5819
6165
|
}
|
|
6166
|
+
async getMyCustomerCreditGrants(uuid, opts) {
|
|
6167
|
+
const params = new URLSearchParams();
|
|
6168
|
+
if (opts?.subscriptionId !== void 0) {
|
|
6169
|
+
params.set("subscription_id", String(opts.subscriptionId));
|
|
6170
|
+
}
|
|
6171
|
+
if (opts?.page !== void 0) params.set("page", String(opts.page));
|
|
6172
|
+
if (opts?.pageSize !== void 0) params.set("page_size", String(opts.pageSize));
|
|
6173
|
+
const qs = params.toString();
|
|
6174
|
+
return this.fetch(`customers/${uuid}/credit-grants${qs ? "?" + qs : ""}`);
|
|
6175
|
+
}
|
|
5820
6176
|
};
|
|
5821
6177
|
|
|
5822
6178
|
// src/api/resellers.ts
|
|
@@ -6051,6 +6407,14 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
6051
6407
|
method: "DELETE"
|
|
6052
6408
|
});
|
|
6053
6409
|
}
|
|
6410
|
+
/**
|
|
6411
|
+
* Get Journey Health diagnostics — authoring issues and runtime
|
|
6412
|
+
* failures for a single journey. PHI-safe: response carries IDs,
|
|
6413
|
+
* counts, error_type strings, and timestamps only.
|
|
6414
|
+
*/
|
|
6415
|
+
async getJourneyHealth(wid, journeyId) {
|
|
6416
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/health`);
|
|
6417
|
+
}
|
|
6054
6418
|
/** Create a step within a journey. */
|
|
6055
6419
|
async createStep(wid, journeyId, data) {
|
|
6056
6420
|
return this.fetch(`w/${wid}/journeys/${journeyId}/steps`, {
|
|
@@ -6118,6 +6482,13 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
6118
6482
|
if (params?.page) qs.set("page", String(params.page));
|
|
6119
6483
|
if (params?.pageSize) qs.set("pageSize", String(params.pageSize));
|
|
6120
6484
|
if (params?.search) qs.set("search", params.search);
|
|
6485
|
+
if (params?.status) qs.set("status", params.status);
|
|
6486
|
+
if (params?.enrolledAfter) qs.set("enrolledAfter", params.enrolledAfter);
|
|
6487
|
+
if (params?.enrolledBefore) qs.set("enrolledBefore", params.enrolledBefore);
|
|
6488
|
+
if (params?.currentTaskId !== void 0)
|
|
6489
|
+
qs.set("currentTaskId", String(params.currentTaskId));
|
|
6490
|
+
if (params?.runtimeFailureEdgeId !== void 0)
|
|
6491
|
+
qs.set("runtimeFailureEdgeId", String(params.runtimeFailureEdgeId));
|
|
6121
6492
|
const query = qs.toString();
|
|
6122
6493
|
return this.fetch(
|
|
6123
6494
|
`w/${wid}/journeys/${journeyId}/members${query ? `?${query}` : ""}`
|
|
@@ -6138,10 +6509,10 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
6138
6509
|
});
|
|
6139
6510
|
}
|
|
6140
6511
|
/** Re-enroll a canceled member back to enrolled status. */
|
|
6141
|
-
async reenrollMember(wid, journeyId,
|
|
6512
|
+
async reenrollMember(wid, journeyId, data) {
|
|
6142
6513
|
return this.fetch(`w/${wid}/journeys/${journeyId}/reenroll`, {
|
|
6143
6514
|
method: "POST",
|
|
6144
|
-
body: JSON.stringify(
|
|
6515
|
+
body: JSON.stringify(data)
|
|
6145
6516
|
});
|
|
6146
6517
|
}
|
|
6147
6518
|
/** Hard-delete a canceled enrollment so the member can be re-enrolled fresh. */
|
|
@@ -6154,6 +6525,18 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
6154
6525
|
async getMemberJourneys(wid, memberId) {
|
|
6155
6526
|
return this.fetch(`w/${wid}/journeys/by-member/${memberId}`);
|
|
6156
6527
|
}
|
|
6528
|
+
/**
|
|
6529
|
+
* Dry-run heartbeat CEL evaluation for an enrolled member.
|
|
6530
|
+
*
|
|
6531
|
+
* Evaluates all PENDING steps exactly as the heartbeat would, but writes no
|
|
6532
|
+
* state changes. Returns step-by-step results for debugging stuck members.
|
|
6533
|
+
*/
|
|
6534
|
+
async testRunJourney(wid, journeyId, memberId) {
|
|
6535
|
+
return this.fetch(
|
|
6536
|
+
`w/${wid}/journeys/${journeyId}/members/${memberId}/test-run`,
|
|
6537
|
+
{ method: "POST" }
|
|
6538
|
+
);
|
|
6539
|
+
}
|
|
6157
6540
|
// ===== JOURNEY NOTES =====
|
|
6158
6541
|
/** List notes for a journey. */
|
|
6159
6542
|
async getJourneyNotes(wid, journeyId) {
|
|
@@ -6306,6 +6689,30 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
6306
6689
|
`w/${wid}/workflows/${workflowId}/validate-config`
|
|
6307
6690
|
);
|
|
6308
6691
|
}
|
|
6692
|
+
/**
|
|
6693
|
+
* Replay automatic routing for a Chat without performing the transition.
|
|
6694
|
+
*
|
|
6695
|
+
* Operator tool: returns a PHI-safe trace describing what the
|
|
6696
|
+
* automatic-edge evaluator would do at the next turn. Never returns
|
|
6697
|
+
* raw CEL, Form values, Member values, Chat content, or raw
|
|
6698
|
+
* exception strings — only IDs, status labels, and the exception
|
|
6699
|
+
* class name when the evaluator raises.
|
|
6700
|
+
*
|
|
6701
|
+
* Requires Workflow edit permission.
|
|
6702
|
+
*/
|
|
6703
|
+
async getWorkflowRouteDryRun(wid, workflowId, args) {
|
|
6704
|
+
const params = new URLSearchParams();
|
|
6705
|
+
params.set("chat_id", String(args.chatId));
|
|
6706
|
+
if (args.currentTaskId !== void 0) {
|
|
6707
|
+
params.set("current_task_id", String(args.currentTaskId));
|
|
6708
|
+
}
|
|
6709
|
+
if (args.currentAssignmentTaskId !== void 0) {
|
|
6710
|
+
params.set("current_assignment_task_id", String(args.currentAssignmentTaskId));
|
|
6711
|
+
}
|
|
6712
|
+
return this.fetch(
|
|
6713
|
+
`w/${wid}/workflows/${workflowId}/route-dry-run?${params.toString()}`
|
|
6714
|
+
);
|
|
6715
|
+
}
|
|
6309
6716
|
// Workflow Contributors API
|
|
6310
6717
|
/** List all contributors for a workflow. */
|
|
6311
6718
|
async getWorkflowContributors(wid, workflowId) {
|
|
@@ -6569,6 +6976,13 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
6569
6976
|
return Scope2;
|
|
6570
6977
|
})(Scope || {});
|
|
6571
6978
|
|
|
6979
|
+
// src/types/generated/member.ts
|
|
6980
|
+
var BulkMemberResultStatus = {
|
|
6981
|
+
created: "created",
|
|
6982
|
+
updated: "updated",
|
|
6983
|
+
failed: "failed"
|
|
6984
|
+
};
|
|
6985
|
+
|
|
6572
6986
|
// src/types/member-types.ts
|
|
6573
6987
|
var MemberType = /* @__PURE__ */ ((MemberType2) => {
|
|
6574
6988
|
MemberType2["ANONYMOUS"] = "anonymous";
|
|
@@ -6605,7 +7019,6 @@ var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
|
|
|
6605
7019
|
EventRuleObjectType2["WORKFLOW"] = "workflow";
|
|
6606
7020
|
EventRuleObjectType2["CALENDAR"] = "calendar";
|
|
6607
7021
|
EventRuleObjectType2["CALENDAR_EVENT_TYPE"] = "calendar_event_type";
|
|
6608
|
-
EventRuleObjectType2["MONDAY"] = "monday";
|
|
6609
7022
|
EventRuleObjectType2["JOURNEY"] = "journey";
|
|
6610
7023
|
EventRuleObjectType2["CALL"] = "call";
|
|
6611
7024
|
return EventRuleObjectType2;
|
|
@@ -6627,7 +7040,8 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
6627
7040
|
EventRuleEventType2["CALENDAR_EVENT_CANCELLED"] = "calendar_event:cancelled";
|
|
6628
7041
|
EventRuleEventType2["CALENDAR_EVENT_STARTING"] = "calendar_event:starting";
|
|
6629
7042
|
EventRuleEventType2["CALENDAR_EVENT_ENDED"] = "calendar_event:ended";
|
|
6630
|
-
EventRuleEventType2["
|
|
7043
|
+
EventRuleEventType2["CONNECTOR_EVENT"] = "connector:event";
|
|
7044
|
+
EventRuleEventType2["ASSIGNMENT_CONCLUDED"] = "assignment:concluded";
|
|
6631
7045
|
EventRuleEventType2["JOURNEY_STEP_EXECUTE"] = "journey_step:execute";
|
|
6632
7046
|
EventRuleEventType2["JOURNEY_ENROLLED"] = "journey:enrolled";
|
|
6633
7047
|
EventRuleEventType2["JOURNEY_COMPLETED"] = "journey:completed";
|
|
@@ -6647,11 +7061,10 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
6647
7061
|
EventRuleActionType2["MESSAGE_VALIDATION"] = "message:validation";
|
|
6648
7062
|
EventRuleActionType2["CHAT_CREATE"] = "chat:create";
|
|
6649
7063
|
EventRuleActionType2["CHAT_CONTINUE"] = "chat:continue";
|
|
7064
|
+
EventRuleActionType2["CHAT_PAUSE"] = "chat:pause";
|
|
6650
7065
|
EventRuleActionType2["CHAT_SUMMARIZE"] = "chat:summarize";
|
|
6651
7066
|
EventRuleActionType2["EMAIL_SEND"] = "email:send";
|
|
6652
7067
|
EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
|
|
6653
|
-
EventRuleActionType2["INVOKE_SUPERVISOR"] = "supervisor:invoke";
|
|
6654
|
-
EventRuleActionType2["MONDAY_CREATE_ITEM"] = "monday:create_item";
|
|
6655
7068
|
EventRuleActionType2["MONDAY_UPSERT_ITEM"] = "monday:upsert_item";
|
|
6656
7069
|
EventRuleActionType2["MONDAY_REFRESH"] = "monday:refresh";
|
|
6657
7070
|
EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
|
|
@@ -6660,9 +7073,14 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
6660
7073
|
EventRuleActionType2["WHATSAPP_SEND"] = "whatsapp:send";
|
|
6661
7074
|
EventRuleActionType2["PHONE_CALL"] = "phone:call";
|
|
6662
7075
|
EventRuleActionType2["CONNECTION_SYNC"] = "connection:sync";
|
|
7076
|
+
EventRuleActionType2["CONNECTOR_OPERATION"] = "connector:operation";
|
|
6663
7077
|
EventRuleActionType2["ECW_REFRESH_MEMBER_ENCOUNTERS"] = "ecw:refresh_member_encounters";
|
|
7078
|
+
EventRuleActionType2["PLAY_AUDIO"] = "audio:play";
|
|
6664
7079
|
return EventRuleActionType2;
|
|
6665
7080
|
})(EventRuleActionType || {});
|
|
7081
|
+
function eventRuleActionParams(params) {
|
|
7082
|
+
return params ?? {};
|
|
7083
|
+
}
|
|
6666
7084
|
var MASKED_SECRET_SENTINEL = "__SECRET_SET__";
|
|
6667
7085
|
|
|
6668
7086
|
// src/types/billing-types.ts
|
|
@@ -6672,6 +7090,7 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
6672
7090
|
WorkspaceFeature2["WHATSAPP"] = "whatsapp";
|
|
6673
7091
|
WorkspaceFeature2["DISCORD"] = "discord";
|
|
6674
7092
|
WorkspaceFeature2["SLACK"] = "slack";
|
|
7093
|
+
WorkspaceFeature2["TEAMS"] = "teams";
|
|
6675
7094
|
WorkspaceFeature2["SITES"] = "sites";
|
|
6676
7095
|
WorkspaceFeature2["FORMS"] = "forms";
|
|
6677
7096
|
WorkspaceFeature2["MAPS"] = "maps";
|
|
@@ -6778,29 +7197,29 @@ var DataFieldType = /* @__PURE__ */ ((DataFieldType2) => {
|
|
|
6778
7197
|
DataFieldType2["TEXT"] = "text";
|
|
6779
7198
|
DataFieldType2["LONGTEXT"] = "longtext";
|
|
6780
7199
|
DataFieldType2["NUMBER"] = "number";
|
|
7200
|
+
DataFieldType2["INTEGER"] = "integer";
|
|
6781
7201
|
DataFieldType2["DATE"] = "date";
|
|
6782
7202
|
DataFieldType2["DATETIME"] = "datetime";
|
|
6783
7203
|
DataFieldType2["TIME_OF_DAY"] = "time_of_day";
|
|
6784
|
-
DataFieldType2["US_ZIP_CODE"] = "us_zip_code";
|
|
6785
|
-
DataFieldType2["INTEGER"] = "integer";
|
|
6786
7204
|
DataFieldType2["BOOLEAN"] = "boolean";
|
|
7205
|
+
DataFieldType2["FILE"] = "file";
|
|
7206
|
+
DataFieldType2["REFERENCE"] = "reference";
|
|
7207
|
+
DataFieldType2["FUNCTION"] = "function";
|
|
6787
7208
|
DataFieldType2["ARRAY"] = "array";
|
|
6788
7209
|
DataFieldType2["OBJECT"] = "object";
|
|
6789
|
-
DataFieldType2["
|
|
7210
|
+
DataFieldType2["US_ZIP_CODE"] = "us_zip_code";
|
|
6790
7211
|
return DataFieldType2;
|
|
6791
7212
|
})(DataFieldType || {});
|
|
6792
7213
|
var IndexStatus = /* @__PURE__ */ ((IndexStatus2) => {
|
|
6793
|
-
IndexStatus2["
|
|
6794
|
-
IndexStatus2["
|
|
6795
|
-
IndexStatus2["
|
|
6796
|
-
IndexStatus2["REMOVING"] = "removing";
|
|
6797
|
-
IndexStatus2["READY"] = "ready";
|
|
7214
|
+
IndexStatus2["NOT_INDEXED"] = "not_indexed";
|
|
7215
|
+
IndexStatus2["INDEXING"] = "indexing";
|
|
7216
|
+
IndexStatus2["INDEXED"] = "indexed";
|
|
6798
7217
|
IndexStatus2["ERROR"] = "error";
|
|
6799
7218
|
return IndexStatus2;
|
|
6800
7219
|
})(IndexStatus || {});
|
|
6801
7220
|
var DataTypeRecordScope = /* @__PURE__ */ ((DataTypeRecordScope2) => {
|
|
6802
|
-
DataTypeRecordScope2["MEMBER"] = "member";
|
|
6803
7221
|
DataTypeRecordScope2["WORKSPACE"] = "workspace";
|
|
7222
|
+
DataTypeRecordScope2["MEMBER"] = "member";
|
|
6804
7223
|
return DataTypeRecordScope2;
|
|
6805
7224
|
})(DataTypeRecordScope || {});
|
|
6806
7225
|
var DataSensitivity = /* @__PURE__ */ ((DataSensitivity2) => {
|
|
@@ -6812,21 +7231,48 @@ var DataSensitivity = /* @__PURE__ */ ((DataSensitivity2) => {
|
|
|
6812
7231
|
return DataSensitivity2;
|
|
6813
7232
|
})(DataSensitivity || {});
|
|
6814
7233
|
var DataCategory = /* @__PURE__ */ ((DataCategory2) => {
|
|
6815
|
-
DataCategory2["PERSONAL"] = "personal";
|
|
6816
|
-
DataCategory2["IDENTIFIER"] = "identifier";
|
|
6817
7234
|
DataCategory2["PHI"] = "phi";
|
|
7235
|
+
DataCategory2["PII"] = "pii";
|
|
7236
|
+
DataCategory2["FINANCIAL"] = "financial";
|
|
7237
|
+
DataCategory2["OPERATIONAL"] = "operational";
|
|
6818
7238
|
DataCategory2["CREDENTIAL"] = "credential";
|
|
7239
|
+
DataCategory2["PERSONAL"] = "personal";
|
|
7240
|
+
DataCategory2["IDENTIFIER"] = "identifier";
|
|
6819
7241
|
return DataCategory2;
|
|
6820
7242
|
})(DataCategory || {});
|
|
6821
7243
|
|
|
7244
|
+
// src/types/generated/ai_model.ts
|
|
7245
|
+
var ModelProvider = {
|
|
7246
|
+
unknown: "unknown",
|
|
7247
|
+
openai: "openai",
|
|
7248
|
+
google: "google",
|
|
7249
|
+
anthropic: "anthropic",
|
|
7250
|
+
aws: "aws",
|
|
7251
|
+
elevenlabs: "elevenlabs",
|
|
7252
|
+
deepgram: "deepgram",
|
|
7253
|
+
pocket: "pocket",
|
|
7254
|
+
xai: "xai",
|
|
7255
|
+
custom: "custom"
|
|
7256
|
+
};
|
|
7257
|
+
var ModelType = {
|
|
7258
|
+
chat: "chat",
|
|
7259
|
+
realtime: "realtime",
|
|
7260
|
+
image: "image",
|
|
7261
|
+
video: "video",
|
|
7262
|
+
stt: "stt",
|
|
7263
|
+
tts: "tts"
|
|
7264
|
+
};
|
|
7265
|
+
|
|
6822
7266
|
// src/types/ai-model-types.ts
|
|
6823
7267
|
var REALTIME_MODEL_OPENAI = "openai:realtime:gpt-realtime";
|
|
6824
7268
|
var REALTIME_MODEL_OPENAI_MINI = "openai:realtime:gpt-realtime-mini";
|
|
7269
|
+
var REALTIME_MODEL_OPENAI_2 = "openai:realtime:gpt-realtime-2";
|
|
6825
7270
|
var REALTIME_MODEL_GEMINI = "google:aistudio:gemini-3.1-flash-live";
|
|
6826
7271
|
var REALTIME_MODEL_GEMINI_VERTEX = "google:vertex:gemini-3.1-flash-live";
|
|
6827
7272
|
var REALTIME_MODEL_NOVA_SONIC = "aws:bedrock:nova-sonic-1";
|
|
6828
7273
|
var REALTIME_MODEL_CUSTOM = "custom:realtime:composable";
|
|
6829
7274
|
var STT_MODEL_DEEPGRAM_FLUX = "deepgram:stt:flux-general-en";
|
|
7275
|
+
var STT_MODEL_DEEPGRAM_FLUX_MULTI = "deepgram:stt:flux-general-multi";
|
|
6830
7276
|
var STT_MODEL_ELEVENLABS_SCRIBE = "elevenlabs:stt:scribe_v2_realtime";
|
|
6831
7277
|
var TTS_MODEL_ELEVENLABS_FLASH = "elevenlabs:tts:eleven_flash_v2_5";
|
|
6832
7278
|
var TTS_MODEL_ELEVENLABS_TURBO = "elevenlabs:tts:eleven_turbo_v2_5";
|
|
@@ -7499,6 +7945,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
7499
7945
|
dataTypes: new DataTypesApi(apiKey, baseUrl, customFetch),
|
|
7500
7946
|
discordBots: new DiscordBotsApi(apiKey, baseUrl, customFetch),
|
|
7501
7947
|
slackApps: new SlackAppsApi(apiKey, baseUrl, customFetch),
|
|
7948
|
+
teamsApps: new TeamsAppsApi(apiKey, baseUrl, customFetch),
|
|
7502
7949
|
events: new EventsApi(apiKey, baseUrl, customFetch),
|
|
7503
7950
|
fhirConnections: new FhirConnectionsApi(apiKey, baseUrl, customFetch),
|
|
7504
7951
|
healthie: new HealthieApi(apiKey, baseUrl, customFetch),
|
|
@@ -7528,6 +7975,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
7528
7975
|
salesforce: new SalesforceApi(apiKey, baseUrl, customFetch),
|
|
7529
7976
|
sites: new SitesApi(apiKey, baseUrl, customFetch),
|
|
7530
7977
|
subscriptions: new SubscriptionsApi(apiKey, baseUrl, customFetch),
|
|
7978
|
+
supportRequests: new SupportRequestsApi(apiKey, baseUrl, customFetch),
|
|
7531
7979
|
supervisors: new SupervisorsApi(apiKey, baseUrl, customFetch),
|
|
7532
7980
|
tasks: new TasksApi(apiKey, baseUrl, customFetch),
|
|
7533
7981
|
templates: new TemplatesApi(apiKey, baseUrl, customFetch),
|
|
@@ -8056,6 +8504,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
8056
8504
|
target.getInboxThreads = inboxes.getInboxThreads.bind(inboxes);
|
|
8057
8505
|
target.getThreadEmails = inboxes.getThreadEmails.bind(inboxes);
|
|
8058
8506
|
target.getChatEmails = inboxes.getChatEmails.bind(inboxes);
|
|
8507
|
+
target.replyToEmail = inboxes.replyToEmail.bind(inboxes);
|
|
8059
8508
|
target.getNotificationRules = notificationRules.getNotificationRules.bind(notificationRules);
|
|
8060
8509
|
target.createNotificationRule = notificationRules.createNotificationRule.bind(notificationRules);
|
|
8061
8510
|
target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
|
|
@@ -8155,13 +8604,10 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
8155
8604
|
}
|
|
8156
8605
|
|
|
8157
8606
|
// src/client/bindings/integrations.ts
|
|
8158
|
-
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, fhirConnections, healthie, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
8607
|
+
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, healthie, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
8159
8608
|
target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
|
|
8160
8609
|
target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
|
|
8161
8610
|
target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
|
|
8162
|
-
target.createMondayWebhook = mondayIntegration.createWebhook.bind(mondayIntegration);
|
|
8163
|
-
target.deleteMondayWebhook = mondayIntegration.deleteWebhook.bind(mondayIntegration);
|
|
8164
|
-
target.getMondayWebhook = mondayIntegration.getWebhook.bind(mondayIntegration);
|
|
8165
8611
|
target.getMondayCurrentUserInfo = mondayIntegration.getCurrentUserInfo.bind(mondayIntegration);
|
|
8166
8612
|
target.configureMondayConnection = mondayIntegration.configureMondayConnection.bind(mondayIntegration);
|
|
8167
8613
|
target.getMondayConnectionStatus = mondayIntegration.getMondayConnectionStatus.bind(mondayIntegration);
|
|
@@ -8205,6 +8651,14 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
8205
8651
|
target.getSlackThreads = slackApps.getSlackThreads.bind(slackApps);
|
|
8206
8652
|
target.getSlackInstallations = slackApps.getSlackInstallations.bind(slackApps);
|
|
8207
8653
|
target.getSlackAppAccounts = slackApps.getSlackAppAccounts.bind(slackApps);
|
|
8654
|
+
target.getTeamsApps = teamsApps.getTeamsApps.bind(teamsApps);
|
|
8655
|
+
target.getTeamsApp = teamsApps.getTeamsApp.bind(teamsApps);
|
|
8656
|
+
target.createTeamsApp = teamsApps.createTeamsApp.bind(teamsApps);
|
|
8657
|
+
target.updateTeamsApp = teamsApps.updateTeamsApp.bind(teamsApps);
|
|
8658
|
+
target.deleteTeamsApp = teamsApps.deleteTeamsApp.bind(teamsApps);
|
|
8659
|
+
target.getTeamsConversations = teamsApps.getTeamsConversations.bind(teamsApps);
|
|
8660
|
+
target.getTeamsInstallations = teamsApps.getTeamsInstallations.bind(teamsApps);
|
|
8661
|
+
target.getTeamsAppAccounts = teamsApps.getTeamsAppAccounts.bind(teamsApps);
|
|
8208
8662
|
target.getFhirConnections = fhirConnections.getFhirConnections.bind(fhirConnections);
|
|
8209
8663
|
target.getFhirConnection = fhirConnections.getFhirConnection.bind(fhirConnections);
|
|
8210
8664
|
target.getFhirConnectionByUuid = fhirConnections.getFhirConnectionByUuid.bind(fhirConnections);
|
|
@@ -8245,6 +8699,10 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
8245
8699
|
target.getHealthieReconciliationMatches = healthie.getHealthieReconciliationMatches.bind(healthie);
|
|
8246
8700
|
target.linkMemberToHealthie = healthie.linkMemberToHealthie.bind(healthie);
|
|
8247
8701
|
target.unlinkMemberFromHealthie = healthie.unlinkMemberFromHealthie.bind(healthie);
|
|
8702
|
+
target.listHealthieAppointmentTypes = healthie.listHealthieAppointmentTypes.bind(healthie);
|
|
8703
|
+
target.listHealthiePatients = healthie.listHealthiePatients.bind(healthie);
|
|
8704
|
+
target.getHealthieAvailableSlots = healthie.getHealthieAvailableSlots.bind(healthie);
|
|
8705
|
+
target.bookHealthieAppointment = healthie.bookHealthieAppointment.bind(healthie);
|
|
8248
8706
|
target.configureConfluence = confluence.configureConfluence.bind(confluence);
|
|
8249
8707
|
target.startConfluenceOAuth = confluence.startConfluenceOAuth.bind(confluence);
|
|
8250
8708
|
target.getConfluenceStatus = confluence.getConfluenceStatus.bind(confluence);
|
|
@@ -8297,12 +8755,14 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
8297
8755
|
target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
|
|
8298
8756
|
target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
|
|
8299
8757
|
target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
|
|
8758
|
+
target.clearConnectionMemberExclusion = connectionSync.clearConnectionMemberExclusion.bind(connectionSync);
|
|
8300
8759
|
target.listAvailableAppConnections = appConnections.listAvailableAppConnections.bind(appConnections);
|
|
8301
8760
|
target.listAppConnections = appConnections.listAppConnections.bind(appConnections);
|
|
8302
8761
|
target.enablePlatformApp = appConnections.enablePlatformApp.bind(appConnections);
|
|
8303
8762
|
target.getPlatformApp = appConnections.getPlatformApp.bind(appConnections);
|
|
8304
8763
|
target.updatePlatformApp = appConnections.updatePlatformApp.bind(appConnections);
|
|
8305
8764
|
target.deletePlatformApp = appConnections.deletePlatformApp.bind(appConnections);
|
|
8765
|
+
target.listConnectionMemberFieldKeys = appConnections.listConnectionMemberFieldKeys.bind(appConnections);
|
|
8306
8766
|
}
|
|
8307
8767
|
|
|
8308
8768
|
// src/client/bindings/operator-groups.ts
|
|
@@ -8336,6 +8796,10 @@ function bindOrgMethods(target, org) {
|
|
|
8336
8796
|
target.getOrgDomainSite = org.getOrgDomainSite.bind(org);
|
|
8337
8797
|
target.verifyOrgDomainSite = org.verifyOrgDomainSite.bind(org);
|
|
8338
8798
|
target.disableOrgDomainSite = org.disableOrgDomainSite.bind(org);
|
|
8799
|
+
target.getBusinessProfile = org.getBusinessProfile.bind(org);
|
|
8800
|
+
target.updateBusinessProfile = org.updateBusinessProfile.bind(org);
|
|
8801
|
+
target.submitBusinessProfile = org.submitBusinessProfile.bind(org);
|
|
8802
|
+
target.cancelBusinessProfile = org.cancelBusinessProfile.bind(org);
|
|
8339
8803
|
}
|
|
8340
8804
|
|
|
8341
8805
|
// src/client/bindings/pronunciations.ts
|
|
@@ -8359,6 +8823,7 @@ function bindPronunciationsMethods(target, pronunciations) {
|
|
|
8359
8823
|
function bindJourneysMethods(target, journeys) {
|
|
8360
8824
|
target.getJourneys = journeys.getJourneys.bind(journeys);
|
|
8361
8825
|
target.getJourney = journeys.getJourney.bind(journeys);
|
|
8826
|
+
target.getJourneyHealth = journeys.getJourneyHealth.bind(journeys);
|
|
8362
8827
|
target.createJourney = journeys.createJourney.bind(journeys);
|
|
8363
8828
|
target.updateJourney = journeys.updateJourney.bind(journeys);
|
|
8364
8829
|
target.archiveJourney = journeys.archiveJourney.bind(journeys);
|
|
@@ -8377,6 +8842,7 @@ function bindJourneysMethods(target, journeys) {
|
|
|
8377
8842
|
target.reenrollMember = journeys.reenrollMember.bind(journeys);
|
|
8378
8843
|
target.deleteEnrollment = journeys.deleteEnrollment.bind(journeys);
|
|
8379
8844
|
target.getMemberJourneys = journeys.getMemberJourneys.bind(journeys);
|
|
8845
|
+
target.testRunJourney = journeys.testRunJourney.bind(journeys);
|
|
8380
8846
|
target.getJourneyNotes = journeys.getJourneyNotes.bind(journeys);
|
|
8381
8847
|
target.createJourneyNote = journeys.createJourneyNote.bind(journeys);
|
|
8382
8848
|
target.updateJourneyNote = journeys.updateJourneyNote.bind(journeys);
|
|
@@ -8422,6 +8888,7 @@ function bindCustomersMethods(target, customers) {
|
|
|
8422
8888
|
target.attachMyCustomerPaymentMethod = customers.attachMyCustomerPaymentMethod.bind(customers);
|
|
8423
8889
|
target.detachMyCustomerPaymentMethod = customers.detachMyCustomerPaymentMethod.bind(customers);
|
|
8424
8890
|
target.setDefaultMyCustomerPaymentMethod = customers.setDefaultMyCustomerPaymentMethod.bind(customers);
|
|
8891
|
+
target.getMyCustomerCreditGrants = customers.getMyCustomerCreditGrants.bind(customers);
|
|
8425
8892
|
}
|
|
8426
8893
|
|
|
8427
8894
|
// src/client/bindings/resellers.ts
|
|
@@ -8439,6 +8906,23 @@ function bindPromptsMethods(target, prompts) {
|
|
|
8439
8906
|
target.inspectPrompt = prompts.inspectPrompt.bind(prompts);
|
|
8440
8907
|
}
|
|
8441
8908
|
|
|
8909
|
+
// src/client/bindings/support-requests.ts
|
|
8910
|
+
function bindSupportRequestMethods(target, supportRequests) {
|
|
8911
|
+
target.listSupportRequests = supportRequests.listSupportRequests.bind(supportRequests);
|
|
8912
|
+
target.getSupportRequest = supportRequests.getSupportRequest.bind(supportRequests);
|
|
8913
|
+
target.createSupportRequest = supportRequests.createSupportRequest.bind(supportRequests);
|
|
8914
|
+
target.commentOnSupportRequest = supportRequests.commentOnSupportRequest.bind(supportRequests);
|
|
8915
|
+
target.listOrgSupportRequests = supportRequests.listOrgSupportRequests.bind(supportRequests);
|
|
8916
|
+
target.getOrgSupportRequest = supportRequests.getOrgSupportRequest.bind(supportRequests);
|
|
8917
|
+
target.createOrgSupportRequest = supportRequests.createOrgSupportRequest.bind(supportRequests);
|
|
8918
|
+
target.commentOnOrgSupportRequest = supportRequests.commentOnOrgSupportRequest.bind(supportRequests);
|
|
8919
|
+
target.listWorkspaceSupportRequests = supportRequests.listWorkspaceSupportRequests.bind(supportRequests);
|
|
8920
|
+
target.getWorkspaceSupportRequest = supportRequests.getWorkspaceSupportRequest.bind(supportRequests);
|
|
8921
|
+
target.createWorkspaceSupportRequest = supportRequests.createWorkspaceSupportRequest.bind(supportRequests);
|
|
8922
|
+
target.commentOnWorkspaceSupportRequest = supportRequests.commentOnWorkspaceSupportRequest.bind(supportRequests);
|
|
8923
|
+
target.closeWorkspaceSupportRequest = supportRequests.closeWorkspaceSupportRequest.bind(supportRequests);
|
|
8924
|
+
}
|
|
8925
|
+
|
|
8442
8926
|
// src/client/client.ts
|
|
8443
8927
|
var GravityRailClient = class {
|
|
8444
8928
|
// WorkspaceInvitations is exposed publicly for backward compatibility
|
|
@@ -8613,6 +9097,7 @@ var GravityRailClient = class {
|
|
|
8613
9097
|
// Journeys API
|
|
8614
9098
|
getJourneys;
|
|
8615
9099
|
getJourney;
|
|
9100
|
+
getJourneyHealth;
|
|
8616
9101
|
createJourney;
|
|
8617
9102
|
updateJourney;
|
|
8618
9103
|
archiveJourney;
|
|
@@ -8631,6 +9116,7 @@ var GravityRailClient = class {
|
|
|
8631
9116
|
reenrollMember;
|
|
8632
9117
|
deleteEnrollment;
|
|
8633
9118
|
getMemberJourneys;
|
|
9119
|
+
testRunJourney;
|
|
8634
9120
|
getJourneyNotes;
|
|
8635
9121
|
createJourneyNote;
|
|
8636
9122
|
updateJourneyNote;
|
|
@@ -8720,6 +9206,10 @@ var GravityRailClient = class {
|
|
|
8720
9206
|
getOrgDomainSite;
|
|
8721
9207
|
verifyOrgDomainSite;
|
|
8722
9208
|
disableOrgDomainSite;
|
|
9209
|
+
getBusinessProfile;
|
|
9210
|
+
updateBusinessProfile;
|
|
9211
|
+
submitBusinessProfile;
|
|
9212
|
+
cancelBusinessProfile;
|
|
8723
9213
|
getVapidPublicKey;
|
|
8724
9214
|
registerPushSubscription;
|
|
8725
9215
|
unregisterPushSubscription;
|
|
@@ -8993,6 +9483,7 @@ var GravityRailClient = class {
|
|
|
8993
9483
|
getInboxThreads;
|
|
8994
9484
|
getThreadEmails;
|
|
8995
9485
|
getChatEmails;
|
|
9486
|
+
replyToEmail;
|
|
8996
9487
|
getNotificationRules;
|
|
8997
9488
|
createNotificationRule;
|
|
8998
9489
|
updateNotificationRule;
|
|
@@ -9084,9 +9575,6 @@ var GravityRailClient = class {
|
|
|
9084
9575
|
getMondayBoards;
|
|
9085
9576
|
getMondayBoardColumns;
|
|
9086
9577
|
getMondayBoardGroups;
|
|
9087
|
-
createMondayWebhook;
|
|
9088
|
-
deleteMondayWebhook;
|
|
9089
|
-
getMondayWebhook;
|
|
9090
9578
|
getMondayCurrentUserInfo;
|
|
9091
9579
|
// Monday.com Connection API
|
|
9092
9580
|
configureMondayConnection;
|
|
@@ -9133,6 +9621,15 @@ var GravityRailClient = class {
|
|
|
9133
9621
|
getSlackThreads;
|
|
9134
9622
|
getSlackInstallations;
|
|
9135
9623
|
getSlackAppAccounts;
|
|
9624
|
+
// Teams Apps API
|
|
9625
|
+
getTeamsApps;
|
|
9626
|
+
getTeamsApp;
|
|
9627
|
+
createTeamsApp;
|
|
9628
|
+
updateTeamsApp;
|
|
9629
|
+
deleteTeamsApp;
|
|
9630
|
+
getTeamsConversations;
|
|
9631
|
+
getTeamsInstallations;
|
|
9632
|
+
getTeamsAppAccounts;
|
|
9136
9633
|
// FHIR Connections API
|
|
9137
9634
|
getFhirConnections;
|
|
9138
9635
|
getFhirConnection;
|
|
@@ -9175,6 +9672,10 @@ var GravityRailClient = class {
|
|
|
9175
9672
|
getHealthieReconciliationMatches;
|
|
9176
9673
|
linkMemberToHealthie;
|
|
9177
9674
|
unlinkMemberFromHealthie;
|
|
9675
|
+
listHealthieAppointmentTypes;
|
|
9676
|
+
listHealthiePatients;
|
|
9677
|
+
getHealthieAvailableSlots;
|
|
9678
|
+
bookHealthieAppointment;
|
|
9178
9679
|
// Confluence API
|
|
9179
9680
|
configureConfluence;
|
|
9180
9681
|
startConfluenceOAuth;
|
|
@@ -9231,6 +9732,7 @@ var GravityRailClient = class {
|
|
|
9231
9732
|
getSyncRuns;
|
|
9232
9733
|
getSyncRunItems;
|
|
9233
9734
|
getMemberSyncSummary;
|
|
9735
|
+
clearConnectionMemberExclusion;
|
|
9234
9736
|
// App Connections API
|
|
9235
9737
|
listAvailableAppConnections;
|
|
9236
9738
|
listAppConnections;
|
|
@@ -9238,6 +9740,7 @@ var GravityRailClient = class {
|
|
|
9238
9740
|
getPlatformApp;
|
|
9239
9741
|
updatePlatformApp;
|
|
9240
9742
|
deletePlatformApp;
|
|
9743
|
+
listConnectionMemberFieldKeys;
|
|
9241
9744
|
// Pronunciations API
|
|
9242
9745
|
getPronunciationEntries;
|
|
9243
9746
|
createPronunciationEntry;
|
|
@@ -9264,6 +9767,7 @@ var GravityRailClient = class {
|
|
|
9264
9767
|
attachMyCustomerPaymentMethod;
|
|
9265
9768
|
detachMyCustomerPaymentMethod;
|
|
9266
9769
|
setDefaultMyCustomerPaymentMethod;
|
|
9770
|
+
getMyCustomerCreditGrants;
|
|
9267
9771
|
// Resellers API (self-service reseller portal)
|
|
9268
9772
|
getMyResellers;
|
|
9269
9773
|
getMyReseller;
|
|
@@ -9271,6 +9775,20 @@ var GravityRailClient = class {
|
|
|
9271
9775
|
getMyResellerProducts;
|
|
9272
9776
|
getMyResellerSubscriptions;
|
|
9273
9777
|
updateMyReseller;
|
|
9778
|
+
// Support Requests API
|
|
9779
|
+
listSupportRequests;
|
|
9780
|
+
getSupportRequest;
|
|
9781
|
+
createSupportRequest;
|
|
9782
|
+
commentOnSupportRequest;
|
|
9783
|
+
listOrgSupportRequests;
|
|
9784
|
+
getOrgSupportRequest;
|
|
9785
|
+
createOrgSupportRequest;
|
|
9786
|
+
commentOnOrgSupportRequest;
|
|
9787
|
+
listWorkspaceSupportRequests;
|
|
9788
|
+
getWorkspaceSupportRequest;
|
|
9789
|
+
createWorkspaceSupportRequest;
|
|
9790
|
+
commentOnWorkspaceSupportRequest;
|
|
9791
|
+
closeWorkspaceSupportRequest;
|
|
9274
9792
|
constructor(apiKey, baseUrl, customFetch) {
|
|
9275
9793
|
const apis = createApiModules(apiKey, baseUrl, customFetch);
|
|
9276
9794
|
this.apis = apis;
|
|
@@ -9320,6 +9838,7 @@ var GravityRailClient = class {
|
|
|
9320
9838
|
apis.mondayIntegration,
|
|
9321
9839
|
apis.discordBots,
|
|
9322
9840
|
apis.slackApps,
|
|
9841
|
+
apis.teamsApps,
|
|
9323
9842
|
apis.fhirConnections,
|
|
9324
9843
|
apis.healthie,
|
|
9325
9844
|
apis.salesforce,
|
|
@@ -9331,6 +9850,7 @@ var GravityRailClient = class {
|
|
|
9331
9850
|
bindPronunciationsMethods(this, apis.pronunciations);
|
|
9332
9851
|
bindCustomersMethods(this, apis.customers);
|
|
9333
9852
|
bindResellersMethods(this, apis.resellers);
|
|
9853
|
+
bindSupportRequestMethods(this, apis.supportRequests);
|
|
9334
9854
|
}
|
|
9335
9855
|
/**
|
|
9336
9856
|
* Set the handler for enhanced authentication requirements (RFC 9470 Step-Up Auth).
|
|
@@ -9358,6 +9878,24 @@ var GravityRailClient = class {
|
|
|
9358
9878
|
}
|
|
9359
9879
|
});
|
|
9360
9880
|
}
|
|
9881
|
+
/**
|
|
9882
|
+
* Set the org token for cross-domain / non-browser clients (e.g. CLI).
|
|
9883
|
+
* When set, all API requests include the X-Org-Token header so the backend
|
|
9884
|
+
* accepts the request without requiring a browser cookie.
|
|
9885
|
+
*
|
|
9886
|
+
* `orgUuid` is the org that issued the token. Pass it so the SDK can
|
|
9887
|
+
* detect a stale token (e.g. switching orgs mid-session) and re-fire the
|
|
9888
|
+
* org-auth handler instead of silently 401-ing.
|
|
9889
|
+
*
|
|
9890
|
+
* Propagates to all API modules.
|
|
9891
|
+
*/
|
|
9892
|
+
setOrgToken(token, orgUuid) {
|
|
9893
|
+
Object.values(this.apis).forEach((api) => {
|
|
9894
|
+
if (typeof api.setOrgToken === "function") {
|
|
9895
|
+
api.setOrgToken(token, orgUuid);
|
|
9896
|
+
}
|
|
9897
|
+
});
|
|
9898
|
+
}
|
|
9361
9899
|
/**
|
|
9362
9900
|
* Update the API key across all modules.
|
|
9363
9901
|
* Used after successful re-authentication.
|
|
@@ -9418,6 +9956,8 @@ var AbilityTypeSlugs = {
|
|
|
9418
9956
|
SUPERVISOR: "oversight:supervisor",
|
|
9419
9957
|
SUPERVISOR_ACTIONS: "oversight:supervisor_actions",
|
|
9420
9958
|
ESCALATION: "oversight:escalation",
|
|
9959
|
+
// Identity
|
|
9960
|
+
MEMBER_FIELD_VERIFICATION: "identity:member_field_verification",
|
|
9421
9961
|
// System (auto-injected, hidden from users)
|
|
9422
9962
|
USER_MESSAGE_RULES: "system:user_message_rules",
|
|
9423
9963
|
ASSISTANT_MESSAGE_RULES: "chat:assistant_message_rules",
|
|
@@ -9440,7 +9980,8 @@ var TTS_PREVIEW_PROVIDERS = [
|
|
|
9440
9980
|
"google",
|
|
9441
9981
|
"aws",
|
|
9442
9982
|
"pocket",
|
|
9443
|
-
"deepgram"
|
|
9983
|
+
"deepgram",
|
|
9984
|
+
"xai"
|
|
9444
9985
|
];
|
|
9445
9986
|
function getVoiceModelId(entity) {
|
|
9446
9987
|
const config = entity.realtimeModelConfig;
|
|
@@ -9453,6 +9994,129 @@ function canPreviewVoice(entity) {
|
|
|
9453
9994
|
return TTS_PREVIEW_PROVIDERS.includes(provider);
|
|
9454
9995
|
}
|
|
9455
9996
|
|
|
9997
|
+
// src/types/chat-types.ts
|
|
9998
|
+
var SMS_DELIVERY_FAILURE_STATUSES = /* @__PURE__ */ new Set([
|
|
9999
|
+
"failed",
|
|
10000
|
+
"undelivered"
|
|
10001
|
+
]);
|
|
10002
|
+
function isSMSDeliveryFailureStatus(status) {
|
|
10003
|
+
return status != null && SMS_DELIVERY_FAILURE_STATUSES.has(status);
|
|
10004
|
+
}
|
|
10005
|
+
|
|
10006
|
+
// src/types/generated/organization.ts
|
|
10007
|
+
var BusinessIndustry = {
|
|
10008
|
+
AGRICULTURE: "AGRICULTURE",
|
|
10009
|
+
AUTOMOTIVE: "AUTOMOTIVE",
|
|
10010
|
+
BANKING: "BANKING",
|
|
10011
|
+
CONSUMER: "CONSUMER",
|
|
10012
|
+
EDUCATION: "EDUCATION",
|
|
10013
|
+
ELECTRONICS: "ELECTRONICS",
|
|
10014
|
+
ENERGY: "ENERGY",
|
|
10015
|
+
ENGINEERING: "ENGINEERING",
|
|
10016
|
+
FAST_MOVING_CONSUMER_GOODS: "FAST_MOVING_CONSUMER_GOODS",
|
|
10017
|
+
FINANCIAL: "FINANCIAL",
|
|
10018
|
+
FINTECH: "FINTECH",
|
|
10019
|
+
FOOD_AND_BEVERAGE: "FOOD_AND_BEVERAGE",
|
|
10020
|
+
GOVERNMENT: "GOVERNMENT",
|
|
10021
|
+
HEALTHCARE: "HEALTHCARE",
|
|
10022
|
+
HOSPITALITY: "HOSPITALITY",
|
|
10023
|
+
INSURANCE: "INSURANCE",
|
|
10024
|
+
JEWELRY: "JEWELRY",
|
|
10025
|
+
LEGAL: "LEGAL",
|
|
10026
|
+
MANUFACTURING: "MANUFACTURING",
|
|
10027
|
+
MEDIA: "MEDIA",
|
|
10028
|
+
NOT_FOR_PROFIT: "NOT_FOR_PROFIT",
|
|
10029
|
+
OIL_AND_GAS: "OIL_AND_GAS",
|
|
10030
|
+
ONLINE: "ONLINE",
|
|
10031
|
+
RAW_MATERIALS: "RAW_MATERIALS",
|
|
10032
|
+
REAL_ESTATE: "REAL_ESTATE",
|
|
10033
|
+
RELIGION: "RELIGION",
|
|
10034
|
+
RETAIL: "RETAIL",
|
|
10035
|
+
TECHNOLOGY: "TECHNOLOGY",
|
|
10036
|
+
TELECOMMUNICATIONS: "TELECOMMUNICATIONS",
|
|
10037
|
+
TRANSPORTATION: "TRANSPORTATION",
|
|
10038
|
+
TRAVEL: "TRAVEL"
|
|
10039
|
+
};
|
|
10040
|
+
var BusinessType = {
|
|
10041
|
+
Sole_Proprietorship: "Sole Proprietorship",
|
|
10042
|
+
Partnership: "Partnership",
|
|
10043
|
+
Limited_Liability_Corporation: "Limited Liability Corporation",
|
|
10044
|
+
"Co-operative": "Co-operative",
|
|
10045
|
+
"Non-profit_Corporation": "Non-profit Corporation",
|
|
10046
|
+
Corporation: "Corporation"
|
|
10047
|
+
};
|
|
10048
|
+
var EmailDnsRecordType = {
|
|
10049
|
+
TXT: "TXT",
|
|
10050
|
+
CNAME: "CNAME",
|
|
10051
|
+
MX: "MX"
|
|
10052
|
+
};
|
|
10053
|
+
var JobPosition = {
|
|
10054
|
+
Director: "Director",
|
|
10055
|
+
GM: "GM",
|
|
10056
|
+
VP: "VP",
|
|
10057
|
+
CEO: "CEO",
|
|
10058
|
+
CFO: "CFO",
|
|
10059
|
+
General_Counsel: "General Counsel",
|
|
10060
|
+
Other: "Other"
|
|
10061
|
+
};
|
|
10062
|
+
var OIDCAdminConfigViewProviderType = {
|
|
10063
|
+
azure_ad: "azure_ad",
|
|
10064
|
+
okta: "okta",
|
|
10065
|
+
auth0: "auth0",
|
|
10066
|
+
generic: "generic"
|
|
10067
|
+
};
|
|
10068
|
+
var Region = {
|
|
10069
|
+
AFRICA: "AFRICA",
|
|
10070
|
+
ASIA: "ASIA",
|
|
10071
|
+
EUROPE: "EUROPE",
|
|
10072
|
+
LATIN_AMERICA: "LATIN_AMERICA",
|
|
10073
|
+
USA_AND_CANADA: "USA_AND_CANADA",
|
|
10074
|
+
AUSTRALIA: "AUSTRALIA"
|
|
10075
|
+
};
|
|
10076
|
+
var RegistrationIdentifier = {
|
|
10077
|
+
EIN: "EIN",
|
|
10078
|
+
CBN: "CBN",
|
|
10079
|
+
CN: "CN",
|
|
10080
|
+
ACN: "ACN",
|
|
10081
|
+
CIN: "CIN",
|
|
10082
|
+
VAT: "VAT",
|
|
10083
|
+
VATRN: "VATRN",
|
|
10084
|
+
RN: "RN",
|
|
10085
|
+
DUNS: "DUNS",
|
|
10086
|
+
Other: "Other"
|
|
10087
|
+
};
|
|
10088
|
+
var SiteDnsRecordType = {
|
|
10089
|
+
CNAME: "CNAME",
|
|
10090
|
+
A: "A",
|
|
10091
|
+
TXT: "TXT"
|
|
10092
|
+
};
|
|
10093
|
+
|
|
10094
|
+
// src/types/generated/site.ts
|
|
10095
|
+
var MenuItemResponseItemType = {
|
|
10096
|
+
page: "page",
|
|
10097
|
+
url: "url",
|
|
10098
|
+
products: "products",
|
|
10099
|
+
none: "none"
|
|
10100
|
+
};
|
|
10101
|
+
|
|
10102
|
+
// src/types/generated/task.ts
|
|
10103
|
+
var AbilityConfigIssueCode = {
|
|
10104
|
+
missing_resource: "missing_resource",
|
|
10105
|
+
invalid_state: "invalid_state",
|
|
10106
|
+
feature_disabled: "feature_disabled",
|
|
10107
|
+
external_drift: "external_drift"
|
|
10108
|
+
};
|
|
10109
|
+
var AbilityConfigIssueSeverity = {
|
|
10110
|
+
warning: "warning",
|
|
10111
|
+
error: "error"
|
|
10112
|
+
};
|
|
10113
|
+
var WorkflowAccessWarningResourceType = {
|
|
10114
|
+
form: "form",
|
|
10115
|
+
file: "file",
|
|
10116
|
+
folder: "folder",
|
|
10117
|
+
calendar: "calendar"
|
|
10118
|
+
};
|
|
10119
|
+
|
|
9456
10120
|
// src/features/registry.ts
|
|
9457
10121
|
var FeatureCategory = /* @__PURE__ */ ((FeatureCategory2) => {
|
|
9458
10122
|
FeatureCategory2["COMMUNICATION"] = "communication";
|
|
@@ -9583,7 +10247,7 @@ function isChatType(value) {
|
|
|
9583
10247
|
|
|
9584
10248
|
// src/constants/models.ts
|
|
9585
10249
|
var DEFAULT_CHAT_MODEL = "aws:bedrock:claude-4-5-haiku";
|
|
9586
|
-
var DEFAULT_VOICE_INFERENCE_MODEL = "google:
|
|
10250
|
+
var DEFAULT_VOICE_INFERENCE_MODEL = "google:vertex:gemini-3-flash";
|
|
9587
10251
|
var DEFAULT_CUSTOM_VOICE_MODEL = "elevenlabs:voice:river";
|
|
9588
10252
|
|
|
9589
10253
|
// src/types/resource-metadata.ts
|
|
@@ -10346,6 +11010,8 @@ var SCOPE_PRESETS = {
|
|
|
10346
11010
|
};
|
|
10347
11011
|
// Annotate the CommonJS export names for ESM import in node:
|
|
10348
11012
|
0 && (module.exports = {
|
|
11013
|
+
AbilityConfigIssueCode,
|
|
11014
|
+
AbilityConfigIssueSeverity,
|
|
10349
11015
|
AbilityTypeSlugs,
|
|
10350
11016
|
AccessGrantResourceType,
|
|
10351
11017
|
AccessGrantStatus,
|
|
@@ -10358,6 +11024,9 @@ var SCOPE_PRESETS = {
|
|
|
10358
11024
|
BUILTIN_ASSISTANT_CHAT_TYPES,
|
|
10359
11025
|
BaseApiClient,
|
|
10360
11026
|
BuildersApi,
|
|
11027
|
+
BulkMemberResultStatus,
|
|
11028
|
+
BusinessIndustry,
|
|
11029
|
+
BusinessType,
|
|
10361
11030
|
CELApi,
|
|
10362
11031
|
CHAT_TYPES,
|
|
10363
11032
|
CalendarEventStatus,
|
|
@@ -10376,6 +11045,7 @@ var SCOPE_PRESETS = {
|
|
|
10376
11045
|
DataSensitivity,
|
|
10377
11046
|
DataTypeRecordScope,
|
|
10378
11047
|
DriverMode,
|
|
11048
|
+
EmailDnsRecordType,
|
|
10379
11049
|
EventRuleActionType,
|
|
10380
11050
|
EventRuleEventType,
|
|
10381
11051
|
EventRuleObjectType,
|
|
@@ -10387,11 +11057,17 @@ var SCOPE_PRESETS = {
|
|
|
10387
11057
|
GravityRailClient,
|
|
10388
11058
|
IndexStatus,
|
|
10389
11059
|
InvitationStatus,
|
|
11060
|
+
JobPosition,
|
|
10390
11061
|
MASKED_SECRET_SENTINEL,
|
|
10391
11062
|
McpServerState,
|
|
10392
11063
|
MemberFeature,
|
|
10393
11064
|
MemberType,
|
|
11065
|
+
MenuItemResponseItemType,
|
|
11066
|
+
MenuItemType,
|
|
11067
|
+
ModelProvider,
|
|
11068
|
+
ModelType,
|
|
10394
11069
|
NO_ASSISTANT_PARTICIPANT_CHAT_TYPES,
|
|
11070
|
+
OIDCAdminConfigViewProviderType,
|
|
10395
11071
|
ORG_ONLY_RESOURCES,
|
|
10396
11072
|
OrgApi,
|
|
10397
11073
|
OrgFeature,
|
|
@@ -10411,15 +11087,21 @@ var SCOPE_PRESETS = {
|
|
|
10411
11087
|
REALTIME_MODEL_GEMINI_VERTEX,
|
|
10412
11088
|
REALTIME_MODEL_NOVA_SONIC,
|
|
10413
11089
|
REALTIME_MODEL_OPENAI,
|
|
11090
|
+
REALTIME_MODEL_OPENAI_2,
|
|
10414
11091
|
REALTIME_MODEL_OPENAI_MINI,
|
|
11092
|
+
Region,
|
|
11093
|
+
RegistrationIdentifier,
|
|
10415
11094
|
Resource,
|
|
10416
11095
|
SCOPES,
|
|
10417
11096
|
SCOPE_PRESETS,
|
|
11097
|
+
SMS_DELIVERY_FAILURE_STATUSES,
|
|
10418
11098
|
STT_MODEL_DEEPGRAM_FLUX,
|
|
11099
|
+
STT_MODEL_DEEPGRAM_FLUX_MULTI,
|
|
10419
11100
|
STT_MODEL_ELEVENLABS_SCRIBE,
|
|
10420
11101
|
Scope,
|
|
10421
11102
|
ScopeCategory,
|
|
10422
11103
|
ScopeManager,
|
|
11104
|
+
SiteDnsRecordType,
|
|
10423
11105
|
SupervisorsApi,
|
|
10424
11106
|
TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
10425
11107
|
TTS_MODEL_AWS_POLLY_NEURAL,
|
|
@@ -10431,6 +11113,8 @@ var SCOPE_PRESETS = {
|
|
|
10431
11113
|
TTS_PREVIEW_PROVIDERS,
|
|
10432
11114
|
TemplatesApi,
|
|
10433
11115
|
ToolkitState,
|
|
11116
|
+
WorkflowAccessWarningResourceType,
|
|
11117
|
+
WorkflowResourceType,
|
|
10434
11118
|
WorkspaceFeature,
|
|
10435
11119
|
WorkspaceProvisionStatus,
|
|
10436
11120
|
areDependenciesSatisfied,
|
|
@@ -10438,6 +11122,7 @@ var SCOPE_PRESETS = {
|
|
|
10438
11122
|
clearRegistry,
|
|
10439
11123
|
decodePermissions,
|
|
10440
11124
|
encodePermissions,
|
|
11125
|
+
eventRuleActionParams,
|
|
10441
11126
|
formatAppContextAsMarkdown,
|
|
10442
11127
|
getAllFeatures,
|
|
10443
11128
|
getAllResourceSlugs,
|
|
@@ -10457,6 +11142,7 @@ var SCOPE_PRESETS = {
|
|
|
10457
11142
|
isChatType,
|
|
10458
11143
|
isFeatureAvailable,
|
|
10459
11144
|
isRegistryInitialized,
|
|
11145
|
+
isSMSDeliveryFailureStatus,
|
|
10460
11146
|
requiresAssistantParticipant,
|
|
10461
11147
|
usesBuiltinAssistant,
|
|
10462
11148
|
validateFeatureDependencies
|