@ogcio/building-blocks-sdk 0.0.1

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 (106) hide show
  1. package/.husky/commit-msg +1 -0
  2. package/.husky/pre-push +1 -0
  3. package/.nvmrc +1 -0
  4. package/.vscode/settings.json +20 -0
  5. package/biome.jsonc +45 -0
  6. package/commitlint.config.js +6 -0
  7. package/dist/client/auth/index.d.ts +4 -0
  8. package/dist/client/auth/index.d.ts.map +1 -0
  9. package/dist/client/auth/index.js +83 -0
  10. package/dist/client/auth/index.js.map +1 -0
  11. package/dist/client/base-client.d.ts +18 -0
  12. package/dist/client/base-client.d.ts.map +1 -0
  13. package/dist/client/base-client.js +71 -0
  14. package/dist/client/base-client.js.map +1 -0
  15. package/dist/client/clients/messaging/index.d.ts +2407 -0
  16. package/dist/client/clients/messaging/index.d.ts.map +1 -0
  17. package/dist/client/clients/messaging/index.js +430 -0
  18. package/dist/client/clients/messaging/index.js.map +1 -0
  19. package/dist/client/clients/messaging/schema.d.ts +3823 -0
  20. package/dist/client/clients/messaging/schema.d.ts.map +1 -0
  21. package/dist/client/clients/messaging/schema.js +2 -0
  22. package/dist/client/clients/messaging/schema.js.map +1 -0
  23. package/dist/client/clients/payments/index.d.ts +2294 -0
  24. package/dist/client/clients/payments/index.d.ts.map +1 -0
  25. package/dist/client/clients/payments/index.js +217 -0
  26. package/dist/client/clients/payments/index.js.map +1 -0
  27. package/dist/client/clients/payments/schema.d.ts +2534 -0
  28. package/dist/client/clients/payments/schema.d.ts.map +1 -0
  29. package/dist/client/clients/payments/schema.js +2 -0
  30. package/dist/client/clients/payments/schema.js.map +1 -0
  31. package/dist/client/clients/profile/index.d.ts +1364 -0
  32. package/dist/client/clients/profile/index.d.ts.map +1 -0
  33. package/dist/client/clients/profile/index.js +102 -0
  34. package/dist/client/clients/profile/index.js.map +1 -0
  35. package/dist/client/clients/profile/schema.d.ts +1429 -0
  36. package/dist/client/clients/profile/schema.d.ts.map +1 -0
  37. package/dist/client/clients/profile/schema.js +2 -0
  38. package/dist/client/clients/profile/schema.js.map +1 -0
  39. package/dist/client/clients/scheduler/index.d.ts +14 -0
  40. package/dist/client/clients/scheduler/index.d.ts.map +1 -0
  41. package/dist/client/clients/scheduler/index.js +14 -0
  42. package/dist/client/clients/scheduler/index.js.map +1 -0
  43. package/dist/client/clients/scheduler/schema.d.ts +114 -0
  44. package/dist/client/clients/scheduler/schema.d.ts.map +1 -0
  45. package/dist/client/clients/scheduler/schema.js +2 -0
  46. package/dist/client/clients/scheduler/schema.js.map +1 -0
  47. package/dist/client/clients/upload/index.d.ts +390 -0
  48. package/dist/client/clients/upload/index.d.ts.map +1 -0
  49. package/dist/client/clients/upload/index.js +93 -0
  50. package/dist/client/clients/upload/index.js.map +1 -0
  51. package/dist/client/clients/upload/schema.d.ts +564 -0
  52. package/dist/client/clients/upload/schema.d.ts.map +1 -0
  53. package/dist/client/clients/upload/schema.js +2 -0
  54. package/dist/client/clients/upload/schema.js.map +1 -0
  55. package/dist/client/utils/client-utils.d.ts +15 -0
  56. package/dist/client/utils/client-utils.d.ts.map +1 -0
  57. package/dist/client/utils/client-utils.js +14 -0
  58. package/dist/client/utils/client-utils.js.map +1 -0
  59. package/dist/clients-configurations/clients-configuration.json +92 -0
  60. package/dist/clients-configurations/read-configuration-file.d.ts +22 -0
  61. package/dist/clients-configurations/read-configuration-file.d.ts.map +1 -0
  62. package/dist/clients-configurations/read-configuration-file.js +47 -0
  63. package/dist/clients-configurations/read-configuration-file.js.map +1 -0
  64. package/dist/index.d.ts +6 -0
  65. package/dist/index.d.ts.map +1 -0
  66. package/dist/index.js +33 -0
  67. package/dist/index.js.map +1 -0
  68. package/dist/types/index.d.ts +63 -0
  69. package/dist/types/index.d.ts.map +1 -0
  70. package/dist/types/index.js +6 -0
  71. package/dist/types/index.js.map +1 -0
  72. package/dist/utils/get-absolute-path.d.ts +3 -0
  73. package/dist/utils/get-absolute-path.d.ts.map +1 -0
  74. package/dist/utils/get-absolute-path.js +8 -0
  75. package/dist/utils/get-absolute-path.js.map +1 -0
  76. package/package.json +44 -0
  77. package/src/cli/cli-utils.ts +25 -0
  78. package/src/cli/index.ts +13 -0
  79. package/src/cli/outdated-clients-command.ts +148 -0
  80. package/src/cli/update-clients-command.ts +298 -0
  81. package/src/client/auth/index.ts +131 -0
  82. package/src/client/base-client.ts +97 -0
  83. package/src/client/clients/messaging/index.ts +683 -0
  84. package/src/client/clients/messaging/open-api-definition.json +8394 -0
  85. package/src/client/clients/messaging/schema.ts +3822 -0
  86. package/src/client/clients/payments/index.ts +349 -0
  87. package/src/client/clients/payments/open-api-definition.json +6094 -0
  88. package/src/client/clients/payments/schema.ts +2533 -0
  89. package/src/client/clients/profile/index.ts +182 -0
  90. package/src/client/clients/profile/open-api-definition.json +2876 -0
  91. package/src/client/clients/profile/schema.ts +1428 -0
  92. package/src/client/clients/scheduler/index.ts +28 -0
  93. package/src/client/clients/scheduler/open-api-definition.json +120 -0
  94. package/src/client/clients/scheduler/schema.ts +113 -0
  95. package/src/client/clients/upload/index.ts +129 -0
  96. package/src/client/clients/upload/open-api-definition.json +985 -0
  97. package/src/client/clients/upload/schema.ts +563 -0
  98. package/src/client/utils/client-utils.ts +50 -0
  99. package/src/clients-configurations/clients-configuration.json +92 -0
  100. package/src/clients-configurations/read-configuration-file.ts +68 -0
  101. package/src/index.ts +43 -0
  102. package/src/logto-node.d.ts +12 -0
  103. package/src/types/index.ts +82 -0
  104. package/src/utils/get-absolute-path.ts +10 -0
  105. package/tsconfig.json +18 -0
  106. package/tsconfig.prod.json +4 -0
