@ogcio/building-blocks-sdk 0.2.96 → 0.2.98

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.
@@ -2360,6 +2360,7 @@ export interface operations {
2360
2360
  tags: string[];
2361
2361
  createdAt: string;
2362
2362
  updatedAt: string;
2363
+ submittedAt?: string;
2363
2364
  choosenAuthMethod: string;
2364
2365
  formVersion: "V1" | "V2";
2365
2366
  }[];
@@ -2439,6 +2440,7 @@ export interface operations {
2439
2440
  * ],
2440
2441
  * "createdAt": "2025-10-09T15:02:00.000Z",
2441
2442
  * "updatedAt": "2025-10-09T15:03:00.000Z",
2443
+ * "submittedAt": "2025-10-09T15:02:30.000Z",
2442
2444
  * "steps": [
2443
2445
  * {
2444
2446
  * "id": "run_step_001",
@@ -2481,6 +2483,7 @@ export interface operations {
2481
2483
  tags: string[];
2482
2484
  createdAt: string;
2483
2485
  updatedAt: string;
2486
+ submittedAt?: string;
2484
2487
  steps: {
2485
2488
  id: string;
2486
2489
  runId: string;
@@ -2590,6 +2593,7 @@ export interface operations {
2590
2593
  tags: string[];
2591
2594
  createdAt: string;
2592
2595
  updatedAt: string;
2596
+ submittedAt?: string;
2593
2597
  choosenAuthMethod: string;
2594
2598
  formVersion: "V1" | "V2";
2595
2599
  }[];
@@ -2665,6 +2669,7 @@ export interface operations {
2665
2669
  tags: string[];
2666
2670
  createdAt: string;
2667
2671
  updatedAt: string;
2672
+ submittedAt?: string;
2668
2673
  steps: {
2669
2674
  id: string;
2670
2675
  runId: string;
@@ -2856,6 +2861,7 @@ export interface operations {
2856
2861
  * ],
2857
2862
  * "createdAt": "2025-10-09T15:02:00.000Z",
2858
2863
  * "updatedAt": "2025-10-09T15:03:00.000Z",
2864
+ * "submittedAt": "2025-10-09T15:02:30.000Z",
2859
2865
  * "steps": [
2860
2866
  * {
2861
2867
  * "id": "run_step_001",
@@ -2915,6 +2921,7 @@ export interface operations {
2915
2921
  * ],
2916
2922
  * "createdAt": "2025-10-09T15:02:00.000Z",
2917
2923
  * "updatedAt": "2025-10-09T15:03:00.000Z",
2924
+ * "submittedAt": "2025-10-09T15:02:30.000Z",
2918
2925
  * "steps": [
2919
2926
  * {
2920
2927
  * "id": "run_step_001",
@@ -3049,6 +3056,7 @@ export interface operations {
3049
3056
  tags: string[];
3050
3057
  createdAt: string;
3051
3058
  updatedAt: string;
3059
+ submittedAt?: string;
3052
3060
  choosenAuthMethod: string;
3053
3061
  formVersion: "V1" | "V2";
3054
3062
  organizationId: string;
@@ -4121,6 +4129,7 @@ export interface operations {
4121
4129
  status: "initiated" | "submitted" | "processing" | "completed" | "cancelled";
4122
4130
  createdAt: string;
4123
4131
  updatedAt: string;
4132
+ submittedAt?: string;
4124
4133
  }[];
4125
4134
  metadata?: {
4126
4135
  links?: {
@@ -4233,6 +4242,7 @@ export interface operations {
4233
4242
  status: "initiated" | "submitted" | "processing" | "completed" | "cancelled";
4234
4243
  createdAt: string;
4235
4244
  updatedAt: string;
4245
+ submittedAt?: string;
4236
4246
  };
4237
4247
  metadata?: {
4238
4248
  links?: {
@@ -154,7 +154,8 @@
154
154
  "threadName",
155
155
  "organisationId",
156
156
  "recipientUserId",
157
- "attachmentsCount"
157
+ "attachmentsCount",
158
+ "isSeen"
158
159
  ],
159
160
  "properties": {
160
161
  "id": {
@@ -191,6 +192,10 @@
191
192
  "attachmentsCount": {
192
193
  "type": "integer",
193
194
  "description": "Number of attachments"
195
+ },
196
+ "isSeen": {
197
+ "type": "boolean",
198
+ "description": "True if the message has already been seen by the recipient"
194
199
  }
195
200
  }
196
201
  }
@@ -500,6 +505,11 @@
500
505
  "type": "string",
501
506
  "format": "uuid"
502
507
  }
508
+ },
509
+ "bypassConsent": {
510
+ "type": "boolean",
511
+ "default": false,
512
+ "description": "Set to true to bypass recipient messaging consent checks. Requires platform:messaging:write; omitted or false preserves normal consent enforcement."
503
513
  }
504
514
  }
505
515
  }
@@ -1020,7 +1030,8 @@
1020
1030
  "threadName",
1021
1031
  "organisationId",
1022
1032
  "recipientUserId",
1023
- "attachmentsCount"
1033
+ "attachmentsCount",
1034
+ "isSeen"
1024
1035
  ],
1025
1036
  "properties": {
1026
1037
  "id": {
@@ -1057,6 +1068,10 @@
1057
1068
  "attachmentsCount": {
1058
1069
  "type": "integer",
1059
1070
  "description": "Number of attachments"
1071
+ },
1072
+ "isSeen": {
1073
+ "type": "boolean",
1074
+ "description": "True if the message has already been seen by the recipient"
1060
1075
  }
1061
1076
  }
1062
1077
  }
@@ -6875,6 +6890,11 @@
6875
6890
  "type": "string",
6876
6891
  "format": "uuid"
6877
6892
  }
6893
+ },
6894
+ "bypassConsent": {
6895
+ "type": "boolean",
6896
+ "default": false,
6897
+ "description": "Set to true to bypass recipient messaging consent checks. Requires platform:messaging:write; omitted or false preserves normal consent enforcement."
6878
6898
  }
6879
6899
  }
6880
6900
  }
@@ -1162,6 +1162,8 @@ export interface operations {
1162
1162
  recipientUserId: string;
1163
1163
  /** @description Number of attachments */
1164
1164
  attachmentsCount: number;
1165
+ /** @description True if the message has already been seen by the recipient */
1166
+ isSeen: boolean;
1165
1167
  }[];
1166
1168
  metadata?: {
1167
1169
  /** @description Object containing the links to the related endpoints */
@@ -1295,6 +1297,11 @@ export interface operations {
1295
1297
  externalId?: string;
1296
1298
  };
1297
1299
  attachments?: string[];
1300
+ /**
1301
+ * @description Set to true to bypass recipient messaging consent checks. Requires platform:messaging:write; omitted or false preserves normal consent enforcement.
1302
+ * @default false
1303
+ */
1304
+ bypassConsent?: boolean;
1298
1305
  };
1299
1306
  };
1300
1307
  };
@@ -1467,6 +1474,8 @@ export interface operations {
1467
1474
  recipientUserId: string;
1468
1475
  /** @description Number of attachments */
1469
1476
  attachmentsCount: number;
1477
+ /** @description True if the message has already been seen by the recipient */
1478
+ isSeen: boolean;
1470
1479
  }[];
1471
1480
  metadata?: {
1472
1481
  /** @description Object containing the links to the related endpoints */
@@ -3182,6 +3191,11 @@ export interface operations {
3182
3191
  externalId?: string;
3183
3192
  };
3184
3193
  attachments?: string[];
3194
+ /**
3195
+ * @description Set to true to bypass recipient messaging consent checks. Requires platform:messaging:write; omitted or false preserves normal consent enforcement.
3196
+ * @default false
3197
+ */
3198
+ bypassConsent?: boolean;
3185
3199
  };
3186
3200
  };
3187
3201
  };
@@ -124,7 +124,7 @@ export function parseJwtToken(token: string): {
124
124
  payload: Record<string, unknown>;
125
125
  } {
126
126
  const parts = token.split(".");
127
- if (!parts || parts.length !== 3) {
127
+ if (parts.length !== 3) {
128
128
  throw "invalid jwt format";
129
129
  }
130
130