@openvtc/trust-tasks 0.28.20 → 0.28.22

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 (78) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/_shared/components.d.ts +48 -4
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/step-up/requests/show/0.1/payload.d.ts +458 -0
  5. package/dist/auth/step-up/requests/show/0.1/payload.d.ts.map +1 -0
  6. package/dist/auth/step-up/requests/show/0.1/payload.js +261 -0
  7. package/dist/auth/step-up/requests/show/0.1/payload.js.map +1 -0
  8. package/dist/index.d.ts +15 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +15 -0
  11. package/dist/index.js.map +1 -1
  12. package/dist/vtc/badges/_shared/0.1/badge.d.ts +1 -1
  13. package/dist/vtc/badges/_shared/0.1/badge.d.ts.map +1 -1
  14. package/dist/vtc/badges/claims/create/0.1/payload.d.ts +595 -0
  15. package/dist/vtc/badges/claims/create/0.1/payload.d.ts.map +1 -0
  16. package/dist/vtc/badges/claims/create/0.1/payload.js +345 -0
  17. package/dist/vtc/badges/claims/create/0.1/payload.js.map +1 -0
  18. package/dist/vtc/badges/claims/list/0.1/payload.d.ts +586 -0
  19. package/dist/vtc/badges/claims/list/0.1/payload.d.ts.map +1 -0
  20. package/dist/vtc/badges/claims/list/0.1/payload.js +335 -0
  21. package/dist/vtc/badges/claims/list/0.1/payload.js.map +1 -0
  22. package/dist/vtc/badges/claims/redeem/0.1/payload.d.ts +720 -0
  23. package/dist/vtc/badges/claims/redeem/0.1/payload.d.ts.map +1 -0
  24. package/dist/vtc/badges/claims/redeem/0.1/payload.js +417 -0
  25. package/dist/vtc/badges/claims/redeem/0.1/payload.js.map +1 -0
  26. package/dist/vtc/badges/claims/withdraw/0.1/payload.d.ts +512 -0
  27. package/dist/vtc/badges/claims/withdraw/0.1/payload.d.ts.map +1 -0
  28. package/dist/vtc/badges/claims/withdraw/0.1/payload.js +305 -0
  29. package/dist/vtc/badges/claims/withdraw/0.1/payload.js.map +1 -0
  30. package/dist/vtc/badges/create/0.1/payload.d.ts +40 -16
  31. package/dist/vtc/badges/create/0.1/payload.d.ts.map +1 -1
  32. package/dist/vtc/badges/create/0.1/payload.js +28 -8
  33. package/dist/vtc/badges/create/0.1/payload.js.map +1 -1
  34. package/dist/vtc/badges/promote/0.1/payload.d.ts +40 -16
  35. package/dist/vtc/badges/promote/0.1/payload.d.ts.map +1 -1
  36. package/dist/vtc/badges/promote/0.1/payload.js +28 -8
  37. package/dist/vtc/badges/promote/0.1/payload.js.map +1 -1
  38. package/dist/vtc/badges/show/0.1/payload.d.ts +472 -26
  39. package/dist/vtc/badges/show/0.1/payload.d.ts.map +1 -1
  40. package/dist/vtc/badges/show/0.1/payload.js +264 -12
  41. package/dist/vtc/badges/show/0.1/payload.js.map +1 -1
  42. package/dist/vtc/groups/create/0.1/payload.d.ts +40 -16
  43. package/dist/vtc/groups/create/0.1/payload.d.ts.map +1 -1
  44. package/dist/vtc/groups/create/0.1/payload.js +28 -8
  45. package/dist/vtc/groups/create/0.1/payload.js.map +1 -1
  46. package/dist/vtc/groups/list/0.1/payload.d.ts +40 -16
  47. package/dist/vtc/groups/list/0.1/payload.d.ts.map +1 -1
  48. package/dist/vtc/groups/list/0.1/payload.js +28 -8
  49. package/dist/vtc/groups/list/0.1/payload.js.map +1 -1
  50. package/dist/vtc/groups/list/0.2/payload.d.ts +40 -16
  51. package/dist/vtc/groups/list/0.2/payload.d.ts.map +1 -1
  52. package/dist/vtc/groups/list/0.2/payload.js +28 -8
  53. package/dist/vtc/groups/list/0.2/payload.js.map +1 -1
  54. package/dist/vtc/groups/show/0.1/payload.d.ts +40 -16
  55. package/dist/vtc/groups/show/0.1/payload.d.ts.map +1 -1
  56. package/dist/vtc/groups/show/0.1/payload.js +28 -8
  57. package/dist/vtc/groups/show/0.1/payload.js.map +1 -1
  58. package/dist/vtc/groups/update/0.1/payload.d.ts +40 -16
  59. package/dist/vtc/groups/update/0.1/payload.d.ts.map +1 -1
  60. package/dist/vtc/groups/update/0.1/payload.js +28 -8
  61. package/dist/vtc/groups/update/0.1/payload.js.map +1 -1
  62. package/package.json +1 -1
  63. package/src/_shared/components.ts +48 -4
  64. package/src/auth/step-up/requests/show/0.1/payload.ts +317 -0
  65. package/src/index.ts +15 -0
  66. package/src/vtc/badges/_shared/0.1/badge.ts +1 -1
  67. package/src/vtc/badges/claims/create/0.1/payload.ts +395 -0
  68. package/src/vtc/badges/claims/list/0.1/payload.ts +386 -0
  69. package/src/vtc/badges/claims/redeem/0.1/payload.ts +454 -0
  70. package/src/vtc/badges/claims/withdraw/0.1/payload.ts +342 -0
  71. package/src/vtc/badges/create/0.1/payload.ts +28 -8
  72. package/src/vtc/badges/promote/0.1/payload.ts +28 -8
  73. package/src/vtc/badges/show/0.1/payload.ts +272 -14
  74. package/src/vtc/groups/create/0.1/payload.ts +28 -8
  75. package/src/vtc/groups/list/0.1/payload.ts +28 -8
  76. package/src/vtc/groups/list/0.2/payload.ts +28 -8
  77. package/src/vtc/groups/show/0.1/payload.ts +28 -8
  78. package/src/vtc/groups/update/0.1/payload.ts +28 -8
