@seamapi/http 1.49.0 → 1.51.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 +313 -117
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +106 -59
- package/dist/index.cjs +319 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +16 -16
- package/lib/seam/connect/routes/index.d.ts +1 -1
- package/lib/seam/connect/routes/index.js +1 -1
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/instant-keys/index.d.ts +1 -0
- package/lib/seam/connect/routes/instant-keys/index.js +6 -0
- package/lib/seam/connect/routes/instant-keys/index.js.map +1 -0
- package/lib/seam/connect/routes/{networks/networks.d.ts → instant-keys/instant-keys.d.ts} +15 -28
- package/lib/seam/connect/routes/{networks/networks.js → instant-keys/instant-keys.js} +12 -30
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -0
- 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/seam/console/v1/v1.d.ts +34 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.js +102 -0
- 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 -5
- package/lib/seam/connect/routes/seam-http-endpoints.js +29 -21
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/seam-http.d.ts +2 -2
- package/lib/seam/connect/routes/seam-http.js +4 -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/index.ts +1 -1
- package/src/lib/seam/connect/routes/instant-keys/index.ts +6 -0
- package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +200 -0
- 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 +67 -47
- package/src/lib/seam/connect/routes/seam-http.ts +5 -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,6BA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QACJ,OAAO,qBAAqB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACrE,CAAC;;AAlIM,8BAAU,GAAG,iBAAiB,AAApB,CAAoB"}
|
|
@@ -0,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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
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'>): 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
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
|
+
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
|
+
getResourceLocator(parameters?: SeamConsoleV1GetResourceLocatorParameters, options?: SeamConsoleV1GetResourceLocatorOptions): SeamConsoleV1GetResourceLocatorRequest;
|
|
22
|
+
}
|
|
23
|
+
export type SeamConsoleV1GetResourceLocatorParameters = RouteRequestParams<'/seam/console/v1/get_resource_locator'>;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use SeamConsoleV1GetResourceLocatorParameters instead.
|
|
26
|
+
*/
|
|
27
|
+
export type SeamConsoleV1GetResourceLocatorParams = SeamConsoleV1GetResourceLocatorParameters;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use SeamConsoleV1GetResourceLocatorRequest instead.
|
|
30
|
+
*/
|
|
31
|
+
export type SeamConsoleV1GetResourceLocatorResponse = SetNonNullable<Required<RouteResponse<'/seam/console/v1/get_resource_locator'>>>;
|
|
32
|
+
export type SeamConsoleV1GetResourceLocatorRequest = SeamHttpRequest<SeamConsoleV1GetResourceLocatorResponse, 'resource_locator'>;
|
|
33
|
+
export interface SeamConsoleV1GetResourceLocatorOptions {
|
|
34
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 SeamHttpSeamConsoleV1 {
|
|
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 SeamHttpSeamConsoleV1(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 SeamHttpSeamConsoleV1(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 SeamHttpSeamConsoleV1(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 SeamHttpSeamConsoleV1.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 SeamHttpSeamConsoleV1.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 SeamHttpSeamConsoleV1(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 SeamHttpSeamConsoleV1(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
|
+
getResourceLocator(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: '/seam/console/v1/get_resource_locator',
|
|
94
|
+
method: 'GET',
|
|
95
|
+
params: parameters,
|
|
96
|
+
responseKey: 'resource_locator',
|
|
97
|
+
options,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
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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,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,uCAAuC;YACjD,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,UAAU;YAClB,WAAW,EAAE,kBAAkB;YAC/B,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"}
|
|
@@ -29,14 +29,15 @@ import { type DevicesDeleteOptions, type DevicesDeleteParameters, type DevicesDe
|
|
|
29
29
|
import { type DevicesSimulateConnectOptions, type DevicesSimulateConnectParameters, type DevicesSimulateConnectRequest, type DevicesSimulateConnectToHubOptions, type DevicesSimulateConnectToHubParameters, type DevicesSimulateConnectToHubRequest, type DevicesSimulateDisconnectFromHubOptions, type DevicesSimulateDisconnectFromHubParameters, type DevicesSimulateDisconnectFromHubRequest, type DevicesSimulateDisconnectOptions, type DevicesSimulateDisconnectParameters, type DevicesSimulateDisconnectRequest, type DevicesSimulateRemoveOptions, type DevicesSimulateRemoveParameters, type DevicesSimulateRemoveRequest } from './devices/simulate/index.js';
|
|
30
30
|
import { type DevicesUnmanagedGetOptions, type DevicesUnmanagedGetParameters, type DevicesUnmanagedGetRequest, type DevicesUnmanagedListOptions, type DevicesUnmanagedListParameters, type DevicesUnmanagedListRequest, type DevicesUnmanagedUpdateOptions, type DevicesUnmanagedUpdateParameters, type DevicesUnmanagedUpdateRequest } from './devices/unmanaged/index.js';
|
|
31
31
|
import { type EventsGetOptions, type EventsGetParameters, type EventsGetRequest, type EventsListOptions, type EventsListParameters, type EventsListRequest } from './events/index.js';
|
|
32
|
+
import { type InstantKeysListOptions, type InstantKeysListParameters, type InstantKeysListRequest } from './instant-keys/index.js';
|
|
32
33
|
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
34
|
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
35
|
import { type NoiseSensorsListOptions, type NoiseSensorsListParameters, type NoiseSensorsListRequest } from './noise-sensors/index.js';
|
|
36
36
|
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
37
|
import { type NoiseSensorsSimulateTriggerNoiseThresholdOptions, type NoiseSensorsSimulateTriggerNoiseThresholdParameters, type NoiseSensorsSimulateTriggerNoiseThresholdRequest } from './noise-sensors/simulate/index.js';
|
|
38
38
|
import { type PhonesDeactivateOptions, type PhonesDeactivateParameters, type PhonesDeactivateRequest, type PhonesGetOptions, type PhonesGetParameters, type PhonesGetRequest, type PhonesListOptions, type PhonesListParameters, type PhonesListRequest } from './phones/index.js';
|
|
39
39
|
import { type PhonesSimulateCreateSandboxPhoneOptions, type PhonesSimulateCreateSandboxPhoneParameters, type PhonesSimulateCreateSandboxPhoneRequest } from './phones/simulate/index.js';
|
|
40
|
+
import { type SeamConsoleV1GetResourceLocatorOptions, type SeamConsoleV1GetResourceLocatorParameters, type SeamConsoleV1GetResourceLocatorRequest } from './seam/console/v1/index.js';
|
|
40
41
|
import { type SeamCustomerV1AutomationRunsListOptions, type SeamCustomerV1AutomationRunsListParameters, type SeamCustomerV1AutomationRunsListRequest } from './seam/customer/v1/automation-runs/index.js';
|
|
41
42
|
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
43
|
import { type SeamCustomerV1PortalsGetOptions, type SeamCustomerV1PortalsGetParameters, type SeamCustomerV1PortalsGetRequest } from './seam/customer/v1/portals/index.js';
|
|
@@ -54,7 +55,7 @@ import { type UnstablePartnerBuildingBlocksConnectAccountsOptions, type Unstable
|
|
|
54
55
|
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
56
|
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
57
|
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';
|
|
58
|
+
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
59
|
export declare class SeamHttpEndpoints {
|
|
59
60
|
client: Client;
|
|
60
61
|
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
@@ -182,14 +183,13 @@ export declare class SeamHttpEndpoints {
|
|
|
182
183
|
get ['/devices/unmanaged/update'](): (parameters?: DevicesUnmanagedUpdateParameters, options?: DevicesUnmanagedUpdateOptions) => DevicesUnmanagedUpdateRequest;
|
|
183
184
|
get ['/events/get'](): (parameters?: EventsGetParameters, options?: EventsGetOptions) => EventsGetRequest;
|
|
184
185
|
get ['/events/list'](): (parameters?: EventsListParameters, options?: EventsListOptions) => EventsListRequest;
|
|
186
|
+
get ['/instant_keys/list'](): (parameters?: InstantKeysListParameters, options?: InstantKeysListOptions) => InstantKeysListRequest;
|
|
185
187
|
get ['/locks/get'](): (parameters?: LocksGetParameters, options?: LocksGetOptions) => LocksGetRequest;
|
|
186
188
|
get ['/locks/list'](): (parameters?: LocksListParameters, options?: LocksListOptions) => LocksListRequest;
|
|
187
189
|
get ['/locks/lock_door'](): (parameters?: LocksLockDoorParameters, options?: LocksLockDoorOptions) => LocksLockDoorRequest;
|
|
188
190
|
get ['/locks/unlock_door'](): (parameters?: LocksUnlockDoorParameters, options?: LocksUnlockDoorOptions) => LocksUnlockDoorRequest;
|
|
189
191
|
get ['/locks/simulate/keypad_code_entry'](): (parameters?: LocksSimulateKeypadCodeEntryParameters, options?: LocksSimulateKeypadCodeEntryOptions) => LocksSimulateKeypadCodeEntryRequest;
|
|
190
192
|
get ['/locks/simulate/manual_lock_via_keypad'](): (parameters?: LocksSimulateManualLockViaKeypadParameters, options?: LocksSimulateManualLockViaKeypadOptions) => LocksSimulateManualLockViaKeypadRequest;
|
|
191
|
-
get ['/networks/get'](): (parameters?: NetworksGetParameters, options?: NetworksGetOptions) => NetworksGetRequest;
|
|
192
|
-
get ['/networks/list'](): (parameters?: NetworksListParameters, options?: NetworksListOptions) => NetworksListRequest;
|
|
193
193
|
get ['/noise_sensors/list'](): (parameters?: NoiseSensorsListParameters, options?: NoiseSensorsListOptions) => NoiseSensorsListRequest;
|
|
194
194
|
get ['/noise_sensors/noise_thresholds/create'](): (parameters?: NoiseSensorsNoiseThresholdsCreateParameters, options?: NoiseSensorsNoiseThresholdsCreateOptions) => NoiseSensorsNoiseThresholdsCreateRequest;
|
|
195
195
|
get ['/noise_sensors/noise_thresholds/delete'](): (parameters?: NoiseSensorsNoiseThresholdsDeleteParameters, options?: NoiseSensorsNoiseThresholdsDeleteOptions) => NoiseSensorsNoiseThresholdsDeleteRequest;
|
|
@@ -201,6 +201,7 @@ export declare class SeamHttpEndpoints {
|
|
|
201
201
|
get ['/phones/get'](): (parameters?: PhonesGetParameters, options?: PhonesGetOptions) => PhonesGetRequest;
|
|
202
202
|
get ['/phones/list'](): (parameters?: PhonesListParameters, options?: PhonesListOptions) => PhonesListRequest;
|
|
203
203
|
get ['/phones/simulate/create_sandbox_phone'](): (parameters?: PhonesSimulateCreateSandboxPhoneParameters, options?: PhonesSimulateCreateSandboxPhoneOptions) => PhonesSimulateCreateSandboxPhoneRequest;
|
|
204
|
+
get ['/seam/console/v1/get_resource_locator'](): (parameters?: SeamConsoleV1GetResourceLocatorParameters, options?: SeamConsoleV1GetResourceLocatorOptions) => SeamConsoleV1GetResourceLocatorRequest;
|
|
204
205
|
get ['/seam/customer/v1/automation_runs/list'](): (parameters?: SeamCustomerV1AutomationRunsListParameters, options?: SeamCustomerV1AutomationRunsListOptions) => SeamCustomerV1AutomationRunsListRequest;
|
|
205
206
|
get ['/seam/customer/v1/automations/delete'](): (parameters?: SeamCustomerV1AutomationsDeleteParameters, options?: SeamCustomerV1AutomationsDeleteOptions) => SeamCustomerV1AutomationsDeleteRequest;
|
|
206
207
|
get ['/seam/customer/v1/automations/get'](): (parameters?: SeamCustomerV1AutomationsGetParameters, options?: SeamCustomerV1AutomationsGetOptions) => SeamCustomerV1AutomationsGetRequest;
|
|
@@ -286,11 +287,12 @@ export declare class SeamHttpEndpoints {
|
|
|
286
287
|
get ['/webhooks/list'](): (parameters?: WebhooksListParameters, options?: WebhooksListOptions) => WebhooksListRequest;
|
|
287
288
|
get ['/webhooks/update'](): (parameters?: WebhooksUpdateParameters, options?: WebhooksUpdateOptions) => WebhooksUpdateRequest;
|
|
288
289
|
get ['/workspaces/create'](): (parameters?: WorkspacesCreateParameters, options?: WorkspacesCreateOptions) => WorkspacesCreateRequest;
|
|
290
|
+
get ['/workspaces/find_resources'](): (parameters?: WorkspacesFindResourcesParameters, options?: WorkspacesFindResourcesOptions) => WorkspacesFindResourcesRequest;
|
|
289
291
|
get ['/workspaces/get'](): (parameters?: WorkspacesGetParameters, options?: WorkspacesGetOptions) => WorkspacesGetRequest;
|
|
290
292
|
get ['/workspaces/list'](): (parameters?: WorkspacesListParameters, options?: WorkspacesListOptions) => WorkspacesListRequest;
|
|
291
293
|
get ['/workspaces/reset_sandbox'](): (parameters?: WorkspacesResetSandboxParameters, options?: WorkspacesResetSandboxOptions) => WorkspacesResetSandboxRequest;
|
|
292
294
|
get ['/workspaces/update'](): (parameters?: WorkspacesUpdateParameters, options?: WorkspacesUpdateOptions) => WorkspacesUpdateRequest;
|
|
293
295
|
}
|
|
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' | '/
|
|
296
|
+
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' | '/instant_keys/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_locator' | '/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';
|
|
295
297
|
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';
|
|
296
298
|
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';
|
|
@@ -35,14 +35,15 @@ import { SeamHttpDevices, } from './devices/index.js';
|
|
|
35
35
|
import { SeamHttpDevicesSimulate, } from './devices/simulate/index.js';
|
|
36
36
|
import { SeamHttpDevicesUnmanaged, } from './devices/unmanaged/index.js';
|
|
37
37
|
import { SeamHttpEvents, } from './events/index.js';
|
|
38
|
+
import { SeamHttpInstantKeys, } from './instant-keys/index.js';
|
|
38
39
|
import { SeamHttpLocks, } from './locks/index.js';
|
|
39
40
|
import { SeamHttpLocksSimulate, } from './locks/simulate/index.js';
|
|
40
|
-
import { SeamHttpNetworks, } from './networks/index.js';
|
|
41
41
|
import { SeamHttpNoiseSensors, } from './noise-sensors/index.js';
|
|
42
42
|
import { SeamHttpNoiseSensorsNoiseThresholds, } from './noise-sensors/noise-thresholds/index.js';
|
|
43
43
|
import { SeamHttpNoiseSensorsSimulate, } from './noise-sensors/simulate/index.js';
|
|
44
44
|
import { SeamHttpPhones, } from './phones/index.js';
|
|
45
45
|
import { SeamHttpPhonesSimulate, } from './phones/simulate/index.js';
|
|
46
|
+
import { SeamHttpSeamConsoleV1, } from './seam/console/v1/index.js';
|
|
46
47
|
import { SeamHttpSeamCustomerV1AutomationRuns, } from './seam/customer/v1/automation-runs/index.js';
|
|
47
48
|
import { SeamHttpSeamCustomerV1Automations, } from './seam/customer/v1/automations/index.js';
|
|
48
49
|
import { SeamHttpSeamCustomerV1Portals, } from './seam/customer/v1/portals/index.js';
|
|
@@ -960,6 +961,13 @@ export class SeamHttpEndpoints {
|
|
|
960
961
|
return seam.list(...args);
|
|
961
962
|
};
|
|
962
963
|
}
|
|
964
|
+
get ['/instant_keys/list']() {
|
|
965
|
+
const { client, defaults } = this;
|
|
966
|
+
return function instantKeysList(...args) {
|
|
967
|
+
const seam = SeamHttpInstantKeys.fromClient(client, defaults);
|
|
968
|
+
return seam.list(...args);
|
|
969
|
+
};
|
|
970
|
+
}
|
|
963
971
|
get ['/locks/get']() {
|
|
964
972
|
const { client, defaults } = this;
|
|
965
973
|
return function locksGet(...args) {
|
|
@@ -1002,26 +1010,6 @@ export class SeamHttpEndpoints {
|
|
|
1002
1010
|
return seam.manualLockViaKeypad(...args);
|
|
1003
1011
|
};
|
|
1004
1012
|
}
|
|
1005
|
-
get ['/networks/get']() {
|
|
1006
|
-
const { client, defaults } = this;
|
|
1007
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1008
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
1009
|
-
}
|
|
1010
|
-
return function networksGet(...args) {
|
|
1011
|
-
const seam = SeamHttpNetworks.fromClient(client, defaults);
|
|
1012
|
-
return seam.get(...args);
|
|
1013
|
-
};
|
|
1014
|
-
}
|
|
1015
|
-
get ['/networks/list']() {
|
|
1016
|
-
const { client, defaults } = this;
|
|
1017
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1018
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
1019
|
-
}
|
|
1020
|
-
return function networksList(...args) {
|
|
1021
|
-
const seam = SeamHttpNetworks.fromClient(client, defaults);
|
|
1022
|
-
return seam.list(...args);
|
|
1023
|
-
};
|
|
1024
|
-
}
|
|
1025
1013
|
get ['/noise_sensors/list']() {
|
|
1026
1014
|
const { client, defaults } = this;
|
|
1027
1015
|
return function noiseSensorsList(...args) {
|
|
@@ -1099,6 +1087,16 @@ export class SeamHttpEndpoints {
|
|
|
1099
1087
|
return seam.createSandboxPhone(...args);
|
|
1100
1088
|
};
|
|
1101
1089
|
}
|
|
1090
|
+
get ['/seam/console/v1/get_resource_locator']() {
|
|
1091
|
+
const { client, defaults } = this;
|
|
1092
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1093
|
+
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
1094
|
+
}
|
|
1095
|
+
return function seamConsoleV1GetResourceLocator(...args) {
|
|
1096
|
+
const seam = SeamHttpSeamConsoleV1.fromClient(client, defaults);
|
|
1097
|
+
return seam.getResourceLocator(...args);
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1102
1100
|
get ['/seam/customer/v1/automation_runs/list']() {
|
|
1103
1101
|
const { client, defaults } = this;
|
|
1104
1102
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -1778,6 +1776,16 @@ export class SeamHttpEndpoints {
|
|
|
1778
1776
|
return seam.create(...args);
|
|
1779
1777
|
};
|
|
1780
1778
|
}
|
|
1779
|
+
get ['/workspaces/find_resources']() {
|
|
1780
|
+
const { client, defaults } = this;
|
|
1781
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1782
|
+
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
1783
|
+
}
|
|
1784
|
+
return function workspacesFindResources(...args) {
|
|
1785
|
+
const seam = SeamHttpWorkspaces.fromClient(client, defaults);
|
|
1786
|
+
return seam.findResources(...args);
|
|
1787
|
+
};
|
|
1788
|
+
}
|
|
1781
1789
|
get ['/workspaces/get']() {
|
|
1782
1790
|
const { client, defaults } = this;
|
|
1783
1791
|
return function workspacesGet(...args) {
|