@socotra/ec-react-schemas 2.35.0-next.7 → 2.35.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/index.d.ts CHANGED
@@ -649,7 +649,6 @@ export declare const AddTaskRequestBffSchema: z.ZodObject<{
649
649
  referenceLocator: z.ZodString;
650
650
  }, z.core.$strip>>;
651
651
  assignedTo: z.ZodOptional<z.ZodGUID>;
652
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
653
652
  type: z.ZodString;
654
653
  underwritingFlagLocators: z.ZodArray<z.ZodString>;
655
654
  description: z.ZodOptional<z.ZodString>;
@@ -3708,7 +3707,6 @@ export declare const dataModelSchema: z.ZodObject<{
3708
3707
  exclusive: z.ZodOptional<z.ZodBoolean>;
3709
3708
  }, z.core.$strip>>>;
3710
3709
  qualifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
3711
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3712
3710
  }, z.core.$strip>>;
3713
3711
  numberingPlans: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3714
3712
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -13225,7 +13223,6 @@ export declare const TaskCreateRequestSchema: z.ZodObject<{
13225
13223
  referenceLocator: z.ZodString;
13226
13224
  }, z.core.$strip>>;
13227
13225
  assignedTo: z.ZodOptional<z.ZodGUID>;
13228
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13229
13226
  type: z.ZodString;
13230
13227
  underwritingFlagLocators: z.ZodArray<z.ZodString>;
13231
13228
  description: z.ZodOptional<z.ZodString>;
