@seamapi/http 1.50.0 → 1.52.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 +127 -6
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +68 -23
- package/dist/index.cjs +129 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +16 -16
- package/lib/seam/connect/routes/index.d.ts +1 -0
- package/lib/seam/connect/routes/index.js +1 -0
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/instant-keys/index.d.ts +1 -0
- package/lib/seam/connect/routes/instant-keys/index.js +6 -0
- package/lib/seam/connect/routes/instant-keys/index.js.map +1 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +47 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js +105 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.d.ts +8 -8
- package/lib/seam/connect/routes/seam/console/v1/v1.js +3 -3
- package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +6 -3
- package/lib/seam/connect/routes/seam-http-endpoints.js +18 -3
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/seam-http.d.ts +2 -0
- package/lib/seam/connect/routes/seam-http.js +4 -0
- package/lib/seam/connect/routes/seam-http.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/index.ts +1 -0
- package/src/lib/seam/connect/routes/instant-keys/index.ts +6 -0
- package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +235 -0
- package/src/lib/seam/connect/routes/seam/console/v1/v1.ts +18 -18
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +49 -12
- package/src/lib/seam/connect/routes/seam-http.ts +5 -0
- package/src/lib/version.ts +1 -1
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by codegen/smith.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
|
|
7
|
+
|
|
8
|
+
import { seamApiLtsVersion } from 'lib/lts-version.js'
|
|
9
|
+
import {
|
|
10
|
+
getAuthHeadersForClientSessionToken,
|
|
11
|
+
warnOnInsecureuserIdentifierKey,
|
|
12
|
+
} from 'lib/seam/connect/auth.js'
|
|
13
|
+
import { type Client, createClient } from 'lib/seam/connect/client.js'
|
|
14
|
+
import {
|
|
15
|
+
isSeamHttpOptionsWithApiKey,
|
|
16
|
+
isSeamHttpOptionsWithClient,
|
|
17
|
+
isSeamHttpOptionsWithClientSessionToken,
|
|
18
|
+
isSeamHttpOptionsWithConsoleSessionToken,
|
|
19
|
+
isSeamHttpOptionsWithPersonalAccessToken,
|
|
20
|
+
type SeamHttpFromPublishableKeyOptions,
|
|
21
|
+
SeamHttpInvalidOptionsError,
|
|
22
|
+
type SeamHttpOptions,
|
|
23
|
+
type SeamHttpOptionsWithApiKey,
|
|
24
|
+
type SeamHttpOptionsWithClient,
|
|
25
|
+
type SeamHttpOptionsWithClientSessionToken,
|
|
26
|
+
type SeamHttpOptionsWithConsoleSessionToken,
|
|
27
|
+
type SeamHttpOptionsWithPersonalAccessToken,
|
|
28
|
+
type SeamHttpRequestOptions,
|
|
29
|
+
} from 'lib/seam/connect/options.js'
|
|
30
|
+
import {
|
|
31
|
+
limitToSeamHttpRequestOptions,
|
|
32
|
+
parseOptions,
|
|
33
|
+
} from 'lib/seam/connect/parse-options.js'
|
|
34
|
+
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
35
|
+
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
36
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
37
|
+
import type { SetNonNullable } from 'lib/types.js'
|
|
38
|
+
|
|
39
|
+
export class SeamHttpInstantKeys {
|
|
40
|
+
client: Client
|
|
41
|
+
readonly defaults: Required<SeamHttpRequestOptions>
|
|
42
|
+
readonly ltsVersion = seamApiLtsVersion
|
|
43
|
+
static ltsVersion = seamApiLtsVersion
|
|
44
|
+
|
|
45
|
+
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
46
|
+
const options = parseOptions(apiKeyOrOptions)
|
|
47
|
+
this.client = 'client' in options ? options.client : createClient(options)
|
|
48
|
+
this.defaults = limitToSeamHttpRequestOptions(options)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
static fromClient(
|
|
52
|
+
client: SeamHttpOptionsWithClient['client'],
|
|
53
|
+
options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
|
|
54
|
+
): SeamHttpInstantKeys {
|
|
55
|
+
const constructorOptions = { ...options, client }
|
|
56
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
57
|
+
throw new SeamHttpInvalidOptionsError('Missing client')
|
|
58
|
+
}
|
|
59
|
+
return new SeamHttpInstantKeys(constructorOptions)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static fromApiKey(
|
|
63
|
+
apiKey: SeamHttpOptionsWithApiKey['apiKey'],
|
|
64
|
+
options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
|
|
65
|
+
): SeamHttpInstantKeys {
|
|
66
|
+
const constructorOptions = { ...options, apiKey }
|
|
67
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
68
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey')
|
|
69
|
+
}
|
|
70
|
+
return new SeamHttpInstantKeys(constructorOptions)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static fromClientSessionToken(
|
|
74
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
75
|
+
options: Omit<
|
|
76
|
+
SeamHttpOptionsWithClientSessionToken,
|
|
77
|
+
'clientSessionToken'
|
|
78
|
+
> = {},
|
|
79
|
+
): SeamHttpInstantKeys {
|
|
80
|
+
const constructorOptions = { ...options, clientSessionToken }
|
|
81
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
82
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
|
|
83
|
+
}
|
|
84
|
+
return new SeamHttpInstantKeys(constructorOptions)
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
static async fromPublishableKey(
|
|
88
|
+
publishableKey: string,
|
|
89
|
+
userIdentifierKey: string,
|
|
90
|
+
options: SeamHttpFromPublishableKeyOptions = {},
|
|
91
|
+
): Promise<SeamHttpInstantKeys> {
|
|
92
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey)
|
|
93
|
+
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
94
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
95
|
+
throw new SeamHttpInvalidOptionsError(
|
|
96
|
+
'The client option cannot be used with SeamHttpInstantKeys.fromPublishableKey',
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
const client = createClient(clientOptions)
|
|
100
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client)
|
|
101
|
+
const { token } = await clientSessions.getOrCreate({
|
|
102
|
+
user_identifier_key: userIdentifierKey,
|
|
103
|
+
})
|
|
104
|
+
return SeamHttpInstantKeys.fromClientSessionToken(token, options)
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static fromConsoleSessionToken(
|
|
108
|
+
consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
|
|
109
|
+
workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
|
|
110
|
+
options: Omit<
|
|
111
|
+
SeamHttpOptionsWithConsoleSessionToken,
|
|
112
|
+
'consoleSessionToken' | 'workspaceId'
|
|
113
|
+
> = {},
|
|
114
|
+
): SeamHttpInstantKeys {
|
|
115
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId }
|
|
116
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
117
|
+
throw new SeamHttpInvalidOptionsError(
|
|
118
|
+
'Missing consoleSessionToken or workspaceId',
|
|
119
|
+
)
|
|
120
|
+
}
|
|
121
|
+
return new SeamHttpInstantKeys(constructorOptions)
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
static fromPersonalAccessToken(
|
|
125
|
+
personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
|
|
126
|
+
workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
|
|
127
|
+
options: Omit<
|
|
128
|
+
SeamHttpOptionsWithPersonalAccessToken,
|
|
129
|
+
'personalAccessToken' | 'workspaceId'
|
|
130
|
+
> = {},
|
|
131
|
+
): SeamHttpInstantKeys {
|
|
132
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId }
|
|
133
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
134
|
+
throw new SeamHttpInvalidOptionsError(
|
|
135
|
+
'Missing personalAccessToken or workspaceId',
|
|
136
|
+
)
|
|
137
|
+
}
|
|
138
|
+
return new SeamHttpInstantKeys(constructorOptions)
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
142
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
143
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
144
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
async updateClientSessionToken(
|
|
148
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
149
|
+
): Promise<void> {
|
|
150
|
+
const { headers } = this.client.defaults
|
|
151
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
152
|
+
clientSessionToken,
|
|
153
|
+
})
|
|
154
|
+
for (const key of Object.keys(authHeaders)) {
|
|
155
|
+
if (headers[key] == null) {
|
|
156
|
+
throw new Error(
|
|
157
|
+
'Cannot update a clientSessionToken on a client created without a clientSessionToken',
|
|
158
|
+
)
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
this.client.defaults.headers = { ...headers, ...authHeaders }
|
|
162
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client)
|
|
163
|
+
await clientSessions.get()
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
get(
|
|
167
|
+
parameters?: InstantKeysGetParameters,
|
|
168
|
+
options: InstantKeysGetOptions = {},
|
|
169
|
+
): InstantKeysGetRequest {
|
|
170
|
+
return new SeamHttpRequest(this, {
|
|
171
|
+
pathname: '/instant_keys/get',
|
|
172
|
+
method: 'POST',
|
|
173
|
+
body: parameters,
|
|
174
|
+
responseKey: 'instant_key',
|
|
175
|
+
options,
|
|
176
|
+
})
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
list(
|
|
180
|
+
parameters?: InstantKeysListParameters,
|
|
181
|
+
options: InstantKeysListOptions = {},
|
|
182
|
+
): InstantKeysListRequest {
|
|
183
|
+
return new SeamHttpRequest(this, {
|
|
184
|
+
pathname: '/instant_keys/list',
|
|
185
|
+
method: 'POST',
|
|
186
|
+
body: parameters,
|
|
187
|
+
responseKey: 'instant_keys',
|
|
188
|
+
options,
|
|
189
|
+
})
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export type InstantKeysGetParameters = RouteRequestBody<'/instant_keys/get'>
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @deprecated Use InstantKeysGetParameters instead.
|
|
197
|
+
*/
|
|
198
|
+
export type InstantKeysGetParams = InstantKeysGetParameters
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @deprecated Use InstantKeysGetRequest instead.
|
|
202
|
+
*/
|
|
203
|
+
export type InstantKeysGetResponse = SetNonNullable<
|
|
204
|
+
Required<RouteResponse<'/instant_keys/get'>>
|
|
205
|
+
>
|
|
206
|
+
|
|
207
|
+
export type InstantKeysGetRequest = SeamHttpRequest<
|
|
208
|
+
InstantKeysGetResponse,
|
|
209
|
+
'instant_key'
|
|
210
|
+
>
|
|
211
|
+
|
|
212
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
213
|
+
export interface InstantKeysGetOptions {}
|
|
214
|
+
|
|
215
|
+
export type InstantKeysListParameters = RouteRequestBody<'/instant_keys/list'>
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @deprecated Use InstantKeysListParameters instead.
|
|
219
|
+
*/
|
|
220
|
+
export type InstantKeysListParams = InstantKeysListParameters
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @deprecated Use InstantKeysListRequest instead.
|
|
224
|
+
*/
|
|
225
|
+
export type InstantKeysListResponse = SetNonNullable<
|
|
226
|
+
Required<RouteResponse<'/instant_keys/list'>>
|
|
227
|
+
>
|
|
228
|
+
|
|
229
|
+
export type InstantKeysListRequest = SeamHttpRequest<
|
|
230
|
+
InstantKeysListResponse,
|
|
231
|
+
'instant_keys'
|
|
232
|
+
>
|
|
233
|
+
|
|
234
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
235
|
+
export interface InstantKeysListOptions {}
|
|
@@ -168,45 +168,45 @@ export class SeamHttpSeamConsoleV1 {
|
|
|
168
168
|
await clientSessions.get()
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
|
|
172
|
-
parameters?:
|
|
173
|
-
options:
|
|
174
|
-
):
|
|
171
|
+
getResourceLocator(
|
|
172
|
+
parameters?: SeamConsoleV1GetResourceLocatorParameters,
|
|
173
|
+
options: SeamConsoleV1GetResourceLocatorOptions = {},
|
|
174
|
+
): SeamConsoleV1GetResourceLocatorRequest {
|
|
175
175
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
176
176
|
throw new Error(
|
|
177
177
|
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
178
178
|
)
|
|
179
179
|
}
|
|
180
180
|
return new SeamHttpRequest(this, {
|
|
181
|
-
pathname: '/seam/console/v1/
|
|
181
|
+
pathname: '/seam/console/v1/get_resource_locator',
|
|
182
182
|
method: 'GET',
|
|
183
183
|
params: parameters,
|
|
184
|
-
responseKey: '
|
|
184
|
+
responseKey: 'resource_locator',
|
|
185
185
|
options,
|
|
186
186
|
})
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export type
|
|
191
|
-
RouteRequestParams<'/seam/console/v1/
|
|
190
|
+
export type SeamConsoleV1GetResourceLocatorParameters =
|
|
191
|
+
RouteRequestParams<'/seam/console/v1/get_resource_locator'>
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
-
* @deprecated Use
|
|
194
|
+
* @deprecated Use SeamConsoleV1GetResourceLocatorParameters instead.
|
|
195
195
|
*/
|
|
196
|
-
export type
|
|
197
|
-
|
|
196
|
+
export type SeamConsoleV1GetResourceLocatorParams =
|
|
197
|
+
SeamConsoleV1GetResourceLocatorParameters
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
|
-
* @deprecated Use
|
|
200
|
+
* @deprecated Use SeamConsoleV1GetResourceLocatorRequest instead.
|
|
201
201
|
*/
|
|
202
|
-
export type
|
|
203
|
-
Required<RouteResponse<'/seam/console/v1/
|
|
202
|
+
export type SeamConsoleV1GetResourceLocatorResponse = SetNonNullable<
|
|
203
|
+
Required<RouteResponse<'/seam/console/v1/get_resource_locator'>>
|
|
204
204
|
>
|
|
205
205
|
|
|
206
|
-
export type
|
|
207
|
-
|
|
208
|
-
'
|
|
206
|
+
export type SeamConsoleV1GetResourceLocatorRequest = SeamHttpRequest<
|
|
207
|
+
SeamConsoleV1GetResourceLocatorResponse,
|
|
208
|
+
'resource_locator'
|
|
209
209
|
>
|
|
210
210
|
|
|
211
211
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
212
|
-
export interface
|
|
212
|
+
export interface SeamConsoleV1GetResourceLocatorOptions {}
|
|
@@ -452,6 +452,15 @@ import {
|
|
|
452
452
|
type EventsListRequest,
|
|
453
453
|
SeamHttpEvents,
|
|
454
454
|
} from './events/index.js'
|
|
455
|
+
import {
|
|
456
|
+
type InstantKeysGetOptions,
|
|
457
|
+
type InstantKeysGetParameters,
|
|
458
|
+
type InstantKeysGetRequest,
|
|
459
|
+
type InstantKeysListOptions,
|
|
460
|
+
type InstantKeysListParameters,
|
|
461
|
+
type InstantKeysListRequest,
|
|
462
|
+
SeamHttpInstantKeys,
|
|
463
|
+
} from './instant-keys/index.js'
|
|
455
464
|
import {
|
|
456
465
|
type LocksGetOptions,
|
|
457
466
|
type LocksGetParameters,
|
|
@@ -525,9 +534,9 @@ import {
|
|
|
525
534
|
SeamHttpPhonesSimulate,
|
|
526
535
|
} from './phones/simulate/index.js'
|
|
527
536
|
import {
|
|
528
|
-
type
|
|
529
|
-
type
|
|
530
|
-
type
|
|
537
|
+
type SeamConsoleV1GetResourceLocatorOptions,
|
|
538
|
+
type SeamConsoleV1GetResourceLocatorParameters,
|
|
539
|
+
type SeamConsoleV1GetResourceLocatorRequest,
|
|
531
540
|
SeamHttpSeamConsoleV1,
|
|
532
541
|
} from './seam/console/v1/index.js'
|
|
533
542
|
import {
|
|
@@ -2534,6 +2543,32 @@ export class SeamHttpEndpoints {
|
|
|
2534
2543
|
}
|
|
2535
2544
|
}
|
|
2536
2545
|
|
|
2546
|
+
get ['/instant_keys/get'](): (
|
|
2547
|
+
parameters?: InstantKeysGetParameters,
|
|
2548
|
+
options?: InstantKeysGetOptions,
|
|
2549
|
+
) => InstantKeysGetRequest {
|
|
2550
|
+
const { client, defaults } = this
|
|
2551
|
+
return function instantKeysGet(
|
|
2552
|
+
...args: Parameters<SeamHttpInstantKeys['get']>
|
|
2553
|
+
): ReturnType<SeamHttpInstantKeys['get']> {
|
|
2554
|
+
const seam = SeamHttpInstantKeys.fromClient(client, defaults)
|
|
2555
|
+
return seam.get(...args)
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
get ['/instant_keys/list'](): (
|
|
2560
|
+
parameters?: InstantKeysListParameters,
|
|
2561
|
+
options?: InstantKeysListOptions,
|
|
2562
|
+
) => InstantKeysListRequest {
|
|
2563
|
+
const { client, defaults } = this
|
|
2564
|
+
return function instantKeysList(
|
|
2565
|
+
...args: Parameters<SeamHttpInstantKeys['list']>
|
|
2566
|
+
): ReturnType<SeamHttpInstantKeys['list']> {
|
|
2567
|
+
const seam = SeamHttpInstantKeys.fromClient(client, defaults)
|
|
2568
|
+
return seam.list(...args)
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2537
2572
|
get ['/locks/get'](): (
|
|
2538
2573
|
parameters?: LocksGetParameters,
|
|
2539
2574
|
options?: LocksGetOptions,
|
|
@@ -2770,21 +2805,21 @@ export class SeamHttpEndpoints {
|
|
|
2770
2805
|
}
|
|
2771
2806
|
}
|
|
2772
2807
|
|
|
2773
|
-
get ['/seam/console/v1/
|
|
2774
|
-
parameters?:
|
|
2775
|
-
options?:
|
|
2776
|
-
) =>
|
|
2808
|
+
get ['/seam/console/v1/get_resource_locator'](): (
|
|
2809
|
+
parameters?: SeamConsoleV1GetResourceLocatorParameters,
|
|
2810
|
+
options?: SeamConsoleV1GetResourceLocatorOptions,
|
|
2811
|
+
) => SeamConsoleV1GetResourceLocatorRequest {
|
|
2777
2812
|
const { client, defaults } = this
|
|
2778
2813
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2779
2814
|
throw new Error(
|
|
2780
2815
|
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2781
2816
|
)
|
|
2782
2817
|
}
|
|
2783
|
-
return function
|
|
2784
|
-
...args: Parameters<SeamHttpSeamConsoleV1['
|
|
2785
|
-
): ReturnType<SeamHttpSeamConsoleV1['
|
|
2818
|
+
return function seamConsoleV1GetResourceLocator(
|
|
2819
|
+
...args: Parameters<SeamHttpSeamConsoleV1['getResourceLocator']>
|
|
2820
|
+
): ReturnType<SeamHttpSeamConsoleV1['getResourceLocator']> {
|
|
2786
2821
|
const seam = SeamHttpSeamConsoleV1.fromClient(client, defaults)
|
|
2787
|
-
return seam.
|
|
2822
|
+
return seam.getResourceLocator(...args)
|
|
2788
2823
|
}
|
|
2789
2824
|
}
|
|
2790
2825
|
|
|
@@ -4205,6 +4240,8 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4205
4240
|
| '/devices/unmanaged/list'
|
|
4206
4241
|
| '/events/get'
|
|
4207
4242
|
| '/events/list'
|
|
4243
|
+
| '/instant_keys/get'
|
|
4244
|
+
| '/instant_keys/list'
|
|
4208
4245
|
| '/locks/get'
|
|
4209
4246
|
| '/locks/list'
|
|
4210
4247
|
| '/noise_sensors/list'
|
|
@@ -4212,7 +4249,7 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4212
4249
|
| '/noise_sensors/noise_thresholds/list'
|
|
4213
4250
|
| '/phones/get'
|
|
4214
4251
|
| '/phones/list'
|
|
4215
|
-
| '/seam/console/v1/
|
|
4252
|
+
| '/seam/console/v1/get_resource_locator'
|
|
4216
4253
|
| '/seam/customer/v1/automation_runs/list'
|
|
4217
4254
|
| '/seam/customer/v1/automations/get'
|
|
4218
4255
|
| '/seam/customer/v1/portals/get'
|
|
@@ -44,6 +44,7 @@ import { SeamHttpConnectedAccounts } from './connected-accounts/index.js'
|
|
|
44
44
|
import { SeamHttpCustomers } from './customers/index.js'
|
|
45
45
|
import { SeamHttpDevices } from './devices/index.js'
|
|
46
46
|
import { SeamHttpEvents } from './events/index.js'
|
|
47
|
+
import { SeamHttpInstantKeys } from './instant-keys/index.js'
|
|
47
48
|
import { SeamHttpLocks } from './locks/index.js'
|
|
48
49
|
import { SeamHttpNoiseSensors } from './noise-sensors/index.js'
|
|
49
50
|
import { SeamHttpPhones } from './phones/index.js'
|
|
@@ -232,6 +233,10 @@ export class SeamHttp {
|
|
|
232
233
|
return SeamHttpEvents.fromClient(this.client, this.defaults)
|
|
233
234
|
}
|
|
234
235
|
|
|
236
|
+
get instantKeys(): SeamHttpInstantKeys {
|
|
237
|
+
return SeamHttpInstantKeys.fromClient(this.client, this.defaults)
|
|
238
|
+
}
|
|
239
|
+
|
|
235
240
|
get locks(): SeamHttpLocks {
|
|
236
241
|
return SeamHttpLocks.fromClient(this.client, this.defaults)
|
|
237
242
|
}
|
package/src/lib/version.ts
CHANGED