@@ -261,7 +261,7 @@ export const PAYLOAD_SCHEMA = {
261
261
  },
262
262
  "RuleCondition": {
263
263
  "title": "RuleCondition",
264
- "description": "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card.",
264
+ "description": "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card. `kudosReceived`, `ideasSelected` and `electionTickets` are counts the community keeps of its own records (kudos the member accepted, ideas of theirs a board selected, elections it issued them a ticket in), compared with `atLeast`; only a badge's group reads them (VTI-BDG-015), and any other group refuses them with `ruleInvalid`.",
265
265
  "type": "object",
266
266
  "additionalProperties": false,
267
267
  "required": [
@@ -275,7 +275,10 @@ export const PAYLOAD_SCHEMA = {
275
275
  "role",
276
276
  "field",
277
277
  "personhood",
278
- "joinedAt"
278
+ "joinedAt",
279
+ "kudosReceived",
280
+ "ideasSelected",
281
+ "electionTickets"
279
282
  ]
280
283
  },
281
284
  "field": {
@@ -289,9 +292,10 @@ export const PAYLOAD_SCHEMA = {
289
292
  "oneOf",
290
293
  "exists",
291
294
  "before",
292
- "after"
295
+ "after",
296
+ "atLeast"
293
297
  ],
294
- "description": "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`."
298
+ "description": "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`; `atLeast` compares a count fact with `count`."
295
299
  },
296
300
  "value": {
297
301
  "anyOf": [
@@ -312,6 +316,12 @@ export const PAYLOAD_SCHEMA = {
312
316
  "type": "string",
313
317
  "maxLength": 256
314
318
  }
319
+ },
320
+ "count": {
321
+ "type": "integer",
322
+ "minimum": 1,
323
+ "maximum": 100000,
324
+ "description": "With `atLeast`: the least a count fact (`kudosReceived`, `ideasSelected`, `electionTickets`) must be. Present exactly when `op` is `atLeast`."
315
325
  }
316
326
  }
317
327
  },
@@ -552,7 +562,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
552
562
  },
553
563
  "RuleCondition": {
554
564
  "title": "RuleCondition",
555
- "description": "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card.",
565
+ "description": "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card. `kudosReceived`, `ideasSelected` and `electionTickets` are counts the community keeps of its own records (kudos the member accepted, ideas of theirs a board selected, elections it issued them a ticket in), compared with `atLeast`; only a badge's group reads them (VTI-BDG-015), and any other group refuses them with `ruleInvalid`.",
556
566
  "type": "object",
557
567
  "additionalProperties": false,
558
568
  "required": [
@@ -566,7 +576,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
566
576
  "role",
567
577
  "field",
568
578
  "personhood",
569
- "joinedAt"
579
+ "joinedAt",
580
+ "kudosReceived",
581
+ "ideasSelected",
582
+ "electionTickets"
570
583
  ]
571
584
  },
