@typeship-ax/cli 0.10.0 → 0.21.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 (109) hide show
  1. package/AGENTS.md +10 -5
  2. package/README.md +5 -5
  3. package/api.json +9773 -4501
  4. package/api.md +501 -271
  5. package/dist/api-identity.d.ts.map +1 -1
  6. package/dist/api-identity.js +6 -1
  7. package/dist/cli-agent.d.ts +5 -5
  8. package/dist/cli-agent.d.ts.map +1 -1
  9. package/dist/cli-agent.js +14 -10
  10. package/dist/cli.js +158 -82
  11. package/dist/core/http.d.ts +29 -16
  12. package/dist/core/http.d.ts.map +1 -1
  13. package/dist/core/http.js +108 -25
  14. package/dist/core/pagination.d.ts +8 -8
  15. package/dist/core/pagination.d.ts.map +1 -1
  16. package/dist/core/pagination.js +7 -16
  17. package/dist/errors.d.ts +20 -13
  18. package/dist/errors.d.ts.map +1 -1
  19. package/dist/errors.js +29 -20
  20. package/dist/index.d.ts +37 -19
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +42 -18
  23. package/dist/ops.d.ts +5 -1
  24. package/dist/ops.d.ts.map +1 -1
  25. package/dist/ops.js +42 -35
  26. package/dist/polling-login.d.ts.map +1 -1
  27. package/dist/polling-login.js +11 -1
  28. package/dist/resources/api-keys.d.ts +44 -18
  29. package/dist/resources/api-keys.d.ts.map +1 -1
  30. package/dist/resources/api-keys.js +46 -14
  31. package/dist/resources/deliveries.d.ts +46 -0
  32. package/dist/resources/deliveries.d.ts.map +1 -0
  33. package/dist/resources/deliveries.js +70 -0
  34. package/dist/resources/drafts.d.ts +155 -0
  35. package/dist/resources/drafts.d.ts.map +1 -0
  36. package/dist/resources/drafts.js +230 -0
  37. package/dist/resources/files.d.ts +23 -0
  38. package/dist/resources/files.d.ts.map +1 -0
  39. package/dist/resources/files.js +38 -0
  40. package/dist/resources/generate.d.ts +49 -20
  41. package/dist/resources/generate.d.ts.map +1 -1
  42. package/dist/resources/generate.js +56 -14
  43. package/dist/resources/generations.d.ts +70 -18
  44. package/dist/resources/generations.d.ts.map +1 -1
  45. package/dist/resources/generations.js +84 -16
  46. package/dist/resources/organization.d.ts +18 -0
  47. package/dist/resources/organization.d.ts.map +1 -0
  48. package/dist/resources/organization.js +32 -0
  49. package/dist/resources/projects.d.ts +87 -124
  50. package/dist/resources/projects.d.ts.map +1 -1
  51. package/dist/resources/projects.js +70 -173
  52. package/dist/resources/publications.d.ts +46 -0
  53. package/dist/resources/publications.d.ts.map +1 -0
  54. package/dist/resources/publications.js +70 -0
  55. package/dist/resources/releases.d.ts +66 -0
  56. package/dist/resources/releases.d.ts.map +1 -0
  57. package/dist/resources/releases.js +101 -0
  58. package/dist/resources/spec-revisions.d.ts +85 -0
  59. package/dist/resources/spec-revisions.d.ts.map +1 -0
  60. package/dist/resources/spec-revisions.js +116 -0
  61. package/dist/resources/specs.d.ts +72 -0
  62. package/dist/resources/specs.d.ts.map +1 -0
  63. package/dist/resources/specs.js +107 -0
  64. package/dist/resources/targets.d.ts +85 -105
  65. package/dist/resources/targets.d.ts.map +1 -1
  66. package/dist/resources/targets.js +70 -163
  67. package/dist/schemas.d.ts +1 -0
  68. package/dist/schemas.d.ts.map +1 -1
  69. package/dist/schemas.js +194 -139
  70. package/dist/types.d.ts +2626 -1141
  71. package/dist/types.d.ts.map +1 -1
  72. package/dist/types.js +90 -11
  73. package/package.json +3 -3
  74. package/src/api-identity.ts +6 -2
  75. package/src/cli-agent.ts +17 -13
  76. package/src/cli.ts +145 -77
  77. package/src/core/http.ts +106 -30
  78. package/src/core/pagination.ts +13 -23
  79. package/src/errors.ts +30 -20
  80. package/src/index.ts +46 -24
  81. package/src/ops.ts +47 -36
  82. package/src/polling-login.ts +10 -1
  83. package/src/resources/api-keys.ts +87 -19
  84. package/src/resources/deliveries.ts +139 -0
  85. package/src/resources/drafts.ts +422 -0
  86. package/src/resources/files.ts +68 -0
  87. package/src/resources/generate.ts +81 -19
  88. package/src/resources/generations.ts +167 -29
  89. package/src/resources/organization.ts +53 -0
  90. package/src/resources/projects.ts +129 -322
  91. package/src/resources/publications.ts +139 -0
  92. package/src/resources/releases.ts +199 -0
  93. package/src/resources/spec-revisions.ts +237 -0
  94. package/src/resources/specs.ts +200 -0
  95. package/src/resources/targets.ts +135 -304
  96. package/src/schemas.ts +195 -140
  97. package/src/types.ts +2793 -1177
  98. package/dist/resources/account.d.ts +0 -18
  99. package/dist/resources/account.d.ts.map +0 -1
  100. package/dist/resources/account.js +0 -27
  101. package/dist/resources/definition-revisions.d.ts +0 -58
  102. package/dist/resources/definition-revisions.d.ts.map +0 -1
  103. package/dist/resources/definition-revisions.js +0 -114
  104. package/dist/resources/definitions.d.ts +0 -35
  105. package/dist/resources/definitions.d.ts.map +0 -1
  106. package/dist/resources/definitions.js +0 -60
  107. package/src/resources/account.ts +0 -46
  108. package/src/resources/definition-revisions.ts +0 -207
  109. package/src/resources/definitions.ts +0 -122
