@distilled.cloud/vercel 0.0.0 → 1.0.0-rc.4

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 (230) hide show
  1. package/lib/credentials.d.ts +21 -0
  2. package/lib/credentials.d.ts.map +1 -0
  3. package/lib/credentials.js +40 -0
  4. package/lib/credentials.js.map +1 -0
  5. package/lib/errors.d.ts +80 -0
  6. package/lib/errors.d.ts.map +1 -0
  7. package/lib/errors.js +50 -0
  8. package/lib/errors.js.map +1 -0
  9. package/lib/index.d.ts +15 -0
  10. package/lib/index.d.ts.map +1 -0
  11. package/lib/index.js +15 -0
  12. package/lib/index.js.map +1 -0
  13. package/lib/protocol.d.ts +18 -0
  14. package/lib/protocol.d.ts.map +1 -0
  15. package/lib/protocol.js +69 -0
  16. package/lib/protocol.js.map +1 -0
  17. package/lib/retry.d.ts +54 -0
  18. package/lib/retry.d.ts.map +1 -0
  19. package/lib/retry.js +47 -0
  20. package/lib/retry.js.map +1 -0
  21. package/lib/services/access_groups.d.ts +459 -0
  22. package/lib/services/access_groups.d.ts.map +1 -0
  23. package/lib/services/access_groups.js +453 -0
  24. package/lib/services/access_groups.js.map +1 -0
  25. package/lib/services/ai_gateway.d.ts +124 -0
  26. package/lib/services/ai_gateway.d.ts.map +1 -0
  27. package/lib/services/ai_gateway.js +126 -0
  28. package/lib/services/ai_gateway.js.map +1 -0
  29. package/lib/services/aliases.d.ts +591 -0
  30. package/lib/services/aliases.d.ts.map +1 -0
  31. package/lib/services/aliases.js +508 -0
  32. package/lib/services/aliases.js.map +1 -0
  33. package/lib/services/artifacts.d.ts +228 -0
  34. package/lib/services/artifacts.d.ts.map +1 -0
  35. package/lib/services/artifacts.js +216 -0
  36. package/lib/services/artifacts.js.map +1 -0
  37. package/lib/services/authentication.d.ts +373 -0
  38. package/lib/services/authentication.d.ts.map +1 -0
  39. package/lib/services/authentication.js +310 -0
  40. package/lib/services/authentication.js.map +1 -0
  41. package/lib/services/billing.d.ts +792 -0
  42. package/lib/services/billing.d.ts.map +1 -0
  43. package/lib/services/billing.js +616 -0
  44. package/lib/services/billing.js.map +1 -0
  45. package/lib/services/bulk_redirects.d.ts +308 -0
  46. package/lib/services/bulk_redirects.d.ts.map +1 -0
  47. package/lib/services/bulk_redirects.js +306 -0
  48. package/lib/services/bulk_redirects.js.map +1 -0
  49. package/lib/services/certs.d.ts +171 -0
  50. package/lib/services/certs.d.ts.map +1 -0
  51. package/lib/services/certs.js +165 -0
  52. package/lib/services/certs.js.map +1 -0
  53. package/lib/services/checks_v2.d.ts +1162 -0
  54. package/lib/services/checks_v2.d.ts.map +1 -0
  55. package/lib/services/checks_v2.js +1252 -0
  56. package/lib/services/checks_v2.js.map +1 -0
  57. package/lib/services/connect.d.ts +1034 -0
  58. package/lib/services/connect.d.ts.map +1 -0
  59. package/lib/services/connect.js +993 -0
  60. package/lib/services/connect.js.map +1 -0
  61. package/lib/services/deployments.d.ts +9111 -0
  62. package/lib/services/deployments.d.ts.map +1 -0
  63. package/lib/services/deployments.js +8664 -0
  64. package/lib/services/deployments.js.map +1 -0
  65. package/lib/services/dns.d.ts +279 -0
  66. package/lib/services/dns.d.ts.map +1 -0
  67. package/lib/services/dns.js +282 -0
  68. package/lib/services/dns.js.map +1 -0
  69. package/lib/services/domains.d.ts +539 -0
  70. package/lib/services/domains.d.ts.map +1 -0
  71. package/lib/services/domains.js +464 -0
  72. package/lib/services/domains.js.map +1 -0
  73. package/lib/services/domains_registrar.d.ts +798 -0
  74. package/lib/services/domains_registrar.d.ts.map +1 -0
  75. package/lib/services/domains_registrar.js +968 -0
  76. package/lib/services/domains_registrar.js.map +1 -0
  77. package/lib/services/drains.d.ts +2263 -0
  78. package/lib/services/drains.d.ts.map +1 -0
  79. package/lib/services/drains.js +2406 -0
  80. package/lib/services/drains.js.map +1 -0
  81. package/lib/services/edge_cache.d.ts +125 -0
  82. package/lib/services/edge_cache.d.ts.map +1 -0
  83. package/lib/services/edge_cache.js +140 -0
  84. package/lib/services/edge_cache.js.map +1 -0
  85. package/lib/services/environment.d.ts +1020 -0
  86. package/lib/services/environment.d.ts.map +1 -0
  87. package/lib/services/environment.js +842 -0
  88. package/lib/services/environment.js.map +1 -0
  89. package/lib/services/feature_flags.d.ts +3109 -0
  90. package/lib/services/feature_flags.d.ts.map +1 -0
  91. package/lib/services/feature_flags.js +3074 -0
  92. package/lib/services/feature_flags.js.map +1 -0
  93. package/lib/services/global_config.d.ts +618 -0
  94. package/lib/services/global_config.d.ts.map +1 -0
  95. package/lib/services/global_config.js +716 -0
  96. package/lib/services/global_config.js.map +1 -0
  97. package/lib/services/index.d.ts +39 -0
  98. package/lib/services/index.d.ts.map +1 -0
  99. package/lib/services/index.js +40 -0
  100. package/lib/services/index.js.map +1 -0
  101. package/lib/services/integrations.d.ts +2987 -0
  102. package/lib/services/integrations.d.ts.map +1 -0
  103. package/lib/services/integrations.js +2903 -0
  104. package/lib/services/integrations.js.map +1 -0
  105. package/lib/services/log_drains.d.ts +848 -0
  106. package/lib/services/log_drains.d.ts.map +1 -0
  107. package/lib/services/log_drains.js +866 -0
  108. package/lib/services/log_drains.js.map +1 -0
  109. package/lib/services/logs.d.ts +40 -0
  110. package/lib/services/logs.d.ts.map +1 -0
  111. package/lib/services/logs.js +43 -0
  112. package/lib/services/logs.js.map +1 -0
  113. package/lib/services/marketplace.d.ts +991 -0
  114. package/lib/services/marketplace.d.ts.map +1 -0
  115. package/lib/services/marketplace.js +1044 -0
  116. package/lib/services/marketplace.js.map +1 -0
  117. package/lib/services/microfrontends.d.ts +3210 -0
  118. package/lib/services/microfrontends.d.ts.map +1 -0
  119. package/lib/services/microfrontends.js +3300 -0
  120. package/lib/services/microfrontends.js.map +1 -0
  121. package/lib/services/networking.d.ts +239 -0
  122. package/lib/services/networking.d.ts.map +1 -0
  123. package/lib/services/networking.js +224 -0
  124. package/lib/services/networking.js.map +1 -0
  125. package/lib/services/observability.d.ts +168 -0
  126. package/lib/services/observability.d.ts.map +1 -0
  127. package/lib/services/observability.js +191 -0
  128. package/lib/services/observability.js.map +1 -0
  129. package/lib/services/project_members.d.ts +142 -0
  130. package/lib/services/project_members.d.ts.map +1 -0
  131. package/lib/services/project_members.js +139 -0
  132. package/lib/services/project_members.js.map +1 -0
  133. package/lib/services/project_routes.d.ts +1990 -0
  134. package/lib/services/project_routes.d.ts.map +1 -0
  135. package/lib/services/project_routes.js +2026 -0
  136. package/lib/services/project_routes.js.map +1 -0
  137. package/lib/services/projects.d.ts +23449 -0
  138. package/lib/services/projects.d.ts.map +1 -0
  139. package/lib/services/projects.js +23570 -0
  140. package/lib/services/projects.js.map +1 -0
  141. package/lib/services/rolling_release.d.ts +764 -0
  142. package/lib/services/rolling_release.d.ts.map +1 -0
  143. package/lib/services/rolling_release.js +630 -0
  144. package/lib/services/rolling_release.js.map +1 -0
  145. package/lib/services/sandboxes.d.ts +2183 -0
  146. package/lib/services/sandboxes.d.ts.map +1 -0
  147. package/lib/services/sandboxes.js +1756 -0
  148. package/lib/services/sandboxes.js.map +1 -0
  149. package/lib/services/security.d.ts +3932 -0
  150. package/lib/services/security.d.ts.map +1 -0
  151. package/lib/services/security.js +4411 -0
  152. package/lib/services/security.js.map +1 -0
  153. package/lib/services/storage.d.ts +251 -0
  154. package/lib/services/storage.d.ts.map +1 -0
  155. package/lib/services/storage.js +270 -0
  156. package/lib/services/storage.js.map +1 -0
  157. package/lib/services/teams.d.ts +1577 -0
  158. package/lib/services/teams.d.ts.map +1 -0
  159. package/lib/services/teams.js +1359 -0
  160. package/lib/services/teams.js.map +1 -0
  161. package/lib/services/user.d.ts +7972 -0
  162. package/lib/services/user.d.ts.map +1 -0
  163. package/lib/services/user.js +7093 -0
  164. package/lib/services/user.js.map +1 -0
  165. package/lib/services/vcr.d.ts +793 -0
  166. package/lib/services/vcr.d.ts.map +1 -0
  167. package/lib/services/vcr.js +882 -0
  168. package/lib/services/vcr.js.map +1 -0
  169. package/lib/services/web_analytics.d.ts +694 -0
  170. package/lib/services/web_analytics.d.ts.map +1 -0
  171. package/lib/services/web_analytics.js +695 -0
  172. package/lib/services/web_analytics.js.map +1 -0
  173. package/lib/services/webhooks.d.ts +207 -0
  174. package/lib/services/webhooks.d.ts.map +1 -0
  175. package/lib/services/webhooks.js +171 -0
  176. package/lib/services/webhooks.js.map +1 -0
  177. package/lib/traits.d.ts +10 -0
  178. package/lib/traits.d.ts.map +1 -0
  179. package/lib/traits.js +11 -0
  180. package/lib/traits.js.map +1 -0
  181. package/package.json +77 -7
  182. package/src/credentials.ts +70 -0
  183. package/src/errors.ts +93 -0
  184. package/src/index.ts +18 -0
  185. package/src/protocol.ts +98 -0
  186. package/src/retry.ts +78 -0
  187. package/src/services/access_groups.ts +1165 -0
  188. package/src/services/ai_gateway.ts +272 -0
  189. package/src/services/aliases.ts +1323 -0
  190. package/src/services/artifacts.ts +542 -0
  191. package/src/services/authentication.ts +829 -0
  192. package/src/services/billing.ts +1776 -0
  193. package/src/services/bulk_redirects.ts +748 -0
  194. package/src/services/certs.ts +377 -0
  195. package/src/services/checks_v2.ts +3136 -0
  196. package/src/services/connect.ts +2607 -0
  197. package/src/services/deployments.ts +23682 -0
  198. package/src/services/dns.ts +718 -0
  199. package/src/services/domains.ts +1209 -0
  200. package/src/services/domains_registrar.ts +2290 -0
  201. package/src/services/drains.ts +5989 -0
  202. package/src/services/edge_cache.ts +303 -0
  203. package/src/services/environment.ts +2388 -0
  204. package/src/services/feature_flags.ts +8302 -0
  205. package/src/services/global_config.ts +1668 -0
  206. package/src/services/index.ts +39 -0
  207. package/src/services/integrations.ts +8846 -0
  208. package/src/services/log_drains.ts +2413 -0
  209. package/src/services/logs.ts +78 -0
  210. package/src/services/marketplace.ts +2626 -0
  211. package/src/services/microfrontends.ts +9650 -0
  212. package/src/services/networking.ts +530 -0
  213. package/src/services/observability.ts +436 -0
  214. package/src/services/project_members.ts +328 -0
  215. package/src/services/project_routes.ts +5259 -0
  216. package/src/services/projects.ts +67377 -0
  217. package/src/services/rolling_release.ts +1869 -0
  218. package/src/services/sandboxes.ts +5259 -0
  219. package/src/services/security.ts +12408 -0
  220. package/src/services/storage.ts +849 -0
  221. package/src/services/teams.ts +3995 -0
  222. package/src/services/user.ts +21687 -0
  223. package/src/services/vcr.ts +2165 -0
  224. package/src/services/web_analytics.ts +1570 -0
  225. package/src/services/webhooks.ts +1073 -0
  226. package/src/traits.ts +44 -0
  227. package/README.md +0 -15
  228. package/bun.lock +0 -26
  229. package/index.ts +0 -1
  230. package/tsconfig.json +0 -29
