@toloka-platform/sdk 0.19.1 → 0.21.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.
@@ -219,19 +219,11 @@
219
219
  ]
220
220
  },
221
221
  "value": {
222
- "anyOf": [
223
- {
224
- "type": "string"
225
- },
226
- {
227
- "type": "number"
228
- },
229
- {
230
- "type": "boolean"
231
- },
232
- {
233
- "type": "null"
234
- }
222
+ "type": [
223
+ "string",
224
+ "number",
225
+ "boolean",
226
+ "null"
235
227
  ]
236
228
  },
237
229
  "fieldId": {
@@ -432,7 +424,7 @@
432
424
  "createdBefore": {
433
425
  "type": "string",
434
426
  "format": "date-time",
435
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
427
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
436
428
  }
437
429
  },
438
430
  "additionalProperties": false
@@ -1029,13 +1021,9 @@
1029
1021
  "const": true
1030
1022
  },
1031
1023
  "maxEntities": {
1032
- "anyOf": [
1033
- {
1034
- "type": "number"
1035
- },
1036
- {
1037
- "type": "null"
1038
- }
1024
+ "type": [
1025
+ "number",
1026
+ "null"
1039
1027
  ]
1040
1028
  }
1041
1029
  },
@@ -1323,13 +1311,9 @@
1323
1311
  "const": true
1324
1312
  },
1325
1313
  "maxEntities": {
1326
- "anyOf": [
1327
- {
1328
- "type": "number"
1329
- },
1330
- {
1331
- "type": "null"
1332
- }
1314
+ "type": [
1315
+ "number",
1316
+ "null"
1333
1317
  ]
1334
1318
  }
1335
1319
  },
@@ -1428,10 +1412,6 @@
1428
1412
  ]
1429
1413
  },
1430
1414
  "qualityAssurance": {
1431
- "default": {
1432
- "qaMode": "llm_only",
1433
- "llmQaModelId": "gpt-5.6-terra"
1434
- },
1435
1415
  "oneOf": [
1436
1416
  {
1437
1417
  "type": "object",
@@ -1474,6 +1454,18 @@
1474
1454
  "humanQaTimeForTask": {
1475
1455
  "type": "number",
1476
1456
  "exclusiveMinimum": 0
1457
+ },
1458
+ "expertListId": {
1459
+ "description": "Expert list the experts come from, with prefix `exl.`. Requires `audienceMode: service`. `null` detaches the list. Omitted when no list is attached.",
1460
+ "anyOf": [
1461
+ {
1462
+ "type": "string",
1463
+ "pattern": "^exl\\.[0-9a-f]{8}-[0-9a-f]{4}-[7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1464
+ },
1465
+ {
1466
+ "type": "null"
1467
+ }
1468
+ ]
1477
1469
  }
1478
1470
  },
1479
1471
  "required": [
@@ -1498,6 +1490,18 @@
1498
1490
  "type": "number",
1499
1491
  "exclusiveMinimum": 0
1500
1492
  },
1493
+ "expertListId": {
1494
+ "description": "Expert list the experts come from, with prefix `exl.`. Requires `audienceMode: service`. `null` detaches the list. Omitted when no list is attached.",
1495
+ "anyOf": [
1496
+ {
1497
+ "type": "string",
1498
+ "pattern": "^exl\\.[0-9a-f]{8}-[0-9a-f]{4}-[7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1499
+ },
1500
+ {
1501
+ "type": "null"
1502
+ }
1503
+ ]
1504
+ },
1501
1505
  "llmQaModelId": {
1502
1506
  "default": "gpt-5.6-terra",
1503
1507
  "type": "string",
@@ -1520,28 +1524,6 @@
1520
1524
  ]
1521
1525
  },
1522
1526
  "audienceAndPricing": {
1523
- "default": {
1524
- "audienceType": "human",
1525
- "verifiedExperts": true,
1526
- "audience": {
1527
- "languages": {
1528
- "type": "and",
1529
- "values": []
1530
- },
1531
- "specializations": {
1532
- "type": "and",
1533
- "values": []
1534
- },
1535
- "countries": {
1536
- "type": "or",
1537
- "values": []
1538
- }
1539
- },
1540
- "pricePerTask": 6,
1541
- "timeForTask": 1800,
1542
- "perExpertCapEnabled": false,
1543
- "perExpertCapValue": 1
1544
- },
1545
1527
  "oneOf": [
1546
1528
  {
1547
1529
  "type": "object",
@@ -1665,6 +1647,18 @@
1665
1647
  "exclusiveMinimum": 0,
1666
1648
  "maximum": 50
1667
1649
  },
1650
+ "expertListId": {
1651
+ "description": "Expert list the experts come from, with prefix `exl.`. Requires `audienceMode: service`. `null` detaches the list. Omitted when no list is attached.",
1652
+ "anyOf": [
1653
+ {
1654
+ "type": "string",
1655
+ "pattern": "^exl\\.[0-9a-f]{8}-[0-9a-f]{4}-[7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1656
+ },
1657
+ {
1658
+ "type": "null"
1659
+ }
1660
+ ]
1661
+ },
1668
1662
  "audienceType": {
1669
1663
  "type": "string",
1670
1664
  "const": "human"
@@ -2038,7 +2032,7 @@
2038
2032
  "type": "string"
2039
2033
  },
2040
2034
  "additionalProperties": {
2041
- "$ref": "#/$defs/__schema3"
2035
+ "$ref": "#/$defs/__schema2"
2042
2036
  }
2043
2037
  },
2044
2038
  "checks": {
@@ -2057,7 +2051,7 @@
2057
2051
  "type": "string"
2058
2052
  },
2059
2053
  "golden": {
2060
- "$ref": "#/$defs/__schema4"
2054
+ "$ref": "#/$defs/__schema2"
2061
2055
  },
2062
2056
  "hint": {
2063
2057
  "type": "string"
@@ -2325,6 +2319,14 @@
2325
2319
  }
2326
2320
  ]
2327
2321
  },
