@seamapi/types 1.413.0 → 1.414.1

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.
@@ -22,5 +22,10 @@ export const location = z.object({
22
22
  .string()
23
23
  .datetime()
24
24
  .describe('Date and time at which the location object was created.'),
25
- });
25
+ }).describe(`
26
+ ---
27
+ undocumented: Will be removed.
28
+ route_path: /unstable_locations
29
+ ---
30
+ `);
26
31
  //# sourceMappingURL=location.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"location.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/locations/location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,qCAAqC,CAAC;IAClD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,wEAAwE,CACzE;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAClD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAClE,WAAW,EAAE,WAAW;SACrB,QAAQ,EAAE;SACV,QAAQ,CAAC,wCAAwC,CAAC;IACrD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACvE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;CACvE,CAAC,CAAA"}
1
+ {"version":3,"file":"location.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/locations/location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,qCAAqC,CAAC;IAClD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,wEAAwE,CACzE;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAClD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAClE,WAAW,EAAE,WAAW;SACrB,QAAQ,EAAE;SACV,QAAQ,CAAC,wCAAwC,CAAC;IACrD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACvE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;CACvE,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA"}
@@ -16,7 +16,7 @@ declare const phone_provider_session: z.ZodObject<{
16
16
  is_being_activated: boolean;
17
17
  provider_state?: any;
18
18
  }>;
