@vercel/sdk 1.6.2 → 1.6.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 (188) hide show
  1. package/README.md +0 -10
  2. package/bin/mcp-server.js +1163 -2379
  3. package/bin/mcp-server.js.map +23 -38
  4. package/docs/sdks/integrations/README.md +0 -161
  5. package/docs/sdks/logdrains/README.md +0 -260
  6. package/esm/__tests__/integrations.test.js +5 -40
  7. package/esm/__tests__/integrations.test.js.map +1 -1
  8. package/esm/__tests__/logdrains.test.js +7 -89
  9. package/esm/__tests__/logdrains.test.js.map +1 -1
  10. package/esm/__tests__/security.test.js +1 -14
  11. package/esm/__tests__/security.test.js.map +1 -1
  12. package/esm/funcs/projectsCreateProject.js +2 -2
  13. package/esm/funcs/projectsCreateProject.js.map +1 -1
  14. package/esm/lib/config.d.ts +3 -3
  15. package/esm/lib/config.js +3 -3
  16. package/esm/lib/matchers.d.ts +3 -1
  17. package/esm/lib/matchers.d.ts.map +1 -1
  18. package/esm/lib/matchers.js +10 -0
  19. package/esm/lib/matchers.js.map +1 -1
  20. package/esm/lib/sdks.js +7 -2
  21. package/esm/lib/sdks.js.map +1 -1
  22. package/esm/mcp-server/mcp-server.js +1 -1
  23. package/esm/mcp-server/server.d.ts.map +1 -1
  24. package/esm/mcp-server/server.js +1 -11
  25. package/esm/mcp-server/server.js.map +1 -1
  26. package/esm/models/authuser.d.ts +41 -0
  27. package/esm/models/authuser.d.ts.map +1 -1
  28. package/esm/models/authuser.js +29 -0
  29. package/esm/models/authuser.js.map +1 -1
  30. package/esm/models/canceldeploymentop.d.ts +3 -3
  31. package/esm/models/canceldeploymentop.js +1 -1
  32. package/esm/models/canceldeploymentop.js.map +1 -1
  33. package/esm/models/createlogdrainop.d.ts +51 -51
  34. package/esm/models/createlogdrainop.d.ts.map +1 -1
  35. package/esm/models/createlogdrainop.js +74 -75
  36. package/esm/models/createlogdrainop.js.map +1 -1
  37. package/esm/models/createprojectop.d.ts +46 -16
  38. package/esm/models/createprojectop.d.ts.map +1 -1
  39. package/esm/models/createprojectop.js +17 -5
  40. package/esm/models/createprojectop.js.map +1 -1
  41. package/esm/models/exchangessotokenop.d.ts +34 -0
  42. package/esm/models/exchangessotokenop.d.ts.map +1 -1
  43. package/esm/models/exchangessotokenop.js +25 -0
  44. package/esm/models/exchangessotokenop.js.map +1 -1
  45. package/esm/models/getconfigurationsop.d.ts +19 -16
  46. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  47. package/esm/models/getconfigurationsop.js +25 -27
  48. package/esm/models/getconfigurationsop.js.map +1 -1
  49. package/esm/models/getcustomenvironmentop.d.ts +3 -0
  50. package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
  51. package/esm/models/getcustomenvironmentop.js.map +1 -1
  52. package/esm/models/getintegrationlogdrainsop.d.ts +11 -11
  53. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  54. package/esm/models/getintegrationlogdrainsop.js +14 -13
  55. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  56. package/esm/models/getprojectsop.d.ts +46 -16
  57. package/esm/models/getprojectsop.d.ts.map +1 -1
  58. package/esm/models/getprojectsop.js +17 -5
  59. package/esm/models/getprojectsop.js.map +1 -1
  60. package/esm/models/getteammembersop.d.ts +9 -9
  61. package/esm/models/getteammembersop.js +3 -3
  62. package/esm/models/getteammembersop.js.map +1 -1
  63. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -0
  64. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  65. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  66. package/esm/models/updateprojectdatacacheop.d.ts +46 -16
  67. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  68. package/esm/models/updateprojectdatacacheop.js +17 -5
  69. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  70. package/esm/models/updateprojectop.d.ts +46 -16
  71. package/esm/models/updateprojectop.d.ts.map +1 -1
  72. package/esm/models/updateprojectop.js +17 -5
  73. package/esm/models/updateprojectop.js.map +1 -1
  74. package/esm/models/userevent.d.ts +569 -512
  75. package/esm/models/userevent.d.ts.map +1 -1
  76. package/esm/models/userevent.js +703 -645
  77. package/esm/models/userevent.js.map +1 -1
  78. package/esm/sdk/integrations.d.ts +0 -16
  79. package/esm/sdk/integrations.d.ts.map +1 -1
  80. package/esm/sdk/integrations.js +0 -20
  81. package/esm/sdk/integrations.js.map +1 -1
  82. package/esm/sdk/logdrains.d.ts +0 -24
  83. package/esm/sdk/logdrains.d.ts.map +1 -1
  84. package/esm/sdk/logdrains.js +0 -30
  85. package/esm/sdk/logdrains.js.map +1 -1
  86. package/jsr.json +1 -1
  87. package/package.json +1 -1
  88. package/src/__tests__/integrations.test.ts +9 -44
  89. package/src/__tests__/logdrains.test.ts +13 -95
  90. package/src/__tests__/security.test.ts +1 -14
  91. package/src/funcs/projectsCreateProject.ts +2 -2
  92. package/src/lib/config.ts +3 -3
  93. package/src/lib/matchers.ts +20 -0
  94. package/src/lib/sdks.ts +8 -2
  95. package/src/mcp-server/mcp-server.ts +1 -1
  96. package/src/mcp-server/server.ts +1 -11
  97. package/src/models/authuser.ts +74 -0
  98. package/src/models/canceldeploymentop.ts +1 -1
  99. package/src/models/createlogdrainop.ts +95 -112
  100. package/src/models/createprojectop.ts +42 -6
  101. package/src/models/exchangessotokenop.ts +44 -0
  102. package/src/models/getconfigurationsop.ts +34 -39
  103. package/src/models/getcustomenvironmentop.ts +3 -0
  104. package/src/models/getintegrationlogdrainsop.ts +15 -20
  105. package/src/models/getprojectsop.ts +42 -6
  106. package/src/models/getteammembersop.ts +3 -3
  107. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +3 -0
  108. package/src/models/updateprojectdatacacheop.ts +42 -6
  109. package/src/models/updateprojectop.ts +42 -6
  110. package/src/models/userevent.ts +1328 -1193
  111. package/src/sdk/integrations.ts +0 -44
  112. package/src/sdk/logdrains.ts +0 -66
  113. package/vercel-spec.json +341 -1272
  114. package/esm/funcs/integrationsGitNamespaces.d.ts +0 -18
  115. package/esm/funcs/integrationsGitNamespaces.d.ts.map +0 -1
  116. package/esm/funcs/integrationsGitNamespaces.js +0 -86
  117. package/esm/funcs/integrationsGitNamespaces.js.map +0 -1
  118. package/esm/funcs/integrationsSearchRepo.d.ts +0 -17
  119. package/esm/funcs/integrationsSearchRepo.d.ts.map +0 -1
  120. package/esm/funcs/integrationsSearchRepo.js +0 -89
  121. package/esm/funcs/integrationsSearchRepo.js.map +0 -1
  122. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts +0 -18
  123. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  124. package/esm/funcs/logDrainsCreateConfigurableLogDrain.js +0 -86
  125. package/esm/funcs/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  126. package/esm/funcs/logDrainsGetAllLogDrains.d.ts +0 -18
  127. package/esm/funcs/logDrainsGetAllLogDrains.d.ts.map +0 -1
  128. package/esm/funcs/logDrainsGetAllLogDrains.js +0 -88
  129. package/esm/funcs/logDrainsGetAllLogDrains.js.map +0 -1
  130. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts +0 -19
  131. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  132. package/esm/funcs/logDrainsGetConfigurableLogDrain.js +0 -92
  133. package/esm/funcs/logDrainsGetConfigurableLogDrain.js.map +0 -1
  134. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts +0 -7
  135. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts.map +0 -1
  136. package/esm/mcp-server/tools/integrationsGitNamespaces.js +0 -28
  137. package/esm/mcp-server/tools/integrationsGitNamespaces.js.map +0 -1
  138. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts +0 -7
  139. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts.map +0 -1
  140. package/esm/mcp-server/tools/integrationsSearchRepo.js +0 -28
  141. package/esm/mcp-server/tools/integrationsSearchRepo.js.map +0 -1
  142. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts +0 -7
  143. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  144. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js +0 -28
  145. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  146. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts +0 -7
  147. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts.map +0 -1
  148. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js +0 -28
  149. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js.map +0 -1
  150. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts +0 -7
  151. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  152. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js +0 -28
  153. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js.map +0 -1
  154. package/esm/models/createconfigurablelogdrainop.d.ts +0 -451
  155. package/esm/models/createconfigurablelogdrainop.d.ts.map +0 -1
  156. package/esm/models/createconfigurablelogdrainop.js +0 -348
  157. package/esm/models/createconfigurablelogdrainop.js.map +0 -1
  158. package/esm/models/getalllogdrainsop.d.ts +0 -294
  159. package/esm/models/getalllogdrainsop.d.ts.map +0 -1
  160. package/esm/models/getalllogdrainsop.js +0 -231
  161. package/esm/models/getalllogdrainsop.js.map +0 -1
  162. package/esm/models/getconfigurablelogdrainop.d.ts +0 -292
  163. package/esm/models/getconfigurablelogdrainop.d.ts.map +0 -1
  164. package/esm/models/getconfigurablelogdrainop.js +0 -230
  165. package/esm/models/getconfigurablelogdrainop.js.map +0 -1
  166. package/esm/models/gitnamespacesop.d.ts +0 -126
  167. package/esm/models/gitnamespacesop.d.ts.map +0 -1
  168. package/esm/models/gitnamespacesop.js +0 -115
  169. package/esm/models/gitnamespacesop.js.map +0 -1
  170. package/esm/models/searchrepoop.d.ts +0 -421
  171. package/esm/models/searchrepoop.d.ts.map +0 -1
  172. package/esm/models/searchrepoop.js +0 -385
  173. package/esm/models/searchrepoop.js.map +0 -1
  174. package/src/funcs/integrationsGitNamespaces.ts +0 -185
  175. package/src/funcs/integrationsSearchRepo.ts +0 -181
  176. package/src/funcs/logDrainsCreateConfigurableLogDrain.ts +0 -185
  177. package/src/funcs/logDrainsGetAllLogDrains.ts +0 -187
  178. package/src/funcs/logDrainsGetConfigurableLogDrain.ts +0 -199
  179. package/src/mcp-server/tools/integrationsGitNamespaces.ts +0 -37
  180. package/src/mcp-server/tools/integrationsSearchRepo.ts +0 -37
  181. package/src/mcp-server/tools/logDrainsCreateConfigurableLogDrain.ts +0 -39
  182. package/src/mcp-server/tools/logDrainsGetAllLogDrains.ts +0 -37
  183. package/src/mcp-server/tools/logDrainsGetConfigurableLogDrain.ts +0 -39
  184. package/src/models/createconfigurablelogdrainop.ts +0 -652
  185. package/src/models/getalllogdrainsop.ts +0 -416
  186. package/src/models/getconfigurablelogdrainop.ts +0 -420
  187. package/src/models/gitnamespacesop.ts +0 -235
  188. package/src/models/searchrepoop.ts +0 -784
