@tokenlabai/mcp-server 0.6.7 → 0.6.9

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.
@@ -828,7 +828,7 @@
828
828
  "Video"
829
829
  ],
830
830
  "summary": "Create Seedance material asset",
831
- "description": "Uploads one Seedance material asset URL into a TokenLab material group. Real-person assets require the TokenLab group_id returned by the real-person verification bind flow.",
831
+ "description": "Uploads one Seedance material asset URL into a TokenLab material group. Real-person assets require the group_id mapped from Result.GroupId returned by GetVisualValidateResult.",
832
832
  "operationId": "createSeedanceMaterialAsset",
833
833
  "requestBody": {
834
834
  "required": true,
@@ -1025,232 +1025,6 @@
1025
1025
  }
1026
1026
  }
1027
1027
  },
1028
- "/v1/videos/assets/visual-validation-sessions": {
1029
- "post": {
1030
- "tags": [
1031
- "Video"
1032
- ],
1033
- "summary": "Create Seedance real-person verification session",
1034
- "description": "Creates a TokenLab real-person material verification H5 session. The response contains only TokenLab session fields. The session and H5 link are valid for 120 seconds; the binding token is delivered through the TokenLab callback redirect after the H5 flow completes.",
1035
- "operationId": "createSeedanceVisualValidationSession",
1036
- "requestBody": {
1037
- "required": true,
1038
- "content": {
1039
- "application/json": {
1040
- "schema": {
1041
- "$ref": "#/components/schemas/SeedanceVisualValidationSessionCreateRequest"
1042
- },
1043
- "examples": {
1044
- "create_session": {
1045
- "summary": "Create a verification session",
1046
- "value": {
1047
- "callback_url": "https://yourapp.example.com/seedance/callback",
1048
- "language": "en"
1049
- }
1050
- }
1051
- }
1052
- }
1053
- }
1054
- },
1055
- "responses": {
1056
- "201": {
1057
- "description": "Real-person verification session created",
1058
- "content": {
1059
- "application/json": {
1060
- "schema": {
1061
- "$ref": "#/components/schemas/SeedanceVisualValidationSession"
1062
- },
1063
- "examples": {
1064
- "session_created": {
1065
- "summary": "Verification session created",
1066
- "value": {
1067
- "object": "seedance.visual_validation_session",
1068
- "session_id": "svv_abc123",
1069
- "h5_link": "https://verify.example.com/h5?lng=en",
1070
- "callback_url": "https://yourapp.example.com/seedance/callback",
1071
- "expires_in": 120,
1072
- "language": "en"
1073
- }
1074
- }
1075
- }
1076
- }
1077
- }
1078
- },
1079
- "400": {
1080
- "$ref": "#/components/responses/BadRequest"
1081
- },
1082
- "401": {
1083
- "$ref": "#/components/responses/Unauthorized"
1084
- },
1085
- "500": {
1086
- "$ref": "#/components/responses/ServerError"
1087
- },
1088
- "503": {
1089
- "$ref": "#/components/responses/MaterialLibraryUnavailable"
1090
- }
1091
- }
1092
- },
1093
- "get": {
1094
- "tags": [
1095
- "Video"
1096
- ],
1097
- "summary": "List Seedance real-person verification history",
1098
- "description": "Lists TokenLab real-person material verification history for the authenticated organization. The response contains only TokenLab IDs and session status fields.",
1099
- "operationId": "listSeedanceVisualValidationHistory",
1100
- "parameters": [
1101
- {
1102
- "name": "page_size",
1103
- "in": "query",
1104
- "required": false,
1105
- "schema": {
1106
- "type": "integer",
1107
- "minimum": 1,
1108
- "maximum": 100,
1109
- "default": 20
1110
- },
1111
- "description": "Maximum number of history records to return."
1112
- },
1113
- {
1114
- "name": "page_token",
1115
- "in": "query",
1116
- "required": false,
1117
- "schema": {
1118
- "type": "string"
1119
- },
1120
- "description": "Pagination token from a previous response."
1121
- }
1122
- ],
1123
- "responses": {
1124
- "200": {
1125
- "description": "Real-person verification history list",
1126
- "content": {
1127
- "application/json": {
1128
- "schema": {
1129
- "$ref": "#/components/schemas/SeedanceVisualValidationHistoryList"
1130
- },
1131
- "examples": {
1132
- "verification_history": {
1133
- "summary": "Verification session history",
1134
- "value": {
1135
- "sessions": [
1136
- {
1137
- "object": "seedance.visual_validation_session_history",
1138
- "session_id": "svv_abc123",
1139
- "callback_url": "https://yourapp.example.com/seedance/callback",
1140
- "language": "en",
1141
- "status": "bound",
1142
- "verification_status": "succeeded",
1143
- "result_code": "10000",
1144
- "group_id": "group-20260720123456-real1",
1145
- "group_name": "Creator A",
1146
- "error_message": null,
1147
- "created_at": 1782998400000,
1148
- "expires_at": 1782998520000,
1149
- "callback_received_at": 1782998450000,
1150
- "bound_at": 1782998460000
1151
- }
1152
- ],
1153
- "next_page_token": null
1154
- }
1155
- }
1156
- }
1157
- }
1158
- }
1159
- },
1160
- "400": {
1161
- "$ref": "#/components/responses/BadRequest"
1162
- },
1163
- "401": {
1164
- "$ref": "#/components/responses/Unauthorized"
1165
- },
1166
- "500": {
1167
- "$ref": "#/components/responses/ServerError"
1168
- },
1169
- "503": {
1170
- "$ref": "#/components/responses/MaterialLibraryUnavailable"
1171
- }
1172
- }
1173
- }
1174
- },
1175
- "/v1/videos/assets/visual-validation-results": {
1176
- "post": {
1177
- "tags": [
1178
- "Video"
1179
- ],
1180
- "summary": "Bind Seedance real-person verification result",
1181
- "description": "Binds a successful TokenLab real-person verification session to a TokenLab real-person material group. The request must include session_id and verification_token from the TokenLab callback redirect.",
1182
- "operationId": "bindSeedanceVisualValidationResult",
1183
- "requestBody": {
1184
- "required": true,
1185
- "content": {
1186
- "application/json": {
1187
- "schema": {
1188
- "$ref": "#/components/schemas/SeedanceVisualValidationResultBindRequest"
1189
- },
1190
- "examples": {
1191
- "bind_result": {
1192
- "summary": "Bind a successful verification result",
1193
- "value": {
1194
- "session_id": "svv_abc123",
1195
- "verification_token": "svvt_def456",
1196
- "group_name": "Creator A"
1197
- }
1198
- }
1199
- }
1200
- }
1201
- }
1202
- },
1203
- "responses": {
1204
- "200": {
1205
- "description": "Real-person material group bound",
1206
- "content": {
1207
- "application/json": {
1208
- "schema": {
1209
- "$ref": "#/components/schemas/SeedanceVisualValidationResult"
1210
- },
1211
- "examples": {
1212
- "bound_group": {
1213
- "summary": "Real-person material group bound",
1214
- "value": {
1215
- "object": "seedance.visual_validation_result",
1216
- "group_id": "group-20260720123456-real1",
1217
- "material_group": {
1218
- "id": "group-20260720123456-real1",
1219
- "library_type": "liveness_face",
1220
- "status": "ACTIVE",
1221
- "group_name": "Creator A"
1222
- }
1223
- }
1224
- }
1225
- }
1226
- }
1227
- }
1228
- },
1229
- "400": {
1230
- "$ref": "#/components/responses/BadRequest"
1231
- },
1232
- "401": {
1233
- "$ref": "#/components/responses/Unauthorized"
1234
- },
1235
- "409": {
1236
- "description": "Material group mapping conflict",
1237
- "content": {
1238
- "application/json": {
1239
- "schema": {
1240
- "$ref": "#/components/schemas/ApiError"
1241
- }
1242
- }
1243
- }
1244
- },
1245
- "500": {
1246
- "$ref": "#/components/responses/ServerError"
1247
- },
1248
- "503": {
1249
- "$ref": "#/components/responses/MaterialLibraryUnavailable"
1250
- }
1251
- }
1252
- }
1253
- },
1254
1028
  "/v1/videos/assets/{assetId}": {
1255
1029
  "get": {
1256
1030
  "tags": [
@@ -1985,7 +1759,8 @@
1985
1759
  "schema": {
1986
1760
  "type": "integer",
1987
1761
  "minimum": 1,
1988
- "maximum": 100
1762
+ "maximum": 1000,
1763
+ "default": 20
1989
1764
  },
1990
1765
  "description": "Maximum number of batches to return"
1991
1766
  }
@@ -2096,7 +1871,7 @@
2096
1871
  "content": {
2097
1872
  "application/json": {
2098
1873
  "schema": {
2099
- "$ref": "#/components/schemas/AnthropicMessageBatch"
1874
+ "$ref": "#/components/schemas/AnthropicDeletedMessageBatch"
2100
1875
  }
2101
1876
  }
2102
1877
  }
@@ -3548,8 +3323,19 @@
3548
3323
  "Files"
3549
3324
  ],
3550
3325
  "summary": "Upload file",
3551
- "description": "Uploads a JSONL batch input file or an image input file that can be referenced by file_id in supported image edit requests.",
3326
+ "description": "Uploads a TokenLab/OpenAI-compatible batch or image file. With anthropic-beta: files-api-2025-04-14, uploads an Anthropic Files resource without a purpose field and returns Anthropic file metadata.",
3552
3327
  "operationId": "uploadFile",
3328
+ "parameters": [
3329
+ {
3330
+ "name": "anthropic-beta",
3331
+ "in": "header",
3332
+ "required": false,
3333
+ "schema": {
3334
+ "type": "string"
3335
+ },
3336
+ "description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
3337
+ }
3338
+ ],
3553
3339
  "requestBody": {
3554
3340
  "required": true,
3555
3341
  "content": {
@@ -3557,8 +3343,7 @@
3557
3343
  "schema": {
3558
3344
  "type": "object",
3559
3345
  "required": [
3560
- "file",
3561
- "purpose"
3346
+ "file"
3562
3347
  ],
3563
3348
  "properties": {
3564
3349
  "file": {
@@ -3572,7 +3357,7 @@
3572
3357
  "user_data",
3573
3358
  "vision"
3574
3359
  ],
3575
- "description": "Use batch for Batch API JSONL files. Use user_data or vision for image files that will be referenced from image edits."
3360
+ "description": "Required in TokenLab/OpenAI-compatible mode: use batch for Batch API JSONL files, or user_data/vision for image edits. Omit in Anthropic Files mode."
3576
3361
  },
3577
3362
  "model": {
3578
3363
  "type": "string",
@@ -3589,7 +3374,14 @@
3589
3374
  "content": {
3590
3375
  "application/json": {
3591
3376
  "schema": {
3592
- "$ref": "#/components/schemas/FileObject"
3377
+ "oneOf": [
3378
+ {
3379
+ "$ref": "#/components/schemas/FileObject"
3380
+ },
3381
+ {
3382
+ "$ref": "#/components/schemas/AnthropicFileObject"
3383
+ }
3384
+ ]
3593
3385
  }
3594
3386
  }
3595
3387
  }
@@ -3618,7 +3410,8 @@
3618
3410
  "schema": {
3619
3411
  "type": "integer",
3620
3412
  "minimum": 1,
3621
- "maximum": 100
3413
+ "maximum": 1000,
3414
+ "default": 20
3622
3415
  }
3623
3416
  },
3624
3417
  {
@@ -3628,6 +3421,30 @@
3628
3421
  "type": "string"
3629
3422
  }
3630
3423
  },
3424
+ {
3425
+ "name": "after_id",
3426
+ "in": "query",
3427
+ "schema": {
3428
+ "type": "string"
3429
+ },
3430
+ "description": "Anthropic Files cursor. Return files after this public file id. Requires the Anthropic Files beta header and cannot be combined with before_id."
3431
+ },
3432
+ {
3433
+ "name": "before_id",
3434
+ "in": "query",
3435
+ "schema": {
3436
+ "type": "string"
3437
+ },
3438
+ "description": "Anthropic Files cursor. Return files before this public file id. Requires the Anthropic Files beta header and cannot be combined with after_id."
3439
+ },
3440
+ {
3441
+ "name": "scope_id",
3442
+ "in": "query",
3443
+ "schema": {
3444
+ "type": "string"
3445
+ },
3446
+ "description": "Reserved Anthropic Files scope cursor. TokenLab currently returns an explicit unsupported error rather than silently ignoring this value."
3447
+ },
3631
3448
  {
3632
3449
  "name": "purpose",
3633
3450
  "in": "query",
@@ -3641,6 +3458,15 @@
3641
3458
  ]
3642
3459
  },
3643
3460
  "description": "Optional file purpose filter. batch and batch_output cover Batch API files; user_data and vision cover TokenLab image/reference file bindings. Anthropic Files API mode is selected by Anthropic headers rather than this query parameter."
3461
+ },
3462
+ {
3463
+ "name": "anthropic-beta",
3464
+ "in": "header",
3465
+ "required": false,
3466
+ "schema": {
3467
+ "type": "string"
3468
+ },
3469
+ "description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
3644
3470
  }
3645
3471
  ],
