@distilled.cloud/vercel 0.0.0 → 1.0.0-rc.10
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.
- package/LICENSE +201 -0
- package/lib/credentials.d.ts +21 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +40 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +80 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +50 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +69 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +54 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +47 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/access_groups.d.ts +459 -0
- package/lib/services/access_groups.d.ts.map +1 -0
- package/lib/services/access_groups.js +449 -0
- package/lib/services/access_groups.js.map +1 -0
- package/lib/services/ai_gateway.d.ts +122 -0
- package/lib/services/ai_gateway.d.ts.map +1 -0
- package/lib/services/ai_gateway.js +125 -0
- package/lib/services/ai_gateway.js.map +1 -0
- package/lib/services/aliases.d.ts +591 -0
- package/lib/services/aliases.d.ts.map +1 -0
- package/lib/services/aliases.js +482 -0
- package/lib/services/aliases.js.map +1 -0
- package/lib/services/api_ai_gateway.d.ts +275 -0
- package/lib/services/api_ai_gateway.d.ts.map +1 -0
- package/lib/services/api_ai_gateway.js +227 -0
- package/lib/services/api_ai_gateway.js.map +1 -0
- package/lib/services/artifacts.d.ts +228 -0
- package/lib/services/artifacts.d.ts.map +1 -0
- package/lib/services/artifacts.js +214 -0
- package/lib/services/artifacts.js.map +1 -0
- package/lib/services/authentication.d.ts +373 -0
- package/lib/services/authentication.d.ts.map +1 -0
- package/lib/services/authentication.js +304 -0
- package/lib/services/authentication.js.map +1 -0
- package/lib/services/billing.d.ts +930 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +695 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bulk_redirects.d.ts +308 -0
- package/lib/services/bulk_redirects.d.ts.map +1 -0
- package/lib/services/bulk_redirects.js +302 -0
- package/lib/services/bulk_redirects.js.map +1 -0
- package/lib/services/certs.d.ts +171 -0
- package/lib/services/certs.d.ts.map +1 -0
- package/lib/services/certs.js +163 -0
- package/lib/services/certs.js.map +1 -0
- package/lib/services/checks_v2.d.ts +1167 -0
- package/lib/services/checks_v2.d.ts.map +1 -0
- package/lib/services/checks_v2.js +1141 -0
- package/lib/services/checks_v2.js.map +1 -0
- package/lib/services/connect.d.ts +2228 -0
- package/lib/services/connect.d.ts.map +1 -0
- package/lib/services/connect.js +1575 -0
- package/lib/services/connect.js.map +1 -0
- package/lib/services/deployments.d.ts +9419 -0
- package/lib/services/deployments.d.ts.map +1 -0
- package/lib/services/deployments.js +8248 -0
- package/lib/services/deployments.js.map +1 -0
- package/lib/services/dns.d.ts +279 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +277 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/domains.d.ts +564 -0
- package/lib/services/domains.d.ts.map +1 -0
- package/lib/services/domains.js +469 -0
- package/lib/services/domains.js.map +1 -0
- package/lib/services/domains_registrar.d.ts +798 -0
- package/lib/services/domains_registrar.d.ts.map +1 -0
- package/lib/services/domains_registrar.js +916 -0
- package/lib/services/domains_registrar.js.map +1 -0
- package/lib/services/drains.d.ts +2263 -0
- package/lib/services/drains.d.ts.map +1 -0
- package/lib/services/drains.js +2121 -0
- package/lib/services/drains.js.map +1 -0
- package/lib/services/edge_cache.d.ts +125 -0
- package/lib/services/edge_cache.d.ts.map +1 -0
- package/lib/services/edge_cache.js +138 -0
- package/lib/services/edge_cache.js.map +1 -0
- package/lib/services/environment.d.ts +1020 -0
- package/lib/services/environment.d.ts.map +1 -0
- package/lib/services/environment.js +805 -0
- package/lib/services/environment.js.map +1 -0
- package/lib/services/feature_flags.d.ts +2893 -0
- package/lib/services/feature_flags.d.ts.map +1 -0
- package/lib/services/feature_flags.js +2707 -0
- package/lib/services/feature_flags.js.map +1 -0
- package/lib/services/global_config.d.ts +618 -0
- package/lib/services/global_config.d.ts.map +1 -0
- package/lib/services/global_config.js +709 -0
- package/lib/services/global_config.js.map +1 -0
- package/lib/services/index.d.ts +42 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +43 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/integrations.d.ts +3014 -0
- package/lib/services/integrations.d.ts.map +1 -0
- package/lib/services/integrations.js +2544 -0
- package/lib/services/integrations.js.map +1 -0
- package/lib/services/kms.d.ts +1095 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +956 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/log_drains.d.ts +848 -0
- package/lib/services/log_drains.d.ts.map +1 -0
- package/lib/services/log_drains.js +782 -0
- package/lib/services/log_drains.js.map +1 -0
- package/lib/services/logs.d.ts +40 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +43 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/marketplace.d.ts +1053 -0
- package/lib/services/marketplace.d.ts.map +1 -0
- package/lib/services/marketplace.js +1116 -0
- package/lib/services/marketplace.js.map +1 -0
- package/lib/services/microfrontends.d.ts +3250 -0
- package/lib/services/microfrontends.d.ts.map +1 -0
- package/lib/services/microfrontends.js +3154 -0
- package/lib/services/microfrontends.js.map +1 -0
- package/lib/services/misc.d.ts +192 -0
- package/lib/services/misc.d.ts.map +1 -0
- package/lib/services/misc.js +124 -0
- package/lib/services/misc.js.map +1 -0
- package/lib/services/networking.d.ts +360 -0
- package/lib/services/networking.d.ts.map +1 -0
- package/lib/services/networking.js +353 -0
- package/lib/services/networking.js.map +1 -0
- package/lib/services/observability.d.ts +168 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +190 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/project_members.d.ts +142 -0
- package/lib/services/project_members.d.ts.map +1 -0
- package/lib/services/project_members.js +135 -0
- package/lib/services/project_members.js.map +1 -0
- package/lib/services/project_routes.d.ts +1990 -0
- package/lib/services/project_routes.d.ts.map +1 -0
- package/lib/services/project_routes.js +1883 -0
- package/lib/services/project_routes.js.map +1 -0
- package/lib/services/projects.d.ts +23677 -0
- package/lib/services/projects.d.ts.map +1 -0
- package/lib/services/projects.js +22223 -0
- package/lib/services/projects.js.map +1 -0
- package/lib/services/rolling_release.d.ts +764 -0
- package/lib/services/rolling_release.d.ts.map +1 -0
- package/lib/services/rolling_release.js +583 -0
- package/lib/services/rolling_release.js.map +1 -0
- package/lib/services/sandboxes.d.ts +2777 -0
- package/lib/services/sandboxes.d.ts.map +1 -0
- package/lib/services/sandboxes.js +2142 -0
- package/lib/services/sandboxes.js.map +1 -0
- package/lib/services/security.d.ts +4247 -0
- package/lib/services/security.d.ts.map +1 -0
- package/lib/services/security.js +4377 -0
- package/lib/services/security.js.map +1 -0
- package/lib/services/storage.d.ts +251 -0
- package/lib/services/storage.d.ts.map +1 -0
- package/lib/services/storage.js +257 -0
- package/lib/services/storage.js.map +1 -0
- package/lib/services/teams.d.ts +1600 -0
- package/lib/services/teams.d.ts.map +1 -0
- package/lib/services/teams.js +1314 -0
- package/lib/services/teams.js.map +1 -0
- package/lib/services/user.d.ts +8559 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +7407 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vcr.d.ts +751 -0
- package/lib/services/vcr.d.ts.map +1 -0
- package/lib/services/vcr.js +826 -0
- package/lib/services/vcr.js.map +1 -0
- package/lib/services/web_analytics.d.ts +726 -0
- package/lib/services/web_analytics.d.ts.map +1 -0
- package/lib/services/web_analytics.js +707 -0
- package/lib/services/web_analytics.js.map +1 -0
- package/lib/services/webhooks.d.ts +219 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +177 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +78 -7
- package/src/credentials.ts +70 -0
- package/src/errors.ts +93 -0
- package/src/index.ts +18 -0
- package/src/protocol.ts +98 -0
- package/src/retry.ts +78 -0
- package/src/services/access_groups.ts +1165 -0
- package/src/services/ai_gateway.ts +267 -0
- package/src/services/aliases.ts +1315 -0
- package/src/services/api_ai_gateway.ts +607 -0
- package/src/services/artifacts.ts +542 -0
- package/src/services/authentication.ts +827 -0
- package/src/services/billing.ts +2104 -0
- package/src/services/bulk_redirects.ts +748 -0
- package/src/services/certs.ts +371 -0
- package/src/services/checks_v2.ts +3084 -0
- package/src/services/connect.ts +4805 -0
- package/src/services/deployments.ts +24576 -0
- package/src/services/dns.ts +715 -0
- package/src/services/domains.ts +1257 -0
- package/src/services/domains_registrar.ts +2257 -0
- package/src/services/drains.ts +5828 -0
- package/src/services/edge_cache.ts +303 -0
- package/src/services/environment.ts +2379 -0
- package/src/services/feature_flags.ts +7722 -0
- package/src/services/global_config.ts +1668 -0
- package/src/services/index.ts +42 -0
- package/src/services/integrations.ts +9022 -0
- package/src/services/kms.ts +2614 -0
- package/src/services/log_drains.ts +2434 -0
- package/src/services/logs.ts +78 -0
- package/src/services/marketplace.ts +2849 -0
- package/src/services/microfrontends.ts +9921 -0
- package/src/services/misc.ts +364 -0
- package/src/services/networking.ts +865 -0
- package/src/services/observability.ts +435 -0
- package/src/services/project_members.ts +326 -0
- package/src/services/project_routes.ts +5229 -0
- package/src/services/projects.ts +68139 -0
- package/src/services/rolling_release.ts +1860 -0
- package/src/services/sandboxes.ts +6988 -0
- package/src/services/security.ts +13931 -0
- package/src/services/storage.ts +850 -0
- package/src/services/teams.ts +4055 -0
- package/src/services/user.ts +23195 -0
- package/src/services/vcr.ts +2070 -0
- package/src/services/web_analytics.ts +1638 -0
- package/src/services/webhooks.ts +1102 -0
- package/src/traits.ts +46 -0
- package/README.md +0 -15
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vercel/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 = S.String;
|
|
60
|
+
|
|
61
|
+
export interface CreateObservabilityQueryRequest {
|
|
62
|
+
/** Metric id */
|
|
63
|
+
metric: string;
|
|
64
|
+
/** Owner or project scope for the query */
|
|
65
|
+
scope: unknown;
|
|
66
|
+
/** Aggregation function to apply. Some aggregations require a dimension: use <agg>/<dimension>, for example unique/visitor_id. */
|
|
67
|
+
aggregation?: string;
|
|
68
|
+
/** 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'. */
|
|
69
|
+
groupBy?: CreateObservabilityQueryRequestGroupByList;
|
|
70
|
+
/** 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. */
|
|
71
|
+
filter?: string;
|
|
72
|
+
/** Maximum number of results */
|
|
73
|
+
limit?: number;
|
|
74
|
+
/** 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. */
|
|
75
|
+
orderBy?: string;
|
|
76
|
+
/** Direction to order grouped results by. Defaults to desc. */
|
|
77
|
+
orderDirection?:
|
|
78
|
+
| CreateObservabilityQueryRequestOrderDirection
|
|
79
|
+
| (string & {});
|
|
80
|
+
/** Time bucket size */
|
|
81
|
+
granularity?: unknown;
|
|
82
|
+
/** Start timestamp */
|
|
83
|
+
startTime?: string;
|
|
84
|
+
/** End timestamp */
|
|
85
|
+
endTime?: string;
|
|
86
|
+
/** 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. */
|
|
87
|
+
bucketTimezone?: string;
|
|
88
|
+
}
|
|
89
|
+
export const CreateObservabilityQueryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
90
|
+
S.Struct({
|
|
91
|
+
metric: S.String,
|
|
92
|
+
scope: S.Unknown,
|
|
93
|
+
aggregation: S.optional(S.String),
|
|
94
|
+
groupBy: S.optional(CreateObservabilityQueryRequestGroupByList),
|
|
95
|
+
filter: S.optional(S.String),
|
|
96
|
+
limit: S.optional(S.Number),
|
|
97
|
+
orderBy: S.optional(S.String),
|
|
98
|
+
orderDirection: S.optional(CreateObservabilityQueryRequestOrderDirection),
|
|
99
|
+
granularity: S.optional(S.Unknown),
|
|
100
|
+
startTime: S.optional(S.String),
|
|
101
|
+
endTime: S.optional(S.String),
|
|
102
|
+
bucketTimezone: S.optional(S.String),
|
|
103
|
+
}).pipe(
|
|
104
|
+
T.Http({ method: "POST", uri: "/v2/observability/query", code: 200 }),
|
|
105
|
+
),
|
|
106
|
+
).annotate({
|
|
107
|
+
identifier: "CreateObservabilityQueryRequest",
|
|
108
|
+
}) as any as S.Schema<CreateObservabilityQueryRequest>;
|
|
109
|
+
|
|
110
|
+
export type CreateObservabilityQueryResponse = unknown;
|
|
111
|
+
export const CreateObservabilityQueryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
112
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
113
|
+
).annotate({
|
|
114
|
+
identifier: "CreateObservabilityQueryResponse",
|
|
115
|
+
}) as any as S.Schema<CreateObservabilityQueryResponse>;
|
|
116
|
+
|
|
117
|
+
export interface GetObservabilityConfigurationProjectsRequest {
|
|
118
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
119
|
+
teamId?: string;
|
|
120
|
+
/** The Team slug to perform the request on behalf of. */
|
|
121
|
+
slug?: string;
|
|
122
|
+
}
|
|
123
|
+
export const GetObservabilityConfigurationProjectsRequest =
|
|
124
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
125
|
+
S.Struct({
|
|
126
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
127
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
128
|
+
}).pipe(
|
|
129
|
+
T.Http({
|
|
130
|
+
method: "GET",
|
|
131
|
+
uri: "/v1/observability/manage/configuration/projects",
|
|
132
|
+
code: 200,
|
|
133
|
+
}),
|
|
134
|
+
),
|
|
135
|
+
).annotate({
|
|
136
|
+
identifier: "GetObservabilityConfigurationProjectsRequest",
|
|
137
|
+
}) as any as S.Schema<GetObservabilityConfigurationProjectsRequest>;
|
|
138
|
+
|
|
139
|
+
export interface GetObservabilityConfigurationProjectsResponseDisabledProjectsItem {
|
|
140
|
+
id: string;
|
|
141
|
+
name?: string;
|
|
142
|
+
disabledAt: number;
|
|
143
|
+
}
|
|
144
|
+
export const GetObservabilityConfigurationProjectsResponseDisabledProjectsItem =
|
|
145
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
146
|
+
S.Struct({
|
|
147
|
+
id: S.String,
|
|
148
|
+
name: S.optional(S.String),
|
|
149
|
+
disabledAt: S.Number,
|
|
150
|
+
}),
|
|
151
|
+
).annotate({
|
|
152
|
+
identifier:
|
|
153
|
+
"GetObservabilityConfigurationProjectsResponseDisabledProjectsItem",
|
|
154
|
+
}) as any as S.Schema<GetObservabilityConfigurationProjectsResponseDisabledProjectsItem>;
|
|
155
|
+
|
|
156
|
+
export type GetObservabilityConfigurationProjectsResponseDisabledProjectsList =
|
|
157
|
+
Array<GetObservabilityConfigurationProjectsResponseDisabledProjectsItem>;
|
|
158
|
+
export const GetObservabilityConfigurationProjectsResponseDisabledProjectsList =
|
|
159
|
+
/*@__PURE__*/ S.Array(
|
|
160
|
+
GetObservabilityConfigurationProjectsResponseDisabledProjectsItem,
|
|
161
|
+
) as any as S.Schema<GetObservabilityConfigurationProjectsResponseDisabledProjectsList>;
|
|
162
|
+
|
|
163
|
+
export interface GetObservabilityConfigurationProjectsResponse {
|
|
164
|
+
disabledProjects: GetObservabilityConfigurationProjectsResponseDisabledProjectsList;
|
|
165
|
+
}
|
|
166
|
+
export const GetObservabilityConfigurationProjectsResponse =
|
|
167
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
168
|
+
S.Struct({
|
|
169
|
+
disabledProjects:
|
|
170
|
+
GetObservabilityConfigurationProjectsResponseDisabledProjectsList,
|
|
171
|
+
}),
|
|
172
|
+
).annotate({
|
|
173
|
+
identifier: "GetObservabilityConfigurationProjectsResponse",
|
|
174
|
+
}) as any as S.Schema<GetObservabilityConfigurationProjectsResponse>;
|
|
175
|
+
|
|
176
|
+
export interface GetObservabilitySchemaRequest {}
|
|
177
|
+
export const GetObservabilitySchemaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
178
|
+
S.Struct({}).pipe(
|
|
179
|
+
T.Http({ method: "GET", uri: "/v2/observability/schema", code: 200 }),
|
|
180
|
+
),
|
|
181
|
+
).annotate({
|
|
182
|
+
identifier: "GetObservabilitySchemaRequest",
|
|
183
|
+
}) as any as S.Schema<GetObservabilitySchemaRequest>;
|
|
184
|
+
|
|
185
|
+
export interface GetObservabilitySchemaResponseMetricsItem {
|
|
186
|
+
id: string;
|
|
187
|
+
description: string;
|
|
188
|
+
}
|
|
189
|
+
export const GetObservabilitySchemaResponseMetricsItem =
|
|
190
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
191
|
+
S.Struct({
|
|
192
|
+
id: S.String,
|
|
193
|
+
description: S.String,
|
|
194
|
+
}),
|
|
195
|
+
).annotate({
|
|
196
|
+
identifier: "GetObservabilitySchemaResponseMetricsItem",
|
|
197
|
+
}) as any as S.Schema<GetObservabilitySchemaResponseMetricsItem>;
|
|
198
|
+
|
|
199
|
+
export type GetObservabilitySchemaResponseMetricsList =
|
|
200
|
+
Array<GetObservabilitySchemaResponseMetricsItem>;
|
|
201
|
+
export const GetObservabilitySchemaResponseMetricsList = /*@__PURE__*/ S.Array(
|
|
202
|
+
GetObservabilitySchemaResponseMetricsItem,
|
|
203
|
+
) as any as S.Schema<GetObservabilitySchemaResponseMetricsList>;
|
|
204
|
+
|
|
205
|
+
export interface GetObservabilitySchemaResponse {
|
|
206
|
+
metrics: GetObservabilitySchemaResponseMetricsList;
|
|
207
|
+
}
|
|
208
|
+
export const GetObservabilitySchemaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
209
|
+
S.Struct({
|
|
210
|
+
metrics: GetObservabilitySchemaResponseMetricsList,
|
|
211
|
+
}),
|
|
212
|
+
).annotate({
|
|
213
|
+
identifier: "GetObservabilitySchemaResponse",
|
|
214
|
+
}) as any as S.Schema<GetObservabilitySchemaResponse>;
|
|
215
|
+
|
|
216
|
+
export interface GetObservabilitySchemaByMetricIdRequest {
|
|
217
|
+
metricId: string;
|
|
218
|
+
}
|
|
219
|
+
export const GetObservabilitySchemaByMetricIdRequest = /*@__PURE__*/ S.suspend(
|
|
220
|
+
() =>
|
|
221
|
+
S.Struct({
|
|
222
|
+
metricId: S.String.pipe(T.Label()),
|
|
223
|
+
}).pipe(
|
|
224
|
+
T.Http({
|
|
225
|
+
method: "GET",
|
|
226
|
+
uri: "/v2/observability/schema/{metricId}",
|
|
227
|
+
code: 200,
|
|
228
|
+
}),
|
|
229
|
+
),
|
|
230
|
+
).annotate({
|
|
231
|
+
identifier: "GetObservabilitySchemaByMetricIdRequest",
|
|
232
|
+
}) as any as S.Schema<GetObservabilitySchemaByMetricIdRequest>;
|
|
233
|
+
|
|
234
|
+
export interface GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem {
|
|
235
|
+
name: string;
|
|
236
|
+
label: string;
|
|
237
|
+
description?: string;
|
|
238
|
+
}
|
|
239
|
+
export const GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem =
|
|
240
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
241
|
+
S.Struct({
|
|
242
|
+
name: S.String,
|
|
243
|
+
label: S.String,
|
|
244
|
+
description: S.optional(S.String),
|
|
245
|
+
}),
|
|
246
|
+
).annotate({
|
|
247
|
+
identifier:
|
|
248
|
+
"GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem",
|
|
249
|
+
}) as any as S.Schema<GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem>;
|
|
250
|
+
|
|
251
|
+
export type GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsList =
|
|
252
|
+
Array<GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem>;
|
|
253
|
+
export const GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsList =
|
|
254
|
+
/*@__PURE__*/ S.Array(
|
|
255
|
+
GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsItem,
|
|
256
|
+
) as any as S.Schema<GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsList>;
|
|
257
|
+
|
|
258
|
+
export type GetObservabilitySchemaByMetricIdResponseBodyItemAggregationsList =
|
|
259
|
+
Array<string>;
|
|
260
|
+
export const GetObservabilitySchemaByMetricIdResponseBodyItemAggregationsList =
|
|
261
|
+
/*@__PURE__*/ S.Array(
|
|
262
|
+
S.String,
|
|
263
|
+
) as any as S.Schema<GetObservabilitySchemaByMetricIdResponseBodyItemAggregationsList>;
|
|
264
|
+
|
|
265
|
+
export interface GetObservabilitySchemaByMetricIdResponseBodyItem {
|
|
266
|
+
id: string;
|
|
267
|
+
description: string;
|
|
268
|
+
dimensions: GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsList;
|
|
269
|
+
unit: string;
|
|
270
|
+
aggregations: GetObservabilitySchemaByMetricIdResponseBodyItemAggregationsList;
|
|
271
|
+
defaultAggregation: string;
|
|
272
|
+
}
|
|
273
|
+
export const GetObservabilitySchemaByMetricIdResponseBodyItem =
|
|
274
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
275
|
+
S.Struct({
|
|
276
|
+
id: S.String,
|
|
277
|
+
description: S.String,
|
|
278
|
+
dimensions:
|
|
279
|
+
GetObservabilitySchemaByMetricIdResponseBodyItemDimensionsList,
|
|
280
|
+
unit: S.String,
|
|
281
|
+
aggregations:
|
|
282
|
+
GetObservabilitySchemaByMetricIdResponseBodyItemAggregationsList,
|
|
283
|
+
defaultAggregation: S.String,
|
|
284
|
+
}),
|
|
285
|
+
).annotate({
|
|
286
|
+
identifier: "GetObservabilitySchemaByMetricIdResponseBodyItem",
|
|
287
|
+
}) as any as S.Schema<GetObservabilitySchemaByMetricIdResponseBodyItem>;
|
|
288
|
+
|
|
289
|
+
export type GetObservabilitySchemaByMetricIdResponseBodyList =
|
|
290
|
+
Array<GetObservabilitySchemaByMetricIdResponseBodyItem>;
|
|
291
|
+
export const GetObservabilitySchemaByMetricIdResponseBodyList =
|
|
292
|
+
/*@__PURE__*/ S.Array(
|
|
293
|
+
GetObservabilitySchemaByMetricIdResponseBodyItem,
|
|
294
|
+
) as any as S.Schema<GetObservabilitySchemaByMetricIdResponseBodyList>;
|
|
295
|
+
|
|
296
|
+
export type GetObservabilitySchemaByMetricIdResponse =
|
|
297
|
+
GetObservabilitySchemaByMetricIdResponseBodyList;
|
|
298
|
+
export const GetObservabilitySchemaByMetricIdResponse = /*@__PURE__*/ S.suspend(
|
|
299
|
+
() =>
|
|
300
|
+
GetObservabilitySchemaByMetricIdResponseBodyList.pipe(T.RawResponseRoot()),
|
|
301
|
+
).annotate({
|
|
302
|
+
identifier: "GetObservabilitySchemaByMetricIdResponse",
|
|
303
|
+
}) as any as S.Schema<GetObservabilitySchemaByMetricIdResponse>;
|
|
304
|
+
|
|
305
|
+
export interface UpdateObservabilityConfigurationProjectRequest {
|
|
306
|
+
/** The ID or name of the project to update */
|
|
307
|
+
projectIdOrName: string;
|
|
308
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
309
|
+
teamId?: string;
|
|
310
|
+
/** The Team slug to perform the request on behalf of. */
|
|
311
|
+
slug?: string;
|
|
312
|
+
/** Whether Observability Plus should be disabled for the project */
|
|
313
|
+
disabled: boolean;
|
|
314
|
+
}
|
|
315
|
+
export const UpdateObservabilityConfigurationProjectRequest =
|
|
316
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
317
|
+
S.Struct({
|
|
318
|
+
projectIdOrName: S.String.pipe(T.Label()),
|
|
319
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
320
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
321
|
+
disabled: S.Boolean,
|
|
322
|
+
}).pipe(
|
|
323
|
+
T.Http({
|
|
324
|
+
method: "PUT",
|
|
325
|
+
uri: "/v1/observability/manage/configuration/projects/{projectIdOrName}",
|
|
326
|
+
code: 200,
|
|
327
|
+
}),
|
|
328
|
+
),
|
|
329
|
+
).annotate({
|
|
330
|
+
identifier: "UpdateObservabilityConfigurationProjectRequest",
|
|
331
|
+
}) as any as S.Schema<UpdateObservabilityConfigurationProjectRequest>;
|
|
332
|
+
|
|
333
|
+
export interface UpdateObservabilityConfigurationProjectResponse {
|
|
334
|
+
id: string;
|
|
335
|
+
disabledAt?: number;
|
|
336
|
+
}
|
|
337
|
+
export const UpdateObservabilityConfigurationProjectResponse =
|
|
338
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
339
|
+
S.Struct({
|
|
340
|
+
id: S.String,
|
|
341
|
+
disabledAt: S.optional(S.Number),
|
|
342
|
+
}),
|
|
343
|
+
).annotate({
|
|
344
|
+
identifier: "UpdateObservabilityConfigurationProjectResponse",
|
|
345
|
+
}) as any as S.Schema<UpdateObservabilityConfigurationProjectResponse>;
|
|
346
|
+
|
|
347
|
+
export type CreateObservabilityQueryError =
|
|
348
|
+
| BadRequest
|
|
349
|
+
| PaymentRequired
|
|
350
|
+
| Forbidden
|
|
351
|
+
| VercelOpError;
|
|
352
|
+
export const createObservabilityQuery: API.OperationMethod<
|
|
353
|
+
CreateObservabilityQueryRequest,
|
|
354
|
+
CreateObservabilityQueryResponse,
|
|
355
|
+
CreateObservabilityQueryError,
|
|
356
|
+
VercelOpContext
|
|
357
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
358
|
+
input: CreateObservabilityQueryRequest,
|
|
359
|
+
output: CreateObservabilityQueryResponse,
|
|
360
|
+
errors: [BadRequest, PaymentRequired, Forbidden],
|
|
361
|
+
protocol: VercelProtocol,
|
|
362
|
+
retry: Retry.Retry,
|
|
363
|
+
}));
|
|
364
|
+
|
|
365
|
+
export type GetObservabilityConfigurationProjectsError =
|
|
366
|
+
| BadRequest
|
|
367
|
+
| Forbidden
|
|
368
|
+
| NotFound
|
|
369
|
+
| VercelOpError;
|
|
370
|
+
/** Lists disabled Observability Plus projects Lists the projects that are currently configured as disabled for Observability Plus on a team. */
|
|
371
|
+
export const getObservabilityConfigurationProjects: API.OperationMethod<
|
|
372
|
+
GetObservabilityConfigurationProjectsRequest,
|
|
373
|
+
GetObservabilityConfigurationProjectsResponse,
|
|
374
|
+
GetObservabilityConfigurationProjectsError,
|
|
375
|
+
VercelOpContext
|
|
376
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
377
|
+
input: GetObservabilityConfigurationProjectsRequest,
|
|
378
|
+
output: GetObservabilityConfigurationProjectsResponse,
|
|
379
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
380
|
+
protocol: VercelProtocol,
|
|
381
|
+
retry: Retry.Retry,
|
|
382
|
+
}));
|
|
383
|
+
|
|
384
|
+
export type GetObservabilitySchemaError =
|
|
385
|
+
| BadRequest
|
|
386
|
+
| Forbidden
|
|
387
|
+
| VercelOpError;
|
|
388
|
+
export const getObservabilitySchema: API.OperationMethod<
|
|
389
|
+
GetObservabilitySchemaRequest,
|
|
390
|
+
GetObservabilitySchemaResponse,
|
|
391
|
+
GetObservabilitySchemaError,
|
|
392
|
+
VercelOpContext
|
|
393
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
394
|
+
input: GetObservabilitySchemaRequest,
|
|
395
|
+
output: GetObservabilitySchemaResponse,
|
|
396
|
+
errors: [BadRequest, Forbidden],
|
|
397
|
+
protocol: VercelProtocol,
|
|
398
|
+
retry: Retry.Retry,
|
|
399
|
+
}));
|
|
400
|
+
|
|
401
|
+
export type GetObservabilitySchemaByMetricIdError =
|
|
402
|
+
| BadRequest
|
|
403
|
+
| Forbidden
|
|
404
|
+
| VercelOpError;
|
|
405
|
+
export const getObservabilitySchemaByMetricId: API.OperationMethod<
|
|
406
|
+
GetObservabilitySchemaByMetricIdRequest,
|
|
407
|
+
GetObservabilitySchemaByMetricIdResponse,
|
|
408
|
+
GetObservabilitySchemaByMetricIdError,
|
|
409
|
+
VercelOpContext
|
|
410
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
411
|
+
input: GetObservabilitySchemaByMetricIdRequest,
|
|
412
|
+
output: GetObservabilitySchemaByMetricIdResponse,
|
|
413
|
+
errors: [BadRequest, Forbidden],
|
|
414
|
+
protocol: VercelProtocol,
|
|
415
|
+
retry: Retry.Retry,
|
|
416
|
+
}));
|
|
417
|
+
|
|
418
|
+
export type UpdateObservabilityConfigurationProjectError =
|
|
419
|
+
| BadRequest
|
|
420
|
+
| Forbidden
|
|
421
|
+
| NotFound
|
|
422
|
+
| VercelOpError;
|
|
423
|
+
/** Updates a disabled Observability Plus project setting Updates whether Observability Plus is disabled for a single project. */
|
|
424
|
+
export const updateObservabilityConfigurationProject: API.OperationMethod<
|
|
425
|
+
UpdateObservabilityConfigurationProjectRequest,
|
|
426
|
+
UpdateObservabilityConfigurationProjectResponse,
|
|
427
|
+
UpdateObservabilityConfigurationProjectError,
|
|
428
|
+
VercelOpContext
|
|
429
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
430
|
+
input: UpdateObservabilityConfigurationProjectRequest,
|
|
431
|
+
output: UpdateObservabilityConfigurationProjectResponse,
|
|
432
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
433
|
+
protocol: VercelProtocol,
|
|
434
|
+
retry: Retry.Retry,
|
|
435
|
+
}));
|