@seamapi/http 1.41.0 → 1.43.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 +332 -41
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +131 -143
- package/lib/seam/connect/resolve-action-attempt.d.ts +32 -168
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +12 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js +9 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +0 -12
- package/lib/seam/connect/routes/acs/encoders/encoders.js +0 -9
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
- package/lib/seam/connect/routes/locks/simulate/simulate.js +0 -9
- package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.d.ts +34 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.js +102 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.d.ts +60 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js +126 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/v1.d.ts +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js +8 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +12 -6
- package/lib/seam/connect/routes/seam-http-endpoints.js +49 -13
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +38 -0
- package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +0 -39
- package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +0 -15
- package/src/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.ts +215 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/automations/automations.ts +303 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/automations/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +2 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +16 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +128 -31
- package/src/lib/version.ts +1 -1
|
@@ -111,6 +111,9 @@ import {
|
|
|
111
111
|
type AccessMethodsDeleteOptions,
|
|
112
112
|
type AccessMethodsDeleteParameters,
|
|
113
113
|
type AccessMethodsDeleteRequest,
|
|
114
|
+
type AccessMethodsEncodeOptions,
|
|
115
|
+
type AccessMethodsEncodeParameters,
|
|
116
|
+
type AccessMethodsEncodeRequest,
|
|
114
117
|
type AccessMethodsGetOptions,
|
|
115
118
|
type AccessMethodsGetParameters,
|
|
116
119
|
type AccessMethodsGetRequest,
|
|
@@ -201,9 +204,6 @@ import {
|
|
|
201
204
|
SeamHttpAcsCredentialsUnmanaged,
|
|
202
205
|
} from './acs/credentials/unmanaged/index.js'
|
|
203
206
|
import {
|
|
204
|
-
type AcsEncodersEncodeAccessMethodOptions,
|
|
205
|
-
type AcsEncodersEncodeAccessMethodParameters,
|
|
206
|
-
type AcsEncodersEncodeAccessMethodRequest,
|
|
207
207
|
type AcsEncodersEncodeCredentialOptions,
|
|
208
208
|
type AcsEncodersEncodeCredentialParameters,
|
|
209
209
|
type AcsEncodersEncodeCredentialRequest,
|
|
@@ -521,6 +521,24 @@ import {
|
|
|
521
521
|
type PhonesSimulateCreateSandboxPhoneRequest,
|
|
522
522
|
SeamHttpPhonesSimulate,
|
|
523
523
|
} from './phones/simulate/index.js'
|
|
524
|
+
import {
|
|
525
|
+
type SeamCustomerV1AutomationRunsListOptions,
|
|
526
|
+
type SeamCustomerV1AutomationRunsListParameters,
|
|
527
|
+
type SeamCustomerV1AutomationRunsListRequest,
|
|
528
|
+
SeamHttpSeamCustomerV1AutomationRuns,
|
|
529
|
+
} from './seam/customer/v1/automation-runs/index.js'
|
|
530
|
+
import {
|
|
531
|
+
type SeamCustomerV1AutomationsDeleteOptions,
|
|
532
|
+
type SeamCustomerV1AutomationsDeleteParameters,
|
|
533
|
+
type SeamCustomerV1AutomationsDeleteRequest,
|
|
534
|
+
type SeamCustomerV1AutomationsGetOptions,
|
|
535
|
+
type SeamCustomerV1AutomationsGetParameters,
|
|
536
|
+
type SeamCustomerV1AutomationsGetRequest,
|
|
537
|
+
type SeamCustomerV1AutomationsUpdateOptions,
|
|
538
|
+
type SeamCustomerV1AutomationsUpdateParameters,
|
|
539
|
+
type SeamCustomerV1AutomationsUpdateRequest,
|
|
540
|
+
SeamHttpSeamCustomerV1Automations,
|
|
541
|
+
} from './seam/customer/v1/automations/index.js'
|
|
524
542
|
import {
|
|
525
543
|
type SeamCustomerV1PortalsGetOptions,
|
|
526
544
|
type SeamCustomerV1PortalsGetParameters,
|
|
@@ -1237,6 +1255,19 @@ export class SeamHttpEndpoints {
|
|
|
1237
1255
|
}
|
|
1238
1256
|
}
|
|
1239
1257
|
|
|
1258
|
+
get ['/access_methods/encode'](): (
|
|
1259
|
+
parameters?: AccessMethodsEncodeParameters,
|
|
1260
|
+
options?: AccessMethodsEncodeOptions,
|
|
1261
|
+
) => AccessMethodsEncodeRequest {
|
|
1262
|
+
const { client, defaults } = this
|
|
1263
|
+
return function accessMethodsEncode(
|
|
1264
|
+
...args: Parameters<SeamHttpAccessMethods['encode']>
|
|
1265
|
+
): ReturnType<SeamHttpAccessMethods['encode']> {
|
|
1266
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults)
|
|
1267
|
+
return seam.encode(...args)
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1240
1271
|
get ['/access_methods/get'](): (
|
|
1241
1272
|
parameters?: AccessMethodsGetParameters,
|
|
1242
1273
|
options?: AccessMethodsGetOptions,
|
|
@@ -1576,19 +1607,6 @@ export class SeamHttpEndpoints {
|
|
|
1576
1607
|
}
|
|
1577
1608
|
}
|
|
1578
1609
|
|
|
1579
|
-
get ['/acs/encoders/encode_access_method'](): (
|
|
1580
|
-
parameters?: AcsEncodersEncodeAccessMethodParameters,
|
|
1581
|
-
options?: AcsEncodersEncodeAccessMethodOptions,
|
|
1582
|
-
) => AcsEncodersEncodeAccessMethodRequest {
|
|
1583
|
-
const { client, defaults } = this
|
|
1584
|
-
return function acsEncodersEncodeAccessMethod(
|
|
1585
|
-
...args: Parameters<SeamHttpAcsEncoders['encodeAccessMethod']>
|
|
1586
|
-
): ReturnType<SeamHttpAcsEncoders['encodeAccessMethod']> {
|
|
1587
|
-
const seam = SeamHttpAcsEncoders.fromClient(client, defaults)
|
|
1588
|
-
return seam.encodeAccessMethod(...args)
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
1610
|
get ['/acs/encoders/encode_credential'](): (
|
|
1593
1611
|
parameters?: AcsEncodersEncodeCredentialParameters,
|
|
1594
1612
|
options?: AcsEncodersEncodeCredentialOptions,
|
|
@@ -2506,11 +2524,6 @@ export class SeamHttpEndpoints {
|
|
|
2506
2524
|
options?: LocksSimulateKeypadCodeEntryOptions,
|
|
2507
2525
|
) => LocksSimulateKeypadCodeEntryRequest {
|
|
2508
2526
|
const { client, defaults } = this
|
|
2509
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2510
|
-
throw new Error(
|
|
2511
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2512
|
-
)
|
|
2513
|
-
}
|
|
2514
2527
|
return function locksSimulateKeypadCodeEntry(
|
|
2515
2528
|
...args: Parameters<SeamHttpLocksSimulate['keypadCodeEntry']>
|
|
2516
2529
|
): ReturnType<SeamHttpLocksSimulate['keypadCodeEntry']> {
|
|
@@ -2524,11 +2537,6 @@ export class SeamHttpEndpoints {
|
|
|
2524
2537
|
options?: LocksSimulateManualLockViaKeypadOptions,
|
|
2525
2538
|
) => LocksSimulateManualLockViaKeypadRequest {
|
|
2526
2539
|
const { client, defaults } = this
|
|
2527
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2528
|
-
throw new Error(
|
|
2529
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2530
|
-
)
|
|
2531
|
-
}
|
|
2532
2540
|
return function locksSimulateManualLockViaKeypad(
|
|
2533
2541
|
...args: Parameters<SeamHttpLocksSimulate['manualLockViaKeypad']>
|
|
2534
2542
|
): ReturnType<SeamHttpLocksSimulate['manualLockViaKeypad']> {
|
|
@@ -2731,6 +2739,90 @@ export class SeamHttpEndpoints {
|
|
|
2731
2739
|
}
|
|
2732
2740
|
}
|
|
2733
2741
|
|
|
2742
|
+
get ['/seam/customer/v1/automation_runs/list'](): (
|
|
2743
|
+
parameters?: SeamCustomerV1AutomationRunsListParameters,
|
|
2744
|
+
options?: SeamCustomerV1AutomationRunsListOptions,
|
|
2745
|
+
) => SeamCustomerV1AutomationRunsListRequest {
|
|
2746
|
+
const { client, defaults } = this
|
|
2747
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2748
|
+
throw new Error(
|
|
2749
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2750
|
+
)
|
|
2751
|
+
}
|
|
2752
|
+
return function seamCustomerV1AutomationRunsList(
|
|
2753
|
+
...args: Parameters<SeamHttpSeamCustomerV1AutomationRuns['list']>
|
|
2754
|
+
): ReturnType<SeamHttpSeamCustomerV1AutomationRuns['list']> {
|
|
2755
|
+
const seam = SeamHttpSeamCustomerV1AutomationRuns.fromClient(
|
|
2756
|
+
client,
|
|
2757
|
+
defaults,
|
|
2758
|
+
)
|
|
2759
|
+
return seam.list(...args)
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
get ['/seam/customer/v1/automations/delete'](): (
|
|
2764
|
+
parameters?: SeamCustomerV1AutomationsDeleteParameters,
|
|
2765
|
+
options?: SeamCustomerV1AutomationsDeleteOptions,
|
|
2766
|
+
) => SeamCustomerV1AutomationsDeleteRequest {
|
|
2767
|
+
const { client, defaults } = this
|
|
2768
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2769
|
+
throw new Error(
|
|
2770
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2771
|
+
)
|
|
2772
|
+
}
|
|
2773
|
+
return function seamCustomerV1AutomationsDelete(
|
|
2774
|
+
...args: Parameters<SeamHttpSeamCustomerV1Automations['delete']>
|
|
2775
|
+
): ReturnType<SeamHttpSeamCustomerV1Automations['delete']> {
|
|
2776
|
+
const seam = SeamHttpSeamCustomerV1Automations.fromClient(
|
|
2777
|
+
client,
|
|
2778
|
+
defaults,
|
|
2779
|
+
)
|
|
2780
|
+
return seam.delete(...args)
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
get ['/seam/customer/v1/automations/get'](): (
|
|
2785
|
+
parameters?: SeamCustomerV1AutomationsGetParameters,
|
|
2786
|
+
options?: SeamCustomerV1AutomationsGetOptions,
|
|
2787
|
+
) => SeamCustomerV1AutomationsGetRequest {
|
|
2788
|
+
const { client, defaults } = this
|
|
2789
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2790
|
+
throw new Error(
|
|
2791
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2792
|
+
)
|
|
2793
|
+
}
|
|
2794
|
+
return function seamCustomerV1AutomationsGet(
|
|
2795
|
+
...args: Parameters<SeamHttpSeamCustomerV1Automations['get']>
|
|
2796
|
+
): ReturnType<SeamHttpSeamCustomerV1Automations['get']> {
|
|
2797
|
+
const seam = SeamHttpSeamCustomerV1Automations.fromClient(
|
|
2798
|
+
client,
|
|
2799
|
+
defaults,
|
|
2800
|
+
)
|
|
2801
|
+
return seam.get(...args)
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2805
|
+
get ['/seam/customer/v1/automations/update'](): (
|
|
2806
|
+
parameters?: SeamCustomerV1AutomationsUpdateParameters,
|
|
2807
|
+
options?: SeamCustomerV1AutomationsUpdateOptions,
|
|
2808
|
+
) => SeamCustomerV1AutomationsUpdateRequest {
|
|
2809
|
+
const { client, defaults } = this
|
|
2810
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2811
|
+
throw new Error(
|
|
2812
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2813
|
+
)
|
|
2814
|
+
}
|
|
2815
|
+
return function seamCustomerV1AutomationsUpdate(
|
|
2816
|
+
...args: Parameters<SeamHttpSeamCustomerV1Automations['update']>
|
|
2817
|
+
): ReturnType<SeamHttpSeamCustomerV1Automations['update']> {
|
|
2818
|
+
const seam = SeamHttpSeamCustomerV1Automations.fromClient(
|
|
2819
|
+
client,
|
|
2820
|
+
defaults,
|
|
2821
|
+
)
|
|
2822
|
+
return seam.update(...args)
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2734
2826
|
get ['/seam/customer/v1/portals/get'](): (
|
|
2735
2827
|
parameters?: SeamCustomerV1PortalsGetParameters,
|
|
2736
2828
|
options?: SeamCustomerV1PortalsGetOptions,
|
|
@@ -3985,10 +4077,8 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
3985
4077
|
| '/access_codes/list'
|
|
3986
4078
|
| '/access_codes/unmanaged/get'
|
|
3987
4079
|
| '/access_codes/unmanaged/list'
|
|
3988
|
-
| '/access_grants/delete'
|
|
3989
4080
|
| '/access_grants/get'
|
|
3990
4081
|
| '/access_grants/list'
|
|
3991
|
-
| '/access_methods/delete'
|
|
3992
4082
|
| '/access_methods/get'
|
|
3993
4083
|
| '/access_methods/list'
|
|
3994
4084
|
| '/acs/access_groups/get'
|
|
@@ -4042,6 +4132,8 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4042
4132
|
| '/noise_sensors/noise_thresholds/list'
|
|
4043
4133
|
| '/phones/get'
|
|
4044
4134
|
| '/phones/list'
|
|
4135
|
+
| '/seam/customer/v1/automation_runs/list'
|
|
4136
|
+
| '/seam/customer/v1/automations/get'
|
|
4045
4137
|
| '/seam/customer/v1/portals/get'
|
|
4046
4138
|
| '/seam/partner/v1/building_blocks/spaces/auto_map'
|
|
4047
4139
|
| '/spaces/get'
|
|
@@ -4050,10 +4142,8 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4050
4142
|
| '/thermostats/list'
|
|
4051
4143
|
| '/thermostats/schedules/get'
|
|
4052
4144
|
| '/thermostats/schedules/list'
|
|
4053
|
-
| '/unstable_access_grants/delete'
|
|
4054
4145
|
| '/unstable_access_grants/get'
|
|
4055
4146
|
| '/unstable_access_grants/list'
|
|
4056
|
-
| '/unstable_access_methods/delete'
|
|
4057
4147
|
| '/unstable_access_methods/get'
|
|
4058
4148
|
| '/unstable_access_methods/list'
|
|
4059
4149
|
| '/unstable_locations/get'
|
|
@@ -4077,6 +4167,7 @@ export type SeamHttpEndpointPaginatedQueryPaths =
|
|
|
4077
4167
|
| '/connect_webviews/list'
|
|
4078
4168
|
| '/connected_accounts/list'
|
|
4079
4169
|
| '/devices/list'
|
|
4170
|
+
| '/seam/customer/v1/automation_runs/list'
|
|
4080
4171
|
|
|
4081
4172
|
export type SeamHttpEndpointMutationPaths =
|
|
4082
4173
|
| '/access_codes/create'
|
|
@@ -4091,7 +4182,10 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4091
4182
|
| '/access_codes/unmanaged/delete'
|
|
4092
4183
|
| '/access_codes/unmanaged/update'
|
|
4093
4184
|
| '/access_grants/create'
|
|
4185
|
+
| '/access_grants/delete'
|
|
4094
4186
|
| '/access_grants/update'
|
|
4187
|
+
| '/access_methods/delete'
|
|
4188
|
+
| '/access_methods/encode'
|
|
4095
4189
|
| '/acs/access_groups/add_user'
|
|
4096
4190
|
| '/acs/access_groups/remove_user'
|
|
4097
4191
|
| '/acs/credential_provisioning_automations/launch'
|
|
@@ -4101,7 +4195,6 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4101
4195
|
| '/acs/credentials/delete'
|
|
4102
4196
|
| '/acs/credentials/unassign'
|
|
4103
4197
|
| '/acs/credentials/update'
|
|
4104
|
-
| '/acs/encoders/encode_access_method'
|
|
4105
4198
|
| '/acs/encoders/encode_credential'
|
|
4106
4199
|
| '/acs/encoders/scan_credential'
|
|
4107
4200
|
| '/acs/encoders/simulate/next_credential_encode_will_fail'
|
|
@@ -4145,6 +4238,8 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4145
4238
|
| '/noise_sensors/simulate/trigger_noise_threshold'
|
|
4146
4239
|
| '/phones/deactivate'
|
|
4147
4240
|
| '/phones/simulate/create_sandbox_phone'
|
|
4241
|
+
| '/seam/customer/v1/automations/delete'
|
|
4242
|
+
| '/seam/customer/v1/automations/update'
|
|
4148
4243
|
| '/seam/customer/v1/settings/update'
|
|
4149
4244
|
| '/spaces/add_acs_entrances'
|
|
4150
4245
|
| '/spaces/add_devices'
|
|
@@ -4175,6 +4270,8 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4175
4270
|
| '/thermostats/simulate/hvac_mode_adjusted'
|
|
4176
4271
|
| '/thermostats/simulate/temperature_reached'
|
|
4177
4272
|
| '/unstable_access_grants/create'
|
|
4273
|
+
| '/unstable_access_grants/delete'
|
|
4274
|
+
| '/unstable_access_methods/delete'
|
|
4178
4275
|
| '/unstable_locations/add_acs_entrances'
|
|
4179
4276
|
| '/unstable_locations/add_devices'
|
|
4180
4277
|
| '/unstable_locations/create'
|
package/src/lib/version.ts
CHANGED