@vercel/sdk 1.10.3 → 1.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/bin/mcp-server.js +373 -85
  2. package/bin/mcp-server.js.map +10 -10
  3. package/docs/sdks/aliases/README.md +1 -1
  4. package/esm/__tests__/aliases.test.js +1 -20
  5. package/esm/__tests__/aliases.test.js.map +1 -1
  6. package/esm/funcs/aliasesGetAlias.d.ts +2 -2
  7. package/esm/funcs/aliasesGetAlias.d.ts.map +1 -1
  8. package/esm/funcs/aliasesGetAlias.js +2 -2
  9. package/esm/funcs/aliasesGetAlias.js.map +1 -1
  10. package/esm/lib/config.d.ts +2 -2
  11. package/esm/lib/config.js +2 -2
  12. package/esm/mcp-server/mcp-server.js +1 -1
  13. package/esm/mcp-server/server.js +1 -1
  14. package/esm/models/createdeploymentop.d.ts +15 -15
  15. package/esm/models/createdeploymentop.d.ts.map +1 -1
  16. package/esm/models/createdeploymentop.js +15 -15
  17. package/esm/models/createdeploymentop.js.map +1 -1
  18. package/esm/models/getaliasop.d.ts +654 -0
  19. package/esm/models/getaliasop.d.ts.map +1 -1
  20. package/esm/models/getaliasop.js +546 -0
  21. package/esm/models/getaliasop.js.map +1 -1
  22. package/esm/models/listaliasesop.d.ts +66 -66
  23. package/esm/models/listaliasesop.d.ts.map +1 -1
  24. package/esm/models/listaliasesop.js +78 -78
  25. package/esm/models/listaliasesop.js.map +1 -1
  26. package/esm/models/listdeploymentaliasesop.d.ts +30 -30
  27. package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
  28. package/esm/models/listdeploymentaliasesop.js +34 -34
  29. package/esm/models/listdeploymentaliasesop.js.map +1 -1
  30. package/esm/sdk/aliases.d.ts +2 -2
  31. package/esm/sdk/aliases.d.ts.map +1 -1
  32. package/examples/package-lock.json +1 -1
  33. package/jsr.json +1 -1
  34. package/package.json +1 -1
  35. package/src/__tests__/aliases.test.ts +1 -20
  36. package/src/funcs/aliasesGetAlias.ts +6 -4
  37. package/src/lib/config.ts +2 -2
  38. package/src/mcp-server/mcp-server.ts +1 -1
  39. package/src/mcp-server/server.ts +1 -1
  40. package/src/models/createdeploymentop.ts +61 -39
  41. package/src/models/getaliasop.ts +1262 -0
  42. package/src/models/listaliasesop.ts +143 -124
  43. package/src/models/listdeploymentaliasesop.ts +70 -58
  44. package/src/sdk/aliases.ts +2 -2
  45. package/vercel-spec.json +350 -1
@@ -34,7 +34,7 @@ export type ListDeploymentAliasesProtectionBypassAliasesResponse200Scope =
34
34
  /**
35
35
  * The protection bypass for the alias
36
36
  */
