@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.
@@ -52,6 +52,7 @@ export declare const approvalContract: {
52
52
  fields: z.ZodRecord<z.ZodString, z.ZodString>;
53
53
  ruleSentence: z.ZodNullable<z.ZodString>;
54
54
  approveLabel: z.ZodString;
55
+ rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
55
56
  memory: z.ZodOptional<z.ZodObject<{
56
57
  actionHash: z.ZodString;
57
58
  createdAt: z.ZodDate;
@@ -81,6 +82,12 @@ export declare const approvalContract: {
81
82
  fact: "fact";
82
83
  self: "self";
83
84
  }>;
85
+ labels: z.ZodNullable<z.ZodObject<{
86
+ gist: z.ZodString;
87
+ isLabelOnly: z.ZodBoolean;
88
+ topic: z.ZodString;
89
+ triggers: z.ZodArray<z.ZodString>;
90
+ }, z.core.$strip>>;
84
91
  lapseAt: z.ZodDate;
85
92
  newSubject: z.ZodNullable<z.ZodEnum<{
86
93
  owner: "owner";
@@ -108,6 +115,7 @@ export declare const approvalContract: {
108
115
  forgotten_evidence: "forgotten_evidence";
109
116
  from_photo: "from_photo";
110
117
  invisible_character: "invisible_character";
118
+ labels: "labels";
111
119
  no_quote: "no_quote";
112
120
  other: "other";
113
121
  pinned: "pinned";
@@ -159,6 +167,54 @@ export declare const approvalContract: {
159
167
  defer: "defer";
160
168
  }>>;
161
169
  }, z.core.$strip>>;
170
+ unknownOutcomes: z.ZodArray<z.ZodObject<{
171
+ group: z.ZodLiteral<"unknown_outcome">;
172
+ action: z.ZodObject<{
173
+ actionID: z.ZodString;
174
+ tool: z.ZodString;
175
+ sentence: z.ZodString;
176
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
177
+ riskClass: z.ZodEnum<{
178
+ always_ask: "always_ask";
179
+ lifting: "lifting";
180
+ routine: "routine";
181
+ }>;
182
+ reason: z.ZodEnum<{
183
+ inconclusive: "inconclusive";
184
+ key_expired: "key_expired";
185
+ no_reconcile: "no_reconcile";
186
+ not_found_ask: "not_found_ask";
187
+ unknown_streak: "unknown_streak";
188
+ }>;
189
+ becameUnknownAt: z.ZodDate;
190
+ attempts: z.ZodArray<z.ZodObject<{
191
+ attempt: z.ZodInt;
192
+ at: z.ZodDate;
193
+ }, z.core.$strip>>;
194
+ checks: z.ZodArray<z.ZodObject<{
195
+ answer: z.ZodEnum<{
196
+ found: "found";
197
+ inconclusive: "inconclusive";
198
+ not_found: "not_found";
199
+ }>;
200
+ at: z.ZodDate;
201
+ }, z.core.$strip>>;
202
+ }, z.core.$strip>;
203
+ task: z.ZodNullable<z.ZodObject<{
204
+ id: z.ZodString;
205
+ name: z.ZodString;
206
+ }, z.core.$strip>>;
207
+ choices: z.ZodArray<z.ZodEnum<{
208
+ drop: "drop";
209
+ happened: "happened";
210
+ retry: "retry";
211
+ }>>;
212
+ passkeyChoices: z.ZodArray<z.ZodEnum<{
213
+ drop: "drop";
214
+ happened: "happened";
215
+ retry: "retry";
216
+ }>>;
217
+ }, z.core.$strip>>;
162
218
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
163
219
  UNAUTHORIZED: {
164
220
  message: string;
@@ -207,6 +263,7 @@ export declare const approvalContract: {
207
263
  fields: z.ZodRecord<z.ZodString, z.ZodString>;
208
264
  ruleSentence: z.ZodNullable<z.ZodString>;
209
265
  approveLabel: z.ZodString;
266
+ rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
210
267
  memory: z.ZodOptional<z.ZodObject<{
211
268
  actionHash: z.ZodString;
212
269
  createdAt: z.ZodDate;
@@ -236,6 +293,12 @@ export declare const approvalContract: {
236
293
  fact: "fact";
237
294
  self: "self";
238
295
  }>;
296
+ labels: z.ZodNullable<z.ZodObject<{
297
+ gist: z.ZodString;
298
+ isLabelOnly: z.ZodBoolean;
299
+ topic: z.ZodString;
300
+ triggers: z.ZodArray<z.ZodString>;
301
+ }, z.core.$strip>>;
239
302
  lapseAt: z.ZodDate;
240
303
  newSubject: z.ZodNullable<z.ZodEnum<{
241
304
  owner: "owner";
@@ -263,6 +326,7 @@ export declare const approvalContract: {
263
326
  forgotten_evidence: "forgotten_evidence";
264
327
  from_photo: "from_photo";
265
328
  invisible_character: "invisible_character";
329
+ labels: "labels";
266
330
  no_quote: "no_quote";
267
331
  other: "other";
268
332
  pinned: "pinned";
@@ -446,6 +510,79 @@ export declare const approvalContract: {
446
510
  status: number;
447
511
  };
448
512
  }>, Record<never, never>>;
513
+ answerUnknownOutcome: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
514
+ actionID: z.ZodString;
515
+ choice: z.ZodEnum<{
516
+ drop: "drop";
517
+ happened: "happened";
518
+ retry: "retry";
519
+ }>;
520
+ clientActionID: z.ZodUUID;
521
+ passkey: z.ZodOptional<z.ZodObject<{
522
+ id: z.ZodString;
523
+ rawId: z.ZodString;
524
+ response: z.ZodObject<{
525
+ clientDataJSON: z.ZodString;
526
+ authenticatorData: z.ZodString;
527
+ signature: z.ZodString;
528
+ userHandle: z.ZodOptional<z.ZodString>;
529
+ }, z.core.$strip>;
530
+ authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
531
+ "cross-platform": "cross-platform";
532
+ platform: "platform";
533
+ }>>;
534
+ clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
535
+ type: z.ZodLiteral<"public-key">;
536
+ }, z.core.$strip>>;
537
+ }, z.core.$strip>, z.ZodObject<{
538
+ actionID: z.ZodString;
539
+ choice: z.ZodEnum<{
540
+ drop: "drop";
541
+ happened: "happened";
542
+ retry: "retry";
543
+ }>;
544
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
545
+ UNAUTHORIZED: {
546
+ message: string;
547
+ status: number;
548
+ };
549
+ }>, {
550
+ CLIENT_ACTION_ID_REUSED: {
551
+ message: string;
552
+ status: number;
553
+ };
554
+ }>, {
555
+ NO_PASSKEY: {
556
+ message: string;
557
+ status: number;
558
+ };
559
+ PASSKEY_FAILED: {
560
+ message: string;
561
+ status: number;
562
+ data: z.ZodObject<{
563
+ reason: z.ZodEnum<{
564
+ binding: "binding";
565
+ counter: "counter";
566
+ no_user_verification: "no_user_verification";
567
+ origin: "origin";
568
+ signature: "signature";
569
+ unknown_challenge: "unknown_challenge";
570
+ unknown_passkey: "unknown_passkey";
571
+ }>;
572
+ }, z.core.$strip>;
573
+ };
574
+ NOT_ALLOWED: {
575
+ message: string;
576
+ status: number;
577
+ data: z.ZodObject<{
578
+ reason: z.ZodString;
579
+ }, z.core.$strip>;
580
+ };
581
+ PASSKEY_REQUIRED: {
582
+ message: string;
583
+ status: number;
584
+ };
585
+ }>, Record<never, never>>;
449
586
  answerProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
450
587
  answers: z.ZodArray<z.ZodObject<{
451
588
  proposalID: z.ZodString;