@seamapi/http 1.118.0 → 1.119.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 +217 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +76 -3
- package/dist/index.cjs +219 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/seam/console/v1/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/console/v1/index.js +1 -0
- package/lib/seam/connect/routes/seam/console/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.js +6 -0
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.d.ts +73 -0
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.js +140 -0
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.d.ts +2 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.js +4 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +7 -2
- package/lib/seam/connect/routes/seam-http-endpoints.js +41 -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/seam/console/v1/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.ts +350 -0
- package/src/lib/seam/connect/routes/seam/console/v1/v1.ts +8 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +115 -0
- package/src/lib/version.ts +1 -1
|
@@ -0,0 +1,350 @@
|
|
|
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 SeamHttpSeamConsoleV1LynxMigration {
|
|
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
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
48
|
+
throw new Error(
|
|
49
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
this.client = 'client' in options ? options.client : createClient(options)
|
|
53
|
+
this.defaults = limitToSeamHttpRequestOptions(options)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static fromClient(
|
|
57
|
+
client: SeamHttpOptionsWithClient['client'],
|
|
58
|
+
options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
|
|
59
|
+
): SeamHttpSeamConsoleV1LynxMigration {
|
|
60
|
+
const constructorOptions = { ...options, client }
|
|
61
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
62
|
+
throw new SeamHttpInvalidOptionsError('Missing client')
|
|
63
|
+
}
|
|
64
|
+
return new SeamHttpSeamConsoleV1LynxMigration(constructorOptions)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static fromApiKey(
|
|
68
|
+
apiKey: SeamHttpOptionsWithApiKey['apiKey'],
|
|
69
|
+
options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
|
|
70
|
+
): SeamHttpSeamConsoleV1LynxMigration {
|
|
71
|
+
const constructorOptions = { ...options, apiKey }
|
|
72
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
73
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey')
|
|
74
|
+
}
|
|
75
|
+
return new SeamHttpSeamConsoleV1LynxMigration(constructorOptions)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static fromClientSessionToken(
|
|
79
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
80
|
+
options: Omit<
|
|
81
|
+
SeamHttpOptionsWithClientSessionToken,
|
|
82
|
+
'clientSessionToken'
|
|
83
|
+
> = {},
|
|
84
|
+
): SeamHttpSeamConsoleV1LynxMigration {
|
|
85
|
+
const constructorOptions = { ...options, clientSessionToken }
|
|
86
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
87
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
|
|
88
|
+
}
|
|
89
|
+
return new SeamHttpSeamConsoleV1LynxMigration(constructorOptions)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static async fromPublishableKey(
|
|
93
|
+
publishableKey: string,
|
|
94
|
+
userIdentifierKey: string,
|
|
95
|
+
options: SeamHttpFromPublishableKeyOptions = {},
|
|
96
|
+
): Promise<SeamHttpSeamConsoleV1LynxMigration> {
|
|
97
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey)
|
|
98
|
+
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
99
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
100
|
+
throw new SeamHttpInvalidOptionsError(
|
|
101
|
+
'The client option cannot be used with SeamHttpSeamConsoleV1LynxMigration.fromPublishableKey',
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
const client = createClient(clientOptions)
|
|
105
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client)
|
|
106
|
+
const { token } = await clientSessions.getOrCreate({
|
|
107
|
+
user_identifier_key: userIdentifierKey,
|
|
108
|
+
})
|
|
109
|
+
return SeamHttpSeamConsoleV1LynxMigration.fromClientSessionToken(
|
|
110
|
+
token,
|
|
111
|
+
options,
|
|
112
|
+
)
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static fromConsoleSessionToken(
|
|
116
|
+
consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
|
|
117
|
+
workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
|
|
118
|
+
options: Omit<
|
|
119
|
+
SeamHttpOptionsWithConsoleSessionToken,
|
|
120
|
+
'consoleSessionToken' | 'workspaceId'
|
|
121
|
+
> = {},
|
|
122
|
+
): SeamHttpSeamConsoleV1LynxMigration {
|
|
123
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId }
|
|
124
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
125
|
+
throw new SeamHttpInvalidOptionsError(
|
|
126
|
+
'Missing consoleSessionToken or workspaceId',
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
return new SeamHttpSeamConsoleV1LynxMigration(constructorOptions)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
static fromPersonalAccessToken(
|
|
133
|
+
personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
|
|
134
|
+
workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
|
|
135
|
+
options: Omit<
|
|
136
|
+
SeamHttpOptionsWithPersonalAccessToken,
|
|
137
|
+
'personalAccessToken' | 'workspaceId'
|
|
138
|
+
> = {},
|
|
139
|
+
): SeamHttpSeamConsoleV1LynxMigration {
|
|
140
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId }
|
|
141
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
142
|
+
throw new SeamHttpInvalidOptionsError(
|
|
143
|
+
'Missing personalAccessToken or workspaceId',
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
return new SeamHttpSeamConsoleV1LynxMigration(constructorOptions)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
150
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
151
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
152
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
async updateClientSessionToken(
|
|
156
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
157
|
+
): Promise<void> {
|
|
158
|
+
const { headers } = this.client.defaults
|
|
159
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
160
|
+
clientSessionToken,
|
|
161
|
+
})
|
|
162
|
+
for (const key of Object.keys(authHeaders)) {
|
|
163
|
+
if (headers[key] == null) {
|
|
164
|
+
throw new Error(
|
|
165
|
+
'Cannot update a clientSessionToken on a client created without a clientSessionToken',
|
|
166
|
+
)
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
this.client.defaults.headers = { ...headers, ...authHeaders }
|
|
170
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client)
|
|
171
|
+
await clientSessions.get()
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
getPropertyMigrationStatus(
|
|
175
|
+
parameters?: SeamConsoleV1LynxMigrationGetPropertyMigrationStatusParameters,
|
|
176
|
+
options: SeamConsoleV1LynxMigrationGetPropertyMigrationStatusOptions = {},
|
|
177
|
+
): SeamConsoleV1LynxMigrationGetPropertyMigrationStatusRequest {
|
|
178
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
179
|
+
throw new Error(
|
|
180
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
181
|
+
)
|
|
182
|
+
}
|
|
183
|
+
return new SeamHttpRequest(this, {
|
|
184
|
+
pathname: '/seam/console/v1/lynx_migration/get_property_migration_status',
|
|
185
|
+
method: 'POST',
|
|
186
|
+
body: parameters,
|
|
187
|
+
responseKey: 'lynx_migration_property_run',
|
|
188
|
+
options,
|
|
189
|
+
})
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
getReservationMigrationStatus(
|
|
193
|
+
parameters?: SeamConsoleV1LynxMigrationGetReservationMigrationStatusParameters,
|
|
194
|
+
options: SeamConsoleV1LynxMigrationGetReservationMigrationStatusOptions = {},
|
|
195
|
+
): SeamConsoleV1LynxMigrationGetReservationMigrationStatusRequest {
|
|
196
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
197
|
+
throw new Error(
|
|
198
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
199
|
+
)
|
|
200
|
+
}
|
|
201
|
+
return new SeamHttpRequest(this, {
|
|
202
|
+
pathname:
|
|
203
|
+
'/seam/console/v1/lynx_migration/get_reservation_migration_status',
|
|
204
|
+
method: 'POST',
|
|
205
|
+
body: parameters,
|
|
206
|
+
responseKey: 'lynx_migration_reservation_run',
|
|
207
|
+
options,
|
|
208
|
+
})
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
listPropertyReservations(
|
|
212
|
+
parameters?: SeamConsoleV1LynxMigrationListPropertyReservationsParameters,
|
|
213
|
+
options: SeamConsoleV1LynxMigrationListPropertyReservationsOptions = {},
|
|
214
|
+
): SeamConsoleV1LynxMigrationListPropertyReservationsRequest {
|
|
215
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
216
|
+
throw new Error(
|
|
217
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
218
|
+
)
|
|
219
|
+
}
|
|
220
|
+
return new SeamHttpRequest(this, {
|
|
221
|
+
pathname: '/seam/console/v1/lynx_migration/list_property_reservations',
|
|
222
|
+
method: 'POST',
|
|
223
|
+
body: parameters,
|
|
224
|
+
responseKey: 'lynx_migration_property_plan',
|
|
225
|
+
options,
|
|
226
|
+
})
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
migrateProperty(
|
|
230
|
+
parameters?: SeamConsoleV1LynxMigrationMigratePropertyParameters,
|
|
231
|
+
options: SeamConsoleV1LynxMigrationMigratePropertyOptions = {},
|
|
232
|
+
): SeamConsoleV1LynxMigrationMigratePropertyRequest {
|
|
233
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
234
|
+
throw new Error(
|
|
235
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
236
|
+
)
|
|
237
|
+
}
|
|
238
|
+
return new SeamHttpRequest(this, {
|
|
239
|
+
pathname: '/seam/console/v1/lynx_migration/migrate_property',
|
|
240
|
+
method: 'POST',
|
|
241
|
+
body: parameters,
|
|
242
|
+
responseKey: 'lynx_migration_property_run',
|
|
243
|
+
options,
|
|
244
|
+
})
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export type SeamConsoleV1LynxMigrationGetPropertyMigrationStatusParameters =
|
|
249
|
+
RouteRequestBody<'/seam/console/v1/lynx_migration/get_property_migration_status'>
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @deprecated Use SeamConsoleV1LynxMigrationGetPropertyMigrationStatusParameters instead.
|
|
253
|
+
*/
|
|
254
|
+
export type SeamConsoleV1LynxMigrationGetPropertyMigrationStatusParams =
|
|
255
|
+
SeamConsoleV1LynxMigrationGetPropertyMigrationStatusParameters
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @deprecated Use SeamConsoleV1LynxMigrationGetPropertyMigrationStatusRequest instead.
|
|
259
|
+
*/
|
|
260
|
+
export type SeamConsoleV1LynxMigrationGetPropertyMigrationStatusResponse =
|
|
261
|
+
SetNonNullable<
|
|
262
|
+
Required<
|
|
263
|
+
RouteResponse<'/seam/console/v1/lynx_migration/get_property_migration_status'>
|
|
264
|
+
>
|
|
265
|
+
>
|
|
266
|
+
|
|
267
|
+
export type SeamConsoleV1LynxMigrationGetPropertyMigrationStatusRequest =
|
|
268
|
+
SeamHttpRequest<
|
|
269
|
+
SeamConsoleV1LynxMigrationGetPropertyMigrationStatusResponse,
|
|
270
|
+
'lynx_migration_property_run'
|
|
271
|
+
>
|
|
272
|
+
|
|
273
|
+
export interface SeamConsoleV1LynxMigrationGetPropertyMigrationStatusOptions {}
|
|
274
|
+
|
|
275
|
+
export type SeamConsoleV1LynxMigrationGetReservationMigrationStatusParameters =
|
|
276
|
+
RouteRequestBody<'/seam/console/v1/lynx_migration/get_reservation_migration_status'>
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @deprecated Use SeamConsoleV1LynxMigrationGetReservationMigrationStatusParameters instead.
|
|
280
|
+
*/
|
|
281
|
+
export type SeamConsoleV1LynxMigrationGetReservationMigrationStatusParams =
|
|
282
|
+
SeamConsoleV1LynxMigrationGetReservationMigrationStatusParameters
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* @deprecated Use SeamConsoleV1LynxMigrationGetReservationMigrationStatusRequest instead.
|
|
286
|
+
*/
|
|
287
|
+
export type SeamConsoleV1LynxMigrationGetReservationMigrationStatusResponse =
|
|
288
|
+
SetNonNullable<
|
|
289
|
+
Required<
|
|
290
|
+
RouteResponse<'/seam/console/v1/lynx_migration/get_reservation_migration_status'>
|
|
291
|
+
>
|
|
292
|
+
>
|
|
293
|
+
|
|
294
|
+
export type SeamConsoleV1LynxMigrationGetReservationMigrationStatusRequest =
|
|
295
|
+
SeamHttpRequest<
|
|
296
|
+
SeamConsoleV1LynxMigrationGetReservationMigrationStatusResponse,
|
|
297
|
+
'lynx_migration_reservation_run'
|
|
298
|
+
>
|
|
299
|
+
|
|
300
|
+
export interface SeamConsoleV1LynxMigrationGetReservationMigrationStatusOptions {}
|
|
301
|
+
|
|
302
|
+
export type SeamConsoleV1LynxMigrationListPropertyReservationsParameters =
|
|
303
|
+
RouteRequestBody<'/seam/console/v1/lynx_migration/list_property_reservations'>
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* @deprecated Use SeamConsoleV1LynxMigrationListPropertyReservationsParameters instead.
|
|
307
|
+
*/
|
|
308
|
+
export type SeamConsoleV1LynxMigrationListPropertyReservationsParams =
|
|
309
|
+
SeamConsoleV1LynxMigrationListPropertyReservationsParameters
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @deprecated Use SeamConsoleV1LynxMigrationListPropertyReservationsRequest instead.
|
|
313
|
+
*/
|
|
314
|
+
export type SeamConsoleV1LynxMigrationListPropertyReservationsResponse =
|
|
315
|
+
SetNonNullable<
|
|
316
|
+
Required<
|
|
317
|
+
RouteResponse<'/seam/console/v1/lynx_migration/list_property_reservations'>
|
|
318
|
+
>
|
|
319
|
+
>
|
|
320
|
+
|
|
321
|
+
export type SeamConsoleV1LynxMigrationListPropertyReservationsRequest =
|
|
322
|
+
SeamHttpRequest<
|
|
323
|
+
SeamConsoleV1LynxMigrationListPropertyReservationsResponse,
|
|
324
|
+
'lynx_migration_property_plan'
|
|
325
|
+
>
|
|
326
|
+
|
|
327
|
+
export interface SeamConsoleV1LynxMigrationListPropertyReservationsOptions {}
|
|
328
|
+
|
|
329
|
+
export type SeamConsoleV1LynxMigrationMigratePropertyParameters =
|
|
330
|
+
RouteRequestBody<'/seam/console/v1/lynx_migration/migrate_property'>
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* @deprecated Use SeamConsoleV1LynxMigrationMigratePropertyParameters instead.
|
|
334
|
+
*/
|
|
335
|
+
export type SeamConsoleV1LynxMigrationMigratePropertyBody =
|
|
336
|
+
SeamConsoleV1LynxMigrationMigratePropertyParameters
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @deprecated Use SeamConsoleV1LynxMigrationMigratePropertyRequest instead.
|
|
340
|
+
*/
|
|
341
|
+
export type SeamConsoleV1LynxMigrationMigratePropertyResponse = SetNonNullable<
|
|
342
|
+
Required<RouteResponse<'/seam/console/v1/lynx_migration/migrate_property'>>
|
|
343
|
+
>
|
|
344
|
+
|
|
345
|
+
export type SeamConsoleV1LynxMigrationMigratePropertyRequest = SeamHttpRequest<
|
|
346
|
+
SeamConsoleV1LynxMigrationMigratePropertyResponse,
|
|
347
|
+
'lynx_migration_property_run'
|
|
348
|
+
>
|
|
349
|
+
|
|
350
|
+
export interface SeamConsoleV1LynxMigrationMigratePropertyOptions {}
|
|
@@ -36,6 +36,7 @@ import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
|
36
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
37
37
|
import type { SetNonNullable } from 'lib/types.js'
|
|
38
38
|
|
|
39
|
+
import { SeamHttpSeamConsoleV1LynxMigration } from './lynx-migration/index.js'
|
|
39
40
|
import { SeamHttpSeamConsoleV1Sites } from './sites/index.js'
|
|
40
41
|
import { SeamHttpSeamConsoleV1Timelines } from './timelines/index.js'
|
|
41
42
|
|
|
@@ -171,6 +172,13 @@ export class SeamHttpSeamConsoleV1 {
|
|
|
171
172
|
await clientSessions.get()
|
|
172
173
|
}
|
|
173
174
|
|
|
175
|
+
get lynxMigration(): SeamHttpSeamConsoleV1LynxMigration {
|
|
176
|
+
return SeamHttpSeamConsoleV1LynxMigration.fromClient(
|
|
177
|
+
this.client,
|
|
178
|
+
this.defaults,
|
|
179
|
+
)
|
|
180
|
+
}
|
|
181
|
+
|
|
174
182
|
get sites(): SeamHttpSeamConsoleV1Sites {
|
|
175
183
|
return SeamHttpSeamConsoleV1Sites.fromClient(this.client, this.defaults)
|
|
176
184
|
}
|
|
@@ -611,6 +611,21 @@ import {
|
|
|
611
611
|
type SeamConsoleV1GetResourceLocatorRequest,
|
|
612
612
|
SeamHttpSeamConsoleV1,
|
|
613
613
|
} from './seam/console/v1/index.js'
|
|
614
|
+
import {
|
|
615
|
+
type SeamConsoleV1LynxMigrationGetPropertyMigrationStatusOptions,
|
|
616
|
+
type SeamConsoleV1LynxMigrationGetPropertyMigrationStatusParameters,
|
|
617
|
+
type SeamConsoleV1LynxMigrationGetPropertyMigrationStatusRequest,
|
|
618
|
+
type SeamConsoleV1LynxMigrationGetReservationMigrationStatusOptions,
|
|
619
|
+
type SeamConsoleV1LynxMigrationGetReservationMigrationStatusParameters,
|
|
620
|
+
type SeamConsoleV1LynxMigrationGetReservationMigrationStatusRequest,
|
|
621
|
+
type SeamConsoleV1LynxMigrationListPropertyReservationsOptions,
|
|
622
|
+
type SeamConsoleV1LynxMigrationListPropertyReservationsParameters,
|
|
623
|
+
type SeamConsoleV1LynxMigrationListPropertyReservationsRequest,
|
|
624
|
+
type SeamConsoleV1LynxMigrationMigratePropertyOptions,
|
|
625
|
+
type SeamConsoleV1LynxMigrationMigratePropertyParameters,
|
|
626
|
+
type SeamConsoleV1LynxMigrationMigratePropertyRequest,
|
|
627
|
+
SeamHttpSeamConsoleV1LynxMigration,
|
|
628
|
+
} from './seam/console/v1/lynx-migration/index.js'
|
|
614
629
|
import {
|
|
615
630
|
type SeamConsoleV1SitesCreateOptions,
|
|
616
631
|
type SeamConsoleV1SitesCreateParameters,
|
|
@@ -3309,6 +3324,102 @@ export class SeamHttpEndpoints {
|
|
|
3309
3324
|
}
|
|
3310
3325
|
}
|
|
3311
3326
|
|
|
3327
|
+
get '/seam/console/v1/lynx_migration/get_property_migration_status'(): (
|
|
3328
|
+
parameters?: SeamConsoleV1LynxMigrationGetPropertyMigrationStatusParameters,
|
|
3329
|
+
options?: SeamConsoleV1LynxMigrationGetPropertyMigrationStatusOptions,
|
|
3330
|
+
) => SeamConsoleV1LynxMigrationGetPropertyMigrationStatusRequest {
|
|
3331
|
+
const { client, defaults } = this
|
|
3332
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3333
|
+
throw new Error(
|
|
3334
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3335
|
+
)
|
|
3336
|
+
}
|
|
3337
|
+
return function seamConsoleV1LynxMigrationGetPropertyMigrationStatus(
|
|
3338
|
+
...args: Parameters<
|
|
3339
|
+
SeamHttpSeamConsoleV1LynxMigration['getPropertyMigrationStatus']
|
|
3340
|
+
>
|
|
3341
|
+
): ReturnType<
|
|
3342
|
+
SeamHttpSeamConsoleV1LynxMigration['getPropertyMigrationStatus']
|
|
3343
|
+
> {
|
|
3344
|
+
const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
|
|
3345
|
+
client,
|
|
3346
|
+
defaults,
|
|
3347
|
+
)
|
|
3348
|
+
return seam.getPropertyMigrationStatus(...args)
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
get '/seam/console/v1/lynx_migration/get_reservation_migration_status'(): (
|
|
3353
|
+
parameters?: SeamConsoleV1LynxMigrationGetReservationMigrationStatusParameters,
|
|
3354
|
+
options?: SeamConsoleV1LynxMigrationGetReservationMigrationStatusOptions,
|
|
3355
|
+
) => SeamConsoleV1LynxMigrationGetReservationMigrationStatusRequest {
|
|
3356
|
+
const { client, defaults } = this
|
|
3357
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3358
|
+
throw new Error(
|
|
3359
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3360
|
+
)
|
|
3361
|
+
}
|
|
3362
|
+
return function seamConsoleV1LynxMigrationGetReservationMigrationStatus(
|
|
3363
|
+
...args: Parameters<
|
|
3364
|
+
SeamHttpSeamConsoleV1LynxMigration['getReservationMigrationStatus']
|
|
3365
|
+
>
|
|
3366
|
+
): ReturnType<
|
|
3367
|
+
SeamHttpSeamConsoleV1LynxMigration['getReservationMigrationStatus']
|
|
3368
|
+
> {
|
|
3369
|
+
const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
|
|
3370
|
+
client,
|
|
3371
|
+
defaults,
|
|
3372
|
+
)
|
|
3373
|
+
return seam.getReservationMigrationStatus(...args)
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
get '/seam/console/v1/lynx_migration/list_property_reservations'(): (
|
|
3378
|
+
parameters?: SeamConsoleV1LynxMigrationListPropertyReservationsParameters,
|
|
3379
|
+
options?: SeamConsoleV1LynxMigrationListPropertyReservationsOptions,
|
|
3380
|
+
) => SeamConsoleV1LynxMigrationListPropertyReservationsRequest {
|
|
3381
|
+
const { client, defaults } = this
|
|
3382
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3383
|
+
throw new Error(
|
|
3384
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3385
|
+
)
|
|
3386
|
+
}
|
|
3387
|
+
return function seamConsoleV1LynxMigrationListPropertyReservations(
|
|
3388
|
+
...args: Parameters<
|
|
3389
|
+
SeamHttpSeamConsoleV1LynxMigration['listPropertyReservations']
|
|
3390
|
+
>
|
|
3391
|
+
): ReturnType<
|
|
3392
|
+
SeamHttpSeamConsoleV1LynxMigration['listPropertyReservations']
|
|
3393
|
+
> {
|
|
3394
|
+
const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
|
|
3395
|
+
client,
|
|
3396
|
+
defaults,
|
|
3397
|
+
)
|
|
3398
|
+
return seam.listPropertyReservations(...args)
|
|
3399
|
+
}
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3402
|
+
get '/seam/console/v1/lynx_migration/migrate_property'(): (
|
|
3403
|
+
parameters?: SeamConsoleV1LynxMigrationMigratePropertyParameters,
|
|
3404
|
+
options?: SeamConsoleV1LynxMigrationMigratePropertyOptions,
|
|
3405
|
+
) => SeamConsoleV1LynxMigrationMigratePropertyRequest {
|
|
3406
|
+
const { client, defaults } = this
|
|
3407
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3408
|
+
throw new Error(
|
|
3409
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3410
|
+
)
|
|
3411
|
+
}
|
|
3412
|
+
return function seamConsoleV1LynxMigrationMigrateProperty(
|
|
3413
|
+
...args: Parameters<SeamHttpSeamConsoleV1LynxMigration['migrateProperty']>
|
|
3414
|
+
): ReturnType<SeamHttpSeamConsoleV1LynxMigration['migrateProperty']> {
|
|
3415
|
+
const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
|
|
3416
|
+
client,
|
|
3417
|
+
defaults,
|
|
3418
|
+
)
|
|
3419
|
+
return seam.migrateProperty(...args)
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3312
3423
|
get '/seam/console/v1/sites/create'(): (
|
|
3313
3424
|
parameters?: SeamConsoleV1SitesCreateParameters,
|
|
3314
3425
|
options?: SeamConsoleV1SitesCreateOptions,
|
|
@@ -5375,6 +5486,9 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
5375
5486
|
| '/phones/get'
|
|
5376
5487
|
| '/phones/list'
|
|
5377
5488
|
| '/seam/console/v1/get_resource_locator'
|
|
5489
|
+
| '/seam/console/v1/lynx_migration/get_property_migration_status'
|
|
5490
|
+
| '/seam/console/v1/lynx_migration/get_reservation_migration_status'
|
|
5491
|
+
| '/seam/console/v1/lynx_migration/list_property_reservations'
|
|
5378
5492
|
| '/seam/console/v1/sites/list'
|
|
5379
5493
|
| '/seam/console/v1/timelines/get'
|
|
5380
5494
|
| '/seam/customer/v1/access_grants/list'
|
|
@@ -5535,6 +5649,7 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
5535
5649
|
| '/noise_sensors/simulate/trigger_noise_threshold'
|
|
5536
5650
|
| '/phones/deactivate'
|
|
5537
5651
|
| '/phones/simulate/create_sandbox_phone'
|
|
5652
|
+
| '/seam/console/v1/lynx_migration/migrate_property'
|
|
5538
5653
|
| '/seam/console/v1/sites/create'
|
|
5539
5654
|
| '/seam/console/v1/sites/delete'
|
|
5540
5655
|
| '/seam/console/v1/sites/update'
|
package/src/lib/version.ts
CHANGED