@heynixie/contract 0.74.0 → 0.76.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 +137 -0
- package/dist/contract/build-query-utils.d.ts +360 -2
- package/dist/contract/challenge-for-schema.d.ts +4 -0
- package/dist/contract/contract.d.ts +376 -0
- package/dist/contract/forgettable-kinds.d.ts +1 -1
- package/dist/contract/forgotten-items-schema.d.ts +16 -0
- package/dist/contract/host-contract.d.ts +56 -0
- package/dist/contract/host-mandates-contract.d.ts +32 -0
- package/dist/contract/memory-view-contract.d.ts +7 -0
- package/dist/contract/passkey-contract.d.ts +4 -0
- package/dist/contract/rule-contract.d.ts +123 -0
- package/dist/contract/schedule-schema.d.ts +31 -0
- package/dist/contract/trigger-schema.d.ts +36 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +532 -313
- package/package.json +1 -1
|
@@ -93,6 +93,10 @@ export declare const hostContract: {
|
|
|
93
93
|
message: string;
|
|
94
94
|
status: number;
|
|
95
95
|
};
|
|
96
|
+
RUNNER_LACKS_CONTROL: {
|
|
97
|
+
message: string;
|
|
98
|
+
status: number;
|
|
99
|
+
};
|
|
96
100
|
}>, Record<never, never>>;
|
|
97
101
|
resume: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
98
102
|
taskID: z.ZodString;
|
|
@@ -118,6 +122,10 @@ export declare const hostContract: {
|
|
|
118
122
|
message: string;
|
|
119
123
|
status: number;
|
|
120
124
|
};
|
|
125
|
+
RUNNER_LACKS_CONTROL: {
|
|
126
|
+
message: string;
|
|
127
|
+
status: number;
|
|
128
|
+
};
|
|
121
129
|
}>, Record<never, never>>;
|
|
122
130
|
stop: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
123
131
|
taskID: z.ZodString;
|
|
@@ -143,6 +151,10 @@ export declare const hostContract: {
|
|
|
143
151
|
message: string;
|
|
144
152
|
status: number;
|
|
145
153
|
};
|
|
154
|
+
RUNNER_LACKS_CONTROL: {
|
|
155
|
+
message: string;
|
|
156
|
+
status: number;
|
|
157
|
+
};
|
|
146
158
|
}>, Record<never, never>>;
|
|
147
159
|
restart: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
148
160
|
taskID: z.ZodString;
|
|
@@ -168,6 +180,10 @@ export declare const hostContract: {
|
|
|
168
180
|
message: string;
|
|
169
181
|
status: number;
|
|
170
182
|
};
|
|
183
|
+
RUNNER_LACKS_CONTROL: {
|
|
184
|
+
message: string;
|
|
185
|
+
status: number;
|
|
186
|
+
};
|
|
171
187
|
}>, Record<never, never>>;
|
|
172
188
|
close: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
173
189
|
taskID: z.ZodString;
|
|
@@ -193,6 +209,10 @@ export declare const hostContract: {
|
|
|
193
209
|
message: string;
|
|
194
210
|
status: number;
|
|
195
211
|
};
|
|
212
|
+
RUNNER_LACKS_CONTROL: {
|
|
213
|
+
message: string;
|
|
214
|
+
status: number;
|
|
215
|
+
};
|
|
196
216
|
}>, {
|
|
197
217
|
CONVERSATION_NEVER_CLOSES: {
|
|
198
218
|
message: string;
|
|
@@ -223,6 +243,10 @@ export declare const hostContract: {
|
|
|
223
243
|
message: string;
|
|
224
244
|
status: number;
|
|
225
245
|
};
|
|
246
|
+
RUNNER_LACKS_CONTROL: {
|
|
247
|
+
message: string;
|
|
248
|
+
status: number;
|
|
249
|
+
};
|
|
226
250
|
}>, Record<never, never>>;
|
|
227
251
|
raise: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
228
252
|
taskID: z.ZodString;
|
|
@@ -350,6 +374,7 @@ export declare const hostContract: {
|
|
|
350
374
|
forgotten_evidence: "forgotten_evidence";
|
|
351
375
|
from_photo: "from_photo";
|
|
352
376
|
invisible_character: "invisible_character";
|
|
377
|
+
labels: "labels";
|
|
353
378
|
no_quote: "no_quote";
|
|
354
379
|
other: "other";
|
|
355
380
|
pinned: "pinned";
|
|
@@ -1456,6 +1481,37 @@ export declare const hostContract: {
|
|
|
1456
1481
|
}>, Record<never, never>>;
|
|
1457
1482
|
};
|
|
1458
1483
|
};
|
|
1484
|
+
mandates: {
|
|
1485
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
1486
|
+
mandateID: z.ZodString;
|
|
1487
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1488
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
1489
|
+
ruleID: z.ZodString;
|
|
1490
|
+
sentence: z.ZodString;
|
|
1491
|
+
}, z.core.$strip>>;
|
|
1492
|
+
startedAt: z.ZodDate;
|
|
1493
|
+
expires: z.ZodDate;
|
|
1494
|
+
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1495
|
+
NOT_FOUND: {
|
|
1496
|
+
message: string;
|
|
1497
|
+
status: number;
|
|
1498
|
+
};
|
|
1499
|
+
}>, Record<never, never>>;
|
|
1500
|
+
end: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1501
|
+
mandateID: z.ZodString;
|
|
1502
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1503
|
+
mandateID: z.ZodString;
|
|
1504
|
+
state: z.ZodEnum<{
|
|
1505
|
+
ended: "ended";
|
|
1506
|
+
expired: "expired";
|
|
1507
|
+
}>;
|
|
1508
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1509
|
+
NOT_FOUND: {
|
|
1510
|
+
message: string;
|
|
1511
|
+
status: number;
|
|
1512
|
+
};
|
|
1513
|
+
}>, Record<never, never>>;
|
|
1514
|
+
};
|
|
1459
1515
|
contacts: {
|
|
1460
1516
|
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
1461
1517
|
contactID: z.ZodString;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const hostMandatesContract: {
|
|
3
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
4
|
+
mandateID: z.ZodString;
|
|
5
|
+
title: z.ZodNullable<z.ZodString>;
|
|
6
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
7
|
+
ruleID: z.ZodString;
|
|
8
|
+
sentence: z.ZodString;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
startedAt: z.ZodDate;
|
|
11
|
+
expires: z.ZodDate;
|
|
12
|
+
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
13
|
+
NOT_FOUND: {
|
|
14
|
+
message: string;
|
|
15
|
+
status: number;
|
|
16
|
+
};
|
|
17
|
+
}>, Record<never, never>>;
|
|
18
|
+
end: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
19
|
+
mandateID: z.ZodString;
|
|
20
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
+
mandateID: z.ZodString;
|
|
22
|
+
state: z.ZodEnum<{
|
|
23
|
+
ended: "ended";
|
|
24
|
+
expired: "expired";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
27
|
+
NOT_FOUND: {
|
|
28
|
+
message: string;
|
|
29
|
+
status: number;
|
|
30
|
+
};
|
|
31
|
+
}>, Record<never, never>>;
|
|
32
|
+
};
|
|
@@ -28,6 +28,12 @@ export declare const memoryProposalSchema: z.ZodObject<{
|
|
|
28
28
|
fact: "fact";
|
|
29
29
|
self: "self";
|
|
30
30
|
}>;
|
|
31
|
+
labels: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
gist: z.ZodString;
|
|
33
|
+
isLabelOnly: z.ZodBoolean;
|
|
34
|
+
topic: z.ZodString;
|
|
35
|
+
triggers: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
31
37
|
lapseAt: z.ZodDate;
|
|
32
38
|
newSubject: z.ZodNullable<z.ZodEnum<{
|
|
33
39
|
owner: "owner";
|
|
@@ -55,6 +61,7 @@ export declare const memoryProposalSchema: z.ZodObject<{
|
|
|
55
61
|
forgotten_evidence: "forgotten_evidence";
|
|
56
62
|
from_photo: "from_photo";
|
|
57
63
|
invisible_character: "invisible_character";
|
|
64
|
+
labels: "labels";
|
|
58
65
|
no_quote: "no_quote";
|
|
59
66
|
other: "other";
|
|
60
67
|
pinned: "pinned";
|
|
@@ -12,6 +12,10 @@ export declare const passkeyContract: {
|
|
|
12
12
|
defer: "defer";
|
|
13
13
|
}>;
|
|
14
14
|
ruleHash: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"unknown_outcome">;
|
|
17
|
+
actionID: z.ZodString;
|
|
18
|
+
choice: z.ZodLiteral<"retry">;
|
|
15
19
|
}, z.core.$strip>, z.ZodObject<{
|
|
16
20
|
kind: z.ZodLiteral<"register">;
|
|
17
21
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -57,6 +57,7 @@ export declare const ruleContract: {
|
|
|
57
57
|
data: z.ZodObject<{
|
|
58
58
|
reason: z.ZodEnum<{
|
|
59
59
|
empty: "empty";
|
|
60
|
+
mandate: "mandate";
|
|
60
61
|
widens: "widens";
|
|
61
62
|
}>;
|
|
62
63
|
}, z.core.$strip>;
|
|
@@ -98,9 +99,131 @@ export declare const ruleContract: {
|
|
|
98
99
|
data: z.ZodObject<{
|
|
99
100
|
reason: z.ZodEnum<{
|
|
100
101
|
empty: "empty";
|
|
102
|
+
mandate: "mandate";
|
|
101
103
|
widens: "widens";
|
|
102
104
|
}>;
|
|
103
105
|
}, z.core.$strip>;
|
|
104
106
|
};
|
|
105
107
|
}>, Record<never, never>>;
|
|
108
|
+
editProposedRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
109
|
+
proposalID: z.ZodString;
|
|
110
|
+
actionHash: z.ZodString;
|
|
111
|
+
rule: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
112
|
+
clientActionID: z.ZodUUID;
|
|
113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
114
|
+
proposalID: z.ZodString;
|
|
115
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
116
|
+
UNAUTHORIZED: {
|
|
117
|
+
message: string;
|
|
118
|
+
status: number;
|
|
119
|
+
};
|
|
120
|
+
}>, {
|
|
121
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
122
|
+
message: string;
|
|
123
|
+
status: number;
|
|
124
|
+
};
|
|
125
|
+
}>, {
|
|
126
|
+
INVALID: {
|
|
127
|
+
message: string;
|
|
128
|
+
status: number;
|
|
129
|
+
data: z.ZodObject<{
|
|
130
|
+
faults: z.ZodArray<z.ZodString>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
};
|
|
133
|
+
NOT_FOUND: {
|
|
134
|
+
message: string;
|
|
135
|
+
status: number;
|
|
136
|
+
};
|
|
137
|
+
CONFLICT: {
|
|
138
|
+
message: string;
|
|
139
|
+
status: number;
|
|
140
|
+
data: z.ZodObject<{
|
|
141
|
+
current: z.ZodObject<{
|
|
142
|
+
actionHash: z.ZodString;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
};
|
|
146
|
+
CLOSED: {
|
|
147
|
+
message: string;
|
|
148
|
+
status: number;
|
|
149
|
+
data: z.ZodObject<{
|
|
150
|
+
state: z.ZodEnum<{
|
|
151
|
+
approved: "approved";
|
|
152
|
+
declined: "declined";
|
|
153
|
+
lapsed: "lapsed";
|
|
154
|
+
withdrawn: "withdrawn";
|
|
155
|
+
}>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
};
|
|
158
|
+
}>, Record<never, never>>;
|
|
159
|
+
proposeMandate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
160
|
+
title: z.ZodString;
|
|
161
|
+
rules: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
162
|
+
expires: z.ZodOptional<z.ZodString>;
|
|
163
|
+
clientActionID: z.ZodUUID;
|
|
164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
165
|
+
proposalID: z.ZodString;
|
|
166
|
+
mandateID: z.ZodString;
|
|
167
|
+
expires: z.ZodDate;
|
|
168
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
169
|
+
UNAUTHORIZED: {
|
|
170
|
+
message: string;
|
|
171
|
+
status: number;
|
|
172
|
+
};
|
|
173
|
+
}>, {
|
|
174
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
175
|
+
message: string;
|
|
176
|
+
status: number;
|
|
177
|
+
};
|
|
178
|
+
}>, {
|
|
179
|
+
INVALID: {
|
|
180
|
+
message: string;
|
|
181
|
+
status: number;
|
|
182
|
+
data: z.ZodObject<{
|
|
183
|
+
faults: z.ZodArray<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
};
|
|
186
|
+
}>, Record<never, never>>;
|
|
187
|
+
listMandates: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
188
|
+
mandates: z.ZodArray<z.ZodObject<{
|
|
189
|
+
mandateID: z.ZodString;
|
|
190
|
+
title: z.ZodNullable<z.ZodString>;
|
|
191
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
192
|
+
ruleID: z.ZodString;
|
|
193
|
+
sentence: z.ZodString;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
startedAt: z.ZodDate;
|
|
196
|
+
expires: z.ZodDate;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
199
|
+
UNAUTHORIZED: {
|
|
200
|
+
message: string;
|
|
201
|
+
status: number;
|
|
202
|
+
};
|
|
203
|
+
}>, Record<never, never>>;
|
|
204
|
+
endMandate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
205
|
+
mandateID: z.ZodString;
|
|
206
|
+
clientActionID: z.ZodUUID;
|
|
207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
208
|
+
mandateID: z.ZodString;
|
|
209
|
+
state: z.ZodEnum<{
|
|
210
|
+
ended: "ended";
|
|
211
|
+
expired: "expired";
|
|
212
|
+
}>;
|
|
213
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
214
|
+
UNAUTHORIZED: {
|
|
215
|
+
message: string;
|
|
216
|
+
status: number;
|
|
217
|
+
};
|
|
218
|
+
}>, {
|
|
219
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
220
|
+
message: string;
|
|
221
|
+
status: number;
|
|
222
|
+
};
|
|
223
|
+
}>, {
|
|
224
|
+
NOT_FOUND: {
|
|
225
|
+
message: string;
|
|
226
|
+
status: number;
|
|
227
|
+
};
|
|
228
|
+
}>, Record<never, never>>;
|
|
106
229
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const scheduleSchema: z.ZodObject<{
|
|
3
|
+
every: z.ZodUnion<readonly [z.ZodEnum<{
|
|
4
|
+
day: "day";
|
|
5
|
+
hour: "hour";
|
|
6
|
+
week: "week";
|
|
7
|
+
}>, z.ZodObject<{
|
|
8
|
+
minutes: z.ZodInt;
|
|
9
|
+
}, z.core.$strict>]>;
|
|
10
|
+
at: z.ZodOptional<z.ZodString>;
|
|
11
|
+
on: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
fri: "fri";
|
|
13
|
+
mon: "mon";
|
|
14
|
+
sat: "sat";
|
|
15
|
+
sun: "sun";
|
|
16
|
+
thu: "thu";
|
|
17
|
+
tue: "tue";
|
|
18
|
+
wed: "wed";
|
|
19
|
+
}>>;
|
|
20
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
from: z.ZodString;
|
|
22
|
+
until: z.ZodString;
|
|
23
|
+
}, z.core.$strict>>;
|
|
24
|
+
idleMinutes: z.ZodOptional<z.ZodInt>;
|
|
25
|
+
zone: z.ZodDefault<z.ZodString>;
|
|
26
|
+
catchUp: z.ZodDefault<z.ZodEnum<{
|
|
27
|
+
once: "once";
|
|
28
|
+
skip: "skip";
|
|
29
|
+
}>>;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
export type Schedule = z.output<typeof scheduleSchema>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const triggerAtSchema: z.ZodISODateTime;
|
|
3
|
+
export declare const triggerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4
|
+
schedule: z.ZodObject<{
|
|
5
|
+
every: z.ZodUnion<readonly [z.ZodEnum<{
|
|
6
|
+
day: "day";
|
|
7
|
+
hour: "hour";
|
|
8
|
+
week: "week";
|
|
9
|
+
}>, z.ZodObject<{
|
|
10
|
+
minutes: z.ZodInt;
|
|
11
|
+
}, z.core.$strict>]>;
|
|
12
|
+
at: z.ZodOptional<z.ZodString>;
|
|
13
|
+
on: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
fri: "fri";
|
|
15
|
+
mon: "mon";
|
|
16
|
+
sat: "sat";
|
|
17
|
+
sun: "sun";
|
|
18
|
+
thu: "thu";
|
|
19
|
+
tue: "tue";
|
|
20
|
+
wed: "wed";
|
|
21
|
+
}>>;
|
|
22
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
from: z.ZodString;
|
|
24
|
+
until: z.ZodString;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
idleMinutes: z.ZodOptional<z.ZodInt>;
|
|
27
|
+
zone: z.ZodDefault<z.ZodString>;
|
|
28
|
+
catchUp: z.ZodDefault<z.ZodEnum<{
|
|
29
|
+
once: "once";
|
|
30
|
+
skip: "skip";
|
|
31
|
+
}>>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
+
at: z.ZodISODateTime;
|
|
35
|
+
}, z.core.$strict>]>;
|
|
36
|
+
export type Trigger = z.output<typeof triggerSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export { contract } from './contract/contract.js';
|
|
|
8
8
|
export { hostContract } from './contract/host-contract.js';
|
|
9
9
|
export { imageLimits } from './contract/image-limits.js';
|
|
10
10
|
export { isTimeZone } from './contract/is-time-zone.js';
|
|
11
|
+
export type { Schedule } from './contract/schedule-schema.js';
|
|
12
|
+
export { scheduleSchema } from './contract/schedule-schema.js';
|
|
13
|
+
export type { Trigger } from './contract/trigger-schema.js';
|
|
14
|
+
export { triggerAtSchema, triggerSchema } from './contract/trigger-schema.js';
|
|
11
15
|
export { pickSpanSource } from './span/pick-span-source.js';
|
|
12
16
|
export { renderSessionCookie } from './contract/render-session-cookie.js';
|
|
13
17
|
export { sessionCookieName } from './contract/session-cookie-name.js';
|