@gravity-rail/cli 0.33.0 → 0.33.1

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 CHANGED
@@ -3230,7 +3230,7 @@ var init_libphonenumber_js = __esm({
3230
3230
  }
3231
3231
  });
3232
3232
 
3233
- // ../sdk/dist/chunk-WDYHAQDY.js
3233
+ // ../sdk/dist/chunk-ZGXE5SVN.js
3234
3234
  function sanitizePhoneForBackend(phoneNumber) {
3235
3235
  try {
3236
3236
  let parsed = parsePhoneNumber4(phoneNumber);
@@ -4607,8 +4607,8 @@ function getRevisionState(workflow, revision) {
4607
4607
  };
4608
4608
  }
4609
4609
  var AbilitiesApi, 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, SalesforceApi, ConnectionSyncApi, HubspotApi, SitesApi, SubscriptionsApi, SupportRequestsApi, CustomersApi, ResellersApi, SupervisorsApi, TasksApi, TemplatesApi, ToolkitsApi, JourneysApi, WorkflowsApi, WorkflowNotesApi, EventRuleObjectType, EventRuleEventType, EventRuleActionType, DriverMode, 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;
4610
- var init_chunk_WDYHAQDY = __esm({
4611
- "../sdk/dist/chunk-WDYHAQDY.js"() {
4610
+ var init_chunk_ZGXE5SVN = __esm({
4611
+ "../sdk/dist/chunk-ZGXE5SVN.js"() {
4612
4612
  init_chunk_P2E6LU7I();
4613
4613
  init_libphonenumber_js();
4614
4614
  AbilitiesApi = class extends BaseApiClient {
@@ -9992,6 +9992,34 @@ var init_chunk_WDYHAQDY = __esm({
9992
9992
  `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}`
9993
9993
  );
9994
9994
  }
9995
+ /**
9996
+ * A representative delivery body for one event type — what the test-send
9997
+ * editor is prefilled with, and the same builder the public event catalog
9998
+ * is generated from. Pass `endpointUuid` to have the sample name that
9999
+ * endpoint and sit in a workspace it actually covers.
10000
+ */
10001
+ async getOrgWebhookEventSample(orgIdOrUuid, eventType, endpointUuid) {
10002
+ const query = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
10003
+ return this.fetch(
10004
+ `o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query}`
10005
+ );
10006
+ }
10007
+ /**
10008
+ * Send one payload to the endpoint now and report what came back.
10009
+ *
10010
+ * Outside the delivery queue: no delivery row, no retry, no effect on the
10011
+ * endpoint's status — but the same signing, egress vetting and outcome
10012
+ * classification a real delivery goes through.
10013
+ */
10014
+ async testOrgWebhookEndpoint(orgIdOrUuid, endpointUuid, data) {
10015
+ return this.fetch(
10016
+ `o/${orgIdOrUuid}/webhooks/${endpointUuid}/test`,
10017
+ {
10018
+ method: "POST",
10019
+ body: JSON.stringify(data)
10020
+ }
10021
+ );
10022
+ }
9995
10023
  };
9996
10024
  OAuthConnectionsApi = class extends BaseApiClient {
9997
10025
  async getConnectionStatus(providerSlug) {
@@ -16184,7 +16212,7 @@ var init_chunk_HRUMZ46V = __esm({
16184
16212
  var SEARCHABLE_EVENT_RULE_SOURCE_FIELDS, ActivityEventType, EntityKind;
16185
16213
  var init_dist = __esm({
16186
16214
  "../sdk/dist/index.js"() {
16187
- init_chunk_WDYHAQDY();
16215
+ init_chunk_ZGXE5SVN();
16188
16216
  init_chunk_HRUMZ46V();
16189
16217
  init_chunk_P2E6LU7I();
16190
16218
  SEARCHABLE_EVENT_RULE_SOURCE_FIELDS = [
@@ -29304,6 +29332,12 @@ var qualificationsDomain = {
29304
29332
  required: false
29305
29333
  },
29306
29334
  { name: "goal", description: "Goal for the user simulator", required: false },
29335
+ { name: "channel", description: "Run channel: web-chat | web-voice", required: false },
29336
+ {
29337
+ name: "anonymous",
29338
+ description: "Use an anonymous caller: true | false; otherwise inherit scenario",
29339
+ required: false
29340
+ },
29307
29341
  { name: "driver", description: "Driver mode: auto | human", required: false },
29308
29342
  {
29309
29343
  name: "workflow-revision-id",
@@ -29336,7 +29370,17 @@ var qualificationsDomain = {
29336
29370
  required: false
29337
29371
  }
29338
29372
  ],
29339
- handler: async ({ ctx, workspace, args }) => {
29373
+ handler: async ({ ctx, workspace, args, data }) => {
29374
+ if (data !== void 0 || args["data"] !== void 0) {
29375
+ throw new CLIError(
29376
+ "runs start does not accept --data; use --channel, --anonymous and the named run flags"
29377
+ );
29378
+ }
29379
+ const channel = args["channel"];
29380
+ if (channel !== void 0 && channel !== "web-chat" && channel !== "web-voice") {
29381
+ throw new CLIError("--channel must be web-chat or web-voice");
29382
+ }
29383
+ const anonymous = optionalBool(args, "anonymous");
29340
29384
  const driver = args["driver"] === "human" ? DriverMode.HUMAN : DriverMode.AUTO;
29341
29385
  const scenarioId = args["scenario-id"] ? requireNumber(args, "scenario-id") : void 0;
29342
29386
  const personaId = args["persona-id"] ? requireNumber(args, "persona-id") : void 0;
@@ -29360,6 +29404,8 @@ var qualificationsDomain = {
29360
29404
  ...args["workflow-revision-id"] ? { workflowRevisionId: requireNumber(args, "workflow-revision-id") } : {},
29361
29405
  ...args["workflow-revision-uuid"] ? { workflowRevisionUuid: String(args["workflow-revision-uuid"]) } : {},
29362
29406
  ...args["goal"] ? { goal: String(args["goal"]) } : {},
29407
+ ...channel !== void 0 ? { channel } : {},
29408
+ ...anonymous !== void 0 ? { anonymous } : {},
29363
29409
  ...args["assistant-chat-model-id"] ? { assistantChatModelId: String(args["assistant-chat-model-id"]) } : {},
29364
29410
  ...args["assistant-realtime-model-id"] ? {
29365
29411
  assistantRealtimeModelId: String(args["assistant-realtime-model-id"])
@@ -43030,7 +43076,7 @@ init_concierge_api();
43030
43076
 
43031
43077
  // package.json
43032
43078
  var package_default = {
43033
- version: "0.33.0"};
43079
+ version: "0.33.1"};
43034
43080
 
43035
43081
  // src/gr.ts
43036
43082
  var VERSION = package_default.version;