@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
|
@@ -11079,6 +11079,17 @@ export type Routes = {
|
|
|
11079
11079
|
warning_code: 'device_does_not_support_access_codes';
|
|
11080
11080
|
/** ID of the device that does not support access codes. */
|
|
11081
11081
|
device_id: string;
|
|
11082
|
+
} | {
|
|
11083
|
+
/** Date and time at which Seam created the warning. */
|
|
11084
|
+
created_at: string;
|
|
11085
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
11086
|
+
message: string;
|
|
11087
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
11088
|
+
warning_code: 'device_time_constraints_violated';
|
|
11089
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
11090
|
+
device_id: string;
|
|
11091
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
11092
|
+
reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
|
|
11082
11093
|
})[];
|
|
11083
11094
|
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
11084
11095
|
errors: {
|
|
@@ -11276,6 +11287,17 @@ export type Routes = {
|
|
|
11276
11287
|
warning_code: 'device_does_not_support_access_codes';
|
|
11277
11288
|
/** ID of the device that does not support access codes. */
|
|
11278
11289
|
device_id: string;
|
|
11290
|
+
} | {
|
|
11291
|
+
/** Date and time at which Seam created the warning. */
|
|
11292
|
+
created_at: string;
|
|
11293
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
11294
|
+
message: string;
|
|
11295
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
11296
|
+
warning_code: 'device_time_constraints_violated';
|
|
11297
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
11298
|
+
device_id: string;
|
|
11299
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
11300
|
+
reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
|
|
11279
11301
|
})[];
|
|
11280
11302
|
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
11281
11303
|
errors: {
|
|
@@ -13565,6 +13587,17 @@ export type Routes = {
|
|
|
13565
13587
|
warning_code: 'device_does_not_support_access_codes';
|
|
13566
13588
|
/** ID of the device that does not support access codes. */
|
|
13567
13589
|
device_id: string;
|
|
13590
|
+
} | {
|
|
13591
|
+
/** Date and time at which Seam created the warning. */
|
|
13592
|
+
created_at: string;
|
|
13593
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
13594
|
+
message: string;
|
|
13595
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
13596
|
+
warning_code: 'device_time_constraints_violated';
|
|
13597
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
13598
|
+
device_id: string;
|
|
13599
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
13600
|
+
reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
|
|
13568
13601
|
})[];
|
|
13569
13602
|
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
13570
13603
|
errors: {
|
|
@@ -13764,6 +13797,17 @@ export type Routes = {
|
|
|
13764
13797
|
warning_code: 'device_does_not_support_access_codes';
|
|
13765
13798
|
/** ID of the device that does not support access codes. */
|
|
13766
13799
|
device_id: string;
|
|
13800
|
+
} | {
|
|
13801
|
+
/** Date and time at which Seam created the warning. */
|
|
13802
|
+
created_at: string;
|
|
13803
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
13804
|
+
message: string;
|
|
13805
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
13806
|
+
warning_code: 'device_time_constraints_violated';
|
|
13807
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
13808
|
+
device_id: string;
|
|
13809
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
13810
|
+
reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
|
|
13767
13811
|
})[];
|
|
13768
13812
|
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
13769
13813
|
errors: {
|
|
@@ -13937,6 +13981,17 @@ export type Routes = {
|
|
|
13937
13981
|
warning_code: 'device_does_not_support_access_codes';
|
|
13938
13982
|
/** ID of the device that does not support access codes. */
|
|
13939
13983
|
device_id: string;
|
|
13984
|
+
} | {
|
|
13985
|
+
/** Date and time at which Seam created the warning. */
|
|
13986
|
+
created_at: string;
|
|
13987
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
13988
|
+
message: string;
|
|
13989
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
13990
|
+
warning_code: 'device_time_constraints_violated';
|
|
13991
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
13992
|
+
device_id: string;
|
|
13993
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
13994
|
+
reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
|
|
13940
13995
|
})[];
|
|
13941
13996
|
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
13942
13997
|
errors: {
|
|
@@ -14119,6 +14174,17 @@ export type Routes = {
|
|
|
14119
14174
|
warning_code: 'device_does_not_support_access_codes';
|
|
14120
14175
|
/** ID of the device that does not support access codes. */
|
|
14121
14176
|
device_id: string;
|
|
14177
|
+
} | {
|
|
14178
|
+
/** Date and time at which Seam created the warning. */
|
|
14179
|
+
created_at: string;
|
|
14180
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
14181
|
+
message: string;
|
|
14182
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
14183
|
+
warning_code: 'device_time_constraints_violated';
|
|
14184
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
14185
|
+
device_id: string;
|
|
14186
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
14187
|
+
reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
|
|
14122
14188
|
})[];
|
|
14123
14189
|
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
14124
14190
|
errors: {
|
|
@@ -17322,6 +17388,17 @@ export type Routes = {
|
|
|
17322
17388
|
warning_code: 'device_does_not_support_access_codes';
|
|
17323
17389
|
/** ID of the device that does not support access codes. */
|
|
17324
17390
|
device_id: string;
|
|
17391
|
+
} | {
|
|
17392
|
+
/** Date and time at which Seam created the warning. */
|
|
17393
|
+
created_at: string;
|
|
17394
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
17395
|
+
message: string;
|
|
17396
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
17397
|
+
warning_code: 'device_time_constraints_violated';
|
|
17398
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
17399
|
+
device_id: string;
|
|
17400
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
17401
|
+
reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
|
|
17325
17402
|
})[];
|
|
17326
17403
|
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
17327
17404
|
errors: {
|
|
@@ -61732,6 +61809,17 @@ export type Routes = {
|
|
|
61732
61809
|
warning_code: 'device_does_not_support_access_codes';
|
|
61733
61810
|
/** ID of the device that does not support access codes. */
|
|
61734
61811
|
device_id: string;
|
|
61812
|
+
} | {
|
|
61813
|
+
/** Date and time at which Seam created the warning. */
|
|
61814
|
+
created_at: string;
|
|
61815
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
61816
|
+
message: string;
|
|
61817
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
61818
|
+
warning_code: 'device_time_constraints_violated';
|
|
61819
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
61820
|
+
device_id: string;
|
|
61821
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
61822
|
+
reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
|
|
61735
61823
|
})[];
|
|
61736
61824
|
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
61737
61825
|
errors: {
|
|
@@ -67372,6 +67460,17 @@ export type Routes = {
|
|
|
67372
67460
|
warning_code: 'device_does_not_support_access_codes';
|
|
67373
67461
|
/** ID of the device that does not support access codes. */
|
|
67374
67462
|
device_id: string;
|
|
67463
|
+
} | {
|
|
67464
|
+
/** Date and time at which Seam created the warning. */
|
|
67465
|
+
created_at: string;
|
|
67466
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
67467
|
+
message: string;
|
|
67468
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
67469
|
+
warning_code: 'device_time_constraints_violated';
|
|
67470
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
67471
|
+
device_id: string;
|
|
67472
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
67473
|
+
reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
|
|
67375
67474
|
})[];
|
|
67376
67475
|
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
67377
67476
|
errors: {
|
|
@@ -67825,6 +67924,17 @@ export type Routes = {
|
|
|
67825
67924
|
warning_code: 'device_does_not_support_access_codes';
|
|
67826
67925
|
/** ID of the device that does not support access codes. */
|
|
67827
67926
|
device_id: string;
|
|
67927
|
+
} | {
|
|
67928
|
+
/** Date and time at which Seam created the warning. */
|
|
67929
|
+
created_at: string;
|
|
67930
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
67931
|
+
message: string;
|
|
67932
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
67933
|
+
warning_code: 'device_time_constraints_violated';
|
|
67934
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
67935
|
+
device_id: string;
|
|
67936
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
67937
|
+
reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
|
|
67828
67938
|
})[];
|
|
67829
67939
|
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
67830
67940
|
errors: {
|
|
@@ -68609,6 +68719,21 @@ export type Routes = {
|
|
|
68609
68719
|
jsonResponse: {};
|
|
68610
68720
|
maxDuration: undefined;
|
|
68611
68721
|
};
|
|
68722
|
+
'/spaces/add_connected_account': {
|
|
68723
|
+
route: '/spaces/add_connected_account';
|
|
68724
|
+
method: 'POST' | 'PUT';
|
|
68725
|
+
queryParams: {};
|
|
68726
|
+
jsonBody: {
|
|
68727
|
+
/** ID of the space to which you want to add the connected account. */
|
|
68728
|
+
space_id: string;
|
|
68729
|
+
/** ID of the connected account that you want to add to the space. */
|
|
68730
|
+
connected_account_id: string;
|
|
68731
|
+
};
|
|
68732
|
+
commonParams: {};
|
|
68733
|
+
formData: {};
|
|
68734
|
+
jsonResponse: {};
|
|
68735
|
+
maxDuration: undefined;
|
|
68736
|
+
};
|
|
68612
68737
|
'/spaces/add_devices': {
|
|
68613
68738
|
route: '/spaces/add_devices';
|
|
68614
68739
|
method: 'POST' | 'PUT';
|
|
@@ -70709,6 +70834,21 @@ export type Routes = {
|
|
|
70709
70834
|
jsonResponse: {};
|
|
70710
70835
|
maxDuration: undefined;
|
|
70711
70836
|
};
|
|
70837
|
+
'/spaces/remove_connected_account': {
|
|
70838
|
+
route: '/spaces/remove_connected_account';
|
|
70839
|
+
method: 'POST' | 'DELETE';
|
|
70840
|
+
queryParams: {};
|
|
70841
|
+
jsonBody: {};
|
|
70842
|
+
commonParams: {
|
|
70843
|
+
/** ID of the space from which you want to remove the connected account. */
|
|
70844
|
+
space_id: string;
|
|
70845
|
+
/** ID of the connected account that you want to remove from the space. */
|
|
70846
|
+
connected_account_id: string;
|
|
70847
|
+
};
|
|
70848
|
+
formData: {};
|
|
70849
|
+
jsonResponse: {};
|
|
70850
|
+
maxDuration: undefined;
|
|
70851
|
+
};
|
|
70712
70852
|
'/spaces/remove_devices': {
|
|
70713
70853
|
route: '/spaces/remove_devices';
|
|
70714
70854
|
method: 'POST' | 'DELETE';
|
|
@@ -96238,6 +96378,17 @@ export type Routes = {
|
|
|
96238
96378
|
warning_code: 'device_does_not_support_access_codes';
|
|
96239
96379
|
/** ID of the device that does not support access codes. */
|
|
96240
96380
|
device_id: string;
|
|
96381
|
+
} | {
|
|
96382
|
+
/** Date and time at which Seam created the warning. */
|
|
96383
|
+
created_at: string;
|
|
96384
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
96385
|
+
message: string;
|
|
96386
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
96387
|
+
warning_code: 'device_time_constraints_violated';
|
|
96388
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
96389
|
+
device_id: string;
|
|
96390
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
96391
|
+
reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
|
|
96241
96392
|
})[];
|
|
96242
96393
|
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
96243
96394
|
errors: {
|
package/package.json
CHANGED
|
@@ -149,6 +149,31 @@ const device_does_not_support_access_codes = common_access_grant_warning
|
|
|
149
149
|
'Indicates that a device in the access grant does not support access codes and was excluded from code materialization.',
|
|
150
150
|
)
|
|
151
151
|
|
|
152
|
+
const device_time_constraints_violated_reason = z.enum([
|
|
153
|
+
'duration_exceeds_max',
|
|
154
|
+
'times_do_not_match_slots',
|
|
155
|
+
'ongoing_not_supported',
|
|
156
|
+
])
|
|
157
|
+
|
|
158
|
+
const device_time_constraints_violated = common_access_grant_warning
|
|
159
|
+
.extend({
|
|
160
|
+
warning_code: z
|
|
161
|
+
.literal('device_time_constraints_violated')
|
|
162
|
+
.describe(warning_code_description),
|
|
163
|
+
device_id: z
|
|
164
|
+
.string()
|
|
165
|
+
.uuid()
|
|
166
|
+
.describe(
|
|
167
|
+
'ID of the device whose time constraints the access grant violates.',
|
|
168
|
+
),
|
|
169
|
+
reason: device_time_constraints_violated_reason.describe(
|
|
170
|
+
"Specific reason why the grant's times are not programmable on the device.",
|
|
171
|
+
),
|
|
172
|
+
})
|
|
173
|
+
.describe(
|
|
174
|
+
"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.",
|
|
175
|
+
)
|
|
176
|
+
|
|
152
177
|
const access_grant_warning = z
|
|
153
178
|
.discriminatedUnion('warning_code', [
|
|
154
179
|
being_deleted,
|
|
@@ -157,6 +182,7 @@ const access_grant_warning = z
|
|
|
157
182
|
updating_access_times,
|
|
158
183
|
requested_code_unavailable,
|
|
159
184
|
device_does_not_support_access_codes,
|
|
185
|
+
device_time_constraints_violated,
|
|
160
186
|
])
|
|
161
187
|
.describe(
|
|
162
188
|
'Warning associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
|
|
@@ -175,6 +201,10 @@ const _access_grant_warning_map = z.object({
|
|
|
175
201
|
.record(z.string().uuid(), device_does_not_support_access_codes)
|
|
176
202
|
.optional()
|
|
177
203
|
.nullable(),
|
|
204
|
+
device_time_constraints_violated: z
|
|
205
|
+
.record(z.string().uuid(), device_time_constraints_violated)
|
|
206
|
+
.optional()
|
|
207
|
+
.nullable(),
|
|
178
208
|
})
|
|
179
209
|
|
|
180
210
|
export type AccessGrantWarningMap = z.infer<typeof _access_grant_warning_map>
|