@enfuce/nextgen-sdk 0.0.8 → 0.0.10

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.
Files changed (74) hide show
  1. package/README.md +196 -27
  2. package/dist/authorisation-control/api.d.ts +0 -56
  3. package/dist/authorisation-control/api.js +1 -115
  4. package/dist/authorisation-control/index.d.ts +0 -1
  5. package/dist/authorisation-control/index.js +0 -1
  6. package/dist/card/api.js +12 -12
  7. package/dist/cardholder/api.js +5 -5
  8. package/dist/esm/authorisation-control/api.d.ts +0 -56
  9. package/dist/esm/authorisation-control/api.js +0 -110
  10. package/dist/esm/authorisation-control/index.d.ts +0 -1
  11. package/dist/esm/authorisation-control/index.js +0 -1
  12. package/dist/esm/card/api.js +12 -12
  13. package/dist/esm/cardholder/api.js +5 -5
  14. package/dist/esm/issuer-events/api.d.ts +0 -120
  15. package/dist/esm/issuer-events/api.js +0 -241
  16. package/dist/esm/issuer-events/index.d.ts +0 -1
  17. package/dist/esm/issuer-events/index.js +0 -1
  18. package/dist/esm/oauth/clientCredentials.d.ts +14 -0
  19. package/dist/esm/oauth/clientCredentials.js +39 -0
  20. package/dist/esm/oauth/index.d.ts +1 -1
  21. package/dist/esm/oauth/index.js +1 -1
  22. package/dist/esm/pin/api.d.ts +52 -0
  23. package/dist/esm/pin/api.js +80 -3
  24. package/dist/esm/threeds-oob/api.d.ts +0 -56
  25. package/dist/esm/threeds-oob/api.js +0 -112
  26. package/dist/esm/threeds-oob/index.d.ts +0 -1
  27. package/dist/esm/threeds-oob/index.js +0 -1
  28. package/dist/esm/wallet/api.js +12 -12
  29. package/dist/issuer-events/api.d.ts +0 -120
  30. package/dist/issuer-events/api.js +1 -246
  31. package/dist/issuer-events/index.d.ts +0 -1
  32. package/dist/issuer-events/index.js +0 -1
  33. package/dist/oauth/clientCredentials.d.ts +14 -0
  34. package/dist/oauth/clientCredentials.js +41 -0
  35. package/dist/oauth/index.d.ts +1 -1
  36. package/dist/oauth/index.js +3 -1
  37. package/dist/pin/api.d.ts +52 -0
  38. package/dist/pin/api.js +80 -3
  39. package/dist/threeds-oob/api.d.ts +0 -56
  40. package/dist/threeds-oob/api.js +1 -117
  41. package/dist/threeds-oob/index.d.ts +0 -1
  42. package/dist/threeds-oob/index.js +0 -1
  43. package/dist/wallet/api.js +12 -12
  44. package/package.json +1 -1
  45. package/src/authorisation-control/api.ts +0 -102
  46. package/src/authorisation-control/index.ts +0 -2
  47. package/src/card/api.ts +12 -12
  48. package/src/cardholder/api.ts +5 -5
  49. package/src/issuer-events/api.ts +0 -237
  50. package/src/issuer-events/index.ts +0 -2
  51. package/src/oauth/clientCredentials.ts +44 -0
  52. package/src/oauth/index.ts +8 -1
  53. package/src/pin/api.ts +99 -3
  54. package/src/threeds-oob/api.ts +0 -105
  55. package/src/threeds-oob/index.ts +0 -2
  56. package/src/wallet/api.ts +12 -12
  57. package/dist/authorisation-control/client.d.ts +0 -47
  58. package/dist/authorisation-control/client.js +0 -80
  59. package/dist/esm/authorisation-control/client.d.ts +0 -47
  60. package/dist/esm/authorisation-control/client.js +0 -75
  61. package/dist/esm/issuer-events/client.d.ts +0 -47
  62. package/dist/esm/issuer-events/client.js +0 -75
  63. package/dist/esm/threeds-oob/client.d.ts +0 -47
  64. package/dist/esm/threeds-oob/client.js +0 -75
  65. package/dist/issuer-events/client.d.ts +0 -47
  66. package/dist/issuer-events/client.js +0 -80
  67. package/dist/threeds-oob/client.d.ts +0 -47
  68. package/dist/threeds-oob/client.js +0 -80
  69. package/src/authorisation-control/client.ts +0 -86
  70. package/src/issuer-events/client.ts +0 -86
  71. package/src/threeds-oob/client.ts +0 -86
  72. package/test/authorisation-control.test.ts +0 -71
  73. package/test/issuer-events.test.ts +0 -55
  74. package/test/threeds-oob.test.ts +0 -90