@@ -0,0 +1,139 @@
1
+ // typeship — publications resource.
2
+ // Generated by typeship — https://typeship.dev
3
+
4
+ import { HttpCore, type RequestOptions } from "../core/http.js";
5
+ import { paginate, PagePromise } from "../core/pagination.js";
6
+ import {
7
+ ResponseParseError,
8
+ TransportError,
9
+ UnexpectedApiError,
10
+ ValidationError,
11
+ BadRequestError,
12
+ ForbiddenError,
13
+ InternalServerError,
14
+ NotFoundError,
15
+ RateLimitedError,
16
+ UnauthorizedError,
17
+ } from "../errors.js";
18
+ import type {
19
+ Publication,
20
+ PublicationId,
21
+ PublicationList,
22
+ PublicationListRead,
23
+ PublicationRead,
24
+ PublicationResponse,
25
+ PublicationResponseRead,
26
+ ReleaseId,
27
+ } from "../types.js";
28
+
29
+ export class PublicationsResource {
30
+ constructor(private readonly _core: HttpCore) {}
31
+ /**
32
+ * List publications
33
+ *
34
+ * Auto-paginates: `for await (const item of …)` walks every page.
35
+ * `GET /publications`
36
+ */
37
+ list(
38
+ params?: PublicationsListParams,
39
+ options?: RequestOptions,
40
+ ): PagePromise<PublicationRead, PublicationsListError> {
41
+ return paginate<PublicationRead, PublicationsListError>(this._core, {
42
+ method: "GET",
43
+ path: "/publications",
44
+ security: [{"apiKey":[]}],
45
+ query: {
46
+ limit: params?.limit,
47
+ cursor: params?.cursor,
48
+ release_id: params?.releaseId,
49
+ },
50
+ errors: {
51
+ "400": BadRequestError,
52
+ "401": UnauthorizedError,
53
+ "403": ForbiddenError,
54
+ "404": NotFoundError,
55
+ "429": RateLimitedError,
56
+ "500": InternalServerError,
57
+ },
58
+ idempotent: true,
59
+ schemaKey: "publications.list",
60
+ options,
61
+ }, {
62
+ style: "cursor",
63
+ itemsField: "data",
64
+ cursorParam: "cursor",
65
+ nextCursorField: "next_cursor",
66
+ hasMoreField: "has_more",
67
+ limitParam: "limit",
68
+ });
69
+ }
70
+
71
+ /**
72
+ * Get publishing status
73
+ *
74
+ * Returns the registry publishing status for a release. A status in another organization returns
75
+ * 404 not_found.
76
+ * `GET /publications/{publication_id}`
77
+ */
78
+ async get(publicationId: PublicationId, options?: RequestOptions): Promise<PublicationResponseRead> {
79
+ return this._core.requestData<PublicationResponseRead, PublicationsGetError>({
80
+ method: "GET",
81
+ path: `/publications/${encodeURIComponent(String(publicationId))}`,
82
+ security: [{"apiKey":[]}],
83
+ errors: {
84
+ "401": UnauthorizedError,
85
+ "403": ForbiddenError,
86
+ "404": NotFoundError,
87
+ "429": RateLimitedError,
88
+ "500": InternalServerError,
89
+ },
90
+ idempotent: true,
91
+ schemaKey: "publications.get",
92
+ options,
93
+ });
94
+ }
95
+ }
96
+
97
+ export interface PublicationsListParams {
98
+ /**
99
+ * Maximum number of resources to return. Omit for 20; otherwise supply base-10 digits
100
+ * representing an integer from 1 to 100. Empty, malformed, or out-of-range values return 400
101
+ * invalid_request. List query parameters must appear only once; unrecognized parameters also
102
+ * return 400.
103
+ */
104
+ limit?: number;
105
+ /**
106
+ * Opaque cursor from the preceding page's next_cursor. Valid only for the same organization,
107
+ * operation, filters, and ordering that issued it. Omit to start at the first page. Empty,
108
+ * malformed, or repeated cursors return 400 invalid_request. The page limit may change between
109
+ * requests.
110
+ */
111
+ cursor?: string;
112
+ /** Only publications of this release. */
113
+ releaseId?: ReleaseId;
114
+ }
115
+
116
+ /** Typed errors `list` can throw. */
117
+ export type PublicationsListError =
118
+ | BadRequestError
119
+ | UnauthorizedError
120
+ | ForbiddenError
121
+ | NotFoundError
122
+ | RateLimitedError
123
+ | InternalServerError
124
+ | UnexpectedApiError
125
+ | ResponseParseError
126
+ | TransportError
127
+ | ValidationError;
128
+
129
+ /** Typed errors `get` can throw. */
130
+ export type PublicationsGetError =
131
+ | UnauthorizedError
132
+ | ForbiddenError
133
+ | NotFoundError
134
+ | RateLimitedError
135
+ | InternalServerError
136
+ | UnexpectedApiError
137
+ | ResponseParseError
138
+ | TransportError
139
+ | ValidationError;
@@ -0,0 +1,199 @@
1
+ // typeship — releases resource.
2
+ // Generated by typeship — https://typeship.dev
3
+
4
+ import { HttpCore, type RequestOptions } from "../core/http.js";
5
+ import { paginate, PagePromise } from "../core/pagination.js";
6
+ import {
7
+ ResponseParseError,
8
+ TransportError,
9
+ UnexpectedApiError,
10
+ ValidationError,
11
+ BadGatewayError,
12
+ BadRequestError,
13
+ ConflictError,
14
+ ForbiddenError,
15
+ InternalServerError,
16
+ NotFoundError,
17
+ RateLimitedError,
18
+ UnauthorizedError,
19
+ } from "../errors.js";
20
+ import type {
21
+ Release,
22
+ ReleaseId,
23
+ ReleaseList,
24
+ ReleaseListRead,
25
+ ReleaseRead,
26
+ ReleaseResponse,
27
+ ReleaseResponseRead,
28
+ TargetId,
29
+ } from "../types.js";
30
+
31
+ export class ReleasesResource {
32
+ constructor(private readonly _core: HttpCore) {}
33
+ /**
34
+ * List releases
35
+ *
36
+ * Auto-paginates: `for await (const item of …)` walks every page.
37
+ * `GET /releases`
38
+ */
39
+ list(params?: ReleasesListParams, options?: RequestOptions): PagePromise<ReleaseRead, ReleasesListError> {
40
+ return paginate<ReleaseRead, ReleasesListError>(this._core, {
41
+ method: "GET",
42
+ path: "/releases",
43
+ security: [{"apiKey":[]}],
44
+ query: {
45
+ limit: params?.limit,
46
+ cursor: params?.cursor,
47
+ target_id: params?.targetId,
48
+ },
49
+ errors: {
50
+ "400": BadRequestError,
51
+ "401": UnauthorizedError,
52
+ "403": ForbiddenError,
53
+ "404": NotFoundError,
54
+ "429": RateLimitedError,
55
+ "500": InternalServerError,
56
+ },
57
+ idempotent: true,
58
+ schemaKey: "releases.list",
59
+ options,
60
+ }, {
61
+ style: "cursor",
62
+ itemsField: "data",
63
+ cursorParam: "cursor",
64
+ nextCursorField: "next_cursor",
65
+ hasMoreField: "has_more",
66
+ limitParam: "limit",
67
+ });
68
+ }
69
+
70
+ /**
71
+ * Get an immutable release
72
+ * `GET /releases/{release_id}`
73
+ */
74
+ async get(releaseId: ReleaseId, options?: RequestOptions): Promise<ReleaseResponseRead> {
75
+ return this._core.requestData<ReleaseResponseRead, ReleasesGetError>({
76
+ method: "GET",
77
+ path: `/releases/${encodeURIComponent(String(releaseId))}`,
78
+ security: [{"apiKey":[]}],
79
+ errors: {
80
+ "401": UnauthorizedError,
81
+ "403": ForbiddenError,
82
+ "404": NotFoundError,
83
+ "429": RateLimitedError,
84
+ "500": InternalServerError,
85
+ },
86
+ idempotent: true,
87
+ schemaKey: "releases.get",
88
+ options,
89
+ });
90
+ }
91
+
92
+ /**
93
+ * Retry publishing an exact release
94
+ *
95
+ * Retries publishing the specified release through its repository workflow. Uses that release's
96
+ * version and accepted commit, even if a newer Draft or release exists.
97
+ *
98
+ * A `502` response means the repository publishing workflow could not be dispatched.
99
+ *
100
+ * A `Idempotency-Key` UUID is generated per call (stable across retries) unless you pass one.
101
+ * `POST /releases/{release_id}/republish`
102
+ */
103
+ async republish(
104
+ releaseId: ReleaseId,
105
+ params?: ReleasesRepublishParams,
106
+ options?: RequestOptions,
107
+ ): Promise<ReleaseResponseRead> {
108
+ return this._core.requestData<ReleaseResponseRead, ReleasesRepublishError>({
109
+ method: "POST",
110
+ path: `/releases/${encodeURIComponent(String(releaseId))}/republish`,
111
+ security: [{"apiKey":[]}],
112
+ headers: {
113
+ "Idempotency-Key": params?.idempotencyKey === undefined ? undefined : String(params?.idempotencyKey),
114
+ },
115
+ errors: {
116
+ "400": BadRequestError,
117
+ "401": UnauthorizedError,
118
+ "403": ForbiddenError,
119
+ "404": NotFoundError,
120
+ "409": ConflictError,
121
+ "429": RateLimitedError,
122
+ "500": InternalServerError,
123
+ "502": BadGatewayError,
124
+ },
125
+ idempotencyKey: "Idempotency-Key",
126
+ schemaKey: "releases.republish",
127
+ options,
128
+ });
129
+ }
130
+ }
131
+
132
+ export interface ReleasesListParams {
133
+ /**
134
+ * Maximum number of resources to return. Omit for 20; otherwise supply base-10 digits
135
+ * representing an integer from 1 to 100. Empty, malformed, or out-of-range values return 400
136
+ * invalid_request. List query parameters must appear only once; unrecognized parameters also
137
+ * return 400.
138
+ */
139
+ limit?: number;
140
+ /**
141
+ * Opaque cursor from the preceding page's next_cursor. Valid only for the same organization,
142
+ * operation, filters, and ordering that issued it. Omit to start at the first page. Empty,
143
+ * malformed, or repeated cursors return 400 invalid_request. The page limit may change between
144
+ * requests.
145
+ */
146
+ cursor?: string;
147
+ /** Only releases of this Target. */
148
+ targetId?: TargetId;
149
+ }
150
+
151
+ /** Typed errors `list` can throw. */
152
+ export type ReleasesListError =
153
+ | BadRequestError
154
+ | UnauthorizedError
155
+ | ForbiddenError
156
+ | NotFoundError
157
+ | RateLimitedError
158
+ | InternalServerError
159
+ | UnexpectedApiError
160
+ | ResponseParseError
161
+ | TransportError
162
+ | ValidationError;
163
+
164
+ /** Typed errors `get` can throw. */
165
+ export type ReleasesGetError =
166
+ | UnauthorizedError
167
+ | ForbiddenError
168
+ | NotFoundError
169
+ | RateLimitedError
170
+ | InternalServerError
171
+ | UnexpectedApiError
172
+ | ResponseParseError
173
+ | TransportError
174
+ | ValidationError;
175
+
176
+ export interface ReleasesRepublishParams {
177
+ /**
178
+ * Identifies one logical write for 24 hours. The key is scoped to the authenticated organization
179
+ * and operation; generation without an organization uses a hashed network identity. Retrying the
180
+ * same method, path, query, If-Match header, and JSON body replays the original response. Reusing
181
+ * the key with changed intent returns 409. After expiry the key starts a new write.
182
+ */
183
+ idempotencyKey?: string;
184
+ }
185
+
186
+ /** Typed errors `republish` can throw. */
187
+ export type ReleasesRepublishError =
188
+ | BadRequestError
189
+ | UnauthorizedError
190
+ | ForbiddenError
191
+ | NotFoundError
192
+ | ConflictError
193
+ | RateLimitedError
194
+ | InternalServerError
195
+ | BadGatewayError
196
+ | UnexpectedApiError
197
+ | ResponseParseError
198
+ | TransportError
199
+ | ValidationError;
@@ -0,0 +1,237 @@
1
+ // typeship — specRevisions resource.
2
+ // Generated by typeship — https://typeship.dev
3
+
4
+ import { HttpCore, type RequestOptions } from "../core/http.js";
5
+ import { paginate, PagePromise } from "../core/pagination.js";
6
+ import {
7
+ ResponseParseError,
8
+ TransportError,
9
+ UnexpectedApiError,
10
+ ValidationError,
11
+ BadRequestError,
12
+ ForbiddenError,
13
+ InternalServerError,
14
+ NotFoundError,
15
+ RateLimitedError,
16
+ UnauthorizedError,
17
+ } from "../errors.js";
18
+ import type {
19
+ SpecId,
20
+ SpecRevision,
21
+ SpecRevisionFile,
22
+ SpecRevisionFileList,
23
+ SpecRevisionFileListRead,
24
+ SpecRevisionFileRead,
25
+ SpecRevisionId,
26
+ SpecRevisionList,
27
+ SpecRevisionListRead,
28
+ SpecRevisionRead,
29
+ SpecRevisionResponse,
30
+ SpecRevisionResponseRead,
31
+ } from "../types.js";
32
+
33
+ export class SpecRevisionsResource {
34
+ constructor(private readonly _core: HttpCore) {}
35
+ /**
36
+ * List Spec Revisions
37
+ *
38
+ * Lists Spec Revisions, newest first. Source content is not included; list a revision's files
39
+ * with listSpecRevisionFiles.
40
+ *
41
+ * Auto-paginates: `for await (const item of …)` walks every page.
42
+ * `GET /spec-revisions`
43
+ */
44
+ list(
45
+ params?: SpecRevisionsListParams,
46
+ options?: RequestOptions,
47
+ ): PagePromise<SpecRevisionRead, SpecRevisionsListError> {
48
+ return paginate<SpecRevisionRead, SpecRevisionsListError>(this._core, {
49
+ method: "GET",
50
+ path: "/spec-revisions",
51
+ security: [{"apiKey":[]}],
52
+ query: {
53
+ limit: params?.limit,
54
+ cursor: params?.cursor,
55
+ spec_id: params?.specId,
56
+ },
57
+ errors: {
58
+ "400": BadRequestError,
59
+ "401": UnauthorizedError,
60
+ "403": ForbiddenError,
61
+ "404": NotFoundError,
62
+ "429": RateLimitedError,
63
+ "500": InternalServerError,
64
+ },
65
+ idempotent: true,
66
+ schemaKey: "specRevisions.list",
67
+ options,
68
+ }, {
69
+ style: "cursor",
70
+ itemsField: "data",
71
+ cursorParam: "cursor",
72
+ nextCursorField: "next_cursor",
73
+ hasMoreField: "has_more",
74
+ limitParam: "limit",
75
+ });
76
+ }
77
+
78
+ /**
79
+ * Get a Spec Revision
80
+ *
81
+ * Returns metadata for a saved Spec Revision with a Diagnostics summary. Pass
82
+ * `include=diagnostics` to add every Diagnostic, evaluated with the Spec's current patches and
83
+ * Diagnostic policy. List its source files and resolved document with listSpecRevisionFiles.
84
+ * `GET /spec-revisions/{spec_revision_id}`
85
+ */
86
+ async get(
87
+ specRevisionId: SpecRevisionId,
88
+ params?: SpecRevisionsGetParams,
89
+ options?: RequestOptions,
90
+ ): Promise<SpecRevisionResponseRead> {
91
+ return this._core.requestData<SpecRevisionResponseRead, SpecRevisionsGetError>({
92
+ method: "GET",
93
+ path: `/spec-revisions/${encodeURIComponent(String(specRevisionId))}`,
94
+ security: [{"apiKey":[]}],
95
+ query: {
96
+ include: params?.include,
97
+ },
98
+ errors: {
99
+ "400": BadRequestError,
100
+ "401": UnauthorizedError,
101
+ "403": ForbiddenError,
102
+ "404": NotFoundError,
103
+ "429": RateLimitedError,
104
+ "500": InternalServerError,
105
+ },
106
+ idempotent: true,
107
+ schemaKey: "specRevisions.get",
108
+ options,
109
+ });
110
+ }
111
+
112
+ /**
113
+ * List a Spec Revision's files
114
+ *
115
+ * Lists the captured source files and the resolved document Typeship generated from, ordered by
116
+ * path. Read content with getFile.
117
+ *
118
+ * Auto-paginates: `for await (const item of …)` walks every page.
119
+ * `GET /spec-revisions/{spec_revision_id}/files`
120
+ */
121
+ listFiles(
122
+ specRevisionId: SpecRevisionId,
123
+ params?: SpecRevisionsListFilesParams,
124
+ options?: RequestOptions,
125
+ ): PagePromise<SpecRevisionFileRead, SpecRevisionsListFilesError> {
126
+ return paginate<SpecRevisionFileRead, SpecRevisionsListFilesError>(this._core, {
127
+ method: "GET",
128
+ path: `/spec-revisions/${encodeURIComponent(String(specRevisionId))}/files`,
129
+ security: [{"apiKey":[]}],
130
+ query: {
131
+ limit: params?.limit,
132
+ cursor: params?.cursor,
133
+ },
134
+ errors: {
135
+ "400": BadRequestError,
136
+ "401": UnauthorizedError,
137
+ "403": ForbiddenError,
138
+ "404": NotFoundError,
139
+ "429": RateLimitedError,
140
+ "500": InternalServerError,
141
+ },
142
+ idempotent: true,
143
+ schemaKey: "specRevisions.listFiles",
144
+ options,
145
+ }, {
146
+ style: "cursor",
147
+ itemsField: "data",
148
+ cursorParam: "cursor",
149
+ nextCursorField: "next_cursor",
150
+ hasMoreField: "has_more",
151
+ limitParam: "limit",
152
+ });
153
+ }
154
+ }
155
+
156
+ export interface SpecRevisionsListParams {
157
+ /**
158
+ * Maximum number of resources to return. Omit for 20; otherwise supply base-10 digits
159
+ * representing an integer from 1 to 100. Empty, malformed, or out-of-range values return 400
160
+ * invalid_request. List query parameters must appear only once; unrecognized parameters also
161
+ * return 400.
162
+ */
163
+ limit?: number;
164
+ /**
165
+ * Opaque cursor from the preceding page's next_cursor. Valid only for the same organization,
166
+ * operation, filters, and ordering that issued it. Omit to start at the first page. Empty,
167
+ * malformed, or repeated cursors return 400 invalid_request. The page limit may change between
168
+ * requests.
169
+ */
170
+ cursor?: string;
171
+ /** Only revisions of this Spec. */
172
+ specId?: SpecId;
173
+ }
174
+
175
+ /** Typed errors `list` can throw. */
176
+ export type SpecRevisionsListError =
177
+ | BadRequestError
178
+ | UnauthorizedError
179
+ | ForbiddenError
180
+ | NotFoundError
181
+ | RateLimitedError
182
+ | InternalServerError
183
+ | UnexpectedApiError
184
+ | ResponseParseError
185
+ | TransportError
186
+ | ValidationError;
187
+
188
+ export interface SpecRevisionsGetParams {
189
+ /**
190
+ * Add related data to the response. `diagnostics` adds the `diagnostics` and `patch_diagnostics`
191
+ * arrays.
192
+ */
193
+ include?: "diagnostics";
194
+ }
195
+
196
+ /** Typed errors `get` can throw. */
197
+ export type SpecRevisionsGetError =
198
+ | BadRequestError
199
+ | UnauthorizedError
200
+ | ForbiddenError
201
+ | NotFoundError
202
+ | RateLimitedError
203
+ | InternalServerError
204
+ | UnexpectedApiError
205
+ | ResponseParseError
206
+ | TransportError
207
+ | ValidationError;
208
+
209
+ export interface SpecRevisionsListFilesParams {
210
+ /**
211
+ * Maximum number of resources to return. Omit for 20; otherwise supply base-10 digits
212
+ * representing an integer from 1 to 100. Empty, malformed, or out-of-range values return 400
213
+ * invalid_request. List query parameters must appear only once; unrecognized parameters also
214
+ * return 400.
215
+ */
216
+ limit?: number;
217
+ /**
218
+ * Opaque cursor from the preceding page's next_cursor. Valid only for the same organization,
219
+ * operation, filters, and ordering that issued it. Omit to start at the first page. Empty,
220
+ * malformed, or repeated cursors return 400 invalid_request. The page limit may change between
221
+ * requests.
222
+ */
223
+ cursor?: string;
224
+ }
225
+
226
+ /** Typed errors `listFiles` can throw. */
227
+ export type SpecRevisionsListFilesError =
228
+ | BadRequestError
229
+ | UnauthorizedError
230
+ | ForbiddenError
231
+ | NotFoundError
232
+ | RateLimitedError
233
+ | InternalServerError
234
+ | UnexpectedApiError
235
+ | ResponseParseError
236
+ | TransportError
237
+ | ValidationError;