@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.
@@ -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);
@@ -5105,37 +5117,6 @@ var MembersApi = class extends BaseApiClient {
5105
5117
  }
5106
5118
  );
5107
5119
  }
5108
- // ===== Member Memories =====
5109
- async getMemberMemories(wid, memberId, options) {
5110
- const params = new URLSearchParams();
5111
- if (options?.type) params.append("type", options.type);
5112
- if (options?.query) params.append("query", options.query);
5113
- if (options?.limit) params.append("limit", options.limit.toString());
5114
- const qs = params.toString();
5115
- return this.fetch(
5116
- `w/${wid}/members/${memberId}/memories${qs ? `?${qs}` : ""}`
5117
- );
5118
- }
5119
- async getMemberMemory(wid, memberId, key) {
5120
- return this.fetch(
5121
- `w/${wid}/members/${memberId}/memories/${encodeURIComponent(key)}`
5122
- );
5123
- }
5124
- async createMemberMemory(wid, memberId, body) {
5125
- return this.fetch(`w/${wid}/members/${memberId}/memories`, {
5126
- method: "POST",
5127
- body: JSON.stringify(body)
5128
- });
5129
- }
5130
- async deleteMemberMemory(wid, memberId, memoryKey, options) {
5131
- const params = new URLSearchParams();
5132
- if (options?.type) params.append("type", options.type);
5133
- const qs = params.toString();
5134
- await this.fetch(
5135
- `w/${wid}/members/${memberId}/memories/${encodeURIComponent(memoryKey)}${qs ? `?${qs}` : ""}`,
5136
- { method: "DELETE" }
5137
- );
5138
- }
5139
5120
  /** Bulk-create members in a workspace. */
5140
5121
  async bulkCreateMembers(wid, request) {
5141
5122
  return this.fetch(`w/${wid}/members/bulk`, {
@@ -5289,21 +5270,21 @@ var MondayIntegrationApi = class extends BaseApiClient {
5289
5270
  });
5290
5271
  }
5291
5272
  async getLinkedMondayMembers(wid, params) {
5292
- const query = new URLSearchParams();
5293
- if (params?.board_id) query.set("board_id", params.board_id);
5294
- if (params?.page !== void 0) query.set("page", String(params.page));
5295
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
5296
- if (params?.search?.trim()) query.set("search", params.search.trim());
5297
- 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()}` : "";
5298
5279
  return this.fetch(
5299
5280
  `w/${wid}/app-connections/monday/reconciliation/linked${qs}`
5300
5281
  );
5301
5282
  }
5302
5283
  async getMondayReconciliationMatches(wid, params) {
5303
- const query = new URLSearchParams();
5304
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
5305
- if (params?.offset !== void 0) query.set("offset", String(params.offset));
5306
- 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()}` : "";
5307
5288
  return this.fetch(
5308
5289
  `w/${wid}/app-connections/monday/reconciliation/matches${qs}`
5309
5290
  );
@@ -5327,11 +5308,11 @@ var MondayIntegrationApi = class extends BaseApiClient {
5327
5308
  );
5328
5309
  }
5329
5310
  async getLinkedRecords(wid, params) {
5330
- const query = new URLSearchParams();
5331
- if (params?.board_id) query.set("board_id", params.board_id);
5332
- if (params?.page !== void 0) query.set("page", String(params.page));
5333
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
5334
- 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()}` : "";
5335
5316
  return this.fetch(
5336
5317
  `w/${wid}/app-connections/monday/linked-records${qs}`
5337
5318
  );
@@ -5354,10 +5335,10 @@ var MondayIntegrationApi = class extends BaseApiClient {
5354
5335
  * connection is parked for re-authorization.
5355
5336
  */
5356
5337
  async getMondaySyncLogs(wid, params) {
5357
- const query = new URLSearchParams();
5358
- if (params?.pageSize) query.set("pageSize", String(params.pageSize));
5359
- if (params?.cursor) query.set("cursor", params.cursor);
5360
- 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()}` : "";
5361
5342
  return this.fetch(
5362
5343
  `w/${wid}/app-connections/monday/sync/logs${qs}`
5363
5344
  );
