skedyul 0.2.63 → 0.2.65
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.d.ts +14 -1
- package/dist/index.d.ts +1 -1
- package/dist/schemas.d.ts +33 -0
- package/dist/schemas.js +16 -3
- package/package.json +1 -1
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1769550616081
|
package/dist/config.d.ts
CHANGED
|
@@ -120,11 +120,24 @@ export interface ChannelCapability {
|
|
|
120
120
|
/** Outbound tool handle */
|
|
121
121
|
send?: string;
|
|
122
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Identifier field configuration for channels.
|
|
125
|
+
* Used to specify how to filter/create identifier fields (e.g., phone, email).
|
|
126
|
+
*/
|
|
127
|
+
export interface ChannelIdentifierField {
|
|
128
|
+
handle: string;
|
|
129
|
+
label: string;
|
|
130
|
+
definition: {
|
|
131
|
+
handle: string;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
123
134
|
export interface ChannelDefinition {
|
|
124
135
|
handle: string;
|
|
125
136
|
name: string;
|
|
126
137
|
icon?: string;
|
|
127
|
-
/**
|
|
138
|
+
/** Structured identifier field config for filtering/creating identifier fields */
|
|
139
|
+
identifierField?: ChannelIdentifierField;
|
|
140
|
+
/** @deprecated Use identifierField instead. Kept for backward compatibility. */
|
|
128
141
|
identifierType?: string;
|
|
129
142
|
/** Capabilities keyed by standard type (messaging, voice, video) */
|
|
130
143
|
capabilities: Partial<Record<ChannelCapabilityType, ChannelCapability>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ declare const _default: {
|
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
12
12
|
export { defineConfig, loadConfig, validateConfig, CONFIG_FILE_NAMES, getAllEnvKeys, getRequiredInstallEnvKeys, } from './config';
|
|
13
|
-
export type { SkedyulConfig, SerializableSkedyulConfig, EnvVariableDefinition, EnvSchema, EnvVisibility, ComputeLayerType, InstallHandlerContext, InstallHandlerResult, InstallHandler, ModelDefinition, ModelFieldDefinition, ResourceScope, FieldOwner, InternalFieldDataType, FieldOption, InlineFieldDefinition, AppFieldVisibility, RelationshipDefinition, RelationshipLink, RelationshipCardinality, OnDeleteBehavior, ChannelDefinition, ChannelCapability, ChannelCapabilityType, WorkflowDefinition, WorkflowAction, WorkflowActionInput, PageDefinition, PageBlockDefinition, PageFieldDefinition, PageActionDefinition, PageType, PageBlockType, PageFieldType, PageFieldSource, PageFormHeader, PageContextMode, PageContextItemDefinition, PageContextDefinition, PageInstanceFilter, NavigationItem, NavigationSection, NavigationSidebar, BreadcrumbItem, NavigationBreadcrumb, NavigationConfig, WebhookHttpMethod, WebhookRequest, WebhookHandlerContext, WebhookHandlerResponse, WebhookHandlerFn, WebhookHandlerDefinition, Webhooks, WebhookHandlerMetadata, ProvisionConfig, ModelDependency, ChannelDependency, WorkflowDependency, ResourceDependency, StructuredFilter, } from './config';
|
|
13
|
+
export type { SkedyulConfig, SerializableSkedyulConfig, EnvVariableDefinition, EnvSchema, EnvVisibility, ComputeLayerType, InstallHandlerContext, InstallHandlerResult, InstallHandler, ModelDefinition, ModelFieldDefinition, ResourceScope, FieldOwner, InternalFieldDataType, FieldOption, InlineFieldDefinition, AppFieldVisibility, RelationshipDefinition, RelationshipLink, RelationshipCardinality, OnDeleteBehavior, ChannelDefinition, ChannelCapability, ChannelCapabilityType, ChannelIdentifierField, WorkflowDefinition, WorkflowAction, WorkflowActionInput, PageDefinition, PageBlockDefinition, PageFieldDefinition, PageActionDefinition, PageType, PageBlockType, PageFieldType, PageFieldSource, PageFormHeader, PageContextMode, PageContextItemDefinition, PageContextDefinition, PageInstanceFilter, NavigationItem, NavigationSection, NavigationSidebar, BreadcrumbItem, NavigationBreadcrumb, NavigationConfig, WebhookHttpMethod, WebhookRequest, WebhookHandlerContext, WebhookHandlerResponse, WebhookHandlerFn, WebhookHandlerDefinition, Webhooks, WebhookHandlerMetadata, ProvisionConfig, ModelDependency, ChannelDependency, WorkflowDependency, ResourceDependency, StructuredFilter, } from './config';
|
package/dist/schemas.d.ts
CHANGED
|
@@ -290,10 +290,28 @@ export declare const ChannelCapabilitySchema: z.ZodObject<{
|
|
|
290
290
|
receive: z.ZodOptional<z.ZodString>;
|
|
291
291
|
send: z.ZodOptional<z.ZodString>;
|
|
292
292
|
}, z.core.$strip>;
|
|
293
|
+
/**
|
|
294
|
+
* Identifier field configuration for channels.
|
|
295
|
+
* Used to specify how to filter/create identifier fields (e.g., phone, email).
|
|
296
|
+
*/
|
|
297
|
+
export declare const ChannelIdentifierFieldSchema: z.ZodObject<{
|
|
298
|
+
handle: z.ZodString;
|
|
299
|
+
label: z.ZodString;
|
|
300
|
+
definition: z.ZodObject<{
|
|
301
|
+
handle: z.ZodString;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
}, z.core.$strip>;
|
|
293
304
|
export declare const ChannelDefinitionSchema: z.ZodObject<{
|
|
294
305
|
handle: z.ZodString;
|
|
295
306
|
name: z.ZodString;
|
|
296
307
|
icon: z.ZodOptional<z.ZodString>;
|
|
308
|
+
identifierField: z.ZodOptional<z.ZodObject<{
|
|
309
|
+
handle: z.ZodString;
|
|
310
|
+
label: z.ZodString;
|
|
311
|
+
definition: z.ZodObject<{
|
|
312
|
+
handle: z.ZodString;
|
|
313
|
+
}, z.core.$strip>;
|
|
314
|
+
}, z.core.$strip>>;
|
|
297
315
|
identifierType: z.ZodOptional<z.ZodString>;
|
|
298
316
|
capabilities: z.ZodRecord<z.ZodEnum<{
|
|
299
317
|
messaging: "messaging";
|
|
@@ -2749,6 +2767,13 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
2749
2767
|
handle: z.ZodString;
|
|
2750
2768
|
name: z.ZodString;
|
|
2751
2769
|
icon: z.ZodOptional<z.ZodString>;
|
|
2770
|
+
identifierField: z.ZodOptional<z.ZodObject<{
|
|
2771
|
+
handle: z.ZodString;
|
|
2772
|
+
label: z.ZodString;
|
|
2773
|
+
definition: z.ZodObject<{
|
|
2774
|
+
handle: z.ZodString;
|
|
2775
|
+
}, z.core.$strip>;
|
|
2776
|
+
}, z.core.$strip>>;
|
|
2752
2777
|
identifierType: z.ZodOptional<z.ZodString>;
|
|
2753
2778
|
capabilities: z.ZodRecord<z.ZodEnum<{
|
|
2754
2779
|
messaging: "messaging";
|
|
@@ -3348,6 +3373,13 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
3348
3373
|
handle: z.ZodString;
|
|
3349
3374
|
name: z.ZodString;
|
|
3350
3375
|
icon: z.ZodOptional<z.ZodString>;
|
|
3376
|
+
identifierField: z.ZodOptional<z.ZodObject<{
|
|
3377
|
+
handle: z.ZodString;
|
|
3378
|
+
label: z.ZodString;
|
|
3379
|
+
definition: z.ZodObject<{
|
|
3380
|
+
handle: z.ZodString;
|
|
3381
|
+
}, z.core.$strip>;
|
|
3382
|
+
}, z.core.$strip>>;
|
|
3351
3383
|
identifierType: z.ZodOptional<z.ZodString>;
|
|
3352
3384
|
capabilities: z.ZodRecord<z.ZodEnum<{
|
|
3353
3385
|
messaging: "messaging";
|
|
@@ -3856,6 +3888,7 @@ export type ModelFieldDefinition = z.infer<typeof ModelFieldDefinitionSchema>;
|
|
|
3856
3888
|
export type ModelDefinition = z.infer<typeof ModelDefinitionSchema>;
|
|
3857
3889
|
export type ChannelCapabilityType = z.infer<typeof ChannelCapabilityTypeSchema>;
|
|
3858
3890
|
export type ChannelCapability = z.infer<typeof ChannelCapabilitySchema>;
|
|
3891
|
+
export type ChannelIdentifierField = z.infer<typeof ChannelIdentifierFieldSchema>;
|
|
3859
3892
|
export type ChannelDefinition = z.infer<typeof ChannelDefinitionSchema>;
|
|
3860
3893
|
export type WorkflowDefinition = z.infer<typeof WorkflowDefinitionSchema>;
|
|
3861
3894
|
export type WebhookHttpMethod = z.infer<typeof WebhookHttpMethodSchema>;
|
package/dist/schemas.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.SkedyulConfigSchema = exports.ProvisionConfigSchema = exports.WebhooksSchema = exports.WebhookHandlerDefinitionSchema = exports.WebhookHttpMethodSchema = exports.PageDefinitionSchema = exports.NavigationConfigSchema = exports.NavigationBreadcrumbSchema = exports.BreadcrumbItemSchema = exports.NavigationSidebarSchema = exports.NavigationSectionSchema = exports.NavigationItemSchema = exports.PageInstanceFilterSchema = exports.PageContextDefinitionSchema = exports.PageContextItemDefinitionSchema = exports.PageContextFiltersSchema = exports.PageContextModeSchema = exports.PageBlockDefinitionSchema = exports.ListBlockDefinitionSchema = exports.LegacyFormBlockDefinitionSchema = exports.PageFieldDefinitionSchema = exports.CardBlockDefinitionSchema = exports.CardBlockHeaderSchema = exports.FormV2PropsDefinitionSchema = exports.FormV2ComponentDefinitionSchema = exports.FieldSettingComponentDefinitionSchema = exports.ModalFormDefinitionSchema = exports.AlertComponentDefinitionSchema = exports.EmptyFormComponentDefinitionSchema = void 0;
|
|
3
|
+
exports.ListItemTemplateSchema = exports.FileSettingComponentDefinitionSchema = exports.ImageSettingComponentDefinitionSchema = exports.TimePickerComponentDefinitionSchema = exports.DatePickerComponentDefinitionSchema = exports.CheckboxComponentDefinitionSchema = exports.ComboboxComponentDefinitionSchema = exports.SelectComponentDefinitionSchema = exports.TextareaComponentDefinitionSchema = exports.InputComponentDefinitionSchema = exports.FormLayoutConfigDefinitionSchema = exports.FormLayoutRowDefinitionSchema = exports.FormLayoutColumnDefinitionSchema = exports.RelationshipExtensionSchema = exports.FieldSettingButtonPropsSchema = exports.FormV2StylePropsSchema = exports.PageActionDefinitionSchema = exports.PageFormHeaderSchema = exports.PageFieldSourceSchema = exports.PageFieldTypeSchema = exports.PageBlockTypeSchema = exports.PageTypeSchema = exports.WorkflowDefinitionSchema = exports.WorkflowActionSchema = exports.WorkflowActionInputSchema = exports.ChannelDefinitionSchema = exports.ChannelIdentifierFieldSchema = exports.ChannelCapabilitySchema = exports.ChannelCapabilityTypeSchema = exports.RelationshipDefinitionSchema = exports.RelationshipLinkSchema = exports.OnDeleteBehaviorSchema = exports.RelationshipCardinalitySchema = exports.ModelDefinitionSchema = exports.ModelFieldDefinitionSchema = exports.AppFieldVisibilitySchema = exports.InlineFieldDefinitionSchema = exports.FieldOptionSchema = exports.FieldDataTypeSchema = exports.ResourceDependencySchema = exports.WorkflowDependencySchema = exports.ChannelDependencySchema = exports.ModelDependencySchema = exports.StructuredFilterSchema = exports.FieldOwnerSchema = exports.ResourceScopeSchema = exports.ComputeLayerTypeSchema = exports.EnvSchemaSchema = exports.EnvVariableDefinitionSchema = exports.EnvVisibilitySchema = void 0;
|
|
4
|
+
exports.SkedyulConfigSchema = exports.ProvisionConfigSchema = exports.WebhooksSchema = exports.WebhookHandlerDefinitionSchema = exports.WebhookHttpMethodSchema = exports.PageDefinitionSchema = exports.NavigationConfigSchema = exports.NavigationBreadcrumbSchema = exports.BreadcrumbItemSchema = exports.NavigationSidebarSchema = exports.NavigationSectionSchema = exports.NavigationItemSchema = exports.PageInstanceFilterSchema = exports.PageContextDefinitionSchema = exports.PageContextItemDefinitionSchema = exports.PageContextFiltersSchema = exports.PageContextModeSchema = exports.PageBlockDefinitionSchema = exports.ListBlockDefinitionSchema = exports.LegacyFormBlockDefinitionSchema = exports.PageFieldDefinitionSchema = exports.CardBlockDefinitionSchema = exports.CardBlockHeaderSchema = exports.FormV2PropsDefinitionSchema = exports.FormV2ComponentDefinitionSchema = exports.FieldSettingComponentDefinitionSchema = exports.ModalFormDefinitionSchema = exports.AlertComponentDefinitionSchema = exports.EmptyFormComponentDefinitionSchema = exports.ListComponentDefinitionSchema = void 0;
|
|
5
5
|
exports.safeParseConfig = safeParseConfig;
|
|
6
6
|
exports.isModelDependency = isModelDependency;
|
|
7
7
|
exports.isChannelDependency = isChannelDependency;
|
|
@@ -145,11 +145,24 @@ exports.ChannelCapabilitySchema = zod_1.z.object({
|
|
|
145
145
|
receive: zod_1.z.string().optional(), // Inbound webhook handler
|
|
146
146
|
send: zod_1.z.string().optional(), // Outbound tool handle
|
|
147
147
|
});
|
|
148
|
+
/**
|
|
149
|
+
* Identifier field configuration for channels.
|
|
150
|
+
* Used to specify how to filter/create identifier fields (e.g., phone, email).
|
|
151
|
+
*/
|
|
152
|
+
exports.ChannelIdentifierFieldSchema = zod_1.z.object({
|
|
153
|
+
handle: zod_1.z.string(),
|
|
154
|
+
label: zod_1.z.string(),
|
|
155
|
+
definition: zod_1.z.object({
|
|
156
|
+
handle: zod_1.z.string(),
|
|
157
|
+
}),
|
|
158
|
+
});
|
|
148
159
|
exports.ChannelDefinitionSchema = zod_1.z.object({
|
|
149
160
|
handle: zod_1.z.string(),
|
|
150
161
|
name: zod_1.z.string(),
|
|
151
162
|
icon: zod_1.z.string().optional(),
|
|
152
|
-
/**
|
|
163
|
+
/** Structured identifier field config for filtering/creating identifier fields */
|
|
164
|
+
identifierField: exports.ChannelIdentifierFieldSchema.optional(),
|
|
165
|
+
/** @deprecated Use identifierField instead. Kept for backward compatibility. */
|
|
153
166
|
identifierType: zod_1.z.string().optional(),
|
|
154
167
|
// Capabilities keyed by standard type (messaging, voice, video)
|
|
155
168
|
capabilities: zod_1.z.record(exports.ChannelCapabilityTypeSchema, exports.ChannelCapabilitySchema),
|