@seamapi/types 1.43.0 → 1.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +189 -121
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +352 -214
- package/lib/seam/connect/openapi.d.ts +230 -152
- package/lib/seam/connect/openapi.js +168 -116
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +93 -59
- package/lib/seam/connect/stable/model-types.d.ts +1 -1
- package/lib/seam/connect/stable/models/connect-webview.d.ts +21 -0
- package/lib/seam/connect/stable/models/connect-webview.js +8 -0
- package/lib/seam/connect/stable/models/connect-webview.js.map +1 -1
- package/lib/seam/connect/stable/models/custom-metadata.d.ts +3 -0
- package/lib/seam/connect/stable/models/custom-metadata.js +7 -0
- package/lib/seam/connect/stable/models/custom-metadata.js.map +1 -0
- package/lib/seam/connect/stable/models/index.d.ts +1 -0
- package/lib/seam/connect/stable/models/index.js +1 -0
- package/lib/seam/connect/stable/models/index.js.map +1 -1
- package/lib/seam/connect/stable/schemas.d.ts +1 -1
- package/lib/seam/connect/stable/schemas.js +1 -1
- package/lib/seam/connect/stable/schemas.js.map +1 -1
- package/lib/seam/connect/unstable/models/acs/credential.d.ts +7 -7
- package/lib/seam/connect/unstable/models/acs/credential.js +5 -2
- package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -1
- package/lib/seam/connect/unstable/models/acs/user.d.ts +4 -4
- package/lib/seam/connect/unstable/models/acs/user.js +1 -1
- package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +168 -116
- package/src/lib/seam/connect/route-types.ts +93 -66
- package/src/lib/seam/connect/stable/model-types.ts +1 -1
- package/src/lib/seam/connect/stable/models/connect-webview.ts +9 -0
- package/src/lib/seam/connect/stable/models/custom-metadata.ts +12 -0
- package/src/lib/seam/connect/stable/models/index.ts +1 -0
- package/src/lib/seam/connect/stable/schemas.ts +1 -1
- package/src/lib/seam/connect/unstable/models/acs/credential.ts +5 -2
- package/src/lib/seam/connect/unstable/models/acs/user.ts +1 -1
|
@@ -492,43 +492,6 @@ export interface Routes {
|
|
|
492
492
|
formData: {};
|
|
493
493
|
jsonResponse: {};
|
|
494
494
|
};
|
|
495
|
-
'/acs/access_groups/create': {
|
|
496
|
-
route: '/acs/access_groups/create';
|
|
497
|
-
method: 'POST';
|
|
498
|
-
queryParams: {};
|
|
499
|
-
jsonBody: {};
|
|
500
|
-
commonParams: {
|
|
501
|
-
acs_system_id: string;
|
|
502
|
-
name?: string | undefined;
|
|
503
|
-
};
|
|
504
|
-
formData: {};
|
|
505
|
-
jsonResponse: {
|
|
506
|
-
acs_access_group: {
|
|
507
|
-
acs_access_group_id: string;
|
|
508
|
-
acs_system_id: string;
|
|
509
|
-
workspace_id: string;
|
|
510
|
-
name: string;
|
|
511
|
-
/** deprecated: use external_type */
|
|
512
|
-
access_group_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
|
|
513
|
-
/** deprecated: use external_type_display_name */
|
|
514
|
-
access_group_type_display_name: string;
|
|
515
|
-
external_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
|
|
516
|
-
external_type_display_name: string;
|
|
517
|
-
created_at: string;
|
|
518
|
-
};
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
'/acs/access_groups/delete': {
|
|
522
|
-
route: '/acs/access_groups/delete';
|
|
523
|
-
method: 'DELETE' | 'POST';
|
|
524
|
-
queryParams: {};
|
|
525
|
-
jsonBody: {};
|
|
526
|
-
commonParams: {
|
|
527
|
-
acs_access_group_id: string;
|
|
528
|
-
};
|
|
529
|
-
formData: {};
|
|
530
|
-
jsonResponse: {};
|
|
531
|
-
};
|
|
532
495
|
'/acs/access_groups/get': {
|
|
533
496
|
route: '/acs/access_groups/get';
|
|
534
497
|
method: 'GET' | 'POST';
|
|
@@ -596,7 +559,7 @@ export interface Routes {
|
|
|
596
559
|
workspace_id: string;
|
|
597
560
|
created_at: string;
|
|
598
561
|
display_name: string;
|
|
599
|
-
external_type: 'pti_user';
|
|
562
|
+
external_type: 'pti_user' | 'brivo_user';
|
|
600
563
|
external_type_display_name: string;
|
|
601
564
|
is_suspended: boolean;
|
|
602
565
|
full_name?: string | undefined;
|
|
@@ -619,15 +582,15 @@ export interface Routes {
|
|
|
619
582
|
formData: {};
|
|
620
583
|
jsonResponse: {};
|
|
621
584
|
};
|
|
622
|
-
'/acs/
|
|
623
|
-
route: '/acs/
|
|
585
|
+
'/acs/credentials/assign': {
|
|
586
|
+
route: '/acs/credentials/assign';
|
|
624
587
|
method: 'PATCH' | 'POST';
|
|
625
588
|
queryParams: {};
|
|
626
|
-
jsonBody: {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
name?: (string | null) | undefined;
|
|
589
|
+
jsonBody: {
|
|
590
|
+
acs_user_id: string;
|
|
591
|
+
acs_credential_id: string;
|
|
630
592
|
};
|
|
593
|
+
commonParams: {};
|
|
631
594
|
formData: {};
|
|
632
595
|
jsonResponse: {};
|
|
633
596
|
};
|
|
@@ -644,10 +607,10 @@ export interface Routes {
|
|
|
644
607
|
jsonResponse: {
|
|
645
608
|
acs_credential: {
|
|
646
609
|
acs_credential_id: string;
|
|
647
|
-
acs_user_id
|
|
610
|
+
acs_user_id?: string | undefined;
|
|
648
611
|
acs_system_id: string;
|
|
649
612
|
code: string | null;
|
|
650
|
-
external_type: 'pti_card';
|
|
613
|
+
external_type: 'pti_card' | 'brivo_credential';
|
|
651
614
|
external_type_display_name: string;
|
|
652
615
|
created_at: string;
|
|
653
616
|
workspace_id: string;
|
|
@@ -677,10 +640,10 @@ export interface Routes {
|
|
|
677
640
|
jsonResponse: {
|
|
678
641
|
acs_credential: {
|
|
679
642
|
acs_credential_id: string;
|
|
680
|
-
acs_user_id
|
|
643
|
+
acs_user_id?: string | undefined;
|
|
681
644
|
acs_system_id: string;
|
|
682
645
|
code: string | null;
|
|
683
|
-
external_type: 'pti_card';
|
|
646
|
+
external_type: 'pti_card' | 'brivo_credential';
|
|
684
647
|
external_type_display_name: string;
|
|
685
648
|
created_at: string;
|
|
686
649
|
workspace_id: string;
|
|
@@ -704,16 +667,28 @@ export interface Routes {
|
|
|
704
667
|
jsonResponse: {
|
|
705
668
|
acs_credentials: Array<{
|
|
706
669
|
acs_credential_id: string;
|
|
707
|
-
acs_user_id
|
|
670
|
+
acs_user_id?: string | undefined;
|
|
708
671
|
acs_system_id: string;
|
|
709
672
|
code: string | null;
|
|
710
|
-
external_type: 'pti_card';
|
|
673
|
+
external_type: 'pti_card' | 'brivo_credential';
|
|
711
674
|
external_type_display_name: string;
|
|
712
675
|
created_at: string;
|
|
713
676
|
workspace_id: string;
|
|
714
677
|
}>;
|
|
715
678
|
};
|
|
716
679
|
};
|
|
680
|
+
'/acs/credentials/unassign': {
|
|
681
|
+
route: '/acs/credentials/unassign';
|
|
682
|
+
method: 'PATCH' | 'POST';
|
|
683
|
+
queryParams: {};
|
|
684
|
+
jsonBody: {
|
|
685
|
+
acs_user_id: string;
|
|
686
|
+
acs_credential_id: string;
|
|
687
|
+
};
|
|
688
|
+
commonParams: {};
|
|
689
|
+
formData: {};
|
|
690
|
+
jsonResponse: {};
|
|
691
|
+
};
|
|
717
692
|
'/acs/systems/get': {
|
|
718
693
|
route: '/acs/systems/get';
|
|
719
694
|
method: 'GET' | 'POST';
|
|
@@ -778,15 +753,16 @@ export interface Routes {
|
|
|
778
753
|
route: '/acs/users/create';
|
|
779
754
|
method: 'POST';
|
|
780
755
|
queryParams: {};
|
|
781
|
-
jsonBody: {
|
|
782
|
-
commonParams: {
|
|
756
|
+
jsonBody: {
|
|
783
757
|
acs_system_id: string;
|
|
784
758
|
acs_access_group_ids?: string[];
|
|
785
759
|
full_name?: string | undefined;
|
|
786
760
|
/** Deprecated: use email_address. */
|
|
787
761
|
email?: string | undefined;
|
|
788
762
|
phone_number?: string | undefined;
|
|
763
|
+
email_address?: string | undefined;
|
|
789
764
|
};
|
|
765
|
+
commonParams: {};
|
|
790
766
|
formData: {};
|
|
791
767
|
jsonResponse: {
|
|
792
768
|
acs_user: {
|
|
@@ -795,7 +771,7 @@ export interface Routes {
|
|
|
795
771
|
workspace_id: string;
|
|
796
772
|
created_at: string;
|
|
797
773
|
display_name: string;
|
|
798
|
-
external_type: 'pti_user';
|
|
774
|
+
external_type: 'pti_user' | 'brivo_user';
|
|
799
775
|
external_type_display_name: string;
|
|
800
776
|
is_suspended: boolean;
|
|
801
777
|
full_name?: string | undefined;
|
|
@@ -833,7 +809,7 @@ export interface Routes {
|
|
|
833
809
|
workspace_id: string;
|
|
834
810
|
created_at: string;
|
|
835
811
|
display_name: string;
|
|
836
|
-
external_type: 'pti_user';
|
|
812
|
+
external_type: 'pti_user' | 'brivo_user';
|
|
837
813
|
external_type_display_name: string;
|
|
838
814
|
is_suspended: boolean;
|
|
839
815
|
full_name?: string | undefined;
|
|
@@ -860,7 +836,7 @@ export interface Routes {
|
|
|
860
836
|
workspace_id: string;
|
|
861
837
|
created_at: string;
|
|
862
838
|
display_name: string;
|
|
863
|
-
external_type: 'pti_user';
|
|
839
|
+
external_type: 'pti_user' | 'brivo_user';
|
|
864
840
|
external_type_display_name: string;
|
|
865
841
|
is_suspended: boolean;
|
|
866
842
|
full_name?: string | undefined;
|
|
@@ -909,14 +885,15 @@ export interface Routes {
|
|
|
909
885
|
route: '/acs/users/update';
|
|
910
886
|
method: 'PATCH' | 'POST';
|
|
911
887
|
queryParams: {};
|
|
912
|
-
jsonBody: {
|
|
913
|
-
commonParams: {
|
|
888
|
+
jsonBody: {
|
|
914
889
|
acs_user_id: string;
|
|
915
890
|
full_name?: string | undefined;
|
|
916
891
|
/** Deprecated: use email_address. */
|
|
917
892
|
email?: string | undefined;
|
|
918
893
|
phone_number?: string | undefined;
|
|
894
|
+
email_address?: string | undefined;
|
|
919
895
|
};
|
|
896
|
+
commonParams: {};
|
|
920
897
|
formData: {};
|
|
921
898
|
jsonResponse: {};
|
|
922
899
|
};
|
|
@@ -1140,7 +1117,7 @@ export interface Routes {
|
|
|
1140
1117
|
device_selection_mode?: ('none' | 'single' | 'multiple') | undefined;
|
|
1141
1118
|
custom_redirect_url?: string | undefined;
|
|
1142
1119
|
custom_redirect_failure_url?: string | undefined;
|
|
1143
|
-
accepted_providers?: Array<'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'yale_access'> | undefined;
|
|
1120
|
+
accepted_providers?: Array<'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'yale_access' | 'hid_cm'> | undefined;
|
|
1144
1121
|
provider_category?: ('stable' | 'consumer_smartlocks' | 'internal_beta') | undefined;
|
|
1145
1122
|
custom_metadata?: Record<string, string | number | null | boolean> | undefined;
|
|
1146
1123
|
automatically_manage_new_devices?: boolean | undefined;
|
|
@@ -1162,6 +1139,13 @@ export interface Routes {
|
|
|
1162
1139
|
created_at: string;
|
|
1163
1140
|
login_successful: boolean;
|
|
1164
1141
|
status: 'pending' | 'failed' | 'authorized';
|
|
1142
|
+
custom_redirect_url: string | null;
|
|
1143
|
+
custom_redirect_failure_url: string | null;
|
|
1144
|
+
custom_metadata: Record<string, string | number | null | boolean>;
|
|
1145
|
+
automatically_manage_new_devices: boolean;
|
|
1146
|
+
wait_for_device_creation: boolean;
|
|
1147
|
+
authorized_at: string | null;
|
|
1148
|
+
selected_provider: string | null;
|
|
1165
1149
|
};
|
|
1166
1150
|
};
|
|
1167
1151
|
};
|
|
@@ -1199,6 +1183,13 @@ export interface Routes {
|
|
|
1199
1183
|
created_at: string;
|
|
1200
1184
|
login_successful: boolean;
|
|
1201
1185
|
status: 'pending' | 'failed' | 'authorized';
|
|
1186
|
+
custom_redirect_url: string | null;
|
|
1187
|
+
custom_redirect_failure_url: string | null;
|
|
1188
|
+
custom_metadata: Record<string, string | number | null | boolean>;
|
|
1189
|
+
automatically_manage_new_devices: boolean;
|
|
1190
|
+
wait_for_device_creation: boolean;
|
|
1191
|
+
authorized_at: string | null;
|
|
1192
|
+
selected_provider: string | null;
|
|
1202
1193
|
};
|
|
1203
1194
|
};
|
|
1204
1195
|
};
|
|
@@ -1225,6 +1216,13 @@ export interface Routes {
|
|
|
1225
1216
|
created_at: string;
|
|
1226
1217
|
login_successful: boolean;
|
|
1227
1218
|
status: 'pending' | 'failed' | 'authorized';
|
|
1219
|
+
custom_redirect_url: string | null;
|
|
1220
|
+
custom_redirect_failure_url: string | null;
|
|
1221
|
+
custom_metadata: Record<string, string | number | null | boolean>;
|
|
1222
|
+
automatically_manage_new_devices: boolean;
|
|
1223
|
+
wait_for_device_creation: boolean;
|
|
1224
|
+
authorized_at: string | null;
|
|
1225
|
+
selected_provider: string | null;
|
|
1228
1226
|
}>;
|
|
1229
1227
|
};
|
|
1230
1228
|
};
|
|
@@ -2433,6 +2431,9 @@ export interface Routes {
|
|
|
2433
2431
|
model: {
|
|
2434
2432
|
display_name: string;
|
|
2435
2433
|
manufacturer_display_name: string;
|
|
2434
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
2435
|
+
access_codes_supported?: boolean | undefined;
|
|
2436
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
2436
2437
|
};
|
|
2437
2438
|
has_direct_power?: boolean | undefined;
|
|
2438
2439
|
battery_level?: number | undefined;
|
|
@@ -2444,7 +2445,13 @@ export interface Routes {
|
|
|
2444
2445
|
image_url?: string | undefined;
|
|
2445
2446
|
image_alt_text?: string | undefined;
|
|
2446
2447
|
serial_number?: string | undefined;
|
|
2448
|
+
/** Currently possible to use online access codes */
|
|
2449
|
+
online_access_codes_enabled?: boolean | undefined;
|
|
2450
|
+
/** Currently possible to use offline access codes */
|
|
2451
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
2452
|
+
/** Deprecated: use model.offline_access_codes_enabled. */
|
|
2447
2453
|
supports_accessory_keypad?: boolean | undefined;
|
|
2454
|
+
/** Deprecated: use model.accessory_keypad_supported. */
|
|
2448
2455
|
supports_offline_access_codes?: boolean | undefined;
|
|
2449
2456
|
} & {
|
|
2450
2457
|
august_metadata?: {
|
|
@@ -2821,6 +2828,9 @@ export interface Routes {
|
|
|
2821
2828
|
model: {
|
|
2822
2829
|
display_name: string;
|
|
2823
2830
|
manufacturer_display_name: string;
|
|
2831
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
2832
|
+
access_codes_supported?: boolean | undefined;
|
|
2833
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
2824
2834
|
};
|
|
2825
2835
|
has_direct_power?: boolean | undefined;
|
|
2826
2836
|
battery_level?: number | undefined;
|
|
@@ -2832,7 +2842,13 @@ export interface Routes {
|
|
|
2832
2842
|
image_url?: string | undefined;
|
|
2833
2843
|
image_alt_text?: string | undefined;
|
|
2834
2844
|
serial_number?: string | undefined;
|
|
2845
|
+
/** Currently possible to use online access codes */
|
|
2846
|
+
online_access_codes_enabled?: boolean | undefined;
|
|
2847
|
+
/** Currently possible to use offline access codes */
|
|
2848
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
2849
|
+
/** Deprecated: use model.offline_access_codes_enabled. */
|
|
2835
2850
|
supports_accessory_keypad?: boolean | undefined;
|
|
2851
|
+
/** Deprecated: use model.accessory_keypad_supported. */
|
|
2836
2852
|
supports_offline_access_codes?: boolean | undefined;
|
|
2837
2853
|
} & {
|
|
2838
2854
|
august_metadata?: {
|
|
@@ -3231,6 +3247,9 @@ export interface Routes {
|
|
|
3231
3247
|
model: {
|
|
3232
3248
|
display_name: string;
|
|
3233
3249
|
manufacturer_display_name: string;
|
|
3250
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
3251
|
+
access_codes_supported?: boolean | undefined;
|
|
3252
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
3234
3253
|
};
|
|
3235
3254
|
has_direct_power?: boolean | undefined;
|
|
3236
3255
|
battery_level?: number | undefined;
|
|
@@ -3242,7 +3261,13 @@ export interface Routes {
|
|
|
3242
3261
|
image_url?: string | undefined;
|
|
3243
3262
|
image_alt_text?: string | undefined;
|
|
3244
3263
|
serial_number?: string | undefined;
|
|
3264
|
+
/** Currently possible to use online access codes */
|
|
3265
|
+
online_access_codes_enabled?: boolean | undefined;
|
|
3266
|
+
/** Currently possible to use offline access codes */
|
|
3267
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
3268
|
+
/** Deprecated: use model.offline_access_codes_enabled. */
|
|
3245
3269
|
supports_accessory_keypad?: boolean | undefined;
|
|
3270
|
+
/** Deprecated: use model.accessory_keypad_supported. */
|
|
3246
3271
|
supports_offline_access_codes?: boolean | undefined;
|
|
3247
3272
|
} & {
|
|
3248
3273
|
august_metadata?: {
|
|
@@ -3619,6 +3644,9 @@ export interface Routes {
|
|
|
3619
3644
|
model: {
|
|
3620
3645
|
display_name: string;
|
|
3621
3646
|
manufacturer_display_name: string;
|
|
3647
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
3648
|
+
access_codes_supported?: boolean | undefined;
|
|
3649
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
3622
3650
|
};
|
|
3623
3651
|
has_direct_power?: boolean | undefined;
|
|
3624
3652
|
battery_level?: number | undefined;
|
|
@@ -3630,7 +3658,13 @@ export interface Routes {
|
|
|
3630
3658
|
image_url?: string | undefined;
|
|
3631
3659
|
image_alt_text?: string | undefined;
|
|
3632
3660
|
serial_number?: string | undefined;
|
|
3661
|
+
/** Currently possible to use online access codes */
|
|
3662
|
+
online_access_codes_enabled?: boolean | undefined;
|
|
3663
|
+
/** Currently possible to use offline access codes */
|
|
3664
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
3665
|
+
/** Deprecated: use model.offline_access_codes_enabled. */
|
|
3633
3666
|
supports_accessory_keypad?: boolean | undefined;
|
|
3667
|
+
/** Deprecated: use model.accessory_keypad_supported. */
|
|
3634
3668
|
supports_offline_access_codes?: boolean | undefined;
|
|
3635
3669
|
} & {
|
|
3636
3670
|
august_metadata?: {
|
|
@@ -5802,7 +5836,7 @@ export interface Routes {
|
|
|
5802
5836
|
workspace_id: string;
|
|
5803
5837
|
created_at: string;
|
|
5804
5838
|
display_name: string;
|
|
5805
|
-
external_type: 'pti_user';
|
|
5839
|
+
external_type: 'pti_user' | 'brivo_user';
|
|
5806
5840
|
external_type_display_name: string;
|
|
5807
5841
|
is_suspended: boolean;
|
|
5808
5842
|
full_name?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { ConnectWebview } from './models/index.js';
|
|
1
|
+
export type { ConnectWebview, CustomMetadata } from './models/index.js';
|
|
@@ -12,6 +12,13 @@ export declare const connect_webview: z.ZodObject<{
|
|
|
12
12
|
created_at: z.ZodString;
|
|
13
13
|
login_successful: z.ZodBoolean;
|
|
14
14
|
status: z.ZodEnum<["pending", "failed", "authorized"]>;
|
|
15
|
+
custom_redirect_url: z.ZodNullable<z.ZodString>;
|
|
16
|
+
custom_redirect_failure_url: z.ZodNullable<z.ZodString>;
|
|
17
|
+
custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull, z.ZodBoolean]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>;
|
|
18
|
+
automatically_manage_new_devices: z.ZodBoolean;
|
|
19
|
+
wait_for_device_creation: z.ZodBoolean;
|
|
20
|
+
authorized_at: z.ZodNullable<z.ZodString>;
|
|
21
|
+
selected_provider: z.ZodNullable<z.ZodString>;
|
|
15
22
|
}, "strip", z.ZodTypeAny, {
|
|
16
23
|
url: string;
|
|
17
24
|
status: "failed" | "pending" | "authorized";
|
|
@@ -24,6 +31,13 @@ export declare const connect_webview: z.ZodObject<{
|
|
|
24
31
|
any_device_allowed: boolean;
|
|
25
32
|
created_at: string;
|
|
26
33
|
login_successful: boolean;
|
|
34
|
+
custom_redirect_url: string | null;
|
|
35
|
+
custom_redirect_failure_url: string | null;
|
|
36
|
+
custom_metadata: Record<string, string | number | boolean | null>;
|
|
37
|
+
automatically_manage_new_devices: boolean;
|
|
38
|
+
wait_for_device_creation: boolean;
|
|
39
|
+
authorized_at: string | null;
|
|
40
|
+
selected_provider: string | null;
|
|
27
41
|
connected_account_id?: string | undefined;
|
|
28
42
|
}, {
|
|
29
43
|
url: string;
|
|
@@ -37,6 +51,13 @@ export declare const connect_webview: z.ZodObject<{
|
|
|
37
51
|
any_device_allowed: boolean;
|
|
38
52
|
created_at: string;
|
|
39
53
|
login_successful: boolean;
|
|
54
|
+
custom_redirect_url: string | null;
|
|
55
|
+
custom_redirect_failure_url: string | null;
|
|
56
|
+
custom_metadata: Record<string, string | number | boolean | null>;
|
|
57
|
+
automatically_manage_new_devices: boolean;
|
|
58
|
+
wait_for_device_creation: boolean;
|
|
59
|
+
authorized_at: string | null;
|
|
60
|
+
selected_provider: string | null;
|
|
40
61
|
connected_account_id?: string | undefined;
|
|
41
62
|
}>;
|
|
42
63
|
export type ConnectWebview = z.infer<typeof connect_webview>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { custom_metadata } from './custom-metadata.js';
|
|
2
3
|
export const connect_webview = z.object({
|
|
3
4
|
connect_webview_id: z.string().uuid(),
|
|
4
5
|
connected_account_id: z.string().uuid().optional(),
|
|
@@ -12,5 +13,12 @@ export const connect_webview = z.object({
|
|
|
12
13
|
created_at: z.string().datetime(),
|
|
13
14
|
login_successful: z.boolean(),
|
|
14
15
|
status: z.enum(['pending', 'failed', 'authorized']),
|
|
16
|
+
custom_redirect_url: z.string().url().nullable(),
|
|
17
|
+
custom_redirect_failure_url: z.string().url().nullable(),
|
|
18
|
+
custom_metadata,
|
|
19
|
+
automatically_manage_new_devices: z.boolean(),
|
|
20
|
+
wait_for_device_creation: z.boolean(),
|
|
21
|
+
authorized_at: z.string().datetime().nullable(),
|
|
22
|
+
selected_provider: z.string().nullable(),
|
|
15
23
|
});
|
|
16
24
|
//# sourceMappingURL=connect-webview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-webview.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/stable/models/connect-webview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAClD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,qBAAqB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC7D,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACvC,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACrC,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE;IACjC,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC7B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"connect-webview.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/stable/models/connect-webview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAClD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,qBAAqB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC7D,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACvC,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACrC,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE;IACjC,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC7B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;IACnD,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAChD,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxD,eAAe;IACf,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE;IAC7C,wBAAwB,EAAE,CAAC,CAAC,OAAO,EAAE;IACrC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull, z.ZodBoolean]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>;
|
|
3
|
+
export type CustomMetadata = z.infer<typeof custom_metadata>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const custom_metadata = z
|
|
3
|
+
.record(z.string().max(40), z.union([z.string().max(500), z.number(), z.null(), z.boolean()]))
|
|
4
|
+
.refine((val) => Object.keys(val).length <= 50, {
|
|
5
|
+
message: 'Custom metadata is limited to a maximum of 50 keys',
|
|
6
|
+
});
|
|
7
|
+
//# sourceMappingURL=custom-metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-metadata.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/stable/models/custom-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CACL,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAClB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAClE;KACA,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,IAAI,EAAE,EAAE;IAC9C,OAAO,EAAE,oDAAoD;CAC9D,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/stable/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/stable/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { connect_webview } from './models/index.js';
|
|
1
|
+
export { connect_webview, custom_metadata } from './models/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { connect_webview } from './models/index.js';
|
|
1
|
+
export { connect_webview, custom_metadata } from './models/index.js';
|
|
2
2
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/stable/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/stable/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const acs_credential_external_type: z.ZodEnum<["pti_card"]>;
|
|
2
|
+
export declare const acs_credential_external_type: z.ZodEnum<["pti_card", "brivo_credential"]>;
|
|
3
3
|
export type AcsCredentialExternalType = z.infer<typeof acs_credential_external_type>;
|
|
4
4
|
export declare const acs_credential: z.ZodObject<{
|
|
5
5
|
acs_credential_id: z.ZodString;
|
|
6
|
-
acs_user_id: z.ZodString
|
|
6
|
+
acs_user_id: z.ZodOptional<z.ZodString>;
|
|
7
7
|
acs_system_id: z.ZodString;
|
|
8
8
|
code: z.ZodNullable<z.ZodString>;
|
|
9
|
-
external_type: z.ZodEnum<["pti_card"]>;
|
|
9
|
+
external_type: z.ZodEnum<["pti_card", "brivo_credential"]>;
|
|
10
10
|
external_type_display_name: z.ZodString;
|
|
11
11
|
created_at: z.ZodString;
|
|
12
12
|
workspace_id: z.ZodString;
|
|
@@ -15,18 +15,18 @@ export declare const acs_credential: z.ZodObject<{
|
|
|
15
15
|
workspace_id: string;
|
|
16
16
|
created_at: string;
|
|
17
17
|
acs_system_id: string;
|
|
18
|
-
external_type: "pti_card";
|
|
18
|
+
external_type: "pti_card" | "brivo_credential";
|
|
19
19
|
external_type_display_name: string;
|
|
20
|
-
acs_user_id: string;
|
|
21
20
|
acs_credential_id: string;
|
|
21
|
+
acs_user_id?: string | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
code: string | null;
|
|
24
24
|
workspace_id: string;
|
|
25
25
|
created_at: string;
|
|
26
26
|
acs_system_id: string;
|
|
27
|
-
external_type: "pti_card";
|
|
27
|
+
external_type: "pti_card" | "brivo_credential";
|
|
28
28
|
external_type_display_name: string;
|
|
29
|
-
acs_user_id: string;
|
|
30
29
|
acs_credential_id: string;
|
|
30
|
+
acs_user_id?: string | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
export type AcsCredential = z.output<typeof acs_credential>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export const acs_credential_external_type = z.enum([
|
|
2
|
+
export const acs_credential_external_type = z.enum([
|
|
3
|
+
'pti_card',
|
|
4
|
+
'brivo_credential',
|
|
5
|
+
]);
|
|
3
6
|
export const acs_credential = z.object({
|
|
4
7
|
acs_credential_id: z.string().uuid(),
|
|
5
|
-
acs_user_id: z.string().uuid(),
|
|
8
|
+
acs_user_id: z.string().uuid().optional(),
|
|
6
9
|
acs_system_id: z.string().uuid(),
|
|
7
10
|
code: z.string().nullable(),
|
|
8
11
|
external_type: acs_credential_external_type,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"credential.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;CACnB,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACpC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACzC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,aAAa,EAAE,4BAA4B;IAC3C,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;IACtC,iFAAiF;IACjF,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAChC,CAAC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const acs_user_external_type: z.ZodEnum<["pti_user"]>;
|
|
2
|
+
export declare const acs_user_external_type: z.ZodEnum<["pti_user", "brivo_user"]>;
|
|
3
3
|
export type AcsUserExternalType = z.infer<typeof acs_user_external_type>;
|
|
4
4
|
export declare const acs_user: z.ZodObject<{
|
|
5
5
|
workspace_id: z.ZodString;
|
|
6
6
|
created_at: z.ZodString;
|
|
7
7
|
acs_system_id: z.ZodString;
|
|
8
|
-
external_type: z.ZodEnum<["pti_user"]>;
|
|
8
|
+
external_type: z.ZodEnum<["pti_user", "brivo_user"]>;
|
|
9
9
|
external_type_display_name: z.ZodString;
|
|
10
10
|
acs_user_id: z.ZodString;
|
|
11
11
|
display_name: z.ZodString;
|
|
@@ -18,7 +18,7 @@ export declare const acs_user: z.ZodObject<{
|
|
|
18
18
|
workspace_id: string;
|
|
19
19
|
created_at: string;
|
|
20
20
|
acs_system_id: string;
|
|
21
|
-
external_type: "pti_user";
|
|
21
|
+
external_type: "pti_user" | "brivo_user";
|
|
22
22
|
external_type_display_name: string;
|
|
23
23
|
acs_user_id: string;
|
|
24
24
|
display_name: string;
|
|
@@ -31,7 +31,7 @@ export declare const acs_user: z.ZodObject<{
|
|
|
31
31
|
workspace_id: string;
|
|
32
32
|
created_at: string;
|
|
33
33
|
acs_system_id: string;
|
|
34
|
-
external_type: "pti_user";
|
|
34
|
+
external_type: "pti_user" | "brivo_user";
|
|
35
35
|
external_type_display_name: string;
|
|
36
36
|
acs_user_id: string;
|
|
37
37
|
display_name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC,CAAA;AAIxE,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM;KAC1B,MAAM,EAAE;KACR,IAAI,EAAE;KACN,MAAM,CACL,CAAC,GAAG,EAAE,EAAE;IACN,iDAAiD;IACjD,OAAO,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACtC,CAAC,EACD;IACE,OAAO,EAAE,oDAAoD;CAC9D,CACF,CAAA;AAEH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,KAAK,EAAE;SACP,QAAQ,EAAE;SACV,QAAQ,CAAC,gCAAgC,CAAC;IAC7C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,sBAAsB;IACrC,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;IACtC,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC;KACD,KAAK,CAAC,WAAW,CAAC,CAAA"}
|