@sudoplatform/sudo-privacy-interaction 2.1.0 → 2.2.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.
Files changed (98) hide show
  1. package/cjs/gen/graphqlTypes.js +557 -1
  2. package/cjs/private/data/action/actionSubscriptionManager.js +25 -0
  3. package/cjs/private/data/action/defaultActionService.js +80 -0
  4. package/cjs/private/data/action/transformer/actionFulfilmentMethodTransformer.js +47 -0
  5. package/cjs/private/data/action/transformer/actionIntentTransformer.js +69 -0
  6. package/cjs/private/data/action/transformer/actionOriginTransformer.js +37 -0
  7. package/cjs/private/data/action/transformer/actionStatusTransformer.js +53 -0
  8. package/cjs/private/data/action/transformer/actionTransformer.js +85 -0
  9. package/cjs/private/data/action/transformer/availableActionTransformer.js +37 -0
  10. package/cjs/private/data/common/apiClient.js +35 -0
  11. package/cjs/private/domain/entities/action/actionEntity.js +86 -0
  12. package/cjs/private/domain/entities/action/actionService.js +7 -0
  13. package/cjs/private/domain/use-cases/action/confirmActionOutcomeUseCase.js +25 -0
  14. package/cjs/private/domain/use-cases/action/initiateActionUseCase.js +26 -0
  15. package/cjs/private/domain/use-cases/action/listAvailableActionsUseCase.js +26 -0
  16. package/cjs/private/domain/use-cases/action/subscribeToActionUseCase.js +37 -0
  17. package/cjs/private/domain/use-cases/action/unsubscribeFromActionUseCase.js +27 -0
  18. package/cjs/public/defaultSudoPrivacyInteractionClient.js +58 -0
  19. package/cjs/public/inputs/action.js +7 -0
  20. package/cjs/public/inputs/index.js +1 -0
  21. package/cjs/public/typings/action.js +85 -0
  22. package/cjs/public/typings/index.js +1 -0
  23. package/docs/assets/hierarchy.js +1 -1
  24. package/docs/assets/navigation.js +1 -1
  25. package/docs/assets/search.js +1 -1
  26. package/docs/classes/DefaultSudoPrivacyInteractionClient.html +128 -22
  27. package/docs/enums/ActionFulfilmentMethod.html +63 -0
  28. package/docs/enums/ActionIntent.html +84 -0
  29. package/docs/enums/ActionOrigin.html +75 -0
  30. package/docs/enums/ActionStatus.html +99 -0
  31. package/docs/enums/ConnectionState.html +3 -3
  32. package/docs/hierarchy.html +6 -6
  33. package/docs/interfaces/Action.html +167 -0
  34. package/docs/interfaces/ActionContact.html +77 -0
  35. package/docs/interfaces/ActionSubscriber.html +92 -0
  36. package/docs/interfaces/AnalysisResultSubscriber.html +3 -3
  37. package/docs/interfaces/AssistedEmailTemplate.html +70 -0
  38. package/docs/interfaces/AssistedPayload.html +113 -0
  39. package/docs/interfaces/AvailableAction.html +102 -0
  40. package/docs/interfaces/DataHolderSubscriber.html +3 -3
  41. package/docs/interfaces/InitiateActionInput.html +79 -0
  42. package/docs/interfaces/ListAnalysisResultsInput.html +1 -1
  43. package/docs/interfaces/ListAvailableActionsInput.html +61 -0
  44. package/docs/interfaces/ListDataHolderScanSummariesInput.html +1 -1
  45. package/docs/interfaces/ListDataHoldersInput.html +1 -1
  46. package/docs/interfaces/ListVirtualPresencesInput.html +1 -1
  47. package/docs/interfaces/Pagination.html +1 -1
  48. package/docs/interfaces/SudoPrivacyInteractionClient.html +123 -22
  49. package/docs/interfaces/VirtualPresenceSubscriber.html +3 -3
  50. package/docs/modules.html +4 -4
  51. package/docs/types/SudoPrivacyInteractionClientOptions.html +2 -2
  52. package/lib/gen/graphqlTypes.js +556 -0
  53. package/lib/private/data/action/actionSubscriptionManager.js +21 -0
  54. package/lib/private/data/action/defaultActionService.js +76 -0
  55. package/lib/private/data/action/transformer/actionFulfilmentMethodTransformer.js +43 -0
  56. package/lib/private/data/action/transformer/actionIntentTransformer.js +65 -0
  57. package/lib/private/data/action/transformer/actionOriginTransformer.js +33 -0
  58. package/lib/private/data/action/transformer/actionStatusTransformer.js +49 -0
  59. package/lib/private/data/action/transformer/actionTransformer.js +81 -0
  60. package/lib/private/data/action/transformer/availableActionTransformer.js +33 -0
  61. package/lib/private/data/common/apiClient.js +36 -1
  62. package/lib/private/domain/entities/action/actionEntity.js +83 -0
  63. package/lib/private/domain/entities/action/actionService.js +6 -0
  64. package/lib/private/domain/use-cases/action/confirmActionOutcomeUseCase.js +21 -0
  65. package/lib/private/domain/use-cases/action/initiateActionUseCase.js +22 -0
  66. package/lib/private/domain/use-cases/action/listAvailableActionsUseCase.js +22 -0
  67. package/lib/private/domain/use-cases/action/subscribeToActionUseCase.js +33 -0
  68. package/lib/private/domain/use-cases/action/unsubscribeFromActionUseCase.js +23 -0
  69. package/lib/public/defaultSudoPrivacyInteractionClient.js +58 -0
  70. package/lib/public/inputs/action.js +6 -0
  71. package/lib/public/inputs/index.js +1 -0
  72. package/lib/public/typings/action.js +82 -0
  73. package/lib/public/typings/index.js +1 -0
  74. package/package.json +2 -2
  75. package/types/gen/graphqlTypes.d.ts +245 -1
  76. package/types/private/data/action/actionSubscriptionManager.d.ts +19 -0
  77. package/types/private/data/action/defaultActionService.d.ts +23 -0
  78. package/types/private/data/action/transformer/actionFulfilmentMethodTransformer.d.ts +14 -0
  79. package/types/private/data/action/transformer/actionIntentTransformer.d.ts +14 -0
  80. package/types/private/data/action/transformer/actionOriginTransformer.d.ts +12 -0
  81. package/types/private/data/action/transformer/actionStatusTransformer.d.ts +12 -0
  82. package/types/private/data/action/transformer/actionTransformer.d.ts +39 -0
  83. package/types/private/data/action/transformer/availableActionTransformer.d.ts +15 -0
  84. package/types/private/data/common/apiClient.d.ts +7 -1
  85. package/types/private/domain/entities/action/actionEntity.d.ts +187 -0
  86. package/types/private/domain/entities/action/actionService.d.ts +99 -0
  87. package/types/private/domain/use-cases/action/confirmActionOutcomeUseCase.d.ts +16 -0
  88. package/types/private/domain/use-cases/action/initiateActionUseCase.d.ts +17 -0
  89. package/types/private/domain/use-cases/action/listAvailableActionsUseCase.d.ts +16 -0
  90. package/types/private/domain/use-cases/action/subscribeToActionUseCase.d.ts +27 -0
  91. package/types/private/domain/use-cases/action/unsubscribeFromActionUseCase.d.ts +15 -0
  92. package/types/public/defaultSudoPrivacyInteractionClient.d.ts +12 -2
  93. package/types/public/inputs/action.d.ts +30 -0
  94. package/types/public/inputs/index.d.ts +1 -0
  95. package/types/public/sudoPrivacyInteractionClient.d.ts +41 -2
  96. package/types/public/typings/action.d.ts +185 -0
  97. package/types/public/typings/index.d.ts +1 -0
  98. package/types/public/typings/subscription.d.ts +23 -0
