@heynixie/contract 0.78.0 → 0.80.0

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.
@@ -375,6 +375,15 @@ export declare const approvalContract: {
375
375
  }>>;
376
376
  answeredOn: z.ZodNullable<z.ZodString>;
377
377
  isAnsweredHere: z.ZodBoolean;
378
+ call: z.ZodNullable<z.ZodObject<{
379
+ state: z.ZodEnum<{
380
+ applied: "applied";
381
+ failed: "failed";
382
+ unknown: "unknown";
383
+ waiting: "waiting";
384
+ }>;
385
+ reason: z.ZodNullable<z.ZodString>;
386
+ }, z.core.$strip>>;
378
387
  }, z.core.$strip>>;
379
388
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
380
389
  UNAUTHORIZED: {
@@ -29,7 +29,8 @@ export declare function buildQueryUtils(client: ContractClient): {
29
29
  text: string;
30
30
  } | undefined;
31
31
  reminder?: {
32
- brief: string;
32
+ name: string | null;
33
+ note: string;
33
34
  scheduledFor: string;
34
35
  lateBySeconds: number | null;
35
36
  } | undefined;
@@ -193,7 +194,8 @@ export declare function buildQueryUtils(client: ContractClient): {
193
194
  text: string;
194
195
  } | undefined;
195
196
  reminder?: {
196
- brief: string;
197
+ name: string | null;
198
+ note: string;
197
199
  scheduledFor: string;
198
200
  lateBySeconds: number | null;
199
201
  } | undefined;
@@ -749,7 +751,7 @@ export declare function buildQueryUtils(client: ContractClient): {
749
751
  isPauseRequested: boolean;
750
752
  state: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
751
753
  taskID: string;
752
- }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
754
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
753
755
  UNAUTHORIZED: {
754
756
  message: string;
755
757
  status: number;
@@ -785,6 +787,11 @@ export declare function buildQueryUtils(client: ContractClient): {
785
787
  message: string;
786
788
  status: number;
787
789
  };
790
+ }>, {
791
+ SPEND_STOP_STANDS: {
792
+ readonly message: 'Model spending is stopped, and nixie resumes when the stop clears';
793
+ readonly status: 409;
794
+ };
788
795
  }>>> & import("@orpc/tanstack-query").GeneralUtils<{
789
796
  clientActionID: string;
790
797
  taskID: string;
@@ -1690,7 +1697,7 @@ export declare function buildQueryUtils(client: ContractClient): {
1690
1697
  }, {
1691
1698
  notices: {
1692
1699
  entries: {
1693
- change: "created" | "edited" | "proposed" | "restored" | "retired" | "undone";
1700
+ change: "created" | "edited" | "labelled" | "pinned" | "proposed" | "restored" | "retired" | "undone" | "unpinned";
1694
1701
  isKept: boolean;
1695
1702
  item: {
1696
1703
  changedAt: Date;
@@ -2206,7 +2213,7 @@ export declare function buildQueryUtils(client: ContractClient): {
2206
2213
  cause: "owner" | "restore" | "spending";
2207
2214
  since: Date;
2208
2215
  } | null;
2209
- }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2216
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2210
2217
  UNAUTHORIZED: {
2211
2218
  message: string;
2212
2219
  status: number;
@@ -2216,10 +2223,85 @@ export declare function buildQueryUtils(client: ContractClient): {
2216
2223
  message: string;
2217
2224
  status: number;
2218
2225
  };
2226
+ }>, {
2227
+ SPEND_STOP_STANDS: {
2228
+ readonly message: 'Model spending is stopped, and nixie resumes when the stop clears';
2229
+ readonly status: 409;
2230
+ };
2219
2231
  }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2220
2232
  clientActionID: string;
2221
2233
  }>;
2222
2234
  } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2235
+ spend: {
2236
+ read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
2237
+ state: "clear";
2238
+ } | {
2239
+ state: "unreachable";
2240
+ } | {
2241
+ state: "lost";
2242
+ } | {
2243
+ state: "tripped";
2244
+ period: "day" | "month";
2245
+ start: string;
2246
+ measure: "dollars" | "tokens" | "turns";
2247
+ limit: number;
2248
+ spent: number;
2249
+ at: Date;
2250
+ resetsAt: Date;
2251
+ canRaise: boolean;
2252
+ limits: {
2253
+ dollars: number;
2254
+ tokens: number;
2255
+ turns: number;
2256
+ };
2257
+ used: {
2258
+ dollars: number;
2259
+ tokens: number;
2260
+ turns: number;
2261
+ };
2262
+ cap: {
2263
+ dollars: number;
2264
+ tokens: number;
2265
+ turns: number;
2266
+ };
2267
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2268
+ UNAUTHORIZED: {
2269
+ message: string;
2270
+ status: number;
2271
+ };
2272
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2273
+ raise: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2274
+ start: string;
2275
+ dollars: number;
2276
+ tokens: number;
2277
+ turns: number;
2278
+ }, {
2279
+ state: "clear";
2280
+ } | {
2281
+ state: "stopped";
2282
+ } | {
2283
+ error: "above_cap";
2284
+ cap: {
2285
+ dollars: number;
2286
+ tokens: number;
2287
+ turns: number;
2288
+ };
2289
+ } | {
2290
+ error: "period_ended";
2291
+ } | {
2292
+ error: "unreachable";
2293
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2294
+ UNAUTHORIZED: {
2295
+ message: string;
2296
+ status: number;
2297
+ };
2298
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2299
+ start: string;
2300
+ dollars: number;
2301
+ tokens: number;
2302
+ turns: number;
2303
+ }>;
2304
+ } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2223
2305
  recovery: {
2224
2306
  read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
2225
2307
  recovery: {
@@ -2279,6 +2361,63 @@ export declare function buildQueryUtils(client: ContractClient): {
2279
2361
  definitionID?: string | undefined;
2280
2362
  }>;
2281
2363
  } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2364
+ reminders: {
2365
+ list: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
2366
+ reminders: {
2367
+ reminder: string;
2368
+ name: string;
2369
+ note: string;
2370
+ trigger: {
2371
+ schedule: {
2372
+ every: "day" | "hour" | "week" | {
2373
+ minutes: number;
2374
+ };
2375
+ at?: string | undefined;
2376
+ on?: "fri" | "mon" | "sat" | "sun" | "thu" | "tue" | "wed" | undefined;
2377
+ window?: {
2378
+ from: string;
2379
+ until: string;
2380
+ } | undefined;
2381
+ idleMinutes?: number | undefined;
2382
+ zone: string;
2383
+ catchUp: "once" | "skip";
2384
+ };
2385
+ } | {
2386
+ at: string;
2387
+ };
2388
+ rendered: string;
2389
+ state: "active" | "fired";
2390
+ next: string | null;
2391
+ recentFires: string[];
2392
+ }[];
2393
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2394
+ UNAUTHORIZED: {
2395
+ message: string;
2396
+ status: number;
2397
+ };
2398
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2399
+ cancel: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2400
+ reminder: string;
2401
+ }, {
2402
+ reminder: string;
2403
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2404
+ UNAUTHORIZED: {
2405
+ message: string;
2406
+ status: number;
2407
+ };
2408
+ }>, {
2409
+ NOT_FOUND: {
2410
+ message: string;
2411
+ status: number;
2412
+ };
2413
+ NOT_ACTIVE: {
2414
+ message: string;
2415
+ status: number;
2416
+ };
2417
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2418
+ reminder: string;
2419
+ }>;
2420
+ } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2282
2421
  definitions: {
2283
2422
  undo: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2284
2423
  clientActionID: string;
@@ -2357,7 +2496,6 @@ export declare function buildQueryUtils(client: ContractClient): {
2357
2496
  definitionID: string;
2358
2497
  name: string;
2359
2498
  enabled: boolean;
2360
- target: "conversation" | "task";
2361
2499
  trigger: {
2362
2500
  schedule: {
2363
2501
  every: "day" | "hour" | "week" | {
@@ -2530,6 +2668,14 @@ export declare function buildQueryUtils(client: ContractClient): {
2530
2668
  status: number;
2531
2669
  data: import("zod").ZodObject<{
2532
2670
  faults: import("zod").ZodArray<import("zod").ZodString>;
2671
+ expiry: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
2672
+ reason: import("zod").ZodLiteral<"expires_past">;
2673
+ now: import("zod").ZodString;
2674
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2675
+ reason: import("zod").ZodLiteral<"expires_beyond_max">;
2676
+ maxHours: import("zod").ZodNumber;
2677
+ latestExpiry: import("zod").ZodString;
2678
+ }, import("zod/v4/core").$strip>], "reason">>;
2533
2679
  }, import("zod/v4/core").$strip>;
2534
2680
  };
2535
2681
  NOT_FOUND: {
@@ -2588,6 +2734,14 @@ export declare function buildQueryUtils(client: ContractClient): {
2588
2734
  status: number;
2589
2735
  data: import("zod").ZodObject<{
2590
2736
  faults: import("zod").ZodArray<import("zod").ZodString>;
2737
+ expiry: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
2738
+ reason: import("zod").ZodLiteral<"expires_past">;
2739
+ now: import("zod").ZodString;
2740
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2741
+ reason: import("zod").ZodLiteral<"expires_beyond_max">;
2742
+ maxHours: import("zod").ZodNumber;
2743
+ latestExpiry: import("zod").ZodString;
2744
+ }, import("zod/v4/core").$strip>], "reason">>;
2591
2745
  }, import("zod/v4/core").$strip>;
2592
2746
  };
2593
2747
  }>>> & import("@orpc/tanstack-query").GeneralUtils<{
@@ -2838,6 +2992,10 @@ export declare function buildQueryUtils(client: ContractClient): {
2838
2992
  passkeyChoices: ("always_allow" | "approve" | "decline" | "defer")[];
2839
2993
  answeredOn: string | null;
2840
2994
  isAnsweredHere: boolean;
2995
+ call: {
2996
+ state: "applied" | "failed" | "unknown" | "waiting";
2997
+ reason: string | null;
2998
+ } | null;
2841
2999
  }[];
2842
3000
  }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2843
3001
  UNAUTHORIZED: {
@@ -3479,7 +3637,8 @@ export declare function buildQueryUtils(client: ContractClient): {
3479
3637
  text: string;
3480
3638
  } | undefined;
3481
3639
  reminder?: {
3482
- brief: string;
3640
+ name: string | null;
3641
+ note: string;
3483
3642
  scheduledFor: string;
3484
3643
  lateBySeconds: number | null;
3485
3644
  } | undefined;
@@ -3660,7 +3819,8 @@ export declare function buildQueryUtils(client: ContractClient): {
3660
3819
  text: string;
3661
3820
  } | undefined;
3662
3821
  reminder?: {
3663
- brief: string;
3822
+ name: string | null;
3823
+ note: string;
3664
3824
  scheduledFor: string;
3665
3825
  lateBySeconds: number | null;
3666
3826
  } | undefined;
@@ -37,7 +37,8 @@ export declare const contract: {
37
37
  text: z.ZodString;
38
38
  }, z.core.$strip>>;
39
39
  reminder: z.ZodOptional<z.ZodObject<{
40
- brief: z.ZodString;
40
+ name: z.ZodNullable<z.ZodString>;
41
+ note: z.ZodString;
41
42
  scheduledFor: z.ZodISODateTime;
42
43
  lateBySeconds: z.ZodNullable<z.ZodNumber>;
43
44
  }, z.core.$strip>>;
@@ -232,7 +233,8 @@ export declare const contract: {
232
233
  text: z.ZodString;
233
234
  }, z.core.$strip>>;
234
235
  reminder: z.ZodOptional<z.ZodObject<{
235
- brief: z.ZodString;
236
+ name: z.ZodNullable<z.ZodString>;
237
+ note: z.ZodString;
236
238
  scheduledFor: z.ZodISODateTime;
237
239
  lateBySeconds: z.ZodNullable<z.ZodNumber>;
238
240
  }, z.core.$strip>>;
@@ -902,7 +904,7 @@ export declare const contract: {
902
904
  waiting: "waiting";
903
905
  }>;
904
906
  taskID: z.ZodString;
905
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
907
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
906
908
  UNAUTHORIZED: {
907
909
  message: string;
908
910
  status: number;
@@ -938,6 +940,11 @@ export declare const contract: {
938
940
  message: string;
939
941
  status: number;
940
942
  };
943
+ }>, {
944
+ SPEND_STOP_STANDS: {
945
+ readonly message: 'Model spending is stopped, and nixie resumes when the stop clears';
946
+ readonly status: 409;
947
+ };
941
948
  }>, Record<never, never>>;
942
949
  stop: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
943
950
  clientActionID: z.ZodUUID;
@@ -1961,10 +1968,13 @@ export declare const contract: {
1961
1968
  change: z.ZodEnum<{
1962
1969
  created: "created";
1963
1970
  edited: "edited";
1971
+ labelled: "labelled";
1972
+ pinned: "pinned";
1964
1973
  proposed: "proposed";
1965
1974
  restored: "restored";
1966
1975
  retired: "retired";
1967
1976
  undone: "undone";
1977
+ unpinned: "unpinned";
1968
1978
  }>;
1969
1979
  isKept: z.ZodBoolean;
1970
1980
  item: z.ZodNullable<z.ZodObject<{
@@ -2572,7 +2582,7 @@ export declare const contract: {
2572
2582
  }>;
2573
2583
  since: z.ZodDate;
2574
2584
  }, z.core.$strip>>;
2575
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2585
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2576
2586
  UNAUTHORIZED: {
2577
2587
  message: string;
2578
2588
  status: number;
@@ -2582,6 +2592,83 @@ export declare const contract: {
2582
2592
  message: string;
2583
2593
  status: number;
2584
2594
  };
2595
+ }>, {
2596
+ SPEND_STOP_STANDS: {
2597
+ readonly message: 'Model spending is stopped, and nixie resumes when the stop clears';
2598
+ readonly status: 409;
2599
+ };
2600
+ }>, Record<never, never>>;
2601
+ };
2602
+ spend: {
2603
+ read: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2604
+ state: z.ZodLiteral<"clear">;
2605
+ }, z.core.$strip>, z.ZodObject<{
2606
+ state: z.ZodLiteral<"unreachable">;
2607
+ }, z.core.$strip>, z.ZodObject<{
2608
+ state: z.ZodLiteral<"lost">;
2609
+ }, z.core.$strip>, z.ZodObject<{
2610
+ state: z.ZodLiteral<"tripped">;
2611
+ period: z.ZodEnum<{
2612
+ day: "day";
2613
+ month: "month";
2614
+ }>;
2615
+ start: z.ZodString;
2616
+ measure: z.ZodEnum<{
2617
+ dollars: "dollars";
2618
+ tokens: "tokens";
2619
+ turns: "turns";
2620
+ }>;
2621
+ limit: z.ZodNumber;
2622
+ spent: z.ZodNumber;
2623
+ at: z.ZodDate;
2624
+ resetsAt: z.ZodDate;
2625
+ canRaise: z.ZodBoolean;
2626
+ limits: z.ZodObject<{
2627
+ dollars: z.ZodNumber;
2628
+ tokens: z.ZodNumber;
2629
+ turns: z.ZodNumber;
2630
+ }, z.core.$strip>;
2631
+ used: z.ZodObject<{
2632
+ dollars: z.ZodNumber;
2633
+ tokens: z.ZodNumber;
2634
+ turns: z.ZodNumber;
2635
+ }, z.core.$strip>;
2636
+ cap: z.ZodObject<{
2637
+ dollars: z.ZodNumber;
2638
+ tokens: z.ZodNumber;
2639
+ turns: z.ZodNumber;
2640
+ }, z.core.$strip>;
2641
+ }, z.core.$strip>], "state">, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2642
+ UNAUTHORIZED: {
2643
+ message: string;
2644
+ status: number;
2645
+ };
2646
+ }>, Record<never, never>>;
2647
+ raise: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2648
+ start: z.ZodString;
2649
+ dollars: z.ZodNumber;
2650
+ tokens: z.ZodInt;
2651
+ turns: z.ZodInt;
2652
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
2653
+ state: z.ZodLiteral<"clear">;
2654
+ }, z.core.$strip>, z.ZodObject<{
2655
+ state: z.ZodLiteral<"stopped">;
2656
+ }, z.core.$strip>, z.ZodObject<{
2657
+ error: z.ZodLiteral<"above_cap">;
2658
+ cap: z.ZodObject<{
2659
+ dollars: z.ZodNumber;
2660
+ tokens: z.ZodNumber;
2661
+ turns: z.ZodNumber;
2662
+ }, z.core.$strip>;
2663
+ }, z.core.$strip>, z.ZodObject<{
2664
+ error: z.ZodLiteral<"period_ended">;
2665
+ }, z.core.$strip>, z.ZodObject<{
2666
+ error: z.ZodLiteral<"unreachable">;
2667
+ }, z.core.$strip>]>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2668
+ UNAUTHORIZED: {
2669
+ message: string;
2670
+ status: number;
2671
+ };
2585
2672
  }>, Record<never, never>>;
