@seamapi/types 1.44.0 → 1.45.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 +24 -182
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +45 -330
- package/lib/seam/connect/openapi.d.ts +41 -280
- package/lib/seam/connect/openapi.js +22 -180
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +4 -50
- package/lib/seam/connect/unstable/models/acs/credential.d.ts +3 -0
- package/lib/seam/connect/unstable/models/acs/credential.js +1 -1
- package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +22 -180
- package/src/lib/seam/connect/route-types.ts +4 -57
- package/src/lib/seam/connect/unstable/models/acs/credential.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';
|
|
@@ -619,18 +582,6 @@ export interface Routes {
|
|
|
619
582
|
formData: {};
|
|
620
583
|
jsonResponse: {};
|
|
621
584
|
};
|
|
622
|
-
'/acs/access_groups/update': {
|
|
623
|
-
route: '/acs/access_groups/update';
|
|
624
|
-
method: 'PATCH' | 'POST';
|
|
625
|
-
queryParams: {};
|
|
626
|
-
jsonBody: {};
|
|
627
|
-
commonParams: {
|
|
628
|
-
acs_access_group_id: string;
|
|
629
|
-
name?: (string | null) | undefined;
|
|
630
|
-
};
|
|
631
|
-
formData: {};
|
|
632
|
-
jsonResponse: {};
|
|
633
|
-
};
|
|
634
585
|
'/acs/credentials/assign': {
|
|
635
586
|
route: '/acs/credentials/assign';
|
|
636
587
|
method: 'PATCH' | 'POST';
|
|
@@ -658,6 +609,7 @@ export interface Routes {
|
|
|
658
609
|
acs_credential_id: string;
|
|
659
610
|
acs_user_id?: string | undefined;
|
|
660
611
|
acs_system_id: string;
|
|
612
|
+
display_name: string;
|
|
661
613
|
code: string | null;
|
|
662
614
|
external_type: 'pti_card' | 'brivo_credential';
|
|
663
615
|
external_type_display_name: string;
|
|
@@ -691,6 +643,7 @@ export interface Routes {
|
|
|
691
643
|
acs_credential_id: string;
|
|
692
644
|
acs_user_id?: string | undefined;
|
|
693
645
|
acs_system_id: string;
|
|
646
|
+
display_name: string;
|
|
694
647
|
code: string | null;
|
|
695
648
|
external_type: 'pti_card' | 'brivo_credential';
|
|
696
649
|
external_type_display_name: string;
|
|
@@ -718,6 +671,7 @@ export interface Routes {
|
|
|
718
671
|
acs_credential_id: string;
|
|
719
672
|
acs_user_id?: string | undefined;
|
|
720
673
|
acs_system_id: string;
|
|
674
|
+
display_name: string;
|
|
721
675
|
code: string | null;
|
|
722
676
|
external_type: 'pti_card' | 'brivo_credential';
|
|
723
677
|
external_type_display_name: string;
|
|
@@ -1166,7 +1120,7 @@ export interface Routes {
|
|
|
1166
1120
|
device_selection_mode?: ('none' | 'single' | 'multiple') | undefined;
|
|
1167
1121
|
custom_redirect_url?: string | undefined;
|
|
1168
1122
|
custom_redirect_failure_url?: string | undefined;
|
|
1169
|
-
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;
|
|
1123
|
+
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;
|
|
1170
1124
|
provider_category?: ('stable' | 'consumer_smartlocks' | 'internal_beta') | undefined;
|
|
1171
1125
|
custom_metadata?: Record<string, string | number | null | boolean> | undefined;
|
|
1172
1126
|
automatically_manage_new_devices?: boolean | undefined;
|
|
@@ -5,6 +5,7 @@ export declare const acs_credential: z.ZodObject<{
|
|
|
5
5
|
acs_credential_id: z.ZodString;
|
|
6
6
|
acs_user_id: z.ZodOptional<z.ZodString>;
|
|
7
7
|
acs_system_id: z.ZodString;
|
|
8
|
+
display_name: z.ZodString;
|
|
8
9
|
code: z.ZodNullable<z.ZodString>;
|
|
9
10
|
external_type: z.ZodEnum<["pti_card", "brivo_credential"]>;
|
|
10
11
|
external_type_display_name: z.ZodString;
|
|
@@ -17,6 +18,7 @@ export declare const acs_credential: z.ZodObject<{
|
|
|
17
18
|
acs_system_id: string;
|
|
18
19
|
external_type: "pti_card" | "brivo_credential";
|
|
19
20
|
external_type_display_name: string;
|
|
21
|
+
display_name: string;
|
|
20
22
|
acs_credential_id: string;
|
|
21
23
|
acs_user_id?: string | undefined;
|
|
22
24
|
}, {
|
|
@@ -26,6 +28,7 @@ export declare const acs_credential: z.ZodObject<{
|
|
|
26
28
|
acs_system_id: string;
|
|
27
29
|
external_type: "pti_card" | "brivo_credential";
|
|
28
30
|
external_type_display_name: string;
|
|
31
|
+
display_name: string;
|
|
29
32
|
acs_credential_id: string;
|
|
30
33
|
acs_user_id?: string | undefined;
|
|
31
34
|
}>;
|
|
@@ -7,10 +7,10 @@ export const acs_credential = z.object({
|
|
|
7
7
|
acs_credential_id: z.string().uuid(),
|
|
8
8
|
acs_user_id: z.string().uuid().optional(),
|
|
9
9
|
acs_system_id: z.string().uuid(),
|
|
10
|
+
display_name: z.string().nonempty(),
|
|
10
11
|
code: z.string().nullable(),
|
|
11
12
|
external_type: acs_credential_external_type,
|
|
12
13
|
external_type_display_name: z.string(),
|
|
13
|
-
// TODO: credential_type: z.enum([...]) we don't know what enum types we want yet
|
|
14
14
|
created_at: z.string().datetime(),
|
|
15
15
|
workspace_id: z.string().uuid(),
|
|
16
16
|
});
|
|
@@ -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;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,
|
|
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,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,aAAa,EAAE,4BAA4B;IAC3C,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAChC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1583,6 +1583,12 @@ export default {
|
|
|
1583
1583
|
scheme: 'bearer',
|
|
1584
1584
|
type: 'http',
|
|
1585
1585
|
},
|
|
1586
|
+
api_key: { bearerFormat: 'API Key', scheme: 'bearer', type: 'http' },
|
|
1587
|
+
client_session: {
|
|
1588
|
+
bearerFormat: 'Client Session Token',
|
|
1589
|
+
scheme: 'bearer',
|
|
1590
|
+
type: 'http',
|
|
1591
|
+
},
|
|
1586
1592
|
client_session_token: {
|
|
1587
1593
|
in: 'header',
|
|
1588
1594
|
name: 'client-session-token',
|
|
@@ -1594,6 +1600,11 @@ export default {
|
|
|
1594
1600
|
type: 'apiKey',
|
|
1595
1601
|
},
|
|
1596
1602
|
seam_workspace: { in: 'header', name: 'seam-workspace', type: 'apiKey' },
|
|
1603
|
+
user_session: {
|
|
1604
|
+
bearerFormat: 'User Session Token',
|
|
1605
|
+
scheme: 'bearer',
|
|
1606
|
+
type: 'http',
|
|
1607
|
+
},
|
|
1597
1608
|
},
|
|
1598
1609
|
},
|
|
1599
1610
|
info: { title: 'Seam Connect', version: '1.0.0' },
|
|
@@ -1970,9 +1981,10 @@ export default {
|
|
|
1970
1981
|
401: { description: 'Unauthorized' },
|
|
1971
1982
|
},
|
|
1972
1983
|
security: [
|
|
1973
|
-
{
|
|
1974
|
-
{
|
|
1975
|
-
{
|
|
1984
|
+
{ api_key: [] },
|
|
1985
|
+
{ access_token: [] },
|
|
1986
|
+
{ user_session: [] },
|
|
1987
|
+
{ client_session: [] },
|
|
1976
1988
|
],
|
|
1977
1989
|
summary: '/access_codes/get',
|
|
1978
1990
|
tags: ['/access_codes'],
|
|
@@ -2783,98 +2795,6 @@ export default {
|
|
|
2783
2795
|
'x-fern-ignore': true,
|
|
2784
2796
|
},
|
|
2785
2797
|
},
|
|
2786
|
-
'/acs/access_groups/create': {
|
|
2787
|
-
post: {
|
|
2788
|
-
operationId: 'acsAccessGroupsCreatePost',
|
|
2789
|
-
requestBody: {
|
|
2790
|
-
content: {
|
|
2791
|
-
'application/json': {
|
|
2792
|
-
schema: {
|
|
2793
|
-
properties: {
|
|
2794
|
-
acs_system_id: { format: 'uuid', type: 'string' },
|
|
2795
|
-
name: { type: 'string' },
|
|
2796
|
-
},
|
|
2797
|
-
required: ['acs_system_id'],
|
|
2798
|
-
type: 'object',
|
|
2799
|
-
},
|
|
2800
|
-
},
|
|
2801
|
-
},
|
|
2802
|
-
},
|
|
2803
|
-
responses: {
|
|
2804
|
-
200: {
|
|
2805
|
-
content: {
|
|
2806
|
-
'application/json': {
|
|
2807
|
-
schema: {
|
|
2808
|
-
properties: {
|
|
2809
|
-
acs_access_group: {
|
|
2810
|
-
$ref: '#/components/schemas/acs_access_group',
|
|
2811
|
-
},
|
|
2812
|
-
ok: { type: 'boolean' },
|
|
2813
|
-
},
|
|
2814
|
-
required: ['acs_access_group', 'ok'],
|
|
2815
|
-
type: 'object',
|
|
2816
|
-
},
|
|
2817
|
-
},
|
|
2818
|
-
},
|
|
2819
|
-
description: 'OK',
|
|
2820
|
-
},
|
|
2821
|
-
400: { description: 'Bad Request' },
|
|
2822
|
-
401: { description: 'Unauthorized' },
|
|
2823
|
-
},
|
|
2824
|
-
security: [
|
|
2825
|
-
{ access_token: [], seam_workspace: [] },
|
|
2826
|
-
{ seam_client_session_token: [] },
|
|
2827
|
-
{ client_session_token: [] },
|
|
2828
|
-
],
|
|
2829
|
-
summary: '/acs/access_groups/create',
|
|
2830
|
-
tags: [],
|
|
2831
|
-
'x-fern-sdk-group-name': ['acs', 'access_groups'],
|
|
2832
|
-
'x-fern-sdk-method-name': 'create',
|
|
2833
|
-
},
|
|
2834
|
-
},
|
|
2835
|
-
'/acs/access_groups/delete': {
|
|
2836
|
-
post: {
|
|
2837
|
-
operationId: 'acsAccessGroupsDeletePost',
|
|
2838
|
-
requestBody: {
|
|
2839
|
-
content: {
|
|
2840
|
-
'application/json': {
|
|
2841
|
-
schema: {
|
|
2842
|
-
properties: {
|
|
2843
|
-
acs_access_group_id: { format: 'uuid', type: 'string' },
|
|
2844
|
-
},
|
|
2845
|
-
required: ['acs_access_group_id'],
|
|
2846
|
-
type: 'object',
|
|
2847
|
-
},
|
|
2848
|
-
},
|
|
2849
|
-
},
|
|
2850
|
-
},
|
|
2851
|
-
responses: {
|
|
2852
|
-
200: {
|
|
2853
|
-
content: {
|
|
2854
|
-
'application/json': {
|
|
2855
|
-
schema: {
|
|
2856
|
-
properties: { ok: { type: 'boolean' } },
|
|
2857
|
-
required: ['ok'],
|
|
2858
|
-
type: 'object',
|
|
2859
|
-
},
|
|
2860
|
-
},
|
|
2861
|
-
},
|
|
2862
|
-
description: 'OK',
|
|
2863
|
-
},
|
|
2864
|
-
400: { description: 'Bad Request' },
|
|
2865
|
-
401: { description: 'Unauthorized' },
|
|
2866
|
-
},
|
|
2867
|
-
security: [
|
|
2868
|
-
{ access_token: [], seam_workspace: [] },
|
|
2869
|
-
{ seam_client_session_token: [] },
|
|
2870
|
-
{ client_session_token: [] },
|
|
2871
|
-
],
|
|
2872
|
-
summary: '/acs/access_groups/delete',
|
|
2873
|
-
tags: [],
|
|
2874
|
-
'x-fern-sdk-group-name': ['acs', 'access_groups'],
|
|
2875
|
-
'x-fern-sdk-method-name': 'delete',
|
|
2876
|
-
},
|
|
2877
|
-
},
|
|
2878
2798
|
'/acs/access_groups/get': {
|
|
2879
2799
|
post: {
|
|
2880
2800
|
operationId: 'acsAccessGroupsGetPost',
|
|
@@ -3065,91 +2985,6 @@ export default {
|
|
|
3065
2985
|
'x-fern-sdk-method-name': 'remove_user',
|
|
3066
2986
|
},
|
|
3067
2987
|
},
|
|
3068
|
-
'/acs/access_groups/update': {
|
|
3069
|
-
patch: {
|
|
3070
|
-
operationId: 'acsAccessGroupsUpdatePatch',
|
|
3071
|
-
requestBody: {
|
|
3072
|
-
content: {
|
|
3073
|
-
'application/json': {
|
|
3074
|
-
schema: {
|
|
3075
|
-
properties: {
|
|
3076
|
-
acs_access_group_id: { format: 'uuid', type: 'string' },
|
|
3077
|
-
name: { nullable: true, type: 'string' },
|
|
3078
|
-
},
|
|
3079
|
-
required: ['acs_access_group_id'],
|
|
3080
|
-
type: 'object',
|
|
3081
|
-
},
|
|
3082
|
-
},
|
|
3083
|
-
},
|
|
3084
|
-
},
|
|
3085
|
-
responses: {
|
|
3086
|
-
200: {
|
|
3087
|
-
content: {
|
|
3088
|
-
'application/json': {
|
|
3089
|
-
schema: {
|
|
3090
|
-
properties: { ok: { type: 'boolean' } },
|
|
3091
|
-
required: ['ok'],
|
|
3092
|
-
type: 'object',
|
|
3093
|
-
},
|
|
3094
|
-
},
|
|
3095
|
-
},
|
|
3096
|
-
description: 'OK',
|
|
3097
|
-
},
|
|
3098
|
-
400: { description: 'Bad Request' },
|
|
3099
|
-
401: { description: 'Unauthorized' },
|
|
3100
|
-
},
|
|
3101
|
-
security: [
|
|
3102
|
-
{ access_token: [], seam_workspace: [] },
|
|
3103
|
-
{ seam_client_session_token: [] },
|
|
3104
|
-
{ client_session_token: [] },
|
|
3105
|
-
],
|
|
3106
|
-
summary: '/acs/access_groups/update',
|
|
3107
|
-
tags: [],
|
|
3108
|
-
'x-fern-ignore': true,
|
|
3109
|
-
},
|
|
3110
|
-
post: {
|
|
3111
|
-
operationId: 'acsAccessGroupsUpdatePost',
|
|
3112
|
-
requestBody: {
|
|
3113
|
-
content: {
|
|
3114
|
-
'application/json': {
|
|
3115
|
-
schema: {
|
|
3116
|
-
properties: {
|
|
3117
|
-
acs_access_group_id: { format: 'uuid', type: 'string' },
|
|
3118
|
-
name: { nullable: true, type: 'string' },
|
|
3119
|
-
},
|
|
3120
|
-
required: ['acs_access_group_id'],
|
|
3121
|
-
type: 'object',
|
|
3122
|
-
},
|
|
3123
|
-
},
|
|
3124
|
-
},
|
|
3125
|
-
},
|
|
3126
|
-
responses: {
|
|
3127
|
-
200: {
|
|
3128
|
-
content: {
|
|
3129
|
-
'application/json': {
|
|
3130
|
-
schema: {
|
|
3131
|
-
properties: { ok: { type: 'boolean' } },
|
|
3132
|
-
required: ['ok'],
|
|
3133
|
-
type: 'object',
|
|
3134
|
-
},
|
|
3135
|
-
},
|
|
3136
|
-
},
|
|
3137
|
-
description: 'OK',
|
|
3138
|
-
},
|
|
3139
|
-
400: { description: 'Bad Request' },
|
|
3140
|
-
401: { description: 'Unauthorized' },
|
|
3141
|
-
},
|
|
3142
|
-
security: [
|
|
3143
|
-
{ access_token: [], seam_workspace: [] },
|
|
3144
|
-
{ seam_client_session_token: [] },
|
|
3145
|
-
{ client_session_token: [] },
|
|
3146
|
-
],
|
|
3147
|
-
summary: '/acs/access_groups/update',
|
|
3148
|
-
tags: [],
|
|
3149
|
-
'x-fern-sdk-group-name': ['acs', 'access_groups'],
|
|
3150
|
-
'x-fern-sdk-method-name': 'update',
|
|
3151
|
-
},
|
|
3152
|
-
},
|
|
3153
2988
|
'/acs/credentials/assign': {
|
|
3154
2989
|
patch: {
|
|
3155
2990
|
operationId: 'acsCredentialsAssignPatch',
|
|
@@ -3265,6 +3100,7 @@ export default {
|
|
|
3265
3100
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
3266
3101
|
code: { nullable: true, type: 'string' },
|
|
3267
3102
|
created_at: { format: 'date-time', type: 'string' },
|
|
3103
|
+
display_name: { minLength: 1, type: 'string' },
|
|
3268
3104
|
external_type: {
|
|
3269
3105
|
enum: ['pti_card', 'brivo_credential'],
|
|
3270
3106
|
type: 'string',
|
|
@@ -3275,6 +3111,7 @@ export default {
|
|
|
3275
3111
|
required: [
|
|
3276
3112
|
'acs_credential_id',
|
|
3277
3113
|
'acs_system_id',
|
|
3114
|
+
'display_name',
|
|
3278
3115
|
'code',
|
|
3279
3116
|
'external_type',
|
|
3280
3117
|
'external_type_display_name',
|
|
@@ -3378,6 +3215,7 @@ export default {
|
|
|
3378
3215
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
3379
3216
|
code: { nullable: true, type: 'string' },
|
|
3380
3217
|
created_at: { format: 'date-time', type: 'string' },
|
|
3218
|
+
display_name: { minLength: 1, type: 'string' },
|
|
3381
3219
|
external_type: {
|
|
3382
3220
|
enum: ['pti_card', 'brivo_credential'],
|
|
3383
3221
|
type: 'string',
|
|
@@ -3388,6 +3226,7 @@ export default {
|
|
|
3388
3226
|
required: [
|
|
3389
3227
|
'acs_credential_id',
|
|
3390
3228
|
'acs_system_id',
|
|
3229
|
+
'display_name',
|
|
3391
3230
|
'code',
|
|
3392
3231
|
'external_type',
|
|
3393
3232
|
'external_type_display_name',
|
|
@@ -3468,6 +3307,7 @@ export default {
|
|
|
3468
3307
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
3469
3308
|
code: { nullable: true, type: 'string' },
|
|
3470
3309
|
created_at: { format: 'date-time', type: 'string' },
|
|
3310
|
+
display_name: { minLength: 1, type: 'string' },
|
|
3471
3311
|
external_type: {
|
|
3472
3312
|
enum: ['pti_card', 'brivo_credential'],
|
|
3473
3313
|
type: 'string',
|
|
@@ -3478,6 +3318,7 @@ export default {
|
|
|
3478
3318
|
required: [
|
|
3479
3319
|
'acs_credential_id',
|
|
3480
3320
|
'acs_system_id',
|
|
3321
|
+
'display_name',
|
|
3481
3322
|
'code',
|
|
3482
3323
|
'external_type',
|
|
3483
3324
|
'external_type_display_name',
|
|
@@ -4841,6 +4682,7 @@ export default {
|
|
|
4841
4682
|
'wyze',
|
|
4842
4683
|
'seam_passport',
|
|
4843
4684
|
'yale_access',
|
|
4685
|
+
'hid_cm',
|
|
4844
4686
|
],
|
|
4845
4687
|
type: 'string',
|
|
4846
4688
|
},
|
|
@@ -504,51 +504,6 @@ export interface Routes {
|
|
|
504
504
|
formData: {}
|
|
505
505
|
jsonResponse: {}
|
|
506
506
|
}
|
|
507
|
-
'/acs/access_groups/create': {
|
|
508
|
-
route: '/acs/access_groups/create'
|
|
509
|
-
method: 'POST'
|
|
510
|
-
queryParams: {}
|
|
511
|
-
jsonBody: {}
|
|
512
|
-
commonParams: {
|
|
513
|
-
acs_system_id: string
|
|
514
|
-
name?: string | undefined
|
|
515
|
-
}
|
|
516
|
-
formData: {}
|
|
517
|
-
jsonResponse: {
|
|
518
|
-
acs_access_group: {
|
|
519
|
-
acs_access_group_id: string
|
|
520
|
-
acs_system_id: string
|
|
521
|
-
workspace_id: string
|
|
522
|
-
name: string
|
|
523
|
-
/** deprecated: use external_type */
|
|
524
|
-
access_group_type:
|
|
525
|
-
| 'pti_unit'
|
|
526
|
-
| 'pti_access_level'
|
|
527
|
-
| 'salto_access_group'
|
|
528
|
-
| 'brivo_group'
|
|
529
|
-
/** deprecated: use external_type_display_name */
|
|
530
|
-
access_group_type_display_name: string
|
|
531
|
-
external_type:
|
|
532
|
-
| 'pti_unit'
|
|
533
|
-
| 'pti_access_level'
|
|
534
|
-
| 'salto_access_group'
|
|
535
|
-
| 'brivo_group'
|
|
536
|
-
external_type_display_name: string
|
|
537
|
-
created_at: string
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
'/acs/access_groups/delete': {
|
|
542
|
-
route: '/acs/access_groups/delete'
|
|
543
|
-
method: 'DELETE' | 'POST'
|
|
544
|
-
queryParams: {}
|
|
545
|
-
jsonBody: {}
|
|
546
|
-
commonParams: {
|
|
547
|
-
acs_access_group_id: string
|
|
548
|
-
}
|
|
549
|
-
formData: {}
|
|
550
|
-
jsonResponse: {}
|
|
551
|
-
}
|
|
552
507
|
'/acs/access_groups/get': {
|
|
553
508
|
route: '/acs/access_groups/get'
|
|
554
509
|
method: 'GET' | 'POST'
|
|
@@ -655,18 +610,6 @@ export interface Routes {
|
|
|
655
610
|
formData: {}
|
|
656
611
|
jsonResponse: {}
|
|
657
612
|
}
|
|
658
|
-
'/acs/access_groups/update': {
|
|
659
|
-
route: '/acs/access_groups/update'
|
|
660
|
-
method: 'PATCH' | 'POST'
|
|
661
|
-
queryParams: {}
|
|
662
|
-
jsonBody: {}
|
|
663
|
-
commonParams: {
|
|
664
|
-
acs_access_group_id: string
|
|
665
|
-
name?: (string | null) | undefined
|
|
666
|
-
}
|
|
667
|
-
formData: {}
|
|
668
|
-
jsonResponse: {}
|
|
669
|
-
}
|
|
670
613
|
'/acs/credentials/assign': {
|
|
671
614
|
route: '/acs/credentials/assign'
|
|
672
615
|
method: 'PATCH' | 'POST'
|
|
@@ -694,6 +637,7 @@ export interface Routes {
|
|
|
694
637
|
acs_credential_id: string
|
|
695
638
|
acs_user_id?: string | undefined
|
|
696
639
|
acs_system_id: string
|
|
640
|
+
display_name: string
|
|
697
641
|
code: string | null
|
|
698
642
|
external_type: 'pti_card' | 'brivo_credential'
|
|
699
643
|
external_type_display_name: string
|
|
@@ -727,6 +671,7 @@ export interface Routes {
|
|
|
727
671
|
acs_credential_id: string
|
|
728
672
|
acs_user_id?: string | undefined
|
|
729
673
|
acs_system_id: string
|
|
674
|
+
display_name: string
|
|
730
675
|
code: string | null
|
|
731
676
|
external_type: 'pti_card' | 'brivo_credential'
|
|
732
677
|
external_type_display_name: string
|
|
@@ -757,6 +702,7 @@ export interface Routes {
|
|
|
757
702
|
acs_credential_id: string
|
|
758
703
|
acs_user_id?: string | undefined
|
|
759
704
|
acs_system_id: string
|
|
705
|
+
display_name: string
|
|
760
706
|
code: string | null
|
|
761
707
|
external_type: 'pti_card' | 'brivo_credential'
|
|
762
708
|
external_type_display_name: string
|
|
@@ -1246,6 +1192,7 @@ export interface Routes {
|
|
|
1246
1192
|
| 'wyze'
|
|
1247
1193
|
| 'seam_passport'
|
|
1248
1194
|
| 'yale_access'
|
|
1195
|
+
| 'hid_cm'
|
|
1249
1196
|
>
|
|
1250
1197
|
| undefined
|
|
1251
1198
|
provider_category?:
|
|
@@ -13,10 +13,10 @@ export const acs_credential = z.object({
|
|
|
13
13
|
acs_credential_id: z.string().uuid(),
|
|
14
14
|
acs_user_id: z.string().uuid().optional(),
|
|
15
15
|
acs_system_id: z.string().uuid(),
|
|
16
|
+
display_name: z.string().nonempty(),
|
|
16
17
|
code: z.string().nullable(),
|
|
17
18
|
external_type: acs_credential_external_type,
|
|
18
19
|
external_type_display_name: z.string(),
|
|
19
|
-
// TODO: credential_type: z.enum([...]) we don't know what enum types we want yet
|
|
20
20
|
created_at: z.string().datetime(),
|
|
21
21
|
workspace_id: z.string().uuid(),
|
|
22
22
|
})
|