@dsptch-work/api-client 0.37.0 → 0.38.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.
@@ -261,7 +261,7 @@ export declare const zProblem: z.ZodObject<{
261
261
  *
262
262
  * **Unparseable Date Value**
263
263
  *
264
- * A date-time value cannot be parsed, or falls outside the storable range. Format values as ISO 8601 (for example `2026-08-05` or `2026-08-05T14:30`).
264
+ * A date-time value cannot be parsed, falls outside the storable range, or has no UTC offset where one is required. Format values as ISO 8601 (for example `2026-08-05` or `2026-08-05T14:30`); a time entry's `start_time` and `end_time`, a timestamp filter bound, and an `as_of[]` coordinate need an offset (for example `2026-08-05T14:30:00-04:00` or `2026-08-05T18:30:00Z`).
265
265
  *
266
266
  * ### invalid_filter_value
267
267
  *
@@ -1562,7 +1562,7 @@ export declare const zTimecodeHistoryVersionObject: z.ZodObject<{
1562
1562
  * Request body for creating or updating a timecode; only `name` is required. On create, omitted fields take their model/DB defaults (noted per field). On update the request applies a bitemporal correction, so omitted fields keep the current version's values rather than reverting to defaults.
1563
1563
  */
1564
1564
  export declare const zTimecodeParameters: z.ZodObject<{
1565
- effective_date: z.ZodOptional<z.ZodString>;
1565
+ effective_date: z.ZodOptional<z.ZodISODate>;
1566
1566
  name: z.ZodString;
1567
1567
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1568
1568
  description_is_required: z.ZodOptional<z.ZodBoolean>;
@@ -1588,8 +1588,8 @@ export declare const zTimecodeParameters: z.ZodObject<{
1588
1588
  * Request body for correcting a timecode over a valid-time span. Send only the fields to change; omitted fields retain their current values. `effective_from` defaults to the addressed version's start, and `effective_to` is optional.
1589
1589
  */
1590
1590
  export declare const zTimecodeCorrectionParameters: z.ZodObject<{
1591
- effective_from: z.ZodOptional<z.ZodString>;
1592
- effective_to: z.ZodOptional<z.ZodString>;
1591
+ effective_from: z.ZodOptional<z.ZodISODateTime>;
1592
+ effective_to: z.ZodOptional<z.ZodISODateTime>;
1593
1593
  name: z.ZodOptional<z.ZodString>;
1594
1594
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1595
1595
  description_is_required: z.ZodOptional<z.ZodBoolean>;
@@ -1615,7 +1615,7 @@ export declare const zTimecodeCorrectionParameters: z.ZodObject<{
1615
1615
  * Request body for moving the beginning of a timecode's valid-time timeline. Moving it earlier extends coverage; moving it later removes coverage before the new beginning.
1616
1616
  */
1617
1617
  export declare const zTimecodeGenesisParameters: z.ZodObject<{
1618
- effective_date: z.ZodString;
1618
+ effective_date: z.ZodISODate;
1619
1619
  }, z.core.$strip>;
1620
1620
  /**
1621
1621
  * Request body for scheduling a timecode's termination: the date from which it stops being valid. The body is required — the endpoint reads effective_date with `params.expect`, so a request omitting it is refused with `400`.
@@ -1627,7 +1627,7 @@ export declare const zTimecodeScheduledTerminationParameters: z.ZodObject<{
1627
1627
  * Request body for scheduling a future change to a timecode: an effective_date paired with the attribute values to apply from that date. Only `effective_date` is required; omitted attributes inherit the current version's values.
1628
1628
  */
1629
1629
  export declare const zTimecodeScheduledChangeParameters: z.ZodObject<{
1630
- effective_date: z.ZodString;
1630
+ effective_date: z.ZodISODate;
1631
1631
  name: z.ZodOptional<z.ZodString>;
1632
1632
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1633
1633
  description_is_required: z.ZodOptional<z.ZodBoolean>;
@@ -3036,8 +3036,8 @@ export declare const zManagerTimeEntryApprovalParameters: z.ZodObject<{
3036
3036
  */
3037
3037
  export declare const zTimeEntryCreateParameters: z.ZodObject<{
3038
3038
  timekeeping_time_card_id: z.ZodString;
3039
- start_time: z.ZodString;
3040
- end_time: z.ZodString;
3039
+ start_time: z.ZodISODateTime;
3040
+ end_time: z.ZodISODateTime;
3041
3041
  job_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3042
3042
  timekeeping_timecode_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3043
3043
  state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3050,8 +3050,8 @@ export declare const zTimeEntryCreateParameters: z.ZodObject<{
3050
3050
  * Request body for updating a time entry. Every field is optional, and an omitted field keeps its value.
3051
3051
  */
3052
3052
  export declare const zTimeEntryUpdateParameters: z.ZodObject<{
3053
- start_time: z.ZodOptional<z.ZodString>;
3054
- end_time: z.ZodOptional<z.ZodString>;
3053
+ start_time: z.ZodOptional<z.ZodISODateTime>;
3054
+ end_time: z.ZodOptional<z.ZodISODateTime>;
3055
3055
  job_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3056
3056
  timekeeping_timecode_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3057
3057
  state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3078,12 +3078,14 @@ export declare const zFormDefinitionObject: z.ZodObject<{
3078
3078
  allow_carry_forward: z.ZodBoolean;
3079
3079
  current_revision: z.ZodNullable<z.ZodInt>;
3080
3080
  json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3081
+ submission_shape: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3081
3082
  created_at: z.ZodISODateTime;
3082
3083
  }, z.core.$strip>;
3083
3084
  /**
3084
3085
  * A single form submission — a user's completed SurveyJS form with the resolved answers (the fuller show representation). Read-only; submissions are created in the app.
3085
3086
  */
3086
3087
  export declare const zFormSubmissionResponseObject: z.ZodObject<{
3088
+ id: z.ZodString;
3087
3089
  user: z.ZodObject<{
3088
3090
  id: z.ZodString;
3089
3091
  name: z.ZodString;
@@ -4297,6 +4299,22 @@ export declare const zProjectSiteParameters: z.ZodObject<{
4297
4299
  export declare const zProjectSiteUpdateParameters: z.ZodObject<{
4298
4300
  feature_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
4299
4301
  }, z.core.$strip>;
4302
+ /**
4303
+ * A project–user visibility join: names one person on one project. Path `{id}` is this join's id. Not included on project GET.
4304
+ */
4305
+ export declare const zProjectUserVisibilityResponseObject: z.ZodObject<{
4306
+ id: z.ZodString;
4307
+ project_id: z.ZodString;
4308
+ user_id: z.ZodString;
4309
+ created_at: z.ZodISODateTime;
4310
+ updated_at: z.ZodISODateTime;
4311
+ }, z.core.$strip>;
4312
+ /**
4313
+ * Request body for naming a person on a project. `user_id` is required. The project is taken from the path and is not part of the body. There is no update body — `user_id` and `project_id` are readonly after create.
4314
+ */
4315
+ export declare const zProjectUserVisibilityParameters: z.ZodObject<{
4316
+ user_id: z.ZodString;
4317
+ }, z.core.$strip>;
4300
4318
  /**
4301
4319
  * A file attached to a project. Uploaded through the direct-upload flow. `name` is always "document" and is not client-writable.
4302
4320
  */
@@ -4700,7 +4718,7 @@ export declare const zComplianceCheckParameters: z.ZodObject<{
4700
4718
  pending: "pending";
4701
4719
  dismissed: "dismissed";
4702
4720
  }>>;
4703
- time_due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4721
+ time_due: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
4704
4722
  assignee_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
4705
4723
  file_signed_id: z.ZodOptional<z.ZodString>;
4706
4724
  }, z.core.$strip>;
@@ -5869,11 +5887,11 @@ export declare const zPositionParameters: z.ZodObject<{
5869
5887
  }, z.core.$strip>>;
5870
5888
  }, z.core.$strip>;
5871
5889
  /**
5872
- * Parameters for creating a per-unit scope price on a job. `scope_kind` and `unit_price` are required; omitting either answers 400, and a null or wrong-typed value answers 422.
5890
+ * Parameters for creating a per-unit scope price on a job. `scope_kind` and `unit_price_cents` are required; omitting either answers 400, and a null or wrong-typed value answers 422.
5873
5891
  */
5874
5892
  export declare const zProductionJobScopePriceParameters: z.ZodObject<{
5875
5893
  scope_kind: z.ZodString;
5876
- unit_price: z.ZodString;
5894
+ unit_price_cents: z.ZodString;
5877
5895
  contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5878
5896
  unit_of_measure: z.ZodOptional<z.ZodString>;
5879
5897
  }, z.core.$strip>;
@@ -5882,7 +5900,7 @@ export declare const zProductionJobScopePriceParameters: z.ZodObject<{
5882
5900
  */
5883
5901
  export declare const zProductionJobScopePriceUpdateParameters: z.ZodObject<{
5884
5902
  scope_kind: z.ZodOptional<z.ZodString>;
5885
- unit_price: z.ZodOptional<z.ZodString>;
5903
+ unit_price_cents: z.ZodOptional<z.ZodString>;
5886
5904
  contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5887
5905
  unit_of_measure: z.ZodOptional<z.ZodString>;
5888
5906
  }, z.core.$strip>;
@@ -5894,7 +5912,7 @@ export declare const zProductionJobScopePriceResponseObject: z.ZodObject<{
5894
5912
  job_id: z.ZodString;
5895
5913
  scope_kind: z.ZodString;
5896
5914
  unit_of_measure: z.ZodString;
5897
- unit_price: z.ZodOptional<z.ZodString>;
5915
+ unit_price_cents: z.ZodOptional<z.ZodString>;
5898
5916
  contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5899
5917
  created_at: z.ZodISODateTime;
5900
5918
  updated_at: z.ZodISODateTime;
@@ -6580,6 +6598,7 @@ export declare const zFormDefinitionResponseObject: z.ZodObject<{
6580
6598
  allow_carry_forward: z.ZodBoolean;
6581
6599
  current_revision: z.ZodNullable<z.ZodInt>;
6582
6600
  json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6601
+ submission_shape: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6583
6602
  created_at: z.ZodISODateTime;
6584
6603
  }, z.core.$strip>>;
6585
6604
  }, z.core.$strip>;
@@ -9827,7 +9846,7 @@ export declare const zAssetsItemParameters: z.ZodObject<{
9827
9846
  available: "available";
9828
9847
  assigned: "assigned";
9829
9848
  }>>;
9830
- purchase_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9849
+ purchase_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
9831
9850
  purchase_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9832
9851
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9833
9852
  external_system_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9859,7 +9878,7 @@ export declare const zAssetsItemUpdateParameters: z.ZodObject<{
9859
9878
  available: "available";
9860
9879
  assigned: "assigned";
9861
9880
  }>>;
9862
- purchase_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9881
+ purchase_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
9863
9882
  purchase_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9864
9883
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9865
9884
  external_system_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -12931,7 +12950,7 @@ export declare const zCreateItemBody: z.ZodObject<{
12931
12950
  available: "available";
12932
12951
  assigned: "assigned";
12933
12952
  }>>;
12934
- purchase_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12953
+ purchase_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
12935
12954
  purchase_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12936
12955
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12937
12956
  external_system_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -13122,7 +13141,7 @@ export declare const zUpdateItemBody: z.ZodObject<{
13122
13141
  available: "available";
13123
13142
  assigned: "assigned";
13124
13143
  }>>;
13125
- purchase_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13144
+ purchase_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
13126
13145
  purchase_price_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13127
13146
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13128
13147
  external_system_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17986,7 +18005,7 @@ export declare const zUpdateCheckBody: z.ZodObject<{
17986
18005
  pending: "pending";
17987
18006
  dismissed: "dismissed";
17988
18007
  }>>;
17989
- time_due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18008
+ time_due: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
17990
18009
  assignee_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
17991
18010
  file_signed_id: z.ZodOptional<z.ZodString>;
17992
18011
  }, z.core.$strip>;
@@ -18382,6 +18401,7 @@ export declare const zListFormDefinitionsResponse: z.ZodObject<{
18382
18401
  allow_carry_forward: z.ZodBoolean;
18383
18402
  current_revision: z.ZodNullable<z.ZodInt>;
18384
18403
  json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18404
+ submission_shape: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18385
18405
  created_at: z.ZodISODateTime;
18386
18406
  }, z.core.$strip>>;
18387
18407
  }, z.core.$strip>;
@@ -18406,6 +18426,7 @@ export declare const zGetFormDefinitionResponse: z.ZodObject<{
18406
18426
  allow_carry_forward: z.ZodBoolean;
18407
18427
  current_revision: z.ZodNullable<z.ZodInt>;
18408
18428
  json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18429
+ submission_shape: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18409
18430
  created_at: z.ZodISODateTime;
18410
18431
  }, z.core.$strip>;
18411
18432
  export declare const zListFormSubmissionDeltasQuery: z.ZodObject<{
@@ -18489,6 +18510,7 @@ export declare const zGetFormSubmissionPath: z.ZodObject<{
18489
18510
  * Success
18490
18511
  */
18491
18512
  export declare const zGetFormSubmissionResponse: z.ZodObject<{
18513
+ id: z.ZodString;
18492
18514
  user: z.ZodObject<{
18493
18515
  id: z.ZodString;
18494
18516
  name: z.ZodString;
@@ -19132,7 +19154,7 @@ export declare const zListJobScopePricesResponse: z.ZodObject<{
19132
19154
  job_id: z.ZodString;
19133
19155
  scope_kind: z.ZodString;
19134
19156
  unit_of_measure: z.ZodString;
19135
- unit_price: z.ZodOptional<z.ZodString>;
19157
+ unit_price_cents: z.ZodOptional<z.ZodString>;
19136
19158
  contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
19137
19159
  created_at: z.ZodISODateTime;
19138
19160
  updated_at: z.ZodISODateTime;
@@ -19140,7 +19162,7 @@ export declare const zListJobScopePricesResponse: z.ZodObject<{
19140
19162
  }, z.core.$strip>;
19141
19163
  export declare const zCreateJobScopePriceBody: z.ZodObject<{
19142
19164
  scope_kind: z.ZodString;
19143
- unit_price: z.ZodString;
19165
+ unit_price_cents: z.ZodString;
19144
19166
  contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
19145
19167
  unit_of_measure: z.ZodOptional<z.ZodString>;
19146
19168
  }, z.core.$strip>;
@@ -19155,7 +19177,7 @@ export declare const zCreateJobScopePriceResponse: z.ZodObject<{
19155
19177
  job_id: z.ZodString;
19156
19178
  scope_kind: z.ZodString;
19157
19179
  unit_of_measure: z.ZodString;
19158
- unit_price: z.ZodOptional<z.ZodString>;
19180
+ unit_price_cents: z.ZodOptional<z.ZodString>;
19159
19181
  contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
19160
19182
  created_at: z.ZodISODateTime;
19161
19183
  updated_at: z.ZodISODateTime;
@@ -19172,7 +19194,7 @@ export declare const zDeleteJobScopePriceResponse: z.ZodObject<{
19172
19194
  job_id: z.ZodString;
19173
19195
  scope_kind: z.ZodString;
19174
19196
  unit_of_measure: z.ZodString;
19175
- unit_price: z.ZodOptional<z.ZodString>;
19197
+ unit_price_cents: z.ZodOptional<z.ZodString>;
19176
19198
  contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
19177
19199
  created_at: z.ZodISODateTime;
19178
19200
  updated_at: z.ZodISODateTime;
@@ -19189,14 +19211,14 @@ export declare const zGetJobScopePriceResponse: z.ZodObject<{
19189
19211
  job_id: z.ZodString;
19190
19212
  scope_kind: z.ZodString;
19191
19213
  unit_of_measure: z.ZodString;
19192
- unit_price: z.ZodOptional<z.ZodString>;
19214
+ unit_price_cents: z.ZodOptional<z.ZodString>;
19193
19215
  contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
19194
19216
  created_at: z.ZodISODateTime;
19195
19217
  updated_at: z.ZodISODateTime;
19196
19218
  }, z.core.$strip>;
19197
19219
  export declare const zUpdateJobScopePriceBody: z.ZodObject<{
19198
19220
  scope_kind: z.ZodOptional<z.ZodString>;
19199
- unit_price: z.ZodOptional<z.ZodString>;
19221
+ unit_price_cents: z.ZodOptional<z.ZodString>;
19200
19222
  contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
19201
19223
  unit_of_measure: z.ZodOptional<z.ZodString>;
19202
19224
  }, z.core.$strip>;
@@ -19212,7 +19234,7 @@ export declare const zUpdateJobScopePriceResponse: z.ZodObject<{
19212
19234
  job_id: z.ZodString;
19213
19235
  scope_kind: z.ZodString;
19214
19236
  unit_of_measure: z.ZodString;
19215
- unit_price: z.ZodOptional<z.ZodString>;
19237
+ unit_price_cents: z.ZodOptional<z.ZodString>;
19216
19238
  contracted_count: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
19217
19239
  created_at: z.ZodISODateTime;
19218
19240
  updated_at: z.ZodISODateTime;
@@ -26964,6 +26986,77 @@ export declare const zUpdateProjectSiteResponse: z.ZodObject<{
26964
26986
  site_id: z.ZodString;
26965
26987
  feature_ids: z.ZodArray<z.ZodString>;
26966
26988
  }, z.core.$strip>;
26989
+ export declare const zListUserVisibilitiesPath: z.ZodObject<{
26990
+ project_id: z.ZodString;
26991
+ }, z.core.$strip>;
26992
+ export declare const zListUserVisibilitiesQuery: z.ZodObject<{
26993
+ 'page[cursor]': z.ZodOptional<z.ZodString>;
26994
+ 'page[limit]': z.ZodDefault<z.ZodOptional<z.ZodInt>>;
26995
+ page: z.ZodOptional<z.ZodString>;
26996
+ filter: z.ZodOptional<z.ZodString>;
26997
+ 'filter[unexpected]': z.ZodOptional<z.ZodString>;
26998
+ }, z.core.$strip>;
26999
+ /**
27000
+ * Success
27001
+ */
27002
+ export declare const zListUserVisibilitiesResponse: z.ZodObject<{
27003
+ meta: z.ZodObject<{
27004
+ page: z.ZodObject<{
27005
+ next_cursor: z.ZodNullable<z.ZodString>;
27006
+ current_cursor: z.ZodNullable<z.ZodString>;
27007
+ }, z.core.$strip>;
27008
+ }, z.core.$strip>;
27009
+ links: z.ZodObject<{
27010
+ self: z.ZodString;
27011
+ first: z.ZodNullable<z.ZodString>;
27012
+ next: z.ZodNullable<z.ZodString>;
27013
+ }, z.core.$strip>;
27014
+ data: z.ZodArray<z.ZodObject<{
27015
+ id: z.ZodString;
27016
+ project_id: z.ZodString;
27017
+ user_id: z.ZodString;
27018
+ created_at: z.ZodISODateTime;
27019
+ updated_at: z.ZodISODateTime;
27020
+ }, z.core.$strip>>;
27021
+ }, z.core.$strip>;
27022
+ export declare const zCreateUserVisibilityBody: z.ZodObject<{
27023
+ user_id: z.ZodString;
27024
+ }, z.core.$strip>;
27025
+ export declare const zCreateUserVisibilityPath: z.ZodObject<{
27026
+ project_id: z.ZodString;
27027
+ }, z.core.$strip>;
27028
+ /**
27029
+ * Created
27030
+ */
27031
+ export declare const zCreateUserVisibilityResponse: z.ZodObject<{
27032
+ id: z.ZodString;
27033
+ project_id: z.ZodString;
27034
+ user_id: z.ZodString;
27035
+ created_at: z.ZodISODateTime;
27036
+ updated_at: z.ZodISODateTime;
27037
+ }, z.core.$strip>;
27038
+ export declare const zDeleteUserVisibilityPath: z.ZodObject<{
27039
+ project_id: z.ZodString;
27040
+ id: z.ZodString;
27041
+ }, z.core.$strip>;
27042
+ /**
27043
+ * No Content
27044
+ */
27045
+ export declare const zDeleteUserVisibilityResponse: z.ZodVoid;
27046
+ export declare const zGetUserVisibilityPath: z.ZodObject<{
27047
+ project_id: z.ZodString;
27048
+ id: z.ZodString;
27049
+ }, z.core.$strip>;
27050
+ /**
27051
+ * Success
27052
+ */
27053
+ export declare const zGetUserVisibilityResponse: z.ZodObject<{
27054
+ id: z.ZodString;
27055
+ project_id: z.ZodString;
27056
+ user_id: z.ZodString;
27057
+ created_at: z.ZodISODateTime;
27058
+ updated_at: z.ZodISODateTime;
27059
+ }, z.core.$strip>;
26967
27060
  export declare const zShiftProjectWageDeterminationGenesisBody: z.ZodObject<{
26968
27061
  effective_date: z.ZodISODate;
26969
27062
  }, z.core.$strip>;
@@ -29739,8 +29832,8 @@ export declare const zListTimeEntriesResponse: z.ZodObject<{
29739
29832
  }, z.core.$strip>;
29740
29833
  export declare const zCreateTimeEntryBody: z.ZodObject<{
29741
29834
  timekeeping_time_card_id: z.ZodString;
29742
- start_time: z.ZodString;
29743
- end_time: z.ZodString;
29835
+ start_time: z.ZodISODateTime;
29836
+ end_time: z.ZodISODateTime;
29744
29837
  job_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29745
29838
  timekeeping_timecode_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29746
29839
  state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -29870,8 +29963,8 @@ export declare const zGetTimeEntryResponse: z.ZodObject<{
29870
29963
  }, z.core.$strip>>;
29871
29964
  }, z.core.$strip>;
29872
29965
  export declare const zUpdateTimeEntryBody: z.ZodObject<{
29873
- start_time: z.ZodOptional<z.ZodString>;
29874
- end_time: z.ZodOptional<z.ZodString>;
29966
+ start_time: z.ZodOptional<z.ZodISODateTime>;
29967
+ end_time: z.ZodOptional<z.ZodISODateTime>;
29875
29968
  job_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29876
29969
  timekeeping_timecode_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29877
29970
  state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -29922,7 +30015,7 @@ export declare const zUpdateTimeEntryResponse: z.ZodObject<{
29922
30015
  }, z.core.$strip>>;
29923
30016
  }, z.core.$strip>;
29924
30017
  export declare const zShiftTimecodeGenesisBody: z.ZodObject<{
29925
- effective_date: z.ZodString;
30018
+ effective_date: z.ZodISODate;
29926
30019
  }, z.core.$strip>;
29927
30020
  export declare const zShiftTimecodeGenesisHeaders: z.ZodObject<{
29928
30021
  'If-Match': z.ZodString;
@@ -30127,7 +30220,7 @@ export declare const zListTimecodeScheduledChangesResponse: z.ZodArray<z.ZodObje
30127
30220
  updated_at: z.ZodISODateTime;
30128
30221
  }, z.core.$strip>>;
30129
30222
  export declare const zScheduleTimecodeChangeBody: z.ZodObject<{
30130
- effective_date: z.ZodString;
30223
+ effective_date: z.ZodISODate;
30131
30224
  name: z.ZodOptional<z.ZodString>;
30132
30225
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30133
30226
  description_is_required: z.ZodOptional<z.ZodBoolean>;
@@ -30332,7 +30425,7 @@ export declare const zListTimecodesResponse: z.ZodObject<{
30332
30425
  }, z.core.$strip>>;
30333
30426
  }, z.core.$strip>;
30334
30427
  export declare const zCreateTimecodeBody: z.ZodObject<{
30335
- effective_date: z.ZodOptional<z.ZodString>;
30428
+ effective_date: z.ZodOptional<z.ZodISODate>;
30336
30429
  name: z.ZodString;
30337
30430
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30338
30431
  description_is_required: z.ZodOptional<z.ZodBoolean>;
@@ -30428,8 +30521,8 @@ export declare const zGetTimecodeResponse: z.ZodObject<{
30428
30521
  updated_at: z.ZodISODateTime;
30429
30522
  }, z.core.$strip>;
30430
30523
  export declare const zUpdateTimecodeBody: z.ZodObject<{
30431
- effective_from: z.ZodOptional<z.ZodString>;
30432
- effective_to: z.ZodOptional<z.ZodString>;
30524
+ effective_from: z.ZodOptional<z.ZodISODateTime>;
30525
+ effective_to: z.ZodOptional<z.ZodISODateTime>;
30433
30526
  name: z.ZodOptional<z.ZodString>;
30434
30527
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30435
30528
  description_is_required: z.ZodOptional<z.ZodBoolean>;
@@ -262,7 +262,7 @@ export const zProblem = z.object({
262
262
  *
263
263
  * **Unparseable Date Value**
264
264
  *
265
- * A date-time value cannot be parsed, or falls outside the storable range. Format values as ISO 8601 (for example `2026-08-05` or `2026-08-05T14:30`).
265
+ * A date-time value cannot be parsed, falls outside the storable range, or has no UTC offset where one is required. Format values as ISO 8601 (for example `2026-08-05` or `2026-08-05T14:30`); a time entry's `start_time` and `end_time`, a timestamp filter bound, and an `as_of[]` coordinate need an offset (for example `2026-08-05T14:30:00-04:00` or `2026-08-05T18:30:00Z`).
266
266
  *
267
267
  * ### invalid_filter_value
268
268
  *
@@ -1443,7 +1443,7 @@ export const zTimecodeHistoryVersionObject = z.object({
1443
1443
  * Request body for creating or updating a timecode; only `name` is required. On create, omitted fields take their model/DB defaults (noted per field). On update the request applies a bitemporal correction, so omitted fields keep the current version's values rather than reverting to defaults.
1444
1444
  */
1445
1445
  export const zTimecodeParameters = z.object({
1446
- effective_date: z.string().optional(),
1446
+ effective_date: z.iso.date().optional(),
1447
1447
  name: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/),
1448
1448
  description: z.string().nullish(),
1449
1449
  description_is_required: z.boolean().optional(),
@@ -1469,8 +1469,8 @@ export const zTimecodeParameters = z.object({
1469
1469
  * Request body for correcting a timecode over a valid-time span. Send only the fields to change; omitted fields retain their current values. `effective_from` defaults to the addressed version's start, and `effective_to` is optional.
1470
1470
  */
1471
1471
  export const zTimecodeCorrectionParameters = z.object({
1472
- effective_from: z.string().optional(),
1473
- effective_to: z.string().optional(),
1472
+ effective_from: z.iso.datetime().optional(),
1473
+ effective_to: z.iso.datetime().optional(),
1474
1474
  name: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/).optional(),
1475
1475
  description: z.string().nullish(),
1476
1476
  description_is_required: z.boolean().optional(),
@@ -1496,7 +1496,7 @@ export const zTimecodeCorrectionParameters = z.object({
1496
1496
  * Request body for moving the beginning of a timecode's valid-time timeline. Moving it earlier extends coverage; moving it later removes coverage before the new beginning.
1497
1497
  */
1498
1498
  export const zTimecodeGenesisParameters = z.object({
1499
- effective_date: z.string()
1499
+ effective_date: z.iso.date()
1500
1500
  });
1501
1501
  /**
1502
1502
  * Request body for scheduling a timecode's termination: the date from which it stops being valid. The body is required — the endpoint reads effective_date with `params.expect`, so a request omitting it is refused with `400`.
@@ -1508,7 +1508,7 @@ export const zTimecodeScheduledTerminationParameters = z.object({
1508
1508
  * Request body for scheduling a future change to a timecode: an effective_date paired with the attribute values to apply from that date. Only `effective_date` is required; omitted attributes inherit the current version's values.
1509
1509
  */
1510
1510
  export const zTimecodeScheduledChangeParameters = z.object({
1511
- effective_date: z.string(),
1511
+ effective_date: z.iso.date(),
1512
1512
  name: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/).optional(),
1513
1513
  description: z.string().nullish(),
1514
1514
  description_is_required: z.boolean().optional(),
@@ -2817,8 +2817,8 @@ export const zManagerTimeEntryApprovalParameters = z.object({
2817
2817
  */
2818
2818
  export const zTimeEntryCreateParameters = z.object({
2819
2819
  timekeeping_time_card_id: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/),
2820
- start_time: z.string(),
2821
- end_time: z.string(),
2820
+ start_time: z.iso.datetime(),
2821
+ end_time: z.iso.datetime(),
2822
2822
  job_id: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/).nullish(),
2823
2823
  timekeeping_timecode_id: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/).nullish(),
2824
2824
  state: z.string().nullish(),
@@ -2831,8 +2831,8 @@ export const zTimeEntryCreateParameters = z.object({
2831
2831
  * Request body for updating a time entry. Every field is optional, and an omitted field keeps its value.
2832
2832
  */
2833
2833
  export const zTimeEntryUpdateParameters = z.object({
2834
- start_time: z.string().optional(),
2835
- end_time: z.string().optional(),
2834
+ start_time: z.iso.datetime().optional(),
2835
+ end_time: z.iso.datetime().optional(),
2836
2836
  job_id: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/).nullish(),
2837
2837
  timekeeping_timecode_id: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/).nullish(),
2838
2838
  state: z.string().nullish(),
@@ -2859,12 +2859,14 @@ export const zFormDefinitionObject = z.object({
2859
2859
  allow_carry_forward: z.boolean(),
2860
2860
  current_revision: z.int().nullable(),
2861
2861
  json: z.record(z.string(), z.unknown()),
2862
+ submission_shape: z.record(z.string(), z.unknown()),
2862
2863
  created_at: z.iso.datetime()
2863
2864
  });
2864
2865
  /**
2865
2866
  * A single form submission — a user's completed SurveyJS form with the resolved answers (the fuller show representation). Read-only; submissions are created in the app.
2866
2867
  */
2867
2868
  export const zFormSubmissionResponseObject = z.object({
2869
+ id: z.string(),
2868
2870
  user: z.object({
2869
2871
  id: z.string(),
2870
2872
  name: z.string()
@@ -3982,6 +3984,22 @@ export const zProjectSiteParameters = z.object({
3982
3984
  export const zProjectSiteUpdateParameters = z.object({
3983
3985
  feature_ids: z.array(z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/)).optional()
3984
3986
  });
3987
+ /**
3988
+ * A project–user visibility join: names one person on one project. Path `{id}` is this join's id. Not included on project GET.
3989
+ */
3990
+ export const zProjectUserVisibilityResponseObject = z.object({
3991
+ id: z.string(),
3992
+ project_id: z.string(),
3993
+ user_id: z.string(),
3994
+ created_at: z.iso.datetime(),
3995
+ updated_at: z.iso.datetime()
3996
+ });
3997
+ /**
3998
+ * Request body for naming a person on a project. `user_id` is required. The project is taken from the path and is not part of the body. There is no update body — `user_id` and `project_id` are readonly after create.
3999
+ */
4000
+ export const zProjectUserVisibilityParameters = z.object({
4001
+ user_id: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/)
4002
+ });
3985
4003
  /**
3986
4004
  * A file attached to a project. Uploaded through the direct-upload flow. `name` is always "document" and is not client-writable.
3987
4005
  */
@@ -4374,7 +4392,7 @@ export const zComplianceCheckDetailResponseObject = z.object({
4374
4392
  */
4375
4393
  export const zComplianceCheckParameters = z.object({
4376
4394
  status: z.enum(['dismissed', 'pending']).optional(),
4377
- time_due: z.string().nullish(),
4395
+ time_due: z.iso.date().nullish(),
4378
4396
  assignee_user_ids: z.array(z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/)).optional(),
4379
4397
  file_signed_id: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/).optional()
4380
4398
  });
@@ -5406,11 +5424,11 @@ export const zPositionParameters = z.object({
5406
5424
  }).optional()
5407
5425
  });
5408
5426
  /**
5409
- * Parameters for creating a per-unit scope price on a job. `scope_kind` and `unit_price` are required; omitting either answers 400, and a null or wrong-typed value answers 422.
5427
+ * Parameters for creating a per-unit scope price on a job. `scope_kind` and `unit_price_cents` are required; omitting either answers 400, and a null or wrong-typed value answers 422.
5410
5428
  */
5411
5429
  export const zProductionJobScopePriceParameters = z.object({
5412
5430
  scope_kind: z.string(),
5413
- unit_price: z.string().regex(/^[0-9]+(\.[0-9]+)?$/),
5431
+ unit_price_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/),
5414
5432
  contracted_count: z.int().nullish(),
5415
5433
  unit_of_measure: z.string().optional()
5416
5434
  });
@@ -5419,7 +5437,7 @@ export const zProductionJobScopePriceParameters = z.object({
5419
5437
  */
5420
5438
  export const zProductionJobScopePriceUpdateParameters = z.object({
5421
5439
  scope_kind: z.string().optional(),
5422
- unit_price: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).optional(),
5440
+ unit_price_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).optional(),
5423
5441
  contracted_count: z.int().nullish(),
5424
5442
  unit_of_measure: z.string().optional()
5425
5443
  });
@@ -5431,7 +5449,7 @@ export const zProductionJobScopePriceResponseObject = z.object({
5431
5449
  job_id: z.string(),
5432
5450
  scope_kind: z.string(),
5433
5451
  unit_of_measure: z.string(),
5434
- unit_price: z.string().optional(),
5452
+ unit_price_cents: z.string().optional(),
5435
5453
  contracted_count: z.int().nullish(),
5436
5454
  created_at: z.iso.datetime(),
5437
5455
  updated_at: z.iso.datetime()
@@ -7326,7 +7344,7 @@ export const zAssetsItemParameters = z.object({
7326
7344
  assets_product_id: z.string(),
7327
7345
  serial_number: z.string().nullish(),
7328
7346
  status: z.enum(['available', 'assigned']).optional(),
7329
- purchase_date: z.string().nullish(),
7347
+ purchase_date: z.iso.date().nullish(),
7330
7348
  purchase_price_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
7331
7349
  external_id: z.string().nullish(),
7332
7350
  external_system_url: z.string().nullish(),
@@ -7355,7 +7373,7 @@ export const zAssetsItemUpdateParameters = z.object({
7355
7373
  assets_product_id: z.string().optional(),
7356
7374
  serial_number: z.string().nullish(),
7357
7375
  status: z.enum(['available', 'assigned']).optional(),
7358
- purchase_date: z.string().nullish(),
7376
+ purchase_date: z.iso.date().nullish(),
7359
7377
  purchase_price_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
7360
7378
  external_id: z.string().nullish(),
7361
7379
  external_system_url: z.string().nullish(),
@@ -12427,6 +12445,48 @@ export const zUpdateProjectSitePath = z.object({
12427
12445
  * Success
12428
12446
  */
12429
12447
  export const zUpdateProjectSiteResponse = zProjectSiteResponseObject;
12448
+ export const zListUserVisibilitiesPath = z.object({
12449
+ project_id: z.string()
12450
+ });
12451
+ export const zListUserVisibilitiesQuery = z.object({
12452
+ 'page[cursor]': z.string().optional(),
12453
+ 'page[limit]': z.int().gte(1).optional().default(20),
12454
+ page: z.string().optional(),
12455
+ filter: z.string().optional(),
12456
+ 'filter[unexpected]': z.string().optional()
12457
+ });
12458
+ /**
12459
+ * Success
12460
+ */
12461
+ export const zListUserVisibilitiesResponse = z.object({
12462
+ meta: zMeta,
12463
+ links: zLinks,
12464
+ data: z.array(zProjectUserVisibilityResponseObject)
12465
+ });
12466
+ export const zCreateUserVisibilityBody = zProjectUserVisibilityParameters;
12467
+ export const zCreateUserVisibilityPath = z.object({
12468
+ project_id: z.string()
12469
+ });
12470
+ /**
12471
+ * Created
12472
+ */
12473
+ export const zCreateUserVisibilityResponse = zProjectUserVisibilityResponseObject;
12474
+ export const zDeleteUserVisibilityPath = z.object({
12475
+ project_id: z.string(),
12476
+ id: z.string()
12477
+ });
12478
+ /**
12479
+ * No Content
12480
+ */
12481
+ export const zDeleteUserVisibilityResponse = z.void();
12482
+ export const zGetUserVisibilityPath = z.object({
12483
+ project_id: z.string(),
12484
+ id: z.string()
12485
+ });
12486
+ /**
12487
+ * Success
12488
+ */
12489
+ export const zGetUserVisibilityResponse = zProjectUserVisibilityResponseObject;
12430
12490
  export const zShiftProjectWageDeterminationGenesisBody = zProjectWageDeterminationGenesisParameters;
12431
12491
  export const zShiftProjectWageDeterminationGenesisHeaders = z.object({
12432
12492
  'If-Match': z.string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsptch-work/api-client",
3
- "version": "0.37.0",
3
+ "version": "0.38.0",
4
4
  "description": "Generated TypeScript client for the DSPTCH REST API.",
5
5
  "keywords": [
6
6
  "dsptch",