@typeship-ax/cli 0.6.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 (69) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +40 -0
  3. package/api.json +5163 -0
  4. package/api.md +512 -0
  5. package/dist/cli-agent.d.ts +204 -0
  6. package/dist/cli-agent.d.ts.map +1 -0
  7. package/dist/cli-agent.js +525 -0
  8. package/dist/cli.d.ts +3 -0
  9. package/dist/cli.d.ts.map +1 -0
  10. package/dist/cli.js +2811 -0
  11. package/dist/core/http.d.ts +303 -0
  12. package/dist/core/http.d.ts.map +1 -0
  13. package/dist/core/http.js +770 -0
  14. package/dist/core/pagination.d.ts +51 -0
  15. package/dist/core/pagination.d.ts.map +1 -0
  16. package/dist/core/pagination.js +154 -0
  17. package/dist/dates.d.ts +33 -0
  18. package/dist/dates.d.ts.map +1 -0
  19. package/dist/dates.js +136 -0
  20. package/dist/errors.d.ts +81 -0
  21. package/dist/errors.d.ts.map +1 -0
  22. package/dist/errors.js +103 -0
  23. package/dist/index.d.ts +92 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +86 -0
  26. package/dist/ops.d.ts +115 -0
  27. package/dist/ops.d.ts.map +1 -0
  28. package/dist/ops.js +79 -0
  29. package/dist/resources/account.d.ts +18 -0
  30. package/dist/resources/account.d.ts.map +1 -0
  31. package/dist/resources/account.js +26 -0
  32. package/dist/resources/api-keys.d.ts +37 -0
  33. package/dist/resources/api-keys.d.ts.map +1 -0
  34. package/dist/resources/api-keys.js +67 -0
  35. package/dist/resources/generate.d.ts +25 -0
  36. package/dist/resources/generate.d.ts.map +1 -0
  37. package/dist/resources/generate.js +41 -0
  38. package/dist/resources/generations.d.ts +31 -0
  39. package/dist/resources/generations.d.ts.map +1 -0
  40. package/dist/resources/generations.js +56 -0
  41. package/dist/resources/projects.d.ts +110 -0
  42. package/dist/resources/projects.d.ts.map +1 -0
  43. package/dist/resources/projects.js +220 -0
  44. package/dist/resources/spec-revisions.d.ts +47 -0
  45. package/dist/resources/spec-revisions.d.ts.map +1 -0
  46. package/dist/resources/spec-revisions.js +90 -0
  47. package/dist/schemas.d.ts +6 -0
  48. package/dist/schemas.d.ts.map +1 -0
  49. package/dist/schemas.js +88 -0
  50. package/dist/types.d.ts +759 -0
  51. package/dist/types.d.ts.map +1 -0
  52. package/dist/types.js +37 -0
  53. package/package.json +43 -0
  54. package/src/cli-agent.ts +685 -0
  55. package/src/cli.ts +2695 -0
  56. package/src/core/http.ts +1008 -0
  57. package/src/core/pagination.ts +195 -0
  58. package/src/dates.ts +126 -0
  59. package/src/errors.ts +117 -0
  60. package/src/index.ts +153 -0
  61. package/src/ops.ts +174 -0
  62. package/src/resources/account.ts +43 -0
  63. package/src/resources/api-keys.ts +105 -0
  64. package/src/resources/generate.ts +69 -0
  65. package/src/resources/generations.ts +100 -0
  66. package/src/resources/projects.ts +391 -0
  67. package/src/resources/spec-revisions.ts +150 -0
  68. package/src/schemas.ts +90 -0
  69. package/src/types.ts +825 -0
