@seamapi/types 1.811.0 → 1.813.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 +449 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +970 -250
- package/dist/index.cjs +449 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +96 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +22 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +43 -0
- package/lib/seam/connect/openapi.d.ts +495 -0
- package/lib/seam/connect/openapi.js +429 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +151 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +30 -0
- package/src/lib/seam/connect/openapi.ts +471 -0
- package/src/lib/seam/connect/route-types.ts +195 -0
|
@@ -2323,6 +2323,47 @@ export default {
|
|
|
2323
2323
|
],
|
|
2324
2324
|
type: 'object',
|
|
2325
2325
|
},
|
|
2326
|
+
{
|
|
2327
|
+
description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
|
|
2328
|
+
properties: {
|
|
2329
|
+
created_at: {
|
|
2330
|
+
description: 'Date and time at which Seam created the warning.',
|
|
2331
|
+
format: 'date-time',
|
|
2332
|
+
type: 'string',
|
|
2333
|
+
},
|
|
2334
|
+
device_id: {
|
|
2335
|
+
description: 'ID of the device whose time constraints the access grant violates.',
|
|
2336
|
+
format: 'uuid',
|
|
2337
|
+
type: 'string',
|
|
2338
|
+
},
|
|
2339
|
+
message: {
|
|
2340
|
+
description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
2341
|
+
type: 'string',
|
|
2342
|
+
},
|
|
2343
|
+
reason: {
|
|
2344
|
+
description: "Specific reason why the grant's times are not programmable on the device.",
|
|
2345
|
+
enum: [
|
|
2346
|
+
'duration_exceeds_max',
|
|
2347
|
+
'times_do_not_match_slots',
|
|
2348
|
+
'ongoing_not_supported',
|
|
2349
|
+
],
|
|
2350
|
+
type: 'string',
|
|
2351
|
+
},
|
|
2352
|
+
warning_code: {
|
|
2353
|
+
description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
2354
|
+
enum: ['device_time_constraints_violated'],
|
|
2355
|
+
type: 'string',
|
|
2356
|
+
},
|
|
2357
|
+
},
|
|
2358
|
+
required: [
|
|
2359
|
+
'created_at',
|
|
2360
|
+
'message',
|
|
2361
|
+
'warning_code',
|
|
2362
|
+
'device_id',
|
|
2363
|
+
'reason',
|
|
2364
|
+
],
|
|
2365
|
+
type: 'object',
|
|
2366
|
+
},
|
|
2326
2367
|
],
|
|
2327
2368
|
},
|
|
2328
2369
|
type: 'array',
|
|
@@ -32668,6 +32709,47 @@ export default {
|
|
|
32668
32709
|
],
|
|
32669
32710
|
type: 'object',
|
|
32670
32711
|
},
|
|
32712
|
+
{
|
|
32713
|
+
description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
|
|
32714
|
+
properties: {
|
|
32715
|
+
created_at: {
|
|
32716
|
+
description: 'Date and time at which Seam created the warning.',
|
|
32717
|
+
format: 'date-time',
|
|
32718
|
+
type: 'string',
|
|
32719
|
+
},
|
|
32720
|
+
device_id: {
|
|
32721
|
+
description: 'ID of the device whose time constraints the access grant violates.',
|
|
32722
|
+
format: 'uuid',
|
|
32723
|
+
type: 'string',
|
|
32724
|
+
},
|
|
32725
|
+
message: {
|
|
32726
|
+
description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
32727
|
+
type: 'string',
|
|
32728
|
+
},
|
|
32729
|
+
reason: {
|
|
32730
|
+
description: "Specific reason why the grant's times are not programmable on the device.",
|
|
32731
|
+
enum: [
|
|
32732
|
+
'duration_exceeds_max',
|
|
32733
|
+
'times_do_not_match_slots',
|
|
32734
|
+
'ongoing_not_supported',
|
|
32735
|
+
],
|
|
32736
|
+
type: 'string',
|
|
32737
|
+
},
|
|
32738
|
+
warning_code: {
|
|
32739
|
+
description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
32740
|
+
enum: ['device_time_constraints_violated'],
|
|
32741
|
+
type: 'string',
|
|
32742
|
+
},
|
|
32743
|
+
},
|
|
32744
|
+
required: [
|
|
32745
|
+
'created_at',
|
|
32746
|
+
'message',
|
|
32747
|
+
'warning_code',
|
|
32748
|
+
'device_id',
|
|
32749
|
+
'reason',
|
|
32750
|
+
],
|
|
32751
|
+
type: 'object',
|
|
32752
|
+
},
|
|
32671
32753
|
],
|
|
32672
32754
|
},
|
|
32673
32755
|
type: 'array',
|
|
@@ -33249,6 +33331,47 @@ export default {
|
|
|
33249
33331
|
],
|
|
33250
33332
|
type: 'object',
|
|
33251
33333
|
},
|
|
33334
|
+
{
|
|
33335
|
+
description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
|
|
33336
|
+
properties: {
|
|
33337
|
+
created_at: {
|
|
33338
|
+
description: 'Date and time at which Seam created the warning.',
|
|
33339
|
+
format: 'date-time',
|
|
33340
|
+
type: 'string',
|
|
33341
|
+
},
|
|
33342
|
+
device_id: {
|
|
33343
|
+
description: 'ID of the device whose time constraints the access grant violates.',
|
|
33344
|
+
format: 'uuid',
|
|
33345
|
+
type: 'string',
|
|
33346
|
+
},
|
|
33347
|
+
message: {
|
|
33348
|
+
description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
33349
|
+
type: 'string',
|
|
33350
|
+
},
|
|
33351
|
+
reason: {
|
|
33352
|
+
description: "Specific reason why the grant's times are not programmable on the device.",
|
|
33353
|
+
enum: [
|
|
33354
|
+
'duration_exceeds_max',
|
|
33355
|
+
'times_do_not_match_slots',
|
|
33356
|
+
'ongoing_not_supported',
|
|
33357
|
+
],
|
|
33358
|
+
type: 'string',
|
|
33359
|
+
},
|
|
33360
|
+
warning_code: {
|
|
33361
|
+
description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
33362
|
+
enum: ['device_time_constraints_violated'],
|
|
33363
|
+
type: 'string',
|
|
33364
|
+
},
|
|
33365
|
+
},
|
|
33366
|
+
required: [
|
|
33367
|
+
'created_at',
|
|
33368
|
+
'message',
|
|
33369
|
+
'warning_code',
|
|
33370
|
+
'device_id',
|
|
33371
|
+
'reason',
|
|
33372
|
+
],
|
|
33373
|
+
type: 'object',
|
|
33374
|
+
},
|
|
33252
33375
|
],
|
|
33253
33376
|
},
|
|
33254
33377
|
type: 'array',
|
|
@@ -33872,6 +33995,49 @@ export default {
|
|
|
33872
33995
|
],
|
|
33873
33996
|
type: 'object',
|
|
33874
33997
|
},
|
|
33998
|
+
{
|
|
33999
|
+
description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
|
|
34000
|
+
properties: {
|
|
34001
|
+
created_at: {
|
|
34002
|
+
description: 'Date and time at which Seam created the warning.',
|
|
34003
|
+
format: 'date-time',
|
|
34004
|
+
type: 'string',
|
|
34005
|
+
},
|
|
34006
|
+
device_id: {
|
|
34007
|
+
description: 'ID of the device whose time constraints the access grant violates.',
|
|
34008
|
+
format: 'uuid',
|
|
34009
|
+
type: 'string',
|
|
34010
|
+
},
|
|
34011
|
+
message: {
|
|
34012
|
+
description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
34013
|
+
type: 'string',
|
|
34014
|
+
},
|
|
34015
|
+
reason: {
|
|
34016
|
+
description: "Specific reason why the grant's times are not programmable on the device.",
|
|
34017
|
+
enum: [
|
|
34018
|
+
'duration_exceeds_max',
|
|
34019
|
+
'times_do_not_match_slots',
|
|
34020
|
+
'ongoing_not_supported',
|
|
34021
|
+
],
|
|
34022
|
+
type: 'string',
|
|
34023
|
+
},
|
|
34024
|
+
warning_code: {
|
|
34025
|
+
description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
34026
|
+
enum: [
|
|
34027
|
+
'device_time_constraints_violated',
|
|
34028
|
+
],
|
|
34029
|
+
type: 'string',
|
|
34030
|
+
},
|
|
34031
|
+
},
|
|
34032
|
+
required: [
|
|
34033
|
+
'created_at',
|
|
34034
|
+
'message',
|
|
34035
|
+
'warning_code',
|
|
34036
|
+
'device_id',
|
|
34037
|
+
'reason',
|
|
34038
|
+
],
|
|
34039
|
+
type: 'object',
|
|
34040
|
+
},
|
|
33875
34041
|
],
|
|
33876
34042
|
},
|
|
33877
34043
|
type: 'array',
|
|
@@ -34481,6 +34647,49 @@ export default {
|
|
|
34481
34647
|
],
|
|
34482
34648
|
type: 'object',
|
|
34483
34649
|
},
|
|
34650
|
+
{
|
|
34651
|
+
description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
|
|
34652
|
+
properties: {
|
|
34653
|
+
created_at: {
|
|
34654
|
+
description: 'Date and time at which Seam created the warning.',
|
|
34655
|
+
format: 'date-time',
|
|
34656
|
+
type: 'string',
|
|
34657
|
+
},
|
|
34658
|
+
device_id: {
|
|
34659
|
+
description: 'ID of the device whose time constraints the access grant violates.',
|
|
34660
|
+
format: 'uuid',
|
|
34661
|
+
type: 'string',
|
|
34662
|
+
},
|
|
34663
|
+
message: {
|
|
34664
|
+
description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
34665
|
+
type: 'string',
|
|
34666
|
+
},
|
|
34667
|
+
reason: {
|
|
34668
|
+
description: "Specific reason why the grant's times are not programmable on the device.",
|
|
34669
|
+
enum: [
|
|
34670
|
+
'duration_exceeds_max',
|
|
34671
|
+
'times_do_not_match_slots',
|
|
34672
|
+
'ongoing_not_supported',
|
|
34673
|
+
],
|
|
34674
|
+
type: 'string',
|
|
34675
|
+
},
|
|
34676
|
+
warning_code: {
|
|
34677
|
+
description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
34678
|
+
enum: [
|
|
34679
|
+
'device_time_constraints_violated',
|
|
34680
|
+
],
|
|
34681
|
+
type: 'string',
|
|
34682
|
+
},
|
|
34683
|
+
},
|
|
34684
|
+
required: [
|
|
34685
|
+
'created_at',
|
|
34686
|
+
'message',
|
|
34687
|
+
'warning_code',
|
|
34688
|
+
'device_id',
|
|
34689
|
+
'reason',
|
|
34690
|
+
],
|
|
34691
|
+
type: 'object',
|
|
34692
|
+
},
|
|
34484
34693
|
],
|
|
34485
34694
|
},
|
|
34486
34695
|
type: 'array',
|
|
@@ -67877,6 +68086,116 @@ export default {
|
|
|
67877
68086
|
'x-title': 'Add Entrances to a Space',
|
|
67878
68087
|
},
|
|
67879
68088
|
},
|
|
68089
|
+
'/spaces/add_connected_account': {
|
|
68090
|
+
post: {
|
|
68091
|
+
description: 'Adds a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) to a specific space.',
|
|
68092
|
+
operationId: 'spacesAddConnectedAccountPost',
|
|
68093
|
+
requestBody: {
|
|
68094
|
+
content: {
|
|
68095
|
+
'application/json': {
|
|
68096
|
+
schema: {
|
|
68097
|
+
properties: {
|
|
68098
|
+
connected_account_id: {
|
|
68099
|
+
description: 'ID of the connected account that you want to add to the space.',
|
|
68100
|
+
format: 'uuid',
|
|
68101
|
+
type: 'string',
|
|
68102
|
+
},
|
|
68103
|
+
space_id: {
|
|
68104
|
+
description: 'ID of the space to which you want to add the connected account.',
|
|
68105
|
+
format: 'uuid',
|
|
68106
|
+
type: 'string',
|
|
68107
|
+
},
|
|
68108
|
+
},
|
|
68109
|
+
required: ['space_id', 'connected_account_id'],
|
|
68110
|
+
type: 'object',
|
|
68111
|
+
},
|
|
68112
|
+
},
|
|
68113
|
+
},
|
|
68114
|
+
},
|
|
68115
|
+
responses: {
|
|
68116
|
+
200: {
|
|
68117
|
+
content: {
|
|
68118
|
+
'application/json': {
|
|
68119
|
+
schema: {
|
|
68120
|
+
properties: { ok: { type: 'boolean' } },
|
|
68121
|
+
required: ['ok'],
|
|
68122
|
+
type: 'object',
|
|
68123
|
+
},
|
|
68124
|
+
},
|
|
68125
|
+
},
|
|
68126
|
+
description: 'OK',
|
|
68127
|
+
},
|
|
68128
|
+
400: { description: 'Bad Request' },
|
|
68129
|
+
401: { description: 'Unauthorized' },
|
|
68130
|
+
},
|
|
68131
|
+
security: [
|
|
68132
|
+
{ pat_with_workspace: [] },
|
|
68133
|
+
{ console_session_with_workspace: [] },
|
|
68134
|
+
{ api_key: [] },
|
|
68135
|
+
{ client_session_with_customer: [] },
|
|
68136
|
+
],
|
|
68137
|
+
summary: '/spaces/add_connected_account',
|
|
68138
|
+
tags: [],
|
|
68139
|
+
'x-fern-sdk-group-name': ['spaces'],
|
|
68140
|
+
'x-fern-sdk-method-name': 'add_connected_account',
|
|
68141
|
+
'x-response-key': null,
|
|
68142
|
+
'x-title': 'Add a Connected Account to a Space',
|
|
68143
|
+
},
|
|
68144
|
+
put: {
|
|
68145
|
+
description: 'Adds a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) to a specific space.',
|
|
68146
|
+
operationId: 'spacesAddConnectedAccountPut',
|
|
68147
|
+
requestBody: {
|
|
68148
|
+
content: {
|
|
68149
|
+
'application/json': {
|
|
68150
|
+
schema: {
|
|
68151
|
+
properties: {
|
|
68152
|
+
connected_account_id: {
|
|
68153
|
+
description: 'ID of the connected account that you want to add to the space.',
|
|
68154
|
+
format: 'uuid',
|
|
68155
|
+
type: 'string',
|
|
68156
|
+
},
|
|
68157
|
+
space_id: {
|
|
68158
|
+
description: 'ID of the space to which you want to add the connected account.',
|
|
68159
|
+
format: 'uuid',
|
|
68160
|
+
type: 'string',
|
|
68161
|
+
},
|
|
68162
|
+
},
|
|
68163
|
+
required: ['space_id', 'connected_account_id'],
|
|
68164
|
+
type: 'object',
|
|
68165
|
+
},
|
|
68166
|
+
},
|
|
68167
|
+
},
|
|
68168
|
+
},
|
|
68169
|
+
responses: {
|
|
68170
|
+
200: {
|
|
68171
|
+
content: {
|
|
68172
|
+
'application/json': {
|
|
68173
|
+
schema: {
|
|
68174
|
+
properties: { ok: { type: 'boolean' } },
|
|
68175
|
+
required: ['ok'],
|
|
68176
|
+
type: 'object',
|
|
68177
|
+
},
|
|
68178
|
+
},
|
|
68179
|
+
},
|
|
68180
|
+
description: 'OK',
|
|
68181
|
+
},
|
|
68182
|
+
400: { description: 'Bad Request' },
|
|
68183
|
+
401: { description: 'Unauthorized' },
|
|
68184
|
+
},
|
|
68185
|
+
security: [
|
|
68186
|
+
{ pat_with_workspace: [] },
|
|
68187
|
+
{ console_session_with_workspace: [] },
|
|
68188
|
+
{ api_key: [] },
|
|
68189
|
+
{ client_session_with_customer: [] },
|
|
68190
|
+
],
|
|
68191
|
+
summary: '/spaces/add_connected_account',
|
|
68192
|
+
tags: [],
|
|
68193
|
+
'x-fern-sdk-group-name': ['spaces'],
|
|
68194
|
+
'x-fern-sdk-method-name': 'add_connected_account',
|
|
68195
|
+
'x-response-key': null,
|
|
68196
|
+
'x-title': 'Add a Connected Account to a Space',
|
|
68197
|
+
},
|
|
68198
|
+
},
|
|
67880
68199
|
'/spaces/add_devices': {
|
|
67881
68200
|
post: {
|
|
67882
68201
|
description: 'Adds devices to a specific space.',
|
|
@@ -68840,6 +69159,116 @@ export default {
|
|
|
68840
69159
|
'x-title': 'Remove Entrances from a Space',
|
|
68841
69160
|
},
|
|
68842
69161
|
},
|
|
69162
|
+
'/spaces/remove_connected_account': {
|
|
69163
|
+
delete: {
|
|
69164
|
+
description: 'Removes a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) from a specific space.',
|
|
69165
|
+
operationId: 'spacesRemoveConnectedAccountDelete',
|
|
69166
|
+
parameters: [
|
|
69167
|
+
{
|
|
69168
|
+
in: 'query',
|
|
69169
|
+
name: 'space_id',
|
|
69170
|
+
required: true,
|
|
69171
|
+
schema: {
|
|
69172
|
+
description: 'ID of the space from which you want to remove the connected account.',
|
|
69173
|
+
format: 'uuid',
|
|
69174
|
+
type: 'string',
|
|
69175
|
+
},
|
|
69176
|
+
},
|
|
69177
|
+
{
|
|
69178
|
+
in: 'query',
|
|
69179
|
+
name: 'connected_account_id',
|
|
69180
|
+
required: true,
|
|
69181
|
+
schema: {
|
|
69182
|
+
description: 'ID of the connected account that you want to remove from the space.',
|
|
69183
|
+
format: 'uuid',
|
|
69184
|
+
type: 'string',
|
|
69185
|
+
},
|
|
69186
|
+
},
|
|
69187
|
+
],
|
|
69188
|
+
responses: {
|
|
69189
|
+
200: {
|
|
69190
|
+
content: {
|
|
69191
|
+
'application/json': {
|
|
69192
|
+
schema: {
|
|
69193
|
+
properties: { ok: { type: 'boolean' } },
|
|
69194
|
+
required: ['ok'],
|
|
69195
|
+
type: 'object',
|
|
69196
|
+
},
|
|
69197
|
+
},
|
|
69198
|
+
},
|
|
69199
|
+
description: 'OK',
|
|
69200
|
+
},
|
|
69201
|
+
400: { description: 'Bad Request' },
|
|
69202
|
+
401: { description: 'Unauthorized' },
|
|
69203
|
+
},
|
|
69204
|
+
security: [
|
|
69205
|
+
{ pat_with_workspace: [] },
|
|
69206
|
+
{ console_session_with_workspace: [] },
|
|
69207
|
+
{ api_key: [] },
|
|
69208
|
+
{ client_session_with_customer: [] },
|
|
69209
|
+
],
|
|
69210
|
+
summary: '/spaces/remove_connected_account',
|
|
69211
|
+
tags: [],
|
|
69212
|
+
'x-fern-sdk-group-name': ['spaces'],
|
|
69213
|
+
'x-fern-sdk-method-name': 'remove_connected_account',
|
|
69214
|
+
'x-response-key': null,
|
|
69215
|
+
'x-title': 'Remove a Connected Account from a Space',
|
|
69216
|
+
},
|
|
69217
|
+
post: {
|
|
69218
|
+
description: 'Removes a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) from a specific space.',
|
|
69219
|
+
operationId: 'spacesRemoveConnectedAccountPost',
|
|
69220
|
+
requestBody: {
|
|
69221
|
+
content: {
|
|
69222
|
+
'application/json': {
|
|
69223
|
+
schema: {
|
|
69224
|
+
properties: {
|
|
69225
|
+
connected_account_id: {
|
|
69226
|
+
description: 'ID of the connected account that you want to remove from the space.',
|
|
69227
|
+
format: 'uuid',
|
|
69228
|
+
type: 'string',
|
|
69229
|
+
},
|
|
69230
|
+
space_id: {
|
|
69231
|
+
description: 'ID of the space from which you want to remove the connected account.',
|
|
69232
|
+
format: 'uuid',
|
|
69233
|
+
type: 'string',
|
|
69234
|
+
},
|
|
69235
|
+
},
|
|
69236
|
+
required: ['space_id', 'connected_account_id'],
|
|
69237
|
+
type: 'object',
|
|
69238
|
+
},
|
|
69239
|
+
},
|
|
69240
|
+
},
|
|
69241
|
+
},
|
|
69242
|
+
responses: {
|
|
69243
|
+
200: {
|
|
69244
|
+
content: {
|
|
69245
|
+
'application/json': {
|
|
69246
|
+
schema: {
|
|
69247
|
+
properties: { ok: { type: 'boolean' } },
|
|
69248
|
+
required: ['ok'],
|
|
69249
|
+
type: 'object',
|
|
69250
|
+
},
|
|
69251
|
+
},
|
|
69252
|
+
},
|
|
69253
|
+
description: 'OK',
|
|
69254
|
+
},
|
|
69255
|
+
400: { description: 'Bad Request' },
|
|
69256
|
+
401: { description: 'Unauthorized' },
|
|
69257
|
+
},
|
|
69258
|
+
security: [
|
|
69259
|
+
{ pat_with_workspace: [] },
|
|
69260
|
+
{ console_session_with_workspace: [] },
|
|
69261
|
+
{ api_key: [] },
|
|
69262
|
+
{ client_session_with_customer: [] },
|
|
69263
|
+
],
|
|
69264
|
+
summary: '/spaces/remove_connected_account',
|
|
69265
|
+
tags: [],
|
|
69266
|
+
'x-fern-sdk-group-name': ['spaces'],
|
|
69267
|
+
'x-fern-sdk-method-name': 'remove_connected_account',
|
|
69268
|
+
'x-response-key': null,
|
|
69269
|
+
'x-title': 'Remove a Connected Account from a Space',
|
|
69270
|
+
},
|
|
69271
|
+
},
|
|
68843
69272
|
'/spaces/remove_devices': {
|
|
68844
69273
|
delete: {
|
|
68845
69274
|
description: 'Removes devices from a specific space.',
|