@seamapi/http 1.56.0 → 1.57.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 +0 -370
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3 -135
- package/dist/index.cjs +0 -374
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/index.d.ts +0 -2
- package/lib/seam/connect/routes/index.js +0 -2
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +2 -11
- package/lib/seam/connect/routes/seam-http-endpoints.js +0 -72
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/seam-http.d.ts +0 -4
- package/lib/seam/connect/routes/seam-http.js +0 -8
- 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 +0 -2
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +0 -160
- package/src/lib/seam/connect/routes/seam-http.ts +0 -10
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/unstable-access-grants/index.d.ts +0 -1
- package/lib/seam/connect/routes/unstable-access-grants/index.js +0 -6
- package/lib/seam/connect/routes/unstable-access-grants/index.js.map +0 -1
- package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.d.ts +0 -73
- package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.js +0 -138
- package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.js.map +0 -1
- package/lib/seam/connect/routes/unstable-access-methods/index.d.ts +0 -1
- package/lib/seam/connect/routes/unstable-access-methods/index.js +0 -6
- package/lib/seam/connect/routes/unstable-access-methods/index.js.map +0 -1
- package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.d.ts +0 -60
- package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.js +0 -126
- package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.js.map +0 -1
- package/src/lib/seam/connect/routes/unstable-access-grants/index.ts +0 -6
- package/src/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.ts +0 -333
- package/src/lib/seam/connect/routes/unstable-access-methods/index.ts +0 -6
- package/src/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.ts +0 -295
|
@@ -707,33 +707,6 @@ import {
|
|
|
707
707
|
type ThermostatsSimulateTemperatureReachedParameters,
|
|
708
708
|
type ThermostatsSimulateTemperatureReachedRequest,
|
|
709
709
|
} from './thermostats/simulate/index.js'
|
|
710
|
-
import {
|
|
711
|
-
SeamHttpUnstableAccessGrants,
|
|
712
|
-
type UnstableAccessGrantsCreateOptions,
|
|
713
|
-
type UnstableAccessGrantsCreateParameters,
|
|
714
|
-
type UnstableAccessGrantsCreateRequest,
|
|
715
|
-
type UnstableAccessGrantsDeleteOptions,
|
|
716
|
-
type UnstableAccessGrantsDeleteParameters,
|
|
717
|
-
type UnstableAccessGrantsDeleteRequest,
|
|
718
|
-
type UnstableAccessGrantsGetOptions,
|
|
719
|
-
type UnstableAccessGrantsGetParameters,
|
|
720
|
-
type UnstableAccessGrantsGetRequest,
|
|
721
|
-
type UnstableAccessGrantsListOptions,
|
|
722
|
-
type UnstableAccessGrantsListParameters,
|
|
723
|
-
type UnstableAccessGrantsListRequest,
|
|
724
|
-
} from './unstable-access-grants/index.js'
|
|
725
|
-
import {
|
|
726
|
-
SeamHttpUnstableAccessMethods,
|
|
727
|
-
type UnstableAccessMethodsDeleteOptions,
|
|
728
|
-
type UnstableAccessMethodsDeleteParameters,
|
|
729
|
-
type UnstableAccessMethodsDeleteRequest,
|
|
730
|
-
type UnstableAccessMethodsGetOptions,
|
|
731
|
-
type UnstableAccessMethodsGetParameters,
|
|
732
|
-
type UnstableAccessMethodsGetRequest,
|
|
733
|
-
type UnstableAccessMethodsListOptions,
|
|
734
|
-
type UnstableAccessMethodsListParameters,
|
|
735
|
-
type UnstableAccessMethodsListRequest,
|
|
736
|
-
} from './unstable-access-methods/index.js'
|
|
737
710
|
import {
|
|
738
711
|
SeamHttpUnstableLocations,
|
|
739
712
|
type UnstableLocationsAddAcsEntrancesOptions,
|
|
@@ -3485,132 +3458,6 @@ export class SeamHttpEndpoints {
|
|
|
3485
3458
|
}
|
|
3486
3459
|
}
|
|
3487
3460
|
|
|
3488
|
-
get ['/unstable_access_grants/create'](): (
|
|
3489
|
-
parameters?: UnstableAccessGrantsCreateParameters,
|
|
3490
|
-
options?: UnstableAccessGrantsCreateOptions,
|
|
3491
|
-
) => UnstableAccessGrantsCreateRequest {
|
|
3492
|
-
const { client, defaults } = this
|
|
3493
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3494
|
-
throw new Error(
|
|
3495
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3496
|
-
)
|
|
3497
|
-
}
|
|
3498
|
-
return function unstableAccessGrantsCreate(
|
|
3499
|
-
...args: Parameters<SeamHttpUnstableAccessGrants['create']>
|
|
3500
|
-
): ReturnType<SeamHttpUnstableAccessGrants['create']> {
|
|
3501
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults)
|
|
3502
|
-
return seam.create(...args)
|
|
3503
|
-
}
|
|
3504
|
-
}
|
|
3505
|
-
|
|
3506
|
-
get ['/unstable_access_grants/delete'](): (
|
|
3507
|
-
parameters?: UnstableAccessGrantsDeleteParameters,
|
|
3508
|
-
options?: UnstableAccessGrantsDeleteOptions,
|
|
3509
|
-
) => UnstableAccessGrantsDeleteRequest {
|
|
3510
|
-
const { client, defaults } = this
|
|
3511
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3512
|
-
throw new Error(
|
|
3513
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3514
|
-
)
|
|
3515
|
-
}
|
|
3516
|
-
return function unstableAccessGrantsDelete(
|
|
3517
|
-
...args: Parameters<SeamHttpUnstableAccessGrants['delete']>
|
|
3518
|
-
): ReturnType<SeamHttpUnstableAccessGrants['delete']> {
|
|
3519
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults)
|
|
3520
|
-
return seam.delete(...args)
|
|
3521
|
-
}
|
|
3522
|
-
}
|
|
3523
|
-
|
|
3524
|
-
get ['/unstable_access_grants/get'](): (
|
|
3525
|
-
parameters?: UnstableAccessGrantsGetParameters,
|
|
3526
|
-
options?: UnstableAccessGrantsGetOptions,
|
|
3527
|
-
) => UnstableAccessGrantsGetRequest {
|
|
3528
|
-
const { client, defaults } = this
|
|
3529
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3530
|
-
throw new Error(
|
|
3531
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3532
|
-
)
|
|
3533
|
-
}
|
|
3534
|
-
return function unstableAccessGrantsGet(
|
|
3535
|
-
...args: Parameters<SeamHttpUnstableAccessGrants['get']>
|
|
3536
|
-
): ReturnType<SeamHttpUnstableAccessGrants['get']> {
|
|
3537
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults)
|
|
3538
|
-
return seam.get(...args)
|
|
3539
|
-
}
|
|
3540
|
-
}
|
|
3541
|
-
|
|
3542
|
-
get ['/unstable_access_grants/list'](): (
|
|
3543
|
-
parameters?: UnstableAccessGrantsListParameters,
|
|
3544
|
-
options?: UnstableAccessGrantsListOptions,
|
|
3545
|
-
) => UnstableAccessGrantsListRequest {
|
|
3546
|
-
const { client, defaults } = this
|
|
3547
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3548
|
-
throw new Error(
|
|
3549
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3550
|
-
)
|
|
3551
|
-
}
|
|
3552
|
-
return function unstableAccessGrantsList(
|
|
3553
|
-
...args: Parameters<SeamHttpUnstableAccessGrants['list']>
|
|
3554
|
-
): ReturnType<SeamHttpUnstableAccessGrants['list']> {
|
|
3555
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults)
|
|
3556
|
-
return seam.list(...args)
|
|
3557
|
-
}
|
|
3558
|
-
}
|
|
3559
|
-
|
|
3560
|
-
get ['/unstable_access_methods/delete'](): (
|
|
3561
|
-
parameters?: UnstableAccessMethodsDeleteParameters,
|
|
3562
|
-
options?: UnstableAccessMethodsDeleteOptions,
|
|
3563
|
-
) => UnstableAccessMethodsDeleteRequest {
|
|
3564
|
-
const { client, defaults } = this
|
|
3565
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3566
|
-
throw new Error(
|
|
3567
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3568
|
-
)
|
|
3569
|
-
}
|
|
3570
|
-
return function unstableAccessMethodsDelete(
|
|
3571
|
-
...args: Parameters<SeamHttpUnstableAccessMethods['delete']>
|
|
3572
|
-
): ReturnType<SeamHttpUnstableAccessMethods['delete']> {
|
|
3573
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults)
|
|
3574
|
-
return seam.delete(...args)
|
|
3575
|
-
}
|
|
3576
|
-
}
|
|
3577
|
-
|
|
3578
|
-
get ['/unstable_access_methods/get'](): (
|
|
3579
|
-
parameters?: UnstableAccessMethodsGetParameters,
|
|
3580
|
-
options?: UnstableAccessMethodsGetOptions,
|
|
3581
|
-
) => UnstableAccessMethodsGetRequest {
|
|
3582
|
-
const { client, defaults } = this
|
|
3583
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3584
|
-
throw new Error(
|
|
3585
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3586
|
-
)
|
|
3587
|
-
}
|
|
3588
|
-
return function unstableAccessMethodsGet(
|
|
3589
|
-
...args: Parameters<SeamHttpUnstableAccessMethods['get']>
|
|
3590
|
-
): ReturnType<SeamHttpUnstableAccessMethods['get']> {
|
|
3591
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults)
|
|
3592
|
-
return seam.get(...args)
|
|
3593
|
-
}
|
|
3594
|
-
}
|
|
3595
|
-
|
|
3596
|
-
get ['/unstable_access_methods/list'](): (
|
|
3597
|
-
parameters?: UnstableAccessMethodsListParameters,
|
|
3598
|
-
options?: UnstableAccessMethodsListOptions,
|
|
3599
|
-
) => UnstableAccessMethodsListRequest {
|
|
3600
|
-
const { client, defaults } = this
|
|
3601
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3602
|
-
throw new Error(
|
|
3603
|
-
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3604
|
-
)
|
|
3605
|
-
}
|
|
3606
|
-
return function unstableAccessMethodsList(
|
|
3607
|
-
...args: Parameters<SeamHttpUnstableAccessMethods['list']>
|
|
3608
|
-
): ReturnType<SeamHttpUnstableAccessMethods['list']> {
|
|
3609
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults)
|
|
3610
|
-
return seam.list(...args)
|
|
3611
|
-
}
|
|
3612
|
-
}
|
|
3613
|
-
|
|
3614
3461
|
get ['/unstable_locations/add_acs_entrances'](): (
|
|
3615
3462
|
parameters?: UnstableLocationsAddAcsEntrancesParameters,
|
|
3616
3463
|
options?: UnstableLocationsAddAcsEntrancesOptions,
|
|
@@ -4344,10 +4191,6 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4344
4191
|
| '/thermostats/list'
|
|
4345
4192
|
| '/thermostats/schedules/get'
|
|
4346
4193
|
| '/thermostats/schedules/list'
|
|
4347
|
-
| '/unstable_access_grants/get'
|
|
4348
|
-
| '/unstable_access_grants/list'
|
|
4349
|
-
| '/unstable_access_methods/get'
|
|
4350
|
-
| '/unstable_access_methods/list'
|
|
4351
4194
|
| '/unstable_locations/get'
|
|
4352
4195
|
| '/unstable_locations/list'
|
|
4353
4196
|
| '/unstable_partner/building_blocks/generate_magic_link'
|
|
@@ -4476,9 +4319,6 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4476
4319
|
| '/thermostats/schedules/update'
|
|
4477
4320
|
| '/thermostats/simulate/hvac_mode_adjusted'
|
|
4478
4321
|
| '/thermostats/simulate/temperature_reached'
|
|
4479
|
-
| '/unstable_access_grants/create'
|
|
4480
|
-
| '/unstable_access_grants/delete'
|
|
4481
|
-
| '/unstable_access_methods/delete'
|
|
4482
4322
|
| '/unstable_locations/add_acs_entrances'
|
|
4483
4323
|
| '/unstable_locations/add_devices'
|
|
4484
4324
|
| '/unstable_locations/create'
|
|
@@ -50,8 +50,6 @@ import { SeamHttpNoiseSensors } from './noise-sensors/index.js'
|
|
|
50
50
|
import { SeamHttpPhones } from './phones/index.js'
|
|
51
51
|
import { SeamHttpSpaces } from './spaces/index.js'
|
|
52
52
|
import { SeamHttpThermostats } from './thermostats/index.js'
|
|
53
|
-
import { SeamHttpUnstableAccessGrants } from './unstable-access-grants/index.js'
|
|
54
|
-
import { SeamHttpUnstableAccessMethods } from './unstable-access-methods/index.js'
|
|
55
53
|
import { SeamHttpUnstableLocations } from './unstable-locations/index.js'
|
|
56
54
|
import { SeamHttpUnstablePartner } from './unstable-partner/index.js'
|
|
57
55
|
import { SeamHttpUserIdentities } from './user-identities/index.js'
|
|
@@ -257,14 +255,6 @@ export class SeamHttp {
|
|
|
257
255
|
return SeamHttpThermostats.fromClient(this.client, this.defaults)
|
|
258
256
|
}
|
|
259
257
|
|
|
260
|
-
get unstableAccessGrants(): SeamHttpUnstableAccessGrants {
|
|
261
|
-
return SeamHttpUnstableAccessGrants.fromClient(this.client, this.defaults)
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
get unstableAccessMethods(): SeamHttpUnstableAccessMethods {
|
|
265
|
-
return SeamHttpUnstableAccessMethods.fromClient(this.client, this.defaults)
|
|
266
|
-
}
|
|
267
|
-
|
|
268
258
|
get unstableLocations(): SeamHttpUnstableLocations {
|
|
269
259
|
return SeamHttpUnstableLocations.fromClient(this.client, this.defaults)
|
|
270
260
|
}
|
package/src/lib/version.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './unstable-access-grants.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/unstable-access-grants/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,6BAA6B,CAAA"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { RouteRequestBody, 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 SeamHttpUnstableAccessGrants {
|
|
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'>): SeamHttpUnstableAccessGrants;
|
|
14
|
-
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpUnstableAccessGrants;
|
|
15
|
-
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpUnstableAccessGrants;
|
|
16
|
-
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpUnstableAccessGrants>;
|
|
17
|
-
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpUnstableAccessGrants;
|
|
18
|
-
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpUnstableAccessGrants;
|
|
19
|
-
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
|
-
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
|
-
create(parameters?: UnstableAccessGrantsCreateParameters, options?: UnstableAccessGrantsCreateOptions): UnstableAccessGrantsCreateRequest;
|
|
22
|
-
delete(parameters?: UnstableAccessGrantsDeleteParameters, options?: UnstableAccessGrantsDeleteOptions): UnstableAccessGrantsDeleteRequest;
|
|
23
|
-
get(parameters?: UnstableAccessGrantsGetParameters, options?: UnstableAccessGrantsGetOptions): UnstableAccessGrantsGetRequest;
|
|
24
|
-
list(parameters?: UnstableAccessGrantsListParameters, options?: UnstableAccessGrantsListOptions): UnstableAccessGrantsListRequest;
|
|
25
|
-
}
|
|
26
|
-
export type UnstableAccessGrantsCreateParameters = RouteRequestBody<'/unstable_access_grants/create'>;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use UnstableAccessGrantsCreateParameters instead.
|
|
29
|
-
*/
|
|
30
|
-
export type UnstableAccessGrantsCreateBody = UnstableAccessGrantsCreateParameters;
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated Use UnstableAccessGrantsCreateRequest instead.
|
|
33
|
-
*/
|
|
34
|
-
export type UnstableAccessGrantsCreateResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_grants/create'>>>;
|
|
35
|
-
export type UnstableAccessGrantsCreateRequest = SeamHttpRequest<UnstableAccessGrantsCreateResponse, 'access_grant'>;
|
|
36
|
-
export interface UnstableAccessGrantsCreateOptions {
|
|
37
|
-
}
|
|
38
|
-
export type UnstableAccessGrantsDeleteParameters = RouteRequestBody<'/unstable_access_grants/delete'>;
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Use UnstableAccessGrantsDeleteParameters instead.
|
|
41
|
-
*/
|
|
42
|
-
export type UnstableAccessGrantsDeleteParams = UnstableAccessGrantsDeleteParameters;
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Use UnstableAccessGrantsDeleteRequest instead.
|
|
45
|
-
*/
|
|
46
|
-
export type UnstableAccessGrantsDeleteResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_grants/delete'>>>;
|
|
47
|
-
export type UnstableAccessGrantsDeleteRequest = SeamHttpRequest<void, undefined>;
|
|
48
|
-
export interface UnstableAccessGrantsDeleteOptions {
|
|
49
|
-
}
|
|
50
|
-
export type UnstableAccessGrantsGetParameters = RouteRequestBody<'/unstable_access_grants/get'>;
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated Use UnstableAccessGrantsGetParameters instead.
|
|
53
|
-
*/
|
|
54
|
-
export type UnstableAccessGrantsGetParams = UnstableAccessGrantsGetParameters;
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated Use UnstableAccessGrantsGetRequest instead.
|
|
57
|
-
*/
|
|
58
|
-
export type UnstableAccessGrantsGetResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_grants/get'>>>;
|
|
59
|
-
export type UnstableAccessGrantsGetRequest = SeamHttpRequest<UnstableAccessGrantsGetResponse, 'access_grant'>;
|
|
60
|
-
export interface UnstableAccessGrantsGetOptions {
|
|
61
|
-
}
|
|
62
|
-
export type UnstableAccessGrantsListParameters = RouteRequestBody<'/unstable_access_grants/list'>;
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated Use UnstableAccessGrantsListParameters instead.
|
|
65
|
-
*/
|
|
66
|
-
export type UnstableAccessGrantsListParams = UnstableAccessGrantsListParameters;
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated Use UnstableAccessGrantsListRequest instead.
|
|
69
|
-
*/
|
|
70
|
-
export type UnstableAccessGrantsListResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_grants/list'>>>;
|
|
71
|
-
export type UnstableAccessGrantsListRequest = SeamHttpRequest<UnstableAccessGrantsListResponse, 'access_grants'>;
|
|
72
|
-
export interface UnstableAccessGrantsListOptions {
|
|
73
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Automatically generated by codegen/smith.ts.
|
|
3
|
-
* Do not edit this file or add other files to this directory.
|
|
4
|
-
*/
|
|
5
|
-
import { seamApiLtsVersion } from '../../../../../lib/lts-version.js';
|
|
6
|
-
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../../../../lib/seam/connect/auth.js';
|
|
7
|
-
import { createClient } from '../../../../../lib/seam/connect/client.js';
|
|
8
|
-
import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../../../lib/seam/connect/options.js';
|
|
9
|
-
import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../../lib/seam/connect/parse-options.js';
|
|
10
|
-
import { SeamHttpClientSessions } from '../../../../../lib/seam/connect/routes/client-sessions/index.js';
|
|
11
|
-
import { SeamHttpRequest } from '../../../../../lib/seam/connect/seam-http-request.js';
|
|
12
|
-
import { SeamPaginator } from '../../../../../lib/seam/connect/seam-paginator.js';
|
|
13
|
-
export class SeamHttpUnstableAccessGrants {
|
|
14
|
-
constructor(apiKeyOrOptions = {}) {
|
|
15
|
-
this.ltsVersion = seamApiLtsVersion;
|
|
16
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
17
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
18
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
19
|
-
}
|
|
20
|
-
this.client = 'client' in options ? options.client : createClient(options);
|
|
21
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
22
|
-
}
|
|
23
|
-
static fromClient(client, options = {}) {
|
|
24
|
-
const constructorOptions = { ...options, client };
|
|
25
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
26
|
-
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
27
|
-
}
|
|
28
|
-
return new SeamHttpUnstableAccessGrants(constructorOptions);
|
|
29
|
-
}
|
|
30
|
-
static fromApiKey(apiKey, options = {}) {
|
|
31
|
-
const constructorOptions = { ...options, apiKey };
|
|
32
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
33
|
-
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
34
|
-
}
|
|
35
|
-
return new SeamHttpUnstableAccessGrants(constructorOptions);
|
|
36
|
-
}
|
|
37
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
38
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
39
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
40
|
-
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
41
|
-
}
|
|
42
|
-
return new SeamHttpUnstableAccessGrants(constructorOptions);
|
|
43
|
-
}
|
|
44
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
45
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
46
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
47
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
48
|
-
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttpUnstableAccessGrants.fromPublishableKey');
|
|
49
|
-
}
|
|
50
|
-
const client = createClient(clientOptions);
|
|
51
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
52
|
-
const { token } = await clientSessions.getOrCreate({
|
|
53
|
-
user_identifier_key: userIdentifierKey,
|
|
54
|
-
});
|
|
55
|
-
return SeamHttpUnstableAccessGrants.fromClientSessionToken(token, options);
|
|
56
|
-
}
|
|
57
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
58
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
59
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
60
|
-
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
61
|
-
}
|
|
62
|
-
return new SeamHttpUnstableAccessGrants(constructorOptions);
|
|
63
|
-
}
|
|
64
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
65
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
66
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
67
|
-
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
68
|
-
}
|
|
69
|
-
return new SeamHttpUnstableAccessGrants(constructorOptions);
|
|
70
|
-
}
|
|
71
|
-
createPaginator(request) {
|
|
72
|
-
return new SeamPaginator(this, request);
|
|
73
|
-
}
|
|
74
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
75
|
-
const { headers } = this.client.defaults;
|
|
76
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
77
|
-
clientSessionToken,
|
|
78
|
-
});
|
|
79
|
-
for (const key of Object.keys(authHeaders)) {
|
|
80
|
-
if (headers[key] == null) {
|
|
81
|
-
throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
85
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
86
|
-
await clientSessions.get();
|
|
87
|
-
}
|
|
88
|
-
create(parameters, options = {}) {
|
|
89
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
90
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
91
|
-
}
|
|
92
|
-
return new SeamHttpRequest(this, {
|
|
93
|
-
pathname: '/unstable_access_grants/create',
|
|
94
|
-
method: 'POST',
|
|
95
|
-
body: parameters,
|
|
96
|
-
responseKey: 'access_grant',
|
|
97
|
-
options,
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
delete(parameters, options = {}) {
|
|
101
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
102
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
103
|
-
}
|
|
104
|
-
return new SeamHttpRequest(this, {
|
|
105
|
-
pathname: '/unstable_access_grants/delete',
|
|
106
|
-
method: 'POST',
|
|
107
|
-
body: parameters,
|
|
108
|
-
responseKey: undefined,
|
|
109
|
-
options,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
get(parameters, options = {}) {
|
|
113
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
114
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
115
|
-
}
|
|
116
|
-
return new SeamHttpRequest(this, {
|
|
117
|
-
pathname: '/unstable_access_grants/get',
|
|
118
|
-
method: 'POST',
|
|
119
|
-
body: parameters,
|
|
120
|
-
responseKey: 'access_grant',
|
|
121
|
-
options,
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
list(parameters, options = {}) {
|
|
125
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
126
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
127
|
-
}
|
|
128
|
-
return new SeamHttpRequest(this, {
|
|
129
|
-
pathname: '/unstable_access_grants/list',
|
|
130
|
-
method: 'POST',
|
|
131
|
-
body: parameters,
|
|
132
|
-
responseKey: 'access_grants',
|
|
133
|
-
options,
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
SeamHttpUnstableAccessGrants.ltsVersion = seamApiLtsVersion;
|
|
138
|
-
//# sourceMappingURL=unstable-access-grants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unstable-access-grants.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,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,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGlE,MAAM,OAAO,4BAA4B;IAMvC,YAAY,kBAA4C,EAAE;QAHjD,eAAU,GAAG,iBAAiB,CAAA;QAIrC,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,CAAC;YACtC,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,IA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M,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,gCAAgC;YAC1C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,GAAG,CACD,UAA8C,EAC9C,UAA0C,EAAE;QAE5C,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,6BAA6B;YACvC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,cAAc;YAC3B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,CACF,UAA+C,EAC/C,UAA2C,EAAE;QAE7C,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,8BAA8B;YACxC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,eAAe;YAC5B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;;AAtMM,uCAAU,GAAG,iBAAiB,AAApB,CAAoB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './unstable-access-methods.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/unstable-access-methods/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,8BAA8B,CAAA"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { RouteRequestBody, 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 SeamHttpUnstableAccessMethods {
|
|
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'>): SeamHttpUnstableAccessMethods;
|
|
14
|
-
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpUnstableAccessMethods;
|
|
15
|
-
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpUnstableAccessMethods;
|
|
16
|
-
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpUnstableAccessMethods>;
|
|
17
|
-
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpUnstableAccessMethods;
|
|
18
|
-
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpUnstableAccessMethods;
|
|
19
|
-
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
|
-
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
|
-
delete(parameters?: UnstableAccessMethodsDeleteParameters, options?: UnstableAccessMethodsDeleteOptions): UnstableAccessMethodsDeleteRequest;
|
|
22
|
-
get(parameters?: UnstableAccessMethodsGetParameters, options?: UnstableAccessMethodsGetOptions): UnstableAccessMethodsGetRequest;
|
|
23
|
-
list(parameters?: UnstableAccessMethodsListParameters, options?: UnstableAccessMethodsListOptions): UnstableAccessMethodsListRequest;
|
|
24
|
-
}
|
|
25
|
-
export type UnstableAccessMethodsDeleteParameters = RouteRequestBody<'/unstable_access_methods/delete'>;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use UnstableAccessMethodsDeleteParameters instead.
|
|
28
|
-
*/
|
|
29
|
-
export type UnstableAccessMethodsDeleteParams = UnstableAccessMethodsDeleteParameters;
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use UnstableAccessMethodsDeleteRequest instead.
|
|
32
|
-
*/
|
|
33
|
-
export type UnstableAccessMethodsDeleteResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_methods/delete'>>>;
|
|
34
|
-
export type UnstableAccessMethodsDeleteRequest = SeamHttpRequest<void, undefined>;
|
|
35
|
-
export interface UnstableAccessMethodsDeleteOptions {
|
|
36
|
-
}
|
|
37
|
-
export type UnstableAccessMethodsGetParameters = RouteRequestBody<'/unstable_access_methods/get'>;
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated Use UnstableAccessMethodsGetParameters instead.
|
|
40
|
-
*/
|
|
41
|
-
export type UnstableAccessMethodsGetParams = UnstableAccessMethodsGetParameters;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated Use UnstableAccessMethodsGetRequest instead.
|
|
44
|
-
*/
|
|
45
|
-
export type UnstableAccessMethodsGetResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_methods/get'>>>;
|
|
46
|
-
export type UnstableAccessMethodsGetRequest = SeamHttpRequest<UnstableAccessMethodsGetResponse, 'access_method'>;
|
|
47
|
-
export interface UnstableAccessMethodsGetOptions {
|
|
48
|
-
}
|
|
49
|
-
export type UnstableAccessMethodsListParameters = RouteRequestBody<'/unstable_access_methods/list'>;
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Use UnstableAccessMethodsListParameters instead.
|
|
52
|
-
*/
|
|
53
|
-
export type UnstableAccessMethodsListParams = UnstableAccessMethodsListParameters;
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated Use UnstableAccessMethodsListRequest instead.
|
|
56
|
-
*/
|
|
57
|
-
export type UnstableAccessMethodsListResponse = SetNonNullable<Required<RouteResponse<'/unstable_access_methods/list'>>>;
|
|
58
|
-
export type UnstableAccessMethodsListRequest = SeamHttpRequest<UnstableAccessMethodsListResponse, 'access_methods'>;
|
|
59
|
-
export interface UnstableAccessMethodsListOptions {
|
|
60
|
-
}
|