@@ -1,6 +1,122 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OnAnalysisResultUpdateDocument = exports.OnDataHoldersUpdateDocument = exports.OnVirtualPresenceUpdateDocument = exports.ListDataHolderScanSummariesDocument = exports.ListAnalysisResultsDocument = exports.GetOrganizationAnalysisDocument = exports.GetAnalysisResultDocument = exports.ListDataHoldersDocument = exports.GetDataHolderDocument = exports.ListVirtualPresencesDocument = exports.GetProviderConfigurationDocument = exports.RescanVirtualPresenceDocument = exports.DisconnectVirtualPresenceDocument = exports.ConnectVirtualPresenceDocument = exports.VirtualPresenceFieldsFragmentDoc = exports.OrganizationAnalysisFieldsFragmentDoc = exports.DataHolderScanSummaryFieldsFragmentDoc = exports.DataHolderFieldsFragmentDoc = exports.AnalysisResultFieldsFragmentDoc = exports.AnalysisResultDataFieldsFragmentDoc = void 0;
3
+ exports.OnActionStatusUpdateDocument = exports.OnAnalysisResultUpdateDocument = exports.OnDataHoldersUpdateDocument = exports.OnVirtualPresenceUpdateDocument = exports.ListAvailableActionsDocument = exports.ListDataHolderScanSummariesDocument = exports.ListAnalysisResultsDocument = exports.GetOrganizationAnalysisDocument = exports.GetAnalysisResultDocument = exports.ListDataHoldersDocument = exports.GetDataHolderDocument = exports.ListVirtualPresencesDocument = exports.GetProviderConfigurationDocument = exports.ConfirmActionOutcomeDocument = exports.InitiateActionDocument = exports.RescanVirtualPresenceDocument = exports.DisconnectVirtualPresenceDocument = exports.ConnectVirtualPresenceDocument = exports.VirtualPresenceFieldsFragmentDoc = exports.OrganizationAnalysisFieldsFragmentDoc = exports.DataHolderScanSummaryFieldsFragmentDoc = exports.DataHolderFieldsFragmentDoc = exports.AnalysisResultFieldsFragmentDoc = exports.AnalysisResultDataFieldsFragmentDoc = exports.AvailableActionFieldsFragmentDoc = exports.ActionFieldsFragmentDoc = void 0;
4
+ exports.ActionFieldsFragmentDoc = {
5
+ kind: 'Document',
6
+ definitions: [
7
+ {
8
+ kind: 'FragmentDefinition',
9
+ name: { kind: 'Name', value: 'ActionFields' },
10
+ typeCondition: {
11
+ kind: 'NamedType',
12
+ name: { kind: 'Name', value: 'Action' },
13
+ },
14
+ selectionSet: {
15
+ kind: 'SelectionSet',
16
+ selections: [
17
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
18
+ { kind: 'Field', name: { kind: 'Name', value: 'virtualPresenceId' } },
19
+ { kind: 'Field', name: { kind: 'Name', value: 'dataHolderId' } },
20
+ { kind: 'Field', name: { kind: 'Name', value: 'intent' } },
21
+ { kind: 'Field', name: { kind: 'Name', value: 'additionalInfo' } },
22
+ { kind: 'Field', name: { kind: 'Name', value: 'fulfilmentMethod' } },
23
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } },
24
+ {
25
+ kind: 'Field',
26
+ name: { kind: 'Name', value: 'assistedPayload' },
27
+ selectionSet: {
28
+ kind: 'SelectionSet',
29
+ selections: [
30
+ { kind: 'Field', name: { kind: 'Name', value: 'toAddress' } },
31
+ {
32
+ kind: 'Field',
33
+ name: { kind: 'Name', value: 'unsubscribeUrl' },
34
+ },
35
+ {
36
+ kind: 'Field',
37
+ name: { kind: 'Name', value: 'unsubscribeMailto' },
38
+ },
39
+ {
40
+ kind: 'Field',
41
+ name: { kind: 'Name', value: 'contact' },
42
+ selectionSet: {
43
+ kind: 'SelectionSet',
44
+ selections: [
45
+ { kind: 'Field', name: { kind: 'Name', value: 'email' } },
46
+ { kind: 'Field', name: { kind: 'Name', value: 'phone' } },
47
+ {
48
+ kind: 'Field',
49
+ name: { kind: 'Name', value: 'address' },
50
+ },
51
+ ],
52
+ },
53
+ },
54
+ {
55
+ kind: 'Field',
56
+ name: { kind: 'Name', value: 'jurisdiction' },
57
+ },
58
+ {
59
+ kind: 'Field',
60
+ name: { kind: 'Name', value: 'instructions' },
61
+ },
62
+ {
63
+ kind: 'Field',
64
+ name: { kind: 'Name', value: 'emailTemplate' },
65
+ selectionSet: {
66
+ kind: 'SelectionSet',
67
+ selections: [
68
+ {
69
+ kind: 'Field',
70
+ name: { kind: 'Name', value: 'subject' },
71
+ },
72
+ { kind: 'Field', name: { kind: 'Name', value: 'body' } },
73
+ ],
74
+ },
75
+ },
76
+ ],
77
+ },
78
+ },
79
+ {
80
+ kind: 'Field',
81
+ name: { kind: 'Name', value: 'initiatedAtEpochMs' },
82
+ },
83
+ {
84
+ kind: 'Field',
85
+ name: { kind: 'Name', value: 'completedAtEpochMs' },
86
+ },
87
+ { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
88
+ { kind: 'Field', name: { kind: 'Name', value: 'version' } },
89
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
90
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
91
+ ],
92
+ },
93
+ },
94
+ ],
95
+ };
96
+ exports.AvailableActionFieldsFragmentDoc = {
97
+ kind: 'Document',
98
+ definitions: [
99
+ {
100
+ kind: 'FragmentDefinition',
101
+ name: { kind: 'Name', value: 'AvailableActionFields' },
102
+ typeCondition: {
103
+ kind: 'NamedType',
104
+ name: { kind: 'Name', value: 'AvailableAction' },
105
+ },
106
+ selectionSet: {
107
+ kind: 'SelectionSet',
108
+ selections: [
109
+ { kind: 'Field', name: { kind: 'Name', value: 'intent' } },
110
+ { kind: 'Field', name: { kind: 'Name', value: 'additionalInfo' } },
111
+ { kind: 'Field', name: { kind: 'Name', value: 'fulfilmentMethod' } },
112
+ { kind: 'Field', name: { kind: 'Name', value: 'origin' } },
113
+ { kind: 'Field', name: { kind: 'Name', value: 'title' } },
114
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
115
+ ],
116
+ },
117
+ },
118
+ ],
119
+ };
4
120
  exports.AnalysisResultDataFieldsFragmentDoc = {
5
121
  kind: 'Document',
6
122
  definitions: [
@@ -1110,6 +1226,282 @@ exports.RescanVirtualPresenceDocument = {
1110
1226
  },
1111
1227
  ],
1112
1228
  };