3646
3472
  "responses": {
@@ -3649,7 +3475,14 @@
3649
3475
  "content": {
3650
3476
  "application/json": {
3651
3477
  "schema": {
3652
- "$ref": "#/components/schemas/FileListResponse"
3478
+ "oneOf": [
3479
+ {
3480
+ "$ref": "#/components/schemas/FileListResponse"
3481
+ },
3482
+ {
3483
+ "$ref": "#/components/schemas/AnthropicFileListResponse"
3484
+ }
3485
+ ]
3653
3486
  }
3654
3487
  }
3655
3488
  }
@@ -3675,6 +3508,15 @@
3675
3508
  "schema": {
3676
3509
  "type": "string"
3677
3510
  }
3511
+ },
3512
+ {
3513
+ "name": "anthropic-beta",
3514
+ "in": "header",
3515
+ "required": false,
3516
+ "schema": {
3517
+ "type": "string"
3518
+ },
3519
+ "description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
3678
3520
  }
3679
3521
  ],
3680
3522
  "responses": {
@@ -3683,7 +3525,14 @@
3683
3525
  "content": {
3684
3526
  "application/json": {
3685
3527
  "schema": {
3686
- "$ref": "#/components/schemas/FileObject"
3528
+ "oneOf": [
3529
+ {
3530
+ "$ref": "#/components/schemas/FileObject"
3531
+ },
3532
+ {
3533
+ "$ref": "#/components/schemas/AnthropicFileObject"
3534
+ }
3535
+ ]
3687
3536
  }
3688
3537
  }
3689
3538
  }
@@ -3709,6 +3558,15 @@
3709
3558
  "type": "string"
3710
3559
  },
