@seamapi/types 1.233.0 → 1.234.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 +467 -9
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1166 -161
- package/lib/seam/connect/models/acs/acs-credential.d.ts +160 -2
- package/lib/seam/connect/models/acs/acs-credential.js +7 -1
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-user.d.ts +114 -1
- package/lib/seam/connect/models/acs/acs-user.js +7 -1
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/visionline.d.ts +9 -0
- package/lib/seam/connect/models/acs/metadata/visionline.js +3 -0
- package/lib/seam/connect/models/acs/metadata/visionline.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +600 -10
- package/lib/seam/connect/openapi.js +436 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +145 -1
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +14 -1
- package/src/lib/seam/connect/models/acs/acs-user.ts +14 -1
- package/src/lib/seam/connect/models/acs/metadata/visionline.ts +3 -0
- package/src/lib/seam/connect/openapi.ts +436 -3
- package/src/lib/seam/connect/route-types.ts +169 -1
- package/src/lib/seam/connect/schemas.ts +2 -0
|
@@ -2248,6 +2248,7 @@ export interface Routes {
|
|
|
2248
2248
|
email?: string | undefined;
|
|
2249
2249
|
email_address?: string | undefined;
|
|
2250
2250
|
phone_number?: string | undefined;
|
|
2251
|
+
is_managed: true;
|
|
2251
2252
|
}>;
|
|
2252
2253
|
};
|
|
2253
2254
|
};
|
|
@@ -2349,7 +2350,11 @@ export interface Routes {
|
|
|
2349
2350
|
joiner_acs_credential_ids?: string[] | undefined;
|
|
2350
2351
|
guest_acs_entrance_ids?: string[] | undefined;
|
|
2351
2352
|
common_acs_entrance_ids?: string[] | undefined;
|
|
2353
|
+
is_valid?: boolean | undefined;
|
|
2354
|
+
card_id?: string | undefined;
|
|
2355
|
+
credential_id?: string | undefined;
|
|
2352
2356
|
} | undefined;
|
|
2357
|
+
is_managed: true;
|
|
2353
2358
|
};
|
|
2354
2359
|
};
|
|
2355
2360
|
};
|
|
@@ -2411,7 +2416,11 @@ export interface Routes {
|
|
|
2411
2416
|
joiner_acs_credential_ids?: string[] | undefined;
|
|
2412
2417
|
guest_acs_entrance_ids?: string[] | undefined;
|
|
2413
2418
|
common_acs_entrance_ids?: string[] | undefined;
|
|
2419
|
+
is_valid?: boolean | undefined;
|
|
2420
|
+
card_id?: string | undefined;
|
|
2421
|
+
credential_id?: string | undefined;
|
|
2414
2422
|
} | undefined;
|
|
2423
|
+
is_managed: true;
|
|
2415
2424
|
};
|
|
2416
2425
|
};
|
|
2417
2426
|
};
|
|
@@ -2467,7 +2476,11 @@ export interface Routes {
|
|
|
2467
2476
|
joiner_acs_credential_ids?: string[] | undefined;
|
|
2468
2477
|
guest_acs_entrance_ids?: string[] | undefined;
|
|
2469
2478
|
common_acs_entrance_ids?: string[] | undefined;
|
|
2479
|
+
is_valid?: boolean | undefined;
|
|
2480
|
+
card_id?: string | undefined;
|
|
2481
|
+
credential_id?: string | undefined;
|
|
2470
2482
|
} | undefined;
|
|
2483
|
+
is_managed: true;
|
|
2471
2484
|
};
|
|
2472
2485
|
};
|
|
2473
2486
|
};
|
|
@@ -2523,7 +2536,11 @@ export interface Routes {
|
|
|
2523
2536
|
joiner_acs_credential_ids?: string[] | undefined;
|
|
2524
2537
|
guest_acs_entrance_ids?: string[] | undefined;
|
|
2525
2538
|
common_acs_entrance_ids?: string[] | undefined;
|
|
2539
|
+
is_valid?: boolean | undefined;
|
|
2540
|
+
card_id?: string | undefined;
|
|
2541
|
+
credential_id?: string | undefined;
|
|
2526
2542
|
} | undefined;
|
|
2543
|
+
is_managed: true;
|
|
2527
2544
|
}>;
|
|
2528
2545
|
};
|
|
2529
2546
|
};
|
|
@@ -2605,10 +2622,119 @@ export interface Routes {
|
|
|
2605
2622
|
joiner_acs_credential_ids?: string[] | undefined;
|
|
2606
2623
|
guest_acs_entrance_ids?: string[] | undefined;
|
|
2607
2624
|
common_acs_entrance_ids?: string[] | undefined;
|
|
2625
|
+
is_valid?: boolean | undefined;
|
|
2626
|
+
card_id?: string | undefined;
|
|
2627
|
+
credential_id?: string | undefined;
|
|
2628
|
+
} | undefined;
|
|
2629
|
+
is_managed: true;
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2632
|
+
};
|
|
2633
|
+
'/acs/credentials/unmanaged/get': {
|
|
2634
|
+
route: '/acs/credentials/unmanaged/get';
|
|
2635
|
+
method: 'GET' | 'POST';
|
|
2636
|
+
queryParams: {};
|
|
2637
|
+
jsonBody: {};
|
|
2638
|
+
commonParams: {
|
|
2639
|
+
acs_credential_id: string;
|
|
2640
|
+
};
|
|
2641
|
+
formData: {};
|
|
2642
|
+
jsonResponse: {
|
|
2643
|
+
acs_credential: {
|
|
2644
|
+
acs_credential_id: string;
|
|
2645
|
+
acs_user_id?: string | undefined;
|
|
2646
|
+
acs_credential_pool_id?: string | undefined;
|
|
2647
|
+
acs_system_id: string;
|
|
2648
|
+
parent_acs_credential_id?: string | undefined;
|
|
2649
|
+
display_name: string;
|
|
2650
|
+
code?: (string | undefined) | null;
|
|
2651
|
+
access_method: 'code' | 'card' | 'mobile_key';
|
|
2652
|
+
external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
|
|
2653
|
+
external_type_display_name?: string | undefined;
|
|
2654
|
+
created_at: string;
|
|
2655
|
+
workspace_id: string;
|
|
2656
|
+
starts_at?: string | undefined;
|
|
2657
|
+
ends_at?: string | undefined;
|
|
2658
|
+
errors: Array<{
|
|
2659
|
+
error_code: string;
|
|
2660
|
+
message: string;
|
|
2661
|
+
}>;
|
|
2662
|
+
warnings: Array<{
|
|
2663
|
+
warning_code: string;
|
|
2664
|
+
message: string;
|
|
2665
|
+
}>;
|
|
2666
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
2667
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
2668
|
+
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
2669
|
+
visionline_metadata?: {
|
|
2670
|
+
card_function_type: 'guest' | 'staff';
|
|
2671
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
2672
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
2673
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
2674
|
+
is_valid?: boolean | undefined;
|
|
2675
|
+
card_id?: string | undefined;
|
|
2676
|
+
credential_id?: string | undefined;
|
|
2608
2677
|
} | undefined;
|
|
2678
|
+
is_managed: false;
|
|
2609
2679
|
};
|
|
2610
2680
|
};
|
|
2611
2681
|
};
|
|
2682
|
+
'/acs/credentials/unmanaged/list': {
|
|
2683
|
+
route: '/acs/credentials/unmanaged/list';
|
|
2684
|
+
method: 'GET' | 'POST';
|
|
2685
|
+
queryParams: {};
|
|
2686
|
+
jsonBody: {};
|
|
2687
|
+
commonParams: {
|
|
2688
|
+
acs_user_id: string;
|
|
2689
|
+
} | {
|
|
2690
|
+
acs_system_id: string;
|
|
2691
|
+
} | {
|
|
2692
|
+
acs_user_id: string;
|
|
2693
|
+
acs_system_id: string;
|
|
2694
|
+
} | {
|
|
2695
|
+
user_identity_id: string;
|
|
2696
|
+
};
|
|
2697
|
+
formData: {};
|
|
2698
|
+
jsonResponse: {
|
|
2699
|
+
acs_credentials: Array<{
|
|
2700
|
+
acs_credential_id: string;
|
|
2701
|
+
acs_user_id?: string | undefined;
|
|
2702
|
+
acs_credential_pool_id?: string | undefined;
|
|
2703
|
+
acs_system_id: string;
|
|
2704
|
+
parent_acs_credential_id?: string | undefined;
|
|
2705
|
+
display_name: string;
|
|
2706
|
+
code?: (string | undefined) | null;
|
|
2707
|
+
access_method: 'code' | 'card' | 'mobile_key';
|
|
2708
|
+
external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
|
|
2709
|
+
external_type_display_name?: string | undefined;
|
|
2710
|
+
created_at: string;
|
|
2711
|
+
workspace_id: string;
|
|
2712
|
+
starts_at?: string | undefined;
|
|
2713
|
+
ends_at?: string | undefined;
|
|
2714
|
+
errors: Array<{
|
|
2715
|
+
error_code: string;
|
|
2716
|
+
message: string;
|
|
2717
|
+
}>;
|
|
2718
|
+
warnings: Array<{
|
|
2719
|
+
warning_code: string;
|
|
2720
|
+
message: string;
|
|
2721
|
+
}>;
|
|
2722
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
2723
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
2724
|
+
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
2725
|
+
visionline_metadata?: {
|
|
2726
|
+
card_function_type: 'guest' | 'staff';
|
|
2727
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
2728
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
2729
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
2730
|
+
is_valid?: boolean | undefined;
|
|
2731
|
+
card_id?: string | undefined;
|
|
2732
|
+
credential_id?: string | undefined;
|
|
2733
|
+
} | undefined;
|
|
2734
|
+
is_managed: false;
|
|
2735
|
+
}>;
|
|
2736
|
+
};
|
|
2737
|
+
};
|
|
2612
2738
|
'/acs/credentials/update': {
|
|
2613
2739
|
route: '/acs/credentials/update';
|
|
2614
2740
|
method: 'PATCH' | 'POST';
|
|
@@ -2652,7 +2778,11 @@ export interface Routes {
|
|
|
2652
2778
|
joiner_acs_credential_ids?: string[] | undefined;
|
|
2653
2779
|
guest_acs_entrance_ids?: string[] | undefined;
|
|
2654
2780
|
common_acs_entrance_ids?: string[] | undefined;
|
|
2781
|
+
is_valid?: boolean | undefined;
|
|
2782
|
+
card_id?: string | undefined;
|
|
2783
|
+
credential_id?: string | undefined;
|
|
2655
2784
|
} | undefined;
|
|
2785
|
+
is_managed: true;
|
|
2656
2786
|
};
|
|
2657
2787
|
};
|
|
2658
2788
|
};
|
|
@@ -2783,7 +2913,11 @@ export interface Routes {
|
|
|
2783
2913
|
joiner_acs_credential_ids?: string[] | undefined;
|
|
2784
2914
|
guest_acs_entrance_ids?: string[] | undefined;
|
|
2785
2915
|
common_acs_entrance_ids?: string[] | undefined;
|
|
2916
|
+
is_valid?: boolean | undefined;
|
|
2917
|
+
card_id?: string | undefined;
|
|
2918
|
+
credential_id?: string | undefined;
|
|
2786
2919
|
} | undefined;
|
|
2920
|
+
is_managed: true;
|
|
2787
2921
|
}>;
|
|
2788
2922
|
};
|
|
2789
2923
|
};
|
|
@@ -3105,6 +3239,7 @@ export interface Routes {
|
|
|
3105
3239
|
email?: string | undefined;
|
|
3106
3240
|
email_address?: string | undefined;
|
|
3107
3241
|
phone_number?: string | undefined;
|
|
3242
|
+
is_managed: true;
|
|
3108
3243
|
};
|
|
3109
3244
|
};
|
|
3110
3245
|
};
|
|
@@ -3160,6 +3295,7 @@ export interface Routes {
|
|
|
3160
3295
|
email?: string | undefined;
|
|
3161
3296
|
email_address?: string | undefined;
|
|
3162
3297
|
phone_number?: string | undefined;
|
|
3298
|
+
is_managed: true;
|
|
3163
3299
|
};
|
|
3164
3300
|
};
|
|
3165
3301
|
};
|
|
@@ -3209,6 +3345,7 @@ export interface Routes {
|
|
|
3209
3345
|
email?: string | undefined;
|
|
3210
3346
|
email_address?: string | undefined;
|
|
3211
3347
|
phone_number?: string | undefined;
|
|
3348
|
+
is_managed: true;
|
|
3212
3349
|
}>;
|
|
3213
3350
|
};
|
|
3214
3351
|
};
|
|
@@ -3323,6 +3460,7 @@ export interface Routes {
|
|
|
3323
3460
|
email?: string | undefined;
|
|
3324
3461
|
email_address?: string | undefined;
|
|
3325
3462
|
phone_number?: string | undefined;
|
|
3463
|
+
is_managed: true;
|
|
3326
3464
|
};
|
|
3327
3465
|
};
|
|
3328
3466
|
};
|
|
@@ -3332,7 +3470,11 @@ export interface Routes {
|
|
|
3332
3470
|
queryParams: {};
|
|
3333
3471
|
jsonBody: {};
|
|
3334
3472
|
commonParams: {
|
|
3335
|
-
|
|
3473
|
+
user_identity_id?: string | undefined;
|
|
3474
|
+
user_identity_phone_number?: string | undefined;
|
|
3475
|
+
user_identity_email_address?: string | undefined;
|
|
3476
|
+
acs_system_id?: string | undefined;
|
|
3477
|
+
limit?: number;
|
|
3336
3478
|
};
|
|
3337
3479
|
formData: {};
|
|
3338
3480
|
jsonResponse: {
|
|
@@ -3367,6 +3509,7 @@ export interface Routes {
|
|
|
3367
3509
|
email?: string | undefined;
|
|
3368
3510
|
email_address?: string | undefined;
|
|
3369
3511
|
phone_number?: string | undefined;
|
|
3512
|
+
is_managed: false;
|
|
3370
3513
|
}>;
|
|
3371
3514
|
};
|
|
3372
3515
|
};
|
|
@@ -14348,6 +14491,7 @@ export interface Routes {
|
|
|
14348
14491
|
email?: string | undefined;
|
|
14349
14492
|
email_address?: string | undefined;
|
|
14350
14493
|
phone_number?: string | undefined;
|
|
14494
|
+
is_managed: true;
|
|
14351
14495
|
}>;
|
|
14352
14496
|
};
|
|
14353
14497
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, unmanaged_access_code, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_unmanaged_user, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, unmanaged_access_code, unmanaged_acs_credential, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, unmanaged_access_code, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_unmanaged_user, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, unmanaged_access_code, unmanaged_acs_credential, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
2
2
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACR,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ export type AcsCredentialExternalType = z.infer<
|
|
|
21
21
|
typeof acs_credential_external_type
|
|
22
22
|
>
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
const common_acs_credential = z.object({
|
|
25
25
|
acs_credential_id: z.string().uuid(),
|
|
26
26
|
acs_user_id: z.string().uuid().optional(),
|
|
27
27
|
acs_credential_pool_id: z.string().uuid().optional(),
|
|
@@ -57,4 +57,17 @@ export const acs_credential = z.object({
|
|
|
57
57
|
visionline_metadata: acs_credential_visionline_metadata.optional(),
|
|
58
58
|
})
|
|
59
59
|
|
|
60
|
+
export const acs_credential = common_acs_credential.merge(
|
|
61
|
+
z.object({
|
|
62
|
+
is_managed: z.literal(true),
|
|
63
|
+
}),
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
export const unmanaged_acs_credential = common_acs_credential.merge(
|
|
67
|
+
z.object({
|
|
68
|
+
is_managed: z.literal(false),
|
|
69
|
+
}),
|
|
70
|
+
)
|
|
71
|
+
|
|
60
72
|
export type AcsCredential = z.output<typeof acs_credential>
|
|
73
|
+
export type UnmanagedAcsCredential = z.output<typeof unmanaged_acs_credential>
|
|
@@ -45,7 +45,7 @@ const user_fields = z.object({
|
|
|
45
45
|
phone_number: phone_number.optional(),
|
|
46
46
|
})
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
const common_acs_user = z
|
|
49
49
|
.object({
|
|
50
50
|
acs_user_id: z.string().uuid(),
|
|
51
51
|
acs_system_id: z.string().uuid(),
|
|
@@ -70,4 +70,17 @@ export const acs_user = z
|
|
|
70
70
|
})
|
|
71
71
|
.merge(user_fields)
|
|
72
72
|
|
|
73
|
+
export const acs_user = common_acs_user.merge(
|
|
74
|
+
z.object({
|
|
75
|
+
is_managed: z.literal(true),
|
|
76
|
+
}),
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
export const acs_unmanaged_user = common_acs_user.merge(
|
|
80
|
+
z.object({
|
|
81
|
+
is_managed: z.literal(false),
|
|
82
|
+
}),
|
|
83
|
+
)
|
|
84
|
+
|
|
73
85
|
export type AcsUser = z.output<typeof acs_user>
|
|
86
|
+
export type AcsUnmanagedUser = z.output<typeof acs_unmanaged_user>
|
|
@@ -24,6 +24,9 @@ export const acs_credential_visionline_metadata = z.object({
|
|
|
24
24
|
joiner_acs_credential_ids: z.array(z.string().uuid()).optional(),
|
|
25
25
|
guest_acs_entrance_ids: z.array(z.string().uuid()).optional(),
|
|
26
26
|
common_acs_entrance_ids: z.array(z.string().uuid()).optional(),
|
|
27
|
+
is_valid: z.boolean().optional(),
|
|
28
|
+
card_id: z.string().optional(),
|
|
29
|
+
credential_id: z.string().optional(),
|
|
27
30
|
})
|
|
28
31
|
|
|
29
32
|
export type AcsCredentialVisionlineMetadata = z.infer<
|