1229
+ exports.InitiateActionDocument = {
1230
+ kind: 'Document',
1231
+ definitions: [
1232
+ {
1233
+ kind: 'OperationDefinition',
1234
+ operation: 'mutation',
1235
+ name: { kind: 'Name', value: 'InitiateAction' },
1236
+ variableDefinitions: [
1237
+ {
1238
+ kind: 'VariableDefinition',
1239
+ variable: {
1240
+ kind: 'Variable',
1241
+ name: { kind: 'Name', value: 'input' },
1242
+ },
1243
+ type: {
1244
+ kind: 'NonNullType',
1245
+ type: {
1246
+ kind: 'NamedType',
1247
+ name: { kind: 'Name', value: 'InitiateActionInput' },
1248
+ },
1249
+ },
1250
+ },
1251
+ ],
1252
+ selectionSet: {
1253
+ kind: 'SelectionSet',
1254
+ selections: [
1255
+ {
1256
+ kind: 'Field',
1257
+ name: { kind: 'Name', value: 'initiateAction' },
1258
+ arguments: [
1259
+ {
1260
+ kind: 'Argument',
1261
+ name: { kind: 'Name', value: 'input' },
1262
+ value: {
1263
+ kind: 'Variable',
1264
+ name: { kind: 'Name', value: 'input' },
1265
+ },
1266
+ },
1267
+ ],
1268
+ selectionSet: {
1269
+ kind: 'SelectionSet',
1270
+ selections: [
1271
+ {
1272
+ kind: 'FragmentSpread',
1273
+ name: { kind: 'Name', value: 'ActionFields' },
1274
+ },
1275
+ ],
1276
+ },
1277
+ },
1278
+ ],
1279
+ },
1280
+ },
1281
+ {
1282
+ kind: 'FragmentDefinition',
1283
+ name: { kind: 'Name', value: 'ActionFields' },
1284
+ typeCondition: {
1285
+ kind: 'NamedType',
1286
+ name: { kind: 'Name', value: 'Action' },
1287
+ },
1288
+ selectionSet: {
1289
+ kind: 'SelectionSet',
1290
+ selections: [
1291
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
1292
+ { kind: 'Field', name: { kind: 'Name', value: 'virtualPresenceId' } },
1293
+ { kind: 'Field', name: { kind: 'Name', value: 'dataHolderId' } },
1294
+ { kind: 'Field', name: { kind: 'Name', value: 'intent' } },
1295
+ { kind: 'Field', name: { kind: 'Name', value: 'additionalInfo' } },
1296
+ { kind: 'Field', name: { kind: 'Name', value: 'fulfilmentMethod' } },
1297
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } },
1298
+ {
1299
+ kind: 'Field',
1300
+ name: { kind: 'Name', value: 'assistedPayload' },
1301
+ selectionSet: {
1302
+ kind: 'SelectionSet',
1303
+ selections: [
1304
+ { kind: 'Field', name: { kind: 'Name', value: 'toAddress' } },
1305
+ {
1306
+ kind: 'Field',
1307
+ name: { kind: 'Name', value: 'unsubscribeUrl' },
1308
+ },
1309
+ {
1310
+ kind: 'Field',
1311
+ name: { kind: 'Name', value: 'unsubscribeMailto' },
1312
+ },
1313
+ {
1314
+ kind: 'Field',
1315
+ name: { kind: 'Name', value: 'contact' },
1316
+ selectionSet: {
1317
+ kind: 'SelectionSet',
1318
+ selections: [
1319
+ { kind: 'Field', name: { kind: 'Name', value: 'email' } },
1320
+ { kind: 'Field', name: { kind: 'Name', value: 'phone' } },
1321
+ {
1322
+ kind: 'Field',
1323
+ name: { kind: 'Name', value: 'address' },
1324
+ },
1325
+ ],
1326
+ },
1327
+ },
1328
+ {
1329
+ kind: 'Field',
1330
+ name: { kind: 'Name', value: 'jurisdiction' },
1331
+ },
1332
+ {
1333
+ kind: 'Field',
1334
+ name: { kind: 'Name', value: 'instructions' },
1335
+ },
1336
+ {
1337
+ kind: 'Field',
1338
+ name: { kind: 'Name', value: 'emailTemplate' },
1339
+ selectionSet: {
1340
+ kind: 'SelectionSet',
1341
+ selections: [
1342
+ {
1343
+ kind: 'Field',
1344
+ name: { kind: 'Name', value: 'subject' },
1345
+ },
1346
+ { kind: 'Field', name: { kind: 'Name', value: 'body' } },
1347
+ ],
1348
+ },
1349
+ },
1350
+ ],
1351
+ },
1352
+ },
1353
+ {
1354
+ kind: 'Field',
1355
+ name: { kind: 'Name', value: 'initiatedAtEpochMs' },
1356
+ },
1357
+ {
1358
+ kind: 'Field',
1359
+ name: { kind: 'Name', value: 'completedAtEpochMs' },
1360
+ },
1361
+ { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
1362
+ { kind: 'Field', name: { kind: 'Name', value: 'version' } },
1363
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
1364
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
1365
+ ],
1366
+ },
1367
+ },
1368
+ ],
1369
+ };
1370
+ exports.ConfirmActionOutcomeDocument = {
1371
+ kind: 'Document',
1372
+ definitions: [
1373
+ {
1374
+ kind: 'OperationDefinition',
1375
+ operation: 'mutation',
1376
+ name: { kind: 'Name', value: 'ConfirmActionOutcome' },
1377
+ variableDefinitions: [
1378
+ {
1379
+ kind: 'VariableDefinition',
1380
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
1381
+ type: {
1382
+ kind: 'NonNullType',
1383
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
1384
+ },
1385
+ },
1386
+ ],
1387
+ selectionSet: {
1388
+ kind: 'SelectionSet',
1389
+ selections: [
1390
+ {
1391
+ kind: 'Field',
1392
+ name: { kind: 'Name', value: 'confirmActionOutcome' },
1393
+ arguments: [
1394
+ {
1395
+ kind: 'Argument',
1396
+ name: { kind: 'Name', value: 'id' },
1397
+ value: {
1398
+ kind: 'Variable',
1399
+ name: { kind: 'Name', value: 'id' },
1400
+ },
1401
+ },
1402
+ ],
1403
+ selectionSet: {
1404
+ kind: 'SelectionSet',
1405
+ selections: [
1406
+ {
1407
+ kind: 'FragmentSpread',
1408
+ name: { kind: 'Name', value: 'ActionFields' },
1409
+ },
1410
+ ],
1411
+ },
1412
+ },
1413
+ ],
1414
+ },
1415
+ },
1416
+ {
1417
+ kind: 'FragmentDefinition',
1418
+ name: { kind: 'Name', value: 'ActionFields' },
1419
+ typeCondition: {
1420
+ kind: 'NamedType',
1421
+ name: { kind: 'Name', value: 'Action' },
1422
+ },
1423
+ selectionSet: {
1424
+ kind: 'SelectionSet',
1425
+ selections: [
1426
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
1427
+ { kind: 'Field', name: { kind: 'Name', value: 'virtualPresenceId' } },
1428
+ { kind: 'Field', name: { kind: 'Name', value: 'dataHolderId' } },
1429
+ { kind: 'Field', name: { kind: 'Name', value: 'intent' } },
1430
+ { kind: 'Field', name: { kind: 'Name', value: 'additionalInfo' } },
1431
+ { kind: 'Field', name: { kind: 'Name', value: 'fulfilmentMethod' } },
1432
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } },
1433
+ {
1434
+ kind: 'Field',
1435
+ name: { kind: 'Name', value: 'assistedPayload' },
1436
+ selectionSet: {
1437
+ kind: 'SelectionSet',
1438
+ selections: [
1439
+ { kind: 'Field', name: { kind: 'Name', value: 'toAddress' } },
1440
+ {
1441
+ kind: 'Field',
1442
+ name: { kind: 'Name', value: 'unsubscribeUrl' },
1443
+ },
1444
+ {
1445
+ kind: 'Field',
1446
+ name: { kind: 'Name', value: 'unsubscribeMailto' },
1447
+ },
1448
+ {
1449
+ kind: 'Field',
1450
+ name: { kind: 'Name', value: 'contact' },
1451
+ selectionSet: {
1452
+ kind: 'SelectionSet',
1453
+ selections: [
1454
+ { kind: 'Field', name: { kind: 'Name', value: 'email' } },
1455
+ { kind: 'Field', name: { kind: 'Name', value: 'phone' } },
1456
+ {
1457
+ kind: 'Field',
1458
+ name: { kind: 'Name', value: 'address' },
1459
+ },
1460
+ ],
1461
+ },
1462
+ },
1463
+ {
1464
+ kind: 'Field',
1465
+ name: { kind: 'Name', value: 'jurisdiction' },
1466
+ },
1467
+ {
1468
+ kind: 'Field',
1469
+ name: { kind: 'Name', value: 'instructions' },
1470
+ },
1471
+ {
1472
+ kind: 'Field',
1473
+ name: { kind: 'Name', value: 'emailTemplate' },
1474
+ selectionSet: {
1475
+ kind: 'SelectionSet',
1476
+ selections: [
1477
+ {
1478
+ kind: 'Field',
1479
+ name: { kind: 'Name', value: 'subject' },
1480
+ },
1481
+ { kind: 'Field', name: { kind: 'Name', value: 'body' } },
1482
+ ],
1483
+ },
1484
+ },
1485
+ ],
1486
+ },
1487
+ },
1488
+ {
1489
+ kind: 'Field',
1490
+ name: { kind: 'Name', value: 'initiatedAtEpochMs' },
1491
+ },
1492
+ {
1493
+ kind: 'Field',
1494
+ name: { kind: 'Name', value: 'completedAtEpochMs' },
1495
+ },
1496
+ { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
1497
+ { kind: 'Field', name: { kind: 'Name', value: 'version' } },
1498
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
1499
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
1500
+ ],
1501
+ },
1502
+ },
1503
+ ],
1504
+ };
1113
1505
  exports.GetProviderConfigurationDocument = {
1114
1506
  kind: 'Document',
1115
1507
  definitions: [
@@ -2532,6 +2924,86 @@ exports.ListDataHolderScanSummariesDocument = {
2532
2924
  },
2533
2925
  ],
2534
2926
  };