3711
3560
  "description": "File ID returned by the Files API."
3561
+ },
3562
+ {
3563
+ "name": "anthropic-beta",
3564
+ "in": "header",
3565
+ "required": false,
3566
+ "schema": {
3567
+ "type": "string"
3568
+ },
3569
+ "description": "Include files-api-2025-04-14 to use Anthropic Files API mode."
3712
3570
  }
3713
3571
  ],
3714
3572
  "responses": {
@@ -3717,7 +3575,14 @@
3717
3575
  "content": {
3718
3576
  "application/json": {
3719
3577
  "schema": {
3720
- "$ref": "#/components/schemas/FileDeletedObject"
3578
+ "oneOf": [
3579
+ {
3580
+ "$ref": "#/components/schemas/FileDeletedObject"
3581
+ },
3582
+ {
3583
+ "$ref": "#/components/schemas/AnthropicDeletedFile"
3584
+ }
3585
+ ]
3721
3586
  }
3722
3587
  }
3723
3588
  }
@@ -5550,7 +5415,7 @@
5550
5415
  "Video"
5551
5416
  ],
5552
5417
  "summary": "Create Seedance material asset group",
5553
- "description": "Creates a TokenLab Seedance virtual-avatar material group. Real-person material groups are created by the real-person verification bind flow.",
5418
+ "description": "Creates a TokenLab Seedance virtual-avatar material group. Real-person material groups are created by GetVisualValidateResult after the H5 validation succeeds.",
5554
5419
  "operationId": "createSeedanceMaterialAssetGroup",
5555
5420
  "requestBody": {
5556
5421
  "required": true,
@@ -5627,7 +5492,7 @@
5627
5492
  "Video"
5628
5493
  ],
5629
5494
  "summary": "List Seedance material asset groups",
5630
- "description": "Lists Seedance material groups owned by the authenticated organization. Real-person groups are returned after a successful verification bind flow.",
5495
+ "description": "Lists Seedance material groups owned by the authenticated organization. Real-person groups are returned after GetVisualValidateResult succeeds.",
5631
5496
  "operationId": "listSeedanceMaterialAssetGroups",
5632
5497
  "parameters": [
5633
5498
  {
@@ -6327,7 +6192,7 @@
6327
6192
  "Seedance Volc Compatible"
6328
6193
  ],
6329
6194
  "summary": "Seedance Action dispatcher (POST)",
6330
- "description": "Dispatches Volc-style Action requests. The Action and Version fields may be in the query string or JSON body.",
6195
+ "description": "Dispatches Volc-style Action requests with TokenLab Bearer authentication. Real-person validation uses CreateVisualValidateSession and GetVisualValidateResult with Version=2024-01-01; these actions are POST-only.",
6331
6196
  "operationId": "dispatchVolcCompatibleSeedanceActionPost",
6332
6197
  "parameters": [
6333
6198
  {
@@ -6340,7 +6205,9 @@
6340
6205
  "CreateContentsGenerationsTasks",
6341
6206
  "GetContentsGenerationsTask",
6342
6207
  "ListContentsGenerationsTasks",
6343
- "DeleteContentsGenerationsTasks"
6208
+ "DeleteContentsGenerationsTasks",
6209
+ "CreateVisualValidateSession",
6210
+ "GetVisualValidateResult"
6344
6211
  ]
6345
6212
  }
6346
6213
  },
