@gravity-rail/cli 0.57.1 → 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-T7N53V35.js → account-verify-phone-EVQMBXZZ.js} +3 -3
- package/dist/{chunk-HNR2SIJP.js → chunk-3Y4XPU3N.js} +2 -2
- package/dist/{chunk-462YYQU5.js → chunk-TU6PCZD4.js} +2 -2
- package/dist/chunk-TU6PCZD4.js.map +1 -0
- package/dist/cli-utils.js +1 -1
- package/dist/gr.js +53 -220
- package/dist/gr.js.map +1 -1
- package/dist/lib.js +51 -172
- package/dist/lib.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-462YYQU5.js.map +0 -1
- /package/dist/{account-verify-phone-T7N53V35.js.map → account-verify-phone-EVQMBXZZ.js.map} +0 -0
- /package/dist/{chunk-HNR2SIJP.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);
|
|
@@ -4760,8 +4756,8 @@ function getRevisionState(workflow, revision) {
|
|
|
4760
4756
|
};
|
|
4761
4757
|
}
|
|
4762
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;
|
|
4763
|
-
var
|
|
4764
|
-
"../sdk/dist/chunk-
|
|
4759
|
+
var init_chunk_VBG6XUBN = __esm({
|
|
4760
|
+
"../sdk/dist/chunk-VBG6XUBN.js"() {
|
|
4765
4761
|
init_chunk_GCN4OMYU();
|
|
4766
4762
|
init_libphonenumber_js();
|
|
4767
4763
|
AbilitiesApi = class extends BaseApiClient {
|
|
@@ -9696,37 +9692,6 @@ var init_chunk_YDC4OVZE = __esm({
|
|
|
9696
9692
|
}
|
|
9697
9693
|
);
|
|
9698
9694
|
}
|
|
9699
|
-
// ===== Member Memories =====
|
|
9700
|
-
async getMemberMemories(wid, memberId, options) {
|
|
9701
|
-
const params = new URLSearchParams();
|
|
9702
|
-
if (options?.type) params.append("type", options.type);
|
|
9703
|
-
if (options?.query) params.append("query", options.query);
|
|
9704
|
-
if (options?.limit) params.append("limit", options.limit.toString());
|
|
9705
|
-
const qs = params.toString();
|
|
9706
|
-
return this.fetch(
|
|
9707
|
-
`w/${wid}/members/${memberId}/memories${qs ? `?${qs}` : ""}`
|
|
9708
|
-
);
|
|
9709
|
-
}
|
|
9710
|
-
async getMemberMemory(wid, memberId, key) {
|
|
9711
|
-
return this.fetch(
|
|
9712
|
-
`w/${wid}/members/${memberId}/memories/${encodeURIComponent(key)}`
|
|
9713
|
-
);
|
|
9714
|
-
}
|
|
9715
|
-
async createMemberMemory(wid, memberId, body) {
|
|
9716
|
-
return this.fetch(`w/${wid}/members/${memberId}/memories`, {
|
|
9717
|
-
method: "POST",
|
|
9718
|
-
body: JSON.stringify(body)
|
|
9719
|
-
});
|
|
9720
|
-
}
|
|
9721
|
-
async deleteMemberMemory(wid, memberId, memoryKey, options) {
|
|
9722
|
-
const params = new URLSearchParams();
|
|
9723
|
-
if (options?.type) params.append("type", options.type);
|
|
9724
|
-
const qs = params.toString();
|
|
9725
|
-
await this.fetch(
|
|
9726
|
-
`w/${wid}/members/${memberId}/memories/${encodeURIComponent(memoryKey)}${qs ? `?${qs}` : ""}`,
|
|
9727
|
-
{ method: "DELETE" }
|
|
9728
|
-
);
|
|
9729
|
-
}
|
|
9730
9695
|
/** Bulk-create members in a workspace. */
|
|
9731
9696
|
async bulkCreateMembers(wid, request) {
|
|
9732
9697
|
return this.fetch(`w/${wid}/members/bulk`, {
|
|
@@ -16041,7 +16006,6 @@ var init_chunk_YDC4OVZE = __esm({
|
|
|
16041
16006
|
"createMemberField",
|
|
16042
16007
|
"createMemberFilter",
|
|
16043
16008
|
"createMemberLabel",
|
|
16044
|
-
"createMemberMemory",
|
|
16045
16009
|
"createMemberRelationship",
|
|
16046
16010
|
"createMemberRole",
|
|
16047
16011
|
"createMenuItem",
|
|
@@ -16111,7 +16075,6 @@ var init_chunk_YDC4OVZE = __esm({
|
|
|
16111
16075
|
"deleteMemberField",
|
|
16112
16076
|
"deleteMemberFilter",
|
|
16113
16077
|
"deleteMemberLabel",
|
|
16114
|
-
"deleteMemberMemory",
|
|
16115
16078
|
"deleteMemberRole",
|
|
16116
16079
|
"deleteMenuItem",
|
|
16117
16080
|
"deleteMondayConnection",
|
|
@@ -16447,8 +16410,6 @@ var init_chunk_YDC4OVZE = __esm({
|
|
|
16447
16410
|
"getMemberLabel",
|
|
16448
16411
|
"getMemberLabelByUuid",
|
|
16449
16412
|
"getMemberLabels",
|
|
16450
|
-
"getMemberMemories",
|
|
16451
|
-
"getMemberMemory",
|
|
16452
16413
|
"getMemberRecordCounts",
|
|
16453
16414
|
"getMemberRelationships",
|
|
16454
16415
|
"getMemberRole",
|
|
@@ -17076,10 +17037,6 @@ var init_chunk_YDC4OVZE = __esm({
|
|
|
17076
17037
|
resolveAnonymousMember;
|
|
17077
17038
|
expireAnonymousMember;
|
|
17078
17039
|
// Member Memories
|
|
17079
|
-
getMemberMemories;
|
|
17080
|
-
getMemberMemory;
|
|
17081
|
-
createMemberMemory;
|
|
17082
|
-
deleteMemberMemory;
|
|
17083
17040
|
// Member Sync Links
|
|
17084
17041
|
getMemberSyncLinks;
|
|
17085
17042
|
// Member Relationships
|
|
@@ -18396,7 +18353,7 @@ var init_chunk_6KPGCPGW = __esm({
|
|
|
18396
18353
|
var SEARCHABLE_EVENT_RULE_SOURCE_FIELDS, ActivityEventType, EntityKind;
|
|
18397
18354
|
var init_dist = __esm({
|
|
18398
18355
|
"../sdk/dist/index.js"() {
|
|
18399
|
-
|
|
18356
|
+
init_chunk_VBG6XUBN();
|
|
18400
18357
|
init_chunk_D5VNVTUQ();
|
|
18401
18358
|
init_chunk_6KPGCPGW();
|
|
18402
18359
|
init_chunk_GCN4OMYU();
|
|
@@ -22788,7 +22745,7 @@ var init_package = __esm({
|
|
|
22788
22745
|
"package.json"() {
|
|
22789
22746
|
package_default = {
|
|
22790
22747
|
name: "@gravity-rail/cli",
|
|
22791
|
-
version: "0.
|
|
22748
|
+
version: "1.0.0",
|
|
22792
22749
|
description: "Gravity Rail CLI \u2014 manage workspaces from the command line",
|
|
22793
22750
|
type: "module",
|
|
22794
22751
|
bin: {
|
|
@@ -26576,7 +26533,7 @@ var chatsDomain = {
|
|
|
26576
26533
|
handler: async ({ ctx, workspace, args }) => {
|
|
26577
26534
|
const chatId = requireNumber(args, "id");
|
|
26578
26535
|
const authed = requireAuth(ctx);
|
|
26579
|
-
const
|
|
26536
|
+
const truncate = (content) => {
|
|
26580
26537
|
const text = typeof content === "string" ? content : JSON.stringify(content);
|
|
26581
26538
|
return text.slice(0, 200);
|
|
26582
26539
|
};
|
|
@@ -26598,7 +26555,7 @@ var chatsDomain = {
|
|
|
26598
26555
|
messages: messages2.map((m) => ({
|
|
26599
26556
|
id: m.id,
|
|
26600
26557
|
role: m.role,
|
|
26601
|
-
content:
|
|
26558
|
+
content: truncate(m.content)
|
|
26602
26559
|
}))
|
|
26603
26560
|
},
|
|
26604
26561
|
ctx
|
|
@@ -38893,132 +38850,9 @@ var toolkitsDomain = {
|
|
|
38893
38850
|
]
|
|
38894
38851
|
};
|
|
38895
38852
|
|
|
38896
|
-
// src/domains/member-memories.ts
|
|
38897
|
-
init_output();
|
|
38898
|
-
init_pagination();
|
|
38899
|
-
init_context();
|
|
38900
|
-
var COLUMNS22 = [
|
|
38901
|
-
{ header: "KEY", getValue: (item) => item.key ?? "" },
|
|
38902
|
-
{ header: "TYPE", getValue: (item) => item.type ?? "basic" },
|
|
38903
|
-
{ header: "DESCRIPTION", getValue: (item) => truncate(item.description ?? "", 60) },
|
|
38904
|
-
{ header: "PRIORITY", getValue: (item) => item.priority ?? 0 },
|
|
38905
|
-
{ header: "UPDATED", getValue: (item) => item.updatedAt ?? item.createdAt ?? "" }
|
|
38906
|
-
];
|
|
38907
|
-
function truncate(s, max) {
|
|
38908
|
-
return s.length > max ? s.slice(0, max - 1) + "\u2026" : s;
|
|
38909
|
-
}
|
|
38910
|
-
var memberMemoriesDomain = {
|
|
38911
|
-
name: "member-memories",
|
|
38912
|
-
description: "Manage member persistent memories",
|
|
38913
|
-
commands: [
|
|
38914
|
-
{
|
|
38915
|
-
path: ["member-memories", "list"],
|
|
38916
|
-
description: "List memories for a member",
|
|
38917
|
-
requiresWorkspace: true,
|
|
38918
|
-
args: [
|
|
38919
|
-
{ name: "member-id", description: "Member ID", required: true },
|
|
38920
|
-
{
|
|
38921
|
-
name: "type",
|
|
38922
|
-
description: "Memory type filter (basic, preferences, semantic, summaries, episodic, all)"
|
|
38923
|
-
},
|
|
38924
|
-
{ name: "query", description: "Semantic search query (for AgentCore memory types)" }
|
|
38925
|
-
],
|
|
38926
|
-
handler: async ({ ctx, workspace, args }) => {
|
|
38927
|
-
const memberId = requireNumber(args, "member-id");
|
|
38928
|
-
const type = args.type;
|
|
38929
|
-
const query = args.query;
|
|
38930
|
-
const result2 = await requireAuth(ctx).apiClient.getMemberMemories(workspace, memberId, {
|
|
38931
|
-
type,
|
|
38932
|
-
query
|
|
38933
|
-
});
|
|
38934
|
-
outputData(listResult(result2, false), ctx, COLUMNS22);
|
|
38935
|
-
}
|
|
38936
|
-
},
|
|
38937
|
-
{
|
|
38938
|
-
path: ["member-memories", "get"],
|
|
38939
|
-
description: "Get a single memory by key",
|
|
38940
|
-
requiresWorkspace: true,
|
|
38941
|
-
args: [
|
|
38942
|
-
{ name: "member-id", description: "Member ID", required: true },
|
|
38943
|
-
{ name: "key", description: "Memory key", required: true }
|
|
38944
|
-
],
|
|
38945
|
-
handler: async ({ ctx, workspace, args }) => {
|
|
38946
|
-
const memberId = requireNumber(args, "member-id");
|
|
38947
|
-
const key = requireString(args, "key");
|
|
38948
|
-
const result2 = await requireAuth(ctx).apiClient.getMemberMemory(
|
|
38949
|
-
workspace,
|
|
38950
|
-
memberId,
|
|
38951
|
-
key
|
|
38952
|
-
);
|
|
38953
|
-
outputData(result2, ctx, COLUMNS22);
|
|
38954
|
-
}
|
|
38955
|
-
},
|
|
38956
|
-
{
|
|
38957
|
-
path: ["member-memories", "create"],
|
|
38958
|
-
description: "Create a memory for a member",
|
|
38959
|
-
mutates: true,
|
|
38960
|
-
requiresWorkspace: true,
|
|
38961
|
-
args: [
|
|
38962
|
-
{ name: "member-id", description: "Member ID", required: true },
|
|
38963
|
-
{ name: "key", description: "Memory key", required: true },
|
|
38964
|
-
{ name: "description", description: "Memory description", required: true },
|
|
38965
|
-
{ name: "content", description: "Memory content" },
|
|
38966
|
-
{ name: "priority", description: "Memory priority" }
|
|
38967
|
-
],
|
|
38968
|
-
handler: async ({ ctx, workspace, args }) => {
|
|
38969
|
-
const memberId = requireNumber(args, "member-id");
|
|
38970
|
-
const key = requireString(args, "key");
|
|
38971
|
-
const description = requireString(args, "description");
|
|
38972
|
-
const content = args.content;
|
|
38973
|
-
const priority = args.priority !== void 0 ? Number(args.priority) : void 0;
|
|
38974
|
-
const result2 = await requireAuth(ctx).apiClient.createMemberMemory(
|
|
38975
|
-
workspace,
|
|
38976
|
-
memberId,
|
|
38977
|
-
{
|
|
38978
|
-
key,
|
|
38979
|
-
description,
|
|
38980
|
-
...content !== void 0 && { content },
|
|
38981
|
-
...priority !== void 0 && { priority }
|
|
38982
|
-
}
|
|
38983
|
-
);
|
|
38984
|
-
outputData(result2, ctx, COLUMNS22);
|
|
38985
|
-
}
|
|
38986
|
-
},
|
|
38987
|
-
{
|
|
38988
|
-
path: ["member-memories", "delete"],
|
|
38989
|
-
description: "Delete a memory for a member",
|
|
38990
|
-
mutates: true,
|
|
38991
|
-
requiresWorkspace: true,
|
|
38992
|
-
args: [
|
|
38993
|
-
{ name: "member-id", description: "Member ID", required: true },
|
|
38994
|
-
{ name: "key", description: "Memory key", required: true },
|
|
38995
|
-
{
|
|
38996
|
-
name: "type",
|
|
38997
|
-
// The API refuses preferences and semantic deletes (a Member cannot
|
|
38998
|
-
// be shown to own those AgentCore records), so they are not offered.
|
|
38999
|
-
description: "Memory type (basic, summaries, episodic)"
|
|
39000
|
-
}
|
|
39001
|
-
],
|
|
39002
|
-
handler: async ({ ctx, workspace, args }) => {
|
|
39003
|
-
const memberId = requireNumber(args, "member-id");
|
|
39004
|
-
const key = requireString(args, "key");
|
|
39005
|
-
const type = args.type;
|
|
39006
|
-
await requireAuth(ctx).apiClient.deleteMemberMemory(
|
|
39007
|
-
workspace,
|
|
39008
|
-
memberId,
|
|
39009
|
-
key,
|
|
39010
|
-
type ? { type } : void 0
|
|
39011
|
-
);
|
|
39012
|
-
process.stdout.write(`Deleted memory ${key}
|
|
39013
|
-
`);
|
|
39014
|
-
}
|
|
39015
|
-
}
|
|
39016
|
-
]
|
|
39017
|
-
};
|
|
39018
|
-
|
|
39019
38853
|
// src/domains/intervention-requests.ts
|
|
39020
38854
|
init_output();
|
|
39021
|
-
var
|
|
38855
|
+
var COLUMNS22 = [
|
|
39022
38856
|
COL.id(),
|
|
39023
38857
|
{ header: "KIND", getValue: (item) => item.kind ?? "" },
|
|
39024
38858
|
{ header: "CHAT", getValue: (item) => item.chatId ?? "" },
|
|
@@ -39059,7 +38893,7 @@ var interventionRequestsDomain = {
|
|
|
39059
38893
|
unroutedOnly: Boolean(args["unrouted"]),
|
|
39060
38894
|
limit: args["limit"] ? Number(args["limit"]) : void 0
|
|
39061
38895
|
});
|
|
39062
|
-
outputData2(result2, ctx,
|
|
38896
|
+
outputData2(result2, ctx, COLUMNS22);
|
|
39063
38897
|
}
|
|
39064
38898
|
}
|
|
39065
38899
|
]
|
|
@@ -39067,7 +38901,7 @@ var interventionRequestsDomain = {
|
|
|
39067
38901
|
|
|
39068
38902
|
// src/domains/notification-rules.ts
|
|
39069
38903
|
init_output();
|
|
39070
|
-
var
|
|
38904
|
+
var COLUMNS23 = [
|
|
39071
38905
|
COL.id(),
|
|
39072
38906
|
COL.name(),
|
|
39073
38907
|
{ header: "TYPE", getValue: (item) => item.noticeType ?? "" },
|
|
@@ -39084,7 +38918,7 @@ var notificationRulesDomain = {
|
|
|
39084
38918
|
createMethod: "createNotificationRule",
|
|
39085
38919
|
updateMethod: "updateNotificationRule",
|
|
39086
38920
|
deleteMethod: "deleteNotificationRule",
|
|
39087
|
-
columns:
|
|
38921
|
+
columns: COLUMNS23
|
|
39088
38922
|
})
|
|
39089
38923
|
]
|
|
39090
38924
|
};
|
|
@@ -39148,7 +38982,7 @@ var oauthDomain = {
|
|
|
39148
38982
|
// src/domains/operator-groups.ts
|
|
39149
38983
|
init_output();
|
|
39150
38984
|
init_context();
|
|
39151
|
-
var
|
|
38985
|
+
var COLUMNS24 = [COL.id(), COL.name(), COL.description()];
|
|
39152
38986
|
var operatorGroupsDomain = {
|
|
39153
38987
|
name: "operator-groups",
|
|
39154
38988
|
description: "Manage operator groups",
|
|
@@ -39161,7 +38995,7 @@ var operatorGroupsDomain = {
|
|
|
39161
38995
|
createMethod: "createOperatorGroup",
|
|
39162
38996
|
updateMethod: "updateOperatorGroup",
|
|
39163
38997
|
deleteMethod: "deleteOperatorGroup",
|
|
39164
|
-
columns:
|
|
38998
|
+
columns: COLUMNS24
|
|
39165
38999
|
}),
|
|
39166
39000
|
{
|
|
39167
39001
|
path: ["operator-groups", "add-member"],
|
|
@@ -41357,7 +41191,7 @@ function requireCallerRole(args, flag) {
|
|
|
41357
41191
|
}
|
|
41358
41192
|
return role;
|
|
41359
41193
|
}
|
|
41360
|
-
var
|
|
41194
|
+
var COLUMNS25 = [
|
|
41361
41195
|
COL.id(),
|
|
41362
41196
|
{ header: "NUMBER", getValue: (item) => item.phoneNumber ?? item.number ?? "" },
|
|
41363
41197
|
{ header: "LABEL", getValue: (item) => item.label ?? item.name ?? "" },
|
|
@@ -41385,7 +41219,7 @@ var phoneNumbersDomain = {
|
|
|
41385
41219
|
entityName: "phone number",
|
|
41386
41220
|
listMethod: "getPhoneNumbers",
|
|
41387
41221
|
archiveMethod: "archivePhoneNumber",
|
|
41388
|
-
columns:
|
|
41222
|
+
columns: COLUMNS25
|
|
41389
41223
|
}),
|
|
41390
41224
|
{
|
|
41391
41225
|
path: ["phone-numbers", "get"],
|
|
@@ -41435,7 +41269,7 @@ ${PHONE_NUMBER_FIELD_REFERENCE}`,
|
|
|
41435
41269
|
);
|
|
41436
41270
|
const record2 = asPhoneRecord(result2);
|
|
41437
41271
|
const warnings = collectPhoneNumberWarnings(record2);
|
|
41438
|
-
outputData([record2], ctx,
|
|
41272
|
+
outputData([record2], ctx, COLUMNS25);
|
|
41439
41273
|
if (warnings.length > 0) {
|
|
41440
41274
|
process.stderr.write("\nWarnings after create:\n");
|
|
41441
41275
|
for (const w of warnings) {
|
|
@@ -41467,7 +41301,7 @@ ${PHONE_NUMBER_FIELD_REFERENCE}`,
|
|
|
41467
41301
|
id,
|
|
41468
41302
|
data
|
|
41469
41303
|
);
|
|
41470
|
-
outputData([result2], ctx,
|
|
41304
|
+
outputData([result2], ctx, COLUMNS25);
|
|
41471
41305
|
} catch (err) {
|
|
41472
41306
|
return enrichPhoneNumberApiError(err);
|
|
41473
41307
|
}
|
|
@@ -41756,7 +41590,7 @@ ${formatRoutingSimulation(sim, phone)}
|
|
|
41756
41590
|
requiresWorkspace: true,
|
|
41757
41591
|
handler: async ({ ctx, workspace }) => {
|
|
41758
41592
|
const result2 = await requireAuth(ctx).apiClient.getAvailablePhoneNumbers(workspace);
|
|
41759
|
-
outputData(result2, ctx,
|
|
41593
|
+
outputData(result2, ctx, COLUMNS25);
|
|
41760
41594
|
}
|
|
41761
41595
|
},
|
|
41762
41596
|
{
|
|
@@ -41781,7 +41615,7 @@ ${formatRoutingSimulation(sim, phone)}
|
|
|
41781
41615
|
const id = requireNumberFrom(args, "phone-number-id", "id");
|
|
41782
41616
|
const providerPhoneUuid = requireString(args, "provider-phone-uuid");
|
|
41783
41617
|
const result2 = await auth.apiClient.linkPhoneNumber(workspace, id, providerPhoneUuid);
|
|
41784
|
-
outputData([result2], auth,
|
|
41618
|
+
outputData([result2], auth, COLUMNS25);
|
|
41785
41619
|
}
|
|
41786
41620
|
},
|
|
41787
41621
|
{
|
|
@@ -41794,7 +41628,7 @@ ${formatRoutingSimulation(sim, phone)}
|
|
|
41794
41628
|
workspace,
|
|
41795
41629
|
data
|
|
41796
41630
|
);
|
|
41797
|
-
outputData([result2], ctx,
|
|
41631
|
+
outputData([result2], ctx, COLUMNS25);
|
|
41798
41632
|
}
|
|
41799
41633
|
},
|
|
41800
41634
|
{
|
|
@@ -41946,7 +41780,7 @@ function normalizePronunciationUpdatePayload(data) {
|
|
|
41946
41780
|
}
|
|
41947
41781
|
|
|
41948
41782
|
// src/domains/pronunciations.ts
|
|
41949
|
-
var
|
|
41783
|
+
var COLUMNS26 = [
|
|
41950
41784
|
COL.id(),
|
|
41951
41785
|
{ header: "TERM", getValue: (item) => item.term ?? "" },
|
|
41952
41786
|
{ header: "RESPELLING", getValue: (item) => item.respelling ?? "" },
|
|
@@ -41968,7 +41802,7 @@ var pronunciationsDomain = {
|
|
|
41968
41802
|
const auth = requireAuth(ctx);
|
|
41969
41803
|
const orgUuid = await resolveOrgUuidFromWorkspace(auth.apiClient, workspace);
|
|
41970
41804
|
const result2 = await auth.apiClient.getPronunciationEntries(orgUuid);
|
|
41971
|
-
outputData(result2, ctx,
|
|
41805
|
+
outputData(result2, ctx, COLUMNS26);
|
|
41972
41806
|
}
|
|
41973
41807
|
},
|
|
41974
41808
|
{
|
|
@@ -41982,7 +41816,7 @@ var pronunciationsDomain = {
|
|
|
41982
41816
|
const orgUuid = await resolveOrgUuidFromWorkspace(auth.apiClient, workspace);
|
|
41983
41817
|
const payload = normalizePronunciationCreatePayload(data);
|
|
41984
41818
|
const result2 = await auth.apiClient.createPronunciationEntry(orgUuid, payload);
|
|
41985
|
-
outputSingle(result2, ctx,
|
|
41819
|
+
outputSingle(result2, ctx, COLUMNS26);
|
|
41986
41820
|
}
|
|
41987
41821
|
},
|
|
41988
41822
|
{
|
|
@@ -42000,7 +41834,7 @@ var pronunciationsDomain = {
|
|
|
42000
41834
|
requireNumber(args, "id"),
|
|
42001
41835
|
payload
|
|
42002
41836
|
);
|
|
42003
|
-
outputSingle(result2, ctx,
|
|
41837
|
+
outputSingle(result2, ctx, COLUMNS26);
|
|
42004
41838
|
}
|
|
42005
41839
|
},
|
|
42006
41840
|
{
|
|
@@ -42024,7 +41858,7 @@ var pronunciationsDomain = {
|
|
|
42024
41858
|
requiresWorkspace: true,
|
|
42025
41859
|
handler: async ({ ctx }) => {
|
|
42026
41860
|
const result2 = await requireAuth(ctx).apiClient.getMyPronunciations();
|
|
42027
|
-
outputData(result2, ctx,
|
|
41861
|
+
outputData(result2, ctx, COLUMNS26);
|
|
42028
41862
|
}
|
|
42029
41863
|
},
|
|
42030
41864
|
{
|
|
@@ -42035,7 +41869,7 @@ var pronunciationsDomain = {
|
|
|
42035
41869
|
handler: async ({ ctx, data }) => {
|
|
42036
41870
|
const payload = normalizePronunciationCreatePayload(data);
|
|
42037
41871
|
const result2 = await requireAuth(ctx).apiClient.createMyPronunciation(payload);
|
|
42038
|
-
outputSingle(result2, ctx,
|
|
41872
|
+
outputSingle(result2, ctx, COLUMNS26);
|
|
42039
41873
|
}
|
|
42040
41874
|
},
|
|
42041
41875
|
{
|
|
@@ -42347,7 +42181,7 @@ ${ROUTINE_FIELD_REFERENCE}`,
|
|
|
42347
42181
|
// src/domains/subscriptions.ts
|
|
42348
42182
|
init_output();
|
|
42349
42183
|
init_context();
|
|
42350
|
-
var
|
|
42184
|
+
var COLUMNS27 = [
|
|
42351
42185
|
COL.id(),
|
|
42352
42186
|
COL.status(),
|
|
42353
42187
|
{ header: "PLAN", getValue: (item) => item.planName ?? item.plan ?? "" },
|
|
@@ -42363,7 +42197,7 @@ var subscriptionsDomain = {
|
|
|
42363
42197
|
requiresWorkspace: false,
|
|
42364
42198
|
handler: async ({ ctx }) => {
|
|
42365
42199
|
const result2 = await requireAuth(ctx).apiClient.getSubscriptions();
|
|
42366
|
-
outputData(result2, ctx,
|
|
42200
|
+
outputData(result2, ctx, COLUMNS27);
|
|
42367
42201
|
}
|
|
42368
42202
|
},
|
|
42369
42203
|
{
|
|
@@ -42372,7 +42206,7 @@ var subscriptionsDomain = {
|
|
|
42372
42206
|
requiresWorkspace: true,
|
|
42373
42207
|
handler: async ({ ctx, workspace }) => {
|
|
42374
42208
|
const result2 = await requireAuth(ctx).apiClient.getWorkspaceSubscriptions(workspace);
|
|
42375
|
-
outputData(result2, ctx,
|
|
42209
|
+
outputData(result2, ctx, COLUMNS27);
|
|
42376
42210
|
}
|
|
42377
42211
|
},
|
|
42378
42212
|
{
|
|
@@ -42385,7 +42219,7 @@ var subscriptionsDomain = {
|
|
|
42385
42219
|
const result2 = await requireAuth(ctx).apiClient.cancelSubscription(
|
|
42386
42220
|
requireNumber(args, "id")
|
|
42387
42221
|
);
|
|
42388
|
-
outputSingle(result2, ctx,
|
|
42222
|
+
outputSingle(result2, ctx, COLUMNS27);
|
|
42389
42223
|
}
|
|
42390
42224
|
},
|
|
42391
42225
|
{
|
|
@@ -42397,7 +42231,7 @@ var subscriptionsDomain = {
|
|
|
42397
42231
|
const result2 = await requireAuth(ctx).apiClient.reactivateSubscription(
|
|
42398
42232
|
requireNumber(args, "id")
|
|
42399
42233
|
);
|
|
42400
|
-
outputSingle(result2, ctx,
|
|
42234
|
+
outputSingle(result2, ctx, COLUMNS27);
|
|
42401
42235
|
}
|
|
42402
42236
|
},
|
|
42403
42237
|
{
|
|
@@ -42411,7 +42245,7 @@ var subscriptionsDomain = {
|
|
|
42411
42245
|
requireNumber(args, "id"),
|
|
42412
42246
|
data
|
|
42413
42247
|
);
|
|
42414
|
-
outputSingle(result2, ctx,
|
|
42248
|
+
outputSingle(result2, ctx, COLUMNS27);
|
|
42415
42249
|
}
|
|
42416
42250
|
}
|
|
42417
42251
|
]
|
|
@@ -42670,7 +42504,7 @@ var supportDomain = {
|
|
|
42670
42504
|
|
|
42671
42505
|
// src/domains/supervisors.ts
|
|
42672
42506
|
init_output();
|
|
42673
|
-
var
|
|
42507
|
+
var COLUMNS28 = [
|
|
42674
42508
|
COL.id(),
|
|
42675
42509
|
COL.name(),
|
|
42676
42510
|
{ header: "TYPE", getValue: (item) => item.type ?? "" },
|
|
@@ -42688,7 +42522,7 @@ var supervisorsDomain = {
|
|
|
42688
42522
|
createMethod: "createSupervisor",
|
|
42689
42523
|
updateMethod: "updateSupervisor",
|
|
42690
42524
|
deleteMethod: "deleteSupervisor",
|
|
42691
|
-
columns:
|
|
42525
|
+
columns: COLUMNS28
|
|
42692
42526
|
})
|
|
42693
42527
|
]
|
|
42694
42528
|
};
|
|
@@ -43097,7 +42931,7 @@ var widgetDomainsDomain = {
|
|
|
43097
42931
|
// src/domains/integrations/app-connections.ts
|
|
43098
42932
|
init_output();
|
|
43099
42933
|
init_context();
|
|
43100
|
-
var
|
|
42934
|
+
var COLUMNS29 = [
|
|
43101
42935
|
COL.id(),
|
|
43102
42936
|
COL.name(),
|
|
43103
42937
|
{ header: "TYPE", getValue: (item) => item.type ?? "" },
|
|
@@ -43138,7 +42972,7 @@ var appConnectionsDomain = {
|
|
|
43138
42972
|
requiresWorkspace: true,
|
|
43139
42973
|
handler: async ({ ctx, workspace }) => {
|
|
43140
42974
|
const result2 = await requireAuth(ctx).apiClient.listAvailableAppConnections(workspace);
|
|
43141
|
-
outputData(result2, ctx,
|
|
42975
|
+
outputData(result2, ctx, COLUMNS29);
|
|
43142
42976
|
}
|
|
43143
42977
|
},
|
|
43144
42978
|
{
|
|
@@ -43147,7 +42981,7 @@ var appConnectionsDomain = {
|
|
|
43147
42981
|
requiresWorkspace: true,
|
|
43148
42982
|
handler: async ({ ctx, workspace }) => {
|
|
43149
42983
|
const result2 = await requireAuth(ctx).apiClient.listAppConnections(workspace);
|
|
43150
|
-
outputData(result2, ctx,
|
|
42984
|
+
outputData(result2, ctx, COLUMNS29);
|
|
43151
42985
|
}
|
|
43152
42986
|
},
|
|
43153
42987
|
{
|
|
@@ -43171,7 +43005,7 @@ var appConnectionsDomain = {
|
|
|
43171
43005
|
const result2 = await requireAuth(ctx).apiClient.enablePlatformApp(workspace, {
|
|
43172
43006
|
slug: requireString(args, "slug")
|
|
43173
43007
|
});
|
|
43174
|
-
outputSingle(result2, ctx,
|
|
43008
|
+
outputSingle(result2, ctx, COLUMNS29);
|
|
43175
43009
|
}
|
|
43176
43010
|
},
|
|
43177
43011
|
{
|
|
@@ -43184,7 +43018,7 @@ var appConnectionsDomain = {
|
|
|
43184
43018
|
workspace,
|
|
43185
43019
|
requireString(args, "id")
|
|
43186
43020
|
);
|
|
43187
|
-
outputSingle(result2, ctx,
|
|
43021
|
+
outputSingle(result2, ctx, COLUMNS29);
|
|
43188
43022
|
}
|
|
43189
43023
|
},
|
|
43190
43024
|
{
|
|
@@ -43199,7 +43033,7 @@ var appConnectionsDomain = {
|
|
|
43199
43033
|
requireString(args, "id"),
|
|
43200
43034
|
data
|
|
43201
43035
|
);
|
|
43202
|
-
outputSingle(result2, ctx,
|
|
43036
|
+
outputSingle(result2, ctx, COLUMNS29);
|
|
43203
43037
|
}
|
|
43204
43038
|
},
|
|
43205
43039
|
{
|
|
@@ -43546,7 +43380,7 @@ var confluenceDomain = {
|
|
|
43546
43380
|
// src/domains/integrations/discord-bots.ts
|
|
43547
43381
|
init_output();
|
|
43548
43382
|
init_context();
|
|
43549
|
-
var
|
|
43383
|
+
var COLUMNS30 = [COL.id(), COL.name(), COL.status()];
|
|
43550
43384
|
var discordBotsDomain = {
|
|
43551
43385
|
name: "discord-bots",
|
|
43552
43386
|
description: "Manage Discord bot integrations",
|
|
@@ -43559,7 +43393,7 @@ var discordBotsDomain = {
|
|
|
43559
43393
|
createMethod: "createDiscordBot",
|
|
43560
43394
|
updateMethod: "updateDiscordBot",
|
|
43561
43395
|
deleteMethod: "deleteDiscordBot",
|
|
43562
|
-
columns:
|
|
43396
|
+
columns: COLUMNS30,
|
|
43563
43397
|
paginationSupport: "full"
|
|
43564
43398
|
}),
|
|
43565
43399
|
{
|
|
@@ -43621,7 +43455,7 @@ var discordBotsDomain = {
|
|
|
43621
43455
|
// src/domains/integrations/fhir-connections.ts
|
|
43622
43456
|
init_output();
|
|
43623
43457
|
init_context();
|
|
43624
|
-
var
|
|
43458
|
+
var COLUMNS31 = [
|
|
43625
43459
|
COL.id(),
|
|
43626
43460
|
COL.name(),
|
|
43627
43461
|
{ header: "URL", getValue: (item) => item.baseUrl ?? "" },
|
|
@@ -43672,7 +43506,7 @@ var fhirConnectionsDomain = {
|
|
|
43672
43506
|
createMethod: "createFhirConnection",
|
|
43673
43507
|
updateMethod: "updateFhirConnection",
|
|
43674
43508
|
deleteMethod: "deleteFhirConnection",
|
|
43675
|
-
columns:
|
|
43509
|
+
columns: COLUMNS31,
|
|
43676
43510
|
paginationSupport: "full"
|
|
43677
43511
|
}),
|
|
43678
43512
|
{
|
|
@@ -43725,7 +43559,7 @@ var fhirConnectionsDomain = {
|
|
|
43725
43559
|
init_context();
|
|
43726
43560
|
init_errors();
|
|
43727
43561
|
init_output();
|
|
43728
|
-
var
|
|
43562
|
+
var COLUMNS32 = [
|
|
43729
43563
|
{ header: "CONFIGURED", getValue: (i) => String(i.configured ?? false) },
|
|
43730
43564
|
{ header: "ENABLED", getValue: (i) => String(i.enabled ?? false) },
|
|
43731
43565
|
{ header: "HAS_KEY", getValue: (i) => String(i.hasApiKey ?? false) },
|
|
@@ -43754,7 +43588,7 @@ var patientSyncDomain = {
|
|
|
43754
43588
|
workspace,
|
|
43755
43589
|
data
|
|
43756
43590
|
);
|
|
43757
|
-
outputSingle(result2, ctx,
|
|
43591
|
+
outputSingle(result2, ctx, COLUMNS32);
|
|
43758
43592
|
}
|
|
43759
43593
|
},
|
|
43760
43594
|
{
|
|
@@ -43763,7 +43597,7 @@ var patientSyncDomain = {
|
|
|
43763
43597
|
requiresWorkspace: true,
|
|
43764
43598
|
handler: async ({ ctx, workspace }) => {
|
|
43765
43599
|
const result2 = await requireAuth(ctx).apiClient.getPatientSyncStatus(workspace);
|
|
43766
|
-
outputSingle(result2, ctx,
|
|
43600
|
+
outputSingle(result2, ctx, COLUMNS32);
|
|
43767
43601
|
}
|
|
43768
43602
|
},
|
|
43769
43603
|
{
|
|
@@ -45371,7 +45205,7 @@ var salesforceDomain = {
|
|
|
45371
45205
|
init_errors();
|
|
45372
45206
|
init_output();
|
|
45373
45207
|
init_context();
|
|
45374
|
-
var
|
|
45208
|
+
var COLUMNS33 = [COL.id(), COL.name(), COL.status()];
|
|
45375
45209
|
function addSlackUrls(data, apiUrl, workspaceUuid) {
|
|
45376
45210
|
const base = `${apiUrl}/api/v2/w/${workspaceUuid}/app-connections/slack`;
|
|
45377
45211
|
return {
|
|
@@ -45394,7 +45228,7 @@ var slackAppsDomain = {
|
|
|
45394
45228
|
entityName: "Slack app",
|
|
45395
45229
|
listMethod: "getSlackApps",
|
|
45396
45230
|
deleteMethod: "deleteSlackApp",
|
|
45397
|
-
columns:
|
|
45231
|
+
columns: COLUMNS33,
|
|
45398
45232
|
paginationSupport: "full"
|
|
45399
45233
|
}),
|
|
45400
45234
|
{
|
|
@@ -45483,7 +45317,7 @@ var slackAppsDomain = {
|
|
|
45483
45317
|
init_errors();
|
|
45484
45318
|
init_output();
|
|
45485
45319
|
init_context();
|
|
45486
|
-
var
|
|
45320
|
+
var COLUMNS34 = [COL.id(), COL.name(), COL.status()];
|
|
45487
45321
|
function addTeamsUrls(data, apiUrl, workspaceUuid) {
|
|
45488
45322
|
const base = `${apiUrl}/api/v2/w/${workspaceUuid}/app-connections/teams`;
|
|
45489
45323
|
return {
|
|
@@ -45504,7 +45338,7 @@ var teamsAppsDomain = {
|
|
|
45504
45338
|
entityName: "Teams app",
|
|
45505
45339
|
listMethod: "getTeamsApps",
|
|
45506
45340
|
deleteMethod: "deleteTeamsApp",
|
|
45507
|
-
columns:
|
|
45341
|
+
columns: COLUMNS34,
|
|
45508
45342
|
paginationSupport: "full"
|
|
45509
45343
|
}),
|
|
45510
45344
|
{
|
|
@@ -45644,7 +45478,6 @@ function registerPublicDomains(registry) {
|
|
|
45644
45478
|
registry.register(oauthDomain);
|
|
45645
45479
|
registry.register(conciergeDomain);
|
|
45646
45480
|
registry.register(docsDomain);
|
|
45647
|
-
registry.register(memberMemoriesDomain);
|
|
45648
45481
|
registry.register(syncDomain);
|
|
45649
45482
|
registry.register(widgetDomainsDomain);
|
|
45650
45483
|
registry.register(confluenceDomain);
|
|
@@ -49833,7 +49666,7 @@ async function authImportDevCommand(ctx, args) {
|
|
|
49833
49666
|
|
|
49834
49667
|
// src/commands/organizations.ts
|
|
49835
49668
|
init_output();
|
|
49836
|
-
var
|
|
49669
|
+
var COLUMNS35 = [
|
|
49837
49670
|
{ header: "NAME", getValue: (o) => o.organizationName || "", maxWidth: 35 },
|
|
49838
49671
|
{ header: "SLUG", getValue: (o) => o.organizationSlug || "", maxWidth: 25 },
|
|
49839
49672
|
{ header: "UUID", getValue: (o) => o.organizationUuid },
|
|
@@ -49841,7 +49674,7 @@ var COLUMNS36 = [
|
|
|
49841
49674
|
];
|
|
49842
49675
|
async function organizationsListCommand(ctx, options = {}) {
|
|
49843
49676
|
const organizations = await ctx.apiClient.getMyOrganizations(options);
|
|
49844
|
-
outputData(organizations, ctx,
|
|
49677
|
+
outputData(organizations, ctx, COLUMNS35);
|
|
49845
49678
|
}
|
|
49846
49679
|
|
|
49847
49680
|
// src/commands/whoami.ts
|