@gravity-rail/sdk 0.10.1 → 0.11.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.
Files changed (44) hide show
  1. package/README.md +7 -8
  2. package/dist/{chunk-TJT7A4CO.js → chunk-V7ZKEH4V.js} +1 -1
  3. package/dist/chunk-V7ZKEH4V.js.map +1 -0
  4. package/dist/{chunk-2BJG4GYM.js → chunk-YESHLUL7.js} +812 -180
  5. package/dist/chunk-YESHLUL7.js.map +1 -0
  6. package/dist/{client-BffM3KcA.d.cts → client-BCgXtr8p.d.cts} +2630 -1114
  7. package/dist/{client-DfjAYbt8.d.ts → client-Dh1l20Ue.d.ts} +2630 -1114
  8. package/dist/helpers.cjs +6 -18
  9. package/dist/helpers.cjs.map +1 -1
  10. package/dist/helpers.d.cts +2 -2
  11. package/dist/helpers.d.ts +2 -2
  12. package/dist/helpers.js +6 -18
  13. package/dist/helpers.js.map +1 -1
  14. package/dist/index.cjs +842 -268
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +23 -21
  17. package/dist/index.d.ts +23 -21
  18. package/dist/index.js +51 -95
  19. package/dist/index.js.map +1 -1
  20. package/dist/internal.cjs +956 -258
  21. package/dist/internal.cjs.map +1 -1
  22. package/dist/internal.d.cts +443 -74
  23. package/dist/internal.d.ts +443 -74
  24. package/dist/internal.js +71 -2
  25. package/dist/internal.js.map +1 -1
  26. package/dist/realtime.cjs +42 -0
  27. package/dist/realtime.cjs.map +1 -1
  28. package/dist/realtime.d.cts +26 -0
  29. package/dist/realtime.d.ts +26 -0
  30. package/dist/realtime.js +42 -0
  31. package/dist/realtime.js.map +1 -1
  32. package/dist/{scopes-CmNKWrzb.d.ts → revision-state-BTF-MnbW.d.cts} +220 -18
  33. package/dist/{scopes-CjSvITpL.d.cts → revision-state-DOH1NMGb.d.ts} +220 -18
  34. package/dist/schemas.cjs +27 -110
  35. package/dist/schemas.cjs.map +1 -1
  36. package/dist/schemas.d.cts +48 -466
  37. package/dist/schemas.d.ts +48 -466
  38. package/dist/schemas.js +27 -107
  39. package/dist/schemas.js.map +1 -1
  40. package/dist/{inquiries-UcWNYo-Q.d.cts → tasks-C4aYbWVv.d.cts} +452 -141
  41. package/dist/{inquiries-UcWNYo-Q.d.ts → tasks-C4aYbWVv.d.ts} +452 -141
  42. package/package.json +1 -1
  43. package/dist/chunk-2BJG4GYM.js.map +0 -1
  44. package/dist/chunk-TJT7A4CO.js.map +0 -1
