@tailor-platform/sdk 1.50.1 → 1.51.1
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/CHANGELOG.md +60 -0
- package/README.md +1 -0
- package/agent-skills/tailor-sdk/SKILL.md +2 -0
- package/dist/{actor-BeIEiPYM.d.mts → actor-Nag62ZDM.d.mts} +2 -3
- package/dist/application-Bcx-FbDE.mjs +4 -0
- package/dist/{application-CZMzt9jL.mjs → application-Z-fNwyZB.mjs} +50 -14
- package/dist/application-Z-fNwyZB.mjs.map +1 -0
- package/dist/authconnection-BDFTabLQ.d.mts +39 -0
- package/dist/authconnection-BUko4V6H.mjs +16 -0
- package/dist/authconnection-BUko4V6H.mjs.map +1 -0
- package/dist/{brand-D-d15jx3.mjs → brand-Ll48SMXe.mjs} +1 -1
- package/dist/{brand-D-d15jx3.mjs.map → brand-Ll48SMXe.mjs.map} +1 -1
- package/dist/chunk-DLeslSnM.mjs +21 -0
- package/dist/cli/index.d.mts +0 -1
- package/dist/cli/index.mjs +16 -16
- package/dist/cli/lib.d.mts +6 -7
- package/dist/cli/lib.mjs +8 -8
- package/dist/cli/skills.d.mts +0 -1
- package/dist/cli/skills.mjs +1 -1
- package/dist/{client-_kHh0Pip.mjs → client-BwV17byk.mjs} +4 -4
- package/dist/{client-_kHh0Pip.mjs.map → client-BwV17byk.mjs.map} +1 -1
- package/dist/{client-CPW1N1Rs.mjs → client-D_a50aIg.mjs} +1 -1
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +4 -4
- package/dist/configure/index.mjs.map +1 -1
- package/dist/context-BP5BUdcq.mjs +25 -0
- package/dist/context-BP5BUdcq.mjs.map +1 -0
- package/dist/context-BXDgEQK9.d.mts +68 -0
- package/dist/{crashreport-DHJuSmUc.mjs → crashreport-C4EbRoku.mjs} +1 -1
- package/dist/{crashreport-CvmdFs4i.mjs → crashreport-DauPOrKn.mjs} +5 -5
- package/dist/{crashreport-CvmdFs4i.mjs.map → crashreport-DauPOrKn.mjs.map} +1 -1
- package/dist/{enum-constants-C3KSpsYj.mjs → enum-constants-DI85-fPE.mjs} +1 -1
- package/dist/{enum-constants-C3KSpsYj.mjs.map → enum-constants-DI85-fPE.mjs.map} +1 -1
- package/dist/{errors-pMPXghkO.mjs → errors-C4cJ0M2K.mjs} +1 -1
- package/dist/{errors-pMPXghkO.mjs.map → errors-C4cJ0M2K.mjs.map} +1 -1
- package/dist/{field-DLSIuMTu.mjs → field-BY2vbJ8f.mjs} +1 -1
- package/dist/{field-DLSIuMTu.mjs.map → field-BY2vbJ8f.mjs.map} +1 -1
- package/dist/file-BE5Sy7lP.mjs +54 -0
- package/dist/file-BE5Sy7lP.mjs.map +1 -0
- package/dist/file-Dc4_QrlQ.d.mts +206 -0
- package/dist/{file-utils-DjNi_3U_.mjs → file-utils-BM8t5jCy.mjs} +20 -10
- package/dist/file-utils-BM8t5jCy.mjs.map +1 -0
- package/dist/iconv-BFNfdlIS.d.mts +122 -0
- package/dist/iconv-D0yL88Il.mjs +64 -0
- package/dist/iconv-D0yL88Il.mjs.map +1 -0
- package/dist/idp-B1b4O7ia.d.mts +161 -0
- package/dist/idp-CM7N7iID.mjs +76 -0
- package/dist/idp-CM7N7iID.mjs.map +1 -0
- package/dist/{index-C--7W0UO.d.mts → index-BD99GoHO.d.mts} +4 -5
- package/dist/{index-nV4ZC_Ve.d.mts → index-BXwAT_oE.d.mts} +2 -3
- package/dist/{index-BQ4oi0AI.d.mts → index-CYAZkd4b.d.mts} +2 -3
- package/dist/{index-BjXN1SdY.d.mts → index-CfSjuxzK.d.mts} +2 -3
- package/dist/index-Dy3ZH5Wm.d.mts +46 -0
- package/dist/{index-VJW98BSy.d.mts → index-aiIbrFGw.d.mts} +2 -3
- package/dist/{interceptor-DTNS0EtF.mjs → interceptor-Cr3kZWMc.mjs} +1 -1
- package/dist/{interceptor-DTNS0EtF.mjs.map → interceptor-Cr3kZWMc.mjs.map} +1 -1
- package/dist/{job-M3Avv_SV.mjs → job-4GOnasfT.mjs} +2 -2
- package/dist/{job-M3Avv_SV.mjs.map → job-4GOnasfT.mjs.map} +1 -1
- package/dist/kysely/index.d.mts +0 -1
- package/dist/{kysely-type-B8aRz_oC.mjs → kysely-type-BUoVDC5r.mjs} +2 -2
- package/dist/{kysely-type-B8aRz_oC.mjs.map → kysely-type-BUoVDC5r.mjs.map} +1 -1
- package/dist/{logger-DTNAMYGy.mjs → logger-B1g4I9wT.mjs} +1 -1
- package/dist/{logger-DTNAMYGy.mjs.map → logger-B1g4I9wT.mjs.map} +1 -1
- package/dist/{mock-BfL09ULZ.mjs → mock-B2t5gDMl.mjs} +11 -5
- package/dist/mock-B2t5gDMl.mjs.map +1 -0
- package/dist/{multiline-e3IpANmS.mjs → multiline-G1yF18OH.mjs} +1 -1
- package/dist/{multiline-e3IpANmS.mjs.map → multiline-G1yF18OH.mjs.map} +1 -1
- package/dist/package-json-CAGKAJff.mjs +4 -0
- package/dist/{package-json-6Px8bDpG.mjs → package-json-ZL0MkZOO.mjs} +1 -1
- package/dist/{package-json-6Px8bDpG.mjs.map → package-json-ZL0MkZOO.mjs.map} +1 -1
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -2
- package/dist/plugin/builtin/enum-constants/index.mjs +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -2
- package/dist/plugin/builtin/file-utils/index.mjs +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -2
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -2
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/index.d.mts +2 -3
- package/dist/{repl-editor-jZ493eQI.mjs → repl-editor-yAjwS5_M.mjs} +1 -1
- package/dist/{repl-editor-jZ493eQI.mjs.map → repl-editor-yAjwS5_M.mjs.map} +1 -1
- package/dist/runtime/authconnection.d.mts +2 -0
- package/dist/runtime/authconnection.mjs +4 -0
- package/dist/runtime/context.d.mts +2 -0
- package/dist/runtime/context.mjs +4 -0
- package/dist/runtime/file.d.mts +2 -0
- package/dist/runtime/file.mjs +4 -0
- package/dist/runtime/globals.d.mts +103 -0
- package/dist/runtime/globals.mjs +2 -0
- package/dist/runtime/iconv.d.mts +2 -0
- package/dist/runtime/iconv.mjs +4 -0
- package/dist/runtime/idp.d.mts +2 -0
- package/dist/runtime/idp.mjs +4 -0
- package/dist/runtime/index.d.mts +9 -0
- package/dist/runtime/index.mjs +10 -0
- package/dist/runtime/secretmanager.d.mts +2 -0
- package/dist/runtime/secretmanager.mjs +4 -0
- package/dist/runtime/workflow.d.mts +2 -0
- package/dist/runtime/workflow.mjs +4 -0
- package/dist/{runtime-DgsMnMrO.mjs → runtime-CyX4zeod.mjs} +55 -32
- package/dist/runtime-CyX4zeod.mjs.map +1 -0
- package/dist/{schema-C5QjYEc-.mjs → schema-DBq6hr6h.mjs} +3 -3
- package/dist/{schema-C5QjYEc-.mjs.map → schema-DBq6hr6h.mjs.map} +1 -1
- package/dist/{secret-file-BHpxGyNf.mjs → secret-file-DnbmTWec.mjs} +1 -1
- package/dist/{secret-file-BHpxGyNf.mjs.map → secret-file-DnbmTWec.mjs.map} +1 -1
- package/dist/secretmanager-CQTTuCmn.mjs +25 -0
- package/dist/secretmanager-CQTTuCmn.mjs.map +1 -0
- package/dist/secretmanager-Cjq3s2aU.d.mts +55 -0
- package/dist/seed/index.d.mts +0 -1
- package/dist/{seed-DjfAn0BC.mjs → seed-kNk-xLoB.mjs} +7 -2
- package/dist/{seed-DjfAn0BC.mjs.map → seed-kNk-xLoB.mjs.map} +1 -1
- package/dist/{service-DCgJxdg1.mjs → service-DHgJ4YEF.mjs} +3 -3
- package/dist/{service-DCgJxdg1.mjs.map → service-DHgJ4YEF.mjs.map} +1 -1
- package/dist/{tailor-db-field-4bMLe25-.d.mts → tailor-db-field-BhWvOyky.d.mts} +1 -2
- package/dist/{telemetry-C1Y56L5E.mjs → telemetry-C8xKz3GM.mjs} +2 -2
- package/dist/{telemetry-C1Y56L5E.mjs.map → telemetry-C8xKz3GM.mjs.map} +1 -1
- package/dist/telemetry-DQl47E1s.mjs +4 -0
- package/dist/types-BnphjkIJ.mjs +5 -0
- package/dist/{types-sir9UPht.mjs → types-Duhhsx3R.mjs} +2 -2
- package/dist/{types-sir9UPht.mjs.map → types-Duhhsx3R.mjs.map} +1 -1
- package/dist/utils/test/index.d.mts +3 -4
- package/dist/utils/test/index.mjs +1 -1
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/vitest/environment.d.mts +0 -1
- package/dist/vitest/environment.mjs +1 -1
- package/dist/vitest/index.d.mts +2 -3
- package/dist/vitest/index.mjs +3 -3
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/setup.d.mts +0 -1
- package/dist/vitest/setup.mjs +1 -1
- package/dist/workflow-DJRr-0nl.mjs +39 -0
- package/dist/workflow-DJRr-0nl.mjs.map +1 -0
- package/dist/workflow-DV_88JEf.d.mts +96 -0
- package/dist/{workflow.generated-OYAu_6zX.d.mts → workflow.generated-DV87DJfO.d.mts} +2 -3
- package/docs/cli/application.md +1 -1
- package/docs/cli/tailordb.md +9 -8
- package/docs/cli-reference.md +17 -16
- package/docs/configuration.md +1 -0
- package/docs/generator/builtin.md +2 -0
- package/docs/runtime.md +113 -0
- package/docs/testing.md +21 -0
- package/package.json +53 -9
- package/dist/application-CZMzt9jL.mjs.map +0 -1
- package/dist/application-v_E2W-Fz.mjs +0 -4
- package/dist/file-utils-DjNi_3U_.mjs.map +0 -1
- package/dist/mock-BfL09ULZ.mjs.map +0 -1
- package/dist/package-json-7sRXVndJ.mjs +0 -4
- package/dist/runtime-DgsMnMrO.mjs.map +0 -1
- package/dist/telemetry-C13VIFpT.mjs +0 -4
- package/dist/types-DoIG6Nij.mjs +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { t as multiline } from "./multiline-
|
|
2
|
+
import { t as multiline } from "./multiline-G1yF18OH.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/builtin/file-utils/generate-file-utils.ts
|
|
5
5
|
/**
|
|
@@ -16,12 +16,22 @@ function generateUnifiedFileUtils(namespaceData) {
|
|
|
16
16
|
typeFieldsMap.set(type.name, type.fileFields);
|
|
17
17
|
}
|
|
18
18
|
if (typeNamespaceMap.size === 0) return "";
|
|
19
|
+
const interfaceFields = Array.from(typeFieldsMap.entries()).map(([typeName, fields]) => {
|
|
20
|
+
return ` ${typeName}: {\n fields: ${fields.map((field) => `"${field}"`).join(" | ")};\n };`;
|
|
21
|
+
}).join("\n");
|
|
19
22
|
return [
|
|
20
23
|
multiline`
|
|
24
|
+
import * as file from "@tailor-platform/sdk/runtime/file";
|
|
25
|
+
import type {
|
|
26
|
+
FileUploadOptions,
|
|
27
|
+
FileUploadResponse,
|
|
28
|
+
FileMetadata,
|
|
29
|
+
FileStreamIterator,
|
|
30
|
+
} from "@tailor-platform/sdk/runtime/file";
|
|
31
|
+
` + "\n",
|
|
32
|
+
multiline`
|
|
21
33
|
export interface TypeWithFiles {
|
|
22
|
-
${
|
|
23
|
-
return ` ${typeName}: {\n fields: ${fields.map((field) => `"${field}"`).join(" | ")};\n };`;
|
|
24
|
-
}).join("\n")}
|
|
34
|
+
${interfaceFields}
|
|
25
35
|
}
|
|
26
36
|
` + "\n",
|
|
27
37
|
multiline`
|
|
@@ -35,7 +45,7 @@ function generateUnifiedFileUtils(namespaceData) {
|
|
|
35
45
|
field: TypeWithFiles[T]["fields"],
|
|
36
46
|
recordId: string,
|
|
37
47
|
) {
|
|
38
|
-
return await
|
|
48
|
+
return await file.download(namespaces[type], type, field, recordId);
|
|
39
49
|
}
|
|
40
50
|
` + "\n",
|
|
41
51
|
multiline`
|
|
@@ -46,7 +56,7 @@ function generateUnifiedFileUtils(namespaceData) {
|
|
|
46
56
|
data: string | ArrayBuffer | Uint8Array<ArrayBufferLike> | number[],
|
|
47
57
|
options?: FileUploadOptions,
|
|
48
58
|
): Promise<FileUploadResponse> {
|
|
49
|
-
return await
|
|
59
|
+
return await file.upload(namespaces[type], type, field, recordId, data, options);
|
|
50
60
|
}
|
|
51
61
|
` + "\n",
|
|
52
62
|
multiline`
|
|
@@ -55,7 +65,7 @@ function generateUnifiedFileUtils(namespaceData) {
|
|
|
55
65
|
field: TypeWithFiles[T]["fields"],
|
|
56
66
|
recordId: string,
|
|
57
67
|
): Promise<void> {
|
|
58
|
-
return await
|
|
68
|
+
return await file.delete(namespaces[type], type, field, recordId);
|
|
59
69
|
}
|
|
60
70
|
` + "\n",
|
|
61
71
|
multiline`
|
|
@@ -64,7 +74,7 @@ function generateUnifiedFileUtils(namespaceData) {
|
|
|
64
74
|
field: TypeWithFiles[T]["fields"],
|
|
65
75
|
recordId: string,
|
|
66
76
|
): Promise<FileMetadata> {
|
|
67
|
-
return await
|
|
77
|
+
return await file.getMetadata(namespaces[type], type, field, recordId);
|
|
68
78
|
}
|
|
69
79
|
` + "\n",
|
|
70
80
|
multiline`
|
|
@@ -73,7 +83,7 @@ function generateUnifiedFileUtils(namespaceData) {
|
|
|
73
83
|
field: TypeWithFiles[T]["fields"],
|
|
74
84
|
recordId: string,
|
|
75
85
|
): Promise<FileStreamIterator> {
|
|
76
|
-
return await
|
|
86
|
+
return await file.openDownloadStream(namespaces[type], type, field, recordId);
|
|
77
87
|
}
|
|
78
88
|
` + "\n"
|
|
79
89
|
].join("\n");
|
|
@@ -138,4 +148,4 @@ function fileUtilsPlugin(options) {
|
|
|
138
148
|
|
|
139
149
|
//#endregion
|
|
140
150
|
export { fileUtilsPlugin as n, FileUtilsGeneratorID as t };
|
|
141
|
-
//# sourceMappingURL=file-utils-
|
|
151
|
+
//# sourceMappingURL=file-utils-BM8t5jCy.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-utils-BM8t5jCy.mjs","names":[],"sources":["../src/plugin/builtin/file-utils/generate-file-utils.ts","../src/plugin/builtin/file-utils/process-file-type.ts","../src/plugin/builtin/file-utils/index.ts"],"sourcesContent":["import multiline from \"@/utils/multiline\";\nimport type { FileUtilMetadata } from \"./types\";\n\n/**\n * Generate unified file utility functions from collected metadata.\n * @param namespaceData - Namespace data with file utility metadata\n * @returns Generated file utility code\n */\nexport function generateUnifiedFileUtils(\n namespaceData: { namespace: string; types: FileUtilMetadata[] }[],\n): string {\n if (namespaceData.length === 0) {\n return \"\";\n }\n\n // Collect all types with their namespace\n const typeNamespaceMap = new Map<string, string>();\n const typeFieldsMap = new Map<string, string[]>();\n\n for (const { namespace, types } of namespaceData) {\n for (const type of types) {\n typeNamespaceMap.set(type.name, namespace);\n typeFieldsMap.set(type.name, type.fileFields);\n }\n }\n\n if (typeNamespaceMap.size === 0) {\n return \"\";\n }\n\n // Generate interface fields\n const interfaceFields = Array.from(typeFieldsMap.entries())\n .map(([typeName, fields]) => {\n const fieldNamesUnion = fields.map((field) => `\"${field}\"`).join(\" | \");\n return ` ${typeName}: {\\n fields: ${fieldNamesUnion};\\n };`;\n })\n .join(\"\\n\");\n\n const importStatement =\n multiline /* ts */ `\n import * as file from \"@tailor-platform/sdk/runtime/file\";\n import type {\n FileUploadOptions,\n FileUploadResponse,\n FileMetadata,\n FileStreamIterator,\n } from \"@tailor-platform/sdk/runtime/file\";\n ` + \"\\n\";\n\n const interfaceDefinition =\n multiline /* ts */ `\n export interface TypeWithFiles {\n ${interfaceFields}\n }\n ` + \"\\n\";\n\n // Generate namespaces object\n const namespaceEntries = Array.from(typeNamespaceMap.entries())\n .map(([typeName, namespace]) => ` ${typeName}: \"${namespace}\"`)\n .join(\",\\n\");\n\n const namespacesDefinition =\n multiline /* ts */ `\n const namespaces: Record<keyof TypeWithFiles, string> = {\n ${namespaceEntries},\n };\n ` + \"\\n\";\n\n // Generate downloadFile helper function\n const downloadFunction =\n multiline /* ts */ `\n export async function downloadFile<T extends keyof TypeWithFiles>(\n type: T,\n field: TypeWithFiles[T][\"fields\"],\n recordId: string,\n ) {\n return await file.download(namespaces[type], type, field, recordId);\n }\n ` + \"\\n\";\n\n // Generate uploadFile helper function\n const uploadFunction =\n multiline /* ts */ `\n export async function uploadFile<T extends keyof TypeWithFiles>(\n type: T,\n field: TypeWithFiles[T][\"fields\"],\n recordId: string,\n data: string | ArrayBuffer | Uint8Array<ArrayBufferLike> | number[],\n options?: FileUploadOptions,\n ): Promise<FileUploadResponse> {\n return await file.upload(namespaces[type], type, field, recordId, data, options);\n }\n ` + \"\\n\";\n\n // Generate deleteFile helper function\n const deleteFunction =\n multiline /* ts */ `\n export async function deleteFile<T extends keyof TypeWithFiles>(\n type: T,\n field: TypeWithFiles[T][\"fields\"],\n recordId: string,\n ): Promise<void> {\n return await file.delete(namespaces[type], type, field, recordId);\n }\n ` + \"\\n\";\n\n // Generate getFileMetadata helper function\n const getMetadataFunction =\n multiline /* ts */ `\n export async function getFileMetadata<T extends keyof TypeWithFiles>(\n type: T,\n field: TypeWithFiles[T][\"fields\"],\n recordId: string,\n ): Promise<FileMetadata> {\n return await file.getMetadata(namespaces[type], type, field, recordId);\n }\n ` + \"\\n\";\n\n // Generate openFileDownloadStream helper function\n const openDownloadStreamFunction =\n multiline /* ts */ `\n export async function openFileDownloadStream<T extends keyof TypeWithFiles>(\n type: T,\n field: TypeWithFiles[T][\"fields\"],\n recordId: string,\n ): Promise<FileStreamIterator> {\n return await file.openDownloadStream(namespaces[type], type, field, recordId);\n }\n ` + \"\\n\";\n\n return [\n importStatement,\n interfaceDefinition,\n namespacesDefinition,\n downloadFunction,\n uploadFunction,\n deleteFunction,\n getMetadataFunction,\n openDownloadStreamFunction,\n ].join(\"\\n\");\n}\n","import type { FileUtilMetadata } from \"./types\";\nimport type { TailorDBType } from \"@/types/tailordb\";\n\n/**\n * Process a TailorDB type and extract file field metadata.\n * @param type - The parsed TailorDB type to process\n * @returns File utility metadata for the type\n */\nexport async function processFileType(type: TailorDBType): Promise<FileUtilMetadata> {\n const fileFields: string[] = [];\n\n if (type.files) {\n for (const fileFieldName of Object.keys(type.files)) {\n fileFields.push(fileFieldName);\n }\n }\n\n return {\n name: type.name,\n fileFields,\n };\n}\n","import { generateUnifiedFileUtils } from \"./generate-file-utils\";\nimport { processFileType } from \"./process-file-type\";\nimport type { FileUtilMetadata } from \"./types\";\nimport type { Plugin } from \"@/types/plugin\";\nimport type { GeneratorResult, TailorDBReadyContext } from \"@/types/plugin-generation\";\n\n/** Unique identifier for the file utilities generator plugin. */\nexport const FileUtilsGeneratorID = \"@tailor-platform/file-utils\";\n\ntype FileUtilsPluginOptions = {\n distPath: string;\n};\n\n/**\n * Plugin that generates TypeWithFiles interface from TailorDB type definitions.\n * @param options - Plugin options\n * @param options.distPath - Output file path for generated file utilities\n * @returns Plugin instance with onTailorDBReady hook\n */\nexport function fileUtilsPlugin(\n options: FileUtilsPluginOptions,\n): Plugin<unknown, FileUtilsPluginOptions> {\n return {\n id: FileUtilsGeneratorID,\n description: \"Generates TypeWithFiles interface from TailorDB type definitions\",\n pluginConfig: options,\n\n async onTailorDBReady(\n ctx: TailorDBReadyContext<FileUtilsPluginOptions>,\n ): Promise<GeneratorResult> {\n const namespaceData: { namespace: string; types: FileUtilMetadata[] }[] = [];\n\n for (const ns of ctx.tailordb) {\n const typesWithFiles: FileUtilMetadata[] = [];\n\n for (const type of Object.values(ns.types)) {\n const metadata = await processFileType(type);\n if (metadata.fileFields.length > 0) {\n typesWithFiles.push(metadata);\n }\n }\n\n if (typesWithFiles.length > 0) {\n namespaceData.push({\n namespace: ns.namespace,\n types: typesWithFiles,\n });\n }\n }\n\n const files: GeneratorResult[\"files\"] = [];\n if (namespaceData.length > 0) {\n const content = generateUnifiedFileUtils(namespaceData);\n if (content) {\n files.push({\n path: ctx.pluginConfig.distPath,\n content,\n });\n }\n }\n\n return { files };\n },\n };\n}\n"],"mappings":";;;;;;;;;AAQA,SAAgB,yBACd,eACQ;CACR,IAAI,cAAc,WAAW,GAC3B,OAAO;CAIT,MAAM,mCAAmB,IAAI,IAAoB;CACjD,MAAM,gCAAgB,IAAI,IAAsB;CAEhD,KAAK,MAAM,EAAE,WAAW,WAAW,eACjC,KAAK,MAAM,QAAQ,OAAO;EACxB,iBAAiB,IAAI,KAAK,MAAM,SAAS;EACzC,cAAc,IAAI,KAAK,MAAM,KAAK,UAAU;CAC9C;CAGF,IAAI,iBAAiB,SAAS,GAC5B,OAAO;CAIT,MAAM,kBAAkB,MAAM,KAAK,cAAc,QAAQ,CAAC,EACvD,KAAK,CAAC,UAAU,YAAY;EAE3B,OAAO,KAAK,SAAS,mBADG,OAAO,KAAK,UAAU,IAAI,MAAM,EAAE,EAAE,KAAK,KACX,EAAE;CAC1D,CAAC,EACA,KAAK,IAAI;CA8FZ,OAAO;EA3FL,SAAmB;;;;;;;;QAQf;EAGJ,SAAmB;;QAEf,gBAAgB;;QAEhB;EAQJ,SAAmB;;QALI,MAAM,KAAK,iBAAiB,QAAQ,CAAC,EAC3D,KAAK,CAAC,UAAU,eAAe,KAAK,SAAS,KAAK,UAAU,EAAE,EAC9D,KAAK,KAKa,EAAE;;QAEjB;EAIJ,SAAmB;;;;;;;;QAQf;EAIJ,SAAmB;;;;;;;;;;QAUf;EAIJ,SAAmB;;;;;;;;QAQf;EAIJ,SAAmB;;;;;;;;QAQf;EAIJ,SAAmB;;;;;;;;QAQf;CAWN,EAAE,KAAK,IAAI;AACb;;;;;;;;;ACpIA,eAAsB,gBAAgB,MAA+C;CACnF,MAAM,aAAuB,CAAC;CAE9B,IAAI,KAAK,OACP,KAAK,MAAM,iBAAiB,OAAO,KAAK,KAAK,KAAK,GAChD,WAAW,KAAK,aAAa;CAIjC,OAAO;EACL,MAAM,KAAK;EACX;CACF;AACF;;;;;ACdA,MAAa,uBAAuB;;;;;;;AAYpC,SAAgB,gBACd,SACyC;CACzC,OAAO;EACL,IAAI;EACJ,aAAa;EACb,cAAc;EAEd,MAAM,gBACJ,KAC0B;GAC1B,MAAM,gBAAoE,CAAC;GAE3E,KAAK,MAAM,MAAM,IAAI,UAAU;IAC7B,MAAM,iBAAqC,CAAC;IAE5C,KAAK,MAAM,QAAQ,OAAO,OAAO,GAAG,KAAK,GAAG;KAC1C,MAAM,WAAW,MAAM,gBAAgB,IAAI;KAC3C,IAAI,SAAS,WAAW,SAAS,GAC/B,eAAe,KAAK,QAAQ;IAEhC;IAEA,IAAI,eAAe,SAAS,GAC1B,cAAc,KAAK;KACjB,WAAW,GAAG;KACd,OAAO;IACT,CAAC;GAEL;GAEA,MAAM,QAAkC,CAAC;GACzC,IAAI,cAAc,SAAS,GAAG;IAC5B,MAAM,UAAU,yBAAyB,aAAa;IACtD,IAAI,SACF,MAAM,KAAK;KACT,MAAM,IAAI,aAAa;KACvB;IACF,CAAC;GAEL;GAEA,OAAO,EAAE,MAAM;EACjB;CACF;AACF"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
declare namespace iconv_d_exports {
|
|
2
|
+
export { Iconv, IconvConstructor, IconvInstance, TailorIconvAPI, convert, convertBuffer, decode, encode, encodings };
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Character encoding conversion utilities.
|
|
6
|
+
*
|
|
7
|
+
* Thin typed wrapper around the platform-provided `tailor.iconv` runtime API.
|
|
8
|
+
* At runtime this delegates to `globalThis.tailor.iconv`, which is provided by
|
|
9
|
+
* the Tailor Platform Function runtime. Use `iconvMock` from
|
|
10
|
+
* `@tailor-platform/sdk/vitest` to mock these calls in unit tests.
|
|
11
|
+
* @example
|
|
12
|
+
* import { iconv } from "@tailor-platform/sdk/runtime";
|
|
13
|
+
*
|
|
14
|
+
* const utf8 = iconv.convert(sjisBuffer, "Shift_JIS", "UTF-8"); // string
|
|
15
|
+
* const sjis = iconv.convert("こんにちは", "UTF-8", "Shift_JIS"); // Uint8Array
|
|
16
|
+
*
|
|
17
|
+
* const conv = new iconv.Iconv("Shift_JIS", "UTF-8");
|
|
18
|
+
* const out = conv.convert(sjisBuffer);
|
|
19
|
+
*/
|
|
20
|
+
/** Instance methods exposed by `tailor.iconv.Iconv`. */
|
|
21
|
+
interface IconvInstance {
|
|
22
|
+
convert(input: string | Uint8Array | ArrayBuffer): string | Uint8Array;
|
|
23
|
+
}
|
|
24
|
+
/** Constructor shape for `tailor.iconv.Iconv`. */
|
|
25
|
+
interface IconvConstructor {
|
|
26
|
+
new (fromEncoding: string, toEncoding: string): IconvInstance;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Platform API surface for `tailor.iconv`. Describes the shape the platform
|
|
30
|
+
* runtime injects on `globalThis.tailor.iconv` so the wrapper and ambient
|
|
31
|
+
* globals stay in sync.
|
|
32
|
+
*
|
|
33
|
+
* Each method below is also re-exported as a top-level named export from this
|
|
34
|
+
* module (e.g. `convert`, `decode`, `encode`) so callers can either
|
|
35
|
+
* `import * as iconv from "@tailor-platform/sdk/runtime/iconv"` or pick
|
|
36
|
+
* individual methods.
|
|
37
|
+
*/
|
|
38
|
+
interface TailorIconvAPI {
|
|
39
|
+
/**
|
|
40
|
+
* Convert a string or buffer between encodings.
|
|
41
|
+
* @param str - Input data to convert
|
|
42
|
+
* @param fromEncoding - Source encoding name
|
|
43
|
+
* @param toEncoding - Target encoding name
|
|
44
|
+
* @returns `string` when `toEncoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
|
|
45
|
+
*/
|
|
46
|
+
convert<T extends string>(str: string | Uint8Array | ArrayBuffer, fromEncoding: string, toEncoding: T): T extends "UTF8" | "UTF-8" ? string : Uint8Array;
|
|
47
|
+
/**
|
|
48
|
+
* Convert a buffer between encodings.
|
|
49
|
+
* @param buffer - Input bytes to convert
|
|
50
|
+
* @param fromEncoding - Source encoding name
|
|
51
|
+
* @param toEncoding - Target encoding name
|
|
52
|
+
* @returns `string` when `toEncoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
|
|
53
|
+
*/
|
|
54
|
+
convertBuffer<T extends string>(buffer: Uint8Array | ArrayBuffer, fromEncoding: string, toEncoding: T): T extends "UTF8" | "UTF-8" ? string : Uint8Array;
|
|
55
|
+
/**
|
|
56
|
+
* Decode a buffer to a UTF-8 string using the given source encoding.
|
|
57
|
+
* @param buffer - Input bytes
|
|
58
|
+
* @param encoding - Source encoding name
|
|
59
|
+
* @returns Decoded UTF-8 string
|
|
60
|
+
*/
|
|
61
|
+
decode(buffer: Uint8Array | ArrayBuffer, encoding: string): string;
|
|
62
|
+
/**
|
|
63
|
+
* Encode a UTF-8 string into the given target encoding.
|
|
64
|
+
* @param str - Input string
|
|
65
|
+
* @param encoding - Target encoding name
|
|
66
|
+
* @returns `string` when `encoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
|
|
67
|
+
*/
|
|
68
|
+
encode<T extends string>(str: string, encoding: T): T extends "UTF8" | "UTF-8" ? string : Uint8Array;
|
|
69
|
+
/**
|
|
70
|
+
* Returns the list of supported encoding names.
|
|
71
|
+
* @returns Array of encoding names supported by the platform iconv runtime
|
|
72
|
+
*/
|
|
73
|
+
encodings(): string[];
|
|
74
|
+
/** Constructor for the stateful {@link Iconv} converter. */
|
|
75
|
+
Iconv: IconvConstructor;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* See {@link TailorIconvAPI.convert}.
|
|
79
|
+
* @param args - Forwarded to {@link TailorIconvAPI.convert}
|
|
80
|
+
* @returns `string` when `toEncoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
|
|
81
|
+
*/
|
|
82
|
+
declare const convert: TailorIconvAPI["convert"];
|
|
83
|
+
/**
|
|
84
|
+
* See {@link TailorIconvAPI.convertBuffer}.
|
|
85
|
+
* @param args - Forwarded to {@link TailorIconvAPI.convertBuffer}
|
|
86
|
+
* @returns `string` when `toEncoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
|
|
87
|
+
*/
|
|
88
|
+
declare const convertBuffer: TailorIconvAPI["convertBuffer"];
|
|
89
|
+
/**
|
|
90
|
+
* See {@link TailorIconvAPI.decode}.
|
|
91
|
+
* @param args - Forwarded to {@link TailorIconvAPI.decode}
|
|
92
|
+
* @returns Decoded UTF-8 string
|
|
93
|
+
*/
|
|
94
|
+
declare const decode: TailorIconvAPI["decode"];
|
|
95
|
+
/**
|
|
96
|
+
* See {@link TailorIconvAPI.encode}.
|
|
97
|
+
* @param args - Forwarded to {@link TailorIconvAPI.encode}
|
|
98
|
+
* @returns `string` when `encoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
|
|
99
|
+
*/
|
|
100
|
+
declare const encode: TailorIconvAPI["encode"];
|
|
101
|
+
/**
|
|
102
|
+
* See {@link TailorIconvAPI.encodings}.
|
|
103
|
+
* @returns Array of encoding names supported by the platform iconv runtime
|
|
104
|
+
*/
|
|
105
|
+
declare const encodings: TailorIconvAPI["encodings"];
|
|
106
|
+
/**
|
|
107
|
+
* Stateful converter for repeated conversions between a fixed encoding pair.
|
|
108
|
+
* Compatible with the `node-iconv` API surface.
|
|
109
|
+
*/
|
|
110
|
+
declare class Iconv {
|
|
111
|
+
private impl;
|
|
112
|
+
constructor(fromEncoding: string, toEncoding: string);
|
|
113
|
+
/**
|
|
114
|
+
* Convert input using this converter's fixed encoding pair.
|
|
115
|
+
* @param input - Bytes or string to convert
|
|
116
|
+
* @returns Encoded output (string for UTF-8 targets, otherwise `Uint8Array`).
|
|
117
|
+
*/
|
|
118
|
+
convert(input: string | Uint8Array | ArrayBuffer): string | Uint8Array;
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
export { convert as a, encode as c, TailorIconvAPI as i, encodings as l, IconvConstructor as n, convertBuffer as o, IconvInstance as r, decode as s, Iconv as t, iconv_d_exports as u };
|
|
122
|
+
//# sourceMappingURL=iconv-BFNfdlIS.d.mts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
import { t as __exportAll } from "./chunk-DLeslSnM.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/runtime/iconv.ts
|
|
5
|
+
var iconv_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
Iconv: () => Iconv,
|
|
7
|
+
convert: () => convert,
|
|
8
|
+
convertBuffer: () => convertBuffer,
|
|
9
|
+
decode: () => decode,
|
|
10
|
+
encode: () => encode,
|
|
11
|
+
encodings: () => encodings
|
|
12
|
+
});
|
|
13
|
+
const api = () => globalThis.tailor.iconv;
|
|
14
|
+
/**
|
|
15
|
+
* See {@link TailorIconvAPI.convert}.
|
|
16
|
+
* @param args - Forwarded to {@link TailorIconvAPI.convert}
|
|
17
|
+
* @returns `string` when `toEncoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
|
|
18
|
+
*/
|
|
19
|
+
const convert = (...args) => api().convert(...args);
|
|
20
|
+
/**
|
|
21
|
+
* See {@link TailorIconvAPI.convertBuffer}.
|
|
22
|
+
* @param args - Forwarded to {@link TailorIconvAPI.convertBuffer}
|
|
23
|
+
* @returns `string` when `toEncoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
|
|
24
|
+
*/
|
|
25
|
+
const convertBuffer = (...args) => api().convertBuffer(...args);
|
|
26
|
+
/**
|
|
27
|
+
* See {@link TailorIconvAPI.decode}.
|
|
28
|
+
* @param args - Forwarded to {@link TailorIconvAPI.decode}
|
|
29
|
+
* @returns Decoded UTF-8 string
|
|
30
|
+
*/
|
|
31
|
+
const decode = (...args) => api().decode(...args);
|
|
32
|
+
/**
|
|
33
|
+
* See {@link TailorIconvAPI.encode}.
|
|
34
|
+
* @param args - Forwarded to {@link TailorIconvAPI.encode}
|
|
35
|
+
* @returns `string` when `encoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
|
|
36
|
+
*/
|
|
37
|
+
const encode = (...args) => api().encode(...args);
|
|
38
|
+
/**
|
|
39
|
+
* See {@link TailorIconvAPI.encodings}.
|
|
40
|
+
* @returns Array of encoding names supported by the platform iconv runtime
|
|
41
|
+
*/
|
|
42
|
+
const encodings = () => api().encodings();
|
|
43
|
+
/**
|
|
44
|
+
* Stateful converter for repeated conversions between a fixed encoding pair.
|
|
45
|
+
* Compatible with the `node-iconv` API surface.
|
|
46
|
+
*/
|
|
47
|
+
var Iconv = class {
|
|
48
|
+
impl;
|
|
49
|
+
constructor(fromEncoding, toEncoding) {
|
|
50
|
+
this.impl = new (api()).Iconv(fromEncoding, toEncoding);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Convert input using this converter's fixed encoding pair.
|
|
54
|
+
* @param input - Bytes or string to convert
|
|
55
|
+
* @returns Encoded output (string for UTF-8 targets, otherwise `Uint8Array`).
|
|
56
|
+
*/
|
|
57
|
+
convert(input) {
|
|
58
|
+
return this.impl.convert(input);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
export { encode as a, decode as i, convert as n, encodings as o, convertBuffer as r, iconv_exports as s, Iconv as t };
|
|
64
|
+
//# sourceMappingURL=iconv-D0yL88Il.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iconv-D0yL88Il.mjs","names":[],"sources":["../src/runtime/iconv.ts"],"sourcesContent":["/**\n * Character encoding conversion utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.iconv` runtime API.\n * At runtime this delegates to `globalThis.tailor.iconv`, which is provided by\n * the Tailor Platform Function runtime. Use `iconvMock` from\n * `@tailor-platform/sdk/vitest` to mock these calls in unit tests.\n * @example\n * import { iconv } from \"@tailor-platform/sdk/runtime\";\n *\n * const utf8 = iconv.convert(sjisBuffer, \"Shift_JIS\", \"UTF-8\"); // string\n * const sjis = iconv.convert(\"こんにちは\", \"UTF-8\", \"Shift_JIS\"); // Uint8Array\n *\n * const conv = new iconv.Iconv(\"Shift_JIS\", \"UTF-8\");\n * const out = conv.convert(sjisBuffer);\n */\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/** Instance methods exposed by `tailor.iconv.Iconv`. */\nexport interface IconvInstance {\n convert(input: string | Uint8Array | ArrayBuffer): string | Uint8Array;\n}\n\n/** Constructor shape for `tailor.iconv.Iconv`. */\nexport interface IconvConstructor {\n new (fromEncoding: string, toEncoding: string): IconvInstance;\n}\n\n/**\n * Platform API surface for `tailor.iconv`. Describes the shape the platform\n * runtime injects on `globalThis.tailor.iconv` so the wrapper and ambient\n * globals stay in sync.\n *\n * Each method below is also re-exported as a top-level named export from this\n * module (e.g. `convert`, `decode`, `encode`) so callers can either\n * `import * as iconv from \"@tailor-platform/sdk/runtime/iconv\"` or pick\n * individual methods.\n */\nexport interface TailorIconvAPI {\n /**\n * Convert a string or buffer between encodings.\n * @param str - Input data to convert\n * @param fromEncoding - Source encoding name\n * @param toEncoding - Target encoding name\n * @returns `string` when `toEncoding` is `\"UTF8\"` or `\"UTF-8\"`, otherwise `Uint8Array`.\n */\n convert<T extends string>(\n str: string | Uint8Array | ArrayBuffer,\n fromEncoding: string,\n toEncoding: T,\n ): T extends \"UTF8\" | \"UTF-8\" ? string : Uint8Array;\n\n /**\n * Convert a buffer between encodings.\n * @param buffer - Input bytes to convert\n * @param fromEncoding - Source encoding name\n * @param toEncoding - Target encoding name\n * @returns `string` when `toEncoding` is `\"UTF8\"` or `\"UTF-8\"`, otherwise `Uint8Array`.\n */\n convertBuffer<T extends string>(\n buffer: Uint8Array | ArrayBuffer,\n fromEncoding: string,\n toEncoding: T,\n ): T extends \"UTF8\" | \"UTF-8\" ? string : Uint8Array;\n\n /**\n * Decode a buffer to a UTF-8 string using the given source encoding.\n * @param buffer - Input bytes\n * @param encoding - Source encoding name\n * @returns Decoded UTF-8 string\n */\n decode(buffer: Uint8Array | ArrayBuffer, encoding: string): string;\n\n /**\n * Encode a UTF-8 string into the given target encoding.\n * @param str - Input string\n * @param encoding - Target encoding name\n * @returns `string` when `encoding` is `\"UTF8\"` or `\"UTF-8\"`, otherwise `Uint8Array`.\n */\n encode<T extends string>(\n str: string,\n encoding: T,\n ): T extends \"UTF8\" | \"UTF-8\" ? string : Uint8Array;\n\n /**\n * Returns the list of supported encoding names.\n * @returns Array of encoding names supported by the platform iconv runtime\n */\n encodings(): string[];\n\n /** Constructor for the stateful {@link Iconv} converter. */\n Iconv: IconvConstructor;\n}\n\nconst api = (): TailorIconvAPI =>\n (globalThis as { tailor: { iconv: TailorIconvAPI } }).tailor.iconv;\n\n/**\n * See {@link TailorIconvAPI.convert}.\n * @param args - Forwarded to {@link TailorIconvAPI.convert}\n * @returns `string` when `toEncoding` is `\"UTF8\"` or `\"UTF-8\"`, otherwise `Uint8Array`.\n */\nexport const convert: TailorIconvAPI[\"convert\"] = (...args) => api().convert(...args);\n\n/**\n * See {@link TailorIconvAPI.convertBuffer}.\n * @param args - Forwarded to {@link TailorIconvAPI.convertBuffer}\n * @returns `string` when `toEncoding` is `\"UTF8\"` or `\"UTF-8\"`, otherwise `Uint8Array`.\n */\nexport const convertBuffer: TailorIconvAPI[\"convertBuffer\"] = (...args) =>\n api().convertBuffer(...args);\n\n/**\n * See {@link TailorIconvAPI.decode}.\n * @param args - Forwarded to {@link TailorIconvAPI.decode}\n * @returns Decoded UTF-8 string\n */\nexport const decode: TailorIconvAPI[\"decode\"] = (...args) => api().decode(...args);\n\n/**\n * See {@link TailorIconvAPI.encode}.\n * @param args - Forwarded to {@link TailorIconvAPI.encode}\n * @returns `string` when `encoding` is `\"UTF8\"` or `\"UTF-8\"`, otherwise `Uint8Array`.\n */\nexport const encode: TailorIconvAPI[\"encode\"] = (...args) => api().encode(...args);\n\n/**\n * See {@link TailorIconvAPI.encodings}.\n * @returns Array of encoding names supported by the platform iconv runtime\n */\nexport const encodings: TailorIconvAPI[\"encodings\"] = () => api().encodings();\n\n/**\n * Stateful converter for repeated conversions between a fixed encoding pair.\n * Compatible with the `node-iconv` API surface.\n */\nexport class Iconv {\n private impl: IconvInstance;\n\n constructor(fromEncoding: string, toEncoding: string) {\n this.impl = new (api().Iconv)(fromEncoding, toEncoding);\n }\n\n /**\n * Convert input using this converter's fixed encoding pair.\n * @param input - Bytes or string to convert\n * @returns Encoded output (string for UTF-8 targets, otherwise `Uint8Array`).\n */\n convert(input: string | Uint8Array | ArrayBuffer): string | Uint8Array {\n return this.impl.convert(input);\n }\n}\n"],"mappings":";;;;;;;;;;;;AA+FA,MAAM,YACH,WAAqD,OAAO;;;;;;AAO/D,MAAa,WAAsC,GAAG,SAAS,IAAI,EAAE,QAAQ,GAAG,IAAI;;;;;;AAOpF,MAAa,iBAAkD,GAAG,SAChE,IAAI,EAAE,cAAc,GAAG,IAAI;;;;;;AAO7B,MAAa,UAAoC,GAAG,SAAS,IAAI,EAAE,OAAO,GAAG,IAAI;;;;;;AAOjF,MAAa,UAAoC,GAAG,SAAS,IAAI,EAAE,OAAO,GAAG,IAAI;;;;;AAMjF,MAAa,kBAA+C,IAAI,EAAE,UAAU;;;;;AAM5E,IAAa,QAAb,MAAmB;CACjB,AAAQ;CAER,YAAY,cAAsB,YAAoB;EACpD,KAAK,OAAO,KAAK,IAAI,GAAE,MAAO,cAAc,UAAU;CACxD;;;;;;CAOA,QAAQ,OAA+D;EACrE,OAAO,KAAK,KAAK,QAAQ,KAAK;CAChC;AACF"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
declare namespace idp_d_exports {
|
|
2
|
+
export { Client, ClientConfig, CreateUserInput, IdpClientConstructor, IdpClientInstance, ListUsersOptions, ListUsersResponse, SendPasswordResetEmailInput, TailorIdpAPI, UpdateUserInput, User, UserQuery };
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* IDP (Identity Provider) utilities.
|
|
6
|
+
*
|
|
7
|
+
* Thin typed wrapper around the platform-provided `tailor.idp` runtime API.
|
|
8
|
+
* At runtime this delegates to `globalThis.tailor.idp`. Use `idpMock` from
|
|
9
|
+
* `@tailor-platform/sdk/vitest` to mock these calls in unit tests.
|
|
10
|
+
* @example
|
|
11
|
+
* import { idp } from "@tailor-platform/sdk/runtime";
|
|
12
|
+
*
|
|
13
|
+
* const client = new idp.Client({ namespace: "my-namespace" });
|
|
14
|
+
* const { users } = await client.users({ first: 10 });
|
|
15
|
+
*/
|
|
16
|
+
/** Configuration object for {@link Client}. */
|
|
17
|
+
interface ClientConfig {
|
|
18
|
+
namespace: string;
|
|
19
|
+
}
|
|
20
|
+
/** User record returned by IDP operations. */
|
|
21
|
+
interface User {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
createdAt?: string;
|
|
26
|
+
updatedAt?: string;
|
|
27
|
+
}
|
|
28
|
+
/** Filter options for {@link Client.users}. */
|
|
29
|
+
interface UserQuery {
|
|
30
|
+
/** Filter by user IDs */
|
|
31
|
+
ids?: string[];
|
|
32
|
+
/** Filter by user names */
|
|
33
|
+
names?: string[];
|
|
34
|
+
}
|
|
35
|
+
/** Pagination/filter options for {@link Client.users}. */
|
|
36
|
+
interface ListUsersOptions {
|
|
37
|
+
/** Maximum number of users to return */
|
|
38
|
+
first?: number;
|
|
39
|
+
/** Page token for pagination */
|
|
40
|
+
after?: string;
|
|
41
|
+
/** Query filter for users */
|
|
42
|
+
query?: UserQuery;
|
|
43
|
+
}
|
|
44
|
+
/** Response shape for {@link Client.users}. */
|
|
45
|
+
interface ListUsersResponse {
|
|
46
|
+
users: User[];
|
|
47
|
+
nextPageToken: string | null;
|
|
48
|
+
totalCount: number;
|
|
49
|
+
}
|
|
50
|
+
/** Input for {@link Client.createUser}. */
|
|
51
|
+
interface CreateUserInput {
|
|
52
|
+
/** The user's name (typically email) */
|
|
53
|
+
name: string;
|
|
54
|
+
/** The user's password. If omitted, the user is created without a password (cannot log in with any password). */
|
|
55
|
+
password?: string;
|
|
56
|
+
/** Whether the user is disabled */
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/** Input for {@link Client.updateUser}. */
|
|
60
|
+
interface UpdateUserInput {
|
|
61
|
+
/** The user's ID */
|
|
62
|
+
id: string;
|
|
63
|
+
/** New name for the user */
|
|
64
|
+
name?: string;
|
|
65
|
+
/** New password for the user. Cannot be used with clearPassword. */
|
|
66
|
+
password?: string;
|
|
67
|
+
/** If true, remove the user's password. Cannot be used with password. */
|
|
68
|
+
clearPassword?: boolean;
|
|
69
|
+
/** New disabled status for the user */
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
}
|
|
72
|
+
/** Input for {@link Client.sendPasswordResetEmail}. */
|
|
73
|
+
interface SendPasswordResetEmailInput {
|
|
74
|
+
/** The ID of the user */
|
|
75
|
+
userId: string;
|
|
76
|
+
/** The URI to redirect to after password reset */
|
|
77
|
+
redirectUri: string;
|
|
78
|
+
/** The sender display name. Defaults to 'Tailor Platform IdP'. */
|
|
79
|
+
fromName?: string;
|
|
80
|
+
/** The email subject line. Defaults to the localized default subject. */
|
|
81
|
+
subject?: string;
|
|
82
|
+
}
|
|
83
|
+
/** Instance methods exposed by `tailor.idp.Client`. */
|
|
84
|
+
interface IdpClientInstance {
|
|
85
|
+
users(options?: ListUsersOptions): Promise<ListUsersResponse>;
|
|
86
|
+
user(userId: string): Promise<User>;
|
|
87
|
+
userByName(name: string): Promise<User>;
|
|
88
|
+
createUser(input: CreateUserInput): Promise<User>;
|
|
89
|
+
updateUser(input: UpdateUserInput): Promise<User>;
|
|
90
|
+
deleteUser(userId: string): Promise<boolean>;
|
|
91
|
+
sendPasswordResetEmail(input: SendPasswordResetEmailInput): Promise<boolean>;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Constructor shape for `tailor.idp.Client`.
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
interface IdpClientConstructor {
|
|
98
|
+
new (config: ClientConfig): IdpClientInstance;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Platform API surface for `tailor.idp`. Describes the shape the platform
|
|
102
|
+
* runtime injects on `globalThis.tailor.idp`.
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
interface TailorIdpAPI {
|
|
106
|
+
Client: IdpClientConstructor;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* IDP Client for user management operations.
|
|
110
|
+
*
|
|
111
|
+
* Wraps the platform-provided `tailor.idp.Client` and exposes the same surface.
|
|
112
|
+
*/
|
|
113
|
+
declare class Client {
|
|
114
|
+
#private;
|
|
115
|
+
constructor(config: ClientConfig);
|
|
116
|
+
/**
|
|
117
|
+
* List users in the namespace with optional filtering and pagination.
|
|
118
|
+
* @param options - Pagination and filter options
|
|
119
|
+
* @returns Page of users with `nextPageToken` and `totalCount`
|
|
120
|
+
*/
|
|
121
|
+
users(options?: ListUsersOptions): Promise<ListUsersResponse>;
|
|
122
|
+
/**
|
|
123
|
+
* Get a user by ID.
|
|
124
|
+
* @param userId - IDP user ID
|
|
125
|
+
* @returns The matching user
|
|
126
|
+
*/
|
|
127
|
+
user(userId: string): Promise<User>;
|
|
128
|
+
/**
|
|
129
|
+
* Get a user by name.
|
|
130
|
+
* @param name - IDP user name
|
|
131
|
+
* @returns The matching user
|
|
132
|
+
*/
|
|
133
|
+
userByName(name: string): Promise<User>;
|
|
134
|
+
/**
|
|
135
|
+
* Create a new user.
|
|
136
|
+
* @param input - User attributes
|
|
137
|
+
* @returns The newly created user
|
|
138
|
+
*/
|
|
139
|
+
createUser(input: CreateUserInput): Promise<User>;
|
|
140
|
+
/**
|
|
141
|
+
* Update an existing user.
|
|
142
|
+
* @param input - User ID plus attributes to update
|
|
143
|
+
* @returns The updated user
|
|
144
|
+
*/
|
|
145
|
+
updateUser(input: UpdateUserInput): Promise<User>;
|
|
146
|
+
/**
|
|
147
|
+
* Delete a user by ID.
|
|
148
|
+
* @param userId - IDP user ID
|
|
149
|
+
* @returns `true` when the user was deleted
|
|
150
|
+
*/
|
|
151
|
+
deleteUser(userId: string): Promise<boolean>;
|
|
152
|
+
/**
|
|
153
|
+
* Send a password reset email to a user.
|
|
154
|
+
* @param input - Target user ID and redirect URI
|
|
155
|
+
* @returns `true` when the email was queued
|
|
156
|
+
*/
|
|
157
|
+
sendPasswordResetEmail(input: SendPasswordResetEmailInput): Promise<boolean>;
|
|
158
|
+
}
|
|
159
|
+
//#endregion
|
|
160
|
+
export { IdpClientInstance as a, SendPasswordResetEmailInput as c, User as d, UserQuery as f, IdpClientConstructor as i, TailorIdpAPI as l, ClientConfig as n, ListUsersOptions as o, idp_d_exports as p, CreateUserInput as r, ListUsersResponse as s, Client as t, UpdateUserInput as u };
|
|
161
|
+
//# sourceMappingURL=idp-B1b4O7ia.d.mts.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
|
|
2
|
+
import { t as __exportAll } from "./chunk-DLeslSnM.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/runtime/idp.ts
|
|
5
|
+
var idp_exports = /* @__PURE__ */ __exportAll({ Client: () => Client });
|
|
6
|
+
/**
|
|
7
|
+
* IDP Client for user management operations.
|
|
8
|
+
*
|
|
9
|
+
* Wraps the platform-provided `tailor.idp.Client` and exposes the same surface.
|
|
10
|
+
*/
|
|
11
|
+
var Client = class {
|
|
12
|
+
#impl;
|
|
13
|
+
constructor(config) {
|
|
14
|
+
this.#impl = new globalThis.tailor.idp.Client(config);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* List users in the namespace with optional filtering and pagination.
|
|
18
|
+
* @param options - Pagination and filter options
|
|
19
|
+
* @returns Page of users with `nextPageToken` and `totalCount`
|
|
20
|
+
*/
|
|
21
|
+
users(options) {
|
|
22
|
+
return this.#impl.users(options);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get a user by ID.
|
|
26
|
+
* @param userId - IDP user ID
|
|
27
|
+
* @returns The matching user
|
|
28
|
+
*/
|
|
29
|
+
user(userId) {
|
|
30
|
+
return this.#impl.user(userId);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get a user by name.
|
|
34
|
+
* @param name - IDP user name
|
|
35
|
+
* @returns The matching user
|
|
36
|
+
*/
|
|
37
|
+
userByName(name) {
|
|
38
|
+
return this.#impl.userByName(name);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Create a new user.
|
|
42
|
+
* @param input - User attributes
|
|
43
|
+
* @returns The newly created user
|
|
44
|
+
*/
|
|
45
|
+
createUser(input) {
|
|
46
|
+
return this.#impl.createUser(input);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Update an existing user.
|
|
50
|
+
* @param input - User ID plus attributes to update
|
|
51
|
+
* @returns The updated user
|
|
52
|
+
*/
|
|
53
|
+
updateUser(input) {
|
|
54
|
+
return this.#impl.updateUser(input);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Delete a user by ID.
|
|
58
|
+
* @param userId - IDP user ID
|
|
59
|
+
* @returns `true` when the user was deleted
|
|
60
|
+
*/
|
|
61
|
+
deleteUser(userId) {
|
|
62
|
+
return this.#impl.deleteUser(userId);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Send a password reset email to a user.
|
|
66
|
+
* @param input - Target user ID and redirect URI
|
|
67
|
+
* @returns `true` when the email was queued
|
|
68
|
+
*/
|
|
69
|
+
sendPasswordResetEmail(input) {
|
|
70
|
+
return this.#impl.sendPasswordResetEmail(input);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
//#endregion
|
|
75
|
+
export { idp_exports as n, Client as t };
|
|
76
|
+
//# sourceMappingURL=idp-CM7N7iID.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idp-CM7N7iID.mjs","names":["#impl"],"sources":["../src/runtime/idp.ts"],"sourcesContent":["/**\n * IDP (Identity Provider) utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.idp` runtime API.\n * At runtime this delegates to `globalThis.tailor.idp`. Use `idpMock` from\n * `@tailor-platform/sdk/vitest` to mock these calls in unit tests.\n * @example\n * import { idp } from \"@tailor-platform/sdk/runtime\";\n *\n * const client = new idp.Client({ namespace: \"my-namespace\" });\n * const { users } = await client.users({ first: 10 });\n */\n\n/** Configuration object for {@link Client}. */\nexport interface ClientConfig {\n namespace: string;\n}\n\n/** User record returned by IDP operations. */\nexport interface User {\n id: string;\n name: string;\n disabled: boolean;\n createdAt?: string;\n updatedAt?: string;\n}\n\n/** Filter options for {@link Client.users}. */\nexport interface UserQuery {\n /** Filter by user IDs */\n ids?: string[];\n /** Filter by user names */\n names?: string[];\n}\n\n/** Pagination/filter options for {@link Client.users}. */\nexport interface ListUsersOptions {\n /** Maximum number of users to return */\n first?: number;\n /** Page token for pagination */\n after?: string;\n /** Query filter for users */\n query?: UserQuery;\n}\n\n/** Response shape for {@link Client.users}. */\nexport interface ListUsersResponse {\n users: User[];\n nextPageToken: string | null;\n totalCount: number;\n}\n\n/** Input for {@link Client.createUser}. */\nexport interface CreateUserInput {\n /** The user's name (typically email) */\n name: string;\n /** The user's password. If omitted, the user is created without a password (cannot log in with any password). */\n password?: string;\n /** Whether the user is disabled */\n disabled?: boolean;\n}\n\n/** Input for {@link Client.updateUser}. */\nexport interface UpdateUserInput {\n /** The user's ID */\n id: string;\n /** New name for the user */\n name?: string;\n /** New password for the user. Cannot be used with clearPassword. */\n password?: string;\n /** If true, remove the user's password. Cannot be used with password. */\n clearPassword?: boolean;\n /** New disabled status for the user */\n disabled?: boolean;\n}\n\n/** Input for {@link Client.sendPasswordResetEmail}. */\nexport interface SendPasswordResetEmailInput {\n /** The ID of the user */\n userId: string;\n /** The URI to redirect to after password reset */\n redirectUri: string;\n /** The sender display name. Defaults to 'Tailor Platform IdP'. */\n fromName?: string;\n /** The email subject line. Defaults to the localized default subject. */\n subject?: string;\n}\n\n/** Instance methods exposed by `tailor.idp.Client`. */\nexport interface IdpClientInstance {\n users(options?: ListUsersOptions): Promise<ListUsersResponse>;\n user(userId: string): Promise<User>;\n userByName(name: string): Promise<User>;\n createUser(input: CreateUserInput): Promise<User>;\n updateUser(input: UpdateUserInput): Promise<User>;\n deleteUser(userId: string): Promise<boolean>;\n sendPasswordResetEmail(input: SendPasswordResetEmailInput): Promise<boolean>;\n}\n\n/**\n * Constructor shape for `tailor.idp.Client`.\n * @internal\n */\nexport interface IdpClientConstructor {\n new (config: ClientConfig): IdpClientInstance;\n}\n\n/**\n * Platform API surface for `tailor.idp`. Describes the shape the platform\n * runtime injects on `globalThis.tailor.idp`.\n * @internal\n */\nexport interface TailorIdpAPI {\n Client: IdpClientConstructor;\n}\n\n/**\n * IDP Client for user management operations.\n *\n * Wraps the platform-provided `tailor.idp.Client` and exposes the same surface.\n */\nexport class Client {\n #impl: IdpClientInstance;\n\n constructor(config: ClientConfig) {\n this.#impl = new (globalThis as { tailor: { idp: TailorIdpAPI } }).tailor.idp.Client(config);\n }\n\n /**\n * List users in the namespace with optional filtering and pagination.\n * @param options - Pagination and filter options\n * @returns Page of users with `nextPageToken` and `totalCount`\n */\n users(options?: ListUsersOptions): Promise<ListUsersResponse> {\n return this.#impl.users(options);\n }\n\n /**\n * Get a user by ID.\n * @param userId - IDP user ID\n * @returns The matching user\n */\n user(userId: string): Promise<User> {\n return this.#impl.user(userId);\n }\n\n /**\n * Get a user by name.\n * @param name - IDP user name\n * @returns The matching user\n */\n userByName(name: string): Promise<User> {\n return this.#impl.userByName(name);\n }\n\n /**\n * Create a new user.\n * @param input - User attributes\n * @returns The newly created user\n */\n createUser(input: CreateUserInput): Promise<User> {\n return this.#impl.createUser(input);\n }\n\n /**\n * Update an existing user.\n * @param input - User ID plus attributes to update\n * @returns The updated user\n */\n updateUser(input: UpdateUserInput): Promise<User> {\n return this.#impl.updateUser(input);\n }\n\n /**\n * Delete a user by ID.\n * @param userId - IDP user ID\n * @returns `true` when the user was deleted\n */\n deleteUser(userId: string): Promise<boolean> {\n return this.#impl.deleteUser(userId);\n }\n\n /**\n * Send a password reset email to a user.\n * @param input - Target user ID and redirect URI\n * @returns `true` when the email was queued\n */\n sendPasswordResetEmail(input: SendPasswordResetEmailInput): Promise<boolean> {\n return this.#impl.sendPasswordResetEmail(input);\n }\n}\n"],"mappings":";;;;;;;;;;AAyHA,IAAa,SAAb,MAAoB;CAClB;CAEA,YAAY,QAAsB;EAChC,KAAKA,QAAQ,IAAK,WAAiD,OAAO,IAAI,OAAO,MAAM;CAC7F;;;;;;CAOA,MAAM,SAAwD;EAC5D,OAAO,KAAKA,MAAM,MAAM,OAAO;CACjC;;;;;;CAOA,KAAK,QAA+B;EAClC,OAAO,KAAKA,MAAM,KAAK,MAAM;CAC/B;;;;;;CAOA,WAAW,MAA6B;EACtC,OAAO,KAAKA,MAAM,WAAW,IAAI;CACnC;;;;;;CAOA,WAAW,OAAuC;EAChD,OAAO,KAAKA,MAAM,WAAW,KAAK;CACpC;;;;;;CAOA,WAAW,OAAuC;EAChD,OAAO,KAAKA,MAAM,WAAW,KAAK;CACpC;;;;;;CAOA,WAAW,QAAkC;EAC3C,OAAO,KAAKA,MAAM,WAAW,MAAM;CACrC;;;;;;CAOA,uBAAuB,OAAsD;EAC3E,OAAO,KAAKA,MAAM,uBAAuB,KAAK;CAChD;AACF"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { r as TailorEnv, t as TailorActor } from "./actor-BeIEiPYM.mjs";
|
|
1
|
+
import { $ as ResolverInput, At as FieldMetadata, Bt as InferredAttributeMap, Dt as ArrayFieldOutput, Ft as FieldValidateInput, G as UserAttributeListKey, Gt as JsonCompatible, Ht as TailorUser, Jt as output$1, K as UserAttributeMap, Kt as JsonValue, Mt as FieldOutput, Nt as TailorFieldType, Ot as DefinedFieldMetadata, Q as Resolver, V as DefinedAuth, Vt as TailorInvoker, Wt as InferFieldsOutput, Y as TailorField$1, at as FunctionOperation$1, ct as IncomingWebhookTrigger$1, dt as TailorDBTrigger$1, et as GeneratorConfig, ft as WebhookOperation$1, it as ExecutorInput, jt as FieldOptions, lt as ResolverExecutedTrigger$1, mt as AuthInvoker$1, nt as AuthAccessTokenTrigger$1, o as Plugin, ot as GqlOperation$1, pt as WorkflowOperation$1, qt as Prettify, st as IdpUserTrigger$1, tt as BaseGeneratorConfig, ut as ScheduleTriggerInput, z as AuthServiceInput } from "./tailor-db-field-BhWvOyky.mjs";
|
|
2
|
+
import { C as IdPInput, D as TailorDBInstance, F as AllowedValues, I as AllowedValuesOutput, O as TailorDBType, f as StaticWebsiteDefinitionBrand, h as SecretsDefinitionBrand, n as RetryPolicy, p as StaticWebsiteInput, r as AppConfig, t as ConcurrencyPolicy, v as IdPUserField, y as IdpDefinitionBrand } from "./workflow.generated-DV87DJfO.mjs";
|
|
3
|
+
import { r as TailorEnv, t as TailorActor } from "./actor-Nag62ZDM.mjs";
|
|
5
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
5
|
import { Client } from "@urql/core";
|
|
7
6
|
import { StandardCRON } from "ts-cron-validator";
|
|
@@ -1121,4 +1120,4 @@ declare namespace t {
|
|
|
1121
1120
|
}
|
|
1122
1121
|
//#endregion
|
|
1123
1122
|
export { recordDeletedTrigger as $, AuthAccessTokenRefreshedArgs as A, RecordUpdatedArgs as B, IncomingWebhookTriggerOptions as C, MachineUserNameRegistry as Ct, scheduleTrigger as D, ScheduleTrigger as E, IdpUserDeletedArgs as F, authAccessTokenRefreshedTrigger as G, ResolverExecutedTrigger as H, IdpUserTrigger as I, idpUserCreatedTrigger as J, authAccessTokenRevokedTrigger as K, IdpUserUpdatedArgs as L, AuthAccessTokenTrigger as M, IdpUserArgs as N, AuthAccessTokenArgs as O, IdpUserCreatedArgs as P, recordCreatedTrigger as Q, RecordCreatedArgs as R, IncomingWebhookTrigger as S, MachineUserName as St, ScheduleArgs as T, TailorDBTrigger as U, ResolverExecutedArgs as V, authAccessTokenIssuedTrigger as W, idpUserTrigger as X, idpUserDeletedTrigger as Y, idpUserUpdatedTrigger as Z, Trigger as _, AuthInvoker as _t, defineGenerators as a, Operation as at, IncomingWebhookResponse as b, IdpNameRegistry as bt, defineIdp as c, Workflow as ct, unsafeAllowAllIdPPermission as d, WORKFLOW_TEST_ENV_KEY as dt, recordTrigger as et, defineStaticWebSite as f, WorkflowJob as ft, createExecutor as g, createResolver as gt, defineWaitPoints as h, QueryType as ht, defineConfig as i, GqlOperation as it, AuthAccessTokenRevokedArgs as j, AuthAccessTokenIssuedArgs as k, IdPPermission as l, WorkflowConfig as lt, defineWaitPoint as m, createWorkflowJob as mt, output as n, resolverExecutedTrigger as nt, definePlugins as o, WebhookOperation as ot, WaitPointInstance as p, WorkflowJobContext as pt, authAccessTokenTrigger as q, t as r, FunctionOperation as rt, defineSecretManager as s, WorkflowOperation as st, infer as t, recordUpdatedTrigger as tt, IdPPermissionCondition as u, createWorkflow as ut, IncomingWebhookArgs as v, defineAuth as vt, incomingWebhookTrigger as w, IncomingWebhookResponseConfig as x, TailorField as xt, IncomingWebhookRequest as y, IdpName as yt, RecordDeletedArgs as z };
|
|
1124
|
-
//# sourceMappingURL=index-
|
|
1123
|
+
//# sourceMappingURL=index-BD99GoHO.d.mts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { o as Plugin } from "./tailor-db-field-4bMLe25-.mjs";
|
|
1
|
+
import { o as Plugin } from "./tailor-db-field-BhWvOyky.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/plugin/builtin/file-utils/index.d.ts
|
|
5
4
|
/** Unique identifier for the file utilities generator plugin. */
|
|
@@ -16,4 +15,4 @@ type FileUtilsPluginOptions = {
|
|
|
16
15
|
declare function fileUtilsPlugin(options: FileUtilsPluginOptions): Plugin<unknown, FileUtilsPluginOptions>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { fileUtilsPlugin as n, FileUtilsGeneratorID as t };
|
|
19
|
-
//# sourceMappingURL=index-
|
|
18
|
+
//# sourceMappingURL=index-BXwAT_oE.d.mts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { o as Plugin } from "./tailor-db-field-4bMLe25-.mjs";
|
|
1
|
+
import { o as Plugin } from "./tailor-db-field-BhWvOyky.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/plugin/builtin/seed/index.d.ts
|
|
5
4
|
/** Unique identifier for the seed generator plugin. */
|
|
@@ -45,4 +44,4 @@ type SeedPluginOptions = {
|
|
|
45
44
|
declare function seedPlugin(options: SeedPluginOptions): Plugin<unknown, SeedPluginOptions>;
|
|
46
45
|
//#endregion
|
|
47
46
|
export { seedPlugin as n, SeedGeneratorID as t };
|
|
48
|
-
//# sourceMappingURL=index-
|
|
47
|
+
//# sourceMappingURL=index-CYAZkd4b.d.mts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { o as Plugin } from "./tailor-db-field-4bMLe25-.mjs";
|
|
1
|
+
import { o as Plugin } from "./tailor-db-field-BhWvOyky.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/plugin/builtin/enum-constants/index.d.ts
|
|
5
4
|
/** Unique identifier for the enum constants generator plugin. */
|
|
@@ -16,4 +15,4 @@ type EnumConstantsPluginOptions = {
|
|
|
16
15
|
declare function enumConstantsPlugin(options: EnumConstantsPluginOptions): Plugin<unknown, EnumConstantsPluginOptions>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { enumConstantsPlugin as n, EnumConstantsGeneratorID as t };
|
|
19
|
-
//# sourceMappingURL=index-
|
|
18
|
+
//# sourceMappingURL=index-CfSjuxzK.d.mts.map
|