@seamapi/types 1.249.0 → 1.252.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 +254 -51
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1219 -12
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +93 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/read-card.d.ts +96 -0
- package/lib/seam/connect/models/action-attempts/read-card.js +36 -0
- package/lib/seam/connect/models/action-attempts/read-card.js.map +1 -0
- package/lib/seam/connect/models/events/acs/common.d.ts +3 -3
- package/lib/seam/connect/models/events/acs/common.js +2 -1
- package/lib/seam/connect/models/events/acs/common.js.map +1 -1
- package/lib/seam/connect/models/events/acs/credentials.d.ts +6 -6
- package/lib/seam/connect/models/events/acs/index.d.ts +35 -9
- package/lib/seam/connect/models/events/acs/systems.d.ts +60 -6
- package/lib/seam/connect/models/events/acs/systems.js +9 -1
- package/lib/seam/connect/models/events/acs/systems.js.map +1 -1
- package/lib/seam/connect/models/events/acs/users.d.ts +6 -6
- package/lib/seam/connect/models/events/devices.d.ts +86 -0
- package/lib/seam/connect/models/events/devices.js +21 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +35 -9
- package/lib/seam/connect/openapi.d.ts +138 -1
- package/lib/seam/connect/openapi.js +156 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1104 -153
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/read-card.ts +46 -0
- package/src/lib/seam/connect/models/events/acs/common.ts +2 -1
- package/src/lib/seam/connect/models/events/acs/systems.ts +12 -1
- package/src/lib/seam/connect/models/events/devices.ts +33 -0
- package/src/lib/seam/connect/openapi.ts +158 -0
- package/src/lib/seam/connect/route-types.ts +1115 -55
|
@@ -1098,6 +1098,98 @@ export default {
|
|
|
1098
1098
|
],
|
|
1099
1099
|
type: 'object',
|
|
1100
1100
|
},
|
|
1101
|
+
{
|
|
1102
|
+
description: 'Reading card data from physical encoder.',
|
|
1103
|
+
properties: {
|
|
1104
|
+
action_attempt_id: {
|
|
1105
|
+
description: 'The ID of the action attempt.',
|
|
1106
|
+
format: 'uuid',
|
|
1107
|
+
type: 'string',
|
|
1108
|
+
'x-title': 'Action Attempt ID',
|
|
1109
|
+
},
|
|
1110
|
+
action_type: { enum: ['READ_CARD'], type: 'string' },
|
|
1111
|
+
error: { nullable: true },
|
|
1112
|
+
result: { nullable: true },
|
|
1113
|
+
status: { enum: ['pending'], type: 'string' },
|
|
1114
|
+
},
|
|
1115
|
+
required: [
|
|
1116
|
+
'action_attempt_id',
|
|
1117
|
+
'status',
|
|
1118
|
+
'result',
|
|
1119
|
+
'error',
|
|
1120
|
+
'action_type',
|
|
1121
|
+
],
|
|
1122
|
+
type: 'object',
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
description: 'Reading card data from physical encoder succeeded.',
|
|
1126
|
+
properties: {
|
|
1127
|
+
action_attempt_id: {
|
|
1128
|
+
description: 'The ID of the action attempt.',
|
|
1129
|
+
format: 'uuid',
|
|
1130
|
+
type: 'string',
|
|
1131
|
+
'x-title': 'Action Attempt ID',
|
|
1132
|
+
},
|
|
1133
|
+
action_type: { enum: ['READ_CARD'], type: 'string' },
|
|
1134
|
+
error: { nullable: true },
|
|
1135
|
+
result: {
|
|
1136
|
+
properties: {
|
|
1137
|
+
acs_credential_id: {
|
|
1138
|
+
description: 'Matching acs_credential currently encoded on this card.',
|
|
1139
|
+
format: 'uuid',
|
|
1140
|
+
nullable: true,
|
|
1141
|
+
type: 'string',
|
|
1142
|
+
},
|
|
1143
|
+
card_number: {
|
|
1144
|
+
description: 'A number or sting that physically identifies this card.',
|
|
1145
|
+
nullable: true,
|
|
1146
|
+
type: 'string',
|
|
1147
|
+
},
|
|
1148
|
+
},
|
|
1149
|
+
required: ['acs_credential_id', 'card_number'],
|
|
1150
|
+
type: 'object',
|
|
1151
|
+
},
|
|
1152
|
+
status: { enum: ['success'], type: 'string' },
|
|
1153
|
+
},
|
|
1154
|
+
required: [
|
|
1155
|
+
'action_attempt_id',
|
|
1156
|
+
'status',
|
|
1157
|
+
'error',
|
|
1158
|
+
'action_type',
|
|
1159
|
+
'result',
|
|
1160
|
+
],
|
|
1161
|
+
type: 'object',
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
description: 'Reading card data from physical encoder failed.',
|
|
1165
|
+
properties: {
|
|
1166
|
+
action_attempt_id: {
|
|
1167
|
+
description: 'The ID of the action attempt.',
|
|
1168
|
+
format: 'uuid',
|
|
1169
|
+
type: 'string',
|
|
1170
|
+
'x-title': 'Action Attempt ID',
|
|
1171
|
+
},
|
|
1172
|
+
action_type: { enum: ['READ_CARD'], type: 'string' },
|
|
1173
|
+
error: {
|
|
1174
|
+
properties: {
|
|
1175
|
+
message: { type: 'string' },
|
|
1176
|
+
type: { type: 'string' },
|
|
1177
|
+
},
|
|
1178
|
+
required: ['type', 'message'],
|
|
1179
|
+
type: 'object',
|
|
1180
|
+
},
|
|
1181
|
+
result: { nullable: true },
|
|
1182
|
+
status: { enum: ['error'], type: 'string' },
|
|
1183
|
+
},
|
|
1184
|
+
required: [
|
|
1185
|
+
'action_attempt_id',
|
|
1186
|
+
'status',
|
|
1187
|
+
'result',
|
|
1188
|
+
'action_type',
|
|
1189
|
+
'error',
|
|
1190
|
+
],
|
|
1191
|
+
type: 'object',
|
|
1192
|
+
},
|
|
1101
1193
|
{
|
|
1102
1194
|
description: 'Resetting sandbox workspace.',
|
|
1103
1195
|
properties: {
|
|
@@ -6576,6 +6668,68 @@ export default {
|
|
|
6576
6668
|
'x-fern-sdk-return-value': 'acs_entrances',
|
|
6577
6669
|
},
|
|
6578
6670
|
},
|
|
6671
|
+
'/acs/credentials/read_card': {
|
|
6672
|
+
post: {
|
|
6673
|
+
operationId: 'acsCredentialsReadCardPost',
|
|
6674
|
+
requestBody: {
|
|
6675
|
+
content: {
|
|
6676
|
+
'application/json': {
|
|
6677
|
+
schema: {
|
|
6678
|
+
oneOf: [
|
|
6679
|
+
{
|
|
6680
|
+
properties: {
|
|
6681
|
+
acs_system_id: { format: 'uuid', type: 'string' },
|
|
6682
|
+
device_name: { type: 'string' },
|
|
6683
|
+
},
|
|
6684
|
+
required: ['acs_system_id', 'device_name'],
|
|
6685
|
+
type: 'object',
|
|
6686
|
+
},
|
|
6687
|
+
{
|
|
6688
|
+
properties: {
|
|
6689
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
6690
|
+
},
|
|
6691
|
+
required: ['device_id'],
|
|
6692
|
+
type: 'object',
|
|
6693
|
+
},
|
|
6694
|
+
],
|
|
6695
|
+
},
|
|
6696
|
+
},
|
|
6697
|
+
},
|
|
6698
|
+
},
|
|
6699
|
+
responses: {
|
|
6700
|
+
200: {
|
|
6701
|
+
content: {
|
|
6702
|
+
'application/json': {
|
|
6703
|
+
schema: {
|
|
6704
|
+
properties: {
|
|
6705
|
+
action_attempt: {
|
|
6706
|
+
$ref: '#/components/schemas/action_attempt',
|
|
6707
|
+
},
|
|
6708
|
+
ok: { type: 'boolean' },
|
|
6709
|
+
},
|
|
6710
|
+
required: ['action_attempt', 'ok'],
|
|
6711
|
+
type: 'object',
|
|
6712
|
+
},
|
|
6713
|
+
},
|
|
6714
|
+
},
|
|
6715
|
+
description: 'OK',
|
|
6716
|
+
},
|
|
6717
|
+
400: { description: 'Bad Request' },
|
|
6718
|
+
401: { description: 'Unauthorized' },
|
|
6719
|
+
},
|
|
6720
|
+
security: [
|
|
6721
|
+
{ pat_with_workspace: [] },
|
|
6722
|
+
{ console_session: [] },
|
|
6723
|
+
{ api_key: [] },
|
|
6724
|
+
],
|
|
6725
|
+
summary: '/acs/credentials/read_card',
|
|
6726
|
+
tags: ['/acs'],
|
|
6727
|
+
'x-fern-sdk-group-name': ['acs', 'credentials'],
|
|
6728
|
+
'x-fern-sdk-method-name': 'read_card',
|
|
6729
|
+
'x-fern-sdk-return-value': 'action_attempt',
|
|
6730
|
+
'x-undocumented': 'Reading a card is currently unimplemented.',
|
|
6731
|
+
},
|
|
6732
|
+
},
|
|
6579
6733
|
'/acs/credentials/unassign': {
|
|
6580
6734
|
patch: {
|
|
6581
6735
|
operationId: 'acsCredentialsUnassignPatch',
|
|
@@ -11247,6 +11401,7 @@ export default {
|
|
|
11247
11401
|
'connect_webview.login_failed',
|
|
11248
11402
|
'noise_sensor.noise_threshold_triggered',
|
|
11249
11403
|
'access_code.backup_access_code_pulled',
|
|
11404
|
+
'acs_system.added',
|
|
11250
11405
|
'acs_system.connected',
|
|
11251
11406
|
'acs_user.deleted',
|
|
11252
11407
|
'acs_credential.deleted',
|
|
@@ -11314,6 +11469,7 @@ export default {
|
|
|
11314
11469
|
'connect_webview.login_failed',
|
|
11315
11470
|
'noise_sensor.noise_threshold_triggered',
|
|
11316
11471
|
'access_code.backup_access_code_pulled',
|
|
11472
|
+
'acs_system.added',
|
|
11317
11473
|
'acs_system.connected',
|
|
11318
11474
|
'acs_user.deleted',
|
|
11319
11475
|
'acs_credential.deleted',
|