@vercel/sdk 1.17.1 → 1.17.3

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 (143) hide show
  1. package/bin/mcp-server.js +1278 -1490
  2. package/bin/mcp-server.js.map +27 -27
  3. package/esm/__tests__/accessgroups.test.js +1 -3
  4. package/esm/__tests__/accessgroups.test.js.map +1 -1
  5. package/esm/__tests__/checks.test.js +1 -1
  6. package/esm/__tests__/checks.test.js.map +1 -1
  7. package/esm/__tests__/domains.test.js +2 -4
  8. package/esm/__tests__/domains.test.js.map +1 -1
  9. package/esm/__tests__/edgeconfig.test.js +6 -6
  10. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  11. package/esm/__tests__/environment.test.js +15 -1
  12. package/esm/__tests__/environment.test.js.map +1 -1
  13. package/esm/__tests__/integrations.test.js +1 -1
  14. package/esm/__tests__/logdrains.test.js +3 -1
  15. package/esm/__tests__/logdrains.test.js.map +1 -1
  16. package/esm/__tests__/rollingrelease.test.js +6 -2
  17. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  18. package/esm/lib/config.d.ts +3 -3
  19. package/esm/lib/config.js +3 -3
  20. package/esm/mcp-server/mcp-server.js +1 -1
  21. package/esm/mcp-server/server.js +1 -1
  22. package/esm/models/canceldeploymentop.d.ts +2 -0
  23. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  24. package/esm/models/canceldeploymentop.js +2 -0
  25. package/esm/models/canceldeploymentop.js.map +1 -1
  26. package/esm/models/createdeploymentop.d.ts +2 -0
  27. package/esm/models/createdeploymentop.d.ts.map +1 -1
  28. package/esm/models/createdeploymentop.js +2 -0
  29. package/esm/models/createdeploymentop.js.map +1 -1
  30. package/esm/models/createdrainop.d.ts +48 -108
  31. package/esm/models/createdrainop.d.ts.map +1 -1
  32. package/esm/models/createdrainop.js +58 -105
  33. package/esm/models/createdrainop.js.map +1 -1
  34. package/esm/models/createintegrationstoredirectop.d.ts +156 -152
  35. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
  36. package/esm/models/createintegrationstoredirectop.js +222 -218
  37. package/esm/models/createintegrationstoredirectop.js.map +1 -1
  38. package/esm/models/createprojectop.d.ts +2 -0
  39. package/esm/models/createprojectop.d.ts.map +1 -1
  40. package/esm/models/createprojectop.js +2 -0
  41. package/esm/models/createprojectop.js.map +1 -1
  42. package/esm/models/createwebhookop.d.ts +2 -0
  43. package/esm/models/createwebhookop.d.ts.map +1 -1
  44. package/esm/models/createwebhookop.js +2 -0
  45. package/esm/models/createwebhookop.js.map +1 -1
  46. package/esm/models/getalllogdrainsop.d.ts +53 -107
  47. package/esm/models/getalllogdrainsop.d.ts.map +1 -1
  48. package/esm/models/getalllogdrainsop.js +65 -108
  49. package/esm/models/getalllogdrainsop.js.map +1 -1
  50. package/esm/models/getconfigurablelogdrainop.d.ts +6 -0
  51. package/esm/models/getconfigurablelogdrainop.d.ts.map +1 -1
  52. package/esm/models/getconfigurablelogdrainop.js +6 -0
  53. package/esm/models/getconfigurablelogdrainop.js.map +1 -1
  54. package/esm/models/getconfigurationproductsop.d.ts +200 -200
  55. package/esm/models/getconfigurationproductsop.js +290 -290
  56. package/esm/models/getdeploymentop.d.ts +4 -0
  57. package/esm/models/getdeploymentop.d.ts.map +1 -1
  58. package/esm/models/getdeploymentop.js +4 -0
  59. package/esm/models/getdeploymentop.js.map +1 -1
  60. package/esm/models/getdeploymentsop.d.ts +2 -0
  61. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  62. package/esm/models/getdeploymentsop.js +2 -0
  63. package/esm/models/getdeploymentsop.js.map +1 -1
  64. package/esm/models/getdrainop.d.ts +48 -108
  65. package/esm/models/getdrainop.d.ts.map +1 -1
  66. package/esm/models/getdrainop.js +58 -104
  67. package/esm/models/getdrainop.js.map +1 -1
  68. package/esm/models/getdrainsop.d.ts +48 -108
  69. package/esm/models/getdrainsop.d.ts.map +1 -1
  70. package/esm/models/getdrainsop.js +58 -104
  71. package/esm/models/getdrainsop.js.map +1 -1
  72. package/esm/models/getprojectsop.d.ts +2 -0
  73. package/esm/models/getprojectsop.d.ts.map +1 -1
  74. package/esm/models/getprojectsop.js +2 -0
  75. package/esm/models/getprojectsop.js.map +1 -1
  76. package/esm/models/getwebhookop.d.ts +1 -0
  77. package/esm/models/getwebhookop.d.ts.map +1 -1
  78. package/esm/models/getwebhookop.js +1 -0
  79. package/esm/models/getwebhookop.js.map +1 -1
  80. package/esm/models/getwebhooksop.d.ts +2 -0
  81. package/esm/models/getwebhooksop.d.ts.map +1 -1
  82. package/esm/models/getwebhooksop.js +2 -0
  83. package/esm/models/getwebhooksop.js.map +1 -1
  84. package/esm/models/moveprojectdomainop.d.ts +33 -0
  85. package/esm/models/moveprojectdomainop.d.ts.map +1 -1
  86. package/esm/models/moveprojectdomainop.js +19 -0
  87. package/esm/models/moveprojectdomainop.js.map +1 -1
  88. package/esm/models/updatedrainop.d.ts +48 -108
  89. package/esm/models/updatedrainop.d.ts.map +1 -1
  90. package/esm/models/updatedrainop.js +58 -108
  91. package/esm/models/updatedrainop.js.map +1 -1
  92. package/esm/models/updateprojectdatacacheop.d.ts +2 -0
  93. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  94. package/esm/models/updateprojectdatacacheop.js +2 -0
  95. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  96. package/esm/models/updateprojectop.d.ts +2 -0
  97. package/esm/models/updateprojectop.d.ts.map +1 -1
  98. package/esm/models/updateprojectop.js +2 -0
  99. package/esm/models/updateprojectop.js.map +1 -1
  100. package/esm/models/updatesharedenvvariableop.d.ts +5 -2
  101. package/esm/models/updatesharedenvvariableop.d.ts.map +1 -1
  102. package/esm/models/updatesharedenvvariableop.js.map +1 -1
  103. package/esm/models/userevent.d.ts +970 -928
  104. package/esm/models/userevent.d.ts.map +1 -1
  105. package/esm/models/userevent.js +1281 -1235
  106. package/esm/models/userevent.js.map +1 -1
  107. package/examples/package-lock.json +2 -10
  108. package/jsr.json +1 -1
  109. package/package.json +3 -6
  110. package/src/__tests__/accessgroups.test.ts +1 -3
  111. package/src/__tests__/checks.test.ts +1 -1
  112. package/src/__tests__/domains.test.ts +2 -4
  113. package/src/__tests__/edgeconfig.test.ts +6 -6
  114. package/src/__tests__/environment.test.ts +15 -1
  115. package/src/__tests__/integrations.test.ts +1 -1
  116. package/src/__tests__/logdrains.test.ts +3 -1
  117. package/src/__tests__/rollingrelease.test.ts +6 -2
  118. package/src/lib/config.ts +3 -3
  119. package/src/mcp-server/mcp-server.ts +1 -1
  120. package/src/mcp-server/server.ts +1 -1
  121. package/src/models/canceldeploymentop.ts +4 -0
  122. package/src/models/createdeploymentop.ts +4 -0
  123. package/src/models/createdrainop.ts +132 -177
  124. package/src/models/createintegrationstoredirectop.ts +479 -471
  125. package/src/models/createprojectop.ts +4 -0
  126. package/src/models/createwebhookop.ts +2 -0
  127. package/src/models/getalllogdrainsop.ts +168 -168
  128. package/src/models/getconfigurablelogdrainop.ts +12 -0
  129. package/src/models/getconfigurationproductsop.ts +627 -627
  130. package/src/models/getdeploymentop.ts +8 -0
  131. package/src/models/getdeploymentsop.ts +4 -0
  132. package/src/models/getdrainop.ts +148 -168
  133. package/src/models/getdrainsop.ts +150 -158
  134. package/src/models/getprojectsop.ts +4 -0
  135. package/src/models/getwebhookop.ts +1 -0
  136. package/src/models/getwebhooksop.ts +2 -0
  137. package/src/models/moveprojectdomainop.ts +51 -0
  138. package/src/models/updatedrainop.ts +153 -174
  139. package/src/models/updateprojectdatacacheop.ts +4 -0
  140. package/src/models/updateprojectop.ts +4 -0
  141. package/src/models/updatesharedenvvariableop.ts +5 -2
  142. package/src/models/userevent.ts +2956 -2828
  143. package/vercel-spec.json +647 -841
