@seamapi/types 1.299.0 → 1.300.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.
@@ -1341,13 +1341,13 @@ declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extend
1341
1341
  is_suspended: z.ZodBoolean;
1342
1342
  access_schedule: z.ZodOptional<z.ZodObject<{
1343
1343
  starts_at: z.ZodString;
1344
- ends_at: z.ZodString;
1344
+ ends_at: z.ZodNullable<z.ZodString>;
1345
1345
  }, "strip", z.ZodTypeAny, {
1346
1346
  starts_at: string;
1347
- ends_at: string;
1347
+ ends_at: string | null;
1348
1348
  }, {
1349
1349
  starts_at: string;
1350
- ends_at: string;
1350
+ ends_at: string | null;
1351
1351
  }>>;
1352
1352
  user_identity_id: z.ZodOptional<z.ZodString>;
1353
1353
  user_identity_full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1505,7 +1505,7 @@ declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extend
1505
1505
  hid_acs_system_id?: string | undefined;
1506
1506
  access_schedule?: {
1507
1507
  starts_at: string;
1508
- ends_at: string;
1508
+ ends_at: string | null;
1509
1509
  } | undefined;
1510
1510
  user_identity_full_name?: string | null | undefined;
1511
1511
  user_identity_email_address?: string | null | undefined;
@@ -1560,7 +1560,7 @@ declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extend
1560
1560
  hid_acs_system_id?: string | undefined;
1561
1561
  access_schedule?: {
1562
1562
  starts_at: string;
1563
- ends_at: string;
1563
+ ends_at: string | null;
1564
1564
  } | undefined;
1565
1565
  user_identity_full_name?: string | null | undefined;
1566
1566
  user_identity_email_address?: string | null | undefined;
@@ -1578,13 +1578,13 @@ declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectU
1578
1578
  is_suspended: z.ZodBoolean;
1579
1579
  access_schedule: z.ZodOptional<z.ZodObject<{
1580
1580
  starts_at: z.ZodString;
1581
- ends_at: z.ZodString;
1581
+ ends_at: z.ZodNullable<z.ZodString>;
1582
1582
  }, "strip", z.ZodTypeAny, {
1583
1583
  starts_at: string;
1584
- ends_at: string;
1584
+ ends_at: string | null;
1585
1585
  }, {
1586
1586
  starts_at: string;
1587
- ends_at: string;
1587
+ ends_at: string | null;
1588
1588
  }>>;
1589
1589
  user_identity_id: z.ZodOptional<z.ZodString>;
1590
1590
  user_identity_full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1742,7 +1742,7 @@ declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectU
1742
1742
  hid_acs_system_id?: string | undefined;
1743
1743
  access_schedule?: {
1744
1744
  starts_at: string;
1745
- ends_at: string;
1745
+ ends_at: string | null;
1746
1746
  } | undefined;
1747
1747
  user_identity_full_name?: string | null | undefined;
1748
1748
  user_identity_email_address?: string | null | undefined;
@@ -1797,7 +1797,7 @@ declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectU
1797
1797
  hid_acs_system_id?: string | undefined;
1798
1798
  access_schedule?: {
1799
1799
  starts_at: string;
1800
- ends_at: string;
1800
+ ends_at: string | null;
1801
1801
  } | undefined;
1802
1802
  user_identity_full_name?: string | null | undefined;
1803
1803
  user_identity_email_address?: string | null | undefined;
