@xberg-io/sdk 0.12.0 → 0.13.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/index.d.ts CHANGED
@@ -667,6 +667,27 @@ interface paths$1 {
667
667
  patch?: never;
668
668
  trace?: never;
669
669
  };
670
+ "/v1/jobs/{job_id}/pages": {
671
+ parameters: {
672
+ query?: never;
673
+ header?: never;
674
+ path?: never;
675
+ cookie?: never;
676
+ };
677
+ /**
678
+ * List persisted page images for a job in its authorized project.
679
+ * @description The list can be sparse. The same project authorization and result retention rules apply
680
+ * to the inventory and individual image reads.
681
+ */
682
+ get: operations$2["get_job_page_inventory"];
683
+ put?: never;
684
+ post?: never;
685
+ delete?: never;
686
+ options?: never;
687
+ head?: never;
688
+ patch?: never;
689
+ trace?: never;
690
+ };
670
691
  "/v1/jobs/{job_id}/pages/{page_number}": {
671
692
  parameters: {
672
693
  query?: never;
@@ -5875,6 +5896,11 @@ interface components$1 {
5875
5896
  /** @description Open-access license URI from the article's `<license>` element. */
5876
5897
  license?: string | null;
5877
5898
  };
5899
+ /** @description Page numbers of the objects that are actually present. */
5900
+ JobPageInventory: {
5901
+ /** @description Sorted, unique, positive page numbers. An empty list means no rasters have been stored. */
5902
+ pages: number[];
5903
+ };
5878
5904
  /**
5879
5905
  * @description The result envelope `GET /v1/jobs/{id}/result` serves on both tiers.
5880
5906
  *
@@ -13211,6 +13237,139 @@ interface operations$2 {
13211
13237
  };
13212
13238
  };
13213
13239
  };
13240
+ get_job_page_inventory: {
13241
+ parameters: {
13242
+ query?: {
13243
+ /** @description Project to read; sessions require current membership, API keys remain scoped to their own project */
13244
+ project_id?: string;
13245
+ };
13246
+ header?: never;
13247
+ path: {
13248
+ /** @description Extraction job ID (UUID) */
13249
+ job_id: string;
13250
+ };
13251
+ cookie?: never;
13252
+ };
13253
+ requestBody?: never;
13254
+ responses: {
13255
+ /** @description Available page image numbers */
13256
+ 200: {
13257
+ headers: {
13258
+ [name: string]: unknown;
13259
+ };
13260
+ content: {
13261
+ "application/json": components$1["schemas"]["JobPageInventory"];
13262
+ };
13263
+ };
13264
+ /** @description Invalid job ID or project selector */
13265
+ 400: {
13266
+ headers: {
13267
+ [name: string]: unknown;
13268
+ };
13269
+ content: {
13270
+ "application/json": components$1["schemas"]["ErrorResponse"];
13271
+ };
13272
+ };
13273
+ /** @description Unauthorized */
13274
+ 401: {
13275
+ headers: {
13276
+ [name: string]: unknown;
13277
+ };
13278
+ content: {
13279
+ "application/json": components$1["schemas"]["ErrorResponse"];
13280
+ };
13281
+ };
13282
+ /** @description Credential cannot read the selected project or job */
13283
+ 403: {
13284
+ headers: {
13285
+ [name: string]: unknown;
13286
+ };
13287
+ content: {
13288
+ "application/json": components$1["schemas"]["ErrorResponse"];
13289
+ };
13290
+ };
13291
+ /** @description Job or project not visible, or result not published */
13292
+ 404: {
13293
+ headers: {
13294
+ [name: string]: unknown;
13295
+ };
13296
+ content: {
13297
+ "application/json": components$1["schemas"]["ErrorResponse"];
13298
+ };
13299
+ };
13300
+ /** @description Job does not support page images */
13301
+ 409: {
13302
+ headers: {
13303
+ [name: string]: unknown;
13304
+ };
13305
+ content: {
13306
+ "application/json": components$1["schemas"]["ErrorResponse"];
13307
+ };
13308
+ };
13309
+ /** @description Job result has expired */
13310
+ 410: {
13311
+ headers: {
13312
+ [name: string]: unknown;
13313
+ };
13314
+ content: {
13315
+ "application/json": components$1["schemas"]["ErrorResponse"];
13316
+ };
13317
+ };
13318
+ /** @description Inventory exceeds the supported size or request fails validation */
13319
+ 422: {
13320
+ headers: {
13321
+ [name: string]: unknown;
13322
+ };
13323
+ content: {
13324
+ "application/json": components$1["schemas"]["ErrorResponse"];
13325
+ };
13326
+ };
13327
+ /** @description Rate limit exceeded for this caller. The body is the shared error envelope with code `rate_limited`; `Retry-After` and the `x-ratelimit-*` headers carry the wait. */
13328
+ 429: {
13329
+ headers: {
13330
+ /** @description Seconds until this request may be retried. */
13331
+ "Retry-After"?: number;
13332
+ /** @description Seconds until the rate-limit bucket admits another request. */
13333
+ "x-ratelimit-after"?: number;
13334
+ /** @description Maximum requests allowed in the current rate-limit burst. */
13335
+ "x-ratelimit-limit"?: number;
13336
+ /** @description Requests remaining in the current rate-limit burst. */
13337
+ "x-ratelimit-remaining"?: number;
13338
+ [name: string]: unknown;
13339
+ };
13340
+ content: {
13341
+ "application/json": components$1["schemas"]["ErrorResponse"];
13342
+ };
13343
+ };
13344
+ /** @description Inventory lookup failed */
13345
+ 500: {
13346
+ headers: {
13347
+ [name: string]: unknown;
13348
+ };
13349
+ content: {
13350
+ "application/json": components$1["schemas"]["ErrorResponse"];
13351
+ };
13352
+ };
13353
+ /** @description Inventory or session authentication temporarily unavailable */
13354
+ 503: {
13355
+ headers: {
13356
+ [name: string]: unknown;
13357
+ };
13358
+ content: {
13359
+ "application/json": components$1["schemas"]["ErrorResponse"];
13360
+ };
13361
+ };
13362
+ /** @description The server did not produce a response in time (`details.limit` is `handler`) */
13363
+ 504: {
13364
+ headers: {
13365
+ [name: string]: unknown;
13366
+ };
13367
+ content: {
13368
+ "application/json": components$1["schemas"]["TimeoutErrorResponse"];
13369
+ };
13370
+ };
13371
+ };
13372
+ };
13214
13373
  get_job_page: {
13215
13374
  parameters: {
13216
13375
  query?: never;
@@ -21198,7 +21357,8 @@ interface paths$2 {
21198
21357
  * refused with `422` rather than answered with an unrendered page.
21199
21358
  *
21200
21359
  * Accepts `application/json` or the equivalent `multipart/form-data` form
21201
- * shape; a multipart body carries documents only.
21360
+ * shape; a multipart body carries documents only. Use `/v1/extract/keyed` when
21361
+ * submitting with an `Idempotency-Key`.
21202
21362
  */
21203
21363
  post: operations$1["extract"];
21204
21364
  delete?: never;
@@ -21207,6 +21367,28 @@ interface paths$2 {
21207
21367
  patch?: never;
21208
21368
  trace?: never;
21209
21369
  };
21370
+ "/v1/extract/keyed": {
21371
+ parameters: {
21372
+ query?: never;
21373
+ header?: never;
21374
+ path?: never;
21375
+ cookie?: never;
21376
+ };
21377
+ get?: never;
21378
+ put?: never;
21379
+ /**
21380
+ * Accept one retryable inline batch on the qualified replicated S3 profile.
21381
+ * @description Submit inline bytes as JSON or multipart. Multipart requests may supply
21382
+ * `options` and per-file `config-<filename>` text parts containing JSON.
21383
+ * Callbacks, external sources, existing-document lineage and crawl are refused.
21384
+ */
21385
+ post: operations$1["extract_keyed"];
21386
+ delete?: never;
21387
+ options?: never;
21388
+ head?: never;
21389
+ patch?: never;
21390
+ trace?: never;
21391
+ };
21210
21392
  "/v1/jobs": {
21211
21393
  parameters: {
21212
21394
  query?: never;
@@ -23950,6 +24132,8 @@ interface components$2 {
23950
24132
  generation_id: string;
23951
24133
  /** Format: uuid */
23952
24134
  installation_id: string;
24135
+ /** Format: uuid */
24136
+ instance_id?: string | null;
23953
24137
  maintenance: boolean;
23954
24138
  registered: boolean;
23955
24139
  retired: boolean;
@@ -26335,6 +26519,17 @@ interface components$2 {
26335
26519
  key: string;
26336
26520
  value: string;
26337
26521
  };
26522
+ /**
26523
+ * @description Multipart body for a retryable keyed extraction. Repeat the binary part
26524
+ * for each file. Use `X-Project-ID` to select an authorized project and
26525
+ * `config-<filename>` for an optional JSON per-file configuration.
26526
+ */
26527
+ KeyedExtractMultipartForm: {
26528
+ /** @description Inline files with filenames and document Content-Types. */
26529
+ file: string[];
26530
+ /** @description Optional `options` part with JSON-encoded extraction options. */
26531
+ options?: components$2["schemas"]["ExtractionOptions"];
26532
+ };
26338
26533
  /** @description Extracted keyword with metadata. */
26339
26534
  Keyword: {
26340
26535
  /** @description Algorithm that extracted this keyword. */
@@ -31926,7 +32121,7 @@ interface operations$1 {
31926
32121
  "application/json": components$2["schemas"]["ErrorResponse"];
31927
32122
  };
31928
32123
  };
31929
- /** @description Crawl extraction is not available on this instance */
32124
+ /** @description Crawl extraction is unavailable or extraction intake is closed */
31930
32125
  503: {
31931
32126
  headers: {
31932
32127
  [name: string]: unknown;
@@ -31946,32 +32141,35 @@ interface operations$1 {
31946
32141
  };
31947
32142
  };
31948
32143
  };
31949
- list_jobs: {
32144
+ extract_keyed: {
31950
32145
  parameters: {
31951
- query?: {
31952
- /** @description Page size (default 50, max 100). */
31953
- limit?: number;
31954
- /** @description Offset for pagination (default 0, clamped to a maximum of 1,000,000). */
31955
- offset?: number;
31956
- /** @description Project to read. Absent reads the credential's own project. */
31957
- project_id?: string;
32146
+ query?: never;
32147
+ header: {
32148
+ /** @description Required project-scoped retry key; reuse it only with the same input and effective configuration. */
32149
+ "Idempotency-Key": string;
32150
+ /** @description Optional authorized project for either content type. A JSON body project_id takes precedence. */
32151
+ "X-Project-ID"?: string | null;
31958
32152
  };
31959
- header?: never;
31960
32153
  path?: never;
31961
32154
  cookie?: never;
31962
32155
  };
31963
- requestBody?: never;
32156
+ requestBody: {
32157
+ content: {
32158
+ "application/json": components$2["schemas"]["ExtractRequest"];
32159
+ "multipart/form-data": components$2["schemas"]["KeyedExtractMultipartForm"];
32160
+ };
32161
+ };
31964
32162
  responses: {
31965
- /** @description Jobs for the project */
31966
- 200: {
32163
+ /** @description Jobs accepted or an accepted response replayed */
32164
+ 202: {
31967
32165
  headers: {
31968
32166
  [name: string]: unknown;
31969
32167
  };
31970
32168
  content: {
31971
- "application/json": components$2["schemas"]["ListJobsResponse"];
32169
+ "application/json": components$2["schemas"]["ExtractResponse"];
31972
32170
  };
31973
32171
  };
31974
- /** @description Invalid request */
32172
+ /** @description Missing or invalid key, or unsupported request; X-Project-ID must be a UUID */
31975
32173
  400: {
31976
32174
  headers: {
31977
32175
  [name: string]: unknown;
@@ -31989,7 +32187,16 @@ interface operations$1 {
31989
32187
  "application/json": components$2["schemas"]["ErrorResponse"];
31990
32188
  };
31991
32189
  };
31992
- /** @description Requested project not visible to the caller */
32190
+ /** @description The API key is read-only */
32191
+ 403: {
32192
+ headers: {
32193
+ [name: string]: unknown;
32194
+ };
32195
+ content: {
32196
+ "application/json": components$2["schemas"]["ErrorResponse"];
32197
+ };
32198
+ };
32199
+ /** @description Project not visible to the caller */
31993
32200
  404: {
31994
32201
  headers: {
31995
32202
  [name: string]: unknown;
@@ -31998,7 +32205,43 @@ interface operations$1 {
31998
32205
  "application/json": components$2["schemas"]["ErrorResponse"];
31999
32206
  };
32000
32207
  };
32001
- /** @description Rate limit exceeded for this caller. The body is the shared error envelope with code `rate_limited`; `Retry-After` and the `x-ratelimit-*` headers carry the wait. */
32208
+ /** @description The request body stopped arriving before the upload completed (`details.limit` is `body_idle`) */
32209
+ 408: {
32210
+ headers: {
32211
+ [name: string]: unknown;
32212
+ };
32213
+ content: {
32214
+ "application/json": components$2["schemas"]["TimeoutErrorResponse"];
32215
+ };
32216
+ };
32217
+ /** @description Idempotency key conflicts, is in progress, or expired */
32218
+ 409: {
32219
+ headers: {
32220
+ [name: string]: unknown;
32221
+ };
32222
+ content: {
32223
+ "application/json": components$2["schemas"]["ErrorResponse"];
32224
+ };
32225
+ };
32226
+ /** @description Request exceeds the configured upload limit */
32227
+ 413: {
32228
+ headers: {
32229
+ [name: string]: unknown;
32230
+ };
32231
+ content: {
32232
+ "application/json": components$2["schemas"]["ErrorResponse"];
32233
+ };
32234
+ };
32235
+ /** @description The request body was not sent with Content-Type: application/json */
32236
+ 415: {
32237
+ headers: {
32238
+ [name: string]: unknown;
32239
+ };
32240
+ content: {
32241
+ "application/json": components$2["schemas"]["ErrorResponse"];
32242
+ };
32243
+ };
32244
+ /** @description Project monthly extraction quota exhausted */
32002
32245
  429: {
32003
32246
  headers: {
32004
32247
  /** @description Seconds until this request may be retried. */
@@ -32015,16 +32258,7 @@ interface operations$1 {
32015
32258
  "application/json": components$2["schemas"]["ErrorResponse"];
32016
32259
  };
32017
32260
  };
32018
- /** @description Persistence error */
32019
- 500: {
32020
- headers: {
32021
- [name: string]: unknown;
32022
- };
32023
- content: {
32024
- "application/json": components$2["schemas"]["ErrorResponse"];
32025
- };
32026
- };
32027
- /** @description Session authentication is temporarily unavailable */
32261
+ /** @description Keyed extraction is unavailable */
32028
32262
  503: {
32029
32263
  headers: {
32030
32264
  [name: string]: unknown;
@@ -32044,31 +32278,32 @@ interface operations$1 {
32044
32278
  };
32045
32279
  };
32046
32280
  };
32047
- get_job: {
32281
+ list_jobs: {
32048
32282
  parameters: {
32049
32283
  query?: {
32284
+ /** @description Page size (default 50, max 100). */
32285
+ limit?: number;
32286
+ /** @description Offset for pagination (default 0, clamped to a maximum of 1,000,000). */
32287
+ offset?: number;
32050
32288
  /** @description Project to read. Absent reads the credential's own project. */
32051
32289
  project_id?: string;
32052
32290
  };
32053
32291
  header?: never;
32054
- path: {
32055
- /** @description Job ID (UUID) */
32056
- id: string;
32057
- };
32292
+ path?: never;
32058
32293
  cookie?: never;
32059
32294
  };
32060
32295
  requestBody?: never;
32061
32296
  responses: {
32062
- /** @description Job metadata */
32297
+ /** @description Jobs for the project */
32063
32298
  200: {
32064
32299
  headers: {
32065
32300
  [name: string]: unknown;
32066
32301
  };
32067
32302
  content: {
32068
- "application/json": components$2["schemas"]["GetJobResponse"];
32303
+ "application/json": components$2["schemas"]["ListJobsResponse"];
32069
32304
  };
32070
32305
  };
32071
- /** @description Invalid job ID */
32306
+ /** @description Invalid request */
32072
32307
  400: {
32073
32308
  headers: {
32074
32309
  [name: string]: unknown;
@@ -32086,7 +32321,104 @@ interface operations$1 {
32086
32321
  "application/json": components$2["schemas"]["ErrorResponse"];
32087
32322
  };
32088
32323
  };
32089
- /** @description Job or project not visible to the caller */
32324
+ /** @description Requested project not visible to the caller */
32325
+ 404: {
32326
+ headers: {
32327
+ [name: string]: unknown;
32328
+ };
32329
+ content: {
32330
+ "application/json": components$2["schemas"]["ErrorResponse"];
32331
+ };
32332
+ };
32333
+ /** @description Rate limit exceeded for this caller. The body is the shared error envelope with code `rate_limited`; `Retry-After` and the `x-ratelimit-*` headers carry the wait. */
32334
+ 429: {
32335
+ headers: {
32336
+ /** @description Seconds until this request may be retried. */
32337
+ "Retry-After"?: number;
32338
+ /** @description Seconds until the rate-limit bucket admits another request. */
32339
+ "x-ratelimit-after"?: number;
32340
+ /** @description Maximum requests allowed in the current rate-limit burst. */
32341
+ "x-ratelimit-limit"?: number;
32342
+ /** @description Requests remaining in the current rate-limit burst. */
32343
+ "x-ratelimit-remaining"?: number;
32344
+ [name: string]: unknown;
32345
+ };
32346
+ content: {
32347
+ "application/json": components$2["schemas"]["ErrorResponse"];
32348
+ };
32349
+ };
32350
+ /** @description Persistence error */
32351
+ 500: {
32352
+ headers: {
32353
+ [name: string]: unknown;
32354
+ };
32355
+ content: {
32356
+ "application/json": components$2["schemas"]["ErrorResponse"];
32357
+ };
32358
+ };
32359
+ /** @description Session authentication is temporarily unavailable */
32360
+ 503: {
32361
+ headers: {
32362
+ [name: string]: unknown;
32363
+ };
32364
+ content: {
32365
+ "application/json": components$2["schemas"]["ErrorResponse"];
32366
+ };
32367
+ };
32368
+ /** @description The server did not produce a response in time (`details.limit` is `handler`) */
32369
+ 504: {
32370
+ headers: {
32371
+ [name: string]: unknown;
32372
+ };
32373
+ content: {
32374
+ "application/json": components$2["schemas"]["TimeoutErrorResponse"];
32375
+ };
32376
+ };
32377
+ };
32378
+ };
32379
+ get_job: {
32380
+ parameters: {
32381
+ query?: {
32382
+ /** @description Project to read. Absent reads the credential's own project. */
32383
+ project_id?: string;
32384
+ };
32385
+ header?: never;
32386
+ path: {
32387
+ /** @description Job ID (UUID) */
32388
+ id: string;
32389
+ };
32390
+ cookie?: never;
32391
+ };
32392
+ requestBody?: never;
32393
+ responses: {
32394
+ /** @description Job metadata */
32395
+ 200: {
32396
+ headers: {
32397
+ [name: string]: unknown;
32398
+ };
32399
+ content: {
32400
+ "application/json": components$2["schemas"]["GetJobResponse"];
32401
+ };
32402
+ };
32403
+ /** @description Invalid job ID */
32404
+ 400: {
32405
+ headers: {
32406
+ [name: string]: unknown;
32407
+ };
32408
+ content: {
32409
+ "application/json": components$2["schemas"]["ErrorResponse"];
32410
+ };
32411
+ };
32412
+ /** @description Unauthorized */
32413
+ 401: {
32414
+ headers: {
32415
+ [name: string]: unknown;
32416
+ };
32417
+ content: {
32418
+ "application/json": components$2["schemas"]["ErrorResponse"];
32419
+ };
32420
+ };
32421
+ /** @description Job or project not visible to the caller */
32090
32422
  404: {
32091
32423
  headers: {
32092
32424
  [name: string]: unknown;
@@ -39204,71 +39536,6 @@ interface paths {
39204
39536
  patch?: never;
39205
39537
  trace?: never;
39206
39538
  };
39207
- "/v1/projects/{id}/billing": {
39208
- parameters: {
39209
- query?: never;
39210
- header?: never;
39211
- path?: never;
39212
- cookie?: never;
39213
- };
39214
- /**
39215
- * Get billing and quota information for a project
39216
- * @description Returns the project's plan limits, current usage for the billing period,
39217
- * and remaining quota. Useful for rendering usage progress bars on the
39218
- * frontend dashboard.
39219
- */
39220
- get: operations["get_billing"];
39221
- put?: never;
39222
- post?: never;
39223
- delete?: never;
39224
- options?: never;
39225
- head?: never;
39226
- patch?: never;
39227
- trace?: never;
39228
- };
39229
- "/v1/projects/{id}/billing/checkout": {
39230
- parameters: {
39231
- query?: never;
39232
- header?: never;
39233
- path?: never;
39234
- cookie?: never;
39235
- };
39236
- get?: never;
39237
- put?: never;
39238
- /**
39239
- * Create a Stripe Checkout Session for a project
39240
- * @description Creates (or reuses) a Stripe customer for the project and opens a
39241
- * Checkout Session in subscription mode so the user can add a payment
39242
- * method and subscribe to the standard plan.
39243
- */
39244
- post: operations["create_checkout"];
39245
- delete?: never;
39246
- options?: never;
39247
- head?: never;
39248
- patch?: never;
39249
- trace?: never;
39250
- };
39251
- "/v1/projects/{id}/billing/portal": {
39252
- parameters: {
39253
- query?: never;
39254
- header?: never;
39255
- path?: never;
39256
- cookie?: never;
39257
- };
39258
- get?: never;
39259
- put?: never;
39260
- /**
39261
- * Create a Stripe Customer Portal Session for a project
39262
- * @description Opens a Customer Portal session so the user can manage their subscription,
39263
- * update payment methods, or view billing history.
39264
- */
39265
- post: operations["create_portal"];
39266
- delete?: never;
39267
- options?: never;
39268
- head?: never;
39269
- patch?: never;
39270
- trace?: never;
39271
- };
39272
39539
  "/v1/projects/{id}/integrations": {
39273
39540
  parameters: {
39274
39541
  query?: never;
@@ -48305,260 +48572,32 @@ interface operations {
48305
48572
  };
48306
48573
  };
48307
48574
  };
48308
- create_api_key: {
48309
- parameters: {
48310
- query?: never;
48311
- header?: never;
48312
- path: {
48313
- /** @description Project ID */
48314
- id: string;
48315
- };
48316
- cookie?: never;
48317
- };
48318
- requestBody: {
48319
- content: {
48320
- "application/json": components["schemas"]["CreateApiKeyRequest"];
48321
- };
48322
- };
48323
- responses: {
48324
- /** @description API key created */
48325
- 201: {
48326
- headers: {
48327
- [name: string]: unknown;
48328
- };
48329
- content: {
48330
- "application/json": components["schemas"]["CreateApiKeyResponse"];
48331
- };
48332
- };
48333
- /** @description Validation failed */
48334
- 400: {
48335
- headers: {
48336
- [name: string]: unknown;
48337
- };
48338
- content: {
48339
- "application/json": components["schemas"]["ErrorResponse"];
48340
- };
48341
- };
48342
- /** @description Unauthorized - no auth token */
48343
- 401: {
48344
- headers: {
48345
- [name: string]: unknown;
48346
- };
48347
- content: {
48348
- "application/json": components["schemas"]["ErrorResponse"];
48349
- };
48350
- };
48351
- /** @description Forbidden - user not owner */
48352
- 403: {
48353
- headers: {
48354
- [name: string]: unknown;
48355
- };
48356
- content: {
48357
- "application/json": components["schemas"]["ErrorResponse"];
48358
- };
48359
- };
48360
- /** @description Project not found */
48361
- 404: {
48362
- headers: {
48363
- [name: string]: unknown;
48364
- };
48365
- content: {
48366
- "application/json": components["schemas"]["ErrorResponse"];
48367
- };
48368
- };
48369
- /** @description The request body stopped arriving before the upload completed (`details.limit` is `body_idle`) */
48370
- 408: {
48371
- headers: {
48372
- [name: string]: unknown;
48373
- };
48374
- content: {
48375
- "application/json": components["schemas"]["TimeoutErrorResponse"];
48376
- };
48377
- };
48378
- /** @description The request body is larger than this deployment accepts */
48379
- 413: {
48380
- headers: {
48381
- [name: string]: unknown;
48382
- };
48383
- content: {
48384
- "application/json": components["schemas"]["ErrorResponse"];
48385
- };
48386
- };
48387
- /** @description The request body was not sent with Content-Type: application/json */
48388
- 415: {
48389
- headers: {
48390
- [name: string]: unknown;
48391
- };
48392
- content: {
48393
- "application/json": components["schemas"]["ErrorResponse"];
48394
- };
48395
- };
48396
- /** @description Rate limit exceeded for this caller. The body is the shared error envelope with code `rate_limited`; `Retry-After` and the `x-ratelimit-*` headers carry the wait. */
48397
- 429: {
48398
- headers: {
48399
- /** @description Seconds until this request may be retried. */
48400
- "Retry-After"?: number;
48401
- /** @description Seconds until the rate-limit bucket admits another request. */
48402
- "x-ratelimit-after"?: number;
48403
- /** @description Maximum requests allowed in the current rate-limit burst. */
48404
- "x-ratelimit-limit"?: number;
48405
- /** @description Requests remaining in the current rate-limit burst. */
48406
- "x-ratelimit-remaining"?: number;
48407
- [name: string]: unknown;
48408
- };
48409
- content: {
48410
- "application/json": components["schemas"]["ErrorResponse"];
48411
- };
48412
- };
48413
- /** @description The server did not produce a response in time (`details.limit` is `handler`) */
48414
- 504: {
48415
- headers: {
48416
- [name: string]: unknown;
48417
- };
48418
- content: {
48419
- "application/json": components["schemas"]["TimeoutErrorResponse"];
48420
- };
48421
- };
48422
- };
48423
- };
48424
- create_role_bound_api_key: {
48425
- parameters: {
48426
- query?: never;
48427
- header?: never;
48428
- path: {
48429
- /** @description Project ID */
48430
- id: string;
48431
- };
48432
- cookie?: never;
48433
- };
48434
- requestBody: {
48435
- content: {
48436
- "application/json": components["schemas"]["CreateRoleBoundApiKeyRequest"];
48437
- };
48438
- };
48439
- responses: {
48440
- /** @description Role-bound key issued */
48441
- 201: {
48442
- headers: {
48443
- [name: string]: unknown;
48444
- };
48445
- content: {
48446
- "application/json": components["schemas"]["CreateApiKeyResponse"];
48447
- };
48448
- };
48449
- /** @description Invalid key configuration */
48450
- 400: {
48451
- headers: {
48452
- [name: string]: unknown;
48453
- };
48454
- content: {
48455
- "application/json": components["schemas"]["ErrorResponse"];
48456
- };
48457
- };
48458
- /** @description Authentication required */
48459
- 401: {
48460
- headers: {
48461
- [name: string]: unknown;
48462
- };
48463
- content: {
48464
- "application/json": components["schemas"]["ErrorResponse"];
48465
- };
48466
- };
48467
- /** @description A project owner's user session is required */
48468
- 403: {
48469
- headers: {
48470
- [name: string]: unknown;
48471
- };
48472
- content: {
48473
- "application/json": components["schemas"]["ErrorResponse"];
48474
- };
48475
- };
48476
- /** @description Project or role not found */
48477
- 404: {
48478
- headers: {
48479
- [name: string]: unknown;
48480
- };
48481
- content: {
48482
- "application/json": components["schemas"]["ErrorResponse"];
48483
- };
48484
- };
48485
- /** @description The request body stopped arriving before the upload completed (`details.limit` is `body_idle`) */
48486
- 408: {
48487
- headers: {
48488
- [name: string]: unknown;
48489
- };
48490
- content: {
48491
- "application/json": components["schemas"]["TimeoutErrorResponse"];
48492
- };
48493
- };
48494
- /** @description The request body is larger than this deployment accepts */
48495
- 413: {
48496
- headers: {
48497
- [name: string]: unknown;
48498
- };
48499
- content: {
48500
- "application/json": components["schemas"]["ErrorResponse"];
48501
- };
48502
- };
48503
- /** @description The request body was not sent with Content-Type: application/json */
48504
- 415: {
48505
- headers: {
48506
- [name: string]: unknown;
48507
- };
48508
- content: {
48509
- "application/json": components["schemas"]["ErrorResponse"];
48510
- };
48511
- };
48512
- /** @description Rate limit exceeded for this caller. The body is the shared error envelope with code `rate_limited`; `Retry-After` and the `x-ratelimit-*` headers carry the wait. */
48513
- 429: {
48514
- headers: {
48515
- /** @description Seconds until this request may be retried. */
48516
- "Retry-After"?: number;
48517
- /** @description Seconds until the rate-limit bucket admits another request. */
48518
- "x-ratelimit-after"?: number;
48519
- /** @description Maximum requests allowed in the current rate-limit burst. */
48520
- "x-ratelimit-limit"?: number;
48521
- /** @description Requests remaining in the current rate-limit burst. */
48522
- "x-ratelimit-remaining"?: number;
48523
- [name: string]: unknown;
48524
- };
48525
- content: {
48526
- "application/json": components["schemas"]["ErrorResponse"];
48527
- };
48528
- };
48529
- /** @description The server did not produce a response in time (`details.limit` is `handler`) */
48530
- 504: {
48531
- headers: {
48532
- [name: string]: unknown;
48533
- };
48534
- content: {
48535
- "application/json": components["schemas"]["TimeoutErrorResponse"];
48536
- };
48537
- };
48538
- };
48539
- };
48540
- revoke_api_key: {
48575
+ create_api_key: {
48541
48576
  parameters: {
48542
48577
  query?: never;
48543
48578
  header?: never;
48544
48579
  path: {
48545
48580
  /** @description Project ID */
48546
48581
  id: string;
48547
- /** @description API Key ID */
48548
- key_id: string;
48549
48582
  };
48550
48583
  cookie?: never;
48551
48584
  };
48552
- requestBody?: never;
48585
+ requestBody: {
48586
+ content: {
48587
+ "application/json": components["schemas"]["CreateApiKeyRequest"];
48588
+ };
48589
+ };
48553
48590
  responses: {
48554
- /** @description API key revoked */
48555
- 204: {
48591
+ /** @description API key created */
48592
+ 201: {
48556
48593
  headers: {
48557
48594
  [name: string]: unknown;
48558
48595
  };
48559
- content?: never;
48596
+ content: {
48597
+ "application/json": components["schemas"]["CreateApiKeyResponse"];
48598
+ };
48560
48599
  };
48561
- /** @description The request is malformed: a path parameter, a query parameter or the body did not parse */
48600
+ /** @description Validation failed */
48562
48601
  400: {
48563
48602
  headers: {
48564
48603
  [name: string]: unknown;
@@ -48585,7 +48624,7 @@ interface operations {
48585
48624
  "application/json": components["schemas"]["ErrorResponse"];
48586
48625
  };
48587
48626
  };
48588
- /** @description Project or API key not found */
48627
+ /** @description Project not found */
48589
48628
  404: {
48590
48629
  headers: {
48591
48630
  [name: string]: unknown;
@@ -48594,6 +48633,33 @@ interface operations {
48594
48633
  "application/json": components["schemas"]["ErrorResponse"];
48595
48634
  };
48596
48635
  };
48636
+ /** @description The request body stopped arriving before the upload completed (`details.limit` is `body_idle`) */
48637
+ 408: {
48638
+ headers: {
48639
+ [name: string]: unknown;
48640
+ };
48641
+ content: {
48642
+ "application/json": components["schemas"]["TimeoutErrorResponse"];
48643
+ };
48644
+ };
48645
+ /** @description The request body is larger than this deployment accepts */
48646
+ 413: {
48647
+ headers: {
48648
+ [name: string]: unknown;
48649
+ };
48650
+ content: {
48651
+ "application/json": components["schemas"]["ErrorResponse"];
48652
+ };
48653
+ };
48654
+ /** @description The request body was not sent with Content-Type: application/json */
48655
+ 415: {
48656
+ headers: {
48657
+ [name: string]: unknown;
48658
+ };
48659
+ content: {
48660
+ "application/json": components["schemas"]["ErrorResponse"];
48661
+ };
48662
+ };
48597
48663
  /** @description Rate limit exceeded for this caller. The body is the shared error envelope with code `rate_limited`; `Retry-After` and the `x-ratelimit-*` headers carry the wait. */
48598
48664
  429: {
48599
48665
  headers: {
@@ -48611,15 +48677,6 @@ interface operations {
48611
48677
  "application/json": components["schemas"]["ErrorResponse"];
48612
48678
  };
48613
48679
  };
48614
- /** @description API-key cache unreachable, retry */
48615
- 503: {
48616
- headers: {
48617
- [name: string]: unknown;
48618
- };
48619
- content: {
48620
- "application/json": components["schemas"]["ErrorResponse"];
48621
- };
48622
- };
48623
48680
  /** @description The server did not produce a response in time (`details.limit` is `handler`) */
48624
48681
  504: {
48625
48682
  headers: {
@@ -48631,22 +48688,24 @@ interface operations {
48631
48688
  };
48632
48689
  };
48633
48690
  };
48634
- regenerate_api_key: {
48691
+ create_role_bound_api_key: {
48635
48692
  parameters: {
48636
48693
  query?: never;
48637
48694
  header?: never;
48638
48695
  path: {
48639
48696
  /** @description Project ID */
48640
48697
  id: string;
48641
- /** @description API Key ID */
48642
- key_id: string;
48643
48698
  };
48644
48699
  cookie?: never;
48645
48700
  };
48646
- requestBody?: never;
48701
+ requestBody: {
48702
+ content: {
48703
+ "application/json": components["schemas"]["CreateRoleBoundApiKeyRequest"];
48704
+ };
48705
+ };
48647
48706
  responses: {
48648
- /** @description API key regenerated */
48649
- 200: {
48707
+ /** @description Role-bound key issued */
48708
+ 201: {
48650
48709
  headers: {
48651
48710
  [name: string]: unknown;
48652
48711
  };
@@ -48654,7 +48713,7 @@ interface operations {
48654
48713
  "application/json": components["schemas"]["CreateApiKeyResponse"];
48655
48714
  };
48656
48715
  };
48657
- /** @description The request is malformed: a path parameter, a query parameter or the body did not parse */
48716
+ /** @description Invalid key configuration */
48658
48717
  400: {
48659
48718
  headers: {
48660
48719
  [name: string]: unknown;
@@ -48663,7 +48722,7 @@ interface operations {
48663
48722
  "application/json": components["schemas"]["ErrorResponse"];
48664
48723
  };
48665
48724
  };
48666
- /** @description Unauthorized - no auth token */
48725
+ /** @description Authentication required */
48667
48726
  401: {
48668
48727
  headers: {
48669
48728
  [name: string]: unknown;
@@ -48672,7 +48731,7 @@ interface operations {
48672
48731
  "application/json": components["schemas"]["ErrorResponse"];
48673
48732
  };
48674
48733
  };
48675
- /** @description Forbidden - user not owner */
48734
+ /** @description A project owner's user session is required */
48676
48735
  403: {
48677
48736
  headers: {
48678
48737
  [name: string]: unknown;
@@ -48681,7 +48740,7 @@ interface operations {
48681
48740
  "application/json": components["schemas"]["ErrorResponse"];
48682
48741
  };
48683
48742
  };
48684
- /** @description Project or API key not found */
48743
+ /** @description Project or role not found */
48685
48744
  404: {
48686
48745
  headers: {
48687
48746
  [name: string]: unknown;
@@ -48690,43 +48749,8 @@ interface operations {
48690
48749
  "application/json": components["schemas"]["ErrorResponse"];
48691
48750
  };
48692
48751
  };
48693
- /** @description API key is revoked */
48694
- 409: {
48695
- headers: {
48696
- [name: string]: unknown;
48697
- };
48698
- content: {
48699
- "application/json": components["schemas"]["ErrorResponse"];
48700
- };
48701
- };
48702
- /** @description Rate limit exceeded for this caller. The body is the shared error envelope with code `rate_limited`; `Retry-After` and the `x-ratelimit-*` headers carry the wait. */
48703
- 429: {
48704
- headers: {
48705
- /** @description Seconds until this request may be retried. */
48706
- "Retry-After"?: number;
48707
- /** @description Seconds until the rate-limit bucket admits another request. */
48708
- "x-ratelimit-after"?: number;
48709
- /** @description Maximum requests allowed in the current rate-limit burst. */
48710
- "x-ratelimit-limit"?: number;
48711
- /** @description Requests remaining in the current rate-limit burst. */
48712
- "x-ratelimit-remaining"?: number;
48713
- [name: string]: unknown;
48714
- };
48715
- content: {
48716
- "application/json": components["schemas"]["ErrorResponse"];
48717
- };
48718
- };
48719
- /** @description API-key cache unreachable, retry */
48720
- 503: {
48721
- headers: {
48722
- [name: string]: unknown;
48723
- };
48724
- content: {
48725
- "application/json": components["schemas"]["ErrorResponse"];
48726
- };
48727
- };
48728
- /** @description The server did not produce a response in time (`details.limit` is `handler`) */
48729
- 504: {
48752
+ /** @description The request body stopped arriving before the upload completed (`details.limit` is `body_idle`) */
48753
+ 408: {
48730
48754
  headers: {
48731
48755
  [name: string]: unknown;
48732
48756
  };
@@ -48734,59 +48758,8 @@ interface operations {
48734
48758
  "application/json": components["schemas"]["TimeoutErrorResponse"];
48735
48759
  };
48736
48760
  };
48737
- };
48738
- };
48739
- list_project_audit: {
48740
- parameters: {
48741
- query?: {
48742
- /**
48743
- * @description Filter to entries matching a known audit action exactly (e.g. `"job.submit"`).
48744
- * Unknown actions are rejected with a 400 response.
48745
- */
48746
- action?: string;
48747
- /** @description Page size. Values outside 1..=100 are rejected. */
48748
- limit?: number;
48749
- /** @description Number of items to skip. Values outside 0..=1,000,000 are rejected. */
48750
- offset?: number;
48751
- };
48752
- header?: never;
48753
- path: {
48754
- /** @description Project ID */
48755
- id: string;
48756
- };
48757
- cookie?: never;
48758
- };
48759
- requestBody?: never;
48760
- responses: {
48761
- /** @description Audit entries for the project */
48762
- 200: {
48763
- headers: {
48764
- [name: string]: unknown;
48765
- };
48766
- content: {
48767
- "application/json": components["schemas"]["ListAuditEntriesResponse"];
48768
- };
48769
- };
48770
- /** @description Invalid action or pagination parameters */
48771
- 400: {
48772
- headers: {
48773
- [name: string]: unknown;
48774
- };
48775
- content: {
48776
- "application/json": components["schemas"]["ErrorResponse"];
48777
- };
48778
- };
48779
- /** @description Unauthorized - no auth token */
48780
- 401: {
48781
- headers: {
48782
- [name: string]: unknown;
48783
- };
48784
- content: {
48785
- "application/json": components["schemas"]["ErrorResponse"];
48786
- };
48787
- };
48788
- /** @description Forbidden - user not a member */
48789
- 403: {
48761
+ /** @description The request body is larger than this deployment accepts */
48762
+ 413: {
48790
48763
  headers: {
48791
48764
  [name: string]: unknown;
48792
48765
  };
@@ -48794,8 +48767,8 @@ interface operations {
48794
48767
  "application/json": components["schemas"]["ErrorResponse"];
48795
48768
  };
48796
48769
  };
48797
- /** @description Project not found */
48798
- 404: {
48770
+ /** @description The request body was not sent with Content-Type: application/json */
48771
+ 415: {
48799
48772
  headers: {
48800
48773
  [name: string]: unknown;
48801
48774
  };
@@ -48831,26 +48804,26 @@ interface operations {
48831
48804
  };
48832
48805
  };
48833
48806
  };
48834
- get_billing: {
48807
+ revoke_api_key: {
48835
48808
  parameters: {
48836
48809
  query?: never;
48837
48810
  header?: never;
48838
48811
  path: {
48839
48812
  /** @description Project ID */
48840
48813
  id: string;
48814
+ /** @description API Key ID */
48815
+ key_id: string;
48841
48816
  };
48842
48817
  cookie?: never;
48843
48818
  };
48844
48819
  requestBody?: never;
48845
48820
  responses: {
48846
- /** @description Billing and quota information */
48847
- 200: {
48821
+ /** @description API key revoked */
48822
+ 204: {
48848
48823
  headers: {
48849
48824
  [name: string]: unknown;
48850
48825
  };
48851
- content: {
48852
- "application/json": components["schemas"]["BillingResponse"];
48853
- };
48826
+ content?: never;
48854
48827
  };
48855
48828
  /** @description The request is malformed: a path parameter, a query parameter or the body did not parse */
48856
48829
  400: {
@@ -48861,7 +48834,7 @@ interface operations {
48861
48834
  "application/json": components["schemas"]["ErrorResponse"];
48862
48835
  };
48863
48836
  };
48864
- /** @description Unauthorized */
48837
+ /** @description Unauthorized - no auth token */
48865
48838
  401: {
48866
48839
  headers: {
48867
48840
  [name: string]: unknown;
@@ -48870,7 +48843,7 @@ interface operations {
48870
48843
  "application/json": components["schemas"]["ErrorResponse"];
48871
48844
  };
48872
48845
  };
48873
- /** @description Forbidden */
48846
+ /** @description Forbidden - user not owner */
48874
48847
  403: {
48875
48848
  headers: {
48876
48849
  [name: string]: unknown;
@@ -48879,7 +48852,7 @@ interface operations {
48879
48852
  "application/json": components["schemas"]["ErrorResponse"];
48880
48853
  };
48881
48854
  };
48882
- /** @description Project not found */
48855
+ /** @description Project or API key not found */
48883
48856
  404: {
48884
48857
  headers: {
48885
48858
  [name: string]: unknown;
@@ -48905,6 +48878,15 @@ interface operations {
48905
48878
  "application/json": components["schemas"]["ErrorResponse"];
48906
48879
  };
48907
48880
  };
48881
+ /** @description API-key cache unreachable, retry */
48882
+ 503: {
48883
+ headers: {
48884
+ [name: string]: unknown;
48885
+ };
48886
+ content: {
48887
+ "application/json": components["schemas"]["ErrorResponse"];
48888
+ };
48889
+ };
48908
48890
  /** @description The server did not produce a response in time (`details.limit` is `handler`) */
48909
48891
  504: {
48910
48892
  headers: {
@@ -48916,28 +48898,30 @@ interface operations {
48916
48898
  };
48917
48899
  };
48918
48900
  };
48919
- create_checkout: {
48901
+ regenerate_api_key: {
48920
48902
  parameters: {
48921
48903
  query?: never;
48922
48904
  header?: never;
48923
48905
  path: {
48924
48906
  /** @description Project ID */
48925
48907
  id: string;
48908
+ /** @description API Key ID */
48909
+ key_id: string;
48926
48910
  };
48927
48911
  cookie?: never;
48928
48912
  };
48929
48913
  requestBody?: never;
48930
48914
  responses: {
48931
- /** @description Checkout Session URL */
48915
+ /** @description API key regenerated */
48932
48916
  200: {
48933
48917
  headers: {
48934
48918
  [name: string]: unknown;
48935
48919
  };
48936
48920
  content: {
48937
- "application/json": components["schemas"]["CheckoutResponse"];
48921
+ "application/json": components["schemas"]["CreateApiKeyResponse"];
48938
48922
  };
48939
48923
  };
48940
- /** @description Bad request */
48924
+ /** @description The request is malformed: a path parameter, a query parameter or the body did not parse */
48941
48925
  400: {
48942
48926
  headers: {
48943
48927
  [name: string]: unknown;
@@ -48946,7 +48930,7 @@ interface operations {
48946
48930
  "application/json": components["schemas"]["ErrorResponse"];
48947
48931
  };
48948
48932
  };
48949
- /** @description Unauthorized */
48933
+ /** @description Unauthorized - no auth token */
48950
48934
  401: {
48951
48935
  headers: {
48952
48936
  [name: string]: unknown;
@@ -48955,7 +48939,7 @@ interface operations {
48955
48939
  "application/json": components["schemas"]["ErrorResponse"];
48956
48940
  };
48957
48941
  };
48958
- /** @description Forbidden */
48942
+ /** @description Forbidden - user not owner */
48959
48943
  403: {
48960
48944
  headers: {
48961
48945
  [name: string]: unknown;
@@ -48964,7 +48948,16 @@ interface operations {
48964
48948
  "application/json": components["schemas"]["ErrorResponse"];
48965
48949
  };
48966
48950
  };
48967
- /** @description Subscription already active */
48951
+ /** @description Project or API key not found */
48952
+ 404: {
48953
+ headers: {
48954
+ [name: string]: unknown;
48955
+ };
48956
+ content: {
48957
+ "application/json": components["schemas"]["ErrorResponse"];
48958
+ };
48959
+ };
48960
+ /** @description API key is revoked */
48968
48961
  409: {
48969
48962
  headers: {
48970
48963
  [name: string]: unknown;
@@ -48990,6 +48983,15 @@ interface operations {
48990
48983
  "application/json": components["schemas"]["ErrorResponse"];
48991
48984
  };
48992
48985
  };
48986
+ /** @description API-key cache unreachable, retry */
48987
+ 503: {
48988
+ headers: {
48989
+ [name: string]: unknown;
48990
+ };
48991
+ content: {
48992
+ "application/json": components["schemas"]["ErrorResponse"];
48993
+ };
48994
+ };
48993
48995
  /** @description The server did not produce a response in time (`details.limit` is `handler`) */
48994
48996
  504: {
48995
48997
  headers: {
@@ -49001,9 +49003,19 @@ interface operations {
49001
49003
  };
49002
49004
  };
49003
49005
  };
49004
- create_portal: {
49006
+ list_project_audit: {
49005
49007
  parameters: {
49006
- query?: never;
49008
+ query?: {
49009
+ /**
49010
+ * @description Filter to entries matching a known audit action exactly (e.g. `"job.submit"`).
49011
+ * Unknown actions are rejected with a 400 response.
49012
+ */
49013
+ action?: string;
49014
+ /** @description Page size. Values outside 1..=100 are rejected. */
49015
+ limit?: number;
49016
+ /** @description Number of items to skip. Values outside 0..=1,000,000 are rejected. */
49017
+ offset?: number;
49018
+ };
49007
49019
  header?: never;
49008
49020
  path: {
49009
49021
  /** @description Project ID */
@@ -49013,16 +49025,16 @@ interface operations {
49013
49025
  };
49014
49026
  requestBody?: never;
49015
49027
  responses: {
49016
- /** @description Customer Portal URL */
49028
+ /** @description Audit entries for the project */
49017
49029
  200: {
49018
49030
  headers: {
49019
49031
  [name: string]: unknown;
49020
49032
  };
49021
49033
  content: {
49022
- "application/json": components["schemas"]["PortalResponse"];
49034
+ "application/json": components["schemas"]["ListAuditEntriesResponse"];
49023
49035
  };
49024
49036
  };
49025
- /** @description No billing account */
49037
+ /** @description Invalid action or pagination parameters */
49026
49038
  400: {
49027
49039
  headers: {
49028
49040
  [name: string]: unknown;
@@ -49031,7 +49043,7 @@ interface operations {
49031
49043
  "application/json": components["schemas"]["ErrorResponse"];
49032
49044
  };
49033
49045
  };
49034
- /** @description Unauthorized */
49046
+ /** @description Unauthorized - no auth token */
49035
49047
  401: {
49036
49048
  headers: {
49037
49049
  [name: string]: unknown;
@@ -49040,7 +49052,7 @@ interface operations {
49040
49052
  "application/json": components["schemas"]["ErrorResponse"];
49041
49053
  };
49042
49054
  };
49043
- /** @description Forbidden */
49055
+ /** @description Forbidden - user not a member */
49044
49056
  403: {
49045
49057
  headers: {
49046
49058
  [name: string]: unknown;
@@ -49049,6 +49061,15 @@ interface operations {
49049
49061
  "application/json": components["schemas"]["ErrorResponse"];
49050
49062
  };
49051
49063
  };
49064
+ /** @description Project not found */
49065
+ 404: {
49066
+ headers: {
49067
+ [name: string]: unknown;
49068
+ };
49069
+ content: {
49070
+ "application/json": components["schemas"]["ErrorResponse"];
49071
+ };
49072
+ };
49052
49073
  /** @description Rate limit exceeded for this caller. The body is the shared error envelope with code `rate_limited`; `Retry-After` and the `x-ratelimit-*` headers carry the wait. */
49053
49074
  429: {
49054
49075
  headers: {
@@ -54228,6 +54249,18 @@ interface ExtractBatchParams extends JobScopeParams {
54228
54249
  */
54229
54250
  configs?: readonly (FileExtractionConfig | null)[];
54230
54251
  }
54252
+ interface ExtractKeyedParams extends JobScopeParams {
54253
+ files: readonly FileLike[];
54254
+ /**
54255
+ * Required project-scoped `Idempotency-Key`. Resubmitting the same files and
54256
+ * configuration under the same key replays the accepted response instead of
54257
+ * creating new jobs; reusing it for different input answers 409.
54258
+ */
54259
+ idempotencyKey: string;
54260
+ options?: ExtractionOptions;
54261
+ /** Per-file overrides aligned with `files`, as in {@link ExtractBatchParams.configs}. */
54262
+ configs?: readonly (FileExtractionConfig | null)[];
54263
+ }
54231
54264
  interface WaitOptions extends JobScopeParams {
54232
54265
  /** Total time to wait before throwing TimeoutError. Default 5 minutes. */
54233
54266
  timeoutMs?: number;
@@ -54398,12 +54431,6 @@ export declare class XbergClient {
54398
54431
  regenerateApiKey(projectId: string, apiKeyId: string): Promise<BackendCreateApiKeyResponse>;
54399
54432
  /** Enterprise backend `GET /v1/projects/{id}/audit`. */
54400
54433
  listProjectAudit(projectId: string, params?: BackendAuditParams): Promise<BackendListAuditEntriesResponse>;
54401
- /** Enterprise backend `GET /v1/projects/{id}/billing`. */
54402
- getBilling(projectId: string): Promise<BackendBillingResponse>;
54403
- /** Enterprise backend `POST /v1/projects/{id}/billing/checkout`. */
54404
- createCheckout(projectId: string): Promise<BackendCheckoutResponse>;
54405
- /** Enterprise backend `POST /v1/projects/{id}/billing/portal`. */
54406
- createPortal(projectId: string): Promise<BackendPortalResponse>;
54407
54434
  /** Enterprise backend `GET /v1/projects/{id}/integrations`. */
54408
54435
  backendListIntegrations(projectId: string, params?: PaginationParams): Promise<BackendListIntegrationsResponse>;
54409
54436
  /** Enterprise backend `POST /v1/projects/{id}/integrations`. */
@@ -54518,6 +54545,14 @@ export declare class XbergClient {
54518
54545
  * {@link Job} per file, in the same order.
54519
54546
  */
54520
54547
  extractBatch(params: ExtractBatchParams): Promise<Job[]>;
54548
+ /**
54549
+ * Submit one retryable inline batch to Pro's `POST /v1/extract/keyed`.
54550
+ *
54551
+ * Sends every file in a single multipart request with `idempotencyKey` as the
54552
+ * `Idempotency-Key` header. Webhooks and document lineage are not accepted on
54553
+ * this route. Returns one {@link Job} per file, in the same order.
54554
+ */
54555
+ extractKeyed(params: ExtractKeyedParams): Promise<Job[]>;
54521
54556
  /** Fetch a tagged extraction or crawl job record (`GET /v1/jobs/{id}`). */
54522
54557
  getJob(jobId: string, scope?: JobScopeParams): Promise<GetJobResponse>;
54523
54558
  /**
@@ -55239,5 +55274,5 @@ interface VerifyWebhookSignatureOptions {
55239
55274
  * bytes and fails verification.
55240
55275
  */
55241
55276
  export declare function verifyWebhookSignature(secret: string, header: string, body: string | Uint8Array, options?: VerifyWebhookSignatureOptions): Promise<boolean>;
55242
- export type { AcceptedRoomInvitationResponse, AddRoomItemRequest, AddRoomMemberRequest, ApiKeyResponse, ApiKeyScope, AuditParams, AuthConfigResponse, AutoTuneCapabilitiesResponse, AutoTuneJobStatus, AutoTuneJobSummary, AutoTuneResult, BackendAcceptInvitationRequest, BackendAnalyticsResponse, BackendAssignProjectRoleRequest, BackendAuditParams, BackendAuthConfigResponse, BackendBeginConnectResponse, BackendBillingResponse, BackendCheckoutResponse, BackendCreateApiKeyRequest, BackendCreateApiKeyResponse, BackendCreateIntegrationRequest, BackendCreateInvitationRequest, BackendCreateInvitationResponse, BackendCreateProjectRequest, BackendCreateProjectRoleRequest, BackendCreateRoleBoundApiKeyRequest, BackendCreateScimConnectionRequest, BackendCreateScimConnectionResponse, BackendCreateWebhookRequest, BackendDateRange, BackendHealthResponse, BackendIntegrationResponse, BackendIntegrationSyncResponse, BackendListApiKeysResponse, BackendListAuditEntriesResponse, BackendListDocumentsResponse, BackendListIntegrationsResponse, BackendListInvitationsResponse, BackendListMembersResponse, BackendListProjectRolesResponse, BackendListProjectsResponse, BackendListScimAdminGroupsResponse, BackendListScimConnectionsResponse, BackendListWebhookDeliveriesResponse, BackendListWebhooksResponse, BackendLoginRequest, BackendLoginResponse, BackendMemberResponse, BackendOAuthCallbackParams, BackendPortalResponse, BackendProjectResponse, BackendProjectRoleResponse, BackendRagConfigResponse, BackendReadinessResponse, BackendReplaceScimGroupRolesRequest, BackendRetryWebhookDeliveryResponse, BackendSamlAttributeMapping, BackendSamlConnectionTestStarted, BackendSamlConnectionTestStatus, BackendSamlDomainRequest, BackendSamlDomainResponse, BackendSamlProviderRequest, BackendSamlProviderResponse, BackendSandboxExtractParams, BackendSandboxExtractResponse, BackendScimConnectionResponse, BackendSetIntegrationSyncRequest, BackendSetRagConfigRequest, BackendUpdateMemberRoleRequest, BackendUpdateProjectRequest, BackendUpdateProjectRoleRequest, BackendUpdateUserProfileRequest, BackendUpdateWebhookRequest, BackendUsageResponse, BackendUserProfileResponse, BackendWebhookDeliveryDetailResponse, BackendWebhookResponse, BackendWebhookTestResponse, BackoffStrategy, BeginOAuthResponse, BindIntegrationRagTargetRequest, ConfirmUploadRequest, ConfirmUploadResponse, CrawlCompleteEvent, CrawlDiscoveredEvent, CrawlErrorEvent, CrawlEvent, CrawlEventKind, CrawlPageEvent, CreateApiKeyRequest, CreateApiKeyResponse, CreateAutoTuneJobRequest, CreateAutoTuneJobResponse, CreateClientOptions, CreateIntegrationRequest, CreateProjectRequest, CreateRoomLinkRequest, CreateRoomRequest, CreateSavedPresetRequest, CreateSavedPresetResponse, DiffAsyncAccepted, DiffResponse, DiffResult, DocumentInput, DocumentResponse, DocumentVersionEntry, EnrichJobStatus, EnrichJobSubmitted, EnrichRequestOptions, EnrichTextRequest, EnterpriseHealthFeature, EnterpriseHealthResponse, ExtractAndWaitParams, ExtractBatchParams, ExtractParams, ExtractResponse, ExtractedDocument, ExtractionConfig, ExtractionEventSummary, ExtractionOptions, ExtractionResult, FileExtractionConfig, FileLike, GetJobResponse, GrantableRole, IntegrationResponse, Job, JobPageInventory, JobResult, JobResultError, JobScopeParams, JobStatus, LicenseInfoResponse, ListApiKeysResponse, ListAuditEntriesResponse, ListAutoTuneJobsResponse, ListDocumentsResponse, ListExtractionEventsParams, ListExtractionEventsResponse, ListIntegrationDocumentsParams, ListIntegrationsResponse, ListJobsParams, ListJobsResponse, ListManagedEmbeddingPresetsResponse, ListProjectDocumentsResponse, ListProjectsResponse, ListRagDocumentsParams, ListRagDocumentsResponse, ListRoomInvitationsResponse, ListRoomItemsResponse, ListRoomLinksResponse, ListRoomMembersResponse, ListRoomsParams, ListRoomsResponse, ListSavedPresetsResponse, ListTuningProfilesResponse, ListWebhookDeliveriesResponse, LoginRequest, LoginResponse, ManagedEmbeddingPreset, PaginationParams, PresetDetail, PresetSummary, PresignUploadRequest, PresignUploadResponse, ProHealthResponse, ProIntegrationListResponse, ProUpdateProjectRequest, ProjectDocumentEntry, ProjectExtractionConfigResponse, ProjectResponse, PromoteProfileRequest, PublicRoomItemContentResponse, PublicRoomItemResponse, PublicRoomItemsResponse, PublicRoomResponse, PublicSandboxExtractParams, PublicationModeName, PublicationStateName, RagConfigResponse, RagDocumentSummary, RateLimitErrorOptions, ReorderRoomItemsRequest, ReorderRoomItemsResponse, RoomAcceptInvitationRequest, RoomChangeRoleRequest, RoomInvitationOptions, RoomInvitationPreviewResponse, RoomInvitationResponse, RoomInviteRequest, RoomItemContentResponse, RoomItemResponse, RoomLinkAccessResponse, RoomLinkResponse, RoomListState, RoomMemberResponse, RoomPublicationResponse, RoomResponse, RoomRightsResponse, RoomTransferOwnershipRequest, SavedPresetDetail, SavedPresetSummary, SetRagConfigRequest, SetRoomLinkAccessRequest, SetRoomPublicationRequest, StreamCrawlEventsOptions, SubmitAutoTuneParams, Target, TuningProfileDetail, TuningProfileSummary, UpdateRoomRequest, UpdateSavedPresetRequest, UpdateSavedPresetResponse, UsageResponse, VerifyWebhookSignatureOptions, WaitOptions, WebhookConfig, WebhookDeliveryDetailResponse, XbergClientOptions, XbergErrorOptions, XbergRawClient, components as backendComponents, paths as backendPaths, components$1 as components, paths$1 as paths, components$2 as proComponents, paths$2 as proPaths };
55277
+ export type { AcceptedRoomInvitationResponse, AddRoomItemRequest, AddRoomMemberRequest, ApiKeyResponse, ApiKeyScope, AuditParams, AuthConfigResponse, AutoTuneCapabilitiesResponse, AutoTuneJobStatus, AutoTuneJobSummary, AutoTuneResult, BackendAcceptInvitationRequest, BackendAnalyticsResponse, BackendAssignProjectRoleRequest, BackendAuditParams, BackendAuthConfigResponse, BackendBeginConnectResponse, BackendBillingResponse, BackendCheckoutResponse, BackendCreateApiKeyRequest, BackendCreateApiKeyResponse, BackendCreateIntegrationRequest, BackendCreateInvitationRequest, BackendCreateInvitationResponse, BackendCreateProjectRequest, BackendCreateProjectRoleRequest, BackendCreateRoleBoundApiKeyRequest, BackendCreateScimConnectionRequest, BackendCreateScimConnectionResponse, BackendCreateWebhookRequest, BackendDateRange, BackendHealthResponse, BackendIntegrationResponse, BackendIntegrationSyncResponse, BackendListApiKeysResponse, BackendListAuditEntriesResponse, BackendListDocumentsResponse, BackendListIntegrationsResponse, BackendListInvitationsResponse, BackendListMembersResponse, BackendListProjectRolesResponse, BackendListProjectsResponse, BackendListScimAdminGroupsResponse, BackendListScimConnectionsResponse, BackendListWebhookDeliveriesResponse, BackendListWebhooksResponse, BackendLoginRequest, BackendLoginResponse, BackendMemberResponse, BackendOAuthCallbackParams, BackendPortalResponse, BackendProjectResponse, BackendProjectRoleResponse, BackendRagConfigResponse, BackendReadinessResponse, BackendReplaceScimGroupRolesRequest, BackendRetryWebhookDeliveryResponse, BackendSamlAttributeMapping, BackendSamlConnectionTestStarted, BackendSamlConnectionTestStatus, BackendSamlDomainRequest, BackendSamlDomainResponse, BackendSamlProviderRequest, BackendSamlProviderResponse, BackendSandboxExtractParams, BackendSandboxExtractResponse, BackendScimConnectionResponse, BackendSetIntegrationSyncRequest, BackendSetRagConfigRequest, BackendUpdateMemberRoleRequest, BackendUpdateProjectRequest, BackendUpdateProjectRoleRequest, BackendUpdateUserProfileRequest, BackendUpdateWebhookRequest, BackendUsageResponse, BackendUserProfileResponse, BackendWebhookDeliveryDetailResponse, BackendWebhookResponse, BackendWebhookTestResponse, BackoffStrategy, BeginOAuthResponse, BindIntegrationRagTargetRequest, ConfirmUploadRequest, ConfirmUploadResponse, CrawlCompleteEvent, CrawlDiscoveredEvent, CrawlErrorEvent, CrawlEvent, CrawlEventKind, CrawlPageEvent, CreateApiKeyRequest, CreateApiKeyResponse, CreateAutoTuneJobRequest, CreateAutoTuneJobResponse, CreateClientOptions, CreateIntegrationRequest, CreateProjectRequest, CreateRoomLinkRequest, CreateRoomRequest, CreateSavedPresetRequest, CreateSavedPresetResponse, DiffAsyncAccepted, DiffResponse, DiffResult, DocumentInput, DocumentResponse, DocumentVersionEntry, EnrichJobStatus, EnrichJobSubmitted, EnrichRequestOptions, EnrichTextRequest, EnterpriseHealthFeature, EnterpriseHealthResponse, ExtractAndWaitParams, ExtractBatchParams, ExtractKeyedParams, ExtractParams, ExtractResponse, ExtractedDocument, ExtractionConfig, ExtractionEventSummary, ExtractionOptions, ExtractionResult, FileExtractionConfig, FileLike, GetJobResponse, GrantableRole, IntegrationResponse, Job, JobPageInventory, JobResult, JobResultError, JobScopeParams, JobStatus, LicenseInfoResponse, ListApiKeysResponse, ListAuditEntriesResponse, ListAutoTuneJobsResponse, ListDocumentsResponse, ListExtractionEventsParams, ListExtractionEventsResponse, ListIntegrationDocumentsParams, ListIntegrationsResponse, ListJobsParams, ListJobsResponse, ListManagedEmbeddingPresetsResponse, ListProjectDocumentsResponse, ListProjectsResponse, ListRagDocumentsParams, ListRagDocumentsResponse, ListRoomInvitationsResponse, ListRoomItemsResponse, ListRoomLinksResponse, ListRoomMembersResponse, ListRoomsParams, ListRoomsResponse, ListSavedPresetsResponse, ListTuningProfilesResponse, ListWebhookDeliveriesResponse, LoginRequest, LoginResponse, ManagedEmbeddingPreset, PaginationParams, PresetDetail, PresetSummary, PresignUploadRequest, PresignUploadResponse, ProHealthResponse, ProIntegrationListResponse, ProUpdateProjectRequest, ProjectDocumentEntry, ProjectExtractionConfigResponse, ProjectResponse, PromoteProfileRequest, PublicRoomItemContentResponse, PublicRoomItemResponse, PublicRoomItemsResponse, PublicRoomResponse, PublicSandboxExtractParams, PublicationModeName, PublicationStateName, RagConfigResponse, RagDocumentSummary, RateLimitErrorOptions, ReorderRoomItemsRequest, ReorderRoomItemsResponse, RoomAcceptInvitationRequest, RoomChangeRoleRequest, RoomInvitationOptions, RoomInvitationPreviewResponse, RoomInvitationResponse, RoomInviteRequest, RoomItemContentResponse, RoomItemResponse, RoomLinkAccessResponse, RoomLinkResponse, RoomListState, RoomMemberResponse, RoomPublicationResponse, RoomResponse, RoomRightsResponse, RoomTransferOwnershipRequest, SavedPresetDetail, SavedPresetSummary, SetRagConfigRequest, SetRoomLinkAccessRequest, SetRoomPublicationRequest, StreamCrawlEventsOptions, SubmitAutoTuneParams, Target, TuningProfileDetail, TuningProfileSummary, UpdateRoomRequest, UpdateSavedPresetRequest, UpdateSavedPresetResponse, UsageResponse, VerifyWebhookSignatureOptions, WaitOptions, WebhookConfig, WebhookDeliveryDetailResponse, XbergClientOptions, XbergErrorOptions, XbergRawClient, components as backendComponents, paths as backendPaths, components$1 as components, paths$1 as paths, components$2 as proComponents, paths$2 as proPaths };
55243
55278
  //# sourceMappingURL=index.d.ts.map