@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,4055 @@
|
|
|
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 Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as C from "@distilled.cloud/core/category";
|
|
6
|
+
import * as T from "../traits.ts";
|
|
7
|
+
import {
|
|
8
|
+
VercelProtocol,
|
|
9
|
+
type VercelOpError,
|
|
10
|
+
type VercelOpContext,
|
|
11
|
+
} from "../protocol.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { VercelOpError, VercelOpContext };
|
|
15
|
+
|
|
16
|
+
export class BadRequest
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
19
|
+
code: S.Number,
|
|
20
|
+
message: S.String,
|
|
21
|
+
}).pipe(C.withBadRequestError),
|
|
22
|
+
[{ status: 400 }],
|
|
23
|
+
) {}
|
|
24
|
+
|
|
25
|
+
export class Conflict
|
|
26
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withConflictError),
|
|
31
|
+
[{ status: 409 }],
|
|
32
|
+
) {}
|
|
33
|
+
|
|
34
|
+
export class Forbidden
|
|
35
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
37
|
+
code: S.Number,
|
|
38
|
+
message: S.String,
|
|
39
|
+
}).pipe(C.withAuthError),
|
|
40
|
+
[{ status: 403 }],
|
|
41
|
+
) {}
|
|
42
|
+
|
|
43
|
+
export class NotFound
|
|
44
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
45
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
46
|
+
code: S.Number,
|
|
47
|
+
message: S.String,
|
|
48
|
+
}).pipe(C.withBadRequestError),
|
|
49
|
+
[{ status: 404 }],
|
|
50
|
+
) {}
|
|
51
|
+
|
|
52
|
+
export class PaymentRequired
|
|
53
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
54
|
+
/*@__PURE__*/ S.TaggedError<PaymentRequired>()("PaymentRequired", {
|
|
55
|
+
code: S.Number,
|
|
56
|
+
message: S.String,
|
|
57
|
+
}).pipe(C.withQuotaError),
|
|
58
|
+
[{ status: 402 }],
|
|
59
|
+
) {}
|
|
60
|
+
|
|
61
|
+
export interface CreateTeamRequestAttributionUtm {
|
|
62
|
+
/** UTM source */
|
|
63
|
+
utmSource?: string;
|
|
64
|
+
/** UTM medium */
|
|
65
|
+
utmMedium?: string;
|
|
66
|
+
/** UTM campaign */
|
|
67
|
+
utmCampaign?: string;
|
|
68
|
+
/** UTM term */
|
|
69
|
+
utmTerm?: string;
|
|
70
|
+
}
|
|
71
|
+
export const CreateTeamRequestAttributionUtm = /*@__PURE__*/ S.suspend(() =>
|
|
72
|
+
S.Struct({
|
|
73
|
+
utmSource: S.optional(S.String),
|
|
74
|
+
utmMedium: S.optional(S.String),
|
|
75
|
+
utmCampaign: S.optional(S.String),
|
|
76
|
+
utmTerm: S.optional(S.String),
|
|
77
|
+
}),
|
|
78
|
+
).annotate({
|
|
79
|
+
identifier: "CreateTeamRequestAttributionUtm",
|
|
80
|
+
}) as any as S.Schema<CreateTeamRequestAttributionUtm>;
|
|
81
|
+
|
|
82
|
+
/** Attribution information for the session or current page */
|
|
83
|
+
export interface CreateTeamRequestAttribution {
|
|
84
|
+
/** Session referrer */
|
|
85
|
+
sessionReferrer?: string;
|
|
86
|
+
/** Session landing page */
|
|
87
|
+
landingPage?: string;
|
|
88
|
+
/** Referrer to the signup page */
|
|
89
|
+
pageBeforeConversionPage?: string;
|
|
90
|
+
utm?: CreateTeamRequestAttributionUtm;
|
|
91
|
+
}
|
|
92
|
+
export const CreateTeamRequestAttribution = /*@__PURE__*/ S.suspend(() =>
|
|
93
|
+
S.Struct({
|
|
94
|
+
sessionReferrer: S.optional(S.String),
|
|
95
|
+
landingPage: S.optional(S.String),
|
|
96
|
+
pageBeforeConversionPage: S.optional(S.String),
|
|
97
|
+
utm: S.optional(CreateTeamRequestAttributionUtm),
|
|
98
|
+
}),
|
|
99
|
+
).annotate({
|
|
100
|
+
identifier: "CreateTeamRequestAttribution",
|
|
101
|
+
}) as any as S.Schema<CreateTeamRequestAttribution>;
|
|
102
|
+
|
|
103
|
+
export interface CreateTeamRequest {
|
|
104
|
+
/** The desired slug for the Team */
|
|
105
|
+
slug: string;
|
|
106
|
+
/** The desired name for the Team. It will be generated from the provided slug if nothing is provided */
|
|
107
|
+
name?: string;
|
|
108
|
+
/** Attribution information for the session or current page */
|
|
109
|
+
attribution?: CreateTeamRequestAttribution;
|
|
110
|
+
}
|
|
111
|
+
export const CreateTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
112
|
+
S.Struct({
|
|
113
|
+
slug: S.String,
|
|
114
|
+
name: S.optional(S.String),
|
|
115
|
+
attribution: S.optional(CreateTeamRequestAttribution),
|
|
116
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/teams", code: 200 })),
|
|
117
|
+
).annotate({
|
|
118
|
+
identifier: "CreateTeamRequest",
|
|
119
|
+
}) as any as S.Schema<CreateTeamRequest>;
|
|
120
|
+
|
|
121
|
+
export interface CreateTeamResponse {
|
|
122
|
+
/** Id of the created team */
|
|
123
|
+
id: string;
|
|
124
|
+
slug: string;
|
|
125
|
+
}
|
|
126
|
+
export const CreateTeamResponse = /*@__PURE__*/ S.suspend(() =>
|
|
127
|
+
S.Struct({
|
|
128
|
+
id: S.String,
|
|
129
|
+
slug: S.String,
|
|
130
|
+
}),
|
|
131
|
+
).annotate({
|
|
132
|
+
identifier: "CreateTeamResponse",
|
|
133
|
+
}) as any as S.Schema<CreateTeamResponse>;
|
|
134
|
+
|
|
135
|
+
export type CreateTeamDsyncRoleRequestRolesValueCase0 =
|
|
136
|
+
| "OWNER"
|
|
137
|
+
| "MEMBER"
|
|
138
|
+
| "DEVELOPER"
|
|
139
|
+
| "SECURITY"
|
|
140
|
+
| "BILLING"
|
|
141
|
+
| "VIEWER"
|
|
142
|
+
| "VIEWER_FOR_PLUS"
|
|
143
|
+
| "CONTRIBUTOR";
|
|
144
|
+
export const CreateTeamDsyncRoleRequestRolesValueCase0 = S.String;
|
|
145
|
+
|
|
146
|
+
export interface CreateTeamDsyncRoleRequestRolesValueCase1 {
|
|
147
|
+
accessGroupId: string;
|
|
148
|
+
}
|
|
149
|
+
export const CreateTeamDsyncRoleRequestRolesValueCase1 =
|
|
150
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
151
|
+
S.Struct({
|
|
152
|
+
accessGroupId: S.String,
|
|
153
|
+
}),
|
|
154
|
+
).annotate({
|
|
155
|
+
identifier: "CreateTeamDsyncRoleRequestRolesValueCase1",
|
|
156
|
+
}) as any as S.Schema<CreateTeamDsyncRoleRequestRolesValueCase1>;
|
|
157
|
+
|
|
158
|
+
export type CreateTeamDsyncRoleRequestRolesValue =
|
|
159
|
+
| CreateTeamDsyncRoleRequestRolesValueCase0
|
|
160
|
+
| CreateTeamDsyncRoleRequestRolesValueCase1;
|
|
161
|
+
export const CreateTeamDsyncRoleRequestRolesValue =
|
|
162
|
+
S.Unknown as any as S.Schema<CreateTeamDsyncRoleRequestRolesValue>;
|
|
163
|
+
|
|
164
|
+
/** Directory groups to role or access group mappings. */
|
|
165
|
+
export type CreateTeamDsyncRoleRequestRolesMap = {
|
|
166
|
+
[key: string]: CreateTeamDsyncRoleRequestRolesValue | undefined;
|
|
167
|
+
};
|
|
168
|
+
export const CreateTeamDsyncRoleRequestRolesMap = /*@__PURE__*/ S.Record(
|
|
169
|
+
S.String,
|
|
170
|
+
CreateTeamDsyncRoleRequestRolesValue,
|
|
171
|
+
) as any as S.Schema<CreateTeamDsyncRoleRequestRolesMap>;
|
|
172
|
+
|
|
173
|
+
export interface CreateTeamDsyncRoleRequest {
|
|
174
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
175
|
+
teamId: string;
|
|
176
|
+
/** The Team slug to perform the request on behalf of. */
|
|
177
|
+
slug?: string;
|
|
178
|
+
/** Directory groups to role or access group mappings. */
|
|
179
|
+
roles: CreateTeamDsyncRoleRequestRolesMap;
|
|
180
|
+
}
|
|
181
|
+
export const CreateTeamDsyncRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
182
|
+
S.Struct({
|
|
183
|
+
teamId: S.String.pipe(T.Label()),
|
|
184
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
185
|
+
roles: CreateTeamDsyncRoleRequestRolesMap,
|
|
186
|
+
}).pipe(
|
|
187
|
+
T.Http({
|
|
188
|
+
method: "POST",
|
|
189
|
+
uri: "/v1/teams/{teamId}/dsync-roles",
|
|
190
|
+
code: 200,
|
|
191
|
+
}),
|
|
192
|
+
),
|
|
193
|
+
).annotate({
|
|
194
|
+
identifier: "CreateTeamDsyncRoleRequest",
|
|
195
|
+
}) as any as S.Schema<CreateTeamDsyncRoleRequest>;
|
|
196
|
+
|
|
197
|
+
export interface CreateTeamDsyncRoleResponse {
|
|
198
|
+
ok: boolean;
|
|
199
|
+
}
|
|
200
|
+
export const CreateTeamDsyncRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
201
|
+
S.Struct({
|
|
202
|
+
ok: S.Boolean,
|
|
203
|
+
}),
|
|
204
|
+
).annotate({
|
|
205
|
+
identifier: "CreateTeamDsyncRoleResponse",
|
|
206
|
+
}) as any as S.Schema<CreateTeamDsyncRoleResponse>;
|
|
207
|
+
|
|
208
|
+
export interface DeleteMicrofrontendsGroupRequest {
|
|
209
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
210
|
+
teamId: string;
|
|
211
|
+
/** The microfrontend group ID to delete. */
|
|
212
|
+
groupId: string;
|
|
213
|
+
/** The Team slug to perform the request on behalf of. */
|
|
214
|
+
slug?: string;
|
|
215
|
+
}
|
|
216
|
+
export const DeleteMicrofrontendsGroupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
217
|
+
S.Struct({
|
|
218
|
+
teamId: S.String.pipe(T.Label()),
|
|
219
|
+
groupId: S.String.pipe(T.Label()),
|
|
220
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
221
|
+
}).pipe(
|
|
222
|
+
T.Http({
|
|
223
|
+
method: "DELETE",
|
|
224
|
+
uri: "/v1/teams/{teamId}/microfrontends/{groupId}",
|
|
225
|
+
code: 200,
|
|
226
|
+
}),
|
|
227
|
+
),
|
|
228
|
+
).annotate({
|
|
229
|
+
identifier: "DeleteMicrofrontendsGroupRequest",
|
|
230
|
+
}) as any as S.Schema<DeleteMicrofrontendsGroupRequest>;
|
|
231
|
+
|
|
232
|
+
export type DeleteMicrofrontendsGroupResponse = unknown;
|
|
233
|
+
export const DeleteMicrofrontendsGroupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
234
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
235
|
+
).annotate({
|
|
236
|
+
identifier: "DeleteMicrofrontendsGroupResponse",
|
|
237
|
+
}) as any as S.Schema<DeleteMicrofrontendsGroupResponse>;
|
|
238
|
+
|
|
239
|
+
/** An object describing the reason why the team is being deleted. */
|
|
240
|
+
export interface DeleteTeamRequestReasonsItem {
|
|
241
|
+
/** Idenitifier slug of the reason why the team is being deleted. */
|
|
242
|
+
slug: string;
|
|
243
|
+
/** Description of the reason why the team is being deleted. */
|
|
244
|
+
description: string;
|
|
245
|
+
}
|
|
246
|
+
export const DeleteTeamRequestReasonsItem = /*@__PURE__*/ S.suspend(() =>
|
|
247
|
+
S.Struct({
|
|
248
|
+
slug: S.String,
|
|
249
|
+
description: S.String,
|
|
250
|
+
}),
|
|
251
|
+
).annotate({
|
|
252
|
+
identifier: "DeleteTeamRequestReasonsItem",
|
|
253
|
+
}) as any as S.Schema<DeleteTeamRequestReasonsItem>;
|
|
254
|
+
|
|
255
|
+
/** Optional array of objects that describe the reason why the team is being deleted. */
|
|
256
|
+
export type DeleteTeamRequestReasonsList = Array<DeleteTeamRequestReasonsItem>;
|
|
257
|
+
export const DeleteTeamRequestReasonsList = /*@__PURE__*/ S.Array(
|
|
258
|
+
DeleteTeamRequestReasonsItem,
|
|
259
|
+
) as any as S.Schema<DeleteTeamRequestReasonsList>;
|
|
260
|
+
|
|
261
|
+
export interface DeleteTeamRequest {
|
|
262
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
263
|
+
teamId: string;
|
|
264
|
+
/** Id of the team to be set as the new default team */
|
|
265
|
+
newDefaultTeamId?: string;
|
|
266
|
+
/** The Team slug to perform the request on behalf of. */
|
|
267
|
+
slug?: string;
|
|
268
|
+
/** Optional array of objects that describe the reason why the team is being deleted. */
|
|
269
|
+
reasons?: DeleteTeamRequestReasonsList;
|
|
270
|
+
}
|
|
271
|
+
export const DeleteTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
272
|
+
S.Struct({
|
|
273
|
+
teamId: S.String.pipe(T.Label()),
|
|
274
|
+
newDefaultTeamId: S.optional(S.String.pipe(T.Query())),
|
|
275
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
276
|
+
reasons: S.optional(DeleteTeamRequestReasonsList),
|
|
277
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/v1/teams/{teamId}", code: 200 })),
|
|
278
|
+
).annotate({
|
|
279
|
+
identifier: "DeleteTeamRequest",
|
|
280
|
+
}) as any as S.Schema<DeleteTeamRequest>;
|
|
281
|
+
|
|
282
|
+
export interface DeleteTeamResponse {
|
|
283
|
+
/** The ID of the deleted Team */
|
|
284
|
+
id: string;
|
|
285
|
+
/** Signifies whether the default team update has failed, when newDefaultTeamId is provided in request query. */
|
|
286
|
+
newDefaultTeamIdError?: boolean;
|
|
287
|
+
}
|
|
288
|
+
export const DeleteTeamResponse = /*@__PURE__*/ S.suspend(() =>
|
|
289
|
+
S.Struct({
|
|
290
|
+
id: S.String,
|
|
291
|
+
newDefaultTeamIdError: S.optional(S.Boolean),
|
|
292
|
+
}),
|
|
293
|
+
).annotate({
|
|
294
|
+
identifier: "DeleteTeamResponse",
|
|
295
|
+
}) as any as S.Schema<DeleteTeamResponse>;
|
|
296
|
+
|
|
297
|
+
export interface DeleteTeamInviteCodeRequest {
|
|
298
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
299
|
+
teamId: string;
|
|
300
|
+
/** The Team invite code ID. */
|
|
301
|
+
inviteId: string;
|
|
302
|
+
}
|
|
303
|
+
export const DeleteTeamInviteCodeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
304
|
+
S.Struct({
|
|
305
|
+
teamId: S.String.pipe(T.Label()),
|
|
306
|
+
inviteId: S.String.pipe(T.Label()),
|
|
307
|
+
}).pipe(
|
|
308
|
+
T.Http({
|
|
309
|
+
method: "DELETE",
|
|
310
|
+
uri: "/v1/teams/{teamId}/invites/{inviteId}",
|
|
311
|
+
code: 200,
|
|
312
|
+
}),
|
|
313
|
+
),
|
|
314
|
+
).annotate({
|
|
315
|
+
identifier: "DeleteTeamInviteCodeRequest",
|
|
316
|
+
}) as any as S.Schema<DeleteTeamInviteCodeRequest>;
|
|
317
|
+
|
|
318
|
+
export interface DeleteTeamInviteCodeResponse {
|
|
319
|
+
/** ID of the team. */
|
|
320
|
+
id: string;
|
|
321
|
+
}
|
|
322
|
+
export const DeleteTeamInviteCodeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
323
|
+
S.Struct({
|
|
324
|
+
id: S.String,
|
|
325
|
+
}),
|
|
326
|
+
).annotate({
|
|
327
|
+
identifier: "DeleteTeamInviteCodeResponse",
|
|
328
|
+
}) as any as S.Schema<DeleteTeamInviteCodeResponse>;
|
|
329
|
+
|
|
330
|
+
export interface GetTeamRequest {
|
|
331
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
332
|
+
teamId: string;
|
|
333
|
+
slug?: string;
|
|
334
|
+
}
|
|
335
|
+
export const GetTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
336
|
+
S.Struct({
|
|
337
|
+
teamId: S.String.pipe(T.Label()),
|
|
338
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
339
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/teams/{teamId}", code: 200 })),
|
|
340
|
+
).annotate({ identifier: "GetTeamRequest" }) as any as S.Schema<GetTeamRequest>;
|
|
341
|
+
|
|
342
|
+
export interface TeamConnect {
|
|
343
|
+
enabled?: boolean;
|
|
344
|
+
}
|
|
345
|
+
export const TeamConnect = /*@__PURE__*/ S.suspend(() =>
|
|
346
|
+
S.Struct({
|
|
347
|
+
enabled: S.optional(S.Boolean),
|
|
348
|
+
}),
|
|
349
|
+
).annotate({ identifier: "TeamConnect" }) as any as S.Schema<TeamConnect>;
|
|
350
|
+
|
|
351
|
+
/** Controls whether directory sync events are processed. - 'SETUP': Directory connected but role mappings not yet configured. Events are acknowledged but not processed. - 'ACTIVE': Fully configured. Events are processed normally. - undefined: Legacy directory (pre-feature), treat as 'ACTIVE' for backwards compatibility. */
|
|
352
|
+
export type TeamSamlConnectionSyncState = "ACTIVE" | "SETUP";
|
|
353
|
+
export const TeamSamlConnectionSyncState = S.String;
|
|
354
|
+
|
|
355
|
+
/** Information for the SAML Single Sign-On configuration. */
|
|
356
|
+
export interface TeamSamlConnection {
|
|
357
|
+
/** The Identity Provider "type", for example Okta. */
|
|
358
|
+
type: string;
|
|
359
|
+
/** Current state of the connection. */
|
|
360
|
+
state: string;
|
|
361
|
+
/** Timestamp (in milliseconds) of when the configuration was connected. */
|
|
362
|
+
connectedAt: number;
|
|
363
|
+
/** Timestamp (in milliseconds) of when the last webhook event was received from WorkOS. */
|
|
364
|
+
lastReceivedWebhookEvent?: number;
|
|
365
|
+
/** Timestamp (in milliseconds) of when the last directory sync was performed. */
|
|
366
|
+
lastSyncedAt?: number;
|
|
367
|
+
/** Controls whether directory sync events are processed. - 'SETUP': Directory connected but role mappings not yet configured. Events are acknowledged but not processed. - 'ACTIVE': Fully configured. Events are processed normally. - undefined: Legacy directory (pre-feature), treat as 'ACTIVE' for backwards compatibility. */
|
|
368
|
+
syncState?: TeamSamlConnectionSyncState;
|
|
369
|
+
status: string;
|
|
370
|
+
}
|
|
371
|
+
export const TeamSamlConnection = /*@__PURE__*/ S.suspend(() =>
|
|
372
|
+
S.Struct({
|
|
373
|
+
type: S.String,
|
|
374
|
+
state: S.String,
|
|
375
|
+
connectedAt: S.Number,
|
|
376
|
+
lastReceivedWebhookEvent: S.optional(S.Number),
|
|
377
|
+
lastSyncedAt: S.optional(S.Number),
|
|
378
|
+
syncState: S.optional(TeamSamlConnectionSyncState),
|
|
379
|
+
status: S.String,
|
|
380
|
+
}),
|
|
381
|
+
).annotate({
|
|
382
|
+
identifier: "TeamSamlConnection",
|
|
383
|
+
}) as any as S.Schema<TeamSamlConnection>;
|
|
384
|
+
|
|
385
|
+
/** Controls whether directory sync events are processed. - 'SETUP': Directory connected but role mappings not yet configured. Events are acknowledged but not processed. - 'ACTIVE': Fully configured. Events are processed normally. - undefined: Legacy directory (pre-feature), treat as 'ACTIVE' for backwards compatibility. */
|
|
386
|
+
export type TeamSamlDirectorySyncState = "ACTIVE" | "SETUP";
|
|
387
|
+
export const TeamSamlDirectorySyncState = S.String;
|
|
388
|
+
|
|
389
|
+
/** Information for the Directory Sync configuration. */
|
|
390
|
+
export interface TeamSamlDirectory {
|
|
391
|
+
/** The Identity Provider "type", for example Okta. */
|
|
392
|
+
type: string;
|
|
393
|
+
/** Current state of the connection. */
|
|
394
|
+
state: string;
|
|
395
|
+
/** Timestamp (in milliseconds) of when the configuration was connected. */
|
|
396
|
+
connectedAt: number;
|
|
397
|
+
/** Timestamp (in milliseconds) of when the last webhook event was received from WorkOS. */
|
|
398
|
+
lastReceivedWebhookEvent?: number;
|
|
399
|
+
/** Timestamp (in milliseconds) of when the last directory sync was performed. */
|
|
400
|
+
lastSyncedAt?: number;
|
|
401
|
+
/** Controls whether directory sync events are processed. - 'SETUP': Directory connected but role mappings not yet configured. Events are acknowledged but not processed. - 'ACTIVE': Fully configured. Events are processed normally. - undefined: Legacy directory (pre-feature), treat as 'ACTIVE' for backwards compatibility. */
|
|
402
|
+
syncState?: TeamSamlDirectorySyncState;
|
|
403
|
+
}
|
|
404
|
+
export const TeamSamlDirectory = /*@__PURE__*/ S.suspend(() =>
|
|
405
|
+
S.Struct({
|
|
406
|
+
type: S.String,
|
|
407
|
+
state: S.String,
|
|
408
|
+
connectedAt: S.Number,
|
|
409
|
+
lastReceivedWebhookEvent: S.optional(S.Number),
|
|
410
|
+
lastSyncedAt: S.optional(S.Number),
|
|
411
|
+
syncState: S.optional(TeamSamlDirectorySyncState),
|
|
412
|
+
}),
|
|
413
|
+
).annotate({
|
|
414
|
+
identifier: "TeamSamlDirectory",
|
|
415
|
+
}) as any as S.Schema<TeamSamlDirectory>;
|
|
416
|
+
|
|
417
|
+
/** The default redirect URI to use after successful SAML authentication. */
|
|
418
|
+
export type TeamSamlDefaultRedirectUri = "v0.app" | "v0.dev" | "vercel.com";
|
|
419
|
+
export const TeamSamlDefaultRedirectUri = S.String;
|
|
420
|
+
|
|
421
|
+
/** When "Directory Sync" is configured, this object contains a mapping of which Directory Group (by ID) should be assigned to which Vercel Team "role". */
|
|
422
|
+
export type TeamSamlRolesValueCase0 = CreateTeamDsyncRoleRequestRolesValueCase1;
|
|
423
|
+
export const TeamSamlRolesValueCase0 =
|
|
424
|
+
CreateTeamDsyncRoleRequestRolesValueCase1;
|
|
425
|
+
|
|
426
|
+
export type TeamSamlRolesValueCase1 =
|
|
427
|
+
| "BILLING"
|
|
428
|
+
| "CONTRIBUTOR"
|
|
429
|
+
| "DEVELOPER"
|
|
430
|
+
| "MEMBER"
|
|
431
|
+
| "OWNER"
|
|
432
|
+
| "SECURITY"
|
|
433
|
+
| "VIEWER"
|
|
434
|
+
| "VIEWER_FOR_PLUS";
|
|
435
|
+
export const TeamSamlRolesValueCase1 = S.String;
|
|
436
|
+
|
|
437
|
+
export type TeamSamlRolesValue =
|
|
438
|
+
| CreateTeamDsyncRoleRequestRolesValueCase1
|
|
439
|
+
| TeamSamlRolesValueCase1;
|
|
440
|
+
export const TeamSamlRolesValue =
|
|
441
|
+
S.Unknown as any as S.Schema<TeamSamlRolesValue>;
|
|
442
|
+
|
|
443
|
+
/** When "Directory Sync" is configured, this object contains a mapping of which Directory Group (by ID) should be assigned to which Vercel Team "role". */
|
|
444
|
+
export type TeamSamlRolesMap = {
|
|
445
|
+
[key: string]: TeamSamlRolesValue | undefined;
|
|
446
|
+
};
|
|
447
|
+
export const TeamSamlRolesMap = /*@__PURE__*/ S.Record(
|
|
448
|
+
S.String,
|
|
449
|
+
TeamSamlRolesValue,
|
|
450
|
+
) as any as S.Schema<TeamSamlRolesMap>;
|
|
451
|
+
|
|
452
|
+
/** When "Single Sign-On (SAML)" is configured, this object contains information regarding the configuration of the Identity Provider (IdP). */
|
|
453
|
+
export interface TeamSaml {
|
|
454
|
+
/** Information for the SAML Single Sign-On configuration. */
|
|
455
|
+
connection?: TeamSamlConnection;
|
|
456
|
+
/** Information for the Directory Sync configuration. */
|
|
457
|
+
directory?: TeamSamlDirectory;
|
|
458
|
+
/** When `true`, interactions with the Team **must** be done with an authentication token that has been authenticated with the Team's SAML Single Sign-On provider. */
|
|
459
|
+
enforced: boolean;
|
|
460
|
+
/** The default redirect URI to use after successful SAML authentication. */
|
|
461
|
+
defaultRedirectUri?: TeamSamlDefaultRedirectUri;
|
|
462
|
+
/** When "Directory Sync" is configured, this object contains a mapping of which Directory Group (by ID) should be assigned to which Vercel Team "role". */
|
|
463
|
+
roles?: TeamSamlRolesMap;
|
|
464
|
+
}
|
|
465
|
+
export const TeamSaml = /*@__PURE__*/ S.suspend(() =>
|
|
466
|
+
S.Struct({
|
|
467
|
+
connection: S.optional(TeamSamlConnection),
|
|
468
|
+
directory: S.optional(TeamSamlDirectory),
|
|
469
|
+
enforced: S.Boolean,
|
|
470
|
+
defaultRedirectUri: S.optional(TeamSamlDefaultRedirectUri),
|
|
471
|
+
roles: S.optional(TeamSamlRolesMap),
|
|
472
|
+
}),
|
|
473
|
+
).annotate({ identifier: "TeamSaml" }) as any as S.Schema<TeamSaml>;
|
|
474
|
+
|
|
475
|
+
export type TeamBillingPlan = "enterprise" | "hobby" | "pro";
|
|
476
|
+
export const TeamBillingPlan = S.String;
|
|
477
|
+
|
|
478
|
+
/** The team's billing plan. */
|
|
479
|
+
export interface TeamBilling {
|
|
480
|
+
plan: TeamBillingPlan;
|
|
481
|
+
}
|
|
482
|
+
export const TeamBilling = /*@__PURE__*/ S.suspend(() =>
|
|
483
|
+
S.Struct({
|
|
484
|
+
plan: TeamBillingPlan,
|
|
485
|
+
}),
|
|
486
|
+
).annotate({ identifier: "TeamBilling" }) as any as S.Schema<TeamBilling>;
|
|
487
|
+
|
|
488
|
+
export type TeamDefaultRolesTeamRolesItem =
|
|
489
|
+
| "BILLING"
|
|
490
|
+
| "CONTRIBUTOR"
|
|
491
|
+
| "DEVELOPER"
|
|
492
|
+
| "MEMBER"
|
|
493
|
+
| "OWNER"
|
|
494
|
+
| "SECURITY"
|
|
495
|
+
| "VIEWER"
|
|
496
|
+
| "VIEWER_FOR_PLUS";
|
|
497
|
+
export const TeamDefaultRolesTeamRolesItem = S.String;
|
|
498
|
+
|
|
499
|
+
export type TeamDefaultRolesTeamRolesList =
|
|
500
|
+
Array<TeamDefaultRolesTeamRolesItem>;
|
|
501
|
+
export const TeamDefaultRolesTeamRolesList = /*@__PURE__*/ S.Array(
|
|
502
|
+
TeamDefaultRolesTeamRolesItem,
|
|
503
|
+
) as any as S.Schema<TeamDefaultRolesTeamRolesList>;
|
|
504
|
+
|
|
505
|
+
export type TeamDefaultRolesTeamPermissionsItem =
|
|
506
|
+
| "AiGatewayApiKeyOwnedBySelf"
|
|
507
|
+
| "AiGatewayBudgetManager"
|
|
508
|
+
| "AiGatewayCredits"
|
|
509
|
+
| "AiGatewaySettings"
|
|
510
|
+
| "AiGatewayTranscriptsManager"
|
|
511
|
+
| "AiGatewayTranscriptsViewer"
|
|
512
|
+
| "ConnectorManager"
|
|
513
|
+
| "CreateProject"
|
|
514
|
+
| "EnvVariableManager"
|
|
515
|
+
| "EnvironmentManager"
|
|
516
|
+
| "FullProductionDeployment"
|
|
517
|
+
| "IntegrationManager"
|
|
518
|
+
| "OrgAdmin"
|
|
519
|
+
| "OrgViewer"
|
|
520
|
+
| "UsageViewer"
|
|
521
|
+
| "V0Builder"
|
|
522
|
+
| "V0Chatter"
|
|
523
|
+
| "V0Viewer"
|
|
524
|
+
| "WorkflowDecryptor";
|
|
525
|
+
export const TeamDefaultRolesTeamPermissionsItem = S.String;
|
|
526
|
+
|
|
527
|
+
export type TeamDefaultRolesTeamPermissionsList =
|
|
528
|
+
Array<TeamDefaultRolesTeamPermissionsItem>;
|
|
529
|
+
export const TeamDefaultRolesTeamPermissionsList = /*@__PURE__*/ S.Array(
|
|
530
|
+
TeamDefaultRolesTeamPermissionsItem,
|
|
531
|
+
) as any as S.Schema<TeamDefaultRolesTeamPermissionsList>;
|
|
532
|
+
|
|
533
|
+
/** Default roles for the team. */
|
|
534
|
+
export interface TeamDefaultRoles {
|
|
535
|
+
teamRoles?: TeamDefaultRolesTeamRolesList;
|
|
536
|
+
teamPermissions?: TeamDefaultRolesTeamPermissionsList;
|
|
537
|
+
}
|
|
538
|
+
export const TeamDefaultRoles = /*@__PURE__*/ S.suspend(() =>
|
|
539
|
+
S.Struct({
|
|
540
|
+
teamRoles: S.optional(TeamDefaultRolesTeamRolesList),
|
|
541
|
+
teamPermissions: S.optional(TeamDefaultRolesTeamPermissionsList),
|
|
542
|
+
}),
|
|
543
|
+
).annotate({
|
|
544
|
+
identifier: "TeamDefaultRoles",
|
|
545
|
+
}) as any as S.Schema<TeamDefaultRoles>;
|
|
546
|
+
|
|
547
|
+
export interface TeamResourceConfigBuildEntitlements {
|
|
548
|
+
enhancedBuilds?: boolean;
|
|
549
|
+
}
|
|
550
|
+
export const TeamResourceConfigBuildEntitlements = /*@__PURE__*/ S.suspend(() =>
|
|
551
|
+
S.Struct({
|
|
552
|
+
enhancedBuilds: S.optional(S.Boolean),
|
|
553
|
+
}),
|
|
554
|
+
).annotate({
|
|
555
|
+
identifier: "TeamResourceConfigBuildEntitlements",
|
|
556
|
+
}) as any as S.Schema<TeamResourceConfigBuildEntitlements>;
|
|
557
|
+
|
|
558
|
+
/** Default build machine type for new builds */
|
|
559
|
+
export type TeamResourceConfigBuildMachineDefault =
|
|
560
|
+
| "basic"
|
|
561
|
+
| "elastic"
|
|
562
|
+
| "enhanced"
|
|
563
|
+
| "standard"
|
|
564
|
+
| "turbo";
|
|
565
|
+
export const TeamResourceConfigBuildMachineDefault = S.String;
|
|
566
|
+
|
|
567
|
+
/** Build machine configuration */
|
|
568
|
+
export interface TeamResourceConfigBuildMachine {
|
|
569
|
+
/** Default build machine type for new builds */
|
|
570
|
+
default?: TeamResourceConfigBuildMachineDefault;
|
|
571
|
+
}
|
|
572
|
+
export const TeamResourceConfigBuildMachine = /*@__PURE__*/ S.suspend(() =>
|
|
573
|
+
S.Struct({
|
|
574
|
+
default: S.optional(TeamResourceConfigBuildMachineDefault),
|
|
575
|
+
}),
|
|
576
|
+
).annotate({
|
|
577
|
+
identifier: "TeamResourceConfigBuildMachine",
|
|
578
|
+
}) as any as S.Schema<TeamResourceConfigBuildMachine>;
|
|
579
|
+
|
|
580
|
+
export interface TeamResourceConfig {
|
|
581
|
+
/** The total amount of concurrent builds that can be used. */
|
|
582
|
+
concurrentBuilds?: number;
|
|
583
|
+
/** Whether every build for this team / user has elastic concurrency enabled automatically. */
|
|
584
|
+
elasticConcurrencyEnabled?: boolean;
|
|
585
|
+
/** The maximum size in kilobytes of an Edge Config. Only specified if a custom limit is set. */
|
|
586
|
+
edgeConfigSize?: number;
|
|
587
|
+
/** The maximum number of edge configs an account can create. */
|
|
588
|
+
edgeConfigs?: number;
|
|
589
|
+
/** The maximum number of kv databases an account can create. */
|
|
590
|
+
kvDatabases?: number;
|
|
591
|
+
/** The maximum number of blob stores an account can create. */
|
|
592
|
+
blobStores?: number;
|
|
593
|
+
/** The maximum number of postgres databases an account can create. */
|
|
594
|
+
postgresDatabases?: number;
|
|
595
|
+
/** The maximum number of custom environments allowed per project. */
|
|
596
|
+
customEnvironmentsPerProject?: number;
|
|
597
|
+
/** The maximum memory size (in MB) for a serverless function. Only specified if a custom limit is set. */
|
|
598
|
+
serverlessFunctionMaxMemorySize?: number;
|
|
599
|
+
buildEntitlements?: TeamResourceConfigBuildEntitlements;
|
|
600
|
+
/** Build machine configuration */
|
|
601
|
+
buildMachine?: TeamResourceConfigBuildMachine;
|
|
602
|
+
}
|
|
603
|
+
export const TeamResourceConfig = /*@__PURE__*/ S.suspend(() =>
|
|
604
|
+
S.Struct({
|
|
605
|
+
concurrentBuilds: S.optional(S.Number),
|
|
606
|
+
elasticConcurrencyEnabled: S.optional(S.Boolean),
|
|
607
|
+
edgeConfigSize: S.optional(S.Number),
|
|
608
|
+
edgeConfigs: S.optional(S.Number),
|
|
609
|
+
kvDatabases: S.optional(S.Number),
|
|
610
|
+
blobStores: S.optional(S.Number),
|
|
611
|
+
postgresDatabases: S.optional(S.Number),
|
|
612
|
+
customEnvironmentsPerProject: S.optional(S.Number),
|
|
613
|
+
serverlessFunctionMaxMemorySize: S.optional(S.Number),
|
|
614
|
+
buildEntitlements: S.optional(TeamResourceConfigBuildEntitlements),
|
|
615
|
+
buildMachine: S.optional(TeamResourceConfigBuildMachine),
|
|
616
|
+
}),
|
|
617
|
+
).annotate({
|
|
618
|
+
identifier: "TeamResourceConfig",
|
|
619
|
+
}) as any as S.Schema<TeamResourceConfig>;
|
|
620
|
+
|
|
621
|
+
export type TeamDisableHardAutoBlocks = number | boolean;
|
|
622
|
+
export const TeamDisableHardAutoBlocks =
|
|
623
|
+
S.Unknown as any as S.Schema<TeamDisableHardAutoBlocks>;
|
|
624
|
+
|
|
625
|
+
/** Is remote caching enabled for this team */
|
|
626
|
+
export type TeamRemoteCaching = TeamConnect;
|
|
627
|
+
export const TeamRemoteCaching = TeamConnect;
|
|
628
|
+
|
|
629
|
+
export interface TeamDefaultDeploymentProtectionPasswordProtection {
|
|
630
|
+
deploymentType: string;
|
|
631
|
+
}
|
|
632
|
+
export const TeamDefaultDeploymentProtectionPasswordProtection =
|
|
633
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
634
|
+
S.Struct({
|
|
635
|
+
deploymentType: S.String,
|
|
636
|
+
}),
|
|
637
|
+
).annotate({
|
|
638
|
+
identifier: "TeamDefaultDeploymentProtectionPasswordProtection",
|
|
639
|
+
}) as any as S.Schema<TeamDefaultDeploymentProtectionPasswordProtection>;
|
|
640
|
+
|
|
641
|
+
export type TeamDefaultDeploymentProtectionSsoProtection =
|
|
642
|
+
TeamDefaultDeploymentProtectionPasswordProtection;
|
|
643
|
+
export const TeamDefaultDeploymentProtectionSsoProtection =
|
|
644
|
+
TeamDefaultDeploymentProtectionPasswordProtection;
|
|
645
|
+
|
|
646
|
+
/** Default deployment protection for this team null indicates protection is disabled */
|
|
647
|
+
export interface TeamDefaultDeploymentProtection {
|
|
648
|
+
passwordProtection?: TeamDefaultDeploymentProtectionPasswordProtection | null;
|
|
649
|
+
ssoProtection?: TeamDefaultDeploymentProtectionPasswordProtection | null;
|
|
650
|
+
}
|
|
651
|
+
export const TeamDefaultDeploymentProtection = /*@__PURE__*/ S.suspend(() =>
|
|
652
|
+
S.Struct({
|
|
653
|
+
passwordProtection: S.optional(
|
|
654
|
+
S.NullOr(TeamDefaultDeploymentProtectionPasswordProtection),
|
|
655
|
+
),
|
|
656
|
+
ssoProtection: S.optional(
|
|
657
|
+
S.NullOr(TeamDefaultDeploymentProtectionPasswordProtection),
|
|
658
|
+
),
|
|
659
|
+
}),
|
|
660
|
+
).annotate({
|
|
661
|
+
identifier: "TeamDefaultDeploymentProtection",
|
|
662
|
+
}) as any as S.Schema<TeamDefaultDeploymentProtection>;
|
|
663
|
+
|
|
664
|
+
/** Default Passport configuration for new projects in this team. */
|
|
665
|
+
export type TeamDefaultPassportDeploymentType =
|
|
666
|
+
| "all"
|
|
667
|
+
| "all_except_custom_domains"
|
|
668
|
+
| "preview"
|
|
669
|
+
| "prod_deployment_urls_and_all_previews";
|
|
670
|
+
export const TeamDefaultPassportDeploymentType = S.String;
|
|
671
|
+
|
|
672
|
+
/** Default Passport configuration for new projects in this team. */
|
|
673
|
+
export interface TeamDefaultPassport {
|
|
674
|
+
/** Default Passport configuration for new projects in this team. */
|
|
675
|
+
connectorId: string;
|
|
676
|
+
/** Default Passport configuration for new projects in this team. */
|
|
677
|
+
deploymentType: TeamDefaultPassportDeploymentType;
|
|
678
|
+
}
|
|
679
|
+
export const TeamDefaultPassport = /*@__PURE__*/ S.suspend(() =>
|
|
680
|
+
S.Struct({
|
|
681
|
+
connectorId: S.String,
|
|
682
|
+
deploymentType: TeamDefaultPassportDeploymentType,
|
|
683
|
+
}),
|
|
684
|
+
).annotate({
|
|
685
|
+
identifier: "TeamDefaultPassport",
|
|
686
|
+
}) as any as S.Schema<TeamDefaultPassport>;
|
|
687
|
+
|
|
688
|
+
/** Default deployment expiration settings for this team */
|
|
689
|
+
export interface TeamDefaultExpirationSettings {
|
|
690
|
+
/** Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. */
|
|
691
|
+
expirationDays?: number;
|
|
692
|
+
/** Number of days to keep production deployments before soft deletion. */
|
|
693
|
+
expirationDaysProduction?: number;
|
|
694
|
+
/** Number of days to keep canceled deployments before soft deletion. */
|
|
695
|
+
expirationDaysCanceled?: number;
|
|
696
|
+
/** Number of days to keep errored deployments before soft deletion. */
|
|
697
|
+
expirationDaysErrored?: number;
|
|
698
|
+
/** Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. */
|
|
699
|
+
deploymentsToKeep?: number;
|
|
700
|
+
}
|
|
701
|
+
export const TeamDefaultExpirationSettings = /*@__PURE__*/ S.suspend(() =>
|
|
702
|
+
S.Struct({
|
|
703
|
+
expirationDays: S.optional(S.Number),
|
|
704
|
+
expirationDaysProduction: S.optional(S.Number),
|
|
705
|
+
expirationDaysCanceled: S.optional(S.Number),
|
|
706
|
+
expirationDaysErrored: S.optional(S.Number),
|
|
707
|
+
deploymentsToKeep: S.optional(S.Number),
|
|
708
|
+
}),
|
|
709
|
+
).annotate({
|
|
710
|
+
identifier: "TeamDefaultExpirationSettings",
|
|
711
|
+
}) as any as S.Schema<TeamDefaultExpirationSettings>;
|
|
712
|
+
|
|
713
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
714
|
+
export type TeamDefaultProjectJobsLintTargetsList = Array<string>;
|
|
715
|
+
export const TeamDefaultProjectJobsLintTargetsList = /*@__PURE__*/ S.Array(
|
|
716
|
+
S.String,
|
|
717
|
+
) as any as S.Schema<TeamDefaultProjectJobsLintTargetsList>;
|
|
718
|
+
|
|
719
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
720
|
+
export interface TeamDefaultProjectJobsLint {
|
|
721
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
722
|
+
targets: TeamDefaultProjectJobsLintTargetsList;
|
|
723
|
+
}
|
|
724
|
+
export const TeamDefaultProjectJobsLint = /*@__PURE__*/ S.suspend(() =>
|
|
725
|
+
S.Struct({
|
|
726
|
+
targets: TeamDefaultProjectJobsLintTargetsList,
|
|
727
|
+
}),
|
|
728
|
+
).annotate({
|
|
729
|
+
identifier: "TeamDefaultProjectJobsLint",
|
|
730
|
+
}) as any as S.Schema<TeamDefaultProjectJobsLint>;
|
|
731
|
+
|
|
732
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
733
|
+
export type TeamDefaultProjectJobsTypecheckTargetsList = Array<string>;
|
|
734
|
+
export const TeamDefaultProjectJobsTypecheckTargetsList = /*@__PURE__*/ S.Array(
|
|
735
|
+
S.String,
|
|
736
|
+
) as any as S.Schema<TeamDefaultProjectJobsTypecheckTargetsList>;
|
|
737
|
+
|
|
738
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
739
|
+
export interface TeamDefaultProjectJobsTypecheck {
|
|
740
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
741
|
+
targets: TeamDefaultProjectJobsTypecheckTargetsList;
|
|
742
|
+
}
|
|
743
|
+
export const TeamDefaultProjectJobsTypecheck = /*@__PURE__*/ S.suspend(() =>
|
|
744
|
+
S.Struct({
|
|
745
|
+
targets: TeamDefaultProjectJobsTypecheckTargetsList,
|
|
746
|
+
}),
|
|
747
|
+
).annotate({
|
|
748
|
+
identifier: "TeamDefaultProjectJobsTypecheck",
|
|
749
|
+
}) as any as S.Schema<TeamDefaultProjectJobsTypecheck>;
|
|
750
|
+
|
|
751
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
752
|
+
export type TeamDefaultProjectJobsMfeConfigPresentTargetsList = Array<string>;
|
|
753
|
+
export const TeamDefaultProjectJobsMfeConfigPresentTargetsList =
|
|
754
|
+
/*@__PURE__*/ S.Array(
|
|
755
|
+
S.String,
|
|
756
|
+
) as any as S.Schema<TeamDefaultProjectJobsMfeConfigPresentTargetsList>;
|
|
757
|
+
|
|
758
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
759
|
+
export interface TeamDefaultProjectJobsMfeConfigPresent {
|
|
760
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
761
|
+
targets: TeamDefaultProjectJobsMfeConfigPresentTargetsList;
|
|
762
|
+
}
|
|
763
|
+
export const TeamDefaultProjectJobsMfeConfigPresent = /*@__PURE__*/ S.suspend(
|
|
764
|
+
() =>
|
|
765
|
+
S.Struct({
|
|
766
|
+
targets: TeamDefaultProjectJobsMfeConfigPresentTargetsList,
|
|
767
|
+
}),
|
|
768
|
+
).annotate({
|
|
769
|
+
identifier: "TeamDefaultProjectJobsMfeConfigPresent",
|
|
770
|
+
}) as any as S.Schema<TeamDefaultProjectJobsMfeConfigPresent>;
|
|
771
|
+
|
|
772
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
773
|
+
export interface TeamDefaultProjectJobs {
|
|
774
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
775
|
+
lint?: TeamDefaultProjectJobsLint;
|
|
776
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
777
|
+
typecheck?: TeamDefaultProjectJobsTypecheck;
|
|
778
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
779
|
+
mfe_config_present?: TeamDefaultProjectJobsMfeConfigPresent;
|
|
780
|
+
}
|
|
781
|
+
export const TeamDefaultProjectJobs = /*@__PURE__*/ S.suspend(() =>
|
|
782
|
+
S.Struct({
|
|
783
|
+
lint: S.optional(TeamDefaultProjectJobsLint),
|
|
784
|
+
typecheck: S.optional(TeamDefaultProjectJobsTypecheck),
|
|
785
|
+
mfe_config_present: S.optional(
|
|
786
|
+
TeamDefaultProjectJobsMfeConfigPresent.pipe(T.Body("mfe-config-present")),
|
|
787
|
+
),
|
|
788
|
+
}),
|
|
789
|
+
).annotate({
|
|
790
|
+
identifier: "TeamDefaultProjectJobs",
|
|
791
|
+
}) as any as S.Schema<TeamDefaultProjectJobs>;
|
|
792
|
+
|
|
793
|
+
/** Whether toolbar is enabled on preview deployments */
|
|
794
|
+
export type TeamEnablePreviewFeedback =
|
|
795
|
+
| "default"
|
|
796
|
+
| "default-force"
|
|
797
|
+
| "off"
|
|
798
|
+
| "off-force"
|
|
799
|
+
| "on"
|
|
800
|
+
| "on-force";
|
|
801
|
+
export const TeamEnablePreviewFeedback = S.String;
|
|
802
|
+
|
|
803
|
+
/** Whether toolbar is enabled on production deployments */
|
|
804
|
+
export type TeamEnableProductionFeedback =
|
|
805
|
+
| "default"
|
|
806
|
+
| "default-force"
|
|
807
|
+
| "off"
|
|
808
|
+
| "off-force"
|
|
809
|
+
| "on"
|
|
810
|
+
| "on-force";
|
|
811
|
+
export const TeamEnableProductionFeedback = S.String;
|
|
812
|
+
|
|
813
|
+
/** Sensitive environment variable policy for this team */
|
|
814
|
+
export type TeamSensitiveEnvironmentVariablePolicy = "default" | "off" | "on";
|
|
815
|
+
export const TeamSensitiveEnvironmentVariablePolicy = S.String;
|
|
816
|
+
|
|
817
|
+
/** Require production secrets to use a different value than preview or development. */
|
|
818
|
+
export type TeamDisjunctiveProductionSecretPolicy = "default" | "off" | "on";
|
|
819
|
+
export const TeamDisjunctiveProductionSecretPolicy = S.String;
|
|
820
|
+
|
|
821
|
+
/** Controls who can request access to protected deployments. */
|
|
822
|
+
export type TeamDpAccessRequestsMode = "all" | "email-domain" | "none";
|
|
823
|
+
export const TeamDpAccessRequestsMode = S.String;
|
|
824
|
+
|
|
825
|
+
export interface TeamIpBucketsItem {
|
|
826
|
+
bucket: string;
|
|
827
|
+
supportUntil?: number;
|
|
828
|
+
default?: boolean;
|
|
829
|
+
}
|
|
830
|
+
export const TeamIpBucketsItem = /*@__PURE__*/ S.suspend(() =>
|
|
831
|
+
S.Struct({
|
|
832
|
+
bucket: S.String,
|
|
833
|
+
supportUntil: S.optional(S.Number),
|
|
834
|
+
default: S.optional(S.Boolean),
|
|
835
|
+
}),
|
|
836
|
+
).annotate({
|
|
837
|
+
identifier: "TeamIpBucketsItem",
|
|
838
|
+
}) as any as S.Schema<TeamIpBucketsItem>;
|
|
839
|
+
|
|
840
|
+
export type TeamIpBucketsList = Array<TeamIpBucketsItem>;
|
|
841
|
+
export const TeamIpBucketsList = /*@__PURE__*/ S.Array(
|
|
842
|
+
TeamIpBucketsItem,
|
|
843
|
+
) as any as S.Schema<TeamIpBucketsList>;
|
|
844
|
+
|
|
845
|
+
/** When enabled, deployment protection settings require stricter permissions (owner-only). */
|
|
846
|
+
export interface TeamStrictDeploymentProtectionSettings {
|
|
847
|
+
enabled: boolean;
|
|
848
|
+
updatedAt: number;
|
|
849
|
+
}
|
|
850
|
+
export const TeamStrictDeploymentProtectionSettings = /*@__PURE__*/ S.suspend(
|
|
851
|
+
() =>
|
|
852
|
+
S.Struct({
|
|
853
|
+
enabled: S.Boolean,
|
|
854
|
+
updatedAt: S.Number,
|
|
855
|
+
}),
|
|
856
|
+
).annotate({
|
|
857
|
+
identifier: "TeamStrictDeploymentProtectionSettings",
|
|
858
|
+
}) as any as S.Schema<TeamStrictDeploymentProtectionSettings>;
|
|
859
|
+
|
|
860
|
+
/** When enabled, creating shareable links requires Owner role. */
|
|
861
|
+
export type TeamStrictShareableLinks = TeamStrictDeploymentProtectionSettings;
|
|
862
|
+
export const TeamStrictShareableLinks = TeamStrictDeploymentProtectionSettings;
|
|
863
|
+
|
|
864
|
+
/** When enabled, adding, changing, or removing project password protection requires Owner role. */
|
|
865
|
+
export type TeamStrictPasswordProtectionSettings =
|
|
866
|
+
TeamStrictDeploymentProtectionSettings;
|
|
867
|
+
export const TeamStrictPasswordProtectionSettings =
|
|
868
|
+
TeamStrictDeploymentProtectionSettings;
|
|
869
|
+
|
|
870
|
+
/** When enabled, creating and managing connectors requires Owner role or the ConnectorManager permission. */
|
|
871
|
+
export type TeamStrictConnectors = TeamStrictDeploymentProtectionSettings;
|
|
872
|
+
export const TeamStrictConnectors = TeamStrictDeploymentProtectionSettings;
|
|
873
|
+
|
|
874
|
+
export type TeamNsnbConfigPreference =
|
|
875
|
+
| "auto-approval"
|
|
876
|
+
| "block"
|
|
877
|
+
| "manual-approval";
|
|
878
|
+
export const TeamNsnbConfigPreference = S.String;
|
|
879
|
+
|
|
880
|
+
/** NSNB configuration for the team. */
|
|
881
|
+
export interface TeamNsnbConfig {
|
|
882
|
+
preference: TeamNsnbConfigPreference;
|
|
883
|
+
}
|
|
884
|
+
export const TeamNsnbConfig = /*@__PURE__*/ S.suspend(() =>
|
|
885
|
+
S.Struct({
|
|
886
|
+
preference: TeamNsnbConfigPreference,
|
|
887
|
+
}),
|
|
888
|
+
).annotate({ identifier: "TeamNsnbConfig" }) as any as S.Schema<TeamNsnbConfig>;
|
|
889
|
+
|
|
890
|
+
export type TeamDeploymentPolicyGitSourcesItemSourcesItemCase0Provider =
|
|
891
|
+
| "bitbucket"
|
|
892
|
+
| "github";
|
|
893
|
+
export const TeamDeploymentPolicyGitSourcesItemSourcesItemCase0Provider =
|
|
894
|
+
S.String;
|
|
895
|
+
|
|
896
|
+
/** Allowlist entry for GitHub and Bitbucket, whose repos are identified by a flat `org`/`repo` (Bitbucket's workspace/owner maps to `org`, its repo slug to `repo`). Omit `repo` to match any repo in the org. Org is matched case-insensitively. */
|
|
897
|
+
export interface TeamDeploymentPolicyGitSourcesItemSourcesItemCase0 {
|
|
898
|
+
provider: TeamDeploymentPolicyGitSourcesItemSourcesItemCase0Provider;
|
|
899
|
+
org: string;
|
|
900
|
+
repo?: string;
|
|
901
|
+
}
|
|
902
|
+
export const TeamDeploymentPolicyGitSourcesItemSourcesItemCase0 =
|
|
903
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
904
|
+
S.Struct({
|
|
905
|
+
provider: TeamDeploymentPolicyGitSourcesItemSourcesItemCase0Provider,
|
|
906
|
+
org: S.String,
|
|
907
|
+
repo: S.optional(S.String),
|
|
908
|
+
}),
|
|
909
|
+
).annotate({
|
|
910
|
+
identifier: "TeamDeploymentPolicyGitSourcesItemSourcesItemCase0",
|
|
911
|
+
}) as any as S.Schema<TeamDeploymentPolicyGitSourcesItemSourcesItemCase0>;
|
|
912
|
+
|
|
913
|
+
export type TeamDeploymentPolicyGitSourcesItemSourcesItemCase1Provider =
|
|
914
|
+
"gitlab";
|
|
915
|
+
export const TeamDeploymentPolicyGitSourcesItemSourcesItemCase1Provider =
|
|
916
|
+
S.String;
|
|
917
|
+
|
|
918
|
+
/** Allowlist entry for GitLab, which uses nested groups rather than a flat org/repo. `namespace` is the full group path (e.g. `group` or `group/subgroup`); `project` is the leaf project name. Omit `project` to match any project under the namespace. Namespace is matched case-insensitively. */
|
|
919
|
+
export interface TeamDeploymentPolicyGitSourcesItemSourcesItemCase1 {
|
|
920
|
+
provider: TeamDeploymentPolicyGitSourcesItemSourcesItemCase1Provider;
|
|
921
|
+
namespace: string;
|
|
922
|
+
project?: string;
|
|
923
|
+
}
|
|
924
|
+
export const TeamDeploymentPolicyGitSourcesItemSourcesItemCase1 =
|
|
925
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
926
|
+
S.Struct({
|
|
927
|
+
provider: TeamDeploymentPolicyGitSourcesItemSourcesItemCase1Provider,
|
|
928
|
+
namespace: S.String,
|
|
929
|
+
project: S.optional(S.String),
|
|
930
|
+
}),
|
|
931
|
+
).annotate({
|
|
932
|
+
identifier: "TeamDeploymentPolicyGitSourcesItemSourcesItemCase1",
|
|
933
|
+
}) as any as S.Schema<TeamDeploymentPolicyGitSourcesItemSourcesItemCase1>;
|
|
934
|
+
|
|
935
|
+
export type TeamDeploymentPolicyGitSourcesItemSourcesItem =
|
|
936
|
+
| TeamDeploymentPolicyGitSourcesItemSourcesItemCase0
|
|
937
|
+
| TeamDeploymentPolicyGitSourcesItemSourcesItemCase1;
|
|
938
|
+
export const TeamDeploymentPolicyGitSourcesItemSourcesItem =
|
|
939
|
+
S.Unknown as any as S.Schema<TeamDeploymentPolicyGitSourcesItemSourcesItem>;
|
|
940
|
+
|
|
941
|
+
export type TeamDeploymentPolicyGitSourcesItemSourcesList =
|
|
942
|
+
Array<TeamDeploymentPolicyGitSourcesItemSourcesItem>;
|
|
943
|
+
export const TeamDeploymentPolicyGitSourcesItemSourcesList =
|
|
944
|
+
/*@__PURE__*/ S.Array(
|
|
945
|
+
TeamDeploymentPolicyGitSourcesItemSourcesItem,
|
|
946
|
+
) as any as S.Schema<TeamDeploymentPolicyGitSourcesItemSourcesList>;
|
|
947
|
+
|
|
948
|
+
export type TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0Type =
|
|
949
|
+
"system";
|
|
950
|
+
export const TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0Type =
|
|
951
|
+
S.String;
|
|
952
|
+
|
|
953
|
+
export type TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0Target =
|
|
954
|
+
| "preview"
|
|
955
|
+
| "production";
|
|
956
|
+
export const TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0Target =
|
|
957
|
+
S.String;
|
|
958
|
+
|
|
959
|
+
export interface TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0 {
|
|
960
|
+
type: TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0Type;
|
|
961
|
+
target: TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0Target;
|
|
962
|
+
}
|
|
963
|
+
export const TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0 =
|
|
964
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
965
|
+
S.Struct({
|
|
966
|
+
type: TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0Type,
|
|
967
|
+
target: TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0Target,
|
|
968
|
+
}),
|
|
969
|
+
).annotate({
|
|
970
|
+
identifier: "TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0",
|
|
971
|
+
}) as any as S.Schema<TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0>;
|
|
972
|
+
|
|
973
|
+
export type TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase1Type =
|
|
974
|
+
"custom";
|
|
975
|
+
export const TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase1Type =
|
|
976
|
+
S.String;
|
|
977
|
+
|
|
978
|
+
export interface TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase1 {
|
|
979
|
+
type: TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase1Type;
|
|
980
|
+
environmentId: string;
|
|
981
|
+
}
|
|
982
|
+
export const TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase1 =
|
|
983
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
984
|
+
S.Struct({
|
|
985
|
+
type: TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase1Type,
|
|
986
|
+
environmentId: S.String,
|
|
987
|
+
}),
|
|
988
|
+
).annotate({
|
|
989
|
+
identifier: "TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase1",
|
|
990
|
+
}) as any as S.Schema<TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase1>;
|
|
991
|
+
|
|
992
|
+
export type TeamDeploymentPolicyGitSourcesItemEnvironmentsItem =
|
|
993
|
+
| TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase0
|
|
994
|
+
| TeamDeploymentPolicyGitSourcesItemEnvironmentsItemCase1;
|
|
995
|
+
export const TeamDeploymentPolicyGitSourcesItemEnvironmentsItem =
|
|
996
|
+
S.Unknown as any as S.Schema<TeamDeploymentPolicyGitSourcesItemEnvironmentsItem>;
|
|
997
|
+
|
|
998
|
+
export type TeamDeploymentPolicyGitSourcesItemEnvironmentsList =
|
|
999
|
+
Array<TeamDeploymentPolicyGitSourcesItemEnvironmentsItem>;
|
|
1000
|
+
export const TeamDeploymentPolicyGitSourcesItemEnvironmentsList =
|
|
1001
|
+
/*@__PURE__*/ S.Array(
|
|
1002
|
+
TeamDeploymentPolicyGitSourcesItemEnvironmentsItem,
|
|
1003
|
+
) as any as S.Schema<TeamDeploymentPolicyGitSourcesItemEnvironmentsList>;
|
|
1004
|
+
|
|
1005
|
+
/** `enabled: true` with empty `sources` is deny-all. */
|
|
1006
|
+
export interface TeamDeploymentPolicyGitSourcesItem {
|
|
1007
|
+
sources: TeamDeploymentPolicyGitSourcesItemSourcesList;
|
|
1008
|
+
enabled: boolean;
|
|
1009
|
+
environments: TeamDeploymentPolicyGitSourcesItemEnvironmentsList;
|
|
1010
|
+
}
|
|
1011
|
+
export const TeamDeploymentPolicyGitSourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
1012
|
+
S.Struct({
|
|
1013
|
+
sources: TeamDeploymentPolicyGitSourcesItemSourcesList,
|
|
1014
|
+
enabled: S.Boolean,
|
|
1015
|
+
environments: TeamDeploymentPolicyGitSourcesItemEnvironmentsList,
|
|
1016
|
+
}),
|
|
1017
|
+
).annotate({
|
|
1018
|
+
identifier: "TeamDeploymentPolicyGitSourcesItem",
|
|
1019
|
+
}) as any as S.Schema<TeamDeploymentPolicyGitSourcesItem>;
|
|
1020
|
+
|
|
1021
|
+
export type TeamDeploymentPolicyGitSourcesList =
|
|
1022
|
+
Array<TeamDeploymentPolicyGitSourcesItem>;
|
|
1023
|
+
export const TeamDeploymentPolicyGitSourcesList = /*@__PURE__*/ S.Array(
|
|
1024
|
+
TeamDeploymentPolicyGitSourcesItem,
|
|
1025
|
+
) as any as S.Schema<TeamDeploymentPolicyGitSourcesList>;
|
|
1026
|
+
|
|
1027
|
+
/** Customer-configurable deployment sources. Every deploy classifies to exactly one. JSON schema in `packages/deployment-policy/schemas/body.ts` enumerates exactly these values. - `'git'` — git provider webhook. - `'cli'` — Vercel CLI (legacy classic-token CLI and SIWV CLI both). - `'rest-api'` — direct user/team-token REST upload. Does NOT cover deploy hooks, Marketplace integrations, or first-party app tokens. - `'deploy-hook'` — project deploy-hook URL. The URL is the credential. - `'integration'` — third-party Marketplace actor: Marketplace integration token, user-delegated OAuth from a Marketplace app, or an unrecognized third-party Vercel App. First-party Vercel Apps are never `'integration'`. - `'v0'` — the v0 product surface (entitlement-gated). v0 deploys through the CLI under the hood, but classifies as its own source so a team can allow or deny v0 independently of `'cli'`. First-party Vercel apps (Toolbar, etc.) classify as `'first-party'` — see `ClassifiedSource` in `./checks`. They're not in this union because they aren't customer-configurable; they bypass `checkDeploymentSources` entirely. v0 is intentionally NOT among them: like the CLI, it's a real product surface and is policy-controllable. */
|
|
1028
|
+
export type TeamDeploymentPolicyDeploymentSourcesItemSourcesItem =
|
|
1029
|
+
| "cli"
|
|
1030
|
+
| "deploy-hook"
|
|
1031
|
+
| "git"
|
|
1032
|
+
| "integration"
|
|
1033
|
+
| "rest-api"
|
|
1034
|
+
| "v0";
|
|
1035
|
+
export const TeamDeploymentPolicyDeploymentSourcesItemSourcesItem = S.String;
|
|
1036
|
+
|
|
1037
|
+
export type TeamDeploymentPolicyDeploymentSourcesItemSourcesList =
|
|
1038
|
+
Array<TeamDeploymentPolicyDeploymentSourcesItemSourcesItem>;
|
|
1039
|
+
export const TeamDeploymentPolicyDeploymentSourcesItemSourcesList =
|
|
1040
|
+
/*@__PURE__*/ S.Array(
|
|
1041
|
+
TeamDeploymentPolicyDeploymentSourcesItemSourcesItem,
|
|
1042
|
+
) as any as S.Schema<TeamDeploymentPolicyDeploymentSourcesItemSourcesList>;
|
|
1043
|
+
|
|
1044
|
+
export type TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0Type =
|
|
1045
|
+
"system";
|
|
1046
|
+
export const TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0Type =
|
|
1047
|
+
S.String;
|
|
1048
|
+
|
|
1049
|
+
export type TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0Target =
|
|
1050
|
+
| "preview"
|
|
1051
|
+
| "production";
|
|
1052
|
+
export const TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0Target =
|
|
1053
|
+
S.String;
|
|
1054
|
+
|
|
1055
|
+
export interface TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0 {
|
|
1056
|
+
type: TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0Type;
|
|
1057
|
+
target: TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0Target;
|
|
1058
|
+
}
|
|
1059
|
+
export const TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0 =
|
|
1060
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1061
|
+
S.Struct({
|
|
1062
|
+
type: TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0Type,
|
|
1063
|
+
target:
|
|
1064
|
+
TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0Target,
|
|
1065
|
+
}),
|
|
1066
|
+
).annotate({
|
|
1067
|
+
identifier:
|
|
1068
|
+
"TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0",
|
|
1069
|
+
}) as any as S.Schema<TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0>;
|
|
1070
|
+
|
|
1071
|
+
export type TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase1Type =
|
|
1072
|
+
"custom";
|
|
1073
|
+
export const TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase1Type =
|
|
1074
|
+
S.String;
|
|
1075
|
+
|
|
1076
|
+
export interface TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase1 {
|
|
1077
|
+
type: TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase1Type;
|
|
1078
|
+
environmentId: string;
|
|
1079
|
+
}
|
|
1080
|
+
export const TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase1 =
|
|
1081
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1082
|
+
S.Struct({
|
|
1083
|
+
type: TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase1Type,
|
|
1084
|
+
environmentId: S.String,
|
|
1085
|
+
}),
|
|
1086
|
+
).annotate({
|
|
1087
|
+
identifier:
|
|
1088
|
+
"TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase1",
|
|
1089
|
+
}) as any as S.Schema<TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase1>;
|
|
1090
|
+
|
|
1091
|
+
export type TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItem =
|
|
1092
|
+
| TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase0
|
|
1093
|
+
| TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItemCase1;
|
|
1094
|
+
export const TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItem =
|
|
1095
|
+
S.Unknown as any as S.Schema<TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItem>;
|
|
1096
|
+
|
|
1097
|
+
export type TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsList =
|
|
1098
|
+
Array<TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItem>;
|
|
1099
|
+
export const TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsList =
|
|
1100
|
+
/*@__PURE__*/ S.Array(
|
|
1101
|
+
TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsItem,
|
|
1102
|
+
) as any as S.Schema<TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsList>;
|
|
1103
|
+
|
|
1104
|
+
/** `enabled: true` with empty `sources` is deny-all. */
|
|
1105
|
+
export interface TeamDeploymentPolicyDeploymentSourcesItem {
|
|
1106
|
+
sources: TeamDeploymentPolicyDeploymentSourcesItemSourcesList;
|
|
1107
|
+
enabled: boolean;
|
|
1108
|
+
environments: TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsList;
|
|
1109
|
+
}
|
|
1110
|
+
export const TeamDeploymentPolicyDeploymentSourcesItem =
|
|
1111
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1112
|
+
S.Struct({
|
|
1113
|
+
sources: TeamDeploymentPolicyDeploymentSourcesItemSourcesList,
|
|
1114
|
+
enabled: S.Boolean,
|
|
1115
|
+
environments: TeamDeploymentPolicyDeploymentSourcesItemEnvironmentsList,
|
|
1116
|
+
}),
|
|
1117
|
+
).annotate({
|
|
1118
|
+
identifier: "TeamDeploymentPolicyDeploymentSourcesItem",
|
|
1119
|
+
}) as any as S.Schema<TeamDeploymentPolicyDeploymentSourcesItem>;
|
|
1120
|
+
|
|
1121
|
+
export type TeamDeploymentPolicyDeploymentSourcesList =
|
|
1122
|
+
Array<TeamDeploymentPolicyDeploymentSourcesItem>;
|
|
1123
|
+
export const TeamDeploymentPolicyDeploymentSourcesList = /*@__PURE__*/ S.Array(
|
|
1124
|
+
TeamDeploymentPolicyDeploymentSourcesItem,
|
|
1125
|
+
) as any as S.Schema<TeamDeploymentPolicyDeploymentSourcesList>;
|
|
1126
|
+
|
|
1127
|
+
/** Composable deployment-time policy for the team. Used as the default for every project on the team, with optional per-project overrides on `project.deploymentPolicy`. */
|
|
1128
|
+
export interface TeamDeploymentPolicy {
|
|
1129
|
+
gitSources?: TeamDeploymentPolicyGitSourcesList;
|
|
1130
|
+
deploymentSources?: TeamDeploymentPolicyDeploymentSourcesList;
|
|
1131
|
+
}
|
|
1132
|
+
export const TeamDeploymentPolicy = /*@__PURE__*/ S.suspend(() =>
|
|
1133
|
+
S.Struct({
|
|
1134
|
+
gitSources: S.optional(TeamDeploymentPolicyGitSourcesList),
|
|
1135
|
+
deploymentSources: S.optional(TeamDeploymentPolicyDeploymentSourcesList),
|
|
1136
|
+
}),
|
|
1137
|
+
).annotate({
|
|
1138
|
+
identifier: "TeamDeploymentPolicy",
|
|
1139
|
+
}) as any as S.Schema<TeamDeploymentPolicy>;
|
|
1140
|
+
|
|
1141
|
+
export interface TeamMembershipEntitlementsItem {
|
|
1142
|
+
entitlement: string;
|
|
1143
|
+
}
|
|
1144
|
+
export const TeamMembershipEntitlementsItem = /*@__PURE__*/ S.suspend(() =>
|
|
1145
|
+
S.Struct({
|
|
1146
|
+
entitlement: S.String,
|
|
1147
|
+
}),
|
|
1148
|
+
).annotate({
|
|
1149
|
+
identifier: "TeamMembershipEntitlementsItem",
|
|
1150
|
+
}) as any as S.Schema<TeamMembershipEntitlementsItem>;
|
|
1151
|
+
|
|
1152
|
+
export type TeamMembershipEntitlementsList =
|
|
1153
|
+
Array<TeamMembershipEntitlementsItem>;
|
|
1154
|
+
export const TeamMembershipEntitlementsList = /*@__PURE__*/ S.Array(
|
|
1155
|
+
TeamMembershipEntitlementsItem,
|
|
1156
|
+
) as any as S.Schema<TeamMembershipEntitlementsList>;
|
|
1157
|
+
|
|
1158
|
+
export type TeamMembershipRole =
|
|
1159
|
+
| "BILLING"
|
|
1160
|
+
| "CONTRIBUTOR"
|
|
1161
|
+
| "DEVELOPER"
|
|
1162
|
+
| "MEMBER"
|
|
1163
|
+
| "OWNER"
|
|
1164
|
+
| "SECURITY"
|
|
1165
|
+
| "VIEWER"
|
|
1166
|
+
| "VIEWER_FOR_PLUS";
|
|
1167
|
+
export const TeamMembershipRole = S.String;
|
|
1168
|
+
|
|
1169
|
+
export type TeamMembershipTeamRolesItem =
|
|
1170
|
+
| "BILLING"
|
|
1171
|
+
| "CONTRIBUTOR"
|
|
1172
|
+
| "DEVELOPER"
|
|
1173
|
+
| "MEMBER"
|
|
1174
|
+
| "OWNER"
|
|
1175
|
+
| "SECURITY"
|
|
1176
|
+
| "VIEWER"
|
|
1177
|
+
| "VIEWER_FOR_PLUS";
|
|
1178
|
+
export const TeamMembershipTeamRolesItem = S.String;
|
|
1179
|
+
|
|
1180
|
+
export type TeamMembershipTeamRolesList = Array<TeamMembershipTeamRolesItem>;
|
|
1181
|
+
export const TeamMembershipTeamRolesList = /*@__PURE__*/ S.Array(
|
|
1182
|
+
TeamMembershipTeamRolesItem,
|
|
1183
|
+
) as any as S.Schema<TeamMembershipTeamRolesList>;
|
|
1184
|
+
|
|
1185
|
+
export type TeamMembershipTeamPermissionsItem =
|
|
1186
|
+
| "AiGatewayApiKeyOwnedBySelf"
|
|
1187
|
+
| "AiGatewayBudgetManager"
|
|
1188
|
+
| "AiGatewayCredits"
|
|
1189
|
+
| "AiGatewaySettings"
|
|
1190
|
+
| "AiGatewayTranscriptsManager"
|
|
1191
|
+
| "AiGatewayTranscriptsViewer"
|
|
1192
|
+
| "ConnectorManager"
|
|
1193
|
+
| "CreateProject"
|
|
1194
|
+
| "EnvVariableManager"
|
|
1195
|
+
| "EnvironmentManager"
|
|
1196
|
+
| "FullProductionDeployment"
|
|
1197
|
+
| "IntegrationManager"
|
|
1198
|
+
| "OrgAdmin"
|
|
1199
|
+
| "OrgViewer"
|
|
1200
|
+
| "UsageViewer"
|
|
1201
|
+
| "V0Builder"
|
|
1202
|
+
| "V0Chatter"
|
|
1203
|
+
| "V0Viewer"
|
|
1204
|
+
| "WorkflowDecryptor";
|
|
1205
|
+
export const TeamMembershipTeamPermissionsItem = S.String;
|
|
1206
|
+
|
|
1207
|
+
export type TeamMembershipTeamPermissionsList =
|
|
1208
|
+
Array<TeamMembershipTeamPermissionsItem>;
|
|
1209
|
+
export const TeamMembershipTeamPermissionsList = /*@__PURE__*/ S.Array(
|
|
1210
|
+
TeamMembershipTeamPermissionsItem,
|
|
1211
|
+
) as any as S.Schema<TeamMembershipTeamPermissionsList>;
|
|
1212
|
+
|
|
1213
|
+
export type TeamMembershipJoinedFromOrigin =
|
|
1214
|
+
| "account-update"
|
|
1215
|
+
| "bitbucket"
|
|
1216
|
+
| "dsync"
|
|
1217
|
+
| "feedback"
|
|
1218
|
+
| "github"
|
|
1219
|
+
| "gitlab"
|
|
1220
|
+
| "import"
|
|
1221
|
+
| "link"
|
|
1222
|
+
| "mail"
|
|
1223
|
+
| "nsnb-auto-approve"
|
|
1224
|
+
| "nsnb-hobby-upgrade"
|
|
1225
|
+
| "nsnb-invite"
|
|
1226
|
+
| "nsnb-redeploy"
|
|
1227
|
+
| "nsnb-redeploy-attribution-card"
|
|
1228
|
+
| "nsnb-request-access"
|
|
1229
|
+
| "nsnb-viewer-upgrade"
|
|
1230
|
+
| "organization-teams"
|
|
1231
|
+
| "saml"
|
|
1232
|
+
| "teams";
|
|
1233
|
+
export const TeamMembershipJoinedFromOrigin = S.String;
|
|
1234
|
+
|
|
1235
|
+
export type TeamMembershipJoinedFromGitUserId = string | number;
|
|
1236
|
+
export const TeamMembershipJoinedFromGitUserId =
|
|
1237
|
+
S.Unknown as any as S.Schema<TeamMembershipJoinedFromGitUserId>;
|
|
1238
|
+
|
|
1239
|
+
export interface TeamMembershipJoinedFrom {
|
|
1240
|
+
origin: TeamMembershipJoinedFromOrigin;
|
|
1241
|
+
commitId?: string;
|
|
1242
|
+
repoId?: string;
|
|
1243
|
+
repoPath?: string;
|
|
1244
|
+
gitUserId?: TeamMembershipJoinedFromGitUserId;
|
|
1245
|
+
gitUserLogin?: string;
|
|
1246
|
+
ssoUserId?: string;
|
|
1247
|
+
ssoConnectedAt?: number;
|
|
1248
|
+
idpUserId?: string;
|
|
1249
|
+
dsyncUserId?: string;
|
|
1250
|
+
dsyncConnectedAt?: number;
|
|
1251
|
+
}
|
|
1252
|
+
export const TeamMembershipJoinedFrom = /*@__PURE__*/ S.suspend(() =>
|
|
1253
|
+
S.Struct({
|
|
1254
|
+
origin: TeamMembershipJoinedFromOrigin,
|
|
1255
|
+
commitId: S.optional(S.String),
|
|
1256
|
+
repoId: S.optional(S.String),
|
|
1257
|
+
repoPath: S.optional(S.String),
|
|
1258
|
+
gitUserId: S.optional(TeamMembershipJoinedFromGitUserId),
|
|
1259
|
+
gitUserLogin: S.optional(S.String),
|
|
1260
|
+
ssoUserId: S.optional(S.String),
|
|
1261
|
+
ssoConnectedAt: S.optional(S.Number),
|
|
1262
|
+
idpUserId: S.optional(S.String),
|
|
1263
|
+
dsyncUserId: S.optional(S.String),
|
|
1264
|
+
dsyncConnectedAt: S.optional(S.Number),
|
|
1265
|
+
}),
|
|
1266
|
+
).annotate({
|
|
1267
|
+
identifier: "TeamMembershipJoinedFrom",
|
|
1268
|
+
}) as any as S.Schema<TeamMembershipJoinedFrom>;
|
|
1269
|
+
|
|
1270
|
+
/** The membership of the authenticated User in relation to the Team. */
|
|
1271
|
+
export interface TeamMembership {
|
|
1272
|
+
uid?: string;
|
|
1273
|
+
entitlements?: TeamMembershipEntitlementsList;
|
|
1274
|
+
teamId?: string;
|
|
1275
|
+
confirmed: boolean;
|
|
1276
|
+
accessRequestedAt?: number;
|
|
1277
|
+
role: TeamMembershipRole;
|
|
1278
|
+
teamRoles?: TeamMembershipTeamRolesList;
|
|
1279
|
+
teamPermissions?: TeamMembershipTeamPermissionsList;
|
|
1280
|
+
createdAt: number;
|
|
1281
|
+
created: number;
|
|
1282
|
+
joinedFrom?: TeamMembershipJoinedFrom;
|
|
1283
|
+
}
|
|
1284
|
+
export const TeamMembership = /*@__PURE__*/ S.suspend(() =>
|
|
1285
|
+
S.Struct({
|
|
1286
|
+
uid: S.optional(S.String),
|
|
1287
|
+
entitlements: S.optional(TeamMembershipEntitlementsList),
|
|
1288
|
+
teamId: S.optional(S.String),
|
|
1289
|
+
confirmed: S.Boolean,
|
|
1290
|
+
accessRequestedAt: S.optional(S.Number),
|
|
1291
|
+
role: TeamMembershipRole,
|
|
1292
|
+
teamRoles: S.optional(TeamMembershipTeamRolesList),
|
|
1293
|
+
teamPermissions: S.optional(TeamMembershipTeamPermissionsList),
|
|
1294
|
+
createdAt: S.Number,
|
|
1295
|
+
created: S.Number,
|
|
1296
|
+
joinedFrom: S.optional(TeamMembershipJoinedFrom),
|
|
1297
|
+
}),
|
|
1298
|
+
).annotate({ identifier: "TeamMembership" }) as any as S.Schema<TeamMembership>;
|
|
1299
|
+
|
|
1300
|
+
/** Data representing a Team. */
|
|
1301
|
+
export interface Team {
|
|
1302
|
+
connect?: TeamConnect;
|
|
1303
|
+
/** The ID of the user who created the Team. */
|
|
1304
|
+
creatorId: string;
|
|
1305
|
+
/** Timestamp (in milliseconds) of when the Team was last updated. */
|
|
1306
|
+
updatedAt: number;
|
|
1307
|
+
/** Hostname that'll be matched with emails on sign-up to automatically join the Team. */
|
|
1308
|
+
emailDomain?: string | null;
|
|
1309
|
+
/** When "Single Sign-On (SAML)" is configured, this object contains information regarding the configuration of the Identity Provider (IdP). */
|
|
1310
|
+
saml?: TeamSaml;
|
|
1311
|
+
/** Code that can be used to join this Team. Only visible to Team owners. */
|
|
1312
|
+
inviteCode?: string;
|
|
1313
|
+
/** The team's billing plan. */
|
|
1314
|
+
billing: TeamBilling | null;
|
|
1315
|
+
/** A short description of the Team. */
|
|
1316
|
+
description: string | null;
|
|
1317
|
+
/** Default roles for the team. */
|
|
1318
|
+
defaultRoles?: TeamDefaultRoles;
|
|
1319
|
+
/** The prefix that is prepended to automatic aliases. */
|
|
1320
|
+
stagingPrefix: string;
|
|
1321
|
+
resourceConfig?: TeamResourceConfig;
|
|
1322
|
+
/** The hostname that is current set as preview deployment suffix. */
|
|
1323
|
+
previewDeploymentSuffix?: string | null;
|
|
1324
|
+
/** Whether the team is a platform team. */
|
|
1325
|
+
platform?: boolean;
|
|
1326
|
+
disableHardAutoBlocks?: TeamDisableHardAutoBlocks;
|
|
1327
|
+
/** Is remote caching enabled for this team */
|
|
1328
|
+
remoteCaching?: TeamConnect;
|
|
1329
|
+
/** Default deployment protection for this team null indicates protection is disabled */
|
|
1330
|
+
defaultDeploymentProtection?: TeamDefaultDeploymentProtection;
|
|
1331
|
+
/** Default Passport configuration for new projects in this team. */
|
|
1332
|
+
defaultPassport?: TeamDefaultPassport | null;
|
|
1333
|
+
/** Default deployment expiration settings for this team */
|
|
1334
|
+
defaultExpirationSettings?: TeamDefaultExpirationSettings;
|
|
1335
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
1336
|
+
defaultProjectJobs?: TeamDefaultProjectJobs;
|
|
1337
|
+
/** Whether toolbar is enabled on preview deployments */
|
|
1338
|
+
enablePreviewFeedback?: TeamEnablePreviewFeedback | null;
|
|
1339
|
+
/** Whether toolbar is enabled on production deployments */
|
|
1340
|
+
enableProductionFeedback?: TeamEnableProductionFeedback | null;
|
|
1341
|
+
/** Sensitive environment variable policy for this team */
|
|
1342
|
+
sensitiveEnvironmentVariablePolicy?: TeamSensitiveEnvironmentVariablePolicy | null;
|
|
1343
|
+
/** Require production secrets to use a different value than preview or development. */
|
|
1344
|
+
disjunctiveProductionSecretPolicy?: TeamDisjunctiveProductionSecretPolicy | null;
|
|
1345
|
+
/** Indicates if IP addresses should be accessible in observability (o11y) tooling */
|
|
1346
|
+
hideIpAddresses?: boolean | null;
|
|
1347
|
+
/** Indicates if IP addresses should be accessible in log drains */
|
|
1348
|
+
hideIpAddressesInLogDrains?: boolean | null;
|
|
1349
|
+
/** Controls who can request access to protected deployments. */
|
|
1350
|
+
dpAccessRequestsMode?: TeamDpAccessRequestsMode;
|
|
1351
|
+
ipBuckets?: TeamIpBucketsList;
|
|
1352
|
+
/** When enabled, all projects in the team require commits to be signed and verified by the git provider before deployments will be created. Projects may override this via `project.gitProviderOptions.requireVerifiedCommits` (gated by `Project:Update`). */
|
|
1353
|
+
requireVerifiedCommits?: boolean;
|
|
1354
|
+
/** Default for projects in the team. When `true`, projects in this team will not emit GitHub repository-dispatch events on deployment events unless the project explicitly overrides this setting via `project.gitProviderOptions.disableRepositoryDispatchEvents`. */
|
|
1355
|
+
disableRepositoryDispatchEvents?: boolean;
|
|
1356
|
+
/** When enabled, deployment protection settings require stricter permissions (owner-only). */
|
|
1357
|
+
strictDeploymentProtectionSettings?: TeamStrictDeploymentProtectionSettings;
|
|
1358
|
+
/** When enabled, creating shareable links requires Owner role. */
|
|
1359
|
+
strictShareableLinks?: TeamStrictDeploymentProtectionSettings;
|
|
1360
|
+
/** When enabled, adding, changing, or removing project password protection requires Owner role. */
|
|
1361
|
+
strictPasswordProtectionSettings?: TeamStrictDeploymentProtectionSettings;
|
|
1362
|
+
/** When enabled, creating and managing connectors requires Owner role or the ConnectorManager permission. */
|
|
1363
|
+
strictConnectors?: TeamStrictDeploymentProtectionSettings;
|
|
1364
|
+
/** NSNB configuration for the team. */
|
|
1365
|
+
nsnbConfig?: TeamNsnbConfig;
|
|
1366
|
+
/** Composable deployment-time policy for the team. Used as the default for every project on the team, with optional per-project overrides on `project.deploymentPolicy`. */
|
|
1367
|
+
deploymentPolicy?: TeamDeploymentPolicy;
|
|
1368
|
+
/** Timestamp (ms) after which personal access tokens created at or before this time are considered invalid for this team. */
|
|
1369
|
+
personalAccessTokensInvalidatedAt?: number;
|
|
1370
|
+
/** Timestamp (ms) after which Vercel App tokens created at or before this time are considered invalid for this team. */
|
|
1371
|
+
appTokensInvalidatedAt?: number;
|
|
1372
|
+
/** Timestamp (ms) after which API keys created at or before this time are considered invalid for this team. */
|
|
1373
|
+
apiKeysInvalidatedAt?: number;
|
|
1374
|
+
/** Timestamp (ms) after which integration tokens created at or before this time are considered invalid for this team. */
|
|
1375
|
+
integrationTokensInvalidatedAt?: number;
|
|
1376
|
+
/** The Team's unique identifier. */
|
|
1377
|
+
id: string;
|
|
1378
|
+
/** The Team's slug, which is unique across the Vercel platform. */
|
|
1379
|
+
slug: string;
|
|
1380
|
+
/** Name associated with the Team account, or `null` if none has been provided. */
|
|
1381
|
+
name: string | null;
|
|
1382
|
+
/** The ID of the file used as avatar for this Team. */
|
|
1383
|
+
avatar: string | null;
|
|
1384
|
+
/** The membership of the authenticated User in relation to the Team. */
|
|
1385
|
+
membership?: TeamMembership;
|
|
1386
|
+
/** UNIX timestamp (in milliseconds) when the Team was created. */
|
|
1387
|
+
createdAt: number;
|
|
1388
|
+
/** The organizationId for teams that belong to an organization (set on both the organization's root team and its child teams). */
|
|
1389
|
+
parentId?: string;
|
|
1390
|
+
/** Best-effort ID of the organization’s root billing team. When present, compare `orgRootTeamId === id` to identify the root team. It may be omitted even when `parentId` is set if organization resolution fails or the referenced organization is missing. Always omitted for non-organization teams. */
|
|
1391
|
+
orgRootTeamId?: string;
|
|
1392
|
+
}
|
|
1393
|
+
export const Team = /*@__PURE__*/ S.suspend(() =>
|
|
1394
|
+
S.Struct({
|
|
1395
|
+
connect: S.optional(TeamConnect),
|
|
1396
|
+
creatorId: S.String,
|
|
1397
|
+
updatedAt: S.Number,
|
|
1398
|
+
emailDomain: S.optional(S.NullOr(S.String)),
|
|
1399
|
+
saml: S.optional(TeamSaml),
|
|
1400
|
+
inviteCode: S.optional(S.String),
|
|
1401
|
+
billing: S.NullOr(TeamBilling),
|
|
1402
|
+
description: S.NullOr(S.String),
|
|
1403
|
+
defaultRoles: S.optional(TeamDefaultRoles),
|
|
1404
|
+
stagingPrefix: S.String,
|
|
1405
|
+
resourceConfig: S.optional(TeamResourceConfig),
|
|
1406
|
+
previewDeploymentSuffix: S.optional(S.NullOr(S.String)),
|
|
1407
|
+
platform: S.optional(S.Boolean),
|
|
1408
|
+
disableHardAutoBlocks: S.optional(TeamDisableHardAutoBlocks),
|
|
1409
|
+
remoteCaching: S.optional(TeamConnect),
|
|
1410
|
+
defaultDeploymentProtection: S.optional(TeamDefaultDeploymentProtection),
|
|
1411
|
+
defaultPassport: S.optional(S.NullOr(TeamDefaultPassport)),
|
|
1412
|
+
defaultExpirationSettings: S.optional(TeamDefaultExpirationSettings),
|
|
1413
|
+
defaultProjectJobs: S.optional(TeamDefaultProjectJobs),
|
|
1414
|
+
enablePreviewFeedback: S.optional(S.NullOr(TeamEnablePreviewFeedback)),
|
|
1415
|
+
enableProductionFeedback: S.optional(
|
|
1416
|
+
S.NullOr(TeamEnableProductionFeedback),
|
|
1417
|
+
),
|
|
1418
|
+
sensitiveEnvironmentVariablePolicy: S.optional(
|
|
1419
|
+
S.NullOr(TeamSensitiveEnvironmentVariablePolicy),
|
|
1420
|
+
),
|
|
1421
|
+
disjunctiveProductionSecretPolicy: S.optional(
|
|
1422
|
+
S.NullOr(TeamDisjunctiveProductionSecretPolicy),
|
|
1423
|
+
),
|
|
1424
|
+
hideIpAddresses: S.optional(S.NullOr(S.Boolean)),
|
|
1425
|
+
hideIpAddressesInLogDrains: S.optional(S.NullOr(S.Boolean)),
|
|
1426
|
+
dpAccessRequestsMode: S.optional(TeamDpAccessRequestsMode),
|
|
1427
|
+
ipBuckets: S.optional(TeamIpBucketsList),
|
|
1428
|
+
requireVerifiedCommits: S.optional(S.Boolean),
|
|
1429
|
+
disableRepositoryDispatchEvents: S.optional(S.Boolean),
|
|
1430
|
+
strictDeploymentProtectionSettings: S.optional(
|
|
1431
|
+
TeamStrictDeploymentProtectionSettings,
|
|
1432
|
+
),
|
|
1433
|
+
strictShareableLinks: S.optional(TeamStrictDeploymentProtectionSettings),
|
|
1434
|
+
strictPasswordProtectionSettings: S.optional(
|
|
1435
|
+
TeamStrictDeploymentProtectionSettings,
|
|
1436
|
+
),
|
|
1437
|
+
strictConnectors: S.optional(TeamStrictDeploymentProtectionSettings),
|
|
1438
|
+
nsnbConfig: S.optional(TeamNsnbConfig),
|
|
1439
|
+
deploymentPolicy: S.optional(TeamDeploymentPolicy),
|
|
1440
|
+
personalAccessTokensInvalidatedAt: S.optional(S.Number),
|
|
1441
|
+
appTokensInvalidatedAt: S.optional(S.Number),
|
|
1442
|
+
apiKeysInvalidatedAt: S.optional(S.Number),
|
|
1443
|
+
integrationTokensInvalidatedAt: S.optional(S.Number),
|
|
1444
|
+
id: S.String,
|
|
1445
|
+
slug: S.String,
|
|
1446
|
+
name: S.NullOr(S.String),
|
|
1447
|
+
avatar: S.NullOr(S.String),
|
|
1448
|
+
membership: S.optional(TeamMembership),
|
|
1449
|
+
createdAt: S.Number,
|
|
1450
|
+
parentId: S.optional(S.String),
|
|
1451
|
+
orgRootTeamId: S.optional(S.String),
|
|
1452
|
+
}),
|
|
1453
|
+
).annotate({ identifier: "Team" }) as any as S.Schema<Team>;
|
|
1454
|
+
|
|
1455
|
+
export interface GetTeamAccessRequestRequest {
|
|
1456
|
+
teamId: string;
|
|
1457
|
+
userId: string;
|
|
1458
|
+
}
|
|
1459
|
+
export const GetTeamAccessRequestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1460
|
+
S.Struct({
|
|
1461
|
+
teamId: S.String.pipe(T.Label()),
|
|
1462
|
+
userId: S.String.pipe(T.Label()),
|
|
1463
|
+
}).pipe(
|
|
1464
|
+
T.Http({
|
|
1465
|
+
method: "GET",
|
|
1466
|
+
uri: "/v1/teams/{teamId}/request/{userId}",
|
|
1467
|
+
code: 200,
|
|
1468
|
+
}),
|
|
1469
|
+
),
|
|
1470
|
+
).annotate({
|
|
1471
|
+
identifier: "GetTeamAccessRequestRequest",
|
|
1472
|
+
}) as any as S.Schema<GetTeamAccessRequestRequest>;
|
|
1473
|
+
|
|
1474
|
+
export type GetTeamAccessRequestResponseJoinedFromOrigin =
|
|
1475
|
+
| "account-update"
|
|
1476
|
+
| "bitbucket"
|
|
1477
|
+
| "dsync"
|
|
1478
|
+
| "feedback"
|
|
1479
|
+
| "github"
|
|
1480
|
+
| "gitlab"
|
|
1481
|
+
| "import"
|
|
1482
|
+
| "link"
|
|
1483
|
+
| "mail"
|
|
1484
|
+
| "nsnb-auto-approve"
|
|
1485
|
+
| "nsnb-hobby-upgrade"
|
|
1486
|
+
| "nsnb-invite"
|
|
1487
|
+
| "nsnb-redeploy"
|
|
1488
|
+
| "nsnb-redeploy-attribution-card"
|
|
1489
|
+
| "nsnb-request-access"
|
|
1490
|
+
| "nsnb-viewer-upgrade"
|
|
1491
|
+
| "organization-teams"
|
|
1492
|
+
| "saml"
|
|
1493
|
+
| "teams";
|
|
1494
|
+
export const GetTeamAccessRequestResponseJoinedFromOrigin = S.String;
|
|
1495
|
+
|
|
1496
|
+
export type GetTeamAccessRequestResponseJoinedFromGitUserId = string | number;
|
|
1497
|
+
export const GetTeamAccessRequestResponseJoinedFromGitUserId =
|
|
1498
|
+
S.Unknown as any as S.Schema<GetTeamAccessRequestResponseJoinedFromGitUserId>;
|
|
1499
|
+
|
|
1500
|
+
/** A map that describes the origin from where the user joined. */
|
|
1501
|
+
export interface GetTeamAccessRequestResponseJoinedFrom {
|
|
1502
|
+
origin: GetTeamAccessRequestResponseJoinedFromOrigin;
|
|
1503
|
+
commitId?: string;
|
|
1504
|
+
repoId?: string;
|
|
1505
|
+
repoPath?: string;
|
|
1506
|
+
gitUserId?: GetTeamAccessRequestResponseJoinedFromGitUserId;
|
|
1507
|
+
gitUserLogin?: string;
|
|
1508
|
+
ssoUserId?: string;
|
|
1509
|
+
ssoConnectedAt?: number;
|
|
1510
|
+
idpUserId?: string;
|
|
1511
|
+
dsyncUserId?: string;
|
|
1512
|
+
dsyncConnectedAt?: number;
|
|
1513
|
+
}
|
|
1514
|
+
export const GetTeamAccessRequestResponseJoinedFrom = /*@__PURE__*/ S.suspend(
|
|
1515
|
+
() =>
|
|
1516
|
+
S.Struct({
|
|
1517
|
+
origin: GetTeamAccessRequestResponseJoinedFromOrigin,
|
|
1518
|
+
commitId: S.optional(S.String),
|
|
1519
|
+
repoId: S.optional(S.String),
|
|
1520
|
+
repoPath: S.optional(S.String),
|
|
1521
|
+
gitUserId: S.optional(GetTeamAccessRequestResponseJoinedFromGitUserId),
|
|
1522
|
+
gitUserLogin: S.optional(S.String),
|
|
1523
|
+
ssoUserId: S.optional(S.String),
|
|
1524
|
+
ssoConnectedAt: S.optional(S.Number),
|
|
1525
|
+
idpUserId: S.optional(S.String),
|
|
1526
|
+
dsyncUserId: S.optional(S.String),
|
|
1527
|
+
dsyncConnectedAt: S.optional(S.Number),
|
|
1528
|
+
}),
|
|
1529
|
+
).annotate({
|
|
1530
|
+
identifier: "GetTeamAccessRequestResponseJoinedFrom",
|
|
1531
|
+
}) as any as S.Schema<GetTeamAccessRequestResponseJoinedFrom>;
|
|
1532
|
+
|
|
1533
|
+
/** Map of the connected GitHub account. */
|
|
1534
|
+
export interface GetTeamAccessRequestResponseGithub {
|
|
1535
|
+
login?: string;
|
|
1536
|
+
}
|
|
1537
|
+
export const GetTeamAccessRequestResponseGithub = /*@__PURE__*/ S.suspend(() =>
|
|
1538
|
+
S.Struct({
|
|
1539
|
+
login: S.optional(S.String),
|
|
1540
|
+
}),
|
|
1541
|
+
).annotate({
|
|
1542
|
+
identifier: "GetTeamAccessRequestResponseGithub",
|
|
1543
|
+
}) as any as S.Schema<GetTeamAccessRequestResponseGithub>;
|
|
1544
|
+
|
|
1545
|
+
/** Map of the connected GitLab account. */
|
|
1546
|
+
export type GetTeamAccessRequestResponseGitlab =
|
|
1547
|
+
GetTeamAccessRequestResponseGithub;
|
|
1548
|
+
export const GetTeamAccessRequestResponseGitlab =
|
|
1549
|
+
GetTeamAccessRequestResponseGithub;
|
|
1550
|
+
|
|
1551
|
+
/** Map of the connected Bitbucket account. */
|
|
1552
|
+
export type GetTeamAccessRequestResponseBitbucket =
|
|
1553
|
+
GetTeamAccessRequestResponseGithub;
|
|
1554
|
+
export const GetTeamAccessRequestResponseBitbucket =
|
|
1555
|
+
GetTeamAccessRequestResponseGithub;
|
|
1556
|
+
|
|
1557
|
+
export interface GetTeamAccessRequestResponse {
|
|
1558
|
+
/** The slug of the team. */
|
|
1559
|
+
teamSlug: string;
|
|
1560
|
+
/** The name of the team. */
|
|
1561
|
+
teamName: string;
|
|
1562
|
+
/** Current status of the membership. Will be `true` if confirmed, if pending it'll be `false`. */
|
|
1563
|
+
confirmed: boolean;
|
|
1564
|
+
/** A map that describes the origin from where the user joined. */
|
|
1565
|
+
joinedFrom: GetTeamAccessRequestResponseJoinedFrom;
|
|
1566
|
+
/** Timestamp in milliseconds when the user requested access to the team. */
|
|
1567
|
+
accessRequestedAt: number;
|
|
1568
|
+
/** Map of the connected GitHub account. */
|
|
1569
|
+
github: GetTeamAccessRequestResponseGithub | null;
|
|
1570
|
+
/** Map of the connected GitLab account. */
|
|
1571
|
+
gitlab: GetTeamAccessRequestResponseGithub | null;
|
|
1572
|
+
/** Map of the connected Bitbucket account. */
|
|
1573
|
+
bitbucket: GetTeamAccessRequestResponseGithub | null;
|
|
1574
|
+
}
|
|
1575
|
+
export const GetTeamAccessRequestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1576
|
+
S.Struct({
|
|
1577
|
+
teamSlug: S.String,
|
|
1578
|
+
teamName: S.String,
|
|
1579
|
+
confirmed: S.Boolean,
|
|
1580
|
+
joinedFrom: GetTeamAccessRequestResponseJoinedFrom,
|
|
1581
|
+
accessRequestedAt: S.Number,
|
|
1582
|
+
github: S.NullOr(GetTeamAccessRequestResponseGithub),
|
|
1583
|
+
gitlab: S.NullOr(GetTeamAccessRequestResponseGithub),
|
|
1584
|
+
bitbucket: S.NullOr(GetTeamAccessRequestResponseGithub),
|
|
1585
|
+
}),
|
|
1586
|
+
).annotate({
|
|
1587
|
+
identifier: "GetTeamAccessRequestResponse",
|
|
1588
|
+
}) as any as S.Schema<GetTeamAccessRequestResponse>;
|
|
1589
|
+
|
|
1590
|
+
/** Only return members with the specified team role. */
|
|
1591
|
+
export type GetTeamMembersRequestRole =
|
|
1592
|
+
| "OWNER"
|
|
1593
|
+
| "MEMBER"
|
|
1594
|
+
| "DEVELOPER"
|
|
1595
|
+
| "SECURITY"
|
|
1596
|
+
| "BILLING"
|
|
1597
|
+
| "VIEWER"
|
|
1598
|
+
| "VIEWER_FOR_PLUS"
|
|
1599
|
+
| "CONTRIBUTOR";
|
|
1600
|
+
export const GetTeamMembersRequestRole = S.String;
|
|
1601
|
+
|
|
1602
|
+
export interface GetTeamMembersRequest {
|
|
1603
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
1604
|
+
teamId: string;
|
|
1605
|
+
/** Limit how many teams should be returned */
|
|
1606
|
+
limit?: number;
|
|
1607
|
+
/** Timestamp in milliseconds to only include members added since then. */
|
|
1608
|
+
since?: number;
|
|
1609
|
+
/** Timestamp in milliseconds to only include members added until then. */
|
|
1610
|
+
until?: number;
|
|
1611
|
+
/** Search team members by their name, username, and email. */
|
|
1612
|
+
search?: string;
|
|
1613
|
+
/** Only return members with the specified team role. */
|
|
1614
|
+
role?: GetTeamMembersRequestRole | (string & {});
|
|
1615
|
+
/** Exclude members who belong to the specified project. */
|
|
1616
|
+
excludeProject?: string;
|
|
1617
|
+
/** Include team members who are eligible to be members of the specified project. */
|
|
1618
|
+
eligibleMembersForProjectId?: string;
|
|
1619
|
+
/** The Team slug to perform the request on behalf of. */
|
|
1620
|
+
slug?: string;
|
|
1621
|
+
}
|
|
1622
|
+
export const GetTeamMembersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1623
|
+
S.Struct({
|
|
1624
|
+
teamId: S.String.pipe(T.Label()),
|
|
1625
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1626
|
+
since: S.optional(S.Number.pipe(T.Query())),
|
|
1627
|
+
until: S.optional(S.Number.pipe(T.Query())),
|
|
1628
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
1629
|
+
role: S.optional(GetTeamMembersRequestRole.pipe(T.Query())),
|
|
1630
|
+
excludeProject: S.optional(S.String.pipe(T.Query())),
|
|
1631
|
+
eligibleMembersForProjectId: S.optional(S.String.pipe(T.Query())),
|
|
1632
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
1633
|
+
}).pipe(
|
|
1634
|
+
T.Http({ method: "GET", uri: "/v3/teams/{teamId}/members", code: 200 }),
|
|
1635
|
+
),
|
|
1636
|
+
).annotate({
|
|
1637
|
+
identifier: "GetTeamMembersRequest",
|
|
1638
|
+
}) as any as S.Schema<GetTeamMembersRequest>;
|
|
1639
|
+
|
|
1640
|
+
/** Information about the GitHub account for this user. */
|
|
1641
|
+
export type GetTeamMembersResponseMembersItemGithub =
|
|
1642
|
+
GetTeamAccessRequestResponseGithub;
|
|
1643
|
+
export const GetTeamMembersResponseMembersItemGithub =
|
|
1644
|
+
GetTeamAccessRequestResponseGithub;
|
|
1645
|
+
|
|
1646
|
+
/** Information about the GitLab account of this user. */
|
|
1647
|
+
export type GetTeamMembersResponseMembersItemGitlab =
|
|
1648
|
+
GetTeamAccessRequestResponseGithub;
|
|
1649
|
+
export const GetTeamMembersResponseMembersItemGitlab =
|
|
1650
|
+
GetTeamAccessRequestResponseGithub;
|
|
1651
|
+
|
|
1652
|
+
/** Information about the Bitbucket account of this user. */
|
|
1653
|
+
export type GetTeamMembersResponseMembersItemBitbucket =
|
|
1654
|
+
GetTeamAccessRequestResponseGithub;
|
|
1655
|
+
export const GetTeamMembersResponseMembersItemBitbucket =
|
|
1656
|
+
GetTeamAccessRequestResponseGithub;
|
|
1657
|
+
|
|
1658
|
+
/** Role of this user in the team. */
|
|
1659
|
+
export type GetTeamMembersResponseMembersItemRole =
|
|
1660
|
+
| "BILLING"
|
|
1661
|
+
| "CONTRIBUTOR"
|
|
1662
|
+
| "DEVELOPER"
|
|
1663
|
+
| "MEMBER"
|
|
1664
|
+
| "OWNER"
|
|
1665
|
+
| "SECURITY"
|
|
1666
|
+
| "VIEWER"
|
|
1667
|
+
| "VIEWER_FOR_PLUS";
|
|
1668
|
+
export const GetTeamMembersResponseMembersItemRole = S.String;
|
|
1669
|
+
|
|
1670
|
+
export type GetTeamMembersResponseMembersItemJoinedFromOrigin =
|
|
1671
|
+
| "account-update"
|
|
1672
|
+
| "bitbucket"
|
|
1673
|
+
| "dsync"
|
|
1674
|
+
| "feedback"
|
|
1675
|
+
| "github"
|
|
1676
|
+
| "gitlab"
|
|
1677
|
+
| "import"
|
|
1678
|
+
| "link"
|
|
1679
|
+
| "mail"
|
|
1680
|
+
| "nsnb-auto-approve"
|
|
1681
|
+
| "nsnb-hobby-upgrade"
|
|
1682
|
+
| "nsnb-invite"
|
|
1683
|
+
| "nsnb-redeploy"
|
|
1684
|
+
| "nsnb-redeploy-attribution-card"
|
|
1685
|
+
| "nsnb-request-access"
|
|
1686
|
+
| "nsnb-viewer-upgrade"
|
|
1687
|
+
| "organization-teams"
|
|
1688
|
+
| "saml"
|
|
1689
|
+
| "teams";
|
|
1690
|
+
export const GetTeamMembersResponseMembersItemJoinedFromOrigin = S.String;
|
|
1691
|
+
|
|
1692
|
+
export type GetTeamMembersResponseMembersItemJoinedFromGitUserId =
|
|
1693
|
+
| string
|
|
1694
|
+
| number;
|
|
1695
|
+
export const GetTeamMembersResponseMembersItemJoinedFromGitUserId =
|
|
1696
|
+
S.Unknown as any as S.Schema<GetTeamMembersResponseMembersItemJoinedFromGitUserId>;
|
|
1697
|
+
|
|
1698
|
+
/** Map with information about the members origin if they joined by requesting access. */
|
|
1699
|
+
export interface GetTeamMembersResponseMembersItemJoinedFrom {
|
|
1700
|
+
origin: GetTeamMembersResponseMembersItemJoinedFromOrigin;
|
|
1701
|
+
commitId?: string;
|
|
1702
|
+
repoId?: string;
|
|
1703
|
+
repoPath?: string;
|
|
1704
|
+
gitUserId?: GetTeamMembersResponseMembersItemJoinedFromGitUserId;
|
|
1705
|
+
gitUserLogin?: string;
|
|
1706
|
+
ssoUserId?: string;
|
|
1707
|
+
ssoConnectedAt?: number;
|
|
1708
|
+
idpUserId?: string;
|
|
1709
|
+
dsyncUserId?: string;
|
|
1710
|
+
dsyncConnectedAt?: number;
|
|
1711
|
+
}
|
|
1712
|
+
export const GetTeamMembersResponseMembersItemJoinedFrom =
|
|
1713
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1714
|
+
S.Struct({
|
|
1715
|
+
origin: GetTeamMembersResponseMembersItemJoinedFromOrigin,
|
|
1716
|
+
commitId: S.optional(S.String),
|
|
1717
|
+
repoId: S.optional(S.String),
|
|
1718
|
+
repoPath: S.optional(S.String),
|
|
1719
|
+
gitUserId: S.optional(
|
|
1720
|
+
GetTeamMembersResponseMembersItemJoinedFromGitUserId,
|
|
1721
|
+
),
|
|
1722
|
+
gitUserLogin: S.optional(S.String),
|
|
1723
|
+
ssoUserId: S.optional(S.String),
|
|
1724
|
+
ssoConnectedAt: S.optional(S.Number),
|
|
1725
|
+
idpUserId: S.optional(S.String),
|
|
1726
|
+
dsyncUserId: S.optional(S.String),
|
|
1727
|
+
dsyncConnectedAt: S.optional(S.Number),
|
|
1728
|
+
}),
|
|
1729
|
+
).annotate({
|
|
1730
|
+
identifier: "GetTeamMembersResponseMembersItemJoinedFrom",
|
|
1731
|
+
}) as any as S.Schema<GetTeamMembersResponseMembersItemJoinedFrom>;
|
|
1732
|
+
|
|
1733
|
+
export type GetTeamMembersResponseMembersItemProjectsItemRole =
|
|
1734
|
+
| "ADMIN"
|
|
1735
|
+
| "PROJECT_DEVELOPER"
|
|
1736
|
+
| "PROJECT_GUEST"
|
|
1737
|
+
| "PROJECT_VIEWER";
|
|
1738
|
+
export const GetTeamMembersResponseMembersItemProjectsItemRole = S.String;
|
|
1739
|
+
|
|
1740
|
+
/** Array of project memberships */
|
|
1741
|
+
export interface GetTeamMembersResponseMembersItemProjectsItem {
|
|
1742
|
+
name: string;
|
|
1743
|
+
id: string;
|
|
1744
|
+
role?: GetTeamMembersResponseMembersItemProjectsItemRole;
|
|
1745
|
+
}
|
|
1746
|
+
export const GetTeamMembersResponseMembersItemProjectsItem =
|
|
1747
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1748
|
+
S.Struct({
|
|
1749
|
+
name: S.String,
|
|
1750
|
+
id: S.String,
|
|
1751
|
+
role: S.optional(GetTeamMembersResponseMembersItemProjectsItemRole),
|
|
1752
|
+
}),
|
|
1753
|
+
).annotate({
|
|
1754
|
+
identifier: "GetTeamMembersResponseMembersItemProjectsItem",
|
|
1755
|
+
}) as any as S.Schema<GetTeamMembersResponseMembersItemProjectsItem>;
|
|
1756
|
+
|
|
1757
|
+
/** Array of project memberships */
|
|
1758
|
+
export type GetTeamMembersResponseMembersItemProjectsList =
|
|
1759
|
+
Array<GetTeamMembersResponseMembersItemProjectsItem>;
|
|
1760
|
+
export const GetTeamMembersResponseMembersItemProjectsList =
|
|
1761
|
+
/*@__PURE__*/ S.Array(
|
|
1762
|
+
GetTeamMembersResponseMembersItemProjectsItem,
|
|
1763
|
+
) as any as S.Schema<GetTeamMembersResponseMembersItemProjectsList>;
|
|
1764
|
+
|
|
1765
|
+
export interface GetTeamMembersResponseMembersItem {
|
|
1766
|
+
/** ID of the file for the Avatar of this member. */
|
|
1767
|
+
avatar?: string;
|
|
1768
|
+
/** Boolean that indicates if this member was confirmed by an owner. */
|
|
1769
|
+
confirmed: boolean;
|
|
1770
|
+
/** The email of this member. */
|
|
1771
|
+
email: string;
|
|
1772
|
+
/** Information about the GitHub account for this user. */
|
|
1773
|
+
github?: GetTeamAccessRequestResponseGithub;
|
|
1774
|
+
/** Information about the GitLab account of this user. */
|
|
1775
|
+
gitlab?: GetTeamAccessRequestResponseGithub;
|
|
1776
|
+
/** Information about the Bitbucket account of this user. */
|
|
1777
|
+
bitbucket?: GetTeamAccessRequestResponseGithub;
|
|
1778
|
+
/** Role of this user in the team. */
|
|
1779
|
+
role: GetTeamMembersResponseMembersItemRole;
|
|
1780
|
+
/** The ID of this user. */
|
|
1781
|
+
uid: string;
|
|
1782
|
+
/** The unique username of this user. */
|
|
1783
|
+
username: string;
|
|
1784
|
+
/** The name of this user. */
|
|
1785
|
+
name?: string;
|
|
1786
|
+
/** Timestamp in milliseconds when this member was added. */
|
|
1787
|
+
createdAt: number;
|
|
1788
|
+
/** Timestamp in milliseconds for when this team member was accepted by an owner. */
|
|
1789
|
+
accessRequestedAt?: number;
|
|
1790
|
+
/** Map with information about the members origin if they joined by requesting access. */
|
|
1791
|
+
joinedFrom?: GetTeamMembersResponseMembersItemJoinedFrom;
|
|
1792
|
+
/** Array of project memberships */
|
|
1793
|
+
projects?: GetTeamMembersResponseMembersItemProjectsList;
|
|
1794
|
+
/** Indicates whether the user is managed by an enterprise. */
|
|
1795
|
+
isEnterpriseManaged?: boolean;
|
|
1796
|
+
}
|
|
1797
|
+
export const GetTeamMembersResponseMembersItem = /*@__PURE__*/ S.suspend(() =>
|
|
1798
|
+
S.Struct({
|
|
1799
|
+
avatar: S.optional(S.String),
|
|
1800
|
+
confirmed: S.Boolean,
|
|
1801
|
+
email: S.String,
|
|
1802
|
+
github: S.optional(GetTeamAccessRequestResponseGithub),
|
|
1803
|
+
gitlab: S.optional(GetTeamAccessRequestResponseGithub),
|
|
1804
|
+
bitbucket: S.optional(GetTeamAccessRequestResponseGithub),
|
|
1805
|
+
role: GetTeamMembersResponseMembersItemRole,
|
|
1806
|
+
uid: S.String,
|
|
1807
|
+
username: S.String,
|
|
1808
|
+
name: S.optional(S.String),
|
|
1809
|
+
createdAt: S.Number,
|
|
1810
|
+
accessRequestedAt: S.optional(S.Number),
|
|
1811
|
+
joinedFrom: S.optional(GetTeamMembersResponseMembersItemJoinedFrom),
|
|
1812
|
+
projects: S.optional(GetTeamMembersResponseMembersItemProjectsList),
|
|
1813
|
+
isEnterpriseManaged: S.optional(S.Boolean),
|
|
1814
|
+
}),
|
|
1815
|
+
).annotate({
|
|
1816
|
+
identifier: "GetTeamMembersResponseMembersItem",
|
|
1817
|
+
}) as any as S.Schema<GetTeamMembersResponseMembersItem>;
|
|
1818
|
+
|
|
1819
|
+
export type GetTeamMembersResponseMembersList =
|
|
1820
|
+
Array<GetTeamMembersResponseMembersItem>;
|
|
1821
|
+
export const GetTeamMembersResponseMembersList = /*@__PURE__*/ S.Array(
|
|
1822
|
+
GetTeamMembersResponseMembersItem,
|
|
1823
|
+
) as any as S.Schema<GetTeamMembersResponseMembersList>;
|
|
1824
|
+
|
|
1825
|
+
export type GetTeamMembersResponseEmailInviteCodesItemAccessGroupsList =
|
|
1826
|
+
Array<string>;
|
|
1827
|
+
export const GetTeamMembersResponseEmailInviteCodesItemAccessGroupsList =
|
|
1828
|
+
/*@__PURE__*/ S.Array(
|
|
1829
|
+
S.String,
|
|
1830
|
+
) as any as S.Schema<GetTeamMembersResponseEmailInviteCodesItemAccessGroupsList>;
|
|
1831
|
+
|
|
1832
|
+
export type GetTeamMembersResponseEmailInviteCodesItemRole =
|
|
1833
|
+
| "BILLING"
|
|
1834
|
+
| "CONTRIBUTOR"
|
|
1835
|
+
| "DEVELOPER"
|
|
1836
|
+
| "MEMBER"
|
|
1837
|
+
| "OWNER"
|
|
1838
|
+
| "SECURITY"
|
|
1839
|
+
| "VIEWER"
|
|
1840
|
+
| "VIEWER_FOR_PLUS";
|
|
1841
|
+
export const GetTeamMembersResponseEmailInviteCodesItemRole = S.String;
|
|
1842
|
+
|
|
1843
|
+
export type GetTeamMembersResponseEmailInviteCodesItemTeamRolesItem =
|
|
1844
|
+
| "BILLING"
|
|
1845
|
+
| "CONTRIBUTOR"
|
|
1846
|
+
| "DEVELOPER"
|
|
1847
|
+
| "MEMBER"
|
|
1848
|
+
| "OWNER"
|
|
1849
|
+
| "SECURITY"
|
|
1850
|
+
| "VIEWER"
|
|
1851
|
+
| "VIEWER_FOR_PLUS";
|
|
1852
|
+
export const GetTeamMembersResponseEmailInviteCodesItemTeamRolesItem = S.String;
|
|
1853
|
+
|
|
1854
|
+
export type GetTeamMembersResponseEmailInviteCodesItemTeamRolesList =
|
|
1855
|
+
Array<GetTeamMembersResponseEmailInviteCodesItemTeamRolesItem>;
|
|
1856
|
+
export const GetTeamMembersResponseEmailInviteCodesItemTeamRolesList =
|
|
1857
|
+
/*@__PURE__*/ S.Array(
|
|
1858
|
+
GetTeamMembersResponseEmailInviteCodesItemTeamRolesItem,
|
|
1859
|
+
) as any as S.Schema<GetTeamMembersResponseEmailInviteCodesItemTeamRolesList>;
|
|
1860
|
+
|
|
1861
|
+
export type GetTeamMembersResponseEmailInviteCodesItemTeamPermissionsItem =
|
|
1862
|
+
| "AiGatewayApiKeyOwnedBySelf"
|
|
1863
|
+
| "AiGatewayBudgetManager"
|
|
1864
|
+
| "AiGatewayCredits"
|
|
1865
|
+
| "AiGatewaySettings"
|
|
1866
|
+
| "AiGatewayTranscriptsManager"
|
|
1867
|
+
| "AiGatewayTranscriptsViewer"
|
|
1868
|
+
| "ConnectorManager"
|
|
1869
|
+
| "CreateProject"
|
|
1870
|
+
| "EnvVariableManager"
|
|
1871
|
+
| "EnvironmentManager"
|
|
1872
|
+
| "FullProductionDeployment"
|
|
1873
|
+
| "IntegrationManager"
|
|
1874
|
+
| "OrgAdmin"
|
|
1875
|
+
| "OrgViewer"
|
|
1876
|
+
| "UsageViewer"
|
|
1877
|
+
| "V0Builder"
|
|
1878
|
+
| "V0Chatter"
|
|
1879
|
+
| "V0Viewer"
|
|
1880
|
+
| "WorkflowDecryptor";
|
|
1881
|
+
export const GetTeamMembersResponseEmailInviteCodesItemTeamPermissionsItem =
|
|
1882
|
+
S.String;
|
|
1883
|
+
|
|
1884
|
+
export type GetTeamMembersResponseEmailInviteCodesItemTeamPermissionsList =
|
|
1885
|
+
Array<GetTeamMembersResponseEmailInviteCodesItemTeamPermissionsItem>;
|
|
1886
|
+
export const GetTeamMembersResponseEmailInviteCodesItemTeamPermissionsList =
|
|
1887
|
+
/*@__PURE__*/ S.Array(
|
|
1888
|
+
GetTeamMembersResponseEmailInviteCodesItemTeamPermissionsItem,
|
|
1889
|
+
) as any as S.Schema<GetTeamMembersResponseEmailInviteCodesItemTeamPermissionsList>;
|
|
1890
|
+
|
|
1891
|
+
export type GetTeamMembersResponseEmailInviteCodesItemProjectsValue =
|
|
1892
|
+
| "ADMIN"
|
|
1893
|
+
| "PROJECT_DEVELOPER"
|
|
1894
|
+
| "PROJECT_GUEST"
|
|
1895
|
+
| "PROJECT_VIEWER";
|
|
1896
|
+
export const GetTeamMembersResponseEmailInviteCodesItemProjectsValue = S.String;
|
|
1897
|
+
|
|
1898
|
+
export type GetTeamMembersResponseEmailInviteCodesItemProjectsMap = {
|
|
1899
|
+
[key: string]:
|
|
1900
|
+
| GetTeamMembersResponseEmailInviteCodesItemProjectsValue
|
|
1901
|
+
| undefined;
|
|
1902
|
+
};
|
|
1903
|
+
export const GetTeamMembersResponseEmailInviteCodesItemProjectsMap =
|
|
1904
|
+
/*@__PURE__*/ S.Record(
|
|
1905
|
+
S.String,
|
|
1906
|
+
GetTeamMembersResponseEmailInviteCodesItemProjectsValue,
|
|
1907
|
+
) as any as S.Schema<GetTeamMembersResponseEmailInviteCodesItemProjectsMap>;
|
|
1908
|
+
|
|
1909
|
+
export type GetTeamMembersResponseEmailInviteCodesItemEntitlementsList =
|
|
1910
|
+
Array<string>;
|
|
1911
|
+
export const GetTeamMembersResponseEmailInviteCodesItemEntitlementsList =
|
|
1912
|
+
/*@__PURE__*/ S.Array(
|
|
1913
|
+
S.String,
|
|
1914
|
+
) as any as S.Schema<GetTeamMembersResponseEmailInviteCodesItemEntitlementsList>;
|
|
1915
|
+
|
|
1916
|
+
export interface GetTeamMembersResponseEmailInviteCodesItem {
|
|
1917
|
+
accessGroups?: GetTeamMembersResponseEmailInviteCodesItemAccessGroupsList;
|
|
1918
|
+
id: string;
|
|
1919
|
+
email?: string;
|
|
1920
|
+
role?: GetTeamMembersResponseEmailInviteCodesItemRole;
|
|
1921
|
+
teamRoles?: GetTeamMembersResponseEmailInviteCodesItemTeamRolesList;
|
|
1922
|
+
teamPermissions?: GetTeamMembersResponseEmailInviteCodesItemTeamPermissionsList;
|
|
1923
|
+
isDSyncUser: boolean;
|
|
1924
|
+
createdAt?: number;
|
|
1925
|
+
expired?: boolean;
|
|
1926
|
+
projects?: GetTeamMembersResponseEmailInviteCodesItemProjectsMap;
|
|
1927
|
+
entitlements?: GetTeamMembersResponseEmailInviteCodesItemEntitlementsList;
|
|
1928
|
+
}
|
|
1929
|
+
export const GetTeamMembersResponseEmailInviteCodesItem =
|
|
1930
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1931
|
+
S.Struct({
|
|
1932
|
+
accessGroups: S.optional(
|
|
1933
|
+
GetTeamMembersResponseEmailInviteCodesItemAccessGroupsList,
|
|
1934
|
+
),
|
|
1935
|
+
id: S.String,
|
|
1936
|
+
email: S.optional(S.String),
|
|
1937
|
+
role: S.optional(GetTeamMembersResponseEmailInviteCodesItemRole),
|
|
1938
|
+
teamRoles: S.optional(
|
|
1939
|
+
GetTeamMembersResponseEmailInviteCodesItemTeamRolesList,
|
|
1940
|
+
),
|
|
1941
|
+
teamPermissions: S.optional(
|
|
1942
|
+
GetTeamMembersResponseEmailInviteCodesItemTeamPermissionsList,
|
|
1943
|
+
),
|
|
1944
|
+
isDSyncUser: S.Boolean,
|
|
1945
|
+
createdAt: S.optional(S.Number),
|
|
1946
|
+
expired: S.optional(S.Boolean),
|
|
1947
|
+
projects: S.optional(
|
|
1948
|
+
GetTeamMembersResponseEmailInviteCodesItemProjectsMap,
|
|
1949
|
+
),
|
|
1950
|
+
entitlements: S.optional(
|
|
1951
|
+
GetTeamMembersResponseEmailInviteCodesItemEntitlementsList,
|
|
1952
|
+
),
|
|
1953
|
+
}),
|
|
1954
|
+
).annotate({
|
|
1955
|
+
identifier: "GetTeamMembersResponseEmailInviteCodesItem",
|
|
1956
|
+
}) as any as S.Schema<GetTeamMembersResponseEmailInviteCodesItem>;
|
|
1957
|
+
|
|
1958
|
+
export type GetTeamMembersResponseEmailInviteCodesList =
|
|
1959
|
+
Array<GetTeamMembersResponseEmailInviteCodesItem>;
|
|
1960
|
+
export const GetTeamMembersResponseEmailInviteCodesList = /*@__PURE__*/ S.Array(
|
|
1961
|
+
GetTeamMembersResponseEmailInviteCodesItem,
|
|
1962
|
+
) as any as S.Schema<GetTeamMembersResponseEmailInviteCodesList>;
|
|
1963
|
+
|
|
1964
|
+
export interface GetTeamMembersResponsePagination {
|
|
1965
|
+
hasNext: boolean;
|
|
1966
|
+
/** Amount of items in the current page. */
|
|
1967
|
+
count: number;
|
|
1968
|
+
/** Timestamp that must be used to request the next page. */
|
|
1969
|
+
next: number | null;
|
|
1970
|
+
/** Timestamp that must be used to request the previous page. */
|
|
1971
|
+
prev: number | null;
|
|
1972
|
+
}
|
|
1973
|
+
export const GetTeamMembersResponsePagination = /*@__PURE__*/ S.suspend(() =>
|
|
1974
|
+
S.Struct({
|
|
1975
|
+
hasNext: S.Boolean,
|
|
1976
|
+
count: S.Number,
|
|
1977
|
+
next: S.NullOr(S.Number),
|
|
1978
|
+
prev: S.NullOr(S.Number),
|
|
1979
|
+
}),
|
|
1980
|
+
).annotate({
|
|
1981
|
+
identifier: "GetTeamMembersResponsePagination",
|
|
1982
|
+
}) as any as S.Schema<GetTeamMembersResponsePagination>;
|
|
1983
|
+
|
|
1984
|
+
export interface GetTeamMembersResponse {
|
|
1985
|
+
members: GetTeamMembersResponseMembersList;
|
|
1986
|
+
emailInviteCodes?: GetTeamMembersResponseEmailInviteCodesList;
|
|
1987
|
+
pagination: GetTeamMembersResponsePagination;
|
|
1988
|
+
}
|
|
1989
|
+
export const GetTeamMembersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1990
|
+
S.Struct({
|
|
1991
|
+
members: GetTeamMembersResponseMembersList,
|
|
1992
|
+
emailInviteCodes: S.optional(GetTeamMembersResponseEmailInviteCodesList),
|
|
1993
|
+
pagination: GetTeamMembersResponsePagination,
|
|
1994
|
+
}),
|
|
1995
|
+
).annotate({
|
|
1996
|
+
identifier: "GetTeamMembersResponse",
|
|
1997
|
+
}) as any as S.Schema<GetTeamMembersResponse>;
|
|
1998
|
+
|
|
1999
|
+
export interface GetTeamsRequest {
|
|
2000
|
+
/** Maximum number of Teams which may be returned. */
|
|
2001
|
+
limit?: number;
|
|
2002
|
+
/** Timestamp (in milliseconds) to only include Teams created since then. */
|
|
2003
|
+
since?: number;
|
|
2004
|
+
/** Timestamp (in milliseconds) to only include Teams created until then. */
|
|
2005
|
+
until?: number;
|
|
2006
|
+
}
|
|
2007
|
+
export const GetTeamsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2008
|
+
S.Struct({
|
|
2009
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2010
|
+
since: S.optional(S.Number.pipe(T.Query())),
|
|
2011
|
+
until: S.optional(S.Number.pipe(T.Query())),
|
|
2012
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/teams", code: 200 })),
|
|
2013
|
+
).annotate({
|
|
2014
|
+
identifier: "GetTeamsRequest",
|
|
2015
|
+
}) as any as S.Schema<GetTeamsRequest>;
|
|
2016
|
+
|
|
2017
|
+
export type TeamLimitedLimitedByItem = "invalidated" | "mfa" | "scope";
|
|
2018
|
+
export const TeamLimitedLimitedByItem = S.String;
|
|
2019
|
+
|
|
2020
|
+
export type TeamLimitedLimitedByList = Array<TeamLimitedLimitedByItem>;
|
|
2021
|
+
export const TeamLimitedLimitedByList = /*@__PURE__*/ S.Array(
|
|
2022
|
+
TeamLimitedLimitedByItem,
|
|
2023
|
+
) as any as S.Schema<TeamLimitedLimitedByList>;
|
|
2024
|
+
|
|
2025
|
+
/** Controls whether directory sync events are processed. - 'SETUP': Directory connected but role mappings not yet configured. Events are acknowledged but not processed. - 'ACTIVE': Fully configured. Events are processed normally. - undefined: Legacy directory (pre-feature), treat as 'ACTIVE' for backwards compatibility. */
|
|
2026
|
+
export type TeamLimitedSamlConnectionSyncState = "ACTIVE" | "SETUP";
|
|
2027
|
+
export const TeamLimitedSamlConnectionSyncState = S.String;
|
|
2028
|
+
|
|
2029
|
+
/** Information for the SAML Single Sign-On configuration. */
|
|
2030
|
+
export interface TeamLimitedSamlConnection {
|
|
2031
|
+
/** The Identity Provider "type", for example Okta. */
|
|
2032
|
+
type: string;
|
|
2033
|
+
/** Current state of the connection. */
|
|
2034
|
+
state: string;
|
|
2035
|
+
/** Timestamp (in milliseconds) of when the configuration was connected. */
|
|
2036
|
+
connectedAt: number;
|
|
2037
|
+
/** Timestamp (in milliseconds) of when the last webhook event was received from WorkOS. */
|
|
2038
|
+
lastReceivedWebhookEvent?: number;
|
|
2039
|
+
/** Timestamp (in milliseconds) of when the last directory sync was performed. */
|
|
2040
|
+
lastSyncedAt?: number;
|
|
2041
|
+
/** Controls whether directory sync events are processed. - 'SETUP': Directory connected but role mappings not yet configured. Events are acknowledged but not processed. - 'ACTIVE': Fully configured. Events are processed normally. - undefined: Legacy directory (pre-feature), treat as 'ACTIVE' for backwards compatibility. */
|
|
2042
|
+
syncState?: TeamLimitedSamlConnectionSyncState;
|
|
2043
|
+
status: string;
|
|
2044
|
+
}
|
|
2045
|
+
export const TeamLimitedSamlConnection = /*@__PURE__*/ S.suspend(() =>
|
|
2046
|
+
S.Struct({
|
|
2047
|
+
type: S.String,
|
|
2048
|
+
state: S.String,
|
|
2049
|
+
connectedAt: S.Number,
|
|
2050
|
+
lastReceivedWebhookEvent: S.optional(S.Number),
|
|
2051
|
+
lastSyncedAt: S.optional(S.Number),
|
|
2052
|
+
syncState: S.optional(TeamLimitedSamlConnectionSyncState),
|
|
2053
|
+
status: S.String,
|
|
2054
|
+
}),
|
|
2055
|
+
).annotate({
|
|
2056
|
+
identifier: "TeamLimitedSamlConnection",
|
|
2057
|
+
}) as any as S.Schema<TeamLimitedSamlConnection>;
|
|
2058
|
+
|
|
2059
|
+
/** Controls whether directory sync events are processed. - 'SETUP': Directory connected but role mappings not yet configured. Events are acknowledged but not processed. - 'ACTIVE': Fully configured. Events are processed normally. - undefined: Legacy directory (pre-feature), treat as 'ACTIVE' for backwards compatibility. */
|
|
2060
|
+
export type TeamLimitedSamlDirectorySyncState = "ACTIVE" | "SETUP";
|
|
2061
|
+
export const TeamLimitedSamlDirectorySyncState = S.String;
|
|
2062
|
+
|
|
2063
|
+
/** Information for the Directory Sync configuration. */
|
|
2064
|
+
export interface TeamLimitedSamlDirectory {
|
|
2065
|
+
/** The Identity Provider "type", for example Okta. */
|
|
2066
|
+
type: string;
|
|
2067
|
+
/** Current state of the connection. */
|
|
2068
|
+
state: string;
|
|
2069
|
+
/** Timestamp (in milliseconds) of when the configuration was connected. */
|
|
2070
|
+
connectedAt: number;
|
|
2071
|
+
/** Timestamp (in milliseconds) of when the last webhook event was received from WorkOS. */
|
|
2072
|
+
lastReceivedWebhookEvent?: number;
|
|
2073
|
+
/** Timestamp (in milliseconds) of when the last directory sync was performed. */
|
|
2074
|
+
lastSyncedAt?: number;
|
|
2075
|
+
/** Controls whether directory sync events are processed. - 'SETUP': Directory connected but role mappings not yet configured. Events are acknowledged but not processed. - 'ACTIVE': Fully configured. Events are processed normally. - undefined: Legacy directory (pre-feature), treat as 'ACTIVE' for backwards compatibility. */
|
|
2076
|
+
syncState?: TeamLimitedSamlDirectorySyncState;
|
|
2077
|
+
}
|
|
2078
|
+
export const TeamLimitedSamlDirectory = /*@__PURE__*/ S.suspend(() =>
|
|
2079
|
+
S.Struct({
|
|
2080
|
+
type: S.String,
|
|
2081
|
+
state: S.String,
|
|
2082
|
+
connectedAt: S.Number,
|
|
2083
|
+
lastReceivedWebhookEvent: S.optional(S.Number),
|
|
2084
|
+
lastSyncedAt: S.optional(S.Number),
|
|
2085
|
+
syncState: S.optional(TeamLimitedSamlDirectorySyncState),
|
|
2086
|
+
}),
|
|
2087
|
+
).annotate({
|
|
2088
|
+
identifier: "TeamLimitedSamlDirectory",
|
|
2089
|
+
}) as any as S.Schema<TeamLimitedSamlDirectory>;
|
|
2090
|
+
|
|
2091
|
+
/** When "Single Sign-On (SAML)" is configured, this object contains information that allows the client-side to identify whether or not this Team has SAML enforced. */
|
|
2092
|
+
export interface TeamLimitedSaml {
|
|
2093
|
+
/** Information for the SAML Single Sign-On configuration. */
|
|
2094
|
+
connection?: TeamLimitedSamlConnection;
|
|
2095
|
+
/** Information for the Directory Sync configuration. */
|
|
2096
|
+
directory?: TeamLimitedSamlDirectory;
|
|
2097
|
+
/** When `true`, interactions with the Team **must** be done with an authentication token that has been authenticated with the Team's SAML Single Sign-On provider. */
|
|
2098
|
+
enforced: boolean;
|
|
2099
|
+
}
|
|
2100
|
+
export const TeamLimitedSaml = /*@__PURE__*/ S.suspend(() =>
|
|
2101
|
+
S.Struct({
|
|
2102
|
+
connection: S.optional(TeamLimitedSamlConnection),
|
|
2103
|
+
directory: S.optional(TeamLimitedSamlDirectory),
|
|
2104
|
+
enforced: S.Boolean,
|
|
2105
|
+
}),
|
|
2106
|
+
).annotate({
|
|
2107
|
+
identifier: "TeamLimitedSaml",
|
|
2108
|
+
}) as any as S.Schema<TeamLimitedSaml>;
|
|
2109
|
+
|
|
2110
|
+
export type TeamLimitedMembershipEntitlementsItem =
|
|
2111
|
+
TeamMembershipEntitlementsItem;
|
|
2112
|
+
export const TeamLimitedMembershipEntitlementsItem =
|
|
2113
|
+
TeamMembershipEntitlementsItem;
|
|
2114
|
+
|
|
2115
|
+
export type TeamLimitedMembershipEntitlementsList =
|
|
2116
|
+
Array<TeamMembershipEntitlementsItem>;
|
|
2117
|
+
export const TeamLimitedMembershipEntitlementsList = /*@__PURE__*/ S.Array(
|
|
2118
|
+
TeamMembershipEntitlementsItem,
|
|
2119
|
+
) as any as S.Schema<TeamLimitedMembershipEntitlementsList>;
|
|
2120
|
+
|
|
2121
|
+
export type TeamLimitedMembershipRole =
|
|
2122
|
+
| "BILLING"
|
|
2123
|
+
| "CONTRIBUTOR"
|
|
2124
|
+
| "DEVELOPER"
|
|
2125
|
+
| "MEMBER"
|
|
2126
|
+
| "OWNER"
|
|
2127
|
+
| "SECURITY"
|
|
2128
|
+
| "VIEWER"
|
|
2129
|
+
| "VIEWER_FOR_PLUS";
|
|
2130
|
+
export const TeamLimitedMembershipRole = S.String;
|
|
2131
|
+
|
|
2132
|
+
export type TeamLimitedMembershipTeamRolesItem =
|
|
2133
|
+
| "BILLING"
|
|
2134
|
+
| "CONTRIBUTOR"
|
|
2135
|
+
| "DEVELOPER"
|
|
2136
|
+
| "MEMBER"
|
|
2137
|
+
| "OWNER"
|
|
2138
|
+
| "SECURITY"
|
|
2139
|
+
| "VIEWER"
|
|
2140
|
+
| "VIEWER_FOR_PLUS";
|
|
2141
|
+
export const TeamLimitedMembershipTeamRolesItem = S.String;
|
|
2142
|
+
|
|
2143
|
+
export type TeamLimitedMembershipTeamRolesList =
|
|
2144
|
+
Array<TeamLimitedMembershipTeamRolesItem>;
|
|
2145
|
+
export const TeamLimitedMembershipTeamRolesList = /*@__PURE__*/ S.Array(
|
|
2146
|
+
TeamLimitedMembershipTeamRolesItem,
|
|
2147
|
+
) as any as S.Schema<TeamLimitedMembershipTeamRolesList>;
|
|
2148
|
+
|
|
2149
|
+
export type TeamLimitedMembershipTeamPermissionsItem =
|
|
2150
|
+
| "AiGatewayApiKeyOwnedBySelf"
|
|
2151
|
+
| "AiGatewayBudgetManager"
|
|
2152
|
+
| "AiGatewayCredits"
|
|
2153
|
+
| "AiGatewaySettings"
|
|
2154
|
+
| "AiGatewayTranscriptsManager"
|
|
2155
|
+
| "AiGatewayTranscriptsViewer"
|
|
2156
|
+
| "ConnectorManager"
|
|
2157
|
+
| "CreateProject"
|
|
2158
|
+
| "EnvVariableManager"
|
|
2159
|
+
| "EnvironmentManager"
|
|
2160
|
+
| "FullProductionDeployment"
|
|
2161
|
+
| "IntegrationManager"
|
|
2162
|
+
| "OrgAdmin"
|
|
2163
|
+
| "OrgViewer"
|
|
2164
|
+
| "UsageViewer"
|
|
2165
|
+
| "V0Builder"
|
|
2166
|
+
| "V0Chatter"
|
|
2167
|
+
| "V0Viewer"
|
|
2168
|
+
| "WorkflowDecryptor";
|
|
2169
|
+
export const TeamLimitedMembershipTeamPermissionsItem = S.String;
|
|
2170
|
+
|
|
2171
|
+
export type TeamLimitedMembershipTeamPermissionsList =
|
|
2172
|
+
Array<TeamLimitedMembershipTeamPermissionsItem>;
|
|
2173
|
+
export const TeamLimitedMembershipTeamPermissionsList = /*@__PURE__*/ S.Array(
|
|
2174
|
+
TeamLimitedMembershipTeamPermissionsItem,
|
|
2175
|
+
) as any as S.Schema<TeamLimitedMembershipTeamPermissionsList>;
|
|
2176
|
+
|
|
2177
|
+
export type TeamLimitedMembershipJoinedFromOrigin =
|
|
2178
|
+
| "account-update"
|
|
2179
|
+
| "bitbucket"
|
|
2180
|
+
| "dsync"
|
|
2181
|
+
| "feedback"
|
|
2182
|
+
| "github"
|
|
2183
|
+
| "gitlab"
|
|
2184
|
+
| "import"
|
|
2185
|
+
| "link"
|
|
2186
|
+
| "mail"
|
|
2187
|
+
| "nsnb-auto-approve"
|
|
2188
|
+
| "nsnb-hobby-upgrade"
|
|
2189
|
+
| "nsnb-invite"
|
|
2190
|
+
| "nsnb-redeploy"
|
|
2191
|
+
| "nsnb-redeploy-attribution-card"
|
|
2192
|
+
| "nsnb-request-access"
|
|
2193
|
+
| "nsnb-viewer-upgrade"
|
|
2194
|
+
| "organization-teams"
|
|
2195
|
+
| "saml"
|
|
2196
|
+
| "teams";
|
|
2197
|
+
export const TeamLimitedMembershipJoinedFromOrigin = S.String;
|
|
2198
|
+
|
|
2199
|
+
export type TeamLimitedMembershipJoinedFromGitUserId = string | number;
|
|
2200
|
+
export const TeamLimitedMembershipJoinedFromGitUserId =
|
|
2201
|
+
S.Unknown as any as S.Schema<TeamLimitedMembershipJoinedFromGitUserId>;
|
|
2202
|
+
|
|
2203
|
+
export interface TeamLimitedMembershipJoinedFrom {
|
|
2204
|
+
origin: TeamLimitedMembershipJoinedFromOrigin;
|
|
2205
|
+
commitId?: string;
|
|
2206
|
+
repoId?: string;
|
|
2207
|
+
repoPath?: string;
|
|
2208
|
+
gitUserId?: TeamLimitedMembershipJoinedFromGitUserId;
|
|
2209
|
+
gitUserLogin?: string;
|
|
2210
|
+
ssoUserId?: string;
|
|
2211
|
+
ssoConnectedAt?: number;
|
|
2212
|
+
idpUserId?: string;
|
|
2213
|
+
dsyncUserId?: string;
|
|
2214
|
+
dsyncConnectedAt?: number;
|
|
2215
|
+
}
|
|
2216
|
+
export const TeamLimitedMembershipJoinedFrom = /*@__PURE__*/ S.suspend(() =>
|
|
2217
|
+
S.Struct({
|
|
2218
|
+
origin: TeamLimitedMembershipJoinedFromOrigin,
|
|
2219
|
+
commitId: S.optional(S.String),
|
|
2220
|
+
repoId: S.optional(S.String),
|
|
2221
|
+
repoPath: S.optional(S.String),
|
|
2222
|
+
gitUserId: S.optional(TeamLimitedMembershipJoinedFromGitUserId),
|
|
2223
|
+
gitUserLogin: S.optional(S.String),
|
|
2224
|
+
ssoUserId: S.optional(S.String),
|
|
2225
|
+
ssoConnectedAt: S.optional(S.Number),
|
|
2226
|
+
idpUserId: S.optional(S.String),
|
|
2227
|
+
dsyncUserId: S.optional(S.String),
|
|
2228
|
+
dsyncConnectedAt: S.optional(S.Number),
|
|
2229
|
+
}),
|
|
2230
|
+
).annotate({
|
|
2231
|
+
identifier: "TeamLimitedMembershipJoinedFrom",
|
|
2232
|
+
}) as any as S.Schema<TeamLimitedMembershipJoinedFrom>;
|
|
2233
|
+
|
|
2234
|
+
/** The membership of the authenticated User in relation to the Team. */
|
|
2235
|
+
export interface TeamLimitedMembership {
|
|
2236
|
+
uid?: string;
|
|
2237
|
+
entitlements?: TeamLimitedMembershipEntitlementsList;
|
|
2238
|
+
teamId?: string;
|
|
2239
|
+
confirmed: boolean;
|
|
2240
|
+
accessRequestedAt?: number;
|
|
2241
|
+
role: TeamLimitedMembershipRole;
|
|
2242
|
+
teamRoles?: TeamLimitedMembershipTeamRolesList;
|
|
2243
|
+
teamPermissions?: TeamLimitedMembershipTeamPermissionsList;
|
|
2244
|
+
createdAt: number;
|
|
2245
|
+
created: number;
|
|
2246
|
+
joinedFrom?: TeamLimitedMembershipJoinedFrom;
|
|
2247
|
+
}
|
|
2248
|
+
export const TeamLimitedMembership = /*@__PURE__*/ S.suspend(() =>
|
|
2249
|
+
S.Struct({
|
|
2250
|
+
uid: S.optional(S.String),
|
|
2251
|
+
entitlements: S.optional(TeamLimitedMembershipEntitlementsList),
|
|
2252
|
+
teamId: S.optional(S.String),
|
|
2253
|
+
confirmed: S.Boolean,
|
|
2254
|
+
accessRequestedAt: S.optional(S.Number),
|
|
2255
|
+
role: TeamLimitedMembershipRole,
|
|
2256
|
+
teamRoles: S.optional(TeamLimitedMembershipTeamRolesList),
|
|
2257
|
+
teamPermissions: S.optional(TeamLimitedMembershipTeamPermissionsList),
|
|
2258
|
+
createdAt: S.Number,
|
|
2259
|
+
created: S.Number,
|
|
2260
|
+
joinedFrom: S.optional(TeamLimitedMembershipJoinedFrom),
|
|
2261
|
+
}),
|
|
2262
|
+
).annotate({
|
|
2263
|
+
identifier: "TeamLimitedMembership",
|
|
2264
|
+
}) as any as S.Schema<TeamLimitedMembership>;
|
|
2265
|
+
|
|
2266
|
+
/** A limited form of data representing a Team, due to the authentication token missing privileges to read the full Team data. */
|
|
2267
|
+
export interface TeamLimited {
|
|
2268
|
+
/** Property indicating that this Team data contains only limited information, due to the authentication token missing privileges to read the full Team data or due to team having MFA enforced and the user not having MFA enabled. Re-login with the Team's configured SAML Single Sign-On provider in order to upgrade the authentication token with the necessary privileges. */
|
|
2269
|
+
limited: boolean;
|
|
2270
|
+
limitedBy: TeamLimitedLimitedByList;
|
|
2271
|
+
/** When "Single Sign-On (SAML)" is configured, this object contains information that allows the client-side to identify whether or not this Team has SAML enforced. */
|
|
2272
|
+
saml?: TeamLimitedSaml;
|
|
2273
|
+
/** The Team's unique identifier. */
|
|
2274
|
+
id: string;
|
|
2275
|
+
/** The Team's slug, which is unique across the Vercel platform. */
|
|
2276
|
+
slug: string;
|
|
2277
|
+
/** Name associated with the Team account, or `null` if none has been provided. */
|
|
2278
|
+
name: string | null;
|
|
2279
|
+
/** The ID of the file used as avatar for this Team. */
|
|
2280
|
+
avatar: string | null;
|
|
2281
|
+
/** The membership of the authenticated User in relation to the Team. */
|
|
2282
|
+
membership?: TeamLimitedMembership;
|
|
2283
|
+
/** UNIX timestamp (in milliseconds) when the Team was created. */
|
|
2284
|
+
createdAt: number;
|
|
2285
|
+
/** The organizationId for teams that belong to an organization (set on both the organization's root team and its child teams). */
|
|
2286
|
+
parentId?: string;
|
|
2287
|
+
/** Best-effort ID of the organization’s root billing team. When present, compare `orgRootTeamId === id` to identify the root team. It may be omitted even when `parentId` is set if organization resolution fails or the referenced organization is missing. Always omitted for non-organization teams. */
|
|
2288
|
+
orgRootTeamId?: string;
|
|
2289
|
+
}
|
|
2290
|
+
export const TeamLimited = /*@__PURE__*/ S.suspend(() =>
|
|
2291
|
+
S.Struct({
|
|
2292
|
+
limited: S.Boolean,
|
|
2293
|
+
limitedBy: TeamLimitedLimitedByList,
|
|
2294
|
+
saml: S.optional(TeamLimitedSaml),
|
|
2295
|
+
id: S.String,
|
|
2296
|
+
slug: S.String,
|
|
2297
|
+
name: S.NullOr(S.String),
|
|
2298
|
+
avatar: S.NullOr(S.String),
|
|
2299
|
+
membership: S.optional(TeamLimitedMembership),
|
|
2300
|
+
createdAt: S.Number,
|
|
2301
|
+
parentId: S.optional(S.String),
|
|
2302
|
+
orgRootTeamId: S.optional(S.String),
|
|
2303
|
+
}),
|
|
2304
|
+
).annotate({ identifier: "TeamLimited" }) as any as S.Schema<TeamLimited>;
|
|
2305
|
+
|
|
2306
|
+
export type GetTeamsResponseTeamsItem = Team | TeamLimited;
|
|
2307
|
+
export const GetTeamsResponseTeamsItem =
|
|
2308
|
+
S.Unknown as any as S.Schema<GetTeamsResponseTeamsItem>;
|
|
2309
|
+
|
|
2310
|
+
export type GetTeamsResponseTeamsList = Array<GetTeamsResponseTeamsItem>;
|
|
2311
|
+
export const GetTeamsResponseTeamsList = /*@__PURE__*/ S.Array(
|
|
2312
|
+
GetTeamsResponseTeamsItem,
|
|
2313
|
+
) as any as S.Schema<GetTeamsResponseTeamsList>;
|
|
2314
|
+
|
|
2315
|
+
/** This object contains information related to the pagination of the current request, including the necessary parameters to get the next or previous page of data. */
|
|
2316
|
+
export interface Pagination {
|
|
2317
|
+
/** Amount of items in the current page. */
|
|
2318
|
+
count: number;
|
|
2319
|
+
/** Timestamp that must be used to request the next page. */
|
|
2320
|
+
next: number | null;
|
|
2321
|
+
/** Timestamp that must be used to request the previous page. */
|
|
2322
|
+
prev: number | null;
|
|
2323
|
+
}
|
|
2324
|
+
export const Pagination = /*@__PURE__*/ S.suspend(() =>
|
|
2325
|
+
S.Struct({
|
|
2326
|
+
count: S.Number,
|
|
2327
|
+
next: S.NullOr(S.Number),
|
|
2328
|
+
prev: S.NullOr(S.Number),
|
|
2329
|
+
}),
|
|
2330
|
+
).annotate({ identifier: "Pagination" }) as any as S.Schema<Pagination>;
|
|
2331
|
+
|
|
2332
|
+
export interface GetTeamsResponse {
|
|
2333
|
+
teams: GetTeamsResponseTeamsList;
|
|
2334
|
+
pagination: Pagination;
|
|
2335
|
+
}
|
|
2336
|
+
export const GetTeamsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2337
|
+
S.Struct({
|
|
2338
|
+
teams: GetTeamsResponseTeamsList,
|
|
2339
|
+
pagination: Pagination,
|
|
2340
|
+
}),
|
|
2341
|
+
).annotate({
|
|
2342
|
+
identifier: "GetTeamsResponse",
|
|
2343
|
+
}) as any as S.Schema<GetTeamsResponse>;
|
|
2344
|
+
|
|
2345
|
+
/** The role of the user to invite */
|
|
2346
|
+
export type InviteUserToTeamRequestBodyItemRole =
|
|
2347
|
+
| "OWNER"
|
|
2348
|
+
| "MEMBER"
|
|
2349
|
+
| "DEVELOPER"
|
|
2350
|
+
| "SECURITY"
|
|
2351
|
+
| "BILLING"
|
|
2352
|
+
| "VIEWER"
|
|
2353
|
+
| "VIEWER_FOR_PLUS"
|
|
2354
|
+
| "CONTRIBUTOR";
|
|
2355
|
+
export const InviteUserToTeamRequestBodyItemRole = S.String;
|
|
2356
|
+
|
|
2357
|
+
/** Sets the project roles for the invited user */
|
|
2358
|
+
export type InviteUserToTeamRequestBodyItemProjectsItemRole =
|
|
2359
|
+
| "ADMIN"
|
|
2360
|
+
| "PROJECT_VIEWER"
|
|
2361
|
+
| "PROJECT_DEVELOPER"
|
|
2362
|
+
| "PROJECT_GUEST";
|
|
2363
|
+
export const InviteUserToTeamRequestBodyItemProjectsItemRole = S.String;
|
|
2364
|
+
|
|
2365
|
+
export interface InviteUserToTeamRequestBodyItemProjectsItem {
|
|
2366
|
+
/** The ID of the project. */
|
|
2367
|
+
projectId: string;
|
|
2368
|
+
/** Sets the project roles for the invited user */
|
|
2369
|
+
role: InviteUserToTeamRequestBodyItemProjectsItemRole | (string & {});
|
|
2370
|
+
}
|
|
2371
|
+
export const InviteUserToTeamRequestBodyItemProjectsItem =
|
|
2372
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2373
|
+
S.Struct({
|
|
2374
|
+
projectId: S.String,
|
|
2375
|
+
role: InviteUserToTeamRequestBodyItemProjectsItemRole,
|
|
2376
|
+
}),
|
|
2377
|
+
).annotate({
|
|
2378
|
+
identifier: "InviteUserToTeamRequestBodyItemProjectsItem",
|
|
2379
|
+
}) as any as S.Schema<InviteUserToTeamRequestBodyItemProjectsItem>;
|
|
2380
|
+
|
|
2381
|
+
export type InviteUserToTeamRequestBodyItemProjectsList =
|
|
2382
|
+
Array<InviteUserToTeamRequestBodyItemProjectsItem>;
|
|
2383
|
+
export const InviteUserToTeamRequestBodyItemProjectsList =
|
|
2384
|
+
/*@__PURE__*/ S.Array(
|
|
2385
|
+
InviteUserToTeamRequestBodyItemProjectsItem,
|
|
2386
|
+
) as any as S.Schema<InviteUserToTeamRequestBodyItemProjectsList>;
|
|
2387
|
+
|
|
2388
|
+
export interface InviteUserToTeamRequestBodyItem {
|
|
2389
|
+
/** The email address of the user to invite */
|
|
2390
|
+
email: string;
|
|
2391
|
+
/** The role of the user to invite */
|
|
2392
|
+
role?: InviteUserToTeamRequestBodyItemRole | (string & {});
|
|
2393
|
+
projects?: InviteUserToTeamRequestBodyItemProjectsList;
|
|
2394
|
+
}
|
|
2395
|
+
export const InviteUserToTeamRequestBodyItem = /*@__PURE__*/ S.suspend(() =>
|
|
2396
|
+
S.Struct({
|
|
2397
|
+
email: S.String,
|
|
2398
|
+
role: S.optional(InviteUserToTeamRequestBodyItemRole),
|
|
2399
|
+
projects: S.optional(InviteUserToTeamRequestBodyItemProjectsList),
|
|
2400
|
+
}),
|
|
2401
|
+
).annotate({
|
|
2402
|
+
identifier: "InviteUserToTeamRequestBodyItem",
|
|
2403
|
+
}) as any as S.Schema<InviteUserToTeamRequestBodyItem>;
|
|
2404
|
+
|
|
2405
|
+
export type InviteUserToTeamRequestBodyList =
|
|
2406
|
+
Array<InviteUserToTeamRequestBodyItem>;
|
|
2407
|
+
export const InviteUserToTeamRequestBodyList = /*@__PURE__*/ S.Array(
|
|
2408
|
+
InviteUserToTeamRequestBodyItem,
|
|
2409
|
+
) as any as S.Schema<InviteUserToTeamRequestBodyList>;
|
|
2410
|
+
|
|
2411
|
+
export interface InviteUserToTeamRequest {
|
|
2412
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
2413
|
+
teamId: string;
|
|
2414
|
+
/** The Team slug to perform the request on behalf of. */
|
|
2415
|
+
slug?: string;
|
|
2416
|
+
body?: InviteUserToTeamRequestBodyList;
|
|
2417
|
+
}
|
|
2418
|
+
export const InviteUserToTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2419
|
+
S.Struct({
|
|
2420
|
+
teamId: S.String.pipe(T.Label()),
|
|
2421
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
2422
|
+
body: S.optional(InviteUserToTeamRequestBodyList.pipe(T.HttpBody())),
|
|
2423
|
+
}).pipe(
|
|
2424
|
+
T.Http({ method: "POST", uri: "/v2/teams/{teamId}/members", code: 200 }),
|
|
2425
|
+
),
|
|
2426
|
+
).annotate({
|
|
2427
|
+
identifier: "InviteUserToTeamRequest",
|
|
2428
|
+
}) as any as S.Schema<InviteUserToTeamRequest>;
|
|
2429
|
+
|
|
2430
|
+
/** The role used for the invitation */
|
|
2431
|
+
export type InvitedTeamMemberRole =
|
|
2432
|
+
| "BILLING"
|
|
2433
|
+
| "CONTRIBUTOR"
|
|
2434
|
+
| "DEVELOPER"
|
|
2435
|
+
| "MEMBER"
|
|
2436
|
+
| "OWNER"
|
|
2437
|
+
| "SECURITY"
|
|
2438
|
+
| "VIEWER"
|
|
2439
|
+
| "VIEWER_FOR_PLUS";
|
|
2440
|
+
export const InvitedTeamMemberRole = S.String;
|
|
2441
|
+
|
|
2442
|
+
/** The team roles of the user */
|
|
2443
|
+
export type InvitedTeamMemberTeamRolesItem =
|
|
2444
|
+
| "BILLING"
|
|
2445
|
+
| "CONTRIBUTOR"
|
|
2446
|
+
| "DEVELOPER"
|
|
2447
|
+
| "MEMBER"
|
|
2448
|
+
| "OWNER"
|
|
2449
|
+
| "SECURITY"
|
|
2450
|
+
| "VIEWER"
|
|
2451
|
+
| "VIEWER_FOR_PLUS";
|
|
2452
|
+
export const InvitedTeamMemberTeamRolesItem = S.String;
|
|
2453
|
+
|
|
2454
|
+
/** The team roles of the user */
|
|
2455
|
+
export type InvitedTeamMemberTeamRolesList =
|
|
2456
|
+
Array<InvitedTeamMemberTeamRolesItem>;
|
|
2457
|
+
export const InvitedTeamMemberTeamRolesList = /*@__PURE__*/ S.Array(
|
|
2458
|
+
InvitedTeamMemberTeamRolesItem,
|
|
2459
|
+
) as any as S.Schema<InvitedTeamMemberTeamRolesList>;
|
|
2460
|
+
|
|
2461
|
+
/** The team permissions of the user */
|
|
2462
|
+
export type InvitedTeamMemberTeamPermissionsItem =
|
|
2463
|
+
| "AiGatewayApiKeyOwnedBySelf"
|
|
2464
|
+
| "AiGatewayBudgetManager"
|
|
2465
|
+
| "AiGatewayCredits"
|
|
2466
|
+
| "AiGatewaySettings"
|
|
2467
|
+
| "AiGatewayTranscriptsManager"
|
|
2468
|
+
| "AiGatewayTranscriptsViewer"
|
|
2469
|
+
| "ConnectorManager"
|
|
2470
|
+
| "CreateProject"
|
|
2471
|
+
| "EnvVariableManager"
|
|
2472
|
+
| "EnvironmentManager"
|
|
2473
|
+
| "FullProductionDeployment"
|
|
2474
|
+
| "IntegrationManager"
|
|
2475
|
+
| "OrgAdmin"
|
|
2476
|
+
| "OrgViewer"
|
|
2477
|
+
| "UsageViewer"
|
|
2478
|
+
| "V0Builder"
|
|
2479
|
+
| "V0Chatter"
|
|
2480
|
+
| "V0Viewer"
|
|
2481
|
+
| "WorkflowDecryptor";
|
|
2482
|
+
export const InvitedTeamMemberTeamPermissionsItem = S.String;
|
|
2483
|
+
|
|
2484
|
+
/** The team permissions of the user */
|
|
2485
|
+
export type InvitedTeamMemberTeamPermissionsList =
|
|
2486
|
+
Array<InvitedTeamMemberTeamPermissionsItem>;
|
|
2487
|
+
export const InvitedTeamMemberTeamPermissionsList = /*@__PURE__*/ S.Array(
|
|
2488
|
+
InvitedTeamMemberTeamPermissionsItem,
|
|
2489
|
+
) as any as S.Schema<InvitedTeamMemberTeamPermissionsList>;
|
|
2490
|
+
|
|
2491
|
+
/** The member was successfully added to the team. */
|
|
2492
|
+
export interface InvitedTeamMember {
|
|
2493
|
+
/** The ID of the invited user */
|
|
2494
|
+
uid: string;
|
|
2495
|
+
/** The username of the invited user */
|
|
2496
|
+
username: string;
|
|
2497
|
+
/** The email of the invited user. */
|
|
2498
|
+
email: string;
|
|
2499
|
+
/** The role used for the invitation */
|
|
2500
|
+
role: InvitedTeamMemberRole;
|
|
2501
|
+
/** The team roles of the user */
|
|
2502
|
+
teamRoles?: InvitedTeamMemberTeamRolesList;
|
|
2503
|
+
/** The team permissions of the user */
|
|
2504
|
+
teamPermissions?: InvitedTeamMemberTeamPermissionsList;
|
|
2505
|
+
}
|
|
2506
|
+
export const InvitedTeamMember = /*@__PURE__*/ S.suspend(() =>
|
|
2507
|
+
S.Struct({
|
|
2508
|
+
uid: S.String,
|
|
2509
|
+
username: S.String,
|
|
2510
|
+
email: S.String,
|
|
2511
|
+
role: InvitedTeamMemberRole,
|
|
2512
|
+
teamRoles: S.optional(InvitedTeamMemberTeamRolesList),
|
|
2513
|
+
teamPermissions: S.optional(InvitedTeamMemberTeamPermissionsList),
|
|
2514
|
+
}),
|
|
2515
|
+
).annotate({
|
|
2516
|
+
identifier: "InvitedTeamMember",
|
|
2517
|
+
}) as any as S.Schema<InvitedTeamMember>;
|
|
2518
|
+
|
|
2519
|
+
export interface JoinTeamRequest {
|
|
2520
|
+
teamId: string;
|
|
2521
|
+
/** The invite code to join the team. */
|
|
2522
|
+
inviteCode?: string;
|
|
2523
|
+
}
|
|
2524
|
+
export const JoinTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2525
|
+
S.Struct({
|
|
2526
|
+
teamId: S.String.pipe(T.Label()),
|
|
2527
|
+
inviteCode: S.optional(S.String),
|
|
2528
|
+
}).pipe(
|
|
2529
|
+
T.Http({
|
|
2530
|
+
method: "POST",
|
|
2531
|
+
uri: "/v1/teams/{teamId}/members/teams/join",
|
|
2532
|
+
code: 200,
|
|
2533
|
+
}),
|
|
2534
|
+
),
|
|
2535
|
+
).annotate({
|
|
2536
|
+
identifier: "JoinTeamRequest",
|
|
2537
|
+
}) as any as S.Schema<JoinTeamRequest>;
|
|
2538
|
+
|
|
2539
|
+
export interface JoinTeamResponse {
|
|
2540
|
+
/** The ID of the team the user joined. */
|
|
2541
|
+
teamId: string;
|
|
2542
|
+
/** The slug of the team the user joined. */
|
|
2543
|
+
slug: string;
|
|
2544
|
+
/** The name of the team the user joined. */
|
|
2545
|
+
name: string;
|
|
2546
|
+
/** The origin of how the user joined. */
|
|
2547
|
+
from: string;
|
|
2548
|
+
}
|
|
2549
|
+
export const JoinTeamResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2550
|
+
S.Struct({
|
|
2551
|
+
teamId: S.String,
|
|
2552
|
+
slug: S.String,
|
|
2553
|
+
name: S.String,
|
|
2554
|
+
from: S.String,
|
|
2555
|
+
}),
|
|
2556
|
+
).annotate({
|
|
2557
|
+
identifier: "JoinTeamResponse",
|
|
2558
|
+
}) as any as S.Schema<JoinTeamResponse>;
|
|
2559
|
+
|
|
2560
|
+
export interface RemoveTeamMemberRequest {
|
|
2561
|
+
teamId: string;
|
|
2562
|
+
/** The user ID of the member. */
|
|
2563
|
+
uid: string;
|
|
2564
|
+
/** The ID of the team to set as the new default team for the Northstar user. */
|
|
2565
|
+
newDefaultTeamId?: string;
|
|
2566
|
+
}
|
|
2567
|
+
export const RemoveTeamMemberRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2568
|
+
S.Struct({
|
|
2569
|
+
teamId: S.String.pipe(T.Label()),
|
|
2570
|
+
uid: S.String.pipe(T.Label()),
|
|
2571
|
+
newDefaultTeamId: S.optional(S.String.pipe(T.Query())),
|
|
2572
|
+
}).pipe(
|
|
2573
|
+
T.Http({
|
|
2574
|
+
method: "DELETE",
|
|
2575
|
+
uri: "/v1/teams/{teamId}/members/{uid}",
|
|
2576
|
+
code: 200,
|
|
2577
|
+
}),
|
|
2578
|
+
),
|
|
2579
|
+
).annotate({
|
|
2580
|
+
identifier: "RemoveTeamMemberRequest",
|
|
2581
|
+
}) as any as S.Schema<RemoveTeamMemberRequest>;
|
|
2582
|
+
|
|
2583
|
+
export interface RemoveTeamMemberResponse {
|
|
2584
|
+
/** ID of the team. */
|
|
2585
|
+
id: string;
|
|
2586
|
+
}
|
|
2587
|
+
export const RemoveTeamMemberResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2588
|
+
S.Struct({
|
|
2589
|
+
id: S.String,
|
|
2590
|
+
}),
|
|
2591
|
+
).annotate({
|
|
2592
|
+
identifier: "RemoveTeamMemberResponse",
|
|
2593
|
+
}) as any as S.Schema<RemoveTeamMemberResponse>;
|
|
2594
|
+
|
|
2595
|
+
/** The origin of the request. */
|
|
2596
|
+
export type RequestAccessToTeamRequestJoinedFromOrigin =
|
|
2597
|
+
| "import"
|
|
2598
|
+
| "teams"
|
|
2599
|
+
| "github"
|
|
2600
|
+
| "gitlab"
|
|
2601
|
+
| "bitbucket"
|
|
2602
|
+
| "feedback"
|
|
2603
|
+
| "organization-teams";
|
|
2604
|
+
export const RequestAccessToTeamRequestJoinedFromOrigin = S.String;
|
|
2605
|
+
|
|
2606
|
+
/** The ID of the Git account of the user who requests access. */
|
|
2607
|
+
export type RequestAccessToTeamRequestJoinedFromGitUserId = string | number;
|
|
2608
|
+
export const RequestAccessToTeamRequestJoinedFromGitUserId =
|
|
2609
|
+
S.Unknown as any as S.Schema<RequestAccessToTeamRequestJoinedFromGitUserId>;
|
|
2610
|
+
|
|
2611
|
+
export interface RequestAccessToTeamRequestJoinedFrom {
|
|
2612
|
+
/** The origin of the request. */
|
|
2613
|
+
origin: RequestAccessToTeamRequestJoinedFromOrigin | (string & {});
|
|
2614
|
+
/** The commit sha if the origin is a git provider. */
|
|
2615
|
+
commitId?: string;
|
|
2616
|
+
/** The ID of the repository for the given Git provider. */
|
|
2617
|
+
repoId?: string;
|
|
2618
|
+
/** The path to the repository for the given Git provider. */
|
|
2619
|
+
repoPath?: string;
|
|
2620
|
+
/** The ID of the Git account of the user who requests access. */
|
|
2621
|
+
gitUserId?: RequestAccessToTeamRequestJoinedFromGitUserId;
|
|
2622
|
+
/** The login name for the Git account of the user who requests access. */
|
|
2623
|
+
gitUserLogin?: string;
|
|
2624
|
+
}
|
|
2625
|
+
export const RequestAccessToTeamRequestJoinedFrom = /*@__PURE__*/ S.suspend(
|
|
2626
|
+
() =>
|
|
2627
|
+
S.Struct({
|
|
2628
|
+
origin: RequestAccessToTeamRequestJoinedFromOrigin,
|
|
2629
|
+
commitId: S.optional(S.String),
|
|
2630
|
+
repoId: S.optional(S.String),
|
|
2631
|
+
repoPath: S.optional(S.String),
|
|
2632
|
+
gitUserId: S.optional(RequestAccessToTeamRequestJoinedFromGitUserId),
|
|
2633
|
+
gitUserLogin: S.optional(S.String),
|
|
2634
|
+
}),
|
|
2635
|
+
).annotate({
|
|
2636
|
+
identifier: "RequestAccessToTeamRequestJoinedFrom",
|
|
2637
|
+
}) as any as S.Schema<RequestAccessToTeamRequestJoinedFrom>;
|
|
2638
|
+
|
|
2639
|
+
export interface RequestAccessToTeamRequest {
|
|
2640
|
+
teamId: string;
|
|
2641
|
+
joinedFrom: RequestAccessToTeamRequestJoinedFrom;
|
|
2642
|
+
}
|
|
2643
|
+
export const RequestAccessToTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2644
|
+
S.Struct({
|
|
2645
|
+
teamId: S.String.pipe(T.Label()),
|
|
2646
|
+
joinedFrom: RequestAccessToTeamRequestJoinedFrom,
|
|
2647
|
+
}).pipe(
|
|
2648
|
+
T.Http({ method: "POST", uri: "/v1/teams/{teamId}/request", code: 200 }),
|
|
2649
|
+
),
|
|
2650
|
+
).annotate({
|
|
2651
|
+
identifier: "RequestAccessToTeamRequest",
|
|
2652
|
+
}) as any as S.Schema<RequestAccessToTeamRequest>;
|
|
2653
|
+
|
|
2654
|
+
export type RequestAccessToTeamResponseJoinedFromOrigin =
|
|
2655
|
+
| "account-update"
|
|
2656
|
+
| "bitbucket"
|
|
2657
|
+
| "dsync"
|
|
2658
|
+
| "feedback"
|
|
2659
|
+
| "github"
|
|
2660
|
+
| "gitlab"
|
|
2661
|
+
| "import"
|
|
2662
|
+
| "link"
|
|
2663
|
+
| "mail"
|
|
2664
|
+
| "nsnb-auto-approve"
|
|
2665
|
+
| "nsnb-hobby-upgrade"
|
|
2666
|
+
| "nsnb-invite"
|
|
2667
|
+
| "nsnb-redeploy"
|
|
2668
|
+
| "nsnb-redeploy-attribution-card"
|
|
2669
|
+
| "nsnb-request-access"
|
|
2670
|
+
| "nsnb-viewer-upgrade"
|
|
2671
|
+
| "organization-teams"
|
|
2672
|
+
| "saml"
|
|
2673
|
+
| "teams";
|
|
2674
|
+
export const RequestAccessToTeamResponseJoinedFromOrigin = S.String;
|
|
2675
|
+
|
|
2676
|
+
export type RequestAccessToTeamResponseJoinedFromGitUserId = string | number;
|
|
2677
|
+
export const RequestAccessToTeamResponseJoinedFromGitUserId =
|
|
2678
|
+
S.Unknown as any as S.Schema<RequestAccessToTeamResponseJoinedFromGitUserId>;
|
|
2679
|
+
|
|
2680
|
+
export interface RequestAccessToTeamResponseJoinedFrom {
|
|
2681
|
+
origin: RequestAccessToTeamResponseJoinedFromOrigin;
|
|
2682
|
+
commitId?: string;
|
|
2683
|
+
repoId?: string;
|
|
2684
|
+
repoPath?: string;
|
|
2685
|
+
gitUserId?: RequestAccessToTeamResponseJoinedFromGitUserId;
|
|
2686
|
+
gitUserLogin?: string;
|
|
2687
|
+
ssoUserId?: string;
|
|
2688
|
+
ssoConnectedAt?: number;
|
|
2689
|
+
idpUserId?: string;
|
|
2690
|
+
dsyncUserId?: string;
|
|
2691
|
+
dsyncConnectedAt?: number;
|
|
2692
|
+
}
|
|
2693
|
+
export const RequestAccessToTeamResponseJoinedFrom = /*@__PURE__*/ S.suspend(
|
|
2694
|
+
() =>
|
|
2695
|
+
S.Struct({
|
|
2696
|
+
origin: RequestAccessToTeamResponseJoinedFromOrigin,
|
|
2697
|
+
commitId: S.optional(S.String),
|
|
2698
|
+
repoId: S.optional(S.String),
|
|
2699
|
+
repoPath: S.optional(S.String),
|
|
2700
|
+
gitUserId: S.optional(RequestAccessToTeamResponseJoinedFromGitUserId),
|
|
2701
|
+
gitUserLogin: S.optional(S.String),
|
|
2702
|
+
ssoUserId: S.optional(S.String),
|
|
2703
|
+
ssoConnectedAt: S.optional(S.Number),
|
|
2704
|
+
idpUserId: S.optional(S.String),
|
|
2705
|
+
dsyncUserId: S.optional(S.String),
|
|
2706
|
+
dsyncConnectedAt: S.optional(S.Number),
|
|
2707
|
+
}),
|
|
2708
|
+
).annotate({
|
|
2709
|
+
identifier: "RequestAccessToTeamResponseJoinedFrom",
|
|
2710
|
+
}) as any as S.Schema<RequestAccessToTeamResponseJoinedFrom>;
|
|
2711
|
+
|
|
2712
|
+
export type RequestAccessToTeamResponseGithub =
|
|
2713
|
+
GetTeamAccessRequestResponseGithub;
|
|
2714
|
+
export const RequestAccessToTeamResponseGithub =
|
|
2715
|
+
GetTeamAccessRequestResponseGithub;
|
|
2716
|
+
|
|
2717
|
+
export type RequestAccessToTeamResponseGitlab =
|
|
2718
|
+
GetTeamAccessRequestResponseGithub;
|
|
2719
|
+
export const RequestAccessToTeamResponseGitlab =
|
|
2720
|
+
GetTeamAccessRequestResponseGithub;
|
|
2721
|
+
|
|
2722
|
+
export type RequestAccessToTeamResponseBitbucket =
|
|
2723
|
+
GetTeamAccessRequestResponseGithub;
|
|
2724
|
+
export const RequestAccessToTeamResponseBitbucket =
|
|
2725
|
+
GetTeamAccessRequestResponseGithub;
|
|
2726
|
+
|
|
2727
|
+
export interface RequestAccessToTeamResponse {
|
|
2728
|
+
teamSlug: string;
|
|
2729
|
+
teamName: string;
|
|
2730
|
+
confirmed?: boolean;
|
|
2731
|
+
joinedFrom?: RequestAccessToTeamResponseJoinedFrom;
|
|
2732
|
+
accessRequestedAt?: number;
|
|
2733
|
+
github: GetTeamAccessRequestResponseGithub | null;
|
|
2734
|
+
gitlab: GetTeamAccessRequestResponseGithub | null;
|
|
2735
|
+
bitbucket: GetTeamAccessRequestResponseGithub | null;
|
|
2736
|
+
}
|
|
2737
|
+
export const RequestAccessToTeamResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2738
|
+
S.Struct({
|
|
2739
|
+
teamSlug: S.String,
|
|
2740
|
+
teamName: S.String,
|
|
2741
|
+
confirmed: S.optional(S.Boolean),
|
|
2742
|
+
joinedFrom: S.optional(RequestAccessToTeamResponseJoinedFrom),
|
|
2743
|
+
accessRequestedAt: S.optional(S.Number),
|
|
2744
|
+
github: S.NullOr(GetTeamAccessRequestResponseGithub),
|
|
2745
|
+
gitlab: S.NullOr(GetTeamAccessRequestResponseGithub),
|
|
2746
|
+
bitbucket: S.NullOr(GetTeamAccessRequestResponseGithub),
|
|
2747
|
+
}),
|
|
2748
|
+
).annotate({
|
|
2749
|
+
identifier: "RequestAccessToTeamResponse",
|
|
2750
|
+
}) as any as S.Schema<RequestAccessToTeamResponse>;
|
|
2751
|
+
|
|
2752
|
+
export interface UpdateMicrofrontendsGroupRequest {
|
|
2753
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
2754
|
+
teamId: string;
|
|
2755
|
+
groupId: string;
|
|
2756
|
+
/** The Team slug to perform the request on behalf of. */
|
|
2757
|
+
slug?: string;
|
|
2758
|
+
/** The new name for the existing microfrontends group. */
|
|
2759
|
+
name?: string;
|
|
2760
|
+
/** The new fallback environment for the microfrontends group. Must be "SAME_ENV", "PRODUCTION", or a valid custom environment slug from the default app. */
|
|
2761
|
+
fallbackEnvironment?: string;
|
|
2762
|
+
/** Whether Preview Deployments can link to branches with the same name in other Git repositories. */
|
|
2763
|
+
enablePolyrepoBranchRouting?: boolean;
|
|
2764
|
+
}
|
|
2765
|
+
export const UpdateMicrofrontendsGroupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2766
|
+
S.Struct({
|
|
2767
|
+
teamId: S.String.pipe(T.Label()),
|
|
2768
|
+
groupId: S.String.pipe(T.Label()),
|
|
2769
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
2770
|
+
name: S.optional(S.String),
|
|
2771
|
+
fallbackEnvironment: S.optional(S.String),
|
|
2772
|
+
enablePolyrepoBranchRouting: S.optional(S.Boolean),
|
|
2773
|
+
}).pipe(
|
|
2774
|
+
T.Http({
|
|
2775
|
+
method: "PATCH",
|
|
2776
|
+
uri: "/v1/teams/{teamId}/microfrontends/{groupId}",
|
|
2777
|
+
code: 200,
|
|
2778
|
+
}),
|
|
2779
|
+
),
|
|
2780
|
+
).annotate({
|
|
2781
|
+
identifier: "UpdateMicrofrontendsGroupRequest",
|
|
2782
|
+
}) as any as S.Schema<UpdateMicrofrontendsGroupRequest>;
|
|
2783
|
+
|
|
2784
|
+
export interface UpdateMicrofrontendsGroupResponseUpdatedMicrofrontendsGroup {
|
|
2785
|
+
name?: string;
|
|
2786
|
+
slug?: string;
|
|
2787
|
+
id: string;
|
|
2788
|
+
fallbackEnvironment?: string;
|
|
2789
|
+
enablePolyrepoBranchRouting?: boolean;
|
|
2790
|
+
}
|
|
2791
|
+
export const UpdateMicrofrontendsGroupResponseUpdatedMicrofrontendsGroup =
|
|
2792
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2793
|
+
S.Struct({
|
|
2794
|
+
name: S.optional(S.String),
|
|
2795
|
+
slug: S.optional(S.String),
|
|
2796
|
+
id: S.String,
|
|
2797
|
+
fallbackEnvironment: S.optional(S.String),
|
|
2798
|
+
enablePolyrepoBranchRouting: S.optional(S.Boolean),
|
|
2799
|
+
}),
|
|
2800
|
+
).annotate({
|
|
2801
|
+
identifier: "UpdateMicrofrontendsGroupResponseUpdatedMicrofrontendsGroup",
|
|
2802
|
+
}) as any as S.Schema<UpdateMicrofrontendsGroupResponseUpdatedMicrofrontendsGroup>;
|
|
2803
|
+
|
|
2804
|
+
export interface UpdateMicrofrontendsGroupResponse {
|
|
2805
|
+
updatedMicrofrontendsGroup: UpdateMicrofrontendsGroupResponseUpdatedMicrofrontendsGroup;
|
|
2806
|
+
}
|
|
2807
|
+
export const UpdateMicrofrontendsGroupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2808
|
+
S.Struct({
|
|
2809
|
+
updatedMicrofrontendsGroup:
|
|
2810
|
+
UpdateMicrofrontendsGroupResponseUpdatedMicrofrontendsGroup,
|
|
2811
|
+
}),
|
|
2812
|
+
).annotate({
|
|
2813
|
+
identifier: "UpdateMicrofrontendsGroupResponse",
|
|
2814
|
+
}) as any as S.Schema<UpdateMicrofrontendsGroupResponse>;
|
|
2815
|
+
|
|
2816
|
+
export type UpdateTeamRequestSamlRolesValueCase0 =
|
|
2817
|
+
| "OWNER"
|
|
2818
|
+
| "MEMBER"
|
|
2819
|
+
| "DEVELOPER"
|
|
2820
|
+
| "SECURITY"
|
|
2821
|
+
| "BILLING"
|
|
2822
|
+
| "VIEWER"
|
|
2823
|
+
| "VIEWER_FOR_PLUS"
|
|
2824
|
+
| "CONTRIBUTOR";
|
|
2825
|
+
export const UpdateTeamRequestSamlRolesValueCase0 = S.String;
|
|
2826
|
+
|
|
2827
|
+
export type UpdateTeamRequestSamlRolesValueCase1 =
|
|
2828
|
+
CreateTeamDsyncRoleRequestRolesValueCase1;
|
|
2829
|
+
export const UpdateTeamRequestSamlRolesValueCase1 =
|
|
2830
|
+
CreateTeamDsyncRoleRequestRolesValueCase1;
|
|
2831
|
+
|
|
2832
|
+
export type UpdateTeamRequestSamlRolesValue =
|
|
2833
|
+
| UpdateTeamRequestSamlRolesValueCase0
|
|
2834
|
+
| CreateTeamDsyncRoleRequestRolesValueCase1;
|
|
2835
|
+
export const UpdateTeamRequestSamlRolesValue =
|
|
2836
|
+
S.Unknown as any as S.Schema<UpdateTeamRequestSamlRolesValue>;
|
|
2837
|
+
|
|
2838
|
+
/** Directory groups to role or access group mappings. */
|
|
2839
|
+
export type UpdateTeamRequestSamlRolesMap = {
|
|
2840
|
+
[key: string]: UpdateTeamRequestSamlRolesValue | undefined;
|
|
2841
|
+
};
|
|
2842
|
+
export const UpdateTeamRequestSamlRolesMap = /*@__PURE__*/ S.Record(
|
|
2843
|
+
S.String,
|
|
2844
|
+
UpdateTeamRequestSamlRolesValue,
|
|
2845
|
+
) as any as S.Schema<UpdateTeamRequestSamlRolesMap>;
|
|
2846
|
+
|
|
2847
|
+
export interface UpdateTeamRequestSaml {
|
|
2848
|
+
/** Require that members of the team use SAML Single Sign-On. */
|
|
2849
|
+
enforced?: boolean;
|
|
2850
|
+
/** Directory groups to role or access group mappings. */
|
|
2851
|
+
roles?: UpdateTeamRequestSamlRolesMap;
|
|
2852
|
+
}
|
|
2853
|
+
export const UpdateTeamRequestSaml = /*@__PURE__*/ S.suspend(() =>
|
|
2854
|
+
S.Struct({
|
|
2855
|
+
enforced: S.optional(S.Boolean),
|
|
2856
|
+
roles: S.optional(UpdateTeamRequestSamlRolesMap),
|
|
2857
|
+
}),
|
|
2858
|
+
).annotate({
|
|
2859
|
+
identifier: "UpdateTeamRequestSaml",
|
|
2860
|
+
}) as any as S.Schema<UpdateTeamRequestSaml>;
|
|
2861
|
+
|
|
2862
|
+
/** Whether or not remote caching is enabled for the team */
|
|
2863
|
+
export interface UpdateTeamRequestRemoteCaching {
|
|
2864
|
+
/** Enable or disable remote caching for the team. */
|
|
2865
|
+
enabled?: boolean;
|
|
2866
|
+
}
|
|
2867
|
+
export const UpdateTeamRequestRemoteCaching = /*@__PURE__*/ S.suspend(() =>
|
|
2868
|
+
S.Struct({
|
|
2869
|
+
enabled: S.optional(S.Boolean),
|
|
2870
|
+
}),
|
|
2871
|
+
).annotate({
|
|
2872
|
+
identifier: "UpdateTeamRequestRemoteCaching",
|
|
2873
|
+
}) as any as S.Schema<UpdateTeamRequestRemoteCaching>;
|
|
2874
|
+
|
|
2875
|
+
/** Controls who can request access to protected deployments. */
|
|
2876
|
+
export type UpdateTeamRequestDpAccessRequestsMode =
|
|
2877
|
+
| "all"
|
|
2878
|
+
| "none"
|
|
2879
|
+
| "email-domain";
|
|
2880
|
+
export const UpdateTeamRequestDpAccessRequestsMode = S.String;
|
|
2881
|
+
|
|
2882
|
+
/** Specify if the password will apply to every Deployment Target or just Preview */
|
|
2883
|
+
export type UpdateTeamRequestDefaultDeploymentProtectionPasswordProtectionDeploymentType =
|
|
2884
|
+
| "all"
|
|
2885
|
+
| "preview"
|
|
2886
|
+
| "prod_deployment_urls_and_all_previews"
|
|
2887
|
+
| "all_except_custom_domains";
|
|
2888
|
+
export const UpdateTeamRequestDefaultDeploymentProtectionPasswordProtectionDeploymentType =
|
|
2889
|
+
S.String;
|
|
2890
|
+
|
|
2891
|
+
/** Allows to protect project deployments with a password */
|
|
2892
|
+
export interface UpdateTeamRequestDefaultDeploymentProtectionPasswordProtection {
|
|
2893
|
+
/** Specify if the password will apply to every Deployment Target or just Preview */
|
|
2894
|
+
deploymentType:
|
|
2895
|
+
| UpdateTeamRequestDefaultDeploymentProtectionPasswordProtectionDeploymentType
|
|
2896
|
+
| (string & {});
|
|
2897
|
+
/** The password that will be used to protect Project Deployments */
|
|
2898
|
+
password?: string | Redacted.Redacted<string> | null;
|
|
2899
|
+
}
|
|
2900
|
+
export const UpdateTeamRequestDefaultDeploymentProtectionPasswordProtection =
|
|
2901
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2902
|
+
S.Struct({
|
|
2903
|
+
deploymentType:
|
|
2904
|
+
UpdateTeamRequestDefaultDeploymentProtectionPasswordProtectionDeploymentType,
|
|
2905
|
+
password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
2906
|
+
}),
|
|
2907
|
+
).annotate({
|
|
2908
|
+
identifier:
|
|
2909
|
+
"UpdateTeamRequestDefaultDeploymentProtectionPasswordProtection",
|
|
2910
|
+
}) as any as S.Schema<UpdateTeamRequestDefaultDeploymentProtectionPasswordProtection>;
|
|
2911
|
+
|
|
2912
|
+
/** Specify if the Vercel Authentication (SSO Protection) will apply to every Deployment Target or just Preview */
|
|
2913
|
+
export type UpdateTeamRequestDefaultDeploymentProtectionSsoProtectionDeploymentType =
|
|
2914
|
+
| "all"
|
|
2915
|
+
| "preview"
|
|
2916
|
+
| "prod_deployment_urls_and_all_previews"
|
|
2917
|
+
| "all_except_custom_domains";
|
|
2918
|
+
export const UpdateTeamRequestDefaultDeploymentProtectionSsoProtectionDeploymentType =
|
|
2919
|
+
S.String;
|
|
2920
|
+
|
|
2921
|
+
/** Ensures visitors to your Preview Deployments are logged into Vercel and have a minimum of Viewer access on your team */
|
|
2922
|
+
export interface UpdateTeamRequestDefaultDeploymentProtectionSsoProtection {
|
|
2923
|
+
/** Specify if the Vercel Authentication (SSO Protection) will apply to every Deployment Target or just Preview */
|
|
2924
|
+
deploymentType:
|
|
2925
|
+
| UpdateTeamRequestDefaultDeploymentProtectionSsoProtectionDeploymentType
|
|
2926
|
+
| (string & {});
|
|
2927
|
+
}
|
|
2928
|
+
export const UpdateTeamRequestDefaultDeploymentProtectionSsoProtection =
|
|
2929
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2930
|
+
S.Struct({
|
|
2931
|
+
deploymentType:
|
|
2932
|
+
UpdateTeamRequestDefaultDeploymentProtectionSsoProtectionDeploymentType,
|
|
2933
|
+
}),
|
|
2934
|
+
).annotate({
|
|
2935
|
+
identifier: "UpdateTeamRequestDefaultDeploymentProtectionSsoProtection",
|
|
2936
|
+
}) as any as S.Schema<UpdateTeamRequestDefaultDeploymentProtectionSsoProtection>;
|
|
2937
|
+
|
|
2938
|
+
/** Default deployment protection settings for new projects. */
|
|
2939
|
+
export interface UpdateTeamRequestDefaultDeploymentProtection {
|
|
2940
|
+
/** Allows to protect project deployments with a password */
|
|
2941
|
+
passwordProtection?: UpdateTeamRequestDefaultDeploymentProtectionPasswordProtection | null;
|
|
2942
|
+
/** Ensures visitors to your Preview Deployments are logged into Vercel and have a minimum of Viewer access on your team */
|
|
2943
|
+
ssoProtection?: UpdateTeamRequestDefaultDeploymentProtectionSsoProtection | null;
|
|
2944
|
+
}
|
|
2945
|
+
export const UpdateTeamRequestDefaultDeploymentProtection =
|
|
2946
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2947
|
+
S.Struct({
|
|
2948
|
+
passwordProtection: S.optional(
|
|
2949
|
+
S.NullOr(
|
|
2950
|
+
UpdateTeamRequestDefaultDeploymentProtectionPasswordProtection,
|
|
2951
|
+
),
|
|
2952
|
+
),
|
|
2953
|
+
ssoProtection: S.optional(
|
|
2954
|
+
S.NullOr(UpdateTeamRequestDefaultDeploymentProtectionSsoProtection),
|
|
2955
|
+
),
|
|
2956
|
+
}),
|
|
2957
|
+
).annotate({
|
|
2958
|
+
identifier: "UpdateTeamRequestDefaultDeploymentProtection",
|
|
2959
|
+
}) as any as S.Schema<UpdateTeamRequestDefaultDeploymentProtection>;
|
|
2960
|
+
|
|
2961
|
+
export type UpdateTeamRequestDefaultPassportDeploymentType =
|
|
2962
|
+
| "all"
|
|
2963
|
+
| "preview"
|
|
2964
|
+
| "prod_deployment_urls_and_all_previews"
|
|
2965
|
+
| "all_except_custom_domains";
|
|
2966
|
+
export const UpdateTeamRequestDefaultPassportDeploymentType = S.String;
|
|
2967
|
+
|
|
2968
|
+
/** Default Passport configuration for new projects. */
|
|
2969
|
+
export interface UpdateTeamRequestDefaultPassport {
|
|
2970
|
+
connectorId: string;
|
|
2971
|
+
deploymentType?:
|
|
2972
|
+
| UpdateTeamRequestDefaultPassportDeploymentType
|
|
2973
|
+
| (string & {});
|
|
2974
|
+
}
|
|
2975
|
+
export const UpdateTeamRequestDefaultPassport = /*@__PURE__*/ S.suspend(() =>
|
|
2976
|
+
S.Struct({
|
|
2977
|
+
connectorId: S.String,
|
|
2978
|
+
deploymentType: S.optional(UpdateTeamRequestDefaultPassportDeploymentType),
|
|
2979
|
+
}),
|
|
2980
|
+
).annotate({
|
|
2981
|
+
identifier: "UpdateTeamRequestDefaultPassport",
|
|
2982
|
+
}) as any as S.Schema<UpdateTeamRequestDefaultPassport>;
|
|
2983
|
+
|
|
2984
|
+
/** The time period to keep non-production deployments for */
|
|
2985
|
+
export type UpdateTeamRequestDefaultExpirationSettingsExpiration =
|
|
2986
|
+
| "3y"
|
|
2987
|
+
| "2y"
|
|
2988
|
+
| "1y"
|
|
2989
|
+
| "6m"
|
|
2990
|
+
| "3m"
|
|
2991
|
+
| "2m"
|
|
2992
|
+
| "1m"
|
|
2993
|
+
| "2w"
|
|
2994
|
+
| "1w"
|
|
2995
|
+
| "1d"
|
|
2996
|
+
| "unlimited";
|
|
2997
|
+
export const UpdateTeamRequestDefaultExpirationSettingsExpiration = S.String;
|
|
2998
|
+
|
|
2999
|
+
/** The time period to keep production deployments for */
|
|
3000
|
+
export type UpdateTeamRequestDefaultExpirationSettingsExpirationProduction =
|
|
3001
|
+
| "3y"
|
|
3002
|
+
| "2y"
|
|
3003
|
+
| "1y"
|
|
3004
|
+
| "6m"
|
|
3005
|
+
| "3m"
|
|
3006
|
+
| "2m"
|
|
3007
|
+
| "1m"
|
|
3008
|
+
| "2w"
|
|
3009
|
+
| "1w"
|
|
3010
|
+
| "1d"
|
|
3011
|
+
| "unlimited";
|
|
3012
|
+
export const UpdateTeamRequestDefaultExpirationSettingsExpirationProduction =
|
|
3013
|
+
S.String;
|
|
3014
|
+
|
|
3015
|
+
/** The time period to keep canceled deployments for */
|
|
3016
|
+
export type UpdateTeamRequestDefaultExpirationSettingsExpirationCanceled =
|
|
3017
|
+
| "1y"
|
|
3018
|
+
| "6m"
|
|
3019
|
+
| "3m"
|
|
3020
|
+
| "2m"
|
|
3021
|
+
| "1m"
|
|
3022
|
+
| "2w"
|
|
3023
|
+
| "1w"
|
|
3024
|
+
| "1d"
|
|
3025
|
+
| "unlimited";
|
|
3026
|
+
export const UpdateTeamRequestDefaultExpirationSettingsExpirationCanceled =
|
|
3027
|
+
S.String;
|
|
3028
|
+
|
|
3029
|
+
/** The time period to keep errored deployments for */
|
|
3030
|
+
export type UpdateTeamRequestDefaultExpirationSettingsExpirationErrored =
|
|
3031
|
+
| "1y"
|
|
3032
|
+
| "6m"
|
|
3033
|
+
| "3m"
|
|
3034
|
+
| "2m"
|
|
3035
|
+
| "1m"
|
|
3036
|
+
| "2w"
|
|
3037
|
+
| "1w"
|
|
3038
|
+
| "1d"
|
|
3039
|
+
| "unlimited";
|
|
3040
|
+
export const UpdateTeamRequestDefaultExpirationSettingsExpirationErrored =
|
|
3041
|
+
S.String;
|
|
3042
|
+
|
|
3043
|
+
export interface UpdateTeamRequestDefaultExpirationSettings {
|
|
3044
|
+
/** The time period to keep non-production deployments for */
|
|
3045
|
+
expiration?:
|
|
3046
|
+
| UpdateTeamRequestDefaultExpirationSettingsExpiration
|
|
3047
|
+
| (string & {});
|
|
3048
|
+
/** The time period to keep production deployments for */
|
|
3049
|
+
expirationProduction?:
|
|
3050
|
+
| UpdateTeamRequestDefaultExpirationSettingsExpirationProduction
|
|
3051
|
+
| (string & {});
|
|
3052
|
+
/** The time period to keep canceled deployments for */
|
|
3053
|
+
expirationCanceled?:
|
|
3054
|
+
| UpdateTeamRequestDefaultExpirationSettingsExpirationCanceled
|
|
3055
|
+
| (string & {});
|
|
3056
|
+
/** The time period to keep errored deployments for */
|
|
3057
|
+
expirationErrored?:
|
|
3058
|
+
| UpdateTeamRequestDefaultExpirationSettingsExpirationErrored
|
|
3059
|
+
| (string & {});
|
|
3060
|
+
}
|
|
3061
|
+
export const UpdateTeamRequestDefaultExpirationSettings =
|
|
3062
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3063
|
+
S.Struct({
|
|
3064
|
+
expiration: S.optional(
|
|
3065
|
+
UpdateTeamRequestDefaultExpirationSettingsExpiration,
|
|
3066
|
+
),
|
|
3067
|
+
expirationProduction: S.optional(
|
|
3068
|
+
UpdateTeamRequestDefaultExpirationSettingsExpirationProduction,
|
|
3069
|
+
),
|
|
3070
|
+
expirationCanceled: S.optional(
|
|
3071
|
+
UpdateTeamRequestDefaultExpirationSettingsExpirationCanceled,
|
|
3072
|
+
),
|
|
3073
|
+
expirationErrored: S.optional(
|
|
3074
|
+
UpdateTeamRequestDefaultExpirationSettingsExpirationErrored,
|
|
3075
|
+
),
|
|
3076
|
+
}),
|
|
3077
|
+
).annotate({
|
|
3078
|
+
identifier: "UpdateTeamRequestDefaultExpirationSettings",
|
|
3079
|
+
}) as any as S.Schema<UpdateTeamRequestDefaultExpirationSettings>;
|
|
3080
|
+
|
|
3081
|
+
export type UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0Type =
|
|
3082
|
+
"system";
|
|
3083
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0Type =
|
|
3084
|
+
S.String;
|
|
3085
|
+
|
|
3086
|
+
export type UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0Target =
|
|
3087
|
+
| "production"
|
|
3088
|
+
| "preview";
|
|
3089
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0Target =
|
|
3090
|
+
S.String;
|
|
3091
|
+
|
|
3092
|
+
export interface UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0 {
|
|
3093
|
+
type: UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0Type;
|
|
3094
|
+
target:
|
|
3095
|
+
| UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0Target
|
|
3096
|
+
| (string & {});
|
|
3097
|
+
}
|
|
3098
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0 =
|
|
3099
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3100
|
+
S.Struct({
|
|
3101
|
+
type: UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0Type,
|
|
3102
|
+
target:
|
|
3103
|
+
UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0Target,
|
|
3104
|
+
}),
|
|
3105
|
+
).annotate({
|
|
3106
|
+
identifier:
|
|
3107
|
+
"UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0",
|
|
3108
|
+
}) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0>;
|
|
3109
|
+
|
|
3110
|
+
export type UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase1Type =
|
|
3111
|
+
"custom";
|
|
3112
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase1Type =
|
|
3113
|
+
S.String;
|
|
3114
|
+
|
|
3115
|
+
export interface UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase1 {
|
|
3116
|
+
type: UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase1Type;
|
|
3117
|
+
environmentId: string;
|
|
3118
|
+
}
|
|
3119
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase1 =
|
|
3120
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3121
|
+
S.Struct({
|
|
3122
|
+
type: UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase1Type,
|
|
3123
|
+
environmentId: S.String,
|
|
3124
|
+
}),
|
|
3125
|
+
).annotate({
|
|
3126
|
+
identifier:
|
|
3127
|
+
"UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase1",
|
|
3128
|
+
}) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase1>;
|
|
3129
|
+
|
|
3130
|
+
export type UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItem =
|
|
3131
|
+
| UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase0
|
|
3132
|
+
| UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItemCase1;
|
|
3133
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItem =
|
|
3134
|
+
S.Unknown as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItem>;
|
|
3135
|
+
|
|
3136
|
+
export type UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsList =
|
|
3137
|
+
Array<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItem>;
|
|
3138
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsList =
|
|
3139
|
+
/*@__PURE__*/ S.Array(
|
|
3140
|
+
UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsItem,
|
|
3141
|
+
) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsList>;
|
|
3142
|
+
|
|
3143
|
+
export type UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase0Provider =
|
|
3144
|
+
| "github"
|
|
3145
|
+
| "bitbucket";
|
|
3146
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase0Provider =
|
|
3147
|
+
S.String;
|
|
3148
|
+
|
|
3149
|
+
export interface UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase0 {
|
|
3150
|
+
provider:
|
|
3151
|
+
| UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase0Provider
|
|
3152
|
+
| (string & {});
|
|
3153
|
+
org: string;
|
|
3154
|
+
repo?: string;
|
|
3155
|
+
}
|
|
3156
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase0 =
|
|
3157
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3158
|
+
S.Struct({
|
|
3159
|
+
provider:
|
|
3160
|
+
UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase0Provider,
|
|
3161
|
+
org: S.String,
|
|
3162
|
+
repo: S.optional(S.String),
|
|
3163
|
+
}),
|
|
3164
|
+
).annotate({
|
|
3165
|
+
identifier:
|
|
3166
|
+
"UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase0",
|
|
3167
|
+
}) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase0>;
|
|
3168
|
+
|
|
3169
|
+
export type UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase1Provider =
|
|
3170
|
+
"gitlab";
|
|
3171
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase1Provider =
|
|
3172
|
+
S.String;
|
|
3173
|
+
|
|
3174
|
+
export interface UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase1 {
|
|
3175
|
+
provider: UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase1Provider;
|
|
3176
|
+
namespace: string;
|
|
3177
|
+
project?: string;
|
|
3178
|
+
}
|
|
3179
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase1 =
|
|
3180
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3181
|
+
S.Struct({
|
|
3182
|
+
provider:
|
|
3183
|
+
UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase1Provider,
|
|
3184
|
+
namespace: S.String,
|
|
3185
|
+
project: S.optional(S.String),
|
|
3186
|
+
}),
|
|
3187
|
+
).annotate({
|
|
3188
|
+
identifier:
|
|
3189
|
+
"UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase1",
|
|
3190
|
+
}) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase1>;
|
|
3191
|
+
|
|
3192
|
+
export type UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItem =
|
|
3193
|
+
| UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase0
|
|
3194
|
+
| UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItemCase1;
|
|
3195
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItem =
|
|
3196
|
+
S.Unknown as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItem>;
|
|
3197
|
+
|
|
3198
|
+
export type UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesList =
|
|
3199
|
+
Array<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItem>;
|
|
3200
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesList =
|
|
3201
|
+
/*@__PURE__*/ S.Array(
|
|
3202
|
+
UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesItem,
|
|
3203
|
+
) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesList>;
|
|
3204
|
+
|
|
3205
|
+
export interface UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0Item {
|
|
3206
|
+
enabled: boolean;
|
|
3207
|
+
environments: UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsList;
|
|
3208
|
+
sources: UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesList;
|
|
3209
|
+
}
|
|
3210
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0Item =
|
|
3211
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3212
|
+
S.Struct({
|
|
3213
|
+
enabled: S.Boolean,
|
|
3214
|
+
environments:
|
|
3215
|
+
UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemEnvironmentsList,
|
|
3216
|
+
sources:
|
|
3217
|
+
UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0ItemSourcesList,
|
|
3218
|
+
}),
|
|
3219
|
+
).annotate({
|
|
3220
|
+
identifier: "UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0Item",
|
|
3221
|
+
}) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0Item>;
|
|
3222
|
+
|
|
3223
|
+
export type UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0List =
|
|
3224
|
+
Array<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0Item>;
|
|
3225
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0List =
|
|
3226
|
+
/*@__PURE__*/ S.Array(
|
|
3227
|
+
UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0Item,
|
|
3228
|
+
) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0List>;
|
|
3229
|
+
|
|
3230
|
+
export type UpdateTeamRequestDeploymentPolicyCase0GitSources =
|
|
3231
|
+
| UpdateTeamRequestDeploymentPolicyCase0GitSourcesCase0List
|
|
3232
|
+
| string;
|
|
3233
|
+
export const UpdateTeamRequestDeploymentPolicyCase0GitSources =
|
|
3234
|
+
S.Unknown as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0GitSources>;
|
|
3235
|
+
|
|
3236
|
+
export type UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0Type =
|
|
3237
|
+
"system";
|
|
3238
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0Type =
|
|
3239
|
+
S.String;
|
|
3240
|
+
|
|
3241
|
+
export type UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0Target =
|
|
3242
|
+
| "production"
|
|
3243
|
+
| "preview";
|
|
3244
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0Target =
|
|
3245
|
+
S.String;
|
|
3246
|
+
|
|
3247
|
+
export interface UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0 {
|
|
3248
|
+
type: UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0Type;
|
|
3249
|
+
target:
|
|
3250
|
+
| UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0Target
|
|
3251
|
+
| (string & {});
|
|
3252
|
+
}
|
|
3253
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0 =
|
|
3254
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3255
|
+
S.Struct({
|
|
3256
|
+
type: UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0Type,
|
|
3257
|
+
target:
|
|
3258
|
+
UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0Target,
|
|
3259
|
+
}),
|
|
3260
|
+
).annotate({
|
|
3261
|
+
identifier:
|
|
3262
|
+
"UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0",
|
|
3263
|
+
}) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0>;
|
|
3264
|
+
|
|
3265
|
+
export type UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase1Type =
|
|
3266
|
+
"custom";
|
|
3267
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase1Type =
|
|
3268
|
+
S.String;
|
|
3269
|
+
|
|
3270
|
+
export interface UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase1 {
|
|
3271
|
+
type: UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase1Type;
|
|
3272
|
+
environmentId: string;
|
|
3273
|
+
}
|
|
3274
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase1 =
|
|
3275
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3276
|
+
S.Struct({
|
|
3277
|
+
type: UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase1Type,
|
|
3278
|
+
environmentId: S.String,
|
|
3279
|
+
}),
|
|
3280
|
+
).annotate({
|
|
3281
|
+
identifier:
|
|
3282
|
+
"UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase1",
|
|
3283
|
+
}) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase1>;
|
|
3284
|
+
|
|
3285
|
+
export type UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItem =
|
|
3286
|
+
| UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase0
|
|
3287
|
+
| UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItemCase1;
|
|
3288
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItem =
|
|
3289
|
+
S.Unknown as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItem>;
|
|
3290
|
+
|
|
3291
|
+
export type UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsList =
|
|
3292
|
+
Array<UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItem>;
|
|
3293
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsList =
|
|
3294
|
+
/*@__PURE__*/ S.Array(
|
|
3295
|
+
UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsItem,
|
|
3296
|
+
) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsList>;
|
|
3297
|
+
|
|
3298
|
+
export type UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemSourcesItem =
|
|
3299
|
+
| "git"
|
|
3300
|
+
| "cli"
|
|
3301
|
+
| "rest-api"
|
|
3302
|
+
| "deploy-hook"
|
|
3303
|
+
| "integration"
|
|
3304
|
+
| "v0";
|
|
3305
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemSourcesItem =
|
|
3306
|
+
S.String;
|
|
3307
|
+
|
|
3308
|
+
export type UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemSourcesList =
|
|
3309
|
+
Array<
|
|
3310
|
+
| UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemSourcesItem
|
|
3311
|
+
| (string & {})
|
|
3312
|
+
>;
|
|
3313
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemSourcesList =
|
|
3314
|
+
/*@__PURE__*/ S.Array(
|
|
3315
|
+
UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemSourcesItem,
|
|
3316
|
+
) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemSourcesList>;
|
|
3317
|
+
|
|
3318
|
+
export interface UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0Item {
|
|
3319
|
+
enabled: boolean;
|
|
3320
|
+
environments: UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsList;
|
|
3321
|
+
sources: UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemSourcesList;
|
|
3322
|
+
}
|
|
3323
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0Item =
|
|
3324
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3325
|
+
S.Struct({
|
|
3326
|
+
enabled: S.Boolean,
|
|
3327
|
+
environments:
|
|
3328
|
+
UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemEnvironmentsList,
|
|
3329
|
+
sources:
|
|
3330
|
+
UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0ItemSourcesList,
|
|
3331
|
+
}),
|
|
3332
|
+
).annotate({
|
|
3333
|
+
identifier:
|
|
3334
|
+
"UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0Item",
|
|
3335
|
+
}) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0Item>;
|
|
3336
|
+
|
|
3337
|
+
export type UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0List =
|
|
3338
|
+
Array<UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0Item>;
|
|
3339
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0List =
|
|
3340
|
+
/*@__PURE__*/ S.Array(
|
|
3341
|
+
UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0Item,
|
|
3342
|
+
) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0List>;
|
|
3343
|
+
|
|
3344
|
+
export type UpdateTeamRequestDeploymentPolicyCase0DeploymentSources =
|
|
3345
|
+
| UpdateTeamRequestDeploymentPolicyCase0DeploymentSourcesCase0List
|
|
3346
|
+
| string;
|
|
3347
|
+
export const UpdateTeamRequestDeploymentPolicyCase0DeploymentSources =
|
|
3348
|
+
S.Unknown as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0DeploymentSources>;
|
|
3349
|
+
|
|
3350
|
+
/** Composable deployment-time policy. Each rule type holds a list of rules, one per environment scope. */
|
|
3351
|
+
export interface UpdateTeamRequestDeploymentPolicyCase0 {
|
|
3352
|
+
gitSources?: UpdateTeamRequestDeploymentPolicyCase0GitSources;
|
|
3353
|
+
deploymentSources?: UpdateTeamRequestDeploymentPolicyCase0DeploymentSources;
|
|
3354
|
+
}
|
|
3355
|
+
export const UpdateTeamRequestDeploymentPolicyCase0 = /*@__PURE__*/ S.suspend(
|
|
3356
|
+
() =>
|
|
3357
|
+
S.Struct({
|
|
3358
|
+
gitSources: S.optional(UpdateTeamRequestDeploymentPolicyCase0GitSources),
|
|
3359
|
+
deploymentSources: S.optional(
|
|
3360
|
+
UpdateTeamRequestDeploymentPolicyCase0DeploymentSources,
|
|
3361
|
+
),
|
|
3362
|
+
}),
|
|
3363
|
+
).annotate({
|
|
3364
|
+
identifier: "UpdateTeamRequestDeploymentPolicyCase0",
|
|
3365
|
+
}) as any as S.Schema<UpdateTeamRequestDeploymentPolicyCase0>;
|
|
3366
|
+
|
|
3367
|
+
export type UpdateTeamRequestDeploymentPolicy =
|
|
3368
|
+
| UpdateTeamRequestDeploymentPolicyCase0
|
|
3369
|
+
| string;
|
|
3370
|
+
export const UpdateTeamRequestDeploymentPolicy =
|
|
3371
|
+
S.Unknown as any as S.Schema<UpdateTeamRequestDeploymentPolicy>;
|
|
3372
|
+
|
|
3373
|
+
/** When enabled, deployment protection settings require stricter permissions (owner-only). */
|
|
3374
|
+
export interface UpdateTeamRequestStrictDeploymentProtectionSettings {
|
|
3375
|
+
/** Enable or disable strict deployment protection settings. */
|
|
3376
|
+
enabled: boolean;
|
|
3377
|
+
}
|
|
3378
|
+
export const UpdateTeamRequestStrictDeploymentProtectionSettings =
|
|
3379
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3380
|
+
S.Struct({
|
|
3381
|
+
enabled: S.Boolean,
|
|
3382
|
+
}),
|
|
3383
|
+
).annotate({
|
|
3384
|
+
identifier: "UpdateTeamRequestStrictDeploymentProtectionSettings",
|
|
3385
|
+
}) as any as S.Schema<UpdateTeamRequestStrictDeploymentProtectionSettings>;
|
|
3386
|
+
|
|
3387
|
+
/** When enabled, creating shareable links requires Owner role. */
|
|
3388
|
+
export interface UpdateTeamRequestStrictShareableLinks {
|
|
3389
|
+
/** Enable or disable requiring Owner role to create shareable links. */
|
|
3390
|
+
enabled: boolean;
|
|
3391
|
+
}
|
|
3392
|
+
export const UpdateTeamRequestStrictShareableLinks = /*@__PURE__*/ S.suspend(
|
|
3393
|
+
() =>
|
|
3394
|
+
S.Struct({
|
|
3395
|
+
enabled: S.Boolean,
|
|
3396
|
+
}),
|
|
3397
|
+
).annotate({
|
|
3398
|
+
identifier: "UpdateTeamRequestStrictShareableLinks",
|
|
3399
|
+
}) as any as S.Schema<UpdateTeamRequestStrictShareableLinks>;
|
|
3400
|
+
|
|
3401
|
+
/** When enabled, adding, changing, or removing project password protection requires Owner role. */
|
|
3402
|
+
export interface UpdateTeamRequestStrictPasswordProtectionSettings {
|
|
3403
|
+
/** Enable or disable requiring Owner role to change project password protection. */
|
|
3404
|
+
enabled: boolean;
|
|
3405
|
+
}
|
|
3406
|
+
export const UpdateTeamRequestStrictPasswordProtectionSettings =
|
|
3407
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3408
|
+
S.Struct({
|
|
3409
|
+
enabled: S.Boolean,
|
|
3410
|
+
}),
|
|
3411
|
+
).annotate({
|
|
3412
|
+
identifier: "UpdateTeamRequestStrictPasswordProtectionSettings",
|
|
3413
|
+
}) as any as S.Schema<UpdateTeamRequestStrictPasswordProtectionSettings>;
|
|
3414
|
+
|
|
3415
|
+
/** When enabled, creating and managing connectors requires Owner role. */
|
|
3416
|
+
export interface UpdateTeamRequestStrictConnectors {
|
|
3417
|
+
/** Enable or disable requiring Owner role to manage connectors. */
|
|
3418
|
+
enabled: boolean;
|
|
3419
|
+
}
|
|
3420
|
+
export const UpdateTeamRequestStrictConnectors = /*@__PURE__*/ S.suspend(() =>
|
|
3421
|
+
S.Struct({
|
|
3422
|
+
enabled: S.Boolean,
|
|
3423
|
+
}),
|
|
3424
|
+
).annotate({
|
|
3425
|
+
identifier: "UpdateTeamRequestStrictConnectors",
|
|
3426
|
+
}) as any as S.Schema<UpdateTeamRequestStrictConnectors>;
|
|
3427
|
+
|
|
3428
|
+
/** The NSNB preference for the team. */
|
|
3429
|
+
export type UpdateTeamRequestNsnbConfigCase0Preference =
|
|
3430
|
+
| "auto-approval"
|
|
3431
|
+
| "manual-approval"
|
|
3432
|
+
| "block";
|
|
3433
|
+
export const UpdateTeamRequestNsnbConfigCase0Preference = S.String;
|
|
3434
|
+
|
|
3435
|
+
/** NSNB configuration for the team. */
|
|
3436
|
+
export interface UpdateTeamRequestNsnbConfigCase0 {
|
|
3437
|
+
/** The NSNB preference for the team. */
|
|
3438
|
+
preference: UpdateTeamRequestNsnbConfigCase0Preference | (string & {});
|
|
3439
|
+
}
|
|
3440
|
+
export const UpdateTeamRequestNsnbConfigCase0 = /*@__PURE__*/ S.suspend(() =>
|
|
3441
|
+
S.Struct({
|
|
3442
|
+
preference: UpdateTeamRequestNsnbConfigCase0Preference,
|
|
3443
|
+
}),
|
|
3444
|
+
).annotate({
|
|
3445
|
+
identifier: "UpdateTeamRequestNsnbConfigCase0",
|
|
3446
|
+
}) as any as S.Schema<UpdateTeamRequestNsnbConfigCase0>;
|
|
3447
|
+
|
|
3448
|
+
export type UpdateTeamRequestNsnbConfig =
|
|
3449
|
+
| UpdateTeamRequestNsnbConfigCase0
|
|
3450
|
+
| string;
|
|
3451
|
+
export const UpdateTeamRequestNsnbConfig =
|
|
3452
|
+
S.Unknown as any as S.Schema<UpdateTeamRequestNsnbConfig>;
|
|
3453
|
+
|
|
3454
|
+
export type UpdateTeamRequestDefaultProjectJobsCase0LintTargetsList =
|
|
3455
|
+
Array<string>;
|
|
3456
|
+
export const UpdateTeamRequestDefaultProjectJobsCase0LintTargetsList =
|
|
3457
|
+
/*@__PURE__*/ S.Array(
|
|
3458
|
+
S.String,
|
|
3459
|
+
) as any as S.Schema<UpdateTeamRequestDefaultProjectJobsCase0LintTargetsList>;
|
|
3460
|
+
|
|
3461
|
+
export interface UpdateTeamRequestDefaultProjectJobsCase0Lint {
|
|
3462
|
+
targets: UpdateTeamRequestDefaultProjectJobsCase0LintTargetsList;
|
|
3463
|
+
}
|
|
3464
|
+
export const UpdateTeamRequestDefaultProjectJobsCase0Lint =
|
|
3465
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3466
|
+
S.Struct({
|
|
3467
|
+
targets: UpdateTeamRequestDefaultProjectJobsCase0LintTargetsList,
|
|
3468
|
+
}),
|
|
3469
|
+
).annotate({
|
|
3470
|
+
identifier: "UpdateTeamRequestDefaultProjectJobsCase0Lint",
|
|
3471
|
+
}) as any as S.Schema<UpdateTeamRequestDefaultProjectJobsCase0Lint>;
|
|
3472
|
+
|
|
3473
|
+
export type UpdateTeamRequestDefaultProjectJobsCase0TypecheckTargetsList =
|
|
3474
|
+
Array<string>;
|
|
3475
|
+
export const UpdateTeamRequestDefaultProjectJobsCase0TypecheckTargetsList =
|
|
3476
|
+
/*@__PURE__*/ S.Array(
|
|
3477
|
+
S.String,
|
|
3478
|
+
) as any as S.Schema<UpdateTeamRequestDefaultProjectJobsCase0TypecheckTargetsList>;
|
|
3479
|
+
|
|
3480
|
+
export interface UpdateTeamRequestDefaultProjectJobsCase0Typecheck {
|
|
3481
|
+
targets: UpdateTeamRequestDefaultProjectJobsCase0TypecheckTargetsList;
|
|
3482
|
+
}
|
|
3483
|
+
export const UpdateTeamRequestDefaultProjectJobsCase0Typecheck =
|
|
3484
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3485
|
+
S.Struct({
|
|
3486
|
+
targets: UpdateTeamRequestDefaultProjectJobsCase0TypecheckTargetsList,
|
|
3487
|
+
}),
|
|
3488
|
+
).annotate({
|
|
3489
|
+
identifier: "UpdateTeamRequestDefaultProjectJobsCase0Typecheck",
|
|
3490
|
+
}) as any as S.Schema<UpdateTeamRequestDefaultProjectJobsCase0Typecheck>;
|
|
3491
|
+
|
|
3492
|
+
/** Default job configuration applied to new projects created in this team. */
|
|
3493
|
+
export interface UpdateTeamRequestDefaultProjectJobsCase0 {
|
|
3494
|
+
lint?: UpdateTeamRequestDefaultProjectJobsCase0Lint;
|
|
3495
|
+
typecheck?: UpdateTeamRequestDefaultProjectJobsCase0Typecheck;
|
|
3496
|
+
}
|
|
3497
|
+
export const UpdateTeamRequestDefaultProjectJobsCase0 = /*@__PURE__*/ S.suspend(
|
|
3498
|
+
() =>
|
|
3499
|
+
S.Struct({
|
|
3500
|
+
lint: S.optional(UpdateTeamRequestDefaultProjectJobsCase0Lint),
|
|
3501
|
+
typecheck: S.optional(UpdateTeamRequestDefaultProjectJobsCase0Typecheck),
|
|
3502
|
+
}),
|
|
3503
|
+
).annotate({
|
|
3504
|
+
identifier: "UpdateTeamRequestDefaultProjectJobsCase0",
|
|
3505
|
+
}) as any as S.Schema<UpdateTeamRequestDefaultProjectJobsCase0>;
|
|
3506
|
+
|
|
3507
|
+
export type UpdateTeamRequestDefaultProjectJobs =
|
|
3508
|
+
| UpdateTeamRequestDefaultProjectJobsCase0
|
|
3509
|
+
| string;
|
|
3510
|
+
export const UpdateTeamRequestDefaultProjectJobs =
|
|
3511
|
+
S.Unknown as any as S.Schema<UpdateTeamRequestDefaultProjectJobs>;
|
|
3512
|
+
|
|
3513
|
+
/** Default build machine type for new builds: standard, enhanced, turbo, or elastic. */
|
|
3514
|
+
export type UpdateTeamRequestResourceConfigBuildMachineDefault =
|
|
3515
|
+
| "basic"
|
|
3516
|
+
| "enhanced"
|
|
3517
|
+
| "turbo"
|
|
3518
|
+
| "standard"
|
|
3519
|
+
| "elastic";
|
|
3520
|
+
export const UpdateTeamRequestResourceConfigBuildMachineDefault = S.String;
|
|
3521
|
+
|
|
3522
|
+
/** Build machine configuration. */
|
|
3523
|
+
export interface UpdateTeamRequestResourceConfigBuildMachine {
|
|
3524
|
+
/** Default build machine type for new builds: standard, enhanced, turbo, or elastic. */
|
|
3525
|
+
default?: UpdateTeamRequestResourceConfigBuildMachineDefault | (string & {});
|
|
3526
|
+
}
|
|
3527
|
+
export const UpdateTeamRequestResourceConfigBuildMachine =
|
|
3528
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3529
|
+
S.Struct({
|
|
3530
|
+
default: S.optional(UpdateTeamRequestResourceConfigBuildMachineDefault),
|
|
3531
|
+
}),
|
|
3532
|
+
).annotate({
|
|
3533
|
+
identifier: "UpdateTeamRequestResourceConfigBuildMachine",
|
|
3534
|
+
}) as any as S.Schema<UpdateTeamRequestResourceConfigBuildMachine>;
|
|
3535
|
+
|
|
3536
|
+
/** Resource configuration for the team. */
|
|
3537
|
+
export interface UpdateTeamRequestResourceConfig {
|
|
3538
|
+
/** Build machine configuration. */
|
|
3539
|
+
buildMachine?: UpdateTeamRequestResourceConfigBuildMachine;
|
|
3540
|
+
}
|
|
3541
|
+
export const UpdateTeamRequestResourceConfig = /*@__PURE__*/ S.suspend(() =>
|
|
3542
|
+
S.Struct({
|
|
3543
|
+
buildMachine: S.optional(UpdateTeamRequestResourceConfigBuildMachine),
|
|
3544
|
+
}),
|
|
3545
|
+
).annotate({
|
|
3546
|
+
identifier: "UpdateTeamRequestResourceConfig",
|
|
3547
|
+
}) as any as S.Schema<UpdateTeamRequestResourceConfig>;
|
|
3548
|
+
|
|
3549
|
+
export interface UpdateTeamRequest {
|
|
3550
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
3551
|
+
teamId: string;
|
|
3552
|
+
/** The Team slug to perform the request on behalf of. */
|
|
3553
|
+
slug?: string;
|
|
3554
|
+
/** The hash value of an uploaded image, or `null` to clear the avatar. */
|
|
3555
|
+
avatar?: string | null;
|
|
3556
|
+
/** A short text that describes the team. */
|
|
3557
|
+
description?: string;
|
|
3558
|
+
emailDomain?: string | null;
|
|
3559
|
+
/** The name of the team. */
|
|
3560
|
+
name?: string;
|
|
3561
|
+
/** Suffix that will be used for all preview deployments. */
|
|
3562
|
+
previewDeploymentSuffix?: string | null;
|
|
3563
|
+
/** Create a new invite code and replace the current one. */
|
|
3564
|
+
regenerateInviteCode?: boolean;
|
|
3565
|
+
saml?: UpdateTeamRequestSaml;
|
|
3566
|
+
/** Enable preview toolbar: one of on, off or default. */
|
|
3567
|
+
enablePreviewFeedback?: string;
|
|
3568
|
+
/** Enable production toolbar: one of on, off or default. */
|
|
3569
|
+
enableProductionFeedback?: string;
|
|
3570
|
+
/** Sensitive environment variable policy: one of on, off or default. */
|
|
3571
|
+
sensitiveEnvironmentVariablePolicy?: string;
|
|
3572
|
+
/** Require production secrets to be in their own environment group: one of on, off or default. */
|
|
3573
|
+
disjunctiveProductionSecretPolicy?: string;
|
|
3574
|
+
/** Whether or not remote caching is enabled for the team */
|
|
3575
|
+
remoteCaching?: UpdateTeamRequestRemoteCaching;
|
|
3576
|
+
/** Display or hide IP addresses in Monitoring queries. */
|
|
3577
|
+
hideIpAddresses?: boolean;
|
|
3578
|
+
/** Display or hide IP addresses in Log Drains. */
|
|
3579
|
+
hideIpAddressesInLogDrains?: boolean;
|
|
3580
|
+
/** Controls who can request access to protected deployments. */
|
|
3581
|
+
dpAccessRequestsMode?: UpdateTeamRequestDpAccessRequestsMode | (string & {});
|
|
3582
|
+
/** When enabled, all projects in the team require commits to be signed and verified by the git provider before deployments will be created. */
|
|
3583
|
+
requireVerifiedCommits?: boolean;
|
|
3584
|
+
/** Default for projects in the team. When `true`, projects in this team will not emit GitHub repository-dispatch events on deployment events unless the project explicitly overrides this setting. */
|
|
3585
|
+
disableRepositoryDispatchEvents?: boolean;
|
|
3586
|
+
/** Default deployment protection settings for new projects. */
|
|
3587
|
+
defaultDeploymentProtection?: UpdateTeamRequestDefaultDeploymentProtection;
|
|
3588
|
+
/** Default Passport configuration for new projects. */
|
|
3589
|
+
defaultPassport?: UpdateTeamRequestDefaultPassport | null;
|
|
3590
|
+
defaultExpirationSettings?: UpdateTeamRequestDefaultExpirationSettings;
|
|
3591
|
+
deploymentPolicy?: UpdateTeamRequestDeploymentPolicy;
|
|
3592
|
+
/** When enabled, deployment protection settings require stricter permissions (owner-only). */
|
|
3593
|
+
strictDeploymentProtectionSettings?: UpdateTeamRequestStrictDeploymentProtectionSettings;
|
|
3594
|
+
/** When enabled, creating shareable links requires Owner role. */
|
|
3595
|
+
strictShareableLinks?: UpdateTeamRequestStrictShareableLinks;
|
|
3596
|
+
/** When enabled, adding, changing, or removing project password protection requires Owner role. */
|
|
3597
|
+
strictPasswordProtectionSettings?: UpdateTeamRequestStrictPasswordProtectionSettings;
|
|
3598
|
+
/** When enabled, creating and managing connectors requires Owner role. */
|
|
3599
|
+
strictConnectors?: UpdateTeamRequestStrictConnectors;
|
|
3600
|
+
nsnbConfig?: UpdateTeamRequestNsnbConfig;
|
|
3601
|
+
defaultProjectJobs?: UpdateTeamRequestDefaultProjectJobs;
|
|
3602
|
+
/** Resource configuration for the team. */
|
|
3603
|
+
resourceConfig?: UpdateTeamRequestResourceConfig;
|
|
3604
|
+
}
|
|
3605
|
+
export const UpdateTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3606
|
+
S.Struct({
|
|
3607
|
+
teamId: S.String.pipe(T.Label()),
|
|
3608
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
3609
|
+
avatar: S.optional(S.NullOr(S.String)),
|
|
3610
|
+
description: S.optional(S.String),
|
|
3611
|
+
emailDomain: S.optional(S.NullOr(S.String)),
|
|
3612
|
+
name: S.optional(S.String),
|
|
3613
|
+
previewDeploymentSuffix: S.optional(S.NullOr(S.String)),
|
|
3614
|
+
regenerateInviteCode: S.optional(S.Boolean),
|
|
3615
|
+
saml: S.optional(UpdateTeamRequestSaml),
|
|
3616
|
+
enablePreviewFeedback: S.optional(S.String),
|
|
3617
|
+
enableProductionFeedback: S.optional(S.String),
|
|
3618
|
+
sensitiveEnvironmentVariablePolicy: S.optional(S.String),
|
|
3619
|
+
disjunctiveProductionSecretPolicy: S.optional(S.String),
|
|
3620
|
+
remoteCaching: S.optional(UpdateTeamRequestRemoteCaching),
|
|
3621
|
+
hideIpAddresses: S.optional(S.Boolean),
|
|
3622
|
+
hideIpAddressesInLogDrains: S.optional(S.Boolean),
|
|
3623
|
+
dpAccessRequestsMode: S.optional(UpdateTeamRequestDpAccessRequestsMode),
|
|
3624
|
+
requireVerifiedCommits: S.optional(S.Boolean),
|
|
3625
|
+
disableRepositoryDispatchEvents: S.optional(S.Boolean),
|
|
3626
|
+
defaultDeploymentProtection: S.optional(
|
|
3627
|
+
UpdateTeamRequestDefaultDeploymentProtection,
|
|
3628
|
+
),
|
|
3629
|
+
defaultPassport: S.optional(S.NullOr(UpdateTeamRequestDefaultPassport)),
|
|
3630
|
+
defaultExpirationSettings: S.optional(
|
|
3631
|
+
UpdateTeamRequestDefaultExpirationSettings,
|
|
3632
|
+
),
|
|
3633
|
+
deploymentPolicy: S.optional(UpdateTeamRequestDeploymentPolicy),
|
|
3634
|
+
strictDeploymentProtectionSettings: S.optional(
|
|
3635
|
+
UpdateTeamRequestStrictDeploymentProtectionSettings,
|
|
3636
|
+
),
|
|
3637
|
+
strictShareableLinks: S.optional(UpdateTeamRequestStrictShareableLinks),
|
|
3638
|
+
strictPasswordProtectionSettings: S.optional(
|
|
3639
|
+
UpdateTeamRequestStrictPasswordProtectionSettings,
|
|
3640
|
+
),
|
|
3641
|
+
strictConnectors: S.optional(UpdateTeamRequestStrictConnectors),
|
|
3642
|
+
nsnbConfig: S.optional(UpdateTeamRequestNsnbConfig),
|
|
3643
|
+
defaultProjectJobs: S.optional(UpdateTeamRequestDefaultProjectJobs),
|
|
3644
|
+
resourceConfig: S.optional(UpdateTeamRequestResourceConfig),
|
|
3645
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/v2/teams/{teamId}", code: 200 })),
|
|
3646
|
+
).annotate({
|
|
3647
|
+
identifier: "UpdateTeamRequest",
|
|
3648
|
+
}) as any as S.Schema<UpdateTeamRequest>;
|
|
3649
|
+
|
|
3650
|
+
export type UpdateTeamMemberRequestTeamPermissionsItem =
|
|
3651
|
+
| "ConnectorManager"
|
|
3652
|
+
| "IntegrationManager"
|
|
3653
|
+
| "CreateProject"
|
|
3654
|
+
| "FullProductionDeployment"
|
|
3655
|
+
| "UsageViewer"
|
|
3656
|
+
| "EnvVariableManager"
|
|
3657
|
+
| "EnvironmentManager"
|
|
3658
|
+
| "WorkflowDecryptor"
|
|
3659
|
+
| "OrgAdmin"
|
|
3660
|
+
| "OrgViewer"
|
|
3661
|
+
| "AiGatewaySettings"
|
|
3662
|
+
| "AiGatewayCredits"
|
|
3663
|
+
| "AiGatewayApiKeyOwnedBySelf"
|
|
3664
|
+
| "AiGatewayBudgetManager"
|
|
3665
|
+
| "AiGatewayTranscriptsManager"
|
|
3666
|
+
| "AiGatewayTranscriptsViewer"
|
|
3667
|
+
| "V0Builder"
|
|
3668
|
+
| "V0Chatter"
|
|
3669
|
+
| "V0Viewer";
|
|
3670
|
+
export const UpdateTeamMemberRequestTeamPermissionsItem = S.String;
|
|
3671
|
+
|
|
3672
|
+
/** The team permissions to set for the member. Permissions must be compatible with the team roles assigned to the member. */
|
|
3673
|
+
export type UpdateTeamMemberRequestTeamPermissionsList = Array<
|
|
3674
|
+
UpdateTeamMemberRequestTeamPermissionsItem | (string & {})
|
|
3675
|
+
>;
|
|
3676
|
+
export const UpdateTeamMemberRequestTeamPermissionsList = /*@__PURE__*/ S.Array(
|
|
3677
|
+
UpdateTeamMemberRequestTeamPermissionsItem,
|
|
3678
|
+
) as any as S.Schema<UpdateTeamMemberRequestTeamPermissionsList>;
|
|
3679
|
+
|
|
3680
|
+
/** The project role of the member that will be added. \"null\" will remove this project level role. */
|
|
3681
|
+
export type UpdateTeamMemberRequestProjectsItemRole =
|
|
3682
|
+
| "ADMIN"
|
|
3683
|
+
| "PROJECT_VIEWER"
|
|
3684
|
+
| "PROJECT_DEVELOPER";
|
|
3685
|
+
export const UpdateTeamMemberRequestProjectsItemRole = S.String;
|
|
3686
|
+
|
|
3687
|
+
export interface UpdateTeamMemberRequestProjectsItem {
|
|
3688
|
+
/** The ID of the project. */
|
|
3689
|
+
projectId: string;
|
|
3690
|
+
/** The project role of the member that will be added. \"null\" will remove this project level role. */
|
|
3691
|
+
role: UpdateTeamMemberRequestProjectsItemRole | (string & {}) | null;
|
|
3692
|
+
}
|
|
3693
|
+
export const UpdateTeamMemberRequestProjectsItem = /*@__PURE__*/ S.suspend(() =>
|
|
3694
|
+
S.Struct({
|
|
3695
|
+
projectId: S.String,
|
|
3696
|
+
role: S.NullOr(UpdateTeamMemberRequestProjectsItemRole),
|
|
3697
|
+
}),
|
|
3698
|
+
).annotate({
|
|
3699
|
+
identifier: "UpdateTeamMemberRequestProjectsItem",
|
|
3700
|
+
}) as any as S.Schema<UpdateTeamMemberRequestProjectsItem>;
|
|
3701
|
+
|
|
3702
|
+
export type UpdateTeamMemberRequestProjectsList =
|
|
3703
|
+
Array<UpdateTeamMemberRequestProjectsItem>;
|
|
3704
|
+
export const UpdateTeamMemberRequestProjectsList = /*@__PURE__*/ S.Array(
|
|
3705
|
+
UpdateTeamMemberRequestProjectsItem,
|
|
3706
|
+
) as any as S.Schema<UpdateTeamMemberRequestProjectsList>;
|
|
3707
|
+
|
|
3708
|
+
export interface UpdateTeamMemberRequestJoinedFrom {
|
|
3709
|
+
ssoUserId?: unknown | null;
|
|
3710
|
+
}
|
|
3711
|
+
export const UpdateTeamMemberRequestJoinedFrom = /*@__PURE__*/ S.suspend(() =>
|
|
3712
|
+
S.Struct({
|
|
3713
|
+
ssoUserId: S.optional(S.NullOr(S.Unknown)),
|
|
3714
|
+
}),
|
|
3715
|
+
).annotate({
|
|
3716
|
+
identifier: "UpdateTeamMemberRequestJoinedFrom",
|
|
3717
|
+
}) as any as S.Schema<UpdateTeamMemberRequestJoinedFrom>;
|
|
3718
|
+
|
|
3719
|
+
export interface UpdateTeamMemberRequest {
|
|
3720
|
+
teamId: string;
|
|
3721
|
+
/** The ID of the member. */
|
|
3722
|
+
uid: string;
|
|
3723
|
+
/** Accept a user who requested access to the team. */
|
|
3724
|
+
confirmed?: boolean;
|
|
3725
|
+
/** The role in the team of the member. */
|
|
3726
|
+
role?: string;
|
|
3727
|
+
/** The team permissions to set for the member. Permissions must be compatible with the team roles assigned to the member. */
|
|
3728
|
+
teamPermissions?: UpdateTeamMemberRequestTeamPermissionsList;
|
|
3729
|
+
projects?: UpdateTeamMemberRequestProjectsList;
|
|
3730
|
+
joinedFrom?: UpdateTeamMemberRequestJoinedFrom;
|
|
3731
|
+
}
|
|
3732
|
+
export const UpdateTeamMemberRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3733
|
+
S.Struct({
|
|
3734
|
+
teamId: S.String.pipe(T.Label()),
|
|
3735
|
+
uid: S.String.pipe(T.Label()),
|
|
3736
|
+
confirmed: S.optional(S.Boolean),
|
|
3737
|
+
role: S.optional(S.String),
|
|
3738
|
+
teamPermissions: S.optional(UpdateTeamMemberRequestTeamPermissionsList),
|
|
3739
|
+
projects: S.optional(UpdateTeamMemberRequestProjectsList),
|
|
3740
|
+
joinedFrom: S.optional(UpdateTeamMemberRequestJoinedFrom),
|
|
3741
|
+
}).pipe(
|
|
3742
|
+
T.Http({
|
|
3743
|
+
method: "PATCH",
|
|
3744
|
+
uri: "/v1/teams/{teamId}/members/{uid}",
|
|
3745
|
+
code: 200,
|
|
3746
|
+
}),
|
|
3747
|
+
),
|
|
3748
|
+
).annotate({
|
|
3749
|
+
identifier: "UpdateTeamMemberRequest",
|
|
3750
|
+
}) as any as S.Schema<UpdateTeamMemberRequest>;
|
|
3751
|
+
|
|
3752
|
+
export interface UpdateTeamMemberResponse {
|
|
3753
|
+
/** ID of the team. */
|
|
3754
|
+
id: string;
|
|
3755
|
+
}
|
|
3756
|
+
export const UpdateTeamMemberResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3757
|
+
S.Struct({
|
|
3758
|
+
id: S.String,
|
|
3759
|
+
}),
|
|
3760
|
+
).annotate({
|
|
3761
|
+
identifier: "UpdateTeamMemberResponse",
|
|
3762
|
+
}) as any as S.Schema<UpdateTeamMemberResponse>;
|
|
3763
|
+
|
|
3764
|
+
export type CreateTeamError =
|
|
3765
|
+
| BadRequest
|
|
3766
|
+
| Forbidden
|
|
3767
|
+
| NotFound
|
|
3768
|
+
| Conflict
|
|
3769
|
+
| VercelOpError;
|
|
3770
|
+
/** Create a Team Create a new Team under your account. You need to send a POST request with the desired Team slug, and optionally the Team name. */
|
|
3771
|
+
export const createTeam: API.OperationMethod<
|
|
3772
|
+
CreateTeamRequest,
|
|
3773
|
+
CreateTeamResponse,
|
|
3774
|
+
CreateTeamError,
|
|
3775
|
+
VercelOpContext
|
|
3776
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3777
|
+
input: CreateTeamRequest,
|
|
3778
|
+
output: CreateTeamResponse,
|
|
3779
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
3780
|
+
protocol: VercelProtocol,
|
|
3781
|
+
retry: Retry.Retry,
|
|
3782
|
+
}));
|
|
3783
|
+
|
|
3784
|
+
export type CreateTeamDsyncRoleError = BadRequest | Forbidden | VercelOpError;
|
|
3785
|
+
/** Update Team Directory Sync Role Mappings Update the Directory Sync role mappings for a Team. This endpoint allows updating the mapping between directory groups and team roles or access groups. */
|
|
3786
|
+
export const createTeamDsyncRole: API.OperationMethod<
|
|
3787
|
+
CreateTeamDsyncRoleRequest,
|
|
3788
|
+
CreateTeamDsyncRoleResponse,
|
|
3789
|
+
CreateTeamDsyncRoleError,
|
|
3790
|
+
VercelOpContext
|
|
3791
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3792
|
+
input: CreateTeamDsyncRoleRequest,
|
|
3793
|
+
output: CreateTeamDsyncRoleResponse,
|
|
3794
|
+
errors: [BadRequest, Forbidden],
|
|
3795
|
+
protocol: VercelProtocol,
|
|
3796
|
+
retry: Retry.Retry,
|
|
3797
|
+
}));
|
|
3798
|
+
|
|
3799
|
+
export type DeleteMicrofrontendsGroupError =
|
|
3800
|
+
| BadRequest
|
|
3801
|
+
| Forbidden
|
|
3802
|
+
| NotFound
|
|
3803
|
+
| VercelOpError;
|
|
3804
|
+
/** Delete a microfrontends group Deletes a microfrontends group from the team associated with the group ID. */
|
|
3805
|
+
export const deleteMicrofrontendsGroup: API.OperationMethod<
|
|
3806
|
+
DeleteMicrofrontendsGroupRequest,
|
|
3807
|
+
DeleteMicrofrontendsGroupResponse,
|
|
3808
|
+
DeleteMicrofrontendsGroupError,
|
|
3809
|
+
VercelOpContext
|
|
3810
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3811
|
+
input: DeleteMicrofrontendsGroupRequest,
|
|
3812
|
+
output: DeleteMicrofrontendsGroupResponse,
|
|
3813
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3814
|
+
protocol: VercelProtocol,
|
|
3815
|
+
retry: Retry.Retry,
|
|
3816
|
+
}));
|
|
3817
|
+
|
|
3818
|
+
export type DeleteTeamError =
|
|
3819
|
+
| BadRequest
|
|
3820
|
+
| PaymentRequired
|
|
3821
|
+
| Forbidden
|
|
3822
|
+
| Conflict
|
|
3823
|
+
| VercelOpError;
|
|
3824
|
+
/** Delete a Team Delete a team under your account. You need to send a `DELETE` request with the desired team `id`. An optional array of reasons for deletion may also be sent. */
|
|
3825
|
+
export const deleteTeam: API.OperationMethod<
|
|
3826
|
+
DeleteTeamRequest,
|
|
3827
|
+
DeleteTeamResponse,
|
|
3828
|
+
DeleteTeamError,
|
|
3829
|
+
VercelOpContext
|
|
3830
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3831
|
+
input: DeleteTeamRequest,
|
|
3832
|
+
output: DeleteTeamResponse,
|
|
3833
|
+
errors: [BadRequest, PaymentRequired, Forbidden, Conflict],
|
|
3834
|
+
protocol: VercelProtocol,
|
|
3835
|
+
retry: Retry.Retry,
|
|
3836
|
+
}));
|
|
3837
|
+
|
|
3838
|
+
export type DeleteTeamInviteCodeError =
|
|
3839
|
+
| BadRequest
|
|
3840
|
+
| Forbidden
|
|
3841
|
+
| NotFound
|
|
3842
|
+
| VercelOpError;
|
|
3843
|
+
/** Delete a Team invite code Delete an active Team invite code. */
|
|
3844
|
+
export const deleteTeamInviteCode: API.OperationMethod<
|
|
3845
|
+
DeleteTeamInviteCodeRequest,
|
|
3846
|
+
DeleteTeamInviteCodeResponse,
|
|
3847
|
+
DeleteTeamInviteCodeError,
|
|
3848
|
+
VercelOpContext
|
|
3849
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3850
|
+
input: DeleteTeamInviteCodeRequest,
|
|
3851
|
+
output: DeleteTeamInviteCodeResponse,
|
|
3852
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3853
|
+
protocol: VercelProtocol,
|
|
3854
|
+
retry: Retry.Retry,
|
|
3855
|
+
}));
|
|
3856
|
+
|
|
3857
|
+
export type GetTeamError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
3858
|
+
/** Get a Team Get information for the Team specified by the `teamId` parameter. */
|
|
3859
|
+
export const getTeam: API.OperationMethod<
|
|
3860
|
+
GetTeamRequest,
|
|
3861
|
+
Team,
|
|
3862
|
+
GetTeamError,
|
|
3863
|
+
VercelOpContext
|
|
3864
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3865
|
+
input: GetTeamRequest,
|
|
3866
|
+
output: Team,
|
|
3867
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3868
|
+
protocol: VercelProtocol,
|
|
3869
|
+
retry: Retry.Retry,
|
|
3870
|
+
}));
|
|
3871
|
+
|
|
3872
|
+
export type GetTeamAccessRequestError =
|
|
3873
|
+
| BadRequest
|
|
3874
|
+
| Forbidden
|
|
3875
|
+
| NotFound
|
|
3876
|
+
| VercelOpError;
|
|
3877
|
+
/** Get access request status Check the status of a join request. It'll respond with a 404 if the request has been declined. If no `userId` path segment was provided, this endpoint will instead return the status of the authenticated user. */
|
|
3878
|
+
export const getTeamAccessRequest: API.OperationMethod<
|
|
3879
|
+
GetTeamAccessRequestRequest,
|
|
3880
|
+
GetTeamAccessRequestResponse,
|
|
3881
|
+
GetTeamAccessRequestError,
|
|
3882
|
+
VercelOpContext
|
|
3883
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3884
|
+
input: GetTeamAccessRequestRequest,
|
|
3885
|
+
output: GetTeamAccessRequestResponse,
|
|
3886
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3887
|
+
protocol: VercelProtocol,
|
|
3888
|
+
retry: Retry.Retry,
|
|
3889
|
+
}));
|
|
3890
|
+
|
|
3891
|
+
export type GetTeamMembersError =
|
|
3892
|
+
| BadRequest
|
|
3893
|
+
| Forbidden
|
|
3894
|
+
| NotFound
|
|
3895
|
+
| VercelOpError;
|
|
3896
|
+
/** List team members Get a paginated list of team members for the provided team. */
|
|
3897
|
+
export const getTeamMembers: API.OperationMethod<
|
|
3898
|
+
GetTeamMembersRequest,
|
|
3899
|
+
GetTeamMembersResponse,
|
|
3900
|
+
GetTeamMembersError,
|
|
3901
|
+
VercelOpContext
|
|
3902
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3903
|
+
input: GetTeamMembersRequest,
|
|
3904
|
+
output: GetTeamMembersResponse,
|
|
3905
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3906
|
+
protocol: VercelProtocol,
|
|
3907
|
+
retry: Retry.Retry,
|
|
3908
|
+
}));
|
|
3909
|
+
|
|
3910
|
+
export type GetTeamsError = BadRequest | Forbidden | VercelOpError;
|
|
3911
|
+
/** List all teams Get a paginated list of all the Teams the authenticated User is a member of. */
|
|
3912
|
+
export const getTeams: API.OperationMethod<
|
|
3913
|
+
GetTeamsRequest,
|
|
3914
|
+
GetTeamsResponse,
|
|
3915
|
+
GetTeamsError,
|
|
3916
|
+
VercelOpContext
|
|
3917
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3918
|
+
input: GetTeamsRequest,
|
|
3919
|
+
output: GetTeamsResponse,
|
|
3920
|
+
errors: [BadRequest, Forbidden],
|
|
3921
|
+
protocol: VercelProtocol,
|
|
3922
|
+
retry: Retry.Retry,
|
|
3923
|
+
}));
|
|
3924
|
+
|
|
3925
|
+
export type InviteUserToTeamError = BadRequest | Forbidden | VercelOpError;
|
|
3926
|
+
/** Invite a user Invite a user to join the team specified in the URL. The authenticated user needs to be an `OWNER` in order to successfully invoke this endpoint. The user to be invited must be specified by email. */
|
|
3927
|
+
export const inviteUserToTeam: API.OperationMethod<
|
|
3928
|
+
InviteUserToTeamRequest,
|
|
3929
|
+
InvitedTeamMember,
|
|
3930
|
+
InviteUserToTeamError,
|
|
3931
|
+
VercelOpContext
|
|
3932
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3933
|
+
input: InviteUserToTeamRequest,
|
|
3934
|
+
output: InvitedTeamMember,
|
|
3935
|
+
errors: [BadRequest, Forbidden],
|
|
3936
|
+
protocol: VercelProtocol,
|
|
3937
|
+
retry: Retry.Retry,
|
|
3938
|
+
}));
|
|
3939
|
+
|
|
3940
|
+
export type JoinTeamError =
|
|
3941
|
+
| BadRequest
|
|
3942
|
+
| PaymentRequired
|
|
3943
|
+
| Forbidden
|
|
3944
|
+
| NotFound
|
|
3945
|
+
| VercelOpError;
|
|
3946
|
+
/** Join a team Join a team with a provided invite code or team ID. */
|
|
3947
|
+
export const joinTeam: API.OperationMethod<
|
|
3948
|
+
JoinTeamRequest,
|
|
3949
|
+
JoinTeamResponse,
|
|
3950
|
+
JoinTeamError,
|
|
3951
|
+
VercelOpContext
|
|
3952
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3953
|
+
input: JoinTeamRequest,
|
|
3954
|
+
output: JoinTeamResponse,
|
|
3955
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
3956
|
+
protocol: VercelProtocol,
|
|
3957
|
+
retry: Retry.Retry,
|
|
3958
|
+
}));
|
|
3959
|
+
|
|
3960
|
+
export type RemoveTeamMemberError =
|
|
3961
|
+
| BadRequest
|
|
3962
|
+
| Forbidden
|
|
3963
|
+
| NotFound
|
|
3964
|
+
| VercelOpError;
|
|
3965
|
+
/** Remove a Team Member Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team. Directory Sync members can be removed when their directory email is absent or does not match the user's primary or verified secondary emails. */
|
|
3966
|
+
export const removeTeamMember: API.OperationMethod<
|
|
3967
|
+
RemoveTeamMemberRequest,
|
|
3968
|
+
RemoveTeamMemberResponse,
|
|
3969
|
+
RemoveTeamMemberError,
|
|
3970
|
+
VercelOpContext
|
|
3971
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3972
|
+
input: RemoveTeamMemberRequest,
|
|
3973
|
+
output: RemoveTeamMemberResponse,
|
|
3974
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3975
|
+
protocol: VercelProtocol,
|
|
3976
|
+
retry: Retry.Retry,
|
|
3977
|
+
}));
|
|
3978
|
+
|
|
3979
|
+
export type RequestAccessToTeamError =
|
|
3980
|
+
| BadRequest
|
|
3981
|
+
| Forbidden
|
|
3982
|
+
| NotFound
|
|
3983
|
+
| VercelOpError;
|
|
3984
|
+
/** Request access to a team Request access to a team as a member. An owner has to approve the request. Only 100 users can request access to a team at the same time. */
|
|
3985
|
+
export const requestAccessToTeam: API.OperationMethod<
|
|
3986
|
+
RequestAccessToTeamRequest,
|
|
3987
|
+
RequestAccessToTeamResponse,
|
|
3988
|
+
RequestAccessToTeamError,
|
|
3989
|
+
VercelOpContext
|
|
3990
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3991
|
+
input: RequestAccessToTeamRequest,
|
|
3992
|
+
output: RequestAccessToTeamResponse,
|
|
3993
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3994
|
+
protocol: VercelProtocol,
|
|
3995
|
+
retry: Retry.Retry,
|
|
3996
|
+
}));
|
|
3997
|
+
|
|
3998
|
+
export type UpdateMicrofrontendsGroupError =
|
|
3999
|
+
| BadRequest
|
|
4000
|
+
| Forbidden
|
|
4001
|
+
| NotFound
|
|
4002
|
+
| VercelOpError;
|
|
4003
|
+
/** Update a microfrontends group Updates a microfrontends group's settings. */
|
|
4004
|
+
export const updateMicrofrontendsGroup: API.OperationMethod<
|
|
4005
|
+
UpdateMicrofrontendsGroupRequest,
|
|
4006
|
+
UpdateMicrofrontendsGroupResponse,
|
|
4007
|
+
UpdateMicrofrontendsGroupError,
|
|
4008
|
+
VercelOpContext
|
|
4009
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4010
|
+
input: UpdateMicrofrontendsGroupRequest,
|
|
4011
|
+
output: UpdateMicrofrontendsGroupResponse,
|
|
4012
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
4013
|
+
protocol: VercelProtocol,
|
|
4014
|
+
retry: Retry.Retry,
|
|
4015
|
+
}));
|
|
4016
|
+
|
|
4017
|
+
export type UpdateTeamError =
|
|
4018
|
+
| BadRequest
|
|
4019
|
+
| PaymentRequired
|
|
4020
|
+
| Forbidden
|
|
4021
|
+
| VercelOpError;
|
|
4022
|
+
/** Update a Team Update the information of a Team specified by the `teamId` parameter. The request body should contain the information that will be updated on the Team. */
|
|
4023
|
+
export const updateTeam: API.OperationMethod<
|
|
4024
|
+
UpdateTeamRequest,
|
|
4025
|
+
Team,
|
|
4026
|
+
UpdateTeamError,
|
|
4027
|
+
VercelOpContext
|
|
4028
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4029
|
+
input: UpdateTeamRequest,
|
|
4030
|
+
output: Team,
|
|
4031
|
+
errors: [BadRequest, PaymentRequired, Forbidden],
|
|
4032
|
+
protocol: VercelProtocol,
|
|
4033
|
+
retry: Retry.Retry,
|
|
4034
|
+
}));
|
|
4035
|
+
|
|
4036
|
+
export type UpdateTeamMemberError =
|
|
4037
|
+
| BadRequest
|
|
4038
|
+
| PaymentRequired
|
|
4039
|
+
| Forbidden
|
|
4040
|
+
| NotFound
|
|
4041
|
+
| Conflict
|
|
4042
|
+
| VercelOpError;
|
|
4043
|
+
/** Update a Team Member Update the membership of a Team Member on the Team specified by `teamId`, such as changing the _role_ of the member, or confirming a request to join the Team for an unconfirmed member. The authenticated user must be an `OWNER` of the Team. */
|
|
4044
|
+
export const updateTeamMember: API.OperationMethod<
|
|
4045
|
+
UpdateTeamMemberRequest,
|
|
4046
|
+
UpdateTeamMemberResponse,
|
|
4047
|
+
UpdateTeamMemberError,
|
|
4048
|
+
VercelOpContext
|
|
4049
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4050
|
+
input: UpdateTeamMemberRequest,
|
|
4051
|
+
output: UpdateTeamMemberResponse,
|
|
4052
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound, Conflict],
|
|
4053
|
+
protocol: VercelProtocol,
|
|
4054
|
+
retry: Retry.Retry,
|
|
4055
|
+
}));
|