2322
+ "audienceMode": {
2323
+ "description": "How the node finds experts. `legacy`: audience filters and smart search. `service`: the audience service, which can also take experts from an expert list. Only teams with the audience service enabled can use `service`. Omitted when `legacy`.",
2324
+ "type": "string",
2325
+ "enum": [
2326
+ "legacy",
2327
+ "service"
2328
+ ]
2329
+ },
2328
2330
  "smartSearch": {
2329
2331
  "default": null,
2330
2332
  "anyOf": [
@@ -2335,13 +2337,9 @@
2335
2337
  "type": "string"
2336
2338
  },
2337
2339
  "projectDescription": {
2338
- "anyOf": [
2339
- {
2340
- "type": "string"
2341
- },
2342
- {
2343
- "type": "null"
2344
- }
2340
+ "type": [
2341
+ "string",
2342
+ "null"
2345
2343
  ]
2346
2344
  },
2347
2345
  "extraHardRequirements": {
@@ -2532,19 +2530,11 @@
2532
2530
  ]
2533
2531
  },
2534
2532
  "value": {
2535
- "anyOf": [
2536
- {
2537
- "type": "string"
2538
- },
2539
- {
2540
- "type": "number"
2541
- },
2542
- {
2543
- "type": "boolean"
2544
- },
2545
- {
2546
- "type": "null"
2547
- }
2533
+ "type": [
2534
+ "string",
2535
+ "number",
2536
+ "boolean",
2537
+ "null"
2548
2538
  ]
2549
2539
  }
2550
2540
  },
@@ -2648,28 +2638,6 @@
2648
2638
  "type": "string"
2649
2639
  },
2650
2640
  "audienceAndPricing": {
2651
- "default": {
2652
- "audienceType": "human",
2653
- "verifiedExperts": true,
2654
- "audience": {
2655
- "languages": {
2656
- "type": "and",
2657
- "values": []
2658
- },
2659
- "specializations": {
2660
- "type": "and",
2661
- "values": []
2662
- },
2663
- "countries": {
2664
- "type": "or",
2665
- "values": []
2666
- }
2667
- },
2668
- "pricePerTask": 6,
2669
- "timeForTask": 1800,
2670
- "perExpertCapEnabled": false,
2671
- "perExpertCapValue": 1
2672
- },
2673
2641
  "type": "object",
2674
2642
  "properties": {
2675
2643
  "verifiedExperts": {
@@ -2791,6 +2759,18 @@
2791
2759
  "exclusiveMinimum": 0,
2792
2760
  "maximum": 50
2793
2761
  },
2762
+ "expertListId": {
2763
+ "description": "Expert list the experts come from, with prefix `exl.`. Requires `audienceMode: service`. `null` detaches the list. Omitted when no list is attached.",
2764
+ "anyOf": [
2765
+ {
2766
+ "type": "string",
2767
+ "pattern": "^exl\\.[0-9a-f]{8}-[0-9a-f]{4}-[7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
2768
+ },
2769
+ {
2770
+ "type": "null"
2771
+ }
2772
+ ]
2773
+ },
2794
2774
  "audienceType": {
2795
2775
  "type": "string",
2796
2776
  "const": "human"
@@ -3079,13 +3059,9 @@
3079
3059
  "const": true
3080
3060
  },
3081
3061
  "maxEntities": {
3082
- "anyOf": [
3083
- {
3084
- "type": "number"
3085
- },
3086
- {
3087
- "type": "null"
3088
- }
3062
+ "type": [
3063
+ "number",
3064
+ "null"
3089
3065
  ]
3090
3066
  }
3091
3067
  },
@@ -3373,13 +3349,9 @@
3373
3349
  "const": true
3374
3350
  },
3375
3351
  "maxEntities": {
3376
- "anyOf": [
3377
- {
3378
- "type": "number"
3379
- },
3380
- {
3381
- "type": "null"
3382
- }
3352
+ "type": [
3353
+ "number",
3354
+ "null"
3383
3355
  ]
3384
3356
  }
3385
3357
  },
@@ -3864,7 +3836,7 @@
3864
3836
  "type": "string"
3865
3837
  },