@@ -1815,6 +1815,7 @@ export type CreateProjectPermissions = {
1815
1815
  repository?: Array<ACLAction> | undefined;
1816
1816
  samlConfig?: Array<ACLAction> | undefined;
1817
1817
  secret?: Array<ACLAction> | undefined;
1818
+ securityPlusConfiguration?: Array<ACLAction> | undefined;
1818
1819
  sensitiveEnvironmentVariablePolicy?: Array<ACLAction> | undefined;
1819
1820
  sharedEnvVars?: Array<ACLAction> | undefined;
1820
1821
  sharedEnvVarsProduction?: Array<ACLAction> | undefined;
@@ -7850,6 +7851,7 @@ export const CreateProjectPermissions$inboundSchema: z.ZodType<
7850
7851
  repository: z.array(ACLAction$inboundSchema).optional(),
7851
7852
  samlConfig: z.array(ACLAction$inboundSchema).optional(),
7852
7853
  secret: z.array(ACLAction$inboundSchema).optional(),
7854
+ securityPlusConfiguration: z.array(ACLAction$inboundSchema).optional(),
7853
7855
  sensitiveEnvironmentVariablePolicy: z.array(ACLAction$inboundSchema)
7854
7856
  .optional(),
7855
7857
  sharedEnvVars: z.array(ACLAction$inboundSchema).optional(),
@@ -8080,6 +8082,7 @@ export type CreateProjectPermissions$Outbound = {
8080
8082
  repository?: Array<string> | undefined;
8081
8083
  samlConfig?: Array<string> | undefined;
8082
8084
  secret?: Array<string> | undefined;
8085
+ securityPlusConfiguration?: Array<string> | undefined;
8083
8086
  sensitiveEnvironmentVariablePolicy?: Array<string> | undefined;
8084
8087
  sharedEnvVars?: Array<string> | undefined;
8085
8088
  sharedEnvVarsProduction?: Array<string> | undefined;
@@ -8310,6 +8313,7 @@ export const CreateProjectPermissions$outboundSchema: z.ZodType<
8310
8313
  repository: z.array(ACLAction$outboundSchema).optional(),
8311
8314
  samlConfig: z.array(ACLAction$outboundSchema).optional(),
8312
8315
  secret: z.array(ACLAction$outboundSchema).optional(),
8316
+ securityPlusConfiguration: z.array(ACLAction$outboundSchema).optional(),
8313
8317
  sensitiveEnvironmentVariablePolicy: z.array(ACLAction$outboundSchema)
8314
8318
  .optional(),
8315
8319
  sharedEnvVars: z.array(ACLAction$outboundSchema).optional(),
@@ -47,6 +47,7 @@ export const Events = {
47
47
  IntegrationConfigurationRemoved: "integration-configuration.removed",
48
48
  IntegrationConfigurationScopeChangeConfirmed:
49
49
  "integration-configuration.scope-change-confirmed",
50
+ IntegrationConfigurationTransferred: "integration-configuration.transferred",
50
51
  IntegrationResourceProjectConnected: "integration-resource.project-connected",
51
52
  IntegrationResourceProjectDisconnected:
52
53
  "integration-resource.project-disconnected",
@@ -152,6 +153,7 @@ export const CreateWebhookEvents = {
152
153
  IntegrationConfigurationRemoved: "integration-configuration.removed",
153
154
  IntegrationConfigurationScopeChangeConfirmed:
154
155
  "integration-configuration.scope-change-confirmed",
156
+ IntegrationConfigurationTransferred: "integration-configuration.transferred",
155
157
  IntegrationResourceProjectConnected: "integration-resource.project-connected",
156
158
  IntegrationResourceProjectDisconnected:
157
159
  "integration-resource.project-disconnected",
@@ -94,20 +94,15 @@ export type ResponseBodyProjectsMetadata = {
94
94
  };
95
95
 
96
96
  export type GetAllLogDrainsResponseBody2 = {
97
+ createdFrom: string;
98
+ clientId?: string | undefined;
99
+ configurationId?: string | undefined;
97
100
  projectsMetadata?: Array<ResponseBodyProjectsMetadata> | null | undefined;
98
101
  integrationIcon?: string | undefined;
99
102
  integrationConfigurationUri?: string | undefined;
100
103
  integrationWebsite?: string | undefined;
101
104
  };
102
105
 
103
- export const GetAllLogDrainsDrainsLogDrainsCreatedFrom = {
104
- SelfServed: "self-served",
105
- Integration: "integration",
106
- } as const;
107
- export type GetAllLogDrainsDrainsLogDrainsCreatedFrom = ClosedEnum<
108
- typeof GetAllLogDrainsDrainsLogDrainsCreatedFrom
109
- >;
110
-
111
106
  export type GetAllLogDrainsDrainsLogDrainsLog = {};
112
107
 
113
108
  export type GetAllLogDrainsDrainsLogDrainsTrace = {};
@@ -419,82 +414,38 @@ export type GetAllLogDrainsDrainsLogDrainsFilterV2 =
419
414
  | GetAllLogDrainsFilterV22
420
415
  | GetAllLogDrainsFilterV21;
421
416
 
422
- export const GetAllLogDrainsDrainsFramework = {
423
- Blitzjs: "blitzjs",
424
- Nextjs: "nextjs",
425
- Gatsby: "gatsby",
426
- Remix: "remix",
427
- ReactRouter: "react-router",
428
- Astro: "astro",
429
- Hexo: "hexo",
430
- Eleventy: "eleventy",
431
- Docusaurus2: "docusaurus-2",
432
- Docusaurus: "docusaurus",
433
- Preact: "preact",
434
- Solidstart1: "solidstart-1",
435
- Solidstart: "solidstart",
436
- Dojo: "dojo",
437
- Ember: "ember",
438
- Vue: "vue",
439
- Scully: "scully",
440
- IonicAngular: "ionic-angular",
441
- Angular: "angular",
442
- Polymer: "polymer",
443
- Svelte: "svelte",
444
- Sveltekit: "sveltekit",
445
- Sveltekit1: "sveltekit-1",
446
- IonicReact: "ionic-react",
447
- CreateReactApp: "create-react-app",
448
- Gridsome: "gridsome",
449
- Umijs: "umijs",
450
- Sapper: "sapper",
451
- Saber: "saber",
452
- Stencil: "stencil",
453
- Nuxtjs: "nuxtjs",
454
- Redwoodjs: "redwoodjs",
455
- Hugo: "hugo",
456
- Jekyll: "jekyll",
457
- Brunch: "brunch",
458
- Middleman: "middleman",
459
- Zola: "zola",
460
- Hydrogen: "hydrogen",
461
- Vite: "vite",
462
- TanstackStart: "tanstack-start",
463
- Vitepress: "vitepress",
464
- Vuepress: "vuepress",
465
- Parcel: "parcel",
466
- Fastapi: "fastapi",
467
- Flask: "flask",
468
- Fasthtml: "fasthtml",
469
- SanityV3: "sanity-v3",
470
- Sanity: "sanity",
471
- Storybook: "storybook",
472
- Nitro: "nitro",
473
- Hono: "hono",
474
- Express: "express",
475
- H3: "h3",
476
- Nestjs: "nestjs",
477
- Elysia: "elysia",
478
- Fastify: "fastify",
479
- Xmcp: "xmcp",
417
+ export const GetAllLogDrainsProjectAccessLogDrainsAccess = {
418
+ Some: "some",
480
419
  } as const;
481
- export type GetAllLogDrainsDrainsFramework = ClosedEnum<
482
- typeof GetAllLogDrainsDrainsFramework
420
+ export type GetAllLogDrainsProjectAccessLogDrainsAccess = ClosedEnum<
421
+ typeof GetAllLogDrainsProjectAccessLogDrainsAccess
483
422
  >;
484
423
 
485
- export type GetAllLogDrainsDrainsProjectsMetadata = {
486
- id: string;
487
- name: string;
488
- framework?: GetAllLogDrainsDrainsFramework | null | undefined;
489
- latestDeployment?: string | undefined;
424
+ export type GetAllLogDrainsProjectAccess2 = {
425
+ access: GetAllLogDrainsProjectAccessLogDrainsAccess;
426
+ projectIds: Array<string>;
427
+ };
428
+
429
+ export const GetAllLogDrainsProjectAccessAccess = {
430
+ All: "all",
431
+ } as const;
432
+ export type GetAllLogDrainsProjectAccessAccess = ClosedEnum<
433
+ typeof GetAllLogDrainsProjectAccessAccess
434
+ >;
435
+
436
+ export type GetAllLogDrainsProjectAccess1 = {
437
+ access: GetAllLogDrainsProjectAccessAccess;
490
438
  };
491
439
 
440
+ export type GetAllLogDrainsDrainsProjectAccess =
441
+ | GetAllLogDrainsProjectAccess2
442
+ | GetAllLogDrainsProjectAccess1;
443
+
492
444
  export type GetAllLogDrainsDrains2 = {
493
445
  id: string;
494
446
  ownerId: string;
495
447
  name: string;
496
448
  createdAt: number;
497
- createdFrom?: GetAllLogDrainsDrainsLogDrainsCreatedFrom | undefined;
498
449
  updatedAt: number;
499
450
  projectIds?: Array<string> | undefined;
500
451
  schemas?: GetAllLogDrainsDrainsLogDrainsSchemas | undefined;
@@ -511,25 +462,18 @@ export type GetAllLogDrainsDrains2 = {
511
462
  disabledReason?: GetAllLogDrainsDrainsLogDrainsDisabledReason | undefined;
512
463
  disabledBy?: string | undefined;
513
464
  firstErrorTimestamp?: number | undefined;
514
- configurationId?: string | undefined;
515
- clientId?: string | undefined;
516
465
  source: GetAllLogDrainsSource2 | GetAllLogDrainsSource1;
517
466
  filter?: string | undefined;
518
467
  filterV2?: GetAllLogDrainsFilterV22 | GetAllLogDrainsFilterV21 | undefined;
519
468
  integrationIcon?: string | undefined;
520
469
  integrationConfigurationUri?: string | undefined;
521
470
  integrationWebsite?: string | undefined;
522
- projectsMetadata?: Array<GetAllLogDrainsDrainsProjectsMetadata> | undefined;
471
+ projectAccess?:
472
+ | GetAllLogDrainsProjectAccess2
473
+ | GetAllLogDrainsProjectAccess1
474
+ | undefined;
523
475
  };
524
476
 
525
- export const GetAllLogDrainsDrainsCreatedFrom = {
526
- SelfServed: "self-served",
527
- Integration: "integration",
528
- } as const;
529
- export type GetAllLogDrainsDrainsCreatedFrom = ClosedEnum<
530
- typeof GetAllLogDrainsDrainsCreatedFrom
531
- >;
532
-
533
477
  export type GetAllLogDrainsDrainsLog = {};
534
478
 
535
479
  export type GetAllLogDrainsDrainsTrace = {};
@@ -842,7 +786,6 @@ export type GetAllLogDrainsDrains1 = {
842
786
  ownerId: string;
843
787
  name: string;
844
788
  createdAt: number;
845
- createdFrom?: GetAllLogDrainsDrainsCreatedFrom | undefined;
846
789
  updatedAt: number;
847
790
  projectIds?: Array<string> | undefined;
848
791
  schemas?: GetAllLogDrainsDrainsSchemas | undefined;
@@ -859,8 +802,6 @@ export type GetAllLogDrainsDrains1 = {
859
802
  disabledReason?: GetAllLogDrainsDrainsDisabledReason | undefined;
860
803
  disabledBy?: string | undefined;
861
804
  firstErrorTimestamp?: number | undefined;
862
- configurationId?: string | undefined;
863
- clientId?: string | undefined;
864
805
  source: GetAllLogDrainsSourceLogDrains2 | GetAllLogDrainsSourceLogDrains1;
865
806
  filter?: string | undefined;
866
807
  filterV2?:
@@ -1000,6 +941,9 @@ export const GetAllLogDrainsResponseBody2$inboundSchema: z.ZodType<
1000
941
  z.ZodTypeDef,
1001
942
  unknown
1002
943
  > = z.object({
944
+ createdFrom: z.string(),
945
+ clientId: z.string().optional(),
946
+ configurationId: z.string().optional(),
1003
947
  projectsMetadata: z.nullable(
1004
948
  z.array(z.lazy(() => ResponseBodyProjectsMetadata$inboundSchema)),
1005
949
  ).optional(),
@@ -1009,6 +953,9 @@ export const GetAllLogDrainsResponseBody2$inboundSchema: z.ZodType<
1009
953
  });
1010
954
  /** @internal */
1011
955
  export type GetAllLogDrainsResponseBody2$Outbound = {
956
+ createdFrom: string;
957
+ clientId?: string | undefined;
958
+ configurationId?: string | undefined;
1012
959
  projectsMetadata?:
1013
960
  | Array<ResponseBodyProjectsMetadata$Outbound>
1014
961
  | null
@@ -1024,6 +971,9 @@ export const GetAllLogDrainsResponseBody2$outboundSchema: z.ZodType<
1024
971
  z.ZodTypeDef,
1025
972
  GetAllLogDrainsResponseBody2
1026
973
  > = z.object({
974
+ createdFrom: z.string(),
975
+ clientId: z.string().optional(),
976
+ configurationId: z.string().optional(),
1027
977
  projectsMetadata: z.nullable(
1028
978
  z.array(z.lazy(() => ResponseBodyProjectsMetadata$outboundSchema)),
1029
979
  ).optional(),
@@ -1051,15 +1001,6 @@ export function getAllLogDrainsResponseBody2FromJSON(
1051
1001
  );
1052
1002
  }
1053
1003
 
1054
- /** @internal */
1055
- export const GetAllLogDrainsDrainsLogDrainsCreatedFrom$inboundSchema:
1056
- z.ZodNativeEnum<typeof GetAllLogDrainsDrainsLogDrainsCreatedFrom> = z
1057
- .nativeEnum(GetAllLogDrainsDrainsLogDrainsCreatedFrom);
1058
- /** @internal */
1059
- export const GetAllLogDrainsDrainsLogDrainsCreatedFrom$outboundSchema:
1060
- z.ZodNativeEnum<typeof GetAllLogDrainsDrainsLogDrainsCreatedFrom> =
1061
- GetAllLogDrainsDrainsLogDrainsCreatedFrom$inboundSchema;
1062
-
1063
1004
  /** @internal */
1064
1005
  export const GetAllLogDrainsDrainsLogDrainsLog$inboundSchema: z.ZodType<
1065
1006
  GetAllLogDrainsDrainsLogDrainsLog,
@@ -2579,64 +2520,149 @@ export function getAllLogDrainsDrainsLogDrainsFilterV2FromJSON(
2579
2520
  }
2580
2521
 
2581
2522
  /** @internal */
2582
- export const GetAllLogDrainsDrainsFramework$inboundSchema: z.ZodNativeEnum<
2583
- typeof GetAllLogDrainsDrainsFramework
2584
- > = z.nativeEnum(GetAllLogDrainsDrainsFramework);
2523
+ export const GetAllLogDrainsProjectAccessLogDrainsAccess$inboundSchema:
2524
+ z.ZodNativeEnum<typeof GetAllLogDrainsProjectAccessLogDrainsAccess> = z
2525
+ .nativeEnum(GetAllLogDrainsProjectAccessLogDrainsAccess);
2585
2526
  /** @internal */
2586
- export const GetAllLogDrainsDrainsFramework$outboundSchema: z.ZodNativeEnum<
2587
- typeof GetAllLogDrainsDrainsFramework
2588
- > = GetAllLogDrainsDrainsFramework$inboundSchema;
2527
+ export const GetAllLogDrainsProjectAccessLogDrainsAccess$outboundSchema:
2528
+ z.ZodNativeEnum<typeof GetAllLogDrainsProjectAccessLogDrainsAccess> =
2529
+ GetAllLogDrainsProjectAccessLogDrainsAccess$inboundSchema;
2589
2530
 
2590
2531
  /** @internal */
2591
- export const GetAllLogDrainsDrainsProjectsMetadata$inboundSchema: z.ZodType<
2592
- GetAllLogDrainsDrainsProjectsMetadata,
2532
+ export const GetAllLogDrainsProjectAccess2$inboundSchema: z.ZodType<
2533
+ GetAllLogDrainsProjectAccess2,
2593
2534
  z.ZodTypeDef,
2594
2535
  unknown
2595
2536
  > = z.object({
2596
- id: z.string(),
2597
- name: z.string(),
2598
- framework: z.nullable(GetAllLogDrainsDrainsFramework$inboundSchema)
2599
- .optional(),
2600
- latestDeployment: z.string().optional(),
2537
+ access: GetAllLogDrainsProjectAccessLogDrainsAccess$inboundSchema,
2538
+ projectIds: z.array(z.string()),
2601
2539
  });
2602
2540
  /** @internal */
2603
- export type GetAllLogDrainsDrainsProjectsMetadata$Outbound = {
2604
- id: string;
2605
- name: string;
2606
- framework?: string | null | undefined;
2607
- latestDeployment?: string | undefined;
2541
+ export type GetAllLogDrainsProjectAccess2$Outbound = {
2542
+ access: string;
2543
+ projectIds: Array<string>;
2608
2544
  };
2609
2545
 
2610
2546
  /** @internal */
2611
- export const GetAllLogDrainsDrainsProjectsMetadata$outboundSchema: z.ZodType<
2612
- GetAllLogDrainsDrainsProjectsMetadata$Outbound,
2547
+ export const GetAllLogDrainsProjectAccess2$outboundSchema: z.ZodType<
2548
+ GetAllLogDrainsProjectAccess2$Outbound,
2613
2549
  z.ZodTypeDef,
2614
- GetAllLogDrainsDrainsProjectsMetadata
2550
+ GetAllLogDrainsProjectAccess2
2615
2551
  > = z.object({
2616
- id: z.string(),
2617
- name: z.string(),
2618
- framework: z.nullable(GetAllLogDrainsDrainsFramework$outboundSchema)
2619
- .optional(),
2620
- latestDeployment: z.string().optional(),
2552
+ access: GetAllLogDrainsProjectAccessLogDrainsAccess$outboundSchema,
2553
+ projectIds: z.array(z.string()),
2554
+ });
2555
+
2556
+ export function getAllLogDrainsProjectAccess2ToJSON(
2557
+ getAllLogDrainsProjectAccess2: GetAllLogDrainsProjectAccess2,
2558
+ ): string {
2559
+ return JSON.stringify(
2560
+ GetAllLogDrainsProjectAccess2$outboundSchema.parse(
2561
+ getAllLogDrainsProjectAccess2,
2562
+ ),
2563
+ );
2564
+ }
2565
+ export function getAllLogDrainsProjectAccess2FromJSON(
2566
+ jsonString: string,
2567
+ ): SafeParseResult<GetAllLogDrainsProjectAccess2, SDKValidationError> {
2568
+ return safeParse(
2569
+ jsonString,
2570
+ (x) => GetAllLogDrainsProjectAccess2$inboundSchema.parse(JSON.parse(x)),
2571
+ `Failed to parse 'GetAllLogDrainsProjectAccess2' from JSON`,
2572
+ );
2573
+ }
2574
+
2575
+ /** @internal */
2576
+ export const GetAllLogDrainsProjectAccessAccess$inboundSchema: z.ZodNativeEnum<
2577
+ typeof GetAllLogDrainsProjectAccessAccess
2578
+ > = z.nativeEnum(GetAllLogDrainsProjectAccessAccess);
2579
+ /** @internal */
2580
+ export const GetAllLogDrainsProjectAccessAccess$outboundSchema: z.ZodNativeEnum<
2581
+ typeof GetAllLogDrainsProjectAccessAccess
2582
+ > = GetAllLogDrainsProjectAccessAccess$inboundSchema;
2583
+
2584
+ /** @internal */
2585
+ export const GetAllLogDrainsProjectAccess1$inboundSchema: z.ZodType<
2586
+ GetAllLogDrainsProjectAccess1,
2587
+ z.ZodTypeDef,
2588
+ unknown
2589
+ > = z.object({
2590
+ access: GetAllLogDrainsProjectAccessAccess$inboundSchema,
2621
2591
  });
2592
+ /** @internal */
2593
+ export type GetAllLogDrainsProjectAccess1$Outbound = {
2594
+ access: string;
2595
+ };
2596
+
2597
+ /** @internal */
2598
+ export const GetAllLogDrainsProjectAccess1$outboundSchema: z.ZodType<
2599
+ GetAllLogDrainsProjectAccess1$Outbound,
2600
+ z.ZodTypeDef,
2601
+ GetAllLogDrainsProjectAccess1
2602
+ > = z.object({
2603
+ access: GetAllLogDrainsProjectAccessAccess$outboundSchema,
2604
+ });
2605
+
2606
+ export function getAllLogDrainsProjectAccess1ToJSON(
2607
+ getAllLogDrainsProjectAccess1: GetAllLogDrainsProjectAccess1,
2608
+ ): string {
2609
+ return JSON.stringify(
2610
+ GetAllLogDrainsProjectAccess1$outboundSchema.parse(
2611
+ getAllLogDrainsProjectAccess1,
2612
+ ),
2613
+ );
2614
+ }
2615
+ export function getAllLogDrainsProjectAccess1FromJSON(
2616
+ jsonString: string,
2617
+ ): SafeParseResult<GetAllLogDrainsProjectAccess1, SDKValidationError> {
2618
+ return safeParse(
2619
+ jsonString,
2620
+ (x) => GetAllLogDrainsProjectAccess1$inboundSchema.parse(JSON.parse(x)),
2621
+ `Failed to parse 'GetAllLogDrainsProjectAccess1' from JSON`,
2622
+ );
2623
+ }
2624
+
2625
+ /** @internal */
2626
+ export const GetAllLogDrainsDrainsProjectAccess$inboundSchema: z.ZodType<
2627
+ GetAllLogDrainsDrainsProjectAccess,
2628
+ z.ZodTypeDef,
2629
+ unknown
2630
+ > = z.union([
2631
+ z.lazy(() => GetAllLogDrainsProjectAccess2$inboundSchema),
2632
+ z.lazy(() => GetAllLogDrainsProjectAccess1$inboundSchema),
2633
+ ]);
2634
+ /** @internal */
2635
+ export type GetAllLogDrainsDrainsProjectAccess$Outbound =
2636
+ | GetAllLogDrainsProjectAccess2$Outbound
2637
+ | GetAllLogDrainsProjectAccess1$Outbound;
2638
+
2639
+ /** @internal */
2640
+ export const GetAllLogDrainsDrainsProjectAccess$outboundSchema: z.ZodType<
2641
+ GetAllLogDrainsDrainsProjectAccess$Outbound,
2642
+ z.ZodTypeDef,
2643
+ GetAllLogDrainsDrainsProjectAccess
2644
+ > = z.union([
2645
+ z.lazy(() => GetAllLogDrainsProjectAccess2$outboundSchema),
2646
+ z.lazy(() => GetAllLogDrainsProjectAccess1$outboundSchema),
2647
+ ]);
2622
2648
 
2623
- export function getAllLogDrainsDrainsProjectsMetadataToJSON(
2624
- getAllLogDrainsDrainsProjectsMetadata: GetAllLogDrainsDrainsProjectsMetadata,
2649
+ export function getAllLogDrainsDrainsProjectAccessToJSON(
2650
+ getAllLogDrainsDrainsProjectAccess: GetAllLogDrainsDrainsProjectAccess,
2625
2651
  ): string {
2626
2652
  return JSON.stringify(
2627
- GetAllLogDrainsDrainsProjectsMetadata$outboundSchema.parse(
2628
- getAllLogDrainsDrainsProjectsMetadata,
2653
+ GetAllLogDrainsDrainsProjectAccess$outboundSchema.parse(
2654
+ getAllLogDrainsDrainsProjectAccess,
2629
2655
  ),
2630
2656
  );
2631
2657
  }
2632
- export function getAllLogDrainsDrainsProjectsMetadataFromJSON(
2658
+ export function getAllLogDrainsDrainsProjectAccessFromJSON(
2633
2659
  jsonString: string,
2634
- ): SafeParseResult<GetAllLogDrainsDrainsProjectsMetadata, SDKValidationError> {
2660
+ ): SafeParseResult<GetAllLogDrainsDrainsProjectAccess, SDKValidationError> {
2635
2661
  return safeParse(
2636
2662
  jsonString,
2637
2663
  (x) =>
2638
- GetAllLogDrainsDrainsProjectsMetadata$inboundSchema.parse(JSON.parse(x)),
2639
- `Failed to parse 'GetAllLogDrainsDrainsProjectsMetadata' from JSON`,
2664
+ GetAllLogDrainsDrainsProjectAccess$inboundSchema.parse(JSON.parse(x)),
2665
+ `Failed to parse 'GetAllLogDrainsDrainsProjectAccess' from JSON`,
2640
2666
  );
2641
2667
  }
2642
2668
 
@@ -2650,8 +2676,6 @@ export const GetAllLogDrainsDrains2$inboundSchema: z.ZodType<
2650
2676
  ownerId: z.string(),
2651
2677
  name: z.string(),
2652
2678
  createdAt: z.number(),
2653
- createdFrom: GetAllLogDrainsDrainsLogDrainsCreatedFrom$inboundSchema
2654
- .optional(),
2655
2679
  updatedAt: z.number(),
2656
2680
  projectIds: z.array(z.string()).optional(),
2657
2681
  schemas: z.lazy(() => GetAllLogDrainsDrainsLogDrainsSchemas$inboundSchema)
@@ -2672,8 +2696,6 @@ export const GetAllLogDrainsDrains2$inboundSchema: z.ZodType<
2672
2696
  .optional(),
2673
2697
  disabledBy: z.string().optional(),
2674
2698
  firstErrorTimestamp: z.number().optional(),
2675
- configurationId: z.string().optional(),
2676
- clientId: z.string().optional(),
2677
2699
  source: z.union([
2678
2700
  z.lazy(() => GetAllLogDrainsSource2$inboundSchema),
2679
2701
  z.lazy(() => GetAllLogDrainsSource1$inboundSchema),
@@ -2686,9 +2708,10 @@ export const GetAllLogDrainsDrains2$inboundSchema: z.ZodType<
2686
2708
  integrationIcon: z.string().optional(),
2687
2709
  integrationConfigurationUri: z.string().optional(),
2688
2710
  integrationWebsite: z.string().optional(),
2689
- projectsMetadata: z.array(
2690
- z.lazy(() => GetAllLogDrainsDrainsProjectsMetadata$inboundSchema),
2691
- ).optional(),
2711
+ projectAccess: z.union([
2712
+ z.lazy(() => GetAllLogDrainsProjectAccess2$inboundSchema),
2713
+ z.lazy(() => GetAllLogDrainsProjectAccess1$inboundSchema),
2714
+ ]).optional(),
2692
2715
  });
2693
2716
  /** @internal */
2694
2717
  export type GetAllLogDrainsDrains2$Outbound = {
@@ -2696,7 +2719,6 @@ export type GetAllLogDrainsDrains2$Outbound = {
2696
2719
  ownerId: string;
2697
2720
  name: string;
2698
2721
  createdAt: number;
2699
- createdFrom?: string | undefined;
2700
2722
  updatedAt: number;
2701
2723
  projectIds?: Array<string> | undefined;
2702
2724
  schemas?: GetAllLogDrainsDrainsLogDrainsSchemas$Outbound | undefined;
@@ -2713,8 +2735,6 @@ export type GetAllLogDrainsDrains2$Outbound = {
2713
2735
  disabledReason?: string | undefined;
2714
2736
  disabledBy?: string | undefined;
2715
2737
  firstErrorTimestamp?: number | undefined;
2716
- configurationId?: string | undefined;
2717
- clientId?: string | undefined;
2718
2738
  source: GetAllLogDrainsSource2$Outbound | GetAllLogDrainsSource1$Outbound;
2719
2739
  filter?: string | undefined;
2720
2740
  filterV2?:
@@ -2724,8 +2744,9 @@ export type GetAllLogDrainsDrains2$Outbound = {
2724
2744
  integrationIcon?: string | undefined;
2725
2745
  integrationConfigurationUri?: string | undefined;
2726
2746
  integrationWebsite?: string | undefined;
2727
- projectsMetadata?:
2728
- | Array<GetAllLogDrainsDrainsProjectsMetadata$Outbound>
2747
+ projectAccess?:
2748
+ | GetAllLogDrainsProjectAccess2$Outbound
2749
+ | GetAllLogDrainsProjectAccess1$Outbound
2729
2750
  | undefined;
2730
2751
  };
2731
2752
 
@@ -2739,8 +2760,6 @@ export const GetAllLogDrainsDrains2$outboundSchema: z.ZodType<
2739
2760
  ownerId: z.string(),
2740
2761
  name: z.string(),
2741
2762
  createdAt: z.number(),
2742
- createdFrom: GetAllLogDrainsDrainsLogDrainsCreatedFrom$outboundSchema
2743
- .optional(),
2744
2763
  updatedAt: z.number(),
2745
2764
  projectIds: z.array(z.string()).optional(),
2746
2765
  schemas: z.lazy(() => GetAllLogDrainsDrainsLogDrainsSchemas$outboundSchema)
@@ -2761,8 +2780,6 @@ export const GetAllLogDrainsDrains2$outboundSchema: z.ZodType<
2761
2780
  .optional(),
2762
2781
  disabledBy: z.string().optional(),
2763
2782
  firstErrorTimestamp: z.number().optional(),
2764
- configurationId: z.string().optional(),
2765
- clientId: z.string().optional(),
2766
2783
  source: z.union([
2767
2784
  z.lazy(() => GetAllLogDrainsSource2$outboundSchema),
2768
2785
  z.lazy(() => GetAllLogDrainsSource1$outboundSchema),
@@ -2775,9 +2792,10 @@ export const GetAllLogDrainsDrains2$outboundSchema: z.ZodType<
2775
2792
  integrationIcon: z.string().optional(),
2776
2793
  integrationConfigurationUri: z.string().optional(),
2777
2794
  integrationWebsite: z.string().optional(),
2778
- projectsMetadata: z.array(
2779
- z.lazy(() => GetAllLogDrainsDrainsProjectsMetadata$outboundSchema),
2780
- ).optional(),
2795
+ projectAccess: z.union([
2796
+ z.lazy(() => GetAllLogDrainsProjectAccess2$outboundSchema),
2797
+ z.lazy(() => GetAllLogDrainsProjectAccess1$outboundSchema),
2798
+ ]).optional(),
2781
2799
  });
2782
2800
 
2783
2801
  export function getAllLogDrainsDrains2ToJSON(
@@ -2797,15 +2815,6 @@ export function getAllLogDrainsDrains2FromJSON(
2797
2815
  );
2798
2816
  }
2799
2817
 
2800
- /** @internal */
2801
- export const GetAllLogDrainsDrainsCreatedFrom$inboundSchema: z.ZodNativeEnum<
2802
- typeof GetAllLogDrainsDrainsCreatedFrom
2803
- > = z.nativeEnum(GetAllLogDrainsDrainsCreatedFrom);
2804
- /** @internal */
2805
- export const GetAllLogDrainsDrainsCreatedFrom$outboundSchema: z.ZodNativeEnum<
2806
- typeof GetAllLogDrainsDrainsCreatedFrom
2807
- > = GetAllLogDrainsDrainsCreatedFrom$inboundSchema;
2808
-
2809
2818
  /** @internal */
2810
2819
  export const GetAllLogDrainsDrainsLog$inboundSchema: z.ZodType<
2811
2820
  GetAllLogDrainsDrainsLog,
@@ -4338,7 +4347,6 @@ export const GetAllLogDrainsDrains1$inboundSchema: z.ZodType<
4338
4347
  ownerId: z.string(),
4339
4348
  name: z.string(),
4340
4349
  createdAt: z.number(),
4341
- createdFrom: GetAllLogDrainsDrainsCreatedFrom$inboundSchema.optional(),
4342
4350
  updatedAt: z.number(),
4343
4351
  projectIds: z.array(z.string()).optional(),
4344
4352
  schemas: z.lazy(() => GetAllLogDrainsDrainsSchemas$inboundSchema).optional(),
@@ -4356,8 +4364,6 @@ export const GetAllLogDrainsDrains1$inboundSchema: z.ZodType<
4356
4364
  disabledReason: GetAllLogDrainsDrainsDisabledReason$inboundSchema.optional(),
4357
4365
  disabledBy: z.string().optional(),
4358
4366
  firstErrorTimestamp: z.number().optional(),
4359
- configurationId: z.string().optional(),
4360
- clientId: z.string().optional(),
4361
4367
  source: z.union([
4362
4368
  z.lazy(() => GetAllLogDrainsSourceLogDrains2$inboundSchema),
4363
4369
  z.lazy(() => GetAllLogDrainsSourceLogDrains1$inboundSchema),
@@ -4374,7 +4380,6 @@ export type GetAllLogDrainsDrains1$Outbound = {
4374
4380
  ownerId: string;
4375
4381
  name: string;
4376
4382
  createdAt: number;
4377
- createdFrom?: string | undefined;
4378
4383
  updatedAt: number;
4379
4384
  projectIds?: Array<string> | undefined;
4380
4385
  schemas?: GetAllLogDrainsDrainsSchemas$Outbound | undefined;
@@ -4391,8 +4396,6 @@ export type GetAllLogDrainsDrains1$Outbound = {
4391
4396
  disabledReason?: string | undefined;
4392
4397
  disabledBy?: string | undefined;
4393
4398
  firstErrorTimestamp?: number | undefined;
4394
- configurationId?: string | undefined;
4395
- clientId?: string | undefined;
4396
4399
  source:
4397
4400
  | GetAllLogDrainsSourceLogDrains2$Outbound
4398
4401
  | GetAllLogDrainsSourceLogDrains1$Outbound;
@@ -4413,7 +4416,6 @@ export const GetAllLogDrainsDrains1$outboundSchema: z.ZodType<
4413
4416
  ownerId: z.string(),
4414
4417
  name: z.string(),
4415
4418
  createdAt: z.number(),
4416
- createdFrom: GetAllLogDrainsDrainsCreatedFrom$outboundSchema.optional(),
4417
4419
  updatedAt: z.number(),
4418
4420
  projectIds: z.array(z.string()).optional(),
4419
4421
  schemas: z.lazy(() => GetAllLogDrainsDrainsSchemas$outboundSchema).optional(),
@@ -4431,8 +4433,6 @@ export const GetAllLogDrainsDrains1$outboundSchema: z.ZodType<
4431
4433
  disabledReason: GetAllLogDrainsDrainsDisabledReason$outboundSchema.optional(),
4432
4434
  disabledBy: z.string().optional(),
4433
4435
  firstErrorTimestamp: z.number().optional(),
4434
- configurationId: z.string().optional(),
4435
- clientId: z.string().optional(),
4436
4436
  source: z.union([
4437
4437
  z.lazy(() => GetAllLogDrainsSourceLogDrains2$outboundSchema),
4438
4438
  z.lazy(() => GetAllLogDrainsSourceLogDrains1$outboundSchema),
@@ -91,6 +91,9 @@ export type ProjectsMetadata = {
91
91
  };
92
92
 
93
93
  export type GetConfigurableLogDrainResponseBody = {
94
+ createdFrom: string;
95
+ clientId?: string | undefined;
96
+ configurationId?: string | undefined;
94
97
  projectsMetadata?: Array<ProjectsMetadata> | null | undefined;
95
98
  integrationIcon?: string | undefined;
96
99
  integrationConfigurationUri?: string | undefined;
@@ -209,6 +212,9 @@ export const GetConfigurableLogDrainResponseBody$inboundSchema: z.ZodType<
209
212
  z.ZodTypeDef,
210
213
  unknown
211
214
  > = z.object({
215
+ createdFrom: z.string(),
216
+ clientId: z.string().optional(),
217
+ configurationId: z.string().optional(),
212
218
  projectsMetadata: z.nullable(
213
219
  z.array(z.lazy(() => ProjectsMetadata$inboundSchema)),
214
220
  ).optional(),
@@ -218,6 +224,9 @@ export const GetConfigurableLogDrainResponseBody$inboundSchema: z.ZodType<
218
224
  });
219
225
  /** @internal */
220
226
  export type GetConfigurableLogDrainResponseBody$Outbound = {
227
+ createdFrom: string;
228
+ clientId?: string | undefined;
229
+ configurationId?: string | undefined;
221
230
  projectsMetadata?: Array<ProjectsMetadata$Outbound> | null | undefined;
222
231
  integrationIcon?: string | undefined;
223
232
  integrationConfigurationUri?: string | undefined;
@@ -230,6 +239,9 @@ export const GetConfigurableLogDrainResponseBody$outboundSchema: z.ZodType<
230
239
  z.ZodTypeDef,
231
240
  GetConfigurableLogDrainResponseBody
232
241
  > = z.object({
242
+ createdFrom: z.string(),
243
+ clientId: z.string().optional(),
244
+ configurationId: z.string().optional(),
233
245
  projectsMetadata: z.nullable(
234
246
  z.array(z.lazy(() => ProjectsMetadata$outboundSchema)),
235
247
  ).optional(),