@seamapi/types 1.1037.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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-portal.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/partner/customer-portal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC;IACN,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC9D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAC1E,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"customer-portal.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/partner/customer-portal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC;IACN,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC9D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAC1E,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,0DAA0D,CAC3D;IACD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,0DAA0D,CAAC;IACvE,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,8DAA8D,CAC/D;CACF,CAAC;KACD,QAAQ,CACP;;;;;;;;;GASD,CACA,CAAA"}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { datetime } from '../datetime.js';
|
|
2
3
|
export const magic_link = z.object({
|
|
3
4
|
url: z.string().url().describe('URL for the magic link.'),
|
|
4
5
|
customer_key: z.string().describe('Customer key for the magic link.'),
|
|
5
|
-
expires_at:
|
|
6
|
-
.string()
|
|
7
|
-
.datetime()
|
|
8
|
-
.describe('Date and time at which the magic link expires.'),
|
|
6
|
+
expires_at: datetime.describe('Date and time at which the magic link expires.'),
|
|
9
7
|
workspace_id: z
|
|
10
8
|
.string()
|
|
11
9
|
.uuid()
|
|
12
10
|
.describe('ID of the workspace associated with the magic link.'),
|
|
13
|
-
created_at:
|
|
14
|
-
.string()
|
|
15
|
-
.datetime()
|
|
16
|
-
.describe('Date and time at which the magic link was created.'),
|
|
11
|
+
created_at: datetime.describe('Date and time at which the magic link was created.'),
|
|
17
12
|
}).describe(`
|
|
18
13
|
---
|
|
19
14
|
undocumented: Unreleased.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magic-link.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/partner/magic-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACzD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IACrE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"magic-link.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/partner/magic-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACzD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IACrE,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,gDAAgD,CACjD;IACD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,qDAAqD,CAAC;IAClE,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,oDAAoD,CACrD;CACF,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;;GAUT,CAAC,CAAA"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { datetime } from './datetime.js';
|
|
2
3
|
export const start_end_schedule = z
|
|
3
4
|
.object({
|
|
4
|
-
starts_at:
|
|
5
|
-
|
|
6
|
-
.datetime()
|
|
7
|
-
.describe("Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format."),
|
|
8
|
-
ends_at: z
|
|
9
|
-
.string()
|
|
10
|
-
.datetime()
|
|
5
|
+
starts_at: datetime.describe("Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format."),
|
|
6
|
+
ends_at: datetime
|
|
11
7
|
.describe("Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.")
|
|
12
8
|
.nullable(),
|
|
13
9
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAC1B,gIAAgI,CACjI;IACD,OAAO,EAAE,QAAQ;SACd,QAAQ,CACP,8HAA8H,CAC/H;SACA,QAAQ,EAAE;CACd,CAAC;KACD,QAAQ,CACP,kIAAkI,CACnI,CAAA;AAEH,oCAAoC;AACpC,wBAAwB;AACxB,oBAAoB;AACpB,oBAAoB;AACpB,KAAK;AACL,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { datetime } from '../datetime.js';
|
|
2
3
|
const time_of_day_re = /^([01]\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/;
|
|
3
4
|
export const space_customer_data = z
|
|
4
5
|
.object({
|
|
@@ -39,10 +40,7 @@ export const space = z.object({
|
|
|
39
40
|
.describe('Unique key for the space within the workspace.'),
|
|
40
41
|
name: z.string().describe('Name of the space.'),
|
|
41
42
|
display_name: z.string().describe('Display name for the space.'),
|
|
42
|
-
created_at:
|
|
43
|
-
.string()
|
|
44
|
-
.datetime()
|
|
45
|
-
.describe('Date and time at which the space was created.'),
|
|
43
|
+
created_at: datetime.describe('Date and time at which the space was created.'),
|
|
46
44
|
device_count: z.number().describe('Number of devices in the space.'),
|
|
47
45
|
acs_entrance_count: z.number().describe('Number of entrances in the space.'),
|
|
48
46
|
customer_key: z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"space.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/spaces/space.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,cAAc,GAAG,sCAAsC,CAAA;AAE7D,MAAM,CAAC,MAAM,mBAAm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+
import { datetime } from '../datetime.js';
|
|
2
3
|
export const thermostat_daily_program_period = z
|
|
3
4
|
.object({
|
|
4
5
|
starts_at_time: z
|
|
@@ -30,10 +31,7 @@ export const thermostat_daily_program = z.object({
|
|
|
30
31
|
.string()
|
|
31
32
|
.uuid()
|
|
32
33
|
.describe('ID of the workspace that contains the thermostat daily program.'),
|
|
33
|
-
created_at:
|
|
34
|
-
.string()
|
|
35
|
-
.datetime()
|
|
36
|
-
.describe('Date and time at which the thermostat daily program was created.'),
|
|
34
|
+
created_at: datetime.describe('Date and time at which the thermostat daily program was created.'),
|
|
37
35
|
}).describe(`
|
|
38
36
|
---
|
|
39
37
|
route_path: /thermostats/daily_programs
|
|
@@ -76,9 +74,6 @@ export const thermostat_weekly_program = z.object({
|
|
|
76
74
|
.uuid()
|
|
77
75
|
.nullable()
|
|
78
76
|
.describe('ID of the thermostat daily program to run on Sundays.'),
|
|
79
|
-
created_at:
|
|
80
|
-
.string()
|
|
81
|
-
.datetime()
|
|
82
|
-
.describe('Date and time at which the thermostat weekly program was created.'),
|
|
77
|
+
created_at: datetime.describe('Date and time at which the thermostat weekly program was created.'),
|
|
83
78
|
});
|
|
84
79
|
//# sourceMappingURL=thermostat-program.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thermostat-program.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/thermostat-program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,MAAM,CAAC;IACN,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,KAAK,CAAC,uCAAuC,CAAC;SAC9C,QAAQ,CACP,yIAAyI,CAC1I;IACH,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,CACP,4JAA4J,CAC7J;CACJ,CAAC;KACD,QAAQ,CACP,8JAA8J,CAC/J,CAAA;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,2BAA2B,EAAE,CAAC;SAC3B,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,qCAAqC,CAAC;IAClD,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,kFAAkF,CACnF;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,8DAA8D,CAAC;IAC3E,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,+BAA+B,CAAC;SACtC,QAAQ,CAAC,4CAA4C,CAAC;IACzD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,iEAAiE,CAClE;IACH,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"thermostat-program.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/thermostat-program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,MAAM,CAAC;IACN,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,KAAK,CAAC,uCAAuC,CAAC;SAC9C,QAAQ,CACP,yIAAyI,CAC1I;IACH,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,CACP,4JAA4J,CAC7J;CACJ,CAAC;KACD,QAAQ,CACP,8JAA8J,CAC/J,CAAA;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,2BAA2B,EAAE,CAAC;SAC3B,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,qCAAqC,CAAC;IAClD,SAAS,EAAE,CAAC;SACT,MAAM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E;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,mEAAmE,CACpE;CACF,CAAC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { datetime } from '../datetime.js';
|
|
2
3
|
export const thermostat_schedule = z.object({
|
|
3
4
|
thermostat_schedule_id: z
|
|
4
5
|
.string()
|
|
@@ -22,26 +23,17 @@ export const thermostat_schedule = z.object({
|
|
|
22
23
|
.nullable()
|
|
23
24
|
.optional()
|
|
24
25
|
.describe("Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions)."),
|
|
25
|
-
starts_at:
|
|
26
|
-
.string()
|
|
27
|
-
.datetime()
|
|
28
|
-
.describe('Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.'),
|
|
26
|
+
starts_at: datetime.describe('Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.'),
|
|
29
27
|
is_override_allowed: z
|
|
30
28
|
.boolean()
|
|
31
29
|
.optional()
|
|
32
30
|
.describe("Indicates whether a person at the thermostat can change the thermostat's settings after the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts."),
|
|
33
|
-
ends_at:
|
|
34
|
-
.string()
|
|
35
|
-
.datetime()
|
|
36
|
-
.describe('Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.'),
|
|
31
|
+
ends_at: datetime.describe('Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.'),
|
|
37
32
|
workspace_id: z
|
|
38
33
|
.string()
|
|
39
34
|
.uuid()
|
|
40
35
|
.describe('ID of the workspace that contains the thermostat schedule.'),
|
|
41
|
-
created_at:
|
|
42
|
-
.string()
|
|
43
|
-
.datetime()
|
|
44
|
-
.describe('Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created.'),
|
|
36
|
+
created_at: datetime.describe('Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created.'),
|
|
45
37
|
errors: z
|
|
46
38
|
.array(z.object({
|
|
47
39
|
error_code: z
|
|
@@ -50,10 +42,7 @@ export const thermostat_schedule = z.object({
|
|
|
50
42
|
message: z
|
|
51
43
|
.string()
|
|
52
44
|
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
53
|
-
created_at:
|
|
54
|
-
.string()
|
|
55
|
-
.datetime()
|
|
56
|
-
.describe('Date and time at which Seam created the error.'),
|
|
45
|
+
created_at: datetime.describe('Date and time at which Seam created the error.'),
|
|
57
46
|
}))
|
|
58
47
|
.describe('Errors associated with the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules).'),
|
|
59
48
|
}).describe(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thermostat-schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/thermostat-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,sBAAsB,EAAE,CAAC;SACtB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,iIAAiI,CAClI;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,4FAA4F,CAC7F;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0JAA0J,CAC3J;IACH,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,CACP,4PAA4P,CAC7P;IACH,2BAA2B,EAAE,CAAC;SAC3B,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACP,waAAwa,CACza;IACH,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"thermostat-schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/thermostat-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,sBAAsB,EAAE,CAAC;SACtB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,iIAAiI,CAClI;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,4FAA4F,CAC7F;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0JAA0J,CAC3J;IACH,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,CACP,4PAA4P,CAC7P;IACH,2BAA2B,EAAE,CAAC;SAC3B,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACP,waAAwa,CACza;IACH,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAC1B,uOAAuO,CACxO;IACD,mBAAmB,EAAE,CAAC;SACnB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,0NAA0N,CAC3N;IACH,OAAO,EAAE,QAAQ,CAAC,QAAQ,CACxB,qOAAqO,CACtO;IACD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,4DAA4D,CAAC;IACzE,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,8JAA8J,CAC/J;IACD,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,CACP,oGAAoG,CACrG;QACH,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,CACP,wGAAwG,CACzG;QACH,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,gDAAgD,CACjD;KACF,CAAC,CACH;SACA,QAAQ,CACP,kJAAkJ,CACnJ;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { datetime } from '../datetime.js';
|
|
2
3
|
import { loose_phone_number } from '../phone-number.js';
|
|
3
4
|
const common_user_identity_error = z.object({
|
|
4
|
-
created_at:
|
|
5
|
-
.string()
|
|
6
|
-
.datetime()
|
|
7
|
-
.describe('Date and time at which Seam created the error.'),
|
|
5
|
+
created_at: datetime.describe('Date and time at which Seam created the error.'),
|
|
8
6
|
message: z
|
|
9
7
|
.string()
|
|
10
8
|
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
11
9
|
});
|
|
12
10
|
const common_user_identity_warning = z.object({
|
|
13
|
-
created_at:
|
|
14
|
-
.string()
|
|
15
|
-
.datetime()
|
|
16
|
-
.describe('Date and time at which Seam created the warning.'),
|
|
11
|
+
created_at: datetime.describe('Date and time at which Seam created the warning.'),
|
|
17
12
|
message: z
|
|
18
13
|
.string()
|
|
19
14
|
.describe('Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.'),
|
|
@@ -100,10 +95,7 @@ export const user_identity = z.object({
|
|
|
100
95
|
merged_user_identity_keys: z
|
|
101
96
|
.array(z.string())
|
|
102
97
|
.describe('Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.'),
|
|
103
|
-
created_at:
|
|
104
|
-
.string()
|
|
105
|
-
.datetime()
|
|
106
|
-
.describe('Date and time at which the user identity was created.'),
|
|
98
|
+
created_at: datetime.describe('Date and time at which the user identity was created.'),
|
|
107
99
|
workspace_id: z
|
|
108
100
|
.string()
|
|
109
101
|
.uuid()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/user-identities/user-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/user-identities/user-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,gDAAgD,CACjD;IACD,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CAC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C,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,iJAAiJ,CAClJ;IACH,yBAAyB,EAAE,CAAC;SACzB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,CACP,kJAAkJ,CACnJ;IACH,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,uDAAuD,CACxD;IACD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,sDAAsD,CAAC;IACnE,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,oBAAoB,CAAC;SAC3B,QAAQ,CACP,0YAA0Y,CAC3Y;IACH,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,sBAAsB,CAAC;SAC7B,QAAQ,CACP,sZAAsZ,CACvZ;IACH,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA;AAIF,kGAAkG;AAClG,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,IAAI,CAAC;IACxD,iBAAiB,EAAE,IAAI;CACxB,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
|
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(
|