@@ -720,20 +720,32 @@ export type CreateProjectAliasError = {
720
720
  message: string;
721
721
  };
722
722
 
723
+ /**
724
+ * The type of matching to perform
725
+ */
723
726
  export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType =
724
727
  {
725
728
  EndsWith: "endsWith",
726
729
  StartsWith: "startsWith",
727
730
  Equals: "equals",
728
731
  } as const;
732
+ /**
733
+ * The type of matching to perform
734
+ */
729
735
  export type CreateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType =
730
736
  ClosedEnum<
731
737
  typeof CreateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType
732
738
  >;
733
739
 
734
740
  export type CreateProjectBranchMatcher = {
741
+ /**
742
+ * The type of matching to perform
743
+ */
735
744
  type:
736
745
  CreateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType;
746
+ /**
747
+ * The pattern to match against branch names
748
+ */
737
749
  pattern: string;
738
750
  };
739
751
 
@@ -982,7 +994,7 @@ export type CreateProjectMicrofrontends1 = {
982
994
  */
983
995
  isDefaultApp?: boolean | undefined;
984
996
  /**
985
- * A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI.
997
+ * A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. Includes the leading slash, e.g. `/docs`
986
998
  */
987
999
  defaultRoute?: string | undefined;
988
1000
  /**
@@ -1085,8 +1097,8 @@ export type CreateProjectDefaultResourceConfig = {
1085
1097
  };
1086
1098
 
1087
1099
  export const CreateProjectDeploymentType = {
1088
- Preview: "preview",
1089
1100
  All: "all",
1101
+ Preview: "preview",
1090
1102
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1091
1103
  } as const;
1092
1104
  export type CreateProjectDeploymentType = ClosedEnum<
@@ -1104,19 +1116,31 @@ export type CreateProjectProjectsAliasError = {
1104
1116
  message: string;
1105
1117
  };
1106
1118
 
1119
+ /**
1120
+ * The type of matching to perform
1121
+ */
1107
1122
  export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType =
1108
1123
  {
1109
1124
  EndsWith: "endsWith",
1110
1125
  StartsWith: "startsWith",
1111
1126
  Equals: "equals",
1112
1127
  } as const;
1128
+ /**
1129
+ * The type of matching to perform
1130
+ */
1113
1131
  export type CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType =
1114
1132
  ClosedEnum<
1115
1133
  typeof CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType
1116
1134
  >;
1117
1135
 
1118
1136
  export type CreateProjectProjectsBranchMatcher = {
1137
+ /**
1138
+ * The type of matching to perform
1139
+ */
1119
1140
  type: CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType;
1141
+ /**
1142
+ * The pattern to match against branch names
1143
+ */
1120
1144
  pattern: string;
1121
1145
  };
1122
1146
 
@@ -1360,6 +1384,7 @@ export type CreateProjectPermissions = {
1360
1384
  teamInvite?: Array<ACLAction> | undefined;
1361
1385
  teamInviteCode?: Array<ACLAction> | undefined;
1362
1386
  teamJoin?: Array<ACLAction> | undefined;
1387
+ teamMemberMfaStatus?: Array<ACLAction> | undefined;
1363
1388
  teamMicrofrontends?: Array<ACLAction> | undefined;
1364
1389
  teamOwnMembership?: Array<ACLAction> | undefined;
1365
1390
  teamOwnMembershipDisconnectSAML?: Array<ACLAction> | undefined;
@@ -1377,6 +1402,8 @@ export type CreateProjectPermissions = {
1377
1402
  endpointVerification?: Array<ACLAction> | undefined;
1378
1403
  projectTransferIn?: Array<ACLAction> | undefined;
1379
1404
  oauth2Application?: Array<ACLAction> | undefined;
1405
+ vercelRun?: Array<ACLAction> | undefined;
1406
+ vercelRunExec?: Array<ACLAction> | undefined;
1380
1407
  aliasProject?: Array<ACLAction> | undefined;
1381
1408
  aliasProtectionBypass?: Array<ACLAction> | undefined;
1382
1409
  productionAliasProtectionBypass?: Array<ACLAction> | undefined;
@@ -1477,10 +1504,10 @@ export type CreateProjectProtectionBypass = {
1477
1504
  };
1478
1505
 
1479
1506
  export const CreateProjectTrustedIpsProjectsDeploymentType = {
1480
- Production: "production",
1481
- Preview: "preview",
1482
1507
  All: "all",
1508
+ Preview: "preview",
1483
1509
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1510
+ Production: "production",
1484
1511
  } as const;
1485
1512
  export type CreateProjectTrustedIpsProjectsDeploymentType = ClosedEnum<
1486
1513
  typeof CreateProjectTrustedIpsProjectsDeploymentType
@@ -1491,10 +1518,10 @@ export type CreateProjectTrustedIps2 = {
1491
1518
  };
1492
1519
 
1493
1520
  export const CreateProjectTrustedIpsDeploymentType = {
1494
- Production: "production",
1495
- Preview: "preview",
1496
1521
  All: "all",
1522
+ Preview: "preview",
1497
1523
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1524
+ Production: "production",
1498
1525
  } as const;
1499
1526
  export type CreateProjectTrustedIpsDeploymentType = ClosedEnum<
1500
1527
  typeof CreateProjectTrustedIpsDeploymentType
@@ -7595,6 +7622,7 @@ export const CreateProjectPermissions$inboundSchema: z.ZodType<
7595
7622
  teamInvite: z.array(ACLAction$inboundSchema).optional(),
7596
7623
  teamInviteCode: z.array(ACLAction$inboundSchema).optional(),
7597
7624
  teamJoin: z.array(ACLAction$inboundSchema).optional(),
7625
+ teamMemberMfaStatus: z.array(ACLAction$inboundSchema).optional(),
7598
7626
  teamMicrofrontends: z.array(ACLAction$inboundSchema).optional(),
7599
7627
  teamOwnMembership: z.array(ACLAction$inboundSchema).optional(),
7600
7628
  teamOwnMembershipDisconnectSAML: z.array(ACLAction$inboundSchema).optional(),
@@ -7612,6 +7640,8 @@ export const CreateProjectPermissions$inboundSchema: z.ZodType<
7612
7640
  endpointVerification: z.array(ACLAction$inboundSchema).optional(),
7613
7641
  projectTransferIn: z.array(ACLAction$inboundSchema).optional(),
7614
7642
  oauth2Application: z.array(ACLAction$inboundSchema).optional(),
7643
+ vercelRun: z.array(ACLAction$inboundSchema).optional(),
7644
+ vercelRunExec: z.array(ACLAction$inboundSchema).optional(),
7615
7645
  aliasProject: z.array(ACLAction$inboundSchema).optional(),
7616
7646
  aliasProtectionBypass: z.array(ACLAction$inboundSchema).optional(),
7617
7647
  productionAliasProtectionBypass: z.array(ACLAction$inboundSchema).optional(),
@@ -7797,6 +7827,7 @@ export type CreateProjectPermissions$Outbound = {
7797
7827
  teamInvite?: Array<string> | undefined;
7798
7828
  teamInviteCode?: Array<string> | undefined;
7799
7829
  teamJoin?: Array<string> | undefined;
7830
+ teamMemberMfaStatus?: Array<string> | undefined;
7800
7831
  teamMicrofrontends?: Array<string> | undefined;
7801
7832
  teamOwnMembership?: Array<string> | undefined;
7802
7833
  teamOwnMembershipDisconnectSAML?: Array<string> | undefined;
@@ -7814,6 +7845,8 @@ export type CreateProjectPermissions$Outbound = {
7814
7845
  endpointVerification?: Array<string> | undefined;
7815
7846
  projectTransferIn?: Array<string> | undefined;
7816
7847
  oauth2Application?: Array<string> | undefined;
7848
+ vercelRun?: Array<string> | undefined;
7849
+ vercelRunExec?: Array<string> | undefined;
7817
7850
  aliasProject?: Array<string> | undefined;
7818
7851
  aliasProtectionBypass?: Array<string> | undefined;
7819
7852
  productionAliasProtectionBypass?: Array<string> | undefined;
@@ -8000,6 +8033,7 @@ export const CreateProjectPermissions$outboundSchema: z.ZodType<
8000
8033
  teamInvite: z.array(ACLAction$outboundSchema).optional(),
8001
8034
  teamInviteCode: z.array(ACLAction$outboundSchema).optional(),
8002
8035
  teamJoin: z.array(ACLAction$outboundSchema).optional(),
8036
+ teamMemberMfaStatus: z.array(ACLAction$outboundSchema).optional(),
8003
8037
  teamMicrofrontends: z.array(ACLAction$outboundSchema).optional(),
8004
8038
  teamOwnMembership: z.array(ACLAction$outboundSchema).optional(),
8005
8039
  teamOwnMembershipDisconnectSAML: z.array(ACLAction$outboundSchema).optional(),
@@ -8017,6 +8051,8 @@ export const CreateProjectPermissions$outboundSchema: z.ZodType<
8017
8051
  endpointVerification: z.array(ACLAction$outboundSchema).optional(),
8018
8052
  projectTransferIn: z.array(ACLAction$outboundSchema).optional(),
8019
8053
  oauth2Application: z.array(ACLAction$outboundSchema).optional(),
8054
+ vercelRun: z.array(ACLAction$outboundSchema).optional(),
8055
+ vercelRunExec: z.array(ACLAction$outboundSchema).optional(),
8020
8056
  aliasProject: z.array(ACLAction$outboundSchema).optional(),
8021
8057
  aliasProtectionBypass: z.array(ACLAction$outboundSchema).optional(),
8022
8058
  productionAliasProtectionBypass: z.array(ACLAction$outboundSchema).optional(),
@@ -5,9 +5,23 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
+ import { ClosedEnum } from "../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../types/fp.js";
9
10
  import { SDKValidationError } from "./sdkvalidationerror.js";
10
11
 
12
+ /**
13
+ * The grant type, when using x-www-form-urlencoded content type
14
+ */
15
+ export const ExchangeSsoTokenGrantType = {
16
+ AuthorizationCode: "authorization_code",
17
+ } as const;
18
+ /**
19
+ * The grant type, when using x-www-form-urlencoded content type
20
+ */
21
+ export type ExchangeSsoTokenGrantType = ClosedEnum<
22
+ typeof ExchangeSsoTokenGrantType
23
+ >;
24
+
11
25
  export type ExchangeSsoTokenRequestBody = {
12
26
  /**
13
27
  * The sensitive code received from Vercel
@@ -29,6 +43,10 @@ export type ExchangeSsoTokenRequestBody = {
29
43
  * The integration redirect URI
30
44
  */
31
45
  redirectUri?: string | undefined;
46
+ /**
47
+ * The grant type, when using x-www-form-urlencoded content type
48
+ */
49
+ grantType?: ExchangeSsoTokenGrantType | undefined;
32
50
  };
33
51
 
34
52
  export type ExchangeSsoTokenResponseBody = {
@@ -37,6 +55,27 @@ export type ExchangeSsoTokenResponseBody = {
37
55
  tokenType?: any | null | undefined;
38
56
  };
39
57
 
58
+ /** @internal */
59
+ export const ExchangeSsoTokenGrantType$inboundSchema: z.ZodNativeEnum<
60
+ typeof ExchangeSsoTokenGrantType
61
+ > = z.nativeEnum(ExchangeSsoTokenGrantType);
62
+
63
+ /** @internal */
64
+ export const ExchangeSsoTokenGrantType$outboundSchema: z.ZodNativeEnum<
65
+ typeof ExchangeSsoTokenGrantType
66
+ > = ExchangeSsoTokenGrantType$inboundSchema;
67
+
68
+ /**
69
+ * @internal
70
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
+ */
72
+ export namespace ExchangeSsoTokenGrantType$ {
73
+ /** @deprecated use `ExchangeSsoTokenGrantType$inboundSchema` instead. */
74
+ export const inboundSchema = ExchangeSsoTokenGrantType$inboundSchema;
75
+ /** @deprecated use `ExchangeSsoTokenGrantType$outboundSchema` instead. */
76
+ export const outboundSchema = ExchangeSsoTokenGrantType$outboundSchema;
77
+ }
78
+
40
79
  /** @internal */
41
80
  export const ExchangeSsoTokenRequestBody$inboundSchema: z.ZodType<
42
81
  ExchangeSsoTokenRequestBody,
@@ -48,11 +87,13 @@ export const ExchangeSsoTokenRequestBody$inboundSchema: z.ZodType<
48
87
  client_id: z.string(),
49
88
  client_secret: z.string(),
50
89
  redirect_uri: z.string().optional(),
90
+ grant_type: ExchangeSsoTokenGrantType$inboundSchema.optional(),
51
91
  }).transform((v) => {
52
92
  return remap$(v, {
53
93
  "client_id": "clientId",
54
94
  "client_secret": "clientSecret",
55
95
  "redirect_uri": "redirectUri",
96
+ "grant_type": "grantType",
56
97
  });
57
98
  });
58
99
 
@@ -63,6 +104,7 @@ export type ExchangeSsoTokenRequestBody$Outbound = {
63
104
  client_id: string;
64
105
  client_secret: string;
65
106
  redirect_uri?: string | undefined;
107
+ grant_type?: string | undefined;
66
108
  };
67
109
 
68
110
  /** @internal */
@@ -76,11 +118,13 @@ export const ExchangeSsoTokenRequestBody$outboundSchema: z.ZodType<
76
118
  clientId: z.string(),
77
119
  clientSecret: z.string(),
78
120
  redirectUri: z.string().optional(),
121
+ grantType: ExchangeSsoTokenGrantType$outboundSchema.optional(),
79
122
  }).transform((v) => {
80
123
  return remap$(v, {
81
124
  clientId: "client_id",
82
125
  clientSecret: "client_secret",
83
126
  redirectUri: "redirect_uri",
127
+ grantType: "grant_type",
84
128
  });
85
129
  });
86
130
 
@@ -58,6 +58,7 @@ export const TagIds = {
58
58
  TagSecurity: "tag_security",
59
59
  TagTesting: "tag_testing",
60
60
  TagVideo: "tag_video",
61
+ TagWorkflow: "tag_workflow",
61
62
  } as const;
62
63
  export type TagIds = ClosedEnum<typeof TagIds>;
63
64
 
@@ -93,7 +94,7 @@ export type GetConfigurationsResponseBodyIntegrationsType = ClosedEnum<
93
94
  typeof GetConfigurationsResponseBodyIntegrationsType
94
95
  >;
95
96
 
96
- export const GetConfigurationsResponseBodyDisabledReason = {
97
+ export const ResponseBodyDisabledReason = {
97
98
  DisabledByOwner: "disabled-by-owner",
98
99
  FeatureNotAvailable: "feature-not-available",
99
100
  DisabledByAdmin: "disabled-by-admin",
@@ -101,8 +102,8 @@ export const GetConfigurationsResponseBodyDisabledReason = {
101
102
  AccountPlanDowngrade: "account-plan-downgrade",
102
103
  OriginalOwnerRoleDowngraded: "original-owner-role-downgraded",
103
104
  } as const;
104
- export type GetConfigurationsResponseBodyDisabledReason = ClosedEnum<
105
- typeof GetConfigurationsResponseBodyDisabledReason
105
+ export type ResponseBodyDisabledReason = ClosedEnum<
106
+ typeof ResponseBodyDisabledReason
106
107
  >;
107
108
 
108
109
  /**
@@ -182,7 +183,7 @@ export type GetConfigurationsResponseBody2 = {
182
183
  * A timestamp that tells you when the configuration deletion has been started for cases when the deletion needs to be settled/approved by partners, such as when marketplace invoices have been paid.
183
184
  */
184
185
  deleteRequestedAt?: number | null | undefined;
185
- disabledReason?: GetConfigurationsResponseBodyDisabledReason | undefined;
186
+ disabledReason?: ResponseBodyDisabledReason | undefined;
186
187
  /**
187
188
  * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
188
189
  */
@@ -212,7 +213,7 @@ export type GetConfigurationsResponseBodyType = ClosedEnum<
212
213
  typeof GetConfigurationsResponseBodyType
213
214
  >;
214
215
 
215
- export const ResponseBodyDisabledReason = {
216
+ export const DisabledReason = {
216
217
  DisabledByOwner: "disabled-by-owner",
217
218
  FeatureNotAvailable: "feature-not-available",
218
219
  DisabledByAdmin: "disabled-by-admin",
@@ -220,9 +221,7 @@ export const ResponseBodyDisabledReason = {
220
221
  AccountPlanDowngrade: "account-plan-downgrade",
221
222
  OriginalOwnerRoleDowngraded: "original-owner-role-downgraded",
222
223
  } as const;
223
- export type ResponseBodyDisabledReason = ClosedEnum<
224
- typeof ResponseBodyDisabledReason
225
- >;
224
+ export type DisabledReason = ClosedEnum<typeof DisabledReason>;
226
225
 
227
226
  /**
228
227
  * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
@@ -303,7 +302,7 @@ export type GetConfigurationsResponseBody1 = {
303
302
  * A timestamp that tells you when the configuration deletion has been started for cases when the deletion needs to be settled/approved by partners, such as when marketplace invoices have been paid.
304
303
  */
305
304
  deleteRequestedAt?: number | null | undefined;
306
- disabledReason?: ResponseBodyDisabledReason | undefined;
305
+ disabledReason?: DisabledReason | undefined;
307
306
  /**
308
307
  * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
309
308
  */
@@ -555,26 +554,24 @@ export namespace GetConfigurationsResponseBodyIntegrationsType$ {
555
554
  }
556
555
 
557
556
  /** @internal */
558
- export const GetConfigurationsResponseBodyDisabledReason$inboundSchema:
559
- z.ZodNativeEnum<typeof GetConfigurationsResponseBodyDisabledReason> = z
560
- .nativeEnum(GetConfigurationsResponseBodyDisabledReason);
557
+ export const ResponseBodyDisabledReason$inboundSchema: z.ZodNativeEnum<
558
+ typeof ResponseBodyDisabledReason
559
+ > = z.nativeEnum(ResponseBodyDisabledReason);
561
560
 
562
561
  /** @internal */
563
- export const GetConfigurationsResponseBodyDisabledReason$outboundSchema:
564
- z.ZodNativeEnum<typeof GetConfigurationsResponseBodyDisabledReason> =
565
- GetConfigurationsResponseBodyDisabledReason$inboundSchema;
562
+ export const ResponseBodyDisabledReason$outboundSchema: z.ZodNativeEnum<
563
+ typeof ResponseBodyDisabledReason
564
+ > = ResponseBodyDisabledReason$inboundSchema;
566
565
 
567
566
  /**
568
567
  * @internal
569
568
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
570
569
  */
571
- export namespace GetConfigurationsResponseBodyDisabledReason$ {
572
- /** @deprecated use `GetConfigurationsResponseBodyDisabledReason$inboundSchema` instead. */
573
- export const inboundSchema =
574
- GetConfigurationsResponseBodyDisabledReason$inboundSchema;
575
- /** @deprecated use `GetConfigurationsResponseBodyDisabledReason$outboundSchema` instead. */
576
- export const outboundSchema =
577
- GetConfigurationsResponseBodyDisabledReason$outboundSchema;
570
+ export namespace ResponseBodyDisabledReason$ {
571
+ /** @deprecated use `ResponseBodyDisabledReason$inboundSchema` instead. */
572
+ export const inboundSchema = ResponseBodyDisabledReason$inboundSchema;
573
+ /** @deprecated use `ResponseBodyDisabledReason$outboundSchema` instead. */
574
+ export const outboundSchema = ResponseBodyDisabledReason$outboundSchema;
578
575
  }
579
576
 
580
577
  /** @internal */
@@ -624,8 +621,7 @@ export const GetConfigurationsResponseBody2$inboundSchema: z.ZodType<
624
621
  disabledAt: z.number().optional(),
625
622
  deletedAt: z.nullable(z.number()).optional(),
626
623
  deleteRequestedAt: z.nullable(z.number()).optional(),
627
- disabledReason: GetConfigurationsResponseBodyDisabledReason$inboundSchema
628
- .optional(),
624
+ disabledReason: ResponseBodyDisabledReason$inboundSchema.optional(),
629
625
  installationType: GetConfigurationsResponseBodyInstallationType$inboundSchema
630
626
  .optional(),
631
627
  });
@@ -677,8 +673,7 @@ export const GetConfigurationsResponseBody2$outboundSchema: z.ZodType<
677
673
  disabledAt: z.number().optional(),
678
674
  deletedAt: z.nullable(z.number()).optional(),
679
675
  deleteRequestedAt: z.nullable(z.number()).optional(),
680
- disabledReason: GetConfigurationsResponseBodyDisabledReason$outboundSchema
681
- .optional(),
676
+ disabledReason: ResponseBodyDisabledReason$outboundSchema.optional(),
682
677
  installationType: GetConfigurationsResponseBodyInstallationType$outboundSchema
683
678
  .optional(),
684
679
  });
@@ -762,24 +757,24 @@ export namespace GetConfigurationsResponseBodyType$ {
762
757
  }
763
758
 
764
759
  /** @internal */
765
- export const ResponseBodyDisabledReason$inboundSchema: z.ZodNativeEnum<
766
- typeof ResponseBodyDisabledReason
767
- > = z.nativeEnum(ResponseBodyDisabledReason);
760
+ export const DisabledReason$inboundSchema: z.ZodNativeEnum<
761
+ typeof DisabledReason
762
+ > = z.nativeEnum(DisabledReason);
768
763
 
769
764
  /** @internal */
770
- export const ResponseBodyDisabledReason$outboundSchema: z.ZodNativeEnum<
771
- typeof ResponseBodyDisabledReason
772
- > = ResponseBodyDisabledReason$inboundSchema;
765
+ export const DisabledReason$outboundSchema: z.ZodNativeEnum<
766
+ typeof DisabledReason
767
+ > = DisabledReason$inboundSchema;
773
768
 
774
769
  /**
775
770
  * @internal
776
771
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
777
772
  */
778
- export namespace ResponseBodyDisabledReason$ {
779
- /** @deprecated use `ResponseBodyDisabledReason$inboundSchema` instead. */
780
- export const inboundSchema = ResponseBodyDisabledReason$inboundSchema;
781
- /** @deprecated use `ResponseBodyDisabledReason$outboundSchema` instead. */
782
- export const outboundSchema = ResponseBodyDisabledReason$outboundSchema;
773
+ export namespace DisabledReason$ {
774
+ /** @deprecated use `DisabledReason$inboundSchema` instead. */
775
+ export const inboundSchema = DisabledReason$inboundSchema;
776
+ /** @deprecated use `DisabledReason$outboundSchema` instead. */
777
+ export const outboundSchema = DisabledReason$outboundSchema;
783
778
  }
784
779
 
785
780
  /** @internal */
@@ -825,7 +820,7 @@ export const GetConfigurationsResponseBody1$inboundSchema: z.ZodType<
825
820
  disabledAt: z.number().optional(),
826
821
  deletedAt: z.nullable(z.number()).optional(),
827
822
  deleteRequestedAt: z.nullable(z.number()).optional(),
828
- disabledReason: ResponseBodyDisabledReason$inboundSchema.optional(),
823
+ disabledReason: DisabledReason$inboundSchema.optional(),
829
824
  installationType: ResponseBodyInstallationType$inboundSchema.optional(),
830
825
  });
831
826
 
@@ -873,7 +868,7 @@ export const GetConfigurationsResponseBody1$outboundSchema: z.ZodType<
873
868
  disabledAt: z.number().optional(),
874
869
  deletedAt: z.nullable(z.number()).optional(),
875
870
  deleteRequestedAt: z.nullable(z.number()).optional(),
876
- disabledReason: ResponseBodyDisabledReason$outboundSchema.optional(),
871
+ disabledReason: DisabledReason$outboundSchema.optional(),
877
872
  installationType: ResponseBodyInstallationType$outboundSchema.optional(),
878
873
  });