2586
2673
  };
2587
2674
  recovery: {
@@ -2661,6 +2748,79 @@ export declare const contract: {
2661
2748
  };
2662
2749
  }>, Record<never, never>>;
2663
2750
  };
2751
+ reminders: {
2752
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2753
+ reminders: z.ZodArray<z.ZodObject<{
2754
+ reminder: z.ZodString;
2755
+ name: z.ZodString;
2756
+ note: z.ZodString;
2757
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
2758
+ schedule: z.ZodObject<{
2759
+ every: z.ZodUnion<readonly [z.ZodEnum<{
2760
+ day: "day";
2761
+ hour: "hour";
2762
+ week: "week";
2763
+ }>, z.ZodObject<{
2764
+ minutes: z.ZodInt;
2765
+ }, z.core.$strict>]>;
2766
+ at: z.ZodOptional<z.ZodString>;
2767
+ on: z.ZodOptional<z.ZodEnum<{
2768
+ fri: "fri";
2769
+ mon: "mon";
2770
+ sat: "sat";
2771
+ sun: "sun";
2772
+ thu: "thu";
2773
+ tue: "tue";
2774
+ wed: "wed";
2775
+ }>>;
2776
+ window: z.ZodOptional<z.ZodObject<{
2777
+ from: z.ZodString;
2778
+ until: z.ZodString;
2779
+ }, z.core.$strict>>;
2780
+ idleMinutes: z.ZodOptional<z.ZodInt>;
2781
+ zone: z.ZodDefault<z.ZodString>;
2782
+ catchUp: z.ZodDefault<z.ZodEnum<{
2783
+ once: "once";
2784
+ skip: "skip";
2785
+ }>>;
2786
+ }, z.core.$strict>;
2787
+ }, z.core.$strict>, z.ZodObject<{
2788
+ at: z.ZodISODateTime;
2789
+ }, z.core.$strict>]>;
2790
+ rendered: z.ZodString;
2791
+ state: z.ZodEnum<{
2792
+ active: "active";
2793
+ fired: "fired";
2794
+ }>;
2795
+ next: z.ZodNullable<z.ZodString>;
2796
+ recentFires: z.ZodArray<z.ZodString>;
2797
+ }, z.core.$strip>>;
2798
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2799
+ UNAUTHORIZED: {
2800
+ message: string;
2801
+ status: number;
2802
+ };
2803
+ }>, Record<never, never>>;
2804
+ cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2805
+ reminder: z.ZodString;
2806
+ }, z.core.$strip>, z.ZodObject<{
2807
+ reminder: z.ZodString;
2808
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2809
+ UNAUTHORIZED: {
2810
+ message: string;
2811
+ status: number;
2812
+ };
2813
+ }>, {
2814
+ NOT_FOUND: {
2815
+ message: string;
2816
+ status: number;
2817
+ };
2818
+ NOT_ACTIVE: {
2819
+ message: string;
2820
+ status: number;
2821
+ };
2822
+ }>, Record<never, never>>;
2823
+ };
2664
2824
  definitions: {
2665
2825
  undo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2666
2826
  clientActionID: z.ZodUUID;
@@ -2736,10 +2896,6 @@ export declare const contract: {
2736
2896
  definitionID: z.ZodString;
2737
2897
  name: z.ZodString;
2738
2898
  enabled: z.ZodBoolean;
2739
- target: z.ZodEnum<{
2740
- conversation: "conversation";
2741
- task: "task";
2742
- }>;
2743
2899
  trigger: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
2744
2900
  schedule: z.ZodObject<{
2745
2901
  every: z.ZodUnion<readonly [z.ZodEnum<{
@@ -2926,6 +3082,14 @@ export declare const contract: {
2926
3082
  status: number;
2927
3083
  data: z.ZodObject<{
2928
3084
  faults: z.ZodArray<z.ZodString>;
3085
+ expiry: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3086
+ reason: z.ZodLiteral<"expires_past">;
3087
+ now: z.ZodString;
3088
+ }, z.core.$strip>, z.ZodObject<{
3089
+ reason: z.ZodLiteral<"expires_beyond_max">;
3090
+ maxHours: z.ZodNumber;
3091
+ latestExpiry: z.ZodString;
3092
+ }, z.core.$strip>], "reason">>;
2929
3093
  }, z.core.$strip>;
2930
3094
  };
2931
3095
  NOT_FOUND: {
@@ -2979,6 +3143,14 @@ export declare const contract: {
2979
3143
  status: number;
2980
3144
  data: z.ZodObject<{
2981
3145
  faults: z.ZodArray<z.ZodString>;
3146
+ expiry: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3147
+ reason: z.ZodLiteral<"expires_past">;
3148
+ now: z.ZodString;
3149
+ }, z.core.$strip>, z.ZodObject<{
3150
+ reason: z.ZodLiteral<"expires_beyond_max">;
3151
+ maxHours: z.ZodNumber;
3152
+ latestExpiry: z.ZodString;
3153
+ }, z.core.$strip>], "reason">>;
2982
3154
  }, z.core.$strip>;
2983
3155
  };
2984
3156
  }>, Record<never, never>>;
@@ -3401,6 +3573,15 @@ export declare const contract: {
3401
3573
  }>>;
3402
3574
  answeredOn: z.ZodNullable<z.ZodString>;
3403
3575
  isAnsweredHere: z.ZodBoolean;
3576
+ call: z.ZodNullable<z.ZodObject<{
3577
+ state: z.ZodEnum<{
3578
+ applied: "applied";
3579
+ failed: "failed";
3580
+ unknown: "unknown";
3581
+ waiting: "waiting";
3582
+ }>;
3583
+ reason: z.ZodNullable<z.ZodString>;
3584
+ }, z.core.$strip>>;
3404
3585
  }, z.core.$strip>>;