@@ -0,0 +1,303 @@
1
+ /**
2
+ * Runtime core. Generated by typeship — https://typeship.dev
3
+ * Zero dependencies: built on the platform fetch API (Node 18+, browsers, edge).
4
+ */
5
+ export interface RequestOptions {
6
+ /** Abort the request (composed with the per-attempt timeout). */
7
+ signal?: AbortSignal;
8
+ /** Extra headers for this call. */
9
+ headers?: Record<string, string | undefined>;
10
+ /** Per-attempt timeout in milliseconds. Overrides the client default. */
11
+ timeoutMs?: number;
12
+ /** Retry attempts after the first try. Overrides the client default. */
13
+ maxRetries?: number;
14
+ }
15
+ export interface ResponseMeta {
16
+ status: number;
17
+ headers: Headers;
18
+ /** x-request-id / request-id header when the server sends one. */
19
+ requestId?: string;
20
+ }
21
+ /**
22
+ * A static credential or a callback resolved before every attempt. Use a
23
+ * callback for tokens that expire (OAuth access tokens, STS, Vault).
24
+ */
25
+ export type AuthValue = string | (() => string | Promise<string>);
26
+ /** Passed to onRequest/onResponse hooks. Mutations to headers and url in
27
+ * onRequest apply to the outgoing request. */
28
+ export interface RequestContext {
29
+ method: string;
30
+ url: string;
31
+ headers: Record<string, string>;
32
+ /** 0 on the first try, increments per retry. */
33
+ attempt: number;
34
+ }
35
+ /** One server-sent event from a text/event-stream response. */
36
+ export interface SseEvent {
37
+ /** The `event:` field; undefined for unnamed events. */
38
+ event?: string;
39
+ /** The `id:` field, when the server sends one. */
40
+ id?: string;
41
+ /** Concatenated `data:` lines. Parse as JSON if your API sends JSON. */
42
+ data: string;
43
+ }
44
+ /**
45
+ * Every SDK call returns a discriminated result instead of throwing.
46
+ * Narrow on `ok` and the error side is a typed union of the documented
47
+ * error responses for that exact operation.
48
+ */
49
+ export type ApiResult<T, E> = {
50
+ ok: true;
51
+ data: T;
52
+ response: ResponseMeta;
53
+ } | {
54
+ ok: false;
55
+ error: E;
56
+ response?: ResponseMeta;
57
+ };
58
+ /** Collapse a result into its data, throwing the typed error when !ok. */
59
+ export declare function unwrap<T, E>(result: ApiResult<T, E>): T;
60
+ /** Base class for every HTTP error response. */
61
+ export declare class ApiError<S extends number = number, B = unknown> extends Error {
62
+ readonly status: S;
63
+ readonly body: B;
64
+ readonly response: ResponseMeta;
65
+ constructor(message: string, status: S, body: B, response: ResponseMeta);
66
+ }
67
+ /** A response status the spec didn't document. */
68
+ export declare class UnexpectedApiError extends ApiError<number, unknown> {
69
+ constructor(status: number, body: unknown, response: ResponseMeta);
70
+ }
71
+ /** A 200 response whose GraphQL payload carried errors. */
72
+ export declare class GraphQLRequestError extends Error {
73
+ /** The raw errors array from the GraphQL response. */
74
+ readonly errors: {
75
+ message?: string;
76
+ path?: unknown[];
77
+ extensions?: unknown;
78
+ }[];
79
+ readonly response: ResponseMeta;
80
+ constructor(errors: unknown[], response: ResponseMeta);
81
+ }
82
+ type Primitive = string | number | boolean | bigint | symbol | null | undefined;
83
+ type Unwrap<T> = NonNullable<T> extends readonly (infer U)[] ? Unwrap<U> : NonNullable<T>;
84
+ type IsUnion<T, U = T> = T extends unknown ? ([U] extends [T] ? false : true) : never;
85
+ type TypeNameOf<T> = T extends {
86
+ __typename?: infer N;
87
+ } ? Extract<N, string> : never;
88
+ type Prettify<T> = {
89
+ [K in keyof T]: T[K];
90
+ } & {};
91
+ /**
92
+ * A selection over a GraphQL result type `T`: `true` picks a leaf field, a
93
+ * nested object picks inside an object field, and `on` picks per concrete
94
+ * type when `T` is a union or interface (`{ on: { Transaction: { amount: true } } }`).
95
+ * Keys are checked against the schema, so a typo is a compile error.
96
+ */
97
+ export type Selection<T> = Unwrap<T> extends Primitive ? never : SelectionObject<Unwrap<T>>;
98
+ type FieldSelection<V> = Unwrap<V> extends Primitive ? true : SelectionObject<Unwrap<V>>;
99
+ type SelectionObject<T> = {
100
+ [K in Extract<keyof T, string> as K extends "__typename" ? never : K]?: FieldSelection<T[K]>;
101
+ } & {
102
+ __typename?: true;
103
+ } & (IsUnion<T> extends true ? {
104
+ on?: {
105
+ [N in TypeNameOf<T>]?: SelectionObject<Extract<T, {
106
+ __typename?: N;
107
+ }>>;
108
+ };
109
+ } : {
110
+ on?: never;
111
+ });
112
+ /** The result type a {@link Selection} `S` produces from result type `T`:
113
+ * exactly the fields picked, nullability and lists preserved, union members
114
+ * narrowed by `__typename`. */
115
+ export type Selected<T, S> = T extends readonly (infer U)[] ? Selected<U, S>[] : T extends Primitive ? T : S extends object ? Prettify<SelectedMember<T, S>> : never;
116
+ type SelectedMember<T, S> = (S extends {
117
+ on?: infer O;
118
+ } ? O extends object ? TypeNameOf<T> extends keyof O ? PickSelected<T, NonNullable<O[TypeNameOf<T>]>> : {} : {} : {}) & PickSelected<T, S>;
119
+ type PickSelected<T, S> = {
120
+ -readonly [K in keyof S as K extends "on" ? never : K extends keyof T ? (S[K] extends true | object ? K : never) : never]-?: K extends "__typename" ? NonNullable<T[K & keyof T]> : S[K] extends true ? Exclude<T[K & keyof T], undefined> : Selected<Exclude<T[K & keyof T], undefined>, S[K]>;
121
+ };
122
+ /** A selection object or a raw selection set (`"{ id name }"`). */
123
+ export type SelectionInput = string | Record<string, unknown>;
124
+ /** Serialize a selection object to a GraphQL selection set. Strings pass
125
+ * through untouched. */
126
+ export declare function selectionToString(selection: SelectionInput): string;
127
+ export interface Violation {
128
+ path: string;
129
+ message: string;
130
+ }
131
+ /** Request or response data did not match the spec's schema (opt-in via the
132
+ * client's validate option). Never thrown: returned as the error side of
133
+ * ApiResult, like every other failure. */
134
+ export declare class ValidationError extends Error {
135
+ readonly direction: "request" | "response";
136
+ readonly violations: Violation[];
137
+ constructor(direction: "request" | "response", violations: Violation[]);
138
+ }
139
+ /**
140
+ * Validates against the depth-capped JSON Schema subset emitted in
141
+ * schemas.ts. Constraints outside the subset (formats, multipleOf, not, ...)
142
+ * are ignored: validation can miss drift but never false-alarms.
143
+ */
144
+ export declare function validateAgainstSchema(value: unknown, schema: unknown, path: string, out: Violation[], defs?: Record<string, unknown>): void;
145
+ /** The request never produced an HTTP response (network failure, timeout, abort). */
146
+ export declare class TransportError extends Error {
147
+ readonly cause?: unknown;
148
+ constructor(message: string, cause?: unknown);
149
+ }
150
+ type ErrorCtor = new (body: any, response: ResponseMeta) => ApiError<number, unknown>;
151
+ export interface CoreRequest {
152
+ method: string;
153
+ path: string;
154
+ query?: Record<string, unknown>;
155
+ headers?: Record<string, string | undefined>;
156
+ body?: unknown;
157
+ bodyKind?: "json" | "form" | "multipart" | "text" | "binary";
158
+ /** Status matcher -> generated error class ("404", "4XX", "default"). */
159
+ errors?: Record<string, ErrorCtor>;
160
+ /** Idempotent requests are retried automatically. */
161
+ idempotent?: boolean;
162
+ /** Success body is text/event-stream: yield SseEvents instead of parsing. */
163
+ stream?: boolean;
164
+ /** Header name auto-filled with one UUID per call (stable across retries)
165
+ * when the caller doesn't supply a value. */
166
+ idempotencyKey?: string;
167
+ /** GraphQL: unwrap body.data[field] and turn body.errors into a
168
+ * GraphQLRequestError. */
169
+ graphqlField?: string;
170
+ /** Key into the schemas table for optional runtime validation. */
171
+ schemaKey?: string;
172
+ /** Operation-level retry policy (x-typeship-retries), merged over the
173
+ * client-level policy; per-call options.maxRetries still wins. */
174
+ retry?: RetryPolicy;
175
+ options?: RequestOptions;
176
+ }
177
+ /** Tunable retry behavior (x-typeship-retries; defaults preserved when unset). */
178
+ export interface RetryPolicy {
179
+ maxRetries?: number;
180
+ /** Replaces the default retryable set (408, 429, 500, 502, 503, 504). */
181
+ statuses?: number[];
182
+ initialDelayMs?: number;
183
+ maxDelayMs?: number;
184
+ /** Also retry non-idempotent methods (POST/PATCH). */
185
+ retryNonIdempotent?: boolean;
186
+ }
187
+ export interface CoreConfig {
188
+ baseUrl: string;
189
+ headers: Record<string, AuthValue>;
190
+ /** Auth carried as query parameters (apiKey-in-query schemes). */
191
+ query: Record<string, AuthValue>;
192
+ fetch: typeof fetch;
193
+ timeoutMs: number;
194
+ maxRetries: number;
195
+ /** Called before every attempt; mutate context.headers / context.url. */
196
+ onRequest?: (context: RequestContext) => void | Promise<void>;
197
+ /** Called after every HTTP response, before parsing and retry decisions.
198
+ * Clone the response before reading its body. */
199
+ onResponse?: (response: Response, context: RequestContext) => void | Promise<void>;
200
+ /** Called once per failed call — after retries are exhausted, with the
201
+ * typed error about to be returned. Observability only; the error is
202
+ * returned unchanged. */
203
+ onError?: (error: unknown, request: {
204
+ method: string;
205
+ path: string;
206
+ }) => void | Promise<void>;
207
+ /** One structured event per attempt. Never includes headers or bodies,
208
+ * so nothing secret can reach logs through it. */
209
+ debug?: (event: DebugEvent) => void;
210
+ /** Opt-in runtime validation of JSON request/response bodies against the
211
+ * spec's schemas. Zero-dependency: the validator lives in this file and
212
+ * the schema table in schemas.ts. */
213
+ validate?: {
214
+ requests: boolean;
215
+ responses: boolean;
216
+ mode: "throw" | "warn";
217
+ };
218
+ /** Per-operation schema table, keyed "resource.method" (see schemas.ts). */
219
+ schemas?: Record<string, {
220
+ req?: unknown;
221
+ res?: unknown;
222
+ }>;
223
+ /** Shared component definitions the schema table references. */
224
+ schemaDefs?: Record<string, unknown>;
225
+ /** Root-level retry policy (x-typeship-retries at the document root). */
226
+ retry?: RetryPolicy;
227
+ /** Client-level values for x-typeship-globals parameters, by wire name. */
228
+ globals?: Record<string, unknown>;
229
+ /** Header names the spec's API-key schemes use. fetch drops the standard
230
+ * credential headers on a cross-origin redirect but knows nothing of these,
231
+ * so when a spec declares any, this runtime follows redirects itself and
232
+ * drops them too. */
233
+ authHeaders?: string[];
234
+ }
235
+ /** What the debug sink receives: one event per HTTP attempt. */
236
+ export interface DebugEvent {
237
+ method: string;
238
+ path: string;
239
+ /** absent when the attempt failed before a response arrived */
240
+ status?: number;
241
+ durationMs: number;
242
+ /** 1-based; >1 means this was a retry */
243
+ attempt: number;
244
+ requestId?: string;
245
+ /** transport failure message, when there was no response */
246
+ error?: string;
247
+ }
248
+ export declare class HttpCore {
249
+ readonly config: CoreConfig;
250
+ /** Lowercased header names dropped on a cross-origin hop. */
251
+ private readonly sensitiveHeaders;
252
+ /** Whether this runtime follows redirects itself instead of letting the
253
+ * platform do it — see followRedirects(). */
254
+ private readonly manualRedirects;
255
+ constructor(config: CoreConfig);
256
+ /** The client-level value for an x-typeship-globals parameter. */
257
+ globalValue(name: string): unknown;
258
+ request<T, E>(req: CoreRequest): Promise<ApiResult<T, E>>;
259
+ private send;
260
+ /**
261
+ * The redirect chain, walked here instead of inside fetch, so the header
262
+ * this spec puts its API key on is dropped when a hop crosses to another
263
+ * origin. fetch drops Authorization and friends for us, but it has never
264
+ * heard of X-Whatever-Key, and an operation that returns a file commonly
265
+ * redirects to object storage.
266
+ *
267
+ * Only reached when the spec declares such a header (see the constructor);
268
+ * every other client stays on the platform's own redirect handling. One
269
+ * chain is one attempt: retries, the per-attempt timeout, the caller's
270
+ * signal, and the onRequest/onResponse hooks all sit outside it and see
271
+ * the chain as the single exchange it replaces.
272
+ */
273
+ private followRedirects;
274
+ private buildUrl;
275
+ }
276
+ /** Default rendering for debug events (the boolean debug:true sink). */
277
+ export declare function formatDebugEvent(name: string, event: DebugEvent): string;
278
+ /** Wrap a bearer credential (static or callback) as an Authorization value. */
279
+ export declare function bearerAuth(token: AuthValue): AuthValue;
280
+ export interface ClientCredentialsConfig {
281
+ clientId: string;
282
+ clientSecret: string;
283
+ tokenUrl: string;
284
+ scopes?: string[];
285
+ /** Extra token-request parameters, e.g. the "audience" some
286
+ * authorization servers require for API-valid access tokens. */
287
+ tokenParams?: Record<string, string>;
288
+ /** How credentials reach the token endpoint. Default "post"
289
+ * (client_secret_post, form fields); "basic" sends an Authorization
290
+ * header (client_secret_basic). */
291
+ authMethod?: "post" | "basic";
292
+ fetchImpl?: typeof fetch;
293
+ }
294
+ /**
295
+ * OAuth2 client-credentials token source: fetches from the token URL,
296
+ * caches until expiry (60s early refresh), and shares one in-flight
297
+ * request across concurrent callers. Returned function plugs in as an
298
+ * Authorization AuthValue, resolved before every attempt.
299
+ */
300
+ export declare function oauthClientCredentials(config: ClientCredentialsConfig): () => Promise<string>;
301
+ export declare function toBase64(input: string): string;
302
+ export {};
303
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/core/http.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,cAAc;IAC7B,iEAAiE;IACjE,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,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