@seamapi/types 1.793.0 → 1.794.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 +333 -38
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1335 -90
- package/dist/index.cjs +333 -38
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +236 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js +4 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/pending-mutations.d.ts +48 -0
- package/lib/seam/connect/models/access-codes/pending-mutations.js +20 -3
- package/lib/seam/connect/models/access-codes/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +46 -46
- package/lib/seam/connect/models/access-grants/access-method.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +4 -4
- package/lib/seam/connect/models/batch.d.ts +378 -60
- package/lib/seam/connect/openapi.d.ts +194 -0
- package/lib/seam/connect/openapi.js +219 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +497 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +6 -0
- package/src/lib/seam/connect/models/access-codes/pending-mutations.ts +21 -3
- package/src/lib/seam/connect/openapi.ts +236 -0
- package/src/lib/seam/connect/route-types.ts +539 -0
|
@@ -1889,6 +1889,77 @@ export type Routes = {
|
|
|
1889
1889
|
/** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */
|
|
1890
1890
|
is_overridable?: boolean | undefined;
|
|
1891
1891
|
} | null) | undefined;
|
|
1892
|
+
/** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */
|
|
1893
|
+
pending_mutations: ({
|
|
1894
|
+
/** Date and time at which the mutation was created. */
|
|
1895
|
+
created_at: string;
|
|
1896
|
+
/** Detailed description of the mutation. */
|
|
1897
|
+
message: string;
|
|
1898
|
+
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
1899
|
+
mutation_code: 'creating';
|
|
1900
|
+
} | {
|
|
1901
|
+
/** Date and time at which the mutation was created. */
|
|
1902
|
+
created_at: string;
|
|
1903
|
+
/** Detailed description of the mutation. */
|
|
1904
|
+
message: string;
|
|
1905
|
+
/** Mutation code to indicate that Seam is in the process of removing an access code from the device. */
|
|
1906
|
+
mutation_code: 'deleting';
|
|
1907
|
+
} | {
|
|
1908
|
+
/** Date and time at which the mutation was created. */
|
|
1909
|
+
created_at: string;
|
|
1910
|
+
/** Detailed description of the mutation. */
|
|
1911
|
+
message: string;
|
|
1912
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */
|
|
1913
|
+
mutation_code: 'updating_code';
|
|
1914
|
+
/** Previous code configuration. */
|
|
1915
|
+
from: {
|
|
1916
|
+
/** Previous PIN code. */
|
|
1917
|
+
code: string | null;
|
|
1918
|
+
};
|
|
1919
|
+
/** New code configuration. */
|
|
1920
|
+
to: {
|
|
1921
|
+
/** New PIN code. */
|
|
1922
|
+
code: string | null;
|
|
1923
|
+
};
|
|
1924
|
+
} | {
|
|
1925
|
+
/** Date and time at which the mutation was created. */
|
|
1926
|
+
created_at: string;
|
|
1927
|
+
/** Detailed description of the mutation. */
|
|
1928
|
+
message: string;
|
|
1929
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */
|
|
1930
|
+
mutation_code: 'updating_name';
|
|
1931
|
+
/** Previous name configuration. */
|
|
1932
|
+
from: {
|
|
1933
|
+
/** Previous access code name. */
|
|
1934
|
+
name: string | null;
|
|
1935
|
+
};
|
|
1936
|
+
/** New name configuration. */
|
|
1937
|
+
to: {
|
|
1938
|
+
/** New access code name. */
|
|
1939
|
+
name: string | null;
|
|
1940
|
+
};
|
|
1941
|
+
} | {
|
|
1942
|
+
/** Date and time at which the mutation was created. */
|
|
1943
|
+
created_at: string;
|
|
1944
|
+
/** Detailed description of the mutation. */
|
|
1945
|
+
message: string;
|
|
1946
|
+
/** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */
|
|
1947
|
+
mutation_code: 'updating_time_frame';
|
|
1948
|
+
/** Previous time frame configuration. */
|
|
1949
|
+
from: {
|
|
1950
|
+
/** Previous start time for the access code. */
|
|
1951
|
+
starts_at: string | null;
|
|
1952
|
+
/** Previous end time for the access code. */
|
|
1953
|
+
ends_at: string | null;
|
|
1954
|
+
};
|
|
1955
|
+
/** New time frame configuration. */
|
|
1956
|
+
to: {
|
|
1957
|
+
/** New start time for the access code. */
|
|
1958
|
+
starts_at: string | null;
|
|
1959
|
+
/** New end time for the access code. */
|
|
1960
|
+
ends_at: string | null;
|
|
1961
|
+
};
|
|
1962
|
+
})[];
|
|
1892
1963
|
};
|
|
1893
1964
|
};
|
|
1894
1965
|
maxDuration: undefined;
|
|
@@ -2437,6 +2508,77 @@ export type Routes = {
|
|
|
2437
2508
|
/** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */
|
|
2438
2509
|
is_overridable?: boolean | undefined;
|
|
2439
2510
|
} | null) | undefined;
|
|
2511
|
+
/** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */
|
|
2512
|
+
pending_mutations: ({
|
|
2513
|
+
/** Date and time at which the mutation was created. */
|
|
2514
|
+
created_at: string;
|
|
2515
|
+
/** Detailed description of the mutation. */
|
|
2516
|
+
message: string;
|
|
2517
|
+
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
2518
|
+
mutation_code: 'creating';
|
|
2519
|
+
} | {
|
|
2520
|
+
/** Date and time at which the mutation was created. */
|
|
2521
|
+
created_at: string;
|
|
2522
|
+
/** Detailed description of the mutation. */
|
|
2523
|
+
message: string;
|
|
2524
|
+
/** Mutation code to indicate that Seam is in the process of removing an access code from the device. */
|
|
2525
|
+
mutation_code: 'deleting';
|
|
2526
|
+
} | {
|
|
2527
|
+
/** Date and time at which the mutation was created. */
|
|
2528
|
+
created_at: string;
|
|
2529
|
+
/** Detailed description of the mutation. */
|
|
2530
|
+
message: string;
|
|
2531
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */
|
|
2532
|
+
mutation_code: 'updating_code';
|
|
2533
|
+
/** Previous code configuration. */
|
|
2534
|
+
from: {
|
|
2535
|
+
/** Previous PIN code. */
|
|
2536
|
+
code: string | null;
|
|
2537
|
+
};
|
|
2538
|
+
/** New code configuration. */
|
|
2539
|
+
to: {
|
|
2540
|
+
/** New PIN code. */
|
|
2541
|
+
code: string | null;
|
|
2542
|
+
};
|
|
2543
|
+
} | {
|
|
2544
|
+
/** Date and time at which the mutation was created. */
|
|
2545
|
+
created_at: string;
|
|
2546
|
+
/** Detailed description of the mutation. */
|
|
2547
|
+
message: string;
|
|
2548
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */
|
|
2549
|
+
mutation_code: 'updating_name';
|
|
2550
|
+
/** Previous name configuration. */
|
|
2551
|
+
from: {
|
|
2552
|
+
/** Previous access code name. */
|
|
2553
|
+
name: string | null;
|
|
2554
|
+
};
|
|
2555
|
+
/** New name configuration. */
|
|
2556
|
+
to: {
|
|
2557
|
+
/** New access code name. */
|
|
2558
|
+
name: string | null;
|
|
2559
|
+
};
|
|
2560
|
+
} | {
|
|
2561
|
+
/** Date and time at which the mutation was created. */
|
|
2562
|
+
created_at: string;
|
|
2563
|
+
/** Detailed description of the mutation. */
|
|
2564
|
+
message: string;
|
|
2565
|
+
/** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */
|
|
2566
|
+
mutation_code: 'updating_time_frame';
|
|
2567
|
+
/** Previous time frame configuration. */
|
|
2568
|
+
from: {
|
|
2569
|
+
/** Previous start time for the access code. */
|
|
2570
|
+
starts_at: string | null;
|
|
2571
|
+
/** Previous end time for the access code. */
|
|
2572
|
+
ends_at: string | null;
|
|
2573
|
+
};
|
|
2574
|
+
/** New time frame configuration. */
|
|
2575
|
+
to: {
|
|
2576
|
+
/** New start time for the access code. */
|
|
2577
|
+
starts_at: string | null;
|
|
2578
|
+
/** New end time for the access code. */
|
|
2579
|
+
ends_at: string | null;
|
|
2580
|
+
};
|
|
2581
|
+
})[];
|
|
2440
2582
|
}[];
|
|
2441
2583
|
};
|
|
2442
2584
|
maxDuration: undefined;
|
|
@@ -4333,6 +4475,77 @@ export type Routes = {
|
|
|
4333
4475
|
/** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */
|
|
4334
4476
|
is_overridable?: boolean | undefined;
|
|
4335
4477
|
} | null) | undefined;
|
|
4478
|
+
/** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */
|
|
4479
|
+
pending_mutations: ({
|
|
4480
|
+
/** Date and time at which the mutation was created. */
|
|
4481
|
+
created_at: string;
|
|
4482
|
+
/** Detailed description of the mutation. */
|
|
4483
|
+
message: string;
|
|
4484
|
+
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
4485
|
+
mutation_code: 'creating';
|
|
4486
|
+
} | {
|
|
4487
|
+
/** Date and time at which the mutation was created. */
|
|
4488
|
+
created_at: string;
|
|
4489
|
+
/** Detailed description of the mutation. */
|
|
4490
|
+
message: string;
|
|
4491
|
+
/** Mutation code to indicate that Seam is in the process of removing an access code from the device. */
|
|
4492
|
+
mutation_code: 'deleting';
|
|
4493
|
+
} | {
|
|
4494
|
+
/** Date and time at which the mutation was created. */
|
|
4495
|
+
created_at: string;
|
|
4496
|
+
/** Detailed description of the mutation. */
|
|
4497
|
+
message: string;
|
|
4498
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */
|
|
4499
|
+
mutation_code: 'updating_code';
|
|
4500
|
+
/** Previous code configuration. */
|
|
4501
|
+
from: {
|
|
4502
|
+
/** Previous PIN code. */
|
|
4503
|
+
code: string | null;
|
|
4504
|
+
};
|
|
4505
|
+
/** New code configuration. */
|
|
4506
|
+
to: {
|
|
4507
|
+
/** New PIN code. */
|
|
4508
|
+
code: string | null;
|
|
4509
|
+
};
|
|
4510
|
+
} | {
|
|
4511
|
+
/** Date and time at which the mutation was created. */
|
|
4512
|
+
created_at: string;
|
|
4513
|
+
/** Detailed description of the mutation. */
|
|
4514
|
+
message: string;
|
|
4515
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */
|
|
4516
|
+
mutation_code: 'updating_name';
|
|
4517
|
+
/** Previous name configuration. */
|
|
4518
|
+
from: {
|
|
4519
|
+
/** Previous access code name. */
|
|
4520
|
+
name: string | null;
|
|
4521
|
+
};
|
|
4522
|
+
/** New name configuration. */
|
|
4523
|
+
to: {
|
|
4524
|
+
/** New access code name. */
|
|
4525
|
+
name: string | null;
|
|
4526
|
+
};
|
|
4527
|
+
} | {
|
|
4528
|
+
/** Date and time at which the mutation was created. */
|
|
4529
|
+
created_at: string;
|
|
4530
|
+
/** Detailed description of the mutation. */
|
|
4531
|
+
message: string;
|
|
4532
|
+
/** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */
|
|
4533
|
+
mutation_code: 'updating_time_frame';
|
|
4534
|
+
/** Previous time frame configuration. */
|
|
4535
|
+
from: {
|
|
4536
|
+
/** Previous start time for the access code. */
|
|
4537
|
+
starts_at: string | null;
|
|
4538
|
+
/** Previous end time for the access code. */
|
|
4539
|
+
ends_at: string | null;
|
|
4540
|
+
};
|
|
4541
|
+
/** New time frame configuration. */
|
|
4542
|
+
to: {
|
|
4543
|
+
/** New start time for the access code. */
|
|
4544
|
+
starts_at: string | null;
|
|
4545
|
+
/** New end time for the access code. */
|
|
4546
|
+
ends_at: string | null;
|
|
4547
|
+
};
|
|
4548
|
+
})[];
|
|
4336
4549
|
};
|
|
4337
4550
|
};
|
|
4338
4551
|
maxDuration: undefined;
|
|
@@ -4929,6 +5142,77 @@ export type Routes = {
|
|
|
4929
5142
|
/** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */
|
|
4930
5143
|
is_overridable?: boolean | undefined;
|
|
4931
5144
|
} | null) | undefined;
|
|
5145
|
+
/** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */
|
|
5146
|
+
pending_mutations: ({
|
|
5147
|
+
/** Date and time at which the mutation was created. */
|
|
5148
|
+
created_at: string;
|
|
5149
|
+
/** Detailed description of the mutation. */
|
|
5150
|
+
message: string;
|
|
5151
|
+
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
5152
|
+
mutation_code: 'creating';
|
|
5153
|
+
} | {
|
|
5154
|
+
/** Date and time at which the mutation was created. */
|
|
5155
|
+
created_at: string;
|
|
5156
|
+
/** Detailed description of the mutation. */
|
|
5157
|
+
message: string;
|
|
5158
|
+
/** Mutation code to indicate that Seam is in the process of removing an access code from the device. */
|
|
5159
|
+
mutation_code: 'deleting';
|
|
5160
|
+
} | {
|
|
5161
|
+
/** Date and time at which the mutation was created. */
|
|
5162
|
+
created_at: string;
|
|
5163
|
+
/** Detailed description of the mutation. */
|
|
5164
|
+
message: string;
|
|
5165
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */
|
|
5166
|
+
mutation_code: 'updating_code';
|
|
5167
|
+
/** Previous code configuration. */
|
|
5168
|
+
from: {
|
|
5169
|
+
/** Previous PIN code. */
|
|
5170
|
+
code: string | null;
|
|
5171
|
+
};
|
|
5172
|
+
/** New code configuration. */
|
|
5173
|
+
to: {
|
|
5174
|
+
/** New PIN code. */
|
|
5175
|
+
code: string | null;
|
|
5176
|
+
};
|
|
5177
|
+
} | {
|
|
5178
|
+
/** Date and time at which the mutation was created. */
|
|
5179
|
+
created_at: string;
|
|
5180
|
+
/** Detailed description of the mutation. */
|
|
5181
|
+
message: string;
|
|
5182
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */
|
|
5183
|
+
mutation_code: 'updating_name';
|
|
5184
|
+
/** Previous name configuration. */
|
|
5185
|
+
from: {
|
|
5186
|
+
/** Previous access code name. */
|
|
5187
|
+
name: string | null;
|
|
5188
|
+
};
|
|
5189
|
+
/** New name configuration. */
|
|
5190
|
+
to: {
|
|
5191
|
+
/** New access code name. */
|
|
5192
|
+
name: string | null;
|
|
5193
|
+
};
|
|
5194
|
+
} | {
|
|
5195
|
+
/** Date and time at which the mutation was created. */
|
|
5196
|
+
created_at: string;
|
|
5197
|
+
/** Detailed description of the mutation. */
|
|
5198
|
+
message: string;
|
|
5199
|
+
/** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */
|
|
5200
|
+
mutation_code: 'updating_time_frame';
|
|
5201
|
+
/** Previous time frame configuration. */
|
|
5202
|
+
from: {
|
|
5203
|
+
/** Previous start time for the access code. */
|
|
5204
|
+
starts_at: string | null;
|
|
5205
|
+
/** Previous end time for the access code. */
|
|
5206
|
+
ends_at: string | null;
|
|
5207
|
+
};
|
|
5208
|
+
/** New time frame configuration. */
|
|
5209
|
+
to: {
|
|
5210
|
+
/** New start time for the access code. */
|
|
5211
|
+
starts_at: string | null;
|
|
5212
|
+
/** New end time for the access code. */
|
|
5213
|
+
ends_at: string | null;
|
|
5214
|
+
};
|
|
5215
|
+
})[];
|
|
4932
5216
|
}[];
|
|
4933
5217
|
/** Information about the current page of results. */
|
|
4934
5218
|
pagination: {
|
|
@@ -5468,6 +5752,77 @@ export type Routes = {
|
|
|
5468
5752
|
/** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */
|
|
5469
5753
|
is_overridable?: boolean | undefined;
|
|
5470
5754
|
} | null) | undefined;
|
|
5755
|
+
/** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */
|
|
5756
|
+
pending_mutations: ({
|
|
5757
|
+
/** Date and time at which the mutation was created. */
|
|
5758
|
+
created_at: string;
|
|
5759
|
+
/** Detailed description of the mutation. */
|
|
5760
|
+
message: string;
|
|
5761
|
+
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
5762
|
+
mutation_code: 'creating';
|
|
5763
|
+
} | {
|
|
5764
|
+
/** Date and time at which the mutation was created. */
|
|
5765
|
+
created_at: string;
|
|
5766
|
+
/** Detailed description of the mutation. */
|
|
5767
|
+
message: string;
|
|
5768
|
+
/** Mutation code to indicate that Seam is in the process of removing an access code from the device. */
|
|
5769
|
+
mutation_code: 'deleting';
|
|
5770
|
+
} | {
|
|
5771
|
+
/** Date and time at which the mutation was created. */
|
|
5772
|
+
created_at: string;
|
|
5773
|
+
/** Detailed description of the mutation. */
|
|
5774
|
+
message: string;
|
|
5775
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */
|
|
5776
|
+
mutation_code: 'updating_code';
|
|
5777
|
+
/** Previous code configuration. */
|
|
5778
|
+
from: {
|
|
5779
|
+
/** Previous PIN code. */
|
|
5780
|
+
code: string | null;
|
|
5781
|
+
};
|
|
5782
|
+
/** New code configuration. */
|
|
5783
|
+
to: {
|
|
5784
|
+
/** New PIN code. */
|
|
5785
|
+
code: string | null;
|
|
5786
|
+
};
|
|
5787
|
+
} | {
|
|
5788
|
+
/** Date and time at which the mutation was created. */
|
|
5789
|
+
created_at: string;
|
|
5790
|
+
/** Detailed description of the mutation. */
|
|
5791
|
+
message: string;
|
|
5792
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */
|
|
5793
|
+
mutation_code: 'updating_name';
|
|
5794
|
+
/** Previous name configuration. */
|
|
5795
|
+
from: {
|
|
5796
|
+
/** Previous access code name. */
|
|
5797
|
+
name: string | null;
|
|
5798
|
+
};
|
|
5799
|
+
/** New name configuration. */
|
|
5800
|
+
to: {
|
|
5801
|
+
/** New access code name. */
|
|
5802
|
+
name: string | null;
|
|
5803
|
+
};
|
|
5804
|
+
} | {
|
|
5805
|
+
/** Date and time at which the mutation was created. */
|
|
5806
|
+
created_at: string;
|
|
5807
|
+
/** Detailed description of the mutation. */
|
|
5808
|
+
message: string;
|
|
5809
|
+
/** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */
|
|
5810
|
+
mutation_code: 'updating_time_frame';
|
|
5811
|
+
/** Previous time frame configuration. */
|
|
5812
|
+
from: {
|
|
5813
|
+
/** Previous start time for the access code. */
|
|
5814
|
+
starts_at: string | null;
|
|
5815
|
+
/** Previous end time for the access code. */
|
|
5816
|
+
ends_at: string | null;
|
|
5817
|
+
};
|
|
5818
|
+
/** New time frame configuration. */
|
|
5819
|
+
to: {
|
|
5820
|
+
/** New start time for the access code. */
|
|
5821
|
+
starts_at: string | null;
|
|
5822
|
+
/** New end time for the access code. */
|
|
5823
|
+
ends_at: string | null;
|
|
5824
|
+
};
|
|
5825
|
+
})[];
|
|
5471
5826
|
};
|
|
5472
5827
|
/** Represents a smart lock [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).
|
|
5473
5828
|
|
|
@@ -5984,6 +6339,77 @@ export type Routes = {
|
|
|
5984
6339
|
/** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */
|
|
5985
6340
|
is_overridable?: boolean | undefined;
|
|
5986
6341
|
} | null) | undefined;
|
|
6342
|
+
/** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */
|
|
6343
|
+
pending_mutations: ({
|
|
6344
|
+
/** Date and time at which the mutation was created. */
|
|
6345
|
+
created_at: string;
|
|
6346
|
+
/** Detailed description of the mutation. */
|
|
6347
|
+
message: string;
|
|
6348
|
+
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
6349
|
+
mutation_code: 'creating';
|
|
6350
|
+
} | {
|
|
6351
|
+
/** Date and time at which the mutation was created. */
|
|
6352
|
+
created_at: string;
|
|
6353
|
+
/** Detailed description of the mutation. */
|
|
6354
|
+
message: string;
|
|
6355
|
+
/** Mutation code to indicate that Seam is in the process of removing an access code from the device. */
|
|
6356
|
+
mutation_code: 'deleting';
|
|
6357
|
+
} | {
|
|
6358
|
+
/** Date and time at which the mutation was created. */
|
|
6359
|
+
created_at: string;
|
|
6360
|
+
/** Detailed description of the mutation. */
|
|
6361
|
+
message: string;
|
|
6362
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */
|
|
6363
|
+
mutation_code: 'updating_code';
|
|
6364
|
+
/** Previous code configuration. */
|
|
6365
|
+
from: {
|
|
6366
|
+
/** Previous PIN code. */
|
|
6367
|
+
code: string | null;
|
|
6368
|
+
};
|
|
6369
|
+
/** New code configuration. */
|
|
6370
|
+
to: {
|
|
6371
|
+
/** New PIN code. */
|
|
6372
|
+
code: string | null;
|
|
6373
|
+
};
|
|
6374
|
+
} | {
|
|
6375
|
+
/** Date and time at which the mutation was created. */
|
|
6376
|
+
created_at: string;
|
|
6377
|
+
/** Detailed description of the mutation. */
|
|
6378
|
+
message: string;
|
|
6379
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */
|
|
6380
|
+
mutation_code: 'updating_name';
|
|
6381
|
+
/** Previous name configuration. */
|
|
6382
|
+
from: {
|
|
6383
|
+
/** Previous access code name. */
|
|
6384
|
+
name: string | null;
|
|
6385
|
+
};
|
|
6386
|
+
/** New name configuration. */
|
|
6387
|
+
to: {
|
|
6388
|
+
/** New access code name. */
|
|
6389
|
+
name: string | null;
|
|
6390
|
+
};
|
|
6391
|
+
} | {
|
|
6392
|
+
/** Date and time at which the mutation was created. */
|
|
6393
|
+
created_at: string;
|
|
6394
|
+
/** Detailed description of the mutation. */
|
|
6395
|
+
message: string;
|
|
6396
|
+
/** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */
|
|
6397
|
+
mutation_code: 'updating_time_frame';
|
|
6398
|
+
/** Previous time frame configuration. */
|
|
6399
|
+
from: {
|
|
6400
|
+
/** Previous start time for the access code. */
|
|
6401
|
+
starts_at: string | null;
|
|
6402
|
+
/** Previous end time for the access code. */
|
|
6403
|
+
ends_at: string | null;
|
|
6404
|
+
};
|
|
6405
|
+
/** New time frame configuration. */
|
|
6406
|
+
to: {
|
|
6407
|
+
/** New start time for the access code. */
|
|
6408
|
+
starts_at: string | null;
|
|
6409
|
+
/** New end time for the access code. */
|
|
6410
|
+
ends_at: string | null;
|
|
6411
|
+
};
|
|
6412
|
+
})[];
|
|
5987
6413
|
};
|
|
5988
6414
|
};
|
|
5989
6415
|
maxDuration: undefined;
|
|
@@ -99662,6 +100088,77 @@ export type Routes = {
|
|
|
99662
100088
|
/** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */
|
|
99663
100089
|
is_overridable?: boolean | undefined;
|
|
99664
100090
|
} | null) | undefined;
|
|
100091
|
+
/** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */
|
|
100092
|
+
pending_mutations: ({
|
|
100093
|
+
/** Date and time at which the mutation was created. */
|
|
100094
|
+
created_at: string;
|
|
100095
|
+
/** Detailed description of the mutation. */
|
|
100096
|
+
message: string;
|
|
100097
|
+
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
|
|
100098
|
+
mutation_code: 'creating';
|
|
100099
|
+
} | {
|
|
100100
|
+
/** Date and time at which the mutation was created. */
|
|
100101
|
+
created_at: string;
|
|
100102
|
+
/** Detailed description of the mutation. */
|
|
100103
|
+
message: string;
|
|
100104
|
+
/** Mutation code to indicate that Seam is in the process of removing an access code from the device. */
|
|
100105
|
+
mutation_code: 'deleting';
|
|
100106
|
+
} | {
|
|
100107
|
+
/** Date and time at which the mutation was created. */
|
|
100108
|
+
created_at: string;
|
|
100109
|
+
/** Detailed description of the mutation. */
|
|
100110
|
+
message: string;
|
|
100111
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */
|
|
100112
|
+
mutation_code: 'updating_code';
|
|
100113
|
+
/** Previous code configuration. */
|
|
100114
|
+
from: {
|
|
100115
|
+
/** Previous PIN code. */
|
|
100116
|
+
code: string | null;
|
|
100117
|
+
};
|
|
100118
|
+
/** New code configuration. */
|
|
100119
|
+
to: {
|
|
100120
|
+
/** New PIN code. */
|
|
100121
|
+
code: string | null;
|
|
100122
|
+
};
|
|
100123
|
+
} | {
|
|
100124
|
+
/** Date and time at which the mutation was created. */
|
|
100125
|
+
created_at: string;
|
|
100126
|
+
/** Detailed description of the mutation. */
|
|
100127
|
+
message: string;
|
|
100128
|
+
/** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */
|
|
100129
|
+
mutation_code: 'updating_name';
|
|
100130
|
+
/** Previous name configuration. */
|
|
100131
|
+
from: {
|
|
100132
|
+
/** Previous access code name. */
|
|
100133
|
+
name: string | null;
|
|
100134
|
+
};
|
|
100135
|
+
/** New name configuration. */
|
|
100136
|
+
to: {
|
|
100137
|
+
/** New access code name. */
|
|
100138
|
+
name: string | null;
|
|
100139
|
+
};
|
|
100140
|
+
} | {
|
|
100141
|
+
/** Date and time at which the mutation was created. */
|
|
100142
|
+
created_at: string;
|
|
100143
|
+
/** Detailed description of the mutation. */
|
|
100144
|
+
message: string;
|
|
100145
|
+
/** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */
|
|
100146
|
+
mutation_code: 'updating_time_frame';
|
|
100147
|
+
/** Previous time frame configuration. */
|
|
100148
|
+
from: {
|
|
100149
|
+
/** Previous start time for the access code. */
|
|
100150
|
+
starts_at: string | null;
|
|
100151
|
+
/** Previous end time for the access code. */
|
|
100152
|
+
ends_at: string | null;
|
|
100153
|
+
};
|
|
100154
|
+
/** New time frame configuration. */
|
|
100155
|
+
to: {
|
|
100156
|
+
/** New start time for the access code. */
|
|
100157
|
+
starts_at: string | null;
|
|
100158
|
+
/** New end time for the access code. */
|
|
100159
|
+
ends_at: string | null;
|
|
100160
|
+
};
|
|
100161
|
+
})[];
|
|
99665
100162
|
}[] | undefined;
|
|
99666
100163
|
thermostat_daily_programs?: {
|
|
99667
100164
|
/** ID of the thermostat daily program. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
3
|
import { device_and_connected_account_error_options } from '../devices/index.js'
|
|
4
|
+
import { access_code_pending_mutations } from './pending-mutations.js'
|
|
4
5
|
|
|
5
6
|
const common_access_code_error = z.object({
|
|
6
7
|
message: z
|
|
@@ -714,6 +715,11 @@ export const access_code = z.object({
|
|
|
714
715
|
.describe(
|
|
715
716
|
'Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices.',
|
|
716
717
|
),
|
|
718
|
+
pending_mutations: z
|
|
719
|
+
.array(access_code_pending_mutations)
|
|
720
|
+
.describe(
|
|
721
|
+
'Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device.',
|
|
722
|
+
),
|
|
717
723
|
}).describe(`
|
|
718
724
|
---
|
|
719
725
|
route_path: /access_codes
|
|
@@ -123,12 +123,30 @@ export type AccessCodePendingMutation = z.infer<
|
|
|
123
123
|
typeof access_code_pending_mutations
|
|
124
124
|
>
|
|
125
125
|
|
|
126
|
+
// Internal fields stored in the DB but stripped from public API responses.
|
|
127
|
+
// Used to track the delete+recreate flow for providers that don't support
|
|
128
|
+
// in-place updates (e.g. Schlage, August).
|
|
129
|
+
const internal_recreate_fields = z.object({
|
|
130
|
+
must_be_recreated_on_device: z.boolean().optional(),
|
|
131
|
+
is_being_removed: z.boolean().optional(),
|
|
132
|
+
is_being_created: z.boolean().optional(),
|
|
133
|
+
})
|
|
134
|
+
|
|
126
135
|
const _access_code_pending_mutations_map = z.object({
|
|
127
136
|
creating: creating.optional().nullable(),
|
|
128
137
|
deleting: deleting.optional().nullable(),
|
|
129
|
-
updating_code: updating_code
|
|
130
|
-
|
|
131
|
-
|
|
138
|
+
updating_code: updating_code
|
|
139
|
+
.merge(internal_recreate_fields)
|
|
140
|
+
.optional()
|
|
141
|
+
.nullable(),
|
|
142
|
+
updating_name: updating_name
|
|
143
|
+
.merge(internal_recreate_fields)
|
|
144
|
+
.optional()
|
|
145
|
+
.nullable(),
|
|
146
|
+
updating_time_frame: updating_time_frame
|
|
147
|
+
.merge(internal_recreate_fields)
|
|
148
|
+
.optional()
|
|
149
|
+
.nullable(),
|
|
132
150
|
})
|
|
133
151
|
|
|
134
152
|
export type AccessCodePendingMutationsMap = z.infer<
|