@seamapi/types 1.72.1 → 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,17 +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;
7242
+ display_name: string;
7243
+ full_name: string | null;
7245
7244
  created_at: string;
7246
7245
  workspace_id: string;
7247
7246
  };
@@ -7323,10 +7322,10 @@ export interface Routes {
7323
7322
  jsonResponse: {
7324
7323
  user_identity: {
7325
7324
  user_identity_id: string;
7326
- user_identity_key?: (string | null) | undefined;
7327
- email_address?: (string | null) | undefined;
7328
- first_name?: (string | null) | undefined;
7329
- last_name?: (string | null) | undefined;
7325
+ user_identity_key: string | null;
7326
+ email_address: string | null;
7327
+ display_name: string;
7328
+ full_name: string | null;
7330
7329
  created_at: string;
7331
7330
  workspace_id: string;
7332
7331
  };
@@ -7354,10 +7353,10 @@ export interface Routes {
7354
7353
  jsonResponse: {
7355
7354
  user_identities: Array<{
7356
7355
  user_identity_id: string;
7357
- user_identity_key?: (string | null) | undefined;
7358
- email_address?: (string | null) | undefined;
7359
- first_name?: (string | null) | undefined;
7360
- last_name?: (string | null) | undefined;
7356
+ user_identity_key: string | null;
7357
+ email_address: string | null;
7358
+ display_name: string;
7359
+ full_name: string | null;
7361
7360
  created_at: string;
7362
7361
  workspace_id: string;
7363
7362
  }>;
@@ -1,27 +1,27 @@
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>;
6
+ display_name: z.ZodString;
7
+ full_name: z.ZodNullable<z.ZodString>;
8
8
  created_at: z.ZodString;
9
9
  workspace_id: z.ZodString;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  workspace_id: string;
12
12
  created_at: string;
13
+ display_name: string;
13
14
  user_identity_id: string;
14
- user_identity_key?: string | null | undefined;
15
- email_address?: string | null | undefined;
16
- first_name?: string | null | undefined;
17
- last_name?: string | null | undefined;
15
+ user_identity_key: string | null;
16
+ email_address: string | null;
17
+ full_name: string | null;
18
18
  }, {
19
19
  workspace_id: string;
20
20
  created_at: string;
21
+ display_name: string;
21
22
  user_identity_id: string;
22
- user_identity_key?: string | null | undefined;
23
- email_address?: string | null | undefined;
24
- first_name?: string | null | undefined;
25
- last_name?: string | null | undefined;
23
+ user_identity_key: string | null;
24
+ email_address: string | null;
25
+ full_name: string | null;
26
26
  }>;
27
27
  export type UserIdentity = z.output<typeof user_identity>;
@@ -1,10 +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(),
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(),
8
8
  created_at: z.string().datetime(),
9
9
  workspace_id: z.string().uuid(),
10
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,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.72.1",
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,19 +11062,31 @@ export default {
11059
11062
  user_identity: {
11060
11063
  properties: {
11061
11064
  created_at: { format: 'date-time', type: 'string' },
11065
+ display_name: { minLength: 1, type: 'string' },
11062
11066
  email_address: {
11063
11067
  format: 'email',
11064
11068
  nullable: true,
11065
11069
  type: 'string',
11066
11070
  },
11067
- first_name: { nullable: true, type: 'string' },
11068
- last_name: { nullable: true, type: 'string' },
11071
+ full_name: {
11072
+ minLength: 1,
11073
+ nullable: true,
11074
+ type: 'string',
11075
+ },
11069
11076
  user_identity_id: { format: 'uuid', type: 'string' },
11070
- user_identity_key: { nullable: true, type: 'string' },
11077
+ user_identity_key: {
11078
+ minLength: 1,
11079
+ nullable: true,
11080
+ type: 'string',
11081
+ },
11071
11082
  workspace_id: { format: 'uuid', type: 'string' },
11072
11083
  },
11073
11084
  required: [
11074
11085
  'user_identity_id',
11086
+ 'user_identity_key',
11087
+ 'email_address',
11088
+ 'display_name',
11089
+ 'full_name',
11075
11090
  'created_at',
11076
11091
  'workspace_id',
11077
11092
  ],
@@ -11321,19 +11336,31 @@ export default {
11321
11336
  user_identity: {
11322
11337
  properties: {
11323
11338
  created_at: { format: 'date-time', type: 'string' },
11339
+ display_name: { minLength: 1, type: 'string' },
11324
11340
  email_address: {
11325
11341
  format: 'email',
11326
11342
  nullable: true,
11327
11343
  type: 'string',
11328
11344
  },
11329
- first_name: { nullable: true, type: 'string' },
11330
- last_name: { nullable: true, type: 'string' },
11345
+ full_name: {
11346
+ minLength: 1,
11347
+ nullable: true,
11348
+ type: 'string',
11349
+ },
11331
11350
  user_identity_id: { format: 'uuid', type: 'string' },
11332
- user_identity_key: { nullable: true, type: 'string' },
11351
+ user_identity_key: {
11352
+ minLength: 1,
11353
+ nullable: true,
11354
+ type: 'string',
11355
+ },
11333
11356
  workspace_id: { format: 'uuid', type: 'string' },
11334
11357
  },
11335
11358
  required: [
11336
11359
  'user_identity_id',
11360
+ 'user_identity_key',
11361
+ 'email_address',
11362
+ 'display_name',
11363
+ 'full_name',
11337
11364
  'created_at',
11338
11365
  'workspace_id',
11339
11366
  ],
@@ -11460,19 +11487,31 @@ export default {
11460
11487
  items: {
11461
11488
  properties: {
11462
11489
  created_at: { format: 'date-time', type: 'string' },
11490
+ display_name: { minLength: 1, type: 'string' },
11463
11491
  email_address: {
11464
11492
  format: 'email',
11465
11493
  nullable: true,
11466
11494
  type: 'string',
11467
11495
  },
11468
- first_name: { nullable: true, type: 'string' },
11469
- last_name: { nullable: true, type: 'string' },
11496
+ full_name: {
11497
+ minLength: 1,
11498
+ nullable: true,
11499
+ type: 'string',
11500
+ },
11470
11501
  user_identity_id: { format: 'uuid', type: 'string' },
11471
- user_identity_key: { nullable: true, type: 'string' },
11502
+ user_identity_key: {
11503
+ minLength: 1,
11504
+ nullable: true,
11505
+ type: 'string',
11506
+ },
11472
11507
  workspace_id: { format: 'uuid', type: 'string' },
11473
11508
  },
11474
11509
  required: [
11475
11510
  'user_identity_id',
11511
+ 'user_identity_key',
11512
+ 'email_address',
11513
+ 'display_name',
11514
+ 'full_name',
11476
11515
  'created_at',
11477
11516
  'workspace_id',
11478
11517
  ],
@@ -11514,19 +11553,31 @@ export default {
11514
11553
  items: {
11515
11554
  properties: {
11516
11555
  created_at: { format: 'date-time', type: 'string' },
11556
+ display_name: { minLength: 1, type: 'string' },
11517
11557
  email_address: {
11518
11558
  format: 'email',
11519
11559
  nullable: true,
11520
11560
  type: 'string',
11521
11561
  },
11522
- first_name: { nullable: true, type: 'string' },
11523
- last_name: { nullable: true, type: 'string' },
11562
+ full_name: {
11563
+ minLength: 1,
11564
+ nullable: true,
11565
+ type: 'string',
11566
+ },
11524
11567
  user_identity_id: { format: 'uuid', type: 'string' },
11525
- user_identity_key: { nullable: true, type: 'string' },
11568
+ user_identity_key: {
11569
+ minLength: 1,
11570
+ nullable: true,
11571
+ type: 'string',
11572
+ },
11526
11573
  workspace_id: { format: 'uuid', type: 'string' },
11527
11574
  },
11528
11575
  required: [
11529
11576
  'user_identity_id',
11577
+ 'user_identity_key',
11578
+ 'email_address',
11579
+ 'display_name',
11580
+ 'full_name',
11530
11581
  'created_at',
11531
11582
  'workspace_id',
11532
11583
  ],
@@ -9984,17 +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
9995
+ display_name: string
9996
+ full_name: string | null
9998
9997
  created_at: string
9999
9998
  workspace_id: string
10000
9999
  }
@@ -10078,10 +10077,10 @@ export interface Routes {
10078
10077
  jsonResponse: {
10079
10078
  user_identity: {
10080
10079
  user_identity_id: string
10081
- user_identity_key?: (string | null) | undefined
10082
- email_address?: (string | null) | undefined
10083
- first_name?: (string | null) | undefined
10084
- last_name?: (string | null) | undefined
10080
+ user_identity_key: string | null
10081
+ email_address: string | null
10082
+ display_name: string
10083
+ full_name: string | null
10085
10084
  created_at: string
10086
10085
  workspace_id: string
10087
10086
  }
@@ -10109,10 +10108,10 @@ export interface Routes {
10109
10108
  jsonResponse: {
10110
10109
  user_identities: Array<{
10111
10110
  user_identity_id: string
10112
- user_identity_key?: (string | null) | undefined
10113
- email_address?: (string | null) | undefined
10114
- first_name?: (string | null) | undefined
10115
- last_name?: (string | null) | undefined
10111
+ user_identity_key: string | null
10112
+ email_address: string | null
10113
+ display_name: string
10114
+ full_name: string | null
10116
10115
  created_at: string
10117
10116
  workspace_id: string
10118
10117
  }>
@@ -2,10 +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(),
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(),
9
9
  created_at: z.string().datetime(),
10
10
  workspace_id: z.string().uuid(),
11
11
  })