@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.
- package/.devcontainer/README.md +1 -1
- package/README.md +25 -0
- package/docs/sdks/authentication/README.md +69 -0
- package/docs/sdks/marketplace/README.md +694 -0
- package/docs/sdks/projects/README.md +85 -0
- package/esm/funcs/authenticationExchangeSsoToken.d.ts +15 -0
- package/esm/funcs/authenticationExchangeSsoToken.d.ts.map +1 -0
- package/esm/funcs/authenticationExchangeSsoToken.js +66 -0
- package/esm/funcs/authenticationExchangeSsoToken.js.map +1 -0
- package/esm/funcs/marketplaceCreateEvent.d.ts +15 -0
- package/esm/funcs/marketplaceCreateEvent.d.ts.map +1 -0
- package/esm/funcs/marketplaceCreateEvent.js +73 -0
- package/esm/funcs/marketplaceCreateEvent.js.map +1 -0
- package/esm/funcs/marketplaceExchangeSsoToken.d.ts +15 -0
- package/esm/funcs/marketplaceExchangeSsoToken.d.ts.map +1 -0
- package/esm/funcs/marketplaceExchangeSsoToken.js +66 -0
- package/esm/funcs/marketplaceExchangeSsoToken.js.map +1 -0
- package/esm/funcs/marketplaceGetAccountInfo.d.ts +15 -0
- package/esm/funcs/marketplaceGetAccountInfo.d.ts.map +1 -0
- package/esm/funcs/marketplaceGetAccountInfo.js +71 -0
- package/esm/funcs/marketplaceGetAccountInfo.js.map +1 -0
- package/esm/funcs/marketplaceGetInvoice.d.ts +15 -0
- package/esm/funcs/marketplaceGetInvoice.d.ts.map +1 -0
- package/esm/funcs/marketplaceGetInvoice.js +75 -0
- package/esm/funcs/marketplaceGetInvoice.js.map +1 -0
- package/esm/funcs/marketplaceGetMember.d.ts +15 -0
- package/esm/funcs/marketplaceGetMember.d.ts.map +1 -0
- package/esm/funcs/marketplaceGetMember.js +75 -0
- package/esm/funcs/marketplaceGetMember.js.map +1 -0
- package/esm/funcs/marketplaceSubmitBillingData.d.ts +15 -0
- package/esm/funcs/marketplaceSubmitBillingData.d.ts.map +1 -0
- package/esm/funcs/marketplaceSubmitBillingData.js +73 -0
- package/esm/funcs/marketplaceSubmitBillingData.js.map +1 -0
- package/esm/funcs/marketplaceSubmitInvoice.d.ts +15 -0
- package/esm/funcs/marketplaceSubmitInvoice.d.ts.map +1 -0
- package/esm/funcs/marketplaceSubmitInvoice.js +72 -0
- package/esm/funcs/marketplaceSubmitInvoice.js.map +1 -0
- package/esm/funcs/marketplaceUpdateInvoice.d.ts +15 -0
- package/esm/funcs/marketplaceUpdateInvoice.d.ts.map +1 -0
- package/esm/funcs/marketplaceUpdateInvoice.js +77 -0
- package/esm/funcs/marketplaceUpdateInvoice.js.map +1 -0
- package/esm/funcs/marketplaceUpdateResourceSecrets.d.ts +15 -0
- package/esm/funcs/marketplaceUpdateResourceSecrets.d.ts.map +1 -0
- package/esm/funcs/marketplaceUpdateResourceSecrets.js +78 -0
- package/esm/funcs/marketplaceUpdateResourceSecrets.js.map +1 -0
- package/esm/funcs/projectsGetProjectDomains.d.ts +15 -0
- package/esm/funcs/projectsGetProjectDomains.d.ts.map +1 -0
- package/esm/funcs/projectsGetProjectDomains.js +89 -0
- package/esm/funcs/projectsGetProjectDomains.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/authuser.d.ts +6 -3
- package/esm/models/components/authuser.d.ts.map +1 -1
- package/esm/models/components/authuser.js +2 -1
- package/esm/models/components/authuser.js.map +1 -1
- package/esm/models/components/security.d.ts +2 -2
- package/esm/models/components/security.d.ts.map +1 -1
- package/esm/models/components/security.js +2 -2
- package/esm/models/components/security.js.map +1 -1
- package/esm/models/operations/createevent.d.ts +187 -0
- package/esm/models/operations/createevent.d.ts.map +1 -0
- package/esm/models/operations/createevent.js +195 -0
- package/esm/models/operations/createevent.js.map +1 -0
- package/esm/models/operations/createproject.d.ts +4 -0
- package/esm/models/operations/createproject.d.ts.map +1 -1
- package/esm/models/operations/createproject.js +4 -0
- package/esm/models/operations/createproject.js.map +1 -1
- package/esm/models/operations/createteam.d.ts +15 -15
- package/esm/models/operations/createteam.d.ts.map +1 -1
- package/esm/models/operations/createteam.js +15 -15
- package/esm/models/operations/createteam.js.map +1 -1
- package/esm/models/operations/deletedeployment.d.ts +8 -8
- package/esm/models/operations/deletedeployment.d.ts.map +1 -1
- package/esm/models/operations/deletedeployment.js +12 -12
- package/esm/models/operations/deletedeployment.js.map +1 -1
- package/esm/models/operations/exchangessotoken.d.ts +81 -0
- package/esm/models/operations/exchangessotoken.d.ts.map +1 -0
- package/esm/models/operations/exchangessotoken.js +93 -0
- package/esm/models/operations/exchangessotoken.js.map +1 -0
- package/esm/models/operations/getaccountinfo.d.ts +85 -0
- package/esm/models/operations/getaccountinfo.d.ts.map +1 -0
- package/esm/models/operations/getaccountinfo.js +87 -0
- package/esm/models/operations/getaccountinfo.js.map +1 -0
- package/esm/models/operations/getinvoice.d.ts +232 -0
- package/esm/models/operations/getinvoice.d.ts.map +1 -0
- package/esm/models/operations/getinvoice.js +219 -0
- package/esm/models/operations/getinvoice.js.map +1 -0
- package/esm/models/operations/getmember.d.ts +84 -0
- package/esm/models/operations/getmember.d.ts.map +1 -0
- package/esm/models/operations/getmember.js +79 -0
- package/esm/models/operations/getmember.js.map +1 -0
- package/esm/models/operations/getprojectdomains.d.ts +367 -0
- package/esm/models/operations/getprojectdomains.d.ts.map +1 -0
- package/esm/models/operations/getprojectdomains.js +272 -0
- package/esm/models/operations/getprojectdomains.js.map +1 -0
- package/esm/models/operations/getprojects.d.ts +4 -0
- package/esm/models/operations/getprojects.d.ts.map +1 -1
- package/esm/models/operations/getprojects.js +4 -0
- package/esm/models/operations/getprojects.js.map +1 -1
- package/esm/models/operations/putfirewallconfig.d.ts +44 -44
- package/esm/models/operations/putfirewallconfig.d.ts.map +1 -1
- package/esm/models/operations/putfirewallconfig.js +71 -72
- package/esm/models/operations/putfirewallconfig.js.map +1 -1
- package/esm/models/operations/submitbillingdata.d.ts +448 -0
- package/esm/models/operations/submitbillingdata.d.ts.map +1 -0
- package/esm/models/operations/submitbillingdata.js +355 -0
- package/esm/models/operations/submitbillingdata.js.map +1 -0
- package/esm/models/operations/submitinvoice.d.ts +299 -0
- package/esm/models/operations/submitinvoice.d.ts.map +1 -0
- package/esm/models/operations/submitinvoice.js +269 -0
- package/esm/models/operations/submitinvoice.js.map +1 -0
- package/esm/models/operations/updateinvoice.d.ts +91 -0
- package/esm/models/operations/updateinvoice.d.ts.map +1 -0
- package/esm/models/operations/updateinvoice.js +92 -0
- package/esm/models/operations/updateinvoice.js.map +1 -0
- package/esm/models/operations/updateproject.d.ts +4 -0
- package/esm/models/operations/updateproject.d.ts.map +1 -1
- package/esm/models/operations/updateproject.js +4 -0
- package/esm/models/operations/updateproject.js.map +1 -1
- package/esm/models/operations/updateprojectdatacache.d.ts +4 -0
- package/esm/models/operations/updateprojectdatacache.d.ts.map +1 -1
- package/esm/models/operations/updateprojectdatacache.js +4 -0
- package/esm/models/operations/updateprojectdatacache.js.map +1 -1
- package/esm/models/operations/updateresourcesecrets.d.ts +87 -0
- package/esm/models/operations/updateresourcesecrets.d.ts.map +1 -0
- package/esm/models/operations/updateresourcesecrets.js +100 -0
- package/esm/models/operations/updateresourcesecrets.js.map +1 -0
- package/esm/sdk/authentication.d.ts +8 -0
- package/esm/sdk/authentication.d.ts.map +1 -1
- package/esm/sdk/authentication.js +10 -0
- package/esm/sdk/authentication.js.map +1 -1
- package/esm/sdk/marketplace.d.ts +76 -0
- package/esm/sdk/marketplace.d.ts.map +1 -0
- package/esm/sdk/marketplace.js +98 -0
- package/esm/sdk/marketplace.js.map +1 -0
- package/esm/sdk/projects.d.ts +8 -0
- package/esm/sdk/projects.d.ts.map +1 -1
- package/esm/sdk/projects.js +10 -0
- package/esm/sdk/projects.js.map +1 -1
- package/esm/sdk/sdk.d.ts +5 -2
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +9 -4
- package/esm/sdk/sdk.js.map +1 -1
- package/package.json +2 -2
- package/src/funcs/authenticationExchangeSsoToken.ts +125 -0
- package/src/funcs/marketplaceCreateEvent.ts +137 -0
- package/src/funcs/marketplaceExchangeSsoToken.ts +125 -0
- package/src/funcs/marketplaceGetAccountInfo.ts +137 -0
- package/src/funcs/marketplaceGetInvoice.ts +141 -0
- package/src/funcs/marketplaceGetMember.ts +141 -0
- package/src/funcs/marketplaceSubmitBillingData.ts +137 -0
- package/src/funcs/marketplaceSubmitInvoice.ts +138 -0
- package/src/funcs/marketplaceUpdateInvoice.ts +141 -0
- package/src/funcs/marketplaceUpdateResourceSecrets.ts +146 -0
- package/src/funcs/projectsGetProjectDomains.ts +150 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/authuser.ts +2 -1
- package/src/models/components/security.ts +4 -4
- package/src/models/operations/createevent.ts +373 -0
- package/src/models/operations/createproject.ts +8 -0
- package/src/models/operations/createteam.ts +31 -24
- package/src/models/operations/deletedeployment.ts +16 -15
- package/src/models/operations/exchangessotoken.ts +192 -0
- package/src/models/operations/getaccountinfo.ts +187 -0
- package/src/models/operations/getinvoice.ts +454 -0
- package/src/models/operations/getmember.ts +160 -0
- package/src/models/operations/getprojectdomains.ts +571 -0
- package/src/models/operations/getprojects.ts +8 -0
- package/src/models/operations/putfirewallconfig.ts +102 -93
- package/src/models/operations/submitbillingdata.ts +813 -0
- package/src/models/operations/submitinvoice.ts +593 -0
- package/src/models/operations/updateinvoice.ts +180 -0
- package/src/models/operations/updateproject.ts +8 -0
- package/src/models/operations/updateprojectdatacache.ts +8 -0
- package/src/models/operations/updateresourcesecrets.ts +206 -0
- package/src/sdk/authentication.ts +22 -0
- package/src/sdk/marketplace.ts +194 -0
- package/src/sdk/projects.ts +22 -0
- package/src/sdk/sdk.ts +11 -5
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { marketplaceCreateEvent } from "../funcs/marketplaceCreateEvent.js";
|
|
6
|
+
import { marketplaceExchangeSsoToken } from "../funcs/marketplaceExchangeSsoToken.js";
|
|
7
|
+
import { marketplaceGetAccountInfo } from "../funcs/marketplaceGetAccountInfo.js";
|
|
8
|
+
import { marketplaceGetInvoice } from "../funcs/marketplaceGetInvoice.js";
|
|
9
|
+
import { marketplaceGetMember } from "../funcs/marketplaceGetMember.js";
|
|
10
|
+
import { marketplaceSubmitBillingData } from "../funcs/marketplaceSubmitBillingData.js";
|
|
11
|
+
import { marketplaceSubmitInvoice } from "../funcs/marketplaceSubmitInvoice.js";
|
|
12
|
+
import { marketplaceUpdateInvoice } from "../funcs/marketplaceUpdateInvoice.js";
|
|
13
|
+
import { marketplaceUpdateResourceSecrets } from "../funcs/marketplaceUpdateResourceSecrets.js";
|
|
14
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
15
|
+
import { CreateEventRequest } from "../models/operations/createevent.js";
|
|
16
|
+
import {
|
|
17
|
+
ExchangeSsoTokenRequestBody,
|
|
18
|
+
ExchangeSsoTokenResponseBody,
|
|
19
|
+
} from "../models/operations/exchangessotoken.js";
|
|
20
|
+
import {
|
|
21
|
+
GetAccountInfoRequest,
|
|
22
|
+
GetAccountInfoResponseBody,
|
|
23
|
+
} from "../models/operations/getaccountinfo.js";
|
|
24
|
+
import {
|
|
25
|
+
GetInvoiceRequest,
|
|
26
|
+
GetInvoiceResponseBody,
|
|
27
|
+
} from "../models/operations/getinvoice.js";
|
|
28
|
+
import {
|
|
29
|
+
GetMemberRequest,
|
|
30
|
+
GetMemberResponseBody,
|
|
31
|
+
} from "../models/operations/getmember.js";
|
|
32
|
+
import { SubmitBillingDataRequest } from "../models/operations/submitbillingdata.js";
|
|
33
|
+
import {
|
|
34
|
+
SubmitInvoiceRequest,
|
|
35
|
+
SubmitInvoiceResponseBody,
|
|
36
|
+
} from "../models/operations/submitinvoice.js";
|
|
37
|
+
import { UpdateInvoiceRequest } from "../models/operations/updateinvoice.js";
|
|
38
|
+
import { UpdateResourceSecretsRequest } from "../models/operations/updateresourcesecrets.js";
|
|
39
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
40
|
+
|
|
41
|
+
export class Marketplace extends ClientSDK {
|
|
42
|
+
/**
|
|
43
|
+
* Get Account Information
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Fetches the best account or user’s contact info
|
|
47
|
+
*/
|
|
48
|
+
async getAccountInfo(
|
|
49
|
+
request: GetAccountInfoRequest,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): Promise<GetAccountInfoResponseBody> {
|
|
52
|
+
return unwrapAsync(marketplaceGetAccountInfo(
|
|
53
|
+
this,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Get Member Information
|
|
61
|
+
*
|
|
62
|
+
* @remarks
|
|
63
|
+
* Returns the member role and other information for a given member ID ("user_id" claim in the SSO OIDC token).
|
|
64
|
+
*/
|
|
65
|
+
async getMember(
|
|
66
|
+
request: GetMemberRequest,
|
|
67
|
+
options?: RequestOptions,
|
|
68
|
+
): Promise<GetMemberResponseBody> {
|
|
69
|
+
return unwrapAsync(marketplaceGetMember(
|
|
70
|
+
this,
|
|
71
|
+
request,
|
|
72
|
+
options,
|
|
73
|
+
));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Create Event
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* Partner notifies Vercel of any changes made to an Installation or a Resource. Vercel is expected to use `list-resources` and other read APIs to get the new state. <br/> <br/> `resource.updated` event should be dispatched when any state of a resource linked to Vercel is modified by the partner. <br/> <br/> Use cases: <br/> <br/> - The user renames a database in the partner’s application. The partner should dispatch a `resource.updated` event to notify Vercel to update the resource in Vercel’s datastores. <br/>
|
|
81
|
+
*/
|
|
82
|
+
async createEvent(
|
|
83
|
+
request: CreateEventRequest,
|
|
84
|
+
options?: RequestOptions,
|
|
85
|
+
): Promise<void> {
|
|
86
|
+
return unwrapAsync(marketplaceCreateEvent(
|
|
87
|
+
this,
|
|
88
|
+
request,
|
|
89
|
+
options,
|
|
90
|
+
));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Submit Billing Data
|
|
95
|
+
*
|
|
96
|
+
* @remarks
|
|
97
|
+
* Sends the billing and usage data. The partner should do this at least once a day and ideally once per hour.
|
|
98
|
+
*/
|
|
99
|
+
async submitBillingData(
|
|
100
|
+
request: SubmitBillingDataRequest,
|
|
101
|
+
options?: RequestOptions,
|
|
102
|
+
): Promise<void> {
|
|
103
|
+
return unwrapAsync(marketplaceSubmitBillingData(
|
|
104
|
+
this,
|
|
105
|
+
request,
|
|
106
|
+
options,
|
|
107
|
+
));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Submit Invoice
|
|
112
|
+
*
|
|
113
|
+
* @remarks
|
|
114
|
+
* This endpoint allows the partner to submit an invoice to Vercel. The invoice is created in Vercel's billing system and sent to the customer. Depending on the type of billing plan, the invoice can be sent at a time of signup, at the start of the billing period, or at the end of the billing period.<br/> <br/> There are several limitations to the invoice submission:<br/> <br/> 1. A resource can only be billed once per the billing period and the billing plan.<br/> 2. The billing plan used to bill the resource must have been active for this resource during the billing period.<br/> 3. The billing plan used must be a subscription plan.<br/> 4. The interim usage data must be sent hourly for all types of subscriptions. See [Send subscription billing and usage data](#send-subscription-billing-and-usage-data) API on how to send interim billing and usage data.<br/>
|
|
115
|
+
*/
|
|
116
|
+
async submitInvoice(
|
|
117
|
+
request: SubmitInvoiceRequest,
|
|
118
|
+
options?: RequestOptions,
|
|
119
|
+
): Promise<SubmitInvoiceResponseBody> {
|
|
120
|
+
return unwrapAsync(marketplaceSubmitInvoice(
|
|
121
|
+
this,
|
|
122
|
+
request,
|
|
123
|
+
options,
|
|
124
|
+
));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Get Invoice
|
|
129
|
+
*
|
|
130
|
+
* @remarks
|
|
131
|
+
* Get Invoice details and status for a given invoice ID.<br/> <br/> See Billing Events with Webhooks documentation on how to receive invoice events. This endpoint is used to retrieve the invoice details.
|
|
132
|
+
*/
|
|
133
|
+
async getInvoice(
|
|
134
|
+
request: GetInvoiceRequest,
|
|
135
|
+
options?: RequestOptions,
|
|
136
|
+
): Promise<GetInvoiceResponseBody> {
|
|
137
|
+
return unwrapAsync(marketplaceGetInvoice(
|
|
138
|
+
this,
|
|
139
|
+
request,
|
|
140
|
+
options,
|
|
141
|
+
));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Invoice Actions
|
|
146
|
+
*
|
|
147
|
+
* @remarks
|
|
148
|
+
* This endpoint allows the partner to request a refund for an invoice to Vercel. The invoice is created using the [Submit Invoice API](#submit-invoice-api).
|
|
149
|
+
*/
|
|
150
|
+
async updateInvoice(
|
|
151
|
+
request: UpdateInvoiceRequest,
|
|
152
|
+
options?: RequestOptions,
|
|
153
|
+
): Promise<void> {
|
|
154
|
+
return unwrapAsync(marketplaceUpdateInvoice(
|
|
155
|
+
this,
|
|
156
|
+
request,
|
|
157
|
+
options,
|
|
158
|
+
));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Update Resource Secrets
|
|
163
|
+
*
|
|
164
|
+
* @remarks
|
|
165
|
+
* This endpoint updates the secrets of a resource. If a resource has projects connected, the connected secrets are updated with the new secrets. The old secrets may still be used by existing connected projects because they are not automatically redeployed. Redeployment is a manual action and must be completed by the user. All new project connections will use the new secrets.<br/> <br/> Use cases for this endpoint:<br/> <br/> - Resetting the credentials of a database in the partner. If the user requests the credentials to be updated in the partner’s application, the partner post the new set of secrets to Vercel, the user should redeploy their application and the expire the old credentials.<br/>
|
|
166
|
+
*/
|
|
167
|
+
async updateResourceSecrets(
|
|
168
|
+
request: UpdateResourceSecretsRequest,
|
|
169
|
+
options?: RequestOptions,
|
|
170
|
+
): Promise<void> {
|
|
171
|
+
return unwrapAsync(marketplaceUpdateResourceSecrets(
|
|
172
|
+
this,
|
|
173
|
+
request,
|
|
174
|
+
options,
|
|
175
|
+
));
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* SSO Token Exchange
|
|
180
|
+
*
|
|
181
|
+
* @remarks
|
|
182
|
+
* 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.
|
|
183
|
+
*/
|
|
184
|
+
async exchangeSsoToken(
|
|
185
|
+
request?: ExchangeSsoTokenRequestBody | undefined,
|
|
186
|
+
options?: RequestOptions,
|
|
187
|
+
): Promise<ExchangeSsoTokenResponseBody> {
|
|
188
|
+
return unwrapAsync(marketplaceExchangeSsoToken(
|
|
189
|
+
this,
|
|
190
|
+
request,
|
|
191
|
+
options,
|
|
192
|
+
));
|
|
193
|
+
}
|
|
194
|
+
}
|
package/src/sdk/projects.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { projectsDeleteProject } from "../funcs/projectsDeleteProject.js";
|
|
|
9
9
|
import { projectsEditProjectEnv } from "../funcs/projectsEditProjectEnv.js";
|
|
10
10
|
import { projectsFilterProjectEnvs } from "../funcs/projectsFilterProjectEnvs.js";
|
|
11
11
|
import { projectsGetProjectDomain } from "../funcs/projectsGetProjectDomain.js";
|
|
12
|
+
import { projectsGetProjectDomains } from "../funcs/projectsGetProjectDomains.js";
|
|
12
13
|
import { projectsGetProjectEnv } from "../funcs/projectsGetProjectEnv.js";
|
|
13
14
|
import { projectsGetProjects } from "../funcs/projectsGetProjects.js";
|
|
14
15
|
import { projectsListPromoteAliases } from "../funcs/projectsListPromoteAliases.js";
|
|
@@ -46,6 +47,10 @@ import {
|
|
|
46
47
|
GetProjectDomainRequest,
|
|
47
48
|
GetProjectDomainResponseBody,
|
|
48
49
|
} from "../models/operations/getprojectdomain.js";
|
|
50
|
+
import {
|
|
51
|
+
GetProjectDomainsRequest,
|
|
52
|
+
GetProjectDomainsResponseBody,
|
|
53
|
+
} from "../models/operations/getprojectdomains.js";
|
|
49
54
|
import {
|
|
50
55
|
GetProjectEnvRequest,
|
|
51
56
|
GetProjectEnvResponseBody,
|
|
@@ -175,6 +180,23 @@ export class Projects extends ClientSDK {
|
|
|
175
180
|
));
|
|
176
181
|
}
|
|
177
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Retrieve project domains by project by id or name
|
|
185
|
+
*
|
|
186
|
+
* @remarks
|
|
187
|
+
* Retrieve the domains associated with a given project by passing either the project `id` or `name` in the URL.
|
|
188
|
+
*/
|
|
189
|
+
async getProjectDomains(
|
|
190
|
+
request: GetProjectDomainsRequest,
|
|
191
|
+
options?: RequestOptions,
|
|
192
|
+
): Promise<GetProjectDomainsResponseBody> {
|
|
193
|
+
return unwrapAsync(projectsGetProjectDomains(
|
|
194
|
+
this,
|
|
195
|
+
request,
|
|
196
|
+
options,
|
|
197
|
+
));
|
|
198
|
+
}
|
|
199
|
+
|
|
178
200
|
/**
|
|
179
201
|
* Get a project domain
|
|
180
202
|
*
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { Domains } from "./domains.js";
|
|
|
15
15
|
import { EdgeConfig } from "./edgeconfig.js";
|
|
16
16
|
import { Integrations } from "./integrations.js";
|
|
17
17
|
import { LogDrains } from "./logdrains.js";
|
|
18
|
+
import { Marketplace } from "./marketplace.js";
|
|
18
19
|
import { ProjectMembers } from "./projectmembers.js";
|
|
19
20
|
import { Projects } from "./projects.js";
|
|
20
21
|
import { Security } from "./security.js";
|
|
@@ -68,11 +69,21 @@ export class Vercel extends ClientSDK {
|
|
|
68
69
|
return (this._user ??= new User(this._options));
|
|
69
70
|
}
|
|
70
71
|
|
|
72
|
+
private _marketplace?: Marketplace;
|
|
73
|
+
get marketplace(): Marketplace {
|
|
74
|
+
return (this._marketplace ??= new Marketplace(this._options));
|
|
75
|
+
}
|
|
76
|
+
|
|
71
77
|
private _integrations?: Integrations;
|
|
72
78
|
get integrations(): Integrations {
|
|
73
79
|
return (this._integrations ??= new Integrations(this._options));
|
|
74
80
|
}
|
|
75
81
|
|
|
82
|
+
private _authentication?: Authentication;
|
|
83
|
+
get authentication(): Authentication {
|
|
84
|
+
return (this._authentication ??= new Authentication(this._options));
|
|
85
|
+
}
|
|
86
|
+
|
|
76
87
|
private _logDrains?: LogDrains;
|
|
77
88
|
get logDrains(): LogDrains {
|
|
78
89
|
return (this._logDrains ??= new LogDrains(this._options));
|
|
@@ -93,11 +104,6 @@ export class Vercel extends ClientSDK {
|
|
|
93
104
|
return (this._teams ??= new Teams(this._options));
|
|
94
105
|
}
|
|
95
106
|
|
|
96
|
-
private _authentication?: Authentication;
|
|
97
|
-
get authentication(): Authentication {
|
|
98
|
-
return (this._authentication ??= new Authentication(this._options));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
107
|
private _webhooks?: Webhooks;
|
|
102
108
|
get webhooks(): Webhooks {
|
|
103
109
|
return (this._webhooks ??= new Webhooks(this._options));
|