@referalli/cli 0.4.15 → 0.4.17

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/CHANGELOG.md CHANGED
@@ -5,6 +5,25 @@ All notable changes to `@referalli/cli` are recorded here. The format follows
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Before 1.0, a minor
6
6
  bump may include breaking changes; they are called out under **Changed**.
7
7
 
8
+ ## 0.4.17 - 2026-11-19
9
+
10
+ ### Added
11
+ - `doctor` checks that a billing connection's customerRef can match referrals (`health.billing.customer_ref_namespace.<id>`): it compares the shape of recent referral and billing customerRefs and the program's sign-in connection (an `accountId` key against Atlas user ids fails). It fails a program-scoped run too.
12
+ - `doctor` with a program-scoped key skips nothing: payouts, email and the tracking token come from the new `GET /v1/programs/{id}/doctor-context`. `email.sender.<program>` names the sender each program mails from and warns on the shared Referalli sender or when no provider is configured (no email is sent). `billing.scope.<id>` flags an unscoped billing connection in an org with several programs.
13
+ - `apply`: `customerRefMetadataKeys` on billing connections; a plan warning when the metadata key doesn't look like an Atlas id key for an Atlas program; the create response's `warnings` are printed.
14
+ - `apply --env-out <file>` merges `NEXT_PUBLIC_REFERALLI_TRACKING_TOKEN`, `REFERALLI_BILLING_CONNECTION_ID`, `REFERALLI_BILLING_SECRET` and `REFERALLI_API_KEY` into a dotenv file (mode 600, other lines kept).
15
+ - Program config: `programKey: {name, scopes}` mints the product's own key with a `programs:create` bootstrap key (written to `--secret-file` or `--env-out`, never printed); `auth`, `consent.cookieMunch` and `integrations.lucida` are plan checks (reported as drift for `--check`, never changed by `apply`).
16
+
17
+ ## 0.4.16 - 2026-11-18
18
+
19
+ ### Added
20
+ - `plan` and `apply` take the config file as `--file <path>` as well as positionally.
21
+ - `commissionRule.draft: true` is marked on every plan (`[draft: accrues nothing, terms hidden]`), and `doctor` warns while a program's rule is a draft instead of passing it.
22
+ - Programs take `creditRate` (`{amountMinor, currency}`: what one of your credits costs) in the config.
23
+
24
+ ### Fixed
25
+ - `doctor --program` takes a slug or public handle as `plan` does. A program the key can't see fails at once (exit 1) instead of grading the other checks against nothing.
26
+
8
27
  ## 0.4.15 - 2026-11-18
9
28
 
10
29
  ### Added
@@ -17,6 +17,29 @@ interface ProgramSpec extends Obj {
17
17
  secretKeyEnv?: string;
18
18
  };
19
19
  refereeReward?: Obj | null;
20
+ /** Mint a program-scoped key for this program (needs a `programs:create` bootstrap key or an admin one); written to --secret-file / --env-out, never printed. */
21
+ programKey?: {
22
+ name: string;
23
+ scopes?: string[];
24
+ owner?: string;
25
+ };
26
+ /** Check only: the program has this sign-in connection. */
27
+ auth?: {
28
+ provider: string;
29
+ instanceId?: string;
30
+ };
31
+ /** Check only: the program's consent mode is cookiemunch, with this site registered. */
32
+ consent?: {
33
+ cookieMunch?: {
34
+ cbid: string;
35
+ };
36
+ };
37
+ /** Check only: reported, never changed. */
38
+ integrations?: {
39
+ lucida?: {
40
+ projectId: string;
41
+ };
42
+ };
20
43
  }
