@seamapi/types 1.388.0 → 1.390.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +214 -137
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +4598 -609
- package/lib/seam/connect/models/acs/acs-credential.d.ts +7 -7
- package/lib/seam/connect/models/acs/acs-credential.js +1 -0
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +102 -24
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +10 -10
- package/lib/seam/connect/models/action-attempts/push-thermostat-programs.d.ts +80 -0
- package/lib/seam/connect/models/action-attempts/push-thermostat-programs.js +25 -0
- package/lib/seam/connect/models/action-attempts/push-thermostat-programs.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +14 -14
- package/lib/seam/connect/openapi.d.ts +21 -61
- package/lib/seam/connect/openapi.js +136 -80
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +4989 -1038
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +1 -0
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/push-thermostat-programs.ts +36 -0
- package/src/lib/seam/connect/openapi.ts +140 -89
- package/src/lib/seam/connect/route-types.ts +5162 -478
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const acs_credential_external_type: z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key"]>;
|
|
2
|
+
export declare const acs_credential_external_type: z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access"]>;
|
|
3
3
|
export declare const acs_credential_access_method_type: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
4
4
|
export type AcsCredentialExternalType = z.infer<typeof acs_credential_external_type>;
|
|
5
5
|
export declare const unknown_issue_with_acs_credential: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -178,7 +178,7 @@ export declare const acs_credential: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
178
178
|
is_issued: z.ZodOptional<z.ZodBoolean>;
|
|
179
179
|
issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
180
180
|
access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
181
|
-
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key"]>>;
|
|
181
|
+
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access"]>>;
|
|
182
182
|
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
183
183
|
created_at: z.ZodString;
|
|
184
184
|
workspace_id: z.ZodString;
|
|
@@ -384,7 +384,7 @@ export declare const acs_credential: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
384
384
|
} | undefined;
|
|
385
385
|
is_one_time_use?: boolean | undefined;
|
|
386
386
|
issued_at?: string | null | undefined;
|
|
387
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
387
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
388
388
|
external_type_display_name?: string | undefined;
|
|
389
389
|
acs_user_id?: string | undefined;
|
|
390
390
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -453,7 +453,7 @@ export declare const acs_credential: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
453
453
|
} | undefined;
|
|
454
454
|
is_one_time_use?: boolean | undefined;
|
|
455
455
|
issued_at?: string | null | undefined;
|
|
456
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
456
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
457
457
|
external_type_display_name?: string | undefined;
|
|
458
458
|
acs_user_id?: string | undefined;
|
|
459
459
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -477,7 +477,7 @@ export declare const unmanaged_acs_credential: z.ZodObject<z.objectUtil.extendSh
|
|
|
477
477
|
is_issued: z.ZodOptional<z.ZodBoolean>;
|
|
478
478
|
issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
479
479
|
access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
480
|
-
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key"]>>;
|
|
480
|
+
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access"]>>;
|
|
481
481
|
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
482
482
|
created_at: z.ZodString;
|
|
483
483
|
workspace_id: z.ZodString;
|
|
@@ -683,7 +683,7 @@ export declare const unmanaged_acs_credential: z.ZodObject<z.objectUtil.extendSh
|
|
|
683
683
|
} | undefined;
|
|
684
684
|
is_one_time_use?: boolean | undefined;
|
|
685
685
|
issued_at?: string | null | undefined;
|
|
686
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
686
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
687
687
|
external_type_display_name?: string | undefined;
|
|
688
688
|
acs_user_id?: string | undefined;
|
|
689
689
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -752,7 +752,7 @@ export declare const unmanaged_acs_credential: z.ZodObject<z.objectUtil.extendSh
|
|
|
752
752
|
} | undefined;
|
|
753
753
|
is_one_time_use?: boolean | undefined;
|
|
754
754
|
issued_at?: string | null | undefined;
|
|
755
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
755
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
756
756
|
external_type_display_name?: string | undefined;
|
|
757
757
|
acs_user_id?: string | undefined;
|
|
758
758
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,kCAAkC,EAClC,8BAA8B,GAC/B,MAAM,qBAAqB,CAAA;AAE5B,wEAAwE;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;IACjB,qBAAqB;IACrB,uBAAuB;IACvB,iBAAiB;
|
|
1
|
+
{"version":3,"file":"acs-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-credential.ts"],"names":[],"mappings":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|
|
286
286
|
issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
287
287
|
access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
288
|
-
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key"]>>;
|
|
288
|
+
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access"]>>;
|
|
289
289
|
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
290
290
|
created_at: z.ZodString;
|
|
291
291
|
workspace_id: z.ZodString;
|
|
@@ -491,7 +491,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
491
491
|
} | undefined;
|
|
492
492
|
is_one_time_use?: boolean | undefined;
|
|
493
493
|
issued_at?: string | null | undefined;
|
|
494
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
494
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
495
495
|
external_type_display_name?: string | undefined;
|
|
496
496
|
acs_user_id?: string | undefined;
|
|
497
497
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -560,7 +560,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
560
560
|
} | undefined;
|
|
561
561
|
is_one_time_use?: boolean | undefined;
|
|
562
562
|
issued_at?: string | null | undefined;
|
|
563
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
563
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
564
564
|
external_type_display_name?: string | undefined;
|
|
565
565
|
acs_user_id?: string | undefined;
|
|
566
566
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -583,7 +583,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
583
583
|
is_issued: z.ZodOptional<z.ZodBoolean>;
|
|
584
584
|
issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
585
585
|
access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
586
|
-
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key"]>>;
|
|
586
|
+
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access"]>>;
|
|
587
587
|
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
588
588
|
created_at: z.ZodString;
|
|
589
589
|
workspace_id: z.ZodString;
|
|
@@ -789,7 +789,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
789
789
|
} | undefined;
|
|
790
790
|
is_one_time_use?: boolean | undefined;
|
|
791
791
|
issued_at?: string | null | undefined;
|
|
792
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
792
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
793
793
|
external_type_display_name?: string | undefined;
|
|
794
794
|
acs_user_id?: string | undefined;
|
|
795
795
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -858,7 +858,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
858
858
|
} | undefined;
|
|
859
859
|
is_one_time_use?: boolean | undefined;
|
|
860
860
|
issued_at?: string | null | undefined;
|
|
861
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
861
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
862
862
|
external_type_display_name?: string | undefined;
|
|
863
863
|
acs_user_id?: string | undefined;
|
|
864
864
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -964,7 +964,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
964
964
|
} | undefined;
|
|
965
965
|
is_one_time_use?: boolean | undefined;
|
|
966
966
|
issued_at?: string | null | undefined;
|
|
967
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
967
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
968
968
|
external_type_display_name?: string | undefined;
|
|
969
969
|
acs_user_id?: string | undefined;
|
|
970
970
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -1033,7 +1033,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1033
1033
|
} | undefined;
|
|
1034
1034
|
is_one_time_use?: boolean | undefined;
|
|
1035
1035
|
issued_at?: string | null | undefined;
|
|
1036
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1036
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1037
1037
|
external_type_display_name?: string | undefined;
|
|
1038
1038
|
acs_user_id?: string | undefined;
|
|
1039
1039
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -1129,7 +1129,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1129
1129
|
} | undefined;
|
|
1130
1130
|
is_one_time_use?: boolean | undefined;
|
|
1131
1131
|
issued_at?: string | null | undefined;
|
|
1132
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1132
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1133
1133
|
external_type_display_name?: string | undefined;
|
|
1134
1134
|
acs_user_id?: string | undefined;
|
|
1135
1135
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -1198,7 +1198,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1198
1198
|
} | undefined;
|
|
1199
1199
|
is_one_time_use?: boolean | undefined;
|
|
1200
1200
|
issued_at?: string | null | undefined;
|
|
1201
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1201
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1202
1202
|
external_type_display_name?: string | undefined;
|
|
1203
1203
|
acs_user_id?: string | undefined;
|
|
1204
1204
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -1299,7 +1299,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1299
1299
|
} | undefined;
|
|
1300
1300
|
is_one_time_use?: boolean | undefined;
|
|
1301
1301
|
issued_at?: string | null | undefined;
|
|
1302
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1302
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1303
1303
|
external_type_display_name?: string | undefined;
|
|
1304
1304
|
acs_user_id?: string | undefined;
|
|
1305
1305
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -1368,7 +1368,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1368
1368
|
} | undefined;
|
|
1369
1369
|
is_one_time_use?: boolean | undefined;
|
|
1370
1370
|
issued_at?: string | null | undefined;
|
|
1371
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1371
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1372
1372
|
external_type_display_name?: string | undefined;
|
|
1373
1373
|
acs_user_id?: string | undefined;
|
|
1374
1374
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -1470,7 +1470,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1470
1470
|
} | undefined;
|
|
1471
1471
|
is_one_time_use?: boolean | undefined;
|
|
1472
1472
|
issued_at?: string | null | undefined;
|
|
1473
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1473
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1474
1474
|
external_type_display_name?: string | undefined;
|
|
1475
1475
|
acs_user_id?: string | undefined;
|
|
1476
1476
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -1539,7 +1539,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1539
1539
|
} | undefined;
|
|
1540
1540
|
is_one_time_use?: boolean | undefined;
|
|
1541
1541
|
issued_at?: string | null | undefined;
|
|
1542
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1542
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
1543
1543
|
external_type_display_name?: string | undefined;
|
|
1544
1544
|
acs_user_id?: string | undefined;
|
|
1545
1545
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -1843,7 +1843,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1843
1843
|
is_issued: z.ZodOptional<z.ZodBoolean>;
|
|
1844
1844
|
issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1845
1845
|
access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
1846
|
-
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key"]>>;
|
|
1846
|
+
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access"]>>;
|
|
1847
1847
|
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
1848
1848
|
created_at: z.ZodString;
|
|
1849
1849
|
workspace_id: z.ZodString;
|
|
@@ -2049,7 +2049,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2049
2049
|
} | undefined;
|
|
2050
2050
|
is_one_time_use?: boolean | undefined;
|
|
2051
2051
|
issued_at?: string | null | undefined;
|
|
2052
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2052
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2053
2053
|
external_type_display_name?: string | undefined;
|
|
2054
2054
|
acs_user_id?: string | undefined;
|
|
2055
2055
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -2118,7 +2118,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2118
2118
|
} | undefined;
|
|
2119
2119
|
is_one_time_use?: boolean | undefined;
|
|
2120
2120
|
issued_at?: string | null | undefined;
|
|
2121
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2121
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2122
2122
|
external_type_display_name?: string | undefined;
|
|
2123
2123
|
acs_user_id?: string | undefined;
|
|
2124
2124
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -2141,7 +2141,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2141
2141
|
is_issued: z.ZodOptional<z.ZodBoolean>;
|
|
2142
2142
|
issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2143
2143
|
access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
2144
|
-
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key"]>>;
|
|
2144
|
+
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access"]>>;
|
|
2145
2145
|
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
2146
2146
|
created_at: z.ZodString;
|
|
2147
2147
|
workspace_id: z.ZodString;
|
|
@@ -2347,7 +2347,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2347
2347
|
} | undefined;
|
|
2348
2348
|
is_one_time_use?: boolean | undefined;
|
|
2349
2349
|
issued_at?: string | null | undefined;
|
|
2350
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2350
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2351
2351
|
external_type_display_name?: string | undefined;
|
|
2352
2352
|
acs_user_id?: string | undefined;
|
|
2353
2353
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -2416,7 +2416,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2416
2416
|
} | undefined;
|
|
2417
2417
|
is_one_time_use?: boolean | undefined;
|
|
2418
2418
|
issued_at?: string | null | undefined;
|
|
2419
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2419
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2420
2420
|
external_type_display_name?: string | undefined;
|
|
2421
2421
|
acs_user_id?: string | undefined;
|
|
2422
2422
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -2490,7 +2490,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2490
2490
|
} | undefined;
|
|
2491
2491
|
is_one_time_use?: boolean | undefined;
|
|
2492
2492
|
issued_at?: string | null | undefined;
|
|
2493
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2493
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2494
2494
|
external_type_display_name?: string | undefined;
|
|
2495
2495
|
acs_user_id?: string | undefined;
|
|
2496
2496
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -2559,7 +2559,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2559
2559
|
} | undefined;
|
|
2560
2560
|
is_one_time_use?: boolean | undefined;
|
|
2561
2561
|
issued_at?: string | null | undefined;
|
|
2562
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2562
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2563
2563
|
external_type_display_name?: string | undefined;
|
|
2564
2564
|
acs_user_id?: string | undefined;
|
|
2565
2565
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -2634,7 +2634,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2634
2634
|
} | undefined;
|
|
2635
2635
|
is_one_time_use?: boolean | undefined;
|
|
2636
2636
|
issued_at?: string | null | undefined;
|
|
2637
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2637
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2638
2638
|
external_type_display_name?: string | undefined;
|
|
2639
2639
|
acs_user_id?: string | undefined;
|
|
2640
2640
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -2703,7 +2703,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2703
2703
|
} | undefined;
|
|
2704
2704
|
is_one_time_use?: boolean | undefined;
|
|
2705
2705
|
issued_at?: string | null | undefined;
|
|
2706
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2706
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
2707
2707
|
external_type_display_name?: string | undefined;
|
|
2708
2708
|
acs_user_id?: string | undefined;
|
|
2709
2709
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -3286,6 +3286,84 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
3286
3286
|
status: z.ZodLiteral<"pending">;
|
|
3287
3287
|
result: z.ZodNull;
|
|
3288
3288
|
error: z.ZodNull;
|
|
3289
|
+
}>, {
|
|
3290
|
+
action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
|
|
3291
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3292
|
+
error: null;
|
|
3293
|
+
status: "pending";
|
|
3294
|
+
action_attempt_id: string;
|
|
3295
|
+
result: null;
|
|
3296
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
3297
|
+
}, {
|
|
3298
|
+
error: null;
|
|
3299
|
+
status: "pending";
|
|
3300
|
+
action_attempt_id: string;
|
|
3301
|
+
result: null;
|
|
3302
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
3303
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3304
|
+
action_attempt_id: z.ZodString;
|
|
3305
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
3306
|
+
}, {
|
|
3307
|
+
status: z.ZodLiteral<"success">;
|
|
3308
|
+
error: z.ZodNull;
|
|
3309
|
+
}>, {
|
|
3310
|
+
action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
|
|
3311
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
3312
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3313
|
+
error: null;
|
|
3314
|
+
status: "success";
|
|
3315
|
+
action_attempt_id: string;
|
|
3316
|
+
result: {};
|
|
3317
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
3318
|
+
}, {
|
|
3319
|
+
error: null;
|
|
3320
|
+
status: "success";
|
|
3321
|
+
action_attempt_id: string;
|
|
3322
|
+
result: {};
|
|
3323
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
3324
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3325
|
+
action_attempt_id: z.ZodString;
|
|
3326
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
3327
|
+
}, {
|
|
3328
|
+
status: z.ZodLiteral<"error">;
|
|
3329
|
+
result: z.ZodNull;
|
|
3330
|
+
}>, {
|
|
3331
|
+
action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
|
|
3332
|
+
error: z.ZodObject<{
|
|
3333
|
+
type: z.ZodString;
|
|
3334
|
+
message: z.ZodString;
|
|
3335
|
+
}, "strip", z.ZodTypeAny, {
|
|
3336
|
+
type: string;
|
|
3337
|
+
message: string;
|
|
3338
|
+
}, {
|
|
3339
|
+
type: string;
|
|
3340
|
+
message: string;
|
|
3341
|
+
}>;
|
|
3342
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3343
|
+
error: {
|
|
3344
|
+
type: string;
|
|
3345
|
+
message: string;
|
|
3346
|
+
};
|
|
3347
|
+
status: "error";
|
|
3348
|
+
action_attempt_id: string;
|
|
3349
|
+
result: null;
|
|
3350
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
3351
|
+
}, {
|
|
3352
|
+
error: {
|
|
3353
|
+
type: string;
|
|
3354
|
+
message: string;
|
|
3355
|
+
};
|
|
3356
|
+
status: "error";
|
|
3357
|
+
action_attempt_id: string;
|
|
3358
|
+
result: null;
|
|
3359
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
3360
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3361
|
+
action_attempt_id: z.ZodString;
|
|
3362
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
3363
|
+
}, {
|
|
3364
|
+
status: z.ZodLiteral<"pending">;
|
|
3365
|
+
result: z.ZodNull;
|
|
3366
|
+
error: z.ZodNull;
|
|
3289
3367
|
}>, {
|
|
3290
3368
|
action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
|
|
3291
3369
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -4,6 +4,7 @@ import { deprecated_action_attempts } from './deprecated.js';
|
|
|
4
4
|
import { encode_access_method_action_attempt } from './encode-access-method.js';
|
|
5
5
|
import { encode_credential_action_attempt } from './encode-credential.js';
|
|
6
6
|
import { lock_door_action_attempt } from './lock-door.js';
|
|
7
|
+
import { push_thermostat_programs_action_attempt } from './push-thermostat-programs.js';
|
|
7
8
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
|
|
8
9
|
import { scan_credential_action_attempt } from './scan-credential.js';
|
|
9
10
|
import { set_fan_mode_action_attempt } from './set-fan-mode.js';
|
|
@@ -23,6 +24,7 @@ export const action_attempt = z.union([
|
|
|
23
24
|
...activate_climate_preset_action_attempt.options,
|
|
24
25
|
...simulate_keypad_code_entry_action_attempt.options,
|
|
25
26
|
...simulate_manual_lock_via_keypad_action_attempt.options,
|
|
27
|
+
...push_thermostat_programs_action_attempt.options,
|
|
26
28
|
...deprecated_action_attempts,
|
|
27
29
|
]).describe(`
|
|
28
30
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,mCAAmC,CAAC,OAAO;IAC9C,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,mCAAmC,CAAC,OAAO;IAC9C,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
|
|
@@ -41,7 +41,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
41
41
|
is_issued: z.ZodOptional<z.ZodBoolean>;
|
|
42
42
|
issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
43
|
access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
44
|
-
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key"]>>;
|
|
44
|
+
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access"]>>;
|
|
45
45
|
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
46
46
|
created_at: z.ZodString;
|
|
47
47
|
workspace_id: z.ZodString;
|
|
@@ -247,7 +247,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
247
247
|
} | undefined;
|
|
248
248
|
is_one_time_use?: boolean | undefined;
|
|
249
249
|
issued_at?: string | null | undefined;
|
|
250
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
250
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
251
251
|
external_type_display_name?: string | undefined;
|
|
252
252
|
acs_user_id?: string | undefined;
|
|
253
253
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -316,7 +316,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
316
316
|
} | undefined;
|
|
317
317
|
is_one_time_use?: boolean | undefined;
|
|
318
318
|
issued_at?: string | null | undefined;
|
|
319
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
319
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
320
320
|
external_type_display_name?: string | undefined;
|
|
321
321
|
acs_user_id?: string | undefined;
|
|
322
322
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -339,7 +339,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
339
339
|
is_issued: z.ZodOptional<z.ZodBoolean>;
|
|
340
340
|
issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
341
341
|
access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
342
|
-
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key"]>>;
|
|
342
|
+
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access"]>>;
|
|
343
343
|
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
344
344
|
created_at: z.ZodString;
|
|
345
345
|
workspace_id: z.ZodString;
|
|
@@ -545,7 +545,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
545
545
|
} | undefined;
|
|
546
546
|
is_one_time_use?: boolean | undefined;
|
|
547
547
|
issued_at?: string | null | undefined;
|
|
548
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
548
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
549
549
|
external_type_display_name?: string | undefined;
|
|
550
550
|
acs_user_id?: string | undefined;
|
|
551
551
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -614,7 +614,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
614
614
|
} | undefined;
|
|
615
615
|
is_one_time_use?: boolean | undefined;
|
|
616
616
|
issued_at?: string | null | undefined;
|
|
617
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
617
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
618
618
|
external_type_display_name?: string | undefined;
|
|
619
619
|
acs_user_id?: string | undefined;
|
|
620
620
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -688,7 +688,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
688
688
|
} | undefined;
|
|
689
689
|
is_one_time_use?: boolean | undefined;
|
|
690
690
|
issued_at?: string | null | undefined;
|
|
691
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
691
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
692
692
|
external_type_display_name?: string | undefined;
|
|
693
693
|
acs_user_id?: string | undefined;
|
|
694
694
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -757,7 +757,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
757
757
|
} | undefined;
|
|
758
758
|
is_one_time_use?: boolean | undefined;
|
|
759
759
|
issued_at?: string | null | undefined;
|
|
760
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
760
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
761
761
|
external_type_display_name?: string | undefined;
|
|
762
762
|
acs_user_id?: string | undefined;
|
|
763
763
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -832,7 +832,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
832
832
|
} | undefined;
|
|
833
833
|
is_one_time_use?: boolean | undefined;
|
|
834
834
|
issued_at?: string | null | undefined;
|
|
835
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
835
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
836
836
|
external_type_display_name?: string | undefined;
|
|
837
837
|
acs_user_id?: string | undefined;
|
|
838
838
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -901,7 +901,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
901
901
|
} | undefined;
|
|
902
902
|
is_one_time_use?: boolean | undefined;
|
|
903
903
|
issued_at?: string | null | undefined;
|
|
904
|
-
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
904
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
|
|
905
905
|
external_type_display_name?: string | undefined;
|
|
906
906
|
acs_user_id?: string | undefined;
|
|
907
907
|
acs_credential_pool_id?: string | undefined;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const push_thermostat_programs_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
|
+
action_attempt_id: z.ZodString;
|
|
4
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
5
|
+
}, {
|
|
6
|
+
status: z.ZodLiteral<"pending">;
|
|
7
|
+
result: z.ZodNull;
|
|
8
|
+
error: z.ZodNull;
|
|
9
|
+
}>, {
|
|
10
|
+
action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
|
|
11
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
error: null;
|
|
13
|
+
status: "pending";
|
|
14
|
+
action_attempt_id: string;
|
|
15
|
+
result: null;
|
|
16
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
17
|
+
}, {
|
|
18
|
+
error: null;
|
|
19
|
+
status: "pending";
|
|
20
|
+
action_attempt_id: string;
|
|
21
|
+
result: null;
|
|
22
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
23
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
24
|
+
action_attempt_id: z.ZodString;
|
|
25
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
26
|
+
}, {
|
|
27
|
+
status: z.ZodLiteral<"success">;
|
|
28
|
+
error: z.ZodNull;
|
|
29
|
+
}>, {
|
|
30
|
+
action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
|
|
31
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
32
|
+
}>, "strip", z.ZodTypeAny, {
|
|
33
|
+
error: null;
|
|
34
|
+
status: "success";
|
|
35
|
+
action_attempt_id: string;
|
|
36
|
+
result: {};
|
|
37
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
38
|
+
}, {
|
|
39
|
+
error: null;
|
|
40
|
+
status: "success";
|
|
41
|
+
action_attempt_id: string;
|
|
42
|
+
result: {};
|
|
43
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
44
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
45
|
+
action_attempt_id: z.ZodString;
|
|
46
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
47
|
+
}, {
|
|
48
|
+
status: z.ZodLiteral<"error">;
|
|
49
|
+
result: z.ZodNull;
|
|
50
|
+
}>, {
|
|
51
|
+
action_type: z.ZodLiteral<"PUSH_THERMOSTAT_PROGRAMS">;
|
|
52
|
+
error: z.ZodObject<{
|
|
53
|
+
type: z.ZodString;
|
|
54
|
+
message: z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
type: string;
|
|
57
|
+
message: string;
|
|
58
|
+
}, {
|
|
59
|
+
type: string;
|
|
60
|
+
message: string;
|
|
61
|
+
}>;
|
|
62
|
+
}>, "strip", z.ZodTypeAny, {
|
|
63
|
+
error: {
|
|
64
|
+
type: string;
|
|
65
|
+
message: string;
|
|
66
|
+
};
|
|
67
|
+
status: "error";
|
|
68
|
+
action_attempt_id: string;
|
|
69
|
+
result: null;
|
|
70
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
71
|
+
}, {
|
|
72
|
+
error: {
|
|
73
|
+
type: string;
|
|
74
|
+
message: string;
|
|
75
|
+
};
|
|
76
|
+
status: "error";
|
|
77
|
+
action_attempt_id: string;
|
|
78
|
+
result: null;
|
|
79
|
+
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
80
|
+
}>]>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
+
const action_type = z.literal('PUSH_THERMOSTAT_PROGRAMS');
|
|
4
|
+
const error = z.object({
|
|
5
|
+
type: z.string(),
|
|
6
|
+
message: z.string(),
|
|
7
|
+
});
|
|
8
|
+
const result = z.object({});
|
|
9
|
+
export const push_thermostat_programs_action_attempt = z.discriminatedUnion('status', [
|
|
10
|
+
common_pending_action_attempt
|
|
11
|
+
.extend({
|
|
12
|
+
action_type,
|
|
13
|
+
})
|
|
14
|
+
.describe('Pushing thermostat weekly programs.'),
|
|
15
|
+
common_succeeded_action_attempt
|
|
16
|
+
.extend({
|
|
17
|
+
action_type,
|
|
18
|
+
result,
|
|
19
|
+
})
|
|
20
|
+
.describe('Pushing thermostat weekly programs succeeded.'),
|
|
21
|
+
common_failed_action_attempt
|
|
22
|
+
.extend({ action_type, error })
|
|
23
|
+
.describe('Pushing thermostat weekly programs failed.'),
|
|
24
|
+
]);
|
|
25
|
+
//# sourceMappingURL=push-thermostat-programs.js.map
|