@seamapi/types 1.1036.0 → 1.1038.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/lib/seam/connect/models/access-codes/managed-access-code.js +6 -16
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/pending-mutations.js +7 -20
- package/lib/seam/connect/models/access-codes/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.js +6 -19
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.js +10 -37
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/access-grants/pending-mutations.js +6 -22
- package/lib/seam/connect/models/access-grants/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -4
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.js +4 -12
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js +4 -10
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential-pool.js +2 -1
- package/lib/seam/connect/models/acs/acs-credential-pool.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js +3 -5
- package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.js +9 -27
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.js +2 -4
- package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.js +3 -8
- package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.js +4 -12
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.js +4 -12
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +5 -13
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +5 -13
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge-client-session.js +5 -15
- package/lib/seam/connect/models/bridges/bridge-client-session.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge-connected-system.js +3 -8
- package/lib/seam/connect/models/bridges/bridge-connected-system.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge.js +2 -4
- package/lib/seam/connect/models/bridges/bridge.js.map +1 -1
- package/lib/seam/connect/models/client-sessions/client-session.js +3 -8
- package/lib/seam/connect/models/client-sessions/client-session.js.map +1 -1
- package/lib/seam/connect/models/connect-webviews/connect-webview.js +3 -7
- package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.js +4 -11
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/customer/access-grant-resources.js +3 -6
- package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/customer.js +2 -4
- package/lib/seam/connect/models/customer/customer.js.map +1 -1
- package/lib/seam/connect/models/customization-profiles/customization-profile.js +2 -1
- package/lib/seam/connect/models/customization-profiles/customization-profile.js.map +1 -1
- package/lib/seam/connect/models/datetime.d.ts +2 -0
- package/lib/seam/connect/models/datetime.js +3 -0
- package/lib/seam/connect/models/datetime.js.map +1 -0
- package/lib/seam/connect/models/devices/device.js +4 -12
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.js +3 -8
- package/lib/seam/connect/models/devices/phone.js.map +1 -1
- package/lib/seam/connect/models/events/common.js +5 -16
- package/lib/seam/connect/models/events/common.js.map +1 -1
- package/lib/seam/connect/models/index.d.ts +1 -0
- package/lib/seam/connect/models/index.js +1 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/models/instant-keys/instant-key.js +3 -8
- package/lib/seam/connect/models/instant-keys/instant-key.js.map +1 -1
- package/lib/seam/connect/models/partner/customer-portal.js +3 -8
- package/lib/seam/connect/models/partner/customer-portal.js.map +1 -1
- package/lib/seam/connect/models/partner/magic-link.js +3 -8
- package/lib/seam/connect/models/partner/magic-link.js.map +1 -1
- package/lib/seam/connect/models/schedule.js +3 -7
- package/lib/seam/connect/models/schedule.js.map +1 -1
- package/lib/seam/connect/models/spaces/space.js +2 -4
- package/lib/seam/connect/models/spaces/space.js.map +1 -1
- package/lib/seam/connect/models/thermostats/thermostat-program.js +3 -8
- package/lib/seam/connect/models/thermostats/thermostat-program.js.map +1 -1
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js +5 -16
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.js +4 -12
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.js +6 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +3 -3
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +8 -16
- package/src/lib/seam/connect/models/access-codes/pending-mutations.ts +12 -22
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +14 -19
- package/src/lib/seam/connect/models/access-grants/access-method.ts +19 -37
- package/src/lib/seam/connect/models/access-grants/pending-mutations.ts +9 -22
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +5 -6
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +10 -12
- package/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts +7 -10
- package/src/lib/seam/connect/models/acs/acs-credential-pool.ts +3 -1
- package/src/lib/seam/connect/models/acs/acs-credential-provisioning-automation.ts +6 -5
- package/src/lib/seam/connect/models/acs/acs-credential.ts +15 -29
- package/src/lib/seam/connect/models/acs/acs-credentials/pending-mutations.ts +5 -4
- package/src/lib/seam/connect/models/acs/acs-encoder.ts +8 -10
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +10 -14
- package/src/lib/seam/connect/models/acs/acs-system.ts +11 -14
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +11 -15
- package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +7 -13
- package/src/lib/seam/connect/models/bridges/bridge-client-session.ts +12 -17
- package/src/lib/seam/connect/models/bridges/bridge-connected-system.ts +8 -10
- package/src/lib/seam/connect/models/bridges/bridge.ts +5 -4
- package/src/lib/seam/connect/models/client-sessions/client-session.ts +8 -12
- package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +5 -7
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +8 -11
- package/src/lib/seam/connect/models/customer/access-grant-resources.ts +3 -6
- package/src/lib/seam/connect/models/customer/customer.ts +5 -4
- package/src/lib/seam/connect/models/customization-profiles/customization-profile.ts +2 -1
- package/src/lib/seam/connect/models/datetime.ts +3 -0
- package/src/lib/seam/connect/models/devices/device.ts +10 -12
- package/src/lib/seam/connect/models/devices/phone.ts +7 -8
- package/src/lib/seam/connect/models/events/common.ts +12 -16
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/models/instant-keys/instant-key.ts +8 -8
- package/src/lib/seam/connect/models/partner/customer-portal.ts +8 -8
- package/src/lib/seam/connect/models/partner/magic-link.ts +8 -8
- package/src/lib/seam/connect/models/schedule.ts +6 -9
- package/src/lib/seam/connect/models/spaces/space.ts +5 -4
- package/src/lib/seam/connect/models/thermostats/thermostat-program.ts +8 -12
- package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +14 -22
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +10 -12
- package/src/lib/seam/connect/openapi.ts +6 -6
- package/src/lib/seam/connect/route-types.ts +3 -3
|
@@ -44758,7 +44758,7 @@ export type Routes = {
|
|
|
44758
44758
|
/** Array of device types for which you want to list devices. */
|
|
44759
44759
|
device_types?: (('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'avigilon_alta_entry' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'smartthings_lock' | 'wyze_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'four_suites_door' | 'dormakaba_oracode_door' | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | 'ring_camera')[] | undefined;
|
|
44760
44760
|
/** Manufacturer for which you want to list devices. */
|
|
44761
|
-
manufacturer?: ('akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'doorking' | 'four_suites' | 'genie' | 'igloo' | 'keywe' | 'kwikset' | 'linear' | '
|
|
44761
|
+
manufacturer?: ('akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'doorking' | 'four_suites' | 'genie' | 'igloo' | 'keywe' | 'kwikset' | 'linear' | 'nuki' | 'philia' | 'salto' | 'samsung' | 'schlage' | 'seam' | 'unknown' | 'wyze' | 'yale' | 'two_n' | 'ttlock' | 'igloohome' | 'controlbyweb' | 'dormakaba_oracode' | 'tedee' | 'keyincode' | 'akiles' | 'aqara' | 'ecobee' | 'honeywell_resideo' | 'keynest' | 'korelock' | 'lockly' | 'minut' | 'nest' | 'noiseaware' | 'sensi' | 'smartthings' | 'tado' | 'ultraloq' | 'ring' | 'ical' | 'lodgify' | 'hostaway' | 'guesty' | 'acuity_scheduling' | 'omnitec' | 'kisi' | 'slack' | 'yacan') | undefined;
|
|
44762
44762
|
/** Array of device IDs for which you want to list devices. */
|
|
44763
44763
|
device_ids?: string[] | undefined;
|
|
44764
44764
|
/** Numerical limit on the number of devices to return. */
|
|
@@ -46992,7 +46992,7 @@ export type Routes = {
|
|
|
46992
46992
|
/** Array of device types for which you want to list devices. */
|
|
46993
46993
|
device_types?: (('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'avigilon_alta_entry' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'smartthings_lock' | 'wyze_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'four_suites_door' | 'dormakaba_oracode_door' | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | 'ring_camera')[] | undefined;
|
|
46994
46994
|
/** Manufacturer for which you want to list devices. */
|
|
46995
|
-
manufacturer?: ('akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'doorking' | 'four_suites' | 'genie' | 'igloo' | 'keywe' | 'kwikset' | 'linear' | '
|
|
46995
|
+
manufacturer?: ('akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'doorking' | 'four_suites' | 'genie' | 'igloo' | 'keywe' | 'kwikset' | 'linear' | 'nuki' | 'philia' | 'salto' | 'samsung' | 'schlage' | 'seam' | 'unknown' | 'wyze' | 'yale' | 'two_n' | 'ttlock' | 'igloohome' | 'controlbyweb' | 'dormakaba_oracode' | 'tedee' | 'keyincode' | 'akiles' | 'aqara' | 'ecobee' | 'honeywell_resideo' | 'keynest' | 'korelock' | 'lockly' | 'minut' | 'nest' | 'noiseaware' | 'sensi' | 'smartthings' | 'tado' | 'ultraloq' | 'ring' | 'ical' | 'lodgify' | 'hostaway' | 'guesty' | 'acuity_scheduling' | 'omnitec' | 'kisi' | 'slack' | 'yacan') | undefined;
|
|
46996
46996
|
/** Array of device IDs for which you want to list devices. */
|
|
46997
46997
|
device_ids?: string[] | undefined;
|
|
46998
46998
|
/** Timestamp by which to limit returned devices. Returns devices created before this timestamp. */
|
|
@@ -59690,7 +59690,7 @@ export type Routes = {
|
|
|
59690
59690
|
/** Device types of the locks that you want to list. */
|
|
59691
59691
|
device_types?: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'avigilon_alta_entry' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'smartthings_lock' | 'wyze_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'four_suites_door' | 'dormakaba_oracode_door' | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock')[] | undefined;
|
|
59692
59692
|
/** Manufacturer of the locks that you want to list. */
|
|
59693
|
-
manufacturer?: ('akuvox' | 'august' | 'brivo' | 'butterflymx' | 'avigilon_alta' | 'doorking' | 'genie' | 'igloo' | 'linear' | '
|
|
59693
|
+
manufacturer?: ('akuvox' | 'august' | 'brivo' | 'butterflymx' | 'avigilon_alta' | 'doorking' | 'genie' | 'igloo' | 'linear' | 'kwikset' | 'nuki' | 'salto' | 'schlage' | 'seam' | 'wyze' | 'yale' | 'two_n' | 'controlbyweb' | 'ttlock' | 'igloohome' | 'four_suites' | 'dormakaba_oracode' | 'tedee' | 'keyincode' | 'akiles' | 'aqara' | 'korelock' | 'lockly' | 'smartthings' | 'ultraloq' | 'omnitec' | 'kisi' | 'yacan') | undefined;
|
|
59694
59694
|
};
|
|
59695
59695
|
formData: {};
|
|
59696
59696
|
jsonResponse: {
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
3
4
|
import { device_and_connected_account_error_options } from '../devices/index.js'
|
|
4
5
|
import { access_code_pending_mutations } from './pending-mutations.js'
|
|
5
6
|
|
|
@@ -12,9 +13,7 @@ const common_access_code_error = z.object({
|
|
|
12
13
|
is_access_code_error: z
|
|
13
14
|
.literal(true)
|
|
14
15
|
.describe('Indicates that this is an access code error.'),
|
|
15
|
-
created_at:
|
|
16
|
-
.string()
|
|
17
|
-
.datetime()
|
|
16
|
+
created_at: datetime
|
|
18
17
|
.optional()
|
|
19
18
|
.describe('Date and time at which Seam created the error.'),
|
|
20
19
|
})
|
|
@@ -224,9 +223,7 @@ const common_access_code_warning = z.object({
|
|
|
224
223
|
.describe(
|
|
225
224
|
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
226
225
|
),
|
|
227
|
-
created_at:
|
|
228
|
-
.string()
|
|
229
|
-
.datetime()
|
|
226
|
+
created_at: datetime
|
|
230
227
|
.optional()
|
|
231
228
|
.describe('Date and time at which Seam created the warning.'),
|
|
232
229
|
})
|
|
@@ -508,10 +505,9 @@ export const access_code = z.object({
|
|
|
508
505
|
.describe(
|
|
509
506
|
'Code used for access. Typically, a numeric or alphanumeric string.',
|
|
510
507
|
),
|
|
511
|
-
created_at:
|
|
512
|
-
.
|
|
513
|
-
|
|
514
|
-
.describe('Date and time at which the access code was created.'),
|
|
508
|
+
created_at: datetime.describe(
|
|
509
|
+
'Date and time at which the access code was created.',
|
|
510
|
+
),
|
|
515
511
|
errors: z.array(
|
|
516
512
|
z.discriminatedUnion('error_code', [
|
|
517
513
|
...access_code_error.options,
|
|
@@ -560,17 +556,13 @@ export const access_code = z.object({
|
|
|
560
556
|
is_managed: z
|
|
561
557
|
.literal(true)
|
|
562
558
|
.describe('Indicates whether Seam manages the access code.'),
|
|
563
|
-
starts_at:
|
|
564
|
-
.string()
|
|
565
|
-
.datetime()
|
|
559
|
+
starts_at: datetime
|
|
566
560
|
.nullable()
|
|
567
561
|
.optional()
|
|
568
562
|
.describe(
|
|
569
563
|
'Date and time at which the time-bound access code becomes active.',
|
|
570
564
|
),
|
|
571
|
-
ends_at:
|
|
572
|
-
.string()
|
|
573
|
-
.datetime()
|
|
565
|
+
ends_at: datetime
|
|
574
566
|
.nullable()
|
|
575
567
|
.optional()
|
|
576
568
|
.describe(
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
const common_pending_mutation = z.object({
|
|
4
|
-
created_at:
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
.describe('Date and time at which the mutation was created.'),
|
|
6
|
+
created_at: datetime.describe(
|
|
7
|
+
'Date and time at which the mutation was created.',
|
|
8
|
+
),
|
|
8
9
|
message: z.string().describe('Detailed description of the mutation.'),
|
|
9
10
|
})
|
|
10
11
|
|
|
@@ -25,12 +26,9 @@ const deferring_creation = common_pending_mutation
|
|
|
25
26
|
.describe(
|
|
26
27
|
"Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device.",
|
|
27
28
|
),
|
|
28
|
-
scheduled_at:
|
|
29
|
-
.
|
|
30
|
-
|
|
31
|
-
.describe(
|
|
32
|
-
'Date and time at which Seam will attempt to program this access code on the device.',
|
|
33
|
-
),
|
|
29
|
+
scheduled_at: datetime.describe(
|
|
30
|
+
'Date and time at which Seam will attempt to program this access code on the device.',
|
|
31
|
+
),
|
|
34
32
|
})
|
|
35
33
|
.describe(
|
|
36
34
|
"Seam is waiting until closer to the access code's start time before programming it on the device.",
|
|
@@ -101,28 +99,20 @@ const updating_time_frame = common_pending_mutation
|
|
|
101
99
|
),
|
|
102
100
|
from: z
|
|
103
101
|
.object({
|
|
104
|
-
starts_at:
|
|
105
|
-
.string()
|
|
106
|
-
.datetime()
|
|
102
|
+
starts_at: datetime
|
|
107
103
|
.nullable()
|
|
108
104
|
.describe('Previous start time for the access code.'),
|
|
109
|
-
ends_at:
|
|
110
|
-
.string()
|
|
111
|
-
.datetime()
|
|
105
|
+
ends_at: datetime
|
|
112
106
|
.nullable()
|
|
113
107
|
.describe('Previous end time for the access code.'),
|
|
114
108
|
})
|
|
115
109
|
.describe('Previous time frame configuration.'),
|
|
116
110
|
to: z
|
|
117
111
|
.object({
|
|
118
|
-
starts_at:
|
|
119
|
-
.string()
|
|
120
|
-
.datetime()
|
|
112
|
+
starts_at: datetime
|
|
121
113
|
.nullable()
|
|
122
114
|
.describe('New start time for the access code.'),
|
|
123
|
-
ends_at:
|
|
124
|
-
.string()
|
|
125
|
-
.datetime()
|
|
115
|
+
ends_at: datetime
|
|
126
116
|
.nullable()
|
|
127
117
|
.describe('New end time for the access code.'),
|
|
128
118
|
})
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
3
4
|
import { access_grant_pending_mutations } from './pending-mutations.js'
|
|
4
5
|
import { requested_access_method } from './requested-access-method.js'
|
|
5
6
|
|
|
6
7
|
const common_access_grant_error = z.object({
|
|
7
|
-
created_at:
|
|
8
|
-
.
|
|
9
|
-
|
|
10
|
-
.describe('Date and time at which Seam created the error.'),
|
|
8
|
+
created_at: datetime.describe(
|
|
9
|
+
'Date and time at which Seam created the error.',
|
|
10
|
+
),
|
|
11
11
|
message: z
|
|
12
12
|
.string()
|
|
13
13
|
.describe(
|
|
@@ -37,10 +37,9 @@ const cannot_create_requested_access_methods_error =
|
|
|
37
37
|
`)
|
|
38
38
|
|
|
39
39
|
const common_access_grant_warning = z.object({
|
|
40
|
-
created_at:
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
.describe('Date and time at which Seam created the warning.'),
|
|
40
|
+
created_at: datetime.describe(
|
|
41
|
+
'Date and time at which Seam created the warning.',
|
|
42
|
+
),
|
|
44
43
|
message: z
|
|
45
44
|
.string()
|
|
46
45
|
.describe(
|
|
@@ -272,17 +271,13 @@ export const access_grant = z.object({
|
|
|
272
271
|
.describe(
|
|
273
272
|
'Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. ',
|
|
274
273
|
),
|
|
275
|
-
created_at:
|
|
276
|
-
.
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
.describe('Date and time at which the Access Grant starts.'),
|
|
283
|
-
ends_at: z
|
|
284
|
-
.string()
|
|
285
|
-
.datetime()
|
|
274
|
+
created_at: datetime.describe(
|
|
275
|
+
'Date and time at which the Access Grant was created.',
|
|
276
|
+
),
|
|
277
|
+
starts_at: datetime.describe(
|
|
278
|
+
'Date and time at which the Access Grant starts.',
|
|
279
|
+
),
|
|
280
|
+
ends_at: datetime
|
|
286
281
|
.nullable()
|
|
287
282
|
.describe('Date and time at which the Access Grant ends.'),
|
|
288
283
|
display_status: z
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
const common_access_method_warning = z.object({
|
|
4
|
-
created_at:
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
.describe('Date and time at which Seam created the warning.'),
|
|
6
|
+
created_at: datetime.describe(
|
|
7
|
+
'Date and time at which Seam created the warning.',
|
|
8
|
+
),
|
|
8
9
|
message: z
|
|
9
10
|
.string()
|
|
10
11
|
.describe(
|
|
@@ -83,10 +84,9 @@ const _access_method_warning_map = z.object({
|
|
|
83
84
|
export type AccessMethodWarningMap = z.infer<typeof _access_method_warning_map>
|
|
84
85
|
|
|
85
86
|
const common_access_method_error = z.object({
|
|
86
|
-
created_at:
|
|
87
|
-
.
|
|
88
|
-
|
|
89
|
-
.describe('Date and time at which Seam created the error.'),
|
|
87
|
+
created_at: datetime.describe(
|
|
88
|
+
'Date and time at which Seam created the error.',
|
|
89
|
+
),
|
|
90
90
|
message: z
|
|
91
91
|
.string()
|
|
92
92
|
.describe(
|
|
@@ -120,10 +120,9 @@ export type AccessMethodErrorMap = z.infer<typeof _access_method_error_map>
|
|
|
120
120
|
|
|
121
121
|
// Pending mutations for access methods
|
|
122
122
|
const common_pending_mutation = z.object({
|
|
123
|
-
created_at:
|
|
124
|
-
.
|
|
125
|
-
|
|
126
|
-
.describe('Date and time at which the mutation was created.'),
|
|
123
|
+
created_at: datetime.describe(
|
|
124
|
+
'Date and time at which the mutation was created.',
|
|
125
|
+
),
|
|
127
126
|
message: z.string().describe('Detailed description of the mutation.'),
|
|
128
127
|
})
|
|
129
128
|
|
|
@@ -188,30 +187,16 @@ const updating_access_times_mutation = common_pending_mutation
|
|
|
188
187
|
),
|
|
189
188
|
from: z
|
|
190
189
|
.object({
|
|
191
|
-
starts_at:
|
|
192
|
-
.string()
|
|
193
|
-
.datetime()
|
|
190
|
+
starts_at: datetime
|
|
194
191
|
.nullable()
|
|
195
192
|
.describe('Previous start time for access.'),
|
|
196
|
-
ends_at:
|
|
197
|
-
.string()
|
|
198
|
-
.datetime()
|
|
199
|
-
.nullable()
|
|
200
|
-
.describe('Previous end time for access.'),
|
|
193
|
+
ends_at: datetime.nullable().describe('Previous end time for access.'),
|
|
201
194
|
})
|
|
202
195
|
.describe('Previous access time configuration.'),
|
|
203
196
|
to: z
|
|
204
197
|
.object({
|
|
205
|
-
starts_at:
|
|
206
|
-
|
|
207
|
-
.datetime()
|
|
208
|
-
.nullable()
|
|
209
|
-
.describe('New start time for access.'),
|
|
210
|
-
ends_at: z
|
|
211
|
-
.string()
|
|
212
|
-
.datetime()
|
|
213
|
-
.nullable()
|
|
214
|
-
.describe('New end time for access.'),
|
|
198
|
+
starts_at: datetime.nullable().describe('New start time for access.'),
|
|
199
|
+
ends_at: datetime.nullable().describe('New end time for access.'),
|
|
215
200
|
})
|
|
216
201
|
.describe('New access time configuration.'),
|
|
217
202
|
})
|
|
@@ -272,13 +257,10 @@ export const access_method = z.object({
|
|
|
272
257
|
.describe(
|
|
273
258
|
'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.',
|
|
274
259
|
),
|
|
275
|
-
created_at:
|
|
276
|
-
.
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
issued_at: z
|
|
280
|
-
.string()
|
|
281
|
-
.datetime()
|
|
260
|
+
created_at: datetime.describe(
|
|
261
|
+
'Date and time at which the access method was created.',
|
|
262
|
+
),
|
|
263
|
+
issued_at: datetime
|
|
282
264
|
.nullable()
|
|
283
265
|
.describe('Date and time at which the access method was issued.'),
|
|
284
266
|
is_issued: z
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
const common_pending_mutation = z.object({
|
|
4
|
-
created_at:
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
.describe('Date and time at which the mutation was created.'),
|
|
6
|
+
created_at: datetime.describe(
|
|
7
|
+
'Date and time at which the mutation was created.',
|
|
8
|
+
),
|
|
8
9
|
message: z.string().describe('Detailed description of the mutation.'),
|
|
9
10
|
})
|
|
10
11
|
|
|
@@ -51,30 +52,16 @@ const updating_access_times_mutation = common_pending_mutation
|
|
|
51
52
|
.describe('IDs of the access methods being updated.'),
|
|
52
53
|
from: z
|
|
53
54
|
.object({
|
|
54
|
-
starts_at:
|
|
55
|
-
.string()
|
|
56
|
-
.datetime()
|
|
55
|
+
starts_at: datetime
|
|
57
56
|
.nullable()
|
|
58
57
|
.describe('Previous start time for access.'),
|
|
59
|
-
ends_at:
|
|
60
|
-
.string()
|
|
61
|
-
.datetime()
|
|
62
|
-
.nullable()
|
|
63
|
-
.describe('Previous end time for access.'),
|
|
58
|
+
ends_at: datetime.nullable().describe('Previous end time for access.'),
|
|
64
59
|
})
|
|
65
60
|
.describe('Previous access time configuration.'),
|
|
66
61
|
to: z
|
|
67
62
|
.object({
|
|
68
|
-
starts_at:
|
|
69
|
-
|
|
70
|
-
.datetime()
|
|
71
|
-
.nullable()
|
|
72
|
-
.describe('New start time for access.'),
|
|
73
|
-
ends_at: z
|
|
74
|
-
.string()
|
|
75
|
-
.datetime()
|
|
76
|
-
.nullable()
|
|
77
|
-
.describe('New end time for access.'),
|
|
63
|
+
starts_at: datetime.nullable().describe('New start time for access.'),
|
|
64
|
+
ends_at: datetime.nullable().describe('New end time for access.'),
|
|
78
65
|
})
|
|
79
66
|
.describe('New access time configuration.'),
|
|
80
67
|
})
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
export const requested_access_method = z.object({
|
|
4
6
|
display_name: z.string().describe('Display name of the access method.'),
|
|
5
7
|
mode: z
|
|
@@ -24,12 +26,9 @@ export const requested_access_method = z.object({
|
|
|
24
26
|
.describe(
|
|
25
27
|
"Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.",
|
|
26
28
|
),
|
|
27
|
-
created_at:
|
|
28
|
-
.
|
|
29
|
-
|
|
30
|
-
.describe(
|
|
31
|
-
'Date and time at which the requested access method was added to the Access Grant.',
|
|
32
|
-
),
|
|
29
|
+
created_at: datetime.describe(
|
|
30
|
+
'Date and time at which the requested access method was added to the Access Grant.',
|
|
31
|
+
),
|
|
33
32
|
created_access_method_ids: z
|
|
34
33
|
.array(z.string().uuid())
|
|
35
34
|
.describe(
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
3
4
|
import { schedule } from '../schedule.js'
|
|
4
5
|
import { acs_access_group_pending_mutations } from './acs-access-groups/pending-mutations.js'
|
|
5
6
|
|
|
@@ -22,10 +23,9 @@ export type AcsAccessGroupExternalType = z.infer<
|
|
|
22
23
|
>
|
|
23
24
|
|
|
24
25
|
const common_acs_access_group_error = z.object({
|
|
25
|
-
created_at:
|
|
26
|
-
.
|
|
27
|
-
|
|
28
|
-
.describe('Date and time at which Seam created the error.'),
|
|
26
|
+
created_at: datetime.describe(
|
|
27
|
+
'Date and time at which Seam created the error.',
|
|
28
|
+
),
|
|
29
29
|
message: z
|
|
30
30
|
.string()
|
|
31
31
|
.describe(
|
|
@@ -62,10 +62,9 @@ const _acs_access_group_error_map = z.object({
|
|
|
62
62
|
export type AcsAccessGroupErrorMap = z.infer<typeof _acs_access_group_error_map>
|
|
63
63
|
|
|
64
64
|
const common_acs_access_group_warning = z.object({
|
|
65
|
-
created_at:
|
|
66
|
-
.
|
|
67
|
-
|
|
68
|
-
.describe('Date and time at which Seam created the warning.'),
|
|
65
|
+
created_at: datetime.describe(
|
|
66
|
+
'Date and time at which Seam created the warning.',
|
|
67
|
+
),
|
|
69
68
|
message: z
|
|
70
69
|
.string()
|
|
71
70
|
.describe(
|
|
@@ -146,10 +145,9 @@ const common_acs_access_group = z.object({
|
|
|
146
145
|
.describe(
|
|
147
146
|
'Display name that corresponds to the brand-specific terminology for the access group type.',
|
|
148
147
|
),
|
|
149
|
-
created_at:
|
|
150
|
-
.
|
|
151
|
-
|
|
152
|
-
.describe('Date and time at which the access group was created.'),
|
|
148
|
+
created_at: datetime.describe(
|
|
149
|
+
'Date and time at which the access group was created.',
|
|
150
|
+
),
|
|
153
151
|
errors: z
|
|
154
152
|
.array(acs_access_group_errors)
|
|
155
153
|
.describe('Errors associated with the `acs_access_group`.'),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../../datetime.js'
|
|
4
|
+
|
|
3
5
|
const common_pending_mutation = z.object({
|
|
4
|
-
created_at:
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
.describe('Date and time at which the mutation was created.'),
|
|
6
|
+
created_at: datetime.describe(
|
|
7
|
+
'Date and time at which the mutation was created.',
|
|
8
|
+
),
|
|
8
9
|
message: z.string().describe('Detailed description of the mutation.'),
|
|
9
10
|
})
|
|
10
11
|
|
|
@@ -56,14 +57,10 @@ const updating_group_information = common_pending_mutation
|
|
|
56
57
|
|
|
57
58
|
const access_schedule = z
|
|
58
59
|
.object({
|
|
59
|
-
starts_at:
|
|
60
|
-
.string()
|
|
61
|
-
.datetime()
|
|
60
|
+
starts_at: datetime
|
|
62
61
|
.nullable()
|
|
63
62
|
.describe('Starting time for the access schedule.'),
|
|
64
|
-
ends_at:
|
|
65
|
-
.string()
|
|
66
|
-
.datetime()
|
|
63
|
+
ends_at: datetime
|
|
67
64
|
.nullable()
|
|
68
65
|
.describe('Ending time for the access schedule.'),
|
|
69
66
|
})
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
export const acs_credential_pool_external_type = z.enum(['hid_part_number'])
|
|
4
6
|
|
|
5
7
|
export type AcsCredentialPoolExternalType = z.infer<
|
|
@@ -12,7 +14,7 @@ export const acs_credential_pool = z.object({
|
|
|
12
14
|
display_name: z.string().min(1),
|
|
13
15
|
external_type: acs_credential_pool_external_type,
|
|
14
16
|
external_type_display_name: z.string(),
|
|
15
|
-
created_at:
|
|
17
|
+
created_at: datetime,
|
|
16
18
|
workspace_id: z.string().uuid(),
|
|
17
19
|
}).describe(`
|
|
18
20
|
---
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
export const acs_credential_provisioning_automation = z.object({
|
|
4
6
|
acs_credential_provisioning_automation_id: z.string().uuid(),
|
|
5
7
|
credential_manager_acs_system_id: z.string().uuid(),
|
|
6
8
|
user_identity_id: z.string().uuid(),
|
|
7
|
-
created_at:
|
|
9
|
+
created_at: datetime,
|
|
8
10
|
workspace_id: z.string().uuid(),
|
|
9
11
|
}).describe(`
|
|
10
12
|
---
|
|
@@ -31,10 +33,9 @@ export const enrollment_automation = z.object({
|
|
|
31
33
|
.describe(
|
|
32
34
|
'ID of the associated [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).',
|
|
33
35
|
),
|
|
34
|
-
created_at:
|
|
35
|
-
.
|
|
36
|
-
|
|
37
|
-
.describe('Date and time at which the enrollment automation was created.'),
|
|
36
|
+
created_at: datetime.describe(
|
|
37
|
+
'Date and time at which the enrollment automation was created.',
|
|
38
|
+
),
|
|
38
39
|
workspace_id: z
|
|
39
40
|
.string()
|
|
40
41
|
.uuid()
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
3
4
|
import {
|
|
4
5
|
acs_credential_akiles_metadata,
|
|
5
6
|
acs_credential_visionline_metadata,
|
|
@@ -36,10 +37,9 @@ export type AcsCredentialExternalType = z.infer<
|
|
|
36
37
|
>
|
|
37
38
|
|
|
38
39
|
const common_acs_credential_warning = z.object({
|
|
39
|
-
created_at:
|
|
40
|
-
.
|
|
41
|
-
|
|
42
|
-
.describe('Date and time at which Seam created the warning.'),
|
|
40
|
+
created_at: datetime.describe(
|
|
41
|
+
'Date and time at which Seam created the warning.',
|
|
42
|
+
),
|
|
43
43
|
message: z
|
|
44
44
|
.string()
|
|
45
45
|
.describe(
|
|
@@ -231,9 +231,7 @@ const common_acs_credential = z.object({
|
|
|
231
231
|
.describe(
|
|
232
232
|
'Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.',
|
|
233
233
|
),
|
|
234
|
-
issued_at:
|
|
235
|
-
.string()
|
|
236
|
-
.datetime()
|
|
234
|
+
issued_at: datetime
|
|
237
235
|
.optional()
|
|
238
236
|
.nullable()
|
|
239
237
|
.describe(
|
|
@@ -253,12 +251,9 @@ const common_acs_credential = z.object({
|
|
|
253
251
|
.describe(
|
|
254
252
|
'Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.',
|
|
255
253
|
),
|
|
256
|
-
created_at:
|
|
257
|
-
.
|
|
258
|
-
|
|
259
|
-
.describe(
|
|
260
|
-
'Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.',
|
|
261
|
-
),
|
|
254
|
+
created_at: datetime.describe(
|
|
255
|
+
'Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.',
|
|
256
|
+
),
|
|
262
257
|
workspace_id: z
|
|
263
258
|
.string()
|
|
264
259
|
.uuid()
|
|
@@ -282,10 +277,9 @@ const common_acs_credential = z.object({
|
|
|
282
277
|
z.object({
|
|
283
278
|
error_code: z.string(),
|
|
284
279
|
message: z.string(),
|
|
285
|
-
created_at:
|
|
286
|
-
.
|
|
287
|
-
|
|
288
|
-
.describe('Date and time at which Seam created the error.'),
|
|
280
|
+
created_at: datetime.describe(
|
|
281
|
+
'Date and time at which Seam created the error.',
|
|
282
|
+
),
|
|
289
283
|
}),
|
|
290
284
|
)
|
|
291
285
|
.describe(
|
|
@@ -309,9 +303,7 @@ const common_acs_credential = z.object({
|
|
|
309
303
|
.describe(
|
|
310
304
|
'Indicates whether the latest state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.',
|
|
311
305
|
),
|
|
312
|
-
latest_desired_state_synced_with_provider_at:
|
|
313
|
-
.string()
|
|
314
|
-
.datetime()
|
|
306
|
+
latest_desired_state_synced_with_provider_at: datetime
|
|
315
307
|
.nullable()
|
|
316
308
|
.optional()
|
|
317
309
|
.describe(
|
|
@@ -366,9 +358,7 @@ export const unmanaged_acs_credential = common_acs_credential.merge(
|
|
|
366
358
|
`)
|
|
367
359
|
|
|
368
360
|
export const acs_credential_on_encoder = z.object({
|
|
369
|
-
created_at:
|
|
370
|
-
.string()
|
|
371
|
-
.datetime()
|
|
361
|
+
created_at: datetime
|
|
372
362
|
.nullable()
|
|
373
363
|
.describe(
|
|
374
364
|
'Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.',
|
|
@@ -381,16 +371,12 @@ export const acs_credential_on_encoder = z.object({
|
|
|
381
371
|
'Indicates whether the credential has been issued (encoded onto a card).',
|
|
382
372
|
),
|
|
383
373
|
|
|
384
|
-
starts_at:
|
|
385
|
-
.string()
|
|
386
|
-
.datetime()
|
|
374
|
+
starts_at: datetime
|
|
387
375
|
.nullable()
|
|
388
376
|
.describe(
|
|
389
377
|
'Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) becomes usable.',
|
|
390
378
|
),
|
|
391
|
-
ends_at:
|
|
392
|
-
.string()
|
|
393
|
-
.datetime()
|
|
379
|
+
ends_at: datetime
|
|
394
380
|
.nullable()
|
|
395
381
|
.describe(
|
|
396
382
|
'Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) will stop being usable.',
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../../datetime.js'
|
|
4
|
+
|
|
3
5
|
const common_pending_mutation = z.object({
|
|
4
|
-
created_at:
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
.describe('Date and time at which the mutation was created.'),
|
|
6
|
+
created_at: datetime.describe(
|
|
7
|
+
'Date and time at which the mutation was created.',
|
|
8
|
+
),
|
|
8
9
|
message: z.string().describe('Detailed description of the mutation.'),
|
|
9
10
|
})
|
|
10
11
|
|