UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

16 lines 971 B
import { __rest } from "tslib"; import { GenericAPIFn } from "../GenericAPIFn"; export function ExternalAPIGroup_2_0(instance) { const self = instance; return { createAuthenticatedAmazonUser: (args, options) => GenericAPIFn("/new/v2.0/external/alexa/users", "POST", self)(args, options), deleteAmazonAccount: (options) => GenericAPIFn("/new/v2.0/external/alexa/users/me", "DELETE", self)(undefined, options), deployAlexaEndpoint: (_a, options) => { var { skillId } = _a, args = __rest(_a, ["skillId"]); return GenericAPIFn(`/new/v2.0/external/alexa/skills/${skillId}/deploy`, "POST", self)(args, options); }, getAlexaSkills: (options) => GenericAPIFn("/new/v2.0/external/alexa/skills", "GET", self)(undefined, options), getAmazonAccount: (options) => GenericAPIFn("/new/v2.0/external/alexa/users/me", "GET", self)(undefined, options) }; } //# sourceMappingURL=ExternalAPIGroup_2_0.js.map