@@ -5529,7 +5510,7 @@ var OrgApi = class extends BaseApiClient {
5529
5510
  async getOrgAiConnectorPolicy(orgIdOrUuid) {
5530
5511
  return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
5531
5512
  }
5532
- /** Set the AI connector mode: `any` or `allowlist`. Requires `org:admin`. */
5513
+ /** Set the AI connector mode: `any`, `allowlist` or `none`. Requires `org:admin`. */
5533
5514
  async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
5534
5515
  return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
5535
5516
  method: "PUT",
@@ -5780,13 +5761,13 @@ var OrgApi = class extends BaseApiClient {
5780
5761
  * Search for available phone numbers to purchase from Twilio.
5781
5762
  */
5782
5763
  async searchPhoneNumbers(orgUuid, params) {
5783
- const query = new URLSearchParams();
5784
- if (params?.country) query.set("country", params.country);
5785
- if (params?.numberType) query.set("number_type", params.numberType);
5786
- if (params?.areaCode) query.set("area_code", params.areaCode);
5787
- if (params?.contains) query.set("contains", params.contains);
5788
- if (params?.limit) query.set("limit", String(params.limit));
5789
- 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();
5790
5771
  return this.fetch(
5791
5772
  `o/${orgUuid}/phone-numbers/search${qs ? `?${qs}` : ""}`
5792
5773
  );
@@ -5886,9 +5867,9 @@ var OrgApi = class extends BaseApiClient {
5886
5867
  * Disable email support for an org domain.
5887
5868
  */
5888
5869
  async disableOrgDomainEmail(orgIdOrUuid, domainUuid, confirm = false) {
5889
- const query = `?confirm=${confirm ? "true" : "false"}`;
5870
+ const query2 = `?confirm=${confirm ? "true" : "false"}`;
5890
5871
  const response = await this.fetchRaw(
5891
- `o/${orgIdOrUuid}/domains/${domainUuid}/email${query}`,
5872
+ `o/${orgIdOrUuid}/domains/${domainUuid}/email${query2}`,
5892
5873
  { method: "DELETE" },
5893
5874
  [409]
5894
5875
  );
@@ -5969,9 +5950,9 @@ var OrgApi = class extends BaseApiClient {
5969
5950
  * Disable custom site routing for an org domain.
5970
5951
  */
5971
5952
  async disableOrgDomainSite(orgIdOrUuid, domainUuid, confirm = false) {
5972
- const query = `?confirm=${confirm ? "true" : "false"}`;
5953
+ const query2 = `?confirm=${confirm ? "true" : "false"}`;
5973
5954
  const response = await this.fetchRaw(
5974
- `o/${orgIdOrUuid}/domains/${domainUuid}/site${query}`,
5955
+ `o/${orgIdOrUuid}/domains/${domainUuid}/site${query2}`,
5975
5956
  { method: "DELETE" },
5976
5957
  [409]
5977
5958
  );
@@ -6447,9 +6428,9 @@ var OrgApi = class extends BaseApiClient {
6447
6428
  * endpoint and sit in a workspace it actually covers.
6448
6429
  */
6449
6430
  async getOrgWebhookEventSample(orgIdOrUuid, eventType, endpointUuid) {
6450
- const query = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
6431
+ const query2 = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
6451
6432
  return this.fetch(
6452
- `o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query}`
6433
+ `o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query2}`
6453
6434
  );
6454
6435
  }
6455
6436
  /**
@@ -6679,8 +6660,8 @@ var PhoneNumbersApi = class extends BaseApiClient {
6679
6660
  if (options?.isArchived !== void 0) {
6680
6661
  params.set("is_archived", String(options.isArchived));
6681
6662
  }
6682
- const query = params.toString();
6683
- return this.fetch(`w/${wid}/phone-numbers${query ? `?${query}` : ""}`);
6663
+ const query2 = params.toString();
6664
+ return this.fetch(`w/${wid}/phone-numbers${query2 ? `?${query2}` : ""}`);
6684
6665
  }
6685
6666
  /** List phone numbers available for provisioning. */
6686
6667
  async getAvailablePhoneNumbers(wid) {
@@ -6837,9 +6818,9 @@ var PhoneNumbersApi = class extends BaseApiClient {
6837
6818
  async getPhoneNumberOutboundAnalyticsSummary(wid, id, filters) {
6838
6819
  const params = new URLSearchParams();
6839
6820
  appendAnalyticsFilters(params, filters);
6840
- const query = params.toString();
6821
+ const query2 = params.toString();
6841
6822
  return this.fetch(
6842
- `w/${wid}/phone-numbers/${id}/analytics/summary${query ? `?${query}` : ""}`
6823
+ `w/${wid}/phone-numbers/${id}/analytics/summary${query2 ? `?${query2}` : ""}`
6843
6824
  );
6844
6825
  }
6845
6826
  /**
@@ -7074,24 +7055,24 @@ var QueriesApi = class extends BaseApiClient {
7074
7055
  });
7075
7056
  }
7076
7057
  /** Structure / field / access / cost validation without execution. */
7077
- async validateQuery(wid, query) {
7058
+ async validateQuery(wid, query2) {
7078
7059
  return this.fetch(`w/${wid}/queries/validate`, {
7079
7060
  method: "POST",
7080
- body: JSON.stringify({ query })
7061
+ body: JSON.stringify({ query: query2 })
7081
7062
  });
7082
7063
  }
7083
7064
  /** Bounded sample run (limit capped server-side). */
7084
- async previewQuery(wid, query, mode) {
7065
+ async previewQuery(wid, query2, mode) {
7085
7066
  return this.fetch(`w/${wid}/queries/preview`, {
7086
7067
  method: "POST",
7087
- body: JSON.stringify({ query, mode })
7068
+ body: JSON.stringify({ query: query2, mode })
7088
7069
  });
7089
7070
  }
7090
7071
  /** Execute a query (rows / count / aggregate). */
7091
- async runQuery(wid, query, mode) {
7072
+ async runQuery(wid, query2, mode) {
7092
7073
  return this.fetch(`w/${wid}/queries/run`, {
7093
7074
  method: "POST",
7094
- body: JSON.stringify({ query, mode })
7075
+ body: JSON.stringify({ query: query2, mode })
7095
7076
  });
7096
7077
  }
7097
7078
  };
@@ -7115,10 +7096,10 @@ var QualificationsApi = class extends BaseApiClient {
7115
7096
  }
7116
7097
  /** List qualifications in a workspace, paginated. */
7117
7098
  async getQualifications(wid, params) {
7118
- const query = new URLSearchParams();
7119
- if (params?.page !== void 0) query.set("page", String(params.page));
7120
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
7121
- 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()}` : "";
7122
7103
  return this.fetch(`w/${wid}/qualifications${qs}`);
7123
7104
  }
7124
7105
  /** Get a single qualification by ID. */
@@ -7133,9 +7114,9 @@ var QualificationsApi = class extends BaseApiClient {
7133
7114
  }
7134
7115
  // ===== Scenarios =====
7135
7116
  async listScenarios(wid, qualificationId, params) {
7136
- const query = new URLSearchParams();
7137
- if (params?.includeArchived) query.set("include_archived", "true");
7138
- 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()}` : "";
7139
7120
  return this.fetch(`w/${wid}/qualifications/${qualificationId}/scenarios${qs}`);
7140
7121
  }
7141
7122
  async createScenario(wid, qualificationId, data) {
@@ -7168,19 +7149,19 @@ var QualificationsApi = class extends BaseApiClient {
7168
7149
  * `workflowRevisionId`. Omitting both keeps the unfiltered list.
7169
7150
  */
7170
7151
  async listTestChatRuns(wid, workflowId, params) {
7171
- const query = new URLSearchParams();
7172
- 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));
7173
7154
  if (params?.assistantChatModelId !== void 0) {
7174
- query.set("assistantChatModelId", params.assistantChatModelId);
7155
+ query2.set("assistantChatModelId", params.assistantChatModelId);
7175
7156
  }
7176
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
7157
+ if (params?.limit !== void 0) query2.set("limit", String(params.limit));
7177
7158
  if (params?.workflowRevisionId !== void 0) {
7178
- query.set("workflow_revision_id", String(params.workflowRevisionId));
7159
+ query2.set("workflow_revision_id", String(params.workflowRevisionId));
7179
7160
  }
7180
7161
  if (params?.includeEarlierRevisions !== void 0) {
7181
- query.set("include_earlier_revisions", String(params.includeEarlierRevisions));
7162
+ query2.set("include_earlier_revisions", String(params.includeEarlierRevisions));
7182
7163
  }
7183
- const qs = query.toString() ? `?${query.toString()}` : "";
7164
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7184
7165
  return this.fetch(
7185
7166
  `w/${wid}/qualifications/workflows/${workflowId}/test-chat-runs${qs}`
7186
7167
  );
@@ -7195,11 +7176,11 @@ var QualificationsApi = class extends BaseApiClient {
7195
7176
  * revision it describes and whether it is the current one.
7196
7177
  */
7197
7178
  async listScenarioHealthSummaries(wid, workflowId, params) {
7198
- const query = new URLSearchParams();
7179
+ const query2 = new URLSearchParams();
7199
7180
  if (params?.workflowRevisionId !== void 0) {
7200
- query.set("workflow_revision_id", String(params.workflowRevisionId));
7181
+ query2.set("workflow_revision_id", String(params.workflowRevisionId));
7201
7182
  }
7202
- const qs = query.toString() ? `?${query.toString()}` : "";
7183
+ const qs = query2.toString() ? `?${query2.toString()}` : "";
7203
7184
  return this.fetch(
7204
7185
  `w/${wid}/qualifications/workflows/${workflowId}/scenario-health-summaries${qs}`
7205
7186
  );
@@ -7403,9 +7384,9 @@ var RoutingRulesApi = class extends BaseApiClient {
7403
7384
  async getRoutingRules(wid, filters) {
7404
7385
  const params = new URLSearchParams();
7405
7386
  appendFilters(params, filters);
7406
- const query = params.toString();
7387
+ const query2 = params.toString();
7407
7388
  return this.fetch(
7408
- `w/${wid}/routing${query ? `?${query}` : ""}`
7389
+ `w/${wid}/routing${query2 ? `?${query2}` : ""}`
7409
7390
  );
7410
7391
  }
7411
7392
  /** Read one rule. Requires the rule's endpoint read permission (`phones:read`, or `inboxes:read`). */
@@ -7511,10 +7492,10 @@ var SalesforceApi = class extends BaseApiClient {
7511
7492
  });
7512
7493
  }
7513
7494
  async getSalesforceReconciliationMatches(wid, params) {
7514
- const query = new URLSearchParams();
7515
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
7516
- if (params?.offset !== void 0) query.set("offset", String(params.offset));
7517
- 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()}` : "";
7518
7499
  return this.fetch(
7519
7500
  `w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
7520
7501
  );
@@ -7551,11 +7532,11 @@ var SalesforceApi = class extends BaseApiClient {
7551
7532
  });
7552
7533
  }
7553
7534
  async getLinkedSalesforceMembers(wid, params) {
7554
- const query = new URLSearchParams();
7555
- if (params?.page !== void 0) query.set("page", String(params.page));
7556
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
7557
- if (params?.search?.trim()) query.set("search", params.search.trim());
7558
- 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()}` : "";
7559
7540
  return this.fetch(
7560
7541
  `w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
7561
7542
  );
@@ -7633,10 +7614,10 @@ var SalesforceApi = class extends BaseApiClient {
7633
7614
  * connection is parked for re-authorization.
7634
7615
  */
7635
7616
  async getSalesforceSyncLogs(wid, params) {
7636
- const query = new URLSearchParams();
7637
- if (params?.pageSize) query.set("pageSize", String(params.pageSize));
7638
- if (params?.cursor) query.set("cursor", params.cursor);
7639
- 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()}` : "";
7640
7621
  return this.fetch(
7641
7622
  `w/${wid}/app-connections/salesforce/sync/logs${qs}`
7642
7623
  );
@@ -7676,12 +7657,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
7676
7657
  );
7677
7658
  }
7678
7659
  async getConnectionSyncCheckpoint(wid, connectionId, direction = "inbound", syncKey = "default") {
7679
- const query = new URLSearchParams({
7660
+ const query2 = new URLSearchParams({
7680
7661
  direction,
7681
7662
  sync_key: syncKey
7682
7663
  });
7683
7664
  return this.fetch(
7684
- `w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query}`
7665
+ `w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query2}`
7685
7666
  );
7686
7667
  }
7687
7668
  /**
@@ -7731,9 +7712,9 @@ var ConnectionSyncApi = class extends BaseApiClient {
7731
7712
  * ``boardId`` is only meaningful for multi-scope connectors (Monday).
7732
7713
  */
7733
7714
  async clearConnectionMemberExclusion(wid, connectionId, memberId, options) {
7734
- const query = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
7715
+ const query2 = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
7735
7716
  return this.fetch(
7736
- `w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query}`,
7717
+ `w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query2}`,
7737
7718
  { method: "DELETE" }
7738
7719
  );
7739
7720
  }
@@ -7825,12 +7806,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
7825
7806
  }
7826
7807
  /** Vendor lists a `vendor_list` import can name (configuration only). */
7827
7808
  async listSubsetImportVendorLists(wid, connectionId, options) {
7828
- const query = new URLSearchParams({
7809
+ const query2 = new URLSearchParams({
7829
7810
  query: options?.query ?? "",
7830
7811
  limit: String(options?.limit ?? 50)
7831
7812
  });
7832
7813
  return this.fetch(
7833
- this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query}`)
7814
+ this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query2}`)
7834
7815
  );
7835
7816
  }
7836
7817
  /** Remote fields a `field_filter` import can name, with their operators. */
@@ -7892,10 +7873,10 @@ var HubspotApi = class extends BaseApiClient {
7892
7873
  });
7893
7874
  }
7894
7875
  async getHubspotReconciliationMatches(wid, params) {
7895
- const query = new URLSearchParams();
7896
- if (params?.limit !== void 0) query.set("limit", String(params.limit));
7897
- if (params?.offset !== void 0) query.set("offset", String(params.offset));
7898
- 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()}` : "";
7899
7880
  return this.fetch(
7900
7881
  `w/${wid}/app-connections/hubspot/reconciliation/matches${qs}`
7901
7882
  );
@@ -7918,11 +7899,11 @@ var HubspotApi = class extends BaseApiClient {
7918
7899
  });
7919
7900
  }
7920
7901
  async getLinkedHubspotMembers(wid, params) {
7921
- const query = new URLSearchParams();
7922
- if (params?.page !== void 0) query.set("page", String(params.page));
7923
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
7924
- if (params?.search?.trim()) query.set("search", params.search.trim());
7925
- 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()}` : "";
7926
7907
  return this.fetch(
7927
7908
  `w/${wid}/app-connections/hubspot/reconciliation/linked${qs}`
7928
7909
  );
@@ -7982,10 +7963,10 @@ var HubspotApi = class extends BaseApiClient {
7982
7963
  * and Monday twins return), with cursor pagination.
7983
7964
  */
7984
7965
  async getHubspotSyncLogs(wid, params) {
7985
- const query = new URLSearchParams();
7986
- if (params?.pageSize) query.set("pageSize", String(params.pageSize));
7987
- if (params?.cursor) query.set("cursor", params.cursor);
7988
- 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()}` : "";
7989
7970
  return this.fetch(
7990
7971
  `w/${wid}/app-connections/hubspot/sync/logs${qs}`
7991
7972
  );
@@ -8119,8 +8100,8 @@ var SitesApi = class extends BaseApiClient {
8119
8100
  * (e.g. one the builder has selected but not yet saved).
8120
8101
  */
8121
8102
  async getThemeSettings(wid, siteId, theme) {
8122
- const query = theme ? `?theme=${encodeURIComponent(theme)}` : "";
8123
- 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}`);
8124
8105
  }
8125
8106
  /** Save values for the active theme's settings (validated against the schema). */
8126
8107
  async updateThemeSettings(wid, siteId, values) {
@@ -8266,9 +8247,9 @@ var SitesApi = class extends BaseApiClient {
8266
8247
  if (parentId !== void 0 && parentId !== null) {
8267
8248
  params.append("parent_id", parentId.toString());
8268
8249
  }
8269
- const query = params.toString();
8250
+ const query2 = params.toString();
8270
8251
  return this.fetch(
8271
- `w/${wid}/sites/${siteId}/menu/items${query ? `?${query}` : ""}`
8252
+ `w/${wid}/sites/${siteId}/menu/items${query2 ? `?${query2}` : ""}`
8272
8253
  );
8273
8254
  }
8274
8255
  /** Create a new menu item in a site's navigation. */
@@ -8509,8 +8490,8 @@ function supportRequestParams(params) {
8509
8490
  if (params?.linearLinked !== void 0) {
8510
8491
  searchParams.append("linearLinked", params.linearLinked.toString());
8511
8492
  }
8512
- const query = searchParams.toString();
8513
- return query ? `?${query}` : "";
8493
+ const query2 = searchParams.toString();
8494
+ return query2 ? `?${query2}` : "";
8514
8495
  }
8515
8496
  var SupportRequestsApi = class extends BaseApiClient {
8516
8497
  async listSupportRequests(params) {
@@ -8924,8 +8905,8 @@ var JourneysApi = class extends BaseApiClient {
8924
8905
  * for is the state it is in.
8925
8906
  */
8926
8907
  async deleteJourneyDraft(wid, journeyId, expectedUpdatedAt) {
8927
- const query = new URLSearchParams({ expectedUpdatedAt });
8928
- 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()}`, {
8929
8910
  method: "DELETE"
8930
8911
  });
8931
8912
  }
@@ -8936,11 +8917,11 @@ var JourneysApi = class extends BaseApiClient {
8936
8917
  * {@link getJourneyAuthoring} for the editor's expression-carrying shape.
8937
8918
  */
8938
8919
  async getJourneys(wid, includeArchived = false, pageOpts) {
8939
- const query = new URLSearchParams();
8940
- if (includeArchived) query.set("include_archived", "true");
8941
- if (pageOpts?.page !== void 0) query.set("page", String(pageOpts.page));
8942
- if (pageOpts?.pageSize !== void 0) query.set("pageSize", String(pageOpts.pageSize));
8943
- 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()}` : "";
8944
8925
  return this.fetch(`w/${wid}/journeys${qs}`);
8945
8926
  }
8946
8927
  /**
@@ -9066,9 +9047,9 @@ var JourneysApi = class extends BaseApiClient {
9066
9047
  * `additionalMembers` is the size of a batch about to be enrolled.
9067
9048
  */
9068
9049
  async getJourneySendEstimate(wid, journeyId, additionalMembers = 0) {
9069
- const query = new URLSearchParams({ additionalMembers: String(additionalMembers) });
9050
+ const query2 = new URLSearchParams({ additionalMembers: String(additionalMembers) });
9070
9051
  return this.fetch(
9071
- `w/${wid}/journeys/${journeyId}/send-estimate?${query.toString()}`
9052
+ `w/${wid}/journeys/${journeyId}/send-estimate?${query2.toString()}`
9072
9053
  );
9073
9054
  }
9074
9055
  /** Create a step within a journey. */
@@ -9157,9 +9138,9 @@ var JourneysApi = class extends BaseApiClient {
9157
9138
  qs.set("currentTaskId", String(params.currentTaskId));
9158
9139
  if (params?.runtimeFailureEdgeId !== void 0)
9159
9140
  qs.set("runtimeFailureEdgeId", String(params.runtimeFailureEdgeId));
9160
- const query = qs.toString();
9141
+ const query2 = qs.toString();
9161
9142
  return this.fetch(
9162
- `w/${wid}/journeys/${journeyId}/members${query ? `?${query}` : ""}`
9143
+ `w/${wid}/journeys/${journeyId}/members${query2 ? `?${query2}` : ""}`
9163
9144
  );
9164
9145
  }
9165
9146
  /** Enroll one or more members in a journey. */
@@ -9218,9 +9199,9 @@ var JourneysApi = class extends BaseApiClient {
9218
9199
  if (params.zeroEmissionOnly !== void 0) {
9219
9200
  qs.set("zeroEmissionOnly", String(params.zeroEmissionOnly));
9220
9201
  }
9221
- const query = qs.toString();
9202
+ const query2 = qs.toString();
9222
9203
  return this.fetch(
9223
- `w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query ? `?${query}` : "")
9204
+ `w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query2 ? `?${query2}` : "")
9224
9205
  );
9225
9206
  }
9226
9207
  /** List members currently or historically associated with one journey step. */
@@ -9230,9 +9211,9 @@ var JourneysApi = class extends BaseApiClient {
9230
9211
  if (params.mode) qs.set("mode", params.mode);
9231
9212
  if (params.page) qs.set("page", String(params.page));
9232
9213
  if (params.pageSize) qs.set("pageSize", String(params.pageSize));
9233
- const query = qs.toString();
9214
+ const query2 = qs.toString();
9234
9215
  return this.fetch(
9235
- `w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${query ? `?${query}` : ""}`
9216
+ `w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${query2 ? `?${query2}` : ""}`
9236
9217
  );
9237
9218
  }
9238
9219
  /** Get member counts by status for each journey step. */
@@ -9342,8 +9323,8 @@ var WorkflowsApi = class extends BaseApiClient {
9342
9323
  * portion so the active count can be derived.
9343
9324
  */
9344
9325
  async getWorkflowDiagram(wid, id, options = {}) {
9345
- const query = options.includeArchived ? "?include_archived=true" : "";
9346
- 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}`);
9347
9328
  }
