@seamapi/types 1.73.0 → 1.74.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.
@@ -7231,18 +7231,16 @@ export interface Routes {
7231
7231
  commonParams: {
7232
7232
  user_identity_key?: (string | null) | undefined;
7233
7233
  email_address?: (string | null) | undefined;
7234
- first_name?: (string | null) | undefined;
7235
- last_name?: (string | null) | undefined;
7234
+ full_name?: (string | null) | undefined;
7236
7235
  };
7237
7236
  formData: {};
7238
7237
  jsonResponse: {
7239
7238
  user_identity: {
7240
7239
  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;
7240
+ user_identity_key: string | null;
7241
+ email_address: string | null;
7245
7242
  display_name: string;
7243
+ full_name: string | null;
7246
7244
  created_at: string;
7247
7245
  workspace_id: string;
7248
7246
  };
@@ -7324,11 +7322,10 @@ export interface Routes {
7324
7322
  jsonResponse: {
7325
7323
  user_identity: {
7326
7324
  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;
7325
+ user_identity_key: string | null;
7326
+ email_address: string | null;
7331
7327
  display_name: string;
7328
+ full_name: string | null;
7332
7329
  created_at: string;
7333
7330
  workspace_id: string;
7334
7331
  };
@@ -7356,11 +7353,10 @@ export interface Routes {
7356
7353
  jsonResponse: {
7357
7354
  user_identities: Array<{
7358
7355
  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;
7356
+ user_identity_key: string | null;
7357
+ email_address: string | null;
7363
7358
  display_name: string;
7359
+ full_name: string | null;
7364
7360
  created_at: string;
7365
7361
  workspace_id: string;
7366
7362
  }>;
@@ -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.74.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11040,9 +11040,12 @@ export default {
11040
11040
  nullable: true,
11041
11041
  type: 'string',
11042
11042
  },
11043
- first_name: { nullable: true, type: 'string' },
11044
- last_name: { nullable: true, type: 'string' },
11045
- user_identity_key: { nullable: true, type: 'string' },
11043
+ full_name: { minLength: 1, nullable: true, type: 'string' },
11044
+ user_identity_key: {
11045
+ minLength: 1,
11046
+ nullable: true,
11047
+ type: 'string',
11048
+ },
11046
11049
  },
11047
11050
  type: 'object',
11048
11051
  },
@@ -11059,21 +11062,31 @@ export default {
11059
11062
  user_identity: {
11060
11063
  properties: {
11061
11064
  created_at: { format: 'date-time', type: 'string' },
11062
- display_name: { type: 'string' },
11065
+ display_name: { minLength: 1, type: 'string' },
11063
11066
  email_address: {
11064
11067
  format: 'email',
11065
11068
  nullable: true,
11066
11069
  type: 'string',
11067
11070
  },
11068
- first_name: { nullable: true, type: 'string' },
11069
- last_name: { nullable: true, type: 'string' },
11071
+ full_name: {
11072
+ minLength: 1,
11073
+ nullable: true,
11074
+ type: 'string',
11075
+ },
11070
11076
  user_identity_id: { format: 'uuid', type: 'string' },
11071
- user_identity_key: { nullable: true, type: 'string' },
11077
+ user_identity_key: {
11078
+ minLength: 1,
11079
+ nullable: true,
11080
+ type: 'string',
11081
+ },
11072
11082
  workspace_id: { format: 'uuid', type: 'string' },
11073
11083
  },
11074
11084
  required: [
11075
11085
  'user_identity_id',
11086
+ 'user_identity_key',
11087
+ 'email_address',
11076
11088
  'display_name',
11089
+ 'full_name',
11077
11090
  'created_at',
11078
11091
  'workspace_id',
11079
11092
  ],
@@ -11323,21 +11336,31 @@ export default {
11323
11336
  user_identity: {
11324
11337
  properties: {
11325
11338
  created_at: { format: 'date-time', type: 'string' },
11326
- display_name: { type: 'string' },
11339
+ display_name: { minLength: 1, type: 'string' },
11327
11340
  email_address: {
11328
11341
  format: 'email',
11329
11342
  nullable: true,
11330
11343
  type: 'string',
11331
11344
  },
11332
- first_name: { nullable: true, type: 'string' },
11333
- last_name: { nullable: true, type: 'string' },
11345
+ full_name: {
11346
+ minLength: 1,
11347
+ nullable: true,
11348
+ type: 'string',
11349
+ },
11334
11350
  user_identity_id: { format: 'uuid', type: 'string' },
11335
- user_identity_key: { nullable: true, type: 'string' },
11351
+ user_identity_key: {
11352
+ minLength: 1,
11353
+ nullable: true,
11354
+ type: 'string',
11355
+ },
11336
11356
  workspace_id: { format: 'uuid', type: 'string' },
11337
11357
  },
11338
11358
  required: [
11339
11359
  'user_identity_id',
11360
+ 'user_identity_key',
11361
+ 'email_address',
11340
11362
  'display_name',
11363
+ 'full_name',
11341
11364
  'created_at',
11342
11365
  'workspace_id',
11343
11366
  ],
@@ -11464,21 +11487,31 @@ export default {
11464
11487
  items: {
11465
11488
  properties: {
11466
11489
  created_at: { format: 'date-time', type: 'string' },
11467
- display_name: { type: 'string' },
11490
+ display_name: { minLength: 1, type: 'string' },
11468
11491
  email_address: {
11469
11492
  format: 'email',
11470
11493
  nullable: true,
11471
11494
  type: 'string',
11472
11495
  },
11473
- first_name: { nullable: true, type: 'string' },
11474
- last_name: { nullable: true, type: 'string' },
11496
+ full_name: {
11497
+ minLength: 1,
11498
+ nullable: true,
11499
+ type: 'string',
11500
+ },
11475
11501
  user_identity_id: { format: 'uuid', type: 'string' },
11476
- user_identity_key: { nullable: true, type: 'string' },
11502
+ user_identity_key: {
11503
+ minLength: 1,
11504
+ nullable: true,
11505
+ type: 'string',
11506
+ },
11477
11507
  workspace_id: { format: 'uuid', type: 'string' },
11478
11508
  },
11479
11509
  required: [
11480
11510
  'user_identity_id',
11511
+ 'user_identity_key',
11512
+ 'email_address',
11481
11513
  'display_name',
11514
+ 'full_name',
11482
11515
  'created_at',
11483
11516
  'workspace_id',
11484
11517
  ],
@@ -11520,21 +11553,31 @@ export default {
11520
11553
  items: {
11521
11554
  properties: {
11522
11555
  created_at: { format: 'date-time', type: 'string' },
11523
- display_name: { type: 'string' },
11556
+ display_name: { minLength: 1, type: 'string' },
11524
11557
  email_address: {
11525
11558
  format: 'email',
11526
11559
  nullable: true,
11527
11560
  type: 'string',
11528
11561
  },
11529
- first_name: { nullable: true, type: 'string' },
11530
- last_name: { nullable: true, type: 'string' },
11562
+ full_name: {
11563
+ minLength: 1,
11564
+ nullable: true,
11565
+ type: 'string',
11566
+ },
11531
11567
  user_identity_id: { format: 'uuid', type: 'string' },
11532
- user_identity_key: { nullable: true, type: 'string' },
11568
+ user_identity_key: {
11569
+ minLength: 1,
11570
+ nullable: true,
11571
+ type: 'string',
11572
+ },
11533
11573
  workspace_id: { format: 'uuid', type: 'string' },
11534
11574
  },
11535
11575
  required: [
11536
11576
  'user_identity_id',
11577
+ 'user_identity_key',
11578
+ 'email_address',
11537
11579
  'display_name',
11580
+ 'full_name',
11538
11581
  'created_at',
11539
11582
  'workspace_id',
11540
11583
  ],
@@ -9984,18 +9984,16 @@ export interface Routes {
9984
9984
  commonParams: {
9985
9985
  user_identity_key?: (string | null) | undefined
9986
9986
  email_address?: (string | null) | undefined
9987
- first_name?: (string | null) | undefined
9988
- last_name?: (string | null) | undefined
9987
+ full_name?: (string | null) | undefined
9989
9988
  }
9990
9989
  formData: {}
9991
9990
  jsonResponse: {
9992
9991
  user_identity: {
9993
9992
  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
9993
+ user_identity_key: string | null
9994
+ email_address: string | null
9998
9995
  display_name: string
9996
+ full_name: string | null
9999
9997
  created_at: string
10000
9998
  workspace_id: string
10001
9999
  }
@@ -10079,11 +10077,10 @@ export interface Routes {
10079
10077
  jsonResponse: {
10080
10078
  user_identity: {
10081
10079
  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
10080
+ user_identity_key: string | null
10081
+ email_address: string | null
10086
10082
  display_name: string
10083
+ full_name: string | null
10087
10084
  created_at: string
10088
10085
  workspace_id: string
10089
10086
  }
@@ -10111,11 +10108,10 @@ export interface Routes {
10111
10108
  jsonResponse: {
10112
10109
  user_identities: Array<{
10113
10110
  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
10111
+ user_identity_key: string | null
10112
+ email_address: string | null
10118
10113
  display_name: string
10114
+ full_name: string | null
10119
10115
  created_at: string
10120
10116
  workspace_id: string
10121
10117
  }>
@@ -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
  })