@gravity-rail/sdk 4.0.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/account-DLwJWX9b.d.cts +522 -0
- package/dist/account-DLwJWX9b.d.ts +522 -0
- package/dist/{path-CUY-Iw70.d.ts → agent_standing_job-D60O007y.d.cts} +1068 -140
- package/dist/{path-B3b3_El9.d.cts → agent_standing_job-DbKkPDyY.d.ts} +1068 -140
- package/dist/{chat-interaction-DXgKjFqZ.d.cts → chat-interaction-CCdK_MtC.d.ts} +13616 -9394
- package/dist/{chat-interaction-a7U-tHfQ.d.ts → chat-interaction-rktAADW0.d.cts} +13616 -9394
- package/dist/{chunk-D5VNVTUQ.js → chunk-P2MSMMMJ.js} +120 -2
- package/dist/chunk-P2MSMMMJ.js.map +1 -0
- package/dist/{chunk-ZLF3N3ZD.js → chunk-P2X5TOYY.js} +31 -5
- package/dist/chunk-P2X5TOYY.js.map +1 -0
- package/dist/{chunk-WHRIIBJ4.js → chunk-VFOWHCQ7.js} +1773 -475
- package/dist/chunk-VFOWHCQ7.js.map +1 -0
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +3 -2
- package/dist/helpers.d.ts +3 -2
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1961 -917
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -249
- package/dist/index.d.ts +87 -249
- package/dist/index.js +171 -458
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +1928 -448
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2449 -263
- package/dist/internal.d.ts +2449 -263
- package/dist/internal.js +146 -27
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-BHtOru8g.d.cts → member-import-Bk2nh1YU.d.cts} +1 -1
- package/dist/{member-import-VOLKR5dY.d.ts → member-import-CybXt3PK.d.ts} +1 -1
- package/dist/realtime.cjs +250 -3
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +87 -4
- package/dist/realtime.d.ts +87 -4
- package/dist/realtime.js +245 -3
- package/dist/realtime.js.map +1 -1
- package/dist/schemas.cjs +154 -19
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +621 -69
- package/dist/schemas.d.ts +621 -69
- package/dist/schemas.js +72 -21
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-CgptqCsN.d.cts → tasks-CGiE1y_T.d.ts} +2243 -1979
- package/dist/{tasks-CgptqCsN.d.ts → tasks-DChznvPX.d.cts} +2243 -1979
- package/dist/{types-BXaWYGHj.d.cts → types-Bv6GtLZ2.d.cts} +25 -2
- package/dist/{types-BXaWYGHj.d.ts → types-Bv6GtLZ2.d.ts} +25 -2
- package/package.json +4 -4
- package/dist/chunk-D5VNVTUQ.js.map +0 -1
- package/dist/chunk-WHRIIBJ4.js.map +0 -1
- package/dist/chunk-ZLF3N3ZD.js.map +0 -1
package/dist/internal.cjs
CHANGED
|
@@ -37,10 +37,10 @@ __export(internal_exports, {
|
|
|
37
37
|
ActivityOpenItemOrder: () => ActivityOpenItemOrder,
|
|
38
38
|
ActivityOutcome: () => ActivityOutcome,
|
|
39
39
|
ActivityWindowBasis: () => ActivityWindowBasis,
|
|
40
|
-
AddonMutationResponseScope: () => AddonMutationResponseScope,
|
|
41
40
|
AgentTasksApi: () => AgentTasksApi,
|
|
42
41
|
AgentsApi: () => AgentsApi,
|
|
43
42
|
AiConnectorPolicy: () => AiConnectorPolicy,
|
|
43
|
+
AiDisclosure: () => AiDisclosure,
|
|
44
44
|
ApiError: () => ApiError,
|
|
45
45
|
ApiKeysApi: () => ApiKeysApi,
|
|
46
46
|
AppConnectionsApi: () => AppConnectionsApi,
|
|
@@ -78,6 +78,7 @@ __export(internal_exports, {
|
|
|
78
78
|
ConfluenceApi: () => ConfluenceApi,
|
|
79
79
|
ConnectionSyncApi: () => ConnectionSyncApi,
|
|
80
80
|
ConsentMethod: () => ConsentMethod,
|
|
81
|
+
CosanEnrollmentInquiryResponseOutcome: () => CosanEnrollmentInquiryResponseOutcome,
|
|
81
82
|
CreateMemberContactPointRequestContactType: () => CreateMemberContactPointRequestContactType,
|
|
82
83
|
CreateMemberContactPointRequestPurpose: () => CreateMemberContactPointRequestPurpose,
|
|
83
84
|
CreateMemberContactPointRequestSharing: () => CreateMemberContactPointRequestSharing,
|
|
@@ -105,6 +106,10 @@ __export(internal_exports, {
|
|
|
105
106
|
DataTypeRecordScope: () => DataTypeRecordScope,
|
|
106
107
|
DataTypesApi: () => DataTypesApi,
|
|
107
108
|
DeclaredDataUse: () => DeclaredDataUse,
|
|
109
|
+
DefaultCardConvergenceAction: () => DefaultCardConvergenceAction,
|
|
110
|
+
DefaultCardConvergenceClassification: () => DefaultCardConvergenceClassification,
|
|
111
|
+
DefaultCardConvergenceOutcome: () => DefaultCardConvergenceOutcome,
|
|
112
|
+
DefaultCardConvergenceStep: () => DefaultCardConvergenceStep,
|
|
108
113
|
DigestSlotRole: () => DigestSlotRole,
|
|
109
114
|
DiscordBotsApi: () => DiscordBotsApi,
|
|
110
115
|
DriverMode: () => DriverMode,
|
|
@@ -170,17 +175,21 @@ __export(internal_exports, {
|
|
|
170
175
|
ModelType: () => ModelType,
|
|
171
176
|
MondayIntegrationApi: () => MondayIntegrationApi,
|
|
172
177
|
NO_ASSISTANT_PARTICIPANT_CHAT_TYPES: () => NO_ASSISTANT_PARTICIPANT_CHAT_TYPES,
|
|
178
|
+
NotificationMarkerAction: () => NotificationMarkerAction,
|
|
173
179
|
NotificationRulesApi: () => NotificationRulesApi,
|
|
174
180
|
OAuthApi: () => OAuthApi,
|
|
175
181
|
OAuthConnectionsApi: () => OAuthConnectionsApi,
|
|
176
182
|
OIDCAdminConfigViewProviderType: () => OIDCAdminConfigViewProviderType,
|
|
177
183
|
ORG_ONLY_RESOURCES: () => ORG_ONLY_RESOURCES,
|
|
184
|
+
OpenItemKind: () => OpenItemKind,
|
|
178
185
|
OperatorApi: () => OperatorApi,
|
|
179
186
|
OrgApi: () => OrgApi,
|
|
187
|
+
OrgApiKeyLimitUnconfirmedError: () => OrgApiKeyLimitUnconfirmedError,
|
|
180
188
|
OrgFeature: () => OrgFeature,
|
|
181
|
-
|
|
189
|
+
OrgWebhookScopeUnconfirmedError: () => OrgWebhookScopeUnconfirmedError,
|
|
182
190
|
OrganizationBillingApi: () => OrganizationBillingApi,
|
|
183
191
|
OrganizationClassification: () => OrganizationClassification,
|
|
192
|
+
OverdueInvoicePayment: () => OverdueInvoicePayment,
|
|
184
193
|
PERMISSION_ADMIN: () => PERMISSION_ADMIN,
|
|
185
194
|
PERMISSION_CREATE: () => PERMISSION_CREATE,
|
|
186
195
|
PERMISSION_DELETE: () => PERMISSION_DELETE,
|
|
@@ -194,6 +203,11 @@ __export(internal_exports, {
|
|
|
194
203
|
PIDS_DISPOSITIONS: () => PIDS_DISPOSITIONS,
|
|
195
204
|
PIDS_SOURCES: () => PIDS_SOURCES,
|
|
196
205
|
POSITIVE_RATING_THRESHOLD: () => POSITIVE_RATING_THRESHOLD,
|
|
206
|
+
PROPOSED_MESSAGE_BODY_MAX_LENGTH: () => PROPOSED_MESSAGE_BODY_MAX_LENGTH,
|
|
207
|
+
PROPOSED_MESSAGE_SETTLED_TOOL_NAME: () => PROPOSED_MESSAGE_SETTLED_TOOL_NAME,
|
|
208
|
+
PROPOSED_MESSAGE_SETTLEMENT_STATUSES: () => PROPOSED_MESSAGE_SETTLEMENT_STATUSES,
|
|
209
|
+
PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH: () => PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH,
|
|
210
|
+
PROPOSED_MESSAGE_TOOL_NAMES: () => PROPOSED_MESSAGE_TOOL_NAMES,
|
|
197
211
|
PersonasApi: () => PersonasApi,
|
|
198
212
|
PhiDataPolicy: () => PhiDataPolicy,
|
|
199
213
|
PhiPolicyReason: () => PhiPolicyReason,
|
|
@@ -212,8 +226,6 @@ __export(internal_exports, {
|
|
|
212
226
|
QUERY_VALUELESS_OPS: () => QUERY_VALUELESS_OPS,
|
|
213
227
|
QualificationsApi: () => QualificationsApi,
|
|
214
228
|
REALTIME_MODEL_CUSTOM: () => REALTIME_MODEL_CUSTOM,
|
|
215
|
-
REALTIME_MODEL_GEMINI: () => REALTIME_MODEL_GEMINI,
|
|
216
|
-
REALTIME_MODEL_GEMINI_VERTEX: () => REALTIME_MODEL_GEMINI_VERTEX,
|
|
217
229
|
REALTIME_MODEL_OPENAI: () => REALTIME_MODEL_OPENAI,
|
|
218
230
|
REALTIME_MODEL_OPENAI_2: () => REALTIME_MODEL_OPENAI_2,
|
|
219
231
|
REALTIME_MODEL_OPENAI_MINI: () => REALTIME_MODEL_OPENAI_MINI,
|
|
@@ -228,6 +240,7 @@ __export(internal_exports, {
|
|
|
228
240
|
ReportsApi: () => ReportsApi,
|
|
229
241
|
ResellersApi: () => ResellersApi,
|
|
230
242
|
Resource: () => Resource,
|
|
243
|
+
ResponseLength: () => ResponseLength,
|
|
231
244
|
RevisionHistorySegment: () => RevisionHistorySegment,
|
|
232
245
|
RoutingActionType: () => RoutingActionType,
|
|
233
246
|
RoutingAudience: () => RoutingAudience,
|
|
@@ -261,7 +274,10 @@ __export(internal_exports, {
|
|
|
261
274
|
SnippetsApi: () => SnippetsApi,
|
|
262
275
|
SubscriptionsApi: () => SubscriptionsApi,
|
|
263
276
|
SupervisorsApi: () => SupervisorsApi,
|
|
277
|
+
SupportRequestParticipantRole: () => SupportRequestParticipantRole,
|
|
264
278
|
SupportRequestsApi: () => SupportRequestsApi,
|
|
279
|
+
SyncErrorCode: () => SyncErrorCode,
|
|
280
|
+
SyncFailureCode: () => LinkFailureCode,
|
|
265
281
|
TERMINAL_TASK_STATES: () => TERMINAL_TASK_STATES,
|
|
266
282
|
TTS_MODEL_AWS_POLLY_GENERATIVE: () => TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
267
283
|
TTS_MODEL_AWS_POLLY_NEURAL: () => TTS_MODEL_AWS_POLLY_NEURAL,
|
|
@@ -285,11 +301,22 @@ __export(internal_exports, {
|
|
|
285
301
|
UpdateMemberContactPointRequestContactType: () => UpdateMemberContactPointRequestContactType,
|
|
286
302
|
UpdateMemberContactPointRequestPurpose: () => UpdateMemberContactPointRequestPurpose,
|
|
287
303
|
UpdateMemberContactPointRequestSharing: () => UpdateMemberContactPointRequestSharing,
|
|
304
|
+
V3FileAccess: () => FileAccess,
|
|
305
|
+
V3FileAuthorKind: () => FileAuthorKind,
|
|
306
|
+
V3FileKind: () => FileKind,
|
|
307
|
+
V3FileOrder: () => FileOrder,
|
|
308
|
+
V3FileSkillWarning: () => FileSkillWarning,
|
|
309
|
+
V3FileState: () => FileState,
|
|
310
|
+
V3FileView: () => FileView,
|
|
311
|
+
V3FolderIndexState: () => FolderIndexState,
|
|
312
|
+
V3FolderRoot: () => FolderRoot,
|
|
313
|
+
V3FolderView: () => FolderView,
|
|
314
|
+
V3GrantMode: () => GrantMode,
|
|
315
|
+
V3UploadState: () => UploadState,
|
|
288
316
|
VoiceApi: () => VoiceApi,
|
|
289
317
|
VoiceIntegrityUseCase: () => VoiceIntegrityUseCase,
|
|
290
318
|
WIDGET_SLUGS: () => WIDGET_SLUGS,
|
|
291
319
|
WorkflowNotesApi: () => WorkflowNotesApi,
|
|
292
|
-
WorkflowRoutingMode: () => WorkflowRoutingMode,
|
|
293
320
|
WorkflowsApi: () => WorkflowsApi,
|
|
294
321
|
WorkspaceFeature: () => WorkspaceFeature,
|
|
295
322
|
WorkspaceInvitationsApi: () => WorkspaceInvitationsApi,
|
|
@@ -373,10 +400,12 @@ __export(internal_exports, {
|
|
|
373
400
|
isIdentifiedMemberContactConflict: () => isIdentifiedMemberContactConflict,
|
|
374
401
|
isMemberContactConflict: () => isMemberContactConflict,
|
|
375
402
|
isPositiveRating: () => isPositiveRating,
|
|
403
|
+
isProposedMessageSettlementStatus: () => isProposedMessageSettlementStatus,
|
|
376
404
|
isRegistryInitialized: () => isRegistryInitialized,
|
|
377
405
|
isSMSDeliveryFailureStatus: () => isSMSDeliveryFailureStatus,
|
|
378
406
|
parseExperimentStatCount: () => parseExperimentStatCount,
|
|
379
407
|
parseOrgAuthChallenge: () => parseOrgAuthChallenge,
|
|
408
|
+
parseProposedMessage: () => parseProposedMessage,
|
|
380
409
|
pathDraftFromStorage: () => pathDraftFromStorage,
|
|
381
410
|
pathDraftToStorage: () => pathDraftToStorage,
|
|
382
411
|
requiresAssistantParticipant: () => requiresAssistantParticipant,
|
|
@@ -609,6 +638,7 @@ var MemberType = /* @__PURE__ */ ((MemberType2) => {
|
|
|
609
638
|
MemberType2["TEST"] = "test";
|
|
610
639
|
MemberType2["MEMBER"] = "member";
|
|
611
640
|
MemberType2["AGENT"] = "agent";
|
|
641
|
+
MemberType2["BUSINESS"] = "business";
|
|
612
642
|
return MemberType2;
|
|
613
643
|
})(MemberType || {});
|
|
614
644
|
function structuredErrorDetail(error) {
|
|
@@ -681,9 +711,6 @@ var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
|
|
|
681
711
|
})(EventRuleObjectType || {});
|
|
682
712
|
var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
683
713
|
EventRuleEventType2["TASK_EXECUTE"] = "task:execute";
|
|
684
|
-
EventRuleEventType2["TASK_ENTER"] = "task:enter";
|
|
685
|
-
EventRuleEventType2["TASK_COMMAND"] = "task:command";
|
|
686
|
-
EventRuleEventType2["TASK_EXIT"] = "task:exit";
|
|
687
714
|
EventRuleEventType2["MEMBER_JOINED"] = "workspace:member_joined";
|
|
688
715
|
EventRuleEventType2["MEMBER_LEFT"] = "workspace:member_left";
|
|
689
716
|
EventRuleEventType2["DATA_RECORD_CREATED"] = "data_record:created";
|
|
@@ -725,10 +752,6 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
725
752
|
EventRuleActionType2["SWITCH_TASK_ACTION"] = "task:switch";
|
|
726
753
|
EventRuleActionType2["ASSISTANT_MESSAGE"] = "assistant:message";
|
|
727
754
|
EventRuleActionType2["FORM_FIELD_UPDATE"] = "form:update_field";
|
|
728
|
-
EventRuleActionType2["CEL_MUTATE"] = "record:cel_mutate";
|
|
729
|
-
EventRuleActionType2["RECORD_COPY_FIELDS"] = "record:copy_fields";
|
|
730
|
-
EventRuleActionType2["RECORD_UPSERT_LINKED"] = "record:upsert_linked";
|
|
731
|
-
EventRuleActionType2["RECORD_VERIFY_FIELDS"] = "record:verify_fields";
|
|
732
755
|
EventRuleActionType2["MESSAGE_VALIDATION"] = "message:validation";
|
|
733
756
|
EventRuleActionType2["CHAT_CREATE"] = "chat:create";
|
|
734
757
|
EventRuleActionType2["CHAT_CONTINUE"] = "chat:continue";
|
|
@@ -736,8 +759,6 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
736
759
|
EventRuleActionType2["CHAT_SUMMARIZE"] = "chat:summarize";
|
|
737
760
|
EventRuleActionType2["EMAIL_SEND"] = "email:send";
|
|
738
761
|
EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
|
|
739
|
-
EventRuleActionType2["MONDAY_UPSERT_ITEM"] = "monday:upsert_item";
|
|
740
|
-
EventRuleActionType2["MONDAY_REFRESH"] = "monday:refresh";
|
|
741
762
|
EventRuleActionType2["HUBSPOT_CREATE_DEAL_FROM_BOOKING"] = "hubspot:create_deal_from_booking";
|
|
742
763
|
EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
|
|
743
764
|
EventRuleActionType2["JOURNEY_ENROLL"] = "journey:enroll";
|
|
@@ -749,7 +770,6 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
749
770
|
EventRuleActionType2["ECW_REFRESH_MEMBER_ENCOUNTERS"] = "ecw:refresh_member_encounters";
|
|
750
771
|
EventRuleActionType2["PLAY_AUDIO"] = "audio:play";
|
|
751
772
|
EventRuleActionType2["CHARLESTON_SEND_PMD_PAGE"] = "charleston:send_pmd_page";
|
|
752
|
-
EventRuleActionType2["PATIENTSYNC_TRANSFER"] = "patientsync:transfer";
|
|
753
773
|
return EventRuleActionType2;
|
|
754
774
|
})(EventRuleActionType || {});
|
|
755
775
|
function eventRuleActionParams(params) {
|
|
@@ -780,7 +800,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
780
800
|
WorkspaceFeature2["DISCORD"] = "discord";
|
|
781
801
|
WorkspaceFeature2["SLACK"] = "slack";
|
|
782
802
|
WorkspaceFeature2["TEAMS"] = "teams";
|
|
783
|
-
WorkspaceFeature2["SITES"] = "sites";
|
|
784
803
|
WorkspaceFeature2["MAPS"] = "maps";
|
|
785
804
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
786
805
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
@@ -804,11 +823,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
804
823
|
WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
|
|
805
824
|
WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
|
|
806
825
|
WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
|
|
807
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
|
|
808
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
|
|
809
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
|
|
810
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
|
|
811
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
|
|
812
826
|
return WorkspaceFeature2;
|
|
813
827
|
})(WorkspaceFeature || {});
|
|
814
828
|
var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
|
|
@@ -845,7 +859,6 @@ var Resource = /* @__PURE__ */ ((Resource2) => {
|
|
|
845
859
|
})(Resource || {});
|
|
846
860
|
var ProductType = /* @__PURE__ */ ((ProductType2) => {
|
|
847
861
|
ProductType2["ORG"] = "org";
|
|
848
|
-
ProductType2["ADDON"] = "addon";
|
|
849
862
|
ProductType2["MEMBER"] = "member";
|
|
850
863
|
ProductType2["DEVICE"] = "device";
|
|
851
864
|
return ProductType2;
|
|
@@ -989,8 +1002,6 @@ var ModelType = {
|
|
|
989
1002
|
var REALTIME_MODEL_OPENAI = "openai:realtime:gpt-realtime";
|
|
990
1003
|
var REALTIME_MODEL_OPENAI_MINI = "openai:realtime:gpt-realtime-mini";
|
|
991
1004
|
var REALTIME_MODEL_OPENAI_2 = "openai:realtime:gpt-realtime-2";
|
|
992
|
-
var REALTIME_MODEL_GEMINI = "google:aistudio:gemini-3.1-flash-live";
|
|
993
|
-
var REALTIME_MODEL_GEMINI_VERTEX = "google:vertex:gemini-3.1-flash-live";
|
|
994
1005
|
var REALTIME_MODEL_CUSTOM = "custom:realtime:composable";
|
|
995
1006
|
var STT_MODEL_DEEPGRAM_FLUX = "deepgram:stt:flux-general-en";
|
|
996
1007
|
var STT_MODEL_DEEPGRAM_FLUX_SELFHOST = "deepgram:stt:flux-general-en:selfhost";
|
|
@@ -1006,6 +1017,36 @@ var TTS_MODEL_DEEPGRAM_AURA_2 = "deepgram:tts:aura-2";
|
|
|
1006
1017
|
var TTS_MODEL_AWS_POLLY_GENERATIVE = "aws:tts:polly-generative";
|
|
1007
1018
|
var TTS_MODEL_AWS_POLLY_NEURAL = "aws:tts:polly-neural";
|
|
1008
1019
|
|
|
1020
|
+
// src/types/generated/org_billing.ts
|
|
1021
|
+
var DefaultCardConvergenceAction = {
|
|
1022
|
+
none: "none",
|
|
1023
|
+
clear_subscription_default: "clear_subscription_default",
|
|
1024
|
+
set_customer_default_then_clear: "set_customer_default_then_clear"
|
|
1025
|
+
};
|
|
1026
|
+
var DefaultCardConvergenceClassification = {
|
|
1027
|
+
already_converged: "already_converged",
|
|
1028
|
+
foreign_customer: "foreign_customer",
|
|
1029
|
+
customer_default_set: "customer_default_set",
|
|
1030
|
+
customer_default_missing: "customer_default_missing"
|
|
1031
|
+
};
|
|
1032
|
+
var DefaultCardConvergenceOutcome = {
|
|
1033
|
+
skipped: "skipped",
|
|
1034
|
+
planned: "planned",
|
|
1035
|
+
applied: "applied",
|
|
1036
|
+
failed: "failed"
|
|
1037
|
+
};
|
|
1038
|
+
var DefaultCardConvergenceStep = {
|
|
1039
|
+
retrieve_subscription: "retrieve_subscription",
|
|
1040
|
+
retrieve_customer: "retrieve_customer",
|
|
1041
|
+
set_customer_default: "set_customer_default",
|
|
1042
|
+
clear_subscription_default: "clear_subscription_default"
|
|
1043
|
+
};
|
|
1044
|
+
var OverdueInvoicePayment = {
|
|
1045
|
+
paid: "paid",
|
|
1046
|
+
processing: "processing",
|
|
1047
|
+
failed: "failed"
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1009
1050
|
// src/types/generated/organization_billing.ts
|
|
1010
1051
|
var OrganizationClassification = {
|
|
1011
1052
|
commercial: "commercial",
|
|
@@ -1087,6 +1128,44 @@ var FhirClientType = /* @__PURE__ */ ((FhirClientType2) => {
|
|
|
1087
1128
|
return FhirClientType2;
|
|
1088
1129
|
})(FhirClientType || {});
|
|
1089
1130
|
|
|
1131
|
+
// src/types/generated/error.ts
|
|
1132
|
+
var SyncErrorCode = {
|
|
1133
|
+
missing_required_field: "missing_required_field",
|
|
1134
|
+
missing_target_datatype: "missing_target_datatype",
|
|
1135
|
+
missing_file_owner: "missing_file_owner",
|
|
1136
|
+
missing_space_mapping: "missing_space_mapping",
|
|
1137
|
+
unsupported_direction: "unsupported_direction",
|
|
1138
|
+
missing_enum_option: "missing_enum_option",
|
|
1139
|
+
missing_remote_label: "missing_remote_label",
|
|
1140
|
+
outbound_field_format_error: "outbound_field_format_error",
|
|
1141
|
+
local_entity_not_found: "local_entity_not_found",
|
|
1142
|
+
missing_local_link: "missing_local_link",
|
|
1143
|
+
missing_remote_mapping: "missing_remote_mapping",
|
|
1144
|
+
remote_api_error: "remote_api_error",
|
|
1145
|
+
remote_fetch_failed: "remote_fetch_failed",
|
|
1146
|
+
remote_missing_id: "remote_missing_id",
|
|
1147
|
+
remote_partial_failure: "remote_partial_failure",
|
|
1148
|
+
remote_inactive_record: "remote_inactive_record",
|
|
1149
|
+
remote_write_rejected: "remote_write_rejected",
|
|
1150
|
+
remote_write_uncertain: "remote_write_uncertain",
|
|
1151
|
+
side_effects_not_permitted: "side_effects_not_permitted",
|
|
1152
|
+
sync_operation_failed: "sync_operation_failed"
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1155
|
+
// src/types/generated/connection_sync.ts
|
|
1156
|
+
var LinkFailureCode = {
|
|
1157
|
+
...SyncErrorCode,
|
|
1158
|
+
manual_unlink: "manual_unlink",
|
|
1159
|
+
ineligible_member: "ineligible_member",
|
|
1160
|
+
no_care_team_practitioner: "no_care_team_practitioner",
|
|
1161
|
+
unique_field_conflict: "unique_field_conflict",
|
|
1162
|
+
discovery_not_created: "discovery_not_created",
|
|
1163
|
+
discovery_not_admitted: "discovery_not_admitted",
|
|
1164
|
+
ambiguous_match: "ambiguous_match",
|
|
1165
|
+
sync_failed: "sync_failed",
|
|
1166
|
+
unexpected_error: "unexpected_error"
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1090
1169
|
// src/types/app-connection-types.ts
|
|
1091
1170
|
var CrmActivityKind = /* @__PURE__ */ ((CrmActivityKind2) => {
|
|
1092
1171
|
CrmActivityKind2["MESSAGE"] = "message";
|
|
@@ -1122,6 +1201,7 @@ var TestChatRunLane = {
|
|
|
1122
1201
|
var TestChatRunOutcome = {
|
|
1123
1202
|
simulator_end: "simulator_end",
|
|
1124
1203
|
terminal_tool: "terminal_tool",
|
|
1204
|
+
human_handoff: "human_handoff",
|
|
1125
1205
|
agent_silent: "agent_silent",
|
|
1126
1206
|
max_turns: "max_turns",
|
|
1127
1207
|
human_end: "human_end",
|
|
@@ -1276,7 +1356,9 @@ var MemberRelationshipKind = {
|
|
|
1276
1356
|
legal_guardian_of: "legal_guardian_of",
|
|
1277
1357
|
healthcare_agent_of: "healthcare_agent_of",
|
|
1278
1358
|
doctor_of: "doctor_of",
|
|
1279
|
-
primary_contact_of: "primary_contact_of"
|
|
1359
|
+
primary_contact_of: "primary_contact_of",
|
|
1360
|
+
contact_owner_of: "contact_owner_of",
|
|
1361
|
+
employee_of: "employee_of"
|
|
1280
1362
|
};
|
|
1281
1363
|
var RelatedMemberRole = {
|
|
1282
1364
|
parent: "parent",
|
|
@@ -1296,7 +1378,11 @@ var RelatedMemberRole = {
|
|
|
1296
1378
|
doctor: "doctor",
|
|
1297
1379
|
patient: "patient",
|
|
1298
1380
|
primary_contact: "primary_contact",
|
|
1299
|
-
primary_contact_for: "primary_contact_for"
|
|
1381
|
+
primary_contact_for: "primary_contact_for",
|
|
1382
|
+
contact_owner: "contact_owner",
|
|
1383
|
+
owns_contact: "owns_contact",
|
|
1384
|
+
employee: "employee",
|
|
1385
|
+
employer: "employer"
|
|
1300
1386
|
};
|
|
1301
1387
|
var RelationshipCardinality = {
|
|
1302
1388
|
many_to_many: "many_to_many",
|
|
@@ -1316,13 +1402,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
1316
1402
|
"role": "parent",
|
|
1317
1403
|
"label": "Parent",
|
|
1318
1404
|
"inverseLabel": "Child",
|
|
1319
|
-
"description": "This person is a parent of the member. For a minor, also add Legal guardian if they should read the chart."
|
|
1405
|
+
"description": "This person is a parent of the member. For a minor, also add Legal guardian if they should read the chart.",
|
|
1406
|
+
"viewedMemberTypes": [
|
|
1407
|
+
"anonymous",
|
|
1408
|
+
"test",
|
|
1409
|
+
"member",
|
|
1410
|
+
"agent"
|
|
1411
|
+
],
|
|
1412
|
+
"relatedMemberTypes": [
|
|
1413
|
+
"anonymous",
|
|
1414
|
+
"test",
|
|
1415
|
+
"member",
|
|
1416
|
+
"agent"
|
|
1417
|
+
]
|
|
1320
1418
|
},
|
|
1321
1419
|
{
|
|
1322
1420
|
"role": "child",
|
|
1323
1421
|
"label": "Child",
|
|
1324
1422
|
"inverseLabel": "Parent",
|
|
1325
|
-
"description": "This person is a child of the member."
|
|
1423
|
+
"description": "This person is a child of the member.",
|
|
1424
|
+
"viewedMemberTypes": [
|
|
1425
|
+
"anonymous",
|
|
1426
|
+
"test",
|
|
1427
|
+
"member",
|
|
1428
|
+
"agent"
|
|
1429
|
+
],
|
|
1430
|
+
"relatedMemberTypes": [
|
|
1431
|
+
"anonymous",
|
|
1432
|
+
"test",
|
|
1433
|
+
"member",
|
|
1434
|
+
"agent"
|
|
1435
|
+
]
|
|
1326
1436
|
}
|
|
1327
1437
|
]
|
|
1328
1438
|
},
|
|
@@ -1336,7 +1446,19 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
1336
1446
|
"role": "sibling",
|
|
1337
1447
|
"label": "Sibling",
|
|
1338
1448
|
"inverseLabel": "Sibling",
|
|
1339
|
-
"description": "These members are siblings."
|
|
1449
|
+
"description": "These members are siblings.",
|
|
1450
|
+
"viewedMemberTypes": [
|
|
1451
|
+
"anonymous",
|
|
1452
|
+
"test",
|
|
1453
|
+
"member",
|
|
1454
|
+
"agent"
|
|
1455
|
+
],
|
|
1456
|
+
"relatedMemberTypes": [
|
|
1457
|
+
"anonymous",
|
|
1458
|
+
"test",
|
|
1459
|
+
"member",
|
|
1460
|
+
"agent"
|
|
1461
|
+
]
|
|
1340
1462
|
}
|
|
1341
1463
|
]
|
|
1342
1464
|
},
|
|
@@ -1350,7 +1472,19 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
1350
1472
|
"role": "spouse",
|
|
1351
1473
|
"label": "Spouse",
|
|
1352
1474
|
"inverseLabel": "Spouse",
|
|
1353
|
-
"description": "These members are spouses or partners."
|
|
1475
|
+
"description": "These members are spouses or partners.",
|
|
1476
|
+
"viewedMemberTypes": [
|
|
1477
|
+
"anonymous",
|
|
1478
|
+
"test",
|
|
1479
|
+
"member",
|
|
1480
|
+
"agent"
|
|
1481
|
+
],
|
|
1482
|
+
"relatedMemberTypes": [
|
|
1483
|
+
"anonymous",
|
|
1484
|
+
"test",
|
|
1485
|
+
"member",
|
|
1486
|
+
"agent"
|
|
1487
|
+
]
|
|
1354
1488
|
}
|
|
1355
1489
|
]
|
|
1356
1490
|
},
|
|
@@ -1364,13 +1498,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
1364
1498
|
"role": "caregiver",
|
|
1365
1499
|
"label": "Caregiver",
|
|
1366
1500
|
"inverseLabel": "Care recipient",
|
|
1367
|
-
"description": "This person provides care for the member at home."
|
|
1501
|
+
"description": "This person provides care for the member at home.",
|
|
1502
|
+
"viewedMemberTypes": [
|
|
1503
|
+
"anonymous",
|
|
1504
|
+
"test",
|
|
1505
|
+
"member",
|
|
1506
|
+
"agent"
|
|
1507
|
+
],
|
|
1508
|
+
"relatedMemberTypes": [
|
|
1509
|
+
"anonymous",
|
|
1510
|
+
"test",
|
|
1511
|
+
"member",
|
|
1512
|
+
"agent"
|
|
1513
|
+
]
|
|
1368
1514
|
},
|
|
1369
1515
|
{
|
|
1370
1516
|
"role": "care_recipient",
|
|
1371
1517
|
"label": "Care recipient",
|
|
1372
1518
|
"inverseLabel": "Caregiver",
|
|
1373
|
-
"description": "This person receives care from the member."
|
|
1519
|
+
"description": "This person receives care from the member.",
|
|
1520
|
+
"viewedMemberTypes": [
|
|
1521
|
+
"anonymous",
|
|
1522
|
+
"test",
|
|
1523
|
+
"member",
|
|
1524
|
+
"agent"
|
|
1525
|
+
],
|
|
1526
|
+
"relatedMemberTypes": [
|
|
1527
|
+
"anonymous",
|
|
1528
|
+
"test",
|
|
1529
|
+
"member",
|
|
1530
|
+
"agent"
|
|
1531
|
+
]
|
|
1374
1532
|
}
|
|
1375
1533
|
]
|
|
1376
1534
|
},
|
|
@@ -1384,13 +1542,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
1384
1542
|
"role": "emergency_contact",
|
|
1385
1543
|
"label": "Emergency contact",
|
|
1386
1544
|
"inverseLabel": "Emergency contact for",
|
|
1387
|
-
"description": "This person is the member's emergency contact."
|
|
1545
|
+
"description": "This person is the member's emergency contact.",
|
|
1546
|
+
"viewedMemberTypes": [
|
|
1547
|
+
"anonymous",
|
|
1548
|
+
"test",
|
|
1549
|
+
"member",
|
|
1550
|
+
"agent"
|
|
1551
|
+
],
|
|
1552
|
+
"relatedMemberTypes": [
|
|
1553
|
+
"anonymous",
|
|
1554
|
+
"test",
|
|
1555
|
+
"member",
|
|
1556
|
+
"agent"
|
|
1557
|
+
]
|
|
1388
1558
|
},
|
|
1389
1559
|
{
|
|
1390
1560
|
"role": "emergency_contact_for",
|
|
1391
1561
|
"label": "Emergency contact for",
|
|
1392
1562
|
"inverseLabel": "Emergency contact",
|
|
1393
|
-
"description": "The member is listed as this person's emergency contact."
|
|
1563
|
+
"description": "The member is listed as this person's emergency contact.",
|
|
1564
|
+
"viewedMemberTypes": [
|
|
1565
|
+
"anonymous",
|
|
1566
|
+
"test",
|
|
1567
|
+
"member",
|
|
1568
|
+
"agent"
|
|
1569
|
+
],
|
|
1570
|
+
"relatedMemberTypes": [
|
|
1571
|
+
"anonymous",
|
|
1572
|
+
"test",
|
|
1573
|
+
"member",
|
|
1574
|
+
"agent"
|
|
1575
|
+
]
|
|
1394
1576
|
}
|
|
1395
1577
|
]
|
|
1396
1578
|
},
|
|
@@ -1404,13 +1586,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
1404
1586
|
"role": "next_of_kin",
|
|
1405
1587
|
"label": "Next of kin",
|
|
1406
1588
|
"inverseLabel": "Next of kin for",
|
|
1407
|
-
"description": "This person is the member's designated next of kin. A member has at most one."
|
|
1589
|
+
"description": "This person is the member's designated next of kin. A member has at most one.",
|
|
1590
|
+
"viewedMemberTypes": [
|
|
1591
|
+
"anonymous",
|
|
1592
|
+
"test",
|
|
1593
|
+
"member",
|
|
1594
|
+
"agent"
|
|
1595
|
+
],
|
|
1596
|
+
"relatedMemberTypes": [
|
|
1597
|
+
"anonymous",
|
|
1598
|
+
"test",
|
|
1599
|
+
"member",
|
|
1600
|
+
"agent"
|
|
1601
|
+
]
|
|
1408
1602
|
},
|
|
1409
1603
|
{
|
|
1410
1604
|
"role": "next_of_kin_for",
|
|
1411
1605
|
"label": "Next of kin for",
|
|
1412
1606
|
"inverseLabel": "Next of kin",
|
|
1413
|
-
"description": "The member is this person's designated next of kin."
|
|
1607
|
+
"description": "The member is this person's designated next of kin.",
|
|
1608
|
+
"viewedMemberTypes": [
|
|
1609
|
+
"anonymous",
|
|
1610
|
+
"test",
|
|
1611
|
+
"member",
|
|
1612
|
+
"agent"
|
|
1613
|
+
],
|
|
1614
|
+
"relatedMemberTypes": [
|
|
1615
|
+
"anonymous",
|
|
1616
|
+
"test",
|
|
1617
|
+
"member",
|
|
1618
|
+
"agent"
|
|
1619
|
+
]
|
|
1414
1620
|
}
|
|
1415
1621
|
]
|
|
1416
1622
|
},
|
|
@@ -1424,13 +1630,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
1424
1630
|
"role": "legal_guardian",
|
|
1425
1631
|
"label": "Legal guardian",
|
|
1426
1632
|
"inverseLabel": "Legal guardian for",
|
|
1427
|
-
"description": "Court-appointed guardian, or parent/person with parental responsibility for a minor."
|
|
1633
|
+
"description": "Court-appointed guardian, or parent/person with parental responsibility for a minor.",
|
|
1634
|
+
"viewedMemberTypes": [
|
|
1635
|
+
"anonymous",
|
|
1636
|
+
"test",
|
|
1637
|
+
"member",
|
|
1638
|
+
"agent"
|
|
1639
|
+
],
|
|
1640
|
+
"relatedMemberTypes": [
|
|
1641
|
+
"anonymous",
|
|
1642
|
+
"test",
|
|
1643
|
+
"member",
|
|
1644
|
+
"agent"
|
|
1645
|
+
]
|
|
1428
1646
|
},
|
|
1429
1647
|
{
|
|
1430
1648
|
"role": "legal_guardian_for",
|
|
1431
1649
|
"label": "Legal guardian for",
|
|
1432
1650
|
"inverseLabel": "Legal guardian",
|
|
1433
|
-
"description": "The member is this person's legal guardian."
|
|
1651
|
+
"description": "The member is this person's legal guardian.",
|
|
1652
|
+
"viewedMemberTypes": [
|
|
1653
|
+
"anonymous",
|
|
1654
|
+
"test",
|
|
1655
|
+
"member",
|
|
1656
|
+
"agent"
|
|
1657
|
+
],
|
|
1658
|
+
"relatedMemberTypes": [
|
|
1659
|
+
"anonymous",
|
|
1660
|
+
"test",
|
|
1661
|
+
"member",
|
|
1662
|
+
"agent"
|
|
1663
|
+
]
|
|
1434
1664
|
}
|
|
1435
1665
|
]
|
|
1436
1666
|
},
|
|
@@ -1444,13 +1674,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
1444
1674
|
"role": "healthcare_agent",
|
|
1445
1675
|
"label": "Healthcare agent",
|
|
1446
1676
|
"inverseLabel": "Healthcare agent for",
|
|
1447
|
-
"description": "Healthcare power of attorney or health proxy."
|
|
1677
|
+
"description": "Healthcare power of attorney or health proxy.",
|
|
1678
|
+
"viewedMemberTypes": [
|
|
1679
|
+
"anonymous",
|
|
1680
|
+
"test",
|
|
1681
|
+
"member",
|
|
1682
|
+
"agent"
|
|
1683
|
+
],
|
|
1684
|
+
"relatedMemberTypes": [
|
|
1685
|
+
"anonymous",
|
|
1686
|
+
"test",
|
|
1687
|
+
"member",
|
|
1688
|
+
"agent"
|
|
1689
|
+
]
|
|
1448
1690
|
},
|
|
1449
1691
|
{
|
|
1450
1692
|
"role": "healthcare_agent_for",
|
|
1451
1693
|
"label": "Healthcare agent for",
|
|
1452
1694
|
"inverseLabel": "Healthcare agent",
|
|
1453
|
-
"description": "The member is this person's healthcare agent (healthcare power of attorney or health proxy)."
|
|
1695
|
+
"description": "The member is this person's healthcare agent (healthcare power of attorney or health proxy).",
|
|
1696
|
+
"viewedMemberTypes": [
|
|
1697
|
+
"anonymous",
|
|
1698
|
+
"test",
|
|
1699
|
+
"member",
|
|
1700
|
+
"agent"
|
|
1701
|
+
],
|
|
1702
|
+
"relatedMemberTypes": [
|
|
1703
|
+
"anonymous",
|
|
1704
|
+
"test",
|
|
1705
|
+
"member",
|
|
1706
|
+
"agent"
|
|
1707
|
+
]
|
|
1454
1708
|
}
|
|
1455
1709
|
]
|
|
1456
1710
|
},
|
|
@@ -1464,13 +1718,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
1464
1718
|
"role": "doctor",
|
|
1465
1719
|
"label": "Doctor",
|
|
1466
1720
|
"inverseLabel": "Patient",
|
|
1467
|
-
"description": "This person is a treating clinician for the member."
|
|
1721
|
+
"description": "This person is a treating clinician for the member.",
|
|
1722
|
+
"viewedMemberTypes": [
|
|
1723
|
+
"anonymous",
|
|
1724
|
+
"test",
|
|
1725
|
+
"member",
|
|
1726
|
+
"agent"
|
|
1727
|
+
],
|
|
1728
|
+
"relatedMemberTypes": [
|
|
1729
|
+
"anonymous",
|
|
1730
|
+
"test",
|
|
1731
|
+
"member",
|
|
1732
|
+
"agent"
|
|
1733
|
+
]
|
|
1468
1734
|
},
|
|
1469
1735
|
{
|
|
1470
1736
|
"role": "patient",
|
|
1471
1737
|
"label": "Patient",
|
|
1472
1738
|
"inverseLabel": "Doctor",
|
|
1473
|
-
"description": "This person is a patient of the member."
|
|
1739
|
+
"description": "This person is a patient of the member.",
|
|
1740
|
+
"viewedMemberTypes": [
|
|
1741
|
+
"anonymous",
|
|
1742
|
+
"test",
|
|
1743
|
+
"member",
|
|
1744
|
+
"agent"
|
|
1745
|
+
],
|
|
1746
|
+
"relatedMemberTypes": [
|
|
1747
|
+
"anonymous",
|
|
1748
|
+
"test",
|
|
1749
|
+
"member",
|
|
1750
|
+
"agent"
|
|
1751
|
+
]
|
|
1474
1752
|
}
|
|
1475
1753
|
]
|
|
1476
1754
|
},
|
|
@@ -1484,13 +1762,113 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
1484
1762
|
"role": "primary_contact",
|
|
1485
1763
|
"label": "Primary contact",
|
|
1486
1764
|
"inverseLabel": "Primary contact for",
|
|
1487
|
-
"description": "This person is the organization's primary contact for the member. A member has at most one."
|
|
1765
|
+
"description": "This person is the organization's primary contact for the member. A member has at most one.",
|
|
1766
|
+
"viewedMemberTypes": [
|
|
1767
|
+
"anonymous",
|
|
1768
|
+
"test",
|
|
1769
|
+
"member",
|
|
1770
|
+
"agent"
|
|
1771
|
+
],
|
|
1772
|
+
"relatedMemberTypes": [
|
|
1773
|
+
"anonymous",
|
|
1774
|
+
"test",
|
|
1775
|
+
"member",
|
|
1776
|
+
"agent"
|
|
1777
|
+
]
|
|
1488
1778
|
},
|
|
1489
1779
|
{
|
|
1490
1780
|
"role": "primary_contact_for",
|
|
1491
1781
|
"label": "Primary contact for",
|
|
1492
1782
|
"inverseLabel": "Primary contact",
|
|
1493
|
-
"description": "The member is this person's assigned primary contact inside the organization."
|
|
1783
|
+
"description": "The member is this person's assigned primary contact inside the organization.",
|
|
1784
|
+
"viewedMemberTypes": [
|
|
1785
|
+
"anonymous",
|
|
1786
|
+
"test",
|
|
1787
|
+
"member",
|
|
1788
|
+
"agent"
|
|
1789
|
+
],
|
|
1790
|
+
"relatedMemberTypes": [
|
|
1791
|
+
"anonymous",
|
|
1792
|
+
"test",
|
|
1793
|
+
"member",
|
|
1794
|
+
"agent"
|
|
1795
|
+
]
|
|
1796
|
+
}
|
|
1797
|
+
]
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
"kind": "contact_owner_of",
|
|
1801
|
+
"cardinality": "one_per_target",
|
|
1802
|
+
"symmetric": false,
|
|
1803
|
+
"grantsChartAccess": false,
|
|
1804
|
+
"roles": [
|
|
1805
|
+
{
|
|
1806
|
+
"role": "contact_owner",
|
|
1807
|
+
"label": "Contact owner",
|
|
1808
|
+
"inverseLabel": "Owns contact",
|
|
1809
|
+
"description": "This person owns the member's record in the CRM. A member has at most one. Grants no chart access.",
|
|
1810
|
+
"viewedMemberTypes": [
|
|
1811
|
+
"anonymous",
|
|
1812
|
+
"test",
|
|
1813
|
+
"member",
|
|
1814
|
+
"agent"
|
|
1815
|
+
],
|
|
1816
|
+
"relatedMemberTypes": [
|
|
1817
|
+
"anonymous",
|
|
1818
|
+
"test",
|
|
1819
|
+
"member",
|
|
1820
|
+
"agent"
|
|
1821
|
+
]
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
"role": "owns_contact",
|
|
1825
|
+
"label": "Owns contact",
|
|
1826
|
+
"inverseLabel": "Contact owner",
|
|
1827
|
+
"description": "The member owns this person's record in the CRM.",
|
|
1828
|
+
"viewedMemberTypes": [
|
|
1829
|
+
"anonymous",
|
|
1830
|
+
"test",
|
|
1831
|
+
"member",
|
|
1832
|
+
"agent"
|
|
1833
|
+
],
|
|
1834
|
+
"relatedMemberTypes": [
|
|
1835
|
+
"anonymous",
|
|
1836
|
+
"test",
|
|
1837
|
+
"member",
|
|
1838
|
+
"agent"
|
|
1839
|
+
]
|
|
1840
|
+
}
|
|
1841
|
+
]
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"kind": "employee_of",
|
|
1845
|
+
"cardinality": "many_to_many",
|
|
1846
|
+
"symmetric": false,
|
|
1847
|
+
"grantsChartAccess": false,
|
|
1848
|
+
"roles": [
|
|
1849
|
+
{
|
|
1850
|
+
"role": "employee",
|
|
1851
|
+
"label": "Employee",
|
|
1852
|
+
"inverseLabel": "Employer",
|
|
1853
|
+
"description": "This person works at the business. Grants no chart access.",
|
|
1854
|
+
"viewedMemberTypes": [
|
|
1855
|
+
"business"
|
|
1856
|
+
],
|
|
1857
|
+
"relatedMemberTypes": [
|
|
1858
|
+
"member"
|
|
1859
|
+
]
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
"role": "employer",
|
|
1863
|
+
"label": "Employer",
|
|
1864
|
+
"inverseLabel": "Employee",
|
|
1865
|
+
"description": "The member works at this business. Grants no chart access.",
|
|
1866
|
+
"viewedMemberTypes": [
|
|
1867
|
+
"member"
|
|
1868
|
+
],
|
|
1869
|
+
"relatedMemberTypes": [
|
|
1870
|
+
"business"
|
|
1871
|
+
]
|
|
1494
1872
|
}
|
|
1495
1873
|
]
|
|
1496
1874
|
}
|
|
@@ -1511,7 +1889,8 @@ function isConfigHealthFacadeCheckSlug(value) {
|
|
|
1511
1889
|
var UiPromptPresentedKind = {
|
|
1512
1890
|
render_ui: "render_ui",
|
|
1513
1891
|
present_choice_list: "present_choice_list",
|
|
1514
|
-
inline_connect: "inline_connect"
|
|
1892
|
+
inline_connect: "inline_connect",
|
|
1893
|
+
proposed_message: "proposed_message"
|
|
1515
1894
|
};
|
|
1516
1895
|
var UiPromptResponseKind = {
|
|
1517
1896
|
render_ui: "render_ui",
|
|
@@ -1523,6 +1902,56 @@ var UiPromptResponseStatus = {
|
|
|
1523
1902
|
declined: "declined"
|
|
1524
1903
|
};
|
|
1525
1904
|
|
|
1905
|
+
// src/types/proposed-message.ts
|
|
1906
|
+
var PROPOSED_MESSAGE_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
1907
|
+
"send_gmail",
|
|
1908
|
+
"slack_post_as_member",
|
|
1909
|
+
"slack_post_as_app",
|
|
1910
|
+
"teams_post_as_member",
|
|
1911
|
+
"teams_post_as_app"
|
|
1912
|
+
]);
|
|
1913
|
+
var PROPOSED_MESSAGE_SETTLED_TOOL_NAME = "proposed_message_settled";
|
|
1914
|
+
var PROPOSED_MESSAGE_SETTLEMENT_STATUSES = ["sent", "failed", "discarded"];
|
|
1915
|
+
function isProposedMessageSettlementStatus(value) {
|
|
1916
|
+
return typeof value === "string" && PROPOSED_MESSAGE_SETTLEMENT_STATUSES.includes(value);
|
|
1917
|
+
}
|
|
1918
|
+
var PROPOSED_MESSAGE_BODY_MAX_LENGTH = 4e4;
|
|
1919
|
+
var PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH = 998;
|
|
1920
|
+
var PROPOSED_SERVICES = /* @__PURE__ */ new Set(["gmail", "slack", "teams"]);
|
|
1921
|
+
var PROPOSED_FIELDS = /* @__PURE__ */ new Set(["body", "subject"]);
|
|
1922
|
+
function optionalString(record, key) {
|
|
1923
|
+
const value = record[key];
|
|
1924
|
+
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
1925
|
+
}
|
|
1926
|
+
function parseProposedMessage(value) {
|
|
1927
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
1928
|
+
const record = value;
|
|
1929
|
+
const tool = optionalString(record, "tool");
|
|
1930
|
+
const to = optionalString(record, "to");
|
|
1931
|
+
const body = optionalString(record, "body");
|
|
1932
|
+
const service = record.service;
|
|
1933
|
+
if (!tool || !to || !body || typeof service !== "string" || !PROPOSED_SERVICES.has(service)) {
|
|
1934
|
+
return void 0;
|
|
1935
|
+
}
|
|
1936
|
+
const editable = Array.isArray(record.editableFields) ? record.editableFields.filter(
|
|
1937
|
+
(field) => typeof field === "string" && PROPOSED_FIELDS.has(field)
|
|
1938
|
+
) : [];
|
|
1939
|
+
const cc = optionalString(record, "cc");
|
|
1940
|
+
const thread = optionalString(record, "thread");
|
|
1941
|
+
const subject = optionalString(record, "subject");
|
|
1942
|
+
return {
|
|
1943
|
+
tool,
|
|
1944
|
+
service,
|
|
1945
|
+
sendsAs: record.sendsAs === "app" ? "app" : "member",
|
|
1946
|
+
to,
|
|
1947
|
+
body,
|
|
1948
|
+
editableFields: editable,
|
|
1949
|
+
...cc ? { cc } : {},
|
|
1950
|
+
...thread ? { thread } : {},
|
|
1951
|
+
...subject ? { subject } : {}
|
|
1952
|
+
};
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1526
1955
|
// src/types/experiment-types.ts
|
|
1527
1956
|
function parseExperimentStatCount(value) {
|
|
1528
1957
|
return typeof value === "number" ? value : null;
|
|
@@ -1586,16 +2015,6 @@ var AbilityTypeSlugs = {
|
|
|
1586
2015
|
CEL_ROUTING: "system:cel_routing"
|
|
1587
2016
|
};
|
|
1588
2017
|
|
|
1589
|
-
// src/types/generated/addon.ts
|
|
1590
|
-
var AddonMutationResponseScope = {
|
|
1591
|
-
organization: "organization",
|
|
1592
|
-
workspace: "workspace"
|
|
1593
|
-
};
|
|
1594
|
-
var OrganizationAddonResponseScope = {
|
|
1595
|
-
organization: "organization",
|
|
1596
|
-
workspace: "workspace"
|
|
1597
|
-
};
|
|
1598
|
-
|
|
1599
2018
|
// src/types/generated/promo_code_service.ts
|
|
1600
2019
|
var PromoCodeStatus = {
|
|
1601
2020
|
active: "active",
|
|
@@ -1682,6 +2101,21 @@ var FeedCursorRejection = {
|
|
|
1682
2101
|
query_mismatch: "query_mismatch"
|
|
1683
2102
|
};
|
|
1684
2103
|
|
|
2104
|
+
// src/types/generated/notification.ts
|
|
2105
|
+
var NotificationMarkerAction = {
|
|
2106
|
+
read: "read",
|
|
2107
|
+
dismiss: "dismiss"
|
|
2108
|
+
};
|
|
2109
|
+
|
|
2110
|
+
// src/types/generated/open_item.ts
|
|
2111
|
+
var OpenItemKind = {
|
|
2112
|
+
awaiting_human: "awaiting_human",
|
|
2113
|
+
connection_authorization: "connection_authorization",
|
|
2114
|
+
missed_call: "missed_call",
|
|
2115
|
+
routine_result: "routine_result",
|
|
2116
|
+
voicemail: "voicemail"
|
|
2117
|
+
};
|
|
2118
|
+
|
|
1685
2119
|
// src/types/generated/family.ts
|
|
1686
2120
|
var ActivityEventFamily = {
|
|
1687
2121
|
people: "people",
|
|
@@ -1724,6 +2158,8 @@ var CustomerActivityClassifierLabel = {
|
|
|
1724
2158
|
repetitive_loop: "repetitive_loop",
|
|
1725
2159
|
manager_no_response: "manager_no_response",
|
|
1726
2160
|
manager_incomplete_task: "manager_incomplete_task",
|
|
2161
|
+
stalled_progress: "stalled_progress",
|
|
2162
|
+
step_limit_reached: "step_limit_reached",
|
|
1727
2163
|
docs_or_skill_gap: "docs_or_skill_gap",
|
|
1728
2164
|
discovery_thrash: "discovery_thrash",
|
|
1729
2165
|
manager_language_mismatch: "manager_language_mismatch"
|
|
@@ -1774,7 +2210,8 @@ var PhiPolicySource = {
|
|
|
1774
2210
|
customer_attestation: "customer_attestation",
|
|
1775
2211
|
contract_review: "contract_review",
|
|
1776
2212
|
staff_review: "staff_review",
|
|
1777
|
-
legacy_inventory: "legacy_inventory"
|
|
2213
|
+
legacy_inventory: "legacy_inventory",
|
|
2214
|
+
platform_default: "platform_default"
|
|
1778
2215
|
};
|
|
1779
2216
|
var PhiPostureTransitionResponseTargetType = {
|
|
1780
2217
|
organization: "organization",
|
|
@@ -2080,6 +2517,74 @@ function isPositiveRating(rating) {
|
|
|
2080
2517
|
return rating != null && rating >= POSITIVE_RATING_THRESHOLD;
|
|
2081
2518
|
}
|
|
2082
2519
|
|
|
2520
|
+
// src/types/generated/v3_file.ts
|
|
2521
|
+
var FileAccess = {
|
|
2522
|
+
PRIVATE: "PRIVATE",
|
|
2523
|
+
WORKSPACE: "WORKSPACE",
|
|
2524
|
+
PUBLIC: "PUBLIC",
|
|
2525
|
+
ORGANIZATION: "ORGANIZATION",
|
|
2526
|
+
AUDIENCE: "AUDIENCE"
|
|
2527
|
+
};
|
|
2528
|
+
var FileAuthorKind = {
|
|
2529
|
+
MEMBER: "MEMBER",
|
|
2530
|
+
AGENT: "AGENT"
|
|
2531
|
+
};
|
|
2532
|
+
var FileKind = {
|
|
2533
|
+
FILE: "FILE",
|
|
2534
|
+
MEMORY: "MEMORY",
|
|
2535
|
+
SKILL: "SKILL"
|
|
2536
|
+
};
|
|
2537
|
+
var FileOrder = {
|
|
2538
|
+
NAME: "NAME",
|
|
2539
|
+
NAME_DESC: "NAME_DESC",
|
|
2540
|
+
CREATE_TIME: "CREATE_TIME",
|
|
2541
|
+
CREATE_TIME_DESC: "CREATE_TIME_DESC",
|
|
2542
|
+
UPDATE_TIME: "UPDATE_TIME",
|
|
2543
|
+
UPDATE_TIME_DESC: "UPDATE_TIME_DESC"
|
|
2544
|
+
};
|
|
2545
|
+
var FileSkillWarning = {
|
|
2546
|
+
INVISIBLE_UNICODE: "INVISIBLE_UNICODE",
|
|
2547
|
+
PROMPT_INJECTION_SIGNALS: "PROMPT_INJECTION_SIGNALS"
|
|
2548
|
+
};
|
|
2549
|
+
var FileState = {
|
|
2550
|
+
ACTIVE: "ACTIVE",
|
|
2551
|
+
ARCHIVED: "ARCHIVED"
|
|
2552
|
+
};
|
|
2553
|
+
var FileView = {
|
|
2554
|
+
BASIC: "BASIC",
|
|
2555
|
+
FULL: "FULL"
|
|
2556
|
+
};
|
|
2557
|
+
|
|
2558
|
+
// src/types/generated/v3_folder.ts
|
|
2559
|
+
var FolderIndexState = {
|
|
2560
|
+
NOT_INDEXED: "NOT_INDEXED",
|
|
2561
|
+
INDEXING: "INDEXING",
|
|
2562
|
+
INDEXED: "INDEXED"
|
|
2563
|
+
};
|
|
2564
|
+
var FolderRoot = {
|
|
2565
|
+
WORKSPACE: "WORKSPACE",
|
|
2566
|
+
HOME: "HOME",
|
|
2567
|
+
MEMORY: "MEMORY",
|
|
2568
|
+
SITE: "SITE",
|
|
2569
|
+
WORKFLOW: "WORKFLOW"
|
|
2570
|
+
};
|
|
2571
|
+
var FolderView = {
|
|
2572
|
+
BASIC: "BASIC",
|
|
2573
|
+
FULL: "FULL"
|
|
2574
|
+
};
|
|
2575
|
+
|
|
2576
|
+
// src/types/generated/v3_grant.ts
|
|
2577
|
+
var GrantMode = {
|
|
2578
|
+
READ: "READ",
|
|
2579
|
+
WRITE: "WRITE"
|
|
2580
|
+
};
|
|
2581
|
+
|
|
2582
|
+
// src/types/generated/v3_upload.ts
|
|
2583
|
+
var UploadState = {
|
|
2584
|
+
PENDING: "PENDING",
|
|
2585
|
+
RECEIVED: "RECEIVED"
|
|
2586
|
+
};
|
|
2587
|
+
|
|
2083
2588
|
// src/types/generated/metric_record_definition.ts
|
|
2084
2589
|
var RecordMetricDefinitionAggregation = {
|
|
2085
2590
|
count: "count",
|
|
@@ -2186,6 +2691,18 @@ var MenuItemResponseItemType = {
|
|
|
2186
2691
|
none: "none"
|
|
2187
2692
|
};
|
|
2188
2693
|
|
|
2694
|
+
// src/types/generated/enrollment_inquiry.ts
|
|
2695
|
+
var CosanEnrollmentInquiryResponseOutcome = {
|
|
2696
|
+
captured: "captured",
|
|
2697
|
+
identity_verified: "identity_verified"
|
|
2698
|
+
};
|
|
2699
|
+
|
|
2700
|
+
// src/types/generated/support_request_participant.ts
|
|
2701
|
+
var SupportRequestParticipantRole = {
|
|
2702
|
+
recipient: "recipient",
|
|
2703
|
+
cc: "cc"
|
|
2704
|
+
};
|
|
2705
|
+
|
|
2189
2706
|
// src/types/widget-domain-types.ts
|
|
2190
2707
|
var WIDGET_SLUGS = ["chat", "operator", "operator-tools", "chat-app"];
|
|
2191
2708
|
|
|
@@ -2196,17 +2713,21 @@ var AbilityConfigIssueCode = {
|
|
|
2196
2713
|
feature_disabled: "feature_disabled",
|
|
2197
2714
|
missing_connection: "missing_connection",
|
|
2198
2715
|
external_drift: "external_drift",
|
|
2199
|
-
no_qualification_scenarios: "no_qualification_scenarios"
|
|
2716
|
+
no_qualification_scenarios: "no_qualification_scenarios",
|
|
2717
|
+
check_truncated: "check_truncated"
|
|
2200
2718
|
};
|
|
2201
2719
|
var AbilityConfigIssueSeverity = {
|
|
2202
2720
|
warning: "warning",
|
|
2203
2721
|
error: "error"
|
|
2204
2722
|
};
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2723
|
+
var AiDisclosure = {
|
|
2724
|
+
when_asked: "when_asked",
|
|
2725
|
+
at_opening: "at_opening"
|
|
2726
|
+
};
|
|
2727
|
+
var ResponseLength = {
|
|
2728
|
+
brief: "brief",
|
|
2729
|
+
short: "short",
|
|
2730
|
+
detailed: "detailed"
|
|
2210
2731
|
};
|
|
2211
2732
|
|
|
2212
2733
|
// src/types/generated/pilot_program.ts
|
|
@@ -2320,7 +2841,7 @@ function formatAppContextAsMarkdown(context) {
|
|
|
2320
2841
|
lines.push(`**Page**: \`${context.appUri}\``);
|
|
2321
2842
|
}
|
|
2322
2843
|
if (context.pageState) {
|
|
2323
|
-
const { site, page, workflow, dataRecord, toolkit } = context.pageState;
|
|
2844
|
+
const { site, page, workflow, chat, dataRecord, toolkit } = context.pageState;
|
|
2324
2845
|
if (site) {
|
|
2325
2846
|
const siteName = site.name || site.slug;
|
|
2326
2847
|
lines.push(
|
|
@@ -2333,6 +2854,10 @@ function formatAppContextAsMarkdown(context) {
|
|
|
2333
2854
|
pageName ? `**Page**: ${pageName} (ID: \`${page.id}\`)` : `**Page ID**: \`${page.id}\``
|
|
2334
2855
|
);
|
|
2335
2856
|
}
|
|
2857
|
+
if (chat) {
|
|
2858
|
+
const workflowSuffix = chat.workflowId != null ? ` (Workflow ID: \`${chat.workflowId}\`)` : "";
|
|
2859
|
+
lines.push(`**Chat**: #${chat.id}${workflowSuffix}`);
|
|
2860
|
+
}
|
|
2336
2861
|
if (workflow) {
|
|
2337
2862
|
const workflowName = workflow.name;
|
|
2338
2863
|
lines.push(
|
|
@@ -3470,6 +3995,20 @@ var BaseApiClient = class {
|
|
|
3470
3995
|
this.setOrgSession(void 0);
|
|
3471
3996
|
}
|
|
3472
3997
|
async fetch(endpoint, options, orgAuthRetriesRemaining = this.apiKey && !this.orgSession ? 2 : 1, enhancedAuthRetry = false) {
|
|
3998
|
+
return this.fetchApiVersion(
|
|
3999
|
+
"v2",
|
|
4000
|
+
endpoint,
|
|
4001
|
+
options,
|
|
4002
|
+
orgAuthRetriesRemaining,
|
|
4003
|
+
enhancedAuthRetry
|
|
4004
|
+
);
|
|
4005
|
+
}
|
|
4006
|
+
/**
|
|
4007
|
+
* `fetch` against a named API version: `/api/{version}/{endpoint}`, with the
|
|
4008
|
+
* same credentials, step-up retry, org-auth challenge handling and
|
|
4009
|
+
* org-session rejection bookkeeping. `fetch` is this method bound to `v2`.
|
|
4010
|
+
*/
|
|
4011
|
+
async fetchApiVersion(version, endpoint, options, orgAuthRetriesRemaining = this.apiKey && !this.orgSession ? 2 : 1, enhancedAuthRetry = false) {
|
|
3473
4012
|
try {
|
|
3474
4013
|
const headers = new Headers({
|
|
3475
4014
|
// Don't set Content-Type for FormData — the browser must set it
|
|
@@ -3485,7 +4024,7 @@ var BaseApiClient = class {
|
|
|
3485
4024
|
const requestOrgRevision = this.orgSessionRevision;
|
|
3486
4025
|
const presentedOrgUuid = this.orgSessionOrgUuid;
|
|
3487
4026
|
const rejectionHandler = this.orgSessionRejectionHandler;
|
|
3488
|
-
const fullUrl = `${this.baseUrl}/api
|
|
4027
|
+
const fullUrl = `${this.baseUrl}/api/${version}/${endpoint}`;
|
|
3489
4028
|
const response = await this.fetchFunction(fullUrl, {
|
|
3490
4029
|
...options,
|
|
3491
4030
|
...this.credentialsInit(),
|
|
@@ -3505,7 +4044,13 @@ var BaseApiClient = class {
|
|
|
3505
4044
|
this.enhancedAuthInProgress = null;
|
|
3506
4045
|
}
|
|
3507
4046
|
}
|
|
3508
|
-
return await this.
|
|
4047
|
+
return await this.fetchApiVersion(
|
|
4048
|
+
version,
|
|
4049
|
+
endpoint,
|
|
4050
|
+
options,
|
|
4051
|
+
orgAuthRetriesRemaining,
|
|
4052
|
+
true
|
|
4053
|
+
);
|
|
3509
4054
|
}
|
|
3510
4055
|
if (response.status === 401) {
|
|
3511
4056
|
const orgAuthInfo = parseOrgAuthChallenge(response.headers.get("WWW-Authenticate"));
|
|
@@ -3526,7 +4071,13 @@ var BaseApiClient = class {
|
|
|
3526
4071
|
if (completion !== "cache") nextOrgRetries = 0;
|
|
3527
4072
|
}
|
|
3528
4073
|
this.assertOrgAuthContext(orgAuthInfo.orgUuid);
|
|
3529
|
-
return await this.
|
|
4074
|
+
return await this.fetchApiVersion(
|
|
4075
|
+
version,
|
|
4076
|
+
endpoint,
|
|
4077
|
+
options,
|
|
4078
|
+
nextOrgRetries,
|
|
4079
|
+
enhancedAuthRetry
|
|
4080
|
+
);
|
|
3530
4081
|
}
|
|
3531
4082
|
if (orgAuthInfo) {
|
|
3532
4083
|
this.clearOrgSessionIfCurrent(presentedOrgSession);
|
|
@@ -3539,7 +4090,7 @@ var BaseApiClient = class {
|
|
|
3539
4090
|
}
|
|
3540
4091
|
}
|
|
3541
4092
|
const errorData = await response.json().catch(() => ({}));
|
|
3542
|
-
if (response.status === 401 && endpoint === "account") {
|
|
4093
|
+
if (response.status === 401 && version === "v2" && endpoint === "account") {
|
|
3543
4094
|
throw new Error("unauthorized");
|
|
3544
4095
|
}
|
|
3545
4096
|
if (Array.isArray(errorData.detail)) {
|
|
@@ -3899,6 +4450,19 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
3899
4450
|
async listBundleWorkflowCandidates(wid) {
|
|
3900
4451
|
return this.fetch(bundlesPath(wid, "workflow-candidates"));
|
|
3901
4452
|
}
|
|
4453
|
+
/**
|
|
4454
|
+
* The Bundles of this workspace that hold a Workflow, and what of the
|
|
4455
|
+
* Workflow's draft a Bundle cannot carry (`issues`, `problems`: the check a
|
|
4456
|
+
* Bundle runs when it adds or publishes the Workflow, run on its draft for
|
|
4457
|
+
* the acting Member). A Bundle's draft is listed only for
|
|
4458
|
+
* `workflows:admin`. Requires `workflows:read` and read access to the
|
|
4459
|
+
* Workflow; 404 otherwise.
|
|
4460
|
+
*/
|
|
4461
|
+
async getWorkflowBundleMembership(wid, workflowUuid) {
|
|
4462
|
+
return this.fetch(
|
|
4463
|
+
bundlesPath(wid, "workflow-membership", workflowUuid)
|
|
4464
|
+
);
|
|
4465
|
+
}
|
|
3902
4466
|
/**
|
|
3903
4467
|
* This workspace's Journeys for the Bundle picker, by name. Nothing is built
|
|
3904
4468
|
* for the list. `available` is false while the server refuses Journey items.
|
|
@@ -3909,11 +4473,11 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
3909
4473
|
}
|
|
3910
4474
|
/**
|
|
3911
4475
|
* One Journey as the Bundle item that adds it: the whole Journey item the
|
|
3912
|
-
* server built (`item`), the Forms
|
|
4476
|
+
* server built (`item`) with who enters it, the Forms it reads, the saved
|
|
4477
|
+
* Member filters its conditions use (`filters`) and the Workflows its
|
|
3913
4478
|
* actions start, or the `problems` that name what the Journey must change
|
|
3914
|
-
* first.
|
|
3915
|
-
*
|
|
3916
|
-
* `workflows:admin` and `journeys:write`.
|
|
4479
|
+
* first. Requires `workflows:admin` and `journeys:write`; listing a saved
|
|
4480
|
+
* filter also takes `members:read`.
|
|
3917
4481
|
*/
|
|
3918
4482
|
async getBundleJourneyCandidate(wid, journeyUuid) {
|
|
3919
4483
|
return this.fetch(
|
|
@@ -3947,7 +4511,28 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
3947
4511
|
body: JSON.stringify(data)
|
|
3948
4512
|
});
|
|
3949
4513
|
}
|
|
3950
|
-
/**
|
|
4514
|
+
/**
|
|
4515
|
+
* What publishing the saved draft now would put in the next version: each
|
|
4516
|
+
* draft item as `ready`, `held` (stays as the last published version had
|
|
4517
|
+
* it) or `blocked`, with a closed `reason`; how each differs
|
|
4518
|
+
* from the last published version, a Workflow's revision before and after;
|
|
4519
|
+
* and the `planToken` to pass as `expectedPlan` on publish. 409 when
|
|
4520
|
+
* `expectedGeneration` is stale. Requires `workflows:admin`.
|
|
4521
|
+
*/
|
|
4522
|
+
async getBundlePublishPreview(wid, bundleUuid, expectedGeneration) {
|
|
4523
|
+
const query2 = new URLSearchParams({ expectedGeneration: String(expectedGeneration) });
|
|
4524
|
+
return this.fetch(
|
|
4525
|
+
`${bundlesPath(wid, bundleUuid, "publish-preview")}?${query2.toString()}`
|
|
4526
|
+
);
|
|
4527
|
+
}
|
|
4528
|
+
/**
|
|
4529
|
+
* Cut a new immutable version from the draft: every Workflow's newest
|
|
4530
|
+
* published revision and every other item as its source is now. 409 when
|
|
4531
|
+
* `expectedGeneration` is stale, when `expectedPlan` no longer matches the
|
|
4532
|
+
* preview (`bundle_publish_plan_changed`), or when the version would carry
|
|
4533
|
+
* exactly what the last one carries, with no example scenarios on either
|
|
4534
|
+
* (`bundle_version_unchanged`).
|
|
4535
|
+
*/
|
|
3951
4536
|
async publishBundle(wid, bundleUuid, data) {
|
|
3952
4537
|
return this.fetch(bundlesPath(wid, bundleUuid, "publish"), {
|
|
3953
4538
|
method: "POST",
|
|
@@ -4033,10 +4618,15 @@ var InstallationsApi = class extends BaseApiClient {
|
|
|
4033
4618
|
* Open slots, bindings whose target no longer resolves, Forms that drifted
|
|
4034
4619
|
* from their recipe, missing or changed Workflow dependencies, and archived
|
|
4035
4620
|
* items. Computed on read, never stored.
|
|
4621
|
+
*
|
|
4622
|
+
* With `verifyProvider`, also reads each linked number's live callbacks from
|
|
4623
|
+
* the phone provider, bounded and read-only; this needs `phones:read` too. A
|
|
4624
|
+
* failed provider read comes back `unverified`, never `configured`.
|
|
4036
4625
|
*/
|
|
4037
|
-
async getInstallationReadiness(wid, installationUuid) {
|
|
4626
|
+
async getInstallationReadiness(wid, installationUuid, options = {}) {
|
|
4627
|
+
const path = installationsPath(wid, installationUuid, "readiness");
|
|
4038
4628
|
return this.fetch(
|
|
4039
|
-
|
|
4629
|
+
options.verifyProvider ? `${path}?verifyProvider=true` : path
|
|
4040
4630
|
);
|
|
4041
4631
|
}
|
|
4042
4632
|
/**
|
|
@@ -4091,7 +4681,23 @@ var InstallationsApi = class extends BaseApiClient {
|
|
|
4091
4681
|
{ method: "POST", body: JSON.stringify({}) }
|
|
4092
4682
|
);
|
|
4093
4683
|
}
|
|
4094
|
-
/**
|
|
4684
|
+
/**
|
|
4685
|
+
* The installation's per-workspace Ability settings and their values. A value
|
|
4686
|
+
* is returned only from an installed Workflow the caller may read the
|
|
4687
|
+
* Abilities of (`agents:read` and Workflow use); otherwise it is `null`.
|
|
4688
|
+
*/
|
|
4689
|
+
async getInstallationAbilitySettings(wid, installationUuid) {
|
|
4690
|
+
return this.fetch(
|
|
4691
|
+
installationsPath(wid, installationUuid, "ability-settings")
|
|
4692
|
+
);
|
|
4693
|
+
}
|
|
4694
|
+
/**
|
|
4695
|
+
* Fill open slots. A slot that already carries a target is refused with 409,
|
|
4696
|
+
* except one sent with `replace: true` that is a local setting of the
|
|
4697
|
+
* installation: a per-workspace Ability setting or a shared install field,
|
|
4698
|
+
* whose new value replaces the held one on every setting it fills, a
|
|
4699
|
+
* Workflow's Inbox or phone number, a recording, or a routing endpoint.
|
|
4700
|
+
*/
|
|
4095
4701
|
async bindInstallationSlots(wid, installationUuid, data) {
|
|
4096
4702
|
return this.fetch(
|
|
4097
4703
|
installationsPath(wid, installationUuid, "bindings"),
|
|
@@ -4245,6 +4851,27 @@ var AgentTasksApi = class extends BaseApiClient {
|
|
|
4245
4851
|
|
|
4246
4852
|
// src/api/agents.ts
|
|
4247
4853
|
var AgentsApi = class extends BaseApiClient {
|
|
4854
|
+
orgAgentJobsPath(orgUuid, agentUuid) {
|
|
4855
|
+
return `o/${encodeURIComponent(orgUuid)}/agents/${encodeURIComponent(agentUuid)}/jobs`;
|
|
4856
|
+
}
|
|
4857
|
+
/** List the current organization's teammate's operational Agent Jobs. */
|
|
4858
|
+
async getOrgAgentJobs(orgUuid, agentUuid, options = {}) {
|
|
4859
|
+
const params = new URLSearchParams();
|
|
4860
|
+
if (options.before) params.set("before", options.before);
|
|
4861
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
4862
|
+
if (options.status) params.set("status", options.status);
|
|
4863
|
+
const search = params.toString();
|
|
4864
|
+
return this.fetch(
|
|
4865
|
+
`${this.orgAgentJobsPath(orgUuid, agentUuid)}${search ? `?${search}` : ""}`
|
|
4866
|
+
);
|
|
4867
|
+
}
|
|
4868
|
+
/** Stop one of the current teammate's Jobs and its active descendants. */
|
|
4869
|
+
async stopOrgAgentJob(orgUuid, agentUuid, jobUuid) {
|
|
4870
|
+
return this.fetch(
|
|
4871
|
+
`${this.orgAgentJobsPath(orgUuid, agentUuid)}/${encodeURIComponent(jobUuid)}/stop`,
|
|
4872
|
+
{ method: "POST", body: JSON.stringify({}) }
|
|
4873
|
+
);
|
|
4874
|
+
}
|
|
4248
4875
|
/** List agents in a workspace with optional pagination, sorting, and search. */
|
|
4249
4876
|
async getAgents(wid, options = {}) {
|
|
4250
4877
|
const params = new URLSearchParams();
|
|
@@ -4676,6 +5303,19 @@ var AuthApi = class extends BaseApiClient {
|
|
|
4676
5303
|
body: JSON.stringify(info)
|
|
4677
5304
|
});
|
|
4678
5305
|
}
|
|
5306
|
+
/**
|
|
5307
|
+
* Set the account's face: an icon, a colour, or an uploaded image.
|
|
5308
|
+
*
|
|
5309
|
+
* Only the fields sent are applied, so a picker can change the colour
|
|
5310
|
+
* without touching the icon. Sending `icon` or `color` clears an uploaded
|
|
5311
|
+
* image; sending an image clears the explicit pick.
|
|
5312
|
+
*/
|
|
5313
|
+
async updateMemberAvatar(request) {
|
|
5314
|
+
return this.fetch("account/avatar", {
|
|
5315
|
+
method: "PUT",
|
|
5316
|
+
body: JSON.stringify(request)
|
|
5317
|
+
});
|
|
5318
|
+
}
|
|
4679
5319
|
/**
|
|
4680
5320
|
* Persist the account's FIRST-touch marketing attribution (write-once).
|
|
4681
5321
|
*
|
|
@@ -5247,7 +5887,9 @@ var CalendarsApi = class extends BaseApiClient {
|
|
|
5247
5887
|
body: JSON.stringify({ cancellationReason: reason })
|
|
5248
5888
|
});
|
|
5249
5889
|
}
|
|
5250
|
-
/** Delete
|
|
5890
|
+
/** Delete the local event. Native Google bookings return PENDING or FAILED
|
|
5891
|
+
* until provider removal is confirmed. Null is not a provider-removal receipt.
|
|
5892
|
+
*/
|
|
5251
5893
|
async deleteCalendarEvent(wid, eventId) {
|
|
5252
5894
|
return this.fetch(`w/${wid}/calendar-events/${eventId}`, {
|
|
5253
5895
|
method: "DELETE"
|
|
@@ -5435,8 +6077,61 @@ var CELApi = class extends BaseApiClient {
|
|
|
5435
6077
|
}
|
|
5436
6078
|
};
|
|
5437
6079
|
|
|
6080
|
+
// src/api/chat.ts
|
|
6081
|
+
var ChatApi = class {
|
|
6082
|
+
constructor(scope, request) {
|
|
6083
|
+
this.request = request;
|
|
6084
|
+
this.base = `w/${encodeURIComponent(scope.scopeUuid)}/chats`;
|
|
6085
|
+
this.testMemberId = scope.testMemberId;
|
|
6086
|
+
}
|
|
6087
|
+
request;
|
|
6088
|
+
base;
|
|
6089
|
+
testMemberId;
|
|
6090
|
+
path(chat, suffix2 = "", params = new URLSearchParams()) {
|
|
6091
|
+
if (this.testMemberId !== void 0) params.set("test_member_id", String(this.testMemberId));
|
|
6092
|
+
return `${this.base}${chat === void 0 ? "" : `/${encodeURIComponent(chat)}`}${suffix2}${params.size ? `?${params}` : ""}`;
|
|
6093
|
+
}
|
|
6094
|
+
snapshot(chat, options = {}) {
|
|
6095
|
+
const params = new URLSearchParams();
|
|
6096
|
+
if (options.before !== void 0) params.set("before", String(options.before));
|
|
6097
|
+
if (options.cursor) params.set("cursor", options.cursor);
|
|
6098
|
+
return this.request(this.path(chat, "/snapshot", params), {
|
|
6099
|
+
cache: "no-store",
|
|
6100
|
+
signal: options.signal
|
|
6101
|
+
});
|
|
6102
|
+
}
|
|
6103
|
+
create(body) {
|
|
6104
|
+
return this.request(this.path(), { method: "POST", body: JSON.stringify(body) });
|
|
6105
|
+
}
|
|
6106
|
+
send(chat, body) {
|
|
6107
|
+
return this.request(this.path(chat, "/input"), {
|
|
6108
|
+
method: "POST",
|
|
6109
|
+
body: JSON.stringify(body)
|
|
6110
|
+
});
|
|
6111
|
+
}
|
|
6112
|
+
respond(chat, body) {
|
|
6113
|
+
return this.request(this.path(chat, "/responses"), {
|
|
6114
|
+
method: "POST",
|
|
6115
|
+
body: JSON.stringify(body)
|
|
6116
|
+
});
|
|
6117
|
+
}
|
|
6118
|
+
stop(chat, body) {
|
|
6119
|
+
return this.request(this.path(chat, "/stop"), {
|
|
6120
|
+
method: "POST",
|
|
6121
|
+
body: JSON.stringify(body)
|
|
6122
|
+
});
|
|
6123
|
+
}
|
|
6124
|
+
};
|
|
6125
|
+
|
|
5438
6126
|
// src/api/chats.ts
|
|
5439
6127
|
var ChatsApi = class extends BaseApiClient {
|
|
6128
|
+
/** Bind the Chat lifecycle API to its authority base once. */
|
|
6129
|
+
chat(scope) {
|
|
6130
|
+
return new ChatApi(
|
|
6131
|
+
scope,
|
|
6132
|
+
(path, options) => this.fetch(path, options)
|
|
6133
|
+
);
|
|
6134
|
+
}
|
|
5440
6135
|
/**
|
|
5441
6136
|
* Build URLSearchParams from GetChatsOptions.
|
|
5442
6137
|
* Excludes pagination params when includePagination is false.
|
|
@@ -5495,10 +6190,31 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
5495
6190
|
return response.blob();
|
|
5496
6191
|
}
|
|
5497
6192
|
/** Export a single chat in the specified format as a downloadable blob. */
|
|
5498
|
-
async exportChat(wid, chatId, format = "jsonl") {
|
|
5499
|
-
const
|
|
6193
|
+
async exportChat(wid, chatId, format = "jsonl", options) {
|
|
6194
|
+
const params = new URLSearchParams({ format });
|
|
6195
|
+
if (options?.includeStaffNotes) params.append("includeStaffNotes", "true");
|
|
6196
|
+
const response = await this.fetchRaw(`w/${wid}/chats/${chatId}/export?${params.toString()}`);
|
|
5500
6197
|
return response.blob();
|
|
5501
6198
|
}
|
|
6199
|
+
/** Staff notes on a chat, oldest first (the newest `limit`). Requires
|
|
6200
|
+
* access to the chat and `chats:admin`. Notes are never delivered. */
|
|
6201
|
+
async listChatStaffNotes(wid, chatId, options) {
|
|
6202
|
+
const params = new URLSearchParams();
|
|
6203
|
+
if (options?.limit) params.append("limit", options.limit.toString());
|
|
6204
|
+
if (options?.before) params.append("before", options.before);
|
|
6205
|
+
const query2 = params.toString();
|
|
6206
|
+
return this.fetch(
|
|
6207
|
+
`w/${wid}/chats/${chatId}/notes${query2 ? `?${query2}` : ""}`
|
|
6208
|
+
);
|
|
6209
|
+
}
|
|
6210
|
+
/** Write a staff note on a chat. Append-only; nothing is sent to anyone,
|
|
6211
|
+
* and no Agent turn starts. Requires access to the chat and `chats:admin`. */
|
|
6212
|
+
async createChatStaffNote(wid, chatId, body) {
|
|
6213
|
+
return this.fetch(`w/${wid}/chats/${chatId}/notes`, {
|
|
6214
|
+
method: "POST",
|
|
6215
|
+
body: JSON.stringify(body)
|
|
6216
|
+
});
|
|
6217
|
+
}
|
|
5502
6218
|
/** Get a single chat by ID. */
|
|
5503
6219
|
async getChat(wid, id) {
|
|
5504
6220
|
return this.fetch(`w/${wid}/chats/${id}`);
|
|
@@ -5610,6 +6326,21 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
5610
6326
|
`w/${wid}/chats/${chatId}/inline-connect/${encodeURIComponent(appSlug)}/link`
|
|
5611
6327
|
);
|
|
5612
6328
|
}
|
|
6329
|
+
/**
|
|
6330
|
+
* Send or discard a message the Manager proposed in a chat.
|
|
6331
|
+
*
|
|
6332
|
+
* A `proposed_message` prompt (`UiPromptPresented.proposedMessage`) is a
|
|
6333
|
+
* draft: nothing was sent and the chat did not pause. `decision: 'send'`
|
|
6334
|
+
* runs the drafted call, with `body` / `subject` replacing the draft's
|
|
6335
|
+
* text when set; `'discard'` drops it. A send that the provider refuses is
|
|
6336
|
+
* a 200 with `status: 'failed'`. 409 when it was already settled.
|
|
6337
|
+
*/
|
|
6338
|
+
async decideProposedMessage(wid, chatId, promptId, request) {
|
|
6339
|
+
return this.fetch(
|
|
6340
|
+
`w/${wid}/chats/${chatId}/proposed-messages/${encodeURIComponent(promptId)}/decision`,
|
|
6341
|
+
{ method: "POST", body: JSON.stringify(request) }
|
|
6342
|
+
);
|
|
6343
|
+
}
|
|
5613
6344
|
/** Get loaded and revealed skills for a chat. */
|
|
5614
6345
|
async getChatSkills(wid, chatId) {
|
|
5615
6346
|
return this.fetch(`w/${wid}/chats/${chatId}/skills`);
|
|
@@ -5816,7 +6547,7 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
5816
6547
|
);
|
|
5817
6548
|
}
|
|
5818
6549
|
/**
|
|
5819
|
-
* Rate a chat message by its
|
|
6550
|
+
* Rate a chat message by its `id` (message ID), not its `uuid`.
|
|
5820
6551
|
* Optional ``comment`` updates free-text details on the same durable rating row.
|
|
5821
6552
|
*/
|
|
5822
6553
|
async rateMessage(wid, chatId, messageUuid, rating, comment) {
|
|
@@ -5897,7 +6628,7 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
5897
6628
|
method: "DELETE"
|
|
5898
6629
|
});
|
|
5899
6630
|
}
|
|
5900
|
-
/** Get distinct tool call names used
|
|
6631
|
+
/** Get distinct tool call names used in the chats the caller may receive. */
|
|
5901
6632
|
async getToolCallNames(wid) {
|
|
5902
6633
|
return this.fetch(`w/${wid}/chats/tool-call-names`);
|
|
5903
6634
|
}
|
|
@@ -6214,24 +6945,6 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
6214
6945
|
}
|
|
6215
6946
|
return await response.json();
|
|
6216
6947
|
}
|
|
6217
|
-
/** Read the local Form's draft and optimistic publication counters. */
|
|
6218
|
-
async getDataTypeDraft(wid, id) {
|
|
6219
|
-
return this.fetch(`w/${wid}/data-types/${id}/schema-draft`);
|
|
6220
|
-
}
|
|
6221
|
-
/** Save a draft without changing the schema used to validate live records. */
|
|
6222
|
-
async saveDataTypeDraft(wid, id, request) {
|
|
6223
|
-
return this.fetch(`w/${wid}/data-types/${id}/schema-draft`, {
|
|
6224
|
-
method: "PUT",
|
|
6225
|
-
body: JSON.stringify(request)
|
|
6226
|
-
});
|
|
6227
|
-
}
|
|
6228
|
-
/** Publish the expected draft as the next immutable local schema version. */
|
|
6229
|
-
async publishDataTypeDraft(wid, id, request) {
|
|
6230
|
-
return this.fetch(`w/${wid}/data-types/${id}/schema-publish`, {
|
|
6231
|
-
method: "POST",
|
|
6232
|
-
body: JSON.stringify(request)
|
|
6233
|
-
});
|
|
6234
|
-
}
|
|
6235
6948
|
/** List schema history newest first; use the last version as the next cursor. */
|
|
6236
6949
|
async getDataTypeVersions(wid, id, options) {
|
|
6237
6950
|
const params = new URLSearchParams();
|
|
@@ -6323,6 +7036,16 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
6323
7036
|
`w/${wid}/data-types/${dataTypeId}/records${params?.toString() ? `?${params.toString()}` : ""}`
|
|
6324
7037
|
);
|
|
6325
7038
|
}
|
|
7039
|
+
/**
|
|
7040
|
+
* The record a Workspace Fields Form's templates read: the newest shared,
|
|
7041
|
+
* non-eval, non-retired record, or `null` before the first save. The
|
|
7042
|
+
* Values tab edits this record. Requires `records:read`.
|
|
7043
|
+
*/
|
|
7044
|
+
async getWorkspaceValuesRecord(wid, dataTypeId) {
|
|
7045
|
+
return this.fetch(
|
|
7046
|
+
`w/${wid}/data-types/${dataTypeId}/workspace-values`
|
|
7047
|
+
);
|
|
7048
|
+
}
|
|
6326
7049
|
/**
|
|
6327
7050
|
* List an anonymous Form's submissions, newest first. Requires
|
|
6328
7051
|
* `anonymous_submissions:read`. Submissions are immutable: there is no
|
|
@@ -6854,6 +7577,16 @@ var TeamsAppsApi = class extends BaseApiClient {
|
|
|
6854
7577
|
`w/${wid}/app-connections/teams/apps/${appId}/installations${params.toString() ? `?${params.toString()}` : ""}`
|
|
6855
7578
|
);
|
|
6856
7579
|
}
|
|
7580
|
+
/**
|
|
7581
|
+
* Channels this app has observed, for approval on its settings form.
|
|
7582
|
+
* Approval is saved through `updateTeamsApp`
|
|
7583
|
+
* (`approvedNotificationDestinationIds`); observation approves nothing.
|
|
7584
|
+
*/
|
|
7585
|
+
async getTeamsNotificationDestinations(wid, appId) {
|
|
7586
|
+
return this.fetch(
|
|
7587
|
+
`w/${wid}/app-connections/teams/apps/${appId}/notification-destinations`
|
|
7588
|
+
);
|
|
7589
|
+
}
|
|
6857
7590
|
async getTeamsAppAccounts(wid, appId, options = {}) {
|
|
6858
7591
|
const params = new URLSearchParams();
|
|
6859
7592
|
if (options.page) params.append("page", options.page.toString());
|
|
@@ -6875,6 +7608,10 @@ var EventsApi = class extends BaseApiClient {
|
|
|
6875
7608
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6876
7609
|
return this.fetch(`w/${wid}/event-rules${qs}`);
|
|
6877
7610
|
}
|
|
7611
|
+
/** Complete directory identity/state without Action or trigger payloads. */
|
|
7612
|
+
async getEventRuleIndex(wid) {
|
|
7613
|
+
return this.fetch(`w/${wid}/event-rules/index`);
|
|
7614
|
+
}
|
|
6878
7615
|
/** Get the available action types that can be used in event rules. */
|
|
6879
7616
|
async getAvailableActions(wid) {
|
|
6880
7617
|
return this.fetch(`w/${wid}/event-rules/actions/available`);
|
|
@@ -7048,6 +7785,10 @@ var EventsApi = class extends BaseApiClient {
|
|
|
7048
7785
|
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
7049
7786
|
if (options.routineId) params.append("routineId", options.routineId.toString());
|
|
7050
7787
|
if (options.status) params.append("status", options.status);
|
|
7788
|
+
if (options.runId) params.append("runId", String(options.runId));
|
|
7789
|
+
if (options.parentRunId) params.append("parentRunId", String(options.parentRunId));
|
|
7790
|
+
if (options.dispatchKey) params.append("dispatchKey", options.dispatchKey);
|
|
7791
|
+
if (options.rootsOnly) params.append("rootsOnly", "true");
|
|
7051
7792
|
return this.fetch(
|
|
7052
7793
|
`w/${wid}/routines/runs?${params.toString()}`
|
|
7053
7794
|
);
|
|
@@ -7659,6 +8400,16 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
7659
8400
|
`w/${wid}/app-connections/healthie/reconciliation/matches${qs}`
|
|
7660
8401
|
);
|
|
7661
8402
|
}
|
|
8403
|
+
/** Propose a Member for each unlinked patient on synced Healthie calendars. */
|
|
8404
|
+
async getHealthieAppointmentPatientMatches(wid, params) {
|
|
8405
|
+
const query2 = new URLSearchParams();
|
|
8406
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
8407
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
8408
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8409
|
+
return this.fetch(
|
|
8410
|
+
`w/${wid}/app-connections/healthie/reconciliation/appointment-matches${qs}`
|
|
8411
|
+
);
|
|
8412
|
+
}
|
|
7662
8413
|
async linkMemberToHealthie(wid, data) {
|
|
7663
8414
|
return this.fetch(`w/${wid}/app-connections/healthie/reconciliation/link`, {
|
|
7664
8415
|
method: "POST",
|
|
@@ -7711,7 +8462,7 @@ var FilesApi = class extends BaseApiClient {
|
|
|
7711
8462
|
/** List files in a workspace with optional folder filtering, sorting, and search. */
|
|
7712
8463
|
async getFiles(wid, options = {}) {
|
|
7713
8464
|
const params = new URLSearchParams();
|
|
7714
|
-
if (options.folderId) params.append("folder_id", options.folderId.toString());
|
|
8465
|
+
if (options.folderId != null) params.append("folder_id", options.folderId.toString());
|
|
7715
8466
|
if (options.page) params.append("page", options.page.toString());
|
|
7716
8467
|
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
7717
8468
|
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
@@ -7917,11 +8668,15 @@ var FilesApi = class extends BaseApiClient {
|
|
|
7917
8668
|
method: "POST"
|
|
7918
8669
|
});
|
|
7919
8670
|
}
|
|
7920
|
-
/** Search for content within a folder using semantic search. */
|
|
8671
|
+
/** Search for content within a folder, or across its whole drive, using semantic search. */
|
|
7921
8672
|
async searchFolder(wid, id, params) {
|
|
7922
8673
|
const searchParams = new URLSearchParams();
|
|
7923
8674
|
searchParams.append("query", params.query);
|
|
7924
8675
|
if (params.topK) searchParams.append("top_k", params.topK.toString());
|
|
8676
|
+
if (params.allFiles) searchParams.append("all_files", "true");
|
|
8677
|
+
if (params.rootFolderId) {
|
|
8678
|
+
searchParams.append("root_folder_id", params.rootFolderId.toString());
|
|
8679
|
+
}
|
|
7925
8680
|
return this.fetch(
|
|
7926
8681
|
`w/${wid}/folders/${id}/search?${searchParams.toString()}`
|
|
7927
8682
|
);
|
|
@@ -8325,7 +9080,9 @@ var InquiriesApi = class extends BaseApiClient {
|
|
|
8325
9080
|
const searchParams = new URLSearchParams();
|
|
8326
9081
|
if (params?.page) searchParams.append("page", params.page.toString());
|
|
8327
9082
|
if (params?.pageSize) searchParams.append("page_size", params.pageSize.toString());
|
|
8328
|
-
|
|
9083
|
+
const types = typeof params?.inquiryType === "string" ? [params.inquiryType] : params?.inquiryType;
|
|
9084
|
+
types?.filter(Boolean).forEach((type) => searchParams.append("inquiry_type", type));
|
|
9085
|
+
params?.statuses?.forEach((status) => searchParams.append("status", status));
|
|
8329
9086
|
const queryString = searchParams.toString();
|
|
8330
9087
|
const url = queryString ? `inquiries?${queryString}` : "inquiries";
|
|
8331
9088
|
return this.fetch(url);
|
|
@@ -8579,7 +9336,7 @@ var MemberImportValidationError = class extends Error {
|
|
|
8579
9336
|
this.validationErrors = validationErrors;
|
|
8580
9337
|
}
|
|
8581
9338
|
};
|
|
8582
|
-
function throwMemberImportError(errorBody, fallback) {
|
|
9339
|
+
function throwMemberImportError(errorBody, fallback, statusCode) {
|
|
8583
9340
|
let detail = errorBody?.detail;
|
|
8584
9341
|
if (typeof detail === "string") {
|
|
8585
9342
|
try {
|
|
@@ -8589,12 +9346,13 @@ function throwMemberImportError(errorBody, fallback) {
|
|
|
8589
9346
|
}
|
|
8590
9347
|
}
|
|
8591
9348
|
if (detail && typeof detail === "object") {
|
|
8592
|
-
const { message, errors } = detail;
|
|
9349
|
+
const { message: message2, errors } = detail;
|
|
8593
9350
|
if (Array.isArray(errors)) {
|
|
8594
|
-
throw new MemberImportValidationError(
|
|
9351
|
+
throw new MemberImportValidationError(message2 || fallback, errors);
|
|
8595
9352
|
}
|
|
8596
9353
|
}
|
|
8597
|
-
|
|
9354
|
+
const message = typeof detail === "string" ? detail : fallback;
|
|
9355
|
+
throw statusCode === void 0 ? new Error(message) : new ApiError(message, statusCode);
|
|
8598
9356
|
}
|
|
8599
9357
|
function memberImportUpload(file, roleId, options) {
|
|
8600
9358
|
const body = new FormData();
|
|
@@ -8609,6 +9367,39 @@ function memberImportUpload(file, roleId, options) {
|
|
|
8609
9367
|
}
|
|
8610
9368
|
return { body, params };
|
|
8611
9369
|
}
|
|
9370
|
+
function parseMemberImportSseFrames(buffer) {
|
|
9371
|
+
const held = buffer.endsWith("\r") ? "\r" : "";
|
|
9372
|
+
const text = (held ? buffer.slice(0, -1) : buffer).replace(/\r\n?/g, "\n");
|
|
9373
|
+
const frames = text.split("\n\n");
|
|
9374
|
+
const rest = (frames.pop() ?? "") + held;
|
|
9375
|
+
const payloads = [];
|
|
9376
|
+
for (const frame of frames) {
|
|
9377
|
+
const data = [];
|
|
9378
|
+
for (const line of frame.split("\n")) {
|
|
9379
|
+
if (!line || line.startsWith(":")) continue;
|
|
9380
|
+
const colon = line.indexOf(":");
|
|
9381
|
+
if ((colon === -1 ? line : line.slice(0, colon)) !== "data") continue;
|
|
9382
|
+
const value = colon === -1 ? "" : line.slice(colon + 1);
|
|
9383
|
+
data.push(value.startsWith(" ") ? value.slice(1) : value);
|
|
9384
|
+
}
|
|
9385
|
+
if (data.length) payloads.push(data.join("\n"));
|
|
9386
|
+
}
|
|
9387
|
+
return { payloads, rest };
|
|
9388
|
+
}
|
|
9389
|
+
function toMemberImportRunEvent(payload) {
|
|
9390
|
+
if (!payload || typeof payload !== "object" || Array.isArray(payload)) return null;
|
|
9391
|
+
const event = payload;
|
|
9392
|
+
if (event.type === "import_run") {
|
|
9393
|
+
return typeof event.runId === "string" && typeof event.status === "string" ? event : null;
|
|
9394
|
+
}
|
|
9395
|
+
if (event.type === "import_item") {
|
|
9396
|
+
return typeof event.runId === "string" && typeof event.status === "string" && Number.isInteger(event.index) ? event : null;
|
|
9397
|
+
}
|
|
9398
|
+
if (event.type === "done") {
|
|
9399
|
+
return typeof event.runId === "string" ? event : null;
|
|
9400
|
+
}
|
|
9401
|
+
return "unrecognized";
|
|
9402
|
+
}
|
|
8612
9403
|
var MembersApi = class extends BaseApiClient {
|
|
8613
9404
|
memberImportPlans = /* @__PURE__ */ new WeakMap();
|
|
8614
9405
|
/** Get the currently authenticated member for a workspace. */
|
|
@@ -8698,6 +9489,9 @@ var MembersApi = class extends BaseApiClient {
|
|
|
8698
9489
|
}
|
|
8699
9490
|
return this.fetch(`w/${wid}/members?${params.toString()}`);
|
|
8700
9491
|
}
|
|
9492
|
+
async getMemberSmsSenders(wid, memberId) {
|
|
9493
|
+
return this.fetch(`w/${wid}/members/${memberId}/sms-senders`);
|
|
9494
|
+
}
|
|
8701
9495
|
/** Get a single workspace member by ID. */
|
|
8702
9496
|
async getWorkspaceMember(wid, memberId) {
|
|
8703
9497
|
return this.fetch(`w/${wid}/members/${memberId}`);
|
|
@@ -9050,6 +9844,130 @@ var MembersApi = class extends BaseApiClient {
|
|
|
9050
9844
|
result
|
|
9051
9845
|
};
|
|
9052
9846
|
}
|
|
9847
|
+
/**
|
|
9848
|
+
* Start a durable members CSV import (`POST /members/import/runs`) and read
|
|
9849
|
+
* its progress stream.
|
|
9850
|
+
*
|
|
9851
|
+
* The server stores the upload and `options.resolutions` as an artifact and
|
|
9852
|
+
* a Temporal workflow owns the import, so the run continues whatever happens
|
|
9853
|
+
* to this stream. `onEvent` receives each `import_run` / `import_item` /
|
|
9854
|
+
* `done` event as it is parsed; the first `import_run` carries the run id,
|
|
9855
|
+
* delivered before any later event is read.
|
|
9856
|
+
*
|
|
9857
|
+
* Unlike `importMembers`, this never previews implicitly: it sends exactly
|
|
9858
|
+
* the `previewPlanToken` supplied (or none) and never consults or refreshes
|
|
9859
|
+
* the preview cache. It never retries the POST. A non-2xx response throws:
|
|
9860
|
+
* `MemberImportValidationError` for structured validation details, otherwise
|
|
9861
|
+
* an `ApiError` carrying the status (409 means another import is already
|
|
9862
|
+
* running for the workspace). A stream that ends, fails or carries an
|
|
9863
|
+
* unreadable event before its `done` resolves as `incomplete` with whatever
|
|
9864
|
+
* run id was seen; an exception thrown by `onEvent` propagates.
|
|
9865
|
+
*
|
|
9866
|
+
* `streamStatus` reports the stream, not the import: read the run's
|
|
9867
|
+
* `status` and counters (`completed_with_errors` and `failed` are terminal
|
|
9868
|
+
* too), or `listMemberImportRuns`, for the outcome.
|
|
9869
|
+
*/
|
|
9870
|
+
async startMemberImportRun(wid, file, newMemberRoleId, options, onEvent) {
|
|
9871
|
+
const { body, params } = memberImportUpload(file, newMemberRoleId, options);
|
|
9872
|
+
if (options?.previewPlanToken) body.append("previewPlanToken", options.previewPlanToken);
|
|
9873
|
+
if (options?.identityConflictPolicy) {
|
|
9874
|
+
params.set("identity_conflict_policy", options.identityConflictPolicy);
|
|
9875
|
+
}
|
|
9876
|
+
const response = await this.fetchRaw(
|
|
9877
|
+
`w/${wid}/members/import/runs?${params.toString()}`,
|
|
9878
|
+
{ method: "POST", body },
|
|
9879
|
+
[400, 413]
|
|
9880
|
+
);
|
|
9881
|
+
if (!response.ok) {
|
|
9882
|
+
const error = await response.json().catch(() => ({}));
|
|
9883
|
+
throwMemberImportError(error, "Import run start failed", response.status);
|
|
9884
|
+
}
|
|
9885
|
+
let runId = null;
|
|
9886
|
+
let latestRun = null;
|
|
9887
|
+
const incomplete = () => ({
|
|
9888
|
+
streamStatus: "incomplete",
|
|
9889
|
+
runId,
|
|
9890
|
+
latestRun
|
|
9891
|
+
});
|
|
9892
|
+
if (!response.body) return incomplete();
|
|
9893
|
+
const reader = response.body.getReader();
|
|
9894
|
+
const decoder = new TextDecoder();
|
|
9895
|
+
let buffer = "";
|
|
9896
|
+
let finished = false;
|
|
9897
|
+
const consume = (payload) => {
|
|
9898
|
+
if (payload.trim() === "[DONE]" || !payload.trim()) return "continue";
|
|
9899
|
+
let parsed;
|
|
9900
|
+
try {
|
|
9901
|
+
parsed = JSON.parse(payload);
|
|
9902
|
+
} catch {
|
|
9903
|
+
return "malformed";
|
|
9904
|
+
}
|
|
9905
|
+
const event = toMemberImportRunEvent(parsed);
|
|
9906
|
+
if (event === "unrecognized") return "continue";
|
|
9907
|
+
if (event === null) return "malformed";
|
|
9908
|
+
runId ??= event.runId;
|
|
9909
|
+
if (event.runId !== runId) return "malformed";
|
|
9910
|
+
if (event.type === "import_run") {
|
|
9911
|
+
const { type: _type, ...run } = event;
|
|
9912
|
+
latestRun = run;
|
|
9913
|
+
}
|
|
9914
|
+
onEvent?.(event);
|
|
9915
|
+
return event.type === "done" ? "done" : "continue";
|
|
9916
|
+
};
|
|
9917
|
+
try {
|
|
9918
|
+
while (!finished) {
|
|
9919
|
+
const chunk = await reader.read().catch(() => null);
|
|
9920
|
+
if (chunk === null) return incomplete();
|
|
9921
|
+
buffer += chunk.done ? decoder.decode() : decoder.decode(chunk.value, { stream: true });
|
|
9922
|
+
const { payloads, rest } = parseMemberImportSseFrames(
|
|
9923
|
+
chunk.done ? `${buffer}
|
|
9924
|
+
|
|
9925
|
+
` : buffer
|
|
9926
|
+
);
|
|
9927
|
+
buffer = rest;
|
|
9928
|
+
for (const payload of payloads) {
|
|
9929
|
+
const outcome = consume(payload);
|
|
9930
|
+
if (outcome === "malformed") return incomplete();
|
|
9931
|
+
if (outcome === "done") {
|
|
9932
|
+
finished = true;
|
|
9933
|
+
break;
|
|
9934
|
+
}
|
|
9935
|
+
}
|
|
9936
|
+
if (chunk.done) break;
|
|
9937
|
+
}
|
|
9938
|
+
} finally {
|
|
9939
|
+
await reader.cancel().catch(() => void 0);
|
|
9940
|
+
reader.releaseLock();
|
|
9941
|
+
}
|
|
9942
|
+
return finished ? { streamStatus: "complete", runId, latestRun } : incomplete();
|
|
9943
|
+
}
|
|
9944
|
+
/**
|
|
9945
|
+
* Recent durable member import runs, newest first, with their persisted
|
|
9946
|
+
* counters. The server returns at most 100 and has no pagination: a run
|
|
9947
|
+
* missing from the list is outside the inspected window, not absent.
|
|
9948
|
+
*/
|
|
9949
|
+
async listMemberImportRuns(wid, options) {
|
|
9950
|
+
const params = new URLSearchParams();
|
|
9951
|
+
if (options?.limit !== void 0) params.set("limit", String(options.limit));
|
|
9952
|
+
const query2 = params.toString();
|
|
9953
|
+
return this.fetch(
|
|
9954
|
+
`w/${wid}/members/import/runs${query2 ? `?${query2}` : ""}`
|
|
9955
|
+
);
|
|
9956
|
+
}
|
|
9957
|
+
/**
|
|
9958
|
+
* Per-row outcomes of one durable import run, a bounded sample (server
|
|
9959
|
+
* default 500, maximum 10,000, no cursor). `index` is the zero-based data
|
|
9960
|
+
* row of the uploaded CSV. Totals come from the run summary, never from
|
|
9961
|
+
* counting this list.
|
|
9962
|
+
*/
|
|
9963
|
+
async listMemberImportRunItems(wid, runId, options) {
|
|
9964
|
+
const params = new URLSearchParams();
|
|
9965
|
+
if (options?.limit !== void 0) params.set("limit", String(options.limit));
|
|
9966
|
+
const query2 = params.toString();
|
|
9967
|
+
return this.fetch(
|
|
9968
|
+
`w/${wid}/members/import/runs/${encodeURIComponent(runId)}/items${query2 ? `?${query2}` : ""}`
|
|
9969
|
+
);
|
|
9970
|
+
}
|
|
9053
9971
|
/** Export members as a downloadable file with selected fields and data types. */
|
|
9054
9972
|
async exportMembers(wid, selectedFields, selectedDataTypes, memberType) {
|
|
9055
9973
|
const params = new URLSearchParams();
|
|
@@ -9308,7 +10226,48 @@ var ActivityApi = class extends BaseApiClient {
|
|
|
9308
10226
|
});
|
|
9309
10227
|
}
|
|
9310
10228
|
/**
|
|
9311
|
-
*
|
|
10229
|
+
* The account mount's notification feed, newest first.
|
|
10230
|
+
*
|
|
10231
|
+
* `window` is required and the client keeps it fixed across pages — a
|
|
10232
|
+
* cursor is bound to the exact request that issued it. "This workspace" is
|
|
10233
|
+
* the same read with `scope.workspaceUuids = [wid]`; "All" omits `scope`.
|
|
10234
|
+
* There is no second authorization path: a workspace the caller may not see
|
|
10235
|
+
* stays in the narrowing and admits nothing of its own, so a UUID the caller
|
|
10236
|
+
* names can never widen the response.
|
|
10237
|
+
*/
|
|
10238
|
+
async queryActivityNotifications(request) {
|
|
10239
|
+
return this.fetch("activity/notifications", {
|
|
10240
|
+
method: "POST",
|
|
10241
|
+
body: JSON.stringify(request)
|
|
10242
|
+
});
|
|
10243
|
+
}
|
|
10244
|
+
/**
|
|
10245
|
+
* The bell's number for this account.
|
|
10246
|
+
*
|
|
10247
|
+
* A snapshot, not a page: no cursor, and the way to see more is to open the
|
|
10248
|
+
* feed. An omitted `window` uses the server's recent lookback.
|
|
10249
|
+
*/
|
|
10250
|
+
async getActivityNotificationCount(request = {}) {
|
|
10251
|
+
return this.fetch("activity/notifications/count", {
|
|
10252
|
+
method: "POST",
|
|
10253
|
+
body: JSON.stringify(request)
|
|
10254
|
+
});
|
|
10255
|
+
}
|
|
10256
|
+
/**
|
|
10257
|
+
* Mark presented occurrences read, or dismiss them.
|
|
10258
|
+
*
|
|
10259
|
+
* Additive and idempotent: a repeat applies the same keys without moving
|
|
10260
|
+
* their timestamps, and keys the caller may no longer see are skipped
|
|
10261
|
+
* silently. The response counts what was applied.
|
|
10262
|
+
*/
|
|
10263
|
+
async markActivityNotifications(request) {
|
|
10264
|
+
return this.fetch("activity/notifications/mark", {
|
|
10265
|
+
method: "POST",
|
|
10266
|
+
body: JSON.stringify(request)
|
|
10267
|
+
});
|
|
10268
|
+
}
|
|
10269
|
+
/**
|
|
10270
|
+
* What this caller's estate admits, so a client renders honest controls.
|
|
9312
10271
|
*
|
|
9313
10272
|
* Account mount only, and deliberately so: the org and workspace mounts
|
|
9314
10273
|
* answer the same question through the surfaces that already serve their
|
|
@@ -9614,6 +10573,24 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
9614
10573
|
body: JSON.stringify({ syncConfig })
|
|
9615
10574
|
});
|
|
9616
10575
|
}
|
|
10576
|
+
/**
|
|
10577
|
+
* Run every Monday save-time check that needs no save effect against
|
|
10578
|
+
* `syncConfig`, without saving: no configuration, webhook, Form or managed
|
|
10579
|
+
* rule changes and no sync run. The same route and body as
|
|
10580
|
+
* `updateMondaySyncConfig`, with `validateOnly=true`; a refused check is the
|
|
10581
|
+
* save's own 400/403. `notCheckedWithoutSave` names what only the save does
|
|
10582
|
+
* (including `webhook_reconcile`). Monday takes no base digest: a later save
|
|
10583
|
+
* does not detect a configuration changed since it was read.
|
|
10584
|
+
*/
|
|
10585
|
+
async validateMondaySyncConfig(wid, syncConfig) {
|
|
10586
|
+
return this.fetch(
|
|
10587
|
+
`w/${wid}/app-connections/monday/sync-config?validateOnly=true`,
|
|
10588
|
+
{
|
|
10589
|
+
method: "PUT",
|
|
10590
|
+
body: JSON.stringify({ syncConfig })
|
|
10591
|
+
}
|
|
10592
|
+
);
|
|
10593
|
+
}
|
|
9617
10594
|
async getLinkedMondayMembers(wid, params) {
|
|
9618
10595
|
const query2 = new URLSearchParams();
|
|
9619
10596
|
if (params?.board_id) query2.set("board_id", params.board_id);
|
|
@@ -9748,6 +10725,15 @@ var NotificationRulesApi = class extends BaseApiClient {
|
|
|
9748
10725
|
body: JSON.stringify(rule)
|
|
9749
10726
|
});
|
|
9750
10727
|
}
|
|
10728
|
+
/**
|
|
10729
|
+
* Approved, available shared destinations (Teams channels) a notification
|
|
10730
|
+
* rule or Action may name. Choosing one never grants approval.
|
|
10731
|
+
*/
|
|
10732
|
+
async getNotificationDestinations(wid) {
|
|
10733
|
+
return this.fetch(
|
|
10734
|
+
`w/${wid}/notification-destinations`
|
|
10735
|
+
);
|
|
10736
|
+
}
|
|
9751
10737
|
/** Delete a notification rule. */
|
|
9752
10738
|
async deleteNotificationRule(wid, ruleId) {
|
|
9753
10739
|
return this.fetch(`w/${wid}/notification-rules/${ruleId}`, {
|
|
@@ -9824,48 +10810,65 @@ var OperatorApi = class extends BaseApiClient {
|
|
|
9824
10810
|
};
|
|
9825
10811
|
|
|
9826
10812
|
// src/api/org.ts
|
|
9827
|
-
var
|
|
9828
|
-
|
|
9829
|
-
|
|
9830
|
-
|
|
9831
|
-
|
|
9832
|
-
|
|
9833
|
-
async createOrgManagerChat(org, title) {
|
|
9834
|
-
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats`, {
|
|
9835
|
-
method: "POST",
|
|
9836
|
-
body: JSON.stringify({ title })
|
|
9837
|
-
});
|
|
9838
|
-
}
|
|
9839
|
-
async authorizeOrgManagerDelegation(workspace, orgUuid, chatId, callId) {
|
|
9840
|
-
return this.fetch(`w/${encodeURIComponent(workspace)}/a2a/manager/delegation-credential`, {
|
|
9841
|
-
method: "POST",
|
|
9842
|
-
body: JSON.stringify({ orgUuid, chatId, callId }),
|
|
9843
|
-
cache: "no-store"
|
|
9844
|
-
});
|
|
9845
|
-
}
|
|
9846
|
-
async getOrgManagerCredentialResponse(org, chatId, deliveryId) {
|
|
9847
|
-
return this.fetch(
|
|
9848
|
-
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/credentials/${encodeURIComponent(deliveryId)}`,
|
|
9849
|
-
{ cache: "no-store" }
|
|
9850
|
-
);
|
|
9851
|
-
}
|
|
9852
|
-
async getOrgManagerMessages(org, chatId, before) {
|
|
9853
|
-
return this.fetch(
|
|
9854
|
-
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/messages${before ? `?before=${before}` : ""}`
|
|
10813
|
+
var OrgApiKeyLimitUnconfirmedError = class extends Error {
|
|
10814
|
+
keyId;
|
|
10815
|
+
revoked;
|
|
10816
|
+
constructor(keyId, revoked) {
|
|
10817
|
+
super(
|
|
10818
|
+
revoked ? `The server did not confirm the API key's workspace limit, so key ${keyId} was revoked. Try again.` : `The server did not confirm the API key's workspace limit, and revoking key ${keyId} could not be confirmed. Revoke it manually if it is still listed.`
|
|
9855
10819
|
);
|
|
10820
|
+
this.name = "OrgApiKeyLimitUnconfirmedError";
|
|
10821
|
+
this.keyId = keyId;
|
|
10822
|
+
this.revoked = revoked;
|
|
9856
10823
|
}
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
10824
|
+
};
|
|
10825
|
+
var OrgWebhookScopeUnconfirmedError = class extends Error {
|
|
10826
|
+
endpointUuid;
|
|
10827
|
+
operation;
|
|
10828
|
+
deleted;
|
|
10829
|
+
constructor(endpointUuid, operation, deleted) {
|
|
10830
|
+
super(
|
|
10831
|
+
operation === "update" ? `The server did not confirm the webhook endpoint's workspace scope after the update, and endpoint ${endpointUuid} was not changed back. Check its scope.` : deleted ? `The server did not confirm the webhook endpoint's workspace scope, so endpoint ${endpointUuid} was deleted. Try again.` : `The server did not confirm the webhook endpoint's workspace scope, and deleting endpoint ${endpointUuid} could not be confirmed. Delete it manually if it is still listed.`
|
|
10832
|
+
);
|
|
10833
|
+
this.name = "OrgWebhookScopeUnconfirmedError";
|
|
10834
|
+
this.endpointUuid = endpointUuid;
|
|
10835
|
+
this.operation = operation;
|
|
10836
|
+
this.deleted = operation === "create" && deleted;
|
|
9868
10837
|
}
|
|
10838
|
+
};
|
|
10839
|
+
function storedLabelSlug(value) {
|
|
10840
|
+
return value.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 64).replace(/-+$/, "");
|
|
10841
|
+
}
|
|
10842
|
+
function sameStringSet(left, right) {
|
|
10843
|
+
const a = new Set(left);
|
|
10844
|
+
const b = new Set(right);
|
|
10845
|
+
return a.size === b.size && [...a].every((value) => b.has(value));
|
|
10846
|
+
}
|
|
10847
|
+
function workspaceScopeConfirmed(requested, stored) {
|
|
10848
|
+
if (typeof stored !== "object" || stored === null) return false;
|
|
10849
|
+
const { mode, workspaceUuids, labelSelector } = stored;
|
|
10850
|
+
if (mode !== requested.mode) return false;
|
|
10851
|
+
if (!Array.isArray(workspaceUuids) || !Array.isArray(labelSelector)) return false;
|
|
10852
|
+
const storedUuids = [];
|
|
10853
|
+
for (const value of workspaceUuids) {
|
|
10854
|
+
if (typeof value !== "string") return false;
|
|
10855
|
+
storedUuids.push(value.trim().toLowerCase());
|
|
10856
|
+
}
|
|
10857
|
+
const storedSlugs = [];
|
|
10858
|
+
for (const label of labelSelector) {
|
|
10859
|
+
const slug = label?.slug;
|
|
10860
|
+
if (typeof slug !== "string") return false;
|
|
10861
|
+
storedSlugs.push(slug.toLowerCase());
|
|
10862
|
+
}
|
|
10863
|
+
const selected = requested.mode === "selected";
|
|
10864
|
+
const requestedUuids = selected ? requested.workspaceUuids ?? [] : [];
|
|
10865
|
+
const requestedSlugs = selected ? requested.labelSelector ?? [] : [];
|
|
10866
|
+
return sameStringSet(
|
|
10867
|
+
requestedUuids.map((value) => value.trim().toLowerCase()),
|
|
10868
|
+
storedUuids
|
|
10869
|
+
) && sameStringSet(requestedSlugs.map(storedLabelSlug), storedSlugs);
|
|
10870
|
+
}
|
|
10871
|
+
var OrgApi = class extends BaseApiClient {
|
|
9869
10872
|
/**
|
|
9870
10873
|
* Get organization by ID or UUID.
|
|
9871
10874
|
* Returns different response based on user's role:
|
|
@@ -10176,6 +11179,15 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10176
11179
|
body: JSON.stringify({ providerPhoneUuid })
|
|
10177
11180
|
});
|
|
10178
11181
|
}
|
|
11182
|
+
/**
|
|
11183
|
+
* Rename a phone number's Twilio and cached friendly name.
|
|
11184
|
+
*/
|
|
11185
|
+
async renamePhone(orgUuid, providerPhoneUuid, name) {
|
|
11186
|
+
return this.fetch(`o/${orgUuid}/phone-numbers/rename`, {
|
|
11187
|
+
method: "POST",
|
|
11188
|
+
body: JSON.stringify({ providerPhoneUuid, name })
|
|
11189
|
+
});
|
|
11190
|
+
}
|
|
10179
11191
|
/**
|
|
10180
11192
|
* Search available numbers. Use `mobile` for AU and `local` or `toll_free`
|
|
10181
11193
|
* for US; the server defaults to US local when the type is omitted.
|
|
@@ -10198,6 +11210,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10198
11210
|
* Australian mobile numbers require an approved business registration. Pass
|
|
10199
11211
|
* `legalEntityUuid`; the server resolves its bundle and address. Do not pass
|
|
10200
11212
|
* `bundleSid` or `addressSid` for Australian purchases.
|
|
11213
|
+
*
|
|
11214
|
+
* `name` is the whole Twilio-friendly label when supplied; without it the
|
|
11215
|
+
* server keeps its generated `{org}:0 org-{name}` fallback.
|
|
10201
11216
|
*/
|
|
10202
11217
|
async purchasePhoneNumber(orgUuid, phoneNumber, numberType, opts) {
|
|
10203
11218
|
return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
|
|
@@ -10208,28 +11223,38 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10208
11223
|
country: opts?.country,
|
|
10209
11224
|
legalEntityUuid: opts?.legalEntityUuid,
|
|
10210
11225
|
bundleSid: opts?.bundleSid,
|
|
10211
|
-
addressSid: opts?.addressSid
|
|
11226
|
+
addressSid: opts?.addressSid,
|
|
11227
|
+
name: opts?.name
|
|
10212
11228
|
})
|
|
10213
11229
|
});
|
|
10214
11230
|
}
|
|
10215
|
-
async getNumberRegistration(orgUuid, entityUuid) {
|
|
10216
|
-
|
|
11231
|
+
async getNumberRegistration(orgUuid, entityUuid, country) {
|
|
11232
|
+
const query2 = country ? `?country=${encodeURIComponent(country)}` : "";
|
|
11233
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration${query2}`);
|
|
10217
11234
|
}
|
|
10218
|
-
async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName) {
|
|
11235
|
+
async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName, country) {
|
|
10219
11236
|
const body = new FormData();
|
|
10220
11237
|
body.append("file", file);
|
|
10221
11238
|
body.append("documentType", documentType);
|
|
10222
11239
|
body.append("requirementName", requirementName);
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
11240
|
+
const query2 = country ? `?country=${encodeURIComponent(country)}` : "";
|
|
11241
|
+
return this.fetch(
|
|
11242
|
+
`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/documents${query2}`,
|
|
11243
|
+
{
|
|
11244
|
+
method: "POST",
|
|
11245
|
+
body
|
|
11246
|
+
}
|
|
11247
|
+
);
|
|
10227
11248
|
}
|
|
10228
|
-
async submitNumberRegistration(orgUuid, entityUuid) {
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
11249
|
+
async submitNumberRegistration(orgUuid, entityUuid, country) {
|
|
11250
|
+
const query2 = country ? `?country=${encodeURIComponent(country)}` : "";
|
|
11251
|
+
return this.fetch(
|
|
11252
|
+
`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/submit${query2}`,
|
|
11253
|
+
{
|
|
11254
|
+
method: "POST",
|
|
11255
|
+
body: JSON.stringify({})
|
|
11256
|
+
}
|
|
11257
|
+
);
|
|
10233
11258
|
}
|
|
10234
11259
|
/**
|
|
10235
11260
|
* Delete a phone number from the org (releases from Twilio).
|
|
@@ -10477,6 +11502,14 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10477
11502
|
async getPhoneVoiceTrust(orgUuid) {
|
|
10478
11503
|
return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust`);
|
|
10479
11504
|
}
|
|
11505
|
+
/**
|
|
11506
|
+
* The business each of the org's numbers is attached to, read live from
|
|
11507
|
+
* Twilio: one list per business's Customer Profile, none per number. Only
|
|
11508
|
+
* numbers exactly one business holds are listed. Organization admins only.
|
|
11509
|
+
*/
|
|
11510
|
+
async getPhoneBusinessNames(orgUuid) {
|
|
11511
|
+
return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust/businesses`);
|
|
11512
|
+
}
|
|
10480
11513
|
/**
|
|
10481
11514
|
* Put a number on a legal entity's Customer Profile and approved voice
|
|
10482
11515
|
* trust products, taking it off any other legal entity's first. The
|
|
@@ -10845,17 +11878,61 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10845
11878
|
async listOrgWebhookEventTypes(orgIdOrUuid) {
|
|
10846
11879
|
return this.fetch(`o/${orgIdOrUuid}/webhooks/event-types`);
|
|
10847
11880
|
}
|
|
11881
|
+
/**
|
|
11882
|
+
* Create an organization webhook endpoint.
|
|
11883
|
+
*
|
|
11884
|
+
* The response must confirm the requested `workspaceScope`: the same mode,
|
|
11885
|
+
* and for `selected` the same workspaces and label slugs. A server that
|
|
11886
|
+
* predates the shared scope ignores `workspaceScope` and stores an
|
|
11887
|
+
* endpoint for every workspace. When the response does not confirm the
|
|
11888
|
+
* scope (a missing scope included, even for `all`), this method does not
|
|
11889
|
+
* return the endpoint or its signing secret. It deletes the endpoint and
|
|
11890
|
+
* throws {@link OrgWebhookScopeUnconfirmedError}, whose `deleted` says
|
|
11891
|
+
* whether that delete succeeded. It never retries the create.
|
|
11892
|
+
*/
|
|
10848
11893
|
async createOrgWebhookEndpoint(orgIdOrUuid, data) {
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
11894
|
+
const created = await this.fetch(
|
|
11895
|
+
`o/${orgIdOrUuid}/webhooks`,
|
|
11896
|
+
{
|
|
11897
|
+
method: "POST",
|
|
11898
|
+
body: JSON.stringify(data)
|
|
11899
|
+
}
|
|
11900
|
+
);
|
|
11901
|
+
const stored = created.workspaceScope;
|
|
11902
|
+
if (workspaceScopeConfirmed(data.workspaceScope, stored)) return created;
|
|
11903
|
+
const endpointUuid = typeof created.uuid === "string" ? created.uuid : "";
|
|
11904
|
+
let deleted = false;
|
|
11905
|
+
if (endpointUuid) {
|
|
11906
|
+
try {
|
|
11907
|
+
await this.deleteOrgWebhookEndpoint(orgIdOrUuid, endpointUuid);
|
|
11908
|
+
deleted = true;
|
|
11909
|
+
} catch {
|
|
11910
|
+
deleted = false;
|
|
11911
|
+
}
|
|
11912
|
+
}
|
|
11913
|
+
throw new OrgWebhookScopeUnconfirmedError(endpointUuid, "create", deleted);
|
|
10853
11914
|
}
|
|
11915
|
+
/**
|
|
11916
|
+
* Update an organization webhook endpoint. An omitted (or `null`)
|
|
11917
|
+
* `workspaceScope` leaves the scope unchanged and is not checked. A sent
|
|
11918
|
+
* one replaces the whole scope, and the response must confirm it the same
|
|
11919
|
+
* way {@link OrgApi.createOrgWebhookEndpoint} checks; otherwise this
|
|
11920
|
+
* method throws {@link OrgWebhookScopeUnconfirmedError} with `operation`
|
|
11921
|
+
* `update`. It does not remediate: the previous scope is unknown here.
|
|
11922
|
+
*/
|
|
10854
11923
|
async updateOrgWebhookEndpoint(orgIdOrUuid, endpointUuid, data) {
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
11924
|
+
const updated = await this.fetch(
|
|
11925
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}`,
|
|
11926
|
+
{
|
|
11927
|
+
method: "PATCH",
|
|
11928
|
+
body: JSON.stringify(data)
|
|
11929
|
+
}
|
|
11930
|
+
);
|
|
11931
|
+
const requested = data.workspaceScope;
|
|
11932
|
+
if (requested == null) return updated;
|
|
11933
|
+
const stored = updated.workspaceScope;
|
|
11934
|
+
if (workspaceScopeConfirmed(requested, stored)) return updated;
|
|
11935
|
+
throw new OrgWebhookScopeUnconfirmedError(endpointUuid, "update", false);
|
|
10859
11936
|
}
|
|
10860
11937
|
async deleteOrgWebhookEndpoint(orgIdOrUuid, endpointUuid) {
|
|
10861
11938
|
return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}`, {
|
|
@@ -10951,11 +12028,16 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10951
12028
|
// Organization API keys (GRA-9043)
|
|
10952
12029
|
// =========================================================================
|
|
10953
12030
|
/**
|
|
10954
|
-
* List every API key bound to this organization
|
|
12031
|
+
* List every API key bound to this organization, with each key's
|
|
12032
|
+
* `workspaceScope`. Never carries the secret.
|
|
10955
12033
|
*
|
|
10956
|
-
* Org-bound keys authenticate as an org-local principal
|
|
10957
|
-
* every current workspace of the
|
|
10958
|
-
*
|
|
12034
|
+
* Org-bound keys authenticate as an org-local principal. A key whose
|
|
12035
|
+
* `workspaceScope.mode` is `all` reaches every current workspace of the
|
|
12036
|
+
* organization and every workspace created later; `selected` reaches its
|
|
12037
|
+
* `workspaceUuids` plus every workspace carrying all of its `labelSelector`
|
|
12038
|
+
* labels; `none` reaches nothing (also what a selected key reads as once
|
|
12039
|
+
* its last workspace is deleted). Gated by `org:api_keys`, which
|
|
12040
|
+
* `org:admin` holds transitively.
|
|
10959
12041
|
*/
|
|
10960
12042
|
async listOrgApiKeys(orgIdOrUuid) {
|
|
10961
12043
|
return this.fetch(`o/${orgIdOrUuid}/api-keys`);
|
|
@@ -10963,16 +12045,36 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10963
12045
|
/**
|
|
10964
12046
|
* Mint an org-bound API key.
|
|
10965
12047
|
*
|
|
10966
|
-
* The payload is
|
|
10967
|
-
*
|
|
10968
|
-
* id
|
|
10969
|
-
* the plaintext secret, which is readable
|
|
12048
|
+
* The payload is {@link OrgApiKeyFormData}: the workspace and account
|
|
12049
|
+
* routes' `{name, expiresInDays, scopes}` plus a required `workspaceScope`
|
|
12050
|
+
* — no workspace id, because the mint location is what binds the key.
|
|
12051
|
+
* The response carries `key`, the plaintext secret, which is readable
|
|
12052
|
+
* exactly once.
|
|
12053
|
+
*
|
|
12054
|
+
* A request for a `selected` or `none` scope must come back with that
|
|
12055
|
+
* `workspaceScope.mode`. A server that predates the shared scope ignores
|
|
12056
|
+
* `workspaceScope` and mints a key for every workspace; when that happens
|
|
12057
|
+
* this method does not return the secret. It revokes the key it
|
|
12058
|
+
* was given and throws {@link OrgApiKeyLimitUnconfirmedError}, whose
|
|
12059
|
+
* `revoked` says whether that revocation succeeded. It never retries the
|
|
12060
|
+
* mint.
|
|
10970
12061
|
*/
|
|
10971
12062
|
async createOrgApiKey(orgIdOrUuid, apiKey) {
|
|
10972
|
-
|
|
12063
|
+
const created = await this.fetch(`o/${orgIdOrUuid}/api-keys`, {
|
|
10973
12064
|
method: "POST",
|
|
10974
12065
|
body: JSON.stringify(apiKey)
|
|
10975
12066
|
});
|
|
12067
|
+
const requested = apiKey.workspaceScope.mode;
|
|
12068
|
+
const minted = created.workspaceScope?.mode;
|
|
12069
|
+
if (requested === "all" || minted === requested) return created;
|
|
12070
|
+
let revoked = false;
|
|
12071
|
+
try {
|
|
12072
|
+
await this.revokeOrgApiKey(orgIdOrUuid, created.id);
|
|
12073
|
+
revoked = true;
|
|
12074
|
+
} catch {
|
|
12075
|
+
revoked = false;
|
|
12076
|
+
}
|
|
12077
|
+
throw new OrgApiKeyLimitUnconfirmedError(created.id, revoked);
|
|
10976
12078
|
}
|
|
10977
12079
|
/** Revoke an org-bound API key by its id. */
|
|
10978
12080
|
async revokeOrgApiKey(orgIdOrUuid, keyId) {
|
|
@@ -10983,7 +12085,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10983
12085
|
// =========================================================================
|
|
10984
12086
|
// Workspace labels — the organization's own taxonomy of its workspaces
|
|
10985
12087
|
// =========================================================================
|
|
10986
|
-
/** Every label of the organization, with workspace and
|
|
12088
|
+
/** Every label of the organization, with workspace and selector (webhook, key, Agent) counts. */
|
|
10987
12089
|
async listWorkspaceLabels(orgIdOrUuid) {
|
|
10988
12090
|
return this.fetch(`o/${orgIdOrUuid}/workspace-labels`);
|
|
10989
12091
|
}
|
|
@@ -11000,15 +12102,16 @@ var OrgApi = class extends BaseApiClient {
|
|
|
11000
12102
|
body: JSON.stringify(data)
|
|
11001
12103
|
});
|
|
11002
12104
|
}
|
|
11003
|
-
/** Delete a label. Refused (409) while a webhook
|
|
12105
|
+
/** Delete a label. Refused (409) while a webhook, API key or Agent selector requires it. */
|
|
11004
12106
|
async deleteWorkspaceLabel(orgIdOrUuid, labelUuid) {
|
|
11005
12107
|
return this.fetch(`o/${orgIdOrUuid}/workspace-labels/${labelUuid}`, {
|
|
11006
12108
|
method: "DELETE"
|
|
11007
12109
|
});
|
|
11008
12110
|
}
|
|
11009
12111
|
/**
|
|
11010
|
-
* Which workspaces
|
|
11011
|
-
*
|
|
12112
|
+
* Which workspaces an unsaved `workspaceScope` — the body API keys,
|
|
12113
|
+
* webhook endpoints and org Agents save — would reach right now. `none`
|
|
12114
|
+
* reaches zero workspaces.
|
|
11012
12115
|
*/
|
|
11013
12116
|
async previewWorkspaceScope(orgIdOrUuid, data) {
|
|
11014
12117
|
return this.fetch(
|
|
@@ -11109,6 +12212,15 @@ var OAuthApi = class extends BaseApiClient {
|
|
|
11109
12212
|
const params = new URLSearchParams({ client_id: clientId });
|
|
11110
12213
|
return this.fetch(`oauth/authorize/mcp-targets?${params.toString()}`);
|
|
11111
12214
|
}
|
|
12215
|
+
/**
|
|
12216
|
+
* The organizations and workspaces the consent screen may offer a non-MCP
|
|
12217
|
+
* App: one workspace, or a whole organization where
|
|
12218
|
+
* `organizationGrantPermitted` is true.
|
|
12219
|
+
*/
|
|
12220
|
+
async getConsentTargets(clientId) {
|
|
12221
|
+
const params = new URLSearchParams({ client_id: clientId });
|
|
12222
|
+
return this.fetch(`oauth/authorize/targets?${params.toString()}`);
|
|
12223
|
+
}
|
|
11112
12224
|
/** The signed-in account's MCP grants. */
|
|
11113
12225
|
async listMcpGrants() {
|
|
11114
12226
|
return this.fetch("oauth/mcp-grants");
|
|
@@ -11171,6 +12283,17 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
11171
12283
|
const query2 = params.toString();
|
|
11172
12284
|
return this.fetch(`w/${wid}/phone-numbers${query2 ? `?${query2}` : ""}`);
|
|
11173
12285
|
}
|
|
12286
|
+
/**
|
|
12287
|
+
* The numbers a Chat can be started from, for a Member with `chats:write`.
|
|
12288
|
+
*
|
|
12289
|
+
* Every non-archived workspace number in a slim shape (`id`, `number`,
|
|
12290
|
+
* `name`, `isMapped`, `enableWhatsApp`) — no phone administration data, so
|
|
12291
|
+
* it needs no `phones:read`. A row describes configuration, not permission
|
|
12292
|
+
* to send.
|
|
12293
|
+
*/
|
|
12294
|
+
async getChatPhoneNumbers(wid) {
|
|
12295
|
+
return this.fetch(`w/${wid}/phone-numbers/chat-senders`);
|
|
12296
|
+
}
|
|
11174
12297
|
/** List phone numbers available for provisioning. */
|
|
11175
12298
|
async getAvailablePhoneNumbers(wid) {
|
|
11176
12299
|
return this.fetch(
|
|
@@ -12055,242 +13178,87 @@ var RoutingRulesApi = class extends BaseApiClient {
|
|
|
12055
13178
|
}
|
|
12056
13179
|
};
|
|
12057
13180
|
|
|
12058
|
-
// src/api/
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
async
|
|
12069
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/install`, {
|
|
12070
|
-
method: "POST",
|
|
12071
|
-
body: JSON.stringify(data ?? {})
|
|
12072
|
-
});
|
|
12073
|
-
}
|
|
12074
|
-
async configureSalesforce(wid, data) {
|
|
13181
|
+
// src/api/connection-sync.ts
|
|
13182
|
+
function syncConfigQuery(options, validateOnly) {
|
|
13183
|
+
const query2 = new URLSearchParams();
|
|
13184
|
+
if (validateOnly) query2.set("validateOnly", "true");
|
|
13185
|
+
if (options.baseConfigDigest !== void 0)
|
|
13186
|
+
query2.set("baseConfigDigest", options.baseConfigDigest);
|
|
13187
|
+
const qs = query2.toString();
|
|
13188
|
+
return qs ? `?${qs}` : "";
|
|
13189
|
+
}
|
|
13190
|
+
var ConnectionSyncApi = class extends BaseApiClient {
|
|
13191
|
+
async getConnectionSyncCapabilities(wid, connectionId) {
|
|
12075
13192
|
return this.fetch(
|
|
12076
|
-
`w/${wid}/app-connections/
|
|
12077
|
-
{
|
|
12078
|
-
method: "POST",
|
|
12079
|
-
body: JSON.stringify(data)
|
|
12080
|
-
}
|
|
13193
|
+
`w/${wid}/app-connections/${connectionId}/sync-capabilities`
|
|
12081
13194
|
);
|
|
12082
13195
|
}
|
|
12083
|
-
async
|
|
13196
|
+
async getConnectionSyncConfig(wid, connectionId) {
|
|
12084
13197
|
return this.fetch(
|
|
12085
|
-
`w/${wid}/app-connections/
|
|
12086
|
-
{
|
|
12087
|
-
method: "POST"
|
|
12088
|
-
}
|
|
13198
|
+
`w/${wid}/app-connections/${connectionId}/sync-config`
|
|
12089
13199
|
);
|
|
12090
13200
|
}
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
|
|
12094
|
-
|
|
13201
|
+
/**
|
|
13202
|
+
* Save the config; returns it with the new `configDigest`. Pass the digest
|
|
13203
|
+
* the draft was read with as `options.baseConfigDigest`: a changed
|
|
13204
|
+
* configuration is refused with 409 `sync_config_changed` (never retried).
|
|
13205
|
+
*/
|
|
13206
|
+
async updateConnectionSyncConfig(wid, connectionId, data, options = {}) {
|
|
12095
13207
|
return this.fetch(
|
|
12096
|
-
`w/${wid}/app-connections/
|
|
12097
|
-
{
|
|
12098
|
-
method: "DELETE"
|
|
12099
|
-
}
|
|
13208
|
+
`w/${wid}/app-connections/${connectionId}/sync-config${syncConfigQuery(options, false)}`,
|
|
13209
|
+
{ method: "PUT", body: JSON.stringify(data) }
|
|
12100
13210
|
);
|
|
12101
13211
|
}
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
async
|
|
12108
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/enable`, {
|
|
12109
|
-
method: "POST"
|
|
12110
|
-
});
|
|
12111
|
-
}
|
|
12112
|
-
async deleteSalesforce(wid) {
|
|
12113
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/delete`, {
|
|
12114
|
-
method: "DELETE"
|
|
12115
|
-
});
|
|
12116
|
-
}
|
|
12117
|
-
async getSalesforceReconciliationMatches(wid, params) {
|
|
12118
|
-
const query2 = new URLSearchParams();
|
|
12119
|
-
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
12120
|
-
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
12121
|
-
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
13212
|
+
/**
|
|
13213
|
+
* Run every save-time check on `data` without saving
|
|
13214
|
+
* (`PUT /sync-config?validateOnly=true`). Persists nothing and starts no
|
|
13215
|
+
* run; a failed check rejects with the save's own error.
|
|
13216
|
+
*/
|
|
13217
|
+
async validateConnectionSyncConfig(wid, connectionId, data, options = {}) {
|
|
12122
13218
|
return this.fetch(
|
|
12123
|
-
`w/${wid}/app-connections/
|
|
13219
|
+
`w/${wid}/app-connections/${connectionId}/sync-config${syncConfigQuery(options, true)}`,
|
|
13220
|
+
{ method: "PUT", body: JSON.stringify(data) }
|
|
12124
13221
|
);
|
|
12125
13222
|
}
|
|
12126
|
-
async
|
|
12127
|
-
return this.fetch(`w/${wid}/app-connections/
|
|
12128
|
-
method: "POST",
|
|
12129
|
-
body: JSON.stringify(data)
|
|
12130
|
-
});
|
|
12131
|
-
}
|
|
12132
|
-
async bulkLinkMembersToSalesforce(wid, data) {
|
|
12133
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/link/bulk`, {
|
|
12134
|
-
method: "POST",
|
|
12135
|
-
body: JSON.stringify(data)
|
|
12136
|
-
});
|
|
13223
|
+
async getConnectionFieldHomes(wid, connectionId) {
|
|
13224
|
+
return this.fetch(`w/${wid}/app-connections/${connectionId}/field-homes`);
|
|
12137
13225
|
}
|
|
12138
|
-
/**
|
|
12139
|
-
|
|
12140
|
-
* serves every connector that links by identity. This calls the retained
|
|
12141
|
-
* Salesforce-only route and will be removed once no caller remains.
|
|
12142
|
-
*/
|
|
12143
|
-
async linkUnlinkedSalesforceMembersByIdentity(wid) {
|
|
13226
|
+
/** Each inbound record source's latest pass: closed status, times and counts. */
|
|
13227
|
+
async getInboundRecordStatus(wid, connectionId) {
|
|
12144
13228
|
return this.fetch(
|
|
12145
|
-
`w/${wid}/app-connections/
|
|
12146
|
-
{
|
|
12147
|
-
method: "POST",
|
|
12148
|
-
body: JSON.stringify({})
|
|
12149
|
-
}
|
|
13229
|
+
`w/${wid}/app-connections/${connectionId}/inbound-records/status`
|
|
12150
13230
|
);
|
|
12151
13231
|
}
|
|
12152
|
-
|
|
12153
|
-
|
|
12154
|
-
method: "DELETE"
|
|
12155
|
-
});
|
|
12156
|
-
}
|
|
12157
|
-
async getLinkedSalesforceMembers(wid, params) {
|
|
12158
|
-
const query2 = new URLSearchParams();
|
|
12159
|
-
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
12160
|
-
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
12161
|
-
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
12162
|
-
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
13232
|
+
/** The owner sync's opt-in, and its latest pass. */
|
|
13233
|
+
async getOwnerMemberStatus(wid, connectionId) {
|
|
12163
13234
|
return this.fetch(
|
|
12164
|
-
`w/${wid}/app-connections
|
|
13235
|
+
`w/${wid}/app-connections/${connectionId}/owner-members`
|
|
12165
13236
|
);
|
|
12166
13237
|
}
|
|
12167
|
-
|
|
12168
|
-
async getSalesforceSyncConfig(wid) {
|
|
13238
|
+
async getConnectionWritePreview(wid, connectionId, memberId) {
|
|
12169
13239
|
return this.fetch(
|
|
12170
|
-
`w/${wid}/app-connections/
|
|
13240
|
+
`w/${wid}/app-connections/${connectionId}/write-preview/members/${memberId}`
|
|
12171
13241
|
);
|
|
12172
13242
|
}
|
|
12173
|
-
|
|
13243
|
+
/**
|
|
13244
|
+
* The checkpoint one direction of one entity type resumes from. The route
|
|
13245
|
+
* reads ``direction`` and ``entity_type`` (default ``member``); ``sync_key``
|
|
13246
|
+
* is still sent for compatibility, though the current route ignores it. A
|
|
13247
|
+
* connection or entity with no checkpoint answers ``{cursor: {}}``.
|
|
13248
|
+
*/
|
|
13249
|
+
async getConnectionSyncCheckpoint(wid, connectionId, direction = "inbound", syncKey = "default", entityType = "member") {
|
|
13250
|
+
const query2 = new URLSearchParams({
|
|
13251
|
+
direction,
|
|
13252
|
+
sync_key: syncKey,
|
|
13253
|
+
entity_type: entityType
|
|
13254
|
+
});
|
|
12174
13255
|
return this.fetch(
|
|
12175
|
-
`w/${wid}/app-connections/
|
|
12176
|
-
{
|
|
12177
|
-
method: "PUT",
|
|
12178
|
-
body: JSON.stringify(data)
|
|
12179
|
-
}
|
|
13256
|
+
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query2}`
|
|
12180
13257
|
);
|
|
12181
13258
|
}
|
|
12182
13259
|
/**
|
|
12183
|
-
*
|
|
12184
|
-
*
|
|
12185
|
-
* The inbound poll only ever returns records modified after the stored
|
|
12186
|
-
* cursor, so a member linked to a record that has not changed since is
|
|
12187
|
-
* unreachable by any poll and its link never receives a field — silently.
|
|
12188
|
-
* This fetches the records by Id and leaves the cursor untouched, so it is
|
|
12189
|
-
* safe to call at any time.
|
|
12190
|
-
*
|
|
12191
|
-
* Omit `memberIds` to resync every linked member (capped server-side).
|
|
12192
|
-
*/
|
|
12193
|
-
async resyncSalesforceLinkedMembers(wid, data = {}) {
|
|
12194
|
-
return this.fetch(
|
|
12195
|
-
`w/${wid}/app-connections/salesforce/sync/resync-members`,
|
|
12196
|
-
{
|
|
12197
|
-
method: "POST",
|
|
12198
|
-
body: JSON.stringify(data)
|
|
12199
|
-
}
|
|
12200
|
-
);
|
|
12201
|
-
}
|
|
12202
|
-
/**
|
|
12203
|
-
* List the sObjects available in the connected org.
|
|
12204
|
-
*
|
|
12205
|
-
* Backs the Target Object picker: the object set is org-specific (custom
|
|
12206
|
-
* objects included), so it must come from the org rather than a hardcoded
|
|
12207
|
-
* list.
|
|
12208
|
-
*/
|
|
12209
|
-
async listSalesforceObjects(wid) {
|
|
12210
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/objects`);
|
|
12211
|
-
}
|
|
12212
|
-
async describeSalesforceObject(wid, sobject) {
|
|
12213
|
-
return this.fetch(
|
|
12214
|
-
`w/${wid}/app-connections/salesforce/describe/${encodeURIComponent(sobject)}`
|
|
12215
|
-
);
|
|
12216
|
-
}
|
|
12217
|
-
// --- Search & Import ---
|
|
12218
|
-
async searchSalesforceRecords(wid, data) {
|
|
12219
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/search`, {
|
|
12220
|
-
method: "POST",
|
|
12221
|
-
body: JSON.stringify(data)
|
|
12222
|
-
});
|
|
12223
|
-
}
|
|
12224
|
-
async importSalesforceMembers(wid, data) {
|
|
12225
|
-
return this.fetch(
|
|
12226
|
-
`w/${wid}/app-connections/salesforce/import-members`,
|
|
12227
|
-
{
|
|
12228
|
-
method: "POST",
|
|
12229
|
-
body: JSON.stringify(data)
|
|
12230
|
-
}
|
|
12231
|
-
);
|
|
12232
|
-
}
|
|
12233
|
-
/**
|
|
12234
|
-
* Managed-rule execution history for this connection (`GET /sync/logs`):
|
|
12235
|
-
* the connection's managed EventRule executions, newest first, with the
|
|
12236
|
-
* shared cursor pagination. Requires `apps:read`; works while the
|
|
12237
|
-
* connection is parked for re-authorization.
|
|
12238
|
-
*/
|
|
12239
|
-
async getSalesforceSyncLogs(wid, params) {
|
|
12240
|
-
const query2 = new URLSearchParams();
|
|
12241
|
-
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
12242
|
-
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
12243
|
-
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
12244
|
-
return this.fetch(
|
|
12245
|
-
`w/${wid}/app-connections/salesforce/sync/logs${qs}`
|
|
12246
|
-
);
|
|
12247
|
-
}
|
|
12248
|
-
};
|
|
12249
|
-
|
|
12250
|
-
// src/api/connection-sync.ts
|
|
12251
|
-
var ConnectionSyncApi = class extends BaseApiClient {
|
|
12252
|
-
async getConnectionSyncCapabilities(wid, connectionId) {
|
|
12253
|
-
return this.fetch(
|
|
12254
|
-
`w/${wid}/app-connections/${connectionId}/sync-capabilities`
|
|
12255
|
-
);
|
|
12256
|
-
}
|
|
12257
|
-
async getConnectionSyncConfig(wid, connectionId) {
|
|
12258
|
-
return this.fetch(
|
|
12259
|
-
`w/${wid}/app-connections/${connectionId}/sync-config`
|
|
12260
|
-
);
|
|
12261
|
-
}
|
|
12262
|
-
async updateConnectionSyncConfig(wid, connectionId, data) {
|
|
12263
|
-
return this.fetch(
|
|
12264
|
-
`w/${wid}/app-connections/${connectionId}/sync-config`,
|
|
12265
|
-
{ method: "PUT", body: JSON.stringify(data) }
|
|
12266
|
-
);
|
|
12267
|
-
}
|
|
12268
|
-
async getConnectionFieldHomes(wid, connectionId) {
|
|
12269
|
-
return this.fetch(`w/${wid}/app-connections/${connectionId}/field-homes`);
|
|
12270
|
-
}
|
|
12271
|
-
/** Each inbound record source's latest pass: closed status, times and counts. */
|
|
12272
|
-
async getInboundRecordStatus(wid, connectionId) {
|
|
12273
|
-
return this.fetch(
|
|
12274
|
-
`w/${wid}/app-connections/${connectionId}/inbound-records/status`
|
|
12275
|
-
);
|
|
12276
|
-
}
|
|
12277
|
-
async getConnectionWritePreview(wid, connectionId, memberId) {
|
|
12278
|
-
return this.fetch(
|
|
12279
|
-
`w/${wid}/app-connections/${connectionId}/write-preview/members/${memberId}`
|
|
12280
|
-
);
|
|
12281
|
-
}
|
|
12282
|
-
async getConnectionSyncCheckpoint(wid, connectionId, direction = "inbound", syncKey = "default") {
|
|
12283
|
-
const query2 = new URLSearchParams({
|
|
12284
|
-
direction,
|
|
12285
|
-
sync_key: syncKey
|
|
12286
|
-
});
|
|
12287
|
-
return this.fetch(
|
|
12288
|
-
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query2}`
|
|
12289
|
-
);
|
|
12290
|
-
}
|
|
12291
|
-
/**
|
|
12292
|
-
* Start a sync run. Returns the raw Response (SSE stream).
|
|
12293
|
-
* Callers should read the stream for sync_run and sync_item events.
|
|
13260
|
+
* Start a sync run. Returns the raw Response (SSE stream).
|
|
13261
|
+
* Callers should read the stream for sync_run and sync_item events.
|
|
12294
13262
|
*
|
|
12295
13263
|
* Pass ``entityType`` to scope the run to a single entity type
|
|
12296
13264
|
* (members or records). When omitted, the run covers every enabled
|
|
@@ -12323,6 +13291,31 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
12323
13291
|
`w/${wid}/app-connections/${connectionId}/sync/member-summary`
|
|
12324
13292
|
);
|
|
12325
13293
|
}
|
|
13294
|
+
/** Failing Member links grouped by cause. Codes and counts only; needs `apps:read`. */
|
|
13295
|
+
async getSyncFailureSummary(wid, connectionId) {
|
|
13296
|
+
return this.fetch(
|
|
13297
|
+
`w/${wid}/app-connections/${connectionId}/sync/failures/summary`
|
|
13298
|
+
);
|
|
13299
|
+
}
|
|
13300
|
+
/**
|
|
13301
|
+
* One page of failing Member links. With `cause`, the links of exactly
|
|
13302
|
+
* that cause (`remoteCode: null` is the cause with no remote code);
|
|
13303
|
+
* without it, every failing link. Returns Member names, so it needs
|
|
13304
|
+
* `members:read` as well as `apps:read`.
|
|
13305
|
+
*/
|
|
13306
|
+
async getSyncFailures(wid, connectionId, options) {
|
|
13307
|
+
const params = new URLSearchParams();
|
|
13308
|
+
if (options?.cause) {
|
|
13309
|
+
params.set("code", options.cause.code);
|
|
13310
|
+
if (options.cause.remoteCode != null) params.set("remoteCode", options.cause.remoteCode);
|
|
13311
|
+
}
|
|
13312
|
+
if (options?.page != null) params.set("page", String(options.page));
|
|
13313
|
+
if (options?.pageSize != null) params.set("pageSize", String(options.pageSize));
|
|
13314
|
+
const qs = params.toString() ? `?${params.toString()}` : "";
|
|
13315
|
+
return this.fetch(
|
|
13316
|
+
`w/${wid}/app-connections/${connectionId}/sync/failures${qs}`
|
|
13317
|
+
);
|
|
13318
|
+
}
|
|
12326
13319
|
/**
|
|
12327
13320
|
* One page of a run's items. ``cursor`` is the previous page's
|
|
12328
13321
|
* ``nextCursor`` and continues in the requested direction; exhaustion comes
|
|
@@ -12463,6 +13456,216 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
12463
13456
|
}
|
|
12464
13457
|
};
|
|
12465
13458
|
|
|
13459
|
+
// src/api/salesforce.ts
|
|
13460
|
+
var SalesforceApi = class extends BaseApiClient {
|
|
13461
|
+
/**
|
|
13462
|
+
* Create the Salesforce connection shell (no credentials yet).
|
|
13463
|
+
*
|
|
13464
|
+
* First step of the guided setup flow: provisions the connection row so
|
|
13465
|
+
* the admin lands on the detail page where the OAuth callback URL is
|
|
13466
|
+
* shown — which they need to register their Salesforce Connected App
|
|
13467
|
+
* before they have a Client ID / Secret to enter. Idempotent.
|
|
13468
|
+
*/
|
|
13469
|
+
async installSalesforce(wid, data) {
|
|
13470
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/install`, {
|
|
13471
|
+
method: "POST",
|
|
13472
|
+
body: JSON.stringify(data ?? {})
|
|
13473
|
+
});
|
|
13474
|
+
}
|
|
13475
|
+
async configureSalesforce(wid, data) {
|
|
13476
|
+
return this.fetch(
|
|
13477
|
+
`w/${wid}/app-connections/salesforce/configure`,
|
|
13478
|
+
{
|
|
13479
|
+
method: "POST",
|
|
13480
|
+
body: JSON.stringify(data)
|
|
13481
|
+
}
|
|
13482
|
+
);
|
|
13483
|
+
}
|
|
13484
|
+
async startSalesforceOAuth(wid) {
|
|
13485
|
+
return this.fetch(
|
|
13486
|
+
`w/${wid}/app-connections/salesforce/oauth/start`,
|
|
13487
|
+
{
|
|
13488
|
+
method: "POST"
|
|
13489
|
+
}
|
|
13490
|
+
);
|
|
13491
|
+
}
|
|
13492
|
+
async getSalesforceStatus(wid) {
|
|
13493
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/status`);
|
|
13494
|
+
}
|
|
13495
|
+
async disconnectSalesforce(wid) {
|
|
13496
|
+
return this.fetch(
|
|
13497
|
+
`w/${wid}/app-connections/salesforce/disconnect`,
|
|
13498
|
+
{
|
|
13499
|
+
method: "DELETE"
|
|
13500
|
+
}
|
|
13501
|
+
);
|
|
13502
|
+
}
|
|
13503
|
+
async disableSalesforce(wid) {
|
|
13504
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/disable`, {
|
|
13505
|
+
method: "POST"
|
|
13506
|
+
});
|
|
13507
|
+
}
|
|
13508
|
+
async enableSalesforce(wid) {
|
|
13509
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/enable`, {
|
|
13510
|
+
method: "POST"
|
|
13511
|
+
});
|
|
13512
|
+
}
|
|
13513
|
+
async deleteSalesforce(wid) {
|
|
13514
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/delete`, {
|
|
13515
|
+
method: "DELETE"
|
|
13516
|
+
});
|
|
13517
|
+
}
|
|
13518
|
+
async getSalesforceReconciliationMatches(wid, params) {
|
|
13519
|
+
const query2 = new URLSearchParams();
|
|
13520
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
13521
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
13522
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
13523
|
+
return this.fetch(
|
|
13524
|
+
`w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
|
|
13525
|
+
);
|
|
13526
|
+
}
|
|
13527
|
+
async linkMemberToSalesforce(wid, data) {
|
|
13528
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/link`, {
|
|
13529
|
+
method: "POST",
|
|
13530
|
+
body: JSON.stringify(data)
|
|
13531
|
+
});
|
|
13532
|
+
}
|
|
13533
|
+
async bulkLinkMembersToSalesforce(wid, data) {
|
|
13534
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/link/bulk`, {
|
|
13535
|
+
method: "POST",
|
|
13536
|
+
body: JSON.stringify(data)
|
|
13537
|
+
});
|
|
13538
|
+
}
|
|
13539
|
+
/**
|
|
13540
|
+
* @deprecated Use `linkUnlinkedMembersByIdentity(wid, connectionId)`, which
|
|
13541
|
+
* serves every connector that links by identity. This calls the retained
|
|
13542
|
+
* Salesforce-only route and will be removed once no caller remains.
|
|
13543
|
+
*/
|
|
13544
|
+
async linkUnlinkedSalesforceMembersByIdentity(wid) {
|
|
13545
|
+
return this.fetch(
|
|
13546
|
+
`w/${wid}/app-connections/salesforce/reconciliation/link-unlinked-by-identity`,
|
|
13547
|
+
{
|
|
13548
|
+
method: "POST",
|
|
13549
|
+
body: JSON.stringify({})
|
|
13550
|
+
}
|
|
13551
|
+
);
|
|
13552
|
+
}
|
|
13553
|
+
async unlinkMemberFromSalesforce(wid, memberId) {
|
|
13554
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/unlink/${memberId}`, {
|
|
13555
|
+
method: "DELETE"
|
|
13556
|
+
});
|
|
13557
|
+
}
|
|
13558
|
+
async getLinkedSalesforceMembers(wid, params) {
|
|
13559
|
+
const query2 = new URLSearchParams();
|
|
13560
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
13561
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
13562
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
13563
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
13564
|
+
return this.fetch(
|
|
13565
|
+
`w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
|
|
13566
|
+
);
|
|
13567
|
+
}
|
|
13568
|
+
// --- Sync config ---
|
|
13569
|
+
async getSalesforceSyncConfig(wid) {
|
|
13570
|
+
return this.fetch(
|
|
13571
|
+
`w/${wid}/app-connections/salesforce/sync/config`
|
|
13572
|
+
);
|
|
13573
|
+
}
|
|
13574
|
+
/**
|
|
13575
|
+
* Save the config and settings together; returns them with the new
|
|
13576
|
+
* `configDigest`. Pass the digest they were read with as
|
|
13577
|
+
* `options.baseConfigDigest` (409 `sync_config_changed` when it changed).
|
|
13578
|
+
*/
|
|
13579
|
+
async updateSalesforceSyncConfig(wid, data, options = {}) {
|
|
13580
|
+
return this.fetch(
|
|
13581
|
+
`w/${wid}/app-connections/salesforce/sync/config${syncConfigQuery(options, false)}`,
|
|
13582
|
+
{
|
|
13583
|
+
method: "PUT",
|
|
13584
|
+
body: JSON.stringify(data)
|
|
13585
|
+
}
|
|
13586
|
+
);
|
|
13587
|
+
}
|
|
13588
|
+
/**
|
|
13589
|
+
* Run every save-time check -- including the upsert-field describe when
|
|
13590
|
+
* Member outbound is newly enabled or re-keyed -- without saving.
|
|
13591
|
+
*/
|
|
13592
|
+
async validateSalesforceSyncConfig(wid, data, options = {}) {
|
|
13593
|
+
return this.fetch(
|
|
13594
|
+
`w/${wid}/app-connections/salesforce/sync/config${syncConfigQuery(options, true)}`,
|
|
13595
|
+
{
|
|
13596
|
+
method: "PUT",
|
|
13597
|
+
body: JSON.stringify(data)
|
|
13598
|
+
}
|
|
13599
|
+
);
|
|
13600
|
+
}
|
|
13601
|
+
/**
|
|
13602
|
+
* Pull linked members' Salesforce records now, ignoring the sync cursor.
|
|
13603
|
+
*
|
|
13604
|
+
* The inbound poll only ever returns records modified after the stored
|
|
13605
|
+
* cursor, so a member linked to a record that has not changed since is
|
|
13606
|
+
* unreachable by any poll and its link never receives a field — silently.
|
|
13607
|
+
* This fetches the records by Id and leaves the cursor untouched, so it is
|
|
13608
|
+
* safe to call at any time.
|
|
13609
|
+
*
|
|
13610
|
+
* Omit `memberIds` to resync every linked member (capped server-side).
|
|
13611
|
+
*/
|
|
13612
|
+
async resyncSalesforceLinkedMembers(wid, data = {}) {
|
|
13613
|
+
return this.fetch(
|
|
13614
|
+
`w/${wid}/app-connections/salesforce/sync/resync-members`,
|
|
13615
|
+
{
|
|
13616
|
+
method: "POST",
|
|
13617
|
+
body: JSON.stringify(data)
|
|
13618
|
+
}
|
|
13619
|
+
);
|
|
13620
|
+
}
|
|
13621
|
+
/**
|
|
13622
|
+
* List the sObjects available in the connected org.
|
|
13623
|
+
*
|
|
13624
|
+
* Backs the Target Object picker: the object set is org-specific (custom
|
|
13625
|
+
* objects included), so it must come from the org rather than a hardcoded
|
|
13626
|
+
* list.
|
|
13627
|
+
*/
|
|
13628
|
+
async listSalesforceObjects(wid) {
|
|
13629
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/objects`);
|
|
13630
|
+
}
|
|
13631
|
+
async describeSalesforceObject(wid, sobject) {
|
|
13632
|
+
return this.fetch(
|
|
13633
|
+
`w/${wid}/app-connections/salesforce/describe/${encodeURIComponent(sobject)}`
|
|
13634
|
+
);
|
|
13635
|
+
}
|
|
13636
|
+
// --- Search & Import ---
|
|
13637
|
+
async searchSalesforceRecords(wid, data) {
|
|
13638
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/search`, {
|
|
13639
|
+
method: "POST",
|
|
13640
|
+
body: JSON.stringify(data)
|
|
13641
|
+
});
|
|
13642
|
+
}
|
|
13643
|
+
async importSalesforceMembers(wid, data) {
|
|
13644
|
+
return this.fetch(
|
|
13645
|
+
`w/${wid}/app-connections/salesforce/import-members`,
|
|
13646
|
+
{
|
|
13647
|
+
method: "POST",
|
|
13648
|
+
body: JSON.stringify(data)
|
|
13649
|
+
}
|
|
13650
|
+
);
|
|
13651
|
+
}
|
|
13652
|
+
/**
|
|
13653
|
+
* Managed-rule execution history for this connection (`GET /sync/logs`):
|
|
13654
|
+
* the connection's managed EventRule executions, newest first, with the
|
|
13655
|
+
* shared cursor pagination. Requires `apps:read`; works while the
|
|
13656
|
+
* connection is parked for re-authorization.
|
|
13657
|
+
*/
|
|
13658
|
+
async getSalesforceSyncLogs(wid, params) {
|
|
13659
|
+
const query2 = new URLSearchParams();
|
|
13660
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
13661
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
13662
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
13663
|
+
return this.fetch(
|
|
13664
|
+
`w/${wid}/app-connections/salesforce/sync/logs${qs}`
|
|
13665
|
+
);
|
|
13666
|
+
}
|
|
13667
|
+
};
|
|
13668
|
+
|
|
12466
13669
|
// src/api/hubspot.ts
|
|
12467
13670
|
var HubspotApi = class extends BaseApiClient {
|
|
12468
13671
|
async bindHubspotCalendar(wid, calendarId, linkId) {
|
|
@@ -12530,6 +13733,18 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
12530
13733
|
method: "DELETE"
|
|
12531
13734
|
});
|
|
12532
13735
|
}
|
|
13736
|
+
/**
|
|
13737
|
+
* Move a connection from its own HubSpot app onto the shared Gravity Rail
|
|
13738
|
+
* app. Sync settings and Member links stay. A connection whose saved Client
|
|
13739
|
+
* ID is the shared app's stays connected; any other returns to setup and is
|
|
13740
|
+
* connected again with `startHubspotOAuth`.
|
|
13741
|
+
*/
|
|
13742
|
+
async switchHubspotToPlatformApp(wid) {
|
|
13743
|
+
return this.fetch(
|
|
13744
|
+
`w/${wid}/app-connections/hubspot/use-platform-app`,
|
|
13745
|
+
{ method: "POST", body: JSON.stringify({}) }
|
|
13746
|
+
);
|
|
13747
|
+
}
|
|
12533
13748
|
async disableHubspot(wid) {
|
|
12534
13749
|
return this.fetch(`w/${wid}/app-connections/hubspot/disable`, {
|
|
12535
13750
|
method: "POST"
|
|
@@ -12610,6 +13825,16 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
12610
13825
|
`w/${wid}/app-connections/hubspot/sync-settings/meeting-links`
|
|
12611
13826
|
);
|
|
12612
13827
|
}
|
|
13828
|
+
/**
|
|
13829
|
+
* The HubSpot objects a `crm_objects` record source may read (Services and the
|
|
13830
|
+
* portal's custom objects) with their properties, and each family's status
|
|
13831
|
+
* (`missing_scope` without that family's object and schema scopes).
|
|
13832
|
+
*/
|
|
13833
|
+
async getHubspotCrmObjects(wid) {
|
|
13834
|
+
return this.fetch(
|
|
13835
|
+
`w/${wid}/app-connections/hubspot/sync-settings/crm-objects`
|
|
13836
|
+
);
|
|
13837
|
+
}
|
|
12613
13838
|
/** The portal's forms and their fields, or `missing_scope` without the `forms` scope. */
|
|
12614
13839
|
async getHubspotForms(wid) {
|
|
12615
13840
|
return this.fetch(
|
|
@@ -13016,12 +14241,6 @@ var SnippetsApi = class extends BaseApiClient {
|
|
|
13016
14241
|
async getSnippet(wid, id) {
|
|
13017
14242
|
return this.fetch(`w/${wid}/snippets/${id}`);
|
|
13018
14243
|
}
|
|
13019
|
-
async createSnippet(wid, data) {
|
|
13020
|
-
return this.fetch(`w/${wid}/snippets`, {
|
|
13021
|
-
method: "POST",
|
|
13022
|
-
body: JSON.stringify(data)
|
|
13023
|
-
});
|
|
13024
|
-
}
|
|
13025
14244
|
async updateSnippet(wid, id, data) {
|
|
13026
14245
|
return this.fetch(`w/${wid}/snippets/${id}`, {
|
|
13027
14246
|
method: "PUT",
|
|
@@ -13112,7 +14331,7 @@ var SubscriptionsApi = class extends BaseApiClient {
|
|
|
13112
14331
|
);
|
|
13113
14332
|
}
|
|
13114
14333
|
/**
|
|
13115
|
-
* List self-service, purchasable organization plans
|
|
14334
|
+
* List self-service, purchasable organization plans. Only products
|
|
13116
14335
|
* with a Stripe Price are returned; zero-amount plans are allowed.
|
|
13117
14336
|
*/
|
|
13118
14337
|
async listSelfServeProducts(productType) {
|
|
@@ -13200,9 +14419,6 @@ function supportRequestParams(params) {
|
|
|
13200
14419
|
if (params?.workspaceId !== void 0) {
|
|
13201
14420
|
searchParams.append("workspaceId", params.workspaceId.toString());
|
|
13202
14421
|
}
|
|
13203
|
-
if (params?.linearLinked !== void 0) {
|
|
13204
|
-
searchParams.append("linearLinked", params.linearLinked.toString());
|
|
13205
|
-
}
|
|
13206
14422
|
const query2 = searchParams.toString();
|
|
13207
14423
|
return query2 ? `?${query2}` : "";
|
|
13208
14424
|
}
|
|
@@ -13247,6 +14463,18 @@ var SupportRequestsApi = class extends BaseApiClient {
|
|
|
13247
14463
|
body: JSON.stringify(data)
|
|
13248
14464
|
});
|
|
13249
14465
|
}
|
|
14466
|
+
/** Admins of this organization a new or existing request can copy in. */
|
|
14467
|
+
async listOrgSupportRequestCcCandidates(orgUuid) {
|
|
14468
|
+
return this.fetch(
|
|
14469
|
+
`o/${orgUuid}/support-requests/cc-candidates`
|
|
14470
|
+
);
|
|
14471
|
+
}
|
|
14472
|
+
async addOrgSupportRequestParticipants(orgUuid, uuid, data) {
|
|
14473
|
+
return this.fetch(`o/${orgUuid}/support-requests/${uuid}/participants`, {
|
|
14474
|
+
method: "POST",
|
|
14475
|
+
body: JSON.stringify(data)
|
|
14476
|
+
});
|
|
14477
|
+
}
|
|
13250
14478
|
async listWorkspaceSupportRequests(workspaceUuid, params) {
|
|
13251
14479
|
return this.fetch(
|
|
13252
14480
|
`w/${workspaceUuid}/support-requests${supportRequestParams(params)}`
|
|
@@ -13267,6 +14495,21 @@ var SupportRequestsApi = class extends BaseApiClient {
|
|
|
13267
14495
|
body: JSON.stringify(data)
|
|
13268
14496
|
});
|
|
13269
14497
|
}
|
|
14498
|
+
/** Admins of this workspace and its organization a request can copy in. */
|
|
14499
|
+
async listWorkspaceSupportRequestCcCandidates(workspaceUuid) {
|
|
14500
|
+
return this.fetch(
|
|
14501
|
+
`w/${workspaceUuid}/support-requests/cc-candidates`
|
|
14502
|
+
);
|
|
14503
|
+
}
|
|
14504
|
+
async addWorkspaceSupportRequestParticipants(workspaceUuid, uuid, data) {
|
|
14505
|
+
return this.fetch(
|
|
14506
|
+
`w/${workspaceUuid}/support-requests/${uuid}/participants`,
|
|
14507
|
+
{
|
|
14508
|
+
method: "POST",
|
|
14509
|
+
body: JSON.stringify(data)
|
|
14510
|
+
}
|
|
14511
|
+
);
|
|
14512
|
+
}
|
|
13270
14513
|
async closeWorkspaceSupportRequest(workspaceUuid, uuid, data = {}) {
|
|
13271
14514
|
return this.fetch(`w/${workspaceUuid}/support-requests/${uuid}/close`, {
|
|
13272
14515
|
method: "POST",
|
|
@@ -13486,6 +14729,10 @@ var TasksApi = class extends BaseApiClient {
|
|
|
13486
14729
|
`w/${wid}/tasks${params.toString() ? `?${params.toString()}` : ""}`
|
|
13487
14730
|
);
|
|
13488
14731
|
}
|
|
14732
|
+
/** Task identity only, with the same access and visibility as getTasks. */
|
|
14733
|
+
async getTaskCatalog(wid) {
|
|
14734
|
+
return this.fetch(`w/${wid}/tasks?catalog=true`);
|
|
14735
|
+
}
|
|
13489
14736
|
/** Get a single task by ID. */
|
|
13490
14737
|
async getTask(wid, id) {
|
|
13491
14738
|
return this.fetch(`w/${wid}/tasks/${id}`);
|
|
@@ -13719,6 +14966,41 @@ var TrackedLinksApi = class extends BaseApiClient {
|
|
|
13719
14966
|
|
|
13720
14967
|
// src/api/journeys.ts
|
|
13721
14968
|
var JourneysApi = class extends BaseApiClient {
|
|
14969
|
+
async listJourneyTests(wid, journeyId) {
|
|
14970
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests`);
|
|
14971
|
+
}
|
|
14972
|
+
async createJourneyTest(wid, journeyId, data) {
|
|
14973
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests`, {
|
|
14974
|
+
method: "POST",
|
|
14975
|
+
body: JSON.stringify(data)
|
|
14976
|
+
});
|
|
14977
|
+
}
|
|
14978
|
+
async updateJourneyTest(wid, journeyId, testUuid, data) {
|
|
14979
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests/${encodeURIComponent(testUuid)}`, {
|
|
14980
|
+
method: "PATCH",
|
|
14981
|
+
body: JSON.stringify(data)
|
|
14982
|
+
});
|
|
14983
|
+
}
|
|
14984
|
+
async deleteJourneyTest(wid, journeyId, testUuid) {
|
|
14985
|
+
await this.fetch(`w/${wid}/journeys/${journeyId}/tests/${encodeURIComponent(testUuid)}`, {
|
|
14986
|
+
method: "DELETE"
|
|
14987
|
+
});
|
|
14988
|
+
}
|
|
14989
|
+
async runJourneyTests(wid, journeyId, init) {
|
|
14990
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests/run`, {
|
|
14991
|
+
method: "POST",
|
|
14992
|
+
body: JSON.stringify({}),
|
|
14993
|
+
signal: init?.signal
|
|
14994
|
+
});
|
|
14995
|
+
}
|
|
14996
|
+
/** Preview a saved or enrollment definition without enrolling or sending. */
|
|
14997
|
+
async simulateJourney(wid, journeyId, data, init) {
|
|
14998
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/simulate`, {
|
|
14999
|
+
method: "POST",
|
|
15000
|
+
body: JSON.stringify(data),
|
|
15001
|
+
signal: init?.signal
|
|
15002
|
+
});
|
|
15003
|
+
}
|
|
13722
15004
|
async putJourneyDraft(wid, journeyId, data) {
|
|
13723
15005
|
return this.fetch(`w/${wid}/journeys/${journeyId}/draft`, {
|
|
13724
15006
|
method: "PUT",
|
|
@@ -13755,7 +15037,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13755
15037
|
/**
|
|
13756
15038
|
* List journeys, optionally including archived, paginated.
|
|
13757
15039
|
*
|
|
13758
|
-
* Returns the READ projection (`JourneyRead`)
|
|
15040
|
+
* Returns the READ projection (`JourneyRead`), including edge CEL. Use
|
|
13759
15041
|
* {@link getJourneyAuthoring} for the editor's expression-carrying shape.
|
|
13760
15042
|
*/
|
|
13761
15043
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
@@ -13771,19 +15053,18 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13771
15053
|
/**
|
|
13772
15054
|
* Get a single journey by ID (includes steps and goals).
|
|
13773
15055
|
*
|
|
13774
|
-
* Returns the READ projection (`JourneyRead`)
|
|
13775
|
-
*
|
|
13776
|
-
* {@link getJourneyAuthoring} for those.
|
|
15056
|
+
* Returns the READ projection (`JourneyRead`) with edge `celCondition`.
|
|
15057
|
+
* Goal and decision-rule CEL remain on {@link getJourneyAuthoring}.
|
|
13777
15058
|
*/
|
|
13778
15059
|
async getJourney(wid, journeyId) {
|
|
13779
15060
|
return this.fetch(`w/${wid}/journeys/${journeyId}`);
|
|
13780
15061
|
}
|
|
13781
15062
|
/**
|
|
13782
|
-
* Get a journey's AUTHORING projection
|
|
15063
|
+
* Get a journey's write-authorized AUTHORING projection.
|
|
13783
15064
|
*
|
|
13784
|
-
*
|
|
13785
|
-
*
|
|
13786
|
-
* write-authorized surface that carries them for the Journey editor — it
|
|
15065
|
+
* The ordinary `getJourney` read projection includes edge CEL but omits
|
|
15066
|
+
* goal and decision-rule CEL and owned Member predicates. This endpoint is
|
|
15067
|
+
* the write-authorized surface that carries them for the Journey editor — it
|
|
13787
15068
|
* requires the `journeys:write` scope, so a read-only caller is denied and
|
|
13788
15069
|
* must not call it. Returns the authoring superset (`Journey`).
|
|
13789
15070
|
*/
|
|
@@ -13809,7 +15090,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13809
15090
|
* * `journey_v2_invalid_topology` — the resulting graph is not executable;
|
|
13810
15091
|
* the body carries `issues` (codes and resource uuids, never CEL).
|
|
13811
15092
|
*/
|
|
13812
|
-
async
|
|
15093
|
+
async putJourneyDefinition(wid, journeyId, data) {
|
|
13813
15094
|
return this.fetch(`w/${wid}/journeys/${journeyId}/v2-definition`, {
|
|
13814
15095
|
method: "PUT",
|
|
13815
15096
|
body: JSON.stringify(data)
|
|
@@ -13822,7 +15103,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13822
15103
|
* transition. Issues carry closed codes and resource uuids only — never CEL
|
|
13823
15104
|
* and never member data — so they are safe to render or log.
|
|
13824
15105
|
*/
|
|
13825
|
-
async
|
|
15106
|
+
async getJourneyDefinitionValidation(wid, journeyId) {
|
|
13826
15107
|
return this.fetch(
|
|
13827
15108
|
`w/${wid}/journeys/${journeyId}/v2-definition/validation`
|
|
13828
15109
|
);
|
|
@@ -13844,7 +15125,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13844
15125
|
return this.fetch(`w/${wid}/journeys/filter-options`);
|
|
13845
15126
|
}
|
|
13846
15127
|
/** Copy a supported legacy definition into a separate draft V2 Journey. */
|
|
13847
|
-
async
|
|
15128
|
+
async cloneJourneyToCurrent(wid, id) {
|
|
13848
15129
|
return this.fetch(`w/${wid}/journeys/${id}/clone-v2`, {
|
|
13849
15130
|
method: "POST",
|
|
13850
15131
|
body: JSON.stringify({})
|
|
@@ -13885,6 +15166,25 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13885
15166
|
async getJourneyHealth(wid, journeyId) {
|
|
13886
15167
|
return this.fetch(`w/${wid}/journeys/${journeyId}/health`);
|
|
13887
15168
|
}
|
|
15169
|
+
/**
|
|
15170
|
+
* A Journey's audit trail, newest first: who created it, changed its
|
|
15171
|
+
* lifecycle (with the status before and after), changed its settings or
|
|
15172
|
+
* definition, or cut a version (with its number), and when. IDs, field
|
|
15173
|
+
* codes and closed values only.
|
|
15174
|
+
*
|
|
15175
|
+
* The window defaults to the Journey's whole life. Pass `nextCursor` back
|
|
15176
|
+
* with the same window to read the next page. Requires `journeys:read` and
|
|
15177
|
+
* `workspace:read`.
|
|
15178
|
+
*/
|
|
15179
|
+
async getJourneyHistory(wid, journeyId, opts) {
|
|
15180
|
+
const query2 = new URLSearchParams();
|
|
15181
|
+
if (opts?.occurredFrom) query2.set("occurredFrom", opts.occurredFrom);
|
|
15182
|
+
if (opts?.occurredBefore) query2.set("occurredBefore", opts.occurredBefore);
|
|
15183
|
+
if (opts?.cursor) query2.set("cursor", opts.cursor);
|
|
15184
|
+
if (opts?.pageSize !== void 0) query2.set("pageSize", String(opts.pageSize));
|
|
15185
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
15186
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/history${qs}`);
|
|
15187
|
+
}
|
|
13888
15188
|
/**
|
|
13889
15189
|
* How many days the journey's texts take at the workspace's current sending
|
|
13890
15190
|
* limits — advice for the publish and enroll confirmations, never a gate.
|
|
@@ -14119,10 +15419,11 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
14119
15419
|
|
|
14120
15420
|
// src/api/workflows.ts
|
|
14121
15421
|
var WorkflowsApi = class extends BaseApiClient {
|
|
14122
|
-
async uploadWorkflowKnowledge(wid, id, file, relativePath) {
|
|
15422
|
+
async uploadWorkflowKnowledge(wid, id, file, relativePath, folderId) {
|
|
14123
15423
|
const body = new FormData();
|
|
14124
15424
|
body.append("file", file, relativePath.split("/").pop());
|
|
14125
15425
|
body.append("relativePath", relativePath);
|
|
15426
|
+
if (folderId !== void 0) body.append("folderId", String(folderId));
|
|
14126
15427
|
return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
|
|
14127
15428
|
}
|
|
14128
15429
|
/** List workflows by archived status; `archived: true` returns only archived Workflows. */
|
|
@@ -14283,6 +15584,16 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
14283
15584
|
`w/${wid}/workflows/${workflowId}/validate-config`
|
|
14284
15585
|
);
|
|
14285
15586
|
}
|
|
15587
|
+
/**
|
|
15588
|
+
* Files and Folders the draft config names that the Workflow's runner
|
|
15589
|
+
* roles cannot read. Read-only: sharing is a separate, explicit call to the
|
|
15590
|
+
* file or folder sharing-roles endpoint.
|
|
15591
|
+
*/
|
|
15592
|
+
async getWorkflowRunnerFileAccess(wid, workflowId) {
|
|
15593
|
+
return this.fetch(
|
|
15594
|
+
`w/${wid}/workflows/${workflowId}/runner-file-access`
|
|
15595
|
+
);
|
|
15596
|
+
}
|
|
14286
15597
|
/**
|
|
14287
15598
|
* Classify the prompts of a Workflow's draft revision.
|
|
14288
15599
|
*
|
|
@@ -14830,12 +16141,44 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
14830
16141
|
method: "POST"
|
|
14831
16142
|
});
|
|
14832
16143
|
}
|
|
16144
|
+
/** Read this account's own notification preferences. */
|
|
16145
|
+
async getNotificationPreferences() {
|
|
16146
|
+
return this.fetch("account/notification-preferences");
|
|
16147
|
+
}
|
|
16148
|
+
/** Silence or restore one workspace for the authenticated account. */
|
|
16149
|
+
async setWorkspaceNotificationMute(wid, muted) {
|
|
16150
|
+
return this.fetch(
|
|
16151
|
+
`account/notification-preferences/${wid}`,
|
|
16152
|
+
{
|
|
16153
|
+
method: "PUT",
|
|
16154
|
+
body: JSON.stringify({ muted })
|
|
16155
|
+
}
|
|
16156
|
+
);
|
|
16157
|
+
}
|
|
14833
16158
|
// ===== Push Notifications =====
|
|
14834
16159
|
/** Get the VAPID public key for Web Push subscription registration. */
|
|
14835
16160
|
async getVapidPublicKey() {
|
|
14836
16161
|
const response = await this.fetch("push/vapid-public-key");
|
|
14837
16162
|
return response.publicKey;
|
|
14838
16163
|
}
|
|
16164
|
+
/** Enable browser push across the authenticated account's workspaces. */
|
|
16165
|
+
async registerAccountPushSubscription(subscription) {
|
|
16166
|
+
return this.fetch("push/subscriptions", {
|
|
16167
|
+
method: "POST",
|
|
16168
|
+
body: JSON.stringify(subscription)
|
|
16169
|
+
});
|
|
16170
|
+
}
|
|
16171
|
+
/** Revoke this account's registration in one browser. */
|
|
16172
|
+
async unregisterAccountPushSubscription(endpoint) {
|
|
16173
|
+
return this.fetch("push/subscriptions", {
|
|
16174
|
+
method: "DELETE",
|
|
16175
|
+
body: JSON.stringify({ endpoint })
|
|
16176
|
+
});
|
|
16177
|
+
}
|
|
16178
|
+
/** List the authenticated account's browser registrations. */
|
|
16179
|
+
async listAccountPushSubscriptions() {
|
|
16180
|
+
return this.fetch("push/subscriptions");
|
|
16181
|
+
}
|
|
14839
16182
|
/** Register a Web Push subscription for the current user. */
|
|
14840
16183
|
async registerPushSubscription(wid, subscription) {
|
|
14841
16184
|
return this.fetch(`w/${wid}/push-subscriptions`, {
|
|
@@ -15462,6 +16805,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15462
16805
|
"activateWorkflowRevision",
|
|
15463
16806
|
"addEmailSenderAsMember",
|
|
15464
16807
|
"addGroupMember",
|
|
16808
|
+
"addWorkspaceSupportRequestParticipants",
|
|
15465
16809
|
"advanceStep",
|
|
15466
16810
|
"approveWorkspaceInvitation",
|
|
15467
16811
|
"archiveAgent",
|
|
@@ -15531,6 +16875,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15531
16875
|
"listSubsetImportRuns",
|
|
15532
16876
|
"listSubsetImports",
|
|
15533
16877
|
"listSubsetImportVendorLists",
|
|
16878
|
+
"listWorkspaceSupportRequestCcCandidates",
|
|
15534
16879
|
"previewSubsetImport",
|
|
15535
16880
|
"previewSubsetImportSelection",
|
|
15536
16881
|
"restoreInstallationForm",
|
|
@@ -15565,7 +16910,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15565
16910
|
"createFolder",
|
|
15566
16911
|
"createGoal",
|
|
15567
16912
|
"createInbox",
|
|
15568
|
-
"
|
|
16913
|
+
"cloneJourneyToCurrent",
|
|
15569
16914
|
"createJourney",
|
|
15570
16915
|
"createJourneyNote",
|
|
15571
16916
|
"createMcpServer",
|
|
@@ -15677,6 +17022,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15677
17022
|
"disableSalesforce",
|
|
15678
17023
|
"disconnectConfluence",
|
|
15679
17024
|
"disconnectHubspot",
|
|
17025
|
+
"switchHubspotToPlatformApp",
|
|
15680
17026
|
"disconnectMondayConnection",
|
|
15681
17027
|
"disconnectSalesforce",
|
|
15682
17028
|
"discordLinkPreflight",
|
|
@@ -15765,10 +17111,12 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15765
17111
|
"getAvailablePhoneNumbers",
|
|
15766
17112
|
"getAvailableSlots",
|
|
15767
17113
|
"getInstallation",
|
|
17114
|
+
"getInstallationAbilitySettings",
|
|
15768
17115
|
"getInstallationReadiness",
|
|
15769
17116
|
"getThemeSettingsSchema",
|
|
15770
17117
|
"getBundleDraft",
|
|
15771
17118
|
"getBundleJourneyCandidate",
|
|
17119
|
+
"getBundlePublishPreview",
|
|
15772
17120
|
"getBundle",
|
|
15773
17121
|
"getBundleVersion",
|
|
15774
17122
|
"getBusinessHoursStatus",
|
|
@@ -15803,6 +17151,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15803
17151
|
"getChatTaskTransitions",
|
|
15804
17152
|
"getChatModelOverride",
|
|
15805
17153
|
"getChatPhoneCalls",
|
|
17154
|
+
"getChatPhoneNumbers",
|
|
15806
17155
|
"getChatSkills",
|
|
15807
17156
|
"getManagerSkills",
|
|
15808
17157
|
"getChatTodos",
|
|
@@ -15817,6 +17166,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15817
17166
|
"getConfluenceStatus",
|
|
15818
17167
|
"getConnectionFieldHomes",
|
|
15819
17168
|
"getInboundRecordStatus",
|
|
17169
|
+
"getOwnerMemberStatus",
|
|
15820
17170
|
"getConnectionSyncCapabilities",
|
|
15821
17171
|
"getConnectionSyncCheckpoint",
|
|
15822
17172
|
"getConnectionSyncConfig",
|
|
@@ -15843,7 +17193,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15843
17193
|
"getDataRecordFilters",
|
|
15844
17194
|
"getDataRecords",
|
|
15845
17195
|
"getDataType",
|
|
15846
|
-
"getDataTypeDraft",
|
|
15847
17196
|
"getDataTypeVersions",
|
|
15848
17197
|
"getDataTypeByUuid",
|
|
15849
17198
|
"getDataTypeBySlug",
|
|
@@ -15880,6 +17229,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15880
17229
|
"getEdgeCaptureInfo",
|
|
15881
17230
|
"getEnrollmentStatusLog",
|
|
15882
17231
|
"getEventRule",
|
|
17232
|
+
"getEventRuleIndex",
|
|
15883
17233
|
"getEventRules",
|
|
15884
17234
|
"getExperiment",
|
|
15885
17235
|
"getExperimentStats",
|
|
@@ -15908,8 +17258,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15908
17258
|
"previewDataReport",
|
|
15909
17259
|
"previewQuery",
|
|
15910
17260
|
"publishSiteSource",
|
|
15911
|
-
"publishDataTypeDraft",
|
|
15912
|
-
"saveDataTypeDraft",
|
|
15913
17261
|
"queryWorkspaceActivity",
|
|
15914
17262
|
"queryWorkspaceActivityLatestSubjects",
|
|
15915
17263
|
"queryWorkspaceActivityOpenItems",
|
|
@@ -15935,6 +17283,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15935
17283
|
"getFolders",
|
|
15936
17284
|
"getGoogleCalendarStatus",
|
|
15937
17285
|
"getGranteeGrants",
|
|
17286
|
+
"getHealthieAppointmentPatientMatches",
|
|
15938
17287
|
"getHealthieAvailableSlots",
|
|
15939
17288
|
"getHealthieReconciliationMatches",
|
|
15940
17289
|
"getHealthieStatus",
|
|
@@ -15943,6 +17292,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15943
17292
|
"getHubspotDealProperties",
|
|
15944
17293
|
"getHubspotForms",
|
|
15945
17294
|
"getHubspotMeetingLinks",
|
|
17295
|
+
"getHubspotCrmObjects",
|
|
15946
17296
|
"getHubspotManagedRules",
|
|
15947
17297
|
"getHubspotObjectProperties",
|
|
15948
17298
|
"getHubspotReconciliationMatches",
|
|
@@ -15970,10 +17320,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15970
17320
|
"getJourneyAuthoring",
|
|
15971
17321
|
"getJourneyFilterOptions",
|
|
15972
17322
|
"getJourneyHealth",
|
|
17323
|
+
"getJourneyHistory",
|
|
15973
17324
|
"getJourneyMembers",
|
|
15974
17325
|
"getJourneyNotes",
|
|
15975
17326
|
"getJourneySendEstimate",
|
|
15976
|
-
"
|
|
17327
|
+
"getJourneyDefinitionValidation",
|
|
15977
17328
|
"getJourneys",
|
|
15978
17329
|
"getLinkablePhones",
|
|
15979
17330
|
"getLinkedHealthieMembers",
|
|
@@ -16022,6 +17373,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
16022
17373
|
"getMyGivenGrants",
|
|
16023
17374
|
"getMyReceivedGrants",
|
|
16024
17375
|
"getNotification",
|
|
17376
|
+
"getNotificationDestinations",
|
|
16025
17377
|
"getNotificationRules",
|
|
16026
17378
|
"getNotifications",
|
|
16027
17379
|
"getOperatorChatMessages",
|
|
@@ -16090,17 +17442,21 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
16090
17442
|
"getStepMembers",
|
|
16091
17443
|
"getSupervisor",
|
|
16092
17444
|
"getSupervisors",
|
|
17445
|
+
"getSyncFailures",
|
|
17446
|
+
"getSyncFailureSummary",
|
|
16093
17447
|
"getSyncRunItems",
|
|
16094
17448
|
"getSyncRunItemsPage",
|
|
16095
17449
|
"getSyncRuns",
|
|
16096
17450
|
"getTask",
|
|
16097
17451
|
"getTaskChats",
|
|
17452
|
+
"getTaskCatalog",
|
|
16098
17453
|
"getTasks",
|
|
16099
17454
|
"getTeamsApp",
|
|
16100
17455
|
"getTeamsAppAccounts",
|
|
16101
17456
|
"getTeamsApps",
|
|
16102
17457
|
"getTeamsConversations",
|
|
16103
17458
|
"getTeamsInstallations",
|
|
17459
|
+
"getTeamsNotificationDestinations",
|
|
16104
17460
|
"getTemplateContext",
|
|
16105
17461
|
"getChatTestRun",
|
|
16106
17462
|
"getTestChatRun",
|
|
@@ -16123,6 +17479,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
16123
17479
|
"getWorkflowFeedback",
|
|
16124
17480
|
"getWorkflowPromptClassifications",
|
|
16125
17481
|
"reviewWorkflowPromptClassifications",
|
|
17482
|
+
"getWorkflowRunnerFileAccess",
|
|
16126
17483
|
"getWorkflowContributors",
|
|
16127
17484
|
"getWorkflowDeletionPreview",
|
|
16128
17485
|
"getWorkflowDiagram",
|
|
@@ -16150,6 +17507,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
16150
17507
|
"getWorkspaceWidgetDomains",
|
|
16151
17508
|
"getWorkspaceSubscriptions",
|
|
16152
17509
|
"getWorkspaceSupportRequest",
|
|
17510
|
+
"getWorkspaceValuesRecord",
|
|
16153
17511
|
"getWorkspaceThemes",
|
|
16154
17512
|
"installBundle",
|
|
16155
17513
|
"grantBundle",
|
|
@@ -16188,12 +17546,15 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
16188
17546
|
"listBundleVersions",
|
|
16189
17547
|
"listBundles",
|
|
16190
17548
|
"listBundleWorkflowCandidates",
|
|
17549
|
+
"getWorkflowBundleMembership",
|
|
16191
17550
|
"updateBundle",
|
|
16192
17551
|
"listBundleInstallations",
|
|
16193
17552
|
"listConfluencePages",
|
|
16194
17553
|
"listConfluenceSpaces",
|
|
16195
17554
|
"listConnectionMemberFieldKeys",
|
|
16196
17555
|
"listContactPermissions",
|
|
17556
|
+
"listMemberImportRunItems",
|
|
17557
|
+
"listMemberImportRuns",
|
|
16197
17558
|
"revokeBundleGrant",
|
|
16198
17559
|
"rollbackSiteSource",
|
|
16199
17560
|
"rotateDocumoFaxCredentials",
|
|
@@ -16254,7 +17615,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
16254
17615
|
"publishBundle",
|
|
16255
17616
|
"publishWorkflowRevision",
|
|
16256
17617
|
"putJourneyDraft",
|
|
16257
|
-
"
|
|
17618
|
+
"putJourneyDefinition",
|
|
16258
17619
|
"rateMessage",
|
|
16259
17620
|
"getChatFeedback",
|
|
16260
17621
|
"reenrollMember",
|
|
@@ -16306,6 +17667,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
16306
17667
|
"skipStep",
|
|
16307
17668
|
"startConfluenceOAuth",
|
|
16308
17669
|
"startHubspotOAuth",
|
|
17670
|
+
"startMemberImportRun",
|
|
16309
17671
|
"startSalesforceOAuth",
|
|
16310
17672
|
"startSyncRun",
|
|
16311
17673
|
"captureScenarioDraft",
|
|
@@ -16317,6 +17679,12 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
16317
17679
|
"testFhirConnection",
|
|
16318
17680
|
"testMcpServerConnection",
|
|
16319
17681
|
"testMondayConnection",
|
|
17682
|
+
"listJourneyTests",
|
|
17683
|
+
"createJourneyTest",
|
|
17684
|
+
"updateJourneyTest",
|
|
17685
|
+
"deleteJourneyTest",
|
|
17686
|
+
"runJourneyTests",
|
|
17687
|
+
"simulateJourney",
|
|
16320
17688
|
"testRunJourney",
|
|
16321
17689
|
"toggleFieldIndex",
|
|
16322
17690
|
"unarchiveAgent",
|
|
@@ -16425,8 +17793,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
16425
17793
|
"upsertDataRecord",
|
|
16426
17794
|
"upsertWidgetDomain",
|
|
16427
17795
|
"validateCelExpression",
|
|
17796
|
+
"validateConnectionSyncConfig",
|
|
16428
17797
|
"validateDataTypeSlug",
|
|
17798
|
+
"validateMondaySyncConfig",
|
|
16429
17799
|
"validateQuery",
|
|
17800
|
+
"validateSalesforceSyncConfig",
|
|
16430
17801
|
"validateWorkflowName",
|
|
16431
17802
|
"verifyAthenaAccess",
|
|
16432
17803
|
"verifyClaimMdKey",
|
|
@@ -16492,11 +17863,14 @@ function bindAgentsMethods(target, agents) {
|
|
|
16492
17863
|
target.deleteAgent = agents.deleteAgent.bind(agents);
|
|
16493
17864
|
target.archiveAgent = agents.archiveAgent.bind(agents);
|
|
16494
17865
|
target.unarchiveAgent = agents.unarchiveAgent.bind(agents);
|
|
17866
|
+
target.getOrgAgentJobs = agents.getOrgAgentJobs.bind(agents);
|
|
17867
|
+
target.stopOrgAgentJob = agents.stopOrgAgentJob.bind(agents);
|
|
16495
17868
|
}
|
|
16496
17869
|
|
|
16497
17870
|
// src/client/bindings/tasks.ts
|
|
16498
17871
|
function bindTasksMethods(target, tasks, abilities) {
|
|
16499
17872
|
target.getTasks = tasks.getTasks.bind(tasks);
|
|
17873
|
+
target.getTaskCatalog = tasks.getTaskCatalog.bind(tasks);
|
|
16500
17874
|
target.getTask = tasks.getTask.bind(tasks);
|
|
16501
17875
|
target.createTask = tasks.createTask.bind(tasks);
|
|
16502
17876
|
target.updateTask = tasks.updateTask.bind(tasks);
|
|
@@ -16515,6 +17889,7 @@ function bindTasksMethods(target, tasks, abilities) {
|
|
|
16515
17889
|
|
|
16516
17890
|
// src/client/bindings/chats.ts
|
|
16517
17891
|
function bindChatsMethods(target, chats) {
|
|
17892
|
+
target.chat = chats.chat.bind(chats);
|
|
16518
17893
|
target.createChatInteractionSession = chats.createChatInteractionSession.bind(chats);
|
|
16519
17894
|
target.transitionChatInteractionSession = chats.transitionChatInteractionSession.bind(chats);
|
|
16520
17895
|
target.getChats = chats.getChats.bind(chats);
|
|
@@ -16558,6 +17933,8 @@ function bindChatsMethods(target, chats) {
|
|
|
16558
17933
|
target.createChatCompletion = chats.createChatCompletion.bind(chats);
|
|
16559
17934
|
target.exportChats = chats.exportChats.bind(chats);
|
|
16560
17935
|
target.exportChat = chats.exportChat.bind(chats);
|
|
17936
|
+
target.listChatStaffNotes = chats.listChatStaffNotes.bind(chats);
|
|
17937
|
+
target.createChatStaffNote = chats.createChatStaffNote.bind(chats);
|
|
16561
17938
|
target.findOrCreateDMChat = chats.findOrCreateDMChat.bind(chats);
|
|
16562
17939
|
target.sendChatMessage = chats.sendChatMessage.bind(chats);
|
|
16563
17940
|
target.getChatPhoneCalls = chats.getChatPhoneCalls.bind(chats);
|
|
@@ -16607,6 +17984,9 @@ function bindActivityMethods(target, activity) {
|
|
|
16607
17984
|
target.queryActivityOneView = activity.queryActivityOneView.bind(activity);
|
|
16608
17985
|
target.queryActivityDigest = activity.queryActivityDigest.bind(activity);
|
|
16609
17986
|
target.getActivityCounts = activity.getActivityCounts.bind(activity);
|
|
17987
|
+
target.queryActivityNotifications = activity.queryActivityNotifications.bind(activity);
|
|
17988
|
+
target.getActivityNotificationCount = activity.getActivityNotificationCount.bind(activity);
|
|
17989
|
+
target.markActivityNotifications = activity.markActivityNotifications.bind(activity);
|
|
16610
17990
|
target.getActivityCapabilities = activity.getActivityCapabilities.bind(activity);
|
|
16611
17991
|
target.queryOrgActivity = activity.queryOrgActivity.bind(activity);
|
|
16612
17992
|
target.queryOrgActivityLatestSubjects = activity.queryOrgActivityLatestSubjects.bind(activity);
|
|
@@ -16646,9 +18026,6 @@ function bindTrackedLinksMethods(target, trackedLinks) {
|
|
|
16646
18026
|
function bindDataTypesMethods(target, dataTypes) {
|
|
16647
18027
|
target.getAnonymousFormSchema = dataTypes.getAnonymousFormSchema.bind(dataTypes);
|
|
16648
18028
|
target.submitAnonymousForm = dataTypes.submitAnonymousForm.bind(dataTypes);
|
|
16649
|
-
target.getDataTypeDraft = dataTypes.getDataTypeDraft.bind(dataTypes);
|
|
16650
|
-
target.saveDataTypeDraft = dataTypes.saveDataTypeDraft.bind(dataTypes);
|
|
16651
|
-
target.publishDataTypeDraft = dataTypes.publishDataTypeDraft.bind(dataTypes);
|
|
16652
18029
|
target.getDataTypeVersions = dataTypes.getDataTypeVersions.bind(dataTypes);
|
|
16653
18030
|
target.getDataTypes = dataTypes.getDataTypes.bind(dataTypes);
|
|
16654
18031
|
target.getDataType = dataTypes.getDataType.bind(dataTypes);
|
|
@@ -16661,6 +18038,7 @@ function bindDataTypesMethods(target, dataTypes) {
|
|
|
16661
18038
|
target.unarchiveDataType = dataTypes.unarchiveDataType.bind(dataTypes);
|
|
16662
18039
|
target.cloneDataType = dataTypes.cloneDataType.bind(dataTypes);
|
|
16663
18040
|
target.getDataRecords = dataTypes.getDataRecords.bind(dataTypes);
|
|
18041
|
+
target.getWorkspaceValuesRecord = dataTypes.getWorkspaceValuesRecord.bind(dataTypes);
|
|
16664
18042
|
target.listAnonymousFormSubmissions = dataTypes.listAnonymousFormSubmissions.bind(dataTypes);
|
|
16665
18043
|
target.getAnonymousFormSubmission = dataTypes.getAnonymousFormSubmission.bind(dataTypes);
|
|
16666
18044
|
target.getDataRecord = dataTypes.getDataRecord.bind(dataTypes);
|
|
@@ -16706,6 +18084,7 @@ function bindMembersMethods(target, members) {
|
|
|
16706
18084
|
target.updateCurrentMember = members.updateCurrentMember.bind(members);
|
|
16707
18085
|
target.getWorkspaceMembers = members.getWorkspaceMembers.bind(members);
|
|
16708
18086
|
target.getWorkspaceMember = members.getWorkspaceMember.bind(members);
|
|
18087
|
+
target.getMemberSmsSenders = members.getMemberSmsSenders.bind(members);
|
|
16709
18088
|
target.getMemberByUuid = members.getMemberByUuid.bind(members);
|
|
16710
18089
|
target.getOrgWorkspaceMember = members.getOrgWorkspaceMember.bind(members);
|
|
16711
18090
|
target.createWorkspaceMember = members.createWorkspaceMember.bind(members);
|
|
@@ -16720,6 +18099,9 @@ function bindMembersMethods(target, members) {
|
|
|
16720
18099
|
target.bulkCreateMembers = members.bulkCreateMembers.bind(members);
|
|
16721
18100
|
target.previewImportMembers = members.previewImportMembers.bind(members);
|
|
16722
18101
|
target.importMembers = members.importMembers.bind(members);
|
|
18102
|
+
target.startMemberImportRun = members.startMemberImportRun.bind(members);
|
|
18103
|
+
target.listMemberImportRuns = members.listMemberImportRuns.bind(members);
|
|
18104
|
+
target.listMemberImportRunItems = members.listMemberImportRunItems.bind(members);
|
|
16723
18105
|
target.exportMembers = members.exportMembers.bind(members);
|
|
16724
18106
|
target.getMembersMessageActivity = members.getMembersMessageActivity.bind(members);
|
|
16725
18107
|
target.getMemberFilters = members.getMemberFilters.bind(members);
|
|
@@ -16820,6 +18202,11 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
16820
18202
|
target.getWorkspaceBySlug = workspaces.getWorkspace.bind(workspaces);
|
|
16821
18203
|
target.getWorkspaceScopes = workspaces.getWorkspaceScopes.bind(workspaces);
|
|
16822
18204
|
target.getUsageDashboard = workspaces.getUsageDashboard.bind(workspaces);
|
|
18205
|
+
target.getNotificationPreferences = workspaces.getNotificationPreferences.bind(workspaces);
|
|
18206
|
+
target.setWorkspaceNotificationMute = workspaces.setWorkspaceNotificationMute.bind(workspaces);
|
|
18207
|
+
target.registerAccountPushSubscription = workspaces.registerAccountPushSubscription.bind(workspaces);
|
|
18208
|
+
target.unregisterAccountPushSubscription = workspaces.unregisterAccountPushSubscription.bind(workspaces);
|
|
18209
|
+
target.listAccountPushSubscriptions = workspaces.listAccountPushSubscriptions.bind(workspaces);
|
|
16823
18210
|
target.getVapidPublicKey = workspaces.getVapidPublicKey.bind(workspaces);
|
|
16824
18211
|
target.testPushSubscription = workspaces.testPushSubscription.bind(workspaces);
|
|
16825
18212
|
target.registerPushSubscription = workspaces.registerPushSubscription.bind(workspaces);
|
|
@@ -16853,6 +18240,7 @@ function bindAuthMethods(target, auth, assignments) {
|
|
|
16853
18240
|
target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
|
|
16854
18241
|
target.getUserAccount = auth.getUserAccount.bind(auth);
|
|
16855
18242
|
target.updateUserAccount = auth.updateUserAccount.bind(auth);
|
|
18243
|
+
target.updateMemberAvatar = auth.updateMemberAvatar.bind(auth);
|
|
16856
18244
|
target.recordAcquisition = auth.recordAcquisition.bind(auth);
|
|
16857
18245
|
target.login = auth.login.bind(auth);
|
|
16858
18246
|
target.resendCode = auth.resendCode.bind(auth);
|
|
@@ -17021,6 +18409,7 @@ function bindProjectsMethods(target, projects) {
|
|
|
17021
18409
|
// src/client/bindings/events.ts
|
|
17022
18410
|
function bindEventsMethods(target, events) {
|
|
17023
18411
|
target.getEventRules = events.getEventRules.bind(events);
|
|
18412
|
+
target.getEventRuleIndex = events.getEventRuleIndex.bind(events);
|
|
17024
18413
|
target.getAvailableActions = events.getAvailableActions.bind(events);
|
|
17025
18414
|
target.searchEventRules = events.searchEventRules.bind(events);
|
|
17026
18415
|
target.getEventRule = events.getEventRule.bind(events);
|
|
@@ -17085,6 +18474,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
17085
18474
|
target.getWorkflowConfigValidation = workflows.getWorkflowConfigValidation.bind(workflows);
|
|
17086
18475
|
target.getWorkflowPromptClassifications = workflows.getWorkflowPromptClassifications.bind(workflows);
|
|
17087
18476
|
target.reviewWorkflowPromptClassifications = workflows.reviewWorkflowPromptClassifications.bind(workflows);
|
|
18477
|
+
target.getWorkflowRunnerFileAccess = workflows.getWorkflowRunnerFileAccess.bind(workflows);
|
|
17088
18478
|
target.getWorkflowNotes = workflowNotes.getWorkflowNotes.bind(workflowNotes);
|
|
17089
18479
|
target.createWorkflowNote = workflowNotes.createWorkflowNote.bind(workflowNotes);
|
|
17090
18480
|
target.updateWorkflowNote = workflowNotes.updateWorkflowNote.bind(workflowNotes);
|
|
@@ -17152,6 +18542,7 @@ function bindCalendarsMethods(target, calendars) {
|
|
|
17152
18542
|
// src/client/bindings/communications.ts
|
|
17153
18543
|
function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRules) {
|
|
17154
18544
|
target.getPhoneNumbers = phoneNumbers.getPhoneNumbers.bind(phoneNumbers);
|
|
18545
|
+
target.getChatPhoneNumbers = phoneNumbers.getChatPhoneNumbers.bind(phoneNumbers);
|
|
17155
18546
|
target.getAvailablePhoneNumbers = phoneNumbers.getAvailablePhoneNumbers.bind(phoneNumbers);
|
|
17156
18547
|
target.requestPhoneNumber = phoneNumbers.requestPhoneNumber.bind(phoneNumbers);
|
|
17157
18548
|
target.getPhoneNumber = phoneNumbers.getPhoneNumber.bind(phoneNumbers);
|
|
@@ -17199,6 +18590,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
17199
18590
|
target.createNotificationRule = notificationRules.createNotificationRule.bind(notificationRules);
|
|
17200
18591
|
target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
|
|
17201
18592
|
target.deleteNotificationRule = notificationRules.deleteNotificationRule.bind(notificationRules);
|
|
18593
|
+
target.getNotificationDestinations = notificationRules.getNotificationDestinations.bind(notificationRules);
|
|
17202
18594
|
}
|
|
17203
18595
|
|
|
17204
18596
|
// src/client/bindings/toolkits.ts
|
|
@@ -17299,6 +18691,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
17299
18691
|
target.denyAuthorization = oauth.denyAuthorization.bind(oauth);
|
|
17300
18692
|
target.getOAuthConsentClient = oauth.getOAuthConsentClient.bind(oauth);
|
|
17301
18693
|
target.getMcpConsentTargets = oauth.getMcpConsentTargets.bind(oauth);
|
|
18694
|
+
target.getConsentTargets = oauth.getConsentTargets.bind(oauth);
|
|
17302
18695
|
target.listMcpGrants = oauth.listMcpGrants.bind(oauth);
|
|
17303
18696
|
target.narrowMcpGrant = oauth.narrowMcpGrant.bind(oauth);
|
|
17304
18697
|
target.revokeMcpGrant = oauth.revokeMcpGrant.bind(oauth);
|
|
@@ -17331,6 +18724,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
17331
18724
|
target.getMondaySyncConfig = mondayIntegration.getMondaySyncConfig.bind(mondayIntegration);
|
|
17332
18725
|
target.getMondaySyncLogs = mondayIntegration.getMondaySyncLogs.bind(mondayIntegration);
|
|
17333
18726
|
target.updateMondaySyncConfig = mondayIntegration.updateMondaySyncConfig.bind(mondayIntegration);
|
|
18727
|
+
target.validateMondaySyncConfig = mondayIntegration.validateMondaySyncConfig.bind(mondayIntegration);
|
|
17334
18728
|
target.getLinkedMondayMembers = mondayIntegration.getLinkedMondayMembers.bind(mondayIntegration);
|
|
17335
18729
|
target.getMondayReconciliationMatches = mondayIntegration.getMondayReconciliationMatches.bind(mondayIntegration);
|
|
17336
18730
|
target.linkMemberToMonday = mondayIntegration.linkMemberToMonday.bind(mondayIntegration);
|
|
@@ -17374,6 +18768,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
17374
18768
|
target.getTeamsConversations = teamsApps.getTeamsConversations.bind(teamsApps);
|
|
17375
18769
|
target.getTeamsInstallations = teamsApps.getTeamsInstallations.bind(teamsApps);
|
|
17376
18770
|
target.getTeamsAppAccounts = teamsApps.getTeamsAppAccounts.bind(teamsApps);
|
|
18771
|
+
target.getTeamsNotificationDestinations = teamsApps.getTeamsNotificationDestinations.bind(teamsApps);
|
|
17377
18772
|
target.getFhirConnections = fhirConnections.getFhirConnections.bind(fhirConnections);
|
|
17378
18773
|
target.getFhirConnection = fhirConnections.getFhirConnection.bind(fhirConnections);
|
|
17379
18774
|
target.getFhirConnectionByUuid = fhirConnections.getFhirConnectionByUuid.bind(fhirConnections);
|
|
@@ -17433,6 +18828,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
17433
18828
|
target.syncCalendarWithHealthie = healthie.syncCalendarWithHealthie.bind(healthie);
|
|
17434
18829
|
target.getLinkedHealthieMembers = healthie.getLinkedHealthieMembers.bind(healthie);
|
|
17435
18830
|
target.getHealthieReconciliationMatches = healthie.getHealthieReconciliationMatches.bind(healthie);
|
|
18831
|
+
target.getHealthieAppointmentPatientMatches = healthie.getHealthieAppointmentPatientMatches.bind(healthie);
|
|
17436
18832
|
target.linkMemberToHealthie = healthie.linkMemberToHealthie.bind(healthie);
|
|
17437
18833
|
target.unlinkMemberFromHealthie = healthie.unlinkMemberFromHealthie.bind(healthie);
|
|
17438
18834
|
target.listHealthieAppointmentTypes = healthie.listHealthieAppointmentTypes.bind(healthie);
|
|
@@ -17465,6 +18861,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
17465
18861
|
target.getSalesforceSyncConfig = salesforce.getSalesforceSyncConfig.bind(salesforce);
|
|
17466
18862
|
target.getSalesforceSyncLogs = salesforce.getSalesforceSyncLogs.bind(salesforce);
|
|
17467
18863
|
target.updateSalesforceSyncConfig = salesforce.updateSalesforceSyncConfig.bind(salesforce);
|
|
18864
|
+
target.validateSalesforceSyncConfig = salesforce.validateSalesforceSyncConfig.bind(salesforce);
|
|
17468
18865
|
target.resyncSalesforceLinkedMembers = salesforce.resyncSalesforceLinkedMembers.bind(salesforce);
|
|
17469
18866
|
target.listSalesforceObjects = salesforce.listSalesforceObjects.bind(salesforce);
|
|
17470
18867
|
target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
|
|
@@ -17480,6 +18877,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
17480
18877
|
target.startHubspotOAuth = hubspot.startHubspotOAuth.bind(hubspot);
|
|
17481
18878
|
target.getHubspotStatus = hubspot.getHubspotStatus.bind(hubspot);
|
|
17482
18879
|
target.disconnectHubspot = hubspot.disconnectHubspot.bind(hubspot);
|
|
18880
|
+
target.switchHubspotToPlatformApp = hubspot.switchHubspotToPlatformApp.bind(hubspot);
|
|
17483
18881
|
target.disableHubspot = hubspot.disableHubspot.bind(hubspot);
|
|
17484
18882
|
target.enableHubspot = hubspot.enableHubspot.bind(hubspot);
|
|
17485
18883
|
target.deleteHubspot = hubspot.deleteHubspot.bind(hubspot);
|
|
@@ -17494,6 +18892,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
17494
18892
|
target.getHubspotDealProperties = hubspot.getHubspotDealProperties.bind(hubspot);
|
|
17495
18893
|
target.getHubspotForms = hubspot.getHubspotForms.bind(hubspot);
|
|
17496
18894
|
target.getHubspotMeetingLinks = hubspot.getHubspotMeetingLinks.bind(hubspot);
|
|
18895
|
+
target.getHubspotCrmObjects = hubspot.getHubspotCrmObjects.bind(hubspot);
|
|
17497
18896
|
target.getHubspotObjectProperties = hubspot.getHubspotObjectProperties.bind(hubspot);
|
|
17498
18897
|
target.getHubspotManagedRules = hubspot.getHubspotManagedRules.bind(hubspot);
|
|
17499
18898
|
target.getHubspotSyncLogs = hubspot.getHubspotSyncLogs.bind(hubspot);
|
|
@@ -17501,14 +18900,18 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
17501
18900
|
target.getConnectionSyncCapabilities = connectionSync.getConnectionSyncCapabilities.bind(connectionSync);
|
|
17502
18901
|
target.getConnectionSyncConfig = connectionSync.getConnectionSyncConfig.bind(connectionSync);
|
|
17503
18902
|
target.updateConnectionSyncConfig = connectionSync.updateConnectionSyncConfig.bind(connectionSync);
|
|
18903
|
+
target.validateConnectionSyncConfig = connectionSync.validateConnectionSyncConfig.bind(connectionSync);
|
|
17504
18904
|
target.getConnectionSyncCheckpoint = connectionSync.getConnectionSyncCheckpoint.bind(connectionSync);
|
|
17505
18905
|
target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
|
|
17506
18906
|
target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
|
|
17507
18907
|
target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
|
|
17508
18908
|
target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
|
|
17509
18909
|
target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
|
|
18910
|
+
target.getSyncFailureSummary = connectionSync.getSyncFailureSummary.bind(connectionSync);
|
|
18911
|
+
target.getSyncFailures = connectionSync.getSyncFailures.bind(connectionSync);
|
|
17510
18912
|
target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
|
|
17511
18913
|
target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
|
|
18914
|
+
target.getOwnerMemberStatus = connectionSync.getOwnerMemberStatus.bind(connectionSync);
|
|
17512
18915
|
target.getConnectionWritePreview = connectionSync.getConnectionWritePreview.bind(connectionSync);
|
|
17513
18916
|
target.clearConnectionMemberExclusion = connectionSync.clearConnectionMemberExclusion.bind(connectionSync);
|
|
17514
18917
|
target.linkUnlinkedMembersByIdentity = connectionSync.linkUnlinkedMembersByIdentity.bind(connectionSync);
|
|
@@ -17552,13 +18955,6 @@ function bindOperatorMethods(target, operatorGroups) {
|
|
|
17552
18955
|
|
|
17553
18956
|
// src/client/bindings/org.ts
|
|
17554
18957
|
function bindOrgMethods(target, org) {
|
|
17555
|
-
target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
|
|
17556
|
-
target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
|
|
17557
|
-
target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
|
|
17558
|
-
target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
|
|
17559
|
-
target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
|
|
17560
|
-
target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
|
|
17561
|
-
target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
|
|
17562
18958
|
target.listOrgDomains = org.listOrgDomains.bind(org);
|
|
17563
18959
|
target.registerOrgDomain = org.registerOrgDomain.bind(org);
|
|
17564
18960
|
target.getOrgDomain = org.getOrgDomain.bind(org);
|
|
@@ -17647,11 +19043,13 @@ function bindBundlesMethods(target, bundles, resourceWorkflows) {
|
|
|
17647
19043
|
target.listBundleInstallations = bundles.listBundleInstallations.bind(bundles);
|
|
17648
19044
|
target.listBundles = bundles.listBundles.bind(bundles);
|
|
17649
19045
|
target.listBundleWorkflowCandidates = bundles.listBundleWorkflowCandidates.bind(bundles);
|
|
19046
|
+
target.getWorkflowBundleMembership = bundles.getWorkflowBundleMembership.bind(bundles);
|
|
17650
19047
|
target.listBundleJourneyCandidates = bundles.listBundleJourneyCandidates.bind(bundles);
|
|
17651
19048
|
target.getBundleJourneyCandidate = bundles.getBundleJourneyCandidate.bind(bundles);
|
|
17652
19049
|
target.createBundle = bundles.createBundle.bind(bundles);
|
|
17653
19050
|
target.getBundleDraft = bundles.getBundleDraft.bind(bundles);
|
|
17654
19051
|
target.replaceBundleDraft = bundles.replaceBundleDraft.bind(bundles);
|
|
19052
|
+
target.getBundlePublishPreview = bundles.getBundlePublishPreview.bind(bundles);
|
|
17655
19053
|
target.publishBundle = bundles.publishBundle.bind(bundles);
|
|
17656
19054
|
target.listBundleVersions = bundles.listBundleVersions.bind(bundles);
|
|
17657
19055
|
target.getBundle = bundles.getBundle.bind(bundles);
|
|
@@ -17669,6 +19067,7 @@ function bindInstallationsMethods(target, installations) {
|
|
|
17669
19067
|
target.listInstallations = installations.listInstallations.bind(installations);
|
|
17670
19068
|
target.getInstallation = installations.getInstallation.bind(installations);
|
|
17671
19069
|
target.getInstallationReadiness = installations.getInstallationReadiness.bind(installations);
|
|
19070
|
+
target.getInstallationAbilitySettings = installations.getInstallationAbilitySettings.bind(installations);
|
|
17672
19071
|
target.previewInstallationUpgrade = installations.previewInstallationUpgrade.bind(installations);
|
|
17673
19072
|
target.upgradeInstallation = installations.upgradeInstallation.bind(installations);
|
|
17674
19073
|
target.setInstallationPolicy = installations.setInstallationPolicy.bind(installations);
|
|
@@ -17682,17 +19081,24 @@ function bindInstallationsMethods(target, installations) {
|
|
|
17682
19081
|
|
|
17683
19082
|
// src/client/bindings/journeys.ts
|
|
17684
19083
|
function bindJourneysMethods(target, journeys) {
|
|
19084
|
+
target.listJourneyTests = journeys.listJourneyTests.bind(journeys);
|
|
19085
|
+
target.createJourneyTest = journeys.createJourneyTest.bind(journeys);
|
|
19086
|
+
target.updateJourneyTest = journeys.updateJourneyTest.bind(journeys);
|
|
19087
|
+
target.deleteJourneyTest = journeys.deleteJourneyTest.bind(journeys);
|
|
19088
|
+
target.runJourneyTests = journeys.runJourneyTests.bind(journeys);
|
|
19089
|
+
target.simulateJourney = journeys.simulateJourney.bind(journeys);
|
|
17685
19090
|
target.getJourneys = journeys.getJourneys.bind(journeys);
|
|
17686
19091
|
target.getJourney = journeys.getJourney.bind(journeys);
|
|
17687
19092
|
target.getJourneyAuthoring = journeys.getJourneyAuthoring.bind(journeys);
|
|
17688
19093
|
target.putJourneyDraft = journeys.putJourneyDraft.bind(journeys);
|
|
17689
19094
|
target.deleteJourneyDraft = journeys.deleteJourneyDraft.bind(journeys);
|
|
17690
|
-
target.
|
|
17691
|
-
target.
|
|
19095
|
+
target.putJourneyDefinition = journeys.putJourneyDefinition.bind(journeys);
|
|
19096
|
+
target.getJourneyDefinitionValidation = journeys.getJourneyDefinitionValidation.bind(journeys);
|
|
17692
19097
|
target.getJourneyFilterOptions = journeys.getJourneyFilterOptions.bind(journeys);
|
|
17693
19098
|
target.getJourneyHealth = journeys.getJourneyHealth.bind(journeys);
|
|
19099
|
+
target.getJourneyHistory = journeys.getJourneyHistory.bind(journeys);
|
|
17694
19100
|
target.getJourneySendEstimate = journeys.getJourneySendEstimate.bind(journeys);
|
|
17695
|
-
target.
|
|
19101
|
+
target.cloneJourneyToCurrent = journeys.cloneJourneyToCurrent.bind(journeys);
|
|
17696
19102
|
target.createJourney = journeys.createJourney.bind(journeys);
|
|
17697
19103
|
target.updateJourney = journeys.updateJourney.bind(journeys);
|
|
17698
19104
|
target.archiveJourney = journeys.archiveJourney.bind(journeys);
|
|
@@ -17840,6 +19246,10 @@ function bindSupportRequestMethods(target, supportRequests) {
|
|
|
17840
19246
|
target.closeWorkspaceSupportRequest = supportRequests.closeWorkspaceSupportRequest.bind(supportRequests);
|
|
17841
19247
|
target.reopenWorkspaceSupportRequest = supportRequests.reopenWorkspaceSupportRequest.bind(supportRequests);
|
|
17842
19248
|
target.clickWorkspaceSupportRequestResource = supportRequests.clickWorkspaceSupportRequestResource.bind(supportRequests);
|
|
19249
|
+
target.listOrgSupportRequestCcCandidates = supportRequests.listOrgSupportRequestCcCandidates.bind(supportRequests);
|
|
19250
|
+
target.addOrgSupportRequestParticipants = supportRequests.addOrgSupportRequestParticipants.bind(supportRequests);
|
|
19251
|
+
target.listWorkspaceSupportRequestCcCandidates = supportRequests.listWorkspaceSupportRequestCcCandidates.bind(supportRequests);
|
|
19252
|
+
target.addWorkspaceSupportRequestParticipants = supportRequests.addWorkspaceSupportRequestParticipants.bind(supportRequests);
|
|
17843
19253
|
}
|
|
17844
19254
|
|
|
17845
19255
|
// src/client/bindings/routing-rules.ts
|
|
@@ -17876,6 +19286,7 @@ var GravityRailClient = class {
|
|
|
17876
19286
|
apis;
|
|
17877
19287
|
// Tasks API
|
|
17878
19288
|
getTasks;
|
|
19289
|
+
getTaskCatalog;
|
|
17879
19290
|
getTask;
|
|
17880
19291
|
createTask;
|
|
17881
19292
|
updateTask;
|
|
@@ -17891,6 +19302,7 @@ var GravityRailClient = class {
|
|
|
17891
19302
|
deleteAbility;
|
|
17892
19303
|
getCharlestonTestDeliveryRecipients;
|
|
17893
19304
|
// Chats API
|
|
19305
|
+
chat;
|
|
17894
19306
|
getChats;
|
|
17895
19307
|
getChat;
|
|
17896
19308
|
getChatByUuid;
|
|
@@ -17934,6 +19346,8 @@ var GravityRailClient = class {
|
|
|
17934
19346
|
createChatCompletion;
|
|
17935
19347
|
exportChats;
|
|
17936
19348
|
exportChat;
|
|
19349
|
+
listChatStaffNotes;
|
|
19350
|
+
createChatStaffNote;
|
|
17937
19351
|
findOrCreateDMChat;
|
|
17938
19352
|
sendChatMessage;
|
|
17939
19353
|
getChatPhoneCalls;
|
|
@@ -17962,9 +19376,6 @@ var GravityRailClient = class {
|
|
|
17962
19376
|
getAnonymousFormSchema;
|
|
17963
19377
|
submitAnonymousForm;
|
|
17964
19378
|
getDataTypes;
|
|
17965
|
-
getDataTypeDraft;
|
|
17966
|
-
saveDataTypeDraft;
|
|
17967
|
-
publishDataTypeDraft;
|
|
17968
19379
|
getDataTypeVersions;
|
|
17969
19380
|
getDataType;
|
|
17970
19381
|
getDataTypeByUuid;
|
|
@@ -17976,6 +19387,7 @@ var GravityRailClient = class {
|
|
|
17976
19387
|
unarchiveDataType;
|
|
17977
19388
|
cloneDataType;
|
|
17978
19389
|
getDataRecords;
|
|
19390
|
+
getWorkspaceValuesRecord;
|
|
17979
19391
|
listAnonymousFormSubmissions;
|
|
17980
19392
|
getAnonymousFormSubmission;
|
|
17981
19393
|
getDataRecord;
|
|
@@ -18008,6 +19420,7 @@ var GravityRailClient = class {
|
|
|
18008
19420
|
updateCurrentMember;
|
|
18009
19421
|
getWorkspaceMembers;
|
|
18010
19422
|
getWorkspaceMember;
|
|
19423
|
+
getMemberSmsSenders;
|
|
18011
19424
|
getMemberByUuid;
|
|
18012
19425
|
// Org-scoped, so deliberately absent from WORKSPACE_METHOD_NAMES: that proxy
|
|
18013
19426
|
// passes a workspace uuid as the first argument.
|
|
@@ -18024,6 +19437,9 @@ var GravityRailClient = class {
|
|
|
18024
19437
|
bulkCreateMembers;
|
|
18025
19438
|
previewImportMembers;
|
|
18026
19439
|
importMembers;
|
|
19440
|
+
startMemberImportRun;
|
|
19441
|
+
listMemberImportRuns;
|
|
19442
|
+
listMemberImportRunItems;
|
|
18027
19443
|
exportMembers;
|
|
18028
19444
|
getMembersMessageActivity;
|
|
18029
19445
|
getMemberFilters;
|
|
@@ -18083,6 +19499,8 @@ var GravityRailClient = class {
|
|
|
18083
19499
|
deleteAgent;
|
|
18084
19500
|
archiveAgent;
|
|
18085
19501
|
unarchiveAgent;
|
|
19502
|
+
getOrgAgentJobs;
|
|
19503
|
+
stopOrgAgentJob;
|
|
18086
19504
|
// Qualifications API
|
|
18087
19505
|
getQualifications;
|
|
18088
19506
|
getQualification;
|
|
@@ -18150,6 +19568,11 @@ var GravityRailClient = class {
|
|
|
18150
19568
|
queryActivityOneView;
|
|
18151
19569
|
queryActivityDigest;
|
|
18152
19570
|
getActivityCounts;
|
|
19571
|
+
// The one global notification feed, its bell number, and its mark action.
|
|
19572
|
+
// All three are account-authorized self endpoints.
|
|
19573
|
+
queryActivityNotifications;
|
|
19574
|
+
getActivityNotificationCount;
|
|
19575
|
+
markActivityNotifications;
|
|
18153
19576
|
getActivityCapabilities;
|
|
18154
19577
|
queryOrgActivity;
|
|
18155
19578
|
queryOrgActivityLatestSubjects;
|
|
@@ -18187,12 +19610,13 @@ var GravityRailClient = class {
|
|
|
18187
19610
|
getJourneyAuthoring;
|
|
18188
19611
|
putJourneyDraft;
|
|
18189
19612
|
deleteJourneyDraft;
|
|
18190
|
-
|
|
18191
|
-
|
|
19613
|
+
putJourneyDefinition;
|
|
19614
|
+
getJourneyDefinitionValidation;
|
|
18192
19615
|
getJourneyFilterOptions;
|
|
18193
19616
|
getJourneyHealth;
|
|
19617
|
+
getJourneyHistory;
|
|
18194
19618
|
getJourneySendEstimate;
|
|
18195
|
-
|
|
19619
|
+
cloneJourneyToCurrent;
|
|
18196
19620
|
createJourney;
|
|
18197
19621
|
updateJourney;
|
|
18198
19622
|
archiveJourney;
|
|
@@ -18217,6 +19641,12 @@ var GravityRailClient = class {
|
|
|
18217
19641
|
getStepMemberCounts;
|
|
18218
19642
|
advanceStep;
|
|
18219
19643
|
skipStep;
|
|
19644
|
+
listJourneyTests;
|
|
19645
|
+
createJourneyTest;
|
|
19646
|
+
updateJourneyTest;
|
|
19647
|
+
deleteJourneyTest;
|
|
19648
|
+
runJourneyTests;
|
|
19649
|
+
simulateJourney;
|
|
18220
19650
|
testRunJourney;
|
|
18221
19651
|
getJourneyNotes;
|
|
18222
19652
|
createJourneyNote;
|
|
@@ -18229,11 +19659,13 @@ var GravityRailClient = class {
|
|
|
18229
19659
|
getPublicBundle;
|
|
18230
19660
|
listBundles;
|
|
18231
19661
|
listBundleWorkflowCandidates;
|
|
19662
|
+
getWorkflowBundleMembership;
|
|
18232
19663
|
listBundleJourneyCandidates;
|
|
18233
19664
|
getBundleJourneyCandidate;
|
|
18234
19665
|
createBundle;
|
|
18235
19666
|
getBundleDraft;
|
|
18236
19667
|
replaceBundleDraft;
|
|
19668
|
+
getBundlePublishPreview;
|
|
18237
19669
|
publishBundle;
|
|
18238
19670
|
listBundleVersions;
|
|
18239
19671
|
getBundle;
|
|
@@ -18251,6 +19683,7 @@ var GravityRailClient = class {
|
|
|
18251
19683
|
listInstallations;
|
|
18252
19684
|
getInstallation;
|
|
18253
19685
|
getInstallationReadiness;
|
|
19686
|
+
getInstallationAbilitySettings;
|
|
18254
19687
|
previewInstallationUpgrade;
|
|
18255
19688
|
upgradeInstallation;
|
|
18256
19689
|
setInstallationPolicy;
|
|
@@ -18366,13 +19799,6 @@ var GravityRailClient = class {
|
|
|
18366
19799
|
upsertWidgetDomain;
|
|
18367
19800
|
deleteWidgetDomain;
|
|
18368
19801
|
// Org API
|
|
18369
|
-
getOrgManagerCredentialResponse;
|
|
18370
|
-
authorizeOrgManagerDelegation;
|
|
18371
|
-
getOrgManagerChats;
|
|
18372
|
-
createOrgManagerChat;
|
|
18373
|
-
getOrgManagerMessages;
|
|
18374
|
-
startOrgManagerTurn;
|
|
18375
|
-
stopOrgManagerTurn;
|
|
18376
19802
|
listOrgDomains;
|
|
18377
19803
|
registerOrgDomain;
|
|
18378
19804
|
getOrgDomain;
|
|
@@ -18427,6 +19853,11 @@ var GravityRailClient = class {
|
|
|
18427
19853
|
getWorkspaceLabels;
|
|
18428
19854
|
setWorkspaceLabels;
|
|
18429
19855
|
previewWorkspaceScope;
|
|
19856
|
+
getNotificationPreferences;
|
|
19857
|
+
setWorkspaceNotificationMute;
|
|
19858
|
+
registerAccountPushSubscription;
|
|
19859
|
+
unregisterAccountPushSubscription;
|
|
19860
|
+
listAccountPushSubscriptions;
|
|
18430
19861
|
getVapidPublicKey;
|
|
18431
19862
|
testPushSubscription;
|
|
18432
19863
|
registerPushSubscription;
|
|
@@ -18451,6 +19882,7 @@ var GravityRailClient = class {
|
|
|
18451
19882
|
viewAccountNotice;
|
|
18452
19883
|
dismissAccountNotice;
|
|
18453
19884
|
updateUserAccount;
|
|
19885
|
+
updateMemberAvatar;
|
|
18454
19886
|
recordAcquisition;
|
|
18455
19887
|
login;
|
|
18456
19888
|
resendCode;
|
|
@@ -18607,6 +20039,7 @@ var GravityRailClient = class {
|
|
|
18607
20039
|
getPublicFolderFiles;
|
|
18608
20040
|
// Events API
|
|
18609
20041
|
getEventRules;
|
|
20042
|
+
getEventRuleIndex;
|
|
18610
20043
|
getAvailableActions;
|
|
18611
20044
|
searchEventRules;
|
|
18612
20045
|
getEventRule;
|
|
@@ -18651,6 +20084,7 @@ var GravityRailClient = class {
|
|
|
18651
20084
|
getWorkflowConfigValidation;
|
|
18652
20085
|
getWorkflowPromptClassifications;
|
|
18653
20086
|
reviewWorkflowPromptClassifications;
|
|
20087
|
+
getWorkflowRunnerFileAccess;
|
|
18654
20088
|
getWorkflowNotes;
|
|
18655
20089
|
createWorkflowNote;
|
|
18656
20090
|
updateWorkflowNote;
|
|
@@ -18712,6 +20146,7 @@ var GravityRailClient = class {
|
|
|
18712
20146
|
syncCalendarWithGoogle;
|
|
18713
20147
|
// Communications API
|
|
18714
20148
|
getPhoneNumbers;
|
|
20149
|
+
getChatPhoneNumbers;
|
|
18715
20150
|
getAvailablePhoneNumbers;
|
|
18716
20151
|
requestPhoneNumber;
|
|
18717
20152
|
getPhoneNumber;
|
|
@@ -18759,6 +20194,7 @@ var GravityRailClient = class {
|
|
|
18759
20194
|
createNotificationRule;
|
|
18760
20195
|
updateNotificationRule;
|
|
18761
20196
|
deleteNotificationRule;
|
|
20197
|
+
getNotificationDestinations;
|
|
18762
20198
|
// Toolkits API
|
|
18763
20199
|
getToolkits;
|
|
18764
20200
|
getTool;
|
|
@@ -18857,6 +20293,7 @@ var GravityRailClient = class {
|
|
|
18857
20293
|
denyAuthorization;
|
|
18858
20294
|
getOAuthConsentClient;
|
|
18859
20295
|
getMcpConsentTargets;
|
|
20296
|
+
getConsentTargets;
|
|
18860
20297
|
listMcpGrants;
|
|
18861
20298
|
narrowMcpGrant;
|
|
18862
20299
|
revokeMcpGrant;
|
|
@@ -18887,6 +20324,7 @@ var GravityRailClient = class {
|
|
|
18887
20324
|
getMondaySyncConfig;
|
|
18888
20325
|
getMondaySyncLogs;
|
|
18889
20326
|
updateMondaySyncConfig;
|
|
20327
|
+
validateMondaySyncConfig;
|
|
18890
20328
|
getLinkedMondayMembers;
|
|
18891
20329
|
getMondayReconciliationMatches;
|
|
18892
20330
|
linkMemberToMonday;
|
|
@@ -18933,6 +20371,7 @@ var GravityRailClient = class {
|
|
|
18933
20371
|
getTeamsConversations;
|
|
18934
20372
|
getTeamsInstallations;
|
|
18935
20373
|
getTeamsAppAccounts;
|
|
20374
|
+
getTeamsNotificationDestinations;
|
|
18936
20375
|
// FHIR Connections API
|
|
18937
20376
|
getFhirConnections;
|
|
18938
20377
|
getFhirConnection;
|
|
@@ -18994,6 +20433,7 @@ var GravityRailClient = class {
|
|
|
18994
20433
|
syncCalendarWithHealthie;
|
|
18995
20434
|
getLinkedHealthieMembers;
|
|
18996
20435
|
getHealthieReconciliationMatches;
|
|
20436
|
+
getHealthieAppointmentPatientMatches;
|
|
18997
20437
|
linkMemberToHealthie;
|
|
18998
20438
|
unlinkMemberFromHealthie;
|
|
18999
20439
|
listHealthieAppointmentTypes;
|
|
@@ -19028,6 +20468,7 @@ var GravityRailClient = class {
|
|
|
19028
20468
|
getSalesforceSyncConfig;
|
|
19029
20469
|
getSalesforceSyncLogs;
|
|
19030
20470
|
updateSalesforceSyncConfig;
|
|
20471
|
+
validateSalesforceSyncConfig;
|
|
19031
20472
|
resyncSalesforceLinkedMembers;
|
|
19032
20473
|
listSalesforceObjects;
|
|
19033
20474
|
describeSalesforceObject;
|
|
@@ -19044,6 +20485,7 @@ var GravityRailClient = class {
|
|
|
19044
20485
|
startHubspotOAuth;
|
|
19045
20486
|
getHubspotStatus;
|
|
19046
20487
|
disconnectHubspot;
|
|
20488
|
+
switchHubspotToPlatformApp;
|
|
19047
20489
|
disableHubspot;
|
|
19048
20490
|
enableHubspot;
|
|
19049
20491
|
deleteHubspot;
|
|
@@ -19058,6 +20500,7 @@ var GravityRailClient = class {
|
|
|
19058
20500
|
getHubspotDealProperties;
|
|
19059
20501
|
getHubspotForms;
|
|
19060
20502
|
getHubspotMeetingLinks;
|
|
20503
|
+
getHubspotCrmObjects;
|
|
19061
20504
|
getHubspotObjectProperties;
|
|
19062
20505
|
getHubspotManagedRules;
|
|
19063
20506
|
getHubspotSyncLogs;
|
|
@@ -19066,14 +20509,18 @@ var GravityRailClient = class {
|
|
|
19066
20509
|
getConnectionSyncCapabilities;
|
|
19067
20510
|
getConnectionSyncConfig;
|
|
19068
20511
|
updateConnectionSyncConfig;
|
|
20512
|
+
validateConnectionSyncConfig;
|
|
19069
20513
|
getConnectionSyncCheckpoint;
|
|
19070
20514
|
startSyncRun;
|
|
19071
20515
|
getSyncRuns;
|
|
19072
20516
|
getSyncRunItems;
|
|
19073
20517
|
getSyncRunItemsPage;
|
|
19074
20518
|
getMemberSyncSummary;
|
|
20519
|
+
getSyncFailureSummary;
|
|
20520
|
+
getSyncFailures;
|
|
19075
20521
|
getConnectionFieldHomes;
|
|
19076
20522
|
getInboundRecordStatus;
|
|
20523
|
+
getOwnerMemberStatus;
|
|
19077
20524
|
getConnectionWritePreview;
|
|
19078
20525
|
clearConnectionMemberExclusion;
|
|
19079
20526
|
linkUnlinkedMembersByIdentity;
|
|
@@ -19152,6 +20599,10 @@ var GravityRailClient = class {
|
|
|
19152
20599
|
closeWorkspaceSupportRequest;
|
|
19153
20600
|
reopenWorkspaceSupportRequest;
|
|
19154
20601
|
clickWorkspaceSupportRequestResource;
|
|
20602
|
+
listOrgSupportRequestCcCandidates;
|
|
20603
|
+
addOrgSupportRequestParticipants;
|
|
20604
|
+
listWorkspaceSupportRequestCcCandidates;
|
|
20605
|
+
addWorkspaceSupportRequestParticipants;
|
|
19155
20606
|
// Routing Rules API
|
|
19156
20607
|
getRoutingRules;
|
|
19157
20608
|
getRoutingRule;
|
|
@@ -19489,10 +20940,10 @@ function pathDraftToStorage(draft, original) {
|
|
|
19489
20940
|
ActivityOpenItemOrder,
|
|
19490
20941
|
ActivityOutcome,
|
|
19491
20942
|
ActivityWindowBasis,
|
|
19492
|
-
AddonMutationResponseScope,
|
|
19493
20943
|
AgentTasksApi,
|
|
19494
20944
|
AgentsApi,
|
|
19495
20945
|
AiConnectorPolicy,
|
|
20946
|
+
AiDisclosure,
|
|
19496
20947
|
ApiError,
|
|
19497
20948
|
ApiKeysApi,
|
|
19498
20949
|
AppConnectionsApi,
|
|
@@ -19530,6 +20981,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
19530
20981
|
ConfluenceApi,
|
|
19531
20982
|
ConnectionSyncApi,
|
|
19532
20983
|
ConsentMethod,
|
|
20984
|
+
CosanEnrollmentInquiryResponseOutcome,
|
|
19533
20985
|
CreateMemberContactPointRequestContactType,
|
|
19534
20986
|
CreateMemberContactPointRequestPurpose,
|
|
19535
20987
|
CreateMemberContactPointRequestSharing,
|
|
@@ -19557,6 +21009,10 @@ function pathDraftToStorage(draft, original) {
|
|
|
19557
21009
|
DataTypeRecordScope,
|
|
19558
21010
|
DataTypesApi,
|
|
19559
21011
|
DeclaredDataUse,
|
|
21012
|
+
DefaultCardConvergenceAction,
|
|
21013
|
+
DefaultCardConvergenceClassification,
|
|
21014
|
+
DefaultCardConvergenceOutcome,
|
|
21015
|
+
DefaultCardConvergenceStep,
|
|
19560
21016
|
DigestSlotRole,
|
|
19561
21017
|
DiscordBotsApi,
|
|
19562
21018
|
DriverMode,
|
|
@@ -19622,17 +21078,21 @@ function pathDraftToStorage(draft, original) {
|
|
|
19622
21078
|
ModelType,
|
|
19623
21079
|
MondayIntegrationApi,
|
|
19624
21080
|
NO_ASSISTANT_PARTICIPANT_CHAT_TYPES,
|
|
21081
|
+
NotificationMarkerAction,
|
|
19625
21082
|
NotificationRulesApi,
|
|
19626
21083
|
OAuthApi,
|
|
19627
21084
|
OAuthConnectionsApi,
|
|
19628
21085
|
OIDCAdminConfigViewProviderType,
|
|
19629
21086
|
ORG_ONLY_RESOURCES,
|
|
21087
|
+
OpenItemKind,
|
|
19630
21088
|
OperatorApi,
|
|
19631
21089
|
OrgApi,
|
|
21090
|
+
OrgApiKeyLimitUnconfirmedError,
|
|
19632
21091
|
OrgFeature,
|
|
19633
|
-
|
|
21092
|
+
OrgWebhookScopeUnconfirmedError,
|
|
19634
21093
|
OrganizationBillingApi,
|
|
19635
21094
|
OrganizationClassification,
|
|
21095
|
+
OverdueInvoicePayment,
|
|
19636
21096
|
PERMISSION_ADMIN,
|
|
19637
21097
|
PERMISSION_CREATE,
|
|
19638
21098
|
PERMISSION_DELETE,
|
|
@@ -19646,6 +21106,11 @@ function pathDraftToStorage(draft, original) {
|
|
|
19646
21106
|
PIDS_DISPOSITIONS,
|
|
19647
21107
|
PIDS_SOURCES,
|
|
19648
21108
|
POSITIVE_RATING_THRESHOLD,
|
|
21109
|
+
PROPOSED_MESSAGE_BODY_MAX_LENGTH,
|
|
21110
|
+
PROPOSED_MESSAGE_SETTLED_TOOL_NAME,
|
|
21111
|
+
PROPOSED_MESSAGE_SETTLEMENT_STATUSES,
|
|
21112
|
+
PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH,
|
|
21113
|
+
PROPOSED_MESSAGE_TOOL_NAMES,
|
|
19649
21114
|
PersonasApi,
|
|
19650
21115
|
PhiDataPolicy,
|
|
19651
21116
|
PhiPolicyReason,
|
|
@@ -19664,8 +21129,6 @@ function pathDraftToStorage(draft, original) {
|
|
|
19664
21129
|
QUERY_VALUELESS_OPS,
|
|
19665
21130
|
QualificationsApi,
|
|
19666
21131
|
REALTIME_MODEL_CUSTOM,
|
|
19667
|
-
REALTIME_MODEL_GEMINI,
|
|
19668
|
-
REALTIME_MODEL_GEMINI_VERTEX,
|
|
19669
21132
|
REALTIME_MODEL_OPENAI,
|
|
19670
21133
|
REALTIME_MODEL_OPENAI_2,
|
|
19671
21134
|
REALTIME_MODEL_OPENAI_MINI,
|
|
@@ -19680,6 +21143,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
19680
21143
|
ReportsApi,
|
|
19681
21144
|
ResellersApi,
|
|
19682
21145
|
Resource,
|
|
21146
|
+
ResponseLength,
|
|
19683
21147
|
RevisionHistorySegment,
|
|
19684
21148
|
RoutingActionType,
|
|
19685
21149
|
RoutingAudience,
|
|
@@ -19713,7 +21177,10 @@ function pathDraftToStorage(draft, original) {
|
|
|
19713
21177
|
SnippetsApi,
|
|
19714
21178
|
SubscriptionsApi,
|
|
19715
21179
|
SupervisorsApi,
|
|
21180
|
+
SupportRequestParticipantRole,
|
|
19716
21181
|
SupportRequestsApi,
|
|
21182
|
+
SyncErrorCode,
|
|
21183
|
+
SyncFailureCode,
|
|
19717
21184
|
TERMINAL_TASK_STATES,
|
|
19718
21185
|
TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
19719
21186
|
TTS_MODEL_AWS_POLLY_NEURAL,
|
|
@@ -19737,11 +21204,22 @@ function pathDraftToStorage(draft, original) {
|
|
|
19737
21204
|
UpdateMemberContactPointRequestContactType,
|
|
19738
21205
|
UpdateMemberContactPointRequestPurpose,
|
|
19739
21206
|
UpdateMemberContactPointRequestSharing,
|
|
21207
|
+
V3FileAccess,
|
|
21208
|
+
V3FileAuthorKind,
|
|
21209
|
+
V3FileKind,
|
|
21210
|
+
V3FileOrder,
|
|
21211
|
+
V3FileSkillWarning,
|
|
21212
|
+
V3FileState,
|
|
21213
|
+
V3FileView,
|
|
21214
|
+
V3FolderIndexState,
|
|
21215
|
+
V3FolderRoot,
|
|
21216
|
+
V3FolderView,
|
|
21217
|
+
V3GrantMode,
|
|
21218
|
+
V3UploadState,
|
|
19740
21219
|
VoiceApi,
|
|
19741
21220
|
VoiceIntegrityUseCase,
|
|
19742
21221
|
WIDGET_SLUGS,
|
|
19743
21222
|
WorkflowNotesApi,
|
|
19744
|
-
WorkflowRoutingMode,
|
|
19745
21223
|
WorkflowsApi,
|
|
19746
21224
|
WorkspaceFeature,
|
|
19747
21225
|
WorkspaceInvitationsApi,
|
|
@@ -19825,10 +21303,12 @@ function pathDraftToStorage(draft, original) {
|
|
|
19825
21303
|
isIdentifiedMemberContactConflict,
|
|
19826
21304
|
isMemberContactConflict,
|
|
19827
21305
|
isPositiveRating,
|
|
21306
|
+
isProposedMessageSettlementStatus,
|
|
19828
21307
|
isRegistryInitialized,
|
|
19829
21308
|
isSMSDeliveryFailureStatus,
|
|
19830
21309
|
parseExperimentStatCount,
|
|
19831
21310
|
parseOrgAuthChallenge,
|
|
21311
|
+
parseProposedMessage,
|
|
19832
21312
|
pathDraftFromStorage,
|
|
19833
21313
|
pathDraftToStorage,
|
|
19834
21314
|
requiresAssistantParticipant,
|