@seamapi/http 1.57.0 → 1.59.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.
Files changed (43) hide show
  1. package/dist/connect.cjs +200 -328
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +90 -146
  4. package/dist/index.cjs +202 -330
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/routes/index.d.ts +0 -1
  8. package/lib/seam/connect/routes/index.js +0 -1
  9. package/lib/seam/connect/routes/index.js.map +1 -1
  10. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +8 -12
  11. package/lib/seam/connect/routes/seam-http-endpoints.js +39 -91
  12. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  13. package/lib/seam/connect/routes/seam-http.d.ts +0 -2
  14. package/lib/seam/connect/routes/seam-http.js +0 -4
  15. package/lib/seam/connect/routes/seam-http.js.map +1 -1
  16. package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.d.ts +86 -0
  17. package/lib/seam/connect/routes/{unstable-locations/unstable-locations.js → workspaces/customization-profiles/customization-profiles.js} +29 -92
  18. package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.js.map +1 -0
  19. package/lib/seam/connect/routes/workspaces/customization-profiles/index.d.ts +1 -0
  20. package/lib/seam/connect/routes/{unstable-locations → workspaces/customization-profiles}/index.js +1 -1
  21. package/lib/seam/connect/routes/workspaces/customization-profiles/index.js.map +1 -0
  22. package/lib/seam/connect/routes/workspaces/index.d.ts +1 -0
  23. package/lib/seam/connect/routes/workspaces/index.js +1 -0
  24. package/lib/seam/connect/routes/workspaces/index.js.map +1 -1
  25. package/lib/seam/connect/routes/workspaces/workspaces.d.ts +2 -0
  26. package/lib/seam/connect/routes/workspaces/workspaces.js +4 -0
  27. package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
  28. package/lib/version.d.ts +1 -1
  29. package/lib/version.js +1 -1
  30. package/package.json +3 -3
  31. package/src/lib/seam/connect/routes/index.ts +0 -1
  32. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +110 -201
  33. package/src/lib/seam/connect/routes/seam-http.ts +0 -5
  34. package/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts +361 -0
  35. package/src/lib/seam/connect/routes/{unstable-locations → workspaces/customization-profiles}/index.ts +1 -1
  36. package/src/lib/seam/connect/routes/workspaces/index.ts +1 -0
  37. package/src/lib/seam/connect/routes/workspaces/workspaces.ts +9 -0
  38. package/src/lib/version.ts +1 -1
  39. package/lib/seam/connect/routes/unstable-locations/index.d.ts +0 -1
  40. package/lib/seam/connect/routes/unstable-locations/index.js.map +0 -1
  41. package/lib/seam/connect/routes/unstable-locations/unstable-locations.d.ts +0 -138
  42. package/lib/seam/connect/routes/unstable-locations/unstable-locations.js.map +0 -1
  43. package/src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts +0 -544
