@seamapi/types 1.358.0 → 1.360.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/dist/connect.cjs +532 -11
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +2726 -1075
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +100 -0
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +100 -0
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +14 -14
- package/lib/seam/connect/models/acs/acs-credential.d.ts +74 -74
- package/lib/seam/connect/models/acs/acs-encoder.d.ts +8 -8
- package/lib/seam/connect/models/acs/acs-system.d.ts +72 -72
- package/lib/seam/connect/models/acs/acs-user.d.ts +104 -104
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +168 -168
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +72 -72
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +96 -96
- package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +2 -2
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +634 -21
- package/lib/seam/connect/models/connected-accounts/connected-account.js +56 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +24 -24
- package/lib/seam/connect/models/devices/device.d.ts +146 -46
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +127 -27
- package/lib/seam/connect/models/events/access-codes.d.ts +68 -68
- package/lib/seam/connect/models/events/connect-webviews.d.ts +4 -4
- package/lib/seam/connect/models/events/connected-accounts.d.ts +28 -28
- package/lib/seam/connect/models/events/devices.d.ts +188 -128
- package/lib/seam/connect/models/events/devices.js +10 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +144 -115
- package/lib/seam/connect/openapi.d.ts +482 -4
- package/lib/seam/connect/openapi.js +469 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +601 -2
- package/package.json +2 -2
- package/src/lib/seam/connect/model-types.ts +0 -2
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +77 -2
- package/src/lib/seam/connect/models/events/devices.ts +13 -0
- package/src/lib/seam/connect/openapi.ts +502 -2
- package/src/lib/seam/connect/route-types.ts +633 -0
|
@@ -246,20 +246,20 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
246
246
|
site_name: z.ZodString;
|
|
247
247
|
entry_relays_total_count: z.ZodNumber;
|
|
248
248
|
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
site_id: number;
|
|
250
|
+
site_name: string;
|
|
249
251
|
entry_name: string;
|
|
250
252
|
org_name: string;
|
|
251
253
|
zone_id: number;
|
|
252
254
|
zone_name: string;
|
|
253
|
-
site_id: number;
|
|
254
|
-
site_name: string;
|
|
255
255
|
entry_relays_total_count: number;
|
|
256
256
|
}, {
|
|
257
|
+
site_id: number;
|
|
258
|
+
site_name: string;
|
|
257
259
|
entry_name: string;
|
|
258
260
|
org_name: string;
|
|
259
261
|
zone_id: number;
|
|
260
262
|
zone_name: string;
|
|
261
|
-
site_id: number;
|
|
262
|
-
site_name: string;
|
|
263
263
|
entry_relays_total_count: number;
|
|
264
264
|
}>>;
|
|
265
265
|
schlage_metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -941,6 +941,14 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
941
941
|
device_type: string;
|
|
942
942
|
}>>;
|
|
943
943
|
}, "strip", z.ZodTypeAny, {
|
|
944
|
+
salto_ks_metadata?: {
|
|
945
|
+
lock_type: string;
|
|
946
|
+
lock_id: string;
|
|
947
|
+
customer_reference: string;
|
|
948
|
+
battery_level: string;
|
|
949
|
+
locked_state: string;
|
|
950
|
+
model?: string | undefined;
|
|
951
|
+
} | undefined;
|
|
944
952
|
august_metadata?: {
|
|
945
953
|
lock_id: string;
|
|
946
954
|
lock_name: string;
|
|
@@ -951,12 +959,12 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
951
959
|
house_id?: string | undefined;
|
|
952
960
|
} | undefined;
|
|
953
961
|
avigilon_alta_metadata?: {
|
|
962
|
+
site_id: number;
|
|
963
|
+
site_name: string;
|
|
954
964
|
entry_name: string;
|
|
955
965
|
org_name: string;
|
|
956
966
|
zone_id: number;
|
|
957
967
|
zone_name: string;
|
|
958
|
-
site_id: number;
|
|
959
|
-
site_name: string;
|
|
960
968
|
entry_relays_total_count: number;
|
|
961
969
|
} | undefined;
|
|
962
970
|
schlage_metadata?: {
|
|
@@ -996,14 +1004,6 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
996
1004
|
locked_state: string;
|
|
997
1005
|
model?: string | undefined;
|
|
998
1006
|
} | undefined;
|
|
999
|
-
salto_ks_metadata?: {
|
|
1000
|
-
lock_type: string;
|
|
1001
|
-
lock_id: string;
|
|
1002
|
-
customer_reference: string;
|
|
1003
|
-
battery_level: string;
|
|
1004
|
-
locked_state: string;
|
|
1005
|
-
model?: string | undefined;
|
|
1006
|
-
} | undefined;
|
|
1007
1007
|
genie_metadata?: {
|
|
1008
1008
|
device_name: string;
|
|
1009
1009
|
door_name: string;
|
|
@@ -1168,6 +1168,14 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1168
1168
|
device_type: string;
|
|
1169
1169
|
} | undefined;
|
|
1170
1170
|
}, {
|
|
1171
|
+
salto_ks_metadata?: {
|
|
1172
|
+
lock_type: string;
|
|
1173
|
+
lock_id: string;
|
|
1174
|
+
customer_reference: string;
|
|
1175
|
+
battery_level: string;
|
|
1176
|
+
locked_state: string;
|
|
1177
|
+
model?: string | undefined;
|
|
1178
|
+
} | undefined;
|
|
1171
1179
|
august_metadata?: {
|
|
1172
1180
|
lock_id: string;
|
|
1173
1181
|
lock_name: string;
|
|
@@ -1178,12 +1186,12 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1178
1186
|
house_id?: string | undefined;
|
|
1179
1187
|
} | undefined;
|
|
1180
1188
|
avigilon_alta_metadata?: {
|
|
1189
|
+
site_id: number;
|
|
1190
|
+
site_name: string;
|
|
1181
1191
|
entry_name: string;
|
|
1182
1192
|
org_name: string;
|
|
1183
1193
|
zone_id: number;
|
|
1184
1194
|
zone_name: string;
|
|
1185
|
-
site_id: number;
|
|
1186
|
-
site_name: string;
|
|
1187
1195
|
entry_relays_total_count: number;
|
|
1188
1196
|
} | undefined;
|
|
1189
1197
|
schlage_metadata?: {
|
|
@@ -1223,14 +1231,6 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1223
1231
|
locked_state: string;
|
|
1224
1232
|
model?: string | undefined;
|
|
1225
1233
|
} | undefined;
|
|
1226
|
-
salto_ks_metadata?: {
|
|
1227
|
-
lock_type: string;
|
|
1228
|
-
lock_id: string;
|
|
1229
|
-
customer_reference: string;
|
|
1230
|
-
battery_level: string;
|
|
1231
|
-
locked_state: string;
|
|
1232
|
-
model?: string | undefined;
|
|
1233
|
-
} | undefined;
|
|
1234
1234
|
genie_metadata?: {
|
|
1235
1235
|
device_name: string;
|
|
1236
1236
|
door_name: string;
|
|
@@ -2012,31 +2012,101 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2012
2012
|
error_code: "subscription_required";
|
|
2013
2013
|
is_device_error: true;
|
|
2014
2014
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2015
|
+
created_at: z.ZodString;
|
|
2015
2016
|
message: z.ZodString;
|
|
2016
2017
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
2017
2018
|
}, {
|
|
2018
2019
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
2019
2020
|
}>, "strip", z.ZodTypeAny, {
|
|
2020
2021
|
message: string;
|
|
2022
|
+
created_at: string;
|
|
2021
2023
|
is_connected_account_error: true;
|
|
2022
2024
|
error_code: "account_disconnected";
|
|
2023
2025
|
}, {
|
|
2024
2026
|
message: string;
|
|
2027
|
+
created_at: string;
|
|
2025
2028
|
is_connected_account_error: true;
|
|
2026
2029
|
error_code: "account_disconnected";
|
|
2027
2030
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2031
|
+
created_at: z.ZodString;
|
|
2028
2032
|
message: z.ZodString;
|
|
2029
2033
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
2030
2034
|
}, {
|
|
2031
2035
|
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
2032
2036
|
}>, "strip", z.ZodTypeAny, {
|
|
2033
2037
|
message: string;
|
|
2038
|
+
created_at: string;
|
|
2034
2039
|
is_connected_account_error: true;
|
|
2035
2040
|
error_code: "invalid_credentials";
|
|
2036
2041
|
}, {
|
|
2037
2042
|
message: string;
|
|
2043
|
+
created_at: string;
|
|
2038
2044
|
is_connected_account_error: true;
|
|
2039
2045
|
error_code: "invalid_credentials";
|
|
2046
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2047
|
+
created_at: z.ZodString;
|
|
2048
|
+
message: z.ZodString;
|
|
2049
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
2050
|
+
}, {
|
|
2051
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
2052
|
+
salto_ks_metadata: z.ZodObject<{
|
|
2053
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
2054
|
+
site_id: z.ZodString;
|
|
2055
|
+
site_name: z.ZodString;
|
|
2056
|
+
subscribed_site_user_count: z.ZodNumber;
|
|
2057
|
+
site_user_subscription_limit: z.ZodNumber;
|
|
2058
|
+
}, "strip", z.ZodTypeAny, {
|
|
2059
|
+
site_id: string;
|
|
2060
|
+
site_name: string;
|
|
2061
|
+
subscribed_site_user_count: number;
|
|
2062
|
+
site_user_subscription_limit: number;
|
|
2063
|
+
}, {
|
|
2064
|
+
site_id: string;
|
|
2065
|
+
site_name: string;
|
|
2066
|
+
subscribed_site_user_count: number;
|
|
2067
|
+
site_user_subscription_limit: number;
|
|
2068
|
+
}>, "many">;
|
|
2069
|
+
}, "strip", z.ZodTypeAny, {
|
|
2070
|
+
sites: {
|
|
2071
|
+
site_id: string;
|
|
2072
|
+
site_name: string;
|
|
2073
|
+
subscribed_site_user_count: number;
|
|
2074
|
+
site_user_subscription_limit: number;
|
|
2075
|
+
}[];
|
|
2076
|
+
}, {
|
|
2077
|
+
sites: {
|
|
2078
|
+
site_id: string;
|
|
2079
|
+
site_name: string;
|
|
2080
|
+
subscribed_site_user_count: number;
|
|
2081
|
+
site_user_subscription_limit: number;
|
|
2082
|
+
}[];
|
|
2083
|
+
}>;
|
|
2084
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2085
|
+
message: string;
|
|
2086
|
+
created_at: string;
|
|
2087
|
+
is_connected_account_error: true;
|
|
2088
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
2089
|
+
salto_ks_metadata: {
|
|
2090
|
+
sites: {
|
|
2091
|
+
site_id: string;
|
|
2092
|
+
site_name: string;
|
|
2093
|
+
subscribed_site_user_count: number;
|
|
2094
|
+
site_user_subscription_limit: number;
|
|
2095
|
+
}[];
|
|
2096
|
+
};
|
|
2097
|
+
}, {
|
|
2098
|
+
message: string;
|
|
2099
|
+
created_at: string;
|
|
2100
|
+
is_connected_account_error: true;
|
|
2101
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
2102
|
+
salto_ks_metadata: {
|
|
2103
|
+
sites: {
|
|
2104
|
+
site_id: string;
|
|
2105
|
+
site_name: string;
|
|
2106
|
+
subscribed_site_user_count: number;
|
|
2107
|
+
site_user_subscription_limit: number;
|
|
2108
|
+
}[];
|
|
2109
|
+
};
|
|
2040
2110
|
}>]>, "many">;
|
|
2041
2111
|
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
2042
2112
|
message: z.ZodString;
|
|
@@ -2215,7 +2285,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2215
2285
|
can_simulate_removal: z.ZodOptional<z.ZodBoolean>;
|
|
2216
2286
|
can_simulate_connection: z.ZodOptional<z.ZodBoolean>;
|
|
2217
2287
|
can_simulate_disconnection: z.ZodOptional<z.ZodBoolean>;
|
|
2218
|
-
}>>, "location" | "
|
|
2288
|
+
}>>, "location" | "created_at" | "connected_account_id" | "errors" | "warnings" | "device_id" | "device_type" | "capabilities_supported" | "workspace_id">, {
|
|
2219
2289
|
is_managed: z.ZodLiteral<false>;
|
|
2220
2290
|
properties: z.ZodObject<Pick<{
|
|
2221
2291
|
online: z.ZodBoolean;
|
|
@@ -2369,16 +2439,31 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2369
2439
|
location_name?: string | undefined;
|
|
2370
2440
|
timezone?: string | undefined;
|
|
2371
2441
|
} | null;
|
|
2372
|
-
connected_account_id: string;
|
|
2373
2442
|
created_at: string;
|
|
2443
|
+
connected_account_id: string;
|
|
2374
2444
|
errors: ({
|
|
2375
2445
|
message: string;
|
|
2446
|
+
created_at: string;
|
|
2376
2447
|
is_connected_account_error: true;
|
|
2377
2448
|
error_code: "account_disconnected";
|
|
2378
2449
|
} | {
|
|
2379
2450
|
message: string;
|
|
2451
|
+
created_at: string;
|
|
2380
2452
|
is_connected_account_error: true;
|
|
2381
2453
|
error_code: "invalid_credentials";
|
|
2454
|
+
} | {
|
|
2455
|
+
message: string;
|
|
2456
|
+
created_at: string;
|
|
2457
|
+
is_connected_account_error: true;
|
|
2458
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
2459
|
+
salto_ks_metadata: {
|
|
2460
|
+
sites: {
|
|
2461
|
+
site_id: string;
|
|
2462
|
+
site_name: string;
|
|
2463
|
+
subscribed_site_user_count: number;
|
|
2464
|
+
site_user_subscription_limit: number;
|
|
2465
|
+
}[];
|
|
2466
|
+
};
|
|
2382
2467
|
} | {
|
|
2383
2468
|
message: string;
|
|
2384
2469
|
error_code: "device_offline";
|
|
@@ -2527,16 +2612,31 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2527
2612
|
location_name?: string | undefined;
|
|
2528
2613
|
timezone?: string | undefined;
|
|
2529
2614
|
} | null;
|
|
2530
|
-
connected_account_id: string;
|
|
2531
2615
|
created_at: string;
|
|
2616
|
+
connected_account_id: string;
|
|
2532
2617
|
errors: ({
|
|
2533
2618
|
message: string;
|
|
2619
|
+
created_at: string;
|
|
2534
2620
|
is_connected_account_error: true;
|
|
2535
2621
|
error_code: "account_disconnected";
|
|
2536
2622
|
} | {
|
|
2537
2623
|
message: string;
|
|
2624
|
+
created_at: string;
|
|
2538
2625
|
is_connected_account_error: true;
|
|
2539
2626
|
error_code: "invalid_credentials";
|
|
2627
|
+
} | {
|
|
2628
|
+
message: string;
|
|
2629
|
+
created_at: string;
|
|
2630
|
+
is_connected_account_error: true;
|
|
2631
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
2632
|
+
salto_ks_metadata: {
|
|
2633
|
+
sites: {
|
|
2634
|
+
site_id: string;
|
|
2635
|
+
site_name: string;
|
|
2636
|
+
subscribed_site_user_count: number;
|
|
2637
|
+
site_user_subscription_limit: number;
|
|
2638
|
+
}[];
|
|
2639
|
+
};
|
|
2540
2640
|
} | {
|
|
2541
2641
|
message: string;
|
|
2542
2642
|
error_code: "device_offline";
|