@seamapi/types 1.795.0 → 1.796.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 +53 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +156 -0
- package/dist/index.cjs +53 -4
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +26 -0
- package/lib/seam/connect/models/access-codes/pending-mutations.d.ts +45 -0
- package/lib/seam/connect/models/access-codes/pending-mutations.js +20 -1
- package/lib/seam/connect/models/access-codes/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +12 -12
- package/lib/seam/connect/models/batch.d.ts +36 -0
- package/lib/seam/connect/openapi.d.ts +31 -0
- package/lib/seam/connect/openapi.js +31 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +63 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/pending-mutations.ts +27 -1
- package/src/lib/seam/connect/openapi.ts +35 -0
- package/src/lib/seam/connect/route-types.ts +70 -0
package/dist/connect.d.cts
CHANGED
|
@@ -1500,6 +1500,22 @@ declare const access_code: z.ZodObject<{
|
|
|
1500
1500
|
}>, z.ZodObject<{
|
|
1501
1501
|
created_at: z.ZodString;
|
|
1502
1502
|
message: z.ZodString;
|
|
1503
|
+
} & {
|
|
1504
|
+
mutation_code: z.ZodLiteral<"deferring_creation">;
|
|
1505
|
+
scheduled_at: z.ZodString;
|
|
1506
|
+
}, "strip", z.ZodTypeAny, {
|
|
1507
|
+
message: string;
|
|
1508
|
+
created_at: string;
|
|
1509
|
+
mutation_code: "deferring_creation";
|
|
1510
|
+
scheduled_at: string;
|
|
1511
|
+
}, {
|
|
1512
|
+
message: string;
|
|
1513
|
+
created_at: string;
|
|
1514
|
+
mutation_code: "deferring_creation";
|
|
1515
|
+
scheduled_at: string;
|
|
1516
|
+
}>, z.ZodObject<{
|
|
1517
|
+
created_at: z.ZodString;
|
|
1518
|
+
message: z.ZodString;
|
|
1503
1519
|
} & {
|
|
1504
1520
|
mutation_code: z.ZodLiteral<"deleting">;
|
|
1505
1521
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1927,6 +1943,11 @@ declare const access_code: z.ZodObject<{
|
|
|
1927
1943
|
message: string;
|
|
1928
1944
|
created_at: string;
|
|
1929
1945
|
mutation_code: "creating";
|
|
1946
|
+
} | {
|
|
1947
|
+
message: string;
|
|
1948
|
+
created_at: string;
|
|
1949
|
+
mutation_code: "deferring_creation";
|
|
1950
|
+
scheduled_at: string;
|
|
1930
1951
|
} | {
|
|
1931
1952
|
message: string;
|
|
1932
1953
|
created_at: string;
|
|
@@ -2269,6 +2290,11 @@ declare const access_code: z.ZodObject<{
|
|
|
2269
2290
|
message: string;
|
|
2270
2291
|
created_at: string;
|
|
2271
2292
|
mutation_code: "creating";
|
|
2293
|
+
} | {
|
|
2294
|
+
message: string;
|
|
2295
|
+
created_at: string;
|
|
2296
|
+
mutation_code: "deferring_creation";
|
|
2297
|
+
scheduled_at: string;
|
|
2272
2298
|
} | {
|
|
2273
2299
|
message: string;
|
|
2274
2300
|
created_at: string;
|
|
@@ -35460,6 +35486,22 @@ declare const batch: z.ZodObject<{
|
|
|
35460
35486
|
}>, z.ZodObject<{
|
|
35461
35487
|
created_at: z.ZodString;
|
|
35462
35488
|
message: z.ZodString;
|
|
35489
|
+
} & {
|
|
35490
|
+
mutation_code: z.ZodLiteral<"deferring_creation">;
|
|
35491
|
+
scheduled_at: z.ZodString;
|
|
35492
|
+
}, "strip", z.ZodTypeAny, {
|
|
35493
|
+
message: string;
|
|
35494
|
+
created_at: string;
|
|
35495
|
+
mutation_code: "deferring_creation";
|
|
35496
|
+
scheduled_at: string;
|
|
35497
|
+
}, {
|
|
35498
|
+
message: string;
|
|
35499
|
+
created_at: string;
|
|
35500
|
+
mutation_code: "deferring_creation";
|
|
35501
|
+
scheduled_at: string;
|
|
35502
|
+
}>, z.ZodObject<{
|
|
35503
|
+
created_at: z.ZodString;
|
|
35504
|
+
message: z.ZodString;
|
|
35463
35505
|
} & {
|
|
35464
35506
|
mutation_code: z.ZodLiteral<"deleting">;
|
|
35465
35507
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -35887,6 +35929,11 @@ declare const batch: z.ZodObject<{
|
|
|
35887
35929
|
message: string;
|
|
35888
35930
|
created_at: string;
|
|
35889
35931
|
mutation_code: "creating";
|
|
35932
|
+
} | {
|
|
35933
|
+
message: string;
|
|
35934
|
+
created_at: string;
|
|
35935
|
+
mutation_code: "deferring_creation";
|
|
35936
|
+
scheduled_at: string;
|
|
35890
35937
|
} | {
|
|
35891
35938
|
message: string;
|
|
35892
35939
|
created_at: string;
|
|
@@ -36229,6 +36276,11 @@ declare const batch: z.ZodObject<{
|
|
|
36229
36276
|
message: string;
|
|
36230
36277
|
created_at: string;
|
|
36231
36278
|
mutation_code: "creating";
|
|
36279
|
+
} | {
|
|
36280
|
+
message: string;
|
|
36281
|
+
created_at: string;
|
|
36282
|
+
mutation_code: "deferring_creation";
|
|
36283
|
+
scheduled_at: string;
|
|
36232
36284
|
} | {
|
|
36233
36285
|
message: string;
|
|
36234
36286
|
created_at: string;
|
|
@@ -42492,6 +42544,11 @@ declare const batch: z.ZodObject<{
|
|
|
42492
42544
|
message: string;
|
|
42493
42545
|
created_at: string;
|
|
42494
42546
|
mutation_code: "creating";
|
|
42547
|
+
} | {
|
|
42548
|
+
message: string;
|
|
42549
|
+
created_at: string;
|
|
42550
|
+
mutation_code: "deferring_creation";
|
|
42551
|
+
scheduled_at: string;
|
|
42495
42552
|
} | {
|
|
42496
42553
|
message: string;
|
|
42497
42554
|
created_at: string;
|
|
@@ -47411,6 +47468,11 @@ declare const batch: z.ZodObject<{
|
|
|
47411
47468
|
message: string;
|
|
47412
47469
|
created_at: string;
|
|
47413
47470
|
mutation_code: "creating";
|
|
47471
|
+
} | {
|
|
47472
|
+
message: string;
|
|
47473
|
+
created_at: string;
|
|
47474
|
+
mutation_code: "deferring_creation";
|
|
47475
|
+
scheduled_at: string;
|
|
47414
47476
|
} | {
|
|
47415
47477
|
message: string;
|
|
47416
47478
|
created_at: string;
|
|
@@ -63532,6 +63594,34 @@ declare const _default: {
|
|
|
63532
63594
|
enum: string[];
|
|
63533
63595
|
type: string;
|
|
63534
63596
|
};
|
|
63597
|
+
scheduled_at?: never;
|
|
63598
|
+
from?: never;
|
|
63599
|
+
to?: never;
|
|
63600
|
+
};
|
|
63601
|
+
required: string[];
|
|
63602
|
+
type: string;
|
|
63603
|
+
} | {
|
|
63604
|
+
description: string;
|
|
63605
|
+
properties: {
|
|
63606
|
+
created_at: {
|
|
63607
|
+
description: string;
|
|
63608
|
+
format: string;
|
|
63609
|
+
type: string;
|
|
63610
|
+
};
|
|
63611
|
+
message: {
|
|
63612
|
+
description: string;
|
|
63613
|
+
type: string;
|
|
63614
|
+
};
|
|
63615
|
+
mutation_code: {
|
|
63616
|
+
description: string;
|
|
63617
|
+
enum: string[];
|
|
63618
|
+
type: string;
|
|
63619
|
+
};
|
|
63620
|
+
scheduled_at: {
|
|
63621
|
+
description: string;
|
|
63622
|
+
format: string;
|
|
63623
|
+
type: string;
|
|
63624
|
+
};
|
|
63535
63625
|
from?: never;
|
|
63536
63626
|
to?: never;
|
|
63537
63627
|
};
|
|
@@ -63584,6 +63674,7 @@ declare const _default: {
|
|
|
63584
63674
|
required: string[];
|
|
63585
63675
|
type: string;
|
|
63586
63676
|
};
|
|
63677
|
+
scheduled_at?: never;
|
|
63587
63678
|
};
|
|
63588
63679
|
required: string[];
|
|
63589
63680
|
type: string;
|
|
@@ -63634,6 +63725,7 @@ declare const _default: {
|
|
|
63634
63725
|
required: string[];
|
|
63635
63726
|
type: string;
|
|
63636
63727
|
};
|
|
63728
|
+
scheduled_at?: never;
|
|
63637
63729
|
};
|
|
63638
63730
|
required: string[];
|
|
63639
63731
|
type: string;
|
|
@@ -63696,6 +63788,7 @@ declare const _default: {
|
|
|
63696
63788
|
required: string[];
|
|
63697
63789
|
type: string;
|
|
63698
63790
|
};
|
|
63791
|
+
scheduled_at?: never;
|
|
63699
63792
|
};
|
|
63700
63793
|
required: string[];
|
|
63701
63794
|
type: string;
|
|
@@ -138695,6 +138788,15 @@ type Routes = {
|
|
|
138695
138788
|
message: string;
|
|
138696
138789
|
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
138697
138790
|
mutation_code: 'creating';
|
|
138791
|
+
} | {
|
|
138792
|
+
/** Date and time at which the mutation was created. */
|
|
138793
|
+
created_at: string;
|
|
138794
|
+
/** Detailed description of the mutation. */
|
|
138795
|
+
message: string;
|
|
138796
|
+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
|
|
138797
|
+
mutation_code: 'deferring_creation';
|
|
138798
|
+
/** Date and time at which Seam will attempt to program this access code on the device. */
|
|
138799
|
+
scheduled_at: string;
|
|
138698
138800
|
} | {
|
|
138699
138801
|
/** Date and time at which the mutation was created. */
|
|
138700
138802
|
created_at: string;
|
|
@@ -139314,6 +139416,15 @@ type Routes = {
|
|
|
139314
139416
|
message: string;
|
|
139315
139417
|
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
139316
139418
|
mutation_code: 'creating';
|
|
139419
|
+
} | {
|
|
139420
|
+
/** Date and time at which the mutation was created. */
|
|
139421
|
+
created_at: string;
|
|
139422
|
+
/** Detailed description of the mutation. */
|
|
139423
|
+
message: string;
|
|
139424
|
+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
|
|
139425
|
+
mutation_code: 'deferring_creation';
|
|
139426
|
+
/** Date and time at which Seam will attempt to program this access code on the device. */
|
|
139427
|
+
scheduled_at: string;
|
|
139317
139428
|
} | {
|
|
139318
139429
|
/** Date and time at which the mutation was created. */
|
|
139319
139430
|
created_at: string;
|
|
@@ -141281,6 +141392,15 @@ type Routes = {
|
|
|
141281
141392
|
message: string;
|
|
141282
141393
|
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
141283
141394
|
mutation_code: 'creating';
|
|
141395
|
+
} | {
|
|
141396
|
+
/** Date and time at which the mutation was created. */
|
|
141397
|
+
created_at: string;
|
|
141398
|
+
/** Detailed description of the mutation. */
|
|
141399
|
+
message: string;
|
|
141400
|
+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
|
|
141401
|
+
mutation_code: 'deferring_creation';
|
|
141402
|
+
/** Date and time at which Seam will attempt to program this access code on the device. */
|
|
141403
|
+
scheduled_at: string;
|
|
141284
141404
|
} | {
|
|
141285
141405
|
/** Date and time at which the mutation was created. */
|
|
141286
141406
|
created_at: string;
|
|
@@ -141948,6 +142068,15 @@ type Routes = {
|
|
|
141948
142068
|
message: string;
|
|
141949
142069
|
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
141950
142070
|
mutation_code: 'creating';
|
|
142071
|
+
} | {
|
|
142072
|
+
/** Date and time at which the mutation was created. */
|
|
142073
|
+
created_at: string;
|
|
142074
|
+
/** Detailed description of the mutation. */
|
|
142075
|
+
message: string;
|
|
142076
|
+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
|
|
142077
|
+
mutation_code: 'deferring_creation';
|
|
142078
|
+
/** Date and time at which Seam will attempt to program this access code on the device. */
|
|
142079
|
+
scheduled_at: string;
|
|
141951
142080
|
} | {
|
|
141952
142081
|
/** Date and time at which the mutation was created. */
|
|
141953
142082
|
created_at: string;
|
|
@@ -142558,6 +142687,15 @@ type Routes = {
|
|
|
142558
142687
|
message: string;
|
|
142559
142688
|
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
142560
142689
|
mutation_code: 'creating';
|
|
142690
|
+
} | {
|
|
142691
|
+
/** Date and time at which the mutation was created. */
|
|
142692
|
+
created_at: string;
|
|
142693
|
+
/** Detailed description of the mutation. */
|
|
142694
|
+
message: string;
|
|
142695
|
+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
|
|
142696
|
+
mutation_code: 'deferring_creation';
|
|
142697
|
+
/** Date and time at which Seam will attempt to program this access code on the device. */
|
|
142698
|
+
scheduled_at: string;
|
|
142561
142699
|
} | {
|
|
142562
142700
|
/** Date and time at which the mutation was created. */
|
|
142563
142701
|
created_at: string;
|
|
@@ -143145,6 +143283,15 @@ type Routes = {
|
|
|
143145
143283
|
message: string;
|
|
143146
143284
|
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
143147
143285
|
mutation_code: 'creating';
|
|
143286
|
+
} | {
|
|
143287
|
+
/** Date and time at which the mutation was created. */
|
|
143288
|
+
created_at: string;
|
|
143289
|
+
/** Detailed description of the mutation. */
|
|
143290
|
+
message: string;
|
|
143291
|
+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
|
|
143292
|
+
mutation_code: 'deferring_creation';
|
|
143293
|
+
/** Date and time at which Seam will attempt to program this access code on the device. */
|
|
143294
|
+
scheduled_at: string;
|
|
143148
143295
|
} | {
|
|
143149
143296
|
/** Date and time at which the mutation was created. */
|
|
143150
143297
|
created_at: string;
|
|
@@ -236894,6 +237041,15 @@ type Routes = {
|
|
|
236894
237041
|
message: string;
|
|
236895
237042
|
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
236896
237043
|
mutation_code: 'creating';
|
|
237044
|
+
} | {
|
|
237045
|
+
/** Date and time at which the mutation was created. */
|
|
237046
|
+
created_at: string;
|
|
237047
|
+
/** Detailed description of the mutation. */
|
|
237048
|
+
message: string;
|
|
237049
|
+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
|
|
237050
|
+
mutation_code: 'deferring_creation';
|
|
237051
|
+
/** Date and time at which Seam will attempt to program this access code on the device. */
|
|
237052
|
+
scheduled_at: string;
|
|
236897
237053
|
} | {
|
|
236898
237054
|
/** Date and time at which the mutation was created. */
|
|
236899
237055
|
created_at: string;
|
package/dist/index.cjs
CHANGED
|
@@ -2135,6 +2135,16 @@ var creating = common_pending_mutation.extend({
|
|
|
2135
2135
|
"Mutation code to indicate that Seam is in the process of setting an access code on the device."
|
|
2136
2136
|
)
|
|
2137
2137
|
}).describe("Seam is in the process of setting an access code on the device.");
|
|
2138
|
+
var deferring_creation = common_pending_mutation.extend({
|
|
2139
|
+
mutation_code: zod.z.literal("deferring_creation").describe(
|
|
2140
|
+
"Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device."
|
|
2141
|
+
),
|
|
2142
|
+
scheduled_at: zod.z.string().datetime().describe(
|
|
2143
|
+
"Date and time at which Seam will attempt to program this access code on the device."
|
|
2144
|
+
)
|
|
2145
|
+
}).describe(
|
|
2146
|
+
"Seam is waiting until closer to the access code's start time before programming it on the device."
|
|
2147
|
+
);
|
|
2138
2148
|
var deleting = common_pending_mutation.extend({
|
|
2139
2149
|
mutation_code: zod.z.literal("deleting").describe(
|
|
2140
2150
|
"Mutation code to indicate that Seam is in the process of removing an access code from the device."
|
|
@@ -2185,7 +2195,14 @@ var updating_time_frame = common_pending_mutation.extend({
|
|
|
2185
2195
|
);
|
|
2186
2196
|
var access_code_pending_mutations = zod.z.discriminatedUnion(
|
|
2187
2197
|
"mutation_code",
|
|
2188
|
-
[
|
|
2198
|
+
[
|
|
2199
|
+
creating,
|
|
2200
|
+
deferring_creation,
|
|
2201
|
+
deleting,
|
|
2202
|
+
updating_code,
|
|
2203
|
+
updating_name,
|
|
2204
|
+
updating_time_frame
|
|
2205
|
+
]
|
|
2189
2206
|
);
|
|
2190
2207
|
var internal_recreate_fields = zod.z.object({
|
|
2191
2208
|
must_be_recreated_on_device: zod.z.boolean().optional(),
|
|
@@ -2194,6 +2211,7 @@ var internal_recreate_fields = zod.z.object({
|
|
|
2194
2211
|
});
|
|
2195
2212
|
zod.z.object({
|
|
2196
2213
|
creating: creating.optional().nullable(),
|
|
2214
|
+
deferring_creation: deferring_creation.optional().nullable(),
|
|
2197
2215
|
deleting: deleting.optional().nullable(),
|
|
2198
2216
|
updating_code: updating_code.merge(internal_recreate_fields).optional().nullable(),
|
|
2199
2217
|
updating_name: updating_name.merge(internal_recreate_fields).optional().nullable(),
|
|
@@ -3906,7 +3924,7 @@ var deleting3 = common_pending_mutation5.extend({
|
|
|
3906
3924
|
}).describe(
|
|
3907
3925
|
"Seam is in the process of pushing a user deletion to the integrated access system."
|
|
3908
3926
|
);
|
|
3909
|
-
var
|
|
3927
|
+
var deferring_creation2 = common_pending_mutation5.extend({
|
|
3910
3928
|
mutation_code: zod.z.literal("deferring_creation").describe(
|
|
3911
3929
|
"Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time."
|
|
3912
3930
|
),
|
|
@@ -3977,7 +3995,7 @@ var acs_user_pending_mutations = zod.z.discriminatedUnion(
|
|
|
3977
3995
|
[
|
|
3978
3996
|
creating3,
|
|
3979
3997
|
deleting3,
|
|
3980
|
-
|
|
3998
|
+
deferring_creation2,
|
|
3981
3999
|
updating_user_information_mutation,
|
|
3982
4000
|
updating_access_schedule_mutation,
|
|
3983
4001
|
updating_suspension_state_mutation,
|
|
@@ -3988,7 +4006,7 @@ var acs_user_pending_mutations = zod.z.discriminatedUnion(
|
|
|
3988
4006
|
zod.z.object({
|
|
3989
4007
|
creating: creating3.optional().nullable(),
|
|
3990
4008
|
deleting: deleting3.optional().nullable(),
|
|
3991
|
-
deferring_creation:
|
|
4009
|
+
deferring_creation: deferring_creation2.optional().nullable(),
|
|
3992
4010
|
updating_access_schedule: updating_access_schedule_mutation.optional().nullable(),
|
|
3993
4011
|
updating_group_membership: zod.z.record(zod.z.string().uuid(), updating_group_membership_mutation).optional().nullable(),
|
|
3994
4012
|
deferring_group_membership_update: zod.z.record(zod.z.string().uuid(), deferring_group_membership_update_mutation).optional().nullable(),
|
|
@@ -7999,6 +8017,37 @@ var openapi_default = {
|
|
|
7999
8017
|
required: ["created_at", "message", "mutation_code"],
|
|
8000
8018
|
type: "object"
|
|
8001
8019
|
},
|
|
8020
|
+
{
|
|
8021
|
+
description: "Seam is waiting until closer to the access code's start time before programming it on the device.",
|
|
8022
|
+
properties: {
|
|
8023
|
+
created_at: {
|
|
8024
|
+
description: "Date and time at which the mutation was created.",
|
|
8025
|
+
format: "date-time",
|
|
8026
|
+
type: "string"
|
|
8027
|
+
},
|
|
8028
|
+
message: {
|
|
8029
|
+
description: "Detailed description of the mutation.",
|
|
8030
|
+
type: "string"
|
|
8031
|
+
},
|
|
8032
|
+
mutation_code: {
|
|
8033
|
+
description: "Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device.",
|
|
8034
|
+
enum: ["deferring_creation"],
|
|
8035
|
+
type: "string"
|
|
8036
|
+
},
|
|
8037
|
+
scheduled_at: {
|
|
8038
|
+
description: "Date and time at which Seam will attempt to program this access code on the device.",
|
|
8039
|
+
format: "date-time",
|
|
8040
|
+
type: "string"
|
|
8041
|
+
}
|
|
8042
|
+
},
|
|
8043
|
+
required: [
|
|
8044
|
+
"created_at",
|
|
8045
|
+
"message",
|
|
8046
|
+
"mutation_code",
|
|
8047
|
+
"scheduled_at"
|
|
8048
|
+
],
|
|
8049
|
+
type: "object"
|
|
8050
|
+
},
|
|
8002
8051
|
{
|
|
8003
8052
|
description: "Seam is in the process of removing an access code from the device.",
|
|
8004
8053
|
properties: {
|