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
package/dist/schemas.d.ts CHANGED
@@ -326,6 +326,7 @@ export declare const ModelDefinitionSchema: z.ZodObject<{
326
326
  }, z.core.$strip>]>>>;
327
327
  addDefaultPages: z.ZodOptional<z.ZodBoolean>;
328
328
  addNavigation: z.ZodOptional<z.ZodBoolean>;
329
+ page: z.ZodOptional<z.ZodString>;
329
330
  }, z.core.$strip>;
330
331
  export declare const RelationshipCardinalitySchema: z.ZodEnum<{
331
332
  ONE_TO_ONE: "ONE_TO_ONE";
@@ -573,12 +574,14 @@ export declare const PageFormHeaderSchema: z.ZodObject<{
573
574
  export declare const PageActionDefinitionSchema: z.ZodObject<{
574
575
  handle: z.ZodString;
575
576
  label: z.ZodString;
576
- handler: z.ZodString;
577
+ handler: z.ZodOptional<z.ZodString>;
578
+ href: z.ZodOptional<z.ZodString>;
577
579
  icon: z.ZodOptional<z.ZodString>;
578
580
  variant: z.ZodOptional<z.ZodEnum<{
579
581
  primary: "primary";
580
582
  secondary: "secondary";
581
583
  destructive: "destructive";
584
+ outline: "outline";
582
585
  }>>;
583
586
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
584
587
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -1542,12 +1545,14 @@ export declare const FormV2PropsDefinitionSchema: z.ZodObject<{
1542
1545
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1543
1546
  handle: z.ZodString;
1544
1547
  label: z.ZodString;
1545
- handler: z.ZodString;
1548
+ handler: z.ZodOptional<z.ZodString>;
1549
+ href: z.ZodOptional<z.ZodString>;
1546
1550
  icon: z.ZodOptional<z.ZodString>;
1547
1551
  variant: z.ZodOptional<z.ZodEnum<{
1548
1552
  primary: "primary";
1549
1553
  secondary: "secondary";
1550
1554
  destructive: "destructive";
1555
+ outline: "outline";
1551
1556
  }>>;
1552
1557
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1553
1558
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -1863,12 +1868,14 @@ export declare const CardBlockDefinitionSchema: z.ZodObject<{
1863
1868
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1864
1869
  handle: z.ZodString;
1865
1870
  label: z.ZodString;
1866
- handler: z.ZodString;
1871
+ handler: z.ZodOptional<z.ZodString>;
1872
+ href: z.ZodOptional<z.ZodString>;
1867
1873
  icon: z.ZodOptional<z.ZodString>;
1868
1874
  variant: z.ZodOptional<z.ZodEnum<{
1869
1875
  primary: "primary";
1870
1876
  secondary: "secondary";
1871
1877
  destructive: "destructive";
1878
+ outline: "outline";
1872
1879
  }>>;
1873
1880
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1874
1881
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -1877,12 +1884,14 @@ export declare const CardBlockDefinitionSchema: z.ZodObject<{
1877
1884
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1878
1885
  handle: z.ZodString;
1879
1886
  label: z.ZodString;
1880
- handler: z.ZodString;
1887
+ handler: z.ZodOptional<z.ZodString>;
1888
+ href: z.ZodOptional<z.ZodString>;
1881
1889
  icon: z.ZodOptional<z.ZodString>;
1882
1890
  variant: z.ZodOptional<z.ZodEnum<{
1883
1891
  primary: "primary";
1884
1892
  secondary: "secondary";
1885
1893
  destructive: "destructive";
1894
+ outline: "outline";
1886
1895
  }>>;
1887
1896
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1888
1897
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -1890,12 +1899,14 @@ export declare const CardBlockDefinitionSchema: z.ZodObject<{
1890
1899
  secondaryActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1891
1900
  handle: z.ZodString;
1892
1901
  label: z.ZodString;
1893
- handler: z.ZodString;
1902
+ handler: z.ZodOptional<z.ZodString>;
1903
+ href: z.ZodOptional<z.ZodString>;
1894
1904
  icon: z.ZodOptional<z.ZodString>;
1895
1905
  variant: z.ZodOptional<z.ZodEnum<{
1896
1906
  primary: "primary";
1897
1907
  secondary: "secondary";
1898
1908
  destructive: "destructive";
1909
+ outline: "outline";
1899
1910
  }>>;
1900
1911
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1901
1912
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -1903,12 +1914,14 @@ export declare const CardBlockDefinitionSchema: z.ZodObject<{
1903
1914
  primaryActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1904
1915
  handle: z.ZodString;
1905
1916
  label: z.ZodString;
1906
- handler: z.ZodString;
1917
+ handler: z.ZodOptional<z.ZodString>;
1918
+ href: z.ZodOptional<z.ZodString>;
1907
1919
  icon: z.ZodOptional<z.ZodString>;
1908
1920
  variant: z.ZodOptional<z.ZodEnum<{
1909
1921
  primary: "primary";
1910
1922
  secondary: "secondary";
1911
1923
  destructive: "destructive";
1924
+ outline: "outline";
1912
1925
  }>>;
1913
1926
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1914
1927
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -2282,12 +2295,14 @@ export declare const PageBlockDefinitionSchema: z.ZodUnion<readonly [z.ZodObject
2282
2295
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2283
2296
  handle: z.ZodString;
2284
2297
  label: z.ZodString;
2285
- handler: z.ZodString;
2298
+ handler: z.ZodOptional<z.ZodString>;
2299
+ href: z.ZodOptional<z.ZodString>;
2286
2300
  icon: z.ZodOptional<z.ZodString>;
2287
2301
  variant: z.ZodOptional<z.ZodEnum<{
2288
2302
  primary: "primary";
2289
2303
  secondary: "secondary";
2290
2304
  destructive: "destructive";
2305
+ outline: "outline";
2291
2306
  }>>;
2292
2307
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2293
2308
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -2296,12 +2311,14 @@ export declare const PageBlockDefinitionSchema: z.ZodUnion<readonly [z.ZodObject
2296
2311
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2297
2312
  handle: z.ZodString;
2298
2313
  label: z.ZodString;
2299
- handler: z.ZodString;
2314
+ handler: z.ZodOptional<z.ZodString>;
2315
+ href: z.ZodOptional<z.ZodString>;
2300
2316
  icon: z.ZodOptional<z.ZodString>;
2301
2317
  variant: z.ZodOptional<z.ZodEnum<{
2302
2318
  primary: "primary";
2303
2319
  secondary: "secondary";
2304
2320
  destructive: "destructive";
2321
+ outline: "outline";
2305
2322
  }>>;
2306
2323
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2307
2324
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -2309,12 +2326,14 @@ export declare const PageBlockDefinitionSchema: z.ZodUnion<readonly [z.ZodObject
2309
2326
  secondaryActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2310
2327
  handle: z.ZodString;
2311
2328
  label: z.ZodString;
2312
- handler: z.ZodString;
2329
+ handler: z.ZodOptional<z.ZodString>;
2330
+ href: z.ZodOptional<z.ZodString>;
2313
2331
  icon: z.ZodOptional<z.ZodString>;
2314
2332
  variant: z.ZodOptional<z.ZodEnum<{
2315
2333
  primary: "primary";
2316
2334
  secondary: "secondary";
2317
2335
  destructive: "destructive";
2336
+ outline: "outline";
2318
2337
  }>>;
2319
2338
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2320
2339
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -2322,12 +2341,14 @@ export declare const PageBlockDefinitionSchema: z.ZodUnion<readonly [z.ZodObject
2322
2341
  primaryActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2323
2342
  handle: z.ZodString;
2324
2343
  label: z.ZodString;
2325
- handler: z.ZodString;
2344
+ handler: z.ZodOptional<z.ZodString>;
2345
+ href: z.ZodOptional<z.ZodString>;
2326
2346
  icon: z.ZodOptional<z.ZodString>;
2327
2347
  variant: z.ZodOptional<z.ZodEnum<{
2328
2348
  primary: "primary";
2329
2349
  secondary: "secondary";
2330
2350
  destructive: "destructive";
2351
+ outline: "outline";
2331
2352
  }>>;
2332
2353
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2333
2354
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -2356,11 +2377,12 @@ export declare const PageBlockDefinitionSchema: z.ZodUnion<readonly [z.ZodObject
2356
2377
  model: z.ZodString;
2357
2378
  }, z.core.$strip>]>;
2358
2379
  /** Mode for context data fetching */
2359
- export declare const PageContextModeSchema: z.ZodEnum<{
2380
+ export declare const PageContextModeSchema: z.ZodPipe<z.ZodEnum<{
2360
2381
  first: "first";
2361
2382
  many: "many";
2362
2383
  count: "count";
2363
- }>;
2384
+ all: "all";
2385
+ }>, z.ZodTransform<"first" | "many" | "count", "first" | "many" | "count" | "all">>;
2364
2386
  /**
2365
2387
  * Page context filters schema.
2366
2388
  * Uses structured filter format: { fieldHandle: { operator: value } }
@@ -2370,11 +2392,12 @@ export declare const PageContextFiltersSchema: z.ZodRecord<z.ZodString, z.ZodRec
2370
2392
  /** Single context item definition (model-based) */
2371
2393
  export declare const PageContextItemDefinitionSchema: z.ZodObject<{
2372
2394
  model: z.ZodString;
2373
- mode: z.ZodEnum<{
2395
+ mode: z.ZodPipe<z.ZodEnum<{
2374
2396
  first: "first";
2375
2397
  many: "many";
2376
2398
  count: "count";
2377
- }>;
2399
+ all: "all";
2400
+ }>, z.ZodTransform<"first" | "many" | "count", "first" | "many" | "count" | "all">>;
2378
2401
  filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>>>;
2379
2402
  limit: z.ZodOptional<z.ZodNumber>;
2380
2403
  }, z.core.$strip>;
@@ -2385,11 +2408,12 @@ export declare const PageContextToolItemDefinitionSchema: z.ZodObject<{
2385
2408
  /** Context definition: variable name -> context item (model or tool-based) */
2386
2409
  export declare const PageContextDefinitionSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
2387
2410
  model: z.ZodString;
2388
- mode: z.ZodEnum<{
2411
+ mode: z.ZodPipe<z.ZodEnum<{
2389
2412
  first: "first";
2390
2413
  many: "many";
2391
2414
  count: "count";
2392
- }>;
2415
+ all: "all";
2416
+ }>, z.ZodTransform<"first" | "many" | "count", "first" | "many" | "count" | "all">>;
2393
2417
  filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>>>;
2394
2418
  limit: z.ZodOptional<z.ZodNumber>;
2395
2419
  }, z.core.$strip>, z.ZodObject<{
@@ -2457,14 +2481,27 @@ export declare const NavigationConfigSchema: z.ZodObject<{
2457
2481
  }, z.core.$strip>>;
2458
2482
  }, z.core.$strip>>;
2459
2483
  }, z.core.$strip>;
2484
+ /** Page audience - who can view this page */
2485
+ export declare const PageAudienceSchema: z.ZodEnum<{
2486
+ install: "install";
2487
+ developer: "developer";
2488
+ both: "both";
2489
+ }>;
2460
2490
  export declare const PageDefinitionSchema: z.ZodObject<{
2491
+ handle: z.ZodOptional<z.ZodString>;
2492
+ label: z.ZodString;
2493
+ description: z.ZodOptional<z.ZodString>;
2461
2494
  type: z.ZodEnum<{
2462
2495
  INSTANCE: "INSTANCE";
2463
2496
  LIST: "LIST";
2464
2497
  }>;
2465
- title: z.ZodString;
2466
2498
  path: z.ZodString;
2467
2499
  default: z.ZodOptional<z.ZodBoolean>;
2500
+ audience: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2501
+ install: "install";
2502
+ developer: "developer";
2503
+ both: "both";
2504
+ }>>>;
2468
2505
  navigation: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodObject<{
2469
2506
  sidebar: z.ZodOptional<z.ZodObject<{
2470
2507
  sections: z.ZodArray<z.ZodObject<{
@@ -2786,12 +2823,14 @@ export declare const PageDefinitionSchema: z.ZodObject<{
2786
2823
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2787
2824
  handle: z.ZodString;
2788
2825
  label: z.ZodString;
2789
- handler: z.ZodString;
2826
+ handler: z.ZodOptional<z.ZodString>;
2827
+ href: z.ZodOptional<z.ZodString>;
2790
2828
  icon: z.ZodOptional<z.ZodString>;
2791
2829
  variant: z.ZodOptional<z.ZodEnum<{
2792
2830
  primary: "primary";
2793
2831
  secondary: "secondary";
2794
2832
  destructive: "destructive";
2833
+ outline: "outline";
2795
2834
  }>>;
2796
2835
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2797
2836
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -2800,12 +2839,14 @@ export declare const PageDefinitionSchema: z.ZodObject<{
2800
2839
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2801
2840
  handle: z.ZodString;
2802
2841
  label: z.ZodString;
2803
- handler: z.ZodString;
2842
+ handler: z.ZodOptional<z.ZodString>;
2843
+ href: z.ZodOptional<z.ZodString>;
2804
2844
  icon: z.ZodOptional<z.ZodString>;
2805
2845
  variant: z.ZodOptional<z.ZodEnum<{
2806
2846
  primary: "primary";
2807
2847
  secondary: "secondary";
2808
2848
  destructive: "destructive";
2849
+ outline: "outline";
2809
2850
  }>>;
2810
2851
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2811
2852
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -2813,12 +2854,14 @@ export declare const PageDefinitionSchema: z.ZodObject<{
2813
2854
  secondaryActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2814
2855
  handle: z.ZodString;
2815
2856
  label: z.ZodString;
2816
- handler: z.ZodString;
2857
+ handler: z.ZodOptional<z.ZodString>;
2858
+ href: z.ZodOptional<z.ZodString>;
2817
2859
  icon: z.ZodOptional<z.ZodString>;
2818
2860
  variant: z.ZodOptional<z.ZodEnum<{
2819
2861
  primary: "primary";
2820
2862
  secondary: "secondary";
2821
2863
  destructive: "destructive";
2864
+ outline: "outline";
2822
2865
  }>>;
2823
2866
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2824
2867
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -2826,12 +2869,14 @@ export declare const PageDefinitionSchema: z.ZodObject<{
2826
2869
  primaryActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2827
2870
  handle: z.ZodString;
2828
2871
  label: z.ZodString;
2829
- handler: z.ZodString;
2872
+ handler: z.ZodOptional<z.ZodString>;
2873
+ href: z.ZodOptional<z.ZodString>;
2830
2874
  icon: z.ZodOptional<z.ZodString>;
2831
2875
  variant: z.ZodOptional<z.ZodEnum<{
2832
2876
  primary: "primary";
2833
2877
  secondary: "secondary";
2834
2878
  destructive: "destructive";
2879
+ outline: "outline";
2835
2880
  }>>;
2836
2881
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2837
2882
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -2862,23 +2907,26 @@ export declare const PageDefinitionSchema: z.ZodObject<{
2862
2907
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2863
2908
  handle: z.ZodString;
2864
2909
  label: z.ZodString;
2865
- handler: z.ZodString;
2910
+ handler: z.ZodOptional<z.ZodString>;
2911
+ href: z.ZodOptional<z.ZodString>;
2866
2912
  icon: z.ZodOptional<z.ZodString>;
2867
2913
  variant: z.ZodOptional<z.ZodEnum<{
2868
2914
  primary: "primary";
2869
2915
  secondary: "secondary";
2870
2916
  destructive: "destructive";
2917
+ outline: "outline";
2871
2918
  }>>;
2872
2919
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2873
2920
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
2874
2921
  }, z.core.$strip>>>;
2875
2922
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
2876
2923
  model: z.ZodString;
2877
- mode: z.ZodEnum<{
2924
+ mode: z.ZodPipe<z.ZodEnum<{
2878
2925
  first: "first";
2879
2926
  many: "many";
2880
2927
  count: "count";
2881
- }>;
2928
+ all: "all";
2929
+ }>, z.ZodTransform<"first" | "many" | "count", "first" | "many" | "count" | "all">>;
2882
2930
  filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>>>;
2883
2931
  limit: z.ZodOptional<z.ZodNumber>;
2884
2932
  }, z.core.$strip>, z.ZodObject<{
@@ -3039,6 +3087,7 @@ export declare const InstallConfigSchema: z.ZodObject<{
3039
3087
  }, z.core.$strip>]>>>;
3040
3088
  addDefaultPages: z.ZodOptional<z.ZodBoolean>;
3041
3089
  addNavigation: z.ZodOptional<z.ZodBoolean>;
3090
+ page: z.ZodOptional<z.ZodString>;
3042
3091
  }, z.core.$strip>>>;
3043
3092
  relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
3044
3093
  source: z.ZodObject<{
@@ -3161,6 +3210,7 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
3161
3210
  }, z.core.$strip>]>>>;
3162
3211
  addDefaultPages: z.ZodOptional<z.ZodBoolean>;
3163
3212
  addNavigation: z.ZodOptional<z.ZodBoolean>;
3213
+ page: z.ZodOptional<z.ZodString>;
3164
3214
  }, z.core.$strip>>>;
3165
3215
  relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
3166
3216
  source: z.ZodObject<{
@@ -3305,13 +3355,20 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
3305
3355
  }, z.core.$strip>>;
3306
3356
  }, z.core.$strip>>;
3307
3357
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
3358
+ handle: z.ZodOptional<z.ZodString>;
3359
+ label: z.ZodString;
3360
+ description: z.ZodOptional<z.ZodString>;
3308
3361
  type: z.ZodEnum<{
3309
3362
  INSTANCE: "INSTANCE";
3310
3363
  LIST: "LIST";
3311
3364
  }>;
3312
- title: z.ZodString;
3313
3365
  path: z.ZodString;
3314
3366
  default: z.ZodOptional<z.ZodBoolean>;
3367
+ audience: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
3368
+ install: "install";
3369
+ developer: "developer";
3370
+ both: "both";
3371
+ }>>>;
3315
3372
  navigation: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodObject<{
3316
3373
  sidebar: z.ZodOptional<z.ZodObject<{
3317
3374
  sections: z.ZodArray<z.ZodObject<{
@@ -3633,12 +3690,14 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
3633
3690
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3634
3691
  handle: z.ZodString;
3635
3692
  label: z.ZodString;
3636
- handler: z.ZodString;
3693
+ handler: z.ZodOptional<z.ZodString>;
3694
+ href: z.ZodOptional<z.ZodString>;
3637
3695
  icon: z.ZodOptional<z.ZodString>;
3638
3696
  variant: z.ZodOptional<z.ZodEnum<{
3639
3697
  primary: "primary";
3640
3698
  secondary: "secondary";
3641
3699
  destructive: "destructive";
3700
+ outline: "outline";
3642
3701
  }>>;
3643
3702
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
3644
3703
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -3647,12 +3706,14 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
3647
3706
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3648
3707
  handle: z.ZodString;
3649
3708
  label: z.ZodString;
3650
- handler: z.ZodString;
3709
+ handler: z.ZodOptional<z.ZodString>;
3710
+ href: z.ZodOptional<z.ZodString>;
3651
3711
  icon: z.ZodOptional<z.ZodString>;
3652
3712
  variant: z.ZodOptional<z.ZodEnum<{
3653
3713
  primary: "primary";
3654
3714
  secondary: "secondary";
3655
3715
  destructive: "destructive";
3716
+ outline: "outline";
3656
3717
  }>>;
3657
3718
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
3658
3719
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -3660,12 +3721,14 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
3660
3721
  secondaryActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3661
3722
  handle: z.ZodString;
3662
3723
  label: z.ZodString;
3663
- handler: z.ZodString;
3724
+ handler: z.ZodOptional<z.ZodString>;
3725
+ href: z.ZodOptional<z.ZodString>;
3664
3726
  icon: z.ZodOptional<z.ZodString>;
3665
3727
  variant: z.ZodOptional<z.ZodEnum<{
3666
3728
  primary: "primary";
3667
3729
  secondary: "secondary";
3668
3730
  destructive: "destructive";
3731
+ outline: "outline";
3669
3732
  }>>;
3670
3733
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
3671
3734
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -3673,12 +3736,14 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
3673
3736
  primaryActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3674
3737
  handle: z.ZodString;
3675
3738
  label: z.ZodString;
3676
- handler: z.ZodString;
3739
+ handler: z.ZodOptional<z.ZodString>;
3740
+ href: z.ZodOptional<z.ZodString>;
3677
3741
  icon: z.ZodOptional<z.ZodString>;
3678
3742
  variant: z.ZodOptional<z.ZodEnum<{
3679
3743
  primary: "primary";
3680
3744
  secondary: "secondary";
3681
3745
  destructive: "destructive";
3746
+ outline: "outline";
3682
3747
  }>>;
3683
3748
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
3684
3749
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -3709,23 +3774,26 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
3709
3774
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3710
3775
  handle: z.ZodString;
3711
3776
  label: z.ZodString;
3712
- handler: z.ZodString;
3777
+ handler: z.ZodOptional<z.ZodString>;
3778
+ href: z.ZodOptional<z.ZodString>;
3713
3779
  icon: z.ZodOptional<z.ZodString>;
3714
3780
  variant: z.ZodOptional<z.ZodEnum<{
3715
3781
  primary: "primary";
3716
3782
  secondary: "secondary";
3717
3783
  destructive: "destructive";
3784
+ outline: "outline";
3718
3785
  }>>;
3719
3786
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
3720
3787
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
3721
3788
  }, z.core.$strip>>>;
3722
3789
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
3723
3790
  model: z.ZodString;
3724
- mode: z.ZodEnum<{
3791
+ mode: z.ZodPipe<z.ZodEnum<{
3725
3792
  first: "first";
3726
3793
  many: "many";
3727
3794
  count: "count";
3728
- }>;
3795
+ all: "all";
3796
+ }>, z.ZodTransform<"first" | "many" | "count", "first" | "many" | "count" | "all">>;
3729
3797
  filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>>>;
3730
3798
  limit: z.ZodOptional<z.ZodNumber>;
3731
3799
  }, z.core.$strip>, z.ZodObject<{
@@ -3846,6 +3914,7 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
3846
3914
  }, z.core.$strip>]>>>;
3847
3915
  addDefaultPages: z.ZodOptional<z.ZodBoolean>;
3848
3916
  addNavigation: z.ZodOptional<z.ZodBoolean>;
3917
+ page: z.ZodOptional<z.ZodString>;
3849
3918
  }, z.core.$strip>>>;
3850
3919
  relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
3851
3920
  source: z.ZodObject<{
@@ -3990,13 +4059,20 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
3990
4059
  }, z.core.$strip>>;
3991
4060
  }, z.core.$strip>>;
3992
4061
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
4062
+ handle: z.ZodOptional<z.ZodString>;
4063
+ label: z.ZodString;
4064
+ description: z.ZodOptional<z.ZodString>;
3993
4065
  type: z.ZodEnum<{
3994
4066
  INSTANCE: "INSTANCE";
3995
4067
  LIST: "LIST";
3996
4068
  }>;
3997
- title: z.ZodString;
3998
4069
  path: z.ZodString;
3999
4070
  default: z.ZodOptional<z.ZodBoolean>;
4071
+ audience: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
4072
+ install: "install";
4073
+ developer: "developer";
4074
+ both: "both";
4075
+ }>>>;
4000
4076
  navigation: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodObject<{
4001
4077
  sidebar: z.ZodOptional<z.ZodObject<{
4002
4078
  sections: z.ZodArray<z.ZodObject<{
@@ -4318,12 +4394,14 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
4318
4394
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4319
4395
  handle: z.ZodString;
4320
4396
  label: z.ZodString;
4321
- handler: z.ZodString;
4397
+ handler: z.ZodOptional<z.ZodString>;
4398
+ href: z.ZodOptional<z.ZodString>;
4322
4399
  icon: z.ZodOptional<z.ZodString>;
4323
4400
  variant: z.ZodOptional<z.ZodEnum<{
4324
4401
  primary: "primary";
4325
4402
  secondary: "secondary";
4326
4403
  destructive: "destructive";
4404
+ outline: "outline";
4327
4405
  }>>;
4328
4406
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
4329
4407
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -4332,12 +4410,14 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
4332
4410
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4333
4411
  handle: z.ZodString;
4334
4412
  label: z.ZodString;
4335
- handler: z.ZodString;
4413
+ handler: z.ZodOptional<z.ZodString>;
4414
+ href: z.ZodOptional<z.ZodString>;
4336
4415
  icon: z.ZodOptional<z.ZodString>;
4337
4416
  variant: z.ZodOptional<z.ZodEnum<{
4338
4417
  primary: "primary";
4339
4418
  secondary: "secondary";
4340
4419
  destructive: "destructive";
4420
+ outline: "outline";
4341
4421
  }>>;
4342
4422
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
4343
4423
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -4345,12 +4425,14 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
4345
4425
  secondaryActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4346
4426
  handle: z.ZodString;
4347
4427
  label: z.ZodString;
4348
- handler: z.ZodString;
4428
+ handler: z.ZodOptional<z.ZodString>;
4429
+ href: z.ZodOptional<z.ZodString>;
4349
4430
  icon: z.ZodOptional<z.ZodString>;
4350
4431
  variant: z.ZodOptional<z.ZodEnum<{
4351
4432
  primary: "primary";
4352
4433
  secondary: "secondary";
4353
4434
  destructive: "destructive";
4435
+ outline: "outline";
4354
4436
  }>>;
4355
4437
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
4356
4438
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -4358,12 +4440,14 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
4358
4440
  primaryActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4359
4441
  handle: z.ZodString;
4360
4442
  label: z.ZodString;
4361
- handler: z.ZodString;
4443
+ handler: z.ZodOptional<z.ZodString>;
4444
+ href: z.ZodOptional<z.ZodString>;
4362
4445
  icon: z.ZodOptional<z.ZodString>;
4363
4446
  variant: z.ZodOptional<z.ZodEnum<{
4364
4447
  primary: "primary";
4365
4448
  secondary: "secondary";
4366
4449
  destructive: "destructive";
4450
+ outline: "outline";
4367
4451
  }>>;
4368
4452
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
4369
4453
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
@@ -4394,23 +4478,26 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
4394
4478
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4395
4479
  handle: z.ZodString;
4396
4480
  label: z.ZodString;
4397
- handler: z.ZodString;
4481
+ handler: z.ZodOptional<z.ZodString>;
4482
+ href: z.ZodOptional<z.ZodString>;
4398
4483
  icon: z.ZodOptional<z.ZodString>;
4399
4484
  variant: z.ZodOptional<z.ZodEnum<{
4400
4485
  primary: "primary";
4401
4486
  secondary: "secondary";
4402
4487
  destructive: "destructive";
4488
+ outline: "outline";
4403
4489
  }>>;
4404
4490
  isDisabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
4405
4491
  isHidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
4406
4492
  }, z.core.$strip>>>;
4407
4493
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
4408
4494
  model: z.ZodString;
4409
- mode: z.ZodEnum<{
4495
+ mode: z.ZodPipe<z.ZodEnum<{
4410
4496
  first: "first";
4411
4497
  many: "many";
4412
4498
  count: "count";
4413
- }>;
4499
+ all: "all";
4500
+ }>, z.ZodTransform<"first" | "many" | "count", "first" | "many" | "count" | "all">>;
4414
4501
  filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>>>;
4415
4502
  limit: z.ZodOptional<z.ZodNumber>;
4416
4503
  }, z.core.$strip>, z.ZodObject<{
@@ -4461,6 +4548,7 @@ export type NavigationSidebar = z.infer<typeof NavigationSidebarSchema>;
4461
4548
  export type BreadcrumbItem = z.infer<typeof BreadcrumbItemSchema>;
4462
4549
  export type NavigationBreadcrumb = z.infer<typeof NavigationBreadcrumbSchema>;
4463
4550
  export type NavigationConfig = z.infer<typeof NavigationConfigSchema>;
4551
+ export type PageAudience = z.infer<typeof PageAudienceSchema>;
4464
4552
  export type PageDefinition = z.infer<typeof PageDefinitionSchema>;
4465
4553
  export type ModelDependency = z.infer<typeof ModelDependencySchema>;
4466
4554
  export type ChannelDependency = z.infer<typeof ChannelDependencySchema>;
@@ -49,6 +49,13 @@ export declare function handleWebhookRoute(req: UnifiedRequest, handle: string,
49
49
  * Handle POST /mcp (JSON-RPC)
50
50
  */
51
51
  export declare function handleMcpRoute(req: UnifiedRequest, ctx: RouteContext): Promise<UnifiedResponse>;
52
+ /**
53
+ * Handle POST /mcp/batch
54
+ *
55
+ * Process multiple tool calls in parallel with per-call timeout support.
56
+ * This is used by the message outbox processor for efficient batched delivery.
57
+ */
58
+ export declare function handleMcpBatchRoute(req: UnifiedRequest, ctx: RouteContext): Promise<UnifiedResponse>;
52
59
  /**
53
60
  * Create a 404 Not Found response in JSON-RPC format.
54
61
  */
@@ -6,6 +6,15 @@ export declare function parseJsonRecord(value?: string): Record<string, string>;
6
6
  * Parses a string environment variable as a number
7
7
  */
8
8
  export declare function parseNumberEnv(value?: string): number | null;
9
+ /**
10
+ * Baked-in secrets for this executable (container/Lambda), not the full OS process.env.
11
+ */
12
+ export declare function getBakedExecutableEnv(): Record<string, string>;
13
+ /**
14
+ * Env exposed to tool handlers: per-request values from the platform win over baked secrets.
15
+ * Avoids leaking unrelated keys left in process.env during local `dev serve`.
16
+ */
17
+ export declare function buildToolExecutionEnv(requestEnv?: Record<string, string | undefined>): Record<string, string | undefined>;
9
18
  /**
10
19
  * Merges baked-in environment variables with runtime environment variables
11
20
  */
@@ -1,3 +1,4 @@
1
1
  export { normalizeBilling, toJsonSchema, isToolSchemaWithJson, getZodSchema, getJsonSchemaFromToolSchema, } from './schema';
2
2
  export { parseJsonRecord, parseNumberEnv, mergeRuntimeEnv, } from './env';
3
3
  export { readRawRequestBody, parseJSONBody, sendJSON, sendHTML, getDefaultHeaders, createResponse, getListeningPort, } from './http';
4
+ export { serializeMcpContentText, isToolCallFailure, buildToolCallErrorOutput, } from './mcp-response';
@@ -0,0 +1,11 @@
1
+ import type { ToolCallResponse } from '../../types';
2
+ /**
3
+ * MCP content items require `text` to be a string. JSON.stringify(undefined)
4
+ * returns undefined (not a string), which fails MCP SDK validation.
5
+ */
6
+ export declare function serializeMcpContentText(value: unknown): string;
7
+ export declare function isToolCallFailure(result: ToolCallResponse): boolean;
8
+ export declare function buildToolCallErrorOutput(result: ToolCallResponse): {
9
+ error: unknown;
10
+ retry?: unknown;
11
+ };