@@ -0,0 +1,436 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/openapi.json). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as C from "@distilled.cloud/core/category";
5
+ import * as T from "../traits.ts";
6
+ import {
7
+ VercelProtocol,
8
+ type VercelOpError,
9
+ type VercelOpContext,
10
+ } from "../protocol.ts";
11
+ import * as Retry from "../retry.ts";
12
+
13
+ export type { VercelOpError, VercelOpContext };
14
+
15
+ export class BadRequest
16
+ extends /*@__PURE__*/ T.applyErrorMatchers(
17
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
18
+ code: S.Number,
19
+ message: S.String,
20
+ }).pipe(C.withBadRequestError),
21
+ [{ status: 400 }],
22
+ ) {}
23
+
24
+ export class Forbidden
25
+ extends /*@__PURE__*/ T.applyErrorMatchers(
26
+ /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
27
+ code: S.Number,
28
+ message: S.String,
29
+ }).pipe(C.withAuthError),
30
+ [{ status: 403 }],
31
+ ) {}
32
+
33
+ export class NotFound
34
+ extends /*@__PURE__*/ T.applyErrorMatchers(
35
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
36
+ code: S.Number,
37
+ message: S.String,
38
+ }).pipe(C.withBadRequestError),
39
+ [{ status: 404 }],
40
+ ) {}
41
+
42
+ export class PaymentRequired
43
+ extends /*@__PURE__*/ T.applyErrorMatchers(
44
+ /*@__PURE__*/ S.TaggedError<PaymentRequired>()("PaymentRequired", {
45
+ code: S.Number,
46
+ message: S.String,
47
+ }).pipe(C.withQuotaError),
48
+ [{ status: 402 }],
49
+ ) {}
50
+
51
+ /** Dimensions to group results by. JSON dimensions support nested refs, for example event_data/checkout_step. Nested keys containing characters that OData cannot parse as an identifier, such as '-', spaces, quotes, or '/', must be wrapped in single quotes (escape embedded single quotes by doubling them), for example flags/'enable-comments-view' or event_data/'some property''s/value'. */
52
+ export type CreateObservabilityQueryRequestGroupByList = Array<string>;
53
+ export const CreateObservabilityQueryRequestGroupByList = /*@__PURE__*/ S.Array(
54
+ S.String,
55
+ ) as any as S.Schema<CreateObservabilityQueryRequestGroupByList>;
56
+
57
+ /** Direction to order grouped results by. Defaults to desc. */
58
+ export type CreateObservabilityQueryRequestOrderDirection = "asc" | "desc";
59
+ export const CreateObservabilityQueryRequestOrderDirection =
60
+ /*@__PURE__*/ S.String;
61
+
62
+ export interface CreateObservabilityQueryRequest {
63
+ /** Metric id */
64
+ metric: string;
65
+ /** Owner or project scope for the query */
66
+ scope: unknown;
67
+ /** Aggregation function to apply. Some aggregations require a dimension: use <agg>/<dimension>, for example unique/visitor_id. */
68
+ aggregation?: string;
69
+ /** Dimensions to group results by. JSON dimensions support nested refs, for example event_data/checkout_step. Nested keys containing characters that OData cannot parse as an identifier, such as '-', spaces, quotes, or '/', must be wrapped in single quotes (escape embedded single quotes by doubling them), for example flags/'enable-comments-view' or event_data/'some property''s/value'. */
70
+ groupBy?: CreateObservabilityQueryRequestGroupByList;
71
+ /** Filter to apply to the query. JSON dimensions support nested refs, for example event_data/checkout_step eq 'payment'. Nested keys containing characters that OData cannot parse as an identifier, such as '-', spaces, quotes, or '/', must be wrapped in single quotes (escape embedded single quotes by doubling them), for example flags/'enable-comments-view' eq true or event_data/'some property''s/value' eq true. */
72
+ filter?: string;
73
+ /** Maximum number of results */
74
+ limit?: number;
75
+ /** Rollup column to order grouped results by. Use the generated rollup key for the requested metric and aggregation. Defaults to the query engine count rollup. */
76
+ orderBy?: string;
77
+ /** Direction to order grouped results by. Defaults to desc. */
78
+ orderDirection?:
79
+ | CreateObservabilityQueryRequestOrderDirection
80
+ | (string & {});
81
+ /** Time bucket size */
82
+ granularity?: unknown;
83
+ /** Start timestamp */
84
+ startTime?: string;
85
+ /** End timestamp */
86
+ endTime?: string;
87
+ /** IANA timezone (e.g. Europe/Paris) used only to align calendar buckets (1d/1mo) to that zone's day/month boundaries. startTime/endTime and all output timestamps are always UTC. No effect on sub-day granularities. */
88
+ bucketTimezone?: string;
89
+ }
90
+ export const CreateObservabilityQueryRequest = /*@__PURE__*/ S.suspend(() =>
91
+ S.Struct({
92
+ metric: S.String,
93
+ scope: S.Unknown,
94
+ aggregation: S.optional(S.String),
95
+ groupBy: S.optional(CreateObservabilityQueryRequestGroupByList),
96
+ filter: S.optional(S.String),
97
+ limit: S.optional(S.Number),
98
+ orderBy: S.optional(S.String),
99
+ orderDirection: S.optional(CreateObservabilityQueryRequestOrderDirection),
100
+ granularity: S.optional(S.Unknown),
101
+ startTime: S.optional(S.String),
102
+ endTime: S.optional(S.String),
103
+ bucketTimezone: S.optional(S.String),
104
+ }).pipe(
105
+ T.Http({ method: "POST", uri: "/v2/observability/query", code: 200 }),
106
+ ),
107
+ ).annotate({
108
+ identifier: "CreateObservabilityQueryRequest",
109
+ }) as any as S.Schema<CreateObservabilityQueryRequest>;
110
+
111
+ export type CreateObservabilityQueryResponse = unknown;
112
+ export const CreateObservabilityQueryResponse = /*@__PURE__*/ S.suspend(() =>
113
+ S.Unknown.pipe(T.RawResponseRoot()),
114
+ ).annotate({
115
+ identifier: "CreateObservabilityQueryResponse",
116
+ }) as any as S.Schema<CreateObservabilityQueryResponse>;
117
+
118
+ export interface GetObservabilityConfigurationProjectsRequest {
119
+ /** The Team identifier to perform the request on behalf of. */
120
+ teamId?: string;
121
+ /** The Team slug to perform the request on behalf of. */
122
+ slug?: string;
123
+ }
124
+ export const GetObservabilityConfigurationProjectsRequest =
125
+ /*@__PURE__*/ S.suspend(() =>
126
+ S.Struct({
127
+ teamId: S.optional(S.String.pipe(T.Query())),
128
+ slug: S.optional(S.String.pipe(T.Query())),
129
+ }).pipe(
130
+ T.Http({
131
+ method: "GET",
132
+ uri: "/v1/observability/manage/configuration/projects",
133
+ code: 200,
134
+ }),
135
+ ),
136
+ ).annotate({
137
+ identifier: "GetObservabilityConfigurationProjectsRequest",
138
+ }) as any as S.Schema<GetObservabilityConfigurationProjectsRequest>;
139
+
140
+ export interface GetObservabilityConfigurationProjectsResponseDisabledProjectsItem {
141
+ id: string;
142
+ name?: string;
143
+ disabledAt: number;
144
+ }
145
+ export const GetObservabilityConfigurationProjectsResponseDisabledProjectsItem =
146
+ /*@__PURE__*/ S.suspend(() =>
147
+ S.Struct({
148
+ id: S.String,
149
+ name: S.optional(S.String),
150
+ disabledAt: S.Number,
151
+ }),
152
+ ).annotate({
153
+ identifier:
154
+ "GetObservabilityConfigurationProjectsResponseDisabledProjectsItem",
155
+ }) as any as S.Schema<GetObservabilityConfigurationProjectsResponseDisabledProjectsItem>;
156
+
157
+ export type GetObservabilityConfigurationProjectsResponseDisabledProjectsList =
158
+ Array<GetObservabilityConfigurationProjectsResponseDisabledProjectsItem>;
159
+ export const GetObservabilityConfigurationProjectsResponseDisabledProjectsList =
160
+ /*@__PURE__*/ S.Array(
161
+ GetObservabilityConfigurationProjectsResponseDisabledProjectsItem,
162
+ ) as any as S.Schema<GetObservabilityConfigurationProjectsResponseDisabledProjectsList>;
163
+
164
+ export interface GetObservabilityConfigurationProjectsResponse {
165
+ disabledProjects: GetObservabilityConfigurationProjectsResponseDisabledProjectsList;
166
+ }
167
+ export const GetObservabilityConfigurationProjectsResponse =
168
+ /*@__PURE__*/ S.suspend(() =>
169
+ S.Struct({
170
+ disabledProjects:
171
+ GetObservabilityConfigurationProjectsResponseDisabledProjectsList,
172
+ }),
173
+ ).annotate({
174
+ identifier: "GetObservabilityConfigurationProjectsResponse",
175
+ }) as any as S.Schema<GetObservabilityConfigurationProjectsResponse>;
176
+
177
+ export interface GetObservabilitySchemaRequest {}
178
+ export const GetObservabilitySchemaRequest = /*@__PURE__*/ S.suspend(() =>
179
+ S.Struct({}).pipe(
180
+ T.Http({ method: "GET", uri: "/v2/observability/schema", code: 200 }),
181
+ ),
182
+ ).annotate({
183
+ identifier: "GetObservabilitySchemaRequest",
184
+ }) as any as S.Schema<GetObservabilitySchemaRequest>;
185
+
186
+ export interface GetObservabilitySchemaResponseMetricsItem {
187
+ id: string;
188
+ description: string;
189
+ }
190
+ export const GetObservabilitySchemaResponseMetricsItem =
191
+ /*@__PURE__*/ S.suspend(() =>
192
+ S.Struct({
193
+ id: S.String,
194
+ description: S.String,
195
+ }),
196
+ ).annotate({
197
+ identifier: "GetObservabilitySchemaResponseMetricsItem",
198
+ }) as any as S.Schema<GetObservabilitySchemaResponseMetricsItem>;
199
+
200
+ export type GetObservabilitySchemaResponseMetricsList =
201
+ Array<GetObservabilitySchemaResponseMetricsItem>;
202
+ export const GetObservabilitySchemaResponseMetricsList = /*@__PURE__*/ S.Array(
203
+ GetObservabilitySchemaResponseMetricsItem,
204
+ ) as any as S.Schema<GetObservabilitySchemaResponseMetricsList>;
205
+
206
+ export interface GetObservabilitySchemaResponse {
207
+ metrics: GetObservabilitySchemaResponseMetricsList;
208
+ }
209
+ export const GetObservabilitySchemaResponse = /*@__PURE__*/ S.suspend(() =>
210
+ S.Struct({
211
+ metrics: GetObservabilitySchemaResponseMetricsList,
212
+ }),
213
+ ).annotate({
214
+ identifier: "GetObservabilitySchemaResponse",
215
+ }) as any as S.Schema<GetObservabilitySchemaResponse>;
216
+
217
+ export interface GetObservabilitySchemaByMetricIdRequest {
218
+ metricId: string;
219
+ }
220
+ export const GetObservabilitySchemaByMetricIdRequest = /*@__PURE__*/ S.suspend(
221
+ () =>
222
+ S.Struct({
223
+ metricId: S.String.pipe(T.Label()),
224
+ }).pipe(
225
+ T.Http({
226
+ method: "GET",
227
+ uri: "/v2/observability/schema/{metricId}",
228
+ code: 200,
229
+ }),
230
+ ),
231
+ ).annotate({
232
+ identifier: "GetObservabilitySchemaByMetricIdRequest",
233
+ }) as any as S.Schema<GetObservabilitySchemaByMetricIdRequest>;
234
+
235
+ export interface GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem {
236
+ name: string;
237
+ label: string;
238
+ description?: string;
239
+ }
240
+ export const GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem =
241
+ /*@__PURE__*/ S.suspend(() =>
242
+ S.Struct({
243
+ name: S.String,
244
+ label: S.String,
245
+ description: S.optional(S.String),
246
+ }),
247
+ ).annotate({
248
+ identifier:
249
+ "GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem",
250
+ }) as any as S.Schema<GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem>;
251
+
252
+ export type GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsList =
253
+ Array<GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem>;
254
+ export const GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsList =
255
+ /*@__PURE__*/ S.Array(
256
+ GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem,
257
+ ) as any as S.Schema<GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsList>;
258
+
259
+ export type GetObservabilitySchemaByMetricIdResponseBodyItemAggregationsList =
260
+ Array<string>;
261
+ export const GetObservabilitySchemaByMetricIdResponseBodyItemAggregationsList =
262
+ /*@__PURE__*/ S.Array(
263
+ S.String,
264
+ ) as any as S.Schema<GetObservabilitySchemaByMetricIdResponseBodyItemAggregationsList>;
265
+
266
+ export interface GetObservabilitySchemaByMetricIdResponseBodyItem {
267
+ id: string;
268
+ description: string;
269
+ dimensions: GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsList;
270
+ unit: string;
271
+ aggregations: GetObservabilitySchemaByMetricIdResponseBodyItemAggregationsList;
272
+ defaultAggregation: string;
273
+ }
274
+ export const GetObservabilitySchemaByMetricIdResponseBodyItem =
275
+ /*@__PURE__*/ S.suspend(() =>
276
+ S.Struct({
277
+ id: S.String,
278
+ description: S.String,
279
+ dimensions:
280
+ GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsList,
281
+ unit: S.String,
282
+ aggregations:
283
+ GetObservabilitySchemaByMetricIdResponseBodyItemAggregationsList,
284
+ defaultAggregation: S.String,
285
+ }),
286
+ ).annotate({
287
+ identifier: "GetObservabilitySchemaByMetricIdResponseBodyItem",
288
+ }) as any as S.Schema<GetObservabilitySchemaByMetricIdResponseBodyItem>;
289
+
290
+ export type GetObservabilitySchemaByMetricIdResponseBodyList =
291
+ Array<GetObservabilitySchemaByMetricIdResponseBodyItem>;
292
+ export const GetObservabilitySchemaByMetricIdResponseBodyList =
293
+ /*@__PURE__*/ S.Array(
294
+ GetObservabilitySchemaByMetricIdResponseBodyItem,
295
+ ) as any as S.Schema<GetObservabilitySchemaByMetricIdResponseBodyList>;
296
+
297
+ export type GetObservabilitySchemaByMetricIdResponse =
298
+ GetObservabilitySchemaByMetricIdResponseBodyList;
299
+ export const GetObservabilitySchemaByMetricIdResponse = /*@__PURE__*/ S.suspend(
300
+ () =>
301
+ GetObservabilitySchemaByMetricIdResponseBodyList.pipe(T.RawResponseRoot()),
302
+ ).annotate({
303
+ identifier: "GetObservabilitySchemaByMetricIdResponse",
304
+ }) as any as S.Schema<GetObservabilitySchemaByMetricIdResponse>;
305
+
306
+ export interface UpdateObservabilityConfigurationProjectRequest {
307
+ /** The ID or name of the project to update */
308
+ projectIdOrName: string;
309
+ /** The Team identifier to perform the request on behalf of. */
310
+ teamId?: string;
311
+ /** The Team slug to perform the request on behalf of. */
312
+ slug?: string;
313
+ /** Whether Observability Plus should be disabled for the project */
314
+ disabled: boolean;
315
+ }
316
+ export const UpdateObservabilityConfigurationProjectRequest =
317
+ /*@__PURE__*/ S.suspend(() =>
318
+ S.Struct({
319
+ projectIdOrName: S.String.pipe(T.Label()),
320
+ teamId: S.optional(S.String.pipe(T.Query())),
321
+ slug: S.optional(S.String.pipe(T.Query())),
322
+ disabled: S.Boolean,
323
+ }).pipe(
324
+ T.Http({
325
+ method: "PUT",
326
+ uri: "/v1/observability/manage/configuration/projects/{projectIdOrName}",
327
+ code: 200,
328
+ }),
329
+ ),
330
+ ).annotate({
331
+ identifier: "UpdateObservabilityConfigurationProjectRequest",
332
+ }) as any as S.Schema<UpdateObservabilityConfigurationProjectRequest>;
333
+
334
+ export interface UpdateObservabilityConfigurationProjectResponse {
335
+ id: string;
336
+ disabledAt?: number;
337
+ }
338
+ export const UpdateObservabilityConfigurationProjectResponse =
339
+ /*@__PURE__*/ S.suspend(() =>
340
+ S.Struct({
341
+ id: S.String,
342
+ disabledAt: S.optional(S.Number),
343
+ }),
344
+ ).annotate({
345
+ identifier: "UpdateObservabilityConfigurationProjectResponse",
346
+ }) as any as S.Schema<UpdateObservabilityConfigurationProjectResponse>;
347
+
348
+ export type CreateObservabilityQueryError =
349
+ | BadRequest
350
+ | PaymentRequired
351
+ | Forbidden
352
+ | VercelOpError;
353
+ export const createObservabilityQuery: API.OperationMethod<
354
+ CreateObservabilityQueryRequest,
355
+ CreateObservabilityQueryResponse,
356
+ CreateObservabilityQueryError,
357
+ VercelOpContext
358
+ > = /*@__PURE__*/ API.make(() => ({
359
+ input: CreateObservabilityQueryRequest,
360
+ output: CreateObservabilityQueryResponse,
361
+ errors: [BadRequest, PaymentRequired, Forbidden],
362
+ protocol: VercelProtocol,
363
+ retry: Retry.Retry,
364
+ }));
365
+
366
+ export type GetObservabilityConfigurationProjectsError =
367
+ | BadRequest
368
+ | Forbidden
369
+ | NotFound
370
+ | VercelOpError;
371
+ /** Lists disabled Observability Plus projects Lists the projects that are currently configured as disabled for Observability Plus on a team. */
372
+ export const getObservabilityConfigurationProjects: API.OperationMethod<
373
+ GetObservabilityConfigurationProjectsRequest,
374
+ GetObservabilityConfigurationProjectsResponse,
375
+ GetObservabilityConfigurationProjectsError,
376
+ VercelOpContext
377
+ > = /*@__PURE__*/ API.make(() => ({
378
+ input: GetObservabilityConfigurationProjectsRequest,
379
+ output: GetObservabilityConfigurationProjectsResponse,
380
+ errors: [BadRequest, Forbidden, NotFound],
381
+ protocol: VercelProtocol,
382
+ retry: Retry.Retry,
383
+ }));
384
+
385
+ export type GetObservabilitySchemaError =
386
+ | BadRequest
387
+ | Forbidden
388
+ | VercelOpError;
389
+ export const getObservabilitySchema: API.OperationMethod<
390
+ GetObservabilitySchemaRequest,
391
+ GetObservabilitySchemaResponse,
392
+ GetObservabilitySchemaError,
393
+ VercelOpContext
394
+ > = /*@__PURE__*/ API.make(() => ({
395
+ input: GetObservabilitySchemaRequest,
396
+ output: GetObservabilitySchemaResponse,
397
+ errors: [BadRequest, Forbidden],
398
+ protocol: VercelProtocol,
399
+ retry: Retry.Retry,
400
+ }));
401
+
402
+ export type GetObservabilitySchemaByMetricIdError =
403
+ | BadRequest
404
+ | Forbidden
405
+ | VercelOpError;
406
+ export const getObservabilitySchemaByMetricId: API.OperationMethod<
407
+ GetObservabilitySchemaByMetricIdRequest,
408
+ GetObservabilitySchemaByMetricIdResponse,
409
+ GetObservabilitySchemaByMetricIdError,
410
+ VercelOpContext
411
+ > = /*@__PURE__*/ API.make(() => ({
412
+ input: GetObservabilitySchemaByMetricIdRequest,
413
+ output: GetObservabilitySchemaByMetricIdResponse,
414
+ errors: [BadRequest, Forbidden],
415
+ protocol: VercelProtocol,
416
+ retry: Retry.Retry,
417
+ }));
418
+
419
+ export type UpdateObservabilityConfigurationProjectError =
420
+ | BadRequest
421
+ | Forbidden
422
+ | NotFound
423
+ | VercelOpError;
424
+ /** Updates a disabled Observability Plus project setting Updates whether Observability Plus is disabled for a single project. */
425
+ export const updateObservabilityConfigurationProject: API.OperationMethod<
426
+ UpdateObservabilityConfigurationProjectRequest,
427
+ UpdateObservabilityConfigurationProjectResponse,
428
+ UpdateObservabilityConfigurationProjectError,
429
+ VercelOpContext
430
+ > = /*@__PURE__*/ API.make(() => ({
431
+ input: UpdateObservabilityConfigurationProjectRequest,
432
+ output: UpdateObservabilityConfigurationProjectResponse,
433
+ errors: [BadRequest, Forbidden, NotFound],
434
+ protocol: VercelProtocol,
435
+ retry: Retry.Retry,
436
+ }));