@talonic/docs 0.20.33 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/content.js +6141 -3760
- package/dist/seo.js +520 -206
- package/openapi.json +520 -206
- package/package.json +1 -1
package/dist/seo.js
CHANGED
|
@@ -6125,6 +6125,42 @@ var openapi_default = {
|
|
|
6125
6125
|
}
|
|
6126
6126
|
}
|
|
6127
6127
|
},
|
|
6128
|
+
"/v1/reference-data/{id}/csv": {
|
|
6129
|
+
get: {
|
|
6130
|
+
operationId: "downloadReferenceDataCsv",
|
|
6131
|
+
summary: "Download a reference dataset as CSV",
|
|
6132
|
+
description: "Returns the full dataset as a CSV file attachment.",
|
|
6133
|
+
tags: [
|
|
6134
|
+
"Reference Data"
|
|
6135
|
+
],
|
|
6136
|
+
parameters: [
|
|
6137
|
+
{
|
|
6138
|
+
$ref: "#/components/parameters/ResourceId"
|
|
6139
|
+
}
|
|
6140
|
+
],
|
|
6141
|
+
responses: {
|
|
6142
|
+
"200": {
|
|
6143
|
+
description: "CSV file (returned as an attachment via Content-Disposition).",
|
|
6144
|
+
content: {
|
|
6145
|
+
"text/csv": {
|
|
6146
|
+
schema: {
|
|
6147
|
+
type: "string"
|
|
6148
|
+
}
|
|
6149
|
+
}
|
|
6150
|
+
}
|
|
6151
|
+
},
|
|
6152
|
+
"401": {
|
|
6153
|
+
$ref: "#/components/responses/Unauthorized"
|
|
6154
|
+
},
|
|
6155
|
+
"404": {
|
|
6156
|
+
$ref: "#/components/responses/NotFound"
|
|
6157
|
+
},
|
|
6158
|
+
"429": {
|
|
6159
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
6160
|
+
}
|
|
6161
|
+
}
|
|
6162
|
+
}
|
|
6163
|
+
},
|
|
6128
6164
|
"/v1/usage": {
|
|
6129
6165
|
get: {
|
|
6130
6166
|
operationId: "getUsage",
|
|
@@ -7114,7 +7150,7 @@ var openapi_default = {
|
|
|
7114
7150
|
post: {
|
|
7115
7151
|
operationId: "nshotOverride",
|
|
7116
7152
|
summary: "Override an N-Shot value",
|
|
7117
|
-
description: "
|
|
7153
|
+
description: "Override an N-Shot cell for a document-field pair by selecting a specific shot's value.",
|
|
7118
7154
|
tags: [
|
|
7119
7155
|
"N-Shot"
|
|
7120
7156
|
],
|
|
@@ -7140,7 +7176,7 @@ var openapi_default = {
|
|
|
7140
7176
|
required: [
|
|
7141
7177
|
"document_id",
|
|
7142
7178
|
"field_name",
|
|
7143
|
-
"
|
|
7179
|
+
"selected_shot"
|
|
7144
7180
|
],
|
|
7145
7181
|
properties: {
|
|
7146
7182
|
document_id: {
|
|
@@ -7152,8 +7188,14 @@ var openapi_default = {
|
|
|
7152
7188
|
type: "string",
|
|
7153
7189
|
example: "invoice_number"
|
|
7154
7190
|
},
|
|
7155
|
-
|
|
7156
|
-
|
|
7191
|
+
selected_shot: {
|
|
7192
|
+
type: "integer",
|
|
7193
|
+
description: "Shot number (index) whose value should become the cell value.",
|
|
7194
|
+
example: 2
|
|
7195
|
+
},
|
|
7196
|
+
reason: {
|
|
7197
|
+
type: "string",
|
|
7198
|
+
description: "Optional human-readable reason for the override, stored in the audit trail."
|
|
7157
7199
|
}
|
|
7158
7200
|
}
|
|
7159
7201
|
}
|
|
@@ -7162,16 +7204,12 @@ var openapi_default = {
|
|
|
7162
7204
|
},
|
|
7163
7205
|
responses: {
|
|
7164
7206
|
"200": {
|
|
7165
|
-
description: "
|
|
7207
|
+
description: "The full updated comparison object, including the applied `override`.",
|
|
7166
7208
|
content: {
|
|
7167
7209
|
"application/json": {
|
|
7168
7210
|
schema: {
|
|
7169
7211
|
type: "object",
|
|
7170
|
-
|
|
7171
|
-
success: {
|
|
7172
|
-
type: "boolean"
|
|
7173
|
-
}
|
|
7174
|
-
}
|
|
7212
|
+
additionalProperties: true
|
|
7175
7213
|
}
|
|
7176
7214
|
}
|
|
7177
7215
|
}
|
|
@@ -7195,7 +7233,7 @@ var openapi_default = {
|
|
|
7195
7233
|
post: {
|
|
7196
7234
|
operationId: "nshotJudgeDecision",
|
|
7197
7235
|
summary: "Submit a judge decision for N-Shot",
|
|
7198
|
-
description: "
|
|
7236
|
+
description: "Accept or decline the LLM judge's recommendation for an N-Shot cell. Accepting applies the judge's recommended shot as an override.\n",
|
|
7199
7237
|
tags: [
|
|
7200
7238
|
"N-Shot"
|
|
7201
7239
|
],
|
|
@@ -7221,7 +7259,7 @@ var openapi_default = {
|
|
|
7221
7259
|
required: [
|
|
7222
7260
|
"document_id",
|
|
7223
7261
|
"field_name",
|
|
7224
|
-
"
|
|
7262
|
+
"accepted"
|
|
7225
7263
|
],
|
|
7226
7264
|
properties: {
|
|
7227
7265
|
document_id: {
|
|
@@ -7233,9 +7271,9 @@ var openapi_default = {
|
|
|
7233
7271
|
type: "string",
|
|
7234
7272
|
example: "invoice_number"
|
|
7235
7273
|
},
|
|
7236
|
-
|
|
7237
|
-
type: "
|
|
7238
|
-
description: "
|
|
7274
|
+
accepted: {
|
|
7275
|
+
type: "boolean",
|
|
7276
|
+
description: "Whether the judge recommendation is accepted (true) or declined (false)."
|
|
7239
7277
|
}
|
|
7240
7278
|
}
|
|
7241
7279
|
}
|
|
@@ -7244,16 +7282,12 @@ var openapi_default = {
|
|
|
7244
7282
|
},
|
|
7245
7283
|
responses: {
|
|
7246
7284
|
"200": {
|
|
7247
|
-
description: "
|
|
7285
|
+
description: "The full updated comparison object, including the recorded `judgement` (and `override` when accepted).",
|
|
7248
7286
|
content: {
|
|
7249
7287
|
"application/json": {
|
|
7250
7288
|
schema: {
|
|
7251
7289
|
type: "object",
|
|
7252
|
-
|
|
7253
|
-
success: {
|
|
7254
|
-
type: "boolean"
|
|
7255
|
-
}
|
|
7256
|
-
}
|
|
7290
|
+
additionalProperties: true
|
|
7257
7291
|
}
|
|
7258
7292
|
}
|
|
7259
7293
|
}
|
|
@@ -9428,34 +9462,57 @@ var openapi_default = {
|
|
|
9428
9462
|
get: {
|
|
9429
9463
|
operationId: "getCreditsBalance",
|
|
9430
9464
|
summary: "Get credit balance",
|
|
9431
|
-
description: "Returns the
|
|
9465
|
+
description: "Returns the enriched credit balance for the authenticated customer:\ncredit balance with EUR conversion, 30-day burn rate, projected runway,\nand API tier info.\n",
|
|
9432
9466
|
tags: [
|
|
9433
9467
|
"Credits"
|
|
9434
9468
|
],
|
|
9435
9469
|
responses: {
|
|
9436
9470
|
"200": {
|
|
9437
|
-
description: "
|
|
9471
|
+
description: "Enriched credit balance.",
|
|
9438
9472
|
content: {
|
|
9439
9473
|
"application/json": {
|
|
9440
9474
|
schema: {
|
|
9441
9475
|
type: "object",
|
|
9442
9476
|
required: [
|
|
9443
|
-
"
|
|
9444
|
-
"
|
|
9477
|
+
"balance_credits",
|
|
9478
|
+
"balance_eur",
|
|
9479
|
+
"burn_rate_30d_credits",
|
|
9480
|
+
"projected_runway_days",
|
|
9481
|
+
"tier",
|
|
9482
|
+
"tier_resets_at"
|
|
9445
9483
|
],
|
|
9446
9484
|
properties: {
|
|
9447
|
-
|
|
9485
|
+
balance_credits: {
|
|
9486
|
+
type: "integer",
|
|
9487
|
+
description: "Current credit balance.",
|
|
9488
|
+
example: 4200
|
|
9489
|
+
},
|
|
9490
|
+
balance_eur: {
|
|
9448
9491
|
type: "number",
|
|
9449
|
-
format: "float"
|
|
9492
|
+
format: "float",
|
|
9493
|
+
description: "Balance converted to EUR at the published credits-per-EUR rate.",
|
|
9494
|
+
example: 42
|
|
9450
9495
|
},
|
|
9451
|
-
|
|
9496
|
+
burn_rate_30d_credits: {
|
|
9497
|
+
type: "integer",
|
|
9498
|
+
description: "Credits consumed over the last 30 days.",
|
|
9499
|
+
example: 1500
|
|
9500
|
+
},
|
|
9501
|
+
projected_runway_days: {
|
|
9502
|
+
type: "integer",
|
|
9503
|
+
description: "Projected days until the balance is exhausted at the 30-day burn rate. -1 when there is no recent consumption.",
|
|
9504
|
+
example: 84
|
|
9505
|
+
},
|
|
9506
|
+
tier: {
|
|
9452
9507
|
type: "string",
|
|
9453
|
-
|
|
9508
|
+
description: "API tier of the organization.",
|
|
9509
|
+
example: "free"
|
|
9454
9510
|
},
|
|
9455
|
-
|
|
9511
|
+
tier_resets_at: {
|
|
9456
9512
|
type: "string",
|
|
9457
9513
|
format: "date-time",
|
|
9458
|
-
|
|
9514
|
+
description: "Start of the next monthly tier period (1st of next month, UTC).",
|
|
9515
|
+
example: "2026-05-01T00:00:00.000Z"
|
|
9459
9516
|
}
|
|
9460
9517
|
}
|
|
9461
9518
|
}
|
|
@@ -9475,19 +9532,31 @@ var openapi_default = {
|
|
|
9475
9532
|
get: {
|
|
9476
9533
|
operationId: "getCreditsHistory",
|
|
9477
9534
|
summary: "Get credit history",
|
|
9478
|
-
description: "Returns credit transaction history (purchases,
|
|
9535
|
+
description: "Returns credit transaction history (purchases, consumption, adjustments, bonuses), most recent first, with page/limit pagination.",
|
|
9479
9536
|
tags: [
|
|
9480
9537
|
"Credits"
|
|
9481
9538
|
],
|
|
9482
9539
|
parameters: [
|
|
9483
9540
|
{
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9541
|
+
name: "page",
|
|
9542
|
+
in: "query",
|
|
9543
|
+
schema: {
|
|
9544
|
+
type: "integer",
|
|
9545
|
+
minimum: 1,
|
|
9546
|
+
default: 1
|
|
9547
|
+
},
|
|
9548
|
+
description: "Page number (1-based)."
|
|
9488
9549
|
},
|
|
9489
9550
|
{
|
|
9490
|
-
|
|
9551
|
+
name: "limit",
|
|
9552
|
+
in: "query",
|
|
9553
|
+
schema: {
|
|
9554
|
+
type: "integer",
|
|
9555
|
+
minimum: 1,
|
|
9556
|
+
maximum: 100,
|
|
9557
|
+
default: 20
|
|
9558
|
+
},
|
|
9559
|
+
description: "Items per page (max 100)."
|
|
9491
9560
|
}
|
|
9492
9561
|
],
|
|
9493
9562
|
responses: {
|
|
@@ -9496,48 +9565,79 @@ var openapi_default = {
|
|
|
9496
9565
|
content: {
|
|
9497
9566
|
"application/json": {
|
|
9498
9567
|
schema: {
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9568
|
+
type: "object",
|
|
9569
|
+
required: [
|
|
9570
|
+
"items",
|
|
9571
|
+
"total",
|
|
9572
|
+
"page",
|
|
9573
|
+
"limit"
|
|
9574
|
+
],
|
|
9575
|
+
properties: {
|
|
9576
|
+
items: {
|
|
9577
|
+
type: "array",
|
|
9578
|
+
items: {
|
|
9579
|
+
type: "object",
|
|
9580
|
+
properties: {
|
|
9581
|
+
id: {
|
|
9582
|
+
type: "string",
|
|
9583
|
+
format: "uuid",
|
|
9584
|
+
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
9585
|
+
},
|
|
9586
|
+
customer_id: {
|
|
9587
|
+
type: "string",
|
|
9588
|
+
format: "uuid"
|
|
9589
|
+
},
|
|
9590
|
+
user_id: {
|
|
9591
|
+
type: [
|
|
9592
|
+
"string",
|
|
9593
|
+
"null"
|
|
9594
|
+
],
|
|
9595
|
+
format: "uuid"
|
|
9596
|
+
},
|
|
9597
|
+
amount: {
|
|
9598
|
+
type: "integer",
|
|
9599
|
+
description: "Credit amount. Positive = credit, negative = debit."
|
|
9600
|
+
},
|
|
9601
|
+
type: {
|
|
9602
|
+
type: "string",
|
|
9603
|
+
description: "Transaction type: purchase, consumption, adjustment, bonus."
|
|
9604
|
+
},
|
|
9605
|
+
description: {
|
|
9606
|
+
type: [
|
|
9607
|
+
"string",
|
|
9608
|
+
"null"
|
|
9609
|
+
]
|
|
9610
|
+
},
|
|
9611
|
+
operation_type: {
|
|
9612
|
+
type: [
|
|
9613
|
+
"string",
|
|
9614
|
+
"null"
|
|
9615
|
+
],
|
|
9616
|
+
description: "Pipeline stage that consumed credits, if applicable."
|
|
9617
|
+
},
|
|
9618
|
+
metadata: {
|
|
9509
9619
|
type: "object",
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
type: {
|
|
9517
|
-
type: "string",
|
|
9518
|
-
description: "Transaction type: purchase, deduction, adjustment, refund."
|
|
9519
|
-
},
|
|
9520
|
-
amount: {
|
|
9521
|
-
type: "number",
|
|
9522
|
-
format: "float"
|
|
9523
|
-
},
|
|
9524
|
-
description: {
|
|
9525
|
-
type: [
|
|
9526
|
-
"string",
|
|
9527
|
-
"null"
|
|
9528
|
-
]
|
|
9529
|
-
},
|
|
9530
|
-
created_at: {
|
|
9531
|
-
type: "string",
|
|
9532
|
-
format: "date-time",
|
|
9533
|
-
example: "2026-04-25T14:30:00.000Z"
|
|
9534
|
-
}
|
|
9535
|
-
}
|
|
9620
|
+
additionalProperties: true
|
|
9621
|
+
},
|
|
9622
|
+
created_at: {
|
|
9623
|
+
type: "string",
|
|
9624
|
+
format: "date-time",
|
|
9625
|
+
example: "2026-04-25T14:30:00.000Z"
|
|
9536
9626
|
}
|
|
9537
9627
|
}
|
|
9538
9628
|
}
|
|
9629
|
+
},
|
|
9630
|
+
total: {
|
|
9631
|
+
type: "integer",
|
|
9632
|
+
description: "Total number of transactions."
|
|
9633
|
+
},
|
|
9634
|
+
page: {
|
|
9635
|
+
type: "integer"
|
|
9636
|
+
},
|
|
9637
|
+
limit: {
|
|
9638
|
+
type: "integer"
|
|
9539
9639
|
}
|
|
9540
|
-
|
|
9640
|
+
}
|
|
9541
9641
|
}
|
|
9542
9642
|
}
|
|
9543
9643
|
}
|
|
@@ -9554,60 +9654,73 @@ var openapi_default = {
|
|
|
9554
9654
|
"/v1/credits/usage": {
|
|
9555
9655
|
get: {
|
|
9556
9656
|
operationId: "getCreditsUsage",
|
|
9557
|
-
summary: "Get
|
|
9558
|
-
description: "Returns
|
|
9657
|
+
summary: "Get usage statistics",
|
|
9658
|
+
description: "Returns aggregated API usage stats grouped by operation type and model over the given period.",
|
|
9559
9659
|
tags: [
|
|
9560
9660
|
"Credits"
|
|
9561
9661
|
],
|
|
9562
9662
|
parameters: [
|
|
9563
9663
|
{
|
|
9564
|
-
name: "
|
|
9565
|
-
in: "query",
|
|
9566
|
-
schema: {
|
|
9567
|
-
type: "string",
|
|
9568
|
-
format: "date-time"
|
|
9569
|
-
},
|
|
9570
|
-
description: "Start of the period (ISO 8601)."
|
|
9571
|
-
},
|
|
9572
|
-
{
|
|
9573
|
-
name: "to",
|
|
9664
|
+
name: "days",
|
|
9574
9665
|
in: "query",
|
|
9575
9666
|
schema: {
|
|
9576
|
-
type: "
|
|
9577
|
-
|
|
9667
|
+
type: "integer",
|
|
9668
|
+
default: 30
|
|
9578
9669
|
},
|
|
9579
|
-
description: "
|
|
9670
|
+
description: "Reporting window in days."
|
|
9580
9671
|
}
|
|
9581
9672
|
],
|
|
9582
9673
|
responses: {
|
|
9583
9674
|
"200": {
|
|
9584
|
-
description: "
|
|
9675
|
+
description: "Aggregated usage stats.",
|
|
9585
9676
|
content: {
|
|
9586
9677
|
"application/json": {
|
|
9587
9678
|
schema: {
|
|
9588
9679
|
type: "object",
|
|
9680
|
+
required: [
|
|
9681
|
+
"stats",
|
|
9682
|
+
"period_days"
|
|
9683
|
+
],
|
|
9589
9684
|
properties: {
|
|
9590
|
-
|
|
9591
|
-
type: "number",
|
|
9592
|
-
format: "float"
|
|
9593
|
-
},
|
|
9594
|
-
breakdown: {
|
|
9685
|
+
stats: {
|
|
9595
9686
|
type: "array",
|
|
9596
9687
|
items: {
|
|
9597
9688
|
type: "object",
|
|
9598
9689
|
properties: {
|
|
9599
|
-
|
|
9690
|
+
operation_type: {
|
|
9600
9691
|
type: "string"
|
|
9601
9692
|
},
|
|
9602
|
-
|
|
9603
|
-
type: "
|
|
9604
|
-
format: "float"
|
|
9693
|
+
model: {
|
|
9694
|
+
type: "string"
|
|
9605
9695
|
},
|
|
9606
9696
|
call_count: {
|
|
9607
9697
|
type: "integer"
|
|
9698
|
+
},
|
|
9699
|
+
total_input_tokens: {
|
|
9700
|
+
type: "string",
|
|
9701
|
+
description: "Summed input tokens (serialized as a string)."
|
|
9702
|
+
},
|
|
9703
|
+
total_output_tokens: {
|
|
9704
|
+
type: "string",
|
|
9705
|
+
description: "Summed output tokens (serialized as a string)."
|
|
9706
|
+
},
|
|
9707
|
+
total_cache_read_tokens: {
|
|
9708
|
+
type: "string",
|
|
9709
|
+
description: "Summed cache-read tokens (serialized as a string)."
|
|
9710
|
+
},
|
|
9711
|
+
total_cost_usd: {
|
|
9712
|
+
type: [
|
|
9713
|
+
"string",
|
|
9714
|
+
"null"
|
|
9715
|
+
],
|
|
9716
|
+
description: "Estimated total cost in USD (serialized as a string)."
|
|
9608
9717
|
}
|
|
9609
9718
|
}
|
|
9610
9719
|
}
|
|
9720
|
+
},
|
|
9721
|
+
period_days: {
|
|
9722
|
+
type: "integer",
|
|
9723
|
+
example: 30
|
|
9611
9724
|
}
|
|
9612
9725
|
}
|
|
9613
9726
|
}
|
|
@@ -9626,56 +9739,53 @@ var openapi_default = {
|
|
|
9626
9739
|
"/v1/credits/usage/daily": {
|
|
9627
9740
|
get: {
|
|
9628
9741
|
operationId: "getCreditsUsageDaily",
|
|
9629
|
-
summary: "Get daily
|
|
9630
|
-
description: "Returns per-day
|
|
9742
|
+
summary: "Get daily usage breakdown",
|
|
9743
|
+
description: "Returns per-day API usage for the specified period (default last 30 days) as a JSON array.",
|
|
9631
9744
|
tags: [
|
|
9632
9745
|
"Credits"
|
|
9633
9746
|
],
|
|
9634
9747
|
parameters: [
|
|
9635
9748
|
{
|
|
9636
|
-
name: "
|
|
9637
|
-
in: "query",
|
|
9638
|
-
schema: {
|
|
9639
|
-
type: "string",
|
|
9640
|
-
format: "date-time"
|
|
9641
|
-
},
|
|
9642
|
-
description: "Start of the period (ISO 8601)."
|
|
9643
|
-
},
|
|
9644
|
-
{
|
|
9645
|
-
name: "to",
|
|
9749
|
+
name: "days",
|
|
9646
9750
|
in: "query",
|
|
9647
9751
|
schema: {
|
|
9648
|
-
type: "
|
|
9649
|
-
|
|
9752
|
+
type: "integer",
|
|
9753
|
+
default: 30
|
|
9650
9754
|
},
|
|
9651
|
-
description: "
|
|
9755
|
+
description: "Reporting window in days."
|
|
9652
9756
|
}
|
|
9653
9757
|
],
|
|
9654
9758
|
responses: {
|
|
9655
9759
|
"200": {
|
|
9656
|
-
description: "Daily
|
|
9760
|
+
description: "Daily usage breakdown.",
|
|
9657
9761
|
content: {
|
|
9658
9762
|
"application/json": {
|
|
9659
9763
|
schema: {
|
|
9660
|
-
type: "
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
type: "
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9764
|
+
type: "array",
|
|
9765
|
+
items: {
|
|
9766
|
+
type: "object",
|
|
9767
|
+
properties: {
|
|
9768
|
+
date: {
|
|
9769
|
+
type: "string",
|
|
9770
|
+
format: "date"
|
|
9771
|
+
},
|
|
9772
|
+
calls: {
|
|
9773
|
+
type: "integer"
|
|
9774
|
+
},
|
|
9775
|
+
input_tokens: {
|
|
9776
|
+
type: "string",
|
|
9777
|
+
description: "Summed input tokens for the day (serialized as a string)."
|
|
9778
|
+
},
|
|
9779
|
+
output_tokens: {
|
|
9780
|
+
type: "string",
|
|
9781
|
+
description: "Summed output tokens for the day (serialized as a string)."
|
|
9782
|
+
},
|
|
9783
|
+
cost_usd: {
|
|
9784
|
+
type: [
|
|
9785
|
+
"string",
|
|
9786
|
+
"null"
|
|
9787
|
+
],
|
|
9788
|
+
description: "Estimated cost in USD for the day (serialized as a string)."
|
|
9679
9789
|
}
|
|
9680
9790
|
}
|
|
9681
9791
|
}
|
|
@@ -9696,19 +9806,31 @@ var openapi_default = {
|
|
|
9696
9806
|
get: {
|
|
9697
9807
|
operationId: "getCreditsUsageLog",
|
|
9698
9808
|
summary: "Get credit usage log",
|
|
9699
|
-
description: "Returns a detailed per-request usage log with model, tokens, and cost.",
|
|
9809
|
+
description: "Returns a detailed per-request usage log with model, tokens, and cost, most recent first, with page/limit pagination.",
|
|
9700
9810
|
tags: [
|
|
9701
9811
|
"Credits"
|
|
9702
9812
|
],
|
|
9703
9813
|
parameters: [
|
|
9704
9814
|
{
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9815
|
+
name: "page",
|
|
9816
|
+
in: "query",
|
|
9817
|
+
schema: {
|
|
9818
|
+
type: "integer",
|
|
9819
|
+
minimum: 1,
|
|
9820
|
+
default: 1
|
|
9821
|
+
},
|
|
9822
|
+
description: "Page number (1-based)."
|
|
9709
9823
|
},
|
|
9710
9824
|
{
|
|
9711
|
-
|
|
9825
|
+
name: "limit",
|
|
9826
|
+
in: "query",
|
|
9827
|
+
schema: {
|
|
9828
|
+
type: "integer",
|
|
9829
|
+
minimum: 1,
|
|
9830
|
+
maximum: 100,
|
|
9831
|
+
default: 20
|
|
9832
|
+
},
|
|
9833
|
+
description: "Items per page (max 100)."
|
|
9712
9834
|
}
|
|
9713
9835
|
],
|
|
9714
9836
|
responses: {
|
|
@@ -9717,48 +9839,75 @@ var openapi_default = {
|
|
|
9717
9839
|
content: {
|
|
9718
9840
|
"application/json": {
|
|
9719
9841
|
schema: {
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9842
|
+
type: "object",
|
|
9843
|
+
required: [
|
|
9844
|
+
"items",
|
|
9845
|
+
"total",
|
|
9846
|
+
"page",
|
|
9847
|
+
"limit"
|
|
9848
|
+
],
|
|
9849
|
+
properties: {
|
|
9850
|
+
items: {
|
|
9851
|
+
type: "array",
|
|
9852
|
+
items: {
|
|
9853
|
+
type: "object",
|
|
9854
|
+
properties: {
|
|
9855
|
+
id: {
|
|
9856
|
+
type: "string",
|
|
9857
|
+
format: "uuid"
|
|
9858
|
+
},
|
|
9859
|
+
customer_id: {
|
|
9860
|
+
type: "string",
|
|
9861
|
+
format: "uuid"
|
|
9862
|
+
},
|
|
9863
|
+
model: {
|
|
9864
|
+
type: "string"
|
|
9865
|
+
},
|
|
9866
|
+
input_tokens: {
|
|
9867
|
+
type: "integer"
|
|
9868
|
+
},
|
|
9869
|
+
output_tokens: {
|
|
9870
|
+
type: "integer"
|
|
9871
|
+
},
|
|
9872
|
+
cache_read_tokens: {
|
|
9873
|
+
type: "integer"
|
|
9874
|
+
},
|
|
9875
|
+
cost_estimate_usd: {
|
|
9876
|
+
type: [
|
|
9877
|
+
"string",
|
|
9878
|
+
"null"
|
|
9879
|
+
],
|
|
9880
|
+
description: "Estimated cost in USD (serialized as a string)."
|
|
9881
|
+
},
|
|
9882
|
+
operation_type: {
|
|
9883
|
+
type: "string"
|
|
9884
|
+
},
|
|
9885
|
+
document_id: {
|
|
9886
|
+
type: [
|
|
9887
|
+
"string",
|
|
9888
|
+
"null"
|
|
9889
|
+
],
|
|
9890
|
+
format: "uuid"
|
|
9891
|
+
},
|
|
9892
|
+
created_at: {
|
|
9893
|
+
type: "string",
|
|
9894
|
+
format: "date-time",
|
|
9895
|
+
example: "2026-04-25T14:30:00.000Z"
|
|
9757
9896
|
}
|
|
9758
9897
|
}
|
|
9759
9898
|
}
|
|
9899
|
+
},
|
|
9900
|
+
total: {
|
|
9901
|
+
type: "integer",
|
|
9902
|
+
description: "Total number of log entries."
|
|
9903
|
+
},
|
|
9904
|
+
page: {
|
|
9905
|
+
type: "integer"
|
|
9906
|
+
},
|
|
9907
|
+
limit: {
|
|
9908
|
+
type: "integer"
|
|
9760
9909
|
}
|
|
9761
|
-
|
|
9910
|
+
}
|
|
9762
9911
|
}
|
|
9763
9912
|
}
|
|
9764
9913
|
}
|
|
@@ -11465,7 +11614,7 @@ var openapi_default = {
|
|
|
11465
11614
|
get: {
|
|
11466
11615
|
operationId: "getReviewStats",
|
|
11467
11616
|
summary: "Get review queue statistics",
|
|
11468
|
-
description: "Returns aggregate
|
|
11617
|
+
description: "Returns aggregate review queue counts grouped by status.",
|
|
11469
11618
|
tags: [
|
|
11470
11619
|
"Review"
|
|
11471
11620
|
],
|
|
@@ -11476,18 +11625,27 @@ var openapi_default = {
|
|
|
11476
11625
|
"application/json": {
|
|
11477
11626
|
schema: {
|
|
11478
11627
|
type: "object",
|
|
11628
|
+
required: [
|
|
11629
|
+
"total",
|
|
11630
|
+
"by_status"
|
|
11631
|
+
],
|
|
11479
11632
|
properties: {
|
|
11480
|
-
pending: {
|
|
11481
|
-
type: "integer"
|
|
11482
|
-
},
|
|
11483
|
-
approved: {
|
|
11484
|
-
type: "integer"
|
|
11485
|
-
},
|
|
11486
|
-
rejected: {
|
|
11487
|
-
type: "integer"
|
|
11488
|
-
},
|
|
11489
11633
|
total: {
|
|
11490
|
-
type: "integer"
|
|
11634
|
+
type: "integer",
|
|
11635
|
+
description: "Total number of review records.",
|
|
11636
|
+
example: 42
|
|
11637
|
+
},
|
|
11638
|
+
by_status: {
|
|
11639
|
+
type: "object",
|
|
11640
|
+
description: "Count of review records per status (e.g. pending, approved, rejected).",
|
|
11641
|
+
additionalProperties: {
|
|
11642
|
+
type: "integer"
|
|
11643
|
+
},
|
|
11644
|
+
example: {
|
|
11645
|
+
pending: 12,
|
|
11646
|
+
approved: 25,
|
|
11647
|
+
rejected: 5
|
|
11648
|
+
}
|
|
11491
11649
|
}
|
|
11492
11650
|
}
|
|
11493
11651
|
}
|
|
@@ -12809,12 +12967,12 @@ var openapi_default = {
|
|
|
12809
12967
|
description: "Filter by value layer"
|
|
12810
12968
|
},
|
|
12811
12969
|
{
|
|
12812
|
-
name: "
|
|
12970
|
+
name: "kind",
|
|
12813
12971
|
in: "query",
|
|
12814
12972
|
schema: {
|
|
12815
12973
|
type: "string"
|
|
12816
12974
|
},
|
|
12817
|
-
description: "Filter by source
|
|
12975
|
+
description: "Filter by source kind (e.g. structuring_run, resolution_run, data_product)"
|
|
12818
12976
|
},
|
|
12819
12977
|
{
|
|
12820
12978
|
$ref: "#/components/parameters/Limit"
|
|
@@ -12931,14 +13089,34 @@ var openapi_default = {
|
|
|
12931
13089
|
field_key: {
|
|
12932
13090
|
type: "string"
|
|
12933
13091
|
},
|
|
12934
|
-
|
|
13092
|
+
display_name: {
|
|
13093
|
+
type: "string"
|
|
13094
|
+
},
|
|
13095
|
+
data_type: {
|
|
12935
13096
|
type: "string"
|
|
12936
13097
|
},
|
|
12937
|
-
|
|
13098
|
+
position: {
|
|
12938
13099
|
type: "integer"
|
|
13100
|
+
},
|
|
13101
|
+
is_required: {
|
|
13102
|
+
type: "boolean"
|
|
13103
|
+
},
|
|
13104
|
+
is_hidden: {
|
|
13105
|
+
type: "boolean"
|
|
12939
13106
|
}
|
|
12940
13107
|
}
|
|
12941
13108
|
}
|
|
13109
|
+
},
|
|
13110
|
+
links: {
|
|
13111
|
+
type: "object",
|
|
13112
|
+
properties: {
|
|
13113
|
+
self: {
|
|
13114
|
+
type: "string"
|
|
13115
|
+
},
|
|
13116
|
+
record_set: {
|
|
13117
|
+
type: "string"
|
|
13118
|
+
}
|
|
13119
|
+
}
|
|
12942
13120
|
}
|
|
12943
13121
|
}
|
|
12944
13122
|
}
|
|
@@ -12976,6 +13154,7 @@ var openapi_default = {
|
|
|
12976
13154
|
in: "query",
|
|
12977
13155
|
schema: {
|
|
12978
13156
|
type: "integer",
|
|
13157
|
+
minimum: 1,
|
|
12979
13158
|
default: 1
|
|
12980
13159
|
}
|
|
12981
13160
|
},
|
|
@@ -12984,9 +13163,21 @@ var openapi_default = {
|
|
|
12984
13163
|
in: "query",
|
|
12985
13164
|
schema: {
|
|
12986
13165
|
type: "integer",
|
|
12987
|
-
|
|
12988
|
-
maximum:
|
|
13166
|
+
minimum: 1,
|
|
13167
|
+
maximum: 100,
|
|
13168
|
+
default: 20
|
|
12989
13169
|
}
|
|
13170
|
+
},
|
|
13171
|
+
{
|
|
13172
|
+
name: "include",
|
|
13173
|
+
in: "query",
|
|
13174
|
+
schema: {
|
|
13175
|
+
type: "string",
|
|
13176
|
+
enum: [
|
|
13177
|
+
"values"
|
|
13178
|
+
]
|
|
13179
|
+
},
|
|
13180
|
+
description: "Pass `include=values` to attach each record's latest-version cell values keyed by field key. A cell held for review (`pending_approval`) reports its status with a null value.\n"
|
|
12990
13181
|
}
|
|
12991
13182
|
],
|
|
12992
13183
|
responses: {
|
|
@@ -13001,7 +13192,58 @@ var openapi_default = {
|
|
|
13001
13192
|
type: "array",
|
|
13002
13193
|
items: {
|
|
13003
13194
|
type: "object",
|
|
13004
|
-
|
|
13195
|
+
properties: {
|
|
13196
|
+
id: {
|
|
13197
|
+
type: "string",
|
|
13198
|
+
format: "uuid"
|
|
13199
|
+
},
|
|
13200
|
+
document_id: {
|
|
13201
|
+
type: [
|
|
13202
|
+
"string",
|
|
13203
|
+
"null"
|
|
13204
|
+
],
|
|
13205
|
+
format: "uuid"
|
|
13206
|
+
},
|
|
13207
|
+
ordinal: {
|
|
13208
|
+
type: "integer"
|
|
13209
|
+
},
|
|
13210
|
+
record_key: {
|
|
13211
|
+
type: [
|
|
13212
|
+
"string",
|
|
13213
|
+
"null"
|
|
13214
|
+
]
|
|
13215
|
+
},
|
|
13216
|
+
status: {
|
|
13217
|
+
type: "string"
|
|
13218
|
+
},
|
|
13219
|
+
confidence: {
|
|
13220
|
+
type: [
|
|
13221
|
+
"number",
|
|
13222
|
+
"null"
|
|
13223
|
+
]
|
|
13224
|
+
},
|
|
13225
|
+
values: {
|
|
13226
|
+
type: "object",
|
|
13227
|
+
description: "Only present with `include=values`. Map of field key to the record's latest cell value.\n",
|
|
13228
|
+
additionalProperties: {
|
|
13229
|
+
type: "object",
|
|
13230
|
+
properties: {
|
|
13231
|
+
value: {
|
|
13232
|
+
description: "Cell value. Null when the cell is held for review."
|
|
13233
|
+
},
|
|
13234
|
+
status: {
|
|
13235
|
+
type: "string"
|
|
13236
|
+
},
|
|
13237
|
+
confidence: {
|
|
13238
|
+
type: [
|
|
13239
|
+
"number",
|
|
13240
|
+
"null"
|
|
13241
|
+
]
|
|
13242
|
+
}
|
|
13243
|
+
}
|
|
13244
|
+
}
|
|
13245
|
+
}
|
|
13246
|
+
}
|
|
13005
13247
|
}
|
|
13006
13248
|
},
|
|
13007
13249
|
pagination: {
|
|
@@ -13020,6 +13262,17 @@ var openapi_default = {
|
|
|
13020
13262
|
type: "boolean"
|
|
13021
13263
|
}
|
|
13022
13264
|
}
|
|
13265
|
+
},
|
|
13266
|
+
links: {
|
|
13267
|
+
type: "object",
|
|
13268
|
+
properties: {
|
|
13269
|
+
self: {
|
|
13270
|
+
type: "string"
|
|
13271
|
+
},
|
|
13272
|
+
record_set: {
|
|
13273
|
+
type: "string"
|
|
13274
|
+
}
|
|
13275
|
+
}
|
|
13023
13276
|
}
|
|
13024
13277
|
}
|
|
13025
13278
|
}
|
|
@@ -13061,14 +13314,52 @@ var openapi_default = {
|
|
|
13061
13314
|
schema: {
|
|
13062
13315
|
type: "object",
|
|
13063
13316
|
properties: {
|
|
13064
|
-
|
|
13065
|
-
type: "
|
|
13066
|
-
|
|
13067
|
-
|
|
13068
|
-
|
|
13317
|
+
record_set_id: {
|
|
13318
|
+
type: "string",
|
|
13319
|
+
format: "uuid"
|
|
13320
|
+
},
|
|
13321
|
+
name: {
|
|
13322
|
+
type: "string"
|
|
13069
13323
|
},
|
|
13070
13324
|
total: {
|
|
13071
13325
|
type: "integer"
|
|
13326
|
+
},
|
|
13327
|
+
records: {
|
|
13328
|
+
type: "array",
|
|
13329
|
+
items: {
|
|
13330
|
+
type: "object",
|
|
13331
|
+
properties: {
|
|
13332
|
+
id: {
|
|
13333
|
+
type: "string",
|
|
13334
|
+
format: "uuid"
|
|
13335
|
+
},
|
|
13336
|
+
document_id: {
|
|
13337
|
+
type: [
|
|
13338
|
+
"string",
|
|
13339
|
+
"null"
|
|
13340
|
+
],
|
|
13341
|
+
format: "uuid"
|
|
13342
|
+
},
|
|
13343
|
+
ordinal: {
|
|
13344
|
+
type: "integer"
|
|
13345
|
+
},
|
|
13346
|
+
record_key: {
|
|
13347
|
+
type: [
|
|
13348
|
+
"string",
|
|
13349
|
+
"null"
|
|
13350
|
+
]
|
|
13351
|
+
},
|
|
13352
|
+
status: {
|
|
13353
|
+
type: "string"
|
|
13354
|
+
},
|
|
13355
|
+
confidence: {
|
|
13356
|
+
type: [
|
|
13357
|
+
"number",
|
|
13358
|
+
"null"
|
|
13359
|
+
]
|
|
13360
|
+
}
|
|
13361
|
+
}
|
|
13362
|
+
}
|
|
13072
13363
|
}
|
|
13073
13364
|
}
|
|
13074
13365
|
}
|
|
@@ -24255,15 +24546,21 @@ var openapi_default = {
|
|
|
24255
24546
|
"product"
|
|
24256
24547
|
]
|
|
24257
24548
|
},
|
|
24258
|
-
|
|
24259
|
-
type: "string"
|
|
24549
|
+
kind: {
|
|
24550
|
+
type: "string",
|
|
24551
|
+
description: "Source kind (e.g. structuring_run, resolution_run, data_product)."
|
|
24260
24552
|
},
|
|
24261
24553
|
source_id: {
|
|
24262
|
-
type:
|
|
24263
|
-
|
|
24554
|
+
type: [
|
|
24555
|
+
"string",
|
|
24556
|
+
"null"
|
|
24557
|
+
],
|
|
24558
|
+
format: "uuid",
|
|
24559
|
+
description: "Owning run/product ID where applicable."
|
|
24264
24560
|
},
|
|
24265
24561
|
status: {
|
|
24266
|
-
type: "string"
|
|
24562
|
+
type: "string",
|
|
24563
|
+
description: "Lifecycle state (e.g. active)."
|
|
24267
24564
|
},
|
|
24268
24565
|
record_count: {
|
|
24269
24566
|
type: "integer"
|
|
@@ -24274,6 +24571,23 @@ var openapi_default = {
|
|
|
24274
24571
|
created_at: {
|
|
24275
24572
|
type: "string",
|
|
24276
24573
|
format: "date-time"
|
|
24574
|
+
},
|
|
24575
|
+
links: {
|
|
24576
|
+
type: "object",
|
|
24577
|
+
properties: {
|
|
24578
|
+
self: {
|
|
24579
|
+
type: "string"
|
|
24580
|
+
},
|
|
24581
|
+
fields: {
|
|
24582
|
+
type: "string"
|
|
24583
|
+
},
|
|
24584
|
+
records: {
|
|
24585
|
+
type: "string"
|
|
24586
|
+
},
|
|
24587
|
+
export: {
|
|
24588
|
+
type: "string"
|
|
24589
|
+
}
|
|
24590
|
+
}
|
|
24277
24591
|
}
|
|
24278
24592
|
}
|
|
24279
24593
|
}
|