@mojaloop/api-snippets 13.0.3 → 13.0.6

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,4 +1,25 @@
1
1
  # Changelog: [mojaloop/api-snippets](https://github.com/mojaloop/api-snippets)
2
+ ### [13.0.6](https://github.com/mojaloop/api-snippets/compare/v13.0.5...v13.0.6) (2022-03-03)
3
+
4
+
5
+ ### Maintenance
6
+
7
+ * **deps:** bump hosted-git-info from 2.8.8 to 2.8.9 ([#121](https://github.com/mojaloop/api-snippets/issues/121)) ([e5c8460](https://github.com/mojaloop/api-snippets/commit/e5c84605ecb5753dcec3656325b9262c837a476e))
8
+
9
+ ### [13.0.5](https://github.com/mojaloop/api-snippets/compare/v13.0.4...v13.0.5) (2022-02-18)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * fix enumeration for authentication response ([#118](https://github.com/mojaloop/api-snippets/issues/118)) ([29e64f0](https://github.com/mojaloop/api-snippets/commit/29e64f07c3ac217e0676d5dd6e04bf4f13eab4c0))
15
+
16
+ ### [13.0.4](https://github.com/mojaloop/api-snippets/compare/v13.0.3...v13.0.4) (2021-11-03)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * invalid value string examples as numbers ([#117](https://github.com/mojaloop/api-snippets/issues/117)) ([46fc9ff](https://github.com/mojaloop/api-snippets/commit/46fc9ff058be60da1bd3325924e668a8a8c3853e))
22
+
2
23
  ### [13.0.3](https://github.com/mojaloop/api-snippets/compare/v13.0.2...v13.0.3) (2021-10-20)
3
24
 
4
25
 
@@ -2741,7 +2741,7 @@ components:
2741
2741
  amount:
2742
2742
  type: string
2743
2743
  description: Amount of money.
2744
- example: 123.45
2744
+ example: '123.45'
2745
2745
  fees:
2746
2746
  properties:
2747
2747
  currency:
@@ -2751,7 +2751,7 @@ components:
2751
2751
  amount:
2752
2752
  type: string
2753
2753
  description: Amount of money.
2754
- example: 1.45
2754
+ example: '1.45'
2755
2755
  transactionType:
2756
2756
  $ref: '#/components/schemas/TransactionType'
2757
2757
  description: Type of transaction that the quote is requested for.
@@ -3003,7 +3003,7 @@ components:
3003
3003
  amount:
3004
3004
  type: string
3005
3005
  description: Amount of Money.
3006
- example: 123.45
3006
+ example: '123.45'
3007
3007
  required:
3008
3008
  - currency
3009
3009
  - amount
@@ -3564,7 +3564,7 @@ components:
3564
3564
  amount:
3565
3565
  type: string
3566
3566
  description: Amount of money.
3567
- example: 124.45
3567
+ example: '124.45'
3568
3568
  payeeReceiveAmount:
3569
3569
  properties:
3570
3570
  currency:
@@ -3574,7 +3574,7 @@ components:
3574
3574
  amount:
3575
3575
  type: string
3576
3576
  description: Amount of money.
3577
- example: 123.45
3577
+ example: '123.45'
3578
3578
  payeeFspFee:
3579
3579
  properties:
3580
3580
  currency:
@@ -3584,7 +3584,7 @@ components:
3584
3584
  amount:
3585
3585
  type: string
3586
3586
  description: Amount of money.
3587
- example: 1.45
3587
+ example: '1.45'
3588
3588
  payeeFspCommission:
3589
3589
  properties:
3590
3590
  currency:
@@ -3594,7 +3594,7 @@ components:
3594
3594
  amount:
3595
3595
  type: string
3596
3596
  description: Amount of money.
3597
- example: 0
3597
+ example: '0'
3598
3598
  expiration:
3599
3599
  type: string
3600
3600
  description: >-
@@ -3828,7 +3828,7 @@ components:
3828
3828
  amount:
3829
3829
  type: string
3830
3830
  description: Amount of money.
3831
- example: 123.45
3831
+ example: '123.45'
3832
3832
  fees:
3833
3833
  properties:
3834
3834
  currency:
@@ -3838,7 +3838,7 @@ components:
3838
3838
  amount:
3839
3839
  type: string
3840
3840
  description: Amount of money.
3841
- example: 1.45
3841
+ example: '1.45'
3842
3842
  transactionType:
3843
3843
  $ref: '#/components/schemas/TransactionType'
3844
3844
  description: Type of transaction that the quote is requested for.
@@ -3874,7 +3874,7 @@ components:
3874
3874
  amount:
3875
3875
  type: string
3876
3876
  description: Amount of money.
3877
- example: 124.45
3877
+ example: '124.45'
3878
3878
  payeeReceiveAmount:
3879
3879
  properties:
3880
3880
  currency:
@@ -3884,7 +3884,7 @@ components:
3884
3884
  amount:
3885
3885
  type: string
3886
3886
  description: Amount of money.
3887
- example: 123.45
3887
+ example: '123.45'
3888
3888
  payeeFspFee:
3889
3889
  properties:
3890
3890
  currency:
@@ -3894,7 +3894,7 @@ components:
3894
3894
  amount:
3895
3895
  type: string
3896
3896
  description: Amount of money.
3897
- example: 1.45
3897
+ example: '1.45'
3898
3898
  payeeFspCommission:
3899
3899
  properties:
3900
3900
  currency:
@@ -3904,7 +3904,7 @@ components:
3904
3904
  amount:
3905
3905
  type: string
3906
3906
  description: Amount of money.
3907
- example: 1.45
3907
+ example: '1.45'
3908
3908
  ilpPacket:
3909
3909
  type: string
3910
3910
  description: The ILP Packet that must be attached to the transfer by the Payer.
@@ -3027,7 +3027,7 @@ paths:
3027
3027
  - "FIDO" - A FIDO public/private keypair
3028
3028
  - "GENERIC" - A Generic public/private keypair
3029
3029
  status:
3030
- title: CredentialStatus
3030
+ title: CredentialStatusPending
3031
3031
  type: string
3032
3032
  enum: &ref_115
3033
3033
  - PENDING
@@ -3454,7 +3454,7 @@ paths:
3454
3454
  type: object
3455
3455
  properties:
3456
3456
  status:
3457
- title: CredentialStatus
3457
+ title: CredentialStatusVerified
3458
3458
  type: string
3459
3459
  enum: &ref_128
3460
3460
  - VERIFIED
@@ -6639,14 +6639,14 @@ paths:
6639
6639
  application/json:
6640
6640
  schema:
6641
6641
  oneOf:
6642
- - title: ThirdpartyRequestsAuthorizationsIDPutResponseGeneric
6642
+ - title: ThirdpartyRequestsAuthorizationsIDPutResponseRejected
6643
6643
  type: object
6644
6644
  description: >-
6645
6645
  The object sent in the PUT
6646
6646
  /thirdpartyRequests/authorizations/{ID} callback.
6647
6647
  properties: &ref_147
6648
6648
  responseType:
6649
- title: AuthorizationResponseType
6649
+ title: AuthorizationResponseTypeRejected
6650
6650
  description: |
6651
6651
  The customer rejected the terms of the transfer.
6652
6652
  type: string
@@ -7426,7 +7426,7 @@ paths:
7426
7426
  information regarding a previously created or requested authorization.
7427
7427
  The *{ID}*
7428
7428
 
7429
- in the URI should contain the verification request ID
7429
+ in the URI should contain the verification request ID
7430
7430
  parameters:
7431
7431
  - name: Accept
7432
7432
  in: header
@@ -7476,18 +7476,17 @@ paths:
7476
7476
  - sampled
7477
7477
  operationId: PutThirdpartyRequestsVerificationsById
7478
7478
  summary: PutThirdpartyRequestsVerificationsById
7479
- description: >
7479
+ description: >-
7480
7480
  The HTTP request `PUT /thirdpartyRequests/verifications/{ID}` is used by
7481
- the Auth-Service to inform
7482
-
7483
- the DFSP of a successful result in validating the verification of a
7484
- Thirdparty Transaction Request.
7481
+ the Auth-Service to inform the DFSP of a successful result in validating
7482
+ the verification of a Thirdparty Transaction Request.
7485
7483
 
7484
+ If the validation fails, the auth-service will send back `PUT
7485
+ /thirdpartyRequests/verifications/{ID}` with `authenticationResponse:
7486
+ 'REJECTED'`.
7486
7487
 
7487
- If the validation fails, The Auth-Service MUST use `PUT
7488
- /thirdpartyRequests/verifications/{ID}/error`
7489
-
7490
- instead.
7488
+ In unplanned error cases the Auth-Service MUST use `PUT
7489
+ /thirdpartyRequests/verifications/{ID}/error`.
7491
7490
  parameters:
7492
7491
  - name: Content-Length
7493
7492
  in: header
@@ -7511,13 +7510,21 @@ paths:
7511
7510
  description: >-
7512
7511
  The object sent in the PUT
7513
7512
  /thirdpartyRequests/verifications/{ID} request.
7514
- properties: &ref_157
7513
+ properties: &ref_158
7515
7514
  authenticationResponse:
7515
+ title: AuthenticationResponse
7516
7516
  type: string
7517
- enum:
7517
+ enum: &ref_157
7518
7518
  - VERIFIED
7519
- description: The verification passed
7520
- required: &ref_158
7519
+ - REJECTED
7520
+ description: >-
7521
+ Below are the allowed values for the enumeration
7522
+ AuthenticationResponse.
7523
+
7524
+ - VERIFIED - The challenge was correctly signed.
7525
+
7526
+ - REJECTED - The challenge was not correctly signed.
7527
+ required: &ref_159
7521
7528
  - authenticationResponse
7522
7529
  example:
7523
7530
  authenticationResponse: VERIFIED
@@ -8490,7 +8497,7 @@ components:
8490
8497
  - "FIDO" - A FIDO public/private keypair
8491
8498
  - "GENERIC" - A Generic public/private keypair
8492
8499
  CredentialStatusPending:
8493
- title: CredentialStatus
8500
+ title: CredentialStatusPending
8494
8501
  type: string
8495
8502
  enum: *ref_115
8496
8503
  description: |
@@ -8618,7 +8625,7 @@ components:
8618
8625
  required: *ref_127
8619
8626
  additionalProperties: false
8620
8627
  CredentialStatusVerified:
8621
- title: CredentialStatus
8628
+ title: CredentialStatusVerified
8622
8629
  type: string
8623
8630
  enum: *ref_128
8624
8631
  description: |
@@ -8708,13 +8715,13 @@ components:
8708
8715
  required: *ref_145
8709
8716
  additionalProperties: false
8710
8717
  AuthorizationResponseTypeRejected:
8711
- title: AuthorizationResponseType
8718
+ title: AuthorizationResponseTypeRejected
8712
8719
  description: |
8713
8720
  The customer rejected the terms of the transfer.
8714
8721
  type: string
8715
8722
  enum: *ref_146
8716
8723
  ThirdpartyRequestsAuthorizationsIDPutResponseRejected:
8717
- title: ThirdpartyRequestsAuthorizationsIDPutResponseGeneric
8724
+ title: ThirdpartyRequestsAuthorizationsIDPutResponseRejected
8718
8725
  type: object
8719
8726
  description: >-
8720
8727
  The object sent in the PUT /thirdpartyRequests/authorizations/{ID}
@@ -8780,14 +8787,22 @@ components:
8780
8787
  description: The object sent in the POST /thirdpartyRequests/verifications request.
8781
8788
  properties: *ref_155
8782
8789
  required: *ref_156
8790
+ AuthenticationResponse:
8791
+ title: AuthenticationResponse
8792
+ type: string
8793
+ enum: *ref_157
8794
+ description: |-
8795
+ Below are the allowed values for the enumeration AuthenticationResponse.
8796
+ - VERIFIED - The challenge was correctly signed.
8797
+ - REJECTED - The challenge was not correctly signed.
8783
8798
  ThirdpartyRequestsVerificationsIDPutResponse:
8784
8799
  title: ThirdpartyRequestsVerificationsIDPutResponse
8785
8800
  type: object
8786
8801
  description: >-
8787
8802
  The object sent in the PUT /thirdpartyRequests/verifications/{ID}
8788
8803
  request.
8789
- properties: *ref_157
8790
- required: *ref_158
8804
+ properties: *ref_158
8805
+ required: *ref_159
8791
8806
  parameters:
8792
8807
  ID:
8793
8808
  name: ID
@@ -83,7 +83,7 @@ properties:
83
83
  amount:
84
84
  type: string
85
85
  description: Amount of money.
86
- example: 123.45
86
+ example: '123.45'
87
87
  fees:
88
88
  properties:
89
89
  currency:
@@ -93,7 +93,7 @@ properties:
93
93
  amount:
94
94
  type: string
95
95
  description: Amount of money.
96
- example: 1.45
96
+ example: '1.45'
97
97
  transactionType:
98
98
  $ref: ./TransactionType.yaml
99
99
  description: Type of transaction that the quote is requested for.
@@ -26,7 +26,7 @@ properties:
26
26
  amount:
27
27
  type: string
28
28
  description: Amount of money.
29
- example: 123.45
29
+ example: '123.45'
30
30
  fees:
31
31
  properties:
32
32
  currency:
@@ -36,7 +36,7 @@ properties:
36
36
  amount:
37
37
  type: string
38
38
  description: Amount of money.
39
- example: 1.45
39
+ example: '1.45'
40
40
  transactionType:
41
41
  $ref: ./TransactionType.yaml
42
42
  description: Type of transaction that the quote is requested for.
@@ -18,7 +18,7 @@ properties:
18
18
  amount:
19
19
  type: string
20
20
  description: Amount of money.
21
- example: 124.45
21
+ example: '124.45'
22
22
  payeeReceiveAmount:
23
23
  properties:
24
24
  currency:
@@ -28,7 +28,7 @@ properties:
28
28
  amount:
29
29
  type: string
30
30
  description: Amount of money.
31
- example: 123.45
31
+ example: '123.45'
32
32
  payeeFspFee:
33
33
  properties:
34
34
  currency:
@@ -38,7 +38,7 @@ properties:
38
38
  amount:
39
39
  type: string
40
40
  description: Amount of money.
41
- example: 1.45
41
+ example: '1.45'
42
42
  payeeFspCommission:
43
43
  properties:
44
44
  currency:
@@ -48,7 +48,7 @@ properties:
48
48
  amount:
49
49
  type: string
50
50
  description: Amount of money.
51
- example: 1.45
51
+ example: '1.45'
52
52
  ilpPacket:
53
53
  type: string
54
54
  description: The ILP Packet that must be attached to the transfer by the Payer.
@@ -9,7 +9,7 @@ properties:
9
9
  amount:
10
10
  type: string
11
11
  description: Amount of Money.
12
- example: 123.45
12
+ example: '123.45'
13
13
  required:
14
14
  - currency
15
15
  - amount
@@ -11,7 +11,7 @@ properties:
11
11
  amount:
12
12
  type: string
13
13
  description: Amount of money.
14
- example: 124.45
14
+ example: '124.45'
15
15
  payeeReceiveAmount:
16
16
  properties:
17
17
  currency:
@@ -21,7 +21,7 @@ properties:
21
21
  amount:
22
22
  type: string
23
23
  description: Amount of money.
24
- example: 123.45
24
+ example: '123.45'
25
25
  payeeFspFee:
26
26
  properties:
27
27
  currency:
@@ -31,7 +31,7 @@ properties:
31
31
  amount:
32
32
  type: string
33
33
  description: Amount of money.
34
- example: 1.45
34
+ example: '1.45'
35
35
  payeeFspCommission:
36
36
  properties:
37
37
  currency:
@@ -41,7 +41,7 @@ properties:
41
41
  amount:
42
42
  type: string
43
43
  description: Amount of money.
44
- example: 0
44
+ example: '0'
45
45
  expiration:
46
46
  type: string
47
47
  description: >-
@@ -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'];
@@ -16318,11 +16318,9 @@ export interface operations {
16318
16318
  };
16319
16319
  };
16320
16320
  /**
16321
- * The HTTP request `PUT /thirdpartyRequests/verifications/{ID}` is used by the Auth-Service to inform
16322
- * the DFSP of a successful result in validating the verification of a Thirdparty Transaction Request.
16323
- *
16324
- * If the validation fails, The Auth-Service MUST use `PUT /thirdpartyRequests/verifications/{ID}/error`
16325
- * instead.
16321
+ * 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.
16322
+ * If the validation fails, the auth-service will send back `PUT /thirdpartyRequests/verifications/{ID}` with `authenticationResponse: 'REJECTED'`.
16323
+ * In unplanned error cases the Auth-Service MUST use `PUT /thirdpartyRequests/verifications/{ID}/error`.
16326
16324
  */
16327
16325
  PutThirdpartyRequestsVerificationsById: {
16328
16326
  parameters: {
@@ -16338,9 +16336,11 @@ export interface operations {
16338
16336
  requestBody: {
16339
16337
  "application/json": {
16340
16338
  /**
16341
- * The verification passed
16339
+ * Below are the allowed values for the enumeration AuthenticationResponse.
16340
+ * - VERIFIED - The challenge was correctly signed.
16341
+ * - REJECTED - The challenge was not correctly signed.
16342
16342
  */
16343
- authenticationResponse: "VERIFIED";
16343
+ authenticationResponse: "VERIFIED" | "REJECTED";
16344
16344
  };
16345
16345
  };
16346
16346
  responses: {
@@ -20450,14 +20450,22 @@ export interface components {
20450
20450
  */
20451
20451
  genericSignedPayload: string;
20452
20452
  };
20453
+ /**
20454
+ * Below are the allowed values for the enumeration AuthenticationResponse.
20455
+ * - VERIFIED - The challenge was correctly signed.
20456
+ * - REJECTED - The challenge was not correctly signed.
20457
+ */
20458
+ AuthenticationResponse: "VERIFIED" | "REJECTED";
20453
20459
  /**
20454
20460
  * The object sent in the PUT /thirdpartyRequests/verifications/{ID} request.
20455
20461
  */
20456
20462
  ThirdpartyRequestsVerificationsIDPutResponse: {
20457
20463
  /**
20458
- * The verification passed
20464
+ * Below are the allowed values for the enumeration AuthenticationResponse.
20465
+ * - VERIFIED - The challenge was correctly signed.
20466
+ * - REJECTED - The challenge was not correctly signed.
20459
20467
  */
20460
- authenticationResponse: "VERIFIED";
20468
+ authenticationResponse: "VERIFIED" | "REJECTED";
20461
20469
  };
20462
20470
  };
20463
20471
  responses: {
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@mojaloop/api-snippets",
3
- "version": "13.0.3",
3
+ "version": "13.0.6",
4
4
  "description": "Mojaloop API specification reusable snippets",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
+ "engines": {
8
+ "node": ">=12.0.0"
9
+ },
7
10
  "scripts": {
8
11
  "audit:resolve": "SHELL=sh resolve-audit --production",
9
12
  "audit:check": "SHELL=sh check-audit --production",
@@ -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.
@@ -1,4 +1,4 @@
1
- title: AuthorizationResponseType
1
+ title: AuthorizationResponseTypeRejected
2
2
  description: |
3
3
  The customer rejected the terms of the transfer.
4
4
  type: string
@@ -1,4 +1,4 @@
1
- title: CredentialStatus
1
+ title: CredentialStatusPending
2
2
  type: string
3
3
  enum:
4
4
  - PENDING
@@ -1,4 +1,4 @@
1
- title: CredentialStatus
1
+ title: CredentialStatusVerified
2
2
  type: string
3
3
  enum:
4
4
  - VERIFIED
@@ -12,7 +12,7 @@ properties:
12
12
  $ref: ./CredentialType.yaml
13
13
  # The challenge has signed but not yet verified.
14
14
  status:
15
- $ref: ./CredentialStatusPending.yaml
15
+ $ref: ./CredentialStatusPending.yaml
16
16
  genericPayload:
17
17
  $ref: ./GenericCredential.yaml
18
18
  fidoPayload:
@@ -1,8 +1,8 @@
1
- title: ThirdpartyRequestsAuthorizationsIDPutResponseGeneric
1
+ title: ThirdpartyRequestsAuthorizationsIDPutResponseRejected
2
2
  type: object
3
3
  description: 'The object sent in the PUT /thirdpartyRequests/authorizations/{ID} callback.'
4
4
  properties:
5
- responseType:
6
- $ref: ./AuthorizationResponseTypeRejected.yaml
5
+ responseType:
6
+ $ref: ./AuthorizationResponseTypeRejected.yaml
7
7
  required:
8
8
  - responseType
@@ -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
-
@@ -9,11 +9,13 @@ Amount:
9
9
  AmountType:
10
10
  $ref: ./AmountType.yaml
11
11
  AuthenticationInfo:
12
- $ref: ./AuthenticationInfo.yaml
12
+ $ref: ./AuthenticationInfo.yaml
13
+ AuthenticationResponse:
14
+ $ref: ./AuthenticationResponse.yaml
13
15
  AuthenticationType:
14
16
  $ref: ./AuthenticationType.yaml
15
17
  AuthenticationValue:
16
- $ref: ./AuthenticationValue.yaml
18
+ $ref: ./AuthenticationValue.yaml
17
19
  AuthorizationChannelType:
18
20
  $ref: ./AuthorizationChannelType.yaml
19
21
  AuthorizationResponseType:
@@ -20,7 +20,7 @@ get:
20
20
  description: |
21
21
  The HTTP request `/thirdpartyRequests/verifications/{ID}` is used to get
22
22
  information regarding a previously created or requested authorization. The *{ID}*
23
- in the URI should contain the verification request ID
23
+ in the URI should contain the verification request ID
24
24
  parameters:
25
25
  #Headers
26
26
  - $ref: ../components/parameters/Accept.yaml
@@ -49,12 +49,14 @@ put:
49
49
  - sampled
50
50
  operationId: PutThirdpartyRequestsVerificationsById
51
51
  summary: PutThirdpartyRequestsVerificationsById
52
- description: |
52
+ description: >-
53
53
  The HTTP request `PUT /thirdpartyRequests/verifications/{ID}` is used by the Auth-Service to inform
54
54
  the DFSP of a successful result in validating the verification of a Thirdparty Transaction Request.
55
55
 
56
- If the validation fails, The Auth-Service MUST use `PUT /thirdpartyRequests/verifications/{ID}/error`
57
- instead.
56
+ If the validation fails, the auth-service will send back `PUT /thirdpartyRequests/verifications/{ID}`
57
+ with `authenticationResponse: 'REJECTED'`.
58
+
59
+ In unplanned error cases the Auth-Service MUST use `PUT /thirdpartyRequests/verifications/{ID}/error`.
58
60
  parameters:
59
61
  - $ref: ../components/parameters/Content-Length.yaml
60
62
  requestBody: