@seamapi/types 1.1099.0 → 1.1101.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-grants/access-method.d.ts +79 -0
- package/lib/seam/connect/models/access-grants/access-method.js +12 -1
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +104 -0
- 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/assign-credential.d.ts +29 -0
- package/lib/seam/connect/models/action-attempts/convert-access-code-to-managed.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/convert-access-code-to-managed.js +31 -0
- package/lib/seam/connect/models/action-attempts/convert-access-code-to-managed.js.map +1 -0
- package/lib/seam/connect/openapi.js +171 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1526 -42
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-method.ts +17 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/convert-access-code-to-managed.ts +44 -0
- package/src/lib/seam/connect/openapi.ts +192 -3
- package/src/lib/seam/connect/route-types.ts +1670 -42
|
@@ -333,6 +333,19 @@ export declare const access_method_pending_mutations: z.ZodDiscriminatedUnion<"m
|
|
|
333
333
|
starts_at: string | null;
|
|
334
334
|
ends_at: string | null;
|
|
335
335
|
};
|
|
336
|
+
}>, z.ZodObject<{
|
|
337
|
+
created_at: z.ZodString;
|
|
338
|
+
message: z.ZodString;
|
|
339
|
+
} & {
|
|
340
|
+
mutation_code: z.ZodLiteral<"waiting_for_access_on_acs_system">;
|
|
341
|
+
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
message: string;
|
|
343
|
+
created_at: string;
|
|
344
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
345
|
+
}, {
|
|
346
|
+
message: string;
|
|
347
|
+
created_at: string;
|
|
348
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
336
349
|
}>]>;
|
|
337
350
|
export type AccessMethodPendingMutation = z.infer<typeof access_method_pending_mutations>;
|
|
338
351
|
declare const _access_method_pending_mutations_map: z.ZodObject<{
|
|
@@ -483,6 +496,20 @@ declare const _access_method_pending_mutations_map: z.ZodObject<{
|
|
|
483
496
|
mutation_code: "notifying_connector";
|
|
484
497
|
provider_data: Record<string, any>;
|
|
485
498
|
}>>>;
|
|
499
|
+
waiting_for_access_on_acs_system: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
500
|
+
created_at: z.ZodString;
|
|
501
|
+
message: z.ZodString;
|
|
502
|
+
} & {
|
|
503
|
+
mutation_code: z.ZodLiteral<"waiting_for_access_on_acs_system">;
|
|
504
|
+
}, "strip", z.ZodTypeAny, {
|
|
505
|
+
message: string;
|
|
506
|
+
created_at: string;
|
|
507
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
508
|
+
}, {
|
|
509
|
+
message: string;
|
|
510
|
+
created_at: string;
|
|
511
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
512
|
+
}>>>;
|
|
486
513
|
}, "strip", z.ZodTypeAny, {
|
|
487
514
|
updating_access_times?: {
|
|
488
515
|
message: string;
|
|
@@ -525,6 +552,11 @@ declare const _access_method_pending_mutations_map: z.ZodObject<{
|
|
|
525
552
|
mutation_code: "notifying_connector";
|
|
526
553
|
provider_data: Record<string, any>;
|
|
527
554
|
} | null | undefined;
|
|
555
|
+
waiting_for_access_on_acs_system?: {
|
|
556
|
+
message: string;
|
|
557
|
+
created_at: string;
|
|
558
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
559
|
+
} | null | undefined;
|
|
528
560
|
}, {
|
|
529
561
|
updating_access_times?: {
|
|
530
562
|
message: string;
|
|
@@ -567,6 +599,11 @@ declare const _access_method_pending_mutations_map: z.ZodObject<{
|
|
|
567
599
|
mutation_code: "notifying_connector";
|
|
568
600
|
provider_data: Record<string, any>;
|
|
569
601
|
} | null | undefined;
|
|
602
|
+
waiting_for_access_on_acs_system?: {
|
|
603
|
+
message: string;
|
|
604
|
+
created_at: string;
|
|
605
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
606
|
+
} | null | undefined;
|
|
570
607
|
}>;
|
|
571
608
|
export type AccessMethodPendingMutationsMap = z.infer<typeof _access_method_pending_mutations_map>;
|
|
572
609
|
export declare const access_method: z.ZodObject<{
|
|
@@ -821,6 +858,19 @@ export declare const access_method: z.ZodObject<{
|
|
|
821
858
|
starts_at: string | null;
|
|
822
859
|
ends_at: string | null;
|
|
823
860
|
};
|
|
861
|
+
}>, z.ZodObject<{
|
|
862
|
+
created_at: z.ZodString;
|
|
863
|
+
message: z.ZodString;
|
|
864
|
+
} & {
|
|
865
|
+
mutation_code: z.ZodLiteral<"waiting_for_access_on_acs_system">;
|
|
866
|
+
}, "strip", z.ZodTypeAny, {
|
|
867
|
+
message: string;
|
|
868
|
+
created_at: string;
|
|
869
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
870
|
+
}, {
|
|
871
|
+
message: string;
|
|
872
|
+
created_at: string;
|
|
873
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
824
874
|
}>]>, "many">;
|
|
825
875
|
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
826
876
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -895,6 +945,10 @@ export declare const access_method: z.ZodObject<{
|
|
|
895
945
|
starts_at: string | null;
|
|
896
946
|
ends_at: string | null;
|
|
897
947
|
};
|
|
948
|
+
} | {
|
|
949
|
+
message: string;
|
|
950
|
+
created_at: string;
|
|
951
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
898
952
|
})[];
|
|
899
953
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
900
954
|
access_method_id: string;
|
|
@@ -980,6 +1034,10 @@ export declare const access_method: z.ZodObject<{
|
|
|
980
1034
|
starts_at: string | null;
|
|
981
1035
|
ends_at: string | null;
|
|
982
1036
|
};
|
|
1037
|
+
} | {
|
|
1038
|
+
message: string;
|
|
1039
|
+
created_at: string;
|
|
1040
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
983
1041
|
})[];
|
|
984
1042
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
985
1043
|
access_method_id: string;
|
|
@@ -1247,6 +1305,19 @@ export declare const unmanaged_access_method: z.ZodObject<Omit<{
|
|
|
1247
1305
|
starts_at: string | null;
|
|
1248
1306
|
ends_at: string | null;
|
|
1249
1307
|
};
|
|
1308
|
+
}>, z.ZodObject<{
|
|
1309
|
+
created_at: z.ZodString;
|
|
1310
|
+
message: z.ZodString;
|
|
1311
|
+
} & {
|
|
1312
|
+
mutation_code: z.ZodLiteral<"waiting_for_access_on_acs_system">;
|
|
1313
|
+
}, "strip", z.ZodTypeAny, {
|
|
1314
|
+
message: string;
|
|
1315
|
+
created_at: string;
|
|
1316
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
1317
|
+
}, {
|
|
1318
|
+
message: string;
|
|
1319
|
+
created_at: string;
|
|
1320
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
1250
1321
|
}>]>, "many">;
|
|
1251
1322
|
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
1252
1323
|
}, "client_session_token" | "instant_key_url" | "customization_profile_id">, "strip", z.ZodTypeAny, {
|
|
@@ -1321,6 +1392,10 @@ export declare const unmanaged_access_method: z.ZodObject<Omit<{
|
|
|
1321
1392
|
starts_at: string | null;
|
|
1322
1393
|
ends_at: string | null;
|
|
1323
1394
|
};
|
|
1395
|
+
} | {
|
|
1396
|
+
message: string;
|
|
1397
|
+
created_at: string;
|
|
1398
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
1324
1399
|
})[];
|
|
1325
1400
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
1326
1401
|
access_method_id: string;
|
|
@@ -1403,6 +1478,10 @@ export declare const unmanaged_access_method: z.ZodObject<Omit<{
|
|
|
1403
1478
|
starts_at: string | null;
|
|
1404
1479
|
ends_at: string | null;
|
|
1405
1480
|
};
|
|
1481
|
+
} | {
|
|
1482
|
+
message: string;
|
|
1483
|
+
created_at: string;
|
|
1484
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
1406
1485
|
})[];
|
|
1407
1486
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
1408
1487
|
access_method_id: string;
|
|
@@ -186,16 +186,27 @@ const notifying_connector_mutation = common_pending_mutation
|
|
|
186
186
|
.describe('Provider-specific data needed to notify the connector.'),
|
|
187
187
|
})
|
|
188
188
|
.describe("Seam is in the process of notifying the connector about this access method's issuance.");
|
|
189
|
+
const waiting_for_access_on_acs_system_mutation = common_pending_mutation
|
|
190
|
+
.extend({
|
|
191
|
+
mutation_code: z
|
|
192
|
+
.literal('waiting_for_access_on_acs_system')
|
|
193
|
+
.describe('Mutation code to indicate that the access system has not yet received all the access this card needs, so the card is not ready to be encoded.'),
|
|
194
|
+
})
|
|
195
|
+
.describe('The access system has not yet received all the access this card needs. A card encoded now would carry only the access the system already has, so wait until this clears before encoding.');
|
|
189
196
|
export const access_method_pending_mutations = z.discriminatedUnion('mutation_code', [
|
|
190
197
|
provisioning_access_mutation,
|
|
191
198
|
revoking_access_mutation,
|
|
192
199
|
updating_access_times_mutation,
|
|
200
|
+
waiting_for_access_on_acs_system_mutation,
|
|
193
201
|
]);
|
|
194
202
|
const _access_method_pending_mutations_map = z.object({
|
|
195
203
|
provisioning_access: provisioning_access_mutation.optional().nullable(),
|
|
196
204
|
revoking_access: revoking_access_mutation.optional().nullable(),
|
|
197
205
|
updating_access_times: updating_access_times_mutation.optional().nullable(),
|
|
198
206
|
notifying_connector: notifying_connector_mutation.optional().nullable(),
|
|
207
|
+
waiting_for_access_on_acs_system: waiting_for_access_on_acs_system_mutation
|
|
208
|
+
.optional()
|
|
209
|
+
.nullable(),
|
|
199
210
|
});
|
|
200
211
|
export const access_method = z.object({
|
|
201
212
|
workspace_id: z
|
|
@@ -233,7 +244,7 @@ export const access_method = z.object({
|
|
|
233
244
|
is_ready_for_encoding: z
|
|
234
245
|
.boolean()
|
|
235
246
|
.optional()
|
|
236
|
-
.describe('Indicates whether the access method is ready to be encoded. This is true when the
|
|
247
|
+
.describe('Indicates whether the access method is ready to be encoded. This is true when the card has not yet been issued and the access system has received all the access the card needs. While it is false, `pending_mutations` contains `waiting_for_access_on_acs_system`.'),
|
|
237
248
|
is_assignment_required: z
|
|
238
249
|
.boolean()
|
|
239
250
|
.optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-method.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,kDAAkD,CACnD;IACD,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,0GAA0G,CAC3G;CACJ,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,aAAa,GAAG,4BAA4B;KAC/C,MAAM,CAAC;IACN,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAC5E,CAAC;KACD,QAAQ,CACP,mIAAmI,CACpI,CAAA;AAEH,MAAM,6BAA6B,GAAG,4BAA4B;KAC/D,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,uBAAuB,CAAC;SAChC,QAAQ,CAAC,wBAAwB,CAAC;CACtC,CAAC;KACD,QAAQ,CACP,0JAA0J,CAC3J,CAA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AA;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,kBAAkB,CACjE,eAAe,EACf;IACE,4BAA4B;IAC5B,wBAAwB;IACxB,8BAA8B;
|
|
1
|
+
{"version":3,"file":"access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-method.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,kDAAkD,CACnD;IACD,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,0GAA0G,CAC3G;CACJ,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,aAAa,GAAG,4BAA4B;KAC/C,MAAM,CAAC;IACN,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAC5E,CAAC;KACD,QAAQ,CACP,mIAAmI,CACpI,CAAA;AAEH,MAAM,6BAA6B,GAAG,4BAA4B;KAC/D,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,uBAAuB,CAAC;SAChC,QAAQ,CAAC,wBAAwB,CAAC;CACtC,CAAC;KACD,QAAQ,CACP,0JAA0J,CAC3J,CAAA;AAEH,MAAM,iCAAiC,GAAG,4BAA4B;KACnE,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,2BAA2B,CAAC;SACpC,QAAQ,CAAC,wBAAwB,CAAC;IACrC,yBAAyB,EAAE,CAAC;SACzB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,iGAAiG,CAClG;CACJ,CAAC;KACD,QAAQ,CACP,2KAA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IAAI;CAC/B,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
|
|
@@ -4058,6 +4058,19 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
4058
4058
|
starts_at: string | null;
|
|
4059
4059
|
ends_at: string | null;
|
|
4060
4060
|
};
|
|
4061
|
+
}>, z.ZodObject<{
|
|
4062
|
+
created_at: z.ZodString;
|
|
4063
|
+
message: z.ZodString;
|
|
4064
|
+
} & {
|
|
4065
|
+
mutation_code: z.ZodLiteral<"waiting_for_access_on_acs_system">;
|
|
4066
|
+
}, "strip", z.ZodTypeAny, {
|
|
4067
|
+
message: string;
|
|
4068
|
+
created_at: string;
|
|
4069
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
4070
|
+
}, {
|
|
4071
|
+
message: string;
|
|
4072
|
+
created_at: string;
|
|
4073
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
4061
4074
|
}>]>, "many">;
|
|
4062
4075
|
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
4063
4076
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4132,6 +4145,10 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
4132
4145
|
starts_at: string | null;
|
|
4133
4146
|
ends_at: string | null;
|
|
4134
4147
|
};
|
|
4148
|
+
} | {
|
|
4149
|
+
message: string;
|
|
4150
|
+
created_at: string;
|
|
4151
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
4135
4152
|
})[];
|
|
4136
4153
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
4137
4154
|
access_method_id: string;
|
|
@@ -4217,6 +4234,10 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
4217
4234
|
starts_at: string | null;
|
|
4218
4235
|
ends_at: string | null;
|
|
4219
4236
|
};
|
|
4237
|
+
} | {
|
|
4238
|
+
message: string;
|
|
4239
|
+
created_at: string;
|
|
4240
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
4220
4241
|
})[];
|
|
4221
4242
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
4222
4243
|
access_method_id: string;
|
|
@@ -4307,6 +4328,10 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
4307
4328
|
starts_at: string | null;
|
|
4308
4329
|
ends_at: string | null;
|
|
4309
4330
|
};
|
|
4331
|
+
} | {
|
|
4332
|
+
message: string;
|
|
4333
|
+
created_at: string;
|
|
4334
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
4310
4335
|
})[];
|
|
4311
4336
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
4312
4337
|
access_method_id: string;
|
|
@@ -4398,6 +4423,10 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
4398
4423
|
starts_at: string | null;
|
|
4399
4424
|
ends_at: string | null;
|
|
4400
4425
|
};
|
|
4426
|
+
} | {
|
|
4427
|
+
message: string;
|
|
4428
|
+
created_at: string;
|
|
4429
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
4401
4430
|
})[];
|
|
4402
4431
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
4403
4432
|
access_method_id: string;
|
|
@@ -5159,6 +5188,81 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
5159
5188
|
status: z.ZodLiteral<"pending">;
|
|
5160
5189
|
result: z.ZodNull;
|
|
5161
5190
|
error: z.ZodNull;
|
|
5191
|
+
} & {
|
|
5192
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
5193
|
+
}, "strip", z.ZodTypeAny, {
|
|
5194
|
+
status: "pending";
|
|
5195
|
+
action_attempt_id: string;
|
|
5196
|
+
error: null;
|
|
5197
|
+
result: null;
|
|
5198
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5199
|
+
}, {
|
|
5200
|
+
status: "pending";
|
|
5201
|
+
action_attempt_id: string;
|
|
5202
|
+
error: null;
|
|
5203
|
+
result: null;
|
|
5204
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5205
|
+
}>, z.ZodObject<{
|
|
5206
|
+
action_attempt_id: z.ZodString;
|
|
5207
|
+
} & {
|
|
5208
|
+
status: z.ZodLiteral<"success">;
|
|
5209
|
+
error: z.ZodNull;
|
|
5210
|
+
} & {
|
|
5211
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
5212
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
5213
|
+
}, "strip", z.ZodTypeAny, {
|
|
5214
|
+
status: "success";
|
|
5215
|
+
action_attempt_id: string;
|
|
5216
|
+
error: null;
|
|
5217
|
+
result: {};
|
|
5218
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5219
|
+
}, {
|
|
5220
|
+
status: "success";
|
|
5221
|
+
action_attempt_id: string;
|
|
5222
|
+
error: null;
|
|
5223
|
+
result: {};
|
|
5224
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5225
|
+
}>, z.ZodObject<{
|
|
5226
|
+
action_attempt_id: z.ZodString;
|
|
5227
|
+
} & {
|
|
5228
|
+
status: z.ZodLiteral<"error">;
|
|
5229
|
+
result: z.ZodNull;
|
|
5230
|
+
} & {
|
|
5231
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
5232
|
+
error: z.ZodObject<{
|
|
5233
|
+
type: z.ZodString;
|
|
5234
|
+
message: z.ZodString;
|
|
5235
|
+
}, "strip", z.ZodTypeAny, {
|
|
5236
|
+
message: string;
|
|
5237
|
+
type: string;
|
|
5238
|
+
}, {
|
|
5239
|
+
message: string;
|
|
5240
|
+
type: string;
|
|
5241
|
+
}>;
|
|
5242
|
+
}, "strip", z.ZodTypeAny, {
|
|
5243
|
+
status: "error";
|
|
5244
|
+
action_attempt_id: string;
|
|
5245
|
+
error: {
|
|
5246
|
+
message: string;
|
|
5247
|
+
type: string;
|
|
5248
|
+
};
|
|
5249
|
+
result: null;
|
|
5250
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5251
|
+
}, {
|
|
5252
|
+
status: "error";
|
|
5253
|
+
action_attempt_id: string;
|
|
5254
|
+
error: {
|
|
5255
|
+
message: string;
|
|
5256
|
+
type: string;
|
|
5257
|
+
};
|
|
5258
|
+
result: null;
|
|
5259
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5260
|
+
}>, z.ZodObject<{
|
|
5261
|
+
action_attempt_id: z.ZodString;
|
|
5262
|
+
} & {
|
|
5263
|
+
status: z.ZodLiteral<"pending">;
|
|
5264
|
+
result: z.ZodNull;
|
|
5265
|
+
error: z.ZodNull;
|
|
5162
5266
|
} & {
|
|
5163
5267
|
action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
|
|
5164
5268
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3,6 +3,7 @@ import { activate_climate_preset_action_attempt } from './activate-climate-prese
|
|
|
3
3
|
import { activate_weekly_program_action_attempt } from './activate-weekly-program.js';
|
|
4
4
|
import { assign_credential_action_attempt } from './assign-credential.js';
|
|
5
5
|
import { configure_auto_lock_action_attempt } from './configure-auto-lock.js';
|
|
6
|
+
import { convert_access_code_to_managed_action_attempt } from './convert-access-code-to-managed.js';
|
|
6
7
|
import { deprecated_action_attempts } from './deprecated.js';
|
|
7
8
|
import { encode_credential_action_attempt } from './encode-credential.js';
|
|
8
9
|
import { lock_door_action_attempt } from './lock-door.js';
|
|
@@ -31,6 +32,7 @@ export const action_attempt = z.union([
|
|
|
31
32
|
...simulate_manual_lock_via_keypad_action_attempt.options,
|
|
32
33
|
...push_thermostat_programs_action_attempt.options,
|
|
33
34
|
...configure_auto_lock_action_attempt.options,
|
|
35
|
+
...convert_access_code_to_managed_action_attempt.options,
|
|
34
36
|
...deprecated_action_attempts,
|
|
35
37
|
]).describe(`
|
|
36
38
|
---
|
|
@@ -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,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,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,wCAAwC,EAAE,MAAM,gCAAgC,CAAA;AACzF,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,gCAAgC,CAAC,OAAO;IAC3C,GAAG,wCAAwC,CAAC,OAAO;IACnD,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,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,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,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,6CAA6C,EAAE,MAAM,qCAAqC,CAAA;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,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,wCAAwC,EAAE,MAAM,gCAAgC,CAAA;AACzF,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,gCAAgC,CAAC,OAAO;IAC3C,GAAG,wCAAwC,CAAC,OAAO;IACnD,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,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,6CAA6C,CAAC,OAAO;IACxD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,CAAC,CAAA"}
|
|
@@ -278,6 +278,19 @@ export declare const assign_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
278
278
|
starts_at: string | null;
|
|
279
279
|
ends_at: string | null;
|
|
280
280
|
};
|
|
281
|
+
}>, z.ZodObject<{
|
|
282
|
+
created_at: z.ZodString;
|
|
283
|
+
message: z.ZodString;
|
|
284
|
+
} & {
|
|
285
|
+
mutation_code: z.ZodLiteral<"waiting_for_access_on_acs_system">;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
message: string;
|
|
288
|
+
created_at: string;
|
|
289
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
290
|
+
}, {
|
|
291
|
+
message: string;
|
|
292
|
+
created_at: string;
|
|
293
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
281
294
|
}>]>, "many">;
|
|
282
295
|
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
283
296
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -352,6 +365,10 @@ export declare const assign_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
352
365
|
starts_at: string | null;
|
|
353
366
|
ends_at: string | null;
|
|
354
367
|
};
|
|
368
|
+
} | {
|
|
369
|
+
message: string;
|
|
370
|
+
created_at: string;
|
|
371
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
355
372
|
})[];
|
|
356
373
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
357
374
|
access_method_id: string;
|
|
@@ -437,6 +454,10 @@ export declare const assign_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
437
454
|
starts_at: string | null;
|
|
438
455
|
ends_at: string | null;
|
|
439
456
|
};
|
|
457
|
+
} | {
|
|
458
|
+
message: string;
|
|
459
|
+
created_at: string;
|
|
460
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
440
461
|
})[];
|
|
441
462
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
442
463
|
access_method_id: string;
|
|
@@ -527,6 +548,10 @@ export declare const assign_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
527
548
|
starts_at: string | null;
|
|
528
549
|
ends_at: string | null;
|
|
529
550
|
};
|
|
551
|
+
} | {
|
|
552
|
+
message: string;
|
|
553
|
+
created_at: string;
|
|
554
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
530
555
|
})[];
|
|
531
556
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
532
557
|
access_method_id: string;
|
|
@@ -618,6 +643,10 @@ export declare const assign_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
618
643
|
starts_at: string | null;
|
|
619
644
|
ends_at: string | null;
|
|
620
645
|
};
|
|
646
|
+
} | {
|
|
647
|
+
message: string;
|
|
648
|
+
created_at: string;
|
|
649
|
+
mutation_code: "waiting_for_access_on_acs_system";
|
|
621
650
|
})[];
|
|
622
651
|
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
623
652
|
access_method_id: string;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as z from 'zod/v3';
|
|
2
|
+
export declare const convert_access_code_to_managed_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
3
|
+
action_attempt_id: z.ZodString;
|
|
4
|
+
} & {
|
|
5
|
+
status: z.ZodLiteral<"pending">;
|
|
6
|
+
result: z.ZodNull;
|
|
7
|
+
error: z.ZodNull;
|
|
8
|
+
} & {
|
|
9
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
status: "pending";
|
|
12
|
+
action_attempt_id: string;
|
|
13
|
+
error: null;
|
|
14
|
+
result: null;
|
|
15
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
16
|
+
}, {
|
|
17
|
+
status: "pending";
|
|
18
|
+
action_attempt_id: string;
|
|
19
|
+
error: null;
|
|
20
|
+
result: null;
|
|
21
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
22
|
+
}>, z.ZodObject<{
|
|
23
|
+
action_attempt_id: z.ZodString;
|
|
24
|
+
} & {
|
|
25
|
+
status: z.ZodLiteral<"success">;
|
|
26
|
+
error: z.ZodNull;
|
|
27
|
+
} & {
|
|
28
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
29
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
status: "success";
|
|
32
|
+
action_attempt_id: string;
|
|
33
|
+
error: null;
|
|
34
|
+
result: {};
|
|
35
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
36
|
+
}, {
|
|
37
|
+
status: "success";
|
|
38
|
+
action_attempt_id: string;
|
|
39
|
+
error: null;
|
|
40
|
+
result: {};
|
|
41
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
42
|
+
}>, z.ZodObject<{
|
|
43
|
+
action_attempt_id: z.ZodString;
|
|
44
|
+
} & {
|
|
45
|
+
status: z.ZodLiteral<"error">;
|
|
46
|
+
result: z.ZodNull;
|
|
47
|
+
} & {
|
|
48
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
49
|
+
error: z.ZodObject<{
|
|
50
|
+
type: z.ZodString;
|
|
51
|
+
message: z.ZodString;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
message: string;
|
|
54
|
+
type: string;
|
|
55
|
+
}, {
|
|
56
|
+
message: string;
|
|
57
|
+
type: string;
|
|
58
|
+
}>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
status: "error";
|
|
61
|
+
action_attempt_id: string;
|
|
62
|
+
error: {
|
|
63
|
+
message: string;
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
result: null;
|
|
67
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
68
|
+
}, {
|
|
69
|
+
status: "error";
|
|
70
|
+
action_attempt_id: string;
|
|
71
|
+
error: {
|
|
72
|
+
message: string;
|
|
73
|
+
type: string;
|
|
74
|
+
};
|
|
75
|
+
result: null;
|
|
76
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
77
|
+
}>]>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from 'zod/v3';
|
|
2
|
+
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
+
const action_type = z
|
|
4
|
+
.literal('CONVERT_ACCESS_CODE_TO_MANAGED')
|
|
5
|
+
.describe('Action attempt to track the status of converting an unmanaged access code to a managed access code.');
|
|
6
|
+
const error = z
|
|
7
|
+
.object({
|
|
8
|
+
type: z.string().describe('Type of the error.'),
|
|
9
|
+
message: z
|
|
10
|
+
.string()
|
|
11
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
12
|
+
})
|
|
13
|
+
.describe('Error associated with the action.');
|
|
14
|
+
const result = z.object({}).describe('Result of the action.');
|
|
15
|
+
export const convert_access_code_to_managed_action_attempt = z.discriminatedUnion('status', [
|
|
16
|
+
common_pending_action_attempt
|
|
17
|
+
.extend({
|
|
18
|
+
action_type,
|
|
19
|
+
})
|
|
20
|
+
.describe('Converting an unmanaged access code to managed is pending.'),
|
|
21
|
+
common_succeeded_action_attempt
|
|
22
|
+
.extend({
|
|
23
|
+
action_type,
|
|
24
|
+
result,
|
|
25
|
+
})
|
|
26
|
+
.describe('Converting an unmanaged access code to managed succeeded.'),
|
|
27
|
+
common_failed_action_attempt
|
|
28
|
+
.extend({ action_type, error })
|
|
29
|
+
.describe('Converting an unmanaged access code to managed failed.'),
|
|
30
|
+
]);
|
|
31
|
+
//# sourceMappingURL=convert-access-code-to-managed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert-access-code-to-managed.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/convert-access-code-to-managed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,gCAAgC,CAAC;KACzC,QAAQ,CACP,qGAAqG,CACtG,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAE7D,MAAM,CAAC,MAAM,6CAA6C,GACxD,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC7B,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,4DAA4D,CAAC;IACzE,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,2DAA2D,CAAC;IACxE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,wDAAwD,CAAC;CACtE,CAAC,CAAA"}
|