@gravity-rail/sdk 0.55.0 → 0.56.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.
@@ -1634,23 +1634,15 @@ var CallsApi = class extends BaseApiClient {
1634
1634
  * Get PHI-safe provenance metadata for the recording served by
1635
1635
  * `/audio.wav` — source, encryption, channels, duration, status, etc.
1636
1636
  * Staff-only Twilio SIDs are present only for superusers. Returns 404
1637
- * when the chat has no native recording row (legacy chunk-only playback).
1637
+ * when the chat has no native recording row.
1638
1638
  */
1639
1639
  async getRecordingInfo(wid, chatId) {
1640
1640
  return this.fetch(`w/${wid}/recordings/chat/${chatId}/info`);
1641
1641
  }
1642
- /** List the recorded audio chunks for a chat (metadata only). */
1643
- async listChatRecordings(wid, chatId, options = {}) {
1644
- const params = new URLSearchParams();
1645
- if (options.role) params.set("role", options.role);
1646
- return this.fetch(
1647
- `w/${wid}/recordings/chat/${chatId}${params.toString() ? `?${params.toString()}` : ""}`
1648
- );
1649
- }
1650
1642
  /**
1651
1643
  * Get a single short-lived presigned URL to download the complete call
1652
- * recording as one WAV file. The first request assembles + caches the
1653
- * full-call WAV; later requests reuse it.
1644
+ * recording as one file: the playable Twilio-native recording, else the
1645
+ * complete internal recording. 404 when neither is available.
1654
1646
  */
1655
1647
  async getCallRecordingDownloadUrl(wid, chatId, options = {}) {
1656
1648
  const params = new URLSearchParams();
@@ -2830,6 +2822,25 @@ var DiscordBotsApi = class extends BaseApiClient {
2830
2822
 
2831
2823
  // src/api/slack-apps.ts
2832
2824
  var SlackAppsApi = class extends BaseApiClient {
2825
+ async getSlackChannelChoices(wid, appId, cursor) {
2826
+ const params = new URLSearchParams({ appId: String(appId) });
2827
+ if (cursor) params.set("cursor", cursor);
2828
+ return this.fetch(
2829
+ `w/${wid}/app-connections/slack/channel-choices?${params}`
2830
+ );
2831
+ }
2832
+ async getSlackEntryPoints(wid, options = {}) {
2833
+ const params = new URLSearchParams();
2834
+ if (options.appId) params.set("appId", String(options.appId));
2835
+ if (options.workflowId) params.set("workflowId", String(options.workflowId));
2836
+ return this.fetch(`w/${wid}/app-connections/slack/entry-points?${params}`);
2837
+ }
2838
+ async connectSlackEntryPoint(wid, data) {
2839
+ return this.fetch(`w/${wid}/app-connections/slack/entry-points`, {
2840
+ method: "POST",
2841
+ body: JSON.stringify(data)
2842
+ });
2843
+ }
2833
2844
  /**
2834
2845
  * List all Slack apps configured for a workspace.
2835
2846
  */
@@ -5457,6 +5468,33 @@ var OrgApi = class extends BaseApiClient {
5457
5468
  method: "DELETE"
5458
5469
  });
5459
5470
  }
5471
+ /**
5472
+ * Read the organization's AI connector policy and the connectors (MCP
5473
+ * clients such as claude.ai or ChatGPT) that have requested access to it.
5474
+ * Requires `org:admin`.
5475
+ */
5476
+ async getOrgAiConnectorPolicy(orgIdOrUuid) {
5477
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
5478
+ }
5479
+ /** Set the AI connector mode: `any` or `allowlist`. Requires `org:admin`. */
5480
+ async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
5481
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
5482
+ method: "PUT",
5483
+ body: JSON.stringify(data)
5484
+ });
5485
+ }
5486
+ /** Allow a connector that has requested access. Requires `org:admin`. */
5487
+ async allowOrgAiConnector(orgIdOrUuid, appId) {
5488
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
5489
+ method: "PUT"
5490
+ });
5491
+ }
5492
+ /** Remove a connector from the allowlist. Requires `org:admin`. */
5493
+ async removeOrgAiConnector(orgIdOrUuid, appId) {
5494
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
5495
+ method: "DELETE"
5496
+ });
5497
+ }
5460
5498
  /**
5461
5499
  * Get the billing customer and this organization's billable subscription.
5462
5500
  *
@@ -6284,13 +6322,22 @@ var OrgApi = class extends BaseApiClient {
6284
6322
  method: "DELETE"
6285
6323
  });
6286
6324
  }
6287
- async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50) {
6325
+ async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
6288
6326
  return this.fetch(
6289
- `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}`
6327
+ `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}&offset=${offset}`
6290
6328
  );
6291
6329
  }
6330
+ async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
6331
+ return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/${deliveryId}`);
6332
+ }
6333
+ async clearOrgWebhookDeliveries(orgIdOrUuid, endpointUuid, failedOnly) {
6334
+ return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/clear`, {
6335
+ method: "POST",
6336
+ body: JSON.stringify({ failedOnly })
6337
+ });
6338
+ }
6292
6339
  /**
6293
- * Requeue one dead-lettered or expired delivery on its existing row.
6340
+ * Requeue one failed or expired delivery on its existing row.
6294
6341
  *
6295
6342
  * The response is identifiers only. The drain signs a fresh timestamp
6296
6343
  * when it sends; this call does not POST to the receiver.
@@ -12531,7 +12578,6 @@ var WORKSPACE_METHOD_NAMES = [
12531
12578
  "getThemeSettings",
12532
12579
  "importSiteSourceZip",
12533
12580
  "installDocumoFax",
12534
- "listChatRecordings",
12535
12581
  "previewDataReport",
12536
12582
  "previewQuery",
12537
12583
  "publishSiteSource",
@@ -13178,7 +13224,6 @@ function bindCallsMethods(target, calls, cel) {
13178
13224
  target.getMessageTiming = calls.getMessageTiming.bind(calls);
13179
13225
  target.getRecordingInfo = calls.getRecordingInfo.bind(calls);
13180
13226
  target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
13181
- target.listChatRecordings = calls.listChatRecordings.bind(calls);
13182
13227
  target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
13183
13228
  target.getCelContext = cel.getCelContext.bind(cel);
13184
13229
  target.validateCelExpression = cel.validateCelExpression.bind(cel);
@@ -13943,6 +13988,9 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
13943
13988
  target.deleteSlackApp = slackApps.deleteSlackApp.bind(slackApps);
13944
13989
  target.getSlackThreads = slackApps.getSlackThreads.bind(slackApps);
13945
13990
  target.getSlackInstallations = slackApps.getSlackInstallations.bind(slackApps);
13991
+ target.getSlackChannelChoices = slackApps.getSlackChannelChoices.bind(slackApps);
13992
+ target.getSlackEntryPoints = slackApps.getSlackEntryPoints.bind(slackApps);
13993
+ target.connectSlackEntryPoint = slackApps.connectSlackEntryPoint.bind(slackApps);
13946
13994
  target.getSlackAppAccounts = slackApps.getSlackAppAccounts.bind(slackApps);
13947
13995
  target.getTeamsApps = teamsApps.getTeamsApps.bind(teamsApps);
13948
13996
  target.getTeamsApp = teamsApps.getTeamsApp.bind(teamsApps);
@@ -14139,6 +14187,8 @@ function bindOrgMethods(target, org) {
14139
14187
  target.listOrgWebhookEndpointDeliveries = org.listOrgWebhookEndpointDeliveries.bind(org);
14140
14188
  target.replayOrgWebhookDelivery = org.replayOrgWebhookDelivery.bind(org);
14141
14189
  target.discardPendingOrgWebhookDeliveries = org.discardPendingOrgWebhookDeliveries.bind(org);
14190
+ target.getOrgWebhookDeliveryDetail = org.getOrgWebhookDeliveryDetail.bind(org);
14191
+ target.clearOrgWebhookDeliveries = org.clearOrgWebhookDeliveries.bind(org);
14142
14192
  target.getOrgWebhookEndpointCoverage = org.getOrgWebhookEndpointCoverage.bind(org);
14143
14193
  target.testOrgWebhookEndpoint = org.testOrgWebhookEndpoint.bind(org);
14144
14194
  target.listWorkspaceLabels = org.listWorkspaceLabels.bind(org);
@@ -14465,7 +14515,6 @@ var GravityRailClient = class {
14465
14515
  getMessageTiming;
14466
14516
  getRecordingInfo;
14467
14517
  getEdgeCaptureInfo;
14468
- listChatRecordings;
14469
14518
  getCallRecordingDownloadUrl;
14470
14519
  getCelContext;
14471
14520
  validateCelExpression;
@@ -14911,6 +14960,8 @@ var GravityRailClient = class {
14911
14960
  listOrgWebhookEndpointDeliveries;
14912
14961
  replayOrgWebhookDelivery;
14913
14962
  discardPendingOrgWebhookDeliveries;
14963
+ getOrgWebhookDeliveryDetail;
14964
+ clearOrgWebhookDeliveries;
14914
14965
  getOrgWebhookEndpointCoverage;
14915
14966
  testOrgWebhookEndpoint;
14916
14967
  listWorkspaceLabels;
@@ -15396,6 +15447,9 @@ var GravityRailClient = class {
15396
15447
  deleteSlackApp;
15397
15448
  getSlackThreads;
15398
15449
  getSlackInstallations;
15450
+ getSlackChannelChoices;
15451
+ getSlackEntryPoints;
15452
+ connectSlackEntryPoint;
15399
15453
  getSlackAppAccounts;
15400
15454
  // Teams Apps API
15401
15455
  getTeamsApps;
@@ -15773,6 +15827,7 @@ var AbilityTypeSlugs = {
15773
15827
  GOOGLE_SHEETS: "integration:google_sheets",
15774
15828
  CHARLESTON_PMD_PAGING: "integration:charleston_pmd_paging",
15775
15829
  COSAN_PATHWAYS_SCHEDULING: "integration:cosan_pathways_scheduling",
15830
+ ATHENA_SCHEDULING: "integration:athena_scheduling",
15776
15831
  // Communication
15777
15832
  PHONE_CALL_TOOLS: "communication:phone_call_tools",
15778
15833
  SEND_SMS: "communication:send_sms",
@@ -15990,6 +16045,12 @@ var SiteDnsRecordType = {
15990
16045
  TXT: "TXT"
15991
16046
  };
15992
16047
 
16048
+ // src/types/generated/ai_connector_policy.ts
16049
+ var AiConnectorPolicy = {
16050
+ any: "any",
16051
+ allowlist: "allowlist"
16052
+ };
16053
+
15993
16054
  // src/types/generated/site.ts
15994
16055
  var MenuItemResponseItemType = {
15995
16056
  page: "page",
@@ -17410,6 +17471,7 @@ export {
17410
17471
  Region,
17411
17472
  RegistrationIdentifier,
17412
17473
  SiteDnsRecordType,
17474
+ AiConnectorPolicy,
17413
17475
  MenuItemResponseItemType,
17414
17476
  AbilityConfigIssueCode,
17415
17477
  AbilityConfigIssueSeverity,
@@ -17470,4 +17532,4 @@ export {
17470
17532
  pathDraftFromStorage,
17471
17533
  pathDraftToStorage
17472
17534
  };
17473
- //# sourceMappingURL=chunk-BF4MOZZO.js.map
17535
+ //# sourceMappingURL=chunk-BQOKENBF.js.map