@@ -0,0 +1,3823 @@
1
+ export interface paths {
2
+ "/api/v1/messages/": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ /** @description Returns all the messages for the requested organisation or the requested recipient */
10
+ get: {
11
+ parameters: {
12
+ query?: {
13
+ status?: "delivered";
14
+ isSeen?: "true" | "false" | "0" | "1";
15
+ search?: string;
16
+ /** @description Either recipientUserId and organisationId are mandatory */
17
+ recipientUserId?: string;
18
+ /** @description Either recipientUserId and organisationId are mandatory */
19
+ organisationId?: string;
20
+ /** @description Indicates where to start fetching data or how many records to skip, defining the initial position within the list */
21
+ offset?: string;
22
+ /** @description Indicates the maximum number (100) of items that will be returned in a single request */
23
+ limit?: string;
24
+ };
25
+ header?: never;
26
+ path?: never;
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
+ data: {
39
+ /** @description Unique Id of the message */
40
+ id: string;
41
+ /** @description Subject */
42
+ subject: string;
43
+ /** @description Creation date time */
44
+ createdAt: string;
45
+ /** @description Thread Name used to group messages */
46
+ threadName: string;
47
+ /** @description Organisation sender id */
48
+ organisationId: string;
49
+ /** @description Unique id of the recipient */
50
+ recipientUserId: string;
51
+ /** @description Number of attachments */
52
+ attachmentsCount: number;
53
+ }[];
54
+ metadata?: {
55
+ /** @description Object containing the links to the related endpoints */
56
+ links?: {
57
+ self: {
58
+ /** @description URL pointing to the request itself */
59
+ href?: string;
60
+ };
61
+ next?: {
62
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
63
+ href?: string;
64
+ };
65
+ prev?: {
66
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
67
+ href?: string;
68
+ };
69
+ first: {
70
+ /** @description URL pointing to the first page of results in a paginated response */
71
+ href?: string;
72
+ };
73
+ last: {
74
+ /** @description URL pointing to the first page of results in a paginated response */
75
+ href?: string;
76
+ };
77
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
78
+ pages: {
79
+ [key: string]: {
80
+ href?: string;
81
+ };
82
+ };
83
+ };
84
+ /** @description Number representing the total number of available items */
85
+ totalCount?: number;
86
+ };
87
+ };
88
+ };
89
+ };
90
+ /** @description Default Response */
91
+ 400: {
92
+ headers: {
93
+ [name: string]: unknown;
94
+ };
95
+ content: {
96
+ "application/json": {
97
+ /** @description Code used to categorize the error */
98
+ code: string;
99
+ /** @description Description of the error */
100
+ detail: string;
101
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
102
+ requestId: string;
103
+ /** @description Name of the error type */
104
+ name: string;
105
+ /** @description List of the validation errors */
106
+ validation?: {
107
+ fieldName: string;
108
+ message: string;
109
+ }[];
110
+ validationContext?: string;
111
+ };
112
+ };
113
+ };
114
+ };
115
+ };
116
+ put?: never;
117
+ /** @description Creates a message */
118
+ post: {
119
+ parameters: {
120
+ query?: never;
121
+ header?: never;
122
+ path?: never;
123
+ cookie?: never;
124
+ };
125
+ requestBody: {
126
+ content: {
127
+ "application/json": {
128
+ /** @description The list of the preferred transports to use. If the selected transports are not available for the recipient, others will be used */
129
+ preferredTransports: ("sms" | "email" | "lifeEvent")[];
130
+ /** @description Unique user id of the recipient */
131
+ recipientUserId: string;
132
+ /**
133
+ * @description Confidentiality level of the message
134
+ * @enum {string}
135
+ */
136
+ security: "confidential" | "public";
137
+ /**
138
+ * @description If true, the message will be sent even if the recipient didn't accept the organisation's invitation
139
+ * @default false
140
+ */
141
+ bypassConsent: boolean;
142
+ /**
143
+ * Format: date-time
144
+ * @description Date and time of when schedule the message
145
+ */
146
+ scheduleAt: string;
147
+ message: {
148
+ /** @description Thread Name used to group messages */
149
+ threadName?: string;
150
+ /** @description Subject. This is the only part that will be seen outside of the messaging platform is security is 'confidential' */
151
+ subject: string;
152
+ /** @description Brief description of the message */
153
+ excerpt: string;
154
+ /** @description Plain text version of the message */
155
+ plainText: string;
156
+ /** @description Rich text version of the message */
157
+ richText: string;
158
+ /**
159
+ * @description Language used to send the message
160
+ * @enum {string}
161
+ */
162
+ language: "en" | "ga";
163
+ };
164
+ attachments?: string[];
165
+ };
166
+ };
167
+ };
168
+ responses: {
169
+ /** @description Default Response */
170
+ 201: {
171
+ headers: {
172
+ [name: string]: unknown;
173
+ };
174
+ content: {
175
+ "application/json": {
176
+ data: {
177
+ /**
178
+ * Format: uuid
179
+ * @description The unique id of the created message
180
+ */
181
+ id: string;
182
+ };
183
+ };
184
+ };
185
+ };
186
+ /** @description Default Response */
187
+ "4XX": {
188
+ headers: {
189
+ [name: string]: unknown;
190
+ };
191
+ content: {
192
+ "application/json": {
193
+ /** @description Code used to categorize the error */
194
+ code: string;
195
+ /** @description Description of the error */
196
+ detail: string;
197
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
198
+ requestId: string;
199
+ /** @description Name of the error type */
200
+ name: string;
201
+ /** @description List of the validation errors */
202
+ validation?: {
203
+ fieldName: string;
204
+ message: string;
205
+ }[];
206
+ validationContext?: string;
207
+ };
208
+ };
209
+ };
210
+ /** @description Default Response */
211
+ "5XX": {
212
+ headers: {
213
+ [name: string]: unknown;
214
+ };
215
+ content: {
216
+ "application/json": {
217
+ /** @description Code used to categorize the error */
218
+ code: string;
219
+ /** @description Description of the error */
220
+ detail: string;
221
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
222
+ requestId: string;
223
+ /** @description Name of the error type */
224
+ name: string;
225
+ /** @description List of the validation errors */
226
+ validation?: {
227
+ fieldName: string;
228
+ message: string;
229
+ }[];
230
+ validationContext?: string;
231
+ };
232
+ };
233
+ };
234
+ };
235
+ };
236
+ delete?: never;
237
+ options?: never;
238
+ head?: never;
239
+ patch?: never;
240
+ trace?: never;
241
+ };
242
+ "/api/v1/messages/{messageId}": {
243
+ parameters: {
244
+ query?: never;
245
+ header?: never;
246
+ path?: never;
247
+ cookie?: never;
248
+ };
249
+ /** @description Returns the requested message */
250
+ get: {
251
+ parameters: {
252
+ query?: never;
253
+ header?: never;
254
+ path: {
255
+ /** @description The requested message unique id */
256
+ messageId: string;
257
+ };
258
+ cookie?: never;
259
+ };
260
+ requestBody?: never;
261
+ responses: {
262
+ /** @description Default Response */
263
+ 200: {
264
+ headers: {
265
+ [name: string]: unknown;
266
+ };
267
+ content: {
268
+ "application/json": {
269
+ data: {
270
+ /** @description Subject. This is the only part that will be seen outside of the messaging platform is security is 'confidential' */
271
+ subject: string;
272
+ /** @description Creation date time */
273
+ createdAt: string;
274
+ /** @description Thread Name used to group messages */
275
+ threadName: string;
276
+ /** @description Organisation sender id */
277
+ organisationId: string;
278
+ /** @description Unique id of the recipient */
279
+ recipientUserId: string;
280
+ /** @description Brief description of the message */
281
+ excerpt: string;
282
+ /** @description Plain text version of the message */
283
+ plainText: string;
284
+ /** @description Rich text version of the message */
285
+ richText: string;
286
+ /** @description True if the message has already been seen by the recipient */
287
+ isSeen: boolean;
288
+ /**
289
+ * @description Confidentiality level of the message
290
+ * @enum {string}
291
+ */
292
+ security: "confidential" | "public";
293
+ /** @description Ids of the related attachments */
294
+ attachments: string[];
295
+ };
296
+ metadata?: {
297
+ /** @description Object containing the links to the related endpoints */
298
+ links?: {
299
+ self: {
300
+ /** @description URL pointing to the request itself */
301
+ href?: string;
302
+ };
303
+ next?: {
304
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
305
+ href?: string;
306
+ };
307
+ prev?: {
308
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
309
+ href?: string;
310
+ };
311
+ first: {
312
+ /** @description URL pointing to the first page of results in a paginated response */
313
+ href?: string;
314
+ };
315
+ last: {
316
+ /** @description URL pointing to the first page of results in a paginated response */
317
+ href?: string;
318
+ };
319
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
320
+ pages: {
321
+ [key: string]: {
322
+ href?: string;
323
+ };
324
+ };
325
+ };
326
+ /** @description Number representing the total number of available items */
327
+ totalCount?: number;
328
+ };
329
+ };
330
+ };
331
+ };
332
+ /** @description Default Response */
333
+ "4XX": {
334
+ headers: {
335
+ [name: string]: unknown;
336
+ };
337
+ content: {
338
+ "application/json": {
339
+ /** @description Code used to categorize the error */
340
+ code: string;
341
+ /** @description Description of the error */
342
+ detail: string;
343
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
344
+ requestId: string;
345
+ /** @description Name of the error type */
346
+ name: string;
347
+ /** @description List of the validation errors */
348
+ validation?: {
349
+ fieldName: string;
350
+ message: string;
351
+ }[];
352
+ validationContext?: string;
353
+ };
354
+ };
355
+ };
356
+ /** @description Default Response */
357
+ "5XX": {
358
+ headers: {
359
+ [name: string]: unknown;
360
+ };
361
+ content: {
362
+ "application/json": {
363
+ /** @description Code used to categorize the error */
364
+ code: string;
365
+ /** @description Description of the error */
366
+ detail: string;
367
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
368
+ requestId: string;
369
+ /** @description Name of the error type */
370
+ name: string;
371
+ /** @description List of the validation errors */
372
+ validation?: {
373
+ fieldName: string;
374
+ message: string;
375
+ }[];
376
+ validationContext?: string;
377
+ };
378
+ };
379
+ };
380
+ };
381
+ };
382
+ put?: never;
383
+ post?: never;
384
+ delete?: never;
385
+ options?: never;
386
+ head?: never;
387
+ patch?: never;
388
+ trace?: never;
389
+ };
390
+ "/api/v1/providers/": {
391
+ parameters: {
392
+ query?: never;
393
+ header?: never;
394
+ path?: never;
395
+ cookie?: never;
396
+ };
397
+ /** @description Returns the providers matching the requested query */
398
+ get: {
399
+ parameters: {
400
+ query: {
401
+ /** @description If set, returns only the primary providers if true, otherwise the non-primary ones */
402
+ primary?: "true" | "false" | "0" | "1";
403
+ /** @description Provider types that can be manipulated */
404
+ type: "sms" | "email";
405
+ /** @description Indicates where to start fetching data or how many records to skip, defining the initial position within the list */
406
+ offset?: string;
407
+ /** @description Indicates the maximum number (100) of items that will be returned in a single request */
408
+ limit?: string;
409
+ };
410
+ header?: never;
411
+ path?: never;
412
+ cookie?: never;
413
+ };
414
+ requestBody?: never;
415
+ responses: {
416
+ /** @description Default Response */
417
+ 200: {
418
+ headers: {
419
+ [name: string]: unknown;
420
+ };
421
+ content: {
422
+ "application/json": {
423
+ data: {
424
+ /**
425
+ * Format: uuid
426
+ * @description Unique id of the provider
427
+ */
428
+ id: string;
429
+ /** @description Name of the provider */
430
+ providerName: string;
431
+ /** @description If true, the provider is set as primary for the selected type for the current organisation. Please note, each organisation can only have one primary provider for each type */
432
+ isPrimary: boolean;
433
+ /**
434
+ * @description Provider types that can be manipulated
435
+ * @enum {string}
436
+ */
437
+ type: "sms" | "email";
438
+ }[];
439
+ metadata?: {
440
+ /** @description Object containing the links to the related endpoints */
441
+ links?: {
442
+ self: {
443
+ /** @description URL pointing to the request itself */
444
+ href?: string;
445
+ };
446
+ next?: {
447
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
448
+ href?: string;
449
+ };
450
+ prev?: {
451
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
452
+ href?: string;
453
+ };
454
+ first: {
455
+ /** @description URL pointing to the first page of results in a paginated response */
456
+ href?: string;
457
+ };
458
+ last: {
459
+ /** @description URL pointing to the first page of results in a paginated response */
460
+ href?: string;
461
+ };
462
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
463
+ pages: {
464
+ [key: string]: {
465
+ href?: string;
466
+ };
467
+ };
468
+ };
469
+ /** @description Number representing the total number of available items */
470
+ totalCount?: number;
471
+ };
472
+ };
473
+ };
474
+ };
475
+ /** @description Default Response */
476
+ "5XX": {
477
+ headers: {
478
+ [name: string]: unknown;
479
+ };
480
+ content: {
481
+ "application/json": {
482
+ /** @description Code used to categorize the error */
483
+ code: string;
484
+ /** @description Description of the error */
485
+ detail: string;
486
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
487
+ requestId: string;
488
+ /** @description Name of the error type */
489
+ name: string;
490
+ /** @description List of the validation errors */
491
+ validation?: {
492
+ fieldName: string;
493
+ message: string;
494
+ }[];
495
+ validationContext?: string;
496
+ };
497
+ };
498
+ };
499
+ /** @description Default Response */
500
+ "4XX": {
501
+ headers: {
502
+ [name: string]: unknown;
503
+ };
504
+ content: {
505
+ "application/json": {
506
+ /** @description Code used to categorize the error */
507
+ code: string;
508
+ /** @description Description of the error */
509
+ detail: string;
510
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
511
+ requestId: string;
512
+ /** @description Name of the error type */
513
+ name: string;
514
+ /** @description List of the validation errors */
515
+ validation?: {
516
+ fieldName: string;
517
+ message: string;
518
+ }[];
519
+ validationContext?: string;
520
+ };
521
+ };
522
+ };
523
+ };
524
+ };
525
+ put?: never;
526
+ /** @description Creates a new provider */
527
+ post: {
528
+ parameters: {
529
+ query?: never;
530
+ header?: never;
531
+ path?: never;
532
+ cookie?: never;
533
+ };
534
+ requestBody?: {
535
+ content: {
536
+ "application/json": {
537
+ /** @description Name of the provider */
538
+ providerName: string;
539
+ /** @description If true, the provider is set as primary for the selected type for the current organisation. Please note, each organisation can only have one primary provider for each type */
540
+ isPrimary: boolean;
541
+ /** @enum {string} */
542
+ type: "email";
543
+ /** @description Address of the SMTP host */
544
+ smtpHost: string;
545
+ /** @description Port of the SMTP host */
546
+ smtpPort: number;
547
+ /** @description Username to use to log into the SMTP server */
548
+ username: string;
549
+ /** @description Password to use to log into the SMTP server */
550
+ password: string;
551
+ /** @description Optional field to adjust how long time between each mail, in miliseconds */
552
+ throttle?: number;
553
+ /** @description Email address to use as sender */
554
+ fromAddress: string;
555
+ /** @description Is connection to the SMTP server secure? */
556
+ ssl: boolean;
557
+ } | {
558
+ /** @description Name of the provider */
559
+ providerName: string;
560
+ /** @description If true, the provider is set as primary for the selected type for the current organisation. Please note, each organisation can only have one primary provider for each type */
561
+ isPrimary: boolean;
562
+ /** @enum {string} */
563
+ type: "sms";
564
+ config: {
565
+ /** @enum {string} */
566
+ type: "AWS";
567
+ accessKey: string;
568
+ secretAccessKey: string;
569
+ region: string;
570
+ };
571
+ };
572
+ };
573
+ };
574
+ responses: {
575
+ /** @description Default Response */
576
+ 200: {
577
+ headers: {
578
+ [name: string]: unknown;
579
+ };
580
+ content: {
581
+ "application/json": {
582
+ data: {
583
+ /** Format: uuid */
584
+ id: string;
585
+ };
586
+ };
587
+ };
588
+ };
589
+ /** @description Default Response */
590
+ "5XX": {
591
+ headers: {
592
+ [name: string]: unknown;
593
+ };
594
+ content: {
595
+ "application/json": {
596
+ /** @description Code used to categorize the error */
597
+ code: string;
598
+ /** @description Description of the error */
599
+ detail: string;
600
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
601
+ requestId: string;
602
+ /** @description Name of the error type */
603
+ name: string;
604
+ /** @description List of the validation errors */
605
+ validation?: {
606
+ fieldName: string;
607
+ message: string;
608
+ }[];
609
+ validationContext?: string;
610
+ };
611
+ };
612
+ };
613
+ /** @description Default Response */
614
+ "4XX": {
615
+ headers: {
616
+ [name: string]: unknown;
617
+ };
618
+ content: {
619
+ "application/json": {
620
+ /** @description Code used to categorize the error */
621
+ code: string;
622
+ /** @description Description of the error */
623
+ detail: string;
624
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
625
+ requestId: string;
626
+ /** @description Name of the error type */
627
+ name: string;
628
+ /** @description List of the validation errors */
629
+ validation?: {
630
+ fieldName: string;
631
+ message: string;
632
+ }[];
633
+ validationContext?: string;
634
+ };
635
+ };
636
+ };
637
+ };
638
+ };
639
+ delete?: never;
640
+ options?: never;
641
+ head?: never;
642
+ patch?: never;
643
+ trace?: never;
644
+ };
645
+ "/api/v1/providers/{providerId}": {
646
+ parameters: {
647
+ query?: never;
648
+ header?: never;
649
+ path?: never;
650
+ cookie?: never;
651
+ };
652
+ /** @description Returns the requested provider */
653
+ get: {
654
+ parameters: {
655
+ query: {
656
+ /** @description Provider types that can be manipulated */
657
+ type: "sms" | "email";
658
+ };
659
+ header?: never;
660
+ path: {
661
+ /** @description The unique id of the requested provider */
662
+ providerId: string;
663
+ };
664
+ cookie?: never;
665
+ };
666
+ requestBody?: never;
667
+ responses: {
668
+ /** @description Default Response */
669
+ 200: {
670
+ headers: {
671
+ [name: string]: unknown;
672
+ };
673
+ content: {
674
+ "application/json": {
675
+ data: {
676
+ /** Format: uuid */
677
+ id: string;
678
+ /** @description Name of the provider */
679
+ providerName: string;
680
+ /** @description If true, the provider is set as primary for the selected type for the current organisation. Please note, each organisation can only have one primary provider for each type */
681
+ isPrimary: boolean;
682
+ /** @enum {string} */
683
+ type: "email";
684
+ /** @description Address of the SMTP host */
685
+ smtpHost: string;
686
+ /** @description Port of the SMTP host */
687
+ smtpPort: number;
688
+ /** @description Username to use to log into the SMTP server */
689
+ username: string;
690
+ /** @description Password to use to log into the SMTP server */
691
+ password: string;
692
+ /** @description Optional field to adjust how long time between each mail, in miliseconds */
693
+ throttle?: number;
694
+ /** @description Email address to use as sender */
695
+ fromAddress: string;
696
+ /** @description Is connection to the SMTP server secure? */
697
+ ssl: boolean;
698
+ } | {
699
+ /** Format: uuid */
700
+ id: string;
701
+ /** @description Name of the provider */
702
+ providerName: string;
703
+ /** @description If true, the provider is set as primary for the selected type for the current organisation. Please note, each organisation can only have one primary provider for each type */
704
+ isPrimary: boolean;
705
+ /** @enum {string} */
706
+ type: "sms";
707
+ config: {
708
+ /** @enum {string} */
709
+ type: "AWS";
710
+ accessKey: string;
711
+ secretAccessKey: string;
712
+ region: string;
713
+ };
714
+ };
715
+ metadata?: {
716
+ /** @description Object containing the links to the related endpoints */
717
+ links?: {
718
+ self: {
719
+ /** @description URL pointing to the request itself */
720
+ href?: string;
721
+ };
722
+ next?: {
723
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
724
+ href?: string;
725
+ };
726
+ prev?: {
727
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
728
+ href?: string;
729
+ };
730
+ first: {
731
+ /** @description URL pointing to the first page of results in a paginated response */
732
+ href?: string;
733
+ };
734
+ last: {
735
+ /** @description URL pointing to the first page of results in a paginated response */
736
+ href?: string;
737
+ };
738
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
739
+ pages: {
740
+ [key: string]: {
741
+ href?: string;
742
+ };
743
+ };
744
+ };
745
+ /** @description Number representing the total number of available items */
746
+ totalCount?: number;
747
+ };
748
+ };
749
+ };
750
+ };
751
+ /** @description Default Response */
752
+ "5XX": {
753
+ headers: {
754
+ [name: string]: unknown;
755
+ };
756
+ content: {
757
+ "application/json": {
758
+ /** @description Code used to categorize the error */
759
+ code: string;
760
+ /** @description Description of the error */
761
+ detail: string;
762
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
763
+ requestId: string;
764
+ /** @description Name of the error type */
765
+ name: string;
766
+ /** @description List of the validation errors */
767
+ validation?: {
768
+ fieldName: string;
769
+ message: string;
770
+ }[];
771
+ validationContext?: string;
772
+ };
773
+ };
774
+ };
775
+ /** @description Default Response */
776
+ "4XX": {
777
+ headers: {
778
+ [name: string]: unknown;
779
+ };
780
+ content: {
781
+ "application/json": {
782
+ /** @description Code used to categorize the error */
783
+ code: string;
784
+ /** @description Description of the error */
785
+ detail: string;
786
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
787
+ requestId: string;
788
+ /** @description Name of the error type */
789
+ name: string;
790
+ /** @description List of the validation errors */
791
+ validation?: {
792
+ fieldName: string;
793
+ message: string;
794
+ }[];
795
+ validationContext?: string;
796
+ };
797
+ };
798
+ };
799
+ };
800
+ };
801
+ /** @description Updates the requested provider */
802
+ put: {
803
+ parameters: {
804
+ query?: never;
805
+ header?: never;
806
+ path: {
807
+ providerId: string;
808
+ };
809
+ cookie?: never;
810
+ };
811
+ requestBody?: {
812
+ content: {
813
+ "application/json": {
814
+ /** Format: uuid */
815
+ id: string;
816
+ /** @description Name of the provider */
817
+ providerName: string;
818
+ /** @description If true, the provider is set as primary for the selected type for the current organisation. Please note, each organisation can only have one primary provider for each type */
819
+ isPrimary: boolean;
820
+ /** @enum {string} */
821
+ type: "email";
822
+ /** @description Address of the SMTP host */
823
+ smtpHost: string;
824
+ /** @description Port of the SMTP host */
825
+ smtpPort: number;
826
+ /** @description Username to use to log into the SMTP server */
827
+ username: string;
828
+ /** @description Password to use to log into the SMTP server */
829
+ password: string;
830
+ /** @description Optional field to adjust how long time between each mail, in miliseconds */
831
+ throttle?: number;
832
+ /** @description Email address to use as sender */
833
+ fromAddress: string;
834
+ /** @description Is connection to the SMTP server secure? */
835
+ ssl: boolean;
836
+ } | {
837
+ /** Format: uuid */
838
+ id: string;
839
+ /** @description Name of the provider */
840
+ providerName: string;
841
+ /** @description If true, the provider is set as primary for the selected type for the current organisation. Please note, each organisation can only have one primary provider for each type */
842
+ isPrimary: boolean;
843
+ /** @enum {string} */
844
+ type: "sms";
845
+ config: {
846
+ /** @enum {string} */
847
+ type: "AWS";
848
+ accessKey: string;
849
+ secretAccessKey: string;
850
+ region: string;
851
+ };
852
+ };
853
+ };
854
+ };
855
+ responses: {
856
+ /** @description Default Response */
857
+ 200: {
858
+ headers: {
859
+ [name: string]: unknown;
860
+ };
861
+ content?: never;
862
+ };
863
+ /** @description Default Response */
864
+ "5XX": {
865
+ headers: {
866
+ [name: string]: unknown;
867
+ };
868
+ content: {
869
+ "application/json": {
870
+ /** @description Code used to categorize the error */
871
+ code: string;
872
+ /** @description Description of the error */
873
+ detail: string;
874
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
875
+ requestId: string;
876
+ /** @description Name of the error type */
877
+ name: string;
878
+ /** @description List of the validation errors */
879
+ validation?: {
880
+ fieldName: string;
881
+ message: string;
882
+ }[];
883
+ validationContext?: string;
884
+ };
885
+ };
886
+ };
887
+ /** @description Default Response */
888
+ "4XX": {
889
+ headers: {
890
+ [name: string]: unknown;
891
+ };
892
+ content: {
893
+ "application/json": {
894
+ /** @description Code used to categorize the error */
895
+ code: string;
896
+ /** @description Description of the error */
897
+ detail: string;
898
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
899
+ requestId: string;
900
+ /** @description Name of the error type */
901
+ name: string;
902
+ /** @description List of the validation errors */
903
+ validation?: {
904
+ fieldName: string;
905
+ message: string;
906
+ }[];
907
+ validationContext?: string;
908
+ };
909
+ };
910
+ };
911
+ };
912
+ };
913
+ post?: never;
914
+ /** @description Deletes the requested provider */
915
+ delete: {
916
+ parameters: {
917
+ query?: never;
918
+ header?: never;
919
+ path: {
920
+ /** @description Unique id of the provider to be deleted */
921
+ providerId: string;
922
+ };
923
+ cookie?: never;
924
+ };
925
+ requestBody?: never;
926
+ responses: {
927
+ /** @description Default Response */
928
+ 200: {
929
+ headers: {
930
+ [name: string]: unknown;
931
+ };
932
+ content?: never;
933
+ };
934
+ /** @description Default Response */
935
+ "5XX": {
936
+ headers: {
937
+ [name: string]: unknown;
938
+ };
939
+ content: {
940
+ "application/json": {
941
+ /** @description Code used to categorize the error */
942
+ code: string;
943
+ /** @description Description of the error */
944
+ detail: string;
945
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
946
+ requestId: string;
947
+ /** @description Name of the error type */
948
+ name: string;
949
+ /** @description List of the validation errors */
950
+ validation?: {
951
+ fieldName: string;
952
+ message: string;
953
+ }[];
954
+ validationContext?: string;
955
+ };
956
+ };
957
+ };
958
+ /** @description Default Response */
959
+ "4XX": {
960
+ headers: {
961
+ [name: string]: unknown;
962
+ };
963
+ content: {
964
+ "application/json": {
965
+ /** @description Code used to categorize the error */
966
+ code: string;
967
+ /** @description Description of the error */
968
+ detail: string;
969
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
970
+ requestId: string;
971
+ /** @description Name of the error type */
972
+ name: string;
973
+ /** @description List of the validation errors */
974
+ validation?: {
975
+ fieldName: string;
976
+ message: string;
977
+ }[];
978
+ validationContext?: string;
979
+ };
980
+ };
981
+ };
982
+ };
983
+ };
984
+ options?: never;
985
+ head?: never;
986
+ patch?: never;
987
+ trace?: never;
988
+ };
989
+ "/api/v1/templates/": {
990
+ parameters: {
991
+ query?: never;
992
+ header?: never;
993
+ path?: never;
994
+ cookie?: never;
995
+ };
996
+ /** @description Returns the providers matching the requested query */
997
+ get: {
998
+ parameters: {
999
+ query?: {
1000
+ /** @description Indicates where to start fetching data or how many records to skip, defining the initial position within the list */
1001
+ offset?: string;
1002
+ /** @description Indicates the maximum number (100) of items that will be returned in a single request */
1003
+ limit?: string;
1004
+ };
1005
+ header?: never;
1006
+ path?: never;
1007
+ cookie?: never;
1008
+ };
1009
+ requestBody?: never;
1010
+ responses: {
1011
+ /** @description Default Response */
1012
+ 200: {
1013
+ headers: {
1014
+ [name: string]: unknown;
1015
+ };
1016
+ content: {
1017
+ "application/json": {
1018
+ data: {
1019
+ /**
1020
+ * Format: uuid
1021
+ * @description Unique id of the template
1022
+ */
1023
+ id: string;
1024
+ contents: {
1025
+ /**
1026
+ * @description Template content language
1027
+ * @enum {string}
1028
+ */
1029
+ language: "en" | "ga";
1030
+ /** @description Template name for the related language */
1031
+ templateName: string;
1032
+ }[];
1033
+ }[];
1034
+ metadata?: {
1035
+ /** @description Object containing the links to the related endpoints */
1036
+ links?: {
1037
+ self: {
1038
+ /** @description URL pointing to the request itself */
1039
+ href?: string;
1040
+ };
1041
+ next?: {
1042
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
1043
+ href?: string;
1044
+ };
1045
+ prev?: {
1046
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
1047
+ href?: string;
1048
+ };
1049
+ first: {
1050
+ /** @description URL pointing to the first page of results in a paginated response */
1051
+ href?: string;
1052
+ };
1053
+ last: {
1054
+ /** @description URL pointing to the first page of results in a paginated response */
1055
+ href?: string;
1056
+ };
1057
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
1058
+ pages: {
1059
+ [key: string]: {
1060
+ href?: string;
1061
+ };
1062
+ };
1063
+ };
1064
+ /** @description Number representing the total number of available items */
1065
+ totalCount?: number;
1066
+ };
1067
+ };
1068
+ };
1069
+ };
1070
+ /** @description Default Response */
1071
+ "4XX": {
1072
+ headers: {
1073
+ [name: string]: unknown;
1074
+ };
1075
+ content: {
1076
+ "application/json": {
1077
+ /** @description Code used to categorize the error */
1078
+ code: string;
1079
+ /** @description Description of the error */
1080
+ detail: string;
1081
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1082
+ requestId: string;
1083
+ /** @description Name of the error type */
1084
+ name: string;
1085
+ /** @description List of the validation errors */
1086
+ validation?: {
1087
+ fieldName: string;
1088
+ message: string;
1089
+ }[];
1090
+ validationContext?: string;
1091
+ };
1092
+ };
1093
+ };
1094
+ /** @description Default Response */
1095
+ "5XX": {
1096
+ headers: {
1097
+ [name: string]: unknown;
1098
+ };
1099
+ content: {
1100
+ "application/json": {
1101
+ /** @description Code used to categorize the error */
1102
+ code: string;
1103
+ /** @description Description of the error */
1104
+ detail: string;
1105
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1106
+ requestId: string;
1107
+ /** @description Name of the error type */
1108
+ name: string;
1109
+ /** @description List of the validation errors */
1110
+ validation?: {
1111
+ fieldName: string;
1112
+ message: string;
1113
+ }[];
1114
+ validationContext?: string;
1115
+ };
1116
+ };
1117
+ };
1118
+ };
1119
+ };
1120
+ put?: never;
1121
+ /** @description Creates a new template */
1122
+ post: {
1123
+ parameters: {
1124
+ query?: never;
1125
+ header?: never;
1126
+ path?: never;
1127
+ cookie?: never;
1128
+ };
1129
+ requestBody: {
1130
+ content: {
1131
+ "application/json": {
1132
+ contents: {
1133
+ /** @description Template name for the related language */
1134
+ templateName: string;
1135
+ /**
1136
+ * @description Template content language
1137
+ * @enum {string}
1138
+ */
1139
+ language: "en" | "ga";
1140
+ /** @description Subject of the template */
1141
+ subject: string;
1142
+ /** @description Brief description of the template content */
1143
+ excerpt: string;
1144
+ /** @description Plain text version of the template */
1145
+ plainText: string;
1146
+ /** @description Rich text version of the template */
1147
+ richText: string;
1148
+ }[];
1149
+ /** @description List of the variables that are needed to be filled to create a message using this template */
1150
+ variables?: {
1151
+ name: string;
1152
+ }[];
1153
+ };
1154
+ };
1155
+ };
1156
+ responses: {
1157
+ /** @description Default Response */
1158
+ 201: {
1159
+ headers: {
1160
+ [name: string]: unknown;
1161
+ };
1162
+ content: {
1163
+ "application/json": {
1164
+ data: {
1165
+ /**
1166
+ * Format: uuid
1167
+ * @description Unique id of the created message
1168
+ */
1169
+ id: string;
1170
+ };
1171
+ };
1172
+ };
1173
+ };
1174
+ /** @description Default Response */
1175
+ "5XX": {
1176
+ headers: {
1177
+ [name: string]: unknown;
1178
+ };
1179
+ content: {
1180
+ "application/json": {
1181
+ /** @description Code used to categorize the error */
1182
+ code: string;
1183
+ /** @description Description of the error */
1184
+ detail: string;
1185
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1186
+ requestId: string;
1187
+ /** @description Name of the error type */
1188
+ name: string;
1189
+ /** @description List of the validation errors */
1190
+ validation?: {
1191
+ fieldName: string;
1192
+ message: string;
1193
+ }[];
1194
+ validationContext?: string;
1195
+ };
1196
+ };
1197
+ };
1198
+ /** @description Default Response */
1199
+ "4XX": {
1200
+ headers: {
1201
+ [name: string]: unknown;
1202
+ };
1203
+ content: {
1204
+ "application/json": {
1205
+ /** @description Code used to categorize the error */
1206
+ code: string;
1207
+ /** @description Description of the error */
1208
+ detail: string;
1209
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1210
+ requestId: string;
1211
+ /** @description Name of the error type */
1212
+ name: string;
1213
+ /** @description List of the validation errors */
1214
+ validation?: {
1215
+ fieldName: string;
1216
+ message: string;
1217
+ }[];
1218
+ validationContext?: string;
1219
+ };
1220
+ };
1221
+ };
1222
+ };
1223
+ };
1224
+ delete?: never;
1225
+ options?: never;
1226
+ head?: never;
1227
+ patch?: never;
1228
+ trace?: never;
1229
+ };
1230
+ "/api/v1/templates/{templateId}": {
1231
+ parameters: {
1232
+ query?: never;
1233
+ header?: never;
1234
+ path?: never;
1235
+ cookie?: never;
1236
+ };
1237
+ /** @description Returns the requested template */
1238
+ get: {
1239
+ parameters: {
1240
+ query?: never;
1241
+ header?: never;
1242
+ path: {
1243
+ templateId: string;
1244
+ };
1245
+ cookie?: never;
1246
+ };
1247
+ requestBody?: never;
1248
+ responses: {
1249
+ /** @description Default Response */
1250
+ 200: {
1251
+ headers: {
1252
+ [name: string]: unknown;
1253
+ };
1254
+ content: {
1255
+ "application/json": {
1256
+ data: {
1257
+ contents: {
1258
+ /** @description Template name for the related language */
1259
+ templateName: string;
1260
+ /**
1261
+ * @description Template content language
1262
+ * @enum {string}
1263
+ */
1264
+ language: "en" | "ga";
1265
+ /** @description Subject of the template */
1266
+ subject: string;
1267
+ /** @description Brief description of the template content */
1268
+ excerpt: string;
1269
+ /** @description Plain text version of the template */
1270
+ plainText: string;
1271
+ /** @description Rich text version of the template */
1272
+ richText: string;
1273
+ }[];
1274
+ fields: {
1275
+ fieldName: string;
1276
+ }[];
1277
+ };
1278
+ metadata?: {
1279
+ /** @description Object containing the links to the related endpoints */
1280
+ links?: {
1281
+ self: {
1282
+ /** @description URL pointing to the request itself */
1283
+ href?: string;
1284
+ };
1285
+ next?: {
1286
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
1287
+ href?: string;
1288
+ };
1289
+ prev?: {
1290
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
1291
+ href?: string;
1292
+ };
1293
+ first: {
1294
+ /** @description URL pointing to the first page of results in a paginated response */
1295
+ href?: string;
1296
+ };
1297
+ last: {
1298
+ /** @description URL pointing to the first page of results in a paginated response */
1299
+ href?: string;
1300
+ };
1301
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
1302
+ pages: {
1303
+ [key: string]: {
1304
+ href?: string;
1305
+ };
1306
+ };
1307
+ };
1308
+ /** @description Number representing the total number of available items */
1309
+ totalCount?: number;
1310
+ };
1311
+ };
1312
+ };
1313
+ };
1314
+ /** @description Default Response */
1315
+ 404: {
1316
+ headers: {
1317
+ [name: string]: unknown;
1318
+ };
1319
+ content: {
1320
+ "application/json": {
1321
+ /** @description Code used to categorize the error */
1322
+ code: string;
1323
+ /** @description Description of the error */
1324
+ detail: string;
1325
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1326
+ requestId: string;
1327
+ /** @description Name of the error type */
1328
+ name: string;
1329
+ /** @description List of the validation errors */
1330
+ validation?: {
1331
+ fieldName: string;
1332
+ message: string;
1333
+ }[];
1334
+ validationContext?: string;
1335
+ };
1336
+ };
1337
+ };
1338
+ /** @description Default Response */
1339
+ "5XX": {
1340
+ headers: {
1341
+ [name: string]: unknown;
1342
+ };
1343
+ content: {
1344
+ "application/json": {
1345
+ /** @description Code used to categorize the error */
1346
+ code: string;
1347
+ /** @description Description of the error */
1348
+ detail: string;
1349
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1350
+ requestId: string;
1351
+ /** @description Name of the error type */
1352
+ name: string;
1353
+ /** @description List of the validation errors */
1354
+ validation?: {
1355
+ fieldName: string;
1356
+ message: string;
1357
+ }[];
1358
+ validationContext?: string;
1359
+ };
1360
+ };
1361
+ };
1362
+ };
1363
+ };
1364
+ /** @description Updates the requested template */
1365
+ put: {
1366
+ parameters: {
1367
+ query?: never;
1368
+ header?: never;
1369
+ path: {
1370
+ templateId: string;
1371
+ };
1372
+ cookie?: never;
1373
+ };
1374
+ requestBody: {
1375
+ content: {
1376
+ "application/json": {
1377
+ /** Format: uuid */
1378
+ id: string;
1379
+ contents: {
1380
+ /** @description Template name for the related language */
1381
+ templateName: string;
1382
+ /**
1383
+ * @description Template content language
1384
+ * @enum {string}
1385
+ */
1386
+ language: "en" | "ga";
1387
+ /** @description Subject of the template */
1388
+ subject: string;
1389
+ /** @description Brief description of the template content */
1390
+ excerpt: string;
1391
+ /** @description Plain text version of the template */
1392
+ plainText: string;
1393
+ /** @description Rich text version of the template */
1394
+ richText: string;
1395
+ }[];
1396
+ /** @description List of the variables that are needed to be filled to create a message using this template */
1397
+ variables?: {
1398
+ name: string;
1399
+ }[];
1400
+ };
1401
+ };
1402
+ };
1403
+ responses: {
1404
+ /** @description Default Response */
1405
+ 200: {
1406
+ headers: {
1407
+ [name: string]: unknown;
1408
+ };
1409
+ content?: never;
1410
+ };
1411
+ /** @description Default Response */
1412
+ "4XX": {
1413
+ headers: {
1414
+ [name: string]: unknown;
1415
+ };
1416
+ content: {
1417
+ "application/json": {
1418
+ /** @description Code used to categorize the error */
1419
+ code: string;
1420
+ /** @description Description of the error */
1421
+ detail: string;
1422
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1423
+ requestId: string;
1424
+ /** @description Name of the error type */
1425
+ name: string;
1426
+ /** @description List of the validation errors */
1427
+ validation?: {
1428
+ fieldName: string;
1429
+ message: string;
1430
+ }[];
1431
+ validationContext?: string;
1432
+ };
1433
+ };
1434
+ };
1435
+ /** @description Default Response */
1436
+ "5XX": {
1437
+ headers: {
1438
+ [name: string]: unknown;
1439
+ };
1440
+ content: {
1441
+ "application/json": {
1442
+ /** @description Code used to categorize the error */
1443
+ code: string;
1444
+ /** @description Description of the error */
1445
+ detail: string;
1446
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1447
+ requestId: string;
1448
+ /** @description Name of the error type */
1449
+ name: string;
1450
+ /** @description List of the validation errors */
1451
+ validation?: {
1452
+ fieldName: string;
1453
+ message: string;
1454
+ }[];
1455
+ validationContext?: string;
1456
+ };
1457
+ };
1458
+ };
1459
+ };
1460
+ };
1461
+ post?: never;
1462
+ /** @description Deletes the requested template */
1463
+ delete: {
1464
+ parameters: {
1465
+ query?: never;
1466
+ header?: never;
1467
+ path: {
1468
+ templateId: string;
1469
+ };
1470
+ cookie?: never;
1471
+ };
1472
+ requestBody?: never;
1473
+ responses: {
1474
+ /** @description Default Response */
1475
+ 200: {
1476
+ headers: {
1477
+ [name: string]: unknown;
1478
+ };
1479
+ content?: never;
1480
+ };
1481
+ /** @description Default Response */
1482
+ "4XX": {
1483
+ headers: {
1484
+ [name: string]: unknown;
1485
+ };
1486
+ content: {
1487
+ "application/json": {
1488
+ /** @description Code used to categorize the error */
1489
+ code: string;
1490
+ /** @description Description of the error */
1491
+ detail: string;
1492
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1493
+ requestId: string;
1494
+ /** @description Name of the error type */
1495
+ name: string;
1496
+ /** @description List of the validation errors */
1497
+ validation?: {
1498
+ fieldName: string;
1499
+ message: string;
1500
+ }[];
1501
+ validationContext?: string;
1502
+ };
1503
+ };
1504
+ };
1505
+ /** @description Default Response */
1506
+ "5XX": {
1507
+ headers: {
1508
+ [name: string]: unknown;
1509
+ };
1510
+ content: {
1511
+ "application/json": {
1512
+ /** @description Code used to categorize the error */
1513
+ code: string;
1514
+ /** @description Description of the error */
1515
+ detail: string;
1516
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1517
+ requestId: string;
1518
+ /** @description Name of the error type */
1519
+ name: string;
1520
+ /** @description List of the validation errors */
1521
+ validation?: {
1522
+ fieldName: string;
1523
+ message: string;
1524
+ }[];
1525
+ validationContext?: string;
1526
+ };
1527
+ };
1528
+ };
1529
+ };
1530
+ };
1531
+ options?: never;
1532
+ head?: never;
1533
+ patch?: never;
1534
+ trace?: never;
1535
+ };
1536
+ "/api/v1/organisation-settings/": {
1537
+ parameters: {
1538
+ query?: never;
1539
+ header?: never;
1540
+ path?: never;
1541
+ cookie?: never;
1542
+ };
1543
+ /** @description Returns the organisation settings for the logged in user */
1544
+ get: {
1545
+ parameters: {
1546
+ query?: {
1547
+ /** @description Indicates where to start fetching data or how many records to skip, defining the initial position within the list */
1548
+ offset?: string;
1549
+ /** @description Indicates the maximum number (100) of items that will be returned in a single request */
1550
+ limit?: string;
1551
+ };
1552
+ header?: never;
1553
+ path?: never;
1554
+ cookie?: never;
1555
+ };
1556
+ requestBody?: never;
1557
+ responses: {
1558
+ /** @description Default Response */
1559
+ 200: {
1560
+ headers: {
1561
+ [name: string]: unknown;
1562
+ };
1563
+ content: {
1564
+ "application/json": {
1565
+ data: {
1566
+ /**
1567
+ * Format: uuid
1568
+ * @description Unique id of the organisation setting
1569
+ */
1570
+ id: string;
1571
+ /**
1572
+ * Format: uuid
1573
+ * @description Unique id of the related user
1574
+ */
1575
+ userId: string;
1576
+ /**
1577
+ * @description User profile id, if available
1578
+ * @default null
1579
+ */
1580
+ userProfileId: null | string;
1581
+ /**
1582
+ * @description Phone number of the user
1583
+ * @default null
1584
+ */
1585
+ phoneNumber: null | string;
1586
+ /**
1587
+ * @description Email address of the user
1588
+ * @default null
1589
+ */
1590
+ emailAddress: null | string;
1591
+ /** @description Unique id of the related organisation */
1592
+ organisationId: string;
1593
+ /**
1594
+ * @description Current status of the invitation to the messaging building block
1595
+ * @default pending
1596
+ * @enum {string}
1597
+ */
1598
+ organisationInvitationStatus: "to_be_invited" | "pending" | "accepted" | "declined";
1599
+ /** @description Date and time describing when the organisation invitation has been sent */
1600
+ organisationInvitationSentAt?: string;
1601
+ /** @description Date and time describing when the user has gave a feedback to the organisation invitation */
1602
+ organisationInvitationFeedbackAt?: string;
1603
+ /** @description The list of the preferred transports to use. If the selected transports are not available for the recipient, others will be used */
1604
+ organisationPreferredTransports: ("sms" | "email")[];
1605
+ /**
1606
+ * @description If full, it means that the user is already on the Life Events platform, if partial the match has to be reviewed, if not_related the user does not exist
1607
+ * @enum {string}
1608
+ */
1609
+ correlationQuality: "full" | "partial" | "not_related";
1610
+ /**
1611
+ * @default pending
1612
+ * @enum {string}
1613
+ */
1614
+ userStatus: "to_be_invited" | "pending" | "disabled" | "active";
1615
+ details?: {
1616
+ /**
1617
+ * @description PPSN of the imported user
1618
+ * @default null
1619
+ */
1620
+ publicIdentityId: null | string;
1621
+ /**
1622
+ * @description First name of the imported user
1623
+ * @default null
1624
+ */
1625
+ firstName: null | string;
1626
+ /**
1627
+ * @description Last name of the imported user
1628
+ * @default null
1629
+ */
1630
+ lastName: null | string;
1631
+ /**
1632
+ * @description Birth date of the imported user
1633
+ * @default null
1634
+ */
1635
+ birthDate: null | string;
1636
+ /**
1637
+ * @description Address of the imported user
1638
+ * @default null
1639
+ */
1640
+ address: {
1641
+ /** @default null */
1642
+ city: null | string;
1643
+ /** @default null */
1644
+ zipCode: null | string;
1645
+ /** @default null */
1646
+ street: null | string;
1647
+ /** @default null */
1648
+ country: null | string;
1649
+ /** @default null */
1650
+ region: null | string;
1651
+ } | null;
1652
+ /**
1653
+ * @description If false, an invitation to the user asking to accept to receive messages from the organisation will be sent. If true, it means that the organisation already asked the permissions to the user
1654
+ * @default false
1655
+ */
1656
+ collectedConsent: boolean;
1657
+ /**
1658
+ * @description If true, it means that a message to welcome the user has already been sent
1659
+ * @default false
1660
+ */
1661
+ welcomed: boolean;
1662
+ };
1663
+ }[];
1664
+ metadata?: {
1665
+ /** @description Object containing the links to the related endpoints */
1666
+ links?: {
1667
+ self: {
1668
+ /** @description URL pointing to the request itself */
1669
+ href?: string;
1670
+ };
1671
+ next?: {
1672
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
1673
+ href?: string;
1674
+ };
1675
+ prev?: {
1676
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
1677
+ href?: string;
1678
+ };
1679
+ first: {
1680
+ /** @description URL pointing to the first page of results in a paginated response */
1681
+ href?: string;
1682
+ };
1683
+ last: {
1684
+ /** @description URL pointing to the first page of results in a paginated response */
1685
+ href?: string;
1686
+ };
1687
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
1688
+ pages: {
1689
+ [key: string]: {
1690
+ href?: string;
1691
+ };
1692
+ };
1693
+ };
1694
+ /** @description Number representing the total number of available items */
1695
+ totalCount?: number;
1696
+ };
1697
+ };
1698
+ };
1699
+ };
1700
+ /** @description Default Response */
1701
+ 400: {
1702
+ headers: {
1703
+ [name: string]: unknown;
1704
+ };
1705
+ content: {
1706
+ "application/json": {
1707
+ /** @description Code used to categorize the error */
1708
+ code: string;
1709
+ /** @description Description of the error */
1710
+ detail: string;
1711
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1712
+ requestId: string;
1713
+ /** @description Name of the error type */
1714
+ name: string;
1715
+ /** @description List of the validation errors */
1716
+ validation?: {
1717
+ fieldName: string;
1718
+ message: string;
1719
+ }[];
1720
+ validationContext?: string;
1721
+ };
1722
+ };
1723
+ };
1724
+ /** @description Default Response */
1725
+ 404: {
1726
+ headers: {
1727
+ [name: string]: unknown;
1728
+ };
1729
+ content: {
1730
+ "application/json": {
1731
+ /** @description Code used to categorize the error */
1732
+ code: string;
1733
+ /** @description Description of the error */
1734
+ detail: string;
1735
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1736
+ requestId: string;
1737
+ /** @description Name of the error type */
1738
+ name: string;
1739
+ /** @description List of the validation errors */
1740
+ validation?: {
1741
+ fieldName: string;
1742
+ message: string;
1743
+ }[];
1744
+ validationContext?: string;
1745
+ };
1746
+ };
1747
+ };
1748
+ /** @description Default Response */
1749
+ 500: {
1750
+ headers: {
1751
+ [name: string]: unknown;
1752
+ };
1753
+ content: {
1754
+ "application/json": {
1755
+ /** @description Code used to categorize the error */
1756
+ code: string;
1757
+ /** @description Description of the error */
1758
+ detail: string;
1759
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1760
+ requestId: string;
1761
+ /** @description Name of the error type */
1762
+ name: string;
1763
+ /** @description List of the validation errors */
1764
+ validation?: {
1765
+ fieldName: string;
1766
+ message: string;
1767
+ }[];
1768
+ validationContext?: string;
1769
+ };
1770
+ };
1771
+ };
1772
+ };
1773
+ };
1774
+ put?: never;
1775
+ post?: never;
1776
+ delete?: never;
1777
+ options?: never;
1778
+ head?: never;
1779
+ patch?: never;
1780
+ trace?: never;
1781
+ };
1782
+ "/api/v1/organisation-settings/{organisationSettingId}": {
1783
+ parameters: {
1784
+ query?: never;
1785
+ header?: never;
1786
+ path?: never;
1787
+ cookie?: never;
1788
+ };
1789
+ /** @description Returns the requested organisation setting */
1790
+ get: {
1791
+ parameters: {
1792
+ query?: never;
1793
+ header?: never;
1794
+ path: {
1795
+ organisationSettingId: string;
1796
+ };
1797
+ cookie?: never;
1798
+ };
1799
+ requestBody?: never;
1800
+ responses: {
1801
+ /** @description Default Response */
1802
+ 200: {
1803
+ headers: {
1804
+ [name: string]: unknown;
1805
+ };
1806
+ content: {
1807
+ "application/json": {
1808
+ data: {
1809
+ /**
1810
+ * Format: uuid
1811
+ * @description Unique id of the organisation setting
1812
+ */
1813
+ id: string;
1814
+ /**
1815
+ * Format: uuid
1816
+ * @description Unique id of the related user
1817
+ */
1818
+ userId: string;
1819
+ /**
1820
+ * @description User profile id, if available
1821
+ * @default null
1822
+ */
1823
+ userProfileId: null | string;
1824
+ /**
1825
+ * @description Phone number of the user
1826
+ * @default null
1827
+ */
1828
+ phoneNumber: null | string;
1829
+ /**
1830
+ * @description Email address of the user
1831
+ * @default null
1832
+ */
1833
+ emailAddress: null | string;
1834
+ /** @description Unique id of the related organisation */
1835
+ organisationId: string;
1836
+ /**
1837
+ * @description Current status of the invitation to the messaging building block
1838
+ * @default pending
1839
+ * @enum {string}
1840
+ */
1841
+ organisationInvitationStatus: "to_be_invited" | "pending" | "accepted" | "declined";
1842
+ /** @description Date and time describing when the organisation invitation has been sent */
1843
+ organisationInvitationSentAt?: string;
1844
+ /** @description Date and time describing when the user has gave a feedback to the organisation invitation */
1845
+ organisationInvitationFeedbackAt?: string;
1846
+ /** @description The list of the preferred transports to use. If the selected transports are not available for the recipient, others will be used */
1847
+ organisationPreferredTransports: ("sms" | "email")[];
1848
+ /**
1849
+ * @description If full, it means that the user is already on the Life Events platform, if partial the match has to be reviewed, if not_related the user does not exist
1850
+ * @enum {string}
1851
+ */
1852
+ correlationQuality: "full" | "partial" | "not_related";
1853
+ /**
1854
+ * @default pending
1855
+ * @enum {string}
1856
+ */
1857
+ userStatus: "to_be_invited" | "pending" | "disabled" | "active";
1858
+ details?: {
1859
+ /**
1860
+ * @description PPSN of the imported user
1861
+ * @default null
1862
+ */
1863
+ publicIdentityId: null | string;
1864
+ /**
1865
+ * @description First name of the imported user
1866
+ * @default null
1867
+ */
1868
+ firstName: null | string;
1869
+ /**
1870
+ * @description Last name of the imported user
1871
+ * @default null
1872
+ */
1873
+ lastName: null | string;
1874
+ /**
1875
+ * @description Birth date of the imported user
1876
+ * @default null
1877
+ */
1878
+ birthDate: null | string;
1879
+ /**
1880
+ * @description Address of the imported user
1881
+ * @default null
1882
+ */
1883
+ address: {
1884
+ /** @default null */
1885
+ city: null | string;
1886
+ /** @default null */
1887
+ zipCode: null | string;
1888
+ /** @default null */
1889
+ street: null | string;
1890
+ /** @default null */
1891
+ country: null | string;
1892
+ /** @default null */
1893
+ region: null | string;
1894
+ } | null;
1895
+ /**
1896
+ * @description If false, an invitation to the user asking to accept to receive messages from the organisation will be sent. If true, it means that the organisation already asked the permissions to the user
1897
+ * @default false
1898
+ */
1899
+ collectedConsent: boolean;
1900
+ /**
1901
+ * @description If true, it means that a message to welcome the user has already been sent
1902
+ * @default false
1903
+ */
1904
+ welcomed: boolean;
1905
+ };
1906
+ };
1907
+ metadata?: {
1908
+ /** @description Object containing the links to the related endpoints */
1909
+ links?: {
1910
+ self: {
1911
+ /** @description URL pointing to the request itself */
1912
+ href?: string;
1913
+ };
1914
+ next?: {
1915
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
1916
+ href?: string;
1917
+ };
1918
+ prev?: {
1919
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
1920
+ href?: string;
1921
+ };
1922
+ first: {
1923
+ /** @description URL pointing to the first page of results in a paginated response */
1924
+ href?: string;
1925
+ };
1926
+ last: {
1927
+ /** @description URL pointing to the first page of results in a paginated response */
1928
+ href?: string;
1929
+ };
1930
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
1931
+ pages: {
1932
+ [key: string]: {
1933
+ href?: string;
1934
+ };
1935
+ };
1936
+ };
1937
+ /** @description Number representing the total number of available items */
1938
+ totalCount?: number;
1939
+ };
1940
+ };
1941
+ };
1942
+ };
1943
+ /** @description Default Response */
1944
+ 400: {
1945
+ headers: {
1946
+ [name: string]: unknown;
1947
+ };
1948
+ content: {
1949
+ "application/json": {
1950
+ /** @description Code used to categorize the error */
1951
+ code: string;
1952
+ /** @description Description of the error */
1953
+ detail: string;
1954
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1955
+ requestId: string;
1956
+ /** @description Name of the error type */
1957
+ name: string;
1958
+ /** @description List of the validation errors */
1959
+ validation?: {
1960
+ fieldName: string;
1961
+ message: string;
1962
+ }[];
1963
+ validationContext?: string;
1964
+ };
1965
+ };
1966
+ };
1967
+ /** @description Default Response */
1968
+ 404: {
1969
+ headers: {
1970
+ [name: string]: unknown;
1971
+ };
1972
+ content: {
1973
+ "application/json": {
1974
+ /** @description Code used to categorize the error */
1975
+ code: string;
1976
+ /** @description Description of the error */
1977
+ detail: string;
1978
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
1979
+ requestId: string;
1980
+ /** @description Name of the error type */
1981
+ name: string;
1982
+ /** @description List of the validation errors */
1983
+ validation?: {
1984
+ fieldName: string;
1985
+ message: string;
1986
+ }[];
1987
+ validationContext?: string;
1988
+ };
1989
+ };
1990
+ };
1991
+ /** @description Default Response */
1992
+ 500: {
1993
+ headers: {
1994
+ [name: string]: unknown;
1995
+ };
1996
+ content: {
1997
+ "application/json": {
1998
+ /** @description Code used to categorize the error */
1999
+ code: string;
2000
+ /** @description Description of the error */
2001
+ detail: string;
2002
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2003
+ requestId: string;
2004
+ /** @description Name of the error type */
2005
+ name: string;
2006
+ /** @description List of the validation errors */
2007
+ validation?: {
2008
+ fieldName: string;
2009
+ message: string;
2010
+ }[];
2011
+ validationContext?: string;
2012
+ };
2013
+ };
2014
+ };
2015
+ };
2016
+ };
2017
+ put?: never;
2018
+ post?: never;
2019
+ delete?: never;
2020
+ options?: never;
2021
+ head?: never;
2022
+ /** @description Updates the requested organisation settings */
2023
+ patch: {
2024
+ parameters: {
2025
+ query?: never;
2026
+ header?: never;
2027
+ path: {
2028
+ organisationSettingId: string;
2029
+ };
2030
+ cookie?: never;
2031
+ };
2032
+ requestBody: {
2033
+ content: {
2034
+ "application/json": {
2035
+ /**
2036
+ * @description Current status of the invitation to receive messages from the organisation
2037
+ * @default accepted
2038
+ * @enum {string}
2039
+ */
2040
+ invitationStatusFeedback: "accepted" | "declined";
2041
+ /** @description The list of the preferred transports to use. If the selected transports are not available for the recipient, others will be used */
2042
+ preferredTransports: ("sms" | "email")[];
2043
+ };
2044
+ };
2045
+ };
2046
+ responses: {
2047
+ /** @description Default Response */
2048
+ 202: {
2049
+ headers: {
2050
+ [name: string]: unknown;
2051
+ };
2052
+ content: {
2053
+ "application/json": {
2054
+ data: {
2055
+ /**
2056
+ * Format: uuid
2057
+ * @description Unique id of the organisation setting
2058
+ */
2059
+ id: string;
2060
+ /**
2061
+ * Format: uuid
2062
+ * @description Unique id of the related user
2063
+ */
2064
+ userId: string;
2065
+ /**
2066
+ * @description User profile id, if available
2067
+ * @default null
2068
+ */
2069
+ userProfileId: null | string;
2070
+ /**
2071
+ * @description Phone number of the user
2072
+ * @default null
2073
+ */
2074
+ phoneNumber: null | string;
2075
+ /**
2076
+ * @description Email address of the user
2077
+ * @default null
2078
+ */
2079
+ emailAddress: null | string;
2080
+ /** @description Unique id of the related organisation */
2081
+ organisationId: string;
2082
+ /**
2083
+ * @description Current status of the invitation to the messaging building block
2084
+ * @default pending
2085
+ * @enum {string}
2086
+ */
2087
+ organisationInvitationStatus: "to_be_invited" | "pending" | "accepted" | "declined";
2088
+ /** @description Date and time describing when the organisation invitation has been sent */
2089
+ organisationInvitationSentAt?: string;
2090
+ /** @description Date and time describing when the user has gave a feedback to the organisation invitation */
2091
+ organisationInvitationFeedbackAt?: string;
2092
+ /** @description The list of the preferred transports to use. If the selected transports are not available for the recipient, others will be used */
2093
+ organisationPreferredTransports: ("sms" | "email")[];
2094
+ /**
2095
+ * @description If full, it means that the user is already on the Life Events platform, if partial the match has to be reviewed, if not_related the user does not exist
2096
+ * @enum {string}
2097
+ */
2098
+ correlationQuality: "full" | "partial" | "not_related";
2099
+ /**
2100
+ * @default pending
2101
+ * @enum {string}
2102
+ */
2103
+ userStatus: "to_be_invited" | "pending" | "disabled" | "active";
2104
+ details?: {
2105
+ /**
2106
+ * @description PPSN of the imported user
2107
+ * @default null
2108
+ */
2109
+ publicIdentityId: null | string;
2110
+ /**
2111
+ * @description First name of the imported user
2112
+ * @default null
2113
+ */
2114
+ firstName: null | string;
2115
+ /**
2116
+ * @description Last name of the imported user
2117
+ * @default null
2118
+ */
2119
+ lastName: null | string;
2120
+ /**
2121
+ * @description Birth date of the imported user
2122
+ * @default null
2123
+ */
2124
+ birthDate: null | string;
2125
+ /**
2126
+ * @description Address of the imported user
2127
+ * @default null
2128
+ */
2129
+ address: {
2130
+ /** @default null */
2131
+ city: null | string;
2132
+ /** @default null */
2133
+ zipCode: null | string;
2134
+ /** @default null */
2135
+ street: null | string;
2136
+ /** @default null */
2137
+ country: null | string;
2138
+ /** @default null */
2139
+ region: null | string;
2140
+ } | null;
2141
+ /**
2142
+ * @description If false, an invitation to the user asking to accept to receive messages from the organisation will be sent. If true, it means that the organisation already asked the permissions to the user
2143
+ * @default false
2144
+ */
2145
+ collectedConsent: boolean;
2146
+ /**
2147
+ * @description If true, it means that a message to welcome the user has already been sent
2148
+ * @default false
2149
+ */
2150
+ welcomed: boolean;
2151
+ };
2152
+ };
2153
+ metadata?: {
2154
+ /** @description Object containing the links to the related endpoints */
2155
+ links?: {
2156
+ self: {
2157
+ /** @description URL pointing to the request itself */
2158
+ href?: string;
2159
+ };
2160
+ next?: {
2161
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
2162
+ href?: string;
2163
+ };
2164
+ prev?: {
2165
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
2166
+ href?: string;
2167
+ };
2168
+ first: {
2169
+ /** @description URL pointing to the first page of results in a paginated response */
2170
+ href?: string;
2171
+ };
2172
+ last: {
2173
+ /** @description URL pointing to the first page of results in a paginated response */
2174
+ href?: string;
2175
+ };
2176
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
2177
+ pages: {
2178
+ [key: string]: {
2179
+ href?: string;
2180
+ };
2181
+ };
2182
+ };
2183
+ /** @description Number representing the total number of available items */
2184
+ totalCount?: number;
2185
+ };
2186
+ };
2187
+ };
2188
+ };
2189
+ /** @description Default Response */
2190
+ 400: {
2191
+ headers: {
2192
+ [name: string]: unknown;
2193
+ };
2194
+ content: {
2195
+ "application/json": {
2196
+ /** @description Code used to categorize the error */
2197
+ code: string;
2198
+ /** @description Description of the error */
2199
+ detail: string;
2200
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2201
+ requestId: string;
2202
+ /** @description Name of the error type */
2203
+ name: string;
2204
+ /** @description List of the validation errors */
2205
+ validation?: {
2206
+ fieldName: string;
2207
+ message: string;
2208
+ }[];
2209
+ validationContext?: string;
2210
+ };
2211
+ };
2212
+ };
2213
+ /** @description Default Response */
2214
+ 404: {
2215
+ headers: {
2216
+ [name: string]: unknown;
2217
+ };
2218
+ content: {
2219
+ "application/json": {
2220
+ /** @description Code used to categorize the error */
2221
+ code: string;
2222
+ /** @description Description of the error */
2223
+ detail: string;
2224
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2225
+ requestId: string;
2226
+ /** @description Name of the error type */
2227
+ name: string;
2228
+ /** @description List of the validation errors */
2229
+ validation?: {
2230
+ fieldName: string;
2231
+ message: string;
2232
+ }[];
2233
+ validationContext?: string;
2234
+ };
2235
+ };
2236
+ };
2237
+ /** @description Default Response */
2238
+ 500: {
2239
+ headers: {
2240
+ [name: string]: unknown;
2241
+ };
2242
+ content: {
2243
+ "application/json": {
2244
+ /** @description Code used to categorize the error */
2245
+ code: string;
2246
+ /** @description Description of the error */
2247
+ detail: string;
2248
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2249
+ requestId: string;
2250
+ /** @description Name of the error type */
2251
+ name: string;
2252
+ /** @description List of the validation errors */
2253
+ validation?: {
2254
+ fieldName: string;
2255
+ message: string;
2256
+ }[];
2257
+ validationContext?: string;
2258
+ };
2259
+ };
2260
+ };
2261
+ };
2262
+ };
2263
+ trace?: never;
2264
+ };
2265
+ "/api/v1/user-imports/": {
2266
+ parameters: {
2267
+ query?: never;
2268
+ header?: never;
2269
+ path?: never;
2270
+ cookie?: never;
2271
+ };
2272
+ /** @description Retrieves the user import batches related to the current organisation */
2273
+ get: {
2274
+ parameters: {
2275
+ query?: {
2276
+ /** @description Indicates where to start fetching data or how many records to skip, defining the initial position within the list */
2277
+ offset?: string;
2278
+ /** @description Indicates the maximum number (100) of items that will be returned in a single request */
2279
+ limit?: string;
2280
+ };
2281
+ header?: never;
2282
+ path?: never;
2283
+ cookie?: never;
2284
+ };
2285
+ requestBody?: never;
2286
+ responses: {
2287
+ /** @description Default Response */
2288
+ 200: {
2289
+ headers: {
2290
+ [name: string]: unknown;
2291
+ };
2292
+ content: {
2293
+ "application/json": {
2294
+ data: {
2295
+ organisationId: string;
2296
+ /** Format: date-time */
2297
+ importedAt: string;
2298
+ /**
2299
+ * @description Channel through which the users have been imported
2300
+ * @default api
2301
+ * @enum {string}
2302
+ */
2303
+ importChannel: "api" | "csv";
2304
+ /** @default 0 */
2305
+ retryCount: number;
2306
+ /** @default null */
2307
+ lastRetryAt: string | null;
2308
+ /** Format: uuid */
2309
+ id: string;
2310
+ }[];
2311
+ metadata?: {
2312
+ /** @description Object containing the links to the related endpoints */
2313
+ links?: {
2314
+ self: {
2315
+ /** @description URL pointing to the request itself */
2316
+ href?: string;
2317
+ };
2318
+ next?: {
2319
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
2320
+ href?: string;
2321
+ };
2322
+ prev?: {
2323
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
2324
+ href?: string;
2325
+ };
2326
+ first: {
2327
+ /** @description URL pointing to the first page of results in a paginated response */
2328
+ href?: string;
2329
+ };
2330
+ last: {
2331
+ /** @description URL pointing to the first page of results in a paginated response */
2332
+ href?: string;
2333
+ };
2334
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
2335
+ pages: {
2336
+ [key: string]: {
2337
+ href?: string;
2338
+ };
2339
+ };
2340
+ };
2341
+ /** @description Number representing the total number of available items */
2342
+ totalCount?: number;
2343
+ };
2344
+ };
2345
+ };
2346
+ };
2347
+ };
2348
+ };
2349
+ put?: never;
2350
+ /** @description Imports a new batch of users. If 'Content-Type' header contains 'multipart/form-data' it accepts a CSV file, otherwise an array of users to import */
2351
+ post: {
2352
+ parameters: {
2353
+ query?: never;
2354
+ header?: never;
2355
+ path?: never;
2356
+ cookie?: never;
2357
+ };
2358
+ requestBody?: {
2359
+ content: {
2360
+ "multipart/form-data": {
2361
+ /** @description Numeric index of the user to import. It must increments by one across users so to be able to notify which users' import failed */
2362
+ importIndex: number;
2363
+ /**
2364
+ * @description PPSN of the user to be imported
2365
+ * @default null
2366
+ */
2367
+ publicIdentityId?: null | string;
2368
+ /**
2369
+ * @description First name of the user to be imported
2370
+ * @default null
2371
+ */
2372
+ firstName?: null | string;
2373
+ /**
2374
+ * @description Last name of the user to be imported
2375
+ * @default null
2376
+ */
2377
+ lastName?: null | string;
2378
+ /**
2379
+ * @description Phone number of the user to be imported
2380
+ * @default null
2381
+ */
2382
+ phoneNumber?: null | string;
2383
+ /**
2384
+ * @description Birth date of the user to be imported
2385
+ * @default null
2386
+ */
2387
+ birthDate?: null | string;
2388
+ /**
2389
+ * @description Email address of the user to be imported
2390
+ * @default null
2391
+ */
2392
+ emailAddress?: null | string;
2393
+ /**
2394
+ * @description City of the user to be imported
2395
+ * @default null
2396
+ */
2397
+ addressCity?: null | string;
2398
+ /**
2399
+ * @description Zip Code of the user to be imported
2400
+ * @default null
2401
+ */
2402
+ addressZipCode?: null | string;
2403
+ /**
2404
+ * @description Street of the user to be imported
2405
+ * @default null
2406
+ */
2407
+ addressStreet?: null | string;
2408
+ /**
2409
+ * @description Country of the user to be imported
2410
+ * @default null
2411
+ */
2412
+ addressCountry?: null | string;
2413
+ /**
2414
+ * @description Region of the user to be imported
2415
+ * @default null
2416
+ */
2417
+ addressRegion?: null | string;
2418
+ /**
2419
+ * @description Tags of the user to be imported. The tags can made by multiple levels, splitting each level by a '.' and listing multiple tags using a ';'
2420
+ * @default null
2421
+ */
2422
+ tags?: null | string;
2423
+ /**
2424
+ * @description If false, an invitation to the user asking to accept to receive messages from the organisation will be sent. If true, it means that the organisation already asked the permissions to the user
2425
+ * @default false
2426
+ */
2427
+ collectedConsent?: null | string;
2428
+ }[] | unknown;
2429
+ "application/json": {
2430
+ /** @description Numeric index of the user to import. It must increments by one across users so to be able to notify which users' import failed */
2431
+ importIndex: number;
2432
+ /**
2433
+ * @description PPSN of the user to be imported
2434
+ * @default null
2435
+ */
2436
+ publicIdentityId?: null | string;
2437
+ /**
2438
+ * @description First name of the user to be imported
2439
+ * @default null
2440
+ */
2441
+ firstName?: null | string;
2442
+ /**
2443
+ * @description Last name of the user to be imported
2444
+ * @default null
2445
+ */
2446
+ lastName?: null | string;
2447
+ /**
2448
+ * @description Phone number of the user to be imported
2449
+ * @default null
2450
+ */
2451
+ phoneNumber?: null | string;
2452
+ /**
2453
+ * @description Birth date of the user to be imported
2454
+ * @default null
2455
+ */
2456
+ birthDate?: null | string;
2457
+ /**
2458
+ * @description Email address of the user to be imported
2459
+ * @default null
2460
+ */
2461
+ emailAddress?: null | string;
2462
+ /**
2463
+ * @description City of the user to be imported
2464
+ * @default null
2465
+ */
2466
+ addressCity?: null | string;
2467
+ /**
2468
+ * @description Zip Code of the user to be imported
2469
+ * @default null
2470
+ */
2471
+ addressZipCode?: null | string;
2472
+ /**
2473
+ * @description Street of the user to be imported
2474
+ * @default null
2475
+ */
2476
+ addressStreet?: null | string;
2477
+ /**
2478
+ * @description Country of the user to be imported
2479
+ * @default null
2480
+ */
2481
+ addressCountry?: null | string;
2482
+ /**
2483
+ * @description Region of the user to be imported
2484
+ * @default null
2485
+ */
2486
+ addressRegion?: null | string;
2487
+ /**
2488
+ * @description Tags of the user to be imported. The tags can made by multiple levels, splitting each level by a '.' and listing multiple tags using a ';'
2489
+ * @default null
2490
+ */
2491
+ tags?: null | string;
2492
+ /**
2493
+ * @description If false, an invitation to the user asking to accept to receive messages from the organisation will be sent. If true, it means that the organisation already asked the permissions to the user
2494
+ * @default false
2495
+ */
2496
+ collectedConsent?: null | string;
2497
+ }[] | unknown;
2498
+ };
2499
+ };
2500
+ responses: {
2501
+ /** @description Default Response */
2502
+ 200: {
2503
+ headers: {
2504
+ [name: string]: unknown;
2505
+ };
2506
+ content: {
2507
+ "application/json": {
2508
+ data: {
2509
+ /** Format: uuid */
2510
+ id: string;
2511
+ };
2512
+ };
2513
+ };
2514
+ };
2515
+ /** @description Default Response */
2516
+ "5XX": {
2517
+ headers: {
2518
+ [name: string]: unknown;
2519
+ };
2520
+ content: {
2521
+ "application/json": {
2522
+ /** @description Code used to categorize the error */
2523
+ code: string;
2524
+ /** @description Description of the error */
2525
+ detail: string;
2526
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2527
+ requestId: string;
2528
+ /** @description Name of the error type */
2529
+ name: string;
2530
+ /** @description List of the validation errors */
2531
+ validation?: {
2532
+ fieldName: string;
2533
+ message: string;
2534
+ }[];
2535
+ validationContext?: string;
2536
+ };
2537
+ };
2538
+ };
2539
+ /** @description Default Response */
2540
+ "4XX": {
2541
+ headers: {
2542
+ [name: string]: unknown;
2543
+ };
2544
+ content: {
2545
+ "application/json": {
2546
+ /** @description Code used to categorize the error */
2547
+ code: string;
2548
+ /** @description Description of the error */
2549
+ detail: string;
2550
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2551
+ requestId: string;
2552
+ /** @description Name of the error type */
2553
+ name: string;
2554
+ /** @description List of the validation errors */
2555
+ validation?: {
2556
+ fieldName: string;
2557
+ message: string;
2558
+ }[];
2559
+ validationContext?: string;
2560
+ };
2561
+ };
2562
+ };
2563
+ };
2564
+ };
2565
+ delete?: never;
2566
+ options?: never;
2567
+ head?: never;
2568
+ patch?: never;
2569
+ trace?: never;
2570
+ };
2571
+ "/api/v1/user-imports/{importId}": {
2572
+ parameters: {
2573
+ query?: never;
2574
+ header?: never;
2575
+ path?: never;
2576
+ cookie?: never;
2577
+ };
2578
+ /** @description Retrieves the requested user import batch */
2579
+ get: {
2580
+ parameters: {
2581
+ query?: {
2582
+ /** @description If true, it returns the data of the user sent in the import batch */
2583
+ includeImportedData?: "true" | "false" | "0" | "1";
2584
+ };
2585
+ header?: never;
2586
+ path: {
2587
+ importId: string;
2588
+ };
2589
+ cookie?: never;
2590
+ };
2591
+ requestBody?: never;
2592
+ responses: {
2593
+ /** @description Default Response */
2594
+ 200: {
2595
+ headers: {
2596
+ [name: string]: unknown;
2597
+ };
2598
+ content: {
2599
+ "application/json": {
2600
+ data: {
2601
+ organisationId: string;
2602
+ /** Format: date-time */
2603
+ importedAt: string;
2604
+ usersData: {
2605
+ importIndex: number;
2606
+ /**
2607
+ * @description Phone number of the user
2608
+ * @default null
2609
+ */
2610
+ phoneNumber: null | string;
2611
+ /**
2612
+ * @description Email address of the user
2613
+ * @default null
2614
+ */
2615
+ emailAddress: null | string;
2616
+ /**
2617
+ * @description Result of the import for the user
2618
+ * @default pending
2619
+ * @enum {string}
2620
+ */
2621
+ importStatus: "pending" | "imported" | "not_found" | "error" | "missing_contacts";
2622
+ /**
2623
+ * @description The error raised during the import, if set
2624
+ * @default null
2625
+ */
2626
+ importError: null | string;
2627
+ /**
2628
+ * @description Related user profile id from the Life Events building block, if available
2629
+ * @default null
2630
+ */
2631
+ relatedUserProfileId: null | string;
2632
+ /**
2633
+ * @description Related user id from the Messaging building block, if available
2634
+ * @default null
2635
+ */
2636
+ relatedUserId: null | string;
2637
+ /** @description Tags related to the user */
2638
+ tags?: string[];
2639
+ /**
2640
+ * @description PPSN of the imported user
2641
+ * @default null
2642
+ */
2643
+ publicIdentityId: null | string;
2644
+ /**
2645
+ * @description First name of the imported user
2646
+ * @default null
2647
+ */
2648
+ firstName: null | string;
2649
+ /**
2650
+ * @description Last name of the imported user
2651
+ * @default null
2652
+ */
2653
+ lastName: null | string;
2654
+ /**
2655
+ * @description Birth date of the imported user
2656
+ * @default null
2657
+ */
2658
+ birthDate: null | string;
2659
+ /**
2660
+ * @description Address of the imported user
2661
+ * @default null
2662
+ */
2663
+ address: {
2664
+ /** @default null */
2665
+ city: null | string;
2666
+ /** @default null */
2667
+ zipCode: null | string;
2668
+ /** @default null */
2669
+ street: null | string;
2670
+ /** @default null */
2671
+ country: null | string;
2672
+ /** @default null */
2673
+ region: null | string;
2674
+ } | null;
2675
+ /**
2676
+ * @description If false, an invitation to the user asking to accept to receive messages from the organisation will be sent. If true, it means that the organisation already asked the permissions to the user
2677
+ * @default false
2678
+ */
2679
+ collectedConsent: boolean;
2680
+ /**
2681
+ * @description If true, it means that a message to welcome the user has already been sent
2682
+ * @default false
2683
+ */
2684
+ welcomed: boolean;
2685
+ }[];
2686
+ /**
2687
+ * @description Channel through which the users have been imported
2688
+ * @default api
2689
+ * @enum {string}
2690
+ */
2691
+ importChannel: "api" | "csv";
2692
+ /** @default 0 */
2693
+ retryCount: number;
2694
+ /** @default null */
2695
+ lastRetryAt: string | null;
2696
+ /** Format: uuid */
2697
+ id: string;
2698
+ };
2699
+ metadata?: {
2700
+ /** @description Object containing the links to the related endpoints */
2701
+ links?: {
2702
+ self: {
2703
+ /** @description URL pointing to the request itself */
2704
+ href?: string;
2705
+ };
2706
+ next?: {
2707
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
2708
+ href?: string;
2709
+ };
2710
+ prev?: {
2711
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
2712
+ href?: string;
2713
+ };
2714
+ first: {
2715
+ /** @description URL pointing to the first page of results in a paginated response */
2716
+ href?: string;
2717
+ };
2718
+ last: {
2719
+ /** @description URL pointing to the first page of results in a paginated response */
2720
+ href?: string;
2721
+ };
2722
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
2723
+ pages: {
2724
+ [key: string]: {
2725
+ href?: string;
2726
+ };
2727
+ };
2728
+ };
2729
+ /** @description Number representing the total number of available items */
2730
+ totalCount?: number;
2731
+ };
2732
+ };
2733
+ };
2734
+ };
2735
+ /** @description Default Response */
2736
+ "5XX": {
2737
+ headers: {
2738
+ [name: string]: unknown;
2739
+ };
2740
+ content: {
2741
+ "application/json": {
2742
+ /** @description Code used to categorize the error */
2743
+ code: string;
2744
+ /** @description Description of the error */
2745
+ detail: string;
2746
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2747
+ requestId: string;
2748
+ /** @description Name of the error type */
2749
+ name: string;
2750
+ /** @description List of the validation errors */
2751
+ validation?: {
2752
+ fieldName: string;
2753
+ message: string;
2754
+ }[];
2755
+ validationContext?: string;
2756
+ };
2757
+ };
2758
+ };
2759
+ /** @description Default Response */
2760
+ "4XX": {
2761
+ headers: {
2762
+ [name: string]: unknown;
2763
+ };
2764
+ content: {
2765
+ "application/json": {
2766
+ /** @description Code used to categorize the error */
2767
+ code: string;
2768
+ /** @description Description of the error */
2769
+ detail: string;
2770
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2771
+ requestId: string;
2772
+ /** @description Name of the error type */
2773
+ name: string;
2774
+ /** @description List of the validation errors */
2775
+ validation?: {
2776
+ fieldName: string;
2777
+ message: string;
2778
+ }[];
2779
+ validationContext?: string;
2780
+ };
2781
+ };
2782
+ };
2783
+ };
2784
+ };
2785
+ put?: never;
2786
+ post?: never;
2787
+ delete?: never;
2788
+ options?: never;
2789
+ head?: never;
2790
+ patch?: never;
2791
+ trace?: never;
2792
+ };
2793
+ "/api/v1/user-imports/template-download": {
2794
+ parameters: {
2795
+ query?: never;
2796
+ header?: never;
2797
+ path?: never;
2798
+ cookie?: never;
2799
+ };
2800
+ /** @description Returns a string containing the template with the csv that will be used to import users */
2801
+ get: {
2802
+ parameters: {
2803
+ query?: never;
2804
+ header?: never;
2805
+ path?: never;
2806
+ cookie?: never;
2807
+ };
2808
+ requestBody?: never;
2809
+ responses: {
2810
+ /** @description The header and one example line for the CSV template that must be used to import users */
2811
+ 200: {
2812
+ headers: {
2813
+ [name: string]: unknown;
2814
+ };
2815
+ content: {
2816
+ "text/csv": string;
2817
+ };
2818
+ };
2819
+ };
2820
+ };
2821
+ put?: never;
2822
+ post?: never;
2823
+ delete?: never;
2824
+ options?: never;
2825
+ head?: never;
2826
+ patch?: never;
2827
+ trace?: never;
2828
+ };
2829
+ "/api/v1/users/": {
2830
+ parameters: {
2831
+ query?: never;
2832
+ header?: never;
2833
+ path?: never;
2834
+ cookie?: never;
2835
+ };
2836
+ get: {
2837
+ parameters: {
2838
+ query?: {
2839
+ /** @description If set, the endpoint searches for users whom contain this value in either the name, the surname, or the email address */
2840
+ search?: string;
2841
+ /** @description If set, it must contain a list of transports divided by ',' and the endpoint searches for users whom have selected at least one of them as preferred for the organisation */
2842
+ transports?: string;
2843
+ /** @description If set, the endpoint returns the users whom have imported by that specific batch */
2844
+ importId?: string;
2845
+ /** @description If true, the endpoint returns active only users */
2846
+ activeOnly?: string;
2847
+ /** @description Indicates where to start fetching data or how many records to skip, defining the initial position within the list */
2848
+ offset?: string;
2849
+ /** @description Indicates the maximum number (100) of items that will be returned in a single request */
2850
+ limit?: string;
2851
+ };
2852
+ header?: never;
2853
+ path?: never;
2854
+ cookie?: never;
2855
+ };
2856
+ requestBody?: never;
2857
+ responses: {
2858
+ /** @description Default Response */
2859
+ 200: {
2860
+ headers: {
2861
+ [name: string]: unknown;
2862
+ };
2863
+ content: {
2864
+ "application/json": {
2865
+ data: {
2866
+ /**
2867
+ * Format: uuid
2868
+ * @description Unique id of the organisation setting
2869
+ */
2870
+ organisationSettingId: string;
2871
+ /**
2872
+ * @description First name of the user
2873
+ * @default null
2874
+ */
2875
+ firstName: null | string;
2876
+ /**
2877
+ * @description Last name of the user
2878
+ * @default null
2879
+ */
2880
+ lastName: null | string;
2881
+ /**
2882
+ * @description Birth date of the user
2883
+ * @default null
2884
+ */
2885
+ birthDate: null | string;
2886
+ /**
2887
+ * @description Preferred language of the user
2888
+ * @default null
2889
+ */
2890
+ lang: null | string;
2891
+ /**
2892
+ * @description PPSN of the user
2893
+ * @default null
2894
+ */
2895
+ ppsn: null | string;
2896
+ /**
2897
+ * Format: uuid
2898
+ * @description Unique id of the related user
2899
+ */
2900
+ id: string;
2901
+ /**
2902
+ * @description User profile id, if available
2903
+ * @default null
2904
+ */
2905
+ userProfileId: null | string;
2906
+ /**
2907
+ * @description Phone number of the user
2908
+ * @default null
2909
+ */
2910
+ phoneNumber: null | string;
2911
+ /**
2912
+ * @description Email address of the user
2913
+ * @default null
2914
+ */
2915
+ emailAddress: null | string;
2916
+ /** @description Unique id of the related organisation */
2917
+ organisationId: string;
2918
+ /**
2919
+ * @description Current status of the invitation to the messaging building block
2920
+ * @default pending
2921
+ * @enum {string}
2922
+ */
2923
+ organisationInvitationStatus: "to_be_invited" | "pending" | "accepted" | "declined";
2924
+ /** @description Date and time describing when the organisation invitation has been sent */
2925
+ organisationInvitationSentAt?: string;
2926
+ /** @description Date and time describing when the user has gave a feedback to the organisation invitation */
2927
+ organisationInvitationFeedbackAt?: string;
2928
+ /** @description The list of the preferred transports to use. If the selected transports are not available for the recipient, others will be used */
2929
+ organisationPreferredTransports: ("sms" | "email")[];
2930
+ /**
2931
+ * @description If full, it means that the user is already on the Life Events platform, if partial the match has to be reviewed, if not_related the user does not exist
2932
+ * @enum {string}
2933
+ */
2934
+ correlationQuality: "full" | "partial" | "not_related";
2935
+ /**
2936
+ * @default pending
2937
+ * @enum {string}
2938
+ */
2939
+ userStatus: "to_be_invited" | "pending" | "disabled" | "active";
2940
+ details?: {
2941
+ /**
2942
+ * @description PPSN of the imported user
2943
+ * @default null
2944
+ */
2945
+ publicIdentityId: null | string;
2946
+ /**
2947
+ * @description First name of the imported user
2948
+ * @default null
2949
+ */
2950
+ firstName: null | string;
2951
+ /**
2952
+ * @description Last name of the imported user
2953
+ * @default null
2954
+ */
2955
+ lastName: null | string;
2956
+ /**
2957
+ * @description Birth date of the imported user
2958
+ * @default null
2959
+ */
2960
+ birthDate: null | string;
2961
+ /**
2962
+ * @description Address of the imported user
2963
+ * @default null
2964
+ */
2965
+ address: {
2966
+ /** @default null */
2967
+ city: null | string;
2968
+ /** @default null */
2969
+ zipCode: null | string;
2970
+ /** @default null */
2971
+ street: null | string;
2972
+ /** @default null */
2973
+ country: null | string;
2974
+ /** @default null */
2975
+ region: null | string;
2976
+ } | null;
2977
+ /**
2978
+ * @description If false, an invitation to the user asking to accept to receive messages from the organisation will be sent. If true, it means that the organisation already asked the permissions to the user
2979
+ * @default false
2980
+ */
2981
+ collectedConsent: boolean;
2982
+ /**
2983
+ * @description If true, it means that a message to welcome the user has already been sent
2984
+ * @default false
2985
+ */
2986
+ welcomed: boolean;
2987
+ };
2988
+ }[];
2989
+ metadata?: {
2990
+ /** @description Object containing the links to the related endpoints */
2991
+ links?: {
2992
+ self: {
2993
+ /** @description URL pointing to the request itself */
2994
+ href?: string;
2995
+ };
2996
+ next?: {
2997
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
2998
+ href?: string;
2999
+ };
3000
+ prev?: {
3001
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
3002
+ href?: string;
3003
+ };
3004
+ first: {
3005
+ /** @description URL pointing to the first page of results in a paginated response */
3006
+ href?: string;
3007
+ };
3008
+ last: {
3009
+ /** @description URL pointing to the first page of results in a paginated response */
3010
+ href?: string;
3011
+ };
3012
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
3013
+ pages: {
3014
+ [key: string]: {
3015
+ href?: string;
3016
+ };
3017
+ };
3018
+ };
3019
+ /** @description Number representing the total number of available items */
3020
+ totalCount?: number;
3021
+ };
3022
+ };
3023
+ };
3024
+ };
3025
+ /** @description Default Response */
3026
+ "5XX": {
3027
+ headers: {
3028
+ [name: string]: unknown;
3029
+ };
3030
+ content: {
3031
+ "application/json": {
3032
+ /** @description Code used to categorize the error */
3033
+ code: string;
3034
+ /** @description Description of the error */
3035
+ detail: string;
3036
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3037
+ requestId: string;
3038
+ /** @description Name of the error type */
3039
+ name: string;
3040
+ /** @description List of the validation errors */
3041
+ validation?: {
3042
+ fieldName: string;
3043
+ message: string;
3044
+ }[];
3045
+ validationContext?: string;
3046
+ };
3047
+ };
3048
+ };
3049
+ /** @description Default Response */
3050
+ "4XX": {
3051
+ headers: {
3052
+ [name: string]: unknown;
3053
+ };
3054
+ content: {
3055
+ "application/json": {
3056
+ /** @description Code used to categorize the error */
3057
+ code: string;
3058
+ /** @description Description of the error */
3059
+ detail: string;
3060
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3061
+ requestId: string;
3062
+ /** @description Name of the error type */
3063
+ name: string;
3064
+ /** @description List of the validation errors */
3065
+ validation?: {
3066
+ fieldName: string;
3067
+ message: string;
3068
+ }[];
3069
+ validationContext?: string;
3070
+ };
3071
+ };
3072
+ };
3073
+ };
3074
+ };
3075
+ put?: never;
3076
+ post?: never;
3077
+ delete?: never;
3078
+ options?: never;
3079
+ head?: never;
3080
+ patch?: never;
3081
+ trace?: never;
3082
+ };
3083
+ "/api/v1/users/{userId}": {
3084
+ parameters: {
3085
+ query?: never;
3086
+ header?: never;
3087
+ path?: never;
3088
+ cookie?: never;
3089
+ };
3090
+ /** @description Returns the requested user */
3091
+ get: {
3092
+ parameters: {
3093
+ query?: {
3094
+ /** @description If true, the endpoint returns active only users */
3095
+ activeOnly?: string;
3096
+ };
3097
+ header?: never;
3098
+ path: {
3099
+ userId: string;
3100
+ };
3101
+ cookie?: never;
3102
+ };
3103
+ requestBody?: never;
3104
+ responses: {
3105
+ /** @description Default Response */
3106
+ 200: {
3107
+ headers: {
3108
+ [name: string]: unknown;
3109
+ };
3110
+ content: {
3111
+ "application/json": {
3112
+ data: {
3113
+ /**
3114
+ * Format: uuid
3115
+ * @description Unique id of the organisation setting
3116
+ */
3117
+ organisationSettingId: string;
3118
+ /**
3119
+ * @description First name of the user
3120
+ * @default null
3121
+ */
3122
+ firstName: null | string;
3123
+ /**
3124
+ * @description Last name of the user
3125
+ * @default null
3126
+ */
3127
+ lastName: null | string;
3128
+ /**
3129
+ * @description Birth date of the user
3130
+ * @default null
3131
+ */
3132
+ birthDate: null | string;
3133
+ /**
3134
+ * @description Preferred language of the user
3135
+ * @default null
3136
+ */
3137
+ lang: null | string;
3138
+ /**
3139
+ * @description PPSN of the user
3140
+ * @default null
3141
+ */
3142
+ ppsn: null | string;
3143
+ /**
3144
+ * Format: uuid
3145
+ * @description Unique id of the related user
3146
+ */
3147
+ id: string;
3148
+ /**
3149
+ * @description User profile id, if available
3150
+ * @default null
3151
+ */
3152
+ userProfileId: null | string;
3153
+ /**
3154
+ * @description Phone number of the user
3155
+ * @default null
3156
+ */
3157
+ phoneNumber: null | string;
3158
+ /**
3159
+ * @description Email address of the user
3160
+ * @default null
3161
+ */
3162
+ emailAddress: null | string;
3163
+ /** @description Unique id of the related organisation */
3164
+ organisationId: string;
3165
+ /**
3166
+ * @description Current status of the invitation to the messaging building block
3167
+ * @default pending
3168
+ * @enum {string}
3169
+ */
3170
+ organisationInvitationStatus: "to_be_invited" | "pending" | "accepted" | "declined";
3171
+ /** @description Date and time describing when the organisation invitation has been sent */
3172
+ organisationInvitationSentAt?: string;
3173
+ /** @description Date and time describing when the user has gave a feedback to the organisation invitation */
3174
+ organisationInvitationFeedbackAt?: string;
3175
+ /** @description The list of the preferred transports to use. If the selected transports are not available for the recipient, others will be used */
3176
+ organisationPreferredTransports: ("sms" | "email")[];
3177
+ /**
3178
+ * @description If full, it means that the user is already on the Life Events platform, if partial the match has to be reviewed, if not_related the user does not exist
3179
+ * @enum {string}
3180
+ */
3181
+ correlationQuality: "full" | "partial" | "not_related";
3182
+ /**
3183
+ * @default pending
3184
+ * @enum {string}
3185
+ */
3186
+ userStatus: "to_be_invited" | "pending" | "disabled" | "active";
3187
+ details?: {
3188
+ /**
3189
+ * @description PPSN of the imported user
3190
+ * @default null
3191
+ */
3192
+ publicIdentityId: null | string;
3193
+ /**
3194
+ * @description First name of the imported user
3195
+ * @default null
3196
+ */
3197
+ firstName: null | string;
3198
+ /**
3199
+ * @description Last name of the imported user
3200
+ * @default null
3201
+ */
3202
+ lastName: null | string;
3203
+ /**
3204
+ * @description Birth date of the imported user
3205
+ * @default null
3206
+ */
3207
+ birthDate: null | string;
3208
+ /**
3209
+ * @description Address of the imported user
3210
+ * @default null
3211
+ */
3212
+ address: {
3213
+ /** @default null */
3214
+ city: null | string;
3215
+ /** @default null */
3216
+ zipCode: null | string;
3217
+ /** @default null */
3218
+ street: null | string;
3219
+ /** @default null */
3220
+ country: null | string;
3221
+ /** @default null */
3222
+ region: null | string;
3223
+ } | null;
3224
+ /**
3225
+ * @description If false, an invitation to the user asking to accept to receive messages from the organisation will be sent. If true, it means that the organisation already asked the permissions to the user
3226
+ * @default false
3227
+ */
3228
+ collectedConsent: boolean;
3229
+ /**
3230
+ * @description If true, it means that a message to welcome the user has already been sent
3231
+ * @default false
3232
+ */
3233
+ welcomed: boolean;
3234
+ };
3235
+ };
3236
+ metadata?: {
3237
+ /** @description Object containing the links to the related endpoints */
3238
+ links?: {
3239
+ self: {
3240
+ /** @description URL pointing to the request itself */
3241
+ href?: string;
3242
+ };
3243
+ next?: {
3244
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
3245
+ href?: string;
3246
+ };
3247
+ prev?: {
3248
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
3249
+ href?: string;
3250
+ };
3251
+ first: {
3252
+ /** @description URL pointing to the first page of results in a paginated response */
3253
+ href?: string;
3254
+ };
3255
+ last: {
3256
+ /** @description URL pointing to the first page of results in a paginated response */
3257
+ href?: string;
3258
+ };
3259
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
3260
+ pages: {
3261
+ [key: string]: {
3262
+ href?: string;
3263
+ };
3264
+ };
3265
+ };
3266
+ /** @description Number representing the total number of available items */
3267
+ totalCount?: number;
3268
+ };
3269
+ };
3270
+ };
3271
+ };
3272
+ /** @description Default Response */
3273
+ "5XX": {
3274
+ headers: {
3275
+ [name: string]: unknown;
3276
+ };
3277
+ content: {
3278
+ "application/json": {
3279
+ /** @description Code used to categorize the error */
3280
+ code: string;
3281
+ /** @description Description of the error */
3282
+ detail: string;
3283
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3284
+ requestId: string;
3285
+ /** @description Name of the error type */
3286
+ name: string;
3287
+ /** @description List of the validation errors */
3288
+ validation?: {
3289
+ fieldName: string;
3290
+ message: string;
3291
+ }[];
3292
+ validationContext?: string;
3293
+ };
3294
+ };
3295
+ };
3296
+ /** @description Default Response */
3297
+ "4XX": {
3298
+ headers: {
3299
+ [name: string]: unknown;
3300
+ };
3301
+ content: {
3302
+ "application/json": {
3303
+ /** @description Code used to categorize the error */
3304
+ code: string;
3305
+ /** @description Description of the error */
3306
+ detail: string;
3307
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3308
+ requestId: string;
3309
+ /** @description Name of the error type */
3310
+ name: string;
3311
+ /** @description List of the validation errors */
3312
+ validation?: {
3313
+ fieldName: string;
3314
+ message: string;
3315
+ }[];
3316
+ validationContext?: string;
3317
+ };
3318
+ };
3319
+ };
3320
+ };
3321
+ };
3322
+ put?: never;
3323
+ post?: never;
3324
+ delete?: never;
3325
+ options?: never;
3326
+ head?: never;
3327
+ patch?: never;
3328
+ trace?: never;
3329
+ };
3330
+ "/api/v1/message-events/": {
3331
+ parameters: {
3332
+ query?: never;
3333
+ header?: never;
3334
+ path?: never;
3335
+ cookie?: never;
3336
+ };
3337
+ /** @description Returns the message events that match the requested query */
3338
+ get: {
3339
+ parameters: {
3340
+ query?: {
3341
+ /** @description If set, it filters the events for the messages containing the set value in subject */
3342
+ search?: string;
3343
+ /** @description Indicates where to start fetching data or how many records to skip, defining the initial position within the list */
3344
+ offset?: string;
3345
+ /** @description Indicates the maximum number (100) of items that will be returned in a single request */
3346
+ limit?: string;
3347
+ };
3348
+ header?: never;
3349
+ path?: never;
3350
+ cookie?: never;
3351
+ };
3352
+ requestBody?: never;
3353
+ responses: {
3354
+ /** @description Default Response */
3355
+ 200: {
3356
+ headers: {
3357
+ [name: string]: unknown;
3358
+ };
3359
+ content: {
3360
+ "application/json": {
3361
+ data: {
3362
+ /**
3363
+ * Format: uuid
3364
+ * @description Unique id of the event
3365
+ */
3366
+ id: string;
3367
+ /**
3368
+ * Format: uuid
3369
+ * @description Unique id of the related message
3370
+ */
3371
+ messageId: string;
3372
+ /** @description Subject of the related message */
3373
+ subject: string;
3374
+ /** @description Full name of the recipient */
3375
+ receiverFullName: string;
3376
+ /** @description Event type description */
3377
+ eventType: string;
3378
+ /** @description Status for event type */
3379
+ eventStatus: string;
3380
+ /** @description Date and time which describes when the message has to be sent */
3381
+ scheduledAt: string;
3382
+ }[];
3383
+ metadata?: {
3384
+ /** @description Object containing the links to the related endpoints */
3385
+ links?: {
3386
+ self: {
3387
+ /** @description URL pointing to the request itself */
3388
+ href?: string;
3389
+ };
3390
+ next?: {
3391
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
3392
+ href?: string;
3393
+ };
3394
+ prev?: {
3395
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
3396
+ href?: string;
3397
+ };
3398
+ first: {
3399
+ /** @description URL pointing to the first page of results in a paginated response */
3400
+ href?: string;
3401
+ };
3402
+ last: {
3403
+ /** @description URL pointing to the first page of results in a paginated response */
3404
+ href?: string;
3405
+ };
3406
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
3407
+ pages: {
3408
+ [key: string]: {
3409
+ href?: string;
3410
+ };
3411
+ };
3412
+ };
3413
+ /** @description Number representing the total number of available items */
3414
+ totalCount?: number;
3415
+ };
3416
+ };
3417
+ };
3418
+ };
3419
+ /** @description Default Response */
3420
+ "5XX": {
3421
+ headers: {
3422
+ [name: string]: unknown;
3423
+ };
3424
+ content: {
3425
+ "application/json": {
3426
+ /** @description Code used to categorize the error */
3427
+ code: string;
3428
+ /** @description Description of the error */
3429
+ detail: string;
3430
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3431
+ requestId: string;
3432
+ /** @description Name of the error type */
3433
+ name: string;
3434
+ /** @description List of the validation errors */
3435
+ validation?: {
3436
+ fieldName: string;
3437
+ message: string;
3438
+ }[];
3439
+ validationContext?: string;
3440
+ };
3441
+ };
3442
+ };
3443
+ /** @description Default Response */
3444
+ "4XX": {
3445
+ headers: {
3446
+ [name: string]: unknown;
3447
+ };
3448
+ content: {
3449
+ "application/json": {
3450
+ /** @description Code used to categorize the error */
3451
+ code: string;
3452
+ /** @description Description of the error */
3453
+ detail: string;
3454
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3455
+ requestId: string;
3456
+ /** @description Name of the error type */
3457
+ name: string;
3458
+ /** @description List of the validation errors */
3459
+ validation?: {
3460
+ fieldName: string;
3461
+ message: string;
3462
+ }[];
3463
+ validationContext?: string;
3464
+ };
3465
+ };
3466
+ };
3467
+ };
3468
+ };
3469
+ put?: never;
3470
+ post?: never;
3471
+ delete?: never;
3472
+ options?: never;
3473
+ head?: never;
3474
+ patch?: never;
3475
+ trace?: never;
3476
+ };
3477
+ "/api/v1/message-events/{eventId}": {
3478
+ parameters: {
3479
+ query?: never;
3480
+ header?: never;
3481
+ path?: never;
3482
+ cookie?: never;
3483
+ };
3484
+ /** @description Returns the selected event id */
3485
+ get: {
3486
+ parameters: {
3487
+ query?: never;
3488
+ header?: never;
3489
+ path: {
3490
+ eventId: string;
3491
+ };
3492
+ cookie?: never;
3493
+ };
3494
+ requestBody?: never;
3495
+ responses: {
3496
+ /** @description Default Response */
3497
+ 200: {
3498
+ headers: {
3499
+ [name: string]: unknown;
3500
+ };
3501
+ content: {
3502
+ "application/json": {
3503
+ data: {
3504
+ /** @description Event type description */
3505
+ eventType: string;
3506
+ /** @description Status for event type */
3507
+ eventStatus: string;
3508
+ data: {
3509
+ /** @description Unique id of the related message */
3510
+ messageId: string;
3511
+ /** @description Full name of the recipient */
3512
+ receiverFullName: string;
3513
+ /** @description PPSN of the recipient */
3514
+ receiverPPSN: string;
3515
+ /** @description User id of recipient */
3516
+ receiverUserId: string;
3517
+ /** @description Subject of the related message */
3518
+ subject: string;
3519
+ /** @description Language of the related message */
3520
+ language: string;
3521
+ /** @description Excerpt of the related message */
3522
+ excerpt: string;
3523
+ /** @description Rich text content of the related message */
3524
+ richText: string;
3525
+ /** @description Plain text context of the related message */
3526
+ plainText: string;
3527
+ /** @description Thread name of the related message */
3528
+ threadName: string;
3529
+ /** @description Selected transports to send the message */
3530
+ transports: string[];
3531
+ /**
3532
+ * Format: date-time
3533
+ * @description Date and time which describes when the message has to be sent
3534
+ */
3535
+ scheduledAt: string;
3536
+ /** @description Unique user id of the sender */
3537
+ senderUserId?: string;
3538
+ /** @description Full name of the sender */
3539
+ senderFullName?: string;
3540
+ /** @description PPSN of the sender */
3541
+ senderPPSN?: string;
3542
+ /** @description Unique id of the M2M application that sent the message */
3543
+ senderApplicationId?: string;
3544
+ /** @description Organisation related to the sender */
3545
+ organisationName: string;
3546
+ /**
3547
+ * @description Confidentiality level of the message
3548
+ * @enum {string}
3549
+ */
3550
+ security: "confidential" | "public";
3551
+ /** @description If true, the message will be sent even if the recipient didn't accept the organisation's invitation */
3552
+ bypassConsent: boolean;
3553
+ } | {
3554
+ /** @description Unique id of the related message */
3555
+ messageId: string;
3556
+ /** @description Unique id of the job */
3557
+ jobId: string;
3558
+ } | {
3559
+ /** @description Unique id of the related message */
3560
+ messageId: string;
3561
+ };
3562
+ /**
3563
+ * Format: date-time
3564
+ * @description Date and time which describes when the event has been recorded
3565
+ */
3566
+ createdAt: string;
3567
+ }[];
3568
+ };
3569
+ };
3570
+ };
3571
+ /** @description Default Response */
3572
+ "5XX": {
3573
+ headers: {
3574
+ [name: string]: unknown;
3575
+ };
3576
+ content: {
3577
+ "application/json": {
3578
+ /** @description Code used to categorize the error */
3579
+ code: string;
3580
+ /** @description Description of the error */
3581
+ detail: string;
3582
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3583
+ requestId: string;
3584
+ /** @description Name of the error type */
3585
+ name: string;
3586
+ /** @description List of the validation errors */
3587
+ validation?: {
3588
+ fieldName: string;
3589
+ message: string;
3590
+ }[];
3591
+ validationContext?: string;
3592
+ };
3593
+ };
3594
+ };
3595
+ /** @description Default Response */
3596
+ "4XX": {
3597
+ headers: {
3598
+ [name: string]: unknown;
3599
+ };
3600
+ content: {
3601
+ "application/json": {
3602
+ /** @description Code used to categorize the error */
3603
+ code: string;
3604
+ /** @description Description of the error */
3605
+ detail: string;
3606
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3607
+ requestId: string;
3608
+ /** @description Name of the error type */
3609
+ name: string;
3610
+ /** @description List of the validation errors */
3611
+ validation?: {
3612
+ fieldName: string;
3613
+ message: string;
3614
+ }[];
3615
+ validationContext?: string;
3616
+ };
3617
+ };
3618
+ };
3619
+ };
3620
+ };
3621
+ put?: never;
3622
+ post?: never;
3623
+ delete?: never;
3624
+ options?: never;
3625
+ head?: never;
3626
+ patch?: never;
3627
+ trace?: never;
3628
+ };
3629
+ "/api/v1/jobs/{id}": {
3630
+ parameters: {
3631
+ query?: never;
3632
+ header?: never;
3633
+ path?: never;
3634
+ cookie?: never;
3635
+ };
3636
+ get?: never;
3637
+ put?: never;
3638
+ /** @description Executes the requested job */
3639
+ post: {
3640
+ parameters: {
3641
+ query?: never;
3642
+ header?: never;
3643
+ path: {
3644
+ id: string;
3645
+ };
3646
+ cookie?: never;
3647
+ };
3648
+ requestBody: {
3649
+ content: {
3650
+ "application/json": {
3651
+ /** @description The security token used to ensure you are allowed to execute this job */
3652
+ token: string;
3653
+ };
3654
+ };
3655
+ };
3656
+ responses: {
3657
+ /** @description Default Response */
3658
+ 202: {
3659
+ headers: {
3660
+ [name: string]: unknown;
3661
+ };
3662
+ content?: never;
3663
+ };
3664
+ /** @description Default Response */
3665
+ "5XX": {
3666
+ headers: {
3667
+ [name: string]: unknown;
3668
+ };
3669
+ content: {
3670
+ "application/json": {
3671
+ /** @description Code used to categorize the error */
3672
+ code: string;
3673
+ /** @description Description of the error */
3674
+ detail: string;
3675
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3676
+ requestId: string;
3677
+ /** @description Name of the error type */
3678
+ name: string;
3679
+ /** @description List of the validation errors */
3680
+ validation?: {
3681
+ fieldName: string;
3682
+ message: string;
3683
+ }[];
3684
+ validationContext?: string;
3685
+ };
3686
+ };
3687
+ };
3688
+ /** @description Default Response */
3689
+ "4XX": {
3690
+ headers: {
3691
+ [name: string]: unknown;
3692
+ };
3693
+ content: {
3694
+ "application/json": {
3695
+ /** @description Code used to categorize the error */
3696
+ code: string;
3697
+ /** @description Description of the error */
3698
+ detail: string;
3699
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3700
+ requestId: string;
3701
+ /** @description Name of the error type */
3702
+ name: string;
3703
+ /** @description List of the validation errors */
3704
+ validation?: {
3705
+ fieldName: string;
3706
+ message: string;
3707
+ }[];
3708
+ validationContext?: string;
3709
+ };
3710
+ };
3711
+ };
3712
+ };
3713
+ };
3714
+ delete?: never;
3715
+ options?: never;
3716
+ head?: never;
3717
+ patch?: never;
3718
+ trace?: never;
3719
+ };
3720
+ "/api/v1/message-actions/{messageId}": {
3721
+ parameters: {
3722
+ query?: never;
3723
+ header?: never;
3724
+ path?: never;
3725
+ cookie?: never;
3726
+ };
3727
+ get?: never;
3728
+ put: {
3729
+ parameters: {
3730
+ query?: never;
3731
+ header?: never;
3732
+ path: {
3733
+ messageId: string;
3734
+ };
3735
+ cookie?: never;
3736
+ };
3737
+ requestBody: {
3738
+ content: {
3739
+ "application/json": {
3740
+ /** Format: uuid */
3741
+ messageId: string;
3742
+ isSeen: boolean;
3743
+ };
3744
+ };
3745
+ };
3746
+ responses: {
3747
+ /** @description Default Response */
3748
+ 200: {
3749
+ headers: {
3750
+ [name: string]: unknown;
3751
+ };
3752
+ content?: never;
3753
+ };
3754
+ /** @description Default Response */
3755
+ "4XX": {
3756
+ headers: {
3757
+ [name: string]: unknown;
3758
+ };
3759
+ content: {
3760
+ "application/json": {
3761
+ /** @description Code used to categorize the error */
3762
+ code: string;
3763
+ /** @description Description of the error */
3764
+ detail: string;
3765
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3766
+ requestId: string;
3767
+ /** @description Name of the error type */
3768
+ name: string;
3769
+ /** @description List of the validation errors */
3770
+ validation?: {
3771
+ fieldName: string;
3772
+ message: string;
3773
+ }[];
3774
+ validationContext?: string;
3775
+ };
3776
+ };
3777
+ };
3778
+ /** @description Default Response */
3779
+ "5XX": {
3780
+ headers: {
3781
+ [name: string]: unknown;
3782
+ };
3783
+ content: {
3784
+ "application/json": {
3785
+ /** @description Code used to categorize the error */
3786
+ code: string;
3787
+ /** @description Description of the error */
3788
+ detail: string;
3789
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
3790
+ requestId: string;
3791
+ /** @description Name of the error type */
3792
+ name: string;
3793
+ /** @description List of the validation errors */
3794
+ validation?: {
3795
+ fieldName: string;
3796
+ message: string;
3797
+ }[];
3798
+ validationContext?: string;
3799
+ };
3800
+ };
3801
+ };
3802
+ };
3803
+ };
3804
+ post?: never;
3805
+ delete?: never;
3806
+ options?: never;
3807
+ head?: never;
3808
+ patch?: never;
3809
+ trace?: never;
3810
+ };
3811
+ }
3812
+ export type webhooks = Record<string, never>;
3813
+ export interface components {
3814
+ schemas: never;
3815
+ responses: never;
3816
+ parameters: never;
3817
+ requestBodies: never;
3818
+ headers: never;
3819
+ pathItems: never;
3820
+ }
3821
+ export type $defs = Record<string, never>;
3822
+ export type operations = Record<string, never>;
3823
+ //# sourceMappingURL=schema.d.ts.map