2927
+ exports.ListAvailableActionsDocument = {
2928
+ kind: 'Document',
2929
+ definitions: [
2930
+ {
2931
+ kind: 'OperationDefinition',
2932
+ operation: 'query',
2933
+ name: { kind: 'Name', value: 'ListAvailableActions' },
2934
+ variableDefinitions: [
2935
+ {
2936
+ kind: 'VariableDefinition',
2937
+ variable: {
2938
+ kind: 'Variable',
2939
+ name: { kind: 'Name', value: 'dataHolderId' },
2940
+ },
2941
+ type: {
2942
+ kind: 'NonNullType',
2943
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
2944
+ },
2945
+ },
2946
+ ],
2947
+ selectionSet: {
2948
+ kind: 'SelectionSet',
2949
+ selections: [
2950
+ {
2951
+ kind: 'Field',
2952
+ name: { kind: 'Name', value: 'listAvailableActions' },
2953
+ arguments: [
2954
+ {
2955
+ kind: 'Argument',
2956
+ name: { kind: 'Name', value: 'dataHolderId' },
2957
+ value: {
2958
+ kind: 'Variable',
2959
+ name: { kind: 'Name', value: 'dataHolderId' },
2960
+ },
2961
+ },
2962
+ ],
2963
+ selectionSet: {
2964
+ kind: 'SelectionSet',
2965
+ selections: [
2966
+ {
2967
+ kind: 'Field',
2968
+ name: { kind: 'Name', value: 'items' },
2969
+ selectionSet: {
2970
+ kind: 'SelectionSet',
2971
+ selections: [
2972
+ {
2973
+ kind: 'FragmentSpread',
2974
+ name: { kind: 'Name', value: 'AvailableActionFields' },
2975
+ },
2976
+ ],
2977
+ },
2978
+ },
2979
+ { kind: 'Field', name: { kind: 'Name', value: 'nextToken' } },
2980
+ ],
2981
+ },
2982
+ },
2983
+ ],
2984
+ },
2985
+ },
2986
+ {
2987
+ kind: 'FragmentDefinition',
2988
+ name: { kind: 'Name', value: 'AvailableActionFields' },
2989
+ typeCondition: {
2990
+ kind: 'NamedType',
2991
+ name: { kind: 'Name', value: 'AvailableAction' },
2992
+ },
2993
+ selectionSet: {
2994
+ kind: 'SelectionSet',
2995
+ selections: [
2996
+ { kind: 'Field', name: { kind: 'Name', value: 'intent' } },
2997
+ { kind: 'Field', name: { kind: 'Name', value: 'additionalInfo' } },
2998
+ { kind: 'Field', name: { kind: 'Name', value: 'fulfilmentMethod' } },
2999
+ { kind: 'Field', name: { kind: 'Name', value: 'origin' } },
3000
+ { kind: 'Field', name: { kind: 'Name', value: 'title' } },
3001
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
3002
+ ],
3003
+ },
3004
+ },
3005
+ ],
3006
+ };
2535
3007
  exports.OnVirtualPresenceUpdateDocument = {
2536
3008
  kind: 'Document',
2537
3009
  definitions: [
@@ -2778,3 +3250,87 @@ exports.OnAnalysisResultUpdateDocument = {
2778
3250
  },
2779
3251
  ],
2780
3252
  };