package/dist/internal.cjs CHANGED
@@ -55,6 +55,7 @@ __export(internal_exports, {
55
55
  CalendarSource: () => CalendarSource,
56
56
  CalendarsApi: () => CalendarsApi,
57
57
  CallsApi: () => CallsApi,
58
+ CapabilityClass: () => CapabilityClass,
58
59
  ChatsApi: () => ChatsApi,
59
60
  ConfluenceApi: () => ConfluenceApi,
60
61
  ConnectionSyncApi: () => ConnectionSyncApi,
@@ -78,6 +79,7 @@ __export(internal_exports, {
78
79
  DataSensitivity: () => DataSensitivity,
79
80
  DataTypeRecordScope: () => DataTypeRecordScope,
80
81
  DataTypesApi: () => DataTypesApi,
82
+ DeclaredDataUse: () => DeclaredDataUse,
81
83
  DiscordBotsApi: () => DiscordBotsApi,
82
84
  DriverMode: () => DriverMode,
83
85
  EmailDnsRecordType: () => EmailDnsRecordType,
@@ -138,7 +140,14 @@ __export(internal_exports, {
138
140
  PERMISSION_VERIFY: () => PERMISSION_VERIFY,
139
141
  PIDS_DISPOSITIONS: () => PIDS_DISPOSITIONS,
140
142
  PIDS_SOURCES: () => PIDS_SOURCES,
143
+ POSITIVE_RATING_THRESHOLD: () => POSITIVE_RATING_THRESHOLD,
141
144
  PersonasApi: () => PersonasApi,
145
+ PhiDataPolicy: () => PhiDataPolicy,
146
+ PhiPolicyReason: () => PhiPolicyReason,
147
+ PhiPolicySource: () => PhiPolicySource,
148
+ PhiPostureDecision: () => PhiPostureDecision,
149
+ PhiPostureReasonCode: () => PhiPostureReasonCode,
150
+ PhiPostureTransitionResponseTargetType: () => PhiPostureTransitionResponseTargetType,
142
151
  PhoneNumbersApi: () => PhoneNumbersApi,
143
152
  ProductType: () => ProductType,
144
153
  PromptsApi: () => PromptsApi,
@@ -187,6 +196,7 @@ __export(internal_exports, {
187
196
  ToolkitState: () => ToolkitState,
188
197
  ToolkitsApi: () => ToolkitsApi,
189
198
  VoiceApi: () => VoiceApi,
199
+ WIDGET_SLUGS: () => WIDGET_SLUGS,
190
200
  WorkflowAccessWarningResourceType: () => WorkflowAccessWarningResourceType,
191
201
  WorkflowNotesApi: () => WorkflowNotesApi,
192
202
  WorkflowResourceType: () => WorkflowAccessWarningResourceType,
@@ -207,6 +217,7 @@ __export(internal_exports, {
207
217
  bindChatsMethods: () => bindChatsMethods,
208
218
  bindCommunicationsMethods: () => bindCommunicationsMethods,
209
219
  bindCustomersMethods: () => bindCustomersMethods,
220
+ bindDashboardsMethods: () => bindDashboardsMethods,
210
221
  bindDataTypesMethods: () => bindDataTypesMethods,
211
222
  bindEventsMethods: () => bindEventsMethods,
212
223
  bindExperimentsMethods: () => bindExperimentsMethods,
@@ -214,6 +225,7 @@ __export(internal_exports, {
214
225
  bindIntegrationsMethods: () => bindIntegrationsMethods,
215
226
  bindJourneysMethods: () => bindJourneysMethods,
216
227
  bindMembersMethods: () => bindMembersMethods,
228
+ bindMotdMethods: () => bindMotdMethods,
217
229
  bindOperatorMethods: () => bindOperatorMethods,
218
230
  bindOrgMethods: () => bindOrgMethods,
219
231
  bindPersonasMethods: () => bindPersonasMethods,
@@ -247,12 +259,14 @@ __export(internal_exports, {
247
259
  getFeaturesByVisibility: () => getFeaturesByVisibility,
248
260
  getMissingDependencies: () => getMissingDependencies,
249
261
  getResourceMetadata: () => getResourceMetadata,
262
+ getRevisionState: () => getRevisionState,
250
263
  getScopeFromProductType: () => getScopeFromProductType,
251
264
  getTTSProvider: () => getTTSProvider,
252
265
  getVoiceModelId: () => getVoiceModelId,
253
266
  initializeFeatures: () => initializeFeatures,
254
267
  isChatType: () => isChatType,
255
268
  isFeatureAvailable: () => isFeatureAvailable,
269
+ isPositiveRating: () => isPositiveRating,
256
270
  isRegistryInitialized: () => isRegistryInitialized,
257
271
  isSMSDeliveryFailureStatus: () => isSMSDeliveryFailureStatus,
258
272
  parseExperimentStatCount: () => parseExperimentStatCount,
@@ -370,11 +384,14 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
370
384
  Scope2["ANALYTICS_READ"] = "analytics:read";
371
385
  Scope2["OPERATOR_READ"] = "operator:read";
372
386
  Scope2["OPERATOR_WRITE"] = "operator:write";
387
+ Scope2["EXPORT_READ"] = "export:read";
388
+ Scope2["EXPORT_WRITE"] = "export:write";
389
+ Scope2["EXPORT_ADMIN"] = "export:admin";
373
390
  Scope2["ORG_INFO"] = "org:info";
374
391
  Scope2["ORG_READ"] = "org:read";
375
392
  Scope2["ORG_WRITE"] = "org:write";
376
393
  Scope2["ORG_ADMIN"] = "org:admin";
377
- Scope2["ORG_BILLING"] = "org:billing";
394
+ Scope2["ORG_MANAGE_ADMINS"] = "org:manage_admins";
378
395
  Scope2["ORG_DELETE"] = "org:delete";
379
396
  return Scope2;
380
397
  })(Scope || {});
@@ -449,6 +466,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
449
466
  EventRuleEventType2["MEMBER_LEFT"] = "workspace:member_left";
450
467
  EventRuleEventType2["DATA_RECORD_CREATED"] = "data_record:created";
451
468
  EventRuleEventType2["DATA_RECORD_UPDATED"] = "data_record:updated";
469
+ EventRuleEventType2["DATA_RECORD_CHANGED"] = "data_record:changed";
452
470
  EventRuleEventType2["CHAT_CREATED"] = "chat:created";
453
471
  EventRuleEventType2["CHAT_CALLBACK"] = "chat:callback";
454
472
  EventRuleEventType2["MEMBER_UPDATED"] = "member:updated";
@@ -527,7 +545,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
527
545
  WorkspaceFeature2["GCALENDAR"] = "gcalendar";
528
546
  WorkspaceFeature2["MONDAY"] = "monday";
529
547
  WorkspaceFeature2["RESELL_PRODUCTS"] = "resell_products";
530
- WorkspaceFeature2["HIPAA_COMPLIANCE"] = "hipaa_compliance";
531
548
  WorkspaceFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
532
549
  WorkspaceFeature2["EHR_FHIR"] = "ehr_fhir";
533
550
  WorkspaceFeature2["EHR_ECLINICALWORKS"] = "ehr_eclinicalworks";
@@ -537,7 +554,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
537
554
  WorkspaceFeature2["CONFLUENCE"] = "confluence";
538
555
  WorkspaceFeature2["AGENT_MEMORY"] = "agent_memory";
539
556
  WorkspaceFeature2["IMAGE_GENERATION"] = "image_generation";
540
- WorkspaceFeature2["WORKFLOW_VERSIONING"] = "workflow_versioning";
541
557
  return WorkspaceFeature2;
542
558
  })(WorkspaceFeature || {});
543
559
  var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
@@ -551,7 +567,6 @@ var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
551
567
  var OrgFeature = /* @__PURE__ */ ((OrgFeature2) => {
552
568
  OrgFeature2["SSO"] = "sso";
553
569
  OrgFeature2["AUDIT_LOGS"] = "audit_logs";
554
- OrgFeature2["HIPAA_COMPLIANCE"] = "hipaa_compliance";
555
570
  OrgFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
556
571
  OrgFeature2["CUSTOM_BRANDING"] = "custom_branding";
557
572
  OrgFeature2["PRIORITY_SUPPORT"] = "priority_support";
@@ -813,8 +828,15 @@ var AccessGrantResourceType = /* @__PURE__ */ ((AccessGrantResourceType2) => {
813
828
  AccessGrantResourceType2["SITE"] = "site";
814
829
  AccessGrantResourceType2["ASSIGNMENT"] = "assignment";
815
830
  AccessGrantResourceType2["APP_CONNECTION"] = "app_connection";
831
+ AccessGrantResourceType2["CAPABILITY"] = "capability";
816
832
  return AccessGrantResourceType2;
817
833
  })(AccessGrantResourceType || {});
834
+ var CapabilityClass = /* @__PURE__ */ ((CapabilityClass2) => {
835
+ CapabilityClass2["TOOL_ALWAYS_ALLOW"] = "tool.always_allow";
836
+ CapabilityClass2["SELF_MODIFICATION_SCHEDULE"] = "self_modification.schedule";
837
+ CapabilityClass2["ATTENTION_INTERRUPT_RUNG"] = "attention.interrupt_rung";
838
+ return CapabilityClass2;
839
+ })(CapabilityClass || {});
818
840
  var AccessGrantStatus = /* @__PURE__ */ ((AccessGrantStatus2) => {
819
841
  AccessGrantStatus2["PENDING"] = "pending";
820
842
  AccessGrantStatus2["ACTIVE"] = "active";
@@ -944,6 +966,146 @@ var CustomerActivitySeverity = {
944
966
  critical: "critical"
945
967
  };
946
968
 
969
+ // src/types/generated/phi_posture.ts
970
+ var PhiPolicyReason = {
971
+ initial_classification: "initial_classification",
972
+ customer_confirmation: "customer_confirmation",
973
+ agreement_verified: "agreement_verified",
974
+ scope_change: "scope_change",
975
+ periodic_review: "periodic_review",
976
+ correction: "correction",
977
+ incident_response: "incident_response"
978
+ };
979
+ var PhiPolicySource = {
980
+ customer_attestation: "customer_attestation",
981
+ contract_review: "contract_review",
982
+ staff_review: "staff_review",
983
+ legacy_inventory: "legacy_inventory"
984
+ };
985
+ var PhiPostureTransitionResponseTargetType = {
986
+ organization: "organization",
987
+ workspace: "workspace"
988
+ };
989
+
990
+ // src/types/generated/organization.ts
991
+ var BusinessIndustry = {
992
+ AGRICULTURE: "AGRICULTURE",
993
+ AUTOMOTIVE: "AUTOMOTIVE",
994
+ BANKING: "BANKING",
995
+ CONSUMER: "CONSUMER",
996
+ EDUCATION: "EDUCATION",
997
+ ELECTRONICS: "ELECTRONICS",
998
+ ENERGY: "ENERGY",
999
+ ENGINEERING: "ENGINEERING",
1000
+ FAST_MOVING_CONSUMER_GOODS: "FAST_MOVING_CONSUMER_GOODS",
1001
+ FINANCIAL: "FINANCIAL",
1002
+ FINTECH: "FINTECH",
1003
+ FOOD_AND_BEVERAGE: "FOOD_AND_BEVERAGE",
1004
+ GOVERNMENT: "GOVERNMENT",
1005
+ HEALTHCARE: "HEALTHCARE",
1006
+ HOSPITALITY: "HOSPITALITY",
1007
+ INSURANCE: "INSURANCE",
1008
+ JEWELRY: "JEWELRY",
1009
+ LEGAL: "LEGAL",
1010
+ MANUFACTURING: "MANUFACTURING",
1011
+ MEDIA: "MEDIA",
1012
+ NOT_FOR_PROFIT: "NOT_FOR_PROFIT",
1013
+ OIL_AND_GAS: "OIL_AND_GAS",
1014
+ ONLINE: "ONLINE",
1015
+ RAW_MATERIALS: "RAW_MATERIALS",
1016
+ REAL_ESTATE: "REAL_ESTATE",
1017
+ RELIGION: "RELIGION",
1018
+ RETAIL: "RETAIL",
1019
+ TECHNOLOGY: "TECHNOLOGY",
1020
+ TELECOMMUNICATIONS: "TELECOMMUNICATIONS",
1021
+ TRANSPORTATION: "TRANSPORTATION",
1022
+ TRAVEL: "TRAVEL"
1023
+ };
1024
+ var BusinessType = {
1025
+ Sole_Proprietorship: "Sole Proprietorship",
1026
+ Partnership: "Partnership",
1027
+ Limited_Liability_Corporation: "Limited Liability Corporation",
1028
+ "Co-operative": "Co-operative",
1029
+ "Non-profit_Corporation": "Non-profit Corporation",
1030
+ Corporation: "Corporation"
1031
+ };
1032
+ var DeclaredDataUse = {
1033
+ unclassified: "unclassified",
1034
+ non_phi_only: "non_phi_only",
1035
+ phi_expected: "phi_expected"
1036
+ };
1037
+ var EmailDnsRecordType = {
1038
+ TXT: "TXT",
1039
+ CNAME: "CNAME",
1040
+ MX: "MX"
1041
+ };
1042
+ var JobPosition = {
1043
+ Director: "Director",
1044
+ GM: "GM",
1045
+ VP: "VP",
1046
+ CEO: "CEO",
1047
+ CFO: "CFO",
1048
+ General_Counsel: "General Counsel",
1049
+ Other: "Other"
1050
+ };
1051
+ var OIDCAdminConfigViewProviderType = {
1052
+ azure_ad: "azure_ad",
1053
+ okta: "okta",
1054
+ auth0: "auth0",
1055
+ generic: "generic"
1056
+ };
1057
+ var Region = {
1058
+ AFRICA: "AFRICA",
1059
+ ASIA: "ASIA",
1060
+ EUROPE: "EUROPE",
1061
+ LATIN_AMERICA: "LATIN_AMERICA",
1062
+ USA_AND_CANADA: "USA_AND_CANADA",
1063
+ AUSTRALIA: "AUSTRALIA"
1064
+ };
1065
+ var RegistrationIdentifier = {
1066
+ EIN: "EIN",
1067
+ CBN: "CBN",
1068
+ CN: "CN",
1069
+ ACN: "ACN",
1070
+ CIN: "CIN",
1071
+ VAT: "VAT",
1072
+ VATRN: "VATRN",
1073
+ RN: "RN",
1074
+ DUNS: "DUNS",
1075
+ Other: "Other"
1076
+ };
1077
+ var SiteDnsRecordType = {
1078
+ CNAME: "CNAME",
1079
+ A: "A",
1080
+ TXT: "TXT"
1081
+ };
1082
+
1083
+ // src/types/generated/workspace.ts
1084
+ var PhiDataPolicy = {
1085
+ unclassified: "unclassified",
1086
+ phi_prohibited: "phi_prohibited",
1087
+ phi_permitted: "phi_permitted"
1088
+ };
1089
+ var PhiPostureDecision = {
1090
+ allow_non_phi: "allow_non_phi",
1091
+ warn_non_phi: "warn_non_phi",
1092
+ review_required: "review_required",
1093
+ authorization_required: "authorization_required",
1094
+ conflict: "conflict"
1095
+ };
1096
+ var PhiPostureReasonCode = {
1097
+ org_unclassified: "org_unclassified",
1098
+ workspace_unclassified: "workspace_unclassified",
1099
+ non_phi_policy_aligned: "non_phi_policy_aligned",
1100
+ phi_expected_workspace_prohibited: "phi_expected_workspace_prohibited",
1101
+ phi_authorization_not_evaluated: "phi_authorization_not_evaluated",
1102
+ non_phi_org_workspace_permitted: "non_phi_org_workspace_permitted",
1103
+ phi_permitted_org_not_expected: "phi_permitted_org_not_expected",
1104
+ organization_review_expired: "organization_review_expired",
1105
+ workspace_review_expired: "workspace_review_expired",
1106
+ invalid_state: "invalid_state"
1107
+ };
1108
+
947
1109
  // src/types/model-config-types.ts
948
1110
  var DEFAULT_THINKING_SPEECH_PHRASES = [
949
1111
  "One moment please",
@@ -1124,94 +1286,10 @@ var SMS_DELIVERY_FAILURE_STATUSES = /* @__PURE__ */ new Set([
1124
1286
  function isSMSDeliveryFailureStatus(status) {
1125
1287
  return status != null && SMS_DELIVERY_FAILURE_STATUSES.has(status);
1126
1288
  }
1127
-
1128
- // src/types/generated/organization.ts
1129
- var BusinessIndustry = {
1130
- AGRICULTURE: "AGRICULTURE",
1131
- AUTOMOTIVE: "AUTOMOTIVE",
1132
- BANKING: "BANKING",
1133
- CONSUMER: "CONSUMER",
1134
- EDUCATION: "EDUCATION",
1135
- ELECTRONICS: "ELECTRONICS",
1136
- ENERGY: "ENERGY",
1137
- ENGINEERING: "ENGINEERING",
1138
- FAST_MOVING_CONSUMER_GOODS: "FAST_MOVING_CONSUMER_GOODS",
1139
- FINANCIAL: "FINANCIAL",
1140
- FINTECH: "FINTECH",
1141
- FOOD_AND_BEVERAGE: "FOOD_AND_BEVERAGE",
1142
- GOVERNMENT: "GOVERNMENT",
1143
- HEALTHCARE: "HEALTHCARE",
1144
- HOSPITALITY: "HOSPITALITY",
1145
- INSURANCE: "INSURANCE",
1146
- JEWELRY: "JEWELRY",
1147
- LEGAL: "LEGAL",
1148
- MANUFACTURING: "MANUFACTURING",
1149
- MEDIA: "MEDIA",
1150
- NOT_FOR_PROFIT: "NOT_FOR_PROFIT",
1151
- OIL_AND_GAS: "OIL_AND_GAS",
1152
- ONLINE: "ONLINE",
1153
- RAW_MATERIALS: "RAW_MATERIALS",
1154
- REAL_ESTATE: "REAL_ESTATE",
1155
- RELIGION: "RELIGION",
1156
- RETAIL: "RETAIL",
1157
- TECHNOLOGY: "TECHNOLOGY",
1158
- TELECOMMUNICATIONS: "TELECOMMUNICATIONS",
1159
- TRANSPORTATION: "TRANSPORTATION",
1160
- TRAVEL: "TRAVEL"
1161
- };
1162
- var BusinessType = {
1163
- Sole_Proprietorship: "Sole Proprietorship",
1164
- Partnership: "Partnership",
1165
- Limited_Liability_Corporation: "Limited Liability Corporation",
1166
- "Co-operative": "Co-operative",
1167
- "Non-profit_Corporation": "Non-profit Corporation",
1168
- Corporation: "Corporation"
1169
- };
1170
- var EmailDnsRecordType = {
1171
- TXT: "TXT",
1172
- CNAME: "CNAME",
1173
- MX: "MX"
1174
- };
1175
- var JobPosition = {
1176
- Director: "Director",
1177
- GM: "GM",
1178
- VP: "VP",
1179
- CEO: "CEO",
1180
- CFO: "CFO",
1181
- General_Counsel: "General Counsel",
1182
- Other: "Other"
1183
- };
1184
- var OIDCAdminConfigViewProviderType = {
1185
- azure_ad: "azure_ad",
1186
- okta: "okta",
1187
- auth0: "auth0",
1188
- generic: "generic"
1189
- };
1190
- var Region = {
1191
- AFRICA: "AFRICA",
1192
- ASIA: "ASIA",
1193
- EUROPE: "EUROPE",
1194
- LATIN_AMERICA: "LATIN_AMERICA",
1195
- USA_AND_CANADA: "USA_AND_CANADA",
1196
- AUSTRALIA: "AUSTRALIA"
1197
- };
1198
- var RegistrationIdentifier = {
1199
- EIN: "EIN",
1200
- CBN: "CBN",
1201
- CN: "CN",
1202
- ACN: "ACN",
1203
- CIN: "CIN",
1204
- VAT: "VAT",
1205
- VATRN: "VATRN",
1206
- RN: "RN",
1207
- DUNS: "DUNS",
1208
- Other: "Other"
1209
- };
1210
- var SiteDnsRecordType = {
1211
- CNAME: "CNAME",
1212
- A: "A",
1213
- TXT: "TXT"
1214
- };
1289
+ var POSITIVE_RATING_THRESHOLD = 0.5;
1290
+ function isPositiveRating(rating) {
1291
+ return rating != null && rating >= POSITIVE_RATING_THRESHOLD;
1292
+ }
1215
1293
 
1216
1294
  // src/types/generated/site.ts
1217
1295
  var MenuItemResponseItemType = {
@@ -1221,11 +1299,15 @@ var MenuItemResponseItemType = {
1221
1299
  none: "none"
1222
1300
  };
1223
1301
 
1302
+ // src/types/widget-domain-types.ts
1303
+ var WIDGET_SLUGS = ["chat", "operator", "operator-tools", "chat-app"];
1304
+
1224
1305
  // src/types/generated/task.ts
1225
1306
  var AbilityConfigIssueCode = {
1226
1307
  missing_resource: "missing_resource",
1227
1308
  invalid_state: "invalid_state",
1228
1309
  feature_disabled: "feature_disabled",
1310
+ missing_connection: "missing_connection",
1229
1311
  external_drift: "external_drift"
1230
1312
  };
1231
1313
  var AbilityConfigIssueSeverity = {
@@ -2067,6 +2149,19 @@ var SCOPE_PRESETS = {
2067
2149
  ALL: Object.keys(SCOPES)
2068
2150
  };
2069
2151
 
2152
+ // src/utils/revision-state.ts
2153
+ function getRevisionState(workflow, revision) {
2154
+ const draftIsLive = workflow.activeRevisionId === workflow.draftRevisionId;
2155
+ const hasUnpublishedChanges = workflow.draftModifiedAt != null;
2156
+ return {
2157
+ isActive: revision != null && revision.id === workflow.activeRevisionId,
2158
+ isDraft: revision != null && revision.id === workflow.draftRevisionId,
2159
+ draftIsLive,
2160
+ hasUnpublishedChanges,
2161
+ state: revision?.publishedAt != null ? "published" : "draft"
2162
+ };
2163
+ }
2164
+
2070
2165
  // src/api/base.ts
2071
2166
  function getCookieValue(name) {
2072
2167
  if (typeof document === "undefined") return void 0;
@@ -2546,20 +2641,22 @@ var AbilitiesApi = class extends BaseApiClient {
2546
2641
  }
2547
2642
  /** Get the full spec for a single ability type by slug. */
2548
2643
  async getAbilityType(wid, slug) {
2549
- return this.fetch(
2550
- `w/${wid}/abilities/types/${encodeURIComponent(slug)}`
2551
- );
2644
+ return this.fetch(`w/${wid}/abilities/types/${encodeURIComponent(slug)}`);
2552
2645
  }
2553
2646
  /**
2554
2647
  * List configured ability instances for a workflow or task scope.
2555
- * Exactly one of workflowId / taskId must be provided.
2648
+ * Provide exactly one of:
2649
+ * - workflow scope: workflowId (stable root → draft revision) and/or
2650
+ * workflowRevisionId (explicit pin)
2651
+ * - taskId for task-scoped abilities
2556
2652
  */
2557
2653
  async listAbilities(wid, options) {
2558
2654
  const params = new URLSearchParams();
2559
2655
  if (options.workflowId !== void 0)
2560
2656
  params.append("workflowId", options.workflowId.toString());
2561
- if (options.taskId !== void 0)
2562
- params.append("taskId", options.taskId.toString());
2657
+ if (options.workflowRevisionId !== void 0)
2658
+ params.append("workflowRevisionId", options.workflowRevisionId.toString());
2659
+ if (options.taskId !== void 0) params.append("taskId", options.taskId.toString());
2563
2660
  return this.fetch(`w/${wid}/abilities?${params}`);
2564
2661
  }
2565
2662
  /** Create (enable) a configured ability on a workflow or task scope. */
@@ -2582,6 +2679,20 @@ var AbilitiesApi = class extends BaseApiClient {
2582
2679
  method: "DELETE"
2583
2680
  });
2584
2681
  }
2682
+ /**
2683
+ * List recipient-directory rows approved for Charleston PMD test delivery
2684
+ * (CS-150). Returns only {recipientKey, displayLabel} for active,
2685
+ * test-delivery-allowed rows with a device id — never the PatientSync
2686
+ * recipient_id. Scoped to agents:write + the charleston_nephrology_pmd_paging
2687
+ * feature; used by the ability-config test-delivery dropdown. Kept on the
2688
+ * ability-configuration API (not generic DataRecords) because the actual
2689
+ * ability-editor scopes do not guarantee generic record access.
2690
+ */
2691
+ async getCharlestonTestDeliveryRecipients(wid) {
2692
+ return this.fetch(
2693
+ `w/${wid}/app-connections/charleston_nephrology/test-delivery/eligible-recipients`
2694
+ );
2695
+ }
2585
2696
  };
2586
2697
 
2587
2698
  // src/api/access-grants.ts
@@ -2653,6 +2764,24 @@ var AccessGrantsApi = class extends BaseApiClient {
2653
2764
  );
2654
2765
  return resp.items;
2655
2766
  }
2767
+ /**
2768
+ * List access grants *received* by a member (grantee view) — the
2769
+ * "what can this agent do without asking?" list. Filter with
2770
+ * status=active and/or a capabilityClass (e.g. 'tool.always_allow').
2771
+ */
2772
+ async getGranteeGrants(wid, memberId, params) {
2773
+ const searchParams = new URLSearchParams();
2774
+ if (params?.status) searchParams.set("status", params.status);
2775
+ if (params?.capabilityClass) {
2776
+ searchParams.set("capability_class", params.capabilityClass);
2777
+ }
2778
+ if (params?.page) searchParams.set("page", params.page.toString());
2779
+ if (params?.pageSize) searchParams.set("page_size", params.pageSize.toString());
2780
+ const qs = searchParams.toString();
2781
+ return this.fetch(
2782
+ `w/${wid}/access-grants/grantee/${memberId}${qs ? `?${qs}` : ""}`
2783
+ );
2784
+ }
2656
2785
  };
2657
2786
 
2658
2787
  // src/api/agent-tasks.ts
@@ -2739,25 +2868,6 @@ var AgentsApi = class extends BaseApiClient {
2739
2868
  method: "POST"
2740
2869
  });
2741
2870
  }
2742
- /** Resolve runtime tools for an agent on a simulated channel. */
2743
- async resolveAgentTools(wid, id, options) {
2744
- const params = new URLSearchParams();
2745
- params.append("channel", options.channel);
2746
- if (options.taskId !== void 0) params.append("taskId", options.taskId.toString());
2747
- if (options.taskUuid !== void 0) params.append("taskUuid", options.taskUuid);
2748
- return this.fetch(`w/${wid}/agents/${id}/resolve-tools?${params}`);
2749
- }
2750
- /**
2751
- * List the configured abilities effective for an agent via a task's workflow.
2752
- * Requires taskId because abilities are scoped to workflows/tasks, not agents.
2753
- */
2754
- async listAgentAbilities(wid, id, options) {
2755
- const params = new URLSearchParams();
2756
- params.append("taskId", options.taskId.toString());
2757
- return this.fetch(
2758
- `w/${wid}/agents/${id}/abilities?${params}`
2759
- );
2760
- }
2761
2871
  };
2762
2872
 
2763
2873
  // src/api/ai-models.ts
@@ -2954,8 +3064,7 @@ var AssignmentsApi = class extends BaseApiClient {
2954
3064
  if (options.sortOrder) params.append("sortOrder", options.sortOrder);
2955
3065
  if (options.mine) params.append("mine", options.mine.toString());
2956
3066
  if (options.taskId) params.append("taskId", options.taskId.toString());
2957
- if (options.memberId !== void 0)
2958
- params.append("memberId", options.memberId.toString());
3067
+ if (options.memberId !== void 0) params.append("memberId", options.memberId.toString());
2959
3068
  if (options.status) params.append("status", options.status);
2960
3069
  return this.fetch(
2961
3070
  `w/${wid}/assignments${params.toString() ? `?${params.toString()}` : ""}`
@@ -3084,6 +3193,20 @@ var AuthApi = class extends BaseApiClient {
3084
3193
  body: JSON.stringify(info)
3085
3194
  });
3086
3195
  }
3196
+ /**
3197
+ * Persist the account's FIRST-touch marketing attribution (write-once).
3198
+ *
3199
+ * Called by the browser at signup completion with its resolved UTM /
3200
+ * referrer / landing-page capture. The server keeps the first write and
3201
+ * ignores later posts (`recorded: false`), so calling this again is
3202
+ * harmless. Marketing context only — never emails, phones, or free text.
3203
+ */
3204
+ async recordAcquisition(request) {
3205
+ return this.fetch("account/acquisition", {
3206
+ method: "POST",
3207
+ body: JSON.stringify(request)
3208
+ });
3209
+ }
3087
3210
  /** Initiate SMS login by sending a verification code to the given phone number. */
3088
3211
  async login(phoneNumber, wid, organizationUuid) {
3089
3212
  const params = new URLSearchParams();
@@ -3307,23 +3430,29 @@ var AuthApi = class extends BaseApiClient {
3307
3430
  // ===== TWO-FACTOR AUTHENTICATION LOGIN METHODS =====
3308
3431
  /** Verify a TOTP code during login to complete two-factor authentication. */
3309
3432
  async verifyTOTPAuth(tempToken, code) {
3310
- return this.fetch("auth/2fa/auth/totp", {
3311
- method: "POST",
3312
- body: JSON.stringify({
3313
- temp_token: tempToken,
3314
- code
3315
- })
3316
- });
3433
+ return this.fetch(
3434
+ "auth/2fa/auth/totp",
3435
+ {
3436
+ method: "POST",
3437
+ body: JSON.stringify({
3438
+ temp_token: tempToken,
3439
+ code
3440
+ })
3441
+ }
3442
+ );
3317
3443
  }
3318
3444
  /** Verify a recovery code during login to complete two-factor authentication. */
3319
3445
  async verifyRecoveryCodeAuth(tempToken, code) {
3320
- return this.fetch("auth/2fa/auth/recovery", {
3321
- method: "POST",
3322
- body: JSON.stringify({
3323
- temp_token: tempToken,
3324
- code
3325
- })
3326
- });
3446
+ return this.fetch(
3447
+ "auth/2fa/auth/recovery",
3448
+ {
3449
+ method: "POST",
3450
+ body: JSON.stringify({
3451
+ temp_token: tempToken,
3452
+ code
3453
+ })
3454
+ }
3455
+ );
3327
3456
  }
3328
3457
  /** Get WebAuthn credential request options for two-factor login verification. */
3329
3458
  async getWebAuthnAuthOptions(tempToken) {
@@ -3336,13 +3465,16 @@ var AuthApi = class extends BaseApiClient {
3336
3465
  }
3337
3466
  /** Verify a WebAuthn assertion during login to complete two-factor authentication. */
3338
3467
  async verifyWebAuthnAuth(tempToken, assertionResponse) {
3339
- return this.fetch("auth/2fa/webauthn", {
3340
- method: "POST",
3341
- body: JSON.stringify({
3342
- temp_token: tempToken,
3343
- assertion_response: assertionResponse
3344
- })
3345
- });
3468
+ return this.fetch(
3469
+ "auth/2fa/webauthn",
3470
+ {
3471
+ method: "POST",
3472
+ body: JSON.stringify({
3473
+ temp_token: tempToken,
3474
+ assertion_response: assertionResponse
3475
+ })
3476
+ }
3477
+ );
3346
3478
  }
3347
3479
  // ===== ORGANIZATION MEMBERSHIP METHODS =====
3348
3480
  /** List all organizations the current account belongs to. */
@@ -3724,6 +3856,15 @@ var CallsApi = class extends BaseApiClient {
3724
3856
  async getMessageTiming(wid, chatId) {
3725
3857
  return this.fetch(`w/${wid}/recordings/chat/${chatId}/message-timing`);
3726
3858
  }
3859
+ /**
3860
+ * Get PHI-safe provenance metadata for the recording served by
3861
+ * `/audio.wav` — source, encryption, channels, duration, status, etc.
3862
+ * Staff-only Twilio SIDs are present only for superusers. Returns 404
3863
+ * when the chat has no native recording row (legacy chunk-only playback).
3864
+ */
3865
+ async getRecordingInfo(wid, chatId) {
3866
+ return this.fetch(`w/${wid}/recordings/chat/${chatId}/info`);
3867
+ }
3727
3868
  /** List the recorded audio chunks for a chat (metadata only). */
3728
3869
  async listChatRecordings(wid, chatId, options = {}) {
3729
3870
  const params = new URLSearchParams();
@@ -3782,8 +3923,7 @@ var ChatsApi = class extends BaseApiClient {
3782
3923
  if (options.paused !== void 0) params.append("paused", options.paused.toString());
3783
3924
  if (options.archived !== void 0) params.append("archived", options.archived.toString());
3784
3925
  if (options.channel) params.append("channel", options.channel);
3785
- const chatType = options.chatType ?? "assignment";
3786
- params.append("chatType", chatType);
3926
+ if (options.chatType) params.append("chatType", options.chatType);
3787
3927
  if (options.memberId !== void 0) params.append("memberId", options.memberId.toString());
3788
3928
  if (options.assistantMemberId !== void 0)
3789
3929
  params.append("assistantMemberId", options.assistantMemberId.toString());
@@ -3794,6 +3934,11 @@ var ChatsApi = class extends BaseApiClient {
3794
3934
  if (options.filters && options.filters.length > 0) {
3795
3935
  params.append("filters", JSON.stringify(options.filters));
3796
3936
  }
3937
+ if (options.query) params.append("query", JSON.stringify(options.query));
3938
+ if (options.workflowId !== void 0)
3939
+ params.append("workflowId", options.workflowId.toString());
3940
+ if (options.workflowRevisionId !== void 0)
3941
+ params.append("workflowRevisionId", options.workflowRevisionId.toString());
3797
3942
  if (options.createdAfter) params.append("createdAfter", options.createdAfter);
3798
3943
  if (options.createdBefore) params.append("createdBefore", options.createdBefore);
3799
3944
  return params;
@@ -3914,6 +4059,25 @@ var ChatsApi = class extends BaseApiClient {
3914
4059
  body: JSON.stringify(chat)
3915
4060
  });
3916
4061
  }
4062
+ /**
4063
+ * Get per-chat model provenance for the Chat sidebar's model summary area:
4064
+ * the effective chat + realtime models, the agent's current default (the
4065
+ * reset/inherit target), and pinned/matches flags.
4066
+ */
4067
+ async getChatModelOverride(wid, id) {
4068
+ return this.fetch(`w/${wid}/chats/${id}/model-override`);
4069
+ }
4070
+ /**
4071
+ * Pin or reset the per-chat chat/realtime model snapshot. A concrete model id
4072
+ * pins that model; an empty/null id resets it to the agent's current default.
4073
+ * Only fields present in the payload are touched.
4074
+ */
4075
+ async updateChatModelOverride(wid, id, override) {
4076
+ return this.fetch(`w/${wid}/chats/${id}/model-override`, {
4077
+ method: "PUT",
4078
+ body: JSON.stringify(override)
4079
+ });
4080
+ }
3917
4081
  /** Update the mute status of a chat. */
3918
4082
  async updateChatMute(wid, id, muted) {
3919
4083
  return this.fetch(`w/${wid}/chats/${id}/mute`, {
@@ -3984,13 +4148,35 @@ var ChatsApi = class extends BaseApiClient {
3984
4148
  })
3985
4149
  });
3986
4150
  }
3987
- /** Rate a chat message by its UUID. */
3988
- async rateMessage(wid, chatId, messageUuid, rating) {
4151
+ /**
4152
+ * List durable feedback rows for a chat (thumbs, explicit, supervisor, extracted).
4153
+ */
4154
+ async getChatFeedback(wid, chatId, options = {}) {
4155
+ const params = new URLSearchParams();
4156
+ if (options.page != null) params.set("page", String(options.page));
4157
+ if (options.pageSize != null) params.set("pageSize", String(options.pageSize));
4158
+ if (options.source) params.set("source", options.source);
4159
+ if (options.rating) params.set("rating", options.rating);
4160
+ if (options.authorKind) params.set("authorKind", options.authorKind);
4161
+ const qs = params.toString();
4162
+ return this.fetch(
4163
+ `w/${wid}/chats/${chatId}/feedback${qs ? `?${qs}` : ""}`
4164
+ );
4165
+ }
4166
+ /**
4167
+ * Rate a chat message by its UUID.
4168
+ * Optional ``comment`` updates free-text details on the same durable rating row.
4169
+ */
4170
+ async rateMessage(wid, chatId, messageUuid, rating, comment) {
4171
+ const body = { rating };
4172
+ if (comment !== void 0) {
4173
+ body.comment = comment;
4174
+ }
3989
4175
  return this.fetch(
3990
4176
  `w/${wid}/chats/${chatId}/messages/${messageUuid}/rate`,
3991
4177
  {
3992
4178
  method: "POST",
3993
- body: JSON.stringify({ rating })
4179
+ body: JSON.stringify(body)
3994
4180
  }
3995
4181
  );
3996
4182
  }
@@ -4256,6 +4442,51 @@ var CustomToolkitsApi = class extends BaseApiClient {
4256
4442
  }
4257
4443
  };
4258
4444
 
4445
+ // src/api/dashboards.ts
4446
+ var DashboardsApi = class extends BaseApiClient {
4447
+ /** List all dashboards for the workspace, in tab order. */
4448
+ async getDashboards(wid) {
4449
+ return this.fetch(`w/${wid}/dashboards`);
4450
+ }
4451
+ /** Get a dashboard by ID. */
4452
+ async getDashboard(wid, id) {
4453
+ return this.fetch(`w/${wid}/dashboards/${id}`);
4454
+ }
4455
+ /** Create a named dashboard, optionally with an initial widget list. */
4456
+ async createDashboard(wid, body) {
4457
+ return this.fetch(`w/${wid}/dashboards`, {
4458
+ method: "POST",
4459
+ body: JSON.stringify(body)
4460
+ });
4461
+ }
4462
+ /** Update a dashboard's name, position, or widget list (full replace). */
4463
+ async updateDashboard(wid, id, body) {
4464
+ return this.fetch(`w/${wid}/dashboards/${id}`, {
4465
+ method: "PATCH",
4466
+ body: JSON.stringify(body)
4467
+ });
4468
+ }
4469
+ /** Delete a dashboard. */
4470
+ async deleteDashboard(wid, id) {
4471
+ await this.fetch(`w/${wid}/dashboards/${id}`, { method: "DELETE" });
4472
+ }
4473
+ /** Per-channel chat volume in the window + live needs-response backlog. */
4474
+ async getDashboardChannelStats(wid, options) {
4475
+ const params = new URLSearchParams();
4476
+ if (options?.hours !== void 0) params.append("hours", options.hours.toString());
4477
+ const query = params.toString();
4478
+ return this.fetch(
4479
+ `w/${wid}/dashboards/stats/channels${query ? `?${query}` : ""}`
4480
+ );
4481
+ }
4482
+ /** Assignment status rollup per root workflow. */
4483
+ async getDashboardWorkflowAssignmentStats(wid) {
4484
+ return this.fetch(
4485
+ `w/${wid}/dashboards/stats/workflow-assignments`
4486
+ );
4487
+ }
4488
+ };
4489
+
4259
4490
  // src/api/data-types.ts
4260
4491
  var DataTypesApi = class extends BaseApiClient {
4261
4492
  /** List all data types for a workspace, optionally filtering by archived status. */
@@ -4328,12 +4559,58 @@ var DataTypesApi = class extends BaseApiClient {
4328
4559
  if (options?.memberIds?.length) params.append("member_ids", options.memberIds.join(","));
4329
4560
  if (options?.search) params.append("search", options.search);
4330
4561
  if (options?.searchField) params.append("search_field", options.searchField);
4562
+ if (options?.dataRecordFilterId != null) {
4563
+ params.append("dataRecordFilterId", options.dataRecordFilterId.toString());
4564
+ }
4565
+ if (options?.query != null) params.append("query", JSON.stringify(options.query));
4331
4566
  if (options?.page) params.append("page", options.page.toString());
4332
4567
  if (options?.pageSize) params.append("page_size", options.pageSize.toString());
4333
4568
  return this.fetch(
4334
4569
  `w/${wid}/data-types/${dataTypeId}/records${params?.toString() ? `?${params.toString()}` : ""}`
4335
4570
  );
4336
4571
  }
4572
+ // Data-record filter APIs (saved Query IR predicates per form)
4573
+ /** List saved data-record filters, optionally scoped to one DataType. */
4574
+ async getDataRecordFilters(wid, options) {
4575
+ const params = new URLSearchParams();
4576
+ if (options?.dataTypeId != null) {
4577
+ params.append("dataTypeId", options.dataTypeId.toString());
4578
+ }
4579
+ const qs = params.toString();
4580
+ return this.fetch(
4581
+ `w/${wid}/data-record-filters${qs ? `?${qs}` : ""}`
4582
+ );
4583
+ }
4584
+ /** Get a single data-record filter by ID. */
4585
+ async getDataRecordFilter(wid, filterId) {
4586
+ return this.fetch(`w/${wid}/data-record-filters/${filterId}`);
4587
+ }
4588
+ /** Create a new saved data-record filter. */
4589
+ async createDataRecordFilter(wid, data) {
4590
+ return this.fetch(`w/${wid}/data-record-filters`, {
4591
+ method: "POST",
4592
+ body: JSON.stringify(data)
4593
+ });
4594
+ }
4595
+ /** Update a saved data-record filter. */
4596
+ async updateDataRecordFilter(wid, filterId, data) {
4597
+ return this.fetch(`w/${wid}/data-record-filters/${filterId}`, {
4598
+ method: "PUT",
4599
+ body: JSON.stringify(data)
4600
+ });
4601
+ }
4602
+ /** Delete a saved data-record filter. */
4603
+ async deleteDataRecordFilter(wid, filterId) {
4604
+ return this.fetch(`w/${wid}/data-record-filters/${filterId}`, {
4605
+ method: "DELETE"
4606
+ });
4607
+ }
4608
+ /** Get the count of records matching a saved filter. */
4609
+ async getDataRecordFilterCount(wid, filterId) {
4610
+ return this.fetch(
4611
+ `w/${wid}/data-record-filters/${filterId}/count`
4612
+ );
4613
+ }
4337
4614
  /** Get a single data record by ID. */
4338
4615
  async getDataRecord(wid, recordId) {
4339
4616
  return this.fetch(`w/${wid}/data-types/records/${recordId}`);
@@ -4446,6 +4723,38 @@ var DiscordBotsApi = class extends BaseApiClient {
4446
4723
  body: JSON.stringify(data)
4447
4724
  });
4448
4725
  }
4726
+ /**
4727
+ * Step-up preflight for the Discord account-link flow (GH #20196).
4728
+ *
4729
+ * A no-side-effect GET enforcing the same authenticated, stepped-up
4730
+ * `apps:write` session as authorize/complete-link. Call this through the
4731
+ * client *before* the full-page navigation to `/oauth/authorize`: a 401
4732
+ * `insufficient_user_authentication` triggers the SDK's enhanced-auth
4733
+ * (step-up) modal + retry, so a below-assurance session is prompted here
4734
+ * rather than hitting a raw 401 on a top-level browser navigation.
4735
+ * Resolves (204) once the session is sufficiently assured.
4736
+ */
4737
+ async discordLinkPreflight(wid) {
4738
+ return this.fetch(`w/${wid}/app-connections/discord/oauth/link/preflight`);
4739
+ }
4740
+ /**
4741
+ * Complete an authenticated Discord account link (GH #20196).
4742
+ *
4743
+ * POST-only. Exchanges the one-time opaque handle (issued by the OAuth
4744
+ * callback and carried in the `?discord_link_handle=` return param) for a
4745
+ * persisted MemberCredential. Requires an authenticated, step-up-protected
4746
+ * session with `apps:write`; a 401 `insufficient_user_authentication`
4747
+ * triggers the SDK's enhanced-auth (step-up) retry automatically.
4748
+ */
4749
+ async completeDiscordLink(wid, data) {
4750
+ return this.fetch(
4751
+ `w/${wid}/app-connections/discord/oauth/complete-link`,
4752
+ {
4753
+ method: "POST",
4754
+ body: JSON.stringify(data)
4755
+ }
4756
+ );
4757
+ }
4449
4758
  /**
4450
4759
  * Update an existing Discord bot configuration.
4451
4760
  */
@@ -4700,7 +5009,8 @@ var EventsApi = class extends BaseApiClient {
4700
5009
  if (params.taskId) searchParams.append("taskId", params.taskId.toString());
4701
5010
  if (params.dataTypeId) searchParams.append("dataTypeId", params.dataTypeId.toString());
4702
5011
  if (params.routineId) searchParams.append("routineId", params.routineId.toString());
4703
- if (params.workflowId) searchParams.append("workflowId", params.workflowId.toString());
5012
+ if (params.workflowRevisionId)
5013
+ searchParams.append("workflowRevisionId", params.workflowRevisionId.toString());
4704
5014
  if (params.journeyStepId)
4705
5015
  searchParams.append("journeyStepId", params.journeyStepId.toString());
4706
5016
  if (params.includeDisabled) searchParams.append("includeDisabled", "true");
@@ -4771,7 +5081,8 @@ var EventsApi = class extends BaseApiClient {
4771
5081
  if (options.objectType) params.append("objectType", options.objectType);
4772
5082
  if (options.eventType) params.append("eventType", options.eventType);
4773
5083
  if (options.actionType) params.append("actionType", options.actionType);
4774
- if (options.workflowId) params.append("workflowId", options.workflowId.toString());
5084
+ if (options.workflowRevisionId)
5085
+ params.append("workflowRevisionId", options.workflowRevisionId.toString());
4775
5086
  return this.fetch(
4776
5087
  `w/${wid}/event-rules/executions${params.toString() ? `?${params.toString()}` : ""}`
4777
5088
  );
@@ -4783,6 +5094,20 @@ var EventsApi = class extends BaseApiClient {
4783
5094
  body: JSON.stringify(request)
4784
5095
  });
4785
5096
  }
5097
+ /**
5098
+ * Preview which target-audience roles lack Workflow USE for the Workflows a
5099
+ * draft Routine would start. Non-persisting, non-blocking authoring assist —
5100
+ * returns warnings only (role/Workflow names + IDs; no Member data).
5101
+ */
5102
+ async previewRoutineWorkflowAccess(wid, request) {
5103
+ return this.fetch(
5104
+ `w/${wid}/routines/preview-workflow-access`,
5105
+ {
5106
+ method: "POST",
5107
+ body: JSON.stringify(request)
5108
+ }
5109
+ );
5110
+ }
4786
5111
  /** List routines with optional pagination and active status filtering. */
4787
5112
  async getRoutines(wid, options = {}) {
4788
5113
  const params = new URLSearchParams();
@@ -5353,6 +5678,17 @@ var FilesApi = class extends BaseApiClient {
5353
5678
  async getFile(wid, id) {
5354
5679
  return this.fetch(`w/${wid}/files/${id}`);
5355
5680
  }
5681
+ /**
5682
+ * Resolve a wiki-style relative path (as authored in a markdown link or
5683
+ * image) to a file. `folderId` is the linking document's folder; omit it
5684
+ * to resolve from the workspace root. Handles `.`/`..` segments and an
5685
+ * omitted `.md` extension server-side.
5686
+ */
5687
+ async resolveFilePath(wid, path, folderId) {
5688
+ const params = new URLSearchParams({ path });
5689
+ if (folderId != null) params.append("folderId", String(folderId));
5690
+ return this.fetch(`w/${wid}/files/resolve-path?${params.toString()}`);
5691
+ }
5356
5692
  /**
5357
5693
  * Download the given files + folders (folders recursively) as a single ZIP.
5358
5694
  * Returns the raw archive bytes for the caller to save.
@@ -5406,6 +5742,36 @@ var FilesApi = class extends BaseApiClient {
5406
5742
  method: "DELETE"
5407
5743
  });
5408
5744
  }
5745
+ /** List a file's version history (newest first). */
5746
+ async listFileVersions(wid, fileId) {
5747
+ return this.fetch(`w/${wid}/files/${fileId}/versions`);
5748
+ }
5749
+ /** Compare two versions of a file. For text files both raw contents are returned. */
5750
+ async getFileVersionDiff(wid, fileId, fromVersion, toVersion) {
5751
+ return this.fetch(
5752
+ `w/${wid}/files/${fileId}/versions/diff?fromVersion=${fromVersion}&toVersion=${toVersion}`
5753
+ );
5754
+ }
5755
+ /** Restore an earlier version as the file's current contents. */
5756
+ async restoreFileVersion(wid, fileId, versionNumber, changeNote) {
5757
+ return this.fetch(
5758
+ `w/${wid}/files/${fileId}/versions/${versionNumber}/restore`,
5759
+ {
5760
+ method: "POST",
5761
+ // Required JSON body: keeps this cookie-auth POST non-forgeable
5762
+ // by cross-site HTML forms (backend rejects bodyless requests).
5763
+ body: JSON.stringify(changeNote ? { changeNote } : {})
5764
+ }
5765
+ );
5766
+ }
5767
+ /**
5768
+ * Same-origin proxy URL for a version's raw contents. Mirrors the shape of
5769
+ * `FileResponse.cdnUrl`: an app-relative Next.js route that authenticates
5770
+ * via session cookies and forwards to the versioned contents endpoint.
5771
+ */
5772
+ getFileVersionContentsUrl(wid, fileId, versionNumber) {
5773
+ return `/api/w/${wid}/files/${fileId}/versions/${versionNumber}/contents`;
5774
+ }
5409
5775
  /** Convert a file to the specified format (text, markdown, or PDF). */
5410
5776
  async convertFile(wid, fileId, format = "pdf") {
5411
5777
  return this.fetch(
@@ -6046,7 +6412,7 @@ var MembersApi = class extends BaseApiClient {
6046
6412
  });
6047
6413
  }
6048
6414
  /** List workspace members with pagination, filtering, and sorting. */
6049
- async getWorkspaceMembers(wid, page = 1, pageSize = 10, filters, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId, query) {
6415
+ async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId, query) {
6050
6416
  const params = new URLSearchParams();
6051
6417
  if (memberFilterId != null) params.append("memberFilterId", memberFilterId.toString());
6052
6418
  if (query != null) params.append("query", JSON.stringify(query));
@@ -6054,13 +6420,6 @@ var MembersApi = class extends BaseApiClient {
6054
6420
  if (pageSize) params.append("pageSize", pageSize.toString());
6055
6421
  if (sortBy) params.append("sortBy", sortBy);
6056
6422
  if (sortOrder) params.append("sortOrder", sortOrder);
6057
- if (filters) {
6058
- if (Array.isArray(filters)) {
6059
- params.append("filters", JSON.stringify(filters));
6060
- } else {
6061
- params.append("filters", JSON.stringify(filters));
6062
- }
6063
- }
6064
6423
  if (search) params.append("search", search);
6065
6424
  if (role) params.append("role", role);
6066
6425
  if (memberTypes && memberTypes.length > 0) {
@@ -6156,22 +6515,6 @@ var MembersApi = class extends BaseApiClient {
6156
6515
  body: JSON.stringify(data)
6157
6516
  });
6158
6517
  }
6159
- /**
6160
- * Convert a legacy rules filter to a query-engine predicate. One-way and
6161
- * transactional: on success the filter's legacy rules are gone and
6162
- * `query` holds the equivalent IR predicate. 409 if already query-format;
6163
- * 422 when rules have no engine equivalent.
6164
- *
6165
- * With `dryRun: true` the same validation runs but nothing persists: the
6166
- * response previews the normalized predicate in `query` while `rules`
6167
- * stay intact on the filter.
6168
- */
6169
- async convertMemberFilterToQuery(wid, filterId, opts) {
6170
- const suffix = opts?.dryRun ? "?dryRun=true" : "";
6171
- return this.fetch(`w/${wid}/member-filters/${filterId}/convert${suffix}`, {
6172
- method: "PUT"
6173
- });
6174
- }
6175
6518
  /** Delete a saved member filter. */
6176
6519
  async deleteMemberFilter(wid, filterId) {
6177
6520
  return this.fetch(`w/${wid}/member-filters/${filterId}`, {
@@ -6517,6 +6860,11 @@ var MembersApi = class extends BaseApiClient {
6517
6860
  `w/${wid}/members/${memberId}/memories${qs ? `?${qs}` : ""}`
6518
6861
  );
6519
6862
  }
6863
+ async getMemberMemory(wid, memberId, key) {
6864
+ return this.fetch(
6865
+ `w/${wid}/members/${memberId}/memories/${encodeURIComponent(key)}`
6866
+ );
6867
+ }
6520
6868
  async createMemberMemory(wid, memberId, body) {
6521
6869
  return this.fetch(`w/${wid}/members/${memberId}/memories`, {
6522
6870
  method: "POST",
@@ -6585,6 +6933,25 @@ var MilestonesApi = class extends BaseApiClient {
6585
6933
  }
6586
6934
  };
6587
6935
 
6936
+ // src/api/motd.ts
6937
+ var MotdApi = class extends BaseApiClient {
6938
+ /**
6939
+ * The Message-of-the-Day tip for the workspace on a given date.
6940
+ *
6941
+ * `date` is an ISO `YYYY-MM-DD` string (defaults to today, UTC, when
6942
+ * omitted); `offset` advances the rotation ("show another"). Selection is
6943
+ * deterministic — same date + workspace + offset always returns the same
6944
+ * tip — and cycles through the tip list.
6945
+ */
6946
+ async getMotd(wid, options) {
6947
+ const params = new URLSearchParams();
6948
+ if (options?.date !== void 0) params.append("date", options.date);
6949
+ if (options?.offset !== void 0) params.append("offset", options.offset.toString());
6950
+ const query = params.toString();
6951
+ return this.fetch(`w/${wid}/motd${query ? `?${query}` : ""}`);
6952
+ }
6953
+ };
6954
+
6588
6955
  // src/api/monday.ts
6589
6956
  var MondayIntegrationApi = class extends BaseApiClient {
6590
6957
  /**
@@ -6621,6 +6988,20 @@ var MondayIntegrationApi = class extends BaseApiClient {
6621
6988
  // -----------------------------------------------------------------------
6622
6989
  // Monday.com Connection management (OAuth, status, sync, reconciliation)
6623
6990
  // -----------------------------------------------------------------------
6991
+ /**
6992
+ * Create the Monday.com connection shell (no credentials yet).
6993
+ *
6994
+ * First step of the guided setup flow: provisions the connection row so
6995
+ * the admin lands on the detail page where the OAuth callback URL is
6996
+ * shown — which they need to register their Monday.com app before they
6997
+ * have a Client ID / Secret to enter. Idempotent.
6998
+ */
6999
+ async installMondayConnection(wid) {
7000
+ return this.fetch(`w/${wid}/app-connections/monday/install`, {
7001
+ method: "POST",
7002
+ body: JSON.stringify({})
7003
+ });
7004
+ }
6624
7005
  async configureMondayConnection(wid, data) {
6625
7006
  return this.fetch(`w/${wid}/app-connections/monday/configure`, {
6626
7007
  method: "POST",
@@ -7447,6 +7828,14 @@ var OAuthApi = class extends BaseApiClient {
7447
7828
  };
7448
7829
 
7449
7830
  // src/api/phone-numbers.ts
7831
+ function appendAnalyticsFilters(params, filters) {
7832
+ if (!filters) return;
7833
+ if (filters.dateFrom) params.set("dateFrom", filters.dateFrom);
7834
+ if (filters.dateTo) params.set("dateTo", filters.dateTo);
7835
+ filters.terminationReason?.forEach((v) => params.append("terminationReason", v));
7836
+ filters.answeredBy?.forEach((v) => params.append("answeredBy", v));
7837
+ filters.memberLabel?.forEach((v) => params.append("memberLabel", v));
7838
+ }
7450
7839
  var PhoneNumbersApi = class extends BaseApiClient {
7451
7840
  /** List phone numbers in a workspace, optionally including archived. */
7452
7841
  async getPhoneNumbers(wid, options) {
@@ -7570,6 +7959,62 @@ var PhoneNumbersApi = class extends BaseApiClient {
7570
7959
  method: "POST"
7571
7960
  });
7572
7961
  }
7962
+ /**
7963
+ * Always-anonymized outbound-call analytics summary for one phone number.
7964
+ * No `analyticsSessionId` is sent — the summary carries no row-level PHI.
7965
+ */
7966
+ async getPhoneNumberOutboundAnalyticsSummary(wid, id, filters) {
7967
+ const params = new URLSearchParams();
7968
+ appendAnalyticsFilters(params, filters);
7969
+ const query = params.toString();
7970
+ return this.fetch(
7971
+ `w/${wid}/phone-numbers/${id}/analytics/summary${query ? `?${query}` : ""}`
7972
+ );
7973
+ }
7974
+ /**
7975
+ * One paginated page of outbound-call analytics detail rows. Anonymized by
7976
+ * default; `raw: true` requires the `export:admin` scope server-side and is
7977
+ * audited per response. `analyticsSessionId` keeps the callee pseudonyms
7978
+ * stable across pagination/sort within one browser session.
7979
+ */
7980
+ async getPhoneNumberOutboundAnalyticsCalls(wid, id, options) {
7981
+ const params = new URLSearchParams({
7982
+ analyticsSessionId: options.analyticsSessionId,
7983
+ page: String(options.page ?? 1),
7984
+ pageSize: String(options.pageSize ?? 50)
7985
+ });
7986
+ if (options.sort) params.set("sort", options.sort);
7987
+ if (options.sortDirection) params.set("sortDirection", options.sortDirection);
7988
+ if (options.raw) params.set("raw", "true");
7989
+ appendAnalyticsFilters(params, options.filters);
7990
+ return this.fetch(
7991
+ `w/${wid}/phone-numbers/${id}/analytics/calls?${params}`
7992
+ );
7993
+ }
7994
+ /**
7995
+ * Export outbound-call analytics as a CSV blob (respecting the current
7996
+ * filters + raw state). The server returns HTTP 400 when the result set
7997
+ * exceeds its export cap; that message is surfaced to the caller via
7998
+ * `ApiError` so the UI can toast it.
7999
+ */
8000
+ async exportPhoneNumberOutboundAnalyticsCsv(wid, id, options) {
8001
+ const params = new URLSearchParams({ analyticsSessionId: options.analyticsSessionId });
8002
+ if (options.sort) params.set("sort", options.sort);
8003
+ if (options.sortDirection) params.set("sortDirection", options.sortDirection);
8004
+ if (options.raw) params.set("raw", "true");
8005
+ appendAnalyticsFilters(params, options.filters);
8006
+ const response = await this.fetchRaw(
8007
+ `w/${wid}/phone-numbers/${id}/analytics/export?${params}`,
8008
+ {},
8009
+ [400]
8010
+ );
8011
+ if (!response.ok) {
8012
+ const data = await response.json().catch(() => ({}));
8013
+ const message = typeof data?.detail === "string" ? data.detail : "Failed to export analytics";
8014
+ throw new ApiError(message, response.status);
8015
+ }
8016
+ return response.blob();
8017
+ }
7573
8018
  };
7574
8019
 
7575
8020
  // src/api/pronunciations.ts
@@ -7908,6 +8353,20 @@ var ReportsApi = class extends BaseApiClient {
7908
8353
 
7909
8354
  // src/api/salesforce.ts
7910
8355
  var SalesforceApi = class extends BaseApiClient {
8356
+ /**
8357
+ * Create the Salesforce connection shell (no credentials yet).
8358
+ *
8359
+ * First step of the guided setup flow: provisions the connection row so
8360
+ * the admin lands on the detail page where the OAuth callback URL is
8361
+ * shown — which they need to register their Salesforce Connected App
8362
+ * before they have a Client ID / Secret to enter. Idempotent.
8363
+ */
8364
+ async installSalesforce(wid, data) {
8365
+ return this.fetch(`w/${wid}/app-connections/salesforce/install`, {
8366
+ method: "POST",
8367
+ body: JSON.stringify(data ?? {})
8368
+ });
8369
+ }
7911
8370
  async configureSalesforce(wid, data) {
7912
8371
  return this.fetch(
7913
8372
  `w/${wid}/app-connections/salesforce/configure`,
@@ -8109,6 +8568,20 @@ var ConnectionSyncApi = class extends BaseApiClient {
8109
8568
 
8110
8569
  // src/api/hubspot.ts
8111
8570
  var HubspotApi = class extends BaseApiClient {
8571
+ /**
8572
+ * Create the HubSpot connection shell (no credentials yet).
8573
+ *
8574
+ * First step of the guided setup flow: provisions the connection row so
8575
+ * the admin lands on the detail page where the OAuth callback URL is
8576
+ * shown — which they need to register their HubSpot app before they have
8577
+ * a Client ID / Secret to enter. Idempotent.
8578
+ */
8579
+ async installHubspot(wid) {
8580
+ return this.fetch(`w/${wid}/app-connections/hubspot/install`, {
8581
+ method: "POST",
8582
+ body: JSON.stringify({})
8583
+ });
8584
+ }
8112
8585
  async configureHubspot(wid, data) {
8113
8586
  return this.fetch(`w/${wid}/app-connections/hubspot/configure`, {
8114
8587
  method: "POST",
@@ -8383,19 +8856,28 @@ var SitesApi = class extends BaseApiClient {
8383
8856
  }
8384
8857
  );
8385
8858
  }
8386
- /** Verify a phone or email code and complete site authentication. */
8859
+ /**
8860
+ * Verify a phone or email code and complete site authentication.
8861
+ *
8862
+ * When the account has 2FA enrolled, the backend returns a temporary token
8863
+ * with ``requiresTwoFactor: true`` and this method does **not** mint full
8864
+ * session cookies — the caller must complete the 2FA challenge (same handoff
8865
+ * as public-site Google OAuth).
8866
+ */
8387
8867
  async siteVerifyCode(wid, siteUuid, code, phoneNumber, email) {
8388
8868
  const verifyResponse = await this.fetch(`s/${wid}/${siteUuid}/auth/verify`, {
8389
8869
  method: "POST",
8390
8870
  body: JSON.stringify({ code, phoneNumber, email })
8391
8871
  });
8392
- const completeResponse = await fetch(`/api/auth/complete`, {
8393
- method: "POST",
8394
- headers: { "Content-Type": "application/json" },
8395
- body: JSON.stringify({ token: verifyResponse.token })
8396
- });
8397
- if (!completeResponse.ok) {
8398
- throw new Error("Failed to complete authentication");
8872
+ if (!verifyResponse.requiresTwoFactor && verifyResponse.token) {
8873
+ const completeResponse = await fetch(`/api/auth/complete`, {
8874
+ method: "POST",
8875
+ headers: { "Content-Type": "application/json" },
8876
+ body: JSON.stringify({ token: verifyResponse.token })
8877
+ });
8878
+ if (!completeResponse.ok) {
8879
+ throw new Error("Failed to complete authentication");
8880
+ }
8399
8881
  }
8400
8882
  return verifyResponse;
8401
8883
  }
@@ -8882,7 +9364,15 @@ var SupervisorsApi = class extends BaseApiClient {
8882
9364
 
8883
9365
  // src/api/tasks.ts
8884
9366
  var TasksApi = class extends BaseApiClient {
8885
- /** List all tasks in a workspace, optionally filtering by workflow or including archived. */
9367
+ /**
9368
+ * List all tasks in a workspace, optionally filtering by workflow or
9369
+ * including archived.
9370
+ *
9371
+ * `workflowId` is the STABLE workflow root id — the server resolves it to
9372
+ * that workflow's draft revision's tasks. `workflowRevisionId` filters an
9373
+ * explicit revision (the read-only published-revision view). Pass at most
9374
+ * one; passing both that disagree is a 400.
9375
+ */
8886
9376
  async getTasks(wid, options = {}) {
8887
9377
  const params = new URLSearchParams();
8888
9378
  if (options.includeArchived) {
@@ -8891,6 +9381,9 @@ var TasksApi = class extends BaseApiClient {
8891
9381
  if (options.workflowId) {
8892
9382
  params.append("workflow_id", options.workflowId.toString());
8893
9383
  }
9384
+ if (options.workflowRevisionId) {
9385
+ params.append("workflow_revision_id", options.workflowRevisionId.toString());
9386
+ }
8894
9387
  if (options.sortBy) {
8895
9388
  params.append("sortBy", options.sortBy);
8896
9389
  }
@@ -9245,11 +9738,18 @@ var JourneysApi = class extends BaseApiClient {
9245
9738
  // src/api/workflows.ts
9246
9739
  var WorkflowsApi = class extends BaseApiClient {
9247
9740
  /** List all workflows in a workspace, optionally including archived ones. */
9248
- async getWorkflows(wid, archived = false) {
9249
- const url = archived ? `w/${wid}/workflows?archived=true` : `w/${wid}/workflows`;
9250
- return this.fetch(url);
9741
+ async getWorkflows(wid, options = {}) {
9742
+ const params = new URLSearchParams();
9743
+ if (options.archived) params.set("archived", "true");
9744
+ if (options.page) params.set("page", String(options.page));
9745
+ if (options.pageSize) params.set("pageSize", String(options.pageSize));
9746
+ if (options.sortBy) params.set("sortBy", options.sortBy);
9747
+ if (options.sortOrder) params.set("sortOrder", options.sortOrder);
9748
+ if (options.search) params.set("search", options.search);
9749
+ const qs = params.toString();
9750
+ return this.fetch(`w/${wid}/workflows${qs ? `?${qs}` : ""}`);
9251
9751
  }
9252
- /** Get a single workflow by ID. */
9752
+ /** Get a single workflow by ID (root + draft + active-revision summary). */
9253
9753
  async getWorkflow(wid, id) {
9254
9754
  return this.fetch(`w/${wid}/workflows/${id}`);
9255
9755
  }
@@ -9297,7 +9797,7 @@ var WorkflowsApi = class extends BaseApiClient {
9297
9797
  body: JSON.stringify(workflow)
9298
9798
  });
9299
9799
  }
9300
- /** Update an existing workflow. */
9800
+ /** Update an existing workflow's draft revision. */
9301
9801
  async updateWorkflow(wid, id, workflow) {
9302
9802
  return this.fetch(`w/${wid}/workflows/${id}`, {
9303
9803
  method: "PUT",
@@ -9318,13 +9818,15 @@ var WorkflowsApi = class extends BaseApiClient {
9318
9818
  /** Archive a workflow. */
9319
9819
  async archiveWorkflow(wid, id) {
9320
9820
  return this.fetch(`w/${wid}/workflows/${id}/archive`, {
9321
- method: "POST"
9821
+ method: "POST",
9822
+ body: JSON.stringify({})
9322
9823
  });
9323
9824
  }
9324
9825
  /** Unarchive a previously archived workflow. */
9325
9826
  async unarchiveWorkflow(wid, id) {
9326
9827
  return this.fetch(`w/${wid}/workflows/${id}/unarchive`, {
9327
- method: "POST"
9828
+ method: "POST",
9829
+ body: JSON.stringify({})
9328
9830
  });
9329
9831
  }
9330
9832
  /** Clone a workflow with a new name. */
@@ -9340,16 +9842,20 @@ var WorkflowsApi = class extends BaseApiClient {
9340
9842
  }
9341
9843
  /** Create a new workflow from a template. */
9342
9844
  async createWorkflowFromTemplate(wid, templateUuid, data) {
9343
- return this.fetch(`w/${wid}/workflows/templates/${templateUuid}/create-workflow`, {
9344
- method: "POST",
9345
- body: JSON.stringify(data)
9346
- });
9845
+ return this.fetch(
9846
+ `w/${wid}/workflows/templates/${templateUuid}/create-workflow`,
9847
+ {
9848
+ method: "POST",
9849
+ body: JSON.stringify(data)
9850
+ }
9851
+ );
9347
9852
  }
9348
9853
  /** Get task assignment statistics for a workflow within an optional date range. */
9349
- async getWorkflowTaskAssignmentStats(wid, id, fromDate, toDate) {
9854
+ async getWorkflowTaskAssignmentStats(wid, id, fromDate, toDate, workflowRevisionId) {
9350
9855
  const params = new URLSearchParams();
9351
9856
  if (fromDate) params.append("from_date", fromDate);
9352
9857
  if (toDate) params.append("to_date", toDate);
9858
+ if (workflowRevisionId) params.append("workflowRevisionId", String(workflowRevisionId));
9353
9859
  return this.fetch(
9354
9860
  `w/${wid}/workflows/${id}/task-assignment-stats?${params.toString()}`
9355
9861
  );
@@ -9399,6 +9905,24 @@ var WorkflowsApi = class extends BaseApiClient {
9399
9905
  `w/${wid}/workflows/${workflowId}/route-dry-run?${params.toString()}`
9400
9906
  );
9401
9907
  }
9908
+ // Workflow Feedback API
9909
+ /**
9910
+ * List chat feedback for a workflow (thumbs ratings + explicit/extracted rows).
9911
+ * First consumer of the workspace-plane chat_feedback table.
9912
+ */
9913
+ async getWorkflowFeedback(wid, workflowId, options = {}) {
9914
+ const params = new URLSearchParams();
9915
+ if (options.page != null) params.set("page", String(options.page));
9916
+ if (options.pageSize != null) params.set("pageSize", String(options.pageSize));
9917
+ if (options.source) params.set("source", options.source);
9918
+ if (options.rating) params.set("rating", options.rating);
9919
+ if (options.authorKind) params.set("authorKind", options.authorKind);
9920
+ if (options.includeTest != null) params.set("includeTest", String(options.includeTest));
9921
+ const qs = params.toString();
9922
+ return this.fetch(
9923
+ `w/${wid}/workflows/${workflowId}/feedback${qs ? `?${qs}` : ""}`
9924
+ );
9925
+ }
9402
9926
  // Workflow Contributors API
9403
9927
  /** List all contributors for a workflow. */
9404
9928
  async getWorkflowContributors(wid, workflowId) {
@@ -9464,58 +9988,80 @@ var WorkflowsApi = class extends BaseApiClient {
9464
9988
  body: JSON.stringify({ name })
9465
9989
  });
9466
9990
  }
9467
- // Workflow Versions API
9468
- /** List all versions of a workflow. */
9469
- async getWorkflowVersions(wid, workflowUuid) {
9470
- return this.fetch(`w/${wid}/workflows/${workflowUuid}/versions`);
9471
- }
9472
- /** Get the active version of a workflow. */
9473
- async getWorkflowVersionActive(wid, workflowUuid) {
9474
- return this.fetch(
9475
- `w/${wid}/workflows/${workflowUuid}/versions/active`
9476
- );
9991
+ /** List relational revisions for a workflow. */
9992
+ async getWorkflowRevisions(wid, workflowId) {
9993
+ return this.fetch(`w/${wid}/workflows/${workflowId}/revisions`);
9477
9994
  }
9478
- /** Get a specific version of a workflow by version number. */
9479
- async getWorkflowVersion(wid, workflowUuid, versionNumber) {
9995
+ /** Get full workflow details for one relational workflow revision. */
9996
+ async getWorkflowRevision(wid, workflowId, revisionId) {
9480
9997
  return this.fetch(
9481
- `w/${wid}/workflows/${workflowUuid}/versions/${versionNumber}`
9998
+ `w/${wid}/workflows/${workflowId}/revisions/${revisionId}`
9482
9999
  );
9483
10000
  }
9484
- /** Publish the live workflow as a new immutable version. */
9485
- async publishWorkflowVersion(wid, workflowUuid, data) {
9486
- return this.fetch(`w/${wid}/workflows/${workflowUuid}/versions`, {
10001
+ /** Freeze the workflow's draft as a published revision and clone a fresh draft.
10002
+ *
10003
+ * By default the just-published revision becomes the active revision —
10004
+ * live traffic flips to it immediately. Pass `setActive: false` to
10005
+ * publish without flipping live traffic (advanced flow).
10006
+ */
10007
+ async publishWorkflowRevision(wid, workflowId, data = {}) {
10008
+ return this.fetch(`w/${wid}/workflows/${workflowId}/publish`, {
9487
10009
  method: "POST",
9488
10010
  body: JSON.stringify(data)
9489
10011
  });
9490
10012
  }
9491
- async updateWorkflowVersion(wid, workflowUuid, versionNumber, data) {
10013
+ /** Point the workflow's active pointer at a chosen revision (pointer flip only).
10014
+ *
10015
+ * The target may be any of the workflow's published revisions.
10016
+ * Activating the draft requires `allowDraft: true` and a UI warning
10017
+ * confirmation.
10018
+ */
10019
+ async activateWorkflowRevision(wid, workflowId, revisionId, data = {}) {
9492
10020
  return this.fetch(
9493
- `w/${wid}/workflows/${workflowUuid}/versions/${versionNumber}`,
9494
- { method: "PATCH", body: JSON.stringify(data) }
10021
+ `w/${wid}/workflows/${workflowId}/revisions/${revisionId}/activate`,
10022
+ {
10023
+ method: "POST",
10024
+ body: JSON.stringify(data)
10025
+ }
9495
10026
  );
9496
10027
  }
9497
- /** Activate a published version. */
9498
- async activateWorkflowVersion(wid, workflowUuid, versionNumber) {
10028
+ /** Update a revision's curation metadata (label + publish notes).
10029
+ *
10030
+ * Applies to both the draft and published revisions; it is not a graph
10031
+ * change, so it never marks the draft dirty.
10032
+ */
10033
+ async updateWorkflowRevisionMetadata(wid, workflowId, revisionId, data) {
9499
10034
  return this.fetch(
9500
- `w/${wid}/workflows/${workflowUuid}/versions/${versionNumber}/activate`,
10035
+ `w/${wid}/workflows/${workflowId}/revisions/${revisionId}`,
9501
10036
  {
9502
- method: "POST"
10037
+ method: "PATCH",
10038
+ body: JSON.stringify(data)
9503
10039
  }
9504
10040
  );
9505
10041
  }
9506
- /** Deactivate a published version. */
9507
- async deactivateWorkflowVersion(wid, workflowUuid, versionNumber) {
10042
+ /** Compare two revisions of the same workflow.
10043
+ *
10044
+ * `against` is a revision id or UUID; when omitted the diff compares the
10045
+ * named revision against the workflow's draft. Tasks are matched by
10046
+ * stable lineage, so a rename reads as a changed `name` field.
10047
+ */
10048
+ async diffWorkflowRevisions(wid, workflowId, revisionId, against) {
10049
+ const qs = against !== void 0 ? `?against=${encodeURIComponent(String(against))}` : "";
9508
10050
  return this.fetch(
9509
- `w/${wid}/workflows/${workflowUuid}/versions/${versionNumber}/deactivate`,
9510
- {
9511
- method: "POST"
9512
- }
10051
+ `w/${wid}/workflows/${workflowId}/revisions/${revisionId}/diff${qs}`
9513
10052
  );
9514
10053
  }
9515
- /** Compare two workflow versions (0 = draft). */
9516
- async diffWorkflowVersions(wid, workflowUuid, fromVersion, toVersion) {
10054
+ /** Branch a published revision into the workflow's draft ("edit this
10055
+ * revision"): the draft becomes a fresh clone of the named published
10056
+ * revision. Pass `discardDraftChanges` to replace a dirty draft.
10057
+ */
10058
+ async editWorkflowRevisionAsDraft(wid, workflowId, revisionId, data = {}) {
9517
10059
  return this.fetch(
9518
- `w/${wid}/workflows/${workflowUuid}/versions/diff?from=${fromVersion}&to=${toVersion}`
10060
+ `w/${wid}/workflows/${workflowId}/revisions/${revisionId}/edit`,
10061
+ {
10062
+ method: "POST",
10063
+ body: JSON.stringify(data)
10064
+ }
9519
10065
  );
9520
10066
  }
9521
10067
  };
@@ -9833,6 +10379,35 @@ var WorkspacesApi = class extends BaseApiClient {
9833
10379
  async getWorkspaceSiteDomains(wid) {
9834
10380
  return this.fetch(`w/${wid}/domains/for-site`);
9835
10381
  }
10382
+ /**
10383
+ * List org domains available for enabling embeddable widgets. Widgets ride
10384
+ * on domain-ownership verification only, so the consumer gates selection on
10385
+ * `ownershipStatus === 'verified'`.
10386
+ */
10387
+ async getWorkspaceWidgetDomains(wid) {
10388
+ return this.fetch(`w/${wid}/domains/for-widget`);
10389
+ }
10390
+ /** List this workspace's widget-domain enablement entries. */
10391
+ async listWidgetDomains(wid) {
10392
+ return this.fetch(`w/${wid}/widget-domains`);
10393
+ }
10394
+ /**
10395
+ * Enable/replace the set of widgets on one verified org domain. Idempotent
10396
+ * upsert keyed by `orgDomainUuid`; the server rejects unverified domains
10397
+ * (400) and cross-org domains (404).
10398
+ */
10399
+ async upsertWidgetDomain(wid, orgDomainUuid, body) {
10400
+ return this.fetch(`w/${wid}/widget-domains/${orgDomainUuid}`, {
10401
+ method: "PUT",
10402
+ body: JSON.stringify(body)
10403
+ });
10404
+ }
10405
+ /** Remove this workspace's widget entry for a domain (disables all widgets). */
10406
+ async deleteWidgetDomain(wid, orgDomainUuid) {
10407
+ await this.fetch(`w/${wid}/widget-domains/${orgDomainUuid}`, {
10408
+ method: "DELETE"
10409
+ });
10410
+ }
9836
10411
  /** List client workspaces managed by this reseller workspace, paginated. */
9837
10412
  async getResellerWorkspaces(wid, params) {
9838
10413
  const query = new URLSearchParams();
@@ -9992,7 +10567,7 @@ var WorkspacesApi = class extends BaseApiClient {
9992
10567
  /**
9993
10568
  * Get billing dashboard data for a workspace.
9994
10569
  *
9995
- * This endpoint is available to organization owners (with org:billing scope).
10570
+ * This endpoint is available to organization owners (with org:info scope).
9996
10571
  * Superusers should use the admin endpoint via getWorkspaceUsageDashboard.
9997
10572
  *
9998
10573
  * Returns comprehensive billing information including:
@@ -10026,6 +10601,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
10026
10601
  customers: new CustomersApi(apiKey, baseUrl, customFetch),
10027
10602
  resellers: new ResellersApi(apiKey, baseUrl, customFetch),
10028
10603
  customToolkits: new CustomToolkitsApi(apiKey, baseUrl, customFetch),
10604
+ dashboards: new DashboardsApi(apiKey, baseUrl, customFetch),
10029
10605
  dataTypes: new DataTypesApi(apiKey, baseUrl, customFetch),
10030
10606
  discordBots: new DiscordBotsApi(apiKey, baseUrl, customFetch),
10031
10607
  slackApps: new SlackAppsApi(apiKey, baseUrl, customFetch),
@@ -10046,6 +10622,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
10046
10622
  mcpServers: new McpServersApi(apiKey, baseUrl, customFetch),
10047
10623
  members: new MembersApi(apiKey, baseUrl, customFetch),
10048
10624
  milestones: new MilestonesApi(apiKey, baseUrl, customFetch),
10625
+ motd: new MotdApi(apiKey, baseUrl, customFetch),
10049
10626
  confluence: new ConfluenceApi(apiKey, baseUrl, customFetch),
10050
10627
  mondayIntegration: new MondayIntegrationApi(apiKey, baseUrl, customFetch),
10051
10628
  notificationRules: new NotificationRulesApi(apiKey, baseUrl, customFetch),
@@ -10078,7 +10655,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
10078
10655
 
10079
10656
  // src/client/workspace-client.ts
10080
10657
  var WORKSPACE_METHOD_NAMES = [
10081
- "activateWorkflowVersion",
10658
+ "activateWorkflowRevision",
10082
10659
  "addGroupMember",
10083
10660
  "advanceStep",
10084
10661
  "approveWorkspaceInvitation",
@@ -10141,6 +10718,7 @@ var WORKSPACE_METHOD_NAMES = [
10141
10718
  "createCustomTool",
10142
10719
  "createCustomToolkit",
10143
10720
  "createDataRecord",
10721
+ "createDataRecordFilter",
10144
10722
  "createDataType",
10145
10723
  "createDiscordBot",
10146
10724
  "createEventRule",
@@ -10148,7 +10726,6 @@ var WORKSPACE_METHOD_NAMES = [
10148
10726
  "createExperiment",
10149
10727
  "createExperimentAssignment",
10150
10728
  "createExperimentGroup",
10151
- "convertMemberFilterToQuery",
10152
10729
  "createFhirConnection",
10153
10730
  "createFile",
10154
10731
  "createFileLabel",
@@ -10188,7 +10765,6 @@ var WORKSPACE_METHOD_NAMES = [
10188
10765
  "createWorkflowOutboundVoiceChat",
10189
10766
  "createWorkspaceMember",
10190
10767
  "createWorkspaceSupportRequest",
10191
- "deactivateWorkflowVersion",
10192
10768
  "deleteAbility",
10193
10769
  "deleteAgent",
10194
10770
  "deleteAssignment",
@@ -10204,6 +10780,7 @@ var WORKSPACE_METHOD_NAMES = [
10204
10780
  "deleteCustomTool",
10205
10781
  "deleteCustomToolkit",
10206
10782
  "deleteDataRecord",
10783
+ "deleteDataRecordFilter",
10207
10784
  "deleteDataType",
10208
10785
  "deleteDiscordBot",
10209
10786
  "deleteEnrollment",
@@ -10246,6 +10823,7 @@ var WORKSPACE_METHOD_NAMES = [
10246
10823
  "deleteSupervisor",
10247
10824
  "deleteTask",
10248
10825
  "deleteTeamsApp",
10826
+ "deleteWidgetDomain",
10249
10827
  "deleteWorkflow",
10250
10828
  "deleteWorkflowContributor",
10251
10829
  "deleteWorkflowNote",
@@ -10253,7 +10831,7 @@ var WORKSPACE_METHOD_NAMES = [
10253
10831
  "deleteWorkspaceInvitationAdmin",
10254
10832
  "denyWorkspaceInvitation",
10255
10833
  "describeSalesforceObject",
10256
- "diffWorkflowVersions",
10834
+ "diffWorkflowRevisions",
10257
10835
  "disableConfluence",
10258
10836
  "disableCustomToolkit",
10259
10837
  "disableHubspot",
@@ -10269,6 +10847,7 @@ var WORKSPACE_METHOD_NAMES = [
10269
10847
  "dismissAllNotifications",
10270
10848
  "dismissNotification",
10271
10849
  "downloadEmailAttachment",
10850
+ "editWorkflowRevisionAsDraft",
10272
10851
  "enableConfluence",
10273
10852
  "enableCustomToolkit",
10274
10853
  "enableHubspot",
@@ -10347,6 +10926,7 @@ var WORKSPACE_METHOD_NAMES = [
10347
10926
  "getCalendarSchedules",
10348
10927
  "getCalendars",
10349
10928
  "getCelContext",
10929
+ "getCharlestonTestDeliveryRecipients",
10350
10930
  "getChat",
10351
10931
  "getChatAssignmentTasks",
10352
10932
  "getChatCallbacks",
@@ -10380,6 +10960,9 @@ var WORKSPACE_METHOD_NAMES = [
10380
10960
  "getCustomToolkits",
10381
10961
  "getDataRecord",
10382
10962
  "getDataRecordChanges",
10963
+ "getDataRecordFilter",
10964
+ "getDataRecordFilterCount",
10965
+ "getDataRecordFilters",
10383
10966
  "getDataRecords",
10384
10967
  "getDataType",
10385
10968
  "getDataTypeByUuid",
@@ -10403,16 +10986,20 @@ var WORKSPACE_METHOD_NAMES = [
10403
10986
  "getFhirConnections",
10404
10987
  "getFieldIndexStatus",
10405
10988
  "getFile",
10989
+ "resolveFilePath",
10406
10990
  "getFileLabel",
10407
10991
  "getFileLabelByUuid",
10408
10992
  "getFileLabels",
10409
10993
  "getFileSharing",
10994
+ "getFileVersionContentsUrl",
10995
+ "getFileVersionDiff",
10410
10996
  "getFiles",
10411
10997
  "getFirstRunState",
10412
10998
  "getFolder",
10413
10999
  "getFolderSharing",
10414
11000
  "getFolders",
10415
11001
  "getGoogleCalendarStatus",
11002
+ "getGranteeGrants",
10416
11003
  "getHealthieAvailableSlots",
10417
11004
  "getHealthieReconciliationMatches",
10418
11005
  "getHealthieStatus",
@@ -10458,6 +11045,7 @@ var WORKSPACE_METHOD_NAMES = [
10458
11045
  "getMemberLabelByUuid",
10459
11046
  "getMemberLabels",
10460
11047
  "getMemberMemories",
11048
+ "getMemberMemory",
10461
11049
  "getMemberRecordCounts",
10462
11050
  "getMemberRole",
10463
11051
  "getMemberRoleByUuid",
@@ -10506,6 +11094,7 @@ var WORKSPACE_METHOD_NAMES = [
10506
11094
  "getPublicProducts",
10507
11095
  "getQualification",
10508
11096
  "getQualifications",
11097
+ "getRecordingInfo",
10509
11098
  "getResellerWorkspaces",
10510
11099
  "getRoutine",
10511
11100
  "getRoutineRuns",
@@ -10560,17 +11149,17 @@ var WORKSPACE_METHOD_NAMES = [
10560
11149
  "getWorkflowAccessValidation",
10561
11150
  "getWorkflowActivity",
10562
11151
  "getWorkflowConfigValidation",
11152
+ "getWorkflowFeedback",
10563
11153
  "getWorkflowContributors",
10564
11154
  "getWorkflowDeletionPreview",
10565
11155
  "getWorkflowDiagram",
10566
11156
  "getWorkflowNotes",
11157
+ "getWorkflowRevision",
11158
+ "getWorkflowRevisions",
10567
11159
  "getWorkflowRouteDryRun",
10568
11160
  "getWorkflowTaskAssignmentStats",
10569
11161
  "getWorkflowTemplates",
10570
11162
  "getWorkflowThumbnailUrl",
10571
- "getWorkflowVersion",
10572
- "getWorkflowVersionActive",
10573
- "getWorkflowVersions",
10574
11163
  "getWorkflows",
10575
11164
  "getWorkflowsActivityBatch",
10576
11165
  "getWorkspace",
@@ -10584,6 +11173,7 @@ var WORKSPACE_METHOD_NAMES = [
10584
11173
  "getWorkspaceNotices",
10585
11174
  "getWorkspaceProduct",
10586
11175
  "getWorkspaceSiteDomains",
11176
+ "getWorkspaceWidgetDomains",
10587
11177
  "getWorkspaceSubscriptions",
10588
11178
  "getWorkspaceSupportRequest",
10589
11179
  "getWorkspaceThemes",
@@ -10595,6 +11185,9 @@ var WORKSPACE_METHOD_NAMES = [
10595
11185
  "initiateCall",
10596
11186
  "initiateOutboundCall",
10597
11187
  "inspectPrompt",
11188
+ "installHubspot",
11189
+ "installMondayConnection",
11190
+ "installSalesforce",
10598
11191
  "inviteMemberCredentialUpdate",
10599
11192
  "inviteToWorkspace",
10600
11193
  "leaveWorkspace",
@@ -10606,13 +11199,13 @@ var WORKSPACE_METHOD_NAMES = [
10606
11199
  "linkMemberToSalesforce",
10607
11200
  "linkPhoneNumber",
10608
11201
  "listAbilities",
10609
- "listAgentAbilities",
10610
11202
  "listAppConnections",
10611
11203
  "listAvailableAppConnections",
10612
11204
  "listConfluencePages",
10613
11205
  "listConfluenceSpaces",
10614
11206
  "listConnectionMemberFieldKeys",
10615
11207
  "setDefaultGooglePlatformAccount",
11208
+ "listFileVersions",
10616
11209
  "listGoogleCalendars",
10617
11210
  "listHealthieAppointmentTypes",
10618
11211
  "listHealthiePatients",
@@ -10622,6 +11215,7 @@ var WORKSPACE_METHOD_NAMES = [
10622
11215
  "listScenarios",
10623
11216
  "listSnippets",
10624
11217
  "listTestChatRuns",
11218
+ "listWidgetDomains",
10625
11219
  "listWorkspaceInvitationsAdmin",
10626
11220
  "listWorkspaceSupportRequests",
10627
11221
  "markEmailAsRead",
@@ -10629,14 +11223,16 @@ var WORKSPACE_METHOD_NAMES = [
10629
11223
  "markNotificationAsRead",
10630
11224
  "previewImportMembers",
10631
11225
  "previewImportWorkspace",
11226
+ "previewRoutineWorkflowAccess",
10632
11227
  "previewSchedule",
10633
11228
  "previewTTS",
10634
11229
  "previewTemplate",
10635
11230
  "previewThinkingSound",
10636
11231
  "previewWorkspaceImport",
10637
11232
  "provisionClientWorkspace",
10638
- "publishWorkflowVersion",
11233
+ "publishWorkflowRevision",
10639
11234
  "rateMessage",
11235
+ "getChatFeedback",
10640
11236
  "reenrollMember",
10641
11237
  "registerLinkedRolesMetadata",
10642
11238
  "registerPushSubscription",
@@ -10653,8 +11249,8 @@ var WORKSPACE_METHOD_NAMES = [
10653
11249
  "requestWorkspaceMembership",
10654
11250
  "resetRoutineRuns",
10655
11251
  "resolveAccessGrant",
10656
- "resolveAgentTools",
10657
11252
  "resolveAnonymousMember",
11253
+ "restoreFileVersion",
10658
11254
  "revokeAccessGrant",
10659
11255
  "revokeApiKey",
10660
11256
  "revokeICalToken",
@@ -10720,6 +11316,7 @@ var WORKSPACE_METHOD_NAMES = [
10720
11316
  "updateCustomTool",
10721
11317
  "updateCustomToolkit",
10722
11318
  "updateDataRecord",
11319
+ "updateDataRecordFilter",
10723
11320
  "updateDataType",
10724
11321
  "updateDiscordBot",
10725
11322
  "updateEventAttendee",
@@ -10772,12 +11369,13 @@ var WORKSPACE_METHOD_NAMES = [
10772
11369
  "updateWorkflow",
10773
11370
  "updateWorkflowContributor",
10774
11371
  "updateWorkflowNote",
10775
- "updateWorkflowVersion",
11372
+ "updateWorkflowRevisionMetadata",
10776
11373
  "updateWorkspace",
10777
11374
  "updateWorkspaceDefaults",
10778
11375
  "updateWorkspaceInvitationAdmin",
10779
11376
  "updateWorkspaceThemes",
10780
11377
  "upsertDataRecord",
11378
+ "upsertWidgetDomain",
10781
11379
  "validateDataTypeSlug",
10782
11380
  "validateWorkflowName"
10783
11381
  ];
@@ -10809,6 +11407,7 @@ function bindAccessGrantsMethods(target, accessGrants) {
10809
11407
  target.revokeAccessGrant = accessGrants.revokeAccessGrant.bind(accessGrants);
10810
11408
  target.getAccessGrants = accessGrants.getAccessGrants.bind(accessGrants);
10811
11409
  target.getMemberGrants = accessGrants.getMemberGrants.bind(accessGrants);
11410
+ target.getGranteeGrants = accessGrants.getGranteeGrants.bind(accessGrants);
10812
11411
  }
10813
11412
 
10814
11413
  // src/client/bindings/agent-tasks.ts
@@ -10828,8 +11427,6 @@ function bindAgentsMethods(target, agents) {
10828
11427
  target.deleteAgent = agents.deleteAgent.bind(agents);
10829
11428
  target.archiveAgent = agents.archiveAgent.bind(agents);
10830
11429
  target.unarchiveAgent = agents.unarchiveAgent.bind(agents);
10831
- target.resolveAgentTools = agents.resolveAgentTools.bind(agents);
10832
- target.listAgentAbilities = agents.listAgentAbilities.bind(agents);
10833
11430
  }
10834
11431
 
10835
11432
  // src/client/bindings/tasks.ts
@@ -10848,6 +11445,7 @@ function bindTasksMethods(target, tasks, abilities) {
10848
11445
  target.createAbility = abilities.createAbility.bind(abilities);
10849
11446
  target.updateAbility = abilities.updateAbility.bind(abilities);
10850
11447
  target.deleteAbility = abilities.deleteAbility.bind(abilities);
11448
+ target.getCharlestonTestDeliveryRecipients = abilities.getCharlestonTestDeliveryRecipients.bind(abilities);
10851
11449
  }
10852
11450
 
10853
11451
  // src/client/bindings/chats.ts
@@ -10868,6 +11466,8 @@ function bindChatsMethods(target, chats) {
10868
11466
  target.createWorkflowOutboundVoiceChat = chats.createWorkflowOutboundVoiceChat.bind(chats);
10869
11467
  target.deleteChat = chats.deleteChat.bind(chats);
10870
11468
  target.updateChat = chats.updateChat.bind(chats);
11469
+ target.getChatModelOverride = chats.getChatModelOverride.bind(chats);
11470
+ target.updateChatModelOverride = chats.updateChatModelOverride.bind(chats);
10871
11471
  target.updateChatMute = chats.updateChatMute.bind(chats);
10872
11472
  target.updateChatNeedsResponse = chats.updateChatNeedsResponse.bind(chats);
10873
11473
  target.summarizeChat = chats.summarizeChat.bind(chats);
@@ -10877,6 +11477,7 @@ function bindChatsMethods(target, chats) {
10877
11477
  target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
10878
11478
  target.sendAssistantMessage = chats.sendAssistantMessage.bind(chats);
10879
11479
  target.rateMessage = chats.rateMessage.bind(chats);
11480
+ target.getChatFeedback = chats.getChatFeedback.bind(chats);
10880
11481
  target.getChatAssignmentTasks = chats.getChatAssignmentTasks.bind(chats);
10881
11482
  target.createChatCompletion = chats.createChatCompletion.bind(chats);
10882
11483
  target.exportChats = chats.exportChats.bind(chats);
@@ -10905,11 +11506,28 @@ function bindCallsMethods(target, calls, cel) {
10905
11506
  target.initiateCall = calls.initiateCall.bind(calls);
10906
11507
  target.getVoiceToken = calls.getVoiceToken.bind(calls);
10907
11508
  target.getMessageTiming = calls.getMessageTiming.bind(calls);
11509
+ target.getRecordingInfo = calls.getRecordingInfo.bind(calls);
10908
11510
  target.listChatRecordings = calls.listChatRecordings.bind(calls);
10909
11511
  target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
10910
11512
  target.getCelContext = cel.getCelContext.bind(cel);
10911
11513
  }
10912
11514
 
11515
+ // src/client/bindings/dashboards.ts
11516
+ function bindDashboardsMethods(target, dashboards) {
11517
+ target.getDashboards = dashboards.getDashboards.bind(dashboards);
11518
+ target.getDashboard = dashboards.getDashboard.bind(dashboards);
11519
+ target.createDashboard = dashboards.createDashboard.bind(dashboards);
11520
+ target.updateDashboard = dashboards.updateDashboard.bind(dashboards);
11521
+ target.deleteDashboard = dashboards.deleteDashboard.bind(dashboards);
11522
+ target.getDashboardChannelStats = dashboards.getDashboardChannelStats.bind(dashboards);
11523
+ target.getDashboardWorkflowAssignmentStats = dashboards.getDashboardWorkflowAssignmentStats.bind(dashboards);
11524
+ }
11525
+
11526
+ // src/client/bindings/motd.ts
11527
+ function bindMotdMethods(target, motd) {
11528
+ target.getMotd = motd.getMotd.bind(motd);
11529
+ }
11530
+
10913
11531
  // src/client/bindings/data-types.ts
10914
11532
  function bindDataTypesMethods(target, dataTypes) {
10915
11533
  target.getDataTypes = dataTypes.getDataTypes.bind(dataTypes);
@@ -10933,6 +11551,12 @@ function bindDataTypesMethods(target, dataTypes) {
10933
11551
  target.getFieldIndexStatus = dataTypes.getFieldIndexStatus.bind(dataTypes);
10934
11552
  target.validateDataTypeSlug = dataTypes.validateDataTypeSlug.bind(dataTypes);
10935
11553
  target.getMemberRecordCounts = dataTypes.getMemberRecordCounts.bind(dataTypes);
11554
+ target.getDataRecordFilters = dataTypes.getDataRecordFilters.bind(dataTypes);
11555
+ target.getDataRecordFilter = dataTypes.getDataRecordFilter.bind(dataTypes);
11556
+ target.createDataRecordFilter = dataTypes.createDataRecordFilter.bind(dataTypes);
11557
+ target.updateDataRecordFilter = dataTypes.updateDataRecordFilter.bind(dataTypes);
11558
+ target.deleteDataRecordFilter = dataTypes.deleteDataRecordFilter.bind(dataTypes);
11559
+ target.getDataRecordFilterCount = dataTypes.getDataRecordFilterCount.bind(dataTypes);
10936
11560
  }
10937
11561
 
10938
11562
  // src/client/bindings/members.ts
@@ -10959,7 +11583,6 @@ function bindMembersMethods(target, members) {
10959
11583
  target.getMemberFilter = members.getMemberFilter.bind(members);
10960
11584
  target.createMemberFilter = members.createMemberFilter.bind(members);
10961
11585
  target.updateMemberFilter = members.updateMemberFilter.bind(members);
10962
- target.convertMemberFilterToQuery = members.convertMemberFilterToQuery.bind(members);
10963
11586
  target.deleteMemberFilter = members.deleteMemberFilter.bind(members);
10964
11587
  target.getMemberFilterCount = members.getMemberFilterCount.bind(members);
10965
11588
  target.getMemberLabels = members.getMemberLabels.bind(members);
@@ -10987,6 +11610,7 @@ function bindMembersMethods(target, members) {
10987
11610
  target.resolveAnonymousMember = members.resolveAnonymousMember.bind(members);
10988
11611
  target.expireAnonymousMember = members.expireAnonymousMember.bind(members);
10989
11612
  target.getMemberMemories = members.getMemberMemories.bind(members);
11613
+ target.getMemberMemory = members.getMemberMemory.bind(members);
10990
11614
  target.createMemberMemory = members.createMemberMemory.bind(members);
10991
11615
  target.deleteMemberMemory = members.deleteMemberMemory.bind(members);
10992
11616
  target.getMemberSyncLinks = members.getMemberSyncLinks.bind(members);
@@ -11044,6 +11668,10 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
11044
11668
  target.listPushSubscriptions = workspaces.listPushSubscriptions.bind(workspaces);
11045
11669
  target.getWorkspaceEmailDomains = workspaces.getWorkspaceEmailDomains.bind(workspaces);
11046
11670
  target.getWorkspaceSiteDomains = workspaces.getWorkspaceSiteDomains.bind(workspaces);
11671
+ target.getWorkspaceWidgetDomains = workspaces.getWorkspaceWidgetDomains.bind(workspaces);
11672
+ target.listWidgetDomains = workspaces.listWidgetDomains.bind(workspaces);
11673
+ target.upsertWidgetDomain = workspaces.upsertWidgetDomain.bind(workspaces);
11674
+ target.deleteWidgetDomain = workspaces.deleteWidgetDomain.bind(workspaces);
11047
11675
  target.listWorkspaceInvitations = signupRequests.listWorkspaceInvitations.bind(signupRequests);
11048
11676
  target.listWorkspaceInvitationsAdmin = signupRequests.listWorkspaceInvitationsAdmin.bind(signupRequests);
11049
11677
  target.getWorkspaceInvitation = signupRequests.getWorkspaceInvitation.bind(signupRequests);
@@ -11063,6 +11691,7 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
11063
11691
  function bindAuthMethods(target, auth, assignments) {
11064
11692
  target.getUserAccount = auth.getUserAccount.bind(auth);
11065
11693
  target.updateUserAccount = auth.updateUserAccount.bind(auth);
11694
+ target.recordAcquisition = auth.recordAcquisition.bind(auth);
11066
11695
  target.login = auth.login.bind(auth);
11067
11696
  target.resendCode = auth.resendCode.bind(auth);
11068
11697
  target.verifyCodeWith2FA = auth.verifyCodeWith2FA.bind(auth);
@@ -11173,6 +11802,11 @@ function bindFilesMethods(target, files) {
11173
11802
  target.uploadFile = files.uploadFile.bind(files);
11174
11803
  target.updateFile = files.updateFile.bind(files);
11175
11804
  target.deleteFile = files.deleteFile.bind(files);
11805
+ target.resolveFilePath = files.resolveFilePath.bind(files);
11806
+ target.listFileVersions = files.listFileVersions.bind(files);
11807
+ target.getFileVersionDiff = files.getFileVersionDiff.bind(files);
11808
+ target.restoreFileVersion = files.restoreFileVersion.bind(files);
11809
+ target.getFileVersionContentsUrl = files.getFileVersionContentsUrl.bind(files);
11176
11810
  target.convertFile = files.convertFile.bind(files);
11177
11811
  target.generateFileUploadUrl = files.generateFileUploadUrl.bind(files);
11178
11812
  target.getFolders = files.getFolders.bind(files);
@@ -11223,6 +11857,7 @@ function bindEventsMethods(target, events) {
11223
11857
  target.getRoutineRuns = events.getRoutineRuns.bind(events);
11224
11858
  target.resetRoutineRuns = events.resetRoutineRuns.bind(events);
11225
11859
  target.previewSchedule = events.previewSchedule.bind(events);
11860
+ target.previewRoutineWorkflowAccess = events.previewRoutineWorkflowAccess.bind(events);
11226
11861
  }
11227
11862
 
11228
11863
  // src/client/bindings/experiments.ts
@@ -11267,18 +11902,18 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
11267
11902
  target.createWorkflowNote = workflowNotes.createWorkflowNote.bind(workflowNotes);
11268
11903
  target.updateWorkflowNote = workflowNotes.updateWorkflowNote.bind(workflowNotes);
11269
11904
  target.deleteWorkflowNote = workflowNotes.deleteWorkflowNote.bind(workflowNotes);
11905
+ target.getWorkflowFeedback = workflows.getWorkflowFeedback.bind(workflows);
11270
11906
  target.getWorkflowContributors = workflows.getWorkflowContributors.bind(workflows);
11271
11907
  target.createWorkflowContributor = workflows.createWorkflowContributor.bind(workflows);
11272
11908
  target.updateWorkflowContributor = workflows.updateWorkflowContributor.bind(workflows);
11273
11909
  target.deleteWorkflowContributor = workflows.deleteWorkflowContributor.bind(workflows);
11274
- target.getWorkflowVersions = workflows.getWorkflowVersions.bind(workflows);
11275
- target.getWorkflowVersionActive = workflows.getWorkflowVersionActive.bind(workflows);
11276
- target.getWorkflowVersion = workflows.getWorkflowVersion.bind(workflows);
11277
- target.publishWorkflowVersion = workflows.publishWorkflowVersion.bind(workflows);
11278
- target.updateWorkflowVersion = workflows.updateWorkflowVersion.bind(workflows);
11279
- target.activateWorkflowVersion = workflows.activateWorkflowVersion.bind(workflows);
11280
- target.deactivateWorkflowVersion = workflows.deactivateWorkflowVersion.bind(workflows);
11281
- target.diffWorkflowVersions = workflows.diffWorkflowVersions.bind(workflows);
11910
+ target.getWorkflowRevisions = workflows.getWorkflowRevisions.bind(workflows);
11911
+ target.getWorkflowRevision = workflows.getWorkflowRevision.bind(workflows);
11912
+ target.publishWorkflowRevision = workflows.publishWorkflowRevision.bind(workflows);
11913
+ target.activateWorkflowRevision = workflows.activateWorkflowRevision.bind(workflows);
11914
+ target.updateWorkflowRevisionMetadata = workflows.updateWorkflowRevisionMetadata.bind(workflows);
11915
+ target.diffWorkflowRevisions = workflows.diffWorkflowRevisions.bind(workflows);
11916
+ target.editWorkflowRevisionAsDraft = workflows.editWorkflowRevisionAsDraft.bind(workflows);
11282
11917
  target.getWorkspaceBuilders = workflows.getWorkspaceBuilders.bind(workflows);
11283
11918
  target.getWorkspaceBuilder = workflows.getWorkspaceBuilder.bind(workflows);
11284
11919
  target.buildWorkspace = workflows.buildWorkspace.bind(workflows);
@@ -11343,6 +11978,9 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
11343
11978
  target.getArchiveBlockers = phoneNumbers.getArchiveBlockers.bind(phoneNumbers);
11344
11979
  target.archivePhoneNumber = phoneNumbers.archivePhoneNumber.bind(phoneNumbers);
11345
11980
  target.getPhoneNumberCalls = phoneNumbers.getPhoneNumberCalls.bind(phoneNumbers);
11981
+ target.getPhoneNumberOutboundAnalyticsSummary = phoneNumbers.getPhoneNumberOutboundAnalyticsSummary.bind(phoneNumbers);
11982
+ target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
11983
+ target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
11346
11984
  target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
11347
11985
  target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
11348
11986
  target.fetchVoicemailAudio = phoneNumbers.fetchVoicemailAudio.bind(phoneNumbers);
@@ -11472,6 +12110,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
11472
12110
  target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
11473
12111
  target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
11474
12112
  target.getMondayCurrentUserInfo = mondayIntegration.getCurrentUserInfo.bind(mondayIntegration);
12113
+ target.installMondayConnection = mondayIntegration.installMondayConnection.bind(mondayIntegration);
11475
12114
  target.configureMondayConnection = mondayIntegration.configureMondayConnection.bind(mondayIntegration);
11476
12115
  target.getMondayConnectionStatus = mondayIntegration.getMondayConnectionStatus.bind(mondayIntegration);
11477
12116
  target.authorizeMondayConnection = mondayIntegration.authorizeMondayConnection.bind(mondayIntegration);
@@ -11506,6 +12145,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
11506
12145
  target.getDiscordBotAccounts = discordBots.getDiscordBotAccounts.bind(discordBots);
11507
12146
  target.getMyCredentials = discordBots.getMyCredentials.bind(discordBots);
11508
12147
  target.unlinkCredential = discordBots.unlinkCredential.bind(discordBots);
12148
+ target.completeDiscordLink = discordBots.completeDiscordLink.bind(discordBots);
12149
+ target.discordLinkPreflight = discordBots.discordLinkPreflight.bind(discordBots);
11509
12150
  target.getSlackApps = slackApps.getSlackApps.bind(slackApps);
11510
12151
  target.getSlackApp = slackApps.getSlackApp.bind(slackApps);
11511
12152
  target.createSlackApp = slackApps.createSlackApp.bind(slackApps);
@@ -11578,6 +12219,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
11578
12219
  target.deleteConfluence = confluence.deleteConfluence.bind(confluence);
11579
12220
  target.listConfluenceSpaces = confluence.listConfluenceSpaces.bind(confluence);
11580
12221
  target.listConfluencePages = confluence.listConfluencePages.bind(confluence);
12222
+ target.installSalesforce = salesforce.installSalesforce.bind(salesforce);
11581
12223
  target.configureSalesforce = salesforce.configureSalesforce.bind(salesforce);
11582
12224
  target.startSalesforceOAuth = salesforce.startSalesforceOAuth.bind(salesforce);
11583
12225
  target.getSalesforceStatus = salesforce.getSalesforceStatus.bind(salesforce);
@@ -11595,6 +12237,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
11595
12237
  target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
11596
12238
  target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
11597
12239
  target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
12240
+ target.installHubspot = hubspot.installHubspot.bind(hubspot);
11598
12241
  target.configureHubspot = hubspot.configureHubspot.bind(hubspot);
11599
12242
  target.startHubspotOAuth = hubspot.startHubspotOAuth.bind(hubspot);
11600
12243
  target.getHubspotStatus = hubspot.getHubspotStatus.bind(hubspot);
@@ -11827,6 +12470,7 @@ var GravityRailClient = class {
11827
12470
  createAbility;
11828
12471
  updateAbility;
11829
12472
  deleteAbility;
12473
+ getCharlestonTestDeliveryRecipients;
11830
12474
  // Chats API
11831
12475
  getChats;
11832
12476
  getChat;
@@ -11844,6 +12488,8 @@ var GravityRailClient = class {
11844
12488
  createWorkflowOutboundVoiceChat;
11845
12489
  deleteChat;
11846
12490
  updateChat;
12491
+ getChatModelOverride;
12492
+ updateChatModelOverride;
11847
12493
  updateChatMute;
11848
12494
  updateChatNeedsResponse;
11849
12495
  summarizeChat;
@@ -11853,6 +12499,7 @@ var GravityRailClient = class {
11853
12499
  initiateOutboundCall;
11854
12500
  sendAssistantMessage;
11855
12501
  rateMessage;
12502
+ getChatFeedback;
11856
12503
  getChatAssignmentTasks;
11857
12504
  createChatCompletion;
11858
12505
  exportChats;
@@ -11878,6 +12525,7 @@ var GravityRailClient = class {
11878
12525
  initiateCall;
11879
12526
  getVoiceToken;
11880
12527
  getMessageTiming;
12528
+ getRecordingInfo;
11881
12529
  listChatRecordings;
11882
12530
  getCallRecordingDownloadUrl;
11883
12531
  getCelContext;
@@ -11903,6 +12551,12 @@ var GravityRailClient = class {
11903
12551
  getFieldIndexStatus;
11904
12552
  validateDataTypeSlug;
11905
12553
  getMemberRecordCounts;
12554
+ getDataRecordFilters;
12555
+ getDataRecordFilter;
12556
+ createDataRecordFilter;
12557
+ updateDataRecordFilter;
12558
+ deleteDataRecordFilter;
12559
+ getDataRecordFilterCount;
11906
12560
  // Members API
11907
12561
  getCurrentMember;
11908
12562
  getOwnedMembers;
@@ -11926,7 +12580,6 @@ var GravityRailClient = class {
11926
12580
  getMemberFilter;
11927
12581
  createMemberFilter;
11928
12582
  updateMemberFilter;
11929
- convertMemberFilterToQuery;
11930
12583
  deleteMemberFilter;
11931
12584
  getMemberFilterCount;
11932
12585
  getMemberLabels;
@@ -11958,6 +12611,7 @@ var GravityRailClient = class {
11958
12611
  expireAnonymousMember;
11959
12612
  // Member Memories
11960
12613
  getMemberMemories;
12614
+ getMemberMemory;
11961
12615
  createMemberMemory;
11962
12616
  deleteMemberMemory;
11963
12617
  // Member Sync Links
@@ -11975,8 +12629,6 @@ var GravityRailClient = class {
11975
12629
  deleteAgent;
11976
12630
  archiveAgent;
11977
12631
  unarchiveAgent;
11978
- resolveAgentTools;
11979
- listAgentAbilities;
11980
12632
  // Qualifications API
11981
12633
  getQualifications;
11982
12634
  getQualification;
@@ -12002,6 +12654,16 @@ var GravityRailClient = class {
12002
12654
  createPersona;
12003
12655
  updatePersona;
12004
12656
  deletePersona;
12657
+ // Dashboards API
12658
+ getDashboards;
12659
+ getDashboard;
12660
+ createDashboard;
12661
+ updateDashboard;
12662
+ deleteDashboard;
12663
+ getDashboardChannelStats;
12664
+ getDashboardWorkflowAssignmentStats;
12665
+ // MOTD API
12666
+ getMotd;
12005
12667
  // Journeys API
12006
12668
  getJourneys;
12007
12669
  getJourney;
@@ -12069,6 +12731,7 @@ var GravityRailClient = class {
12069
12731
  revokeAccessGrant;
12070
12732
  getAccessGrants;
12071
12733
  getMemberGrants;
12734
+ getGranteeGrants;
12072
12735
  // Prompts API
12073
12736
  inspectPrompt;
12074
12737
  // Workspaces API
@@ -12118,6 +12781,10 @@ var GravityRailClient = class {
12118
12781
  getUsageDashboard;
12119
12782
  getWorkspaceEmailDomains;
12120
12783
  getWorkspaceSiteDomains;
12784
+ getWorkspaceWidgetDomains;
12785
+ listWidgetDomains;
12786
+ upsertWidgetDomain;
12787
+ deleteWidgetDomain;
12121
12788
  // Org API
12122
12789
  listOrgDomains;
12123
12790
  registerOrgDomain;
@@ -12158,6 +12825,7 @@ var GravityRailClient = class {
12158
12825
  // Auth API
12159
12826
  getUserAccount;
12160
12827
  updateUserAccount;
12828
+ recordAcquisition;
12161
12829
  login;
12162
12830
  resendCode;
12163
12831
  verifyCodeWith2FA;
@@ -12257,11 +12925,16 @@ var GravityRailClient = class {
12257
12925
  // Files API
12258
12926
  getFiles;
12259
12927
  getFile;
12928
+ resolveFilePath;
12260
12929
  downloadFilesZip;
12261
12930
  createFile;
12262
12931
  uploadFile;
12263
12932
  updateFile;
12264
12933
  deleteFile;
12934
+ listFileVersions;
12935
+ getFileVersionDiff;
12936
+ restoreFileVersion;
12937
+ getFileVersionContentsUrl;
12265
12938
  convertFile;
12266
12939
  generateFileUploadUrl;
12267
12940
  getFolders;
@@ -12310,6 +12983,7 @@ var GravityRailClient = class {
12310
12983
  getRoutineRuns;
12311
12984
  resetRoutineRuns;
12312
12985
  previewSchedule;
12986
+ previewRoutineWorkflowAccess;
12313
12987
  // Workflows API
12314
12988
  getWorkflows;
12315
12989
  getWorkflow;
@@ -12334,18 +13008,18 @@ var GravityRailClient = class {
12334
13008
  createWorkflowNote;
12335
13009
  updateWorkflowNote;
12336
13010
  deleteWorkflowNote;
13011
+ getWorkflowFeedback;
12337
13012
  getWorkflowContributors;
12338
13013
  createWorkflowContributor;
12339
13014
  updateWorkflowContributor;
12340
13015
  deleteWorkflowContributor;
12341
- getWorkflowVersions;
12342
- getWorkflowVersionActive;
12343
- getWorkflowVersion;
12344
- publishWorkflowVersion;
12345
- updateWorkflowVersion;
12346
- activateWorkflowVersion;
12347
- deactivateWorkflowVersion;
12348
- diffWorkflowVersions;
13016
+ getWorkflowRevisions;
13017
+ getWorkflowRevision;
13018
+ publishWorkflowRevision;
13019
+ activateWorkflowRevision;
13020
+ updateWorkflowRevisionMetadata;
13021
+ diffWorkflowRevisions;
13022
+ editWorkflowRevisionAsDraft;
12349
13023
  getWorkspaceBuilders;
12350
13024
  getWorkspaceBuilder;
12351
13025
  buildWorkspace;
@@ -12404,6 +13078,9 @@ var GravityRailClient = class {
12404
13078
  getArchiveBlockers;
12405
13079
  archivePhoneNumber;
12406
13080
  getPhoneNumberCalls;
13081
+ getPhoneNumberOutboundAnalyticsSummary;
13082
+ getPhoneNumberOutboundAnalyticsCalls;
13083
+ exportPhoneNumberOutboundAnalyticsCsv;
12407
13084
  getPhoneNumberMessages;
12408
13085
  getPhoneNumberVoicemails;
12409
13086
  fetchVoicemailAudio;
@@ -12522,6 +13199,7 @@ var GravityRailClient = class {
12522
13199
  getMondayBoardGroups;
12523
13200
  getMondayCurrentUserInfo;
12524
13201
  // Monday.com Connection API
13202
+ installMondayConnection;
12525
13203
  configureMondayConnection;
12526
13204
  getMondayConnectionStatus;
12527
13205
  authorizeMondayConnection;
@@ -12557,6 +13235,8 @@ var GravityRailClient = class {
12557
13235
  getDiscordBotAccounts;
12558
13236
  getMyCredentials;
12559
13237
  unlinkCredential;
13238
+ completeDiscordLink;
13239
+ discordLinkPreflight;
12560
13240
  // Slack Apps API
12561
13241
  getSlackApps;
12562
13242
  getSlackApp;
@@ -12635,6 +13315,7 @@ var GravityRailClient = class {
12635
13315
  listConfluenceSpaces;
12636
13316
  listConfluencePages;
12637
13317
  // Salesforce API
13318
+ installSalesforce;
12638
13319
  configureSalesforce;
12639
13320
  startSalesforceOAuth;
12640
13321
  getSalesforceStatus;
@@ -12653,6 +13334,7 @@ var GravityRailClient = class {
12653
13334
  searchSalesforceRecords;
12654
13335
  importSalesforceMembers;
12655
13336
  // HubSpot API
13337
+ installHubspot;
12656
13338
  configureHubspot;
12657
13339
  startHubspotOAuth;
12658
13340
  getHubspotStatus;
@@ -12754,6 +13436,8 @@ var GravityRailClient = class {
12754
13436
  bindQualificationsMethods(this, apis.qualifications);
12755
13437
  bindPersonasMethods(this, apis.personas);
12756
13438
  bindQueriesMethods(this, apis.queries);
13439
+ bindDashboardsMethods(this, apis.dashboards);
13440
+ bindMotdMethods(this, apis.motd);
12757
13441
  bindJourneysMethods(this, apis.journeys);
12758
13442
  bindExperimentsMethods(this, apis.experiments);
12759
13443
  bindOperatorMethods(this, apis.operatorGroups);
@@ -12946,6 +13630,7 @@ var GravityRailClient = class {
12946
13630
  CalendarSource,
12947
13631
  CalendarsApi,
12948
13632
  CallsApi,
13633
+ CapabilityClass,
12949
13634
  ChatsApi,
12950
13635
  ConfluenceApi,
12951
13636
  ConnectionSyncApi,
@@ -12969,6 +13654,7 @@ var GravityRailClient = class {
12969
13654
  DataSensitivity,
12970
13655
  DataTypeRecordScope,
12971
13656
  DataTypesApi,
13657
+ DeclaredDataUse,
12972
13658
  DiscordBotsApi,
12973
13659
  DriverMode,
12974
13660
  EmailDnsRecordType,
@@ -13029,7 +13715,14 @@ var GravityRailClient = class {
13029
13715
  PERMISSION_VERIFY,
13030
13716
  PIDS_DISPOSITIONS,
13031
13717
  PIDS_SOURCES,
13718
+ POSITIVE_RATING_THRESHOLD,
13032
13719
  PersonasApi,
13720
+ PhiDataPolicy,
13721
+ PhiPolicyReason,
13722
+ PhiPolicySource,
13723
+ PhiPostureDecision,
13724
+ PhiPostureReasonCode,
13725
+ PhiPostureTransitionResponseTargetType,
13033
13726
  PhoneNumbersApi,
13034
13727
  ProductType,
13035
13728
  PromptsApi,
@@ -13078,6 +13771,7 @@ var GravityRailClient = class {
13078
13771
  ToolkitState,
13079
13772
  ToolkitsApi,
13080
13773
  VoiceApi,
13774
+ WIDGET_SLUGS,
13081
13775
  WorkflowAccessWarningResourceType,
13082
13776
  WorkflowNotesApi,
13083
13777
  WorkflowResourceType,
@@ -13098,6 +13792,7 @@ var GravityRailClient = class {
13098
13792
  bindChatsMethods,
13099
13793
  bindCommunicationsMethods,
13100
13794
  bindCustomersMethods,
13795
+ bindDashboardsMethods,
13101
13796
  bindDataTypesMethods,
13102
13797
  bindEventsMethods,
13103
13798
  bindExperimentsMethods,
@@ -13105,6 +13800,7 @@ var GravityRailClient = class {
13105
13800
  bindIntegrationsMethods,
13106
13801
  bindJourneysMethods,
13107
13802
  bindMembersMethods,
13803
+ bindMotdMethods,
13108
13804
  bindOperatorMethods,
13109
13805
  bindOrgMethods,
13110
13806
  bindPersonasMethods,
@@ -13138,12 +13834,14 @@ var GravityRailClient = class {
13138
13834
  getFeaturesByVisibility,
13139
13835
  getMissingDependencies,
13140
13836
  getResourceMetadata,
13837
+ getRevisionState,
13141
13838
  getScopeFromProductType,
13142
13839
  getTTSProvider,
13143
13840
  getVoiceModelId,
13144
13841
  initializeFeatures,
13145
13842
  isChatType,
13146
13843
  isFeatureAvailable,
13844
+ isPositiveRating,
13147
13845
  isRegistryInitialized,
13148
13846
  isSMSDeliveryFailureStatus,
13149
13847
  parseExperimentStatCount,