@tokenlabai/mcp-server 0.6.21 → 0.6.24

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.
@@ -68,6 +68,13 @@
68
68
  {
69
69
  "name": "Seedance Volc Compatible",
70
70
  "description": "Seedance 2.0 Volc-style compatibility endpoints"
71
+ },
72
+ {
73
+ "name": "Decisions"
74
+ },
75
+ {
76
+ "name": "Webhooks",
77
+ "description": "Workspace webhook management with Management Tokens (mt-...). Inference API keys do not grant management access."
71
78
  }
72
79
  ],
73
80
  "security": [
@@ -1534,7 +1541,8 @@
1534
1541
  "stt",
1535
1542
  "rerank",
1536
1543
  "3d",
1537
- "music"
1544
+ "music",
1545
+ "decision"
1538
1546
  ]
1539
1547
  }
1540
1548
  },
@@ -3728,7 +3736,8 @@
3728
3736
  "translation",
3729
3737
  "music",
3730
3738
  "3d",
3731
- "realtime"
3739
+ "realtime",
3740
+ "systemone"
3732
3741
  ]
3733
3742
  },
3734
3743
  "description": "Filter by public request scene."
@@ -3836,7 +3845,8 @@
3836
3845
  "translation",
3837
3846
  "music",
3838
3847
  "3d",
3839
- "realtime"
3848
+ "realtime",
3849
+ "systemone"
3840
3850
  ]
3841
3851
  },
3842
3852
  "description": "Filter by public request scene."
@@ -7234,190 +7244,1205 @@
7234
7244
  }
7235
7245
  }
7236
7246
  }
