@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/internal.cjs
CHANGED
|
@@ -22,6 +22,8 @@ var internal_exports = {};
|
|
|
22
22
|
__export(internal_exports, {
|
|
23
23
|
AIModelsApi: () => AIModelsApi,
|
|
24
24
|
AbilitiesApi: () => AbilitiesApi,
|
|
25
|
+
AbilityConfigIssueCode: () => AbilityConfigIssueCode,
|
|
26
|
+
AbilityConfigIssueSeverity: () => AbilityConfigIssueSeverity,
|
|
25
27
|
AbilityTypeSlugs: () => AbilityTypeSlugs,
|
|
26
28
|
AccessGrantResourceType: () => AccessGrantResourceType,
|
|
27
29
|
AccessGrantStatus: () => AccessGrantStatus,
|
|
@@ -41,6 +43,9 @@ __export(internal_exports, {
|
|
|
41
43
|
BUILTIN_ASSISTANT_CHAT_TYPES: () => BUILTIN_ASSISTANT_CHAT_TYPES,
|
|
42
44
|
BaseApiClient: () => BaseApiClient,
|
|
43
45
|
BuildersApi: () => BuildersApi,
|
|
46
|
+
BulkMemberResultStatus: () => BulkMemberResultStatus,
|
|
47
|
+
BusinessIndustry: () => BusinessIndustry,
|
|
48
|
+
BusinessType: () => BusinessType,
|
|
44
49
|
CELApi: () => CELApi,
|
|
45
50
|
CHAT_TYPES: () => CHAT_TYPES,
|
|
46
51
|
CalendarEventStatus: () => CalendarEventStatus,
|
|
@@ -68,6 +73,7 @@ __export(internal_exports, {
|
|
|
68
73
|
DataTypesApi: () => DataTypesApi,
|
|
69
74
|
DiscordBotsApi: () => DiscordBotsApi,
|
|
70
75
|
DriverMode: () => DriverMode,
|
|
76
|
+
EmailDnsRecordType: () => EmailDnsRecordType,
|
|
71
77
|
EventRuleActionType: () => EventRuleActionType,
|
|
72
78
|
EventRuleEventType: () => EventRuleEventType,
|
|
73
79
|
EventRuleObjectType: () => EventRuleObjectType,
|
|
@@ -87,6 +93,7 @@ __export(internal_exports, {
|
|
|
87
93
|
IndexStatus: () => IndexStatus,
|
|
88
94
|
InquiriesApi: () => InquiriesApi,
|
|
89
95
|
InvitationStatus: () => InvitationStatus,
|
|
96
|
+
JobPosition: () => JobPosition,
|
|
90
97
|
JourneysApi: () => JourneysApi,
|
|
91
98
|
LIMIT_ONLY_RESOURCES: () => LIMIT_ONLY_RESOURCES,
|
|
92
99
|
MASKED_SECRET_SENTINEL: () => MASKED_SECRET_SENTINEL,
|
|
@@ -95,12 +102,17 @@ __export(internal_exports, {
|
|
|
95
102
|
MemberFeature: () => MemberFeature,
|
|
96
103
|
MemberType: () => MemberType,
|
|
97
104
|
MembersApi: () => MembersApi,
|
|
105
|
+
MenuItemResponseItemType: () => MenuItemResponseItemType,
|
|
106
|
+
MenuItemType: () => MenuItemResponseItemType,
|
|
98
107
|
MilestonesApi: () => MilestonesApi,
|
|
108
|
+
ModelProvider: () => ModelProvider,
|
|
109
|
+
ModelType: () => ModelType,
|
|
99
110
|
MondayIntegrationApi: () => MondayIntegrationApi,
|
|
100
111
|
NO_ASSISTANT_PARTICIPANT_CHAT_TYPES: () => NO_ASSISTANT_PARTICIPANT_CHAT_TYPES,
|
|
101
112
|
NotificationRulesApi: () => NotificationRulesApi,
|
|
102
113
|
OAuthApi: () => OAuthApi,
|
|
103
114
|
OAuthConnectionsApi: () => OAuthConnectionsApi,
|
|
115
|
+
OIDCAdminConfigViewProviderType: () => OIDCAdminConfigViewProviderType,
|
|
104
116
|
ORG_ONLY_RESOURCES: () => ORG_ONLY_RESOURCES,
|
|
105
117
|
OperatorApi: () => OperatorApi,
|
|
106
118
|
OrgApi: () => OrgApi,
|
|
@@ -126,23 +138,31 @@ __export(internal_exports, {
|
|
|
126
138
|
REALTIME_MODEL_GEMINI_VERTEX: () => REALTIME_MODEL_GEMINI_VERTEX,
|
|
127
139
|
REALTIME_MODEL_NOVA_SONIC: () => REALTIME_MODEL_NOVA_SONIC,
|
|
128
140
|
REALTIME_MODEL_OPENAI: () => REALTIME_MODEL_OPENAI,
|
|
141
|
+
REALTIME_MODEL_OPENAI_2: () => REALTIME_MODEL_OPENAI_2,
|
|
129
142
|
REALTIME_MODEL_OPENAI_MINI: () => REALTIME_MODEL_OPENAI_MINI,
|
|
143
|
+
Region: () => Region,
|
|
144
|
+
RegistrationIdentifier: () => RegistrationIdentifier,
|
|
130
145
|
ReportsApi: () => ReportsApi,
|
|
131
146
|
ResellersApi: () => ResellersApi,
|
|
132
147
|
Resource: () => Resource,
|
|
133
148
|
SCOPES: () => SCOPES,
|
|
134
149
|
SCOPE_PRESETS: () => SCOPE_PRESETS,
|
|
150
|
+
SMS_DELIVERY_FAILURE_STATUSES: () => SMS_DELIVERY_FAILURE_STATUSES,
|
|
135
151
|
STT_MODEL_DEEPGRAM_FLUX: () => STT_MODEL_DEEPGRAM_FLUX,
|
|
152
|
+
STT_MODEL_DEEPGRAM_FLUX_MULTI: () => STT_MODEL_DEEPGRAM_FLUX_MULTI,
|
|
136
153
|
STT_MODEL_ELEVENLABS_SCRIBE: () => STT_MODEL_ELEVENLABS_SCRIBE,
|
|
137
154
|
SalesforceApi: () => SalesforceApi,
|
|
138
155
|
Scope: () => Scope,
|
|
139
156
|
ScopeCategory: () => ScopeCategory,
|
|
140
157
|
ScopeManager: () => ScopeManager,
|
|
158
|
+
SiteDnsRecordType: () => SiteDnsRecordType,
|
|
141
159
|
SitesApi: () => SitesApi,
|
|
142
160
|
SlackAppsApi: () => SlackAppsApi,
|
|
143
161
|
SnippetsApi: () => SnippetsApi,
|
|
144
162
|
SubscriptionsApi: () => SubscriptionsApi,
|
|
145
163
|
SupervisorsApi: () => SupervisorsApi,
|
|
164
|
+
SupportRequestsApi: () => SupportRequestsApi,
|
|
165
|
+
TERMINAL_TASK_STATES: () => TERMINAL_TASK_STATES,
|
|
146
166
|
TTS_MODEL_AWS_POLLY_GENERATIVE: () => TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
147
167
|
TTS_MODEL_AWS_POLLY_NEURAL: () => TTS_MODEL_AWS_POLLY_NEURAL,
|
|
148
168
|
TTS_MODEL_DEEPGRAM_AURA_2: () => TTS_MODEL_DEEPGRAM_AURA_2,
|
|
@@ -156,7 +176,9 @@ __export(internal_exports, {
|
|
|
156
176
|
ToolkitState: () => ToolkitState,
|
|
157
177
|
ToolkitsApi: () => ToolkitsApi,
|
|
158
178
|
VoiceApi: () => VoiceApi,
|
|
179
|
+
WorkflowAccessWarningResourceType: () => WorkflowAccessWarningResourceType,
|
|
159
180
|
WorkflowNotesApi: () => WorkflowNotesApi,
|
|
181
|
+
WorkflowResourceType: () => WorkflowAccessWarningResourceType,
|
|
160
182
|
WorkflowsApi: () => WorkflowsApi,
|
|
161
183
|
WorkspaceFeature: () => WorkspaceFeature,
|
|
162
184
|
WorkspaceInvitationsApi: () => WorkspaceInvitationsApi,
|
|
@@ -188,6 +210,7 @@ __export(internal_exports, {
|
|
|
188
210
|
bindQualificationsMethods: () => bindQualificationsMethods,
|
|
189
211
|
bindResellersMethods: () => bindResellersMethods,
|
|
190
212
|
bindSitesMethods: () => bindSitesMethods,
|
|
213
|
+
bindSupportRequestMethods: () => bindSupportRequestMethods,
|
|
191
214
|
bindTasksMethods: () => bindTasksMethods,
|
|
192
215
|
bindToolkitsMethods: () => bindToolkitsMethods,
|
|
193
216
|
bindWorkflowsMethods: () => bindWorkflowsMethods,
|
|
@@ -197,6 +220,7 @@ __export(internal_exports, {
|
|
|
197
220
|
createApiModules: () => createApiModules,
|
|
198
221
|
decodePermissions: () => decodePermissions,
|
|
199
222
|
encodePermissions: () => encodePermissions,
|
|
223
|
+
eventRuleActionParams: () => eventRuleActionParams,
|
|
200
224
|
formatAppContextAsMarkdown: () => formatAppContextAsMarkdown,
|
|
201
225
|
getAllFeatures: () => getAllFeatures,
|
|
202
226
|
getAllResourceSlugs: () => getAllResourceSlugs,
|
|
@@ -216,6 +240,7 @@ __export(internal_exports, {
|
|
|
216
240
|
isChatType: () => isChatType,
|
|
217
241
|
isFeatureAvailable: () => isFeatureAvailable,
|
|
218
242
|
isRegistryInitialized: () => isRegistryInitialized,
|
|
243
|
+
isSMSDeliveryFailureStatus: () => isSMSDeliveryFailureStatus,
|
|
219
244
|
requiresAssistantParticipant: () => requiresAssistantParticipant,
|
|
220
245
|
usesBuiltinAssistant: () => usesBuiltinAssistant,
|
|
221
246
|
validateFeatureDependencies: () => validateFeatureDependencies
|
|
@@ -336,6 +361,13 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
336
361
|
return Scope2;
|
|
337
362
|
})(Scope || {});
|
|
338
363
|
|
|
364
|
+
// src/types/generated/member.ts
|
|
365
|
+
var BulkMemberResultStatus = {
|
|
366
|
+
created: "created",
|
|
367
|
+
updated: "updated",
|
|
368
|
+
failed: "failed"
|
|
369
|
+
};
|
|
370
|
+
|
|
339
371
|
// src/types/member-types.ts
|
|
340
372
|
var MemberType = /* @__PURE__ */ ((MemberType2) => {
|
|
341
373
|
MemberType2["ANONYMOUS"] = "anonymous";
|
|
@@ -372,7 +404,6 @@ var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
|
|
|
372
404
|
EventRuleObjectType2["WORKFLOW"] = "workflow";
|
|
373
405
|
EventRuleObjectType2["CALENDAR"] = "calendar";
|
|
374
406
|
EventRuleObjectType2["CALENDAR_EVENT_TYPE"] = "calendar_event_type";
|
|
375
|
-
EventRuleObjectType2["MONDAY"] = "monday";
|
|
376
407
|
EventRuleObjectType2["JOURNEY"] = "journey";
|
|
377
408
|
EventRuleObjectType2["CALL"] = "call";
|
|
378
409
|
return EventRuleObjectType2;
|
|
@@ -394,7 +425,8 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
394
425
|
EventRuleEventType2["CALENDAR_EVENT_CANCELLED"] = "calendar_event:cancelled";
|
|
395
426
|
EventRuleEventType2["CALENDAR_EVENT_STARTING"] = "calendar_event:starting";
|
|
396
427
|
EventRuleEventType2["CALENDAR_EVENT_ENDED"] = "calendar_event:ended";
|
|
397
|
-
EventRuleEventType2["
|
|
428
|
+
EventRuleEventType2["CONNECTOR_EVENT"] = "connector:event";
|
|
429
|
+
EventRuleEventType2["ASSIGNMENT_CONCLUDED"] = "assignment:concluded";
|
|
398
430
|
EventRuleEventType2["JOURNEY_STEP_EXECUTE"] = "journey_step:execute";
|
|
399
431
|
EventRuleEventType2["JOURNEY_ENROLLED"] = "journey:enrolled";
|
|
400
432
|
EventRuleEventType2["JOURNEY_COMPLETED"] = "journey:completed";
|
|
@@ -414,11 +446,10 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
414
446
|
EventRuleActionType2["MESSAGE_VALIDATION"] = "message:validation";
|
|
415
447
|
EventRuleActionType2["CHAT_CREATE"] = "chat:create";
|
|
416
448
|
EventRuleActionType2["CHAT_CONTINUE"] = "chat:continue";
|
|
449
|
+
EventRuleActionType2["CHAT_PAUSE"] = "chat:pause";
|
|
417
450
|
EventRuleActionType2["CHAT_SUMMARIZE"] = "chat:summarize";
|
|
418
451
|
EventRuleActionType2["EMAIL_SEND"] = "email:send";
|
|
419
452
|
EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
|
|
420
|
-
EventRuleActionType2["INVOKE_SUPERVISOR"] = "supervisor:invoke";
|
|
421
|
-
EventRuleActionType2["MONDAY_CREATE_ITEM"] = "monday:create_item";
|
|
422
453
|
EventRuleActionType2["MONDAY_UPSERT_ITEM"] = "monday:upsert_item";
|
|
423
454
|
EventRuleActionType2["MONDAY_REFRESH"] = "monday:refresh";
|
|
424
455
|
EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
|
|
@@ -427,9 +458,14 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
427
458
|
EventRuleActionType2["WHATSAPP_SEND"] = "whatsapp:send";
|
|
428
459
|
EventRuleActionType2["PHONE_CALL"] = "phone:call";
|
|
429
460
|
EventRuleActionType2["CONNECTION_SYNC"] = "connection:sync";
|
|
461
|
+
EventRuleActionType2["CONNECTOR_OPERATION"] = "connector:operation";
|
|
430
462
|
EventRuleActionType2["ECW_REFRESH_MEMBER_ENCOUNTERS"] = "ecw:refresh_member_encounters";
|
|
463
|
+
EventRuleActionType2["PLAY_AUDIO"] = "audio:play";
|
|
431
464
|
return EventRuleActionType2;
|
|
432
465
|
})(EventRuleActionType || {});
|
|
466
|
+
function eventRuleActionParams(params) {
|
|
467
|
+
return params ?? {};
|
|
468
|
+
}
|
|
433
469
|
var MASKED_SECRET_SENTINEL = "__SECRET_SET__";
|
|
434
470
|
|
|
435
471
|
// src/types/billing-types.ts
|
|
@@ -439,6 +475,7 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
439
475
|
WorkspaceFeature2["WHATSAPP"] = "whatsapp";
|
|
440
476
|
WorkspaceFeature2["DISCORD"] = "discord";
|
|
441
477
|
WorkspaceFeature2["SLACK"] = "slack";
|
|
478
|
+
WorkspaceFeature2["TEAMS"] = "teams";
|
|
442
479
|
WorkspaceFeature2["SITES"] = "sites";
|
|
443
480
|
WorkspaceFeature2["FORMS"] = "forms";
|
|
444
481
|
WorkspaceFeature2["MAPS"] = "maps";
|
|
@@ -554,29 +591,29 @@ var DataFieldType = /* @__PURE__ */ ((DataFieldType2) => {
|
|
|
554
591
|
DataFieldType2["TEXT"] = "text";
|
|
555
592
|
DataFieldType2["LONGTEXT"] = "longtext";
|
|
556
593
|
DataFieldType2["NUMBER"] = "number";
|
|
594
|
+
DataFieldType2["INTEGER"] = "integer";
|
|
557
595
|
DataFieldType2["DATE"] = "date";
|
|
558
596
|
DataFieldType2["DATETIME"] = "datetime";
|
|
559
597
|
DataFieldType2["TIME_OF_DAY"] = "time_of_day";
|
|
560
|
-
DataFieldType2["US_ZIP_CODE"] = "us_zip_code";
|
|
561
|
-
DataFieldType2["INTEGER"] = "integer";
|
|
562
598
|
DataFieldType2["BOOLEAN"] = "boolean";
|
|
599
|
+
DataFieldType2["FILE"] = "file";
|
|
600
|
+
DataFieldType2["REFERENCE"] = "reference";
|
|
601
|
+
DataFieldType2["FUNCTION"] = "function";
|
|
563
602
|
DataFieldType2["ARRAY"] = "array";
|
|
564
603
|
DataFieldType2["OBJECT"] = "object";
|
|
565
|
-
DataFieldType2["
|
|
604
|
+
DataFieldType2["US_ZIP_CODE"] = "us_zip_code";
|
|
566
605
|
return DataFieldType2;
|
|
567
606
|
})(DataFieldType || {});
|
|
568
607
|
var IndexStatus = /* @__PURE__ */ ((IndexStatus2) => {
|
|
569
|
-
IndexStatus2["
|
|
570
|
-
IndexStatus2["
|
|
571
|
-
IndexStatus2["
|
|
572
|
-
IndexStatus2["REMOVING"] = "removing";
|
|
573
|
-
IndexStatus2["READY"] = "ready";
|
|
608
|
+
IndexStatus2["NOT_INDEXED"] = "not_indexed";
|
|
609
|
+
IndexStatus2["INDEXING"] = "indexing";
|
|
610
|
+
IndexStatus2["INDEXED"] = "indexed";
|
|
574
611
|
IndexStatus2["ERROR"] = "error";
|
|
575
612
|
return IndexStatus2;
|
|
576
613
|
})(IndexStatus || {});
|
|
577
614
|
var DataTypeRecordScope = /* @__PURE__ */ ((DataTypeRecordScope2) => {
|
|
578
|
-
DataTypeRecordScope2["MEMBER"] = "member";
|
|
579
615
|
DataTypeRecordScope2["WORKSPACE"] = "workspace";
|
|
616
|
+
DataTypeRecordScope2["MEMBER"] = "member";
|
|
580
617
|
return DataTypeRecordScope2;
|
|
581
618
|
})(DataTypeRecordScope || {});
|
|
582
619
|
var DataSensitivity = /* @__PURE__ */ ((DataSensitivity2) => {
|
|
@@ -588,21 +625,48 @@ var DataSensitivity = /* @__PURE__ */ ((DataSensitivity2) => {
|
|
|
588
625
|
return DataSensitivity2;
|
|
589
626
|
})(DataSensitivity || {});
|
|
590
627
|
var DataCategory = /* @__PURE__ */ ((DataCategory2) => {
|
|
591
|
-
DataCategory2["PERSONAL"] = "personal";
|
|
592
|
-
DataCategory2["IDENTIFIER"] = "identifier";
|
|
593
628
|
DataCategory2["PHI"] = "phi";
|
|
629
|
+
DataCategory2["PII"] = "pii";
|
|
630
|
+
DataCategory2["FINANCIAL"] = "financial";
|
|
631
|
+
DataCategory2["OPERATIONAL"] = "operational";
|
|
594
632
|
DataCategory2["CREDENTIAL"] = "credential";
|
|
633
|
+
DataCategory2["PERSONAL"] = "personal";
|
|
634
|
+
DataCategory2["IDENTIFIER"] = "identifier";
|
|
595
635
|
return DataCategory2;
|
|
596
636
|
})(DataCategory || {});
|
|
597
637
|
|
|
638
|
+
// src/types/generated/ai_model.ts
|
|
639
|
+
var ModelProvider = {
|
|
640
|
+
unknown: "unknown",
|
|
641
|
+
openai: "openai",
|
|
642
|
+
google: "google",
|
|
643
|
+
anthropic: "anthropic",
|
|
644
|
+
aws: "aws",
|
|
645
|
+
elevenlabs: "elevenlabs",
|
|
646
|
+
deepgram: "deepgram",
|
|
647
|
+
pocket: "pocket",
|
|
648
|
+
xai: "xai",
|
|
649
|
+
custom: "custom"
|
|
650
|
+
};
|
|
651
|
+
var ModelType = {
|
|
652
|
+
chat: "chat",
|
|
653
|
+
realtime: "realtime",
|
|
654
|
+
image: "image",
|
|
655
|
+
video: "video",
|
|
656
|
+
stt: "stt",
|
|
657
|
+
tts: "tts"
|
|
658
|
+
};
|
|
659
|
+
|
|
598
660
|
// src/types/ai-model-types.ts
|
|
599
661
|
var REALTIME_MODEL_OPENAI = "openai:realtime:gpt-realtime";
|
|
600
662
|
var REALTIME_MODEL_OPENAI_MINI = "openai:realtime:gpt-realtime-mini";
|
|
663
|
+
var REALTIME_MODEL_OPENAI_2 = "openai:realtime:gpt-realtime-2";
|
|
601
664
|
var REALTIME_MODEL_GEMINI = "google:aistudio:gemini-3.1-flash-live";
|
|
602
665
|
var REALTIME_MODEL_GEMINI_VERTEX = "google:vertex:gemini-3.1-flash-live";
|
|
603
666
|
var REALTIME_MODEL_NOVA_SONIC = "aws:bedrock:nova-sonic-1";
|
|
604
667
|
var REALTIME_MODEL_CUSTOM = "custom:realtime:composable";
|
|
605
668
|
var STT_MODEL_DEEPGRAM_FLUX = "deepgram:stt:flux-general-en";
|
|
669
|
+
var STT_MODEL_DEEPGRAM_FLUX_MULTI = "deepgram:stt:flux-general-multi";
|
|
606
670
|
var STT_MODEL_ELEVENLABS_SCRIBE = "elevenlabs:stt:scribe_v2_realtime";
|
|
607
671
|
var TTS_MODEL_ELEVENLABS_FLASH = "elevenlabs:tts:eleven_flash_v2_5";
|
|
608
672
|
var TTS_MODEL_ELEVENLABS_TURBO = "elevenlabs:tts:eleven_turbo_v2_5";
|
|
@@ -731,6 +795,14 @@ var ConsentMethod = /* @__PURE__ */ ((ConsentMethod2) => {
|
|
|
731
795
|
return ConsentMethod2;
|
|
732
796
|
})(ConsentMethod || {});
|
|
733
797
|
|
|
798
|
+
// src/types/agent-task-types.ts
|
|
799
|
+
var TERMINAL_TASK_STATES = [
|
|
800
|
+
"TASK_STATE_COMPLETED",
|
|
801
|
+
"TASK_STATE_FAILED",
|
|
802
|
+
"TASK_STATE_CANCELED",
|
|
803
|
+
"TASK_STATE_REJECTED"
|
|
804
|
+
];
|
|
805
|
+
|
|
734
806
|
// src/types/ability-types.ts
|
|
735
807
|
var AbilityTypeSlugs = {
|
|
736
808
|
// Tools
|
|
@@ -752,6 +824,8 @@ var AbilityTypeSlugs = {
|
|
|
752
824
|
SUPERVISOR: "oversight:supervisor",
|
|
753
825
|
SUPERVISOR_ACTIONS: "oversight:supervisor_actions",
|
|
754
826
|
ESCALATION: "oversight:escalation",
|
|
827
|
+
// Identity
|
|
828
|
+
MEMBER_FIELD_VERIFICATION: "identity:member_field_verification",
|
|
755
829
|
// System (auto-injected, hidden from users)
|
|
756
830
|
USER_MESSAGE_RULES: "system:user_message_rules",
|
|
757
831
|
ASSISTANT_MESSAGE_RULES: "chat:assistant_message_rules",
|
|
@@ -774,7 +848,8 @@ var TTS_PREVIEW_PROVIDERS = [
|
|
|
774
848
|
"google",
|
|
775
849
|
"aws",
|
|
776
850
|
"pocket",
|
|
777
|
-
"deepgram"
|
|
851
|
+
"deepgram",
|
|
852
|
+
"xai"
|
|
778
853
|
];
|
|
779
854
|
function getVoiceModelId(entity) {
|
|
780
855
|
const config = entity.realtimeModelConfig;
|
|
@@ -930,6 +1005,129 @@ function getApplicableResourceSlugs(productType) {
|
|
|
930
1005
|
return getApplicableResources(scope);
|
|
931
1006
|
}
|
|
932
1007
|
|
|
1008
|
+
// src/types/chat-types.ts
|
|
1009
|
+
var SMS_DELIVERY_FAILURE_STATUSES = /* @__PURE__ */ new Set([
|
|
1010
|
+
"failed",
|
|
1011
|
+
"undelivered"
|
|
1012
|
+
]);
|
|
1013
|
+
function isSMSDeliveryFailureStatus(status) {
|
|
1014
|
+
return status != null && SMS_DELIVERY_FAILURE_STATUSES.has(status);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
// src/types/generated/organization.ts
|
|
1018
|
+
var BusinessIndustry = {
|
|
1019
|
+
AGRICULTURE: "AGRICULTURE",
|
|
1020
|
+
AUTOMOTIVE: "AUTOMOTIVE",
|
|
1021
|
+
BANKING: "BANKING",
|
|
1022
|
+
CONSUMER: "CONSUMER",
|
|
1023
|
+
EDUCATION: "EDUCATION",
|
|
1024
|
+
ELECTRONICS: "ELECTRONICS",
|
|
1025
|
+
ENERGY: "ENERGY",
|
|
1026
|
+
ENGINEERING: "ENGINEERING",
|
|
1027
|
+
FAST_MOVING_CONSUMER_GOODS: "FAST_MOVING_CONSUMER_GOODS",
|
|
1028
|
+
FINANCIAL: "FINANCIAL",
|
|
1029
|
+
FINTECH: "FINTECH",
|
|
1030
|
+
FOOD_AND_BEVERAGE: "FOOD_AND_BEVERAGE",
|
|
1031
|
+
GOVERNMENT: "GOVERNMENT",
|
|
1032
|
+
HEALTHCARE: "HEALTHCARE",
|
|
1033
|
+
HOSPITALITY: "HOSPITALITY",
|
|
1034
|
+
INSURANCE: "INSURANCE",
|
|
1035
|
+
JEWELRY: "JEWELRY",
|
|
1036
|
+
LEGAL: "LEGAL",
|
|
1037
|
+
MANUFACTURING: "MANUFACTURING",
|
|
1038
|
+
MEDIA: "MEDIA",
|
|
1039
|
+
NOT_FOR_PROFIT: "NOT_FOR_PROFIT",
|
|
1040
|
+
OIL_AND_GAS: "OIL_AND_GAS",
|
|
1041
|
+
ONLINE: "ONLINE",
|
|
1042
|
+
RAW_MATERIALS: "RAW_MATERIALS",
|
|
1043
|
+
REAL_ESTATE: "REAL_ESTATE",
|
|
1044
|
+
RELIGION: "RELIGION",
|
|
1045
|
+
RETAIL: "RETAIL",
|
|
1046
|
+
TECHNOLOGY: "TECHNOLOGY",
|
|
1047
|
+
TELECOMMUNICATIONS: "TELECOMMUNICATIONS",
|
|
1048
|
+
TRANSPORTATION: "TRANSPORTATION",
|
|
1049
|
+
TRAVEL: "TRAVEL"
|
|
1050
|
+
};
|
|
1051
|
+
var BusinessType = {
|
|
1052
|
+
Sole_Proprietorship: "Sole Proprietorship",
|
|
1053
|
+
Partnership: "Partnership",
|
|
1054
|
+
Limited_Liability_Corporation: "Limited Liability Corporation",
|
|
1055
|
+
"Co-operative": "Co-operative",
|
|
1056
|
+
"Non-profit_Corporation": "Non-profit Corporation",
|
|
1057
|
+
Corporation: "Corporation"
|
|
1058
|
+
};
|
|
1059
|
+
var EmailDnsRecordType = {
|
|
1060
|
+
TXT: "TXT",
|
|
1061
|
+
CNAME: "CNAME",
|
|
1062
|
+
MX: "MX"
|
|
1063
|
+
};
|
|
1064
|
+
var JobPosition = {
|
|
1065
|
+
Director: "Director",
|
|
1066
|
+
GM: "GM",
|
|
1067
|
+
VP: "VP",
|
|
1068
|
+
CEO: "CEO",
|
|
1069
|
+
CFO: "CFO",
|
|
1070
|
+
General_Counsel: "General Counsel",
|
|
1071
|
+
Other: "Other"
|
|
1072
|
+
};
|
|
1073
|
+
var OIDCAdminConfigViewProviderType = {
|
|
1074
|
+
azure_ad: "azure_ad",
|
|
1075
|
+
okta: "okta",
|
|
1076
|
+
auth0: "auth0",
|
|
1077
|
+
generic: "generic"
|
|
1078
|
+
};
|
|
1079
|
+
var Region = {
|
|
1080
|
+
AFRICA: "AFRICA",
|
|
1081
|
+
ASIA: "ASIA",
|
|
1082
|
+
EUROPE: "EUROPE",
|
|
1083
|
+
LATIN_AMERICA: "LATIN_AMERICA",
|
|
1084
|
+
USA_AND_CANADA: "USA_AND_CANADA",
|
|
1085
|
+
AUSTRALIA: "AUSTRALIA"
|
|
1086
|
+
};
|
|
1087
|
+
var RegistrationIdentifier = {
|
|
1088
|
+
EIN: "EIN",
|
|
1089
|
+
CBN: "CBN",
|
|
1090
|
+
CN: "CN",
|
|
1091
|
+
ACN: "ACN",
|
|
1092
|
+
CIN: "CIN",
|
|
1093
|
+
VAT: "VAT",
|
|
1094
|
+
VATRN: "VATRN",
|
|
1095
|
+
RN: "RN",
|
|
1096
|
+
DUNS: "DUNS",
|
|
1097
|
+
Other: "Other"
|
|
1098
|
+
};
|
|
1099
|
+
var SiteDnsRecordType = {
|
|
1100
|
+
CNAME: "CNAME",
|
|
1101
|
+
A: "A",
|
|
1102
|
+
TXT: "TXT"
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
// src/types/generated/site.ts
|
|
1106
|
+
var MenuItemResponseItemType = {
|
|
1107
|
+
page: "page",
|
|
1108
|
+
url: "url",
|
|
1109
|
+
products: "products",
|
|
1110
|
+
none: "none"
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
// src/types/generated/task.ts
|
|
1114
|
+
var AbilityConfigIssueCode = {
|
|
1115
|
+
missing_resource: "missing_resource",
|
|
1116
|
+
invalid_state: "invalid_state",
|
|
1117
|
+
feature_disabled: "feature_disabled",
|
|
1118
|
+
external_drift: "external_drift"
|
|
1119
|
+
};
|
|
1120
|
+
var AbilityConfigIssueSeverity = {
|
|
1121
|
+
warning: "warning",
|
|
1122
|
+
error: "error"
|
|
1123
|
+
};
|
|
1124
|
+
var WorkflowAccessWarningResourceType = {
|
|
1125
|
+
form: "form",
|
|
1126
|
+
file: "file",
|
|
1127
|
+
folder: "folder",
|
|
1128
|
+
calendar: "calendar"
|
|
1129
|
+
};
|
|
1130
|
+
|
|
933
1131
|
// src/app-context.ts
|
|
934
1132
|
function formatAppContextAsMarkdown(context) {
|
|
935
1133
|
if (!context) {
|
|
@@ -1123,7 +1321,7 @@ function isChatType(value) {
|
|
|
1123
1321
|
|
|
1124
1322
|
// src/constants/models.ts
|
|
1125
1323
|
var DEFAULT_CHAT_MODEL = "aws:bedrock:claude-4-5-haiku";
|
|
1126
|
-
var DEFAULT_VOICE_INFERENCE_MODEL = "google:
|
|
1324
|
+
var DEFAULT_VOICE_INFERENCE_MODEL = "google:vertex:gemini-3-flash";
|
|
1127
1325
|
var DEFAULT_CUSTOM_VOICE_MODEL = "elevenlabs:voice:river";
|
|
1128
1326
|
|
|
1129
1327
|
// src/scopes.ts
|
|
@@ -1790,7 +1988,7 @@ function parseOrgAuthChallenge(wwwAuthenticate) {
|
|
|
1790
1988
|
const cookieNameMatch = wwwAuthenticate.match(/cookie_name="([^"]+)"/);
|
|
1791
1989
|
const authUrlMatch = wwwAuthenticate.match(/auth_url="([^"]+)"/);
|
|
1792
1990
|
if (!orgUuidMatch?.[1] || !cookieNameMatch?.[1] || !authUrlMatch?.[1]) {
|
|
1793
|
-
console.warn("Invalid org auth challenge header:"
|
|
1991
|
+
console.warn("Invalid org auth challenge header: missing required fields");
|
|
1794
1992
|
return null;
|
|
1795
1993
|
}
|
|
1796
1994
|
return {
|
|
@@ -1807,8 +2005,17 @@ var BaseApiClient = class {
|
|
|
1807
2005
|
enhancedAuthHandler;
|
|
1808
2006
|
enhancedAuthInProgress = null;
|
|
1809
2007
|
orgAuthHandler;
|
|
2008
|
+
orgAuthInProgress = null;
|
|
1810
2009
|
actingMemberUuid;
|
|
1811
2010
|
orgToken;
|
|
2011
|
+
/**
|
|
2012
|
+
* The org_uuid that issued the current orgToken. Tracked so we can detect
|
|
2013
|
+
* a 401 challenge from a *different* org and re-fire the handler — the
|
|
2014
|
+
* orgToken is an opaque JWE we cannot decrypt client-side, so without this
|
|
2015
|
+
* the original guard `!this.orgToken` would prevent re-auth across orgs and
|
|
2016
|
+
* surface as a silent 401 in multi-org CLI workflows.
|
|
2017
|
+
*/
|
|
2018
|
+
orgTokenOrgUuid;
|
|
1812
2019
|
constructor(apiKey, baseUrl, customFetch) {
|
|
1813
2020
|
this.baseUrl = baseUrl;
|
|
1814
2021
|
this.apiKey = apiKey;
|
|
@@ -1858,9 +2065,15 @@ var BaseApiClient = class {
|
|
|
1858
2065
|
* Set the org token for cross-domain requests.
|
|
1859
2066
|
* When set, all API requests will include the X-Org-Token header,
|
|
1860
2067
|
* allowing org-level SSO verification without cookies.
|
|
2068
|
+
*
|
|
2069
|
+
* `orgUuid` is the org that issued the token; passing it lets the 401
|
|
2070
|
+
* handler detect a stale token when a subsequent request targets a
|
|
2071
|
+
* different org and re-fire the org-auth handler instead of silently
|
|
2072
|
+
* 401-ing. Callers without that context (legacy / unknown) may omit it.
|
|
1861
2073
|
*/
|
|
1862
|
-
setOrgToken(token) {
|
|
2074
|
+
setOrgToken(token, orgUuid) {
|
|
1863
2075
|
this.orgToken = token;
|
|
2076
|
+
this.orgTokenOrgUuid = token ? orgUuid : void 0;
|
|
1864
2077
|
}
|
|
1865
2078
|
async fetch(endpoint, options) {
|
|
1866
2079
|
try {
|
|
@@ -1908,29 +2121,61 @@ var BaseApiClient = class {
|
|
|
1908
2121
|
return await this.fetch(endpoint, options);
|
|
1909
2122
|
} catch (retryError) {
|
|
1910
2123
|
this.orgToken = void 0;
|
|
2124
|
+
this.orgTokenOrgUuid = void 0;
|
|
1911
2125
|
throw retryError;
|
|
1912
2126
|
}
|
|
1913
2127
|
}
|
|
1914
2128
|
if (response.status === 401) {
|
|
1915
2129
|
const orgAuthInfo = parseOrgAuthChallenge(response.headers.get("WWW-Authenticate"));
|
|
2130
|
+
if (orgAuthInfo && this.orgToken && this.orgTokenOrgUuid && this.orgTokenOrgUuid !== orgAuthInfo.orgUuid) {
|
|
2131
|
+
this.orgToken = void 0;
|
|
2132
|
+
this.orgTokenOrgUuid = void 0;
|
|
2133
|
+
}
|
|
1916
2134
|
if (orgAuthInfo && !this.orgToken) {
|
|
1917
2135
|
const requestCookieName = orgAuthInfo.cookieName.replace(
|
|
1918
|
-
|
|
2136
|
+
/^orgToken/,
|
|
1919
2137
|
"requestOrgToken"
|
|
1920
2138
|
);
|
|
1921
2139
|
const cachedOrgToken = getCookieValue(requestCookieName);
|
|
1922
2140
|
if (cachedOrgToken) {
|
|
1923
2141
|
this.orgToken = cachedOrgToken;
|
|
2142
|
+
this.orgTokenOrgUuid = orgAuthInfo.orgUuid;
|
|
1924
2143
|
try {
|
|
1925
2144
|
return await this.fetch(endpoint, options);
|
|
1926
2145
|
} catch (retryError) {
|
|
1927
2146
|
this.orgToken = void 0;
|
|
2147
|
+
this.orgTokenOrgUuid = void 0;
|
|
1928
2148
|
throw retryError;
|
|
1929
2149
|
}
|
|
1930
2150
|
}
|
|
1931
2151
|
if (this.orgAuthHandler) {
|
|
1932
|
-
|
|
1933
|
-
|
|
2152
|
+
if (!this.orgAuthInProgress) {
|
|
2153
|
+
const handler = this.orgAuthHandler;
|
|
2154
|
+
this.orgAuthInProgress = (async () => {
|
|
2155
|
+
try {
|
|
2156
|
+
await handler(orgAuthInfo);
|
|
2157
|
+
} finally {
|
|
2158
|
+
this.orgAuthInProgress = null;
|
|
2159
|
+
}
|
|
2160
|
+
})();
|
|
2161
|
+
}
|
|
2162
|
+
await this.orgAuthInProgress;
|
|
2163
|
+
const postHandlerToken = getCookieValue(requestCookieName) ?? this.orgToken;
|
|
2164
|
+
if (!postHandlerToken) {
|
|
2165
|
+
throw new ApiError(
|
|
2166
|
+
"Organization authentication did not issue a token",
|
|
2167
|
+
401
|
|
2168
|
+
);
|
|
2169
|
+
}
|
|
2170
|
+
this.orgToken = postHandlerToken;
|
|
2171
|
+
this.orgTokenOrgUuid = orgAuthInfo.orgUuid;
|
|
2172
|
+
try {
|
|
2173
|
+
return await this.fetch(endpoint, options);
|
|
2174
|
+
} catch (retryError) {
|
|
2175
|
+
this.orgToken = void 0;
|
|
2176
|
+
this.orgTokenOrgUuid = void 0;
|
|
2177
|
+
throw retryError;
|
|
2178
|
+
}
|
|
1934
2179
|
}
|
|
1935
2180
|
}
|
|
1936
2181
|
}
|
|
@@ -2029,29 +2274,61 @@ ${formattedErrors}`, response.status);
|
|
|
2029
2274
|
return await this.fetchRaw(endpoint, options, allowedErrorStatuses);
|
|
2030
2275
|
} catch (retryError) {
|
|
2031
2276
|
this.orgToken = void 0;
|
|
2277
|
+
this.orgTokenOrgUuid = void 0;
|
|
2032
2278
|
throw retryError;
|
|
2033
2279
|
}
|
|
2034
2280
|
}
|
|
2035
2281
|
if (response.status === 401) {
|
|
2036
2282
|
const orgAuthInfo = parseOrgAuthChallenge(response.headers.get("WWW-Authenticate"));
|
|
2283
|
+
if (orgAuthInfo && this.orgToken && this.orgTokenOrgUuid && this.orgTokenOrgUuid !== orgAuthInfo.orgUuid) {
|
|
2284
|
+
this.orgToken = void 0;
|
|
2285
|
+
this.orgTokenOrgUuid = void 0;
|
|
2286
|
+
}
|
|
2037
2287
|
if (orgAuthInfo && !this.orgToken) {
|
|
2038
2288
|
const requestCookieName = orgAuthInfo.cookieName.replace(
|
|
2039
|
-
|
|
2289
|
+
/^orgToken/,
|
|
2040
2290
|
"requestOrgToken"
|
|
2041
2291
|
);
|
|
2042
2292
|
const cachedOrgToken = getCookieValue(requestCookieName);
|
|
2043
2293
|
if (cachedOrgToken) {
|
|
2044
2294
|
this.orgToken = cachedOrgToken;
|
|
2295
|
+
this.orgTokenOrgUuid = orgAuthInfo.orgUuid;
|
|
2045
2296
|
try {
|
|
2046
2297
|
return await this.fetchRaw(endpoint, options, allowedErrorStatuses);
|
|
2047
2298
|
} catch (retryError) {
|
|
2048
2299
|
this.orgToken = void 0;
|
|
2300
|
+
this.orgTokenOrgUuid = void 0;
|
|
2049
2301
|
throw retryError;
|
|
2050
2302
|
}
|
|
2051
2303
|
}
|
|
2052
2304
|
if (this.orgAuthHandler) {
|
|
2053
|
-
|
|
2054
|
-
|
|
2305
|
+
if (!this.orgAuthInProgress) {
|
|
2306
|
+
const handler = this.orgAuthHandler;
|
|
2307
|
+
this.orgAuthInProgress = (async () => {
|
|
2308
|
+
try {
|
|
2309
|
+
await handler(orgAuthInfo);
|
|
2310
|
+
} finally {
|
|
2311
|
+
this.orgAuthInProgress = null;
|
|
2312
|
+
}
|
|
2313
|
+
})();
|
|
2314
|
+
}
|
|
2315
|
+
await this.orgAuthInProgress;
|
|
2316
|
+
const postHandlerToken = getCookieValue(requestCookieName) ?? this.orgToken;
|
|
2317
|
+
if (!postHandlerToken) {
|
|
2318
|
+
throw new ApiError(
|
|
2319
|
+
"Organization authentication did not issue a token",
|
|
2320
|
+
401
|
|
2321
|
+
);
|
|
2322
|
+
}
|
|
2323
|
+
this.orgToken = postHandlerToken;
|
|
2324
|
+
this.orgTokenOrgUuid = orgAuthInfo.orgUuid;
|
|
2325
|
+
try {
|
|
2326
|
+
return await this.fetchRaw(endpoint, options, allowedErrorStatuses);
|
|
2327
|
+
} catch (retryError) {
|
|
2328
|
+
this.orgToken = void 0;
|
|
2329
|
+
this.orgTokenOrgUuid = void 0;
|
|
2330
|
+
throw retryError;
|
|
2331
|
+
}
|
|
2055
2332
|
}
|
|
2056
2333
|
}
|
|
2057
2334
|
}
|
|
@@ -2474,7 +2751,8 @@ var AssignmentsApi = class extends BaseApiClient {
|
|
|
2474
2751
|
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
2475
2752
|
if (options.mine) params.append("mine", options.mine.toString());
|
|
2476
2753
|
if (options.taskId) params.append("taskId", options.taskId.toString());
|
|
2477
|
-
if (options.memberId
|
|
2754
|
+
if (options.memberId !== void 0)
|
|
2755
|
+
params.append("memberId", options.memberId.toString());
|
|
2478
2756
|
if (options.status) params.append("status", options.status);
|
|
2479
2757
|
return this.fetch(
|
|
2480
2758
|
`w/${wid}/assignments${params.toString() ? `?${params.toString()}` : ""}`
|
|
@@ -3280,6 +3558,8 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
3280
3558
|
if (options.filters && options.filters.length > 0) {
|
|
3281
3559
|
params.append("filters", JSON.stringify(options.filters));
|
|
3282
3560
|
}
|
|
3561
|
+
if (options.createdAfter) params.append("createdAfter", options.createdAfter);
|
|
3562
|
+
if (options.createdBefore) params.append("createdBefore", options.createdBefore);
|
|
3283
3563
|
return params;
|
|
3284
3564
|
}
|
|
3285
3565
|
/** List chats with optional filtering, sorting, and pagination. */
|
|
@@ -4058,6 +4338,68 @@ var SlackAppsApi = class extends BaseApiClient {
|
|
|
4058
4338
|
}
|
|
4059
4339
|
};
|
|
4060
4340
|
|
|
4341
|
+
// src/api/teams-apps.ts
|
|
4342
|
+
var TeamsAppsApi = class extends BaseApiClient {
|
|
4343
|
+
/**
|
|
4344
|
+
* List all Teams apps configured for a workspace.
|
|
4345
|
+
*/
|
|
4346
|
+
async getTeamsApps(wid, options = {}) {
|
|
4347
|
+
const params = new URLSearchParams();
|
|
4348
|
+
if (options.page) params.append("page", options.page.toString());
|
|
4349
|
+
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
4350
|
+
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
4351
|
+
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
4352
|
+
if (options.search) params.append("search", options.search);
|
|
4353
|
+
return this.fetch(
|
|
4354
|
+
`w/${wid}/app-connections/teams/apps${params.toString() ? `?${params.toString()}` : ""}`
|
|
4355
|
+
);
|
|
4356
|
+
}
|
|
4357
|
+
async getTeamsApp(wid, appId) {
|
|
4358
|
+
return this.fetch(`w/${wid}/app-connections/teams/apps/${appId}`);
|
|
4359
|
+
}
|
|
4360
|
+
async createTeamsApp(wid, data) {
|
|
4361
|
+
return this.fetch(`w/${wid}/app-connections/teams/apps`, {
|
|
4362
|
+
method: "POST",
|
|
4363
|
+
body: JSON.stringify(data)
|
|
4364
|
+
});
|
|
4365
|
+
}
|
|
4366
|
+
async updateTeamsApp(wid, appId, data) {
|
|
4367
|
+
return this.fetch(`w/${wid}/app-connections/teams/apps/${appId}`, {
|
|
4368
|
+
method: "PUT",
|
|
4369
|
+
body: JSON.stringify(data)
|
|
4370
|
+
});
|
|
4371
|
+
}
|
|
4372
|
+
async deleteTeamsApp(wid, appId) {
|
|
4373
|
+
return this.fetch(`w/${wid}/app-connections/teams/apps/${appId}`, {
|
|
4374
|
+
method: "DELETE"
|
|
4375
|
+
});
|
|
4376
|
+
}
|
|
4377
|
+
async getTeamsConversations(wid, appId, options = {}) {
|
|
4378
|
+
const params = new URLSearchParams();
|
|
4379
|
+
if (options.page) params.append("page", options.page.toString());
|
|
4380
|
+
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
4381
|
+
return this.fetch(
|
|
4382
|
+
`w/${wid}/app-connections/teams/apps/${appId}/conversations${params.toString() ? `?${params.toString()}` : ""}`
|
|
4383
|
+
);
|
|
4384
|
+
}
|
|
4385
|
+
async getTeamsInstallations(wid, appId, options = {}) {
|
|
4386
|
+
const params = new URLSearchParams();
|
|
4387
|
+
if (options.page) params.append("page", options.page.toString());
|
|
4388
|
+
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
4389
|
+
return this.fetch(
|
|
4390
|
+
`w/${wid}/app-connections/teams/apps/${appId}/installations${params.toString() ? `?${params.toString()}` : ""}`
|
|
4391
|
+
);
|
|
4392
|
+
}
|
|
4393
|
+
async getTeamsAppAccounts(wid, appId, options = {}) {
|
|
4394
|
+
const params = new URLSearchParams();
|
|
4395
|
+
if (options.page) params.append("page", options.page.toString());
|
|
4396
|
+
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
4397
|
+
return this.fetch(
|
|
4398
|
+
`w/${wid}/app-connections/teams/apps/${appId}/accounts${params.toString() ? `?${params.toString()}` : ""}`
|
|
4399
|
+
);
|
|
4400
|
+
}
|
|
4401
|
+
};
|
|
4402
|
+
|
|
4061
4403
|
// src/api/events.ts
|
|
4062
4404
|
var EventsApi = class extends BaseApiClient {
|
|
4063
4405
|
/** List event rules in the workspace, paginated. */
|
|
@@ -4560,6 +4902,40 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
4560
4902
|
method: "DELETE"
|
|
4561
4903
|
});
|
|
4562
4904
|
}
|
|
4905
|
+
async listHealthieAppointmentTypes(wid, providerId) {
|
|
4906
|
+
const query = new URLSearchParams();
|
|
4907
|
+
if (providerId) query.set("provider_id", providerId);
|
|
4908
|
+
const qs = query.toString() ? `?${query.toString()}` : "";
|
|
4909
|
+
return this.fetch(
|
|
4910
|
+
`w/${wid}/app-connections/healthie/appointment-types${qs}`
|
|
4911
|
+
);
|
|
4912
|
+
}
|
|
4913
|
+
async listHealthiePatients(wid, keywords) {
|
|
4914
|
+
const query = new URLSearchParams();
|
|
4915
|
+
if (keywords?.trim()) query.set("keywords", keywords.trim());
|
|
4916
|
+
const qs = query.toString() ? `?${query.toString()}` : "";
|
|
4917
|
+
return this.fetch(
|
|
4918
|
+
`w/${wid}/app-connections/healthie/patients${qs}`
|
|
4919
|
+
);
|
|
4920
|
+
}
|
|
4921
|
+
async getHealthieAvailableSlots(wid, request) {
|
|
4922
|
+
return this.fetch(
|
|
4923
|
+
`w/${wid}/app-connections/healthie/scheduling/available-slots`,
|
|
4924
|
+
{
|
|
4925
|
+
method: "POST",
|
|
4926
|
+
body: JSON.stringify(request)
|
|
4927
|
+
}
|
|
4928
|
+
);
|
|
4929
|
+
}
|
|
4930
|
+
async bookHealthieAppointment(wid, request) {
|
|
4931
|
+
return this.fetch(
|
|
4932
|
+
`w/${wid}/app-connections/healthie/scheduling/book`,
|
|
4933
|
+
{
|
|
4934
|
+
method: "POST",
|
|
4935
|
+
body: JSON.stringify(request)
|
|
4936
|
+
}
|
|
4937
|
+
);
|
|
4938
|
+
}
|
|
4563
4939
|
};
|
|
4564
4940
|
|
|
4565
4941
|
// src/api/files.ts
|
|
@@ -4827,10 +5203,17 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
4827
5203
|
method: "POST"
|
|
4828
5204
|
});
|
|
4829
5205
|
}
|
|
5206
|
+
/** Reply to an email from the inbox. */
|
|
5207
|
+
async replyToEmail(wid, inboxId, emailId, content) {
|
|
5208
|
+
return this.fetch(`w/${wid}/inboxes/${inboxId}/emails/${emailId}/reply`, {
|
|
5209
|
+
method: "POST",
|
|
5210
|
+
body: JSON.stringify({ content })
|
|
5211
|
+
});
|
|
5212
|
+
}
|
|
4830
5213
|
/** Convert an email to text, markdown, or PDF format. */
|
|
4831
|
-
async convertEmail(wid, emailId, format = "pdf") {
|
|
5214
|
+
async convertEmail(wid, inboxId, emailId, format = "pdf") {
|
|
4832
5215
|
return this.fetch(
|
|
4833
|
-
`w/${wid}/inboxes/emails/${emailId}/convert?format=${format}`,
|
|
5216
|
+
`w/${wid}/inboxes/${inboxId}/emails/${emailId}/convert?format=${format}`,
|
|
4834
5217
|
{
|
|
4835
5218
|
method: "POST"
|
|
4836
5219
|
}
|
|
@@ -5005,6 +5388,19 @@ var AppConnectionsApi = class extends BaseApiClient {
|
|
|
5005
5388
|
{ method: "DELETE" }
|
|
5006
5389
|
);
|
|
5007
5390
|
}
|
|
5391
|
+
/**
|
|
5392
|
+
* List distinct ``MemberField.key`` values scoped to a connection
|
|
5393
|
+
* (GRA-2920). Drives the Monday custom-match "Custom fields" picker.
|
|
5394
|
+
*
|
|
5395
|
+
* Returns only the set of keys already in use on this connection;
|
|
5396
|
+
* values are intentionally never exposed. Operators can also add a
|
|
5397
|
+
* new key via the UI's "Add custom field key" free-text action.
|
|
5398
|
+
*/
|
|
5399
|
+
async listConnectionMemberFieldKeys(wid, connectionId) {
|
|
5400
|
+
return this.fetch(
|
|
5401
|
+
`w/${wid}/app-connections/${connectionId}/member-field-keys`
|
|
5402
|
+
);
|
|
5403
|
+
}
|
|
5008
5404
|
};
|
|
5009
5405
|
|
|
5010
5406
|
// src/api/mcp-servers.ts
|
|
@@ -5627,33 +6023,6 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
5627
6023
|
);
|
|
5628
6024
|
return { columns };
|
|
5629
6025
|
}
|
|
5630
|
-
/**
|
|
5631
|
-
* Create a webhook in Monday.com
|
|
5632
|
-
*/
|
|
5633
|
-
async createWebhook(wid, params) {
|
|
5634
|
-
return this.fetch(`w/${wid}/app-connections/monday/webhooks`, {
|
|
5635
|
-
method: "POST",
|
|
5636
|
-
body: JSON.stringify(params)
|
|
5637
|
-
});
|
|
5638
|
-
}
|
|
5639
|
-
/**
|
|
5640
|
-
* Delete a webhook from Monday.com
|
|
5641
|
-
*/
|
|
5642
|
-
async deleteWebhook(wid, webhookId) {
|
|
5643
|
-
return this.fetch(
|
|
5644
|
-
`w/${wid}/app-connections/monday/webhooks/${webhookId}`,
|
|
5645
|
-
{ method: "DELETE" }
|
|
5646
|
-
);
|
|
5647
|
-
}
|
|
5648
|
-
/**
|
|
5649
|
-
* Get details of a specific webhook from Monday.com
|
|
5650
|
-
* Returns 404 if the webhook no longer exists
|
|
5651
|
-
*/
|
|
5652
|
-
async getWebhook(wid, boardId, webhookId) {
|
|
5653
|
-
return this.fetch(
|
|
5654
|
-
`w/${wid}/app-connections/monday/boards/${boardId}/webhooks/${webhookId}`
|
|
5655
|
-
);
|
|
5656
|
-
}
|
|
5657
6026
|
/**
|
|
5658
6027
|
* Get groups for a specific Monday.com board
|
|
5659
6028
|
*/
|
|
@@ -6266,6 +6635,53 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6266
6635
|
body: JSON.stringify({ sampleMessages })
|
|
6267
6636
|
});
|
|
6268
6637
|
}
|
|
6638
|
+
// ============================================================================
|
|
6639
|
+
// Organization Business Profile API (Twilio Trust Hub Secondary CP)
|
|
6640
|
+
// ============================================================================
|
|
6641
|
+
/**
|
|
6642
|
+
* Live fetch of the org's Twilio Customer Profile + related entities.
|
|
6643
|
+
*
|
|
6644
|
+
* Response carries both the lifecycle `status` and the compliance
|
|
6645
|
+
* `evaluationStatus`. Twilio models lifecycle and evaluation as two
|
|
6646
|
+
* separate enums on two separate resources, so the Submit-button gate
|
|
6647
|
+
* is `evaluationStatus === 'compliant'` — never `status === 'compliant'`,
|
|
6648
|
+
* which is impossible (lifecycle status is one of `draft` /
|
|
6649
|
+
* `pending-review` / `in-review` / `twilio-approved` / `twilio-rejected`).
|
|
6650
|
+
*/
|
|
6651
|
+
async getBusinessProfile(orgUuid) {
|
|
6652
|
+
return this.fetch(`o/${orgUuid}/business-profile`);
|
|
6653
|
+
}
|
|
6654
|
+
/**
|
|
6655
|
+
* Upsert the org's business profile. Idempotent via cached SIDs.
|
|
6656
|
+
* Returns a fresh BusinessProfileResponse on success — including the
|
|
6657
|
+
* compliance evaluation result so the frontend can immediately enable
|
|
6658
|
+
* Submit without a second round-trip.
|
|
6659
|
+
*/
|
|
6660
|
+
async updateBusinessProfile(orgUuid, data) {
|
|
6661
|
+
return this.fetch(`o/${orgUuid}/business-profile`, {
|
|
6662
|
+
method: "PUT",
|
|
6663
|
+
body: JSON.stringify(data)
|
|
6664
|
+
});
|
|
6665
|
+
}
|
|
6666
|
+
/**
|
|
6667
|
+
* Submit the business profile to Twilio for review. Server re-evaluates
|
|
6668
|
+
* compliance live and returns 412 if the profile is not currently
|
|
6669
|
+
* `compliant`; returns 409 if a review is already in flight.
|
|
6670
|
+
*/
|
|
6671
|
+
async submitBusinessProfile(orgUuid) {
|
|
6672
|
+
return this.fetch(`o/${orgUuid}/business-profile/submit`, {
|
|
6673
|
+
method: "POST"
|
|
6674
|
+
});
|
|
6675
|
+
}
|
|
6676
|
+
/**
|
|
6677
|
+
* Cancel an in-flight Twilio review. Resets the cached profile state
|
|
6678
|
+
* to `draft` so the user can edit and resubmit.
|
|
6679
|
+
*/
|
|
6680
|
+
async cancelBusinessProfile(orgUuid) {
|
|
6681
|
+
return this.fetch(`o/${orgUuid}/business-profile/cancel`, {
|
|
6682
|
+
method: "POST"
|
|
6683
|
+
});
|
|
6684
|
+
}
|
|
6269
6685
|
/**
|
|
6270
6686
|
* List available member roles for a workspace in the organization.
|
|
6271
6687
|
*/
|
|
@@ -6617,15 +7033,15 @@ var PronunciationsApi = class extends BaseApiClient {
|
|
|
6617
7033
|
// src/api/prompts.ts
|
|
6618
7034
|
var PromptsApi = class extends BaseApiClient {
|
|
6619
7035
|
/** Inspect the full composed prompt for a task (static) or chat (live). */
|
|
6620
|
-
async inspectPrompt(wid,
|
|
7036
|
+
async inspectPrompt(wid, options) {
|
|
6621
7037
|
const params = new URLSearchParams();
|
|
6622
|
-
if (options.chatId) {
|
|
7038
|
+
if (options.chatId !== void 0) {
|
|
6623
7039
|
params.append("chat_id", options.chatId.toString());
|
|
6624
|
-
} else {
|
|
6625
|
-
params.append("task_id", taskId.toString());
|
|
7040
|
+
} else if (options.taskId !== void 0) {
|
|
7041
|
+
params.append("task_id", options.taskId.toString());
|
|
6626
7042
|
}
|
|
6627
7043
|
if (options.channel) params.append("channel", options.channel);
|
|
6628
|
-
if (options.turn) params.append("turn", options.turn.toString());
|
|
7044
|
+
if (options.turn !== void 0) params.append("turn", options.turn.toString());
|
|
6629
7045
|
return this.fetch(`w/${wid}/prompts/inspect?${params}`);
|
|
6630
7046
|
}
|
|
6631
7047
|
};
|
|
@@ -6978,7 +7394,8 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
6978
7394
|
dryRun: options?.dryRun ?? false,
|
|
6979
7395
|
resetCheckpoints: options?.resetCheckpoints ?? false,
|
|
6980
7396
|
...options?.entityType ? { entityType: options.entityType } : {},
|
|
6981
|
-
...options?.boardId ? { boardId: options.boardId } : {}
|
|
7397
|
+
...options?.boardId ? { boardId: options.boardId } : {},
|
|
7398
|
+
...typeof options?.recordLimit === "number" ? { recordLimit: options.recordLimit } : {}
|
|
6982
7399
|
})
|
|
6983
7400
|
});
|
|
6984
7401
|
}
|
|
@@ -6997,6 +7414,19 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
6997
7414
|
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items?limit=${limit}`
|
|
6998
7415
|
);
|
|
6999
7416
|
}
|
|
7417
|
+
/**
|
|
7418
|
+
* Clear a manual-unlink exclusion for a member on a connection so
|
|
7419
|
+
* subsequent outbound syncs stop silently skipping them. Idempotent:
|
|
7420
|
+
* returns ``cleared=false`` when no matching exclusion exists.
|
|
7421
|
+
* ``boardId`` is only meaningful for multi-scope connectors (Monday).
|
|
7422
|
+
*/
|
|
7423
|
+
async clearConnectionMemberExclusion(wid, connectionId, memberId, options) {
|
|
7424
|
+
const query = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
|
|
7425
|
+
return this.fetch(
|
|
7426
|
+
`w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query}`,
|
|
7427
|
+
{ method: "DELETE" }
|
|
7428
|
+
);
|
|
7429
|
+
}
|
|
7000
7430
|
};
|
|
7001
7431
|
|
|
7002
7432
|
// src/api/hubspot.ts
|
|
@@ -7397,6 +7827,98 @@ var SubscriptionsApi = class extends BaseApiClient {
|
|
|
7397
7827
|
}
|
|
7398
7828
|
};
|
|
7399
7829
|
|
|
7830
|
+
// src/api/support-requests.ts
|
|
7831
|
+
function supportRequestParams(params) {
|
|
7832
|
+
const searchParams = new URLSearchParams();
|
|
7833
|
+
if (params?.page) searchParams.append("page", params.page.toString());
|
|
7834
|
+
if (params?.pageSize) searchParams.append("pageSize", params.pageSize.toString());
|
|
7835
|
+
if (params?.status) searchParams.append("status", params.status);
|
|
7836
|
+
if (params?.supportRequestType) {
|
|
7837
|
+
searchParams.append("supportRequestType", params.supportRequestType);
|
|
7838
|
+
}
|
|
7839
|
+
if (params?.severity) searchParams.append("severity", params.severity);
|
|
7840
|
+
if (params?.source) searchParams.append("source", params.source);
|
|
7841
|
+
if (params?.organizationId !== void 0) {
|
|
7842
|
+
searchParams.append("organizationId", params.organizationId.toString());
|
|
7843
|
+
}
|
|
7844
|
+
if (params?.workspaceId !== void 0) {
|
|
7845
|
+
searchParams.append("workspaceId", params.workspaceId.toString());
|
|
7846
|
+
}
|
|
7847
|
+
if (params?.linearLinked !== void 0) {
|
|
7848
|
+
searchParams.append("linearLinked", params.linearLinked.toString());
|
|
7849
|
+
}
|
|
7850
|
+
const query = searchParams.toString();
|
|
7851
|
+
return query ? `?${query}` : "";
|
|
7852
|
+
}
|
|
7853
|
+
var SupportRequestsApi = class extends BaseApiClient {
|
|
7854
|
+
async listSupportRequests(params) {
|
|
7855
|
+
return this.fetch(
|
|
7856
|
+
`support-requests${supportRequestParams(params)}`
|
|
7857
|
+
);
|
|
7858
|
+
}
|
|
7859
|
+
async getSupportRequest(uuid) {
|
|
7860
|
+
return this.fetch(`support-requests/${uuid}`);
|
|
7861
|
+
}
|
|
7862
|
+
async createSupportRequest(data) {
|
|
7863
|
+
return this.fetch("support-requests", {
|
|
7864
|
+
method: "POST",
|
|
7865
|
+
body: JSON.stringify(data)
|
|
7866
|
+
});
|
|
7867
|
+
}
|
|
7868
|
+
async commentOnSupportRequest(uuid, data) {
|
|
7869
|
+
return this.fetch(`support-requests/${uuid}/comments`, {
|
|
7870
|
+
method: "POST",
|
|
7871
|
+
body: JSON.stringify(data)
|
|
7872
|
+
});
|
|
7873
|
+
}
|
|
7874
|
+
async listOrgSupportRequests(orgUuid, params) {
|
|
7875
|
+
return this.fetch(
|
|
7876
|
+
`o/${orgUuid}/support-requests${supportRequestParams(params)}`
|
|
7877
|
+
);
|
|
7878
|
+
}
|
|
7879
|
+
async getOrgSupportRequest(orgUuid, uuid) {
|
|
7880
|
+
return this.fetch(`o/${orgUuid}/support-requests/${uuid}`);
|
|
7881
|
+
}
|
|
7882
|
+
async createOrgSupportRequest(orgUuid, data) {
|
|
7883
|
+
return this.fetch(`o/${orgUuid}/support-requests`, {
|
|
7884
|
+
method: "POST",
|
|
7885
|
+
body: JSON.stringify(data)
|
|
7886
|
+
});
|
|
7887
|
+
}
|
|
7888
|
+
async commentOnOrgSupportRequest(orgUuid, uuid, data) {
|
|
7889
|
+
return this.fetch(`o/${orgUuid}/support-requests/${uuid}/comments`, {
|
|
7890
|
+
method: "POST",
|
|
7891
|
+
body: JSON.stringify(data)
|
|
7892
|
+
});
|
|
7893
|
+
}
|
|
7894
|
+
async listWorkspaceSupportRequests(workspaceUuid, params) {
|
|
7895
|
+
return this.fetch(
|
|
7896
|
+
`w/${workspaceUuid}/support-requests${supportRequestParams(params)}`
|
|
7897
|
+
);
|
|
7898
|
+
}
|
|
7899
|
+
async getWorkspaceSupportRequest(workspaceUuid, uuid) {
|
|
7900
|
+
return this.fetch(`w/${workspaceUuid}/support-requests/${uuid}`);
|
|
7901
|
+
}
|
|
7902
|
+
async createWorkspaceSupportRequest(workspaceUuid, data) {
|
|
7903
|
+
return this.fetch(`w/${workspaceUuid}/support-requests`, {
|
|
7904
|
+
method: "POST",
|
|
7905
|
+
body: JSON.stringify(data)
|
|
7906
|
+
});
|
|
7907
|
+
}
|
|
7908
|
+
async commentOnWorkspaceSupportRequest(workspaceUuid, uuid, data) {
|
|
7909
|
+
return this.fetch(`w/${workspaceUuid}/support-requests/${uuid}/comments`, {
|
|
7910
|
+
method: "POST",
|
|
7911
|
+
body: JSON.stringify(data)
|
|
7912
|
+
});
|
|
7913
|
+
}
|
|
7914
|
+
async closeWorkspaceSupportRequest(workspaceUuid, uuid, data = {}) {
|
|
7915
|
+
return this.fetch(`w/${workspaceUuid}/support-requests/${uuid}/close`, {
|
|
7916
|
+
method: "POST",
|
|
7917
|
+
body: JSON.stringify(data)
|
|
7918
|
+
});
|
|
7919
|
+
}
|
|
7920
|
+
};
|
|
7921
|
+
|
|
7400
7922
|
// src/api/customers.ts
|
|
7401
7923
|
var CustomersApi = class extends BaseApiClient {
|
|
7402
7924
|
async getMyCustomers() {
|
|
@@ -7411,8 +7933,8 @@ var CustomersApi = class extends BaseApiClient {
|
|
|
7411
7933
|
async getMyCustomerSubscriptions(uuid, opts) {
|
|
7412
7934
|
const params = new URLSearchParams();
|
|
7413
7935
|
if (opts?.status) params.set("status", opts.status);
|
|
7414
|
-
if (opts?.page) params.set("page", String(opts.page));
|
|
7415
|
-
if (opts?.pageSize) params.set("page_size", String(opts.pageSize));
|
|
7936
|
+
if (opts?.page !== void 0) params.set("page", String(opts.page));
|
|
7937
|
+
if (opts?.pageSize !== void 0) params.set("page_size", String(opts.pageSize));
|
|
7416
7938
|
const qs = params.toString();
|
|
7417
7939
|
return this.fetch(`customers/${uuid}/subscriptions${qs ? "?" + qs : ""}`);
|
|
7418
7940
|
}
|
|
@@ -7449,6 +7971,16 @@ var CustomersApi = class extends BaseApiClient {
|
|
|
7449
7971
|
method: "PUT"
|
|
7450
7972
|
});
|
|
7451
7973
|
}
|
|
7974
|
+
async getMyCustomerCreditGrants(uuid, opts) {
|
|
7975
|
+
const params = new URLSearchParams();
|
|
7976
|
+
if (opts?.subscriptionId !== void 0) {
|
|
7977
|
+
params.set("subscription_id", String(opts.subscriptionId));
|
|
7978
|
+
}
|
|
7979
|
+
if (opts?.page !== void 0) params.set("page", String(opts.page));
|
|
7980
|
+
if (opts?.pageSize !== void 0) params.set("page_size", String(opts.pageSize));
|
|
7981
|
+
const qs = params.toString();
|
|
7982
|
+
return this.fetch(`customers/${uuid}/credit-grants${qs ? "?" + qs : ""}`);
|
|
7983
|
+
}
|
|
7452
7984
|
};
|
|
7453
7985
|
|
|
7454
7986
|
// src/api/resellers.ts
|
|
@@ -7683,6 +8215,14 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
7683
8215
|
method: "DELETE"
|
|
7684
8216
|
});
|
|
7685
8217
|
}
|
|
8218
|
+
/**
|
|
8219
|
+
* Get Journey Health diagnostics — authoring issues and runtime
|
|
8220
|
+
* failures for a single journey. PHI-safe: response carries IDs,
|
|
8221
|
+
* counts, error_type strings, and timestamps only.
|
|
8222
|
+
*/
|
|
8223
|
+
async getJourneyHealth(wid, journeyId) {
|
|
8224
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/health`);
|
|
8225
|
+
}
|
|
7686
8226
|
/** Create a step within a journey. */
|
|
7687
8227
|
async createStep(wid, journeyId, data) {
|
|
7688
8228
|
return this.fetch(`w/${wid}/journeys/${journeyId}/steps`, {
|
|
@@ -7750,6 +8290,13 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
7750
8290
|
if (params?.page) qs.set("page", String(params.page));
|
|
7751
8291
|
if (params?.pageSize) qs.set("pageSize", String(params.pageSize));
|
|
7752
8292
|
if (params?.search) qs.set("search", params.search);
|
|
8293
|
+
if (params?.status) qs.set("status", params.status);
|
|
8294
|
+
if (params?.enrolledAfter) qs.set("enrolledAfter", params.enrolledAfter);
|
|
8295
|
+
if (params?.enrolledBefore) qs.set("enrolledBefore", params.enrolledBefore);
|
|
8296
|
+
if (params?.currentTaskId !== void 0)
|
|
8297
|
+
qs.set("currentTaskId", String(params.currentTaskId));
|
|
8298
|
+
if (params?.runtimeFailureEdgeId !== void 0)
|
|
8299
|
+
qs.set("runtimeFailureEdgeId", String(params.runtimeFailureEdgeId));
|
|
7753
8300
|
const query = qs.toString();
|
|
7754
8301
|
return this.fetch(
|
|
7755
8302
|
`w/${wid}/journeys/${journeyId}/members${query ? `?${query}` : ""}`
|
|
@@ -7770,10 +8317,10 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
7770
8317
|
});
|
|
7771
8318
|
}
|
|
7772
8319
|
/** Re-enroll a canceled member back to enrolled status. */
|
|
7773
|
-
async reenrollMember(wid, journeyId,
|
|
8320
|
+
async reenrollMember(wid, journeyId, data) {
|
|
7774
8321
|
return this.fetch(`w/${wid}/journeys/${journeyId}/reenroll`, {
|
|
7775
8322
|
method: "POST",
|
|
7776
|
-
body: JSON.stringify(
|
|
8323
|
+
body: JSON.stringify(data)
|
|
7777
8324
|
});
|
|
7778
8325
|
}
|
|
7779
8326
|
/** Hard-delete a canceled enrollment so the member can be re-enrolled fresh. */
|
|
@@ -7786,6 +8333,18 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
7786
8333
|
async getMemberJourneys(wid, memberId) {
|
|
7787
8334
|
return this.fetch(`w/${wid}/journeys/by-member/${memberId}`);
|
|
7788
8335
|
}
|
|
8336
|
+
/**
|
|
8337
|
+
* Dry-run heartbeat CEL evaluation for an enrolled member.
|
|
8338
|
+
*
|
|
8339
|
+
* Evaluates all PENDING steps exactly as the heartbeat would, but writes no
|
|
8340
|
+
* state changes. Returns step-by-step results for debugging stuck members.
|
|
8341
|
+
*/
|
|
8342
|
+
async testRunJourney(wid, journeyId, memberId) {
|
|
8343
|
+
return this.fetch(
|
|
8344
|
+
`w/${wid}/journeys/${journeyId}/members/${memberId}/test-run`,
|
|
8345
|
+
{ method: "POST" }
|
|
8346
|
+
);
|
|
8347
|
+
}
|
|
7789
8348
|
// ===== JOURNEY NOTES =====
|
|
7790
8349
|
/** List notes for a journey. */
|
|
7791
8350
|
async getJourneyNotes(wid, journeyId) {
|
|
@@ -7938,6 +8497,30 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
7938
8497
|
`w/${wid}/workflows/${workflowId}/validate-config`
|
|
7939
8498
|
);
|
|
7940
8499
|
}
|
|
8500
|
+
/**
|
|
8501
|
+
* Replay automatic routing for a Chat without performing the transition.
|
|
8502
|
+
*
|
|
8503
|
+
* Operator tool: returns a PHI-safe trace describing what the
|
|
8504
|
+
* automatic-edge evaluator would do at the next turn. Never returns
|
|
8505
|
+
* raw CEL, Form values, Member values, Chat content, or raw
|
|
8506
|
+
* exception strings — only IDs, status labels, and the exception
|
|
8507
|
+
* class name when the evaluator raises.
|
|
8508
|
+
*
|
|
8509
|
+
* Requires Workflow edit permission.
|
|
8510
|
+
*/
|
|
8511
|
+
async getWorkflowRouteDryRun(wid, workflowId, args) {
|
|
8512
|
+
const params = new URLSearchParams();
|
|
8513
|
+
params.set("chat_id", String(args.chatId));
|
|
8514
|
+
if (args.currentTaskId !== void 0) {
|
|
8515
|
+
params.set("current_task_id", String(args.currentTaskId));
|
|
8516
|
+
}
|
|
8517
|
+
if (args.currentAssignmentTaskId !== void 0) {
|
|
8518
|
+
params.set("current_assignment_task_id", String(args.currentAssignmentTaskId));
|
|
8519
|
+
}
|
|
8520
|
+
return this.fetch(
|
|
8521
|
+
`w/${wid}/workflows/${workflowId}/route-dry-run?${params.toString()}`
|
|
8522
|
+
);
|
|
8523
|
+
}
|
|
7941
8524
|
// Workflow Contributors API
|
|
7942
8525
|
/** List all contributors for a workflow. */
|
|
7943
8526
|
async getWorkflowContributors(wid, workflowId) {
|
|
@@ -8568,6 +9151,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
8568
9151
|
dataTypes: new DataTypesApi(apiKey, baseUrl, customFetch),
|
|
8569
9152
|
discordBots: new DiscordBotsApi(apiKey, baseUrl, customFetch),
|
|
8570
9153
|
slackApps: new SlackAppsApi(apiKey, baseUrl, customFetch),
|
|
9154
|
+
teamsApps: new TeamsAppsApi(apiKey, baseUrl, customFetch),
|
|
8571
9155
|
events: new EventsApi(apiKey, baseUrl, customFetch),
|
|
8572
9156
|
fhirConnections: new FhirConnectionsApi(apiKey, baseUrl, customFetch),
|
|
8573
9157
|
healthie: new HealthieApi(apiKey, baseUrl, customFetch),
|
|
@@ -8597,6 +9181,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
8597
9181
|
salesforce: new SalesforceApi(apiKey, baseUrl, customFetch),
|
|
8598
9182
|
sites: new SitesApi(apiKey, baseUrl, customFetch),
|
|
8599
9183
|
subscriptions: new SubscriptionsApi(apiKey, baseUrl, customFetch),
|
|
9184
|
+
supportRequests: new SupportRequestsApi(apiKey, baseUrl, customFetch),
|
|
8600
9185
|
supervisors: new SupervisorsApi(apiKey, baseUrl, customFetch),
|
|
8601
9186
|
tasks: new TasksApi(apiKey, baseUrl, customFetch),
|
|
8602
9187
|
templates: new TemplatesApi(apiKey, baseUrl, customFetch),
|
|
@@ -9125,6 +9710,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
9125
9710
|
target.getInboxThreads = inboxes.getInboxThreads.bind(inboxes);
|
|
9126
9711
|
target.getThreadEmails = inboxes.getThreadEmails.bind(inboxes);
|
|
9127
9712
|
target.getChatEmails = inboxes.getChatEmails.bind(inboxes);
|
|
9713
|
+
target.replyToEmail = inboxes.replyToEmail.bind(inboxes);
|
|
9128
9714
|
target.getNotificationRules = notificationRules.getNotificationRules.bind(notificationRules);
|
|
9129
9715
|
target.createNotificationRule = notificationRules.createNotificationRule.bind(notificationRules);
|
|
9130
9716
|
target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
|
|
@@ -9224,13 +9810,10 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
9224
9810
|
}
|
|
9225
9811
|
|
|
9226
9812
|
// src/client/bindings/integrations.ts
|
|
9227
|
-
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, fhirConnections, healthie, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
9813
|
+
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, healthie, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
9228
9814
|
target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
|
|
9229
9815
|
target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
|
|
9230
9816
|
target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
|
|
9231
|
-
target.createMondayWebhook = mondayIntegration.createWebhook.bind(mondayIntegration);
|
|
9232
|
-
target.deleteMondayWebhook = mondayIntegration.deleteWebhook.bind(mondayIntegration);
|
|
9233
|
-
target.getMondayWebhook = mondayIntegration.getWebhook.bind(mondayIntegration);
|
|
9234
9817
|
target.getMondayCurrentUserInfo = mondayIntegration.getCurrentUserInfo.bind(mondayIntegration);
|
|
9235
9818
|
target.configureMondayConnection = mondayIntegration.configureMondayConnection.bind(mondayIntegration);
|
|
9236
9819
|
target.getMondayConnectionStatus = mondayIntegration.getMondayConnectionStatus.bind(mondayIntegration);
|
|
@@ -9274,6 +9857,14 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
9274
9857
|
target.getSlackThreads = slackApps.getSlackThreads.bind(slackApps);
|
|
9275
9858
|
target.getSlackInstallations = slackApps.getSlackInstallations.bind(slackApps);
|
|
9276
9859
|
target.getSlackAppAccounts = slackApps.getSlackAppAccounts.bind(slackApps);
|
|
9860
|
+
target.getTeamsApps = teamsApps.getTeamsApps.bind(teamsApps);
|
|
9861
|
+
target.getTeamsApp = teamsApps.getTeamsApp.bind(teamsApps);
|
|
9862
|
+
target.createTeamsApp = teamsApps.createTeamsApp.bind(teamsApps);
|
|
9863
|
+
target.updateTeamsApp = teamsApps.updateTeamsApp.bind(teamsApps);
|
|
9864
|
+
target.deleteTeamsApp = teamsApps.deleteTeamsApp.bind(teamsApps);
|
|
9865
|
+
target.getTeamsConversations = teamsApps.getTeamsConversations.bind(teamsApps);
|
|
9866
|
+
target.getTeamsInstallations = teamsApps.getTeamsInstallations.bind(teamsApps);
|
|
9867
|
+
target.getTeamsAppAccounts = teamsApps.getTeamsAppAccounts.bind(teamsApps);
|
|
9277
9868
|
target.getFhirConnections = fhirConnections.getFhirConnections.bind(fhirConnections);
|
|
9278
9869
|
target.getFhirConnection = fhirConnections.getFhirConnection.bind(fhirConnections);
|
|
9279
9870
|
target.getFhirConnectionByUuid = fhirConnections.getFhirConnectionByUuid.bind(fhirConnections);
|
|
@@ -9314,6 +9905,10 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
9314
9905
|
target.getHealthieReconciliationMatches = healthie.getHealthieReconciliationMatches.bind(healthie);
|
|
9315
9906
|
target.linkMemberToHealthie = healthie.linkMemberToHealthie.bind(healthie);
|
|
9316
9907
|
target.unlinkMemberFromHealthie = healthie.unlinkMemberFromHealthie.bind(healthie);
|
|
9908
|
+
target.listHealthieAppointmentTypes = healthie.listHealthieAppointmentTypes.bind(healthie);
|
|
9909
|
+
target.listHealthiePatients = healthie.listHealthiePatients.bind(healthie);
|
|
9910
|
+
target.getHealthieAvailableSlots = healthie.getHealthieAvailableSlots.bind(healthie);
|
|
9911
|
+
target.bookHealthieAppointment = healthie.bookHealthieAppointment.bind(healthie);
|
|
9317
9912
|
target.configureConfluence = confluence.configureConfluence.bind(confluence);
|
|
9318
9913
|
target.startConfluenceOAuth = confluence.startConfluenceOAuth.bind(confluence);
|
|
9319
9914
|
target.getConfluenceStatus = confluence.getConfluenceStatus.bind(confluence);
|
|
@@ -9366,12 +9961,14 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
9366
9961
|
target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
|
|
9367
9962
|
target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
|
|
9368
9963
|
target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
|
|
9964
|
+
target.clearConnectionMemberExclusion = connectionSync.clearConnectionMemberExclusion.bind(connectionSync);
|
|
9369
9965
|
target.listAvailableAppConnections = appConnections.listAvailableAppConnections.bind(appConnections);
|
|
9370
9966
|
target.listAppConnections = appConnections.listAppConnections.bind(appConnections);
|
|
9371
9967
|
target.enablePlatformApp = appConnections.enablePlatformApp.bind(appConnections);
|
|
9372
9968
|
target.getPlatformApp = appConnections.getPlatformApp.bind(appConnections);
|
|
9373
9969
|
target.updatePlatformApp = appConnections.updatePlatformApp.bind(appConnections);
|
|
9374
9970
|
target.deletePlatformApp = appConnections.deletePlatformApp.bind(appConnections);
|
|
9971
|
+
target.listConnectionMemberFieldKeys = appConnections.listConnectionMemberFieldKeys.bind(appConnections);
|
|
9375
9972
|
}
|
|
9376
9973
|
|
|
9377
9974
|
// src/client/bindings/operator-groups.ts
|
|
@@ -9405,6 +10002,10 @@ function bindOrgMethods(target, org) {
|
|
|
9405
10002
|
target.getOrgDomainSite = org.getOrgDomainSite.bind(org);
|
|
9406
10003
|
target.verifyOrgDomainSite = org.verifyOrgDomainSite.bind(org);
|
|
9407
10004
|
target.disableOrgDomainSite = org.disableOrgDomainSite.bind(org);
|
|
10005
|
+
target.getBusinessProfile = org.getBusinessProfile.bind(org);
|
|
10006
|
+
target.updateBusinessProfile = org.updateBusinessProfile.bind(org);
|
|
10007
|
+
target.submitBusinessProfile = org.submitBusinessProfile.bind(org);
|
|
10008
|
+
target.cancelBusinessProfile = org.cancelBusinessProfile.bind(org);
|
|
9408
10009
|
}
|
|
9409
10010
|
|
|
9410
10011
|
// src/client/bindings/pronunciations.ts
|
|
@@ -9428,6 +10029,7 @@ function bindPronunciationsMethods(target, pronunciations) {
|
|
|
9428
10029
|
function bindJourneysMethods(target, journeys) {
|
|
9429
10030
|
target.getJourneys = journeys.getJourneys.bind(journeys);
|
|
9430
10031
|
target.getJourney = journeys.getJourney.bind(journeys);
|
|
10032
|
+
target.getJourneyHealth = journeys.getJourneyHealth.bind(journeys);
|
|
9431
10033
|
target.createJourney = journeys.createJourney.bind(journeys);
|
|
9432
10034
|
target.updateJourney = journeys.updateJourney.bind(journeys);
|
|
9433
10035
|
target.archiveJourney = journeys.archiveJourney.bind(journeys);
|
|
@@ -9446,6 +10048,7 @@ function bindJourneysMethods(target, journeys) {
|
|
|
9446
10048
|
target.reenrollMember = journeys.reenrollMember.bind(journeys);
|
|
9447
10049
|
target.deleteEnrollment = journeys.deleteEnrollment.bind(journeys);
|
|
9448
10050
|
target.getMemberJourneys = journeys.getMemberJourneys.bind(journeys);
|
|
10051
|
+
target.testRunJourney = journeys.testRunJourney.bind(journeys);
|
|
9449
10052
|
target.getJourneyNotes = journeys.getJourneyNotes.bind(journeys);
|
|
9450
10053
|
target.createJourneyNote = journeys.createJourneyNote.bind(journeys);
|
|
9451
10054
|
target.updateJourneyNote = journeys.updateJourneyNote.bind(journeys);
|
|
@@ -9491,6 +10094,7 @@ function bindCustomersMethods(target, customers) {
|
|
|
9491
10094
|
target.attachMyCustomerPaymentMethod = customers.attachMyCustomerPaymentMethod.bind(customers);
|
|
9492
10095
|
target.detachMyCustomerPaymentMethod = customers.detachMyCustomerPaymentMethod.bind(customers);
|
|
9493
10096
|
target.setDefaultMyCustomerPaymentMethod = customers.setDefaultMyCustomerPaymentMethod.bind(customers);
|
|
10097
|
+
target.getMyCustomerCreditGrants = customers.getMyCustomerCreditGrants.bind(customers);
|
|
9494
10098
|
}
|
|
9495
10099
|
|
|
9496
10100
|
// src/client/bindings/resellers.ts
|
|
@@ -9508,6 +10112,23 @@ function bindPromptsMethods(target, prompts) {
|
|
|
9508
10112
|
target.inspectPrompt = prompts.inspectPrompt.bind(prompts);
|
|
9509
10113
|
}
|
|
9510
10114
|
|
|
10115
|
+
// src/client/bindings/support-requests.ts
|
|
10116
|
+
function bindSupportRequestMethods(target, supportRequests) {
|
|
10117
|
+
target.listSupportRequests = supportRequests.listSupportRequests.bind(supportRequests);
|
|
10118
|
+
target.getSupportRequest = supportRequests.getSupportRequest.bind(supportRequests);
|
|
10119
|
+
target.createSupportRequest = supportRequests.createSupportRequest.bind(supportRequests);
|
|
10120
|
+
target.commentOnSupportRequest = supportRequests.commentOnSupportRequest.bind(supportRequests);
|
|
10121
|
+
target.listOrgSupportRequests = supportRequests.listOrgSupportRequests.bind(supportRequests);
|
|
10122
|
+
target.getOrgSupportRequest = supportRequests.getOrgSupportRequest.bind(supportRequests);
|
|
10123
|
+
target.createOrgSupportRequest = supportRequests.createOrgSupportRequest.bind(supportRequests);
|
|
10124
|
+
target.commentOnOrgSupportRequest = supportRequests.commentOnOrgSupportRequest.bind(supportRequests);
|
|
10125
|
+
target.listWorkspaceSupportRequests = supportRequests.listWorkspaceSupportRequests.bind(supportRequests);
|
|
10126
|
+
target.getWorkspaceSupportRequest = supportRequests.getWorkspaceSupportRequest.bind(supportRequests);
|
|
10127
|
+
target.createWorkspaceSupportRequest = supportRequests.createWorkspaceSupportRequest.bind(supportRequests);
|
|
10128
|
+
target.commentOnWorkspaceSupportRequest = supportRequests.commentOnWorkspaceSupportRequest.bind(supportRequests);
|
|
10129
|
+
target.closeWorkspaceSupportRequest = supportRequests.closeWorkspaceSupportRequest.bind(supportRequests);
|
|
10130
|
+
}
|
|
10131
|
+
|
|
9511
10132
|
// src/client/client.ts
|
|
9512
10133
|
var GravityRailClient = class {
|
|
9513
10134
|
// WorkspaceInvitations is exposed publicly for backward compatibility
|
|
@@ -9682,6 +10303,7 @@ var GravityRailClient = class {
|
|
|
9682
10303
|
// Journeys API
|
|
9683
10304
|
getJourneys;
|
|
9684
10305
|
getJourney;
|
|
10306
|
+
getJourneyHealth;
|
|
9685
10307
|
createJourney;
|
|
9686
10308
|
updateJourney;
|
|
9687
10309
|
archiveJourney;
|
|
@@ -9700,6 +10322,7 @@ var GravityRailClient = class {
|
|
|
9700
10322
|
reenrollMember;
|
|
9701
10323
|
deleteEnrollment;
|
|
9702
10324
|
getMemberJourneys;
|
|
10325
|
+
testRunJourney;
|
|
9703
10326
|
getJourneyNotes;
|
|
9704
10327
|
createJourneyNote;
|
|
9705
10328
|
updateJourneyNote;
|
|
@@ -9789,6 +10412,10 @@ var GravityRailClient = class {
|
|
|
9789
10412
|
getOrgDomainSite;
|
|
9790
10413
|
verifyOrgDomainSite;
|
|
9791
10414
|
disableOrgDomainSite;
|
|
10415
|
+
getBusinessProfile;
|
|
10416
|
+
updateBusinessProfile;
|
|
10417
|
+
submitBusinessProfile;
|
|
10418
|
+
cancelBusinessProfile;
|
|
9792
10419
|
getVapidPublicKey;
|
|
9793
10420
|
registerPushSubscription;
|
|
9794
10421
|
unregisterPushSubscription;
|
|
@@ -10062,6 +10689,7 @@ var GravityRailClient = class {
|
|
|
10062
10689
|
getInboxThreads;
|
|
10063
10690
|
getThreadEmails;
|
|
10064
10691
|
getChatEmails;
|
|
10692
|
+
replyToEmail;
|
|
10065
10693
|
getNotificationRules;
|
|
10066
10694
|
createNotificationRule;
|
|
10067
10695
|
updateNotificationRule;
|
|
@@ -10153,9 +10781,6 @@ var GravityRailClient = class {
|
|
|
10153
10781
|
getMondayBoards;
|
|
10154
10782
|
getMondayBoardColumns;
|
|
10155
10783
|
getMondayBoardGroups;
|
|
10156
|
-
createMondayWebhook;
|
|
10157
|
-
deleteMondayWebhook;
|
|
10158
|
-
getMondayWebhook;
|
|
10159
10784
|
getMondayCurrentUserInfo;
|
|
10160
10785
|
// Monday.com Connection API
|
|
10161
10786
|
configureMondayConnection;
|
|
@@ -10202,6 +10827,15 @@ var GravityRailClient = class {
|
|
|
10202
10827
|
getSlackThreads;
|
|
10203
10828
|
getSlackInstallations;
|
|
10204
10829
|
getSlackAppAccounts;
|
|
10830
|
+
// Teams Apps API
|
|
10831
|
+
getTeamsApps;
|
|
10832
|
+
getTeamsApp;
|
|
10833
|
+
createTeamsApp;
|
|
10834
|
+
updateTeamsApp;
|
|
10835
|
+
deleteTeamsApp;
|
|
10836
|
+
getTeamsConversations;
|
|
10837
|
+
getTeamsInstallations;
|
|
10838
|
+
getTeamsAppAccounts;
|
|
10205
10839
|
// FHIR Connections API
|
|
10206
10840
|
getFhirConnections;
|
|
10207
10841
|
getFhirConnection;
|
|
@@ -10244,6 +10878,10 @@ var GravityRailClient = class {
|
|
|
10244
10878
|
getHealthieReconciliationMatches;
|
|
10245
10879
|
linkMemberToHealthie;
|
|
10246
10880
|
unlinkMemberFromHealthie;
|
|
10881
|
+
listHealthieAppointmentTypes;
|
|
10882
|
+
listHealthiePatients;
|
|
10883
|
+
getHealthieAvailableSlots;
|
|
10884
|
+
bookHealthieAppointment;
|
|
10247
10885
|
// Confluence API
|
|
10248
10886
|
configureConfluence;
|
|
10249
10887
|
startConfluenceOAuth;
|
|
@@ -10300,6 +10938,7 @@ var GravityRailClient = class {
|
|
|
10300
10938
|
getSyncRuns;
|
|
10301
10939
|
getSyncRunItems;
|
|
10302
10940
|
getMemberSyncSummary;
|
|
10941
|
+
clearConnectionMemberExclusion;
|
|
10303
10942
|
// App Connections API
|
|
10304
10943
|
listAvailableAppConnections;
|
|
10305
10944
|
listAppConnections;
|
|
@@ -10307,6 +10946,7 @@ var GravityRailClient = class {
|
|
|
10307
10946
|
getPlatformApp;
|
|
10308
10947
|
updatePlatformApp;
|
|
10309
10948
|
deletePlatformApp;
|
|
10949
|
+
listConnectionMemberFieldKeys;
|
|
10310
10950
|
// Pronunciations API
|
|
10311
10951
|
getPronunciationEntries;
|
|
10312
10952
|
createPronunciationEntry;
|
|
@@ -10333,6 +10973,7 @@ var GravityRailClient = class {
|
|
|
10333
10973
|
attachMyCustomerPaymentMethod;
|
|
10334
10974
|
detachMyCustomerPaymentMethod;
|
|
10335
10975
|
setDefaultMyCustomerPaymentMethod;
|
|
10976
|
+
getMyCustomerCreditGrants;
|
|
10336
10977
|
// Resellers API (self-service reseller portal)
|
|
10337
10978
|
getMyResellers;
|
|
10338
10979
|
getMyReseller;
|
|
@@ -10340,6 +10981,20 @@ var GravityRailClient = class {
|
|
|
10340
10981
|
getMyResellerProducts;
|
|
10341
10982
|
getMyResellerSubscriptions;
|
|
10342
10983
|
updateMyReseller;
|
|
10984
|
+
// Support Requests API
|
|
10985
|
+
listSupportRequests;
|
|
10986
|
+
getSupportRequest;
|
|
10987
|
+
createSupportRequest;
|
|
10988
|
+
commentOnSupportRequest;
|
|
10989
|
+
listOrgSupportRequests;
|
|
10990
|
+
getOrgSupportRequest;
|
|
10991
|
+
createOrgSupportRequest;
|
|
10992
|
+
commentOnOrgSupportRequest;
|
|
10993
|
+
listWorkspaceSupportRequests;
|
|
10994
|
+
getWorkspaceSupportRequest;
|
|
10995
|
+
createWorkspaceSupportRequest;
|
|
10996
|
+
commentOnWorkspaceSupportRequest;
|
|
10997
|
+
closeWorkspaceSupportRequest;
|
|
10343
10998
|
constructor(apiKey, baseUrl, customFetch) {
|
|
10344
10999
|
const apis = createApiModules(apiKey, baseUrl, customFetch);
|
|
10345
11000
|
this.apis = apis;
|
|
@@ -10389,6 +11044,7 @@ var GravityRailClient = class {
|
|
|
10389
11044
|
apis.mondayIntegration,
|
|
10390
11045
|
apis.discordBots,
|
|
10391
11046
|
apis.slackApps,
|
|
11047
|
+
apis.teamsApps,
|
|
10392
11048
|
apis.fhirConnections,
|
|
10393
11049
|
apis.healthie,
|
|
10394
11050
|
apis.salesforce,
|
|
@@ -10400,6 +11056,7 @@ var GravityRailClient = class {
|
|
|
10400
11056
|
bindPronunciationsMethods(this, apis.pronunciations);
|
|
10401
11057
|
bindCustomersMethods(this, apis.customers);
|
|
10402
11058
|
bindResellersMethods(this, apis.resellers);
|
|
11059
|
+
bindSupportRequestMethods(this, apis.supportRequests);
|
|
10403
11060
|
}
|
|
10404
11061
|
/**
|
|
10405
11062
|
* Set the handler for enhanced authentication requirements (RFC 9470 Step-Up Auth).
|
|
@@ -10427,6 +11084,24 @@ var GravityRailClient = class {
|
|
|
10427
11084
|
}
|
|
10428
11085
|
});
|
|
10429
11086
|
}
|
|
11087
|
+
/**
|
|
11088
|
+
* Set the org token for cross-domain / non-browser clients (e.g. CLI).
|
|
11089
|
+
* When set, all API requests include the X-Org-Token header so the backend
|
|
11090
|
+
* accepts the request without requiring a browser cookie.
|
|
11091
|
+
*
|
|
11092
|
+
* `orgUuid` is the org that issued the token. Pass it so the SDK can
|
|
11093
|
+
* detect a stale token (e.g. switching orgs mid-session) and re-fire the
|
|
11094
|
+
* org-auth handler instead of silently 401-ing.
|
|
11095
|
+
*
|
|
11096
|
+
* Propagates to all API modules.
|
|
11097
|
+
*/
|
|
11098
|
+
setOrgToken(token, orgUuid) {
|
|
11099
|
+
Object.values(this.apis).forEach((api) => {
|
|
11100
|
+
if (typeof api.setOrgToken === "function") {
|
|
11101
|
+
api.setOrgToken(token, orgUuid);
|
|
11102
|
+
}
|
|
11103
|
+
});
|
|
11104
|
+
}
|
|
10430
11105
|
/**
|
|
10431
11106
|
* Update the API key across all modules.
|
|
10432
11107
|
* Used after successful re-authentication.
|
|
@@ -10469,6 +11144,8 @@ var GravityRailClient = class {
|
|
|
10469
11144
|
0 && (module.exports = {
|
|
10470
11145
|
AIModelsApi,
|
|
10471
11146
|
AbilitiesApi,
|
|
11147
|
+
AbilityConfigIssueCode,
|
|
11148
|
+
AbilityConfigIssueSeverity,
|
|
10472
11149
|
AbilityTypeSlugs,
|
|
10473
11150
|
AccessGrantResourceType,
|
|
10474
11151
|
AccessGrantStatus,
|
|
@@ -10488,6 +11165,9 @@ var GravityRailClient = class {
|
|
|
10488
11165
|
BUILTIN_ASSISTANT_CHAT_TYPES,
|
|
10489
11166
|
BaseApiClient,
|
|
10490
11167
|
BuildersApi,
|
|
11168
|
+
BulkMemberResultStatus,
|
|
11169
|
+
BusinessIndustry,
|
|
11170
|
+
BusinessType,
|
|
10491
11171
|
CELApi,
|
|
10492
11172
|
CHAT_TYPES,
|
|
10493
11173
|
CalendarEventStatus,
|
|
@@ -10515,6 +11195,7 @@ var GravityRailClient = class {
|
|
|
10515
11195
|
DataTypesApi,
|
|
10516
11196
|
DiscordBotsApi,
|
|
10517
11197
|
DriverMode,
|
|
11198
|
+
EmailDnsRecordType,
|
|
10518
11199
|
EventRuleActionType,
|
|
10519
11200
|
EventRuleEventType,
|
|
10520
11201
|
EventRuleObjectType,
|
|
@@ -10534,6 +11215,7 @@ var GravityRailClient = class {
|
|
|
10534
11215
|
IndexStatus,
|
|
10535
11216
|
InquiriesApi,
|
|
10536
11217
|
InvitationStatus,
|
|
11218
|
+
JobPosition,
|
|
10537
11219
|
JourneysApi,
|
|
10538
11220
|
LIMIT_ONLY_RESOURCES,
|
|
10539
11221
|
MASKED_SECRET_SENTINEL,
|
|
@@ -10542,12 +11224,17 @@ var GravityRailClient = class {
|
|
|
10542
11224
|
MemberFeature,
|
|
10543
11225
|
MemberType,
|
|
10544
11226
|
MembersApi,
|
|
11227
|
+
MenuItemResponseItemType,
|
|
11228
|
+
MenuItemType,
|
|
10545
11229
|
MilestonesApi,
|
|
11230
|
+
ModelProvider,
|
|
11231
|
+
ModelType,
|
|
10546
11232
|
MondayIntegrationApi,
|
|
10547
11233
|
NO_ASSISTANT_PARTICIPANT_CHAT_TYPES,
|
|
10548
11234
|
NotificationRulesApi,
|
|
10549
11235
|
OAuthApi,
|
|
10550
11236
|
OAuthConnectionsApi,
|
|
11237
|
+
OIDCAdminConfigViewProviderType,
|
|
10551
11238
|
ORG_ONLY_RESOURCES,
|
|
10552
11239
|
OperatorApi,
|
|
10553
11240
|
OrgApi,
|
|
@@ -10573,23 +11260,31 @@ var GravityRailClient = class {
|
|
|
10573
11260
|
REALTIME_MODEL_GEMINI_VERTEX,
|
|
10574
11261
|
REALTIME_MODEL_NOVA_SONIC,
|
|
10575
11262
|
REALTIME_MODEL_OPENAI,
|
|
11263
|
+
REALTIME_MODEL_OPENAI_2,
|
|
10576
11264
|
REALTIME_MODEL_OPENAI_MINI,
|
|
11265
|
+
Region,
|
|
11266
|
+
RegistrationIdentifier,
|
|
10577
11267
|
ReportsApi,
|
|
10578
11268
|
ResellersApi,
|
|
10579
11269
|
Resource,
|
|
10580
11270
|
SCOPES,
|
|
10581
11271
|
SCOPE_PRESETS,
|
|
11272
|
+
SMS_DELIVERY_FAILURE_STATUSES,
|
|
10582
11273
|
STT_MODEL_DEEPGRAM_FLUX,
|
|
11274
|
+
STT_MODEL_DEEPGRAM_FLUX_MULTI,
|
|
10583
11275
|
STT_MODEL_ELEVENLABS_SCRIBE,
|
|
10584
11276
|
SalesforceApi,
|
|
10585
11277
|
Scope,
|
|
10586
11278
|
ScopeCategory,
|
|
10587
11279
|
ScopeManager,
|
|
11280
|
+
SiteDnsRecordType,
|
|
10588
11281
|
SitesApi,
|
|
10589
11282
|
SlackAppsApi,
|
|
10590
11283
|
SnippetsApi,
|
|
10591
11284
|
SubscriptionsApi,
|
|
10592
11285
|
SupervisorsApi,
|
|
11286
|
+
SupportRequestsApi,
|
|
11287
|
+
TERMINAL_TASK_STATES,
|
|
10593
11288
|
TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
10594
11289
|
TTS_MODEL_AWS_POLLY_NEURAL,
|
|
10595
11290
|
TTS_MODEL_DEEPGRAM_AURA_2,
|
|
@@ -10603,7 +11298,9 @@ var GravityRailClient = class {
|
|
|
10603
11298
|
ToolkitState,
|
|
10604
11299
|
ToolkitsApi,
|
|
10605
11300
|
VoiceApi,
|
|
11301
|
+
WorkflowAccessWarningResourceType,
|
|
10606
11302
|
WorkflowNotesApi,
|
|
11303
|
+
WorkflowResourceType,
|
|
10607
11304
|
WorkflowsApi,
|
|
10608
11305
|
WorkspaceFeature,
|
|
10609
11306
|
WorkspaceInvitationsApi,
|
|
@@ -10635,6 +11332,7 @@ var GravityRailClient = class {
|
|
|
10635
11332
|
bindQualificationsMethods,
|
|
10636
11333
|
bindResellersMethods,
|
|
10637
11334
|
bindSitesMethods,
|
|
11335
|
+
bindSupportRequestMethods,
|
|
10638
11336
|
bindTasksMethods,
|
|
10639
11337
|
bindToolkitsMethods,
|
|
10640
11338
|
bindWorkflowsMethods,
|
|
@@ -10644,6 +11342,7 @@ var GravityRailClient = class {
|
|
|
10644
11342
|
createApiModules,
|
|
10645
11343
|
decodePermissions,
|
|
10646
11344
|
encodePermissions,
|
|
11345
|
+
eventRuleActionParams,
|
|
10647
11346
|
formatAppContextAsMarkdown,
|
|
10648
11347
|
getAllFeatures,
|
|
10649
11348
|
getAllResourceSlugs,
|
|
@@ -10663,6 +11362,7 @@ var GravityRailClient = class {
|
|
|
10663
11362
|
isChatType,
|
|
10664
11363
|
isFeatureAvailable,
|
|
10665
11364
|
isRegistryInitialized,
|
|
11365
|
+
isSMSDeliveryFailureStatus,
|
|
10666
11366
|
requiresAssistantParticipant,
|
|
10667
11367
|
usesBuiltinAssistant,
|
|
10668
11368
|
validateFeatureDependencies
|