@gravity-rail/cli 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.
- package/README.md +3 -3
- package/dist/{account-verify-phone-OXHKM36Z.js → account-verify-phone-IK6O7IQJ.js} +3 -3
- package/dist/{chunk-73INPBWK.js → chunk-5UCDTTIU.js} +2 -2
- package/dist/{chunk-73INPBWK.js.map → chunk-5UCDTTIU.js.map} +1 -1
- package/dist/{chunk-RAFKHKG2.js → chunk-SSJ7CRGL.js} +2 -2
- package/dist/cli-utils.js +1 -1
- package/dist/gr.js +40 -46
- package/dist/gr.js.map +1 -1
- package/dist/lib.js +10 -30
- package/dist/lib.js.map +1 -1
- package/package.json +2 -2
- /package/dist/{account-verify-phone-OXHKM36Z.js.map → account-verify-phone-IK6O7IQJ.js.map} +0 -0
- /package/dist/{chunk-RAFKHKG2.js.map → chunk-SSJ7CRGL.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getEnvironmentConfig,
|
|
4
4
|
printTable,
|
|
5
5
|
resolveNonInteractiveAuth
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5UCDTTIU.js";
|
|
7
7
|
import {
|
|
8
8
|
AuthRequiredError,
|
|
9
9
|
CLIError
|
|
@@ -817,4 +817,4 @@ export {
|
|
|
817
817
|
confirmAccountPhoneVerify,
|
|
818
818
|
getConciergeChatMessages
|
|
819
819
|
};
|
|
820
|
-
//# sourceMappingURL=chunk-
|
|
820
|
+
//# sourceMappingURL=chunk-SSJ7CRGL.js.map
|
package/dist/cli-utils.js
CHANGED
package/dist/gr.js
CHANGED
|
@@ -3164,7 +3164,7 @@ var init_libphonenumber_js = __esm({
|
|
|
3164
3164
|
}
|
|
3165
3165
|
});
|
|
3166
3166
|
|
|
3167
|
-
// ../sdk/dist/chunk-
|
|
3167
|
+
// ../sdk/dist/chunk-BQOKENBF.js
|
|
3168
3168
|
function resourceWorkflowsPath(wid, ...segments) {
|
|
3169
3169
|
const tail = segments.map((segment) => encodeURIComponent(String(segment))).join("/");
|
|
3170
3170
|
const base = `w/${encodeURIComponent(wid)}/resource-workflows`;
|
|
@@ -3582,7 +3582,6 @@ function bindCallsMethods(target, calls, cel) {
|
|
|
3582
3582
|
target.getMessageTiming = calls.getMessageTiming.bind(calls);
|
|
3583
3583
|
target.getRecordingInfo = calls.getRecordingInfo.bind(calls);
|
|
3584
3584
|
target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
|
|
3585
|
-
target.listChatRecordings = calls.listChatRecordings.bind(calls);
|
|
3586
3585
|
target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
|
|
3587
3586
|
target.getCelContext = cel.getCelContext.bind(cel);
|
|
3588
3587
|
target.validateCelExpression = cel.validateCelExpression.bind(cel);
|
|
@@ -4305,6 +4304,9 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
4305
4304
|
target.deleteSlackApp = slackApps.deleteSlackApp.bind(slackApps);
|
|
4306
4305
|
target.getSlackThreads = slackApps.getSlackThreads.bind(slackApps);
|
|
4307
4306
|
target.getSlackInstallations = slackApps.getSlackInstallations.bind(slackApps);
|
|
4307
|
+
target.getSlackChannelChoices = slackApps.getSlackChannelChoices.bind(slackApps);
|
|
4308
|
+
target.getSlackEntryPoints = slackApps.getSlackEntryPoints.bind(slackApps);
|
|
4309
|
+
target.connectSlackEntryPoint = slackApps.connectSlackEntryPoint.bind(slackApps);
|
|
4308
4310
|
target.getSlackAppAccounts = slackApps.getSlackAppAccounts.bind(slackApps);
|
|
4309
4311
|
target.getTeamsApps = teamsApps.getTeamsApps.bind(teamsApps);
|
|
4310
4312
|
target.getTeamsApp = teamsApps.getTeamsApp.bind(teamsApps);
|
|
@@ -4719,8 +4721,8 @@ function getRevisionState(workflow, revision) {
|
|
|
4719
4721
|
};
|
|
4720
4722
|
}
|
|
4721
4723
|
var AbilitiesApi, ResourceWorkflowsApi, BundlesApi, InstallationsApi, AccessGrantsApi, AgentTasksApi, AgentsApi, AIModelsApi, ApiKeysApi, AppsApi, AssignmentsApi, VoiceApi, AuthApi, BuildersApi, CalendarsApi, CallsApi, CELApi, ChatsApi, ConfluenceApi, CustomToolkitsApi, DataTypesApi, DiscordBotsApi, SlackAppsApi, EventsApi, FeaturesApi, FhirConnectionsApi, InboundFaxStatus, DocumoFaxApi, HealthieApi, FilesApi, InboxesApi, InquiriesApi, AppConnectionsApi, McpServersApi, MemberImportValidationError, MembersApi, MondayIntegrationApi, NotificationRulesApi, OperatorApi, OrgApi, OAuthConnectionsApi, OAuthApi, PhoneNumbersApi, PronunciationsApi, PromptsApi, PersonasApi, QueriesApi, QualificationsApi, ReportsApi, RoutingRulesApi, SalesforceApi, ConnectionSyncApi, HubspotApi, SitesApi, SubscriptionsApi, SupportRequestsApi, CustomersApi, ResellersApi, SupervisorsApi, TasksApi, TemplatesApi, ToolkitsApi, JourneysApi, WorkflowsApi, WorkflowNotesApi, EventRuleObjectType, EventRuleEventType, EventRuleActionType, DriverMode, MEMBER_RELATIONSHIP_KINDS, WorkspaceInvitationsApi, WorkspacesApi, DashboardsApi, DevicesApi, TeamsAppsApi, ExperimentsApi, PatientSyncConnectionsApi, ActivityApi, MotdApi, InterventionRequestsApi, MetricsApi, DataReportsApi, ProjectsApi, TrackedLinksApi, WORKSPACE_METHOD_NAMES, WORKSPACE_METHOD_NAME_SET, GravityRailClient, WIDGET_SLUGS, CHAT_TYPES, BUILTIN_ASSISTANT_CHAT_TYPES, MEMBER_AGENT_CHAT_TYPES, ActivityGrain, ActivityGroupBy, ActivityOpenItemOrder, ActivityWindowBasis;
|
|
4722
|
-
var
|
|
4723
|
-
"../sdk/dist/chunk-
|
|
4724
|
+
var init_chunk_BQOKENBF = __esm({
|
|
4725
|
+
"../sdk/dist/chunk-BQOKENBF.js"() {
|
|
4724
4726
|
init_chunk_GCN4OMYU();
|
|
4725
4727
|
init_libphonenumber_js();
|
|
4726
4728
|
AbilitiesApi = class extends BaseApiClient {
|
|
@@ -6287,23 +6289,15 @@ var init_chunk_7R22EG5F = __esm({
|
|
|
6287
6289
|
* Get PHI-safe provenance metadata for the recording served by
|
|
6288
6290
|
* `/audio.wav` — source, encryption, channels, duration, status, etc.
|
|
6289
6291
|
* Staff-only Twilio SIDs are present only for superusers. Returns 404
|
|
6290
|
-
* when the chat has no native recording row
|
|
6292
|
+
* when the chat has no native recording row.
|
|
6291
6293
|
*/
|
|
6292
6294
|
async getRecordingInfo(wid, chatId) {
|
|
6293
6295
|
return this.fetch(`w/${wid}/recordings/chat/${chatId}/info`);
|
|
6294
6296
|
}
|
|
6295
|
-
/** List the recorded audio chunks for a chat (metadata only). */
|
|
6296
|
-
async listChatRecordings(wid, chatId, options = {}) {
|
|
6297
|
-
const params = new URLSearchParams();
|
|
6298
|
-
if (options.role) params.set("role", options.role);
|
|
6299
|
-
return this.fetch(
|
|
6300
|
-
`w/${wid}/recordings/chat/${chatId}${params.toString() ? `?${params.toString()}` : ""}`
|
|
6301
|
-
);
|
|
6302
|
-
}
|
|
6303
6297
|
/**
|
|
6304
6298
|
* Get a single short-lived presigned URL to download the complete call
|
|
6305
|
-
* recording as one
|
|
6306
|
-
*
|
|
6299
|
+
* recording as one file: the playable Twilio-native recording, else the
|
|
6300
|
+
* complete internal recording. 404 when neither is available.
|
|
6307
6301
|
*/
|
|
6308
6302
|
async getCallRecordingDownloadUrl(wid, chatId, options = {}) {
|
|
6309
6303
|
const params = new URLSearchParams();
|
|
@@ -7466,6 +7460,25 @@ var init_chunk_7R22EG5F = __esm({
|
|
|
7466
7460
|
}
|
|
7467
7461
|
};
|
|
7468
7462
|
SlackAppsApi = class extends BaseApiClient {
|
|
7463
|
+
async getSlackChannelChoices(wid, appId, cursor) {
|
|
7464
|
+
const params = new URLSearchParams({ appId: String(appId) });
|
|
7465
|
+
if (cursor) params.set("cursor", cursor);
|
|
7466
|
+
return this.fetch(
|
|
7467
|
+
`w/${wid}/app-connections/slack/channel-choices?${params}`
|
|
7468
|
+
);
|
|
7469
|
+
}
|
|
7470
|
+
async getSlackEntryPoints(wid, options = {}) {
|
|
7471
|
+
const params = new URLSearchParams();
|
|
7472
|
+
if (options.appId) params.set("appId", String(options.appId));
|
|
7473
|
+
if (options.workflowId) params.set("workflowId", String(options.workflowId));
|
|
7474
|
+
return this.fetch(`w/${wid}/app-connections/slack/entry-points?${params}`);
|
|
7475
|
+
}
|
|
7476
|
+
async connectSlackEntryPoint(wid, data) {
|
|
7477
|
+
return this.fetch(`w/${wid}/app-connections/slack/entry-points`, {
|
|
7478
|
+
method: "POST",
|
|
7479
|
+
body: JSON.stringify(data)
|
|
7480
|
+
});
|
|
7481
|
+
}
|
|
7469
7482
|
/**
|
|
7470
7483
|
* List all Slack apps configured for a workspace.
|
|
7471
7484
|
*/
|
|
@@ -15995,7 +16008,6 @@ var init_chunk_7R22EG5F = __esm({
|
|
|
15995
16008
|
"getThemeSettings",
|
|
15996
16009
|
"importSiteSourceZip",
|
|
15997
16010
|
"installDocumoFax",
|
|
15998
|
-
"listChatRecordings",
|
|
15999
16011
|
"previewDataReport",
|
|
16000
16012
|
"previewQuery",
|
|
16001
16013
|
"publishSiteSource",
|
|
@@ -16584,7 +16596,6 @@ var init_chunk_7R22EG5F = __esm({
|
|
|
16584
16596
|
getMessageTiming;
|
|
16585
16597
|
getRecordingInfo;
|
|
16586
16598
|
getEdgeCaptureInfo;
|
|
16587
|
-
listChatRecordings;
|
|
16588
16599
|
getCallRecordingDownloadUrl;
|
|
16589
16600
|
getCelContext;
|
|
16590
16601
|
validateCelExpression;
|
|
@@ -17517,6 +17528,9 @@ var init_chunk_7R22EG5F = __esm({
|
|
|
17517
17528
|
deleteSlackApp;
|
|
17518
17529
|
getSlackThreads;
|
|
17519
17530
|
getSlackInstallations;
|
|
17531
|
+
getSlackChannelChoices;
|
|
17532
|
+
getSlackEntryPoints;
|
|
17533
|
+
connectSlackEntryPoint;
|
|
17520
17534
|
getSlackAppAccounts;
|
|
17521
17535
|
// Teams Apps API
|
|
17522
17536
|
getTeamsApps;
|
|
@@ -17971,7 +17985,7 @@ var init_chunk_6KPGCPGW = __esm({
|
|
|
17971
17985
|
var SEARCHABLE_EVENT_RULE_SOURCE_FIELDS, ActivityEventType, EntityKind;
|
|
17972
17986
|
var init_dist = __esm({
|
|
17973
17987
|
"../sdk/dist/index.js"() {
|
|
17974
|
-
|
|
17988
|
+
init_chunk_BQOKENBF();
|
|
17975
17989
|
init_chunk_HXVJF54M();
|
|
17976
17990
|
init_chunk_6KPGCPGW();
|
|
17977
17991
|
init_chunk_GCN4OMYU();
|
|
@@ -22317,7 +22331,7 @@ var init_package = __esm({
|
|
|
22317
22331
|
"package.json"() {
|
|
22318
22332
|
package_default = {
|
|
22319
22333
|
name: "@gravity-rail/cli",
|
|
22320
|
-
version: "0.
|
|
22334
|
+
version: "0.56.0",
|
|
22321
22335
|
description: "Gravity Rail CLI \u2014 manage workspaces from the command line",
|
|
22322
22336
|
type: "module",
|
|
22323
22337
|
bin: {
|
|
@@ -41553,13 +41567,6 @@ var pronunciationsDomain = {
|
|
|
41553
41567
|
// src/domains/recordings.ts
|
|
41554
41568
|
init_context();
|
|
41555
41569
|
init_output();
|
|
41556
|
-
var CHUNK_COLUMNS = [
|
|
41557
|
-
{ header: "IDX", getValue: (item) => String(item.chunkIndex ?? "") },
|
|
41558
|
-
{ header: "ROLE", getValue: (item) => item.role ?? "" },
|
|
41559
|
-
{ header: "START", getValue: (item) => item.startTime ?? "" },
|
|
41560
|
-
{ header: "FORMAT", getValue: (item) => item.audioFormat ?? "" },
|
|
41561
|
-
{ header: "MIME", getValue: (item) => item.mimeType ?? "" }
|
|
41562
|
-
];
|
|
41563
41570
|
var URL_COLUMNS = [
|
|
41564
41571
|
{ header: "DOWNLOAD URL", getValue: (item) => item.downloadUrl ?? "" },
|
|
41565
41572
|
{ header: "EXPIRES IN", getValue: (item) => String(item.expiresIn ?? "") },
|
|
@@ -41576,24 +41583,6 @@ var recordingsDomain = {
|
|
|
41576
41583
|
name: "recordings",
|
|
41577
41584
|
description: "Download recorded voice-call audio (per chat)",
|
|
41578
41585
|
commands: [
|
|
41579
|
-
{
|
|
41580
|
-
path: ["recordings", "list"],
|
|
41581
|
-
description: "List recorded audio chunks for a chat (metadata only)",
|
|
41582
|
-
requiresWorkspace: true,
|
|
41583
|
-
args: [
|
|
41584
|
-
{ name: "chat-id", aliases: ["id"], description: "Chat ID", required: true },
|
|
41585
|
-
{ name: "role", description: "Filter by role: 'assistant' or 'member'" }
|
|
41586
|
-
],
|
|
41587
|
-
handler: async ({ ctx, workspace, args }) => {
|
|
41588
|
-
const role = typeof args.role === "string" ? args.role : void 0;
|
|
41589
|
-
const result2 = await requireAuth(ctx).apiClient.listChatRecordings(
|
|
41590
|
-
workspace,
|
|
41591
|
-
requireNumber(args, "chat-id"),
|
|
41592
|
-
role ? { role } : {}
|
|
41593
|
-
);
|
|
41594
|
-
outputData(result2.items, ctx, CHUNK_COLUMNS);
|
|
41595
|
-
}
|
|
41596
|
-
},
|
|
41597
41586
|
{
|
|
41598
41587
|
path: ["recordings", "download-url"],
|
|
41599
41588
|
description: "Get a single short-lived presigned URL for the whole-call recording WAV",
|
|
@@ -46488,10 +46477,15 @@ var RealtimeClient = class extends EventEmitter {
|
|
|
46488
46477
|
message: { role: "user", content }
|
|
46489
46478
|
});
|
|
46490
46479
|
}
|
|
46491
|
-
/**
|
|
46480
|
+
/**
|
|
46481
|
+
* Send interrupt signal with playback position.
|
|
46482
|
+
*
|
|
46483
|
+
* The position goes out as whole non-negative milliseconds, as the browser
|
|
46484
|
+
* sends it: the player reports fractional sample durations.
|
|
46485
|
+
*/
|
|
46492
46486
|
sendInterrupt(audioEndMs, messageId) {
|
|
46493
46487
|
this.sendCustom("voice.interrupt", {
|
|
46494
|
-
audio_end_ms: audioEndMs,
|
|
46488
|
+
audio_end_ms: Math.max(0, Math.floor(audioEndMs)),
|
|
46495
46489
|
message_id: messageId
|
|
46496
46490
|
});
|
|
46497
46491
|
}
|