skedyul 1.2.44 → 1.2.48
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/cli/commands/workflows.d.ts +1 -0
- package/dist/cli/index.js +3670 -9073
- package/dist/cli/utils/auth.d.ts +4 -1
- package/dist/cli/utils/auth.js +32 -8
- package/dist/cli/utils/config.d.ts +23 -0
- package/dist/cli/utils/env-sync.d.ts +46 -0
- package/dist/cli/utils/mcp-http-client.d.ts +74 -0
- package/dist/cli/utils/migration-approval.d.ts +39 -0
- package/dist/cli/utils/mock-context.d.ts +19 -9
- package/dist/cli/utils/sse.d.ts +33 -0
- package/dist/cli/utils.d.ts +5 -1
- package/dist/compiler/types.d.ts +11 -9
- package/dist/config/schema-loader.d.ts +15 -2
- package/dist/config/types/model.d.ts +2 -0
- package/dist/config/types/page.d.ts +9 -0
- package/dist/context/index.d.ts +2 -2
- package/dist/context/resolver.d.ts +29 -28
- package/dist/context/types.d.ts +195 -37
- package/dist/core/client.d.ts +189 -233
- package/dist/dedicated/server.js +252 -163
- package/dist/esm/index.mjs +1149 -7671
- package/dist/index.d.ts +11 -6
- package/dist/index.js +1194 -7669
- package/dist/scheduling/calculateWaitTime.d.ts +16 -0
- package/dist/scheduling/index.d.ts +11 -0
- package/dist/scheduling/index.js +334 -0
- package/dist/scheduling/index.mjs +305 -0
- package/dist/scheduling/isTimeInWindow.d.ts +15 -0
- package/dist/scheduling/types-workflow.d.ts +54 -0
- package/dist/scheduling/types.d.ts +166 -0
- package/dist/schemas/agent-schema-v3.d.ts +406 -60
- package/dist/schemas/agent-schema-v3.js +248 -75
- package/dist/schemas/agent-schema-v3.mjs +234 -73
- package/dist/schemas/agent-schema.js +3 -7295
- package/dist/schemas/agent-schema.mjs +3 -7323
- package/dist/schemas/crm-schema.d.ts +53 -19
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas.d.ts +128 -40
- package/dist/server/route-handlers/handlers.d.ts +7 -0
- package/dist/server/utils/env.d.ts +9 -0
- package/dist/server/utils/index.d.ts +1 -0
- package/dist/server/utils/mcp-response.d.ts +11 -0
- package/dist/server.js +252 -163
- package/dist/serverless/server.mjs +252 -163
- package/dist/skills/index.d.ts +1 -1
- package/dist/skills/types.d.ts +34 -23
- package/dist/skills/types.js +8 -17
- package/dist/skills/types.mjs +7 -16
- package/dist/types/index.d.ts +3 -3
- package/dist/types/server.d.ts +1 -0
- package/dist/types/tool-context.d.ts +31 -4
- package/dist/types/tool-response.d.ts +2 -0
- package/dist/types/tool.d.ts +33 -1
- package/package.json +8 -1
|
@@ -66,6 +66,17 @@ export declare const CRMFieldDefinitionSchema: z.ZodUnion<readonly [z.ZodString,
|
|
|
66
66
|
pattern: z.ZodOptional<z.ZodString>;
|
|
67
67
|
}, z.core.$strip>]>;
|
|
68
68
|
export type CRMFieldDefinition = z.infer<typeof CRMFieldDefinitionSchema>;
|
|
69
|
+
/**
|
|
70
|
+
* Field appearance schema for UI presentation (icons, placeholder, help text).
|
|
71
|
+
* This is shared across form inputs, selects, textareas, and spreadsheet cells.
|
|
72
|
+
*/
|
|
73
|
+
export declare const CRMFieldAppearanceSchemaZ: z.ZodObject<{
|
|
74
|
+
leftIcon: z.ZodOptional<z.ZodString>;
|
|
75
|
+
rightIcon: z.ZodOptional<z.ZodString>;
|
|
76
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
77
|
+
helpText: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type CRMFieldAppearance = z.infer<typeof CRMFieldAppearanceSchemaZ>;
|
|
69
80
|
/**
|
|
70
81
|
* Field schema for CRM models.
|
|
71
82
|
*/
|
|
@@ -85,6 +96,12 @@ export declare const CRMFieldSchemaZ: z.ZodObject<{
|
|
|
85
96
|
image: "image";
|
|
86
97
|
}>;
|
|
87
98
|
description: z.ZodOptional<z.ZodString>;
|
|
99
|
+
appearance: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
leftIcon: z.ZodOptional<z.ZodString>;
|
|
101
|
+
rightIcon: z.ZodOptional<z.ZodString>;
|
|
102
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
103
|
+
helpText: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
88
105
|
requirement: z.ZodOptional<z.ZodEnum<{
|
|
89
106
|
optional: "optional";
|
|
90
107
|
on_create: "on_create";
|
|
@@ -134,6 +151,12 @@ export declare const CRMModelSchemaZ: z.ZodObject<{
|
|
|
134
151
|
image: "image";
|
|
135
152
|
}>;
|
|
136
153
|
description: z.ZodOptional<z.ZodString>;
|
|
154
|
+
appearance: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
leftIcon: z.ZodOptional<z.ZodString>;
|
|
156
|
+
rightIcon: z.ZodOptional<z.ZodString>;
|
|
157
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
158
|
+
helpText: z.ZodOptional<z.ZodString>;
|
|
159
|
+
}, z.core.$strip>>;
|
|
137
160
|
requirement: z.ZodOptional<z.ZodEnum<{
|
|
138
161
|
optional: "optional";
|
|
139
162
|
on_create: "on_create";
|
|
@@ -273,25 +296,23 @@ export declare const CRMPageSchemaZ: z.ZodObject<{
|
|
|
273
296
|
}, z.core.$strip>;
|
|
274
297
|
export type CRMPageSchema = z.infer<typeof CRMPageSchemaZ>;
|
|
275
298
|
/**
|
|
276
|
-
* Navigation item schema.
|
|
299
|
+
* Navigation item schema (supports nested groups up to 2 levels).
|
|
277
300
|
*/
|
|
278
|
-
export
|
|
279
|
-
label:
|
|
280
|
-
icon
|
|
281
|
-
path
|
|
282
|
-
|
|
283
|
-
|
|
301
|
+
export type CRMNavigationNode = {
|
|
302
|
+
label: string;
|
|
303
|
+
icon?: string;
|
|
304
|
+
path?: string;
|
|
305
|
+
kind?: 'section' | 'group';
|
|
306
|
+
sortIndex?: number;
|
|
307
|
+
children?: CRMNavigationNode[];
|
|
308
|
+
};
|
|
309
|
+
export declare const CRMNavigationItemSchemaZ: z.ZodType<CRMNavigationNode>;
|
|
284
310
|
export type CRMNavigationItemSchema = z.infer<typeof CRMNavigationItemSchemaZ>;
|
|
285
311
|
/**
|
|
286
312
|
* Navigation schema.
|
|
287
313
|
*/
|
|
288
314
|
export declare const CRMNavigationSchemaZ: z.ZodObject<{
|
|
289
|
-
sidebar: z.ZodOptional<z.ZodArray<z.
|
|
290
|
-
label: z.ZodString;
|
|
291
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
292
|
-
path: z.ZodString;
|
|
293
|
-
sortIndex: z.ZodOptional<z.ZodNumber>;
|
|
294
|
-
}, z.core.$strip>>>;
|
|
315
|
+
sidebar: z.ZodOptional<z.ZodArray<z.ZodType<CRMNavigationNode, unknown, z.core.$ZodTypeInternals<CRMNavigationNode, unknown>>>>;
|
|
295
316
|
}, z.core.$strip>;
|
|
296
317
|
export type CRMNavigationSchema = z.infer<typeof CRMNavigationSchemaZ>;
|
|
297
318
|
/**
|
|
@@ -325,6 +346,12 @@ export declare const CRMSchemaZ: z.ZodObject<{
|
|
|
325
346
|
image: "image";
|
|
326
347
|
}>;
|
|
327
348
|
description: z.ZodOptional<z.ZodString>;
|
|
349
|
+
appearance: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
leftIcon: z.ZodOptional<z.ZodString>;
|
|
351
|
+
rightIcon: z.ZodOptional<z.ZodString>;
|
|
352
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
353
|
+
helpText: z.ZodOptional<z.ZodString>;
|
|
354
|
+
}, z.core.$strip>>;
|
|
328
355
|
requirement: z.ZodOptional<z.ZodEnum<{
|
|
329
356
|
optional: "optional";
|
|
330
357
|
on_create: "on_create";
|
|
@@ -394,12 +421,7 @@ export declare const CRMSchemaZ: z.ZodObject<{
|
|
|
394
421
|
}, z.core.$strip>>>;
|
|
395
422
|
}, z.core.$strip>>>;
|
|
396
423
|
navigation: z.ZodOptional<z.ZodObject<{
|
|
397
|
-
sidebar: z.ZodOptional<z.ZodArray<z.
|
|
398
|
-
label: z.ZodString;
|
|
399
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
400
|
-
path: z.ZodString;
|
|
401
|
-
sortIndex: z.ZodOptional<z.ZodNumber>;
|
|
402
|
-
}, z.core.$strip>>>;
|
|
424
|
+
sidebar: z.ZodOptional<z.ZodArray<z.ZodType<CRMNavigationNode, unknown, z.core.$ZodTypeInternals<CRMNavigationNode, unknown>>>>;
|
|
403
425
|
}, z.core.$strip>>;
|
|
404
426
|
}, z.core.$strip>;
|
|
405
427
|
export type CRMSchema = z.infer<typeof CRMSchemaZ>;
|
|
@@ -419,6 +441,18 @@ export type CRMSchema = z.infer<typeof CRMSchemaZ>;
|
|
|
419
441
|
* name: 'Lead',
|
|
420
442
|
* fields: [
|
|
421
443
|
* { handle: 'first_name', label: 'First Name', type: 'string' },
|
|
444
|
+
* {
|
|
445
|
+
* handle: 'email',
|
|
446
|
+
* label: 'Email',
|
|
447
|
+
* type: 'string',
|
|
448
|
+
* definition: 'email',
|
|
449
|
+
* description: 'Primary contact email',
|
|
450
|
+
* appearance: {
|
|
451
|
+
* leftIcon: 'Mail',
|
|
452
|
+
* placeholder: 'Enter email address',
|
|
453
|
+
* helpText: 'We will never share your email',
|
|
454
|
+
* },
|
|
455
|
+
* },
|
|
422
456
|
* ],
|
|
423
457
|
* },
|
|
424
458
|
* ],
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { CRMFieldTypeSchema, CRMFieldRequirementSchema, CRMFieldOptionSchema, CRMFieldDefinitionSchema, CRMFieldSchemaZ, CRMModelSchemaZ, CRMCardinalitySchema, CRMOnDeleteSchema, CRMRelationshipLinkSchema, CRMRelationshipSchemaZ, CRMSchemaZ, type CRMFieldType, type CRMFieldRequirement, type CRMFieldOption, type CRMFieldDefinition, type CRMFieldSchema, type CRMModelSchema, type CRMCardinality, type CRMOnDelete, type CRMRelationshipLink, type CRMRelationshipSchema, type CRMSchema, type CRMSchemaValidationResult, defineSchema, validateCRMSchema, parseCRMSchema, safeParseCRMSchema, } from './crm-schema';
|
|
2
|
-
export { AGENT_SCHEMA_VERSION_V3, PersonaVoiceFormatV3Schema, PersonaVoiceV3Schema, PersonaV3Schema, ToolApprovalConfigSchema, ToolRefV3Schema, WorkingMemoryConfigSchema, ExternalMemoryConfigSchema, SemanticMemoryConfigSchema, MemoryConfigV3Schema,
|
|
2
|
+
export { AGENT_SCHEMA_VERSION_V3, PersonaVoiceFormatV3Schema, PersonaVoiceV3Schema, PersonaV3Schema, ToolApprovalConfigSchema, ToolRefV3Schema, WorkingMemoryConfigSchema, ExternalMemoryConfigSchema, SemanticMemoryConfigSchema, MemoryConfigV3Schema, PoliciesConfigV3Schema, RuntimeConfigV3Schema, AgentYAMLV3Schema, TimeWindowTimeStampSchema, TimeWindowDayOfWeekSchema, TimeWindowSlotAgentSchema, ResponseModeSchema, TimeWindowBehaviorSchema, TimeWindowPolicySchema, TimeWindowPoliciesSchema, TimeWindowDefaultSchema, SchedulingDelaySchema, SchedulingPatternSchema, SchedulingBehaviorConfigSchema, type PersonaVoiceFormatV3, type PersonaVoiceV3, type PersonaV3, type ToolApprovalConfig, type ToolRefV3, type WorkingMemoryConfig, type ExternalMemoryConfig, type SemanticMemoryConfig, type MemoryConfigV3, type PoliciesConfigV3, type RuntimeConfigV3, type AgentYAMLV3, type TimeWindowTimeStamp, type TimeWindowDayOfWeek, type TimeWindowSlotAgent, type ResponseMode, type TimeWindowBehavior, type TimeWindowPolicy, type TimeWindowPolicies, type TimeWindowDefault, type SchedulingDelay, type SchedulingPattern, type SchedulingBehaviorConfig, defineAgentV3, validateAgentYAMLV3, } from './agent-schema-v3';
|