@seamapi/types 1.413.0 → 1.414.1
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 +381 -1131
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +506 -1136
- package/lib/seam/connect/models/locations/location.js +6 -1
- package/lib/seam/connect/models/locations/location.js.map +1 -1
- package/lib/seam/connect/models/phones/phone-session.d.ts +16 -14
- package/lib/seam/connect/models/phones/phone-session.js +4 -0
- package/lib/seam/connect/models/phones/phone-session.js.map +1 -1
- package/lib/seam/connect/models/thermostats/thermostat-program.js +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +73 -0
- package/lib/seam/connect/models/user-identities/user-identity.js +40 -0
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +437 -1168
- package/lib/seam/connect/openapi.js +355 -1133
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +63 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/locations/location.ts +6 -1
- package/src/lib/seam/connect/models/phones/phone-session.ts +4 -0
- package/src/lib/seam/connect/models/thermostats/thermostat-program.ts +1 -1
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +60 -0
- package/src/lib/seam/connect/openapi.ts +408 -1241
- package/src/lib/seam/connect/route-types.ts +63 -4
|
@@ -14732,6 +14732,10 @@ export interface Routes {
|
|
|
14732
14732
|
location_id?: (string | null) | undefined;
|
|
14733
14733
|
/** ID of the space for which you want to list entrances. */
|
|
14734
14734
|
space_id?: string | undefined;
|
|
14735
|
+
/** ID of the access grant for which you want to retrieve all entrances. */
|
|
14736
|
+
access_grant_id?: string | undefined;
|
|
14737
|
+
/** ID of the access method for which you want to retrieve all entrances. */
|
|
14738
|
+
access_method_id?: string | undefined;
|
|
14735
14739
|
};
|
|
14736
14740
|
formData: {};
|
|
14737
14741
|
jsonResponse: {
|
|
@@ -41876,8 +41880,6 @@ export interface Routes {
|
|
|
41876
41880
|
is_being_activated: boolean;
|
|
41877
41881
|
};
|
|
41878
41882
|
acs_credentials: Array<{
|
|
41879
|
-
/** ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
41880
|
-
acs_credential_id: string;
|
|
41881
41883
|
/** ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
|
|
41882
41884
|
acs_user_id?: string | undefined;
|
|
41883
41885
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -41987,6 +41989,7 @@ export interface Routes {
|
|
|
41987
41989
|
endpoint_id?: string | undefined;
|
|
41988
41990
|
} | undefined;
|
|
41989
41991
|
is_managed: true;
|
|
41992
|
+
acs_credential_id?: (string | undefined) | null;
|
|
41990
41993
|
acs_entrances: Array<{
|
|
41991
41994
|
/** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
41992
41995
|
acs_system_id: string;
|
|
@@ -56817,6 +56820,7 @@ export interface Routes {
|
|
|
56817
56820
|
commonParams: {};
|
|
56818
56821
|
formData: {};
|
|
56819
56822
|
jsonResponse: {
|
|
56823
|
+
/** */
|
|
56820
56824
|
location: {
|
|
56821
56825
|
/** Unique identifier for the location. */
|
|
56822
56826
|
location_id: string;
|
|
@@ -56861,6 +56865,7 @@ export interface Routes {
|
|
|
56861
56865
|
};
|
|
56862
56866
|
formData: {};
|
|
56863
56867
|
jsonResponse: {
|
|
56868
|
+
/** */
|
|
56864
56869
|
location: {
|
|
56865
56870
|
/** Unique identifier for the location. */
|
|
56866
56871
|
location_id: string;
|
|
@@ -56959,6 +56964,7 @@ export interface Routes {
|
|
|
56959
56964
|
commonParams: {};
|
|
56960
56965
|
formData: {};
|
|
56961
56966
|
jsonResponse: {
|
|
56967
|
+
/** */
|
|
56962
56968
|
location: {
|
|
56963
56969
|
/** Unique identifier for the location. */
|
|
56964
56970
|
location_id: string;
|
|
@@ -57174,6 +57180,22 @@ export interface Routes {
|
|
|
57174
57180
|
created_at: string;
|
|
57175
57181
|
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
|
|
57176
57182
|
workspace_id: string;
|
|
57183
|
+
/** Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
|
|
57184
|
+
errors: Array<{
|
|
57185
|
+
/** Date and time at which Seam created the error. */
|
|
57186
|
+
created_at: string;
|
|
57187
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
57188
|
+
message: string;
|
|
57189
|
+
}>;
|
|
57190
|
+
/** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
|
|
57191
|
+
warnings: Array<{
|
|
57192
|
+
/** Date and time at which Seam created the warning. */
|
|
57193
|
+
created_at: string;
|
|
57194
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
57195
|
+
message: string;
|
|
57196
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
57197
|
+
warning_code: 'being_deleted';
|
|
57198
|
+
}>;
|
|
57177
57199
|
};
|
|
57178
57200
|
};
|
|
57179
57201
|
};
|
|
@@ -57246,13 +57268,18 @@ export interface Routes {
|
|
|
57246
57268
|
};
|
|
57247
57269
|
formData: {};
|
|
57248
57270
|
jsonResponse: {
|
|
57271
|
+
/** Represents an [enrollment automation](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system) within the [Seam mobile access solution](https://docs.seam.co/latest/capability-guides/mobile-access-in-development). */
|
|
57249
57272
|
enrollment_automation: {
|
|
57250
|
-
|
|
57273
|
+
/** ID of the enrollment automation. */
|
|
57274
|
+
enrollment_automation_id: string;
|
|
57275
|
+
/** ID of the associated [ACS system](https://docs.seam.co/latest/capability-guides/access-systems) that serves as the credential manager. */
|
|
57251
57276
|
credential_manager_acs_system_id: string;
|
|
57277
|
+
/** ID of the associated [user identity](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity). */
|
|
57252
57278
|
user_identity_id: string;
|
|
57279
|
+
/** Date and time at which the enrollment automation was created. */
|
|
57253
57280
|
created_at: string;
|
|
57281
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the enrollment automation. */
|
|
57254
57282
|
workspace_id: string;
|
|
57255
|
-
enrollment_automation_id: string;
|
|
57256
57283
|
};
|
|
57257
57284
|
};
|
|
57258
57285
|
};
|
|
@@ -57335,6 +57362,22 @@ export interface Routes {
|
|
|
57335
57362
|
created_at: string;
|
|
57336
57363
|
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
|
|
57337
57364
|
workspace_id: string;
|
|
57365
|
+
/** Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
|
|
57366
|
+
errors: Array<{
|
|
57367
|
+
/** Date and time at which Seam created the error. */
|
|
57368
|
+
created_at: string;
|
|
57369
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
57370
|
+
message: string;
|
|
57371
|
+
}>;
|
|
57372
|
+
/** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
|
|
57373
|
+
warnings: Array<{
|
|
57374
|
+
/** Date and time at which Seam created the warning. */
|
|
57375
|
+
created_at: string;
|
|
57376
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
57377
|
+
message: string;
|
|
57378
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
57379
|
+
warning_code: 'being_deleted';
|
|
57380
|
+
}>;
|
|
57338
57381
|
};
|
|
57339
57382
|
};
|
|
57340
57383
|
};
|
|
@@ -57378,6 +57421,22 @@ export interface Routes {
|
|
|
57378
57421
|
created_at: string;
|
|
57379
57422
|
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
|
|
57380
57423
|
workspace_id: string;
|
|
57424
|
+
/** Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
|
|
57425
|
+
errors: Array<{
|
|
57426
|
+
/** Date and time at which Seam created the error. */
|
|
57427
|
+
created_at: string;
|
|
57428
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
57429
|
+
message: string;
|
|
57430
|
+
}>;
|
|
57431
|
+
/** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
|
|
57432
|
+
warnings: Array<{
|
|
57433
|
+
/** Date and time at which Seam created the warning. */
|
|
57434
|
+
created_at: string;
|
|
57435
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
57436
|
+
message: string;
|
|
57437
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
57438
|
+
warning_code: 'being_deleted';
|
|
57439
|
+
}>;
|
|
57381
57440
|
}>;
|
|
57382
57441
|
};
|
|
57383
57442
|
};
|
package/package.json
CHANGED
|
@@ -26,6 +26,11 @@ export const location = z.object({
|
|
|
26
26
|
.string()
|
|
27
27
|
.datetime()
|
|
28
28
|
.describe('Date and time at which the location object was created.'),
|
|
29
|
-
})
|
|
29
|
+
}).describe(`
|
|
30
|
+
---
|
|
31
|
+
undocumented: Will be removed.
|
|
32
|
+
route_path: /unstable_locations
|
|
33
|
+
---
|
|
34
|
+
`)
|
|
30
35
|
|
|
31
36
|
export type Location = z.infer<typeof location>
|
|
@@ -7,7 +7,11 @@ import { phone_registration } from './phone-registration.js'
|
|
|
7
7
|
const phone_provider_session = z.object({
|
|
8
8
|
phone_registration,
|
|
9
9
|
acs_credentials: acs_credential
|
|
10
|
+
.omit({
|
|
11
|
+
acs_credential_id: true,
|
|
12
|
+
})
|
|
10
13
|
.extend({
|
|
14
|
+
acs_credential_id: z.string().optional().nullable(),
|
|
11
15
|
acs_entrances: acs_entrance.array(),
|
|
12
16
|
})
|
|
13
17
|
.array(),
|
|
@@ -50,7 +50,7 @@ export const thermostat_daily_program = z.object({
|
|
|
50
50
|
),
|
|
51
51
|
}).describe(`
|
|
52
52
|
---
|
|
53
|
-
route_path: /thermostats/
|
|
53
|
+
route_path: /thermostats/daily_programs
|
|
54
54
|
---
|
|
55
55
|
Represents a thermostat daily program, consisting of a set of periods, each of which has a starting time and the key that identifies the climate preset to apply at the starting time.
|
|
56
56
|
`)
|
|
@@ -2,6 +2,56 @@ import { z } from 'zod'
|
|
|
2
2
|
|
|
3
3
|
import { phone_number } from '../phone-number.js'
|
|
4
4
|
|
|
5
|
+
const common_user_identity_error = z.object({
|
|
6
|
+
created_at: z
|
|
7
|
+
.string()
|
|
8
|
+
.datetime()
|
|
9
|
+
.describe('Date and time at which Seam created the error.'),
|
|
10
|
+
message: z
|
|
11
|
+
.string()
|
|
12
|
+
.describe(
|
|
13
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
14
|
+
),
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const common_user_identity_warning = z.object({
|
|
18
|
+
created_at: z
|
|
19
|
+
.string()
|
|
20
|
+
.datetime()
|
|
21
|
+
.describe('Date and time at which Seam created the warning.'),
|
|
22
|
+
message: z
|
|
23
|
+
.string()
|
|
24
|
+
.describe(
|
|
25
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
26
|
+
),
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
const user_identity_being_deleted = common_user_identity_warning
|
|
30
|
+
.extend({
|
|
31
|
+
warning_code: z
|
|
32
|
+
.literal('being_deleted')
|
|
33
|
+
.describe(
|
|
34
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
35
|
+
),
|
|
36
|
+
})
|
|
37
|
+
.describe('Indicates that the user identity is currently being deleted.')
|
|
38
|
+
|
|
39
|
+
export const user_identity_error_map = z.object({})
|
|
40
|
+
|
|
41
|
+
export type UserIdentityErrorMap = z.infer<typeof user_identity_error_map>
|
|
42
|
+
|
|
43
|
+
const user_identity_warnings = z
|
|
44
|
+
.discriminatedUnion('warning_code', [user_identity_being_deleted])
|
|
45
|
+
.describe('Warnings associated with the user identity.')
|
|
46
|
+
|
|
47
|
+
export const user_identity_warning_map = z.object({
|
|
48
|
+
user_identity_being_deleted: user_identity_being_deleted
|
|
49
|
+
.optional()
|
|
50
|
+
.nullable(),
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
export type UserIdentityWarningMap = z.infer<typeof user_identity_warning_map>
|
|
54
|
+
|
|
5
55
|
export const user_identity = z.object({
|
|
6
56
|
user_identity_id: z.string().uuid().describe('ID of the user identity.'),
|
|
7
57
|
user_identity_key: z
|
|
@@ -31,6 +81,16 @@ export const user_identity = z.object({
|
|
|
31
81
|
.describe(
|
|
32
82
|
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity.',
|
|
33
83
|
),
|
|
84
|
+
errors: z
|
|
85
|
+
.array(common_user_identity_error)
|
|
86
|
+
.describe(
|
|
87
|
+
'Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
|
|
88
|
+
),
|
|
89
|
+
warnings: z
|
|
90
|
+
.array(user_identity_warnings)
|
|
91
|
+
.describe(
|
|
92
|
+
'Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
|
|
93
|
+
),
|
|
34
94
|
}).describe(`
|
|
35
95
|
---
|
|
36
96
|
route_path: /user_identities
|