@seamapi/types 1.1102.0 → 1.1104.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.
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +37 -21
- package/lib/seam/connect/models/access-grants/access-grant.js +4 -3
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.js +2 -2
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +38 -8
- package/lib/seam/connect/models/acs/acs-entrance.js +22 -9
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +75 -4
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +32 -30
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +395 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +10 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/pause-speaker-playback.d.ts +87 -0
- package/lib/seam/connect/models/action-attempts/pause-speaker-playback.js +37 -0
- package/lib/seam/connect/models/action-attempts/pause-speaker-playback.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/play-speaker-chime.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/play-speaker-chime.js +31 -0
- package/lib/seam/connect/models/action-attempts/play-speaker-chime.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/resume-speaker-playback.d.ts +87 -0
- package/lib/seam/connect/models/action-attempts/resume-speaker-playback.js +37 -0
- package/lib/seam/connect/models/action-attempts/resume-speaker-playback.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-mute.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-mute.js +31 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-mute.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-volume.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-volume.js +31 -0
- package/lib/seam/connect/models/action-attempts/set-speaker-volume.js.map +1 -0
- package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +3 -3
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +3 -3
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +95 -1
- package/lib/seam/connect/models/devices/capability-properties/index.js +4 -2
- package/lib/seam/connect/models/devices/capability-properties/index.js.map +1 -1
- package/lib/seam/connect/models/devices/capability-properties/speaker.d.ts +98 -0
- package/lib/seam/connect/models/devices/capability-properties/speaker.js +61 -0
- package/lib/seam/connect/models/devices/capability-properties/speaker.js.map +1 -0
- package/lib/seam/connect/models/devices/device-metadata.d.ts +33 -0
- package/lib/seam/connect/models/devices/device-metadata.js +26 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +12 -0
- package/lib/seam/connect/models/devices/device-provider.js +1 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +7 -1
- package/lib/seam/connect/models/devices/device-type.js +8 -0
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +200 -3
- package/lib/seam/connect/models/devices/device.js +16 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.d.ts +1126 -22
- package/lib/seam/connect/models/devices/phone.js +4 -19
- package/lib/seam/connect/models/devices/phone.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +144 -3
- package/lib/seam/connect/models/phones/phone-session.d.ts +28 -26
- package/lib/seam/connect/models/provider-capability.d.ts +1 -1
- package/lib/seam/connect/models/provider-capability.js +1 -0
- package/lib/seam/connect/models/provider-capability.js.map +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.js +4 -4
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.js +2006 -136
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +8195 -142
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/enums.ts +2 -0
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +13 -5
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +2 -2
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +36 -17
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +44 -34
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +10 -0
- package/src/lib/seam/connect/models/action-attempts/pause-speaker-playback.ts +54 -0
- package/src/lib/seam/connect/models/action-attempts/play-speaker-chime.ts +46 -0
- package/src/lib/seam/connect/models/action-attempts/resume-speaker-playback.ts +54 -0
- package/src/lib/seam/connect/models/action-attempts/set-speaker-mute.ts +43 -0
- package/src/lib/seam/connect/models/action-attempts/set-speaker-volume.ts +46 -0
- package/src/lib/seam/connect/models/devices/capability-properties/index.ts +9 -1
- package/src/lib/seam/connect/models/devices/capability-properties/speaker.ts +76 -0
- package/src/lib/seam/connect/models/devices/device-metadata.ts +29 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +1 -0
- package/src/lib/seam/connect/models/devices/device-type.ts +16 -0
- package/src/lib/seam/connect/models/devices/device.ts +18 -0
- package/src/lib/seam/connect/models/devices/phone.ts +4 -27
- package/src/lib/seam/connect/models/provider-capability.ts +1 -0
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +4 -4
- package/src/lib/seam/connect/openapi.ts +2537 -407
- package/src/lib/seam/connect/route-types.ts +9097 -128
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as z from 'zod/v3';
|
|
2
|
-
import { datetime } from '../datetime.js';
|
|
3
2
|
import { device } from './device.js';
|
|
4
3
|
import { phone_device_type } from './device-type.js';
|
|
5
4
|
import { phone_specific_properties } from './phone-properties.js';
|
|
@@ -11,6 +10,8 @@ const basePhoneDeviceSchema = device.pick({
|
|
|
11
10
|
workspace_id: true,
|
|
12
11
|
created_at: true,
|
|
13
12
|
custom_metadata: true,
|
|
13
|
+
errors: true,
|
|
14
|
+
warnings: true,
|
|
14
15
|
});
|
|
15
16
|
export const phone = z.object({
|
|
16
17
|
device_id: basePhoneDeviceSchema.shape.device_id.describe(`ID of the phone.
|
|
@@ -30,24 +31,8 @@ export const phone = z.object({
|
|
|
30
31
|
custom_metadata: basePhoneDeviceSchema.shape.custom_metadata
|
|
31
32
|
.describe(`Optional [custom metadata](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone.
|
|
32
33
|
`),
|
|
33
|
-
errors:
|
|
34
|
-
|
|
35
|
-
error_code: z
|
|
36
|
-
.string()
|
|
37
|
-
.describe('Unique identifier of the type of error.'),
|
|
38
|
-
message: z.string().describe('Detailed description of the error.'),
|
|
39
|
-
created_at: datetime.describe('Date and time at which Seam created the error.'),
|
|
40
|
-
}))
|
|
41
|
-
.describe('Errors associated with the phone.'),
|
|
42
|
-
warnings: z
|
|
43
|
-
.array(z.object({
|
|
44
|
-
warning_code: z
|
|
45
|
-
.string()
|
|
46
|
-
.describe('Unique identifier of the type of warning.'),
|
|
47
|
-
message: z.string().describe('Detailed description of the warning.'),
|
|
48
|
-
created_at: datetime.describe('Date and time at which Seam created the warning.'),
|
|
49
|
-
}))
|
|
50
|
-
.describe('Warnings associated with the phone.'),
|
|
34
|
+
errors: basePhoneDeviceSchema.shape.errors,
|
|
35
|
+
warnings: basePhoneDeviceSchema.shape.warnings,
|
|
51
36
|
device_type: phone_device_type.describe('Type of the phone device, such as `ios_phone` or `android_phone`.'),
|
|
52
37
|
properties: phone_specific_properties.describe('Properties of the phone.'),
|
|
53
38
|
}).describe(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/phone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"phone.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/phone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AAEjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AAEjE,MAAM,qBAAqB,GAAG,MAAM,CAAC,IAAI,CAAC;IACxC,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,eAAe,EAAE,IAAI;IACrB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;CACf,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,SAAS,EAAE,qBAAqB,CAAC,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;WACjD,CAAC;IACV,QAAQ,EAAE,qBAAqB,CAAC,KAAK,CAAC,QAAQ;SAC3C,QAAQ,CAAC;GACX,CAAC;IACF,YAAY,EAAE,qBAAqB,CAAC,KAAK,CAAC,YAAY;SACnD,QAAQ,CAAC;GACX,CAAC;IACF,YAAY,EAAE,qBAAqB,CAAC,KAAK,CAAC,YAAY;SACnD,QAAQ,CAAC;GACX,CAAC;IACF,UAAU,EAAE,qBAAqB,CAAC,KAAK,CAAC,UAAU;SAC/C,QAAQ,CAAC;GACX,CAAC;IACF,eAAe,EAAE,qBAAqB,CAAC,KAAK,CAAC,eAAe;SACzD,QAAQ,CAAC;GACX,CAAC;IAEF,MAAM,EAAE,qBAAqB,CAAC,KAAK,CAAC,MAAM;IAC1C,QAAQ,EAAE,qBAAqB,CAAC,KAAK,CAAC,QAAQ;IAC9C,WAAW,EAAE,iBAAiB,CAAC,QAAQ,CACrC,mEAAmE,CACpE;IACD,UAAU,EAAE,yBAAyB,CAAC,QAAQ,CAAC,0BAA0B,CAAC;CAC3E,CAAC,CAAC,QAAQ,CAAC;;;;;;;;CAQX,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod/v3';
|
|
2
2
|
export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
3
3
|
device_id: z.ZodString;
|
|
4
|
-
device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock" | "ultraloq_lock" | "yacan_lock" | "keyincode_lock" | "omnitec_lock" | "kisi_lock" | "aqara_lock"]>, z.ZodEnum<["keynest_key"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>, z.ZodEnum<["ring_camera" | "tapo_camera" | "arlo_camera" | "reolink_camera"]>]>;
|
|
4
|
+
device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock" | "ultraloq_lock" | "yacan_lock" | "keyincode_lock" | "omnitec_lock" | "kisi_lock" | "aqara_lock"]>, z.ZodEnum<["keynest_key"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>, z.ZodEnum<["ring_camera" | "tapo_camera" | "arlo_camera" | "reolink_camera"]>, z.ZodEnum<["sonos_speaker"]>]>;
|
|
5
5
|
space_ids: z.ZodArray<z.ZodString, "many">;
|
|
6
6
|
nickname: z.ZodOptional<z.ZodString>;
|
|
7
7
|
display_name: z.ZodString;
|
|
@@ -1272,6 +1272,25 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
1272
1272
|
model_type?: number | undefined;
|
|
1273
1273
|
position_id?: string | null | undefined;
|
|
1274
1274
|
}>>;
|
|
1275
|
+
sonos_metadata: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1276
|
+
household_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1277
|
+
player_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1278
|
+
model_display_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1279
|
+
software_version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1280
|
+
bonded_member_models: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1281
|
+
}, "strip", z.ZodTypeAny, {
|
|
1282
|
+
household_id?: string | undefined;
|
|
1283
|
+
player_id?: string | undefined;
|
|
1284
|
+
model_display_name?: string | undefined;
|
|
1285
|
+
software_version?: string | undefined;
|
|
1286
|
+
bonded_member_models?: string[] | undefined;
|
|
1287
|
+
}, {
|
|
1288
|
+
household_id?: string | undefined;
|
|
1289
|
+
player_id?: string | undefined;
|
|
1290
|
+
model_display_name?: string | undefined;
|
|
1291
|
+
software_version?: string | undefined;
|
|
1292
|
+
bonded_member_models?: string[] | undefined;
|
|
1293
|
+
}>>>;
|
|
1275
1294
|
}, "strip", z.ZodTypeAny, {
|
|
1276
1295
|
ecobee_metadata?: {
|
|
1277
1296
|
device_name?: string | undefined;
|
|
@@ -1612,6 +1631,13 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
1612
1631
|
model_type?: number | undefined;
|
|
1613
1632
|
position_id?: string | null | undefined;
|
|
1614
1633
|
} | undefined;
|
|
1634
|
+
sonos_metadata?: {
|
|
1635
|
+
household_id?: string | undefined;
|
|
1636
|
+
player_id?: string | undefined;
|
|
1637
|
+
model_display_name?: string | undefined;
|
|
1638
|
+
software_version?: string | undefined;
|
|
1639
|
+
bonded_member_models?: string[] | undefined;
|
|
1640
|
+
} | undefined;
|
|
1615
1641
|
}, {
|
|
1616
1642
|
ecobee_metadata?: {
|
|
1617
1643
|
device_name?: string | undefined;
|
|
@@ -1952,6 +1978,13 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
1952
1978
|
model_type?: number | undefined;
|
|
1953
1979
|
position_id?: string | null | undefined;
|
|
1954
1980
|
} | undefined;
|
|
1981
|
+
sonos_metadata?: {
|
|
1982
|
+
household_id?: string | undefined;
|
|
1983
|
+
player_id?: string | undefined;
|
|
1984
|
+
model_display_name?: string | undefined;
|
|
1985
|
+
software_version?: string | undefined;
|
|
1986
|
+
bonded_member_models?: string[] | undefined;
|
|
1987
|
+
} | undefined;
|
|
1955
1988
|
}>>, z.ZodIntersection<z.ZodObject<{
|
|
1956
1989
|
code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1957
1990
|
constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future", "no_ascending_or_descending_sequence", "at_least_three_unique_digits", "cannot_contain_089", "cannot_contain_0789", "unique_first_four_digits", "no_all_same_digits"]>;
|
|
@@ -2085,6 +2118,64 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
2085
2118
|
door_open: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2086
2119
|
auto_lock_enabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2087
2120
|
auto_lock_delay_seconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2121
|
+
} & {
|
|
2122
|
+
speaker: z.ZodOptional<z.ZodObject<{
|
|
2123
|
+
volume: z.ZodNumber;
|
|
2124
|
+
is_muted: z.ZodBoolean;
|
|
2125
|
+
has_fixed_volume: z.ZodBoolean;
|
|
2126
|
+
min_volume: z.ZodNumber;
|
|
2127
|
+
max_volume: z.ZodNumber;
|
|
2128
|
+
volume_step: z.ZodNumber;
|
|
2129
|
+
playback_state: z.ZodEnum<["playing", "paused", "idle", "buffering", "unknown"]>;
|
|
2130
|
+
now_playing: z.ZodOptional<z.ZodObject<{
|
|
2131
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2132
|
+
artist: z.ZodOptional<z.ZodString>;
|
|
2133
|
+
album: z.ZodOptional<z.ZodString>;
|
|
2134
|
+
}, "strip", z.ZodTypeAny, {
|
|
2135
|
+
title?: string | undefined;
|
|
2136
|
+
artist?: string | undefined;
|
|
2137
|
+
album?: string | undefined;
|
|
2138
|
+
}, {
|
|
2139
|
+
title?: string | undefined;
|
|
2140
|
+
artist?: string | undefined;
|
|
2141
|
+
album?: string | undefined;
|
|
2142
|
+
}>>;
|
|
2143
|
+
grouped_with_device_ids: z.ZodArray<z.ZodString, "many">;
|
|
2144
|
+
supports_chime: z.ZodBoolean;
|
|
2145
|
+
volume_reported_at: z.ZodOptional<z.ZodString>;
|
|
2146
|
+
}, "strip", z.ZodTypeAny, {
|
|
2147
|
+
volume: number;
|
|
2148
|
+
is_muted: boolean;
|
|
2149
|
+
has_fixed_volume: boolean;
|
|
2150
|
+
min_volume: number;
|
|
2151
|
+
max_volume: number;
|
|
2152
|
+
volume_step: number;
|
|
2153
|
+
playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
|
|
2154
|
+
grouped_with_device_ids: string[];
|
|
2155
|
+
supports_chime: boolean;
|
|
2156
|
+
now_playing?: {
|
|
2157
|
+
title?: string | undefined;
|
|
2158
|
+
artist?: string | undefined;
|
|
2159
|
+
album?: string | undefined;
|
|
2160
|
+
} | undefined;
|
|
2161
|
+
volume_reported_at?: string | undefined;
|
|
2162
|
+
}, {
|
|
2163
|
+
volume: number;
|
|
2164
|
+
is_muted: boolean;
|
|
2165
|
+
has_fixed_volume: boolean;
|
|
2166
|
+
min_volume: number;
|
|
2167
|
+
max_volume: number;
|
|
2168
|
+
volume_step: number;
|
|
2169
|
+
playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
|
|
2170
|
+
grouped_with_device_ids: string[];
|
|
2171
|
+
supports_chime: boolean;
|
|
2172
|
+
now_playing?: {
|
|
2173
|
+
title?: string | undefined;
|
|
2174
|
+
artist?: string | undefined;
|
|
2175
|
+
album?: string | undefined;
|
|
2176
|
+
} | undefined;
|
|
2177
|
+
volume_reported_at?: string | undefined;
|
|
2178
|
+
}>>;
|
|
2088
2179
|
}, "strip", z.ZodTypeAny, {
|
|
2089
2180
|
code_constraints?: ({
|
|
2090
2181
|
constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits" | "cannot_contain_089" | "cannot_contain_0789" | "unique_first_four_digits" | "no_all_same_digits";
|
|
@@ -2133,6 +2224,23 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
2133
2224
|
door_open?: boolean | undefined;
|
|
2134
2225
|
auto_lock_enabled?: boolean | undefined;
|
|
2135
2226
|
auto_lock_delay_seconds?: number | undefined;
|
|
2227
|
+
speaker?: {
|
|
2228
|
+
volume: number;
|
|
2229
|
+
is_muted: boolean;
|
|
2230
|
+
has_fixed_volume: boolean;
|
|
2231
|
+
min_volume: number;
|
|
2232
|
+
max_volume: number;
|
|
2233
|
+
volume_step: number;
|
|
2234
|
+
playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
|
|
2235
|
+
grouped_with_device_ids: string[];
|
|
2236
|
+
supports_chime: boolean;
|
|
2237
|
+
now_playing?: {
|
|
2238
|
+
title?: string | undefined;
|
|
2239
|
+
artist?: string | undefined;
|
|
2240
|
+
album?: string | undefined;
|
|
2241
|
+
} | undefined;
|
|
2242
|
+
volume_reported_at?: string | undefined;
|
|
2243
|
+
} | undefined;
|
|
2136
2244
|
}, {
|
|
2137
2245
|
code_constraints?: ({
|
|
2138
2246
|
constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits" | "cannot_contain_089" | "cannot_contain_0789" | "unique_first_four_digits" | "no_all_same_digits";
|
|
@@ -2181,6 +2289,23 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
2181
2289
|
door_open?: boolean | undefined;
|
|
2182
2290
|
auto_lock_enabled?: boolean | undefined;
|
|
2183
2291
|
auto_lock_delay_seconds?: number | undefined;
|
|
2292
|
+
speaker?: {
|
|
2293
|
+
volume: number;
|
|
2294
|
+
is_muted: boolean;
|
|
2295
|
+
has_fixed_volume: boolean;
|
|
2296
|
+
min_volume: number;
|
|
2297
|
+
max_volume: number;
|
|
2298
|
+
volume_step: number;
|
|
2299
|
+
playback_state: "unknown" | "playing" | "paused" | "idle" | "buffering";
|
|
2300
|
+
grouped_with_device_ids: string[];
|
|
2301
|
+
supports_chime: boolean;
|
|
2302
|
+
now_playing?: {
|
|
2303
|
+
title?: string | undefined;
|
|
2304
|
+
artist?: string | undefined;
|
|
2305
|
+
album?: string | undefined;
|
|
2306
|
+
} | undefined;
|
|
2307
|
+
volume_reported_at?: string | undefined;
|
|
2308
|
+
} | undefined;
|
|
2184
2309
|
}>, z.ZodObject<{
|
|
2185
2310
|
temperature_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
2186
2311
|
temperature_celsius: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3611,6 +3736,10 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
3611
3736
|
can_simulate_paid_subscription: z.ZodOptional<z.ZodBoolean>;
|
|
3612
3737
|
can_configure_auto_lock: z.ZodOptional<z.ZodBoolean>;
|
|
3613
3738
|
can_stream_live_video: z.ZodOptional<z.ZodBoolean>;
|
|
3739
|
+
can_set_speaker_volume: z.ZodOptional<z.ZodBoolean>;
|
|
3740
|
+
can_mute_speaker: z.ZodOptional<z.ZodBoolean>;
|
|
3741
|
+
can_pause_speaker_playback: z.ZodOptional<z.ZodBoolean>;
|
|
3742
|
+
can_play_speaker_chime: z.ZodOptional<z.ZodBoolean>;
|
|
3614
3743
|
}, "display_name" | "device_id" | "workspace_id" | "created_at" | "errors" | "connected_account_id" | "warnings" | "custom_metadata" | "device_type" | "capabilities_supported" | "location"> & {
|
|
3615
3744
|
is_managed: z.ZodLiteral<false>;
|
|
3616
3745
|
properties: z.ZodObject<Pick<{
|
|
@@ -3770,6 +3899,10 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
3770
3899
|
can_simulate_paid_subscription: z.ZodOptional<z.ZodBoolean>;
|
|
3771
3900
|
can_configure_auto_lock: z.ZodOptional<z.ZodBoolean>;
|
|
3772
3901
|
can_stream_live_video: z.ZodOptional<z.ZodBoolean>;
|
|
3902
|
+
can_set_speaker_volume: z.ZodOptional<z.ZodBoolean>;
|
|
3903
|
+
can_mute_speaker: z.ZodOptional<z.ZodBoolean>;
|
|
3904
|
+
can_pause_speaker_playback: z.ZodOptional<z.ZodBoolean>;
|
|
3905
|
+
can_play_speaker_chime: z.ZodOptional<z.ZodBoolean>;
|
|
3773
3906
|
}, "strip", z.ZodTypeAny, {
|
|
3774
3907
|
display_name: string;
|
|
3775
3908
|
device_id: string;
|
|
@@ -3994,7 +4127,7 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
3994
4127
|
max_active_access_code_count: number;
|
|
3995
4128
|
})[];
|
|
3996
4129
|
custom_metadata: Record<string, string | boolean>;
|
|
3997
|
-
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock" | "ultraloq_lock" | "yacan_lock" | "keyincode_lock" | "omnitec_lock" | "kisi_lock" | "aqara_lock") | "keynest_key" | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone") | ("ring_camera" | "tapo_camera" | "arlo_camera" | "reolink_camera");
|
|
4130
|
+
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock" | "ultraloq_lock" | "yacan_lock" | "keyincode_lock" | "omnitec_lock" | "kisi_lock" | "aqara_lock") | "keynest_key" | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone") | ("ring_camera" | "tapo_camera" | "arlo_camera" | "reolink_camera") | "sonos_speaker";
|
|
3998
4131
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
3999
4132
|
properties: {
|
|
4000
4133
|
name: string;
|
|
@@ -4048,6 +4181,10 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
4048
4181
|
can_simulate_paid_subscription?: boolean | undefined;
|
|
4049
4182
|
can_configure_auto_lock?: boolean | undefined;
|
|
4050
4183
|
can_stream_live_video?: boolean | undefined;
|
|
4184
|
+
can_set_speaker_volume?: boolean | undefined;
|
|
4185
|
+
can_mute_speaker?: boolean | undefined;
|
|
4186
|
+
can_pause_speaker_playback?: boolean | undefined;
|
|
4187
|
+
can_play_speaker_chime?: boolean | undefined;
|
|
4051
4188
|
location?: {
|
|
4052
4189
|
time_zone?: string | undefined;
|
|
4053
4190
|
location_name?: string | undefined;
|
|
@@ -4278,7 +4415,7 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
4278
4415
|
max_active_access_code_count: number;
|
|
4279
4416
|
})[];
|
|
4280
4417
|
custom_metadata: Record<string, string | boolean>;
|
|
4281
|
-
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock" | "ultraloq_lock" | "yacan_lock" | "keyincode_lock" | "omnitec_lock" | "kisi_lock" | "aqara_lock") | "keynest_key" | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone") | ("ring_camera" | "tapo_camera" | "arlo_camera" | "reolink_camera");
|
|
4418
|
+
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock" | "ultraloq_lock" | "yacan_lock" | "keyincode_lock" | "omnitec_lock" | "kisi_lock" | "aqara_lock") | "keynest_key" | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone") | ("ring_camera" | "tapo_camera" | "arlo_camera" | "reolink_camera") | "sonos_speaker";
|
|
4282
4419
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
4283
4420
|
properties: {
|
|
4284
4421
|
name: string;
|
|
@@ -4332,6 +4469,10 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
4332
4469
|
can_simulate_paid_subscription?: boolean | undefined;
|
|
4333
4470
|
can_configure_auto_lock?: boolean | undefined;
|
|
4334
4471
|
can_stream_live_video?: boolean | undefined;
|
|
4472
|
+
can_set_speaker_volume?: boolean | undefined;
|
|
4473
|
+
can_mute_speaker?: boolean | undefined;
|
|
4474
|
+
can_pause_speaker_playback?: boolean | undefined;
|
|
4475
|
+
can_play_speaker_chime?: boolean | undefined;
|
|
4335
4476
|
location?: {
|
|
4336
4477
|
time_zone?: string | undefined;
|
|
4337
4478
|
location_name?: string | undefined;
|
|
@@ -219,19 +219,20 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
219
219
|
created_at: z.ZodString;
|
|
220
220
|
display_name: z.ZodString;
|
|
221
221
|
connected_account_id: z.ZodString;
|
|
222
|
-
errors: z.ZodArray<z.ZodObject<{
|
|
223
|
-
error_code: z.ZodString;
|
|
224
|
-
message: z.ZodString;
|
|
222
|
+
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
225
223
|
created_at: z.ZodString;
|
|
224
|
+
message: z.ZodString;
|
|
225
|
+
} & {
|
|
226
|
+
error_code: z.ZodLiteral<"entrance_removed">;
|
|
226
227
|
}, "strip", z.ZodTypeAny, {
|
|
227
228
|
message: string;
|
|
228
229
|
created_at: string;
|
|
229
|
-
error_code:
|
|
230
|
+
error_code: "entrance_removed";
|
|
230
231
|
}, {
|
|
231
232
|
message: string;
|
|
232
233
|
created_at: string;
|
|
233
|
-
error_code:
|
|
234
|
-
}>, "many">;
|
|
234
|
+
error_code: "entrance_removed";
|
|
235
|
+
}>]>, "many">;
|
|
235
236
|
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
236
237
|
created_at: z.ZodString;
|
|
237
238
|
message: z.ZodString;
|
|
@@ -520,7 +521,7 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
520
521
|
errors: {
|
|
521
522
|
message: string;
|
|
522
523
|
created_at: string;
|
|
523
|
-
error_code:
|
|
524
|
+
error_code: "entrance_removed";
|
|
524
525
|
}[];
|
|
525
526
|
connected_account_id: string;
|
|
526
527
|
warnings: ({
|
|
@@ -632,7 +633,7 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
632
633
|
errors: {
|
|
633
634
|
message: string;
|
|
634
635
|
created_at: string;
|
|
635
|
-
error_code:
|
|
636
|
+
error_code: "entrance_removed";
|
|
636
637
|
}[];
|
|
637
638
|
connected_account_id: string;
|
|
638
639
|
warnings: ({
|
|
@@ -790,7 +791,7 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
790
791
|
errors: {
|
|
791
792
|
message: string;
|
|
792
793
|
created_at: string;
|
|
793
|
-
error_code:
|
|
794
|
+
error_code: "entrance_removed";
|
|
794
795
|
}[];
|
|
795
796
|
connected_account_id: string;
|
|
796
797
|
warnings: ({
|
|
@@ -985,7 +986,7 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
985
986
|
errors: {
|
|
986
987
|
message: string;
|
|
987
988
|
created_at: string;
|
|
988
|
-
error_code:
|
|
989
|
+
error_code: "entrance_removed";
|
|
989
990
|
}[];
|
|
990
991
|
connected_account_id: string;
|
|
991
992
|
warnings: ({
|
|
@@ -1182,7 +1183,7 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
1182
1183
|
errors: {
|
|
1183
1184
|
message: string;
|
|
1184
1185
|
created_at: string;
|
|
1185
|
-
error_code:
|
|
1186
|
+
error_code: "entrance_removed";
|
|
1186
1187
|
}[];
|
|
1187
1188
|
connected_account_id: string;
|
|
1188
1189
|
warnings: ({
|
|
@@ -1385,7 +1386,7 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
1385
1386
|
errors: {
|
|
1386
1387
|
message: string;
|
|
1387
1388
|
created_at: string;
|
|
1388
|
-
error_code:
|
|
1389
|
+
error_code: "entrance_removed";
|
|
1389
1390
|
}[];
|
|
1390
1391
|
connected_account_id: string;
|
|
1391
1392
|
warnings: ({
|
|
@@ -1758,19 +1759,20 @@ export declare const phone_session: z.ZodObject<{
|
|
|
1758
1759
|
created_at: z.ZodString;
|
|
1759
1760
|
display_name: z.ZodString;
|
|
1760
1761
|
connected_account_id: z.ZodString;
|
|
1761
|
-
errors: z.ZodArray<z.ZodObject<{
|
|
1762
|
-
error_code: z.ZodString;
|
|
1763
|
-
message: z.ZodString;
|
|
1762
|
+
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
1764
1763
|
created_at: z.ZodString;
|
|
1764
|
+
message: z.ZodString;
|
|
1765
|
+
} & {
|
|
1766
|
+
error_code: z.ZodLiteral<"entrance_removed">;
|
|
1765
1767
|
}, "strip", z.ZodTypeAny, {
|
|
1766
1768
|
message: string;
|
|
1767
1769
|
created_at: string;
|
|
1768
|
-
error_code:
|
|
1770
|
+
error_code: "entrance_removed";
|
|
1769
1771
|
}, {
|
|
1770
1772
|
message: string;
|
|
1771
1773
|
created_at: string;
|
|
1772
|
-
error_code:
|
|
1773
|
-
}>, "many">;
|
|
1774
|
+
error_code: "entrance_removed";
|
|
1775
|
+
}>]>, "many">;
|
|
1774
1776
|
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
1775
1777
|
created_at: z.ZodString;
|
|
1776
1778
|
message: z.ZodString;
|
|
@@ -2059,7 +2061,7 @@ export declare const phone_session: z.ZodObject<{
|
|
|
2059
2061
|
errors: {
|
|
2060
2062
|
message: string;
|
|
2061
2063
|
created_at: string;
|
|
2062
|
-
error_code:
|
|
2064
|
+
error_code: "entrance_removed";
|
|
2063
2065
|
}[];
|
|
2064
2066
|
connected_account_id: string;
|
|
2065
2067
|
warnings: ({
|
|
@@ -2171,7 +2173,7 @@ export declare const phone_session: z.ZodObject<{
|
|
|
2171
2173
|
errors: {
|
|
2172
2174
|
message: string;
|
|
2173
2175
|
created_at: string;
|
|
2174
|
-
error_code:
|
|
2176
|
+
error_code: "entrance_removed";
|
|
2175
2177
|
}[];
|
|
2176
2178
|
connected_account_id: string;
|
|
2177
2179
|
warnings: ({
|
|
@@ -2329,7 +2331,7 @@ export declare const phone_session: z.ZodObject<{
|
|
|
2329
2331
|
errors: {
|
|
2330
2332
|
message: string;
|
|
2331
2333
|
created_at: string;
|
|
2332
|
-
error_code:
|
|
2334
|
+
error_code: "entrance_removed";
|
|
2333
2335
|
}[];
|
|
2334
2336
|
connected_account_id: string;
|
|
2335
2337
|
warnings: ({
|
|
@@ -2524,7 +2526,7 @@ export declare const phone_session: z.ZodObject<{
|
|
|
2524
2526
|
errors: {
|
|
2525
2527
|
message: string;
|
|
2526
2528
|
created_at: string;
|
|
2527
|
-
error_code:
|
|
2529
|
+
error_code: "entrance_removed";
|
|
2528
2530
|
}[];
|
|
2529
2531
|
connected_account_id: string;
|
|
2530
2532
|
warnings: ({
|
|
@@ -2721,7 +2723,7 @@ export declare const phone_session: z.ZodObject<{
|
|
|
2721
2723
|
errors: {
|
|
2722
2724
|
message: string;
|
|
2723
2725
|
created_at: string;
|
|
2724
|
-
error_code:
|
|
2726
|
+
error_code: "entrance_removed";
|
|
2725
2727
|
}[];
|
|
2726
2728
|
connected_account_id: string;
|
|
2727
2729
|
warnings: ({
|
|
@@ -2924,7 +2926,7 @@ export declare const phone_session: z.ZodObject<{
|
|
|
2924
2926
|
errors: {
|
|
2925
2927
|
message: string;
|
|
2926
2928
|
created_at: string;
|
|
2927
|
-
error_code:
|
|
2929
|
+
error_code: "entrance_removed";
|
|
2928
2930
|
}[];
|
|
2929
2931
|
connected_account_id: string;
|
|
2930
2932
|
warnings: ({
|
|
@@ -3248,7 +3250,7 @@ export declare const phone_session: z.ZodObject<{
|
|
|
3248
3250
|
errors: {
|
|
3249
3251
|
message: string;
|
|
3250
3252
|
created_at: string;
|
|
3251
|
-
error_code:
|
|
3253
|
+
error_code: "entrance_removed";
|
|
3252
3254
|
}[];
|
|
3253
3255
|
connected_account_id: string;
|
|
3254
3256
|
warnings: ({
|
|
@@ -3484,7 +3486,7 @@ export declare const phone_session: z.ZodObject<{
|
|
|
3484
3486
|
errors: {
|
|
3485
3487
|
message: string;
|
|
3486
3488
|
created_at: string;
|
|
3487
|
-
error_code:
|
|
3489
|
+
error_code: "entrance_removed";
|
|
3488
3490
|
}[];
|
|
3489
3491
|
connected_account_id: string;
|
|
3490
3492
|
warnings: ({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as z from 'zod/v3';
|
|
2
|
-
export declare const provider_capability: z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control", "camera"]>;
|
|
2
|
+
export declare const provider_capability: z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control", "camera", "speaker"]>;
|
|
3
3
|
export type ProviderCapability = z.infer<typeof provider_capability>;
|
|
@@ -5,6 +5,7 @@ export const provider_capability = z.enum([
|
|
|
5
5
|
'noise_sensor',
|
|
6
6
|
'access_control',
|
|
7
7
|
'camera',
|
|
8
|
+
'speaker',
|
|
8
9
|
]).describe(`
|
|
9
10
|
High-level device capabilities that can be restricted in connect webviews.
|
|
10
11
|
These represent the main device categories that customers can opt into.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-capability.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/provider-capability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,MAAM;IACN,YAAY;IACZ,cAAc;IACd,gBAAgB;IAChB,QAAQ;
|
|
1
|
+
{"version":3,"file":"provider-capability.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/provider-capability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,MAAM;IACN,YAAY;IACZ,cAAc;IACd,gBAAgB;IAChB,QAAQ;IACR,SAAS;CACV,CAAC,CAAC,QAAQ,CAAC;;;CAGX,CAAC,CAAA"}
|
|
@@ -52,7 +52,7 @@ const _user_identity_error_map = z.object({
|
|
|
52
52
|
.nullable()
|
|
53
53
|
.describe('Map of access system user IDs to issues with the access system user. The key is the access system user ID, and the value is the issue with the access system user.'),
|
|
54
54
|
});
|
|
55
|
-
const
|
|
55
|
+
const user_identity_warning = z
|
|
56
56
|
.discriminatedUnion('warning_code', [
|
|
57
57
|
user_identity_being_deleted,
|
|
58
58
|
acs_user_profile_does_not_match_user_identity,
|
|
@@ -62,7 +62,7 @@ const _user_identity_warning_map = z.object({
|
|
|
62
62
|
being_deleted: user_identity_being_deleted.optional().nullable(),
|
|
63
63
|
acs_user_profile_does_not_match_user_identity: acs_user_profile_does_not_match_user_identity.optional().nullable(),
|
|
64
64
|
});
|
|
65
|
-
const
|
|
65
|
+
const user_identity_error = z
|
|
66
66
|
.discriminatedUnion('error_code', [user_identity_issue_with_acs_user])
|
|
67
67
|
.describe('Errors associated with the user identity.');
|
|
68
68
|
export const user_identity = z.object({
|
|
@@ -101,10 +101,10 @@ export const user_identity = z.object({
|
|
|
101
101
|
.uuid()
|
|
102
102
|
.describe('ID of the workspace that contains the user identity.'),
|
|
103
103
|
errors: z
|
|
104
|
-
.array(
|
|
104
|
+
.array(user_identity_error)
|
|
105
105
|
.describe('Array of errors associated with the user identity. Each error object within the array contains fields like "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.'),
|
|
106
106
|
warnings: z
|
|
107
|
-
.array(
|
|
107
|
+
.array(user_identity_warning)
|
|
108
108
|
.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.'),
|
|
109
109
|
acs_user_ids: z
|
|
110
110
|
.array(z.string().uuid())
|
|
@@ -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,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,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EN,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,mBAAmB,EAAE,CAAC;SACnB,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,iCAAiC,CAAC;SAC5D,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACP,oKAAoK,CACrK;CACJ,CAAC,CAAA;AAIF,MAAM,
|
|
1
|
+
{"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/user-identities/user-identity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,gDAAgD,CACjD;IACD,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC,CAAA;AAEF,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,kDAAkD,CACnD;IACD,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,0GAA0G,CAC3G;CACJ,CAAC,CAAA;AAEF,MAAM,2BAA2B,GAAG,4BAA4B;KAC7D,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,eAAe,CAAC;SACxB,QAAQ,CACP,sGAAsG,CACvG;CACJ,CAAC;KACD,QAAQ,CAAC,8DAA8D,CAAC,CAAA;AAE3E,MAAM,6CAA6C,GACjD,4BAA4B;KACzB,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,+CAA+C,CAAC;SACxD,QAAQ,CACP,sGAA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