@vercel/sdk 14.0.0-canary.7 → 14.0.0-canary.9

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 (179) hide show
  1. package/.devcontainer/README.md +1 -1
  2. package/README.md +25 -0
  3. package/docs/sdks/authentication/README.md +69 -0
  4. package/docs/sdks/marketplace/README.md +694 -0
  5. package/docs/sdks/projects/README.md +85 -0
  6. package/esm/funcs/authenticationExchangeSsoToken.d.ts +15 -0
  7. package/esm/funcs/authenticationExchangeSsoToken.d.ts.map +1 -0
  8. package/esm/funcs/authenticationExchangeSsoToken.js +66 -0
  9. package/esm/funcs/authenticationExchangeSsoToken.js.map +1 -0
  10. package/esm/funcs/marketplaceCreateEvent.d.ts +15 -0
  11. package/esm/funcs/marketplaceCreateEvent.d.ts.map +1 -0
  12. package/esm/funcs/marketplaceCreateEvent.js +73 -0
  13. package/esm/funcs/marketplaceCreateEvent.js.map +1 -0
  14. package/esm/funcs/marketplaceExchangeSsoToken.d.ts +15 -0
  15. package/esm/funcs/marketplaceExchangeSsoToken.d.ts.map +1 -0
  16. package/esm/funcs/marketplaceExchangeSsoToken.js +66 -0
  17. package/esm/funcs/marketplaceExchangeSsoToken.js.map +1 -0
  18. package/esm/funcs/marketplaceGetAccountInfo.d.ts +15 -0
  19. package/esm/funcs/marketplaceGetAccountInfo.d.ts.map +1 -0
  20. package/esm/funcs/marketplaceGetAccountInfo.js +71 -0
  21. package/esm/funcs/marketplaceGetAccountInfo.js.map +1 -0
  22. package/esm/funcs/marketplaceGetInvoice.d.ts +15 -0
  23. package/esm/funcs/marketplaceGetInvoice.d.ts.map +1 -0
  24. package/esm/funcs/marketplaceGetInvoice.js +75 -0
  25. package/esm/funcs/marketplaceGetInvoice.js.map +1 -0
  26. package/esm/funcs/marketplaceGetMember.d.ts +15 -0
  27. package/esm/funcs/marketplaceGetMember.d.ts.map +1 -0
  28. package/esm/funcs/marketplaceGetMember.js +75 -0
  29. package/esm/funcs/marketplaceGetMember.js.map +1 -0
  30. package/esm/funcs/marketplaceSubmitBillingData.d.ts +15 -0
  31. package/esm/funcs/marketplaceSubmitBillingData.d.ts.map +1 -0
  32. package/esm/funcs/marketplaceSubmitBillingData.js +73 -0
  33. package/esm/funcs/marketplaceSubmitBillingData.js.map +1 -0
  34. package/esm/funcs/marketplaceSubmitInvoice.d.ts +15 -0
  35. package/esm/funcs/marketplaceSubmitInvoice.d.ts.map +1 -0
  36. package/esm/funcs/marketplaceSubmitInvoice.js +72 -0
  37. package/esm/funcs/marketplaceSubmitInvoice.js.map +1 -0
  38. package/esm/funcs/marketplaceUpdateInvoice.d.ts +15 -0
  39. package/esm/funcs/marketplaceUpdateInvoice.d.ts.map +1 -0
  40. package/esm/funcs/marketplaceUpdateInvoice.js +77 -0
  41. package/esm/funcs/marketplaceUpdateInvoice.js.map +1 -0
  42. package/esm/funcs/marketplaceUpdateResourceSecrets.d.ts +15 -0
  43. package/esm/funcs/marketplaceUpdateResourceSecrets.d.ts.map +1 -0
  44. package/esm/funcs/marketplaceUpdateResourceSecrets.js +78 -0
  45. package/esm/funcs/marketplaceUpdateResourceSecrets.js.map +1 -0
  46. package/esm/funcs/projectsGetProjectDomains.d.ts +15 -0
  47. package/esm/funcs/projectsGetProjectDomains.d.ts.map +1 -0
  48. package/esm/funcs/projectsGetProjectDomains.js +89 -0
  49. package/esm/funcs/projectsGetProjectDomains.js.map +1 -0
  50. package/esm/lib/config.d.ts +2 -2
  51. package/esm/lib/config.js +2 -2
  52. package/esm/models/components/authuser.d.ts +6 -3
  53. package/esm/models/components/authuser.d.ts.map +1 -1
  54. package/esm/models/components/authuser.js +2 -1
  55. package/esm/models/components/authuser.js.map +1 -1
  56. package/esm/models/components/security.d.ts +2 -2
  57. package/esm/models/components/security.d.ts.map +1 -1
  58. package/esm/models/components/security.js +2 -2
  59. package/esm/models/components/security.js.map +1 -1
  60. package/esm/models/operations/createevent.d.ts +187 -0
  61. package/esm/models/operations/createevent.d.ts.map +1 -0
  62. package/esm/models/operations/createevent.js +195 -0
  63. package/esm/models/operations/createevent.js.map +1 -0
  64. package/esm/models/operations/createproject.d.ts +4 -0
  65. package/esm/models/operations/createproject.d.ts.map +1 -1
  66. package/esm/models/operations/createproject.js +4 -0
  67. package/esm/models/operations/createproject.js.map +1 -1
  68. package/esm/models/operations/createteam.d.ts +15 -15
  69. package/esm/models/operations/createteam.d.ts.map +1 -1
  70. package/esm/models/operations/createteam.js +15 -15
  71. package/esm/models/operations/createteam.js.map +1 -1
  72. package/esm/models/operations/deletedeployment.d.ts +8 -8
  73. package/esm/models/operations/deletedeployment.d.ts.map +1 -1
  74. package/esm/models/operations/deletedeployment.js +12 -12
  75. package/esm/models/operations/deletedeployment.js.map +1 -1
  76. package/esm/models/operations/exchangessotoken.d.ts +81 -0
  77. package/esm/models/operations/exchangessotoken.d.ts.map +1 -0
  78. package/esm/models/operations/exchangessotoken.js +93 -0
  79. package/esm/models/operations/exchangessotoken.js.map +1 -0
  80. package/esm/models/operations/getaccountinfo.d.ts +85 -0
  81. package/esm/models/operations/getaccountinfo.d.ts.map +1 -0
  82. package/esm/models/operations/getaccountinfo.js +87 -0
  83. package/esm/models/operations/getaccountinfo.js.map +1 -0
  84. package/esm/models/operations/getinvoice.d.ts +232 -0
  85. package/esm/models/operations/getinvoice.d.ts.map +1 -0
  86. package/esm/models/operations/getinvoice.js +219 -0
  87. package/esm/models/operations/getinvoice.js.map +1 -0
  88. package/esm/models/operations/getmember.d.ts +84 -0
  89. package/esm/models/operations/getmember.d.ts.map +1 -0
  90. package/esm/models/operations/getmember.js +79 -0
  91. package/esm/models/operations/getmember.js.map +1 -0
  92. package/esm/models/operations/getprojectdomains.d.ts +367 -0
  93. package/esm/models/operations/getprojectdomains.d.ts.map +1 -0
  94. package/esm/models/operations/getprojectdomains.js +272 -0
  95. package/esm/models/operations/getprojectdomains.js.map +1 -0
  96. package/esm/models/operations/getprojects.d.ts +4 -0
  97. package/esm/models/operations/getprojects.d.ts.map +1 -1
  98. package/esm/models/operations/getprojects.js +4 -0
  99. package/esm/models/operations/getprojects.js.map +1 -1
  100. package/esm/models/operations/putfirewallconfig.d.ts +44 -44
  101. package/esm/models/operations/putfirewallconfig.d.ts.map +1 -1
  102. package/esm/models/operations/putfirewallconfig.js +71 -72
  103. package/esm/models/operations/putfirewallconfig.js.map +1 -1
  104. package/esm/models/operations/submitbillingdata.d.ts +448 -0
  105. package/esm/models/operations/submitbillingdata.d.ts.map +1 -0
  106. package/esm/models/operations/submitbillingdata.js +355 -0
  107. package/esm/models/operations/submitbillingdata.js.map +1 -0
  108. package/esm/models/operations/submitinvoice.d.ts +299 -0
  109. package/esm/models/operations/submitinvoice.d.ts.map +1 -0
  110. package/esm/models/operations/submitinvoice.js +269 -0
  111. package/esm/models/operations/submitinvoice.js.map +1 -0
  112. package/esm/models/operations/updateinvoice.d.ts +91 -0
  113. package/esm/models/operations/updateinvoice.d.ts.map +1 -0
  114. package/esm/models/operations/updateinvoice.js +92 -0
  115. package/esm/models/operations/updateinvoice.js.map +1 -0
  116. package/esm/models/operations/updateproject.d.ts +4 -0
  117. package/esm/models/operations/updateproject.d.ts.map +1 -1
  118. package/esm/models/operations/updateproject.js +4 -0
  119. package/esm/models/operations/updateproject.js.map +1 -1
  120. package/esm/models/operations/updateprojectdatacache.d.ts +4 -0
  121. package/esm/models/operations/updateprojectdatacache.d.ts.map +1 -1
  122. package/esm/models/operations/updateprojectdatacache.js +4 -0
  123. package/esm/models/operations/updateprojectdatacache.js.map +1 -1
  124. package/esm/models/operations/updateresourcesecrets.d.ts +87 -0
  125. package/esm/models/operations/updateresourcesecrets.d.ts.map +1 -0
  126. package/esm/models/operations/updateresourcesecrets.js +100 -0
  127. package/esm/models/operations/updateresourcesecrets.js.map +1 -0
  128. package/esm/sdk/authentication.d.ts +8 -0
  129. package/esm/sdk/authentication.d.ts.map +1 -1
  130. package/esm/sdk/authentication.js +10 -0
  131. package/esm/sdk/authentication.js.map +1 -1
  132. package/esm/sdk/marketplace.d.ts +76 -0
  133. package/esm/sdk/marketplace.d.ts.map +1 -0
  134. package/esm/sdk/marketplace.js +98 -0
  135. package/esm/sdk/marketplace.js.map +1 -0
  136. package/esm/sdk/projects.d.ts +8 -0
  137. package/esm/sdk/projects.d.ts.map +1 -1
  138. package/esm/sdk/projects.js +10 -0
  139. package/esm/sdk/projects.js.map +1 -1
  140. package/esm/sdk/sdk.d.ts +5 -2
  141. package/esm/sdk/sdk.d.ts.map +1 -1
  142. package/esm/sdk/sdk.js +9 -4
  143. package/esm/sdk/sdk.js.map +1 -1
  144. package/package.json +2 -2
  145. package/src/funcs/authenticationExchangeSsoToken.ts +125 -0
  146. package/src/funcs/marketplaceCreateEvent.ts +137 -0
  147. package/src/funcs/marketplaceExchangeSsoToken.ts +125 -0
  148. package/src/funcs/marketplaceGetAccountInfo.ts +137 -0
  149. package/src/funcs/marketplaceGetInvoice.ts +141 -0
  150. package/src/funcs/marketplaceGetMember.ts +141 -0
  151. package/src/funcs/marketplaceSubmitBillingData.ts +137 -0
  152. package/src/funcs/marketplaceSubmitInvoice.ts +138 -0
  153. package/src/funcs/marketplaceUpdateInvoice.ts +141 -0
  154. package/src/funcs/marketplaceUpdateResourceSecrets.ts +146 -0
  155. package/src/funcs/projectsGetProjectDomains.ts +150 -0
  156. package/src/lib/config.ts +2 -2
  157. package/src/models/components/authuser.ts +2 -1
  158. package/src/models/components/security.ts +4 -4
  159. package/src/models/operations/createevent.ts +373 -0
  160. package/src/models/operations/createproject.ts +8 -0
  161. package/src/models/operations/createteam.ts +31 -24
  162. package/src/models/operations/deletedeployment.ts +16 -15
  163. package/src/models/operations/exchangessotoken.ts +192 -0
  164. package/src/models/operations/getaccountinfo.ts +187 -0
  165. package/src/models/operations/getinvoice.ts +454 -0
  166. package/src/models/operations/getmember.ts +160 -0
  167. package/src/models/operations/getprojectdomains.ts +571 -0
  168. package/src/models/operations/getprojects.ts +8 -0
  169. package/src/models/operations/putfirewallconfig.ts +102 -93
  170. package/src/models/operations/submitbillingdata.ts +813 -0
  171. package/src/models/operations/submitinvoice.ts +593 -0
  172. package/src/models/operations/updateinvoice.ts +180 -0
  173. package/src/models/operations/updateproject.ts +8 -0
  174. package/src/models/operations/updateprojectdatacache.ts +8 -0
  175. package/src/models/operations/updateresourcesecrets.ts +206 -0
  176. package/src/sdk/authentication.ts +22 -0
  177. package/src/sdk/marketplace.ts +194 -0
  178. package/src/sdk/projects.ts +22 -0
  179. package/src/sdk/sdk.ts +11 -5
