@gravity-rail/cli 0.44.0 → 0.46.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/gr.js +43 -10
- package/dist/gr.js.map +1 -1
- package/dist/lib.js +36 -5
- package/dist/lib.js.map +1 -1
- package/package.json +2 -2
package/dist/gr.js
CHANGED
|
@@ -3205,7 +3205,7 @@ var init_libphonenumber_js = __esm({
|
|
|
3205
3205
|
}
|
|
3206
3206
|
});
|
|
3207
3207
|
|
|
3208
|
-
// ../sdk/dist/chunk-
|
|
3208
|
+
// ../sdk/dist/chunk-I7BMDNPO.js
|
|
3209
3209
|
function resourceWorkflowsPath(wid, ...segments) {
|
|
3210
3210
|
const tail = segments.map((segment) => encodeURIComponent(String(segment))).join("/");
|
|
3211
3211
|
const base = `w/${encodeURIComponent(wid)}/resource-workflows`;
|
|
@@ -4505,6 +4505,7 @@ function bindOrgMethods(target, org) {
|
|
|
4505
4505
|
target.updateOrganizationMember = org.updateOrganizationMember.bind(org);
|
|
4506
4506
|
target.listOrgWebhookEndpoints = org.listOrgWebhookEndpoints.bind(org);
|
|
4507
4507
|
target.getOrgWebhookEndpoint = org.getOrgWebhookEndpoint.bind(org);
|
|
4508
|
+
target.updateOrgWebhookEndpoint = org.updateOrgWebhookEndpoint.bind(org);
|
|
4508
4509
|
}
|
|
4509
4510
|
function bindPronunciationsMethods(target, pronunciations) {
|
|
4510
4511
|
target.getPronunciationEntries = pronunciations.getPronunciationEntries.bind(pronunciations);
|
|
@@ -4713,8 +4714,8 @@ function getRevisionState(workflow, revision) {
|
|
|
4713
4714
|
};
|
|
4714
4715
|
}
|
|
4715
4716
|
var AbilitiesApi, ResourceWorkflowsApi, BundlesApi, InstallationsApi, AccessGrantsApi, AgentTasksApi, AgentsApi, AIModelsApi, ApiKeysApi, AppsApi, AssignmentsApi, VoiceApi, AuthApi, BuildersApi, CalendarsApi, CallsApi, CELApi, ChatsApi, ConfluenceApi, CustomToolkitsApi, DataTypesApi, DiscordBotsApi, SlackAppsApi, EventsApi, FeaturesApi, FhirConnectionsApi, InboundFaxStatus, DocumoFaxApi, HealthieApi, FilesApi, InboxesApi, InquiriesApi, AppConnectionsApi, McpServersApi, MemberImportValidationError, MembersApi, MondayIntegrationApi, NotificationRulesApi, OperatorApi, OrgApi, OAuthConnectionsApi, OAuthApi, PhoneNumbersApi, PronunciationsApi, PromptsApi, PersonasApi, QueriesApi, QualificationsApi, ReportsApi, RoutingRulesApi, SalesforceApi, ConnectionSyncApi, HubspotApi, SitesApi, SubscriptionsApi, SupportRequestsApi, CustomersApi, ResellersApi, SupervisorsApi, TasksApi, TemplatesApi, ToolkitsApi, JourneysApi, WorkflowsApi, WorkflowNotesApi, EventRuleObjectType, EventRuleEventType, EventRuleActionType, DriverMode, MEMBER_RELATIONSHIP_KINDS, WorkspaceInvitationsApi, WorkspacesApi, DashboardsApi, DevicesApi, TeamsAppsApi, ExperimentsApi, PatientSyncConnectionsApi, ActivityApi, MotdApi, InterventionRequestsApi, MetricsApi, 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;
|
|
4716
|
-
var
|
|
4717
|
-
"../sdk/dist/chunk-
|
|
4717
|
+
var init_chunk_I7BMDNPO = __esm({
|
|
4718
|
+
"../sdk/dist/chunk-I7BMDNPO.js"() {
|
|
4718
4719
|
init_chunk_67QXTQVL();
|
|
4719
4720
|
init_libphonenumber_js();
|
|
4720
4721
|
AbilitiesApi = class extends BaseApiClient {
|
|
@@ -16631,6 +16632,7 @@ var init_chunk_JKML6WOA = __esm({
|
|
|
16631
16632
|
updateOrganizationMember;
|
|
16632
16633
|
listOrgWebhookEndpoints;
|
|
16633
16634
|
getOrgWebhookEndpoint;
|
|
16635
|
+
updateOrgWebhookEndpoint;
|
|
16634
16636
|
getVapidPublicKey;
|
|
16635
16637
|
registerPushSubscription;
|
|
16636
16638
|
unregisterPushSubscription;
|
|
@@ -17547,7 +17549,7 @@ var init_chunk_6KPGCPGW = __esm({
|
|
|
17547
17549
|
var SEARCHABLE_EVENT_RULE_SOURCE_FIELDS, ActivityEventType, EntityKind;
|
|
17548
17550
|
var init_dist = __esm({
|
|
17549
17551
|
"../sdk/dist/index.js"() {
|
|
17550
|
-
|
|
17552
|
+
init_chunk_I7BMDNPO();
|
|
17551
17553
|
init_chunk_72SWNLVD();
|
|
17552
17554
|
init_chunk_6KPGCPGW();
|
|
17553
17555
|
init_chunk_67QXTQVL();
|
|
@@ -28307,7 +28309,7 @@ var ACTION_PARAM_HINTS = {
|
|
|
28307
28309
|
],
|
|
28308
28310
|
notes: [
|
|
28309
28311
|
"inboxUUID is required \u2014 list them with `gr inboxes list -w $WID`.",
|
|
28310
|
-
'
|
|
28312
|
+
'Recipients are Members: recipientMode "target_member" (default) or "specific_member" with memberIds (up to 20 workspace Member IDs). Optional: contentType ("text" default), initialUserMessage.'
|
|
28311
28313
|
]
|
|
28312
28314
|
},
|
|
28313
28315
|
"member:label": {
|
|
@@ -36847,7 +36849,41 @@ var ORG_WEBHOOK_COLUMNS = [
|
|
|
36847
36849
|
maxWidth: 80
|
|
36848
36850
|
}
|
|
36849
36851
|
];
|
|
36852
|
+
function requireWebhookEndpointUuid(args) {
|
|
36853
|
+
const value = args["endpoint-uuid"] ?? args.id;
|
|
36854
|
+
if (typeof value !== "string" || !value.trim()) {
|
|
36855
|
+
throw new CLIError("Missing required argument: --endpoint-uuid");
|
|
36856
|
+
}
|
|
36857
|
+
return value.trim();
|
|
36858
|
+
}
|
|
36859
|
+
function webhookStatusCommand(action) {
|
|
36860
|
+
const status = action === "pause" ? "paused" : "active";
|
|
36861
|
+
return {
|
|
36862
|
+
path: ["org", "webhooks", action],
|
|
36863
|
+
description: `${action === "pause" ? "Pause" : "Resume"} one organization webhook endpoint. Requires organization admin access. Pausing retains the endpoint and delivery history; resuming can deliver held events.`,
|
|
36864
|
+
mutates: true,
|
|
36865
|
+
requiresWorkspace: false,
|
|
36866
|
+
args: [
|
|
36867
|
+
ORG_UUID_ARG2,
|
|
36868
|
+
{ name: "endpoint-uuid", aliases: ["id"], description: "Endpoint UUID", required: true }
|
|
36869
|
+
],
|
|
36870
|
+
examples: [
|
|
36871
|
+
`yarn gr org webhooks ${action} --org-uuid $ORG_UUID --endpoint-uuid $ENDPOINT_UUID --allow-write`
|
|
36872
|
+
],
|
|
36873
|
+
handler: async (hctx) => {
|
|
36874
|
+
const endpointUuid = requireWebhookEndpointUuid(hctx.args);
|
|
36875
|
+
const result2 = await requireAuth(hctx.ctx).apiClient.updateOrgWebhookEndpoint(
|
|
36876
|
+
requireOrgRef(hctx.args),
|
|
36877
|
+
endpointUuid,
|
|
36878
|
+
{ status }
|
|
36879
|
+
);
|
|
36880
|
+
outputSingle(result2, hctx.ctx, ORG_WEBHOOK_COLUMNS);
|
|
36881
|
+
}
|
|
36882
|
+
};
|
|
36883
|
+
}
|
|
36850
36884
|
var webhookCommands = [
|
|
36885
|
+
webhookStatusCommand("pause"),
|
|
36886
|
+
webhookStatusCommand("resume"),
|
|
36851
36887
|
{
|
|
36852
36888
|
path: ["org", "webhooks", "list"],
|
|
36853
36889
|
description: "List an organization's webhook endpoints (read-only). Each row carries the destination host fingerprint and a masked signing secret, never the URL or a usable secret.",
|
|
@@ -36871,10 +36907,7 @@ var webhookCommands = [
|
|
|
36871
36907
|
],
|
|
36872
36908
|
examples: ["yarn gr org webhooks get --org $ORG_UUID --endpoint-uuid $ENDPOINT_UUID"],
|
|
36873
36909
|
handler: async (hctx) => {
|
|
36874
|
-
const endpointUuid = hctx.args
|
|
36875
|
-
if (typeof endpointUuid !== "string" || !endpointUuid) {
|
|
36876
|
-
throw new CLIError("Missing required argument: --endpoint-uuid");
|
|
36877
|
-
}
|
|
36910
|
+
const endpointUuid = requireWebhookEndpointUuid(hctx.args);
|
|
36878
36911
|
const result2 = await requireAuth(hctx.ctx).apiClient.getOrgWebhookEndpoint(
|
|
36879
36912
|
requireOrgRef(hctx.args),
|
|
36880
36913
|
endpointUuid
|
|
@@ -46246,7 +46279,7 @@ init_concierge_api();
|
|
|
46246
46279
|
|
|
46247
46280
|
// package.json
|
|
46248
46281
|
var package_default = {
|
|
46249
|
-
version: "0.
|
|
46282
|
+
version: "0.46.0"};
|
|
46250
46283
|
|
|
46251
46284
|
// src/gr.ts
|
|
46252
46285
|
var VERSION = package_default.version;
|