@@ -6359,15 +6226,25 @@
6359
6226
  "content": {
6360
6227
  "application/json": {
6361
6228
  "schema": {
6362
- "type": "object",
6363
- "additionalProperties": true
6229
+ "anyOf": [
6230
+ {
6231
+ "$ref": "#/components/schemas/VolcCreateVisualValidateSessionRequest"
6232
+ },
6233
+ {
6234
+ "$ref": "#/components/schemas/VolcGetVisualValidateResultRequest"
6235
+ },
6236
+ {
6237
+ "type": "object",
6238
+ "additionalProperties": true
6239
+ }
6240
+ ]
6364
6241
  }
6365
6242
  }
6366
6243
  }
6367
6244
  },
6368
6245
  "responses": {
6369
6246
  "200": {
6370
- "description": "Action response. Create/Get/List actions return JSON; DeleteContentsGenerationsTasks returns an empty body.",
6247
+ "description": "Action response. Content-generation actions return task JSON; real-person validation actions return the official ResponseMetadata + Result envelope.",
6371
6248
  "content": {
6372
6249
  "application/json": {
6373
6250
  "schema": {
@@ -6380,8 +6257,14 @@
6380
6257
  },
6381
6258
  {
6382
6259
  "$ref": "#/components/schemas/VolcSeedanceTaskListResponse"
6383
- }
6384
- ]
6260
+ },
6261
+ {
6262
+ "$ref": "#/components/schemas/VolcCreateVisualValidateSessionResponse"
6263
+ },
6264
+ {
6265
+ "$ref": "#/components/schemas/VolcGetVisualValidateResultResponse"
6266
+ }
6267
+ ]
6385
6268
  }
6386
6269
  }
6387
6270
  }
@@ -6391,7 +6274,14 @@
6391
6274
  "content": {
6392
6275
  "application/json": {
6393
6276
  "schema": {
6394
- "$ref": "#/components/schemas/VolcSeedanceError"
6277
+ "oneOf": [
6278
+ {
6279
+ "$ref": "#/components/schemas/VolcSeedanceError"
6280
+ },
6281
+ {
6282
+ "$ref": "#/components/schemas/VolcVisualValidationError"
6283
+ }
6284
+ ]
6395
6285
  }
6396
6286
  }
6397
6287
  }
@@ -6401,7 +6291,99 @@
6401
6291
  "content": {
6402
6292
  "application/json": {
6403
6293
  "schema": {
6404
- "$ref": "#/components/schemas/VolcSeedanceError"
6294
+ "oneOf": [
6295
+ {
6296
+ "$ref": "#/components/schemas/VolcSeedanceError"
6297
+ },
6298
+ {
6299
+ "$ref": "#/components/schemas/VolcVisualValidationError"
6300
+ }
6301
+ ]
6302
+ }
6303
+ }
6304
+ }
6305
+ },
6306
+ "403": {
6307
+ "description": "Access denied",
6308
+ "content": {
6309
+ "application/json": {
6310
+ "schema": {
6311
+ "oneOf": [
6312
+ {
6313
+ "$ref": "#/components/schemas/VolcSeedanceError"
6314
+ },
6315
+ {
6316
+ "$ref": "#/components/schemas/VolcVisualValidationError"
6317
+ }
6318
+ ]
6319
+ }
6320
+ }
6321
+ }
6322
+ },
6323
+ "405": {
6324
+ "description": "Action does not support this HTTP method",
6325
+ "content": {
6326
+ "application/json": {
6327
+ "schema": {
6328
+ "oneOf": [
6329
+ {
6330
+ "$ref": "#/components/schemas/VolcSeedanceError"
6331
+ },
6332
+ {
6333
+ "$ref": "#/components/schemas/VolcVisualValidationError"
6334
+ }
6335
+ ]
6336
+ }
6337
+ }
6338
+ }
6339
+ },
6340
+ "409": {
6341
+ "description": "Material group mapping conflict",
6342
+ "content": {
6343
+ "application/json": {
6344
+ "schema": {
6345
+ "oneOf": [
6346
+ {
6347
+ "$ref": "#/components/schemas/VolcSeedanceError"
6348
+ },
6349
+ {
6350
+ "$ref": "#/components/schemas/VolcVisualValidationError"
6351
+ }
6352
+ ]
6353
+ }
6354
+ }
6355
+ }
6356
+ },
6357
+ "422": {
6358
+ "description": "Real-person validation is unavailable for the current account configuration",
6359
+ "content": {
6360
+ "application/json": {
6361
+ "schema": {
6362
+ "oneOf": [
6363
+ {
6364
+ "$ref": "#/components/schemas/VolcSeedanceError"
6365
+ },
6366
+ {
6367
+ "$ref": "#/components/schemas/VolcVisualValidationError"
6368
+ }
6369
+ ]
6370
+ }
6371
+ }
6372
+ }
6373
+ },
6374
+ "429": {
6375
+ "description": "Rate limit exceeded",
6376
+ "content": {
6377
+ "application/json": {
6378
+ "schema": {
6379
+ "oneOf": [
6380
+ {
6381
+ "$ref": "#/components/schemas/VolcSeedanceError"
6382
+ },
6383
+ {
6384
+ "$ref": "#/components/schemas/VolcVisualValidationError"
6385
+ }
6386
+ ]
6405
6387
  }
6406
6388
  }
6407
6389
  }
@@ -6411,7 +6393,31 @@
6411
6393
  "content": {
6412
6394
  "application/json": {
6413
6395
  "schema": {
6414
- "$ref": "#/components/schemas/VolcSeedanceError"
6396
+ "oneOf": [
6397
+ {
6398
+ "$ref": "#/components/schemas/VolcSeedanceError"
6399
+ },
6400
+ {
6401
+ "$ref": "#/components/schemas/VolcVisualValidationError"
6402
+ }
6403
+ ]
6404
+ }
6405
+ }
6406
+ }
6407
+ },
6408
+ "503": {
6409
+ "description": "Real-person validation service unavailable",
6410
+ "content": {
6411
+ "application/json": {
6412
+ "schema": {
6413
+ "oneOf": [
6414
+ {
6415
+ "$ref": "#/components/schemas/VolcSeedanceError"
6416
+ },
6417
+ {
6418
+ "$ref": "#/components/schemas/VolcVisualValidationError"
6419
+ }
6420
+ ]
6415
6421
  }
6416
6422
  }
6417
6423
  }
@@ -7861,7 +7867,7 @@
7861
7867
  },
