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.
Files changed (54) hide show
  1. package/dist/cli/commands/workflows.d.ts +1 -0
  2. package/dist/cli/index.js +3670 -9073
  3. package/dist/cli/utils/auth.d.ts +4 -1
  4. package/dist/cli/utils/auth.js +32 -8
  5. package/dist/cli/utils/config.d.ts +23 -0
  6. package/dist/cli/utils/env-sync.d.ts +46 -0
  7. package/dist/cli/utils/mcp-http-client.d.ts +74 -0
  8. package/dist/cli/utils/migration-approval.d.ts +39 -0
  9. package/dist/cli/utils/mock-context.d.ts +19 -9
  10. package/dist/cli/utils/sse.d.ts +33 -0
  11. package/dist/cli/utils.d.ts +5 -1
  12. package/dist/compiler/types.d.ts +11 -9
  13. package/dist/config/schema-loader.d.ts +15 -2
  14. package/dist/config/types/model.d.ts +2 -0
  15. package/dist/config/types/page.d.ts +9 -0
  16. package/dist/context/index.d.ts +2 -2
  17. package/dist/context/resolver.d.ts +29 -28
  18. package/dist/context/types.d.ts +195 -37
  19. package/dist/core/client.d.ts +189 -233
  20. package/dist/dedicated/server.js +252 -163
  21. package/dist/esm/index.mjs +1149 -7671
  22. package/dist/index.d.ts +11 -6
  23. package/dist/index.js +1194 -7669
  24. package/dist/scheduling/calculateWaitTime.d.ts +16 -0
  25. package/dist/scheduling/index.d.ts +11 -0
  26. package/dist/scheduling/index.js +334 -0
  27. package/dist/scheduling/index.mjs +305 -0
  28. package/dist/scheduling/isTimeInWindow.d.ts +15 -0
  29. package/dist/scheduling/types-workflow.d.ts +54 -0
  30. package/dist/scheduling/types.d.ts +166 -0
  31. package/dist/schemas/agent-schema-v3.d.ts +406 -60
  32. package/dist/schemas/agent-schema-v3.js +248 -75
  33. package/dist/schemas/agent-schema-v3.mjs +234 -73
  34. package/dist/schemas/agent-schema.js +3 -7295
  35. package/dist/schemas/agent-schema.mjs +3 -7323
  36. package/dist/schemas/crm-schema.d.ts +53 -19
  37. package/dist/schemas/index.d.ts +1 -1
  38. package/dist/schemas.d.ts +128 -40
  39. package/dist/server/route-handlers/handlers.d.ts +7 -0
  40. package/dist/server/utils/env.d.ts +9 -0
  41. package/dist/server/utils/index.d.ts +1 -0
  42. package/dist/server/utils/mcp-response.d.ts +11 -0
  43. package/dist/server.js +252 -163
  44. package/dist/serverless/server.mjs +252 -163
  45. package/dist/skills/index.d.ts +1 -1
  46. package/dist/skills/types.d.ts +34 -23
  47. package/dist/skills/types.js +8 -17
  48. package/dist/skills/types.mjs +7 -16
  49. package/dist/types/index.d.ts +3 -3
  50. package/dist/types/server.d.ts +1 -0
  51. package/dist/types/tool-context.d.ts +31 -4
  52. package/dist/types/tool-response.d.ts +2 -0
  53. package/dist/types/tool.d.ts +33 -1
  54. 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 declare const CRMNavigationItemSchemaZ: z.ZodObject<{
279
- label: z.ZodString;
280
- icon: z.ZodOptional<z.ZodString>;
281
- path: z.ZodString;
282
- sortIndex: z.ZodOptional<z.ZodNumber>;
283
- }, z.core.$strip>;
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.ZodObject<{
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.ZodObject<{
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
  * ],
@@ -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, ResponsePolicySchema, PoliciesConfigV3Schema, RuntimeConfigV3Schema, AgentConfigV3Schema, AgentYAMLV3Schema, type PersonaVoiceFormatV3, type PersonaVoiceV3, type PersonaV3, type ToolApprovalConfig, type ToolRefV3, type WorkingMemoryConfig, type ExternalMemoryConfig, type SemanticMemoryConfig, type MemoryConfigV3, type ResponsePolicy, type PoliciesConfigV3, type RuntimeConfigV3, type AgentConfigV3, type AgentYAMLV3, defineAgentV3, validateAgentYAMLV3, } from './agent-schema-v3';
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';