9348
9329
  /**
9349
9330
  * The outline a Workflow's diagram is drawn from: its active Tasks, its
@@ -9657,36 +9638,36 @@ var WorkflowsApi = class extends BaseApiClient {
9657
9638
  };
9658
9639
 
9659
9640
  // src/api/workflow-notes.ts
9660
- function notesPath(wid, workflowId, noteId, query) {
9641
+ function notesPath(wid, workflowId, noteId, query2) {
9661
9642
  const base = noteId == null ? `w/${wid}/workflows/${workflowId}/notes` : `w/${wid}/workflows/${workflowId}/notes/${noteId}`;
9662
- if (query?.workflowRevisionId == null) return base;
9643
+ if (query2?.workflowRevisionId == null) return base;
9663
9644
  const params = new URLSearchParams({
9664
- workflowRevisionId: String(query.workflowRevisionId)
9645
+ workflowRevisionId: String(query2.workflowRevisionId)
9665
9646
  });
9666
9647
  return `${base}?${params.toString()}`;
9667
9648
  }
9668
9649
  var WorkflowNotesApi = class extends BaseApiClient {
9669
9650
  /** List notes for a workflow root (draft unless `workflowRevisionId` is set). */
9670
- async getWorkflowNotes(wid, workflowId, query) {
9671
- 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));
9672
9653
  }
