@seamapi/types 1.421.1 → 1.422.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.
Files changed (55) hide show
  1. package/dist/connect.cjs +1630 -583
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +2627 -1024
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/models/customer/access-grant-resources.d.ts +420 -0
  8. package/lib/seam/connect/models/customer/access-grant-resources.js +111 -0
  9. package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -0
  10. package/lib/seam/connect/models/customer/business-vertical.d.ts +3 -0
  11. package/lib/seam/connect/models/customer/business-vertical.js +11 -0
  12. package/lib/seam/connect/models/customer/business-vertical.js.map +1 -0
  13. package/lib/seam/connect/models/customer/customer-data.d.ts +597 -0
  14. package/lib/seam/connect/models/customer/customer-data.js +67 -0
  15. package/lib/seam/connect/models/customer/customer-data.js.map +1 -0
  16. package/lib/seam/connect/models/customer/customer-portal.d.ts +71 -0
  17. package/lib/seam/connect/models/customer/customer-portal.js +34 -0
  18. package/lib/seam/connect/models/customer/customer-portal.js.map +1 -0
  19. package/lib/seam/connect/models/customer/index.d.ts +3 -0
  20. package/lib/seam/connect/models/customer/index.js +4 -0
  21. package/lib/seam/connect/models/customer/index.js.map +1 -0
  22. package/lib/seam/connect/models/customer/location-resources.d.ts +229 -0
  23. package/lib/seam/connect/models/customer/location-resources.js +55 -0
  24. package/lib/seam/connect/models/customer/location-resources.js.map +1 -0
  25. package/lib/seam/connect/models/customer/user-identity-resources.d.ts +205 -0
  26. package/lib/seam/connect/models/customer/user-identity-resources.js +50 -0
  27. package/lib/seam/connect/models/customer/user-identity-resources.js.map +1 -0
  28. package/lib/seam/connect/models/index.d.ts +4 -0
  29. package/lib/seam/connect/models/index.js +4 -0
  30. package/lib/seam/connect/models/index.js.map +1 -1
  31. package/lib/seam/connect/models/partner/index.d.ts +0 -1
  32. package/lib/seam/connect/models/partner/index.js +0 -1
  33. package/lib/seam/connect/models/partner/index.js.map +1 -1
  34. package/lib/seam/connect/models/partner/magic-link.d.ts +2 -2
  35. package/lib/seam/connect/openapi.d.ts +1821 -658
  36. package/lib/seam/connect/openapi.js +1639 -592
  37. package/lib/seam/connect/openapi.js.map +1 -1
  38. package/lib/seam/connect/route-types.d.ts +552 -112
  39. package/package.json +1 -1
  40. package/src/lib/seam/connect/internal/schemas.ts +21 -3
  41. package/src/lib/seam/connect/models/customer/access-grant-resources.ts +129 -0
  42. package/src/lib/seam/connect/models/customer/business-vertical.ts +13 -0
  43. package/src/lib/seam/connect/models/customer/customer-data.ts +93 -0
  44. package/src/lib/seam/connect/models/customer/customer-portal.ts +39 -0
  45. package/src/lib/seam/connect/models/customer/index.ts +3 -0
  46. package/src/lib/seam/connect/models/customer/location-resources.ts +77 -0
  47. package/src/lib/seam/connect/models/customer/user-identity-resources.ts +68 -0
  48. package/src/lib/seam/connect/models/index.ts +4 -0
  49. package/src/lib/seam/connect/models/partner/index.ts +0 -1
  50. package/src/lib/seam/connect/openapi.ts +1794 -601
  51. package/src/lib/seam/connect/route-types.ts +642 -114
  52. package/lib/seam/connect/models/partner/resources.d.ts +0 -76
  53. package/lib/seam/connect/models/partner/resources.js +0 -87
  54. package/lib/seam/connect/models/partner/resources.js.map +0 -1
  55. package/src/lib/seam/connect/models/partner/resources.ts +0 -112
