@seamapi/types 1.73.0 → 1.75.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.
@@ -816,6 +816,8 @@ export interface Routes {
816
816
  external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card') | undefined;
817
817
  card_format?: ('TLCode' | 'rfid48') | undefined;
818
818
  is_override_key?: boolean | undefined;
819
+ starts_at?: string | undefined;
820
+ ends_at?: string | undefined;
819
821
  };
820
822
  formData: {};
821
823
  jsonResponse: {
@@ -7231,18 +7233,16 @@ export interface Routes {
7231
7233
  commonParams: {
7232
7234
  user_identity_key?: (string | null) | undefined;
7233
7235
  email_address?: (string | null) | undefined;
7234
- first_name?: (string | null) | undefined;
7235
- last_name?: (string | null) | undefined;
7236
+ full_name?: (string | null) | undefined;
7236
7237
  };
7237
7238
  formData: {};
7238
7239
  jsonResponse: {
7239
7240
  user_identity: {
7240
7241
  user_identity_id: string;
7241
- user_identity_key?: (string | null) | undefined;
7242
- email_address?: (string | null) | undefined;
7243
- first_name?: (string | null) | undefined;
7244
- last_name?: (string | null) | undefined;
7242
+ user_identity_key: string | null;
7243
+ email_address: string | null;
7245
7244
  display_name: string;
7245
+ full_name: string | null;
7246
7246
  created_at: string;
7247
7247
  workspace_id: string;
7248
7248
  };
@@ -7324,11 +7324,10 @@ export interface Routes {
7324
7324
  jsonResponse: {
7325
7325
  user_identity: {
7326
7326
  user_identity_id: string;
7327
- user_identity_key?: (string | null) | undefined;
7328
- email_address?: (string | null) | undefined;
7329
- first_name?: (string | null) | undefined;
7330
- last_name?: (string | null) | undefined;
7327
+ user_identity_key: string | null;
7328
+ email_address: string | null;
7331
7329
  display_name: string;
7330
+ full_name: string | null;
7332
7331
  created_at: string;
7333
7332
  workspace_id: string;
7334
7333
  };
@@ -7356,11 +7355,10 @@ export interface Routes {
7356
7355
  jsonResponse: {
7357
7356
  user_identities: Array<{
7358
7357
  user_identity_id: string;
7359
- user_identity_key?: (string | null) | undefined;
7360
- email_address?: (string | null) | undefined;
7361
- first_name?: (string | null) | undefined;
7362
- last_name?: (string | null) | undefined;
7358
+ user_identity_key: string | null;
7359
+ email_address: string | null;
7363
7360
  display_name: string;
7361
+ full_name: string | null;
7364
7362
  created_at: string;
7365
7363
  workspace_id: string;
7366
7364
  }>;
@@ -1,11 +1,10 @@
1
1
  import { z } from 'zod';
2
2
  export declare const user_identity: z.ZodObject<{
3
3
  user_identity_id: z.ZodString;
4
- user_identity_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
- email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ user_identity_key: z.ZodNullable<z.ZodString>;
5
+ email_address: z.ZodNullable<z.ZodString>;
8
6
  display_name: z.ZodString;
7
+ full_name: z.ZodNullable<z.ZodString>;
9
8
  created_at: z.ZodString;
10
9
  workspace_id: z.ZodString;
11
10
  }, "strip", z.ZodTypeAny, {
@@ -13,18 +12,16 @@ export declare const user_identity: z.ZodObject<{
13
12
  created_at: string;
14
13
  display_name: string;
15
14
  user_identity_id: string;
16
- user_identity_key?: string | null | undefined;
17
- email_address?: string | null | undefined;
18
- first_name?: string | null | undefined;
19
- last_name?: string | null | undefined;
15
+ user_identity_key: string | null;
16
+ email_address: string | null;
17
+ full_name: string | null;
20
18
  }, {
21
19
  workspace_id: string;
22
20
  created_at: string;
23
21
  display_name: string;
24
22
  user_identity_id: string;
25
- user_identity_key?: string | null | undefined;
26
- email_address?: string | null | undefined;
27
- first_name?: string | null | undefined;
28
- last_name?: string | null | undefined;
23
+ user_identity_key: string | null;
24
+ email_address: string | null;
25
+ full_name: string | null;
29
26
  }>;
30
27
  export type UserIdentity = z.output<typeof user_identity>;
@@ -1,11 +1,10 @@
1
1
  import { z } from 'zod';
2
2
  export const user_identity = z.object({
3
3
  user_identity_id: z.string().uuid(),
4
- user_identity_key: z.string().nullish(),
5
- email_address: z.string().email().nullish(),
6
- first_name: z.string().nullish(),
7
- last_name: z.string().nullish(),
8
- display_name: z.string(),
4
+ user_identity_key: z.string().nonempty().nullable(),
5
+ email_address: z.string().email().nullable(),
6
+ display_name: z.string().nonempty(),
7
+ full_name: z.string().nonempty().nullable(),
9
8
  created_at: z.string().datetime(),
10
9
  workspace_id: z.string().uuid(),
11
10
  });
@@ -1 +1 @@
1
- {"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/unstable/models/user-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACnC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACvC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IAC3C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC/B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAChC,CAAC,CAAA"}
1
+ {"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/unstable/models/user-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACnC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC3C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAChC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.73.0",
3
+ "version": "1.75.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -5173,6 +5173,7 @@ export default {
5173
5173
  },
5174
5174
  card_format: { enum: ['TLCode', 'rfid48'], type: 'string' },
5175
5175
  code: { pattern: '^\\d+$', type: 'string' },
5176
+ ends_at: { format: 'date-time', type: 'string' },
5176
5177
  external_type: {
5177
5178
  enum: [
5178
5179
  'pti_card',
@@ -5184,6 +5185,7 @@ export default {
5184
5185
  },
5185
5186
  is_multi_phone_sync_credential: { type: 'boolean' },
5186
5187
  is_override_key: { type: 'boolean' },
5188
+ starts_at: { format: 'date-time', type: 'string' },
5187
5189
  },
5188
5190
  required: ['acs_user_id', 'access_method'],
5189
5191
  type: 'object',
@@ -11040,9 +11042,12 @@ export default {
11040
11042
  nullable: true,
11041
11043
  type: 'string',
11042
11044
  },
11043
- first_name: { nullable: true, type: 'string' },
11044
- last_name: { nullable: true, type: 'string' },
11045
- user_identity_key: { nullable: true, type: 'string' },
11045
+ full_name: { minLength: 1, nullable: true, type: 'string' },
11046
+ user_identity_key: {
11047
+ minLength: 1,
11048
+ nullable: true,
11049
+ type: 'string',
11050
+ },
11046
11051
  },
11047
11052
  type: 'object',
11048
11053
  },
@@ -11059,21 +11064,31 @@ export default {
11059
11064
  user_identity: {
11060
11065
  properties: {
11061
11066
  created_at: { format: 'date-time', type: 'string' },
11062
- display_name: { type: 'string' },
11067
+ display_name: { minLength: 1, type: 'string' },
11063
11068
  email_address: {
11064
11069
  format: 'email',
11065
11070
  nullable: true,
11066
11071
  type: 'string',
11067
11072
  },
11068
- first_name: { nullable: true, type: 'string' },
11069
- last_name: { nullable: true, type: 'string' },
11073
+ full_name: {
11074
+ minLength: 1,
11075
+ nullable: true,
11076
+ type: 'string',
11077
+ },
11070
11078
  user_identity_id: { format: 'uuid', type: 'string' },
11071
- user_identity_key: { nullable: true, type: 'string' },
11079
+ user_identity_key: {
11080
+ minLength: 1,
11081
+ nullable: true,
11082
+ type: 'string',
11083
+ },
11072
11084
  workspace_id: { format: 'uuid', type: 'string' },
11073
11085
  },
11074
11086
  required: [
11075
11087
  'user_identity_id',
11088
+ 'user_identity_key',
11089
+ 'email_address',
11076
11090
  'display_name',
11091
+ 'full_name',
11077
11092
  'created_at',
11078
11093
  'workspace_id',
11079
11094
  ],
@@ -11323,21 +11338,31 @@ export default {
11323
11338
  user_identity: {
11324
11339
  properties: {
11325
11340
  created_at: { format: 'date-time', type: 'string' },
11326
- display_name: { type: 'string' },
11341
+ display_name: { minLength: 1, type: 'string' },
11327
11342
  email_address: {
11328
11343
  format: 'email',
11329
11344
  nullable: true,
11330
11345
  type: 'string',
11331
11346
  },
11332
- first_name: { nullable: true, type: 'string' },
11333
- last_name: { nullable: true, type: 'string' },
11347
+ full_name: {
11348
+ minLength: 1,
11349
+ nullable: true,
11350
+ type: 'string',
11351
+ },
11334
11352
  user_identity_id: { format: 'uuid', type: 'string' },
11335
- user_identity_key: { nullable: true, type: 'string' },
11353
+ user_identity_key: {
11354
+ minLength: 1,
11355
+ nullable: true,
11356
+ type: 'string',
11357
+ },
11336
11358
  workspace_id: { format: 'uuid', type: 'string' },
11337
11359
  },
11338
11360
  required: [
11339
11361
  'user_identity_id',
11362
+ 'user_identity_key',
11363
+ 'email_address',
11340
11364
  'display_name',
11365
+ 'full_name',
11341
11366
  'created_at',
11342
11367
  'workspace_id',
11343
11368
  ],
@@ -11464,21 +11489,31 @@ export default {
11464
11489
  items: {
11465
11490
  properties: {
11466
11491
  created_at: { format: 'date-time', type: 'string' },
11467
- display_name: { type: 'string' },
11492
+ display_name: { minLength: 1, type: 'string' },
11468
11493
  email_address: {
11469
11494
  format: 'email',
11470
11495
  nullable: true,
11471
11496
  type: 'string',
11472
11497
  },
11473
- first_name: { nullable: true, type: 'string' },
11474
- last_name: { nullable: true, type: 'string' },
11498
+ full_name: {
11499
+ minLength: 1,
11500
+ nullable: true,
11501
+ type: 'string',
11502
+ },
11475
11503
  user_identity_id: { format: 'uuid', type: 'string' },
11476
- user_identity_key: { nullable: true, type: 'string' },
11504
+ user_identity_key: {
11505
+ minLength: 1,
11506
+ nullable: true,
11507
+ type: 'string',
11508
+ },
11477
11509
  workspace_id: { format: 'uuid', type: 'string' },
11478
11510
  },
11479
11511
  required: [
11480
11512
  'user_identity_id',
11513
+ 'user_identity_key',
11514
+ 'email_address',
11481
11515
  'display_name',
11516
+ 'full_name',
11482
11517
  'created_at',
11483
11518
  'workspace_id',
11484
11519
  ],
@@ -11520,21 +11555,31 @@ export default {
11520
11555
  items: {
11521
11556
  properties: {
11522
11557
  created_at: { format: 'date-time', type: 'string' },
11523
- display_name: { type: 'string' },
11558
+ display_name: { minLength: 1, type: 'string' },
11524
11559
  email_address: {
11525
11560
  format: 'email',
11526
11561
  nullable: true,
11527
11562
  type: 'string',
11528
11563
  },
11529
- first_name: { nullable: true, type: 'string' },
11530
- last_name: { nullable: true, type: 'string' },
11564
+ full_name: {
11565
+ minLength: 1,
11566
+ nullable: true,
11567
+ type: 'string',
11568
+ },
11531
11569
  user_identity_id: { format: 'uuid', type: 'string' },
11532
- user_identity_key: { nullable: true, type: 'string' },
11570
+ user_identity_key: {
11571
+ minLength: 1,
11572
+ nullable: true,
11573
+ type: 'string',
11574
+ },
11533
11575
  workspace_id: { format: 'uuid', type: 'string' },
11534
11576
  },
11535
11577
  required: [
11536
11578
  'user_identity_id',
11579
+ 'user_identity_key',
11580
+ 'email_address',
11537
11581
  'display_name',
11582
+ 'full_name',
11538
11583
  'created_at',
11539
11584
  'workspace_id',
11540
11585
  ],
@@ -862,6 +862,8 @@ export interface Routes {
862
862
  | undefined
863
863
  card_format?: ('TLCode' | 'rfid48') | undefined
864
864
  is_override_key?: boolean | undefined
865
+ starts_at?: string | undefined
866
+ ends_at?: string | undefined
865
867
  }
866
868
  formData: {}
867
869
  jsonResponse: {
@@ -9984,18 +9986,16 @@ export interface Routes {
9984
9986
  commonParams: {
9985
9987
  user_identity_key?: (string | null) | undefined
9986
9988
  email_address?: (string | null) | undefined
9987
- first_name?: (string | null) | undefined
9988
- last_name?: (string | null) | undefined
9989
+ full_name?: (string | null) | undefined
9989
9990
  }
9990
9991
  formData: {}
9991
9992
  jsonResponse: {
9992
9993
  user_identity: {
9993
9994
  user_identity_id: string
9994
- user_identity_key?: (string | null) | undefined
9995
- email_address?: (string | null) | undefined
9996
- first_name?: (string | null) | undefined
9997
- last_name?: (string | null) | undefined
9995
+ user_identity_key: string | null
9996
+ email_address: string | null
9998
9997
  display_name: string
9998
+ full_name: string | null
9999
9999
  created_at: string
10000
10000
  workspace_id: string
10001
10001
  }
@@ -10079,11 +10079,10 @@ export interface Routes {
10079
10079
  jsonResponse: {
10080
10080
  user_identity: {
10081
10081
  user_identity_id: string
10082
- user_identity_key?: (string | null) | undefined
10083
- email_address?: (string | null) | undefined
10084
- first_name?: (string | null) | undefined
10085
- last_name?: (string | null) | undefined
10082
+ user_identity_key: string | null
10083
+ email_address: string | null
10086
10084
  display_name: string
10085
+ full_name: string | null
10087
10086
  created_at: string
10088
10087
  workspace_id: string
10089
10088
  }
@@ -10111,11 +10110,10 @@ export interface Routes {
10111
10110
  jsonResponse: {
10112
10111
  user_identities: Array<{
10113
10112
  user_identity_id: string
10114
- user_identity_key?: (string | null) | undefined
10115
- email_address?: (string | null) | undefined
10116
- first_name?: (string | null) | undefined
10117
- last_name?: (string | null) | undefined
10113
+ user_identity_key: string | null
10114
+ email_address: string | null
10118
10115
  display_name: string
10116
+ full_name: string | null
10119
10117
  created_at: string
10120
10118
  workspace_id: string
10121
10119
  }>
@@ -2,11 +2,10 @@ import { z } from 'zod'
2
2
 
3
3
  export const user_identity = z.object({
4
4
  user_identity_id: z.string().uuid(),
5
- user_identity_key: z.string().nullish(),
6
- email_address: z.string().email().nullish(),
7
- first_name: z.string().nullish(),
8
- last_name: z.string().nullish(),
9
- display_name: z.string(),
5
+ user_identity_key: z.string().nonempty().nullable(),
6
+ email_address: z.string().email().nullable(),
7
+ display_name: z.string().nonempty(),
8
+ full_name: z.string().nonempty().nullable(),
10
9
  created_at: z.string().datetime(),
11
10
  workspace_id: z.string().uuid(),
12
11
  })