21
44
  interface WebhookSpec extends Obj {
22
45
  /** whe_…: matches the endpoint by id, so its url can change (R-10). */
@@ -78,6 +101,8 @@ export interface Change {
78
101
  kind: string;
79
102
  label: string;
80
103
  fields: Field[];
104
+ /** A check the CLI can't fix (auth, consent): it counts as drift for --check, and apply reports it without changing anything. */
105
+ checkOnly?: boolean;
81
106
  /** Performs the change; returns once-shown secrets as [label, value]. */
82
107
  run?: (ctx: RunCtx) => Promise<Array<[string, string]>>;
83
108
  }
@@ -87,6 +112,8 @@ interface RunCtx {
87
112
  ids: Map<string, string>;
88
113
  /** Printed at once, never to --secret-file. */
89
114
  out(line: string): void;
115
+ /** Values for --env-out (REFERALLI_BILLING_SECRET, REFERALLI_API_KEY…), set by the changes that learn them. */
116
+ envOut: Map<string, string>;
90
117
  }
91
118
  /** Every row of a list endpoint: a plain array, or the 2026-11-01 list envelope followed page by page. */
92
119
  export declare function listAll<T extends {
@@ -98,6 +125,8 @@ export declare function buildPlan(client: Client, config: ApplyConfig, env: Node
98
125
  }): Promise<{
99
126
  changes: Change[];
100
127
  ids: Map<string, string>;
128
+ envOut: Map<string, string>;
129
+ warnings: string[];
101
130
  }>;
102
131
  /** Plan lines. Values come from the file and the API's public fields: no secret is ever in them. */
103
132
  export declare function formatPlan(changes: Change[]): string[];
@@ -107,11 +136,14 @@ export interface ApplyIo {
107
136
  }
108
137
  /** A secret's dotenv name: its label, upper snake case (the label goes above it as a comment). */
109
138
  export declare const secretEnvName: (label: string) => string;
139
+ /** Set `vars` in a dotenv file: an existing line for a name is replaced in place, new names are appended, every other line stays. */
140
+ export declare function mergeEnvFile(path: string, vars: Map<string, string>): void;
110
141
  export declare function runApply(io: ApplyIo, client: Client, file: string, opts: {
111
142
  apply: boolean;
112
143
  check: boolean;
113
144
  prune?: boolean;
114
145
  secretFile?: string;
115
146
  secretFormat?: string;
147
+ envOut?: string;
116
148
  }): Promise<number>;
117
149
  export {};
package/dist/src/apply.js CHANGED
@@ -14,7 +14,7 @@ export class ConfigError extends Error {
14
14
  // Program fields compared against GET /v1/programs/{id} and sent as-is on PATCH.
15
15
  const PROGRAM_TOP = ['name', 'attributionModel', 'cookieWindowDays', 'signupToConversionDays', 'termsMd', 'status', 'publicHandle'];
16
16
  // Program settings: PATCH takes them top-level, GET returns them under `settings`.
17
- const PROGRAM_SETTINGS = ['probabilisticPolicy', 'selfReferralPolicy', 'splitCommissions', 'allowPaidSearch', 'challengeLinks', 'settlement', 'howItWorksMd'];
17
+ const PROGRAM_SETTINGS = ['probabilisticPolicy', 'selfReferralPolicy', 'splitCommissions', 'allowPaidSearch', 'challengeLinks', 'settlement', 'creditRate', 'howItWorksMd'];
18
18
  // Passed through to PATCH as-is; read back top-level, else under `settings` (R-07/R-22/R-31 fields).
19
19
  const PROGRAM_PASS = ['termsUrl', 'faqUrl', 'supportUrl', 'trackingConsent'];
20
20
  // Mappings merged into what's live: only the keys the file names are compared, and PATCH sends the live block with them applied.
@@ -27,11 +27,11 @@ const PROGRAM_BLOCKS = {
27
27
  };
28
28
  // Blocks GET returns under `settings`.
29
29
  const SETTINGS_BLOCKS = ['riskPolicy', 'widget', 'notificationEmails'];
30
- const PROGRAM_KEYS = ['slug', ...PROGRAM_TOP, ...PROGRAM_SETTINGS, ...PROGRAM_PASS, ...Object.keys(PROGRAM_BLOCKS), 'destinationUrl', 'commissionRule', 'stripeCredits', 'refereeReward'];
30
+ const PROGRAM_KEYS = ['slug', ...PROGRAM_TOP, ...PROGRAM_SETTINGS, ...PROGRAM_PASS, ...Object.keys(PROGRAM_BLOCKS), 'destinationUrl', 'commissionRule', 'stripeCredits', 'refereeReward', 'programKey', 'auth', 'consent', 'integrations'];
31
31
  const STRIPE_KEYS = ['enabled', 'referrerMatch', 'metadataKey', 'refereeRewards', 'balanceCurrency', 'createCustomerIfMissing', 'waitForCustomer', 'secretKeyEnv'];
32
32
  const WEBHOOK_KEYS = ['id', 'url', 'topics', 'programs', 'status', 'alertContacts', 'managedBy'];
33
33
  const API_KEY_KEYS = ['name', 'owner', 'mode', 'scopes', 'expiresInDays', 'programs', 'apiVersion'];
34
- const BILLING_KEYS = ['name', 'provider', 'programs', 'status', 'customerRefMetadataKey', 'filter', 'stripeKeyEnv'];
34
+ const BILLING_KEYS = ['name', 'provider', 'programs', 'status', 'customerRefMetadataKey', 'customerRefMetadataKeys', 'filter', 'stripeKeyEnv'];
35
35
  // Compared only when listed. shortcut: no metadata keys (GET doesn't return them), so no drift check; set them with `referalli api`.
36
36
  const AUTH_FIELDS = ['name', 'status', 'autoEnrollUsers', 'destinationUrl', 'resolveBillingCustomers', 'signatureVersion', 'allowedOrigins'];
37
37
  const AUTH_KEYS = ['provider', 'program', 'instanceId', 'appId', 'tokenVerification', ...AUTH_FIELDS];
@@ -45,6 +45,13 @@ const SECTIONS = ['programs', 'webhooks', 'apiKeys', 'billingConnections', 'auth
45
45
  const SECRET_KEYS = ['secretKey', 'stripeKey', 'webhookSecret', 'credentials', 'apiKey', 'sharedSecret', 'identitySecret'];
46
46
  // What the API stores when a rule leaves these out (packages/commissions ruleConfigSchema).
47
47
  const RULE_DEFAULTS = { appliesTo: 'gross', recurring: { type: 'lifetime' }, holdDays: 30, rounding: 'half_even', overrides: [] };
48
+ /** What `programKey` mints when the file names no scopes: the standard program-key set (the most a bootstrap key may hand out). */
49
+ const DEFAULT_PROGRAM_KEY_SCOPES = [
50
+ 'programs:read', 'programs:write', 'partners:read', 'commissions:read', 'commissions:write', 'billing:read', 'billing:write',
51
+ 'webhooks:read', 'webhooks:write', 'connections:read', 'connections:write', 'links:read', 'referrals:read', 'events:write',
52
+ ];
53
+ /** A metadata key that names an Atlas user id (atlas_user_id, atlasUserId, userId, sub…), as opposed to an account or org id. */
54
+ const looksLikeAtlasIdKey = (k) => /atlas|^user[_.-]?id$|^sub$|^owner[_.-]?(user)?[_.-]?id$/i.test(k);
48
55
  const isObj = (v) => typeof v === 'object' && v !== null && !Array.isArray(v);
49
56
  function checkKeys(o, allowed, where, required, movedTo) {
50
57
  if (!isObj(o))
@@ -107,6 +114,27 @@ export function parseConfig(text, file = 'config') {
107
114
  // null turns it off; a mapping is the PUT /v1/programs/{id}/referee-reward body.
108
115
  if (p.refereeReward !== undefined && p.refereeReward !== null && !isObj(p.refereeReward))
109
116
  throw new ConfigError(`${where}.refereeReward: expected a mapping (or null to turn it off)`);
117
+ if (p.programKey !== undefined) {
118
+ checkKeys(p.programKey, ['name', 'scopes', 'owner'], `${where}.programKey`, 'name');
119
+ const sc = p.programKey.scopes;
120
+ if (sc !== undefined && (!Array.isArray(sc) || sc.length === 0 || sc.some((x) => typeof x !== 'string')))
121
+ throw new ConfigError(`${where}.programKey.scopes: expected a list of scopes`);
122
+ }
123
+ if (p.auth !== undefined) {
124
+ checkKeys(p.auth, ['provider', 'instanceId'], `${where}.auth`, 'provider');
125
+ if (p.auth.provider === 'atlas' && (typeof p.auth.instanceId !== 'string' || !p.auth.instanceId))
126
+ throw new ConfigError(`${where}.auth: atlas needs an instanceId`);
127
+ }
128
+ if (p.consent !== undefined) {
129
+ checkKeys(p.consent, ['cookieMunch'], `${where}.consent`);
130
+ if (p.consent.cookieMunch !== undefined)
131
+ checkKeys(p.consent.cookieMunch, ['cbid'], `${where}.consent.cookieMunch`, 'cbid');
132
+ }
133
+ if (p.integrations !== undefined) {
134
+ checkKeys(p.integrations, ['lucida'], `${where}.integrations`);
135
+ if (p.integrations.lucida !== undefined)
136
+ checkKeys(p.integrations.lucida, ['projectId'], `${where}.integrations.lucida`, 'projectId');
137
+ }
110
138
  return p;
111
139
  });
112
140
  const slugs = programs.map((p) => p.slug);
@@ -138,6 +166,10 @@ export function parseConfig(text, file = 'config') {
138
166
  throw new ConfigError(`${where}: "provider" is required`);
139
167
  if (b.status !== undefined && b.status !== 'active' && b.status !== 'paused')
140
168
  throw new ConfigError(`${where}.status: active or paused`);
169
+ const keys = b.customerRefMetadataKeys;
170
+ if (keys !== undefined && (!Array.isArray(keys) || keys.length > 5 || keys.some((k) => typeof k !== 'string' || !/^[A-Za-z0-9_.-]{1,64}$/.test(k)))) {
171
+ throw new ConfigError(`${where}.customerRefMetadataKeys: a list of at most 5 metadata keys`);
172
+ }
141
173
  if (b.stripeKeyEnv !== undefined && b.provider !== 'stripe')
142
174
  throw new ConfigError(`${where}: stripeKeyEnv is for provider "stripe"`);
143
175
  return b;
@@ -243,6 +275,14 @@ const programIdsFor = (ctx, slugs) => slugs?.length
243
275
  /** Compare the file with the account; nothing is written. */
244
276
  export async function buildPlan(client, config, env, opts = {}) {
245
277
  const changes = [];
278
+ const envOut = new Map();
279
+ const warnings = [];
280
+ // Read lazily, at most once: a key that can't read them just skips the check that needs them.
281
+ const lazy = (fn) => {
282
+ let p;
283
+ return () => (p ??= fn().catch(() => null));
284
+ };
285
+ const authList = lazy(() => listAll(client, '/v1/auth/connections'));
246
286
  const programs = await listAll(client, '/v1/programs');
247
287
  const ids = new Map(programs.map((p) => [p.slug, p.id]));
248
288
  const slugOf = new Map(programs.map((p) => [p.id, p.slug]));
@@ -302,7 +342,8 @@ export async function buildPlan(client, config, env, opts = {}) {
302
342
  }
303
343
  if (spec.commissionRule) {
304
344
  const want = { ...RULE_DEFAULTS, ...spec.commissionRule };
305
- const rlabel = `commissionRule "${spec.slug}"`;
345
+ // A draft accrues nothing: said on every plan, unchanged ones too (convertmepls R3).
346
+ const rlabel = `commissionRule "${spec.slug}"${spec.commissionRule.draft === true ? ' [draft: accrues nothing, terms hidden]' : ''}`;
306
347
  const latest = cur ? (await listAll(client, `/v1/commission-rules?programId=${encodeURIComponent(cur.id)}`))[0] : undefined;
307
348
  const publish = async (ctx) => {
308
349
  const programId = ctx.ids.get(spec.slug);
@@ -378,6 +419,73 @@ export async function buildPlan(client, config, env, opts = {}) {
378
419
  },
379
420
  });
380
421
  }
422
+ // Checks the CLI reports and does not fix: the sign-in connection, the consent site, the Lucida project.
423
+ if (spec.auth) {
424
+ const a = spec.auth;
425
+ const label = `auth ${a.provider}${a.instanceId ? ` ${a.instanceId}` : ''} on "${spec.slug}" (check)`;
426
+ const conns = cur ? ((await authList()) ?? []).filter((c) => c.programId === cur.id) : [];
427
+ const hit = conns.find((c) => c.provider === a.provider && (c.instanceId ?? null) === (a.instanceId ?? null));
428
+ const fields = !hit
429
+ ? [[a.instanceId ? 'instanceId' : 'provider', conns.map((c) => c.instanceId ?? c.provider).join(', ') || '(no sign-in connection)', a.instanceId ?? a.provider]]
430
+ : hit.status && hit.status !== 'active'
431
+ ? [['status', hit.status, 'active']]
432
+ : [];
433
+ changes.push({ action: fields.length ? 'update' : 'noop', kind: 'auth', label, fields, checkOnly: true });
434
+ }
435
+ if (spec.consent?.cookieMunch) {
436
+ const { cbid } = spec.consent.cookieMunch;
437
+ const live = cur ? (cur.trackingConsent ?? cur.settings.trackingConsent ?? null) : null;
438
+ const fields = live === 'cookiemunch' ? [] : [['trackingConsent', live, 'cookiemunch']];
439
+ const sites = cur ? await client.request('GET', '/v1/org/consent-partners/cookiemunch').catch(() => null) : null;
440
+ const site = sites?.sitePrograms?.find((x) => x.cbid === cbid);
441
+ if (cur && sites && (!site || (site.programIds && !site.programIds.includes(cur.id)))) {
442
+ fields.push(['cookiemunch site', site ? `registered for ${site.programIds.join(', ')}` : '(not registered)', `${cbid} for this program (POST /v1/org/consent-partners/cookiemunch/link)`]);
443
+ }
444
+ changes.push({ action: fields.length ? 'update' : 'noop', kind: 'consent', label: `consent cookieMunch ${cbid} on "${spec.slug}" (check)`, fields, checkOnly: true });
445
+ }
446
+ if (spec.integrations?.lucida) {
447
+ // shortcut: the Lucida integration is org-level (host + key, PUT /v1/integrations/lucida) with no project id of its own, so the project id is only reported.
448
+ const live = await client.request('GET', '/v1/integrations').catch(() => null);
449
+ const state = !live ? "can't read the org's integrations with this key" : live.lucida?.connected ? 'connected (org-level)' : 'not connected';
450
+ changes.push({
451
+ action: live && !live.lucida?.connected ? 'update' : 'noop',
452
+ kind: 'integration',
453
+ label: `integrations lucida projectId ${spec.integrations.lucida.projectId} on "${spec.slug}": ${state}; the project id is not stored by Referalli (check only)`,
454
+ fields: live && !live.lucida?.connected ? [['lucida', 'not connected', 'PUT /v1/integrations/lucida {host, apiKey}']] : [],
455
+ checkOnly: true,
456
+ });
457
+ }
458
+ // A program-scoped key for the product itself, minted by the bootstrap key (programs:create) or an admin one.
459
+ if (spec.programKey) {
460
+ const pk = spec.programKey;
461
+ const label = `programKey "${pk.name}" for "${spec.slug}"`;
462
+ const scopes = pk.scopes ?? DEFAULT_PROGRAM_KEY_SCOPES;
463
+ const keys = cur ? await listAll(client, '/v1/api-keys').catch(() => null) : null;
464
+ const have = keys?.some((k) => k.name === pk.name && !k.revokedAt && (k.programIds ?? []).includes(cur.id));
465
+ if (have) {
466
+ changes.push({ action: 'noop', kind: 'programKey', label, fields: [] });
467
+ }
468
+ else {
469
+ if (cur) {
470
+ await client.request('POST', '/v1/api-keys?dryRun=1', { name: pk.name, scopes, programIds: [cur.id], ...(pk.owner ? { owner: pk.owner } : {}) }).catch((err) => {
471
+ throw new ConfigError(`${label}: ${err instanceof Error ? err.message : String(err)}`);
472
+ });
473
+ }
474
+ changes.push({
475
+ action: 'create',
476
+ kind: 'programKey',
477
+ label: keys === null && cur ? `${label} (this key can't list keys, so an existing one can't be seen: apply this once)` : label,
478
+ fields: [['scopes', undefined, scopes], ['programs', undefined, [spec.slug]]],
479
+ run: async (ctx) => {
480
+ const res = await create(ctx.client, '/v1/api-keys', 'programkey', `${spec.slug}\n${pk.name}`, { name: pk.name, scopes, programIds: [ctx.ids.get(spec.slug)], ...(pk.owner ? { owner: pk.owner } : {}) });
481
+ // One key in the caller's mode (a pair only when the caller asked for both).
482
+ const minted = (res.key ?? res.live?.key);
483
+ ctx.envOut.set('REFERALLI_API_KEY', minted);
484
+ return [[`programKey ${pk.name}`, minted]];
485
+ },
486
+ });
487
+ }
488
+ }
381
489
  }
382
490
  const me = opts.prune ? await client.request('GET', '/v1/me') : null;
383
491
  const fileIds = config.programs.map((p) => ids.get(p.slug)).filter((x) => Boolean(x));
@@ -523,10 +631,21 @@ export async function buildPlan(client, config, env, opts = {}) {
523
631
  const cur = matches[0];
524
632
  // programs and status are always managed (like webhooks); the optional fields only when the file sets them (null clears).
525
633
  const want = { programs: sorted(spec.programs), status: spec.status ?? 'active' };
526
- for (const k of ['customerRefMetadataKey', 'filter'])
634
+ for (const k of ['customerRefMetadataKey', 'customerRefMetadataKeys', 'filter'])
527
635
  if (spec[k] !== undefined)
528
636
  want[k] = spec[k];
637
+ // REF-B2: an Atlas program reports referrals under the Atlas user id; a billing key holding another id never matches.
638
+ const refKeys = [spec.customerRefMetadataKey, ...(spec.customerRefMetadataKeys ?? [])].filter((k) => typeof k === 'string' && k !== '');
639
+ if (refKeys.length && !refKeys.some(looksLikeAtlasIdKey)) {
640
+ const programIdsOf = (spec.programs?.length ? spec.programs : config.programs.map((p) => p.slug)).map((sl) => ids.get(sl)).filter((x) => Boolean(x));
641
+ const atlas = ((await authList()) ?? []).filter((a) => a.provider === 'atlas' && (!programIdsOf.length || programIdsOf.includes(a.programId)));
642
+ if (atlas.length) {
643
+ warnings.push(`${label}: customerRefMetadataKey "${refKeys.join('", "')}" doesn't look like an Atlas user-id key, but ${atlas.length === 1 ? 'its program signs' : 'its programs sign'} users in through Atlas, which reports referrals under the Atlas user id (user_…). If that metadata holds anything else (an account or org id), no payment will match a referral: check with referalli doctor (billing.customer_ref_namespace).`);
644
+ }
645
+ }
529
646
  const apiBody = (ctx, keys) => Object.fromEntries(keys.map((k) => (k === 'programs' ? ['programIds', programIdsFor(ctx, spec.programs)] : [k, want[k]])));
647
+ if (cur && !envOut.has('REFERALLI_BILLING_CONNECTION_ID'))
648
+ envOut.set('REFERALLI_BILLING_CONNECTION_ID', cur.id);
530
649
  if (!cur) {
531
650
  const key = spec.stripeKeyEnv;
532
651
  if (key && !env[key])
@@ -547,6 +666,13 @@ export async function buildPlan(client, config, env, opts = {}) {
547
666
  // POST takes no status: pause right after creating.
548
667
  if (status === 'paused')
549
668
  await ctx.client.request('PATCH', `/v1/billing/connections/${made.id}`, { status });
669
+ for (const w of made.warnings ?? [])
670
+ ctx.out(`Warning: ${label}: ${w}`);
671
+ if (!ctx.envOut.has('REFERALLI_BILLING_CONNECTION_ID')) {
672
+ ctx.envOut.set('REFERALLI_BILLING_CONNECTION_ID', made.id);
673
+ if (made.status !== 'awaiting_secret' && typeof made.webhookSecret === 'string')
674
+ ctx.envOut.set('REFERALLI_BILLING_SECRET', made.webhookSecret);
675
+ }
550
676
  // awaiting_secret: the generated secret can't verify this provider; the provider's own is set later with PUT …/secret.
551
677
  return typeof made.webhookSecret === 'string' && made.status !== 'awaiting_secret' ? [[label, made.webhookSecret]] : [];
552
678
  },
@@ -560,6 +686,7 @@ export async function buildPlan(client, config, env, opts = {}) {
560
686
  programs: sorted((cur.programIds ?? []).map((id) => slugOf.get(id) ?? id)),
561
687
  status: cur.status === 'awaiting_secret' ? 'active' : cur.status,
562
688
  customerRefMetadataKey: cur.customerRefMetadataKey,
689
+ customerRefMetadataKeys: cur.customerRefMetadataKeys ?? [],
563
690
  filter: cur.filter,
564
691
  };
565
692
  const fields = Object.keys(want).filter((k) => !same(now[k], want[k])).map((k) => [k, now[k], want[k]]);
@@ -773,7 +900,7 @@ export async function buildPlan(client, config, env, opts = {}) {
773
900
  },
774
901
  });
775
902
  }
776
- return { changes, ids };
903
+ return { changes, ids, envOut, warnings };
777
904
  }
778
905
  /** Edit distance, for "did you mean". */
779
906
  function distance(a, b) {
@@ -869,9 +996,49 @@ function saveSecrets(path, format, secrets) {
869
996
  renameSync(tmp, path);
870
997
  return path;
871
998
  }
999
+ /**
1000
+ * --env-out: the values a product's .env needs, merged into the file (other lines kept, mode 600).
1001
+ * The tracking token is public; the billing secret and the minted key are written only when this run has them.
1002
+ */
1003
+ async function writeEnvOut(io, client, config, ids, learned, path) {
1004
+ const vars = new Map(learned);
1005
+ const first = config.programs.map((p) => ids.get(p.slug)).find(Boolean);
1006
+ if (first) {
1007
+ const prog = await client.request('GET', `/v1/programs/${encodeURIComponent(first)}`).catch(() => null);
1008
+ if (prog?.trackingToken)
1009
+ vars.set('NEXT_PUBLIC_REFERALLI_TRACKING_TOKEN', prog.trackingToken);
1010
+ }
1011
+ mergeEnvFile(path, vars);
1012
+ const names = [...vars.keys()];
1013
+ const missing = ['REFERALLI_BILLING_SECRET'].filter((k) => !vars.has(k) && config.billingConnections.length > 0);
1014
+ return `Wrote ${names.join(', ') || 'nothing'} to ${path} (mode 600)${missing.length ? `; ${missing.join(', ')} left as it is (a secret is only known when this run creates it)` : ''}.`;
1015
+ }
1016
+ /** Set `vars` in a dotenv file: an existing line for a name is replaced in place, new names are appended, every other line stays. */
1017
+ export function mergeEnvFile(path, vars) {
1018
+ const before = existsSync(path) ? readFileSync(path, 'utf8') : '';
1019
+ const lines = before === '' ? [] : before.replace(/\n$/, '').split('\n');
1020
+ const left = new Map(vars);
1021
+ const out = lines.map((l) => {
1022
+ const name = /^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=/.exec(l)?.[1];
1023
+ if (name && left.has(name)) {
1024
+ const v = left.get(name);
1025
+ left.delete(name);
1026
+ return `${name}=${v}`;
1027
+ }
1028
+ return l;
1029
+ });
1030
+ for (const [k, v] of left)
1031
+ out.push(`${k}=${v}`);
1032
+ const tmp = `${path}.tmp-${process.pid}`;
1033
+ writeFileSync(tmp, `${out.join('\n')}\n`, { mode: 0o600 });
1034
+ chmodSync(tmp, 0o600);
1035
+ renameSync(tmp, path);
1036
+ }
872
1037
  export async function runApply(io, client, file, opts) {
873
1038
  const config = parseConfig(readFileSync(file, 'utf8'), file);
874
- const { changes, ids } = await buildPlan(client, config, io.env, { prune: opts.prune });
1039
+ const { changes, ids, envOut, warnings } = await buildPlan(client, config, io.env, { prune: opts.prune });
1040
+ for (const w of warnings)
1041
+ io.out(`Warning: ${w}`);
875
1042
  for (const line of formatPlan(changes))
876
1043
  io.out(line);
877
1044
  // Deletes last: whatever the file adds is in place before anything goes.
@@ -881,8 +1048,25 @@ export async function runApply(io, client, file, opts) {
881
1048
  io.out('Drift: the account does not match the file.');
882
1049
  return pending.length ? 2 : 0; // 2, not 1: CI can tell drift from an error
883
1050
  }
884
- if (!opts.apply || pending.length === 0)
1051
+ if (!opts.apply)
885
1052
  return 0;
1053
+ const checkOnly = pending.filter((c) => c.checkOnly);
1054
+ // A bootstrap key can't list keys, so the plan can't see a program key it minted before: the env file holding one counts as having it.
1055
+ const keyOnFile = !!opts.envOut && existsSync(opts.envOut) && /^REFERALLI_API_KEY=\S/m.test(readFileSync(opts.envOut, 'utf8'));
1056
+ const runnable = pending.filter((c) => !c.checkOnly && !(keyOnFile && c.kind === 'programKey'));
1057
+ if (keyOnFile && pending.some((c) => c.kind === 'programKey'))
1058
+ io.out(`programKey: ${opts.envOut} already has REFERALLI_API_KEY, not minting another`);
1059
+ for (const c of checkOnly)
1060
+ io.out(`Needs you (not changed by apply): ${c.label}`);
1061
+ // A minted program key is never printed: it goes to a file.
1062
+ if (runnable.some((c) => c.kind === 'programKey') && !opts.secretFile && !opts.envOut) {
1063
+ throw new ConfigError('programKey mints a key that is never printed: pass --secret-file PATH or --env-out PATH to receive it');
1064
+ }
1065
+ if (runnable.length === 0) {
1066
+ if (opts.envOut)
1067
+ io.out(await writeEnvOut(io, client, config, ids, envOut, opts.envOut));
1068
+ return 0;
1069
+ }
886
1070
  // Checked first: a secret file that can't be written after the creates would lose the secrets.
887
1071
  const format = opts.secretFormat === 'env' || (!opts.secretFormat && /\.env$|(^|\/)\.env[^/]*$/.test(opts.secretFile ?? '')) ? 'env' : 'json';
888
1072
  if (opts.secretFormat && !['env', 'json'].includes(opts.secretFormat))
@@ -890,10 +1074,10 @@ export async function runApply(io, client, file, opts) {
890
1074
  // An existing file must be one we can add to; its names are checked again after the creates.
891
1075
  if (opts.secretFile && existsSync(opts.secretFile))
892
1076
  existingSecretNames(opts.secretFile, format);
893
- const ctx = { client, ids, out: (line) => io.out(line) };
1077
+ const ctx = { client, ids, out: (line) => io.out(line), envOut };
894
1078
  const secrets = [];
895
1079
  try {
896
- for (const c of pending) {
1080
+ for (const c of runnable) {
897
1081
  secrets.push(...(await c.run(ctx)));
898
1082
  io.out(`${c.action === 'create' ? 'Created' : c.action === 'delete' ? 'Deleted' : 'Updated'} ${c.label}`);
899
1083
  }
@@ -906,12 +1090,20 @@ export async function runApply(io, client, file, opts) {
906
1090
  ? `New secrets written to ${saved} (mode 600). They are shown once.`
907
1091
  : `${opts.secretFile} already has a secret with one of these names, so the new ones went to ${saved} (mode 600). They are shown once.`);
908
1092
  }
909
- else if (secrets.length) {
910
- io.out('New secrets, shown once. Store them now:');
911
- for (const [label, value] of secrets)
912
- io.out(` ${label} ${value}`);
1093
+ else {
1094
+ // A secret that --env-out writes to its file isn't printed as well.
1095
+ const onFile = new Set(opts.envOut ? envOut.values() : []);
1096
+ const shown = secrets.filter(([label, value]) => !label.startsWith('programKey ') && !onFile.has(value));
1097
+ if (shown.length) {
1098
+ io.out('New secrets, shown once. Store them now:');
1099
+ for (const [label, value] of shown)
1100
+ io.out(` ${label} ${value}`);
1101
+ }
913
1102
  }
1103
+ // In the finally too, so a failed later change can't lose a secret meant for the env file.
1104
+ if (opts.envOut)
1105
+ io.out(await writeEnvOut(io, client, config, ids, envOut, opts.envOut));
914
1106
  }
915
- io.out(`Apply complete: ${pending.length} change(s).`);
1107
+ io.out(`Apply complete: ${runnable.length} change(s).`);
916
1108
  return 0;
917
1109
  }
@@ -39,7 +39,7 @@ export declare function logsTail(io: Io, flags: Flags): Promise<number>;
39
39
  export declare function keys(io: Io, sub: string | undefined, arg: string | undefined, flags: Flags): Promise<number>;
40
40
  export declare function api(io: Io, method: string | undefined, path: string | undefined, flags: Flags): Promise<number>;
41
41
  /** `referalli plan <file> [--prune]` / `referalli apply <file> [--plan] [--check] [--prune] [--secret-file PATH]`. */
42
- export declare function apply(io: Io, file: string | undefined, flags: Flags, planOnly: boolean): Promise<number>;
42
+ export declare function apply(io: Io, positional: string | undefined, flags: Flags, planOnly: boolean): Promise<number>;
43
43
  /** `referalli doctor [--program <id>] [--json]`, or `--scan <dir> [--strict]`, which needs no key. */
44
44
  export declare function doctor(io: Io, flags: Flags): Promise<number>;
45
45
  /**
@@ -436,9 +436,13 @@ export async function api(io, method, path, flags) {
436
436
  const SECRET_FIELDS = ['webhookSecret', 'secret', 'key'];
437
437
  // --- plan / apply ------------------------------------------------------------------
438
438
  /** `referalli plan <file> [--prune]` / `referalli apply <file> [--plan] [--check] [--prune] [--secret-file PATH]`. */
439
- export async function apply(io, file, flags, planOnly) {
439
+ export async function apply(io, positional, flags, planOnly) {
440
+ // `--file` as other ForgeDeck CLIs take it (convertmepls R6); the file is positional otherwise.
441
+ const file = positional ?? (typeof flags.file === 'string' ? flags.file : undefined);
442
+ if (positional && typeof flags.file === 'string' && flags.file !== positional)
443
+ throw new CliError('give the config file once: positionally or with --file');
440
444
  if (!file)
441
- throw new CliError(planOnly ? 'Usage: referalli plan <referalli.yaml> [--check] [--prune]' : 'Usage: referalli apply <referalli.yaml> [--plan] [--check] [--prune] [--secret-file PATH] [--secret-format env|json]');
445
+ throw new CliError(planOnly ? 'Usage: referalli plan <referalli.yaml> [--check] [--prune]' : 'Usage: referalli apply <referalli.yaml> [--plan] [--check] [--prune] [--secret-file PATH] [--secret-format env|json] [--env-out PATH]');
442
446
  const { client } = signedIn(io);
443
447
  try {
444
448
  return await runApply(io, client, file, {
@@ -447,6 +451,7 @@ export async function apply(io, file, flags, planOnly) {
447
451
  prune: flags.prune === true,
448
452
  secretFile: typeof flags['secret-file'] === 'string' ? flags['secret-file'] : undefined,
449
453
  secretFormat: typeof flags['secret-format'] === 'string' ? flags['secret-format'] : undefined,
454
+ envOut: typeof flags['env-out'] === 'string' ? flags['env-out'] : undefined,
450
455
  });
451
456
  }
452
457
  catch (err) {
@@ -40,6 +40,21 @@ async function keyCheck(client, now) {
40
40
  }
41
41
  return { checks: out, key: k };
42
42
  }
43
+ /** A program id for an id, slug or public handle; null when this key can't see one. */
44
+ async function resolveProgram(client, ref) {
45
+ if (ref.startsWith('prg_')) {
46
+ try {
47
+ return (await client.request('GET', `/v1/programs/${encodeURIComponent(ref)}`)).id;
48
+ }
49
+ catch (err) {
50
+ if (err instanceof ApiError && err.status === 404)
51
+ return null;
52
+ throw err;
53
+ }
54
+ }
55
+ const all = rows(await client.request('GET', '/v1/programs'));
56
+ return all.find((p) => p.slug === ref || p.publicHandle === ref)?.id ?? null;
57
+ }
43
58
  /** The programs doctor checks: the scope's (each fetched), else every active one. */
44
59
  async function loadPrograms(client, scope) {
45
60
  return scope
@@ -58,7 +73,10 @@ async function termsChecks(client, programs) {
58
73
  return [{ id: 'programs', status: 'warn', message: 'no active programs', fix: '/programs' }];
59
74
  return Promise.all(programs.map((p) => guard(`program.${p.id}.terms`, undefined, async () => {
60
75
  try {
61
- await client.request('GET', `/v1/programs/${encodeURIComponent(p.id)}/terms`);
76
+ const terms = await client.request('GET', `/v1/programs/${encodeURIComponent(p.id)}/terms`);
77
+ if (terms?.draft) {
78
+ return [{ id: `program.${p.id}.terms`, status: 'warn', message: `program "${p.name}"'s commission rule is a draft: it accrues nothing, and partners and the join page see no terms`, fix: 'publish the rule without draft once it is decided (remove draft: true from commissionRule, then apply)' }];
79
+ }
62
80
  return [{ id: `program.${p.id}.terms`, status: 'ok', message: `program "${p.name}" has a commission rule` }];
63
81
  }
64
82
  catch (err) {
@@ -200,8 +218,10 @@ function programConsentCheck(programs, scope) {
200
218
  }
201
219
  async function trackingCheck(client, env, programs, scope,
202
220
  /** A program-scoped key: no org read; the token comes from the program (the consent check runs from the programs). */
203
- scopedKey = null) {
204
- const fromProgram = scopedKey ? programs.find((p) => p.trackingToken)?.trackingToken : undefined;
221
+ scopedKey = null,
222
+ /** The token from doctor-context, for an API whose program GET lacks it. */
223
+ contextToken) {
224
+ const fromProgram = scopedKey ? (programs.find((p) => p.trackingToken)?.trackingToken ?? contextToken) : undefined;
205
225
  if (scopedKey && !fromProgram)
206
226
  throw new ApiError(403, 'program_scoped_key', 'older API: no trackingToken on the program'); // skipped as before
207
227
  const org = fromProgram
@@ -267,12 +287,69 @@ async function healthChecks(client, scope, billing, tally) {
267
287
  const id = `health.${h.id}`;
268
288
  if (h.ok)
269
289
  return { id, status: 'ok', message: h.detail };
270
- const severe = !scope && (h.severity === 'error' || h.severity === 'critical');
290
+ // The customerRef namespace check reads only this key's own connections (RLS), so it fails a scoped run too.
291
+ const severe = (!scope || h.id.startsWith('billing.customer_ref_namespace.')) && (h.severity === 'error' || h.severity === 'critical');
271
292
  const fix = [h.fix, h.docs].filter(Boolean).join(' ');
272
293
  const status = severe ? 'fail' : h.severity === 'info' ? 'info' : 'warn';
273
294
  return { id, status, message: h.detail, ...(fix ? { fix } : {}) };
274
295
  });
275
296
  }
297
+ /** The context of each program, or null when the API predates the endpoint (the checks then read the org directly). */
298
+ async function loadContexts(client, programs) {
299
+ try {
300
+ const all = await Promise.all(programs.map((p) => client.request('GET', `/v1/programs/${encodeURIComponent(p.id)}/doctor-context`)));
301
+ return new Map(all.map((c) => [c.programId, c]));
302
+ }
303
+ catch (err) {
304
+ if (err instanceof ApiError && (err.status === 404 || err.status === 403))
305
+ return null;
306
+ throw err;
307
+ }
308
+ }
309
+ function payoutContextChecks(programs, ctxs, live) {
310
+ const paying = programs.filter((p) => p.status === 'active' && (p.settings?.settlement ?? 'payout') === 'payout');
311
+ if (paying.length === 0)
312
+ return [];
313
+ if (!live)
314
+ return [{ id: 'payouts.connection', status: 'ok', message: 'test mode pays every method through the test rail' }];
315
+ const active = [...new Set([...ctxs.values()].flatMap((c) => c.payouts.connections.filter((x) => x.status === 'active').map((x) => x.provider)))];
316
+ if (active.length)
317
+ return [{ id: 'payouts.connection', status: 'ok', message: `payout connection: ${active.join(', ')}` }];
318
+ const names = paying.map((p) => `"${p.name}"`).join(', ');
319
+ return [{ id: 'payouts.connection', status: 'warn', message: `no payout connection while ${names} settle by payout: partners can only be paid by hand`, fix: 'PUT /v1/payout-connections/{provider} (Settings → Payouts), or settlement: merchant_credit' }];
320
+ }
321
+ /** Which sender each program mails from today (REF-X5). Email is bring-your-own-key: with none configured nothing is sent unless the operator runs its own transport. */
322
+ function emailContextChecks(programs, ctxs) {
323
+ return programs.flatMap((p) => {
324
+ const e = ctxs.get(p.id)?.email;
325
+ if (!e)
326
+ return [];
327
+ const id = `email.sender.${p.id}`;
328
+ const reviewing = p.publicPage?.autoApprove === false;
329
+ if (e.source === 'program' || e.source === 'org') {
330
+ const verify = e.domainStatus && e.domainStatus !== 'verified' && e.domainStatus !== 'unknown' ? ` (sending domain ${e.domainStatus})` : '';
331
+ const check = { id, status: verify ? 'warn' : 'ok', message: `"${p.name}" mails from ${e.fromAddress ?? 'the provider default'} through ${e.provider} (${e.source === 'program' ? "the program's own" : "the org's"} provider)${verify}` };
332
+ return [verify ? { ...check, fix: 'POST /v1/email/settings/verify-domain' } : check];
333
+ }
334
+ if (e.source === 'platform') {
335
+ return [{ id, status: 'warn', message: `"${p.name}" has no bring-your-own sender: it mails from the shared Referalli sender ${e.fromAddress ?? ''}, not from your domain`, fix: 'PUT /v1/email/settings {"provider":"…","apiKey":"…","fromAddress":"…"}, or PUT /v1/programs/{id}/email-settings for one program' }];
336
+ }
337
+ return [{ id, status: reviewing ? 'warn' : 'info', message: `no email provider is configured for "${p.name}": no email is sent${reviewing ? ', and partners wait for approval without hearing back' : ''}`, fix: 'PUT /v1/email/settings {"provider":"…","apiKey":"…","fromAddress":"…"} (bring your own key), or PUT /v1/programs/{id}/email-settings for one program' }];
338
+ });
339
+ }
340
+ /** REF-B5: with several programs, a billing connection with no programIds is matched against every one of them. */
341
+ function billingScopeChecks(conns, programCount) {
342
+ if (programCount < 2)
343
+ return [];
344
+ return conns
345
+ .filter((c) => !c.programIds?.length && c.status !== 'deleted')
346
+ .map((c) => ({
347
+ id: `billing.scope.${c.id}`,
348
+ status: 'warn',
349
+ message: `billing connection "${c.name || c.id}" has no programIds: its events can earn for referrals in any of the org's ${programCount} programs`,
350
+ fix: `PATCH /v1/billing/connections/${c.id} {"programIds":["prg_…"]}`,
351
+ }));
352
+ }
276
353
  /** A program settling by payout with no payout connection: partners can only be paid by hand. Test mode pays through the test rail. */
277
354
  async function payoutChecks(client, programs, live) {
278
355
  const paying = programs.filter((p) => p.status === 'active' && (p.settings?.settlement ?? 'payout') === 'payout');
@@ -391,12 +468,16 @@ async function e2eChecks(client, programId, fetchFn, env) {
391
468
  .request('GET', '/v1/org')
392
469
  .then((o) => o.trackingToken)
393
470
  .catch((err) => {
394
- if (err instanceof ApiError && err.status === 403)
395
- return env.REFERALLI_TRACKING_TOKEN ?? env.NEXT_PUBLIC_REFERALLI_TRACKING_TOKEN;
396
- throw err;
471
+ if (!(err instanceof ApiError && err.status === 403))
472
+ throw err;
473
+ // A program key can't read the org, but doctor-context carries the (public) token.
474
+ return client
475
+ .request('GET', `/v1/programs/${encodeURIComponent(programId)}/doctor-context`)
476
+ .then((c) => c.tracking.trackingToken)
477
+ .catch(() => env.REFERALLI_TRACKING_TOKEN ?? env.NEXT_PUBLIC_REFERALLI_TRACKING_TOKEN);
397
478
  });
398
479
  if (!trackingToken) {
399
- return [{ id: 'e2e', status: 'warn', message: "skipped: this key can't read the org's tracking token", fix: 'set REFERALLI_TRACKING_TOKEN and run again' }];
480
+ return [{ id: 'e2e', status: 'warn', message: "skipped: the tracking token couldn't be read (older API)", fix: 'set REFERALLI_TRACKING_TOKEN and run again' }];
400
481
  }
401
482
  const live = me.apiKey?.livemode !== false;
402
483
  const scriptPath = `/t/${encodeURIComponent(trackingToken)}/aff.js`;
@@ -460,8 +541,18 @@ async function e2eChecks(client, programId, fetchFn, env) {
460
541
  * Scope (R-08): --program (REFERALLI_PROGRAM_ID fills it in), else the key's programs, else every active program.
461
542
  */
462
543
  export async function runDoctor(io, client, flags, now = new Date()) {
463
- const program = typeof flags.program === 'string' ? flags.program : undefined;
464
544
  const { checks: key, key: apiKey } = await keyCheck(client, now);
545
+ // A slug works as it does in plan and apply; a program that can't be found stops here (exit 1) instead of grading
546
+ // every other check against nothing (convertmepls R1).
547
+ let program = typeof flags.program === 'string' ? flags.program : undefined;
548
+ if (program) {
549
+ const found = await resolveProgram(client, program);
550
+ if (!found) {
551
+ printChecks((l) => io.out(l), [...key, { id: 'program', status: 'fail', message: `no program "${program}" that this key can see (by id, slug or public handle)`, fix: 'referalli api GET /v1/programs (lists the ids and slugs)' }], flags.json);
552
+ return 1;
553
+ }
554
+ program = found;
555
+ }
465
556
  const scoped = Boolean(apiKey?.programIds);
466
557
  const scope = program ? [program] : (apiKey?.programIds ?? null);
467
558
  const fetchFn = io.fetchFn ?? fetch;
@@ -485,6 +576,9 @@ export async function runDoctor(io, client, flags, now = new Date()) {
485
576
  });
486
577
  // Read once: the billing checks and the health checks' tally both need it (health: empty if it can't be read; billing says why).
487
578
  const billingList = client.request('GET', '/v1/billing/connections').then(rows);
579
+ // Read once: payouts, email and the tracking token come redacted from the API, so a program-scoped key skips nothing.
580
+ const contexts = await loadContexts(client, programs).catch(() => null);
581
+ const live = apiKey?.livemode !== false;
488
582
  const checks = [
489
583
  ...key,
490
584
  ...programChecks,
@@ -492,11 +586,13 @@ export async function runDoctor(io, client, flags, now = new Date()) {
492
586
  guard('webhooks', undefined, () => webhookChecks(client, scope, tally)),
493
587
  guard('billing', undefined, async () => billingChecks(scope, await billingList, tally)),
494
588
  orgWide('auth', () => authChecks(client, now, programs, scope, tally)),
495
- orgWide('tracking', () => trackingCheck(client, io.env, programs, scope, scoped ? { livemode: apiKey?.livemode !== false } : null)),
589
+ orgWide('tracking', () => trackingCheck(client, io.env, programs, scope, scoped ? { livemode: live } : null, contexts?.values().next().value?.tracking.trackingToken)),
496
590
  ...(scoped && scope ? [guard('tracking.consent', undefined, async () => programConsentCheck(programs, scope))] : []),
497
591
  orgWide('health', async () => healthChecks(client, scope, await billingList.catch(() => []), tally)),
498
- orgWide('payouts', () => payoutChecks(client, programs, apiKey?.livemode !== false)),
499
- orgWide('email', () => emailChecks(client, programs)),
592
+ ...(contexts
593
+ ? [guard('payouts', undefined, async () => payoutContextChecks(programs, contexts, live)), guard('email', undefined, async () => emailContextChecks(programs, contexts))]
594
+ : [orgWide('payouts', () => payoutChecks(client, programs, live)), orgWide('email', () => emailChecks(client, programs))]),
595
+ ...(!scope ? [guard('billing.scope', undefined, async () => billingScopeChecks(await billingList, programs.length))] : []),
500
596
  guard('commissions', undefined, () => unpaidChecks(client, programs, now)),
501
597
  guard('join', undefined, () => joinChecks(client, programs, fetchFn)),
502
598
  ...(flags.e2e && program ? [guard('e2e', undefined, () => e2eChecks(client, program, fetchFn, io.env))] : []),
@@ -3,6 +3,6 @@ export { readConfig, writeConfig, configPath, type CliConfig } from './config.js
3
3
  export { createClient, ApiError } from './client.js';
4
4
  export type { Io } from './commands.js';
5
5
  export { VERSION } from './version.js';
6
- export declare const HELP = "referalli: the Referalli command line\n\nUsage:\n referalli login [--key rk_\u2026] [--base-url URL] [--no-browser]\n referalli logout\n referalli whoami\n referalli listen [--forward-to URL] [--events topic,topic] [--max-events N]\n referalli trigger <topic> [--data JSON]\n referalli trigger --billing <event> --connection <id> [--data JSON] (test mode; e.g. payment.paid)\n referalli trigger --stripe <event> --connection <id> [--data JSON] (test mode)\n referalli events tail [--events topic,topic] [--since 1h|ISO] [--json] [--max N]\n referalli logs tail [--max N]\n referalli open [docs|dashboard|keys|webhooks|spec|status]\n referalli api <METHOD> <path> [--data JSON] [--secret-file PATH]\n referalli keys create --name NAME [--owner WHO] [--mode both|live|test] [--scopes full,\u2026] [--programs ID,\u2026] [--expires-days N | --expires-at ISO]\n referalli keys list [--owner WHO] [--mode live|test]\n referalli keys revoke <key id> [--pair] [--cascade]\n referalli plan <referalli.yaml> [--check] [--prune]\n referalli apply <referalli.yaml> [--plan] [--check] [--prune] [--secret-file PATH] [--secret-format env|json]\n referalli doctor [--program <id>] [--json]\n referalli doctor --program <id> --e2e [--json] (also tests the program from outside; see the docs)\n referalli doctor --scan <dir> [--strict] [--json] (old Referally names in a source tree; no key needed)\n referalli partners list --program <id> [--since 7d|ISO] [--json]\n referalli billing owner set <accountRef> <customerRef> (the user an organization's payments earn for)\n referalli env pull [--mode live|test] (.env lines on stdout; default: the key's mode)\n\nEnvironment:\n REFERALLI_API_KEY use this key instead of the saved login\n REFERALLI_API_URL API base URL (default: the hosted API)\n REFERALLI_CONFIG_DIR where the login is saved (default ~/.config/referalli)\n REFERALLI_TRACKING_TOKEN doctor checks it is this mode's token (or NEXT_PUBLIC_REFERALLI_TRACKING_TOKEN)\n REFERALLI_PROGRAM_ID the default for --program (doctor, partners list)\n REFERALLY_* spellings of these still work, with a notice";
6
+ export declare const HELP = "referalli: the Referalli command line\n\nUsage:\n referalli login [--key rk_\u2026] [--base-url URL] [--no-browser]\n referalli logout\n referalli whoami\n referalli listen [--forward-to URL] [--events topic,topic] [--max-events N]\n referalli trigger <topic> [--data JSON]\n referalli trigger --billing <event> --connection <id> [--data JSON] (test mode; e.g. payment.paid)\n referalli trigger --stripe <event> --connection <id> [--data JSON] (test mode)\n referalli events tail [--events topic,topic] [--since 1h|ISO] [--json] [--max N]\n referalli logs tail [--max N]\n referalli open [docs|dashboard|keys|webhooks|spec|status]\n referalli api <METHOD> <path> [--data JSON] [--secret-file PATH]\n referalli keys create --name NAME [--owner WHO] [--mode both|live|test] [--scopes full,\u2026] [--programs ID,\u2026] [--expires-days N | --expires-at ISO]\n referalli keys list [--owner WHO] [--mode live|test]\n referalli keys revoke <key id> [--pair] [--cascade]\n referalli plan <referalli.yaml> [--check] [--prune] (or --file <referalli.yaml>)\n referalli apply <referalli.yaml> [--plan] [--check] [--prune] [--secret-file PATH] [--secret-format env|json] [--env-out PATH]\n referalli doctor [--program <id>] [--json]\n referalli doctor --program <id> --e2e [--json] (also tests the program from outside; see the docs)\n referalli doctor --scan <dir> [--strict] [--json] (old Referally names in a source tree; no key needed)\n referalli partners list --program <id> [--since 7d|ISO] [--json]\n referalli billing owner set <accountRef> <customerRef> (the user an organization's payments earn for)\n referalli env pull [--mode live|test] (.env lines on stdout; default: the key's mode)\n\nEnvironment:\n REFERALLI_API_KEY use this key instead of the saved login\n REFERALLI_API_URL API base URL (default: the hosted API)\n REFERALLI_CONFIG_DIR where the login is saved (default ~/.config/referalli)\n REFERALLI_TRACKING_TOKEN doctor checks it is this mode's token (or NEXT_PUBLIC_REFERALLI_TRACKING_TOKEN)\n REFERALLI_PROGRAM_ID the default for --program (doctor, partners list)\n REFERALLY_* spellings of these still work, with a notice";
7
7
  /** Run one command; returns the process exit code. */
8
8
  export declare function runCli(argv: string[], baseIo: Io): Promise<number>;
package/dist/src/index.js CHANGED
@@ -23,8 +23,8 @@ Usage:
23
23
  referalli keys create --name NAME [--owner WHO] [--mode both|live|test] [--scopes full,…] [--programs ID,…] [--expires-days N | --expires-at ISO]
24
24
  referalli keys list [--owner WHO] [--mode live|test]
25
25
  referalli keys revoke <key id> [--pair] [--cascade]
26
- referalli plan <referalli.yaml> [--check] [--prune]
27
- referalli apply <referalli.yaml> [--plan] [--check] [--prune] [--secret-file PATH] [--secret-format env|json]
26
+ referalli plan <referalli.yaml> [--check] [--prune] (or --file <referalli.yaml>)
27
+ referalli apply <referalli.yaml> [--plan] [--check] [--prune] [--secret-file PATH] [--secret-format env|json] [--env-out PATH]
28
28
  referalli doctor [--program <id>] [--json]
29
29
  referalli doctor --program <id> --e2e [--json] (also tests the program from outside; see the docs)
30
30
  referalli doctor --scan <dir> [--strict] [--json] (old Referally names in a source tree; no key needed)
@@ -66,6 +66,8 @@ export async function runCli(argv, baseIo) {
66
66
  program: { type: 'string' },
67
67
  'secret-file': { type: 'string' },
68
68
  'secret-format': { type: 'string' },
69
+ 'env-out': { type: 'string' },
70
+ file: { type: 'string' },
69
71
  name: { type: 'string' },
70
72
  owner: { type: 'string' },
71
73
  mode: { type: 'string' },
package/dist/src/scan.js CHANGED
@@ -10,7 +10,7 @@ const PUBLISHED = new Set(['cli', 'express', 'mcp', 'next', 'react', 'react-nati
10
10
  const packageName = (old) => {
11
11
  const name = old.slice('@referally/'.length);
12
12
  if (name === 'sdk-js')
13
- return 'referalli';
13
+ return '@referalli/sdk';
14
14
  return PUBLISHED.has(name) ? `@referalli/${name}` : 'no published replacement';
15
15
  };
16
16
  // Dates come from docs: Renamed from Referally (the cookie twin goes first, the rest on one later date).
@@ -1,2 +1,2 @@
1
1
  /** Kept in step with package.json by test/version.test.ts. */
2
- export declare const VERSION = "0.4.15";
2
+ export declare const VERSION = "0.4.17";
@@ -1,2 +1,2 @@
1
1
  /** Kept in step with package.json by test/version.test.ts. */
2
- export const VERSION = '0.4.15';
2
+ export const VERSION = '0.4.17';
@@ -1 +1 @@
1
- {"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/version.ts","../src/client.ts","../src/apply.ts","../src/doctor.ts","../src/config.ts","../src/scan.ts","../src/commands.ts","../src/index.ts","../src/js-yaml.d.ts","../bin/referalli.ts","../node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/compatibility/index.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/@types/node/web-globals/events.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/@types/node/web-globals/navigator.d.ts","../node_modules/@types/node/web-globals/storage.d.ts","../node_modules/@types/node/web-globals/streams.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/inspector.generated.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/index.d.ts"],"fileIdsList":[[65,73,122,123,139,140],[73,119,120,122,139,140],[73,121,122,139,140],[122,139,140],[73,122,127,139,140,157],[73,122,123,128,133,139,140,142,154,165],[73,122,123,124,133,139,140,142],[73,122,139,140],[68,69,70,73,122,139,140],[73,122,125,139,140,166],[73,122,126,127,134,139,140,143],[73,122,127,139,140,154,162],[73,122,128,130,133,139,140,142],[73,121,122,129,139,140],[73,122,130,131,139,140],[73,122,132,133,139,140],[73,121,122,133,139,140],[73,122,133,134,135,139,140,154,165],[73,122,133,134,135,139,140,149,154,157],[73,114,122,130,133,136,139,140,142,154,165],[73,122,133,134,136,137,139,140,142,154,162,165],[73,122,136,138,139,140,154,162,165],[71,72,73,74,75,76,77,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,133,139,140],[73,122,139,140,141,165],[73,122,130,133,139,140,142,154],[73,122,139,140,143],[73,122,139,140,144],[73,121,122,139,140,145],[73,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,139,140,147],[73,122,139,140,148],[73,122,133,139,140,149,150],[73,122,139,140,149,151,166,168],[73,122,134,139,140],[73,122,133,139,140,154,155,157],[73,122,139,140,156,157],[73,122,139,140,154,155],[73,122,139,140,157],[73,122,139,140,158],[73,119,122,139,140,154,159,165],[73,122,133,139,140,160,161],[73,122,139,140,160,161],[73,122,127,139,140,142,154,162],[73,122,139,140,163],[73,122,139,140,142,164],[73,122,136,139,140,148,165],[73,122,127,139,140,166],[73,122,139,140,154,167],[73,122,139,140,141,168],[73,122,139,140,169],[73,114,122,139,140],[73,114,122,133,135,139,140,145,154,157,165,167,168,170],[73,122,139,140,154,171],[73,86,90,122,139,140,165],[73,86,122,139,140,154,165],[73,81,122,139,140],[73,83,86,122,139,140,162,165],[73,122,139,140,142,162],[73,122,139,140,172],[73,81,122,139,140,172],[73,83,86,122,139,140,142,165],[73,78,79,82,85,122,133,139,140,154,165],[73,86,93,122,139,140],[73,78,84,122,139,140],[73,86,107,108,122,139,140],[73,82,86,122,139,140,157,165,172],[73,107,122,139,140,172],[73,80,81,122,139,140,172],[73,86,122,139,140],[73,80,81,82,83,84,85,86,87,88,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,122,139,140],[73,86,101,122,139,140],[73,86,93,94,122,139,140],[73,84,86,94,95,122,139,140],[73,85,122,139,140],[73,78,81,86,122,139,140],[73,86,90,94,95,122,139,140],[73,90,122,139,140],[73,84,86,89,122,139,140,165],[73,78,83,86,93,122,139,140],[73,122,139,140,154],[73,81,86,107,122,139,140,170,172],[59,66,73,122,127,134,139,140],[58,73,122,139,140],[59,60,61,62,63,73,122,134,139,140,143],[73,122,134,139,140,143,144],[59,60,64,73,122,139,140],[58,59,62,64,73,122,139,140,166],[61,62,73,122,134,139,140,144]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f0477eed676fe4772fa12c26be6149672d5d61f7dbdb87b6e038ccae6c2d290","signature":"daf787a12d089367c793f2e39076fab4471bb4067977d2fc3427a0acb051400f","impliedFormat":99},{"version":"c58a2a87046e206bcbd57d946de30bd61a973456ba50711ebddc486ed8ac6c57","signature":"83741aedae654b45ef4bd8b77929b33490944f9ea501e9a0e91c00b65e0b127b","impliedFormat":99},{"version":"3a0204f4d13ab8d60c06d4446d1010ca1af00026c3a1076699ad8f7363c5e321","signature":"80fd762b8d840dca3c6c1123394faa3db36a553fd1de1ab0515814e26acd9c71","impliedFormat":99},{"version":"37da9c3c3ceeefdc5e0720d52a7816fd10b01de6540a5e8ba9c1e0d07b37a597","signature":"5ade39dc52cd82f452940a44b5128bd1a6e39fb3d3aa123a4dbbcf53a2dfcfd9","impliedFormat":99},{"version":"ad999352afd126ccaa80f34272e3ec0b79b61e86b93d62ef69a31c61db3e68df","signature":"ccca076cc18e7a15e11d094277bae19200e6a761c56be3192a19d94afc983d53","impliedFormat":99},{"version":"c6d5963f61f3cbdae1e9dd42012cf26859e3b5a62412aee929f85500dbf9b620","signature":"ddc386978107fff37feb46e6ea8b387e7d561558df9334eced1d57967896f3f5","impliedFormat":99},{"version":"cc3d78b135927c22a7dd0572b7990059de54d0221305f04871ff1904d2646292","signature":"c65caba6f2bbf9ec3e24e10ce22e70a99bbe19040c3b01c7897861c1140e3d46","impliedFormat":99},{"version":"49ff07dbfc9ee6b7062faab775c9376b697496bd37de12dbb0b9db829646be38","signature":"f773fd5d3802bba0ad6a3ff3082470f65d2a10c308cd6427d10961f8ef7f5396","impliedFormat":99},{"version":"919b3225931164d97ecfc319c934dca71cf48980d2f47c6af3ace86a186a1638","impliedFormat":99},{"version":"440728a6de45e5caee615e6264e31aad14e362608593a7ca02e6fab16d906684","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"913be43dad2a40e500104700aa26cfb5c51a976114bedf19624de43fdae7474f","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"78dbea00e90d2df8ea3dbef0cc379d95b8be9b71cd6bde4c28728f306811803b","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e1e46d0a9837ee058c100501080c920fa98081ea3956af0374308ba6f22a33e","impliedFormat":1},{"version":"272ca407e0c9068bdc5152552d876e68037ceae3de62e529306403e973dec8e1","impliedFormat":1},{"version":"fa7834c715d5357e4540cee40ce96c3250ddb67a7b879a6b7fa0e86d6696f121","impliedFormat":1},{"version":"22dfb07a7ab15b66ac043829056fe70124844636ae719551812ac631ba04985b","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"0cb167c371eaa8c869f8a7656a7296f2e4fae43b4d8b803a680236b24794e5f9","impliedFormat":1},{"version":"0a839dba0287cc0481ad4beedd48a1c64acf1e212ae865d1315f7007ca215161","impliedFormat":1},{"version":"38dc4655376cd1a4bd6bb3763d92949233e33d38d3dd3cbea7bbf218175a38ef","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"208a6a0bfb227bdf8fb964799d0a206c75cf03ccd72e63bf5495c9331354c6d6","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"48a679952eefe4cb776d5a0e1ccba2d3eb53b57448bbb7abc1fcebcbd5440188","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2d14da6ecb49bf828d83948765ec2d3a579d476bbb9645e749610baa6ec880ca","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"0aef708fb4c7a6b915e8305cbfac40cd207b032dbaabe9a01889a5fff3254681","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"ad9bdafb4e7abf14cc53ce7970486a84c87831e62891e5dfe798ddcd55e84701","affectsGlobalScope":true,"impliedFormat":1},{"version":"45479f65af737a3e5c26d8772bd8ab1aa8bebbd09c1a808c2b3faddb9b84afbb","impliedFormat":1},{"version":"71d3ae6a5e73ca4130762560425e00984ebaff64d5353a3333d1bb7eb86ef336","impliedFormat":1}],"root":[[58,67]],"options":{"declaration":true,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":false,"strict":true,"target":9,"verbatimModuleSyntax":true},"referencedMap":[[67,1],[119,2],[120,2],[121,3],[73,4],[122,5],[123,6],[124,7],[68,8],[71,9],[69,8],[70,8],[125,10],[126,11],[127,12],[128,13],[129,14],[130,15],[131,15],[132,16],[133,17],[134,18],[135,19],[74,8],[72,8],[136,20],[137,21],[138,22],[172,23],[139,24],[140,8],[141,25],[142,26],[143,27],[144,28],[145,29],[146,30],[147,31],[148,32],[149,33],[150,33],[151,34],[152,8],[153,35],[154,36],[156,37],[155,38],[157,39],[158,40],[159,41],[160,42],[161,43],[162,44],[163,45],[164,46],[165,47],[166,48],[167,49],[168,50],[169,51],[75,8],[76,8],[77,8],[115,52],[116,8],[117,8],[118,39],[170,53],[171,54],[56,8],[57,8],[11,8],[10,8],[2,8],[12,8],[13,8],[14,8],[15,8],[16,8],[17,8],[18,8],[19,8],[3,8],[20,8],[21,8],[4,8],[22,8],[26,8],[23,8],[24,8],[25,8],[27,8],[28,8],[29,8],[5,8],[30,8],[31,8],[32,8],[33,8],[6,8],[37,8],[34,8],[35,8],[36,8],[38,8],[7,8],[39,8],[44,8],[45,8],[40,8],[41,8],[42,8],[43,8],[8,8],[49,8],[46,8],[47,8],[48,8],[50,8],[9,8],[51,8],[52,8],[53,8],[55,8],[54,8],[1,8],[93,55],[103,56],[92,55],[113,57],[84,58],[83,59],[112,60],[106,61],[111,62],[86,63],[100,64],[85,65],[109,66],[81,67],[80,60],[110,68],[82,69],[87,70],[88,8],[91,70],[78,8],[114,71],[104,72],[95,73],[96,74],[98,75],[94,76],[97,77],[107,60],[89,78],[90,79],[99,80],[79,81],[102,72],[101,70],[105,8],[108,82],[60,83],[59,84],[64,85],[62,86],[61,87],[65,88],[66,8],[63,89],[58,8]],"version":"5.9.3"}
1
+ {"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/version.ts","../src/client.ts","../src/apply.ts","../src/doctor.ts","../src/config.ts","../src/scan.ts","../src/commands.ts","../src/index.ts","../src/js-yaml.d.ts","../bin/referalli.ts","../node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/compatibility/index.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/@types/node/web-globals/events.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/@types/node/web-globals/navigator.d.ts","../node_modules/@types/node/web-globals/storage.d.ts","../node_modules/@types/node/web-globals/streams.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/inspector.generated.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/index.d.ts"],"fileIdsList":[[65,73,122,123,139,140],[73,119,120,122,139,140],[73,121,122,139,140],[122,139,140],[73,122,127,139,140,157],[73,122,123,128,133,139,140,142,154,165],[73,122,123,124,133,139,140,142],[73,122,139,140],[68,69,70,73,122,139,140],[73,122,125,139,140,166],[73,122,126,127,134,139,140,143],[73,122,127,139,140,154,162],[73,122,128,130,133,139,140,142],[73,121,122,129,139,140],[73,122,130,131,139,140],[73,122,132,133,139,140],[73,121,122,133,139,140],[73,122,133,134,135,139,140,154,165],[73,122,133,134,135,139,140,149,154,157],[73,114,122,130,133,136,139,140,142,154,165],[73,122,133,134,136,137,139,140,142,154,162,165],[73,122,136,138,139,140,154,162,165],[71,72,73,74,75,76,77,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,133,139,140],[73,122,139,140,141,165],[73,122,130,133,139,140,142,154],[73,122,139,140,143],[73,122,139,140,144],[73,121,122,139,140,145],[73,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,139,140,147],[73,122,139,140,148],[73,122,133,139,140,149,150],[73,122,139,140,149,151,166,168],[73,122,134,139,140],[73,122,133,139,140,154,155,157],[73,122,139,140,156,157],[73,122,139,140,154,155],[73,122,139,140,157],[73,122,139,140,158],[73,119,122,139,140,154,159,165],[73,122,133,139,140,160,161],[73,122,139,140,160,161],[73,122,127,139,140,142,154,162],[73,122,139,140,163],[73,122,139,140,142,164],[73,122,136,139,140,148,165],[73,122,127,139,140,166],[73,122,139,140,154,167],[73,122,139,140,141,168],[73,122,139,140,169],[73,114,122,139,140],[73,114,122,133,135,139,140,145,154,157,165,167,168,170],[73,122,139,140,154,171],[73,86,90,122,139,140,165],[73,86,122,139,140,154,165],[73,81,122,139,140],[73,83,86,122,139,140,162,165],[73,122,139,140,142,162],[73,122,139,140,172],[73,81,122,139,140,172],[73,83,86,122,139,140,142,165],[73,78,79,82,85,122,133,139,140,154,165],[73,86,93,122,139,140],[73,78,84,122,139,140],[73,86,107,108,122,139,140],[73,82,86,122,139,140,157,165,172],[73,107,122,139,140,172],[73,80,81,122,139,140,172],[73,86,122,139,140],[73,80,81,82,83,84,85,86,87,88,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,122,139,140],[73,86,101,122,139,140],[73,86,93,94,122,139,140],[73,84,86,94,95,122,139,140],[73,85,122,139,140],[73,78,81,86,122,139,140],[73,86,90,94,95,122,139,140],[73,90,122,139,140],[73,84,86,89,122,139,140,165],[73,78,83,86,93,122,139,140],[73,122,139,140,154],[73,81,86,107,122,139,140,170,172],[59,66,73,122,127,134,139,140],[58,73,122,139,140],[59,60,61,62,63,73,122,134,139,140,143],[73,122,134,139,140,143,144],[59,60,64,73,122,139,140],[58,59,62,64,73,122,139,140,166],[61,62,73,122,134,139,140,144]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"bd0eba7e55757aa6af069537b2690921d8a05387ac9191c3939a20b192cb70cb","signature":"9ac1021b5ef29cf4e78c68c0d0d89705864136914f819a2e46b94f7e3169a8b5","impliedFormat":99},{"version":"c58a2a87046e206bcbd57d946de30bd61a973456ba50711ebddc486ed8ac6c57","signature":"83741aedae654b45ef4bd8b77929b33490944f9ea501e9a0e91c00b65e0b127b","impliedFormat":99},{"version":"e35b701b885555ef31d437ad69f158611b980be5bfab5abed4e7d5afc6a6245f","signature":"37bbbb9d66b0ae0517bccda2d747e9041f767e27cf33e8a3b38830833c76499f","impliedFormat":99},{"version":"09c449f414990670a22fbe0012f204c7005fadaaa7124956713e57044060aba9","signature":"5ade39dc52cd82f452940a44b5128bd1a6e39fb3d3aa123a4dbbcf53a2dfcfd9","impliedFormat":99},{"version":"ad999352afd126ccaa80f34272e3ec0b79b61e86b93d62ef69a31c61db3e68df","signature":"ccca076cc18e7a15e11d094277bae19200e6a761c56be3192a19d94afc983d53","impliedFormat":99},{"version":"66dcc654137647ba3d89b4e5c2a70d592fc0a7178f4b2aaaabbe2bfcf608be24","signature":"ddc386978107fff37feb46e6ea8b387e7d561558df9334eced1d57967896f3f5","impliedFormat":99},{"version":"37a4c3c4b82e56c97c66dad3bf6684f7dbf51f9ee2fdfbecbab93d9021624d89","signature":"27cc15b7b2de6c10490e7a4743e652fcc4edc6b24cbf2891fbd30dba236928f2","impliedFormat":99},{"version":"d2dcf62e7cf4b05e09c48eb720a64e19d1d816278fdeba3916ac68bfc97156a0","signature":"d9180e8be51dba67603ade4ef482126300468003db02eba745f703b1e95731ae","impliedFormat":99},{"version":"919b3225931164d97ecfc319c934dca71cf48980d2f47c6af3ace86a186a1638","impliedFormat":99},{"version":"440728a6de45e5caee615e6264e31aad14e362608593a7ca02e6fab16d906684","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"913be43dad2a40e500104700aa26cfb5c51a976114bedf19624de43fdae7474f","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"78dbea00e90d2df8ea3dbef0cc379d95b8be9b71cd6bde4c28728f306811803b","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e1e46d0a9837ee058c100501080c920fa98081ea3956af0374308ba6f22a33e","impliedFormat":1},{"version":"272ca407e0c9068bdc5152552d876e68037ceae3de62e529306403e973dec8e1","impliedFormat":1},{"version":"fa7834c715d5357e4540cee40ce96c3250ddb67a7b879a6b7fa0e86d6696f121","impliedFormat":1},{"version":"22dfb07a7ab15b66ac043829056fe70124844636ae719551812ac631ba04985b","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"0cb167c371eaa8c869f8a7656a7296f2e4fae43b4d8b803a680236b24794e5f9","impliedFormat":1},{"version":"0a839dba0287cc0481ad4beedd48a1c64acf1e212ae865d1315f7007ca215161","impliedFormat":1},{"version":"38dc4655376cd1a4bd6bb3763d92949233e33d38d3dd3cbea7bbf218175a38ef","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"208a6a0bfb227bdf8fb964799d0a206c75cf03ccd72e63bf5495c9331354c6d6","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"48a679952eefe4cb776d5a0e1ccba2d3eb53b57448bbb7abc1fcebcbd5440188","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2d14da6ecb49bf828d83948765ec2d3a579d476bbb9645e749610baa6ec880ca","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"0aef708fb4c7a6b915e8305cbfac40cd207b032dbaabe9a01889a5fff3254681","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"ad9bdafb4e7abf14cc53ce7970486a84c87831e62891e5dfe798ddcd55e84701","affectsGlobalScope":true,"impliedFormat":1},{"version":"45479f65af737a3e5c26d8772bd8ab1aa8bebbd09c1a808c2b3faddb9b84afbb","impliedFormat":1},{"version":"71d3ae6a5e73ca4130762560425e00984ebaff64d5353a3333d1bb7eb86ef336","impliedFormat":1}],"root":[[58,67]],"options":{"declaration":true,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":false,"strict":true,"target":9,"verbatimModuleSyntax":true},"referencedMap":[[67,1],[119,2],[120,2],[121,3],[73,4],[122,5],[123,6],[124,7],[68,8],[71,9],[69,8],[70,8],[125,10],[126,11],[127,12],[128,13],[129,14],[130,15],[131,15],[132,16],[133,17],[134,18],[135,19],[74,8],[72,8],[136,20],[137,21],[138,22],[172,23],[139,24],[140,8],[141,25],[142,26],[143,27],[144,28],[145,29],[146,30],[147,31],[148,32],[149,33],[150,33],[151,34],[152,8],[153,35],[154,36],[156,37],[155,38],[157,39],[158,40],[159,41],[160,42],[161,43],[162,44],[163,45],[164,46],[165,47],[166,48],[167,49],[168,50],[169,51],[75,8],[76,8],[77,8],[115,52],[116,8],[117,8],[118,39],[170,53],[171,54],[56,8],[57,8],[11,8],[10,8],[2,8],[12,8],[13,8],[14,8],[15,8],[16,8],[17,8],[18,8],[19,8],[3,8],[20,8],[21,8],[4,8],[22,8],[26,8],[23,8],[24,8],[25,8],[27,8],[28,8],[29,8],[5,8],[30,8],[31,8],[32,8],[33,8],[6,8],[37,8],[34,8],[35,8],[36,8],[38,8],[7,8],[39,8],[44,8],[45,8],[40,8],[41,8],[42,8],[43,8],[8,8],[49,8],[46,8],[47,8],[48,8],[50,8],[9,8],[51,8],[52,8],[53,8],[55,8],[54,8],[1,8],[93,55],[103,56],[92,55],[113,57],[84,58],[83,59],[112,60],[106,61],[111,62],[86,63],[100,64],[85,65],[109,66],[81,67],[80,60],[110,68],[82,69],[87,70],[88,8],[91,70],[78,8],[114,71],[104,72],[95,73],[96,74],[98,75],[94,76],[97,77],[107,60],[89,78],[90,79],[99,80],[79,81],[102,72],[101,70],[105,8],[108,82],[60,83],[59,84],[64,85],[62,86],[61,87],[65,88],[66,8],[63,89],[58,8]],"version":"5.9.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@referalli/cli",
3
- "version": "0.4.15",
3
+ "version": "0.4.17",
4
4
  "description": "The Referalli command line: sign in, forward webhooks to localhost, trigger test events, tail events and API logs.",
5
5
  "license": "MIT",
6
6
  "type": "module",