@heynixie/contract 0.87.0 → 0.89.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.
@@ -508,6 +508,10 @@ export declare const hostContract: {
508
508
  message: string;
509
509
  status: number;
510
510
  };
511
+ TEXT_TOO_LONG: {
512
+ message: string;
513
+ status: number;
514
+ };
511
515
  }>, Record<never, never>>;
512
516
  approve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
513
517
  proposalID: z.ZodString;
@@ -574,6 +578,10 @@ export declare const hostContract: {
574
578
  message: string;
575
579
  status: number;
576
580
  };
581
+ TEXT_TOO_LONG: {
582
+ message: string;
583
+ status: number;
584
+ };
577
585
  }>, Record<never, never>>;
578
586
  reject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
579
587
  proposalID: z.ZodString;
@@ -626,6 +634,10 @@ export declare const hostContract: {
626
634
  message: string;
627
635
  status: number;
628
636
  };
637
+ TEXT_TOO_LONG: {
638
+ message: string;
639
+ status: number;
640
+ };
629
641
  }>, Record<never, never>>;
630
642
  };
631
643
  subjects: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
@@ -684,6 +696,10 @@ export declare const hostContract: {
684
696
  message: string;
685
697
  status: number;
686
698
  };
699
+ TEXT_TOO_LONG: {
700
+ message: string;
701
+ status: number;
702
+ };
687
703
  }>, Record<never, never>>;
688
704
  items: {
689
705
  read: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -784,6 +800,10 @@ export declare const hostContract: {
784
800
  message: string;
785
801
  status: number;
786
802
  };
803
+ TEXT_TOO_LONG: {
804
+ message: string;
805
+ status: number;
806
+ };
787
807
  }>, Record<never, never>>;
788
808
  edit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
789
809
  itemID: z.ZodString;
@@ -837,6 +857,10 @@ export declare const hostContract: {
837
857
  message: string;
838
858
  status: number;
839
859
  };
860
+ TEXT_TOO_LONG: {
861
+ message: string;
862
+ status: number;
863
+ };
840
864
  }>, Record<never, never>>;
841
865
  retire: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
842
866
  itemID: z.ZodString;
@@ -889,6 +913,10 @@ export declare const hostContract: {
889
913
  message: string;
890
914
  status: number;
891
915
  };
916
+ TEXT_TOO_LONG: {
917
+ message: string;
918
+ status: number;
919
+ };
892
920
  }>, Record<never, never>>;
893
921
  restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
894
922
  itemID: z.ZodString;
@@ -941,6 +969,10 @@ export declare const hostContract: {
941
969
  message: string;
942
970
  status: number;
943
971
  };
972
+ TEXT_TOO_LONG: {
973
+ message: string;
974
+ status: number;
975
+ };
944
976
  }>, Record<never, never>>;
945
977
  forget: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
946
978
  itemID: z.ZodString;
@@ -1004,6 +1036,10 @@ export declare const hostContract: {
1004
1036
  message: string;
1005
1037
  status: number;
1006
1038
  };
1039
+ TEXT_TOO_LONG: {
1040
+ message: string;
1041
+ status: number;
1042
+ };
1007
1043
  }>, Record<never, never>>;
1008
1044
  forgetAll: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1009
1045
  itemIDs: z.ZodArray<z.ZodString>;
@@ -1064,6 +1100,10 @@ export declare const hostContract: {
1064
1100
  message: string;
1065
1101
  status: number;
1066
1102
  };
1103
+ TEXT_TOO_LONG: {
1104
+ message: string;
1105
+ status: number;
1106
+ };
1067
1107
  }>, Record<never, never>>;
1068
1108
  pin: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1069
1109
  itemID: z.ZodString;
@@ -1116,6 +1156,10 @@ export declare const hostContract: {
1116
1156
  message: string;
1117
1157
  status: number;
1118
1158
  };
1159
+ TEXT_TOO_LONG: {
1160
+ message: string;
1161
+ status: number;
1162
+ };
1119
1163
  }>, Record<never, never>>;
1120
1164
  };
1121
1165
  };
package/dist/index.js CHANGED
@@ -2080,7 +2080,7 @@ var versionTargetSchema2 = z51.strictObject({
2080
2080
  itemID: z51.string().min(1),
2081
2081
  version: z51.int().positive()
2082
2082
  });
2083
- var itemTextSchema = z51.string().max(2000).regex(/\S/u);
2083
+ var itemTextSchema = z51.string().max(6000).regex(/\S/u);
2084
2084
  var proposalOriginSchema2 = z51.enum(["owner", "conversation", "task"]);
2085
2085
  var memoryOriginSchema = z51.enum([...proposalOriginSchema2.options, "lapse"]);
2086
2086
  var contentSourceSchema = z51.enum(["owner", "owner_data", "untrusted"]);
@@ -2177,7 +2177,8 @@ var memory = oc8.errors({
2177
2177
  REVISION_TARGET: { message: "that item cannot take the revision", status: 400 },
2178
2178
  RETIREMENT_EDIT: { message: "a retirement takes no edited text", status: 400 },
2179
2179
  PIN_EDIT: { message: "a pin takes no edited text", status: 400 },
2180
- SELF_NOTE_REFUSED: { message: "a self-note never takes that change", status: 409 }
2180
+ SELF_NOTE_REFUSED: { message: "a self-note never takes that change", status: 409 },
2181
+ TEXT_TOO_LONG: { message: "the text runs past the limit of its subject", status: 400 }
2181
2182
  });
2182
2183
  var skillFileSchema = z51.object({ path: z51.string(), text: z51.string() });
2183
2184
  var pendingSkillProposalSchema = z51.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heynixie/contract",
3
- "version": "0.87.0",
3
+ "version": "0.89.0",
4
4
  "description": "The oRPC contract of the nixie API, with the types a client needs",
5
5
  "license": "MIT",
6
6
  "repository": {