@@ -13481,7 +13478,6 @@ export declare const TaskListResponseBffSchema: z.ZodObject<{
13481
13478
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13482
13479
  tag: z.ZodOptional<z.ZodString>;
13483
13480
  source: z.ZodOptional<z.ZodString>;
13484
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13485
13481
  category: z.ZodString;
13486
13482
  type: z.ZodString;
13487
13483
  description: z.ZodOptional<z.ZodString>;
@@ -13527,7 +13523,6 @@ export declare const TaskListResponseSchema: z.ZodObject<{
13527
13523
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13528
13524
  tag: z.ZodOptional<z.ZodString>;
13529
13525
  source: z.ZodOptional<z.ZodString>;
13530
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13531
13526
  category: z.ZodString;
13532
13527
  type: z.ZodString;
13533
13528
  description: z.ZodOptional<z.ZodString>;
@@ -13609,7 +13604,6 @@ export declare const TaskListSearchResultBffExtendedSchema: z.ZodObject<{
13609
13604
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13610
13605
  tag: z.ZodOptional<z.ZodString>;
13611
13606
  source: z.ZodOptional<z.ZodString>;
13612
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13613
13607
  category: z.ZodOptional<z.ZodString>;
13614
13608
  type: z.ZodString;
13615
13609
  description: z.ZodOptional<z.ZodString>;
@@ -13655,7 +13649,6 @@ export declare const TaskListSearchResultSchema: z.ZodObject<{
13655
13649
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13656
13650
  tag: z.ZodOptional<z.ZodString>;
13657
13651
  source: z.ZodOptional<z.ZodString>;
13658
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13659
13652
  category: z.ZodOptional<z.ZodString>;
13660
13653
  type: z.ZodString;
13661
13654
  description: z.ZodOptional<z.ZodString>;
@@ -13822,7 +13815,6 @@ export declare const TaskResponseBffSchema: z.ZodObject<{
13822
13815
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13823
13816
  tag: z.ZodOptional<z.ZodString>;
13824
13817
  source: z.ZodOptional<z.ZodString>;
13825
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13826
13818
  category: z.ZodString;
13827
13819
  type: z.ZodString;
13828
13820
  description: z.ZodOptional<z.ZodString>;
@@ -13860,7 +13852,6 @@ export declare const TaskResponseSchema: z.ZodObject<{
13860
13852
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13861
13853
  tag: z.ZodOptional<z.ZodString>;
13862
13854
  source: z.ZodOptional<z.ZodString>;
13863
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13864
13855
  category: z.ZodString;
13865
13856
  type: z.ZodString;
13866
13857
  description: z.ZodOptional<z.ZodString>;
@@ -13939,7 +13930,6 @@ export declare const TaskResponseSearchResultBffExtendedSchema: z.ZodObject<{
13939
13930
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13940
13931
  tag: z.ZodOptional<z.ZodString>;
13941
13932
  source: z.ZodOptional<z.ZodString>;
13942
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13943
13933
  category: z.ZodOptional<z.ZodString>;
13944
13934
  type: z.ZodString;
13945
13935
  description: z.ZodOptional<z.ZodString>;
@@ -13977,7 +13967,6 @@ export declare const TaskResponseSearchResultSchema: z.ZodObject<{
13977
13967
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13978
13968
  tag: z.ZodOptional<z.ZodString>;
13979
13969
  source: z.ZodOptional<z.ZodString>;
13980
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13981
13970
  category: z.ZodOptional<z.ZodString>;
13982
13971
  type: z.ZodString;
13983
13972
  description: z.ZodOptional<z.ZodString>;
@@ -14080,8 +14069,6 @@ export declare const TaskUpdateRequestSchema: z.ZodObject<{
14080
14069
  }, z.core.$strip>>>;
14081
14070
  addUnderwritingFlags: z.ZodOptional<z.ZodArray<z.ZodString>>;
14082
14071
  removeUnderwritingFlags: z.ZodOptional<z.ZodArray<z.ZodString>>;
14083
- addLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
14084
- removeLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
14085
14072
  description: z.ZodOptional<z.ZodString>;
14086
14073
  }, z.core.$strip>;
14087
14074
 
@@ -16995,7 +16982,6 @@ export declare const WorkManagementRefSchema: z.ZodObject<{
16995
16982
  exclusive: z.ZodOptional<z.ZodBoolean>;
16996
16983
  }, z.core.$strip>>>;
16997
16984
  qualifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
16998
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16999
16985
  }, z.core.$strip>;
17000
16986
 
17001
16987
  export declare const ZIP_ACCEPTED_FILE_TYPES: readonly ["application/zip", "application/x-zip-compressed"];
package/dist/index.es.js CHANGED
@@ -19819,35 +19819,14 @@ const v_ = [
19819
19819
  ...co.shape,
19820
19820
  deadlineTime: A,
19821
19821
  references: d(Ut),
19822
- assignedTo: j.optional(),
19823
- // TODO(UX-6240): drop once sdk-gen emits this. The live spec already has it
19824
- // (`TaskCreateRequest.labels`, array of string, nullable) but the generator
19825
- // has not picked it up — #580 regenerated on 2026-09-14 without it.
19826
- // Note for that sync: the spec marks `labels` REQUIRED, so the generated
19827
- // shape will be `.nullable()` rather than `.nullish()`, and any caller that
19828
- // omits the field will need updating at that point. It is nullish here so
19829
- // today's callers keep working — the kernel coerces a missing value to an
19830
- // empty list (TaskCreateRequest.java:25,39).
19831
- labels: d(e()).nullish()
19822
+ assignedTo: j.optional()
19832
19823
  }), Vk = o({
19833
19824
  ...rp.shape,
19834
19825
  deadlineTime: A.optional(),
19835
19826
  addReferences: d(Ut).optional(),
19836
19827
  removeReferences: d(Ut).optional(),
19837
19828
  addUnderwritingFlags: d(e()).optional(),
19838
- removeUnderwritingFlags: d(e()).optional(),
19839
- // TODO(UX-6240): drop once sdk-gen emits these. Both are in the live spec
19840
- // (`TaskUpdateRequest.addLabels` / `.removeLabels`, array of string,
19841
- // nullable, neither required) and absent from the generated output.
19842
- //
19843
- // Nullish because the spec marks them nullable. Worth checking at sync time:
19844
- // the generator currently never emits `.nullable()` anywhere, so whatever it
19845
- // produces for these may be stricter than the contract actually allows.
19846
- //
19847
- // The kernel exposes no plain `labels` field on an update: a desired set has
19848
- // to be diffed into these two deltas first.
19849
- addLabels: d(e()).nullish(),
19850
- removeLabels: d(e()).nullish()
19829
+ removeUnderwritingFlags: d(e()).optional()
19851
19830
  }), Kr = o({
19852
19831
  ...uo.shape,
19853
19832
  locator: Tr,
@@ -19861,14 +19840,7 @@ const v_ = [
19861
19840
  createdAt: A,
19862
19841
  updatedAt: A.optional(),
19863
19842
  tag: e().optional(),
19864
- source: e().optional(),
19865
- // TODO(UX-6240): drop once sdk-gen emits this. The live spec has
19866
- // `Task.labels` as a required, nullable array of string; the generated
19867
- // schema does not. Nullish rather than nullable so a response that omits the
19868
- // field entirely still parses — the kernel returns `null`, not `[]`, for a
19869
- // task that has never carried a label, and an optional-only type would let
19870
- // `task.labels.map(...)` throw on the commonest case.
19871
- labels: d(e()).nullish()
19843
+ source: e().optional()
19872
19844
  }), Qk = K(Kr), q_ = o({
19873
19845
  ...zm.shape,
19874
19846
  defaultDeadlineDays: b().optional()
@@ -19951,19 +19923,7 @@ const v_ = [
19951
19923
  ...Nm.shape,
19952
19924
  tasks: p(e(), p(e(), q_)).optional(),
19953
19925
  userAssociationRoles: p(e(), E_).optional(),
19954
- qualifications: p(e(), d(e())).optional(),
19955
- // TODO(UX-6240): drop once sdk-gen emits this. The live config spec has
19956
- // `WorkManagementRef.labels` as `additionalProperties: LabelRef`, and
19957
- // `LabelRef` is a free-form `{"type": "object"}`. This mirrors how the
19958
- // generator renders both: `additionalProperties: $ref` becomes
19959
- // `z.record(z.string(), <ref>)` (see the generated `workManagementRefSchema`
19960
- // beside `userAssociationRoles`), and a free-form object becomes
19961
- // `z.record(z.string(), z.unknown())`. So the sync should be a deletion.
19962
- //
19963
- // Free-form rather than `z.object({})` on purpose: the kernel models
19964
- // LabelConfig as an empty record specifically so properties can be added
19965
- // later, and a stripping object schema would silently drop them.
19966
- labels: p(e(), p(e(), _())).optional()
19926
+ qualifications: p(e(), d(e())).optional()
19967
19927
  }), C_ = o({
19968
19928
  ...qm.shape,
19969
19929
  data: p(