9673
9654
  /** Create a new note on a workflow's draft (or a pinned draft revision). */
9674
- async createWorkflowNote(wid, workflowId, data, query) {
9675
- 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), {
9676
9657
  method: "POST",
9677
9658
  body: JSON.stringify(data)
9678
9659
  });
9679
9660
  }
9680
9661
  /** Update an existing workflow note with partial data. */
9681
- async updateWorkflowNote(wid, workflowId, noteId, data, query) {
9682
- 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), {
9683
9664
  method: "PUT",
9684
9665
  body: JSON.stringify(data)
9685
9666
  });
9686
9667
  }
9687
9668
  /** Delete a workflow note by ID. */
9688
- async deleteWorkflowNote(wid, workflowId, noteId, query) {
9689
- return this.fetch(notesPath(wid, workflowId, noteId, query), {
9669
+ async deleteWorkflowNote(wid, workflowId, noteId, query2) {
9670
+ return this.fetch(notesPath(wid, workflowId, noteId, query2), {
9690
9671
  method: "DELETE"
9691
9672
  });
9692
9673
  }
@@ -9737,6 +9718,9 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
9737
9718
  Scope2["WORKSPACE_READ"] = "workspace:read";
9738
9719
  Scope2["WORKSPACE_WRITE"] = "workspace:write";
9739
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";
9740
9724
  Scope2["MEMBERS_READ"] = "members:read";
9741
9725
  Scope2["MEMBERS_WRITE"] = "members:write";
9742
9726
  Scope2["MEMBERS_ADMIN"] = "members:admin";
@@ -10097,6 +10081,7 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
10097
10081
  WorkspaceFeature2["MONDAY"] = "monday";
10098
10082
  WorkspaceFeature2["DOCUMO_FAX"] = "documo_fax";
10099
10083
  WorkspaceFeature2["CLAIM_MD"] = "claim_md";
10084
+ WorkspaceFeature2["STEDI"] = "stedi";
10100
10085
  WorkspaceFeature2["RESELL_PRODUCTS"] = "resell_products";
10101
10086
  WorkspaceFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
10102
10087
  WorkspaceFeature2["EHR_FHIR"] = "ehr_fhir";
@@ -10104,7 +10089,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
10104
10089
  WorkspaceFeature2["EHR_HEALTHIE"] = "ehr_healthie";
10105
10090
  WorkspaceFeature2["CONFLUENCE"] = "confluence";
10106
10091
  WorkspaceFeature2["ZENDESK"] = "zendesk";
10107
- WorkspaceFeature2["AGENT_MEMORY"] = "agent_memory";
10108
10092
  WorkspaceFeature2["IMAGE_GENERATION"] = "image_generation";
10109
10093
  WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
10110
10094
  WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
@@ -10329,6 +10313,14 @@ var CapturedEffectKind = {
10329
10313
  };
10330
10314
 
10331
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
+ };
10332
10324
  var InboundRefusal = {
10333
10325
  run_not_found: "run_not_found",
10334
10326
  run_ended: "run_ended",
@@ -11074,10 +11066,10 @@ var WorkspacesApi = class extends BaseApiClient {
11074
11066
  }
11075
11067
  /** List client workspaces managed by this reseller workspace, paginated. */
11076
11068
  async getResellerWorkspaces(wid, params) {
11077
- const query = new URLSearchParams();
11078
- if (params?.page !== void 0) query.set("page", String(params.page));
11079
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
11080
- 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()}` : "";
11081
11073
  return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
11082
11074
  }
11083
11075
  /** Create a new client workspace under a reseller workspace. */
@@ -11487,6 +11479,81 @@ var WorkspacesApi = class extends BaseApiClient {
11487
11479
  }
11488
11480
  };
11489
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
+
11490
11557
  // src/api/dashboards.ts
11491
11558
  var DashboardsApi = class extends BaseApiClient {
11492
11559
  /** List all dashboards for the workspace, in tab order. */
@@ -11519,9 +11586,9 @@ var DashboardsApi = class extends BaseApiClient {
11519
11586
  async getDashboardChannelStats(wid, options) {
11520
11587
  const params = new URLSearchParams();
11521
11588
  if (options?.hours !== void 0) params.append("hours", options.hours.toString());
11522
- const query = params.toString();
11589
+ const query2 = params.toString();
11523
11590
  return this.fetch(
11524
- `w/${wid}/dashboards/stats/channels${query ? `?${query}` : ""}`
11591
+ `w/${wid}/dashboards/stats/channels${query2 ? `?${query2}` : ""}`
11525
11592
  );
11526
11593
  }
11527
11594
  /**
@@ -11533,9 +11600,9 @@ var DashboardsApi = class extends BaseApiClient {
11533
11600
  async getDashboardWorkflowAssignmentStats(wid, options) {
11534
11601
  const params = new URLSearchParams();
11535
11602
  if (options?.hours != null) params.append("hours", options.hours.toString());
11536
- const query = params.toString();
11603
+ const query2 = params.toString();
11537
11604
  return this.fetch(
11538
- `w/${wid}/dashboards/stats/workflow-assignments${query ? `?${query}` : ""}`
11605
+ `w/${wid}/dashboards/stats/workflow-assignments${query2 ? `?${query2}` : ""}`
11539
11606
  );
11540
11607
  }
11541
11608
  /**
@@ -11559,9 +11626,9 @@ var DashboardsApi = class extends BaseApiClient {
11559
11626
  if (options?.pageSize !== void 0) params.append("pageSize", options.pageSize.toString());
11560
11627
  if (options?.check !== void 0) params.append("check", options.check);
11561
11628
  if (options?.severity !== void 0) params.append("severity", options.severity);
11562
- const query = params.toString();
11629
+ const query2 = params.toString();
11563
11630
  return this.fetch(
11564
- `w/${wid}/configuration-health${query ? `?${query}` : ""}`
11631
+ `w/${wid}/configuration-health${query2 ? `?${query2}` : ""}`
11565
11632
  );
11566
11633
  }
11567
11634
  };
@@ -11669,11 +11736,11 @@ var TeamsAppsApi = class extends BaseApiClient {
11669
11736
  var ExperimentsApi = class extends BaseApiClient {
11670
11737
  /** List experiments with group summaries and assignment counts. */
11671
11738
  async getExperiments(wid, params) {
11672
- const query = new URLSearchParams();
11673
- if (params?.page !== void 0) query.set("page", String(params.page));
11674
- if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
11675
- if (params?.includeArchived) query.set("includeArchived", "true");
11676
- 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()}` : "";
11677
11744
  return this.fetch(`w/${wid}/experiments${qs}`);
11678
11745
  }
11679
11746
  /** Get a single experiment by ID (includes groups). */
@@ -12049,8 +12116,8 @@ var MotdApi = class extends BaseApiClient {
12049
12116
  const params = new URLSearchParams();
12050
12117
  if (options?.date !== void 0) params.append("date", options.date);
12051
12118
  if (options?.offset !== void 0) params.append("offset", options.offset.toString());
12052
- const query = params.toString();
12053
- return this.fetch(`w/${wid}/motd${query ? `?${query}` : ""}`);
12119
+ const query2 = params.toString();
12120
+ return this.fetch(`w/${wid}/motd${query2 ? `?${query2}` : ""}`);
12054
12121
  }
12055
12122
  };
12056
12123
 
@@ -12062,13 +12129,13 @@ var InterventionRequestsApi = class extends BaseApiClient {
12062
12129
  }
12063
12130
  /** List intervention requests in a workspace, newest first. */
12064
12131
  async getInterventionRequests(wid, params = {}) {
12065
- const query = new URLSearchParams();
12066
- if (params.kind) query.set("kind", params.kind);
12067
- if (params.openOnly) query.set("openOnly", "true");
12068
- if (params.chatId !== void 0) query.set("chatId", String(params.chatId));
12069
- if (params.unroutedOnly) query.set("unroutedOnly", "true");
12070
- if (params.limit !== void 0) query.set("limit", String(params.limit));
12071
- 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();
12072
12139
  return this.fetch(
12073
12140
  `w/${wid}/intervention-requests${qs ? `?${qs}` : ""}`
12074
12141
  );
@@ -12213,8 +12280,8 @@ function withFilters(params, options) {
12213
12280
  return params;
12214
12281
  }
12215
12282
  function suffix(params) {
12216
- const query = params.toString();
12217
- return query ? `?${query}` : "";
12283
+ const query2 = params.toString();
12284
+ return query2 ? `?${query2}` : "";
12218
12285
  }
12219
12286
  var TrackedLinksApi = class extends BaseApiClient {
12220
12287
  /** Header counters plus whether shortening is configured and enabled. */
@@ -12415,6 +12482,8 @@ function createApiModules(apiKey, baseUrl, customFetch) {
12415
12482
  healthie: new HealthieApi(apiKey, baseUrl, customFetch),
12416
12483
  documoFax: new DocumoFaxApi(apiKey, baseUrl, customFetch),
12417
12484
  claimMd: new ClaimMdApi(apiKey, baseUrl, customFetch),
12485
+ stedi: new StediApi(apiKey, baseUrl, customFetch),
12486
+ medicalBilling: new MedicalBillingApi(apiKey, baseUrl, customFetch),
12418
12487
  hubspot: new HubspotApi(apiKey, baseUrl, customFetch),
12419
12488
  features: new FeaturesApi(apiKey, baseUrl, customFetch),
12420
12489
  files: new FilesApi(apiKey, baseUrl, customFetch),
@@ -12579,7 +12648,6 @@ var WORKSPACE_METHOD_NAMES = [
12579
12648
  "createMemberField",
12580
12649
  "createMemberFilter",
12581
12650
  "createMemberLabel",
12582
- "createMemberMemory",
12583
12651
  "createMemberRelationship",
12584
12652
  "createMemberRole",
12585
12653
  "createMenuItem",
@@ -12649,7 +12717,6 @@ var WORKSPACE_METHOD_NAMES = [
12649
12717
  "deleteMemberField",
12650
12718
  "deleteMemberFilter",
12651
12719
  "deleteMemberLabel",
12652
- "deleteMemberMemory",
12653
12720
  "deleteMemberRole",
12654
12721
  "deleteMenuItem",
12655
12722
  "deleteMondayConnection",
@@ -12867,6 +12934,23 @@ var WORKSPACE_METHOD_NAMES = [
12867
12934
  "getDiscordGuilds",
12868
12935
  "getDiscordThreads",
12869
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",
12870
12954
  "getDocumoFaxSetup",
12871
12955
  "listDocumoFaxes",
12872
12956
  "getDocumoFaxStatus",
@@ -12985,8 +13069,6 @@ var WORKSPACE_METHOD_NAMES = [
12985
13069
  "getMemberLabel",
12986
13070
  "getMemberLabelByUuid",
12987
13071
  "getMemberLabels",
12988
- "getMemberMemories",
12989
- "getMemberMemory",
12990
13072
  "getMemberRecordCounts",
12991
13073
  "getMemberRelationships",
12992
13074
  "getMemberRole",
@@ -13737,10 +13819,6 @@ function bindMembersMethods(target, members) {
13737
13819
  target.getAnonymousResolution = members.getAnonymousResolution.bind(members);
13738
13820
  target.resolveAnonymousMember = members.resolveAnonymousMember.bind(members);
13739
13821
  target.expireAnonymousMember = members.expireAnonymousMember.bind(members);
13740
- target.getMemberMemories = members.getMemberMemories.bind(members);
13741
- target.getMemberMemory = members.getMemberMemory.bind(members);
13742
- target.createMemberMemory = members.createMemberMemory.bind(members);
13743
- target.deleteMemberMemory = members.deleteMemberMemory.bind(members);
13744
13822
  target.getMemberSyncLinks = members.getMemberSyncLinks.bind(members);
13745
13823
  target.getMemberRelationships = members.getMemberRelationships.bind(members);
13746
13824
  target.createMemberRelationship = members.createMemberRelationship.bind(members);
@@ -14282,7 +14360,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
14282
14360
  }
14283
14361
 
14284
14362
  // src/client/bindings/integrations.ts
14285
- 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) {
14286
14364
  target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
14287
14365
  target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
14288
14366
  target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
@@ -14394,6 +14472,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14394
14472
  target.installClaimMd = claimMd.installClaimMd.bind(claimMd);
14395
14473
  target.configureClaimMd = claimMd.configureClaimMd.bind(claimMd);
14396
14474
  target.verifyClaimMdKey = claimMd.verifyClaimMdKey.bind(claimMd);
14475
+ target.getStediConnections = stedi.getStediConnections.bind(stedi);
14476
+ target.getStediConnectionStatus = stedi.getStediConnectionStatus.bind(stedi);
14397
14477
  target.configureHealthie = healthie.configureHealthie.bind(healthie);
14398
14478
  target.getHealthieStatus = healthie.getHealthieStatus.bind(healthie);
14399
14479
  target.listHealthieProviders = healthie.listHealthieProviders.bind(healthie);
@@ -14811,6 +14891,21 @@ var GravityRailClient = class {
14811
14891
  // WorkspaceInvitations is exposed publicly for backward compatibility
14812
14892
  workspaceInvitations;
14813
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;
14814
14909
  apis;
14815
14910
  // Tasks API
14816
14911
  getTasks;
@@ -15001,10 +15096,6 @@ var GravityRailClient = class {
15001
15096
  resolveAnonymousMember;
15002
15097
  expireAnonymousMember;
15003
15098
  // Member Memories
15004
- getMemberMemories;
15005
- getMemberMemory;
15006
- createMemberMemory;
15007
- deleteMemberMemory;
15008
15099
  // Member Sync Links
15009
15100
  getMemberSyncLinks;
15010
15101
  // Member Relationships
@@ -15898,6 +15989,8 @@ var GravityRailClient = class {
15898
15989
  installClaimMd;
15899
15990
  configureClaimMd;
15900
15991
  verifyClaimMdKey;
15992
+ getStediConnections;
15993
+ getStediConnectionStatus;
15901
15994
  configurePatientSync;
15902
15995
  getPatientSyncStatus;
15903
15996
  deletePatientSyncConnection;
@@ -16070,6 +16163,39 @@ var GravityRailClient = class {
16070
16163
  constructor(apiKey, baseUrl, customFetch) {
16071
16164
  const apis = createApiModules(apiKey, baseUrl, customFetch);
16072
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
+ );
16073
16199
  this.workspaceInvitations = apis.workspaceInvitations;
16074
16200
  bindTasksMethods(this, apis.tasks, apis.abilities);
16075
16201
  bindChatsMethods(this, apis.chats);
@@ -16135,6 +16261,7 @@ var GravityRailClient = class {
16135
16261
  apis.healthie,
16136
16262
  apis.documoFax,
16137
16263
  apis.claimMd,
16264
+ apis.stedi,
16138
16265
  apis.salesforce,
16139
16266
  apis.hubspot,
16140
16267
  apis.appConnections,
@@ -16231,6 +16358,7 @@ var AbilityTypeSlugs = {
16231
16358
  TOOLKITS: "tools:toolkits",
16232
16359
  WEB_SEARCH: "tools:web_search",
16233
16360
  CONVERSATION_HISTORY: "tools:conversation_history",
16361
+ MEMBER_MEMORY: "memory:member_memory",
16234
16362
  IMAGE_GENERATION: "tools:image_generation",
16235
16363
  CONVERSATION_CONTROL: "tools:conversation_control",
16236
16364
  // Integration
@@ -16462,10 +16590,60 @@ var SiteDnsRecordType = {
16462
16590
  TXT: "TXT"
16463
16591
  };
16464
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
+
16465
16642
  // src/types/generated/ai_connector_policy.ts
16466
16643
  var AiConnectorPolicy = {
16467
16644
  any: "any",
16468
- allowlist: "allowlist"
16645
+ allowlist: "allowlist",
16646
+ none: "none"
16469
16647
  };
16470
16648
 
16471
16649
  // src/types/generated/site.ts
@@ -16870,6 +17048,7 @@ var RefResolutionStatus = {
16870
17048
  var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
16871
17049
  ScopeCategory2["WORKSPACE"] = "workspace";
16872
17050
  ScopeCategory2["MEMBERS"] = "members";
17051
+ ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
16873
17052
  ScopeCategory2["MEMBER_ROLES"] = "member_roles";
16874
17053
  ScopeCategory2["CHATS"] = "chats";
16875
17054
  ScopeCategory2["DM"] = "dm";
@@ -16879,6 +17058,7 @@ var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
16879
17058
  ScopeCategory2["DATATYPES"] = "datatypes";
16880
17059
  ScopeCategory2["RECORDS"] = "records";
16881
17060
  ScopeCategory2["FILES"] = "files";
17061
+ ScopeCategory2["SELF_MEMORY"] = "self_memory";
16882
17062
  ScopeCategory2["DEVICES"] = "devices";
16883
17063
  ScopeCategory2["JOURNEYS"] = "journeys";
16884
17064
  ScopeCategory2["EXPERIMENTS"] = "experiments";
@@ -16940,6 +17120,24 @@ var SCOPES = {
16940
17120
  implies: ["members:write"],
16941
17121
  dangerous: true
16942
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
+ },
16943
17141
  // =========================================================================
16944
17142
  // MEMBER ROLES
16945
17143
  // =========================================================================
@@ -17109,6 +17307,16 @@ var SCOPES = {
17109
17307
  // =========================================================================
17110
17308
  // FILES
17111
17309
  // =========================================================================
17310
+ "self_memory:read": {
17311
+ name: "self_memory:read",
17312
+ category: "self_memory" /* SELF_MEMORY */,
17313
+ description: "Read your private memory Files"
17314
+ },
17315
+ "self_memory:write": {
17316
+ name: "self_memory:write",
17317
+ category: "self_memory" /* SELF_MEMORY */,
17318
+ description: "Write your private memory Files"
17319
+ },
17112
17320
  "files:read": {
17113
17321
  name: "files:read",
17114
17322
  category: "files" /* FILES */,
@@ -17658,6 +17866,7 @@ export {
17658
17866
  EventsApi,
17659
17867
  FeaturesApi,
17660
17868
  FhirConnectionsApi,
17869
+ StediApi,
17661
17870
  InboundFaxStatus,
17662
17871
  HealthieApi,
17663
17872
  FilesApi,
@@ -17784,6 +17993,8 @@ export {
17784
17993
  TestChatRunOutcome,
17785
17994
  CapturedEffectDirection,
17786
17995
  CapturedEffectKind,
17996
+ FaxDocumentRefusal,
17997
+ FaxRunRefusal,
17787
17998
  InboundRefusal,
17788
17999
  PhoneRunRefusal,
17789
18000
  RecordChangeKind,
@@ -17813,6 +18024,7 @@ export {
17813
18024
  TERMINAL_TASK_STATES,
17814
18025
  WorkspaceInvitationsApi,
17815
18026
  WorkspacesApi,
18027
+ MedicalBillingApi,
17816
18028
  formatAppContextAsMarkdown,
17817
18029
  createApiModules,
17818
18030
  createWorkspaceClient,
@@ -17889,6 +18101,7 @@ export {
17889
18101
  Region,
17890
18102
  RegistrationIdentifier,
17891
18103
  SiteDnsRecordType,
18104
+ VoiceIntegrityUseCase,
17892
18105
  AiConnectorPolicy,
17893
18106
  MenuItemResponseItemType,
17894
18107
  AbilityConfigIssueCode,
@@ -17950,4 +18163,4 @@ export {
17950
18163
  pathDraftFromStorage,
17951
18164
  pathDraftToStorage
17952
18165
  };
17953
- //# sourceMappingURL=chunk-YDC4OVZE.js.map
18166
+ //# sourceMappingURL=chunk-SVRE6KIM.js.map