skedyul 0.3.0 → 0.3.2
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/dist/.build-stamp +1 -1
- package/dist/config/app-config.d.ts +73 -0
- package/dist/config/app-config.js +12 -0
- package/dist/config/index.d.ts +9 -0
- package/dist/config/index.js +33 -0
- package/dist/config/loader.d.ts +7 -0
- package/dist/config/loader.js +119 -0
- package/dist/config/types/agent.d.ts +29 -0
- package/dist/config/types/agent.js +5 -0
- package/dist/config/types/channel.d.ts +46 -0
- package/dist/config/types/channel.js +2 -0
- package/dist/config/types/compute.d.ts +1 -0
- package/dist/config/types/compute.js +5 -0
- package/dist/config/types/env.d.ts +16 -0
- package/dist/config/types/env.js +5 -0
- package/dist/config/types/index.d.ts +9 -0
- package/dist/config/types/index.js +26 -0
- package/dist/config/types/model.d.ts +62 -0
- package/dist/config/types/model.js +2 -0
- package/dist/config/types/page.d.ts +436 -0
- package/dist/config/types/page.js +5 -0
- package/dist/config/types/resource.d.ts +30 -0
- package/dist/config/types/resource.js +5 -0
- package/dist/config/types/webhook.d.ts +35 -0
- package/dist/config/types/webhook.js +5 -0
- package/dist/config/types/workflow.d.ts +24 -0
- package/dist/config/types/workflow.js +2 -0
- package/dist/config/utils.d.ts +16 -0
- package/dist/config/utils.js +37 -0
- package/dist/config.d.ts +5 -767
- package/dist/config.js +11 -151
- package/dist/schemas.d.ts +43 -43
- package/dist/server/core-api-handler.d.ts +8 -0
- package/dist/server/core-api-handler.js +148 -0
- package/dist/server/dedicated.d.ts +7 -0
- package/dist/server/dedicated.js +610 -0
- package/dist/server/handler-helpers.d.ts +24 -0
- package/dist/server/handler-helpers.js +75 -0
- package/dist/server/index.d.ts +19 -0
- package/dist/server/index.js +196 -0
- package/dist/server/serverless.d.ts +7 -0
- package/dist/server/serverless.js +629 -0
- package/dist/server/startup-logger.d.ts +9 -0
- package/dist/server/startup-logger.js +113 -0
- package/dist/server/tool-handler.d.ts +14 -0
- package/dist/server/tool-handler.js +189 -0
- package/dist/server/types.d.ts +22 -0
- package/dist/server/types.js +2 -0
- package/dist/server/utils/env.d.ts +12 -0
- package/dist/server/utils/env.js +38 -0
- package/dist/server/utils/http.d.ts +30 -0
- package/dist/server/utils/http.js +81 -0
- package/dist/server/utils/index.d.ts +3 -0
- package/dist/server/utils/index.js +24 -0
- package/dist/server/utils/schema.d.ts +22 -0
- package/dist/server/utils/schema.js +102 -0
- package/dist/server.d.ts +7 -11
- package/dist/server.js +39 -2026
- package/dist/types/aws.d.ts +15 -0
- package/dist/types/aws.js +5 -0
- package/dist/types/handlers.d.ts +122 -0
- package/dist/types/handlers.js +2 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.js +16 -0
- package/dist/types/server.d.ts +43 -0
- package/dist/types/server.js +2 -0
- package/dist/types/shared.d.ts +16 -0
- package/dist/types/shared.js +5 -0
- package/dist/types/tool-context.d.ts +64 -0
- package/dist/types/tool-context.js +12 -0
- package/dist/types/tool.d.ts +96 -0
- package/dist/types/tool.js +19 -0
- package/dist/types/webhook.d.ts +116 -0
- package/dist/types/webhook.js +7 -0
- package/dist/types.d.ts +4 -461
- package/dist/types.js +21 -31
- package/package.json +2 -2
package/dist/config.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Config module - re-exports from the config folder
|
|
4
|
+
*
|
|
5
|
+
* This file maintains backward compatibility while the actual configuration types
|
|
6
|
+
* have been split into smaller, focused modules in the config/ folder.
|
|
7
|
+
*/
|
|
2
8
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
9
|
if (k2 === undefined) k2 = k;
|
|
4
10
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -10,155 +16,9 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
16
|
if (k2 === undefined) k2 = k;
|
|
11
17
|
o[k2] = m[k];
|
|
12
18
|
}));
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
35
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
|
|
37
|
-
exports
|
|
38
|
-
exports.loadConfig = loadConfig;
|
|
39
|
-
exports.validateConfig = validateConfig;
|
|
40
|
-
exports.getAllEnvKeys = getAllEnvKeys;
|
|
41
|
-
exports.getRequiredInstallEnvKeys = getRequiredInstallEnvKeys;
|
|
42
|
-
const fs = __importStar(require("fs"));
|
|
43
|
-
const path = __importStar(require("path"));
|
|
44
|
-
const os = __importStar(require("os"));
|
|
45
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
46
|
-
// Helper Function
|
|
47
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
48
|
-
/**
|
|
49
|
-
* Define a Skedyul app configuration with full type safety.
|
|
50
|
-
*/
|
|
51
|
-
function defineConfig(config) {
|
|
52
|
-
return config;
|
|
53
|
-
}
|
|
54
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
55
|
-
// Config Loading Utilities
|
|
56
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
57
|
-
exports.CONFIG_FILE_NAMES = [
|
|
58
|
-
'skedyul.config.ts',
|
|
59
|
-
'skedyul.config.js',
|
|
60
|
-
'skedyul.config.mjs',
|
|
61
|
-
'skedyul.config.cjs',
|
|
62
|
-
];
|
|
63
|
-
async function transpileTypeScript(filePath) {
|
|
64
|
-
const content = fs.readFileSync(filePath, 'utf-8');
|
|
65
|
-
let transpiled = content
|
|
66
|
-
.replace(/import\s+type\s+\{[^}]+\}\s+from\s+['"][^'"]+['"]\s*;?\n?/g, '')
|
|
67
|
-
.replace(/import\s+\{\s*defineConfig\s*\}\s+from\s+['"]skedyul['"]\s*;?\n?/g, '')
|
|
68
|
-
.replace(/:\s*SkedyulConfig/g, '')
|
|
69
|
-
.replace(/export\s+default\s+/, 'module.exports = ')
|
|
70
|
-
.replace(/defineConfig\s*\(\s*\{/, '{')
|
|
71
|
-
.replace(/\}\s*\)\s*;?\s*$/, '}');
|
|
72
|
-
return transpiled;
|
|
73
|
-
}
|
|
74
|
-
async function loadConfig(configPath) {
|
|
75
|
-
const absolutePath = path.resolve(configPath);
|
|
76
|
-
if (!fs.existsSync(absolutePath)) {
|
|
77
|
-
throw new Error(`Config file not found: ${absolutePath}`);
|
|
78
|
-
}
|
|
79
|
-
const isTypeScript = absolutePath.endsWith('.ts');
|
|
80
|
-
try {
|
|
81
|
-
let moduleToLoad = absolutePath;
|
|
82
|
-
if (isTypeScript) {
|
|
83
|
-
const transpiled = await transpileTypeScript(absolutePath);
|
|
84
|
-
const tempDir = os.tmpdir();
|
|
85
|
-
const tempFile = path.join(tempDir, `skedyul-config-${Date.now()}.js`);
|
|
86
|
-
fs.writeFileSync(tempFile, transpiled);
|
|
87
|
-
moduleToLoad = tempFile;
|
|
88
|
-
try {
|
|
89
|
-
const module = require(moduleToLoad);
|
|
90
|
-
const config = module.default || module;
|
|
91
|
-
if (!config || typeof config !== 'object') {
|
|
92
|
-
throw new Error('Config file must export a configuration object');
|
|
93
|
-
}
|
|
94
|
-
if (!config.name || typeof config.name !== 'string') {
|
|
95
|
-
throw new Error('Config must have a "name" property');
|
|
96
|
-
}
|
|
97
|
-
return config;
|
|
98
|
-
}
|
|
99
|
-
finally {
|
|
100
|
-
try {
|
|
101
|
-
fs.unlinkSync(tempFile);
|
|
102
|
-
}
|
|
103
|
-
catch {
|
|
104
|
-
// Ignore cleanup errors
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
const module = await Promise.resolve(`${moduleToLoad}`).then(s => __importStar(require(s)));
|
|
109
|
-
const config = module.default || module;
|
|
110
|
-
if (!config || typeof config !== 'object') {
|
|
111
|
-
throw new Error('Config file must export a configuration object');
|
|
112
|
-
}
|
|
113
|
-
if (!config.name || typeof config.name !== 'string') {
|
|
114
|
-
throw new Error('Config must have a "name" property');
|
|
115
|
-
}
|
|
116
|
-
return config;
|
|
117
|
-
}
|
|
118
|
-
catch (error) {
|
|
119
|
-
throw new Error(`Failed to load config from ${configPath}: ${error instanceof Error ? error.message : String(error)}`);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
function validateConfig(config) {
|
|
123
|
-
const errors = [];
|
|
124
|
-
if (!config.name) {
|
|
125
|
-
errors.push('Missing required field: name');
|
|
126
|
-
}
|
|
127
|
-
if (config.computeLayer && !['serverless', 'dedicated'].includes(config.computeLayer)) {
|
|
128
|
-
errors.push(`Invalid computeLayer: ${config.computeLayer}. Must be 'serverless' or 'dedicated'`);
|
|
129
|
-
}
|
|
130
|
-
return { valid: errors.length === 0, errors };
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Get all environment variable keys from the config.
|
|
134
|
-
* Returns separate arrays for global and install-level keys.
|
|
135
|
-
* Note: With the new config structure, all env is at provision level (global).
|
|
136
|
-
*/
|
|
137
|
-
function getAllEnvKeys(config) {
|
|
138
|
-
// Resolve provision if it's already resolved (not a Promise)
|
|
139
|
-
const provision = config.provision && 'env' in config.provision
|
|
140
|
-
? config.provision
|
|
141
|
-
: undefined;
|
|
142
|
-
const globalKeys = provision?.env ? Object.keys(provision.env) : [];
|
|
143
|
-
// Install-level env is deprecated in the new structure
|
|
144
|
-
return {
|
|
145
|
-
global: globalKeys,
|
|
146
|
-
install: [],
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Get required install-level environment variable keys.
|
|
151
|
-
* Note: With the new config structure, install-level env is deprecated.
|
|
152
|
-
* All required env vars are now at provision level.
|
|
153
|
-
*/
|
|
154
|
-
function getRequiredInstallEnvKeys(config) {
|
|
155
|
-
// Resolve provision if it's already resolved (not a Promise)
|
|
156
|
-
const provision = config.provision && 'env' in config.provision
|
|
157
|
-
? config.provision
|
|
158
|
-
: undefined;
|
|
159
|
-
if (!provision?.env)
|
|
160
|
-
return [];
|
|
161
|
-
return Object.entries(provision.env)
|
|
162
|
-
.filter(([, def]) => def.required)
|
|
163
|
-
.map(([key]) => key);
|
|
164
|
-
}
|
|
23
|
+
// Re-export everything from the config module
|
|
24
|
+
__exportStar(require("./config/index"), exports);
|
package/dist/schemas.d.ts
CHANGED
|
@@ -410,12 +410,12 @@ export declare const PageTypeSchema: z.ZodEnum<{
|
|
|
410
410
|
LIST: "LIST";
|
|
411
411
|
}>;
|
|
412
412
|
export declare const PageBlockTypeSchema: z.ZodEnum<{
|
|
413
|
-
list: "list";
|
|
414
413
|
form: "form";
|
|
415
414
|
spreadsheet: "spreadsheet";
|
|
416
415
|
kanban: "kanban";
|
|
417
416
|
calendar: "calendar";
|
|
418
417
|
link: "link";
|
|
418
|
+
list: "list";
|
|
419
419
|
card: "card";
|
|
420
420
|
}>;
|
|
421
421
|
export declare const PageFieldTypeSchema: z.ZodEnum<{
|
|
@@ -461,18 +461,18 @@ export declare const FormV2StylePropsSchema: z.ZodObject<{
|
|
|
461
461
|
export declare const FieldSettingButtonPropsSchema: z.ZodObject<{
|
|
462
462
|
label: z.ZodString;
|
|
463
463
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
464
|
-
default: "default";
|
|
465
464
|
link: "link";
|
|
466
465
|
secondary: "secondary";
|
|
467
466
|
destructive: "destructive";
|
|
467
|
+
default: "default";
|
|
468
468
|
outline: "outline";
|
|
469
469
|
ghost: "ghost";
|
|
470
470
|
}>>;
|
|
471
471
|
size: z.ZodOptional<z.ZodEnum<{
|
|
472
472
|
default: "default";
|
|
473
|
-
icon: "icon";
|
|
474
473
|
sm: "sm";
|
|
475
474
|
lg: "lg";
|
|
475
|
+
icon: "icon";
|
|
476
476
|
}>>;
|
|
477
477
|
isLoading: z.ZodOptional<z.ZodBoolean>;
|
|
478
478
|
isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
@@ -524,12 +524,12 @@ export declare const InputComponentDefinitionSchema: z.ZodObject<{
|
|
|
524
524
|
helpText: z.ZodOptional<z.ZodString>;
|
|
525
525
|
type: z.ZodOptional<z.ZodEnum<{
|
|
526
526
|
number: "number";
|
|
527
|
-
hidden: "hidden";
|
|
528
527
|
text: "text";
|
|
529
528
|
email: "email";
|
|
530
529
|
password: "password";
|
|
531
530
|
tel: "tel";
|
|
532
531
|
url: "url";
|
|
532
|
+
hidden: "hidden";
|
|
533
533
|
}>>;
|
|
534
534
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
535
535
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -681,8 +681,8 @@ export declare const FileSettingComponentDefinitionSchema: z.ZodObject<{
|
|
|
681
681
|
button: z.ZodOptional<z.ZodObject<{
|
|
682
682
|
label: z.ZodOptional<z.ZodString>;
|
|
683
683
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
684
|
-
default: "default";
|
|
685
684
|
link: "link";
|
|
685
|
+
default: "default";
|
|
686
686
|
outline: "outline";
|
|
687
687
|
ghost: "ghost";
|
|
688
688
|
}>>;
|
|
@@ -759,8 +759,8 @@ export declare const AlertComponentDefinitionSchema: z.ZodObject<{
|
|
|
759
759
|
description: z.ZodString;
|
|
760
760
|
icon: z.ZodOptional<z.ZodString>;
|
|
761
761
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
762
|
-
default: "default";
|
|
763
762
|
destructive: "destructive";
|
|
763
|
+
default: "default";
|
|
764
764
|
}>>;
|
|
765
765
|
}, z.core.$strip>;
|
|
766
766
|
}, z.core.$strip>;
|
|
@@ -797,18 +797,18 @@ export declare const FieldSettingComponentDefinitionSchema: z.ZodObject<{
|
|
|
797
797
|
button: z.ZodObject<{
|
|
798
798
|
label: z.ZodString;
|
|
799
799
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
800
|
-
default: "default";
|
|
801
800
|
link: "link";
|
|
802
801
|
secondary: "secondary";
|
|
803
802
|
destructive: "destructive";
|
|
803
|
+
default: "default";
|
|
804
804
|
outline: "outline";
|
|
805
805
|
ghost: "ghost";
|
|
806
806
|
}>>;
|
|
807
807
|
size: z.ZodOptional<z.ZodEnum<{
|
|
808
808
|
default: "default";
|
|
809
|
-
icon: "icon";
|
|
810
809
|
sm: "sm";
|
|
811
810
|
lg: "lg";
|
|
811
|
+
icon: "icon";
|
|
812
812
|
}>>;
|
|
813
813
|
isLoading: z.ZodOptional<z.ZodBoolean>;
|
|
814
814
|
isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
@@ -847,12 +847,12 @@ export declare const FormV2ComponentDefinitionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
847
847
|
helpText: z.ZodOptional<z.ZodString>;
|
|
848
848
|
type: z.ZodOptional<z.ZodEnum<{
|
|
849
849
|
number: "number";
|
|
850
|
-
hidden: "hidden";
|
|
851
850
|
text: "text";
|
|
852
851
|
email: "email";
|
|
853
852
|
password: "password";
|
|
854
853
|
tel: "tel";
|
|
855
854
|
url: "url";
|
|
855
|
+
hidden: "hidden";
|
|
856
856
|
}>>;
|
|
857
857
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
858
858
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -979,18 +979,18 @@ export declare const FormV2ComponentDefinitionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
979
979
|
button: z.ZodObject<{
|
|
980
980
|
label: z.ZodString;
|
|
981
981
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
982
|
-
default: "default";
|
|
983
982
|
link: "link";
|
|
984
983
|
secondary: "secondary";
|
|
985
984
|
destructive: "destructive";
|
|
985
|
+
default: "default";
|
|
986
986
|
outline: "outline";
|
|
987
987
|
ghost: "ghost";
|
|
988
988
|
}>>;
|
|
989
989
|
size: z.ZodOptional<z.ZodEnum<{
|
|
990
990
|
default: "default";
|
|
991
|
-
icon: "icon";
|
|
992
991
|
sm: "sm";
|
|
993
992
|
lg: "lg";
|
|
993
|
+
icon: "icon";
|
|
994
994
|
}>>;
|
|
995
995
|
isLoading: z.ZodOptional<z.ZodBoolean>;
|
|
996
996
|
isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
@@ -1043,8 +1043,8 @@ export declare const FormV2ComponentDefinitionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
1043
1043
|
button: z.ZodOptional<z.ZodObject<{
|
|
1044
1044
|
label: z.ZodOptional<z.ZodString>;
|
|
1045
1045
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
1046
|
-
default: "default";
|
|
1047
1046
|
link: "link";
|
|
1047
|
+
default: "default";
|
|
1048
1048
|
outline: "outline";
|
|
1049
1049
|
ghost: "ghost";
|
|
1050
1050
|
}>>;
|
|
@@ -1107,8 +1107,8 @@ export declare const FormV2ComponentDefinitionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
1107
1107
|
description: z.ZodString;
|
|
1108
1108
|
icon: z.ZodOptional<z.ZodString>;
|
|
1109
1109
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
1110
|
-
default: "default";
|
|
1111
1110
|
destructive: "destructive";
|
|
1111
|
+
default: "default";
|
|
1112
1112
|
}>>;
|
|
1113
1113
|
}, z.core.$strip>;
|
|
1114
1114
|
}, z.core.$strip>], "component">;
|
|
@@ -1129,12 +1129,12 @@ export declare const FormV2PropsDefinitionSchema: z.ZodObject<{
|
|
|
1129
1129
|
helpText: z.ZodOptional<z.ZodString>;
|
|
1130
1130
|
type: z.ZodOptional<z.ZodEnum<{
|
|
1131
1131
|
number: "number";
|
|
1132
|
-
hidden: "hidden";
|
|
1133
1132
|
text: "text";
|
|
1134
1133
|
email: "email";
|
|
1135
1134
|
password: "password";
|
|
1136
1135
|
tel: "tel";
|
|
1137
1136
|
url: "url";
|
|
1137
|
+
hidden: "hidden";
|
|
1138
1138
|
}>>;
|
|
1139
1139
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1140
1140
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1261,18 +1261,18 @@ export declare const FormV2PropsDefinitionSchema: z.ZodObject<{
|
|
|
1261
1261
|
button: z.ZodObject<{
|
|
1262
1262
|
label: z.ZodString;
|
|
1263
1263
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
1264
|
-
default: "default";
|
|
1265
1264
|
link: "link";
|
|
1266
1265
|
secondary: "secondary";
|
|
1267
1266
|
destructive: "destructive";
|
|
1267
|
+
default: "default";
|
|
1268
1268
|
outline: "outline";
|
|
1269
1269
|
ghost: "ghost";
|
|
1270
1270
|
}>>;
|
|
1271
1271
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1272
1272
|
default: "default";
|
|
1273
|
-
icon: "icon";
|
|
1274
1273
|
sm: "sm";
|
|
1275
1274
|
lg: "lg";
|
|
1275
|
+
icon: "icon";
|
|
1276
1276
|
}>>;
|
|
1277
1277
|
isLoading: z.ZodOptional<z.ZodBoolean>;
|
|
1278
1278
|
isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
@@ -1325,8 +1325,8 @@ export declare const FormV2PropsDefinitionSchema: z.ZodObject<{
|
|
|
1325
1325
|
button: z.ZodOptional<z.ZodObject<{
|
|
1326
1326
|
label: z.ZodOptional<z.ZodString>;
|
|
1327
1327
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
1328
|
-
default: "default";
|
|
1329
1328
|
link: "link";
|
|
1329
|
+
default: "default";
|
|
1330
1330
|
outline: "outline";
|
|
1331
1331
|
ghost: "ghost";
|
|
1332
1332
|
}>>;
|
|
@@ -1389,8 +1389,8 @@ export declare const FormV2PropsDefinitionSchema: z.ZodObject<{
|
|
|
1389
1389
|
description: z.ZodString;
|
|
1390
1390
|
icon: z.ZodOptional<z.ZodString>;
|
|
1391
1391
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
1392
|
-
default: "default";
|
|
1393
1392
|
destructive: "destructive";
|
|
1393
|
+
default: "default";
|
|
1394
1394
|
}>>;
|
|
1395
1395
|
}, z.core.$strip>;
|
|
1396
1396
|
}, z.core.$strip>], "component">>;
|
|
@@ -1450,12 +1450,12 @@ export declare const CardBlockDefinitionSchema: z.ZodObject<{
|
|
|
1450
1450
|
helpText: z.ZodOptional<z.ZodString>;
|
|
1451
1451
|
type: z.ZodOptional<z.ZodEnum<{
|
|
1452
1452
|
number: "number";
|
|
1453
|
-
hidden: "hidden";
|
|
1454
1453
|
text: "text";
|
|
1455
1454
|
email: "email";
|
|
1456
1455
|
password: "password";
|
|
1457
1456
|
tel: "tel";
|
|
1458
1457
|
url: "url";
|
|
1458
|
+
hidden: "hidden";
|
|
1459
1459
|
}>>;
|
|
1460
1460
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1461
1461
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1582,18 +1582,18 @@ export declare const CardBlockDefinitionSchema: z.ZodObject<{
|
|
|
1582
1582
|
button: z.ZodObject<{
|
|
1583
1583
|
label: z.ZodString;
|
|
1584
1584
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
1585
|
-
default: "default";
|
|
1586
1585
|
link: "link";
|
|
1587
1586
|
secondary: "secondary";
|
|
1588
1587
|
destructive: "destructive";
|
|
1588
|
+
default: "default";
|
|
1589
1589
|
outline: "outline";
|
|
1590
1590
|
ghost: "ghost";
|
|
1591
1591
|
}>>;
|
|
1592
1592
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1593
1593
|
default: "default";
|
|
1594
|
-
icon: "icon";
|
|
1595
1594
|
sm: "sm";
|
|
1596
1595
|
lg: "lg";
|
|
1596
|
+
icon: "icon";
|
|
1597
1597
|
}>>;
|
|
1598
1598
|
isLoading: z.ZodOptional<z.ZodBoolean>;
|
|
1599
1599
|
isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
@@ -1646,8 +1646,8 @@ export declare const CardBlockDefinitionSchema: z.ZodObject<{
|
|
|
1646
1646
|
button: z.ZodOptional<z.ZodObject<{
|
|
1647
1647
|
label: z.ZodOptional<z.ZodString>;
|
|
1648
1648
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
1649
|
-
default: "default";
|
|
1650
1649
|
link: "link";
|
|
1650
|
+
default: "default";
|
|
1651
1651
|
outline: "outline";
|
|
1652
1652
|
ghost: "ghost";
|
|
1653
1653
|
}>>;
|
|
@@ -1710,8 +1710,8 @@ export declare const CardBlockDefinitionSchema: z.ZodObject<{
|
|
|
1710
1710
|
description: z.ZodString;
|
|
1711
1711
|
icon: z.ZodOptional<z.ZodString>;
|
|
1712
1712
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
1713
|
-
default: "default";
|
|
1714
1713
|
destructive: "destructive";
|
|
1714
|
+
default: "default";
|
|
1715
1715
|
}>>;
|
|
1716
1716
|
}, z.core.$strip>;
|
|
1717
1717
|
}, z.core.$strip>], "component">>;
|
|
@@ -1869,12 +1869,12 @@ export declare const PageBlockDefinitionSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
1869
1869
|
helpText: z.ZodOptional<z.ZodString>;
|
|
1870
1870
|
type: z.ZodOptional<z.ZodEnum<{
|
|
1871
1871
|
number: "number";
|
|
1872
|
-
hidden: "hidden";
|
|
1873
1872
|
text: "text";
|
|
1874
1873
|
email: "email";
|
|
1875
1874
|
password: "password";
|
|
1876
1875
|
tel: "tel";
|
|
1877
1876
|
url: "url";
|
|
1877
|
+
hidden: "hidden";
|
|
1878
1878
|
}>>;
|
|
1879
1879
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1880
1880
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2001,18 +2001,18 @@ export declare const PageBlockDefinitionSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
2001
2001
|
button: z.ZodObject<{
|
|
2002
2002
|
label: z.ZodString;
|
|
2003
2003
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
2004
|
-
default: "default";
|
|
2005
2004
|
link: "link";
|
|
2006
2005
|
secondary: "secondary";
|
|
2007
2006
|
destructive: "destructive";
|
|
2007
|
+
default: "default";
|
|
2008
2008
|
outline: "outline";
|
|
2009
2009
|
ghost: "ghost";
|
|
2010
2010
|
}>>;
|
|
2011
2011
|
size: z.ZodOptional<z.ZodEnum<{
|
|
2012
2012
|
default: "default";
|
|
2013
|
-
icon: "icon";
|
|
2014
2013
|
sm: "sm";
|
|
2015
2014
|
lg: "lg";
|
|
2015
|
+
icon: "icon";
|
|
2016
2016
|
}>>;
|
|
2017
2017
|
isLoading: z.ZodOptional<z.ZodBoolean>;
|
|
2018
2018
|
isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
@@ -2065,8 +2065,8 @@ export declare const PageBlockDefinitionSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
2065
2065
|
button: z.ZodOptional<z.ZodObject<{
|
|
2066
2066
|
label: z.ZodOptional<z.ZodString>;
|
|
2067
2067
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
2068
|
-
default: "default";
|
|
2069
2068
|
link: "link";
|
|
2069
|
+
default: "default";
|
|
2070
2070
|
outline: "outline";
|
|
2071
2071
|
ghost: "ghost";
|
|
2072
2072
|
}>>;
|
|
@@ -2129,8 +2129,8 @@ export declare const PageBlockDefinitionSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
2129
2129
|
description: z.ZodString;
|
|
2130
2130
|
icon: z.ZodOptional<z.ZodString>;
|
|
2131
2131
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
2132
|
-
default: "default";
|
|
2133
2132
|
destructive: "destructive";
|
|
2133
|
+
default: "default";
|
|
2134
2134
|
}>>;
|
|
2135
2135
|
}, z.core.$strip>;
|
|
2136
2136
|
}, z.core.$strip>], "component">>;
|
|
@@ -2373,12 +2373,12 @@ export declare const PageDefinitionSchema: z.ZodObject<{
|
|
|
2373
2373
|
helpText: z.ZodOptional<z.ZodString>;
|
|
2374
2374
|
type: z.ZodOptional<z.ZodEnum<{
|
|
2375
2375
|
number: "number";
|
|
2376
|
-
hidden: "hidden";
|
|
2377
2376
|
text: "text";
|
|
2378
2377
|
email: "email";
|
|
2379
2378
|
password: "password";
|
|
2380
2379
|
tel: "tel";
|
|
2381
2380
|
url: "url";
|
|
2381
|
+
hidden: "hidden";
|
|
2382
2382
|
}>>;
|
|
2383
2383
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2384
2384
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2505,18 +2505,18 @@ export declare const PageDefinitionSchema: z.ZodObject<{
|
|
|
2505
2505
|
button: z.ZodObject<{
|
|
2506
2506
|
label: z.ZodString;
|
|
2507
2507
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
2508
|
-
default: "default";
|
|
2509
2508
|
link: "link";
|
|
2510
2509
|
secondary: "secondary";
|
|
2511
2510
|
destructive: "destructive";
|
|
2511
|
+
default: "default";
|
|
2512
2512
|
outline: "outline";
|
|
2513
2513
|
ghost: "ghost";
|
|
2514
2514
|
}>>;
|
|
2515
2515
|
size: z.ZodOptional<z.ZodEnum<{
|
|
2516
2516
|
default: "default";
|
|
2517
|
-
icon: "icon";
|
|
2518
2517
|
sm: "sm";
|
|
2519
2518
|
lg: "lg";
|
|
2519
|
+
icon: "icon";
|
|
2520
2520
|
}>>;
|
|
2521
2521
|
isLoading: z.ZodOptional<z.ZodBoolean>;
|
|
2522
2522
|
isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
@@ -2569,8 +2569,8 @@ export declare const PageDefinitionSchema: z.ZodObject<{
|
|
|
2569
2569
|
button: z.ZodOptional<z.ZodObject<{
|
|
2570
2570
|
label: z.ZodOptional<z.ZodString>;
|
|
2571
2571
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
2572
|
-
default: "default";
|
|
2573
2572
|
link: "link";
|
|
2573
|
+
default: "default";
|
|
2574
2574
|
outline: "outline";
|
|
2575
2575
|
ghost: "ghost";
|
|
2576
2576
|
}>>;
|
|
@@ -2633,8 +2633,8 @@ export declare const PageDefinitionSchema: z.ZodObject<{
|
|
|
2633
2633
|
description: z.ZodString;
|
|
2634
2634
|
icon: z.ZodOptional<z.ZodString>;
|
|
2635
2635
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
2636
|
-
default: "default";
|
|
2637
2636
|
destructive: "destructive";
|
|
2637
|
+
default: "default";
|
|
2638
2638
|
}>>;
|
|
2639
2639
|
}, z.core.$strip>;
|
|
2640
2640
|
}, z.core.$strip>], "component">>;
|
|
@@ -3055,12 +3055,12 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
3055
3055
|
helpText: z.ZodOptional<z.ZodString>;
|
|
3056
3056
|
type: z.ZodOptional<z.ZodEnum<{
|
|
3057
3057
|
number: "number";
|
|
3058
|
-
hidden: "hidden";
|
|
3059
3058
|
text: "text";
|
|
3060
3059
|
email: "email";
|
|
3061
3060
|
password: "password";
|
|
3062
3061
|
tel: "tel";
|
|
3063
3062
|
url: "url";
|
|
3063
|
+
hidden: "hidden";
|
|
3064
3064
|
}>>;
|
|
3065
3065
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
3066
3066
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3187,18 +3187,18 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
3187
3187
|
button: z.ZodObject<{
|
|
3188
3188
|
label: z.ZodString;
|
|
3189
3189
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
3190
|
-
default: "default";
|
|
3191
3190
|
link: "link";
|
|
3192
3191
|
secondary: "secondary";
|
|
3193
3192
|
destructive: "destructive";
|
|
3193
|
+
default: "default";
|
|
3194
3194
|
outline: "outline";
|
|
3195
3195
|
ghost: "ghost";
|
|
3196
3196
|
}>>;
|
|
3197
3197
|
size: z.ZodOptional<z.ZodEnum<{
|
|
3198
3198
|
default: "default";
|
|
3199
|
-
icon: "icon";
|
|
3200
3199
|
sm: "sm";
|
|
3201
3200
|
lg: "lg";
|
|
3201
|
+
icon: "icon";
|
|
3202
3202
|
}>>;
|
|
3203
3203
|
isLoading: z.ZodOptional<z.ZodBoolean>;
|
|
3204
3204
|
isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
@@ -3251,8 +3251,8 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
3251
3251
|
button: z.ZodOptional<z.ZodObject<{
|
|
3252
3252
|
label: z.ZodOptional<z.ZodString>;
|
|
3253
3253
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
3254
|
-
default: "default";
|
|
3255
3254
|
link: "link";
|
|
3255
|
+
default: "default";
|
|
3256
3256
|
outline: "outline";
|
|
3257
3257
|
ghost: "ghost";
|
|
3258
3258
|
}>>;
|
|
@@ -3315,8 +3315,8 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
3315
3315
|
description: z.ZodString;
|
|
3316
3316
|
icon: z.ZodOptional<z.ZodString>;
|
|
3317
3317
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
3318
|
-
default: "default";
|
|
3319
3318
|
destructive: "destructive";
|
|
3319
|
+
default: "default";
|
|
3320
3320
|
}>>;
|
|
3321
3321
|
}, z.core.$strip>;
|
|
3322
3322
|
}, z.core.$strip>], "component">>;
|
|
@@ -3697,12 +3697,12 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
3697
3697
|
helpText: z.ZodOptional<z.ZodString>;
|
|
3698
3698
|
type: z.ZodOptional<z.ZodEnum<{
|
|
3699
3699
|
number: "number";
|
|
3700
|
-
hidden: "hidden";
|
|
3701
3700
|
text: "text";
|
|
3702
3701
|
email: "email";
|
|
3703
3702
|
password: "password";
|
|
3704
3703
|
tel: "tel";
|
|
3705
3704
|
url: "url";
|
|
3705
|
+
hidden: "hidden";
|
|
3706
3706
|
}>>;
|
|
3707
3707
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
3708
3708
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3829,18 +3829,18 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
3829
3829
|
button: z.ZodObject<{
|
|
3830
3830
|
label: z.ZodString;
|
|
3831
3831
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
3832
|
-
default: "default";
|
|
3833
3832
|
link: "link";
|
|
3834
3833
|
secondary: "secondary";
|
|
3835
3834
|
destructive: "destructive";
|
|
3835
|
+
default: "default";
|
|
3836
3836
|
outline: "outline";
|
|
3837
3837
|
ghost: "ghost";
|
|
3838
3838
|
}>>;
|
|
3839
3839
|
size: z.ZodOptional<z.ZodEnum<{
|
|
3840
3840
|
default: "default";
|
|
3841
|
-
icon: "icon";
|
|
3842
3841
|
sm: "sm";
|
|
3843
3842
|
lg: "lg";
|
|
3843
|
+
icon: "icon";
|
|
3844
3844
|
}>>;
|
|
3845
3845
|
isLoading: z.ZodOptional<z.ZodBoolean>;
|
|
3846
3846
|
isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
@@ -3893,8 +3893,8 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
3893
3893
|
button: z.ZodOptional<z.ZodObject<{
|
|
3894
3894
|
label: z.ZodOptional<z.ZodString>;
|
|
3895
3895
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
3896
|
-
default: "default";
|
|
3897
3896
|
link: "link";
|
|
3897
|
+
default: "default";
|
|
3898
3898
|
outline: "outline";
|
|
3899
3899
|
ghost: "ghost";
|
|
3900
3900
|
}>>;
|
|
@@ -3957,8 +3957,8 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
3957
3957
|
description: z.ZodString;
|
|
3958
3958
|
icon: z.ZodOptional<z.ZodString>;
|
|
3959
3959
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
3960
|
-
default: "default";
|
|
3961
3960
|
destructive: "destructive";
|
|
3961
|
+
default: "default";
|
|
3962
3962
|
}>>;
|
|
3963
3963
|
}, z.core.$strip>;
|
|
3964
3964
|
}, z.core.$strip>], "component">>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CoreMethod } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Handles core API method calls for communication channels and workplaces
|
|
4
|
+
*/
|
|
5
|
+
export declare function handleCoreMethod(method: CoreMethod, params: Record<string, unknown> | undefined): Promise<{
|
|
6
|
+
status: number;
|
|
7
|
+
payload: unknown;
|
|
8
|
+
}>;
|