@gravity-rail/cli 0.7.3 → 0.10.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/lib.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { GravityRailClient, PhoneCall } from '@gravity-rail/sdk';
2
- import { E as EnvironmentConfig, C as CredentialsManager } from './cli-client-context-9KRUt6O-.js';
3
- export { a as ConciergeAppContextPayload, b as buildCliConciergeAppContext } from './cli-client-context-9KRUt6O-.js';
2
+ import { E as EnvironmentConfig, C as CredentialsManager } from './cli-client-context-BbyBEGcg.js';
3
+ export { a as ConciergeAppContextPayload, b as buildCliConciergeAppContext } from './cli-client-context-BbyBEGcg.js';
4
4
 
5
5
  /** Metadata extracted from a paginated API response */
6
6
  interface PaginationMeta {
@@ -319,6 +319,18 @@ interface CrudConfig<T = unknown> {
319
319
  * Default: `false` (safe — never forwards pagination options unless opted in).
320
320
  */
321
321
  paginationSupport?: 'full' | 'client-only' | false;
322
+ /**
323
+ * Optional resolver for the client object that string methods are dispatched
324
+ * against. Defaults to the context's plain `apiClient` (`GravityRailClient`).
325
+ *
326
+ * Domains whose CRUD methods live on an extended/rebound surface (e.g. the
327
+ * gr-cli admin client, where `adminApi(ctx)` lazily binds `*AsAdmin` methods
328
+ * onto the instance) must pass a resolver so the generic dispatcher targets
329
+ * the rebound client instead of the stale bare `apiClient` — otherwise the
330
+ * methods are undefined and dispatch fails with "API method not found".
331
+ * See issue #17508.
332
+ */
333
+ resolveClient?: (ctx: AuthenticatedContext | CommandContext) => unknown;
322
334
  }
323
335
  /**
324
336
  * @deprecated Use `simpleCrudCommands()` for new code — it provides compile-time
@@ -452,7 +464,7 @@ interface ConciergeSmsResult {
452
464
  messageSid: string;
453
465
  conversationId: string;
454
466
  }
455
- declare function originateConciergeCall(ctx: AuthenticatedContext, kind?: string): Promise<ConciergeCallResult>;
467
+ declare function originateConciergeCall(ctx: AuthenticatedContext, kind?: string, outboundMessage?: string, clientSurface?: string): Promise<ConciergeCallResult>;
456
468
  declare function originateConciergeSms(ctx: AuthenticatedContext, kind?: string): Promise<ConciergeSmsResult>;
457
469
  declare function startAccountPhoneVerify(ctx: AuthenticatedContext, phone: string): Promise<void>;
458
470
  declare function confirmAccountPhoneVerify(ctx: AuthenticatedContext, code: string): Promise<void>;