@seamapi/types 1.315.0 → 1.317.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 +205 -24
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +878 -28
- package/lib/seam/connect/models/acs/acs-credential.d.ts +66 -0
- package/lib/seam/connect/models/acs/acs-credential.js +12 -0
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.d.ts +10 -7
- package/lib/seam/connect/models/acs/acs-system.js +11 -5
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +132 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +58 -0
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +74 -0
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
- package/lib/seam/connect/models/devices/device-provider.js +1 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +5 -10
- package/lib/seam/connect/openapi.js +182 -15
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +691 -13
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +15 -0
- package/src/lib/seam/connect/models/acs/acs-system.ts +13 -5
- package/src/lib/seam/connect/models/devices/device-provider.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +211 -15
- package/src/lib/seam/connect/route-types.ts +792 -20
package/package.json
CHANGED
|
@@ -70,12 +70,24 @@ const being_deleted = common_acs_credential_warning
|
|
|
70
70
|
})
|
|
71
71
|
.describe('Indicates that this credential is being deleted.')
|
|
72
72
|
|
|
73
|
+
const unknown_issue_with_credential = common_acs_credential_warning
|
|
74
|
+
.extend({
|
|
75
|
+
warning_code: z
|
|
76
|
+
.literal('unknown_issue_with_credential')
|
|
77
|
+
.describe(warning_code_description),
|
|
78
|
+
})
|
|
79
|
+
.describe(
|
|
80
|
+
'An unknown issue occurred while syncing the state of this credential with the provider. ' +
|
|
81
|
+
'This issue may affect the proper functioning of this credential.',
|
|
82
|
+
)
|
|
83
|
+
|
|
73
84
|
const acs_credential_warning = z
|
|
74
85
|
.union([
|
|
75
86
|
waiting_to_be_issued,
|
|
76
87
|
schedule_externally_modified,
|
|
77
88
|
schedule_modified,
|
|
78
89
|
being_deleted,
|
|
90
|
+
unknown_issue_with_credential,
|
|
79
91
|
])
|
|
80
92
|
.describe('Warning associated with the `acs_credential`.')
|
|
81
93
|
|
|
@@ -86,6 +98,9 @@ const acs_credential_warning_map = z.object({
|
|
|
86
98
|
.nullable(),
|
|
87
99
|
schedule_modified: schedule_modified.optional().nullable(),
|
|
88
100
|
being_deleted: being_deleted.optional().nullable(),
|
|
101
|
+
unknown_issue_with_credential: unknown_issue_with_credential
|
|
102
|
+
.optional()
|
|
103
|
+
.nullable(),
|
|
89
104
|
})
|
|
90
105
|
|
|
91
106
|
export type AcsCredentialWarningMap = z.infer<typeof acs_credential_warning_map>
|
|
@@ -45,8 +45,8 @@ export const acs_system_external_type = z.enum([
|
|
|
45
45
|
'visionline_system',
|
|
46
46
|
'assa_abloy_credential_service',
|
|
47
47
|
'latch_building',
|
|
48
|
-
'
|
|
49
|
-
'
|
|
48
|
+
'dormakaba_community_site',
|
|
49
|
+
'legic_connect_credential_service',
|
|
50
50
|
'assa_abloy_vostio',
|
|
51
51
|
'assa_abloy_vostio_credential_service',
|
|
52
52
|
])
|
|
@@ -267,10 +267,18 @@ export const acs_system = z
|
|
|
267
267
|
.describe(
|
|
268
268
|
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.',
|
|
269
269
|
),
|
|
270
|
-
connected_account_ids: z
|
|
271
|
-
|
|
270
|
+
connected_account_ids: z.array(z.string().uuid()).describe(
|
|
271
|
+
`IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the \`acs_system\`.
|
|
272
|
+
---
|
|
273
|
+
deprecated: Use \`connected_account_id\`.
|
|
274
|
+
---
|
|
275
|
+
`,
|
|
276
|
+
),
|
|
277
|
+
connected_account_id: z
|
|
278
|
+
.string()
|
|
279
|
+
.uuid()
|
|
272
280
|
.describe(
|
|
273
|
-
'
|
|
281
|
+
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`.',
|
|
274
282
|
),
|
|
275
283
|
image_url: z
|
|
276
284
|
.string()
|
|
@@ -88,7 +88,6 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
88
88
|
'visionline',
|
|
89
89
|
'assa_abloy_credential_service',
|
|
90
90
|
'latch',
|
|
91
|
-
'assa_abloy_vostio',
|
|
92
91
|
],
|
|
93
92
|
|
|
94
93
|
consumer_smartlocks: [
|
|
@@ -116,6 +115,7 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
116
115
|
'assa_abloy_vostio',
|
|
117
116
|
'assa_abloy_vostio_credential_service',
|
|
118
117
|
'salto_space',
|
|
118
|
+
'assa_abloy_vostio',
|
|
119
119
|
],
|
|
120
120
|
|
|
121
121
|
internal_beta: ALL_DEVICE_PROVIDERS,
|
|
@@ -505,6 +505,31 @@ export default {
|
|
|
505
505
|
required: ['created_at', 'message', 'warning_code'],
|
|
506
506
|
type: 'object',
|
|
507
507
|
},
|
|
508
|
+
{
|
|
509
|
+
description:
|
|
510
|
+
'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
|
|
511
|
+
properties: {
|
|
512
|
+
created_at: {
|
|
513
|
+
description:
|
|
514
|
+
'Date and time at which Seam created the warning.',
|
|
515
|
+
format: 'date-time',
|
|
516
|
+
type: 'string',
|
|
517
|
+
},
|
|
518
|
+
message: {
|
|
519
|
+
description:
|
|
520
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
521
|
+
type: 'string',
|
|
522
|
+
},
|
|
523
|
+
warning_code: {
|
|
524
|
+
description:
|
|
525
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
526
|
+
enum: ['unknown_issue_with_credential'],
|
|
527
|
+
type: 'string',
|
|
528
|
+
},
|
|
529
|
+
},
|
|
530
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
531
|
+
type: 'object',
|
|
532
|
+
},
|
|
508
533
|
],
|
|
509
534
|
},
|
|
510
535
|
type: 'array',
|
|
@@ -747,9 +772,15 @@ export default {
|
|
|
747
772
|
'Indicates whether the `acs_system` supports [removing users from access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-an-access-group). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems).',
|
|
748
773
|
type: 'boolean',
|
|
749
774
|
},
|
|
775
|
+
connected_account_id: {
|
|
776
|
+
description:
|
|
777
|
+
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`.',
|
|
778
|
+
format: 'uuid',
|
|
779
|
+
type: 'string',
|
|
780
|
+
},
|
|
750
781
|
connected_account_ids: {
|
|
751
782
|
description:
|
|
752
|
-
'IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system
|
|
783
|
+
'IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`.\n---\ndeprecated: Use `connected_account_id`.\n---',
|
|
753
784
|
items: { format: 'uuid', type: 'string' },
|
|
754
785
|
type: 'array',
|
|
755
786
|
},
|
|
@@ -936,8 +967,8 @@ export default {
|
|
|
936
967
|
'visionline_system',
|
|
937
968
|
'assa_abloy_credential_service',
|
|
938
969
|
'latch_building',
|
|
939
|
-
'
|
|
940
|
-
'
|
|
970
|
+
'dormakaba_community_site',
|
|
971
|
+
'legic_connect_credential_service',
|
|
941
972
|
'assa_abloy_vostio',
|
|
942
973
|
'assa_abloy_vostio_credential_service',
|
|
943
974
|
],
|
|
@@ -985,8 +1016,8 @@ export default {
|
|
|
985
1016
|
'visionline_system',
|
|
986
1017
|
'assa_abloy_credential_service',
|
|
987
1018
|
'latch_building',
|
|
988
|
-
'
|
|
989
|
-
'
|
|
1019
|
+
'dormakaba_community_site',
|
|
1020
|
+
'legic_connect_credential_service',
|
|
990
1021
|
'assa_abloy_vostio',
|
|
991
1022
|
'assa_abloy_vostio_credential_service',
|
|
992
1023
|
],
|
|
@@ -1089,6 +1120,7 @@ export default {
|
|
|
1089
1120
|
'created_at',
|
|
1090
1121
|
'workspace_id',
|
|
1091
1122
|
'connected_account_ids',
|
|
1123
|
+
'connected_account_id',
|
|
1092
1124
|
'image_url',
|
|
1093
1125
|
'image_alt_text',
|
|
1094
1126
|
'errors',
|
|
@@ -1949,6 +1981,35 @@ export default {
|
|
|
1949
1981
|
],
|
|
1950
1982
|
type: 'object',
|
|
1951
1983
|
},
|
|
1984
|
+
{
|
|
1985
|
+
description:
|
|
1986
|
+
'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
|
|
1987
|
+
properties: {
|
|
1988
|
+
created_at: {
|
|
1989
|
+
description:
|
|
1990
|
+
'Date and time at which Seam created the warning.',
|
|
1991
|
+
format: 'date-time',
|
|
1992
|
+
type: 'string',
|
|
1993
|
+
},
|
|
1994
|
+
message: {
|
|
1995
|
+
description:
|
|
1996
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
1997
|
+
type: 'string',
|
|
1998
|
+
},
|
|
1999
|
+
warning_code: {
|
|
2000
|
+
description:
|
|
2001
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
2002
|
+
enum: ['unknown_issue_with_credential'],
|
|
2003
|
+
type: 'string',
|
|
2004
|
+
},
|
|
2005
|
+
},
|
|
2006
|
+
required: [
|
|
2007
|
+
'created_at',
|
|
2008
|
+
'message',
|
|
2009
|
+
'warning_code',
|
|
2010
|
+
],
|
|
2011
|
+
type: 'object',
|
|
2012
|
+
},
|
|
1952
2013
|
],
|
|
1953
2014
|
},
|
|
1954
2015
|
type: 'array',
|
|
@@ -2247,6 +2308,35 @@ export default {
|
|
|
2247
2308
|
],
|
|
2248
2309
|
type: 'object',
|
|
2249
2310
|
},
|
|
2311
|
+
{
|
|
2312
|
+
description:
|
|
2313
|
+
'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
|
|
2314
|
+
properties: {
|
|
2315
|
+
created_at: {
|
|
2316
|
+
description:
|
|
2317
|
+
'Date and time at which Seam created the warning.',
|
|
2318
|
+
format: 'date-time',
|
|
2319
|
+
type: 'string',
|
|
2320
|
+
},
|
|
2321
|
+
message: {
|
|
2322
|
+
description:
|
|
2323
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
2324
|
+
type: 'string',
|
|
2325
|
+
},
|
|
2326
|
+
warning_code: {
|
|
2327
|
+
description:
|
|
2328
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
2329
|
+
enum: ['unknown_issue_with_credential'],
|
|
2330
|
+
type: 'string',
|
|
2331
|
+
},
|
|
2332
|
+
},
|
|
2333
|
+
required: [
|
|
2334
|
+
'created_at',
|
|
2335
|
+
'message',
|
|
2336
|
+
'warning_code',
|
|
2337
|
+
],
|
|
2338
|
+
type: 'object',
|
|
2339
|
+
},
|
|
2250
2340
|
],
|
|
2251
2341
|
},
|
|
2252
2342
|
type: 'array',
|
|
@@ -2678,6 +2768,35 @@ export default {
|
|
|
2678
2768
|
],
|
|
2679
2769
|
type: 'object',
|
|
2680
2770
|
},
|
|
2771
|
+
{
|
|
2772
|
+
description:
|
|
2773
|
+
'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
|
|
2774
|
+
properties: {
|
|
2775
|
+
created_at: {
|
|
2776
|
+
description:
|
|
2777
|
+
'Date and time at which Seam created the warning.',
|
|
2778
|
+
format: 'date-time',
|
|
2779
|
+
type: 'string',
|
|
2780
|
+
},
|
|
2781
|
+
message: {
|
|
2782
|
+
description:
|
|
2783
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
2784
|
+
type: 'string',
|
|
2785
|
+
},
|
|
2786
|
+
warning_code: {
|
|
2787
|
+
description:
|
|
2788
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
2789
|
+
enum: ['unknown_issue_with_credential'],
|
|
2790
|
+
type: 'string',
|
|
2791
|
+
},
|
|
2792
|
+
},
|
|
2793
|
+
required: [
|
|
2794
|
+
'created_at',
|
|
2795
|
+
'message',
|
|
2796
|
+
'warning_code',
|
|
2797
|
+
],
|
|
2798
|
+
type: 'object',
|
|
2799
|
+
},
|
|
2681
2800
|
],
|
|
2682
2801
|
},
|
|
2683
2802
|
type: 'array',
|
|
@@ -2975,6 +3094,35 @@ export default {
|
|
|
2975
3094
|
],
|
|
2976
3095
|
type: 'object',
|
|
2977
3096
|
},
|
|
3097
|
+
{
|
|
3098
|
+
description:
|
|
3099
|
+
'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
|
|
3100
|
+
properties: {
|
|
3101
|
+
created_at: {
|
|
3102
|
+
description:
|
|
3103
|
+
'Date and time at which Seam created the warning.',
|
|
3104
|
+
format: 'date-time',
|
|
3105
|
+
type: 'string',
|
|
3106
|
+
},
|
|
3107
|
+
message: {
|
|
3108
|
+
description:
|
|
3109
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
3110
|
+
type: 'string',
|
|
3111
|
+
},
|
|
3112
|
+
warning_code: {
|
|
3113
|
+
description:
|
|
3114
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
3115
|
+
enum: ['unknown_issue_with_credential'],
|
|
3116
|
+
type: 'string',
|
|
3117
|
+
},
|
|
3118
|
+
},
|
|
3119
|
+
required: [
|
|
3120
|
+
'created_at',
|
|
3121
|
+
'message',
|
|
3122
|
+
'warning_code',
|
|
3123
|
+
],
|
|
3124
|
+
type: 'object',
|
|
3125
|
+
},
|
|
2978
3126
|
],
|
|
2979
3127
|
},
|
|
2980
3128
|
type: 'array',
|
|
@@ -10552,16 +10700,6 @@ export default {
|
|
|
10552
10700
|
type: 'apiKey',
|
|
10553
10701
|
},
|
|
10554
10702
|
seam_workspace: { in: 'header', name: 'seam-workspace', type: 'apiKey' },
|
|
10555
|
-
user_session: {
|
|
10556
|
-
bearerFormat: 'User Session Token',
|
|
10557
|
-
scheme: 'bearer',
|
|
10558
|
-
type: 'http',
|
|
10559
|
-
},
|
|
10560
|
-
user_session_without_workspace: {
|
|
10561
|
-
bearerFormat: 'User Session Token',
|
|
10562
|
-
scheme: 'bearer',
|
|
10563
|
-
type: 'http',
|
|
10564
|
-
},
|
|
10565
10703
|
},
|
|
10566
10704
|
},
|
|
10567
10705
|
info: { title: 'Seam Connect', version: '1.0.0' },
|
|
@@ -13688,6 +13826,35 @@ export default {
|
|
|
13688
13826
|
],
|
|
13689
13827
|
type: 'object',
|
|
13690
13828
|
},
|
|
13829
|
+
{
|
|
13830
|
+
description:
|
|
13831
|
+
'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
|
|
13832
|
+
properties: {
|
|
13833
|
+
created_at: {
|
|
13834
|
+
description:
|
|
13835
|
+
'Date and time at which Seam created the warning.',
|
|
13836
|
+
format: 'date-time',
|
|
13837
|
+
type: 'string',
|
|
13838
|
+
},
|
|
13839
|
+
message: {
|
|
13840
|
+
description:
|
|
13841
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
13842
|
+
type: 'string',
|
|
13843
|
+
},
|
|
13844
|
+
warning_code: {
|
|
13845
|
+
description:
|
|
13846
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
13847
|
+
enum: ['unknown_issue_with_credential'],
|
|
13848
|
+
type: 'string',
|
|
13849
|
+
},
|
|
13850
|
+
},
|
|
13851
|
+
required: [
|
|
13852
|
+
'created_at',
|
|
13853
|
+
'message',
|
|
13854
|
+
'warning_code',
|
|
13855
|
+
],
|
|
13856
|
+
type: 'object',
|
|
13857
|
+
},
|
|
13691
13858
|
],
|
|
13692
13859
|
},
|
|
13693
13860
|
type: 'array',
|
|
@@ -14089,6 +14256,35 @@ export default {
|
|
|
14089
14256
|
],
|
|
14090
14257
|
type: 'object',
|
|
14091
14258
|
},
|
|
14259
|
+
{
|
|
14260
|
+
description:
|
|
14261
|
+
'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
|
|
14262
|
+
properties: {
|
|
14263
|
+
created_at: {
|
|
14264
|
+
description:
|
|
14265
|
+
'Date and time at which Seam created the warning.',
|
|
14266
|
+
format: 'date-time',
|
|
14267
|
+
type: 'string',
|
|
14268
|
+
},
|
|
14269
|
+
message: {
|
|
14270
|
+
description:
|
|
14271
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
14272
|
+
type: 'string',
|
|
14273
|
+
},
|
|
14274
|
+
warning_code: {
|
|
14275
|
+
description:
|
|
14276
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
14277
|
+
enum: ['unknown_issue_with_credential'],
|
|
14278
|
+
type: 'string',
|
|
14279
|
+
},
|
|
14280
|
+
},
|
|
14281
|
+
required: [
|
|
14282
|
+
'created_at',
|
|
14283
|
+
'message',
|
|
14284
|
+
'warning_code',
|
|
14285
|
+
],
|
|
14286
|
+
type: 'object',
|
|
14287
|
+
},
|
|
14092
14288
|
],
|
|
14093
14289
|
},
|
|
14094
14290
|
type: 'array',
|