37
- export type ProtectionBypass4 = {
37
+ export type ListDeploymentAliasesProtectionBypass4 = {
38
38
  createdAt: number;
39
39
  lastUpdatedAt: number;
40
40
  lastUpdatedBy: string;
@@ -50,7 +50,7 @@ export type ListDeploymentAliasesProtectionBypassAliasesResponseScope =
50
50
  /**
51
51
  * The protection bypass for the alias
52
52
  */
53
- export type ProtectionBypass3 = {
53
+ export type ListDeploymentAliasesProtectionBypass3 = {
54
54
  createdAt: number;
55
55
  createdBy: string;
56
56
  scope: ListDeploymentAliasesProtectionBypassAliasesResponseScope;
@@ -100,9 +100,9 @@ export type ListDeploymentAliasesProtectionBypass1 = {
100
100
 
101
101
  export type ListDeploymentAliasesProtectionBypass =
102
102
  | ListDeploymentAliasesProtectionBypass2
103
- | ProtectionBypass4
103
+ | ListDeploymentAliasesProtectionBypass4
104
104
  | ListDeploymentAliasesProtectionBypass1
105
- | ProtectionBypass3;
105
+ | ListDeploymentAliasesProtectionBypass3;
106
106
 
107
107
  /**
108
108
  * A list of the aliases assigned to the deployment
@@ -130,9 +130,9 @@ export type Aliases = {
130
130
  protectionBypass?: {
131
131
  [k: string]:
132
132
  | ListDeploymentAliasesProtectionBypass2
133
- | ProtectionBypass4
133
+ | ListDeploymentAliasesProtectionBypass4
134
134
  | ListDeploymentAliasesProtectionBypass1
135
- | ProtectionBypass3;
135
+ | ListDeploymentAliasesProtectionBypass3;
136
136
  } | undefined;
137
137
  };
138
138
 
@@ -237,8 +237,8 @@ export namespace ListDeploymentAliasesProtectionBypassAliasesResponse200Scope$ {
237
237
  }
238
238
 
239
239
  /** @internal */
240
- export const ProtectionBypass4$inboundSchema: z.ZodType<
241
- ProtectionBypass4,
240
+ export const ListDeploymentAliasesProtectionBypass4$inboundSchema: z.ZodType<
241
+ ListDeploymentAliasesProtectionBypass4,
242
242
  z.ZodTypeDef,
243
243
  unknown
244
244
  > = z.object({
@@ -250,7 +250,7 @@ export const ProtectionBypass4$inboundSchema: z.ZodType<
250
250
  });
251
251
 
252
252
  /** @internal */
253
- export type ProtectionBypass4$Outbound = {
253
+ export type ListDeploymentAliasesProtectionBypass4$Outbound = {
254
254
  createdAt: number;
255
255
  lastUpdatedAt: number;
256
256
  lastUpdatedBy: string;
@@ -258,10 +258,10 @@ export type ProtectionBypass4$Outbound = {
258
258
  };
259
259
 
260
260
  /** @internal */
261
- export const ProtectionBypass4$outboundSchema: z.ZodType<
262
- ProtectionBypass4$Outbound,
261
+ export const ListDeploymentAliasesProtectionBypass4$outboundSchema: z.ZodType<
262
+ ListDeploymentAliasesProtectionBypass4$Outbound,
263
263
  z.ZodTypeDef,
264
- ProtectionBypass4
264
+ ListDeploymentAliasesProtectionBypass4
265
265
  > = z.object({
266
266
  createdAt: z.number(),
267
267
  lastUpdatedAt: z.number(),
@@ -274,30 +274,36 @@ export const ProtectionBypass4$outboundSchema: z.ZodType<
274
274
  * @internal
275
275
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
276
276
  */
277
- export namespace ProtectionBypass4$ {
278
- /** @deprecated use `ProtectionBypass4$inboundSchema` instead. */
279
- export const inboundSchema = ProtectionBypass4$inboundSchema;
280
- /** @deprecated use `ProtectionBypass4$outboundSchema` instead. */
281
- export const outboundSchema = ProtectionBypass4$outboundSchema;
282
- /** @deprecated use `ProtectionBypass4$Outbound` instead. */
283
- export type Outbound = ProtectionBypass4$Outbound;
277
+ export namespace ListDeploymentAliasesProtectionBypass4$ {
278
+ /** @deprecated use `ListDeploymentAliasesProtectionBypass4$inboundSchema` instead. */
279
+ export const inboundSchema =
280
+ ListDeploymentAliasesProtectionBypass4$inboundSchema;
281
+ /** @deprecated use `ListDeploymentAliasesProtectionBypass4$outboundSchema` instead. */
282
+ export const outboundSchema =
283
+ ListDeploymentAliasesProtectionBypass4$outboundSchema;
284
+ /** @deprecated use `ListDeploymentAliasesProtectionBypass4$Outbound` instead. */
285
+ export type Outbound = ListDeploymentAliasesProtectionBypass4$Outbound;
284
286
  }
285
287
 
286
- export function protectionBypass4ToJSON(
287
- protectionBypass4: ProtectionBypass4,
288
+ export function listDeploymentAliasesProtectionBypass4ToJSON(
289
+ listDeploymentAliasesProtectionBypass4:
290
+ ListDeploymentAliasesProtectionBypass4,
288
291
  ): string {
289
292
  return JSON.stringify(
290
- ProtectionBypass4$outboundSchema.parse(protectionBypass4),
293
+ ListDeploymentAliasesProtectionBypass4$outboundSchema.parse(
294
+ listDeploymentAliasesProtectionBypass4,
295
+ ),
291
296
  );
292
297
  }
293
298
 
294
- export function protectionBypass4FromJSON(
299
+ export function listDeploymentAliasesProtectionBypass4FromJSON(
295
300
  jsonString: string,
296
- ): SafeParseResult<ProtectionBypass4, SDKValidationError> {
301
+ ): SafeParseResult<ListDeploymentAliasesProtectionBypass4, SDKValidationError> {
297
302
  return safeParse(
298
303
  jsonString,
299
- (x) => ProtectionBypass4$inboundSchema.parse(JSON.parse(x)),
300
- `Failed to parse 'ProtectionBypass4' from JSON`,
304
+ (x) =>
305
+ ListDeploymentAliasesProtectionBypass4$inboundSchema.parse(JSON.parse(x)),
306
+ `Failed to parse 'ListDeploymentAliasesProtectionBypass4' from JSON`,
301
307
  );
302
308
  }
303
309
 
@@ -327,8 +333,8 @@ export namespace ListDeploymentAliasesProtectionBypassAliasesResponseScope$ {
327
333
  }
328
334
 
329
335
  /** @internal */
330
- export const ProtectionBypass3$inboundSchema: z.ZodType<
331
- ProtectionBypass3,
336
+ export const ListDeploymentAliasesProtectionBypass3$inboundSchema: z.ZodType<
337
+ ListDeploymentAliasesProtectionBypass3,
332
338
  z.ZodTypeDef,
333
339
  unknown
334
340
  > = z.object({
@@ -339,17 +345,17 @@ export const ProtectionBypass3$inboundSchema: z.ZodType<
339
345
  });
340
346
 
341
347
  /** @internal */
342
- export type ProtectionBypass3$Outbound = {
348
+ export type ListDeploymentAliasesProtectionBypass3$Outbound = {
343
349
  createdAt: number;
344
350
  createdBy: string;
345
351
  scope: string;
346
352
  };
347
353
 
348
354
  /** @internal */
349
- export const ProtectionBypass3$outboundSchema: z.ZodType<
350
- ProtectionBypass3$Outbound,
355
+ export const ListDeploymentAliasesProtectionBypass3$outboundSchema: z.ZodType<
356
+ ListDeploymentAliasesProtectionBypass3$Outbound,
351
357
  z.ZodTypeDef,
352
- ProtectionBypass3
358
+ ListDeploymentAliasesProtectionBypass3
353
359
  > = z.object({
354
360
  createdAt: z.number(),
355
361
  createdBy: z.string(),
@@ -361,30 +367,36 @@ export const ProtectionBypass3$outboundSchema: z.ZodType<
361
367
  * @internal
362
368
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
363
369
  */
364
- export namespace ProtectionBypass3$ {
365
- /** @deprecated use `ProtectionBypass3$inboundSchema` instead. */
366
- export const inboundSchema = ProtectionBypass3$inboundSchema;
367
- /** @deprecated use `ProtectionBypass3$outboundSchema` instead. */
368
- export const outboundSchema = ProtectionBypass3$outboundSchema;
369
- /** @deprecated use `ProtectionBypass3$Outbound` instead. */
370
- export type Outbound = ProtectionBypass3$Outbound;
370
+ export namespace ListDeploymentAliasesProtectionBypass3$ {
371
+ /** @deprecated use `ListDeploymentAliasesProtectionBypass3$inboundSchema` instead. */
372
+ export const inboundSchema =
373
+ ListDeploymentAliasesProtectionBypass3$inboundSchema;
374
+ /** @deprecated use `ListDeploymentAliasesProtectionBypass3$outboundSchema` instead. */
375
+ export const outboundSchema =
376
+ ListDeploymentAliasesProtectionBypass3$outboundSchema;
377
+ /** @deprecated use `ListDeploymentAliasesProtectionBypass3$Outbound` instead. */
378
+ export type Outbound = ListDeploymentAliasesProtectionBypass3$Outbound;
371
379
  }
372
380
 
373
- export function protectionBypass3ToJSON(
374
- protectionBypass3: ProtectionBypass3,
381
+ export function listDeploymentAliasesProtectionBypass3ToJSON(
382
+ listDeploymentAliasesProtectionBypass3:
383
+ ListDeploymentAliasesProtectionBypass3,
375
384
  ): string {
376
385
  return JSON.stringify(
377
- ProtectionBypass3$outboundSchema.parse(protectionBypass3),
386
+ ListDeploymentAliasesProtectionBypass3$outboundSchema.parse(
387
+ listDeploymentAliasesProtectionBypass3,
388
+ ),
378
389
  );
379
390
  }
380
391
 
381
- export function protectionBypass3FromJSON(
392
+ export function listDeploymentAliasesProtectionBypass3FromJSON(
382
393
  jsonString: string,
383
- ): SafeParseResult<ProtectionBypass3, SDKValidationError> {
394
+ ): SafeParseResult<ListDeploymentAliasesProtectionBypass3, SDKValidationError> {
384
395
  return safeParse(
385
396
  jsonString,
386
- (x) => ProtectionBypass3$inboundSchema.parse(JSON.parse(x)),
387
- `Failed to parse 'ProtectionBypass3' from JSON`,
397
+ (x) =>
398
+ ListDeploymentAliasesProtectionBypass3$inboundSchema.parse(JSON.parse(x)),
399
+ `Failed to parse 'ListDeploymentAliasesProtectionBypass3' from JSON`,
388
400
  );
389
401
  }
390
402
 
@@ -602,17 +614,17 @@ export const ListDeploymentAliasesProtectionBypass$inboundSchema: z.ZodType<
602
614
  unknown
603
615
  > = z.union([
604
616
  z.lazy(() => ListDeploymentAliasesProtectionBypass2$inboundSchema),
605
- z.lazy(() => ProtectionBypass4$inboundSchema),
617
+ z.lazy(() => ListDeploymentAliasesProtectionBypass4$inboundSchema),
606
618
  z.lazy(() => ListDeploymentAliasesProtectionBypass1$inboundSchema),
607
- z.lazy(() => ProtectionBypass3$inboundSchema),
619
+ z.lazy(() => ListDeploymentAliasesProtectionBypass3$inboundSchema),
608
620
  ]);
609
621
 
610
622
  /** @internal */
611
623
  export type ListDeploymentAliasesProtectionBypass$Outbound =
612
624
  | ListDeploymentAliasesProtectionBypass2$Outbound
613
- | ProtectionBypass4$Outbound
625
+ | ListDeploymentAliasesProtectionBypass4$Outbound
614
626
  | ListDeploymentAliasesProtectionBypass1$Outbound
615
- | ProtectionBypass3$Outbound;
627
+ | ListDeploymentAliasesProtectionBypass3$Outbound;
616
628
 
617
629
  /** @internal */
618
630
  export const ListDeploymentAliasesProtectionBypass$outboundSchema: z.ZodType<
@@ -621,9 +633,9 @@ export const ListDeploymentAliasesProtectionBypass$outboundSchema: z.ZodType<
621
633
  ListDeploymentAliasesProtectionBypass
622
634
  > = z.union([
623
635
  z.lazy(() => ListDeploymentAliasesProtectionBypass2$outboundSchema),
624
- z.lazy(() => ProtectionBypass4$outboundSchema),
636
+ z.lazy(() => ListDeploymentAliasesProtectionBypass4$outboundSchema),
625
637
  z.lazy(() => ListDeploymentAliasesProtectionBypass1$outboundSchema),
626
- z.lazy(() => ProtectionBypass3$outboundSchema),
638
+ z.lazy(() => ListDeploymentAliasesProtectionBypass3$outboundSchema),
627
639
  ]);
628
640
 
629
641
  /**
@@ -672,9 +684,9 @@ export const Aliases$inboundSchema: z.ZodType<Aliases, z.ZodTypeDef, unknown> =
672
684
  protectionBypass: z.record(
673
685
  z.union([
674
686
  z.lazy(() => ListDeploymentAliasesProtectionBypass2$inboundSchema),
675
- z.lazy(() => ProtectionBypass4$inboundSchema),
687
+ z.lazy(() => ListDeploymentAliasesProtectionBypass4$inboundSchema),
676
688
  z.lazy(() => ListDeploymentAliasesProtectionBypass1$inboundSchema),
677
- z.lazy(() => ProtectionBypass3$inboundSchema),
689
+ z.lazy(() => ListDeploymentAliasesProtectionBypass3$inboundSchema),
678
690
  ]),
679
691
  ).optional(),
680
692
  });
@@ -688,9 +700,9 @@ export type Aliases$Outbound = {
688
700
  protectionBypass?: {
689
701
  [k: string]:
690
702
  | ListDeploymentAliasesProtectionBypass2$Outbound
691
- | ProtectionBypass4$Outbound
703
+ | ListDeploymentAliasesProtectionBypass4$Outbound
692
704
  | ListDeploymentAliasesProtectionBypass1$Outbound
693
- | ProtectionBypass3$Outbound;
705
+ | ListDeploymentAliasesProtectionBypass3$Outbound;
694
706
  } | undefined;
695
707
  };
696
708
 
@@ -707,9 +719,9 @@ export const Aliases$outboundSchema: z.ZodType<
707
719
  protectionBypass: z.record(
708
720
  z.union([
709
721
  z.lazy(() => ListDeploymentAliasesProtectionBypass2$outboundSchema),
710
- z.lazy(() => ProtectionBypass4$outboundSchema),
722
+ z.lazy(() => ListDeploymentAliasesProtectionBypass4$outboundSchema),
711
723
  z.lazy(() => ListDeploymentAliasesProtectionBypass1$outboundSchema),
712
- z.lazy(() => ProtectionBypass3$outboundSchema),
724
+ z.lazy(() => ListDeploymentAliasesProtectionBypass3$outboundSchema),
713
725
  ]),
714
726
  ).optional(),
715
727
  });
@@ -17,7 +17,7 @@ import {
17
17
  DeleteAliasRequest,
18
18
  DeleteAliasResponseBody,
19
19
  } from "../models/deletealiasop.js";
20
- import { GetAliasRequest } from "../models/getaliasop.js";
20
+ import { GetAliasRequest, GetAliasResponseBody } from "../models/getaliasop.js";
21
21
  import {
22
22
  ListAliasesRequest,
23
23
  ListAliasesResponseBody,
@@ -90,7 +90,7 @@ export class Aliases extends ClientSDK {
90
90
  async getAlias(
91
91
  request: GetAliasRequest,
92
92
  options?: RequestOptions,
93
- ): Promise<any> {
93
+ ): Promise<Array<GetAliasResponseBody>> {
94
94
  return unwrapAsync(aliasesGetAlias(
95
95
  this,
96
96
  request,
package/vercel-spec.json CHANGED
@@ -67557,7 +67557,356 @@
67557
67557
  "description": "The alias information",
67558
67558
  "content": {
67559
67559
  "application/json": {
67560
- "schema": {}
67560
+ "schema": {
67561
+ "items": {
67562
+ "properties": {
67563
+ "alias": {
67564
+ "type": "string",
67565
+ "description": "The alias name, it could be a `.vercel.app` subdomain or a custom domain",
67566
+ "example": "my-alias.vercel.app"
67567
+ },
67568
+ "created": {
67569
+ "type": "string",
67570
+ "format": "date-time",
67571
+ "description": "The date when the alias was created",
67572
+ "example": "2017-04-26T23:00:34.232Z"
67573
+ },
67574
+ "createdAt": {
67575
+ "type": "number",
67576
+ "description": "The date when the alias was created in milliseconds since the UNIX epoch",
67577
+ "example": 1540095775941
67578
+ },
67579
+ "creator": {
67580
+ "properties": {
67581
+ "uid": {
67582
+ "type": "string",
67583
+ "description": "ID of the user who created the alias",
67584
+ "example": "96SnxkFiMyVKsK3pnoHfx3Hz"
67585
+ },
67586
+ "email": {
67587
+ "type": "string",
67588
+ "description": "Email of the user who created the alias",
67589
+ "example": "john-doe@gmail.com"
67590
+ },
67591
+ "username": {
67592
+ "type": "string",
67593
+ "description": "Username of the user who created the alias",
67594
+ "example": "john-doe"
67595
+ }
67596
+ },
67597
+ "required": [
67598
+ "uid",
67599
+ "email",
67600
+ "username"
67601
+ ],
67602
+ "type": "object",
67603
+ "description": "Information of the user who created the alias"
67604
+ },
67605
+ "deletedAt": {
67606
+ "type": "number",
67607
+ "description": "The date when the alias was deleted in milliseconds since the UNIX epoch",
67608
+ "example": 1540095775941
67609
+ },
67610
+ "deployment": {
67611
+ "properties": {
67612
+ "id": {
67613
+ "type": "string",
67614
+ "description": "The deployment unique identifier",
67615
+ "example": "dpl_5m8CQaRBm3FnWRW1od3wKTpaECPx"
67616
+ },
67617
+ "url": {
67618
+ "type": "string",
67619
+ "description": "The deployment unique URL",
67620
+ "example": "my-instant-deployment-3ij3cxz9qr.now.sh"
67621
+ },
67622
+ "meta": {
67623
+ "type": "string",
67624
+ "description": "The deployment metadata",
67625
+ "example": {}
67626
+ }
67627
+ },
67628
+ "required": [
67629
+ "id",
67630
+ "url"
67631
+ ],
67632
+ "type": "object",
67633
+ "description": "A map with the deployment ID, URL and metadata"
67634
+ },
67635
+ "deploymentId": {
67636
+ "nullable": true,
67637
+ "type": "string",
67638
+ "description": "The deployment ID",
67639
+ "example": "dpl_5m8CQaRBm3FnWRW1od3wKTpaECPx"
67640
+ },
67641
+ "projectId": {
67642
+ "nullable": true,
67643
+ "type": "string",
67644
+ "description": "The unique identifier of the project",
67645
+ "example": "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB"
67646
+ },
67647
+ "redirect": {
67648
+ "nullable": true,
67649
+ "type": "string",
67650
+ "description": "Target destination domain for redirect when the alias is a redirect"
67651
+ },
67652
+ "redirectStatusCode": {
67653
+ "nullable": true,
67654
+ "type": "number",
67655
+ "enum": [
67656
+ 301,
67657
+ 302,
67658
+ 307,
67659
+ 308
67660
+ ],
67661
+ "description": "Status code to be used on redirect"
67662
+ },
67663
+ "uid": {
67664
+ "type": "string",
67665
+ "description": "The unique identifier of the alias"
67666
+ },
67667
+ "updatedAt": {
67668
+ "type": "number",
67669
+ "description": "The date when the alias was updated in milliseconds since the UNIX epoch",
67670
+ "example": 1540095775941
67671
+ },
67672
+ "protectionBypass": {
67673
+ "additionalProperties": {
67674
+ "oneOf": [
67675
+ {
67676
+ "properties": {
67677
+ "createdAt": {
67678
+ "type": "number"
67679
+ },
67680
+ "createdBy": {
67681
+ "type": "string"
67682
+ },
67683
+ "scope": {
67684
+ "type": "string",
67685
+ "enum": [
67686
+ "shareable-link"
67687
+ ]
67688
+ }
67689
+ },
67690
+ "required": [
67691
+ "createdAt",
67692
+ "createdBy",
67693
+ "scope"
67694
+ ],
67695
+ "type": "object",
67696
+ "description": "The protection bypass for the alias"
67697
+ },
67698
+ {
67699
+ "properties": {
67700
+ "createdAt": {
67701
+ "type": "number"
67702
+ },
67703
+ "lastUpdatedAt": {
67704
+ "type": "number"
67705
+ },
67706
+ "lastUpdatedBy": {
67707
+ "type": "string"
67708
+ },
67709
+ "access": {
67710
+ "type": "string",
67711
+ "enum": [
67712
+ "requested",
67713
+ "granted"
67714
+ ]
67715
+ },
67716
+ "scope": {
67717
+ "type": "string",
67718
+ "enum": [
67719
+ "user"
67720
+ ]
67721
+ }
67722
+ },
67723
+ "required": [
67724
+ "createdAt",
67725
+ "lastUpdatedAt",
67726
+ "lastUpdatedBy",
67727
+ "access",
67728
+ "scope"
67729
+ ],
67730
+ "type": "object",
67731
+ "description": "The protection bypass for the alias"
67732
+ },
67733
+ {
67734
+ "properties": {
67735
+ "createdAt": {
67736
+ "type": "number"
67737
+ },
67738
+ "createdBy": {
67739
+ "type": "string"
67740
+ },
67741
+ "scope": {
67742
+ "type": "string",
67743
+ "enum": [
67744
+ "alias-protection-override"
67745
+ ]
67746
+ }
67747
+ },
67748
+ "required": [
67749
+ "createdAt",
67750
+ "createdBy",
67751
+ "scope"
67752
+ ],
67753
+ "type": "object",
67754
+ "description": "The protection bypass for the alias"
67755
+ },
67756
+ {
67757
+ "properties": {
67758
+ "createdAt": {
67759
+ "type": "number"
67760
+ },
67761
+ "lastUpdatedAt": {
67762
+ "type": "number"
67763
+ },
67764
+ "lastUpdatedBy": {
67765
+ "type": "string"
67766
+ },
67767
+ "scope": {
67768
+ "type": "string",
67769
+ "enum": [
67770
+ "email_invite"
67771
+ ]
67772
+ }
67773
+ },
67774
+ "required": [
67775
+ "createdAt",
67776
+ "lastUpdatedAt",
67777
+ "lastUpdatedBy",
67778
+ "scope"
67779
+ ],
67780
+ "type": "object",
67781
+ "description": "The protection bypass for the alias"
67782
+ }
67783
+ ]
67784
+ },
67785
+ "type": "object",
67786
+ "description": "The protection bypass for the alias"
67787
+ },
67788
+ "microfrontends": {
67789
+ "properties": {
67790
+ "defaultApp": {
67791
+ "properties": {
67792
+ "projectId": {
67793
+ "type": "string"
67794
+ }
67795
+ },
67796
+ "required": [
67797
+ "projectId"
67798
+ ],
67799
+ "type": "object"
67800
+ },
67801
+ "applications": {
67802
+ "oneOf": [
67803
+ {
67804
+ "items": {
67805
+ "properties": {
67806
+ "fallbackHost": {
67807
+ "type": "string",
67808
+ "description": "This is always set. In production it is used as a pointer to each apps production deployment. For pre-production, it's used as the fallback if there is no deployment for the branch."
67809
+ },
67810
+ "projectId": {
67811
+ "type": "string",
67812
+ "description": "The project ID of the microfrontends application."
67813
+ }
67814
+ },
67815
+ "required": [
67816
+ "fallbackHost",
67817
+ "projectId"
67818
+ ],
67819
+ "type": "object",
67820
+ "description": "A list of the deployment routing information for each project."
67821
+ },
67822
+ "type": "array",
67823
+ "description": "A list of the deployment routing information for each project."
67824
+ },
67825
+ {
67826
+ "items": {
67827
+ "properties": {
67828
+ "fallbackHost": {
67829
+ "type": "string",
67830
+ "description": "This is always set. For branch aliases, it's used as the fallback if there is no deployment for the branch."
67831
+ },
67832
+ "branchAlias": {
67833
+ "type": "string",
67834
+ "description": "Could point to a branch without a deployment if the project was never deployed. The proxy will fallback to the fallbackHost if there is no deployment."
67835
+ },
67836
+ "projectId": {
67837
+ "type": "string",
67838
+ "description": "The project ID of the microfrontends application."
67839
+ }
67840
+ },
67841
+ "required": [
67842
+ "fallbackHost",
67843
+ "branchAlias",
67844
+ "projectId"
67845
+ ],
67846
+ "type": "object",
67847
+ "description": "A list of the deployment routing information for each project."
67848
+ },
67849
+ "type": "array",
67850
+ "description": "A list of the deployment routing information for each project."
67851
+ },
67852
+ {
67853
+ "items": {
67854
+ "properties": {
67855
+ "deploymentId": {
67856
+ "type": "string",
67857
+ "description": "This is the deployment for the same commit, it could be a cancelled deployment. The proxy will fallback to the branchDeploymentId and then the fallbackDeploymentId."
67858
+ },
67859
+ "branchDeploymentId": {
67860
+ "type": "string",
67861
+ "description": "This is the latest non-cancelled deployment of the branch alias at the time the commit alias was created. It is possible there is no deployment for the branch, or this was set before the deployment was canceled, in which case this will point to a cancelled deployment, in either case the proxy will fallback to the fallbackDeploymentId."
67862
+ },
67863
+ "fallbackDeploymentId": {
67864
+ "type": "string",
67865
+ "description": "This is the deployment of the fallback host at the time the commit alias was created. It is possible for this to be a deleted deployment, in which case the proxy will show that the deployment is deleted. It will not use the fallbackHost, as a future deployment on the fallback host could be invalid for this deployment, and it could lead to confusion / incorrect behavior for the commit alias."
67866
+ },
67867
+ "fallbackHost": {
67868
+ "type": "string",
67869
+ "description": "Temporary for backwards compatibility. Can remove when metadata change is released"
67870
+ },
67871
+ "branchAlias": {
67872
+ "type": "string"
67873
+ },
67874
+ "projectId": {
67875
+ "type": "string",
67876
+ "description": "The project ID of the microfrontends application."
67877
+ }
67878
+ },
67879
+ "required": [
67880
+ "projectId"
67881
+ ],
67882
+ "type": "object",
67883
+ "description": "A list of the deployment routing information for each project."
67884
+ },
67885
+ "type": "array",
67886
+ "description": "A list of the deployment routing information for each project."
67887
+ }
67888
+ ]
67889
+ }
67890
+ },
67891
+ "required": [
67892
+ "defaultApp",
67893
+ "applications"
67894
+ ],
67895
+ "type": "object",
67896
+ "description": "The microfrontends for the alias including the routing configuration"
67897
+ }
67898
+ },
67899
+ "required": [
67900
+ "alias",
67901
+ "created",
67902
+ "deploymentId",
67903
+ "projectId",
67904
+ "uid"
67905
+ ],
67906
+ "type": "object"
67907
+ },
67908
+ "type": "array"
67909
+ }
67561
67910
  }
67562
67911
  }
67563
67912
  },