@@ -0,0 +1,71 @@
1
+ import { z } from 'zod';
2
+ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
3
+ features: z.ZodDefault<z.ZodObject<{
4
+ connect: z.ZodDefault<z.ZodObject<{
5
+ exclude: z.ZodDefault<z.ZodBoolean>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ exclude: boolean;
8
+ }, {
9
+ exclude?: boolean | undefined;
10
+ }>>;
11
+ manage_devices: z.ZodDefault<z.ZodObject<{
12
+ exclude: z.ZodDefault<z.ZodBoolean>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ exclude: boolean;
15
+ }, {
16
+ exclude?: boolean | undefined;
17
+ }>>;
18
+ organize: z.ZodDefault<z.ZodObject<{
19
+ exclude: z.ZodDefault<z.ZodBoolean>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ exclude: boolean;
22
+ }, {
23
+ exclude?: boolean | undefined;
24
+ }>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ connect: {
27
+ exclude: boolean;
28
+ };
29
+ manage_devices: {
30
+ exclude: boolean;
31
+ };
32
+ organize: {
33
+ exclude: boolean;
34
+ };
35
+ }, {
36
+ connect?: {
37
+ exclude?: boolean | undefined;
38
+ } | undefined;
39
+ manage_devices?: {
40
+ exclude?: boolean | undefined;
41
+ } | undefined;
42
+ organize?: {
43
+ exclude?: boolean | undefined;
44
+ } | undefined;
45
+ }>>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ features: {
48
+ connect: {
49
+ exclude: boolean;
50
+ };
51
+ manage_devices: {
52
+ exclude: boolean;
53
+ };
54
+ organize: {
55
+ exclude: boolean;
56
+ };
57
+ };
58
+ }, {
59
+ features?: {
60
+ connect?: {
61
+ exclude?: boolean | undefined;
62
+ } | undefined;
63
+ manage_devices?: {
64
+ exclude?: boolean | undefined;
65
+ } | undefined;
66
+ organize?: {
67
+ exclude?: boolean | undefined;
68
+ } | undefined;
69
+ } | undefined;
70
+ }>>;
71
+ export type PortalConfiguration = z.infer<typeof portal_configuration>;
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod';
2
+ const base_feature = z.object({
3
+ exclude: z
4
+ .boolean()
5
+ .default(false)
6
+ .describe('Whether to exclude this feature from the portal.'),
7
+ });
8
+ const base_connect_feature = base_feature;
9
+ const base_manage_devices_feature = base_feature;
10
+ const base_organize_feature = base_feature;
11
+ const base_features = z.object({
12
+ connect: base_connect_feature
13
+ .default({})
14
+ .describe('Configuration for the connect accounts feature.'),
15
+ manage_devices: base_manage_devices_feature
16
+ .default({})
17
+ .describe('Configuration for the manage devices feature.'),
18
+ organize: base_organize_feature
19
+ .default({})
20
+ .describe('Configuration for the organize feature.'),
21
+ });
22
+ export const portal_configuration = z
23
+ .object({
24
+ features: base_features.default({}),
25
+ })
26
+ .default({
27
+ features: {
28
+ connect: { exclude: false },
29
+ organize: { exclude: false },
30
+ manage_devices: { exclude: false },
31
+ },
32
+ })
33
+ .describe(`Configuration for a customer portal`);
34
+ //# sourceMappingURL=customer-portal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-portal.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/customer-portal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC,kDAAkD,CAAC;CAChE,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,YAAY,CAAA;AACzC,MAAM,2BAA2B,GAAG,YAAY,CAAA;AAChD,MAAM,qBAAqB,GAAG,YAAY,CAAA;AAE1C,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,OAAO,EAAE,oBAAoB;SAC1B,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,cAAc,EAAE,2BAA2B;SACxC,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,+CAA+C,CAAC;IAC5D,QAAQ,EAAE,qBAAqB;SAC5B,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,yCAAyC,CAAC;CACvD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC;IACN,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;CACpC,CAAC;KACD,OAAO,CAAC;IACP,QAAQ,EAAE;QACR,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3B,QAAQ,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QAC5B,cAAc,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;KACnC;CACF,CAAC;KACD,QAAQ,CAAC,qCAAqC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './business-vertical.js';
2
+ export * from './customer-data.js';
3
+ export * from './customer-portal.js';
@@ -0,0 +1,4 @@
1
+ export * from './business-vertical.js';
2
+ export * from './customer-data.js';
3
+ export * from './customer-portal.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,229 @@
1
+ import { z } from 'zod';
2
+ export declare const neutral_resource: z.ZodObject<z.objectUtil.extendShape<{
3
+ name: z.ZodString;
4
+ }, {
5
+ space_key: z.ZodString;
6
+ }>, "strip", z.ZodTypeAny, {
7
+ name: string;
8
+ space_key: string;
9
+ }, {
10
+ name: string;
11
+ space_key: string;
12
+ }>;
13
+ export declare const property_resource: z.ZodObject<z.objectUtil.extendShape<{
14
+ name: z.ZodString;
15
+ }, {
16
+ property_key: z.ZodString;
17
+ }>, "strip", z.ZodTypeAny, {
18
+ name: string;
19
+ property_key: string;
20
+ }, {
21
+ name: string;
22
+ property_key: string;
23
+ }>;
24
+ export declare const room_resource: z.ZodObject<z.objectUtil.extendShape<{
25
+ name: z.ZodString;
26
+ }, {
27
+ room_key: z.ZodString;
28
+ }>, "strip", z.ZodTypeAny, {
29
+ name: string;
30
+ room_key: string;
31
+ }, {
32
+ name: string;
33
+ room_key: string;
34
+ }>;
35
+ export declare const common_area_resource: z.ZodObject<z.objectUtil.extendShape<{
36
+ name: z.ZodString;
37
+ }, {
38
+ common_area_key: z.ZodString;
39
+ }>, "strip", z.ZodTypeAny, {
40
+ name: string;
41
+ common_area_key: string;
42
+ }, {
43
+ name: string;
44
+ common_area_key: string;
45
+ }>;
46
+ export declare const unit_resource: z.ZodObject<z.objectUtil.extendShape<{
47
+ name: z.ZodString;
48
+ }, {
49
+ unit_key: z.ZodString;
50
+ }>, "strip", z.ZodTypeAny, {
51
+ name: string;
52
+ unit_key: string;
53
+ }, {
54
+ name: string;
55
+ unit_key: string;
56
+ }>;
57
+ export declare const facility_resource: z.ZodObject<z.objectUtil.extendShape<{
58
+ name: z.ZodString;
59
+ }, {
60
+ facility_key: z.ZodString;
61
+ }>, "strip", z.ZodTypeAny, {
62
+ name: string;
63
+ facility_key: string;
64
+ }, {
65
+ name: string;
66
+ facility_key: string;
67
+ }>;
68
+ export declare const building_resource: z.ZodObject<z.objectUtil.extendShape<{
69
+ name: z.ZodString;
70
+ }, {
71
+ building_key: z.ZodString;
72
+ }>, "strip", z.ZodTypeAny, {
73
+ name: string;
74
+ building_key: string;
75
+ }, {
76
+ name: string;
77
+ building_key: string;
78
+ }>;
79
+ export declare const listing_resource: z.ZodObject<z.objectUtil.extendShape<{
80
+ name: z.ZodString;
81
+ }, {
82
+ listing_key: z.ZodString;
83
+ }>, "strip", z.ZodTypeAny, {
84
+ name: string;
85
+ listing_key: string;
86
+ }, {
87
+ name: string;
88
+ listing_key: string;
89
+ }>;
90
+ export declare const location_resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
91
+ name: z.ZodString;
92
+ }, {
93
+ space_key: z.ZodString;
94
+ }>, "strip", z.ZodTypeAny, {
95
+ name: string;
96
+ space_key: string;
97
+ }, {
98
+ name: string;
99
+ space_key: string;
100
+ }>, z.ZodObject<z.objectUtil.extendShape<{
101
+ name: z.ZodString;
102
+ }, {
103
+ property_key: z.ZodString;
104
+ }>, "strip", z.ZodTypeAny, {
105
+ name: string;
106
+ property_key: string;
107
+ }, {
108
+ name: string;
109
+ property_key: string;
110
+ }>, z.ZodObject<z.objectUtil.extendShape<{
111
+ name: z.ZodString;
112
+ }, {
113
+ room_key: z.ZodString;
114
+ }>, "strip", z.ZodTypeAny, {
115
+ name: string;
116
+ room_key: string;
117
+ }, {
118
+ name: string;
119
+ room_key: string;
120
+ }>, z.ZodObject<z.objectUtil.extendShape<{
121
+ name: z.ZodString;
122
+ }, {
123
+ common_area_key: z.ZodString;
124
+ }>, "strip", z.ZodTypeAny, {
125
+ name: string;
126
+ common_area_key: string;
127
+ }, {
128
+ name: string;
129
+ common_area_key: string;
130
+ }>, z.ZodObject<z.objectUtil.extendShape<{
131
+ name: z.ZodString;
132
+ }, {
133
+ unit_key: z.ZodString;
134
+ }>, "strip", z.ZodTypeAny, {
135
+ name: string;
136
+ unit_key: string;
137
+ }, {
138
+ name: string;
139
+ unit_key: string;
140
+ }>, z.ZodObject<z.objectUtil.extendShape<{
141
+ name: z.ZodString;
142
+ }, {
143
+ facility_key: z.ZodString;
144
+ }>, "strip", z.ZodTypeAny, {
145
+ name: string;
146
+ facility_key: string;
147
+ }, {
148
+ name: string;
149
+ facility_key: string;
150
+ }>, z.ZodObject<z.objectUtil.extendShape<{
151
+ name: z.ZodString;
152
+ }, {
153
+ building_key: z.ZodString;
154
+ }>, "strip", z.ZodTypeAny, {
155
+ name: string;
156
+ building_key: string;
157
+ }, {
158
+ name: string;
159
+ building_key: string;
160
+ }>, z.ZodObject<z.objectUtil.extendShape<{
161
+ name: z.ZodString;
162
+ }, {
163
+ listing_key: z.ZodString;
164
+ }>, "strip", z.ZodTypeAny, {
165
+ name: string;
166
+ listing_key: string;
167
+ }, {
168
+ name: string;
169
+ listing_key: string;
170
+ }>]>;
171
+ export declare const location_key_aliases: z.ZodUnion<[z.ZodObject<{
172
+ space_key: z.ZodString;
173
+ }, "strip", z.ZodTypeAny, {
174
+ space_key: string;
175
+ }, {
176
+ space_key: string;
177
+ }>, z.ZodObject<{
178
+ property_key: z.ZodString;
179
+ }, "strip", z.ZodTypeAny, {
180
+ property_key: string;
181
+ }, {
182
+ property_key: string;
183
+ }>, z.ZodObject<{
184
+ room_key: z.ZodString;
185
+ }, "strip", z.ZodTypeAny, {
186
+ room_key: string;
187
+ }, {
188
+ room_key: string;
189
+ }>, z.ZodObject<{
190
+ common_area_key: z.ZodString;
191
+ }, "strip", z.ZodTypeAny, {
192
+ common_area_key: string;
193
+ }, {
194
+ common_area_key: string;
195
+ }>, z.ZodObject<{
196
+ unit_key: z.ZodString;
197
+ }, "strip", z.ZodTypeAny, {
198
+ unit_key: string;
199
+ }, {
200
+ unit_key: string;
201
+ }>, z.ZodObject<{
202
+ facility_key: z.ZodString;
203
+ }, "strip", z.ZodTypeAny, {
204
+ facility_key: string;
205
+ }, {
206
+ facility_key: string;
207
+ }>, z.ZodObject<{
208
+ building_key: z.ZodString;
209
+ }, "strip", z.ZodTypeAny, {
210
+ building_key: string;
211
+ }, {
212
+ building_key: string;
213
+ }>, z.ZodObject<{
214
+ listing_key: z.ZodString;
215
+ }, "strip", z.ZodTypeAny, {
216
+ listing_key: string;
217
+ }, {
218
+ listing_key: string;
219
+ }>]>;
220
+ export type NeutralResource = z.infer<typeof neutral_resource>;
221
+ export type PropertyResource = z.infer<typeof property_resource>;
222
+ export type RoomResource = z.infer<typeof room_resource>;
223
+ export type CommonAreaResource = z.infer<typeof common_area_resource>;
224
+ export type UnitResource = z.infer<typeof unit_resource>;
225
+ export type FacilityResource = z.infer<typeof facility_resource>;
226
+ export type BuildingResource = z.infer<typeof building_resource>;
227
+ export type ListingResource = z.infer<typeof listing_resource>;
228
+ export type LocationResource = z.infer<typeof location_resource>;
229
+ export type LocationKeyAliases = z.infer<typeof location_key_aliases>;
@@ -0,0 +1,55 @@
1
+ import { z } from 'zod';
2
+ // Base location resource with common fields
3
+ const base_location_resource = z.object({
4
+ name: z.string().describe('Your display name for this location resource.'),
5
+ });
6
+ // Location resource types with their key aliases
7
+ export const neutral_resource = base_location_resource.extend({
8
+ space_key: z.string().describe('Your unique identifier for the space.'),
9
+ });
10
+ export const property_resource = base_location_resource.extend({
11
+ property_key: z.string().describe('Your unique identifier for the property.'),
12
+ });
13
+ export const room_resource = base_location_resource.extend({
14
+ room_key: z.string().describe('Your unique identifier for the room.'),
15
+ });
16
+ export const common_area_resource = base_location_resource.extend({
17
+ common_area_key: z
18
+ .string()
19
+ .describe('Your unique identifier for the common area.'),
20
+ });
21
+ export const unit_resource = base_location_resource.extend({
22
+ unit_key: z.string().describe('Your unique identifier for the unit.'),
23
+ });
24
+ export const facility_resource = base_location_resource.extend({
25
+ facility_key: z.string().describe('Your unique identifier for the facility.'),
26
+ });
27
+ export const building_resource = base_location_resource.extend({
28
+ building_key: z.string().describe('Your unique identifier for the building.'),
29
+ });
30
+ export const listing_resource = base_location_resource.extend({
31
+ listing_key: z.string().describe('Your unique identifier for the listing.'),
32
+ });
33
+ // Union of all location resource types
34
+ export const location_resource = z.union([
35
+ neutral_resource,
36
+ property_resource,
37
+ room_resource,
38
+ common_area_resource,
39
+ unit_resource,
40
+ facility_resource,
41
+ building_resource,
42
+ listing_resource,
43
+ ]);
44
+ // All location key aliases for use in references
45
+ export const location_key_aliases = z.union([
46
+ z.object({ space_key: z.string() }),
47
+ z.object({ property_key: z.string() }),
48
+ z.object({ room_key: z.string() }),
49
+ z.object({ common_area_key: z.string() }),
50
+ z.object({ unit_key: z.string() }),
51
+ z.object({ facility_key: z.string() }),
52
+ z.object({ building_key: z.string() }),
53
+ z.object({ listing_key: z.string() }),
54
+ ]);
55
+ //# sourceMappingURL=location-resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-resources.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/location-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,4CAA4C;AAC5C,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAA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Optional<z.ZodString>;
5
+ phone_number: z.ZodOptional<z.ZodString>;
6
+ }, {
7
+ guest_key: z.ZodString;
8
+ }>, "strip", z.ZodTypeAny, {
9
+ name: string;
10
+ guest_key: string;
11
+ email_address?: string | undefined;
12
+ phone_number?: string | undefined;
13
+ }, {
14
+ name: string;
15
+ guest_key: string;
16
+ email_address?: string | undefined;
17
+ phone_number?: string | undefined;
18
+ }>;
19
+ export declare const tenant_resource: z.ZodObject<z.objectUtil.extendShape<{
20
+ name: z.ZodString;
21
+ email_address: z.ZodOptional<z.ZodString>;
22
+ phone_number: z.ZodOptional<z.ZodString>;
23
+ }, {
24
+ tenant_key: z.ZodString;
25
+ }>, "strip", z.ZodTypeAny, {
26
+ name: string;
27
+ tenant_key: string;
28
+ email_address?: string | undefined;
29
+ phone_number?: string | undefined;
30
+ }, {
31
+ name: string;
32
+ tenant_key: string;
33
+ email_address?: string | undefined;
34
+ phone_number?: string | undefined;
35
+ }>;
36
+ export declare const resident_resource: z.ZodObject<z.objectUtil.extendShape<{
37
+ name: z.ZodString;
38
+ email_address: z.ZodOptional<z.ZodString>;
39
+ phone_number: z.ZodOptional<z.ZodString>;
40
+ }, {
41
+ resident_key: z.ZodString;
42
+ }>, "strip", z.ZodTypeAny, {
43
+ name: string;
44
+ resident_key: string;
45
+ email_address?: string | undefined;
46
+ phone_number?: string | undefined;
47
+ }, {
48
+ name: string;
49
+ resident_key: string;
50
+ email_address?: string | undefined;
51
+ phone_number?: string | undefined;
52
+ }>;
53
+ export declare const user_resource: z.ZodObject<z.objectUtil.extendShape<{
54
+ name: z.ZodString;
55
+ email_address: z.ZodOptional<z.ZodString>;
56
+ phone_number: z.ZodOptional<z.ZodString>;
57
+ }, {
58
+ user_key: z.ZodString;
59
+ }>, "strip", z.ZodTypeAny, {
60
+ name: string;
61
+ user_key: string;
62
+ email_address?: string | undefined;
63
+ phone_number?: string | undefined;
64
+ }, {
65
+ name: string;
66
+ user_key: string;
67
+ email_address?: string | undefined;
68
+ phone_number?: string | undefined;
69
+ }>;
70
+ export declare const user_identity_resource: z.ZodObject<z.objectUtil.extendShape<{
71
+ name: z.ZodString;
72
+ email_address: z.ZodOptional<z.ZodString>;
73
+ phone_number: z.ZodOptional<z.ZodString>;
74
+ }, {
75
+ user_identity_key: z.ZodString;
76
+ }>, "strip", z.ZodTypeAny, {
77
+ name: string;
78
+ user_identity_key: string;
79
+ email_address?: string | undefined;
80
+ phone_number?: string | undefined;
81
+ }, {
82
+ name: string;
83
+ user_identity_key: string;
84
+ email_address?: string | undefined;
85
+ phone_number?: string | undefined;
86
+ }>;
87
+ export declare const user_identity_resource_union: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
88
+ name: z.ZodString;
89
+ email_address: z.ZodOptional<z.ZodString>;
90
+ phone_number: z.ZodOptional<z.ZodString>;
91
+ }, {
92
+ guest_key: z.ZodString;
93
+ }>, "strip", z.ZodTypeAny, {
94
+ name: string;
95
+ guest_key: string;
96
+ email_address?: string | undefined;
97
+ phone_number?: string | undefined;
98
+ }, {
99
+ name: string;
100
+ guest_key: string;
101
+ email_address?: string | undefined;
102
+ phone_number?: string | undefined;
103
+ }>, z.ZodObject<z.objectUtil.extendShape<{
104
+ name: z.ZodString;
105
+ email_address: z.ZodOptional<z.ZodString>;
106
+ phone_number: z.ZodOptional<z.ZodString>;
107
+ }, {
108
+ tenant_key: z.ZodString;
109
+ }>, "strip", z.ZodTypeAny, {
110
+ name: string;
111
+ tenant_key: string;
112
+ email_address?: string | undefined;
113
+ phone_number?: string | undefined;
114
+ }, {
115
+ name: string;
116
+ tenant_key: string;
117
+ email_address?: string | undefined;
118
+ phone_number?: string | undefined;
119
+ }>, z.ZodObject<z.objectUtil.extendShape<{
120
+ name: z.ZodString;
121
+ email_address: z.ZodOptional<z.ZodString>;
122
+ phone_number: z.ZodOptional<z.ZodString>;
123
+ }, {
124
+ resident_key: z.ZodString;
125
+ }>, "strip", z.ZodTypeAny, {
126
+ name: string;
127
+ resident_key: string;
128
+ email_address?: string | undefined;
129
+ phone_number?: string | undefined;
130
+ }, {
131
+ name: string;
132
+ resident_key: string;
133
+ email_address?: string | undefined;
134
+ phone_number?: string | undefined;
135
+ }>, z.ZodObject<z.objectUtil.extendShape<{
136
+ name: z.ZodString;
137
+ email_address: z.ZodOptional<z.ZodString>;
138
+ phone_number: z.ZodOptional<z.ZodString>;
139
+ }, {
140
+ user_key: z.ZodString;
141
+ }>, "strip", z.ZodTypeAny, {
142
+ name: string;
143
+ user_key: string;
144
+ email_address?: string | undefined;
145
+ phone_number?: string | undefined;
146
+ }, {
147
+ name: string;
148
+ user_key: string;
149
+ email_address?: string | undefined;
150
+ phone_number?: string | undefined;
151
+ }>, z.ZodObject<z.objectUtil.extendShape<{
152
+ name: z.ZodString;
153
+ email_address: z.ZodOptional<z.ZodString>;
154
+ phone_number: z.ZodOptional<z.ZodString>;
155
+ }, {
156
+ user_identity_key: z.ZodString;
157
+ }>, "strip", z.ZodTypeAny, {
158
+ name: string;
159
+ user_identity_key: string;
160
+ email_address?: string | undefined;
161
+ phone_number?: string | undefined;
162
+ }, {
163
+ name: string;
164
+ user_identity_key: string;
165
+ email_address?: string | undefined;
166
+ phone_number?: string | undefined;
167
+ }>]>;
168
+ export declare const user_identity_key_aliases: z.ZodUnion<[z.ZodObject<{
169
+ guest_key: z.ZodString;
170
+ }, "strip", z.ZodTypeAny, {
171
+ guest_key: string;
172
+ }, {
173
+ guest_key: string;
174
+ }>, z.ZodObject<{
175
+ tenant_key: z.ZodString;
176
+ }, "strip", z.ZodTypeAny, {
177
+ tenant_key: string;
178
+ }, {
179
+ tenant_key: string;
180
+ }>, z.ZodObject<{
181
+ resident_key: z.ZodString;
182
+ }, "strip", z.ZodTypeAny, {
183
+ resident_key: string;
184
+ }, {
185
+ resident_key: string;
186
+ }>, z.ZodObject<{
187
+ user_key: z.ZodString;
188
+ }, "strip", z.ZodTypeAny, {
189
+ user_key: string;
190
+ }, {
191
+ user_key: string;
192
+ }>, z.ZodObject<{
193
+ user_identity_key: z.ZodString;
194
+ }, "strip", z.ZodTypeAny, {
195
+ user_identity_key: string;
196
+ }, {
197
+ user_identity_key: string;
198
+ }>]>;
199
+ export type GuestResource = z.infer<typeof guest_resource>;
200
+ export type TenantResource = z.infer<typeof tenant_resource>;
201
+ export type ResidentResource = z.infer<typeof resident_resource>;
202
+ export type UserResource = z.infer<typeof user_resource>;
203
+ export type UserIdentityResource = z.infer<typeof user_identity_resource>;
204
+ export type UserIdentityResourceUnion = z.infer<typeof user_identity_resource_union>;
205
+ export type UserIdentityKeyAliases = z.infer<typeof user_identity_key_aliases>;
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ // Base user identity resource with common fields
3
+ const base_user_identity_resource = z.object({
4
+ name: z
5
+ .string()
6
+ .describe('Your display name for this user identity resource.'),
7
+ email_address: z
8
+ .string()
9
+ .optional()
10
+ .describe('Email address associated with the user identity.'),
11
+ phone_number: z
12
+ .string()
13
+ .optional()
14
+ .describe('Phone number associated with the user identity.'),
15
+ });
16
+ // User identity resource types with their key aliases
17
+ export const guest_resource = base_user_identity_resource.extend({
18
+ guest_key: z.string().describe('Your unique identifier for the guest.'),
19
+ });
20
+ export const tenant_resource = base_user_identity_resource.extend({
21
+ tenant_key: z.string().describe('Your unique identifier for the tenant.'),
22
+ });
23
+ export const resident_resource = base_user_identity_resource.extend({
24
+ resident_key: z.string().describe('Your unique identifier for the resident.'),
25
+ });
26
+ export const user_resource = base_user_identity_resource.extend({
27
+ user_key: z.string().describe('Your unique identifier for the user.'),
28
+ });
29
+ export const user_identity_resource = base_user_identity_resource.extend({
30
+ user_identity_key: z
31
+ .string()
32
+ .describe('Your unique identifier for the user identity.'),
33
+ });
34
+ // Union of all user identity resource types
35
+ export const user_identity_resource_union = z.union([
36
+ guest_resource,
37
+ tenant_resource,
38
+ resident_resource,
39
+ user_resource,
40
+ user_identity_resource,
41
+ ]);
42
+ // All user identity key aliases for use in references
43
+ export const user_identity_key_aliases = z.union([
44
+ z.object({ guest_key: z.string() }),
45
+ z.object({ tenant_key: z.string() }),
46
+ z.object({ resident_key: z.string() }),
47
+ z.object({ user_key: z.string() }),
48
+ z.object({ user_identity_key: z.string() }),
49
+ ]);
50
+ //# sourceMappingURL=user-identity-resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-identity-resources.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/user-identity-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,iDAAiD;AACjD,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CAAC,oDAAoD,CAAC;IACjE,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,iDAAiD,CAAC;CAC/D,CAAC,CAAA;AAEF,sDAAsD;AACtD,MAAM,CAAC,MAAM,cAAc,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAC/D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;CACxE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAChE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;CAC1E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAClE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;CAC9E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAC9D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;CACtE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,2BAA2B,CAAC,MAAM,CAAC;IACvE,iBAAiB,EAAE,CAAC;SACjB,MAAM,EAAE;SACR,QAAQ,CAAC,+CAA+C,CAAC;CAC7D,CAAC,CAAA;AAEF,4CAA4C;AAC5C,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC;IAClD,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,sBAAsB;CACvB,CAAC,CAAA;AAEF,sDAAsD;AACtD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC/C,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;IACnC,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;IACpC,CAAC,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;IACtC,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;IAClC,CAAC,CAAC,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;CAC5C,CAAC,CAAA"}
@@ -8,6 +8,10 @@ export * from './client-sessions/index.js';
8
8
  export * from './connect-webviews/index.js';
9
9
  export * from './connected-accounts/index.js';
10
10
  export * from './custom-metadata.js';
11
+ export * from './customer/access-grant-resources.js';
12
+ export * from './customer/index.js';
13
+ export * from './customer/location-resources.js';
14
+ export * from './customer/user-identity-resources.js';
11
15
  export * from './devices/index.js';
12
16
  export * from './events/index.js';
13
17
  export * from './instant-keys/index.js';