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

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