@seamapi/http 1.48.0 → 1.50.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 +253 -146
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +92 -62
- package/dist/index.cjs +257 -148
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +20 -20
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +13 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js +9 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/index.d.ts +0 -1
- package/lib/seam/connect/routes/index.js +0 -1
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/console/console.d.ts +21 -0
- package/lib/seam/connect/routes/seam/console/console.js +93 -0
- package/lib/seam/connect/routes/seam/console/console.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/index.d.ts +2 -0
- package/lib/seam/connect/routes/seam/console/index.js +7 -0
- package/lib/seam/connect/routes/seam/console/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/index.d.ts +1 -0
- package/lib/seam/connect/routes/{networks → seam/console/v1}/index.js +1 -1
- package/lib/seam/connect/routes/seam/console/v1/index.js.map +1 -0
- package/lib/seam/connect/routes/{networks/networks.d.ts → seam/console/v1/v1.d.ts} +21 -34
- package/lib/seam/connect/routes/{networks/networks.js → seam/console/v1/v1.js} +23 -35
- package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -0
- package/lib/seam/connect/routes/seam/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/index.js +1 -0
- package/lib/seam/connect/routes/seam/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +7 -6
- package/lib/seam/connect/routes/seam-http-endpoints.js +28 -21
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/seam-http.d.ts +0 -2
- package/lib/seam/connect/routes/seam-http.js +0 -4
- package/lib/seam/connect/routes/seam-http.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/workspaces.d.ts +13 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js +12 -0
- package/lib/seam/connect/routes/workspaces/workspaces.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/access-methods/access-methods.ts +36 -0
- package/src/lib/seam/connect/routes/index.ts +0 -1
- package/src/lib/seam/connect/routes/seam/console/console.ts +173 -0
- package/src/lib/seam/connect/routes/seam/console/index.ts +7 -0
- package/src/lib/seam/connect/routes/{networks → seam/console/v1}/index.ts +1 -1
- package/src/lib/seam/connect/routes/{networks/networks.ts → seam/console/v1/v1.ts} +35 -70
- package/src/lib/seam/connect/routes/seam/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +64 -47
- package/src/lib/seam/connect/routes/seam-http.ts +0 -5
- package/src/lib/seam/connect/routes/workspaces/workspaces.ts +41 -0
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/networks/index.d.ts +0 -1
- package/lib/seam/connect/routes/networks/index.js.map +0 -1
- package/lib/seam/connect/routes/networks/networks.js.map +0 -1
|
@@ -0,0 +1,93 @@
|
|
|
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 { SeamPaginator } from '../../../../../../lib/seam/connect/seam-paginator.js';
|
|
12
|
+
import { SeamHttpSeamConsoleV1 } from './v1/index.js';
|
|
13
|
+
export class SeamHttpSeamConsole {
|
|
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 SeamHttpSeamConsole(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 SeamHttpSeamConsole(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 SeamHttpSeamConsole(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 SeamHttpSeamConsole.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 SeamHttpSeamConsole.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 SeamHttpSeamConsole(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 SeamHttpSeamConsole(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
|
+
get v1() {
|
|
89
|
+
return SeamHttpSeamConsoleV1.fromClient(this.client, this.defaults);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
SeamHttpSeamConsole.ltsVersion = seamApiLtsVersion;
|
|
93
|
+
//# sourceMappingURL=console.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/seam/console/console.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,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;AAEzF,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAElE,OAAO,EA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0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/seam/console/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './v1.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/lib/seam/connect/routes/seam/console/v1/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAA"}
|
|
@@ -1,47 +1,34 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { type Client } from '
|
|
3
|
-
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '
|
|
4
|
-
import { SeamHttpRequest } from '
|
|
5
|
-
import { SeamPaginator } from '
|
|
6
|
-
import type { SetNonNullable } from '
|
|
7
|
-
export declare class
|
|
1
|
+
import type { 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 SeamHttpSeamConsoleV1 {
|
|
8
8
|
client: Client;
|
|
9
9
|
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
10
10
|
readonly ltsVersion = "1.0.0";
|
|
11
11
|
static ltsVersion: string;
|
|
12
12
|
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
13
|
-
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>):
|
|
14
|
-
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>):
|
|
15
|
-
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>):
|
|
16
|
-
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<
|
|
17
|
-
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>):
|
|
18
|
-
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>):
|
|
13
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpSeamConsoleV1;
|
|
14
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpSeamConsoleV1;
|
|
15
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpSeamConsoleV1;
|
|
16
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpSeamConsoleV1>;
|
|
17
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpSeamConsoleV1;
|
|
18
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpSeamConsoleV1;
|
|
19
19
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
20
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
|
-
|
|
22
|
-
list(parameters?: NetworksListParameters, options?: NetworksListOptions): NetworksListRequest;
|
|
21
|
+
getResourceType(parameters?: SeamConsoleV1GetResourceTypeParameters, options?: SeamConsoleV1GetResourceTypeOptions): SeamConsoleV1GetResourceTypeRequest;
|
|
23
22
|
}
|
|
24
|
-
export type
|
|
23
|
+
export type SeamConsoleV1GetResourceTypeParameters = RouteRequestParams<'/seam/console/v1/get_resource_type'>;
|
|
25
24
|
/**
|
|
26
|
-
* @deprecated Use
|
|
25
|
+
* @deprecated Use SeamConsoleV1GetResourceTypeParameters instead.
|
|
27
26
|
*/
|
|
28
|
-
export type
|
|
27
|
+
export type SeamConsoleV1GetResourceTypeParams = SeamConsoleV1GetResourceTypeParameters;
|
|
29
28
|
/**
|
|
30
|
-
* @deprecated Use
|
|
29
|
+
* @deprecated Use SeamConsoleV1GetResourceTypeRequest instead.
|
|
31
30
|
*/
|
|
32
|
-
export type
|
|
33
|
-
export type
|
|
34
|
-
export interface
|
|
35
|
-
}
|
|
36
|
-
export type NetworksListParameters = RouteRequestBody<'/networks/list'>;
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated Use NetworksListParameters instead.
|
|
39
|
-
*/
|
|
40
|
-
export type NetworksListParams = NetworksListParameters;
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Use NetworksListRequest instead.
|
|
43
|
-
*/
|
|
44
|
-
export type NetworksListResponse = SetNonNullable<Required<RouteResponse<'/networks/list'>>>;
|
|
45
|
-
export type NetworksListRequest = SeamHttpRequest<NetworksListResponse, 'networks'>;
|
|
46
|
-
export interface NetworksListOptions {
|
|
31
|
+
export type SeamConsoleV1GetResourceTypeResponse = SetNonNullable<Required<RouteResponse<'/seam/console/v1/get_resource_type'>>>;
|
|
32
|
+
export type SeamConsoleV1GetResourceTypeRequest = SeamHttpRequest<SeamConsoleV1GetResourceTypeResponse, 'resource_type'>;
|
|
33
|
+
export interface SeamConsoleV1GetResourceTypeOptions {
|
|
47
34
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* Automatically generated by codegen/smith.ts.
|
|
3
3
|
* Do not edit this file or add other files to this directory.
|
|
4
4
|
*/
|
|
5
|
-
import { seamApiLtsVersion } from '
|
|
6
|
-
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '
|
|
7
|
-
import { createClient } from '
|
|
8
|
-
import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '
|
|
9
|
-
import { limitToSeamHttpRequestOptions, parseOptions, } from '
|
|
10
|
-
import { SeamHttpClientSessions } from '
|
|
11
|
-
import { SeamHttpRequest } from '
|
|
12
|
-
import { SeamPaginator } from '
|
|
13
|
-
export class
|
|
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 SeamHttpSeamConsoleV1 {
|
|
14
14
|
constructor(apiKeyOrOptions = {}) {
|
|
15
15
|
this.ltsVersion = seamApiLtsVersion;
|
|
16
16
|
const options = parseOptions(apiKeyOrOptions);
|
|
@@ -25,48 +25,48 @@ export class SeamHttpNetworks {
|
|
|
25
25
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
26
26
|
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
27
27
|
}
|
|
28
|
-
return new
|
|
28
|
+
return new SeamHttpSeamConsoleV1(constructorOptions);
|
|
29
29
|
}
|
|
30
30
|
static fromApiKey(apiKey, options = {}) {
|
|
31
31
|
const constructorOptions = { ...options, apiKey };
|
|
32
32
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
33
33
|
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
34
34
|
}
|
|
35
|
-
return new
|
|
35
|
+
return new SeamHttpSeamConsoleV1(constructorOptions);
|
|
36
36
|
}
|
|
37
37
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
38
38
|
const constructorOptions = { ...options, clientSessionToken };
|
|
39
39
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
40
40
|
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
41
41
|
}
|
|
42
|
-
return new
|
|
42
|
+
return new SeamHttpSeamConsoleV1(constructorOptions);
|
|
43
43
|
}
|
|
44
44
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
45
45
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
46
46
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
47
47
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
48
|
-
throw new SeamHttpInvalidOptionsError('The client option cannot be used with
|
|
48
|
+
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttpSeamConsoleV1.fromPublishableKey');
|
|
49
49
|
}
|
|
50
50
|
const client = createClient(clientOptions);
|
|
51
51
|
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
52
52
|
const { token } = await clientSessions.getOrCreate({
|
|
53
53
|
user_identifier_key: userIdentifierKey,
|
|
54
54
|
});
|
|
55
|
-
return
|
|
55
|
+
return SeamHttpSeamConsoleV1.fromClientSessionToken(token, options);
|
|
56
56
|
}
|
|
57
57
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
58
58
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
59
59
|
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
60
60
|
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
61
61
|
}
|
|
62
|
-
return new
|
|
62
|
+
return new SeamHttpSeamConsoleV1(constructorOptions);
|
|
63
63
|
}
|
|
64
64
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
65
65
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
66
66
|
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
67
67
|
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
68
68
|
}
|
|
69
|
-
return new
|
|
69
|
+
return new SeamHttpSeamConsoleV1(constructorOptions);
|
|
70
70
|
}
|
|
71
71
|
createPaginator(request) {
|
|
72
72
|
return new SeamPaginator(this, request);
|
|
@@ -85,30 +85,18 @@ export class SeamHttpNetworks {
|
|
|
85
85
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
86
86
|
await clientSessions.get();
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
getResourceType(parameters, options = {}) {
|
|
89
89
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
90
90
|
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
91
91
|
}
|
|
92
92
|
return new SeamHttpRequest(this, {
|
|
93
|
-
pathname: '/
|
|
94
|
-
method: '
|
|
95
|
-
|
|
96
|
-
responseKey: '
|
|
97
|
-
options,
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
list(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: '/networks/list',
|
|
106
|
-
method: 'POST',
|
|
107
|
-
body: parameters,
|
|
108
|
-
responseKey: 'networks',
|
|
93
|
+
pathname: '/seam/console/v1/get_resource_type',
|
|
94
|
+
method: 'GET',
|
|
95
|
+
params: parameters,
|
|
96
|
+
responseKey: 'resource_type',
|
|
109
97
|
options,
|
|
110
98
|
});
|
|
111
99
|
}
|
|
112
100
|
}
|
|
113
|
-
|
|
114
|
-
//# sourceMappingURL=
|
|
101
|
+
SeamHttpSeamConsoleV1.ltsVersion = seamApiLtsVersion;
|
|
102
|
+
//# sourceMappingURL=v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../../../../../src/lib/seam/connect/routes/seam/console/v1/v1.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,qBAAqB;IAMhC,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,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC1E,IAAI,CAAC,QAAQ,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CACf,MAA2C,EAC3C,UAAqD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AG,mCAAmC,CAAC;YACtD,kBAAkB;SACnB,CAAC,CAAA;QACF,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YAC3C,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;gBACzB,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAA;YACH,CAAC;QACH,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,WAAW,EAAE,CAAA;QAC7D,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrE,MAAM,cAAc,CAAC,GAAG,EAAE,CAAA;IAC5B,CAAC;IAED,eAAe,CACb,UAAmD,EACnD,UAA+C,EAAE;QAEjD,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,oCAAoC;YAC9C,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,UAAU;YAClB,WAAW,EAAE,eAAe;YAC5B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;;AAhJM,gCAAU,GAAG,iBAAiB,AAApB,CAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/seam/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/seam/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA"}
|
|
@@ -6,7 +6,7 @@ import { type AccessCodesCreateMultipleOptions, type AccessCodesCreateMultiplePa
|
|
|
6
6
|
import { type AccessCodesSimulateCreateUnmanagedAccessCodeOptions, type AccessCodesSimulateCreateUnmanagedAccessCodeParameters, type AccessCodesSimulateCreateUnmanagedAccessCodeRequest } from './access-codes/simulate/index.js';
|
|
7
7
|
import { type AccessCodesUnmanagedConvertToManagedOptions, type AccessCodesUnmanagedConvertToManagedParameters, type AccessCodesUnmanagedConvertToManagedRequest, type AccessCodesUnmanagedDeleteOptions, type AccessCodesUnmanagedDeleteParameters, type AccessCodesUnmanagedDeleteRequest, type AccessCodesUnmanagedGetOptions, type AccessCodesUnmanagedGetParameters, type AccessCodesUnmanagedGetRequest, type AccessCodesUnmanagedListOptions, type AccessCodesUnmanagedListParameters, type AccessCodesUnmanagedListRequest, type AccessCodesUnmanagedUpdateOptions, type AccessCodesUnmanagedUpdateParameters, type AccessCodesUnmanagedUpdateRequest } from './access-codes/unmanaged/index.js';
|
|
8
8
|
import { type AccessGrantsCreateOptions, type AccessGrantsCreateParameters, type AccessGrantsCreateRequest, type AccessGrantsDeleteOptions, type AccessGrantsDeleteParameters, type AccessGrantsDeleteRequest, type AccessGrantsGetOptions, type AccessGrantsGetParameters, type AccessGrantsGetRelatedOptions, type AccessGrantsGetRelatedParameters, type AccessGrantsGetRelatedRequest, type AccessGrantsGetRequest, type AccessGrantsListOptions, type AccessGrantsListParameters, type AccessGrantsListRequest, type AccessGrantsUpdateOptions, type AccessGrantsUpdateParameters, type AccessGrantsUpdateRequest } from './access-grants/index.js';
|
|
9
|
-
import { type AccessMethodsDeleteOptions, type AccessMethodsDeleteParameters, type AccessMethodsDeleteRequest, type AccessMethodsEncodeOptions, type AccessMethodsEncodeParameters, type AccessMethodsEncodeRequest, type AccessMethodsGetOptions, type AccessMethodsGetParameters, type AccessMethodsGetRequest, type AccessMethodsListOptions, type AccessMethodsListParameters, type AccessMethodsListRequest } from './access-methods/index.js';
|
|
9
|
+
import { type AccessMethodsDeleteOptions, type AccessMethodsDeleteParameters, type AccessMethodsDeleteRequest, type AccessMethodsEncodeOptions, type AccessMethodsEncodeParameters, type AccessMethodsEncodeRequest, type AccessMethodsGetOptions, type AccessMethodsGetParameters, type AccessMethodsGetRelatedOptions, type AccessMethodsGetRelatedParameters, type AccessMethodsGetRelatedRequest, type AccessMethodsGetRequest, type AccessMethodsListOptions, type AccessMethodsListParameters, type AccessMethodsListRequest } from './access-methods/index.js';
|
|
10
10
|
import { type AcsAccessGroupsAddUserOptions, type AcsAccessGroupsAddUserParameters, type AcsAccessGroupsAddUserRequest, type AcsAccessGroupsGetOptions, type AcsAccessGroupsGetParameters, type AcsAccessGroupsGetRequest, type AcsAccessGroupsListAccessibleEntrancesOptions, type AcsAccessGroupsListAccessibleEntrancesParameters, type AcsAccessGroupsListAccessibleEntrancesRequest, type AcsAccessGroupsListOptions, type AcsAccessGroupsListParameters, type AcsAccessGroupsListRequest, type AcsAccessGroupsListUsersOptions, type AcsAccessGroupsListUsersParameters, type AcsAccessGroupsListUsersRequest, type AcsAccessGroupsRemoveUserOptions, type AcsAccessGroupsRemoveUserParameters, type AcsAccessGroupsRemoveUserRequest } from './acs/access-groups/index.js';
|
|
11
11
|
import { type AcsAccessGroupsUnmanagedGetOptions, type AcsAccessGroupsUnmanagedGetParameters, type AcsAccessGroupsUnmanagedGetRequest, type AcsAccessGroupsUnmanagedListOptions, type AcsAccessGroupsUnmanagedListParameters, type AcsAccessGroupsUnmanagedListRequest } from './acs/access-groups/unmanaged/index.js';
|
|
12
12
|
import { type AcsCredentialPoolsListOptions, type AcsCredentialPoolsListParameters, type AcsCredentialPoolsListRequest } from './acs/credential-pools/index.js';
|
|
@@ -31,12 +31,12 @@ import { type DevicesUnmanagedGetOptions, type DevicesUnmanagedGetParameters, ty
|
|
|
31
31
|
import { type EventsGetOptions, type EventsGetParameters, type EventsGetRequest, type EventsListOptions, type EventsListParameters, type EventsListRequest } from './events/index.js';
|
|
32
32
|
import { type LocksGetOptions, type LocksGetParameters, type LocksGetRequest, type LocksListOptions, type LocksListParameters, type LocksListRequest, type LocksLockDoorOptions, type LocksLockDoorParameters, type LocksLockDoorRequest, type LocksUnlockDoorOptions, type LocksUnlockDoorParameters, type LocksUnlockDoorRequest } from './locks/index.js';
|
|
33
33
|
import { type LocksSimulateKeypadCodeEntryOptions, type LocksSimulateKeypadCodeEntryParameters, type LocksSimulateKeypadCodeEntryRequest, type LocksSimulateManualLockViaKeypadOptions, type LocksSimulateManualLockViaKeypadParameters, type LocksSimulateManualLockViaKeypadRequest } from './locks/simulate/index.js';
|
|
34
|
-
import { type NetworksGetOptions, type NetworksGetParameters, type NetworksGetRequest, type NetworksListOptions, type NetworksListParameters, type NetworksListRequest } from './networks/index.js';
|
|
35
34
|
import { type NoiseSensorsListOptions, type NoiseSensorsListParameters, type NoiseSensorsListRequest } from './noise-sensors/index.js';
|
|
36
35
|
import { type NoiseSensorsNoiseThresholdsCreateOptions, type NoiseSensorsNoiseThresholdsCreateParameters, type NoiseSensorsNoiseThresholdsCreateRequest, type NoiseSensorsNoiseThresholdsDeleteOptions, type NoiseSensorsNoiseThresholdsDeleteParameters, type NoiseSensorsNoiseThresholdsDeleteRequest, type NoiseSensorsNoiseThresholdsGetOptions, type NoiseSensorsNoiseThresholdsGetParameters, type NoiseSensorsNoiseThresholdsGetRequest, type NoiseSensorsNoiseThresholdsListOptions, type NoiseSensorsNoiseThresholdsListParameters, type NoiseSensorsNoiseThresholdsListRequest, type NoiseSensorsNoiseThresholdsUpdateOptions, type NoiseSensorsNoiseThresholdsUpdateParameters, type NoiseSensorsNoiseThresholdsUpdateRequest } from './noise-sensors/noise-thresholds/index.js';
|
|
37
36
|
import { type NoiseSensorsSimulateTriggerNoiseThresholdOptions, type NoiseSensorsSimulateTriggerNoiseThresholdParameters, type NoiseSensorsSimulateTriggerNoiseThresholdRequest } from './noise-sensors/simulate/index.js';
|
|
38
37
|
import { type PhonesDeactivateOptions, type PhonesDeactivateParameters, type PhonesDeactivateRequest, type PhonesGetOptions, type PhonesGetParameters, type PhonesGetRequest, type PhonesListOptions, type PhonesListParameters, type PhonesListRequest } from './phones/index.js';
|
|
39
38
|
import { type PhonesSimulateCreateSandboxPhoneOptions, type PhonesSimulateCreateSandboxPhoneParameters, type PhonesSimulateCreateSandboxPhoneRequest } from './phones/simulate/index.js';
|
|
39
|
+
import { type SeamConsoleV1GetResourceTypeOptions, type SeamConsoleV1GetResourceTypeParameters, type SeamConsoleV1GetResourceTypeRequest } from './seam/console/v1/index.js';
|
|
40
40
|
import { type SeamCustomerV1AutomationRunsListOptions, type SeamCustomerV1AutomationRunsListParameters, type SeamCustomerV1AutomationRunsListRequest } from './seam/customer/v1/automation-runs/index.js';
|
|
41
41
|
import { type SeamCustomerV1AutomationsDeleteOptions, type SeamCustomerV1AutomationsDeleteParameters, type SeamCustomerV1AutomationsDeleteRequest, type SeamCustomerV1AutomationsGetOptions, type SeamCustomerV1AutomationsGetParameters, type SeamCustomerV1AutomationsGetRequest, type SeamCustomerV1AutomationsUpdateOptions, type SeamCustomerV1AutomationsUpdateParameters, type SeamCustomerV1AutomationsUpdateRequest } from './seam/customer/v1/automations/index.js';
|
|
42
42
|
import { type SeamCustomerV1PortalsGetOptions, type SeamCustomerV1PortalsGetParameters, type SeamCustomerV1PortalsGetRequest } from './seam/customer/v1/portals/index.js';
|
|
@@ -54,7 +54,7 @@ import { type UnstablePartnerBuildingBlocksConnectAccountsOptions, type Unstable
|
|
|
54
54
|
import { type UserIdentitiesEnrollmentAutomationsDeleteOptions, type UserIdentitiesEnrollmentAutomationsDeleteParameters, type UserIdentitiesEnrollmentAutomationsDeleteRequest, type UserIdentitiesEnrollmentAutomationsGetOptions, type UserIdentitiesEnrollmentAutomationsGetParameters, type UserIdentitiesEnrollmentAutomationsGetRequest, type UserIdentitiesEnrollmentAutomationsLaunchOptions, type UserIdentitiesEnrollmentAutomationsLaunchParameters, type UserIdentitiesEnrollmentAutomationsLaunchRequest, type UserIdentitiesEnrollmentAutomationsListOptions, type UserIdentitiesEnrollmentAutomationsListParameters, type UserIdentitiesEnrollmentAutomationsListRequest } from './user-identities/enrollment-automations/index.js';
|
|
55
55
|
import { type UserIdentitiesAddAcsUserOptions, type UserIdentitiesAddAcsUserParameters, type UserIdentitiesAddAcsUserRequest, type UserIdentitiesCreateOptions, type UserIdentitiesCreateParameters, type UserIdentitiesCreateRequest, type UserIdentitiesDeleteOptions, type UserIdentitiesDeleteParameters, type UserIdentitiesDeleteRequest, type UserIdentitiesGenerateInstantKeyOptions, type UserIdentitiesGenerateInstantKeyParameters, type UserIdentitiesGenerateInstantKeyRequest, type UserIdentitiesGetOptions, type UserIdentitiesGetParameters, type UserIdentitiesGetRequest, type UserIdentitiesGrantAccessToDeviceOptions, type UserIdentitiesGrantAccessToDeviceParameters, type UserIdentitiesGrantAccessToDeviceRequest, type UserIdentitiesListAccessibleDevicesOptions, type UserIdentitiesListAccessibleDevicesParameters, type UserIdentitiesListAccessibleDevicesRequest, type UserIdentitiesListAcsSystemsOptions, type UserIdentitiesListAcsSystemsParameters, type UserIdentitiesListAcsSystemsRequest, type UserIdentitiesListAcsUsersOptions, type UserIdentitiesListAcsUsersParameters, type UserIdentitiesListAcsUsersRequest, type UserIdentitiesListOptions, type UserIdentitiesListParameters, type UserIdentitiesListRequest, type UserIdentitiesRemoveAcsUserOptions, type UserIdentitiesRemoveAcsUserParameters, type UserIdentitiesRemoveAcsUserRequest, type UserIdentitiesRevokeAccessToDeviceOptions, type UserIdentitiesRevokeAccessToDeviceParameters, type UserIdentitiesRevokeAccessToDeviceRequest, type UserIdentitiesUpdateOptions, type UserIdentitiesUpdateParameters, type UserIdentitiesUpdateRequest } from './user-identities/index.js';
|
|
56
56
|
import { type WebhooksCreateOptions, type WebhooksCreateParameters, type WebhooksCreateRequest, type WebhooksDeleteOptions, type WebhooksDeleteParameters, type WebhooksDeleteRequest, type WebhooksGetOptions, type WebhooksGetParameters, type WebhooksGetRequest, type WebhooksListOptions, type WebhooksListParameters, type WebhooksListRequest, type WebhooksUpdateOptions, type WebhooksUpdateParameters, type WebhooksUpdateRequest } from './webhooks/index.js';
|
|
57
|
-
import { type WorkspacesCreateOptions, type WorkspacesCreateParameters, type WorkspacesCreateRequest, type WorkspacesGetOptions, type WorkspacesGetParameters, type WorkspacesGetRequest, type WorkspacesListOptions, type WorkspacesListParameters, type WorkspacesListRequest, type WorkspacesResetSandboxOptions, type WorkspacesResetSandboxParameters, type WorkspacesResetSandboxRequest, type WorkspacesUpdateOptions, type WorkspacesUpdateParameters, type WorkspacesUpdateRequest } from './workspaces/index.js';
|
|
57
|
+
import { type WorkspacesCreateOptions, type WorkspacesCreateParameters, type WorkspacesCreateRequest, type WorkspacesFindResourcesOptions, type WorkspacesFindResourcesParameters, type WorkspacesFindResourcesRequest, type WorkspacesGetOptions, type WorkspacesGetParameters, type WorkspacesGetRequest, type WorkspacesListOptions, type WorkspacesListParameters, type WorkspacesListRequest, type WorkspacesResetSandboxOptions, type WorkspacesResetSandboxParameters, type WorkspacesResetSandboxRequest, type WorkspacesUpdateOptions, type WorkspacesUpdateParameters, type WorkspacesUpdateRequest } from './workspaces/index.js';
|
|
58
58
|
export declare class SeamHttpEndpoints {
|
|
59
59
|
client: Client;
|
|
60
60
|
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
@@ -94,6 +94,7 @@ export declare class SeamHttpEndpoints {
|
|
|
94
94
|
get ['/access_methods/delete'](): (parameters?: AccessMethodsDeleteParameters, options?: AccessMethodsDeleteOptions) => AccessMethodsDeleteRequest;
|
|
95
95
|
get ['/access_methods/encode'](): (parameters?: AccessMethodsEncodeParameters, options?: AccessMethodsEncodeOptions) => AccessMethodsEncodeRequest;
|
|
96
96
|
get ['/access_methods/get'](): (parameters?: AccessMethodsGetParameters, options?: AccessMethodsGetOptions) => AccessMethodsGetRequest;
|
|
97
|
+
get ['/access_methods/get_related'](): (parameters?: AccessMethodsGetRelatedParameters, options?: AccessMethodsGetRelatedOptions) => AccessMethodsGetRelatedRequest;
|
|
97
98
|
get ['/access_methods/list'](): (parameters?: AccessMethodsListParameters, options?: AccessMethodsListOptions) => AccessMethodsListRequest;
|
|
98
99
|
get ['/acs/access_groups/add_user'](): (parameters?: AcsAccessGroupsAddUserParameters, options?: AcsAccessGroupsAddUserOptions) => AcsAccessGroupsAddUserRequest;
|
|
99
100
|
get ['/acs/access_groups/get'](): (parameters?: AcsAccessGroupsGetParameters, options?: AcsAccessGroupsGetOptions) => AcsAccessGroupsGetRequest;
|
|
@@ -187,8 +188,6 @@ export declare class SeamHttpEndpoints {
|
|
|
187
188
|
get ['/locks/unlock_door'](): (parameters?: LocksUnlockDoorParameters, options?: LocksUnlockDoorOptions) => LocksUnlockDoorRequest;
|
|
188
189
|
get ['/locks/simulate/keypad_code_entry'](): (parameters?: LocksSimulateKeypadCodeEntryParameters, options?: LocksSimulateKeypadCodeEntryOptions) => LocksSimulateKeypadCodeEntryRequest;
|
|
189
190
|
get ['/locks/simulate/manual_lock_via_keypad'](): (parameters?: LocksSimulateManualLockViaKeypadParameters, options?: LocksSimulateManualLockViaKeypadOptions) => LocksSimulateManualLockViaKeypadRequest;
|
|
190
|
-
get ['/networks/get'](): (parameters?: NetworksGetParameters, options?: NetworksGetOptions) => NetworksGetRequest;
|
|
191
|
-
get ['/networks/list'](): (parameters?: NetworksListParameters, options?: NetworksListOptions) => NetworksListRequest;
|
|
192
191
|
get ['/noise_sensors/list'](): (parameters?: NoiseSensorsListParameters, options?: NoiseSensorsListOptions) => NoiseSensorsListRequest;
|
|
193
192
|
get ['/noise_sensors/noise_thresholds/create'](): (parameters?: NoiseSensorsNoiseThresholdsCreateParameters, options?: NoiseSensorsNoiseThresholdsCreateOptions) => NoiseSensorsNoiseThresholdsCreateRequest;
|
|
194
193
|
get ['/noise_sensors/noise_thresholds/delete'](): (parameters?: NoiseSensorsNoiseThresholdsDeleteParameters, options?: NoiseSensorsNoiseThresholdsDeleteOptions) => NoiseSensorsNoiseThresholdsDeleteRequest;
|
|
@@ -200,6 +199,7 @@ export declare class SeamHttpEndpoints {
|
|
|
200
199
|
get ['/phones/get'](): (parameters?: PhonesGetParameters, options?: PhonesGetOptions) => PhonesGetRequest;
|
|
201
200
|
get ['/phones/list'](): (parameters?: PhonesListParameters, options?: PhonesListOptions) => PhonesListRequest;
|
|
202
201
|
get ['/phones/simulate/create_sandbox_phone'](): (parameters?: PhonesSimulateCreateSandboxPhoneParameters, options?: PhonesSimulateCreateSandboxPhoneOptions) => PhonesSimulateCreateSandboxPhoneRequest;
|
|
202
|
+
get ['/seam/console/v1/get_resource_type'](): (parameters?: SeamConsoleV1GetResourceTypeParameters, options?: SeamConsoleV1GetResourceTypeOptions) => SeamConsoleV1GetResourceTypeRequest;
|
|
203
203
|
get ['/seam/customer/v1/automation_runs/list'](): (parameters?: SeamCustomerV1AutomationRunsListParameters, options?: SeamCustomerV1AutomationRunsListOptions) => SeamCustomerV1AutomationRunsListRequest;
|
|
204
204
|
get ['/seam/customer/v1/automations/delete'](): (parameters?: SeamCustomerV1AutomationsDeleteParameters, options?: SeamCustomerV1AutomationsDeleteOptions) => SeamCustomerV1AutomationsDeleteRequest;
|
|
205
205
|
get ['/seam/customer/v1/automations/get'](): (parameters?: SeamCustomerV1AutomationsGetParameters, options?: SeamCustomerV1AutomationsGetOptions) => SeamCustomerV1AutomationsGetRequest;
|
|
@@ -285,11 +285,12 @@ export declare class SeamHttpEndpoints {
|
|
|
285
285
|
get ['/webhooks/list'](): (parameters?: WebhooksListParameters, options?: WebhooksListOptions) => WebhooksListRequest;
|
|
286
286
|
get ['/webhooks/update'](): (parameters?: WebhooksUpdateParameters, options?: WebhooksUpdateOptions) => WebhooksUpdateRequest;
|
|
287
287
|
get ['/workspaces/create'](): (parameters?: WorkspacesCreateParameters, options?: WorkspacesCreateOptions) => WorkspacesCreateRequest;
|
|
288
|
+
get ['/workspaces/find_resources'](): (parameters?: WorkspacesFindResourcesParameters, options?: WorkspacesFindResourcesOptions) => WorkspacesFindResourcesRequest;
|
|
288
289
|
get ['/workspaces/get'](): (parameters?: WorkspacesGetParameters, options?: WorkspacesGetOptions) => WorkspacesGetRequest;
|
|
289
290
|
get ['/workspaces/list'](): (parameters?: WorkspacesListParameters, options?: WorkspacesListOptions) => WorkspacesListRequest;
|
|
290
291
|
get ['/workspaces/reset_sandbox'](): (parameters?: WorkspacesResetSandboxParameters, options?: WorkspacesResetSandboxOptions) => WorkspacesResetSandboxRequest;
|
|
291
292
|
get ['/workspaces/update'](): (parameters?: WorkspacesUpdateParameters, options?: WorkspacesUpdateOptions) => WorkspacesUpdateRequest;
|
|
292
293
|
}
|
|
293
|
-
export type SeamHttpEndpointQueryPaths = '/access_codes/generate_code' | '/access_codes/get' | '/access_codes/list' | '/access_codes/unmanaged/get' | '/access_codes/unmanaged/list' | '/access_grants/get' | '/access_grants/get_related' | '/access_grants/list' | '/access_methods/get' | '/access_methods/list' | '/acs/access_groups/get' | '/acs/access_groups/list' | '/acs/access_groups/list_accessible_entrances' | '/acs/access_groups/list_users' | '/acs/access_groups/unmanaged/get' | '/acs/access_groups/unmanaged/list' | '/acs/credential_pools/list' | '/acs/credentials/get' | '/acs/credentials/list' | '/acs/credentials/list_accessible_entrances' | '/acs/credentials/unmanaged/get' | '/acs/credentials/unmanaged/list' | '/acs/encoders/get' | '/acs/encoders/list' | '/acs/entrances/get' | '/acs/entrances/list' | '/acs/entrances/list_credentials_with_access' | '/acs/systems/get' | '/acs/systems/list' | '/acs/systems/list_compatible_credential_manager_acs_systems' | '/acs/users/get' | '/acs/users/list' | '/acs/users/list_accessible_entrances' | '/acs/users/unmanaged/get' | '/acs/users/unmanaged/list' | '/action_attempts/get' | '/action_attempts/list' | '/bridges/get' | '/bridges/list' | '/client_sessions/get' | '/client_sessions/list' | '/connect_webviews/get' | '/connect_webviews/list' | '/connected_accounts/get' | '/connected_accounts/list' | '/devices/get' | '/devices/list' | '/devices/list_device_providers' | '/devices/unmanaged/get' | '/devices/unmanaged/list' | '/events/get' | '/events/list' | '/locks/get' | '/locks/list' | '/
|
|
294
|
+
export type SeamHttpEndpointQueryPaths = '/access_codes/generate_code' | '/access_codes/get' | '/access_codes/list' | '/access_codes/unmanaged/get' | '/access_codes/unmanaged/list' | '/access_grants/get' | '/access_grants/get_related' | '/access_grants/list' | '/access_methods/get' | '/access_methods/get_related' | '/access_methods/list' | '/acs/access_groups/get' | '/acs/access_groups/list' | '/acs/access_groups/list_accessible_entrances' | '/acs/access_groups/list_users' | '/acs/access_groups/unmanaged/get' | '/acs/access_groups/unmanaged/list' | '/acs/credential_pools/list' | '/acs/credentials/get' | '/acs/credentials/list' | '/acs/credentials/list_accessible_entrances' | '/acs/credentials/unmanaged/get' | '/acs/credentials/unmanaged/list' | '/acs/encoders/get' | '/acs/encoders/list' | '/acs/entrances/get' | '/acs/entrances/list' | '/acs/entrances/list_credentials_with_access' | '/acs/systems/get' | '/acs/systems/list' | '/acs/systems/list_compatible_credential_manager_acs_systems' | '/acs/users/get' | '/acs/users/list' | '/acs/users/list_accessible_entrances' | '/acs/users/unmanaged/get' | '/acs/users/unmanaged/list' | '/action_attempts/get' | '/action_attempts/list' | '/bridges/get' | '/bridges/list' | '/client_sessions/get' | '/client_sessions/list' | '/connect_webviews/get' | '/connect_webviews/list' | '/connected_accounts/get' | '/connected_accounts/list' | '/devices/get' | '/devices/list' | '/devices/list_device_providers' | '/devices/unmanaged/get' | '/devices/unmanaged/list' | '/events/get' | '/events/list' | '/locks/get' | '/locks/list' | '/noise_sensors/list' | '/noise_sensors/noise_thresholds/get' | '/noise_sensors/noise_thresholds/list' | '/phones/get' | '/phones/list' | '/seam/console/v1/get_resource_type' | '/seam/customer/v1/automation_runs/list' | '/seam/customer/v1/automations/get' | '/seam/customer/v1/portals/get' | '/seam/partner/v1/building_blocks/spaces/auto_map' | '/spaces/get' | '/spaces/get_related' | '/spaces/list' | '/thermostats/get' | '/thermostats/list' | '/thermostats/schedules/get' | '/thermostats/schedules/list' | '/unstable_access_grants/get' | '/unstable_access_grants/list' | '/unstable_access_methods/get' | '/unstable_access_methods/list' | '/unstable_locations/get' | '/unstable_locations/list' | '/unstable_partner/building_blocks/generate_magic_link' | '/user_identities/get' | '/user_identities/list' | '/user_identities/list_accessible_devices' | '/user_identities/list_acs_systems' | '/user_identities/list_acs_users' | '/user_identities/enrollment_automations/get' | '/user_identities/enrollment_automations/list' | '/webhooks/get' | '/webhooks/list' | '/workspaces/find_resources' | '/workspaces/get' | '/workspaces/list';
|
|
294
295
|
export type SeamHttpEndpointPaginatedQueryPaths = '/access_codes/list' | '/access_codes/unmanaged/list' | '/acs/users/list' | '/connect_webviews/list' | '/connected_accounts/list' | '/devices/list' | '/seam/customer/v1/automation_runs/list';
|
|
295
296
|
export type SeamHttpEndpointMutationPaths = '/access_codes/create' | '/access_codes/create_multiple' | '/access_codes/delete' | '/access_codes/pull_backup_access_code' | '/access_codes/report_device_constraints' | '/access_codes/update' | '/access_codes/update_multiple' | '/access_codes/simulate/create_unmanaged_access_code' | '/access_codes/unmanaged/convert_to_managed' | '/access_codes/unmanaged/delete' | '/access_codes/unmanaged/update' | '/access_grants/create' | '/access_grants/delete' | '/access_grants/update' | '/access_methods/delete' | '/access_methods/encode' | '/acs/access_groups/add_user' | '/acs/access_groups/remove_user' | '/acs/credential_provisioning_automations/launch' | '/acs/credentials/assign' | '/acs/credentials/create' | '/acs/credentials/create_offline_code' | '/acs/credentials/delete' | '/acs/credentials/unassign' | '/acs/credentials/update' | '/acs/encoders/encode_credential' | '/acs/encoders/scan_credential' | '/acs/encoders/simulate/next_credential_encode_will_fail' | '/acs/encoders/simulate/next_credential_encode_will_succeed' | '/acs/encoders/simulate/next_credential_scan_will_fail' | '/acs/encoders/simulate/next_credential_scan_will_succeed' | '/acs/entrances/grant_access' | '/acs/users/add_to_access_group' | '/acs/users/create' | '/acs/users/delete' | '/acs/users/remove_from_access_group' | '/acs/users/revoke_access_to_all_entrances' | '/acs/users/suspend' | '/acs/users/unsuspend' | '/acs/users/update' | '/client_sessions/create' | '/client_sessions/delete' | '/client_sessions/get_or_create' | '/client_sessions/grant_access' | '/client_sessions/revoke' | '/connect_webviews/create' | '/connect_webviews/delete' | '/connected_accounts/delete' | '/connected_accounts/sync' | '/connected_accounts/update' | '/customers/create_portal' | '/customers/push_data' | '/devices/delete' | '/devices/update' | '/devices/simulate/connect' | '/devices/simulate/connect_to_hub' | '/devices/simulate/disconnect' | '/devices/simulate/disconnect_from_hub' | '/devices/simulate/remove' | '/devices/unmanaged/update' | '/locks/lock_door' | '/locks/unlock_door' | '/locks/simulate/keypad_code_entry' | '/locks/simulate/manual_lock_via_keypad' | '/noise_sensors/noise_thresholds/create' | '/noise_sensors/noise_thresholds/delete' | '/noise_sensors/noise_thresholds/update' | '/noise_sensors/simulate/trigger_noise_threshold' | '/phones/deactivate' | '/phones/simulate/create_sandbox_phone' | '/seam/customer/v1/automations/delete' | '/seam/customer/v1/automations/update' | '/seam/customer/v1/settings/update' | '/spaces/add_acs_entrances' | '/spaces/add_devices' | '/spaces/create' | '/spaces/delete' | '/spaces/remove_acs_entrances' | '/spaces/remove_devices' | '/spaces/update' | '/thermostats/activate_climate_preset' | '/thermostats/cool' | '/thermostats/create_climate_preset' | '/thermostats/delete_climate_preset' | '/thermostats/heat' | '/thermostats/heat_cool' | '/thermostats/off' | '/thermostats/set_fallback_climate_preset' | '/thermostats/set_fan_mode' | '/thermostats/set_hvac_mode' | '/thermostats/set_temperature_threshold' | '/thermostats/update_climate_preset' | '/thermostats/update_weekly_program' | '/thermostats/daily_programs/create' | '/thermostats/daily_programs/delete' | '/thermostats/daily_programs/update' | '/thermostats/schedules/create' | '/thermostats/schedules/delete' | '/thermostats/schedules/update' | '/thermostats/simulate/hvac_mode_adjusted' | '/thermostats/simulate/temperature_reached' | '/unstable_access_grants/create' | '/unstable_access_grants/delete' | '/unstable_access_methods/delete' | '/unstable_locations/add_acs_entrances' | '/unstable_locations/add_devices' | '/unstable_locations/create' | '/unstable_locations/delete' | '/unstable_locations/remove_acs_entrances' | '/unstable_locations/remove_devices' | '/unstable_locations/update' | '/unstable_partner/building_blocks/connect_accounts' | '/unstable_partner/building_blocks/manage_devices' | '/unstable_partner/building_blocks/organize_spaces' | '/user_identities/add_acs_user' | '/user_identities/create' | '/user_identities/delete' | '/user_identities/generate_instant_key' | '/user_identities/grant_access_to_device' | '/user_identities/remove_acs_user' | '/user_identities/revoke_access_to_device' | '/user_identities/update' | '/user_identities/enrollment_automations/delete' | '/user_identities/enrollment_automations/launch' | '/webhooks/create' | '/webhooks/delete' | '/webhooks/update' | '/workspaces/create' | '/workspaces/reset_sandbox' | '/workspaces/update';
|
|
@@ -37,12 +37,12 @@ import { SeamHttpDevicesUnmanaged, } from './devices/unmanaged/index.js';
|
|
|
37
37
|
import { SeamHttpEvents, } from './events/index.js';
|
|
38
38
|
import { SeamHttpLocks, } from './locks/index.js';
|
|
39
39
|
import { SeamHttpLocksSimulate, } from './locks/simulate/index.js';
|
|
40
|
-
import { SeamHttpNetworks, } from './networks/index.js';
|
|
41
40
|
import { SeamHttpNoiseSensors, } from './noise-sensors/index.js';
|
|
42
41
|
import { SeamHttpNoiseSensorsNoiseThresholds, } from './noise-sensors/noise-thresholds/index.js';
|
|
43
42
|
import { SeamHttpNoiseSensorsSimulate, } from './noise-sensors/simulate/index.js';
|
|
44
43
|
import { SeamHttpPhones, } from './phones/index.js';
|
|
45
44
|
import { SeamHttpPhonesSimulate, } from './phones/simulate/index.js';
|
|
45
|
+
import { SeamHttpSeamConsoleV1, } from './seam/console/v1/index.js';
|
|
46
46
|
import { SeamHttpSeamCustomerV1AutomationRuns, } from './seam/customer/v1/automation-runs/index.js';
|
|
47
47
|
import { SeamHttpSeamCustomerV1Automations, } from './seam/customer/v1/automations/index.js';
|
|
48
48
|
import { SeamHttpSeamCustomerV1Portals, } from './seam/customer/v1/portals/index.js';
|
|
@@ -308,6 +308,13 @@ export class SeamHttpEndpoints {
|
|
|
308
308
|
return seam.get(...args);
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
+
get ['/access_methods/get_related']() {
|
|
312
|
+
const { client, defaults } = this;
|
|
313
|
+
return function accessMethodsGetRelated(...args) {
|
|
314
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults);
|
|
315
|
+
return seam.getRelated(...args);
|
|
316
|
+
};
|
|
317
|
+
}
|
|
311
318
|
get ['/access_methods/list']() {
|
|
312
319
|
const { client, defaults } = this;
|
|
313
320
|
return function accessMethodsList(...args) {
|
|
@@ -995,26 +1002,6 @@ export class SeamHttpEndpoints {
|
|
|
995
1002
|
return seam.manualLockViaKeypad(...args);
|
|
996
1003
|
};
|
|
997
1004
|
}
|
|
998
|
-
get ['/networks/get']() {
|
|
999
|
-
const { client, defaults } = this;
|
|
1000
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1001
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
1002
|
-
}
|
|
1003
|
-
return function networksGet(...args) {
|
|
1004
|
-
const seam = SeamHttpNetworks.fromClient(client, defaults);
|
|
1005
|
-
return seam.get(...args);
|
|
1006
|
-
};
|
|
1007
|
-
}
|
|
1008
|
-
get ['/networks/list']() {
|
|
1009
|
-
const { client, defaults } = this;
|
|
1010
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1011
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
1012
|
-
}
|
|
1013
|
-
return function networksList(...args) {
|
|
1014
|
-
const seam = SeamHttpNetworks.fromClient(client, defaults);
|
|
1015
|
-
return seam.list(...args);
|
|
1016
|
-
};
|
|
1017
|
-
}
|
|
1018
1005
|
get ['/noise_sensors/list']() {
|
|
1019
1006
|
const { client, defaults } = this;
|
|
1020
1007
|
return function noiseSensorsList(...args) {
|
|
@@ -1092,6 +1079,16 @@ export class SeamHttpEndpoints {
|
|
|
1092
1079
|
return seam.createSandboxPhone(...args);
|
|
1093
1080
|
};
|
|
1094
1081
|
}
|
|
1082
|
+
get ['/seam/console/v1/get_resource_type']() {
|
|
1083
|
+
const { client, defaults } = this;
|
|
1084
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1085
|
+
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
1086
|
+
}
|
|
1087
|
+
return function seamConsoleV1GetResourceType(...args) {
|
|
1088
|
+
const seam = SeamHttpSeamConsoleV1.fromClient(client, defaults);
|
|
1089
|
+
return seam.getResourceType(...args);
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1095
1092
|
get ['/seam/customer/v1/automation_runs/list']() {
|
|
1096
1093
|
const { client, defaults } = this;
|
|
1097
1094
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -1771,6 +1768,16 @@ export class SeamHttpEndpoints {
|
|
|
1771
1768
|
return seam.create(...args);
|
|
1772
1769
|
};
|
|
1773
1770
|
}
|
|
1771
|
+
get ['/workspaces/find_resources']() {
|
|
1772
|
+
const { client, defaults } = this;
|
|
1773
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1774
|
+
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
1775
|
+
}
|
|
1776
|
+
return function workspacesFindResources(...args) {
|
|
1777
|
+
const seam = SeamHttpWorkspaces.fromClient(client, defaults);
|
|
1778
|
+
return seam.findResources(...args);
|
|
1779
|
+
};
|
|
1780
|
+
}
|
|
1774
1781
|
get ['/workspaces/get']() {
|
|
1775
1782
|
const { client, defaults } = this;
|
|
1776
1783
|
return function workspacesGet(...args) {
|