@typeship-ax/mcp 0.19.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 (103) hide show
  1. package/AGENTS.md +3 -3
  2. package/README.md +1 -1
  3. package/api.json +7519 -6363
  4. package/api.md +8015 -6765
  5. package/dist/api-identity.d.ts.map +1 -1
  6. package/dist/api-identity.js +6 -1
  7. package/dist/core/http.d.ts +26 -14
  8. package/dist/core/http.d.ts.map +1 -1
  9. package/dist/core/http.js +90 -19
  10. package/dist/core/pagination.d.ts +8 -8
  11. package/dist/core/pagination.d.ts.map +1 -1
  12. package/dist/core/pagination.js +7 -16
  13. package/dist/errors.d.ts +4 -4
  14. package/dist/errors.d.ts.map +1 -1
  15. package/dist/errors.js +7 -7
  16. package/dist/index.d.ts +33 -19
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +37 -17
  19. package/dist/mcp-protocol.js +2 -2
  20. package/dist/mcp.d.ts.map +1 -1
  21. package/dist/mcp.js +6 -5
  22. package/dist/ops.d.ts +1 -1
  23. package/dist/ops.d.ts.map +1 -1
  24. package/dist/ops.js +40 -43
  25. package/dist/resources/api-keys.d.ts +16 -15
  26. package/dist/resources/api-keys.d.ts.map +1 -1
  27. package/dist/resources/api-keys.js +6 -6
  28. package/dist/resources/deliveries.d.ts +47 -0
  29. package/dist/resources/deliveries.d.ts.map +1 -0
  30. package/dist/resources/deliveries.js +70 -0
  31. package/dist/resources/drafts.d.ts +157 -0
  32. package/dist/resources/drafts.d.ts.map +1 -0
  33. package/dist/resources/drafts.js +230 -0
  34. package/dist/resources/files.d.ts +23 -0
  35. package/dist/resources/files.d.ts.map +1 -0
  36. package/dist/resources/files.js +38 -0
  37. package/dist/resources/generate.d.ts +14 -14
  38. package/dist/resources/generate.d.ts.map +1 -1
  39. package/dist/resources/generate.js +7 -7
  40. package/dist/resources/generations.d.ts +67 -21
  41. package/dist/resources/generations.d.ts.map +1 -1
  42. package/dist/resources/generations.js +67 -20
  43. package/dist/resources/organization.d.ts +18 -0
  44. package/dist/resources/organization.d.ts.map +1 -0
  45. package/dist/resources/{account.js → organization.js} +10 -10
  46. package/dist/resources/projects.d.ts +50 -139
  47. package/dist/resources/projects.d.ts.map +1 -1
  48. package/dist/resources/projects.js +29 -179
  49. package/dist/resources/publications.d.ts +47 -0
  50. package/dist/resources/publications.d.ts.map +1 -0
  51. package/dist/resources/publications.js +70 -0
  52. package/dist/resources/releases.d.ts +68 -0
  53. package/dist/resources/releases.d.ts.map +1 -0
  54. package/dist/resources/releases.js +102 -0
  55. package/dist/resources/spec-revisions.d.ts +87 -0
  56. package/dist/resources/spec-revisions.d.ts.map +1 -0
  57. package/dist/resources/spec-revisions.js +116 -0
  58. package/dist/resources/specs.d.ts +73 -0
  59. package/dist/resources/specs.d.ts.map +1 -0
  60. package/dist/resources/specs.js +108 -0
  61. package/dist/resources/targets.d.ts +48 -267
  62. package/dist/resources/targets.d.ts.map +1 -1
  63. package/dist/resources/targets.js +28 -407
  64. package/dist/schemas.d.ts.map +1 -1
  65. package/dist/schemas.js +143 -149
  66. package/dist/types.d.ts +1320 -1637
  67. package/dist/types.d.ts.map +1 -1
  68. package/dist/types.js +84 -76
  69. package/package.json +1 -1
  70. package/server.json +2 -2
  71. package/src/api-identity.ts +6 -2
  72. package/src/core/http.ts +89 -24
  73. package/src/core/pagination.ts +13 -23
  74. package/src/errors.ts +7 -7
  75. package/src/index.ts +41 -23
  76. package/src/mcp-protocol.ts +2 -2
  77. package/src/mcp.ts +7 -6
  78. package/src/ops.ts +41 -44
  79. package/src/resources/api-keys.ts +19 -21
  80. package/src/resources/deliveries.ts +140 -0
  81. package/src/resources/drafts.ts +424 -0
  82. package/src/resources/files.ts +68 -0
  83. package/src/resources/generate.ts +16 -19
  84. package/src/resources/generations.ts +148 -35
  85. package/src/resources/{account.ts → organization.ts} +14 -14
  86. package/src/resources/projects.ts +56 -350
  87. package/src/resources/publications.ts +140 -0
  88. package/src/resources/releases.ts +201 -0
  89. package/src/resources/spec-revisions.ts +239 -0
  90. package/src/resources/specs.ts +201 -0
  91. package/src/resources/targets.ts +63 -765
  92. package/src/schemas.ts +143 -149
  93. package/src/types.ts +1418 -1740
  94. package/dist/resources/account.d.ts +0 -18
  95. package/dist/resources/account.d.ts.map +0 -1
  96. package/dist/resources/definition-revisions.d.ts +0 -75
  97. package/dist/resources/definition-revisions.d.ts.map +0 -1
  98. package/dist/resources/definition-revisions.js +0 -142
  99. package/dist/resources/definitions.d.ts +0 -50
  100. package/dist/resources/definitions.d.ts.map +0 -1
  101. package/dist/resources/definitions.js +0 -73
  102. package/src/resources/definition-revisions.ts +0 -265
  103. package/src/resources/definitions.ts +0 -146