879
874
 
@@ -26,6 +26,9 @@ export type GetCustomEnvironmentRequest = {
26
26
  slug?: string | undefined;
27
27
  };
28
28
 
29
+ /**
30
+ * Internal representation of a custom environment with all required properties
31
+ */
29
32
  export type GetCustomEnvironmentResponseBody = {};
30
33
 
31
34
  /** @internal */
@@ -56,16 +56,14 @@ export type GetIntegrationLogDrainsSources = ClosedEnum<
56
56
  /**
57
57
  * Whether the log drain was created by an integration or by a user
58
58
  */
59
- export const GetIntegrationLogDrainsCreatedFrom = {
60
- SelfServed: "self-served",
59
+ export const CreatedFrom = {
61
60
  Integration: "integration",
61
+ SelfServed: "self-served",
62
62
  } as const;
63
63
  /**
64
64
  * Whether the log drain was created by an integration or by a user
65
65
  */
66
- export type GetIntegrationLogDrainsCreatedFrom = ClosedEnum<
67
- typeof GetIntegrationLogDrainsCreatedFrom
68
- >;
66
+ export type CreatedFrom = ClosedEnum<typeof CreatedFrom>;
69
67
 
70
68
  /**
71
69
  * The environment of log drain
@@ -126,7 +124,7 @@ export type GetIntegrationLogDrainsResponseBody = {
126
124
  /**
127
125
  * Whether the log drain was created by an integration or by a user
128
126
  */
129
- createdFrom?: GetIntegrationLogDrainsCreatedFrom | undefined;
127
+ createdFrom?: CreatedFrom | undefined;
130
128
  /**
131
129
  * The headers to send with the request
132
130
  */
@@ -250,25 +248,22 @@ export namespace GetIntegrationLogDrainsSources$ {
250
248
  }
251
249
 
252
250
  /** @internal */
253
- export const GetIntegrationLogDrainsCreatedFrom$inboundSchema: z.ZodNativeEnum<
254
- typeof GetIntegrationLogDrainsCreatedFrom
255
- > = z.nativeEnum(GetIntegrationLogDrainsCreatedFrom);
251
+ export const CreatedFrom$inboundSchema: z.ZodNativeEnum<typeof CreatedFrom> = z
252
+ .nativeEnum(CreatedFrom);
256
253
 
257
254
  /** @internal */
258
- export const GetIntegrationLogDrainsCreatedFrom$outboundSchema: z.ZodNativeEnum<
259
- typeof GetIntegrationLogDrainsCreatedFrom
260
- > = GetIntegrationLogDrainsCreatedFrom$inboundSchema;
255
+ export const CreatedFrom$outboundSchema: z.ZodNativeEnum<typeof CreatedFrom> =
256
+ CreatedFrom$inboundSchema;
261
257
 
262
258
  /**
263
259
  * @internal
264
260
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
265
261
  */
266
- export namespace GetIntegrationLogDrainsCreatedFrom$ {
267
- /** @deprecated use `GetIntegrationLogDrainsCreatedFrom$inboundSchema` instead. */
268
- export const inboundSchema = GetIntegrationLogDrainsCreatedFrom$inboundSchema;
269
- /** @deprecated use `GetIntegrationLogDrainsCreatedFrom$outboundSchema` instead. */
270
- export const outboundSchema =
271
- GetIntegrationLogDrainsCreatedFrom$outboundSchema;
262
+ export namespace CreatedFrom$ {
263
+ /** @deprecated use `CreatedFrom$inboundSchema` instead. */
264
+ export const inboundSchema = CreatedFrom$inboundSchema;
265
+ /** @deprecated use `CreatedFrom$outboundSchema` instead. */
266
+ export const outboundSchema = CreatedFrom$outboundSchema;
272
267
  }
273
268
 
274
269
  /** @internal */
@@ -312,7 +307,7 @@ export const GetIntegrationLogDrainsResponseBody$inboundSchema: z.ZodType<
312
307
  projectIds: z.array(z.string()).optional(),
313
308
  url: z.string(),
314
309
  sources: z.array(GetIntegrationLogDrainsSources$inboundSchema).optional(),
315
- createdFrom: GetIntegrationLogDrainsCreatedFrom$inboundSchema.optional(),
310
+ createdFrom: CreatedFrom$inboundSchema.optional(),
316
311
  headers: z.record(z.string()).optional(),
317
312
  environments: z.array(GetIntegrationLogDrainsEnvironments$inboundSchema),
318
313
  branch: z.string().optional(),
@@ -357,7 +352,7 @@ export const GetIntegrationLogDrainsResponseBody$outboundSchema: z.ZodType<
357
352
  projectIds: z.array(z.string()).optional(),
358
353
  url: z.string(),
359
354
  sources: z.array(GetIntegrationLogDrainsSources$outboundSchema).optional(),
360
- createdFrom: GetIntegrationLogDrainsCreatedFrom$outboundSchema.optional(),
355
+ createdFrom: CreatedFrom$outboundSchema.optional(),
361
356
  headers: z.record(z.string()).optional(),
362
357
  environments: z.array(GetIntegrationLogDrainsEnvironments$outboundSchema),
363
358
  branch: z.string().optional(),