@soyio/soyio-widget 3.6.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soyio/soyio-widget",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "homepage": "https://docs.soyio.id/",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
@@ -379,6 +379,68 @@
379
379
  },
380
380
  "type": "object"
381
381
  },
382
+ "ConsentBatchUpdate": {
383
+ "additionalProperties": false,
384
+ "properties": {
385
+ "action": {
386
+ "$ref": "#/definitions/PrivacyCenterConsentAction"
387
+ },
388
+ "actionToken": {
389
+ "type": "string"
390
+ },
391
+ "consentTemplateId": {
392
+ "type": "string"
393
+ }
394
+ },
395
+ "required": [
396
+ "consentTemplateId",
397
+ "action"
398
+ ],
399
+ "type": "object"
400
+ },
401
+ "ConsentBatchUpdateFailedEvent": {
402
+ "additionalProperties": false,
403
+ "properties": {
404
+ "consentTemplateIds": {
405
+ "items": {
406
+ "type": "string"
407
+ },
408
+ "type": "array"
409
+ },
410
+ "errorCode": {
411
+ "type": "string"
412
+ },
413
+ "eventName": {
414
+ "const": "CONSENT_BATCH_UPDATE_FAILED",
415
+ "type": "string"
416
+ }
417
+ },
418
+ "required": [
419
+ "eventName",
420
+ "consentTemplateIds"
421
+ ],
422
+ "type": "object"
423
+ },
424
+ "ConsentBatchUpdatedEvent": {
425
+ "additionalProperties": false,
426
+ "properties": {
427
+ "eventName": {
428
+ "const": "CONSENT_BATCH_UPDATED",
429
+ "type": "string"
430
+ },
431
+ "updates": {
432
+ "items": {
433
+ "$ref": "#/definitions/ConsentBatchUpdate"
434
+ },
435
+ "type": "array"
436
+ }
437
+ },
438
+ "required": [
439
+ "eventName",
440
+ "updates"
441
+ ],
442
+ "type": "object"
443
+ },
382
444
  "ConsentConfig": {
383
445
  "additionalProperties": false,
384
446
  "properties": {
@@ -660,6 +722,54 @@
660
722
  ],
661
723
  "type": "object"
662
724
  },