@@ -0,0 +1,361 @@
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 {
7
+ RouteRequestBody,
8
+ RouteRequestParams,
9
+ RouteResponse,
10
+ } from '@seamapi/types/connect'
11
+
12
+ import { seamApiLtsVersion } from 'lib/lts-version.js'
13
+ import {
14
+ getAuthHeadersForClientSessionToken,
15
+ warnOnInsecureuserIdentifierKey,
16
+ } from 'lib/seam/connect/auth.js'
17
+ import { type Client, createClient } from 'lib/seam/connect/client.js'
18
+ import {
19
+ isSeamHttpOptionsWithApiKey,
20
+ isSeamHttpOptionsWithClient,
21
+ isSeamHttpOptionsWithClientSessionToken,
22
+ isSeamHttpOptionsWithConsoleSessionToken,
23
+ isSeamHttpOptionsWithPersonalAccessToken,
24
+ type SeamHttpFromPublishableKeyOptions,
25
+ SeamHttpInvalidOptionsError,
26
+ type SeamHttpOptions,
27
+ type SeamHttpOptionsWithApiKey,
28
+ type SeamHttpOptionsWithClient,
29
+ type SeamHttpOptionsWithClientSessionToken,
30
+ type SeamHttpOptionsWithConsoleSessionToken,
31
+ type SeamHttpOptionsWithPersonalAccessToken,
32
+ type SeamHttpRequestOptions,
33
+ } from 'lib/seam/connect/options.js'
34
+ import {
35
+ limitToSeamHttpRequestOptions,
36
+ parseOptions,
37
+ } from 'lib/seam/connect/parse-options.js'
38
+ import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
39
+ import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
40
+ import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
41
+ import type { SetNonNullable } from 'lib/types.js'
42
+
43
+ export class SeamHttpWorkspacesCustomizationProfiles {
44
+ client: Client
45
+ readonly defaults: Required<SeamHttpRequestOptions>
46
+ readonly ltsVersion = seamApiLtsVersion
47
+ static ltsVersion = seamApiLtsVersion
48
+
49
+ constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
50
+ const options = parseOptions(apiKeyOrOptions)
51
+ this.client = 'client' in options ? options.client : createClient(options)
52
+ this.defaults = limitToSeamHttpRequestOptions(options)
53
+ }
54
+
55
+ static fromClient(
56
+ client: SeamHttpOptionsWithClient['client'],
57
+ options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
58
+ ): SeamHttpWorkspacesCustomizationProfiles {
59
+ const constructorOptions = { ...options, client }
60
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
61
+ throw new SeamHttpInvalidOptionsError('Missing client')
62
+ }
63
+ return new SeamHttpWorkspacesCustomizationProfiles(constructorOptions)
64
+ }
65
+
66
+ static fromApiKey(
67
+ apiKey: SeamHttpOptionsWithApiKey['apiKey'],
68
+ options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
69
+ ): SeamHttpWorkspacesCustomizationProfiles {
70
+ const constructorOptions = { ...options, apiKey }
71
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
72
+ throw new SeamHttpInvalidOptionsError('Missing apiKey')
73
+ }
74
+ return new SeamHttpWorkspacesCustomizationProfiles(constructorOptions)
75
+ }
76
+
77
+ static fromClientSessionToken(
78
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
79
+ options: Omit<
80
+ SeamHttpOptionsWithClientSessionToken,
81
+ 'clientSessionToken'
82
+ > = {},
83
+ ): SeamHttpWorkspacesCustomizationProfiles {
84
+ const constructorOptions = { ...options, clientSessionToken }
85
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
86
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
87
+ }
88
+ return new SeamHttpWorkspacesCustomizationProfiles(constructorOptions)
89
+ }
90
+
91
+ static async fromPublishableKey(
92
+ publishableKey: string,
93
+ userIdentifierKey: string,
94
+ options: SeamHttpFromPublishableKeyOptions = {},
95
+ ): Promise<SeamHttpWorkspacesCustomizationProfiles> {
96
+ warnOnInsecureuserIdentifierKey(userIdentifierKey)
97
+ const clientOptions = parseOptions({ ...options, publishableKey })
98
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
99
+ throw new SeamHttpInvalidOptionsError(
100
+ 'The client option cannot be used with SeamHttpWorkspacesCustomizationProfiles.fromPublishableKey',
101
+ )
102
+ }
103
+ const client = createClient(clientOptions)
104
+ const clientSessions = SeamHttpClientSessions.fromClient(client)
105
+ const { token } = await clientSessions.getOrCreate({
106
+ user_identifier_key: userIdentifierKey,
107
+ })
108
+ return SeamHttpWorkspacesCustomizationProfiles.fromClientSessionToken(
109
+ token,
110
+ options,
111
+ )
112
+ }
113
+
114
+ static fromConsoleSessionToken(
115
+ consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
116
+ workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
117
+ options: Omit<
118
+ SeamHttpOptionsWithConsoleSessionToken,
119
+ 'consoleSessionToken' | 'workspaceId'
120
+ > = {},
121
+ ): SeamHttpWorkspacesCustomizationProfiles {
122
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId }
123
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
124
+ throw new SeamHttpInvalidOptionsError(
125
+ 'Missing consoleSessionToken or workspaceId',
126
+ )
127
+ }
128
+ return new SeamHttpWorkspacesCustomizationProfiles(constructorOptions)
129
+ }
130
+
131
+ static fromPersonalAccessToken(
132
+ personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
133
+ workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
134
+ options: Omit<
135
+ SeamHttpOptionsWithPersonalAccessToken,
136
+ 'personalAccessToken' | 'workspaceId'
137
+ > = {},
138
+ ): SeamHttpWorkspacesCustomizationProfiles {
139
+ const constructorOptions = { ...options, personalAccessToken, workspaceId }
140
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
141
+ throw new SeamHttpInvalidOptionsError(
142
+ 'Missing personalAccessToken or workspaceId',
143
+ )
144
+ }
145
+ return new SeamHttpWorkspacesCustomizationProfiles(constructorOptions)
146
+ }
147
+
148
+ createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
149
+ request: SeamHttpRequest<TResponse, TResponseKey>,
150
+ ): SeamPaginator<TResponse, TResponseKey> {
151
+ return new SeamPaginator<TResponse, TResponseKey>(this, request)
152
+ }
153
+
154
+ async updateClientSessionToken(
155
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
156
+ ): Promise<void> {
157
+ const { headers } = this.client.defaults
158
+ const authHeaders = getAuthHeadersForClientSessionToken({
159
+ clientSessionToken,
160
+ })
161
+ for (const key of Object.keys(authHeaders)) {
162
+ if (headers[key] == null) {
163
+ throw new Error(
164
+ 'Cannot update a clientSessionToken on a client created without a clientSessionToken',
165
+ )
166
+ }
167
+ }
168
+ this.client.defaults.headers = { ...headers, ...authHeaders }
169
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client)
170
+ await clientSessions.get()
171
+ }
172
+
173
+ create(
174
+ parameters?: WorkspacesCustomizationProfilesCreateParameters,
175
+ options: WorkspacesCustomizationProfilesCreateOptions = {},
176
+ ): WorkspacesCustomizationProfilesCreateRequest {
177
+ return new SeamHttpRequest(this, {
178
+ pathname: '/workspaces/customization_profiles/create',
179
+ method: 'POST',
180
+ body: parameters,
181
+ responseKey: 'customization_profile',
182
+ options,
183
+ })
184
+ }
185
+
186
+ get(
187
+ parameters?: WorkspacesCustomizationProfilesGetParameters,
188
+ options: WorkspacesCustomizationProfilesGetOptions = {},
189
+ ): WorkspacesCustomizationProfilesGetRequest {
190
+ return new SeamHttpRequest(this, {
191
+ pathname: '/workspaces/customization_profiles/get',
192
+ method: 'POST',
193
+ body: parameters,
194
+ responseKey: 'customization_profile',
195
+ options,
196
+ })
197
+ }
198
+
199
+ list(
200
+ parameters?: WorkspacesCustomizationProfilesListParameters,
201
+ options: WorkspacesCustomizationProfilesListOptions = {},
202
+ ): WorkspacesCustomizationProfilesListRequest {
203
+ return new SeamHttpRequest(this, {
204
+ pathname: '/workspaces/customization_profiles/list',
205
+ method: 'GET',
206
+ params: parameters,
207
+ responseKey: 'customization_profiles',
208
+ options,
209
+ })
210
+ }
211
+
212
+ update(
213
+ parameters?: WorkspacesCustomizationProfilesUpdateParameters,
214
+ options: WorkspacesCustomizationProfilesUpdateOptions = {},
215
+ ): WorkspacesCustomizationProfilesUpdateRequest {
216
+ return new SeamHttpRequest(this, {
217
+ pathname: '/workspaces/customization_profiles/update',
218
+ method: 'PATCH',
219
+ body: parameters,
220
+ responseKey: undefined,
221
+ options,
222
+ })
223
+ }
224
+
225
+ uploadImages(
226
+ parameters?: WorkspacesCustomizationProfilesUploadImagesParameters,
227
+ options: WorkspacesCustomizationProfilesUploadImagesOptions = {},
228
+ ): WorkspacesCustomizationProfilesUploadImagesRequest {
229
+ if (!this.defaults.isUndocumentedApiEnabled) {
230
+ throw new Error(
231
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
232
+ )
233
+ }
234
+ return new SeamHttpRequest(this, {
235
+ pathname: '/workspaces/customization_profiles/upload_images',
236
+ method: 'POST',
237
+ body: parameters,
238
+ responseKey: undefined,
239
+ options,
240
+ })
241
+ }
242
+ }
243
+
244
+ export type WorkspacesCustomizationProfilesCreateParameters =
245
+ RouteRequestBody<'/workspaces/customization_profiles/create'>
246
+
247
+ /**
248
+ * @deprecated Use WorkspacesCustomizationProfilesCreateParameters instead.
249
+ */
250
+ export type WorkspacesCustomizationProfilesCreateBody =
251
+ WorkspacesCustomizationProfilesCreateParameters
252
+
253
+ /**
254
+ * @deprecated Use WorkspacesCustomizationProfilesCreateRequest instead.
255
+ */
256
+ export type WorkspacesCustomizationProfilesCreateResponse = SetNonNullable<
257
+ Required<RouteResponse<'/workspaces/customization_profiles/create'>>
258
+ >
259
+
260
+ export type WorkspacesCustomizationProfilesCreateRequest = SeamHttpRequest<
261
+ WorkspacesCustomizationProfilesCreateResponse,
262
+ 'customization_profile'
263
+ >
264
+
265
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
266
+ export interface WorkspacesCustomizationProfilesCreateOptions {}
267
+
268
+ export type WorkspacesCustomizationProfilesGetParameters =
269
+ RouteRequestBody<'/workspaces/customization_profiles/get'>
270
+
271
+ /**
272
+ * @deprecated Use WorkspacesCustomizationProfilesGetParameters instead.
273
+ */
274
+ export type WorkspacesCustomizationProfilesGetParams =
275
+ WorkspacesCustomizationProfilesGetParameters
276
+
277
+ /**
278
+ * @deprecated Use WorkspacesCustomizationProfilesGetRequest instead.
279
+ */
280
+ export type WorkspacesCustomizationProfilesGetResponse = SetNonNullable<
281
+ Required<RouteResponse<'/workspaces/customization_profiles/get'>>
282
+ >
283
+
284
+ export type WorkspacesCustomizationProfilesGetRequest = SeamHttpRequest<
285
+ WorkspacesCustomizationProfilesGetResponse,
286
+ 'customization_profile'
287
+ >
288
+
289
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
290
+ export interface WorkspacesCustomizationProfilesGetOptions {}
291
+
292
+ export type WorkspacesCustomizationProfilesListParameters =
293
+ RouteRequestParams<'/workspaces/customization_profiles/list'>
294
+
295
+ /**
296
+ * @deprecated Use WorkspacesCustomizationProfilesListParameters instead.
297
+ */
298
+ export type WorkspacesCustomizationProfilesListParams =
299
+ WorkspacesCustomizationProfilesListParameters
300
+
301
+ /**
302
+ * @deprecated Use WorkspacesCustomizationProfilesListRequest instead.
303
+ */
304
+ export type WorkspacesCustomizationProfilesListResponse = SetNonNullable<
305
+ Required<RouteResponse<'/workspaces/customization_profiles/list'>>
306
+ >
307
+
308
+ export type WorkspacesCustomizationProfilesListRequest = SeamHttpRequest<
309
+ WorkspacesCustomizationProfilesListResponse,
310
+ 'customization_profiles'
311
+ >
312
+
313
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
314
+ export interface WorkspacesCustomizationProfilesListOptions {}
315
+
316
+ export type WorkspacesCustomizationProfilesUpdateParameters =
317
+ RouteRequestBody<'/workspaces/customization_profiles/update'>
318
+
319
+ /**
320
+ * @deprecated Use WorkspacesCustomizationProfilesUpdateParameters instead.
321
+ */
322
+ export type WorkspacesCustomizationProfilesUpdateBody =
323
+ WorkspacesCustomizationProfilesUpdateParameters
324
+
325
+ /**
326
+ * @deprecated Use WorkspacesCustomizationProfilesUpdateRequest instead.
327
+ */
328
+ export type WorkspacesCustomizationProfilesUpdateResponse = SetNonNullable<
329
+ Required<RouteResponse<'/workspaces/customization_profiles/update'>>
330
+ >
331
+
332
+ export type WorkspacesCustomizationProfilesUpdateRequest = SeamHttpRequest<
333
+ void,
334
+ undefined
335
+ >
336
+
337
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
338
+ export interface WorkspacesCustomizationProfilesUpdateOptions {}
339
+
340
+ export type WorkspacesCustomizationProfilesUploadImagesParameters =
341
+ RouteRequestBody<'/workspaces/customization_profiles/upload_images'>
342
+
343
+ /**
344
+ * @deprecated Use WorkspacesCustomizationProfilesUploadImagesParameters instead.
345
+ */
346
+ export type WorkspacesCustomizationProfilesUploadImagesBody =
347
+ WorkspacesCustomizationProfilesUploadImagesParameters
348
+
349
+ /**
350
+ * @deprecated Use WorkspacesCustomizationProfilesUploadImagesRequest instead.
351
+ */
352
+ export type WorkspacesCustomizationProfilesUploadImagesResponse =
353
+ SetNonNullable<
354
+ Required<RouteResponse<'/workspaces/customization_profiles/upload_images'>>
355
+ >
356
+
357
+ export type WorkspacesCustomizationProfilesUploadImagesRequest =
358
+ SeamHttpRequest<void, undefined>
359
+
360
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
361
+ export interface WorkspacesCustomizationProfilesUploadImagesOptions {}
@@ -3,4 +3,4 @@
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
- export * from './unstable-locations.js'
6
+ export * from './customization-profiles.js'
@@ -3,4 +3,5 @@
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
+ export * from './customization-profiles/index.js'
6
7
  export * from './workspaces.js'
