@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/README.md +40 -0
- package/dist/{account-verify-phone-TDQNZ5XN.js → account-verify-phone-XNXA7HNG.js} +4 -4
- package/dist/{chunk-H62EC2CF.js → chunk-GVUGFPCN.js} +25 -11
- package/dist/chunk-GVUGFPCN.js.map +1 -0
- package/dist/{chunk-7VZ4JLAJ.js → chunk-WZVMWN3S.js} +2 -1
- package/dist/{chunk-7VZ4JLAJ.js.map → chunk-WZVMWN3S.js.map} +1 -1
- package/dist/{chunk-KTTHOL3B.js → chunk-XJ2EBXJZ.js} +22 -18
- package/dist/chunk-XJ2EBXJZ.js.map +1 -0
- package/dist/{cli-client-context-9KRUt6O-.d.ts → cli-client-context-BbyBEGcg.d.ts} +1 -0
- package/dist/cli-utils.d.ts +7 -3
- package/dist/cli-utils.js +1 -1
- package/dist/{errors-VK4QO3QZ.js → errors-YHGVIDPO.js} +2 -2
- package/dist/gr.js +4621 -1347
- package/dist/gr.js.map +1 -1
- package/dist/lib.d.ts +15 -3
- package/dist/lib.js +2911 -486
- package/dist/lib.js.map +1 -1
- package/package.json +4 -3
- package/dist/chunk-H62EC2CF.js.map +0 -1
- package/dist/chunk-KTTHOL3B.js.map +0 -1
- /package/dist/{account-verify-phone-TDQNZ5XN.js.map → account-verify-phone-XNXA7HNG.js.map} +0 -0
- /package/dist/{errors-VK4QO3QZ.js.map → errors-YHGVIDPO.js.map} +0 -0
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-
|
|
3
|
-
export { a as ConciergeAppContextPayload, b as buildCliConciergeAppContext } from './cli-client-context-
|
|
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>;
|