@socotra/ec-react-schemas 2.35.0 → 2.36.0-next.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,6 +649,7 @@ 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>>>;
652
653
  type: z.ZodString;
653
654
  underwritingFlagLocators: z.ZodArray<z.ZodString>;
654
655
  description: z.ZodOptional<z.ZodString>;
@@ -3707,6 +3708,7 @@ export declare const dataModelSchema: z.ZodObject<{
3707
3708
  exclusive: z.ZodOptional<z.ZodBoolean>;
3708
3709
  }, z.core.$strip>>>;
3709
3710
  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>>>;
3710
3712
  }, z.core.$strip>>;
3711
3713
  numberingPlans: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3712
3714
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -13223,6 +13225,7 @@ export declare const TaskCreateRequestSchema: z.ZodObject<{
13223
13225
  referenceLocator: z.ZodString;
13224
13226
  }, z.core.$strip>>;
13225
13227
  assignedTo: z.ZodOptional<z.ZodGUID>;
13228
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13226
13229
  type: z.ZodString;
13227
13230
  underwritingFlagLocators: z.ZodArray<z.ZodString>;
13228
13231
  description: z.ZodOptional<z.ZodString>;
@@ -13478,6 +13481,7 @@ export declare const TaskListResponseBffSchema: z.ZodObject<{
13478
13481
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13479
13482
  tag: z.ZodOptional<z.ZodString>;
13480
13483
  source: z.ZodOptional<z.ZodString>;
13484
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13481
13485
  category: z.ZodString;
13482
13486
  type: z.ZodString;
13483
13487
  description: z.ZodOptional<z.ZodString>;
@@ -13523,6 +13527,7 @@ export declare const TaskListResponseSchema: z.ZodObject<{
13523
13527
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13524
13528
  tag: z.ZodOptional<z.ZodString>;
13525
13529
  source: z.ZodOptional<z.ZodString>;
13530
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13526
13531
  category: z.ZodString;
13527
13532
  type: z.ZodString;
13528
13533
  description: z.ZodOptional<z.ZodString>;
@@ -13604,6 +13609,7 @@ export declare const TaskListSearchResultBffExtendedSchema: z.ZodObject<{
13604
13609
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13605
13610
  tag: z.ZodOptional<z.ZodString>;
13606
13611
  source: z.ZodOptional<z.ZodString>;
13612
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13607
13613
  category: z.ZodOptional<z.ZodString>;
13608
13614
  type: z.ZodString;
13609
13615
  description: z.ZodOptional<z.ZodString>;
@@ -13649,6 +13655,7 @@ export declare const TaskListSearchResultSchema: z.ZodObject<{
13649
13655
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13650
13656
  tag: z.ZodOptional<z.ZodString>;
13651
13657
  source: z.ZodOptional<z.ZodString>;
13658
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13652
13659
  category: z.ZodOptional<z.ZodString>;
13653
13660
  type: z.ZodString;
13654
13661
  description: z.ZodOptional<z.ZodString>;
@@ -13815,6 +13822,7 @@ export declare const TaskResponseBffSchema: z.ZodObject<{
13815
13822
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13816
13823
  tag: z.ZodOptional<z.ZodString>;
13817
13824
  source: z.ZodOptional<z.ZodString>;
13825
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13818
13826
  category: z.ZodString;
13819
13827
  type: z.ZodString;
13820
13828
  description: z.ZodOptional<z.ZodString>;
@@ -13852,6 +13860,7 @@ export declare const TaskResponseSchema: z.ZodObject<{
13852
13860
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13853
13861
  tag: z.ZodOptional<z.ZodString>;
13854
13862
  source: z.ZodOptional<z.ZodString>;
13863
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13855
13864
  category: z.ZodString;
13856
13865
  type: z.ZodString;
13857
13866
  description: z.ZodOptional<z.ZodString>;
@@ -13930,6 +13939,7 @@ export declare const TaskResponseSearchResultBffExtendedSchema: z.ZodObject<{
13930
13939
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13931
13940
  tag: z.ZodOptional<z.ZodString>;
13932
13941
  source: z.ZodOptional<z.ZodString>;
13942
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13933
13943
  category: z.ZodOptional<z.ZodString>;
13934
13944
  type: z.ZodString;
13935
13945
  description: z.ZodOptional<z.ZodString>;
@@ -13967,6 +13977,7 @@ export declare const TaskResponseSearchResultSchema: z.ZodObject<{
13967
13977
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
13968
13978
  tag: z.ZodOptional<z.ZodString>;
13969
13979
  source: z.ZodOptional<z.ZodString>;
13980
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13970
13981
  category: z.ZodOptional<z.ZodString>;
13971
13982
  type: z.ZodString;
13972
13983
  description: z.ZodOptional<z.ZodString>;
@@ -14069,6 +14080,8 @@ export declare const TaskUpdateRequestSchema: z.ZodObject<{
14069
14080
  }, z.core.$strip>>>;
14070
14081
  addUnderwritingFlags: z.ZodOptional<z.ZodArray<z.ZodString>>;
14071
14082
  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>>>;
14072
14085
  description: z.ZodOptional<z.ZodString>;
14073
14086
  }, z.core.$strip>;
14074
14087
 
@@ -16982,6 +16995,7 @@ export declare const WorkManagementRefSchema: z.ZodObject<{
16982
16995
  exclusive: z.ZodOptional<z.ZodBoolean>;
16983
16996
  }, z.core.$strip>>>;
16984
16997
  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>>>;
16985
16999
  }, z.core.$strip>;
16986
17000
 
16987
17001
  export declare const ZIP_ACCEPTED_FILE_TYPES: readonly ["application/zip", "application/x-zip-compressed"];
package/dist/index.es.js CHANGED
@@ -19819,14 +19819,35 @@ const v_ = [
19819
19819
  ...co.shape,
19820
19820
  deadlineTime: A,
19821
19821
  references: d(Ut),
19822
- assignedTo: j.optional()
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()
19823
19832
  }), Vk = o({
19824
19833
  ...rp.shape,
19825
19834
  deadlineTime: A.optional(),
19826
19835
  addReferences: d(Ut).optional(),
19827
19836
  removeReferences: d(Ut).optional(),
19828
19837
  addUnderwritingFlags: d(e()).optional(),
19829
- removeUnderwritingFlags: 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()
19830
19851
  }), Kr = o({
19831
19852
  ...uo.shape,
19832
19853
  locator: Tr,
@@ -19840,7 +19861,14 @@ const v_ = [
19840
19861
  createdAt: A,
19841
19862
  updatedAt: A.optional(),
19842
19863
  tag: e().optional(),
19843
- source: 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()
19844
19872
  }), Qk = K(Kr), q_ = o({
19845
19873
  ...zm.shape,
19846
19874
  defaultDeadlineDays: b().optional()
@@ -19923,7 +19951,19 @@ const v_ = [
19923
19951
  ...Nm.shape,
19924
19952
  tasks: p(e(), p(e(), q_)).optional(),
19925
19953
  userAssociationRoles: p(e(), E_).optional(),
19926
- qualifications: p(e(), d(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()
19927
19967
  }), C_ = o({
19928
19968
  ...qm.shape,
19929
19969
  data: p(