UNPKG

@unkey/api

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.

42 lines 1.65 kB
"use strict"; /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Internal = void 0; const internalCreateDeployment_js_1 = require("../funcs/internalCreateDeployment.js"); const internalGetDeployment_js_1 = require("../funcs/internalGetDeployment.js"); const sdks_js_1 = require("../lib/sdks.js"); const fp_js_1 = require("../types/fp.js"); class Internal extends sdks_js_1.ClientSDK { /** * Create deployment * * @remarks * **INTERNAL** - This endpoint is internal and may change without notice. * Not recommended for production use. * * Creates a new deployment for a project using either a pre-built Docker image or build context. * * **Authentication**: Requires a valid root key with appropriate permissions. */ async createDeployment(request, options) { return (0, fp_js_1.unwrapAsync)((0, internalCreateDeployment_js_1.internalCreateDeployment)(this, request, options)); } /** * Get deployment * * @remarks * **INTERNAL** - This endpoint is internal and may change without notice. * Not recommended for production use. * * Retrieves deployment information including status, error messages, and steps. * * **Authentication**: Requires a valid root key with appropriate permissions. */ async getDeployment(request, options) { return (0, fp_js_1.unwrapAsync)((0, internalGetDeployment_js_1.internalGetDeployment)(this, request, options)); } } exports.Internal = Internal; //# sourceMappingURL=internal.js.map