creem

1.5.4 Not latest — view latest

Developer-friendly & type-safe Typescript SDK specifically catered to leverage _creem_ API.

License
Unknown license
Published
July 15, 2026
40d ago
Package Registry
README badge Customize →
License Sources
SourceLicenseClass
Licensie (detected)
Pending-
npm (reported)
Not reported-

License detection is still in progress for this version.

Loading dependencies…
License File
"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.LicenseEntity$outboundSchema = exports.LicenseEntity$inboundSchema = exports.Instance$outboundSchema = exports.Instance$inboundSchema = exports.LicenseEntityStatus$outboundSchema = exports.LicenseEntityStatus$inboundSchema = exports.LicenseEntityStatus = void 0;
exports.instanceToJSON = instanceToJSON;
exports.instanceFromJSON = instanceFromJSON;
exports.licenseEntityToJSON = licenseEntityToJSON;
exports.licenseEntityFromJSON = licenseEntityFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const environmentmode_js_1 = require("./environmentmode.js");
const licensestatus_js_1 = require("./licensestatus.js");
/**
 * The status of the license instance.
 */
exports.LicenseEntityStatus = {
    Active: "active",
    Deactivated: "deactivated",
};
/** @internal */
exports.LicenseEntityStatus$inboundSchema = z.nativeEnum(exports.LicenseEntityStatus);
/** @internal */
exports.LicenseEntityStatus$outboundSchema = exports.LicenseEntityStatus$inboundSchema;
/** @internal */
exports.Instance$inboundSchema = z.object({
    id: z.string(),
    mode: environmentmode_js_1.EnvironmentMode$inboundSchema,
    object: z.string(),
    name: z.string(),
    status: exports.LicenseEntityStatus$inboundSchema,
    created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "created_at": "createdAt",
    });
});
/** @internal */
exports.Instance$outboundSchema = z.object({
    id: z.string(),
    mode: environmentmode_js_1.EnvironmentMode$outboundSchema,
    object: z.string(),
    name: z.string(),
    status: exports.LicenseEntityStatus$outboundSchema,
    createdAt: z.date().transform(v => v.toISOString()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        createdAt: "created_at",
    });
});
function instanceToJSON(instance) {
    return JSON.stringify(exports.Instance$outboundSchema.parse(instance));
}
function instanceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Instance$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Instance' from JSON`);
}
/** @internal */
exports.LicenseEntity$inboundSchema = z.object({
    id: z.string(),
    mode: environmentmode_js_1.EnvironmentMode$inboundSchema,
    object: z.string(),
    product_id: z.string(),
    status: licensestatus_js_1.LicenseStatus$inboundSchema,
    key: z.string(),
    activation: z.number(),
    activation_limit: z.nullable(z.number()).optional(),
    expires_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
    instance: z.nullable(z.lazy(() => exports.Instance$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "product_id": "productId",
        "activation_limit": "activationLimit",
        "expires_at": "expiresAt",
        "created_at": "createdAt",
    });
});
/** @internal */
exports.LicenseEntity$outboundSchema = z.object({
    id: z.string(),
    mode: environmentmode_js_1.EnvironmentMode$outboundSchema,
    object: z.string(),
    productId: z.string(),
    status: licensestatus_js_1.LicenseStatus$outboundSchema,
    key: z.string(),
    activation: z.number(),
    activationLimit: z.nullable(z.number()).optional(),
    expiresAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    createdAt: z.date().transform(v => v.toISOString()),
    instance: z.nullable(z.lazy(() => exports.Instance$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        productId: "product_id",
        activationLimit: "activation_limit",
        expiresAt: "expires_at",
        createdAt: "created_at",
    });
});
function licenseEntityToJSON(licenseEntity) {
    return JSON.stringify(exports.LicenseEntity$outboundSchema.parse(licenseEntity));
}
function licenseEntityFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LicenseEntity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LicenseEntity' from JSON`);
}
//# sourceMappingURL=licenseentity.js.map
Versions
3 versions
VersionLicensePublishedStatus
1.6.0 Latest -Jul 21, 2026 Pending
1.5.4 Viewing-Jul 15, 2026 Pending
1.5.3 -Jun 30, 2026 Pending