@seamapi/types 1.34.0 → 1.36.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 +39 -147
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +94 -224
- package/lib/seam/connect/openapi.d.ts +63 -193
- package/lib/seam/connect/openapi.js +38 -146
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +31 -31
- package/lib/seam/connect/unstable/model-types.d.ts +1 -1
- package/lib/seam/connect/unstable/models/access-codes/index.d.ts +2 -0
- package/lib/seam/connect/unstable/models/access-codes/index.js +3 -0
- package/lib/seam/connect/unstable/models/access-codes/index.js.map +1 -0
- package/lib/seam/connect/unstable/models/access-codes/managed-access-code.d.ts +63 -0
- package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js +23 -0
- package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js.map +1 -0
- package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.d.ts +42 -0
- package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.js +21 -0
- package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.js.map +1 -0
- package/lib/seam/connect/unstable/models/acs/system.d.ts +7 -7
- package/lib/seam/connect/unstable/models/acs/system.js +5 -1
- package/lib/seam/connect/unstable/models/acs/system.js.map +1 -1
- package/lib/seam/connect/unstable/models/capability-properties/index.d.ts +2 -2
- package/lib/seam/connect/unstable/models/capability-properties/index.js +2 -2
- package/lib/seam/connect/unstable/models/capability-properties/index.js.map +1 -1
- package/lib/seam/connect/unstable/models/devices/capabilities-supported.js.map +1 -0
- package/lib/seam/connect/unstable/models/{device-metadata.d.ts → devices/device-metadata.d.ts} +1 -0
- package/lib/seam/connect/unstable/models/devices/device-metadata.js.map +1 -0
- package/lib/seam/connect/unstable/models/devices/device-type.js.map +1 -0
- package/lib/seam/connect/unstable/models/devices/index.d.ts +5 -0
- package/lib/seam/connect/unstable/models/devices/index.js +6 -0
- package/lib/seam/connect/unstable/models/devices/index.js.map +1 -0
- package/lib/seam/connect/unstable/models/{managed-device.d.ts → devices/managed-device.d.ts} +10 -0
- package/lib/seam/connect/unstable/models/{managed-device.js → devices/managed-device.js} +2 -1
- package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -0
- package/lib/seam/connect/unstable/models/devices/unmanaged-device.js.map +1 -0
- package/lib/seam/connect/unstable/models/index.d.ts +2 -4
- package/lib/seam/connect/unstable/models/index.js +2 -4
- package/lib/seam/connect/unstable/models/index.js.map +1 -1
- package/lib/seam/connect/unstable/schemas.d.ts +1 -1
- package/lib/seam/connect/unstable/schemas.js +1 -1
- package/lib/seam/connect/unstable/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +38 -146
- package/src/lib/seam/connect/route-types.ts +37 -39
- package/src/lib/seam/connect/unstable/model-types.ts +3 -0
- package/src/lib/seam/connect/unstable/models/access-codes/index.ts +2 -0
- package/src/lib/seam/connect/unstable/models/access-codes/managed-access-code.ts +25 -0
- package/src/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.ts +24 -0
- package/src/lib/seam/connect/unstable/models/acs/system.ts +5 -1
- package/src/lib/seam/connect/unstable/models/capability-properties/index.ts +2 -0
- package/src/lib/seam/connect/unstable/models/{device-metadata.ts → devices/device-metadata.ts} +2 -0
- package/src/lib/seam/connect/unstable/models/devices/index.ts +5 -0
- package/src/lib/seam/connect/unstable/models/{managed-device.ts → devices/managed-device.ts} +2 -1
- package/src/lib/seam/connect/unstable/models/index.ts +2 -4
- package/src/lib/seam/connect/unstable/schemas.ts +4 -0
- package/lib/seam/connect/unstable/models/capabilities-supported.js.map +0 -1
- package/lib/seam/connect/unstable/models/device-metadata.js.map +0 -1
- package/lib/seam/connect/unstable/models/device-type.js.map +0 -1
- package/lib/seam/connect/unstable/models/managed-device.js.map +0 -1
- package/lib/seam/connect/unstable/models/unmanaged-device.js.map +0 -1
- /package/lib/seam/connect/unstable/models/{capabilities-supported.d.ts → devices/capabilities-supported.d.ts} +0 -0
- /package/lib/seam/connect/unstable/models/{capabilities-supported.js → devices/capabilities-supported.js} +0 -0
- /package/lib/seam/connect/unstable/models/{device-metadata.js → devices/device-metadata.js} +0 -0
- /package/lib/seam/connect/unstable/models/{device-type.d.ts → devices/device-type.d.ts} +0 -0
- /package/lib/seam/connect/unstable/models/{device-type.js → devices/device-type.js} +0 -0
- /package/lib/seam/connect/unstable/models/{unmanaged-device.d.ts → devices/unmanaged-device.d.ts} +0 -0
- /package/lib/seam/connect/unstable/models/{unmanaged-device.js → devices/unmanaged-device.js} +0 -0
- /package/src/lib/seam/connect/unstable/models/{capabilities-supported.ts → devices/capabilities-supported.ts} +0 -0
- /package/src/lib/seam/connect/unstable/models/{device-type.ts → devices/device-type.ts} +0 -0
- /package/src/lib/seam/connect/unstable/models/{unmanaged-device.ts → devices/unmanaged-device.ts} +0 -0
|
@@ -25,6 +25,7 @@ declare const _default: {
|
|
|
25
25
|
};
|
|
26
26
|
ends_at: {
|
|
27
27
|
format: string;
|
|
28
|
+
nullable: boolean;
|
|
28
29
|
type: string;
|
|
29
30
|
};
|
|
30
31
|
errors: {
|
|
@@ -60,6 +61,7 @@ declare const _default: {
|
|
|
60
61
|
};
|
|
61
62
|
starts_at: {
|
|
62
63
|
format: string;
|
|
64
|
+
nullable: boolean;
|
|
63
65
|
type: string;
|
|
64
66
|
};
|
|
65
67
|
status: {
|
|
@@ -632,6 +634,9 @@ declare const _default: {
|
|
|
632
634
|
supports_accessory_keypad: {
|
|
633
635
|
type: string;
|
|
634
636
|
};
|
|
637
|
+
supports_offline_access_codes: {
|
|
638
|
+
type: string;
|
|
639
|
+
};
|
|
635
640
|
august_metadata?: never;
|
|
636
641
|
avigilon_alta_metadata?: never;
|
|
637
642
|
brivo_metadata?: never;
|
|
@@ -1140,6 +1145,7 @@ declare const _default: {
|
|
|
1140
1145
|
online?: never;
|
|
1141
1146
|
serial_number?: never;
|
|
1142
1147
|
supports_accessory_keypad?: never;
|
|
1148
|
+
supports_offline_access_codes?: never;
|
|
1143
1149
|
};
|
|
1144
1150
|
type: string;
|
|
1145
1151
|
required?: never;
|
|
@@ -1898,6 +1904,60 @@ declare const _default: {
|
|
|
1898
1904
|
required: string[];
|
|
1899
1905
|
type: string;
|
|
1900
1906
|
};
|
|
1907
|
+
unmanaged_access_code: {
|
|
1908
|
+
properties: {
|
|
1909
|
+
access_code_id: {
|
|
1910
|
+
format: string;
|
|
1911
|
+
type: string;
|
|
1912
|
+
};
|
|
1913
|
+
code: {
|
|
1914
|
+
nullable: boolean;
|
|
1915
|
+
type: string;
|
|
1916
|
+
};
|
|
1917
|
+
created_at: {
|
|
1918
|
+
format: string;
|
|
1919
|
+
type: string;
|
|
1920
|
+
};
|
|
1921
|
+
device_id: {
|
|
1922
|
+
format: string;
|
|
1923
|
+
type: string;
|
|
1924
|
+
};
|
|
1925
|
+
ends_at: {
|
|
1926
|
+
format: string;
|
|
1927
|
+
nullable: boolean;
|
|
1928
|
+
type: string;
|
|
1929
|
+
};
|
|
1930
|
+
errors: {
|
|
1931
|
+
nullable: boolean;
|
|
1932
|
+
};
|
|
1933
|
+
is_managed: {
|
|
1934
|
+
enum: boolean[];
|
|
1935
|
+
type: string;
|
|
1936
|
+
};
|
|
1937
|
+
name: {
|
|
1938
|
+
nullable: boolean;
|
|
1939
|
+
type: string;
|
|
1940
|
+
};
|
|
1941
|
+
starts_at: {
|
|
1942
|
+
format: string;
|
|
1943
|
+
nullable: boolean;
|
|
1944
|
+
type: string;
|
|
1945
|
+
};
|
|
1946
|
+
status: {
|
|
1947
|
+
enum: string[];
|
|
1948
|
+
type: string;
|
|
1949
|
+
};
|
|
1950
|
+
type: {
|
|
1951
|
+
enum: string[];
|
|
1952
|
+
type: string;
|
|
1953
|
+
};
|
|
1954
|
+
warnings: {
|
|
1955
|
+
nullable: boolean;
|
|
1956
|
+
};
|
|
1957
|
+
};
|
|
1958
|
+
required: string[];
|
|
1959
|
+
type: string;
|
|
1960
|
+
};
|
|
1901
1961
|
unmanaged_device: {
|
|
1902
1962
|
properties: {
|
|
1903
1963
|
capabilities_supported: {
|
|
@@ -2805,95 +2865,7 @@ declare const _default: {
|
|
|
2805
2865
|
schema: {
|
|
2806
2866
|
properties: {
|
|
2807
2867
|
access_code: {
|
|
2808
|
-
|
|
2809
|
-
properties: {
|
|
2810
|
-
access_code_id: {
|
|
2811
|
-
format: string;
|
|
2812
|
-
type: string;
|
|
2813
|
-
};
|
|
2814
|
-
code: {
|
|
2815
|
-
nullable: boolean;
|
|
2816
|
-
type: string;
|
|
2817
|
-
};
|
|
2818
|
-
created_at: {
|
|
2819
|
-
oneOf: ({
|
|
2820
|
-
type: string;
|
|
2821
|
-
format?: never;
|
|
2822
|
-
} | {
|
|
2823
|
-
format: string;
|
|
2824
|
-
type: string;
|
|
2825
|
-
})[];
|
|
2826
|
-
};
|
|
2827
|
-
ends_at: {
|
|
2828
|
-
format: string;
|
|
2829
|
-
nullable: boolean;
|
|
2830
|
-
type: string;
|
|
2831
|
-
};
|
|
2832
|
-
is_managed: {
|
|
2833
|
-
enum: boolean[];
|
|
2834
|
-
type: string;
|
|
2835
|
-
};
|
|
2836
|
-
starts_at: {
|
|
2837
|
-
format: string;
|
|
2838
|
-
nullable: boolean;
|
|
2839
|
-
type: string;
|
|
2840
|
-
};
|
|
2841
|
-
status: {
|
|
2842
|
-
enum: string[];
|
|
2843
|
-
type: string;
|
|
2844
|
-
};
|
|
2845
|
-
type: {
|
|
2846
|
-
enum: string[];
|
|
2847
|
-
type: string;
|
|
2848
|
-
};
|
|
2849
|
-
};
|
|
2850
|
-
required: string[];
|
|
2851
|
-
type: string;
|
|
2852
|
-
} | {
|
|
2853
|
-
properties: {
|
|
2854
|
-
access_code_id: {
|
|
2855
|
-
format: string;
|
|
2856
|
-
type: string;
|
|
2857
|
-
};
|
|
2858
|
-
code: {
|
|
2859
|
-
nullable: boolean;
|
|
2860
|
-
type: string;
|
|
2861
|
-
};
|
|
2862
|
-
created_at: {
|
|
2863
|
-
oneOf: ({
|
|
2864
|
-
type: string;
|
|
2865
|
-
format?: never;
|
|
2866
|
-
} | {
|
|
2867
|
-
format: string;
|
|
2868
|
-
type: string;
|
|
2869
|
-
})[];
|
|
2870
|
-
};
|
|
2871
|
-
ends_at: {
|
|
2872
|
-
nullable: boolean;
|
|
2873
|
-
type: string;
|
|
2874
|
-
format?: never;
|
|
2875
|
-
};
|
|
2876
|
-
is_managed: {
|
|
2877
|
-
enum: boolean[];
|
|
2878
|
-
type: string;
|
|
2879
|
-
};
|
|
2880
|
-
starts_at: {
|
|
2881
|
-
nullable: boolean;
|
|
2882
|
-
type: string;
|
|
2883
|
-
format?: never;
|
|
2884
|
-
};
|
|
2885
|
-
status: {
|
|
2886
|
-
enum: string[];
|
|
2887
|
-
type: string;
|
|
2888
|
-
};
|
|
2889
|
-
type: {
|
|
2890
|
-
enum: string[];
|
|
2891
|
-
type: string;
|
|
2892
|
-
};
|
|
2893
|
-
};
|
|
2894
|
-
required: string[];
|
|
2895
|
-
type: string;
|
|
2896
|
-
})[];
|
|
2868
|
+
$ref: string;
|
|
2897
2869
|
};
|
|
2898
2870
|
ok: {
|
|
2899
2871
|
type: string;
|
|
@@ -3194,58 +3166,7 @@ declare const _default: {
|
|
|
3194
3166
|
schema: {
|
|
3195
3167
|
properties: {
|
|
3196
3168
|
access_code: {
|
|
3197
|
-
|
|
3198
|
-
access_code_id: {
|
|
3199
|
-
format: string;
|
|
3200
|
-
type: string;
|
|
3201
|
-
};
|
|
3202
|
-
code: {
|
|
3203
|
-
nullable: boolean;
|
|
3204
|
-
type: string;
|
|
3205
|
-
};
|
|
3206
|
-
created_at: {
|
|
3207
|
-
format: string;
|
|
3208
|
-
type: string;
|
|
3209
|
-
};
|
|
3210
|
-
device_id: {
|
|
3211
|
-
format: string;
|
|
3212
|
-
type: string;
|
|
3213
|
-
};
|
|
3214
|
-
ends_at: {
|
|
3215
|
-
format: string;
|
|
3216
|
-
nullable: boolean;
|
|
3217
|
-
type: string;
|
|
3218
|
-
};
|
|
3219
|
-
errors: {
|
|
3220
|
-
nullable: boolean;
|
|
3221
|
-
};
|
|
3222
|
-
is_managed: {
|
|
3223
|
-
enum: boolean[];
|
|
3224
|
-
type: string;
|
|
3225
|
-
};
|
|
3226
|
-
name: {
|
|
3227
|
-
nullable: boolean;
|
|
3228
|
-
type: string;
|
|
3229
|
-
};
|
|
3230
|
-
starts_at: {
|
|
3231
|
-
format: string;
|
|
3232
|
-
nullable: boolean;
|
|
3233
|
-
type: string;
|
|
3234
|
-
};
|
|
3235
|
-
status: {
|
|
3236
|
-
enum: string[];
|
|
3237
|
-
type: string;
|
|
3238
|
-
};
|
|
3239
|
-
type: {
|
|
3240
|
-
enum: string[];
|
|
3241
|
-
type: string;
|
|
3242
|
-
};
|
|
3243
|
-
warnings: {
|
|
3244
|
-
nullable: boolean;
|
|
3245
|
-
};
|
|
3246
|
-
};
|
|
3247
|
-
required: string[];
|
|
3248
|
-
type: string;
|
|
3169
|
+
$ref: string;
|
|
3249
3170
|
};
|
|
3250
3171
|
ok: {
|
|
3251
3172
|
type: string;
|
|
@@ -3318,58 +3239,7 @@ declare const _default: {
|
|
|
3318
3239
|
properties: {
|
|
3319
3240
|
access_codes: {
|
|
3320
3241
|
items: {
|
|
3321
|
-
|
|
3322
|
-
access_code_id: {
|
|
3323
|
-
format: string;
|
|
3324
|
-
type: string;
|
|
3325
|
-
};
|
|
3326
|
-
code: {
|
|
3327
|
-
nullable: boolean;
|
|
3328
|
-
type: string;
|
|
3329
|
-
};
|
|
3330
|
-
created_at: {
|
|
3331
|
-
format: string;
|
|
3332
|
-
type: string;
|
|
3333
|
-
};
|
|
3334
|
-
device_id: {
|
|
3335
|
-
format: string;
|
|
3336
|
-
type: string;
|
|
3337
|
-
};
|
|
3338
|
-
ends_at: {
|
|
3339
|
-
format: string;
|
|
3340
|
-
nullable: boolean;
|
|
3341
|
-
type: string;
|
|
3342
|
-
};
|
|
3343
|
-
errors: {
|
|
3344
|
-
nullable: boolean;
|
|
3345
|
-
};
|
|
3346
|
-
is_managed: {
|
|
3347
|
-
enum: boolean[];
|
|
3348
|
-
type: string;
|
|
3349
|
-
};
|
|
3350
|
-
name: {
|
|
3351
|
-
nullable: boolean;
|
|
3352
|
-
type: string;
|
|
3353
|
-
};
|
|
3354
|
-
starts_at: {
|
|
3355
|
-
format: string;
|
|
3356
|
-
nullable: boolean;
|
|
3357
|
-
type: string;
|
|
3358
|
-
};
|
|
3359
|
-
status: {
|
|
3360
|
-
enum: string[];
|
|
3361
|
-
type: string;
|
|
3362
|
-
};
|
|
3363
|
-
type: {
|
|
3364
|
-
enum: string[];
|
|
3365
|
-
type: string;
|
|
3366
|
-
};
|
|
3367
|
-
warnings: {
|
|
3368
|
-
nullable: boolean;
|
|
3369
|
-
};
|
|
3370
|
-
};
|
|
3371
|
-
required: string[];
|
|
3372
|
-
type: string;
|
|
3242
|
+
$ref: string;
|
|
3373
3243
|
};
|
|
3374
3244
|
type: string;
|
|
3375
3245
|
};
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
common_code_key: { nullable: true, type: 'string' },
|
|
9
9
|
created_at: { format: 'date-time', type: 'string' },
|
|
10
10
|
device_id: { format: 'uuid', type: 'string' },
|
|
11
|
-
ends_at: { format: 'date-time', type: 'string' },
|
|
11
|
+
ends_at: { format: 'date-time', nullable: true, type: 'string' },
|
|
12
12
|
errors: { nullable: true },
|
|
13
13
|
is_backup: { type: 'boolean' },
|
|
14
14
|
is_backup_access_code_available: { type: 'boolean' },
|
|
@@ -22,7 +22,7 @@ export default {
|
|
|
22
22
|
nullable: true,
|
|
23
23
|
type: 'string',
|
|
24
24
|
},
|
|
25
|
-
starts_at: { format: 'date-time', type: 'string' },
|
|
25
|
+
starts_at: { format: 'date-time', nullable: true, type: 'string' },
|
|
26
26
|
status: {
|
|
27
27
|
enum: ['setting', 'set', 'unset', 'removing', 'unknown'],
|
|
28
28
|
type: 'string',
|
|
@@ -95,12 +95,15 @@ export default {
|
|
|
95
95
|
acs_system_id: { format: 'uuid', type: 'string' },
|
|
96
96
|
connected_account_ids: { items: { type: 'string' }, type: 'array' },
|
|
97
97
|
created_at: { format: 'date-time', type: 'string' },
|
|
98
|
-
external_type: {
|
|
98
|
+
external_type: {
|
|
99
|
+
enum: ['pti_site', 'alta_org', 'brivo_system'],
|
|
100
|
+
type: 'string',
|
|
101
|
+
},
|
|
99
102
|
external_type_display_name: { type: 'string' },
|
|
100
103
|
name: { type: 'string' },
|
|
101
104
|
system_type: {
|
|
102
105
|
description: 'deprecated: use external_type',
|
|
103
|
-
enum: ['pti_site', 'alta_org'],
|
|
106
|
+
enum: ['pti_site', 'alta_org', 'brivo_system'],
|
|
104
107
|
type: 'string',
|
|
105
108
|
},
|
|
106
109
|
system_type_display_name: {
|
|
@@ -444,6 +447,7 @@ export default {
|
|
|
444
447
|
online: { type: 'boolean' },
|
|
445
448
|
serial_number: { type: 'string' },
|
|
446
449
|
supports_accessory_keypad: { type: 'boolean' },
|
|
450
|
+
supports_offline_access_codes: { type: 'boolean' },
|
|
447
451
|
},
|
|
448
452
|
required: ['online', 'name', 'model'],
|
|
449
453
|
type: 'object',
|
|
@@ -1335,6 +1339,33 @@ export default {
|
|
|
1335
1339
|
required: ['service', 'status', 'description'],
|
|
1336
1340
|
type: 'object',
|
|
1337
1341
|
},
|
|
1342
|
+
unmanaged_access_code: {
|
|
1343
|
+
properties: {
|
|
1344
|
+
access_code_id: { format: 'uuid', type: 'string' },
|
|
1345
|
+
code: { nullable: true, type: 'string' },
|
|
1346
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
1347
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
1348
|
+
ends_at: { format: 'date-time', nullable: true, type: 'string' },
|
|
1349
|
+
errors: { nullable: true },
|
|
1350
|
+
is_managed: { enum: [false], type: 'boolean' },
|
|
1351
|
+
name: { nullable: true, type: 'string' },
|
|
1352
|
+
starts_at: { format: 'date-time', nullable: true, type: 'string' },
|
|
1353
|
+
status: { enum: ['set'], type: 'string' },
|
|
1354
|
+
type: { enum: ['time_bound', 'ongoing'], type: 'string' },
|
|
1355
|
+
warnings: { nullable: true },
|
|
1356
|
+
},
|
|
1357
|
+
required: [
|
|
1358
|
+
'type',
|
|
1359
|
+
'access_code_id',
|
|
1360
|
+
'device_id',
|
|
1361
|
+
'name',
|
|
1362
|
+
'code',
|
|
1363
|
+
'created_at',
|
|
1364
|
+
'is_managed',
|
|
1365
|
+
'status',
|
|
1366
|
+
],
|
|
1367
|
+
type: 'object',
|
|
1368
|
+
},
|
|
1338
1369
|
unmanaged_device: {
|
|
1339
1370
|
properties: {
|
|
1340
1371
|
capabilities_supported: {
|
|
@@ -1995,72 +2026,7 @@ export default {
|
|
|
1995
2026
|
schema: {
|
|
1996
2027
|
properties: {
|
|
1997
2028
|
access_code: {
|
|
1998
|
-
|
|
1999
|
-
{
|
|
2000
|
-
properties: {
|
|
2001
|
-
access_code_id: { format: 'uuid', type: 'string' },
|
|
2002
|
-
code: { nullable: true, type: 'string' },
|
|
2003
|
-
created_at: {
|
|
2004
|
-
oneOf: [
|
|
2005
|
-
{ type: 'string' },
|
|
2006
|
-
{ format: 'date-time', type: 'string' },
|
|
2007
|
-
],
|
|
2008
|
-
},
|
|
2009
|
-
ends_at: {
|
|
2010
|
-
format: 'null',
|
|
2011
|
-
nullable: true,
|
|
2012
|
-
type: 'string',
|
|
2013
|
-
},
|
|
2014
|
-
is_managed: { enum: [false], type: 'boolean' },
|
|
2015
|
-
starts_at: {
|
|
2016
|
-
format: 'null',
|
|
2017
|
-
nullable: true,
|
|
2018
|
-
type: 'string',
|
|
2019
|
-
},
|
|
2020
|
-
status: { enum: ['set'], type: 'string' },
|
|
2021
|
-
type: { enum: ['ongoing'], type: 'string' },
|
|
2022
|
-
},
|
|
2023
|
-
required: [
|
|
2024
|
-
'access_code_id',
|
|
2025
|
-
'code',
|
|
2026
|
-
'status',
|
|
2027
|
-
'created_at',
|
|
2028
|
-
'is_managed',
|
|
2029
|
-
'type',
|
|
2030
|
-
'starts_at',
|
|
2031
|
-
'ends_at',
|
|
2032
|
-
],
|
|
2033
|
-
type: 'object',
|
|
2034
|
-
},
|
|
2035
|
-
{
|
|
2036
|
-
properties: {
|
|
2037
|
-
access_code_id: { format: 'uuid', type: 'string' },
|
|
2038
|
-
code: { nullable: true, type: 'string' },
|
|
2039
|
-
created_at: {
|
|
2040
|
-
oneOf: [
|
|
2041
|
-
{ type: 'string' },
|
|
2042
|
-
{ format: 'date-time', type: 'string' },
|
|
2043
|
-
],
|
|
2044
|
-
},
|
|
2045
|
-
ends_at: { nullable: true, type: 'string' },
|
|
2046
|
-
is_managed: { enum: [false], type: 'boolean' },
|
|
2047
|
-
starts_at: { nullable: true, type: 'string' },
|
|
2048
|
-
status: { enum: ['set'], type: 'string' },
|
|
2049
|
-
type: { enum: ['time_bound'], type: 'string' },
|
|
2050
|
-
},
|
|
2051
|
-
required: [
|
|
2052
|
-
'access_code_id',
|
|
2053
|
-
'code',
|
|
2054
|
-
'status',
|
|
2055
|
-
'created_at',
|
|
2056
|
-
'is_managed',
|
|
2057
|
-
'type',
|
|
2058
|
-
'starts_at',
|
|
2059
|
-
'ends_at',
|
|
2060
|
-
],
|
|
2061
|
-
type: 'object',
|
|
2062
|
-
},
|
|
2063
|
-
],
|
|
2029
|
+
$ref: '#/components/schemas/unmanaged_access_code',
|
|
2064
2030
|
},
|
|
2065
2031
|
ok: { type: 'boolean' },
|
|
2066
2032
|
},
|
|
@@ -2251,44 +2217,7 @@ export default {
|
|
|
2251
2217
|
schema: {
|
|
2252
2218
|
properties: {
|
|
2253
2219
|
access_code: {
|
|
2254
|
-
|
|
2255
|
-
access_code_id: { format: 'uuid', type: 'string' },
|
|
2256
|
-
code: { nullable: true, type: 'string' },
|
|
2257
|
-
created_at: { format: 'date-time', type: 'string' },
|
|
2258
|
-
device_id: { format: 'uuid', type: 'string' },
|
|
2259
|
-
ends_at: {
|
|
2260
|
-
format: 'date-time',
|
|
2261
|
-
nullable: true,
|
|
2262
|
-
type: 'string',
|
|
2263
|
-
},
|
|
2264
|
-
errors: { nullable: true },
|
|
2265
|
-
is_managed: { enum: [false], type: 'boolean' },
|
|
2266
|
-
name: { nullable: true, type: 'string' },
|
|
2267
|
-
starts_at: {
|
|
2268
|
-
format: 'date-time',
|
|
2269
|
-
nullable: true,
|
|
2270
|
-
type: 'string',
|
|
2271
|
-
},
|
|
2272
|
-
status: { enum: ['set'], type: 'string' },
|
|
2273
|
-
type: {
|
|
2274
|
-
enum: ['time_bound', 'ongoing'],
|
|
2275
|
-
type: 'string',
|
|
2276
|
-
},
|
|
2277
|
-
warnings: { nullable: true },
|
|
2278
|
-
},
|
|
2279
|
-
required: [
|
|
2280
|
-
'type',
|
|
2281
|
-
'access_code_id',
|
|
2282
|
-
'device_id',
|
|
2283
|
-
'name',
|
|
2284
|
-
'code',
|
|
2285
|
-
'created_at',
|
|
2286
|
-
'is_managed',
|
|
2287
|
-
'starts_at',
|
|
2288
|
-
'ends_at',
|
|
2289
|
-
'status',
|
|
2290
|
-
],
|
|
2291
|
-
type: 'object',
|
|
2220
|
+
$ref: '#/components/schemas/unmanaged_access_code',
|
|
2292
2221
|
},
|
|
2293
2222
|
ok: { type: 'boolean' },
|
|
2294
2223
|
},
|
|
@@ -2339,44 +2268,7 @@ export default {
|
|
|
2339
2268
|
properties: {
|
|
2340
2269
|
access_codes: {
|
|
2341
2270
|
items: {
|
|
2342
|
-
|
|
2343
|
-
access_code_id: { format: 'uuid', type: 'string' },
|
|
2344
|
-
code: { nullable: true, type: 'string' },
|
|
2345
|
-
created_at: { format: 'date-time', type: 'string' },
|
|
2346
|
-
device_id: { format: 'uuid', type: 'string' },
|
|
2347
|
-
ends_at: {
|
|
2348
|
-
format: 'date-time',
|
|
2349
|
-
nullable: true,
|
|
2350
|
-
type: 'string',
|
|
2351
|
-
},
|
|
2352
|
-
errors: { nullable: true },
|
|
2353
|
-
is_managed: { enum: [false], type: 'boolean' },
|
|
2354
|
-
name: { nullable: true, type: 'string' },
|
|
2355
|
-
starts_at: {
|
|
2356
|
-
format: 'date-time',
|
|
2357
|
-
nullable: true,
|
|
2358
|
-
type: 'string',
|
|
2359
|
-
},
|
|
2360
|
-
status: { enum: ['set'], type: 'string' },
|
|
2361
|
-
type: {
|
|
2362
|
-
enum: ['time_bound', 'ongoing'],
|
|
2363
|
-
type: 'string',
|
|
2364
|
-
},
|
|
2365
|
-
warnings: { nullable: true },
|
|
2366
|
-
},
|
|
2367
|
-
required: [
|
|
2368
|
-
'type',
|
|
2369
|
-
'access_code_id',
|
|
2370
|
-
'device_id',
|
|
2371
|
-
'name',
|
|
2372
|
-
'code',
|
|
2373
|
-
'created_at',
|
|
2374
|
-
'is_managed',
|
|
2375
|
-
'starts_at',
|
|
2376
|
-
'ends_at',
|
|
2377
|
-
'status',
|
|
2378
|
-
],
|
|
2379
|
-
type: 'object',
|
|
2271
|
+
$ref: '#/components/schemas/unmanaged_access_code',
|
|
2380
2272
|
},
|
|
2381
2273
|
type: 'array',
|
|
2382
2274
|
},
|