### Create Installation via Standalone Function Source: https://github.com/vercel/sdk/blob/main/docs/sdks/marketplace/README.md This example shows how to use the standalone function for creating an installation, which can offer better tree-shaking performance. It includes error handling for the API call. ```typescript import { VercelCore } from "@vercel/sdk/core.js"; import { marketplaceCreateInstallationIntegrationConfiguration } from "@vercel/sdk/funcs/marketplaceCreateInstallationIntegrationConfiguration.js"; // Use `VercelCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const vercel = new VercelCore({ bearerToken: "", }); async function run() { const res = await marketplaceCreateInstallationIntegrationConfiguration(vercel, { integrationConfigurationId: "", resourceId: "", }); if (res.ok) { const { value: result } = res; } else { console.log("marketplaceCreateInstallationIntegrationConfiguration failed:", res.error); } } run(); ``` -------------------------------- ### GetProjectDomainResponseBody Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getprojectdomainresponsebody.md Example usage of the GetProjectDomainResponseBody type. Ensure the '@vercel/sdk' is installed. ```typescript import { GetProjectDomainResponseBody } from "@vercel/sdk/models/getprojectdomainop.js"; let value: GetProjectDomainResponseBody = { name: "", apexName: "", projectId: "", verified: true, }; ``` -------------------------------- ### Create Installation via SDK Method Source: https://github.com/vercel/sdk/blob/main/docs/sdks/marketplace/README.md Use this method to create an installation for a given integration configuration and resource. Ensure you have your bearer token and the correct IDs. ```typescript import { Vercel } from "@vercel/sdk"; const vercel = new Vercel({ bearerToken: "", }); async function run() { await vercel.marketplace.createInstallationIntegrationConfiguration({ integrationConfigurationId: "", resourceId: "", }); } run(); ``` -------------------------------- ### AddProjectMemberResponseBody Example Source: https://github.com/vercel/sdk/blob/main/docs/models/addprojectmemberresponsebody.md Example of how to use the AddProjectMemberResponseBody. Ensure you have the @vercel/sdk package installed. ```typescript import { AddProjectMemberResponseBody } from "@vercel/sdk/models/addprojectmemberop.js"; let value: AddProjectMemberResponseBody = { id: "", }; ``` -------------------------------- ### Initialize GetConfigurationProductsUiOptions3 Source: https://github.com/vercel/sdk/blob/main/docs/models/getconfigurationproductsuioptions3.md Example of how to initialize the GetConfigurationProductsUiOptions3 model. Ensure the necessary import is included. ```typescript import { GetConfigurationProductsUiOptions3 } from "@vercel/sdk/models/getconfigurationproductspropertiesintegrationsresponse200uicontrol.js"; let value: GetConfigurationProductsUiOptions3 = { value: "", }; ``` -------------------------------- ### ReadAccessGroupResponseBody Example Source: https://github.com/vercel/sdk/blob/main/docs/models/readaccessgroupresponsebody.md Example of how to instantiate and use the ReadAccessGroupResponseBody model. Ensure the @vercel/sdk is installed. ```typescript import { ReadAccessGroupResponseBody } from "@vercel/sdk/models/readaccessgroupop.js"; let value: ReadAccessGroupResponseBody = { isDsyncManaged: true, name: "my-access-group", createdAt: "1588720733602", teamId: "team_123a6c5209bc3778245d011443644c8d27dc2c50", updatedAt: "1588720733602", accessGroupId: "ag_123a6c5209bc3778245d011443644c8d27dc2c50", membersCount: 5, projectsCount: 2, teamRoles: [ "DEVELOPER", "BILLING", ], }; ``` -------------------------------- ### TypeScript: UploadArtifactResponseBody Example Source: https://github.com/vercel/sdk/blob/main/docs/models/uploadartifactresponsebody.md Example of how to define and use the UploadArtifactResponseBody in TypeScript. Ensure the '@vercel/sdk' is installed. ```typescript import { UploadArtifactResponseBody } from "@vercel/sdk/models/uploadartifactop.js"; let value: UploadArtifactResponseBody = { urls: [ "https://api.vercel.com/v2/now/artifact/12HKQaOmR5t5Uy6vdcQsNIiZgHGB", ], }; ``` -------------------------------- ### Instantiate Products Model Source: https://github.com/vercel/sdk/blob/main/docs/models/products.md Example of how to create an instance of the Products model. Ensure all required fields are populated. ```typescript import { Products } from "@vercel/sdk/models/getconfigurationproductsresponsebody.js"; let value: Products = { id: "", slug: "", name: "", protocols: {}, metadataSchema: { type: "object", properties: { "key": { type: "array", items: { type: "number", }, uiControl: "slider", uiSteps: [], }, }, }, }; ``` -------------------------------- ### Create Deployment Source Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createdeploymentdeploymentssource.md Example of how to create a CreateDeploymentDeploymentsSource object. Ensure the correct import path is used. ```typescript import { CreateDeploymentDeploymentsSource } from "@vercel/sdk/models/createdeploymentvaluedeployments2.js"; let value: CreateDeploymentDeploymentsSource = { name: "", }; ``` -------------------------------- ### TypeScript: ListDeploymentAliasesResponseBody Example Source: https://github.com/vercel/sdk/blob/main/docs/models/listdeploymentaliasesresponsebody.md Example of how to define and use the ListDeploymentAliasesResponseBody in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { ListDeploymentAliasesResponseBody } from "@vercel/sdk/models/listdeploymentaliasesop.js"; let value: ListDeploymentAliasesResponseBody = { aliases: [ { uid: "2WjyKQmM8ZnGcJsPWMrHRHrE", alias: "my-alias.vercel.app", created: new Date("2017-04-26T23:00:34.232Z"), }, ], }; ``` -------------------------------- ### CreateProjectProjectsResourceConfig Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectprojectsresourceconfig.md Demonstrates how to import and initialize the CreateProjectProjectsResourceConfig model. Ensure the correct import path is used. ```typescript import { CreateProjectProjectsResourceConfig } from "@vercel/sdk/models/createprojecttopreset.js"; let value: CreateProjectProjectsResourceConfig = { functionDefaultRegions: [], }; ``` -------------------------------- ### GetTeamMembersRequest Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getteammembersrequest.md Example of how to instantiate and use the GetTeamMembersRequest object in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { GetTeamMembersRequest } from "@vercel/sdk/models/getteammembersop.js"; let value: GetTeamMembersRequest = { limit: 20, since: 1540095775951, until: 1540095775951, role: "OWNER", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", }; ``` -------------------------------- ### CreateProjectConnectConfigurations Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectconnectconfigurations.md Demonstrates how to instantiate the CreateProjectConnectConfigurations model with required fields. Ensure all fields match the specified types. ```typescript import { CreateProjectConnectConfigurations } from "@vercel/sdk/models/createprojecttopreset.js"; let value: CreateProjectConnectConfigurations = { envId: "", connectConfigurationId: "", passive: false, buildsEnabled: false, createdAt: 6832.38, updatedAt: 3013.56, }; ``` -------------------------------- ### TypeScript: GetIntegrationLogDrainsRequest Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getintegrationlogdrainsrequest.md Example of how to instantiate and use the GetIntegrationLogDrainsRequest model in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { GetIntegrationLogDrainsRequest } from "@vercel/sdk/models/getintegrationlogdrainsop.js"; let value: GetIntegrationLogDrainsRequest = { teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", }; ``` -------------------------------- ### GetDeploymentCustomEnvironment2 Usage Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getdeploymentcustomenvironment2.md Example of how to use the GetDeploymentCustomEnvironment2 type from the Vercel SDK. Ensure you have the SDK installed. ```typescript import { GetDeploymentCustomEnvironment2 } from "@vercel/sdk/models/responsebodyproject.js"; let value: GetDeploymentCustomEnvironment2 = { id: "", }; ``` -------------------------------- ### Initialize GetConfigurationProductsPropertiesUiOptions Source: https://github.com/vercel/sdk/blob/main/docs/models/getconfigurationproductspropertiesuioptions.md Example of how to initialize a GetConfigurationProductsPropertiesUiOptions object. Ensure all required fields are provided. ```typescript import { GetConfigurationProductsPropertiesUiOptions } from "@vercel/sdk/models/getconfigurationproductspropertiesintegrationsresponse200uicontrol.js"; let value: GetConfigurationProductsPropertiesUiOptions = { value: "", label: "", }; ``` -------------------------------- ### TypeScript: GetBillingPlansResponseBody Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getbillingplansresponsebody.md Example of how to use the GetBillingPlansResponseBody type in TypeScript. Ensure the '@vercel/sdk' package is installed. ```typescript import { GetBillingPlansResponseBody } from "@vercel/sdk/models/getbillingplansop.js"; let value: GetBillingPlansResponseBody = { plans: [ { type: "subscription", id: "", name: "", scope: "installation", description: "delightfully buzzing opposite carefully", paymentMethodRequired: true, }, ], }; ``` -------------------------------- ### Import and Initialize SyncState Source: https://github.com/vercel/sdk/blob/main/docs/models/syncstate.md Imports the SyncState type and demonstrates its initialization. Use 'SETUP' when a directory is connected but role mappings are not yet configured. ```typescript import { SyncState } from "@vercel/sdk/models/team.js"; let value: SyncState = "SETUP"; ``` -------------------------------- ### GetRecordsResponseBody3 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getrecordsresponsebody3.md Example usage of GetRecordsResponseBody3 for initializing a paginated DNS records response. Ensure the '@vercel/sdk' is installed. ```typescript import { GetRecordsResponseBody3 } from "@vercel/sdk/models/getrecordsop.js"; let value: GetRecordsResponseBody3 = { records: [], pagination: { count: 20, next: 1540095775951, prev: 1540095775951, }, }; ``` -------------------------------- ### Instantiate CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111 Source: https://github.com/vercel/sdk/blob/main/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschemaproperties111.md Example of how to import and instantiate the CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111 model. Ensure the correct path is used for the import. ```typescript import { CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111, } from "@vercel/sdk/models/createintegrationstoredirecthiddenintegrations1.js"; let value: CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties111 = { expr: "", }; ``` -------------------------------- ### TypeScript: GetProjectsLinkProjectsResponse3 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getprojectslinkprojectsresponse3.md Demonstrates how to define and initialize a GetProjectsLinkProjectsResponse3 object in TypeScript. Ensure the '@vercel/sdk' package is installed. ```typescript import { GetProjectsLinkProjectsResponse3 } from "@vercel/sdk/models/getprojectsresponsebodyprojectsaibots.js"; let value: GetProjectsLinkProjectsResponse3 = { org: "", type: "github-custom-host", host: "ill-essence.net", deployHooks: [ { id: "", name: "", ref: "", url: "https://lonely-dash.com/", }, ], gitCredentialId: "", productionBranch: "", }; ``` -------------------------------- ### Started At Timestamp Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getrollingreleaserollingrelease.md Example of the `startedAt` field, representing the Unix timestamp in milliseconds when the rolling release began. ```plaintext 1716210500000 ``` -------------------------------- ### CreateProjectMicrofrontends3 Model Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectmicrofrontends3.md Demonstrates how to import and instantiate the CreateProjectMicrofrontends3 model with sample data. Ensure you have the correct types imported. ```typescript import { CreateProjectMicrofrontends3 } from "@vercel/sdk/models/createprojecttopreset.js"; let value: CreateProjectMicrofrontends3 = { updatedAt: 5547.04, groupIds: [ "", "", "", ], enabled: false, }; ``` -------------------------------- ### GetSessionResponseBody Example Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/getsessionresponsebody.md This example demonstrates how to define and use the GetSessionResponseBody type in TypeScript. Ensure the @vercel/sdk is installed for type checking. ```typescript import { GetSessionResponseBody } from "@vercel/sdk/models/getsessionop.js"; let value: GetSessionResponseBody = { session: { sourceSandboxName: "my-sandbox", projectId: "prj_123a6c5209bc3778245d011443644c8d27dc2c50", id: "sbx_123a6c5209bc3778245d011443644c8d27dc2c50", memory: 2048, vcpus: 2, region: "iad1", runtime: "node22", timeout: 3600000, status: "running", requestedAt: 1750344501629, startedAt: 1750344501629, cwd: "/vercel/sandbox", requestedStopAt: 1750344501629, stoppedAt: 1750344501629, abortedAt: 1750344501629, duration: 3600000, sourceSnapshotId: "snap_123a6c5209bc3778245d011443644c8d27dc2c50", snapshottedAt: 1750344501629, createdAt: 1750344501629, updatedAt: 1750344501629, networkPolicy: { mode: "custom", allowedDomains: [ "api.vercel.com", "*.example.com", ], allowedCIDRs: [ "10.0.0.0/8", ], deniedCIDRs: [ "10.0.0.0/8", ], injectionRules: [ { domain: "api.vercel.com", headerNames: [ "Authorization", "X-API-Key", ], }, ], }, activeCpuDurationMs: 42, networkTransfer: { ingress: 1009.44, egress: 7683.25, }, }, routes: [], }; ``` -------------------------------- ### Create Project Content Hint 5 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectcontenthint5.md Demonstrates how to create an object conforming to the CreateProjectContentHint5 type, specifying a blob read-write token and its associated store ID. ```typescript import { CreateProjectContentHint5 } from "@vercel/sdk/models/createprojecttopreset.js"; let value: CreateProjectContentHint5 = { type: "blob-read-write-token", storeId: "", }; ``` -------------------------------- ### Create Drain Secret Drains Response 2 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createdrainsecretdrainsresponse2.md Example of how to create a CreateDrainSecretDrainsResponse2 object in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { CreateDrainSecretDrainsResponse2 } from "@vercel/sdk/models/createdrainop.js"; let value: CreateDrainSecretDrainsResponse2 = { kind: "INTEGRATION_SECRET", }; ``` -------------------------------- ### CreateProjectConfiguration Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectconfiguration.md Demonstrates how to import and use the CreateProjectConfiguration type with a valid value. ```typescript import { CreateProjectConfiguration } from "@vercel/sdk/models/createprojecttopreset.js"; let value: CreateProjectConfiguration = "WAIT_FOR_NAMESPACE_QUEUE"; ``` -------------------------------- ### CreateProjectEnvContentHint12 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectenvcontenthint12.md Demonstrates how to create an instance of CreateProjectEnvContentHint12 with a 'postgres-host' type and a store ID. ```typescript import { CreateProjectEnvContentHint12 } from "@vercel/sdk/models/createprojectenvop.js"; let value: CreateProjectEnvContentHint12 = { type: "postgres-host", storeId: "", }; ``` -------------------------------- ### Get Domain Availability Response Body Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getdomainavailabilityresponsebody.md Example of how to use the GetDomainAvailabilityResponseBody type in TypeScript. This response indicates whether a domain is available. ```typescript import { GetDomainAvailabilityResponseBody } from "@vercel/sdk/models/getdomainavailabilityop.js"; let value: GetDomainAvailabilityResponseBody = { available: false, }; ``` -------------------------------- ### models.RunSessionCommandResponseBody Example Source: https://github.com/vercel/sdk/blob/main/docs/models/runsessioncommandresponse.md Example of a models.RunSessionCommandResponseBody object, including command details like ID, name, arguments, working directory, session ID, exit code, and start time. ```typescript const value: models.RunSessionCommandResponseBody = { command: { id: "cmd_123a6c5209bc3778245d011443644c8d27dc2c50", name: "npm", args: [ "run", "build", ], cwd: "/vercel/sandbox", sessionId: "sbx_123a6c5209bc3778245d011443644c8d27dc2c50", exitCode: 0, startedAt: 1673123456789, }, }; ``` -------------------------------- ### CreateProjectMicrofrontends1 Model Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectmicrofrontends1.md Demonstrates how to instantiate and populate the CreateProjectMicrofrontends1 model. Ensure all required fields are correctly set. ```typescript import { CreateProjectMicrofrontends1 } from "@vercel/sdk/models/createprojecttopreset.js"; let value: CreateProjectMicrofrontends1 = { isDefaultApp: true, updatedAt: 1263.63, groupIds: [ "", "", "", ], enabled: true, }; ``` -------------------------------- ### Get Integration Resources API Source: https://github.com/vercel/sdk/blob/main/docs/sdks/marketplace/README.md Retrieves all resources associated with a specific integration installation. ```APIDOC ## GET /api/integrations/:installationId/resources ### Description Get all resources for a given installation ID. ### Method GET ### Endpoint /api/integrations/:installationId/resources ### Parameters #### Path Parameters - **installationId** (string) - Required - The ID of the integration installation. ### Response #### Success Response (200) - **Array** - A list of resources associated with the integration. ### Errors - **models.SDKError** - Status Code: 4XX, 5XX, Content Type: */* ``` -------------------------------- ### CreateProjectEnvContentHint10 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectenvcontenthint10.md Demonstrates how to create an instance of CreateProjectEnvContentHint10 with the 'postgres-prisma-url' type and a store ID. ```typescript import { CreateProjectEnvContentHint10 } from "@vercel/sdk/models/createprojectenvop.js"; let value: CreateProjectEnvContentHint10 = { type: "postgres-prisma-url", storeId: "", }; ``` -------------------------------- ### Instantiate BuyCreditsConfiguration4 Source: https://github.com/vercel/sdk/blob/main/docs/models/buycreditsconfiguration4.md Example of how to create a BuyCreditsConfiguration4 object. Ensure all required fields are provided. ```typescript import { BuyCreditsConfiguration4 } from "@vercel/sdk/models/buycreditsop.js"; let value: BuyCreditsConfiguration4 = { options: {}, output: { pendingSubscriptionChangeId: "", }, type: "orb_price_interval", }; ``` -------------------------------- ### Initialize ListCommandsResponseBody Source: https://github.com/vercel/sdk/blob/main/docs/models/listcommandsresponsebody.md Example of initializing a ListCommandsResponseBody object in TypeScript. Ensure the '@vercel/sdk' is installed. ```typescript import { ListCommandsResponseBody } from "@vercel/sdk/models/listcommandsop.js"; let value: ListCommandsResponseBody = { commands: [], }; ``` -------------------------------- ### GetMicrofrontendsInGroupSamplingRules Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getmicrofrontendsingroupsamplingrules.md Demonstrates how to import and use the GetMicrofrontendsInGroupSamplingRules type. Ensure the @vercel/sdk is installed. ```typescript import { GetMicrofrontendsInGroupSamplingRules } from "@vercel/sdk/models/getmicrofrontendsingroupresponsebody.js"; let value: GetMicrofrontendsInGroupSamplingRules = { rate: 9911.19, }; ``` -------------------------------- ### Instantiate GetConfigurationProductsUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaProperties2 Source: https://github.com/vercel/sdk/blob/main/docs/models/getconfigurationproductsuidescriptionintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaproperties2.md Demonstrates how to import and instantiate the GetConfigurationProductsUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaProperties2 type. ```typescript import { GetConfigurationProductsUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaProperties2, } from "@vercel/sdk/models/getconfigurationproductspropertiesintegrationsresponse200uicontrol.js"; let value: GetConfigurationProductsUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaProperties2 = { expr: "", }; ``` -------------------------------- ### CreateProjectTo1 Model Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectto1.md Demonstrates how to instantiate the CreateProjectTo1 model with system environment slugs. Ensure slugs are valid production, preview, or custom environment identifiers. ```typescript import { CreateProjectTo1 } from "@vercel/sdk/models/createprojectresponsebody.js"; let value: CreateProjectTo1 = { slugs: [ "", "", "", ], }; ``` -------------------------------- ### CreateFlagSegmentRhsType Usage Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createflagsegmentrhstype.md Demonstrates how to use the CreateFlagSegmentRhsType in TypeScript. Ensure the SDK is installed. ```typescript import { CreateFlagSegmentRhsType } from "@vercel/sdk/models/createflagsegmentop.js"; let value: CreateFlagSegmentRhsType = "list/inline"; ``` ```typescript "list/inline" | "list" ``` -------------------------------- ### Create ConfigurationItems Object Source: https://github.com/vercel/sdk/blob/main/docs/models/configurationitems.md Example of how to instantiate and populate a ConfigurationItems object. Ensure all required fields are provided. ```typescript import { ConfigurationItems } from "@vercel/sdk/models/buycreditsop.js"; let value: ConfigurationItems = { name: "", subtotal: "", type: "renewal", years: 3825.56, }; ``` -------------------------------- ### AddProjectDomainRequestBody Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/addprojectdomainrequestbody.md Example of how to instantiate and use the AddProjectDomainRequestBody in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { AddProjectDomainRequestBody } from "@vercel/sdk/models/addprojectdomainop.js"; let value: AddProjectDomainRequestBody = { name: "www.example.com", gitBranch: null, redirect: "foobar.com", redirectStatusCode: 307, }; ``` -------------------------------- ### Create Project Content Hint 7 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectcontenthint7.md Demonstrates how to create an instance of CreateProjectContentHint7 with the type set to 'blob-webhook-public-key' and a placeholder for the store ID. ```typescript import { CreateProjectContentHint7 } from "@vercel/sdk/models/createprojecttopreset.js"; let value: CreateProjectContentHint7 = { type: "blob-webhook-public-key", storeId: "", }; ``` -------------------------------- ### Instantiate RunSessionCommandRequest Source: https://github.com/vercel/sdk/blob/main/docs/models/runsessioncommandrequest.md Example of how to create an instance of RunSessionCommandRequest with required fields. Ensure the SDK is installed. ```typescript import { RunSessionCommandRequest } from "@vercel/sdk/models/runsessioncommandop.js"; let value: RunSessionCommandRequest = { sessionId: "sbx_abc123", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", }; ``` -------------------------------- ### Initialize Video Model Source: https://github.com/vercel/sdk/blob/main/docs/models/video.md Example of how to import and initialize the Video model with its status. Ensure the status is one of the allowed values. ```typescript import { Video } from "@vercel/sdk/models/getconfigurationproductspropertiesintegrationsresponse200uicontrol.js"; let value: Video = { status: "enabled", }; ``` -------------------------------- ### Microfrontends1 Model Example Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/microfrontends1.md Demonstrates how to import and instantiate the Microfrontends1 model with sample data. Ensure the correct import path is used. ```typescript import { Microfrontends1 } from "@vercel/sdk/models/fluidcpuduration.js"; let value: Microfrontends1 = { isDefaultApp: true, updatedAt: 6954.14, groupIds: [ "", "", "", ], enabled: true, }; ``` -------------------------------- ### Initialize ListPromoteAliasesResponseBody2 Source: https://github.com/vercel/sdk/blob/main/docs/models/listpromotealiasesresponsebody2.md Example of how to initialize and use the ListPromoteAliasesResponseBody2 model. Ensure the '@vercel/sdk' package is installed. ```typescript import { ListPromoteAliasesResponseBody2 } from "@vercel/sdk/models/listpromotealiasesop.js"; let value: ListPromoteAliasesResponseBody2 = { aliases: [ { status: "", alias: "", id: "", }, ], pagination: { count: 20, next: 1540095775951, prev: 1540095775951, }, }; ``` -------------------------------- ### GetMicrofrontendsInGroupConnectConfigurations Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getmicrofrontendsingroupconnectconfigurations.md Demonstrates how to define and initialize a GetMicrofrontendsInGroupConnectConfigurations object. Ensure all required fields are provided. ```typescript import { GetMicrofrontendsInGroupConnectConfigurations } from "@vercel/sdk/models/getmicrofrontendsingroupto2.js"; let value: GetMicrofrontendsInGroupConnectConfigurations = { envId: "production", connectConfigurationId: "", passive: true, buildsEnabled: false, createdAt: 4340.56, updatedAt: 6608.99, }; ``` -------------------------------- ### GetFlagSettingsMetadata Example Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/getflagsettingsmetadata.md Demonstrates how to import and define a GetFlagSettingsMetadata object. Ensure the @vercel/sdk is installed. ```typescript import { GetFlagSettingsMetadata } from "@vercel/sdk/models/getflagsettingsop.js"; let value: GetFlagSettingsMetadata = { activeFlagCount: 219.38, archivedFlagCount: 8572.7, segmentCount: 5024.67, packSizeInBytes: 6187.78, }; ``` -------------------------------- ### GetDeploymentFlagsOptions Example Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/getdeploymentflagsoptions.md Demonstrates how to import and initialize GetDeploymentFlagsOptions. Ensure you have the @vercel/sdk package installed. ```typescript import { GetDeploymentFlagsOptions } from "@vercel/sdk/models/getdeploymentresponsebody.js"; let value: GetDeploymentFlagsOptions = { value: false, }; ``` -------------------------------- ### Microfrontends3 Model Example Source: https://github.com/vercel/sdk/blob/main/docs/models/microfrontends3.md Instantiate the Microfrontends3 model with initial values. Ensure all required fields are provided. ```typescript import { Microfrontends3 } from "@vercel/sdk/models/fluidcpuduration.js"; let value: Microfrontends3 = { updatedAt: 3952.86, groupIds: [ "", ], enabled: false, }; ``` -------------------------------- ### GetConfigurationsRequest Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getconfigurationsrequest.md Demonstrates how to instantiate a GetConfigurationsRequest object in TypeScript. Ensure you have the @vercel/sdk package installed. ```typescript import { GetConfigurationsRequest } from "@vercel/sdk/models/getconfigurationsop.js"; let value: GetConfigurationsRequest = { view: "project", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", }; ``` -------------------------------- ### Instantiate Integration Model Source: https://github.com/vercel/sdk/blob/main/docs/models/integration.md Example of how to import and create an instance of the Integration model. Ensure all required fields are provided. ```typescript import { Integration } from "@vercel/sdk/models/fluidcpuduration.js"; let value: Integration = { id: "", slug: "", name: "", configurationId: "", }; ``` -------------------------------- ### Create Project Env Content Hint Projects10 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectenvcontenthintprojects10.md Demonstrates how to create an instance of the CreateProjectEnvContentHintProjects10 model with the required fields. ```typescript import { CreateProjectEnvContentHintProjects10 } from "@vercel/sdk/models/createprojectenvop.js"; let value: CreateProjectEnvContentHintProjects10 = { type: "postgres-prisma-url", storeId: "", }; ``` -------------------------------- ### ExtendSessionTimeoutRequest Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/extendsessiontimeoutrequest.md Example of how to instantiate and use the ExtendSessionTimeoutRequest model in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { ExtendSessionTimeoutRequest } from "@vercel/sdk/models/extendsessiontimeoutop.js"; let value: ExtendSessionTimeoutRequest = { sessionId: "sbx_abc123", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", }; ``` -------------------------------- ### Instantiate PropertiesUiOptions Source: https://github.com/vercel/sdk/blob/main/docs/models/propertiesuioptions.md Example of how to import and create a PropertiesUiOptions object. Ensure the necessary import from '@vercel/sdk' is included. ```typescript import { PropertiesUiOptions } from "@vercel/sdk/models/getconfigurationproductsresponsebody.js"; let value: PropertiesUiOptions = { value: "", label: "", }; ``` -------------------------------- ### CreateProjectCheckRequestBody Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectcheckrequestbody.md Demonstrates how to import and use the CreateProjectCheckRequestBody type in TypeScript. Ensure the SDK is installed. ```typescript import { CreateProjectCheckRequestBody } from "@vercel/sdk/models/createprojectcheckop.js"; let value: CreateProjectCheckRequestBody = { name: "", }; ``` -------------------------------- ### TypeScript Usage Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschemaproperties3.md Demonstrates how to use the CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3 type in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3, } from "@vercel/sdk/models/createintegrationstoredirecthiddenintegrations1.js"; let value: CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaProperties3 = "create"; ``` -------------------------------- ### Creating a NewOwner Object Source: https://github.com/vercel/sdk/blob/main/docs/models/newowner.md Demonstrates how to instantiate and populate a NewOwner object with sample data. Ensure all required fields are correctly formatted. ```typescript import { NewOwner } from "@vercel/sdk/models/usereventjobpayload768deployhook.js"; let value: NewOwner = { billing: { plan: "enterprise", }, blocked: 2032.11, createdAt: 7132.6, deploymentSecret: "", email: "Terrance.Gerhold88@yahoo.com", id: "", platformVersion: 9859.9, stagingPrefix: "", sysToken: "", type: "user", username: "Yvonne21", updatedAt: 2827.52, version: "northstar", }; ``` -------------------------------- ### CreateDeploymentMicrofrontends1 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createdeploymentmicrofrontends1.md Example of how to instantiate the CreateDeploymentMicrofrontends1 model. Ensure you import the type from '@vercel/sdk/models/createdeploymentresponsebody.js'. ```typescript import { CreateDeploymentMicrofrontends1 } from "@vercel/sdk/models/createdeploymentresponsebody.js"; let value: CreateDeploymentMicrofrontends1 = { defaultAppProjectName: "", groupIds: [ "", "", ], }; ``` -------------------------------- ### TypeScript Usage Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema11type.md Demonstrates how to import and use the CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11Type in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11Type, } from "@vercel/sdk/models/createintegrationstoredirecthiddenintegrations1.js"; let value: CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema11Type = "string"; ``` -------------------------------- ### Create Installations by Integration Configuration ID Resources by Resource ID Experimentation Items Source: https://github.com/vercel/sdk/blob/main/docs/models/createinstallationsbyintegrationconfigurationidresourcesbyresourceidexperimentationitemsrequest.md This section details the fields required for creating installations via integration configuration ID and resource ID, specifically for experimentation items. ```APIDOC ## POST /vercel/sdk/installations ### Description Creates installations by integration configuration ID and resource ID for experimentation items. ### Method POST ### Endpoint /vercel/sdk/installations ### Parameters #### Request Body - **integrationConfigurationId** (string) - Required - The ID of the integration configuration. - **resourceId** (string) - Required - The ID of the resource. - **requestBody** (models.CreateInstallationsByIntegrationConfigurationIdResourcesByResourceIdExperimentationItemsRequestBody) - Optional - The request body for creating experimentation items. ``` -------------------------------- ### Instantiate ArtifactQueryResponseBody1 Source: https://github.com/vercel/sdk/blob/main/docs/models/artifactqueryresponsebody1.md Example of how to import and create an instance of ArtifactQueryResponseBody1. Ensure the @vercel/sdk package is installed. ```typescript import { ArtifactQueryResponseBody1 } from "@vercel/sdk/models/artifactqueryop.js"; let value: ArtifactQueryResponseBody1 = { size: 9376, taskDurationMs: 4731.02, }; ``` -------------------------------- ### Instantiate GetConfigurationProductsPropertiesItems Source: https://github.com/vercel/sdk/blob/main/docs/models/getconfigurationproductspropertiesitems.md Demonstrates how to import and instantiate the GetConfigurationProductsPropertiesItems type. Ensure the correct import path is used. ```typescript import { GetConfigurationProductsPropertiesItems } from "@vercel/sdk/models/getconfigurationproductspropertiesintegrationsresponse200uicontrol.js"; let value: GetConfigurationProductsPropertiesItems = { type: "string", }; ``` -------------------------------- ### AddProjectDomainRequest Example Source: https://github.com/vercel/sdk/blob/main/docs/models/addprojectdomainrequest.md Demonstrates how to instantiate and use the AddProjectDomainRequest model in TypeScript. Ensure the SDK is installed. ```typescript import { AddProjectDomainRequest } from "@vercel/sdk/models/addprojectdomainop.js"; let value: AddProjectDomainRequest = { idOrName: "", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", requestBody: { name: "www.example.com", gitBranch: null, redirect: "foobar.com", redirectStatusCode: 307, }, }; ``` -------------------------------- ### CreateProjectLint Model Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectlint.md Demonstrates how to import and instantiate the CreateProjectLint model with target values. ```typescript import { CreateProjectLint } from "@vercel/sdk/models/createprojecttopreset.js"; let value: CreateProjectLint = { targets: [ "", "", "", ], }; ``` -------------------------------- ### TypeScript Example Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/usereventpayload324geolocationmostspecificsubdivisionnames.md Demonstrates how to import and initialize UserEventPayload324GeolocationMostSpecificSubdivisionNames in TypeScript. Ensure the '@vercel/sdk' package is installed. ```typescript import { UserEventPayload324GeolocationMostSpecificSubdivisionNames } from "@vercel/sdk/models/enabled.js"; let value: UserEventPayload324GeolocationMostSpecificSubdivisionNames = { en: "", }; ``` -------------------------------- ### Instantiate UserEventPayload291Team Source: https://github.com/vercel/sdk/blob/main/docs/models/usereventpayload291team.md Example of how to import and create a UserEventPayload291Team object in TypeScript. Ensure you have the @vercel/sdk package installed. ```typescript import { UserEventPayload291Team } from "@vercel/sdk/models/budget.js"; let value: UserEventPayload291Team = { id: "", name: "", }; ``` -------------------------------- ### models.GetProjectsMicrofrontends1 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getprojectsresponsebodymicrofrontends.md Represents a default microfrontend configuration. Ensure all required fields are provided. ```typescript const value: models.GetProjectsMicrofrontends1 = { isDefaultApp: true, updatedAt: 7627.68, groupIds: [ "", "", ], enabled: true, }; ``` -------------------------------- ### TypeScript Example for GetProjectsContentHint5 Source: https://github.com/vercel/sdk/blob/main/docs/models/getprojectscontenthint5.md Demonstrates how to import and use the GetProjectsContentHint5 type to create a configuration object for blob read-write access. ```typescript import { GetProjectsContentHint5 } from "@vercel/sdk/models/responsebodypasswordprotection.js"; let value: GetProjectsContentHint5 = { type: "blob-read-write-token", storeId: "", }; ``` -------------------------------- ### UpdateProjectBlockHistory1 Example Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/updateprojectblockhistory1.md Demonstrates how to import and use the UpdateProjectBlockHistory1 model in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { UpdateProjectBlockHistory1 } from "@vercel/sdk/models/updateprojectresponsebody.js"; let value: UpdateProjectBlockHistory1 = { action: "blocked", reason: "", statusCode: 9457.82, createdAt: 6178.34, }; ``` -------------------------------- ### Initialize OptionsAllowlist Source: https://github.com/vercel/sdk/blob/main/docs/models/optionsallowlist.md Demonstrates how to import and initialize the OptionsAllowlist model with a basic path configuration. Ensure the correct import path is used. ```typescript import { OptionsAllowlist } from "@vercel/sdk/models/usereventpayloadorigin.js"; let value: OptionsAllowlist = { paths: [ { value: "", }, ], }; ``` -------------------------------- ### TypeScript Example for UpdateMicrofrontendsBlockHistory1 Source: https://github.com/vercel/sdk/blob/main/docs/models/updatemicrofrontendsblockhistory1.md Demonstrates how to import and use the UpdateMicrofrontendsBlockHistory1 type in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { UpdateMicrofrontendsBlockHistory1 } from "@vercel/sdk/models/updatemicrofrontendsresponsebody.js"; let value: UpdateMicrofrontendsBlockHistory1 = { action: "blocked", reason: "", statusCode: 8310.26, createdAt: 1224.12, }; ``` -------------------------------- ### GetProjectsLinkProjectsResponse2 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/getprojectslinkprojectsresponse2.md Demonstrates how to define and initialize a GetProjectsLinkProjectsResponse2 object. Ensure the necessary import is included. ```typescript import { GetProjectsLinkProjectsResponse2 } from "@vercel/sdk/models/getprojectsresponsebodyprojectsaibots.js"; let value: GetProjectsLinkProjectsResponse2 = { type: "github-limited", org: "", deployHooks: [ { id: "", name: "", ref: "", url: "https://doting-reconsideration.biz/", }, ], gitCredentialId: "", productionBranch: "", }; ``` -------------------------------- ### Initialize UpdateCustomEnvironmentRequestBody Source: https://github.com/vercel/sdk/blob/main/docs/models/updatecustomenvironmentrequestbody.md Example of how to import and initialize an empty UpdateCustomEnvironmentRequestBody object in TypeScript. Ensure the SDK is installed. ```typescript import { UpdateCustomEnvironmentRequestBody } from "@vercel/sdk/models/updatecustomenvironmentop.js"; let value: UpdateCustomEnvironmentRequestBody = {}; ``` -------------------------------- ### StageRedirectsResponseBody Example Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/stageredirectsresponsebody.md Demonstrates how to import and use the StageRedirectsResponseBody type in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { StageRedirectsResponseBody } from "@vercel/sdk/models/stageredirectsop.js"; let value: StageRedirectsResponseBody = { alias: "", version: { id: "", key: "", lastModified: 4066.68, createdBy: "", }, }; ``` -------------------------------- ### CreateProjectEnvContentHint15 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectenvcontenthint15.md Demonstrates how to create an instance of CreateProjectEnvContentHint15 with the 'postgres-url-no-ssl' type and a store ID. ```typescript import { CreateProjectEnvContentHint15 } from "@vercel/sdk/models/createprojectenvop.js"; let value: CreateProjectEnvContentHint15 = { type: "postgres-url-no-ssl", storeId: "", }; ``` -------------------------------- ### TypeScript Example: UpdateMicrofrontendsTo1 Source: https://github.com/vercel/sdk/blob/main/docs/models/updatemicrofrontendsto1.md Demonstrates how to instantiate the UpdateMicrofrontendsTo1 model with environment slugs. Ensure the slugs correspond to valid system or custom environment names. ```typescript import { UpdateMicrofrontendsTo1 } from "@vercel/sdk/models/updatemicrofrontendsmanagedrules.js"; let value: UpdateMicrofrontendsTo1 = { slugs: [ "", "", ], }; ``` -------------------------------- ### MoveProjectDomainRequest Example Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/moveprojectdomainrequest.md Demonstrates how to instantiate a MoveProjectDomainRequest object in TypeScript. Ensure you have the '@vercel/sdk' package installed. ```typescript import { MoveProjectDomainRequest } from "@vercel/sdk/models/moveprojectdomainop.js"; let value: MoveProjectDomainRequest = { idOrName: "", domain: "www.example.com", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", }; ``` -------------------------------- ### Initialize Bandwidth Model Source: https://github.com/vercel/sdk/blob/main/docs/models/bandwidth.md Demonstrates how to import and initialize the Bandwidth model with a current threshold. Ensure the Bandwidth type is correctly imported from the SDK. ```typescript import { Bandwidth } from "@vercel/sdk/models/fluidcpuduration.js"; let value: Bandwidth = { currentThreshold: 444.65, }; ``` -------------------------------- ### TypeScript Example of ListTeamFlagsResponseBody Source: https://github.com/vercel/sdk/blob/main/docs/models/listteamflagsresponsebody.md Demonstrates how to use the ListTeamFlagsResponseBody type in TypeScript. Ensure you have the '@vercel/sdk' package installed. ```typescript import { ListTeamFlagsResponseBody } from "@vercel/sdk/models/listteamflagsop.js"; let value: ListTeamFlagsResponseBody = { data: [ { variants: [ {}, ], id: "", environments: { "key": { pausedOutcome: { type: "variant", variantId: "", }, fallthrough: { type: "split", base: { type: "entity", kind: "", attribute: "", }, weights: { "key": 167.7, }, defaultVariantId: "", }, active: true, rules: [ { id: "", outcome: { type: "rollout", base: { type: "entity", kind: "", attribute: "", }, defaultVariantId: "", startTimestamp: 5347.28, rollFromVariantId: "", rollToVariantId: "", slots: [], }, conditions: [], }, ], }, }, kind: "boolean", revision: 3263.96, seed: 432.41, state: "active", slug: "", createdAt: 9407.97, updatedAt: 9157.74, createdBy: "", ownerId: "", projectId: "", typeName: "flag", }, ], pagination: { next: "", }, }; ``` -------------------------------- ### Initialize ConfigurationOptions Source: https://github.com/vercel/sdk/blob/main/docs/models/configurationoptions.md Use this to set up configuration options for purchases, including items and order ID. Ensure all required fields are provided. ```typescript import { ConfigurationOptions } from "@vercel/sdk/models/buycreditsop.js"; let value: ConfigurationOptions = { items: [ { name: "", subtotal: "", type: "renewal", years: 3018.53, }, ], orderId: "", }; ``` -------------------------------- ### Instantiate ListFlagVersionsOutcome2 Source: https://github.com/vercel/sdk/blob/main/docs/models/listflagversionsoutcome2.md Example of how to create an instance of the ListFlagVersionsOutcome2 model in TypeScript. Ensure the '@vercel/sdk' package is installed. ```typescript import { ListFlagVersionsOutcome2 } from "@vercel/sdk/models/listflagversionsop.js"; let value: ListFlagVersionsOutcome2 = { type: "split", base: { type: "entity", kind: "", attribute: "", }, weights: { "key": 2789.66, }, defaultVariantId: "", }; ``` -------------------------------- ### Initialize GetVersionsResponseBody Source: https://github.com/vercel/sdk/blob/main/docs/models/getversionsresponsebody.md Example of how to import and initialize a GetVersionsResponseBody object in TypeScript. Ensure the @vercel/sdk package is installed. ```typescript import { GetVersionsResponseBody } from "@vercel/sdk/models/getversionsop.js"; let value: GetVersionsResponseBody = { versions: [], }; ``` -------------------------------- ### CreateProjectEnvContentHint6 Example Source: https://github.com/vercel/sdk/blob/main/docs/models/createprojectenvcontenthint6.md Demonstrates how to create an instance of CreateProjectEnvContentHint6, specifying the environment variable type and its associated store ID. ```typescript import { CreateProjectEnvContentHint6 } from "@vercel/sdk/models/createprojectenvop.js"; let value: CreateProjectEnvContentHint6 = { type: "blob-store-id", storeId: "", }; ``` -------------------------------- ### Instantiate BuyCreditsChangedResources1 Source: https://github.com/vercel/sdk/blob/main/docs/models/buycreditschangedresources1.md Example of how to create an instance of the BuyCreditsChangedResources1 model. Ensure all required fields are provided. ```typescript import { BuyCreditsChangedResources1 } from "@vercel/sdk/models/buycreditsop.js"; let value: BuyCreditsChangedResources1 = { productAlias: "", productId: "", quantity: 7329.2, type: "set_plan_item_quantity", }; ``` -------------------------------- ### GetTldPriceResponseBody Example Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/gettldpriceresponsebody.md Demonstrates how to import and use the GetTldPriceResponseBody type in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { GetTldPriceResponseBody } from "@vercel/sdk/models/gettldpriceop.js"; let value: GetTldPriceResponseBody = { years: 1341.28, purchasePrice: "", renewalPrice: "", transferPrice: 5324.89, }; ``` -------------------------------- ### TypeScript Example of GetSessionSnapshotResponseBody Source: https://github.com/vercel/sdk/blob/main/docs/models/getsessionsnapshotresponsebody.md Demonstrates how to define and use the GetSessionSnapshotResponseBody type in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { GetSessionSnapshotResponseBody } from "@vercel/sdk/models/getsessionsnapshotop.js"; let value: GetSessionSnapshotResponseBody = { snapshot: { id: "snap_123a6c5209bc3778245d011443644c8d27dc2c50", sourceSessionId: "sbx_123a6c5209bc3778245d011443644c8d27dc2c50", region: "iad1", status: "created", sizeBytes: 104857600, expiresAt: 1750344501629, createdAt: 1750344501629, updatedAt: 1750344501629, lastUsedAt: 1750344501629, creationMethod: "manual", parentId: "snap_parent123", }, }; ``` -------------------------------- ### Billing2 Example Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/billing2.md Demonstrates how to instantiate and populate the Billing2 object with item details. Ensure all required fields are provided. ```typescript import { Billing2 } from "@vercel/sdk/models/submitbillingdataop.js"; let value: Billing2 = { items: [ { billingPlanId: "", name: "", price: "582.69", quantity: 3786.44, units: "", total: "", }, ], }; ``` -------------------------------- ### Instantiate BuyCreditsConfigurationOutput Source: https://github.com/vercel/sdk/blob/main/docs/models/buycreditsconfigurationoutput.md Example of how to import and instantiate the BuyCreditsConfigurationOutput model with a pendingSubscriptionChangeId. ```typescript import { BuyCreditsConfigurationOutput } from "@vercel/sdk/models/buycreditsop.js"; let value: BuyCreditsConfigurationOutput = { pendingSubscriptionChangeId: "", }; ``` -------------------------------- ### TypeScript: GetSandboxesV2Pagination Model Usage Source: https://github.com/vercel/sdk/blob/main/docs/models/getsandboxesv2pagination.md Example of how to use the GetSandboxesV2Pagination model in TypeScript. Ensure the @vercel/sdk is installed. ```typescript import { GetSandboxesV2Pagination } from "@vercel/sdk/models/getsandboxesv2op.js"; let value: GetSandboxesV2Pagination = { count: 6359.44, next: "", }; ```