@@ -40,6 +40,8 @@ import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
40
40
  import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
41
41
  import type { SetNonNullable } from 'lib/types.js'
42
42
 
43
+ import { SeamHttpWorkspacesCustomizationProfiles } from './customization-profiles/index.js'
44
+
43
45
  export class SeamHttpWorkspaces {
44
46
  client: Client
45
47
  readonly defaults: Required<SeamHttpRequestOptions>
@@ -167,6 +169,13 @@ export class SeamHttpWorkspaces {
167
169
  await clientSessions.get()
168
170
  }
169
171
 
172
+ get customizationProfiles(): SeamHttpWorkspacesCustomizationProfiles {
173
+ return SeamHttpWorkspacesCustomizationProfiles.fromClient(
174
+ this.client,
175
+ this.defaults,
176
+ )
177
+ }
178
+
170
179
  create(
171
180
  parameters?: WorkspacesCreateParameters,
172
181
  options: WorkspacesCreateOptions = {},
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '1.57.0'
1
+ const seamapiJavascriptHttpVersion = '1.59.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion
@@ -1 +0,0 @@
1
- export * from './unstable-locations.js';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/unstable-locations/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,yBAAyB,CAAA"}
@@ -1,138 +0,0 @@
1
- import type { RouteRequestBody, RouteRequestParams, RouteResponse } from '@seamapi/types/connect';
2
- import { type Client } from '../../../../../lib/seam/connect/client.js';
3
- import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../../lib/seam/connect/options.js';
4
- import { SeamHttpRequest } from '../../../../../lib/seam/connect/seam-http-request.js';
5
- import { SeamPaginator } from '../../../../../lib/seam/connect/seam-paginator.js';
6
- import type { SetNonNullable } from '../../../../../lib/types.js';
7
- export declare class SeamHttpUnstableLocations {
8
- client: Client;
9
- readonly defaults: Required<SeamHttpRequestOptions>;
10
- readonly ltsVersion = "1.0.0";
11
- static ltsVersion: string;
12
- constructor(apiKeyOrOptions?: string | SeamHttpOptions);
13
- static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpUnstableLocations;
14
- static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpUnstableLocations;
15
- static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpUnstableLocations;
16
- static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpUnstableLocations>;
17
- static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpUnstableLocations;
18
- static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpUnstableLocations;
19
- createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
20
- updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
21
- addAcsEntrances(parameters?: UnstableLocationsAddAcsEntrancesParameters, options?: UnstableLocationsAddAcsEntrancesOptions): UnstableLocationsAddAcsEntrancesRequest;
22
- addDevices(parameters?: UnstableLocationsAddDevicesParameters, options?: UnstableLocationsAddDevicesOptions): UnstableLocationsAddDevicesRequest;
23
- create(parameters?: UnstableLocationsCreateParameters, options?: UnstableLocationsCreateOptions): UnstableLocationsCreateRequest;
24
- delete(parameters?: UnstableLocationsDeleteParameters, options?: UnstableLocationsDeleteOptions): UnstableLocationsDeleteRequest;
25
- get(parameters?: UnstableLocationsGetParameters, options?: UnstableLocationsGetOptions): UnstableLocationsGetRequest;
26
- list(parameters?: UnstableLocationsListParameters, options?: UnstableLocationsListOptions): UnstableLocationsListRequest;
27
- removeAcsEntrances(parameters?: UnstableLocationsRemoveAcsEntrancesParameters, options?: UnstableLocationsRemoveAcsEntrancesOptions): UnstableLocationsRemoveAcsEntrancesRequest;
28
- removeDevices(parameters?: UnstableLocationsRemoveDevicesParameters, options?: UnstableLocationsRemoveDevicesOptions): UnstableLocationsRemoveDevicesRequest;
29
- update(parameters?: UnstableLocationsUpdateParameters, options?: UnstableLocationsUpdateOptions): UnstableLocationsUpdateRequest;
30
- }
31
- export type UnstableLocationsAddAcsEntrancesParameters = RouteRequestBody<'/unstable_locations/add_acs_entrances'>;
32
- /**
33
- * @deprecated Use UnstableLocationsAddAcsEntrancesParameters instead.
34
- */
35
- export type UnstableLocationsAddAcsEntrancesBody = UnstableLocationsAddAcsEntrancesParameters;
36
- /**
37
- * @deprecated Use UnstableLocationsAddAcsEntrancesRequest instead.
38
- */
39
- export type UnstableLocationsAddAcsEntrancesResponse = SetNonNullable<Required<RouteResponse<'/unstable_locations/add_acs_entrances'>>>;
40
- export type UnstableLocationsAddAcsEntrancesRequest = SeamHttpRequest<void, undefined>;
41
- export interface UnstableLocationsAddAcsEntrancesOptions {
42
- }
43
- export type UnstableLocationsAddDevicesParameters = RouteRequestBody<'/unstable_locations/add_devices'>;
44
- /**
45
- * @deprecated Use UnstableLocationsAddDevicesParameters instead.
46
- */
47
- export type UnstableLocationsAddDevicesBody = UnstableLocationsAddDevicesParameters;
48
- /**
49
- * @deprecated Use UnstableLocationsAddDevicesRequest instead.
50
- */
51
- export type UnstableLocationsAddDevicesResponse = SetNonNullable<Required<RouteResponse<'/unstable_locations/add_devices'>>>;
52
- export type UnstableLocationsAddDevicesRequest = SeamHttpRequest<void, undefined>;
53
- export interface UnstableLocationsAddDevicesOptions {
54
- }
55
- export type UnstableLocationsCreateParameters = RouteRequestBody<'/unstable_locations/create'>;
56
- /**
57
- * @deprecated Use UnstableLocationsCreateParameters instead.
58
- */
59
- export type UnstableLocationsCreateBody = UnstableLocationsCreateParameters;
60
- /**
61
- * @deprecated Use UnstableLocationsCreateRequest instead.
62
- */
63
- export type UnstableLocationsCreateResponse = SetNonNullable<Required<RouteResponse<'/unstable_locations/create'>>>;
64
- export type UnstableLocationsCreateRequest = SeamHttpRequest<UnstableLocationsCreateResponse, 'location'>;
65
- export interface UnstableLocationsCreateOptions {
66
- }
67
- export type UnstableLocationsDeleteParameters = RouteRequestBody<'/unstable_locations/delete'>;
68
- /**
69
- * @deprecated Use UnstableLocationsDeleteParameters instead.
70
- */
71
- export type UnstableLocationsDeleteParams = UnstableLocationsDeleteParameters;
72
- /**
73
- * @deprecated Use UnstableLocationsDeleteRequest instead.
74
- */
75
- export type UnstableLocationsDeleteResponse = SetNonNullable<Required<RouteResponse<'/unstable_locations/delete'>>>;
76
- export type UnstableLocationsDeleteRequest = SeamHttpRequest<void, undefined>;
77
- export interface UnstableLocationsDeleteOptions {
78
- }
79
- export type UnstableLocationsGetParameters = RouteRequestBody<'/unstable_locations/get'>;
80
- /**
81
- * @deprecated Use UnstableLocationsGetParameters instead.
82
- */
83
- export type UnstableLocationsGetParams = UnstableLocationsGetParameters;
84
- /**
85
- * @deprecated Use UnstableLocationsGetRequest instead.
86
- */
87
- export type UnstableLocationsGetResponse = SetNonNullable<Required<RouteResponse<'/unstable_locations/get'>>>;
88
- export type UnstableLocationsGetRequest = SeamHttpRequest<UnstableLocationsGetResponse, 'location'>;
89
- export interface UnstableLocationsGetOptions {
90
- }
91
- export type UnstableLocationsListParameters = RouteRequestParams<'/unstable_locations/list'>;
92
- /**
93
- * @deprecated Use UnstableLocationsListParameters instead.
94
- */
95
- export type UnstableLocationsListParams = UnstableLocationsListParameters;
96
- /**
97
- * @deprecated Use UnstableLocationsListRequest instead.
98
- */
99
- export type UnstableLocationsListResponse = SetNonNullable<Required<RouteResponse<'/unstable_locations/list'>>>;
100
- export type UnstableLocationsListRequest = SeamHttpRequest<UnstableLocationsListResponse, 'locations'>;
101
- export interface UnstableLocationsListOptions {
102
- }
103
- export type UnstableLocationsRemoveAcsEntrancesParameters = RouteRequestBody<'/unstable_locations/remove_acs_entrances'>;
104
- /**
105
- * @deprecated Use UnstableLocationsRemoveAcsEntrancesParameters instead.
106
- */
107
- export type UnstableLocationsRemoveAcsEntrancesParams = UnstableLocationsRemoveAcsEntrancesParameters;
108
- /**
109
- * @deprecated Use UnstableLocationsRemoveAcsEntrancesRequest instead.
110
- */
111
- export type UnstableLocationsRemoveAcsEntrancesResponse = SetNonNullable<Required<RouteResponse<'/unstable_locations/remove_acs_entrances'>>>;
112
- export type UnstableLocationsRemoveAcsEntrancesRequest = SeamHttpRequest<void, undefined>;
113
- export interface UnstableLocationsRemoveAcsEntrancesOptions {
114
- }
115
- export type UnstableLocationsRemoveDevicesParameters = RouteRequestBody<'/unstable_locations/remove_devices'>;
116
- /**
117
- * @deprecated Use UnstableLocationsRemoveDevicesParameters instead.
118
- */
119
- export type UnstableLocationsRemoveDevicesParams = UnstableLocationsRemoveDevicesParameters;
120
- /**
121
- * @deprecated Use UnstableLocationsRemoveDevicesRequest instead.
122
- */
123
- export type UnstableLocationsRemoveDevicesResponse = SetNonNullable<Required<RouteResponse<'/unstable_locations/remove_devices'>>>;
124
- export type UnstableLocationsRemoveDevicesRequest = SeamHttpRequest<void, undefined>;
125
- export interface UnstableLocationsRemoveDevicesOptions {
126
- }
127
- export type UnstableLocationsUpdateParameters = RouteRequestBody<'/unstable_locations/update'>;
128
- /**
129
- * @deprecated Use UnstableLocationsUpdateParameters instead.
130
- */
131
- export type UnstableLocationsUpdateBody = UnstableLocationsUpdateParameters;
132
- /**
133
- * @deprecated Use UnstableLocationsUpdateRequest instead.
134
- */
135
- export type UnstableLocationsUpdateResponse = SetNonNullable<Required<RouteResponse<'/unstable_locations/update'>>>;
136
- export type UnstableLocationsUpdateRequest = SeamHttpRequest<UnstableLocationsUpdateResponse, 'location'>;
137
- export interface UnstableLocationsUpdateOptions {
138
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"unstable-locations.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAA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