@ogcio/building-blocks-sdk 0.2.98 → 0.2.100

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 (41) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +14 -0
  3. package/dist/client/clients/journey/index.d.ts +36 -9
  4. package/dist/client/clients/journey/index.d.ts.map +1 -1
  5. package/dist/client/clients/journey/schema.d.ts +31 -8
  6. package/dist/client/clients/journey/schema.d.ts.map +1 -1
  7. package/dist/client/clients/messaging-public-api/citizen/index.d.ts +602 -0
  8. package/dist/client/clients/messaging-public-api/citizen/index.d.ts.map +1 -0
  9. package/dist/client/clients/messaging-public-api/citizen/index.js +34 -0
  10. package/dist/client/clients/messaging-public-api/citizen/index.js.map +1 -0
  11. package/dist/client/clients/messaging-public-api/index.d.ts +18 -0
  12. package/dist/client/clients/messaging-public-api/index.d.ts.map +1 -0
  13. package/dist/client/clients/messaging-public-api/index.js +15 -0
  14. package/dist/client/clients/messaging-public-api/index.js.map +1 -0
  15. package/dist/client/clients/messaging-public-api/organisation/index.d.ts +621 -0
  16. package/dist/client/clients/messaging-public-api/organisation/index.d.ts.map +1 -0
  17. package/dist/client/clients/messaging-public-api/organisation/index.js +49 -0
  18. package/dist/client/clients/messaging-public-api/organisation/index.js.map +1 -0
  19. package/dist/client/clients/messaging-public-api/schema.d.ts +2464 -0
  20. package/dist/client/clients/messaging-public-api/schema.d.ts.map +1 -0
  21. package/dist/client/clients/messaging-public-api/schema.js +2 -0
  22. package/dist/client/clients/messaging-public-api/schema.js.map +1 -0
  23. package/dist/clients-configurations/clients-configuration.json +17 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +2 -0
  26. package/dist/index.js.map +1 -1
  27. package/dist/types/index.d.ts +9 -3
  28. package/dist/types/index.d.ts.map +1 -1
  29. package/dist/types/index.js +2 -1
  30. package/dist/types/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/client/clients/journey/open-api-definition.json +221 -33
  33. package/src/client/clients/journey/schema.ts +31 -8
  34. package/src/client/clients/messaging-public-api/citizen/index.ts +57 -0
  35. package/src/client/clients/messaging-public-api/index.ts +35 -0
  36. package/src/client/clients/messaging-public-api/open-api-definition.json +4539 -0
  37. package/src/client/clients/messaging-public-api/organisation/index.ts +79 -0
  38. package/src/client/clients/messaging-public-api/schema.ts +2463 -0
  39. package/src/clients-configurations/clients-configuration.json +17 -1
  40. package/src/index.ts +7 -0
  41. package/src/types/index.ts +9 -0
