@seamapi/http 1.100.0 → 1.102.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 +323 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +81 -3
- package/dist/index.cjs +329 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.d.ts +34 -0
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.js +104 -0
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/v1.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
- 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/v1/customers/customers.d.ts +34 -0
- package/lib/seam/connect/routes/seam/v1/customers/customers.js +98 -0
- package/lib/seam/connect/routes/seam/v1/customers/customers.js.map +1 -0
- package/lib/seam/connect/routes/seam/v1/customers/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/v1/customers/index.js +6 -0
- package/lib/seam/connect/routes/seam/v1/customers/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/v1/index.d.ts +2 -0
- package/lib/seam/connect/routes/seam/v1/index.js +7 -0
- package/lib/seam/connect/routes/seam/v1/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/v1/v1.d.ts +21 -0
- package/lib/seam/connect/routes/seam/v1/v1.js +92 -0
- package/lib/seam/connect/routes/seam/v1/v1.js.map +1 -0
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +6 -2
- package/lib/seam/connect/routes/seam-http-endpoints.js +19 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.ts +214 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/connector-customers/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +8 -0
- package/src/lib/seam/connect/routes/seam/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam/v1/customers/customers.ts +197 -0
- package/src/lib/seam/connect/routes/seam/v1/customers/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/v1/index.ts +7 -0
- package/src/lib/seam/connect/routes/seam/v1/v1.ts +168 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +48 -0
- package/src/lib/version.ts +1 -1
|
@@ -0,0 +1,98 @@
|
|
|
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 SeamHttpSeamV1Customers {
|
|
14
|
+
client;
|
|
15
|
+
defaults;
|
|
16
|
+
ltsVersion = seamApiLtsVersion;
|
|
17
|
+
static ltsVersion = seamApiLtsVersion;
|
|
18
|
+
constructor(apiKeyOrOptions = {}) {
|
|
19
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
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 SeamHttpSeamV1Customers(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 SeamHttpSeamV1Customers(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 SeamHttpSeamV1Customers(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 SeamHttpSeamV1Customers.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 SeamHttpSeamV1Customers.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 SeamHttpSeamV1Customers(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 SeamHttpSeamV1Customers(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
|
+
pushData(parameters, options = {}) {
|
|
89
|
+
return new SeamHttpRequest(this, {
|
|
90
|
+
pathname: '/seam/v1/customers/push_data',
|
|
91
|
+
method: 'POST',
|
|
92
|
+
body: parameters,
|
|
93
|
+
responseKey: undefined,
|
|
94
|
+
options,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../../../../src/lib/seam/connect/routes/seam/v1/customers/customers.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,kDA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MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './customers.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/lib/seam/connect/routes/seam/v1/customers/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/seam/v1/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,sBAAsB,CAAA;AACpC,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Client } from '../../../../../../lib/seam/connect/client.js';
|
|
2
|
+
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../../../lib/seam/connect/options.js';
|
|
3
|
+
import type { SeamHttpRequest } from '../../../../../../lib/seam/connect/seam-http-request.js';
|
|
4
|
+
import { SeamPaginator } from '../../../../../../lib/seam/connect/seam-paginator.js';
|
|
5
|
+
import { SeamHttpSeamV1Customers } from './customers/index.js';
|
|
6
|
+
export declare class SeamHttpSeamV1 {
|
|
7
|
+
client: Client;
|
|
8
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
9
|
+
readonly ltsVersion = "1.0.0";
|
|
10
|
+
static ltsVersion: string;
|
|
11
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
12
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpSeamV1;
|
|
13
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpSeamV1;
|
|
14
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpSeamV1;
|
|
15
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpSeamV1>;
|
|
16
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpSeamV1;
|
|
17
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpSeamV1;
|
|
18
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
19
|
+
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
20
|
+
get customers(): SeamHttpSeamV1Customers;
|
|
21
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { SeamHttpSeamV1Customers } from './customers/index.js';
|
|
13
|
+
export class SeamHttpSeamV1 {
|
|
14
|
+
client;
|
|
15
|
+
defaults;
|
|
16
|
+
ltsVersion = seamApiLtsVersion;
|
|
17
|
+
static ltsVersion = seamApiLtsVersion;
|
|
18
|
+
constructor(apiKeyOrOptions = {}) {
|
|
19
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
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 SeamHttpSeamV1(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 SeamHttpSeamV1(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 SeamHttpSeamV1(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 SeamHttpSeamV1.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 SeamHttpSeamV1.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 SeamHttpSeamV1(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 SeamHttpSeamV1(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 customers() {
|
|
89
|
+
return SeamHttpSeamV1Customers.fromClient(this.client, this.defaults);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/seam/v1/v1.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,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@@ import { type SeamConsoleV1TimelinesGetOptions, type SeamConsoleV1TimelinesGetPa
|
|
|
45
45
|
import { type SeamCustomerV1AccessGrantsListOptions, type SeamCustomerV1AccessGrantsListParameters, type SeamCustomerV1AccessGrantsListRequest } from './seam/customer/v1/access-grants/index.js';
|
|
46
46
|
import { type SeamCustomerV1AutomationRunsListOptions, type SeamCustomerV1AutomationRunsListParameters, type SeamCustomerV1AutomationRunsListRequest } from './seam/customer/v1/automation-runs/index.js';
|
|
47
47
|
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';
|
|
48
|
+
import { type SeamCustomerV1ConnectorCustomersListOptions, type SeamCustomerV1ConnectorCustomersListParameters, type SeamCustomerV1ConnectorCustomersListRequest } from './seam/customer/v1/connector-customers/index.js';
|
|
48
49
|
import { type SeamCustomerV1ConnectorsAuthorizeOptions, type SeamCustomerV1ConnectorsAuthorizeParameters, type SeamCustomerV1ConnectorsAuthorizeRequest, type SeamCustomerV1ConnectorsConnectorTypesOptions, type SeamCustomerV1ConnectorsConnectorTypesParameters, type SeamCustomerV1ConnectorsConnectorTypesRequest, type SeamCustomerV1ConnectorsCreateOptions, type SeamCustomerV1ConnectorsCreateParameters, type SeamCustomerV1ConnectorsCreateRequest, type SeamCustomerV1ConnectorsDeleteOptions, type SeamCustomerV1ConnectorsDeleteParameters, type SeamCustomerV1ConnectorsDeleteRequest, type SeamCustomerV1ConnectorsListOptions, type SeamCustomerV1ConnectorsListParameters, type SeamCustomerV1ConnectorsListRequest, type SeamCustomerV1ConnectorsSyncOptions, type SeamCustomerV1ConnectorsSyncParameters, type SeamCustomerV1ConnectorsSyncRequest, type SeamCustomerV1ConnectorsUpdateOptions, type SeamCustomerV1ConnectorsUpdateParameters, type SeamCustomerV1ConnectorsUpdateRequest } from './seam/customer/v1/connectors/index.js';
|
|
49
50
|
import { type SeamCustomerV1CustomersListOptions, type SeamCustomerV1CustomersListParameters, type SeamCustomerV1CustomersListRequest, type SeamCustomerV1CustomersOpenPortalOptions, type SeamCustomerV1CustomersOpenPortalParameters, type SeamCustomerV1CustomersOpenPortalRequest } from './seam/customer/v1/customers/index.js';
|
|
50
51
|
import { type SeamCustomerV1EventsListOptions, type SeamCustomerV1EventsListParameters, type SeamCustomerV1EventsListRequest } from './seam/customer/v1/events/index.js';
|
|
@@ -54,6 +55,7 @@ import { type SeamCustomerV1SettingsGetOptions, type SeamCustomerV1SettingsGetPa
|
|
|
54
55
|
import { type SeamCustomerV1SpacesCreateOptions, type SeamCustomerV1SpacesCreateParameters, type SeamCustomerV1SpacesCreateRequest, type SeamCustomerV1SpacesListOptions, type SeamCustomerV1SpacesListParameters, type SeamCustomerV1SpacesListRequest, type SeamCustomerV1SpacesListReservationsOptions, type SeamCustomerV1SpacesListReservationsParameters, type SeamCustomerV1SpacesListReservationsRequest } from './seam/customer/v1/spaces/index.js';
|
|
55
56
|
import { type SeamCustomerV1StaffMembersGetOptions, type SeamCustomerV1StaffMembersGetParameters, type SeamCustomerV1StaffMembersGetRequest, type SeamCustomerV1StaffMembersListOptions, type SeamCustomerV1StaffMembersListParameters, type SeamCustomerV1StaffMembersListRequest } from './seam/customer/v1/staff-members/index.js';
|
|
56
57
|
import { type SeamPartnerV1BuildingBlocksSpacesAutoMapOptions, type SeamPartnerV1BuildingBlocksSpacesAutoMapParameters, type SeamPartnerV1BuildingBlocksSpacesAutoMapRequest } from './seam/partner/v1/building-blocks/spaces/index.js';
|
|
58
|
+
import { type SeamV1CustomersPushDataOptions, type SeamV1CustomersPushDataParameters, type SeamV1CustomersPushDataRequest } from './seam/v1/customers/index.js';
|
|
57
59
|
import { type SpacesAddAcsEntrancesOptions, type SpacesAddAcsEntrancesParameters, type SpacesAddAcsEntrancesRequest, type SpacesAddDevicesOptions, type SpacesAddDevicesParameters, type SpacesAddDevicesRequest, type SpacesCreateOptions, type SpacesCreateParameters, type SpacesCreateRequest, type SpacesDeleteOptions, type SpacesDeleteParameters, type SpacesDeleteRequest, type SpacesGetOptions, type SpacesGetParameters, type SpacesGetRelatedOptions, type SpacesGetRelatedParameters, type SpacesGetRelatedRequest, type SpacesGetRequest, type SpacesListOptions, type SpacesListParameters, type SpacesListRequest, type SpacesRemoveAcsEntrancesOptions, type SpacesRemoveAcsEntrancesParameters, type SpacesRemoveAcsEntrancesRequest, type SpacesRemoveDevicesOptions, type SpacesRemoveDevicesParameters, type SpacesRemoveDevicesRequest, type SpacesUpdateOptions, type SpacesUpdateParameters, type SpacesUpdateRequest } from './spaces/index.js';
|
|
58
60
|
import { type ThermostatsDailyProgramsCreateOptions, type ThermostatsDailyProgramsCreateParameters, type ThermostatsDailyProgramsCreateRequest, type ThermostatsDailyProgramsDeleteOptions, type ThermostatsDailyProgramsDeleteParameters, type ThermostatsDailyProgramsDeleteRequest, type ThermostatsDailyProgramsUpdateOptions, type ThermostatsDailyProgramsUpdateParameters, type ThermostatsDailyProgramsUpdateRequest } from './thermostats/daily-programs/index.js';
|
|
59
61
|
import { type ThermostatsActivateClimatePresetOptions, type ThermostatsActivateClimatePresetParameters, type ThermostatsActivateClimatePresetRequest, type ThermostatsCoolOptions, type ThermostatsCoolParameters, type ThermostatsCoolRequest, type ThermostatsCreateClimatePresetOptions, type ThermostatsCreateClimatePresetParameters, type ThermostatsCreateClimatePresetRequest, type ThermostatsDeleteClimatePresetOptions, type ThermostatsDeleteClimatePresetParameters, type ThermostatsDeleteClimatePresetRequest, type ThermostatsGetOptions, type ThermostatsGetParameters, type ThermostatsGetRequest, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolParameters, type ThermostatsHeatCoolRequest, type ThermostatsHeatOptions, type ThermostatsHeatParameters, type ThermostatsHeatRequest, type ThermostatsListOptions, type ThermostatsListParameters, type ThermostatsListRequest, type ThermostatsOffOptions, type ThermostatsOffParameters, type ThermostatsOffRequest, type ThermostatsSetFallbackClimatePresetOptions, type ThermostatsSetFallbackClimatePresetParameters, type ThermostatsSetFallbackClimatePresetRequest, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeParameters, type ThermostatsSetFanModeRequest, type ThermostatsSetHvacModeOptions, type ThermostatsSetHvacModeParameters, type ThermostatsSetHvacModeRequest, type ThermostatsSetTemperatureThresholdOptions, type ThermostatsSetTemperatureThresholdParameters, type ThermostatsSetTemperatureThresholdRequest, type ThermostatsUpdateClimatePresetOptions, type ThermostatsUpdateClimatePresetParameters, type ThermostatsUpdateClimatePresetRequest, type ThermostatsUpdateWeeklyProgramOptions, type ThermostatsUpdateWeeklyProgramParameters, type ThermostatsUpdateWeeklyProgramRequest } from './thermostats/index.js';
|
|
@@ -232,6 +234,7 @@ export declare class SeamHttpEndpoints {
|
|
|
232
234
|
get '/seam/customer/v1/automations/delete'(): (parameters?: SeamCustomerV1AutomationsDeleteParameters, options?: SeamCustomerV1AutomationsDeleteOptions) => SeamCustomerV1AutomationsDeleteRequest;
|
|
233
235
|
get '/seam/customer/v1/automations/get'(): (parameters?: SeamCustomerV1AutomationsGetParameters, options?: SeamCustomerV1AutomationsGetOptions) => SeamCustomerV1AutomationsGetRequest;
|
|
234
236
|
get '/seam/customer/v1/automations/update'(): (parameters?: SeamCustomerV1AutomationsUpdateParameters, options?: SeamCustomerV1AutomationsUpdateOptions) => SeamCustomerV1AutomationsUpdateRequest;
|
|
237
|
+
get '/seam/customer/v1/connector_customers/list'(): (parameters?: SeamCustomerV1ConnectorCustomersListParameters, options?: SeamCustomerV1ConnectorCustomersListOptions) => SeamCustomerV1ConnectorCustomersListRequest;
|
|
235
238
|
get '/seam/customer/v1/connectors/authorize'(): (parameters?: SeamCustomerV1ConnectorsAuthorizeParameters, options?: SeamCustomerV1ConnectorsAuthorizeOptions) => SeamCustomerV1ConnectorsAuthorizeRequest;
|
|
236
239
|
get '/seam/customer/v1/connectors/connector_types'(): (parameters?: SeamCustomerV1ConnectorsConnectorTypesParameters, options?: SeamCustomerV1ConnectorsConnectorTypesOptions) => SeamCustomerV1ConnectorsConnectorTypesRequest;
|
|
237
240
|
get '/seam/customer/v1/connectors/create'(): (parameters?: SeamCustomerV1ConnectorsCreateParameters, options?: SeamCustomerV1ConnectorsCreateOptions) => SeamCustomerV1ConnectorsCreateRequest;
|
|
@@ -253,6 +256,7 @@ export declare class SeamHttpEndpoints {
|
|
|
253
256
|
get '/seam/customer/v1/staff_members/get'(): (parameters?: SeamCustomerV1StaffMembersGetParameters, options?: SeamCustomerV1StaffMembersGetOptions) => SeamCustomerV1StaffMembersGetRequest;
|
|
254
257
|
get '/seam/customer/v1/staff_members/list'(): (parameters?: SeamCustomerV1StaffMembersListParameters, options?: SeamCustomerV1StaffMembersListOptions) => SeamCustomerV1StaffMembersListRequest;
|
|
255
258
|
get '/seam/partner/v1/building_blocks/spaces/auto_map'(): (parameters?: SeamPartnerV1BuildingBlocksSpacesAutoMapParameters, options?: SeamPartnerV1BuildingBlocksSpacesAutoMapOptions) => SeamPartnerV1BuildingBlocksSpacesAutoMapRequest;
|
|
259
|
+
get '/seam/v1/customers/push_data'(): (parameters?: SeamV1CustomersPushDataParameters, options?: SeamV1CustomersPushDataOptions) => SeamV1CustomersPushDataRequest;
|
|
256
260
|
get '/spaces/add_acs_entrances'(): (parameters?: SpacesAddAcsEntrancesParameters, options?: SpacesAddAcsEntrancesOptions) => SpacesAddAcsEntrancesRequest;
|
|
257
261
|
get '/spaces/add_devices'(): (parameters?: SpacesAddDevicesParameters, options?: SpacesAddDevicesOptions) => SpacesAddDevicesRequest;
|
|
258
262
|
get '/spaces/create'(): (parameters?: SpacesCreateParameters, options?: SpacesCreateOptions) => SpacesCreateRequest;
|
|
@@ -329,6 +333,6 @@ export declare class SeamHttpEndpoints {
|
|
|
329
333
|
get '/workspaces/customization_profiles/update'(): (parameters?: WorkspacesCustomizationProfilesUpdateParameters, options?: WorkspacesCustomizationProfilesUpdateOptions) => WorkspacesCustomizationProfilesUpdateRequest;
|
|
330
334
|
get '/workspaces/customization_profiles/upload_images'(): (parameters?: WorkspacesCustomizationProfilesUploadImagesParameters, options?: WorkspacesCustomizationProfilesUploadImagesOptions) => WorkspacesCustomizationProfilesUploadImagesRequest;
|
|
331
335
|
}
|
|
332
|
-
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_grants/unmanaged/get' | '/access_grants/unmanaged/list' | '/access_methods/get' | '/access_methods/get_related' | '/access_methods/list' | '/access_methods/unmanaged/get' | '/access_methods/unmanaged/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/get' | '/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/console/v1/timelines/get' | '/seam/customer/v1/access_grants/list' | '/seam/customer/v1/automation_runs/list' | '/seam/customer/v1/automations/get' | '/seam/customer/v1/connectors/authorize' | '/seam/customer/v1/connectors/connector_types' | '/seam/customer/v1/connectors/list' | '/seam/customer/v1/customers/list' | '/seam/customer/v1/events/list' | '/seam/customer/v1/portals/get' | '/seam/customer/v1/reservations/get' | '/seam/customer/v1/reservations/list' | '/seam/customer/v1/settings/get' | '/seam/customer/v1/spaces/list' | '/seam/customer/v1/spaces/list_reservations' | '/seam/customer/v1/staff_members/get' | '/seam/customer/v1/staff_members/list' | '/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_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' | '/user_identities/unmanaged/get' | '/user_identities/unmanaged/list' | '/webhooks/get' | '/webhooks/list' | '/workspaces/find_anything' | '/workspaces/get' | '/workspaces/list' | '/workspaces/customization_profiles/get' | '/workspaces/customization_profiles/list';
|
|
336
|
+
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_grants/unmanaged/get' | '/access_grants/unmanaged/list' | '/access_methods/get' | '/access_methods/get_related' | '/access_methods/list' | '/access_methods/unmanaged/get' | '/access_methods/unmanaged/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/get' | '/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/console/v1/timelines/get' | '/seam/customer/v1/access_grants/list' | '/seam/customer/v1/automation_runs/list' | '/seam/customer/v1/automations/get' | '/seam/customer/v1/connector_customers/list' | '/seam/customer/v1/connectors/authorize' | '/seam/customer/v1/connectors/connector_types' | '/seam/customer/v1/connectors/list' | '/seam/customer/v1/customers/list' | '/seam/customer/v1/events/list' | '/seam/customer/v1/portals/get' | '/seam/customer/v1/reservations/get' | '/seam/customer/v1/reservations/list' | '/seam/customer/v1/settings/get' | '/seam/customer/v1/spaces/list' | '/seam/customer/v1/spaces/list_reservations' | '/seam/customer/v1/staff_members/get' | '/seam/customer/v1/staff_members/list' | '/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_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' | '/user_identities/unmanaged/get' | '/user_identities/unmanaged/list' | '/webhooks/get' | '/webhooks/list' | '/workspaces/find_anything' | '/workspaces/get' | '/workspaces/list' | '/workspaces/customization_profiles/get' | '/workspaces/customization_profiles/list';
|
|
333
337
|
export type SeamHttpEndpointPaginatedQueryPaths = '/access_codes/list' | '/access_codes/unmanaged/list' | '/access_grants/list' | '/acs/credentials/list' | '/acs/encoders/list' | '/acs/entrances/list' | '/acs/users/list' | '/action_attempts/list' | '/connect_webviews/list' | '/connected_accounts/list' | '/devices/list' | '/devices/unmanaged/list' | '/seam/console/v1/timelines/get' | '/seam/customer/v1/automation_runs/list' | '/seam/customer/v1/customers/list' | '/seam/customer/v1/reservations/list' | '/seam/customer/v1/staff_members/list' | '/user_identities/list' | '/user_identities/unmanaged/list';
|
|
334
|
-
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/request_access_methods' | '/access_grants/update' | '/access_grants/unmanaged/update' | '/access_methods/delete' | '/access_methods/encode' | '/acs/access_groups/add_user' | '/acs/access_groups/delete' | '/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/systems/report_devices' | '/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' | '/connected_accounts/simulate/disconnect' | '/customers/create_portal' | '/customers/delete_data' | '/customers/push_data' | '/devices/delete' | '/devices/report_provider_metadata' | '/devices/update' | '/devices/simulate/connect' | '/devices/simulate/connect_to_hub' | '/devices/simulate/disconnect' | '/devices/simulate/disconnect_from_hub' | '/devices/simulate/paid_subscription' | '/devices/simulate/remove' | '/devices/unmanaged/update' | '/instant_keys/delete' | '/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/connectors/create' | '/seam/customer/v1/connectors/delete' | '/seam/customer/v1/connectors/sync' | '/seam/customer/v1/connectors/update' | '/seam/customer/v1/customers/open_portal' | '/seam/customer/v1/settings/update' | '/seam/customer/v1/spaces/create' | '/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_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' | '/user_identities/unmanaged/update' | '/webhooks/create' | '/webhooks/delete' | '/webhooks/update' | '/workspaces/create' | '/workspaces/reset_sandbox' | '/workspaces/update' | '/workspaces/customization_profiles/create' | '/workspaces/customization_profiles/update' | '/workspaces/customization_profiles/upload_images';
|
|
338
|
+
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/request_access_methods' | '/access_grants/update' | '/access_grants/unmanaged/update' | '/access_methods/delete' | '/access_methods/encode' | '/acs/access_groups/add_user' | '/acs/access_groups/delete' | '/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/systems/report_devices' | '/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' | '/connected_accounts/simulate/disconnect' | '/customers/create_portal' | '/customers/delete_data' | '/customers/push_data' | '/devices/delete' | '/devices/report_provider_metadata' | '/devices/update' | '/devices/simulate/connect' | '/devices/simulate/connect_to_hub' | '/devices/simulate/disconnect' | '/devices/simulate/disconnect_from_hub' | '/devices/simulate/paid_subscription' | '/devices/simulate/remove' | '/devices/unmanaged/update' | '/instant_keys/delete' | '/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/connectors/create' | '/seam/customer/v1/connectors/delete' | '/seam/customer/v1/connectors/sync' | '/seam/customer/v1/connectors/update' | '/seam/customer/v1/customers/open_portal' | '/seam/customer/v1/settings/update' | '/seam/customer/v1/spaces/create' | '/seam/v1/customers/push_data' | '/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_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' | '/user_identities/unmanaged/update' | '/webhooks/create' | '/webhooks/delete' | '/webhooks/update' | '/workspaces/create' | '/workspaces/reset_sandbox' | '/workspaces/update' | '/workspaces/customization_profiles/create' | '/workspaces/customization_profiles/update' | '/workspaces/customization_profiles/upload_images';
|
|
@@ -51,6 +51,7 @@ import { SeamHttpSeamConsoleV1Timelines, } from './seam/console/v1/timelines/ind
|
|
|
51
51
|
import { SeamHttpSeamCustomerV1AccessGrants, } from './seam/customer/v1/access-grants/index.js';
|
|
52
52
|
import { SeamHttpSeamCustomerV1AutomationRuns, } from './seam/customer/v1/automation-runs/index.js';
|
|
53
53
|
import { SeamHttpSeamCustomerV1Automations, } from './seam/customer/v1/automations/index.js';
|
|
54
|
+
import { SeamHttpSeamCustomerV1ConnectorCustomers, } from './seam/customer/v1/connector-customers/index.js';
|
|
54
55
|
import { SeamHttpSeamCustomerV1Connectors, } from './seam/customer/v1/connectors/index.js';
|
|
55
56
|
import { SeamHttpSeamCustomerV1Customers, } from './seam/customer/v1/customers/index.js';
|
|
56
57
|
import { SeamHttpSeamCustomerV1Events, } from './seam/customer/v1/events/index.js';
|
|
@@ -60,6 +61,7 @@ import { SeamHttpSeamCustomerV1Settings, } from './seam/customer/v1/settings/ind
|
|
|
60
61
|
import { SeamHttpSeamCustomerV1Spaces, } from './seam/customer/v1/spaces/index.js';
|
|
61
62
|
import { SeamHttpSeamCustomerV1StaffMembers, } from './seam/customer/v1/staff-members/index.js';
|
|
62
63
|
import { SeamHttpSeamPartnerV1BuildingBlocksSpaces, } from './seam/partner/v1/building-blocks/spaces/index.js';
|
|
64
|
+
import { SeamHttpSeamV1Customers, } from './seam/v1/customers/index.js';
|
|
63
65
|
import { SeamHttpSpaces, } from './spaces/index.js';
|
|
64
66
|
import { SeamHttpThermostatsDailyPrograms, } from './thermostats/daily-programs/index.js';
|
|
65
67
|
import { SeamHttpThermostats, } from './thermostats/index.js';
|
|
@@ -1268,6 +1270,16 @@ export class SeamHttpEndpoints {
|
|
|
1268
1270
|
return seam.update(...args);
|
|
1269
1271
|
};
|
|
1270
1272
|
}
|
|
1273
|
+
get '/seam/customer/v1/connector_customers/list'() {
|
|
1274
|
+
const { client, defaults } = this;
|
|
1275
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1276
|
+
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
1277
|
+
}
|
|
1278
|
+
return function seamCustomerV1ConnectorCustomersList(...args) {
|
|
1279
|
+
const seam = SeamHttpSeamCustomerV1ConnectorCustomers.fromClient(client, defaults);
|
|
1280
|
+
return seam.list(...args);
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1271
1283
|
get '/seam/customer/v1/connectors/authorize'() {
|
|
1272
1284
|
const { client, defaults } = this;
|
|
1273
1285
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -1478,6 +1490,13 @@ export class SeamHttpEndpoints {
|
|
|
1478
1490
|
return seam.autoMap(...args);
|
|
1479
1491
|
};
|
|
1480
1492
|
}
|
|
1493
|
+
get '/seam/v1/customers/push_data'() {
|
|
1494
|
+
const { client, defaults } = this;
|
|
1495
|
+
return function seamV1CustomersPushData(...args) {
|
|
1496
|
+
const seam = SeamHttpSeamV1Customers.fromClient(client, defaults);
|
|
1497
|
+
return seam.pushData(...args);
|
|
1498
|
+
};
|
|
1499
|
+
}
|
|
1481
1500
|
get '/spaces/add_acs_entrances'() {
|
|
1482
1501
|
const { client, defaults } = this;
|
|
1483
1502
|
return function spacesAddAcsEntrances(...args) {
|