@seamapi/types 1.426.0 → 1.428.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 +150 -437
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3041 -5161
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +5 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +5 -5
- package/lib/seam/connect/models/access-grants/access-method.js +3 -2
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +0 -183
- package/lib/seam/connect/models/action-attempts/action-attempt.js +1 -3
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +84 -192
- package/lib/seam/connect/openapi.js +74 -285
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +2571 -4403
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +7 -0
- package/src/lib/seam/connect/models/access-grants/access-method.ts +3 -2
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +1 -3
- package/src/lib/seam/connect/openapi.ts +78 -318
- package/src/lib/seam/connect/route-types.ts +3617 -5657
- package/lib/seam/connect/models/action-attempts/encode-access-method.d.ts +0 -186
- package/lib/seam/connect/models/action-attempts/encode-access-method.js +0 -60
- package/lib/seam/connect/models/action-attempts/encode-access-method.js.map +0 -1
- package/src/lib/seam/connect/models/action-attempts/encode-access-method.ts +0 -101
package/package.json
CHANGED
|
@@ -27,6 +27,13 @@ export const access_grant = z.object({
|
|
|
27
27
|
.array(z.string().uuid())
|
|
28
28
|
.describe('IDs of the access methods created for the access grant.'),
|
|
29
29
|
display_name: z.string().describe('Display name of the access grant.'),
|
|
30
|
+
instant_key_url: z
|
|
31
|
+
.string()
|
|
32
|
+
.url()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe(
|
|
35
|
+
'Instant Key URL. Only returned if the access grant has a single mobile_key access_method. ',
|
|
36
|
+
),
|
|
30
37
|
created_at: z
|
|
31
38
|
.string()
|
|
32
39
|
.datetime()
|
|
@@ -23,13 +23,14 @@ export const access_method = z.object({
|
|
|
23
23
|
.describe('Date and time at which the access method was issued.'),
|
|
24
24
|
instant_key_url: z
|
|
25
25
|
.string()
|
|
26
|
+
.url()
|
|
26
27
|
.optional()
|
|
27
28
|
.describe('URL of the Instant Key for mobile key access methods.'),
|
|
28
|
-
|
|
29
|
+
is_encoding_required: z
|
|
29
30
|
.boolean()
|
|
30
31
|
.optional()
|
|
31
32
|
.describe(
|
|
32
|
-
'Indicates whether card
|
|
33
|
+
'Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.',
|
|
33
34
|
),
|
|
34
35
|
}).describe(`
|
|
35
36
|
---
|
|
@@ -2,7 +2,6 @@ import { z } from 'zod'
|
|
|
2
2
|
|
|
3
3
|
import { activate_climate_preset_action_attempt } from './activate-climate-preset.js'
|
|
4
4
|
import { deprecated_action_attempts } from './deprecated.js'
|
|
5
|
-
import { encode_access_method_action_attempt } from './encode-access-method.js'
|
|
6
5
|
import { encode_credential_action_attempt } from './encode-credential.js'
|
|
7
6
|
import { lock_door_action_attempt } from './lock-door.js'
|
|
8
7
|
import { push_thermostat_programs_action_attempt } from './push-thermostat-programs.js'
|
|
@@ -18,7 +17,6 @@ export const action_attempt = z.union([
|
|
|
18
17
|
...lock_door_action_attempt.options,
|
|
19
18
|
...unlock_door_action_attempt.options,
|
|
20
19
|
...scan_credential_action_attempt.options,
|
|
21
|
-
...encode_access_method_action_attempt.options,
|
|
22
20
|
...encode_credential_action_attempt.options,
|
|
23
21
|
...reset_sandbox_workspace_action_attempt.options,
|
|
24
22
|
...set_fan_mode_action_attempt.options,
|
|
@@ -33,7 +31,7 @@ export const action_attempt = z.union([
|
|
|
33
31
|
route_path: /action_attempts
|
|
34
32
|
---
|
|
35
33
|
Represents an action attempt that enables you to keep track of the progress of your action that affects a physical device or system.actions against a device. Action attempts are useful because the physical world is intrinsically asynchronous.
|
|
36
|
-
|
|
34
|
+
|
|
37
35
|
When you request for a device to perform an action, the Seam API immediately returns an action attempt object. In the background, the Seam API performs the action.
|
|
38
36
|
|
|
39
37
|
See also [Action Attempts](https://docs.seam.co/latest/core-concepts/action-attempts).
|
|
@@ -1842,6 +1842,12 @@ export default {
|
|
|
1842
1842
|
format: 'date-time',
|
|
1843
1843
|
type: 'string',
|
|
1844
1844
|
},
|
|
1845
|
+
instant_key_url: {
|
|
1846
|
+
description:
|
|
1847
|
+
'Instant Key URL. Only returned if the access grant has a single mobile_key access_method. ',
|
|
1848
|
+
format: 'uri',
|
|
1849
|
+
type: 'string',
|
|
1850
|
+
},
|
|
1845
1851
|
location_ids: {
|
|
1846
1852
|
deprecated: true,
|
|
1847
1853
|
items: { format: 'uuid', type: 'string' },
|
|
@@ -1947,11 +1953,12 @@ export default {
|
|
|
1947
1953
|
instant_key_url: {
|
|
1948
1954
|
description:
|
|
1949
1955
|
'URL of the Instant Key for mobile key access methods.',
|
|
1956
|
+
format: 'uri',
|
|
1950
1957
|
type: 'string',
|
|
1951
1958
|
},
|
|
1952
|
-
|
|
1959
|
+
is_encoding_required: {
|
|
1953
1960
|
description:
|
|
1954
|
-
'Indicates whether card
|
|
1961
|
+
'Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.',
|
|
1955
1962
|
type: 'boolean',
|
|
1956
1963
|
},
|
|
1957
1964
|
issued_at: {
|
|
@@ -5506,259 +5513,6 @@ export default {
|
|
|
5506
5513
|
],
|
|
5507
5514
|
type: 'object',
|
|
5508
5515
|
},
|
|
5509
|
-
{
|
|
5510
|
-
description:
|
|
5511
|
-
'Encoding access method data from the physical encoder onto a card is pending.',
|
|
5512
|
-
properties: {
|
|
5513
|
-
action_attempt_id: {
|
|
5514
|
-
description: 'ID of the action attempt.',
|
|
5515
|
-
format: 'uuid',
|
|
5516
|
-
type: 'string',
|
|
5517
|
-
},
|
|
5518
|
-
action_type: {
|
|
5519
|
-
description:
|
|
5520
|
-
'Action attempt to track the status of encoding an access method from the physical encoder onto a card.',
|
|
5521
|
-
enum: ['ENCODE_ACCESS_METHOD'],
|
|
5522
|
-
type: 'string',
|
|
5523
|
-
},
|
|
5524
|
-
error: {
|
|
5525
|
-
description:
|
|
5526
|
-
'Errors associated with the action attempt. Null for pending action attempts.',
|
|
5527
|
-
nullable: true,
|
|
5528
|
-
},
|
|
5529
|
-
result: {
|
|
5530
|
-
description:
|
|
5531
|
-
'Result of the action attempt. Null for pending action attempts.',
|
|
5532
|
-
nullable: true,
|
|
5533
|
-
},
|
|
5534
|
-
status: { enum: ['pending'], type: 'string' },
|
|
5535
|
-
},
|
|
5536
|
-
required: [
|
|
5537
|
-
'action_attempt_id',
|
|
5538
|
-
'status',
|
|
5539
|
-
'result',
|
|
5540
|
-
'error',
|
|
5541
|
-
'action_type',
|
|
5542
|
-
],
|
|
5543
|
-
type: 'object',
|
|
5544
|
-
},
|
|
5545
|
-
{
|
|
5546
|
-
description:
|
|
5547
|
-
'Encoding access method data from the physical encoder onto a card succeeded.',
|
|
5548
|
-
properties: {
|
|
5549
|
-
action_attempt_id: {
|
|
5550
|
-
description: 'ID of the action attempt.',
|
|
5551
|
-
format: 'uuid',
|
|
5552
|
-
type: 'string',
|
|
5553
|
-
},
|
|
5554
|
-
action_type: {
|
|
5555
|
-
description:
|
|
5556
|
-
'Action attempt to track the status of encoding an access method from the physical encoder onto a card.',
|
|
5557
|
-
enum: ['ENCODE_ACCESS_METHOD'],
|
|
5558
|
-
type: 'string',
|
|
5559
|
-
},
|
|
5560
|
-
error: {
|
|
5561
|
-
description:
|
|
5562
|
-
'Errors associated with the action attempt. Null for successful action attempts.',
|
|
5563
|
-
nullable: true,
|
|
5564
|
-
},
|
|
5565
|
-
result: {
|
|
5566
|
-
description:
|
|
5567
|
-
'Result of an encoding attempt. If the attempt was successful, includes the access method data that was encoded onto the card.',
|
|
5568
|
-
properties: {
|
|
5569
|
-
access_method_id: {
|
|
5570
|
-
description: 'ID of the access method.',
|
|
5571
|
-
format: 'uuid',
|
|
5572
|
-
type: 'string',
|
|
5573
|
-
},
|
|
5574
|
-
created_at: {
|
|
5575
|
-
description:
|
|
5576
|
-
'Date and time at which the access method was created.',
|
|
5577
|
-
format: 'date-time',
|
|
5578
|
-
type: 'string',
|
|
5579
|
-
},
|
|
5580
|
-
display_name: {
|
|
5581
|
-
description: 'Display name of the access method.',
|
|
5582
|
-
type: 'string',
|
|
5583
|
-
},
|
|
5584
|
-
instant_key_url: {
|
|
5585
|
-
description:
|
|
5586
|
-
'URL of the Instant Key for mobile key access methods.',
|
|
5587
|
-
type: 'string',
|
|
5588
|
-
},
|
|
5589
|
-
is_card_encoding_required: {
|
|
5590
|
-
description:
|
|
5591
|
-
'Indicates whether card encoding is required for plastic card access methods.',
|
|
5592
|
-
type: 'boolean',
|
|
5593
|
-
},
|
|
5594
|
-
issued_at: {
|
|
5595
|
-
description:
|
|
5596
|
-
'Date and time at which the access method was issued.',
|
|
5597
|
-
format: 'date-time',
|
|
5598
|
-
type: 'string',
|
|
5599
|
-
},
|
|
5600
|
-
mode: {
|
|
5601
|
-
description:
|
|
5602
|
-
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
|
|
5603
|
-
enum: ['code', 'card', 'mobile_key'],
|
|
5604
|
-
type: 'string',
|
|
5605
|
-
},
|
|
5606
|
-
workspace_id: {
|
|
5607
|
-
description:
|
|
5608
|
-
'ID of the Seam workspace associated with the access method.',
|
|
5609
|
-
format: 'uuid',
|
|
5610
|
-
type: 'string',
|
|
5611
|
-
},
|
|
5612
|
-
},
|
|
5613
|
-
required: [
|
|
5614
|
-
'workspace_id',
|
|
5615
|
-
'access_method_id',
|
|
5616
|
-
'display_name',
|
|
5617
|
-
'mode',
|
|
5618
|
-
'created_at',
|
|
5619
|
-
],
|
|
5620
|
-
type: 'object',
|
|
5621
|
-
},
|
|
5622
|
-
status: { enum: ['success'], type: 'string' },
|
|
5623
|
-
},
|
|
5624
|
-
required: [
|
|
5625
|
-
'action_attempt_id',
|
|
5626
|
-
'status',
|
|
5627
|
-
'error',
|
|
5628
|
-
'action_type',
|
|
5629
|
-
'result',
|
|
5630
|
-
],
|
|
5631
|
-
type: 'object',
|
|
5632
|
-
},
|
|
5633
|
-
{
|
|
5634
|
-
description:
|
|
5635
|
-
'Encoding access method data from the physical encoder onto a card failed.',
|
|
5636
|
-
properties: {
|
|
5637
|
-
action_attempt_id: {
|
|
5638
|
-
description: 'ID of the action attempt.',
|
|
5639
|
-
format: 'uuid',
|
|
5640
|
-
type: 'string',
|
|
5641
|
-
},
|
|
5642
|
-
action_type: {
|
|
5643
|
-
description:
|
|
5644
|
-
'Action attempt to track the status of encoding an access method from the physical encoder onto a card.',
|
|
5645
|
-
enum: ['ENCODE_ACCESS_METHOD'],
|
|
5646
|
-
type: 'string',
|
|
5647
|
-
},
|
|
5648
|
-
error: {
|
|
5649
|
-
oneOf: [
|
|
5650
|
-
{
|
|
5651
|
-
description:
|
|
5652
|
-
"Error that doesn't fit into other specific error categories.",
|
|
5653
|
-
properties: {
|
|
5654
|
-
message: {
|
|
5655
|
-
description:
|
|
5656
|
-
'Message for the error associated with the action attempt.',
|
|
5657
|
-
type: 'string',
|
|
5658
|
-
},
|
|
5659
|
-
type: {
|
|
5660
|
-
description:
|
|
5661
|
-
'Type of the error associated with the action attempt.',
|
|
5662
|
-
enum: ['uncategorized_error'],
|
|
5663
|
-
type: 'string',
|
|
5664
|
-
},
|
|
5665
|
-
},
|
|
5666
|
-
required: ['type', 'message'],
|
|
5667
|
-
type: 'object',
|
|
5668
|
-
},
|
|
5669
|
-
{
|
|
5670
|
-
description: 'Error to indicate an expired action attempt.',
|
|
5671
|
-
properties: {
|
|
5672
|
-
message: {
|
|
5673
|
-
description:
|
|
5674
|
-
'Message for the error associated with the action attempt.',
|
|
5675
|
-
type: 'string',
|
|
5676
|
-
},
|
|
5677
|
-
type: {
|
|
5678
|
-
description:
|
|
5679
|
-
'Type of the error associated with the action attempt.',
|
|
5680
|
-
enum: ['action_attempt_expired'],
|
|
5681
|
-
type: 'string',
|
|
5682
|
-
},
|
|
5683
|
-
},
|
|
5684
|
-
required: ['type', 'message'],
|
|
5685
|
-
type: 'object',
|
|
5686
|
-
},
|
|
5687
|
-
{
|
|
5688
|
-
description:
|
|
5689
|
-
'Error to indicate that there is no credential on the encoder.',
|
|
5690
|
-
properties: {
|
|
5691
|
-
message: {
|
|
5692
|
-
description:
|
|
5693
|
-
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
5694
|
-
type: 'string',
|
|
5695
|
-
},
|
|
5696
|
-
type: {
|
|
5697
|
-
description:
|
|
5698
|
-
'Error type to indicate that there is no credential on the encoder.',
|
|
5699
|
-
enum: ['no_credential_on_encoder'],
|
|
5700
|
-
type: 'string',
|
|
5701
|
-
},
|
|
5702
|
-
},
|
|
5703
|
-
required: ['type', 'message'],
|
|
5704
|
-
type: 'object',
|
|
5705
|
-
},
|
|
5706
|
-
{
|
|
5707
|
-
description:
|
|
5708
|
-
'Error to indicate an incompatible card format.',
|
|
5709
|
-
properties: {
|
|
5710
|
-
message: {
|
|
5711
|
-
description:
|
|
5712
|
-
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
5713
|
-
type: 'string',
|
|
5714
|
-
},
|
|
5715
|
-
type: {
|
|
5716
|
-
description:
|
|
5717
|
-
'Error type to indicate an incompatible card format.',
|
|
5718
|
-
enum: ['incompatible_card_format'],
|
|
5719
|
-
type: 'string',
|
|
5720
|
-
},
|
|
5721
|
-
},
|
|
5722
|
-
required: ['type', 'message'],
|
|
5723
|
-
type: 'object',
|
|
5724
|
-
},
|
|
5725
|
-
{
|
|
5726
|
-
description:
|
|
5727
|
-
'Error to indicate that the affected credential cannot be reissued.',
|
|
5728
|
-
properties: {
|
|
5729
|
-
message: {
|
|
5730
|
-
description:
|
|
5731
|
-
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
5732
|
-
type: 'string',
|
|
5733
|
-
},
|
|
5734
|
-
type: {
|
|
5735
|
-
description:
|
|
5736
|
-
'Error type to indicate that the affected credential cannot be reissued.',
|
|
5737
|
-
enum: ['credential_cannot_be_reissued'],
|
|
5738
|
-
type: 'string',
|
|
5739
|
-
},
|
|
5740
|
-
},
|
|
5741
|
-
required: ['type', 'message'],
|
|
5742
|
-
type: 'object',
|
|
5743
|
-
},
|
|
5744
|
-
],
|
|
5745
|
-
},
|
|
5746
|
-
result: {
|
|
5747
|
-
description:
|
|
5748
|
-
'Result of the action attempt. Null for failed action attempts.',
|
|
5749
|
-
nullable: true,
|
|
5750
|
-
},
|
|
5751
|
-
status: { enum: ['error'], type: 'string' },
|
|
5752
|
-
},
|
|
5753
|
-
required: [
|
|
5754
|
-
'action_attempt_id',
|
|
5755
|
-
'status',
|
|
5756
|
-
'result',
|
|
5757
|
-
'action_type',
|
|
5758
|
-
'error',
|
|
5759
|
-
],
|
|
5760
|
-
type: 'object',
|
|
5761
|
-
},
|
|
5762
5516
|
{
|
|
5763
5517
|
description:
|
|
5764
5518
|
'Encoding credential data from the physical encoder onto a card is pending.',
|
|
@@ -27384,6 +27138,71 @@ export default {
|
|
|
27384
27138
|
'x-title': 'Delete an Access Method',
|
|
27385
27139
|
},
|
|
27386
27140
|
},
|
|
27141
|
+
'/access_methods/encode': {
|
|
27142
|
+
post: {
|
|
27143
|
+
description:
|
|
27144
|
+
'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).',
|
|
27145
|
+
operationId: 'accessMethodsEncodePost',
|
|
27146
|
+
requestBody: {
|
|
27147
|
+
content: {
|
|
27148
|
+
'application/json': {
|
|
27149
|
+
schema: {
|
|
27150
|
+
properties: {
|
|
27151
|
+
access_method_id: {
|
|
27152
|
+
description:
|
|
27153
|
+
'ID of the `access_method` to encode onto a card.',
|
|
27154
|
+
format: 'uuid',
|
|
27155
|
+
type: 'string',
|
|
27156
|
+
},
|
|
27157
|
+
acs_encoder_id: {
|
|
27158
|
+
description:
|
|
27159
|
+
'ID of the `acs_encoder` to use to encode the `acs_credential`.',
|
|
27160
|
+
format: 'uuid',
|
|
27161
|
+
type: 'string',
|
|
27162
|
+
},
|
|
27163
|
+
},
|
|
27164
|
+
required: ['acs_encoder_id', 'access_method_id'],
|
|
27165
|
+
type: 'object',
|
|
27166
|
+
},
|
|
27167
|
+
},
|
|
27168
|
+
},
|
|
27169
|
+
},
|
|
27170
|
+
responses: {
|
|
27171
|
+
200: {
|
|
27172
|
+
content: {
|
|
27173
|
+
'application/json': {
|
|
27174
|
+
schema: {
|
|
27175
|
+
properties: {
|
|
27176
|
+
action_attempt: {
|
|
27177
|
+
$ref: '#/components/schemas/action_attempt',
|
|
27178
|
+
},
|
|
27179
|
+
ok: { type: 'boolean' },
|
|
27180
|
+
},
|
|
27181
|
+
required: ['action_attempt', 'ok'],
|
|
27182
|
+
type: 'object',
|
|
27183
|
+
},
|
|
27184
|
+
},
|
|
27185
|
+
},
|
|
27186
|
+
description: 'OK',
|
|
27187
|
+
},
|
|
27188
|
+
400: { description: 'Bad Request' },
|
|
27189
|
+
401: { description: 'Unauthorized' },
|
|
27190
|
+
},
|
|
27191
|
+
security: [
|
|
27192
|
+
{ pat_with_workspace: [] },
|
|
27193
|
+
{ console_session_with_workspace: [] },
|
|
27194
|
+
{ api_key: [] },
|
|
27195
|
+
],
|
|
27196
|
+
summary: '/access_methods/encode',
|
|
27197
|
+
tags: [],
|
|
27198
|
+
'x-action-attempt-type': 'ENCODE_CREDENTIAL',
|
|
27199
|
+
'x-fern-sdk-group-name': ['access_methods'],
|
|
27200
|
+
'x-fern-sdk-method-name': 'encode',
|
|
27201
|
+
'x-fern-sdk-return-value': 'action_attempt',
|
|
27202
|
+
'x-response-key': 'action_attempt',
|
|
27203
|
+
'x-title': 'Encode an Access Method',
|
|
27204
|
+
},
|
|
27205
|
+
},
|
|
27387
27206
|
'/access_methods/get': {
|
|
27388
27207
|
get: {
|
|
27389
27208
|
description: 'Get an access method.',
|
|
@@ -30208,11 +30027,11 @@ export default {
|
|
|
30208
30027
|
'x-title': 'Update a Credential',
|
|
30209
30028
|
},
|
|
30210
30029
|
},
|
|
30211
|
-
'/acs/encoders/
|
|
30030
|
+
'/acs/encoders/encode_credential': {
|
|
30212
30031
|
post: {
|
|
30213
30032
|
description:
|
|
30214
|
-
'Encodes an existing access
|
|
30215
|
-
operationId: '
|
|
30033
|
+
'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). Either provide an `acs_credential_id` or an `access_method_id`',
|
|
30034
|
+
operationId: 'acsEncodersEncodeCredentialPost',
|
|
30216
30035
|
requestBody: {
|
|
30217
30036
|
content: {
|
|
30218
30037
|
'application/json': {
|
|
@@ -30224,65 +30043,6 @@ export default {
|
|
|
30224
30043
|
format: 'uuid',
|
|
30225
30044
|
type: 'string',
|
|
30226
30045
|
},
|
|
30227
|
-
acs_encoder_id: {
|
|
30228
|
-
description:
|
|
30229
|
-
'ID of the `acs_encoder` to use to encode the `access_method`.',
|
|
30230
|
-
format: 'uuid',
|
|
30231
|
-
type: 'string',
|
|
30232
|
-
},
|
|
30233
|
-
},
|
|
30234
|
-
required: ['acs_encoder_id', 'access_method_id'],
|
|
30235
|
-
type: 'object',
|
|
30236
|
-
},
|
|
30237
|
-
},
|
|
30238
|
-
},
|
|
30239
|
-
},
|
|
30240
|
-
responses: {
|
|
30241
|
-
200: {
|
|
30242
|
-
content: {
|
|
30243
|
-
'application/json': {
|
|
30244
|
-
schema: {
|
|
30245
|
-
properties: {
|
|
30246
|
-
action_attempt: {
|
|
30247
|
-
$ref: '#/components/schemas/action_attempt',
|
|
30248
|
-
},
|
|
30249
|
-
ok: { type: 'boolean' },
|
|
30250
|
-
},
|
|
30251
|
-
required: ['action_attempt', 'ok'],
|
|
30252
|
-
type: 'object',
|
|
30253
|
-
},
|
|
30254
|
-
},
|
|
30255
|
-
},
|
|
30256
|
-
description: 'OK',
|
|
30257
|
-
},
|
|
30258
|
-
400: { description: 'Bad Request' },
|
|
30259
|
-
401: { description: 'Unauthorized' },
|
|
30260
|
-
},
|
|
30261
|
-
security: [
|
|
30262
|
-
{ pat_with_workspace: [] },
|
|
30263
|
-
{ console_session_with_workspace: [] },
|
|
30264
|
-
{ api_key: [] },
|
|
30265
|
-
],
|
|
30266
|
-
summary: '/acs/encoders/encode_access_method',
|
|
30267
|
-
tags: ['/acs'],
|
|
30268
|
-
'x-action-attempt-type': 'ENCODE_ACCESS_METHOD',
|
|
30269
|
-
'x-fern-sdk-group-name': ['acs', 'encoders'],
|
|
30270
|
-
'x-fern-sdk-method-name': 'encode_access_method',
|
|
30271
|
-
'x-fern-sdk-return-value': 'action_attempt',
|
|
30272
|
-
'x-response-key': 'action_attempt',
|
|
30273
|
-
'x-title': 'Encode an Access Method',
|
|
30274
|
-
},
|
|
30275
|
-
},
|
|
30276
|
-
'/acs/encoders/encode_credential': {
|
|
30277
|
-
post: {
|
|
30278
|
-
description:
|
|
30279
|
-
'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).',
|
|
30280
|
-
operationId: 'acsEncodersEncodeCredentialPost',
|
|
30281
|
-
requestBody: {
|
|
30282
|
-
content: {
|
|
30283
|
-
'application/json': {
|
|
30284
|
-
schema: {
|
|
30285
|
-
properties: {
|
|
30286
30046
|
acs_credential_id: {
|
|
30287
30047
|
description:
|
|
30288
30048
|
'ID of the `acs_credential` to encode onto a card.',
|
|
@@ -30296,7 +30056,7 @@ export default {
|
|
|
30296
30056
|
type: 'string',
|
|
30297
30057
|
},
|
|
30298
30058
|
},
|
|
30299
|
-
required: ['acs_encoder_id'
|
|
30059
|
+
required: ['acs_encoder_id'],
|
|
30300
30060
|
type: 'object',
|
|
30301
30061
|
},
|
|
30302
30062
|
},
|