@ogcio/building-blocks-sdk 0.2.94 → 0.2.96

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.
@@ -93,12 +93,16 @@ export interface paths {
93
93
  /**
94
94
  * Get journeys
95
95
  * @description Retrieve a paginated list of journeys with optional filtering by IDs, search terms, date range, and status
96
+ *
97
+ * Required scopes: `journey:journey:read`
96
98
  */
97
99
  get: operations["getJourneys"];
98
100
  put?: never;
99
101
  /**
100
102
  * Create journey
101
103
  * @description Create a new journey with the specified configuration and steps
104
+ *
105
+ * Required scopes: `journey:journey:write`
102
106
  */
103
107
  post: operations["createJourney"];
104
108
  delete?: never;
@@ -117,17 +121,23 @@ export interface paths {
117
121
  /**
118
122
  * Get journey by ID
119
123
  * @description Retrieve detailed information about a specific journey including all steps and connections
124
+ *
125
+ * Required scopes: `journey:journey:read`
120
126
  */
121
127
  get: operations["getJourneyById"];
122
128
  /**
123
129
  * Update journey
124
130
  * @description Update an existing journey with new configuration and steps
131
+ *
132
+ * Required scopes: `journey:journey:write`
125
133
  */
126
134
  put: operations["updateJourney"];
127
135
  post?: never;
128
136
  /**
129
137
  * Delete journey
130
138
  * @description Delete a journey with no existing runs
139
+ *
140
+ * Required scopes: `journey:journey:delete`
131
141
  */
132
142
  delete: operations["deleteJourney"];
133
143
  options?: never;
@@ -135,6 +145,8 @@ export interface paths {
135
145
  /**
136
146
  * Update journey status
137
147
  * @description Update an existing journey status
148
+ *
149
+ * Required scopes: `journey:journey:write`
138
150
  */
139
151
  patch: operations["updateJourneyStatus"];
140
152
  trace?: never;
@@ -189,6 +201,8 @@ export interface paths {
189
201
  /**
190
202
  * Get step connection by ID
191
203
  * @description Retrieve detailed information about a specific step connection
204
+ *
205
+ * Required scopes: `journey:step:read`
192
206
  */
193
207
  get: operations["getStepConnectionById"];
194
208
  put?: never;
@@ -196,6 +210,8 @@ export interface paths {
196
210
  /**
197
211
  * Delete step connection
198
212
  * @description Delete a specific step connection by ID
213
+ *
214
+ * Required scopes: `journey:step:write`
199
215
  */
200
216
  delete: operations["deleteStepConnection"];
201
217
  options?: never;
@@ -215,6 +231,8 @@ export interface paths {
215
231
  /**
216
232
  * Create step connection
217
233
  * @description Create a new connection between two journey steps
234
+ *
235
+ * Required scopes: `journey:step:write`
218
236
  */
219
237
  post: operations["createStepConnection"];
220
238
  delete?: never;
@@ -233,17 +251,23 @@ export interface paths {
233
251
  /**
234
252
  * Get journey step by ID
235
253
  * @description Retrieve detailed information about a specific journey step
254
+ *
255
+ * Required scopes: `journey:step:read`
236
256
  */
237
257
  get: operations["getJourneyStepById"];
238
258
  /**
239
259
  * Update journey step
240
260
  * @description Update an existing journey step with new configuration
261
+ *
262
+ * Required scopes: `journey:step:write`
241
263
  */
242
264
  put: operations["updateJourneyStep"];
243
265
  post?: never;
244
266
  /**
245
267
  * Delete journey step
246
268
  * @description Delete a specific journey step by ID
269
+ *
270
+ * Required scopes: `journey:step:write`
247
271
  */
248
272
  delete: operations["deleteJourneyStep"];
249
273
  options?: never;
@@ -263,6 +287,8 @@ export interface paths {
263
287
  /**
264
288
  * Create journey step
265
289
  * @description Create a new journey step with the specified configuration
290
+ *
291
+ * Required scopes: `journey:step:write`
266
292
  */
267
293
  post: operations["createJourneyStep"];
268
294
  delete?: never;
@@ -281,6 +307,8 @@ export interface paths {
281
307
  /**
282
308
  * Get user runs
283
309
  * @description Retrieve all runs created by the authenticated user
310
+ *
311
+ * Required scopes: `journey:run.self:read`
284
312
  */
285
313
  get: operations["getUserRuns"];
286
314
  put?: never;
@@ -301,6 +329,8 @@ export interface paths {
301
329
  /**
302
330
  * Get user run by ID
303
331
  * @description Retrieve detailed information about a specific run created by the authenticated user
332
+ *
333
+ * Required scopes: `journey:run.self:read`
304
334
  */
305
335
  get: operations["getUserRunById"];
306
336
  put?: never;
@@ -321,6 +351,8 @@ export interface paths {
321
351
  /**
322
352
  * Get runs by journey ID
323
353
  * @description Retrieve all runs for a specific journey (public servant access)
354
+ *
355
+ * Required scopes: `journey:run:read`
324
356
  */
325
357
  get: operations["getRunsByJourneyId"];
326
358
  put?: never;
@@ -341,6 +373,8 @@ export interface paths {
341
373
  /**
342
374
  * Get run by ID
343
375
  * @description Retrieve detailed information about a specific run (public servant access)
376
+ *
377
+ * Required scopes: `journey:run:read`
344
378
  */
345
379
  get: operations["getRunById"];
346
380
  put?: never;
@@ -348,6 +382,8 @@ export interface paths {
348
382
  /**
349
383
  * Delete run
350
384
  * @description Delete a specific run by ID
385
+ *
386
+ * Required scopes: `journey:run:delete`
351
387
  */
352
388
  delete: operations["deleteRun"];
353
389
  options?: never;
@@ -355,6 +391,8 @@ export interface paths {
355
391
  /**
356
392
  * Update run status
357
393
  * @description Update the status of a specific run
394
+ *
395
+ * Required scopes: `journey:run:write`
358
396
  */
359
397
  patch: operations["updateRunStatus"];
360
398
  trace?: never;
@@ -369,6 +407,8 @@ export interface paths {
369
407
  /**
370
408
  * Get all runs
371
409
  * @description Retrieve all runs with pagination and filtering (public servant access)
410
+ *
411
+ * Required scopes: `journey:run:read`
372
412
  */
373
413
  get: operations["getAllRuns"];
374
414
  put?: never;
@@ -389,6 +429,8 @@ export interface paths {
389
429
  /**
390
430
  * Get run tags
391
431
  * @description Retrieve available tags for runs based on filtering criteria
432
+ *
433
+ * Required scopes: `journey:run:read`
392
434
  */
393
435
  get: operations["getRunTags"];
394
436
  put?: never;
@@ -411,6 +453,8 @@ export interface paths {
411
453
  /**
412
454
  * Create journey run
413
455
  * @description Create a new run for a specific journey
456
+ *
457
+ * Required scopes: `journey:run.self:write`
414
458
  */
415
459
  post: operations["createJourneyRun"];
416
460
  delete?: never;
@@ -431,6 +475,8 @@ export interface paths {
431
475
  /**
432
476
  * Execute journey step
433
477
  * @description Execute a specific step in a journey run
478
+ *
479
+ * Required scopes: `journey:run.self:write`
434
480
  */
435
481
  post: operations["executeJourneyStep"];
436
482
  delete?: never;
@@ -451,6 +497,8 @@ export interface paths {
451
497
  /**
452
498
  * Transition journey step
453
499
  * @description Transition from one step to another in a journey run
500
+ *
501
+ * Required scopes: `journey:run.self:write`
454
502
  */
455
503
  post: operations["transitionJourneyStep"];
456
504
  delete?: never;
@@ -471,6 +519,8 @@ export interface paths {
471
519
  /**
472
520
  * Get journey summary
473
521
  * @description Retrieve a summary of a journey run including completion status and details
522
+ *
523
+ * Required scopes: `journey:run.self:read`
474
524
  */
475
525
  post: operations["getJourneySummary"];
476
526
  delete?: never;
@@ -492,6 +542,8 @@ export interface paths {
492
542
  /**
493
543
  * Cleanup test resources
494
544
  * @description Clean up test resources for the organization (testing utility)
545
+ *
546
+ * Required scopes: `test:e2e:resources_cleanup`
495
547
  */
496
548
  delete: operations["cleanupTestResources"];
497
549
  options?: never;
@@ -509,6 +561,8 @@ export interface paths {
509
561
  /**
510
562
  * List Audit Log Events
511
563
  * @description Retrieve a filtered list of audit log events for the organization. Supports filtering by event type, date range, and other criteria.
564
+ *
565
+ * Required scopes: `journey:auditLog:read`
512
566
  */
513
567
  get: operations["listAuditLogEvents"];
514
568
  put?: never;
@@ -529,6 +583,8 @@ export interface paths {
529
583
  /**
530
584
  * Get Audit Log Event Types
531
585
  * @description Retrieve a list of available audit log event types for filtering and categorization.
586
+ *
587
+ * Required scopes: `journey:auditLog:read`
532
588
  */
533
589
  get: operations["getAuditLogEventTypes"];
534
590
  put?: never;
@@ -549,6 +605,8 @@ export interface paths {
549
605
  /**
550
606
  * Get Audit Log Event by ID
551
607
  * @description Retrieve detailed information about a specific audit log event by its unique identifier.
608
+ *
609
+ * Required scopes: `journey:auditLog:read`
552
610
  */
553
611
  get: operations["getAuditLogEventById"];
554
612
  put?: never;
@@ -569,6 +627,8 @@ export interface paths {
569
627
  /**
570
628
  * Export submissions for a journey
571
629
  * @description Export submissions for a journey
630
+ *
631
+ * Required scopes: `journey:submission:read`
572
632
  */
573
633
  get: operations["exportSubmissions"];
574
634
  put?: never;
@@ -579,6 +639,50 @@ export interface paths {
579
639
  patch?: never;
580
640
  trace?: never;
581
641
  };
642
+ "/api/v1/external/user-submissions": {
643
+ parameters: {
644
+ query?: never;
645
+ header?: never;
646
+ path?: never;
647
+ cookie?: never;
648
+ };
649
+ /**
650
+ * Gets the journey submissions of the user extracted from the jwt token
651
+ * @description Returns the journey submissions of the user who's identity is validated by the bearer token.
652
+ *
653
+ * Required scopes: `journey:submission:external.read`
654
+ */
655
+ get: operations["getUserSubmissions"];
656
+ put?: never;
657
+ post?: never;
658
+ delete?: never;
659
+ options?: never;
660
+ head?: never;
661
+ patch?: never;
662
+ trace?: never;
663
+ };
664
+ "/api/v1/external/user-submissions/{submissionId}": {
665
+ parameters: {
666
+ query?: never;
667
+ header?: never;
668
+ path?: never;
669
+ cookie?: never;
670
+ };
671
+ /**
672
+ * Gets the submissions details. The user id linked to the submission needs to match the one on the jwt token
673
+ * @description Returns th journey submission details based on the submission ID.
674
+ *
675
+ * Required scopes: `journey:submission:external.read`
676
+ */
677
+ get: operations["getUserSubmissionById"];
678
+ put?: never;
679
+ post?: never;
680
+ delete?: never;
681
+ options?: never;
682
+ head?: never;
683
+ patch?: never;
684
+ trace?: never;
685
+ };
582
686
  }
583
687
  export type webhooks = Record<string, never>;
584
688
  export interface components {
@@ -2920,6 +3024,8 @@ export interface operations {
2920
3024
  search?: string;
2921
3025
  to?: string;
2922
3026
  from?: string;
3027
+ submissionFrom?: string;
3028
+ submissionTo?: string;
2923
3029
  tags?: string[] | string;
2924
3030
  };
2925
3031
  header?: never;
@@ -3021,6 +3127,8 @@ export interface operations {
3021
3127
  search?: string;
3022
3128
  to?: string;
3023
3129
  from?: string;
3130
+ submissionFrom?: string;
3131
+ submissionTo?: string;
3024
3132
  tags?: string[] | string;
3025
3133
  };
3026
3134
  header?: never;
@@ -3978,5 +4086,231 @@ export interface operations {
3978
4086
  };
3979
4087
  };
3980
4088
  };
4089
+ getUserSubmissions: {
4090
+ parameters: {
4091
+ query?: {
4092
+ offset?: number;
4093
+ limit?: number;
4094
+ search?: string;
4095
+ };
4096
+ header?: never;
4097
+ path?: never;
4098
+ cookie?: never;
4099
+ };
4100
+ requestBody?: never;
4101
+ responses: {
4102
+ /** @description Default Response */
4103
+ 200: {
4104
+ headers: {
4105
+ [name: string]: unknown;
4106
+ };
4107
+ content: {
4108
+ "application/json": {
4109
+ data: {
4110
+ id: string;
4111
+ title: {
4112
+ en: string;
4113
+ ga?: string;
4114
+ };
4115
+ description: {
4116
+ en: string;
4117
+ ga?: string;
4118
+ };
4119
+ organizationId: string;
4120
+ journeyId: string;
4121
+ status: "initiated" | "submitted" | "processing" | "completed" | "cancelled";
4122
+ createdAt: string;
4123
+ updatedAt: string;
4124
+ }[];
4125
+ metadata?: {
4126
+ links?: {
4127
+ self: {
4128
+ href?: string;
4129
+ };
4130
+ next?: {
4131
+ href?: string;
4132
+ };
4133
+ prev?: {
4134
+ href?: string;
4135
+ };
4136
+ first: {
4137
+ href?: string;
4138
+ };
4139
+ last: {
4140
+ href?: string;
4141
+ };
4142
+ pages: {
4143
+ [key: string]: {
4144
+ href?: string;
4145
+ };
4146
+ };
4147
+ };
4148
+ totalCount?: number;
4149
+ };
4150
+ };
4151
+ };
4152
+ };
4153
+ /** @description Default Response */
4154
+ 401: {
4155
+ headers: {
4156
+ [name: string]: unknown;
4157
+ };
4158
+ content: {
4159
+ "application/json": {
4160
+ code: string;
4161
+ detail: string;
4162
+ requestId: string;
4163
+ name: string;
4164
+ validation?: unknown;
4165
+ validationContext?: string;
4166
+ };
4167
+ };
4168
+ };
4169
+ /** @description Default Response */
4170
+ 404: {
4171
+ headers: {
4172
+ [name: string]: unknown;
4173
+ };
4174
+ content: {
4175
+ "application/json": {
4176
+ code: string;
4177
+ detail: string;
4178
+ requestId: string;
4179
+ name: string;
4180
+ validation?: unknown;
4181
+ validationContext?: string;
4182
+ };
4183
+ };
4184
+ };
4185
+ /** @description Default Response */
4186
+ 500: {
4187
+ headers: {
4188
+ [name: string]: unknown;
4189
+ };
4190
+ content: {
4191
+ "application/json": {
4192
+ code: string;
4193
+ detail: string;
4194
+ requestId: string;
4195
+ name: string;
4196
+ validation?: unknown;
4197
+ validationContext?: string;
4198
+ };
4199
+ };
4200
+ };
4201
+ };
4202
+ };
4203
+ getUserSubmissionById: {
4204
+ parameters: {
4205
+ query?: never;
4206
+ header?: never;
4207
+ path: {
4208
+ submissionId: string;
4209
+ };
4210
+ cookie?: never;
4211
+ };
4212
+ requestBody?: never;
4213
+ responses: {
4214
+ /** @description Default Response */
4215
+ 200: {
4216
+ headers: {
4217
+ [name: string]: unknown;
4218
+ };
4219
+ content: {
4220
+ "application/json": {
4221
+ data: {
4222
+ id: string;
4223
+ title: {
4224
+ en: string;
4225
+ ga?: string;
4226
+ };
4227
+ description: {
4228
+ en: string;
4229
+ ga?: string;
4230
+ };
4231
+ organizationId: string;
4232
+ journeyId: string;
4233
+ status: "initiated" | "submitted" | "processing" | "completed" | "cancelled";
4234
+ createdAt: string;
4235
+ updatedAt: string;
4236
+ };
4237
+ metadata?: {
4238
+ links?: {
4239
+ self: {
4240
+ href?: string;
4241
+ };
4242
+ next?: {
4243
+ href?: string;
4244
+ };
4245
+ prev?: {
4246
+ href?: string;
4247
+ };
4248
+ first: {
4249
+ href?: string;
4250
+ };
4251
+ last: {
4252
+ href?: string;
4253
+ };
4254
+ pages: {
4255
+ [key: string]: {
4256
+ href?: string;
4257
+ };
4258
+ };
4259
+ };
4260
+ totalCount?: number;
4261
+ };
4262
+ };
4263
+ };
4264
+ };
4265
+ /** @description Default Response */
4266
+ 401: {
4267
+ headers: {
4268
+ [name: string]: unknown;
4269
+ };
4270
+ content: {
4271
+ "application/json": {
4272
+ code: string;
4273
+ detail: string;
4274
+ requestId: string;
4275
+ name: string;
4276
+ validation?: unknown;
4277
+ validationContext?: string;
4278
+ };
4279
+ };
4280
+ };
4281
+ /** @description Default Response */
4282
+ 404: {
4283
+ headers: {
4284
+ [name: string]: unknown;
4285
+ };
4286
+ content: {
4287
+ "application/json": {
4288
+ code: string;
4289
+ detail: string;
4290
+ requestId: string;
4291
+ name: string;
4292
+ validation?: unknown;
4293
+ validationContext?: string;
4294
+ };
4295
+ };
4296
+ };
4297
+ /** @description Default Response */
4298
+ 500: {
4299
+ headers: {
4300
+ [name: string]: unknown;
4301
+ };
4302
+ content: {
4303
+ "application/json": {
4304
+ code: string;
4305
+ detail: string;
4306
+ requestId: string;
4307
+ name: string;
4308
+ validation?: unknown;
4309
+ validationContext?: string;
4310
+ };
4311
+ };
4312
+ };
4313
+ };
4314
+ };
3981
4315
  }
3982
4316
  //# sourceMappingURL=schema.d.ts.map