@enfuce/nextgen-sdk 0.0.7 → 0.0.9

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 (107) hide show
  1. package/README.md +209 -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/card/client.d.ts +2 -2
  8. package/dist/cardholder/api.js +5 -5
  9. package/dist/cardholder/client.d.ts +2 -2
  10. package/dist/cards/client.d.ts +2 -2
  11. package/dist/esm/authorisation-control/api.d.ts +0 -56
  12. package/dist/esm/authorisation-control/api.js +0 -110
  13. package/dist/esm/authorisation-control/index.d.ts +0 -1
  14. package/dist/esm/authorisation-control/index.js +0 -1
  15. package/dist/esm/card/api.js +12 -12
  16. package/dist/esm/card/client.d.ts +2 -2
  17. package/dist/esm/cardholder/api.js +5 -5
  18. package/dist/esm/cardholder/client.d.ts +2 -2
  19. package/dist/esm/cards/client.d.ts +2 -2
  20. package/dist/esm/exchange-rate/client.d.ts +2 -2
  21. package/dist/esm/issuer-events/api.d.ts +0 -120
  22. package/dist/esm/issuer-events/api.js +0 -241
  23. package/dist/esm/issuer-events/index.d.ts +0 -1
  24. package/dist/esm/issuer-events/index.js +0 -1
  25. package/dist/esm/oauth/axios.d.ts +3 -3
  26. package/dist/esm/oauth/axios.js +1 -1
  27. package/dist/esm/oauth/clientCredentials.d.ts +31 -3
  28. package/dist/esm/oauth/clientCredentials.js +59 -4
  29. package/dist/esm/oauth/index.d.ts +2 -2
  30. package/dist/esm/oauth/index.js +2 -2
  31. package/dist/esm/oauth/tokenManager.d.ts +2 -2
  32. package/dist/esm/oauth/tokenManager.js +2 -2
  33. package/dist/esm/pin/api.d.ts +52 -0
  34. package/dist/esm/pin/api.js +80 -3
  35. package/dist/esm/pin/client.d.ts +2 -2
  36. package/dist/esm/threeds/client.d.ts +2 -2
  37. package/dist/esm/threeds-oob/api.d.ts +0 -56
  38. package/dist/esm/threeds-oob/api.js +0 -112
  39. package/dist/esm/threeds-oob/index.d.ts +0 -1
  40. package/dist/esm/threeds-oob/index.js +0 -1
  41. package/dist/esm/wallet/api.js +12 -12
  42. package/dist/esm/wallet/client.d.ts +2 -2
  43. package/dist/exchange-rate/client.d.ts +2 -2
  44. package/dist/issuer-events/api.d.ts +0 -120
  45. package/dist/issuer-events/api.js +1 -246
  46. package/dist/issuer-events/index.d.ts +0 -1
  47. package/dist/issuer-events/index.js +0 -1
  48. package/dist/oauth/axios.d.ts +3 -3
  49. package/dist/oauth/axios.js +1 -1
  50. package/dist/oauth/clientCredentials.d.ts +31 -3
  51. package/dist/oauth/clientCredentials.js +60 -3
  52. package/dist/oauth/index.d.ts +2 -2
  53. package/dist/oauth/index.js +4 -2
  54. package/dist/oauth/tokenManager.d.ts +2 -2
  55. package/dist/oauth/tokenManager.js +4 -4
  56. package/dist/pin/api.d.ts +52 -0
  57. package/dist/pin/api.js +80 -3
  58. package/dist/pin/client.d.ts +2 -2
  59. package/dist/threeds/client.d.ts +2 -2
  60. package/dist/threeds-oob/api.d.ts +0 -56
  61. package/dist/threeds-oob/api.js +1 -117
  62. package/dist/threeds-oob/index.d.ts +0 -1
  63. package/dist/threeds-oob/index.js +0 -1
  64. package/dist/wallet/api.js +12 -12
  65. package/dist/wallet/client.d.ts +2 -2
  66. package/package.json +1 -1
  67. package/src/authorisation-control/api.ts +0 -102
  68. package/src/authorisation-control/index.ts +0 -2
  69. package/src/card/api.ts +12 -12
  70. package/src/card/client.ts +3 -3
  71. package/src/cardholder/api.ts +5 -5
  72. package/src/cardholder/client.ts +3 -3
  73. package/src/cards/client.ts +3 -3
  74. package/src/exchange-rate/client.ts +3 -3
  75. package/src/issuer-events/api.ts +0 -237
  76. package/src/issuer-events/index.ts +0 -2
  77. package/src/oauth/axios.ts +3 -3
  78. package/src/oauth/clientCredentials.ts +87 -4
  79. package/src/oauth/index.ts +9 -2
  80. package/src/oauth/tokenManager.ts +2 -2
  81. package/src/pin/api.ts +99 -3
  82. package/src/pin/client.ts +3 -3
  83. package/src/threeds/client.ts +3 -3
  84. package/src/threeds-oob/api.ts +0 -105
  85. package/src/threeds-oob/index.ts +0 -2
  86. package/src/wallet/api.ts +12 -12
  87. package/src/wallet/client.ts +3 -3
  88. package/test/clientCredentials.test.ts +20 -0
  89. package/test/oauth.test.ts +12 -12
  90. package/dist/authorisation-control/client.d.ts +0 -47
  91. package/dist/authorisation-control/client.js +0 -80
  92. package/dist/esm/authorisation-control/client.d.ts +0 -47
  93. package/dist/esm/authorisation-control/client.js +0 -75
  94. package/dist/esm/issuer-events/client.d.ts +0 -47
  95. package/dist/esm/issuer-events/client.js +0 -75
  96. package/dist/esm/threeds-oob/client.d.ts +0 -47
  97. package/dist/esm/threeds-oob/client.js +0 -75
  98. package/dist/issuer-events/client.d.ts +0 -47
  99. package/dist/issuer-events/client.js +0 -80
  100. package/dist/threeds-oob/client.d.ts +0 -47
  101. package/dist/threeds-oob/client.js +0 -80
  102. package/src/authorisation-control/client.ts +0 -86
  103. package/src/issuer-events/client.ts +0 -86
  104. package/src/threeds-oob/client.ts +0 -86
  105. package/test/authorisation-control.test.ts +0 -71
  106. package/test/issuer-events.test.ts +0 -55
  107. package/test/threeds-oob.test.ts +0 -90
