@gravity-rail/sdk 4.0.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/account-CSJJbLIj.d.cts +459 -0
- package/dist/account-CSJJbLIj.d.ts +459 -0
- package/dist/{path-CUY-Iw70.d.ts → agent_standing_job-CqKpMoHO.d.cts} +1068 -140
- package/dist/{path-B3b3_El9.d.cts → agent_standing_job-yehTe972.d.ts} +1068 -140
- package/dist/{chat-interaction-DXgKjFqZ.d.cts → chat-interaction-BtUtVszg.d.ts} +13512 -9340
- package/dist/{chat-interaction-a7U-tHfQ.d.ts → chat-interaction-CAfwlYvv.d.cts} +13512 -9340
- package/dist/{chunk-WHRIIBJ4.js → chunk-L4XC6KDG.js} +1773 -475
- package/dist/chunk-L4XC6KDG.js.map +1 -0
- 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/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 +2428 -263
- package/dist/internal.d.ts +2428 -263
- package/dist/internal.js +146 -27
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-VOLKR5dY.d.ts → member-import-C5nnoGvW.d.ts} +1 -1
- package/dist/{member-import-BHtOru8g.d.cts → member-import-DhaNVT7s.d.cts} +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 +624 -72
- package/dist/schemas.d.ts +624 -72
- package/dist/schemas.js +72 -21
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-CgptqCsN.d.cts → tasks-A12E_RLa.d.cts} +2243 -1979
- package/dist/{tasks-CgptqCsN.d.ts → tasks-DrmyOlRh.d.ts} +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/index.cjs
CHANGED
|
@@ -40,6 +40,7 @@ __export(src_exports, {
|
|
|
40
40
|
ActorKind: () => ActorKind,
|
|
41
41
|
AgentBuilder: () => AgentBuilder,
|
|
42
42
|
AiConnectorPolicy: () => AiConnectorPolicy,
|
|
43
|
+
AiDisclosure: () => AiDisclosure,
|
|
43
44
|
ApiError: () => ApiError,
|
|
44
45
|
ApplyError: () => ApplyError,
|
|
45
46
|
AppsApi: () => AppsApi,
|
|
@@ -50,6 +51,9 @@ __export(src_exports, {
|
|
|
50
51
|
BuildersApi: () => BuildersApi,
|
|
51
52
|
BulkMemberResultStatus: () => BulkMemberResultStatus,
|
|
52
53
|
BundleGrantRequestGranteeType: () => BundleGrantRequestGranteeType,
|
|
54
|
+
BundlePublishItemChange: () => BundlePublishItemChange,
|
|
55
|
+
BundlePublishItemReason: () => BundlePublishItemReason,
|
|
56
|
+
BundlePublishItemStatus: () => BundlePublishItemStatus,
|
|
53
57
|
BundlesApi: () => BundlesApi,
|
|
54
58
|
BusinessIndustry: () => BusinessIndustry,
|
|
55
59
|
BusinessType: () => BusinessType,
|
|
@@ -66,6 +70,7 @@ __export(src_exports, {
|
|
|
66
70
|
ChannelMessageDirection: () => ChannelMessageDirection,
|
|
67
71
|
ChannelMessageSource: () => ChannelMessageSource,
|
|
68
72
|
ChannelMessagesUnavailableReason: () => ChannelMessagesUnavailableReason,
|
|
73
|
+
ChatApi: () => ChatApi,
|
|
69
74
|
ChatInteractionController: () => ChatInteractionController,
|
|
70
75
|
ChatMuteReason: () => ChatMuteReason,
|
|
71
76
|
ConsentMethod: () => ConsentMethod,
|
|
@@ -114,11 +119,11 @@ __export(src_exports, {
|
|
|
114
119
|
InboundRefusal: () => InboundRefusal,
|
|
115
120
|
IndexStatus: () => IndexStatus,
|
|
116
121
|
InstallationItemChangeChange: () => InstallationItemChangeChange,
|
|
122
|
+
InstallationPhoneNumberNoticeCode: () => InstallationPhoneNumberNoticeCode,
|
|
117
123
|
InstallationsApi: () => InstallationsApi,
|
|
118
124
|
InvitationStatus: () => InvitationStatus,
|
|
119
125
|
JobPosition: () => JobPosition,
|
|
120
126
|
JourneyBuilder: () => JourneyBuilder,
|
|
121
|
-
JourneyStepBuilder: () => JourneyStepBuilder,
|
|
122
127
|
MASKED_SECRET_SENTINEL: () => MASKED_SECRET_SENTINEL,
|
|
123
128
|
MAX_EMAIL_SEND_RECIPIENTS: () => MAX_EMAIL_SEND_RECIPIENTS,
|
|
124
129
|
MEMBER_RELATIONSHIP_KINDS: () => MEMBER_RELATIONSHIP_KINDS,
|
|
@@ -139,12 +144,17 @@ __export(src_exports, {
|
|
|
139
144
|
ModelProvider: () => ModelProvider,
|
|
140
145
|
ModelType: () => ModelType,
|
|
141
146
|
NO_ASSISTANT_PARTICIPANT_CHAT_TYPES: () => NO_ASSISTANT_PARTICIPANT_CHAT_TYPES,
|
|
147
|
+
NotificationMarkerAction: () => NotificationMarkerAction,
|
|
142
148
|
NotificationRuleBuilder: () => NotificationRuleBuilder,
|
|
143
149
|
OIDCAdminConfigViewProviderType: () => OIDCAdminConfigViewProviderType,
|
|
144
150
|
ORG_ONLY_RESOURCES: () => ORG_ONLY_RESOURCES,
|
|
151
|
+
OpenItemKind: () => OpenItemKind,
|
|
145
152
|
OrgApi: () => OrgApi,
|
|
153
|
+
OrgApiKeyLimitUnconfirmedError: () => OrgApiKeyLimitUnconfirmedError,
|
|
146
154
|
OrgFeature: () => OrgFeature,
|
|
155
|
+
OrgWebhookDeliveryHealthState: () => OrgWebhookDeliveryHealthState,
|
|
147
156
|
OrgWebhookDeliveryStatus: () => OrgWebhookDeliveryResponseStatus,
|
|
157
|
+
OrgWebhookScopeUnconfirmedError: () => OrgWebhookScopeUnconfirmedError,
|
|
148
158
|
PERMISSION_ADMIN: () => PERMISSION_ADMIN,
|
|
149
159
|
PERMISSION_CREATE: () => PERMISSION_CREATE,
|
|
150
160
|
PERMISSION_DELETE: () => PERMISSION_DELETE,
|
|
@@ -158,14 +168,17 @@ __export(src_exports, {
|
|
|
158
168
|
PIDS_DISPOSITIONS: () => PIDS_DISPOSITIONS,
|
|
159
169
|
PIDS_SOURCES: () => PIDS_SOURCES,
|
|
160
170
|
POSITIVE_RATING_THRESHOLD: () => POSITIVE_RATING_THRESHOLD,
|
|
171
|
+
PROPOSED_MESSAGE_BODY_MAX_LENGTH: () => PROPOSED_MESSAGE_BODY_MAX_LENGTH,
|
|
172
|
+
PROPOSED_MESSAGE_SETTLED_TOOL_NAME: () => PROPOSED_MESSAGE_SETTLED_TOOL_NAME,
|
|
173
|
+
PROPOSED_MESSAGE_SETTLEMENT_STATUSES: () => PROPOSED_MESSAGE_SETTLEMENT_STATUSES,
|
|
174
|
+
PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH: () => PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH,
|
|
175
|
+
PROPOSED_MESSAGE_TOOL_NAMES: () => PROPOSED_MESSAGE_TOOL_NAMES,
|
|
161
176
|
PhoneRunRefusal: () => PhoneRunRefusal,
|
|
162
177
|
ProductType: () => ProductType,
|
|
163
178
|
PromoCodeStatus: () => PromoCodeStatus,
|
|
164
179
|
QUERY_VALUELESS_OPS: () => QUERY_VALUELESS_OPS,
|
|
165
180
|
QueriesApi: () => QueriesApi,
|
|
166
181
|
REALTIME_MODEL_CUSTOM: () => REALTIME_MODEL_CUSTOM,
|
|
167
|
-
REALTIME_MODEL_GEMINI: () => REALTIME_MODEL_GEMINI,
|
|
168
|
-
REALTIME_MODEL_GEMINI_VERTEX: () => REALTIME_MODEL_GEMINI_VERTEX,
|
|
169
182
|
REALTIME_MODEL_OPENAI: () => REALTIME_MODEL_OPENAI,
|
|
170
183
|
REALTIME_MODEL_OPENAI_2: () => REALTIME_MODEL_OPENAI_2,
|
|
171
184
|
REALTIME_MODEL_OPENAI_MINI: () => REALTIME_MODEL_OPENAI_MINI,
|
|
@@ -179,6 +192,7 @@ __export(src_exports, {
|
|
|
179
192
|
RelationshipCardinality: () => RelationshipCardinality,
|
|
180
193
|
Resource: () => Resource,
|
|
181
194
|
ResourceWorkflowsApi: () => ResourceWorkflowsApi,
|
|
195
|
+
ResponseLength: () => ResponseLength,
|
|
182
196
|
RevisionHistorySegment: () => RevisionHistorySegment,
|
|
183
197
|
RoutineBuilder: () => RoutineBuilder,
|
|
184
198
|
RoutingActionType: () => RoutingActionType,
|
|
@@ -210,6 +224,8 @@ __export(src_exports, {
|
|
|
210
224
|
SiteDnsRecordType: () => SiteDnsRecordType,
|
|
211
225
|
StediApi: () => StediApi,
|
|
212
226
|
SupervisorsApi: () => SupervisorsApi,
|
|
227
|
+
SyncErrorCode: () => SyncErrorCode,
|
|
228
|
+
SyncFailureCode: () => LinkFailureCode,
|
|
213
229
|
TTS_MODEL_AWS_POLLY_GENERATIVE: () => TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
214
230
|
TTS_MODEL_AWS_POLLY_NEURAL: () => TTS_MODEL_AWS_POLLY_NEURAL,
|
|
215
231
|
TTS_MODEL_DEEPGRAM_AURA_2: () => TTS_MODEL_DEEPGRAM_AURA_2,
|
|
@@ -228,17 +244,18 @@ __export(src_exports, {
|
|
|
228
244
|
UiPromptPresentedKindValues: () => UiPromptPresentedKind,
|
|
229
245
|
UiPromptResponseKindValues: () => UiPromptResponseKind,
|
|
230
246
|
UiPromptResponseStatusValues: () => UiPromptResponseStatus,
|
|
247
|
+
UnadoptableJourneyError: () => UnadoptableJourneyError,
|
|
231
248
|
UpdateMemberContactPointRequestContactType: () => UpdateMemberContactPointRequestContactType,
|
|
232
249
|
UpdateMemberContactPointRequestPurpose: () => UpdateMemberContactPointRequestPurpose,
|
|
233
250
|
UpdateMemberContactPointRequestSharing: () => UpdateMemberContactPointRequestSharing,
|
|
234
251
|
VoiceIntegrityUseCase: () => VoiceIntegrityUseCase,
|
|
235
252
|
WIDGET_SLUGS: () => WIDGET_SLUGS,
|
|
236
253
|
WorkflowBuilder: () => WorkflowBuilder,
|
|
237
|
-
WorkflowRoutingMode: () => WorkflowRoutingMode,
|
|
238
254
|
WorkspaceBuilder: () => WorkspaceBuilder,
|
|
239
255
|
WorkspaceBuilderResource: () => WorkspaceBuilderResource,
|
|
240
256
|
WorkspaceFeature: () => WorkspaceFeature,
|
|
241
257
|
WorkspaceProvisionStatus: () => WorkspaceProvisionStatus,
|
|
258
|
+
WorkspaceScopeMode: () => WorkspaceScopeMode,
|
|
242
259
|
archivedMemberConflictId: () => archivedMemberConflictId,
|
|
243
260
|
areDependenciesSatisfied: () => areDependenciesSatisfied,
|
|
244
261
|
asIdentifiedMemberContactConflict: () => asIdentifiedMemberContactConflict,
|
|
@@ -270,9 +287,11 @@ __export(src_exports, {
|
|
|
270
287
|
isIdentifiedMemberContactConflict: () => isIdentifiedMemberContactConflict,
|
|
271
288
|
isMemberContactConflict: () => isMemberContactConflict,
|
|
272
289
|
isPositiveRating: () => isPositiveRating,
|
|
290
|
+
isProposedMessageSettlementStatus: () => isProposedMessageSettlementStatus,
|
|
273
291
|
isRegistryInitialized: () => isRegistryInitialized,
|
|
274
292
|
isSMSDeliveryFailureStatus: () => isSMSDeliveryFailureStatus,
|
|
275
293
|
parseOrgAuthChallenge: () => parseOrgAuthChallenge,
|
|
294
|
+
parseProposedMessage: () => parseProposedMessage,
|
|
276
295
|
pathDraftFromStorage: () => pathDraftFromStorage,
|
|
277
296
|
pathDraftToStorage: () => pathDraftToStorage,
|
|
278
297
|
requiresAssistantParticipant: () => requiresAssistantParticipant,
|
|
@@ -528,6 +547,20 @@ var BaseApiClient = class {
|
|
|
528
547
|
this.setOrgSession(void 0);
|
|
529
548
|
}
|
|
530
549
|
async fetch(endpoint, options, orgAuthRetriesRemaining = this.apiKey && !this.orgSession ? 2 : 1, enhancedAuthRetry = false) {
|
|
550
|
+
return this.fetchApiVersion(
|
|
551
|
+
"v2",
|
|
552
|
+
endpoint,
|
|
553
|
+
options,
|
|
554
|
+
orgAuthRetriesRemaining,
|
|
555
|
+
enhancedAuthRetry
|
|
556
|
+
);
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* `fetch` against a named API version: `/api/{version}/{endpoint}`, with the
|
|
560
|
+
* same credentials, step-up retry, org-auth challenge handling and
|
|
561
|
+
* org-session rejection bookkeeping. `fetch` is this method bound to `v2`.
|
|
562
|
+
*/
|
|
563
|
+
async fetchApiVersion(version, endpoint, options, orgAuthRetriesRemaining = this.apiKey && !this.orgSession ? 2 : 1, enhancedAuthRetry = false) {
|
|
531
564
|
try {
|
|
532
565
|
const headers = new Headers({
|
|
533
566
|
// Don't set Content-Type for FormData — the browser must set it
|
|
@@ -543,7 +576,7 @@ var BaseApiClient = class {
|
|
|
543
576
|
const requestOrgRevision = this.orgSessionRevision;
|
|
544
577
|
const presentedOrgUuid = this.orgSessionOrgUuid;
|
|
545
578
|
const rejectionHandler = this.orgSessionRejectionHandler;
|
|
546
|
-
const fullUrl = `${this.baseUrl}/api
|
|
579
|
+
const fullUrl = `${this.baseUrl}/api/${version}/${endpoint}`;
|
|
547
580
|
const response = await this.fetchFunction(fullUrl, {
|
|
548
581
|
...options,
|
|
549
582
|
...this.credentialsInit(),
|
|
@@ -563,7 +596,13 @@ var BaseApiClient = class {
|
|
|
563
596
|
this.enhancedAuthInProgress = null;
|
|
564
597
|
}
|
|
565
598
|
}
|
|
566
|
-
return await this.
|
|
599
|
+
return await this.fetchApiVersion(
|
|
600
|
+
version,
|
|
601
|
+
endpoint,
|
|
602
|
+
options,
|
|
603
|
+
orgAuthRetriesRemaining,
|
|
604
|
+
true
|
|
605
|
+
);
|
|
567
606
|
}
|
|
568
607
|
if (response.status === 401) {
|
|
569
608
|
const orgAuthInfo = parseOrgAuthChallenge(response.headers.get("WWW-Authenticate"));
|
|
@@ -584,7 +623,13 @@ var BaseApiClient = class {
|
|
|
584
623
|
if (completion !== "cache") nextOrgRetries = 0;
|
|
585
624
|
}
|
|
586
625
|
this.assertOrgAuthContext(orgAuthInfo.orgUuid);
|
|
587
|
-
return await this.
|
|
626
|
+
return await this.fetchApiVersion(
|
|
627
|
+
version,
|
|
628
|
+
endpoint,
|
|
629
|
+
options,
|
|
630
|
+
nextOrgRetries,
|
|
631
|
+
enhancedAuthRetry
|
|
632
|
+
);
|
|
588
633
|
}
|
|
589
634
|
if (orgAuthInfo) {
|
|
590
635
|
this.clearOrgSessionIfCurrent(presentedOrgSession);
|
|
@@ -597,7 +642,7 @@ var BaseApiClient = class {
|
|
|
597
642
|
}
|
|
598
643
|
}
|
|
599
644
|
const errorData = await response.json().catch(() => ({}));
|
|
600
|
-
if (response.status === 401 && endpoint === "account") {
|
|
645
|
+
if (response.status === 401 && version === "v2" && endpoint === "account") {
|
|
601
646
|
throw new Error("unauthorized");
|
|
602
647
|
}
|
|
603
648
|
if (Array.isArray(errorData.detail)) {
|
|
@@ -957,6 +1002,19 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
957
1002
|
async listBundleWorkflowCandidates(wid) {
|
|
958
1003
|
return this.fetch(bundlesPath(wid, "workflow-candidates"));
|
|
959
1004
|
}
|
|
1005
|
+
/**
|
|
1006
|
+
* The Bundles of this workspace that hold a Workflow, and what of the
|
|
1007
|
+
* Workflow's draft a Bundle cannot carry (`issues`, `problems`: the check a
|
|
1008
|
+
* Bundle runs when it adds or publishes the Workflow, run on its draft for
|
|
1009
|
+
* the acting Member). A Bundle's draft is listed only for
|
|
1010
|
+
* `workflows:admin`. Requires `workflows:read` and read access to the
|
|
1011
|
+
* Workflow; 404 otherwise.
|
|
1012
|
+
*/
|
|
1013
|
+
async getWorkflowBundleMembership(wid, workflowUuid) {
|
|
1014
|
+
return this.fetch(
|
|
1015
|
+
bundlesPath(wid, "workflow-membership", workflowUuid)
|
|
1016
|
+
);
|
|
1017
|
+
}
|
|
960
1018
|
/**
|
|
961
1019
|
* This workspace's Journeys for the Bundle picker, by name. Nothing is built
|
|
962
1020
|
* for the list. `available` is false while the server refuses Journey items.
|
|
@@ -967,11 +1025,11 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
967
1025
|
}
|
|
968
1026
|
/**
|
|
969
1027
|
* One Journey as the Bundle item that adds it: the whole Journey item the
|
|
970
|
-
* server built (`item`), the Forms
|
|
1028
|
+
* server built (`item`) with who enters it, the Forms it reads, the saved
|
|
1029
|
+
* Member filters its conditions use (`filters`) and the Workflows its
|
|
971
1030
|
* actions start, or the `problems` that name what the Journey must change
|
|
972
|
-
* first.
|
|
973
|
-
*
|
|
974
|
-
* `workflows:admin` and `journeys:write`.
|
|
1031
|
+
* first. Requires `workflows:admin` and `journeys:write`; listing a saved
|
|
1032
|
+
* filter also takes `members:read`.
|
|
975
1033
|
*/
|
|
976
1034
|
async getBundleJourneyCandidate(wid, journeyUuid) {
|
|
977
1035
|
return this.fetch(
|
|
@@ -1005,7 +1063,28 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
1005
1063
|
body: JSON.stringify(data)
|
|
1006
1064
|
});
|
|
1007
1065
|
}
|
|
1008
|
-
/**
|
|
1066
|
+
/**
|
|
1067
|
+
* What publishing the saved draft now would put in the next version: each
|
|
1068
|
+
* draft item as `ready`, `held` (stays as the last published version had
|
|
1069
|
+
* it) or `blocked`, with a closed `reason`; how each differs
|
|
1070
|
+
* from the last published version, a Workflow's revision before and after;
|
|
1071
|
+
* and the `planToken` to pass as `expectedPlan` on publish. 409 when
|
|
1072
|
+
* `expectedGeneration` is stale. Requires `workflows:admin`.
|
|
1073
|
+
*/
|
|
1074
|
+
async getBundlePublishPreview(wid, bundleUuid, expectedGeneration) {
|
|
1075
|
+
const query2 = new URLSearchParams({ expectedGeneration: String(expectedGeneration) });
|
|
1076
|
+
return this.fetch(
|
|
1077
|
+
`${bundlesPath(wid, bundleUuid, "publish-preview")}?${query2.toString()}`
|
|
1078
|
+
);
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Cut a new immutable version from the draft: every Workflow's newest
|
|
1082
|
+
* published revision and every other item as its source is now. 409 when
|
|
1083
|
+
* `expectedGeneration` is stale, when `expectedPlan` no longer matches the
|
|
1084
|
+
* preview (`bundle_publish_plan_changed`), or when the version would carry
|
|
1085
|
+
* exactly what the last one carries, with no example scenarios on either
|
|
1086
|
+
* (`bundle_version_unchanged`).
|
|
1087
|
+
*/
|
|
1009
1088
|
async publishBundle(wid, bundleUuid, data) {
|
|
1010
1089
|
return this.fetch(bundlesPath(wid, bundleUuid, "publish"), {
|
|
1011
1090
|
method: "POST",
|
|
@@ -1091,10 +1170,15 @@ var InstallationsApi = class extends BaseApiClient {
|
|
|
1091
1170
|
* Open slots, bindings whose target no longer resolves, Forms that drifted
|
|
1092
1171
|
* from their recipe, missing or changed Workflow dependencies, and archived
|
|
1093
1172
|
* items. Computed on read, never stored.
|
|
1173
|
+
*
|
|
1174
|
+
* With `verifyProvider`, also reads each linked number's live callbacks from
|
|
1175
|
+
* the phone provider, bounded and read-only; this needs `phones:read` too. A
|
|
1176
|
+
* failed provider read comes back `unverified`, never `configured`.
|
|
1094
1177
|
*/
|
|
1095
|
-
async getInstallationReadiness(wid, installationUuid) {
|
|
1178
|
+
async getInstallationReadiness(wid, installationUuid, options = {}) {
|
|
1179
|
+
const path = installationsPath(wid, installationUuid, "readiness");
|
|
1096
1180
|
return this.fetch(
|
|
1097
|
-
|
|
1181
|
+
options.verifyProvider ? `${path}?verifyProvider=true` : path
|
|
1098
1182
|
);
|
|
1099
1183
|
}
|
|
1100
1184
|
/**
|
|
@@ -1149,7 +1233,23 @@ var InstallationsApi = class extends BaseApiClient {
|
|
|
1149
1233
|
{ method: "POST", body: JSON.stringify({}) }
|
|
1150
1234
|
);
|
|
1151
1235
|
}
|
|
1152
|
-
/**
|
|
1236
|
+
/**
|
|
1237
|
+
* The installation's per-workspace Ability settings and their values. A value
|
|
1238
|
+
* is returned only from an installed Workflow the caller may read the
|
|
1239
|
+
* Abilities of (`agents:read` and Workflow use); otherwise it is `null`.
|
|
1240
|
+
*/
|
|
1241
|
+
async getInstallationAbilitySettings(wid, installationUuid) {
|
|
1242
|
+
return this.fetch(
|
|
1243
|
+
installationsPath(wid, installationUuid, "ability-settings")
|
|
1244
|
+
);
|
|
1245
|
+
}
|
|
1246
|
+
/**
|
|
1247
|
+
* Fill open slots. A slot that already carries a target is refused with 409,
|
|
1248
|
+
* except one sent with `replace: true` that is a local setting of the
|
|
1249
|
+
* installation: a per-workspace Ability setting or a shared install field,
|
|
1250
|
+
* whose new value replaces the held one on every setting it fills, a
|
|
1251
|
+
* Workflow's Inbox or phone number, a recording, or a routing endpoint.
|
|
1252
|
+
*/
|
|
1153
1253
|
async bindInstallationSlots(wid, installationUuid, data) {
|
|
1154
1254
|
return this.fetch(
|
|
1155
1255
|
installationsPath(wid, installationUuid, "bindings"),
|
|
@@ -1303,6 +1403,27 @@ var AgentTasksApi = class extends BaseApiClient {
|
|
|
1303
1403
|
|
|
1304
1404
|
// src/api/agents.ts
|
|
1305
1405
|
var AgentsApi = class extends BaseApiClient {
|
|
1406
|
+
orgAgentJobsPath(orgUuid, agentUuid) {
|
|
1407
|
+
return `o/${encodeURIComponent(orgUuid)}/agents/${encodeURIComponent(agentUuid)}/jobs`;
|
|
1408
|
+
}
|
|
1409
|
+
/** List the current organization's teammate's operational Agent Jobs. */
|
|
1410
|
+
async getOrgAgentJobs(orgUuid, agentUuid, options = {}) {
|
|
1411
|
+
const params = new URLSearchParams();
|
|
1412
|
+
if (options.before) params.set("before", options.before);
|
|
1413
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
1414
|
+
if (options.status) params.set("status", options.status);
|
|
1415
|
+
const search = params.toString();
|
|
1416
|
+
return this.fetch(
|
|
1417
|
+
`${this.orgAgentJobsPath(orgUuid, agentUuid)}${search ? `?${search}` : ""}`
|
|
1418
|
+
);
|
|
1419
|
+
}
|
|
1420
|
+
/** Stop one of the current teammate's Jobs and its active descendants. */
|
|
1421
|
+
async stopOrgAgentJob(orgUuid, agentUuid, jobUuid) {
|
|
1422
|
+
return this.fetch(
|
|
1423
|
+
`${this.orgAgentJobsPath(orgUuid, agentUuid)}/${encodeURIComponent(jobUuid)}/stop`,
|
|
1424
|
+
{ method: "POST", body: JSON.stringify({}) }
|
|
1425
|
+
);
|
|
1426
|
+
}
|
|
1306
1427
|
/** List agents in a workspace with optional pagination, sorting, and search. */
|
|
1307
1428
|
async getAgents(wid, options = {}) {
|
|
1308
1429
|
const params = new URLSearchParams();
|
|
@@ -1734,6 +1855,19 @@ var AuthApi = class extends BaseApiClient {
|
|
|
1734
1855
|
body: JSON.stringify(info)
|
|
1735
1856
|
});
|
|
1736
1857
|
}
|
|
1858
|
+
/**
|
|
1859
|
+
* Set the account's face: an icon, a colour, or an uploaded image.
|
|
1860
|
+
*
|
|
1861
|
+
* Only the fields sent are applied, so a picker can change the colour
|
|
1862
|
+
* without touching the icon. Sending `icon` or `color` clears an uploaded
|
|
1863
|
+
* image; sending an image clears the explicit pick.
|
|
1864
|
+
*/
|
|
1865
|
+
async updateMemberAvatar(request) {
|
|
1866
|
+
return this.fetch("account/avatar", {
|
|
1867
|
+
method: "PUT",
|
|
1868
|
+
body: JSON.stringify(request)
|
|
1869
|
+
});
|
|
1870
|
+
}
|
|
1737
1871
|
/**
|
|
1738
1872
|
* Persist the account's FIRST-touch marketing attribution (write-once).
|
|
1739
1873
|
*
|
|
@@ -2305,7 +2439,9 @@ var CalendarsApi = class extends BaseApiClient {
|
|
|
2305
2439
|
body: JSON.stringify({ cancellationReason: reason })
|
|
2306
2440
|
});
|
|
2307
2441
|
}
|
|
2308
|
-
/** Delete
|
|
2442
|
+
/** Delete the local event. Native Google bookings return PENDING or FAILED
|
|
2443
|
+
* until provider removal is confirmed. Null is not a provider-removal receipt.
|
|
2444
|
+
*/
|
|
2309
2445
|
async deleteCalendarEvent(wid, eventId) {
|
|
2310
2446
|
return this.fetch(`w/${wid}/calendar-events/${eventId}`, {
|
|
2311
2447
|
method: "DELETE"
|
|
@@ -2493,8 +2629,61 @@ var CELApi = class extends BaseApiClient {
|
|
|
2493
2629
|
}
|
|
2494
2630
|
};
|
|
2495
2631
|
|
|
2632
|
+
// src/api/chat.ts
|
|
2633
|
+
var ChatApi = class {
|
|
2634
|
+
constructor(scope, request) {
|
|
2635
|
+
this.request = request;
|
|
2636
|
+
this.base = `w/${encodeURIComponent(scope.scopeUuid)}/chats`;
|
|
2637
|
+
this.testMemberId = scope.testMemberId;
|
|
2638
|
+
}
|
|
2639
|
+
request;
|
|
2640
|
+
base;
|
|
2641
|
+
testMemberId;
|
|
2642
|
+
path(chat, suffix2 = "", params = new URLSearchParams()) {
|
|
2643
|
+
if (this.testMemberId !== void 0) params.set("test_member_id", String(this.testMemberId));
|
|
2644
|
+
return `${this.base}${chat === void 0 ? "" : `/${encodeURIComponent(chat)}`}${suffix2}${params.size ? `?${params}` : ""}`;
|
|
2645
|
+
}
|
|
2646
|
+
snapshot(chat, options = {}) {
|
|
2647
|
+
const params = new URLSearchParams();
|
|
2648
|
+
if (options.before !== void 0) params.set("before", String(options.before));
|
|
2649
|
+
if (options.cursor) params.set("cursor", options.cursor);
|
|
2650
|
+
return this.request(this.path(chat, "/snapshot", params), {
|
|
2651
|
+
cache: "no-store",
|
|
2652
|
+
signal: options.signal
|
|
2653
|
+
});
|
|
2654
|
+
}
|
|
2655
|
+
create(body) {
|
|
2656
|
+
return this.request(this.path(), { method: "POST", body: JSON.stringify(body) });
|
|
2657
|
+
}
|
|
2658
|
+
send(chat, body) {
|
|
2659
|
+
return this.request(this.path(chat, "/input"), {
|
|
2660
|
+
method: "POST",
|
|
2661
|
+
body: JSON.stringify(body)
|
|
2662
|
+
});
|
|
2663
|
+
}
|
|
2664
|
+
respond(chat, body) {
|
|
2665
|
+
return this.request(this.path(chat, "/responses"), {
|
|
2666
|
+
method: "POST",
|
|
2667
|
+
body: JSON.stringify(body)
|
|
2668
|
+
});
|
|
2669
|
+
}
|
|
2670
|
+
stop(chat, body) {
|
|
2671
|
+
return this.request(this.path(chat, "/stop"), {
|
|
2672
|
+
method: "POST",
|
|
2673
|
+
body: JSON.stringify(body)
|
|
2674
|
+
});
|
|
2675
|
+
}
|
|
2676
|
+
};
|
|
2677
|
+
|
|
2496
2678
|
// src/api/chats.ts
|
|
2497
2679
|
var ChatsApi = class extends BaseApiClient {
|
|
2680
|
+
/** Bind the Chat lifecycle API to its authority base once. */
|
|
2681
|
+
chat(scope) {
|
|
2682
|
+
return new ChatApi(
|
|
2683
|
+
scope,
|
|
2684
|
+
(path, options) => this.fetch(path, options)
|
|
2685
|
+
);
|
|
2686
|
+
}
|
|
2498
2687
|
/**
|
|
2499
2688
|
* Build URLSearchParams from GetChatsOptions.
|
|
2500
2689
|
* Excludes pagination params when includePagination is false.
|
|
@@ -2553,10 +2742,31 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
2553
2742
|
return response.blob();
|
|
2554
2743
|
}
|
|
2555
2744
|
/** Export a single chat in the specified format as a downloadable blob. */
|
|
2556
|
-
async exportChat(wid, chatId, format = "jsonl") {
|
|
2557
|
-
const
|
|
2745
|
+
async exportChat(wid, chatId, format = "jsonl", options) {
|
|
2746
|
+
const params = new URLSearchParams({ format });
|
|
2747
|
+
if (options?.includeStaffNotes) params.append("includeStaffNotes", "true");
|
|
2748
|
+
const response = await this.fetchRaw(`w/${wid}/chats/${chatId}/export?${params.toString()}`);
|
|
2558
2749
|
return response.blob();
|
|
2559
2750
|
}
|
|
2751
|
+
/** Staff notes on a chat, oldest first (the newest `limit`). Requires
|
|
2752
|
+
* access to the chat and `chats:admin`. Notes are never delivered. */
|
|
2753
|
+
async listChatStaffNotes(wid, chatId, options) {
|
|
2754
|
+
const params = new URLSearchParams();
|
|
2755
|
+
if (options?.limit) params.append("limit", options.limit.toString());
|
|
2756
|
+
if (options?.before) params.append("before", options.before);
|
|
2757
|
+
const query2 = params.toString();
|
|
2758
|
+
return this.fetch(
|
|
2759
|
+
`w/${wid}/chats/${chatId}/notes${query2 ? `?${query2}` : ""}`
|
|
2760
|
+
);
|
|
2761
|
+
}
|
|
2762
|
+
/** Write a staff note on a chat. Append-only; nothing is sent to anyone,
|
|
2763
|
+
* and no Agent turn starts. Requires access to the chat and `chats:admin`. */
|
|
2764
|
+
async createChatStaffNote(wid, chatId, body) {
|
|
2765
|
+
return this.fetch(`w/${wid}/chats/${chatId}/notes`, {
|
|
2766
|
+
method: "POST",
|
|
2767
|
+
body: JSON.stringify(body)
|
|
2768
|
+
});
|
|
2769
|
+
}
|
|
2560
2770
|
/** Get a single chat by ID. */
|
|
2561
2771
|
async getChat(wid, id) {
|
|
2562
2772
|
return this.fetch(`w/${wid}/chats/${id}`);
|
|
@@ -2668,6 +2878,21 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
2668
2878
|
`w/${wid}/chats/${chatId}/inline-connect/${encodeURIComponent(appSlug)}/link`
|
|
2669
2879
|
);
|
|
2670
2880
|
}
|
|
2881
|
+
/**
|
|
2882
|
+
* Send or discard a message the Manager proposed in a chat.
|
|
2883
|
+
*
|
|
2884
|
+
* A `proposed_message` prompt (`UiPromptPresented.proposedMessage`) is a
|
|
2885
|
+
* draft: nothing was sent and the chat did not pause. `decision: 'send'`
|
|
2886
|
+
* runs the drafted call, with `body` / `subject` replacing the draft's
|
|
2887
|
+
* text when set; `'discard'` drops it. A send that the provider refuses is
|
|
2888
|
+
* a 200 with `status: 'failed'`. 409 when it was already settled.
|
|
2889
|
+
*/
|
|
2890
|
+
async decideProposedMessage(wid, chatId, promptId, request) {
|
|
2891
|
+
return this.fetch(
|
|
2892
|
+
`w/${wid}/chats/${chatId}/proposed-messages/${encodeURIComponent(promptId)}/decision`,
|
|
2893
|
+
{ method: "POST", body: JSON.stringify(request) }
|
|
2894
|
+
);
|
|
2895
|
+
}
|
|
2671
2896
|
/** Get loaded and revealed skills for a chat. */
|
|
2672
2897
|
async getChatSkills(wid, chatId) {
|
|
2673
2898
|
return this.fetch(`w/${wid}/chats/${chatId}/skills`);
|
|
@@ -2874,7 +3099,7 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
2874
3099
|
);
|
|
2875
3100
|
}
|
|
2876
3101
|
/**
|
|
2877
|
-
* Rate a chat message by its
|
|
3102
|
+
* Rate a chat message by its `id` (message ID), not its `uuid`.
|
|
2878
3103
|
* Optional ``comment`` updates free-text details on the same durable rating row.
|
|
2879
3104
|
*/
|
|
2880
3105
|
async rateMessage(wid, chatId, messageUuid, rating, comment) {
|
|
@@ -2955,7 +3180,7 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
2955
3180
|
method: "DELETE"
|
|
2956
3181
|
});
|
|
2957
3182
|
}
|
|
2958
|
-
/** Get distinct tool call names used
|
|
3183
|
+
/** Get distinct tool call names used in the chats the caller may receive. */
|
|
2959
3184
|
async getToolCallNames(wid) {
|
|
2960
3185
|
return this.fetch(`w/${wid}/chats/tool-call-names`);
|
|
2961
3186
|
}
|
|
@@ -3272,24 +3497,6 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
3272
3497
|
}
|
|
3273
3498
|
return await response.json();
|
|
3274
3499
|
}
|
|
3275
|
-
/** Read the local Form's draft and optimistic publication counters. */
|
|
3276
|
-
async getDataTypeDraft(wid, id) {
|
|
3277
|
-
return this.fetch(`w/${wid}/data-types/${id}/schema-draft`);
|
|
3278
|
-
}
|
|
3279
|
-
/** Save a draft without changing the schema used to validate live records. */
|
|
3280
|
-
async saveDataTypeDraft(wid, id, request) {
|
|
3281
|
-
return this.fetch(`w/${wid}/data-types/${id}/schema-draft`, {
|
|
3282
|
-
method: "PUT",
|
|
3283
|
-
body: JSON.stringify(request)
|
|
3284
|
-
});
|
|
3285
|
-
}
|
|
3286
|
-
/** Publish the expected draft as the next immutable local schema version. */
|
|
3287
|
-
async publishDataTypeDraft(wid, id, request) {
|
|
3288
|
-
return this.fetch(`w/${wid}/data-types/${id}/schema-publish`, {
|
|
3289
|
-
method: "POST",
|
|
3290
|
-
body: JSON.stringify(request)
|
|
3291
|
-
});
|
|
3292
|
-
}
|
|
3293
3500
|
/** List schema history newest first; use the last version as the next cursor. */
|
|
3294
3501
|
async getDataTypeVersions(wid, id, options) {
|
|
3295
3502
|
const params = new URLSearchParams();
|
|
@@ -3381,6 +3588,16 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
3381
3588
|
`w/${wid}/data-types/${dataTypeId}/records${params?.toString() ? `?${params.toString()}` : ""}`
|
|
3382
3589
|
);
|
|
3383
3590
|
}
|
|
3591
|
+
/**
|
|
3592
|
+
* The record a Workspace Fields Form's templates read: the newest shared,
|
|
3593
|
+
* non-eval, non-retired record, or `null` before the first save. The
|
|
3594
|
+
* Values tab edits this record. Requires `records:read`.
|
|
3595
|
+
*/
|
|
3596
|
+
async getWorkspaceValuesRecord(wid, dataTypeId) {
|
|
3597
|
+
return this.fetch(
|
|
3598
|
+
`w/${wid}/data-types/${dataTypeId}/workspace-values`
|
|
3599
|
+
);
|
|
3600
|
+
}
|
|
3384
3601
|
/**
|
|
3385
3602
|
* List an anonymous Form's submissions, newest first. Requires
|
|
3386
3603
|
* `anonymous_submissions:read`. Submissions are immutable: there is no
|
|
@@ -3912,6 +4129,16 @@ var TeamsAppsApi = class extends BaseApiClient {
|
|
|
3912
4129
|
`w/${wid}/app-connections/teams/apps/${appId}/installations${params.toString() ? `?${params.toString()}` : ""}`
|
|
3913
4130
|
);
|
|
3914
4131
|
}
|
|
4132
|
+
/**
|
|
4133
|
+
* Channels this app has observed, for approval on its settings form.
|
|
4134
|
+
* Approval is saved through `updateTeamsApp`
|
|
4135
|
+
* (`approvedNotificationDestinationIds`); observation approves nothing.
|
|
4136
|
+
*/
|
|
4137
|
+
async getTeamsNotificationDestinations(wid, appId) {
|
|
4138
|
+
return this.fetch(
|
|
4139
|
+
`w/${wid}/app-connections/teams/apps/${appId}/notification-destinations`
|
|
4140
|
+
);
|
|
4141
|
+
}
|
|
3915
4142
|
async getTeamsAppAccounts(wid, appId, options = {}) {
|
|
3916
4143
|
const params = new URLSearchParams();
|
|
3917
4144
|
if (options.page) params.append("page", options.page.toString());
|
|
@@ -3933,6 +4160,10 @@ var EventsApi = class extends BaseApiClient {
|
|
|
3933
4160
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
3934
4161
|
return this.fetch(`w/${wid}/event-rules${qs}`);
|
|
3935
4162
|
}
|
|
4163
|
+
/** Complete directory identity/state without Action or trigger payloads. */
|
|
4164
|
+
async getEventRuleIndex(wid) {
|
|
4165
|
+
return this.fetch(`w/${wid}/event-rules/index`);
|
|
4166
|
+
}
|
|
3936
4167
|
/** Get the available action types that can be used in event rules. */
|
|
3937
4168
|
async getAvailableActions(wid) {
|
|
3938
4169
|
return this.fetch(`w/${wid}/event-rules/actions/available`);
|
|
@@ -4106,6 +4337,10 @@ var EventsApi = class extends BaseApiClient {
|
|
|
4106
4337
|
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
4107
4338
|
if (options.routineId) params.append("routineId", options.routineId.toString());
|
|
4108
4339
|
if (options.status) params.append("status", options.status);
|
|
4340
|
+
if (options.runId) params.append("runId", String(options.runId));
|
|
4341
|
+
if (options.parentRunId) params.append("parentRunId", String(options.parentRunId));
|
|
4342
|
+
if (options.dispatchKey) params.append("dispatchKey", options.dispatchKey);
|
|
4343
|
+
if (options.rootsOnly) params.append("rootsOnly", "true");
|
|
4109
4344
|
return this.fetch(
|
|
4110
4345
|
`w/${wid}/routines/runs?${params.toString()}`
|
|
4111
4346
|
);
|
|
@@ -4724,6 +4959,16 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
4724
4959
|
`w/${wid}/app-connections/healthie/reconciliation/matches${qs}`
|
|
4725
4960
|
);
|
|
4726
4961
|
}
|
|
4962
|
+
/** Propose a Member for each unlinked patient on synced Healthie calendars. */
|
|
4963
|
+
async getHealthieAppointmentPatientMatches(wid, params) {
|
|
4964
|
+
const query2 = new URLSearchParams();
|
|
4965
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
4966
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
4967
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4968
|
+
return this.fetch(
|
|
4969
|
+
`w/${wid}/app-connections/healthie/reconciliation/appointment-matches${qs}`
|
|
4970
|
+
);
|
|
4971
|
+
}
|
|
4727
4972
|
async linkMemberToHealthie(wid, data) {
|
|
4728
4973
|
return this.fetch(`w/${wid}/app-connections/healthie/reconciliation/link`, {
|
|
4729
4974
|
method: "POST",
|
|
@@ -4776,7 +5021,7 @@ var FilesApi = class extends BaseApiClient {
|
|
|
4776
5021
|
/** List files in a workspace with optional folder filtering, sorting, and search. */
|
|
4777
5022
|
async getFiles(wid, options = {}) {
|
|
4778
5023
|
const params = new URLSearchParams();
|
|
4779
|
-
if (options.folderId) params.append("folder_id", options.folderId.toString());
|
|
5024
|
+
if (options.folderId != null) params.append("folder_id", options.folderId.toString());
|
|
4780
5025
|
if (options.page) params.append("page", options.page.toString());
|
|
4781
5026
|
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
4782
5027
|
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
@@ -4982,11 +5227,15 @@ var FilesApi = class extends BaseApiClient {
|
|
|
4982
5227
|
method: "POST"
|
|
4983
5228
|
});
|
|
4984
5229
|
}
|
|
4985
|
-
/** Search for content within a folder using semantic search. */
|
|
5230
|
+
/** Search for content within a folder, or across its whole drive, using semantic search. */
|
|
4986
5231
|
async searchFolder(wid, id, params) {
|
|
4987
5232
|
const searchParams = new URLSearchParams();
|
|
4988
5233
|
searchParams.append("query", params.query);
|
|
4989
5234
|
if (params.topK) searchParams.append("top_k", params.topK.toString());
|
|
5235
|
+
if (params.allFiles) searchParams.append("all_files", "true");
|
|
5236
|
+
if (params.rootFolderId) {
|
|
5237
|
+
searchParams.append("root_folder_id", params.rootFolderId.toString());
|
|
5238
|
+
}
|
|
4990
5239
|
return this.fetch(
|
|
4991
5240
|
`w/${wid}/folders/${id}/search?${searchParams.toString()}`
|
|
4992
5241
|
);
|
|
@@ -5390,7 +5639,9 @@ var InquiriesApi = class extends BaseApiClient {
|
|
|
5390
5639
|
const searchParams = new URLSearchParams();
|
|
5391
5640
|
if (params?.page) searchParams.append("page", params.page.toString());
|
|
5392
5641
|
if (params?.pageSize) searchParams.append("page_size", params.pageSize.toString());
|
|
5393
|
-
|
|
5642
|
+
const types = typeof params?.inquiryType === "string" ? [params.inquiryType] : params?.inquiryType;
|
|
5643
|
+
types?.filter(Boolean).forEach((type) => searchParams.append("inquiry_type", type));
|
|
5644
|
+
params?.statuses?.forEach((status) => searchParams.append("status", status));
|
|
5394
5645
|
const queryString = searchParams.toString();
|
|
5395
5646
|
const url = queryString ? `inquiries?${queryString}` : "inquiries";
|
|
5396
5647
|
return this.fetch(url);
|
|
@@ -5644,7 +5895,7 @@ var MemberImportValidationError = class extends Error {
|
|
|
5644
5895
|
this.validationErrors = validationErrors;
|
|
5645
5896
|
}
|
|
5646
5897
|
};
|
|
5647
|
-
function throwMemberImportError(errorBody, fallback) {
|
|
5898
|
+
function throwMemberImportError(errorBody, fallback, statusCode) {
|
|
5648
5899
|
let detail = errorBody?.detail;
|
|
5649
5900
|
if (typeof detail === "string") {
|
|
5650
5901
|
try {
|
|
@@ -5654,12 +5905,13 @@ function throwMemberImportError(errorBody, fallback) {
|
|
|
5654
5905
|
}
|
|
5655
5906
|
}
|
|
5656
5907
|
if (detail && typeof detail === "object") {
|
|
5657
|
-
const { message, errors } = detail;
|
|
5908
|
+
const { message: message2, errors } = detail;
|
|
5658
5909
|
if (Array.isArray(errors)) {
|
|
5659
|
-
throw new MemberImportValidationError(
|
|
5910
|
+
throw new MemberImportValidationError(message2 || fallback, errors);
|
|
5660
5911
|
}
|
|
5661
5912
|
}
|
|
5662
|
-
|
|
5913
|
+
const message = typeof detail === "string" ? detail : fallback;
|
|
5914
|
+
throw statusCode === void 0 ? new Error(message) : new ApiError(message, statusCode);
|
|
5663
5915
|
}
|
|
5664
5916
|
function memberImportUpload(file, roleId, options) {
|
|
5665
5917
|
const body = new FormData();
|
|
@@ -5674,6 +5926,39 @@ function memberImportUpload(file, roleId, options) {
|
|
|
5674
5926
|
}
|
|
5675
5927
|
return { body, params };
|
|
5676
5928
|
}
|
|
5929
|
+
function parseMemberImportSseFrames(buffer) {
|
|
5930
|
+
const held = buffer.endsWith("\r") ? "\r" : "";
|
|
5931
|
+
const text = (held ? buffer.slice(0, -1) : buffer).replace(/\r\n?/g, "\n");
|
|
5932
|
+
const frames = text.split("\n\n");
|
|
5933
|
+
const rest = (frames.pop() ?? "") + held;
|
|
5934
|
+
const payloads = [];
|
|
5935
|
+
for (const frame of frames) {
|
|
5936
|
+
const data = [];
|
|
5937
|
+
for (const line of frame.split("\n")) {
|
|
5938
|
+
if (!line || line.startsWith(":")) continue;
|
|
5939
|
+
const colon = line.indexOf(":");
|
|
5940
|
+
if ((colon === -1 ? line : line.slice(0, colon)) !== "data") continue;
|
|
5941
|
+
const value = colon === -1 ? "" : line.slice(colon + 1);
|
|
5942
|
+
data.push(value.startsWith(" ") ? value.slice(1) : value);
|
|
5943
|
+
}
|
|
5944
|
+
if (data.length) payloads.push(data.join("\n"));
|
|
5945
|
+
}
|
|
5946
|
+
return { payloads, rest };
|
|
5947
|
+
}
|
|
5948
|
+
function toMemberImportRunEvent(payload) {
|
|
5949
|
+
if (!payload || typeof payload !== "object" || Array.isArray(payload)) return null;
|
|
5950
|
+
const event = payload;
|
|
5951
|
+
if (event.type === "import_run") {
|
|
5952
|
+
return typeof event.runId === "string" && typeof event.status === "string" ? event : null;
|
|
5953
|
+
}
|
|
5954
|
+
if (event.type === "import_item") {
|
|
5955
|
+
return typeof event.runId === "string" && typeof event.status === "string" && Number.isInteger(event.index) ? event : null;
|
|
5956
|
+
}
|
|
5957
|
+
if (event.type === "done") {
|
|
5958
|
+
return typeof event.runId === "string" ? event : null;
|
|
5959
|
+
}
|
|
5960
|
+
return "unrecognized";
|
|
5961
|
+
}
|
|
5677
5962
|
var MembersApi = class extends BaseApiClient {
|
|
5678
5963
|
memberImportPlans = /* @__PURE__ */ new WeakMap();
|
|
5679
5964
|
/** Get the currently authenticated member for a workspace. */
|
|
@@ -5763,6 +6048,9 @@ var MembersApi = class extends BaseApiClient {
|
|
|
5763
6048
|
}
|
|
5764
6049
|
return this.fetch(`w/${wid}/members?${params.toString()}`);
|
|
5765
6050
|
}
|
|
6051
|
+
async getMemberSmsSenders(wid, memberId) {
|
|
6052
|
+
return this.fetch(`w/${wid}/members/${memberId}/sms-senders`);
|
|
6053
|
+
}
|
|
5766
6054
|
/** Get a single workspace member by ID. */
|
|
5767
6055
|
async getWorkspaceMember(wid, memberId) {
|
|
5768
6056
|
return this.fetch(`w/${wid}/members/${memberId}`);
|
|
@@ -6115,6 +6403,130 @@ var MembersApi = class extends BaseApiClient {
|
|
|
6115
6403
|
result
|
|
6116
6404
|
};
|
|
6117
6405
|
}
|
|
6406
|
+
/**
|
|
6407
|
+
* Start a durable members CSV import (`POST /members/import/runs`) and read
|
|
6408
|
+
* its progress stream.
|
|
6409
|
+
*
|
|
6410
|
+
* The server stores the upload and `options.resolutions` as an artifact and
|
|
6411
|
+
* a Temporal workflow owns the import, so the run continues whatever happens
|
|
6412
|
+
* to this stream. `onEvent` receives each `import_run` / `import_item` /
|
|
6413
|
+
* `done` event as it is parsed; the first `import_run` carries the run id,
|
|
6414
|
+
* delivered before any later event is read.
|
|
6415
|
+
*
|
|
6416
|
+
* Unlike `importMembers`, this never previews implicitly: it sends exactly
|
|
6417
|
+
* the `previewPlanToken` supplied (or none) and never consults or refreshes
|
|
6418
|
+
* the preview cache. It never retries the POST. A non-2xx response throws:
|
|
6419
|
+
* `MemberImportValidationError` for structured validation details, otherwise
|
|
6420
|
+
* an `ApiError` carrying the status (409 means another import is already
|
|
6421
|
+
* running for the workspace). A stream that ends, fails or carries an
|
|
6422
|
+
* unreadable event before its `done` resolves as `incomplete` with whatever
|
|
6423
|
+
* run id was seen; an exception thrown by `onEvent` propagates.
|
|
6424
|
+
*
|
|
6425
|
+
* `streamStatus` reports the stream, not the import: read the run's
|
|
6426
|
+
* `status` and counters (`completed_with_errors` and `failed` are terminal
|
|
6427
|
+
* too), or `listMemberImportRuns`, for the outcome.
|
|
6428
|
+
*/
|
|
6429
|
+
async startMemberImportRun(wid, file, newMemberRoleId, options, onEvent) {
|
|
6430
|
+
const { body, params } = memberImportUpload(file, newMemberRoleId, options);
|
|
6431
|
+
if (options?.previewPlanToken) body.append("previewPlanToken", options.previewPlanToken);
|
|
6432
|
+
if (options?.identityConflictPolicy) {
|
|
6433
|
+
params.set("identity_conflict_policy", options.identityConflictPolicy);
|
|
6434
|
+
}
|
|
6435
|
+
const response = await this.fetchRaw(
|
|
6436
|
+
`w/${wid}/members/import/runs?${params.toString()}`,
|
|
6437
|
+
{ method: "POST", body },
|
|
6438
|
+
[400, 413]
|
|
6439
|
+
);
|
|
6440
|
+
if (!response.ok) {
|
|
6441
|
+
const error = await response.json().catch(() => ({}));
|
|
6442
|
+
throwMemberImportError(error, "Import run start failed", response.status);
|
|
6443
|
+
}
|
|
6444
|
+
let runId = null;
|
|
6445
|
+
let latestRun = null;
|
|
6446
|
+
const incomplete = () => ({
|
|
6447
|
+
streamStatus: "incomplete",
|
|
6448
|
+
runId,
|
|
6449
|
+
latestRun
|
|
6450
|
+
});
|
|
6451
|
+
if (!response.body) return incomplete();
|
|
6452
|
+
const reader = response.body.getReader();
|
|
6453
|
+
const decoder = new TextDecoder();
|
|
6454
|
+
let buffer = "";
|
|
6455
|
+
let finished = false;
|
|
6456
|
+
const consume = (payload) => {
|
|
6457
|
+
if (payload.trim() === "[DONE]" || !payload.trim()) return "continue";
|
|
6458
|
+
let parsed;
|
|
6459
|
+
try {
|
|
6460
|
+
parsed = JSON.parse(payload);
|
|
6461
|
+
} catch {
|
|
6462
|
+
return "malformed";
|
|
6463
|
+
}
|
|
6464
|
+
const event = toMemberImportRunEvent(parsed);
|
|
6465
|
+
if (event === "unrecognized") return "continue";
|
|
6466
|
+
if (event === null) return "malformed";
|
|
6467
|
+
runId ??= event.runId;
|
|
6468
|
+
if (event.runId !== runId) return "malformed";
|
|
6469
|
+
if (event.type === "import_run") {
|
|
6470
|
+
const { type: _type, ...run } = event;
|
|
6471
|
+
latestRun = run;
|
|
6472
|
+
}
|
|
6473
|
+
onEvent?.(event);
|
|
6474
|
+
return event.type === "done" ? "done" : "continue";
|
|
6475
|
+
};
|
|
6476
|
+
try {
|
|
6477
|
+
while (!finished) {
|
|
6478
|
+
const chunk = await reader.read().catch(() => null);
|
|
6479
|
+
if (chunk === null) return incomplete();
|
|
6480
|
+
buffer += chunk.done ? decoder.decode() : decoder.decode(chunk.value, { stream: true });
|
|
6481
|
+
const { payloads, rest } = parseMemberImportSseFrames(
|
|
6482
|
+
chunk.done ? `${buffer}
|
|
6483
|
+
|
|
6484
|
+
` : buffer
|
|
6485
|
+
);
|
|
6486
|
+
buffer = rest;
|
|
6487
|
+
for (const payload of payloads) {
|
|
6488
|
+
const outcome = consume(payload);
|
|
6489
|
+
if (outcome === "malformed") return incomplete();
|
|
6490
|
+
if (outcome === "done") {
|
|
6491
|
+
finished = true;
|
|
6492
|
+
break;
|
|
6493
|
+
}
|
|
6494
|
+
}
|
|
6495
|
+
if (chunk.done) break;
|
|
6496
|
+
}
|
|
6497
|
+
} finally {
|
|
6498
|
+
await reader.cancel().catch(() => void 0);
|
|
6499
|
+
reader.releaseLock();
|
|
6500
|
+
}
|
|
6501
|
+
return finished ? { streamStatus: "complete", runId, latestRun } : incomplete();
|
|
6502
|
+
}
|
|
6503
|
+
/**
|
|
6504
|
+
* Recent durable member import runs, newest first, with their persisted
|
|
6505
|
+
* counters. The server returns at most 100 and has no pagination: a run
|
|
6506
|
+
* missing from the list is outside the inspected window, not absent.
|
|
6507
|
+
*/
|
|
6508
|
+
async listMemberImportRuns(wid, options) {
|
|
6509
|
+
const params = new URLSearchParams();
|
|
6510
|
+
if (options?.limit !== void 0) params.set("limit", String(options.limit));
|
|
6511
|
+
const query2 = params.toString();
|
|
6512
|
+
return this.fetch(
|
|
6513
|
+
`w/${wid}/members/import/runs${query2 ? `?${query2}` : ""}`
|
|
6514
|
+
);
|
|
6515
|
+
}
|
|
6516
|
+
/**
|
|
6517
|
+
* Per-row outcomes of one durable import run, a bounded sample (server
|
|
6518
|
+
* default 500, maximum 10,000, no cursor). `index` is the zero-based data
|
|
6519
|
+
* row of the uploaded CSV. Totals come from the run summary, never from
|
|
6520
|
+
* counting this list.
|
|
6521
|
+
*/
|
|
6522
|
+
async listMemberImportRunItems(wid, runId, options) {
|
|
6523
|
+
const params = new URLSearchParams();
|
|
6524
|
+
if (options?.limit !== void 0) params.set("limit", String(options.limit));
|
|
6525
|
+
const query2 = params.toString();
|
|
6526
|
+
return this.fetch(
|
|
6527
|
+
`w/${wid}/members/import/runs/${encodeURIComponent(runId)}/items${query2 ? `?${query2}` : ""}`
|
|
6528
|
+
);
|
|
6529
|
+
}
|
|
6118
6530
|
/** Export members as a downloadable file with selected fields and data types. */
|
|
6119
6531
|
async exportMembers(wid, selectedFields, selectedDataTypes, memberType) {
|
|
6120
6532
|
const params = new URLSearchParams();
|
|
@@ -6324,6 +6736,21 @@ var MembersApi = class extends BaseApiClient {
|
|
|
6324
6736
|
}
|
|
6325
6737
|
};
|
|
6326
6738
|
|
|
6739
|
+
// src/types/generated/notification.ts
|
|
6740
|
+
var NotificationMarkerAction = {
|
|
6741
|
+
read: "read",
|
|
6742
|
+
dismiss: "dismiss"
|
|
6743
|
+
};
|
|
6744
|
+
|
|
6745
|
+
// src/types/generated/open_item.ts
|
|
6746
|
+
var OpenItemKind = {
|
|
6747
|
+
awaiting_human: "awaiting_human",
|
|
6748
|
+
connection_authorization: "connection_authorization",
|
|
6749
|
+
missed_call: "missed_call",
|
|
6750
|
+
routine_result: "routine_result",
|
|
6751
|
+
voicemail: "voicemail"
|
|
6752
|
+
};
|
|
6753
|
+
|
|
6327
6754
|
// src/api/activity.ts
|
|
6328
6755
|
var ActivityApi = class extends BaseApiClient {
|
|
6329
6756
|
/** The account mount: this caller's whole estate, at any grain. */
|
|
@@ -6372,6 +6799,47 @@ var ActivityApi = class extends BaseApiClient {
|
|
|
6372
6799
|
body: JSON.stringify(request)
|
|
6373
6800
|
});
|
|
6374
6801
|
}
|
|
6802
|
+
/**
|
|
6803
|
+
* The account mount's notification feed, newest first.
|
|
6804
|
+
*
|
|
6805
|
+
* `window` is required and the client keeps it fixed across pages — a
|
|
6806
|
+
* cursor is bound to the exact request that issued it. "This workspace" is
|
|
6807
|
+
* the same read with `scope.workspaceUuids = [wid]`; "All" omits `scope`.
|
|
6808
|
+
* There is no second authorization path: a workspace the caller may not see
|
|
6809
|
+
* stays in the narrowing and admits nothing of its own, so a UUID the caller
|
|
6810
|
+
* names can never widen the response.
|
|
6811
|
+
*/
|
|
6812
|
+
async queryActivityNotifications(request) {
|
|
6813
|
+
return this.fetch("activity/notifications", {
|
|
6814
|
+
method: "POST",
|
|
6815
|
+
body: JSON.stringify(request)
|
|
6816
|
+
});
|
|
6817
|
+
}
|
|
6818
|
+
/**
|
|
6819
|
+
* The bell's number for this account.
|
|
6820
|
+
*
|
|
6821
|
+
* A snapshot, not a page: no cursor, and the way to see more is to open the
|
|
6822
|
+
* feed. An omitted `window` uses the server's recent lookback.
|
|
6823
|
+
*/
|
|
6824
|
+
async getActivityNotificationCount(request = {}) {
|
|
6825
|
+
return this.fetch("activity/notifications/count", {
|
|
6826
|
+
method: "POST",
|
|
6827
|
+
body: JSON.stringify(request)
|
|
6828
|
+
});
|
|
6829
|
+
}
|
|
6830
|
+
/**
|
|
6831
|
+
* Mark presented occurrences read, or dismiss them.
|
|
6832
|
+
*
|
|
6833
|
+
* Additive and idempotent: a repeat applies the same keys without moving
|
|
6834
|
+
* their timestamps, and keys the caller may no longer see are skipped
|
|
6835
|
+
* silently. The response counts what was applied.
|
|
6836
|
+
*/
|
|
6837
|
+
async markActivityNotifications(request) {
|
|
6838
|
+
return this.fetch("activity/notifications/mark", {
|
|
6839
|
+
method: "POST",
|
|
6840
|
+
body: JSON.stringify(request)
|
|
6841
|
+
});
|
|
6842
|
+
}
|
|
6375
6843
|
/**
|
|
6376
6844
|
* What this caller's estate admits, so a client renders honest controls.
|
|
6377
6845
|
*
|
|
@@ -6679,6 +7147,24 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
6679
7147
|
body: JSON.stringify({ syncConfig })
|
|
6680
7148
|
});
|
|
6681
7149
|
}
|
|
7150
|
+
/**
|
|
7151
|
+
* Run every Monday save-time check that needs no save effect against
|
|
7152
|
+
* `syncConfig`, without saving: no configuration, webhook, Form or managed
|
|
7153
|
+
* rule changes and no sync run. The same route and body as
|
|
7154
|
+
* `updateMondaySyncConfig`, with `validateOnly=true`; a refused check is the
|
|
7155
|
+
* save's own 400/403. `notCheckedWithoutSave` names what only the save does
|
|
7156
|
+
* (including `webhook_reconcile`). Monday takes no base digest: a later save
|
|
7157
|
+
* does not detect a configuration changed since it was read.
|
|
7158
|
+
*/
|
|
7159
|
+
async validateMondaySyncConfig(wid, syncConfig) {
|
|
7160
|
+
return this.fetch(
|
|
7161
|
+
`w/${wid}/app-connections/monday/sync-config?validateOnly=true`,
|
|
7162
|
+
{
|
|
7163
|
+
method: "PUT",
|
|
7164
|
+
body: JSON.stringify({ syncConfig })
|
|
7165
|
+
}
|
|
7166
|
+
);
|
|
7167
|
+
}
|
|
6682
7168
|
async getLinkedMondayMembers(wid, params) {
|
|
6683
7169
|
const query2 = new URLSearchParams();
|
|
6684
7170
|
if (params?.board_id) query2.set("board_id", params.board_id);
|
|
@@ -6813,6 +7299,15 @@ var NotificationRulesApi = class extends BaseApiClient {
|
|
|
6813
7299
|
body: JSON.stringify(rule)
|
|
6814
7300
|
});
|
|
6815
7301
|
}
|
|
7302
|
+
/**
|
|
7303
|
+
* Approved, available shared destinations (Teams channels) a notification
|
|
7304
|
+
* rule or Action may name. Choosing one never grants approval.
|
|
7305
|
+
*/
|
|
7306
|
+
async getNotificationDestinations(wid) {
|
|
7307
|
+
return this.fetch(
|
|
7308
|
+
`w/${wid}/notification-destinations`
|
|
7309
|
+
);
|
|
7310
|
+
}
|
|
6816
7311
|
/** Delete a notification rule. */
|
|
6817
7312
|
async deleteNotificationRule(wid, ruleId) {
|
|
6818
7313
|
return this.fetch(`w/${wid}/notification-rules/${ruleId}`, {
|
|
@@ -6889,48 +7384,65 @@ var OperatorApi = class extends BaseApiClient {
|
|
|
6889
7384
|
};
|
|
6890
7385
|
|
|
6891
7386
|
// src/api/org.ts
|
|
6892
|
-
var
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
async createOrgManagerChat(org, title) {
|
|
6899
|
-
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats`, {
|
|
6900
|
-
method: "POST",
|
|
6901
|
-
body: JSON.stringify({ title })
|
|
6902
|
-
});
|
|
6903
|
-
}
|
|
6904
|
-
async authorizeOrgManagerDelegation(workspace, orgUuid, chatId, callId) {
|
|
6905
|
-
return this.fetch(`w/${encodeURIComponent(workspace)}/a2a/manager/delegation-credential`, {
|
|
6906
|
-
method: "POST",
|
|
6907
|
-
body: JSON.stringify({ orgUuid, chatId, callId }),
|
|
6908
|
-
cache: "no-store"
|
|
6909
|
-
});
|
|
6910
|
-
}
|
|
6911
|
-
async getOrgManagerCredentialResponse(org, chatId, deliveryId) {
|
|
6912
|
-
return this.fetch(
|
|
6913
|
-
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/credentials/${encodeURIComponent(deliveryId)}`,
|
|
6914
|
-
{ cache: "no-store" }
|
|
6915
|
-
);
|
|
6916
|
-
}
|
|
6917
|
-
async getOrgManagerMessages(org, chatId, before) {
|
|
6918
|
-
return this.fetch(
|
|
6919
|
-
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/messages${before ? `?before=${before}` : ""}`
|
|
7387
|
+
var OrgApiKeyLimitUnconfirmedError = class extends Error {
|
|
7388
|
+
keyId;
|
|
7389
|
+
revoked;
|
|
7390
|
+
constructor(keyId, revoked) {
|
|
7391
|
+
super(
|
|
7392
|
+
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.`
|
|
6920
7393
|
);
|
|
7394
|
+
this.name = "OrgApiKeyLimitUnconfirmedError";
|
|
7395
|
+
this.keyId = keyId;
|
|
7396
|
+
this.revoked = revoked;
|
|
6921
7397
|
}
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
7398
|
+
};
|
|
7399
|
+
var OrgWebhookScopeUnconfirmedError = class extends Error {
|
|
7400
|
+
endpointUuid;
|
|
7401
|
+
operation;
|
|
7402
|
+
deleted;
|
|
7403
|
+
constructor(endpointUuid, operation, deleted) {
|
|
7404
|
+
super(
|
|
7405
|
+
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.`
|
|
7406
|
+
);
|
|
7407
|
+
this.name = "OrgWebhookScopeUnconfirmedError";
|
|
7408
|
+
this.endpointUuid = endpointUuid;
|
|
7409
|
+
this.operation = operation;
|
|
7410
|
+
this.deleted = operation === "create" && deleted;
|
|
6933
7411
|
}
|
|
7412
|
+
};
|
|
7413
|
+
function storedLabelSlug(value) {
|
|
7414
|
+
return value.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 64).replace(/-+$/, "");
|
|
7415
|
+
}
|
|
7416
|
+
function sameStringSet(left, right) {
|
|
7417
|
+
const a = new Set(left);
|
|
7418
|
+
const b = new Set(right);
|
|
7419
|
+
return a.size === b.size && [...a].every((value) => b.has(value));
|
|
7420
|
+
}
|
|
7421
|
+
function workspaceScopeConfirmed(requested, stored) {
|
|
7422
|
+
if (typeof stored !== "object" || stored === null) return false;
|
|
7423
|
+
const { mode, workspaceUuids, labelSelector } = stored;
|
|
7424
|
+
if (mode !== requested.mode) return false;
|
|
7425
|
+
if (!Array.isArray(workspaceUuids) || !Array.isArray(labelSelector)) return false;
|
|
7426
|
+
const storedUuids = [];
|
|
7427
|
+
for (const value of workspaceUuids) {
|
|
7428
|
+
if (typeof value !== "string") return false;
|
|
7429
|
+
storedUuids.push(value.trim().toLowerCase());
|
|
7430
|
+
}
|
|
7431
|
+
const storedSlugs = [];
|
|
7432
|
+
for (const label of labelSelector) {
|
|
7433
|
+
const slug = label?.slug;
|
|
7434
|
+
if (typeof slug !== "string") return false;
|
|
7435
|
+
storedSlugs.push(slug.toLowerCase());
|
|
7436
|
+
}
|
|
7437
|
+
const selected = requested.mode === "selected";
|
|
7438
|
+
const requestedUuids = selected ? requested.workspaceUuids ?? [] : [];
|
|
7439
|
+
const requestedSlugs = selected ? requested.labelSelector ?? [] : [];
|
|
7440
|
+
return sameStringSet(
|
|
7441
|
+
requestedUuids.map((value) => value.trim().toLowerCase()),
|
|
7442
|
+
storedUuids
|
|
7443
|
+
) && sameStringSet(requestedSlugs.map(storedLabelSlug), storedSlugs);
|
|
7444
|
+
}
|
|
7445
|
+
var OrgApi = class extends BaseApiClient {
|
|
6934
7446
|
/**
|
|
6935
7447
|
* Get organization by ID or UUID.
|
|
6936
7448
|
* Returns different response based on user's role:
|
|
@@ -7241,6 +7753,15 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7241
7753
|
body: JSON.stringify({ providerPhoneUuid })
|
|
7242
7754
|
});
|
|
7243
7755
|
}
|
|
7756
|
+
/**
|
|
7757
|
+
* Rename a phone number's Twilio and cached friendly name.
|
|
7758
|
+
*/
|
|
7759
|
+
async renamePhone(orgUuid, providerPhoneUuid, name) {
|
|
7760
|
+
return this.fetch(`o/${orgUuid}/phone-numbers/rename`, {
|
|
7761
|
+
method: "POST",
|
|
7762
|
+
body: JSON.stringify({ providerPhoneUuid, name })
|
|
7763
|
+
});
|
|
7764
|
+
}
|
|
7244
7765
|
/**
|
|
7245
7766
|
* Search available numbers. Use `mobile` for AU and `local` or `toll_free`
|
|
7246
7767
|
* for US; the server defaults to US local when the type is omitted.
|
|
@@ -7263,6 +7784,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7263
7784
|
* Australian mobile numbers require an approved business registration. Pass
|
|
7264
7785
|
* `legalEntityUuid`; the server resolves its bundle and address. Do not pass
|
|
7265
7786
|
* `bundleSid` or `addressSid` for Australian purchases.
|
|
7787
|
+
*
|
|
7788
|
+
* `name` is the whole Twilio-friendly label when supplied; without it the
|
|
7789
|
+
* server keeps its generated `{org}:0 org-{name}` fallback.
|
|
7266
7790
|
*/
|
|
7267
7791
|
async purchasePhoneNumber(orgUuid, phoneNumber, numberType, opts) {
|
|
7268
7792
|
return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
|
|
@@ -7273,28 +7797,38 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7273
7797
|
country: opts?.country,
|
|
7274
7798
|
legalEntityUuid: opts?.legalEntityUuid,
|
|
7275
7799
|
bundleSid: opts?.bundleSid,
|
|
7276
|
-
addressSid: opts?.addressSid
|
|
7800
|
+
addressSid: opts?.addressSid,
|
|
7801
|
+
name: opts?.name
|
|
7277
7802
|
})
|
|
7278
7803
|
});
|
|
7279
7804
|
}
|
|
7280
|
-
async getNumberRegistration(orgUuid, entityUuid) {
|
|
7281
|
-
|
|
7805
|
+
async getNumberRegistration(orgUuid, entityUuid, country) {
|
|
7806
|
+
const query2 = country ? `?country=${encodeURIComponent(country)}` : "";
|
|
7807
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration${query2}`);
|
|
7282
7808
|
}
|
|
7283
|
-
async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName) {
|
|
7809
|
+
async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName, country) {
|
|
7284
7810
|
const body = new FormData();
|
|
7285
7811
|
body.append("file", file);
|
|
7286
7812
|
body.append("documentType", documentType);
|
|
7287
7813
|
body.append("requirementName", requirementName);
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7814
|
+
const query2 = country ? `?country=${encodeURIComponent(country)}` : "";
|
|
7815
|
+
return this.fetch(
|
|
7816
|
+
`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/documents${query2}`,
|
|
7817
|
+
{
|
|
7818
|
+
method: "POST",
|
|
7819
|
+
body
|
|
7820
|
+
}
|
|
7821
|
+
);
|
|
7292
7822
|
}
|
|
7293
|
-
async submitNumberRegistration(orgUuid, entityUuid) {
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7823
|
+
async submitNumberRegistration(orgUuid, entityUuid, country) {
|
|
7824
|
+
const query2 = country ? `?country=${encodeURIComponent(country)}` : "";
|
|
7825
|
+
return this.fetch(
|
|
7826
|
+
`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/submit${query2}`,
|
|
7827
|
+
{
|
|
7828
|
+
method: "POST",
|
|
7829
|
+
body: JSON.stringify({})
|
|
7830
|
+
}
|
|
7831
|
+
);
|
|
7298
7832
|
}
|
|
7299
7833
|
/**
|
|
7300
7834
|
* Delete a phone number from the org (releases from Twilio).
|
|
@@ -7542,6 +8076,14 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7542
8076
|
async getPhoneVoiceTrust(orgUuid) {
|
|
7543
8077
|
return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust`);
|
|
7544
8078
|
}
|
|
8079
|
+
/**
|
|
8080
|
+
* The business each of the org's numbers is attached to, read live from
|
|
8081
|
+
* Twilio: one list per business's Customer Profile, none per number. Only
|
|
8082
|
+
* numbers exactly one business holds are listed. Organization admins only.
|
|
8083
|
+
*/
|
|
8084
|
+
async getPhoneBusinessNames(orgUuid) {
|
|
8085
|
+
return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust/businesses`);
|
|
8086
|
+
}
|
|
7545
8087
|
/**
|
|
7546
8088
|
* Put a number on a legal entity's Customer Profile and approved voice
|
|
7547
8089
|
* trust products, taking it off any other legal entity's first. The
|
|
@@ -7910,17 +8452,61 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7910
8452
|
async listOrgWebhookEventTypes(orgIdOrUuid) {
|
|
7911
8453
|
return this.fetch(`o/${orgIdOrUuid}/webhooks/event-types`);
|
|
7912
8454
|
}
|
|
8455
|
+
/**
|
|
8456
|
+
* Create an organization webhook endpoint.
|
|
8457
|
+
*
|
|
8458
|
+
* The response must confirm the requested `workspaceScope`: the same mode,
|
|
8459
|
+
* and for `selected` the same workspaces and label slugs. A server that
|
|
8460
|
+
* predates the shared scope ignores `workspaceScope` and stores an
|
|
8461
|
+
* endpoint for every workspace. When the response does not confirm the
|
|
8462
|
+
* scope (a missing scope included, even for `all`), this method does not
|
|
8463
|
+
* return the endpoint or its signing secret. It deletes the endpoint and
|
|
8464
|
+
* throws {@link OrgWebhookScopeUnconfirmedError}, whose `deleted` says
|
|
8465
|
+
* whether that delete succeeded. It never retries the create.
|
|
8466
|
+
*/
|
|
7913
8467
|
async createOrgWebhookEndpoint(orgIdOrUuid, data) {
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
8468
|
+
const created = await this.fetch(
|
|
8469
|
+
`o/${orgIdOrUuid}/webhooks`,
|
|
8470
|
+
{
|
|
8471
|
+
method: "POST",
|
|
8472
|
+
body: JSON.stringify(data)
|
|
8473
|
+
}
|
|
8474
|
+
);
|
|
8475
|
+
const stored = created.workspaceScope;
|
|
8476
|
+
if (workspaceScopeConfirmed(data.workspaceScope, stored)) return created;
|
|
8477
|
+
const endpointUuid = typeof created.uuid === "string" ? created.uuid : "";
|
|
8478
|
+
let deleted = false;
|
|
8479
|
+
if (endpointUuid) {
|
|
8480
|
+
try {
|
|
8481
|
+
await this.deleteOrgWebhookEndpoint(orgIdOrUuid, endpointUuid);
|
|
8482
|
+
deleted = true;
|
|
8483
|
+
} catch {
|
|
8484
|
+
deleted = false;
|
|
8485
|
+
}
|
|
8486
|
+
}
|
|
8487
|
+
throw new OrgWebhookScopeUnconfirmedError(endpointUuid, "create", deleted);
|
|
7918
8488
|
}
|
|
8489
|
+
/**
|
|
8490
|
+
* Update an organization webhook endpoint. An omitted (or `null`)
|
|
8491
|
+
* `workspaceScope` leaves the scope unchanged and is not checked. A sent
|
|
8492
|
+
* one replaces the whole scope, and the response must confirm it the same
|
|
8493
|
+
* way {@link OrgApi.createOrgWebhookEndpoint} checks; otherwise this
|
|
8494
|
+
* method throws {@link OrgWebhookScopeUnconfirmedError} with `operation`
|
|
8495
|
+
* `update`. It does not remediate: the previous scope is unknown here.
|
|
8496
|
+
*/
|
|
7919
8497
|
async updateOrgWebhookEndpoint(orgIdOrUuid, endpointUuid, data) {
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
8498
|
+
const updated = await this.fetch(
|
|
8499
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}`,
|
|
8500
|
+
{
|
|
8501
|
+
method: "PATCH",
|
|
8502
|
+
body: JSON.stringify(data)
|
|
8503
|
+
}
|
|
8504
|
+
);
|
|
8505
|
+
const requested = data.workspaceScope;
|
|
8506
|
+
if (requested == null) return updated;
|
|
8507
|
+
const stored = updated.workspaceScope;
|
|
8508
|
+
if (workspaceScopeConfirmed(requested, stored)) return updated;
|
|
8509
|
+
throw new OrgWebhookScopeUnconfirmedError(endpointUuid, "update", false);
|
|
7924
8510
|
}
|
|
7925
8511
|
async deleteOrgWebhookEndpoint(orgIdOrUuid, endpointUuid) {
|
|
7926
8512
|
return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}`, {
|
|
@@ -8016,11 +8602,16 @@ var OrgApi = class extends BaseApiClient {
|
|
|
8016
8602
|
// Organization API keys (GRA-9043)
|
|
8017
8603
|
// =========================================================================
|
|
8018
8604
|
/**
|
|
8019
|
-
* List every API key bound to this organization
|
|
8605
|
+
* List every API key bound to this organization, with each key's
|
|
8606
|
+
* `workspaceScope`. Never carries the secret.
|
|
8020
8607
|
*
|
|
8021
|
-
* Org-bound keys authenticate as an org-local principal
|
|
8022
|
-
* every current workspace of the
|
|
8023
|
-
*
|
|
8608
|
+
* Org-bound keys authenticate as an org-local principal. A key whose
|
|
8609
|
+
* `workspaceScope.mode` is `all` reaches every current workspace of the
|
|
8610
|
+
* organization and every workspace created later; `selected` reaches its
|
|
8611
|
+
* `workspaceUuids` plus every workspace carrying all of its `labelSelector`
|
|
8612
|
+
* labels; `none` reaches nothing (also what a selected key reads as once
|
|
8613
|
+
* its last workspace is deleted). Gated by `org:api_keys`, which
|
|
8614
|
+
* `org:admin` holds transitively.
|
|
8024
8615
|
*/
|
|
8025
8616
|
async listOrgApiKeys(orgIdOrUuid) {
|
|
8026
8617
|
return this.fetch(`o/${orgIdOrUuid}/api-keys`);
|
|
@@ -8028,16 +8619,36 @@ var OrgApi = class extends BaseApiClient {
|
|
|
8028
8619
|
/**
|
|
8029
8620
|
* Mint an org-bound API key.
|
|
8030
8621
|
*
|
|
8031
|
-
* The payload is
|
|
8032
|
-
*
|
|
8033
|
-
* id
|
|
8034
|
-
* the plaintext secret, which is readable
|
|
8622
|
+
* The payload is {@link OrgApiKeyFormData}: the workspace and account
|
|
8623
|
+
* routes' `{name, expiresInDays, scopes}` plus a required `workspaceScope`
|
|
8624
|
+
* — no workspace id, because the mint location is what binds the key.
|
|
8625
|
+
* The response carries `key`, the plaintext secret, which is readable
|
|
8626
|
+
* exactly once.
|
|
8627
|
+
*
|
|
8628
|
+
* A request for a `selected` or `none` scope must come back with that
|
|
8629
|
+
* `workspaceScope.mode`. A server that predates the shared scope ignores
|
|
8630
|
+
* `workspaceScope` and mints a key for every workspace; when that happens
|
|
8631
|
+
* this method does not return the secret. It revokes the key it
|
|
8632
|
+
* was given and throws {@link OrgApiKeyLimitUnconfirmedError}, whose
|
|
8633
|
+
* `revoked` says whether that revocation succeeded. It never retries the
|
|
8634
|
+
* mint.
|
|
8035
8635
|
*/
|
|
8036
8636
|
async createOrgApiKey(orgIdOrUuid, apiKey) {
|
|
8037
|
-
|
|
8637
|
+
const created = await this.fetch(`o/${orgIdOrUuid}/api-keys`, {
|
|
8038
8638
|
method: "POST",
|
|
8039
8639
|
body: JSON.stringify(apiKey)
|
|
8040
8640
|
});
|
|
8641
|
+
const requested = apiKey.workspaceScope.mode;
|
|
8642
|
+
const minted = created.workspaceScope?.mode;
|
|
8643
|
+
if (requested === "all" || minted === requested) return created;
|
|
8644
|
+
let revoked = false;
|
|
8645
|
+
try {
|
|
8646
|
+
await this.revokeOrgApiKey(orgIdOrUuid, created.id);
|
|
8647
|
+
revoked = true;
|
|
8648
|
+
} catch {
|
|
8649
|
+
revoked = false;
|
|
8650
|
+
}
|
|
8651
|
+
throw new OrgApiKeyLimitUnconfirmedError(created.id, revoked);
|
|
8041
8652
|
}
|
|
8042
8653
|
/** Revoke an org-bound API key by its id. */
|
|
8043
8654
|
async revokeOrgApiKey(orgIdOrUuid, keyId) {
|
|
@@ -8048,7 +8659,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
8048
8659
|
// =========================================================================
|
|
8049
8660
|
// Workspace labels — the organization's own taxonomy of its workspaces
|
|
8050
8661
|
// =========================================================================
|
|
8051
|
-
/** Every label of the organization, with workspace and
|
|
8662
|
+
/** Every label of the organization, with workspace and selector (webhook, key, Agent) counts. */
|
|
8052
8663
|
async listWorkspaceLabels(orgIdOrUuid) {
|
|
8053
8664
|
return this.fetch(`o/${orgIdOrUuid}/workspace-labels`);
|
|
8054
8665
|
}
|
|
@@ -8065,15 +8676,16 @@ var OrgApi = class extends BaseApiClient {
|
|
|
8065
8676
|
body: JSON.stringify(data)
|
|
8066
8677
|
});
|
|
8067
8678
|
}
|
|
8068
|
-
/** Delete a label. Refused (409) while a webhook
|
|
8679
|
+
/** Delete a label. Refused (409) while a webhook, API key or Agent selector requires it. */
|
|
8069
8680
|
async deleteWorkspaceLabel(orgIdOrUuid, labelUuid) {
|
|
8070
8681
|
return this.fetch(`o/${orgIdOrUuid}/workspace-labels/${labelUuid}`, {
|
|
8071
8682
|
method: "DELETE"
|
|
8072
8683
|
});
|
|
8073
8684
|
}
|
|
8074
8685
|
/**
|
|
8075
|
-
* Which workspaces
|
|
8076
|
-
*
|
|
8686
|
+
* Which workspaces an unsaved `workspaceScope` — the body API keys,
|
|
8687
|
+
* webhook endpoints and org Agents save — would reach right now. `none`
|
|
8688
|
+
* reaches zero workspaces.
|
|
8077
8689
|
*/
|
|
8078
8690
|
async previewWorkspaceScope(orgIdOrUuid, data) {
|
|
8079
8691
|
return this.fetch(
|
|
@@ -8174,6 +8786,15 @@ var OAuthApi = class extends BaseApiClient {
|
|
|
8174
8786
|
const params = new URLSearchParams({ client_id: clientId });
|
|
8175
8787
|
return this.fetch(`oauth/authorize/mcp-targets?${params.toString()}`);
|
|
8176
8788
|
}
|
|
8789
|
+
/**
|
|
8790
|
+
* The organizations and workspaces the consent screen may offer a non-MCP
|
|
8791
|
+
* App: one workspace, or a whole organization where
|
|
8792
|
+
* `organizationGrantPermitted` is true.
|
|
8793
|
+
*/
|
|
8794
|
+
async getConsentTargets(clientId) {
|
|
8795
|
+
const params = new URLSearchParams({ client_id: clientId });
|
|
8796
|
+
return this.fetch(`oauth/authorize/targets?${params.toString()}`);
|
|
8797
|
+
}
|
|
8177
8798
|
/** The signed-in account's MCP grants. */
|
|
8178
8799
|
async listMcpGrants() {
|
|
8179
8800
|
return this.fetch("oauth/mcp-grants");
|
|
@@ -8236,6 +8857,17 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
8236
8857
|
const query2 = params.toString();
|
|
8237
8858
|
return this.fetch(`w/${wid}/phone-numbers${query2 ? `?${query2}` : ""}`);
|
|
8238
8859
|
}
|
|
8860
|
+
/**
|
|
8861
|
+
* The numbers a Chat can be started from, for a Member with `chats:write`.
|
|
8862
|
+
*
|
|
8863
|
+
* Every non-archived workspace number in a slim shape (`id`, `number`,
|
|
8864
|
+
* `name`, `isMapped`, `enableWhatsApp`) — no phone administration data, so
|
|
8865
|
+
* it needs no `phones:read`. A row describes configuration, not permission
|
|
8866
|
+
* to send.
|
|
8867
|
+
*/
|
|
8868
|
+
async getChatPhoneNumbers(wid) {
|
|
8869
|
+
return this.fetch(`w/${wid}/phone-numbers/chat-senders`);
|
|
8870
|
+
}
|
|
8239
8871
|
/** List phone numbers available for provisioning. */
|
|
8240
8872
|
async getAvailablePhoneNumbers(wid) {
|
|
8241
8873
|
return this.fetch(
|
|
@@ -9147,213 +9779,45 @@ var RoutingRulesApi = class extends BaseApiClient {
|
|
|
9147
9779
|
}
|
|
9148
9780
|
};
|
|
9149
9781
|
|
|
9150
|
-
// src/api/
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
async
|
|
9161
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/install`, {
|
|
9162
|
-
method: "POST",
|
|
9163
|
-
body: JSON.stringify(data ?? {})
|
|
9164
|
-
});
|
|
9165
|
-
}
|
|
9166
|
-
async configureSalesforce(wid, data) {
|
|
9167
|
-
return this.fetch(
|
|
9168
|
-
`w/${wid}/app-connections/salesforce/configure`,
|
|
9169
|
-
{
|
|
9170
|
-
method: "POST",
|
|
9171
|
-
body: JSON.stringify(data)
|
|
9172
|
-
}
|
|
9173
|
-
);
|
|
9174
|
-
}
|
|
9175
|
-
async startSalesforceOAuth(wid) {
|
|
9176
|
-
return this.fetch(
|
|
9177
|
-
`w/${wid}/app-connections/salesforce/oauth/start`,
|
|
9178
|
-
{
|
|
9179
|
-
method: "POST"
|
|
9180
|
-
}
|
|
9181
|
-
);
|
|
9182
|
-
}
|
|
9183
|
-
async getSalesforceStatus(wid) {
|
|
9184
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/status`);
|
|
9185
|
-
}
|
|
9186
|
-
async disconnectSalesforce(wid) {
|
|
9187
|
-
return this.fetch(
|
|
9188
|
-
`w/${wid}/app-connections/salesforce/disconnect`,
|
|
9189
|
-
{
|
|
9190
|
-
method: "DELETE"
|
|
9191
|
-
}
|
|
9192
|
-
);
|
|
9193
|
-
}
|
|
9194
|
-
async disableSalesforce(wid) {
|
|
9195
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/disable`, {
|
|
9196
|
-
method: "POST"
|
|
9197
|
-
});
|
|
9198
|
-
}
|
|
9199
|
-
async enableSalesforce(wid) {
|
|
9200
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/enable`, {
|
|
9201
|
-
method: "POST"
|
|
9202
|
-
});
|
|
9203
|
-
}
|
|
9204
|
-
async deleteSalesforce(wid) {
|
|
9205
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/delete`, {
|
|
9206
|
-
method: "DELETE"
|
|
9207
|
-
});
|
|
9208
|
-
}
|
|
9209
|
-
async getSalesforceReconciliationMatches(wid, params) {
|
|
9210
|
-
const query2 = new URLSearchParams();
|
|
9211
|
-
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
9212
|
-
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
9213
|
-
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9214
|
-
return this.fetch(
|
|
9215
|
-
`w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
|
|
9216
|
-
);
|
|
9217
|
-
}
|
|
9218
|
-
async linkMemberToSalesforce(wid, data) {
|
|
9219
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/link`, {
|
|
9220
|
-
method: "POST",
|
|
9221
|
-
body: JSON.stringify(data)
|
|
9222
|
-
});
|
|
9223
|
-
}
|
|
9224
|
-
async bulkLinkMembersToSalesforce(wid, data) {
|
|
9225
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/link/bulk`, {
|
|
9226
|
-
method: "POST",
|
|
9227
|
-
body: JSON.stringify(data)
|
|
9228
|
-
});
|
|
9229
|
-
}
|
|
9230
|
-
/**
|
|
9231
|
-
* @deprecated Use `linkUnlinkedMembersByIdentity(wid, connectionId)`, which
|
|
9232
|
-
* serves every connector that links by identity. This calls the retained
|
|
9233
|
-
* Salesforce-only route and will be removed once no caller remains.
|
|
9234
|
-
*/
|
|
9235
|
-
async linkUnlinkedSalesforceMembersByIdentity(wid) {
|
|
9236
|
-
return this.fetch(
|
|
9237
|
-
`w/${wid}/app-connections/salesforce/reconciliation/link-unlinked-by-identity`,
|
|
9238
|
-
{
|
|
9239
|
-
method: "POST",
|
|
9240
|
-
body: JSON.stringify({})
|
|
9241
|
-
}
|
|
9242
|
-
);
|
|
9243
|
-
}
|
|
9244
|
-
async unlinkMemberFromSalesforce(wid, memberId) {
|
|
9245
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/unlink/${memberId}`, {
|
|
9246
|
-
method: "DELETE"
|
|
9247
|
-
});
|
|
9248
|
-
}
|
|
9249
|
-
async getLinkedSalesforceMembers(wid, params) {
|
|
9250
|
-
const query2 = new URLSearchParams();
|
|
9251
|
-
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
9252
|
-
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
9253
|
-
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
9254
|
-
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9255
|
-
return this.fetch(
|
|
9256
|
-
`w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
|
|
9257
|
-
);
|
|
9258
|
-
}
|
|
9259
|
-
// --- Sync config ---
|
|
9260
|
-
async getSalesforceSyncConfig(wid) {
|
|
9261
|
-
return this.fetch(
|
|
9262
|
-
`w/${wid}/app-connections/salesforce/sync/config`
|
|
9263
|
-
);
|
|
9264
|
-
}
|
|
9265
|
-
async updateSalesforceSyncConfig(wid, data) {
|
|
9782
|
+
// src/api/connection-sync.ts
|
|
9783
|
+
function syncConfigQuery(options, validateOnly) {
|
|
9784
|
+
const query2 = new URLSearchParams();
|
|
9785
|
+
if (validateOnly) query2.set("validateOnly", "true");
|
|
9786
|
+
if (options.baseConfigDigest !== void 0)
|
|
9787
|
+
query2.set("baseConfigDigest", options.baseConfigDigest);
|
|
9788
|
+
const qs = query2.toString();
|
|
9789
|
+
return qs ? `?${qs}` : "";
|
|
9790
|
+
}
|
|
9791
|
+
var ConnectionSyncApi = class extends BaseApiClient {
|
|
9792
|
+
async getConnectionSyncCapabilities(wid, connectionId) {
|
|
9266
9793
|
return this.fetch(
|
|
9267
|
-
`w/${wid}/app-connections/
|
|
9268
|
-
{
|
|
9269
|
-
method: "PUT",
|
|
9270
|
-
body: JSON.stringify(data)
|
|
9271
|
-
}
|
|
9794
|
+
`w/${wid}/app-connections/${connectionId}/sync-capabilities`
|
|
9272
9795
|
);
|
|
9273
9796
|
}
|
|
9274
|
-
|
|
9275
|
-
* Pull linked members' Salesforce records now, ignoring the sync cursor.
|
|
9276
|
-
*
|
|
9277
|
-
* The inbound poll only ever returns records modified after the stored
|
|
9278
|
-
* cursor, so a member linked to a record that has not changed since is
|
|
9279
|
-
* unreachable by any poll and its link never receives a field — silently.
|
|
9280
|
-
* This fetches the records by Id and leaves the cursor untouched, so it is
|
|
9281
|
-
* safe to call at any time.
|
|
9282
|
-
*
|
|
9283
|
-
* Omit `memberIds` to resync every linked member (capped server-side).
|
|
9284
|
-
*/
|
|
9285
|
-
async resyncSalesforceLinkedMembers(wid, data = {}) {
|
|
9797
|
+
async getConnectionSyncConfig(wid, connectionId) {
|
|
9286
9798
|
return this.fetch(
|
|
9287
|
-
`w/${wid}/app-connections/
|
|
9288
|
-
{
|
|
9289
|
-
method: "POST",
|
|
9290
|
-
body: JSON.stringify(data)
|
|
9291
|
-
}
|
|
9799
|
+
`w/${wid}/app-connections/${connectionId}/sync-config`
|
|
9292
9800
|
);
|
|
9293
9801
|
}
|
|
9294
9802
|
/**
|
|
9295
|
-
*
|
|
9296
|
-
*
|
|
9297
|
-
*
|
|
9298
|
-
* objects included), so it must come from the org rather than a hardcoded
|
|
9299
|
-
* list.
|
|
9803
|
+
* Save the config; returns it with the new `configDigest`. Pass the digest
|
|
9804
|
+
* the draft was read with as `options.baseConfigDigest`: a changed
|
|
9805
|
+
* configuration is refused with 409 `sync_config_changed` (never retried).
|
|
9300
9806
|
*/
|
|
9301
|
-
async
|
|
9302
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/objects`);
|
|
9303
|
-
}
|
|
9304
|
-
async describeSalesforceObject(wid, sobject) {
|
|
9305
|
-
return this.fetch(
|
|
9306
|
-
`w/${wid}/app-connections/salesforce/describe/${encodeURIComponent(sobject)}`
|
|
9307
|
-
);
|
|
9308
|
-
}
|
|
9309
|
-
// --- Search & Import ---
|
|
9310
|
-
async searchSalesforceRecords(wid, data) {
|
|
9311
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/search`, {
|
|
9312
|
-
method: "POST",
|
|
9313
|
-
body: JSON.stringify(data)
|
|
9314
|
-
});
|
|
9315
|
-
}
|
|
9316
|
-
async importSalesforceMembers(wid, data) {
|
|
9807
|
+
async updateConnectionSyncConfig(wid, connectionId, data, options = {}) {
|
|
9317
9808
|
return this.fetch(
|
|
9318
|
-
`w/${wid}/app-connections/
|
|
9319
|
-
{
|
|
9320
|
-
method: "POST",
|
|
9321
|
-
body: JSON.stringify(data)
|
|
9322
|
-
}
|
|
9809
|
+
`w/${wid}/app-connections/${connectionId}/sync-config${syncConfigQuery(options, false)}`,
|
|
9810
|
+
{ method: "PUT", body: JSON.stringify(data) }
|
|
9323
9811
|
);
|
|
9324
9812
|
}
|
|
9325
9813
|
/**
|
|
9326
|
-
*
|
|
9327
|
-
*
|
|
9328
|
-
*
|
|
9329
|
-
* connection is parked for re-authorization.
|
|
9814
|
+
* Run every save-time check on `data` without saving
|
|
9815
|
+
* (`PUT /sync-config?validateOnly=true`). Persists nothing and starts no
|
|
9816
|
+
* run; a failed check rejects with the save's own error.
|
|
9330
9817
|
*/
|
|
9331
|
-
async
|
|
9332
|
-
const query2 = new URLSearchParams();
|
|
9333
|
-
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
9334
|
-
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
9335
|
-
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9336
|
-
return this.fetch(
|
|
9337
|
-
`w/${wid}/app-connections/salesforce/sync/logs${qs}`
|
|
9338
|
-
);
|
|
9339
|
-
}
|
|
9340
|
-
};
|
|
9341
|
-
|
|
9342
|
-
// src/api/connection-sync.ts
|
|
9343
|
-
var ConnectionSyncApi = class extends BaseApiClient {
|
|
9344
|
-
async getConnectionSyncCapabilities(wid, connectionId) {
|
|
9345
|
-
return this.fetch(
|
|
9346
|
-
`w/${wid}/app-connections/${connectionId}/sync-capabilities`
|
|
9347
|
-
);
|
|
9348
|
-
}
|
|
9349
|
-
async getConnectionSyncConfig(wid, connectionId) {
|
|
9818
|
+
async validateConnectionSyncConfig(wid, connectionId, data, options = {}) {
|
|
9350
9819
|
return this.fetch(
|
|
9351
|
-
`w/${wid}/app-connections/${connectionId}/sync-config
|
|
9352
|
-
);
|
|
9353
|
-
}
|
|
9354
|
-
async updateConnectionSyncConfig(wid, connectionId, data) {
|
|
9355
|
-
return this.fetch(
|
|
9356
|
-
`w/${wid}/app-connections/${connectionId}/sync-config`,
|
|
9820
|
+
`w/${wid}/app-connections/${connectionId}/sync-config${syncConfigQuery(options, true)}`,
|
|
9357
9821
|
{ method: "PUT", body: JSON.stringify(data) }
|
|
9358
9822
|
);
|
|
9359
9823
|
}
|
|
@@ -9366,15 +9830,28 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9366
9830
|
`w/${wid}/app-connections/${connectionId}/inbound-records/status`
|
|
9367
9831
|
);
|
|
9368
9832
|
}
|
|
9833
|
+
/** The owner sync's opt-in, and its latest pass. */
|
|
9834
|
+
async getOwnerMemberStatus(wid, connectionId) {
|
|
9835
|
+
return this.fetch(
|
|
9836
|
+
`w/${wid}/app-connections/${connectionId}/owner-members`
|
|
9837
|
+
);
|
|
9838
|
+
}
|
|
9369
9839
|
async getConnectionWritePreview(wid, connectionId, memberId) {
|
|
9370
9840
|
return this.fetch(
|
|
9371
9841
|
`w/${wid}/app-connections/${connectionId}/write-preview/members/${memberId}`
|
|
9372
9842
|
);
|
|
9373
9843
|
}
|
|
9374
|
-
|
|
9844
|
+
/**
|
|
9845
|
+
* The checkpoint one direction of one entity type resumes from. The route
|
|
9846
|
+
* reads ``direction`` and ``entity_type`` (default ``member``); ``sync_key``
|
|
9847
|
+
* is still sent for compatibility, though the current route ignores it. A
|
|
9848
|
+
* connection or entity with no checkpoint answers ``{cursor: {}}``.
|
|
9849
|
+
*/
|
|
9850
|
+
async getConnectionSyncCheckpoint(wid, connectionId, direction = "inbound", syncKey = "default", entityType = "member") {
|
|
9375
9851
|
const query2 = new URLSearchParams({
|
|
9376
9852
|
direction,
|
|
9377
|
-
sync_key: syncKey
|
|
9853
|
+
sync_key: syncKey,
|
|
9854
|
+
entity_type: entityType
|
|
9378
9855
|
});
|
|
9379
9856
|
return this.fetch(
|
|
9380
9857
|
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query2}`
|
|
@@ -9415,6 +9892,31 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9415
9892
|
`w/${wid}/app-connections/${connectionId}/sync/member-summary`
|
|
9416
9893
|
);
|
|
9417
9894
|
}
|
|
9895
|
+
/** Failing Member links grouped by cause. Codes and counts only; needs `apps:read`. */
|
|
9896
|
+
async getSyncFailureSummary(wid, connectionId) {
|
|
9897
|
+
return this.fetch(
|
|
9898
|
+
`w/${wid}/app-connections/${connectionId}/sync/failures/summary`
|
|
9899
|
+
);
|
|
9900
|
+
}
|
|
9901
|
+
/**
|
|
9902
|
+
* One page of failing Member links. With `cause`, the links of exactly
|
|
9903
|
+
* that cause (`remoteCode: null` is the cause with no remote code);
|
|
9904
|
+
* without it, every failing link. Returns Member names, so it needs
|
|
9905
|
+
* `members:read` as well as `apps:read`.
|
|
9906
|
+
*/
|
|
9907
|
+
async getSyncFailures(wid, connectionId, options) {
|
|
9908
|
+
const params = new URLSearchParams();
|
|
9909
|
+
if (options?.cause) {
|
|
9910
|
+
params.set("code", options.cause.code);
|
|
9911
|
+
if (options.cause.remoteCode != null) params.set("remoteCode", options.cause.remoteCode);
|
|
9912
|
+
}
|
|
9913
|
+
if (options?.page != null) params.set("page", String(options.page));
|
|
9914
|
+
if (options?.pageSize != null) params.set("pageSize", String(options.pageSize));
|
|
9915
|
+
const qs = params.toString() ? `?${params.toString()}` : "";
|
|
9916
|
+
return this.fetch(
|
|
9917
|
+
`w/${wid}/app-connections/${connectionId}/sync/failures${qs}`
|
|
9918
|
+
);
|
|
9919
|
+
}
|
|
9418
9920
|
/**
|
|
9419
9921
|
* One page of a run's items. ``cursor`` is the previous page's
|
|
9420
9922
|
* ``nextCursor`` and continues in the requested direction; exhaustion comes
|
|
@@ -9477,80 +9979,290 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9477
9979
|
this.subsetImportsPath(wid, connectionId, `/${encodeURIComponent(importId)}`)
|
|
9478
9980
|
);
|
|
9479
9981
|
}
|
|
9480
|
-
/** Save a named selection. Saving never reads the vendor or imports. */
|
|
9481
|
-
async createSubsetImport(wid, connectionId, data) {
|
|
9482
|
-
return this.fetch(this.subsetImportsPath(wid, connectionId), {
|
|
9982
|
+
/** Save a named selection. Saving never reads the vendor or imports. */
|
|
9983
|
+
async createSubsetImport(wid, connectionId, data) {
|
|
9984
|
+
return this.fetch(this.subsetImportsPath(wid, connectionId), {
|
|
9985
|
+
method: "POST",
|
|
9986
|
+
body: JSON.stringify(data)
|
|
9987
|
+
});
|
|
9988
|
+
}
|
|
9989
|
+
/** Replace a saved selection. A changed selection resets its progress. */
|
|
9990
|
+
async updateSubsetImport(wid, connectionId, importId, data) {
|
|
9991
|
+
return this.fetch(
|
|
9992
|
+
this.subsetImportsPath(wid, connectionId, `/${encodeURIComponent(importId)}`),
|
|
9993
|
+
{ method: "PUT", body: JSON.stringify(data) }
|
|
9994
|
+
);
|
|
9995
|
+
}
|
|
9996
|
+
/** Remove a saved import. Its Members and links stay. */
|
|
9997
|
+
async deleteSubsetImport(wid, connectionId, importId) {
|
|
9998
|
+
await this.fetch(
|
|
9999
|
+
this.subsetImportsPath(wid, connectionId, `/${encodeURIComponent(importId)}`),
|
|
10000
|
+
{ method: "DELETE" }
|
|
10001
|
+
);
|
|
10002
|
+
}
|
|
10003
|
+
/** Count and sample an unsaved selection. Never writes. */
|
|
10004
|
+
async previewSubsetImportSelection(wid, connectionId, selection) {
|
|
10005
|
+
return this.fetch(
|
|
10006
|
+
this.subsetImportsPath(wid, connectionId, "/preview"),
|
|
10007
|
+
{ method: "POST", body: JSON.stringify({ selection }) }
|
|
10008
|
+
);
|
|
10009
|
+
}
|
|
10010
|
+
/** Count and sample a saved selection. Never writes. */
|
|
10011
|
+
async previewSubsetImport(wid, connectionId, importId) {
|
|
10012
|
+
return this.fetch(
|
|
10013
|
+
this.subsetImportsPath(wid, connectionId, `/${encodeURIComponent(importId)}/preview`),
|
|
10014
|
+
// The CSRF barrier refuses a body-less POST (422); `{}` is the request.
|
|
10015
|
+
{ method: "POST", body: JSON.stringify({}) }
|
|
10016
|
+
);
|
|
10017
|
+
}
|
|
10018
|
+
/**
|
|
10019
|
+
* Start the import in the background (202). A failed or cancelled import
|
|
10020
|
+
* resumes where it stopped unless `restart` is true.
|
|
10021
|
+
*/
|
|
10022
|
+
async runSubsetImport(wid, connectionId, importId, options) {
|
|
10023
|
+
return this.fetch(
|
|
10024
|
+
this.subsetImportsPath(wid, connectionId, `/${encodeURIComponent(importId)}/run`),
|
|
10025
|
+
{ method: "POST", body: JSON.stringify({ restart: options?.restart ?? false }) }
|
|
10026
|
+
);
|
|
10027
|
+
}
|
|
10028
|
+
/** Ask a running import to stop (202); its progress is kept for a resume. */
|
|
10029
|
+
async cancelSubsetImport(wid, connectionId, importId) {
|
|
10030
|
+
return this.fetch(
|
|
10031
|
+
this.subsetImportsPath(wid, connectionId, `/${encodeURIComponent(importId)}/cancel`),
|
|
10032
|
+
// The CSRF barrier refuses a body-less POST (422); `{}` is the request.
|
|
10033
|
+
{ method: "POST", body: JSON.stringify({}) }
|
|
10034
|
+
);
|
|
10035
|
+
}
|
|
10036
|
+
/** The connection's import-run history, newest first (counts only). */
|
|
10037
|
+
async listSubsetImportRuns(wid, connectionId, limit = 20) {
|
|
10038
|
+
return this.fetch(
|
|
10039
|
+
this.subsetImportsPath(wid, connectionId, `/runs?limit=${limit}`)
|
|
10040
|
+
);
|
|
10041
|
+
}
|
|
10042
|
+
/** Vendor lists a `vendor_list` import can name (configuration only). */
|
|
10043
|
+
async listSubsetImportVendorLists(wid, connectionId, options) {
|
|
10044
|
+
const query2 = new URLSearchParams({
|
|
10045
|
+
query: options?.query ?? "",
|
|
10046
|
+
limit: String(options?.limit ?? 50)
|
|
10047
|
+
});
|
|
10048
|
+
return this.fetch(
|
|
10049
|
+
this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query2}`)
|
|
10050
|
+
);
|
|
10051
|
+
}
|
|
10052
|
+
/** Remote fields a `field_filter` import can name, with their operators. */
|
|
10053
|
+
async listSubsetImportFilterFields(wid, connectionId) {
|
|
10054
|
+
return this.fetch(
|
|
10055
|
+
this.subsetImportsPath(wid, connectionId, "/filter-fields")
|
|
10056
|
+
);
|
|
10057
|
+
}
|
|
10058
|
+
};
|
|
10059
|
+
|
|
10060
|
+
// src/api/salesforce.ts
|
|
10061
|
+
var SalesforceApi = class extends BaseApiClient {
|
|
10062
|
+
/**
|
|
10063
|
+
* Create the Salesforce connection shell (no credentials yet).
|
|
10064
|
+
*
|
|
10065
|
+
* First step of the guided setup flow: provisions the connection row so
|
|
10066
|
+
* the admin lands on the detail page where the OAuth callback URL is
|
|
10067
|
+
* shown — which they need to register their Salesforce Connected App
|
|
10068
|
+
* before they have a Client ID / Secret to enter. Idempotent.
|
|
10069
|
+
*/
|
|
10070
|
+
async installSalesforce(wid, data) {
|
|
10071
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/install`, {
|
|
10072
|
+
method: "POST",
|
|
10073
|
+
body: JSON.stringify(data ?? {})
|
|
10074
|
+
});
|
|
10075
|
+
}
|
|
10076
|
+
async configureSalesforce(wid, data) {
|
|
10077
|
+
return this.fetch(
|
|
10078
|
+
`w/${wid}/app-connections/salesforce/configure`,
|
|
10079
|
+
{
|
|
10080
|
+
method: "POST",
|
|
10081
|
+
body: JSON.stringify(data)
|
|
10082
|
+
}
|
|
10083
|
+
);
|
|
10084
|
+
}
|
|
10085
|
+
async startSalesforceOAuth(wid) {
|
|
10086
|
+
return this.fetch(
|
|
10087
|
+
`w/${wid}/app-connections/salesforce/oauth/start`,
|
|
10088
|
+
{
|
|
10089
|
+
method: "POST"
|
|
10090
|
+
}
|
|
10091
|
+
);
|
|
10092
|
+
}
|
|
10093
|
+
async getSalesforceStatus(wid) {
|
|
10094
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/status`);
|
|
10095
|
+
}
|
|
10096
|
+
async disconnectSalesforce(wid) {
|
|
10097
|
+
return this.fetch(
|
|
10098
|
+
`w/${wid}/app-connections/salesforce/disconnect`,
|
|
10099
|
+
{
|
|
10100
|
+
method: "DELETE"
|
|
10101
|
+
}
|
|
10102
|
+
);
|
|
10103
|
+
}
|
|
10104
|
+
async disableSalesforce(wid) {
|
|
10105
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/disable`, {
|
|
10106
|
+
method: "POST"
|
|
10107
|
+
});
|
|
10108
|
+
}
|
|
10109
|
+
async enableSalesforce(wid) {
|
|
10110
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/enable`, {
|
|
10111
|
+
method: "POST"
|
|
10112
|
+
});
|
|
10113
|
+
}
|
|
10114
|
+
async deleteSalesforce(wid) {
|
|
10115
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/delete`, {
|
|
10116
|
+
method: "DELETE"
|
|
10117
|
+
});
|
|
10118
|
+
}
|
|
10119
|
+
async getSalesforceReconciliationMatches(wid, params) {
|
|
10120
|
+
const query2 = new URLSearchParams();
|
|
10121
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
10122
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
10123
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
10124
|
+
return this.fetch(
|
|
10125
|
+
`w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
|
|
10126
|
+
);
|
|
10127
|
+
}
|
|
10128
|
+
async linkMemberToSalesforce(wid, data) {
|
|
10129
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/link`, {
|
|
10130
|
+
method: "POST",
|
|
10131
|
+
body: JSON.stringify(data)
|
|
10132
|
+
});
|
|
10133
|
+
}
|
|
10134
|
+
async bulkLinkMembersToSalesforce(wid, data) {
|
|
10135
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/link/bulk`, {
|
|
9483
10136
|
method: "POST",
|
|
9484
10137
|
body: JSON.stringify(data)
|
|
9485
10138
|
});
|
|
9486
10139
|
}
|
|
9487
|
-
/**
|
|
9488
|
-
|
|
10140
|
+
/**
|
|
10141
|
+
* @deprecated Use `linkUnlinkedMembersByIdentity(wid, connectionId)`, which
|
|
10142
|
+
* serves every connector that links by identity. This calls the retained
|
|
10143
|
+
* Salesforce-only route and will be removed once no caller remains.
|
|
10144
|
+
*/
|
|
10145
|
+
async linkUnlinkedSalesforceMembersByIdentity(wid) {
|
|
9489
10146
|
return this.fetch(
|
|
9490
|
-
|
|
9491
|
-
{
|
|
10147
|
+
`w/${wid}/app-connections/salesforce/reconciliation/link-unlinked-by-identity`,
|
|
10148
|
+
{
|
|
10149
|
+
method: "POST",
|
|
10150
|
+
body: JSON.stringify({})
|
|
10151
|
+
}
|
|
9492
10152
|
);
|
|
9493
10153
|
}
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
10154
|
+
async unlinkMemberFromSalesforce(wid, memberId) {
|
|
10155
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/unlink/${memberId}`, {
|
|
10156
|
+
method: "DELETE"
|
|
10157
|
+
});
|
|
10158
|
+
}
|
|
10159
|
+
async getLinkedSalesforceMembers(wid, params) {
|
|
10160
|
+
const query2 = new URLSearchParams();
|
|
10161
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
10162
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
10163
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
10164
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
10165
|
+
return this.fetch(
|
|
10166
|
+
`w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
|
|
9499
10167
|
);
|
|
9500
10168
|
}
|
|
9501
|
-
|
|
9502
|
-
async
|
|
10169
|
+
// --- Sync config ---
|
|
10170
|
+
async getSalesforceSyncConfig(wid) {
|
|
9503
10171
|
return this.fetch(
|
|
9504
|
-
|
|
9505
|
-
{ method: "POST", body: JSON.stringify({ selection }) }
|
|
10172
|
+
`w/${wid}/app-connections/salesforce/sync/config`
|
|
9506
10173
|
);
|
|
9507
10174
|
}
|
|
9508
|
-
/**
|
|
9509
|
-
|
|
10175
|
+
/**
|
|
10176
|
+
* Save the config and settings together; returns them with the new
|
|
10177
|
+
* `configDigest`. Pass the digest they were read with as
|
|
10178
|
+
* `options.baseConfigDigest` (409 `sync_config_changed` when it changed).
|
|
10179
|
+
*/
|
|
10180
|
+
async updateSalesforceSyncConfig(wid, data, options = {}) {
|
|
9510
10181
|
return this.fetch(
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
10182
|
+
`w/${wid}/app-connections/salesforce/sync/config${syncConfigQuery(options, false)}`,
|
|
10183
|
+
{
|
|
10184
|
+
method: "PUT",
|
|
10185
|
+
body: JSON.stringify(data)
|
|
10186
|
+
}
|
|
9514
10187
|
);
|
|
9515
10188
|
}
|
|
9516
10189
|
/**
|
|
9517
|
-
*
|
|
9518
|
-
*
|
|
10190
|
+
* Run every save-time check -- including the upsert-field describe when
|
|
10191
|
+
* Member outbound is newly enabled or re-keyed -- without saving.
|
|
9519
10192
|
*/
|
|
9520
|
-
async
|
|
10193
|
+
async validateSalesforceSyncConfig(wid, data, options = {}) {
|
|
9521
10194
|
return this.fetch(
|
|
9522
|
-
|
|
9523
|
-
{
|
|
10195
|
+
`w/${wid}/app-connections/salesforce/sync/config${syncConfigQuery(options, true)}`,
|
|
10196
|
+
{
|
|
10197
|
+
method: "PUT",
|
|
10198
|
+
body: JSON.stringify(data)
|
|
10199
|
+
}
|
|
9524
10200
|
);
|
|
9525
10201
|
}
|
|
9526
|
-
/**
|
|
9527
|
-
|
|
10202
|
+
/**
|
|
10203
|
+
* Pull linked members' Salesforce records now, ignoring the sync cursor.
|
|
10204
|
+
*
|
|
10205
|
+
* The inbound poll only ever returns records modified after the stored
|
|
10206
|
+
* cursor, so a member linked to a record that has not changed since is
|
|
10207
|
+
* unreachable by any poll and its link never receives a field — silently.
|
|
10208
|
+
* This fetches the records by Id and leaves the cursor untouched, so it is
|
|
10209
|
+
* safe to call at any time.
|
|
10210
|
+
*
|
|
10211
|
+
* Omit `memberIds` to resync every linked member (capped server-side).
|
|
10212
|
+
*/
|
|
10213
|
+
async resyncSalesforceLinkedMembers(wid, data = {}) {
|
|
9528
10214
|
return this.fetch(
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
10215
|
+
`w/${wid}/app-connections/salesforce/sync/resync-members`,
|
|
10216
|
+
{
|
|
10217
|
+
method: "POST",
|
|
10218
|
+
body: JSON.stringify(data)
|
|
10219
|
+
}
|
|
9532
10220
|
);
|
|
9533
10221
|
}
|
|
9534
|
-
/**
|
|
9535
|
-
|
|
10222
|
+
/**
|
|
10223
|
+
* List the sObjects available in the connected org.
|
|
10224
|
+
*
|
|
10225
|
+
* Backs the Target Object picker: the object set is org-specific (custom
|
|
10226
|
+
* objects included), so it must come from the org rather than a hardcoded
|
|
10227
|
+
* list.
|
|
10228
|
+
*/
|
|
10229
|
+
async listSalesforceObjects(wid) {
|
|
10230
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/objects`);
|
|
10231
|
+
}
|
|
10232
|
+
async describeSalesforceObject(wid, sobject) {
|
|
9536
10233
|
return this.fetch(
|
|
9537
|
-
|
|
10234
|
+
`w/${wid}/app-connections/salesforce/describe/${encodeURIComponent(sobject)}`
|
|
9538
10235
|
);
|
|
9539
10236
|
}
|
|
9540
|
-
|
|
9541
|
-
async
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
10237
|
+
// --- Search & Import ---
|
|
10238
|
+
async searchSalesforceRecords(wid, data) {
|
|
10239
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/search`, {
|
|
10240
|
+
method: "POST",
|
|
10241
|
+
body: JSON.stringify(data)
|
|
9545
10242
|
});
|
|
10243
|
+
}
|
|
10244
|
+
async importSalesforceMembers(wid, data) {
|
|
9546
10245
|
return this.fetch(
|
|
9547
|
-
|
|
10246
|
+
`w/${wid}/app-connections/salesforce/import-members`,
|
|
10247
|
+
{
|
|
10248
|
+
method: "POST",
|
|
10249
|
+
body: JSON.stringify(data)
|
|
10250
|
+
}
|
|
9548
10251
|
);
|
|
9549
10252
|
}
|
|
9550
|
-
/**
|
|
9551
|
-
|
|
10253
|
+
/**
|
|
10254
|
+
* Managed-rule execution history for this connection (`GET /sync/logs`):
|
|
10255
|
+
* the connection's managed EventRule executions, newest first, with the
|
|
10256
|
+
* shared cursor pagination. Requires `apps:read`; works while the
|
|
10257
|
+
* connection is parked for re-authorization.
|
|
10258
|
+
*/
|
|
10259
|
+
async getSalesforceSyncLogs(wid, params) {
|
|
10260
|
+
const query2 = new URLSearchParams();
|
|
10261
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
10262
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
10263
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9552
10264
|
return this.fetch(
|
|
9553
|
-
|
|
10265
|
+
`w/${wid}/app-connections/salesforce/sync/logs${qs}`
|
|
9554
10266
|
);
|
|
9555
10267
|
}
|
|
9556
10268
|
};
|
|
@@ -9622,6 +10334,18 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
9622
10334
|
method: "DELETE"
|
|
9623
10335
|
});
|
|
9624
10336
|
}
|
|
10337
|
+
/**
|
|
10338
|
+
* Move a connection from its own HubSpot app onto the shared Gravity Rail
|
|
10339
|
+
* app. Sync settings and Member links stay. A connection whose saved Client
|
|
10340
|
+
* ID is the shared app's stays connected; any other returns to setup and is
|
|
10341
|
+
* connected again with `startHubspotOAuth`.
|
|
10342
|
+
*/
|
|
10343
|
+
async switchHubspotToPlatformApp(wid) {
|
|
10344
|
+
return this.fetch(
|
|
10345
|
+
`w/${wid}/app-connections/hubspot/use-platform-app`,
|
|
10346
|
+
{ method: "POST", body: JSON.stringify({}) }
|
|
10347
|
+
);
|
|
10348
|
+
}
|
|
9625
10349
|
async disableHubspot(wid) {
|
|
9626
10350
|
return this.fetch(`w/${wid}/app-connections/hubspot/disable`, {
|
|
9627
10351
|
method: "POST"
|
|
@@ -9702,6 +10426,16 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
9702
10426
|
`w/${wid}/app-connections/hubspot/sync-settings/meeting-links`
|
|
9703
10427
|
);
|
|
9704
10428
|
}
|
|
10429
|
+
/**
|
|
10430
|
+
* The HubSpot objects a `crm_objects` record source may read (Services and the
|
|
10431
|
+
* portal's custom objects) with their properties, and each family's status
|
|
10432
|
+
* (`missing_scope` without that family's object and schema scopes).
|
|
10433
|
+
*/
|
|
10434
|
+
async getHubspotCrmObjects(wid) {
|
|
10435
|
+
return this.fetch(
|
|
10436
|
+
`w/${wid}/app-connections/hubspot/sync-settings/crm-objects`
|
|
10437
|
+
);
|
|
10438
|
+
}
|
|
9705
10439
|
/** The portal's forms and their fields, or `missing_scope` without the `forms` scope. */
|
|
9706
10440
|
async getHubspotForms(wid) {
|
|
9707
10441
|
return this.fetch(
|
|
@@ -10177,7 +10911,7 @@ var SubscriptionsApi = class extends BaseApiClient {
|
|
|
10177
10911
|
);
|
|
10178
10912
|
}
|
|
10179
10913
|
/**
|
|
10180
|
-
* List self-service, purchasable organization plans
|
|
10914
|
+
* List self-service, purchasable organization plans. Only products
|
|
10181
10915
|
* with a Stripe Price are returned; zero-amount plans are allowed.
|
|
10182
10916
|
*/
|
|
10183
10917
|
async listSelfServeProducts(productType) {
|
|
@@ -10265,9 +10999,6 @@ function supportRequestParams(params) {
|
|
|
10265
10999
|
if (params?.workspaceId !== void 0) {
|
|
10266
11000
|
searchParams.append("workspaceId", params.workspaceId.toString());
|
|
10267
11001
|
}
|
|
10268
|
-
if (params?.linearLinked !== void 0) {
|
|
10269
|
-
searchParams.append("linearLinked", params.linearLinked.toString());
|
|
10270
|
-
}
|
|
10271
11002
|
const query2 = searchParams.toString();
|
|
10272
11003
|
return query2 ? `?${query2}` : "";
|
|
10273
11004
|
}
|
|
@@ -10312,6 +11043,18 @@ var SupportRequestsApi = class extends BaseApiClient {
|
|
|
10312
11043
|
body: JSON.stringify(data)
|
|
10313
11044
|
});
|
|
10314
11045
|
}
|
|
11046
|
+
/** Admins of this organization a new or existing request can copy in. */
|
|
11047
|
+
async listOrgSupportRequestCcCandidates(orgUuid) {
|
|
11048
|
+
return this.fetch(
|
|
11049
|
+
`o/${orgUuid}/support-requests/cc-candidates`
|
|
11050
|
+
);
|
|
11051
|
+
}
|
|
11052
|
+
async addOrgSupportRequestParticipants(orgUuid, uuid, data) {
|
|
11053
|
+
return this.fetch(`o/${orgUuid}/support-requests/${uuid}/participants`, {
|
|
11054
|
+
method: "POST",
|
|
11055
|
+
body: JSON.stringify(data)
|
|
11056
|
+
});
|
|
11057
|
+
}
|
|
10315
11058
|
async listWorkspaceSupportRequests(workspaceUuid, params) {
|
|
10316
11059
|
return this.fetch(
|
|
10317
11060
|
`w/${workspaceUuid}/support-requests${supportRequestParams(params)}`
|
|
@@ -10332,6 +11075,21 @@ var SupportRequestsApi = class extends BaseApiClient {
|
|
|
10332
11075
|
body: JSON.stringify(data)
|
|
10333
11076
|
});
|
|
10334
11077
|
}
|
|
11078
|
+
/** Admins of this workspace and its organization a request can copy in. */
|
|
11079
|
+
async listWorkspaceSupportRequestCcCandidates(workspaceUuid) {
|
|
11080
|
+
return this.fetch(
|
|
11081
|
+
`w/${workspaceUuid}/support-requests/cc-candidates`
|
|
11082
|
+
);
|
|
11083
|
+
}
|
|
11084
|
+
async addWorkspaceSupportRequestParticipants(workspaceUuid, uuid, data) {
|
|
11085
|
+
return this.fetch(
|
|
11086
|
+
`w/${workspaceUuid}/support-requests/${uuid}/participants`,
|
|
11087
|
+
{
|
|
11088
|
+
method: "POST",
|
|
11089
|
+
body: JSON.stringify(data)
|
|
11090
|
+
}
|
|
11091
|
+
);
|
|
11092
|
+
}
|
|
10335
11093
|
async closeWorkspaceSupportRequest(workspaceUuid, uuid, data = {}) {
|
|
10336
11094
|
return this.fetch(`w/${workspaceUuid}/support-requests/${uuid}/close`, {
|
|
10337
11095
|
method: "POST",
|
|
@@ -10551,6 +11309,10 @@ var TasksApi = class extends BaseApiClient {
|
|
|
10551
11309
|
`w/${wid}/tasks${params.toString() ? `?${params.toString()}` : ""}`
|
|
10552
11310
|
);
|
|
10553
11311
|
}
|
|
11312
|
+
/** Task identity only, with the same access and visibility as getTasks. */
|
|
11313
|
+
async getTaskCatalog(wid) {
|
|
11314
|
+
return this.fetch(`w/${wid}/tasks?catalog=true`);
|
|
11315
|
+
}
|
|
10554
11316
|
/** Get a single task by ID. */
|
|
10555
11317
|
async getTask(wid, id) {
|
|
10556
11318
|
return this.fetch(`w/${wid}/tasks/${id}`);
|
|
@@ -10784,6 +11546,41 @@ var TrackedLinksApi = class extends BaseApiClient {
|
|
|
10784
11546
|
|
|
10785
11547
|
// src/api/journeys.ts
|
|
10786
11548
|
var JourneysApi = class extends BaseApiClient {
|
|
11549
|
+
async listJourneyTests(wid, journeyId) {
|
|
11550
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests`);
|
|
11551
|
+
}
|
|
11552
|
+
async createJourneyTest(wid, journeyId, data) {
|
|
11553
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests`, {
|
|
11554
|
+
method: "POST",
|
|
11555
|
+
body: JSON.stringify(data)
|
|
11556
|
+
});
|
|
11557
|
+
}
|
|
11558
|
+
async updateJourneyTest(wid, journeyId, testUuid, data) {
|
|
11559
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests/${encodeURIComponent(testUuid)}`, {
|
|
11560
|
+
method: "PATCH",
|
|
11561
|
+
body: JSON.stringify(data)
|
|
11562
|
+
});
|
|
11563
|
+
}
|
|
11564
|
+
async deleteJourneyTest(wid, journeyId, testUuid) {
|
|
11565
|
+
await this.fetch(`w/${wid}/journeys/${journeyId}/tests/${encodeURIComponent(testUuid)}`, {
|
|
11566
|
+
method: "DELETE"
|
|
11567
|
+
});
|
|
11568
|
+
}
|
|
11569
|
+
async runJourneyTests(wid, journeyId, init) {
|
|
11570
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests/run`, {
|
|
11571
|
+
method: "POST",
|
|
11572
|
+
body: JSON.stringify({}),
|
|
11573
|
+
signal: init?.signal
|
|
11574
|
+
});
|
|
11575
|
+
}
|
|
11576
|
+
/** Preview a saved or enrollment definition without enrolling or sending. */
|
|
11577
|
+
async simulateJourney(wid, journeyId, data, init) {
|
|
11578
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/simulate`, {
|
|
11579
|
+
method: "POST",
|
|
11580
|
+
body: JSON.stringify(data),
|
|
11581
|
+
signal: init?.signal
|
|
11582
|
+
});
|
|
11583
|
+
}
|
|
10787
11584
|
async putJourneyDraft(wid, journeyId, data) {
|
|
10788
11585
|
return this.fetch(`w/${wid}/journeys/${journeyId}/draft`, {
|
|
10789
11586
|
method: "PUT",
|
|
@@ -10820,7 +11617,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10820
11617
|
/**
|
|
10821
11618
|
* List journeys, optionally including archived, paginated.
|
|
10822
11619
|
*
|
|
10823
|
-
* Returns the READ projection (`JourneyRead`)
|
|
11620
|
+
* Returns the READ projection (`JourneyRead`), including edge CEL. Use
|
|
10824
11621
|
* {@link getJourneyAuthoring} for the editor's expression-carrying shape.
|
|
10825
11622
|
*/
|
|
10826
11623
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
@@ -10836,19 +11633,18 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10836
11633
|
/**
|
|
10837
11634
|
* Get a single journey by ID (includes steps and goals).
|
|
10838
11635
|
*
|
|
10839
|
-
* Returns the READ projection (`JourneyRead`)
|
|
10840
|
-
*
|
|
10841
|
-
* {@link getJourneyAuthoring} for those.
|
|
11636
|
+
* Returns the READ projection (`JourneyRead`) with edge `celCondition`.
|
|
11637
|
+
* Goal and decision-rule CEL remain on {@link getJourneyAuthoring}.
|
|
10842
11638
|
*/
|
|
10843
11639
|
async getJourney(wid, journeyId) {
|
|
10844
11640
|
return this.fetch(`w/${wid}/journeys/${journeyId}`);
|
|
10845
11641
|
}
|
|
10846
11642
|
/**
|
|
10847
|
-
* Get a journey's AUTHORING projection
|
|
11643
|
+
* Get a journey's write-authorized AUTHORING projection.
|
|
10848
11644
|
*
|
|
10849
|
-
*
|
|
10850
|
-
*
|
|
10851
|
-
* write-authorized surface that carries them for the Journey editor — it
|
|
11645
|
+
* The ordinary `getJourney` read projection includes edge CEL but omits
|
|
11646
|
+
* goal and decision-rule CEL and owned Member predicates. This endpoint is
|
|
11647
|
+
* the write-authorized surface that carries them for the Journey editor — it
|
|
10852
11648
|
* requires the `journeys:write` scope, so a read-only caller is denied and
|
|
10853
11649
|
* must not call it. Returns the authoring superset (`Journey`).
|
|
10854
11650
|
*/
|
|
@@ -10874,7 +11670,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10874
11670
|
* * `journey_v2_invalid_topology` — the resulting graph is not executable;
|
|
10875
11671
|
* the body carries `issues` (codes and resource uuids, never CEL).
|
|
10876
11672
|
*/
|
|
10877
|
-
async
|
|
11673
|
+
async putJourneyDefinition(wid, journeyId, data) {
|
|
10878
11674
|
return this.fetch(`w/${wid}/journeys/${journeyId}/v2-definition`, {
|
|
10879
11675
|
method: "PUT",
|
|
10880
11676
|
body: JSON.stringify(data)
|
|
@@ -10887,7 +11683,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10887
11683
|
* transition. Issues carry closed codes and resource uuids only — never CEL
|
|
10888
11684
|
* and never member data — so they are safe to render or log.
|
|
10889
11685
|
*/
|
|
10890
|
-
async
|
|
11686
|
+
async getJourneyDefinitionValidation(wid, journeyId) {
|
|
10891
11687
|
return this.fetch(
|
|
10892
11688
|
`w/${wid}/journeys/${journeyId}/v2-definition/validation`
|
|
10893
11689
|
);
|
|
@@ -10909,7 +11705,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10909
11705
|
return this.fetch(`w/${wid}/journeys/filter-options`);
|
|
10910
11706
|
}
|
|
10911
11707
|
/** Copy a supported legacy definition into a separate draft V2 Journey. */
|
|
10912
|
-
async
|
|
11708
|
+
async cloneJourneyToCurrent(wid, id) {
|
|
10913
11709
|
return this.fetch(`w/${wid}/journeys/${id}/clone-v2`, {
|
|
10914
11710
|
method: "POST",
|
|
10915
11711
|
body: JSON.stringify({})
|
|
@@ -10950,6 +11746,25 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10950
11746
|
async getJourneyHealth(wid, journeyId) {
|
|
10951
11747
|
return this.fetch(`w/${wid}/journeys/${journeyId}/health`);
|
|
10952
11748
|
}
|
|
11749
|
+
/**
|
|
11750
|
+
* A Journey's audit trail, newest first: who created it, changed its
|
|
11751
|
+
* lifecycle (with the status before and after), changed its settings or
|
|
11752
|
+
* definition, or cut a version (with its number), and when. IDs, field
|
|
11753
|
+
* codes and closed values only.
|
|
11754
|
+
*
|
|
11755
|
+
* The window defaults to the Journey's whole life. Pass `nextCursor` back
|
|
11756
|
+
* with the same window to read the next page. Requires `journeys:read` and
|
|
11757
|
+
* `workspace:read`.
|
|
11758
|
+
*/
|
|
11759
|
+
async getJourneyHistory(wid, journeyId, opts) {
|
|
11760
|
+
const query2 = new URLSearchParams();
|
|
11761
|
+
if (opts?.occurredFrom) query2.set("occurredFrom", opts.occurredFrom);
|
|
11762
|
+
if (opts?.occurredBefore) query2.set("occurredBefore", opts.occurredBefore);
|
|
11763
|
+
if (opts?.cursor) query2.set("cursor", opts.cursor);
|
|
11764
|
+
if (opts?.pageSize !== void 0) query2.set("pageSize", String(opts.pageSize));
|
|
11765
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
11766
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/history${qs}`);
|
|
11767
|
+
}
|
|
10953
11768
|
/**
|
|
10954
11769
|
* How many days the journey's texts take at the workspace's current sending
|
|
10955
11770
|
* limits — advice for the publish and enroll confirmations, never a gate.
|
|
@@ -11184,10 +11999,11 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
11184
11999
|
|
|
11185
12000
|
// src/api/workflows.ts
|
|
11186
12001
|
var WorkflowsApi = class extends BaseApiClient {
|
|
11187
|
-
async uploadWorkflowKnowledge(wid, id, file, relativePath) {
|
|
12002
|
+
async uploadWorkflowKnowledge(wid, id, file, relativePath, folderId) {
|
|
11188
12003
|
const body = new FormData();
|
|
11189
12004
|
body.append("file", file, relativePath.split("/").pop());
|
|
11190
12005
|
body.append("relativePath", relativePath);
|
|
12006
|
+
if (folderId !== void 0) body.append("folderId", String(folderId));
|
|
11191
12007
|
return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
|
|
11192
12008
|
}
|
|
11193
12009
|
/** List workflows by archived status; `archived: true` returns only archived Workflows. */
|
|
@@ -11348,6 +12164,16 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
11348
12164
|
`w/${wid}/workflows/${workflowId}/validate-config`
|
|
11349
12165
|
);
|
|
11350
12166
|
}
|
|
12167
|
+
/**
|
|
12168
|
+
* Files and Folders the draft config names that the Workflow's runner
|
|
12169
|
+
* roles cannot read. Read-only: sharing is a separate, explicit call to the
|
|
12170
|
+
* file or folder sharing-roles endpoint.
|
|
12171
|
+
*/
|
|
12172
|
+
async getWorkflowRunnerFileAccess(wid, workflowId) {
|
|
12173
|
+
return this.fetch(
|
|
12174
|
+
`w/${wid}/workflows/${workflowId}/runner-file-access`
|
|
12175
|
+
);
|
|
12176
|
+
}
|
|
11351
12177
|
/**
|
|
11352
12178
|
* Classify the prompts of a Workflow's draft revision.
|
|
11353
12179
|
*
|
|
@@ -11812,6 +12638,7 @@ var MemberType = /* @__PURE__ */ ((MemberType2) => {
|
|
|
11812
12638
|
MemberType2["TEST"] = "test";
|
|
11813
12639
|
MemberType2["MEMBER"] = "member";
|
|
11814
12640
|
MemberType2["AGENT"] = "agent";
|
|
12641
|
+
MemberType2["BUSINESS"] = "business";
|
|
11815
12642
|
return MemberType2;
|
|
11816
12643
|
})(MemberType || {});
|
|
11817
12644
|
function structuredErrorDetail(error) {
|
|
@@ -11884,9 +12711,6 @@ var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
|
|
|
11884
12711
|
})(EventRuleObjectType || {});
|
|
11885
12712
|
var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
11886
12713
|
EventRuleEventType2["TASK_EXECUTE"] = "task:execute";
|
|
11887
|
-
EventRuleEventType2["TASK_ENTER"] = "task:enter";
|
|
11888
|
-
EventRuleEventType2["TASK_COMMAND"] = "task:command";
|
|
11889
|
-
EventRuleEventType2["TASK_EXIT"] = "task:exit";
|
|
11890
12714
|
EventRuleEventType2["MEMBER_JOINED"] = "workspace:member_joined";
|
|
11891
12715
|
EventRuleEventType2["MEMBER_LEFT"] = "workspace:member_left";
|
|
11892
12716
|
EventRuleEventType2["DATA_RECORD_CREATED"] = "data_record:created";
|
|
@@ -11928,10 +12752,6 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
11928
12752
|
EventRuleActionType2["SWITCH_TASK_ACTION"] = "task:switch";
|
|
11929
12753
|
EventRuleActionType2["ASSISTANT_MESSAGE"] = "assistant:message";
|
|
11930
12754
|
EventRuleActionType2["FORM_FIELD_UPDATE"] = "form:update_field";
|
|
11931
|
-
EventRuleActionType2["CEL_MUTATE"] = "record:cel_mutate";
|
|
11932
|
-
EventRuleActionType2["RECORD_COPY_FIELDS"] = "record:copy_fields";
|
|
11933
|
-
EventRuleActionType2["RECORD_UPSERT_LINKED"] = "record:upsert_linked";
|
|
11934
|
-
EventRuleActionType2["RECORD_VERIFY_FIELDS"] = "record:verify_fields";
|
|
11935
12755
|
EventRuleActionType2["MESSAGE_VALIDATION"] = "message:validation";
|
|
11936
12756
|
EventRuleActionType2["CHAT_CREATE"] = "chat:create";
|
|
11937
12757
|
EventRuleActionType2["CHAT_CONTINUE"] = "chat:continue";
|
|
@@ -11939,8 +12759,6 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
11939
12759
|
EventRuleActionType2["CHAT_SUMMARIZE"] = "chat:summarize";
|
|
11940
12760
|
EventRuleActionType2["EMAIL_SEND"] = "email:send";
|
|
11941
12761
|
EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
|
|
11942
|
-
EventRuleActionType2["MONDAY_UPSERT_ITEM"] = "monday:upsert_item";
|
|
11943
|
-
EventRuleActionType2["MONDAY_REFRESH"] = "monday:refresh";
|
|
11944
12762
|
EventRuleActionType2["HUBSPOT_CREATE_DEAL_FROM_BOOKING"] = "hubspot:create_deal_from_booking";
|
|
11945
12763
|
EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
|
|
11946
12764
|
EventRuleActionType2["JOURNEY_ENROLL"] = "journey:enroll";
|
|
@@ -11952,7 +12770,6 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
11952
12770
|
EventRuleActionType2["ECW_REFRESH_MEMBER_ENCOUNTERS"] = "ecw:refresh_member_encounters";
|
|
11953
12771
|
EventRuleActionType2["PLAY_AUDIO"] = "audio:play";
|
|
11954
12772
|
EventRuleActionType2["CHARLESTON_SEND_PMD_PAGE"] = "charleston:send_pmd_page";
|
|
11955
|
-
EventRuleActionType2["PATIENTSYNC_TRANSFER"] = "patientsync:transfer";
|
|
11956
12773
|
return EventRuleActionType2;
|
|
11957
12774
|
})(EventRuleActionType || {});
|
|
11958
12775
|
function eventRuleActionParams(params) {
|
|
@@ -11983,7 +12800,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
11983
12800
|
WorkspaceFeature2["DISCORD"] = "discord";
|
|
11984
12801
|
WorkspaceFeature2["SLACK"] = "slack";
|
|
11985
12802
|
WorkspaceFeature2["TEAMS"] = "teams";
|
|
11986
|
-
WorkspaceFeature2["SITES"] = "sites";
|
|
11987
12803
|
WorkspaceFeature2["MAPS"] = "maps";
|
|
11988
12804
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
11989
12805
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
@@ -12007,11 +12823,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
12007
12823
|
WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
|
|
12008
12824
|
WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
|
|
12009
12825
|
WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
|
|
12010
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
|
|
12011
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
|
|
12012
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
|
|
12013
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
|
|
12014
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
|
|
12015
12826
|
return WorkspaceFeature2;
|
|
12016
12827
|
})(WorkspaceFeature || {});
|
|
12017
12828
|
var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
|
|
@@ -12048,7 +12859,6 @@ var Resource = /* @__PURE__ */ ((Resource2) => {
|
|
|
12048
12859
|
})(Resource || {});
|
|
12049
12860
|
var ProductType = /* @__PURE__ */ ((ProductType2) => {
|
|
12050
12861
|
ProductType2["ORG"] = "org";
|
|
12051
|
-
ProductType2["ADDON"] = "addon";
|
|
12052
12862
|
ProductType2["MEMBER"] = "member";
|
|
12053
12863
|
ProductType2["DEVICE"] = "device";
|
|
12054
12864
|
return ProductType2;
|
|
@@ -12171,8 +12981,6 @@ var ModelType = {
|
|
|
12171
12981
|
var REALTIME_MODEL_OPENAI = "openai:realtime:gpt-realtime";
|
|
12172
12982
|
var REALTIME_MODEL_OPENAI_MINI = "openai:realtime:gpt-realtime-mini";
|
|
12173
12983
|
var REALTIME_MODEL_OPENAI_2 = "openai:realtime:gpt-realtime-2";
|
|
12174
|
-
var REALTIME_MODEL_GEMINI = "google:aistudio:gemini-3.1-flash-live";
|
|
12175
|
-
var REALTIME_MODEL_GEMINI_VERTEX = "google:vertex:gemini-3.1-flash-live";
|
|
12176
12984
|
var REALTIME_MODEL_CUSTOM = "custom:realtime:composable";
|
|
12177
12985
|
var STT_MODEL_DEEPGRAM_FLUX = "deepgram:stt:flux-general-en";
|
|
12178
12986
|
var STT_MODEL_DEEPGRAM_FLUX_SELFHOST = "deepgram:stt:flux-general-en:selfhost";
|
|
@@ -12261,6 +13069,44 @@ var FhirClientType = /* @__PURE__ */ ((FhirClientType2) => {
|
|
|
12261
13069
|
return FhirClientType2;
|
|
12262
13070
|
})(FhirClientType || {});
|
|
12263
13071
|
|
|
13072
|
+
// src/types/generated/error.ts
|
|
13073
|
+
var SyncErrorCode = {
|
|
13074
|
+
missing_required_field: "missing_required_field",
|
|
13075
|
+
missing_target_datatype: "missing_target_datatype",
|
|
13076
|
+
missing_file_owner: "missing_file_owner",
|
|
13077
|
+
missing_space_mapping: "missing_space_mapping",
|
|
13078
|
+
unsupported_direction: "unsupported_direction",
|
|
13079
|
+
missing_enum_option: "missing_enum_option",
|
|
13080
|
+
missing_remote_label: "missing_remote_label",
|
|
13081
|
+
outbound_field_format_error: "outbound_field_format_error",
|
|
13082
|
+
local_entity_not_found: "local_entity_not_found",
|
|
13083
|
+
missing_local_link: "missing_local_link",
|
|
13084
|
+
missing_remote_mapping: "missing_remote_mapping",
|
|
13085
|
+
remote_api_error: "remote_api_error",
|
|
13086
|
+
remote_fetch_failed: "remote_fetch_failed",
|
|
13087
|
+
remote_missing_id: "remote_missing_id",
|
|
13088
|
+
remote_partial_failure: "remote_partial_failure",
|
|
13089
|
+
remote_inactive_record: "remote_inactive_record",
|
|
13090
|
+
remote_write_rejected: "remote_write_rejected",
|
|
13091
|
+
remote_write_uncertain: "remote_write_uncertain",
|
|
13092
|
+
side_effects_not_permitted: "side_effects_not_permitted",
|
|
13093
|
+
sync_operation_failed: "sync_operation_failed"
|
|
13094
|
+
};
|
|
13095
|
+
|
|
13096
|
+
// src/types/generated/connection_sync.ts
|
|
13097
|
+
var LinkFailureCode = {
|
|
13098
|
+
...SyncErrorCode,
|
|
13099
|
+
manual_unlink: "manual_unlink",
|
|
13100
|
+
ineligible_member: "ineligible_member",
|
|
13101
|
+
no_care_team_practitioner: "no_care_team_practitioner",
|
|
13102
|
+
unique_field_conflict: "unique_field_conflict",
|
|
13103
|
+
discovery_not_created: "discovery_not_created",
|
|
13104
|
+
discovery_not_admitted: "discovery_not_admitted",
|
|
13105
|
+
ambiguous_match: "ambiguous_match",
|
|
13106
|
+
sync_failed: "sync_failed",
|
|
13107
|
+
unexpected_error: "unexpected_error"
|
|
13108
|
+
};
|
|
13109
|
+
|
|
12264
13110
|
// src/types/app-connection-types.ts
|
|
12265
13111
|
var CrmActivityKind = /* @__PURE__ */ ((CrmActivityKind2) => {
|
|
12266
13112
|
CrmActivityKind2["MESSAGE"] = "message";
|
|
@@ -12296,6 +13142,7 @@ var TestChatRunLane = {
|
|
|
12296
13142
|
var TestChatRunOutcome = {
|
|
12297
13143
|
simulator_end: "simulator_end",
|
|
12298
13144
|
terminal_tool: "terminal_tool",
|
|
13145
|
+
human_handoff: "human_handoff",
|
|
12299
13146
|
agent_silent: "agent_silent",
|
|
12300
13147
|
max_turns: "max_turns",
|
|
12301
13148
|
human_end: "human_end",
|
|
@@ -12450,7 +13297,9 @@ var MemberRelationshipKind = {
|
|
|
12450
13297
|
legal_guardian_of: "legal_guardian_of",
|
|
12451
13298
|
healthcare_agent_of: "healthcare_agent_of",
|
|
12452
13299
|
doctor_of: "doctor_of",
|
|
12453
|
-
primary_contact_of: "primary_contact_of"
|
|
13300
|
+
primary_contact_of: "primary_contact_of",
|
|
13301
|
+
contact_owner_of: "contact_owner_of",
|
|
13302
|
+
employee_of: "employee_of"
|
|
12454
13303
|
};
|
|
12455
13304
|
var RelatedMemberRole = {
|
|
12456
13305
|
parent: "parent",
|
|
@@ -12470,7 +13319,11 @@ var RelatedMemberRole = {
|
|
|
12470
13319
|
doctor: "doctor",
|
|
12471
13320
|
patient: "patient",
|
|
12472
13321
|
primary_contact: "primary_contact",
|
|
12473
|
-
primary_contact_for: "primary_contact_for"
|
|
13322
|
+
primary_contact_for: "primary_contact_for",
|
|
13323
|
+
contact_owner: "contact_owner",
|
|
13324
|
+
owns_contact: "owns_contact",
|
|
13325
|
+
employee: "employee",
|
|
13326
|
+
employer: "employer"
|
|
12474
13327
|
};
|
|
12475
13328
|
var RelationshipCardinality = {
|
|
12476
13329
|
many_to_many: "many_to_many",
|
|
@@ -12490,13 +13343,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
12490
13343
|
"role": "parent",
|
|
12491
13344
|
"label": "Parent",
|
|
12492
13345
|
"inverseLabel": "Child",
|
|
12493
|
-
"description": "This person is a parent of the member. For a minor, also add Legal guardian if they should read the chart."
|
|
13346
|
+
"description": "This person is a parent of the member. For a minor, also add Legal guardian if they should read the chart.",
|
|
13347
|
+
"viewedMemberTypes": [
|
|
13348
|
+
"anonymous",
|
|
13349
|
+
"test",
|
|
13350
|
+
"member",
|
|
13351
|
+
"agent"
|
|
13352
|
+
],
|
|
13353
|
+
"relatedMemberTypes": [
|
|
13354
|
+
"anonymous",
|
|
13355
|
+
"test",
|
|
13356
|
+
"member",
|
|
13357
|
+
"agent"
|
|
13358
|
+
]
|
|
12494
13359
|
},
|
|
12495
13360
|
{
|
|
12496
13361
|
"role": "child",
|
|
12497
13362
|
"label": "Child",
|
|
12498
13363
|
"inverseLabel": "Parent",
|
|
12499
|
-
"description": "This person is a child of the member."
|
|
13364
|
+
"description": "This person is a child of the member.",
|
|
13365
|
+
"viewedMemberTypes": [
|
|
13366
|
+
"anonymous",
|
|
13367
|
+
"test",
|
|
13368
|
+
"member",
|
|
13369
|
+
"agent"
|
|
13370
|
+
],
|
|
13371
|
+
"relatedMemberTypes": [
|
|
13372
|
+
"anonymous",
|
|
13373
|
+
"test",
|
|
13374
|
+
"member",
|
|
13375
|
+
"agent"
|
|
13376
|
+
]
|
|
12500
13377
|
}
|
|
12501
13378
|
]
|
|
12502
13379
|
},
|
|
@@ -12510,7 +13387,19 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
12510
13387
|
"role": "sibling",
|
|
12511
13388
|
"label": "Sibling",
|
|
12512
13389
|
"inverseLabel": "Sibling",
|
|
12513
|
-
"description": "These members are siblings."
|
|
13390
|
+
"description": "These members are siblings.",
|
|
13391
|
+
"viewedMemberTypes": [
|
|
13392
|
+
"anonymous",
|
|
13393
|
+
"test",
|
|
13394
|
+
"member",
|
|
13395
|
+
"agent"
|
|
13396
|
+
],
|
|
13397
|
+
"relatedMemberTypes": [
|
|
13398
|
+
"anonymous",
|
|
13399
|
+
"test",
|
|
13400
|
+
"member",
|
|
13401
|
+
"agent"
|
|
13402
|
+
]
|
|
12514
13403
|
}
|
|
12515
13404
|
]
|
|
12516
13405
|
},
|
|
@@ -12524,7 +13413,19 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
12524
13413
|
"role": "spouse",
|
|
12525
13414
|
"label": "Spouse",
|
|
12526
13415
|
"inverseLabel": "Spouse",
|
|
12527
|
-
"description": "These members are spouses or partners."
|
|
13416
|
+
"description": "These members are spouses or partners.",
|
|
13417
|
+
"viewedMemberTypes": [
|
|
13418
|
+
"anonymous",
|
|
13419
|
+
"test",
|
|
13420
|
+
"member",
|
|
13421
|
+
"agent"
|
|
13422
|
+
],
|
|
13423
|
+
"relatedMemberTypes": [
|
|
13424
|
+
"anonymous",
|
|
13425
|
+
"test",
|
|
13426
|
+
"member",
|
|
13427
|
+
"agent"
|
|
13428
|
+
]
|
|
12528
13429
|
}
|
|
12529
13430
|
]
|
|
12530
13431
|
},
|
|
@@ -12538,13 +13439,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
12538
13439
|
"role": "caregiver",
|
|
12539
13440
|
"label": "Caregiver",
|
|
12540
13441
|
"inverseLabel": "Care recipient",
|
|
12541
|
-
"description": "This person provides care for the member at home."
|
|
13442
|
+
"description": "This person provides care for the member at home.",
|
|
13443
|
+
"viewedMemberTypes": [
|
|
13444
|
+
"anonymous",
|
|
13445
|
+
"test",
|
|
13446
|
+
"member",
|
|
13447
|
+
"agent"
|
|
13448
|
+
],
|
|
13449
|
+
"relatedMemberTypes": [
|
|
13450
|
+
"anonymous",
|
|
13451
|
+
"test",
|
|
13452
|
+
"member",
|
|
13453
|
+
"agent"
|
|
13454
|
+
]
|
|
12542
13455
|
},
|
|
12543
13456
|
{
|
|
12544
13457
|
"role": "care_recipient",
|
|
12545
13458
|
"label": "Care recipient",
|
|
12546
13459
|
"inverseLabel": "Caregiver",
|
|
12547
|
-
"description": "This person receives care from the member."
|
|
13460
|
+
"description": "This person receives care from the member.",
|
|
13461
|
+
"viewedMemberTypes": [
|
|
13462
|
+
"anonymous",
|
|
13463
|
+
"test",
|
|
13464
|
+
"member",
|
|
13465
|
+
"agent"
|
|
13466
|
+
],
|
|
13467
|
+
"relatedMemberTypes": [
|
|
13468
|
+
"anonymous",
|
|
13469
|
+
"test",
|
|
13470
|
+
"member",
|
|
13471
|
+
"agent"
|
|
13472
|
+
]
|
|
12548
13473
|
}
|
|
12549
13474
|
]
|
|
12550
13475
|
},
|
|
@@ -12558,13 +13483,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
12558
13483
|
"role": "emergency_contact",
|
|
12559
13484
|
"label": "Emergency contact",
|
|
12560
13485
|
"inverseLabel": "Emergency contact for",
|
|
12561
|
-
"description": "This person is the member's emergency contact."
|
|
13486
|
+
"description": "This person is the member's emergency contact.",
|
|
13487
|
+
"viewedMemberTypes": [
|
|
13488
|
+
"anonymous",
|
|
13489
|
+
"test",
|
|
13490
|
+
"member",
|
|
13491
|
+
"agent"
|
|
13492
|
+
],
|
|
13493
|
+
"relatedMemberTypes": [
|
|
13494
|
+
"anonymous",
|
|
13495
|
+
"test",
|
|
13496
|
+
"member",
|
|
13497
|
+
"agent"
|
|
13498
|
+
]
|
|
12562
13499
|
},
|
|
12563
13500
|
{
|
|
12564
13501
|
"role": "emergency_contact_for",
|
|
12565
13502
|
"label": "Emergency contact for",
|
|
12566
13503
|
"inverseLabel": "Emergency contact",
|
|
12567
|
-
"description": "The member is listed as this person's emergency contact."
|
|
13504
|
+
"description": "The member is listed as this person's emergency contact.",
|
|
13505
|
+
"viewedMemberTypes": [
|
|
13506
|
+
"anonymous",
|
|
13507
|
+
"test",
|
|
13508
|
+
"member",
|
|
13509
|
+
"agent"
|
|
13510
|
+
],
|
|
13511
|
+
"relatedMemberTypes": [
|
|
13512
|
+
"anonymous",
|
|
13513
|
+
"test",
|
|
13514
|
+
"member",
|
|
13515
|
+
"agent"
|
|
13516
|
+
]
|
|
12568
13517
|
}
|
|
12569
13518
|
]
|
|
12570
13519
|
},
|
|
@@ -12578,13 +13527,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
12578
13527
|
"role": "next_of_kin",
|
|
12579
13528
|
"label": "Next of kin",
|
|
12580
13529
|
"inverseLabel": "Next of kin for",
|
|
12581
|
-
"description": "This person is the member's designated next of kin. A member has at most one."
|
|
13530
|
+
"description": "This person is the member's designated next of kin. A member has at most one.",
|
|
13531
|
+
"viewedMemberTypes": [
|
|
13532
|
+
"anonymous",
|
|
13533
|
+
"test",
|
|
13534
|
+
"member",
|
|
13535
|
+
"agent"
|
|
13536
|
+
],
|
|
13537
|
+
"relatedMemberTypes": [
|
|
13538
|
+
"anonymous",
|
|
13539
|
+
"test",
|
|
13540
|
+
"member",
|
|
13541
|
+
"agent"
|
|
13542
|
+
]
|
|
12582
13543
|
},
|
|
12583
13544
|
{
|
|
12584
13545
|
"role": "next_of_kin_for",
|
|
12585
13546
|
"label": "Next of kin for",
|
|
12586
13547
|
"inverseLabel": "Next of kin",
|
|
12587
|
-
"description": "The member is this person's designated next of kin."
|
|
13548
|
+
"description": "The member is this person's designated next of kin.",
|
|
13549
|
+
"viewedMemberTypes": [
|
|
13550
|
+
"anonymous",
|
|
13551
|
+
"test",
|
|
13552
|
+
"member",
|
|
13553
|
+
"agent"
|
|
13554
|
+
],
|
|
13555
|
+
"relatedMemberTypes": [
|
|
13556
|
+
"anonymous",
|
|
13557
|
+
"test",
|
|
13558
|
+
"member",
|
|
13559
|
+
"agent"
|
|
13560
|
+
]
|
|
12588
13561
|
}
|
|
12589
13562
|
]
|
|
12590
13563
|
},
|
|
@@ -12598,13 +13571,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
12598
13571
|
"role": "legal_guardian",
|
|
12599
13572
|
"label": "Legal guardian",
|
|
12600
13573
|
"inverseLabel": "Legal guardian for",
|
|
12601
|
-
"description": "Court-appointed guardian, or parent/person with parental responsibility for a minor."
|
|
13574
|
+
"description": "Court-appointed guardian, or parent/person with parental responsibility for a minor.",
|
|
13575
|
+
"viewedMemberTypes": [
|
|
13576
|
+
"anonymous",
|
|
13577
|
+
"test",
|
|
13578
|
+
"member",
|
|
13579
|
+
"agent"
|
|
13580
|
+
],
|
|
13581
|
+
"relatedMemberTypes": [
|
|
13582
|
+
"anonymous",
|
|
13583
|
+
"test",
|
|
13584
|
+
"member",
|
|
13585
|
+
"agent"
|
|
13586
|
+
]
|
|
12602
13587
|
},
|
|
12603
13588
|
{
|
|
12604
13589
|
"role": "legal_guardian_for",
|
|
12605
13590
|
"label": "Legal guardian for",
|
|
12606
13591
|
"inverseLabel": "Legal guardian",
|
|
12607
|
-
"description": "The member is this person's legal guardian."
|
|
13592
|
+
"description": "The member is this person's legal guardian.",
|
|
13593
|
+
"viewedMemberTypes": [
|
|
13594
|
+
"anonymous",
|
|
13595
|
+
"test",
|
|
13596
|
+
"member",
|
|
13597
|
+
"agent"
|
|
13598
|
+
],
|
|
13599
|
+
"relatedMemberTypes": [
|
|
13600
|
+
"anonymous",
|
|
13601
|
+
"test",
|
|
13602
|
+
"member",
|
|
13603
|
+
"agent"
|
|
13604
|
+
]
|
|
12608
13605
|
}
|
|
12609
13606
|
]
|
|
12610
13607
|
},
|
|
@@ -12618,53 +13615,201 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
12618
13615
|
"role": "healthcare_agent",
|
|
12619
13616
|
"label": "Healthcare agent",
|
|
12620
13617
|
"inverseLabel": "Healthcare agent for",
|
|
12621
|
-
"description": "Healthcare power of attorney or health proxy."
|
|
13618
|
+
"description": "Healthcare power of attorney or health proxy.",
|
|
13619
|
+
"viewedMemberTypes": [
|
|
13620
|
+
"anonymous",
|
|
13621
|
+
"test",
|
|
13622
|
+
"member",
|
|
13623
|
+
"agent"
|
|
13624
|
+
],
|
|
13625
|
+
"relatedMemberTypes": [
|
|
13626
|
+
"anonymous",
|
|
13627
|
+
"test",
|
|
13628
|
+
"member",
|
|
13629
|
+
"agent"
|
|
13630
|
+
]
|
|
12622
13631
|
},
|
|
12623
13632
|
{
|
|
12624
13633
|
"role": "healthcare_agent_for",
|
|
12625
13634
|
"label": "Healthcare agent for",
|
|
12626
13635
|
"inverseLabel": "Healthcare agent",
|
|
12627
|
-
"description": "The member is this person's healthcare agent (healthcare power of attorney or health proxy)."
|
|
13636
|
+
"description": "The member is this person's healthcare agent (healthcare power of attorney or health proxy).",
|
|
13637
|
+
"viewedMemberTypes": [
|
|
13638
|
+
"anonymous",
|
|
13639
|
+
"test",
|
|
13640
|
+
"member",
|
|
13641
|
+
"agent"
|
|
13642
|
+
],
|
|
13643
|
+
"relatedMemberTypes": [
|
|
13644
|
+
"anonymous",
|
|
13645
|
+
"test",
|
|
13646
|
+
"member",
|
|
13647
|
+
"agent"
|
|
13648
|
+
]
|
|
13649
|
+
}
|
|
13650
|
+
]
|
|
13651
|
+
},
|
|
13652
|
+
{
|
|
13653
|
+
"kind": "doctor_of",
|
|
13654
|
+
"cardinality": "many_to_many",
|
|
13655
|
+
"symmetric": false,
|
|
13656
|
+
"grantsChartAccess": true,
|
|
13657
|
+
"roles": [
|
|
13658
|
+
{
|
|
13659
|
+
"role": "doctor",
|
|
13660
|
+
"label": "Doctor",
|
|
13661
|
+
"inverseLabel": "Patient",
|
|
13662
|
+
"description": "This person is a treating clinician for the member.",
|
|
13663
|
+
"viewedMemberTypes": [
|
|
13664
|
+
"anonymous",
|
|
13665
|
+
"test",
|
|
13666
|
+
"member",
|
|
13667
|
+
"agent"
|
|
13668
|
+
],
|
|
13669
|
+
"relatedMemberTypes": [
|
|
13670
|
+
"anonymous",
|
|
13671
|
+
"test",
|
|
13672
|
+
"member",
|
|
13673
|
+
"agent"
|
|
13674
|
+
]
|
|
13675
|
+
},
|
|
13676
|
+
{
|
|
13677
|
+
"role": "patient",
|
|
13678
|
+
"label": "Patient",
|
|
13679
|
+
"inverseLabel": "Doctor",
|
|
13680
|
+
"description": "This person is a patient of the member.",
|
|
13681
|
+
"viewedMemberTypes": [
|
|
13682
|
+
"anonymous",
|
|
13683
|
+
"test",
|
|
13684
|
+
"member",
|
|
13685
|
+
"agent"
|
|
13686
|
+
],
|
|
13687
|
+
"relatedMemberTypes": [
|
|
13688
|
+
"anonymous",
|
|
13689
|
+
"test",
|
|
13690
|
+
"member",
|
|
13691
|
+
"agent"
|
|
13692
|
+
]
|
|
13693
|
+
}
|
|
13694
|
+
]
|
|
13695
|
+
},
|
|
13696
|
+
{
|
|
13697
|
+
"kind": "primary_contact_of",
|
|
13698
|
+
"cardinality": "one_per_target",
|
|
13699
|
+
"symmetric": false,
|
|
13700
|
+
"grantsChartAccess": true,
|
|
13701
|
+
"roles": [
|
|
13702
|
+
{
|
|
13703
|
+
"role": "primary_contact",
|
|
13704
|
+
"label": "Primary contact",
|
|
13705
|
+
"inverseLabel": "Primary contact for",
|
|
13706
|
+
"description": "This person is the organization's primary contact for the member. A member has at most one.",
|
|
13707
|
+
"viewedMemberTypes": [
|
|
13708
|
+
"anonymous",
|
|
13709
|
+
"test",
|
|
13710
|
+
"member",
|
|
13711
|
+
"agent"
|
|
13712
|
+
],
|
|
13713
|
+
"relatedMemberTypes": [
|
|
13714
|
+
"anonymous",
|
|
13715
|
+
"test",
|
|
13716
|
+
"member",
|
|
13717
|
+
"agent"
|
|
13718
|
+
]
|
|
13719
|
+
},
|
|
13720
|
+
{
|
|
13721
|
+
"role": "primary_contact_for",
|
|
13722
|
+
"label": "Primary contact for",
|
|
13723
|
+
"inverseLabel": "Primary contact",
|
|
13724
|
+
"description": "The member is this person's assigned primary contact inside the organization.",
|
|
13725
|
+
"viewedMemberTypes": [
|
|
13726
|
+
"anonymous",
|
|
13727
|
+
"test",
|
|
13728
|
+
"member",
|
|
13729
|
+
"agent"
|
|
13730
|
+
],
|
|
13731
|
+
"relatedMemberTypes": [
|
|
13732
|
+
"anonymous",
|
|
13733
|
+
"test",
|
|
13734
|
+
"member",
|
|
13735
|
+
"agent"
|
|
13736
|
+
]
|
|
12628
13737
|
}
|
|
12629
13738
|
]
|
|
12630
13739
|
},
|
|
12631
13740
|
{
|
|
12632
|
-
"kind": "
|
|
12633
|
-
"cardinality": "
|
|
13741
|
+
"kind": "contact_owner_of",
|
|
13742
|
+
"cardinality": "one_per_target",
|
|
12634
13743
|
"symmetric": false,
|
|
12635
|
-
"grantsChartAccess":
|
|
13744
|
+
"grantsChartAccess": false,
|
|
12636
13745
|
"roles": [
|
|
12637
13746
|
{
|
|
12638
|
-
"role": "
|
|
12639
|
-
"label": "
|
|
12640
|
-
"inverseLabel": "
|
|
12641
|
-
"description": "This person
|
|
13747
|
+
"role": "contact_owner",
|
|
13748
|
+
"label": "Contact owner",
|
|
13749
|
+
"inverseLabel": "Owns contact",
|
|
13750
|
+
"description": "This person owns the member's record in the CRM. A member has at most one. Grants no chart access.",
|
|
13751
|
+
"viewedMemberTypes": [
|
|
13752
|
+
"anonymous",
|
|
13753
|
+
"test",
|
|
13754
|
+
"member",
|
|
13755
|
+
"agent"
|
|
13756
|
+
],
|
|
13757
|
+
"relatedMemberTypes": [
|
|
13758
|
+
"anonymous",
|
|
13759
|
+
"test",
|
|
13760
|
+
"member",
|
|
13761
|
+
"agent"
|
|
13762
|
+
]
|
|
12642
13763
|
},
|
|
12643
13764
|
{
|
|
12644
|
-
"role": "
|
|
12645
|
-
"label": "
|
|
12646
|
-
"inverseLabel": "
|
|
12647
|
-
"description": "
|
|
13765
|
+
"role": "owns_contact",
|
|
13766
|
+
"label": "Owns contact",
|
|
13767
|
+
"inverseLabel": "Contact owner",
|
|
13768
|
+
"description": "The member owns this person's record in the CRM.",
|
|
13769
|
+
"viewedMemberTypes": [
|
|
13770
|
+
"anonymous",
|
|
13771
|
+
"test",
|
|
13772
|
+
"member",
|
|
13773
|
+
"agent"
|
|
13774
|
+
],
|
|
13775
|
+
"relatedMemberTypes": [
|
|
13776
|
+
"anonymous",
|
|
13777
|
+
"test",
|
|
13778
|
+
"member",
|
|
13779
|
+
"agent"
|
|
13780
|
+
]
|
|
12648
13781
|
}
|
|
12649
13782
|
]
|
|
12650
13783
|
},
|
|
12651
13784
|
{
|
|
12652
|
-
"kind": "
|
|
12653
|
-
"cardinality": "
|
|
13785
|
+
"kind": "employee_of",
|
|
13786
|
+
"cardinality": "many_to_many",
|
|
12654
13787
|
"symmetric": false,
|
|
12655
|
-
"grantsChartAccess":
|
|
13788
|
+
"grantsChartAccess": false,
|
|
12656
13789
|
"roles": [
|
|
12657
13790
|
{
|
|
12658
|
-
"role": "
|
|
12659
|
-
"label": "
|
|
12660
|
-
"inverseLabel": "
|
|
12661
|
-
"description": "This person
|
|
13791
|
+
"role": "employee",
|
|
13792
|
+
"label": "Employee",
|
|
13793
|
+
"inverseLabel": "Employer",
|
|
13794
|
+
"description": "This person works at the business. Grants no chart access.",
|
|
13795
|
+
"viewedMemberTypes": [
|
|
13796
|
+
"business"
|
|
13797
|
+
],
|
|
13798
|
+
"relatedMemberTypes": [
|
|
13799
|
+
"member"
|
|
13800
|
+
]
|
|
12662
13801
|
},
|
|
12663
13802
|
{
|
|
12664
|
-
"role": "
|
|
12665
|
-
"label": "
|
|
12666
|
-
"inverseLabel": "
|
|
12667
|
-
"description": "The member
|
|
13803
|
+
"role": "employer",
|
|
13804
|
+
"label": "Employer",
|
|
13805
|
+
"inverseLabel": "Employee",
|
|
13806
|
+
"description": "The member works at this business. Grants no chart access.",
|
|
13807
|
+
"viewedMemberTypes": [
|
|
13808
|
+
"member"
|
|
13809
|
+
],
|
|
13810
|
+
"relatedMemberTypes": [
|
|
13811
|
+
"business"
|
|
13812
|
+
]
|
|
12668
13813
|
}
|
|
12669
13814
|
]
|
|
12670
13815
|
}
|
|
@@ -12674,7 +13819,8 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
12674
13819
|
var UiPromptPresentedKind = {
|
|
12675
13820
|
render_ui: "render_ui",
|
|
12676
13821
|
present_choice_list: "present_choice_list",
|
|
12677
|
-
inline_connect: "inline_connect"
|
|
13822
|
+
inline_connect: "inline_connect",
|
|
13823
|
+
proposed_message: "proposed_message"
|
|
12678
13824
|
};
|
|
12679
13825
|
var UiPromptResponseKind = {
|
|
12680
13826
|
render_ui: "render_ui",
|
|
@@ -12686,6 +13832,56 @@ var UiPromptResponseStatus = {
|
|
|
12686
13832
|
declined: "declined"
|
|
12687
13833
|
};
|
|
12688
13834
|
|
|
13835
|
+
// src/types/proposed-message.ts
|
|
13836
|
+
var PROPOSED_MESSAGE_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
13837
|
+
"send_gmail",
|
|
13838
|
+
"slack_post_as_member",
|
|
13839
|
+
"slack_post_as_app",
|
|
13840
|
+
"teams_post_as_member",
|
|
13841
|
+
"teams_post_as_app"
|
|
13842
|
+
]);
|
|
13843
|
+
var PROPOSED_MESSAGE_SETTLED_TOOL_NAME = "proposed_message_settled";
|
|
13844
|
+
var PROPOSED_MESSAGE_SETTLEMENT_STATUSES = ["sent", "failed", "discarded"];
|
|
13845
|
+
function isProposedMessageSettlementStatus(value) {
|
|
13846
|
+
return typeof value === "string" && PROPOSED_MESSAGE_SETTLEMENT_STATUSES.includes(value);
|
|
13847
|
+
}
|
|
13848
|
+
var PROPOSED_MESSAGE_BODY_MAX_LENGTH = 4e4;
|
|
13849
|
+
var PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH = 998;
|
|
13850
|
+
var PROPOSED_SERVICES = /* @__PURE__ */ new Set(["gmail", "slack", "teams"]);
|
|
13851
|
+
var PROPOSED_FIELDS = /* @__PURE__ */ new Set(["body", "subject"]);
|
|
13852
|
+
function optionalString(record, key) {
|
|
13853
|
+
const value = record[key];
|
|
13854
|
+
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
13855
|
+
}
|
|
13856
|
+
function parseProposedMessage(value) {
|
|
13857
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
13858
|
+
const record = value;
|
|
13859
|
+
const tool = optionalString(record, "tool");
|
|
13860
|
+
const to = optionalString(record, "to");
|
|
13861
|
+
const body = optionalString(record, "body");
|
|
13862
|
+
const service = record.service;
|
|
13863
|
+
if (!tool || !to || !body || typeof service !== "string" || !PROPOSED_SERVICES.has(service)) {
|
|
13864
|
+
return void 0;
|
|
13865
|
+
}
|
|
13866
|
+
const editable = Array.isArray(record.editableFields) ? record.editableFields.filter(
|
|
13867
|
+
(field) => typeof field === "string" && PROPOSED_FIELDS.has(field)
|
|
13868
|
+
) : [];
|
|
13869
|
+
const cc = optionalString(record, "cc");
|
|
13870
|
+
const thread = optionalString(record, "thread");
|
|
13871
|
+
const subject = optionalString(record, "subject");
|
|
13872
|
+
return {
|
|
13873
|
+
tool,
|
|
13874
|
+
service,
|
|
13875
|
+
sendsAs: record.sendsAs === "app" ? "app" : "member",
|
|
13876
|
+
to,
|
|
13877
|
+
body,
|
|
13878
|
+
editableFields: editable,
|
|
13879
|
+
...cc ? { cc } : {},
|
|
13880
|
+
...thread ? { thread } : {},
|
|
13881
|
+
...subject ? { subject } : {}
|
|
13882
|
+
};
|
|
13883
|
+
}
|
|
13884
|
+
|
|
12689
13885
|
// src/api/workspace-invitations.ts
|
|
12690
13886
|
var WorkspaceInvitationsApi = class extends BaseApiClient {
|
|
12691
13887
|
/**
|
|
@@ -12993,12 +14189,44 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12993
14189
|
method: "POST"
|
|
12994
14190
|
});
|
|
12995
14191
|
}
|
|
14192
|
+
/** Read this account's own notification preferences. */
|
|
14193
|
+
async getNotificationPreferences() {
|
|
14194
|
+
return this.fetch("account/notification-preferences");
|
|
14195
|
+
}
|
|
14196
|
+
/** Silence or restore one workspace for the authenticated account. */
|
|
14197
|
+
async setWorkspaceNotificationMute(wid, muted) {
|
|
14198
|
+
return this.fetch(
|
|
14199
|
+
`account/notification-preferences/${wid}`,
|
|
14200
|
+
{
|
|
14201
|
+
method: "PUT",
|
|
14202
|
+
body: JSON.stringify({ muted })
|
|
14203
|
+
}
|
|
14204
|
+
);
|
|
14205
|
+
}
|
|
12996
14206
|
// ===== Push Notifications =====
|
|
12997
14207
|
/** Get the VAPID public key for Web Push subscription registration. */
|
|
12998
14208
|
async getVapidPublicKey() {
|
|
12999
14209
|
const response = await this.fetch("push/vapid-public-key");
|
|
13000
14210
|
return response.publicKey;
|
|
13001
14211
|
}
|
|
14212
|
+
/** Enable browser push across the authenticated account's workspaces. */
|
|
14213
|
+
async registerAccountPushSubscription(subscription) {
|
|
14214
|
+
return this.fetch("push/subscriptions", {
|
|
14215
|
+
method: "POST",
|
|
14216
|
+
body: JSON.stringify(subscription)
|
|
14217
|
+
});
|
|
14218
|
+
}
|
|
14219
|
+
/** Revoke this account's registration in one browser. */
|
|
14220
|
+
async unregisterAccountPushSubscription(endpoint) {
|
|
14221
|
+
return this.fetch("push/subscriptions", {
|
|
14222
|
+
method: "DELETE",
|
|
14223
|
+
body: JSON.stringify({ endpoint })
|
|
14224
|
+
});
|
|
14225
|
+
}
|
|
14226
|
+
/** List the authenticated account's browser registrations. */
|
|
14227
|
+
async listAccountPushSubscriptions() {
|
|
14228
|
+
return this.fetch("push/subscriptions");
|
|
14229
|
+
}
|
|
13002
14230
|
/** Register a Web Push subscription for the current user. */
|
|
13003
14231
|
async registerPushSubscription(wid, subscription) {
|
|
13004
14232
|
return this.fetch(`w/${wid}/push-subscriptions`, {
|
|
@@ -13534,6 +14762,11 @@ var MedicalBillingApi = class extends BaseApiClient {
|
|
|
13534
14762
|
};
|
|
13535
14763
|
|
|
13536
14764
|
// src/types/generated/organization_webhook.ts
|
|
14765
|
+
var OrgWebhookDeliveryHealthState = {
|
|
14766
|
+
healthy: "healthy",
|
|
14767
|
+
failing: "failing",
|
|
14768
|
+
held: "held"
|
|
14769
|
+
};
|
|
13537
14770
|
var OrgWebhookDeliveryResponseStatus = {
|
|
13538
14771
|
pending: "pending",
|
|
13539
14772
|
processing: "processing",
|
|
@@ -13542,6 +14775,13 @@ var OrgWebhookDeliveryResponseStatus = {
|
|
|
13542
14775
|
expired: "expired"
|
|
13543
14776
|
};
|
|
13544
14777
|
|
|
14778
|
+
// src/types/generated/workspace_selection.ts
|
|
14779
|
+
var WorkspaceScopeMode = {
|
|
14780
|
+
all: "all",
|
|
14781
|
+
selected: "selected",
|
|
14782
|
+
none: "none"
|
|
14783
|
+
};
|
|
14784
|
+
|
|
13545
14785
|
// src/types/generated/bundle_contract.ts
|
|
13546
14786
|
var BundleGrantRequestGranteeType = {
|
|
13547
14787
|
organization: "organization",
|
|
@@ -13553,6 +14793,26 @@ var FormBundleItemRecordScope = {
|
|
|
13553
14793
|
anonymous: "anonymous"
|
|
13554
14794
|
};
|
|
13555
14795
|
|
|
14796
|
+
// src/types/generated/bundle_publication.ts
|
|
14797
|
+
var BundlePublishItemChange = {
|
|
14798
|
+
added: "added",
|
|
14799
|
+
removed: "removed",
|
|
14800
|
+
revisionChanged: "revisionChanged",
|
|
14801
|
+
definitionChanged: "definitionChanged",
|
|
14802
|
+
unchanged: "unchanged"
|
|
14803
|
+
};
|
|
14804
|
+
var BundlePublishItemReason = {
|
|
14805
|
+
workflow_not_shareable: "workflow_not_shareable",
|
|
14806
|
+
not_portable: "not_portable",
|
|
14807
|
+
needed_by_another_item: "needed_by_another_item"
|
|
14808
|
+
};
|
|
14809
|
+
var BundlePublishItemStatus = {
|
|
14810
|
+
ready: "ready",
|
|
14811
|
+
held: "held",
|
|
14812
|
+
left_out: "left_out",
|
|
14813
|
+
blocked: "blocked"
|
|
14814
|
+
};
|
|
14815
|
+
|
|
13556
14816
|
// src/types/generated/installation_contract.ts
|
|
13557
14817
|
var InstallationItemChangeChange = {
|
|
13558
14818
|
added: "added",
|
|
@@ -13561,13 +14821,19 @@ var InstallationItemChangeChange = {
|
|
|
13561
14821
|
definitionChanged: "definitionChanged",
|
|
13562
14822
|
unchanged: "unchanged"
|
|
13563
14823
|
};
|
|
14824
|
+
var InstallationPhoneNumberNoticeCode = {
|
|
14825
|
+
webhooks_not_configured: "webhooks_not_configured",
|
|
14826
|
+
webhooks_routed_elsewhere: "webhooks_routed_elsewhere",
|
|
14827
|
+
number_not_assigned: "number_not_assigned"
|
|
14828
|
+
};
|
|
13564
14829
|
var ReferenceTargetInputKind = {
|
|
13565
14830
|
file: "file",
|
|
13566
14831
|
file_folder: "file_folder",
|
|
13567
14832
|
image: "image",
|
|
13568
14833
|
phone_number: "phone_number",
|
|
13569
14834
|
member_role: "member_role",
|
|
13570
|
-
page: "page"
|
|
14835
|
+
page: "page",
|
|
14836
|
+
operator_group: "operator_group"
|
|
13571
14837
|
};
|
|
13572
14838
|
var ScalarTargetInputKind = {
|
|
13573
14839
|
text: "text",
|
|
@@ -13595,7 +14861,7 @@ function formatAppContextAsMarkdown(context) {
|
|
|
13595
14861
|
lines.push(`**Page**: \`${context.appUri}\``);
|
|
13596
14862
|
}
|
|
13597
14863
|
if (context.pageState) {
|
|
13598
|
-
const { site, page, workflow, dataRecord, toolkit } = context.pageState;
|
|
14864
|
+
const { site, page, workflow, chat, dataRecord, toolkit } = context.pageState;
|
|
13599
14865
|
if (site) {
|
|
13600
14866
|
const siteName = site.name || site.slug;
|
|
13601
14867
|
lines.push(
|
|
@@ -13608,6 +14874,10 @@ function formatAppContextAsMarkdown(context) {
|
|
|
13608
14874
|
pageName ? `**Page**: ${pageName} (ID: \`${page.id}\`)` : `**Page ID**: \`${page.id}\``
|
|
13609
14875
|
);
|
|
13610
14876
|
}
|
|
14877
|
+
if (chat) {
|
|
14878
|
+
const workflowSuffix = chat.workflowId != null ? ` (Workflow ID: \`${chat.workflowId}\`)` : "";
|
|
14879
|
+
lines.push(`**Chat**: #${chat.id}${workflowSuffix}`);
|
|
14880
|
+
}
|
|
13611
14881
|
if (workflow) {
|
|
13612
14882
|
const workflowName = workflow.name;
|
|
13613
14883
|
lines.push(
|
|
@@ -13738,6 +15008,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13738
15008
|
"activateWorkflowRevision",
|
|
13739
15009
|
"addEmailSenderAsMember",
|
|
13740
15010
|
"addGroupMember",
|
|
15011
|
+
"addWorkspaceSupportRequestParticipants",
|
|
13741
15012
|
"advanceStep",
|
|
13742
15013
|
"approveWorkspaceInvitation",
|
|
13743
15014
|
"archiveAgent",
|
|
@@ -13807,6 +15078,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13807
15078
|
"listSubsetImportRuns",
|
|
13808
15079
|
"listSubsetImports",
|
|
13809
15080
|
"listSubsetImportVendorLists",
|
|
15081
|
+
"listWorkspaceSupportRequestCcCandidates",
|
|
13810
15082
|
"previewSubsetImport",
|
|
13811
15083
|
"previewSubsetImportSelection",
|
|
13812
15084
|
"restoreInstallationForm",
|
|
@@ -13841,7 +15113,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13841
15113
|
"createFolder",
|
|
13842
15114
|
"createGoal",
|
|
13843
15115
|
"createInbox",
|
|
13844
|
-
"
|
|
15116
|
+
"cloneJourneyToCurrent",
|
|
13845
15117
|
"createJourney",
|
|
13846
15118
|
"createJourneyNote",
|
|
13847
15119
|
"createMcpServer",
|
|
@@ -13953,6 +15225,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13953
15225
|
"disableSalesforce",
|
|
13954
15226
|
"disconnectConfluence",
|
|
13955
15227
|
"disconnectHubspot",
|
|
15228
|
+
"switchHubspotToPlatformApp",
|
|
13956
15229
|
"disconnectMondayConnection",
|
|
13957
15230
|
"disconnectSalesforce",
|
|
13958
15231
|
"discordLinkPreflight",
|
|
@@ -14041,10 +15314,12 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14041
15314
|
"getAvailablePhoneNumbers",
|
|
14042
15315
|
"getAvailableSlots",
|
|
14043
15316
|
"getInstallation",
|
|
15317
|
+
"getInstallationAbilitySettings",
|
|
14044
15318
|
"getInstallationReadiness",
|
|
14045
15319
|
"getThemeSettingsSchema",
|
|
14046
15320
|
"getBundleDraft",
|
|
14047
15321
|
"getBundleJourneyCandidate",
|
|
15322
|
+
"getBundlePublishPreview",
|
|
14048
15323
|
"getBundle",
|
|
14049
15324
|
"getBundleVersion",
|
|
14050
15325
|
"getBusinessHoursStatus",
|
|
@@ -14079,6 +15354,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14079
15354
|
"getChatTaskTransitions",
|
|
14080
15355
|
"getChatModelOverride",
|
|
14081
15356
|
"getChatPhoneCalls",
|
|
15357
|
+
"getChatPhoneNumbers",
|
|
14082
15358
|
"getChatSkills",
|
|
14083
15359
|
"getManagerSkills",
|
|
14084
15360
|
"getChatTodos",
|
|
@@ -14093,6 +15369,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14093
15369
|
"getConfluenceStatus",
|
|
14094
15370
|
"getConnectionFieldHomes",
|
|
14095
15371
|
"getInboundRecordStatus",
|
|
15372
|
+
"getOwnerMemberStatus",
|
|
14096
15373
|
"getConnectionSyncCapabilities",
|
|
14097
15374
|
"getConnectionSyncCheckpoint",
|
|
14098
15375
|
"getConnectionSyncConfig",
|
|
@@ -14119,7 +15396,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14119
15396
|
"getDataRecordFilters",
|
|
14120
15397
|
"getDataRecords",
|
|
14121
15398
|
"getDataType",
|
|
14122
|
-
"getDataTypeDraft",
|
|
14123
15399
|
"getDataTypeVersions",
|
|
14124
15400
|
"getDataTypeByUuid",
|
|
14125
15401
|
"getDataTypeBySlug",
|
|
@@ -14156,6 +15432,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14156
15432
|
"getEdgeCaptureInfo",
|
|
14157
15433
|
"getEnrollmentStatusLog",
|
|
14158
15434
|
"getEventRule",
|
|
15435
|
+
"getEventRuleIndex",
|
|
14159
15436
|
"getEventRules",
|
|
14160
15437
|
"getExperiment",
|
|
14161
15438
|
"getExperimentStats",
|
|
@@ -14184,8 +15461,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14184
15461
|
"previewDataReport",
|
|
14185
15462
|
"previewQuery",
|
|
14186
15463
|
"publishSiteSource",
|
|
14187
|
-
"publishDataTypeDraft",
|
|
14188
|
-
"saveDataTypeDraft",
|
|
14189
15464
|
"queryWorkspaceActivity",
|
|
14190
15465
|
"queryWorkspaceActivityLatestSubjects",
|
|
14191
15466
|
"queryWorkspaceActivityOpenItems",
|
|
@@ -14211,6 +15486,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14211
15486
|
"getFolders",
|
|
14212
15487
|
"getGoogleCalendarStatus",
|
|
14213
15488
|
"getGranteeGrants",
|
|
15489
|
+
"getHealthieAppointmentPatientMatches",
|
|
14214
15490
|
"getHealthieAvailableSlots",
|
|
14215
15491
|
"getHealthieReconciliationMatches",
|
|
14216
15492
|
"getHealthieStatus",
|
|
@@ -14219,6 +15495,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14219
15495
|
"getHubspotDealProperties",
|
|
14220
15496
|
"getHubspotForms",
|
|
14221
15497
|
"getHubspotMeetingLinks",
|
|
15498
|
+
"getHubspotCrmObjects",
|
|
14222
15499
|
"getHubspotManagedRules",
|
|
14223
15500
|
"getHubspotObjectProperties",
|
|
14224
15501
|
"getHubspotReconciliationMatches",
|
|
@@ -14246,10 +15523,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14246
15523
|
"getJourneyAuthoring",
|
|
14247
15524
|
"getJourneyFilterOptions",
|
|
14248
15525
|
"getJourneyHealth",
|
|
15526
|
+
"getJourneyHistory",
|
|
14249
15527
|
"getJourneyMembers",
|
|
14250
15528
|
"getJourneyNotes",
|
|
14251
15529
|
"getJourneySendEstimate",
|
|
14252
|
-
"
|
|
15530
|
+
"getJourneyDefinitionValidation",
|
|
14253
15531
|
"getJourneys",
|
|
14254
15532
|
"getLinkablePhones",
|
|
14255
15533
|
"getLinkedHealthieMembers",
|
|
@@ -14298,6 +15576,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14298
15576
|
"getMyGivenGrants",
|
|
14299
15577
|
"getMyReceivedGrants",
|
|
14300
15578
|
"getNotification",
|
|
15579
|
+
"getNotificationDestinations",
|
|
14301
15580
|
"getNotificationRules",
|
|
14302
15581
|
"getNotifications",
|
|
14303
15582
|
"getOperatorChatMessages",
|
|
@@ -14366,17 +15645,21 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14366
15645
|
"getStepMembers",
|
|
14367
15646
|
"getSupervisor",
|
|
14368
15647
|
"getSupervisors",
|
|
15648
|
+
"getSyncFailures",
|
|
15649
|
+
"getSyncFailureSummary",
|
|
14369
15650
|
"getSyncRunItems",
|
|
14370
15651
|
"getSyncRunItemsPage",
|
|
14371
15652
|
"getSyncRuns",
|
|
14372
15653
|
"getTask",
|
|
14373
15654
|
"getTaskChats",
|
|
15655
|
+
"getTaskCatalog",
|
|
14374
15656
|
"getTasks",
|
|
14375
15657
|
"getTeamsApp",
|
|
14376
15658
|
"getTeamsAppAccounts",
|
|
14377
15659
|
"getTeamsApps",
|
|
14378
15660
|
"getTeamsConversations",
|
|
14379
15661
|
"getTeamsInstallations",
|
|
15662
|
+
"getTeamsNotificationDestinations",
|
|
14380
15663
|
"getTemplateContext",
|
|
14381
15664
|
"getChatTestRun",
|
|
14382
15665
|
"getTestChatRun",
|
|
@@ -14399,6 +15682,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14399
15682
|
"getWorkflowFeedback",
|
|
14400
15683
|
"getWorkflowPromptClassifications",
|
|
14401
15684
|
"reviewWorkflowPromptClassifications",
|
|
15685
|
+
"getWorkflowRunnerFileAccess",
|
|
14402
15686
|
"getWorkflowContributors",
|
|
14403
15687
|
"getWorkflowDeletionPreview",
|
|
14404
15688
|
"getWorkflowDiagram",
|
|
@@ -14426,6 +15710,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14426
15710
|
"getWorkspaceWidgetDomains",
|
|
14427
15711
|
"getWorkspaceSubscriptions",
|
|
14428
15712
|
"getWorkspaceSupportRequest",
|
|
15713
|
+
"getWorkspaceValuesRecord",
|
|
14429
15714
|
"getWorkspaceThemes",
|
|
14430
15715
|
"installBundle",
|
|
14431
15716
|
"grantBundle",
|
|
@@ -14464,12 +15749,15 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14464
15749
|
"listBundleVersions",
|
|
14465
15750
|
"listBundles",
|
|
14466
15751
|
"listBundleWorkflowCandidates",
|
|
15752
|
+
"getWorkflowBundleMembership",
|
|
14467
15753
|
"updateBundle",
|
|
14468
15754
|
"listBundleInstallations",
|
|
14469
15755
|
"listConfluencePages",
|
|
14470
15756
|
"listConfluenceSpaces",
|
|
14471
15757
|
"listConnectionMemberFieldKeys",
|
|
14472
15758
|
"listContactPermissions",
|
|
15759
|
+
"listMemberImportRunItems",
|
|
15760
|
+
"listMemberImportRuns",
|
|
14473
15761
|
"revokeBundleGrant",
|
|
14474
15762
|
"rollbackSiteSource",
|
|
14475
15763
|
"rotateDocumoFaxCredentials",
|
|
@@ -14530,7 +15818,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14530
15818
|
"publishBundle",
|
|
14531
15819
|
"publishWorkflowRevision",
|
|
14532
15820
|
"putJourneyDraft",
|
|
14533
|
-
"
|
|
15821
|
+
"putJourneyDefinition",
|
|
14534
15822
|
"rateMessage",
|
|
14535
15823
|
"getChatFeedback",
|
|
14536
15824
|
"reenrollMember",
|
|
@@ -14582,6 +15870,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14582
15870
|
"skipStep",
|
|
14583
15871
|
"startConfluenceOAuth",
|
|
14584
15872
|
"startHubspotOAuth",
|
|
15873
|
+
"startMemberImportRun",
|
|
14585
15874
|
"startSalesforceOAuth",
|
|
14586
15875
|
"startSyncRun",
|
|
14587
15876
|
"captureScenarioDraft",
|
|
@@ -14593,6 +15882,12 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14593
15882
|
"testFhirConnection",
|
|
14594
15883
|
"testMcpServerConnection",
|
|
14595
15884
|
"testMondayConnection",
|
|
15885
|
+
"listJourneyTests",
|
|
15886
|
+
"createJourneyTest",
|
|
15887
|
+
"updateJourneyTest",
|
|
15888
|
+
"deleteJourneyTest",
|
|
15889
|
+
"runJourneyTests",
|
|
15890
|
+
"simulateJourney",
|
|
14596
15891
|
"testRunJourney",
|
|
14597
15892
|
"toggleFieldIndex",
|
|
14598
15893
|
"unarchiveAgent",
|
|
@@ -14701,8 +15996,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14701
15996
|
"upsertDataRecord",
|
|
14702
15997
|
"upsertWidgetDomain",
|
|
14703
15998
|
"validateCelExpression",
|
|
15999
|
+
"validateConnectionSyncConfig",
|
|
14704
16000
|
"validateDataTypeSlug",
|
|
16001
|
+
"validateMondaySyncConfig",
|
|
14705
16002
|
"validateQuery",
|
|
16003
|
+
"validateSalesforceSyncConfig",
|
|
14706
16004
|
"validateWorkflowName",
|
|
14707
16005
|
"verifyAthenaAccess",
|
|
14708
16006
|
"verifyClaimMdKey",
|
|
@@ -14768,11 +16066,14 @@ function bindAgentsMethods(target, agents) {
|
|
|
14768
16066
|
target.deleteAgent = agents.deleteAgent.bind(agents);
|
|
14769
16067
|
target.archiveAgent = agents.archiveAgent.bind(agents);
|
|
14770
16068
|
target.unarchiveAgent = agents.unarchiveAgent.bind(agents);
|
|
16069
|
+
target.getOrgAgentJobs = agents.getOrgAgentJobs.bind(agents);
|
|
16070
|
+
target.stopOrgAgentJob = agents.stopOrgAgentJob.bind(agents);
|
|
14771
16071
|
}
|
|
14772
16072
|
|
|
14773
16073
|
// src/client/bindings/tasks.ts
|
|
14774
16074
|
function bindTasksMethods(target, tasks, abilities) {
|
|
14775
16075
|
target.getTasks = tasks.getTasks.bind(tasks);
|
|
16076
|
+
target.getTaskCatalog = tasks.getTaskCatalog.bind(tasks);
|
|
14776
16077
|
target.getTask = tasks.getTask.bind(tasks);
|
|
14777
16078
|
target.createTask = tasks.createTask.bind(tasks);
|
|
14778
16079
|
target.updateTask = tasks.updateTask.bind(tasks);
|
|
@@ -14791,6 +16092,7 @@ function bindTasksMethods(target, tasks, abilities) {
|
|
|
14791
16092
|
|
|
14792
16093
|
// src/client/bindings/chats.ts
|
|
14793
16094
|
function bindChatsMethods(target, chats) {
|
|
16095
|
+
target.chat = chats.chat.bind(chats);
|
|
14794
16096
|
target.createChatInteractionSession = chats.createChatInteractionSession.bind(chats);
|
|
14795
16097
|
target.transitionChatInteractionSession = chats.transitionChatInteractionSession.bind(chats);
|
|
14796
16098
|
target.getChats = chats.getChats.bind(chats);
|
|
@@ -14834,6 +16136,8 @@ function bindChatsMethods(target, chats) {
|
|
|
14834
16136
|
target.createChatCompletion = chats.createChatCompletion.bind(chats);
|
|
14835
16137
|
target.exportChats = chats.exportChats.bind(chats);
|
|
14836
16138
|
target.exportChat = chats.exportChat.bind(chats);
|
|
16139
|
+
target.listChatStaffNotes = chats.listChatStaffNotes.bind(chats);
|
|
16140
|
+
target.createChatStaffNote = chats.createChatStaffNote.bind(chats);
|
|
14837
16141
|
target.findOrCreateDMChat = chats.findOrCreateDMChat.bind(chats);
|
|
14838
16142
|
target.sendChatMessage = chats.sendChatMessage.bind(chats);
|
|
14839
16143
|
target.getChatPhoneCalls = chats.getChatPhoneCalls.bind(chats);
|
|
@@ -14883,6 +16187,9 @@ function bindActivityMethods(target, activity) {
|
|
|
14883
16187
|
target.queryActivityOneView = activity.queryActivityOneView.bind(activity);
|
|
14884
16188
|
target.queryActivityDigest = activity.queryActivityDigest.bind(activity);
|
|
14885
16189
|
target.getActivityCounts = activity.getActivityCounts.bind(activity);
|
|
16190
|
+
target.queryActivityNotifications = activity.queryActivityNotifications.bind(activity);
|
|
16191
|
+
target.getActivityNotificationCount = activity.getActivityNotificationCount.bind(activity);
|
|
16192
|
+
target.markActivityNotifications = activity.markActivityNotifications.bind(activity);
|
|
14886
16193
|
target.getActivityCapabilities = activity.getActivityCapabilities.bind(activity);
|
|
14887
16194
|
target.queryOrgActivity = activity.queryOrgActivity.bind(activity);
|
|
14888
16195
|
target.queryOrgActivityLatestSubjects = activity.queryOrgActivityLatestSubjects.bind(activity);
|
|
@@ -14922,9 +16229,6 @@ function bindTrackedLinksMethods(target, trackedLinks) {
|
|
|
14922
16229
|
function bindDataTypesMethods(target, dataTypes) {
|
|
14923
16230
|
target.getAnonymousFormSchema = dataTypes.getAnonymousFormSchema.bind(dataTypes);
|
|
14924
16231
|
target.submitAnonymousForm = dataTypes.submitAnonymousForm.bind(dataTypes);
|
|
14925
|
-
target.getDataTypeDraft = dataTypes.getDataTypeDraft.bind(dataTypes);
|
|
14926
|
-
target.saveDataTypeDraft = dataTypes.saveDataTypeDraft.bind(dataTypes);
|
|
14927
|
-
target.publishDataTypeDraft = dataTypes.publishDataTypeDraft.bind(dataTypes);
|
|
14928
16232
|
target.getDataTypeVersions = dataTypes.getDataTypeVersions.bind(dataTypes);
|
|
14929
16233
|
target.getDataTypes = dataTypes.getDataTypes.bind(dataTypes);
|
|
14930
16234
|
target.getDataType = dataTypes.getDataType.bind(dataTypes);
|
|
@@ -14937,6 +16241,7 @@ function bindDataTypesMethods(target, dataTypes) {
|
|
|
14937
16241
|
target.unarchiveDataType = dataTypes.unarchiveDataType.bind(dataTypes);
|
|
14938
16242
|
target.cloneDataType = dataTypes.cloneDataType.bind(dataTypes);
|
|
14939
16243
|
target.getDataRecords = dataTypes.getDataRecords.bind(dataTypes);
|
|
16244
|
+
target.getWorkspaceValuesRecord = dataTypes.getWorkspaceValuesRecord.bind(dataTypes);
|
|
14940
16245
|
target.listAnonymousFormSubmissions = dataTypes.listAnonymousFormSubmissions.bind(dataTypes);
|
|
14941
16246
|
target.getAnonymousFormSubmission = dataTypes.getAnonymousFormSubmission.bind(dataTypes);
|
|
14942
16247
|
target.getDataRecord = dataTypes.getDataRecord.bind(dataTypes);
|
|
@@ -14982,6 +16287,7 @@ function bindMembersMethods(target, members) {
|
|
|
14982
16287
|
target.updateCurrentMember = members.updateCurrentMember.bind(members);
|
|
14983
16288
|
target.getWorkspaceMembers = members.getWorkspaceMembers.bind(members);
|
|
14984
16289
|
target.getWorkspaceMember = members.getWorkspaceMember.bind(members);
|
|
16290
|
+
target.getMemberSmsSenders = members.getMemberSmsSenders.bind(members);
|
|
14985
16291
|
target.getMemberByUuid = members.getMemberByUuid.bind(members);
|
|
14986
16292
|
target.getOrgWorkspaceMember = members.getOrgWorkspaceMember.bind(members);
|
|
14987
16293
|
target.createWorkspaceMember = members.createWorkspaceMember.bind(members);
|
|
@@ -14996,6 +16302,9 @@ function bindMembersMethods(target, members) {
|
|
|
14996
16302
|
target.bulkCreateMembers = members.bulkCreateMembers.bind(members);
|
|
14997
16303
|
target.previewImportMembers = members.previewImportMembers.bind(members);
|
|
14998
16304
|
target.importMembers = members.importMembers.bind(members);
|
|
16305
|
+
target.startMemberImportRun = members.startMemberImportRun.bind(members);
|
|
16306
|
+
target.listMemberImportRuns = members.listMemberImportRuns.bind(members);
|
|
16307
|
+
target.listMemberImportRunItems = members.listMemberImportRunItems.bind(members);
|
|
14999
16308
|
target.exportMembers = members.exportMembers.bind(members);
|
|
15000
16309
|
target.getMembersMessageActivity = members.getMembersMessageActivity.bind(members);
|
|
15001
16310
|
target.getMemberFilters = members.getMemberFilters.bind(members);
|
|
@@ -15096,6 +16405,11 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
15096
16405
|
target.getWorkspaceBySlug = workspaces.getWorkspace.bind(workspaces);
|
|
15097
16406
|
target.getWorkspaceScopes = workspaces.getWorkspaceScopes.bind(workspaces);
|
|
15098
16407
|
target.getUsageDashboard = workspaces.getUsageDashboard.bind(workspaces);
|
|
16408
|
+
target.getNotificationPreferences = workspaces.getNotificationPreferences.bind(workspaces);
|
|
16409
|
+
target.setWorkspaceNotificationMute = workspaces.setWorkspaceNotificationMute.bind(workspaces);
|
|
16410
|
+
target.registerAccountPushSubscription = workspaces.registerAccountPushSubscription.bind(workspaces);
|
|
16411
|
+
target.unregisterAccountPushSubscription = workspaces.unregisterAccountPushSubscription.bind(workspaces);
|
|
16412
|
+
target.listAccountPushSubscriptions = workspaces.listAccountPushSubscriptions.bind(workspaces);
|
|
15099
16413
|
target.getVapidPublicKey = workspaces.getVapidPublicKey.bind(workspaces);
|
|
15100
16414
|
target.testPushSubscription = workspaces.testPushSubscription.bind(workspaces);
|
|
15101
16415
|
target.registerPushSubscription = workspaces.registerPushSubscription.bind(workspaces);
|
|
@@ -15129,6 +16443,7 @@ function bindAuthMethods(target, auth, assignments) {
|
|
|
15129
16443
|
target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
|
|
15130
16444
|
target.getUserAccount = auth.getUserAccount.bind(auth);
|
|
15131
16445
|
target.updateUserAccount = auth.updateUserAccount.bind(auth);
|
|
16446
|
+
target.updateMemberAvatar = auth.updateMemberAvatar.bind(auth);
|
|
15132
16447
|
target.recordAcquisition = auth.recordAcquisition.bind(auth);
|
|
15133
16448
|
target.login = auth.login.bind(auth);
|
|
15134
16449
|
target.resendCode = auth.resendCode.bind(auth);
|
|
@@ -15297,6 +16612,7 @@ function bindProjectsMethods(target, projects) {
|
|
|
15297
16612
|
// src/client/bindings/events.ts
|
|
15298
16613
|
function bindEventsMethods(target, events) {
|
|
15299
16614
|
target.getEventRules = events.getEventRules.bind(events);
|
|
16615
|
+
target.getEventRuleIndex = events.getEventRuleIndex.bind(events);
|
|
15300
16616
|
target.getAvailableActions = events.getAvailableActions.bind(events);
|
|
15301
16617
|
target.searchEventRules = events.searchEventRules.bind(events);
|
|
15302
16618
|
target.getEventRule = events.getEventRule.bind(events);
|
|
@@ -15361,6 +16677,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
15361
16677
|
target.getWorkflowConfigValidation = workflows.getWorkflowConfigValidation.bind(workflows);
|
|
15362
16678
|
target.getWorkflowPromptClassifications = workflows.getWorkflowPromptClassifications.bind(workflows);
|
|
15363
16679
|
target.reviewWorkflowPromptClassifications = workflows.reviewWorkflowPromptClassifications.bind(workflows);
|
|
16680
|
+
target.getWorkflowRunnerFileAccess = workflows.getWorkflowRunnerFileAccess.bind(workflows);
|
|
15364
16681
|
target.getWorkflowNotes = workflowNotes.getWorkflowNotes.bind(workflowNotes);
|
|
15365
16682
|
target.createWorkflowNote = workflowNotes.createWorkflowNote.bind(workflowNotes);
|
|
15366
16683
|
target.updateWorkflowNote = workflowNotes.updateWorkflowNote.bind(workflowNotes);
|
|
@@ -15428,6 +16745,7 @@ function bindCalendarsMethods(target, calendars) {
|
|
|
15428
16745
|
// src/client/bindings/communications.ts
|
|
15429
16746
|
function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRules) {
|
|
15430
16747
|
target.getPhoneNumbers = phoneNumbers.getPhoneNumbers.bind(phoneNumbers);
|
|
16748
|
+
target.getChatPhoneNumbers = phoneNumbers.getChatPhoneNumbers.bind(phoneNumbers);
|
|
15431
16749
|
target.getAvailablePhoneNumbers = phoneNumbers.getAvailablePhoneNumbers.bind(phoneNumbers);
|
|
15432
16750
|
target.requestPhoneNumber = phoneNumbers.requestPhoneNumber.bind(phoneNumbers);
|
|
15433
16751
|
target.getPhoneNumber = phoneNumbers.getPhoneNumber.bind(phoneNumbers);
|
|
@@ -15475,6 +16793,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
15475
16793
|
target.createNotificationRule = notificationRules.createNotificationRule.bind(notificationRules);
|
|
15476
16794
|
target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
|
|
15477
16795
|
target.deleteNotificationRule = notificationRules.deleteNotificationRule.bind(notificationRules);
|
|
16796
|
+
target.getNotificationDestinations = notificationRules.getNotificationDestinations.bind(notificationRules);
|
|
15478
16797
|
}
|
|
15479
16798
|
|
|
15480
16799
|
// src/client/bindings/toolkits.ts
|
|
@@ -15575,6 +16894,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
15575
16894
|
target.denyAuthorization = oauth.denyAuthorization.bind(oauth);
|
|
15576
16895
|
target.getOAuthConsentClient = oauth.getOAuthConsentClient.bind(oauth);
|
|
15577
16896
|
target.getMcpConsentTargets = oauth.getMcpConsentTargets.bind(oauth);
|
|
16897
|
+
target.getConsentTargets = oauth.getConsentTargets.bind(oauth);
|
|
15578
16898
|
target.listMcpGrants = oauth.listMcpGrants.bind(oauth);
|
|
15579
16899
|
target.narrowMcpGrant = oauth.narrowMcpGrant.bind(oauth);
|
|
15580
16900
|
target.revokeMcpGrant = oauth.revokeMcpGrant.bind(oauth);
|
|
@@ -15607,6 +16927,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15607
16927
|
target.getMondaySyncConfig = mondayIntegration.getMondaySyncConfig.bind(mondayIntegration);
|
|
15608
16928
|
target.getMondaySyncLogs = mondayIntegration.getMondaySyncLogs.bind(mondayIntegration);
|
|
15609
16929
|
target.updateMondaySyncConfig = mondayIntegration.updateMondaySyncConfig.bind(mondayIntegration);
|
|
16930
|
+
target.validateMondaySyncConfig = mondayIntegration.validateMondaySyncConfig.bind(mondayIntegration);
|
|
15610
16931
|
target.getLinkedMondayMembers = mondayIntegration.getLinkedMondayMembers.bind(mondayIntegration);
|
|
15611
16932
|
target.getMondayReconciliationMatches = mondayIntegration.getMondayReconciliationMatches.bind(mondayIntegration);
|
|
15612
16933
|
target.linkMemberToMonday = mondayIntegration.linkMemberToMonday.bind(mondayIntegration);
|
|
@@ -15650,6 +16971,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15650
16971
|
target.getTeamsConversations = teamsApps.getTeamsConversations.bind(teamsApps);
|
|
15651
16972
|
target.getTeamsInstallations = teamsApps.getTeamsInstallations.bind(teamsApps);
|
|
15652
16973
|
target.getTeamsAppAccounts = teamsApps.getTeamsAppAccounts.bind(teamsApps);
|
|
16974
|
+
target.getTeamsNotificationDestinations = teamsApps.getTeamsNotificationDestinations.bind(teamsApps);
|
|
15653
16975
|
target.getFhirConnections = fhirConnections.getFhirConnections.bind(fhirConnections);
|
|
15654
16976
|
target.getFhirConnection = fhirConnections.getFhirConnection.bind(fhirConnections);
|
|
15655
16977
|
target.getFhirConnectionByUuid = fhirConnections.getFhirConnectionByUuid.bind(fhirConnections);
|
|
@@ -15709,6 +17031,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15709
17031
|
target.syncCalendarWithHealthie = healthie.syncCalendarWithHealthie.bind(healthie);
|
|
15710
17032
|
target.getLinkedHealthieMembers = healthie.getLinkedHealthieMembers.bind(healthie);
|
|
15711
17033
|
target.getHealthieReconciliationMatches = healthie.getHealthieReconciliationMatches.bind(healthie);
|
|
17034
|
+
target.getHealthieAppointmentPatientMatches = healthie.getHealthieAppointmentPatientMatches.bind(healthie);
|
|
15712
17035
|
target.linkMemberToHealthie = healthie.linkMemberToHealthie.bind(healthie);
|
|
15713
17036
|
target.unlinkMemberFromHealthie = healthie.unlinkMemberFromHealthie.bind(healthie);
|
|
15714
17037
|
target.listHealthieAppointmentTypes = healthie.listHealthieAppointmentTypes.bind(healthie);
|
|
@@ -15741,6 +17064,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15741
17064
|
target.getSalesforceSyncConfig = salesforce.getSalesforceSyncConfig.bind(salesforce);
|
|
15742
17065
|
target.getSalesforceSyncLogs = salesforce.getSalesforceSyncLogs.bind(salesforce);
|
|
15743
17066
|
target.updateSalesforceSyncConfig = salesforce.updateSalesforceSyncConfig.bind(salesforce);
|
|
17067
|
+
target.validateSalesforceSyncConfig = salesforce.validateSalesforceSyncConfig.bind(salesforce);
|
|
15744
17068
|
target.resyncSalesforceLinkedMembers = salesforce.resyncSalesforceLinkedMembers.bind(salesforce);
|
|
15745
17069
|
target.listSalesforceObjects = salesforce.listSalesforceObjects.bind(salesforce);
|
|
15746
17070
|
target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
|
|
@@ -15756,6 +17080,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15756
17080
|
target.startHubspotOAuth = hubspot.startHubspotOAuth.bind(hubspot);
|
|
15757
17081
|
target.getHubspotStatus = hubspot.getHubspotStatus.bind(hubspot);
|
|
15758
17082
|
target.disconnectHubspot = hubspot.disconnectHubspot.bind(hubspot);
|
|
17083
|
+
target.switchHubspotToPlatformApp = hubspot.switchHubspotToPlatformApp.bind(hubspot);
|
|
15759
17084
|
target.disableHubspot = hubspot.disableHubspot.bind(hubspot);
|
|
15760
17085
|
target.enableHubspot = hubspot.enableHubspot.bind(hubspot);
|
|
15761
17086
|
target.deleteHubspot = hubspot.deleteHubspot.bind(hubspot);
|
|
@@ -15770,6 +17095,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15770
17095
|
target.getHubspotDealProperties = hubspot.getHubspotDealProperties.bind(hubspot);
|
|
15771
17096
|
target.getHubspotForms = hubspot.getHubspotForms.bind(hubspot);
|
|
15772
17097
|
target.getHubspotMeetingLinks = hubspot.getHubspotMeetingLinks.bind(hubspot);
|
|
17098
|
+
target.getHubspotCrmObjects = hubspot.getHubspotCrmObjects.bind(hubspot);
|
|
15773
17099
|
target.getHubspotObjectProperties = hubspot.getHubspotObjectProperties.bind(hubspot);
|
|
15774
17100
|
target.getHubspotManagedRules = hubspot.getHubspotManagedRules.bind(hubspot);
|
|
15775
17101
|
target.getHubspotSyncLogs = hubspot.getHubspotSyncLogs.bind(hubspot);
|
|
@@ -15777,14 +17103,18 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15777
17103
|
target.getConnectionSyncCapabilities = connectionSync.getConnectionSyncCapabilities.bind(connectionSync);
|
|
15778
17104
|
target.getConnectionSyncConfig = connectionSync.getConnectionSyncConfig.bind(connectionSync);
|
|
15779
17105
|
target.updateConnectionSyncConfig = connectionSync.updateConnectionSyncConfig.bind(connectionSync);
|
|
17106
|
+
target.validateConnectionSyncConfig = connectionSync.validateConnectionSyncConfig.bind(connectionSync);
|
|
15780
17107
|
target.getConnectionSyncCheckpoint = connectionSync.getConnectionSyncCheckpoint.bind(connectionSync);
|
|
15781
17108
|
target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
|
|
15782
17109
|
target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
|
|
15783
17110
|
target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
|
|
15784
17111
|
target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
|
|
15785
17112
|
target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
|
|
17113
|
+
target.getSyncFailureSummary = connectionSync.getSyncFailureSummary.bind(connectionSync);
|
|
17114
|
+
target.getSyncFailures = connectionSync.getSyncFailures.bind(connectionSync);
|
|
15786
17115
|
target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
|
|
15787
17116
|
target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
|
|
17117
|
+
target.getOwnerMemberStatus = connectionSync.getOwnerMemberStatus.bind(connectionSync);
|
|
15788
17118
|
target.getConnectionWritePreview = connectionSync.getConnectionWritePreview.bind(connectionSync);
|
|
15789
17119
|
target.clearConnectionMemberExclusion = connectionSync.clearConnectionMemberExclusion.bind(connectionSync);
|
|
15790
17120
|
target.linkUnlinkedMembersByIdentity = connectionSync.linkUnlinkedMembersByIdentity.bind(connectionSync);
|
|
@@ -15828,13 +17158,6 @@ function bindOperatorMethods(target, operatorGroups) {
|
|
|
15828
17158
|
|
|
15829
17159
|
// src/client/bindings/org.ts
|
|
15830
17160
|
function bindOrgMethods(target, org) {
|
|
15831
|
-
target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
|
|
15832
|
-
target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
|
|
15833
|
-
target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
|
|
15834
|
-
target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
|
|
15835
|
-
target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
|
|
15836
|
-
target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
|
|
15837
|
-
target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
|
|
15838
17161
|
target.listOrgDomains = org.listOrgDomains.bind(org);
|
|
15839
17162
|
target.registerOrgDomain = org.registerOrgDomain.bind(org);
|
|
15840
17163
|
target.getOrgDomain = org.getOrgDomain.bind(org);
|
|
@@ -15923,11 +17246,13 @@ function bindBundlesMethods(target, bundles, resourceWorkflows) {
|
|
|
15923
17246
|
target.listBundleInstallations = bundles.listBundleInstallations.bind(bundles);
|
|
15924
17247
|
target.listBundles = bundles.listBundles.bind(bundles);
|
|
15925
17248
|
target.listBundleWorkflowCandidates = bundles.listBundleWorkflowCandidates.bind(bundles);
|
|
17249
|
+
target.getWorkflowBundleMembership = bundles.getWorkflowBundleMembership.bind(bundles);
|
|
15926
17250
|
target.listBundleJourneyCandidates = bundles.listBundleJourneyCandidates.bind(bundles);
|
|
15927
17251
|
target.getBundleJourneyCandidate = bundles.getBundleJourneyCandidate.bind(bundles);
|
|
15928
17252
|
target.createBundle = bundles.createBundle.bind(bundles);
|
|
15929
17253
|
target.getBundleDraft = bundles.getBundleDraft.bind(bundles);
|
|
15930
17254
|
target.replaceBundleDraft = bundles.replaceBundleDraft.bind(bundles);
|
|
17255
|
+
target.getBundlePublishPreview = bundles.getBundlePublishPreview.bind(bundles);
|
|
15931
17256
|
target.publishBundle = bundles.publishBundle.bind(bundles);
|
|
15932
17257
|
target.listBundleVersions = bundles.listBundleVersions.bind(bundles);
|
|
15933
17258
|
target.getBundle = bundles.getBundle.bind(bundles);
|
|
@@ -15945,6 +17270,7 @@ function bindInstallationsMethods(target, installations) {
|
|
|
15945
17270
|
target.listInstallations = installations.listInstallations.bind(installations);
|
|
15946
17271
|
target.getInstallation = installations.getInstallation.bind(installations);
|
|
15947
17272
|
target.getInstallationReadiness = installations.getInstallationReadiness.bind(installations);
|
|
17273
|
+
target.getInstallationAbilitySettings = installations.getInstallationAbilitySettings.bind(installations);
|
|
15948
17274
|
target.previewInstallationUpgrade = installations.previewInstallationUpgrade.bind(installations);
|
|
15949
17275
|
target.upgradeInstallation = installations.upgradeInstallation.bind(installations);
|
|
15950
17276
|
target.setInstallationPolicy = installations.setInstallationPolicy.bind(installations);
|
|
@@ -15958,17 +17284,24 @@ function bindInstallationsMethods(target, installations) {
|
|
|
15958
17284
|
|
|
15959
17285
|
// src/client/bindings/journeys.ts
|
|
15960
17286
|
function bindJourneysMethods(target, journeys) {
|
|
17287
|
+
target.listJourneyTests = journeys.listJourneyTests.bind(journeys);
|
|
17288
|
+
target.createJourneyTest = journeys.createJourneyTest.bind(journeys);
|
|
17289
|
+
target.updateJourneyTest = journeys.updateJourneyTest.bind(journeys);
|
|
17290
|
+
target.deleteJourneyTest = journeys.deleteJourneyTest.bind(journeys);
|
|
17291
|
+
target.runJourneyTests = journeys.runJourneyTests.bind(journeys);
|
|
17292
|
+
target.simulateJourney = journeys.simulateJourney.bind(journeys);
|
|
15961
17293
|
target.getJourneys = journeys.getJourneys.bind(journeys);
|
|
15962
17294
|
target.getJourney = journeys.getJourney.bind(journeys);
|
|
15963
17295
|
target.getJourneyAuthoring = journeys.getJourneyAuthoring.bind(journeys);
|
|
15964
17296
|
target.putJourneyDraft = journeys.putJourneyDraft.bind(journeys);
|
|
15965
17297
|
target.deleteJourneyDraft = journeys.deleteJourneyDraft.bind(journeys);
|
|
15966
|
-
target.
|
|
15967
|
-
target.
|
|
17298
|
+
target.putJourneyDefinition = journeys.putJourneyDefinition.bind(journeys);
|
|
17299
|
+
target.getJourneyDefinitionValidation = journeys.getJourneyDefinitionValidation.bind(journeys);
|
|
15968
17300
|
target.getJourneyFilterOptions = journeys.getJourneyFilterOptions.bind(journeys);
|
|
15969
17301
|
target.getJourneyHealth = journeys.getJourneyHealth.bind(journeys);
|
|
17302
|
+
target.getJourneyHistory = journeys.getJourneyHistory.bind(journeys);
|
|
15970
17303
|
target.getJourneySendEstimate = journeys.getJourneySendEstimate.bind(journeys);
|
|
15971
|
-
target.
|
|
17304
|
+
target.cloneJourneyToCurrent = journeys.cloneJourneyToCurrent.bind(journeys);
|
|
15972
17305
|
target.createJourney = journeys.createJourney.bind(journeys);
|
|
15973
17306
|
target.updateJourney = journeys.updateJourney.bind(journeys);
|
|
15974
17307
|
target.archiveJourney = journeys.archiveJourney.bind(journeys);
|
|
@@ -16116,6 +17449,10 @@ function bindSupportRequestMethods(target, supportRequests) {
|
|
|
16116
17449
|
target.closeWorkspaceSupportRequest = supportRequests.closeWorkspaceSupportRequest.bind(supportRequests);
|
|
16117
17450
|
target.reopenWorkspaceSupportRequest = supportRequests.reopenWorkspaceSupportRequest.bind(supportRequests);
|
|
16118
17451
|
target.clickWorkspaceSupportRequestResource = supportRequests.clickWorkspaceSupportRequestResource.bind(supportRequests);
|
|
17452
|
+
target.listOrgSupportRequestCcCandidates = supportRequests.listOrgSupportRequestCcCandidates.bind(supportRequests);
|
|
17453
|
+
target.addOrgSupportRequestParticipants = supportRequests.addOrgSupportRequestParticipants.bind(supportRequests);
|
|
17454
|
+
target.listWorkspaceSupportRequestCcCandidates = supportRequests.listWorkspaceSupportRequestCcCandidates.bind(supportRequests);
|
|
17455
|
+
target.addWorkspaceSupportRequestParticipants = supportRequests.addWorkspaceSupportRequestParticipants.bind(supportRequests);
|
|
16119
17456
|
}
|
|
16120
17457
|
|
|
16121
17458
|
// src/client/bindings/routing-rules.ts
|
|
@@ -16152,6 +17489,7 @@ var GravityRailClient = class {
|
|
|
16152
17489
|
apis;
|
|
16153
17490
|
// Tasks API
|
|
16154
17491
|
getTasks;
|
|
17492
|
+
getTaskCatalog;
|
|
16155
17493
|
getTask;
|
|
16156
17494
|
createTask;
|
|
16157
17495
|
updateTask;
|
|
@@ -16167,6 +17505,7 @@ var GravityRailClient = class {
|
|
|
16167
17505
|
deleteAbility;
|
|
16168
17506
|
getCharlestonTestDeliveryRecipients;
|
|
16169
17507
|
// Chats API
|
|
17508
|
+
chat;
|
|
16170
17509
|
getChats;
|
|
16171
17510
|
getChat;
|
|
16172
17511
|
getChatByUuid;
|
|
@@ -16210,6 +17549,8 @@ var GravityRailClient = class {
|
|
|
16210
17549
|
createChatCompletion;
|
|
16211
17550
|
exportChats;
|
|
16212
17551
|
exportChat;
|
|
17552
|
+
listChatStaffNotes;
|
|
17553
|
+
createChatStaffNote;
|
|
16213
17554
|
findOrCreateDMChat;
|
|
16214
17555
|
sendChatMessage;
|
|
16215
17556
|
getChatPhoneCalls;
|
|
@@ -16238,9 +17579,6 @@ var GravityRailClient = class {
|
|
|
16238
17579
|
getAnonymousFormSchema;
|
|
16239
17580
|
submitAnonymousForm;
|
|
16240
17581
|
getDataTypes;
|
|
16241
|
-
getDataTypeDraft;
|
|
16242
|
-
saveDataTypeDraft;
|
|
16243
|
-
publishDataTypeDraft;
|
|
16244
17582
|
getDataTypeVersions;
|
|
16245
17583
|
getDataType;
|
|
16246
17584
|
getDataTypeByUuid;
|
|
@@ -16252,6 +17590,7 @@ var GravityRailClient = class {
|
|
|
16252
17590
|
unarchiveDataType;
|
|
16253
17591
|
cloneDataType;
|
|
16254
17592
|
getDataRecords;
|
|
17593
|
+
getWorkspaceValuesRecord;
|
|
16255
17594
|
listAnonymousFormSubmissions;
|
|
16256
17595
|
getAnonymousFormSubmission;
|
|
16257
17596
|
getDataRecord;
|
|
@@ -16284,6 +17623,7 @@ var GravityRailClient = class {
|
|
|
16284
17623
|
updateCurrentMember;
|
|
16285
17624
|
getWorkspaceMembers;
|
|
16286
17625
|
getWorkspaceMember;
|
|
17626
|
+
getMemberSmsSenders;
|
|
16287
17627
|
getMemberByUuid;
|
|
16288
17628
|
// Org-scoped, so deliberately absent from WORKSPACE_METHOD_NAMES: that proxy
|
|
16289
17629
|
// passes a workspace uuid as the first argument.
|
|
@@ -16300,6 +17640,9 @@ var GravityRailClient = class {
|
|
|
16300
17640
|
bulkCreateMembers;
|
|
16301
17641
|
previewImportMembers;
|
|
16302
17642
|
importMembers;
|
|
17643
|
+
startMemberImportRun;
|
|
17644
|
+
listMemberImportRuns;
|
|
17645
|
+
listMemberImportRunItems;
|
|
16303
17646
|
exportMembers;
|
|
16304
17647
|
getMembersMessageActivity;
|
|
16305
17648
|
getMemberFilters;
|
|
@@ -16359,6 +17702,8 @@ var GravityRailClient = class {
|
|
|
16359
17702
|
deleteAgent;
|
|
16360
17703
|
archiveAgent;
|
|
16361
17704
|
unarchiveAgent;
|
|
17705
|
+
getOrgAgentJobs;
|
|
17706
|
+
stopOrgAgentJob;
|
|
16362
17707
|
// Qualifications API
|
|
16363
17708
|
getQualifications;
|
|
16364
17709
|
getQualification;
|
|
@@ -16426,6 +17771,11 @@ var GravityRailClient = class {
|
|
|
16426
17771
|
queryActivityOneView;
|
|
16427
17772
|
queryActivityDigest;
|
|
16428
17773
|
getActivityCounts;
|
|
17774
|
+
// The one global notification feed, its bell number, and its mark action.
|
|
17775
|
+
// All three are account-authorized self endpoints.
|
|
17776
|
+
queryActivityNotifications;
|
|
17777
|
+
getActivityNotificationCount;
|
|
17778
|
+
markActivityNotifications;
|
|
16429
17779
|
getActivityCapabilities;
|
|
16430
17780
|
queryOrgActivity;
|
|
16431
17781
|
queryOrgActivityLatestSubjects;
|
|
@@ -16463,12 +17813,13 @@ var GravityRailClient = class {
|
|
|
16463
17813
|
getJourneyAuthoring;
|
|
16464
17814
|
putJourneyDraft;
|
|
16465
17815
|
deleteJourneyDraft;
|
|
16466
|
-
|
|
16467
|
-
|
|
17816
|
+
putJourneyDefinition;
|
|
17817
|
+
getJourneyDefinitionValidation;
|
|
16468
17818
|
getJourneyFilterOptions;
|
|
16469
17819
|
getJourneyHealth;
|
|
17820
|
+
getJourneyHistory;
|
|
16470
17821
|
getJourneySendEstimate;
|
|
16471
|
-
|
|
17822
|
+
cloneJourneyToCurrent;
|
|
16472
17823
|
createJourney;
|
|
16473
17824
|
updateJourney;
|
|
16474
17825
|
archiveJourney;
|
|
@@ -16493,6 +17844,12 @@ var GravityRailClient = class {
|
|
|
16493
17844
|
getStepMemberCounts;
|
|
16494
17845
|
advanceStep;
|
|
16495
17846
|
skipStep;
|
|
17847
|
+
listJourneyTests;
|
|
17848
|
+
createJourneyTest;
|
|
17849
|
+
updateJourneyTest;
|
|
17850
|
+
deleteJourneyTest;
|
|
17851
|
+
runJourneyTests;
|
|
17852
|
+
simulateJourney;
|
|
16496
17853
|
testRunJourney;
|
|
16497
17854
|
getJourneyNotes;
|
|
16498
17855
|
createJourneyNote;
|
|
@@ -16505,11 +17862,13 @@ var GravityRailClient = class {
|
|
|
16505
17862
|
getPublicBundle;
|
|
16506
17863
|
listBundles;
|
|
16507
17864
|
listBundleWorkflowCandidates;
|
|
17865
|
+
getWorkflowBundleMembership;
|
|
16508
17866
|
listBundleJourneyCandidates;
|
|
16509
17867
|
getBundleJourneyCandidate;
|
|
16510
17868
|
createBundle;
|
|
16511
17869
|
getBundleDraft;
|
|
16512
17870
|
replaceBundleDraft;
|
|
17871
|
+
getBundlePublishPreview;
|
|
16513
17872
|
publishBundle;
|
|
16514
17873
|
listBundleVersions;
|
|
16515
17874
|
getBundle;
|
|
@@ -16527,6 +17886,7 @@ var GravityRailClient = class {
|
|
|
16527
17886
|
listInstallations;
|
|
16528
17887
|
getInstallation;
|
|
16529
17888
|
getInstallationReadiness;
|
|
17889
|
+
getInstallationAbilitySettings;
|
|
16530
17890
|
previewInstallationUpgrade;
|
|
16531
17891
|
upgradeInstallation;
|
|
16532
17892
|
setInstallationPolicy;
|
|
@@ -16642,13 +18002,6 @@ var GravityRailClient = class {
|
|
|
16642
18002
|
upsertWidgetDomain;
|
|
16643
18003
|
deleteWidgetDomain;
|
|
16644
18004
|
// Org API
|
|
16645
|
-
getOrgManagerCredentialResponse;
|
|
16646
|
-
authorizeOrgManagerDelegation;
|
|
16647
|
-
getOrgManagerChats;
|
|
16648
|
-
createOrgManagerChat;
|
|
16649
|
-
getOrgManagerMessages;
|
|
16650
|
-
startOrgManagerTurn;
|
|
16651
|
-
stopOrgManagerTurn;
|
|
16652
18005
|
listOrgDomains;
|
|
16653
18006
|
registerOrgDomain;
|
|
16654
18007
|
getOrgDomain;
|
|
@@ -16703,6 +18056,11 @@ var GravityRailClient = class {
|
|
|
16703
18056
|
getWorkspaceLabels;
|
|
16704
18057
|
setWorkspaceLabels;
|
|
16705
18058
|
previewWorkspaceScope;
|
|
18059
|
+
getNotificationPreferences;
|
|
18060
|
+
setWorkspaceNotificationMute;
|
|
18061
|
+
registerAccountPushSubscription;
|
|
18062
|
+
unregisterAccountPushSubscription;
|
|
18063
|
+
listAccountPushSubscriptions;
|
|
16706
18064
|
getVapidPublicKey;
|
|
16707
18065
|
testPushSubscription;
|
|
16708
18066
|
registerPushSubscription;
|
|
@@ -16727,6 +18085,7 @@ var GravityRailClient = class {
|
|
|
16727
18085
|
viewAccountNotice;
|
|
16728
18086
|
dismissAccountNotice;
|
|
16729
18087
|
updateUserAccount;
|
|
18088
|
+
updateMemberAvatar;
|
|
16730
18089
|
recordAcquisition;
|
|
16731
18090
|
login;
|
|
16732
18091
|
resendCode;
|
|
@@ -16883,6 +18242,7 @@ var GravityRailClient = class {
|
|
|
16883
18242
|
getPublicFolderFiles;
|
|
16884
18243
|
// Events API
|
|
16885
18244
|
getEventRules;
|
|
18245
|
+
getEventRuleIndex;
|
|
16886
18246
|
getAvailableActions;
|
|
16887
18247
|
searchEventRules;
|
|
16888
18248
|
getEventRule;
|
|
@@ -16927,6 +18287,7 @@ var GravityRailClient = class {
|
|
|
16927
18287
|
getWorkflowConfigValidation;
|
|
16928
18288
|
getWorkflowPromptClassifications;
|
|
16929
18289
|
reviewWorkflowPromptClassifications;
|
|
18290
|
+
getWorkflowRunnerFileAccess;
|
|
16930
18291
|
getWorkflowNotes;
|
|
16931
18292
|
createWorkflowNote;
|
|
16932
18293
|
updateWorkflowNote;
|
|
@@ -16988,6 +18349,7 @@ var GravityRailClient = class {
|
|
|
16988
18349
|
syncCalendarWithGoogle;
|
|
16989
18350
|
// Communications API
|
|
16990
18351
|
getPhoneNumbers;
|
|
18352
|
+
getChatPhoneNumbers;
|
|
16991
18353
|
getAvailablePhoneNumbers;
|
|
16992
18354
|
requestPhoneNumber;
|
|
16993
18355
|
getPhoneNumber;
|
|
@@ -17035,6 +18397,7 @@ var GravityRailClient = class {
|
|
|
17035
18397
|
createNotificationRule;
|
|
17036
18398
|
updateNotificationRule;
|
|
17037
18399
|
deleteNotificationRule;
|
|
18400
|
+
getNotificationDestinations;
|
|
17038
18401
|
// Toolkits API
|
|
17039
18402
|
getToolkits;
|
|
17040
18403
|
getTool;
|
|
@@ -17133,6 +18496,7 @@ var GravityRailClient = class {
|
|
|
17133
18496
|
denyAuthorization;
|
|
17134
18497
|
getOAuthConsentClient;
|
|
17135
18498
|
getMcpConsentTargets;
|
|
18499
|
+
getConsentTargets;
|
|
17136
18500
|
listMcpGrants;
|
|
17137
18501
|
narrowMcpGrant;
|
|
17138
18502
|
revokeMcpGrant;
|
|
@@ -17163,6 +18527,7 @@ var GravityRailClient = class {
|
|
|
17163
18527
|
getMondaySyncConfig;
|
|
17164
18528
|
getMondaySyncLogs;
|
|
17165
18529
|
updateMondaySyncConfig;
|
|
18530
|
+
validateMondaySyncConfig;
|
|
17166
18531
|
getLinkedMondayMembers;
|
|
17167
18532
|
getMondayReconciliationMatches;
|
|
17168
18533
|
linkMemberToMonday;
|
|
@@ -17209,6 +18574,7 @@ var GravityRailClient = class {
|
|
|
17209
18574
|
getTeamsConversations;
|
|
17210
18575
|
getTeamsInstallations;
|
|
17211
18576
|
getTeamsAppAccounts;
|
|
18577
|
+
getTeamsNotificationDestinations;
|
|
17212
18578
|
// FHIR Connections API
|
|
17213
18579
|
getFhirConnections;
|
|
17214
18580
|
getFhirConnection;
|
|
@@ -17270,6 +18636,7 @@ var GravityRailClient = class {
|
|
|
17270
18636
|
syncCalendarWithHealthie;
|
|
17271
18637
|
getLinkedHealthieMembers;
|
|
17272
18638
|
getHealthieReconciliationMatches;
|
|
18639
|
+
getHealthieAppointmentPatientMatches;
|
|
17273
18640
|
linkMemberToHealthie;
|
|
17274
18641
|
unlinkMemberFromHealthie;
|
|
17275
18642
|
listHealthieAppointmentTypes;
|
|
@@ -17304,6 +18671,7 @@ var GravityRailClient = class {
|
|
|
17304
18671
|
getSalesforceSyncConfig;
|
|
17305
18672
|
getSalesforceSyncLogs;
|
|
17306
18673
|
updateSalesforceSyncConfig;
|
|
18674
|
+
validateSalesforceSyncConfig;
|
|
17307
18675
|
resyncSalesforceLinkedMembers;
|
|
17308
18676
|
listSalesforceObjects;
|
|
17309
18677
|
describeSalesforceObject;
|
|
@@ -17320,6 +18688,7 @@ var GravityRailClient = class {
|
|
|
17320
18688
|
startHubspotOAuth;
|
|
17321
18689
|
getHubspotStatus;
|
|
17322
18690
|
disconnectHubspot;
|
|
18691
|
+
switchHubspotToPlatformApp;
|
|
17323
18692
|
disableHubspot;
|
|
17324
18693
|
enableHubspot;
|
|
17325
18694
|
deleteHubspot;
|
|
@@ -17334,6 +18703,7 @@ var GravityRailClient = class {
|
|
|
17334
18703
|
getHubspotDealProperties;
|
|
17335
18704
|
getHubspotForms;
|
|
17336
18705
|
getHubspotMeetingLinks;
|
|
18706
|
+
getHubspotCrmObjects;
|
|
17337
18707
|
getHubspotObjectProperties;
|
|
17338
18708
|
getHubspotManagedRules;
|
|
17339
18709
|
getHubspotSyncLogs;
|
|
@@ -17342,14 +18712,18 @@ var GravityRailClient = class {
|
|
|
17342
18712
|
getConnectionSyncCapabilities;
|
|
17343
18713
|
getConnectionSyncConfig;
|
|
17344
18714
|
updateConnectionSyncConfig;
|
|
18715
|
+
validateConnectionSyncConfig;
|
|
17345
18716
|
getConnectionSyncCheckpoint;
|
|
17346
18717
|
startSyncRun;
|
|
17347
18718
|
getSyncRuns;
|
|
17348
18719
|
getSyncRunItems;
|
|
17349
18720
|
getSyncRunItemsPage;
|
|
17350
18721
|
getMemberSyncSummary;
|
|
18722
|
+
getSyncFailureSummary;
|
|
18723
|
+
getSyncFailures;
|
|
17351
18724
|
getConnectionFieldHomes;
|
|
17352
18725
|
getInboundRecordStatus;
|
|
18726
|
+
getOwnerMemberStatus;
|
|
17353
18727
|
getConnectionWritePreview;
|
|
17354
18728
|
clearConnectionMemberExclusion;
|
|
17355
18729
|
linkUnlinkedMembersByIdentity;
|
|
@@ -17428,6 +18802,10 @@ var GravityRailClient = class {
|
|
|
17428
18802
|
closeWorkspaceSupportRequest;
|
|
17429
18803
|
reopenWorkspaceSupportRequest;
|
|
17430
18804
|
clickWorkspaceSupportRequestResource;
|
|
18805
|
+
listOrgSupportRequestCcCandidates;
|
|
18806
|
+
addOrgSupportRequestParticipants;
|
|
18807
|
+
listWorkspaceSupportRequestCcCandidates;
|
|
18808
|
+
addWorkspaceSupportRequestParticipants;
|
|
17431
18809
|
// Routing Rules API
|
|
17432
18810
|
getRoutingRules;
|
|
17433
18811
|
getRoutingRule;
|
|
@@ -18043,313 +19421,7 @@ var MemberLabelBuilder = class extends WorkspaceBuilderResource {
|
|
|
18043
19421
|
};
|
|
18044
19422
|
|
|
18045
19423
|
// src/workspace-builder/journeys.ts
|
|
18046
|
-
var
|
|
18047
|
-
function edgeKey(parentId, childId) {
|
|
18048
|
-
return `${parentId}:${childId}`;
|
|
18049
|
-
}
|
|
18050
|
-
function edgeCondition(options) {
|
|
18051
|
-
const clauses = [];
|
|
18052
|
-
if (options.afterDays !== void 0) {
|
|
18053
|
-
clauses.push(`days_since(parent_step.completed_at) >= ${options.afterDays}`);
|
|
18054
|
-
}
|
|
18055
|
-
if (options.when) clauses.push(`(${options.when})`);
|
|
18056
|
-
if (!clauses.length) return void 0;
|
|
18057
|
-
return clauses.join(" && ");
|
|
18058
|
-
}
|
|
18059
|
-
var JourneyStepBuilder = class extends WorkspaceBuilderResource {
|
|
18060
|
-
// journey-decoupling Phase 7: a Journey step no longer links to a Workflow.
|
|
18061
|
-
// A step nudges via EventRule actions instead of running a Workflow, so the
|
|
18062
|
-
// builder no longer accepts or emits a workflow reference.
|
|
18063
|
-
constructor(name, journey, order = 0, description = "", options = {}) {
|
|
18064
|
-
super();
|
|
18065
|
-
this.name = name;
|
|
18066
|
-
this.journey = journey;
|
|
18067
|
-
this.order = order;
|
|
18068
|
-
this.description = description;
|
|
18069
|
-
this.assigneeId = options.assigneeId;
|
|
18070
|
-
this.posX = options.posX;
|
|
18071
|
-
this.posY = options.posY;
|
|
18072
|
-
}
|
|
18073
|
-
name;
|
|
18074
|
-
journey;
|
|
18075
|
-
order;
|
|
18076
|
-
description;
|
|
18077
|
-
connections = [];
|
|
18078
|
-
rules = [];
|
|
18079
|
-
assigneeId;
|
|
18080
|
-
posX;
|
|
18081
|
-
posY;
|
|
18082
|
-
/** Wire an edge to `child` and return the CHILD, so chains read linearly. */
|
|
18083
|
-
connectsTo(child, options = {}) {
|
|
18084
|
-
if (child === this) {
|
|
18085
|
-
throw new Error(`Journey step '${this.name}' cannot connect to itself`);
|
|
18086
|
-
}
|
|
18087
|
-
const abandonSeconds = options.abandonAfterDays !== void 0 ? options.abandonAfterDays * SECONDS_PER_DAY : options.timeoutSeconds;
|
|
18088
|
-
this.connections.push({
|
|
18089
|
-
parent: this,
|
|
18090
|
-
child,
|
|
18091
|
-
condition: edgeCondition(options),
|
|
18092
|
-
required: options.required ?? false,
|
|
18093
|
-
timeoutSeconds: abandonSeconds,
|
|
18094
|
-
order: options.order,
|
|
18095
|
-
filterId: options.filterId
|
|
18096
|
-
});
|
|
18097
|
-
return child;
|
|
18098
|
-
}
|
|
18099
|
-
/**
|
|
18100
|
-
* Attach a `JOURNEY_STEP_EXECUTE` action — what this step actually DOES
|
|
18101
|
-
* when a member reaches it. A step with no rules is inert: the member
|
|
18102
|
-
* lands on it, nothing is sent, and the journey moves on.
|
|
18103
|
-
*/
|
|
18104
|
-
onExecute(actionType, params = {}, options = {}) {
|
|
18105
|
-
this.rules.push({
|
|
18106
|
-
uuid: crypto.randomUUID(),
|
|
18107
|
-
actionType,
|
|
18108
|
-
actionParams: params,
|
|
18109
|
-
options
|
|
18110
|
-
});
|
|
18111
|
-
return this;
|
|
18112
|
-
}
|
|
18113
|
-
/**
|
|
18114
|
-
* Text the member. `phoneNumberUUID` is a workspace PhoneNumber with SMS
|
|
18115
|
-
* enabled. Pass `workflowUUID` to start an SMS workflow chat, or
|
|
18116
|
-
* `messageTemplate` for a one-off send.
|
|
18117
|
-
*/
|
|
18118
|
-
sendsSms(params, options = {}) {
|
|
18119
|
-
return this.onExecute("sms:send" /* SMS_SEND */, params, options);
|
|
18120
|
-
}
|
|
18121
|
-
/**
|
|
18122
|
-
* Call the member. Both the workspace PhoneNumber uuid (voice enabled) and
|
|
18123
|
-
* the Workflow uuid that drives the call are required.
|
|
18124
|
-
*/
|
|
18125
|
-
callsMember(params, options = {}) {
|
|
18126
|
-
return this.onExecute("phone:call" /* PHONE_CALL */, params, options);
|
|
18127
|
-
}
|
|
18128
|
-
/** Email the member from a workspace inbox. */
|
|
18129
|
-
sendsEmail(params, options = {}) {
|
|
18130
|
-
return this.onExecute("email:send" /* EMAIL_SEND */, params, options);
|
|
18131
|
-
}
|
|
18132
|
-
/** Label the member on arrival — pass label builders, not ids. */
|
|
18133
|
-
addsLabels(labels, options = {}) {
|
|
18134
|
-
return this.onExecute(
|
|
18135
|
-
"member:label" /* MEMBER_LABEL_ACTION */,
|
|
18136
|
-
{ addLabelIds: labels },
|
|
18137
|
-
options
|
|
18138
|
-
);
|
|
18139
|
-
}
|
|
18140
|
-
/** True once this step has something to do when a member reaches it. */
|
|
18141
|
-
get hasOutreach() {
|
|
18142
|
-
return this.rules.length > 0;
|
|
18143
|
-
}
|
|
18144
|
-
eventRuleInputs() {
|
|
18145
|
-
return this.rules.map((rule) => ({
|
|
18146
|
-
uuid: rule.uuid,
|
|
18147
|
-
eventType: "journey_step:execute" /* JOURNEY_STEP_EXECUTE */,
|
|
18148
|
-
actionType: rule.actionType,
|
|
18149
|
-
actionParams: resolveRefs(rule.actionParams),
|
|
18150
|
-
...rule.options.name ? { name: rule.options.name } : {},
|
|
18151
|
-
...rule.options.when ? { conditions: rule.options.when } : {},
|
|
18152
|
-
...rule.options.delaySeconds ? { delay: rule.options.delaySeconds } : {},
|
|
18153
|
-
active: rule.options.active ?? true
|
|
18154
|
-
}));
|
|
18155
|
-
}
|
|
18156
|
-
planLine() {
|
|
18157
|
-
const actions = this.rules.map((rule) => rule.actionType).join(" + ");
|
|
18158
|
-
return `Step: ${this.name}${actions ? ` (${actions})` : ""}`;
|
|
18159
|
-
}
|
|
18160
|
-
async apply(client) {
|
|
18161
|
-
if (this._existed) return;
|
|
18162
|
-
if (this.journey._id === void 0) return;
|
|
18163
|
-
const rules = this.eventRuleInputs();
|
|
18164
|
-
const payload = {
|
|
18165
|
-
name: this.name,
|
|
18166
|
-
description: this.description,
|
|
18167
|
-
order: this.order,
|
|
18168
|
-
...this.assigneeId !== void 0 ? { assigneeId: this.assigneeId } : {},
|
|
18169
|
-
...this.posX !== void 0 ? { posX: this.posX } : {},
|
|
18170
|
-
...this.posY !== void 0 ? { posY: this.posY } : {},
|
|
18171
|
-
// Saved atomically with the step, so a partial failure cannot leave
|
|
18172
|
-
// an inert step behind.
|
|
18173
|
-
...rules.length ? { eventRules: rules } : {}
|
|
18174
|
-
};
|
|
18175
|
-
const result = await client.createStep(this.journey._id, payload);
|
|
18176
|
-
this._id = result.id;
|
|
18177
|
-
this._uuid = result.uuid;
|
|
18178
|
-
this._created = true;
|
|
18179
|
-
}
|
|
18180
|
-
};
|
|
18181
|
-
var StartStepBuilder = class extends JourneyStepBuilder {
|
|
18182
|
-
get isImplicit() {
|
|
18183
|
-
return true;
|
|
18184
|
-
}
|
|
18185
|
-
planLine() {
|
|
18186
|
-
return "Step: Start (auto-created)";
|
|
18187
|
-
}
|
|
18188
|
-
async apply() {
|
|
18189
|
-
}
|
|
18190
|
-
};
|
|
18191
|
-
var LEGACY_JOURNEY_CREATION_GUIDANCE = "New legacy Journeys can no longer be created. Author a new Journey with ws.journeyV2() instead; ws.journey() only adopts and edits a legacy Journey that already exists in this workspace under the same name.";
|
|
18192
|
-
var LegacyJourneyCreationError = class extends Error {
|
|
18193
|
-
constructor() {
|
|
18194
|
-
super(LEGACY_JOURNEY_CREATION_GUIDANCE);
|
|
18195
|
-
this.name = "LegacyJourneyCreationError";
|
|
18196
|
-
}
|
|
18197
|
-
};
|
|
18198
|
-
var JourneyBuilder = class extends WorkspaceBuilderResource {
|
|
18199
|
-
constructor(name, options = {}) {
|
|
18200
|
-
super();
|
|
18201
|
-
this.name = name;
|
|
18202
|
-
this.description = options.description ?? "";
|
|
18203
|
-
this.start = new StartStepBuilder("Start", this, 0);
|
|
18204
|
-
this.steps.push(this.start);
|
|
18205
|
-
}
|
|
18206
|
-
name;
|
|
18207
|
-
description;
|
|
18208
|
-
steps = [];
|
|
18209
|
-
goals = [];
|
|
18210
|
-
/** The auto-created `Start` step — connect the first real step to it. */
|
|
18211
|
-
start;
|
|
18212
|
-
/** `parentId:childId` for every edge the server already has (see `adopt`). */
|
|
18213
|
-
existingEdges = /* @__PURE__ */ new Set();
|
|
18214
|
-
step(name, options = {}) {
|
|
18215
|
-
const step = new JourneyStepBuilder(
|
|
18216
|
-
name,
|
|
18217
|
-
this,
|
|
18218
|
-
options.order ?? this.steps.length,
|
|
18219
|
-
options.description ?? "",
|
|
18220
|
-
options
|
|
18221
|
-
);
|
|
18222
|
-
this.steps.push(step);
|
|
18223
|
-
return step;
|
|
18224
|
-
}
|
|
18225
|
-
/**
|
|
18226
|
-
* Declare a linear cadence: `Start → steps[0] → steps[1] → …`, each edge
|
|
18227
|
-
* carrying the matching entry from `spacing`.
|
|
18228
|
-
*
|
|
18229
|
-
* Chaining is not optional polish. A step created with no incoming edge is
|
|
18230
|
-
* a ROOT, and every root fires the moment a member enrols — a "three
|
|
18231
|
-
* follow-ups over four days" journey built without edges sends all three
|
|
18232
|
-
* at once.
|
|
18233
|
-
*/
|
|
18234
|
-
sequence(steps, spacing = []) {
|
|
18235
|
-
let parent = this.start;
|
|
18236
|
-
steps.forEach((step, index) => {
|
|
18237
|
-
parent = parent.connectsTo(step, spacing[index] ?? {});
|
|
18238
|
-
});
|
|
18239
|
-
return this;
|
|
18240
|
-
}
|
|
18241
|
-
goal(name, options = {}) {
|
|
18242
|
-
this.goals.push({
|
|
18243
|
-
name,
|
|
18244
|
-
description: options.description ?? "",
|
|
18245
|
-
step: options.step,
|
|
18246
|
-
completionCel: options.completionCel ?? options.completion_cel,
|
|
18247
|
-
value: options.value,
|
|
18248
|
-
order: options.order ?? this.goals.length
|
|
18249
|
-
});
|
|
18250
|
-
return this;
|
|
18251
|
-
}
|
|
18252
|
-
/**
|
|
18253
|
-
* Authoring problems that make a journey silently misbehave at runtime.
|
|
18254
|
-
* Reported at plan/preview time, before anything is written.
|
|
18255
|
-
*/
|
|
18256
|
-
validate() {
|
|
18257
|
-
const problems = [];
|
|
18258
|
-
const withParents = /* @__PURE__ */ new Set();
|
|
18259
|
-
for (const step of this.steps) {
|
|
18260
|
-
for (const connection of step.connections) withParents.add(connection.child);
|
|
18261
|
-
}
|
|
18262
|
-
for (const step of this.steps) {
|
|
18263
|
-
if (step === this.start) continue;
|
|
18264
|
-
if (!withParents.has(step)) {
|
|
18265
|
-
problems.push(
|
|
18266
|
-
`step '${step.name}' has no incoming edge \u2014 it is a root and fires for every member the moment they enrol. Connect it from journey.start or a prior step.`
|
|
18267
|
-
);
|
|
18268
|
-
}
|
|
18269
|
-
if (!step.hasOutreach) {
|
|
18270
|
-
problems.push(
|
|
18271
|
-
`step '${step.name}' has no JOURNEY_STEP_EXECUTE action \u2014 a member reaching it gets nothing. Add one with .sendsSms / .callsMember / .sendsEmail / .onExecute.`
|
|
18272
|
-
);
|
|
18273
|
-
}
|
|
18274
|
-
}
|
|
18275
|
-
if (!this.goals.length) {
|
|
18276
|
-
problems.push(`journey '${this.name}' has no goals \u2014 nothing measures whether it works.`);
|
|
18277
|
-
}
|
|
18278
|
-
return problems;
|
|
18279
|
-
}
|
|
18280
|
-
/**
|
|
18281
|
-
* Adopt an existing journey, its steps, and its EDGES, matched by name.
|
|
18282
|
-
*
|
|
18283
|
-
* Re-running a builder script is normal — a program is usually built in
|
|
18284
|
-
* stages as provisioning lands — and without adoption the second run would
|
|
18285
|
-
* create a duplicate journey and a duplicate set of steps beside the live
|
|
18286
|
-
* one, with members enrolled in neither.
|
|
18287
|
-
*
|
|
18288
|
-
* The edge set is recorded from the server's own `childConnections` rather
|
|
18289
|
-
* than inferred from "both steps exist". A first run that created the steps
|
|
18290
|
-
* and then failed before writing an edge leaves exactly that state, and
|
|
18291
|
-
* inferring would skip the missing edge on every subsequent run — leaving a
|
|
18292
|
-
* permanent root step that fires for every member at enrolment, silently.
|
|
18293
|
-
* The journey detail read eager-loads connections, so the real answer is
|
|
18294
|
-
* already in hand; there is no reason to guess.
|
|
18295
|
-
*/
|
|
18296
|
-
adopt(existing) {
|
|
18297
|
-
super.adopt(existing);
|
|
18298
|
-
const existingSteps = existing.steps ?? [];
|
|
18299
|
-
const byName = new Map(existingSteps.map((step) => [step.name, step]));
|
|
18300
|
-
const startStep = existingSteps.find((step) => step.id === existing.startStepId) ?? byName.get("Start");
|
|
18301
|
-
if (startStep) this.start.adopt(startStep);
|
|
18302
|
-
for (const step of this.steps) {
|
|
18303
|
-
if (step === this.start) continue;
|
|
18304
|
-
const match = byName.get(step.name);
|
|
18305
|
-
if (match) step.adopt(match);
|
|
18306
|
-
}
|
|
18307
|
-
for (const step of existingSteps) {
|
|
18308
|
-
for (const edge of step.childConnections ?? []) {
|
|
18309
|
-
this.existingEdges.add(edgeKey(edge.parentStepId, edge.childStepId));
|
|
18310
|
-
}
|
|
18311
|
-
}
|
|
18312
|
-
}
|
|
18313
|
-
/** True when the server already has this exact edge. */
|
|
18314
|
-
hasEdge(parent, child) {
|
|
18315
|
-
if (parent._id === void 0 || child._id === void 0) return false;
|
|
18316
|
-
return this.existingEdges.has(edgeKey(parent._id, child._id));
|
|
18317
|
-
}
|
|
18318
|
-
planLine() {
|
|
18319
|
-
const parts = [];
|
|
18320
|
-
const real = this.steps.filter((step) => step !== this.start);
|
|
18321
|
-
if (real.length) parts.push(`${real.length} steps`);
|
|
18322
|
-
if (this.goals.length) parts.push(`${this.goals.length} goals`);
|
|
18323
|
-
return `Journey: ${this.name}${parts.length ? ` (${parts.join(", ")})` : ""}`;
|
|
18324
|
-
}
|
|
18325
|
-
async apply(_client) {
|
|
18326
|
-
if (this._existed) return;
|
|
18327
|
-
throw new LegacyJourneyCreationError();
|
|
18328
|
-
}
|
|
18329
|
-
};
|
|
18330
|
-
function buildJourneyConnectionPayload(connection) {
|
|
18331
|
-
if (!connection.parent._uuid || !connection.child._uuid) return void 0;
|
|
18332
|
-
return {
|
|
18333
|
-
parentStepUuid: connection.parent._uuid,
|
|
18334
|
-
childStepUuid: connection.child._uuid,
|
|
18335
|
-
...connection.condition ? { celCondition: connection.condition } : {},
|
|
18336
|
-
...connection.required ? { required: true } : {},
|
|
18337
|
-
...connection.timeoutSeconds ? { timeoutSeconds: connection.timeoutSeconds } : {},
|
|
18338
|
-
...connection.order !== void 0 ? { order: connection.order } : {},
|
|
18339
|
-
...connection.filterId !== void 0 ? { filterId: connection.filterId } : {}
|
|
18340
|
-
};
|
|
18341
|
-
}
|
|
18342
|
-
function buildJourneyGoalPayload(goal) {
|
|
18343
|
-
return {
|
|
18344
|
-
name: goal.name,
|
|
18345
|
-
description: goal.description,
|
|
18346
|
-
order: goal.order,
|
|
18347
|
-
...goal.step?._uuid ? { goalStepUuid: goal.step._uuid } : {},
|
|
18348
|
-
...goal.completionCel ? { completionCel: goal.completionCel } : {},
|
|
18349
|
-
...goal.value !== void 0 ? { value: goal.value } : {}
|
|
18350
|
-
};
|
|
18351
|
-
}
|
|
18352
|
-
var V2RouteBuilder = class {
|
|
19424
|
+
var RouteBuilder = class {
|
|
18353
19425
|
constructor(name, options = {}) {
|
|
18354
19426
|
this.name = name;
|
|
18355
19427
|
this.options = options;
|
|
@@ -18367,21 +19439,21 @@ var V2RouteBuilder = class {
|
|
|
18367
19439
|
_ruleUuid;
|
|
18368
19440
|
/** Append a touch to this arm. Order is call order. */
|
|
18369
19441
|
touch(name, options = {}) {
|
|
18370
|
-
const touch = new
|
|
19442
|
+
const touch = new TouchBuilder(name, options);
|
|
18371
19443
|
this.touches.push(touch);
|
|
18372
19444
|
return touch;
|
|
18373
19445
|
}
|
|
18374
19446
|
};
|
|
18375
|
-
var
|
|
19447
|
+
var BranchBuilder = class {
|
|
18376
19448
|
routes = [];
|
|
18377
19449
|
/** Append a route. Declaration order is evaluation order. */
|
|
18378
19450
|
route(name, options = {}) {
|
|
18379
|
-
const route = new
|
|
19451
|
+
const route = new RouteBuilder(name, options);
|
|
18380
19452
|
this.routes.push(route);
|
|
18381
19453
|
return route;
|
|
18382
19454
|
}
|
|
18383
19455
|
};
|
|
18384
|
-
var
|
|
19456
|
+
var TouchBuilder = class {
|
|
18385
19457
|
/**
|
|
18386
19458
|
* The name is CANONICALIZED here, once, and everything downstream reads it:
|
|
18387
19459
|
* the `key:<name>` address, the payload, adoption's name lookup, and the
|
|
@@ -18417,11 +19489,11 @@ var V2TouchBuilder = class {
|
|
|
18417
19489
|
* since a touch owns exactly one ordered route set.
|
|
18418
19490
|
*/
|
|
18419
19491
|
branch() {
|
|
18420
|
-
this._branch ??= new
|
|
19492
|
+
this._branch ??= new BranchBuilder();
|
|
18421
19493
|
return this._branch;
|
|
18422
19494
|
}
|
|
18423
19495
|
/**
|
|
18424
|
-
* The request-local address this step answers to
|
|
19496
|
+
* The request-local address this step answers to .
|
|
18425
19497
|
*
|
|
18426
19498
|
* A saved step is addressed by its uuid; an unsaved one by a `key` derived
|
|
18427
19499
|
* from its authored name. Deriving from the NAME rather than minting a
|
|
@@ -18431,7 +19503,7 @@ var V2TouchBuilder = class {
|
|
|
18431
19503
|
* payload carries. Names are already asserted unique within a journey,
|
|
18432
19504
|
* which is what makes a name-derived key unique.
|
|
18433
19505
|
*
|
|
18434
|
-
* {@link
|
|
19506
|
+
* {@link EndingBuilder} INHERITS this rather than deriving its own: an
|
|
18435
19507
|
* Ending's anchor key and a touch's key land in one server-side namespace
|
|
18436
19508
|
* (`stepKey` is one field), so two derivations that drifted would produce
|
|
18437
19509
|
* two spellings of the same address and a goal would 404 on the one its
|
|
@@ -18503,7 +19575,7 @@ var V2TouchBuilder = class {
|
|
|
18503
19575
|
);
|
|
18504
19576
|
}
|
|
18505
19577
|
}
|
|
18506
|
-
/** Attach a `JOURNEY_STEP_EXECUTE` action.
|
|
19578
|
+
/** Attach a `JOURNEY_STEP_EXECUTE` action. */
|
|
18507
19579
|
onExecute(actionType, params = {}, options = {}) {
|
|
18508
19580
|
this.rules.push({
|
|
18509
19581
|
uuid: crypto.randomUUID(),
|
|
@@ -18538,7 +19610,7 @@ var V2TouchBuilder = class {
|
|
|
18538
19610
|
}));
|
|
18539
19611
|
}
|
|
18540
19612
|
};
|
|
18541
|
-
var
|
|
19613
|
+
var EndingBuilder = class extends TouchBuilder {
|
|
18542
19614
|
constructor(name, when, filterId) {
|
|
18543
19615
|
super(name);
|
|
18544
19616
|
this.when = when;
|
|
@@ -18561,7 +19633,7 @@ var V2EndingBuilder = class extends V2TouchBuilder {
|
|
|
18561
19633
|
/**
|
|
18562
19634
|
* An Ending cannot carry a branch, and saying so is the whole override.
|
|
18563
19635
|
*
|
|
18564
|
-
* `
|
|
19636
|
+
* `EndingBuilder extends TouchBuilder` for the identity and addressing
|
|
18565
19637
|
* an Ending's anchor shares with a touch, which also inherits every touch
|
|
18566
19638
|
* method — `branch()` among them. Inherited unchanged it would set
|
|
18567
19639
|
* `_branch` on an object nothing ever reads it from: the Ending serializer
|
|
@@ -18583,7 +19655,7 @@ var V2EndingBuilder = class extends V2TouchBuilder {
|
|
|
18583
19655
|
);
|
|
18584
19656
|
}
|
|
18585
19657
|
};
|
|
18586
|
-
var
|
|
19658
|
+
var JourneyBuilder = class extends WorkspaceBuilderResource {
|
|
18587
19659
|
constructor(name, options = {}) {
|
|
18588
19660
|
super();
|
|
18589
19661
|
this.name = name;
|
|
@@ -18602,18 +19674,22 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18602
19674
|
/** Server status at adoption — decides whether a re-run must pause first. */
|
|
18603
19675
|
_status;
|
|
18604
19676
|
/**
|
|
18605
|
-
*
|
|
18606
|
-
*
|
|
18607
|
-
*
|
|
18608
|
-
|
|
18609
|
-
|
|
19677
|
+
* Server execution model at adoption. Only `'v2'` accepts the whole-definition
|
|
19678
|
+
* write `apply()` makes; anything else is refused at adoption, and `apply()`
|
|
19679
|
+
* re-checks it before its first write.
|
|
19680
|
+
*/
|
|
19681
|
+
_executionModel;
|
|
19682
|
+
/**
|
|
19683
|
+
* A definition write is idempotent, so an ADOPTED journey is written too.
|
|
19684
|
+
* That is the whole point of adopting one: the PUT is a full, uuid-keyed
|
|
19685
|
+
* replacement, so re-running a script is how an author expresses an edit.
|
|
18610
19686
|
*/
|
|
18611
19687
|
get appliesWhenExisting() {
|
|
18612
19688
|
return true;
|
|
18613
19689
|
}
|
|
18614
19690
|
/** Append a touch to the timeline. Order is call order. */
|
|
18615
19691
|
touch(name, options = {}) {
|
|
18616
|
-
const touch = new
|
|
19692
|
+
const touch = new TouchBuilder(name, options);
|
|
18617
19693
|
this.touches.push(touch);
|
|
18618
19694
|
return touch;
|
|
18619
19695
|
}
|
|
@@ -18645,7 +19721,7 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18645
19721
|
}
|
|
18646
19722
|
/** Append an Ending. Call order is evaluation order. */
|
|
18647
19723
|
ending(name, options) {
|
|
18648
|
-
const ending = new
|
|
19724
|
+
const ending = new EndingBuilder(name, options.when, options.filterId);
|
|
18649
19725
|
this.endings.push(ending);
|
|
18650
19726
|
return ending;
|
|
18651
19727
|
}
|
|
@@ -18662,10 +19738,9 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18662
19738
|
/**
|
|
18663
19739
|
* Authoring problems the server's publish validator would reject.
|
|
18664
19740
|
*
|
|
18665
|
-
*
|
|
18666
|
-
*
|
|
18667
|
-
*
|
|
18668
|
-
* actions pass through, with or without a wait.
|
|
19741
|
+
* "No incoming edge" has no meaning in a timeline — position is the order —
|
|
19742
|
+
* so the checks here cover branch shape and Ending conditions. Touches
|
|
19743
|
+
* without actions pass through, with or without a wait.
|
|
18669
19744
|
*/
|
|
18670
19745
|
validate() {
|
|
18671
19746
|
const problems = [];
|
|
@@ -18758,7 +19833,7 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18758
19833
|
/**
|
|
18759
19834
|
* Every step a goal in THIS journey can anchor to, compared by object
|
|
18760
19835
|
* identity — touches AND Endings, which is why the element type names both
|
|
18761
|
-
* rather than leaning on `
|
|
19836
|
+
* rather than leaning on `EndingBuilder extends TouchBuilder` to smuggle
|
|
18762
19837
|
* Endings in under a touch-only annotation.
|
|
18763
19838
|
*
|
|
18764
19839
|
* A goal anchored to some other journey's builder is not a near miss the
|
|
@@ -18777,7 +19852,7 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18777
19852
|
if (routeCount) parts.push(`${routeCount} routes`);
|
|
18778
19853
|
if (this.endings.length) parts.push(`${this.endings.length} endings`);
|
|
18779
19854
|
if (this.goals.length) parts.push(`${this.goals.length} goals`);
|
|
18780
|
-
return `Journey
|
|
19855
|
+
return `Journey: ${this.name}${parts.length ? ` (${parts.join(", ")})` : ""}`;
|
|
18781
19856
|
}
|
|
18782
19857
|
/**
|
|
18783
19858
|
* Re-attach every stable child identity the server already holds.
|
|
@@ -18810,9 +19885,13 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18810
19885
|
* archives real member history.
|
|
18811
19886
|
*/
|
|
18812
19887
|
adopt(existing) {
|
|
19888
|
+
if (existing.executionModel !== "v2") {
|
|
19889
|
+
throw new UnadoptableJourneyError(this.name, existing.id);
|
|
19890
|
+
}
|
|
18813
19891
|
super.adopt(existing);
|
|
18814
19892
|
this._expectedUpdatedAt = existing.updatedAt;
|
|
18815
19893
|
this._status = existing.status;
|
|
19894
|
+
this._executionModel = existing.executionModel;
|
|
18816
19895
|
this.assertUnambiguousNames();
|
|
18817
19896
|
this.adoptChildIdentities(existing);
|
|
18818
19897
|
}
|
|
@@ -18912,10 +19991,10 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18912
19991
|
);
|
|
18913
19992
|
return {
|
|
18914
19993
|
expectedUpdatedAt: this._expectedUpdatedAt ?? "",
|
|
18915
|
-
touches: this.touches.map((touch) =>
|
|
19994
|
+
touches: this.touches.map((touch) => serializeTouch(touch, positions)),
|
|
18916
19995
|
endings: this.endings.map((ending) => ({
|
|
18917
19996
|
...ending._ruleUuid ? { uuid: ending._ruleUuid } : {},
|
|
18918
|
-
// Anchor address, exactly as `
|
|
19997
|
+
// Anchor address, exactly as `serializeTouch` sends a touch's:
|
|
18919
19998
|
// the saved anchor's uuid, or the request-local `key` a goal in
|
|
18920
19999
|
// this same save names it by. Both come from `_address`, so the
|
|
18921
20000
|
// Ending and the goal cannot be sent under two spellings.
|
|
@@ -18937,7 +20016,7 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18937
20016
|
...goal._uuid ? { uuid: goal._uuid } : {},
|
|
18938
20017
|
name: goal.name,
|
|
18939
20018
|
...goal.description ? { description: goal.description } : {},
|
|
18940
|
-
...
|
|
20019
|
+
...serializeGoalAnchor(goal.step, index, owned),
|
|
18941
20020
|
...goal.completionCel ? { completionCel: goal.completionCel } : {},
|
|
18942
20021
|
...goal.value !== void 0 ? { value: goal.value } : {}
|
|
18943
20022
|
}))
|
|
@@ -18947,17 +20026,17 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18947
20026
|
const problems = this.preflight();
|
|
18948
20027
|
if (problems.length) {
|
|
18949
20028
|
throw new Error(
|
|
18950
|
-
`Journey
|
|
20029
|
+
`Journey has ${problems.length} problem(s) and was not applied:
|
|
18951
20030
|
` + problems.map((problem) => ` - ${problem}`).join("\n")
|
|
18952
20031
|
);
|
|
18953
20032
|
}
|
|
20033
|
+
if (this._existed && this._executionModel !== "v2") {
|
|
20034
|
+
throw new UnadoptableJourneyError(this.name, this._id);
|
|
20035
|
+
}
|
|
18954
20036
|
if (!this._existed) {
|
|
18955
20037
|
const created = await client.createJourney({
|
|
18956
20038
|
name: this.name,
|
|
18957
|
-
description: this.description
|
|
18958
|
-
// Explicit, always: the v2 builder states its engine rather than
|
|
18959
|
-
// relying on whatever the server's omitted-value default is.
|
|
18960
|
-
executionModel: "v2"
|
|
20039
|
+
description: this.description
|
|
18961
20040
|
});
|
|
18962
20041
|
this._id = created.id;
|
|
18963
20042
|
this._uuid = created.uuid;
|
|
@@ -18967,7 +20046,7 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18967
20046
|
const paused = await client.updateJourney(this.id, { status: "paused" });
|
|
18968
20047
|
this._expectedUpdatedAt = paused.updatedAt;
|
|
18969
20048
|
}
|
|
18970
|
-
const saved = await client.
|
|
20049
|
+
const saved = await client.putJourneyDefinition(this.id, this.definitionPayload());
|
|
18971
20050
|
this._expectedUpdatedAt = saved.updatedAt;
|
|
18972
20051
|
this.adoptWrittenUuids(saved);
|
|
18973
20052
|
if (this.activate) {
|
|
@@ -19003,23 +20082,35 @@ function indexStoredByName(rows, referenced, owner, kind) {
|
|
|
19003
20082
|
}
|
|
19004
20083
|
return byName;
|
|
19005
20084
|
}
|
|
20085
|
+
var UnadoptableJourneyError = class extends Error {
|
|
20086
|
+
journeyId;
|
|
20087
|
+
journeyName;
|
|
20088
|
+
constructor(name, id) {
|
|
20089
|
+
super(
|
|
20090
|
+
`Journey ${String(id)} ('${name}') is a Journey the builder cannot adopt: the script replaces a Journey's whole definition on save, and this Journey was built with the older Journey editor, which does not accept that write. Nothing was changed. Rebuild it as a current Journey, or rename the journey in the script so the builder creates a new one.`
|
|
20091
|
+
);
|
|
20092
|
+
this.name = "UnadoptableJourneyError";
|
|
20093
|
+
this.journeyId = id;
|
|
20094
|
+
this.journeyName = name;
|
|
20095
|
+
}
|
|
20096
|
+
};
|
|
19006
20097
|
function assertUniqueNames(names, owner, kind) {
|
|
19007
20098
|
const seen = /* @__PURE__ */ new Set();
|
|
19008
20099
|
for (const name of names) {
|
|
19009
20100
|
if (seen.has(name)) {
|
|
19010
20101
|
throw new Error(
|
|
19011
|
-
`${owner} has two ${kind}s named '${name}'. The
|
|
20102
|
+
`${owner} has two ${kind}s named '${name}'. The builder adopts an existing journey by name, so duplicates would attach a builder to either one at random \u2014 archiving the other's history on the next save. Rename one.`
|
|
19012
20103
|
);
|
|
19013
20104
|
}
|
|
19014
20105
|
seen.add(name);
|
|
19015
20106
|
}
|
|
19016
20107
|
}
|
|
19017
|
-
function
|
|
20108
|
+
function serializeTouch(touch, positions) {
|
|
19018
20109
|
return {
|
|
19019
20110
|
...touch._uuid ? { uuid: touch._uuid } : { key: touch._address },
|
|
19020
20111
|
name: touch.name,
|
|
19021
20112
|
...touch.options.description ? { description: touch.options.description } : {},
|
|
19022
|
-
...touch.options.wait ? { wait:
|
|
20113
|
+
...touch.options.wait ? { wait: buildWait(touch.options.wait, positions.get(touch)) } : {},
|
|
19023
20114
|
eventRules: touch.eventRuleInputs(),
|
|
19024
20115
|
...touch._branch ? {
|
|
19025
20116
|
branch: {
|
|
@@ -19033,14 +20124,14 @@ function serializeV2Touch(touch, positions) {
|
|
|
19033
20124
|
// same thing as omitted.
|
|
19034
20125
|
...route.options.when ? { celCondition: route.options.when } : {},
|
|
19035
20126
|
...route.options.filterId !== void 0 ? { filterId: route.options.filterId } : {},
|
|
19036
|
-
touches: route.touches.map((armTouch) =>
|
|
20127
|
+
touches: route.touches.map((armTouch) => serializeTouch(armTouch, positions)),
|
|
19037
20128
|
...route.options.continueAt ? { continueAt: route.options.continueAt._address } : {}
|
|
19038
20129
|
}))
|
|
19039
20130
|
}
|
|
19040
20131
|
} : {}
|
|
19041
20132
|
};
|
|
19042
20133
|
}
|
|
19043
|
-
function
|
|
20134
|
+
function serializeGoalAnchor(step, goalIndex, owned) {
|
|
19044
20135
|
if (!step) return {};
|
|
19045
20136
|
if (!owned.has(step)) throw new Error(foreignAnchorProblem(goalIndex, anchorKind(step)));
|
|
19046
20137
|
if (step._uuid) return { stepUuid: step._uuid };
|
|
@@ -19051,7 +20142,7 @@ function foreignAnchorProblem(goalIndex, kind) {
|
|
|
19051
20142
|
}
|
|
19052
20143
|
function waitExclusivityProblem(touchIndex) {
|
|
19053
20144
|
const where = touchIndex === void 0 ? "this touch" : `touch at index ${touchIndex}`;
|
|
19054
|
-
return `${where} sets both afterDays and when; fold the day count into \`when\`. A
|
|
20145
|
+
return `${where} sets both afterDays and when; fold the day count into \`when\`. A wait is either a whole-day count or Advanced CEL, not both.`;
|
|
19055
20146
|
}
|
|
19056
20147
|
function sharedStepNameProblem(count) {
|
|
19057
20148
|
return `${count} step name(s) are claimed more than once. Touches and Endings are one namespace: until a save mints their uuids they address themselves by name and the definition resolves those keys through one field, and once saved they are stored steps the next run cannot tell apart. Names are canonical (trimmed), as the API stores them. Rename one.`;
|
|
@@ -19060,9 +20151,9 @@ function namelessStepProblem(count) {
|
|
|
19060
20151
|
return `${count} step(s) have an empty name once trimmed. A step's name is its request-local address until a save mints its uuid, so a nameless one has nothing to be addressed by, and the API refuses it. Name them.`;
|
|
19061
20152
|
}
|
|
19062
20153
|
function anchorKind(step) {
|
|
19063
|
-
return step instanceof
|
|
20154
|
+
return step instanceof EndingBuilder ? "Ending" : "touch";
|
|
19064
20155
|
}
|
|
19065
|
-
function
|
|
20156
|
+
function buildWait(wait, touchIndex) {
|
|
19066
20157
|
if (wait.afterDays !== void 0 && wait.when) {
|
|
19067
20158
|
throw new Error(waitExclusivityProblem(touchIndex));
|
|
19068
20159
|
}
|
|
@@ -19333,11 +20424,9 @@ var PHASES = /* @__PURE__ */ new Map([
|
|
|
19333
20424
|
[MemberFilterBuilder, 5],
|
|
19334
20425
|
[RoutineBuilder, 6],
|
|
19335
20426
|
[NotificationRuleBuilder, 6],
|
|
19336
|
-
|
|
19337
|
-
//
|
|
19338
|
-
|
|
19339
|
-
[JourneyV2Builder, 7],
|
|
19340
|
-
[JourneyStepBuilder, 8]
|
|
20427
|
+
// A Journey is written whole by its own apply(), so it has no child
|
|
20428
|
+
// resources to sequence after it.
|
|
20429
|
+
[JourneyBuilder, 7]
|
|
19341
20430
|
]);
|
|
19342
20431
|
var LIST_PAGE_SIZE = 100;
|
|
19343
20432
|
async function collectPages(fetchPage) {
|
|
@@ -19390,32 +20479,17 @@ var WorkspaceBuilder = class {
|
|
|
19390
20479
|
return label;
|
|
19391
20480
|
}
|
|
19392
20481
|
/**
|
|
19393
|
-
*
|
|
20482
|
+
* A Journey timeline: ordered touches, structured waits, exclusive branches
|
|
20483
|
+
* and ordered Endings, written through the atomic definition endpoint.
|
|
19394
20484
|
*
|
|
19395
|
-
*
|
|
19396
|
-
*
|
|
19397
|
-
* refuses before any write with guidance to use {@link journeyV2}. The
|
|
19398
|
-
* refusal happens at apply, not here, because adoption is resolved then.
|
|
20485
|
+
* The Journey is adopted by exact name when the workspace already holds one;
|
|
20486
|
+
* the write then replaces its definition whole.
|
|
19399
20487
|
*/
|
|
19400
20488
|
journey(name, options = {}) {
|
|
19401
20489
|
const journey = new JourneyBuilder(name, options);
|
|
19402
20490
|
this.resources.push(journey);
|
|
19403
20491
|
return journey;
|
|
19404
20492
|
}
|
|
19405
|
-
/**
|
|
19406
|
-
* A Journey v2 timeline (plan §3.8): ordered touches, structured waits, and
|
|
19407
|
-
* ordered Endings, written through the atomic definition endpoint.
|
|
19408
|
-
*
|
|
19409
|
-
* A separate factory rather than an option on {@link journey}, because the
|
|
19410
|
-
* two return different builders with different vocabularies — `.touch()`
|
|
19411
|
-
* and `.ending()` versus `.step()` and `.connectsTo()`. This is the builder
|
|
19412
|
-
* that authors NEW Journeys; {@link journey} only edits existing legacy ones.
|
|
19413
|
-
*/
|
|
19414
|
-
journeyV2(name, options = {}) {
|
|
19415
|
-
const journey = new JourneyV2Builder(name, options);
|
|
19416
|
-
this.resources.push(journey);
|
|
19417
|
-
return journey;
|
|
19418
|
-
}
|
|
19419
20493
|
agent(name, options = {}) {
|
|
19420
20494
|
const agent = new AgentBuilder(name, options);
|
|
19421
20495
|
this.resources.push(agent);
|
|
@@ -19488,15 +20562,12 @@ ${"=".repeat(50)}`);
|
|
|
19488
20562
|
`);
|
|
19489
20563
|
}
|
|
19490
20564
|
/**
|
|
19491
|
-
* Print journey authoring problems that only bite at runtime — a
|
|
19492
|
-
* no
|
|
19493
|
-
* action does nothing at all. Both look fine in the editor, so they are
|
|
20565
|
+
* Print journey authoring problems that only bite at runtime — a touch with
|
|
20566
|
+
* no action does nothing at all. It looks fine in the editor, so it is
|
|
19494
20567
|
* surfaced before the write rather than discovered from a member's phone.
|
|
19495
20568
|
*/
|
|
19496
20569
|
reportJourneyWarnings() {
|
|
19497
|
-
const problems = this.resources.filter(
|
|
19498
|
-
(resource) => resource instanceof JourneyBuilder || resource instanceof JourneyV2Builder
|
|
19499
|
-
).flatMap((journey) => journey.validate());
|
|
20570
|
+
const problems = this.resources.filter((resource) => resource instanceof JourneyBuilder).flatMap((journey) => journey.validate());
|
|
19500
20571
|
if (!problems.length) return;
|
|
19501
20572
|
writeLine("\n Journey warnings:");
|
|
19502
20573
|
for (const problem of problems) writeLine(` ! ${problem}`);
|
|
@@ -19543,7 +20614,7 @@ ${"=".repeat(50)}`);
|
|
|
19543
20614
|
}
|
|
19544
20615
|
}
|
|
19545
20616
|
for (const resource of this.resources) {
|
|
19546
|
-
if (resource instanceof
|
|
20617
|
+
if (resource instanceof JourneyBuilder) problems.push(...resource.preflight());
|
|
19547
20618
|
}
|
|
19548
20619
|
return [...new Set(problems)];
|
|
19549
20620
|
}
|
|
@@ -19592,8 +20663,6 @@ ${"=".repeat(50)}`);
|
|
|
19592
20663
|
}
|
|
19593
20664
|
await this.applyTransitions();
|
|
19594
20665
|
await this.applyEventRules(resources);
|
|
19595
|
-
await this.applyJourneyConnections(resources);
|
|
19596
|
-
await this.applyJourneyGoals(resources);
|
|
19597
20666
|
const count = Object.values(summary).reduce((total, ids) => total + ids.length, 0);
|
|
19598
20667
|
writeLine(`
|
|
19599
20668
|
Done! Created ${count} resources.`);
|
|
@@ -19602,7 +20671,7 @@ Done! Created ${count} resources.`);
|
|
|
19602
20671
|
async resolveExisting(resources) {
|
|
19603
20672
|
assertUniqueJourneyNames(
|
|
19604
20673
|
resources.filter(
|
|
19605
|
-
(resource) => resource instanceof JourneyBuilder
|
|
20674
|
+
(resource) => resource instanceof JourneyBuilder
|
|
19606
20675
|
)
|
|
19607
20676
|
);
|
|
19608
20677
|
const formSlugs = new Map(
|
|
@@ -19643,9 +20712,7 @@ Done! Created ${count} resources.`);
|
|
|
19643
20712
|
}
|
|
19644
20713
|
}
|
|
19645
20714
|
const journeyNames = new Map(
|
|
19646
|
-
resources.filter(
|
|
19647
|
-
(resource) => resource instanceof JourneyBuilder || resource instanceof JourneyV2Builder
|
|
19648
|
-
).map((resource) => [resource.name, resource])
|
|
20715
|
+
resources.filter((resource) => resource instanceof JourneyBuilder).map((resource) => [resource.name, resource])
|
|
19649
20716
|
);
|
|
19650
20717
|
if (journeyNames.size) {
|
|
19651
20718
|
const pageSize = 500;
|
|
@@ -19668,8 +20735,7 @@ Done! Created ${count} resources.`);
|
|
|
19668
20735
|
}
|
|
19669
20736
|
const existing = matches[0];
|
|
19670
20737
|
const builder = journeyNames.get(name);
|
|
19671
|
-
|
|
19672
|
-
builder.adopt(detail);
|
|
20738
|
+
builder.adopt(await this.client.getJourneyAuthoring(existing.id));
|
|
19673
20739
|
}
|
|
19674
20740
|
}
|
|
19675
20741
|
const agentNames = new Map(
|
|
@@ -19724,6 +20790,7 @@ Done! Created ${count} resources.`);
|
|
|
19724
20790
|
if (!identified.length) return;
|
|
19725
20791
|
const byKey = new Map(identified);
|
|
19726
20792
|
for (const existing of await this.client.getNotificationRules()) {
|
|
20793
|
+
if (existing.memberId == null) continue;
|
|
19727
20794
|
const key = notificationRuleKey(
|
|
19728
20795
|
existing.noticeType,
|
|
19729
20796
|
existing.memberId,
|
|
@@ -19779,8 +20846,6 @@ Done! Created ${count} resources.`);
|
|
|
19779
20846
|
const start = resource.startTask;
|
|
19780
20847
|
const tasks = start === void 0 ? resource.tasks : [start, ...resource.tasks.filter((task) => task !== start)];
|
|
19781
20848
|
all.push(...tasks);
|
|
19782
|
-
} else if (resource instanceof JourneyBuilder) {
|
|
19783
|
-
all.push(...resource.steps);
|
|
19784
20849
|
}
|
|
19785
20850
|
}
|
|
19786
20851
|
return all.sort((a, b) => phaseFor(a) - phaseFor(b));
|
|
@@ -19802,17 +20867,7 @@ Done! Created ${count} resources.`);
|
|
|
19802
20867
|
} else if (resource instanceof RoutineBuilder) {
|
|
19803
20868
|
for (const rule of resource.rules)
|
|
19804
20869
|
lines.push(`${rule.actionType} rule on '${resource.name}'`);
|
|
19805
|
-
} else if (resource instanceof JourneyStepBuilder) {
|
|
19806
|
-
for (const connection of resource.connections) {
|
|
19807
|
-
const guard = connection.condition ? ` [${connection.condition}]` : "";
|
|
19808
|
-
lines.push(`${connection.parent.name} -> ${connection.child.name}${guard}`);
|
|
19809
|
-
}
|
|
19810
|
-
for (const rule of resource.rules) {
|
|
19811
|
-
lines.push(`${rule.actionType} on step '${resource.name}'`);
|
|
19812
|
-
}
|
|
19813
20870
|
} else if (resource instanceof JourneyBuilder) {
|
|
19814
|
-
for (const goal of resource.goals) lines.push(`Goal: ${goal.name}`);
|
|
19815
|
-
} else if (resource instanceof JourneyV2Builder) {
|
|
19816
20871
|
resource.touches.forEach((touch, index) => {
|
|
19817
20872
|
lines.push(`${index + 1}. ${touch.name}`);
|
|
19818
20873
|
});
|
|
@@ -19926,37 +20981,6 @@ Done! Created ${count} resources.`);
|
|
|
19926
20981
|
});
|
|
19927
20982
|
return candidates.find((candidate) => eventRulesMatch(candidate, payload));
|
|
19928
20983
|
}
|
|
19929
|
-
async applyJourneyConnections(resources) {
|
|
19930
|
-
for (const resource of resources) {
|
|
19931
|
-
if (!(resource instanceof JourneyStepBuilder)) continue;
|
|
19932
|
-
for (const connection of resource.connections) {
|
|
19933
|
-
if (resource.journey._id === void 0) continue;
|
|
19934
|
-
if (resource.journey.hasEdge(connection.parent, connection.child)) {
|
|
19935
|
-
writeLine(` Exists: ${connection.parent.name} -> ${connection.child.name}`);
|
|
19936
|
-
continue;
|
|
19937
|
-
}
|
|
19938
|
-
const payload = buildJourneyConnectionPayload(connection);
|
|
19939
|
-
if (!payload) continue;
|
|
19940
|
-
await this.client.createConnection(resource.journey._id, payload);
|
|
19941
|
-
writeLine(` Wired: ${connection.parent.name} -> ${connection.child.name}`);
|
|
19942
|
-
}
|
|
19943
|
-
}
|
|
19944
|
-
}
|
|
19945
|
-
async applyJourneyGoals(resources) {
|
|
19946
|
-
for (const resource of resources) {
|
|
19947
|
-
if (!(resource instanceof JourneyBuilder) || resource._id === void 0) continue;
|
|
19948
|
-
if (resource._existed) {
|
|
19949
|
-
for (const goal of resource.goals) {
|
|
19950
|
-
writeLine(` Skipped (journey already exists): Goal: ${goal.name}`);
|
|
19951
|
-
}
|
|
19952
|
-
continue;
|
|
19953
|
-
}
|
|
19954
|
-
for (const goal of resource.goals) {
|
|
19955
|
-
await this.client.createGoal(resource._id, buildJourneyGoalPayload(goal));
|
|
19956
|
-
writeLine(` Created goal: ${goal.name}`);
|
|
19957
|
-
}
|
|
19958
|
-
}
|
|
19959
|
-
}
|
|
19960
20984
|
};
|
|
19961
20985
|
var ApplyError = class extends Error {
|
|
19962
20986
|
createdSoFar;
|
|
@@ -19981,7 +21005,7 @@ function assertUniqueJourneyNames(journeys) {
|
|
|
19981
21005
|
for (const journey of journeys) {
|
|
19982
21006
|
if (seen.has(journey.name)) {
|
|
19983
21007
|
throw new Error(
|
|
19984
|
-
`This script declares two journeys named '${journey.name}'. A journey is adopted and re-applied by name, so only one of them could ever be written \u2014 and
|
|
21008
|
+
`This script declares two journeys named '${journey.name}'. A journey is adopted and re-applied by name, so only one of them could ever be written \u2014 and an apply replaces the journey it adopted whole. Rename one.`
|
|
19985
21009
|
);
|
|
19986
21010
|
}
|
|
19987
21011
|
seen.add(journey.name);
|
|
@@ -19995,10 +21019,7 @@ function resourceKey(resource) {
|
|
|
19995
21019
|
if (resource instanceof MemberFilterBuilder) return "memberFilters";
|
|
19996
21020
|
if (resource instanceof RoutineBuilder) return "routines";
|
|
19997
21021
|
if (resource instanceof NotificationRuleBuilder) return "notificationRules";
|
|
19998
|
-
if (resource instanceof JourneyBuilder
|
|
19999
|
-
return "journeys";
|
|
20000
|
-
}
|
|
20001
|
-
if (resource instanceof JourneyStepBuilder) return "journeySteps";
|
|
21022
|
+
if (resource instanceof JourneyBuilder) return "journeys";
|
|
20002
21023
|
if (resource instanceof AgentBuilder) return "agents";
|
|
20003
21024
|
return "resources";
|
|
20004
21025
|
}
|
|
@@ -20108,9 +21129,7 @@ function writeScopeForResource(resource) {
|
|
|
20108
21129
|
if (resource instanceof RoutineBuilder || resource instanceof NotificationRuleBuilder) {
|
|
20109
21130
|
return "automations:admin";
|
|
20110
21131
|
}
|
|
20111
|
-
if (resource instanceof JourneyBuilder
|
|
20112
|
-
return "journeys:write";
|
|
20113
|
-
}
|
|
21132
|
+
if (resource instanceof JourneyBuilder) return "journeys:write";
|
|
20114
21133
|
return null;
|
|
20115
21134
|
}
|
|
20116
21135
|
function scopeRetryHint(resource) {
|
|
@@ -20150,9 +21169,6 @@ function summarizeError(err) {
|
|
|
20150
21169
|
}
|
|
20151
21170
|
return msg.length > 240 ? `${msg.slice(0, 237)}...` : msg;
|
|
20152
21171
|
}
|
|
20153
|
-
if (err instanceof LegacyJourneyCreationError) {
|
|
20154
|
-
return LEGACY_JOURNEY_CREATION_GUIDANCE;
|
|
20155
|
-
}
|
|
20156
21172
|
if (err instanceof Error) {
|
|
20157
21173
|
return err.name || "Error";
|
|
20158
21174
|
}
|
|
@@ -20480,17 +21496,21 @@ var AbilityConfigIssueCode = {
|
|
|
20480
21496
|
feature_disabled: "feature_disabled",
|
|
20481
21497
|
missing_connection: "missing_connection",
|
|
20482
21498
|
external_drift: "external_drift",
|
|
20483
|
-
no_qualification_scenarios: "no_qualification_scenarios"
|
|
21499
|
+
no_qualification_scenarios: "no_qualification_scenarios",
|
|
21500
|
+
check_truncated: "check_truncated"
|
|
20484
21501
|
};
|
|
20485
21502
|
var AbilityConfigIssueSeverity = {
|
|
20486
21503
|
warning: "warning",
|
|
20487
21504
|
error: "error"
|
|
20488
21505
|
};
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
21506
|
+
var AiDisclosure = {
|
|
21507
|
+
when_asked: "when_asked",
|
|
21508
|
+
at_opening: "at_opening"
|
|
21509
|
+
};
|
|
21510
|
+
var ResponseLength = {
|
|
21511
|
+
brief: "brief",
|
|
21512
|
+
short: "short",
|
|
21513
|
+
detailed: "detailed"
|
|
20494
21514
|
};
|
|
20495
21515
|
|
|
20496
21516
|
// src/types/widget-domain-types.ts
|
|
@@ -20845,6 +21865,7 @@ var RefResolutionStatus = {
|
|
|
20845
21865
|
|
|
20846
21866
|
// src/types/generated/event_type.ts
|
|
20847
21867
|
var ActivityCapability = {
|
|
21868
|
+
"apps:read": "apps:read",
|
|
20848
21869
|
"assignments:read": "assignments:read",
|
|
20849
21870
|
"chats:read": "chats:read",
|
|
20850
21871
|
"journeys:read": "journeys:read",
|
|
@@ -20876,6 +21897,7 @@ var ActivityEventType = {
|
|
|
20876
21897
|
chatawaiting_human: "chat.awaiting_human",
|
|
20877
21898
|
chathuman_replied: "chat.human_replied",
|
|
20878
21899
|
chatcall_ended: "chat.call_ended",
|
|
21900
|
+
chatauto_replied: "chat.auto_replied",
|
|
20879
21901
|
chatsummary: "chat.summary",
|
|
20880
21902
|
messagesent: "message.sent",
|
|
20881
21903
|
messagesend_failed: "message.send_failed",
|
|
@@ -20910,8 +21932,11 @@ var ActivityEventType = {
|
|
|
20910
21932
|
domainlinked: "domain.linked",
|
|
20911
21933
|
domainverified: "domain.verified",
|
|
20912
21934
|
configupdated: "config.updated",
|
|
21935
|
+
connectionauthorization_lost: "connection.authorization_lost",
|
|
21936
|
+
connectionauthorization_restored: "connection.authorization_restored",
|
|
20913
21937
|
data_recordcreated: "data_record.created",
|
|
20914
|
-
data_recordupdated: "data_record.updated"
|
|
21938
|
+
data_recordupdated: "data_record.updated",
|
|
21939
|
+
notificationdelivered: "notification.delivered"
|
|
20915
21940
|
};
|
|
20916
21941
|
var ActivityVisibility = {
|
|
20917
21942
|
workspace: "workspace",
|
|
@@ -21873,6 +22898,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
21873
22898
|
ActorKind,
|
|
21874
22899
|
AgentBuilder,
|
|
21875
22900
|
AiConnectorPolicy,
|
|
22901
|
+
AiDisclosure,
|
|
21876
22902
|
ApiError,
|
|
21877
22903
|
ApplyError,
|
|
21878
22904
|
AppsApi,
|
|
@@ -21883,6 +22909,9 @@ function pathDraftToStorage(draft, original) {
|
|
|
21883
22909
|
BuildersApi,
|
|
21884
22910
|
BulkMemberResultStatus,
|
|
21885
22911
|
BundleGrantRequestGranteeType,
|
|
22912
|
+
BundlePublishItemChange,
|
|
22913
|
+
BundlePublishItemReason,
|
|
22914
|
+
BundlePublishItemStatus,
|
|
21886
22915
|
BundlesApi,
|
|
21887
22916
|
BusinessIndustry,
|
|
21888
22917
|
BusinessType,
|
|
@@ -21899,6 +22928,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
21899
22928
|
ChannelMessageDirection,
|
|
21900
22929
|
ChannelMessageSource,
|
|
21901
22930
|
ChannelMessagesUnavailableReason,
|
|
22931
|
+
ChatApi,
|
|
21902
22932
|
ChatInteractionController,
|
|
21903
22933
|
ChatMuteReason,
|
|
21904
22934
|
ConsentMethod,
|
|
@@ -21947,11 +22977,11 @@ function pathDraftToStorage(draft, original) {
|
|
|
21947
22977
|
InboundRefusal,
|
|
21948
22978
|
IndexStatus,
|
|
21949
22979
|
InstallationItemChangeChange,
|
|
22980
|
+
InstallationPhoneNumberNoticeCode,
|
|
21950
22981
|
InstallationsApi,
|
|
21951
22982
|
InvitationStatus,
|
|
21952
22983
|
JobPosition,
|
|
21953
22984
|
JourneyBuilder,
|
|
21954
|
-
JourneyStepBuilder,
|
|
21955
22985
|
MASKED_SECRET_SENTINEL,
|
|
21956
22986
|
MAX_EMAIL_SEND_RECIPIENTS,
|
|
21957
22987
|
MEMBER_RELATIONSHIP_KINDS,
|
|
@@ -21972,12 +23002,17 @@ function pathDraftToStorage(draft, original) {
|
|
|
21972
23002
|
ModelProvider,
|
|
21973
23003
|
ModelType,
|
|
21974
23004
|
NO_ASSISTANT_PARTICIPANT_CHAT_TYPES,
|
|
23005
|
+
NotificationMarkerAction,
|
|
21975
23006
|
NotificationRuleBuilder,
|
|
21976
23007
|
OIDCAdminConfigViewProviderType,
|
|
21977
23008
|
ORG_ONLY_RESOURCES,
|
|
23009
|
+
OpenItemKind,
|
|
21978
23010
|
OrgApi,
|
|
23011
|
+
OrgApiKeyLimitUnconfirmedError,
|
|
21979
23012
|
OrgFeature,
|
|
23013
|
+
OrgWebhookDeliveryHealthState,
|
|
21980
23014
|
OrgWebhookDeliveryStatus,
|
|
23015
|
+
OrgWebhookScopeUnconfirmedError,
|
|
21981
23016
|
PERMISSION_ADMIN,
|
|
21982
23017
|
PERMISSION_CREATE,
|
|
21983
23018
|
PERMISSION_DELETE,
|
|
@@ -21991,14 +23026,17 @@ function pathDraftToStorage(draft, original) {
|
|
|
21991
23026
|
PIDS_DISPOSITIONS,
|
|
21992
23027
|
PIDS_SOURCES,
|
|
21993
23028
|
POSITIVE_RATING_THRESHOLD,
|
|
23029
|
+
PROPOSED_MESSAGE_BODY_MAX_LENGTH,
|
|
23030
|
+
PROPOSED_MESSAGE_SETTLED_TOOL_NAME,
|
|
23031
|
+
PROPOSED_MESSAGE_SETTLEMENT_STATUSES,
|
|
23032
|
+
PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH,
|
|
23033
|
+
PROPOSED_MESSAGE_TOOL_NAMES,
|
|
21994
23034
|
PhoneRunRefusal,
|
|
21995
23035
|
ProductType,
|
|
21996
23036
|
PromoCodeStatus,
|
|
21997
23037
|
QUERY_VALUELESS_OPS,
|
|
21998
23038
|
QueriesApi,
|
|
21999
23039
|
REALTIME_MODEL_CUSTOM,
|
|
22000
|
-
REALTIME_MODEL_GEMINI,
|
|
22001
|
-
REALTIME_MODEL_GEMINI_VERTEX,
|
|
22002
23040
|
REALTIME_MODEL_OPENAI,
|
|
22003
23041
|
REALTIME_MODEL_OPENAI_2,
|
|
22004
23042
|
REALTIME_MODEL_OPENAI_MINI,
|
|
@@ -22012,6 +23050,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
22012
23050
|
RelationshipCardinality,
|
|
22013
23051
|
Resource,
|
|
22014
23052
|
ResourceWorkflowsApi,
|
|
23053
|
+
ResponseLength,
|
|
22015
23054
|
RevisionHistorySegment,
|
|
22016
23055
|
RoutineBuilder,
|
|
22017
23056
|
RoutingActionType,
|
|
@@ -22043,6 +23082,8 @@ function pathDraftToStorage(draft, original) {
|
|
|
22043
23082
|
SiteDnsRecordType,
|
|
22044
23083
|
StediApi,
|
|
22045
23084
|
SupervisorsApi,
|
|
23085
|
+
SyncErrorCode,
|
|
23086
|
+
SyncFailureCode,
|
|
22046
23087
|
TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
22047
23088
|
TTS_MODEL_AWS_POLLY_NEURAL,
|
|
22048
23089
|
TTS_MODEL_DEEPGRAM_AURA_2,
|
|
@@ -22061,17 +23102,18 @@ function pathDraftToStorage(draft, original) {
|
|
|
22061
23102
|
UiPromptPresentedKindValues,
|
|
22062
23103
|
UiPromptResponseKindValues,
|
|
22063
23104
|
UiPromptResponseStatusValues,
|
|
23105
|
+
UnadoptableJourneyError,
|
|
22064
23106
|
UpdateMemberContactPointRequestContactType,
|
|
22065
23107
|
UpdateMemberContactPointRequestPurpose,
|
|
22066
23108
|
UpdateMemberContactPointRequestSharing,
|
|
22067
23109
|
VoiceIntegrityUseCase,
|
|
22068
23110
|
WIDGET_SLUGS,
|
|
22069
23111
|
WorkflowBuilder,
|
|
22070
|
-
WorkflowRoutingMode,
|
|
22071
23112
|
WorkspaceBuilder,
|
|
22072
23113
|
WorkspaceBuilderResource,
|
|
22073
23114
|
WorkspaceFeature,
|
|
22074
23115
|
WorkspaceProvisionStatus,
|
|
23116
|
+
WorkspaceScopeMode,
|
|
22075
23117
|
archivedMemberConflictId,
|
|
22076
23118
|
areDependenciesSatisfied,
|
|
22077
23119
|
asIdentifiedMemberContactConflict,
|
|
@@ -22103,9 +23145,11 @@ function pathDraftToStorage(draft, original) {
|
|
|
22103
23145
|
isIdentifiedMemberContactConflict,
|
|
22104
23146
|
isMemberContactConflict,
|
|
22105
23147
|
isPositiveRating,
|
|
23148
|
+
isProposedMessageSettlementStatus,
|
|
22106
23149
|
isRegistryInitialized,
|
|
22107
23150
|
isSMSDeliveryFailureStatus,
|
|
22108
23151
|
parseOrgAuthChallenge,
|
|
23152
|
+
parseProposedMessage,
|
|
22109
23153
|
pathDraftFromStorage,
|
|
22110
23154
|
pathDraftToStorage,
|
|
22111
23155
|
requiresAssistantParticipant,
|