@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.
package/dist/internal.cjs CHANGED
@@ -40,6 +40,7 @@ __export(internal_exports, {
40
40
  AddonMutationResponseScope: () => AddonMutationResponseScope,
41
41
  AgentTasksApi: () => AgentTasksApi,
42
42
  AgentsApi: () => AgentsApi,
43
+ AiConnectorPolicy: () => AiConnectorPolicy,
43
44
  ApiError: () => ApiError,
44
45
  ApiKeysApi: () => ApiKeysApi,
45
46
  AppConnectionsApi: () => AppConnectionsApi,
@@ -1519,6 +1520,7 @@ var AbilityTypeSlugs = {
1519
1520
  GOOGLE_SHEETS: "integration:google_sheets",
1520
1521
  CHARLESTON_PMD_PAGING: "integration:charleston_pmd_paging",
1521
1522
  COSAN_PATHWAYS_SCHEDULING: "integration:cosan_pathways_scheduling",
1523
+ ATHENA_SCHEDULING: "integration:athena_scheduling",
1522
1524
  // Communication
1523
1525
  PHONE_CALL_TOOLS: "communication:phone_call_tools",
1524
1526
  SEND_SMS: "communication:send_sms",
@@ -2083,6 +2085,12 @@ var MetricUnit = {
2083
2085
  custom: "custom"
2084
2086
  };
2085
2087
 
2088
+ // src/types/generated/ai_connector_policy.ts
2089
+ var AiConnectorPolicy = {
2090
+ any: "any",
2091
+ allowlist: "allowlist"
2092
+ };
2093
+
2086
2094
  // src/types/generated/site.ts
2087
2095
  var MenuItemResponseItemType = {
2088
2096
  page: "page",
@@ -5115,23 +5123,15 @@ var CallsApi = class extends BaseApiClient {
5115
5123
  * Get PHI-safe provenance metadata for the recording served by
5116
5124
  * `/audio.wav` — source, encryption, channels, duration, status, etc.
5117
5125
  * Staff-only Twilio SIDs are present only for superusers. Returns 404
5118
- * when the chat has no native recording row (legacy chunk-only playback).
5126
+ * when the chat has no native recording row.
5119
5127
  */
5120
5128
  async getRecordingInfo(wid, chatId) {
5121
5129
  return this.fetch(`w/${wid}/recordings/chat/${chatId}/info`);
5122
5130
  }
5123
- /** List the recorded audio chunks for a chat (metadata only). */
5124
- async listChatRecordings(wid, chatId, options = {}) {
5125
- const params = new URLSearchParams();
5126
- if (options.role) params.set("role", options.role);
5127
- return this.fetch(
5128
- `w/${wid}/recordings/chat/${chatId}${params.toString() ? `?${params.toString()}` : ""}`
5129
- );
5130
- }
5131
5131
  /**
5132
5132
  * Get a single short-lived presigned URL to download the complete call
5133
- * recording as one WAV file. The first request assembles + caches the
5134
- * full-call WAV; later requests reuse it.
5133
+ * recording as one file: the playable Twilio-native recording, else the
5134
+ * complete internal recording. 404 when neither is available.
5135
5135
  */
5136
5136
  async getCallRecordingDownloadUrl(wid, chatId, options = {}) {
5137
5137
  const params = new URLSearchParams();
@@ -6427,6 +6427,25 @@ var DiscordBotsApi = class extends BaseApiClient {
6427
6427
 
6428
6428
  // src/api/slack-apps.ts
6429
6429
  var SlackAppsApi = class extends BaseApiClient {
6430
+ async getSlackChannelChoices(wid, appId, cursor) {
6431
+ const params = new URLSearchParams({ appId: String(appId) });
6432
+ if (cursor) params.set("cursor", cursor);
6433
+ return this.fetch(
6434
+ `w/${wid}/app-connections/slack/channel-choices?${params}`
6435
+ );
6436
+ }
6437
+ async getSlackEntryPoints(wid, options = {}) {
6438
+ const params = new URLSearchParams();
6439
+ if (options.appId) params.set("appId", String(options.appId));
6440
+ if (options.workflowId) params.set("workflowId", String(options.workflowId));
6441
+ return this.fetch(`w/${wid}/app-connections/slack/entry-points?${params}`);
6442
+ }
6443
+ async connectSlackEntryPoint(wid, data) {
6444
+ return this.fetch(`w/${wid}/app-connections/slack/entry-points`, {
6445
+ method: "POST",
6446
+ body: JSON.stringify(data)
6447
+ });
6448
+ }
6430
6449
  /**
6431
6450
  * List all Slack apps configured for a workspace.
6432
6451
  */
@@ -9509,6 +9528,33 @@ var OrgApi = class extends BaseApiClient {
9509
9528
  method: "DELETE"
9510
9529
  });
9511
9530
  }
9531
+ /**
9532
+ * Read the organization's AI connector policy and the connectors (MCP
9533
+ * clients such as claude.ai or ChatGPT) that have requested access to it.
9534
+ * Requires `org:admin`.
9535
+ */
9536
+ async getOrgAiConnectorPolicy(orgIdOrUuid) {
9537
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
9538
+ }
9539
+ /** Set the AI connector mode: `any` or `allowlist`. Requires `org:admin`. */
9540
+ async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
9541
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
9542
+ method: "PUT",
9543
+ body: JSON.stringify(data)
9544
+ });
9545
+ }
9546
+ /** Allow a connector that has requested access. Requires `org:admin`. */
9547
+ async allowOrgAiConnector(orgIdOrUuid, appId) {
9548
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
9549
+ method: "PUT"
9550
+ });
9551
+ }
9552
+ /** Remove a connector from the allowlist. Requires `org:admin`. */
9553
+ async removeOrgAiConnector(orgIdOrUuid, appId) {
9554
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
9555
+ method: "DELETE"
9556
+ });
9557
+ }
9512
9558
  /**
9513
9559
  * Get the billing customer and this organization's billable subscription.
9514
9560
  *
@@ -10336,13 +10382,22 @@ var OrgApi = class extends BaseApiClient {
10336
10382
  method: "DELETE"
10337
10383
  });
10338
10384
  }
10339
- async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50) {
10385
+ async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
10340
10386
  return this.fetch(
10341
- `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}`
10387
+ `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}&offset=${offset}`
10342
10388
  );
10343
10389
  }
10390
+ async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
10391
+ return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/${deliveryId}`);
10392
+ }
10393
+ async clearOrgWebhookDeliveries(orgIdOrUuid, endpointUuid, failedOnly) {
10394
+ return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/clear`, {
10395
+ method: "POST",
10396
+ body: JSON.stringify({ failedOnly })
10397
+ });
10398
+ }
10344
10399
  /**
10345
- * Requeue one dead-lettered or expired delivery on its existing row.
10400
+ * Requeue one failed or expired delivery on its existing row.
10346
10401
  *
10347
10402
  * The response is identifiers only. The drain signs a fresh timestamp
10348
10403
  * when it sends; this call does not POST to the receiver.
@@ -14899,7 +14954,6 @@ var WORKSPACE_METHOD_NAMES = [
14899
14954
  "getThemeSettings",
14900
14955
  "importSiteSourceZip",
14901
14956
  "installDocumoFax",
14902
- "listChatRecordings",
14903
14957
  "previewDataReport",
14904
14958
  "previewQuery",
14905
14959
  "publishSiteSource",
@@ -15546,7 +15600,6 @@ function bindCallsMethods(target, calls, cel) {
15546
15600
  target.getMessageTiming = calls.getMessageTiming.bind(calls);
15547
15601
  target.getRecordingInfo = calls.getRecordingInfo.bind(calls);
15548
15602
  target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
15549
- target.listChatRecordings = calls.listChatRecordings.bind(calls);
15550
15603
  target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
15551
15604
  target.getCelContext = cel.getCelContext.bind(cel);
15552
15605
  target.validateCelExpression = cel.validateCelExpression.bind(cel);
@@ -16311,6 +16364,9 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
16311
16364
  target.deleteSlackApp = slackApps.deleteSlackApp.bind(slackApps);
16312
16365
  target.getSlackThreads = slackApps.getSlackThreads.bind(slackApps);
16313
16366
  target.getSlackInstallations = slackApps.getSlackInstallations.bind(slackApps);
16367
+ target.getSlackChannelChoices = slackApps.getSlackChannelChoices.bind(slackApps);
16368
+ target.getSlackEntryPoints = slackApps.getSlackEntryPoints.bind(slackApps);
16369
+ target.connectSlackEntryPoint = slackApps.connectSlackEntryPoint.bind(slackApps);
16314
16370
  target.getSlackAppAccounts = slackApps.getSlackAppAccounts.bind(slackApps);
16315
16371
  target.getTeamsApps = teamsApps.getTeamsApps.bind(teamsApps);
16316
16372
  target.getTeamsApp = teamsApps.getTeamsApp.bind(teamsApps);
@@ -16507,6 +16563,8 @@ function bindOrgMethods(target, org) {
16507
16563
  target.listOrgWebhookEndpointDeliveries = org.listOrgWebhookEndpointDeliveries.bind(org);
16508
16564
  target.replayOrgWebhookDelivery = org.replayOrgWebhookDelivery.bind(org);
16509
16565
  target.discardPendingOrgWebhookDeliveries = org.discardPendingOrgWebhookDeliveries.bind(org);
16566
+ target.getOrgWebhookDeliveryDetail = org.getOrgWebhookDeliveryDetail.bind(org);
16567
+ target.clearOrgWebhookDeliveries = org.clearOrgWebhookDeliveries.bind(org);
16510
16568
  target.getOrgWebhookEndpointCoverage = org.getOrgWebhookEndpointCoverage.bind(org);
16511
16569
  target.testOrgWebhookEndpoint = org.testOrgWebhookEndpoint.bind(org);
16512
16570
  target.listWorkspaceLabels = org.listWorkspaceLabels.bind(org);
@@ -16833,7 +16891,6 @@ var GravityRailClient = class {
16833
16891
  getMessageTiming;
16834
16892
  getRecordingInfo;
16835
16893
  getEdgeCaptureInfo;
16836
- listChatRecordings;
16837
16894
  getCallRecordingDownloadUrl;
16838
16895
  getCelContext;
16839
16896
  validateCelExpression;
@@ -17279,6 +17336,8 @@ var GravityRailClient = class {
17279
17336
  listOrgWebhookEndpointDeliveries;
17280
17337
  replayOrgWebhookDelivery;
17281
17338
  discardPendingOrgWebhookDeliveries;
17339
+ getOrgWebhookDeliveryDetail;
17340
+ clearOrgWebhookDeliveries;
17282
17341
  getOrgWebhookEndpointCoverage;
17283
17342
  testOrgWebhookEndpoint;
17284
17343
  listWorkspaceLabels;
@@ -17764,6 +17823,9 @@ var GravityRailClient = class {
17764
17823
  deleteSlackApp;
17765
17824
  getSlackThreads;
17766
17825
  getSlackInstallations;
17826
+ getSlackChannelChoices;
17827
+ getSlackEntryPoints;
17828
+ connectSlackEntryPoint;
17767
17829
  getSlackAppAccounts;
17768
17830
  // Teams Apps API
17769
17831
  getTeamsApps;
@@ -18267,6 +18329,7 @@ function pathDraftToStorage(draft, original) {
18267
18329
  AddonMutationResponseScope,
18268
18330
  AgentTasksApi,
18269
18331
  AgentsApi,
18332
+ AiConnectorPolicy,
18270
18333
  ApiError,
18271
18334
  ApiKeysApi,
18272
18335
  AppConnectionsApi,