7237
- }
7238
- },
7239
- "components": {
7240
- "securitySchemes": {
7241
- "BearerAuth": {
7242
- "type": "http",
7243
- "scheme": "bearer",
7244
- "bearerFormat": "API Key",
7245
- "description": "API Key authentication. Create or manage API keys in [Dashboard > API > API Keys](https://tokenlab.sh/dashboard/api?tab=keys)."
7246
- },
7247
- "ManagementTokenAuth": {
7248
- "type": "http",
7249
- "scheme": "bearer",
7250
- "bearerFormat": "Management Token",
7251
- "description": "Management token authentication. Create or manage Management Tokens in [Dashboard > API > Management Tokens](https://tokenlab.sh/dashboard/api?tab=tokens)."
7252
- }
7253
7247
  },
7254
- "schemas": {
7255
- "ChatCompletionRequest": {
7256
- "type": "object",
7257
- "required": [
7258
- "model",
7259
- "messages"
7248
+ "/v1/systemone": {
7249
+ "post": {
7250
+ "tags": [
7251
+ "Decisions"
7260
7252
  ],
7261
- "properties": {
7262
- "model": {
7263
- "type": "string",
7264
- "description": "ID of the model to use (e.g., gpt-5.4, claude-sonnet-4-6)",
7265
- "example": "gpt-4o"
7266
- },
7267
- "messages": {
7268
- "type": "array",
7269
- "description": "A list of messages comprising the conversation",
7270
- "items": {
7271
- "$ref": "#/components/schemas/ChatMessage"
7272
- },
7273
- "minItems": 1
7274
- },
7275
- "temperature": {
7276
- "type": "number",
7277
- "minimum": 0,
7278
- "maximum": 2,
7279
- "default": 1,
7280
- "description": "Sampling temperature (0-2)"
7281
- },
7282
- "top_p": {
7283
- "type": "number",
7284
- "minimum": 0,
7285
- "maximum": 1,
7286
- "default": 1,
7287
- "description": "Nucleus sampling probability"
7288
- },
7289
- "n": {
7290
- "type": "integer",
7291
- "minimum": 1,
7292
- "maximum": 128,
7293
- "default": 1,
7294
- "description": "Number of completions to generate"
7295
- },
7296
- "stream": {
7297
- "type": "boolean",
7298
- "default": false,
7299
- "description": "If true, returns a stream of events"
7300
- },
7301
- "stop": {
7302
- "oneOf": [
7303
- {
7304
- "type": "string"
7305
- },
7306
- {
7307
- "type": "array",
7308
- "items": {
7309
- "type": "string"
7310
- },
7311
- "maxItems": 4
7312
- }
7313
- ],
7314
- "description": "Stop sequences"
7315
- },
7316
- "max_tokens": {
7317
- "type": "integer",
7318
- "minimum": 1,
7319
- "description": "Maximum number of tokens to generate"
7320
- },
7321
- "max_completion_tokens": {
7322
- "type": "integer",
7323
- "minimum": 1,
7324
- "description": "Maximum completion tokens for newer reasoning-enabled model families"
7325
- },
7326
- "presence_penalty": {
7327
- "type": "number",
7328
- "minimum": -2,
7329
- "maximum": 2,
7330
- "default": 0,
7331
- "description": "Presence penalty (-2 to 2)"
7332
- },
7333
- "frequency_penalty": {
7334
- "type": "number",
7335
- "minimum": -2,
7336
- "maximum": 2,
7337
- "default": 0,
7338
- "description": "Frequency penalty (-2 to 2)"
7339
- },
7340
- "tools": {
7341
- "type": "array",
7342
- "description": "List of tools the model may call",
7343
- "items": {
7344
- "$ref": "#/components/schemas/Tool"
7345
- }
7346
- },
7347
- "functions": {
7348
- "type": "array",
7349
- "description": "Deprecated function definitions retained by the official Chat Completions contract.",
7350
- "items": {
7351
- "type": "object",
7352
- "additionalProperties": true
7353
- }
7354
- },
7355
- "function_call": {
7356
- "oneOf": [
7357
- {
7358
- "type": "string"
7359
- },
7360
- {
7361
- "type": "object",
7362
- "additionalProperties": true
7363
- }
7364
- ],
7365
- "description": "Deprecated function-call selection retained by the official Chat Completions contract."
7366
- },
7367
- "tool_choice": {
7368
- "oneOf": [
7369
- {
7370
- "type": "string",
7371
- "enum": [
7372
- "none",
7373
- "auto",
7374
- "required"
7375
- ]
7376
- },
7377
- {
7253
+ "summary": "Evaluate decision questions",
7254
+ "description": "Evaluate state with named probability, choice, and ordered score questions. Synchronous JSON only. Token usage is reported when available; zero-priced output tokens are still included.",
7255
+ "operationId": "createSystemOneDecision",
7256
+ "parameters": [
7257
+ {
7258
+ "$ref": "#/components/parameters/DeliveryPolicy"
7259
+ }
7260
+ ],
7261
+ "requestBody": {
7262
+ "required": true,
7263
+ "content": {
7264
+ "application/json": {
7265
+ "schema": {
7378
7266
  "type": "object",
7267
+ "required": [
7268
+ "model",
7269
+ "state",
7270
+ "questions"
7271
+ ],
7379
7272
  "properties": {
7380
- "type": {
7273
+ "model": {
7381
7274
  "type": "string",
7382
- "enum": [
7383
- "function"
7384
- ]
7275
+ "minLength": 1
7385
7276
  },
7386
- "function": {
7387
- "type": "object",
7388
- "properties": {
7389
- "name": {
7277
+ "state": {
7278
+ "oneOf": [
7279
+ {
7390
7280
  "type": "string"
7281
+ },
7282
+ {
7283
+ "type": "object",
7284
+ "additionalProperties": true
7285
+ },
7286
+ {
7287
+ "type": "array",
7288
+ "items": {}
7391
7289
  }
7392
- },
7393
- "required": [
7394
- "name"
7395
7290
  ]
7291
+ },
7292
+ "questions": {
7293
+ "type": "object",
7294
+ "minProperties": 1,
7295
+ "additionalProperties": {
7296
+ "oneOf": [
7297
+ {
7298
+ "type": "object",
7299
+ "required": [
7300
+ "type",
7301
+ "instructions"
7302
+ ],
7303
+ "properties": {
7304
+ "type": {
7305
+ "type": "string",
7306
+ "enum": [
7307
+ "noul"
7308
+ ]
7309
+ },
7310
+ "instructions": {
7311
+ "oneOf": [
7312
+ {
7313
+ "type": "string"
7314
+ },
7315
+ {
7316
+ "type": "object",
7317
+ "additionalProperties": true
7318
+ },
7319
+ {
7320
+ "type": "array",
7321
+ "items": {}
7322
+ }
7323
+ ]
7324
+ },
7325
+ "criteria": {
7326
+ "type": "object",
7327
+ "properties": {
7328
+ "true": {
7329
+ "oneOf": [
7330
+ {
7331
+ "type": "string"
7332
+ },
7333
+ {
7334
+ "type": "object",
7335
+ "additionalProperties": true
7336
+ },
7337
+ {
7338
+ "type": "array",
7339
+ "items": {}
7340
+ }
7341
+ ]
7342
+ },
7343
+ "false": {
7344
+ "oneOf": [
7345
+ {
7346
+ "type": "string"
7347
+ },
7348
+ {
7349
+ "type": "object",
7350
+ "additionalProperties": true
7351
+ },
7352
+ {
7353
+ "type": "array",
7354
+ "items": {}
7355
+ }
7356
+ ]
7357
+ }
7358
+ },
7359
+ "required": [
7360
+ "true",
7361
+ "false"
7362
+ ],
7363
+ "additionalProperties": false
7364
+ }
7365
+ },
7366
+ "additionalProperties": false
7367
+ },
7368
+ {
7369
+ "type": "object",
7370
+ "required": [
7371
+ "type",
7372
+ "instructions",
7373
+ "criteria"
7374
+ ],
7375
+ "properties": {
7376
+ "type": {
7377
+ "type": "string",
7378
+ "enum": [
7379
+ "choice"
7380
+ ]
7381
+ },
7382
+ "instructions": {
7383
+ "oneOf": [
7384
+ {
7385
+ "type": "string"
7386
+ },
7387
+ {
7388
+ "type": "object",
7389
+ "additionalProperties": true
7390
+ },
7391
+ {
7392
+ "type": "array",
7393
+ "items": {}
7394
+ }
7395
+ ]
7396
+ },
7397
+ "criteria": {
7398
+ "type": "object",
7399
+ "minProperties": 1,
7400
+ "maxProperties": 255,
7401
+ "additionalProperties": {
7402
+ "oneOf": [
7403
+ {
7404
+ "type": "string"
7405
+ },
7406
+ {
7407
+ "type": "object",
7408
+ "additionalProperties": true
7409
+ },
7410
+ {
7411
+ "type": "array",
7412
+ "items": {}
7413
+ },
7414
+ {
7415
+ "type": "null"
7416
+ }
7417
+ ]
7418
+ }
7419
+ }
7420
+ },
7421
+ "additionalProperties": false
7422
+ },
7423
+ {
7424
+ "type": "object",
7425
+ "required": [
7426
+ "type",
7427
+ "instructions",
7428
+ "criteria"
7429
+ ],
7430
+ "properties": {
7431
+ "type": {
7432
+ "type": "string",
7433
+ "enum": [
7434
+ "score"
7435
+ ]
7436
+ },
7437
+ "instructions": {
7438
+ "oneOf": [
7439
+ {
7440
+ "type": "string"
7441
+ },
7442
+ {
7443
+ "type": "object",
7444
+ "additionalProperties": true
7445
+ },
7446
+ {
7447
+ "type": "array",
7448
+ "items": {}
7449
+ }
7450
+ ]
7451
+ },
7452
+ "criteria": {
7453
+ "type": "array",
7454
+ "minItems": 2,
7455
+ "maxItems": 10,
7456
+ "items": {
7457
+ "oneOf": [
7458
+ {
7459
+ "type": "string"
7460
+ },
7461
+ {
7462
+ "type": "object",
7463
+ "additionalProperties": true
7464
+ },
7465
+ {
7466
+ "type": "array",
7467
+ "items": {}
7468
+ }
7469
+ ]
7470
+ }
7471
+ }
7472
+ },
7473
+ "additionalProperties": false
7474
+ }
7475
+ ]
7476
+ }
7396
7477
  }
7397
7478
  },
7398
- "required": [
7399
- "type",
7400
- "function"
7401
- ]
7402
- }
7403
- ],
7404
- "description": "Controls which function is called"
7405
- },
7406
- "response_format": {
7407
- "type": "object",
7408
- "properties": {
7409
- "type": {
7410
- "type": "string",
7411
- "enum": [
7412
- "text",
7413
- "json_object"
7414
- ]
7479
+ "additionalProperties": false
7415
7480
  }
7416
- },
7417
- "description": "Response format specification"
7418
- },
7419
- "seed": {
7420
- "type": "integer",
7481
+ }
7482
+ }
7483
+ },
7484
+ "responses": {
7485
+ "200": {
7486
+ "description": "Decision results",
7487
+ "content": {
7488
+ "application/json": {
7489
+ "schema": {
7490
+ "type": "object",
7491
+ "required": [
7492
+ "model",
7493
+ "answers"
7494
+ ],
7495
+ "properties": {
7496
+ "id": {
7497
+ "type": "string"
7498
+ },
7499
+ "model": {
7500
+ "type": "string"
7501
+ },
7502
+ "answers": {
7503
+ "type": "object",
7504
+ "additionalProperties": {
7505
+ "oneOf": [
7506
+ {
7507
+ "type": "object",
7508
+ "required": [
7509
+ "type",
7510
+ "noul"
7511
+ ],
7512
+ "properties": {
7513
+ "type": {
7514
+ "type": "string",
7515
+ "enum": [
7516
+ "noul"
7517
+ ]
7518
+ },
7519
+ "noul": {
7520
+ "type": "number",
7521
+ "minimum": 0,
7522
+ "maximum": 1
7523
+ }
7524
+ },
7525
+ "additionalProperties": false
7526
+ },
7527
+ {
7528
+ "type": "object",
7529
+ "required": [
7530
+ "type",
7531
+ "choice"
7532
+ ],
7533
+ "properties": {
7534
+ "type": {
7535
+ "type": "string",
7536
+ "enum": [
7537
+ "choice"
7538
+ ]
7539
+ },
7540
+ "choice": {
7541
+ "type": "string"
7542
+ },
7543
+ "probabilities": {
7544
+ "type": "object",
7545
+ "additionalProperties": {
7546
+ "type": "number",
7547
+ "minimum": 0,
7548
+ "maximum": 1
7549
+ }
7550
+ },
7551
+ "confidence": {
7552
+ "type": "number",
7553
+ "minimum": 0,
7554
+ "maximum": 1
7555
+ }
7556
+ },
7557
+ "additionalProperties": false
7558
+ },
7559
+ {
7560
+ "type": "object",
7561
+ "required": [
7562
+ "type",
7563
+ "score"
7564
+ ],
7565
+ "properties": {
7566
+ "type": {
7567
+ "type": "string",
7568
+ "enum": [
7569
+ "score"
7570
+ ]
7571
+ },
7572
+ "score": {
7573
+ "type": "number",
7574
+ "minimum": 0
7575
+ },
7576
+ "probabilities": {
7577
+ "type": "object",
7578
+ "additionalProperties": {
7579
+ "type": "number",
7580
+ "minimum": 0,
7581
+ "maximum": 1
7582
+ }
7583
+ },
7584
+ "confidence": {
7585
+ "type": "number",
7586
+ "minimum": 0,
7587
+ "maximum": 1
7588
+ },
7589
+ "legend": {
7590
+ "type": "object",
7591
+ "additionalProperties": {
7592
+ "oneOf": [
7593
+ {
7594
+ "type": "string"
7595
+ },
7596
+ {
7597
+ "type": "object",
7598
+ "additionalProperties": true
7599
+ },
7600
+ {
7601
+ "type": "array",
7602
+ "items": {}
7603
+ }
7604
+ ]
7605
+ }
7606
+ }
7607
+ },
7608
+ "additionalProperties": false
7609
+ }
7610
+ ]
7611
+ }
7612
+ },
7613
+ "usage": {
7614
+ "type": "object",
7615
+ "required": [
7616
+ "input_tokens",
7617
+ "output_tokens"
7618
+ ],
7619
+ "properties": {
7620
+ "input_tokens": {
7621
+ "type": "integer",
7622
+ "minimum": 0
7623
+ },
7624
+ "output_tokens": {
7625
+ "type": "integer",
7626
+ "minimum": 0
7627
+ }
7628
+ },
7629
+ "additionalProperties": false
7630
+ }
7631
+ },
7632
+ "additionalProperties": true
7633
+ }
7634
+ }
7635
+ }
7636
+ },
7637
+ "400": {
7638
+ "$ref": "#/components/responses/BadRequest"
7639
+ },
7640
+ "401": {
7641
+ "$ref": "#/components/responses/Unauthorized"
7642
+ },
7643
+ "503": {
7644
+ "$ref": "#/components/responses/DeliveryUnavailable"
7645
+ }
7646
+ }
7647
+ }
7648
+ },
7649
+ "/v1/management/webhooks": {
7650
+ "get": {
7651
+ "tags": [
7652
+ "Webhooks"
7653
+ ],
7654
+ "summary": "List webhook endpoints",
7655
+ "description": "Requires a workspace Management Token (mt-...), created at Dashboard > API > Management Tokens. Send Authorization: Bearer mt-.... Inference API keys (sk-...) and webhook signing secrets (whsec_...) are not accepted. Only the token workspace is accessible.",
7656
+ "operationId": "listWebhooks",
7657
+ "security": [
7658
+ {
7659
+ "ManagementTokenAuth": []
7660
+ }
7661
+ ],
7662
+ "responses": {
7663
+ "200": {
7664
+ "description": "List webhook endpoints result",
7665
+ "content": {
7666
+ "application/json": {
7667
+ "schema": {
7668
+ "$ref": "#/components/schemas/WebhookEndpointList"
7669
+ }
7670
+ }
7671
+ }
7672
+ },
7673
+ "400": {
7674
+ "$ref": "#/components/responses/BadRequest"
7675
+ },
7676
+ "401": {
7677
+ "$ref": "#/components/responses/Unauthorized"
7678
+ },
7679
+ "403": {
7680
+ "$ref": "#/components/responses/Forbidden"
7681
+ },
7682
+ "404": {
7683
+ "description": "Webhook not found in this workspace",
7684
+ "content": {
7685
+ "application/json": {
7686
+ "schema": {
7687
+ "$ref": "#/components/schemas/ApiError"
7688
+ }
7689
+ }
7690
+ }
7691
+ },
7692
+ "409": {
7693
+ "description": "Endpoint quota reached or endpoint paused",
7694
+ "content": {
7695
+ "application/json": {
7696
+ "schema": {
7697
+ "$ref": "#/components/schemas/ApiError"
7698
+ }
7699
+ }
7700
+ }
7701
+ }
7702
+ },
7703
+ "x-mint": {
7704
+ "metadata": {
7705
+ "playground": "simple"
7706
+ }
7707
+ },
7708
+ "parameters": [
7709
+ {
7710
+ "name": "page",
7711
+ "in": "query",
7712
+ "schema": {
7713
+ "type": "integer",
7714
+ "minimum": 1,
7715
+ "default": 1
7716
+ }
7717
+ },
7718
+ {
7719
+ "name": "limit",
7720
+ "in": "query",
7721
+ "schema": {
7722
+ "type": "integer",
7723
+ "minimum": 1,
7724
+ "maximum": 100,
7725
+ "default": 50
7726
+ }
7727
+ }
7728
+ ]
7729
+ },
7730
+ "post": {
7731
+ "tags": [
7732
+ "Webhooks"
7733
+ ],
7734
+ "summary": "Create webhook endpoint",
7735
+ "description": "Requires a workspace Management Token (mt-...), created at Dashboard > API > Management Tokens. Send Authorization: Bearer mt-.... Inference API keys (sk-...) and webhook signing secrets (whsec_...) are not accepted. Only the token workspace is accessible. The full whsec_ signing secret is returned only on creation or rotation. Store it securely; GET/list never return it. Rotation takes effect immediately for new deliveries; already in-flight deliveries can still use the previous secret. Up to 10 endpoints per workspace. Subscriptions cover future terminal async task events; existing tasks are not replayed.",
7736
+ "operationId": "createWebhook",
7737
+ "security": [
7738
+ {
7739
+ "ManagementTokenAuth": []
7740
+ }
7741
+ ],
7742
+ "responses": {
7743
+ "201": {
7744
+ "description": "Create webhook endpoint result",
7745
+ "content": {
7746
+ "application/json": {
7747
+ "schema": {
7748
+ "$ref": "#/components/schemas/CreatedWebhookEndpoint"
7749
+ }
7750
+ }
7751
+ }
7752
+ },
7753
+ "400": {
7754
+ "$ref": "#/components/responses/BadRequest"
7755
+ },
7756
+ "401": {
7757
+ "$ref": "#/components/responses/Unauthorized"
7758
+ },
7759
+ "403": {
7760
+ "$ref": "#/components/responses/Forbidden"
7761
+ },
7762
+ "404": {
7763
+ "description": "Webhook not found in this workspace",
7764
+ "content": {
7765
+ "application/json": {
7766
+ "schema": {
7767
+ "$ref": "#/components/schemas/ApiError"
7768
+ }
7769
+ }
7770
+ }
7771
+ },
7772
+ "409": {
7773
+ "description": "Endpoint quota reached or endpoint paused",
7774
+ "content": {
7775
+ "application/json": {
7776
+ "schema": {
7777
+ "$ref": "#/components/schemas/ApiError"
7778
+ }
7779
+ }
7780
+ }
7781
+ }
7782
+ },
7783
+ "x-mint": {
7784
+ "metadata": {
7785
+ "playground": "simple"
7786
+ }
7787
+ },
7788
+ "requestBody": {
7789
+ "required": true,
7790
+ "content": {
7791
+ "application/json": {
7792
+ "schema": {
7793
+ "$ref": "#/components/schemas/CreateWebhookEndpointRequest"
7794
+ }
7795
+ }
7796
+ }
7797
+ }
7798
+ }
7799
+ },
7800
+ "/v1/management/webhooks/{webhookId}": {
7801
+ "get": {
7802
+ "tags": [
7803
+ "Webhooks"
7804
+ ],
7805
+ "summary": "Retrieve webhook endpoint",
7806
+ "description": "Requires a workspace Management Token (mt-...), created at Dashboard > API > Management Tokens. Send Authorization: Bearer mt-.... Inference API keys (sk-...) and webhook signing secrets (whsec_...) are not accepted. Only the token workspace is accessible.",
7807
+ "operationId": "getWebhook",
7808
+ "security": [
7809
+ {
7810
+ "ManagementTokenAuth": []
7811
+ }
7812
+ ],
7813
+ "responses": {
7814
+ "200": {
7815
+ "description": "Retrieve webhook endpoint result",
7816
+ "content": {
7817
+ "application/json": {
7818
+ "schema": {
7819
+ "$ref": "#/components/schemas/WebhookEndpoint"
7820
+ }
7821
+ }
7822
+ }
7823
+ },
7824
+ "400": {
7825
+ "$ref": "#/components/responses/BadRequest"
7826
+ },
7827
+ "401": {
7828
+ "$ref": "#/components/responses/Unauthorized"
7829
+ },
7830
+ "403": {
7831
+ "$ref": "#/components/responses/Forbidden"
7832
+ },
7833
+ "404": {
7834
+ "description": "Webhook not found in this workspace",
7835
+ "content": {
7836
+ "application/json": {
7837
+ "schema": {
7838
+ "$ref": "#/components/schemas/ApiError"
7839
+ }
7840
+ }
7841
+ }
7842
+ },
7843
+ "409": {
7844
+ "description": "Endpoint quota reached or endpoint paused",
7845
+ "content": {
7846
+ "application/json": {
7847
+ "schema": {
7848
+ "$ref": "#/components/schemas/ApiError"
7849
+ }
7850
+ }
7851
+ }
7852
+ }
7853
+ },
7854
+ "x-mint": {
7855
+ "metadata": {
7856
+ "playground": "simple"
7857
+ }
7858
+ },
7859
+ "parameters": [
7860
+ {
7861
+ "name": "webhookId",
7862
+ "in": "path",
7863
+ "required": true,
7864
+ "schema": {
7865
+ "type": "string",
7866
+ "minLength": 1,
7867
+ "maxLength": 128
7868
+ }
7869
+ }
7870
+ ]
7871
+ },
7872
+ "patch": {
7873
+ "tags": [
7874
+ "Webhooks"
7875
+ ],
7876
+ "summary": "Update webhook endpoint",
7877
+ "description": "Requires a workspace Management Token (mt-...), created at Dashboard > API > Management Tokens. Send Authorization: Bearer mt-.... Inference API keys (sk-...) and webhook signing secrets (whsec_...) are not accepted. Only the token workspace is accessible.",
7878
+ "operationId": "updateWebhook",
7879
+ "security": [
7880
+ {
7881
+ "ManagementTokenAuth": []
7882
+ }
7883
+ ],
7884
+ "responses": {
7885
+ "200": {
7886
+ "description": "Update webhook endpoint result",
7887
+ "content": {
7888
+ "application/json": {
7889
+ "schema": {
7890
+ "$ref": "#/components/schemas/WebhookEndpoint"
7891
+ }
7892
+ }
7893
+ }
7894
+ },
7895
+ "400": {
7896
+ "$ref": "#/components/responses/BadRequest"
7897
+ },
7898
+ "401": {
7899
+ "$ref": "#/components/responses/Unauthorized"
7900
+ },
7901
+ "403": {
7902
+ "$ref": "#/components/responses/Forbidden"
7903
+ },
7904
+ "404": {
7905
+ "description": "Webhook not found in this workspace",
7906
+ "content": {
7907
+ "application/json": {
7908
+ "schema": {
7909
+ "$ref": "#/components/schemas/ApiError"
7910
+ }
7911
+ }
7912
+ }
7913
+ },
7914
+ "409": {
7915
+ "description": "Endpoint quota reached or endpoint paused",
7916
+ "content": {
7917
+ "application/json": {
7918
+ "schema": {
7919
+ "$ref": "#/components/schemas/ApiError"
7920
+ }
7921
+ }
7922
+ }
7923
+ }
7924
+ },
7925
+ "x-mint": {
7926
+ "metadata": {
7927
+ "playground": "simple"
7928
+ }
7929
+ },
7930
+ "parameters": [
7931
+ {
7932
+ "name": "webhookId",
7933
+ "in": "path",
7934
+ "required": true,
7935
+ "schema": {
7936
+ "type": "string",
7937
+ "minLength": 1,
7938
+ "maxLength": 128
7939
+ }
7940
+ }
7941
+ ],
7942
+ "requestBody": {
7943
+ "required": true,
7944
+ "content": {
7945
+ "application/json": {
7946
+ "schema": {
7947
+ "$ref": "#/components/schemas/UpdateWebhookEndpointRequest"
7948
+ }
7949
+ }
7950
+ }
7951
+ }
7952
+ },
7953
+ "delete": {
7954
+ "tags": [
7955
+ "Webhooks"
7956
+ ],
7957
+ "summary": "Delete webhook endpoint",
7958
+ "description": "Requires a workspace Management Token (mt-...), created at Dashboard > API > Management Tokens. Send Authorization: Bearer mt-.... Inference API keys (sk-...) and webhook signing secrets (whsec_...) are not accepted. Only the token workspace is accessible.",
7959
+ "operationId": "deleteWebhook",
7960
+ "security": [
7961
+ {
7962
+ "ManagementTokenAuth": []
7963
+ }
7964
+ ],
7965
+ "responses": {
7966
+ "200": {
7967
+ "description": "Delete webhook endpoint result",
7968
+ "content": {
7969
+ "application/json": {
7970
+ "schema": {
7971
+ "$ref": "#/components/schemas/DeletedWebhookEndpoint"
7972
+ }
7973
+ }
7974
+ }
7975
+ },
7976
+ "400": {
7977
+ "$ref": "#/components/responses/BadRequest"
7978
+ },
7979
+ "401": {
7980
+ "$ref": "#/components/responses/Unauthorized"
7981
+ },
7982
+ "403": {
7983
+ "$ref": "#/components/responses/Forbidden"
7984
+ },
7985
+ "404": {
7986
+ "description": "Webhook not found in this workspace",
7987
+ "content": {
7988
+ "application/json": {
7989
+ "schema": {
7990
+ "$ref": "#/components/schemas/ApiError"
7991
+ }
7992
+ }
7993
+ }
7994
+ },
7995
+ "409": {
7996
+ "description": "Endpoint quota reached or endpoint paused",
7997
+ "content": {
7998
+ "application/json": {
7999
+ "schema": {
8000
+ "$ref": "#/components/schemas/ApiError"
8001
+ }
8002
+ }
8003
+ }
8004
+ }
8005
+ },
8006
+ "x-mint": {
8007
+ "metadata": {
8008
+ "playground": "simple"
8009
+ }
8010
+ },
8011
+ "parameters": [
8012
+ {
8013
+ "name": "webhookId",
8014
+ "in": "path",
8015
+ "required": true,
8016
+ "schema": {
8017
+ "type": "string",
8018
+ "minLength": 1,
8019
+ "maxLength": 128
8020
+ }
8021
+ }
8022
+ ]
8023
+ }
8024
+ },
8025
+ "/v1/management/webhooks/{webhookId}/rotate-secret": {
8026
+ "post": {
8027
+ "tags": [
8028
+ "Webhooks"
8029
+ ],
8030
+ "summary": "Rotate webhook signing secret",
8031
+ "description": "Requires a workspace Management Token (mt-...), created at Dashboard > API > Management Tokens. Send Authorization: Bearer mt-.... Inference API keys (sk-...) and webhook signing secrets (whsec_...) are not accepted. Only the token workspace is accessible. The full whsec_ signing secret is returned only on creation or rotation. Store it securely; GET/list never return it. Rotation takes effect immediately for new deliveries; already in-flight deliveries can still use the previous secret.",
8032
+ "operationId": "rotateWebhookSecret",
8033
+ "security": [
8034
+ {
8035
+ "ManagementTokenAuth": []
8036
+ }
8037
+ ],
8038
+ "responses": {
8039
+ "200": {
8040
+ "description": "Rotate webhook signing secret result",
8041
+ "content": {
8042
+ "application/json": {
8043
+ "schema": {
8044
+ "$ref": "#/components/schemas/CreatedWebhookEndpoint"
8045
+ }
8046
+ }
8047
+ }
8048
+ },
8049
+ "400": {
8050
+ "$ref": "#/components/responses/BadRequest"
8051
+ },
8052
+ "401": {
8053
+ "$ref": "#/components/responses/Unauthorized"
8054
+ },
8055
+ "403": {
8056
+ "$ref": "#/components/responses/Forbidden"
8057
+ },
8058
+ "404": {
8059
+ "description": "Webhook not found in this workspace",
8060
+ "content": {
8061
+ "application/json": {
8062
+ "schema": {
8063
+ "$ref": "#/components/schemas/ApiError"
8064
+ }
8065
+ }
8066
+ }
8067
+ },
8068
+ "409": {
8069
+ "description": "Endpoint quota reached or endpoint paused",
8070
+ "content": {
8071
+ "application/json": {
8072
+ "schema": {
8073
+ "$ref": "#/components/schemas/ApiError"
8074
+ }
8075
+ }
8076
+ }
8077
+ }
8078
+ },
8079
+ "x-mint": {
8080
+ "metadata": {
8081
+ "playground": "simple"
8082
+ }
8083
+ },
8084
+ "parameters": [
8085
+ {
8086
+ "name": "webhookId",
8087
+ "in": "path",
8088
+ "required": true,
8089
+ "schema": {
8090
+ "type": "string",
8091
+ "minLength": 1,
8092
+ "maxLength": 128
8093
+ }
8094
+ }
8095
+ ]
8096
+ }
8097
+ },
8098
+ "/v1/management/webhooks/{webhookId}/test": {
8099
+ "post": {
8100
+ "tags": [
8101
+ "Webhooks"
8102
+ ],
8103
+ "summary": "Send a test webhook",
8104
+ "description": "Requires a workspace Management Token (mt-...), created at Dashboard > API > Management Tokens. Send Authorization: Bearer mt-.... Inference API keys (sk-...) and webhook signing secrets (whsec_...) are not accepted. Only the token workspace is accessible. Sends webhook.test through the same signed delivery path. HTTP 200 reports a persisted attempt; inspect outcome and http_status to determine receiver success. Resume a paused endpoint before testing.",
8105
+ "operationId": "testWebhook",
8106
+ "security": [
8107
+ {
8108
+ "ManagementTokenAuth": []
8109
+ }
8110
+ ],
8111
+ "responses": {
8112
+ "200": {
8113
+ "description": "Send a test webhook result",
8114
+ "content": {
8115
+ "application/json": {
8116
+ "schema": {
8117
+ "$ref": "#/components/schemas/WebhookDelivery"
8118
+ }
8119
+ }
8120
+ }
8121
+ },
8122
+ "400": {
8123
+ "$ref": "#/components/responses/BadRequest"
8124
+ },
8125
+ "401": {
8126
+ "$ref": "#/components/responses/Unauthorized"
8127
+ },
8128
+ "403": {
8129
+ "$ref": "#/components/responses/Forbidden"
8130
+ },
8131
+ "404": {
8132
+ "description": "Webhook not found in this workspace",
8133
+ "content": {
8134
+ "application/json": {
8135
+ "schema": {
8136
+ "$ref": "#/components/schemas/ApiError"
8137
+ }
8138
+ }
8139
+ }
8140
+ },
8141
+ "409": {
8142
+ "description": "Endpoint quota reached or endpoint paused",
8143
+ "content": {
8144
+ "application/json": {
8145
+ "schema": {
8146
+ "$ref": "#/components/schemas/ApiError"
8147
+ }
8148
+ }
8149
+ }
8150
+ }
8151
+ },
8152
+ "x-mint": {
8153
+ "metadata": {
8154
+ "playground": "simple"
8155
+ }
8156
+ },
8157
+ "parameters": [
8158
+ {
8159
+ "name": "webhookId",
8160
+ "in": "path",
8161
+ "required": true,
8162
+ "schema": {
8163
+ "type": "string",
8164
+ "minLength": 1,
8165
+ "maxLength": 128
8166
+ }
8167
+ }
8168
+ ]
8169
+ }
8170
+ },
8171
+ "/v1/management/webhooks/{webhookId}/deliveries": {
8172
+ "get": {
8173
+ "tags": [
8174
+ "Webhooks"
8175
+ ],
8176
+ "summary": "List webhook deliveries",
8177
+ "description": "Requires a workspace Management Token (mt-...), created at Dashboard > API > Management Tokens. Send Authorization: Bearer mt-.... Inference API keys (sk-...) and webhook signing secrets (whsec_...) are not accepted. Only the token workspace is accessible. Returns cumulative attempts and latest outcome per event and endpoint. A previously confirmed delivery remains delivered even if a duplicate fails. History contains no payloads or signing secrets; no manual replay operation is provided.",
8178
+ "operationId": "listWebhookDeliveries",
8179
+ "security": [
8180
+ {
8181
+ "ManagementTokenAuth": []
8182
+ }
8183
+ ],
8184
+ "responses": {
8185
+ "200": {
8186
+ "description": "List webhook deliveries result",
8187
+ "content": {
8188
+ "application/json": {
8189
+ "schema": {
8190
+ "$ref": "#/components/schemas/WebhookDeliveryList"
8191
+ }
8192
+ }
8193
+ }
8194
+ },
8195
+ "400": {
8196
+ "$ref": "#/components/responses/BadRequest"
8197
+ },
8198
+ "401": {
8199
+ "$ref": "#/components/responses/Unauthorized"
8200
+ },
8201
+ "403": {
8202
+ "$ref": "#/components/responses/Forbidden"
8203
+ },
8204
+ "404": {
8205
+ "description": "Webhook not found in this workspace",
8206
+ "content": {
8207
+ "application/json": {
8208
+ "schema": {
8209
+ "$ref": "#/components/schemas/ApiError"
8210
+ }
8211
+ }
8212
+ }
8213
+ },
8214
+ "409": {
8215
+ "description": "Endpoint quota reached or endpoint paused",
8216
+ "content": {
8217
+ "application/json": {
8218
+ "schema": {
8219
+ "$ref": "#/components/schemas/ApiError"
8220
+ }
8221
+ }
8222
+ }
8223
+ }
8224
+ },
8225
+ "x-mint": {
8226
+ "metadata": {
8227
+ "playground": "simple"
8228
+ }
8229
+ },
8230
+ "parameters": [
8231
+ {
8232
+ "name": "webhookId",
8233
+ "in": "path",
8234
+ "required": true,
8235
+ "schema": {
8236
+ "type": "string",
8237
+ "minLength": 1,
8238
+ "maxLength": 128
8239
+ }
8240
+ },
8241
+ {
8242
+ "name": "page",
8243
+ "in": "query",
8244
+ "schema": {
8245
+ "type": "integer",
8246
+ "minimum": 1,
8247
+ "default": 1
8248
+ }
8249
+ },
8250
+ {
8251
+ "name": "limit",
8252
+ "in": "query",
8253
+ "schema": {
8254
+ "type": "integer",
8255
+ "minimum": 1,
8256
+ "maximum": 100,
8257
+ "default": 50
8258
+ }
8259
+ }
8260
+ ]
8261
+ }
8262
+ }
8263
+ },
8264
+ "components": {
8265
+ "securitySchemes": {
8266
+ "BearerAuth": {
8267
+ "type": "http",
8268
+ "scheme": "bearer",
8269
+ "bearerFormat": "API Key",
8270
+ "description": "API Key authentication. Create or manage API keys in [Dashboard > API > API Keys](https://tokenlab.sh/dashboard/api?tab=keys)."
8271
+ },
8272
+ "ManagementTokenAuth": {
8273
+ "type": "http",
8274
+ "scheme": "bearer",
8275
+ "bearerFormat": "Management Token",
8276
+ "description": "Management token authentication. Create or manage Management Tokens in [Dashboard > API > Management Tokens](https://tokenlab.sh/dashboard/api?tab=tokens)."
8277
+ }
8278
+ },
8279
+ "schemas": {
8280
+ "ChatCompletionRequest": {
8281
+ "type": "object",
8282
+ "required": [
8283
+ "model",
8284
+ "messages"
8285
+ ],
8286
+ "properties": {
8287
+ "model": {
8288
+ "type": "string",
8289
+ "description": "ID of the model to use (e.g., gpt-5.4, claude-sonnet-4-6)",
8290
+ "example": "gpt-4o"
8291
+ },
8292
+ "messages": {
8293
+ "type": "array",
8294
+ "description": "A list of messages comprising the conversation",
8295
+ "items": {
8296
+ "$ref": "#/components/schemas/ChatMessage"
8297
+ },
8298
+ "minItems": 1
8299
+ },
8300
+ "temperature": {
8301
+ "type": "number",
8302
+ "minimum": 0,
8303
+ "maximum": 2,
8304
+ "default": 1,
8305
+ "description": "Sampling temperature (0-2)"
8306
+ },
8307
+ "top_p": {
8308
+ "type": "number",
8309
+ "minimum": 0,
8310
+ "maximum": 1,
8311
+ "default": 1,
8312
+ "description": "Nucleus sampling probability"
8313
+ },
8314
+ "n": {
8315
+ "type": "integer",
8316
+ "minimum": 1,
8317
+ "maximum": 128,
8318
+ "default": 1,
8319
+ "description": "Number of completions to generate"
8320
+ },
8321
+ "stream": {
8322
+ "type": "boolean",
8323
+ "default": false,
8324
+ "description": "If true, returns a stream of events"
8325
+ },
8326
+ "stop": {
8327
+ "oneOf": [
8328
+ {
8329
+ "type": "string"
8330
+ },
8331
+ {
8332
+ "type": "array",
8333
+ "items": {
8334
+ "type": "string"
8335
+ },
8336
+ "maxItems": 4
8337
+ }
8338
+ ],
8339
+ "description": "Stop sequences"
8340
+ },
8341
+ "max_tokens": {
8342
+ "type": "integer",
8343
+ "minimum": 1,
8344
+ "description": "Maximum number of tokens to generate"
8345
+ },
8346
+ "max_completion_tokens": {
8347
+ "type": "integer",
8348
+ "minimum": 1,
8349
+ "description": "Maximum completion tokens for newer reasoning-enabled model families"
8350
+ },
8351
+ "presence_penalty": {
8352
+ "type": "number",
8353
+ "minimum": -2,
8354
+ "maximum": 2,
8355
+ "default": 0,
8356
+ "description": "Presence penalty (-2 to 2)"
8357
+ },
8358
+ "frequency_penalty": {
8359
+ "type": "number",
8360
+ "minimum": -2,
8361
+ "maximum": 2,
8362
+ "default": 0,
8363
+ "description": "Frequency penalty (-2 to 2)"
8364
+ },
8365
+ "tools": {
8366
+ "type": "array",
8367
+ "description": "List of tools the model may call",
8368
+ "items": {
8369
+ "$ref": "#/components/schemas/Tool"
8370
+ }
8371
+ },
8372
+ "functions": {
8373
+ "type": "array",
8374
+ "description": "Deprecated function definitions retained by the official Chat Completions contract.",
8375
+ "items": {
8376
+ "type": "object",
8377
+ "additionalProperties": true
8378
+ }
8379
+ },
8380
+ "function_call": {
8381
+ "oneOf": [
8382
+ {
8383
+ "type": "string"
8384
+ },
8385
+ {
8386
+ "type": "object",
8387
+ "additionalProperties": true
8388
+ }
8389
+ ],
8390
+ "description": "Deprecated function-call selection retained by the official Chat Completions contract."
8391
+ },
8392
+ "tool_choice": {
8393
+ "oneOf": [
8394
+ {
8395
+ "type": "string",
8396
+ "enum": [
8397
+ "none",
8398
+ "auto",
8399
+ "required"
8400
+ ]
8401
+ },
8402
+ {
8403
+ "type": "object",
8404
+ "properties": {
8405
+ "type": {
8406
+ "type": "string",
8407
+ "enum": [
8408
+ "function"
8409
+ ]
8410
+ },
8411
+ "function": {
8412
+ "type": "object",
8413
+ "properties": {
8414
+ "name": {
8415
+ "type": "string"
8416
+ }
8417
+ },
8418
+ "required": [
8419
+ "name"
8420
+ ]
8421
+ }
8422
+ },
8423
+ "required": [
8424
+ "type",
8425
+ "function"
8426
+ ]
8427
+ }
8428
+ ],
8429
+ "description": "Controls which function is called"
8430
+ },
8431
+ "response_format": {
8432
+ "type": "object",
8433
+ "properties": {
8434
+ "type": {
8435
+ "type": "string",
8436
+ "enum": [
8437
+ "text",
8438
+ "json_object"
8439
+ ]
8440
+ }
8441
+ },
8442
+ "description": "Response format specification"
8443
+ },
8444
+ "seed": {
8445
+ "type": "integer",
7421
8446
  "description": "Seed for deterministic generation"
7422
8447
  },
7423
8448
  "user": {
@@ -9330,6 +10355,25 @@
9330
10355
  "official": {
9331
10356
  "type": "boolean",
9332
10357
  "description": "Whether this model has eligible Official delivery supply."
10358
+ },
10359
+ "operations": {
10360
+ "type": "object",
10361
+ "additionalProperties": {
10362
+ "type": "object",
10363
+ "properties": {
10364
+ "verified": {
10365
+ "type": "boolean"
10366
+ },
10367
+ "official": {
10368
+ "type": "boolean"
10369
+ }
10370
+ },
10371
+ "required": [
10372
+ "verified",
10373
+ "official"
10374
+ ],
10375
+ "additionalProperties": false
10376
+ }
9333
10377
  }
9334
10378
  },
9335
10379
  "required": [
@@ -12247,6 +13291,25 @@
12247
13291
  "official": {
12248
13292
  "type": "boolean",
12249
13293
  "description": "Whether this model has eligible Official delivery supply."
13294
+ },
13295
+ "operations": {
13296
+ "type": "object",
13297
+ "additionalProperties": {
13298
+ "type": "object",
13299
+ "properties": {
13300
+ "verified": {
13301
+ "type": "boolean"
13302
+ },
13303
+ "official": {
13304
+ "type": "boolean"
13305
+ }
13306
+ },
13307
+ "required": [
13308
+ "verified",
13309
+ "official"
13310
+ ],
13311
+ "additionalProperties": false
13312
+ }
12250
13313
  }
12251
13314
  },
12252
13315
  "required": [
@@ -12541,6 +13604,25 @@
12541
13604
  "official": {
12542
13605
  "type": "boolean",
12543
13606
  "description": "Whether this model has eligible Official delivery supply."
13607
+ },
13608
+ "operations": {
13609
+ "type": "object",
13610
+ "additionalProperties": {
13611
+ "type": "object",
13612
+ "properties": {
13613
+ "verified": {
13614
+ "type": "boolean"
13615
+ },
13616
+ "official": {
13617
+ "type": "boolean"
13618
+ }
13619
+ },
13620
+ "required": [
13621
+ "verified",
13622
+ "official"
13623
+ ],
13624
+ "additionalProperties": false
13625
+ }
12544
13626
  }
12545
13627
  },
12546
13628
  "required": [
@@ -13790,80 +14872,334 @@
13790
14872
  "message"
13791
14873
  ],
13792
14874
  "properties": {
13793
- "code": {
14875
+ "code": {
14876
+ "type": "string"
14877
+ },
14878
+ "message": {
14879
+ "type": "string"
14880
+ }
14881
+ },
14882
+ "additionalProperties": false
14883
+ },
14884
+ "created_at": {
14885
+ "type": "integer",
14886
+ "description": "Unix timestamp in seconds."
14887
+ },
14888
+ "updated_at": {
14889
+ "type": "integer",
14890
+ "description": "Unix timestamp in seconds."
14891
+ }
14892
+ },
14893
+ "additionalProperties": false
14894
+ },
14895
+ "VolcSeedanceTaskListResponse": {
14896
+ "type": "object",
14897
+ "required": [
14898
+ "items",
14899
+ "total"
14900
+ ],
14901
+ "properties": {
14902
+ "items": {
14903
+ "type": "array",
14904
+ "items": {
14905
+ "$ref": "#/components/schemas/VolcSeedanceTask"
14906
+ }
14907
+ },
14908
+ "total": {
14909
+ "type": "integer",
14910
+ "minimum": 0
14911
+ }
14912
+ },
14913
+ "additionalProperties": false
14914
+ },
14915
+ "VolcSeedanceError": {
14916
+ "type": "object",
14917
+ "required": [
14918
+ "error"
14919
+ ],
14920
+ "properties": {
14921
+ "error": {
14922
+ "type": "object",
14923
+ "required": [
14924
+ "code",
14925
+ "message",
14926
+ "param",
14927
+ "type"
14928
+ ],
14929
+ "properties": {
14930
+ "code": {
14931
+ "type": "string"
14932
+ },
14933
+ "message": {
14934
+ "type": "string"
14935
+ },
14936
+ "param": {
14937
+ "type": "string"
14938
+ },
14939
+ "type": {
14940
+ "type": "string"
14941
+ }
14942
+ },
14943
+ "additionalProperties": false
14944
+ }
14945
+ },
14946
+ "additionalProperties": false
14947
+ },
14948
+ "VolcVisualValidationResponseMetadata": {
14949
+ "type": "object",
14950
+ "required": [
14951
+ "RequestId",
14952
+ "Action",
14953
+ "Version",
14954
+ "Service",
14955
+ "Region"
14956
+ ],
14957
+ "properties": {
14958
+ "RequestId": {
14959
+ "type": "string",
14960
+ "description": "TokenLab request identifier."
14961
+ },
14962
+ "Action": {
14963
+ "type": "string",
14964
+ "enum": [
14965
+ "CreateVisualValidateSession",
14966
+ "GetVisualValidateResult"
14967
+ ]
14968
+ },
14969
+ "Version": {
14970
+ "type": "string",
14971
+ "enum": [
14972
+ "2024-01-01"
14973
+ ]
14974
+ },
14975
+ "Service": {
14976
+ "type": "string",
14977
+ "enum": [
14978
+ "ark"
14979
+ ]
14980
+ },
14981
+ "Region": {
14982
+ "type": "string",
14983
+ "enum": [
14984
+ "cn-beijing"
14985
+ ]
14986
+ }
14987
+ },
14988
+ "additionalProperties": false
14989
+ },
14990
+ "VolcCreateVisualValidateSessionRequest": {
14991
+ "type": "object",
14992
+ "required": [
14993
+ "CallbackURL"
14994
+ ],
14995
+ "properties": {
14996
+ "CallbackURL": {
14997
+ "type": "string",
14998
+ "format": "uri",
14999
+ "description": "Public HTTPS URL opened by the H5 flow after validation. Official callback query names are preserved."
15000
+ },
15001
+ "ProjectName": {
15002
+ "type": "string",
15003
+ "default": "default",
15004
+ "description": "Case-sensitive project name. Omit to use default."
15005
+ }
15006
+ },
15007
+ "additionalProperties": false
15008
+ },
15009
+ "VolcGetVisualValidateResultRequest": {
15010
+ "type": "object",
15011
+ "required": [
15012
+ "BytedToken"
15013
+ ],
15014
+ "properties": {
15015
+ "BytedToken": {
15016
+ "type": "string",
15017
+ "description": "Opaque token returned by CreateVisualValidateSession. It is valid for 30 minutes and scoped to the authenticated organization, actor, and ProjectName."
15018
+ },
15019
+ "ProjectName": {
15020
+ "type": "string",
15021
+ "default": "default",
15022
+ "description": "Must match the ProjectName used to create the token."
15023
+ }
15024
+ },
15025
+ "additionalProperties": false
15026
+ },
15027
+ "VolcCreateVisualValidateSessionResponse": {
15028
+ "type": "object",
15029
+ "required": [
15030
+ "ResponseMetadata",
15031
+ "Result"
15032
+ ],
15033
+ "properties": {
15034
+ "ResponseMetadata": {
15035
+ "$ref": "#/components/schemas/VolcVisualValidationResponseMetadata"
15036
+ },
15037
+ "Result": {
15038
+ "type": "object",
15039
+ "required": [
15040
+ "BytedToken",
15041
+ "H5Link",
15042
+ "CallbackURL"
15043
+ ],
15044
+ "properties": {
15045
+ "BytedToken": {
13794
15046
  "type": "string"
13795
15047
  },
13796
- "message": {
13797
- "type": "string"
15048
+ "H5Link": {
15049
+ "type": "string",
15050
+ "format": "uri"
15051
+ },
15052
+ "CallbackURL": {
15053
+ "type": "string",
15054
+ "format": "uri"
13798
15055
  }
13799
15056
  },
13800
15057
  "additionalProperties": false
13801
- },
13802
- "created_at": {
13803
- "type": "integer",
13804
- "description": "Unix timestamp in seconds."
13805
- },
13806
- "updated_at": {
13807
- "type": "integer",
13808
- "description": "Unix timestamp in seconds."
13809
15058
  }
13810
15059
  },
13811
15060
  "additionalProperties": false
13812
15061
  },
13813
- "VolcSeedanceTaskListResponse": {
15062
+ "VolcGetVisualValidateResultResponse": {
13814
15063
  "type": "object",
13815
15064
  "required": [
13816
- "items",
13817
- "total"
15065
+ "ResponseMetadata",
15066
+ "Result"
13818
15067
  ],
13819
15068
  "properties": {
13820
- "items": {
13821
- "type": "array",
13822
- "items": {
13823
- "$ref": "#/components/schemas/VolcSeedanceTask"
13824
- }
15069
+ "ResponseMetadata": {
15070
+ "$ref": "#/components/schemas/VolcVisualValidationResponseMetadata"
13825
15071
  },
13826
- "total": {
13827
- "type": "integer",
13828
- "minimum": 0
15072
+ "Result": {
15073
+ "type": "object",
15074
+ "required": [
15075
+ "GroupId"
15076
+ ],
15077
+ "properties": {
15078
+ "GroupId": {
15079
+ "type": "string",
15080
+ "pattern": "^group-[0-9]{14}-[a-z0-9]{5}$",
15081
+ "description": "TokenLab-mapped real-person Asset Group ID returned after successful validation."
15082
+ }
15083
+ },
15084
+ "additionalProperties": false
13829
15085
  }
13830
15086
  },
13831
15087
  "additionalProperties": false
13832
15088
  },
13833
- "VolcSeedanceError": {
15089
+ "VolcMaterialActionRequest": {
13834
15090
  "type": "object",
13835
- "required": [
13836
- "error"
13837
- ],
15091
+ "description": "PascalCase request body for the material Action selected by the Action query parameter. Required fields depend on the selected Action.",
13838
15092
  "properties": {
13839
- "error": {
15093
+ "Id": {
15094
+ "type": "string",
15095
+ "description": "Asset or Asset Group identifier for get, update, and delete Actions."
15096
+ },
15097
+ "Name": {
15098
+ "type": "string",
15099
+ "minLength": 1,
15100
+ "maxLength": 64
15101
+ },
15102
+ "Description": {
15103
+ "type": "string",
15104
+ "maxLength": 300
15105
+ },
15106
+ "GroupType": {
15107
+ "type": "string",
15108
+ "enum": [
15109
+ "AIGC",
15110
+ "LivenessFace"
15111
+ ]
15112
+ },
15113
+ "GroupId": {
15114
+ "type": "string"
15115
+ },
15116
+ "URL": {
15117
+ "type": "string",
15118
+ "format": "uri"
15119
+ },
15120
+ "AssetType": {
15121
+ "type": "string",
15122
+ "enum": [
15123
+ "Image",
15124
+ "Video",
15125
+ "Audio"
15126
+ ]
15127
+ },
15128
+ "Filter": {
13840
15129
  "type": "object",
13841
- "required": [
13842
- "code",
13843
- "message",
13844
- "param",
13845
- "type"
13846
- ],
13847
15130
  "properties": {
13848
- "code": {
13849
- "type": "string"
15131
+ "GroupIds": {
15132
+ "type": "array",
15133
+ "maxItems": 100,
15134
+ "items": {
15135
+ "type": "string"
15136
+ }
13850
15137
  },
13851
- "message": {
13852
- "type": "string"
15138
+ "GroupType": {
15139
+ "type": "string",
15140
+ "enum": [
15141
+ "AIGC",
15142
+ "LivenessFace"
15143
+ ]
13853
15144
  },
13854
- "param": {
13855
- "type": "string"
15145
+ "Statuses": {
15146
+ "type": "array",
15147
+ "items": {
15148
+ "type": "string",
15149
+ "enum": [
15150
+ "Active",
15151
+ "Processing",
15152
+ "Failed"
15153
+ ]
15154
+ }
13856
15155
  },
13857
- "type": {
13858
- "type": "string"
15156
+ "Name": {
15157
+ "type": "string",
15158
+ "minLength": 1,
15159
+ "maxLength": 64
13859
15160
  }
13860
15161
  },
13861
15162
  "additionalProperties": false
15163
+ },
15164
+ "PageNumber": {
15165
+ "type": "integer",
15166
+ "minimum": 1,
15167
+ "default": 1
15168
+ },
15169
+ "PageSize": {
15170
+ "type": "integer",
15171
+ "minimum": 1,
15172
+ "maximum": 100,
15173
+ "default": 10
15174
+ },
15175
+ "SortBy": {
15176
+ "type": "string",
15177
+ "enum": [
15178
+ "CreateTime",
15179
+ "UpdateTime",
15180
+ "GroupId"
15181
+ ],
15182
+ "default": "CreateTime"
15183
+ },
15184
+ "SortOrder": {
15185
+ "type": "string",
15186
+ "enum": [
15187
+ "Desc",
15188
+ "Asc"
15189
+ ],
15190
+ "default": "Desc"
15191
+ },
15192
+ "ProjectName": {
15193
+ "type": "string",
15194
+ "minLength": 1,
15195
+ "maxLength": 128,
15196
+ "default": "default",
15197
+ "description": "Project isolation scope within the authenticated organization."
13862
15198
  }
13863
15199
  },
13864
15200
  "additionalProperties": false
13865
15201
  },
13866
- "VolcVisualValidationResponseMetadata": {
15202
+ "VolcMaterialResponseMetadata": {
13867
15203
  "type": "object",
13868
15204
  "required": [
13869
15205
  "RequestId",
@@ -13874,14 +15210,21 @@
13874
15210
  ],
13875
15211
  "properties": {
13876
15212
  "RequestId": {
13877
- "type": "string",
13878
- "description": "TokenLab request identifier."
15213
+ "type": "string"
13879
15214
  },
13880
15215
  "Action": {
13881
15216
  "type": "string",
13882
15217
  "enum": [
13883
- "CreateVisualValidateSession",
13884
- "GetVisualValidateResult"
15218
+ "CreateAssetGroup",
15219
+ "ListAssetGroups",
15220
+ "GetAssetGroup",
15221
+ "UpdateAssetGroup",
15222
+ "DeleteAssetGroup",
15223
+ "CreateAsset",
15224
+ "ListAssets",
15225
+ "GetAsset",
15226
+ "UpdateAsset",
15227
+ "DeleteAsset"
13885
15228
  ]
13886
15229
  },
13887
15230
  "Version": {
@@ -13905,98 +15248,229 @@
13905
15248
  },
13906
15249
  "additionalProperties": false
13907
15250
  },
13908
- "VolcCreateVisualValidateSessionRequest": {
15251
+ "VolcMaterialActionResponse": {
13909
15252
  "type": "object",
13910
15253
  "required": [
13911
- "CallbackURL"
15254
+ "ResponseMetadata",
15255
+ "Result"
13912
15256
  ],
13913
15257
  "properties": {
13914
- "CallbackURL": {
13915
- "type": "string",
13916
- "format": "uri",
13917
- "description": "Public HTTPS URL opened by the H5 flow after validation. Official callback query names are preserved."
15258
+ "ResponseMetadata": {
15259
+ "$ref": "#/components/schemas/VolcMaterialResponseMetadata"
13918
15260
  },
13919
- "ProjectName": {
13920
- "type": "string",
13921
- "default": "default",
13922
- "description": "Case-sensitive project name. Omit to use default."
15261
+ "Result": {
15262
+ "type": "object",
15263
+ "description": "Action-dependent result. List Actions return Items, TotalCount, PageNumber, and PageSize; create and update Actions return Id; delete Actions return an empty object.",
15264
+ "additionalProperties": true
15265
+ }
15266
+ },
15267
+ "additionalProperties": false
15268
+ },
15269
+ "VolcVisualValidationError": {
15270
+ "type": "object",
15271
+ "required": [
15272
+ "ResponseMetadata"
15273
+ ],
15274
+ "properties": {
15275
+ "ResponseMetadata": {
15276
+ "type": "object",
15277
+ "required": [
15278
+ "RequestId",
15279
+ "Action",
15280
+ "Version",
15281
+ "Service",
15282
+ "Region",
15283
+ "Error"
15284
+ ],
15285
+ "properties": {
15286
+ "RequestId": {
15287
+ "type": "string"
15288
+ },
15289
+ "Action": {
15290
+ "type": "string"
15291
+ },
15292
+ "Version": {
15293
+ "type": "string"
15294
+ },
15295
+ "Service": {
15296
+ "type": "string",
15297
+ "enum": [
15298
+ "ark"
15299
+ ]
15300
+ },
15301
+ "Region": {
15302
+ "type": "string",
15303
+ "enum": [
15304
+ "cn-beijing"
15305
+ ]
15306
+ },
15307
+ "Error": {
15308
+ "type": "object",
15309
+ "required": [
15310
+ "Code",
15311
+ "Message"
15312
+ ],
15313
+ "properties": {
15314
+ "CodeN": {
15315
+ "type": "integer"
15316
+ },
15317
+ "Code": {
15318
+ "type": "string"
15319
+ },
15320
+ "Message": {
15321
+ "type": "string"
15322
+ }
15323
+ },
15324
+ "additionalProperties": false
15325
+ }
15326
+ },
15327
+ "additionalProperties": false
13923
15328
  }
13924
15329
  },
13925
15330
  "additionalProperties": false
13926
15331
  },
13927
- "VolcGetVisualValidateResultRequest": {
13928
- "type": "object",
13929
- "required": [
13930
- "BytedToken"
13931
- ],
13932
- "properties": {
13933
- "BytedToken": {
13934
- "type": "string",
13935
- "description": "Opaque token returned by CreateVisualValidateSession. It is valid for 30 minutes and scoped to the authenticated organization, actor, and ProjectName."
15332
+ "VolcSeedanceActionError": {
15333
+ "oneOf": [
15334
+ {
15335
+ "$ref": "#/components/schemas/VolcSeedanceError"
13936
15336
  },
13937
- "ProjectName": {
13938
- "type": "string",
13939
- "default": "default",
13940
- "description": "Must match the ProjectName used to create the token."
15337
+ {
15338
+ "$ref": "#/components/schemas/VolcVisualValidationError"
13941
15339
  }
13942
- },
13943
- "additionalProperties": false
15340
+ ]
13944
15341
  },
13945
- "VolcCreateVisualValidateSessionResponse": {
15342
+ "ChargedPriceBasis": {
13946
15343
  "type": "object",
13947
15344
  "required": [
13948
- "ResponseMetadata",
13949
- "Result"
15345
+ "version",
15346
+ "resolvedTier",
15347
+ "priceVersion",
15348
+ "measure",
15349
+ "effectiveUnitPrices"
13950
15350
  ],
13951
15351
  "properties": {
13952
- "ResponseMetadata": {
13953
- "$ref": "#/components/schemas/VolcVisualValidationResponseMetadata"
15352
+ "version": {
15353
+ "type": "integer",
15354
+ "enum": [
15355
+ 1
15356
+ ]
13954
15357
  },
13955
- "Result": {
15358
+ "resolvedTier": {
15359
+ "type": "string",
15360
+ "enum": [
15361
+ "verified",
15362
+ "official"
15363
+ ]
15364
+ },
15365
+ "priceVersion": {
15366
+ "type": "string"
15367
+ },
15368
+ "measure": {
13956
15369
  "type": "object",
13957
15370
  "required": [
13958
- "BytedToken",
13959
- "H5Link",
13960
- "CallbackURL"
15371
+ "unit",
15372
+ "quantity",
15373
+ "dimensions"
13961
15374
  ],
13962
15375
  "properties": {
13963
- "BytedToken": {
15376
+ "unit": {
13964
15377
  "type": "string"
13965
15378
  },
13966
- "H5Link": {
13967
- "type": "string",
13968
- "format": "uri"
15379
+ "quantity": {
15380
+ "type": "string"
13969
15381
  },
13970
- "CallbackURL": {
13971
- "type": "string",
13972
- "format": "uri"
15382
+ "dimensions": {
15383
+ "type": "object",
15384
+ "additionalProperties": {
15385
+ "oneOf": [
15386
+ {
15387
+ "type": "string"
15388
+ },
15389
+ {
15390
+ "type": "number"
15391
+ },
15392
+ {
15393
+ "type": "boolean"
15394
+ },
15395
+ {
15396
+ "type": "null"
15397
+ }
15398
+ ]
15399
+ }
13973
15400
  }
13974
15401
  },
13975
15402
  "additionalProperties": false
13976
- }
13977
- },
13978
- "additionalProperties": false
13979
- },
13980
- "VolcGetVisualValidateResultResponse": {
13981
- "type": "object",
13982
- "required": [
13983
- "ResponseMetadata",
13984
- "Result"
13985
- ],
13986
- "properties": {
13987
- "ResponseMetadata": {
13988
- "$ref": "#/components/schemas/VolcVisualValidationResponseMetadata"
13989
15403
  },
13990
- "Result": {
15404
+ "effectiveUnitPrices": {
13991
15405
  "type": "object",
13992
15406
  "required": [
13993
- "GroupId"
15407
+ "unit"
13994
15408
  ],
13995
15409
  "properties": {
13996
- "GroupId": {
13997
- "type": "string",
13998
- "pattern": "^group-[0-9]{14}-[a-z0-9]{5}$",
13999
- "description": "TokenLab-mapped real-person Asset Group ID returned after successful validation."
15410
+ "unit": {
15411
+ "type": "string"
15412
+ },
15413
+ "input": {
15414
+ "type": [
15415
+ "string",
15416
+ "null"
15417
+ ]
15418
+ },
15419
+ "output": {
15420
+ "type": [
15421
+ "string",
15422
+ "null"
15423
+ ]
15424
+ },
15425
+ "cacheRead": {
15426
+ "type": [
15427
+ "string",
15428
+ "null"
15429
+ ]
15430
+ },
15431
+ "cacheWrite": {
15432
+ "type": [
15433
+ "string",
15434
+ "null"
15435
+ ]
15436
+ },
15437
+ "cacheWrite1h": {
15438
+ "type": [
15439
+ "string",
15440
+ "null"
15441
+ ]
15442
+ },
15443
+ "fixed": {
15444
+ "type": [
15445
+ "string",
15446
+ "null"
15447
+ ]
15448
+ },
15449
+ "structured": {
15450
+ "anyOf": [
15451
+ {
15452
+ "type": "null"
15453
+ },
15454
+ {
15455
+ "type": "object",
15456
+ "additionalProperties": {
15457
+ "oneOf": [
15458
+ {
15459
+ "type": "string"
15460
+ },
15461
+ {
15462
+ "type": "number"
15463
+ },
15464
+ {
15465
+ "type": "boolean"
15466
+ },
15467
+ {
15468
+ "type": "null"
15469
+ }
15470
+ ]
15471
+ }
15472
+ }
15473
+ ]
14000
15474
  }
14001
15475
  },
14002
15476
  "additionalProperties": false
@@ -14004,242 +15478,307 @@
14004
15478
  },
14005
15479
  "additionalProperties": false
14006
15480
  },
14007
- "VolcMaterialActionRequest": {
15481
+ "WebhookEndpoint": {
14008
15482
  "type": "object",
14009
- "description": "PascalCase request body for the material Action selected by the Action query parameter. Required fields depend on the selected Action.",
15483
+ "required": [
15484
+ "id",
15485
+ "object",
15486
+ "url",
15487
+ "events",
15488
+ "is_active",
15489
+ "description",
15490
+ "created_at",
15491
+ "updated_at",
15492
+ "last_delivered_at",
15493
+ "failure_count"
15494
+ ],
14010
15495
  "properties": {
14011
- "Id": {
14012
- "type": "string",
14013
- "description": "Asset or Asset Group identifier for get, update, and delete Actions."
14014
- },
14015
- "Name": {
14016
- "type": "string",
14017
- "minLength": 1,
14018
- "maxLength": 64
14019
- },
14020
- "Description": {
14021
- "type": "string",
14022
- "maxLength": 300
14023
- },
14024
- "GroupType": {
14025
- "type": "string",
14026
- "enum": [
14027
- "AIGC",
14028
- "LivenessFace"
14029
- ]
14030
- },
14031
- "GroupId": {
15496
+ "id": {
14032
15497
  "type": "string"
14033
15498
  },
14034
- "URL": {
14035
- "type": "string",
14036
- "format": "uri"
14037
- },
14038
- "AssetType": {
15499
+ "object": {
14039
15500
  "type": "string",
14040
15501
  "enum": [
14041
- "Image",
14042
- "Video",
14043
- "Audio"
15502
+ "webhook_endpoint"
14044
15503
  ]
14045
15504
  },
14046
- "Filter": {
14047
- "type": "object",
14048
- "properties": {
14049
- "GroupIds": {
14050
- "type": "array",
14051
- "maxItems": 100,
14052
- "items": {
14053
- "type": "string"
14054
- }
14055
- },
14056
- "GroupType": {
14057
- "type": "string",
14058
- "enum": [
14059
- "AIGC",
14060
- "LivenessFace"
14061
- ]
14062
- },
14063
- "Statuses": {
14064
- "type": "array",
14065
- "items": {
14066
- "type": "string",
14067
- "enum": [
14068
- "Active",
14069
- "Processing",
14070
- "Failed"
14071
- ]
14072
- }
14073
- },
14074
- "Name": {
14075
- "type": "string",
14076
- "minLength": 1,
14077
- "maxLength": 64
14078
- }
14079
- },
14080
- "additionalProperties": false
14081
- },
14082
- "PageNumber": {
14083
- "type": "integer",
14084
- "minimum": 1,
14085
- "default": 1
15505
+ "url": {
15506
+ "type": "string"
14086
15507
  },
14087
- "PageSize": {
14088
- "type": "integer",
14089
- "minimum": 1,
14090
- "maximum": 100,
14091
- "default": 10
15508
+ "events": {
15509
+ "type": "array",
15510
+ "items": {
15511
+ "type": "string",
15512
+ "enum": [
15513
+ "task.completed",
15514
+ "task.failed",
15515
+ "task.timeout"
15516
+ ]
15517
+ }
14092
15518
  },
14093
- "SortBy": {
15519
+ "is_active": {
15520
+ "type": "boolean"
15521
+ },
15522
+ "description": {
15523
+ "type": [
15524
+ "string",
15525
+ "null"
15526
+ ]
15527
+ },
15528
+ "created_at": {
14094
15529
  "type": "string",
14095
- "enum": [
14096
- "CreateTime",
14097
- "UpdateTime",
14098
- "GroupId"
14099
- ],
14100
- "default": "CreateTime"
15530
+ "format": "date-time"
14101
15531
  },
14102
- "SortOrder": {
15532
+ "updated_at": {
14103
15533
  "type": "string",
14104
- "enum": [
14105
- "Desc",
14106
- "Asc"
15534
+ "format": "date-time"
15535
+ },
15536
+ "last_delivered_at": {
15537
+ "type": [
15538
+ "string",
15539
+ "null"
14107
15540
  ],
14108
- "default": "Desc"
15541
+ "format": "date-time"
14109
15542
  },
14110
- "ProjectName": {
14111
- "type": "string",
14112
- "minLength": 1,
14113
- "maxLength": 128,
14114
- "default": "default",
14115
- "description": "Project isolation scope within the authenticated organization."
15543
+ "failure_count": {
15544
+ "type": "integer"
14116
15545
  }
14117
15546
  },
14118
15547
  "additionalProperties": false
14119
15548
  },
14120
- "VolcMaterialResponseMetadata": {
15549
+ "CreatedWebhookEndpoint": {
14121
15550
  "type": "object",
14122
15551
  "required": [
14123
- "RequestId",
14124
- "Action",
14125
- "Version",
14126
- "Service",
14127
- "Region"
15552
+ "id",
15553
+ "object",
15554
+ "url",
15555
+ "events",
15556
+ "is_active",
15557
+ "description",
15558
+ "created_at",
15559
+ "updated_at",
15560
+ "last_delivered_at",
15561
+ "failure_count",
15562
+ "secret"
14128
15563
  ],
14129
15564
  "properties": {
14130
- "RequestId": {
15565
+ "id": {
14131
15566
  "type": "string"
14132
15567
  },
14133
- "Action": {
15568
+ "object": {
14134
15569
  "type": "string",
14135
15570
  "enum": [
14136
- "CreateAssetGroup",
14137
- "ListAssetGroups",
14138
- "GetAssetGroup",
14139
- "UpdateAssetGroup",
14140
- "DeleteAssetGroup",
14141
- "CreateAsset",
14142
- "ListAssets",
14143
- "GetAsset",
14144
- "UpdateAsset",
14145
- "DeleteAsset"
15571
+ "webhook_endpoint"
14146
15572
  ]
14147
15573
  },
14148
- "Version": {
14149
- "type": "string",
14150
- "enum": [
14151
- "2024-01-01"
15574
+ "url": {
15575
+ "type": "string"
15576
+ },
15577
+ "events": {
15578
+ "type": "array",
15579
+ "items": {
15580
+ "type": "string",
15581
+ "enum": [
15582
+ "task.completed",
15583
+ "task.failed",
15584
+ "task.timeout"
15585
+ ]
15586
+ }
15587
+ },
15588
+ "is_active": {
15589
+ "type": "boolean"
15590
+ },
15591
+ "description": {
15592
+ "type": [
15593
+ "string",
15594
+ "null"
14152
15595
  ]
14153
15596
  },
14154
- "Service": {
15597
+ "created_at": {
14155
15598
  "type": "string",
14156
- "enum": [
14157
- "ark"
14158
- ]
15599
+ "format": "date-time"
14159
15600
  },
14160
- "Region": {
15601
+ "updated_at": {
14161
15602
  "type": "string",
14162
- "enum": [
14163
- "cn-beijing"
14164
- ]
15603
+ "format": "date-time"
15604
+ },
15605
+ "last_delivered_at": {
15606
+ "type": [
15607
+ "string",
15608
+ "null"
15609
+ ],
15610
+ "format": "date-time"
15611
+ },
15612
+ "failure_count": {
15613
+ "type": "integer"
15614
+ },
15615
+ "secret": {
15616
+ "type": "string"
14165
15617
  }
14166
15618
  },
14167
15619
  "additionalProperties": false
14168
15620
  },
14169
- "VolcMaterialActionResponse": {
15621
+ "WebhookDelivery": {
14170
15622
  "type": "object",
14171
15623
  "required": [
14172
- "ResponseMetadata",
14173
- "Result"
15624
+ "id",
15625
+ "webhook_id",
15626
+ "delivery_id",
15627
+ "event_type",
15628
+ "outcome",
15629
+ "http_status",
15630
+ "attempts",
15631
+ "delivered_at",
15632
+ "created_at"
14174
15633
  ],
14175
15634
  "properties": {
14176
- "ResponseMetadata": {
14177
- "$ref": "#/components/schemas/VolcMaterialResponseMetadata"
15635
+ "id": {
15636
+ "type": "string"
14178
15637
  },
14179
- "Result": {
14180
- "type": "object",
14181
- "description": "Action-dependent result. List Actions return Items, TotalCount, PageNumber, and PageSize; create and update Actions return Id; delete Actions return an empty object.",
14182
- "additionalProperties": true
15638
+ "webhook_id": {
15639
+ "type": "string"
15640
+ },
15641
+ "delivery_id": {
15642
+ "type": "string"
15643
+ },
15644
+ "event_type": {
15645
+ "type": "string"
15646
+ },
15647
+ "outcome": {
15648
+ "type": "string",
15649
+ "enum": [
15650
+ "delivered",
15651
+ "failed"
15652
+ ]
15653
+ },
15654
+ "http_status": {
15655
+ "type": [
15656
+ "integer",
15657
+ "null"
15658
+ ]
15659
+ },
15660
+ "attempts": {
15661
+ "type": "integer"
15662
+ },
15663
+ "delivered_at": {
15664
+ "type": [
15665
+ "string",
15666
+ "null"
15667
+ ],
15668
+ "format": "date-time"
15669
+ },
15670
+ "created_at": {
15671
+ "type": "string",
15672
+ "format": "date-time"
14183
15673
  }
14184
15674
  },
14185
15675
  "additionalProperties": false
14186
15676
  },
14187
- "VolcVisualValidationError": {
15677
+ "WebhookEndpointList": {
14188
15678
  "type": "object",
14189
15679
  "required": [
14190
- "ResponseMetadata"
15680
+ "object",
15681
+ "data",
15682
+ "pagination"
14191
15683
  ],
14192
15684
  "properties": {
14193
- "ResponseMetadata": {
14194
- "type": "object",
14195
- "required": [
14196
- "RequestId",
14197
- "Action",
14198
- "Version",
14199
- "Service",
14200
- "Region",
14201
- "Error"
14202
- ],
14203
- "properties": {
14204
- "RequestId": {
14205
- "type": "string"
14206
- },
14207
- "Action": {
14208
- "type": "string"
14209
- },
14210
- "Version": {
14211
- "type": "string"
14212
- },
14213
- "Service": {
14214
- "type": "string",
14215
- "enum": [
14216
- "ark"
14217
- ]
14218
- },
14219
- "Region": {
14220
- "type": "string",
14221
- "enum": [
14222
- "cn-beijing"
14223
- ]
14224
- },
14225
- "Error": {
14226
- "type": "object",
14227
- "required": [
14228
- "Code",
14229
- "Message"
14230
- ],
14231
- "properties": {
14232
- "CodeN": {
14233
- "type": "integer"
14234
- },
14235
- "Code": {
14236
- "type": "string"
14237
- },
14238
- "Message": {
14239
- "type": "string"
15685
+ "object": {
15686
+ "type": "string",
15687
+ "enum": [
15688
+ "list"
15689
+ ]
15690
+ },
15691
+ "data": {
15692
+ "type": "array",
15693
+ "items": {
15694
+ "type": "object",
15695
+ "required": [
15696
+ "id",
15697
+ "object",
15698
+ "url",
15699
+ "events",
15700
+ "is_active",
15701
+ "description",
15702
+ "created_at",
15703
+ "updated_at",
15704
+ "last_delivered_at",
15705
+ "failure_count"
15706
+ ],
15707
+ "properties": {
15708
+ "id": {
15709
+ "type": "string"
15710
+ },
15711
+ "object": {
15712
+ "type": "string",
15713
+ "enum": [
15714
+ "webhook_endpoint"
15715
+ ]
15716
+ },
15717
+ "url": {
15718
+ "type": "string"
15719
+ },
15720
+ "events": {
15721
+ "type": "array",
15722
+ "items": {
15723
+ "type": "string",
15724
+ "enum": [
15725
+ "task.completed",
15726
+ "task.failed",
15727
+ "task.timeout"
15728
+ ]
14240
15729
  }
14241
15730
  },
14242
- "additionalProperties": false
15731
+ "is_active": {
15732
+ "type": "boolean"
15733
+ },
15734
+ "description": {
15735
+ "type": [
15736
+ "string",
15737
+ "null"
15738
+ ]
15739
+ },
15740
+ "created_at": {
15741
+ "type": "string",
15742
+ "format": "date-time"
15743
+ },
15744
+ "updated_at": {
15745
+ "type": "string",
15746
+ "format": "date-time"
15747
+ },
15748
+ "last_delivered_at": {
15749
+ "type": [
15750
+ "string",
15751
+ "null"
15752
+ ],
15753
+ "format": "date-time"
15754
+ },
15755
+ "failure_count": {
15756
+ "type": "integer"
15757
+ }
15758
+ },
15759
+ "additionalProperties": false
15760
+ }
15761
+ },
15762
+ "pagination": {
15763
+ "type": "object",
15764
+ "required": [
15765
+ "page",
15766
+ "limit",
15767
+ "total",
15768
+ "total_pages"
15769
+ ],
15770
+ "properties": {
15771
+ "page": {
15772
+ "type": "integer"
15773
+ },
15774
+ "limit": {
15775
+ "type": "integer"
15776
+ },
15777
+ "total": {
15778
+ "type": "integer"
15779
+ },
15780
+ "total_pages": {
15781
+ "type": "integer"
14243
15782
  }
14244
15783
  },
14245
15784
  "additionalProperties": false
@@ -14247,154 +15786,199 @@
14247
15786
  },
14248
15787
  "additionalProperties": false
14249
15788
  },
14250
- "VolcSeedanceActionError": {
14251
- "oneOf": [
14252
- {
14253
- "$ref": "#/components/schemas/VolcSeedanceError"
14254
- },
14255
- {
14256
- "$ref": "#/components/schemas/VolcVisualValidationError"
14257
- }
14258
- ]
14259
- },
14260
- "ChargedPriceBasis": {
15789
+ "WebhookDeliveryList": {
14261
15790
  "type": "object",
14262
15791
  "required": [
14263
- "version",
14264
- "resolvedTier",
14265
- "priceVersion",
14266
- "measure",
14267
- "effectiveUnitPrices"
15792
+ "object",
15793
+ "data",
15794
+ "pagination"
14268
15795
  ],
14269
15796
  "properties": {
14270
- "version": {
14271
- "type": "integer",
14272
- "enum": [
14273
- 1
14274
- ]
14275
- },
14276
- "resolvedTier": {
15797
+ "object": {
14277
15798
  "type": "string",
14278
15799
  "enum": [
14279
- "verified",
14280
- "official"
15800
+ "list"
14281
15801
  ]
14282
15802
  },
14283
- "priceVersion": {
14284
- "type": "string"
14285
- },
14286
- "measure": {
14287
- "type": "object",
14288
- "required": [
14289
- "unit",
14290
- "quantity",
14291
- "dimensions"
14292
- ],
14293
- "properties": {
14294
- "unit": {
14295
- "type": "string"
14296
- },
14297
- "quantity": {
14298
- "type": "string"
14299
- },
14300
- "dimensions": {
14301
- "type": "object",
14302
- "additionalProperties": {
14303
- "oneOf": [
14304
- {
14305
- "type": "string"
14306
- },
14307
- {
14308
- "type": "number"
14309
- },
14310
- {
14311
- "type": "boolean"
14312
- },
14313
- {
14314
- "type": "null"
14315
- }
15803
+ "data": {
15804
+ "type": "array",
15805
+ "items": {
15806
+ "type": "object",
15807
+ "required": [
15808
+ "id",
15809
+ "webhook_id",
15810
+ "delivery_id",
15811
+ "event_type",
15812
+ "outcome",
15813
+ "http_status",
15814
+ "attempts",
15815
+ "delivered_at",
15816
+ "created_at"
15817
+ ],
15818
+ "properties": {
15819
+ "id": {
15820
+ "type": "string"
15821
+ },
15822
+ "webhook_id": {
15823
+ "type": "string"
15824
+ },
15825
+ "delivery_id": {
15826
+ "type": "string"
15827
+ },
15828
+ "event_type": {
15829
+ "type": "string"
15830
+ },
15831
+ "outcome": {
15832
+ "type": "string",
15833
+ "enum": [
15834
+ "delivered",
15835
+ "failed"
15836
+ ]
15837
+ },
15838
+ "http_status": {
15839
+ "type": [
15840
+ "integer",
15841
+ "null"
14316
15842
  ]
15843
+ },
15844
+ "attempts": {
15845
+ "type": "integer"
15846
+ },
15847
+ "delivered_at": {
15848
+ "type": [
15849
+ "string",
15850
+ "null"
15851
+ ],
15852
+ "format": "date-time"
15853
+ },
15854
+ "created_at": {
15855
+ "type": "string",
15856
+ "format": "date-time"
14317
15857
  }
14318
- }
14319
- },
14320
- "additionalProperties": false
15858
+ },
15859
+ "additionalProperties": false
15860
+ }
14321
15861
  },
14322
- "effectiveUnitPrices": {
15862
+ "pagination": {
14323
15863
  "type": "object",
14324
15864
  "required": [
14325
- "unit"
15865
+ "page",
15866
+ "limit",
15867
+ "total",
15868
+ "total_pages"
14326
15869
  ],
14327
15870
  "properties": {
14328
- "unit": {
14329
- "type": "string"
14330
- },
14331
- "input": {
14332
- "type": [
14333
- "string",
14334
- "null"
14335
- ]
14336
- },
14337
- "output": {
14338
- "type": [
14339
- "string",
14340
- "null"
14341
- ]
14342
- },
14343
- "cacheRead": {
14344
- "type": [
14345
- "string",
14346
- "null"
14347
- ]
14348
- },
14349
- "cacheWrite": {
14350
- "type": [
14351
- "string",
14352
- "null"
14353
- ]
15871
+ "page": {
15872
+ "type": "integer"
14354
15873
  },
14355
- "cacheWrite1h": {
14356
- "type": [
14357
- "string",
14358
- "null"
14359
- ]
15874
+ "limit": {
15875
+ "type": "integer"
14360
15876
  },
14361
- "fixed": {
14362
- "type": [
14363
- "string",
14364
- "null"
14365
- ]
15877
+ "total": {
15878
+ "type": "integer"
14366
15879
  },
14367
- "structured": {
14368
- "anyOf": [
14369
- {
14370
- "type": "null"
14371
- },
14372
- {
14373
- "type": "object",
14374
- "additionalProperties": {
14375
- "oneOf": [
14376
- {
14377
- "type": "string"
14378
- },
14379
- {
14380
- "type": "number"
14381
- },
14382
- {
14383
- "type": "boolean"
14384
- },
14385
- {
14386
- "type": "null"
14387
- }
14388
- ]
14389
- }
14390
- }
14391
- ]
15880
+ "total_pages": {
15881
+ "type": "integer"
14392
15882
  }
14393
15883
  },
14394
15884
  "additionalProperties": false
14395
15885
  }
14396
15886
  },
14397
15887
  "additionalProperties": false
15888
+ },
15889
+ "DeletedWebhookEndpoint": {
15890
+ "type": "object",
15891
+ "required": [
15892
+ "id",
15893
+ "object",
15894
+ "deleted"
15895
+ ],
15896
+ "properties": {
15897
+ "id": {
15898
+ "type": "string"
15899
+ },
15900
+ "object": {
15901
+ "type": "string",
15902
+ "enum": [
15903
+ "webhook_endpoint"
15904
+ ]
15905
+ },
15906
+ "deleted": {
15907
+ "type": "boolean",
15908
+ "const": true
15909
+ }
15910
+ },
15911
+ "additionalProperties": false
15912
+ },
15913
+ "CreateWebhookEndpointRequest": {
15914
+ "type": "object",
15915
+ "additionalProperties": false,
15916
+ "required": [
15917
+ "url",
15918
+ "events"
15919
+ ],
15920
+ "properties": {
15921
+ "url": {
15922
+ "type": "string",
15923
+ "format": "uri",
15924
+ "description": "Public HTTPS receiver URL. Credentials, query strings, fragments, private or reserved network targets and redirects are rejected."
15925
+ },
15926
+ "events": {
15927
+ "type": "array",
15928
+ "minItems": 1,
15929
+ "maxItems": 10,
15930
+ "items": {
15931
+ "type": "string",
15932
+ "enum": [
15933
+ "task.completed",
15934
+ "task.failed",
15935
+ "task.timeout"
15936
+ ]
15937
+ },
15938
+ "description": "Supported event subscriptions; duplicates are removed."
15939
+ },
15940
+ "description": {
15941
+ "type": "string",
15942
+ "maxLength": 200
15943
+ }
15944
+ }
15945
+ },
15946
+ "UpdateWebhookEndpointRequest": {
15947
+ "type": "object",
15948
+ "additionalProperties": false,
15949
+ "minProperties": 1,
15950
+ "properties": {
15951
+ "url": {
15952
+ "type": "string",
15953
+ "format": "uri",
15954
+ "description": "Public HTTPS receiver URL. Credentials, query strings, fragments, private or reserved network targets and redirects are rejected."
15955
+ },
15956
+ "events": {
15957
+ "type": "array",
15958
+ "minItems": 1,
15959
+ "maxItems": 10,
15960
+ "items": {
15961
+ "type": "string",
15962
+ "enum": [
15963
+ "task.completed",
15964
+ "task.failed",
15965
+ "task.timeout"
15966
+ ]
15967
+ },
15968
+ "description": "Supported event subscriptions; duplicates are removed."
15969
+ },
15970
+ "description": {
15971
+ "type": [
15972
+ "string",
15973
+ "null"
15974
+ ],
15975
+ "maxLength": 200
15976
+ },
15977
+ "is_active": {
15978
+ "type": "boolean",
15979
+ "description": "Resume or pause delivery. Resuming resets the consecutive failure count."
15980
+ }
15981
+ }
14398
15982
  }
14399
15983
  },
14400
15984
  "responses": {