@seamapi/http 1.51.0 → 1.53.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 +32 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +322 -294
- package/dist/index.cjs +32 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +388 -388
- package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +26 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js +18 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +5 -3
- package/lib/seam/connect/routes/seam-http-endpoints.js +14 -0
- 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/instant-keys/instant-keys.ts +68 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +34 -0
- package/src/lib/version.ts +1 -1
|
@@ -163,6 +163,32 @@ export class SeamHttpInstantKeys {
|
|
|
163
163
|
await clientSessions.get()
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
delete(
|
|
167
|
+
parameters?: InstantKeysDeleteParameters,
|
|
168
|
+
options: InstantKeysDeleteOptions = {},
|
|
169
|
+
): InstantKeysDeleteRequest {
|
|
170
|
+
return new SeamHttpRequest(this, {
|
|
171
|
+
pathname: '/instant_keys/delete',
|
|
172
|
+
method: 'POST',
|
|
173
|
+
body: parameters,
|
|
174
|
+
responseKey: undefined,
|
|
175
|
+
options,
|
|
176
|
+
})
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
get(
|
|
180
|
+
parameters?: InstantKeysGetParameters,
|
|
181
|
+
options: InstantKeysGetOptions = {},
|
|
182
|
+
): InstantKeysGetRequest {
|
|
183
|
+
return new SeamHttpRequest(this, {
|
|
184
|
+
pathname: '/instant_keys/get',
|
|
185
|
+
method: 'POST',
|
|
186
|
+
body: parameters,
|
|
187
|
+
responseKey: 'instant_key',
|
|
188
|
+
options,
|
|
189
|
+
})
|
|
190
|
+
}
|
|
191
|
+
|
|
166
192
|
list(
|
|
167
193
|
parameters?: InstantKeysListParameters,
|
|
168
194
|
options: InstantKeysListOptions = {},
|
|
@@ -177,6 +203,48 @@ export class SeamHttpInstantKeys {
|
|
|
177
203
|
}
|
|
178
204
|
}
|
|
179
205
|
|
|
206
|
+
export type InstantKeysDeleteParameters =
|
|
207
|
+
RouteRequestBody<'/instant_keys/delete'>
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @deprecated Use InstantKeysDeleteParameters instead.
|
|
211
|
+
*/
|
|
212
|
+
export type InstantKeysDeleteParams = InstantKeysDeleteParameters
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @deprecated Use InstantKeysDeleteRequest instead.
|
|
216
|
+
*/
|
|
217
|
+
export type InstantKeysDeleteResponse = SetNonNullable<
|
|
218
|
+
Required<RouteResponse<'/instant_keys/delete'>>
|
|
219
|
+
>
|
|
220
|
+
|
|
221
|
+
export type InstantKeysDeleteRequest = SeamHttpRequest<void, undefined>
|
|
222
|
+
|
|
223
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
224
|
+
export interface InstantKeysDeleteOptions {}
|
|
225
|
+
|
|
226
|
+
export type InstantKeysGetParameters = RouteRequestBody<'/instant_keys/get'>
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @deprecated Use InstantKeysGetParameters instead.
|
|
230
|
+
*/
|
|
231
|
+
export type InstantKeysGetParams = InstantKeysGetParameters
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @deprecated Use InstantKeysGetRequest instead.
|
|
235
|
+
*/
|
|
236
|
+
export type InstantKeysGetResponse = SetNonNullable<
|
|
237
|
+
Required<RouteResponse<'/instant_keys/get'>>
|
|
238
|
+
>
|
|
239
|
+
|
|
240
|
+
export type InstantKeysGetRequest = SeamHttpRequest<
|
|
241
|
+
InstantKeysGetResponse,
|
|
242
|
+
'instant_key'
|
|
243
|
+
>
|
|
244
|
+
|
|
245
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
246
|
+
export interface InstantKeysGetOptions {}
|
|
247
|
+
|
|
180
248
|
export type InstantKeysListParameters = RouteRequestBody<'/instant_keys/list'>
|
|
181
249
|
|
|
182
250
|
/**
|
|
@@ -453,6 +453,12 @@ import {
|
|
|
453
453
|
SeamHttpEvents,
|
|
454
454
|
} from './events/index.js'
|
|
455
455
|
import {
|
|
456
|
+
type InstantKeysDeleteOptions,
|
|
457
|
+
type InstantKeysDeleteParameters,
|
|
458
|
+
type InstantKeysDeleteRequest,
|
|
459
|
+
type InstantKeysGetOptions,
|
|
460
|
+
type InstantKeysGetParameters,
|
|
461
|
+
type InstantKeysGetRequest,
|
|
456
462
|
type InstantKeysListOptions,
|
|
457
463
|
type InstantKeysListParameters,
|
|
458
464
|
type InstantKeysListRequest,
|
|
@@ -2540,6 +2546,32 @@ export class SeamHttpEndpoints {
|
|
|
2540
2546
|
}
|
|
2541
2547
|
}
|
|
2542
2548
|
|
|
2549
|
+
get ['/instant_keys/delete'](): (
|
|
2550
|
+
parameters?: InstantKeysDeleteParameters,
|
|
2551
|
+
options?: InstantKeysDeleteOptions,
|
|
2552
|
+
) => InstantKeysDeleteRequest {
|
|
2553
|
+
const { client, defaults } = this
|
|
2554
|
+
return function instantKeysDelete(
|
|
2555
|
+
...args: Parameters<SeamHttpInstantKeys['delete']>
|
|
2556
|
+
): ReturnType<SeamHttpInstantKeys['delete']> {
|
|
2557
|
+
const seam = SeamHttpInstantKeys.fromClient(client, defaults)
|
|
2558
|
+
return seam.delete(...args)
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
get ['/instant_keys/get'](): (
|
|
2563
|
+
parameters?: InstantKeysGetParameters,
|
|
2564
|
+
options?: InstantKeysGetOptions,
|
|
2565
|
+
) => InstantKeysGetRequest {
|
|
2566
|
+
const { client, defaults } = this
|
|
2567
|
+
return function instantKeysGet(
|
|
2568
|
+
...args: Parameters<SeamHttpInstantKeys['get']>
|
|
2569
|
+
): ReturnType<SeamHttpInstantKeys['get']> {
|
|
2570
|
+
const seam = SeamHttpInstantKeys.fromClient(client, defaults)
|
|
2571
|
+
return seam.get(...args)
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2543
2575
|
get ['/instant_keys/list'](): (
|
|
2544
2576
|
parameters?: InstantKeysListParameters,
|
|
2545
2577
|
options?: InstantKeysListOptions,
|
|
@@ -4224,6 +4256,7 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4224
4256
|
| '/devices/unmanaged/list'
|
|
4225
4257
|
| '/events/get'
|
|
4226
4258
|
| '/events/list'
|
|
4259
|
+
| '/instant_keys/get'
|
|
4227
4260
|
| '/instant_keys/list'
|
|
4228
4261
|
| '/locks/get'
|
|
4229
4262
|
| '/locks/list'
|
|
@@ -4334,6 +4367,7 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4334
4367
|
| '/devices/simulate/disconnect_from_hub'
|
|
4335
4368
|
| '/devices/simulate/remove'
|
|
4336
4369
|
| '/devices/unmanaged/update'
|
|
4370
|
+
| '/instant_keys/delete'
|
|
4337
4371
|
| '/locks/lock_door'
|
|
4338
4372
|
| '/locks/unlock_door'
|
|
4339
4373
|
| '/locks/simulate/keypad_code_entry'
|
package/src/lib/version.ts
CHANGED