@typeship-ax/cli 0.9.1 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/AGENTS.md +9 -4
  2. package/README.md +4 -4
  3. package/api.json +6257 -589
  4. package/api.md +475 -81
  5. package/dist/cli-agent.d.ts +5 -5
  6. package/dist/cli-agent.d.ts.map +1 -1
  7. package/dist/cli-agent.js +14 -10
  8. package/dist/cli.js +151 -75
  9. package/dist/core/http.d.ts +3 -2
  10. package/dist/core/http.d.ts.map +1 -1
  11. package/dist/core/http.js +18 -6
  12. package/dist/errors.d.ts +17 -10
  13. package/dist/errors.d.ts.map +1 -1
  14. package/dist/errors.js +24 -15
  15. package/dist/index.d.ts +7 -3
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +9 -5
  18. package/dist/ops.d.ts +4 -0
  19. package/dist/ops.d.ts.map +1 -1
  20. package/dist/ops.js +45 -31
  21. package/dist/polling-login.d.ts.map +1 -1
  22. package/dist/polling-login.js +11 -1
  23. package/dist/resources/account.d.ts +4 -4
  24. package/dist/resources/account.d.ts.map +1 -1
  25. package/dist/resources/account.js +10 -5
  26. package/dist/resources/api-keys.d.ts +40 -14
  27. package/dist/resources/api-keys.d.ts.map +1 -1
  28. package/dist/resources/api-keys.js +45 -13
  29. package/dist/resources/definition-revisions.d.ts +35 -18
  30. package/dist/resources/definition-revisions.d.ts.map +1 -1
  31. package/dist/resources/definition-revisions.js +43 -15
  32. package/dist/resources/definitions.d.ts +21 -6
  33. package/dist/resources/definitions.d.ts.map +1 -1
  34. package/dist/resources/definitions.js +16 -3
  35. package/dist/resources/generate.d.ts +44 -15
  36. package/dist/resources/generate.d.ts.map +1 -1
  37. package/dist/resources/generate.js +55 -13
  38. package/dist/resources/generations.d.ts +14 -6
  39. package/dist/resources/generations.d.ts.map +1 -1
  40. package/dist/resources/generations.js +26 -5
  41. package/dist/resources/projects.d.ts +106 -53
  42. package/dist/resources/projects.d.ts.map +1 -1
  43. package/dist/resources/projects.js +78 -31
  44. package/dist/resources/targets.d.ts +285 -22
  45. package/dist/resources/targets.d.ts.map +1 -1
  46. package/dist/resources/targets.js +408 -10
  47. package/dist/schemas.d.ts +1 -0
  48. package/dist/schemas.d.ts.map +1 -1
  49. package/dist/schemas.js +175 -102
  50. package/dist/types.d.ts +2162 -134
  51. package/dist/types.d.ts.map +1 -1
  52. package/dist/types.js +99 -2
  53. package/package.json +3 -3
  54. package/src/cli-agent.ts +17 -13
  55. package/src/cli.ts +138 -70
  56. package/src/core/http.ts +17 -6
  57. package/src/errors.ts +25 -15
  58. package/src/index.ts +9 -5
  59. package/src/ops.ts +49 -31
  60. package/src/polling-login.ts +10 -1
  61. package/src/resources/account.ts +11 -4
  62. package/src/resources/api-keys.ts +84 -13
  63. package/src/resources/definition-revisions.ts +74 -16
  64. package/src/resources/definitions.ts +28 -4
  65. package/src/resources/generate.ts +78 -13
  66. package/src/resources/generations.ts +31 -4
  67. package/src/resources/projects.ts +141 -39
  68. package/src/resources/targets.ts +756 -13
  69. package/src/schemas.ts +176 -103
  70. package/src/types.ts +2372 -189
package/AGENTS.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # typeship — agent context
2
2
 
3
- This package contains the generated CLI for **typeship** (API v1.0.0, package v0.9.1).
3
+ This package contains the generated CLI for **typeship** (API v1.0.0, package v0.20.0).
4
4
 
5
5
  Resolve an OpenAPI or GraphQL Definition, diagnose it, and keep every
6
- selected SDK, CLI, and MCP Target current.
6
+ selected CLI, MCP, and SDK Target current.
7
7
 
8
8
  Every operation but one requires a bearer credential: an organization
9
9
  API key from the console, or an OAuth access token carrying the operation's
@@ -12,9 +12,14 @@ consent. OAuth grants cannot switch organizations after consent. A browser
12
12
  session is not a credential for this API. The exception is POST /generate,
13
13
  which works anonymously with the free plan's limits.
14
14
 
15
+ Examples use Parcel, a fictional delivery service. Replace its domains,
16
+ repository names, and resource identifiers with your own. The hosted
17
+ petstore Definition is a runnable sample.
18
+
15
19
  ## Ground rules
16
- - Typeship owns the files it generates. Change the API definition, generation settings, or definition patches, then regenerate those files. Repository delivery preserves files outside its generated-file ownership manifest; preserving a file does not add it to the package's exports, build, or tests.
17
- - Zero runtime dependencies; the program runs on Node.js 18+ and platform `fetch`.
20
+ - Maintaining this package: when its repository receives reviewed regeneration pull requests, committed customizations are preserved and edits that overlap a generated change stop for review. Regenerating into a directory replaces its files.
21
+ - A custom file ships only when the package manifest, exports, build, and tests include it. Add a package check for every custom build or test step.
22
+ - Zero runtime dependencies; the program runs on Node.js 20+ and platform `fetch`.
18
23
  - `api.md` is the command and flag reference; `api.json` is the machine-readable operation, schema, safety, and example contract. Read them before guessing.
19
24
  - Start with the local build or installation instructions in `README.md`. Generation does not publish a registry package.
20
25
 
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  CLI for typeship. [API reference](./api.md)
4
4
 
5
- Generated from the OpenAPI spec by [typeship](https://typeship.dev). Change the spec or generation settings, then regenerate; generated files are not hand-edited.
5
+ Generated from the OpenAPI spec by [typeship](https://typeship.dev).
6
6
 
7
- - **Zero runtime dependencies** — built on the platform `fetch` in Node 18+
7
+ - **Zero runtime dependencies** — built on the platform `fetch` in Node 20+
8
8
  - **Spec-native CLI** — every operation is a command with typed flags, stable JSON, help, and exit codes
9
9
 
10
10
  ## Build from source
@@ -17,14 +17,14 @@ npm run build
17
17
  node dist/cli.js --help
18
18
  ```
19
19
 
20
- Requires Node.js 18+. The package is ESM.
20
+ Requires Node.js 20+. The package is ESM.
21
21
 
22
22
  ## Install a published package
23
23
 
24
24
  Generation does not publish a package. Before using the registry command below, confirm `name` and `version` in `package.json`, publish under a name you control, and verify that release is available on npm.
25
25
 
26
26
  ```sh
27
- npm install --global @typeship-ax/cli@0.9.1
27
+ npm install --global @typeship-ax/cli@0.20.0
28
28
  ```
29
29
 
30
30
  ## CLI