@gravity-rail/sdk 0.57.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -94,6 +94,8 @@ __export(src_exports, {
94
94
  EventRuleActionType: () => EventRuleActionType,
95
95
  EventRuleEventType: () => EventRuleEventType,
96
96
  EventRuleObjectType: () => EventRuleObjectType,
97
+ FaxDocumentRefusal: () => FaxDocumentRefusal,
98
+ FaxRunRefusal: () => FaxRunRefusal,
97
99
  FeatureCategory: () => FeatureCategory,
98
100
  FeatureVisibility: () => FeatureVisibility,
99
101
  FeedCursorRejection: () => FeedCursorRejection,
@@ -121,6 +123,7 @@ __export(src_exports, {
121
123
  MAX_EMAIL_SEND_RECIPIENTS: () => MAX_EMAIL_SEND_RECIPIENTS,
122
124
  MEMBER_RELATIONSHIP_KINDS: () => MEMBER_RELATIONSHIP_KINDS,
123
125
  McpServerState: () => McpServerState,
126
+ MedicalBillingApi: () => MedicalBillingApi,
124
127
  MemberFeature: () => MemberFeature,
125
128
  MemberFilterBuilder: () => MemberFilterBuilder,
126
129
  MemberImportIssueCode: () => MemberImportIssueCode,
@@ -204,6 +207,7 @@ __export(src_exports, {
204
207
  SendingStopState: () => SendingStopState,
205
208
  SetInstallationPolicyRequestUpgradePolicy: () => SetInstallationPolicyRequestUpgradePolicy,
206
209
  SiteDnsRecordType: () => SiteDnsRecordType,
210
+ StediApi: () => StediApi,
207
211
  SupervisorsApi: () => SupervisorsApi,
208
212
  TTS_MODEL_AWS_POLLY_GENERATIVE: () => TTS_MODEL_AWS_POLLY_GENERATIVE,
209
213
  TTS_MODEL_AWS_POLLY_NEURAL: () => TTS_MODEL_AWS_POLLY_NEURAL,
@@ -226,6 +230,7 @@ __export(src_exports, {
226
230
  UpdateMemberContactPointRequestContactType: () => UpdateMemberContactPointRequestContactType,
227
231
  UpdateMemberContactPointRequestPurpose: () => UpdateMemberContactPointRequestPurpose,
228
232
  UpdateMemberContactPointRequestSharing: () => UpdateMemberContactPointRequestSharing,
233
+ VoiceIntegrityUseCase: () => VoiceIntegrityUseCase,
229
234
  WIDGET_SLUGS: () => WIDGET_SLUGS,
230
235
  WorkflowBuilder: () => WorkflowBuilder,
231
236
  WorkflowRoutingMode: () => WorkflowRoutingMode,
@@ -775,13 +780,13 @@ var ResourceWorkflowsApi = class extends BaseApiClient {
775
780
  * pin a Workflow item; archived Workflows are excluded unless asked for.
776
781
  */
777
782
  async listResourceWorkflows(wid, params) {
778
- const query = new URLSearchParams();
779
- if (params?.page !== void 0) query.set("page", String(params.page));
780
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
783
+ const query2 = new URLSearchParams();
784
+ if (params?.page !== void 0) query2.set("page", String(params.page));
785
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
781
786
  if (params?.includeArchived !== void 0) {
782
- query.set("includeArchived", String(params.includeArchived));
787
+ query2.set("includeArchived", String(params.includeArchived));
783
788
  }
784
- const qs = query.toString();
789
+ const qs = query2.toString();
785
790
  return this.fetch(
786
791
  `w/${encodeURIComponent(wid)}/resource-workflows${qs ? `?${qs}` : ""}`
787
792
  );
@@ -795,10 +800,10 @@ function bundlesPath(wid, ...segments) {
795
800
  return tail ? `${base}/${tail}` : base;
796
801
  }
797
802
  function pageQuery(params) {
798
- const query = new URLSearchParams();
799
- if (params?.page !== void 0) query.set("page", String(params.page));
800
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
801
- const qs = query.toString();
803
+ const query2 = new URLSearchParams();
804
+ if (params?.page !== void 0) query2.set("page", String(params.page));
805
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
806
+ const qs = query2.toString();
802
807
  return qs ? `?${qs}` : "";
803
808
  }
804
809
  var BundlesApi = class extends BaseApiClient {
@@ -992,9 +997,9 @@ var InstallationsApi = class extends BaseApiClient {
992
997
  * between. `to` must be newer than the version the installation holds.
993
998
  */
994
999
  async previewInstallationUpgrade(wid, installationUuid, to) {
995
- const query = new URLSearchParams({ to: String(to) });
1000
+ const query2 = new URLSearchParams({ to: String(to) });
996
1001
  return this.fetch(
997
- `${installationsPath(wid, installationUuid, "upgrade-preview")}?${query.toString()}`
1002
+ `${installationsPath(wid, installationUuid, "upgrade-preview")}?${query2.toString()}`
998
1003
  );
999
1004
  }
1000
1005
  /**
@@ -2185,9 +2190,9 @@ var CalendarsApi = class extends BaseApiClient {
2185
2190
  const params = new URLSearchParams();
2186
2191
  if (options?.page !== void 0) params.set("page", String(options.page));
2187
2192
  if (options?.pageSize !== void 0) params.set("pageSize", String(options.pageSize));
2188
- const query = params.size ? `?${params}` : "";
2193
+ const query2 = params.size ? `?${params}` : "";
2189
2194
  return this.fetch(
2190
- `w/${wid}/calendar-event-types${query}`
2195
+ `w/${wid}/calendar-event-types${query2}`
2191
2196
  );
2192
2197
  }
2193
2198
  /** Get a single calendar event type by ID. */
@@ -2930,9 +2935,9 @@ var ConfluenceApi = class extends BaseApiClient {
2930
2935
  const qs = new URLSearchParams();
2931
2936
  if (params?.cursor) qs.set("cursor", params.cursor);
2932
2937
  if (params?.limit) qs.set("limit", String(params.limit));
2933
- const query = qs.toString();
2938
+ const query2 = qs.toString();
2934
2939
  return this.fetch(
2935
- `w/${wid}/app-connections/confluence/spaces${query ? `?${query}` : ""}`
2940
+ `w/${wid}/app-connections/confluence/spaces${query2 ? `?${query2}` : ""}`
2936
2941
  );
2937
2942
  }
2938
2943
  async listConfluencePages(wid, spaceId, params) {
@@ -3064,9 +3069,9 @@ var DashboardsApi = class extends BaseApiClient {
3064
3069
  async getDashboardChannelStats(wid, options) {
3065
3070
  const params = new URLSearchParams();
3066
3071
  if (options?.hours !== void 0) params.append("hours", options.hours.toString());
3067
- const query = params.toString();
3072
+ const query2 = params.toString();
3068
3073
  return this.fetch(
3069
- `w/${wid}/dashboards/stats/channels${query ? `?${query}` : ""}`
3074
+ `w/${wid}/dashboards/stats/channels${query2 ? `?${query2}` : ""}`
3070
3075
  );
3071
3076
  }
3072
3077
  /**
@@ -3078,9 +3083,9 @@ var DashboardsApi = class extends BaseApiClient {
3078
3083
  async getDashboardWorkflowAssignmentStats(wid, options) {
3079
3084
  const params = new URLSearchParams();
3080
3085
  if (options?.hours != null) params.append("hours", options.hours.toString());
3081
- const query = params.toString();
3086
+ const query2 = params.toString();
3082
3087
  return this.fetch(
3083
- `w/${wid}/dashboards/stats/workflow-assignments${query ? `?${query}` : ""}`
3088
+ `w/${wid}/dashboards/stats/workflow-assignments${query2 ? `?${query2}` : ""}`
3084
3089
  );
3085
3090
  }
3086
3091
  /**
@@ -3104,9 +3109,9 @@ var DashboardsApi = class extends BaseApiClient {
3104
3109
  if (options?.pageSize !== void 0) params.append("pageSize", options.pageSize.toString());
3105
3110
  if (options?.check !== void 0) params.append("check", options.check);
3106
3111
  if (options?.severity !== void 0) params.append("severity", options.severity);
3107
- const query = params.toString();
3112
+ const query2 = params.toString();
3108
3113
  return this.fetch(
3109
- `w/${wid}/configuration-health${query ? `?${query}` : ""}`
3114
+ `w/${wid}/configuration-health${query2 ? `?${query2}` : ""}`
3110
3115
  );
3111
3116
  }
3112
3117
  };
@@ -3176,9 +3181,9 @@ var DataTypesApi = class extends BaseApiClient {
3176
3181
  if (options?.beforeVersion !== void 0)
3177
3182
  params.set("beforeVersion", String(options.beforeVersion));
3178
3183
  if (options?.limit !== void 0) params.set("limit", String(options.limit));
3179
- const query = params.toString();
3184
+ const query2 = params.toString();
3180
3185
  return this.fetch(
3181
- `w/${wid}/data-types/${id}/schema-versions${query ? `?${query}` : ""}`
3186
+ `w/${wid}/data-types/${id}/schema-versions${query2 ? `?${query2}` : ""}`
3182
3187
  );
3183
3188
  }
3184
3189
  /** List all data types for a workspace, optionally filtering by archived status. */
@@ -3812,10 +3817,10 @@ var TeamsAppsApi = class extends BaseApiClient {
3812
3817
  var EventsApi = class extends BaseApiClient {
3813
3818
  /** List event rules in the workspace, paginated. */
3814
3819
  async getEventRules(wid, params) {
3815
- const query = new URLSearchParams();
3816
- if (params?.page !== void 0) query.set("page", String(params.page));
3817
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
3818
- const qs = query.toString() ? `?${query.toString()}` : "";
3820
+ const query2 = new URLSearchParams();
3821
+ if (params?.page !== void 0) query2.set("page", String(params.page));
3822
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
3823
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
3819
3824
  return this.fetch(`w/${wid}/event-rules${qs}`);
3820
3825
  }
3821
3826
  /** Get the available action types that can be used in event rules. */
@@ -4027,11 +4032,11 @@ var EventsApi = class extends BaseApiClient {
4027
4032
  var ExperimentsApi = class extends BaseApiClient {
4028
4033
  /** List experiments with group summaries and assignment counts. */
4029
4034
  async getExperiments(wid, params) {
4030
- const query = new URLSearchParams();
4031
- if (params?.page !== void 0) query.set("page", String(params.page));
4032
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
4033
- if (params?.includeArchived) query.set("includeArchived", "true");
4034
- const qs = query.toString() ? `?${query.toString()}` : "";
4035
+ const query2 = new URLSearchParams();
4036
+ if (params?.page !== void 0) query2.set("page", String(params.page));
4037
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
4038
+ if (params?.includeArchived) query2.set("includeArchived", "true");
4039
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
4035
4040
  return this.fetch(`w/${wid}/experiments${qs}`);
4036
4041
  }
4037
4042
  /** Get a single experiment by ID (includes groups). */
@@ -4348,11 +4353,11 @@ var FhirConnectionsApi = class extends BaseApiClient {
4348
4353
  }
4349
4354
  // ==================== Member Sync ====================
4350
4355
  async fhirListLinkedMembers(wid, connectionId, params) {
4351
- const query = new URLSearchParams();
4352
- if (params?.page !== void 0) query.set("page", String(params.page));
4353
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
4354
- if (params?.search?.trim()) query.set("search", params.search.trim());
4355
- const qs = query.toString() ? `?${query.toString()}` : "";
4356
+ const query2 = new URLSearchParams();
4357
+ if (params?.page !== void 0) query2.set("page", String(params.page));
4358
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
4359
+ if (params?.search?.trim()) query2.set("search", params.search.trim());
4360
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
4356
4361
  return this.fetch(
4357
4362
  `w/${wid}/app-connections/fhir/connections/${connectionId}/linked-members${qs}`
4358
4363
  );
@@ -4474,6 +4479,18 @@ var ClaimMdApi = class extends BaseApiClient {
4474
4479
  }
4475
4480
  };
4476
4481
 
4482
+ // src/api/stedi.ts
4483
+ var StediApi = class extends BaseApiClient {
4484
+ async getStediConnections(wid) {
4485
+ return this.fetch(`w/${wid}/app-connections/stedi/status`);
4486
+ }
4487
+ async getStediConnectionStatus(wid, connectionUuid) {
4488
+ return this.fetch(
4489
+ `w/${wid}/app-connections/stedi/${connectionUuid}/status`
4490
+ );
4491
+ }
4492
+ };
4493
+
4477
4494
  // src/types/generated/inbound_fax.ts
4478
4495
  var InboundFaxStatus = {
4479
4496
  pending: "pending",
@@ -4502,13 +4519,13 @@ var DocumoFaxApi = class extends BaseApiClient {
4502
4519
  * failures an operator filtering by date is hunting for.
4503
4520
  */
4504
4521
  async listDocumoFaxes(wid, params) {
4505
- const query = new URLSearchParams();
4506
- if (params?.page !== void 0) query.set("page", String(params.page));
4507
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
4508
- params?.status?.forEach((value) => query.append("status", value));
4509
- if (params?.receivedAfter) query.set("receivedAfter", params.receivedAfter);
4510
- if (params?.receivedBefore) query.set("receivedBefore", params.receivedBefore);
4511
- const suffix2 = query.toString() === "" ? "" : `?${query.toString()}`;
4522
+ const query2 = new URLSearchParams();
4523
+ if (params?.page !== void 0) query2.set("page", String(params.page));
4524
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
4525
+ params?.status?.forEach((value) => query2.append("status", value));
4526
+ if (params?.receivedAfter) query2.set("receivedAfter", params.receivedAfter);
4527
+ if (params?.receivedBefore) query2.set("receivedBefore", params.receivedBefore);
4528
+ const suffix2 = query2.toString() === "" ? "" : `?${query2.toString()}`;
4512
4529
  return this.fetch(
4513
4530
  `w/${wid}/app-connections/documo-fax/faxes${suffix2}`
4514
4531
  );
@@ -4583,20 +4600,20 @@ var HealthieApi = class extends BaseApiClient {
4583
4600
  );
4584
4601
  }
4585
4602
  async getLinkedHealthieMembers(wid, params) {
4586
- const query = new URLSearchParams();
4587
- if (params?.page !== void 0) query.set("page", String(params.page));
4588
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
4589
- if (params?.search?.trim()) query.set("search", params.search.trim());
4590
- const qs = query.toString() ? `?${query.toString()}` : "";
4603
+ const query2 = new URLSearchParams();
4604
+ if (params?.page !== void 0) query2.set("page", String(params.page));
4605
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
4606
+ if (params?.search?.trim()) query2.set("search", params.search.trim());
4607
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
4591
4608
  return this.fetch(
4592
4609
  `w/${wid}/app-connections/healthie/reconciliation/linked${qs}`
4593
4610
  );
4594
4611
  }
4595
4612
  async getHealthieReconciliationMatches(wid, params) {
4596
- const query = new URLSearchParams();
4597
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
4598
- if (params?.offset !== void 0) query.set("offset", String(params.offset));
4599
- const qs = query.toString() ? `?${query.toString()}` : "";
4613
+ const query2 = new URLSearchParams();
4614
+ if (params?.limit !== void 0) query2.set("limit", String(params.limit));
4615
+ if (params?.offset !== void 0) query2.set("offset", String(params.offset));
4616
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
4600
4617
  return this.fetch(
4601
4618
  `w/${wid}/app-connections/healthie/reconciliation/matches${qs}`
4602
4619
  );
@@ -4613,17 +4630,17 @@ var HealthieApi = class extends BaseApiClient {
4613
4630
  });
4614
4631
  }
4615
4632
  async listHealthieAppointmentTypes(wid, providerId) {
4616
- const query = new URLSearchParams();
4617
- if (providerId) query.set("provider_id", providerId);
4618
- const qs = query.toString() ? `?${query.toString()}` : "";
4633
+ const query2 = new URLSearchParams();
4634
+ if (providerId) query2.set("provider_id", providerId);
4635
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
4619
4636
  return this.fetch(
4620
4637
  `w/${wid}/app-connections/healthie/appointment-types${qs}`
4621
4638
  );
4622
4639
  }
4623
4640
  async listHealthiePatients(wid, keywords) {
4624
- const query = new URLSearchParams();
4625
- if (keywords?.trim()) query.set("keywords", keywords.trim());
4626
- const qs = query.toString() ? `?${query.toString()}` : "";
4641
+ const query2 = new URLSearchParams();
4642
+ if (keywords?.trim()) query2.set("keywords", keywords.trim());
4643
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
4627
4644
  return this.fetch(
4628
4645
  `w/${wid}/app-connections/healthie/patients${qs}`
4629
4646
  );
@@ -5146,9 +5163,9 @@ var InboxesApi = class extends BaseApiClient {
5146
5163
  const params = new URLSearchParams();
5147
5164
  if (period.dateFrom) params.append("date_from", period.dateFrom);
5148
5165
  if (period.dateTo) params.append("date_to", period.dateTo);
5149
- const query = params.toString();
5166
+ const query2 = params.toString();
5150
5167
  return this.fetch(
5151
- `w/${wid}/inboxes/${inboxId}/outbound-email-stats${query ? `?${query}` : ""}`
5168
+ `w/${wid}/inboxes/${inboxId}/outbound-email-stats${query2 ? `?${query2}` : ""}`
5152
5169
  );
5153
5170
  }
5154
5171
  /** List email threads in an inbox. */
@@ -5553,10 +5570,10 @@ var MembersApi = class extends BaseApiClient {
5553
5570
  });
5554
5571
  }
5555
5572
  /** List workspace members with pagination, filtering, and sorting. */
5556
- async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId, query) {
5573
+ async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId, query2) {
5557
5574
  const params = new URLSearchParams();
5558
5575
  if (memberFilterId != null) params.append("memberFilterId", memberFilterId.toString());
5559
- if (query != null) params.append("query", JSON.stringify(query));
5576
+ if (query2 != null) params.append("query", JSON.stringify(query2));
5560
5577
  if (page) params.append("page", page.toString());
5561
5578
  if (pageSize) params.append("pageSize", pageSize.toString());
5562
5579
  if (sortBy) params.append("sortBy", sortBy);
@@ -6094,37 +6111,6 @@ var MembersApi = class extends BaseApiClient {
6094
6111
  }
6095
6112
  );
6096
6113
  }
6097
- // ===== Member Memories =====
6098
- async getMemberMemories(wid, memberId, options) {
6099
- const params = new URLSearchParams();
6100
- if (options?.type) params.append("type", options.type);
6101
- if (options?.query) params.append("query", options.query);
6102
- if (options?.limit) params.append("limit", options.limit.toString());
6103
- const qs = params.toString();
6104
- return this.fetch(
6105
- `w/${wid}/members/${memberId}/memories${qs ? `?${qs}` : ""}`
6106
- );
6107
- }
6108
- async getMemberMemory(wid, memberId, key) {
6109
- return this.fetch(
6110
- `w/${wid}/members/${memberId}/memories/${encodeURIComponent(key)}`
6111
- );
6112
- }
6113
- async createMemberMemory(wid, memberId, body) {
6114
- return this.fetch(`w/${wid}/members/${memberId}/memories`, {
6115
- method: "POST",
6116
- body: JSON.stringify(body)
6117
- });
6118
- }
6119
- async deleteMemberMemory(wid, memberId, memoryKey, options) {
6120
- const params = new URLSearchParams();
6121
- if (options?.type) params.append("type", options.type);
6122
- const qs = params.toString();
6123
- await this.fetch(
6124
- `w/${wid}/members/${memberId}/memories/${encodeURIComponent(memoryKey)}${qs ? `?${qs}` : ""}`,
6125
- { method: "DELETE" }
6126
- );
6127
- }
6128
6114
  /** Bulk-create members in a workspace. */
6129
6115
  async bulkCreateMembers(wid, request) {
6130
6116
  return this.fetch(`w/${wid}/members/bulk`, {
@@ -6417,8 +6403,8 @@ var MotdApi = class extends BaseApiClient {
6417
6403
  const params = new URLSearchParams();
6418
6404
  if (options?.date !== void 0) params.append("date", options.date);
6419
6405
  if (options?.offset !== void 0) params.append("offset", options.offset.toString());
6420
- const query = params.toString();
6421
- return this.fetch(`w/${wid}/motd${query ? `?${query}` : ""}`);
6406
+ const query2 = params.toString();
6407
+ return this.fetch(`w/${wid}/motd${query2 ? `?${query2}` : ""}`);
6422
6408
  }
6423
6409
  };
6424
6410
 
@@ -6528,21 +6514,21 @@ var MondayIntegrationApi = class extends BaseApiClient {
6528
6514
  });
6529
6515
  }
6530
6516
  async getLinkedMondayMembers(wid, params) {
6531
- const query = new URLSearchParams();
6532
- if (params?.board_id) query.set("board_id", params.board_id);
6533
- if (params?.page !== void 0) query.set("page", String(params.page));
6534
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
6535
- if (params?.search?.trim()) query.set("search", params.search.trim());
6536
- const qs = query.toString() ? `?${query.toString()}` : "";
6517
+ const query2 = new URLSearchParams();
6518
+ if (params?.board_id) query2.set("board_id", params.board_id);
6519
+ if (params?.page !== void 0) query2.set("page", String(params.page));
6520
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
6521
+ if (params?.search?.trim()) query2.set("search", params.search.trim());
6522
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
6537
6523
  return this.fetch(
6538
6524
  `w/${wid}/app-connections/monday/reconciliation/linked${qs}`
6539
6525
  );
6540
6526
  }
6541
6527
  async getMondayReconciliationMatches(wid, params) {
6542
- const query = new URLSearchParams();
6543
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
6544
- if (params?.offset !== void 0) query.set("offset", String(params.offset));
6545
- const qs = query.toString() ? `?${query.toString()}` : "";
6528
+ const query2 = new URLSearchParams();
6529
+ if (params?.limit !== void 0) query2.set("limit", String(params.limit));
6530
+ if (params?.offset !== void 0) query2.set("offset", String(params.offset));
6531
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
6546
6532
  return this.fetch(
6547
6533
  `w/${wid}/app-connections/monday/reconciliation/matches${qs}`
6548
6534
  );
@@ -6566,11 +6552,11 @@ var MondayIntegrationApi = class extends BaseApiClient {
6566
6552
  );
6567
6553
  }
6568
6554
  async getLinkedRecords(wid, params) {
6569
- const query = new URLSearchParams();
6570
- if (params?.board_id) query.set("board_id", params.board_id);
6571
- if (params?.page !== void 0) query.set("page", String(params.page));
6572
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
6573
- const qs = query.toString() ? `?${query.toString()}` : "";
6555
+ const query2 = new URLSearchParams();
6556
+ if (params?.board_id) query2.set("board_id", params.board_id);
6557
+ if (params?.page !== void 0) query2.set("page", String(params.page));
6558
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
6559
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
6574
6560
  return this.fetch(
6575
6561
  `w/${wid}/app-connections/monday/linked-records${qs}`
6576
6562
  );
@@ -6593,10 +6579,10 @@ var MondayIntegrationApi = class extends BaseApiClient {
6593
6579
  * connection is parked for re-authorization.
6594
6580
  */
6595
6581
  async getMondaySyncLogs(wid, params) {
6596
- const query = new URLSearchParams();
6597
- if (params?.pageSize) query.set("pageSize", String(params.pageSize));
6598
- if (params?.cursor) query.set("cursor", params.cursor);
6599
- const qs = query.toString() ? `?${query.toString()}` : "";
6582
+ const query2 = new URLSearchParams();
6583
+ if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
6584
+ if (params?.cursor) query2.set("cursor", params.cursor);
6585
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
6600
6586
  return this.fetch(
6601
6587
  `w/${wid}/app-connections/monday/sync/logs${qs}`
6602
6588
  );
@@ -6611,13 +6597,13 @@ var InterventionRequestsApi = class extends BaseApiClient {
6611
6597
  }
6612
6598
  /** List intervention requests in a workspace, newest first. */
6613
6599
  async getInterventionRequests(wid, params = {}) {
6614
- const query = new URLSearchParams();
6615
- if (params.kind) query.set("kind", params.kind);
6616
- if (params.openOnly) query.set("openOnly", "true");
6617
- if (params.chatId !== void 0) query.set("chatId", String(params.chatId));
6618
- if (params.unroutedOnly) query.set("unroutedOnly", "true");
6619
- if (params.limit !== void 0) query.set("limit", String(params.limit));
6620
- const qs = query.toString();
6600
+ const query2 = new URLSearchParams();
6601
+ if (params.kind) query2.set("kind", params.kind);
6602
+ if (params.openOnly) query2.set("openOnly", "true");
6603
+ if (params.chatId !== void 0) query2.set("chatId", String(params.chatId));
6604
+ if (params.unroutedOnly) query2.set("unroutedOnly", "true");
6605
+ if (params.limit !== void 0) query2.set("limit", String(params.limit));
6606
+ const qs = query2.toString();
6621
6607
  return this.fetch(
6622
6608
  `w/${wid}/intervention-requests${qs ? `?${qs}` : ""}`
6623
6609
  );
@@ -6806,7 +6792,7 @@ var OrgApi = class extends BaseApiClient {
6806
6792
  async getOrgAiConnectorPolicy(orgIdOrUuid) {
6807
6793
  return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
6808
6794
  }
6809
- /** Set the AI connector mode: `any` or `allowlist`. Requires `org:admin`. */
6795
+ /** Set the AI connector mode: `any`, `allowlist` or `none`. Requires `org:admin`. */
6810
6796
  async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
6811
6797
  return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
6812
6798
  method: "PUT",
@@ -7057,13 +7043,13 @@ var OrgApi = class extends BaseApiClient {
7057
7043
  * Search for available phone numbers to purchase from Twilio.
7058
7044
  */
7059
7045
  async searchPhoneNumbers(orgUuid, params) {
7060
- const query = new URLSearchParams();
7061
- if (params?.country) query.set("country", params.country);
7062
- if (params?.numberType) query.set("number_type", params.numberType);
7063
- if (params?.areaCode) query.set("area_code", params.areaCode);
7064
- if (params?.contains) query.set("contains", params.contains);
7065
- if (params?.limit) query.set("limit", String(params.limit));
7066
- const qs = query.toString();
7046
+ const query2 = new URLSearchParams();
7047
+ if (params?.country) query2.set("country", params.country);
7048
+ if (params?.numberType) query2.set("number_type", params.numberType);
7049
+ if (params?.areaCode) query2.set("area_code", params.areaCode);
7050
+ if (params?.contains) query2.set("contains", params.contains);
7051
+ if (params?.limit) query2.set("limit", String(params.limit));
7052
+ const qs = query2.toString();
7067
7053
  return this.fetch(
7068
7054
  `o/${orgUuid}/phone-numbers/search${qs ? `?${qs}` : ""}`
7069
7055
  );
@@ -7163,9 +7149,9 @@ var OrgApi = class extends BaseApiClient {
7163
7149
  * Disable email support for an org domain.
7164
7150
  */
7165
7151
  async disableOrgDomainEmail(orgIdOrUuid, domainUuid, confirm = false) {
7166
- const query = `?confirm=${confirm ? "true" : "false"}`;
7152
+ const query2 = `?confirm=${confirm ? "true" : "false"}`;
7167
7153
  const response = await this.fetchRaw(
7168
- `o/${orgIdOrUuid}/domains/${domainUuid}/email${query}`,
7154
+ `o/${orgIdOrUuid}/domains/${domainUuid}/email${query2}`,
7169
7155
  { method: "DELETE" },
7170
7156
  [409]
7171
7157
  );
@@ -7246,9 +7232,9 @@ var OrgApi = class extends BaseApiClient {
7246
7232
  * Disable custom site routing for an org domain.
7247
7233
  */
7248
7234
  async disableOrgDomainSite(orgIdOrUuid, domainUuid, confirm = false) {
7249
- const query = `?confirm=${confirm ? "true" : "false"}`;
7235
+ const query2 = `?confirm=${confirm ? "true" : "false"}`;
7250
7236
  const response = await this.fetchRaw(
7251
- `o/${orgIdOrUuid}/domains/${domainUuid}/site${query}`,
7237
+ `o/${orgIdOrUuid}/domains/${domainUuid}/site${query2}`,
7252
7238
  { method: "DELETE" },
7253
7239
  [409]
7254
7240
  );
@@ -7724,9 +7710,9 @@ var OrgApi = class extends BaseApiClient {
7724
7710
  * endpoint and sit in a workspace it actually covers.
7725
7711
  */
7726
7712
  async getOrgWebhookEventSample(orgIdOrUuid, eventType, endpointUuid) {
7727
- const query = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
7713
+ const query2 = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
7728
7714
  return this.fetch(
7729
- `o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query}`
7715
+ `o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query2}`
7730
7716
  );
7731
7717
  }
7732
7718
  /**
@@ -7956,8 +7942,8 @@ var PhoneNumbersApi = class extends BaseApiClient {
7956
7942
  if (options?.isArchived !== void 0) {
7957
7943
  params.set("is_archived", String(options.isArchived));
7958
7944
  }
7959
- const query = params.toString();
7960
- return this.fetch(`w/${wid}/phone-numbers${query ? `?${query}` : ""}`);
7945
+ const query2 = params.toString();
7946
+ return this.fetch(`w/${wid}/phone-numbers${query2 ? `?${query2}` : ""}`);
7961
7947
  }
7962
7948
  /** List phone numbers available for provisioning. */
7963
7949
  async getAvailablePhoneNumbers(wid) {
@@ -8114,9 +8100,9 @@ var PhoneNumbersApi = class extends BaseApiClient {
8114
8100
  async getPhoneNumberOutboundAnalyticsSummary(wid, id, filters) {
8115
8101
  const params = new URLSearchParams();
8116
8102
  appendAnalyticsFilters(params, filters);
8117
- const query = params.toString();
8103
+ const query2 = params.toString();
8118
8104
  return this.fetch(
8119
- `w/${wid}/phone-numbers/${id}/analytics/summary${query ? `?${query}` : ""}`
8105
+ `w/${wid}/phone-numbers/${id}/analytics/summary${query2 ? `?${query2}` : ""}`
8120
8106
  );
8121
8107
  }
8122
8108
  /**
@@ -8427,24 +8413,24 @@ var QueriesApi = class extends BaseApiClient {
8427
8413
  });
8428
8414
  }
8429
8415
  /** Structure / field / access / cost validation without execution. */
8430
- async validateQuery(wid, query) {
8416
+ async validateQuery(wid, query2) {
8431
8417
  return this.fetch(`w/${wid}/queries/validate`, {
8432
8418
  method: "POST",
8433
- body: JSON.stringify({ query })
8419
+ body: JSON.stringify({ query: query2 })
8434
8420
  });
8435
8421
  }
8436
8422
  /** Bounded sample run (limit capped server-side). */
8437
- async previewQuery(wid, query, mode) {
8423
+ async previewQuery(wid, query2, mode) {
8438
8424
  return this.fetch(`w/${wid}/queries/preview`, {
8439
8425
  method: "POST",
8440
- body: JSON.stringify({ query, mode })
8426
+ body: JSON.stringify({ query: query2, mode })
8441
8427
  });
8442
8428
  }
8443
8429
  /** Execute a query (rows / count / aggregate). */
8444
- async runQuery(wid, query, mode) {
8430
+ async runQuery(wid, query2, mode) {
8445
8431
  return this.fetch(`w/${wid}/queries/run`, {
8446
8432
  method: "POST",
8447
- body: JSON.stringify({ query, mode })
8433
+ body: JSON.stringify({ query: query2, mode })
8448
8434
  });
8449
8435
  }
8450
8436
  };
@@ -8505,10 +8491,10 @@ var QualificationsApi = class extends BaseApiClient {
8505
8491
  }
8506
8492
  /** List qualifications in a workspace, paginated. */
8507
8493
  async getQualifications(wid, params) {
8508
- const query = new URLSearchParams();
8509
- if (params?.page !== void 0) query.set("page", String(params.page));
8510
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
8511
- const qs = query.toString() ? `?${query.toString()}` : "";
8494
+ const query2 = new URLSearchParams();
8495
+ if (params?.page !== void 0) query2.set("page", String(params.page));
8496
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
8497
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
8512
8498
  return this.fetch(`w/${wid}/qualifications${qs}`);
8513
8499
  }
8514
8500
  /** Get a single qualification by ID. */
@@ -8523,9 +8509,9 @@ var QualificationsApi = class extends BaseApiClient {
8523
8509
  }
8524
8510
  // ===== Scenarios =====
8525
8511
  async listScenarios(wid, qualificationId, params) {
8526
- const query = new URLSearchParams();
8527
- if (params?.includeArchived) query.set("include_archived", "true");
8528
- const qs = query.toString() ? `?${query.toString()}` : "";
8512
+ const query2 = new URLSearchParams();
8513
+ if (params?.includeArchived) query2.set("include_archived", "true");
8514
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
8529
8515
  return this.fetch(`w/${wid}/qualifications/${qualificationId}/scenarios${qs}`);
8530
8516
  }
8531
8517
  async createScenario(wid, qualificationId, data) {
@@ -8558,19 +8544,19 @@ var QualificationsApi = class extends BaseApiClient {
8558
8544
  * `workflowRevisionId`. Omitting both keeps the unfiltered list.
8559
8545
  */
8560
8546
  async listTestChatRuns(wid, workflowId, params) {
8561
- const query = new URLSearchParams();
8562
- if (params?.scenarioId !== void 0) query.set("scenarioId", String(params.scenarioId));
8547
+ const query2 = new URLSearchParams();
8548
+ if (params?.scenarioId !== void 0) query2.set("scenarioId", String(params.scenarioId));
8563
8549
  if (params?.assistantChatModelId !== void 0) {
8564
- query.set("assistantChatModelId", params.assistantChatModelId);
8550
+ query2.set("assistantChatModelId", params.assistantChatModelId);
8565
8551
  }
8566
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
8552
+ if (params?.limit !== void 0) query2.set("limit", String(params.limit));
8567
8553
  if (params?.workflowRevisionId !== void 0) {
8568
- query.set("workflow_revision_id", String(params.workflowRevisionId));
8554
+ query2.set("workflow_revision_id", String(params.workflowRevisionId));
8569
8555
  }
8570
8556
  if (params?.includeEarlierRevisions !== void 0) {
8571
- query.set("include_earlier_revisions", String(params.includeEarlierRevisions));
8557
+ query2.set("include_earlier_revisions", String(params.includeEarlierRevisions));
8572
8558
  }
8573
- const qs = query.toString() ? `?${query.toString()}` : "";
8559
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
8574
8560
  return this.fetch(
8575
8561
  `w/${wid}/qualifications/workflows/${workflowId}/test-chat-runs${qs}`
8576
8562
  );
@@ -8585,11 +8571,11 @@ var QualificationsApi = class extends BaseApiClient {
8585
8571
  * revision it describes and whether it is the current one.
8586
8572
  */
8587
8573
  async listScenarioHealthSummaries(wid, workflowId, params) {
8588
- const query = new URLSearchParams();
8574
+ const query2 = new URLSearchParams();
8589
8575
  if (params?.workflowRevisionId !== void 0) {
8590
- query.set("workflow_revision_id", String(params.workflowRevisionId));
8576
+ query2.set("workflow_revision_id", String(params.workflowRevisionId));
8591
8577
  }
8592
- const qs = query.toString() ? `?${query.toString()}` : "";
8578
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
8593
8579
  return this.fetch(
8594
8580
  `w/${wid}/qualifications/workflows/${workflowId}/scenario-health-summaries${qs}`
8595
8581
  );
@@ -8793,9 +8779,9 @@ var RoutingRulesApi = class extends BaseApiClient {
8793
8779
  async getRoutingRules(wid, filters) {
8794
8780
  const params = new URLSearchParams();
8795
8781
  appendFilters(params, filters);
8796
- const query = params.toString();
8782
+ const query2 = params.toString();
8797
8783
  return this.fetch(
8798
- `w/${wid}/routing${query ? `?${query}` : ""}`
8784
+ `w/${wid}/routing${query2 ? `?${query2}` : ""}`
8799
8785
  );
8800
8786
  }
8801
8787
  /** Read one rule. Requires the rule's endpoint read permission (`phones:read`, or `inboxes:read`). */
@@ -8901,10 +8887,10 @@ var SalesforceApi = class extends BaseApiClient {
8901
8887
  });
8902
8888
  }
8903
8889
  async getSalesforceReconciliationMatches(wid, params) {
8904
- const query = new URLSearchParams();
8905
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
8906
- if (params?.offset !== void 0) query.set("offset", String(params.offset));
8907
- const qs = query.toString() ? `?${query.toString()}` : "";
8890
+ const query2 = new URLSearchParams();
8891
+ if (params?.limit !== void 0) query2.set("limit", String(params.limit));
8892
+ if (params?.offset !== void 0) query2.set("offset", String(params.offset));
8893
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
8908
8894
  return this.fetch(
8909
8895
  `w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
8910
8896
  );
@@ -8941,11 +8927,11 @@ var SalesforceApi = class extends BaseApiClient {
8941
8927
  });
8942
8928
  }
8943
8929
  async getLinkedSalesforceMembers(wid, params) {
8944
- const query = new URLSearchParams();
8945
- if (params?.page !== void 0) query.set("page", String(params.page));
8946
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
8947
- if (params?.search?.trim()) query.set("search", params.search.trim());
8948
- const qs = query.toString() ? `?${query.toString()}` : "";
8930
+ const query2 = new URLSearchParams();
8931
+ if (params?.page !== void 0) query2.set("page", String(params.page));
8932
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
8933
+ if (params?.search?.trim()) query2.set("search", params.search.trim());
8934
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
8949
8935
  return this.fetch(
8950
8936
  `w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
8951
8937
  );
@@ -9023,10 +9009,10 @@ var SalesforceApi = class extends BaseApiClient {
9023
9009
  * connection is parked for re-authorization.
9024
9010
  */
9025
9011
  async getSalesforceSyncLogs(wid, params) {
9026
- const query = new URLSearchParams();
9027
- if (params?.pageSize) query.set("pageSize", String(params.pageSize));
9028
- if (params?.cursor) query.set("cursor", params.cursor);
9029
- const qs = query.toString() ? `?${query.toString()}` : "";
9012
+ const query2 = new URLSearchParams();
9013
+ if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
9014
+ if (params?.cursor) query2.set("cursor", params.cursor);
9015
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
9030
9016
  return this.fetch(
9031
9017
  `w/${wid}/app-connections/salesforce/sync/logs${qs}`
9032
9018
  );
@@ -9066,12 +9052,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
9066
9052
  );
9067
9053
  }
9068
9054
  async getConnectionSyncCheckpoint(wid, connectionId, direction = "inbound", syncKey = "default") {
9069
- const query = new URLSearchParams({
9055
+ const query2 = new URLSearchParams({
9070
9056
  direction,
9071
9057
  sync_key: syncKey
9072
9058
  });
9073
9059
  return this.fetch(
9074
- `w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query}`
9060
+ `w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query2}`
9075
9061
  );
9076
9062
  }
9077
9063
  /**
@@ -9121,9 +9107,9 @@ var ConnectionSyncApi = class extends BaseApiClient {
9121
9107
  * ``boardId`` is only meaningful for multi-scope connectors (Monday).
9122
9108
  */
9123
9109
  async clearConnectionMemberExclusion(wid, connectionId, memberId, options) {
9124
- const query = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
9110
+ const query2 = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
9125
9111
  return this.fetch(
9126
- `w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query}`,
9112
+ `w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query2}`,
9127
9113
  { method: "DELETE" }
9128
9114
  );
9129
9115
  }
@@ -9215,12 +9201,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
9215
9201
  }
9216
9202
  /** Vendor lists a `vendor_list` import can name (configuration only). */
9217
9203
  async listSubsetImportVendorLists(wid, connectionId, options) {
9218
- const query = new URLSearchParams({
9204
+ const query2 = new URLSearchParams({
9219
9205
  query: options?.query ?? "",
9220
9206
  limit: String(options?.limit ?? 50)
9221
9207
  });
9222
9208
  return this.fetch(
9223
- this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query}`)
9209
+ this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query2}`)
9224
9210
  );
9225
9211
  }
9226
9212
  /** Remote fields a `field_filter` import can name, with their operators. */
@@ -9282,10 +9268,10 @@ var HubspotApi = class extends BaseApiClient {
9282
9268
  });
9283
9269
  }
9284
9270
  async getHubspotReconciliationMatches(wid, params) {
9285
- const query = new URLSearchParams();
9286
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
9287
- if (params?.offset !== void 0) query.set("offset", String(params.offset));
9288
- const qs = query.toString() ? `?${query.toString()}` : "";
9271
+ const query2 = new URLSearchParams();
9272
+ if (params?.limit !== void 0) query2.set("limit", String(params.limit));
9273
+ if (params?.offset !== void 0) query2.set("offset", String(params.offset));
9274
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
9289
9275
  return this.fetch(
9290
9276
  `w/${wid}/app-connections/hubspot/reconciliation/matches${qs}`
9291
9277
  );
@@ -9308,11 +9294,11 @@ var HubspotApi = class extends BaseApiClient {
9308
9294
  });
9309
9295
  }
9310
9296
  async getLinkedHubspotMembers(wid, params) {
9311
- const query = new URLSearchParams();
9312
- if (params?.page !== void 0) query.set("page", String(params.page));
9313
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
9314
- if (params?.search?.trim()) query.set("search", params.search.trim());
9315
- const qs = query.toString() ? `?${query.toString()}` : "";
9297
+ const query2 = new URLSearchParams();
9298
+ if (params?.page !== void 0) query2.set("page", String(params.page));
9299
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
9300
+ if (params?.search?.trim()) query2.set("search", params.search.trim());
9301
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
9316
9302
  return this.fetch(
9317
9303
  `w/${wid}/app-connections/hubspot/reconciliation/linked${qs}`
9318
9304
  );
@@ -9372,10 +9358,10 @@ var HubspotApi = class extends BaseApiClient {
9372
9358
  * and Monday twins return), with cursor pagination.
9373
9359
  */
9374
9360
  async getHubspotSyncLogs(wid, params) {
9375
- const query = new URLSearchParams();
9376
- if (params?.pageSize) query.set("pageSize", String(params.pageSize));
9377
- if (params?.cursor) query.set("cursor", params.cursor);
9378
- const qs = query.toString() ? `?${query.toString()}` : "";
9361
+ const query2 = new URLSearchParams();
9362
+ if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
9363
+ if (params?.cursor) query2.set("cursor", params.cursor);
9364
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
9379
9365
  return this.fetch(
9380
9366
  `w/${wid}/app-connections/hubspot/sync/logs${qs}`
9381
9367
  );
@@ -9509,8 +9495,8 @@ var SitesApi = class extends BaseApiClient {
9509
9495
  * (e.g. one the builder has selected but not yet saved).
9510
9496
  */
9511
9497
  async getThemeSettings(wid, siteId, theme) {
9512
- const query = theme ? `?theme=${encodeURIComponent(theme)}` : "";
9513
- return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query}`);
9498
+ const query2 = theme ? `?theme=${encodeURIComponent(theme)}` : "";
9499
+ return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`);
9514
9500
  }
9515
9501
  /** Save values for the active theme's settings (validated against the schema). */
9516
9502
  async updateThemeSettings(wid, siteId, values) {
@@ -9656,9 +9642,9 @@ var SitesApi = class extends BaseApiClient {
9656
9642
  if (parentId !== void 0 && parentId !== null) {
9657
9643
  params.append("parent_id", parentId.toString());
9658
9644
  }
9659
- const query = params.toString();
9645
+ const query2 = params.toString();
9660
9646
  return this.fetch(
9661
- `w/${wid}/sites/${siteId}/menu/items${query ? `?${query}` : ""}`
9647
+ `w/${wid}/sites/${siteId}/menu/items${query2 ? `?${query2}` : ""}`
9662
9648
  );
9663
9649
  }
9664
9650
  /** Create a new menu item in a site's navigation. */
@@ -9872,8 +9858,8 @@ function supportRequestParams(params) {
9872
9858
  if (params?.linearLinked !== void 0) {
9873
9859
  searchParams.append("linearLinked", params.linearLinked.toString());
9874
9860
  }
9875
- const query = searchParams.toString();
9876
- return query ? `?${query}` : "";
9861
+ const query2 = searchParams.toString();
9862
+ return query2 ? `?${query2}` : "";
9877
9863
  }
9878
9864
  var SupportRequestsApi = class extends BaseApiClient {
9879
9865
  async listSupportRequests(params) {
@@ -10265,8 +10251,8 @@ function withFilters(params, options) {
10265
10251
  return params;
10266
10252
  }
10267
10253
  function suffix(params) {
10268
- const query = params.toString();
10269
- return query ? `?${query}` : "";
10254
+ const query2 = params.toString();
10255
+ return query2 ? `?${query2}` : "";
10270
10256
  }
10271
10257
  var TrackedLinksApi = class extends BaseApiClient {
10272
10258
  /** Header counters plus whether shortening is configured and enabled. */
@@ -10399,8 +10385,8 @@ var JourneysApi = class extends BaseApiClient {
10399
10385
  * for is the state it is in.
10400
10386
  */
10401
10387
  async deleteJourneyDraft(wid, journeyId, expectedUpdatedAt) {
10402
- const query = new URLSearchParams({ expectedUpdatedAt });
10403
- return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${query.toString()}`, {
10388
+ const query2 = new URLSearchParams({ expectedUpdatedAt });
10389
+ return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${query2.toString()}`, {
10404
10390
  method: "DELETE"
10405
10391
  });
10406
10392
  }
@@ -10411,11 +10397,11 @@ var JourneysApi = class extends BaseApiClient {
10411
10397
  * {@link getJourneyAuthoring} for the editor's expression-carrying shape.
10412
10398
  */
10413
10399
  async getJourneys(wid, includeArchived = false, pageOpts) {
10414
- const query = new URLSearchParams();
10415
- if (includeArchived) query.set("include_archived", "true");
10416
- if (pageOpts?.page !== void 0) query.set("page", String(pageOpts.page));
10417
- if (pageOpts?.pageSize !== void 0) query.set("pageSize", String(pageOpts.pageSize));
10418
- const qs = query.toString() ? `?${query.toString()}` : "";
10400
+ const query2 = new URLSearchParams();
10401
+ if (includeArchived) query2.set("include_archived", "true");
10402
+ if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
10403
+ if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
10404
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
10419
10405
  return this.fetch(`w/${wid}/journeys${qs}`);
10420
10406
  }
10421
10407
  /**
@@ -10541,9 +10527,9 @@ var JourneysApi = class extends BaseApiClient {
10541
10527
  * `additionalMembers` is the size of a batch about to be enrolled.
10542
10528
  */
10543
10529
  async getJourneySendEstimate(wid, journeyId, additionalMembers = 0) {
10544
- const query = new URLSearchParams({ additionalMembers: String(additionalMembers) });
10530
+ const query2 = new URLSearchParams({ additionalMembers: String(additionalMembers) });
10545
10531
  return this.fetch(
10546
- `w/${wid}/journeys/${journeyId}/send-estimate?${query.toString()}`
10532
+ `w/${wid}/journeys/${journeyId}/send-estimate?${query2.toString()}`
10547
10533
  );
10548
10534
  }
10549
10535
  /** Create a step within a journey. */
@@ -10632,9 +10618,9 @@ var JourneysApi = class extends BaseApiClient {
10632
10618
  qs.set("currentTaskId", String(params.currentTaskId));
10633
10619
  if (params?.runtimeFailureEdgeId !== void 0)
10634
10620
  qs.set("runtimeFailureEdgeId", String(params.runtimeFailureEdgeId));
10635
- const query = qs.toString();
10621
+ const query2 = qs.toString();
10636
10622
  return this.fetch(
10637
- `w/${wid}/journeys/${journeyId}/members${query ? `?${query}` : ""}`
10623
+ `w/${wid}/journeys/${journeyId}/members${query2 ? `?${query2}` : ""}`
10638
10624
  );
10639
10625
  }
10640
10626
  /** Enroll one or more members in a journey. */
@@ -10693,9 +10679,9 @@ var JourneysApi = class extends BaseApiClient {
10693
10679
  if (params.zeroEmissionOnly !== void 0) {
10694
10680
  qs.set("zeroEmissionOnly", String(params.zeroEmissionOnly));
10695
10681
  }
10696
- const query = qs.toString();
10682
+ const query2 = qs.toString();
10697
10683
  return this.fetch(
10698
- `w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query ? `?${query}` : "")
10684
+ `w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query2 ? `?${query2}` : "")
10699
10685
  );
10700
10686
  }
10701
10687
  /** List members currently or historically associated with one journey step. */
@@ -10705,9 +10691,9 @@ var JourneysApi = class extends BaseApiClient {
10705
10691
  if (params.mode) qs.set("mode", params.mode);
10706
10692
  if (params.page) qs.set("page", String(params.page));
10707
10693
  if (params.pageSize) qs.set("pageSize", String(params.pageSize));
10708
- const query = qs.toString();
10694
+ const query2 = qs.toString();
10709
10695
  return this.fetch(
10710
- `w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${query ? `?${query}` : ""}`
10696
+ `w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${query2 ? `?${query2}` : ""}`
10711
10697
  );
10712
10698
  }
10713
10699
  /** Get member counts by status for each journey step. */
@@ -10817,8 +10803,8 @@ var WorkflowsApi = class extends BaseApiClient {
10817
10803
  * portion so the active count can be derived.
10818
10804
  */
10819
10805
  async getWorkflowDiagram(wid, id, options = {}) {
10820
- const query = options.includeArchived ? "?include_archived=true" : "";
10821
- return this.fetch(`w/${wid}/workflows/${id}/diagram${query}`);
10806
+ const query2 = options.includeArchived ? "?include_archived=true" : "";
10807
+ return this.fetch(`w/${wid}/workflows/${id}/diagram${query2}`);
10822
10808
  }
10823
10809
  /**
10824
10810
  * The outline a Workflow's diagram is drawn from: its active Tasks, its
@@ -11132,36 +11118,36 @@ var WorkflowsApi = class extends BaseApiClient {
11132
11118
  };
11133
11119
 
11134
11120
  // src/api/workflow-notes.ts
11135
- function notesPath(wid, workflowId, noteId, query) {
11121
+ function notesPath(wid, workflowId, noteId, query2) {
11136
11122
  const base = noteId == null ? `w/${wid}/workflows/${workflowId}/notes` : `w/${wid}/workflows/${workflowId}/notes/${noteId}`;
11137
- if (query?.workflowRevisionId == null) return base;
11123
+ if (query2?.workflowRevisionId == null) return base;
11138
11124
  const params = new URLSearchParams({
11139
- workflowRevisionId: String(query.workflowRevisionId)
11125
+ workflowRevisionId: String(query2.workflowRevisionId)
11140
11126
  });
11141
11127
  return `${base}?${params.toString()}`;
11142
11128
  }
11143
11129
  var WorkflowNotesApi = class extends BaseApiClient {
11144
11130
  /** List notes for a workflow root (draft unless `workflowRevisionId` is set). */
11145
- async getWorkflowNotes(wid, workflowId, query) {
11146
- return this.fetch(notesPath(wid, workflowId, void 0, query));
11131
+ async getWorkflowNotes(wid, workflowId, query2) {
11132
+ return this.fetch(notesPath(wid, workflowId, void 0, query2));
11147
11133
  }
11148
11134
  /** Create a new note on a workflow's draft (or a pinned draft revision). */
11149
- async createWorkflowNote(wid, workflowId, data, query) {
11150
- return this.fetch(notesPath(wid, workflowId, void 0, query), {
11135
+ async createWorkflowNote(wid, workflowId, data, query2) {
11136
+ return this.fetch(notesPath(wid, workflowId, void 0, query2), {
11151
11137
  method: "POST",
11152
11138
  body: JSON.stringify(data)
11153
11139
  });
11154
11140
  }
11155
11141
  /** Update an existing workflow note with partial data. */
11156
- async updateWorkflowNote(wid, workflowId, noteId, data, query) {
11157
- return this.fetch(notesPath(wid, workflowId, noteId, query), {
11142
+ async updateWorkflowNote(wid, workflowId, noteId, data, query2) {
11143
+ return this.fetch(notesPath(wid, workflowId, noteId, query2), {
11158
11144
  method: "PUT",
11159
11145
  body: JSON.stringify(data)
11160
11146
  });
11161
11147
  }
11162
11148
  /** Delete a workflow note by ID. */
11163
- async deleteWorkflowNote(wid, workflowId, noteId, query) {
11164
- return this.fetch(notesPath(wid, workflowId, noteId, query), {
11149
+ async deleteWorkflowNote(wid, workflowId, noteId, query2) {
11150
+ return this.fetch(notesPath(wid, workflowId, noteId, query2), {
11165
11151
  method: "DELETE"
11166
11152
  });
11167
11153
  }
@@ -11212,6 +11198,9 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
11212
11198
  Scope2["WORKSPACE_READ"] = "workspace:read";
11213
11199
  Scope2["WORKSPACE_WRITE"] = "workspace:write";
11214
11200
  Scope2["WORKSPACE_ADMIN"] = "workspace:admin";
11201
+ Scope2["MEDICAL_BILLING_READ"] = "medical_billing:read";
11202
+ Scope2["MEDICAL_BILLING_WRITE"] = "medical_billing:write";
11203
+ Scope2["MEDICAL_BILLING_ADMIN"] = "medical_billing:admin";
11215
11204
  Scope2["MEMBERS_READ"] = "members:read";
11216
11205
  Scope2["MEMBERS_WRITE"] = "members:write";
11217
11206
  Scope2["MEMBERS_ADMIN"] = "members:admin";
@@ -11572,6 +11561,7 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
11572
11561
  WorkspaceFeature2["MONDAY"] = "monday";
11573
11562
  WorkspaceFeature2["DOCUMO_FAX"] = "documo_fax";
11574
11563
  WorkspaceFeature2["CLAIM_MD"] = "claim_md";
11564
+ WorkspaceFeature2["STEDI"] = "stedi";
11575
11565
  WorkspaceFeature2["RESELL_PRODUCTS"] = "resell_products";
11576
11566
  WorkspaceFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
11577
11567
  WorkspaceFeature2["EHR_FHIR"] = "ehr_fhir";
@@ -11579,7 +11569,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
11579
11569
  WorkspaceFeature2["EHR_HEALTHIE"] = "ehr_healthie";
11580
11570
  WorkspaceFeature2["CONFLUENCE"] = "confluence";
11581
11571
  WorkspaceFeature2["ZENDESK"] = "zendesk";
11582
- WorkspaceFeature2["AGENT_MEMORY"] = "agent_memory";
11583
11572
  WorkspaceFeature2["IMAGE_GENERATION"] = "image_generation";
11584
11573
  WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
11585
11574
  WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
@@ -11891,6 +11880,14 @@ var CapturedEffectKind = {
11891
11880
  };
11892
11881
 
11893
11882
  // src/types/generated/test_chat_run_inbound.ts
11883
+ var FaxDocumentRefusal = {
11884
+ fax_document_invalid: "fax_document_invalid"
11885
+ };
11886
+ var FaxRunRefusal = {
11887
+ fax_run_on_the_fax_channel: "fax_run_on_the_fax_channel",
11888
+ fax_run_is_manual: "fax_run_is_manual",
11889
+ fax_run_takes_no_identity: "fax_run_takes_no_identity"
11890
+ };
11894
11891
  var InboundRefusal = {
11895
11892
  run_not_found: "run_not_found",
11896
11893
  run_ended: "run_ended",
@@ -12612,10 +12609,10 @@ var WorkspacesApi = class extends BaseApiClient {
12612
12609
  }
12613
12610
  /** List client workspaces managed by this reseller workspace, paginated. */
12614
12611
  async getResellerWorkspaces(wid, params) {
12615
- const query = new URLSearchParams();
12616
- if (params?.page !== void 0) query.set("page", String(params.page));
12617
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
12618
- const qs = query.toString() ? `?${query.toString()}` : "";
12612
+ const query2 = new URLSearchParams();
12613
+ if (params?.page !== void 0) query2.set("page", String(params.page));
12614
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
12615
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
12619
12616
  return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
12620
12617
  }
12621
12618
  /** Create a new client workspace under a reseller workspace. */
@@ -13025,6 +13022,81 @@ var WorkspacesApi = class extends BaseApiClient {
13025
13022
  }
13026
13023
  };
13027
13024
 
13025
+ // src/api/medical-billing.ts
13026
+ function query(params) {
13027
+ const values = new URLSearchParams();
13028
+ if (params?.after != null) values.set("after", String(params.after));
13029
+ if (params?.limit != null) values.set("limit", String(params.limit));
13030
+ if (params?.memberId != null) values.set("member_id", String(params.memberId));
13031
+ if (params?.connectionId != null) values.set("connection_id", String(params.connectionId));
13032
+ return values.size ? `?${values}` : "";
13033
+ }
13034
+ var MedicalBillingApi = class extends BaseApiClient {
13035
+ listMedicalBillingConnections(wid) {
13036
+ return this.fetch(`w/${wid}/medical-billing/connections`);
13037
+ }
13038
+ submitMedicalClaim(wid, body) {
13039
+ return this.fetch(`w/${wid}/medical-billing/claim-submissions`, {
13040
+ method: "POST",
13041
+ body: JSON.stringify(body)
13042
+ });
13043
+ }
13044
+ listMedicalBillingProviders(wid, params) {
13045
+ return this.fetch(`w/${wid}/medical-billing/providers${query(params)}`);
13046
+ }
13047
+ listMedicalCoverages(wid, params) {
13048
+ return this.fetch(`w/${wid}/medical-billing/coverages${query(params)}`);
13049
+ }
13050
+ createMedicalCoverage(wid, body) {
13051
+ return this.fetch(`w/${wid}/medical-billing/coverages`, {
13052
+ method: "POST",
13053
+ body: JSON.stringify(body)
13054
+ });
13055
+ }
13056
+ updateMedicalCoverage(wid, id, body) {
13057
+ return this.fetch(`w/${wid}/medical-billing/coverages/${id}`, {
13058
+ method: "PATCH",
13059
+ body: JSON.stringify(body)
13060
+ });
13061
+ }
13062
+ setMedicalPayerRoute(wid, id, body) {
13063
+ return this.fetch(`w/${wid}/medical-billing/coverages/${id}/payer-routes`, {
13064
+ method: "POST",
13065
+ body: JSON.stringify(body)
13066
+ });
13067
+ }
13068
+ listMedicalCharges(wid, params) {
13069
+ return this.fetch(`w/${wid}/medical-billing/charges${query(params)}`);
13070
+ }
13071
+ createMedicalCharge(wid, body) {
13072
+ return this.fetch(`w/${wid}/medical-billing/charges`, {
13073
+ method: "POST",
13074
+ body: JSON.stringify(body)
13075
+ });
13076
+ }
13077
+ updateMedicalCharge(wid, id, body) {
13078
+ return this.fetch(`w/${wid}/medical-billing/charges/${id}`, {
13079
+ method: "PATCH",
13080
+ body: JSON.stringify(body)
13081
+ });
13082
+ }
13083
+ listMedicalClaims(wid, params) {
13084
+ return this.fetch(`w/${wid}/medical-billing/claims${query(params)}`);
13085
+ }
13086
+ getMedicalClaim(wid, id) {
13087
+ return this.fetch(`w/${wid}/medical-billing/claims/${encodeURIComponent(id)}`);
13088
+ }
13089
+ listMedicalEligibilityChecks(wid, params) {
13090
+ return this.fetch(`w/${wid}/medical-billing/eligibility-checks${query(params)}`);
13091
+ }
13092
+ listMedicalRemittances(wid, params) {
13093
+ return this.fetch(`w/${wid}/medical-billing/remittances${query(params)}`);
13094
+ }
13095
+ getMedicalRemittance(wid, id) {
13096
+ return this.fetch(`w/${wid}/medical-billing/remittances/${id}`);
13097
+ }
13098
+ };
13099
+
13028
13100
  // src/types/generated/bundle_contract.ts
13029
13101
  var BundleGrantRequestGranteeType = {
13030
13102
  organization: "organization",
@@ -13164,6 +13236,8 @@ function createApiModules(apiKey, baseUrl, customFetch) {
13164
13236
  healthie: new HealthieApi(apiKey, baseUrl, customFetch),
13165
13237
  documoFax: new DocumoFaxApi(apiKey, baseUrl, customFetch),
13166
13238
  claimMd: new ClaimMdApi(apiKey, baseUrl, customFetch),
13239
+ stedi: new StediApi(apiKey, baseUrl, customFetch),
13240
+ medicalBilling: new MedicalBillingApi(apiKey, baseUrl, customFetch),
13167
13241
  hubspot: new HubspotApi(apiKey, baseUrl, customFetch),
13168
13242
  features: new FeaturesApi(apiKey, baseUrl, customFetch),
13169
13243
  files: new FilesApi(apiKey, baseUrl, customFetch),
@@ -13328,7 +13402,6 @@ var WORKSPACE_METHOD_NAMES = [
13328
13402
  "createMemberField",
13329
13403
  "createMemberFilter",
13330
13404
  "createMemberLabel",
13331
- "createMemberMemory",
13332
13405
  "createMemberRelationship",
13333
13406
  "createMemberRole",
13334
13407
  "createMenuItem",
@@ -13398,7 +13471,6 @@ var WORKSPACE_METHOD_NAMES = [
13398
13471
  "deleteMemberField",
13399
13472
  "deleteMemberFilter",
13400
13473
  "deleteMemberLabel",
13401
- "deleteMemberMemory",
13402
13474
  "deleteMemberRole",
13403
13475
  "deleteMenuItem",
13404
13476
  "deleteMondayConnection",
@@ -13616,6 +13688,23 @@ var WORKSPACE_METHOD_NAMES = [
13616
13688
  "getDiscordGuilds",
13617
13689
  "getDiscordThreads",
13618
13690
  "getClaimMdStatus",
13691
+ "listMedicalBillingConnections",
13692
+ "submitMedicalClaim",
13693
+ "listMedicalBillingProviders",
13694
+ "listMedicalCoverages",
13695
+ "createMedicalCoverage",
13696
+ "updateMedicalCoverage",
13697
+ "setMedicalPayerRoute",
13698
+ "listMedicalCharges",
13699
+ "createMedicalCharge",
13700
+ "updateMedicalCharge",
13701
+ "listMedicalClaims",
13702
+ "getMedicalClaim",
13703
+ "listMedicalEligibilityChecks",
13704
+ "listMedicalRemittances",
13705
+ "getMedicalRemittance",
13706
+ "getStediConnections",
13707
+ "getStediConnectionStatus",
13619
13708
  "getDocumoFaxSetup",
13620
13709
  "listDocumoFaxes",
13621
13710
  "getDocumoFaxStatus",
@@ -13734,8 +13823,6 @@ var WORKSPACE_METHOD_NAMES = [
13734
13823
  "getMemberLabel",
13735
13824
  "getMemberLabelByUuid",
13736
13825
  "getMemberLabels",
13737
- "getMemberMemories",
13738
- "getMemberMemory",
13739
13826
  "getMemberRecordCounts",
13740
13827
  "getMemberRelationships",
13741
13828
  "getMemberRole",
@@ -14486,10 +14573,6 @@ function bindMembersMethods(target, members) {
14486
14573
  target.getAnonymousResolution = members.getAnonymousResolution.bind(members);
14487
14574
  target.resolveAnonymousMember = members.resolveAnonymousMember.bind(members);
14488
14575
  target.expireAnonymousMember = members.expireAnonymousMember.bind(members);
14489
- target.getMemberMemories = members.getMemberMemories.bind(members);
14490
- target.getMemberMemory = members.getMemberMemory.bind(members);
14491
- target.createMemberMemory = members.createMemberMemory.bind(members);
14492
- target.deleteMemberMemory = members.deleteMemberMemory.bind(members);
14493
14576
  target.getMemberSyncLinks = members.getMemberSyncLinks.bind(members);
14494
14577
  target.getMemberRelationships = members.getMemberRelationships.bind(members);
14495
14578
  target.createMemberRelationship = members.createMemberRelationship.bind(members);
@@ -15031,7 +15114,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
15031
15114
  }
15032
15115
 
15033
15116
  // src/client/bindings/integrations.ts
15034
- function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, salesforce, hubspot, appConnections, connectionSync, confluence) {
15117
+ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, stedi, salesforce, hubspot, appConnections, connectionSync, confluence) {
15035
15118
  target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
15036
15119
  target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
15037
15120
  target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
@@ -15143,6 +15226,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
15143
15226
  target.installClaimMd = claimMd.installClaimMd.bind(claimMd);
15144
15227
  target.configureClaimMd = claimMd.configureClaimMd.bind(claimMd);
15145
15228
  target.verifyClaimMdKey = claimMd.verifyClaimMdKey.bind(claimMd);
15229
+ target.getStediConnections = stedi.getStediConnections.bind(stedi);
15230
+ target.getStediConnectionStatus = stedi.getStediConnectionStatus.bind(stedi);
15146
15231
  target.configureHealthie = healthie.configureHealthie.bind(healthie);
15147
15232
  target.getHealthieStatus = healthie.getHealthieStatus.bind(healthie);
15148
15233
  target.listHealthieProviders = healthie.listHealthieProviders.bind(healthie);
@@ -15560,6 +15645,21 @@ var GravityRailClient = class {
15560
15645
  // WorkspaceInvitations is exposed publicly for backward compatibility
15561
15646
  workspaceInvitations;
15562
15647
  // Store all API modules for cross-cutting operations
15648
+ listMedicalBillingProviders;
15649
+ listMedicalCoverages;
15650
+ createMedicalCoverage;
15651
+ updateMedicalCoverage;
15652
+ setMedicalPayerRoute;
15653
+ listMedicalCharges;
15654
+ createMedicalCharge;
15655
+ updateMedicalCharge;
15656
+ listMedicalClaims;
15657
+ getMedicalClaim;
15658
+ listMedicalEligibilityChecks;
15659
+ listMedicalRemittances;
15660
+ getMedicalRemittance;
15661
+ listMedicalBillingConnections;
15662
+ submitMedicalClaim;
15563
15663
  apis;
15564
15664
  // Tasks API
15565
15665
  getTasks;
@@ -15750,10 +15850,6 @@ var GravityRailClient = class {
15750
15850
  resolveAnonymousMember;
15751
15851
  expireAnonymousMember;
15752
15852
  // Member Memories
15753
- getMemberMemories;
15754
- getMemberMemory;
15755
- createMemberMemory;
15756
- deleteMemberMemory;
15757
15853
  // Member Sync Links
15758
15854
  getMemberSyncLinks;
15759
15855
  // Member Relationships
@@ -16647,6 +16743,8 @@ var GravityRailClient = class {
16647
16743
  installClaimMd;
16648
16744
  configureClaimMd;
16649
16745
  verifyClaimMdKey;
16746
+ getStediConnections;
16747
+ getStediConnectionStatus;
16650
16748
  configurePatientSync;
16651
16749
  getPatientSyncStatus;
16652
16750
  deletePatientSyncConnection;
@@ -16819,6 +16917,39 @@ var GravityRailClient = class {
16819
16917
  constructor(apiKey, baseUrl, customFetch) {
16820
16918
  const apis = createApiModules(apiKey, baseUrl, customFetch);
16821
16919
  this.apis = apis;
16920
+ this.listMedicalBillingConnections = apis.medicalBilling.listMedicalBillingConnections.bind(
16921
+ apis.medicalBilling
16922
+ );
16923
+ this.submitMedicalClaim = apis.medicalBilling.submitMedicalClaim.bind(apis.medicalBilling);
16924
+ this.listMedicalBillingProviders = apis.medicalBilling.listMedicalBillingProviders.bind(
16925
+ apis.medicalBilling
16926
+ );
16927
+ this.listMedicalCoverages = apis.medicalBilling.listMedicalCoverages.bind(
16928
+ apis.medicalBilling
16929
+ );
16930
+ this.createMedicalCoverage = apis.medicalBilling.createMedicalCoverage.bind(
16931
+ apis.medicalBilling
16932
+ );
16933
+ this.updateMedicalCoverage = apis.medicalBilling.updateMedicalCoverage.bind(
16934
+ apis.medicalBilling
16935
+ );
16936
+ this.setMedicalPayerRoute = apis.medicalBilling.setMedicalPayerRoute.bind(
16937
+ apis.medicalBilling
16938
+ );
16939
+ this.listMedicalCharges = apis.medicalBilling.listMedicalCharges.bind(apis.medicalBilling);
16940
+ this.createMedicalCharge = apis.medicalBilling.createMedicalCharge.bind(apis.medicalBilling);
16941
+ this.updateMedicalCharge = apis.medicalBilling.updateMedicalCharge.bind(apis.medicalBilling);
16942
+ this.listMedicalClaims = apis.medicalBilling.listMedicalClaims.bind(apis.medicalBilling);
16943
+ this.getMedicalClaim = apis.medicalBilling.getMedicalClaim.bind(apis.medicalBilling);
16944
+ this.listMedicalEligibilityChecks = apis.medicalBilling.listMedicalEligibilityChecks.bind(
16945
+ apis.medicalBilling
16946
+ );
16947
+ this.listMedicalRemittances = apis.medicalBilling.listMedicalRemittances.bind(
16948
+ apis.medicalBilling
16949
+ );
16950
+ this.getMedicalRemittance = apis.medicalBilling.getMedicalRemittance.bind(
16951
+ apis.medicalBilling
16952
+ );
16822
16953
  this.workspaceInvitations = apis.workspaceInvitations;
16823
16954
  bindTasksMethods(this, apis.tasks, apis.abilities);
16824
16955
  bindChatsMethods(this, apis.chats);
@@ -16884,6 +17015,7 @@ var GravityRailClient = class {
16884
17015
  apis.healthie,
16885
17016
  apis.documoFax,
16886
17017
  apis.claimMd,
17018
+ apis.stedi,
16887
17019
  apis.salesforce,
16888
17020
  apis.hubspot,
16889
17021
  apis.appConnections,
@@ -17084,8 +17216,8 @@ var MemberFilterBuilder = class extends WorkspaceBuilderResource {
17084
17216
  * Anywhere the IR wants a numeric id you may pass the builder that will own
17085
17217
  * it (e.g. a label in a `member.labelId` value); refs resolve at apply time.
17086
17218
  */
17087
- setQuery(query) {
17088
- this.query = query;
17219
+ setQuery(query2) {
17220
+ this.query = query2;
17089
17221
  return this;
17090
17222
  }
17091
17223
  planLine() {
@@ -19531,6 +19663,7 @@ var AbilityTypeSlugs = {
19531
19663
  TOOLKITS: "tools:toolkits",
19532
19664
  WEB_SEARCH: "tools:web_search",
19533
19665
  CONVERSATION_HISTORY: "tools:conversation_history",
19666
+ MEMBER_MEMORY: "memory:member_memory",
19534
19667
  IMAGE_GENERATION: "tools:image_generation",
19535
19668
  CONVERSATION_CONTROL: "tools:conversation_control",
19536
19669
  // Integration
@@ -19757,10 +19890,60 @@ var SiteDnsRecordType = {
19757
19890
  TXT: "TXT"
19758
19891
  };
19759
19892
 
19893
+ // src/types/generated/phone_voice_trust.ts
19894
+ var VoiceIntegrityUseCase = {
19895
+ "Identify_&_Verification": "Identify & Verification",
19896
+ Asset_Management: "Asset Management",
19897
+ Lead_Generation: "Lead Generation",
19898
+ Intelligent_Routing: "Intelligent Routing",
19899
+ Appointment_SchedulingDE: "Appointment SchedulingDE",
19900
+ Customer_Support: "Customer Support",
19901
+ "Self-Service": "Self-Service",
19902
+ Automated_Support: "Automated Support",
19903
+ Appointment_Reminders: "Appointment Reminders",
19904
+ Employee_Notifications: "Employee Notifications",
19905
+ Delivery_Notifications: "Delivery Notifications",
19906
+ Emergency_Notifications: "Emergency Notifications",
19907
+ Contactless_Delivery: "Contactless Delivery",
19908
+ Order_Notifications: "Order Notifications",
19909
+ Service_Alerts: "Service Alerts",
19910
+ Purchase_Confirmation: "Purchase Confirmation",
19911
+ Mass_Alerts: "Mass Alerts",
19912
+ Fraud_Alerts: "Fraud Alerts",
19913
+ Contact_Tracing: "Contact Tracing",
19914
+ Lead_Management: "Lead Management",
19915
+ Lead_Nurturing: "Lead Nurturing",
19916
+ Telemarketing: "Telemarketing",
19917
+ Marketing_Events: "Marketing Events",
19918
+ Rewards_Program: "Rewards Program",
19919
+ Lead_Alerts: "Lead Alerts",
19920
+ Lead_Distribution: "Lead Distribution",
19921
+ Abandoned_Cart: "Abandoned Cart",
19922
+ Call_Tracking: "Call Tracking",
19923
+ Outbound_Dialer: "Outbound Dialer",
19924
+ Click_to_Call: "Click to Call",
19925
+ Phone_System: "Phone System",
19926
+ "Meetings/Ccollaboration": "Meetings/Ccollaboration",
19927
+ Telehealth: "Telehealth",
19928
+ Distance_Learning: "Distance Learning",
19929
+ Shift_Management: "Shift Management",
19930
+ Field_Notifications: "Field Notifications",
19931
+ "Dating/Social": "Dating/Social",
19932
+ Remote_appointments: "Remote appointments",
19933
+ Group_Messaging: "Group Messaging",
19934
+ Exam_Proctoring: "Exam Proctoring",
19935
+ Tutoring: "Tutoring",
19936
+ "Therapy_(Individual+Group)": "Therapy (Individual+Group)",
19937
+ Pharmacy: "Pharmacy",
19938
+ First_Responder: "First Responder",
19939
+ "Survey/Research": "Survey/Research"
19940
+ };
19941
+
19760
19942
  // src/types/generated/ai_connector_policy.ts
19761
19943
  var AiConnectorPolicy = {
19762
19944
  any: "any",
19763
- allowlist: "allowlist"
19945
+ allowlist: "allowlist",
19946
+ none: "none"
19764
19947
  };
19765
19948
 
19766
19949
  // src/types/generated/site.ts
@@ -20263,6 +20446,7 @@ var EntityKind = {
20263
20446
  var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
20264
20447
  ScopeCategory2["WORKSPACE"] = "workspace";
20265
20448
  ScopeCategory2["MEMBERS"] = "members";
20449
+ ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
20266
20450
  ScopeCategory2["MEMBER_ROLES"] = "member_roles";
20267
20451
  ScopeCategory2["CHATS"] = "chats";
20268
20452
  ScopeCategory2["DM"] = "dm";
@@ -20272,6 +20456,7 @@ var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
20272
20456
  ScopeCategory2["DATATYPES"] = "datatypes";
20273
20457
  ScopeCategory2["RECORDS"] = "records";
20274
20458
  ScopeCategory2["FILES"] = "files";
20459
+ ScopeCategory2["SELF_MEMORY"] = "self_memory";
20275
20460
  ScopeCategory2["DEVICES"] = "devices";
20276
20461
  ScopeCategory2["JOURNEYS"] = "journeys";
20277
20462
  ScopeCategory2["EXPERIMENTS"] = "experiments";
@@ -20333,6 +20518,24 @@ var SCOPES = {
20333
20518
  implies: ["members:write"],
20334
20519
  dangerous: true
20335
20520
  },
20521
+ "medical_billing:read": {
20522
+ name: "medical_billing:read",
20523
+ category: "medical_billing" /* MEDICAL_BILLING */,
20524
+ description: "View medical billing coverage, charges and claims"
20525
+ },
20526
+ "medical_billing:write": {
20527
+ name: "medical_billing:write",
20528
+ category: "medical_billing" /* MEDICAL_BILLING */,
20529
+ description: "Create and update medical billing and submit claims",
20530
+ implies: ["medical_billing:read"]
20531
+ },
20532
+ "medical_billing:admin": {
20533
+ name: "medical_billing:admin",
20534
+ category: "medical_billing" /* MEDICAL_BILLING */,
20535
+ description: "Administer medical billing",
20536
+ implies: ["medical_billing:write"],
20537
+ dangerous: true
20538
+ },
20336
20539
  // =========================================================================
20337
20540
  // MEMBER ROLES
20338
20541
  // =========================================================================
@@ -20502,6 +20705,16 @@ var SCOPES = {
20502
20705
  // =========================================================================
20503
20706
  // FILES
20504
20707
  // =========================================================================
20708
+ "self_memory:read": {
20709
+ name: "self_memory:read",
20710
+ category: "self_memory" /* SELF_MEMORY */,
20711
+ description: "Read your private memory Files"
20712
+ },
20713
+ "self_memory:write": {
20714
+ name: "self_memory:write",
20715
+ category: "self_memory" /* SELF_MEMORY */,
20716
+ description: "Write your private memory Files"
20717
+ },
20505
20718
  "files:read": {
20506
20719
  name: "files:read",
20507
20720
  category: "files" /* FILES */,
@@ -21186,6 +21399,8 @@ function pathDraftToStorage(draft, original) {
21186
21399
  EventRuleActionType,
21187
21400
  EventRuleEventType,
21188
21401
  EventRuleObjectType,
21402
+ FaxDocumentRefusal,
21403
+ FaxRunRefusal,
21189
21404
  FeatureCategory,
21190
21405
  FeatureVisibility,
21191
21406
  FeedCursorRejection,
@@ -21213,6 +21428,7 @@ function pathDraftToStorage(draft, original) {
21213
21428
  MAX_EMAIL_SEND_RECIPIENTS,
21214
21429
  MEMBER_RELATIONSHIP_KINDS,
21215
21430
  McpServerState,
21431
+ MedicalBillingApi,
21216
21432
  MemberFeature,
21217
21433
  MemberFilterBuilder,
21218
21434
  MemberImportIssueCode,
@@ -21296,6 +21512,7 @@ function pathDraftToStorage(draft, original) {
21296
21512
  SendingStopState,
21297
21513
  SetInstallationPolicyRequestUpgradePolicy,
21298
21514
  SiteDnsRecordType,
21515
+ StediApi,
21299
21516
  SupervisorsApi,
21300
21517
  TTS_MODEL_AWS_POLLY_GENERATIVE,
21301
21518
  TTS_MODEL_AWS_POLLY_NEURAL,
@@ -21318,6 +21535,7 @@ function pathDraftToStorage(draft, original) {
21318
21535
  UpdateMemberContactPointRequestContactType,
21319
21536
  UpdateMemberContactPointRequestPurpose,
21320
21537
  UpdateMemberContactPointRequestSharing,
21538
+ VoiceIntegrityUseCase,
21321
21539
  WIDGET_SLUGS,
21322
21540
  WorkflowBuilder,
21323
21541
  WorkflowRoutingMode,