@seamapi/http 1.117.0 → 1.118.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 +377 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +146 -3
- package/dist/index.cjs +381 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +24 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js +18 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +12 -0
- package/lib/seam/connect/routes/acs/encoders/encoders.js +9 -0
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
- package/lib/seam/connect/routes/seam/console/v1/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/console/v1/index.js +1 -0
- package/lib/seam/connect/routes/seam/console/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/console/v1/sites/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/console/v1/sites/index.js +6 -0
- package/lib/seam/connect/routes/seam/console/v1/sites/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/sites/sites.d.ts +73 -0
- package/lib/seam/connect/routes/seam/console/v1/sites/sites.js +140 -0
- package/lib/seam/connect/routes/seam/console/v1/sites/sites.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.d.ts +2 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.js +4 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.d.ts +34 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.js +104 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/index.js +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +14 -4
- package/lib/seam/connect/routes/seam-http-endpoints.js +73 -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/access-methods/access-methods.ts +76 -0
- package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +39 -0
- package/src/lib/seam/connect/routes/seam/console/v1/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam/console/v1/sites/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/console/v1/sites/sites.ts +327 -0
- package/src/lib/seam/connect/routes/seam/console/v1/v1.ts +5 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts +8 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.ts +214 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/connectors/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +170 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -1862,6 +1862,15 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
|
|
|
1862
1862
|
get unmanaged() {
|
|
1863
1863
|
return SeamHttpAccessMethodsUnmanaged.fromClient(this.client, this.defaults);
|
|
1864
1864
|
}
|
|
1865
|
+
assignCard(parameters, options = {}) {
|
|
1866
|
+
return new SeamHttpRequest(this, {
|
|
1867
|
+
pathname: "/access_methods/assign_card",
|
|
1868
|
+
method: "POST",
|
|
1869
|
+
body: parameters,
|
|
1870
|
+
responseKey: "action_attempt",
|
|
1871
|
+
options
|
|
1872
|
+
});
|
|
1873
|
+
}
|
|
1865
1874
|
delete(parameters, options = {}) {
|
|
1866
1875
|
return new SeamHttpRequest(this, {
|
|
1867
1876
|
pathname: "/access_methods/delete",
|
|
@@ -1907,6 +1916,15 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
|
|
|
1907
1916
|
options
|
|
1908
1917
|
});
|
|
1909
1918
|
}
|
|
1919
|
+
unlockDoor(parameters, options = {}) {
|
|
1920
|
+
return new SeamHttpRequest(this, {
|
|
1921
|
+
pathname: "/access_methods/unlock_door",
|
|
1922
|
+
method: "POST",
|
|
1923
|
+
body: parameters,
|
|
1924
|
+
responseKey: "action_attempt",
|
|
1925
|
+
options
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1910
1928
|
};
|
|
1911
1929
|
|
|
1912
1930
|
// src/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.ts
|
|
@@ -2944,6 +2962,15 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2944
2962
|
options
|
|
2945
2963
|
});
|
|
2946
2964
|
}
|
|
2965
|
+
scanToAssignCredential(parameters, options = {}) {
|
|
2966
|
+
return new SeamHttpRequest(this, {
|
|
2967
|
+
pathname: "/acs/encoders/scan_to_assign_credential",
|
|
2968
|
+
method: "POST",
|
|
2969
|
+
body: parameters,
|
|
2970
|
+
responseKey: "action_attempt",
|
|
2971
|
+
options
|
|
2972
|
+
});
|
|
2973
|
+
}
|
|
2947
2974
|
};
|
|
2948
2975
|
|
|
2949
2976
|
// src/lib/seam/connect/routes/acs/entrances/entrances.ts
|
|
@@ -5823,6 +5850,153 @@ var SeamHttpPhones = class _SeamHttpPhones {
|
|
|
5823
5850
|
}
|
|
5824
5851
|
};
|
|
5825
5852
|
|
|
5853
|
+
// src/lib/seam/connect/routes/seam/console/v1/sites/sites.ts
|
|
5854
|
+
var SeamHttpSeamConsoleV1Sites = class _SeamHttpSeamConsoleV1Sites {
|
|
5855
|
+
client;
|
|
5856
|
+
defaults;
|
|
5857
|
+
ltsVersion = seamApiLtsVersion;
|
|
5858
|
+
static ltsVersion = seamApiLtsVersion;
|
|
5859
|
+
constructor(apiKeyOrOptions = {}) {
|
|
5860
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
5861
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
5862
|
+
throw new Error(
|
|
5863
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5864
|
+
);
|
|
5865
|
+
}
|
|
5866
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
5867
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
5868
|
+
}
|
|
5869
|
+
static fromClient(client, options = {}) {
|
|
5870
|
+
const constructorOptions = { ...options, client };
|
|
5871
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
5872
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
5873
|
+
}
|
|
5874
|
+
return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
|
|
5875
|
+
}
|
|
5876
|
+
static fromApiKey(apiKey, options = {}) {
|
|
5877
|
+
const constructorOptions = { ...options, apiKey };
|
|
5878
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
5879
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
5880
|
+
}
|
|
5881
|
+
return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
|
|
5882
|
+
}
|
|
5883
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
5884
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
5885
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
5886
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
5887
|
+
}
|
|
5888
|
+
return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
|
|
5889
|
+
}
|
|
5890
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
5891
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
5892
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
5893
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
5894
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5895
|
+
"The client option cannot be used with SeamHttpSeamConsoleV1Sites.fromPublishableKey"
|
|
5896
|
+
);
|
|
5897
|
+
}
|
|
5898
|
+
const client = createClient(clientOptions);
|
|
5899
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
5900
|
+
const { token } = await clientSessions.getOrCreate({
|
|
5901
|
+
user_identifier_key: userIdentifierKey
|
|
5902
|
+
});
|
|
5903
|
+
return _SeamHttpSeamConsoleV1Sites.fromClientSessionToken(token, options);
|
|
5904
|
+
}
|
|
5905
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
5906
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
5907
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
5908
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5909
|
+
"Missing consoleSessionToken or workspaceId"
|
|
5910
|
+
);
|
|
5911
|
+
}
|
|
5912
|
+
return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
|
|
5913
|
+
}
|
|
5914
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
5915
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
5916
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
5917
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5918
|
+
"Missing personalAccessToken or workspaceId"
|
|
5919
|
+
);
|
|
5920
|
+
}
|
|
5921
|
+
return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
|
|
5922
|
+
}
|
|
5923
|
+
createPaginator(request) {
|
|
5924
|
+
return new SeamPaginator(this, request);
|
|
5925
|
+
}
|
|
5926
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
5927
|
+
const { headers } = this.client.defaults;
|
|
5928
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
5929
|
+
clientSessionToken
|
|
5930
|
+
});
|
|
5931
|
+
for (const key of Object.keys(authHeaders)) {
|
|
5932
|
+
if (headers[key] == null) {
|
|
5933
|
+
throw new Error(
|
|
5934
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
5935
|
+
);
|
|
5936
|
+
}
|
|
5937
|
+
}
|
|
5938
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
5939
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
5940
|
+
await clientSessions.get();
|
|
5941
|
+
}
|
|
5942
|
+
create(parameters, options = {}) {
|
|
5943
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
5944
|
+
throw new Error(
|
|
5945
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5946
|
+
);
|
|
5947
|
+
}
|
|
5948
|
+
return new SeamHttpRequest(this, {
|
|
5949
|
+
pathname: "/seam/console/v1/sites/create",
|
|
5950
|
+
method: "POST",
|
|
5951
|
+
body: parameters,
|
|
5952
|
+
responseKey: "site",
|
|
5953
|
+
options
|
|
5954
|
+
});
|
|
5955
|
+
}
|
|
5956
|
+
delete(parameters, options = {}) {
|
|
5957
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
5958
|
+
throw new Error(
|
|
5959
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5960
|
+
);
|
|
5961
|
+
}
|
|
5962
|
+
return new SeamHttpRequest(this, {
|
|
5963
|
+
pathname: "/seam/console/v1/sites/delete",
|
|
5964
|
+
method: "POST",
|
|
5965
|
+
body: parameters,
|
|
5966
|
+
responseKey: void 0,
|
|
5967
|
+
options
|
|
5968
|
+
});
|
|
5969
|
+
}
|
|
5970
|
+
list(parameters, options = {}) {
|
|
5971
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
5972
|
+
throw new Error(
|
|
5973
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5974
|
+
);
|
|
5975
|
+
}
|
|
5976
|
+
return new SeamHttpRequest(this, {
|
|
5977
|
+
pathname: "/seam/console/v1/sites/list",
|
|
5978
|
+
method: "POST",
|
|
5979
|
+
body: parameters,
|
|
5980
|
+
responseKey: "sites",
|
|
5981
|
+
options
|
|
5982
|
+
});
|
|
5983
|
+
}
|
|
5984
|
+
update(parameters, options = {}) {
|
|
5985
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
5986
|
+
throw new Error(
|
|
5987
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5988
|
+
);
|
|
5989
|
+
}
|
|
5990
|
+
return new SeamHttpRequest(this, {
|
|
5991
|
+
pathname: "/seam/console/v1/sites/update",
|
|
5992
|
+
method: "PATCH",
|
|
5993
|
+
body: parameters,
|
|
5994
|
+
responseKey: "site",
|
|
5995
|
+
options
|
|
5996
|
+
});
|
|
5997
|
+
}
|
|
5998
|
+
};
|
|
5999
|
+
|
|
5826
6000
|
// src/lib/seam/connect/routes/seam/console/v1/timelines/timelines.ts
|
|
5827
6001
|
var SeamHttpSeamConsoleV1Timelines = class _SeamHttpSeamConsoleV1Timelines {
|
|
5828
6002
|
client;
|
|
@@ -6017,6 +6191,9 @@ var SeamHttpSeamConsoleV1 = class _SeamHttpSeamConsoleV1 {
|
|
|
6017
6191
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6018
6192
|
await clientSessions.get();
|
|
6019
6193
|
}
|
|
6194
|
+
get sites() {
|
|
6195
|
+
return SeamHttpSeamConsoleV1Sites.fromClient(this.client, this.defaults);
|
|
6196
|
+
}
|
|
6020
6197
|
get timelines() {
|
|
6021
6198
|
return SeamHttpSeamConsoleV1Timelines.fromClient(this.client, this.defaults);
|
|
6022
6199
|
}
|
|
@@ -6712,6 +6889,114 @@ var SeamHttpSeamCustomerV1ConnectorCustomers = class _SeamHttpSeamCustomerV1Conn
|
|
|
6712
6889
|
}
|
|
6713
6890
|
};
|
|
6714
6891
|
|
|
6892
|
+
// src/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.ts
|
|
6893
|
+
var SeamHttpSeamCustomerV1ConnectorsExternalSites = class _SeamHttpSeamCustomerV1ConnectorsExternalSites {
|
|
6894
|
+
client;
|
|
6895
|
+
defaults;
|
|
6896
|
+
ltsVersion = seamApiLtsVersion;
|
|
6897
|
+
static ltsVersion = seamApiLtsVersion;
|
|
6898
|
+
constructor(apiKeyOrOptions = {}) {
|
|
6899
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
6900
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6901
|
+
throw new Error(
|
|
6902
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6903
|
+
);
|
|
6904
|
+
}
|
|
6905
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
6906
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6907
|
+
}
|
|
6908
|
+
static fromClient(client, options = {}) {
|
|
6909
|
+
const constructorOptions = { ...options, client };
|
|
6910
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6911
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6912
|
+
}
|
|
6913
|
+
return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
|
|
6914
|
+
}
|
|
6915
|
+
static fromApiKey(apiKey, options = {}) {
|
|
6916
|
+
const constructorOptions = { ...options, apiKey };
|
|
6917
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6918
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6919
|
+
}
|
|
6920
|
+
return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
|
|
6921
|
+
}
|
|
6922
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6923
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
6924
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6925
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6926
|
+
}
|
|
6927
|
+
return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
|
|
6928
|
+
}
|
|
6929
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6930
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6931
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6932
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6933
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6934
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1ConnectorsExternalSites.fromPublishableKey"
|
|
6935
|
+
);
|
|
6936
|
+
}
|
|
6937
|
+
const client = createClient(clientOptions);
|
|
6938
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
6939
|
+
const { token } = await clientSessions.getOrCreate({
|
|
6940
|
+
user_identifier_key: userIdentifierKey
|
|
6941
|
+
});
|
|
6942
|
+
return _SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClientSessionToken(
|
|
6943
|
+
token,
|
|
6944
|
+
options
|
|
6945
|
+
);
|
|
6946
|
+
}
|
|
6947
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6948
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
6949
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
6950
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6951
|
+
"Missing consoleSessionToken or workspaceId"
|
|
6952
|
+
);
|
|
6953
|
+
}
|
|
6954
|
+
return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
|
|
6955
|
+
}
|
|
6956
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6957
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
6958
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
6959
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6960
|
+
"Missing personalAccessToken or workspaceId"
|
|
6961
|
+
);
|
|
6962
|
+
}
|
|
6963
|
+
return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
|
|
6964
|
+
}
|
|
6965
|
+
createPaginator(request) {
|
|
6966
|
+
return new SeamPaginator(this, request);
|
|
6967
|
+
}
|
|
6968
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
6969
|
+
const { headers } = this.client.defaults;
|
|
6970
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
6971
|
+
clientSessionToken
|
|
6972
|
+
});
|
|
6973
|
+
for (const key of Object.keys(authHeaders)) {
|
|
6974
|
+
if (headers[key] == null) {
|
|
6975
|
+
throw new Error(
|
|
6976
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
6977
|
+
);
|
|
6978
|
+
}
|
|
6979
|
+
}
|
|
6980
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
6981
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6982
|
+
await clientSessions.get();
|
|
6983
|
+
}
|
|
6984
|
+
list(parameters, options = {}) {
|
|
6985
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6986
|
+
throw new Error(
|
|
6987
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6988
|
+
);
|
|
6989
|
+
}
|
|
6990
|
+
return new SeamHttpRequest(this, {
|
|
6991
|
+
pathname: "/seam/customer/v1/connectors/external_sites/list",
|
|
6992
|
+
method: "POST",
|
|
6993
|
+
body: parameters,
|
|
6994
|
+
responseKey: "external_sites",
|
|
6995
|
+
options
|
|
6996
|
+
});
|
|
6997
|
+
}
|
|
6998
|
+
};
|
|
6999
|
+
|
|
6715
7000
|
// src/lib/seam/connect/routes/seam/customer/v1/connectors/ical/ical.ts
|
|
6716
7001
|
var SeamHttpSeamCustomerV1ConnectorsIcal = class _SeamHttpSeamCustomerV1ConnectorsIcal {
|
|
6717
7002
|
client;
|
|
@@ -6912,6 +7197,12 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6912
7197
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6913
7198
|
await clientSessions.get();
|
|
6914
7199
|
}
|
|
7200
|
+
get externalSites() {
|
|
7201
|
+
return SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClient(
|
|
7202
|
+
this.client,
|
|
7203
|
+
this.defaults
|
|
7204
|
+
);
|
|
7205
|
+
}
|
|
6915
7206
|
get ical() {
|
|
6916
7207
|
return SeamHttpSeamCustomerV1ConnectorsIcal.fromClient(
|
|
6917
7208
|
this.client,
|
|
@@ -11023,6 +11314,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11023
11314
|
return seam.update(...args);
|
|
11024
11315
|
};
|
|
11025
11316
|
}
|
|
11317
|
+
get "/access_methods/assign_card"() {
|
|
11318
|
+
const { client, defaults } = this;
|
|
11319
|
+
return function accessMethodsAssignCard(...args) {
|
|
11320
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults);
|
|
11321
|
+
return seam.assignCard(...args);
|
|
11322
|
+
};
|
|
11323
|
+
}
|
|
11026
11324
|
get "/access_methods/delete"() {
|
|
11027
11325
|
const { client, defaults } = this;
|
|
11028
11326
|
return function accessMethodsDelete(...args) {
|
|
@@ -11058,6 +11356,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11058
11356
|
return seam.list(...args);
|
|
11059
11357
|
};
|
|
11060
11358
|
}
|
|
11359
|
+
get "/access_methods/unlock_door"() {
|
|
11360
|
+
const { client, defaults } = this;
|
|
11361
|
+
return function accessMethodsUnlockDoor(...args) {
|
|
11362
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults);
|
|
11363
|
+
return seam.unlockDoor(...args);
|
|
11364
|
+
};
|
|
11365
|
+
}
|
|
11061
11366
|
get "/access_methods/unmanaged/get"() {
|
|
11062
11367
|
const { client, defaults } = this;
|
|
11063
11368
|
return function accessMethodsUnmanagedGet(...args) {
|
|
@@ -11292,6 +11597,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11292
11597
|
return seam.scanCredential(...args);
|
|
11293
11598
|
};
|
|
11294
11599
|
}
|
|
11600
|
+
get "/acs/encoders/scan_to_assign_credential"() {
|
|
11601
|
+
const { client, defaults } = this;
|
|
11602
|
+
return function acsEncodersScanToAssignCredential(...args) {
|
|
11603
|
+
const seam = SeamHttpAcsEncoders.fromClient(client, defaults);
|
|
11604
|
+
return seam.scanToAssignCredential(...args);
|
|
11605
|
+
};
|
|
11606
|
+
}
|
|
11295
11607
|
get "/acs/encoders/simulate/next_credential_encode_will_fail"() {
|
|
11296
11608
|
const { client, defaults } = this;
|
|
11297
11609
|
return function acsEncodersSimulateNextCredentialEncodeWillFail(...args) {
|
|
@@ -11975,6 +12287,54 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11975
12287
|
return seam.getResourceLocator(...args);
|
|
11976
12288
|
};
|
|
11977
12289
|
}
|
|
12290
|
+
get "/seam/console/v1/sites/create"() {
|
|
12291
|
+
const { client, defaults } = this;
|
|
12292
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12293
|
+
throw new Error(
|
|
12294
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12295
|
+
);
|
|
12296
|
+
}
|
|
12297
|
+
return function seamConsoleV1SitesCreate(...args) {
|
|
12298
|
+
const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
|
|
12299
|
+
return seam.create(...args);
|
|
12300
|
+
};
|
|
12301
|
+
}
|
|
12302
|
+
get "/seam/console/v1/sites/delete"() {
|
|
12303
|
+
const { client, defaults } = this;
|
|
12304
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12305
|
+
throw new Error(
|
|
12306
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12307
|
+
);
|
|
12308
|
+
}
|
|
12309
|
+
return function seamConsoleV1SitesDelete(...args) {
|
|
12310
|
+
const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
|
|
12311
|
+
return seam.delete(...args);
|
|
12312
|
+
};
|
|
12313
|
+
}
|
|
12314
|
+
get "/seam/console/v1/sites/list"() {
|
|
12315
|
+
const { client, defaults } = this;
|
|
12316
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12317
|
+
throw new Error(
|
|
12318
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12319
|
+
);
|
|
12320
|
+
}
|
|
12321
|
+
return function seamConsoleV1SitesList(...args) {
|
|
12322
|
+
const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
|
|
12323
|
+
return seam.list(...args);
|
|
12324
|
+
};
|
|
12325
|
+
}
|
|
12326
|
+
get "/seam/console/v1/sites/update"() {
|
|
12327
|
+
const { client, defaults } = this;
|
|
12328
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12329
|
+
throw new Error(
|
|
12330
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12331
|
+
);
|
|
12332
|
+
}
|
|
12333
|
+
return function seamConsoleV1SitesUpdate(...args) {
|
|
12334
|
+
const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
|
|
12335
|
+
return seam.update(...args);
|
|
12336
|
+
};
|
|
12337
|
+
}
|
|
11978
12338
|
get "/seam/console/v1/timelines/get"() {
|
|
11979
12339
|
const { client, defaults } = this;
|
|
11980
12340
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -12191,6 +12551,21 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12191
12551
|
return seam.update(...args);
|
|
12192
12552
|
};
|
|
12193
12553
|
}
|
|
12554
|
+
get "/seam/customer/v1/connectors/external_sites/list"() {
|
|
12555
|
+
const { client, defaults } = this;
|
|
12556
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12557
|
+
throw new Error(
|
|
12558
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12559
|
+
);
|
|
12560
|
+
}
|
|
12561
|
+
return function seamCustomerV1ConnectorsExternalSitesList(...args) {
|
|
12562
|
+
const seam = SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClient(
|
|
12563
|
+
client,
|
|
12564
|
+
defaults
|
|
12565
|
+
);
|
|
12566
|
+
return seam.list(...args);
|
|
12567
|
+
};
|
|
12568
|
+
}
|
|
12194
12569
|
get "/seam/customer/v1/connectors/ical/validate-config"() {
|
|
12195
12570
|
const { client, defaults } = this;
|
|
12196
12571
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -13327,6 +13702,7 @@ exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
|
|
|
13327
13702
|
exports.SeamHttpRequest = SeamHttpRequest;
|
|
13328
13703
|
exports.SeamHttpSeamConsole = SeamHttpSeamConsole;
|
|
13329
13704
|
exports.SeamHttpSeamConsoleV1 = SeamHttpSeamConsoleV1;
|
|
13705
|
+
exports.SeamHttpSeamConsoleV1Sites = SeamHttpSeamConsoleV1Sites;
|
|
13330
13706
|
exports.SeamHttpSeamConsoleV1Timelines = SeamHttpSeamConsoleV1Timelines;
|
|
13331
13707
|
exports.SeamHttpSeamCustomerV1 = SeamHttpSeamCustomerV1;
|
|
13332
13708
|
exports.SeamHttpSeamCustomerV1AccessGrants = SeamHttpSeamCustomerV1AccessGrants;
|
|
@@ -13335,6 +13711,7 @@ exports.SeamHttpSeamCustomerV1AutomationRuns = SeamHttpSeamCustomerV1AutomationR
|
|
|
13335
13711
|
exports.SeamHttpSeamCustomerV1Automations = SeamHttpSeamCustomerV1Automations;
|
|
13336
13712
|
exports.SeamHttpSeamCustomerV1ConnectorCustomers = SeamHttpSeamCustomerV1ConnectorCustomers;
|
|
13337
13713
|
exports.SeamHttpSeamCustomerV1Connectors = SeamHttpSeamCustomerV1Connectors;
|
|
13714
|
+
exports.SeamHttpSeamCustomerV1ConnectorsExternalSites = SeamHttpSeamCustomerV1ConnectorsExternalSites;
|
|
13338
13715
|
exports.SeamHttpSeamCustomerV1ConnectorsIcal = SeamHttpSeamCustomerV1ConnectorsIcal;
|
|
13339
13716
|
exports.SeamHttpSeamCustomerV1Customers = SeamHttpSeamCustomerV1Customers;
|
|
13340
13717
|
exports.SeamHttpSeamCustomerV1CustomersAutomations = SeamHttpSeamCustomerV1CustomersAutomations;
|