572
585
  "field": {
@@ -580,9 +593,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
580
593
  "oneOf",
581
594
  "exists",
582
595
  "before",
583
- "after"
596
+ "after",
597
+ "atLeast"
584
598
  ],
585
- "description": "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`."
599
+ "description": "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`; `atLeast` compares a count fact with `count`."
586
600
  },
587
601
  "value": {
588
602
  "anyOf": [
@@ -603,6 +617,12 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
603
617
  "type": "string",
604
618
  "maxLength": 256
605
619
  }
620
+ },
621
+ "count": {
622
+ "type": "integer",
623
+ "minimum": 1,
624
+ "maximum": 100000,
625
+ "description": "With `atLeast`: the least a count fact (`kudosReceived`, `ideasSelected`, `electionTickets`) must be. Present exactly when `op` is `atLeast`."
606
626
  }
607
627
  }
608
628
  },
@@ -302,7 +302,7 @@ export const PAYLOAD_SCHEMA = {
302
302
  },
303
303
  "RuleCondition": {
304
304
  "title": "RuleCondition",
305
- "description": "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card.",
305
+ "description": "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card. `kudosReceived`, `ideasSelected` and `electionTickets` are counts the community keeps of its own records (kudos the member accepted, ideas of theirs a board selected, elections it issued them a ticket in), compared with `atLeast`; only a badge's group reads them (VTI-BDG-015), and any other group refuses them with `ruleInvalid`.",
306
306
  "type": "object",
307
307
  "additionalProperties": false,
308
308
  "required": [
@@ -316,7 +316,10 @@ export const PAYLOAD_SCHEMA = {
316
316
  "role",
317
317
  "field",
318
318
  "personhood",
319
- "joinedAt"
319
+ "joinedAt",
320
+ "kudosReceived",
321
+ "ideasSelected",
322
+ "electionTickets"
320
323
  ]
321
324
  },
322
325
  "field": {
@@ -330,9 +333,10 @@ export const PAYLOAD_SCHEMA = {
330
333
  "oneOf",
331
334
  "exists",
332
335
  "before",
333
- "after"
336
+ "after",
337
+ "atLeast"
334
338
  ],
335
- "description": "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`."
339
+ "description": "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`; `atLeast` compares a count fact with `count`."
336
340
  },
337
341
  "value": {
338
342
  "anyOf": [
@@ -353,6 +357,12 @@ export const PAYLOAD_SCHEMA = {
353
357
  "type": "string",
354
358
  "maxLength": 256
355
359
  }
360
+ },
361
+ "count": {
362
+ "type": "integer",
363
+ "minimum": 1,
364
+ "maximum": 100000,
365
+ "description": "With `atLeast`: the least a count fact (`kudosReceived`, `ideasSelected`, `electionTickets`) must be. Present exactly when `op` is `atLeast`."
356
366
  }
357
367
  }
358
368
  },
@@ -582,7 +592,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
582
592
  },
583
593
  "RuleCondition": {
584
594
  "title": "RuleCondition",
585
- "description": "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card.",
595
+ "description": "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card. `kudosReceived`, `ideasSelected` and `electionTickets` are counts the community keeps of its own records (kudos the member accepted, ideas of theirs a board selected, elections it issued them a ticket in), compared with `atLeast`; only a badge's group reads them (VTI-BDG-015), and any other group refuses them with `ruleInvalid`.",
586
596
  "type": "object",
587
597
  "additionalProperties": false,
588
598
  "required": [
@@ -596,7 +606,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
596
606
  "role",
597
607
  "field",
598
608
  "personhood",
599
- "joinedAt"
609
+ "joinedAt",
610
+ "kudosReceived",
611
+ "ideasSelected",
612
+ "electionTickets"
600
613
  ]
601
614
  },
602
615
  "field": {
@@ -610,9 +623,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
610
623
  "oneOf",
611
624
  "exists",
612
625
  "before",
613
- "after"
626
+ "after",
627
+ "atLeast"
614
628
  ],
615
- "description": "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`."
629
+ "description": "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`; `atLeast` compares a count fact with `count`."
616
630
  },
617
631
  "value": {
618
632
  "anyOf": [
@@ -633,6 +647,12 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
633
647
  "type": "string",
634
648
  "maxLength": 256
635
649
  }
650
+ },
651
+ "count": {
652
+ "type": "integer",
653
+ "minimum": 1,
654
+ "maximum": 100000,
655
+ "description": "With `atLeast`: the least a count fact (`kudosReceived`, `ideasSelected`, `electionTickets`) must be. Present exactly when `op` is `atLeast`."
636
656
  }
637
657
  }
638
658
  },