@gravity-rail/cli 7.0.0 → 8.0.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/{account-verify-phone-N6TMI2HX.js → account-verify-phone-R33UATCR.js} +2 -2
- package/dist/{chunk-XDEGL6VD.js → chunk-YKDH3GYW.js} +2 -2
- package/dist/{chunk-XDEGL6VD.js.map → chunk-YKDH3GYW.js.map} +1 -1
- package/dist/cli-utils.js +1 -1
- package/dist/{errors-JY4564PH.js → errors-W4SQWN2A.js} +2 -2
- package/dist/gr.js +41 -13
- package/dist/gr.js.map +1 -1
- package/dist/lib.js +15 -4
- package/dist/lib.js.map +1 -1
- package/package.json +3 -3
- /package/dist/{account-verify-phone-N6TMI2HX.js.map → account-verify-phone-R33UATCR.js.map} +0 -0
- /package/dist/{errors-JY4564PH.js.map → errors-W4SQWN2A.js.map} +0 -0
package/dist/cli-utils.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
CLIError,
|
|
4
4
|
handleError,
|
|
5
5
|
unauthorizedHint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YKDH3GYW.js";
|
|
7
7
|
export {
|
|
8
8
|
AuthRequiredError,
|
|
9
9
|
CLIError,
|
|
10
10
|
handleError,
|
|
11
11
|
unauthorizedHint
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=errors-
|
|
13
|
+
//# sourceMappingURL=errors-W4SQWN2A.js.map
|
package/dist/gr.js
CHANGED
|
@@ -3121,7 +3121,7 @@ var init_libphonenumber_js = __esm({
|
|
|
3121
3121
|
}
|
|
3122
3122
|
});
|
|
3123
3123
|
|
|
3124
|
-
// ../sdk/dist/chunk-
|
|
3124
|
+
// ../sdk/dist/chunk-FWDDHKTM.js
|
|
3125
3125
|
function resourceWorkflowsPath(wid, ...segments) {
|
|
3126
3126
|
const tail = segments.map((segment) => encodeURIComponent(String(segment))).join("/");
|
|
3127
3127
|
const base = `w/${encodeURIComponent(wid)}/resource-workflows`;
|
|
@@ -3675,6 +3675,7 @@ function bindCallsMethods(target, calls, cel) {
|
|
|
3675
3675
|
target.getPhoneCalls = calls.getPhoneCalls.bind(calls);
|
|
3676
3676
|
target.getPhoneCallByUuid = calls.getPhoneCallByUuid.bind(calls);
|
|
3677
3677
|
target.getMessageTiming = calls.getMessageTiming.bind(calls);
|
|
3678
|
+
target.getRecordingWaveform = calls.getRecordingWaveform.bind(calls);
|
|
3678
3679
|
target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
|
|
3679
3680
|
target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
|
|
3680
3681
|
target.getCelContext = cel.getCelContext.bind(cel);
|
|
@@ -4916,8 +4917,8 @@ function getRevisionState(workflow, revision) {
|
|
|
4916
4917
|
};
|
|
4917
4918
|
}
|
|
4918
4919
|
var AbilitiesApi, ResourceWorkflowsApi, BundlesApi, InstallationsApi, AccessGrantsApi, AgentTasksApi, AgentsApi, AIModelsApi, ApiKeysApi, AppLinksApi, AppsApi, AssignmentsApi, VoiceApi, AuthApi, BuildersApi, CalendarsApi, CallsApi, CELApi, ChatApi, ChatsApi, ConfluenceApi, CustomToolkitsApi, DataTypesApi, DiscordBotsApi, SlackAppsApi, EventsApi, FeaturesApi, FhirConnectionsApi, StediApi, InboundFaxStatus, DocumoFaxApi, HealthieApi, FilesApi, InboxesApi, InquiriesApi, AppConnectionsApi, McpServersApi, MemberImportValidationError, MembersApi, MondayIntegrationApi, NotificationRulesApi, OperatorApi, OrgApiKeyLimitUnconfirmedError, OrgWebhookScopeUnconfirmedError, OrgApi, OAuthConnectionsApi, OAuthApi, PhoneNumbersApi, PronunciationsApi, PromptsApi, PersonasApi, QueriesApi, QualificationsApi, ReportsApi, RoutingRulesApi, ConnectionSyncApi, SalesforceApi, HubspotApi, SitesApi, SubscriptionsApi, SupportRequestsApi, OrganizationBillingApi, ResellersApi, SupervisorsApi, TasksApi, TemplatesApi, ToolkitsApi, JourneysApi, WorkflowsApi, WorkflowNotesApi, AccessLevel2, EventRuleObjectType, EventRuleEventType, EventRuleActionType, SyncErrorCode, DriverMode, MEMBER_RELATIONSHIP_KINDS, PROPOSED_MESSAGE_TOOL_NAMES, PROPOSED_MESSAGE_SETTLEMENT_STATUSES, PROPOSED_SERVICES, PROPOSED_FIELDS, WorkspaceInvitationsApi, WorkspacesApi, MedicalBillingApi, DashboardsApi, DevicesApi, TeamsAppsApi, ExperimentsApi, PatientSyncConnectionsApi, ClaimMdApi, 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;
|
|
4919
|
-
var
|
|
4920
|
-
"../sdk/dist/chunk-
|
|
4920
|
+
var init_chunk_FWDDHKTM = __esm({
|
|
4921
|
+
"../sdk/dist/chunk-FWDDHKTM.js"() {
|
|
4921
4922
|
init_chunk_P2X5TOYY();
|
|
4922
4923
|
init_libphonenumber_js();
|
|
4923
4924
|
AbilitiesApi = class extends BaseApiClient {
|
|
@@ -6603,6 +6604,19 @@ var init_chunk_M77YVSBD = __esm({
|
|
|
6603
6604
|
`w/${wid}/recordings/chat/${chatId}/message-timing${params.toString() ? `?${params.toString()}` : ""}`
|
|
6604
6605
|
);
|
|
6605
6606
|
}
|
|
6607
|
+
/**
|
|
6608
|
+
* A coarse loudness overview of the chat's playable call recording, for
|
|
6609
|
+
* drawing a player before any audio is fetched: the playable duration and
|
|
6610
|
+
* one value in `[0, 1]` per half second (at most 512). It describes the
|
|
6611
|
+
* recording `audio.wav` serves and is 404 exactly when that is. Reading it
|
|
6612
|
+
* fetches no audio.
|
|
6613
|
+
*/
|
|
6614
|
+
async getRecordingWaveform(wid, chatId, options = {}) {
|
|
6615
|
+
return this.fetch(
|
|
6616
|
+
`w/${wid}/recordings/chat/${chatId}/waveform`,
|
|
6617
|
+
options.signal ? { signal: options.signal } : void 0
|
|
6618
|
+
);
|
|
6619
|
+
}
|
|
6606
6620
|
/**
|
|
6607
6621
|
* Staff-only discovery of retained edge-stream capture for a chat:
|
|
6608
6622
|
* whether any is retained, its aggregate coverage status, the interval it
|
|
@@ -10721,7 +10735,7 @@ var init_chunk_M77YVSBD = __esm({
|
|
|
10721
10735
|
});
|
|
10722
10736
|
}
|
|
10723
10737
|
/**
|
|
10724
|
-
* Mint
|
|
10738
|
+
* Mint an organization-bound Inference API key. The secret is returned once.
|
|
10725
10739
|
* Requires `org:admin`.
|
|
10726
10740
|
*/
|
|
10727
10741
|
async createOrgInferenceApiKey(orgIdOrUuid, data) {
|
|
@@ -12432,10 +12446,10 @@ var init_chunk_M77YVSBD = __esm({
|
|
|
12432
12446
|
});
|
|
12433
12447
|
}
|
|
12434
12448
|
/** Execute a query (rows / count / aggregate). */
|
|
12435
|
-
async runQuery(wid, query2, mode) {
|
|
12449
|
+
async runQuery(wid, query2, mode, options) {
|
|
12436
12450
|
return this.fetch(`w/${wid}/queries/run`, {
|
|
12437
12451
|
method: "POST",
|
|
12438
|
-
body: JSON.stringify({ query: query2, mode })
|
|
12452
|
+
body: JSON.stringify({ query: query2, mode, sourceFaxId: options?.sourceFaxId })
|
|
12439
12453
|
});
|
|
12440
12454
|
}
|
|
12441
12455
|
};
|
|
@@ -18143,6 +18157,7 @@ var init_chunk_M77YVSBD = __esm({
|
|
|
18143
18157
|
"getPublicProducts",
|
|
18144
18158
|
"getQualification",
|
|
18145
18159
|
"getQualifications",
|
|
18160
|
+
"getRecordingWaveform",
|
|
18146
18161
|
"getResellerWorkspaces",
|
|
18147
18162
|
"getRoutine",
|
|
18148
18163
|
"getRoutineConfigEvents",
|
|
@@ -18642,6 +18657,7 @@ var init_chunk_M77YVSBD = __esm({
|
|
|
18642
18657
|
getPhoneCalls;
|
|
18643
18658
|
getPhoneCallByUuid;
|
|
18644
18659
|
getMessageTiming;
|
|
18660
|
+
getRecordingWaveform;
|
|
18645
18661
|
getEdgeCaptureInfo;
|
|
18646
18662
|
getCallRecordingDownloadUrl;
|
|
18647
18663
|
getCelContext;
|
|
@@ -20112,9 +20128,9 @@ var init_chunk_M77YVSBD = __esm({
|
|
|
20112
20128
|
}
|
|
20113
20129
|
});
|
|
20114
20130
|
|
|
20115
|
-
// ../sdk/dist/chunk-
|
|
20116
|
-
var
|
|
20117
|
-
"../sdk/dist/chunk-
|
|
20131
|
+
// ../sdk/dist/chunk-RKIR4UNS.js
|
|
20132
|
+
var init_chunk_RKIR4UNS = __esm({
|
|
20133
|
+
"../sdk/dist/chunk-RKIR4UNS.js"() {
|
|
20118
20134
|
}
|
|
20119
20135
|
});
|
|
20120
20136
|
|
|
@@ -20169,8 +20185,8 @@ var init_chunk_6KPGCPGW = __esm({
|
|
|
20169
20185
|
var SEARCHABLE_EVENT_RULE_SOURCE_FIELDS, ActivityEventType, EntityKind;
|
|
20170
20186
|
var init_dist = __esm({
|
|
20171
20187
|
"../sdk/dist/index.js"() {
|
|
20172
|
-
|
|
20173
|
-
|
|
20188
|
+
init_chunk_FWDDHKTM();
|
|
20189
|
+
init_chunk_RKIR4UNS();
|
|
20174
20190
|
init_chunk_6KPGCPGW();
|
|
20175
20191
|
init_chunk_P2X5TOYY();
|
|
20176
20192
|
SEARCHABLE_EVENT_RULE_SOURCE_FIELDS = [
|
|
@@ -20222,6 +20238,7 @@ var init_dist = __esm({
|
|
|
20222
20238
|
presencewent_offline: "presence.went_offline",
|
|
20223
20239
|
operator_groupmember_added: "operator_group.member_added",
|
|
20224
20240
|
operator_groupmember_removed: "operator_group.member_removed",
|
|
20241
|
+
operatorinteraction_declined: "operator.interaction_declined",
|
|
20225
20242
|
voicemailreceived: "voicemail.received",
|
|
20226
20243
|
voicemailtranscribed: "voicemail.transcribed",
|
|
20227
20244
|
voicemaillistened: "voicemail.listened",
|
|
@@ -24600,7 +24617,7 @@ var init_package = __esm({
|
|
|
24600
24617
|
"package.json"() {
|
|
24601
24618
|
package_default = {
|
|
24602
24619
|
name: "@gravity-rail/cli",
|
|
24603
|
-
version: "
|
|
24620
|
+
version: "8.0.0",
|
|
24604
24621
|
description: "Gravity Rail CLI \u2014 manage workspaces from the command line",
|
|
24605
24622
|
type: "module",
|
|
24606
24623
|
bin: {
|
|
@@ -39947,6 +39964,11 @@ Relations (relationMatch): ${relations.join(", ")}`);
|
|
|
39947
39964
|
name: "mode",
|
|
39948
39965
|
description: "rows (default), count, or aggregate",
|
|
39949
39966
|
required: false
|
|
39967
|
+
},
|
|
39968
|
+
{
|
|
39969
|
+
name: "source-fax-id",
|
|
39970
|
+
description: "Limit a Record query to Records produced from this received fax",
|
|
39971
|
+
required: false
|
|
39950
39972
|
}
|
|
39951
39973
|
],
|
|
39952
39974
|
examples: [
|
|
@@ -39955,10 +39977,16 @@ Relations (relationMatch): ${relations.join(", ")}`);
|
|
|
39955
39977
|
],
|
|
39956
39978
|
handler: async ({ ctx, workspace, args, data }) => {
|
|
39957
39979
|
const query2 = coerceQuery(data, args);
|
|
39980
|
+
const rawFaxId = args["source-fax-id"];
|
|
39981
|
+
const sourceFaxId = rawFaxId === void 0 ? void 0 : Number(rawFaxId);
|
|
39982
|
+
if (sourceFaxId !== void 0 && (typeof rawFaxId !== "string" || !/^[0-9]+$/.test(rawFaxId) || !Number.isInteger(sourceFaxId) || sourceFaxId < 1 || sourceFaxId > 2147483647)) {
|
|
39983
|
+
throw new CLIError("--source-fax-id must be a positive 32-bit integer");
|
|
39984
|
+
}
|
|
39958
39985
|
const result3 = await requireAuth(ctx).apiClient.runQuery(
|
|
39959
39986
|
workspace,
|
|
39960
39987
|
query2,
|
|
39961
|
-
runMode(args)
|
|
39988
|
+
runMode(args),
|
|
39989
|
+
{ sourceFaxId }
|
|
39962
39990
|
);
|
|
39963
39991
|
outputSingle(result3, ctx);
|
|
39964
39992
|
}
|