725
+ "ConsentUpdateFailedEvent": {
726
+ "additionalProperties": false,
727
+ "properties": {
728
+ "action": {
729
+ "$ref": "#/definitions/PrivacyCenterConsentAction"
730
+ },
731
+ "consentTemplateId": {
732
+ "type": "string"
733
+ },
734
+ "errorCode": {
735
+ "type": "string"
736
+ },
737
+ "eventName": {
738
+ "const": "CONSENT_UPDATE_FAILED",
739
+ "type": "string"
740
+ }
741
+ },
742
+ "required": [
743
+ "eventName",
744
+ "consentTemplateId",
745
+ "action"
746
+ ],
747
+ "type": "object"
748
+ },
749
+ "ConsentUpdatedEvent": {
750
+ "additionalProperties": false,
751
+ "properties": {
752
+ "action": {
753
+ "$ref": "#/definitions/PrivacyCenterConsentAction"
754
+ },
755
+ "actionToken": {
756
+ "type": "string"
757
+ },
758
+ "consentTemplateId": {
759
+ "type": "string"
760
+ },
761
+ "eventName": {
762
+ "const": "CONSENT_UPDATED",
763
+ "type": "string"
764
+ }
765
+ },
766
+ "required": [
767
+ "eventName",
768
+ "consentTemplateId",
769
+ "action"
770
+ ],
771
+ "type": "object"
772
+ },
663
773
  "DataSubject": {
664
774
  "enum": [
665
775
  "anonymous_user",
@@ -808,8 +918,7 @@
808
918
  "additionalProperties": false,
809
919
  "properties": {
810
920
  "event": {
811
- "additionalProperties": {},
812
- "type": "object"
921
+ "$ref": "#/definitions/PrivacyCenterEvent"
813
922
  }
814
923
  },
815
924
  "required": [
@@ -826,6 +935,12 @@
826
935
  "origin": {
827
936
  "type": "string"
828
937
  },
938
+ "rectificationFileRequiredCategories": {
939
+ "items": {
940
+ "$ref": "#/definitions/UserDataCategoryKey"
941
+ },
942
+ "type": "array"
943
+ },
829
944
  "redecOperationIds": {
830
945
  "items": {
831
946
  "$ref": "#/definitions/RedecOperationId"
@@ -982,8 +1097,7 @@
982
1097
  "additionalProperties": false,
983
1098
  "properties": {
984
1099
  "event": {
985
- "additionalProperties": {},
986
- "type": "object"
1100
+ "$ref": "#/definitions/PrivacyCenterEvent"
987
1101
  }
988
1102
  },
989
1103
  "required": [
@@ -1000,6 +1114,12 @@
1000
1114
  "origin": {
1001
1115
  "type": "string"
1002
1116
  },
1117
+ "rectificationFileRequiredCategories": {
1118
+ "items": {
1119
+ "$ref": "#/definitions/UserDataCategoryKey"
1120
+ },
1121
+ "type": "array"
1122
+ },
1003
1123
  "redecOperationIds": {
1004
1124
  "items": {
1005
1125
  "$ref": "#/definitions/RedecOperationId"
@@ -1063,6 +1183,13 @@
1063
1183
  }
1064
1184
  ]
1065
1185
  },
1186
+ "PrivacyCenterConsentAction": {
1187
+ "enum": [
1188
+ "grant",
1189
+ "revoke"
1190
+ ],
1191
+ "type": "string"
1192
+ },
1066
1193
  "PrivacyCenterConsentManagementConfig": {
1067
1194
  "additionalProperties": false,
1068
1195
  "properties": {
@@ -1153,6 +1280,37 @@
1153
1280
  },
1154
1281
  "type": "object"
1155
1282
  },
1283
+ "PrivacyCenterEvent": {
1284
+ "anyOf": [
1285
+ {
1286
+ "$ref": "#/definitions/RequestSubmittedEvent"
1287
+ },
1288
+ {
1289
+ "$ref": "#/definitions/RequestSubmissionFailedEvent"
1290
+ },
1291
+ {
1292
+ "$ref": "#/definitions/ValidationSuccessfulEvent"
1293
+ },
1294
+ {
1295
+ "$ref": "#/definitions/ValidationFailedEvent"
1296
+ },
1297
+ {
1298
+ "$ref": "#/definitions/ConsentUpdatedEvent"
1299
+ },
1300
+ {
1301
+ "$ref": "#/definitions/ConsentUpdateFailedEvent"
1302
+ },
1303
+ {
1304
+ "$ref": "#/definitions/ConsentBatchUpdatedEvent"
1305
+ },
1306
+ {
1307
+ "$ref": "#/definitions/ConsentBatchUpdateFailedEvent"
1308
+ },
1309
+ {
1310
+ "$ref": "#/definitions/UnexpectedErrorEvent"
1311
+ }
1312
+ ]
1313
+ },
1156
1314
  "PrivacyCenterHeaderCopyConfig": {
1157
1315
  "additionalProperties": false,
1158
1316
  "properties": {
@@ -1234,6 +1392,79 @@
1234
1392
  ],
1235
1393
  "type": "object"
1236
1394
  },
1395
+ "RequestSubmissionFailedEvent": {
1396
+ "additionalProperties": false,
1397
+ "properties": {
1398
+ "errorCode": {
1399
+ "type": "string"
1400
+ },
1401
+ "errorMessage": {
1402
+ "type": "string"
1403
+ },
1404
+ "eventName": {
1405
+ "const": "REQUEST_SUBMISSION_FAILED",
1406
+ "type": "string"
1407
+ },
1408
+ "kind": {
1409
+ "enum": [
1410
+ "ACCESS",
1411
+ "OPPOSITION",
1412
+ "RECTIFICATION",
1413
+ "SUPPRESSION",
1414
+ "PORTABILITY",
1415
+ "REDEC_UPDATE",
1416
+ "REDEC_RECTIFICATION",
1417
+ "REDEC_COMPLEMENTATION",
1418
+ "REDEC_CANCELLATION"
1419
+ ],
1420
+ "type": "string"
1421
+ }
1422
+ },
1423
+ "required": [
1424
+ "eventName",
1425
+ "kind"
1426
+ ],
1427
+ "type": "object"
1428
+ },
1429
+ "RequestSubmittedEvent": {
1430
+ "additionalProperties": false,
1431
+ "properties": {
1432
+ "dataSubjectRequestId": {
1433
+ "type": "string"
1434
+ },
1435
+ "entityId": {
1436
+ "type": [
1437
+ "string",
1438
+ "null"
1439
+ ]
1440
+ },
1441
+ "eventName": {
1442
+ "const": "REQUEST_SUBMITTED",
1443
+ "type": "string"
1444
+ },
1445
+ "kind": {
1446
+ "enum": [
1447
+ "ACCESS",
1448
+ "OPPOSITION",
1449
+ "RECTIFICATION",
1450
+ "SUPPRESSION",
1451
+ "PORTABILITY",
1452
+ "REDEC_UPDATE",
1453
+ "REDEC_RECTIFICATION",
1454
+ "REDEC_COMPLEMENTATION",
1455
+ "REDEC_CANCELLATION"
1456
+ ],
1457
+ "type": "string"
1458
+ }
1459
+ },
1460
+ "required": [
1461
+ "eventName",
1462
+ "dataSubjectRequestId",
1463
+ "kind",
1464
+ "entityId"
1465
+ ],
1466
+ "type": "object"
1467
+ },
1237
1468
  "SoyioAppearance": {
1238
1469
  "additionalProperties": false,
1239
1470
  "properties": {
@@ -1497,7 +1728,9 @@
1497
1728
  "type": "object"
1498
1729
  },
1499
1730
  "SoyioRule": {
1500
- "additionalProperties": { "$ref": "#/definitions/CSSProperties" },
1731
+ "additionalProperties": {
1732
+ "$ref": "#/definitions/CSSProperties"
1733
+ },
1501
1734
  "properties": {
1502
1735
  ".Alert": {
1503
1736
  "$ref": "#/definitions/CSSProperties"
@@ -3161,6 +3394,26 @@
3161
3394
  ],
3162
3395
  "description": "Combined configuration type for generating the JSON schema. Includes every iframe-based widget config (PrivacyCenterBox, ConsentBox, ConsentFormBox)."
3163
3396
  },
3397
+ "UnexpectedErrorEvent": {
3398
+ "additionalProperties": false,
3399
+ "properties": {
3400
+ "context": {
3401
+ "type": "string"
3402
+ },
3403
+ "errorMessage": {
3404
+ "type": "string"
3405
+ },
3406
+ "eventName": {
3407
+ "const": "UNEXPECTED_ERROR",
3408
+ "type": "string"
3409
+ }
3410
+ },
3411
+ "required": [
3412
+ "eventName",
3413
+ "context"
3414
+ ],
3415
+ "type": "object"
3416
+ },
3164
3417
  "UserDataCategoryKey": {
3165
3418
  "enum": [
3166
3419
  "user",
@@ -3254,6 +3507,43 @@
3254
3507
  "user.unique_id.pseudonymous"
3255
3508
  ],
3256
3509
  "type": "string"
3510
+ },
3511
+ "ValidationFailedEvent": {
3512
+ "additionalProperties": false,
3513
+ "properties": {
3514
+ "dataSubjectRequestId": {
3515
+ "type": "string"
3516
+ },
3517
+ "errorReason": {
3518
+ "type": "string"
3519
+ },
3520
+ "eventName": {
3521
+ "const": "VALIDATION_FAILED",
3522
+ "type": "string"
3523
+ }
3524
+ },
3525
+ "required": [
3526
+ "eventName",
3527
+ "dataSubjectRequestId"
3528
+ ],
3529
+ "type": "object"
3530
+ },
3531
+ "ValidationSuccessfulEvent": {
3532
+ "additionalProperties": false,
3533
+ "properties": {
3534
+ "dataSubjectRequestId": {
3535
+ "type": "string"
3536
+ },
3537
+ "eventName": {
3538
+ "const": "VALIDATION_SUCCESSFUL",
3539
+ "type": "string"
3540
+ }
3541
+ },
3542
+ "required": [
3543
+ "eventName",
3544
+ "dataSubjectRequestId"
3545
+ ],
3546
+ "type": "object"
3257
3547
  }
3258
3548
  }
3259
3549
  }