@@ -1,47 +0,0 @@
1
- import { type AxiosInstance } from 'axios';
2
- import { type OAuthClientCredentialsManager } from '../oauth';
3
- import { Configuration } from './configuration';
4
- import { IssuerEventWebhooksApi } from './api';
5
- /**
6
- * Fluent entry point for this module. Build one with {@link IssuerEventsClient.builder}:
7
- *
8
- * ```ts
9
- * const client = IssuerEventsClient.builder()
10
- * .baseUrl('https://api.example.com/...')
11
- * .oauth(tokens)
12
- * .build();
13
- * ```
14
- */
15
- export declare class IssuerEventsClient {
16
- /** The axios instance — OAuth interceptors and any customizations already applied. */
17
- readonly http: AxiosInstance;
18
- /** The module configuration — base path applied. */
19
- readonly configuration: Configuration;
20
- constructor(
21
- /** The axios instance — OAuth interceptors and any customizations already applied. */
22
- http: AxiosInstance,
23
- /** The module configuration — base path applied. */
24
- configuration: Configuration);
25
- /** Build any API in this module bound to this client (for APIs without a named getter). */
26
- api<T>(factory: (configuration: Configuration, http: AxiosInstance) => T): T;
27
- /** {@link IssuerEventWebhooksApi} bound to this client. */
28
- issuerEventWebhooksApi(): IssuerEventWebhooksApi;
29
- static builder(): IssuerEventsClientBuilder;
30
- }
31
- /** Builds a {@link IssuerEventsClient}: base URL + optional OAuth + transport customization. */
32
- export declare class IssuerEventsClientBuilder {
33
- private _baseUrl?;
34
- private _tokens?;
35
- private _customizers;
36
- /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
37
- baseUrl(baseUrl: string): this;
38
- /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
39
- oauth(tokens: OAuthClientCredentialsManager): this;
40
- /**
41
- * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
42
- * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
43
- * calls run in order.
44
- */
45
- configure(customizer: (http: AxiosInstance) => void): this;
46
- build(): IssuerEventsClient;
47
- }
@@ -1,75 +0,0 @@
1
- /*
2
- * Enfuce nextgen SDK — fluent module client.
3
- *
4
- * GENERATED by scripts/generate.sh from a custom template (generator-templates/typescript). One per
5
- * API module: wires an OAuth-enabled axios instance (bearer token on every request + reactive 401
6
- * retry) to the module's Configuration and exposes each API. Nothing is shared across modules.
7
- */
8
- import globalAxios from 'axios';
9
- import { createOAuthAxios } from '../oauth';
10
- import { Configuration } from './configuration';
11
- import { IssuerEventWebhooksApi, } from './api';
12
- /**
13
- * Fluent entry point for this module. Build one with {@link IssuerEventsClient.builder}:
14
- *
15
- * ```ts
16
- * const client = IssuerEventsClient.builder()
17
- * .baseUrl('https://api.example.com/...')
18
- * .oauth(tokens)
19
- * .build();
20
- * ```
21
- */
22
- export class IssuerEventsClient {
23
- constructor(
24
- /** The axios instance — OAuth interceptors and any customizations already applied. */
25
- http,
26
- /** The module configuration — base path applied. */
27
- configuration) {
28
- this.http = http;
29
- this.configuration = configuration;
30
- }
31
- /** Build any API in this module bound to this client (for APIs without a named getter). */
32
- api(factory) {
33
- return factory(this.configuration, this.http);
34
- }
35
- /** {@link IssuerEventWebhooksApi} bound to this client. */
36
- issuerEventWebhooksApi() {
37
- return new IssuerEventWebhooksApi(this.configuration, undefined, this.http);
38
- }
39
- static builder() {
40
- return new IssuerEventsClientBuilder();
41
- }
42
- }
43
- /** Builds a {@link IssuerEventsClient}: base URL + optional OAuth + transport customization. */
44
- export class IssuerEventsClientBuilder {
45
- constructor() {
46
- this._customizers = [];
47
- }
48
- /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
49
- baseUrl(baseUrl) {
50
- this._baseUrl = baseUrl;
51
- return this;
52
- }
53
- /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
54
- oauth(tokens) {
55
- this._tokens = tokens;
56
- return this;
57
- }
58
- /**
59
- * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
60
- * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
61
- * calls run in order.
62
- */
63
- configure(customizer) {
64
- this._customizers.push(customizer);
65
- return this;
66
- }
67
- build() {
68
- const http = this._tokens ? createOAuthAxios(this._tokens) : globalAxios.create();
69
- for (const customizer of this._customizers) {
70
- customizer(http);
71
- }
72
- const configuration = new Configuration({ basePath: this._baseUrl });
73
- return new IssuerEventsClient(http, configuration);
74
- }
75
- }
@@ -1,47 +0,0 @@
1
- import { type AxiosInstance } from 'axios';
2
- import { type OAuthClientCredentialsManager } from '../oauth';
3
- import { Configuration } from './configuration';
4
- import { OOBAuthenticationChallengeWebhookNotificationApi } from './api';
5
- /**
6
- * Fluent entry point for this module. Build one with {@link ThreedsOobClient.builder}:
7
- *
8
- * ```ts
9
- * const client = ThreedsOobClient.builder()
10
- * .baseUrl('https://api.example.com/...')
11
- * .oauth(tokens)
12
- * .build();
13
- * ```
14
- */
15
- export declare class ThreedsOobClient {
16
- /** The axios instance — OAuth interceptors and any customizations already applied. */
17
- readonly http: AxiosInstance;
18
- /** The module configuration — base path applied. */
19
- readonly configuration: Configuration;
20
- constructor(
21
- /** The axios instance — OAuth interceptors and any customizations already applied. */
22
- http: AxiosInstance,
23
- /** The module configuration — base path applied. */
24
- configuration: Configuration);
25
- /** Build any API in this module bound to this client (for APIs without a named getter). */
26
- api<T>(factory: (configuration: Configuration, http: AxiosInstance) => T): T;
27
- /** {@link OOBAuthenticationChallengeWebhookNotificationApi} bound to this client. */
28
- oOBAuthenticationChallengeWebhookNotificationApi(): OOBAuthenticationChallengeWebhookNotificationApi;
29
- static builder(): ThreedsOobClientBuilder;
30
- }
31
- /** Builds a {@link ThreedsOobClient}: base URL + optional OAuth + transport customization. */
32
- export declare class ThreedsOobClientBuilder {
33
- private _baseUrl?;
34
- private _tokens?;
35
- private _customizers;
36
- /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
37
- baseUrl(baseUrl: string): this;
38
- /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
39
- oauth(tokens: OAuthClientCredentialsManager): this;
40
- /**
41
- * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
42
- * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
43
- * calls run in order.
44
- */
45
- configure(customizer: (http: AxiosInstance) => void): this;
46
- build(): ThreedsOobClient;
47
- }
@@ -1,75 +0,0 @@
1
- /*
2
- * Enfuce nextgen SDK — fluent module client.
3
- *
4
- * GENERATED by scripts/generate.sh from a custom template (generator-templates/typescript). One per
5
- * API module: wires an OAuth-enabled axios instance (bearer token on every request + reactive 401
6
- * retry) to the module's Configuration and exposes each API. Nothing is shared across modules.
7
- */
8
- import globalAxios from 'axios';
9
- import { createOAuthAxios } from '../oauth';
10
- import { Configuration } from './configuration';
11
- import { OOBAuthenticationChallengeWebhookNotificationApi, } from './api';
12
- /**
13
- * Fluent entry point for this module. Build one with {@link ThreedsOobClient.builder}:
14
- *
15
- * ```ts
16
- * const client = ThreedsOobClient.builder()
17
- * .baseUrl('https://api.example.com/...')
18
- * .oauth(tokens)
19
- * .build();
20
- * ```
21
- */
22
- export class ThreedsOobClient {
23
- constructor(
24
- /** The axios instance — OAuth interceptors and any customizations already applied. */
25
- http,
26
- /** The module configuration — base path applied. */
27
- configuration) {
28
- this.http = http;
29
- this.configuration = configuration;
30
- }
31
- /** Build any API in this module bound to this client (for APIs without a named getter). */
32
- api(factory) {
33
- return factory(this.configuration, this.http);
34
- }
35
- /** {@link OOBAuthenticationChallengeWebhookNotificationApi} bound to this client. */
36
- oOBAuthenticationChallengeWebhookNotificationApi() {
37
- return new OOBAuthenticationChallengeWebhookNotificationApi(this.configuration, undefined, this.http);
38
- }
39
- static builder() {
40
- return new ThreedsOobClientBuilder();
41
- }
42
- }
43
- /** Builds a {@link ThreedsOobClient}: base URL + optional OAuth + transport customization. */
44
- export class ThreedsOobClientBuilder {
45
- constructor() {
46
- this._customizers = [];
47
- }
48
- /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
49
- baseUrl(baseUrl) {
50
- this._baseUrl = baseUrl;
51
- return this;
52
- }
53
- /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
54
- oauth(tokens) {
55
- this._tokens = tokens;
56
- return this;
57
- }
58
- /**
59
- * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
60
- * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
61
- * calls run in order.
62
- */
63
- configure(customizer) {
64
- this._customizers.push(customizer);
65
- return this;
66
- }
67
- build() {
68
- const http = this._tokens ? createOAuthAxios(this._tokens) : globalAxios.create();
69
- for (const customizer of this._customizers) {
70
- customizer(http);
71
- }
72
- const configuration = new Configuration({ basePath: this._baseUrl });
73
- return new ThreedsOobClient(http, configuration);
74
- }
75
- }
@@ -1,47 +0,0 @@
1
- import { type AxiosInstance } from 'axios';
2
- import { type OAuthClientCredentialsManager } from '../oauth';
3
- import { Configuration } from './configuration';
4
- import { IssuerEventWebhooksApi } from './api';
5
- /**
6
- * Fluent entry point for this module. Build one with {@link IssuerEventsClient.builder}:
7
- *
8
- * ```ts
9
- * const client = IssuerEventsClient.builder()
10
- * .baseUrl('https://api.example.com/...')
11
- * .oauth(tokens)
12
- * .build();
13
- * ```
14
- */
15
- export declare class IssuerEventsClient {
16
- /** The axios instance — OAuth interceptors and any customizations already applied. */
17
- readonly http: AxiosInstance;
18
- /** The module configuration — base path applied. */
19
- readonly configuration: Configuration;
20
- constructor(
21
- /** The axios instance — OAuth interceptors and any customizations already applied. */
22
- http: AxiosInstance,
23
- /** The module configuration — base path applied. */
24
- configuration: Configuration);
25
- /** Build any API in this module bound to this client (for APIs without a named getter). */
26
- api<T>(factory: (configuration: Configuration, http: AxiosInstance) => T): T;
27
- /** {@link IssuerEventWebhooksApi} bound to this client. */
28
- issuerEventWebhooksApi(): IssuerEventWebhooksApi;
29
- static builder(): IssuerEventsClientBuilder;
30
- }
31
- /** Builds a {@link IssuerEventsClient}: base URL + optional OAuth + transport customization. */
32
- export declare class IssuerEventsClientBuilder {
33
- private _baseUrl?;
34
- private _tokens?;
35
- private _customizers;
36
- /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
37
- baseUrl(baseUrl: string): this;
38
- /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
39
- oauth(tokens: OAuthClientCredentialsManager): this;
40
- /**
41
- * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
42
- * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
43
- * calls run in order.
44
- */
45
- configure(customizer: (http: AxiosInstance) => void): this;
46
- build(): IssuerEventsClient;
47
- }
@@ -1,80 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IssuerEventsClientBuilder = exports.IssuerEventsClient = void 0;
4
- /*
5
- * Enfuce nextgen SDK — fluent module client.
6
- *
7
- * GENERATED by scripts/generate.sh from a custom template (generator-templates/typescript). One per
8
- * API module: wires an OAuth-enabled axios instance (bearer token on every request + reactive 401
9
- * retry) to the module's Configuration and exposes each API. Nothing is shared across modules.
10
- */
11
- const axios_1 = require("axios");
12
- const oauth_1 = require("../oauth");
13
- const configuration_1 = require("./configuration");
14
- const api_1 = require("./api");
15
- /**
16
- * Fluent entry point for this module. Build one with {@link IssuerEventsClient.builder}:
17
- *
18
- * ```ts
19
- * const client = IssuerEventsClient.builder()
20
- * .baseUrl('https://api.example.com/...')
21
- * .oauth(tokens)
22
- * .build();
23
- * ```
24
- */
25
- class IssuerEventsClient {
26
- constructor(
27
- /** The axios instance — OAuth interceptors and any customizations already applied. */
28
- http,
29
- /** The module configuration — base path applied. */
30
- configuration) {
31
- this.http = http;
32
- this.configuration = configuration;
33
- }
34
- /** Build any API in this module bound to this client (for APIs without a named getter). */
35
- api(factory) {
36
- return factory(this.configuration, this.http);
37
- }
38
- /** {@link IssuerEventWebhooksApi} bound to this client. */
39
- issuerEventWebhooksApi() {
40
- return new api_1.IssuerEventWebhooksApi(this.configuration, undefined, this.http);
41
- }
42
- static builder() {
43
- return new IssuerEventsClientBuilder();
44
- }
45
- }
46
- exports.IssuerEventsClient = IssuerEventsClient;
47
- /** Builds a {@link IssuerEventsClient}: base URL + optional OAuth + transport customization. */
48
- class IssuerEventsClientBuilder {
49
- constructor() {
50
- this._customizers = [];
51
- }
52
- /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
53
- baseUrl(baseUrl) {
54
- this._baseUrl = baseUrl;
55
- return this;
56
- }
57
- /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
58
- oauth(tokens) {
59
- this._tokens = tokens;
60
- return this;
61
- }
62
- /**
63
- * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
64
- * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
65
- * calls run in order.
66
- */
67
- configure(customizer) {
68
- this._customizers.push(customizer);
69
- return this;
70
- }
71
- build() {
72
- const http = this._tokens ? (0, oauth_1.createOAuthAxios)(this._tokens) : axios_1.default.create();
73
- for (const customizer of this._customizers) {
74
- customizer(http);
75
- }
76
- const configuration = new configuration_1.Configuration({ basePath: this._baseUrl });
77
- return new IssuerEventsClient(http, configuration);
78
- }
79
- }
80
- exports.IssuerEventsClientBuilder = IssuerEventsClientBuilder;
@@ -1,47 +0,0 @@
1
- import { type AxiosInstance } from 'axios';
2
- import { type OAuthClientCredentialsManager } from '../oauth';
3
- import { Configuration } from './configuration';
4
- import { OOBAuthenticationChallengeWebhookNotificationApi } from './api';
5
- /**
6
- * Fluent entry point for this module. Build one with {@link ThreedsOobClient.builder}:
7
- *
8
- * ```ts
9
- * const client = ThreedsOobClient.builder()
10
- * .baseUrl('https://api.example.com/...')
11
- * .oauth(tokens)
12
- * .build();
13
- * ```
14
- */
15
- export declare class ThreedsOobClient {
16
- /** The axios instance — OAuth interceptors and any customizations already applied. */
17
- readonly http: AxiosInstance;
18
- /** The module configuration — base path applied. */
19
- readonly configuration: Configuration;
20
- constructor(
21
- /** The axios instance — OAuth interceptors and any customizations already applied. */
22
- http: AxiosInstance,
23
- /** The module configuration — base path applied. */
24
- configuration: Configuration);
25
- /** Build any API in this module bound to this client (for APIs without a named getter). */
26
- api<T>(factory: (configuration: Configuration, http: AxiosInstance) => T): T;
27
- /** {@link OOBAuthenticationChallengeWebhookNotificationApi} bound to this client. */
28
- oOBAuthenticationChallengeWebhookNotificationApi(): OOBAuthenticationChallengeWebhookNotificationApi;
29
- static builder(): ThreedsOobClientBuilder;
30
- }
31
- /** Builds a {@link ThreedsOobClient}: base URL + optional OAuth + transport customization. */
32
- export declare class ThreedsOobClientBuilder {
33
- private _baseUrl?;
34
- private _tokens?;
35
- private _customizers;
36
- /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
37
- baseUrl(baseUrl: string): this;
38
- /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
39
- oauth(tokens: OAuthClientCredentialsManager): this;
40
- /**
41
- * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
42
- * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
43
- * calls run in order.
44
- */
45
- configure(customizer: (http: AxiosInstance) => void): this;
46
- build(): ThreedsOobClient;
47
- }
@@ -1,80 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThreedsOobClientBuilder = exports.ThreedsOobClient = void 0;
4
- /*
5
- * Enfuce nextgen SDK — fluent module client.
6
- *
7
- * GENERATED by scripts/generate.sh from a custom template (generator-templates/typescript). One per
8
- * API module: wires an OAuth-enabled axios instance (bearer token on every request + reactive 401
9
- * retry) to the module's Configuration and exposes each API. Nothing is shared across modules.
10
- */
11
- const axios_1 = require("axios");
12
- const oauth_1 = require("../oauth");
13
- const configuration_1 = require("./configuration");
14
- const api_1 = require("./api");
15
- /**
16
- * Fluent entry point for this module. Build one with {@link ThreedsOobClient.builder}:
17
- *
18
- * ```ts
19
- * const client = ThreedsOobClient.builder()
20
- * .baseUrl('https://api.example.com/...')
21
- * .oauth(tokens)
22
- * .build();
23
- * ```
24
- */
25
- class ThreedsOobClient {
26
- constructor(
27
- /** The axios instance — OAuth interceptors and any customizations already applied. */
28
- http,
29
- /** The module configuration — base path applied. */
30
- configuration) {
31
- this.http = http;
32
- this.configuration = configuration;
33
- }
34
- /** Build any API in this module bound to this client (for APIs without a named getter). */
35
- api(factory) {
36
- return factory(this.configuration, this.http);
37
- }
38
- /** {@link OOBAuthenticationChallengeWebhookNotificationApi} bound to this client. */
39
- oOBAuthenticationChallengeWebhookNotificationApi() {
40
- return new api_1.OOBAuthenticationChallengeWebhookNotificationApi(this.configuration, undefined, this.http);
41
- }
42
- static builder() {
43
- return new ThreedsOobClientBuilder();
44
- }
45
- }
46
- exports.ThreedsOobClient = ThreedsOobClient;
47
- /** Builds a {@link ThreedsOobClient}: base URL + optional OAuth + transport customization. */
48
- class ThreedsOobClientBuilder {
49
- constructor() {
50
- this._customizers = [];
51
- }
52
- /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
53
- baseUrl(baseUrl) {
54
- this._baseUrl = baseUrl;
55
- return this;
56
- }
57
- /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
58
- oauth(tokens) {
59
- this._tokens = tokens;
60
- return this;
61
- }
62
- /**
63
- * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
64
- * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
65
- * calls run in order.
66
- */
67
- configure(customizer) {
68
- this._customizers.push(customizer);
69
- return this;
70
- }
71
- build() {
72
- const http = this._tokens ? (0, oauth_1.createOAuthAxios)(this._tokens) : axios_1.default.create();
73
- for (const customizer of this._customizers) {
74
- customizer(http);
75
- }
76
- const configuration = new configuration_1.Configuration({ basePath: this._baseUrl });
77
- return new ThreedsOobClient(http, configuration);
78
- }
79
- }
80
- exports.ThreedsOobClientBuilder = ThreedsOobClientBuilder;
@@ -1,86 +0,0 @@
1
- /*
2
- * Enfuce nextgen SDK — fluent module client.
3
- *
4
- * GENERATED by scripts/generate.sh from a custom template (generator-templates/typescript). One per
5
- * API module: wires an OAuth-enabled axios instance (bearer token on every request + reactive 401
6
- * retry) to the module's Configuration and exposes each API. Nothing is shared across modules.
7
- */
8
- import globalAxios, { type AxiosInstance } from 'axios';
9
- import { createOAuthAxios, type OAuthClientCredentialsManager } from '../oauth';
10
- import { Configuration } from './configuration';
11
- import {
12
- AuthorisationRequestAPIApi,
13
- } from './api';
14
-
15
- /**
16
- * Fluent entry point for this module. Build one with {@link AuthorisationControlClient.builder}:
17
- *
18
- * ```ts
19
- * const client = AuthorisationControlClient.builder()
20
- * .baseUrl('https://api.example.com/...')
21
- * .oauth(tokens)
22
- * .build();
23
- * ```
24
- */
25
- export class AuthorisationControlClient {
26
-
27
- constructor(
28
- /** The axios instance — OAuth interceptors and any customizations already applied. */
29
- readonly http: AxiosInstance,
30
- /** The module configuration — base path applied. */
31
- readonly configuration: Configuration,
32
- ) {}
33
-
34
- /** Build any API in this module bound to this client (for APIs without a named getter). */
35
- api<T>(factory: (configuration: Configuration, http: AxiosInstance) => T): T {
36
- return factory(this.configuration, this.http);
37
- }
38
-
39
- /** {@link AuthorisationRequestAPIApi} bound to this client. */
40
- authorisationRequestAPIApi(): AuthorisationRequestAPIApi {
41
- return new AuthorisationRequestAPIApi(this.configuration, undefined, this.http);
42
- }
43
-
44
- static builder(): AuthorisationControlClientBuilder {
45
- return new AuthorisationControlClientBuilder();
46
- }
47
- }
48
-
49
- /** Builds a {@link AuthorisationControlClient}: base URL + optional OAuth + transport customization. */
50
- export class AuthorisationControlClientBuilder {
51
-
52
- private _baseUrl?: string;
53
- private _tokens?: OAuthClientCredentialsManager;
54
- private _customizers: Array<(http: AxiosInstance) => void> = [];
55
-
56
- /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
57
- baseUrl(baseUrl: string): this {
58
- this._baseUrl = baseUrl;
59
- return this;
60
- }
61
-
62
- /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
63
- oauth(tokens: OAuthClientCredentialsManager): this {
64
- this._tokens = tokens;
65
- return this;
66
- }
67
-
68
- /**
69
- * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
70
- * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
71
- * calls run in order.
72
- */
73
- configure(customizer: (http: AxiosInstance) => void): this {
74
- this._customizers.push(customizer);
75
- return this;
76
- }
77
-
78
- build(): AuthorisationControlClient {
79
- const http = this._tokens ? createOAuthAxios(this._tokens) : globalAxios.create();
80
- for (const customizer of this._customizers) {
81
- customizer(http);
82
- }
83
- const configuration = new Configuration({ basePath: this._baseUrl });
84
- return new AuthorisationControlClient(http, configuration);
85
- }
86
- }
@@ -1,86 +0,0 @@
1
- /*
2
- * Enfuce nextgen SDK — fluent module client.
3
- *
4
- * GENERATED by scripts/generate.sh from a custom template (generator-templates/typescript). One per
5
- * API module: wires an OAuth-enabled axios instance (bearer token on every request + reactive 401
6
- * retry) to the module's Configuration and exposes each API. Nothing is shared across modules.
7
- */
8
- import globalAxios, { type AxiosInstance } from 'axios';
9
- import { createOAuthAxios, type OAuthClientCredentialsManager } from '../oauth';
10
- import { Configuration } from './configuration';
11
- import {
12
- IssuerEventWebhooksApi,
13
- } from './api';
14
-
15
- /**
16
- * Fluent entry point for this module. Build one with {@link IssuerEventsClient.builder}:
17
- *
18
- * ```ts
19
- * const client = IssuerEventsClient.builder()
20
- * .baseUrl('https://api.example.com/...')
21
- * .oauth(tokens)
22
- * .build();
23
- * ```
24
- */
25
- export class IssuerEventsClient {
26
-
27
- constructor(
28
- /** The axios instance — OAuth interceptors and any customizations already applied. */
29
- readonly http: AxiosInstance,
30
- /** The module configuration — base path applied. */
31
- readonly configuration: Configuration,
32
- ) {}
33
-
34
- /** Build any API in this module bound to this client (for APIs without a named getter). */
35
- api<T>(factory: (configuration: Configuration, http: AxiosInstance) => T): T {
36
- return factory(this.configuration, this.http);
37
- }
38
-
39
- /** {@link IssuerEventWebhooksApi} bound to this client. */
40
- issuerEventWebhooksApi(): IssuerEventWebhooksApi {
41
- return new IssuerEventWebhooksApi(this.configuration, undefined, this.http);
42
- }
43
-
44
- static builder(): IssuerEventsClientBuilder {
45
- return new IssuerEventsClientBuilder();
46
- }
47
- }
48
-
49
- /** Builds a {@link IssuerEventsClient}: base URL + optional OAuth + transport customization. */
50
- export class IssuerEventsClientBuilder {
51
-
52
- private _baseUrl?: string;
53
- private _tokens?: OAuthClientCredentialsManager;
54
- private _customizers: Array<(http: AxiosInstance) => void> = [];
55
-
56
- /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
57
- baseUrl(baseUrl: string): this {
58
- this._baseUrl = baseUrl;
59
- return this;
60
- }
61
-
62
- /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
63
- oauth(tokens: OAuthClientCredentialsManager): this {
64
- this._tokens = tokens;
65
- return this;
66
- }
67
-
68
- /**
69
- * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
70
- * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
71
- * calls run in order.
72
- */
73
- configure(customizer: (http: AxiosInstance) => void): this {
74
- this._customizers.push(customizer);
75
- return this;
76
- }
77
-
78
- build(): IssuerEventsClient {
79
- const http = this._tokens ? createOAuthAxios(this._tokens) : globalAxios.create();
80
- for (const customizer of this._customizers) {
81
- customizer(http);
82
- }
83
- const configuration = new Configuration({ basePath: this._baseUrl });
84
- return new IssuerEventsClient(http, configuration);
85
- }
86
- }