@seamapi/http 1.18.0 → 1.19.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 +211 -208
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +245 -103
- package/lib/seam/connect/resolve-action-attempt.d.ts +252 -64
- package/lib/seam/connect/routes/acs.d.ts +2 -0
- package/lib/seam/connect/routes/acs.js +4 -0
- package/lib/seam/connect/routes/acs.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/acs.ts +5 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -1884,8 +1884,8 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1884
1884
|
}
|
|
1885
1885
|
};
|
|
1886
1886
|
|
|
1887
|
-
// src/lib/seam/connect/routes/acs-
|
|
1888
|
-
var
|
|
1887
|
+
// src/lib/seam/connect/routes/acs-encoders-simulate.ts
|
|
1888
|
+
var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
1889
1889
|
constructor(apiKeyOrOptions = {}) {
|
|
1890
1890
|
const options = parseOptions(apiKeyOrOptions);
|
|
1891
1891
|
this.client = "client" in options ? options.client : createClient(options);
|
|
@@ -1896,21 +1896,21 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
|
1896
1896
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
1897
1897
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
1898
1898
|
}
|
|
1899
|
-
return new
|
|
1899
|
+
return new _SeamHttpAcsEncodersSimulate(constructorOptions);
|
|
1900
1900
|
}
|
|
1901
1901
|
static fromApiKey(apiKey, options = {}) {
|
|
1902
1902
|
const constructorOptions = { ...options, apiKey };
|
|
1903
1903
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
1904
1904
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
1905
1905
|
}
|
|
1906
|
-
return new
|
|
1906
|
+
return new _SeamHttpAcsEncodersSimulate(constructorOptions);
|
|
1907
1907
|
}
|
|
1908
1908
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
1909
1909
|
const constructorOptions = { ...options, clientSessionToken };
|
|
1910
1910
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
1911
1911
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
1912
1912
|
}
|
|
1913
|
-
return new
|
|
1913
|
+
return new _SeamHttpAcsEncodersSimulate(constructorOptions);
|
|
1914
1914
|
}
|
|
1915
1915
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
1916
1916
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
@@ -1925,7 +1925,7 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
|
1925
1925
|
const { token } = await clientSessions.getOrCreate({
|
|
1926
1926
|
user_identifier_key: userIdentifierKey
|
|
1927
1927
|
});
|
|
1928
|
-
return
|
|
1928
|
+
return _SeamHttpAcsEncodersSimulate.fromClientSessionToken(token, options);
|
|
1929
1929
|
}
|
|
1930
1930
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
1931
1931
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -1934,7 +1934,7 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
|
1934
1934
|
"Missing consoleSessionToken or workspaceId"
|
|
1935
1935
|
);
|
|
1936
1936
|
}
|
|
1937
|
-
return new
|
|
1937
|
+
return new _SeamHttpAcsEncodersSimulate(constructorOptions);
|
|
1938
1938
|
}
|
|
1939
1939
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
1940
1940
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -1943,7 +1943,7 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
|
1943
1943
|
"Missing personalAccessToken or workspaceId"
|
|
1944
1944
|
);
|
|
1945
1945
|
}
|
|
1946
|
-
return new
|
|
1946
|
+
return new _SeamHttpAcsEncodersSimulate(constructorOptions);
|
|
1947
1947
|
}
|
|
1948
1948
|
async updateClientSessionToken(clientSessionToken) {
|
|
1949
1949
|
const { headers } = this.client.defaults;
|
|
@@ -1961,42 +1961,42 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
|
1961
1961
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
1962
1962
|
await clientSessions.get();
|
|
1963
1963
|
}
|
|
1964
|
-
|
|
1964
|
+
nextCredentialEncodeWillFail(body) {
|
|
1965
1965
|
return new SeamHttpRequest(this, {
|
|
1966
|
-
path: "/acs/
|
|
1966
|
+
path: "/acs/encoders/simulate/next_credential_encode_will_fail",
|
|
1967
1967
|
method: "post",
|
|
1968
1968
|
body,
|
|
1969
|
-
responseKey:
|
|
1969
|
+
responseKey: void 0
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
1972
|
-
|
|
1972
|
+
nextCredentialEncodeWillSucceed(body) {
|
|
1973
1973
|
return new SeamHttpRequest(this, {
|
|
1974
|
-
path: "/acs/
|
|
1974
|
+
path: "/acs/encoders/simulate/next_credential_encode_will_succeed",
|
|
1975
1975
|
method: "post",
|
|
1976
1976
|
body,
|
|
1977
1977
|
responseKey: void 0
|
|
1978
1978
|
});
|
|
1979
1979
|
}
|
|
1980
|
-
|
|
1980
|
+
nextCredentialScanWillFail(body) {
|
|
1981
1981
|
return new SeamHttpRequest(this, {
|
|
1982
|
-
path: "/acs/
|
|
1982
|
+
path: "/acs/encoders/simulate/next_credential_scan_will_fail",
|
|
1983
1983
|
method: "post",
|
|
1984
1984
|
body,
|
|
1985
|
-
responseKey:
|
|
1985
|
+
responseKey: void 0
|
|
1986
1986
|
});
|
|
1987
1987
|
}
|
|
1988
|
-
|
|
1988
|
+
nextCredentialScanWillSucceed(body) {
|
|
1989
1989
|
return new SeamHttpRequest(this, {
|
|
1990
|
-
path: "/acs/
|
|
1990
|
+
path: "/acs/encoders/simulate/next_credential_scan_will_succeed",
|
|
1991
1991
|
method: "post",
|
|
1992
1992
|
body,
|
|
1993
|
-
responseKey:
|
|
1993
|
+
responseKey: void 0
|
|
1994
1994
|
});
|
|
1995
1995
|
}
|
|
1996
1996
|
};
|
|
1997
1997
|
|
|
1998
|
-
// src/lib/seam/connect/routes/acs-
|
|
1999
|
-
var
|
|
1998
|
+
// src/lib/seam/connect/routes/acs-encoders.ts
|
|
1999
|
+
var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
2000
2000
|
constructor(apiKeyOrOptions = {}) {
|
|
2001
2001
|
const options = parseOptions(apiKeyOrOptions);
|
|
2002
2002
|
this.client = "client" in options ? options.client : createClient(options);
|
|
@@ -2007,21 +2007,21 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
|
2007
2007
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
2008
2008
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
2009
2009
|
}
|
|
2010
|
-
return new
|
|
2010
|
+
return new _SeamHttpAcsEncoders(constructorOptions);
|
|
2011
2011
|
}
|
|
2012
2012
|
static fromApiKey(apiKey, options = {}) {
|
|
2013
2013
|
const constructorOptions = { ...options, apiKey };
|
|
2014
2014
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
2015
2015
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
2016
2016
|
}
|
|
2017
|
-
return new
|
|
2017
|
+
return new _SeamHttpAcsEncoders(constructorOptions);
|
|
2018
2018
|
}
|
|
2019
2019
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
2020
2020
|
const constructorOptions = { ...options, clientSessionToken };
|
|
2021
2021
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
2022
2022
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
2023
2023
|
}
|
|
2024
|
-
return new
|
|
2024
|
+
return new _SeamHttpAcsEncoders(constructorOptions);
|
|
2025
2025
|
}
|
|
2026
2026
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
2027
2027
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
@@ -2036,7 +2036,7 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
|
2036
2036
|
const { token } = await clientSessions.getOrCreate({
|
|
2037
2037
|
user_identifier_key: userIdentifierKey
|
|
2038
2038
|
});
|
|
2039
|
-
return
|
|
2039
|
+
return _SeamHttpAcsEncoders.fromClientSessionToken(token, options);
|
|
2040
2040
|
}
|
|
2041
2041
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
2042
2042
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -2045,7 +2045,7 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
|
2045
2045
|
"Missing consoleSessionToken or workspaceId"
|
|
2046
2046
|
);
|
|
2047
2047
|
}
|
|
2048
|
-
return new
|
|
2048
|
+
return new _SeamHttpAcsEncoders(constructorOptions);
|
|
2049
2049
|
}
|
|
2050
2050
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
2051
2051
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -2054,7 +2054,7 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
|
2054
2054
|
"Missing personalAccessToken or workspaceId"
|
|
2055
2055
|
);
|
|
2056
2056
|
}
|
|
2057
|
-
return new
|
|
2057
|
+
return new _SeamHttpAcsEncoders(constructorOptions);
|
|
2058
2058
|
}
|
|
2059
2059
|
async updateClientSessionToken(clientSessionToken) {
|
|
2060
2060
|
const { headers } = this.client.defaults;
|
|
@@ -2072,34 +2072,39 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
|
2072
2072
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2073
2073
|
await clientSessions.get();
|
|
2074
2074
|
}
|
|
2075
|
-
get(
|
|
2075
|
+
get simulate() {
|
|
2076
|
+
return SeamHttpAcsEncodersSimulate.fromClient(this.client, this.defaults);
|
|
2077
|
+
}
|
|
2078
|
+
encodeCredential(body, options = {}) {
|
|
2076
2079
|
return new SeamHttpRequest(this, {
|
|
2077
|
-
path: "/acs/
|
|
2080
|
+
path: "/acs/encoders/encode_credential",
|
|
2078
2081
|
method: "post",
|
|
2079
2082
|
body,
|
|
2080
|
-
responseKey: "
|
|
2083
|
+
responseKey: "action_attempt",
|
|
2084
|
+
options
|
|
2081
2085
|
});
|
|
2082
2086
|
}
|
|
2083
2087
|
list(body) {
|
|
2084
2088
|
return new SeamHttpRequest(this, {
|
|
2085
|
-
path: "/acs/
|
|
2089
|
+
path: "/acs/encoders/list",
|
|
2086
2090
|
method: "post",
|
|
2087
2091
|
body,
|
|
2088
|
-
responseKey: "
|
|
2092
|
+
responseKey: "acs_encoders"
|
|
2089
2093
|
});
|
|
2090
2094
|
}
|
|
2091
|
-
|
|
2095
|
+
scanCredential(body, options = {}) {
|
|
2092
2096
|
return new SeamHttpRequest(this, {
|
|
2093
|
-
path: "/acs/
|
|
2097
|
+
path: "/acs/encoders/scan_credential",
|
|
2094
2098
|
method: "post",
|
|
2095
2099
|
body,
|
|
2096
|
-
responseKey: "
|
|
2100
|
+
responseKey: "action_attempt",
|
|
2101
|
+
options
|
|
2097
2102
|
});
|
|
2098
2103
|
}
|
|
2099
2104
|
};
|
|
2100
2105
|
|
|
2101
|
-
// src/lib/seam/connect/routes/acs-
|
|
2102
|
-
var
|
|
2106
|
+
// src/lib/seam/connect/routes/acs-entrances.ts
|
|
2107
|
+
var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
2103
2108
|
constructor(apiKeyOrOptions = {}) {
|
|
2104
2109
|
const options = parseOptions(apiKeyOrOptions);
|
|
2105
2110
|
this.client = "client" in options ? options.client : createClient(options);
|
|
@@ -2110,21 +2115,21 @@ var SeamHttpAcsUsersUnmanaged = class _SeamHttpAcsUsersUnmanaged {
|
|
|
2110
2115
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
2111
2116
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
2112
2117
|
}
|
|
2113
|
-
return new
|
|
2118
|
+
return new _SeamHttpAcsEntrances(constructorOptions);
|
|
2114
2119
|
}
|
|
2115
2120
|
static fromApiKey(apiKey, options = {}) {
|
|
2116
2121
|
const constructorOptions = { ...options, apiKey };
|
|
2117
2122
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
2118
2123
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
2119
2124
|
}
|
|
2120
|
-
return new
|
|
2125
|
+
return new _SeamHttpAcsEntrances(constructorOptions);
|
|
2121
2126
|
}
|
|
2122
2127
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
2123
2128
|
const constructorOptions = { ...options, clientSessionToken };
|
|
2124
2129
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
2125
2130
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
2126
2131
|
}
|
|
2127
|
-
return new
|
|
2132
|
+
return new _SeamHttpAcsEntrances(constructorOptions);
|
|
2128
2133
|
}
|
|
2129
2134
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
2130
2135
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
@@ -2139,7 +2144,7 @@ var SeamHttpAcsUsersUnmanaged = class _SeamHttpAcsUsersUnmanaged {
|
|
|
2139
2144
|
const { token } = await clientSessions.getOrCreate({
|
|
2140
2145
|
user_identifier_key: userIdentifierKey
|
|
2141
2146
|
});
|
|
2142
|
-
return
|
|
2147
|
+
return _SeamHttpAcsEntrances.fromClientSessionToken(token, options);
|
|
2143
2148
|
}
|
|
2144
2149
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
2145
2150
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -2148,7 +2153,7 @@ var SeamHttpAcsUsersUnmanaged = class _SeamHttpAcsUsersUnmanaged {
|
|
|
2148
2153
|
"Missing consoleSessionToken or workspaceId"
|
|
2149
2154
|
);
|
|
2150
2155
|
}
|
|
2151
|
-
return new
|
|
2156
|
+
return new _SeamHttpAcsEntrances(constructorOptions);
|
|
2152
2157
|
}
|
|
2153
2158
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
2154
2159
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -2157,7 +2162,7 @@ var SeamHttpAcsUsersUnmanaged = class _SeamHttpAcsUsersUnmanaged {
|
|
|
2157
2162
|
"Missing personalAccessToken or workspaceId"
|
|
2158
2163
|
);
|
|
2159
2164
|
}
|
|
2160
|
-
return new
|
|
2165
|
+
return new _SeamHttpAcsEntrances(constructorOptions);
|
|
2161
2166
|
}
|
|
2162
2167
|
async updateClientSessionToken(clientSessionToken) {
|
|
2163
2168
|
const { headers } = this.client.defaults;
|
|
@@ -2177,24 +2182,40 @@ var SeamHttpAcsUsersUnmanaged = class _SeamHttpAcsUsersUnmanaged {
|
|
|
2177
2182
|
}
|
|
2178
2183
|
get(body) {
|
|
2179
2184
|
return new SeamHttpRequest(this, {
|
|
2180
|
-
path: "/acs/
|
|
2185
|
+
path: "/acs/entrances/get",
|
|
2181
2186
|
method: "post",
|
|
2182
2187
|
body,
|
|
2183
|
-
responseKey: "
|
|
2188
|
+
responseKey: "acs_entrance"
|
|
2189
|
+
});
|
|
2190
|
+
}
|
|
2191
|
+
grantAccess(body) {
|
|
2192
|
+
return new SeamHttpRequest(this, {
|
|
2193
|
+
path: "/acs/entrances/grant_access",
|
|
2194
|
+
method: "post",
|
|
2195
|
+
body,
|
|
2196
|
+
responseKey: void 0
|
|
2184
2197
|
});
|
|
2185
2198
|
}
|
|
2186
2199
|
list(body) {
|
|
2187
2200
|
return new SeamHttpRequest(this, {
|
|
2188
|
-
path: "/acs/
|
|
2201
|
+
path: "/acs/entrances/list",
|
|
2189
2202
|
method: "post",
|
|
2190
2203
|
body,
|
|
2191
|
-
responseKey: "
|
|
2204
|
+
responseKey: "acs_entrances"
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2207
|
+
listCredentialsWithAccess(body) {
|
|
2208
|
+
return new SeamHttpRequest(this, {
|
|
2209
|
+
path: "/acs/entrances/list_credentials_with_access",
|
|
2210
|
+
method: "post",
|
|
2211
|
+
body,
|
|
2212
|
+
responseKey: "acs_credentials"
|
|
2192
2213
|
});
|
|
2193
2214
|
}
|
|
2194
2215
|
};
|
|
2195
2216
|
|
|
2196
|
-
// src/lib/seam/connect/routes/acs-
|
|
2197
|
-
var
|
|
2217
|
+
// src/lib/seam/connect/routes/acs-systems.ts
|
|
2218
|
+
var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
2198
2219
|
constructor(apiKeyOrOptions = {}) {
|
|
2199
2220
|
const options = parseOptions(apiKeyOrOptions);
|
|
2200
2221
|
this.client = "client" in options ? options.client : createClient(options);
|
|
@@ -2205,21 +2226,21 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2205
2226
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
2206
2227
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
2207
2228
|
}
|
|
2208
|
-
return new
|
|
2229
|
+
return new _SeamHttpAcsSystems(constructorOptions);
|
|
2209
2230
|
}
|
|
2210
2231
|
static fromApiKey(apiKey, options = {}) {
|
|
2211
2232
|
const constructorOptions = { ...options, apiKey };
|
|
2212
2233
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
2213
2234
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
2214
2235
|
}
|
|
2215
|
-
return new
|
|
2236
|
+
return new _SeamHttpAcsSystems(constructorOptions);
|
|
2216
2237
|
}
|
|
2217
2238
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
2218
2239
|
const constructorOptions = { ...options, clientSessionToken };
|
|
2219
2240
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
2220
2241
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
2221
2242
|
}
|
|
2222
|
-
return new
|
|
2243
|
+
return new _SeamHttpAcsSystems(constructorOptions);
|
|
2223
2244
|
}
|
|
2224
2245
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
2225
2246
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
@@ -2234,7 +2255,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2234
2255
|
const { token } = await clientSessions.getOrCreate({
|
|
2235
2256
|
user_identifier_key: userIdentifierKey
|
|
2236
2257
|
});
|
|
2237
|
-
return
|
|
2258
|
+
return _SeamHttpAcsSystems.fromClientSessionToken(token, options);
|
|
2238
2259
|
}
|
|
2239
2260
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
2240
2261
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -2243,7 +2264,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2243
2264
|
"Missing consoleSessionToken or workspaceId"
|
|
2244
2265
|
);
|
|
2245
2266
|
}
|
|
2246
|
-
return new
|
|
2267
|
+
return new _SeamHttpAcsSystems(constructorOptions);
|
|
2247
2268
|
}
|
|
2248
2269
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
2249
2270
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -2252,7 +2273,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2252
2273
|
"Missing personalAccessToken or workspaceId"
|
|
2253
2274
|
);
|
|
2254
2275
|
}
|
|
2255
|
-
return new
|
|
2276
|
+
return new _SeamHttpAcsSystems(constructorOptions);
|
|
2256
2277
|
}
|
|
2257
2278
|
async updateClientSessionToken(clientSessionToken) {
|
|
2258
2279
|
const { headers } = this.client.defaults;
|
|
@@ -2270,101 +2291,34 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2270
2291
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2271
2292
|
await clientSessions.get();
|
|
2272
2293
|
}
|
|
2273
|
-
get unmanaged() {
|
|
2274
|
-
return SeamHttpAcsUsersUnmanaged.fromClient(this.client, this.defaults);
|
|
2275
|
-
}
|
|
2276
|
-
addToAccessGroup(body) {
|
|
2277
|
-
return new SeamHttpRequest(this, {
|
|
2278
|
-
path: "/acs/users/add_to_access_group",
|
|
2279
|
-
method: "post",
|
|
2280
|
-
body,
|
|
2281
|
-
responseKey: void 0
|
|
2282
|
-
});
|
|
2283
|
-
}
|
|
2284
|
-
create(body) {
|
|
2285
|
-
return new SeamHttpRequest(this, {
|
|
2286
|
-
path: "/acs/users/create",
|
|
2287
|
-
method: "post",
|
|
2288
|
-
body,
|
|
2289
|
-
responseKey: "acs_user"
|
|
2290
|
-
});
|
|
2291
|
-
}
|
|
2292
|
-
delete(body) {
|
|
2293
|
-
return new SeamHttpRequest(this, {
|
|
2294
|
-
path: "/acs/users/delete",
|
|
2295
|
-
method: "post",
|
|
2296
|
-
body,
|
|
2297
|
-
responseKey: void 0
|
|
2298
|
-
});
|
|
2299
|
-
}
|
|
2300
2294
|
get(body) {
|
|
2301
2295
|
return new SeamHttpRequest(this, {
|
|
2302
|
-
path: "/acs/
|
|
2296
|
+
path: "/acs/systems/get",
|
|
2303
2297
|
method: "post",
|
|
2304
2298
|
body,
|
|
2305
|
-
responseKey: "
|
|
2299
|
+
responseKey: "acs_system"
|
|
2306
2300
|
});
|
|
2307
2301
|
}
|
|
2308
2302
|
list(body) {
|
|
2309
2303
|
return new SeamHttpRequest(this, {
|
|
2310
|
-
path: "/acs/
|
|
2311
|
-
method: "post",
|
|
2312
|
-
body,
|
|
2313
|
-
responseKey: "acs_users"
|
|
2314
|
-
});
|
|
2315
|
-
}
|
|
2316
|
-
listAccessibleEntrances(body) {
|
|
2317
|
-
return new SeamHttpRequest(this, {
|
|
2318
|
-
path: "/acs/users/list_accessible_entrances",
|
|
2319
|
-
method: "post",
|
|
2320
|
-
body,
|
|
2321
|
-
responseKey: "acs_entrances"
|
|
2322
|
-
});
|
|
2323
|
-
}
|
|
2324
|
-
removeFromAccessGroup(body) {
|
|
2325
|
-
return new SeamHttpRequest(this, {
|
|
2326
|
-
path: "/acs/users/remove_from_access_group",
|
|
2327
|
-
method: "post",
|
|
2328
|
-
body,
|
|
2329
|
-
responseKey: void 0
|
|
2330
|
-
});
|
|
2331
|
-
}
|
|
2332
|
-
revokeAccessToAllEntrances(body) {
|
|
2333
|
-
return new SeamHttpRequest(this, {
|
|
2334
|
-
path: "/acs/users/revoke_access_to_all_entrances",
|
|
2335
|
-
method: "post",
|
|
2336
|
-
body,
|
|
2337
|
-
responseKey: void 0
|
|
2338
|
-
});
|
|
2339
|
-
}
|
|
2340
|
-
suspend(body) {
|
|
2341
|
-
return new SeamHttpRequest(this, {
|
|
2342
|
-
path: "/acs/users/suspend",
|
|
2343
|
-
method: "post",
|
|
2344
|
-
body,
|
|
2345
|
-
responseKey: void 0
|
|
2346
|
-
});
|
|
2347
|
-
}
|
|
2348
|
-
unsuspend(body) {
|
|
2349
|
-
return new SeamHttpRequest(this, {
|
|
2350
|
-
path: "/acs/users/unsuspend",
|
|
2304
|
+
path: "/acs/systems/list",
|
|
2351
2305
|
method: "post",
|
|
2352
2306
|
body,
|
|
2353
|
-
responseKey:
|
|
2307
|
+
responseKey: "acs_systems"
|
|
2354
2308
|
});
|
|
2355
2309
|
}
|
|
2356
|
-
|
|
2310
|
+
listCompatibleCredentialManagerAcsSystems(body) {
|
|
2357
2311
|
return new SeamHttpRequest(this, {
|
|
2358
|
-
path: "/acs/
|
|
2312
|
+
path: "/acs/systems/list_compatible_credential_manager_acs_systems",
|
|
2359
2313
|
method: "post",
|
|
2360
2314
|
body,
|
|
2361
|
-
responseKey:
|
|
2315
|
+
responseKey: "acs_systems"
|
|
2362
2316
|
});
|
|
2363
2317
|
}
|
|
2364
2318
|
};
|
|
2365
2319
|
|
|
2366
|
-
// src/lib/seam/connect/routes/acs.ts
|
|
2367
|
-
var
|
|
2320
|
+
// src/lib/seam/connect/routes/acs-users-unmanaged.ts
|
|
2321
|
+
var SeamHttpAcsUsersUnmanaged = class _SeamHttpAcsUsersUnmanaged {
|
|
2368
2322
|
constructor(apiKeyOrOptions = {}) {
|
|
2369
2323
|
const options = parseOptions(apiKeyOrOptions);
|
|
2370
2324
|
this.client = "client" in options ? options.client : createClient(options);
|
|
@@ -2375,21 +2329,21 @@ var SeamHttpAcs = class _SeamHttpAcs {
|
|
|
2375
2329
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
2376
2330
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
2377
2331
|
}
|
|
2378
|
-
return new
|
|
2332
|
+
return new _SeamHttpAcsUsersUnmanaged(constructorOptions);
|
|
2379
2333
|
}
|
|
2380
2334
|
static fromApiKey(apiKey, options = {}) {
|
|
2381
2335
|
const constructorOptions = { ...options, apiKey };
|
|
2382
2336
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
2383
2337
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
2384
2338
|
}
|
|
2385
|
-
return new
|
|
2339
|
+
return new _SeamHttpAcsUsersUnmanaged(constructorOptions);
|
|
2386
2340
|
}
|
|
2387
2341
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
2388
2342
|
const constructorOptions = { ...options, clientSessionToken };
|
|
2389
2343
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
2390
2344
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
2391
2345
|
}
|
|
2392
|
-
return new
|
|
2346
|
+
return new _SeamHttpAcsUsersUnmanaged(constructorOptions);
|
|
2393
2347
|
}
|
|
2394
2348
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
2395
2349
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
@@ -2404,7 +2358,7 @@ var SeamHttpAcs = class _SeamHttpAcs {
|
|
|
2404
2358
|
const { token } = await clientSessions.getOrCreate({
|
|
2405
2359
|
user_identifier_key: userIdentifierKey
|
|
2406
2360
|
});
|
|
2407
|
-
return
|
|
2361
|
+
return _SeamHttpAcsUsersUnmanaged.fromClientSessionToken(token, options);
|
|
2408
2362
|
}
|
|
2409
2363
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
2410
2364
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -2413,7 +2367,7 @@ var SeamHttpAcs = class _SeamHttpAcs {
|
|
|
2413
2367
|
"Missing consoleSessionToken or workspaceId"
|
|
2414
2368
|
);
|
|
2415
2369
|
}
|
|
2416
|
-
return new
|
|
2370
|
+
return new _SeamHttpAcsUsersUnmanaged(constructorOptions);
|
|
2417
2371
|
}
|
|
2418
2372
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
2419
2373
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -2422,7 +2376,7 @@ var SeamHttpAcs = class _SeamHttpAcs {
|
|
|
2422
2376
|
"Missing personalAccessToken or workspaceId"
|
|
2423
2377
|
);
|
|
2424
2378
|
}
|
|
2425
|
-
return new
|
|
2379
|
+
return new _SeamHttpAcsUsersUnmanaged(constructorOptions);
|
|
2426
2380
|
}
|
|
2427
2381
|
async updateClientSessionToken(clientSessionToken) {
|
|
2428
2382
|
const { headers } = this.client.defaults;
|
|
@@ -2440,34 +2394,26 @@ var SeamHttpAcs = class _SeamHttpAcs {
|
|
|
2440
2394
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2441
2395
|
await clientSessions.get();
|
|
2442
2396
|
}
|
|
2443
|
-
get
|
|
2444
|
-
return
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
return SeamHttpAcsCredentialProvisioningAutomations.fromClient(
|
|
2451
|
-
this.client,
|
|
2452
|
-
this.defaults
|
|
2453
|
-
);
|
|
2454
|
-
}
|
|
2455
|
-
get credentials() {
|
|
2456
|
-
return SeamHttpAcsCredentials.fromClient(this.client, this.defaults);
|
|
2457
|
-
}
|
|
2458
|
-
get entrances() {
|
|
2459
|
-
return SeamHttpAcsEntrances.fromClient(this.client, this.defaults);
|
|
2460
|
-
}
|
|
2461
|
-
get systems() {
|
|
2462
|
-
return SeamHttpAcsSystems.fromClient(this.client, this.defaults);
|
|
2397
|
+
get(body) {
|
|
2398
|
+
return new SeamHttpRequest(this, {
|
|
2399
|
+
path: "/acs/users/unmanaged/get",
|
|
2400
|
+
method: "post",
|
|
2401
|
+
body,
|
|
2402
|
+
responseKey: "acs_user"
|
|
2403
|
+
});
|
|
2463
2404
|
}
|
|
2464
|
-
|
|
2465
|
-
return
|
|
2405
|
+
list(body) {
|
|
2406
|
+
return new SeamHttpRequest(this, {
|
|
2407
|
+
path: "/acs/users/unmanaged/list",
|
|
2408
|
+
method: "post",
|
|
2409
|
+
body,
|
|
2410
|
+
responseKey: "acs_users"
|
|
2411
|
+
});
|
|
2466
2412
|
}
|
|
2467
2413
|
};
|
|
2468
2414
|
|
|
2469
|
-
// src/lib/seam/connect/routes/acs-
|
|
2470
|
-
var
|
|
2415
|
+
// src/lib/seam/connect/routes/acs-users.ts
|
|
2416
|
+
var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
2471
2417
|
constructor(apiKeyOrOptions = {}) {
|
|
2472
2418
|
const options = parseOptions(apiKeyOrOptions);
|
|
2473
2419
|
this.client = "client" in options ? options.client : createClient(options);
|
|
@@ -2478,21 +2424,21 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
2478
2424
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
2479
2425
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
2480
2426
|
}
|
|
2481
|
-
return new
|
|
2427
|
+
return new _SeamHttpAcsUsers(constructorOptions);
|
|
2482
2428
|
}
|
|
2483
2429
|
static fromApiKey(apiKey, options = {}) {
|
|
2484
2430
|
const constructorOptions = { ...options, apiKey };
|
|
2485
2431
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
2486
2432
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
2487
2433
|
}
|
|
2488
|
-
return new
|
|
2434
|
+
return new _SeamHttpAcsUsers(constructorOptions);
|
|
2489
2435
|
}
|
|
2490
2436
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
2491
2437
|
const constructorOptions = { ...options, clientSessionToken };
|
|
2492
2438
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
2493
2439
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
2494
2440
|
}
|
|
2495
|
-
return new
|
|
2441
|
+
return new _SeamHttpAcsUsers(constructorOptions);
|
|
2496
2442
|
}
|
|
2497
2443
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
2498
2444
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
@@ -2507,7 +2453,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
2507
2453
|
const { token } = await clientSessions.getOrCreate({
|
|
2508
2454
|
user_identifier_key: userIdentifierKey
|
|
2509
2455
|
});
|
|
2510
|
-
return
|
|
2456
|
+
return _SeamHttpAcsUsers.fromClientSessionToken(token, options);
|
|
2511
2457
|
}
|
|
2512
2458
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
2513
2459
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -2516,7 +2462,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
2516
2462
|
"Missing consoleSessionToken or workspaceId"
|
|
2517
2463
|
);
|
|
2518
2464
|
}
|
|
2519
|
-
return new
|
|
2465
|
+
return new _SeamHttpAcsUsers(constructorOptions);
|
|
2520
2466
|
}
|
|
2521
2467
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
2522
2468
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -2525,7 +2471,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
2525
2471
|
"Missing personalAccessToken or workspaceId"
|
|
2526
2472
|
);
|
|
2527
2473
|
}
|
|
2528
|
-
return new
|
|
2474
|
+
return new _SeamHttpAcsUsers(constructorOptions);
|
|
2529
2475
|
}
|
|
2530
2476
|
async updateClientSessionToken(clientSessionToken) {
|
|
2531
2477
|
const { headers } = this.client.defaults;
|
|
@@ -2543,33 +2489,92 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
2543
2489
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2544
2490
|
await clientSessions.get();
|
|
2545
2491
|
}
|
|
2546
|
-
|
|
2492
|
+
get unmanaged() {
|
|
2493
|
+
return SeamHttpAcsUsersUnmanaged.fromClient(this.client, this.defaults);
|
|
2494
|
+
}
|
|
2495
|
+
addToAccessGroup(body) {
|
|
2547
2496
|
return new SeamHttpRequest(this, {
|
|
2548
|
-
path: "/acs/
|
|
2497
|
+
path: "/acs/users/add_to_access_group",
|
|
2549
2498
|
method: "post",
|
|
2550
2499
|
body,
|
|
2551
2500
|
responseKey: void 0
|
|
2552
2501
|
});
|
|
2553
2502
|
}
|
|
2554
|
-
|
|
2503
|
+
create(body) {
|
|
2555
2504
|
return new SeamHttpRequest(this, {
|
|
2556
|
-
path: "/acs/
|
|
2505
|
+
path: "/acs/users/create",
|
|
2506
|
+
method: "post",
|
|
2507
|
+
body,
|
|
2508
|
+
responseKey: "acs_user"
|
|
2509
|
+
});
|
|
2510
|
+
}
|
|
2511
|
+
delete(body) {
|
|
2512
|
+
return new SeamHttpRequest(this, {
|
|
2513
|
+
path: "/acs/users/delete",
|
|
2557
2514
|
method: "post",
|
|
2558
2515
|
body,
|
|
2559
2516
|
responseKey: void 0
|
|
2560
2517
|
});
|
|
2561
2518
|
}
|
|
2562
|
-
|
|
2519
|
+
get(body) {
|
|
2563
2520
|
return new SeamHttpRequest(this, {
|
|
2564
|
-
path: "/acs/
|
|
2521
|
+
path: "/acs/users/get",
|
|
2522
|
+
method: "post",
|
|
2523
|
+
body,
|
|
2524
|
+
responseKey: "acs_user"
|
|
2525
|
+
});
|
|
2526
|
+
}
|
|
2527
|
+
list(body) {
|
|
2528
|
+
return new SeamHttpRequest(this, {
|
|
2529
|
+
path: "/acs/users/list",
|
|
2530
|
+
method: "post",
|
|
2531
|
+
body,
|
|
2532
|
+
responseKey: "acs_users"
|
|
2533
|
+
});
|
|
2534
|
+
}
|
|
2535
|
+
listAccessibleEntrances(body) {
|
|
2536
|
+
return new SeamHttpRequest(this, {
|
|
2537
|
+
path: "/acs/users/list_accessible_entrances",
|
|
2538
|
+
method: "post",
|
|
2539
|
+
body,
|
|
2540
|
+
responseKey: "acs_entrances"
|
|
2541
|
+
});
|
|
2542
|
+
}
|
|
2543
|
+
removeFromAccessGroup(body) {
|
|
2544
|
+
return new SeamHttpRequest(this, {
|
|
2545
|
+
path: "/acs/users/remove_from_access_group",
|
|
2565
2546
|
method: "post",
|
|
2566
2547
|
body,
|
|
2567
2548
|
responseKey: void 0
|
|
2568
2549
|
});
|
|
2569
2550
|
}
|
|
2570
|
-
|
|
2551
|
+
revokeAccessToAllEntrances(body) {
|
|
2571
2552
|
return new SeamHttpRequest(this, {
|
|
2572
|
-
path: "/acs/
|
|
2553
|
+
path: "/acs/users/revoke_access_to_all_entrances",
|
|
2554
|
+
method: "post",
|
|
2555
|
+
body,
|
|
2556
|
+
responseKey: void 0
|
|
2557
|
+
});
|
|
2558
|
+
}
|
|
2559
|
+
suspend(body) {
|
|
2560
|
+
return new SeamHttpRequest(this, {
|
|
2561
|
+
path: "/acs/users/suspend",
|
|
2562
|
+
method: "post",
|
|
2563
|
+
body,
|
|
2564
|
+
responseKey: void 0
|
|
2565
|
+
});
|
|
2566
|
+
}
|
|
2567
|
+
unsuspend(body) {
|
|
2568
|
+
return new SeamHttpRequest(this, {
|
|
2569
|
+
path: "/acs/users/unsuspend",
|
|
2570
|
+
method: "post",
|
|
2571
|
+
body,
|
|
2572
|
+
responseKey: void 0
|
|
2573
|
+
});
|
|
2574
|
+
}
|
|
2575
|
+
update(body) {
|
|
2576
|
+
return new SeamHttpRequest(this, {
|
|
2577
|
+
path: "/acs/users/update",
|
|
2573
2578
|
method: "post",
|
|
2574
2579
|
body,
|
|
2575
2580
|
responseKey: void 0
|
|
@@ -2577,8 +2582,8 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
2577
2582
|
}
|
|
2578
2583
|
};
|
|
2579
2584
|
|
|
2580
|
-
// src/lib/seam/connect/routes/acs
|
|
2581
|
-
var
|
|
2585
|
+
// src/lib/seam/connect/routes/acs.ts
|
|
2586
|
+
var SeamHttpAcs = class _SeamHttpAcs {
|
|
2582
2587
|
constructor(apiKeyOrOptions = {}) {
|
|
2583
2588
|
const options = parseOptions(apiKeyOrOptions);
|
|
2584
2589
|
this.client = "client" in options ? options.client : createClient(options);
|
|
@@ -2589,21 +2594,21 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2589
2594
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
2590
2595
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
2591
2596
|
}
|
|
2592
|
-
return new
|
|
2597
|
+
return new _SeamHttpAcs(constructorOptions);
|
|
2593
2598
|
}
|
|
2594
2599
|
static fromApiKey(apiKey, options = {}) {
|
|
2595
2600
|
const constructorOptions = { ...options, apiKey };
|
|
2596
2601
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
2597
2602
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
2598
2603
|
}
|
|
2599
|
-
return new
|
|
2604
|
+
return new _SeamHttpAcs(constructorOptions);
|
|
2600
2605
|
}
|
|
2601
2606
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
2602
2607
|
const constructorOptions = { ...options, clientSessionToken };
|
|
2603
2608
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
2604
2609
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
2605
2610
|
}
|
|
2606
|
-
return new
|
|
2611
|
+
return new _SeamHttpAcs(constructorOptions);
|
|
2607
2612
|
}
|
|
2608
2613
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
2609
2614
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
@@ -2618,7 +2623,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2618
2623
|
const { token } = await clientSessions.getOrCreate({
|
|
2619
2624
|
user_identifier_key: userIdentifierKey
|
|
2620
2625
|
});
|
|
2621
|
-
return
|
|
2626
|
+
return _SeamHttpAcs.fromClientSessionToken(token, options);
|
|
2622
2627
|
}
|
|
2623
2628
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
2624
2629
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -2627,7 +2632,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2627
2632
|
"Missing consoleSessionToken or workspaceId"
|
|
2628
2633
|
);
|
|
2629
2634
|
}
|
|
2630
|
-
return new
|
|
2635
|
+
return new _SeamHttpAcs(constructorOptions);
|
|
2631
2636
|
}
|
|
2632
2637
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
2633
2638
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -2636,7 +2641,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2636
2641
|
"Missing personalAccessToken or workspaceId"
|
|
2637
2642
|
);
|
|
2638
2643
|
}
|
|
2639
|
-
return new
|
|
2644
|
+
return new _SeamHttpAcs(constructorOptions);
|
|
2640
2645
|
}
|
|
2641
2646
|
async updateClientSessionToken(clientSessionToken) {
|
|
2642
2647
|
const { headers } = this.client.defaults;
|
|
@@ -2654,34 +2659,32 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2654
2659
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2655
2660
|
await clientSessions.get();
|
|
2656
2661
|
}
|
|
2657
|
-
get
|
|
2658
|
-
return
|
|
2662
|
+
get accessGroups() {
|
|
2663
|
+
return SeamHttpAcsAccessGroups.fromClient(this.client, this.defaults);
|
|
2659
2664
|
}
|
|
2660
|
-
|
|
2661
|
-
return
|
|
2662
|
-
path: "/acs/encoders/encode_credential",
|
|
2663
|
-
method: "post",
|
|
2664
|
-
body,
|
|
2665
|
-
responseKey: "action_attempt",
|
|
2666
|
-
options
|
|
2667
|
-
});
|
|
2665
|
+
get credentialPools() {
|
|
2666
|
+
return SeamHttpAcsCredentialPools.fromClient(this.client, this.defaults);
|
|
2668
2667
|
}
|
|
2669
|
-
|
|
2670
|
-
return
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
responseKey: "acs_encoders"
|
|
2675
|
-
});
|
|
2668
|
+
get credentialProvisioningAutomations() {
|
|
2669
|
+
return SeamHttpAcsCredentialProvisioningAutomations.fromClient(
|
|
2670
|
+
this.client,
|
|
2671
|
+
this.defaults
|
|
2672
|
+
);
|
|
2676
2673
|
}
|
|
2677
|
-
|
|
2678
|
-
return
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2674
|
+
get credentials() {
|
|
2675
|
+
return SeamHttpAcsCredentials.fromClient(this.client, this.defaults);
|
|
2676
|
+
}
|
|
2677
|
+
get entrances() {
|
|
2678
|
+
return SeamHttpAcsEntrances.fromClient(this.client, this.defaults);
|
|
2679
|
+
}
|
|
2680
|
+
get encoders() {
|
|
2681
|
+
return SeamHttpAcsEncoders.fromClient(this.client, this.defaults);
|
|
2682
|
+
}
|
|
2683
|
+
get systems() {
|
|
2684
|
+
return SeamHttpAcsSystems.fromClient(this.client, this.defaults);
|
|
2685
|
+
}
|
|
2686
|
+
get users() {
|
|
2687
|
+
return SeamHttpAcsUsers.fromClient(this.client, this.defaults);
|
|
2685
2688
|
}
|
|
2686
2689
|
};
|
|
2687
2690
|
|