@seamapi/http 1.41.0 → 1.42.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 -16
- 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/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 -7
- 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/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 -21
- 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,
|
|
@@ -2731,6 +2749,90 @@ export class SeamHttpEndpoints {
|
|
|
2731
2749
|
}
|
|
2732
2750
|
}
|
|
2733
2751
|
|
|
2752
|
+
get ['/seam/customer/v1/automation_runs/list'](): (
|
|
2753
|
+
parameters?: SeamCustomerV1AutomationRunsListParameters,
|
|
2754
|
+
options?: SeamCustomerV1AutomationRunsListOptions,
|
|
2755
|
+
) => SeamCustomerV1AutomationRunsListRequest {
|
|
2756
|
+
const { client, defaults } = this
|
|
2757
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2758
|
+
throw new Error(
|
|
2759
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2760
|
+
)
|
|
2761
|
+
}
|
|
2762
|
+
return function seamCustomerV1AutomationRunsList(
|
|
2763
|
+
...args: Parameters<SeamHttpSeamCustomerV1AutomationRuns['list']>
|
|
2764
|
+
): ReturnType<SeamHttpSeamCustomerV1AutomationRuns['list']> {
|
|
2765
|
+
const seam = SeamHttpSeamCustomerV1AutomationRuns.fromClient(
|
|
2766
|
+
client,
|
|
2767
|
+
defaults,
|
|
2768
|
+
)
|
|
2769
|
+
return seam.list(...args)
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
get ['/seam/customer/v1/automations/delete'](): (
|
|
2774
|
+
parameters?: SeamCustomerV1AutomationsDeleteParameters,
|
|
2775
|
+
options?: SeamCustomerV1AutomationsDeleteOptions,
|
|
2776
|
+
) => SeamCustomerV1AutomationsDeleteRequest {
|
|
2777
|
+
const { client, defaults } = this
|
|
2778
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2779
|
+
throw new Error(
|
|
2780
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2781
|
+
)
|
|
2782
|
+
}
|
|
2783
|
+
return function seamCustomerV1AutomationsDelete(
|
|
2784
|
+
...args: Parameters<SeamHttpSeamCustomerV1Automations['delete']>
|
|
2785
|
+
): ReturnType<SeamHttpSeamCustomerV1Automations['delete']> {
|
|
2786
|
+
const seam = SeamHttpSeamCustomerV1Automations.fromClient(
|
|
2787
|
+
client,
|
|
2788
|
+
defaults,
|
|
2789
|
+
)
|
|
2790
|
+
return seam.delete(...args)
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
get ['/seam/customer/v1/automations/get'](): (
|
|
2795
|
+
parameters?: SeamCustomerV1AutomationsGetParameters,
|
|
2796
|
+
options?: SeamCustomerV1AutomationsGetOptions,
|
|
2797
|
+
) => SeamCustomerV1AutomationsGetRequest {
|
|
2798
|
+
const { client, defaults } = this
|
|
2799
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2800
|
+
throw new Error(
|
|
2801
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2802
|
+
)
|
|
2803
|
+
}
|
|
2804
|
+
return function seamCustomerV1AutomationsGet(
|
|
2805
|
+
...args: Parameters<SeamHttpSeamCustomerV1Automations['get']>
|
|
2806
|
+
): ReturnType<SeamHttpSeamCustomerV1Automations['get']> {
|
|
2807
|
+
const seam = SeamHttpSeamCustomerV1Automations.fromClient(
|
|
2808
|
+
client,
|
|
2809
|
+
defaults,
|
|
2810
|
+
)
|
|
2811
|
+
return seam.get(...args)
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
get ['/seam/customer/v1/automations/update'](): (
|
|
2816
|
+
parameters?: SeamCustomerV1AutomationsUpdateParameters,
|
|
2817
|
+
options?: SeamCustomerV1AutomationsUpdateOptions,
|
|
2818
|
+
) => SeamCustomerV1AutomationsUpdateRequest {
|
|
2819
|
+
const { client, defaults } = this
|
|
2820
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2821
|
+
throw new Error(
|
|
2822
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2823
|
+
)
|
|
2824
|
+
}
|
|
2825
|
+
return function seamCustomerV1AutomationsUpdate(
|
|
2826
|
+
...args: Parameters<SeamHttpSeamCustomerV1Automations['update']>
|
|
2827
|
+
): ReturnType<SeamHttpSeamCustomerV1Automations['update']> {
|
|
2828
|
+
const seam = SeamHttpSeamCustomerV1Automations.fromClient(
|
|
2829
|
+
client,
|
|
2830
|
+
defaults,
|
|
2831
|
+
)
|
|
2832
|
+
return seam.update(...args)
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2734
2836
|
get ['/seam/customer/v1/portals/get'](): (
|
|
2735
2837
|
parameters?: SeamCustomerV1PortalsGetParameters,
|
|
2736
2838
|
options?: SeamCustomerV1PortalsGetOptions,
|
|
@@ -3985,10 +4087,8 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
3985
4087
|
| '/access_codes/list'
|
|
3986
4088
|
| '/access_codes/unmanaged/get'
|
|
3987
4089
|
| '/access_codes/unmanaged/list'
|
|
3988
|
-
| '/access_grants/delete'
|
|
3989
4090
|
| '/access_grants/get'
|
|
3990
4091
|
| '/access_grants/list'
|
|
3991
|
-
| '/access_methods/delete'
|
|
3992
4092
|
| '/access_methods/get'
|
|
3993
4093
|
| '/access_methods/list'
|
|
3994
4094
|
| '/acs/access_groups/get'
|
|
@@ -4042,6 +4142,8 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4042
4142
|
| '/noise_sensors/noise_thresholds/list'
|
|
4043
4143
|
| '/phones/get'
|
|
4044
4144
|
| '/phones/list'
|
|
4145
|
+
| '/seam/customer/v1/automation_runs/list'
|
|
4146
|
+
| '/seam/customer/v1/automations/get'
|
|
4045
4147
|
| '/seam/customer/v1/portals/get'
|
|
4046
4148
|
| '/seam/partner/v1/building_blocks/spaces/auto_map'
|
|
4047
4149
|
| '/spaces/get'
|
|
@@ -4050,10 +4152,8 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4050
4152
|
| '/thermostats/list'
|
|
4051
4153
|
| '/thermostats/schedules/get'
|
|
4052
4154
|
| '/thermostats/schedules/list'
|
|
4053
|
-
| '/unstable_access_grants/delete'
|
|
4054
4155
|
| '/unstable_access_grants/get'
|
|
4055
4156
|
| '/unstable_access_grants/list'
|
|
4056
|
-
| '/unstable_access_methods/delete'
|
|
4057
4157
|
| '/unstable_access_methods/get'
|
|
4058
4158
|
| '/unstable_access_methods/list'
|
|
4059
4159
|
| '/unstable_locations/get'
|
|
@@ -4077,6 +4177,7 @@ export type SeamHttpEndpointPaginatedQueryPaths =
|
|
|
4077
4177
|
| '/connect_webviews/list'
|
|
4078
4178
|
| '/connected_accounts/list'
|
|
4079
4179
|
| '/devices/list'
|
|
4180
|
+
| '/seam/customer/v1/automation_runs/list'
|
|
4080
4181
|
|
|
4081
4182
|
export type SeamHttpEndpointMutationPaths =
|
|
4082
4183
|
| '/access_codes/create'
|
|
@@ -4091,7 +4192,10 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4091
4192
|
| '/access_codes/unmanaged/delete'
|
|
4092
4193
|
| '/access_codes/unmanaged/update'
|
|
4093
4194
|
| '/access_grants/create'
|
|
4195
|
+
| '/access_grants/delete'
|
|
4094
4196
|
| '/access_grants/update'
|
|
4197
|
+
| '/access_methods/delete'
|
|
4198
|
+
| '/access_methods/encode'
|
|
4095
4199
|
| '/acs/access_groups/add_user'
|
|
4096
4200
|
| '/acs/access_groups/remove_user'
|
|
4097
4201
|
| '/acs/credential_provisioning_automations/launch'
|
|
@@ -4101,7 +4205,6 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4101
4205
|
| '/acs/credentials/delete'
|
|
4102
4206
|
| '/acs/credentials/unassign'
|
|
4103
4207
|
| '/acs/credentials/update'
|
|
4104
|
-
| '/acs/encoders/encode_access_method'
|
|
4105
4208
|
| '/acs/encoders/encode_credential'
|
|
4106
4209
|
| '/acs/encoders/scan_credential'
|
|
4107
4210
|
| '/acs/encoders/simulate/next_credential_encode_will_fail'
|
|
@@ -4145,6 +4248,8 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4145
4248
|
| '/noise_sensors/simulate/trigger_noise_threshold'
|
|
4146
4249
|
| '/phones/deactivate'
|
|
4147
4250
|
| '/phones/simulate/create_sandbox_phone'
|
|
4251
|
+
| '/seam/customer/v1/automations/delete'
|
|
4252
|
+
| '/seam/customer/v1/automations/update'
|
|
4148
4253
|
| '/seam/customer/v1/settings/update'
|
|
4149
4254
|
| '/spaces/add_acs_entrances'
|
|
4150
4255
|
| '/spaces/add_devices'
|
|
@@ -4175,6 +4280,8 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4175
4280
|
| '/thermostats/simulate/hvac_mode_adjusted'
|
|
4176
4281
|
| '/thermostats/simulate/temperature_reached'
|
|
4177
4282
|
| '/unstable_access_grants/create'
|
|
4283
|
+
| '/unstable_access_grants/delete'
|
|
4284
|
+
| '/unstable_access_methods/delete'
|
|
4178
4285
|
| '/unstable_locations/add_acs_entrances'
|
|
4179
4286
|
| '/unstable_locations/add_devices'
|
|
4180
4287
|
| '/unstable_locations/create'
|
package/src/lib/version.ts
CHANGED