@hunt-labs/bytekit-sdk 0.11.8 → 0.11.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,17 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.11.9] - 2026-10-02
14
+
15
+ ### Changed
16
+
17
+ - **Terms-version doc comments describe the new onboarding contract (#5055).** Bootstrap no
18
+ longer records Terms acceptance: the internal `POST /v1/account/bootstrap` `terms_version` body
19
+ is now documented as a version guard, with acceptance recorded by
20
+ `POST /v1/account/accept-terms`. The account `terms_version` description now says an empty
21
+ string means the account has not accepted the Terms yet. Regenerated `src/generated/api.d.ts`;
22
+ description text only, no type or SDK method signature moves.
23
+
13
24
  ## [0.11.8] - 2026-09-30
14
25
 
15
26
  ### Changed
@@ -644,9 +644,6 @@ export interface paths {
644
644
  * endpoint factor (a 100 KiB estimate is pre-charged, then reconciled). The
645
645
  * bandwidth is still billed when the scrape succeeds but extraction later
646
646
  * fails; both axes are refunded only when the scrape itself never runs.
647
- *
648
- * Availability is gated by a server-side feature flag; when disabled the
649
- * endpoint returns `404`.
650
647
  */
651
648
  post: operations["createSchemaExtraction"];
652
649
  delete?: never;
@@ -2730,7 +2727,7 @@ export interface components {
2730
2727
  /** @description Whether the account admin wants an email when bandwidth reaches 100 % of the plan limit. */
2731
2728
  bandwidth_100_enabled: boolean;
2732
2729
  };
2733
- /** @description The Terms of Service version this account has accepted. An empty string means the account predates clickwrap acceptance (issue #1025). The dashboard diffs this against the published current version to decide whether to show the re-acceptance prompt. */
2730
+ /** @description The Terms of Service version this account has accepted. An empty string means the account has not accepted the Terms yet; acceptance is recorded only by `POST /v1/account/accept-terms`, never by bootstrap (issue #5055). The dashboard diffs this against the published current version to decide whether to show the re-acceptance prompt. */
2734
2731
  terms_version: string;
2735
2732
  /** Format: date-time */
2736
2733
  created_at: string;
@@ -2768,7 +2765,7 @@ export interface components {
2768
2765
  /** @description Whether the account admin wants an email when bandwidth reaches 100 % of the plan limit. */
2769
2766
  bandwidth_100_enabled: boolean;
2770
2767
  };
2771
- /** @description The Terms of Service version this account has accepted. An empty string means the account predates clickwrap acceptance (issue #1025). The dashboard diffs this against the published current version to decide whether to show the re-acceptance prompt. */
2768
+ /** @description The Terms of Service version this account has accepted. An empty string means the account has not accepted the Terms yet; acceptance is recorded only by `POST /v1/account/accept-terms`, never by bootstrap (issue #5055). The dashboard diffs this against the published current version to decide whether to show the re-acceptance prompt. */
2772
2769
  terms_version: string;
2773
2770
  /** @description True when the account has a Stripe subscription, keyed on the same `stripe_subscription_id` column that GET /v1/billing/change-plan's `no_subscription` guard tests. */
2774
2771
  has_subscription: boolean;
@@ -5920,15 +5917,6 @@ export interface operations {
5920
5917
  };
5921
5918
  };
5922
5919
  402: components["responses"]["PaymentRequired"];
5923
- /** @description Endpoint not available (feature flag disabled). */
5924
- 404: {
5925
- headers: {
5926
- [name: string]: unknown;
5927
- };
5928
- content: {
5929
- "application/json": components["schemas"]["Error"];
5930
- };
5931
- };
5932
5920
  /** @description Validation error (`validation_error`) or non-normalizable schema (`schema_incompatible`). */
5933
5921
  422: {
5934
5922
  headers: {
@@ -7110,11 +7098,11 @@ export interface operations {
7110
7098
  path?: never;
7111
7099
  cookie?: never;
7112
7100
  };
7113
- /** @description Optional clickwrap acceptance signal (issue #1025). When present, terms_version MUST equal the published current version or the request is rejected with 400 terms_version_mismatch. When absent, the server stamps the current version server-side (back-compatible). */
7101
+ /** @description Optional Terms version guard (issue #1025). When present, terms_version MUST equal the published current version or the request is rejected with 400 terms_version_mismatch. It is never recorded as acceptance: a new account starts with an empty terms_version, and acceptance is recorded only by POST /v1/account/accept-terms. When absent, the guard is skipped (back-compatible). */
7114
7102
  requestBody?: {
7115
7103
  content: {
7116
7104
  "application/json": {
7117
- /** @description The Terms of Service version the user is accepting. */
7105
+ /** @description The Terms of Service version the client was built against. Checked against the current version, never recorded as acceptance. */
7118
7106
  terms_version?: string;
7119
7107
  };
7120
7108
  };
@@ -7138,7 +7126,7 @@ export interface operations {
7138
7126
  "application/json": components["schemas"]["Account"];
7139
7127
  };
7140
7128
  };
7141
- /** @description terms_version does not match the published current version. */
7129
+ /** @description terms_version does not match the published current version (version guard only; acceptance is recorded by POST /v1/account/accept-terms). */
7142
7130
  400: {
7143
7131
  headers: {
7144
7132
  [name: string]: unknown;
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";
8
+ export declare const SDK_VERSION = "0.11.9";
package/dist/version.js CHANGED
@@ -9,4 +9,4 @@
9
9
  * outbound request carries — see the emit site in `client.ts`. The header name is spelled
10
10
  * only there, so issue #2905's pre-merge gate 1 counts exactly one occurrence in `src/`.
11
11
  */
12
- export const SDK_VERSION = '0.11.8';
12
+ export const SDK_VERSION = '0.11.9';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hunt-labs/bytekit-sdk",
3
- "version": "0.11.8",
3
+ "version": "0.11.9",
4
4
  "description": "Official TypeScript SDK for the ByteKit API",
5
5
  "license": "MIT",
6
6
  "type": "module",