@seamapi/http 1.32.0 → 1.34.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 +637 -210
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +537 -85
- package/lib/seam/connect/resolve-action-attempt.d.ts +488 -52
- package/lib/seam/connect/routes/access-codes.d.ts +4 -0
- package/lib/seam/connect/routes/access-codes.js +8 -0
- package/lib/seam/connect/routes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/access-grants.d.ts +35 -0
- package/lib/seam/connect/routes/access-grants.js +116 -0
- package/lib/seam/connect/routes/access-grants.js.map +1 -0
- package/lib/seam/connect/routes/{networks.d.ts → access-methods.d.ts} +19 -15
- package/lib/seam/connect/routes/{bridges.js → access-methods.js} +20 -12
- package/lib/seam/connect/routes/access-methods.js.map +1 -0
- package/lib/seam/connect/routes/acs-encoders.d.ts +4 -0
- package/lib/seam/connect/routes/acs-encoders.js +9 -0
- package/lib/seam/connect/routes/acs-encoders.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts.d.ts +4 -0
- package/lib/seam/connect/routes/connected-accounts.js +8 -0
- package/lib/seam/connect/routes/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/index.d.ts +5 -2
- package/lib/seam/connect/routes/index.js +5 -2
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/spaces.d.ts +55 -0
- package/lib/seam/connect/routes/spaces.js +156 -0
- package/lib/seam/connect/routes/spaces.js.map +1 -0
- package/lib/seam/connect/routes/thermostats-daily-programs.d.ts +31 -0
- package/lib/seam/connect/routes/thermostats-daily-programs.js +109 -0
- package/lib/seam/connect/routes/thermostats-daily-programs.js.map +1 -0
- package/lib/seam/connect/routes/thermostats.d.ts +6 -0
- package/lib/seam/connect/routes/thermostats.js +13 -0
- package/lib/seam/connect/routes/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/{bridges.d.ts → unstable-partner.d.ts} +8 -18
- package/lib/seam/connect/routes/{networks.js → unstable-partner.js} +8 -25
- package/lib/seam/connect/routes/unstable-partner.js.map +1 -0
- package/lib/seam/connect/routes/workspaces.d.ts +4 -0
- package/lib/seam/connect/routes/workspaces.js +8 -0
- package/lib/seam/connect/routes/workspaces.js.map +1 -1
- package/lib/seam/connect/seam-http.d.ts +4 -2
- package/lib/seam/connect/seam-http.js +10 -4
- package/lib/seam/connect/seam-http.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
- package/src/lib/seam/connect/routes/access-codes.ts +20 -0
- package/src/lib/seam/connect/routes/access-grants.ts +237 -0
- package/src/lib/seam/connect/routes/{networks.ts → access-methods.ts} +47 -29
- package/src/lib/seam/connect/routes/acs-encoders.ts +25 -0
- package/src/lib/seam/connect/routes/connected-accounts.ts +18 -0
- package/src/lib/seam/connect/routes/index.ts +5 -2
- package/src/lib/seam/connect/routes/spaces.ts +329 -0
- package/src/lib/seam/connect/routes/thermostats-daily-programs.ts +234 -0
- package/src/lib/seam/connect/routes/thermostats.ts +33 -0
- package/src/lib/seam/connect/routes/{bridges.ts → unstable-partner.ts} +14 -53
- package/src/lib/seam/connect/routes/workspaces.ts +17 -0
- package/src/lib/seam/connect/seam-http.ts +15 -5
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/bridges.js.map +0 -1
- package/lib/seam/connect/routes/networks.js.map +0 -1
|
@@ -113,5 +113,13 @@ export class SeamHttpWorkspaces {
|
|
|
113
113
|
options,
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
+
update(body) {
|
|
117
|
+
return new SeamHttpRequest(this, {
|
|
118
|
+
pathname: '/workspaces/update',
|
|
119
|
+
method: 'post',
|
|
120
|
+
body,
|
|
121
|
+
responseKey: undefined,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
116
124
|
}
|
|
117
125
|
//# sourceMappingURL=workspaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"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I,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,oBAAoB;YAC9B,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,WAAW;SACzB,CAAC,CAAA;IACJ,CAAC;IAED,GAAG,CACD,IAA0B;QAE1B,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,iBAAiB;YAC3B,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,WAAW;SACzB,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,CACF,IAA2B;QAE3B,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,kBAAkB;YAC5B,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,YAAY;SAC1B,CAAC,CAAA;IACJ,CAAC;IAED,YAAY,CACV,IAAiC,EACjC,UAAgE,EAAE;QAElE,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,2BAA2B;YACrC,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,CAAC,IAA2B;QAChC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,oBAAoB;YAC9B,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Client } from './client.js';
|
|
2
2
|
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from './options.js';
|
|
3
|
-
import { SeamHttpAccessCodes, SeamHttpAcs, SeamHttpActionAttempts, SeamHttpClientSessions, SeamHttpConnectedAccounts, SeamHttpConnectWebviews, SeamHttpDevices, SeamHttpEvents, SeamHttpLocks,
|
|
3
|
+
import { SeamHttpAccessCodes, SeamHttpAccessGrants, SeamHttpAccessMethods, SeamHttpAcs, SeamHttpActionAttempts, SeamHttpClientSessions, SeamHttpConnectedAccounts, SeamHttpConnectWebviews, SeamHttpDevices, SeamHttpEvents, SeamHttpLocks, SeamHttpNoiseSensors, SeamHttpPhones, SeamHttpSpaces, SeamHttpThermostats, SeamHttpUserIdentities, SeamHttpWebhooks, SeamHttpWorkspaces } from './routes/index.js';
|
|
4
4
|
import type { SeamHttpRequest } from './seam-http-request.js';
|
|
5
5
|
import { SeamPaginator } from './seam-paginator.js';
|
|
6
6
|
export declare class SeamHttp {
|
|
@@ -18,6 +18,8 @@ export declare class SeamHttp {
|
|
|
18
18
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
19
19
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
20
20
|
get accessCodes(): SeamHttpAccessCodes;
|
|
21
|
+
get accessGrants(): SeamHttpAccessGrants;
|
|
22
|
+
get accessMethods(): SeamHttpAccessMethods;
|
|
21
23
|
get acs(): SeamHttpAcs;
|
|
22
24
|
get actionAttempts(): SeamHttpActionAttempts;
|
|
23
25
|
get clientSessions(): SeamHttpClientSessions;
|
|
@@ -26,9 +28,9 @@ export declare class SeamHttp {
|
|
|
26
28
|
get devices(): SeamHttpDevices;
|
|
27
29
|
get events(): SeamHttpEvents;
|
|
28
30
|
get locks(): SeamHttpLocks;
|
|
29
|
-
get networks(): SeamHttpNetworks;
|
|
30
31
|
get noiseSensors(): SeamHttpNoiseSensors;
|
|
31
32
|
get phones(): SeamHttpPhones;
|
|
33
|
+
get spaces(): SeamHttpSpaces;
|
|
32
34
|
get thermostats(): SeamHttpThermostats;
|
|
33
35
|
get userIdentities(): SeamHttpUserIdentities;
|
|
34
36
|
get webhooks(): SeamHttpWebhooks;
|
|
@@ -3,7 +3,7 @@ import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, }
|
|
|
3
3
|
import { createClient } from './client.js';
|
|
4
4
|
import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from './options.js';
|
|
5
5
|
import { limitToSeamHttpRequestOptions, parseOptions } from './parse-options.js';
|
|
6
|
-
import { SeamHttpAccessCodes, SeamHttpAcs, SeamHttpActionAttempts, SeamHttpClientSessions, SeamHttpConnectedAccounts, SeamHttpConnectWebviews, SeamHttpDevices, SeamHttpEvents, SeamHttpLocks,
|
|
6
|
+
import { SeamHttpAccessCodes, SeamHttpAccessGrants, SeamHttpAccessMethods, SeamHttpAcs, SeamHttpActionAttempts, SeamHttpClientSessions, SeamHttpConnectedAccounts, SeamHttpConnectWebviews, SeamHttpDevices, SeamHttpEvents, SeamHttpLocks, SeamHttpNoiseSensors, SeamHttpPhones, SeamHttpSpaces, SeamHttpThermostats, SeamHttpUserIdentities, SeamHttpWebhooks, SeamHttpWorkspaces, } from './routes/index.js';
|
|
7
7
|
import { SeamPaginator } from './seam-paginator.js';
|
|
8
8
|
export class SeamHttp {
|
|
9
9
|
constructor(apiKeyOrOptions = {}) {
|
|
@@ -80,6 +80,12 @@ export class SeamHttp {
|
|
|
80
80
|
get accessCodes() {
|
|
81
81
|
return SeamHttpAccessCodes.fromClient(this.client, this.defaults);
|
|
82
82
|
}
|
|
83
|
+
get accessGrants() {
|
|
84
|
+
return SeamHttpAccessGrants.fromClient(this.client, this.defaults);
|
|
85
|
+
}
|
|
86
|
+
get accessMethods() {
|
|
87
|
+
return SeamHttpAccessMethods.fromClient(this.client, this.defaults);
|
|
88
|
+
}
|
|
83
89
|
get acs() {
|
|
84
90
|
return SeamHttpAcs.fromClient(this.client, this.defaults);
|
|
85
91
|
}
|
|
@@ -104,15 +110,15 @@ export class SeamHttp {
|
|
|
104
110
|
get locks() {
|
|
105
111
|
return SeamHttpLocks.fromClient(this.client, this.defaults);
|
|
106
112
|
}
|
|
107
|
-
get networks() {
|
|
108
|
-
return SeamHttpNetworks.fromClient(this.client, this.defaults);
|
|
109
|
-
}
|
|
110
113
|
get noiseSensors() {
|
|
111
114
|
return SeamHttpNoiseSensors.fromClient(this.client, this.defaults);
|
|
112
115
|
}
|
|
113
116
|
get phones() {
|
|
114
117
|
return SeamHttpPhones.fromClient(this.client, this.defaults);
|
|
115
118
|
}
|
|
119
|
+
get spaces() {
|
|
120
|
+
return SeamHttpSpaces.fromClient(this.client, this.defaults);
|
|
121
|
+
}
|
|
116
122
|
get thermostats() {
|
|
117
123
|
return SeamHttpThermostats.fromClient(this.client, this.defaults);
|
|
118
124
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seam-http.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/seam-http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,WAAW,CAAA;AAClB,OAAO,EAAe,YAAY,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,6BAA6B,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAChF,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,sBAAsB,EACtB,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,eAAe,EACf,cAAc,EACd,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"seam-http.js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AChE,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,kBAAkB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IAClE,CAAC;;AAjMM,mBAAU,GAAG,iBAAiB,AAApB,CAAoB"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiJavascriptHttpVersion = "1.
|
|
1
|
+
declare const seamapiJavascriptHttpVersion = "1.34.0";
|
|
2
2
|
export default seamapiJavascriptHttpVersion;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/http",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"npm": ">=10.1.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@seamapi/types": "^1.
|
|
87
|
+
"@seamapi/types": "^1.410.1"
|
|
88
88
|
},
|
|
89
89
|
"peerDependenciesMeta": {
|
|
90
90
|
"@seamapi/types": {
|
|
@@ -92,13 +92,13 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@seamapi/url-search-params-serializer": "^
|
|
95
|
+
"@seamapi/url-search-params-serializer": "^2.0.0-beta.2",
|
|
96
96
|
"axios": "^1.9.0",
|
|
97
97
|
"axios-retry": "^4.4.2"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@seamapi/fake-seam-connect": "^1.77.0",
|
|
101
|
-
"@seamapi/types": "1.
|
|
101
|
+
"@seamapi/types": "1.410.1",
|
|
102
102
|
"@swc/core": "^1.11.29",
|
|
103
103
|
"@types/eslint": "^8.44.2",
|
|
104
104
|
"@types/jsonwebtoken": "^9.0.6",
|
|
@@ -246,6 +246,17 @@ export class SeamHttpAccessCodes {
|
|
|
246
246
|
})
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
reportDeviceConstraints(
|
|
250
|
+
body?: AccessCodesReportDeviceConstraintsBody,
|
|
251
|
+
): SeamHttpRequest<void, undefined> {
|
|
252
|
+
return new SeamHttpRequest(this, {
|
|
253
|
+
pathname: '/access_codes/report_device_constraints',
|
|
254
|
+
method: 'post',
|
|
255
|
+
body,
|
|
256
|
+
responseKey: undefined,
|
|
257
|
+
})
|
|
258
|
+
}
|
|
259
|
+
|
|
249
260
|
update(body?: AccessCodesUpdateBody): SeamHttpRequest<void, undefined> {
|
|
250
261
|
return new SeamHttpRequest(this, {
|
|
251
262
|
pathname: '/access_codes/update',
|
|
@@ -326,6 +337,15 @@ export type AccessCodesPullBackupAccessCodeResponse = SetNonNullable<
|
|
|
326
337
|
|
|
327
338
|
export type AccessCodesPullBackupAccessCodeOptions = never
|
|
328
339
|
|
|
340
|
+
export type AccessCodesReportDeviceConstraintsBody =
|
|
341
|
+
RouteRequestBody<'/access_codes/report_device_constraints'>
|
|
342
|
+
|
|
343
|
+
export type AccessCodesReportDeviceConstraintsResponse = SetNonNullable<
|
|
344
|
+
Required<RouteResponse<'/access_codes/report_device_constraints'>>
|
|
345
|
+
>
|
|
346
|
+
|
|
347
|
+
export type AccessCodesReportDeviceConstraintsOptions = never
|
|
348
|
+
|
|
329
349
|
export type AccessCodesUpdateBody = RouteRequestBody<'/access_codes/update'>
|
|
330
350
|
|
|
331
351
|
export type AccessCodesUpdateResponse = SetNonNullable<
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by generate-routes.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
getAuthHeadersForClientSessionToken,
|
|
10
|
+
warnOnInsecureuserIdentifierKey,
|
|
11
|
+
} from 'lib/seam/connect/auth.js'
|
|
12
|
+
import { type Client, createClient } from 'lib/seam/connect/client.js'
|
|
13
|
+
import {
|
|
14
|
+
isSeamHttpOptionsWithApiKey,
|
|
15
|
+
isSeamHttpOptionsWithClient,
|
|
16
|
+
isSeamHttpOptionsWithClientSessionToken,
|
|
17
|
+
isSeamHttpOptionsWithConsoleSessionToken,
|
|
18
|
+
isSeamHttpOptionsWithPersonalAccessToken,
|
|
19
|
+
type SeamHttpFromPublishableKeyOptions,
|
|
20
|
+
SeamHttpInvalidOptionsError,
|
|
21
|
+
type SeamHttpOptions,
|
|
22
|
+
type SeamHttpOptionsWithApiKey,
|
|
23
|
+
type SeamHttpOptionsWithClient,
|
|
24
|
+
type SeamHttpOptionsWithClientSessionToken,
|
|
25
|
+
type SeamHttpOptionsWithConsoleSessionToken,
|
|
26
|
+
type SeamHttpOptionsWithPersonalAccessToken,
|
|
27
|
+
type SeamHttpRequestOptions,
|
|
28
|
+
} from 'lib/seam/connect/options.js'
|
|
29
|
+
import {
|
|
30
|
+
limitToSeamHttpRequestOptions,
|
|
31
|
+
parseOptions,
|
|
32
|
+
} from 'lib/seam/connect/parse-options.js'
|
|
33
|
+
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
35
|
+
import type { SetNonNullable } from 'lib/types.js'
|
|
36
|
+
|
|
37
|
+
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
38
|
+
|
|
39
|
+
export class SeamHttpAccessGrants {
|
|
40
|
+
client: Client
|
|
41
|
+
readonly defaults: Required<SeamHttpRequestOptions>
|
|
42
|
+
|
|
43
|
+
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
44
|
+
const options = parseOptions(apiKeyOrOptions)
|
|
45
|
+
this.client = 'client' in options ? options.client : createClient(options)
|
|
46
|
+
this.defaults = limitToSeamHttpRequestOptions(options)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static fromClient(
|
|
50
|
+
client: SeamHttpOptionsWithClient['client'],
|
|
51
|
+
options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
|
|
52
|
+
): SeamHttpAccessGrants {
|
|
53
|
+
const constructorOptions = { ...options, client }
|
|
54
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
55
|
+
throw new SeamHttpInvalidOptionsError('Missing client')
|
|
56
|
+
}
|
|
57
|
+
return new SeamHttpAccessGrants(constructorOptions)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
static fromApiKey(
|
|
61
|
+
apiKey: SeamHttpOptionsWithApiKey['apiKey'],
|
|
62
|
+
options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
|
|
63
|
+
): SeamHttpAccessGrants {
|
|
64
|
+
const constructorOptions = { ...options, apiKey }
|
|
65
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
66
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey')
|
|
67
|
+
}
|
|
68
|
+
return new SeamHttpAccessGrants(constructorOptions)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static fromClientSessionToken(
|
|
72
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
73
|
+
options: Omit<
|
|
74
|
+
SeamHttpOptionsWithClientSessionToken,
|
|
75
|
+
'clientSessionToken'
|
|
76
|
+
> = {},
|
|
77
|
+
): SeamHttpAccessGrants {
|
|
78
|
+
const constructorOptions = { ...options, clientSessionToken }
|
|
79
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
80
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
|
|
81
|
+
}
|
|
82
|
+
return new SeamHttpAccessGrants(constructorOptions)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static async fromPublishableKey(
|
|
86
|
+
publishableKey: string,
|
|
87
|
+
userIdentifierKey: string,
|
|
88
|
+
options: SeamHttpFromPublishableKeyOptions = {},
|
|
89
|
+
): Promise<SeamHttpAccessGrants> {
|
|
90
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey)
|
|
91
|
+
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
92
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
93
|
+
throw new SeamHttpInvalidOptionsError(
|
|
94
|
+
'The client option cannot be used with SeamHttp.fromPublishableKey',
|
|
95
|
+
)
|
|
96
|
+
}
|
|
97
|
+
const client = createClient(clientOptions)
|
|
98
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client)
|
|
99
|
+
const { token } = await clientSessions.getOrCreate({
|
|
100
|
+
user_identifier_key: userIdentifierKey,
|
|
101
|
+
})
|
|
102
|
+
return SeamHttpAccessGrants.fromClientSessionToken(token, options)
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static fromConsoleSessionToken(
|
|
106
|
+
consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
|
|
107
|
+
workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
|
|
108
|
+
options: Omit<
|
|
109
|
+
SeamHttpOptionsWithConsoleSessionToken,
|
|
110
|
+
'consoleSessionToken' | 'workspaceId'
|
|
111
|
+
> = {},
|
|
112
|
+
): SeamHttpAccessGrants {
|
|
113
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId }
|
|
114
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
115
|
+
throw new SeamHttpInvalidOptionsError(
|
|
116
|
+
'Missing consoleSessionToken or workspaceId',
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
return new SeamHttpAccessGrants(constructorOptions)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
static fromPersonalAccessToken(
|
|
123
|
+
personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
|
|
124
|
+
workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
|
|
125
|
+
options: Omit<
|
|
126
|
+
SeamHttpOptionsWithPersonalAccessToken,
|
|
127
|
+
'personalAccessToken' | 'workspaceId'
|
|
128
|
+
> = {},
|
|
129
|
+
): SeamHttpAccessGrants {
|
|
130
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId }
|
|
131
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
132
|
+
throw new SeamHttpInvalidOptionsError(
|
|
133
|
+
'Missing personalAccessToken or workspaceId',
|
|
134
|
+
)
|
|
135
|
+
}
|
|
136
|
+
return new SeamHttpAccessGrants(constructorOptions)
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
140
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
141
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
142
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
async updateClientSessionToken(
|
|
146
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
147
|
+
): Promise<void> {
|
|
148
|
+
const { headers } = this.client.defaults
|
|
149
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
150
|
+
clientSessionToken,
|
|
151
|
+
})
|
|
152
|
+
for (const key of Object.keys(authHeaders)) {
|
|
153
|
+
if (headers[key] == null) {
|
|
154
|
+
throw new Error(
|
|
155
|
+
'Cannot update a clientSessionToken on a client created without a clientSessionToken',
|
|
156
|
+
)
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
this.client.defaults.headers = { ...headers, ...authHeaders }
|
|
160
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client)
|
|
161
|
+
await clientSessions.get()
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
create(
|
|
165
|
+
body?: AccessGrantsCreateBody,
|
|
166
|
+
): SeamHttpRequest<AccessGrantsCreateResponse, 'access_grant'> {
|
|
167
|
+
return new SeamHttpRequest(this, {
|
|
168
|
+
pathname: '/access_grants/create',
|
|
169
|
+
method: 'post',
|
|
170
|
+
body,
|
|
171
|
+
responseKey: 'access_grant',
|
|
172
|
+
})
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
delete(body?: AccessGrantsDeleteParams): SeamHttpRequest<void, undefined> {
|
|
176
|
+
return new SeamHttpRequest(this, {
|
|
177
|
+
pathname: '/access_grants/delete',
|
|
178
|
+
method: 'post',
|
|
179
|
+
body,
|
|
180
|
+
responseKey: undefined,
|
|
181
|
+
})
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
get(
|
|
185
|
+
body?: AccessGrantsGetParams,
|
|
186
|
+
): SeamHttpRequest<AccessGrantsGetResponse, 'access_grant'> {
|
|
187
|
+
return new SeamHttpRequest(this, {
|
|
188
|
+
pathname: '/access_grants/get',
|
|
189
|
+
method: 'post',
|
|
190
|
+
body,
|
|
191
|
+
responseKey: 'access_grant',
|
|
192
|
+
})
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
list(
|
|
196
|
+
body?: AccessGrantsListParams,
|
|
197
|
+
): SeamHttpRequest<AccessGrantsListResponse, 'access_grants'> {
|
|
198
|
+
return new SeamHttpRequest(this, {
|
|
199
|
+
pathname: '/access_grants/list',
|
|
200
|
+
method: 'post',
|
|
201
|
+
body,
|
|
202
|
+
responseKey: 'access_grants',
|
|
203
|
+
})
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export type AccessGrantsCreateBody = RouteRequestBody<'/access_grants/create'>
|
|
208
|
+
|
|
209
|
+
export type AccessGrantsCreateResponse = SetNonNullable<
|
|
210
|
+
Required<RouteResponse<'/access_grants/create'>>
|
|
211
|
+
>
|
|
212
|
+
|
|
213
|
+
export type AccessGrantsCreateOptions = never
|
|
214
|
+
|
|
215
|
+
export type AccessGrantsDeleteParams = RouteRequestBody<'/access_grants/delete'>
|
|
216
|
+
|
|
217
|
+
export type AccessGrantsDeleteResponse = SetNonNullable<
|
|
218
|
+
Required<RouteResponse<'/access_grants/delete'>>
|
|
219
|
+
>
|
|
220
|
+
|
|
221
|
+
export type AccessGrantsDeleteOptions = never
|
|
222
|
+
|
|
223
|
+
export type AccessGrantsGetParams = RouteRequestBody<'/access_grants/get'>
|
|
224
|
+
|
|
225
|
+
export type AccessGrantsGetResponse = SetNonNullable<
|
|
226
|
+
Required<RouteResponse<'/access_grants/get'>>
|
|
227
|
+
>
|
|
228
|
+
|
|
229
|
+
export type AccessGrantsGetOptions = never
|
|
230
|
+
|
|
231
|
+
export type AccessGrantsListParams = RouteRequestBody<'/access_grants/list'>
|
|
232
|
+
|
|
233
|
+
export type AccessGrantsListResponse = SetNonNullable<
|
|
234
|
+
Required<RouteResponse<'/access_grants/list'>>
|
|
235
|
+
>
|
|
236
|
+
|
|
237
|
+
export type AccessGrantsListOptions = never
|
|
@@ -36,7 +36,7 @@ import type { SetNonNullable } from 'lib/types.js'
|
|
|
36
36
|
|
|
37
37
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
38
38
|
|
|
39
|
-
export class
|
|
39
|
+
export class SeamHttpAccessMethods {
|
|
40
40
|
client: Client
|
|
41
41
|
readonly defaults: Required<SeamHttpRequestOptions>
|
|
42
42
|
|
|
@@ -49,23 +49,23 @@ export class SeamHttpNetworks {
|
|
|
49
49
|
static fromClient(
|
|
50
50
|
client: SeamHttpOptionsWithClient['client'],
|
|
51
51
|
options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
|
|
52
|
-
):
|
|
52
|
+
): SeamHttpAccessMethods {
|
|
53
53
|
const constructorOptions = { ...options, client }
|
|
54
54
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
55
55
|
throw new SeamHttpInvalidOptionsError('Missing client')
|
|
56
56
|
}
|
|
57
|
-
return new
|
|
57
|
+
return new SeamHttpAccessMethods(constructorOptions)
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
static fromApiKey(
|
|
61
61
|
apiKey: SeamHttpOptionsWithApiKey['apiKey'],
|
|
62
62
|
options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
|
|
63
|
-
):
|
|
63
|
+
): SeamHttpAccessMethods {
|
|
64
64
|
const constructorOptions = { ...options, apiKey }
|
|
65
65
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
66
66
|
throw new SeamHttpInvalidOptionsError('Missing apiKey')
|
|
67
67
|
}
|
|
68
|
-
return new
|
|
68
|
+
return new SeamHttpAccessMethods(constructorOptions)
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
static fromClientSessionToken(
|
|
@@ -74,19 +74,19 @@ export class SeamHttpNetworks {
|
|
|
74
74
|
SeamHttpOptionsWithClientSessionToken,
|
|
75
75
|
'clientSessionToken'
|
|
76
76
|
> = {},
|
|
77
|
-
):
|
|
77
|
+
): SeamHttpAccessMethods {
|
|
78
78
|
const constructorOptions = { ...options, clientSessionToken }
|
|
79
79
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
80
80
|
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
|
|
81
81
|
}
|
|
82
|
-
return new
|
|
82
|
+
return new SeamHttpAccessMethods(constructorOptions)
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
static async fromPublishableKey(
|
|
86
86
|
publishableKey: string,
|
|
87
87
|
userIdentifierKey: string,
|
|
88
88
|
options: SeamHttpFromPublishableKeyOptions = {},
|
|
89
|
-
): Promise<
|
|
89
|
+
): Promise<SeamHttpAccessMethods> {
|
|
90
90
|
warnOnInsecureuserIdentifierKey(userIdentifierKey)
|
|
91
91
|
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
92
92
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
@@ -99,7 +99,7 @@ export class SeamHttpNetworks {
|
|
|
99
99
|
const { token } = await clientSessions.getOrCreate({
|
|
100
100
|
user_identifier_key: userIdentifierKey,
|
|
101
101
|
})
|
|
102
|
-
return
|
|
102
|
+
return SeamHttpAccessMethods.fromClientSessionToken(token, options)
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
static fromConsoleSessionToken(
|
|
@@ -109,14 +109,14 @@ export class SeamHttpNetworks {
|
|
|
109
109
|
SeamHttpOptionsWithConsoleSessionToken,
|
|
110
110
|
'consoleSessionToken' | 'workspaceId'
|
|
111
111
|
> = {},
|
|
112
|
-
):
|
|
112
|
+
): SeamHttpAccessMethods {
|
|
113
113
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId }
|
|
114
114
|
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
115
115
|
throw new SeamHttpInvalidOptionsError(
|
|
116
116
|
'Missing consoleSessionToken or workspaceId',
|
|
117
117
|
)
|
|
118
118
|
}
|
|
119
|
-
return new
|
|
119
|
+
return new SeamHttpAccessMethods(constructorOptions)
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
static fromPersonalAccessToken(
|
|
@@ -126,14 +126,14 @@ export class SeamHttpNetworks {
|
|
|
126
126
|
SeamHttpOptionsWithPersonalAccessToken,
|
|
127
127
|
'personalAccessToken' | 'workspaceId'
|
|
128
128
|
> = {},
|
|
129
|
-
):
|
|
129
|
+
): SeamHttpAccessMethods {
|
|
130
130
|
const constructorOptions = { ...options, personalAccessToken, workspaceId }
|
|
131
131
|
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
132
132
|
throw new SeamHttpInvalidOptionsError(
|
|
133
133
|
'Missing personalAccessToken or workspaceId',
|
|
134
134
|
)
|
|
135
135
|
}
|
|
136
|
-
return new
|
|
136
|
+
return new SeamHttpAccessMethods(constructorOptions)
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
@@ -161,41 +161,59 @@ export class SeamHttpNetworks {
|
|
|
161
161
|
await clientSessions.get()
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
delete(body?: AccessMethodsDeleteParams): SeamHttpRequest<void, undefined> {
|
|
165
|
+
return new SeamHttpRequest(this, {
|
|
166
|
+
pathname: '/access_methods/delete',
|
|
167
|
+
method: 'post',
|
|
168
|
+
body,
|
|
169
|
+
responseKey: undefined,
|
|
170
|
+
})
|
|
171
|
+
}
|
|
172
|
+
|
|
164
173
|
get(
|
|
165
|
-
body?:
|
|
166
|
-
): SeamHttpRequest<
|
|
174
|
+
body?: AccessMethodsGetParams,
|
|
175
|
+
): SeamHttpRequest<AccessMethodsGetResponse, 'access_method'> {
|
|
167
176
|
return new SeamHttpRequest(this, {
|
|
168
|
-
pathname: '/
|
|
177
|
+
pathname: '/access_methods/get',
|
|
169
178
|
method: 'post',
|
|
170
179
|
body,
|
|
171
|
-
responseKey: '
|
|
180
|
+
responseKey: 'access_method',
|
|
172
181
|
})
|
|
173
182
|
}
|
|
174
183
|
|
|
175
184
|
list(
|
|
176
|
-
body?:
|
|
177
|
-
): SeamHttpRequest<
|
|
185
|
+
body?: AccessMethodsListParams,
|
|
186
|
+
): SeamHttpRequest<AccessMethodsListResponse, 'access_methods'> {
|
|
178
187
|
return new SeamHttpRequest(this, {
|
|
179
|
-
pathname: '/
|
|
188
|
+
pathname: '/access_methods/list',
|
|
180
189
|
method: 'post',
|
|
181
190
|
body,
|
|
182
|
-
responseKey: '
|
|
191
|
+
responseKey: 'access_methods',
|
|
183
192
|
})
|
|
184
193
|
}
|
|
185
194
|
}
|
|
186
195
|
|
|
187
|
-
export type
|
|
196
|
+
export type AccessMethodsDeleteParams =
|
|
197
|
+
RouteRequestBody<'/access_methods/delete'>
|
|
198
|
+
|
|
199
|
+
export type AccessMethodsDeleteResponse = SetNonNullable<
|
|
200
|
+
Required<RouteResponse<'/access_methods/delete'>>
|
|
201
|
+
>
|
|
202
|
+
|
|
203
|
+
export type AccessMethodsDeleteOptions = never
|
|
204
|
+
|
|
205
|
+
export type AccessMethodsGetParams = RouteRequestBody<'/access_methods/get'>
|
|
188
206
|
|
|
189
|
-
export type
|
|
190
|
-
Required<RouteResponse<'/
|
|
207
|
+
export type AccessMethodsGetResponse = SetNonNullable<
|
|
208
|
+
Required<RouteResponse<'/access_methods/get'>>
|
|
191
209
|
>
|
|
192
210
|
|
|
193
|
-
export type
|
|
211
|
+
export type AccessMethodsGetOptions = never
|
|
194
212
|
|
|
195
|
-
export type
|
|
213
|
+
export type AccessMethodsListParams = RouteRequestBody<'/access_methods/list'>
|
|
196
214
|
|
|
197
|
-
export type
|
|
198
|
-
Required<RouteResponse<'/
|
|
215
|
+
export type AccessMethodsListResponse = SetNonNullable<
|
|
216
|
+
Required<RouteResponse<'/access_methods/list'>>
|
|
199
217
|
>
|
|
200
218
|
|
|
201
|
-
export type
|
|
219
|
+
export type AccessMethodsListOptions = never
|
|
@@ -166,6 +166,19 @@ export class SeamHttpAcsEncoders {
|
|
|
166
166
|
return SeamHttpAcsEncodersSimulate.fromClient(this.client, this.defaults)
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
+
encodeAccessMethod(
|
|
170
|
+
body?: AcsEncodersEncodeAccessMethodBody,
|
|
171
|
+
options: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'> = {},
|
|
172
|
+
): SeamHttpRequest<AcsEncodersEncodeAccessMethodResponse, 'action_attempt'> {
|
|
173
|
+
return new SeamHttpRequest(this, {
|
|
174
|
+
pathname: '/acs/encoders/encode_access_method',
|
|
175
|
+
method: 'post',
|
|
176
|
+
body,
|
|
177
|
+
responseKey: 'action_attempt',
|
|
178
|
+
options,
|
|
179
|
+
})
|
|
180
|
+
}
|
|
181
|
+
|
|
169
182
|
encodeCredential(
|
|
170
183
|
body?: AcsEncodersEncodeCredentialBody,
|
|
171
184
|
options: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'> = {},
|
|
@@ -215,6 +228,18 @@ export class SeamHttpAcsEncoders {
|
|
|
215
228
|
}
|
|
216
229
|
}
|
|
217
230
|
|
|
231
|
+
export type AcsEncodersEncodeAccessMethodBody =
|
|
232
|
+
RouteRequestBody<'/acs/encoders/encode_access_method'>
|
|
233
|
+
|
|
234
|
+
export type AcsEncodersEncodeAccessMethodResponse = SetNonNullable<
|
|
235
|
+
Required<RouteResponse<'/acs/encoders/encode_access_method'>>
|
|
236
|
+
>
|
|
237
|
+
|
|
238
|
+
export type AcsEncodersEncodeAccessMethodOptions = Pick<
|
|
239
|
+
SeamHttpRequestOptions,
|
|
240
|
+
'waitForActionAttempt'
|
|
241
|
+
>
|
|
242
|
+
|
|
218
243
|
export type AcsEncodersEncodeCredentialBody =
|
|
219
244
|
RouteRequestBody<'/acs/encoders/encode_credential'>
|
|
220
245
|
|