3253
+ exports.OnActionStatusUpdateDocument = {
3254
+ kind: 'Document',
3255
+ definitions: [
3256
+ {
3257
+ kind: 'OperationDefinition',
3258
+ operation: 'subscription',
3259
+ name: { kind: 'Name', value: 'OnActionStatusUpdate' },
3260
+ variableDefinitions: [
3261
+ {
3262
+ kind: 'VariableDefinition',
3263
+ variable: {
3264
+ kind: 'Variable',
3265
+ name: { kind: 'Name', value: 'owner' },
3266
+ },
3267
+ type: {
3268
+ kind: 'NonNullType',
3269
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
3270
+ },
3271
+ },
3272
+ ],
3273
+ selectionSet: {
3274
+ kind: 'SelectionSet',
3275
+ selections: [
3276
+ {
3277
+ kind: 'Field',
3278
+ name: { kind: 'Name', value: 'onActionStatusUpdate' },
3279
+ arguments: [
3280
+ {
3281
+ kind: 'Argument',
3282
+ name: { kind: 'Name', value: 'owner' },
3283
+ value: {
3284
+ kind: 'Variable',
3285
+ name: { kind: 'Name', value: 'owner' },
3286
+ },
3287
+ },
3288
+ ],
3289
+ selectionSet: {
3290
+ kind: 'SelectionSet',
3291
+ selections: [
3292
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
3293
+ {
3294
+ kind: 'Field',
3295
+ name: { kind: 'Name', value: 'virtualPresenceId' },
3296
+ },
3297
+ {
3298
+ kind: 'Field',
3299
+ name: { kind: 'Name', value: 'dataHolderId' },
3300
+ },
3301
+ { kind: 'Field', name: { kind: 'Name', value: 'intent' } },
3302
+ {
3303
+ kind: 'Field',
3304
+ name: { kind: 'Name', value: 'additionalInfo' },
3305
+ },
3306
+ {
3307
+ kind: 'Field',
3308
+ name: { kind: 'Name', value: 'fulfilmentMethod' },
3309
+ },
3310
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } },
3311
+ {
3312
+ kind: 'Field',
3313
+ name: { kind: 'Name', value: 'initiatedAtEpochMs' },
3314
+ },
3315
+ {
3316
+ kind: 'Field',
3317
+ name: { kind: 'Name', value: 'completedAtEpochMs' },
3318
+ },
3319
+ { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
3320
+ { kind: 'Field', name: { kind: 'Name', value: 'version' } },
3321
+ {
3322
+ kind: 'Field',
3323
+ name: { kind: 'Name', value: 'createdAtEpochMs' },
3324
+ },
3325
+ {
3326
+ kind: 'Field',
3327
+ name: { kind: 'Name', value: 'updatedAtEpochMs' },
3328
+ },
3329
+ ],
3330
+ },
3331
+ },
3332
+ ],
3333
+ },
3334
+ },
3335
+ ],
3336
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
4
+ *
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ActionSubscriptionManager = void 0;
9
+ const baseSubscriptionManager_1 = require("../common/baseSubscriptionManager");
10
+ class ActionSubscriptionManager extends baseSubscriptionManager_1.BaseSubscriptionManager {
11
+ /**
12
+ * Notifies subscribers of an action status update.
13
+ *
14
+ * @param action The updated action.
15
+ */
16
+ actionUpdated(action) {
17
+ for (const subscriber of this.getSubscribers()) {
18
+ subscriber.actionUpdated(action);
19
+ }
20
+ }
21
+ connectionStatusChanged(state) {
22
+ super.connectionStatusChanged(state);
23
+ }
24
+ }
25
+ exports.ActionSubscriptionManager = ActionSubscriptionManager;