@mojaloop/sdk-scheme-adapter 24.7.0 → 24.8.1-snapshot.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/.yarn/cache/{@mojaloop-central-services-shared-npm-18.23.2-5627dda2e3-5fb84a745d.zip → @mojaloop-central-services-shared-npm-18.24.0-34d9578f93-8c24dea9e4.zip} +0 -0
  2. package/.yarn/cache/@mojaloop-inter-scheme-proxy-cache-lib-npm-2.5.0-eeb80fe407-bf7e14ce33.zip +0 -0
  3. package/.yarn/cache/{@mojaloop-sdk-standard-components-npm-19.11.2-d6fd02bca7-0cbc9e56e2.zip → @mojaloop-sdk-standard-components-npm-19.14.0-snapshot.3-1229293931-a3faf5f3ac.zip} +0 -0
  4. package/.yarn/cache/{@types-node-npm-22.14.0-a09e354ed5-8bfae1d3c4.zip → @types-node-npm-22.14.1-ff7e0a29d7-e22363f40a.zip} +0 -0
  5. package/.yarn/cache/{@typescript-eslint-eslint-plugin-npm-8.29.0-9227710d0b-83475d3a47.zip → @typescript-eslint-eslint-plugin-npm-8.30.1-f4da10f397-dbdc516ad9.zip} +0 -0
  6. package/.yarn/cache/{@typescript-eslint-parser-npm-8.29.0-510bf7f523-96a1a8cc8a.zip → @typescript-eslint-parser-npm-8.30.1-bcee4d456e-cac3cfe1c1.zip} +0 -0
  7. package/.yarn/cache/{@typescript-eslint-scope-manager-npm-8.29.0-6046e43075-89a5999ba8.zip → @typescript-eslint-scope-manager-npm-8.30.1-4b479f2d73-cef9e70016.zip} +0 -0
  8. package/.yarn/cache/{@typescript-eslint-type-utils-npm-8.29.0-1674862818-553fde7826.zip → @typescript-eslint-type-utils-npm-8.30.1-0e1c22c03c-6283d4b4d0.zip} +0 -0
  9. package/.yarn/cache/@typescript-eslint-types-npm-8.30.1-8bfe1eac21-264c4d8e1b.zip +0 -0
  10. package/.yarn/cache/{@typescript-eslint-typescript-estree-npm-8.29.0-92fb2cc910-7275c61dc5.zip → @typescript-eslint-typescript-estree-npm-8.30.1-185919bfaf-f57a34e36d.zip} +0 -0
  11. package/.yarn/cache/{@typescript-eslint-utils-npm-8.29.0-ebf0886c15-81d1afc5de.zip → @typescript-eslint-utils-npm-8.30.1-e8c9d86e99-637b3b8b3d.zip} +0 -0
  12. package/.yarn/cache/{@typescript-eslint-visitor-keys-npm-8.29.0-e8a9b1561e-d306a7d96b.zip → @typescript-eslint-visitor-keys-npm-8.30.1-e4b2f0ebba-7878f1e3e2.zip} +0 -0
  13. package/.yarn/cache/dotenv-npm-16.5.0-67343a179e-6543fe87b5.zip +0 -0
  14. package/.yarn/cache/ioredis-npm-5.6.1-d69383b35a-89100a97b2.zip +0 -0
  15. package/.yarn/cache/{koa-npm-2.16.0-fccb365a23-01be3231d4.zip → koa-npm-2.16.1-7f26717794-4946d19efb.zip} +0 -0
  16. package/.yarn/cache/openapi-backend-npm-5.12.0-b2560843ff-0b13c6f128.zip +0 -0
  17. package/.yarn/cache/{ts-jest-npm-29.3.1-c9a9791a5c-7320bbfab2.zip → ts-jest-npm-29.3.2-cda1b1f7ad-aad8f81ba5.zip} +0 -0
  18. package/.yarn/cache/{type-fest-npm-4.39.1-227092867f-71ce0e2582.zip → type-fest-npm-4.40.0-18c72d1d94-af2863a707.zip} +0 -0
  19. package/.yarn/cache/{typescript-npm-5.8.2-b95d637f6a-7f9e3d7ac1.zip → typescript-npm-5.8.3-fbd7aef456-cb1d081c88.zip} +0 -0
  20. package/.yarn/cache/{typescript-patch-ef570fb450-a58d19ff98.zip → typescript-patch-9106e8a080-1b503525a8.zip} +0 -0
  21. package/.yarn/cache/yaml-npm-2.7.1-9e92f81b45-385f8115dd.zip +0 -0
  22. package/.yarn/install-state.gz +0 -0
  23. package/CHANGELOG.md +7 -0
  24. package/modules/api-svc/package.json +6 -6
  25. package/modules/api-svc/src/InboundServer/api.yaml +172 -133
  26. package/modules/api-svc/src/InboundServer/api_iso20022.yaml +39 -0
  27. package/modules/api-svc/src/InboundServer/api_template.yaml +170 -66
  28. package/modules/api-svc/src/InboundServer/handlers.js +26 -6
  29. package/modules/api-svc/src/InboundServer/index.js +2 -1
  30. package/modules/api-svc/src/InboundServer/middlewares.js +61 -21
  31. package/modules/api-svc/src/config.js +1 -0
  32. package/modules/api-svc/src/lib/model/InboundPingModel.js +100 -0
  33. package/modules/api-svc/src/lib/model/index.js +3 -2
  34. package/modules/api-svc/test/__mocks__/@mojaloop/sdk-standard-components.js +2 -0
  35. package/modules/api-svc/test/unit/lib/model/InboundPingModel.test.js +124 -0
  36. package/modules/outbound-command-event-handler/package.json +8 -8
  37. package/modules/outbound-domain-event-handler/package.json +7 -7
  38. package/modules/private-shared-lib/package.json +7 -7
  39. package/package.json +6 -6
  40. package/.yarn/cache/@mojaloop-api-snippets-npm-17.10.1-4e48158984-9a0f1d2fd2.zip +0 -0
  41. package/.yarn/cache/@mojaloop-central-services-logger-npm-11.7.0-bd1e0d14fc-386d668607.zip +0 -0
  42. package/.yarn/cache/@mojaloop-inter-scheme-proxy-cache-lib-npm-2.4.0-cc60317958-8e539f65c3.zip +0 -0
  43. package/.yarn/cache/@mojaloop-ml-schema-transformer-lib-npm-2.7.0-bc64d97e72-bad585bd7d.zip +0 -0
  44. package/.yarn/cache/@rollup-rollup-linux-x64-musl-npm-4.37.0-51462d4265-8.zip +0 -0
  45. package/.yarn/cache/@typescript-eslint-types-npm-8.29.0-be9f1bbfb7-30bf710e21.zip +0 -0
