@seamapi/types 1.322.2 → 1.323.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 +112 -24
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +59 -10
- package/lib/seam/connect/models/acs/acs-user.d.ts +53 -0
- package/lib/seam/connect/models/acs/acs-user.js +23 -0
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +1 -1
- package/lib/seam/connect/models/devices/device-provider.js +0 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +34 -7
- package/lib/seam/connect/openapi.js +94 -23
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +25 -3
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-user.ts +35 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +0 -1
- package/src/lib/seam/connect/openapi.ts +114 -23
- package/src/lib/seam/connect/route-types.ts +25 -3
package/dist/connect.cjs
CHANGED
|
@@ -1034,7 +1034,6 @@ var PROVIDER_CATEGORY_MAP = {
|
|
|
1034
1034
|
"latch",
|
|
1035
1035
|
"salto_ks",
|
|
1036
1036
|
"assa_abloy_vostio",
|
|
1037
|
-
"assa_abloy_vostio_credential_service",
|
|
1038
1037
|
"salto_space",
|
|
1039
1038
|
"assa_abloy_vostio"
|
|
1040
1039
|
],
|
|
@@ -1739,6 +1738,24 @@ zod.z.object({
|
|
|
1739
1738
|
salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable()
|
|
1740
1739
|
});
|
|
1741
1740
|
var acs_users_warnings = zod.z.union([acs_users_being_deleted, acs_users_salto_ks_user_not_subscribed]).describe("Warning associated with the `acs_user`.");
|
|
1741
|
+
var common_acs_user_modification = zod.z.object({
|
|
1742
|
+
created_at: zod.z.string().datetime().describe("Date and time at which this modification was requested."),
|
|
1743
|
+
message: zod.z.string().describe("Detailed description of the modification.")
|
|
1744
|
+
});
|
|
1745
|
+
var acs_user_suspension_state_modification = common_acs_user_modification.extend({
|
|
1746
|
+
modification_code: zod.z.literal("suspension_state")
|
|
1747
|
+
}).describe(
|
|
1748
|
+
"Indicates that the acs_user's is_suspended state was updated on Seam and will soon be applied on the user on the ACS System"
|
|
1749
|
+
);
|
|
1750
|
+
var acs_user_profile_modification = common_acs_user_modification.extend({
|
|
1751
|
+
modification_code: zod.z.literal("profile")
|
|
1752
|
+
}).describe(
|
|
1753
|
+
"Indicates that the acs_user's profile details (name, email, phone) were updated on Seam and will soon be applied on the user on the ACS System"
|
|
1754
|
+
);
|
|
1755
|
+
zod.z.object({
|
|
1756
|
+
suspension_state: acs_user_suspension_state_modification.optional().nullable(),
|
|
1757
|
+
profile: acs_user_profile_modification.optional().nullable()
|
|
1758
|
+
});
|
|
1742
1759
|
var user_fields = zod.z.object({
|
|
1743
1760
|
full_name: zod.z.string().optional().describe("Full name of the `acs_user`."),
|
|
1744
1761
|
email: zod.z.string().email().optional().describe(`
|
|
@@ -16744,6 +16761,7 @@ var openapi_default = {
|
|
|
16744
16761
|
},
|
|
16745
16762
|
"/acs/encoders/encode_credential": {
|
|
16746
16763
|
post: {
|
|
16764
|
+
description: "Encodes an existing [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) onto a plastic card placed on the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).",
|
|
16747
16765
|
operationId: "acsEncodersEncodeCredentialPost",
|
|
16748
16766
|
requestBody: {
|
|
16749
16767
|
content: {
|
|
@@ -16751,12 +16769,12 @@ var openapi_default = {
|
|
|
16751
16769
|
schema: {
|
|
16752
16770
|
properties: {
|
|
16753
16771
|
acs_credential_id: {
|
|
16754
|
-
description: "ID of the acs_credential to encode
|
|
16772
|
+
description: "ID of the `acs_credential` to encode onto a card.",
|
|
16755
16773
|
format: "uuid",
|
|
16756
16774
|
type: "string"
|
|
16757
16775
|
},
|
|
16758
16776
|
acs_encoder_id: {
|
|
16759
|
-
description: "ID of the acs_encoder to use
|
|
16777
|
+
description: "ID of the `acs_encoder` to use to encode the `acs_credential`.",
|
|
16760
16778
|
format: "uuid",
|
|
16761
16779
|
type: "string"
|
|
16762
16780
|
}
|
|
@@ -16799,11 +16817,12 @@ var openapi_default = {
|
|
|
16799
16817
|
"x-fern-sdk-method-name": "encode_credential",
|
|
16800
16818
|
"x-fern-sdk-return-value": "action_attempt",
|
|
16801
16819
|
"x-response-key": "action_attempt",
|
|
16802
|
-
"x-
|
|
16820
|
+
"x-title": "Encode a Credential"
|
|
16803
16821
|
}
|
|
16804
16822
|
},
|
|
16805
16823
|
"/acs/encoders/list": {
|
|
16806
16824
|
post: {
|
|
16825
|
+
description: "Returns a list of all [encoders](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).",
|
|
16807
16826
|
operationId: "acsEncodersListPost",
|
|
16808
16827
|
requestBody: {
|
|
16809
16828
|
content: {
|
|
@@ -16812,8 +16831,17 @@ var openapi_default = {
|
|
|
16812
16831
|
oneOf: [
|
|
16813
16832
|
{
|
|
16814
16833
|
properties: {
|
|
16815
|
-
acs_system_id: {
|
|
16816
|
-
|
|
16834
|
+
acs_system_id: {
|
|
16835
|
+
description: "ID of the `acs_system` for which you want to retrieve all `acs_encoder`s.",
|
|
16836
|
+
format: "uuid",
|
|
16837
|
+
type: "string"
|
|
16838
|
+
},
|
|
16839
|
+
limit: {
|
|
16840
|
+
default: 500,
|
|
16841
|
+
description: "Number of `acs_encoders` to return.",
|
|
16842
|
+
format: "float",
|
|
16843
|
+
type: "number"
|
|
16844
|
+
}
|
|
16817
16845
|
},
|
|
16818
16846
|
required: ["acs_system_id"],
|
|
16819
16847
|
type: "object"
|
|
@@ -16821,10 +16849,16 @@ var openapi_default = {
|
|
|
16821
16849
|
{
|
|
16822
16850
|
properties: {
|
|
16823
16851
|
acs_system_ids: {
|
|
16852
|
+
description: "IDs of the `acs_system`s for which you want to retrieve all `acs_encoder`s.",
|
|
16824
16853
|
items: { format: "uuid", type: "string" },
|
|
16825
16854
|
type: "array"
|
|
16826
16855
|
},
|
|
16827
|
-
limit: {
|
|
16856
|
+
limit: {
|
|
16857
|
+
default: 500,
|
|
16858
|
+
description: "Number of `acs_encoders` to return.",
|
|
16859
|
+
format: "float",
|
|
16860
|
+
type: "number"
|
|
16861
|
+
}
|
|
16828
16862
|
},
|
|
16829
16863
|
required: ["acs_system_ids"],
|
|
16830
16864
|
type: "object"
|
|
@@ -16832,10 +16866,16 @@ var openapi_default = {
|
|
|
16832
16866
|
{
|
|
16833
16867
|
properties: {
|
|
16834
16868
|
acs_encoder_ids: {
|
|
16869
|
+
description: "IDs of the `acs_encoder`s that you want to retrieve.",
|
|
16835
16870
|
items: { format: "uuid", type: "string" },
|
|
16836
16871
|
type: "array"
|
|
16837
16872
|
},
|
|
16838
|
-
limit: {
|
|
16873
|
+
limit: {
|
|
16874
|
+
default: 500,
|
|
16875
|
+
description: "Number of `acs_encoders` to return.",
|
|
16876
|
+
format: "float",
|
|
16877
|
+
type: "number"
|
|
16878
|
+
}
|
|
16839
16879
|
},
|
|
16840
16880
|
required: ["acs_encoder_ids"],
|
|
16841
16881
|
type: "object"
|
|
@@ -16939,11 +16979,12 @@ var openapi_default = {
|
|
|
16939
16979
|
"x-fern-sdk-method-name": "list",
|
|
16940
16980
|
"x-fern-sdk-return-value": "acs_encoders",
|
|
16941
16981
|
"x-response-key": "acs_encoders",
|
|
16942
|
-
"x-
|
|
16982
|
+
"x-title": "List Encoders"
|
|
16943
16983
|
}
|
|
16944
16984
|
},
|
|
16945
16985
|
"/acs/encoders/scan_credential": {
|
|
16946
16986
|
post: {
|
|
16987
|
+
description: "Scans an encoded [acs_credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) from a plastic card placed on the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).",
|
|
16947
16988
|
operationId: "acsEncodersScanCredentialPost",
|
|
16948
16989
|
requestBody: {
|
|
16949
16990
|
content: {
|
|
@@ -16951,7 +16992,7 @@ var openapi_default = {
|
|
|
16951
16992
|
schema: {
|
|
16952
16993
|
properties: {
|
|
16953
16994
|
acs_encoder_id: {
|
|
16954
|
-
description: "ID of the acs_encoder to use for the scan.",
|
|
16995
|
+
description: "ID of the `acs_encoder` to use for the scan.",
|
|
16955
16996
|
format: "uuid",
|
|
16956
16997
|
type: "string"
|
|
16957
16998
|
}
|
|
@@ -16994,11 +17035,12 @@ var openapi_default = {
|
|
|
16994
17035
|
"x-fern-sdk-method-name": "scan_credential",
|
|
16995
17036
|
"x-fern-sdk-return-value": "action_attempt",
|
|
16996
17037
|
"x-response-key": "action_attempt",
|
|
16997
|
-
"x-
|
|
17038
|
+
"x-title": "Scan a Credential"
|
|
16998
17039
|
}
|
|
16999
17040
|
},
|
|
17000
17041
|
"/acs/encoders/simulate/next_credential_encode_will_fail": {
|
|
17001
17042
|
post: {
|
|
17043
|
+
description: "Simulates that the next attempt to encode a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).",
|
|
17002
17044
|
operationId: "acsEncodersSimulateNextCredentialEncodeWillFailPost",
|
|
17003
17045
|
requestBody: {
|
|
17004
17046
|
content: {
|
|
@@ -17008,9 +17050,14 @@ var openapi_default = {
|
|
|
17008
17050
|
{
|
|
17009
17051
|
additionalProperties: false,
|
|
17010
17052
|
properties: {
|
|
17011
|
-
acs_encoder_id: {
|
|
17053
|
+
acs_encoder_id: {
|
|
17054
|
+
description: "ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.",
|
|
17055
|
+
format: "uuid",
|
|
17056
|
+
type: "string"
|
|
17057
|
+
},
|
|
17012
17058
|
error_code: {
|
|
17013
17059
|
default: "no_credential_on_encoder",
|
|
17060
|
+
description: "Code of the error to simulate.",
|
|
17014
17061
|
enum: ["no_credential_on_encoder"],
|
|
17015
17062
|
type: "string"
|
|
17016
17063
|
}
|
|
@@ -17021,9 +17068,18 @@ var openapi_default = {
|
|
|
17021
17068
|
{
|
|
17022
17069
|
additionalProperties: false,
|
|
17023
17070
|
properties: {
|
|
17024
|
-
acs_credential_id: {
|
|
17025
|
-
|
|
17071
|
+
acs_credential_id: {
|
|
17072
|
+
description: "ID of the `acs_credential` that will fail to be encoded onto a card in the next request.",
|
|
17073
|
+
format: "uuid",
|
|
17074
|
+
type: "string"
|
|
17075
|
+
},
|
|
17076
|
+
acs_encoder_id: {
|
|
17077
|
+
description: "ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.",
|
|
17078
|
+
format: "uuid",
|
|
17079
|
+
type: "string"
|
|
17080
|
+
},
|
|
17026
17081
|
error_code: {
|
|
17082
|
+
description: "Code of the error to simulate.",
|
|
17027
17083
|
enum: ["uncategorized_error", "action_attempt_expired"],
|
|
17028
17084
|
type: "string"
|
|
17029
17085
|
}
|
|
@@ -17062,11 +17118,12 @@ var openapi_default = {
|
|
|
17062
17118
|
"x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
|
|
17063
17119
|
"x-fern-sdk-method-name": "next_credential_encode_will_fail",
|
|
17064
17120
|
"x-response-key": null,
|
|
17065
|
-
"x-
|
|
17121
|
+
"x-title": "Simulate that the Next Credential Encoding Will Fail"
|
|
17066
17122
|
}
|
|
17067
17123
|
},
|
|
17068
17124
|
"/acs/encoders/simulate/next_credential_encode_will_succeed": {
|
|
17069
17125
|
post: {
|
|
17126
|
+
description: "Simulates that the next attempt to encode a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).",
|
|
17070
17127
|
operationId: "acsEncodersSimulateNextCredentialEncodeWillSucceedPost",
|
|
17071
17128
|
requestBody: {
|
|
17072
17129
|
content: {
|
|
@@ -17074,9 +17131,14 @@ var openapi_default = {
|
|
|
17074
17131
|
schema: {
|
|
17075
17132
|
additionalProperties: false,
|
|
17076
17133
|
properties: {
|
|
17077
|
-
acs_encoder_id: {
|
|
17134
|
+
acs_encoder_id: {
|
|
17135
|
+
description: "ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.",
|
|
17136
|
+
format: "uuid",
|
|
17137
|
+
type: "string"
|
|
17138
|
+
},
|
|
17078
17139
|
scenario: {
|
|
17079
17140
|
default: "credential_is_issued",
|
|
17141
|
+
description: "Scenario to simulate.",
|
|
17080
17142
|
enum: ["credential_is_issued"],
|
|
17081
17143
|
type: "string"
|
|
17082
17144
|
}
|
|
@@ -17113,11 +17175,12 @@ var openapi_default = {
|
|
|
17113
17175
|
"x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
|
|
17114
17176
|
"x-fern-sdk-method-name": "next_credential_encode_will_succeed",
|
|
17115
17177
|
"x-response-key": null,
|
|
17116
|
-
"x-
|
|
17178
|
+
"x-title": "Simulate that the Next Credential Encoding Will Succeed"
|
|
17117
17179
|
}
|
|
17118
17180
|
},
|
|
17119
17181
|
"/acs/encoders/simulate/next_credential_scan_will_fail": {
|
|
17120
17182
|
post: {
|
|
17183
|
+
description: "Simulates that the next attempt to scan a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).",
|
|
17121
17184
|
operationId: "acsEncodersSimulateNextCredentialScanWillFailPost",
|
|
17122
17185
|
requestBody: {
|
|
17123
17186
|
content: {
|
|
@@ -17127,7 +17190,11 @@ var openapi_default = {
|
|
|
17127
17190
|
{
|
|
17128
17191
|
additionalProperties: false,
|
|
17129
17192
|
properties: {
|
|
17130
|
-
acs_encoder_id: {
|
|
17193
|
+
acs_encoder_id: {
|
|
17194
|
+
description: "ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request.",
|
|
17195
|
+
format: "uuid",
|
|
17196
|
+
type: "string"
|
|
17197
|
+
},
|
|
17131
17198
|
error_code: {
|
|
17132
17199
|
default: "no_credential_on_encoder",
|
|
17133
17200
|
enum: ["no_credential_on_encoder"],
|
|
@@ -17144,7 +17211,11 @@ var openapi_default = {
|
|
|
17144
17211
|
format: "uuid",
|
|
17145
17212
|
type: "string"
|
|
17146
17213
|
},
|
|
17147
|
-
acs_encoder_id: {
|
|
17214
|
+
acs_encoder_id: {
|
|
17215
|
+
description: "ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request.",
|
|
17216
|
+
format: "uuid",
|
|
17217
|
+
type: "string"
|
|
17218
|
+
},
|
|
17148
17219
|
error_code: {
|
|
17149
17220
|
enum: ["uncategorized_error", "action_attempt_expired"],
|
|
17150
17221
|
type: "string"
|
|
@@ -17184,11 +17255,12 @@ var openapi_default = {
|
|
|
17184
17255
|
"x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
|
|
17185
17256
|
"x-fern-sdk-method-name": "next_credential_scan_will_fail",
|
|
17186
17257
|
"x-response-key": null,
|
|
17187
|
-
"x-
|
|
17258
|
+
"x-title": "Simulate that the Next Credential Scan Will Fail"
|
|
17188
17259
|
}
|
|
17189
17260
|
},
|
|
17190
17261
|
"/acs/encoders/simulate/next_credential_scan_will_succeed": {
|
|
17191
17262
|
post: {
|
|
17263
|
+
description: "Simulates that the next attempt to scan a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).",
|
|
17192
17264
|
operationId: "acsEncodersSimulateNextCredentialScanWillSucceedPost",
|
|
17193
17265
|
requestBody: {
|
|
17194
17266
|
content: {
|
|
@@ -17199,12 +17271,18 @@ var openapi_default = {
|
|
|
17199
17271
|
additionalProperties: false,
|
|
17200
17272
|
properties: {
|
|
17201
17273
|
acs_credential_id_on_seam: {
|
|
17274
|
+
description: "ID of the Seam `acs_credential` that matches the `acs_credential` on the encoder in this simulation.",
|
|
17275
|
+
format: "uuid",
|
|
17276
|
+
type: "string"
|
|
17277
|
+
},
|
|
17278
|
+
acs_encoder_id: {
|
|
17279
|
+
description: "ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.",
|
|
17202
17280
|
format: "uuid",
|
|
17203
17281
|
type: "string"
|
|
17204
17282
|
},
|
|
17205
|
-
acs_encoder_id: { format: "uuid", type: "string" },
|
|
17206
17283
|
scenario: {
|
|
17207
17284
|
default: "credential_exists_on_seam",
|
|
17285
|
+
description: "Scenario to simulate.",
|
|
17208
17286
|
enum: [
|
|
17209
17287
|
"credential_exists_on_seam",
|
|
17210
17288
|
"credential_on_encoder_needs_update"
|
|
@@ -17218,8 +17296,13 @@ var openapi_default = {
|
|
|
17218
17296
|
{
|
|
17219
17297
|
additionalProperties: false,
|
|
17220
17298
|
properties: {
|
|
17221
|
-
acs_encoder_id: {
|
|
17299
|
+
acs_encoder_id: {
|
|
17300
|
+
description: "ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.",
|
|
17301
|
+
format: "uuid",
|
|
17302
|
+
type: "string"
|
|
17303
|
+
},
|
|
17222
17304
|
scenario: {
|
|
17305
|
+
description: "Scenario to simulate.",
|
|
17223
17306
|
enum: ["credential_does_not_exist_on_seam"],
|
|
17224
17307
|
type: "string"
|
|
17225
17308
|
}
|
|
@@ -17230,8 +17313,13 @@ var openapi_default = {
|
|
|
17230
17313
|
{
|
|
17231
17314
|
additionalProperties: false,
|
|
17232
17315
|
properties: {
|
|
17233
|
-
acs_encoder_id: {
|
|
17316
|
+
acs_encoder_id: {
|
|
17317
|
+
description: "ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.",
|
|
17318
|
+
format: "uuid",
|
|
17319
|
+
type: "string"
|
|
17320
|
+
},
|
|
17234
17321
|
scenario: {
|
|
17322
|
+
description: "Scenario to simulate.",
|
|
17235
17323
|
enum: ["credential_on_encoder_is_empty"],
|
|
17236
17324
|
type: "string"
|
|
17237
17325
|
}
|
|
@@ -17270,7 +17358,7 @@ var openapi_default = {
|
|
|
17270
17358
|
"x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
|
|
17271
17359
|
"x-fern-sdk-method-name": "next_credential_scan_will_succeed",
|
|
17272
17360
|
"x-response-key": null,
|
|
17273
|
-
"x-
|
|
17361
|
+
"x-title": "Simulate that the Next Credential Scan Will Succeed"
|
|
17274
17362
|
}
|
|
17275
17363
|
},
|
|
17276
17364
|
"/acs/entrances/get": {
|