@@ -13284,6 +13284,7 @@ declare const _default: {
13284
13284
  ends_at: {
13285
13285
  description: string;
13286
13286
  format: string;
13287
+ nullable: boolean;
13287
13288
  type: string;
13288
13289
  };
13289
13290
  starts_at: {
@@ -22706,6 +22707,7 @@ declare const _default: {
22706
22707
  properties: {
22707
22708
  ends_at: {
22708
22709
  format: string;
22710
+ nullable: boolean;
22709
22711
  type: string;
22710
22712
  };
22711
22713
  starts_at: {
@@ -22713,7 +22715,6 @@ declare const _default: {
22713
22715
  type: string;
22714
22716
  };
22715
22717
  };
22716
- required: string[];
22717
22718
  type: string;
22718
22719
  };
22719
22720
  acs_access_group_ids: {
@@ -23365,6 +23366,7 @@ declare const _default: {
23365
23366
  ends_at: {
23366
23367
  description: string;
23367
23368
  format: string;
23369
+ nullable: boolean;
23368
23370
  type: string;
23369
23371
  };
23370
23372
  starts_at: {
@@ -23612,6 +23614,7 @@ declare const _default: {
23612
23614
  ends_at: {
23613
23615
  description: string;
23614
23616
  format: string;
23617
+ nullable: boolean;
23615
23618
  type: string;
23616
23619
  };
23617
23620
  starts_at: {
@@ -37263,7 +37266,7 @@ interface Routes {
37263
37266
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
37264
37267
  starts_at: string;
37265
37268
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
37266
- ends_at: string;
37269
+ ends_at: string | null;
37267
37270
  } | undefined;
37268
37271
  /** ID of the user identity associated with the `acs_user`. */
37269
37272
  user_identity_id?: string | undefined;
@@ -40740,10 +40743,10 @@ interface Routes {
40740
40743
  acs_access_group_ids?: string[];
40741
40744
  /** ID of the user identity with which to associate the new `acs_user`. */
40742
40745
  user_identity_id?: string | undefined;
40743
- /** `starts_at` and `ends_at` timestamps for the new `acs_user`'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`. Only applicable to Salto KS access control systems. */
40746
+ /** `starts_at` and `ends_at` timestamps for the new `acs_user`'s access. If you specify an `access_schedule`, you may include both `starts_at` and `ends_at`. `starts_at` defaults to the current time if not provided. `ends_at` is optional and must be a time in the future and after `starts_at`. */
40744
40747
  access_schedule?: {
40745
- starts_at: string;
40746
- ends_at: string;
40748
+ starts_at?: string | undefined;
40749
+ ends_at?: (string | undefined) | null;
40747
40750
  } | undefined;
40748
40751
  /** Full name of the `acs_user`. */
40749
40752
  full_name?: string | undefined;
@@ -40781,7 +40784,7 @@ interface Routes {
40781
40784
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
40782
40785
  starts_at: string;
40783
40786
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
40784
- ends_at: string;
40787
+ ends_at: string | null;
40785
40788
  } | undefined;
40786
40789
  /** ID of the user identity associated with the `acs_user`. */
40787
40790
  user_identity_id?: string | undefined;
@@ -40896,7 +40899,7 @@ interface Routes {
40896
40899
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
40897
40900
  starts_at: string;
40898
40901
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
40899
- ends_at: string;
40902
+ ends_at: string | null;
40900
40903
  } | undefined;
40901
40904
  /** ID of the user identity associated with the `acs_user`. */
40902
40905
  user_identity_id?: string | undefined;
@@ -41007,7 +41010,7 @@ interface Routes {
41007
41010
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
41008
41011
  starts_at: string;
41009
41012
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
41010
- ends_at: string;
41013
+ ends_at: string | null;
41011
41014
  } | undefined;
41012
41015
  /** ID of the user identity associated with the `acs_user`. */
41013
41016
  user_identity_id?: string | undefined;
@@ -41208,7 +41211,7 @@ interface Routes {
41208
41211
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
41209
41212
  starts_at: string;
41210
41213
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
41211
- ends_at: string;
41214
+ ends_at: string | null;
41212
41215
  } | undefined;
41213
41216
  /** ID of the user identity associated with the `acs_user`. */
41214
41217
  user_identity_id?: string | undefined;
@@ -41314,7 +41317,7 @@ interface Routes {
41314
41317
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
41315
41318
  starts_at: string;
41316
41319
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
41317
- ends_at: string;
41320
+ ends_at: string | null;
41318
41321
  } | undefined;
41319
41322
  /** ID of the user identity associated with the `acs_user`. */
41320
41323
  user_identity_id?: string | undefined;
@@ -41400,7 +41403,7 @@ interface Routes {
41400
41403
  method: 'PATCH' | 'POST';
41401
41404
  queryParams: {};
41402
41405
  jsonBody: {
41403
- /** `starts_at` and `ends_at` timestamps for the `acs_user`'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`. Only applicable to Salto KS access control systems. */
41406
+ /** `starts_at` and `ends_at` timestamps for the `acs_user`'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`. */
41404
41407
  access_schedule?: ({
41405
41408
  starts_at: string;
41406
41409
  ends_at: string;
@@ -61901,7 +61904,7 @@ interface Routes {
61901
61904
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
61902
61905
  starts_at: string;
61903
61906
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
61904
- ends_at: string;
61907
+ ends_at: string | null;
61905
61908
  } | undefined;
61906
61909
  /** ID of the user identity associated with the `acs_user`. */
61907
61910
  user_identity_id?: string | undefined;
@@ -218,13 +218,13 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
218
218
  is_suspended: z.ZodBoolean;
219
219
  access_schedule: z.ZodOptional<z.ZodObject<{
220
220
  starts_at: z.ZodString;
221
- ends_at: z.ZodString;
221
+ ends_at: z.ZodNullable<z.ZodString>;
222
222
  }, "strip", z.ZodTypeAny, {
223
223
  starts_at: string;
224
- ends_at: string;
224
+ ends_at: string | null;
225
225
  }, {
226
226
  starts_at: string;
227
- ends_at: string;
227
+ ends_at: string | null;
228
228
  }>>;
229
229
  user_identity_id: z.ZodOptional<z.ZodString>;
230
230
  user_identity_full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -382,7 +382,7 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
382
382
  hid_acs_system_id?: string | undefined;
383
383
  access_schedule?: {
384
384
  starts_at: string;
385
- ends_at: string;
385
+ ends_at: string | null;
386
386
  } | undefined;
387
387
  user_identity_full_name?: string | null | undefined;
388
388
  user_identity_email_address?: string | null | undefined;
@@ -437,7 +437,7 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
437
437
  hid_acs_system_id?: string | undefined;
438
438
  access_schedule?: {
439
439
  starts_at: string;
440
- ends_at: string;
440
+ ends_at: string | null;
441
441
  } | undefined;
442
442
  user_identity_full_name?: string | null | undefined;
443
443
  user_identity_email_address?: string | null | undefined;
@@ -455,13 +455,13 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
455
455
  is_suspended: z.ZodBoolean;
456
456
  access_schedule: z.ZodOptional<z.ZodObject<{
457
457
  starts_at: z.ZodString;
458
- ends_at: z.ZodString;
458
+ ends_at: z.ZodNullable<z.ZodString>;
459
459
  }, "strip", z.ZodTypeAny, {
460
460
  starts_at: string;
461
- ends_at: string;
461
+ ends_at: string | null;
462
462
  }, {
463
463
  starts_at: string;
464
- ends_at: string;
464
+ ends_at: string | null;
465
465
  }>>;
466
466
  user_identity_id: z.ZodOptional<z.ZodString>;
467
467
  user_identity_full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -619,7 +619,7 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
619
619
  hid_acs_system_id?: string | undefined;
620
620
  access_schedule?: {
621
621
  starts_at: string;
622
- ends_at: string;
622
+ ends_at: string | null;
623
623
  } | undefined;
624
624
  user_identity_full_name?: string | null | undefined;
625
625
  user_identity_email_address?: string | null | undefined;
@@ -674,7 +674,7 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
674
674
  hid_acs_system_id?: string | undefined;
675
675
  access_schedule?: {
676
676
  starts_at: string;
677
- ends_at: string;
677
+ ends_at: string | null;
678
678
  } | undefined;
679
679
  user_identity_full_name?: string | null | undefined;
680
680
  user_identity_email_address?: string | null | undefined;
@@ -1,21 +1,21 @@
1
1
  import { z } from 'zod';
2
2
  export declare const start_end_schedule: z.ZodObject<{
3
3
  starts_at: z.ZodString;
4
- ends_at: z.ZodString;
4
+ ends_at: z.ZodNullable<z.ZodString>;
5
5
  }, "strip", z.ZodTypeAny, {
6
6
  starts_at: string;
7
- ends_at: string;
7
+ ends_at: string | null;
8
8
  }, {
9
9
  starts_at: string;
10
- ends_at: string;
10
+ ends_at: string | null;
11
11
  }>;
12
12
  export declare const schedule: z.ZodObject<{
13
13
  starts_at: z.ZodString;
14
- ends_at: z.ZodString;
14
+ ends_at: z.ZodNullable<z.ZodString>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  starts_at: string;
17
- ends_at: string;
17
+ ends_at: string | null;
18
18
  }, {
19
19
  starts_at: string;
20
- ends_at: string;
20
+ ends_at: string | null;
21
21
  }>;
@@ -7,7 +7,8 @@ export const start_end_schedule = z.object({
7
7
  ends_at: z
8
8
  .string()
9
9
  .datetime()
10
- .describe("Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format."),
10
+ .describe("Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.")
11
+ .nullable(),
11
12
  });
12
13
  // export const schedule = z.union([
13
14
  // start_end_schedule,
@@ -1 +1 @@
1
- {"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,gIAAgI,CACjI;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,8HAA8H,CAC/H;CACJ,CAAC,CAAA;AAEF,oCAAoC;AACpC,wBAAwB;AACxB,oBAAoB;AACpB,oBAAoB;AACpB,KAAK;AACL,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAA"}
1
+ {"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,gIAAgI,CACjI;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,8HAA8H,CAC/H;SACA,QAAQ,EAAE;CACd,CAAC,CAAA;AAEF,oCAAoC;AACpC,wBAAwB;AACxB,oBAAoB;AACpB,oBAAoB;AACpB,KAAK;AACL,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAA"}
@@ -828,6 +828,7 @@ declare const _default: {
828
828
  ends_at: {
829
829
  description: string;
830
830
  format: string;
831
+ nullable: boolean;
831
832
  type: string;
832
833
  };
833
834
  starts_at: {
@@ -10250,6 +10251,7 @@ declare const _default: {
10250
10251
  properties: {
10251
10252
  ends_at: {
10252
10253
  format: string;
10254
+ nullable: boolean;
10253
10255
  type: string;
10254
10256
  };
10255
10257
  starts_at: {
@@ -10257,7 +10259,6 @@ declare const _default: {
10257
10259
  type: string;
10258
10260
  };
10259
10261
  };
10260
- required: string[];
10261
10262
  type: string;
10262
10263
  };
10263
10264
  acs_access_group_ids: {
@@ -10909,6 +10910,7 @@ declare const _default: {
10909
10910
  ends_at: {
10910
10911
  description: string;
10911
10912
  format: string;
10913
+ nullable: boolean;
10912
10914
  type: string;
10913
10915
  };
10914
10916
  starts_at: {
@@ -11156,6 +11158,7 @@ declare const _default: {
11156
11158
  ends_at: {
11157
11159
  description: string;
11158
11160
  format: string;
11161
+ nullable: boolean;
11159
11162
  type: string;
11160
11163
  };
11161
11164
  starts_at: {
@@ -960,6 +960,7 @@ export default {
960
960
  ends_at: {
961
961
  description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
962
962
  format: 'date-time',
963
+ nullable: true,
963
964
  type: 'string',
964
965
  },
965
966
  starts_at: {
@@ -10542,12 +10543,15 @@ export default {
10542
10543
  schema: {
10543
10544
  properties: {
10544
10545
  access_schedule: {
10545
- description: "`starts_at` and `ends_at` timestamps for the new `acs_user`'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`. Only applicable to Salto KS access control systems.",
10546
+ description: "`starts_at` and `ends_at` timestamps for the new `acs_user`'s access. If you specify an `access_schedule`, you may include both `starts_at` and `ends_at`. `starts_at` defaults to the current time if not provided. `ends_at` is optional and must be a time in the future and after `starts_at`.",
10546
10547
  properties: {
10547
- ends_at: { format: 'date-time', type: 'string' },
10548
+ ends_at: {
10549
+ format: 'date-time',
10550
+ nullable: true,
10551
+ type: 'string',
10552
+ },
10548
10553
  starts_at: { format: 'date-time', type: 'string' },
10549
10554
  },
10550
- required: ['starts_at', 'ends_at'],
10551
10555
  type: 'object',
10552
10556
  },
10553
10557
  acs_access_group_ids: {
@@ -11042,6 +11046,7 @@ export default {
11042
11046
  ends_at: {
11043
11047
  description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
11044
11048
  format: 'date-time',
11049
+ nullable: true,
11045
11050
  type: 'string',
11046
11051
  },
11047
11052
  starts_at: {
@@ -11400,6 +11405,7 @@ export default {
11400
11405
  ends_at: {
11401
11406
  description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
11402
11407
  format: 'date-time',
11408
+ nullable: true,
11403
11409
  type: 'string',
11404
11410
  },
11405
11411
  starts_at: {
@@ -11786,7 +11792,7 @@ export default {
11786
11792
  schema: {
11787
11793
  properties: {
11788
11794
  access_schedule: {
11789
- description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`. Only applicable to Salto KS access control systems.",
11795
+ description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`.",
11790
11796
  nullable: true,
11791
11797
  properties: {
11792
11798
  ends_at: { format: 'date-time', type: 'string' },
@@ -11863,7 +11869,7 @@ export default {
11863
11869
  schema: {
11864
11870
  properties: {
11865
11871
  access_schedule: {
11866
- description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`. Only applicable to Salto KS access control systems.",
11872
+ description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`.",
11867
11873
  nullable: true,
11868
11874
  properties: {
11869
11875
  ends_at: { format: 'date-time', type: 'string' },