Binary file
package/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
1
  # Changelog: [mojaloop/sdk-scheme-adapter](https://github.com/mojaloop/sdk-scheme-adapter)
2
+ ## [24.8.0](https://github.com/mojaloop/sdk-scheme-adapter/compare/v24.7.0...v24.8.0) (2025-04-15)
3
+
4
+
5
+ ### Features
6
+
7
+ * **csi-1348:** use updated AxiosHttpRequester ([#572](https://github.com/mojaloop/sdk-scheme-adapter/issues/572)) ([93cf0e1](https://github.com/mojaloop/sdk-scheme-adapter/commit/93cf0e1f888afe1cdcbcf4bd22e66dc967283d05))
8
+
2
9
  ## [24.7.0](https://github.com/mojaloop/sdk-scheme-adapter/compare/v24.6.3...v24.7.0) (2025-04-05)
3
10
 
4
11
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-api-svc",
3
- "version": "21.0.0-snapshot.32",
3
+ "version": "21.0.0-snapshot.34",
4
4
  "description": "An adapter for connecting to Mojaloop API enabled switches.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "start:debug": "node --inspect=0.0.0.0:9229 src/index.js",
22
22
  "build": "yarn run build:openapi",
23
23
  "build:openapi": "yarn run build:openapi:inbound",
24
- "build:openapi:inbound": "openapi bundle --output src/InboundServer/api.yaml --ext yaml ../../node_modules/@mojaloop/api-snippets/fspiop/v2_0/openapi3/openapi.yaml",
24
+ "build:openapi:inbound": "openapi bundle --output src/InboundServer/api.yaml --ext yaml src/InboundServer/api_template.yaml",
25
25
  "clean:dist": "rm -Rf dist",
26
26
  "lint": "eslint ./src/",
27
27
  "lint:fix": "eslint ./src/ --fix",
@@ -68,17 +68,17 @@
68
68
  "@mojaloop/central-services-error-handling": "13.0.7",
69
69
  "@mojaloop/central-services-logger": "11.8.1",
70
70
  "@mojaloop/central-services-metrics": "12.5.0",
71
- "@mojaloop/central-services-shared": "18.23.2",
71
+ "@mojaloop/central-services-shared": "18.24.0",
72
72
  "@mojaloop/event-sdk": "14.4.0",
73
73
  "@mojaloop/logging-bc-client-lib": "0.5.8",
74
74
  "@mojaloop/ml-schema-transformer-lib": "2.7.1",
75
75
  "@mojaloop/sdk-scheme-adapter-private-shared-lib": "workspace:^",
76
- "@mojaloop/sdk-standard-components": "19.11.2",
76
+ "@mojaloop/sdk-standard-components": "19.14.0-snapshot.3",
77
77
  "ajv": "8.17.1",
78
78
  "axios": "1.8.4",
79
79
  "body-parser": "2.2.0",
80
80
  "co-body": "6.2.0",
81
- "dotenv": "16.4.7",
81
+ "dotenv": "16.5.0",
82
82
  "env-var": "7.5.0",
83
83
  "express": "4.21.2",
84
84
  "fast-json-patch": "3.1.1",
@@ -86,7 +86,7 @@
86
86
  "javascript-state-machine": "3.1.0",
87
87
  "js-yaml": "4.1.0",
88
88
  "json-schema-ref-parser": "9.0.9",
89
- "koa": "2.16.0",
89
+ "koa": "2.16.1",
90
90
  "koa-body": "6.0.1",
91
91
  "lodash": "4.17.21",
92
92
  "module-alias": "2.2.3",
@@ -58,6 +58,45 @@ paths:
58
58
  responses:
59
59
  '200':
60
60
  description: Ok
61
+ /ping:
62
+ post:
63
+ description: The HTTP request `POST /ping` is used to validate mTLS and JWS
64
+ summary: For testing mTLS and JWS
65
+ tags:
66
+ - participants
67
+ - ping
68
+ operationId: handlePostPing
69
+ requestBody:
70
+ description: The object sent in the POST/PUT `/ping` requests with validation request ID.
71
+ required: true
72
+ content:
73
+ application/json:
74
+ schema:
75
+ type: object
76
+ properties:
77
+ requestId:
78
+ $ref: '#/components/schemas/CorrelationId'
79
+ required:
80
+ - requestId
81
+ responses:
82
+ '202':
83
+ $ref: '#/components/responses/202'
84
+ '400':
85
+ $ref: '#/components/responses/400'
86
+ '401':
87
+ $ref: '#/components/responses/401'
88
+ '403':
89
+ $ref: '#/components/responses/403'
90
+ '404':
91
+ $ref: '#/components/responses/404'
92
+ '405':
93
+ $ref: '#/components/responses/405'
94
+ '406':
95
+ $ref: '#/components/responses/406'
96
+ '501':
97
+ $ref: '#/components/responses/501'
98
+ '503':
99
+ $ref: '#/components/responses/503'
61
100
  /participants:
62
101
  post:
63
102
  description: >-
@@ -3519,27 +3558,6 @@ components:
3519
3558
  description: >-
3520
3559
  The API data type UndefinedEnum is a JSON String consisting of 1 to 32
3521
3560
  uppercase characters including an underscore character (_).
3522
- ParticipantsPostRequest:
3523
- title: ParticipantsPostRequest
3524
- type: object
3525
- description: The object sent in the POST /participants request.
3526
- properties:
3527
- requestId:
3528
- $ref: '#/components/schemas/CorrelationId'
3529
- partyList:
3530
- type: array
3531
- items:
3532
- $ref: '#/components/schemas/PartyIdInfo'
3533
- minItems: 1
3534
- maxItems: 10000
3535
- description: >-
3536
- List of PartyIdInfo elements that the client would like to update or
3537
- create FSP information about.
3538
- currency:
3539
- $ref: '#/components/schemas/Currency'
3540
- required:
3541
- - requestId
3542
- - partyList
3543
3561
  ErrorCode:
3544
3562
  title: ErrorCode
3545
3563
  type: string
@@ -3582,6 +3600,27 @@ components:
3582
3600
  properties:
3583
3601
  errorInformation:
3584
3602
  $ref: '#/components/schemas/ErrorInformation'
3603
+ ParticipantsPostRequest:
3604
+ title: ParticipantsPostRequest
3605
+ type: object
3606
+ description: The object sent in the POST /participants request.
3607
+ properties:
3608
+ requestId:
3609
+ $ref: '#/components/schemas/CorrelationId'
3610
+ partyList:
3611
+ type: array
3612
+ items:
3613
+ $ref: '#/components/schemas/PartyIdInfo'
3614
+ minItems: 1
3615
+ maxItems: 10000
3616
+ description: >-
3617
+ List of PartyIdInfo elements that the client would like to update or
3618
+ create FSP information about.
3619
+ currency:
3620
+ $ref: '#/components/schemas/Currency'
3621
+ required:
3622
+ - requestId
3623
+ - partyList
3585
3624
  PartyResult:
3586
3625
  title: PartyResult
3587
3626
  type: object
@@ -4588,6 +4627,118 @@ components:
4588
4627
  maxItems: 16
4589
4628
  required:
4590
4629
  - providers
4630
+ responses:
4631
+ '200':
4632
+ description: OK
4633
+ '202':
4634
+ description: Accepted
4635
+ '400':
4636
+ description: Bad Request
4637
+ content:
4638
+ application/json:
4639
+ schema:
4640
+ $ref: '#/components/schemas/ErrorInformationResponse'
4641
+ headers:
4642
+ Content-Length:
4643
+ $ref: '#/components/headers/Content-Length'
4644
+ Content-Type:
4645
+ $ref: '#/components/headers/Content-Type'
4646
+ '401':
4647
+ description: Unauthorized
4648
+ content:
4649
+ application/json:
4650
+ schema:
4651
+ $ref: '#/components/schemas/ErrorInformationResponse'
4652
+ headers:
4653
+ Content-Length:
4654
+ $ref: '#/components/headers/Content-Length'
4655
+ Content-Type:
4656
+ $ref: '#/components/headers/Content-Type'
4657
+ '403':
4658
+ description: Forbidden
4659
+ content:
4660
+ application/json:
4661
+ schema:
4662
+ $ref: '#/components/schemas/ErrorInformationResponse'
4663
+ headers:
4664
+ Content-Length:
4665
+ $ref: '#/components/headers/Content-Length'
4666
+ Content-Type:
4667
+ $ref: '#/components/headers/Content-Type'
4668
+ '404':
4669
+ description: Not Found
4670
+ content:
4671
+ application/json:
4672
+ schema:
4673
+ $ref: '#/components/schemas/ErrorInformationResponse'
4674
+ headers:
4675
+ Content-Length:
4676
+ $ref: '#/components/headers/Content-Length'
4677
+ Content-Type:
4678
+ $ref: '#/components/headers/Content-Type'
4679
+ '405':
4680
+ description: Method Not Allowed
4681
+ content:
4682
+ application/json:
4683
+ schema:
4684
+ $ref: '#/components/schemas/ErrorInformationResponse'
4685
+ headers:
4686
+ Content-Length:
4687
+ $ref: '#/components/headers/Content-Length'
4688
+ Content-Type:
4689
+ $ref: '#/components/headers/Content-Type'
4690
+ '406':
4691
+ description: Not Acceptable
4692
+ content:
4693
+ application/json:
4694
+ schema:
4695
+ $ref: '#/components/schemas/ErrorInformationResponse'
4696
+ headers:
4697
+ Content-Length:
4698
+ $ref: '#/components/headers/Content-Length'
4699
+ Content-Type:
4700
+ $ref: '#/components/headers/Content-Type'
4701
+ '501':
4702
+ description: Not Implemented
4703
+ content:
4704
+ application/json:
4705
+ schema:
4706
+ $ref: '#/components/schemas/ErrorInformationResponse'
4707
+ headers:
4708
+ Content-Length:
4709
+ $ref: '#/components/headers/Content-Length'
4710
+ Content-Type:
4711
+ $ref: '#/components/headers/Content-Type'
4712
+ '503':
4713
+ description: Service Unavailable
4714
+ content:
4715
+ application/json:
4716
+ schema:
4717
+ $ref: '#/components/schemas/ErrorInformationResponse'
4718
+ headers:
4719
+ Content-Length:
4720
+ $ref: '#/components/headers/Content-Length'
4721
+ Content-Type:
4722
+ $ref: '#/components/headers/Content-Type'
4723
+ headers:
4724
+ Content-Length:
4725
+ required: false
4726
+ schema:
4727
+ type: integer
4728
+ description: >-
4729
+ The `Content-Length` header field indicates the anticipated size of the
4730
+ payload body. Only sent if there is a body.
4731
+
4732
+
4733
+ **Note:** The API supports a maximum size of 5242880 bytes (5
4734
+ Megabytes).
4735
+ Content-Type:
4736
+ schema:
4737
+ type: string
4738
+ required: true
4739
+ description: >-
4740
+ The `Content-Type` header indicates the specific version of the API used
4741
+ to send the payload body.
4591
4742
  parameters:
4592
4743
  Accept:
4593
4744
  name: Accept
@@ -4749,115 +4900,3 @@ components:
4749
4900
  schema:
4750
4901
  type: string
4751
4902
  description: ISO 4217 currency code for the target currency.
4752
- responses:
4753
- '200':
4754
- description: OK
4755
- '202':
4756
- description: Accepted
4757
- '400':
4758
- description: Bad Request
4759
- content:
4760
- application/json:
4761
- schema:
4762
- $ref: '#/components/schemas/ErrorInformationResponse'
4763
- headers:
4764
- Content-Length:
4765
- $ref: '#/components/headers/Content-Length'
4766
- Content-Type:
4767
- $ref: '#/components/headers/Content-Type'
4768
- '401':
4769
- description: Unauthorized
4770
- content:
4771
- application/json:
4772
- schema:
4773
- $ref: '#/components/schemas/ErrorInformationResponse'
4774
- headers:
4775
- Content-Length:
4776
- $ref: '#/components/headers/Content-Length'
4777
- Content-Type:
4778
- $ref: '#/components/headers/Content-Type'
4779
- '403':
4780
- description: Forbidden
4781
- content:
4782
- application/json:
4783
- schema:
4784
- $ref: '#/components/schemas/ErrorInformationResponse'
4785
- headers:
4786
- Content-Length:
4787
- $ref: '#/components/headers/Content-Length'
4788
- Content-Type:
4789
- $ref: '#/components/headers/Content-Type'
4790
- '404':
4791
- description: Not Found
4792
- content:
4793
- application/json:
4794
- schema:
4795
- $ref: '#/components/schemas/ErrorInformationResponse'
4796
- headers:
4797
- Content-Length:
4798
- $ref: '#/components/headers/Content-Length'
4799
- Content-Type:
4800
- $ref: '#/components/headers/Content-Type'
4801
- '405':
4802
- description: Method Not Allowed
4803
- content:
4804
- application/json:
4805
- schema:
4806
- $ref: '#/components/schemas/ErrorInformationResponse'
4807
- headers:
4808
- Content-Length:
4809
- $ref: '#/components/headers/Content-Length'
4810
- Content-Type:
4811
- $ref: '#/components/headers/Content-Type'
4812
- '406':
4813
- description: Not Acceptable
4814
- content:
4815
- application/json:
4816
- schema:
4817
- $ref: '#/components/schemas/ErrorInformationResponse'
4818
- headers:
4819
- Content-Length:
4820
- $ref: '#/components/headers/Content-Length'
4821
- Content-Type:
4822
- $ref: '#/components/headers/Content-Type'
4823
- '501':
4824
- description: Not Implemented
4825
- content:
4826
- application/json:
4827
- schema:
4828
- $ref: '#/components/schemas/ErrorInformationResponse'
4829
- headers:
4830
- Content-Length:
4831
- $ref: '#/components/headers/Content-Length'
4832
- Content-Type:
4833
- $ref: '#/components/headers/Content-Type'
4834
- '503':
4835
- description: Service Unavailable
4836
- content:
4837
- application/json:
4838
- schema:
4839
- $ref: '#/components/schemas/ErrorInformationResponse'
4840
- headers:
4841
- Content-Length:
4842
- $ref: '#/components/headers/Content-Length'
4843
- Content-Type:
4844
- $ref: '#/components/headers/Content-Type'
4845
- headers:
4846
- Content-Length:
4847
- required: false
4848
- schema:
4849
- type: integer
4850
- description: >-
4851
- The `Content-Length` header field indicates the anticipated size of the
4852
- payload body. Only sent if there is a body.
4853
-
4854
-
4855
- **Note:** The API supports a maximum size of 5242880 bytes (5
4856
- Megabytes).
4857
- Content-Type:
4858
- schema:
4859
- type: string
4860
- required: true
4861
- description: >-
4862
- The `Content-Type` header indicates the specific version of the API used
4863
- to send the payload body.
@@ -34,6 +34,45 @@ servers:
34
34
  - https
35
35
  default: https
36
36
  paths:
37
+ /ping:
38
+ post:
39
+ description: The HTTP request `POST /ping` is used to validate mTLS and JWS
40
+ summary: For testing mTLS and JWS
41
+ tags:
42
+ - participants
43
+ - ping
44
+ operationId: handlePostPing
45
+ requestBody:
46
+ description: The object sent in the POST/PUT `/ping` requests with validation request ID.
47
+ required: true
48
+ content:
49
+ application/json:
50
+ schema:
51
+ type: object
52
+ properties:
53
+ requestId:
54
+ $ref: '#/components/schemas/CorrelationId'
55
+ required:
56
+ - requestId
57
+ responses:
58
+ '202':
59
+ $ref: '#/components/responses/202'
60
+ '400':
61
+ $ref: '#/components/responses/400'
62
+ '401':
63
+ $ref: '#/components/responses/401'
64
+ '403':
65
+ $ref: '#/components/responses/403'
66
+ '404':
67
+ $ref: '#/components/responses/404'
68
+ '405':
69
+ $ref: '#/components/responses/405'
70
+ '406':
71
+ $ref: '#/components/responses/406'
72
+ '501':
73
+ $ref: '#/components/responses/501'
74
+ '503':
75
+ $ref: '#/components/responses/503'
37
76
  /interface:
38
77
  post:
39
78
  description: >-