@@ -0,0 +1,140 @@
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 resource_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
+ * input_invalid. List query parameters must appear only once; repeated or unrecognized parameters
102
+ * return 400 query_param_invalid.
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 or
108
+ * malformed cursors, and cursors issued for different filters, return 400 cursor_invalid; start
109
+ * again from the first page. Repeated cursors return 400 query_param_invalid. The page limit may
110
+ * change between requests.
111
+ */
112
+ cursor?: string;
113
+ /** Only publications of this release. */
114
+ releaseId?: ReleaseId;
115
+ }
116
+
117
+ /** Typed errors `list` can throw. */
118
+ export type PublicationsListError =
119
+ | BadRequestError
120
+ | UnauthorizedError
121
+ | ForbiddenError
122
+ | NotFoundError
123
+ | RateLimitedError
124
+ | InternalServerError
125
+ | UnexpectedApiError
126
+ | ResponseParseError
127
+ | TransportError
128
+ | ValidationError;
129
+
130
+ /** Typed errors `get` can throw. */
131
+ export type PublicationsGetError =
132
+ | UnauthorizedError
133
+ | ForbiddenError
134
+ | NotFoundError
135
+ | RateLimitedError
136
+ | InternalServerError
137
+ | UnexpectedApiError
138
+ | ResponseParseError
139
+ | TransportError
140
+ | ValidationError;
@@ -0,0 +1,201 @@
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 repository_unavailable` means the repository publishing workflow could not be
99
+ * dispatched, and nothing was changed.
100
+ *
101
+ * A `Idempotency-Key` UUID is generated per call (stable across retries) unless you pass one.
102
+ * `POST /releases/{release_id}/republish`
103
+ */
104
+ async republish(
105
+ releaseId: ReleaseId,
106
+ params?: ReleasesRepublishParams,
107
+ options?: RequestOptions,
108
+ ): Promise<ReleaseResponseRead> {
109
+ return this._core.requestData<ReleaseResponseRead, ReleasesRepublishError>({
110
+ method: "POST",
111
+ path: `/releases/${encodeURIComponent(String(releaseId))}/republish`,
112
+ security: [{"apiKey":[]}],
113
+ headers: {
114
+ "Idempotency-Key": params?.idempotencyKey === undefined ? undefined : String(params?.idempotencyKey),
115
+ },
116
+ errors: {
117
+ "400": BadRequestError,
118
+ "401": UnauthorizedError,
119
+ "403": ForbiddenError,
120
+ "404": NotFoundError,
121
+ "409": ConflictError,
122
+ "429": RateLimitedError,
123
+ "500": InternalServerError,
124
+ "502": BadGatewayError,
125
+ },
126
+ idempotencyKey: "Idempotency-Key",
127
+ schemaKey: "releases.republish",
128
+ options,
129
+ });
130
+ }
131
+ }
132
+
133
+ export interface ReleasesListParams {
134
+ /**
135
+ * Maximum number of resources to return. Omit for 20; otherwise supply base-10 digits
136
+ * representing an integer from 1 to 100. Empty, malformed, or out-of-range values return 400
137
+ * input_invalid. List query parameters must appear only once; repeated or unrecognized parameters
138
+ * return 400 query_param_invalid.
139
+ */
140
+ limit?: number;
141
+ /**
142
+ * Opaque cursor from the preceding page's next_cursor. Valid only for the same organization,
143
+ * operation, filters, and ordering that issued it. Omit to start at the first page. Empty or
144
+ * malformed cursors, and cursors issued for different filters, return 400 cursor_invalid; start
145
+ * again from the first page. Repeated cursors return 400 query_param_invalid. The page limit may
146
+ * change between requests.
147
+ */
148
+ cursor?: string;
149
+ /** Only releases of this Target. */
150
+ targetId?: TargetId;
151
+ }
152
+
153
+ /** Typed errors `list` can throw. */
154
+ export type ReleasesListError =
155
+ | BadRequestError
156
+ | UnauthorizedError
157
+ | ForbiddenError
158
+ | NotFoundError
159
+ | RateLimitedError
160
+ | InternalServerError
161
+ | UnexpectedApiError
162
+ | ResponseParseError
163
+ | TransportError
164
+ | ValidationError;
165
+
166
+ /** Typed errors `get` can throw. */
167
+ export type ReleasesGetError =
168
+ | UnauthorizedError
169
+ | ForbiddenError
170
+ | NotFoundError
171
+ | RateLimitedError
172
+ | InternalServerError
173
+ | UnexpectedApiError
174
+ | ResponseParseError
175
+ | TransportError
176
+ | ValidationError;
177
+
178
+ export interface ReleasesRepublishParams {
179
+ /**
180
+ * Identifies one logical write for 24 hours. The key is scoped to the authenticated organization
181
+ * and operation; generation without an organization uses a hashed network identity. Retrying the
182
+ * same method, path, query, If-Match header, and JSON body replays the original response. Reusing
183
+ * the key with changed intent returns 409. After expiry the key starts a new write.
184
+ */
185
+ idempotencyKey?: string;
186
+ }
187
+
188
+ /** Typed errors `republish` can throw. */
189
+ export type ReleasesRepublishError =
190
+ | BadRequestError
191
+ | UnauthorizedError
192
+ | ForbiddenError
193
+ | NotFoundError
194
+ | ConflictError
195
+ | RateLimitedError
196
+ | InternalServerError
197
+ | BadGatewayError
198
+ | UnexpectedApiError
199
+ | ResponseParseError
200
+ | TransportError
201
+ | ValidationError;
@@ -0,0 +1,239 @@
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
+ * input_invalid. List query parameters must appear only once; repeated or unrecognized parameters
161
+ * return 400 query_param_invalid.
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 or
167
+ * malformed cursors, and cursors issued for different filters, return 400 cursor_invalid; start
168
+ * again from the first page. Repeated cursors return 400 query_param_invalid. The page limit may
169
+ * change between requests.
170
+ */
171
+ cursor?: string;
172
+ /** Only revisions of this Spec. */
173
+ specId?: SpecId;
174
+ }
175
+
176
+ /** Typed errors `list` can throw. */
177
+ export type SpecRevisionsListError =
178
+ | BadRequestError
179
+ | UnauthorizedError
180
+ | ForbiddenError
181
+ | NotFoundError
182
+ | RateLimitedError
183
+ | InternalServerError
184
+ | UnexpectedApiError
185
+ | ResponseParseError
186
+ | TransportError
187
+ | ValidationError;
188
+
189
+ export interface SpecRevisionsGetParams {
190
+ /**
191
+ * Add related data to the response. `diagnostics` adds the `diagnostics` and `patch_diagnostics`
192
+ * arrays.
193
+ */
194
+ include?: "diagnostics";
195
+ }
196
+
197
+ /** Typed errors `get` can throw. */
198
+ export type SpecRevisionsGetError =
199
+ | BadRequestError
200
+ | UnauthorizedError
201
+ | ForbiddenError
202
+ | NotFoundError
203
+ | RateLimitedError
204
+ | InternalServerError
205
+ | UnexpectedApiError
206
+ | ResponseParseError
207
+ | TransportError
208
+ | ValidationError;
209
+
210
+ export interface SpecRevisionsListFilesParams {
211
+ /**
212
+ * Maximum number of resources to return. Omit for 20; otherwise supply base-10 digits
213
+ * representing an integer from 1 to 100. Empty, malformed, or out-of-range values return 400
214
+ * input_invalid. List query parameters must appear only once; repeated or unrecognized parameters
215
+ * return 400 query_param_invalid.
216
+ */
217
+ limit?: number;
218
+ /**
219
+ * Opaque cursor from the preceding page's next_cursor. Valid only for the same organization,
220
+ * operation, filters, and ordering that issued it. Omit to start at the first page. Empty or
221
+ * malformed cursors, and cursors issued for different filters, return 400 cursor_invalid; start
222
+ * again from the first page. Repeated cursors return 400 query_param_invalid. The page limit may
223
+ * change between requests.
224
+ */
225
+ cursor?: string;
226
+ }
227
+
228
+ /** Typed errors `listFiles` can throw. */
229
+ export type SpecRevisionsListFilesError =
230
+ | BadRequestError
231
+ | UnauthorizedError
232
+ | ForbiddenError
233
+ | NotFoundError
234
+ | RateLimitedError
235
+ | InternalServerError
236
+ | UnexpectedApiError
237
+ | ResponseParseError
238
+ | TransportError
239
+ | ValidationError;