@gravity-rail/cli 0.57.0 → 1.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-Q4FKI4PX.js → account-verify-phone-EVQMBXZZ.js} +3 -3
- package/dist/{chunk-TY6HKHOV.js → chunk-3Y4XPU3N.js} +2 -2
- package/dist/{chunk-CB4K2FBU.js → chunk-TU6PCZD4.js} +3 -3
- package/dist/chunk-TU6PCZD4.js.map +1 -0
- package/dist/{cli-client-context-cd5f2JKX.d.ts → cli-client-context-NJgZhyfd.d.ts} +2 -1
- package/dist/cli-utils.d.ts +5 -3
- package/dist/cli-utils.js +1 -1
- package/dist/gr.js +116 -255
- package/dist/gr.js.map +1 -1
- package/dist/lib.d.ts +4 -3
- package/dist/lib.js +79 -187
- package/dist/lib.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-CB4K2FBU.js.map +0 -1
- /package/dist/{account-verify-phone-Q4FKI4PX.js.map → account-verify-phone-EVQMBXZZ.js.map} +0 -0
- /package/dist/{chunk-TY6HKHOV.js.map → chunk-3Y4XPU3N.js.map} +0 -0
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-VBG6XUBN.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`;
|
|
@@ -3742,10 +3742,6 @@ function bindMembersMethods(target, members) {
|
|
|
3742
3742
|
target.getAnonymousResolution = members.getAnonymousResolution.bind(members);
|
|
3743
3743
|
target.resolveAnonymousMember = members.resolveAnonymousMember.bind(members);
|
|
3744
3744
|
target.expireAnonymousMember = members.expireAnonymousMember.bind(members);
|
|
3745
|
-
target.getMemberMemories = members.getMemberMemories.bind(members);
|
|
3746
|
-
target.getMemberMemory = members.getMemberMemory.bind(members);
|
|
3747
|
-
target.createMemberMemory = members.createMemberMemory.bind(members);
|
|
3748
|
-
target.deleteMemberMemory = members.deleteMemberMemory.bind(members);
|
|
3749
3745
|
target.getMemberSyncLinks = members.getMemberSyncLinks.bind(members);
|
|
3750
3746
|
target.getMemberRelationships = members.getMemberRelationships.bind(members);
|
|
3751
3747
|
target.createMemberRelationship = members.createMemberRelationship.bind(members);
|
|
@@ -4309,6 +4305,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
4309
4305
|
target.deleteSlackApp = slackApps.deleteSlackApp.bind(slackApps);
|
|
4310
4306
|
target.getSlackThreads = slackApps.getSlackThreads.bind(slackApps);
|
|
4311
4307
|
target.getSlackInstallations = slackApps.getSlackInstallations.bind(slackApps);
|
|
4308
|
+
target.removeSlackAccount = slackApps.removeSlackAccount.bind(slackApps);
|
|
4312
4309
|
target.removeSlackInstallation = slackApps.removeSlackInstallation.bind(slackApps);
|
|
4313
4310
|
target.getSlackChannelChoices = slackApps.getSlackChannelChoices.bind(slackApps);
|
|
4314
4311
|
target.getSlackEntryPoints = slackApps.getSlackEntryPoints.bind(slackApps);
|
|
@@ -4759,8 +4756,8 @@ function getRevisionState(workflow, revision) {
|
|
|
4759
4756
|
};
|
|
4760
4757
|
}
|
|
4761
4758
|
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, 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;
|
|
4762
|
-
var
|
|
4763
|
-
"../sdk/dist/chunk-
|
|
4759
|
+
var init_chunk_VBG6XUBN = __esm({
|
|
4760
|
+
"../sdk/dist/chunk-VBG6XUBN.js"() {
|
|
4764
4761
|
init_chunk_GCN4OMYU();
|
|
4765
4762
|
init_libphonenumber_js();
|
|
4766
4763
|
AbilitiesApi = class extends BaseApiClient {
|
|
@@ -7513,6 +7510,11 @@ var init_chunk_7ABBH5CC = __esm({
|
|
|
7513
7510
|
}
|
|
7514
7511
|
};
|
|
7515
7512
|
SlackAppsApi = class extends BaseApiClient {
|
|
7513
|
+
async removeSlackAccount(wid, appId, credentialId) {
|
|
7514
|
+
return this.fetch(`w/${wid}/app-connections/slack/apps/${appId}/accounts/${credentialId}`, {
|
|
7515
|
+
method: "DELETE"
|
|
7516
|
+
});
|
|
7517
|
+
}
|
|
7516
7518
|
async removeSlackInstallation(wid, appId, installationId) {
|
|
7517
7519
|
return this.fetch(
|
|
7518
7520
|
`w/${wid}/app-connections/slack/apps/${appId}/installations/${installationId}`,
|
|
@@ -7531,6 +7533,8 @@ var init_chunk_7ABBH5CC = __esm({
|
|
|
7531
7533
|
const params = new URLSearchParams();
|
|
7532
7534
|
if (options.appId) params.set("appId", String(options.appId));
|
|
7533
7535
|
if (options.workflowId) params.set("workflowId", String(options.workflowId));
|
|
7536
|
+
if (options.offset !== void 0) params.set("offset", String(options.offset));
|
|
7537
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
7534
7538
|
return this.fetch(`w/${wid}/app-connections/slack/entry-points?${params}`);
|
|
7535
7539
|
}
|
|
7536
7540
|
async connectSlackEntryPoint(wid, data) {
|
|
@@ -7549,6 +7553,9 @@ var init_chunk_7ABBH5CC = __esm({
|
|
|
7549
7553
|
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
7550
7554
|
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
7551
7555
|
if (options.search) params.append("search", options.search);
|
|
7556
|
+
if (options.agentId !== void 0) params.set("agentId", String(options.agentId));
|
|
7557
|
+
if (options.workflowId !== void 0) params.set("workflowId", String(options.workflowId));
|
|
7558
|
+
if (options.managed !== void 0) params.set("managed", String(options.managed));
|
|
7552
7559
|
return this.fetch(
|
|
7553
7560
|
`w/${wid}/app-connections/slack/apps${params.toString() ? `?${params.toString()}` : ""}`
|
|
7554
7561
|
);
|
|
@@ -7616,6 +7623,8 @@ var init_chunk_7ABBH5CC = __esm({
|
|
|
7616
7623
|
const params = new URLSearchParams();
|
|
7617
7624
|
if (options.page) params.append("page", options.page.toString());
|
|
7618
7625
|
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
7626
|
+
if (options.teamId) params.set("teamId", options.teamId);
|
|
7627
|
+
if (options.search) params.set("search", options.search);
|
|
7619
7628
|
return this.fetch(
|
|
7620
7629
|
`w/${wid}/app-connections/slack/apps/${appId}/accounts${params.toString() ? `?${params.toString()}` : ""}`
|
|
7621
7630
|
);
|
|
@@ -9683,37 +9692,6 @@ var init_chunk_7ABBH5CC = __esm({
|
|
|
9683
9692
|
}
|
|
9684
9693
|
);
|
|
9685
9694
|
}
|
|
9686
|
-
// ===== Member Memories =====
|
|
9687
|
-
async getMemberMemories(wid, memberId, options) {
|
|
9688
|
-
const params = new URLSearchParams();
|
|
9689
|
-
if (options?.type) params.append("type", options.type);
|
|
9690
|
-
if (options?.query) params.append("query", options.query);
|
|
9691
|
-
if (options?.limit) params.append("limit", options.limit.toString());
|
|
9692
|
-
const qs = params.toString();
|
|
9693
|
-
return this.fetch(
|
|
9694
|
-
`w/${wid}/members/${memberId}/memories${qs ? `?${qs}` : ""}`
|
|
9695
|
-
);
|
|
9696
|
-
}
|
|
9697
|
-
async getMemberMemory(wid, memberId, key) {
|
|
9698
|
-
return this.fetch(
|
|
9699
|
-
`w/${wid}/members/${memberId}/memories/${encodeURIComponent(key)}`
|
|
9700
|
-
);
|
|
9701
|
-
}
|
|
9702
|
-
async createMemberMemory(wid, memberId, body) {
|
|
9703
|
-
return this.fetch(`w/${wid}/members/${memberId}/memories`, {
|
|
9704
|
-
method: "POST",
|
|
9705
|
-
body: JSON.stringify(body)
|
|
9706
|
-
});
|
|
9707
|
-
}
|
|
9708
|
-
async deleteMemberMemory(wid, memberId, memoryKey, options) {
|
|
9709
|
-
const params = new URLSearchParams();
|
|
9710
|
-
if (options?.type) params.append("type", options.type);
|
|
9711
|
-
const qs = params.toString();
|
|
9712
|
-
await this.fetch(
|
|
9713
|
-
`w/${wid}/members/${memberId}/memories/${encodeURIComponent(memoryKey)}${qs ? `?${qs}` : ""}`,
|
|
9714
|
-
{ method: "DELETE" }
|
|
9715
|
-
);
|
|
9716
|
-
}
|
|
9717
9695
|
/** Bulk-create members in a workspace. */
|
|
9718
9696
|
async bulkCreateMembers(wid, request) {
|
|
9719
9697
|
return this.fetch(`w/${wid}/members/bulk`, {
|
|
@@ -16028,7 +16006,6 @@ var init_chunk_7ABBH5CC = __esm({
|
|
|
16028
16006
|
"createMemberField",
|
|
16029
16007
|
"createMemberFilter",
|
|
16030
16008
|
"createMemberLabel",
|
|
16031
|
-
"createMemberMemory",
|
|
16032
16009
|
"createMemberRelationship",
|
|
16033
16010
|
"createMemberRole",
|
|
16034
16011
|
"createMenuItem",
|
|
@@ -16098,7 +16075,6 @@ var init_chunk_7ABBH5CC = __esm({
|
|
|
16098
16075
|
"deleteMemberField",
|
|
16099
16076
|
"deleteMemberFilter",
|
|
16100
16077
|
"deleteMemberLabel",
|
|
16101
|
-
"deleteMemberMemory",
|
|
16102
16078
|
"deleteMemberRole",
|
|
16103
16079
|
"deleteMenuItem",
|
|
16104
16080
|
"deleteMondayConnection",
|
|
@@ -16434,8 +16410,6 @@ var init_chunk_7ABBH5CC = __esm({
|
|
|
16434
16410
|
"getMemberLabel",
|
|
16435
16411
|
"getMemberLabelByUuid",
|
|
16436
16412
|
"getMemberLabels",
|
|
16437
|
-
"getMemberMemories",
|
|
16438
|
-
"getMemberMemory",
|
|
16439
16413
|
"getMemberRecordCounts",
|
|
16440
16414
|
"getMemberRelationships",
|
|
16441
16415
|
"getMemberRole",
|
|
@@ -16519,6 +16493,7 @@ var init_chunk_7ABBH5CC = __esm({
|
|
|
16519
16493
|
"getSlackAppAccounts",
|
|
16520
16494
|
"getSlackApps",
|
|
16521
16495
|
"getSlackInstallations",
|
|
16496
|
+
"removeSlackAccount",
|
|
16522
16497
|
"removeSlackInstallation",
|
|
16523
16498
|
"getSlackThreads",
|
|
16524
16499
|
"getStepMemberCounts",
|
|
@@ -17062,10 +17037,6 @@ var init_chunk_7ABBH5CC = __esm({
|
|
|
17062
17037
|
resolveAnonymousMember;
|
|
17063
17038
|
expireAnonymousMember;
|
|
17064
17039
|
// Member Memories
|
|
17065
|
-
getMemberMemories;
|
|
17066
|
-
getMemberMemory;
|
|
17067
|
-
createMemberMemory;
|
|
17068
|
-
deleteMemberMemory;
|
|
17069
17040
|
// Member Sync Links
|
|
17070
17041
|
getMemberSyncLinks;
|
|
17071
17042
|
// Member Relationships
|
|
@@ -17897,6 +17868,7 @@ var init_chunk_7ABBH5CC = __esm({
|
|
|
17897
17868
|
deleteSlackApp;
|
|
17898
17869
|
getSlackThreads;
|
|
17899
17870
|
getSlackInstallations;
|
|
17871
|
+
removeSlackAccount;
|
|
17900
17872
|
removeSlackInstallation;
|
|
17901
17873
|
getSlackChannelChoices;
|
|
17902
17874
|
getSlackEntryPoints;
|
|
@@ -18381,7 +18353,7 @@ var init_chunk_6KPGCPGW = __esm({
|
|
|
18381
18353
|
var SEARCHABLE_EVENT_RULE_SOURCE_FIELDS, ActivityEventType, EntityKind;
|
|
18382
18354
|
var init_dist = __esm({
|
|
18383
18355
|
"../sdk/dist/index.js"() {
|
|
18384
|
-
|
|
18356
|
+
init_chunk_VBG6XUBN();
|
|
18385
18357
|
init_chunk_D5VNVTUQ();
|
|
18386
18358
|
init_chunk_6KPGCPGW();
|
|
18387
18359
|
init_chunk_GCN4OMYU();
|
|
@@ -21197,7 +21169,7 @@ var init_config = __esm({
|
|
|
21197
21169
|
|
|
21198
21170
|
// ../../node_modules/graceful-fs/polyfills.js
|
|
21199
21171
|
var require_polyfills = __commonJS({
|
|
21200
|
-
"../../node_modules/graceful-fs/polyfills.js"(exports
|
|
21172
|
+
"../../node_modules/graceful-fs/polyfills.js"(exports, module) {
|
|
21201
21173
|
var constants = __require("constants");
|
|
21202
21174
|
var origCwd = process.cwd;
|
|
21203
21175
|
var cwd = null;
|
|
@@ -21485,7 +21457,7 @@ var require_polyfills = __commonJS({
|
|
|
21485
21457
|
|
|
21486
21458
|
// ../../node_modules/graceful-fs/legacy-streams.js
|
|
21487
21459
|
var require_legacy_streams = __commonJS({
|
|
21488
|
-
"../../node_modules/graceful-fs/legacy-streams.js"(exports
|
|
21460
|
+
"../../node_modules/graceful-fs/legacy-streams.js"(exports, module) {
|
|
21489
21461
|
var Stream = __require("stream").Stream;
|
|
21490
21462
|
module.exports = legacy;
|
|
21491
21463
|
function legacy(fs3) {
|
|
@@ -21581,7 +21553,7 @@ var require_legacy_streams = __commonJS({
|
|
|
21581
21553
|
|
|
21582
21554
|
// ../../node_modules/graceful-fs/clone.js
|
|
21583
21555
|
var require_clone = __commonJS({
|
|
21584
|
-
"../../node_modules/graceful-fs/clone.js"(exports
|
|
21556
|
+
"../../node_modules/graceful-fs/clone.js"(exports, module) {
|
|
21585
21557
|
module.exports = clone;
|
|
21586
21558
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
21587
21559
|
return obj.__proto__;
|
|
@@ -21603,7 +21575,7 @@ var require_clone = __commonJS({
|
|
|
21603
21575
|
|
|
21604
21576
|
// ../../node_modules/graceful-fs/graceful-fs.js
|
|
21605
21577
|
var require_graceful_fs = __commonJS({
|
|
21606
|
-
"../../node_modules/graceful-fs/graceful-fs.js"(exports
|
|
21578
|
+
"../../node_modules/graceful-fs/graceful-fs.js"(exports, module) {
|
|
21607
21579
|
var fs3 = __require("fs");
|
|
21608
21580
|
var polyfills = require_polyfills();
|
|
21609
21581
|
var legacy = require_legacy_streams();
|
|
@@ -21973,7 +21945,7 @@ var require_graceful_fs = __commonJS({
|
|
|
21973
21945
|
|
|
21974
21946
|
// ../../node_modules/proper-lockfile/node_modules/retry/lib/retry_operation.js
|
|
21975
21947
|
var require_retry_operation = __commonJS({
|
|
21976
|
-
"../../node_modules/proper-lockfile/node_modules/retry/lib/retry_operation.js"(exports
|
|
21948
|
+
"../../node_modules/proper-lockfile/node_modules/retry/lib/retry_operation.js"(exports, module) {
|
|
21977
21949
|
function RetryOperation(timeouts, options) {
|
|
21978
21950
|
if (typeof options === "boolean") {
|
|
21979
21951
|
options = { forever: options };
|
|
@@ -22104,17 +22076,17 @@ var require_retry_operation = __commonJS({
|
|
|
22104
22076
|
|
|
22105
22077
|
// ../../node_modules/proper-lockfile/node_modules/retry/lib/retry.js
|
|
22106
22078
|
var require_retry = __commonJS({
|
|
22107
|
-
"../../node_modules/proper-lockfile/node_modules/retry/lib/retry.js"(exports
|
|
22079
|
+
"../../node_modules/proper-lockfile/node_modules/retry/lib/retry.js"(exports) {
|
|
22108
22080
|
var RetryOperation = require_retry_operation();
|
|
22109
|
-
exports
|
|
22110
|
-
var timeouts = exports
|
|
22081
|
+
exports.operation = function(options) {
|
|
22082
|
+
var timeouts = exports.timeouts(options);
|
|
22111
22083
|
return new RetryOperation(timeouts, {
|
|
22112
22084
|
forever: options && options.forever,
|
|
22113
22085
|
unref: options && options.unref,
|
|
22114
22086
|
maxRetryTime: options && options.maxRetryTime
|
|
22115
22087
|
});
|
|
22116
22088
|
};
|
|
22117
|
-
exports
|
|
22089
|
+
exports.timeouts = function(options) {
|
|
22118
22090
|
if (options instanceof Array) {
|
|
22119
22091
|
return [].concat(options);
|
|
22120
22092
|
}
|
|
@@ -22143,13 +22115,13 @@ var require_retry = __commonJS({
|
|
|
22143
22115
|
});
|
|
22144
22116
|
return timeouts;
|
|
22145
22117
|
};
|
|
22146
|
-
exports
|
|
22118
|
+
exports.createTimeout = function(attempt, opts) {
|
|
22147
22119
|
var random = opts.randomize ? Math.random() + 1 : 1;
|
|
22148
22120
|
var timeout = Math.round(random * opts.minTimeout * Math.pow(opts.factor, attempt));
|
|
22149
22121
|
timeout = Math.min(timeout, opts.maxTimeout);
|
|
22150
22122
|
return timeout;
|
|
22151
22123
|
};
|
|
22152
|
-
exports
|
|
22124
|
+
exports.wrap = function(obj, options, methods) {
|
|
22153
22125
|
if (options instanceof Array) {
|
|
22154
22126
|
methods = options;
|
|
22155
22127
|
options = null;
|
|
@@ -22166,7 +22138,7 @@ var require_retry = __commonJS({
|
|
|
22166
22138
|
var method = methods[i];
|
|
22167
22139
|
var original = obj[method];
|
|
22168
22140
|
obj[method] = function retryWrapper(original2) {
|
|
22169
|
-
var op = exports
|
|
22141
|
+
var op = exports.operation(options);
|
|
22170
22142
|
var args = Array.prototype.slice.call(arguments, 1);
|
|
22171
22143
|
var callback = args.pop();
|
|
22172
22144
|
args.push(function(err) {
|
|
@@ -22190,14 +22162,14 @@ var require_retry = __commonJS({
|
|
|
22190
22162
|
|
|
22191
22163
|
// ../../node_modules/proper-lockfile/node_modules/retry/index.js
|
|
22192
22164
|
var require_retry2 = __commonJS({
|
|
22193
|
-
"../../node_modules/proper-lockfile/node_modules/retry/index.js"(exports
|
|
22165
|
+
"../../node_modules/proper-lockfile/node_modules/retry/index.js"(exports, module) {
|
|
22194
22166
|
module.exports = require_retry();
|
|
22195
22167
|
}
|
|
22196
22168
|
});
|
|
22197
22169
|
|
|
22198
22170
|
// ../../node_modules/signal-exit/signals.js
|
|
22199
22171
|
var require_signals = __commonJS({
|
|
22200
|
-
"../../node_modules/signal-exit/signals.js"(exports
|
|
22172
|
+
"../../node_modules/signal-exit/signals.js"(exports, module) {
|
|
22201
22173
|
module.exports = [
|
|
22202
22174
|
"SIGABRT",
|
|
22203
22175
|
"SIGALRM",
|
|
@@ -22234,7 +22206,7 @@ var require_signals = __commonJS({
|
|
|
22234
22206
|
|
|
22235
22207
|
// ../../node_modules/signal-exit/index.js
|
|
22236
22208
|
var require_signal_exit = __commonJS({
|
|
22237
|
-
"../../node_modules/signal-exit/index.js"(exports
|
|
22209
|
+
"../../node_modules/signal-exit/index.js"(exports, module) {
|
|
22238
22210
|
var process2 = global.process;
|
|
22239
22211
|
var processOk = function(process3) {
|
|
22240
22212
|
return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
|
|
@@ -22393,7 +22365,7 @@ var require_signal_exit = __commonJS({
|
|
|
22393
22365
|
|
|
22394
22366
|
// ../../node_modules/proper-lockfile/lib/mtime-precision.js
|
|
22395
22367
|
var require_mtime_precision = __commonJS({
|
|
22396
|
-
"../../node_modules/proper-lockfile/lib/mtime-precision.js"(exports
|
|
22368
|
+
"../../node_modules/proper-lockfile/lib/mtime-precision.js"(exports, module) {
|
|
22397
22369
|
var cacheSymbol = /* @__PURE__ */ Symbol();
|
|
22398
22370
|
function probe(file, fs3, callback) {
|
|
22399
22371
|
const cachedPrecision = fs3[cacheSymbol];
|
|
@@ -22434,7 +22406,7 @@ var require_mtime_precision = __commonJS({
|
|
|
22434
22406
|
|
|
22435
22407
|
// ../../node_modules/proper-lockfile/lib/lockfile.js
|
|
22436
22408
|
var require_lockfile = __commonJS({
|
|
22437
|
-
"../../node_modules/proper-lockfile/lib/lockfile.js"(exports
|
|
22409
|
+
"../../node_modules/proper-lockfile/lib/lockfile.js"(exports, module) {
|
|
22438
22410
|
var path4 = __require("path");
|
|
22439
22411
|
var fs3 = require_graceful_fs();
|
|
22440
22412
|
var retry = require_retry2();
|
|
@@ -22670,7 +22642,7 @@ var require_lockfile = __commonJS({
|
|
|
22670
22642
|
|
|
22671
22643
|
// ../../node_modules/proper-lockfile/lib/adapter.js
|
|
22672
22644
|
var require_adapter = __commonJS({
|
|
22673
|
-
"../../node_modules/proper-lockfile/lib/adapter.js"(exports
|
|
22645
|
+
"../../node_modules/proper-lockfile/lib/adapter.js"(exports, module) {
|
|
22674
22646
|
var fs3 = require_graceful_fs();
|
|
22675
22647
|
function createSyncFs(fs4) {
|
|
22676
22648
|
const methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"];
|
|
@@ -22734,7 +22706,7 @@ var require_adapter = __commonJS({
|
|
|
22734
22706
|
|
|
22735
22707
|
// ../../node_modules/proper-lockfile/index.js
|
|
22736
22708
|
var require_proper_lockfile = __commonJS({
|
|
22737
|
-
"../../node_modules/proper-lockfile/index.js"(exports
|
|
22709
|
+
"../../node_modules/proper-lockfile/index.js"(exports, module) {
|
|
22738
22710
|
var lockfile2 = require_lockfile();
|
|
22739
22711
|
var { toPromise, toSync, toSyncOptions } = require_adapter();
|
|
22740
22712
|
async function lock(file, options) {
|
|
@@ -22773,7 +22745,7 @@ var init_package = __esm({
|
|
|
22773
22745
|
"package.json"() {
|
|
22774
22746
|
package_default = {
|
|
22775
22747
|
name: "@gravity-rail/cli",
|
|
22776
|
-
version: "0.
|
|
22748
|
+
version: "1.0.0",
|
|
22777
22749
|
description: "Gravity Rail CLI \u2014 manage workspaces from the command line",
|
|
22778
22750
|
type: "module",
|
|
22779
22751
|
bin: {
|
|
@@ -22831,7 +22803,7 @@ var init_package = __esm({
|
|
|
22831
22803
|
"@types/proper-lockfile": "^4.1.4",
|
|
22832
22804
|
jest: "^30.5.2",
|
|
22833
22805
|
"ts-jest": "29.4.9",
|
|
22834
|
-
tsup: "^
|
|
22806
|
+
tsup: "^9.0.0",
|
|
22835
22807
|
typescript: "^6.0.3",
|
|
22836
22808
|
undici: "6.28.1"
|
|
22837
22809
|
}
|
|
@@ -26561,7 +26533,7 @@ var chatsDomain = {
|
|
|
26561
26533
|
handler: async ({ ctx, workspace, args }) => {
|
|
26562
26534
|
const chatId = requireNumber(args, "id");
|
|
26563
26535
|
const authed = requireAuth(ctx);
|
|
26564
|
-
const
|
|
26536
|
+
const truncate = (content) => {
|
|
26565
26537
|
const text = typeof content === "string" ? content : JSON.stringify(content);
|
|
26566
26538
|
return text.slice(0, 200);
|
|
26567
26539
|
};
|
|
@@ -26583,7 +26555,7 @@ var chatsDomain = {
|
|
|
26583
26555
|
messages: messages2.map((m) => ({
|
|
26584
26556
|
id: m.id,
|
|
26585
26557
|
role: m.role,
|
|
26586
|
-
content:
|
|
26558
|
+
content: truncate(m.content)
|
|
26587
26559
|
}))
|
|
26588
26560
|
},
|
|
26589
26561
|
ctx
|
|
@@ -36851,6 +36823,7 @@ function bareLabel(ref) {
|
|
|
36851
36823
|
return `${ref.kind}:${shortUuid(ref.uuid)}`;
|
|
36852
36824
|
}
|
|
36853
36825
|
var MAX_REFS_PER_BATCH = 500;
|
|
36826
|
+
var MAX_WORKSPACES_PER_BATCH = 25;
|
|
36854
36827
|
function batchResolution(ref, entry) {
|
|
36855
36828
|
if (entry.status === "resolved") {
|
|
36856
36829
|
return { label: entry.label || bareLabel(ref), status: "resolved" };
|
|
@@ -36945,28 +36918,40 @@ var ActivityRefResolver = class {
|
|
|
36945
36918
|
/**
|
|
36946
36919
|
* One org call per chunk, each carrying whole workspace groups.
|
|
36947
36920
|
*
|
|
36948
|
-
* The server
|
|
36949
|
-
*
|
|
36950
|
-
*
|
|
36951
|
-
*
|
|
36921
|
+
* The server caps a grouped request at both 500 refs and 25 workspaces, and
|
|
36922
|
+
* accepts each workspace at most once per request. So a group larger than
|
|
36923
|
+
* the ref cap is split across requests, smaller groups ride together until
|
|
36924
|
+
* the next one would not fit either bound, and no request names a workspace
|
|
36925
|
+
* twice.
|
|
36952
36926
|
*/
|
|
36953
36927
|
async primeOrg(orgUuid, groups) {
|
|
36954
36928
|
const chunks = [];
|
|
36955
|
-
let current =
|
|
36956
|
-
let
|
|
36929
|
+
let current = /* @__PURE__ */ new Map();
|
|
36930
|
+
let refsInChunk = 0;
|
|
36931
|
+
const flush = () => {
|
|
36932
|
+
if (current.size === 0) return;
|
|
36933
|
+
chunks.push(
|
|
36934
|
+
[...current].map(
|
|
36935
|
+
([workspaceUuid, refs]) => [workspaceUuid, refs]
|
|
36936
|
+
)
|
|
36937
|
+
);
|
|
36938
|
+
current = /* @__PURE__ */ new Map();
|
|
36939
|
+
refsInChunk = 0;
|
|
36940
|
+
};
|
|
36957
36941
|
for (const [workspaceUuid, refs] of groups) {
|
|
36958
|
-
for (let start = 0; start < refs.length;
|
|
36959
|
-
|
|
36960
|
-
|
|
36961
|
-
chunks.push(current);
|
|
36962
|
-
current = [];
|
|
36963
|
-
size = 0;
|
|
36942
|
+
for (let start = 0; start < refs.length; ) {
|
|
36943
|
+
if (!current.has(workspaceUuid) && current.size === MAX_WORKSPACES_PER_BATCH) {
|
|
36944
|
+
flush();
|
|
36964
36945
|
}
|
|
36965
|
-
|
|
36966
|
-
|
|
36946
|
+
const room = MAX_REFS_PER_BATCH - refsInChunk;
|
|
36947
|
+
const slice = refs.slice(start, start + room);
|
|
36948
|
+
current.set(workspaceUuid, slice);
|
|
36949
|
+
refsInChunk += slice.length;
|
|
36950
|
+
start += slice.length;
|
|
36951
|
+
if (refsInChunk === MAX_REFS_PER_BATCH) flush();
|
|
36967
36952
|
}
|
|
36968
36953
|
}
|
|
36969
|
-
|
|
36954
|
+
flush();
|
|
36970
36955
|
for (const chunk of chunks) {
|
|
36971
36956
|
const key = `org:${orgUuid}|${chunk.map(
|
|
36972
36957
|
([workspaceUuid, refs]) => `${workspaceUuid}:${refs.map((ref) => `${ref.kind}|${ref.uuid}`).sort().join(",")}`
|
|
@@ -38865,132 +38850,9 @@ var toolkitsDomain = {
|
|
|
38865
38850
|
]
|
|
38866
38851
|
};
|
|
38867
38852
|
|
|
38868
|
-
// src/domains/member-memories.ts
|
|
38869
|
-
init_output();
|
|
38870
|
-
init_pagination();
|
|
38871
|
-
init_context();
|
|
38872
|
-
var COLUMNS22 = [
|
|
38873
|
-
{ header: "KEY", getValue: (item) => item.key ?? "" },
|
|
38874
|
-
{ header: "TYPE", getValue: (item) => item.type ?? "basic" },
|
|
38875
|
-
{ header: "DESCRIPTION", getValue: (item) => truncate(item.description ?? "", 60) },
|
|
38876
|
-
{ header: "PRIORITY", getValue: (item) => item.priority ?? 0 },
|
|
38877
|
-
{ header: "UPDATED", getValue: (item) => item.updatedAt ?? item.createdAt ?? "" }
|
|
38878
|
-
];
|
|
38879
|
-
function truncate(s, max) {
|
|
38880
|
-
return s.length > max ? s.slice(0, max - 1) + "\u2026" : s;
|
|
38881
|
-
}
|
|
38882
|
-
var memberMemoriesDomain = {
|
|
38883
|
-
name: "member-memories",
|
|
38884
|
-
description: "Manage member persistent memories",
|
|
38885
|
-
commands: [
|
|
38886
|
-
{
|
|
38887
|
-
path: ["member-memories", "list"],
|
|
38888
|
-
description: "List memories for a member",
|
|
38889
|
-
requiresWorkspace: true,
|
|
38890
|
-
args: [
|
|
38891
|
-
{ name: "member-id", description: "Member ID", required: true },
|
|
38892
|
-
{
|
|
38893
|
-
name: "type",
|
|
38894
|
-
description: "Memory type filter (basic, preferences, semantic, summaries, episodic, all)"
|
|
38895
|
-
},
|
|
38896
|
-
{ name: "query", description: "Semantic search query (for AgentCore memory types)" }
|
|
38897
|
-
],
|
|
38898
|
-
handler: async ({ ctx, workspace, args }) => {
|
|
38899
|
-
const memberId = requireNumber(args, "member-id");
|
|
38900
|
-
const type = args.type;
|
|
38901
|
-
const query = args.query;
|
|
38902
|
-
const result2 = await requireAuth(ctx).apiClient.getMemberMemories(workspace, memberId, {
|
|
38903
|
-
type,
|
|
38904
|
-
query
|
|
38905
|
-
});
|
|
38906
|
-
outputData(listResult(result2, false), ctx, COLUMNS22);
|
|
38907
|
-
}
|
|
38908
|
-
},
|
|
38909
|
-
{
|
|
38910
|
-
path: ["member-memories", "get"],
|
|
38911
|
-
description: "Get a single memory by key",
|
|
38912
|
-
requiresWorkspace: true,
|
|
38913
|
-
args: [
|
|
38914
|
-
{ name: "member-id", description: "Member ID", required: true },
|
|
38915
|
-
{ name: "key", description: "Memory key", required: true }
|
|
38916
|
-
],
|
|
38917
|
-
handler: async ({ ctx, workspace, args }) => {
|
|
38918
|
-
const memberId = requireNumber(args, "member-id");
|
|
38919
|
-
const key = requireString(args, "key");
|
|
38920
|
-
const result2 = await requireAuth(ctx).apiClient.getMemberMemory(
|
|
38921
|
-
workspace,
|
|
38922
|
-
memberId,
|
|
38923
|
-
key
|
|
38924
|
-
);
|
|
38925
|
-
outputData(result2, ctx, COLUMNS22);
|
|
38926
|
-
}
|
|
38927
|
-
},
|
|
38928
|
-
{
|
|
38929
|
-
path: ["member-memories", "create"],
|
|
38930
|
-
description: "Create a memory for a member",
|
|
38931
|
-
mutates: true,
|
|
38932
|
-
requiresWorkspace: true,
|
|
38933
|
-
args: [
|
|
38934
|
-
{ name: "member-id", description: "Member ID", required: true },
|
|
38935
|
-
{ name: "key", description: "Memory key", required: true },
|
|
38936
|
-
{ name: "description", description: "Memory description", required: true },
|
|
38937
|
-
{ name: "content", description: "Memory content" },
|
|
38938
|
-
{ name: "priority", description: "Memory priority" }
|
|
38939
|
-
],
|
|
38940
|
-
handler: async ({ ctx, workspace, args }) => {
|
|
38941
|
-
const memberId = requireNumber(args, "member-id");
|
|
38942
|
-
const key = requireString(args, "key");
|
|
38943
|
-
const description = requireString(args, "description");
|
|
38944
|
-
const content = args.content;
|
|
38945
|
-
const priority = args.priority !== void 0 ? Number(args.priority) : void 0;
|
|
38946
|
-
const result2 = await requireAuth(ctx).apiClient.createMemberMemory(
|
|
38947
|
-
workspace,
|
|
38948
|
-
memberId,
|
|
38949
|
-
{
|
|
38950
|
-
key,
|
|
38951
|
-
description,
|
|
38952
|
-
...content !== void 0 && { content },
|
|
38953
|
-
...priority !== void 0 && { priority }
|
|
38954
|
-
}
|
|
38955
|
-
);
|
|
38956
|
-
outputData(result2, ctx, COLUMNS22);
|
|
38957
|
-
}
|
|
38958
|
-
},
|
|
38959
|
-
{
|
|
38960
|
-
path: ["member-memories", "delete"],
|
|
38961
|
-
description: "Delete a memory for a member",
|
|
38962
|
-
mutates: true,
|
|
38963
|
-
requiresWorkspace: true,
|
|
38964
|
-
args: [
|
|
38965
|
-
{ name: "member-id", description: "Member ID", required: true },
|
|
38966
|
-
{ name: "key", description: "Memory key", required: true },
|
|
38967
|
-
{
|
|
38968
|
-
name: "type",
|
|
38969
|
-
// The API refuses preferences and semantic deletes (a Member cannot
|
|
38970
|
-
// be shown to own those AgentCore records), so they are not offered.
|
|
38971
|
-
description: "Memory type (basic, summaries, episodic)"
|
|
38972
|
-
}
|
|
38973
|
-
],
|
|
38974
|
-
handler: async ({ ctx, workspace, args }) => {
|
|
38975
|
-
const memberId = requireNumber(args, "member-id");
|
|
38976
|
-
const key = requireString(args, "key");
|
|
38977
|
-
const type = args.type;
|
|
38978
|
-
await requireAuth(ctx).apiClient.deleteMemberMemory(
|
|
38979
|
-
workspace,
|
|
38980
|
-
memberId,
|
|
38981
|
-
key,
|
|
38982
|
-
type ? { type } : void 0
|
|
38983
|
-
);
|
|
38984
|
-
process.stdout.write(`Deleted memory ${key}
|
|
38985
|
-
`);
|
|
38986
|
-
}
|
|
38987
|
-
}
|
|
38988
|
-
]
|
|
38989
|
-
};
|
|
38990
|
-
|
|
38991
38853
|
// src/domains/intervention-requests.ts
|
|
38992
38854
|
init_output();
|
|
38993
|
-
var
|
|
38855
|
+
var COLUMNS22 = [
|
|
38994
38856
|
COL.id(),
|
|
38995
38857
|
{ header: "KIND", getValue: (item) => item.kind ?? "" },
|
|
38996
38858
|
{ header: "CHAT", getValue: (item) => item.chatId ?? "" },
|
|
@@ -39031,7 +38893,7 @@ var interventionRequestsDomain = {
|
|
|
39031
38893
|
unroutedOnly: Boolean(args["unrouted"]),
|
|
39032
38894
|
limit: args["limit"] ? Number(args["limit"]) : void 0
|
|
39033
38895
|
});
|
|
39034
|
-
outputData2(result2, ctx,
|
|
38896
|
+
outputData2(result2, ctx, COLUMNS22);
|
|
39035
38897
|
}
|
|
39036
38898
|
}
|
|
39037
38899
|
]
|
|
@@ -39039,7 +38901,7 @@ var interventionRequestsDomain = {
|
|
|
39039
38901
|
|
|
39040
38902
|
// src/domains/notification-rules.ts
|
|
39041
38903
|
init_output();
|
|
39042
|
-
var
|
|
38904
|
+
var COLUMNS23 = [
|
|
39043
38905
|
COL.id(),
|
|
39044
38906
|
COL.name(),
|
|
39045
38907
|
{ header: "TYPE", getValue: (item) => item.noticeType ?? "" },
|
|
@@ -39056,7 +38918,7 @@ var notificationRulesDomain = {
|
|
|
39056
38918
|
createMethod: "createNotificationRule",
|
|
39057
38919
|
updateMethod: "updateNotificationRule",
|
|
39058
38920
|
deleteMethod: "deleteNotificationRule",
|
|
39059
|
-
columns:
|
|
38921
|
+
columns: COLUMNS23
|
|
39060
38922
|
})
|
|
39061
38923
|
]
|
|
39062
38924
|
};
|
|
@@ -39120,7 +38982,7 @@ var oauthDomain = {
|
|
|
39120
38982
|
// src/domains/operator-groups.ts
|
|
39121
38983
|
init_output();
|
|
39122
38984
|
init_context();
|
|
39123
|
-
var
|
|
38985
|
+
var COLUMNS24 = [COL.id(), COL.name(), COL.description()];
|
|
39124
38986
|
var operatorGroupsDomain = {
|
|
39125
38987
|
name: "operator-groups",
|
|
39126
38988
|
description: "Manage operator groups",
|
|
@@ -39133,7 +38995,7 @@ var operatorGroupsDomain = {
|
|
|
39133
38995
|
createMethod: "createOperatorGroup",
|
|
39134
38996
|
updateMethod: "updateOperatorGroup",
|
|
39135
38997
|
deleteMethod: "deleteOperatorGroup",
|
|
39136
|
-
columns:
|
|
38998
|
+
columns: COLUMNS24
|
|
39137
38999
|
}),
|
|
39138
39000
|
{
|
|
39139
39001
|
path: ["operator-groups", "add-member"],
|
|
@@ -41329,7 +41191,7 @@ function requireCallerRole(args, flag) {
|
|
|
41329
41191
|
}
|
|
41330
41192
|
return role;
|
|
41331
41193
|
}
|
|
41332
|
-
var
|
|
41194
|
+
var COLUMNS25 = [
|
|
41333
41195
|
COL.id(),
|
|
41334
41196
|
{ header: "NUMBER", getValue: (item) => item.phoneNumber ?? item.number ?? "" },
|
|
41335
41197
|
{ header: "LABEL", getValue: (item) => item.label ?? item.name ?? "" },
|
|
@@ -41357,7 +41219,7 @@ var phoneNumbersDomain = {
|
|
|
41357
41219
|
entityName: "phone number",
|
|
41358
41220
|
listMethod: "getPhoneNumbers",
|
|
41359
41221
|
archiveMethod: "archivePhoneNumber",
|
|
41360
|
-
columns:
|
|
41222
|
+
columns: COLUMNS25
|
|
41361
41223
|
}),
|
|
41362
41224
|
{
|
|
41363
41225
|
path: ["phone-numbers", "get"],
|
|
@@ -41407,7 +41269,7 @@ ${PHONE_NUMBER_FIELD_REFERENCE}`,
|
|
|
41407
41269
|
);
|
|
41408
41270
|
const record2 = asPhoneRecord(result2);
|
|
41409
41271
|
const warnings = collectPhoneNumberWarnings(record2);
|
|
41410
|
-
outputData([record2], ctx,
|
|
41272
|
+
outputData([record2], ctx, COLUMNS25);
|
|
41411
41273
|
if (warnings.length > 0) {
|
|
41412
41274
|
process.stderr.write("\nWarnings after create:\n");
|
|
41413
41275
|
for (const w of warnings) {
|
|
@@ -41439,7 +41301,7 @@ ${PHONE_NUMBER_FIELD_REFERENCE}`,
|
|
|
41439
41301
|
id,
|
|
41440
41302
|
data
|
|
41441
41303
|
);
|
|
41442
|
-
outputData([result2], ctx,
|
|
41304
|
+
outputData([result2], ctx, COLUMNS25);
|
|
41443
41305
|
} catch (err) {
|
|
41444
41306
|
return enrichPhoneNumberApiError(err);
|
|
41445
41307
|
}
|
|
@@ -41728,7 +41590,7 @@ ${formatRoutingSimulation(sim, phone)}
|
|
|
41728
41590
|
requiresWorkspace: true,
|
|
41729
41591
|
handler: async ({ ctx, workspace }) => {
|
|
41730
41592
|
const result2 = await requireAuth(ctx).apiClient.getAvailablePhoneNumbers(workspace);
|
|
41731
|
-
outputData(result2, ctx,
|
|
41593
|
+
outputData(result2, ctx, COLUMNS25);
|
|
41732
41594
|
}
|
|
41733
41595
|
},
|
|
41734
41596
|
{
|
|
@@ -41753,7 +41615,7 @@ ${formatRoutingSimulation(sim, phone)}
|
|
|
41753
41615
|
const id = requireNumberFrom(args, "phone-number-id", "id");
|
|
41754
41616
|
const providerPhoneUuid = requireString(args, "provider-phone-uuid");
|
|
41755
41617
|
const result2 = await auth.apiClient.linkPhoneNumber(workspace, id, providerPhoneUuid);
|
|
41756
|
-
outputData([result2], auth,
|
|
41618
|
+
outputData([result2], auth, COLUMNS25);
|
|
41757
41619
|
}
|
|
41758
41620
|
},
|
|
41759
41621
|
{
|
|
@@ -41766,7 +41628,7 @@ ${formatRoutingSimulation(sim, phone)}
|
|
|
41766
41628
|
workspace,
|
|
41767
41629
|
data
|
|
41768
41630
|
);
|
|
41769
|
-
outputData([result2], ctx,
|
|
41631
|
+
outputData([result2], ctx, COLUMNS25);
|
|
41770
41632
|
}
|
|
41771
41633
|
},
|
|
41772
41634
|
{
|
|
@@ -41918,7 +41780,7 @@ function normalizePronunciationUpdatePayload(data) {
|
|
|
41918
41780
|
}
|
|
41919
41781
|
|
|
41920
41782
|
// src/domains/pronunciations.ts
|
|
41921
|
-
var
|
|
41783
|
+
var COLUMNS26 = [
|
|
41922
41784
|
COL.id(),
|
|
41923
41785
|
{ header: "TERM", getValue: (item) => item.term ?? "" },
|
|
41924
41786
|
{ header: "RESPELLING", getValue: (item) => item.respelling ?? "" },
|
|
@@ -41940,7 +41802,7 @@ var pronunciationsDomain = {
|
|
|
41940
41802
|
const auth = requireAuth(ctx);
|
|
41941
41803
|
const orgUuid = await resolveOrgUuidFromWorkspace(auth.apiClient, workspace);
|
|
41942
41804
|
const result2 = await auth.apiClient.getPronunciationEntries(orgUuid);
|
|
41943
|
-
outputData(result2, ctx,
|
|
41805
|
+
outputData(result2, ctx, COLUMNS26);
|
|
41944
41806
|
}
|
|
41945
41807
|
},
|
|
41946
41808
|
{
|
|
@@ -41954,7 +41816,7 @@ var pronunciationsDomain = {
|
|
|
41954
41816
|
const orgUuid = await resolveOrgUuidFromWorkspace(auth.apiClient, workspace);
|
|
41955
41817
|
const payload = normalizePronunciationCreatePayload(data);
|
|
41956
41818
|
const result2 = await auth.apiClient.createPronunciationEntry(orgUuid, payload);
|
|
41957
|
-
outputSingle(result2, ctx,
|
|
41819
|
+
outputSingle(result2, ctx, COLUMNS26);
|
|
41958
41820
|
}
|
|
41959
41821
|
},
|
|
41960
41822
|
{
|
|
@@ -41972,7 +41834,7 @@ var pronunciationsDomain = {
|
|
|
41972
41834
|
requireNumber(args, "id"),
|
|
41973
41835
|
payload
|
|
41974
41836
|
);
|
|
41975
|
-
outputSingle(result2, ctx,
|
|
41837
|
+
outputSingle(result2, ctx, COLUMNS26);
|
|
41976
41838
|
}
|
|
41977
41839
|
},
|
|
41978
41840
|
{
|
|
@@ -41996,7 +41858,7 @@ var pronunciationsDomain = {
|
|
|
41996
41858
|
requiresWorkspace: true,
|
|
41997
41859
|
handler: async ({ ctx }) => {
|
|
41998
41860
|
const result2 = await requireAuth(ctx).apiClient.getMyPronunciations();
|
|
41999
|
-
outputData(result2, ctx,
|
|
41861
|
+
outputData(result2, ctx, COLUMNS26);
|
|
42000
41862
|
}
|
|
42001
41863
|
},
|
|
42002
41864
|
{
|
|
@@ -42007,7 +41869,7 @@ var pronunciationsDomain = {
|
|
|
42007
41869
|
handler: async ({ ctx, data }) => {
|
|
42008
41870
|
const payload = normalizePronunciationCreatePayload(data);
|
|
42009
41871
|
const result2 = await requireAuth(ctx).apiClient.createMyPronunciation(payload);
|
|
42010
|
-
outputSingle(result2, ctx,
|
|
41872
|
+
outputSingle(result2, ctx, COLUMNS26);
|
|
42011
41873
|
}
|
|
42012
41874
|
},
|
|
42013
41875
|
{
|
|
@@ -42319,7 +42181,7 @@ ${ROUTINE_FIELD_REFERENCE}`,
|
|
|
42319
42181
|
// src/domains/subscriptions.ts
|
|
42320
42182
|
init_output();
|
|
42321
42183
|
init_context();
|
|
42322
|
-
var
|
|
42184
|
+
var COLUMNS27 = [
|
|
42323
42185
|
COL.id(),
|
|
42324
42186
|
COL.status(),
|
|
42325
42187
|
{ header: "PLAN", getValue: (item) => item.planName ?? item.plan ?? "" },
|
|
@@ -42335,7 +42197,7 @@ var subscriptionsDomain = {
|
|
|
42335
42197
|
requiresWorkspace: false,
|
|
42336
42198
|
handler: async ({ ctx }) => {
|
|
42337
42199
|
const result2 = await requireAuth(ctx).apiClient.getSubscriptions();
|
|
42338
|
-
outputData(result2, ctx,
|
|
42200
|
+
outputData(result2, ctx, COLUMNS27);
|
|
42339
42201
|
}
|
|
42340
42202
|
},
|
|
42341
42203
|
{
|
|
@@ -42344,7 +42206,7 @@ var subscriptionsDomain = {
|
|
|
42344
42206
|
requiresWorkspace: true,
|
|
42345
42207
|
handler: async ({ ctx, workspace }) => {
|
|
42346
42208
|
const result2 = await requireAuth(ctx).apiClient.getWorkspaceSubscriptions(workspace);
|
|
42347
|
-
outputData(result2, ctx,
|
|
42209
|
+
outputData(result2, ctx, COLUMNS27);
|
|
42348
42210
|
}
|
|
42349
42211
|
},
|
|
42350
42212
|
{
|
|
@@ -42357,7 +42219,7 @@ var subscriptionsDomain = {
|
|
|
42357
42219
|
const result2 = await requireAuth(ctx).apiClient.cancelSubscription(
|
|
42358
42220
|
requireNumber(args, "id")
|
|
42359
42221
|
);
|
|
42360
|
-
outputSingle(result2, ctx,
|
|
42222
|
+
outputSingle(result2, ctx, COLUMNS27);
|
|
42361
42223
|
}
|
|
42362
42224
|
},
|
|
42363
42225
|
{
|
|
@@ -42369,7 +42231,7 @@ var subscriptionsDomain = {
|
|
|
42369
42231
|
const result2 = await requireAuth(ctx).apiClient.reactivateSubscription(
|
|
42370
42232
|
requireNumber(args, "id")
|
|
42371
42233
|
);
|
|
42372
|
-
outputSingle(result2, ctx,
|
|
42234
|
+
outputSingle(result2, ctx, COLUMNS27);
|
|
42373
42235
|
}
|
|
42374
42236
|
},
|
|
42375
42237
|
{
|
|
@@ -42383,7 +42245,7 @@ var subscriptionsDomain = {
|
|
|
42383
42245
|
requireNumber(args, "id"),
|
|
42384
42246
|
data
|
|
42385
42247
|
);
|
|
42386
|
-
outputSingle(result2, ctx,
|
|
42248
|
+
outputSingle(result2, ctx, COLUMNS27);
|
|
42387
42249
|
}
|
|
42388
42250
|
}
|
|
42389
42251
|
]
|
|
@@ -42642,7 +42504,7 @@ var supportDomain = {
|
|
|
42642
42504
|
|
|
42643
42505
|
// src/domains/supervisors.ts
|
|
42644
42506
|
init_output();
|
|
42645
|
-
var
|
|
42507
|
+
var COLUMNS28 = [
|
|
42646
42508
|
COL.id(),
|
|
42647
42509
|
COL.name(),
|
|
42648
42510
|
{ header: "TYPE", getValue: (item) => item.type ?? "" },
|
|
@@ -42660,7 +42522,7 @@ var supervisorsDomain = {
|
|
|
42660
42522
|
createMethod: "createSupervisor",
|
|
42661
42523
|
updateMethod: "updateSupervisor",
|
|
42662
42524
|
deleteMethod: "deleteSupervisor",
|
|
42663
|
-
columns:
|
|
42525
|
+
columns: COLUMNS28
|
|
42664
42526
|
})
|
|
42665
42527
|
]
|
|
42666
42528
|
};
|
|
@@ -43069,7 +42931,7 @@ var widgetDomainsDomain = {
|
|
|
43069
42931
|
// src/domains/integrations/app-connections.ts
|
|
43070
42932
|
init_output();
|
|
43071
42933
|
init_context();
|
|
43072
|
-
var
|
|
42934
|
+
var COLUMNS29 = [
|
|
43073
42935
|
COL.id(),
|
|
43074
42936
|
COL.name(),
|
|
43075
42937
|
{ header: "TYPE", getValue: (item) => item.type ?? "" },
|
|
@@ -43110,7 +42972,7 @@ var appConnectionsDomain = {
|
|
|
43110
42972
|
requiresWorkspace: true,
|
|
43111
42973
|
handler: async ({ ctx, workspace }) => {
|
|
43112
42974
|
const result2 = await requireAuth(ctx).apiClient.listAvailableAppConnections(workspace);
|
|
43113
|
-
outputData(result2, ctx,
|
|
42975
|
+
outputData(result2, ctx, COLUMNS29);
|
|
43114
42976
|
}
|
|
43115
42977
|
},
|
|
43116
42978
|
{
|
|
@@ -43119,7 +42981,7 @@ var appConnectionsDomain = {
|
|
|
43119
42981
|
requiresWorkspace: true,
|
|
43120
42982
|
handler: async ({ ctx, workspace }) => {
|
|
43121
42983
|
const result2 = await requireAuth(ctx).apiClient.listAppConnections(workspace);
|
|
43122
|
-
outputData(result2, ctx,
|
|
42984
|
+
outputData(result2, ctx, COLUMNS29);
|
|
43123
42985
|
}
|
|
43124
42986
|
},
|
|
43125
42987
|
{
|
|
@@ -43143,7 +43005,7 @@ var appConnectionsDomain = {
|
|
|
43143
43005
|
const result2 = await requireAuth(ctx).apiClient.enablePlatformApp(workspace, {
|
|
43144
43006
|
slug: requireString(args, "slug")
|
|
43145
43007
|
});
|
|
43146
|
-
outputSingle(result2, ctx,
|
|
43008
|
+
outputSingle(result2, ctx, COLUMNS29);
|
|
43147
43009
|
}
|
|
43148
43010
|
},
|
|
43149
43011
|
{
|
|
@@ -43156,7 +43018,7 @@ var appConnectionsDomain = {
|
|
|
43156
43018
|
workspace,
|
|
43157
43019
|
requireString(args, "id")
|
|
43158
43020
|
);
|
|
43159
|
-
outputSingle(result2, ctx,
|
|
43021
|
+
outputSingle(result2, ctx, COLUMNS29);
|
|
43160
43022
|
}
|
|
43161
43023
|
},
|
|
43162
43024
|
{
|
|
@@ -43171,7 +43033,7 @@ var appConnectionsDomain = {
|
|
|
43171
43033
|
requireString(args, "id"),
|
|
43172
43034
|
data
|
|
43173
43035
|
);
|
|
43174
|
-
outputSingle(result2, ctx,
|
|
43036
|
+
outputSingle(result2, ctx, COLUMNS29);
|
|
43175
43037
|
}
|
|
43176
43038
|
},
|
|
43177
43039
|
{
|
|
@@ -43518,7 +43380,7 @@ var confluenceDomain = {
|
|
|
43518
43380
|
// src/domains/integrations/discord-bots.ts
|
|
43519
43381
|
init_output();
|
|
43520
43382
|
init_context();
|
|
43521
|
-
var
|
|
43383
|
+
var COLUMNS30 = [COL.id(), COL.name(), COL.status()];
|
|
43522
43384
|
var discordBotsDomain = {
|
|
43523
43385
|
name: "discord-bots",
|
|
43524
43386
|
description: "Manage Discord bot integrations",
|
|
@@ -43531,7 +43393,7 @@ var discordBotsDomain = {
|
|
|
43531
43393
|
createMethod: "createDiscordBot",
|
|
43532
43394
|
updateMethod: "updateDiscordBot",
|
|
43533
43395
|
deleteMethod: "deleteDiscordBot",
|
|
43534
|
-
columns:
|
|
43396
|
+
columns: COLUMNS30,
|
|
43535
43397
|
paginationSupport: "full"
|
|
43536
43398
|
}),
|
|
43537
43399
|
{
|
|
@@ -43593,7 +43455,7 @@ var discordBotsDomain = {
|
|
|
43593
43455
|
// src/domains/integrations/fhir-connections.ts
|
|
43594
43456
|
init_output();
|
|
43595
43457
|
init_context();
|
|
43596
|
-
var
|
|
43458
|
+
var COLUMNS31 = [
|
|
43597
43459
|
COL.id(),
|
|
43598
43460
|
COL.name(),
|
|
43599
43461
|
{ header: "URL", getValue: (item) => item.baseUrl ?? "" },
|
|
@@ -43644,7 +43506,7 @@ var fhirConnectionsDomain = {
|
|
|
43644
43506
|
createMethod: "createFhirConnection",
|
|
43645
43507
|
updateMethod: "updateFhirConnection",
|
|
43646
43508
|
deleteMethod: "deleteFhirConnection",
|
|
43647
|
-
columns:
|
|
43509
|
+
columns: COLUMNS31,
|
|
43648
43510
|
paginationSupport: "full"
|
|
43649
43511
|
}),
|
|
43650
43512
|
{
|
|
@@ -43697,7 +43559,7 @@ var fhirConnectionsDomain = {
|
|
|
43697
43559
|
init_context();
|
|
43698
43560
|
init_errors();
|
|
43699
43561
|
init_output();
|
|
43700
|
-
var
|
|
43562
|
+
var COLUMNS32 = [
|
|
43701
43563
|
{ header: "CONFIGURED", getValue: (i) => String(i.configured ?? false) },
|
|
43702
43564
|
{ header: "ENABLED", getValue: (i) => String(i.enabled ?? false) },
|
|
43703
43565
|
{ header: "HAS_KEY", getValue: (i) => String(i.hasApiKey ?? false) },
|
|
@@ -43726,7 +43588,7 @@ var patientSyncDomain = {
|
|
|
43726
43588
|
workspace,
|
|
43727
43589
|
data
|
|
43728
43590
|
);
|
|
43729
|
-
outputSingle(result2, ctx,
|
|
43591
|
+
outputSingle(result2, ctx, COLUMNS32);
|
|
43730
43592
|
}
|
|
43731
43593
|
},
|
|
43732
43594
|
{
|
|
@@ -43735,7 +43597,7 @@ var patientSyncDomain = {
|
|
|
43735
43597
|
requiresWorkspace: true,
|
|
43736
43598
|
handler: async ({ ctx, workspace }) => {
|
|
43737
43599
|
const result2 = await requireAuth(ctx).apiClient.getPatientSyncStatus(workspace);
|
|
43738
|
-
outputSingle(result2, ctx,
|
|
43600
|
+
outputSingle(result2, ctx, COLUMNS32);
|
|
43739
43601
|
}
|
|
43740
43602
|
},
|
|
43741
43603
|
{
|
|
@@ -45343,7 +45205,7 @@ var salesforceDomain = {
|
|
|
45343
45205
|
init_errors();
|
|
45344
45206
|
init_output();
|
|
45345
45207
|
init_context();
|
|
45346
|
-
var
|
|
45208
|
+
var COLUMNS33 = [COL.id(), COL.name(), COL.status()];
|
|
45347
45209
|
function addSlackUrls(data, apiUrl, workspaceUuid) {
|
|
45348
45210
|
const base = `${apiUrl}/api/v2/w/${workspaceUuid}/app-connections/slack`;
|
|
45349
45211
|
return {
|
|
@@ -45366,7 +45228,7 @@ var slackAppsDomain = {
|
|
|
45366
45228
|
entityName: "Slack app",
|
|
45367
45229
|
listMethod: "getSlackApps",
|
|
45368
45230
|
deleteMethod: "deleteSlackApp",
|
|
45369
|
-
columns:
|
|
45231
|
+
columns: COLUMNS33,
|
|
45370
45232
|
paginationSupport: "full"
|
|
45371
45233
|
}),
|
|
45372
45234
|
{
|
|
@@ -45455,7 +45317,7 @@ var slackAppsDomain = {
|
|
|
45455
45317
|
init_errors();
|
|
45456
45318
|
init_output();
|
|
45457
45319
|
init_context();
|
|
45458
|
-
var
|
|
45320
|
+
var COLUMNS34 = [COL.id(), COL.name(), COL.status()];
|
|
45459
45321
|
function addTeamsUrls(data, apiUrl, workspaceUuid) {
|
|
45460
45322
|
const base = `${apiUrl}/api/v2/w/${workspaceUuid}/app-connections/teams`;
|
|
45461
45323
|
return {
|
|
@@ -45476,7 +45338,7 @@ var teamsAppsDomain = {
|
|
|
45476
45338
|
entityName: "Teams app",
|
|
45477
45339
|
listMethod: "getTeamsApps",
|
|
45478
45340
|
deleteMethod: "deleteTeamsApp",
|
|
45479
|
-
columns:
|
|
45341
|
+
columns: COLUMNS34,
|
|
45480
45342
|
paginationSupport: "full"
|
|
45481
45343
|
}),
|
|
45482
45344
|
{
|
|
@@ -45616,7 +45478,6 @@ function registerPublicDomains(registry) {
|
|
|
45616
45478
|
registry.register(oauthDomain);
|
|
45617
45479
|
registry.register(conciergeDomain);
|
|
45618
45480
|
registry.register(docsDomain);
|
|
45619
|
-
registry.register(memberMemoriesDomain);
|
|
45620
45481
|
registry.register(syncDomain);
|
|
45621
45482
|
registry.register(widgetDomainsDomain);
|
|
45622
45483
|
registry.register(confluenceDomain);
|
|
@@ -49805,7 +49666,7 @@ async function authImportDevCommand(ctx, args) {
|
|
|
49805
49666
|
|
|
49806
49667
|
// src/commands/organizations.ts
|
|
49807
49668
|
init_output();
|
|
49808
|
-
var
|
|
49669
|
+
var COLUMNS35 = [
|
|
49809
49670
|
{ header: "NAME", getValue: (o) => o.organizationName || "", maxWidth: 35 },
|
|
49810
49671
|
{ header: "SLUG", getValue: (o) => o.organizationSlug || "", maxWidth: 25 },
|
|
49811
49672
|
{ header: "UUID", getValue: (o) => o.organizationUuid },
|
|
@@ -49813,7 +49674,7 @@ var COLUMNS36 = [
|
|
|
49813
49674
|
];
|
|
49814
49675
|
async function organizationsListCommand(ctx, options = {}) {
|
|
49815
49676
|
const organizations = await ctx.apiClient.getMyOrganizations(options);
|
|
49816
|
-
outputData(organizations, ctx,
|
|
49677
|
+
outputData(organizations, ctx, COLUMNS35);
|
|
49817
49678
|
}
|
|
49818
49679
|
|
|
49819
49680
|
// src/commands/whoami.ts
|