@0xinsider/sdk 0.135.2 → 0.136.1

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/README.md CHANGED
@@ -493,9 +493,10 @@ const holders = await client.call("getMarketHolders", {
493
493
  An operation with path parameters or a request body needs its options argument: `client.call("createWebhook")` and `paginate(client, "listWebhookDeliveries")` do not compile. The same holds for `list()`, `text()`, `paginatePages()` and `collect()`. The untyped form takes an operation id chosen at runtime (a value typed `ApiOperationId`), and a missing path parameter there throws before any request.
494
494
 
495
495
  `getAccountIdentity()` remains available to a valid credential after paid data
496
- access lapses and returns `credential_status` plus
497
- `entitlement.paid_data_access` and `entitlement.recovery_action`. Call
498
- `getUsage()` for the caller's rate-limit, daily-usage and monthly-quota state;
496
+ access lapses and returns `credential_status`,
497
+ `entitlement.paid_data_access`, `entitlement.recovery_action` and `plan`
498
+ (`"pro"`, `"max"`, or `null` while access is lapsed). Call `getUsage()` for the
499
+ rate-limit, daily-usage and monthly-quota state, whose limits the plan sets;
499
500
  paid data routes still return `402 subscription_required` until access is
500
501
  renewed.
501
502
 
@@ -1,5 +1,5 @@
1
1
  export declare const OPENAPI_SOURCE = "0xinsider/0xinsider:web/public/api/v1/openapi.json";
2
- export declare const OPENAPI_SHA256 = "19abf48ea019c82bbcfa94c8307fdff586ba98823b44d3b915243bb584a84db2";
2
+ export declare const OPENAPI_SHA256 = "69f7d93b0f903102bc54cb9c9f25942c2e3a81621da420b192c0c0c190f03aad";
3
3
  export declare const OPENAPI_VERSION = "1.0.0";
4
4
  export declare const OPERATION_COUNT = 120;
5
5
  export declare const APP_REPOSITORY = "0xinsider/0xinsider";
@@ -6,10 +6,10 @@
6
6
  // when it could be resolved, else null. Compare OPENAPI_SHA256 with the live
7
7
  // document to see whether a release is behind the API.
8
8
  export const OPENAPI_SOURCE = "0xinsider/0xinsider:web/public/api/v1/openapi.json";
9
- export const OPENAPI_SHA256 = "19abf48ea019c82bbcfa94c8307fdff586ba98823b44d3b915243bb584a84db2";
9
+ export const OPENAPI_SHA256 = "69f7d93b0f903102bc54cb9c9f25942c2e3a81621da420b192c0c0c190f03aad";
10
10
  export const OPENAPI_VERSION = "1.0.0";
11
11
  export const OPERATION_COUNT = 120;
12
12
  export const APP_REPOSITORY = "0xinsider/0xinsider";
13
13
  export const APP_SPEC_PATH = "web/public/api/v1/openapi.json";
14
- export const APP_COMMIT = "077e9e3ba66b30ebd34df27d35163bbc8a45d100";
14
+ export const APP_COMMIT = "55735481126d45911e6bf73ff648eda61654ce6d";
15
15
  //# sourceMappingURL=provenance.js.map
package/dist/schema.d.ts CHANGED
@@ -12,6 +12,8 @@ export type AccountIdentity = {
12
12
  /** When paid data access is lapsed, the caller should renew the subscription; otherwise null. */
13
13
  recovery_action: "renew_subscription" | null;
14
14
  };
15
+ /** The plan whose features this credential can use now: pro or max. null while paid_data_access is lapsed. The plan sets the per-minute rate limit and the monthly quota; GET /api/v1/usage reports both with what is left of each. */
16
+ plan: "pro" | "max" | null;
15
17
  /** The scopes an OAuth grant or integration key carries; null for full developer-key access. */
16
18
  scopes: string[] | null;
17
19
  };
@@ -6711,6 +6713,8 @@ export interface OperationData {
6711
6713
  /** When paid data access is lapsed, the caller should renew the subscription; otherwise null. */
6712
6714
  recovery_action: "renew_subscription" | null;
6713
6715
  };
6716
+ /** The plan whose features this credential can use now: pro or max. null while paid_data_access is lapsed. The plan sets the per-minute rate limit and the monthly quota; GET /api/v1/usage reports both with what is left of each. */
6717
+ plan: "pro" | "max" | null;
6714
6718
  /** The scopes an OAuth grant or integration key carries; null for full developer-key access. */
6715
6719
  scopes: string[] | null;
6716
6720
  };