7862
7868
  "material_asset_id": {
7863
7869
  "type": "string",
7864
- "description": "TokenLab Seedance material asset ID returned by /v1/videos/assets, by automatic image preparation, or by a real-person verification bind flow. Use it after the asset is ACTIVE with Seedance models that can use the TokenLab material library. The asset must belong to the current account. This field is a generic reference input; to assign first-frame, last-frame, or reference-image semantics explicitly, put asset://<material_asset_id> in start_image, end_image, or reference_images."
7870
+ "description": "TokenLab Seedance material asset ID returned by /v1/videos/assets, by automatic image preparation, or from a real-person group returned by GetVisualValidateResult. Use it after the asset is ACTIVE with Seedance models that can use the TokenLab material library. The asset must belong to the current account. This field is a generic reference input; to assign first-frame, last-frame, or reference-image semantics explicitly, put asset://<material_asset_id> in start_image, end_image, or reference_images."
7865
7871
  },
7866
7872
  "material_asset_ids": {
7867
7873
  "type": "array",
@@ -8642,6 +8648,7 @@
8642
8648
  "unauthorized",
8643
8649
  "invalid_api_key",
8644
8650
  "expired_api_key",
8651
+ "permission_error",
8645
8652
  "insufficient_balance",
8646
8653
  "quota_exceeded",
8647
8654
  "invalid_request_error",
@@ -10217,6 +10224,118 @@
10217
10224
  }
10218
10225
  }
10219
10226
  },
10227
+ "AnthropicFileObject": {
10228
+ "type": "object",
10229
+ "required": [
10230
+ "id",
10231
+ "type",
10232
+ "filename",
10233
+ "mime_type",
10234
+ "size_bytes",
10235
+ "created_at"
10236
+ ],
10237
+ "properties": {
10238
+ "id": {
10239
+ "type": "string",
10240
+ "example": "file_01ABC123"
10241
+ },
10242
+ "type": {
10243
+ "type": "string",
10244
+ "enum": [
10245
+ "file"
10246
+ ]
10247
+ },
10248
+ "filename": {
10249
+ "type": "string"
10250
+ },
10251
+ "mime_type": {
10252
+ "type": "string"
10253
+ },
10254
+ "size_bytes": {
10255
+ "type": "integer",
10256
+ "minimum": 0
10257
+ },
10258
+ "created_at": {
10259
+ "type": "string",
10260
+ "format": "date-time"
10261
+ },
10262
+ "downloadable": {
10263
+ "type": "boolean"
10264
+ },
10265
+ "scope": {
10266
+ "type": "object",
10267
+ "nullable": true,
10268
+ "required": [
10269
+ "id",
10270
+ "type"
10271
+ ],
10272
+ "properties": {
10273
+ "id": {
10274
+ "type": "string"
10275
+ },
10276
+ "type": {
10277
+ "type": "string",
10278
+ "enum": [
10279
+ "session"
10280
+ ]
10281
+ }
10282
+ },
10283
+ "additionalProperties": true
10284
+ }
10285
+ },
10286
+ "additionalProperties": true
10287
+ },
10288
+ "AnthropicFileListResponse": {
10289
+ "type": "object",
10290
+ "required": [
10291
+ "data",
10292
+ "first_id",
10293
+ "last_id",
10294
+ "has_more"
10295
+ ],
10296
+ "properties": {
10297
+ "data": {
10298
+ "type": "array",
10299
+ "items": {
10300
+ "$ref": "#/components/schemas/AnthropicFileObject"
10301
+ }
10302
+ },
10303
+ "first_id": {
10304
+ "type": [
10305
+ "string",
10306
+ "null"
10307
+ ]
10308
+ },
10309
+ "last_id": {
10310
+ "type": [
10311
+ "string",
10312
+ "null"
10313
+ ]
10314
+ },
10315
+ "has_more": {
10316
+ "type": "boolean"
10317
+ }
10318
+ },
10319
+ "additionalProperties": true
10320
+ },
10321
+ "AnthropicDeletedFile": {
10322
+ "type": "object",
10323
+ "required": [
10324
+ "id"
10325
+ ],
10326
+ "properties": {
10327
+ "id": {
10328
+ "type": "string"
10329
+ },
10330
+ "type": {
10331
+ "type": "string",
10332
+ "enum": [
10333
+ "file_deleted"
10334
+ ]
10335
+ }
10336
+ },
10337
+ "additionalProperties": true
10338
+ },
10220
10339
  "BatchRequestCounts": {
10221
10340
  "type": "object",
10222
10341
  "required": [
@@ -10826,18 +10945,26 @@
10826
10945
  "$ref": "#/components/schemas/AnthropicMessagesRequest"
10827
10946
  }
10828
10947
  },
10829
- "additionalProperties": false
10948
+ "additionalProperties": true
10830
10949
  }
10831
10950
  }
10832
10951
  },
10833
- "additionalProperties": false
10952
+ "additionalProperties": true
10834
10953
  },