3866
3838
  "additionalProperties": {
3867
- "$ref": "#/$defs/__schema3"
3839
+ "$ref": "#/$defs/__schema2"
3868
3840
  }
3869
3841
  },
3870
3842
  "checks": {
@@ -3883,7 +3855,7 @@
3883
3855
  "type": "string"
3884
3856
  },
3885
3857
  "golden": {
3886
- "$ref": "#/$defs/__schema4"
3858
+ "$ref": "#/$defs/__schema2"
3887
3859
  },
3888
3860
  "hint": {
3889
3861
  "type": "string"
@@ -4151,6 +4123,14 @@
4151
4123
  }
4152
4124
  ]
4153
4125
  },
4126
+ "audienceMode": {
4127
+ "description": "How the node finds experts. `legacy`: audience filters and smart search. `service`: the audience service, which can also take experts from an expert list. Only teams with the audience service enabled can use `service`. Omitted when `legacy`.",
4128
+ "type": "string",
4129
+ "enum": [
4130
+ "legacy",
4131
+ "service"
4132
+ ]
4133
+ },
4154
4134
  "smartSearch": {
4155
4135
  "default": null,
4156
4136
  "anyOf": [
@@ -4161,13 +4141,9 @@
4161
4141
  "type": "string"
4162
4142
  },
4163
4143
  "projectDescription": {
4164
- "anyOf": [
4165
- {
4166
- "type": "string"
4167
- },
4168
- {
4169
- "type": "null"
4170
- }
4144
+ "type": [
4145
+ "string",
4146
+ "null"
4171
4147
  ]
4172
4148
  },
4173
4149
  "extraHardRequirements": {
@@ -4369,7 +4345,10 @@
4369
4345
  "type": "number",
4370
4346
  "description": "Y"
4371
4347
  }
4372
- ]
4348
+ ],
4349
+ "items": false,
4350
+ "minItems": 2,
4351
+ "maxItems": 2
4373
4352
  },
4374
4353
  "maxProperties": 2
4375
4354
  },
@@ -4391,7 +4370,8 @@
4391
4370
  },
4392
4371
  "additionalProperties": {
4393
4372
  "$ref": "#/$defs/__schema1"
4394
- }
4373
+ },
4374
+ "ref": "JsonSchemaProperties"
4395
4375
  },
4396
4376
  "__schema1": {
4397
4377
  "type": "object",
@@ -4538,9 +4518,11 @@
4538
4518
  }
4539
4519
  }
4540
4520
  },
4541
- "additionalProperties": false
4521
+ "additionalProperties": false,
4522
+ "ref": "JsonSchema"
4542
4523
  },
4543
4524
  "__schema2": {
4525
+ "ref": "JsonValue",
4544
4526
  "anyOf": [
4545
4527
  {
4546
4528
  "type": "string"
@@ -4570,68 +4552,6 @@
4570
4552
  }
4571
4553
  }
4572
4554
  ]
4573
- },
4574
- "__schema3": {
4575
- "anyOf": [
4576
- {
4577
- "type": "string"
4578
- },
4579
- {
4580
- "type": "number"
4581
- },
4582
- {
4583
- "type": "boolean"
4584
- },
4585
- {
4586
- "type": "null"
4587
- },
4588
- {
4589
- "type": "array",
4590
- "items": {
4591
- "$ref": "#/$defs/__schema3"
4592
- }
4593
- },
4594
- {
4595
- "type": "object",
4596
- "propertyNames": {
4597
- "type": "string"
4598
- },
4599
- "additionalProperties": {
4600
- "$ref": "#/$defs/__schema3"
4601
- }
4602
- }
4603
- ]
4604
- },
4605
- "__schema4": {
4606
- "anyOf": [
4607
- {
4608
- "type": "string"
4609
- },
4610
- {
4611
- "type": "number"
4612
- },
4613
- {
4614
- "type": "boolean"
4615
- },
4616
- {
4617
- "type": "null"
4618
- },
4619
- {
4620
- "type": "array",
4621
- "items": {
4622
- "$ref": "#/$defs/__schema4"
4623
- }
4624
- },
4625
- {
4626
- "type": "object",
4627
- "propertyNames": {
4628
- "type": "string"
4629
- },
4630
- "additionalProperties": {
4631
- "$ref": "#/$defs/__schema4"
4632
- }
4633
- }
4634
- ]
4635
4555
  }
4636
4556
  }
4637
4557
  }