@hunt-labs/bytekit-sdk 0.11.7 → 0.11.8
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/CHANGELOG.md +12 -0
- package/dist/generated/api.d.ts +76 -11
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,18 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.11.8] - 2026-09-30
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **Bulk job types add `total_billed_bytes` and deprecate the bulk credit fields (#5021).** Every
|
|
18
|
+
bulk job body (`POST`/`GET`/`DELETE /v1/bulk`, `/v1/scrape/bulk`, `/v1/fetch/bulk`, and the
|
|
19
|
+
`GET /v1/bulk` list) gains `total_billed_bytes: number | null`: the bandwidth billed for the job,
|
|
20
|
+
in bytes, after multipliers. It is `null` on the create response and for a bulk that predates
|
|
21
|
+
the field. `total_credits_charged` and the bulk item `credits_charged` are marked
|
|
22
|
+
`@deprecated`; they report `0` under the `dual` and `bytes` billing modes. Regenerated
|
|
23
|
+
`src/generated/api.d.ts`; no SDK method signature moves.
|
|
24
|
+
|
|
13
25
|
## [0.11.7] - 2026-09-29
|
|
14
26
|
|
|
15
27
|
### Changed
|
package/dist/generated/api.d.ts
CHANGED
|
@@ -1517,7 +1517,13 @@ export interface components {
|
|
|
1517
1517
|
total: number;
|
|
1518
1518
|
completed: number;
|
|
1519
1519
|
failed: number;
|
|
1520
|
+
/**
|
|
1521
|
+
* @deprecated
|
|
1522
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is the total credits billed for the job.
|
|
1523
|
+
*/
|
|
1520
1524
|
total_credits_charged: number;
|
|
1525
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` (not raw wire bytes). Null for a bulk with a completed child missing from the sum (completed before this field, or with no settled amount) — never a partial sum. */
|
|
1526
|
+
total_billed_bytes: number | null;
|
|
1521
1527
|
/** Format: uri */
|
|
1522
1528
|
webhook_url: string;
|
|
1523
1529
|
/** @description Complete item records included before the 500-item or 1-MiB manifest bound. Every record carries a stable `id`, a `type`, and a terminal `status`. */
|
|
@@ -3931,8 +3937,13 @@ export interface operations {
|
|
|
3931
3937
|
created_at: string;
|
|
3932
3938
|
/** Format: date-time */
|
|
3933
3939
|
completed_at: string | null;
|
|
3934
|
-
/**
|
|
3940
|
+
/**
|
|
3941
|
+
* @deprecated
|
|
3942
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is always null on the create response — the job has not been billed yet (routes/scrape-bulk.ts builds the 202 body from a partial job row).
|
|
3943
|
+
*/
|
|
3935
3944
|
total_credits_charged: number | null;
|
|
3945
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` across the whole job (not raw wire bytes, not just this page). Always null on the create response — nothing has settled yet. */
|
|
3946
|
+
total_billed_bytes: number | null;
|
|
3936
3947
|
/** @description Estimated credits at submission time. Null in GET responses. Fetch-bulk items use the raw fetch bandwidth billing factor. */
|
|
3937
3948
|
estimated_credits: number | null;
|
|
3938
3949
|
/** @description Webhook endpoint URL (HTTPS only; http:// rejected with 400 invalid_url, reason scheme_unsupported) */
|
|
@@ -4017,8 +4028,13 @@ export interface operations {
|
|
|
4017
4028
|
created_at: string;
|
|
4018
4029
|
/** Format: date-time */
|
|
4019
4030
|
completed_at: string | null;
|
|
4020
|
-
/**
|
|
4031
|
+
/**
|
|
4032
|
+
* @deprecated
|
|
4033
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is the total credits billed for the job, null until the job is billed; fractional — credits are NUMERIC(10,2).
|
|
4034
|
+
*/
|
|
4021
4035
|
total_credits_charged: number | null;
|
|
4036
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` across the whole job (not raw wire bytes, not just this page). Null for a bulk with a completed child missing from the sum (completed before this field, or with no settled amount) — never a partial sum. */
|
|
4037
|
+
total_billed_bytes: number | null;
|
|
4022
4038
|
/** @description Null in GET responses (computed at submission time only). */
|
|
4023
4039
|
estimated_credits: number | null;
|
|
4024
4040
|
/** @description Webhook endpoint URL (HTTPS only; http:// rejected with 400 invalid_url, reason scheme_unsupported) */
|
|
@@ -4056,8 +4072,13 @@ export interface operations {
|
|
|
4056
4072
|
created_at: string;
|
|
4057
4073
|
/** Format: date-time */
|
|
4058
4074
|
completed_at: string | null;
|
|
4059
|
-
/**
|
|
4075
|
+
/**
|
|
4076
|
+
* @deprecated
|
|
4077
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is the total credits billed for the job, null until the job is billed; fractional — credits are NUMERIC(10,2).
|
|
4078
|
+
*/
|
|
4060
4079
|
total_credits_charged: number | null;
|
|
4080
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` across the whole job (not raw wire bytes, not just this page). Null for a bulk with a completed child missing from the sum (completed before this field, or with no settled amount) — never a partial sum. */
|
|
4081
|
+
total_billed_bytes: number | null;
|
|
4061
4082
|
/** @description Null in GET responses (computed at submission time only). */
|
|
4062
4083
|
estimated_credits: number | null;
|
|
4063
4084
|
/** @description Webhook endpoint URL (HTTPS only; http:// rejected with 400 invalid_url, reason scheme_unsupported) */
|
|
@@ -4405,8 +4426,13 @@ export interface operations {
|
|
|
4405
4426
|
created_at: string;
|
|
4406
4427
|
/** Format: date-time */
|
|
4407
4428
|
completed_at: string | null;
|
|
4408
|
-
/**
|
|
4429
|
+
/**
|
|
4430
|
+
* @deprecated
|
|
4431
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is always null on the create response — the job has not been billed yet (routes/fetch-bulk.ts builds the 202 body from a partial job row).
|
|
4432
|
+
*/
|
|
4409
4433
|
total_credits_charged: number | null;
|
|
4434
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` across the whole job (not raw wire bytes, not just this page). Always null on the create response — nothing has settled yet. */
|
|
4435
|
+
total_billed_bytes: number | null;
|
|
4410
4436
|
/** @description Estimated credits at submission time. Null in GET responses. Fetch items are raw passthrough requests and use the raw fetch bandwidth billing factor. */
|
|
4411
4437
|
estimated_credits: number | null;
|
|
4412
4438
|
/** @description Webhook endpoint URL (HTTPS only; http:// rejected with 400 invalid_url, reason scheme_unsupported) */
|
|
@@ -4485,8 +4511,13 @@ export interface operations {
|
|
|
4485
4511
|
created_at: string;
|
|
4486
4512
|
/** Format: date-time */
|
|
4487
4513
|
completed_at: string | null;
|
|
4488
|
-
/**
|
|
4514
|
+
/**
|
|
4515
|
+
* @deprecated
|
|
4516
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is the total credits billed for the job, null until the job is billed; fractional — credits are NUMERIC(10,2).
|
|
4517
|
+
*/
|
|
4489
4518
|
total_credits_charged: number | null;
|
|
4519
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` across the whole job (not raw wire bytes, not just this page). Null for a bulk with a completed child missing from the sum (completed before this field, or with no settled amount) — never a partial sum. */
|
|
4520
|
+
total_billed_bytes: number | null;
|
|
4490
4521
|
/** @description Null in GET responses (computed at submission time only). */
|
|
4491
4522
|
estimated_credits: number | null;
|
|
4492
4523
|
/** @description Webhook endpoint URL (HTTPS only; http:// rejected with 400 invalid_url, reason scheme_unsupported) */
|
|
@@ -4577,8 +4608,13 @@ export interface operations {
|
|
|
4577
4608
|
created_at: string;
|
|
4578
4609
|
/** Format: date-time */
|
|
4579
4610
|
completed_at: string | null;
|
|
4580
|
-
/**
|
|
4611
|
+
/**
|
|
4612
|
+
* @deprecated
|
|
4613
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is the total credits billed for the job, null until the job is billed; fractional — credits are NUMERIC(10,2).
|
|
4614
|
+
*/
|
|
4581
4615
|
total_credits_charged: number | null;
|
|
4616
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` across the whole job (not raw wire bytes, not just this page). Null for a bulk with a completed child missing from the sum (completed before this field, or with no settled amount) — never a partial sum. */
|
|
4617
|
+
total_billed_bytes: number | null;
|
|
4582
4618
|
/** @description Null in GET responses (computed at submission time only). */
|
|
4583
4619
|
estimated_credits: number | null;
|
|
4584
4620
|
/** @description Webhook endpoint URL (HTTPS only; http:// rejected with 400 invalid_url, reason scheme_unsupported) */
|
|
@@ -4687,8 +4723,13 @@ export interface operations {
|
|
|
4687
4723
|
created_at: string;
|
|
4688
4724
|
/** Format: date-time */
|
|
4689
4725
|
completed_at: string | null;
|
|
4690
|
-
/**
|
|
4726
|
+
/**
|
|
4727
|
+
* @deprecated
|
|
4728
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is the total credits billed for the job, null until the job is billed; fractional — credits are NUMERIC(10,2).
|
|
4729
|
+
*/
|
|
4691
4730
|
total_credits_charged: number | null;
|
|
4731
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` across the whole job (not raw wire bytes, not just this page). Null for a bulk with a completed child missing from the sum (completed before this field, or with no settled amount) — never a partial sum. */
|
|
4732
|
+
total_billed_bytes: number | null;
|
|
4692
4733
|
/** @description Null in GET responses (computed at submission time only). */
|
|
4693
4734
|
estimated_credits: number | null;
|
|
4694
4735
|
/** @description Webhook endpoint URL (HTTPS only; http:// rejected with 400 invalid_url, reason scheme_unsupported) */
|
|
@@ -4899,8 +4940,13 @@ export interface operations {
|
|
|
4899
4940
|
created_at: string;
|
|
4900
4941
|
/** Format: date-time */
|
|
4901
4942
|
completed_at: string | null;
|
|
4902
|
-
/**
|
|
4943
|
+
/**
|
|
4944
|
+
* @deprecated
|
|
4945
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is always null on the create response — the job has not been billed yet (routes/bulk.ts builds the 202 body from a partial job row).
|
|
4946
|
+
*/
|
|
4903
4947
|
total_credits_charged: number | null;
|
|
4948
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` across the whole job (not raw wire bytes, not just this page). Always null on the create response — nothing has settled yet. */
|
|
4949
|
+
total_billed_bytes: number | null;
|
|
4904
4950
|
/** @description Estimated credits at submission time. Null in GET responses. Fetch-bulk items use the raw fetch bandwidth billing factor. */
|
|
4905
4951
|
estimated_credits: number | null;
|
|
4906
4952
|
/** @description Webhook endpoint URL (HTTPS only; http:// rejected with 400 invalid_url, reason scheme_unsupported) */
|
|
@@ -4982,8 +5028,13 @@ export interface operations {
|
|
|
4982
5028
|
created_at: string;
|
|
4983
5029
|
/** Format: date-time */
|
|
4984
5030
|
completed_at: string | null;
|
|
4985
|
-
/**
|
|
5031
|
+
/**
|
|
5032
|
+
* @deprecated
|
|
5033
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is the total credits billed for the job, null until the job is billed; fractional — credits are NUMERIC(10,2).
|
|
5034
|
+
*/
|
|
4986
5035
|
total_credits_charged: number | null;
|
|
5036
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` across the whole job (not raw wire bytes, not just this page). Null for a bulk with a completed child missing from the sum (completed before this field, or with no settled amount) — never a partial sum. */
|
|
5037
|
+
total_billed_bytes: number | null;
|
|
4987
5038
|
/** @description Null in GET responses (computed at submission time only). */
|
|
4988
5039
|
estimated_credits: number | null;
|
|
4989
5040
|
/** @description Webhook endpoint URL (HTTPS only; http:// rejected with 400 invalid_url, reason scheme_unsupported) */
|
|
@@ -5014,8 +5065,13 @@ export interface operations {
|
|
|
5014
5065
|
created_at: string;
|
|
5015
5066
|
/** Format: date-time */
|
|
5016
5067
|
completed_at: string | null;
|
|
5017
|
-
/**
|
|
5068
|
+
/**
|
|
5069
|
+
* @deprecated
|
|
5070
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is the total credits billed for the job, null until the job is billed; fractional — credits are NUMERIC(10,2).
|
|
5071
|
+
*/
|
|
5018
5072
|
total_credits_charged: number | null;
|
|
5073
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` across the whole job (not raw wire bytes, not just this page). Null for a bulk with a completed child missing from the sum (completed before this field, or with no settled amount) — never a partial sum. */
|
|
5074
|
+
total_billed_bytes: number | null;
|
|
5019
5075
|
/** @description Null in GET responses (computed at submission time only). */
|
|
5020
5076
|
estimated_credits: number | null;
|
|
5021
5077
|
/** @description Webhook endpoint URL (HTTPS only; http:// rejected with 400 invalid_url, reason scheme_unsupported) */
|
|
@@ -5063,8 +5119,13 @@ export interface operations {
|
|
|
5063
5119
|
created_at: string;
|
|
5064
5120
|
/** Format: date-time */
|
|
5065
5121
|
completed_at: string | null;
|
|
5066
|
-
/**
|
|
5122
|
+
/**
|
|
5123
|
+
* @deprecated
|
|
5124
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read `total_billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is the total credits billed for the job, null until the job is billed; fractional — credits are NUMERIC(10,2).
|
|
5125
|
+
*/
|
|
5067
5126
|
total_credits_charged: number | null;
|
|
5127
|
+
/** @description Bandwidth billed for the job, in bytes: the settled amount after multipliers, summed over every settled child's `billing.billed_bytes` across the whole job (not raw wire bytes, not just this page). Null for a bulk with a completed child missing from the sum (completed before this field, or with no settled amount) — never a partial sum. */
|
|
5128
|
+
total_billed_bytes: number | null;
|
|
5068
5129
|
/** @description Null in cancel responses (computed at submission time only). */
|
|
5069
5130
|
estimated_credits: number | null;
|
|
5070
5131
|
/** @description Webhook endpoint URL (HTTPS only; http:// rejected with 400 invalid_url, reason scheme_unsupported) */
|
|
@@ -5127,6 +5188,10 @@ export interface operations {
|
|
|
5127
5188
|
status: "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
5128
5189
|
/** Format: uri */
|
|
5129
5190
|
url: string;
|
|
5191
|
+
/**
|
|
5192
|
+
* @deprecated
|
|
5193
|
+
* @description Deprecated: bulk jobs are billed on bandwidth — read this item's `billing.billed_bytes`. Reports `0` under the `dual` and `bytes` billing modes, where no credits are drawn. Under `credits` it is the credits billed for the item, null until it is billed; fractional (NUMERIC(10,2), 0.5 cache-hit credits).
|
|
5194
|
+
*/
|
|
5130
5195
|
credits_charged?: number | null;
|
|
5131
5196
|
/**
|
|
5132
5197
|
* @description Itemised account of this item's charge — the basis, the named factors
|
package/dist/version.d.ts
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* outbound request carries — see the emit site in `client.ts`. The header name is spelled
|
|
6
6
|
* only there, so issue #2905's pre-merge gate 1 counts exactly one occurrence in `src/`.
|
|
7
7
|
*/
|
|
8
|
-
export declare const SDK_VERSION = "0.11.
|
|
8
|
+
export declare const SDK_VERSION = "0.11.8";
|
package/dist/version.js
CHANGED