10835
10954
  "AnthropicMessageBatch": {
10836
10955
  "type": "object",
10837
10956
  "description": "Anthropic-compatible message batch object relayed from the provider.",
10838
10957
  "required": [
10839
10958
  "id",
10840
- "type"
10959
+ "type",
10960
+ "processing_status",
10961
+ "request_counts",
10962
+ "ended_at",
10963
+ "created_at",
10964
+ "expires_at",
10965
+ "cancel_initiated_at",
10966
+ "archived_at",
10967
+ "results_url"
10841
10968
  ],
10842
10969
  "properties": {
10843
10970
  "id": {
@@ -10874,6 +11001,16 @@
10874
11001
  "type": "string",
10875
11002
  "description": "ISO timestamp when the batch expires, when available"
10876
11003
  },
11004
+ "cancel_initiated_at": {
11005
+ "type": "string",
11006
+ "nullable": true,
11007
+ "description": "ISO timestamp when cancellation was initiated, when available"
11008
+ },
11009
+ "archived_at": {
11010
+ "type": "string",
11011
+ "nullable": true,
11012
+ "description": "ISO timestamp when the batch was archived, when available"
11013
+ },
10877
11014
  "results_url": {
10878
11015
  "type": "string",
10879
11016
  "nullable": true,
@@ -10882,8 +11019,34 @@
10882
11019
  },
10883
11020
  "additionalProperties": true
10884
11021
  },
11022
+ "AnthropicDeletedMessageBatch": {
11023
+ "type": "object",
11024
+ "required": [
11025
+ "id",
11026
+ "type"
11027
+ ],
11028
+ "properties": {
11029
+ "id": {
11030
+ "type": "string",
11031
+ "description": "Deleted Message Batch identifier"
11032
+ },
11033
+ "type": {
11034
+ "type": "string",
11035
+ "enum": [
11036
+ "message_batch_deleted"
11037
+ ]
11038
+ }
11039
+ },
11040
+ "additionalProperties": true
11041
+ },
10885
11042
  "AnthropicMessageBatchListResponse": {
10886
11043
  "type": "object",
11044
+ "required": [
11045
+ "data",
11046
+ "has_more",
11047
+ "first_id",
11048
+ "last_id"
11049
+ ],
10887
11050
  "properties": {
10888
11051
  "data": {
10889
11052
  "type": "array",
@@ -11618,7 +11781,7 @@
11618
11781
  "liveness_face"
11619
11782
  ],
11620
11783
  "default": "aigc_avatar",
11621
- "description": "Material library class. Direct creation supports aigc_avatar. Create liveness_face groups through real-person material verification."
11784
+ "description": "Material library class. Direct creation supports aigc_avatar. Create liveness_face groups through CreateVisualValidateSession followed by GetVisualValidateResult."
11622
11785
  },
11623
11786
  "metadata": {
11624
11787
  "type": "object",
@@ -12098,265 +12261,19 @@
12098
12261
  }
12099
12262
  ]
12100
12263
  },
