@vercel/sdk 1.13.8 → 1.13.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/README.md +24 -20
- package/bin/mcp-server.js +2169 -1565
- package/bin/mcp-server.js.map +27 -21
- package/docs/sdks/marketplace/README.md +150 -0
- package/esm/__tests__/domains.test.js +2 -7
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +1 -1
- package/esm/__tests__/logdrains.test.js +2 -6
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/marketplace.test.js +16 -0
- package/esm/__tests__/marketplace.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +6 -2
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +4 -4
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/marketplaceUpdateInstallation.d.ts +17 -0
- package/esm/funcs/marketplaceUpdateInstallation.d.ts.map +1 -0
- package/esm/funcs/marketplaceUpdateInstallation.js +82 -0
- package/esm/funcs/marketplaceUpdateInstallation.js.map +1 -0
- package/esm/funcs/marketplaceUpdateResource.d.ts +17 -0
- package/esm/funcs/marketplaceUpdateResource.d.ts.map +1 -0
- package/esm/funcs/marketplaceUpdateResource.js +85 -0
- package/esm/funcs/marketplaceUpdateResource.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +5 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.d.ts +7 -0
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.d.ts.map +1 -0
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.js +27 -0
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.js.map +1 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.d.ts +7 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.d.ts.map +1 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.js +28 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.js.map +1 -0
- package/esm/models/buysingledomainop.d.ts +8 -8
- package/esm/models/buysingledomainop.d.ts.map +1 -1
- package/esm/models/buysingledomainop.js +12 -13
- package/esm/models/buysingledomainop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +285 -285
- package/esm/models/createintegrationstoredirectop.js +351 -351
- package/esm/models/createprojectenvop.d.ts +6 -6
- package/esm/models/createprojectenvop.js +2 -2
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +154 -156
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +149 -151
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/editprojectenvop.d.ts +3 -3
- package/esm/models/editprojectenvop.js +1 -1
- package/esm/models/editprojectenvop.js.map +1 -1
- package/esm/models/exchangessotokenop.d.ts +2 -0
- package/esm/models/exchangessotokenop.d.ts.map +1 -1
- package/esm/models/exchangessotokenop.js +4 -0
- package/esm/models/exchangessotokenop.js.map +1 -1
- package/esm/models/filterprojectenvsop.d.ts +9 -9
- package/esm/models/filterprojectenvsop.js +3 -3
- package/esm/models/filterprojectenvsop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +375 -375
- package/esm/models/getconfigurationproductsop.js +465 -465
- package/esm/models/getprojectenvop.d.ts +9 -9
- package/esm/models/getprojectenvop.js +3 -3
- package/esm/models/getprojectenvop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +124 -126
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +131 -133
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/importresourceop.d.ts +68 -68
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +75 -72
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/removeprojectenvop.d.ts +9 -9
- package/esm/models/removeprojectenvop.js +3 -3
- package/esm/models/removeprojectenvop.js.map +1 -1
- package/esm/models/updateinstallationop.d.ts +242 -0
- package/esm/models/updateinstallationop.d.ts.map +1 -0
- package/esm/models/updateinstallationop.js +246 -0
- package/esm/models/updateinstallationop.js.map +1 -0
- package/esm/models/updateprojectdatacacheop.d.ts +124 -126
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +131 -133
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +154 -156
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +149 -151
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateresourceop.d.ts +432 -0
- package/esm/models/updateresourceop.d.ts.map +1 -0
- package/esm/models/updateresourceop.js +393 -0
- package/esm/models/updateresourceop.js.map +1 -0
- package/esm/models/userevent.d.ts +122 -6
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +90 -2
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/marketplace.d.ts +16 -0
- package/esm/sdk/marketplace.d.ts.map +1 -1
- package/esm/sdk/marketplace.js +20 -0
- package/esm/sdk/marketplace.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/domains.test.ts +2 -7
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/logdrains.test.ts +2 -6
- package/src/__tests__/marketplace.test.ts +19 -0
- package/src/__tests__/rollingrelease.test.ts +6 -2
- package/src/__tests__/security.test.ts +4 -4
- package/src/funcs/marketplaceUpdateInstallation.ts +174 -0
- package/src/funcs/marketplaceUpdateResource.ts +179 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/marketplaceUpdateInstallation.ts +35 -0
- package/src/mcp-server/tools/marketplaceUpdateResource.ts +37 -0
- package/src/models/buysingledomainop.ts +16 -14
- package/src/models/createintegrationstoredirectop.ts +604 -604
- package/src/models/createprojectenvop.ts +2 -2
- package/src/models/createprojectop.ts +285 -289
- package/src/models/editprojectenvop.ts +1 -1
- package/src/models/exchangessotokenop.ts +6 -0
- package/src/models/filterprojectenvsop.ts +3 -3
- package/src/models/getconfigurationproductsop.ts +802 -802
- package/src/models/getprojectenvop.ts +3 -3
- package/src/models/getprojectsop.ts +255 -259
- package/src/models/importresourceop.ts +142 -115
- package/src/models/removeprojectenvop.ts +3 -3
- package/src/models/updateinstallationop.ts +488 -0
- package/src/models/updateprojectdatacacheop.ts +255 -259
- package/src/models/updateprojectop.ts +285 -289
- package/src/models/updateresourceop.ts +823 -0
- package/src/models/userevent.ts +188 -2
- package/src/sdk/marketplace.ts +41 -0
- package/vercel-spec.json +1618 -1190
package/src/models/userevent.ts
CHANGED
|
@@ -137,10 +137,8 @@ export type Via = Via1 | Via2;
|
|
|
137
137
|
|
|
138
138
|
export const GrantType = {
|
|
139
139
|
AuthorizationCode: "authorization_code",
|
|
140
|
-
RefreshToken: "refresh_token",
|
|
141
140
|
UrnIetfParamsOauthGrantTypeDeviceCode:
|
|
142
141
|
"urn:ietf:params:oauth:grant-type:device_code",
|
|
143
|
-
ClientCredentials: "client_credentials",
|
|
144
142
|
} as const;
|
|
145
143
|
export type GrantType = ClosedEnum<typeof GrantType>;
|
|
146
144
|
|
|
@@ -160,11 +158,41 @@ export const AuthMethod = {
|
|
|
160
158
|
} as const;
|
|
161
159
|
export type AuthMethod = ClosedEnum<typeof AuthMethod>;
|
|
162
160
|
|
|
161
|
+
export const Method = {
|
|
162
|
+
ClientSecretBasic: "client_secret_basic",
|
|
163
|
+
ClientSecretPost: "client_secret_post",
|
|
164
|
+
ClientSecretJwt: "client_secret_jwt",
|
|
165
|
+
PrivateKeyJwt: "private_key_jwt",
|
|
166
|
+
OidcToken: "oidc_token",
|
|
167
|
+
None: "none",
|
|
168
|
+
} as const;
|
|
169
|
+
export type Method = ClosedEnum<typeof Method>;
|
|
170
|
+
|
|
171
|
+
export type ClientAuthenticationUsed = {
|
|
172
|
+
method: Method;
|
|
173
|
+
secretId?: string | undefined;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* optional since entries prior to 2025-10-13 do not contain app information
|
|
178
|
+
*/
|
|
179
|
+
export type App = {
|
|
180
|
+
clientId: string;
|
|
181
|
+
/**
|
|
182
|
+
* the app's name at the time the event was published (it could have changed since then)
|
|
183
|
+
*/
|
|
184
|
+
name: string;
|
|
185
|
+
clientAuthenticationUsed: ClientAuthenticationUsed;
|
|
186
|
+
};
|
|
187
|
+
|
|
163
188
|
/**
|
|
164
189
|
* The payload of the event, if requested.
|
|
165
190
|
*/
|
|
166
191
|
export type OneHundredAndSixtyFive = {
|
|
167
192
|
grantType: GrantType;
|
|
193
|
+
/**
|
|
194
|
+
* the app's name at the time the event was published (it could have changed since then)
|
|
195
|
+
*/
|
|
168
196
|
appName: string;
|
|
169
197
|
/**
|
|
170
198
|
* access_token TTL
|
|
@@ -176,6 +204,22 @@ export type OneHundredAndSixtyFive = {
|
|
|
176
204
|
rtTTL?: number | undefined;
|
|
177
205
|
scope: string;
|
|
178
206
|
authMethod: AuthMethod;
|
|
207
|
+
/**
|
|
208
|
+
* optional since entries prior to 2025-10-13 do not contain app information
|
|
209
|
+
*/
|
|
210
|
+
app?: App | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* optional since entries prior to 2025-10-13 do not contain this field
|
|
213
|
+
*/
|
|
214
|
+
includesRefreshToken?: boolean | undefined;
|
|
215
|
+
/**
|
|
216
|
+
* optional since entries prior to 2025-10-13 do not contain this field
|
|
217
|
+
*/
|
|
218
|
+
publicId?: string | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* optional since entries prior to 2025-10-13 do not contain this field
|
|
221
|
+
*/
|
|
222
|
+
sessionId?: string | undefined;
|
|
179
223
|
};
|
|
180
224
|
|
|
181
225
|
export type UserEventPayload164Team = {
|
|
@@ -5439,6 +5483,136 @@ export namespace AuthMethod$ {
|
|
|
5439
5483
|
export const outboundSchema = AuthMethod$outboundSchema;
|
|
5440
5484
|
}
|
|
5441
5485
|
|
|
5486
|
+
/** @internal */
|
|
5487
|
+
export const Method$inboundSchema: z.ZodNativeEnum<typeof Method> = z
|
|
5488
|
+
.nativeEnum(Method);
|
|
5489
|
+
|
|
5490
|
+
/** @internal */
|
|
5491
|
+
export const Method$outboundSchema: z.ZodNativeEnum<typeof Method> =
|
|
5492
|
+
Method$inboundSchema;
|
|
5493
|
+
|
|
5494
|
+
/**
|
|
5495
|
+
* @internal
|
|
5496
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5497
|
+
*/
|
|
5498
|
+
export namespace Method$ {
|
|
5499
|
+
/** @deprecated use `Method$inboundSchema` instead. */
|
|
5500
|
+
export const inboundSchema = Method$inboundSchema;
|
|
5501
|
+
/** @deprecated use `Method$outboundSchema` instead. */
|
|
5502
|
+
export const outboundSchema = Method$outboundSchema;
|
|
5503
|
+
}
|
|
5504
|
+
|
|
5505
|
+
/** @internal */
|
|
5506
|
+
export const ClientAuthenticationUsed$inboundSchema: z.ZodType<
|
|
5507
|
+
ClientAuthenticationUsed,
|
|
5508
|
+
z.ZodTypeDef,
|
|
5509
|
+
unknown
|
|
5510
|
+
> = z.object({
|
|
5511
|
+
method: Method$inboundSchema,
|
|
5512
|
+
secretId: z.string().optional(),
|
|
5513
|
+
});
|
|
5514
|
+
|
|
5515
|
+
/** @internal */
|
|
5516
|
+
export type ClientAuthenticationUsed$Outbound = {
|
|
5517
|
+
method: string;
|
|
5518
|
+
secretId?: string | undefined;
|
|
5519
|
+
};
|
|
5520
|
+
|
|
5521
|
+
/** @internal */
|
|
5522
|
+
export const ClientAuthenticationUsed$outboundSchema: z.ZodType<
|
|
5523
|
+
ClientAuthenticationUsed$Outbound,
|
|
5524
|
+
z.ZodTypeDef,
|
|
5525
|
+
ClientAuthenticationUsed
|
|
5526
|
+
> = z.object({
|
|
5527
|
+
method: Method$outboundSchema,
|
|
5528
|
+
secretId: z.string().optional(),
|
|
5529
|
+
});
|
|
5530
|
+
|
|
5531
|
+
/**
|
|
5532
|
+
* @internal
|
|
5533
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5534
|
+
*/
|
|
5535
|
+
export namespace ClientAuthenticationUsed$ {
|
|
5536
|
+
/** @deprecated use `ClientAuthenticationUsed$inboundSchema` instead. */
|
|
5537
|
+
export const inboundSchema = ClientAuthenticationUsed$inboundSchema;
|
|
5538
|
+
/** @deprecated use `ClientAuthenticationUsed$outboundSchema` instead. */
|
|
5539
|
+
export const outboundSchema = ClientAuthenticationUsed$outboundSchema;
|
|
5540
|
+
/** @deprecated use `ClientAuthenticationUsed$Outbound` instead. */
|
|
5541
|
+
export type Outbound = ClientAuthenticationUsed$Outbound;
|
|
5542
|
+
}
|
|
5543
|
+
|
|
5544
|
+
export function clientAuthenticationUsedToJSON(
|
|
5545
|
+
clientAuthenticationUsed: ClientAuthenticationUsed,
|
|
5546
|
+
): string {
|
|
5547
|
+
return JSON.stringify(
|
|
5548
|
+
ClientAuthenticationUsed$outboundSchema.parse(clientAuthenticationUsed),
|
|
5549
|
+
);
|
|
5550
|
+
}
|
|
5551
|
+
|
|
5552
|
+
export function clientAuthenticationUsedFromJSON(
|
|
5553
|
+
jsonString: string,
|
|
5554
|
+
): SafeParseResult<ClientAuthenticationUsed, SDKValidationError> {
|
|
5555
|
+
return safeParse(
|
|
5556
|
+
jsonString,
|
|
5557
|
+
(x) => ClientAuthenticationUsed$inboundSchema.parse(JSON.parse(x)),
|
|
5558
|
+
`Failed to parse 'ClientAuthenticationUsed' from JSON`,
|
|
5559
|
+
);
|
|
5560
|
+
}
|
|
5561
|
+
|
|
5562
|
+
/** @internal */
|
|
5563
|
+
export const App$inboundSchema: z.ZodType<App, z.ZodTypeDef, unknown> = z
|
|
5564
|
+
.object({
|
|
5565
|
+
clientId: z.string(),
|
|
5566
|
+
name: z.string(),
|
|
5567
|
+
clientAuthenticationUsed: z.lazy(() =>
|
|
5568
|
+
ClientAuthenticationUsed$inboundSchema
|
|
5569
|
+
),
|
|
5570
|
+
});
|
|
5571
|
+
|
|
5572
|
+
/** @internal */
|
|
5573
|
+
export type App$Outbound = {
|
|
5574
|
+
clientId: string;
|
|
5575
|
+
name: string;
|
|
5576
|
+
clientAuthenticationUsed: ClientAuthenticationUsed$Outbound;
|
|
5577
|
+
};
|
|
5578
|
+
|
|
5579
|
+
/** @internal */
|
|
5580
|
+
export const App$outboundSchema: z.ZodType<App$Outbound, z.ZodTypeDef, App> = z
|
|
5581
|
+
.object({
|
|
5582
|
+
clientId: z.string(),
|
|
5583
|
+
name: z.string(),
|
|
5584
|
+
clientAuthenticationUsed: z.lazy(() =>
|
|
5585
|
+
ClientAuthenticationUsed$outboundSchema
|
|
5586
|
+
),
|
|
5587
|
+
});
|
|
5588
|
+
|
|
5589
|
+
/**
|
|
5590
|
+
* @internal
|
|
5591
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5592
|
+
*/
|
|
5593
|
+
export namespace App$ {
|
|
5594
|
+
/** @deprecated use `App$inboundSchema` instead. */
|
|
5595
|
+
export const inboundSchema = App$inboundSchema;
|
|
5596
|
+
/** @deprecated use `App$outboundSchema` instead. */
|
|
5597
|
+
export const outboundSchema = App$outboundSchema;
|
|
5598
|
+
/** @deprecated use `App$Outbound` instead. */
|
|
5599
|
+
export type Outbound = App$Outbound;
|
|
5600
|
+
}
|
|
5601
|
+
|
|
5602
|
+
export function appToJSON(app: App): string {
|
|
5603
|
+
return JSON.stringify(App$outboundSchema.parse(app));
|
|
5604
|
+
}
|
|
5605
|
+
|
|
5606
|
+
export function appFromJSON(
|
|
5607
|
+
jsonString: string,
|
|
5608
|
+
): SafeParseResult<App, SDKValidationError> {
|
|
5609
|
+
return safeParse(
|
|
5610
|
+
jsonString,
|
|
5611
|
+
(x) => App$inboundSchema.parse(JSON.parse(x)),
|
|
5612
|
+
`Failed to parse 'App' from JSON`,
|
|
5613
|
+
);
|
|
5614
|
+
}
|
|
5615
|
+
|
|
5442
5616
|
/** @internal */
|
|
5443
5617
|
export const OneHundredAndSixtyFive$inboundSchema: z.ZodType<
|
|
5444
5618
|
OneHundredAndSixtyFive,
|
|
@@ -5451,6 +5625,10 @@ export const OneHundredAndSixtyFive$inboundSchema: z.ZodType<
|
|
|
5451
5625
|
rtTTL: z.number().optional(),
|
|
5452
5626
|
scope: z.string(),
|
|
5453
5627
|
authMethod: AuthMethod$inboundSchema,
|
|
5628
|
+
app: z.lazy(() => App$inboundSchema).optional(),
|
|
5629
|
+
includesRefreshToken: z.boolean().optional(),
|
|
5630
|
+
publicId: z.string().optional(),
|
|
5631
|
+
sessionId: z.string().optional(),
|
|
5454
5632
|
});
|
|
5455
5633
|
|
|
5456
5634
|
/** @internal */
|
|
@@ -5461,6 +5639,10 @@ export type OneHundredAndSixtyFive$Outbound = {
|
|
|
5461
5639
|
rtTTL?: number | undefined;
|
|
5462
5640
|
scope: string;
|
|
5463
5641
|
authMethod: string;
|
|
5642
|
+
app?: App$Outbound | undefined;
|
|
5643
|
+
includesRefreshToken?: boolean | undefined;
|
|
5644
|
+
publicId?: string | undefined;
|
|
5645
|
+
sessionId?: string | undefined;
|
|
5464
5646
|
};
|
|
5465
5647
|
|
|
5466
5648
|
/** @internal */
|
|
@@ -5475,6 +5657,10 @@ export const OneHundredAndSixtyFive$outboundSchema: z.ZodType<
|
|
|
5475
5657
|
rtTTL: z.number().optional(),
|
|
5476
5658
|
scope: z.string(),
|
|
5477
5659
|
authMethod: AuthMethod$outboundSchema,
|
|
5660
|
+
app: z.lazy(() => App$outboundSchema).optional(),
|
|
5661
|
+
includesRefreshToken: z.boolean().optional(),
|
|
5662
|
+
publicId: z.string().optional(),
|
|
5663
|
+
sessionId: z.string().optional(),
|
|
5478
5664
|
});
|
|
5479
5665
|
|
|
5480
5666
|
/**
|
package/src/sdk/marketplace.ts
CHANGED
|
@@ -17,9 +17,11 @@ import { marketplaceImportResource } from "../funcs/marketplaceImportResource.js
|
|
|
17
17
|
import { marketplaceSubmitBillingData } from "../funcs/marketplaceSubmitBillingData.js";
|
|
18
18
|
import { marketplaceSubmitInvoice } from "../funcs/marketplaceSubmitInvoice.js";
|
|
19
19
|
import { marketplaceSubmitPrepaymentBalances } from "../funcs/marketplaceSubmitPrepaymentBalances.js";
|
|
20
|
+
import { marketplaceUpdateInstallation } from "../funcs/marketplaceUpdateInstallation.js";
|
|
20
21
|
import { marketplaceUpdateInstallationIntegrationConfiguration } from "../funcs/marketplaceUpdateInstallationIntegrationConfiguration.js";
|
|
21
22
|
import { marketplaceUpdateInstallationIntegrationEdgeConfig } from "../funcs/marketplaceUpdateInstallationIntegrationEdgeConfig.js";
|
|
22
23
|
import { marketplaceUpdateInvoice } from "../funcs/marketplaceUpdateInvoice.js";
|
|
24
|
+
import { marketplaceUpdateResource } from "../funcs/marketplaceUpdateResource.js";
|
|
23
25
|
import { marketplaceUpdateResourceSecrets } from "../funcs/marketplaceUpdateResourceSecrets.js";
|
|
24
26
|
import { marketplaceUpdateResourceSecretsById } from "../funcs/marketplaceUpdateResourceSecretsById.js";
|
|
25
27
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -76,12 +78,34 @@ import {
|
|
|
76
78
|
SubmitInvoiceResponseBody,
|
|
77
79
|
} from "../models/submitinvoiceop.js";
|
|
78
80
|
import { SubmitPrepaymentBalancesRequest } from "../models/submitprepaymentbalancesop.js";
|
|
81
|
+
import { UpdateInstallationRequest } from "../models/updateinstallationop.js";
|
|
79
82
|
import { UpdateInvoiceRequest } from "../models/updateinvoiceop.js";
|
|
83
|
+
import {
|
|
84
|
+
UpdateResourceRequest,
|
|
85
|
+
UpdateResourceResponseBody,
|
|
86
|
+
} from "../models/updateresourceop.js";
|
|
80
87
|
import { UpdateResourceSecretsByIdRequest } from "../models/updateresourcesecretsbyidop.js";
|
|
81
88
|
import { UpdateResourceSecretsRequest } from "../models/updateresourcesecretsop.js";
|
|
82
89
|
import { unwrapAsync } from "../types/fp.js";
|
|
83
90
|
|
|
84
91
|
export class Marketplace extends ClientSDK {
|
|
92
|
+
/**
|
|
93
|
+
* Update Installation
|
|
94
|
+
*
|
|
95
|
+
* @remarks
|
|
96
|
+
* This endpoint updates an integration installation.
|
|
97
|
+
*/
|
|
98
|
+
async updateInstallation(
|
|
99
|
+
request: UpdateInstallationRequest,
|
|
100
|
+
options?: RequestOptions,
|
|
101
|
+
): Promise<void> {
|
|
102
|
+
return unwrapAsync(marketplaceUpdateInstallation(
|
|
103
|
+
this,
|
|
104
|
+
request,
|
|
105
|
+
options,
|
|
106
|
+
));
|
|
107
|
+
}
|
|
108
|
+
|
|
85
109
|
/**
|
|
86
110
|
* Get Account Information
|
|
87
111
|
*
|
|
@@ -201,6 +225,23 @@ export class Marketplace extends ClientSDK {
|
|
|
201
225
|
));
|
|
202
226
|
}
|
|
203
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Update Resource
|
|
230
|
+
*
|
|
231
|
+
* @remarks
|
|
232
|
+
* This endpoint updates an existing resource in the installation. All parameters are optional, allowing partial updates.
|
|
233
|
+
*/
|
|
234
|
+
async updateResource(
|
|
235
|
+
request: UpdateResourceRequest,
|
|
236
|
+
options?: RequestOptions,
|
|
237
|
+
): Promise<UpdateResourceResponseBody> {
|
|
238
|
+
return unwrapAsync(marketplaceUpdateResource(
|
|
239
|
+
this,
|
|
240
|
+
request,
|
|
241
|
+
options,
|
|
242
|
+
));
|
|
243
|
+
}
|
|
244
|
+
|
|
204
245
|
/**
|
|
205
246
|
* Submit Billing Data
|
|
206
247
|
*
|