@seamapi/http 1.17.1 → 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.
@@ -0,0 +1,33 @@
1
+ import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
2
+ import { type Client } from '../../../../lib/seam/connect/client.js';
3
+ import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../lib/seam/connect/options.js';
4
+ import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
5
+ import type { SetNonNullable } from '../../../../lib/types.js';
6
+ export declare class SeamHttpAcsEncodersSimulate {
7
+ client: Client;
8
+ readonly defaults: Required<SeamHttpRequestOptions>;
9
+ constructor(apiKeyOrOptions?: string | SeamHttpOptions);
10
+ static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAcsEncodersSimulate;
11
+ static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsEncodersSimulate;
12
+ static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsEncodersSimulate;
13
+ static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsEncodersSimulate>;
14
+ static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsEncodersSimulate;
15
+ static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsEncodersSimulate;
16
+ updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
17
+ nextCredentialEncodeWillFail(body?: AcsEncodersSimulateNextCredentialEncodeWillFailBody): SeamHttpRequest<void, undefined>;
18
+ nextCredentialEncodeWillSucceed(body?: AcsEncodersSimulateNextCredentialEncodeWillSucceedBody): SeamHttpRequest<void, undefined>;
19
+ nextCredentialScanWillFail(body?: AcsEncodersSimulateNextCredentialScanWillFailBody): SeamHttpRequest<void, undefined>;
20
+ nextCredentialScanWillSucceed(body?: AcsEncodersSimulateNextCredentialScanWillSucceedBody): SeamHttpRequest<void, undefined>;
21
+ }
22
+ export type AcsEncodersSimulateNextCredentialEncodeWillFailBody = RouteRequestBody<'/acs/encoders/simulate/next_credential_encode_will_fail'>;
23
+ export type AcsEncodersSimulateNextCredentialEncodeWillFailResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/simulate/next_credential_encode_will_fail'>>>;
24
+ export type AcsEncodersSimulateNextCredentialEncodeWillFailOptions = never;
25
+ export type AcsEncodersSimulateNextCredentialEncodeWillSucceedBody = RouteRequestBody<'/acs/encoders/simulate/next_credential_encode_will_succeed'>;
26
+ export type AcsEncodersSimulateNextCredentialEncodeWillSucceedResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/simulate/next_credential_encode_will_succeed'>>>;
27
+ export type AcsEncodersSimulateNextCredentialEncodeWillSucceedOptions = never;
28
+ export type AcsEncodersSimulateNextCredentialScanWillFailBody = RouteRequestBody<'/acs/encoders/simulate/next_credential_scan_will_fail'>;
29
+ export type AcsEncodersSimulateNextCredentialScanWillFailResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/simulate/next_credential_scan_will_fail'>>>;
30
+ export type AcsEncodersSimulateNextCredentialScanWillFailOptions = never;
31
+ export type AcsEncodersSimulateNextCredentialScanWillSucceedBody = RouteRequestBody<'/acs/encoders/simulate/next_credential_scan_will_succeed'>;
32
+ export type AcsEncodersSimulateNextCredentialScanWillSucceedResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/simulate/next_credential_scan_will_succeed'>>>;
33
+ export type AcsEncodersSimulateNextCredentialScanWillSucceedOptions = never;
@@ -0,0 +1,112 @@
1
+ /*
2
+ * Automatically generated by generate-routes.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+ import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../../../lib/seam/connect/auth.js';
6
+ import { createClient } from '../../../../lib/seam/connect/client.js';
7
+ import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../../lib/seam/connect/options.js';
8
+ import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../lib/seam/connect/parse-options.js';
9
+ import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
10
+ import { SeamHttpClientSessions } from './client-sessions.js';
11
+ export class SeamHttpAcsEncodersSimulate {
12
+ constructor(apiKeyOrOptions = {}) {
13
+ const options = parseOptions(apiKeyOrOptions);
14
+ this.client = 'client' in options ? options.client : createClient(options);
15
+ this.defaults = limitToSeamHttpRequestOptions(options);
16
+ }
17
+ static fromClient(client, options = {}) {
18
+ const constructorOptions = { ...options, client };
19
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
20
+ throw new SeamHttpInvalidOptionsError('Missing client');
21
+ }
22
+ return new SeamHttpAcsEncodersSimulate(constructorOptions);
23
+ }
24
+ static fromApiKey(apiKey, options = {}) {
25
+ const constructorOptions = { ...options, apiKey };
26
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
27
+ throw new SeamHttpInvalidOptionsError('Missing apiKey');
28
+ }
29
+ return new SeamHttpAcsEncodersSimulate(constructorOptions);
30
+ }
31
+ static fromClientSessionToken(clientSessionToken, options = {}) {
32
+ const constructorOptions = { ...options, clientSessionToken };
33
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
34
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
35
+ }
36
+ return new SeamHttpAcsEncodersSimulate(constructorOptions);
37
+ }
38
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
39
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
40
+ const clientOptions = parseOptions({ ...options, publishableKey });
41
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
42
+ throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttp.fromPublishableKey');
43
+ }
44
+ const client = createClient(clientOptions);
45
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
46
+ const { token } = await clientSessions.getOrCreate({
47
+ user_identifier_key: userIdentifierKey,
48
+ });
49
+ return SeamHttpAcsEncodersSimulate.fromClientSessionToken(token, options);
50
+ }
51
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
52
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
53
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
54
+ throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
55
+ }
56
+ return new SeamHttpAcsEncodersSimulate(constructorOptions);
57
+ }
58
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
59
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
60
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
61
+ throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
62
+ }
63
+ return new SeamHttpAcsEncodersSimulate(constructorOptions);
64
+ }
65
+ async updateClientSessionToken(clientSessionToken) {
66
+ const { headers } = this.client.defaults;
67
+ const authHeaders = getAuthHeadersForClientSessionToken({
68
+ clientSessionToken,
69
+ });
70
+ for (const key of Object.keys(authHeaders)) {
71
+ if (headers[key] == null) {
72
+ throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
73
+ }
74
+ }
75
+ this.client.defaults.headers = { ...headers, ...authHeaders };
76
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
77
+ await clientSessions.get();
78
+ }
79
+ nextCredentialEncodeWillFail(body) {
80
+ return new SeamHttpRequest(this, {
81
+ path: '/acs/encoders/simulate/next_credential_encode_will_fail',
82
+ method: 'post',
83
+ body,
84
+ responseKey: undefined,
85
+ });
86
+ }
87
+ nextCredentialEncodeWillSucceed(body) {
88
+ return new SeamHttpRequest(this, {
89
+ path: '/acs/encoders/simulate/next_credential_encode_will_succeed',
90
+ method: 'post',
91
+ body,
92
+ responseKey: undefined,
93
+ });
94
+ }
95
+ nextCredentialScanWillFail(body) {
96
+ return new SeamHttpRequest(this, {
97
+ path: '/acs/encoders/simulate/next_credential_scan_will_fail',
98
+ method: 'post',
99
+ body,
100
+ responseKey: undefined,
101
+ });
102
+ }
103
+ nextCredentialScanWillSucceed(body) {
104
+ return new SeamHttpRequest(this, {
105
+ path: '/acs/encoders/simulate/next_credential_scan_will_succeed',
106
+ method: 'post',
107
+ body,
108
+ responseKey: undefined,
109
+ });
110
+ }
111
+ }
112
+ //# sourceMappingURL=acs-encoders-simulate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acs-encoders-simulate.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/acs-encoders-simulate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC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QAE7D,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,4DAA4D;YAClE,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;IAED,0BAA0B,CACxB,IAAwD;QAExD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,uDAAuD;YAC7D,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;IAED,6BAA6B,CAC3B,IAA2D;QAE3D,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,0DAA0D;YAChE,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;CACF"}
@@ -3,6 +3,7 @@ import { type Client } from '../../../../lib/seam/connect/client.js';
3
3
  import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../lib/seam/connect/options.js';
4
4
  import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
5
5
  import type { SetNonNullable } from '../../../../lib/types.js';
6
+ import { SeamHttpAcsEncodersSimulate } from './acs-encoders-simulate.js';
6
7
  export declare class SeamHttpAcsEncoders {
7
8
  client: Client;
8
9
  readonly defaults: Required<SeamHttpRequestOptions>;
@@ -14,6 +15,7 @@ export declare class SeamHttpAcsEncoders {
14
15
  static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsEncoders;
15
16
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsEncoders;
16
17
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
18
+ get simulate(): SeamHttpAcsEncodersSimulate;
17
19
  encodeCredential(body?: AcsEncodersEncodeCredentialBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<AcsEncodersEncodeCredentialResponse, 'action_attempt'>;
18
20
  list(body?: AcsEncodersListParams): SeamHttpRequest<AcsEncodersListResponse, 'acs_encoders'>;
19
21
  scanCredential(body?: AcsEncodersScanCredentialBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<AcsEncodersScanCredentialResponse, 'action_attempt'>;
@@ -7,6 +7,7 @@ import { createClient } from '../../../../lib/seam/connect/client.js';
7
7
  import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../../lib/seam/connect/options.js';
8
8
  import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../lib/seam/connect/parse-options.js';
9
9
  import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
10
+ import { SeamHttpAcsEncodersSimulate } from './acs-encoders-simulate.js';
10
11
  import { SeamHttpClientSessions } from './client-sessions.js';
11
12
  export class SeamHttpAcsEncoders {
12
13
  constructor(apiKeyOrOptions = {}) {
@@ -76,6 +77,9 @@ export class SeamHttpAcsEncoders {
76
77
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
77
78
  await clientSessions.get();
78
79
  }
80
+ get simulate() {
81
+ return SeamHttpAcsEncodersSimulate.fromClient(this.client, this.defaults);
82
+ }
79
83
  encodeCredential(body, options = {}) {
80
84
  return new SeamHttpRequest(this, {
81
85
  path: '/acs/encoders/encode_credential',
@@ -1 +1 @@
1
- {"version":3,"file":"acs-encoders.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/acs-encoders.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AAGvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,MAAM,OAAO,mBAAmB;IAI9B,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC1E,IAAI,CAAC,QAAQ,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CACf,MAA2C,EAC3C,UAAqD,EAAE;QAEvD,MAAM,kBAAkB,GAAG,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAA;QACjD,IAAI,CAAC,2BAA2B,CAAC,kBAAkB,CAAC,EAAE,CAAC;YACrD,MAAM,IAAI,2BAA2B,CAAC,gBAAgB,CAAC,CAAA;QACzD,CAA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,CAAC,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,WAAW,EAAE,CAAA;QAC7D,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrE,MAAM,cAAc,CAAC,GAAG,EAAE,CAAA;IAC5B,CAAC;IAED,gBAAgB,CACd,IAAsC,EACtC,UAAgE,EAAE;QAElE,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,iCAAiC;YACvC,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,CACF,IAA4B;QAE5B,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,oBAAoB;YAC1B,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,cAAc;SAC5B,CAAC,CAAA;IACJ,CAAC;IAED,cAAc,CACZ,IAAoC,EACpC,UAAgE,EAAE;QAElE,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,+BAA+B;YACrC,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"acs-encoders.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/acs-encoders.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,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AAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,CACF,IAA4B;QAE5B,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,oBAAoB;YAC1B,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,cAAc;SAC5B,CAAC,CAAA;IACJ,CAAC;IAED,cAAc,CACZ,IAAoC,EACpC,UAAgE,EAAE;QAElE,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,+BAA+B;YACrC,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF"}
@@ -4,6 +4,7 @@ import { SeamHttpAcsAccessGroups } from './acs-access-groups.js';
4
4
  import { SeamHttpAcsCredentialPools } from './acs-credential-pools.js';
5
5
  import { SeamHttpAcsCredentialProvisioningAutomations } from './acs-credential-provisioning-automations.js';
6
6
  import { SeamHttpAcsCredentials } from './acs-credentials.js';
7
+ import { SeamHttpAcsEncoders } from './acs-encoders.js';
7
8
  import { SeamHttpAcsEntrances } from './acs-entrances.js';
8
9
  import { SeamHttpAcsSystems } from './acs-systems.js';
9
10
  import { SeamHttpAcsUsers } from './acs-users.js';
@@ -23,6 +24,7 @@ export declare class SeamHttpAcs {
23
24
  get credentialProvisioningAutomations(): SeamHttpAcsCredentialProvisioningAutomations;
24
25
  get credentials(): SeamHttpAcsCredentials;
25
26
  get entrances(): SeamHttpAcsEntrances;
27
+ get encoders(): SeamHttpAcsEncoders;
26
28
  get systems(): SeamHttpAcsSystems;
27
29
  get users(): SeamHttpAcsUsers;
28
30
  }
@@ -10,6 +10,7 @@ import { SeamHttpAcsAccessGroups } from './acs-access-groups.js';
10
10
  import { SeamHttpAcsCredentialPools } from './acs-credential-pools.js';
11
11
  import { SeamHttpAcsCredentialProvisioningAutomations } from './acs-credential-provisioning-automations.js';
12
12
  import { SeamHttpAcsCredentials } from './acs-credentials.js';
13
+ import { SeamHttpAcsEncoders } from './acs-encoders.js';
13
14
  import { SeamHttpAcsEntrances } from './acs-entrances.js';
14
15
  import { SeamHttpAcsSystems } from './acs-systems.js';
15
16
  import { SeamHttpAcsUsers } from './acs-users.js';
@@ -97,6 +98,9 @@ export class SeamHttpAcs {
97
98
  get entrances() {
98
99
  return SeamHttpAcsEntrances.fromClient(this.client, this.defaults);
99
100
  }
101
+ get encoders() {
102
+ return SeamHttpAcsEncoders.fromClient(this.client, this.defaults);
103
+ }
100
104
  get systems() {
101
105
  return SeamHttpAcsSystems.fromClient(this.client, this.defaults);
102
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"acs.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/acs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAA;AACtE,OAAO,EAAE,4CAA4C,EAAE,MAAM,8CAA8C,CAAA;AAC3G,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,sBAAsB,EA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B,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACtE,CAAC;IAED,IAAI,SAAS;QACX,OAAO,oBAAoB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACpE,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACnE,CAAC;IAED,IAAI,OAAO;QACT,OAAO,kBAAkB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IAClE,CAAC;IAED,IAAI,KAAK;QACP,OAAO,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IAChE,CAAC;CACF"}
@@ -9,6 +9,7 @@ export * from './acs-credential-provisioning-automations.js';
9
9
  export * from './acs-credentials.js';
10
10
  export * from './acs-credentials-unmanaged.js';
11
11
  export * from './acs-encoders.js';
12
+ export * from './acs-encoders-simulate.js';
12
13
  export * from './acs-entrances.js';
13
14
  export * from './acs-systems.js';
14
15
  export * from './acs-users.js';
@@ -9,6 +9,7 @@ export * from './acs-credential-provisioning-automations.js';
9
9
  export * from './acs-credentials.js';
10
10
  export * from './acs-credentials-unmanaged.js';
11
11
  export * from './acs-encoders.js';
12
+ export * from './acs-encoders-simulate.js';
12
13
  export * from './acs-entrances.js';
13
14
  export * from './acs-systems.js';
14
15
  export * from './acs-users.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,UAAU,CAAA;AACxB,cAAc,wBAAwB,CAAA;A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c,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA;AACpC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA"}
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const seamapiJavascriptHttpVersion = "1.17.1";
1
+ declare const seamapiJavascriptHttpVersion = "1.19.0";
2
2
  export default seamapiJavascriptHttpVersion;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '1.17.1';
1
+ const seamapiJavascriptHttpVersion = '1.19.0';
2
2
  export default seamapiJavascriptHttpVersion;
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/http",
3
- "version": "1.17.1",
3
+ "version": "1.19.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": ">= 9.0.0"
85
85
  },
86
86
  "peerDependencies": {
87
- "@seamapi/types": "^1.302.2"
87
+ "@seamapi/types": "^1.339.0"
88
88
  },
89
89
  "peerDependenciesMeta": {
90
90
  "@seamapi/types": {
@@ -99,7 +99,7 @@
99
99
  },
100
100
  "devDependencies": {
101
101
  "@seamapi/fake-seam-connect": "1.74.0",
102
- "@seamapi/types": "1.302.2",
102
+ "@seamapi/types": "1.339.0",
103
103
  "@types/eslint": "^8.44.2",
104
104
  "@types/jsonwebtoken": "^9.0.6",
105
105
  "@types/node": "^20.8.10",
@@ -0,0 +1,248 @@
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 type { SetNonNullable } from 'lib/types.js'
35
+
36
+ import { SeamHttpClientSessions } from './client-sessions.js'
37
+
38
+ export class SeamHttpAcsEncodersSimulate {
39
+ client: Client
40
+ readonly defaults: Required<SeamHttpRequestOptions>
41
+
42
+ constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
43
+ const options = parseOptions(apiKeyOrOptions)
44
+ this.client = 'client' in options ? options.client : createClient(options)
45
+ this.defaults = limitToSeamHttpRequestOptions(options)
46
+ }
47
+
48
+ static fromClient(
49
+ client: SeamHttpOptionsWithClient['client'],
50
+ options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
51
+ ): SeamHttpAcsEncodersSimulate {
52
+ const constructorOptions = { ...options, client }
53
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
54
+ throw new SeamHttpInvalidOptionsError('Missing client')
55
+ }
56
+ return new SeamHttpAcsEncodersSimulate(constructorOptions)
57
+ }
58
+
59
+ static fromApiKey(
60
+ apiKey: SeamHttpOptionsWithApiKey['apiKey'],
61
+ options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
62
+ ): SeamHttpAcsEncodersSimulate {
63
+ const constructorOptions = { ...options, apiKey }
64
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
65
+ throw new SeamHttpInvalidOptionsError('Missing apiKey')
66
+ }
67
+ return new SeamHttpAcsEncodersSimulate(constructorOptions)
68
+ }
69
+
70
+ static fromClientSessionToken(
71
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
72
+ options: Omit<
73
+ SeamHttpOptionsWithClientSessionToken,
74
+ 'clientSessionToken'
75
+ > = {},
76
+ ): SeamHttpAcsEncodersSimulate {
77
+ const constructorOptions = { ...options, clientSessionToken }
78
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
79
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
80
+ }
81
+ return new SeamHttpAcsEncodersSimulate(constructorOptions)
82
+ }
83
+
84
+ static async fromPublishableKey(
85
+ publishableKey: string,
86
+ userIdentifierKey: string,
87
+ options: SeamHttpFromPublishableKeyOptions = {},
88
+ ): Promise<SeamHttpAcsEncodersSimulate> {
89
+ warnOnInsecureuserIdentifierKey(userIdentifierKey)
90
+ const clientOptions = parseOptions({ ...options, publishableKey })
91
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
92
+ throw new SeamHttpInvalidOptionsError(
93
+ 'The client option cannot be used with SeamHttp.fromPublishableKey',
94
+ )
95
+ }
96
+ const client = createClient(clientOptions)
97
+ const clientSessions = SeamHttpClientSessions.fromClient(client)
98
+ const { token } = await clientSessions.getOrCreate({
99
+ user_identifier_key: userIdentifierKey,
100
+ })
101
+ return SeamHttpAcsEncodersSimulate.fromClientSessionToken(token, options)
102
+ }
103
+
104
+ static fromConsoleSessionToken(
105
+ consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
106
+ workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
107
+ options: Omit<
108
+ SeamHttpOptionsWithConsoleSessionToken,
109
+ 'consoleSessionToken' | 'workspaceId'
110
+ > = {},
111
+ ): SeamHttpAcsEncodersSimulate {
112
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId }
113
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
114
+ throw new SeamHttpInvalidOptionsError(
115
+ 'Missing consoleSessionToken or workspaceId',
116
+ )
117
+ }
118
+ return new SeamHttpAcsEncodersSimulate(constructorOptions)
119
+ }
120
+
121
+ static fromPersonalAccessToken(
122
+ personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
123
+ workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
124
+ options: Omit<
125
+ SeamHttpOptionsWithPersonalAccessToken,
126
+ 'personalAccessToken' | 'workspaceId'
127
+ > = {},
128
+ ): SeamHttpAcsEncodersSimulate {
129
+ const constructorOptions = { ...options, personalAccessToken, workspaceId }
130
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
131
+ throw new SeamHttpInvalidOptionsError(
132
+ 'Missing personalAccessToken or workspaceId',
133
+ )
134
+ }
135
+ return new SeamHttpAcsEncodersSimulate(constructorOptions)
136
+ }
137
+
138
+ async updateClientSessionToken(
139
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
140
+ ): Promise<void> {
141
+ const { headers } = this.client.defaults
142
+ const authHeaders = getAuthHeadersForClientSessionToken({
143
+ clientSessionToken,
144
+ })
145
+ for (const key of Object.keys(authHeaders)) {
146
+ if (headers[key] == null) {
147
+ throw new Error(
148
+ 'Cannot update a clientSessionToken on a client created without a clientSessionToken',
149
+ )
150
+ }
151
+ }
152
+ this.client.defaults.headers = { ...headers, ...authHeaders }
153
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client)
154
+ await clientSessions.get()
155
+ }
156
+
157
+ nextCredentialEncodeWillFail(
158
+ body?: AcsEncodersSimulateNextCredentialEncodeWillFailBody,
159
+ ): SeamHttpRequest<void, undefined> {
160
+ return new SeamHttpRequest(this, {
161
+ path: '/acs/encoders/simulate/next_credential_encode_will_fail',
162
+ method: 'post',
163
+ body,
164
+ responseKey: undefined,
165
+ })
166
+ }
167
+
168
+ nextCredentialEncodeWillSucceed(
169
+ body?: AcsEncodersSimulateNextCredentialEncodeWillSucceedBody,
170
+ ): SeamHttpRequest<void, undefined> {
171
+ return new SeamHttpRequest(this, {
172
+ path: '/acs/encoders/simulate/next_credential_encode_will_succeed',
173
+ method: 'post',
174
+ body,
175
+ responseKey: undefined,
176
+ })
177
+ }
178
+
179
+ nextCredentialScanWillFail(
180
+ body?: AcsEncodersSimulateNextCredentialScanWillFailBody,
181
+ ): SeamHttpRequest<void, undefined> {
182
+ return new SeamHttpRequest(this, {
183
+ path: '/acs/encoders/simulate/next_credential_scan_will_fail',
184
+ method: 'post',
185
+ body,
186
+ responseKey: undefined,
187
+ })
188
+ }
189
+
190
+ nextCredentialScanWillSucceed(
191
+ body?: AcsEncodersSimulateNextCredentialScanWillSucceedBody,
192
+ ): SeamHttpRequest<void, undefined> {
193
+ return new SeamHttpRequest(this, {
194
+ path: '/acs/encoders/simulate/next_credential_scan_will_succeed',
195
+ method: 'post',
196
+ body,
197
+ responseKey: undefined,
198
+ })
199
+ }
200
+ }
201
+
202
+ export type AcsEncodersSimulateNextCredentialEncodeWillFailBody =
203
+ RouteRequestBody<'/acs/encoders/simulate/next_credential_encode_will_fail'>
204
+
205
+ export type AcsEncodersSimulateNextCredentialEncodeWillFailResponse =
206
+ SetNonNullable<
207
+ Required<
208
+ RouteResponse<'/acs/encoders/simulate/next_credential_encode_will_fail'>
209
+ >
210
+ >
211
+
212
+ export type AcsEncodersSimulateNextCredentialEncodeWillFailOptions = never
213
+
214
+ export type AcsEncodersSimulateNextCredentialEncodeWillSucceedBody =
215
+ RouteRequestBody<'/acs/encoders/simulate/next_credential_encode_will_succeed'>
216
+
217
+ export type AcsEncodersSimulateNextCredentialEncodeWillSucceedResponse =
218
+ SetNonNullable<
219
+ Required<
220
+ RouteResponse<'/acs/encoders/simulate/next_credential_encode_will_succeed'>
221
+ >
222
+ >
223
+
224
+ export type AcsEncodersSimulateNextCredentialEncodeWillSucceedOptions = never
225
+
226
+ export type AcsEncodersSimulateNextCredentialScanWillFailBody =
227
+ RouteRequestBody<'/acs/encoders/simulate/next_credential_scan_will_fail'>
228
+
229
+ export type AcsEncodersSimulateNextCredentialScanWillFailResponse =
230
+ SetNonNullable<
231
+ Required<
232
+ RouteResponse<'/acs/encoders/simulate/next_credential_scan_will_fail'>
233
+ >
234
+ >
235
+
236
+ export type AcsEncodersSimulateNextCredentialScanWillFailOptions = never
237
+
238
+ export type AcsEncodersSimulateNextCredentialScanWillSucceedBody =
239
+ RouteRequestBody<'/acs/encoders/simulate/next_credential_scan_will_succeed'>
240
+
241
+ export type AcsEncodersSimulateNextCredentialScanWillSucceedResponse =
242
+ SetNonNullable<
243
+ Required<
244
+ RouteResponse<'/acs/encoders/simulate/next_credential_scan_will_succeed'>
245
+ >
246
+ >
247
+
248
+ export type AcsEncodersSimulateNextCredentialScanWillSucceedOptions = never
@@ -33,6 +33,7 @@ import {
33
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
34
  import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
+ import { SeamHttpAcsEncodersSimulate } from './acs-encoders-simulate.js'
36
37
  import { SeamHttpClientSessions } from './client-sessions.js'
37
38
 
38
39
  export class SeamHttpAcsEncoders {
@@ -154,6 +155,10 @@ export class SeamHttpAcsEncoders {
154
155
  await clientSessions.get()
155
156
  }
156
157
 
158
+ get simulate(): SeamHttpAcsEncodersSimulate {
159
+ return SeamHttpAcsEncodersSimulate.fromClient(this.client, this.defaults)
160
+ }
161
+
157
162
  encodeCredential(
158
163
  body?: AcsEncodersEncodeCredentialBody,
159
164
  options: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'> = {},
@@ -33,6 +33,7 @@ import { SeamHttpAcsAccessGroups } from './acs-access-groups.js'
33
33
  import { SeamHttpAcsCredentialPools } from './acs-credential-pools.js'
34
34
  import { SeamHttpAcsCredentialProvisioningAutomations } from './acs-credential-provisioning-automations.js'
35
35
  import { SeamHttpAcsCredentials } from './acs-credentials.js'
36
+ import { SeamHttpAcsEncoders } from './acs-encoders.js'
36
37
  import { SeamHttpAcsEntrances } from './acs-entrances.js'
37
38
  import { SeamHttpAcsSystems } from './acs-systems.js'
38
39
  import { SeamHttpAcsUsers } from './acs-users.js'
@@ -180,6 +181,10 @@ export class SeamHttpAcs {
180
181
  return SeamHttpAcsEntrances.fromClient(this.client, this.defaults)
181
182
  }
182
183
 
184
+ get encoders(): SeamHttpAcsEncoders {
185
+ return SeamHttpAcsEncoders.fromClient(this.client, this.defaults)
186
+ }
187
+
183
188
  get systems(): SeamHttpAcsSystems {
184
189
  return SeamHttpAcsSystems.fromClient(this.client, this.defaults)
185
190
  }
@@ -9,6 +9,7 @@ export * from './acs-credential-provisioning-automations.js'
9
9
  export * from './acs-credentials.js'
10
10
  export * from './acs-credentials-unmanaged.js'
11
11
  export * from './acs-encoders.js'
12
+ export * from './acs-encoders-simulate.js'
12
13
  export * from './acs-entrances.js'
13
14
  export * from './acs-systems.js'
14
15
  export * from './acs-users.js'
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '1.17.1'
1
+ const seamapiJavascriptHttpVersion = '1.19.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion