@seamapi/types 1.302.1 → 1.303.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 +37 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +304 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +6 -0
- package/lib/seam/connect/models/acs/acs-credential.js +4 -0
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +24 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +10 -0
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +14 -0
- package/lib/seam/connect/openapi.d.ts +24 -0
- package/lib/seam/connect/openapi.js +34 -4
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +250 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +42 -4
- package/src/lib/seam/connect/route-types.ts +254 -1
package/dist/connect.cjs
CHANGED
|
@@ -1289,6 +1289,9 @@ var common_acs_credential = zod.z.object({
|
|
|
1289
1289
|
parent_acs_credential_id: zod.z.string().uuid().optional().describe("ID of the parent credential."),
|
|
1290
1290
|
display_name: zod.z.string().min(1).describe("Display name that corresponds to the credential type."),
|
|
1291
1291
|
code: zod.z.string().optional().nullable().describe("Access (PIN) code for the credential."),
|
|
1292
|
+
is_one_time_use: zod.z.boolean().optional().describe(
|
|
1293
|
+
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.'
|
|
1294
|
+
),
|
|
1292
1295
|
card_number: zod.z.string().optional().nullable(),
|
|
1293
1296
|
is_issued: zod.z.boolean().optional(),
|
|
1294
1297
|
issued_at: zod.z.string().datetime().optional().nullable(),
|
|
@@ -3164,6 +3167,10 @@ var openapi_default = {
|
|
|
3164
3167
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
3165
3168
|
type: "boolean"
|
|
3166
3169
|
},
|
|
3170
|
+
is_one_time_use: {
|
|
3171
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
3172
|
+
type: "boolean"
|
|
3173
|
+
},
|
|
3167
3174
|
issued_at: { format: "date-time", nullable: true, type: "string" },
|
|
3168
3175
|
latest_desired_state_synced_with_provider_at: {
|
|
3169
3176
|
description: "Date and time at which the state of the credential was most recently synced from Seam to the provider.",
|
|
@@ -4418,6 +4425,10 @@ var openapi_default = {
|
|
|
4418
4425
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
4419
4426
|
type: "boolean"
|
|
4420
4427
|
},
|
|
4428
|
+
is_one_time_use: {
|
|
4429
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
4430
|
+
type: "boolean"
|
|
4431
|
+
},
|
|
4421
4432
|
issued_at: {
|
|
4422
4433
|
format: "date-time",
|
|
4423
4434
|
nullable: true,
|
|
@@ -4676,6 +4687,10 @@ var openapi_default = {
|
|
|
4676
4687
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
4677
4688
|
type: "boolean"
|
|
4678
4689
|
},
|
|
4690
|
+
is_one_time_use: {
|
|
4691
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
4692
|
+
type: "boolean"
|
|
4693
|
+
},
|
|
4679
4694
|
issued_at: {
|
|
4680
4695
|
format: "date-time",
|
|
4681
4696
|
nullable: true,
|
|
@@ -5059,6 +5074,10 @@ var openapi_default = {
|
|
|
5059
5074
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
5060
5075
|
type: "boolean"
|
|
5061
5076
|
},
|
|
5077
|
+
is_one_time_use: {
|
|
5078
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
5079
|
+
type: "boolean"
|
|
5080
|
+
},
|
|
5062
5081
|
issued_at: {
|
|
5063
5082
|
format: "date-time",
|
|
5064
5083
|
nullable: true,
|
|
@@ -5317,6 +5336,10 @@ var openapi_default = {
|
|
|
5317
5336
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
5318
5337
|
type: "boolean"
|
|
5319
5338
|
},
|
|
5339
|
+
is_one_time_use: {
|
|
5340
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
5341
|
+
type: "boolean"
|
|
5342
|
+
},
|
|
5320
5343
|
issued_at: {
|
|
5321
5344
|
format: "date-time",
|
|
5322
5345
|
nullable: true,
|
|
@@ -9598,6 +9621,7 @@ var openapi_default = {
|
|
|
9598
9621
|
},
|
|
9599
9622
|
"/access_codes/pull_backup_access_code": {
|
|
9600
9623
|
post: {
|
|
9624
|
+
description: "Retrieves a backup access code for an access code. See also [Managing Backup Access Codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/backup-access-codes).",
|
|
9601
9625
|
operationId: "accessCodesPullBackupAccessCodePost",
|
|
9602
9626
|
requestBody: {
|
|
9603
9627
|
content: {
|
|
@@ -9618,12 +9642,13 @@ var openapi_default = {
|
|
|
9618
9642
|
"application/json": {
|
|
9619
9643
|
schema: {
|
|
9620
9644
|
properties: {
|
|
9645
|
+
access_code: { $ref: "#/components/schemas/access_code" },
|
|
9621
9646
|
backup_access_code: {
|
|
9622
9647
|
$ref: "#/components/schemas/access_code"
|
|
9623
9648
|
},
|
|
9624
9649
|
ok: { type: "boolean" }
|
|
9625
9650
|
},
|
|
9626
|
-
required: ["backup_access_code", "ok"],
|
|
9651
|
+
required: ["backup_access_code", "access_code", "ok"],
|
|
9627
9652
|
type: "object"
|
|
9628
9653
|
}
|
|
9629
9654
|
}
|
|
@@ -9643,8 +9668,8 @@ var openapi_default = {
|
|
|
9643
9668
|
tags: ["/access_codes"],
|
|
9644
9669
|
"x-fern-sdk-group-name": ["access_codes"],
|
|
9645
9670
|
"x-fern-sdk-method-name": "pull_backup_access_code",
|
|
9646
|
-
"x-fern-sdk-return-value": "
|
|
9647
|
-
"x-response-key": "
|
|
9671
|
+
"x-fern-sdk-return-value": "access_code",
|
|
9672
|
+
"x-response-key": "access_code"
|
|
9648
9673
|
}
|
|
9649
9674
|
},
|
|
9650
9675
|
"/access_codes/simulate/create_unmanaged_access_code": {
|
|
@@ -11444,7 +11469,7 @@ var openapi_default = {
|
|
|
11444
11469
|
type: "string"
|
|
11445
11470
|
}
|
|
11446
11471
|
},
|
|
11447
|
-
required: ["acs_user_id"],
|
|
11472
|
+
required: ["acs_user_id", "allowed_acs_entrance_id"],
|
|
11448
11473
|
type: "object"
|
|
11449
11474
|
}
|
|
11450
11475
|
}
|
|
@@ -12001,6 +12026,10 @@ var openapi_default = {
|
|
|
12001
12026
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
12002
12027
|
type: "boolean"
|
|
12003
12028
|
},
|
|
12029
|
+
is_one_time_use: {
|
|
12030
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
12031
|
+
type: "boolean"
|
|
12032
|
+
},
|
|
12004
12033
|
issued_at: {
|
|
12005
12034
|
format: "date-time",
|
|
12006
12035
|
nullable: true,
|
|
@@ -12356,6 +12385,10 @@ var openapi_default = {
|
|
|
12356
12385
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
12357
12386
|
type: "boolean"
|
|
12358
12387
|
},
|
|
12388
|
+
is_one_time_use: {
|
|
12389
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
12390
|
+
type: "boolean"
|
|
12391
|
+
},
|
|
12359
12392
|
issued_at: {
|
|
12360
12393
|
format: "date-time",
|
|
12361
12394
|
nullable: true,
|