@@ -0,0 +1,2463 @@
1
+ export interface paths {
2
+ "/api/v1/citizens/messages/{messageId}": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ /** @description Get a single message by id for the authenticated citizen */
10
+ get: {
11
+ parameters: {
12
+ query?: {
13
+ /**
14
+ * @description Include stored gateway metadata for the message
15
+ * @example true
16
+ */
17
+ includeMetadata?: "true" | "false" | "1" | "0";
18
+ };
19
+ header?: never;
20
+ path: {
21
+ /**
22
+ * @description Unique identifier of the message to retrieve
23
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
24
+ */
25
+ messageId: string;
26
+ };
27
+ cookie?: never;
28
+ };
29
+ requestBody?: never;
30
+ responses: {
31
+ /** @description Default Response */
32
+ 200: {
33
+ headers: {
34
+ [name: string]: unknown;
35
+ };
36
+ content: {
37
+ "application/json": {
38
+ /**
39
+ * @description Full detail of a single message for an authenticated citizen
40
+ * @example {
41
+ * "subject": "Welcome to MessagingIE",
42
+ * "createdAt": "2025-11-25T14:30:00Z",
43
+ * "threadName": null,
44
+ * "organisationId": "f6a7b8c9-d0e1-2345-f123-456789012345",
45
+ * "recipientUserId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
46
+ * "excerpt": "Dear John Doe, Welcome...",
47
+ * "plainText": "Dear John Doe, Welcome to MessagingIE.",
48
+ * "richText": null,
49
+ * "isSeen": false,
50
+ * "security": "confidential",
51
+ * "attachments": [],
52
+ * "externalId": null
53
+ * }
54
+ */
55
+ data: {
56
+ /**
57
+ * @description Subject
58
+ * @example Welcome to MessagingIE
59
+ */
60
+ subject: string;
61
+ /**
62
+ * Format: date-time
63
+ * @description Creation date time
64
+ * @example 2025-11-25T14:30:00Z
65
+ */
66
+ createdAt: string;
67
+ /**
68
+ * @description Thread name the message belongs to, if any
69
+ * @example Support Thread
70
+ */
71
+ threadName: string | null;
72
+ /**
73
+ * @description Organisation sender id
74
+ * @example f6a7b8c9-d0e1-2345-f123-456789012345
75
+ */
76
+ organisationId: string;
77
+ /**
78
+ * @description Unique id of the recipient
79
+ * @example b2c3d4e5-f6a7-8901-bcde-f12345678901
80
+ */
81
+ recipientUserId: string;
82
+ /**
83
+ * @description Short excerpt of the message body, if available
84
+ * @example Dear John Doe, Welcome...
85
+ */
86
+ excerpt: string | null;
87
+ /**
88
+ * @description Plain text body
89
+ * @example Dear John Doe, Welcome to MessagingIE.
90
+ */
91
+ plainText: string;
92
+ /**
93
+ * @description HTML-formatted body of the message, if available
94
+ * @example <p>Dear <strong>John Doe</strong>...</p>
95
+ */
96
+ richText: string | null;
97
+ /**
98
+ * @description Whether the message has been seen
99
+ * @example false
100
+ */
101
+ isSeen: boolean;
102
+ /**
103
+ * @description Security classification of the message
104
+ * @example confidential
105
+ * @enum {unknown}
106
+ */
107
+ security: "public" | "confidential";
108
+ /**
109
+ * @description Attachment identifiers
110
+ * @example []
111
+ */
112
+ attachments: string[];
113
+ /**
114
+ * @description External reference identifier for the message, if any
115
+ * @example ext-ref-001
116
+ */
117
+ externalId: string | null;
118
+ /**
119
+ * @description Optional gateway metadata associated with the message
120
+ * @example null
121
+ */
122
+ metadata?: {
123
+ /**
124
+ * @description Journey context associated with this message
125
+ * @example {
126
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
127
+ * }
128
+ */
129
+ journey?: {
130
+ /**
131
+ * @description Identifier of the journey that triggered this message
132
+ * @example 11111111-1111-1111-1111-111111111111
133
+ */
134
+ journeyId?: string;
135
+ /**
136
+ * @description Identifier of the journey submission linked to this message
137
+ * @example 22222222-2222-2222-2222-222222222222
138
+ */
139
+ submissionId: string;
140
+ };
141
+ } | null;
142
+ };
143
+ metadata?: {
144
+ /** @description Object containing the links to the related endpoints */
145
+ links?: {
146
+ /**
147
+ * @description Object containing the URL link
148
+ * @example {
149
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
150
+ * }
151
+ */
152
+ self: {
153
+ /** @description URL pointing to the request itself */
154
+ href?: string;
155
+ };
156
+ /**
157
+ * @description Object containing the URL link
158
+ * @example {
159
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=40&limit=20"
160
+ * }
161
+ */
162
+ next?: {
163
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
164
+ href?: string;
165
+ };
166
+ /**
167
+ * @description Object containing the URL link
168
+ * @example {
169
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
170
+ * }
171
+ */
172
+ prev?: {
173
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
174
+ href?: string;
175
+ };
176
+ /**
177
+ * @description Object containing the URL link
178
+ * @example {
179
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
180
+ * }
181
+ */
182
+ first: {
183
+ /** @description URL pointing to the first page of results in a paginated response */
184
+ href?: string;
185
+ };
186
+ /**
187
+ * @description Object containing the URL link
188
+ * @example {
189
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=120&limit=20"
190
+ * }
191
+ */
192
+ last: {
193
+ /** @description URL pointing to the last page of results in a paginated response */
194
+ href?: string;
195
+ };
196
+ /**
197
+ * @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2'
198
+ * @example {
199
+ * "page1": {
200
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
201
+ * },
202
+ * "page2": {
203
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
204
+ * }
205
+ * }
206
+ */
207
+ pages: {
208
+ [key: string]: {
209
+ href?: string;
210
+ };
211
+ };
212
+ };
213
+ /**
214
+ * @description Number representing the total number of available items
215
+ * @example 150
216
+ */
217
+ totalCount?: number;
218
+ };
219
+ };
220
+ };
221
+ };
222
+ /** @description Default Response */
223
+ 400: {
224
+ headers: {
225
+ [name: string]: unknown;
226
+ };
227
+ content: {
228
+ "application/json": {
229
+ /** @description Code used to categorize the error */
230
+ code: string;
231
+ /** @description Description of the error */
232
+ detail: string;
233
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
234
+ requestId: string;
235
+ /** @description Name of the error type */
236
+ name: string;
237
+ /** @description List of the validation errors */
238
+ validation?: {
239
+ fieldName: string;
240
+ message: string;
241
+ }[];
242
+ validationContext?: string;
243
+ statusCode: number;
244
+ };
245
+ };
246
+ };
247
+ /** @description Default Response */
248
+ 401: {
249
+ headers: {
250
+ [name: string]: unknown;
251
+ };
252
+ content: {
253
+ "application/json": {
254
+ /** @description Code used to categorize the error */
255
+ code: string;
256
+ /** @description Description of the error */
257
+ detail: string;
258
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
259
+ requestId: string;
260
+ /** @description Name of the error type */
261
+ name: string;
262
+ /** @description List of the validation errors */
263
+ validation?: {
264
+ fieldName: string;
265
+ message: string;
266
+ }[];
267
+ validationContext?: string;
268
+ statusCode: number;
269
+ };
270
+ };
271
+ };
272
+ /** @description Default Response */
273
+ 403: {
274
+ headers: {
275
+ [name: string]: unknown;
276
+ };
277
+ content: {
278
+ "application/json": {
279
+ /** @description Code used to categorize the error */
280
+ code: string;
281
+ /** @description Description of the error */
282
+ detail: string;
283
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
284
+ requestId: string;
285
+ /** @description Name of the error type */
286
+ name: string;
287
+ /** @description List of the validation errors */
288
+ validation?: {
289
+ fieldName: string;
290
+ message: string;
291
+ }[];
292
+ validationContext?: string;
293
+ statusCode: number;
294
+ };
295
+ };
296
+ };
297
+ /** @description Default Response */
298
+ 404: {
299
+ headers: {
300
+ [name: string]: unknown;
301
+ };
302
+ content: {
303
+ "application/json": {
304
+ /** @description Code used to categorize the error */
305
+ code: string;
306
+ /** @description Description of the error */
307
+ detail: string;
308
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
309
+ requestId: string;
310
+ /** @description Name of the error type */
311
+ name: string;
312
+ /** @description List of the validation errors */
313
+ validation?: {
314
+ fieldName: string;
315
+ message: string;
316
+ }[];
317
+ validationContext?: string;
318
+ statusCode: number;
319
+ };
320
+ };
321
+ };
322
+ /** @description Default Response */
323
+ 422: {
324
+ headers: {
325
+ [name: string]: unknown;
326
+ };
327
+ content: {
328
+ "application/json": {
329
+ /** @description Code used to categorize the error */
330
+ code: string;
331
+ /** @description Description of the error */
332
+ detail: string;
333
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
334
+ requestId: string;
335
+ /** @description Name of the error type */
336
+ name: string;
337
+ /** @description List of the validation errors */
338
+ validation?: {
339
+ fieldName: string;
340
+ message: string;
341
+ }[];
342
+ validationContext?: string;
343
+ statusCode: number;
344
+ };
345
+ };
346
+ };
347
+ /** @description Default Response */
348
+ 500: {
349
+ headers: {
350
+ [name: string]: unknown;
351
+ };
352
+ content: {
353
+ "application/json": {
354
+ /** @description Code used to categorize the error */
355
+ code: string;
356
+ /** @description Description of the error */
357
+ detail: string;
358
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
359
+ requestId: string;
360
+ /** @description Name of the error type */
361
+ name: string;
362
+ /** @description List of the validation errors */
363
+ validation?: {
364
+ fieldName: string;
365
+ message: string;
366
+ }[];
367
+ validationContext?: string;
368
+ statusCode: number;
369
+ };
370
+ };
371
+ };
372
+ /** @description Default Response */
373
+ 502: {
374
+ headers: {
375
+ [name: string]: unknown;
376
+ };
377
+ content: {
378
+ "application/json": {
379
+ /** @description Code used to categorize the error */
380
+ code: string;
381
+ /** @description Description of the error */
382
+ detail: string;
383
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
384
+ requestId: string;
385
+ /** @description Name of the error type */
386
+ name: string;
387
+ /** @description List of the validation errors */
388
+ validation?: {
389
+ fieldName: string;
390
+ message: string;
391
+ }[];
392
+ validationContext?: string;
393
+ statusCode: number;
394
+ };
395
+ };
396
+ };
397
+ };
398
+ };
399
+ put?: never;
400
+ post?: never;
401
+ delete?: never;
402
+ options?: never;
403
+ head?: never;
404
+ patch?: never;
405
+ trace?: never;
406
+ };
407
+ "/api/v1/citizens/messages/": {
408
+ parameters: {
409
+ query?: never;
410
+ header?: never;
411
+ path?: never;
412
+ cookie?: never;
413
+ };
414
+ /** @description Get paginated messages for the authenticated citizen */
415
+ get: {
416
+ parameters: {
417
+ query?: {
418
+ /** @description Indicates where to start fetching data or how many records to skip, defining the initial position within the list */
419
+ offset?: string;
420
+ /** @description Indicates the maximum number (100) of items that will be returned in a single request */
421
+ limit?: string;
422
+ /**
423
+ * @description Filter by subject text
424
+ * @example Welcome
425
+ */
426
+ search?: string;
427
+ /**
428
+ * @description Return only messages linked to the given journey submission
429
+ * @example sub-uuid-456
430
+ */
431
+ submissionId?: string;
432
+ /**
433
+ * @description Filter by message seen status
434
+ * @example true
435
+ */
436
+ isSeen?: "true" | "false" | "1" | "0";
437
+ /**
438
+ * @description Return messages deleted after this timestamp
439
+ * @example 2025-11-01T00:00:00Z
440
+ */
441
+ deletedAfterDateTime?: string;
442
+ /**
443
+ * @description Include stored gateway metadata for each message
444
+ * @example true
445
+ */
446
+ includeMetadata?: "true" | "false" | "1" | "0";
447
+ };
448
+ header?: never;
449
+ path?: never;
450
+ cookie?: never;
451
+ };
452
+ requestBody?: never;
453
+ responses: {
454
+ /** @description Default Response */
455
+ 200: {
456
+ headers: {
457
+ [name: string]: unknown;
458
+ };
459
+ content: {
460
+ "application/json": {
461
+ data: {
462
+ /**
463
+ * @description Unique Id of the message
464
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
465
+ */
466
+ id: string;
467
+ /**
468
+ * @description Subject
469
+ * @example Welcome to MessagingIE
470
+ */
471
+ subject: string;
472
+ /**
473
+ * Format: date-time
474
+ * @description Creation date time
475
+ * @example 2025-11-25T14:30:00Z
476
+ */
477
+ createdAt: string;
478
+ /**
479
+ * @description Thread name the message belongs to, if any
480
+ * @example Support Thread
481
+ */
482
+ threadName: string | null;
483
+ /**
484
+ * @description Organisation sender id
485
+ * @example f6a7b8c9-d0e1-2345-f123-456789012345
486
+ */
487
+ organisationId: string;
488
+ /**
489
+ * @description Unique id of the recipient
490
+ * @example b2c3d4e5-f6a7-8901-bcde-f12345678901
491
+ */
492
+ recipientUserId: string;
493
+ /**
494
+ * @description Number of attachments
495
+ * @example 0
496
+ */
497
+ attachmentsCount: number;
498
+ /**
499
+ * @description Optional gateway metadata associated with the message
500
+ * @example null
501
+ */
502
+ metadata?: {
503
+ /**
504
+ * @description Journey context associated with this message
505
+ * @example {
506
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
507
+ * }
508
+ */
509
+ journey?: {
510
+ /**
511
+ * @description Identifier of the journey that triggered this message
512
+ * @example 11111111-1111-1111-1111-111111111111
513
+ */
514
+ journeyId?: string;
515
+ /**
516
+ * @description Identifier of the journey submission linked to this message
517
+ * @example 22222222-2222-2222-2222-222222222222
518
+ */
519
+ submissionId: string;
520
+ };
521
+ } | null;
522
+ }[];
523
+ metadata?: {
524
+ /** @description Object containing the links to the related endpoints */
525
+ links?: {
526
+ /**
527
+ * @description Object containing the URL link
528
+ * @example {
529
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
530
+ * }
531
+ */
532
+ self: {
533
+ /** @description URL pointing to the request itself */
534
+ href?: string;
535
+ };
536
+ /**
537
+ * @description Object containing the URL link
538
+ * @example {
539
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=40&limit=20"
540
+ * }
541
+ */
542
+ next?: {
543
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
544
+ href?: string;
545
+ };
546
+ /**
547
+ * @description Object containing the URL link
548
+ * @example {
549
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
550
+ * }
551
+ */
552
+ prev?: {
553
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
554
+ href?: string;
555
+ };
556
+ /**
557
+ * @description Object containing the URL link
558
+ * @example {
559
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
560
+ * }
561
+ */
562
+ first: {
563
+ /** @description URL pointing to the first page of results in a paginated response */
564
+ href?: string;
565
+ };
566
+ /**
567
+ * @description Object containing the URL link
568
+ * @example {
569
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=120&limit=20"
570
+ * }
571
+ */
572
+ last: {
573
+ /** @description URL pointing to the last page of results in a paginated response */
574
+ href?: string;
575
+ };
576
+ /**
577
+ * @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2'
578
+ * @example {
579
+ * "page1": {
580
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
581
+ * },
582
+ * "page2": {
583
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
584
+ * }
585
+ * }
586
+ */
587
+ pages: {
588
+ [key: string]: {
589
+ href?: string;
590
+ };
591
+ };
592
+ };
593
+ /**
594
+ * @description Number representing the total number of available items
595
+ * @example 150
596
+ */
597
+ totalCount?: number;
598
+ };
599
+ };
600
+ };
601
+ };
602
+ /** @description Default Response */
603
+ 400: {
604
+ headers: {
605
+ [name: string]: unknown;
606
+ };
607
+ content: {
608
+ "application/json": {
609
+ /** @description Code used to categorize the error */
610
+ code: string;
611
+ /** @description Description of the error */
612
+ detail: string;
613
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
614
+ requestId: string;
615
+ /** @description Name of the error type */
616
+ name: string;
617
+ /** @description List of the validation errors */
618
+ validation?: {
619
+ fieldName: string;
620
+ message: string;
621
+ }[];
622
+ validationContext?: string;
623
+ statusCode: number;
624
+ };
625
+ };
626
+ };
627
+ /** @description Default Response */
628
+ 401: {
629
+ headers: {
630
+ [name: string]: unknown;
631
+ };
632
+ content: {
633
+ "application/json": {
634
+ /** @description Code used to categorize the error */
635
+ code: string;
636
+ /** @description Description of the error */
637
+ detail: string;
638
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
639
+ requestId: string;
640
+ /** @description Name of the error type */
641
+ name: string;
642
+ /** @description List of the validation errors */
643
+ validation?: {
644
+ fieldName: string;
645
+ message: string;
646
+ }[];
647
+ validationContext?: string;
648
+ statusCode: number;
649
+ };
650
+ };
651
+ };
652
+ /** @description Default Response */
653
+ 403: {
654
+ headers: {
655
+ [name: string]: unknown;
656
+ };
657
+ content: {
658
+ "application/json": {
659
+ /** @description Code used to categorize the error */
660
+ code: string;
661
+ /** @description Description of the error */
662
+ detail: string;
663
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
664
+ requestId: string;
665
+ /** @description Name of the error type */
666
+ name: string;
667
+ /** @description List of the validation errors */
668
+ validation?: {
669
+ fieldName: string;
670
+ message: string;
671
+ }[];
672
+ validationContext?: string;
673
+ statusCode: number;
674
+ };
675
+ };
676
+ };
677
+ /** @description Default Response */
678
+ 422: {
679
+ headers: {
680
+ [name: string]: unknown;
681
+ };
682
+ content: {
683
+ "application/json": {
684
+ /** @description Code used to categorize the error */
685
+ code: string;
686
+ /** @description Description of the error */
687
+ detail: string;
688
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
689
+ requestId: string;
690
+ /** @description Name of the error type */
691
+ name: string;
692
+ /** @description List of the validation errors */
693
+ validation?: {
694
+ fieldName: string;
695
+ message: string;
696
+ }[];
697
+ validationContext?: string;
698
+ statusCode: number;
699
+ };
700
+ };
701
+ };
702
+ /** @description Default Response */
703
+ 500: {
704
+ headers: {
705
+ [name: string]: unknown;
706
+ };
707
+ content: {
708
+ "application/json": {
709
+ /** @description Code used to categorize the error */
710
+ code: string;
711
+ /** @description Description of the error */
712
+ detail: string;
713
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
714
+ requestId: string;
715
+ /** @description Name of the error type */
716
+ name: string;
717
+ /** @description List of the validation errors */
718
+ validation?: {
719
+ fieldName: string;
720
+ message: string;
721
+ }[];
722
+ validationContext?: string;
723
+ statusCode: number;
724
+ };
725
+ };
726
+ };
727
+ /** @description Default Response */
728
+ 502: {
729
+ headers: {
730
+ [name: string]: unknown;
731
+ };
732
+ content: {
733
+ "application/json": {
734
+ /** @description Code used to categorize the error */
735
+ code: string;
736
+ /** @description Description of the error */
737
+ detail: string;
738
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
739
+ requestId: string;
740
+ /** @description Name of the error type */
741
+ name: string;
742
+ /** @description List of the validation errors */
743
+ validation?: {
744
+ fieldName: string;
745
+ message: string;
746
+ }[];
747
+ validationContext?: string;
748
+ statusCode: number;
749
+ };
750
+ };
751
+ };
752
+ };
753
+ };
754
+ put?: never;
755
+ post?: never;
756
+ delete?: never;
757
+ options?: never;
758
+ head?: never;
759
+ patch?: never;
760
+ trace?: never;
761
+ };
762
+ "/api/v1/citizens/messages/consent": {
763
+ parameters: {
764
+ query?: never;
765
+ header?: never;
766
+ path?: never;
767
+ cookie?: never;
768
+ };
769
+ get?: never;
770
+ put?: never;
771
+ /** @description Persist consent for normalized message metadata */
772
+ post: {
773
+ parameters: {
774
+ query?: never;
775
+ header?: never;
776
+ path?: never;
777
+ cookie?: never;
778
+ };
779
+ requestBody: {
780
+ content: {
781
+ "application/json": {
782
+ /**
783
+ * @description Organisation identifier the consent applies to
784
+ * @example testing-org
785
+ */
786
+ organizationId: string;
787
+ /**
788
+ * @description Gateway-level metadata associated with a message
789
+ * @example {
790
+ * "journey": {
791
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
792
+ * }
793
+ * }
794
+ */
795
+ metadata: {
796
+ /**
797
+ * @description Journey context associated with this message
798
+ * @example {
799
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
800
+ * }
801
+ */
802
+ journey?: {
803
+ /**
804
+ * @description Identifier of the journey that triggered this message
805
+ * @example 11111111-1111-1111-1111-111111111111
806
+ */
807
+ journeyId?: string;
808
+ /**
809
+ * @description Identifier of the journey submission linked to this message
810
+ * @example 22222222-2222-2222-2222-222222222222
811
+ */
812
+ submissionId: string;
813
+ };
814
+ };
815
+ };
816
+ };
817
+ };
818
+ responses: {
819
+ /** @description Default Response */
820
+ 200: {
821
+ headers: {
822
+ [name: string]: unknown;
823
+ };
824
+ content: {
825
+ "application/json": {
826
+ /**
827
+ * @description Record of normalised message metadata consent submitted by an organisation
828
+ * @example {
829
+ * "profileId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
830
+ * "metadata": {
831
+ * "journey": {
832
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
833
+ * }
834
+ * },
835
+ * "submittedAt": "2025-11-25T14:30:00Z"
836
+ * }
837
+ */
838
+ data: {
839
+ /**
840
+ * @description Profile identifier of the citizen who gave consent
841
+ * @example b2c3d4e5-f6a7-8901-bcde-f12345678901
842
+ */
843
+ profileId: string;
844
+ /**
845
+ * @description Gateway-level metadata associated with a message
846
+ * @example {
847
+ * "journey": {
848
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
849
+ * }
850
+ * }
851
+ */
852
+ metadata: {
853
+ /**
854
+ * @description Journey context associated with this message
855
+ * @example {
856
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
857
+ * }
858
+ */
859
+ journey?: {
860
+ /**
861
+ * @description Identifier of the journey that triggered this message
862
+ * @example 11111111-1111-1111-1111-111111111111
863
+ */
864
+ journeyId?: string;
865
+ /**
866
+ * @description Identifier of the journey submission linked to this message
867
+ * @example 22222222-2222-2222-2222-222222222222
868
+ */
869
+ submissionId: string;
870
+ };
871
+ };
872
+ /**
873
+ * Format: date-time
874
+ * @description ISO 8601 timestamp when consent was recorded
875
+ * @example 2025-11-25T14:30:00Z
876
+ */
877
+ submittedAt: string;
878
+ };
879
+ metadata?: {
880
+ /** @description Object containing the links to the related endpoints */
881
+ links?: {
882
+ /**
883
+ * @description Object containing the URL link
884
+ * @example {
885
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
886
+ * }
887
+ */
888
+ self: {
889
+ /** @description URL pointing to the request itself */
890
+ href?: string;
891
+ };
892
+ /**
893
+ * @description Object containing the URL link
894
+ * @example {
895
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=40&limit=20"
896
+ * }
897
+ */
898
+ next?: {
899
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
900
+ href?: string;
901
+ };
902
+ /**
903
+ * @description Object containing the URL link
904
+ * @example {
905
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
906
+ * }
907
+ */
908
+ prev?: {
909
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
910
+ href?: string;
911
+ };
912
+ /**
913
+ * @description Object containing the URL link
914
+ * @example {
915
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
916
+ * }
917
+ */
918
+ first: {
919
+ /** @description URL pointing to the first page of results in a paginated response */
920
+ href?: string;
921
+ };
922
+ /**
923
+ * @description Object containing the URL link
924
+ * @example {
925
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=120&limit=20"
926
+ * }
927
+ */
928
+ last: {
929
+ /** @description URL pointing to the last page of results in a paginated response */
930
+ href?: string;
931
+ };
932
+ /**
933
+ * @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2'
934
+ * @example {
935
+ * "page1": {
936
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
937
+ * },
938
+ * "page2": {
939
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
940
+ * }
941
+ * }
942
+ */
943
+ pages: {
944
+ [key: string]: {
945
+ href?: string;
946
+ };
947
+ };
948
+ };
949
+ /**
950
+ * @description Number representing the total number of available items
951
+ * @example 150
952
+ */
953
+ totalCount?: number;
954
+ };
955
+ };
956
+ };
957
+ };
958
+ /** @description Default Response */
959
+ 201: {
960
+ headers: {
961
+ [name: string]: unknown;
962
+ };
963
+ content: {
964
+ "application/json": {
965
+ /**
966
+ * @description Record of normalised message metadata consent submitted by an organisation
967
+ * @example {
968
+ * "profileId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
969
+ * "metadata": {
970
+ * "journey": {
971
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
972
+ * }
973
+ * },
974
+ * "submittedAt": "2025-11-25T14:30:00Z"
975
+ * }
976
+ */
977
+ data: {
978
+ /**
979
+ * @description Profile identifier of the citizen who gave consent
980
+ * @example b2c3d4e5-f6a7-8901-bcde-f12345678901
981
+ */
982
+ profileId: string;
983
+ /**
984
+ * @description Gateway-level metadata associated with a message
985
+ * @example {
986
+ * "journey": {
987
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
988
+ * }
989
+ * }
990
+ */
991
+ metadata: {
992
+ /**
993
+ * @description Journey context associated with this message
994
+ * @example {
995
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
996
+ * }
997
+ */
998
+ journey?: {
999
+ /**
1000
+ * @description Identifier of the journey that triggered this message
1001
+ * @example 11111111-1111-1111-1111-111111111111
1002
+ */
1003
+ journeyId?: string;
1004
+ /**
1005
+ * @description Identifier of the journey submission linked to this message
1006
+ * @example 22222222-2222-2222-2222-222222222222
1007
+ */
1008
+ submissionId: string;
1009
+ };
1010
+ };
1011
+ /**
1012
+ * Format: date-time
1013
+ * @description ISO 8601 timestamp when consent was recorded
1014
+ * @example 2025-11-25T14:30:00Z
1015
+ */
1016
+ submittedAt: string;
1017
+ };
1018
+ metadata?: {
1019
+ /** @description Object containing the links to the related endpoints */
1020
+ links?: {
1021
+ /**
1022
+ * @description Object containing the URL link
1023
+ * @example {
1024
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
1025
+ * }
1026
+ */
1027
+ self: {
1028
+ /** @description URL pointing to the request itself */
1029
+ href?: string;
1030
+ };
1031
+ /**
1032
+ * @description Object containing the URL link
1033
+ * @example {
1034
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=40&limit=20"
1035
+ * }
1036
+ */
1037
+ next?: {
1038
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
1039
+ href?: string;
1040
+ };
1041
+ /**
1042
+ * @description Object containing the URL link
1043
+ * @example {
1044
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
1045
+ * }
1046
+ */
1047
+ prev?: {
1048
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
1049
+ href?: string;
1050
+ };
1051
+ /**
1052
+ * @description Object containing the URL link
1053
+ * @example {
1054
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
1055
+ * }
1056
+ */
1057
+ first: {
1058
+ /** @description URL pointing to the first page of results in a paginated response */
1059
+ href?: string;
1060
+ };
1061
+ /**
1062
+ * @description Object containing the URL link
1063
+ * @example {
1064
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=120&limit=20"
1065
+ * }
1066
+ */
1067
+ last: {
1068
+ /** @description URL pointing to the last page of results in a paginated response */
1069
+ href?: string;
1070
+ };
1071
+ /**
1072
+ * @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2'
1073
+ * @example {
1074
+ * "page1": {
1075
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
1076
+ * },
1077
+ * "page2": {
1078
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
1079
+ * }
1080
+ * }
1081
+ */
1082
+ pages: {
1083
+ [key: string]: {
1084
+ href?: string;
1085
+ };
1086
+ };
1087
+ };
1088
+ /**
1089
+ * @description Number representing the total number of available items
1090
+ * @example 150
1091
+ */
1092
+ totalCount?: number;
1093
+ };
1094
+ };
1095
+ };
1096
+ };
1097
+ /** @description Default Response */
1098
+ 400: {
1099
+ headers: {
1100
+ [name: string]: unknown;
1101
+ };
1102
+ content: {
1103
+ "application/json": {
1104
+ /** @description Code used to categorize the error */
1105
+ code: string;
1106
+ /** @description Description of the error */
1107
+ detail: string;
1108
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1109
+ requestId: string;
1110
+ /** @description Name of the error type */
1111
+ name: string;
1112
+ /** @description List of the validation errors */
1113
+ validation?: {
1114
+ fieldName: string;
1115
+ message: string;
1116
+ }[];
1117
+ validationContext?: string;
1118
+ statusCode: number;
1119
+ };
1120
+ };
1121
+ };
1122
+ /** @description Default Response */
1123
+ 401: {
1124
+ headers: {
1125
+ [name: string]: unknown;
1126
+ };
1127
+ content: {
1128
+ "application/json": {
1129
+ /** @description Code used to categorize the error */
1130
+ code: string;
1131
+ /** @description Description of the error */
1132
+ detail: string;
1133
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1134
+ requestId: string;
1135
+ /** @description Name of the error type */
1136
+ name: string;
1137
+ /** @description List of the validation errors */
1138
+ validation?: {
1139
+ fieldName: string;
1140
+ message: string;
1141
+ }[];
1142
+ validationContext?: string;
1143
+ statusCode: number;
1144
+ };
1145
+ };
1146
+ };
1147
+ /** @description Default Response */
1148
+ 403: {
1149
+ headers: {
1150
+ [name: string]: unknown;
1151
+ };
1152
+ content: {
1153
+ "application/json": {
1154
+ /** @description Code used to categorize the error */
1155
+ code: string;
1156
+ /** @description Description of the error */
1157
+ detail: string;
1158
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1159
+ requestId: string;
1160
+ /** @description Name of the error type */
1161
+ name: string;
1162
+ /** @description List of the validation errors */
1163
+ validation?: {
1164
+ fieldName: string;
1165
+ message: string;
1166
+ }[];
1167
+ validationContext?: string;
1168
+ statusCode: number;
1169
+ };
1170
+ };
1171
+ };
1172
+ /** @description Default Response */
1173
+ 404: {
1174
+ headers: {
1175
+ [name: string]: unknown;
1176
+ };
1177
+ content: {
1178
+ "application/json": {
1179
+ /** @description Code used to categorize the error */
1180
+ code: string;
1181
+ /** @description Description of the error */
1182
+ detail: string;
1183
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1184
+ requestId: string;
1185
+ /** @description Name of the error type */
1186
+ name: string;
1187
+ /** @description List of the validation errors */
1188
+ validation?: {
1189
+ fieldName: string;
1190
+ message: string;
1191
+ }[];
1192
+ validationContext?: string;
1193
+ statusCode: number;
1194
+ };
1195
+ };
1196
+ };
1197
+ /** @description Default Response */
1198
+ 500: {
1199
+ headers: {
1200
+ [name: string]: unknown;
1201
+ };
1202
+ content: {
1203
+ "application/json": {
1204
+ /** @description Code used to categorize the error */
1205
+ code: string;
1206
+ /** @description Description of the error */
1207
+ detail: string;
1208
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1209
+ requestId: string;
1210
+ /** @description Name of the error type */
1211
+ name: string;
1212
+ /** @description List of the validation errors */
1213
+ validation?: {
1214
+ fieldName: string;
1215
+ message: string;
1216
+ }[];
1217
+ validationContext?: string;
1218
+ statusCode: number;
1219
+ };
1220
+ };
1221
+ };
1222
+ };
1223
+ };
1224
+ delete?: never;
1225
+ options?: never;
1226
+ head?: never;
1227
+ patch?: never;
1228
+ trace?: never;
1229
+ };
1230
+ "/api/v1/organisations/messages/{messageId}/events": {
1231
+ parameters: {
1232
+ query?: never;
1233
+ header?: never;
1234
+ path?: never;
1235
+ cookie?: never;
1236
+ };
1237
+ /** @description Get complete event history for a message */
1238
+ get: {
1239
+ parameters: {
1240
+ query?: never;
1241
+ header?: never;
1242
+ path: {
1243
+ /**
1244
+ * @description Unique identifier of the message whose history to retrieve
1245
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
1246
+ */
1247
+ messageId: string;
1248
+ };
1249
+ cookie?: never;
1250
+ };
1251
+ requestBody?: never;
1252
+ responses: {
1253
+ /** @description Default Response */
1254
+ 200: {
1255
+ headers: {
1256
+ [name: string]: unknown;
1257
+ };
1258
+ content: {
1259
+ "application/json": {
1260
+ data: {
1261
+ /**
1262
+ * Format: uuid
1263
+ * @description Message id
1264
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
1265
+ */
1266
+ messageId: string;
1267
+ /**
1268
+ * @description Event type description
1269
+ * @example delivered
1270
+ */
1271
+ eventType: string;
1272
+ /**
1273
+ * @description Status for event type
1274
+ * @example success
1275
+ */
1276
+ eventStatus: string;
1277
+ /**
1278
+ * @description Event-specific payload; shape depends on the event type (create, schedule, or error)
1279
+ * @example {
1280
+ * "messageId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
1281
+ * "receiverFullName": "John Doe",
1282
+ * "receiverPPSN": "1234567T",
1283
+ * "receiverUserId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
1284
+ * "subject": "Welcome to MessagingIE",
1285
+ * "language": "en",
1286
+ * "plainText": "Dear John Doe, Welcome to MessagingIE.",
1287
+ * "transports": [
1288
+ * "email"
1289
+ * ],
1290
+ * "scheduledAt": "2025-11-25T14:30:00Z",
1291
+ * "organisationName": "Department of Social Protection",
1292
+ * "security": "confidential"
1293
+ * }
1294
+ */
1295
+ data: {
1296
+ /**
1297
+ * @description Unique id of the related message
1298
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
1299
+ */
1300
+ messageId: string;
1301
+ /**
1302
+ * @description Full name of the recipient
1303
+ * @example John Doe
1304
+ */
1305
+ receiverFullName: string;
1306
+ /**
1307
+ * @description PPSN of the recipient
1308
+ * @example 1234567T
1309
+ */
1310
+ receiverPPSN: string;
1311
+ /**
1312
+ * @description User id of recipient
1313
+ * @example b2c3d4e5-f6a7-8901-bcde-f12345678901
1314
+ */
1315
+ receiverUserId: string;
1316
+ /**
1317
+ * @description Subject of the related message
1318
+ * @example Welcome to MessagingIE
1319
+ */
1320
+ subject: string;
1321
+ /**
1322
+ * @description Language of the related message
1323
+ * @example en
1324
+ */
1325
+ language: string;
1326
+ /**
1327
+ * @description Excerpt of the related message
1328
+ * @example Dear John Doe, Welcome...
1329
+ */
1330
+ excerpt?: string;
1331
+ /**
1332
+ * @description Rich text content of the related message
1333
+ * @example <p>Dear <strong>John Doe</strong>...</p>
1334
+ */
1335
+ richText?: string;
1336
+ /**
1337
+ * @description Plain text context of the related message
1338
+ * @example Dear John Doe, Welcome to MessagingIE.
1339
+ */
1340
+ plainText: string;
1341
+ /**
1342
+ * @description Thread name of the related message
1343
+ * @example Support Thread
1344
+ */
1345
+ threadName?: string;
1346
+ /**
1347
+ * @description Selected transports to send the message
1348
+ * @example [
1349
+ * "email"
1350
+ * ]
1351
+ */
1352
+ transports: string[];
1353
+ /**
1354
+ * Format: date-time
1355
+ * @description Date and time which describes when the message has to be sent
1356
+ * @example 2025-11-25T14:30:00Z
1357
+ */
1358
+ scheduledAt: string;
1359
+ /**
1360
+ * @description Unique user id of the sender
1361
+ * @example c3d4e5f6-a7b8-9012-cdef-123456789012
1362
+ */
1363
+ senderUserId?: string;
1364
+ /**
1365
+ * @description Full name of the sender
1366
+ * @example Jane Smith
1367
+ */
1368
+ senderFullName?: string;
1369
+ /**
1370
+ * @description PPSN of the sender
1371
+ * @example 9876543A
1372
+ */
1373
+ senderPPSN?: string;
1374
+ /**
1375
+ * @description Unique id of the M2M application that sent the message
1376
+ * @example d4e5f6a7-b8c9-0123-def1-234567890123
1377
+ */
1378
+ senderApplicationId?: string;
1379
+ /**
1380
+ * @description Organisation related to the sender
1381
+ * @example Department of Social Protection
1382
+ */
1383
+ organisationName: string;
1384
+ /**
1385
+ * @description Security classification of the message: 'public' to show the original message in the sent email, 'confidential' to show the content only after login in MessagingIE
1386
+ * @example confidential
1387
+ * @enum {unknown}
1388
+ */
1389
+ security: "public" | "confidential";
1390
+ } | {
1391
+ /**
1392
+ * @description Unique id of the related message
1393
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
1394
+ */
1395
+ messageId: string;
1396
+ /**
1397
+ * @description Unique id of the job
1398
+ * @example e5f6a7b8-c9d0-1234-ef12-345678901234
1399
+ */
1400
+ jobId: string;
1401
+ } | {
1402
+ /**
1403
+ * @description Unique id of the related message
1404
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
1405
+ */
1406
+ messageId: string;
1407
+ };
1408
+ /**
1409
+ * Format: date-time
1410
+ * @description Date and time which describes when the event has been recorded
1411
+ * @example 2025-11-25T14:30:05Z
1412
+ */
1413
+ createdAt: string;
1414
+ }[];
1415
+ metadata?: {
1416
+ /** @description Object containing the links to the related endpoints */
1417
+ links?: {
1418
+ /**
1419
+ * @description Object containing the URL link
1420
+ * @example {
1421
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
1422
+ * }
1423
+ */
1424
+ self: {
1425
+ /** @description URL pointing to the request itself */
1426
+ href?: string;
1427
+ };
1428
+ /**
1429
+ * @description Object containing the URL link
1430
+ * @example {
1431
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=40&limit=20"
1432
+ * }
1433
+ */
1434
+ next?: {
1435
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
1436
+ href?: string;
1437
+ };
1438
+ /**
1439
+ * @description Object containing the URL link
1440
+ * @example {
1441
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
1442
+ * }
1443
+ */
1444
+ prev?: {
1445
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
1446
+ href?: string;
1447
+ };
1448
+ /**
1449
+ * @description Object containing the URL link
1450
+ * @example {
1451
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
1452
+ * }
1453
+ */
1454
+ first: {
1455
+ /** @description URL pointing to the first page of results in a paginated response */
1456
+ href?: string;
1457
+ };
1458
+ /**
1459
+ * @description Object containing the URL link
1460
+ * @example {
1461
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=120&limit=20"
1462
+ * }
1463
+ */
1464
+ last: {
1465
+ /** @description URL pointing to the last page of results in a paginated response */
1466
+ href?: string;
1467
+ };
1468
+ /**
1469
+ * @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2'
1470
+ * @example {
1471
+ * "page1": {
1472
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
1473
+ * },
1474
+ * "page2": {
1475
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
1476
+ * }
1477
+ * }
1478
+ */
1479
+ pages: {
1480
+ [key: string]: {
1481
+ href?: string;
1482
+ };
1483
+ };
1484
+ };
1485
+ /**
1486
+ * @description Number representing the total number of available items
1487
+ * @example 150
1488
+ */
1489
+ totalCount?: number;
1490
+ };
1491
+ };
1492
+ };
1493
+ };
1494
+ /** @description Default Response */
1495
+ 401: {
1496
+ headers: {
1497
+ [name: string]: unknown;
1498
+ };
1499
+ content: {
1500
+ "application/json": {
1501
+ /** @description Code used to categorize the error */
1502
+ code: string;
1503
+ /** @description Description of the error */
1504
+ detail: string;
1505
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1506
+ requestId: string;
1507
+ /** @description Name of the error type */
1508
+ name: string;
1509
+ /** @description List of the validation errors */
1510
+ validation?: {
1511
+ fieldName: string;
1512
+ message: string;
1513
+ }[];
1514
+ validationContext?: string;
1515
+ statusCode: number;
1516
+ };
1517
+ };
1518
+ };
1519
+ /** @description Default Response */
1520
+ 403: {
1521
+ headers: {
1522
+ [name: string]: unknown;
1523
+ };
1524
+ content: {
1525
+ "application/json": {
1526
+ /** @description Code used to categorize the error */
1527
+ code: string;
1528
+ /** @description Description of the error */
1529
+ detail: string;
1530
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1531
+ requestId: string;
1532
+ /** @description Name of the error type */
1533
+ name: string;
1534
+ /** @description List of the validation errors */
1535
+ validation?: {
1536
+ fieldName: string;
1537
+ message: string;
1538
+ }[];
1539
+ validationContext?: string;
1540
+ statusCode: number;
1541
+ };
1542
+ };
1543
+ };
1544
+ /** @description Default Response */
1545
+ 404: {
1546
+ headers: {
1547
+ [name: string]: unknown;
1548
+ };
1549
+ content: {
1550
+ "application/json": {
1551
+ /** @description Code used to categorize the error */
1552
+ code: string;
1553
+ /** @description Description of the error */
1554
+ detail: string;
1555
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1556
+ requestId: string;
1557
+ /** @description Name of the error type */
1558
+ name: string;
1559
+ /** @description List of the validation errors */
1560
+ validation?: {
1561
+ fieldName: string;
1562
+ message: string;
1563
+ }[];
1564
+ validationContext?: string;
1565
+ statusCode: number;
1566
+ };
1567
+ };
1568
+ };
1569
+ /** @description Default Response */
1570
+ 500: {
1571
+ headers: {
1572
+ [name: string]: unknown;
1573
+ };
1574
+ content: {
1575
+ "application/json": {
1576
+ /** @description Code used to categorize the error */
1577
+ code: string;
1578
+ /** @description Description of the error */
1579
+ detail: string;
1580
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1581
+ requestId: string;
1582
+ /** @description Name of the error type */
1583
+ name: string;
1584
+ /** @description List of the validation errors */
1585
+ validation?: {
1586
+ fieldName: string;
1587
+ message: string;
1588
+ }[];
1589
+ validationContext?: string;
1590
+ statusCode: number;
1591
+ };
1592
+ };
1593
+ };
1594
+ };
1595
+ };
1596
+ put?: never;
1597
+ post?: never;
1598
+ delete?: never;
1599
+ options?: never;
1600
+ head?: never;
1601
+ patch?: never;
1602
+ trace?: never;
1603
+ };
1604
+ "/api/v1/organisations/messages/events": {
1605
+ parameters: {
1606
+ query?: never;
1607
+ header?: never;
1608
+ path?: never;
1609
+ cookie?: never;
1610
+ };
1611
+ get?: never;
1612
+ put?: never;
1613
+ /** @description Get latest event for a list of messages with pagination, filters, and HATEOAS links */
1614
+ post: {
1615
+ parameters: {
1616
+ query?: {
1617
+ /** @description Indicates where to start fetching data or how many records to skip, defining the initial position within the list */
1618
+ offset?: string;
1619
+ /** @description Indicates the maximum number (100) of items that will be returned in a single request */
1620
+ limit?: string;
1621
+ };
1622
+ header?: never;
1623
+ path?: never;
1624
+ cookie?: never;
1625
+ };
1626
+ /** @description Filter criteria for retrieving the latest message event */
1627
+ requestBody: {
1628
+ content: {
1629
+ /**
1630
+ * @example {
1631
+ * "recipientEmail": "john.doe@example.com",
1632
+ * "subjectContains": "Welcome",
1633
+ * "dateFrom": "2025-11-01",
1634
+ * "dateTo": "2025-11-30",
1635
+ * "status": "delivered"
1636
+ * }
1637
+ */
1638
+ "application/json": {
1639
+ /**
1640
+ * Format: email
1641
+ * @description Filter events by recipient email address
1642
+ * @example john.doe@example.com
1643
+ */
1644
+ recipientEmail?: string;
1645
+ /**
1646
+ * @description Filter events by recipient profile identifier
1647
+ * @example b2c3d4e5-f6a7-8901-bcde-f12345678901
1648
+ */
1649
+ recipientId?: string;
1650
+ /**
1651
+ * @description Filter events where the subject contains this substring
1652
+ * @example Welcome
1653
+ */
1654
+ subjectContains?: string;
1655
+ /**
1656
+ * Format: date
1657
+ * @description Return events on or after this date (YYYY-MM-DD)
1658
+ * @example 2025-11-01
1659
+ */
1660
+ dateFrom?: string;
1661
+ /**
1662
+ * Format: date
1663
+ * @description Return events on or before this date (YYYY-MM-DD)
1664
+ * @example 2025-11-30
1665
+ */
1666
+ dateTo?: string;
1667
+ /**
1668
+ * @description Filter events by status
1669
+ * @example delivered
1670
+ * @enum {unknown}
1671
+ */
1672
+ status?: "delivered" | "scheduled" | "opened" | "failed";
1673
+ };
1674
+ };
1675
+ };
1676
+ responses: {
1677
+ /** @description Default Response */
1678
+ 200: {
1679
+ headers: {
1680
+ [name: string]: unknown;
1681
+ };
1682
+ content: {
1683
+ "application/json": {
1684
+ data: {
1685
+ /**
1686
+ * Format: uuid
1687
+ * @description Unique id of the event
1688
+ * @example e1f2e3f4-a5b6-7890-abcd-ef1234567890
1689
+ */
1690
+ id: string;
1691
+ /**
1692
+ * Format: uuid
1693
+ * @description Unique id of the related message
1694
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
1695
+ */
1696
+ messageId: string;
1697
+ /**
1698
+ * @description Subject of the related message
1699
+ * @example Welcome to MessagingIE
1700
+ */
1701
+ subject: string;
1702
+ /**
1703
+ * @description Full name of the recipient
1704
+ * @example John Doe
1705
+ */
1706
+ receiverFullName: string;
1707
+ /**
1708
+ * @description Event type description
1709
+ * @example delivered
1710
+ */
1711
+ eventType: string;
1712
+ /**
1713
+ * @description Status for event type
1714
+ * @example success
1715
+ */
1716
+ eventStatus: string;
1717
+ /**
1718
+ * @description Date and time which describes when the message has to be sent
1719
+ * @example 2025-11-25T14:30:00Z
1720
+ */
1721
+ scheduledAt: string;
1722
+ }[];
1723
+ metadata?: {
1724
+ /** @description Object containing the links to the related endpoints */
1725
+ links?: {
1726
+ /**
1727
+ * @description Object containing the URL link
1728
+ * @example {
1729
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
1730
+ * }
1731
+ */
1732
+ self: {
1733
+ /** @description URL pointing to the request itself */
1734
+ href?: string;
1735
+ };
1736
+ /**
1737
+ * @description Object containing the URL link
1738
+ * @example {
1739
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=40&limit=20"
1740
+ * }
1741
+ */
1742
+ next?: {
1743
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
1744
+ href?: string;
1745
+ };
1746
+ /**
1747
+ * @description Object containing the URL link
1748
+ * @example {
1749
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
1750
+ * }
1751
+ */
1752
+ prev?: {
1753
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
1754
+ href?: string;
1755
+ };
1756
+ /**
1757
+ * @description Object containing the URL link
1758
+ * @example {
1759
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
1760
+ * }
1761
+ */
1762
+ first: {
1763
+ /** @description URL pointing to the first page of results in a paginated response */
1764
+ href?: string;
1765
+ };
1766
+ /**
1767
+ * @description Object containing the URL link
1768
+ * @example {
1769
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=120&limit=20"
1770
+ * }
1771
+ */
1772
+ last: {
1773
+ /** @description URL pointing to the last page of results in a paginated response */
1774
+ href?: string;
1775
+ };
1776
+ /**
1777
+ * @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2'
1778
+ * @example {
1779
+ * "page1": {
1780
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
1781
+ * },
1782
+ * "page2": {
1783
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
1784
+ * }
1785
+ * }
1786
+ */
1787
+ pages: {
1788
+ [key: string]: {
1789
+ href?: string;
1790
+ };
1791
+ };
1792
+ };
1793
+ /**
1794
+ * @description Number representing the total number of available items
1795
+ * @example 150
1796
+ */
1797
+ totalCount?: number;
1798
+ };
1799
+ };
1800
+ };
1801
+ };
1802
+ /** @description Default Response */
1803
+ 401: {
1804
+ headers: {
1805
+ [name: string]: unknown;
1806
+ };
1807
+ content: {
1808
+ "application/json": {
1809
+ /** @description Code used to categorize the error */
1810
+ code: string;
1811
+ /** @description Description of the error */
1812
+ detail: string;
1813
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1814
+ requestId: string;
1815
+ /** @description Name of the error type */
1816
+ name: string;
1817
+ /** @description List of the validation errors */
1818
+ validation?: {
1819
+ fieldName: string;
1820
+ message: string;
1821
+ }[];
1822
+ validationContext?: string;
1823
+ statusCode: number;
1824
+ };
1825
+ };
1826
+ };
1827
+ /** @description Default Response */
1828
+ 403: {
1829
+ headers: {
1830
+ [name: string]: unknown;
1831
+ };
1832
+ content: {
1833
+ "application/json": {
1834
+ /** @description Code used to categorize the error */
1835
+ code: string;
1836
+ /** @description Description of the error */
1837
+ detail: string;
1838
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1839
+ requestId: string;
1840
+ /** @description Name of the error type */
1841
+ name: string;
1842
+ /** @description List of the validation errors */
1843
+ validation?: {
1844
+ fieldName: string;
1845
+ message: string;
1846
+ }[];
1847
+ validationContext?: string;
1848
+ statusCode: number;
1849
+ };
1850
+ };
1851
+ };
1852
+ /** @description Default Response */
1853
+ 500: {
1854
+ headers: {
1855
+ [name: string]: unknown;
1856
+ };
1857
+ content: {
1858
+ "application/json": {
1859
+ /** @description Code used to categorize the error */
1860
+ code: string;
1861
+ /** @description Description of the error */
1862
+ detail: string;
1863
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1864
+ requestId: string;
1865
+ /** @description Name of the error type */
1866
+ name: string;
1867
+ /** @description List of the validation errors */
1868
+ validation?: {
1869
+ fieldName: string;
1870
+ message: string;
1871
+ }[];
1872
+ validationContext?: string;
1873
+ statusCode: number;
1874
+ };
1875
+ };
1876
+ };
1877
+ };
1878
+ };
1879
+ delete?: never;
1880
+ options?: never;
1881
+ head?: never;
1882
+ patch?: never;
1883
+ trace?: never;
1884
+ };
1885
+ "/api/v1/organisations/messages/": {
1886
+ parameters: {
1887
+ query?: never;
1888
+ header?: never;
1889
+ path?: never;
1890
+ cookie?: never;
1891
+ };
1892
+ get?: never;
1893
+ put?: never;
1894
+ /** @description Send a message with optional attachments (multipart/form-data) */
1895
+ post: {
1896
+ parameters: {
1897
+ query?: never;
1898
+ header?: never;
1899
+ path?: never;
1900
+ cookie?: never;
1901
+ };
1902
+ /** @description Request body for sending a new message */
1903
+ requestBody: {
1904
+ content: {
1905
+ /**
1906
+ * @example {
1907
+ * "subject": "Welcome to MessagingIE",
1908
+ * "plainTextBody": "Dear John Doe, Welcome to MessagingIE.",
1909
+ * "securityLevel": "confidential",
1910
+ * "language": "en",
1911
+ * "scheduledAt": "2025-11-25T14:30:00Z",
1912
+ * "recipient": {
1913
+ * "type": "profileId",
1914
+ * "profileId": "frehui776"
1915
+ * }
1916
+ * }
1917
+ */
1918
+ "multipart/form-data": {
1919
+ /**
1920
+ * @description Message subject line (1-500 characters)
1921
+ * @example Welcome to MessagingIE
1922
+ */
1923
+ subject: string;
1924
+ /**
1925
+ * @description Plain text version of the message body
1926
+ * @example Dear John Doe, Welcome to MessagingIE.
1927
+ */
1928
+ plainTextBody: string;
1929
+ /**
1930
+ * @description HTML version of the message body (optional)
1931
+ * @example <p>Dear <strong>John Doe</strong>,</p><p>Welcome to MessagingIE.</p>
1932
+ */
1933
+ htmlBody?: string;
1934
+ /**
1935
+ * @description Security classification of the message: 'public' to show the original message in the sent email, 'confidential' to show the content only after login in MessagingIE
1936
+ * @example confidential
1937
+ * @enum {unknown}
1938
+ */
1939
+ securityLevel: "public" | "confidential";
1940
+ /**
1941
+ * @description Message language: 'en' for English, 'ga' for Irish (Gaeilge)
1942
+ * @example en
1943
+ * @enum {unknown}
1944
+ */
1945
+ language: "en" | "ga";
1946
+ /**
1947
+ * Format: date-time
1948
+ * @description ISO 8601 timestamp (Europe/Dublin TZ assumed)
1949
+ * @example 2025-11-25T14:30:00Z
1950
+ */
1951
+ scheduledAt: string;
1952
+ /**
1953
+ * @description Recipient of the message; one of email, identity (PPSN+DOB), or profile-id variants
1954
+ * @example {
1955
+ * "type": "profileId",
1956
+ * "profileId": "frehui776"
1957
+ * }
1958
+ */
1959
+ recipient: {
1960
+ /**
1961
+ * @description Recipient type identifier for email-based recipients
1962
+ * @example email
1963
+ * @enum {string}
1964
+ */
1965
+ type: "email";
1966
+ /**
1967
+ * @description Recipient's first name
1968
+ * @example John
1969
+ */
1970
+ firstName: string;
1971
+ /**
1972
+ * @description Recipient's last name
1973
+ * @example Doe
1974
+ */
1975
+ lastName: string;
1976
+ /**
1977
+ * Format: email
1978
+ * @description Recipient's email address
1979
+ * @example john.doe@example.ie
1980
+ */
1981
+ email: string;
1982
+ /**
1983
+ * @description Personal Public Service Number (optional for email recipients)
1984
+ * @example 1234567T
1985
+ */
1986
+ ppsn?: string;
1987
+ /**
1988
+ * Format: date
1989
+ * @description Recipient's date of birth in YYYY-MM-DD format (optional for email recipients)
1990
+ * @example 1985-03-15
1991
+ */
1992
+ dateOfBirth?: string;
1993
+ } | {
1994
+ /**
1995
+ * @description Recipient type identifier for identity-based recipients
1996
+ * @example identity
1997
+ * @enum {string}
1998
+ */
1999
+ type: "identity";
2000
+ /**
2001
+ * @description Personal Public Service Number (required for identity recipients)
2002
+ * @example 1234567T
2003
+ */
2004
+ ppsn: string;
2005
+ /**
2006
+ * Format: date
2007
+ * @description Recipient's date of birth in YYYY-MM-DD format (required for identity recipients)
2008
+ * @example 1985-03-15
2009
+ */
2010
+ dateOfBirth: string;
2011
+ } | {
2012
+ /**
2013
+ * @description Recipient type identifier for profile-id recipients
2014
+ * @example profileId
2015
+ * @enum {string}
2016
+ */
2017
+ type: "profileId";
2018
+ /**
2019
+ * @description Profile identifier supplied by the caller; the gateway forwards it without profile lookup
2020
+ * @example frehui776
2021
+ */
2022
+ profileId: string;
2023
+ };
2024
+ /**
2025
+ * @description Gateway-level metadata associated with a message
2026
+ * @example {
2027
+ * "journey": {
2028
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
2029
+ * }
2030
+ * }
2031
+ */
2032
+ metadata?: {
2033
+ /**
2034
+ * @description Journey context associated with this message
2035
+ * @example {
2036
+ * "submissionId": "22222222-2222-2222-2222-222222222222"
2037
+ * }
2038
+ */
2039
+ journey?: {
2040
+ /**
2041
+ * @description Identifier of the journey that triggered this message
2042
+ * @example 11111111-1111-1111-1111-111111111111
2043
+ */
2044
+ journeyId?: string;
2045
+ /**
2046
+ * @description Identifier of the journey submission linked to this message
2047
+ * @example 22222222-2222-2222-2222-222222222222
2048
+ */
2049
+ submissionId: string;
2050
+ };
2051
+ };
2052
+ /** @description Multipart file attachments (handled at transport layer) */
2053
+ attachments?: unknown;
2054
+ };
2055
+ };
2056
+ };
2057
+ responses: {
2058
+ /** @description Default Response */
2059
+ 201: {
2060
+ headers: {
2061
+ [name: string]: unknown;
2062
+ };
2063
+ content: {
2064
+ "application/json": {
2065
+ /**
2066
+ * @description Response body returned after successfully sending a message
2067
+ * @example {
2068
+ * "messageId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
2069
+ * "recipientId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
2070
+ * "attachmentIds": []
2071
+ * }
2072
+ */
2073
+ data: {
2074
+ /**
2075
+ * Format: uuid
2076
+ * @description Unique identifier for the created message
2077
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
2078
+ */
2079
+ messageId: string;
2080
+ /**
2081
+ * Format: uuid
2082
+ * @description Unique identifier for the message recipient profile
2083
+ * @example b2c3d4e5-f6a7-8901-bcde-f12345678901
2084
+ */
2085
+ recipientId: string;
2086
+ /**
2087
+ * @description List of attachment identifiers associated with the message
2088
+ * @example [
2089
+ * "c3d4e5f6-a7b8-9012-cdef-123456789012",
2090
+ * "d4e5f6a7-b8c9-0123-def1-234567890123"
2091
+ * ]
2092
+ */
2093
+ attachmentIds: string[];
2094
+ /**
2095
+ * @description Warning details when message metadata could not be persisted
2096
+ * @example {
2097
+ * "code": "MESSAGE_METADATA_NOT_STORED",
2098
+ * "detail": "Message metadata could not be stored"
2099
+ * }
2100
+ */
2101
+ warning?: {
2102
+ /**
2103
+ * @description Machine-readable code identifying the warning type
2104
+ * @example MESSAGE_METADATA_NOT_STORED
2105
+ * @enum {string}
2106
+ */
2107
+ code: "MESSAGE_METADATA_NOT_STORED";
2108
+ /**
2109
+ * @description Human-readable description of the warning
2110
+ * @example Message metadata could not be stored
2111
+ */
2112
+ detail: string;
2113
+ };
2114
+ };
2115
+ metadata?: {
2116
+ /** @description Object containing the links to the related endpoints */
2117
+ links?: {
2118
+ /**
2119
+ * @description Object containing the URL link
2120
+ * @example {
2121
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
2122
+ * }
2123
+ */
2124
+ self: {
2125
+ /** @description URL pointing to the request itself */
2126
+ href?: string;
2127
+ };
2128
+ /**
2129
+ * @description Object containing the URL link
2130
+ * @example {
2131
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=40&limit=20"
2132
+ * }
2133
+ */
2134
+ next?: {
2135
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
2136
+ href?: string;
2137
+ };
2138
+ /**
2139
+ * @description Object containing the URL link
2140
+ * @example {
2141
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
2142
+ * }
2143
+ */
2144
+ prev?: {
2145
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
2146
+ href?: string;
2147
+ };
2148
+ /**
2149
+ * @description Object containing the URL link
2150
+ * @example {
2151
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
2152
+ * }
2153
+ */
2154
+ first: {
2155
+ /** @description URL pointing to the first page of results in a paginated response */
2156
+ href?: string;
2157
+ };
2158
+ /**
2159
+ * @description Object containing the URL link
2160
+ * @example {
2161
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=120&limit=20"
2162
+ * }
2163
+ */
2164
+ last: {
2165
+ /** @description URL pointing to the last page of results in a paginated response */
2166
+ href?: string;
2167
+ };
2168
+ /**
2169
+ * @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2'
2170
+ * @example {
2171
+ * "page1": {
2172
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=0&limit=20"
2173
+ * },
2174
+ * "page2": {
2175
+ * "href": "https://api.example.ie/api/v1/the-endpoint?offset=20&limit=20"
2176
+ * }
2177
+ * }
2178
+ */
2179
+ pages: {
2180
+ [key: string]: {
2181
+ href?: string;
2182
+ };
2183
+ };
2184
+ };
2185
+ /**
2186
+ * @description Number representing the total number of available items
2187
+ * @example 150
2188
+ */
2189
+ totalCount?: number;
2190
+ };
2191
+ };
2192
+ };
2193
+ };
2194
+ /** @description Default Response */
2195
+ 400: {
2196
+ headers: {
2197
+ [name: string]: unknown;
2198
+ };
2199
+ content: {
2200
+ "application/json": {
2201
+ /** @description Code used to categorize the error */
2202
+ code: string;
2203
+ /** @description Description of the error */
2204
+ detail: string;
2205
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2206
+ requestId: string;
2207
+ /** @description Name of the error type */
2208
+ name: string;
2209
+ /** @description List of the validation errors */
2210
+ validation?: {
2211
+ fieldName: string;
2212
+ message: string;
2213
+ }[];
2214
+ validationContext?: string;
2215
+ statusCode: number;
2216
+ };
2217
+ };
2218
+ };
2219
+ /** @description Default Response */
2220
+ 401: {
2221
+ headers: {
2222
+ [name: string]: unknown;
2223
+ };
2224
+ content: {
2225
+ "application/json": {
2226
+ /** @description Code used to categorize the error */
2227
+ code: string;
2228
+ /** @description Description of the error */
2229
+ detail: string;
2230
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2231
+ requestId: string;
2232
+ /** @description Name of the error type */
2233
+ name: string;
2234
+ /** @description List of the validation errors */
2235
+ validation?: {
2236
+ fieldName: string;
2237
+ message: string;
2238
+ }[];
2239
+ validationContext?: string;
2240
+ statusCode: number;
2241
+ };
2242
+ };
2243
+ };
2244
+ /** @description Default Response */
2245
+ 403: {
2246
+ headers: {
2247
+ [name: string]: unknown;
2248
+ };
2249
+ content: {
2250
+ "application/json": {
2251
+ /** @description Code used to categorize the error */
2252
+ code: string;
2253
+ /** @description Description of the error */
2254
+ detail: string;
2255
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2256
+ requestId: string;
2257
+ /** @description Name of the error type */
2258
+ name: string;
2259
+ /** @description List of the validation errors */
2260
+ validation?: {
2261
+ fieldName: string;
2262
+ message: string;
2263
+ }[];
2264
+ validationContext?: string;
2265
+ statusCode: number;
2266
+ };
2267
+ };
2268
+ };
2269
+ /** @description Default Response */
2270
+ 404: {
2271
+ headers: {
2272
+ [name: string]: unknown;
2273
+ };
2274
+ content: {
2275
+ "application/json": {
2276
+ /** @description Code used to categorize the error */
2277
+ code: string;
2278
+ /** @description Description of the error */
2279
+ detail: string;
2280
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2281
+ requestId: string;
2282
+ /** @description Name of the error type */
2283
+ name: string;
2284
+ /** @description List of the validation errors */
2285
+ validation?: {
2286
+ fieldName: string;
2287
+ message: string;
2288
+ }[];
2289
+ validationContext?: string;
2290
+ statusCode: number;
2291
+ };
2292
+ };
2293
+ };
2294
+ /** @description Default Response */
2295
+ 409: {
2296
+ headers: {
2297
+ [name: string]: unknown;
2298
+ };
2299
+ content: {
2300
+ "application/json": {
2301
+ /** @description Code used to categorize the error */
2302
+ code: string;
2303
+ /** @description Description of the error */
2304
+ detail: string;
2305
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2306
+ requestId: string;
2307
+ /** @description Name of the error type */
2308
+ name: string;
2309
+ /** @description List of the validation errors */
2310
+ validation?: {
2311
+ fieldName: string;
2312
+ message: string;
2313
+ }[];
2314
+ validationContext?: string;
2315
+ statusCode: number;
2316
+ };
2317
+ };
2318
+ };
2319
+ /** @description Default Response */
2320
+ 413: {
2321
+ headers: {
2322
+ [name: string]: unknown;
2323
+ };
2324
+ content: {
2325
+ "application/json": {
2326
+ /** @description Code used to categorize the error */
2327
+ code: string;
2328
+ /** @description Description of the error */
2329
+ detail: string;
2330
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2331
+ requestId: string;
2332
+ /** @description Name of the error type */
2333
+ name: string;
2334
+ /** @description List of the validation errors */
2335
+ validation?: {
2336
+ fieldName: string;
2337
+ message: string;
2338
+ }[];
2339
+ validationContext?: string;
2340
+ statusCode: number;
2341
+ };
2342
+ };
2343
+ };
2344
+ /** @description Default Response */
2345
+ 500: {
2346
+ headers: {
2347
+ [name: string]: unknown;
2348
+ };
2349
+ content: {
2350
+ "application/json": {
2351
+ /** @description Code used to categorize the error */
2352
+ code: string;
2353
+ /** @description Description of the error */
2354
+ detail: string;
2355
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2356
+ requestId: string;
2357
+ /** @description Name of the error type */
2358
+ name: string;
2359
+ /** @description List of the validation errors */
2360
+ validation?: {
2361
+ fieldName: string;
2362
+ message: string;
2363
+ }[];
2364
+ validationContext?: string;
2365
+ statusCode: number;
2366
+ };
2367
+ };
2368
+ };
2369
+ /** @description Default Response */
2370
+ 502: {
2371
+ headers: {
2372
+ [name: string]: unknown;
2373
+ };
2374
+ content: {
2375
+ "application/json": {
2376
+ /** @description Code used to categorize the error */
2377
+ code: string;
2378
+ /** @description Description of the error */
2379
+ detail: string;
2380
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2381
+ requestId: string;
2382
+ /** @description Name of the error type */
2383
+ name: string;
2384
+ /** @description List of the validation errors */
2385
+ validation?: {
2386
+ fieldName: string;
2387
+ message: string;
2388
+ }[];
2389
+ validationContext?: string;
2390
+ statusCode: number;
2391
+ };
2392
+ };
2393
+ };
2394
+ /** @description Default Response */
2395
+ 503: {
2396
+ headers: {
2397
+ [name: string]: unknown;
2398
+ };
2399
+ content: {
2400
+ "application/json": {
2401
+ /** @description Code used to categorize the error */
2402
+ code: string;
2403
+ /** @description Description of the error */
2404
+ detail: string;
2405
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2406
+ requestId: string;
2407
+ /** @description Name of the error type */
2408
+ name: string;
2409
+ /** @description List of the validation errors */
2410
+ validation?: {
2411
+ fieldName: string;
2412
+ message: string;
2413
+ }[];
2414
+ validationContext?: string;
2415
+ statusCode: number;
2416
+ };
2417
+ };
2418
+ };
2419
+ /** @description Default Response */
2420
+ 504: {
2421
+ headers: {
2422
+ [name: string]: unknown;
2423
+ };
2424
+ content: {
2425
+ "application/json": {
2426
+ /** @description Code used to categorize the error */
2427
+ code: string;
2428
+ /** @description Description of the error */
2429
+ detail: string;
2430
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2431
+ requestId: string;
2432
+ /** @description Name of the error type */
2433
+ name: string;
2434
+ /** @description List of the validation errors */
2435
+ validation?: {
2436
+ fieldName: string;
2437
+ message: string;
2438
+ }[];
2439
+ validationContext?: string;
2440
+ statusCode: number;
2441
+ };
2442
+ };
2443
+ };
2444
+ };
2445
+ };
2446
+ delete?: never;
2447
+ options?: never;
2448
+ head?: never;
2449
+ patch?: never;
2450
+ trace?: never;
2451
+ };
2452
+ }
2453
+ export type webhooks = Record<string, never>;
2454
+ export interface components {
2455
+ schemas: never;
2456
+ responses: never;
2457
+ parameters: never;
2458
+ requestBodies: never;
2459
+ headers: never;
2460
+ pathItems: never;
2461
+ }
2462
+ export type $defs = Record<string, never>;
2463
+ export type operations = Record<string, never>;