@gravity-rail/sdk 1.0.0 → 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.
@@ -103,13 +103,13 @@ var ResourceWorkflowsApi = class extends BaseApiClient {
103
103
  * pin a Workflow item; archived Workflows are excluded unless asked for.
104
104
  */
105
105
  async listResourceWorkflows(wid, params) {
106
- const query = new URLSearchParams();
107
- if (params?.page !== void 0) query.set("page", String(params.page));
108
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
106
+ const query2 = new URLSearchParams();
107
+ if (params?.page !== void 0) query2.set("page", String(params.page));
108
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
109
109
  if (params?.includeArchived !== void 0) {
110
- query.set("includeArchived", String(params.includeArchived));
110
+ query2.set("includeArchived", String(params.includeArchived));
111
111
  }
112
- const qs = query.toString();
112
+ const qs = query2.toString();
113
113
  return this.fetch(
114
114
  `w/${encodeURIComponent(wid)}/resource-workflows${qs ? `?${qs}` : ""}`
115
115
  );
@@ -123,10 +123,10 @@ function bundlesPath(wid, ...segments) {
123
123
  return tail ? `${base}/${tail}` : base;
124
124
  }
125
125
  function pageQuery(params) {
126
- const query = new URLSearchParams();
127
- if (params?.page !== void 0) query.set("page", String(params.page));
128
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
129
- const qs = query.toString();
126
+ const query2 = new URLSearchParams();
127
+ if (params?.page !== void 0) query2.set("page", String(params.page));
128
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
129
+ const qs = query2.toString();
130
130
  return qs ? `?${qs}` : "";
131
131
  }
132
132
  var BundlesApi = class extends BaseApiClient {
@@ -320,9 +320,9 @@ var InstallationsApi = class extends BaseApiClient {
320
320
  * between. `to` must be newer than the version the installation holds.
321
321
  */
322
322
  async previewInstallationUpgrade(wid, installationUuid, to) {
323
- const query = new URLSearchParams({ to: String(to) });
323
+ const query2 = new URLSearchParams({ to: String(to) });
324
324
  return this.fetch(
325
- `${installationsPath(wid, installationUuid, "upgrade-preview")}?${query.toString()}`
325
+ `${installationsPath(wid, installationUuid, "upgrade-preview")}?${query2.toString()}`
326
326
  );
327
327
  }
328
328
  /**
@@ -1513,9 +1513,9 @@ var CalendarsApi = class extends BaseApiClient {
1513
1513
  const params = new URLSearchParams();
1514
1514
  if (options?.page !== void 0) params.set("page", String(options.page));
1515
1515
  if (options?.pageSize !== void 0) params.set("pageSize", String(options.pageSize));
1516
- const query = params.size ? `?${params}` : "";
1516
+ const query2 = params.size ? `?${params}` : "";
1517
1517
  return this.fetch(
1518
- `w/${wid}/calendar-event-types${query}`
1518
+ `w/${wid}/calendar-event-types${query2}`
1519
1519
  );
1520
1520
  }
1521
1521
  /** Get a single calendar event type by ID. */
@@ -2258,9 +2258,9 @@ var ConfluenceApi = class extends BaseApiClient {
2258
2258
  const qs = new URLSearchParams();
2259
2259
  if (params?.cursor) qs.set("cursor", params.cursor);
2260
2260
  if (params?.limit) qs.set("limit", String(params.limit));
2261
- const query = qs.toString();
2261
+ const query2 = qs.toString();
2262
2262
  return this.fetch(
2263
- `w/${wid}/app-connections/confluence/spaces${query ? `?${query}` : ""}`
2263
+ `w/${wid}/app-connections/confluence/spaces${query2 ? `?${query2}` : ""}`
2264
2264
  );
2265
2265
  }
2266
2266
  async listConfluencePages(wid, spaceId, params) {
@@ -2425,9 +2425,9 @@ var DataTypesApi = class extends BaseApiClient {
2425
2425
  if (options?.beforeVersion !== void 0)
2426
2426
  params.set("beforeVersion", String(options.beforeVersion));
2427
2427
  if (options?.limit !== void 0) params.set("limit", String(options.limit));
2428
- const query = params.toString();
2428
+ const query2 = params.toString();
2429
2429
  return this.fetch(
2430
- `w/${wid}/data-types/${id}/schema-versions${query ? `?${query}` : ""}`
2430
+ `w/${wid}/data-types/${id}/schema-versions${query2 ? `?${query2}` : ""}`
2431
2431
  );
2432
2432
  }
2433
2433
  /** List all data types for a workspace, optionally filtering by archived status. */
@@ -2962,10 +2962,10 @@ var SlackAppsApi = class extends BaseApiClient {
2962
2962
  var EventsApi = class extends BaseApiClient {
2963
2963
  /** List event rules in the workspace, paginated. */
2964
2964
  async getEventRules(wid, params) {
2965
- const query = new URLSearchParams();
2966
- if (params?.page !== void 0) query.set("page", String(params.page));
2967
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
2968
- const qs = query.toString() ? `?${query.toString()}` : "";
2965
+ const query2 = new URLSearchParams();
2966
+ if (params?.page !== void 0) query2.set("page", String(params.page));
2967
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
2968
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
2969
2969
  return this.fetch(`w/${wid}/event-rules${qs}`);
2970
2970
  }
2971
2971
  /** Get the available action types that can be used in event rules. */
@@ -3405,11 +3405,11 @@ var FhirConnectionsApi = class extends BaseApiClient {
3405
3405
  }
3406
3406
  // ==================== Member Sync ====================
3407
3407
  async fhirListLinkedMembers(wid, connectionId, params) {
3408
- const query = new URLSearchParams();
3409
- if (params?.page !== void 0) query.set("page", String(params.page));
3410
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
3411
- if (params?.search?.trim()) query.set("search", params.search.trim());
3412
- const qs = query.toString() ? `?${query.toString()}` : "";
3408
+ const query2 = new URLSearchParams();
3409
+ if (params?.page !== void 0) query2.set("page", String(params.page));
3410
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
3411
+ if (params?.search?.trim()) query2.set("search", params.search.trim());
3412
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
3413
3413
  return this.fetch(
3414
3414
  `w/${wid}/app-connections/fhir/connections/${connectionId}/linked-members${qs}`
3415
3415
  );
@@ -3485,6 +3485,18 @@ var FhirConnectionsApi = class extends BaseApiClient {
3485
3485
  }
3486
3486
  };
3487
3487
 
3488
+ // src/api/stedi.ts
3489
+ var StediApi = class extends BaseApiClient {
3490
+ async getStediConnections(wid) {
3491
+ return this.fetch(`w/${wid}/app-connections/stedi/status`);
3492
+ }
3493
+ async getStediConnectionStatus(wid, connectionUuid) {
3494
+ return this.fetch(
3495
+ `w/${wid}/app-connections/stedi/${connectionUuid}/status`
3496
+ );
3497
+ }
3498
+ };
3499
+
3488
3500
  // src/types/generated/inbound_fax.ts
3489
3501
  var InboundFaxStatus = {
3490
3502
  pending: "pending",
@@ -3513,13 +3525,13 @@ var DocumoFaxApi = class extends BaseApiClient {
3513
3525
  * failures an operator filtering by date is hunting for.
3514
3526
  */
3515
3527
  async listDocumoFaxes(wid, params) {
3516
- const query = new URLSearchParams();
3517
- if (params?.page !== void 0) query.set("page", String(params.page));
3518
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
3519
- params?.status?.forEach((value) => query.append("status", value));
3520
- if (params?.receivedAfter) query.set("receivedAfter", params.receivedAfter);
3521
- if (params?.receivedBefore) query.set("receivedBefore", params.receivedBefore);
3522
- const suffix2 = query.toString() === "" ? "" : `?${query.toString()}`;
3528
+ const query2 = new URLSearchParams();
3529
+ if (params?.page !== void 0) query2.set("page", String(params.page));
3530
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
3531
+ params?.status?.forEach((value) => query2.append("status", value));
3532
+ if (params?.receivedAfter) query2.set("receivedAfter", params.receivedAfter);
3533
+ if (params?.receivedBefore) query2.set("receivedBefore", params.receivedBefore);
3534
+ const suffix2 = query2.toString() === "" ? "" : `?${query2.toString()}`;
3523
3535
  return this.fetch(
3524
3536
  `w/${wid}/app-connections/documo-fax/faxes${suffix2}`
3525
3537
  );
@@ -3594,20 +3606,20 @@ var HealthieApi = class extends BaseApiClient {
3594
3606
  );
3595
3607
  }
3596
3608
  async getLinkedHealthieMembers(wid, params) {
3597
- const query = new URLSearchParams();
3598
- if (params?.page !== void 0) query.set("page", String(params.page));
3599
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
3600
- if (params?.search?.trim()) query.set("search", params.search.trim());
3601
- const qs = query.toString() ? `?${query.toString()}` : "";
3609
+ const query2 = new URLSearchParams();
3610
+ if (params?.page !== void 0) query2.set("page", String(params.page));
3611
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
3612
+ if (params?.search?.trim()) query2.set("search", params.search.trim());
3613
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
3602
3614
  return this.fetch(
3603
3615
  `w/${wid}/app-connections/healthie/reconciliation/linked${qs}`
3604
3616
  );
3605
3617
  }
3606
3618
  async getHealthieReconciliationMatches(wid, params) {
3607
- const query = new URLSearchParams();
3608
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
3609
- if (params?.offset !== void 0) query.set("offset", String(params.offset));
3610
- const qs = query.toString() ? `?${query.toString()}` : "";
3619
+ const query2 = new URLSearchParams();
3620
+ if (params?.limit !== void 0) query2.set("limit", String(params.limit));
3621
+ if (params?.offset !== void 0) query2.set("offset", String(params.offset));
3622
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
3611
3623
  return this.fetch(
3612
3624
  `w/${wid}/app-connections/healthie/reconciliation/matches${qs}`
3613
3625
  );
@@ -3624,17 +3636,17 @@ var HealthieApi = class extends BaseApiClient {
3624
3636
  });
3625
3637
  }
3626
3638
  async listHealthieAppointmentTypes(wid, providerId) {
3627
- const query = new URLSearchParams();
3628
- if (providerId) query.set("provider_id", providerId);
3629
- const qs = query.toString() ? `?${query.toString()}` : "";
3639
+ const query2 = new URLSearchParams();
3640
+ if (providerId) query2.set("provider_id", providerId);
3641
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
3630
3642
  return this.fetch(
3631
3643
  `w/${wid}/app-connections/healthie/appointment-types${qs}`
3632
3644
  );
3633
3645
  }
3634
3646
  async listHealthiePatients(wid, keywords) {
3635
- const query = new URLSearchParams();
3636
- if (keywords?.trim()) query.set("keywords", keywords.trim());
3637
- const qs = query.toString() ? `?${query.toString()}` : "";
3647
+ const query2 = new URLSearchParams();
3648
+ if (keywords?.trim()) query2.set("keywords", keywords.trim());
3649
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
3638
3650
  return this.fetch(
3639
3651
  `w/${wid}/app-connections/healthie/patients${qs}`
3640
3652
  );
@@ -4157,9 +4169,9 @@ var InboxesApi = class extends BaseApiClient {
4157
4169
  const params = new URLSearchParams();
4158
4170
  if (period.dateFrom) params.append("date_from", period.dateFrom);
4159
4171
  if (period.dateTo) params.append("date_to", period.dateTo);
4160
- const query = params.toString();
4172
+ const query2 = params.toString();
4161
4173
  return this.fetch(
4162
- `w/${wid}/inboxes/${inboxId}/outbound-email-stats${query ? `?${query}` : ""}`
4174
+ `w/${wid}/inboxes/${inboxId}/outbound-email-stats${query2 ? `?${query2}` : ""}`
4163
4175
  );
4164
4176
  }
4165
4177
  /** List email threads in an inbox. */
@@ -4564,10 +4576,10 @@ var MembersApi = class extends BaseApiClient {
4564
4576
  });
4565
4577
  }
4566
4578
  /** List workspace members with pagination, filtering, and sorting. */
4567
- async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId, query) {
4579
+ async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId, query2) {
4568
4580
  const params = new URLSearchParams();
4569
4581
  if (memberFilterId != null) params.append("memberFilterId", memberFilterId.toString());
4570
- if (query != null) params.append("query", JSON.stringify(query));
4582
+ if (query2 != null) params.append("query", JSON.stringify(query2));
4571
4583
  if (page) params.append("page", page.toString());
4572
4584
  if (pageSize) params.append("pageSize", pageSize.toString());
4573
4585
  if (sortBy) params.append("sortBy", sortBy);
@@ -5258,21 +5270,21 @@ var MondayIntegrationApi = class extends BaseApiClient {
5258
5270
  });
5259
5271
  }
5260
5272
  async getLinkedMondayMembers(wid, params) {
5261
- const query = new URLSearchParams();
5262
- if (params?.board_id) query.set("board_id", params.board_id);
5263
- if (params?.page !== void 0) query.set("page", String(params.page));
5264
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
5265
- if (params?.search?.trim()) query.set("search", params.search.trim());
5266
- const qs = query.toString() ? `?${query.toString()}` : "";
5273
+ const query2 = new URLSearchParams();
5274
+ if (params?.board_id) query2.set("board_id", params.board_id);
5275
+ if (params?.page !== void 0) query2.set("page", String(params.page));
5276
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
5277
+ if (params?.search?.trim()) query2.set("search", params.search.trim());
5278
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
5267
5279
  return this.fetch(
5268
5280
  `w/${wid}/app-connections/monday/reconciliation/linked${qs}`
5269
5281
  );
5270
5282
  }
5271
5283
  async getMondayReconciliationMatches(wid, params) {
5272
- const query = new URLSearchParams();
5273
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
5274
- if (params?.offset !== void 0) query.set("offset", String(params.offset));
5275
- const qs = query.toString() ? `?${query.toString()}` : "";
5284
+ const query2 = new URLSearchParams();
5285
+ if (params?.limit !== void 0) query2.set("limit", String(params.limit));
5286
+ if (params?.offset !== void 0) query2.set("offset", String(params.offset));
5287
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
5276
5288
  return this.fetch(
5277
5289
  `w/${wid}/app-connections/monday/reconciliation/matches${qs}`
5278
5290
  );
@@ -5296,11 +5308,11 @@ var MondayIntegrationApi = class extends BaseApiClient {
5296
5308
  );
5297
5309
  }
5298
5310
  async getLinkedRecords(wid, params) {
5299
- const query = new URLSearchParams();
5300
- if (params?.board_id) query.set("board_id", params.board_id);
5301
- if (params?.page !== void 0) query.set("page", String(params.page));
5302
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
5303
- const qs = query.toString() ? `?${query.toString()}` : "";
5311
+ const query2 = new URLSearchParams();
5312
+ if (params?.board_id) query2.set("board_id", params.board_id);
5313
+ if (params?.page !== void 0) query2.set("page", String(params.page));
5314
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
5315
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
5304
5316
  return this.fetch(
5305
5317
  `w/${wid}/app-connections/monday/linked-records${qs}`
5306
5318
  );
@@ -5323,10 +5335,10 @@ var MondayIntegrationApi = class extends BaseApiClient {
5323
5335
  * connection is parked for re-authorization.
5324
5336
  */
5325
5337
  async getMondaySyncLogs(wid, params) {
5326
- const query = new URLSearchParams();
5327
- if (params?.pageSize) query.set("pageSize", String(params.pageSize));
5328
- if (params?.cursor) query.set("cursor", params.cursor);
5329
- const qs = query.toString() ? `?${query.toString()}` : "";
5338
+ const query2 = new URLSearchParams();
5339
+ if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
5340
+ if (params?.cursor) query2.set("cursor", params.cursor);
5341
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
5330
5342
  return this.fetch(
5331
5343
  `w/${wid}/app-connections/monday/sync/logs${qs}`
5332
5344
  );
@@ -5498,7 +5510,7 @@ var OrgApi = class extends BaseApiClient {
5498
5510
  async getOrgAiConnectorPolicy(orgIdOrUuid) {
5499
5511
  return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
5500
5512
  }
5501
- /** Set the AI connector mode: `any` or `allowlist`. Requires `org:admin`. */
5513
+ /** Set the AI connector mode: `any`, `allowlist` or `none`. Requires `org:admin`. */
5502
5514
  async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
5503
5515
  return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
5504
5516
  method: "PUT",
@@ -5749,13 +5761,13 @@ var OrgApi = class extends BaseApiClient {
5749
5761
  * Search for available phone numbers to purchase from Twilio.
5750
5762
  */
5751
5763
  async searchPhoneNumbers(orgUuid, params) {
5752
- const query = new URLSearchParams();
5753
- if (params?.country) query.set("country", params.country);
5754
- if (params?.numberType) query.set("number_type", params.numberType);
5755
- if (params?.areaCode) query.set("area_code", params.areaCode);
5756
- if (params?.contains) query.set("contains", params.contains);
5757
- if (params?.limit) query.set("limit", String(params.limit));
5758
- const qs = query.toString();
5764
+ const query2 = new URLSearchParams();
5765
+ if (params?.country) query2.set("country", params.country);
5766
+ if (params?.numberType) query2.set("number_type", params.numberType);
5767
+ if (params?.areaCode) query2.set("area_code", params.areaCode);
5768
+ if (params?.contains) query2.set("contains", params.contains);
5769
+ if (params?.limit) query2.set("limit", String(params.limit));
5770
+ const qs = query2.toString();
5759
5771
  return this.fetch(
5760
5772
  `o/${orgUuid}/phone-numbers/search${qs ? `?${qs}` : ""}`
5761
5773
  );
@@ -5855,9 +5867,9 @@ var OrgApi = class extends BaseApiClient {
5855
5867
  * Disable email support for an org domain.
5856
5868
  */
5857
5869
  async disableOrgDomainEmail(orgIdOrUuid, domainUuid, confirm = false) {
5858
- const query = `?confirm=${confirm ? "true" : "false"}`;
5870
+ const query2 = `?confirm=${confirm ? "true" : "false"}`;
5859
5871
  const response = await this.fetchRaw(
5860
- `o/${orgIdOrUuid}/domains/${domainUuid}/email${query}`,
5872
+ `o/${orgIdOrUuid}/domains/${domainUuid}/email${query2}`,
5861
5873
  { method: "DELETE" },
5862
5874
  [409]
5863
5875
  );
@@ -5938,9 +5950,9 @@ var OrgApi = class extends BaseApiClient {
5938
5950
  * Disable custom site routing for an org domain.
5939
5951
  */
5940
5952
  async disableOrgDomainSite(orgIdOrUuid, domainUuid, confirm = false) {
5941
- const query = `?confirm=${confirm ? "true" : "false"}`;
5953
+ const query2 = `?confirm=${confirm ? "true" : "false"}`;
5942
5954
  const response = await this.fetchRaw(
5943
- `o/${orgIdOrUuid}/domains/${domainUuid}/site${query}`,
5955
+ `o/${orgIdOrUuid}/domains/${domainUuid}/site${query2}`,
5944
5956
  { method: "DELETE" },
5945
5957
  [409]
5946
5958
  );
@@ -6416,9 +6428,9 @@ var OrgApi = class extends BaseApiClient {
6416
6428
  * endpoint and sit in a workspace it actually covers.
6417
6429
  */
6418
6430
  async getOrgWebhookEventSample(orgIdOrUuid, eventType, endpointUuid) {
6419
- const query = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
6431
+ const query2 = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
6420
6432
  return this.fetch(
6421
- `o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query}`
6433
+ `o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query2}`
6422
6434
  );
6423
6435
  }
6424
6436
  /**
@@ -6648,8 +6660,8 @@ var PhoneNumbersApi = class extends BaseApiClient {
6648
6660
  if (options?.isArchived !== void 0) {
6649
6661
  params.set("is_archived", String(options.isArchived));
6650
6662
  }
6651
- const query = params.toString();
6652
- return this.fetch(`w/${wid}/phone-numbers${query ? `?${query}` : ""}`);
6663
+ const query2 = params.toString();
6664
+ return this.fetch(`w/${wid}/phone-numbers${query2 ? `?${query2}` : ""}`);
6653
6665
  }
6654
6666
  /** List phone numbers available for provisioning. */
6655
6667
  async getAvailablePhoneNumbers(wid) {
@@ -6806,9 +6818,9 @@ var PhoneNumbersApi = class extends BaseApiClient {
6806
6818
  async getPhoneNumberOutboundAnalyticsSummary(wid, id, filters) {
6807
6819
  const params = new URLSearchParams();
6808
6820
  appendAnalyticsFilters(params, filters);
6809
- const query = params.toString();
6821
+ const query2 = params.toString();
6810
6822
  return this.fetch(
6811
- `w/${wid}/phone-numbers/${id}/analytics/summary${query ? `?${query}` : ""}`
6823
+ `w/${wid}/phone-numbers/${id}/analytics/summary${query2 ? `?${query2}` : ""}`
6812
6824
  );
6813
6825
  }
6814
6826
  /**
@@ -7043,24 +7055,24 @@ var QueriesApi = class extends BaseApiClient {
7043
7055
  });
7044
7056
  }
7045
7057
  /** Structure / field / access / cost validation without execution. */
7046
- async validateQuery(wid, query) {
7058
+ async validateQuery(wid, query2) {
7047
7059
  return this.fetch(`w/${wid}/queries/validate`, {
7048
7060
  method: "POST",
7049
- body: JSON.stringify({ query })
7061
+ body: JSON.stringify({ query: query2 })
7050
7062
  });
7051
7063
  }
7052
7064
  /** Bounded sample run (limit capped server-side). */
7053
- async previewQuery(wid, query, mode) {
7065
+ async previewQuery(wid, query2, mode) {
7054
7066
  return this.fetch(`w/${wid}/queries/preview`, {
7055
7067
  method: "POST",
7056
- body: JSON.stringify({ query, mode })
7068
+ body: JSON.stringify({ query: query2, mode })
7057
7069
  });
7058
7070
  }
7059
7071
  /** Execute a query (rows / count / aggregate). */
7060
- async runQuery(wid, query, mode) {
7072
+ async runQuery(wid, query2, mode) {
7061
7073
  return this.fetch(`w/${wid}/queries/run`, {
7062
7074
  method: "POST",
7063
- body: JSON.stringify({ query, mode })
7075
+ body: JSON.stringify({ query: query2, mode })
7064
7076
  });
7065
7077
  }
7066
7078
  };
@@ -7084,10 +7096,10 @@ var QualificationsApi = class extends BaseApiClient {
7084
7096
  }
7085
7097
  /** List qualifications in a workspace, paginated. */
7086
7098
  async getQualifications(wid, params) {
7087
- const query = new URLSearchParams();
7088
- if (params?.page !== void 0) query.set("page", String(params.page));
7089
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
7090
- const qs = query.toString() ? `?${query.toString()}` : "";
7099
+ const query2 = new URLSearchParams();
7100
+ if (params?.page !== void 0) query2.set("page", String(params.page));
7101
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
7102
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7091
7103
  return this.fetch(`w/${wid}/qualifications${qs}`);
7092
7104
  }
7093
7105
  /** Get a single qualification by ID. */
@@ -7102,9 +7114,9 @@ var QualificationsApi = class extends BaseApiClient {
7102
7114
  }
7103
7115
  // ===== Scenarios =====
7104
7116
  async listScenarios(wid, qualificationId, params) {
7105
- const query = new URLSearchParams();
7106
- if (params?.includeArchived) query.set("include_archived", "true");
7107
- const qs = query.toString() ? `?${query.toString()}` : "";
7117
+ const query2 = new URLSearchParams();
7118
+ if (params?.includeArchived) query2.set("include_archived", "true");
7119
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7108
7120
  return this.fetch(`w/${wid}/qualifications/${qualificationId}/scenarios${qs}`);
7109
7121
  }
7110
7122
  async createScenario(wid, qualificationId, data) {
@@ -7137,19 +7149,19 @@ var QualificationsApi = class extends BaseApiClient {
7137
7149
  * `workflowRevisionId`. Omitting both keeps the unfiltered list.
7138
7150
  */
7139
7151
  async listTestChatRuns(wid, workflowId, params) {
7140
- const query = new URLSearchParams();
7141
- if (params?.scenarioId !== void 0) query.set("scenarioId", String(params.scenarioId));
7152
+ const query2 = new URLSearchParams();
7153
+ if (params?.scenarioId !== void 0) query2.set("scenarioId", String(params.scenarioId));
7142
7154
  if (params?.assistantChatModelId !== void 0) {
7143
- query.set("assistantChatModelId", params.assistantChatModelId);
7155
+ query2.set("assistantChatModelId", params.assistantChatModelId);
7144
7156
  }
7145
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
7157
+ if (params?.limit !== void 0) query2.set("limit", String(params.limit));
7146
7158
  if (params?.workflowRevisionId !== void 0) {
7147
- query.set("workflow_revision_id", String(params.workflowRevisionId));
7159
+ query2.set("workflow_revision_id", String(params.workflowRevisionId));
7148
7160
  }
7149
7161
  if (params?.includeEarlierRevisions !== void 0) {
7150
- query.set("include_earlier_revisions", String(params.includeEarlierRevisions));
7162
+ query2.set("include_earlier_revisions", String(params.includeEarlierRevisions));
7151
7163
  }
7152
- const qs = query.toString() ? `?${query.toString()}` : "";
7164
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7153
7165
  return this.fetch(
7154
7166
  `w/${wid}/qualifications/workflows/${workflowId}/test-chat-runs${qs}`
7155
7167
  );
@@ -7164,11 +7176,11 @@ var QualificationsApi = class extends BaseApiClient {
7164
7176
  * revision it describes and whether it is the current one.
7165
7177
  */
7166
7178
  async listScenarioHealthSummaries(wid, workflowId, params) {
7167
- const query = new URLSearchParams();
7179
+ const query2 = new URLSearchParams();
7168
7180
  if (params?.workflowRevisionId !== void 0) {
7169
- query.set("workflow_revision_id", String(params.workflowRevisionId));
7181
+ query2.set("workflow_revision_id", String(params.workflowRevisionId));
7170
7182
  }
7171
- const qs = query.toString() ? `?${query.toString()}` : "";
7183
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7172
7184
  return this.fetch(
7173
7185
  `w/${wid}/qualifications/workflows/${workflowId}/scenario-health-summaries${qs}`
7174
7186
  );
@@ -7372,9 +7384,9 @@ var RoutingRulesApi = class extends BaseApiClient {
7372
7384
  async getRoutingRules(wid, filters) {
7373
7385
  const params = new URLSearchParams();
7374
7386
  appendFilters(params, filters);
7375
- const query = params.toString();
7387
+ const query2 = params.toString();
7376
7388
  return this.fetch(
7377
- `w/${wid}/routing${query ? `?${query}` : ""}`
7389
+ `w/${wid}/routing${query2 ? `?${query2}` : ""}`
7378
7390
  );
7379
7391
  }
7380
7392
  /** Read one rule. Requires the rule's endpoint read permission (`phones:read`, or `inboxes:read`). */
@@ -7480,10 +7492,10 @@ var SalesforceApi = class extends BaseApiClient {
7480
7492
  });
7481
7493
  }
7482
7494
  async getSalesforceReconciliationMatches(wid, params) {
7483
- const query = new URLSearchParams();
7484
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
7485
- if (params?.offset !== void 0) query.set("offset", String(params.offset));
7486
- const qs = query.toString() ? `?${query.toString()}` : "";
7495
+ const query2 = new URLSearchParams();
7496
+ if (params?.limit !== void 0) query2.set("limit", String(params.limit));
7497
+ if (params?.offset !== void 0) query2.set("offset", String(params.offset));
7498
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7487
7499
  return this.fetch(
7488
7500
  `w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
7489
7501
  );
@@ -7520,11 +7532,11 @@ var SalesforceApi = class extends BaseApiClient {
7520
7532
  });
7521
7533
  }
7522
7534
  async getLinkedSalesforceMembers(wid, params) {
7523
- const query = new URLSearchParams();
7524
- if (params?.page !== void 0) query.set("page", String(params.page));
7525
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
7526
- if (params?.search?.trim()) query.set("search", params.search.trim());
7527
- const qs = query.toString() ? `?${query.toString()}` : "";
7535
+ const query2 = new URLSearchParams();
7536
+ if (params?.page !== void 0) query2.set("page", String(params.page));
7537
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
7538
+ if (params?.search?.trim()) query2.set("search", params.search.trim());
7539
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7528
7540
  return this.fetch(
7529
7541
  `w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
7530
7542
  );
@@ -7602,10 +7614,10 @@ var SalesforceApi = class extends BaseApiClient {
7602
7614
  * connection is parked for re-authorization.
7603
7615
  */
7604
7616
  async getSalesforceSyncLogs(wid, params) {
7605
- const query = new URLSearchParams();
7606
- if (params?.pageSize) query.set("pageSize", String(params.pageSize));
7607
- if (params?.cursor) query.set("cursor", params.cursor);
7608
- const qs = query.toString() ? `?${query.toString()}` : "";
7617
+ const query2 = new URLSearchParams();
7618
+ if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
7619
+ if (params?.cursor) query2.set("cursor", params.cursor);
7620
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7609
7621
  return this.fetch(
7610
7622
  `w/${wid}/app-connections/salesforce/sync/logs${qs}`
7611
7623
  );
@@ -7645,12 +7657,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
7645
7657
  );
7646
7658
  }
7647
7659
  async getConnectionSyncCheckpoint(wid, connectionId, direction = "inbound", syncKey = "default") {
7648
- const query = new URLSearchParams({
7660
+ const query2 = new URLSearchParams({
7649
7661
  direction,
7650
7662
  sync_key: syncKey
7651
7663
  });
7652
7664
  return this.fetch(
7653
- `w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query}`
7665
+ `w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query2}`
7654
7666
  );
7655
7667
  }
7656
7668
  /**
@@ -7700,9 +7712,9 @@ var ConnectionSyncApi = class extends BaseApiClient {
7700
7712
  * ``boardId`` is only meaningful for multi-scope connectors (Monday).
7701
7713
  */
7702
7714
  async clearConnectionMemberExclusion(wid, connectionId, memberId, options) {
7703
- const query = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
7715
+ const query2 = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
7704
7716
  return this.fetch(
7705
- `w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query}`,
7717
+ `w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query2}`,
7706
7718
  { method: "DELETE" }
7707
7719
  );
7708
7720
  }
@@ -7794,12 +7806,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
7794
7806
  }
7795
7807
  /** Vendor lists a `vendor_list` import can name (configuration only). */
7796
7808
  async listSubsetImportVendorLists(wid, connectionId, options) {
7797
- const query = new URLSearchParams({
7809
+ const query2 = new URLSearchParams({
7798
7810
  query: options?.query ?? "",
7799
7811
  limit: String(options?.limit ?? 50)
7800
7812
  });
7801
7813
  return this.fetch(
7802
- this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query}`)
7814
+ this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query2}`)
7803
7815
  );
7804
7816
  }
7805
7817
  /** Remote fields a `field_filter` import can name, with their operators. */
@@ -7861,10 +7873,10 @@ var HubspotApi = class extends BaseApiClient {
7861
7873
  });
7862
7874
  }
7863
7875
  async getHubspotReconciliationMatches(wid, params) {
7864
- const query = new URLSearchParams();
7865
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
7866
- if (params?.offset !== void 0) query.set("offset", String(params.offset));
7867
- const qs = query.toString() ? `?${query.toString()}` : "";
7876
+ const query2 = new URLSearchParams();
7877
+ if (params?.limit !== void 0) query2.set("limit", String(params.limit));
7878
+ if (params?.offset !== void 0) query2.set("offset", String(params.offset));
7879
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7868
7880
  return this.fetch(
7869
7881
  `w/${wid}/app-connections/hubspot/reconciliation/matches${qs}`
7870
7882
  );
@@ -7887,11 +7899,11 @@ var HubspotApi = class extends BaseApiClient {
7887
7899
  });
7888
7900
  }
7889
7901
  async getLinkedHubspotMembers(wid, params) {
7890
- const query = new URLSearchParams();
7891
- if (params?.page !== void 0) query.set("page", String(params.page));
7892
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
7893
- if (params?.search?.trim()) query.set("search", params.search.trim());
7894
- const qs = query.toString() ? `?${query.toString()}` : "";
7902
+ const query2 = new URLSearchParams();
7903
+ if (params?.page !== void 0) query2.set("page", String(params.page));
7904
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
7905
+ if (params?.search?.trim()) query2.set("search", params.search.trim());
7906
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7895
7907
  return this.fetch(
7896
7908
  `w/${wid}/app-connections/hubspot/reconciliation/linked${qs}`
7897
7909
  );
@@ -7951,10 +7963,10 @@ var HubspotApi = class extends BaseApiClient {
7951
7963
  * and Monday twins return), with cursor pagination.
7952
7964
  */
7953
7965
  async getHubspotSyncLogs(wid, params) {
7954
- const query = new URLSearchParams();
7955
- if (params?.pageSize) query.set("pageSize", String(params.pageSize));
7956
- if (params?.cursor) query.set("cursor", params.cursor);
7957
- const qs = query.toString() ? `?${query.toString()}` : "";
7966
+ const query2 = new URLSearchParams();
7967
+ if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
7968
+ if (params?.cursor) query2.set("cursor", params.cursor);
7969
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7958
7970
  return this.fetch(
7959
7971
  `w/${wid}/app-connections/hubspot/sync/logs${qs}`
7960
7972
  );
@@ -8088,8 +8100,8 @@ var SitesApi = class extends BaseApiClient {
8088
8100
  * (e.g. one the builder has selected but not yet saved).
8089
8101
  */
8090
8102
  async getThemeSettings(wid, siteId, theme) {
8091
- const query = theme ? `?theme=${encodeURIComponent(theme)}` : "";
8092
- return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query}`);
8103
+ const query2 = theme ? `?theme=${encodeURIComponent(theme)}` : "";
8104
+ return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`);
8093
8105
  }
8094
8106
  /** Save values for the active theme's settings (validated against the schema). */
8095
8107
  async updateThemeSettings(wid, siteId, values) {
@@ -8235,9 +8247,9 @@ var SitesApi = class extends BaseApiClient {
8235
8247
  if (parentId !== void 0 && parentId !== null) {
8236
8248
  params.append("parent_id", parentId.toString());
8237
8249
  }
8238
- const query = params.toString();
8250
+ const query2 = params.toString();
8239
8251
  return this.fetch(
8240
- `w/${wid}/sites/${siteId}/menu/items${query ? `?${query}` : ""}`
8252
+ `w/${wid}/sites/${siteId}/menu/items${query2 ? `?${query2}` : ""}`
8241
8253
  );
8242
8254
  }
8243
8255
  /** Create a new menu item in a site's navigation. */
@@ -8478,8 +8490,8 @@ function supportRequestParams(params) {
8478
8490
  if (params?.linearLinked !== void 0) {
8479
8491
  searchParams.append("linearLinked", params.linearLinked.toString());
8480
8492
  }
8481
- const query = searchParams.toString();
8482
- return query ? `?${query}` : "";
8493
+ const query2 = searchParams.toString();
8494
+ return query2 ? `?${query2}` : "";
8483
8495
  }
8484
8496
  var SupportRequestsApi = class extends BaseApiClient {
8485
8497
  async listSupportRequests(params) {
@@ -8893,8 +8905,8 @@ var JourneysApi = class extends BaseApiClient {
8893
8905
  * for is the state it is in.
8894
8906
  */
8895
8907
  async deleteJourneyDraft(wid, journeyId, expectedUpdatedAt) {
8896
- const query = new URLSearchParams({ expectedUpdatedAt });
8897
- return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${query.toString()}`, {
8908
+ const query2 = new URLSearchParams({ expectedUpdatedAt });
8909
+ return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${query2.toString()}`, {
8898
8910
  method: "DELETE"
8899
8911
  });
8900
8912
  }
@@ -8905,11 +8917,11 @@ var JourneysApi = class extends BaseApiClient {
8905
8917
  * {@link getJourneyAuthoring} for the editor's expression-carrying shape.
8906
8918
  */
8907
8919
  async getJourneys(wid, includeArchived = false, pageOpts) {
8908
- const query = new URLSearchParams();
8909
- if (includeArchived) query.set("include_archived", "true");
8910
- if (pageOpts?.page !== void 0) query.set("page", String(pageOpts.page));
8911
- if (pageOpts?.pageSize !== void 0) query.set("pageSize", String(pageOpts.pageSize));
8912
- const qs = query.toString() ? `?${query.toString()}` : "";
8920
+ const query2 = new URLSearchParams();
8921
+ if (includeArchived) query2.set("include_archived", "true");
8922
+ if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
8923
+ if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
8924
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
8913
8925
  return this.fetch(`w/${wid}/journeys${qs}`);
8914
8926
  }
8915
8927
  /**
@@ -9035,9 +9047,9 @@ var JourneysApi = class extends BaseApiClient {
9035
9047
  * `additionalMembers` is the size of a batch about to be enrolled.
9036
9048
  */
9037
9049
  async getJourneySendEstimate(wid, journeyId, additionalMembers = 0) {
9038
- const query = new URLSearchParams({ additionalMembers: String(additionalMembers) });
9050
+ const query2 = new URLSearchParams({ additionalMembers: String(additionalMembers) });
9039
9051
  return this.fetch(
9040
- `w/${wid}/journeys/${journeyId}/send-estimate?${query.toString()}`
9052
+ `w/${wid}/journeys/${journeyId}/send-estimate?${query2.toString()}`
9041
9053
  );
9042
9054
  }
9043
9055
  /** Create a step within a journey. */
@@ -9126,9 +9138,9 @@ var JourneysApi = class extends BaseApiClient {
9126
9138
  qs.set("currentTaskId", String(params.currentTaskId));
9127
9139
  if (params?.runtimeFailureEdgeId !== void 0)
9128
9140
  qs.set("runtimeFailureEdgeId", String(params.runtimeFailureEdgeId));
9129
- const query = qs.toString();
9141
+ const query2 = qs.toString();
9130
9142
  return this.fetch(
9131
- `w/${wid}/journeys/${journeyId}/members${query ? `?${query}` : ""}`
9143
+ `w/${wid}/journeys/${journeyId}/members${query2 ? `?${query2}` : ""}`
9132
9144
  );
9133
9145
  }
9134
9146
  /** Enroll one or more members in a journey. */
@@ -9187,9 +9199,9 @@ var JourneysApi = class extends BaseApiClient {
9187
9199
  if (params.zeroEmissionOnly !== void 0) {
9188
9200
  qs.set("zeroEmissionOnly", String(params.zeroEmissionOnly));
9189
9201
  }
9190
- const query = qs.toString();
9202
+ const query2 = qs.toString();
9191
9203
  return this.fetch(
9192
- `w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query ? `?${query}` : "")
9204
+ `w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query2 ? `?${query2}` : "")
9193
9205
  );
9194
9206
  }
9195
9207
  /** List members currently or historically associated with one journey step. */
@@ -9199,9 +9211,9 @@ var JourneysApi = class extends BaseApiClient {
9199
9211
  if (params.mode) qs.set("mode", params.mode);
9200
9212
  if (params.page) qs.set("page", String(params.page));
9201
9213
  if (params.pageSize) qs.set("pageSize", String(params.pageSize));
9202
- const query = qs.toString();
9214
+ const query2 = qs.toString();
9203
9215
  return this.fetch(
9204
- `w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${query ? `?${query}` : ""}`
9216
+ `w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${query2 ? `?${query2}` : ""}`
9205
9217
  );
9206
9218
  }
9207
9219
  /** Get member counts by status for each journey step. */
@@ -9311,8 +9323,8 @@ var WorkflowsApi = class extends BaseApiClient {
9311
9323
  * portion so the active count can be derived.
9312
9324
  */
9313
9325
  async getWorkflowDiagram(wid, id, options = {}) {
9314
- const query = options.includeArchived ? "?include_archived=true" : "";
9315
- return this.fetch(`w/${wid}/workflows/${id}/diagram${query}`);
9326
+ const query2 = options.includeArchived ? "?include_archived=true" : "";
9327
+ return this.fetch(`w/${wid}/workflows/${id}/diagram${query2}`);
9316
9328
  }
9317
9329
  /**
9318
9330
  * The outline a Workflow's diagram is drawn from: its active Tasks, its
@@ -9626,36 +9638,36 @@ var WorkflowsApi = class extends BaseApiClient {
9626
9638
  };
9627
9639
 
9628
9640
  // src/api/workflow-notes.ts
9629
- function notesPath(wid, workflowId, noteId, query) {
9641
+ function notesPath(wid, workflowId, noteId, query2) {
9630
9642
  const base = noteId == null ? `w/${wid}/workflows/${workflowId}/notes` : `w/${wid}/workflows/${workflowId}/notes/${noteId}`;
9631
- if (query?.workflowRevisionId == null) return base;
9643
+ if (query2?.workflowRevisionId == null) return base;
9632
9644
  const params = new URLSearchParams({
9633
- workflowRevisionId: String(query.workflowRevisionId)
9645
+ workflowRevisionId: String(query2.workflowRevisionId)
9634
9646
  });
9635
9647
  return `${base}?${params.toString()}`;
9636
9648
  }
9637
9649
  var WorkflowNotesApi = class extends BaseApiClient {
9638
9650
  /** List notes for a workflow root (draft unless `workflowRevisionId` is set). */
9639
- async getWorkflowNotes(wid, workflowId, query) {
9640
- return this.fetch(notesPath(wid, workflowId, void 0, query));
9651
+ async getWorkflowNotes(wid, workflowId, query2) {
9652
+ return this.fetch(notesPath(wid, workflowId, void 0, query2));
9641
9653
  }
9642
9654
  /** Create a new note on a workflow's draft (or a pinned draft revision). */
9643
- async createWorkflowNote(wid, workflowId, data, query) {
9644
- return this.fetch(notesPath(wid, workflowId, void 0, query), {
9655
+ async createWorkflowNote(wid, workflowId, data, query2) {
9656
+ return this.fetch(notesPath(wid, workflowId, void 0, query2), {
9645
9657
  method: "POST",
9646
9658
  body: JSON.stringify(data)
9647
9659
  });
9648
9660
  }
9649
9661
  /** Update an existing workflow note with partial data. */
9650
- async updateWorkflowNote(wid, workflowId, noteId, data, query) {
9651
- return this.fetch(notesPath(wid, workflowId, noteId, query), {
9662
+ async updateWorkflowNote(wid, workflowId, noteId, data, query2) {
9663
+ return this.fetch(notesPath(wid, workflowId, noteId, query2), {
9652
9664
  method: "PUT",
9653
9665
  body: JSON.stringify(data)
9654
9666
  });
9655
9667
  }
9656
9668
  /** Delete a workflow note by ID. */
9657
- async deleteWorkflowNote(wid, workflowId, noteId, query) {
9658
- return this.fetch(notesPath(wid, workflowId, noteId, query), {
9669
+ async deleteWorkflowNote(wid, workflowId, noteId, query2) {
9670
+ return this.fetch(notesPath(wid, workflowId, noteId, query2), {
9659
9671
  method: "DELETE"
9660
9672
  });
9661
9673
  }
@@ -9706,6 +9718,9 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
9706
9718
  Scope2["WORKSPACE_READ"] = "workspace:read";
9707
9719
  Scope2["WORKSPACE_WRITE"] = "workspace:write";
9708
9720
  Scope2["WORKSPACE_ADMIN"] = "workspace:admin";
9721
+ Scope2["MEDICAL_BILLING_READ"] = "medical_billing:read";
9722
+ Scope2["MEDICAL_BILLING_WRITE"] = "medical_billing:write";
9723
+ Scope2["MEDICAL_BILLING_ADMIN"] = "medical_billing:admin";
9709
9724
  Scope2["MEMBERS_READ"] = "members:read";
9710
9725
  Scope2["MEMBERS_WRITE"] = "members:write";
9711
9726
  Scope2["MEMBERS_ADMIN"] = "members:admin";
@@ -10066,6 +10081,7 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
10066
10081
  WorkspaceFeature2["MONDAY"] = "monday";
10067
10082
  WorkspaceFeature2["DOCUMO_FAX"] = "documo_fax";
10068
10083
  WorkspaceFeature2["CLAIM_MD"] = "claim_md";
10084
+ WorkspaceFeature2["STEDI"] = "stedi";
10069
10085
  WorkspaceFeature2["RESELL_PRODUCTS"] = "resell_products";
10070
10086
  WorkspaceFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
10071
10087
  WorkspaceFeature2["EHR_FHIR"] = "ehr_fhir";
@@ -10297,6 +10313,14 @@ var CapturedEffectKind = {
10297
10313
  };
10298
10314
 
10299
10315
  // src/types/generated/test_chat_run_inbound.ts
10316
+ var FaxDocumentRefusal = {
10317
+ fax_document_invalid: "fax_document_invalid"
10318
+ };
10319
+ var FaxRunRefusal = {
10320
+ fax_run_on_the_fax_channel: "fax_run_on_the_fax_channel",
10321
+ fax_run_is_manual: "fax_run_is_manual",
10322
+ fax_run_takes_no_identity: "fax_run_takes_no_identity"
10323
+ };
10300
10324
  var InboundRefusal = {
10301
10325
  run_not_found: "run_not_found",
10302
10326
  run_ended: "run_ended",
@@ -11042,10 +11066,10 @@ var WorkspacesApi = class extends BaseApiClient {
11042
11066
  }
11043
11067
  /** List client workspaces managed by this reseller workspace, paginated. */
11044
11068
  async getResellerWorkspaces(wid, params) {
11045
- const query = new URLSearchParams();
11046
- if (params?.page !== void 0) query.set("page", String(params.page));
11047
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
11048
- const qs = query.toString() ? `?${query.toString()}` : "";
11069
+ const query2 = new URLSearchParams();
11070
+ if (params?.page !== void 0) query2.set("page", String(params.page));
11071
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
11072
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
11049
11073
  return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
11050
11074
  }
11051
11075
  /** Create a new client workspace under a reseller workspace. */
@@ -11455,6 +11479,81 @@ var WorkspacesApi = class extends BaseApiClient {
11455
11479
  }
11456
11480
  };
11457
11481
 
11482
+ // src/api/medical-billing.ts
11483
+ function query(params) {
11484
+ const values = new URLSearchParams();
11485
+ if (params?.after != null) values.set("after", String(params.after));
11486
+ if (params?.limit != null) values.set("limit", String(params.limit));
11487
+ if (params?.memberId != null) values.set("member_id", String(params.memberId));
11488
+ if (params?.connectionId != null) values.set("connection_id", String(params.connectionId));
11489
+ return values.size ? `?${values}` : "";
11490
+ }
11491
+ var MedicalBillingApi = class extends BaseApiClient {
11492
+ listMedicalBillingConnections(wid) {
11493
+ return this.fetch(`w/${wid}/medical-billing/connections`);
11494
+ }
11495
+ submitMedicalClaim(wid, body) {
11496
+ return this.fetch(`w/${wid}/medical-billing/claim-submissions`, {
11497
+ method: "POST",
11498
+ body: JSON.stringify(body)
11499
+ });
11500
+ }
11501
+ listMedicalBillingProviders(wid, params) {
11502
+ return this.fetch(`w/${wid}/medical-billing/providers${query(params)}`);
11503
+ }
11504
+ listMedicalCoverages(wid, params) {
11505
+ return this.fetch(`w/${wid}/medical-billing/coverages${query(params)}`);
11506
+ }
11507
+ createMedicalCoverage(wid, body) {
11508
+ return this.fetch(`w/${wid}/medical-billing/coverages`, {
11509
+ method: "POST",
11510
+ body: JSON.stringify(body)
11511
+ });
11512
+ }
11513
+ updateMedicalCoverage(wid, id, body) {
11514
+ return this.fetch(`w/${wid}/medical-billing/coverages/${id}`, {
11515
+ method: "PATCH",
11516
+ body: JSON.stringify(body)
11517
+ });
11518
+ }
11519
+ setMedicalPayerRoute(wid, id, body) {
11520
+ return this.fetch(`w/${wid}/medical-billing/coverages/${id}/payer-routes`, {
11521
+ method: "POST",
11522
+ body: JSON.stringify(body)
11523
+ });
11524
+ }
11525
+ listMedicalCharges(wid, params) {
11526
+ return this.fetch(`w/${wid}/medical-billing/charges${query(params)}`);
11527
+ }
11528
+ createMedicalCharge(wid, body) {
11529
+ return this.fetch(`w/${wid}/medical-billing/charges`, {
11530
+ method: "POST",
11531
+ body: JSON.stringify(body)
11532
+ });
11533
+ }
11534
+ updateMedicalCharge(wid, id, body) {
11535
+ return this.fetch(`w/${wid}/medical-billing/charges/${id}`, {
11536
+ method: "PATCH",
11537
+ body: JSON.stringify(body)
11538
+ });
11539
+ }
11540
+ listMedicalClaims(wid, params) {
11541
+ return this.fetch(`w/${wid}/medical-billing/claims${query(params)}`);
11542
+ }
11543
+ getMedicalClaim(wid, id) {
11544
+ return this.fetch(`w/${wid}/medical-billing/claims/${encodeURIComponent(id)}`);
11545
+ }
11546
+ listMedicalEligibilityChecks(wid, params) {
11547
+ return this.fetch(`w/${wid}/medical-billing/eligibility-checks${query(params)}`);
11548
+ }
11549
+ listMedicalRemittances(wid, params) {
11550
+ return this.fetch(`w/${wid}/medical-billing/remittances${query(params)}`);
11551
+ }
11552
+ getMedicalRemittance(wid, id) {
11553
+ return this.fetch(`w/${wid}/medical-billing/remittances/${id}`);
11554
+ }
11555
+ };
11556
+
11458
11557
  // src/api/dashboards.ts
11459
11558
  var DashboardsApi = class extends BaseApiClient {
11460
11559
  /** List all dashboards for the workspace, in tab order. */
@@ -11487,9 +11586,9 @@ var DashboardsApi = class extends BaseApiClient {
11487
11586
  async getDashboardChannelStats(wid, options) {
11488
11587
  const params = new URLSearchParams();
11489
11588
  if (options?.hours !== void 0) params.append("hours", options.hours.toString());
11490
- const query = params.toString();
11589
+ const query2 = params.toString();
11491
11590
  return this.fetch(
11492
- `w/${wid}/dashboards/stats/channels${query ? `?${query}` : ""}`
11591
+ `w/${wid}/dashboards/stats/channels${query2 ? `?${query2}` : ""}`
11493
11592
  );
11494
11593
  }
11495
11594
  /**
@@ -11501,9 +11600,9 @@ var DashboardsApi = class extends BaseApiClient {
11501
11600
  async getDashboardWorkflowAssignmentStats(wid, options) {
11502
11601
  const params = new URLSearchParams();
11503
11602
  if (options?.hours != null) params.append("hours", options.hours.toString());
11504
- const query = params.toString();
11603
+ const query2 = params.toString();
11505
11604
  return this.fetch(
11506
- `w/${wid}/dashboards/stats/workflow-assignments${query ? `?${query}` : ""}`
11605
+ `w/${wid}/dashboards/stats/workflow-assignments${query2 ? `?${query2}` : ""}`
11507
11606
  );
11508
11607
  }
11509
11608
  /**
@@ -11527,9 +11626,9 @@ var DashboardsApi = class extends BaseApiClient {
11527
11626
  if (options?.pageSize !== void 0) params.append("pageSize", options.pageSize.toString());
11528
11627
  if (options?.check !== void 0) params.append("check", options.check);
11529
11628
  if (options?.severity !== void 0) params.append("severity", options.severity);
11530
- const query = params.toString();
11629
+ const query2 = params.toString();
11531
11630
  return this.fetch(
11532
- `w/${wid}/configuration-health${query ? `?${query}` : ""}`
11631
+ `w/${wid}/configuration-health${query2 ? `?${query2}` : ""}`
11533
11632
  );
11534
11633
  }
11535
11634
  };
@@ -11637,11 +11736,11 @@ var TeamsAppsApi = class extends BaseApiClient {
11637
11736
  var ExperimentsApi = class extends BaseApiClient {
11638
11737
  /** List experiments with group summaries and assignment counts. */
11639
11738
  async getExperiments(wid, params) {
11640
- const query = new URLSearchParams();
11641
- if (params?.page !== void 0) query.set("page", String(params.page));
11642
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
11643
- if (params?.includeArchived) query.set("includeArchived", "true");
11644
- const qs = query.toString() ? `?${query.toString()}` : "";
11739
+ const query2 = new URLSearchParams();
11740
+ if (params?.page !== void 0) query2.set("page", String(params.page));
11741
+ if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
11742
+ if (params?.includeArchived) query2.set("includeArchived", "true");
11743
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
11645
11744
  return this.fetch(`w/${wid}/experiments${qs}`);
11646
11745
  }
11647
11746
  /** Get a single experiment by ID (includes groups). */
@@ -12017,8 +12116,8 @@ var MotdApi = class extends BaseApiClient {
12017
12116
  const params = new URLSearchParams();
12018
12117
  if (options?.date !== void 0) params.append("date", options.date);
12019
12118
  if (options?.offset !== void 0) params.append("offset", options.offset.toString());
12020
- const query = params.toString();
12021
- return this.fetch(`w/${wid}/motd${query ? `?${query}` : ""}`);
12119
+ const query2 = params.toString();
12120
+ return this.fetch(`w/${wid}/motd${query2 ? `?${query2}` : ""}`);
12022
12121
  }
12023
12122
  };
12024
12123
 
@@ -12030,13 +12129,13 @@ var InterventionRequestsApi = class extends BaseApiClient {
12030
12129
  }
12031
12130
  /** List intervention requests in a workspace, newest first. */
12032
12131
  async getInterventionRequests(wid, params = {}) {
12033
- const query = new URLSearchParams();
12034
- if (params.kind) query.set("kind", params.kind);
12035
- if (params.openOnly) query.set("openOnly", "true");
12036
- if (params.chatId !== void 0) query.set("chatId", String(params.chatId));
12037
- if (params.unroutedOnly) query.set("unroutedOnly", "true");
12038
- if (params.limit !== void 0) query.set("limit", String(params.limit));
12039
- const qs = query.toString();
12132
+ const query2 = new URLSearchParams();
12133
+ if (params.kind) query2.set("kind", params.kind);
12134
+ if (params.openOnly) query2.set("openOnly", "true");
12135
+ if (params.chatId !== void 0) query2.set("chatId", String(params.chatId));
12136
+ if (params.unroutedOnly) query2.set("unroutedOnly", "true");
12137
+ if (params.limit !== void 0) query2.set("limit", String(params.limit));
12138
+ const qs = query2.toString();
12040
12139
  return this.fetch(
12041
12140
  `w/${wid}/intervention-requests${qs ? `?${qs}` : ""}`
12042
12141
  );
@@ -12181,8 +12280,8 @@ function withFilters(params, options) {
12181
12280
  return params;
12182
12281
  }
12183
12282
  function suffix(params) {
12184
- const query = params.toString();
12185
- return query ? `?${query}` : "";
12283
+ const query2 = params.toString();
12284
+ return query2 ? `?${query2}` : "";
12186
12285
  }
12187
12286
  var TrackedLinksApi = class extends BaseApiClient {
12188
12287
  /** Header counters plus whether shortening is configured and enabled. */
@@ -12383,6 +12482,8 @@ function createApiModules(apiKey, baseUrl, customFetch) {
12383
12482
  healthie: new HealthieApi(apiKey, baseUrl, customFetch),
12384
12483
  documoFax: new DocumoFaxApi(apiKey, baseUrl, customFetch),
12385
12484
  claimMd: new ClaimMdApi(apiKey, baseUrl, customFetch),
12485
+ stedi: new StediApi(apiKey, baseUrl, customFetch),
12486
+ medicalBilling: new MedicalBillingApi(apiKey, baseUrl, customFetch),
12386
12487
  hubspot: new HubspotApi(apiKey, baseUrl, customFetch),
12387
12488
  features: new FeaturesApi(apiKey, baseUrl, customFetch),
12388
12489
  files: new FilesApi(apiKey, baseUrl, customFetch),
@@ -12833,6 +12934,23 @@ var WORKSPACE_METHOD_NAMES = [
12833
12934
  "getDiscordGuilds",
12834
12935
  "getDiscordThreads",
12835
12936
  "getClaimMdStatus",
12937
+ "listMedicalBillingConnections",
12938
+ "submitMedicalClaim",
12939
+ "listMedicalBillingProviders",
12940
+ "listMedicalCoverages",
12941
+ "createMedicalCoverage",
12942
+ "updateMedicalCoverage",
12943
+ "setMedicalPayerRoute",
12944
+ "listMedicalCharges",
12945
+ "createMedicalCharge",
12946
+ "updateMedicalCharge",
12947
+ "listMedicalClaims",
12948
+ "getMedicalClaim",
12949
+ "listMedicalEligibilityChecks",
12950
+ "listMedicalRemittances",
12951
+ "getMedicalRemittance",
12952
+ "getStediConnections",
12953
+ "getStediConnectionStatus",
12836
12954
  "getDocumoFaxSetup",
12837
12955
  "listDocumoFaxes",
12838
12956
  "getDocumoFaxStatus",
@@ -14242,7 +14360,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
14242
14360
  }
14243
14361
 
14244
14362
  // src/client/bindings/integrations.ts
14245
- function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, salesforce, hubspot, appConnections, connectionSync, confluence) {
14363
+ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, stedi, salesforce, hubspot, appConnections, connectionSync, confluence) {
14246
14364
  target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
14247
14365
  target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
14248
14366
  target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
@@ -14354,6 +14472,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14354
14472
  target.installClaimMd = claimMd.installClaimMd.bind(claimMd);
14355
14473
  target.configureClaimMd = claimMd.configureClaimMd.bind(claimMd);
14356
14474
  target.verifyClaimMdKey = claimMd.verifyClaimMdKey.bind(claimMd);
14475
+ target.getStediConnections = stedi.getStediConnections.bind(stedi);
14476
+ target.getStediConnectionStatus = stedi.getStediConnectionStatus.bind(stedi);
14357
14477
  target.configureHealthie = healthie.configureHealthie.bind(healthie);
14358
14478
  target.getHealthieStatus = healthie.getHealthieStatus.bind(healthie);
14359
14479
  target.listHealthieProviders = healthie.listHealthieProviders.bind(healthie);
@@ -14771,6 +14891,21 @@ var GravityRailClient = class {
14771
14891
  // WorkspaceInvitations is exposed publicly for backward compatibility
14772
14892
  workspaceInvitations;
14773
14893
  // Store all API modules for cross-cutting operations
14894
+ listMedicalBillingProviders;
14895
+ listMedicalCoverages;
14896
+ createMedicalCoverage;
14897
+ updateMedicalCoverage;
14898
+ setMedicalPayerRoute;
14899
+ listMedicalCharges;
14900
+ createMedicalCharge;
14901
+ updateMedicalCharge;
14902
+ listMedicalClaims;
14903
+ getMedicalClaim;
14904
+ listMedicalEligibilityChecks;
14905
+ listMedicalRemittances;
14906
+ getMedicalRemittance;
14907
+ listMedicalBillingConnections;
14908
+ submitMedicalClaim;
14774
14909
  apis;
14775
14910
  // Tasks API
14776
14911
  getTasks;
@@ -15854,6 +15989,8 @@ var GravityRailClient = class {
15854
15989
  installClaimMd;
15855
15990
  configureClaimMd;
15856
15991
  verifyClaimMdKey;
15992
+ getStediConnections;
15993
+ getStediConnectionStatus;
15857
15994
  configurePatientSync;
15858
15995
  getPatientSyncStatus;
15859
15996
  deletePatientSyncConnection;
@@ -16026,6 +16163,39 @@ var GravityRailClient = class {
16026
16163
  constructor(apiKey, baseUrl, customFetch) {
16027
16164
  const apis = createApiModules(apiKey, baseUrl, customFetch);
16028
16165
  this.apis = apis;
16166
+ this.listMedicalBillingConnections = apis.medicalBilling.listMedicalBillingConnections.bind(
16167
+ apis.medicalBilling
16168
+ );
16169
+ this.submitMedicalClaim = apis.medicalBilling.submitMedicalClaim.bind(apis.medicalBilling);
16170
+ this.listMedicalBillingProviders = apis.medicalBilling.listMedicalBillingProviders.bind(
16171
+ apis.medicalBilling
16172
+ );
16173
+ this.listMedicalCoverages = apis.medicalBilling.listMedicalCoverages.bind(
16174
+ apis.medicalBilling
16175
+ );
16176
+ this.createMedicalCoverage = apis.medicalBilling.createMedicalCoverage.bind(
16177
+ apis.medicalBilling
16178
+ );
16179
+ this.updateMedicalCoverage = apis.medicalBilling.updateMedicalCoverage.bind(
16180
+ apis.medicalBilling
16181
+ );
16182
+ this.setMedicalPayerRoute = apis.medicalBilling.setMedicalPayerRoute.bind(
16183
+ apis.medicalBilling
16184
+ );
16185
+ this.listMedicalCharges = apis.medicalBilling.listMedicalCharges.bind(apis.medicalBilling);
16186
+ this.createMedicalCharge = apis.medicalBilling.createMedicalCharge.bind(apis.medicalBilling);
16187
+ this.updateMedicalCharge = apis.medicalBilling.updateMedicalCharge.bind(apis.medicalBilling);
16188
+ this.listMedicalClaims = apis.medicalBilling.listMedicalClaims.bind(apis.medicalBilling);
16189
+ this.getMedicalClaim = apis.medicalBilling.getMedicalClaim.bind(apis.medicalBilling);
16190
+ this.listMedicalEligibilityChecks = apis.medicalBilling.listMedicalEligibilityChecks.bind(
16191
+ apis.medicalBilling
16192
+ );
16193
+ this.listMedicalRemittances = apis.medicalBilling.listMedicalRemittances.bind(
16194
+ apis.medicalBilling
16195
+ );
16196
+ this.getMedicalRemittance = apis.medicalBilling.getMedicalRemittance.bind(
16197
+ apis.medicalBilling
16198
+ );
16029
16199
  this.workspaceInvitations = apis.workspaceInvitations;
16030
16200
  bindTasksMethods(this, apis.tasks, apis.abilities);
16031
16201
  bindChatsMethods(this, apis.chats);
@@ -16091,6 +16261,7 @@ var GravityRailClient = class {
16091
16261
  apis.healthie,
16092
16262
  apis.documoFax,
16093
16263
  apis.claimMd,
16264
+ apis.stedi,
16094
16265
  apis.salesforce,
16095
16266
  apis.hubspot,
16096
16267
  apis.appConnections,
@@ -16419,10 +16590,60 @@ var SiteDnsRecordType = {
16419
16590
  TXT: "TXT"
16420
16591
  };
16421
16592
 
16593
+ // src/types/generated/phone_voice_trust.ts
16594
+ var VoiceIntegrityUseCase = {
16595
+ "Identify_&_Verification": "Identify & Verification",
16596
+ Asset_Management: "Asset Management",
16597
+ Lead_Generation: "Lead Generation",
16598
+ Intelligent_Routing: "Intelligent Routing",
16599
+ Appointment_SchedulingDE: "Appointment SchedulingDE",
16600
+ Customer_Support: "Customer Support",
16601
+ "Self-Service": "Self-Service",
16602
+ Automated_Support: "Automated Support",
16603
+ Appointment_Reminders: "Appointment Reminders",
16604
+ Employee_Notifications: "Employee Notifications",
16605
+ Delivery_Notifications: "Delivery Notifications",
16606
+ Emergency_Notifications: "Emergency Notifications",
16607
+ Contactless_Delivery: "Contactless Delivery",
16608
+ Order_Notifications: "Order Notifications",
16609
+ Service_Alerts: "Service Alerts",
16610
+ Purchase_Confirmation: "Purchase Confirmation",
16611
+ Mass_Alerts: "Mass Alerts",
16612
+ Fraud_Alerts: "Fraud Alerts",
16613
+ Contact_Tracing: "Contact Tracing",
16614
+ Lead_Management: "Lead Management",
16615
+ Lead_Nurturing: "Lead Nurturing",
16616
+ Telemarketing: "Telemarketing",
16617
+ Marketing_Events: "Marketing Events",
16618
+ Rewards_Program: "Rewards Program",
16619
+ Lead_Alerts: "Lead Alerts",
16620
+ Lead_Distribution: "Lead Distribution",
16621
+ Abandoned_Cart: "Abandoned Cart",
16622
+ Call_Tracking: "Call Tracking",
16623
+ Outbound_Dialer: "Outbound Dialer",
16624
+ Click_to_Call: "Click to Call",
16625
+ Phone_System: "Phone System",
16626
+ "Meetings/Ccollaboration": "Meetings/Ccollaboration",
16627
+ Telehealth: "Telehealth",
16628
+ Distance_Learning: "Distance Learning",
16629
+ Shift_Management: "Shift Management",
16630
+ Field_Notifications: "Field Notifications",
16631
+ "Dating/Social": "Dating/Social",
16632
+ Remote_appointments: "Remote appointments",
16633
+ Group_Messaging: "Group Messaging",
16634
+ Exam_Proctoring: "Exam Proctoring",
16635
+ Tutoring: "Tutoring",
16636
+ "Therapy_(Individual+Group)": "Therapy (Individual+Group)",
16637
+ Pharmacy: "Pharmacy",
16638
+ First_Responder: "First Responder",
16639
+ "Survey/Research": "Survey/Research"
16640
+ };
16641
+
16422
16642
  // src/types/generated/ai_connector_policy.ts
16423
16643
  var AiConnectorPolicy = {
16424
16644
  any: "any",
16425
- allowlist: "allowlist"
16645
+ allowlist: "allowlist",
16646
+ none: "none"
16426
16647
  };
16427
16648
 
16428
16649
  // src/types/generated/site.ts
@@ -16827,6 +17048,7 @@ var RefResolutionStatus = {
16827
17048
  var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
16828
17049
  ScopeCategory2["WORKSPACE"] = "workspace";
16829
17050
  ScopeCategory2["MEMBERS"] = "members";
17051
+ ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
16830
17052
  ScopeCategory2["MEMBER_ROLES"] = "member_roles";
16831
17053
  ScopeCategory2["CHATS"] = "chats";
16832
17054
  ScopeCategory2["DM"] = "dm";
@@ -16898,6 +17120,24 @@ var SCOPES = {
16898
17120
  implies: ["members:write"],
16899
17121
  dangerous: true
16900
17122
  },
17123
+ "medical_billing:read": {
17124
+ name: "medical_billing:read",
17125
+ category: "medical_billing" /* MEDICAL_BILLING */,
17126
+ description: "View medical billing coverage, charges and claims"
17127
+ },
17128
+ "medical_billing:write": {
17129
+ name: "medical_billing:write",
17130
+ category: "medical_billing" /* MEDICAL_BILLING */,
17131
+ description: "Create and update medical billing and submit claims",
17132
+ implies: ["medical_billing:read"]
17133
+ },
17134
+ "medical_billing:admin": {
17135
+ name: "medical_billing:admin",
17136
+ category: "medical_billing" /* MEDICAL_BILLING */,
17137
+ description: "Administer medical billing",
17138
+ implies: ["medical_billing:write"],
17139
+ dangerous: true
17140
+ },
16901
17141
  // =========================================================================
16902
17142
  // MEMBER ROLES
16903
17143
  // =========================================================================
@@ -17626,6 +17866,7 @@ export {
17626
17866
  EventsApi,
17627
17867
  FeaturesApi,
17628
17868
  FhirConnectionsApi,
17869
+ StediApi,
17629
17870
  InboundFaxStatus,
17630
17871
  HealthieApi,
17631
17872
  FilesApi,
@@ -17752,6 +17993,8 @@ export {
17752
17993
  TestChatRunOutcome,
17753
17994
  CapturedEffectDirection,
17754
17995
  CapturedEffectKind,
17996
+ FaxDocumentRefusal,
17997
+ FaxRunRefusal,
17755
17998
  InboundRefusal,
17756
17999
  PhoneRunRefusal,
17757
18000
  RecordChangeKind,
@@ -17781,6 +18024,7 @@ export {
17781
18024
  TERMINAL_TASK_STATES,
17782
18025
  WorkspaceInvitationsApi,
17783
18026
  WorkspacesApi,
18027
+ MedicalBillingApi,
17784
18028
  formatAppContextAsMarkdown,
17785
18029
  createApiModules,
17786
18030
  createWorkspaceClient,
@@ -17857,6 +18101,7 @@ export {
17857
18101
  Region,
17858
18102
  RegistrationIdentifier,
17859
18103
  SiteDnsRecordType,
18104
+ VoiceIntegrityUseCase,
17860
18105
  AiConnectorPolicy,
17861
18106
  MenuItemResponseItemType,
17862
18107
  AbilityConfigIssueCode,
@@ -17918,4 +18163,4 @@ export {
17918
18163
  pathDraftFromStorage,
17919
18164
  pathDraftToStorage
17920
18165
  };
17921
- //# sourceMappingURL=chunk-VBG6XUBN.js.map
18166
+ //# sourceMappingURL=chunk-SVRE6KIM.js.map