@@ -31,6 +31,44 @@ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
31
31
  */
32
32
  export const PINOperationsUsingPKIApiAxiosParamCreator = function (configuration) {
33
33
  return {
34
+ /**
35
+ * Send a request to this endpoint to generate a temporary Terminal Zone PIN Key (TZPK) for Set PIN or Change PIN flows. The TZPK is encrypted with the provided ephemeral RSA 2048 bit public key and returned as a base64 encoded value.
36
+ * @summary Generate Set/Change PIN TZPK
37
+ * @param {SetPinTzpkRequestBody} setPinTzpkRequestBody Request payload for generating a temporary PIN encryption key.
38
+ * @param {string} [xAuditUser] Optional audit user header
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ setPinTzpk: (setPinTzpkRequestBody_1, xAuditUser_1, ...args_1) => __awaiter(this, [setPinTzpkRequestBody_1, xAuditUser_1, ...args_1], void 0, function* (setPinTzpkRequestBody, xAuditUser, options = {}) {
43
+ // verify required parameter 'setPinTzpkRequestBody' is not null or undefined
44
+ assertParamExists('setPinTzpk', 'setPinTzpkRequestBody', setPinTzpkRequestBody);
45
+ const localVarPath = `/v1/pin/pki/set/tzpk`;
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication bearerAuth required
56
+ // http bearer authentication required
57
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ localVarHeaderParameter['Content-Type'] = 'application/json';
59
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
60
+ if (xAuditUser != null) {
61
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
62
+ }
63
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
64
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
66
+ localVarRequestOptions.data = serializeDataIfNeeded(setPinTzpkRequestBody, localVarRequestOptions, configuration);
67
+ return {
68
+ url: toPathString(localVarUrlObj),
69
+ options: localVarRequestOptions,
70
+ };
71
+ }),
34
72
  /**
35
73
  * Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
36
74
  * @summary Retrieve Encrypted PIN
@@ -56,7 +94,7 @@ export const PINOperationsUsingPKIApiAxiosParamCreator = function (configuration
56
94
  // http bearer authentication required
57
95
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
96
  localVarHeaderParameter['Content-Type'] = 'application/json';
59
- localVarHeaderParameter['Accept'] = 'application/json';
97
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
60
98
  if (xAuditUser != null) {
61
99
  localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
62
100
  }
@@ -77,6 +115,23 @@ export const PINOperationsUsingPKIApiAxiosParamCreator = function (configuration
77
115
  export const PINOperationsUsingPKIApiFp = function (configuration) {
78
116
  const localVarAxiosParamCreator = PINOperationsUsingPKIApiAxiosParamCreator(configuration);
79
117
  return {
118
+ /**
119
+ * Send a request to this endpoint to generate a temporary Terminal Zone PIN Key (TZPK) for Set PIN or Change PIN flows. The TZPK is encrypted with the provided ephemeral RSA 2048 bit public key and returned as a base64 encoded value.
120
+ * @summary Generate Set/Change PIN TZPK
121
+ * @param {SetPinTzpkRequestBody} setPinTzpkRequestBody Request payload for generating a temporary PIN encryption key.
122
+ * @param {string} [xAuditUser] Optional audit user header
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ setPinTzpk(setPinTzpkRequestBody, xAuditUser, options) {
127
+ return __awaiter(this, void 0, void 0, function* () {
128
+ var _a, _b, _c;
129
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setPinTzpk(setPinTzpkRequestBody, xAuditUser, options);
130
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
131
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PINOperationsUsingPKIApi.setPinTzpk']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
132
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
133
+ });
134
+ },
80
135
  /**
81
136
  * Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
82
137
  * @summary Retrieve Encrypted PIN
@@ -102,6 +157,17 @@ export const PINOperationsUsingPKIApiFp = function (configuration) {
102
157
  export const PINOperationsUsingPKIApiFactory = function (configuration, basePath, axios) {
103
158
  const localVarFp = PINOperationsUsingPKIApiFp(configuration);
104
159
  return {
160
+ /**
161
+ * Send a request to this endpoint to generate a temporary Terminal Zone PIN Key (TZPK) for Set PIN or Change PIN flows. The TZPK is encrypted with the provided ephemeral RSA 2048 bit public key and returned as a base64 encoded value.
162
+ * @summary Generate Set/Change PIN TZPK
163
+ * @param {SetPinTzpkRequestBody} setPinTzpkRequestBody Request payload for generating a temporary PIN encryption key.
164
+ * @param {string} [xAuditUser] Optional audit user header
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ setPinTzpk(setPinTzpkRequestBody, xAuditUser, options) {
169
+ return localVarFp.setPinTzpk(setPinTzpkRequestBody, xAuditUser, options).then((request) => request(axios, basePath));
170
+ },
105
171
  /**
106
172
  * Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
107
173
  * @summary Retrieve Encrypted PIN
@@ -119,6 +185,17 @@ export const PINOperationsUsingPKIApiFactory = function (configuration, basePath
119
185
  * PINOperationsUsingPKIApi - object-oriented interface
120
186
  */
121
187
  export class PINOperationsUsingPKIApi extends BaseAPI {
188
+ /**
189
+ * Send a request to this endpoint to generate a temporary Terminal Zone PIN Key (TZPK) for Set PIN or Change PIN flows. The TZPK is encrypted with the provided ephemeral RSA 2048 bit public key and returned as a base64 encoded value.
190
+ * @summary Generate Set/Change PIN TZPK
191
+ * @param {SetPinTzpkRequestBody} setPinTzpkRequestBody Request payload for generating a temporary PIN encryption key.
192
+ * @param {string} [xAuditUser] Optional audit user header
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ setPinTzpk(setPinTzpkRequestBody, xAuditUser, options) {
197
+ return PINOperationsUsingPKIApiFp(this.configuration).setPinTzpk(setPinTzpkRequestBody, xAuditUser, options).then((request) => request(this.axios, this.basePath));
198
+ }
122
199
  /**
123
200
  * Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
124
201
  * @summary Retrieve Encrypted PIN
@@ -162,7 +239,7 @@ export const PINOperationsWithPreSharedKeyApiAxiosParamCreator = function (confi
162
239
  // http bearer authentication required
163
240
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
164
241
  localVarHeaderParameter['Content-Type'] = 'application/json';
165
- localVarHeaderParameter['Accept'] = 'application/json';
242
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
166
243
  if (xIdempotencyKey != null) {
167
244
  localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
168
245
  }
@@ -204,7 +281,7 @@ export const PINOperationsWithPreSharedKeyApiAxiosParamCreator = function (confi
204
281
  // http bearer authentication required
205
282
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
206
283
  localVarHeaderParameter['Content-Type'] = 'application/json';
207
- localVarHeaderParameter['Accept'] = 'application/json';
284
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
208
285
  if (xIdempotencyKey != null) {
209
286
  localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
210
287
  }
@@ -1,5 +1,5 @@
1
1
  import { type AxiosInstance } from 'axios';
2
- import { type TokenManager } from '../oauth';
2
+ import { type OAuthClientCredentialsManager } from '../oauth';
3
3
  import { Configuration } from './configuration';
4
4
  import { PINOperationsUsingPKIApi, PINOperationsWithPreSharedKeyApi } from './api';
5
5
  /**
@@ -38,7 +38,7 @@ export declare class PinClientBuilder {
38
38
  /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
39
39
  baseUrl(baseUrl: string): this;
40
40
  /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
41
- oauth(tokens: TokenManager): this;
41
+ oauth(tokens: OAuthClientCredentialsManager): this;
42
42
  /**
43
43
  * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
44
44
  * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
@@ -1,5 +1,5 @@
1
1
  import { type AxiosInstance } from 'axios';
2
- import { type TokenManager } from '../oauth';
2
+ import { type OAuthClientCredentialsManager } from '../oauth';
3
3
  import { Configuration } from './configuration';
4
4
  import { ThreeDSApi } from './api';
5
5
  /**
@@ -36,7 +36,7 @@ export declare class ThreedsClientBuilder {
36
36
  /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
37
37
  baseUrl(baseUrl: string): this;
38
38
  /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
39
- oauth(tokens: TokenManager): this;
39
+ oauth(tokens: OAuthClientCredentialsManager): this;
40
40
  /**
41
41
  * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
42
42
  * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
@@ -9,10 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Configuration } from './configuration';
13
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
- import type { RequestArgs } from './base';
15
- import { BaseAPI } from './base';
16
12
  export interface InitiateAuthenticationChallengeBody {
17
13
  /**
18
14
  * Unique identifier of the authentication request.
@@ -97,55 +93,3 @@ export declare const ThreeDsTransactionDeviceChannelEnum: {
97
93
  readonly RequestorInitiated: "REQUESTOR_INITIATED";
98
94
  };
99
95
  export type ThreeDsTransactionDeviceChannelEnum = typeof ThreeDsTransactionDeviceChannelEnum[keyof typeof ThreeDsTransactionDeviceChannelEnum];
100
- /**
101
- * OOBAuthenticationChallengeWebhookNotificationApi - axios parameter creator
102
- */
103
- export declare const OOBAuthenticationChallengeWebhookNotificationApiAxiosParamCreator: (configuration?: Configuration) => {
104
- /**
105
- * In Out-of-Band (OOB) authentication flow, Enfuce sends an authentication challenge webhook notification to the issuer\'s registered endpoint for cardholder\'s approval.
106
- * @summary Initiate OOB Authentication Challenge
107
- * @param {InitiateAuthenticationChallengeBody} initiateAuthenticationChallengeBody
108
- * @param {*} [options] Override http request option.
109
- * @throws {RequiredError}
110
- */
111
- initiateAuthenticationChallenge: (initiateAuthenticationChallengeBody: InitiateAuthenticationChallengeBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
112
- };
113
- /**
114
- * OOBAuthenticationChallengeWebhookNotificationApi - functional programming interface
115
- */
116
- export declare const OOBAuthenticationChallengeWebhookNotificationApiFp: (configuration?: Configuration) => {
117
- /**
118
- * In Out-of-Band (OOB) authentication flow, Enfuce sends an authentication challenge webhook notification to the issuer\'s registered endpoint for cardholder\'s approval.
119
- * @summary Initiate OOB Authentication Challenge
120
- * @param {InitiateAuthenticationChallengeBody} initiateAuthenticationChallengeBody
121
- * @param {*} [options] Override http request option.
122
- * @throws {RequiredError}
123
- */
124
- initiateAuthenticationChallenge(initiateAuthenticationChallengeBody: InitiateAuthenticationChallengeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
125
- };
126
- /**
127
- * OOBAuthenticationChallengeWebhookNotificationApi - factory interface
128
- */
129
- export declare const OOBAuthenticationChallengeWebhookNotificationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
130
- /**
131
- * In Out-of-Band (OOB) authentication flow, Enfuce sends an authentication challenge webhook notification to the issuer\'s registered endpoint for cardholder\'s approval.
132
- * @summary Initiate OOB Authentication Challenge
133
- * @param {InitiateAuthenticationChallengeBody} initiateAuthenticationChallengeBody
134
- * @param {*} [options] Override http request option.
135
- * @throws {RequiredError}
136
- */
137
- initiateAuthenticationChallenge(initiateAuthenticationChallengeBody: InitiateAuthenticationChallengeBody, options?: RawAxiosRequestConfig): AxiosPromise<void>;
138
- };
139
- /**
140
- * OOBAuthenticationChallengeWebhookNotificationApi - object-oriented interface
141
- */
142
- export declare class OOBAuthenticationChallengeWebhookNotificationApi extends BaseAPI {
143
- /**
144
- * In Out-of-Band (OOB) authentication flow, Enfuce sends an authentication challenge webhook notification to the issuer\'s registered endpoint for cardholder\'s approval.
145
- * @summary Initiate OOB Authentication Challenge
146
- * @param {InitiateAuthenticationChallengeBody} initiateAuthenticationChallengeBody
147
- * @param {*} [options] Override http request option.
148
- * @throws {RequiredError}
149
- */
150
- initiateAuthenticationChallenge(initiateAuthenticationChallengeBody: InitiateAuthenticationChallengeBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
151
- }
@@ -11,21 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- import globalAxios from 'axios';
24
- // Some imports not used depending on template conditions
25
- // @ts-ignore
26
- import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
- // @ts-ignore
28
- import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
14
  export const ThreeDsTransactionCategoryEnum = {
30
15
  Payment: 'PAYMENT',
31
16
  NonPayment: 'NON_PAYMENT',
@@ -35,100 +20,3 @@ export const ThreeDsTransactionDeviceChannelEnum = {
35
20
  Browser: 'BROWSER',
36
21
  RequestorInitiated: 'REQUESTOR_INITIATED',
37
22
  };
38
- /**
39
- * OOBAuthenticationChallengeWebhookNotificationApi - axios parameter creator
40
- */
41
- export const OOBAuthenticationChallengeWebhookNotificationApiAxiosParamCreator = function (configuration) {
42
- return {
43
- /**
44
- * In Out-of-Band (OOB) authentication flow, Enfuce sends an authentication challenge webhook notification to the issuer\'s registered endpoint for cardholder\'s approval.
45
- * @summary Initiate OOB Authentication Challenge
46
- * @param {InitiateAuthenticationChallengeBody} initiateAuthenticationChallengeBody
47
- * @param {*} [options] Override http request option.
48
- * @throws {RequiredError}
49
- */
50
- initiateAuthenticationChallenge: (initiateAuthenticationChallengeBody_1, ...args_1) => __awaiter(this, [initiateAuthenticationChallengeBody_1, ...args_1], void 0, function* (initiateAuthenticationChallengeBody, options = {}) {
51
- // verify required parameter 'initiateAuthenticationChallengeBody' is not null or undefined
52
- assertParamExists('initiateAuthenticationChallenge', 'initiateAuthenticationChallengeBody', initiateAuthenticationChallengeBody);
53
- const localVarPath = `/v1/3ds/oob/challenge/initiate`;
54
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56
- let baseOptions;
57
- if (configuration) {
58
- baseOptions = configuration.baseOptions;
59
- }
60
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
61
- const localVarHeaderParameter = {};
62
- const localVarQueryParameter = {};
63
- // authentication basicAuth required
64
- // http basic authentication required
65
- setBasicAuthToObject(localVarRequestOptions, configuration);
66
- localVarHeaderParameter['Content-Type'] = 'application/json';
67
- setSearchParams(localVarUrlObj, localVarQueryParameter);
68
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
69
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
70
- localVarRequestOptions.data = serializeDataIfNeeded(initiateAuthenticationChallengeBody, localVarRequestOptions, configuration);
71
- return {
72
- url: toPathString(localVarUrlObj),
73
- options: localVarRequestOptions,
74
- };
75
- }),
76
- };
77
- };
78
- /**
79
- * OOBAuthenticationChallengeWebhookNotificationApi - functional programming interface
80
- */
81
- export const OOBAuthenticationChallengeWebhookNotificationApiFp = function (configuration) {
82
- const localVarAxiosParamCreator = OOBAuthenticationChallengeWebhookNotificationApiAxiosParamCreator(configuration);
83
- return {
84
- /**
85
- * In Out-of-Band (OOB) authentication flow, Enfuce sends an authentication challenge webhook notification to the issuer\'s registered endpoint for cardholder\'s approval.
86
- * @summary Initiate OOB Authentication Challenge
87
- * @param {InitiateAuthenticationChallengeBody} initiateAuthenticationChallengeBody
88
- * @param {*} [options] Override http request option.
89
- * @throws {RequiredError}
90
- */
91
- initiateAuthenticationChallenge(initiateAuthenticationChallengeBody, options) {
92
- return __awaiter(this, void 0, void 0, function* () {
93
- var _a, _b, _c;
94
- const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateAuthenticationChallenge(initiateAuthenticationChallengeBody, options);
95
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
96
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OOBAuthenticationChallengeWebhookNotificationApi.initiateAuthenticationChallenge']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
97
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
98
- });
99
- },
100
- };
101
- };
102
- /**
103
- * OOBAuthenticationChallengeWebhookNotificationApi - factory interface
104
- */
105
- export const OOBAuthenticationChallengeWebhookNotificationApiFactory = function (configuration, basePath, axios) {
106
- const localVarFp = OOBAuthenticationChallengeWebhookNotificationApiFp(configuration);
107
- return {
108
- /**
109
- * In Out-of-Band (OOB) authentication flow, Enfuce sends an authentication challenge webhook notification to the issuer\'s registered endpoint for cardholder\'s approval.
110
- * @summary Initiate OOB Authentication Challenge
111
- * @param {InitiateAuthenticationChallengeBody} initiateAuthenticationChallengeBody
112
- * @param {*} [options] Override http request option.
113
- * @throws {RequiredError}
114
- */
115
- initiateAuthenticationChallenge(initiateAuthenticationChallengeBody, options) {
116
- return localVarFp.initiateAuthenticationChallenge(initiateAuthenticationChallengeBody, options).then((request) => request(axios, basePath));
117
- },
118
- };
119
- };
120
- /**
121
- * OOBAuthenticationChallengeWebhookNotificationApi - object-oriented interface
122
- */
123
- export class OOBAuthenticationChallengeWebhookNotificationApi extends BaseAPI {
124
- /**
125
- * In Out-of-Band (OOB) authentication flow, Enfuce sends an authentication challenge webhook notification to the issuer\'s registered endpoint for cardholder\'s approval.
126
- * @summary Initiate OOB Authentication Challenge
127
- * @param {InitiateAuthenticationChallengeBody} initiateAuthenticationChallengeBody
128
- * @param {*} [options] Override http request option.
129
- * @throws {RequiredError}
130
- */
131
- initiateAuthenticationChallenge(initiateAuthenticationChallengeBody, options) {
132
- return OOBAuthenticationChallengeWebhookNotificationApiFp(this.configuration).initiateAuthenticationChallenge(initiateAuthenticationChallengeBody, options).then((request) => request(this.axios, this.basePath));
133
- }
134
- }
@@ -11,4 +11,3 @@
11
11
  */
12
12
  export * from "./api";
13
13
  export * from "./configuration";
14
- export * from './client';
@@ -13,4 +13,3 @@
13
13
  */
14
14
  export * from "./api";
15
15
  export * from "./configuration";
16
- export * from './client';
@@ -104,7 +104,7 @@ export const ActivateTokenApiAxiosParamCreator = function (configuration) {
104
104
  // authentication bearerAuth required
105
105
  // http bearer authentication required
106
106
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
107
- localVarHeaderParameter['Accept'] = 'application/json';
107
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
108
108
  if (xAuditUser != null) {
109
109
  localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
110
110
  }
@@ -142,7 +142,7 @@ export const ActivateTokenApiAxiosParamCreator = function (configuration) {
142
142
  // authentication bearerAuth required
143
143
  // http bearer authentication required
144
144
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
145
- localVarHeaderParameter['Accept'] = 'application/json';
145
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
146
146
  if (xIdempotencyKey != null) {
147
147
  localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
148
148
  }
@@ -292,7 +292,7 @@ export const DeactivateTokenApiAxiosParamCreator = function (configuration) {
292
292
  // authentication bearerAuth required
293
293
  // http bearer authentication required
294
294
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
295
- localVarHeaderParameter['Accept'] = 'application/json';
295
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
296
296
  if (xIdempotencyKey != null) {
297
297
  localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
298
298
  }
@@ -400,7 +400,7 @@ export const EligibleTokenRequestorsApiAxiosParamCreator = function (configurati
400
400
  // http bearer authentication required
401
401
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
402
402
  localVarHeaderParameter['Content-Type'] = 'application/json';
403
- localVarHeaderParameter['Accept'] = 'application/json';
403
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
404
404
  if (xAuditUser != null) {
405
405
  localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
406
406
  }
@@ -513,7 +513,7 @@ export const GetTokensApiAxiosParamCreator = function (configuration) {
513
513
  if (includeCardSchemePayload !== undefined) {
514
514
  localVarQueryParameter['includeCardSchemePayload'] = includeCardSchemePayload;
515
515
  }
516
- localVarHeaderParameter['Accept'] = 'application/json';
516
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
517
517
  if (xAuditUser != null) {
518
518
  localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
519
519
  }
@@ -558,7 +558,7 @@ export const GetTokensApiAxiosParamCreator = function (configuration) {
558
558
  if (includeCardSchemePayload !== undefined) {
559
559
  localVarQueryParameter['includeCardSchemePayload'] = includeCardSchemePayload;
560
560
  }
561
- localVarHeaderParameter['Accept'] = 'application/json';
561
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
562
562
  if (xAuditUser != null) {
563
563
  localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
564
564
  }
@@ -713,7 +713,7 @@ export const PushCardsApiAxiosParamCreator = function (configuration) {
713
713
  // http bearer authentication required
714
714
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
715
715
  localVarHeaderParameter['Content-Type'] = 'application/json';
716
- localVarHeaderParameter['Accept'] = 'application/json';
716
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
717
717
  if (xAuditUser != null) {
718
718
  localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
719
719
  }
@@ -822,7 +822,7 @@ export const PushProvisionApiAxiosParamCreator = function (configuration) {
822
822
  // http bearer authentication required
823
823
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
824
824
  localVarHeaderParameter['Content-Type'] = 'application/json';
825
- localVarHeaderParameter['Accept'] = 'application/json';
825
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
826
826
  if (xAuditUser != null) {
827
827
  localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
828
828
  }
@@ -862,7 +862,7 @@ export const PushProvisionApiAxiosParamCreator = function (configuration) {
862
862
  // http bearer authentication required
863
863
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
864
864
  localVarHeaderParameter['Content-Type'] = 'application/json';
865
- localVarHeaderParameter['Accept'] = 'application/json';
865
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
866
866
  if (xAuditUser != null) {
867
867
  localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
868
868
  }
@@ -902,7 +902,7 @@ export const PushProvisionApiAxiosParamCreator = function (configuration) {
902
902
  // http bearer authentication required
903
903
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
904
904
  localVarHeaderParameter['Content-Type'] = 'application/json';
905
- localVarHeaderParameter['Accept'] = 'application/json';
905
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
906
906
  if (xAuditUser != null) {
907
907
  localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
908
908
  }
@@ -1095,7 +1095,7 @@ export const SuspendTokenApiAxiosParamCreator = function (configuration) {
1095
1095
  // authentication bearerAuth required
1096
1096
  // http bearer authentication required
1097
1097
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1098
- localVarHeaderParameter['Accept'] = 'application/json';
1098
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
1099
1099
  if (xIdempotencyKey != null) {
1100
1100
  localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
1101
1101
  }
@@ -1206,7 +1206,7 @@ export const UnsuspendTokenApiAxiosParamCreator = function (configuration) {
1206
1206
  // authentication bearerAuth required
1207
1207
  // http bearer authentication required
1208
1208
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1209
- localVarHeaderParameter['Accept'] = 'application/json';
1209
+ localVarHeaderParameter['Accept'] = 'application/json,application/problem+json';
1210
1210
  if (xIdempotencyKey != null) {
1211
1211
  localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
1212
1212
  }
@@ -1,5 +1,5 @@
1
1
  import { type AxiosInstance } from 'axios';
2
- import { type TokenManager } from '../oauth';
2
+ import { type OAuthClientCredentialsManager } from '../oauth';
3
3
  import { Configuration } from './configuration';
4
4
  import { ActivateTokenApi, DeactivateTokenApi, EligibleTokenRequestorsApi, GetTokensApi, PushCardsApi, PushProvisionApi, SuspendTokenApi, UnsuspendTokenApi } from './api';
5
5
  /**
@@ -50,7 +50,7 @@ export declare class WalletClientBuilder {
50
50
  /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
51
51
  baseUrl(baseUrl: string): this;
52
52
  /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
53
- oauth(tokens: TokenManager): this;
53
+ oauth(tokens: OAuthClientCredentialsManager): this;
54
54
  /**
55
55
  * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
56
56
  * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
@@ -1,5 +1,5 @@
1
1
  import { type AxiosInstance } from 'axios';
2
- import { type TokenManager } from '../oauth';
2
+ import { type OAuthClientCredentialsManager } from '../oauth';
3
3
  import { Configuration } from './configuration';
4
4
  import { GetECBExchangeRateApi, GetECBSupportedCurrenciesApi, GetFXExchangeRatesApi } from './api';
5
5
  /**
@@ -40,7 +40,7 @@ export declare class ExchangeRateClientBuilder {
40
40
  /** The module's host, e.g. `https://api.<tenant>.../issuer`. */
41
41
  baseUrl(baseUrl: string): this;
42
42
  /** Install OAuth: a fresh bearer token on every request + reactive 401 retry. */
43
- oauth(tokens: TokenManager): this;
43
+ oauth(tokens: OAuthClientCredentialsManager): this;
44
44
  /**
45
45
  * Customize the underlying axios instance — set a timeout (`http.defaults.timeout = ...`), a proxy,
46
46
  * default headers, extra interceptors, etc. Runs after OAuth is installed. Composable: multiple
@@ -9,10 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Configuration } from './configuration';
13
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
- import type { RequestArgs } from './base';
15
- import { BaseAPI } from './base';
16
12
  export interface Address {
17
13
  /**
18
14
  * First line of address.
@@ -1641,119 +1637,3 @@ export declare const TokenStatus: {
1641
1637
  readonly Suspended: "SUSPENDED";
1642
1638
  };
1643
1639
  export type TokenStatus = typeof TokenStatus[keyof typeof TokenStatus];
1644
- /**
1645
- * IssuerEventWebhooksApi - axios parameter creator
1646
- */
1647
- export declare const IssuerEventWebhooksApiAxiosParamCreator: (configuration?: Configuration) => {
1648
- /**
1649
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon card creation, update or closure.
1650
- * @summary Outgoing card event webhook endpoint
1651
- * @param {CardEvent} cardEvent Card event
1652
- * @param {*} [options] Override http request option.
1653
- * @throws {RequiredError}
1654
- */
1655
- cardEvent: (cardEvent: CardEvent, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1656
- /**
1657
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon cardholder creation or update.
1658
- * @summary Outgoing cardholder event webhook endpoint
1659
- * @param {CardholderEvent} cardholderEvent Cardholder event
1660
- * @param {*} [options] Override http request option.
1661
- * @throws {RequiredError}
1662
- */
1663
- cardholderEvent: (cardholderEvent: CardholderEvent, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1664
- /**
1665
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon token creation or update.
1666
- * @summary Outgoing token event webhook endpoint
1667
- * @param {TokenEvent} tokenEvent Token event
1668
- * @param {*} [options] Override http request option.
1669
- * @throws {RequiredError}
1670
- */
1671
- tokenEvent: (tokenEvent: TokenEvent, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1672
- };
1673
- /**
1674
- * IssuerEventWebhooksApi - functional programming interface
1675
- */
1676
- export declare const IssuerEventWebhooksApiFp: (configuration?: Configuration) => {
1677
- /**
1678
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon card creation, update or closure.
1679
- * @summary Outgoing card event webhook endpoint
1680
- * @param {CardEvent} cardEvent Card event
1681
- * @param {*} [options] Override http request option.
1682
- * @throws {RequiredError}
1683
- */
1684
- cardEvent(cardEvent: CardEvent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1685
- /**
1686
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon cardholder creation or update.
1687
- * @summary Outgoing cardholder event webhook endpoint
1688
- * @param {CardholderEvent} cardholderEvent Cardholder event
1689
- * @param {*} [options] Override http request option.
1690
- * @throws {RequiredError}
1691
- */
1692
- cardholderEvent(cardholderEvent: CardholderEvent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1693
- /**
1694
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon token creation or update.
1695
- * @summary Outgoing token event webhook endpoint
1696
- * @param {TokenEvent} tokenEvent Token event
1697
- * @param {*} [options] Override http request option.
1698
- * @throws {RequiredError}
1699
- */
1700
- tokenEvent(tokenEvent: TokenEvent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1701
- };
1702
- /**
1703
- * IssuerEventWebhooksApi - factory interface
1704
- */
1705
- export declare const IssuerEventWebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1706
- /**
1707
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon card creation, update or closure.
1708
- * @summary Outgoing card event webhook endpoint
1709
- * @param {CardEvent} cardEvent Card event
1710
- * @param {*} [options] Override http request option.
1711
- * @throws {RequiredError}
1712
- */
1713
- cardEvent(cardEvent: CardEvent, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1714
- /**
1715
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon cardholder creation or update.
1716
- * @summary Outgoing cardholder event webhook endpoint
1717
- * @param {CardholderEvent} cardholderEvent Cardholder event
1718
- * @param {*} [options] Override http request option.
1719
- * @throws {RequiredError}
1720
- */
1721
- cardholderEvent(cardholderEvent: CardholderEvent, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1722
- /**
1723
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon token creation or update.
1724
- * @summary Outgoing token event webhook endpoint
1725
- * @param {TokenEvent} tokenEvent Token event
1726
- * @param {*} [options] Override http request option.
1727
- * @throws {RequiredError}
1728
- */
1729
- tokenEvent(tokenEvent: TokenEvent, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1730
- };
1731
- /**
1732
- * IssuerEventWebhooksApi - object-oriented interface
1733
- */
1734
- export declare class IssuerEventWebhooksApi extends BaseAPI {
1735
- /**
1736
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon card creation, update or closure.
1737
- * @summary Outgoing card event webhook endpoint
1738
- * @param {CardEvent} cardEvent Card event
1739
- * @param {*} [options] Override http request option.
1740
- * @throws {RequiredError}
1741
- */
1742
- cardEvent(cardEvent: CardEvent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1743
- /**
1744
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon cardholder creation or update.
1745
- * @summary Outgoing cardholder event webhook endpoint
1746
- * @param {CardholderEvent} cardholderEvent Cardholder event
1747
- * @param {*} [options] Override http request option.
1748
- * @throws {RequiredError}
1749
- */
1750
- cardholderEvent(cardholderEvent: CardholderEvent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1751
- /**
1752
- * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon token creation or update.
1753
- * @summary Outgoing token event webhook endpoint
1754
- * @param {TokenEvent} tokenEvent Token event
1755
- * @param {*} [options] Override http request option.
1756
- * @throws {RequiredError}
1757
- */
1758
- tokenEvent(tokenEvent: TokenEvent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1759
- }