@epilot/cli 0.1.141 → 0.1.142

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -29,7 +29,7 @@ npm install -g @epilot/cli
29
29
 
30
30
  <!-- usage-help -->
31
31
  ```
32
- epilot v0.1.141 — CLI for epilot APIs
32
+ epilot v0.1.142 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -348,64 +348,55 @@
348
348
  "schemas": {
349
349
  "EnvironmentValueType": {
350
350
  "type": "string",
351
- "description": "The structure a variable's value holds. `SecretString` is encrypted at rest and\nits value is never returned. `Text`, `Number`, `Boolean` and `Options` may be\nserved to browser-facing consumers; `String` and `SecretString` may not.\n",
351
+ "description": "The structure a variable's value holds. `SecretString` is encrypted at rest and\nits value is never returned. `Text`, `Number`, `Boolean` and `Map` may be\nserved to browser-facing consumers; `String` and `SecretString` may not.\n",
352
352
  "enum": [
353
353
  "String",
354
354
  "SecretString",
355
355
  "Text",
356
356
  "Number",
357
357
  "Boolean",
358
- "Options"
358
+ "Map"
359
359
  ]
360
360
  },
361
- "EnvironmentOption": {
362
- "oneOf": [
363
- {
364
- "type": "object",
365
- "required": [
366
- "value",
367
- "label"
368
- ],
369
- "additionalProperties": false,
370
- "properties": {
371
- "value": {
372
- "type": "string",
373
- "minLength": 1
374
- },
375
- "label": {
376
- "type": "string",
377
- "minLength": 1
378
- }
379
- }
361
+ "StringTranslations": {
362
+ "description": "A string translated per language. Keys are language codes (e.g. `de`,\n`en-US`), matching the hyphen-only BCP-47 form epilot's i18n stack uses\neverywhere else. Must match LANGUAGE_KEY_PATTERN in\nsrc/core/value-types.ts — the two are not otherwise linked.\n",
363
+ "type": "object",
364
+ "minProperties": 1,
365
+ "propertyNames": {
366
+ "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]+)*$"
367
+ },
368
+ "additionalProperties": {
369
+ "type": "string",
370
+ "minLength": 1
371
+ }
372
+ },
373
+ "MapEntry": {
374
+ "description": "One entry of a Map. `key` is the token a journey submits; `value` is\nwhat the customer reads — either one string, or one string per\nlanguage. Every entry of a Map must agree on which of the two it uses.\n",
375
+ "type": "object",
376
+ "required": [
377
+ "key",
378
+ "value"
379
+ ],
380
+ "additionalProperties": false,
381
+ "properties": {
382
+ "key": {
383
+ "type": "string",
384
+ "minLength": 1
380
385
  },
381
- {
382
- "type": "object",
383
- "required": [
384
- "value",
385
- "labels"
386
- ],
387
- "additionalProperties": false,
388
- "properties": {
389
- "value": {
386
+ "value": {
387
+ "oneOf": [
388
+ {
390
389
  "type": "string",
391
390
  "minLength": 1
392
391
  },
393
- "labels": {
394
- "type": "object",
395
- "minProperties": 1,
396
- "propertyNames": {
397
- "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]+)*$"
398
- },
399
- "additionalProperties": {
400
- "type": "string",
401
- "minLength": 1
402
- }
392
+ {
393
+ "$ref": "#/components/schemas/StringTranslations"
403
394
  }
404
- }
395
+ ]
405
396
  }
406
- ]
397
+ }
407
398
  },
408
- "OptionsValue": {
399
+ "MapValue": {
409
400
  "type": "object",
410
401
  "required": [
411
402
  "options"
@@ -421,13 +412,13 @@
421
412
  "type": "array",
422
413
  "minItems": 1,
423
414
  "items": {
424
- "$ref": "#/components/schemas/EnvironmentOption"
415
+ "$ref": "#/components/schemas/MapEntry"
425
416
  }
426
417
  }
427
418
  }
428
419
  },
429
420
  "EnvironmentValue": {
430
- "description": "A variable's value. The JSON type corresponds to the variable's `type`:\n`String`, `SecretString` and `Text` are strings, `Number` is a number,\n`Boolean` is a boolean, and `Options` is an object. Numbers are IEEE 754\ndoubles; integers above 2^53 may lose precision on round-trip.\n",
421
+ "description": "A variable's value. The JSON type corresponds to the variable's `type`:\n`String`, `SecretString` and `Text` are strings, `Number` is a number,\n`Boolean` is a boolean, and `Map` is an object. Numbers are IEEE 754\ndoubles; integers above 2^53 may lose precision on round-trip.\n",
431
422
  "oneOf": [
432
423
  {
433
424
  "type": "string"
@@ -439,7 +430,7 @@
439
430
  "type": "boolean"
440
431
  },
441
432
  {
442
- "$ref": "#/components/schemas/OptionsValue"
433
+ "$ref": "#/components/schemas/MapValue"
443
434
  }
444
435
  ]
445
436
  },
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.141",
14
+ version: "0.1.142",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -31,7 +31,7 @@ var main = defineCommand({
31
31
  profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
32
32
  config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
33
33
  completion: () => import("../completion-6OBSXXHS.js").then((m) => m.default),
34
- upgrade: () => import("../upgrade-3YLZVTGJ.js").then((m) => m.default),
34
+ upgrade: () => import("../upgrade-WSLV2SPC.js").then((m) => m.default),
35
35
  "access-token": () => import("../access-token-WWE6BDJH.js").then((m) => m.default),
36
36
  address: () => import("../address-EH3C4CVB.js").then((m) => m.default),
37
37
  "address-suggestions": () => import("../address-suggestions-RRSLOBFW.js").then((m) => m.default),
@@ -134,7 +134,7 @@ process.stderr.on("error", (err) => {
134
134
  if (err.code === "EPIPE") process.exit(0);
135
135
  throw err;
136
136
  });
137
- var VERSION = true ? "0.1.141" : (await null).default.version;
137
+ var VERSION = true ? "0.1.142" : (await null).default.version;
138
138
  var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
139
139
  process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
140
140
  var args = process.argv.slice(2);
@@ -72,7 +72,7 @@ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
72
72
  }
73
73
  });
74
74
  var getCurrentVersion = () => {
75
- if (true) return "0.1.141";
75
+ if (true) return "0.1.142";
76
76
  try {
77
77
  const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
78
78
  encoding: "utf-8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/cli",
3
- "version": "0.1.141",
3
+ "version": "0.1.142",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {