@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.
@@ -1,5 +1,5 @@
1
- import { gu as GravityRailClient } from './chat-interaction-DZCWRbDi.cjs';
2
- export { cj as ChatInteractionController } from './chat-interaction-DZCWRbDi.cjs';
1
+ import { gz as GravityRailClient } from './chat-interaction-Bb1dQ6iL.cjs';
2
+ export { cn as ChatInteractionController } from './chat-interaction-Bb1dQ6iL.cjs';
3
3
  import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-BdYhYUpU.cjs';
4
4
  export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-DzuvKnMC.cjs';
5
5
  import 'zod';
package/dist/helpers.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { gu as GravityRailClient } from './chat-interaction-CZnqOfut.js';
2
- export { cj as ChatInteractionController } from './chat-interaction-CZnqOfut.js';
1
+ import { gz as GravityRailClient } from './chat-interaction-B1pEnDf4.js';
2
+ export { cn as ChatInteractionController } from './chat-interaction-B1pEnDf4.js';
3
3
  import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-BdYhYUpU.js';
4
4
  export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-D1QvZiy5.js';
5
5
  import 'zod';
package/dist/index.cjs CHANGED
@@ -39,6 +39,7 @@ __export(src_exports, {
39
39
  ActivityWindowBasis: () => ActivityWindowBasis,
40
40
  ActorKind: () => ActorKind,
41
41
  AgentBuilder: () => AgentBuilder,
42
+ AiConnectorPolicy: () => AiConnectorPolicy,
42
43
  ApiError: () => ApiError,
43
44
  ApplyError: () => ApplyError,
44
45
  AppsApi: () => AppsApi,
@@ -2304,23 +2305,15 @@ var CallsApi = class extends BaseApiClient {
2304
2305
  * Get PHI-safe provenance metadata for the recording served by
2305
2306
  * `/audio.wav` — source, encryption, channels, duration, status, etc.
2306
2307
  * Staff-only Twilio SIDs are present only for superusers. Returns 404
2307
- * when the chat has no native recording row (legacy chunk-only playback).
2308
+ * when the chat has no native recording row.
2308
2309
  */
2309
2310
  async getRecordingInfo(wid, chatId) {
2310
2311
  return this.fetch(`w/${wid}/recordings/chat/${chatId}/info`);
2311
2312
  }
2312
- /** List the recorded audio chunks for a chat (metadata only). */
2313
- async listChatRecordings(wid, chatId, options = {}) {
2314
- const params = new URLSearchParams();
2315
- if (options.role) params.set("role", options.role);
2316
- return this.fetch(
2317
- `w/${wid}/recordings/chat/${chatId}${params.toString() ? `?${params.toString()}` : ""}`
2318
- );
2319
- }
2320
2313
  /**
2321
2314
  * Get a single short-lived presigned URL to download the complete call
2322
- * recording as one WAV file. The first request assembles + caches the
2323
- * full-call WAV; later requests reuse it.
2315
+ * recording as one file: the playable Twilio-native recording, else the
2316
+ * complete internal recording. 404 when neither is available.
2324
2317
  */
2325
2318
  async getCallRecordingDownloadUrl(wid, chatId, options = {}) {
2326
2319
  const params = new URLSearchParams();
@@ -3616,6 +3609,25 @@ var DiscordBotsApi = class extends BaseApiClient {
3616
3609
 
3617
3610
  // src/api/slack-apps.ts
3618
3611
  var SlackAppsApi = class extends BaseApiClient {
3612
+ async getSlackChannelChoices(wid, appId, cursor) {
3613
+ const params = new URLSearchParams({ appId: String(appId) });
3614
+ if (cursor) params.set("cursor", cursor);
3615
+ return this.fetch(
3616
+ `w/${wid}/app-connections/slack/channel-choices?${params}`
3617
+ );
3618
+ }
3619
+ async getSlackEntryPoints(wid, options = {}) {
3620
+ const params = new URLSearchParams();
3621
+ if (options.appId) params.set("appId", String(options.appId));
3622
+ if (options.workflowId) params.set("workflowId", String(options.workflowId));
3623
+ return this.fetch(`w/${wid}/app-connections/slack/entry-points?${params}`);
3624
+ }
3625
+ async connectSlackEntryPoint(wid, data) {
3626
+ return this.fetch(`w/${wid}/app-connections/slack/entry-points`, {
3627
+ method: "POST",
3628
+ body: JSON.stringify(data)
3629
+ });
3630
+ }
3619
3631
  /**
3620
3632
  * List all Slack apps configured for a workspace.
3621
3633
  */
@@ -6705,6 +6717,33 @@ var OrgApi = class extends BaseApiClient {
6705
6717
  method: "DELETE"
6706
6718
  });
6707
6719
  }
6720
+ /**
6721
+ * Read the organization's AI connector policy and the connectors (MCP
6722
+ * clients such as claude.ai or ChatGPT) that have requested access to it.
6723
+ * Requires `org:admin`.
6724
+ */
6725
+ async getOrgAiConnectorPolicy(orgIdOrUuid) {
6726
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
6727
+ }
6728
+ /** Set the AI connector mode: `any` or `allowlist`. Requires `org:admin`. */
6729
+ async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
6730
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
6731
+ method: "PUT",
6732
+ body: JSON.stringify(data)
6733
+ });
6734
+ }
6735
+ /** Allow a connector that has requested access. Requires `org:admin`. */
6736
+ async allowOrgAiConnector(orgIdOrUuid, appId) {
6737
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
6738
+ method: "PUT"
6739
+ });
6740
+ }
6741
+ /** Remove a connector from the allowlist. Requires `org:admin`. */
6742
+ async removeOrgAiConnector(orgIdOrUuid, appId) {
6743
+ return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
6744
+ method: "DELETE"
6745
+ });
6746
+ }
6708
6747
  /**
6709
6748
  * Get the billing customer and this organization's billable subscription.
6710
6749
  *
@@ -7532,13 +7571,22 @@ var OrgApi = class extends BaseApiClient {
7532
7571
  method: "DELETE"
7533
7572
  });
7534
7573
  }
7535
- async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50) {
7574
+ async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
7536
7575
  return this.fetch(
7537
- `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}`
7576
+ `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}&offset=${offset}`
7538
7577
  );
7539
7578
  }
7579
+ async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
7580
+ return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/${deliveryId}`);
7581
+ }
7582
+ async clearOrgWebhookDeliveries(orgIdOrUuid, endpointUuid, failedOnly) {
7583
+ return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/clear`, {
7584
+ method: "POST",
7585
+ body: JSON.stringify({ failedOnly })
7586
+ });
7587
+ }
7540
7588
  /**
7541
- * Requeue one dead-lettered or expired delivery on its existing row.
7589
+ * Requeue one failed or expired delivery on its existing row.
7542
7590
  *
7543
7591
  * The response is identifiers only. The drain signs a fresh timestamp
7544
7592
  * when it sends; this call does not POST to the receiver.
@@ -13278,7 +13326,6 @@ var WORKSPACE_METHOD_NAMES = [
13278
13326
  "getThemeSettings",
13279
13327
  "importSiteSourceZip",
13280
13328
  "installDocumoFax",
13281
- "listChatRecordings",
13282
13329
  "previewDataReport",
13283
13330
  "previewQuery",
13284
13331
  "publishSiteSource",
@@ -13925,7 +13972,6 @@ function bindCallsMethods(target, calls, cel) {
13925
13972
  target.getMessageTiming = calls.getMessageTiming.bind(calls);
13926
13973
  target.getRecordingInfo = calls.getRecordingInfo.bind(calls);
13927
13974
  target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
13928
- target.listChatRecordings = calls.listChatRecordings.bind(calls);
13929
13975
  target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
13930
13976
  target.getCelContext = cel.getCelContext.bind(cel);
13931
13977
  target.validateCelExpression = cel.validateCelExpression.bind(cel);
@@ -14690,6 +14736,9 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14690
14736
  target.deleteSlackApp = slackApps.deleteSlackApp.bind(slackApps);
14691
14737
  target.getSlackThreads = slackApps.getSlackThreads.bind(slackApps);
14692
14738
  target.getSlackInstallations = slackApps.getSlackInstallations.bind(slackApps);
14739
+ target.getSlackChannelChoices = slackApps.getSlackChannelChoices.bind(slackApps);
14740
+ target.getSlackEntryPoints = slackApps.getSlackEntryPoints.bind(slackApps);
14741
+ target.connectSlackEntryPoint = slackApps.connectSlackEntryPoint.bind(slackApps);
14693
14742
  target.getSlackAppAccounts = slackApps.getSlackAppAccounts.bind(slackApps);
14694
14743
  target.getTeamsApps = teamsApps.getTeamsApps.bind(teamsApps);
14695
14744
  target.getTeamsApp = teamsApps.getTeamsApp.bind(teamsApps);
@@ -14886,6 +14935,8 @@ function bindOrgMethods(target, org) {
14886
14935
  target.listOrgWebhookEndpointDeliveries = org.listOrgWebhookEndpointDeliveries.bind(org);
14887
14936
  target.replayOrgWebhookDelivery = org.replayOrgWebhookDelivery.bind(org);
14888
14937
  target.discardPendingOrgWebhookDeliveries = org.discardPendingOrgWebhookDeliveries.bind(org);
14938
+ target.getOrgWebhookDeliveryDetail = org.getOrgWebhookDeliveryDetail.bind(org);
14939
+ target.clearOrgWebhookDeliveries = org.clearOrgWebhookDeliveries.bind(org);
14889
14940
  target.getOrgWebhookEndpointCoverage = org.getOrgWebhookEndpointCoverage.bind(org);
14890
14941
  target.testOrgWebhookEndpoint = org.testOrgWebhookEndpoint.bind(org);
14891
14942
  target.listWorkspaceLabels = org.listWorkspaceLabels.bind(org);
@@ -15212,7 +15263,6 @@ var GravityRailClient = class {
15212
15263
  getMessageTiming;
15213
15264
  getRecordingInfo;
15214
15265
  getEdgeCaptureInfo;
15215
- listChatRecordings;
15216
15266
  getCallRecordingDownloadUrl;
15217
15267
  getCelContext;
15218
15268
  validateCelExpression;
@@ -15658,6 +15708,8 @@ var GravityRailClient = class {
15658
15708
  listOrgWebhookEndpointDeliveries;
15659
15709
  replayOrgWebhookDelivery;
15660
15710
  discardPendingOrgWebhookDeliveries;
15711
+ getOrgWebhookDeliveryDetail;
15712
+ clearOrgWebhookDeliveries;
15661
15713
  getOrgWebhookEndpointCoverage;
15662
15714
  testOrgWebhookEndpoint;
15663
15715
  listWorkspaceLabels;
@@ -16143,6 +16195,9 @@ var GravityRailClient = class {
16143
16195
  deleteSlackApp;
16144
16196
  getSlackThreads;
16145
16197
  getSlackInstallations;
16198
+ getSlackChannelChoices;
16199
+ getSlackEntryPoints;
16200
+ connectSlackEntryPoint;
16146
16201
  getSlackAppAccounts;
16147
16202
  // Teams Apps API
16148
16203
  getTeamsApps;
@@ -19071,6 +19126,7 @@ var AbilityTypeSlugs = {
19071
19126
  GOOGLE_SHEETS: "integration:google_sheets",
19072
19127
  CHARLESTON_PMD_PAGING: "integration:charleston_pmd_paging",
19073
19128
  COSAN_PATHWAYS_SCHEDULING: "integration:cosan_pathways_scheduling",
19129
+ ATHENA_SCHEDULING: "integration:athena_scheduling",
19074
19130
  // Communication
19075
19131
  PHONE_CALL_TOOLS: "communication:phone_call_tools",
19076
19132
  SEND_SMS: "communication:send_sms",
@@ -19283,6 +19339,12 @@ var SiteDnsRecordType = {
19283
19339
  TXT: "TXT"
19284
19340
  };
19285
19341
 
19342
+ // src/types/generated/ai_connector_policy.ts
19343
+ var AiConnectorPolicy = {
19344
+ any: "any",
19345
+ allowlist: "allowlist"
19346
+ };
19347
+
19286
19348
  // src/types/generated/site.ts
19287
19349
  var MenuItemResponseItemType = {
19288
19350
  page: "page",
@@ -20648,6 +20710,7 @@ function pathDraftToStorage(draft, original) {
20648
20710
  ActivityWindowBasis,
20649
20711
  ActorKind,
20650
20712
  AgentBuilder,
20713
+ AiConnectorPolicy,
20651
20714
  ApiError,
20652
20715
  ApplyError,
20653
20716
  AppsApi,