@heynixie/contract 0.79.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.
- package/dist/contract/approval-contract.d.ts +9 -0
- package/dist/contract/build-query-utils.d.ts +85 -5
- package/dist/contract/contract.d.ts +110 -10
- package/dist/contract/host-budgets-contract.d.ts +51 -0
- package/dist/contract/host-contract.d.ts +50 -0
- package/dist/contract/reminders-contract.d.ts +74 -0
- package/dist/contract/rule-contract.d.ts +16 -0
- package/dist/contract/view-contract.d.ts +0 -4
- package/dist/index.js +767 -697
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
197
|
+
name: string | null;
|
|
198
|
+
note: string;
|
|
197
199
|
scheduledFor: string;
|
|
198
200
|
lateBySeconds: number | null;
|
|
199
201
|
} | undefined;
|
|
@@ -2359,6 +2361,63 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2359
2361
|
definitionID?: string | undefined;
|
|
2360
2362
|
}>;
|
|
2361
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>;
|
|
2362
2421
|
definitions: {
|
|
2363
2422
|
undo: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2364
2423
|
clientActionID: string;
|
|
@@ -2437,7 +2496,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2437
2496
|
definitionID: string;
|
|
2438
2497
|
name: string;
|
|
2439
2498
|
enabled: boolean;
|
|
2440
|
-
target: "conversation" | "task";
|
|
2441
2499
|
trigger: {
|
|
2442
2500
|
schedule: {
|
|
2443
2501
|
every: "day" | "hour" | "week" | {
|
|
@@ -2610,6 +2668,14 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2610
2668
|
status: number;
|
|
2611
2669
|
data: import("zod").ZodObject<{
|
|
2612
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">>;
|
|
2613
2679
|
}, import("zod/v4/core").$strip>;
|
|
2614
2680
|
};
|
|
2615
2681
|
NOT_FOUND: {
|
|
@@ -2668,6 +2734,14 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2668
2734
|
status: number;
|
|
2669
2735
|
data: import("zod").ZodObject<{
|
|
2670
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">>;
|
|
2671
2745
|
}, import("zod/v4/core").$strip>;
|
|
2672
2746
|
};
|
|
2673
2747
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
@@ -2918,6 +2992,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2918
2992
|
passkeyChoices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2919
2993
|
answeredOn: string | null;
|
|
2920
2994
|
isAnsweredHere: boolean;
|
|
2995
|
+
call: {
|
|
2996
|
+
state: "applied" | "failed" | "unknown" | "waiting";
|
|
2997
|
+
reason: string | null;
|
|
2998
|
+
} | null;
|
|
2921
2999
|
}[];
|
|
2922
3000
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2923
3001
|
UNAUTHORIZED: {
|
|
@@ -3559,7 +3637,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3559
3637
|
text: string;
|
|
3560
3638
|
} | undefined;
|
|
3561
3639
|
reminder?: {
|
|
3562
|
-
|
|
3640
|
+
name: string | null;
|
|
3641
|
+
note: string;
|
|
3563
3642
|
scheduledFor: string;
|
|
3564
3643
|
lateBySeconds: number | null;
|
|
3565
3644
|
} | undefined;
|
|
@@ -3740,7 +3819,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3740
3819
|
text: string;
|
|
3741
3820
|
} | undefined;
|
|
3742
3821
|
reminder?: {
|
|
3743
|
-
|
|
3822
|
+
name: string | null;
|
|
3823
|
+
note: string;
|
|
3744
3824
|
scheduledFor: string;
|
|
3745
3825
|
lateBySeconds: number | null;
|
|
3746
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
|
-
|
|
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
|
-
|
|
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>>;
|
|
@@ -2746,6 +2748,79 @@ export declare const contract: {
|
|
|
2746
2748
|
};
|
|
2747
2749
|
}>, Record<never, never>>;
|
|
2748
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
|
+
};
|
|
2749
2824
|
definitions: {
|
|
2750
2825
|
undo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2751
2826
|
clientActionID: z.ZodUUID;
|
|
@@ -2821,10 +2896,6 @@ export declare const contract: {
|
|
|
2821
2896
|
definitionID: z.ZodString;
|
|
2822
2897
|
name: z.ZodString;
|
|
2823
2898
|
enabled: z.ZodBoolean;
|
|
2824
|
-
target: z.ZodEnum<{
|
|
2825
|
-
conversation: "conversation";
|
|
2826
|
-
task: "task";
|
|
2827
|
-
}>;
|
|
2828
2899
|
trigger: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
2829
2900
|
schedule: z.ZodObject<{
|
|
2830
2901
|
every: z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -3011,6 +3082,14 @@ export declare const contract: {
|
|
|
3011
3082
|
status: number;
|
|
3012
3083
|
data: z.ZodObject<{
|
|
3013
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">>;
|
|
3014
3093
|
}, z.core.$strip>;
|
|
3015
3094
|
};
|
|
3016
3095
|
NOT_FOUND: {
|
|
@@ -3064,6 +3143,14 @@ export declare const contract: {
|
|
|
3064
3143
|
status: number;
|
|
3065
3144
|
data: z.ZodObject<{
|
|
3066
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">>;
|
|
3067
3154
|
}, z.core.$strip>;
|
|
3068
3155
|
};
|
|
3069
3156
|
}>, Record<never, never>>;
|
|
@@ -3486,6 +3573,15 @@ export declare const contract: {
|
|
|
3486
3573
|
}>>;
|
|
3487
3574
|
answeredOn: z.ZodNullable<z.ZodString>;
|
|
3488
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>>;
|
|
3489
3585
|
}, z.core.$strip>>;
|
|
3490
3586
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3491
3587
|
UNAUTHORIZED: {
|
|
@@ -4068,7 +4164,8 @@ export declare const contract: {
|
|
|
4068
4164
|
text: string;
|
|
4069
4165
|
} | undefined;
|
|
4070
4166
|
reminder?: {
|
|
4071
|
-
|
|
4167
|
+
name: string | null;
|
|
4168
|
+
note: string;
|
|
4072
4169
|
scheduledFor: string;
|
|
4073
4170
|
lateBySeconds: number | null;
|
|
4074
4171
|
} | undefined;
|
|
@@ -4233,7 +4330,8 @@ export declare const contract: {
|
|
|
4233
4330
|
text: string;
|
|
4234
4331
|
} | undefined;
|
|
4235
4332
|
reminder?: {
|
|
4236
|
-
|
|
4333
|
+
name: string | null;
|
|
4334
|
+
note: string;
|
|
4237
4335
|
scheduledFor: string;
|
|
4238
4336
|
lateBySeconds: number | null;
|
|
4239
4337
|
} | undefined;
|
|
@@ -4410,7 +4508,8 @@ export declare const contract: {
|
|
|
4410
4508
|
text: string;
|
|
4411
4509
|
} | undefined;
|
|
4412
4510
|
reminder?: {
|
|
4413
|
-
|
|
4511
|
+
name: string | null;
|
|
4512
|
+
note: string;
|
|
4414
4513
|
scheduledFor: string;
|
|
4415
4514
|
lateBySeconds: number | null;
|
|
4416
4515
|
} | undefined;
|
|
@@ -4575,7 +4674,8 @@ export declare const contract: {
|
|
|
4575
4674
|
text: string;
|
|
4576
4675
|
} | undefined;
|
|
4577
4676
|
reminder?: {
|
|
4578
|
-
|
|
4677
|
+
name: string | null;
|
|
4678
|
+
note: string;
|
|
4579
4679
|
scheduledFor: string;
|
|
4580
4680
|
lateBySeconds: number | null;
|
|
4581
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
|
+
};
|
|
@@ -1566,6 +1566,56 @@ export declare const hostContract: {
|
|
|
1566
1566
|
};
|
|
1567
1567
|
}>, Record<never, never>>;
|
|
1568
1568
|
};
|
|
1569
|
+
budgets: {
|
|
1570
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
1571
|
+
budgetID: z.ZodString;
|
|
1572
|
+
counts: z.ZodString;
|
|
1573
|
+
limitMicros: z.ZodNumber;
|
|
1574
|
+
period: z.ZodEnum<{
|
|
1575
|
+
day: "day";
|
|
1576
|
+
month: "month";
|
|
1577
|
+
week: "week";
|
|
1578
|
+
}>;
|
|
1579
|
+
spentMicros: z.ZodNumber;
|
|
1580
|
+
resetsAt: z.ZodDate;
|
|
1581
|
+
source: z.ZodEnum<{
|
|
1582
|
+
built_in: "built_in";
|
|
1583
|
+
definitions: "definitions";
|
|
1584
|
+
}>;
|
|
1585
|
+
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1586
|
+
BUDGETS_NOT_CONFIGURED: {
|
|
1587
|
+
message: string;
|
|
1588
|
+
status: number;
|
|
1589
|
+
};
|
|
1590
|
+
}>, Record<never, never>>;
|
|
1591
|
+
ledger: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1592
|
+
budgetID: z.ZodString;
|
|
1593
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1594
|
+
budgetID: z.ZodString;
|
|
1595
|
+
periodStart: z.ZodString;
|
|
1596
|
+
resetsAt: z.ZodDate;
|
|
1597
|
+
spentMicros: z.ZodNumber;
|
|
1598
|
+
charges: z.ZodArray<z.ZodObject<{
|
|
1599
|
+
chargeID: z.ZodString;
|
|
1600
|
+
amountMicros: z.ZodNumber;
|
|
1601
|
+
for: z.ZodObject<{
|
|
1602
|
+
kind: z.ZodString;
|
|
1603
|
+
id: z.ZodString;
|
|
1604
|
+
}, z.core.$strip>;
|
|
1605
|
+
isCredited: z.ZodBoolean;
|
|
1606
|
+
}, z.core.$strip>>;
|
|
1607
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1608
|
+
BUDGETS_NOT_CONFIGURED: {
|
|
1609
|
+
message: string;
|
|
1610
|
+
status: number;
|
|
1611
|
+
};
|
|
1612
|
+
}>, {
|
|
1613
|
+
NOT_FOUND: {
|
|
1614
|
+
message: string;
|
|
1615
|
+
status: number;
|
|
1616
|
+
};
|
|
1617
|
+
}>, Record<never, never>>;
|
|
1618
|
+
};
|
|
1569
1619
|
contacts: {
|
|
1570
1620
|
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
1571
1621
|
contactID: z.ZodString;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const remindersContract: {
|
|
3
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
4
|
+
reminders: z.ZodArray<z.ZodObject<{
|
|
5
|
+
reminder: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
note: z.ZodString;
|
|
8
|
+
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
9
|
+
schedule: z.ZodObject<{
|
|
10
|
+
every: z.ZodUnion<readonly [z.ZodEnum<{
|
|
11
|
+
day: "day";
|
|
12
|
+
hour: "hour";
|
|
13
|
+
week: "week";
|
|
14
|
+
}>, z.ZodObject<{
|
|
15
|
+
minutes: z.ZodInt;
|
|
16
|
+
}, z.core.$strict>]>;
|
|
17
|
+
at: z.ZodOptional<z.ZodString>;
|
|
18
|
+
on: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
fri: "fri";
|
|
20
|
+
mon: "mon";
|
|
21
|
+
sat: "sat";
|
|
22
|
+
sun: "sun";
|
|
23
|
+
thu: "thu";
|
|
24
|
+
tue: "tue";
|
|
25
|
+
wed: "wed";
|
|
26
|
+
}>>;
|
|
27
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
from: z.ZodString;
|
|
29
|
+
until: z.ZodString;
|
|
30
|
+
}, z.core.$strict>>;
|
|
31
|
+
idleMinutes: z.ZodOptional<z.ZodInt>;
|
|
32
|
+
zone: z.ZodDefault<z.ZodString>;
|
|
33
|
+
catchUp: z.ZodDefault<z.ZodEnum<{
|
|
34
|
+
once: "once";
|
|
35
|
+
skip: "skip";
|
|
36
|
+
}>>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
+
at: z.ZodISODateTime;
|
|
40
|
+
}, z.core.$strict>]>;
|
|
41
|
+
rendered: z.ZodString;
|
|
42
|
+
state: z.ZodEnum<{
|
|
43
|
+
active: "active";
|
|
44
|
+
fired: "fired";
|
|
45
|
+
}>;
|
|
46
|
+
next: z.ZodNullable<z.ZodString>;
|
|
47
|
+
recentFires: z.ZodArray<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
50
|
+
UNAUTHORIZED: {
|
|
51
|
+
message: string;
|
|
52
|
+
status: number;
|
|
53
|
+
};
|
|
54
|
+
}>, Record<never, never>>;
|
|
55
|
+
cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
56
|
+
reminder: z.ZodString;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
reminder: z.ZodString;
|
|
59
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
60
|
+
UNAUTHORIZED: {
|
|
61
|
+
message: string;
|
|
62
|
+
status: number;
|
|
63
|
+
};
|
|
64
|
+
}>, {
|
|
65
|
+
NOT_FOUND: {
|
|
66
|
+
message: string;
|
|
67
|
+
status: number;
|
|
68
|
+
};
|
|
69
|
+
NOT_ACTIVE: {
|
|
70
|
+
message: string;
|
|
71
|
+
status: number;
|
|
72
|
+
};
|
|
73
|
+
}>, Record<never, never>>;
|
|
74
|
+
};
|
|
@@ -128,6 +128,14 @@ export declare const ruleContract: {
|
|
|
128
128
|
status: number;
|
|
129
129
|
data: z.ZodObject<{
|
|
130
130
|
faults: z.ZodArray<z.ZodString>;
|
|
131
|
+
expiry: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
132
|
+
reason: z.ZodLiteral<"expires_past">;
|
|
133
|
+
now: z.ZodString;
|
|
134
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
135
|
+
reason: z.ZodLiteral<"expires_beyond_max">;
|
|
136
|
+
maxHours: z.ZodNumber;
|
|
137
|
+
latestExpiry: z.ZodString;
|
|
138
|
+
}, z.core.$strip>], "reason">>;
|
|
131
139
|
}, z.core.$strip>;
|
|
132
140
|
};
|
|
133
141
|
NOT_FOUND: {
|
|
@@ -181,6 +189,14 @@ export declare const ruleContract: {
|
|
|
181
189
|
status: number;
|
|
182
190
|
data: z.ZodObject<{
|
|
183
191
|
faults: z.ZodArray<z.ZodString>;
|
|
192
|
+
expiry: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
193
|
+
reason: z.ZodLiteral<"expires_past">;
|
|
194
|
+
now: z.ZodString;
|
|
195
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
196
|
+
reason: z.ZodLiteral<"expires_beyond_max">;
|
|
197
|
+
maxHours: z.ZodNumber;
|
|
198
|
+
latestExpiry: z.ZodString;
|
|
199
|
+
}, z.core.$strip>], "reason">>;
|
|
184
200
|
}, z.core.$strip>;
|
|
185
201
|
};
|
|
186
202
|
}>, Record<never, never>>;
|
|
@@ -145,10 +145,6 @@ export declare const viewContract: {
|
|
|
145
145
|
definitionID: z.ZodString;
|
|
146
146
|
name: z.ZodString;
|
|
147
147
|
enabled: z.ZodBoolean;
|
|
148
|
-
target: z.ZodEnum<{
|
|
149
|
-
conversation: "conversation";
|
|
150
|
-
task: "task";
|
|
151
|
-
}>;
|
|
152
148
|
trigger: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
153
149
|
schedule: z.ZodObject<{
|
|
154
150
|
every: z.ZodUnion<readonly [z.ZodEnum<{
|