3405
3586
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3406
3587
  UNAUTHORIZED: {
@@ -3983,7 +4164,8 @@ export declare const contract: {
3983
4164
  text: string;
3984
4165
  } | undefined;
3985
4166
  reminder?: {
3986
- brief: string;
4167
+ name: string | null;
4168
+ note: string;
3987
4169
  scheduledFor: string;
3988
4170
  lateBySeconds: number | null;
3989
4171
  } | undefined;
@@ -4148,7 +4330,8 @@ export declare const contract: {
4148
4330
  text: string;
4149
4331
  } | undefined;
4150
4332
  reminder?: {
4151
- brief: string;
4333
+ name: string | null;
4334
+ note: string;
4152
4335
  scheduledFor: string;
4153
4336
  lateBySeconds: number | null;
4154
4337
  } | undefined;
@@ -4325,7 +4508,8 @@ export declare const contract: {
4325
4508
  text: string;
4326
4509
  } | undefined;
4327
4510
  reminder?: {
4328
- brief: string;
4511
+ name: string | null;
4512
+ note: string;
4329
4513
  scheduledFor: string;
4330
4514
  lateBySeconds: number | null;
4331
4515
  } | undefined;
@@ -4490,7 +4674,8 @@ export declare const contract: {
4490
4674
  text: string;
4491
4675
  } | undefined;
4492
4676
  reminder?: {
4493
- brief: string;
4677
+ name: string | null;
4678
+ note: string;
4494
4679
  scheduledFor: string;
4495
4680
  lateBySeconds: number | null;
4496
4681
  } | undefined;
@@ -0,0 +1,51 @@
1
+ import { z } from 'zod';
2
+ export declare const hostBudgetsContract: {
3
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
4
+ budgetID: z.ZodString;
5
+ counts: z.ZodString;
6
+ limitMicros: z.ZodNumber;
7
+ period: z.ZodEnum<{
8
+ day: "day";
9
+ month: "month";
10
+ week: "week";
11
+ }>;
12
+ spentMicros: z.ZodNumber;
13
+ resetsAt: z.ZodDate;
14
+ source: z.ZodEnum<{
15
+ built_in: "built_in";
16
+ definitions: "definitions";
17
+ }>;
18
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
19
+ BUDGETS_NOT_CONFIGURED: {
20
+ message: string;
21
+ status: number;
22
+ };
23
+ }>, Record<never, never>>;
24
+ ledger: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
25
+ budgetID: z.ZodString;
26
+ }, z.core.$strict>, z.ZodObject<{
27
+ budgetID: z.ZodString;
28
+ periodStart: z.ZodString;
29
+ resetsAt: z.ZodDate;
30
+ spentMicros: z.ZodNumber;
31
+ charges: z.ZodArray<z.ZodObject<{
32
+ chargeID: z.ZodString;
33
+ amountMicros: z.ZodNumber;
34
+ for: z.ZodObject<{
35
+ kind: z.ZodString;
36
+ id: z.ZodString;
37
+ }, z.core.$strip>;
38
+ isCredited: z.ZodBoolean;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
41
+ BUDGETS_NOT_CONFIGURED: {
42
+ message: string;
43
+ status: number;
44
+ };
45
+ }>, {
46
+ NOT_FOUND: {
47
+ message: string;
48
+ status: number;
49
+ };
50
+ }>, Record<never, never>>;
51
+ };