12101
- "SeedanceVisualValidationSessionCreateRequest": {
12264
+ "FileDeletedObject": {
12102
12265
  "type": "object",
12103
12266
  "required": [
12104
- "callback_url"
12267
+ "id",
12268
+ "object",
12269
+ "deleted"
12105
12270
  ],
12106
- "additionalProperties": false,
12107
12271
  "properties": {
12108
- "callback_url": {
12272
+ "id": {
12109
12273
  "type": "string",
12110
- "format": "uri",
12111
- "description": "Public HTTPS URL that TokenLab redirects to after the H5 verification flow. TokenLab appends session_id, verification_token, verification_status, and result_code."
12274
+ "example": "file-abc123"
12112
12275
  },
12113
- "language": {
12114
- "type": "string",
12115
- "enum": [
12116
- "zh",
12117
- "en",
12118
- "zh-Hant"
12119
- ],
12120
- "default": "zh",
12121
- "description": "Language parameter appended to the returned H5 link."
12122
- }
12123
- }
12124
- },
12125
- "SeedanceVisualValidationSession": {
12126
- "type": "object",
12127
- "required": [
12128
- "object",
12129
- "session_id",
12130
- "h5_link",
12131
- "callback_url",
12132
- "expires_in",
12133
- "language"
12134
- ],
12135
- "properties": {
12136
- "object": {
12137
- "type": "string",
12138
- "enum": [
12139
- "seedance.visual_validation_session"
12140
- ]
12141
- },
12142
- "session_id": {
12143
- "type": "string",
12144
- "description": "TokenLab real-person verification session ID."
12145
- },
12146
- "h5_link": {
12147
- "type": "string",
12148
- "format": "uri",
12149
- "description": "Short-lived H5 verification link for the end user. Valid for 120 seconds."
12150
- },
12151
- "callback_url": {
12152
- "type": "string",
12153
- "format": "uri",
12154
- "description": "Customer callback URL originally supplied in the request."
12155
- },
12156
- "language": {
12157
- "type": "string",
12158
- "enum": [
12159
- "zh",
12160
- "en",
12161
- "zh-Hant"
12162
- ]
12163
- },
12164
- "expires_in": {
12165
- "type": "integer",
12166
- "description": "Validity window in seconds for the session and H5 link."
12167
- }
12168
- }
12169
- },
12170
- "SeedanceVisualValidationResultBindRequest": {
12171
- "type": "object",
12172
- "required": [
12173
- "session_id",
12174
- "verification_token"
12175
- ],
12176
- "additionalProperties": false,
12177
- "properties": {
12178
- "session_id": {
12179
- "type": "string",
12180
- "description": "TokenLab real-person verification session ID."
12181
- },
12182
- "verification_token": {
12183
- "type": "string",
12184
- "description": "TokenLab opaque token from the TokenLab callback redirect."
12185
- },
12186
- "group_name": {
12187
- "type": "string",
12188
- "minLength": 1,
12189
- "maxLength": 128,
12190
- "description": "Optional TokenLab display name for the bound real-person material group."
12191
- },
12192
- "description": {
12193
- "type": "string",
12194
- "nullable": true,
12195
- "maxLength": 500
12196
- },
12197
- "metadata": {
12198
- "type": "object",
12199
- "nullable": true,
12200
- "additionalProperties": true
12201
- }
12202
- }
12203
- },
12204
- "SeedanceVisualValidationResult": {
12205
- "type": "object",
12206
- "required": [
12207
- "object",
12208
- "group_id",
12209
- "material_group"
12210
- ],
12211
- "properties": {
12212
- "object": {
12213
- "type": "string",
12214
- "enum": [
12215
- "seedance.visual_validation_result"
12216
- ]
12217
- },
12218
- "group_id": {
12219
- "type": "string",
12220
- "description": "TokenLab material group ID to pass as group_id when creating real-person material assets."
12221
- },
12222
- "material_group": {
12223
- "$ref": "#/components/schemas/SeedanceMaterialAssetGroup"
12224
- }
12225
- }
12226
- },
12227
- "SeedanceVisualValidationSessionHistory": {
12228
- "type": "object",
12229
- "required": [
12230
- "object",
12231
- "session_id",
12232
- "callback_url",
12233
- "language",
12234
- "status",
12235
- "created_at",
12236
- "expires_at"
12237
- ],
12238
- "properties": {
12239
- "object": {
12240
- "type": "string",
12241
- "enum": [
12242
- "seedance.visual_validation_session_history"
12243
- ]
12244
- },
12245
- "session_id": {
12246
- "type": "string",
12247
- "description": "TokenLab real-person verification session ID."
12248
- },
12249
- "callback_url": {
12250
- "type": "string",
12251
- "format": "uri",
12252
- "description": "Customer callback URL originally supplied when the session was created."
12253
- },
12254
- "language": {
12255
- "type": "string",
12256
- "enum": [
12257
- "zh",
12258
- "en",
12259
- "zh-Hant"
12260
- ]
12261
- },
12262
- "status": {
12263
- "type": "string",
12264
- "enum": [
12265
- "created",
12266
- "callback_succeeded",
12267
- "callback_failed",
12268
- "bound",
12269
- "expired"
12270
- ],
12271
- "description": "TokenLab history status. A created or callback_succeeded session is reported as expired after the 120-second session window if it was not bound."
12272
- },
12273
- "result_code": {
12274
- "type": "string",
12275
- "nullable": true,
12276
- "description": "Neutral result code forwarded by TokenLab callback, when available."
12277
- },
12278
- "verification_status": {
12279
- "type": "string",
12280
- "nullable": true,
12281
- "enum": [
12282
- "succeeded",
12283
- "failed",
12284
- null
12285
- ],
12286
- "description": "Neutral callback status, when TokenLab has received the H5 callback."
12287
- },
12288
- "group_id": {
12289
- "type": "string",
12290
- "nullable": true,
12291
- "description": "TokenLab material group ID after the verification result has been bound."
12292
- },
12293
- "group_name": {
12294
- "type": "string",
12295
- "nullable": true,
12296
- "description": "TokenLab material group display name after binding, when available."
12297
- },
12298
- "error_message": {
12299
- "type": "string",
12300
- "nullable": true,
12301
- "description": "Neutral failure description, when available."
12302
- },
12303
- "created_at": {
12304
- "type": "integer",
12305
- "format": "int64",
12306
- "description": "Unix timestamp in milliseconds."
12307
- },
12308
- "expires_at": {
12309
- "type": "integer",
12310
- "format": "int64",
12311
- "description": "Unix timestamp in milliseconds for the 120-second binding window."
12312
- },
12313
- "callback_received_at": {
12314
- "type": "integer",
12315
- "format": "int64",
12316
- "nullable": true,
12317
- "description": "Unix timestamp in milliseconds when TokenLab received the callback."
12318
- },
12319
- "bound_at": {
12320
- "type": "integer",
12321
- "format": "int64",
12322
- "nullable": true,
12323
- "description": "Unix timestamp in milliseconds when TokenLab bound the material group."
12324
- }
12325
- },
12326
- "additionalProperties": false
12327
- },
12328
- "SeedanceVisualValidationHistoryList": {
12329
- "type": "object",
12330
- "required": [
12331
- "sessions"
12332
- ],
12333
- "properties": {
12334
- "sessions": {
12335
- "type": "array",
12336
- "items": {
12337
- "$ref": "#/components/schemas/SeedanceVisualValidationSessionHistory"
12338
- }
12339
- },
12340
- "next_page_token": {
12341
- "type": "string",
12342
- "nullable": true
12343
- }
12344
- },
12345
- "additionalProperties": false
12346
- },
12347
- "FileDeletedObject": {
12348
- "type": "object",
12349
- "required": [
12350
- "id",
12351
- "object",
12352
- "deleted"
12353
- ],
12354
- "properties": {
12355
- "id": {
12356
- "type": "string",
12357
- "example": "file-abc123"
12358
- },
12359
- "object": {
12276
+ "object": {
12360
12277
  "type": "string",
12361
12278
  "enum": [
12362
12279
  "file"
@@ -12832,6 +12749,220 @@
12832
12749
  }
12833
12750
  },
12834
12751
  "additionalProperties": false
12752
+ },
12753
+ "VolcVisualValidationResponseMetadata": {
12754
+ "type": "object",
12755
+ "required": [
12756
+ "RequestId",
12757
+ "Action",
12758
+ "Version",
12759
+ "Service",
12760
+ "Region"
12761
+ ],
12762
+ "properties": {
12763
+ "RequestId": {
12764
+ "type": "string",
12765
+ "description": "TokenLab request identifier."
12766
+ },
12767
+ "Action": {
12768
+ "type": "string",
12769
+ "enum": [
12770
+ "CreateVisualValidateSession",
12771
+ "GetVisualValidateResult"
12772
+ ]
12773
+ },
12774
+ "Version": {
12775
+ "type": "string",
12776
+ "enum": [
12777
+ "2024-01-01"
12778
+ ]
12779
+ },
12780
+ "Service": {
12781
+ "type": "string",
12782
+ "enum": [
12783
+ "ark"
12784
+ ]
12785
+ },
12786
+ "Region": {
12787
+ "type": "string",
12788
+ "enum": [
12789
+ "cn-beijing"
12790
+ ]
12791
+ }
12792
+ },
12793
+ "additionalProperties": false
12794
+ },
12795
+ "VolcCreateVisualValidateSessionRequest": {
12796
+ "type": "object",
12797
+ "required": [
12798
+ "CallbackURL"
12799
+ ],
12800
+ "properties": {
12801
+ "CallbackURL": {
12802
+ "type": "string",
12803
+ "format": "uri",
12804
+ "description": "Public HTTPS URL opened by the H5 flow after validation. Official callback query names are preserved."
12805
+ },
12806
+ "ProjectName": {
12807
+ "type": "string",
12808
+ "default": "default",
12809
+ "description": "Case-sensitive project name. Omit to use default."
12810
+ }
12811
+ },
12812
+ "additionalProperties": false
12813
+ },
12814
+ "VolcGetVisualValidateResultRequest": {
12815
+ "type": "object",
12816
+ "required": [
12817
+ "BytedToken"
12818
+ ],
12819
+ "properties": {
12820
+ "BytedToken": {
12821
+ "type": "string",
12822
+ "description": "Opaque token returned by CreateVisualValidateSession. It is valid for 30 minutes and scoped to the authenticated organization, actor, and ProjectName."
12823
+ },
12824
+ "ProjectName": {
12825
+ "type": "string",
12826
+ "default": "default",
12827
+ "description": "Must match the ProjectName used to create the token."
12828
+ }
12829
+ },
12830
+ "additionalProperties": false
12831
+ },
12832
+ "VolcCreateVisualValidateSessionResponse": {
12833
+ "type": "object",
12834
+ "required": [
12835
+ "ResponseMetadata",
12836
+ "Result"
12837
+ ],
12838
+ "properties": {
12839
+ "ResponseMetadata": {
12840
+ "$ref": "#/components/schemas/VolcVisualValidationResponseMetadata"
12841
+ },
12842
+ "Result": {
12843
+ "type": "object",
12844
+ "required": [
12845
+ "BytedToken",
12846
+ "H5Link",
12847
+ "CallbackURL"
12848
+ ],
12849
+ "properties": {
12850
+ "BytedToken": {
12851
+ "type": "string"
12852
+ },
12853
+ "H5Link": {
12854
+ "type": "string",
12855
+ "format": "uri"
12856
+ },
12857
+ "CallbackURL": {
12858
+ "type": "string",
12859
+ "format": "uri"
12860
+ }
12861
+ },
12862
+ "additionalProperties": false
12863
+ }
12864
+ },
12865
+ "additionalProperties": false
12866
+ },
12867
+ "VolcGetVisualValidateResultResponse": {
12868
+ "type": "object",
12869
+ "required": [
12870
+ "ResponseMetadata",
12871
+ "Result"
12872
+ ],
12873
+ "properties": {
12874
+ "ResponseMetadata": {
12875
+ "$ref": "#/components/schemas/VolcVisualValidationResponseMetadata"
12876
+ },
12877
+ "Result": {
12878
+ "type": "object",
12879
+ "required": [
12880
+ "GroupId"
12881
+ ],
12882
+ "properties": {
12883
+ "GroupId": {
12884
+ "type": "string",
12885
+ "pattern": "^group-[0-9]{14}-[a-z0-9]{5}$",
12886
+ "description": "TokenLab-mapped real-person Asset Group ID returned after successful validation."
12887
+ }
12888
+ },
12889
+ "additionalProperties": false
12890
+ }
12891
+ },
12892
+ "additionalProperties": false
12893
+ },
12894
+ "VolcVisualValidationError": {
12895
+ "type": "object",
12896
+ "required": [
12897
+ "ResponseMetadata"
12898
+ ],
12899
+ "properties": {
12900
+ "ResponseMetadata": {
12901
+ "type": "object",
12902
+ "required": [
12903
+ "RequestId",
12904
+ "Action",
12905
+ "Version",
12906
+ "Service",
12907
+ "Region",
12908
+ "Error"
12909
+ ],
12910
+ "properties": {
12911
+ "RequestId": {
12912
+ "type": "string"
12913
+ },
12914
+ "Action": {
12915
+ "type": "string"
12916
+ },
12917
+ "Version": {
12918
+ "type": "string"
12919
+ },
12920
+ "Service": {
12921
+ "type": "string",
12922
+ "enum": [
12923
+ "ark"
12924
+ ]
12925
+ },
12926
+ "Region": {
12927
+ "type": "string",
12928
+ "enum": [
12929
+ "cn-beijing"
12930
+ ]
12931
+ },
12932
+ "Error": {
12933
+ "type": "object",
12934
+ "required": [
12935
+ "Code",
12936
+ "Message"
12937
+ ],
12938
+ "properties": {
12939
+ "CodeN": {
12940
+ "type": "integer"
12941
+ },
12942
+ "Code": {
12943
+ "type": "string"
12944
+ },
12945
+ "Message": {
12946
+ "type": "string"
12947
+ }
12948
+ },
12949
+ "additionalProperties": false
12950
+ }
12951
+ },
12952
+ "additionalProperties": false
12953
+ }
12954
+ },
12955
+ "additionalProperties": false
12956
+ },
12957
+ "VolcSeedanceActionError": {
12958
+ "oneOf": [
12959
+ {
12960
+ "$ref": "#/components/schemas/VolcSeedanceError"
12961
+ },
12962
+ {
12963
+ "$ref": "#/components/schemas/VolcVisualValidationError"
12964
+ }
12965
+ ]
12835
12966
  }
12836
12967
  },
12837
12968
  "responses": {