19
- acs_credentials: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
19
+ acs_credentials: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<{
20
20
  acs_credential_id: z.ZodString;
21
21
  acs_user_id: z.ZodOptional<z.ZodString>;
22
22
  acs_credential_pool_id: z.ZodOptional<z.ZodString>;
@@ -179,7 +179,8 @@ declare const phone_provider_session: z.ZodObject<{
179
179
  }>>;
180
180
  }, {
181
181
  is_managed: z.ZodLiteral<true>;
182
- }>, {
182
+ }>, "acs_credential_id">, {
183
+ acs_credential_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
183
184
  acs_entrances: z.ZodArray<z.ZodObject<{
184
185
  acs_system_id: z.ZodString;
185
186
  acs_entrance_id: z.ZodString;
@@ -438,7 +439,6 @@ declare const phone_provider_session: z.ZodObject<{
438
439
  })[];
439
440
  is_managed: true;
440
441
  acs_system_id: string;
441
- acs_credential_id: string;
442
442
  access_method: "code" | "card" | "mobile_key";
443
443
  acs_entrances: {
444
444
  display_name: string;
@@ -514,6 +514,7 @@ declare const phone_provider_session: z.ZodObject<{
514
514
  issued_at?: string | null | undefined;
515
515
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
516
516
  external_type_display_name?: string | undefined;
517
+ acs_credential_id?: string | null | undefined;
517
518
  acs_user_id?: string | undefined;
518
519
  acs_credential_pool_id?: string | undefined;
519
520
  parent_acs_credential_id?: string | undefined;
@@ -557,7 +558,6 @@ declare const phone_provider_session: z.ZodObject<{
557
558
  })[];
558
559
  is_managed: true;
559
560
  acs_system_id: string;
560
- acs_credential_id: string;
561
561
  access_method: "code" | "card" | "mobile_key";
562
562
  acs_entrances: {
563
563
  display_name: string;
@@ -633,6 +633,7 @@ declare const phone_provider_session: z.ZodObject<{
633
633
  issued_at?: string | null | undefined;
634
634
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
635
635
  external_type_display_name?: string | undefined;
636
+ acs_credential_id?: string | null | undefined;
636
637
  acs_user_id?: string | undefined;
637
638
  acs_credential_pool_id?: string | undefined;
638
639
  parent_acs_credential_id?: string | undefined;
@@ -684,7 +685,6 @@ declare const phone_provider_session: z.ZodObject<{
684
685
  })[];
685
686
  is_managed: true;
686
687
  acs_system_id: string;
687
- acs_credential_id: string;
688
688
  access_method: "code" | "card" | "mobile_key";
689
689
  acs_entrances: {
690
690
  display_name: string;
@@ -760,6 +760,7 @@ declare const phone_provider_session: z.ZodObject<{
760
760
  issued_at?: string | null | undefined;
761
761
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
762
762
  external_type_display_name?: string | undefined;
763
+ acs_credential_id?: string | null | undefined;
763
764
  acs_user_id?: string | undefined;
764
765
  acs_credential_pool_id?: string | undefined;
765
766
  parent_acs_credential_id?: string | undefined;
@@ -811,7 +812,6 @@ declare const phone_provider_session: z.ZodObject<{
811
812
  })[];
812
813
  is_managed: true;
813
814
  acs_system_id: string;
814
- acs_credential_id: string;
815
815
  access_method: "code" | "card" | "mobile_key";
816
816
  acs_entrances: {
817
817
  display_name: string;
@@ -887,6 +887,7 @@ declare const phone_provider_session: z.ZodObject<{
887
887
  issued_at?: string | null | undefined;
888
888
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
889
889
  external_type_display_name?: string | undefined;
890
+ acs_credential_id?: string | null | undefined;
890
891
  acs_user_id?: string | undefined;
891
892
  acs_credential_pool_id?: string | undefined;
892
893
  parent_acs_credential_id?: string | undefined;
@@ -915,7 +916,7 @@ export declare const phone_session: z.ZodObject<{
915
916
  is_being_activated: boolean;
916
917
  provider_state?: any;
917
918
  }>;
918
- acs_credentials: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
919
+ acs_credentials: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<{
919
920
  acs_credential_id: z.ZodString;
920
921
  acs_user_id: z.ZodOptional<z.ZodString>;
921
922
  acs_credential_pool_id: z.ZodOptional<z.ZodString>;
@@ -1078,7 +1079,8 @@ export declare const phone_session: z.ZodObject<{
1078
1079
  }>>;
1079
1080
  }, {
1080
1081
  is_managed: z.ZodLiteral<true>;
1081
- }>, {
1082
+ }>, "acs_credential_id">, {
1083
+ acs_credential_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1082
1084
  acs_entrances: z.ZodArray<z.ZodObject<{
1083
1085
  acs_system_id: z.ZodString;
1084
1086
  acs_entrance_id: z.ZodString;
@@ -1337,7 +1339,6 @@ export declare const phone_session: z.ZodObject<{
1337
1339
  })[];
1338
1340
  is_managed: true;
1339
1341
  acs_system_id: string;
1340
- acs_credential_id: string;
1341
1342
  access_method: "code" | "card" | "mobile_key";
1342
1343
  acs_entrances: {
1343
1344
  display_name: string;
@@ -1413,6 +1414,7 @@ export declare const phone_session: z.ZodObject<{
1413
1414
  issued_at?: string | null | undefined;
1414
1415
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1415
1416
  external_type_display_name?: string | undefined;
1417
+ acs_credential_id?: string | null | undefined;
1416
1418
  acs_user_id?: string | undefined;
1417
1419
  acs_credential_pool_id?: string | undefined;
1418
1420
  parent_acs_credential_id?: string | undefined;
@@ -1456,7 +1458,6 @@ export declare const phone_session: z.ZodObject<{
1456
1458
  })[];
1457
1459
  is_managed: true;
1458
1460
  acs_system_id: string;
1459
- acs_credential_id: string;
1460
1461
  access_method: "code" | "card" | "mobile_key";
1461
1462
  acs_entrances: {
1462
1463
  display_name: string;
@@ -1532,6 +1533,7 @@ export declare const phone_session: z.ZodObject<{
1532
1533
  issued_at?: string | null | undefined;
1533
1534
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1534
1535
  external_type_display_name?: string | undefined;
1536
+ acs_credential_id?: string | null | undefined;
1535
1537
  acs_user_id?: string | undefined;
1536
1538
  acs_credential_pool_id?: string | undefined;
1537
1539
  parent_acs_credential_id?: string | undefined;
@@ -1583,7 +1585,6 @@ export declare const phone_session: z.ZodObject<{
1583
1585
  })[];
1584
1586
  is_managed: true;
1585
1587
  acs_system_id: string;
1586
- acs_credential_id: string;
1587
1588
  access_method: "code" | "card" | "mobile_key";
1588
1589
  acs_entrances: {
1589
1590
  display_name: string;
@@ -1659,6 +1660,7 @@ export declare const phone_session: z.ZodObject<{
1659
1660
  issued_at?: string | null | undefined;
1660
1661
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1661
1662
  external_type_display_name?: string | undefined;
1663
+ acs_credential_id?: string | null | undefined;
1662
1664
  acs_user_id?: string | undefined;
1663
1665
  acs_credential_pool_id?: string | undefined;
1664
1666
  parent_acs_credential_id?: string | undefined;
@@ -1710,7 +1712,6 @@ export declare const phone_session: z.ZodObject<{
1710
1712
  })[];
1711
1713
  is_managed: true;
1712
1714
  acs_system_id: string;
1713
- acs_credential_id: string;
1714
1715
  access_method: "code" | "card" | "mobile_key";
1715
1716
  acs_entrances: {
1716
1717
  display_name: string;
@@ -1786,6 +1787,7 @@ export declare const phone_session: z.ZodObject<{
1786
1787
  issued_at?: string | null | undefined;
1787
1788
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1788
1789
  external_type_display_name?: string | undefined;
1790
+ acs_credential_id?: string | null | undefined;
1789
1791
  acs_user_id?: string | undefined;
1790
1792
  acs_credential_pool_id?: string | undefined;
1791
1793
  parent_acs_credential_id?: string | undefined;
@@ -1839,7 +1841,6 @@ export declare const phone_session: z.ZodObject<{
1839
1841
  })[];
1840
1842
  is_managed: true;
1841
1843
  acs_system_id: string;
1842
- acs_credential_id: string;
1843
1844
  access_method: "code" | "card" | "mobile_key";
1844
1845
  acs_entrances: {
1845
1846
  display_name: string;
@@ -1915,6 +1916,7 @@ export declare const phone_session: z.ZodObject<{
1915
1916
  issued_at?: string | null | undefined;
1916
1917
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1917
1918
  external_type_display_name?: string | undefined;
1919
+ acs_credential_id?: string | null | undefined;
1918
1920
  acs_user_id?: string | undefined;
1919
1921
  acs_credential_pool_id?: string | undefined;
1920
1922
  parent_acs_credential_id?: string | undefined;
@@ -1968,7 +1970,6 @@ export declare const phone_session: z.ZodObject<{
1968
1970
  })[];
1969
1971
  is_managed: true;
1970
1972
  acs_system_id: string;
1971
- acs_credential_id: string;
1972
1973
  access_method: "code" | "card" | "mobile_key";
1973
1974
  acs_entrances: {
1974
1975
  display_name: string;
@@ -2044,6 +2045,7 @@ export declare const phone_session: z.ZodObject<{
2044
2045
  issued_at?: string | null | undefined;
2045
2046
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
2046
2047
  external_type_display_name?: string | undefined;
2048
+ acs_credential_id?: string | null | undefined;
2047
2049
  acs_user_id?: string | undefined;
2048
2050
  acs_credential_pool_id?: string | undefined;
2049
2051
  parent_acs_credential_id?: string | undefined;
@@ -5,7 +5,11 @@ import { phone_registration } from './phone-registration.js';
5
5
  const phone_provider_session = z.object({
6
6
  phone_registration,
7
7
  acs_credentials: acs_credential
8
+ .omit({
9
+ acs_credential_id: true,
10
+ })
8
11
  .extend({
12
+ acs_credential_id: z.string().optional().nullable(),
9
13
  acs_entrances: acs_entrance.array(),
10
14
  })
11
15
  .array(),
@@ -1 +1 @@
1
- {"version":3,"file":"phone-session.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/phones/phone-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB;IAClB,eAAe,EAAE,cAAc;SAC5B,MAAM,CAAC;QACN,aAAa,EAAE,YAAY,CAAC,KAAK,EAAE;KACpC,CAAC;SACD,KAAK,EAAE;CACX,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,iBAAiB,EAAE,sBAAsB,CAAC,KAAK,EAAE;CAClD,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
1
+ {"version":3,"file":"phone-session.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/phones/phone-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB;IAClB,eAAe,EAAE,cAAc;SAC5B,IAAI,CAAC;QACJ,iBAAiB,EAAE,IAAI;KACxB,CAAC;SACD,MAAM,CAAC;QACN,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACnD,aAAa,EAAE,YAAY,CAAC,KAAK,EAAE;KACpC,CAAC;SACD,KAAK,EAAE;CACX,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,iBAAiB,EAAE,sBAAsB,CAAC,KAAK,EAAE;CAClD,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
@@ -36,7 +36,7 @@ export const thermostat_daily_program = z.object({
36
36
  .describe('Date and time at which the thermostat daily program was created.'),
37
37
  }).describe(`
38
38
  ---
39
- route_path: /thermostats/thermostat_daily_programs
39
+ route_path: /thermostats/daily_programs
40
40
  ---
41
41
  Represents a thermostat daily program, consisting of a set of periods, each of which has a starting time and the key that identifies the climate preset to apply at the starting time.
42
42
  `);
@@ -1,4 +1,35 @@
1
1
  import { z } from 'zod';
2
+ export declare const user_identity_error_map: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3
+ export type UserIdentityErrorMap = z.infer<typeof user_identity_error_map>;
4
+ export declare const user_identity_warning_map: z.ZodObject<{
5
+ user_identity_being_deleted: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
6
+ created_at: z.ZodString;
7
+ message: z.ZodString;
8
+ }, {
9
+ warning_code: z.ZodLiteral<"being_deleted">;
10
+ }>, "strip", z.ZodTypeAny, {
11
+ message: string;
12
+ created_at: string;
13
+ warning_code: "being_deleted";
14
+ }, {
15
+ message: string;
16
+ created_at: string;
17
+ warning_code: "being_deleted";
18
+ }>>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ user_identity_being_deleted?: {
21
+ message: string;
22
+ created_at: string;
23
+ warning_code: "being_deleted";
24
+ } | null | undefined;
25
+ }, {
26
+ user_identity_being_deleted?: {
27
+ message: string;
28
+ created_at: string;
29
+ warning_code: "being_deleted";
30
+ } | null | undefined;
31
+ }>;
32
+ export type UserIdentityWarningMap = z.infer<typeof user_identity_warning_map>;
2
33
  export declare const user_identity: z.ZodObject<{
3
34
  user_identity_id: z.ZodString;
4
35
  user_identity_key: z.ZodNullable<z.ZodString>;
@@ -8,10 +39,43 @@ export declare const user_identity: z.ZodObject<{
8
39
  full_name: z.ZodNullable<z.ZodString>;
9
40
  created_at: z.ZodString;
10
41
  workspace_id: z.ZodString;
42
+ errors: z.ZodArray<z.ZodObject<{
43
+ created_at: z.ZodString;
44
+ message: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ message: string;
47
+ created_at: string;
48
+ }, {
49
+ message: string;
50
+ created_at: string;
51
+ }>, "many">;
52
+ warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
53
+ created_at: z.ZodString;
54
+ message: z.ZodString;
55
+ }, {
56
+ warning_code: z.ZodLiteral<"being_deleted">;
57
+ }>, "strip", z.ZodTypeAny, {
58
+ message: string;
59
+ created_at: string;
60
+ warning_code: "being_deleted";
61
+ }, {
62
+ message: string;
63
+ created_at: string;
64
+ warning_code: "being_deleted";
65
+ }>]>, "many">;
11
66
  }, "strip", z.ZodTypeAny, {
12
67
  display_name: string;
13
68
  workspace_id: string;
14
69
  created_at: string;
70
+ errors: {
71
+ message: string;
72
+ created_at: string;
73
+ }[];
74
+ warnings: {
75
+ message: string;
76
+ created_at: string;
77
+ warning_code: "being_deleted";
78
+ }[];
15
79
  user_identity_id: string;
16
80
  email_address: string | null;
17
81
  full_name: string | null;
@@ -21,6 +85,15 @@ export declare const user_identity: z.ZodObject<{
21
85
  display_name: string;
22
86
  workspace_id: string;
23
87
  created_at: string;
88
+ errors: {
89
+ message: string;
90
+ created_at: string;
91
+ }[];
92
+ warnings: {
93
+ message: string;
94
+ created_at: string;
95
+ warning_code: "being_deleted";
96
+ }[];
24
97
  user_identity_id: string;
25
98
  email_address: string | null;
26
99
  full_name: string | null;
@@ -1,5 +1,39 @@
1
1
  import { z } from 'zod';
2
2
  import { phone_number } from '../phone-number.js';
3
+ const common_user_identity_error = z.object({
4
+ created_at: z
5
+ .string()
6
+ .datetime()
7
+ .describe('Date and time at which Seam created the error.'),
8
+ message: z
9
+ .string()
10
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
11
+ });
12
+ const common_user_identity_warning = z.object({
13
+ created_at: z
14
+ .string()
15
+ .datetime()
16
+ .describe('Date and time at which Seam created the warning.'),
17
+ message: z
18
+ .string()
19
+ .describe('Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.'),
20
+ });
21
+ const user_identity_being_deleted = common_user_identity_warning
22
+ .extend({
23
+ warning_code: z
24
+ .literal('being_deleted')
25
+ .describe('Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'),
26
+ })
27
+ .describe('Indicates that the user identity is currently being deleted.');
28
+ export const user_identity_error_map = z.object({});
29
+ const user_identity_warnings = z
30
+ .discriminatedUnion('warning_code', [user_identity_being_deleted])
31
+ .describe('Warnings associated with the user identity.');
32
+ export const user_identity_warning_map = z.object({
33
+ user_identity_being_deleted: user_identity_being_deleted
34
+ .optional()
35
+ .nullable(),
36
+ });
3
37
  export const user_identity = z.object({
4
38
  user_identity_id: z.string().uuid().describe('ID of the user identity.'),
5
39
  user_identity_key: z
@@ -25,6 +59,12 @@ export const user_identity = z.object({
25
59
  .string()
26
60
  .uuid()
27
61
  .describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity.'),
62
+ errors: z
63
+ .array(common_user_identity_error)
64
+ .describe('Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.'),
65
+ warnings: z
66
+ .array(user_identity_warnings)
67
+ .describe('Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.'),
28
68
  }).describe(`
29
69
  ---
30
70
  route_path: /user_identities
@@ -1 +1 @@
1
- {"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/user-identities/user-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;IACxE,iBAAiB,EAAE,CAAC;SACjB,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,mCAAmC,CAAC;IAChD,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,KAAK,EAAE;SACP,QAAQ,EAAE;SACV,QAAQ,CAAC,6CAA6C,CAAC;IAC1D,YAAY,EAAE,YAAY;SACvB,QAAQ,EAAE;SACV,QAAQ,CACP,kIAAkI,CACnI;IACH,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,8GAA8G,CAC/G;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
1
+ {"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/user-identities/user-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EA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