@@ -0,0 +1,180 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export const Action = {
13
+ Refund: "refund",
14
+ } as const;
15
+ export type Action = ClosedEnum<typeof Action>;
16
+
17
+ export type UpdateInvoiceRequestBody = {
18
+ action: Action;
19
+ /**
20
+ * Refund reason.
21
+ */
22
+ reason: string;
23
+ /**
24
+ * The total amount to be refunded. Must be less than or equal to the total amount of the invoice.
25
+ */
26
+ total: string;
27
+ };
28
+
29
+ export type UpdateInvoiceRequest = {
30
+ integrationConfigurationId: string;
31
+ invoiceId: string;
32
+ requestBody?: UpdateInvoiceRequestBody | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const Action$inboundSchema: z.ZodNativeEnum<typeof Action> = z
37
+ .nativeEnum(Action);
38
+
39
+ /** @internal */
40
+ export const Action$outboundSchema: z.ZodNativeEnum<typeof Action> =
41
+ Action$inboundSchema;
42
+
43
+ /**
44
+ * @internal
45
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
+ */
47
+ export namespace Action$ {
48
+ /** @deprecated use `Action$inboundSchema` instead. */
49
+ export const inboundSchema = Action$inboundSchema;
50
+ /** @deprecated use `Action$outboundSchema` instead. */
51
+ export const outboundSchema = Action$outboundSchema;
52
+ }
53
+
54
+ /** @internal */
55
+ export const UpdateInvoiceRequestBody$inboundSchema: z.ZodType<
56
+ UpdateInvoiceRequestBody,
57
+ z.ZodTypeDef,
58
+ unknown
59
+ > = z.object({
60
+ action: Action$inboundSchema,
61
+ reason: z.string(),
62
+ total: z.string(),
63
+ });
64
+
65
+ /** @internal */
66
+ export type UpdateInvoiceRequestBody$Outbound = {
67
+ action: string;
68
+ reason: string;
69
+ total: string;
70
+ };
71
+
72
+ /** @internal */
73
+ export const UpdateInvoiceRequestBody$outboundSchema: z.ZodType<
74
+ UpdateInvoiceRequestBody$Outbound,
75
+ z.ZodTypeDef,
76
+ UpdateInvoiceRequestBody
77
+ > = z.object({
78
+ action: Action$outboundSchema,
79
+ reason: z.string(),
80
+ total: z.string(),
81
+ });
82
+
83
+ /**
84
+ * @internal
85
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
86
+ */
87
+ export namespace UpdateInvoiceRequestBody$ {
88
+ /** @deprecated use `UpdateInvoiceRequestBody$inboundSchema` instead. */
89
+ export const inboundSchema = UpdateInvoiceRequestBody$inboundSchema;
90
+ /** @deprecated use `UpdateInvoiceRequestBody$outboundSchema` instead. */
91
+ export const outboundSchema = UpdateInvoiceRequestBody$outboundSchema;
92
+ /** @deprecated use `UpdateInvoiceRequestBody$Outbound` instead. */
93
+ export type Outbound = UpdateInvoiceRequestBody$Outbound;
94
+ }
95
+
96
+ export function updateInvoiceRequestBodyToJSON(
97
+ updateInvoiceRequestBody: UpdateInvoiceRequestBody,
98
+ ): string {
99
+ return JSON.stringify(
100
+ UpdateInvoiceRequestBody$outboundSchema.parse(updateInvoiceRequestBody),
101
+ );
102
+ }
103
+
104
+ export function updateInvoiceRequestBodyFromJSON(
105
+ jsonString: string,
106
+ ): SafeParseResult<UpdateInvoiceRequestBody, SDKValidationError> {
107
+ return safeParse(
108
+ jsonString,
109
+ (x) => UpdateInvoiceRequestBody$inboundSchema.parse(JSON.parse(x)),
110
+ `Failed to parse 'UpdateInvoiceRequestBody' from JSON`,
111
+ );
112
+ }
113
+
114
+ /** @internal */
115
+ export const UpdateInvoiceRequest$inboundSchema: z.ZodType<
116
+ UpdateInvoiceRequest,
117
+ z.ZodTypeDef,
118
+ unknown
119
+ > = z.object({
120
+ integrationConfigurationId: z.string(),
121
+ invoiceId: z.string(),
122
+ RequestBody: z.lazy(() => UpdateInvoiceRequestBody$inboundSchema).optional(),
123
+ }).transform((v) => {
124
+ return remap$(v, {
125
+ "RequestBody": "requestBody",
126
+ });
127
+ });
128
+
129
+ /** @internal */
130
+ export type UpdateInvoiceRequest$Outbound = {
131
+ integrationConfigurationId: string;
132
+ invoiceId: string;
133
+ RequestBody?: UpdateInvoiceRequestBody$Outbound | undefined;
134
+ };
135
+
136
+ /** @internal */
137
+ export const UpdateInvoiceRequest$outboundSchema: z.ZodType<
138
+ UpdateInvoiceRequest$Outbound,
139
+ z.ZodTypeDef,
140
+ UpdateInvoiceRequest
141
+ > = z.object({
142
+ integrationConfigurationId: z.string(),
143
+ invoiceId: z.string(),
144
+ requestBody: z.lazy(() => UpdateInvoiceRequestBody$outboundSchema).optional(),
145
+ }).transform((v) => {
146
+ return remap$(v, {
147
+ requestBody: "RequestBody",
148
+ });
149
+ });
150
+
151
+ /**
152
+ * @internal
153
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
154
+ */
155
+ export namespace UpdateInvoiceRequest$ {
156
+ /** @deprecated use `UpdateInvoiceRequest$inboundSchema` instead. */
157
+ export const inboundSchema = UpdateInvoiceRequest$inboundSchema;
158
+ /** @deprecated use `UpdateInvoiceRequest$outboundSchema` instead. */
159
+ export const outboundSchema = UpdateInvoiceRequest$outboundSchema;
160
+ /** @deprecated use `UpdateInvoiceRequest$Outbound` instead. */
161
+ export type Outbound = UpdateInvoiceRequest$Outbound;
162
+ }
163
+
164
+ export function updateInvoiceRequestToJSON(
165
+ updateInvoiceRequest: UpdateInvoiceRequest,
166
+ ): string {
167
+ return JSON.stringify(
168
+ UpdateInvoiceRequest$outboundSchema.parse(updateInvoiceRequest),
169
+ );
170
+ }
171
+
172
+ export function updateInvoiceRequestFromJSON(
173
+ jsonString: string,
174
+ ): SafeParseResult<UpdateInvoiceRequest, SDKValidationError> {
175
+ return safeParse(
176
+ jsonString,
177
+ (x) => UpdateInvoiceRequest$inboundSchema.parse(JSON.parse(x)),
178
+ `Failed to parse 'UpdateInvoiceRequest' from JSON`,
179
+ );
180
+ }
@@ -1338,6 +1338,7 @@ export type UpdateProjectPermissions = {
1338
1338
  notificationCustomerBudget?: Array<ACLAction> | undefined;
1339
1339
  notificationStatementOfReasons?: Array<ACLAction> | undefined;
1340
1340
  oauth2Connection?: Array<ACLAction> | undefined;
1341
+ observabilityConfiguration?: Array<ACLAction> | undefined;
1341
1342
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1342
1343
  paymentMethod?: Array<ACLAction> | undefined;
1343
1344
  permissions?: Array<ACLAction> | undefined;
@@ -1412,6 +1413,7 @@ export type UpdateProjectPermissions = {
1412
1413
  passwordProtection?: Array<ACLAction> | undefined;
1413
1414
  optionsAllowlist?: Array<ACLAction> | undefined;
1414
1415
  job?: Array<ACLAction> | undefined;
1416
+ observabilityData?: Array<ACLAction> | undefined;
1415
1417
  project?: Array<ACLAction> | undefined;
1416
1418
  projectFromV0?: Array<ACLAction> | undefined;
1417
1419
  projectAccessGroup?: Array<ACLAction> | undefined;
@@ -7369,6 +7371,7 @@ export const UpdateProjectPermissions$inboundSchema: z.ZodType<
7369
7371
  notificationCustomerBudget: z.array(ACLAction$inboundSchema).optional(),
7370
7372
  notificationStatementOfReasons: z.array(ACLAction$inboundSchema).optional(),
7371
7373
  oauth2Connection: z.array(ACLAction$inboundSchema).optional(),
7374
+ observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
7372
7375
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
7373
7376
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
7374
7377
  permissions: z.array(ACLAction$inboundSchema).optional(),
@@ -7444,6 +7447,7 @@ export const UpdateProjectPermissions$inboundSchema: z.ZodType<
7444
7447
  passwordProtection: z.array(ACLAction$inboundSchema).optional(),
7445
7448
  optionsAllowlist: z.array(ACLAction$inboundSchema).optional(),
7446
7449
  job: z.array(ACLAction$inboundSchema).optional(),
7450
+ observabilityData: z.array(ACLAction$inboundSchema).optional(),
7447
7451
  project: z.array(ACLAction$inboundSchema).optional(),
7448
7452
  projectFromV0: z.array(ACLAction$inboundSchema).optional(),
7449
7453
  projectAccessGroup: z.array(ACLAction$inboundSchema).optional(),
@@ -7561,6 +7565,7 @@ export type UpdateProjectPermissions$Outbound = {
7561
7565
  notificationCustomerBudget?: Array<string> | undefined;
7562
7566
  notificationStatementOfReasons?: Array<string> | undefined;
7563
7567
  oauth2Connection?: Array<string> | undefined;
7568
+ observabilityConfiguration?: Array<string> | undefined;
7564
7569
  openTelemetryEndpoint?: Array<string> | undefined;
7565
7570
  paymentMethod?: Array<string> | undefined;
7566
7571
  permissions?: Array<string> | undefined;
@@ -7635,6 +7640,7 @@ export type UpdateProjectPermissions$Outbound = {
7635
7640
  passwordProtection?: Array<string> | undefined;
7636
7641
  optionsAllowlist?: Array<string> | undefined;
7637
7642
  job?: Array<string> | undefined;
7643
+ observabilityData?: Array<string> | undefined;
7638
7644
  project?: Array<string> | undefined;
7639
7645
  projectFromV0?: Array<string> | undefined;
7640
7646
  projectAccessGroup?: Array<string> | undefined;
@@ -7753,6 +7759,7 @@ export const UpdateProjectPermissions$outboundSchema: z.ZodType<
7753
7759
  notificationCustomerBudget: z.array(ACLAction$outboundSchema).optional(),
7754
7760
  notificationStatementOfReasons: z.array(ACLAction$outboundSchema).optional(),
7755
7761
  oauth2Connection: z.array(ACLAction$outboundSchema).optional(),
7762
+ observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
7756
7763
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
7757
7764
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
7758
7765
  permissions: z.array(ACLAction$outboundSchema).optional(),
@@ -7828,6 +7835,7 @@ export const UpdateProjectPermissions$outboundSchema: z.ZodType<
7828
7835
  passwordProtection: z.array(ACLAction$outboundSchema).optional(),
7829
7836
  optionsAllowlist: z.array(ACLAction$outboundSchema).optional(),
7830
7837
  job: z.array(ACLAction$outboundSchema).optional(),
7838
+ observabilityData: z.array(ACLAction$outboundSchema).optional(),
7831
7839
  project: z.array(ACLAction$outboundSchema).optional(),
7832
7840
  projectFromV0: z.array(ACLAction$outboundSchema).optional(),
7833
7841
  projectAccessGroup: z.array(ACLAction$outboundSchema).optional(),
@@ -1028,6 +1028,7 @@ export type Permissions = {
1028
1028
  notificationCustomerBudget?: Array<ACLAction> | undefined;
1029
1029
  notificationStatementOfReasons?: Array<ACLAction> | undefined;
1030
1030
  oauth2Connection?: Array<ACLAction> | undefined;
1031
+ observabilityConfiguration?: Array<ACLAction> | undefined;
1031
1032
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1032
1033
  paymentMethod?: Array<ACLAction> | undefined;
1033
1034
  permissions?: Array<ACLAction> | undefined;
@@ -1102,6 +1103,7 @@ export type Permissions = {
1102
1103
  passwordProtection?: Array<ACLAction> | undefined;
1103
1104
  optionsAllowlist?: Array<ACLAction> | undefined;
1104
1105
  job?: Array<ACLAction> | undefined;
1106
+ observabilityData?: Array<ACLAction> | undefined;
1105
1107
  project?: Array<ACLAction> | undefined;
1106
1108
  projectFromV0?: Array<ACLAction> | undefined;
1107
1109
  projectAccessGroup?: Array<ACLAction> | undefined;
@@ -6361,6 +6363,7 @@ export const Permissions$inboundSchema: z.ZodType<
6361
6363
  notificationCustomerBudget: z.array(ACLAction$inboundSchema).optional(),
6362
6364
  notificationStatementOfReasons: z.array(ACLAction$inboundSchema).optional(),
6363
6365
  oauth2Connection: z.array(ACLAction$inboundSchema).optional(),
6366
+ observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
6364
6367
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
6365
6368
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
6366
6369
  permissions: z.array(ACLAction$inboundSchema).optional(),
@@ -6436,6 +6439,7 @@ export const Permissions$inboundSchema: z.ZodType<
6436
6439
  passwordProtection: z.array(ACLAction$inboundSchema).optional(),
6437
6440
  optionsAllowlist: z.array(ACLAction$inboundSchema).optional(),
6438
6441
  job: z.array(ACLAction$inboundSchema).optional(),
6442
+ observabilityData: z.array(ACLAction$inboundSchema).optional(),
6439
6443
  project: z.array(ACLAction$inboundSchema).optional(),
6440
6444
  projectFromV0: z.array(ACLAction$inboundSchema).optional(),
6441
6445
  projectAccessGroup: z.array(ACLAction$inboundSchema).optional(),
@@ -6553,6 +6557,7 @@ export type Permissions$Outbound = {
6553
6557
  notificationCustomerBudget?: Array<string> | undefined;
6554
6558
  notificationStatementOfReasons?: Array<string> | undefined;
6555
6559
  oauth2Connection?: Array<string> | undefined;
6560
+ observabilityConfiguration?: Array<string> | undefined;
6556
6561
  openTelemetryEndpoint?: Array<string> | undefined;
6557
6562
  paymentMethod?: Array<string> | undefined;
6558
6563
  permissions?: Array<string> | undefined;
@@ -6627,6 +6632,7 @@ export type Permissions$Outbound = {
6627
6632
  passwordProtection?: Array<string> | undefined;
6628
6633
  optionsAllowlist?: Array<string> | undefined;
6629
6634
  job?: Array<string> | undefined;
6635
+ observabilityData?: Array<string> | undefined;
6630
6636
  project?: Array<string> | undefined;
6631
6637
  projectFromV0?: Array<string> | undefined;
6632
6638
  projectAccessGroup?: Array<string> | undefined;
@@ -6745,6 +6751,7 @@ export const Permissions$outboundSchema: z.ZodType<
6745
6751
  notificationCustomerBudget: z.array(ACLAction$outboundSchema).optional(),
6746
6752
  notificationStatementOfReasons: z.array(ACLAction$outboundSchema).optional(),
6747
6753
  oauth2Connection: z.array(ACLAction$outboundSchema).optional(),
6754
+ observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
6748
6755
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
6749
6756
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
6750
6757
  permissions: z.array(ACLAction$outboundSchema).optional(),
@@ -6820,6 +6827,7 @@ export const Permissions$outboundSchema: z.ZodType<
6820
6827
  passwordProtection: z.array(ACLAction$outboundSchema).optional(),
6821
6828
  optionsAllowlist: z.array(ACLAction$outboundSchema).optional(),
6822
6829
  job: z.array(ACLAction$outboundSchema).optional(),
6830
+ observabilityData: z.array(ACLAction$outboundSchema).optional(),
6823
6831
  project: z.array(ACLAction$outboundSchema).optional(),
6824
6832
  projectFromV0: z.array(ACLAction$outboundSchema).optional(),
6825
6833
  projectAccessGroup: z.array(ACLAction$outboundSchema).optional(),
@@ -0,0 +1,206 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type Secrets = {
12
+ name: string;
13
+ value: string;
14
+ };
15
+
16
+ export type UpdateResourceSecretsRequestBody = {
17
+ secrets: Array<Secrets>;
18
+ };
19
+
20
+ export type UpdateResourceSecretsRequest = {
21
+ integrationConfigurationId: string;
22
+ integrationProductIdOrSlug: string;
23
+ resourceId: string;
24
+ requestBody?: UpdateResourceSecretsRequestBody | undefined;
25
+ };
26
+
27
+ /** @internal */
28
+ export const Secrets$inboundSchema: z.ZodType<Secrets, z.ZodTypeDef, unknown> =
29
+ z.object({
30
+ name: z.string(),
31
+ value: z.string(),
32
+ });
33
+
34
+ /** @internal */
35
+ export type Secrets$Outbound = {
36
+ name: string;
37
+ value: string;
38
+ };
39
+
40
+ /** @internal */
41
+ export const Secrets$outboundSchema: z.ZodType<
42
+ Secrets$Outbound,
43
+ z.ZodTypeDef,
44
+ Secrets
45
+ > = z.object({
46
+ name: z.string(),
47
+ value: z.string(),
48
+ });
49
+
50
+ /**
51
+ * @internal
52
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
+ */
54
+ export namespace Secrets$ {
55
+ /** @deprecated use `Secrets$inboundSchema` instead. */
56
+ export const inboundSchema = Secrets$inboundSchema;
57
+ /** @deprecated use `Secrets$outboundSchema` instead. */
58
+ export const outboundSchema = Secrets$outboundSchema;
59
+ /** @deprecated use `Secrets$Outbound` instead. */
60
+ export type Outbound = Secrets$Outbound;
61
+ }
62
+
63
+ export function secretsToJSON(secrets: Secrets): string {
64
+ return JSON.stringify(Secrets$outboundSchema.parse(secrets));
65
+ }
66
+
67
+ export function secretsFromJSON(
68
+ jsonString: string,
69
+ ): SafeParseResult<Secrets, SDKValidationError> {
70
+ return safeParse(
71
+ jsonString,
72
+ (x) => Secrets$inboundSchema.parse(JSON.parse(x)),
73
+ `Failed to parse 'Secrets' from JSON`,
74
+ );
75
+ }
76
+
77
+ /** @internal */
78
+ export const UpdateResourceSecretsRequestBody$inboundSchema: z.ZodType<
79
+ UpdateResourceSecretsRequestBody,
80
+ z.ZodTypeDef,
81
+ unknown
82
+ > = z.object({
83
+ secrets: z.array(z.lazy(() => Secrets$inboundSchema)),
84
+ });
85
+
86
+ /** @internal */
87
+ export type UpdateResourceSecretsRequestBody$Outbound = {
88
+ secrets: Array<Secrets$Outbound>;
89
+ };
90
+
91
+ /** @internal */
92
+ export const UpdateResourceSecretsRequestBody$outboundSchema: z.ZodType<
93
+ UpdateResourceSecretsRequestBody$Outbound,
94
+ z.ZodTypeDef,
95
+ UpdateResourceSecretsRequestBody
96
+ > = z.object({
97
+ secrets: z.array(z.lazy(() => Secrets$outboundSchema)),
98
+ });
99
+
100
+ /**
101
+ * @internal
102
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
103
+ */
104
+ export namespace UpdateResourceSecretsRequestBody$ {
105
+ /** @deprecated use `UpdateResourceSecretsRequestBody$inboundSchema` instead. */
106
+ export const inboundSchema = UpdateResourceSecretsRequestBody$inboundSchema;
107
+ /** @deprecated use `UpdateResourceSecretsRequestBody$outboundSchema` instead. */
108
+ export const outboundSchema = UpdateResourceSecretsRequestBody$outboundSchema;
109
+ /** @deprecated use `UpdateResourceSecretsRequestBody$Outbound` instead. */
110
+ export type Outbound = UpdateResourceSecretsRequestBody$Outbound;
111
+ }
112
+
113
+ export function updateResourceSecretsRequestBodyToJSON(
114
+ updateResourceSecretsRequestBody: UpdateResourceSecretsRequestBody,
115
+ ): string {
116
+ return JSON.stringify(
117
+ UpdateResourceSecretsRequestBody$outboundSchema.parse(
118
+ updateResourceSecretsRequestBody,
119
+ ),
120
+ );
121
+ }
122
+
123
+ export function updateResourceSecretsRequestBodyFromJSON(
124
+ jsonString: string,
125
+ ): SafeParseResult<UpdateResourceSecretsRequestBody, SDKValidationError> {
126
+ return safeParse(
127
+ jsonString,
128
+ (x) => UpdateResourceSecretsRequestBody$inboundSchema.parse(JSON.parse(x)),
129
+ `Failed to parse 'UpdateResourceSecretsRequestBody' from JSON`,
130
+ );
131
+ }
132
+
133
+ /** @internal */
134
+ export const UpdateResourceSecretsRequest$inboundSchema: z.ZodType<
135
+ UpdateResourceSecretsRequest,
136
+ z.ZodTypeDef,
137
+ unknown
138
+ > = z.object({
139
+ integrationConfigurationId: z.string(),
140
+ integrationProductIdOrSlug: z.string(),
141
+ resourceId: z.string(),
142
+ RequestBody: z.lazy(() => UpdateResourceSecretsRequestBody$inboundSchema)
143
+ .optional(),
144
+ }).transform((v) => {
145
+ return remap$(v, {
146
+ "RequestBody": "requestBody",
147
+ });
148
+ });
149
+
150
+ /** @internal */
151
+ export type UpdateResourceSecretsRequest$Outbound = {
152
+ integrationConfigurationId: string;
153
+ integrationProductIdOrSlug: string;
154
+ resourceId: string;
155
+ RequestBody?: UpdateResourceSecretsRequestBody$Outbound | undefined;
156
+ };
157
+
158
+ /** @internal */
159
+ export const UpdateResourceSecretsRequest$outboundSchema: z.ZodType<
160
+ UpdateResourceSecretsRequest$Outbound,
161
+ z.ZodTypeDef,
162
+ UpdateResourceSecretsRequest
163
+ > = z.object({
164
+ integrationConfigurationId: z.string(),
165
+ integrationProductIdOrSlug: z.string(),
166
+ resourceId: z.string(),
167
+ requestBody: z.lazy(() => UpdateResourceSecretsRequestBody$outboundSchema)
168
+ .optional(),
169
+ }).transform((v) => {
170
+ return remap$(v, {
171
+ requestBody: "RequestBody",
172
+ });
173
+ });
174
+
175
+ /**
176
+ * @internal
177
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
178
+ */
179
+ export namespace UpdateResourceSecretsRequest$ {
180
+ /** @deprecated use `UpdateResourceSecretsRequest$inboundSchema` instead. */
181
+ export const inboundSchema = UpdateResourceSecretsRequest$inboundSchema;
182
+ /** @deprecated use `UpdateResourceSecretsRequest$outboundSchema` instead. */
183
+ export const outboundSchema = UpdateResourceSecretsRequest$outboundSchema;
184
+ /** @deprecated use `UpdateResourceSecretsRequest$Outbound` instead. */
185
+ export type Outbound = UpdateResourceSecretsRequest$Outbound;
186
+ }
187
+
188
+ export function updateResourceSecretsRequestToJSON(
189
+ updateResourceSecretsRequest: UpdateResourceSecretsRequest,
190
+ ): string {
191
+ return JSON.stringify(
192
+ UpdateResourceSecretsRequest$outboundSchema.parse(
193
+ updateResourceSecretsRequest,
194
+ ),
195
+ );
196
+ }
197
+
198
+ export function updateResourceSecretsRequestFromJSON(
199
+ jsonString: string,
200
+ ): SafeParseResult<UpdateResourceSecretsRequest, SDKValidationError> {
201
+ return safeParse(
202
+ jsonString,
203
+ (x) => UpdateResourceSecretsRequest$inboundSchema.parse(JSON.parse(x)),
204
+ `Failed to parse 'UpdateResourceSecretsRequest' from JSON`,
205
+ );
206
+ }
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { authenticationCreateAuthToken } from "../funcs/authenticationCreateAuthToken.js";
6
6
  import { authenticationDeleteAuthToken } from "../funcs/authenticationDeleteAuthToken.js";
7
+ import { authenticationExchangeSsoToken } from "../funcs/authenticationExchangeSsoToken.js";
7
8
  import { authenticationGetAuthToken } from "../funcs/authenticationGetAuthToken.js";
8
9
  import { authenticationListAuthTokens } from "../funcs/authenticationListAuthTokens.js";
9
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -15,6 +16,10 @@ import {
15
16
  DeleteAuthTokenRequest,
16
17
  DeleteAuthTokenResponseBody,
17
18
  } from "../models/operations/deleteauthtoken.js";
19
+ import {
20
+ ExchangeSsoTokenRequestBody,
21
+ ExchangeSsoTokenResponseBody,
22
+ } from "../models/operations/exchangessotoken.js";
18
23
  import {
19
24
  GetAuthTokenRequest,
20
25
  GetAuthTokenResponseBody,
@@ -23,6 +28,23 @@ import { ListAuthTokensResponseBody } from "../models/operations/listauthtokens.
23
28
  import { unwrapAsync } from "../types/fp.js";
24
29
 
25
30
  export class Authentication extends ClientSDK {
31
+ /**
32
+ * SSO Token Exchange
33
+ *
34
+ * @remarks
35
+ * During the autorization process, Vercel sends the user to the provider [redirectLoginUrl](https://vercel.com/docs/integrations/create-integration/submit-integration#redirect-login-url), that includes the OAuth authorization `code` parameter. The provider then calls the SSO Token Exchange endpoint with the sent code and receives the OIDC token. They log the user in based on this token and redirects the user back to the Vercel account using deep-link parameters included the redirectLoginUrl. This is used to verify the identity of the user during the [**Open in Provider** flow](https://vercel.com/docs/integrations/marketplace-flows#open-in-provider-button-flow). Providers should not persist the returned `id_token` in a database since the token will expire.
36
+ */
37
+ async exchangeSsoToken(
38
+ request?: ExchangeSsoTokenRequestBody | undefined,
39
+ options?: RequestOptions,
40
+ ): Promise<ExchangeSsoTokenResponseBody> {
41
+ return unwrapAsync(authenticationExchangeSsoToken(
42
+ this,
43
+ request,
44
+ options,
45
+ ));
46
+ }
47
+
26
48
  /**
27
49
  * List Auth Tokens
28
50
  *