@mojaloop/api-snippets 12.6.7 → 12.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,11 +1,4 @@
1
1
  # Changelog: [mojaloop/api-snippets](https://github.com/mojaloop/api-snippets)
2
- ### [12.6.7](https://github.com/mojaloop/api-snippets/compare/v12.6.6...v12.6.7) (2021-09-22)
3
-
4
-
5
- ### Maintenance
6
-
7
- * **deps:** bump tmpl from 1.0.4 to 1.0.5 ([#109](https://github.com/mojaloop/api-snippets/issues/109)) ([314cc5c](https://github.com/mojaloop/api-snippets/commit/314cc5c3231cc8eb4ae3b1efa8c6f90abc1f6b27))
8
-
9
2
  ### [12.6.6](https://github.com/mojaloop/api-snippets/compare/v12.6.5...v12.6.6) (2021-08-26)
10
3
 
11
4
 
@@ -8230,18 +8230,17 @@ paths:
8230
8230
  - sampled
8231
8231
  operationId: PutThirdpartyRequestsVerificationsById
8232
8232
  summary: PutThirdpartyRequestsVerificationsById
8233
- description: >
8233
+ description: >-
8234
8234
  The HTTP request `PUT /thirdpartyRequests/verifications/{ID}` is used by
8235
- the Auth-Service to inform
8236
-
8237
- the DFSP of a successful result in validating the verification of a
8238
- Thirdparty Transaction Request.
8235
+ the Auth-Service to inform the DFSP of a successful result in validating
8236
+ the verification of a Thirdparty Transaction Request.
8239
8237
 
8238
+ If the validation fails, the auth-service will send back `PUT
8239
+ /thirdpartyRequests/verifications/{ID}` with `authenticationResponse:
8240
+ 'REJECTED'`.
8240
8241
 
8241
- If the validation fails, The Auth-Service MUST use `PUT
8242
- /thirdpartyRequests/verifications/{ID}/error`
8243
-
8244
- instead.
8242
+ In unplanned error cases the Auth-Service MUST use `PUT
8243
+ /thirdpartyRequests/verifications/{ID}/error`.
8245
8244
  parameters:
8246
8245
  - name: Content-Length
8247
8246
  in: header
@@ -8265,13 +8264,21 @@ paths:
8265
8264
  description: >-
8266
8265
  The object sent in the PUT
8267
8266
  /thirdpartyRequests/verifications/{ID} request.
8268
- properties: &ref_162
8267
+ properties: &ref_163
8269
8268
  authenticationResponse:
8269
+ title: AuthenticationResponse
8270
8270
  type: string
8271
- enum:
8271
+ enum: &ref_162
8272
8272
  - VERIFIED
8273
- description: The verification passed
8274
- required: &ref_163
8273
+ - REJECTED
8274
+ description: >-
8275
+ Below are the allowed values for the enumeration
8276
+ AuthenticationResponse.
8277
+
8278
+ - VERIFIED - The challenge was correctly signed.
8279
+
8280
+ - REJECTED - The challenge was not correctly signed.
8281
+ required: &ref_164
8275
8282
  - authenticationResponse
8276
8283
  example:
8277
8284
  authenticationResponse: VERIFIED
@@ -9548,14 +9555,22 @@ components:
9548
9555
  description: The object sent in the POST /thirdpartyRequests/verifications request.
9549
9556
  properties: *ref_160
9550
9557
  required: *ref_161
9558
+ AuthenticationResponse:
9559
+ title: AuthenticationResponse
9560
+ type: string
9561
+ enum: *ref_162
9562
+ description: |-
9563
+ Below are the allowed values for the enumeration AuthenticationResponse.
9564
+ - VERIFIED - The challenge was correctly signed.
9565
+ - REJECTED - The challenge was not correctly signed.
9551
9566
  ThirdpartyRequestsVerificationsIDPutResponse:
9552
9567
  title: ThirdpartyRequestsVerificationsIDPutResponse
9553
9568
  type: object
9554
9569
  description: >-
9555
9570
  The object sent in the PUT /thirdpartyRequests/verifications/{ID}
9556
9571
  request.
9557
- properties: *ref_162
9558
- required: *ref_163
9572
+ properties: *ref_163
9573
+ required: *ref_164
9559
9574
  parameters:
9560
9575
  ID:
9561
9576
  name: ID
@@ -6,6 +6,7 @@ export declare namespace Schemas {
6
6
  type AccountsIDPutResponse = components['schemas']['AccountsIDPutResponse'];
7
7
  type Amount = components['schemas']['Amount'];
8
8
  type AmountType = components['schemas']['AmountType'];
9
+ type AuthenticationResponse = components['schemas']['AuthenticationResponse'];
9
10
  type AuthenticationType = components['schemas']['AuthenticationType'];
10
11
  type AuthorizationChannelType = components['schemas']['AuthorizationChannelType'];
11
12
  type AuthorizationResponseType = components['schemas']['AuthorizationResponseType'];
@@ -17872,11 +17872,9 @@ export interface operations {
17872
17872
  };
17873
17873
  };
17874
17874
  /**
17875
- * The HTTP request `PUT /thirdpartyRequests/verifications/{ID}` is used by the Auth-Service to inform
17876
- * the DFSP of a successful result in validating the verification of a Thirdparty Transaction Request.
17877
- *
17878
- * If the validation fails, The Auth-Service MUST use `PUT /thirdpartyRequests/verifications/{ID}/error`
17879
- * instead.
17875
+ * The HTTP request `PUT /thirdpartyRequests/verifications/{ID}` is used by the Auth-Service to inform the DFSP of a successful result in validating the verification of a Thirdparty Transaction Request.
17876
+ * If the validation fails, the auth-service will send back `PUT /thirdpartyRequests/verifications/{ID}` with `authenticationResponse: 'REJECTED'`.
17877
+ * In unplanned error cases the Auth-Service MUST use `PUT /thirdpartyRequests/verifications/{ID}/error`.
17880
17878
  */
17881
17879
  PutThirdpartyRequestsVerificationsById: {
17882
17880
  parameters: {
@@ -17892,9 +17890,11 @@ export interface operations {
17892
17890
  requestBody: {
17893
17891
  "application/json": {
17894
17892
  /**
17895
- * The verification passed
17893
+ * Below are the allowed values for the enumeration AuthenticationResponse.
17894
+ * - VERIFIED - The challenge was correctly signed.
17895
+ * - REJECTED - The challenge was not correctly signed.
17896
17896
  */
17897
- authenticationResponse: "VERIFIED";
17897
+ authenticationResponse: "VERIFIED" | "REJECTED";
17898
17898
  };
17899
17899
  };
17900
17900
  responses: {
@@ -22133,14 +22133,22 @@ export interface components {
22133
22133
  */
22134
22134
  signedPayload: string;
22135
22135
  };
22136
+ /**
22137
+ * Below are the allowed values for the enumeration AuthenticationResponse.
22138
+ * - VERIFIED - The challenge was correctly signed.
22139
+ * - REJECTED - The challenge was not correctly signed.
22140
+ */
22141
+ AuthenticationResponse: "VERIFIED" | "REJECTED";
22136
22142
  /**
22137
22143
  * The object sent in the PUT /thirdpartyRequests/verifications/{ID} request.
22138
22144
  */
22139
22145
  ThirdpartyRequestsVerificationsIDPutResponse: {
22140
22146
  /**
22141
- * The verification passed
22147
+ * Below are the allowed values for the enumeration AuthenticationResponse.
22148
+ * - VERIFIED - The challenge was correctly signed.
22149
+ * - REJECTED - The challenge was not correctly signed.
22142
22150
  */
22143
- authenticationResponse: "VERIFIED";
22151
+ authenticationResponse: "VERIFIED" | "REJECTED";
22144
22152
  };
22145
22153
  };
22146
22154
  responses: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/api-snippets",
3
- "version": "12.6.7",
3
+ "version": "12.6.8",
4
4
  "description": "Mojaloop API specification reusable snippets",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -0,0 +1,9 @@
1
+ title: AuthenticationResponse
2
+ type: string
3
+ enum:
4
+ - VERIFIED
5
+ - REJECTED
6
+ description: |-
7
+ Below are the allowed values for the enumeration AuthenticationResponse.
8
+ - VERIFIED - The challenge was correctly signed.
9
+ - REJECTED - The challenge was not correctly signed.
@@ -3,10 +3,6 @@ type: object
3
3
  description: The object sent in the PUT /thirdpartyRequests/verifications/{ID} request.
4
4
  properties:
5
5
  authenticationResponse:
6
- type: string
7
- enum:
8
- - VERIFIED
9
- description: 'The verification passed'
6
+ $ref: ./AuthenticationResponse.yaml
10
7
  required:
11
8
  - authenticationResponse
12
-
@@ -17,12 +17,14 @@ put:
17
17
  - sampled
18
18
  operationId: PutThirdpartyRequestsVerificationsById
19
19
  summary: PutThirdpartyRequestsVerificationsById
20
- description: |
20
+ description: >-
21
21
  The HTTP request `PUT /thirdpartyRequests/verifications/{ID}` is used by the Auth-Service to inform
22
22
  the DFSP of a successful result in validating the verification of a Thirdparty Transaction Request.
23
23
 
24
- If the validation fails, The Auth-Service MUST use `PUT /thirdpartyRequests/verifications/{ID}/error`
25
- instead.
24
+ If the validation fails, the auth-service will send back `PUT /thirdpartyRequests/verifications/{ID}`
25
+ with `authenticationResponse: 'REJECTED'`.
26
+
27
+ In unplanned error cases the Auth-Service MUST use `PUT /thirdpartyRequests/verifications/{ID}/error`.
26
28
  parameters:
27
29
  - $ref: ../components/parameters/Content-Length.yaml
28
30
  requestBody: