@gravity-rail/sdk 0.55.1 → 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 { gy as GravityRailClient } from './chat-interaction-C620llgG.cjs';
2
- export { cn as ChatInteractionController } from './chat-interaction-C620llgG.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 { gy as GravityRailClient } from './chat-interaction-DDz9ZtQ8.js';
2
- export { cn as ChatInteractionController } from './chat-interaction-DDz9ZtQ8.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
@@ -2305,23 +2305,15 @@ var CallsApi = class extends BaseApiClient {
2305
2305
  * Get PHI-safe provenance metadata for the recording served by
2306
2306
  * `/audio.wav` — source, encryption, channels, duration, status, etc.
2307
2307
  * Staff-only Twilio SIDs are present only for superusers. Returns 404
2308
- * when the chat has no native recording row (legacy chunk-only playback).
2308
+ * when the chat has no native recording row.
2309
2309
  */
2310
2310
  async getRecordingInfo(wid, chatId) {
2311
2311
  return this.fetch(`w/${wid}/recordings/chat/${chatId}/info`);
2312
2312
  }
2313
- /** List the recorded audio chunks for a chat (metadata only). */
2314
- async listChatRecordings(wid, chatId, options = {}) {
2315
- const params = new URLSearchParams();
2316
- if (options.role) params.set("role", options.role);
2317
- return this.fetch(
2318
- `w/${wid}/recordings/chat/${chatId}${params.toString() ? `?${params.toString()}` : ""}`
2319
- );
2320
- }
2321
2313
  /**
2322
2314
  * Get a single short-lived presigned URL to download the complete call
2323
- * recording as one WAV file. The first request assembles + caches the
2324
- * 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.
2325
2317
  */
2326
2318
  async getCallRecordingDownloadUrl(wid, chatId, options = {}) {
2327
2319
  const params = new URLSearchParams();
@@ -3617,6 +3609,25 @@ var DiscordBotsApi = class extends BaseApiClient {
3617
3609
 
3618
3610
  // src/api/slack-apps.ts
3619
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
+ }
3620
3631
  /**
3621
3632
  * List all Slack apps configured for a workspace.
3622
3633
  */
@@ -13315,7 +13326,6 @@ var WORKSPACE_METHOD_NAMES = [
13315
13326
  "getThemeSettings",
13316
13327
  "importSiteSourceZip",
13317
13328
  "installDocumoFax",
13318
- "listChatRecordings",
13319
13329
  "previewDataReport",
13320
13330
  "previewQuery",
13321
13331
  "publishSiteSource",
@@ -13962,7 +13972,6 @@ function bindCallsMethods(target, calls, cel) {
13962
13972
  target.getMessageTiming = calls.getMessageTiming.bind(calls);
13963
13973
  target.getRecordingInfo = calls.getRecordingInfo.bind(calls);
13964
13974
  target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
13965
- target.listChatRecordings = calls.listChatRecordings.bind(calls);
13966
13975
  target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
13967
13976
  target.getCelContext = cel.getCelContext.bind(cel);
13968
13977
  target.validateCelExpression = cel.validateCelExpression.bind(cel);
@@ -14727,6 +14736,9 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14727
14736
  target.deleteSlackApp = slackApps.deleteSlackApp.bind(slackApps);
14728
14737
  target.getSlackThreads = slackApps.getSlackThreads.bind(slackApps);
14729
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);
14730
14742
  target.getSlackAppAccounts = slackApps.getSlackAppAccounts.bind(slackApps);
14731
14743
  target.getTeamsApps = teamsApps.getTeamsApps.bind(teamsApps);
14732
14744
  target.getTeamsApp = teamsApps.getTeamsApp.bind(teamsApps);
@@ -15251,7 +15263,6 @@ var GravityRailClient = class {
15251
15263
  getMessageTiming;
15252
15264
  getRecordingInfo;
15253
15265
  getEdgeCaptureInfo;
15254
- listChatRecordings;
15255
15266
  getCallRecordingDownloadUrl;
15256
15267
  getCelContext;
15257
15268
  validateCelExpression;
@@ -16184,6 +16195,9 @@ var GravityRailClient = class {
16184
16195
  deleteSlackApp;
16185
16196
  getSlackThreads;
16186
16197
  getSlackInstallations;
16198
+ getSlackChannelChoices;
16199
+ getSlackEntryPoints;
16200
+ connectSlackEntryPoint;
16187
16201
  getSlackAppAccounts;
16188
16202
  // Teams Apps API
16189
16203
  getTeamsApps;