@seamapi/types 1.968.0 → 1.969.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 +47 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +96 -0
- package/dist/index.cjs +47 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +93 -0
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +7 -0
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/openapi.js +40 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +54 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +10 -0
- package/src/lib/seam/connect/openapi.ts +46 -0
- package/src/lib/seam/connect/route-types.ts +63 -0
package/dist/connect.d.cts
CHANGED
|
@@ -6244,6 +6244,19 @@ declare const acs_user: z.ZodObject<{
|
|
|
6244
6244
|
}>, z.ZodObject<{
|
|
6245
6245
|
created_at: z.ZodString;
|
|
6246
6246
|
message: z.ZodString;
|
|
6247
|
+
} & {
|
|
6248
|
+
warning_code: z.ZodLiteral<"acs_user_inactive">;
|
|
6249
|
+
}, "strip", z.ZodTypeAny, {
|
|
6250
|
+
message: string;
|
|
6251
|
+
created_at: string;
|
|
6252
|
+
warning_code: "acs_user_inactive";
|
|
6253
|
+
}, {
|
|
6254
|
+
message: string;
|
|
6255
|
+
created_at: string;
|
|
6256
|
+
warning_code: "acs_user_inactive";
|
|
6257
|
+
}>, z.ZodObject<{
|
|
6258
|
+
created_at: z.ZodString;
|
|
6259
|
+
message: z.ZodString;
|
|
6247
6260
|
} & {
|
|
6248
6261
|
warning_code: z.ZodLiteral<"unknown_issue_with_acs_user">;
|
|
6249
6262
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6698,6 +6711,10 @@ declare const acs_user: z.ZodObject<{
|
|
|
6698
6711
|
message: string;
|
|
6699
6712
|
created_at: string;
|
|
6700
6713
|
warning_code: "salto_ks_user_not_subscribed";
|
|
6714
|
+
} | {
|
|
6715
|
+
message: string;
|
|
6716
|
+
created_at: string;
|
|
6717
|
+
warning_code: "acs_user_inactive";
|
|
6701
6718
|
} | {
|
|
6702
6719
|
message: string;
|
|
6703
6720
|
created_at: string;
|
|
@@ -6848,6 +6865,10 @@ declare const acs_user: z.ZodObject<{
|
|
|
6848
6865
|
message: string;
|
|
6849
6866
|
created_at: string;
|
|
6850
6867
|
warning_code: "salto_ks_user_not_subscribed";
|
|
6868
|
+
} | {
|
|
6869
|
+
message: string;
|
|
6870
|
+
created_at: string;
|
|
6871
|
+
warning_code: "acs_user_inactive";
|
|
6851
6872
|
} | {
|
|
6852
6873
|
message: string;
|
|
6853
6874
|
created_at: string;
|
|
@@ -7014,6 +7035,19 @@ declare const unmanaged_acs_user: z.ZodObject<{
|
|
|
7014
7035
|
}>, z.ZodObject<{
|
|
7015
7036
|
created_at: z.ZodString;
|
|
7016
7037
|
message: z.ZodString;
|
|
7038
|
+
} & {
|
|
7039
|
+
warning_code: z.ZodLiteral<"acs_user_inactive">;
|
|
7040
|
+
}, "strip", z.ZodTypeAny, {
|
|
7041
|
+
message: string;
|
|
7042
|
+
created_at: string;
|
|
7043
|
+
warning_code: "acs_user_inactive";
|
|
7044
|
+
}, {
|
|
7045
|
+
message: string;
|
|
7046
|
+
created_at: string;
|
|
7047
|
+
warning_code: "acs_user_inactive";
|
|
7048
|
+
}>, z.ZodObject<{
|
|
7049
|
+
created_at: z.ZodString;
|
|
7050
|
+
message: z.ZodString;
|
|
7017
7051
|
} & {
|
|
7018
7052
|
warning_code: z.ZodLiteral<"unknown_issue_with_acs_user">;
|
|
7019
7053
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7468,6 +7502,10 @@ declare const unmanaged_acs_user: z.ZodObject<{
|
|
|
7468
7502
|
message: string;
|
|
7469
7503
|
created_at: string;
|
|
7470
7504
|
warning_code: "salto_ks_user_not_subscribed";
|
|
7505
|
+
} | {
|
|
7506
|
+
message: string;
|
|
7507
|
+
created_at: string;
|
|
7508
|
+
warning_code: "acs_user_inactive";
|
|
7471
7509
|
} | {
|
|
7472
7510
|
message: string;
|
|
7473
7511
|
created_at: string;
|
|
@@ -7618,6 +7656,10 @@ declare const unmanaged_acs_user: z.ZodObject<{
|
|
|
7618
7656
|
message: string;
|
|
7619
7657
|
created_at: string;
|
|
7620
7658
|
warning_code: "salto_ks_user_not_subscribed";
|
|
7659
|
+
} | {
|
|
7660
|
+
message: string;
|
|
7661
|
+
created_at: string;
|
|
7662
|
+
warning_code: "acs_user_inactive";
|
|
7621
7663
|
} | {
|
|
7622
7664
|
message: string;
|
|
7623
7665
|
created_at: string;
|
|
@@ -53441,6 +53483,12 @@ type Routes = {
|
|
|
53441
53483
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
53442
53484
|
message: string;
|
|
53443
53485
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
53486
|
+
} | {
|
|
53487
|
+
/** Date and time at which Seam created the warning. */
|
|
53488
|
+
created_at: string;
|
|
53489
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
53490
|
+
message: string;
|
|
53491
|
+
warning_code: 'acs_user_inactive';
|
|
53444
53492
|
} | {
|
|
53445
53493
|
/** Date and time at which Seam created the warning. */
|
|
53446
53494
|
created_at: string;
|
|
@@ -64040,6 +64088,12 @@ type Routes = {
|
|
|
64040
64088
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
64041
64089
|
message: string;
|
|
64042
64090
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
64091
|
+
} | {
|
|
64092
|
+
/** Date and time at which Seam created the warning. */
|
|
64093
|
+
created_at: string;
|
|
64094
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
64095
|
+
message: string;
|
|
64096
|
+
warning_code: 'acs_user_inactive';
|
|
64043
64097
|
} | {
|
|
64044
64098
|
/** Date and time at which Seam created the warning. */
|
|
64045
64099
|
created_at: string;
|
|
@@ -64339,6 +64393,12 @@ type Routes = {
|
|
|
64339
64393
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
64340
64394
|
message: string;
|
|
64341
64395
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
64396
|
+
} | {
|
|
64397
|
+
/** Date and time at which Seam created the warning. */
|
|
64398
|
+
created_at: string;
|
|
64399
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
64400
|
+
message: string;
|
|
64401
|
+
warning_code: 'acs_user_inactive';
|
|
64342
64402
|
} | {
|
|
64343
64403
|
/** Date and time at which Seam created the warning. */
|
|
64344
64404
|
created_at: string;
|
|
@@ -64626,6 +64686,12 @@ type Routes = {
|
|
|
64626
64686
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
64627
64687
|
message: string;
|
|
64628
64688
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
64689
|
+
} | {
|
|
64690
|
+
/** Date and time at which Seam created the warning. */
|
|
64691
|
+
created_at: string;
|
|
64692
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
64693
|
+
message: string;
|
|
64694
|
+
warning_code: 'acs_user_inactive';
|
|
64629
64695
|
} | {
|
|
64630
64696
|
/** Date and time at which Seam created the warning. */
|
|
64631
64697
|
created_at: string;
|
|
@@ -65167,6 +65233,12 @@ type Routes = {
|
|
|
65167
65233
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
65168
65234
|
message: string;
|
|
65169
65235
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
65236
|
+
} | {
|
|
65237
|
+
/** Date and time at which Seam created the warning. */
|
|
65238
|
+
created_at: string;
|
|
65239
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
65240
|
+
message: string;
|
|
65241
|
+
warning_code: 'acs_user_inactive';
|
|
65170
65242
|
} | {
|
|
65171
65243
|
/** Date and time at which Seam created the warning. */
|
|
65172
65244
|
created_at: string;
|
|
@@ -65449,6 +65521,12 @@ type Routes = {
|
|
|
65449
65521
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
65450
65522
|
message: string;
|
|
65451
65523
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
65524
|
+
} | {
|
|
65525
|
+
/** Date and time at which Seam created the warning. */
|
|
65526
|
+
created_at: string;
|
|
65527
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
65528
|
+
message: string;
|
|
65529
|
+
warning_code: 'acs_user_inactive';
|
|
65452
65530
|
} | {
|
|
65453
65531
|
/** Date and time at which Seam created the warning. */
|
|
65454
65532
|
created_at: string;
|
|
@@ -141159,6 +141237,12 @@ type Routes = {
|
|
|
141159
141237
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
141160
141238
|
message: string;
|
|
141161
141239
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
141240
|
+
} | {
|
|
141241
|
+
/** Date and time at which Seam created the warning. */
|
|
141242
|
+
created_at: string;
|
|
141243
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
141244
|
+
message: string;
|
|
141245
|
+
warning_code: 'acs_user_inactive';
|
|
141162
141246
|
} | {
|
|
141163
141247
|
/** Date and time at which Seam created the warning. */
|
|
141164
141248
|
created_at: string;
|
|
@@ -143837,6 +143921,12 @@ type Routes = {
|
|
|
143837
143921
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
143838
143922
|
message: string;
|
|
143839
143923
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
143924
|
+
} | {
|
|
143925
|
+
/** Date and time at which Seam created the warning. */
|
|
143926
|
+
created_at: string;
|
|
143927
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
143928
|
+
message: string;
|
|
143929
|
+
warning_code: 'acs_user_inactive';
|
|
143840
143930
|
} | {
|
|
143841
143931
|
/** Date and time at which Seam created the warning. */
|
|
143842
143932
|
created_at: string;
|
|
@@ -145999,6 +146089,12 @@ type Routes = {
|
|
|
145999
146089
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
146000
146090
|
message: string;
|
|
146001
146091
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
146092
|
+
} | {
|
|
146093
|
+
/** Date and time at which Seam created the warning. */
|
|
146094
|
+
created_at: string;
|
|
146095
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
146096
|
+
message: string;
|
|
146097
|
+
warning_code: 'acs_user_inactive';
|
|
146002
146098
|
} | {
|
|
146003
146099
|
/** Date and time at which Seam created the warning. */
|
|
146004
146100
|
created_at: string;
|
package/dist/index.cjs
CHANGED
|
@@ -4645,6 +4645,11 @@ var acs_users_salto_ks_user_not_subscribed = common_acs_user_warning.extend({
|
|
|
4645
4645
|
}).describe(
|
|
4646
4646
|
"Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) is not subscribed on Salto KS, so they cannot unlock doors or perform any actions. This occurs when the their access schedule hasn\u2019t started yet, if their access schedule has ended, if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed."
|
|
4647
4647
|
);
|
|
4648
|
+
var acs_user_inactive = common_acs_user_warning.extend({
|
|
4649
|
+
warning_code: zod.z.literal("acs_user_inactive")
|
|
4650
|
+
}).describe(
|
|
4651
|
+
"Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) exists but is not currently able to gain access\u2014for example, because their access schedule has not started yet or has ended, the access system has reached its limit for active users, or they have been unsubscribed or deactivated. Refer to the warning message for the provider-specific reason. This is distinct from `is_suspended`, which indicates the user has been explicitly blocked."
|
|
4652
|
+
);
|
|
4648
4653
|
var unknown_issue_with_acs_user = common_acs_user_warning.extend({
|
|
4649
4654
|
warning_code: zod.z.literal("unknown_issue_with_acs_user")
|
|
4650
4655
|
}).describe(
|
|
@@ -4658,12 +4663,14 @@ var latch_resident_user = common_acs_user_warning.extend({
|
|
|
4658
4663
|
zod.z.object({
|
|
4659
4664
|
being_deleted: acs_users_being_deleted.optional().nullable(),
|
|
4660
4665
|
salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable(),
|
|
4666
|
+
acs_user_inactive: acs_user_inactive.optional().nullable(),
|
|
4661
4667
|
unknown_issue_with_acs_user: unknown_issue_with_acs_user.optional().nullable(),
|
|
4662
4668
|
latch_resident_user: latch_resident_user.optional().nullable()
|
|
4663
4669
|
});
|
|
4664
4670
|
var acs_users_warnings = zod.z.discriminatedUnion("warning_code", [
|
|
4665
4671
|
acs_users_being_deleted,
|
|
4666
4672
|
acs_users_salto_ks_user_not_subscribed,
|
|
4673
|
+
acs_user_inactive,
|
|
4667
4674
|
unknown_issue_with_acs_user,
|
|
4668
4675
|
latch_resident_user
|
|
4669
4676
|
]).describe(
|
|
@@ -12611,6 +12618,26 @@ var openapi = {
|
|
|
12611
12618
|
required: ["created_at", "message", "warning_code"],
|
|
12612
12619
|
type: "object"
|
|
12613
12620
|
},
|
|
12621
|
+
{
|
|
12622
|
+
description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) exists but is not currently able to gain access\u2014for example, because their access schedule has not started yet or has ended, the access system has reached its limit for active users, or they have been unsubscribed or deactivated. Refer to the warning message for the provider-specific reason. This is distinct from `is_suspended`, which indicates the user has been explicitly blocked.",
|
|
12623
|
+
properties: {
|
|
12624
|
+
created_at: {
|
|
12625
|
+
description: "Date and time at which Seam created the warning.",
|
|
12626
|
+
format: "date-time",
|
|
12627
|
+
type: "string"
|
|
12628
|
+
},
|
|
12629
|
+
message: {
|
|
12630
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
12631
|
+
type: "string"
|
|
12632
|
+
},
|
|
12633
|
+
warning_code: {
|
|
12634
|
+
enum: ["acs_user_inactive"],
|
|
12635
|
+
type: "string"
|
|
12636
|
+
}
|
|
12637
|
+
},
|
|
12638
|
+
required: ["created_at", "message", "warning_code"],
|
|
12639
|
+
type: "object"
|
|
12640
|
+
},
|
|
12614
12641
|
{
|
|
12615
12642
|
description: "An unknown issue occurred while syncing the state of this [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.",
|
|
12616
12643
|
properties: {
|
|
@@ -36641,6 +36668,26 @@ var openapi = {
|
|
|
36641
36668
|
required: ["created_at", "message", "warning_code"],
|
|
36642
36669
|
type: "object"
|
|
36643
36670
|
},
|
|
36671
|
+
{
|
|
36672
|
+
description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) exists but is not currently able to gain access\u2014for example, because their access schedule has not started yet or has ended, the access system has reached its limit for active users, or they have been unsubscribed or deactivated. Refer to the warning message for the provider-specific reason. This is distinct from `is_suspended`, which indicates the user has been explicitly blocked.",
|
|
36673
|
+
properties: {
|
|
36674
|
+
created_at: {
|
|
36675
|
+
description: "Date and time at which Seam created the warning.",
|
|
36676
|
+
format: "date-time",
|
|
36677
|
+
type: "string"
|
|
36678
|
+
},
|
|
36679
|
+
message: {
|
|
36680
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
36681
|
+
type: "string"
|
|
36682
|
+
},
|
|
36683
|
+
warning_code: {
|
|
36684
|
+
enum: ["acs_user_inactive"],
|
|
36685
|
+
type: "string"
|
|
36686
|
+
}
|
|
36687
|
+
},
|
|
36688
|
+
required: ["created_at", "message", "warning_code"],
|
|
36689
|
+
type: "object"
|
|
36690
|
+
},
|
|
36644
36691
|
{
|
|
36645
36692
|
description: "An unknown issue occurred while syncing the state of this [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.",
|
|
36646
36693
|
properties: {
|