deepline 0.1.233 → 0.1.235

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.
@@ -108,10 +108,10 @@ export const SDK_RELEASE = {
108
108
  // 0.1.175 ships loud `deepline enrich` empty-waterfall reporting.
109
109
  // 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
110
110
  // automatically without blocking their current command.
111
- version: '0.1.233',
111
+ version: '0.1.235',
112
112
  apiContract: '2026-06-dataset-handle-results-hard-cutover',
113
113
  supportPolicy: {
114
- latest: '0.1.233',
114
+ latest: '0.1.235',
115
115
  minimumSupported: '0.1.53',
116
116
  deprecatedBelow: '0.1.219',
117
117
  commandMinimumSupported: [
package/dist/cli/index.js CHANGED
@@ -625,10 +625,10 @@ var SDK_RELEASE = {
625
625
  // 0.1.175 ships loud `deepline enrich` empty-waterfall reporting.
626
626
  // 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
627
627
  // automatically without blocking their current command.
628
- version: "0.1.233",
628
+ version: "0.1.235",
629
629
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
630
630
  supportPolicy: {
631
- latest: "0.1.233",
631
+ latest: "0.1.235",
632
632
  minimumSupported: "0.1.53",
633
633
  deprecatedBelow: "0.1.219",
634
634
  commandMinimumSupported: [
@@ -6136,6 +6136,7 @@ var SUBSCRIPTION_STATUS_NEXT_COMMAND = "deepline billing subscription status --j
6136
6136
  var SUBSCRIPTION_CANCEL_PATH = "/api/v2/billing/subscription/cancel";
6137
6137
  var BILLING_TOP_UP_PATH = "/api/v2/billing/top-up";
6138
6138
  var DEFAULT_BALANCE_RECOVERY_CREDITS = 100;
6139
+ var BILLING_HISTORY_EXPORT_LIMIT = 5e3;
6139
6140
  function billingFailureFromError(error, options) {
6140
6141
  if (error instanceof AuthError) {
6141
6142
  return {
@@ -6510,10 +6511,32 @@ async function handleHistory(options) {
6510
6511
  "1y": 31536e3
6511
6512
  };
6512
6513
  const sinceAt = Math.max(0, Math.floor(Date.now() / 1e3) - windows[options.time]) * 1e3;
6513
- const payload = await http2.get(
6514
- `/api/v2/billing/ledger?since_at=${sinceAt}&limit=5000`
6515
- );
6516
- const entries = Array.isArray(payload.entries) ? payload.entries : [];
6514
+ const entries = [];
6515
+ let cursor = null;
6516
+ while (entries.length < BILLING_HISTORY_EXPORT_LIMIT) {
6517
+ const params = new URLSearchParams({
6518
+ since_at: String(sinceAt),
6519
+ limit: String(BILLING_HISTORY_EXPORT_LIMIT - entries.length)
6520
+ });
6521
+ if (cursor !== null) params.set("cursor", cursor);
6522
+ const payload = await http2.get(
6523
+ `/api/v2/billing/ledger?${params.toString()}`
6524
+ );
6525
+ if (Array.isArray(payload.entries)) {
6526
+ entries.push(
6527
+ ...payload.entries.slice(
6528
+ 0,
6529
+ BILLING_HISTORY_EXPORT_LIMIT - entries.length
6530
+ )
6531
+ );
6532
+ }
6533
+ const nextCursor = typeof payload.next_cursor === "string" && payload.next_cursor.length > 0 ? payload.next_cursor : null;
6534
+ if (payload.has_more !== true || nextCursor === null) break;
6535
+ if (nextCursor === cursor) {
6536
+ throw new Error("Billing history pagination cursor did not advance");
6537
+ }
6538
+ cursor = nextCursor;
6539
+ }
6517
6540
  const rows = entries.map(ledgerApiEntryToRow);
6518
6541
  const outputPath = await writeCsvRowsFile(
6519
6542
  `billing-history-${options.time}`,
@@ -610,10 +610,10 @@ var SDK_RELEASE = {
610
610
  // 0.1.175 ships loud `deepline enrich` empty-waterfall reporting.
611
611
  // 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
612
612
  // automatically without blocking their current command.
613
- version: "0.1.233",
613
+ version: "0.1.235",
614
614
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
615
615
  supportPolicy: {
616
- latest: "0.1.233",
616
+ latest: "0.1.235",
617
617
  minimumSupported: "0.1.53",
618
618
  deprecatedBelow: "0.1.219",
619
619
  commandMinimumSupported: [
@@ -6133,6 +6133,7 @@ var SUBSCRIPTION_STATUS_NEXT_COMMAND = "deepline billing subscription status --j
6133
6133
  var SUBSCRIPTION_CANCEL_PATH = "/api/v2/billing/subscription/cancel";
6134
6134
  var BILLING_TOP_UP_PATH = "/api/v2/billing/top-up";
6135
6135
  var DEFAULT_BALANCE_RECOVERY_CREDITS = 100;
6136
+ var BILLING_HISTORY_EXPORT_LIMIT = 5e3;
6136
6137
  function billingFailureFromError(error, options) {
6137
6138
  if (error instanceof AuthError) {
6138
6139
  return {
@@ -6507,10 +6508,32 @@ async function handleHistory(options) {
6507
6508
  "1y": 31536e3
6508
6509
  };
6509
6510
  const sinceAt = Math.max(0, Math.floor(Date.now() / 1e3) - windows[options.time]) * 1e3;
6510
- const payload = await http2.get(
6511
- `/api/v2/billing/ledger?since_at=${sinceAt}&limit=5000`
6512
- );
6513
- const entries = Array.isArray(payload.entries) ? payload.entries : [];
6511
+ const entries = [];
6512
+ let cursor = null;
6513
+ while (entries.length < BILLING_HISTORY_EXPORT_LIMIT) {
6514
+ const params = new URLSearchParams({
6515
+ since_at: String(sinceAt),
6516
+ limit: String(BILLING_HISTORY_EXPORT_LIMIT - entries.length)
6517
+ });
6518
+ if (cursor !== null) params.set("cursor", cursor);
6519
+ const payload = await http2.get(
6520
+ `/api/v2/billing/ledger?${params.toString()}`
6521
+ );
6522
+ if (Array.isArray(payload.entries)) {
6523
+ entries.push(
6524
+ ...payload.entries.slice(
6525
+ 0,
6526
+ BILLING_HISTORY_EXPORT_LIMIT - entries.length
6527
+ )
6528
+ );
6529
+ }
6530
+ const nextCursor = typeof payload.next_cursor === "string" && payload.next_cursor.length > 0 ? payload.next_cursor : null;
6531
+ if (payload.has_more !== true || nextCursor === null) break;
6532
+ if (nextCursor === cursor) {
6533
+ throw new Error("Billing history pagination cursor did not advance");
6534
+ }
6535
+ cursor = nextCursor;
6536
+ }
6514
6537
  const rows = entries.map(ledgerApiEntryToRow);
6515
6538
  const outputPath = await writeCsvRowsFile(
6516
6539
  `billing-history-${options.time}`,
package/dist/index.js CHANGED
@@ -424,10 +424,10 @@ var SDK_RELEASE = {
424
424
  // 0.1.175 ships loud `deepline enrich` empty-waterfall reporting.
425
425
  // 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
426
426
  // automatically without blocking their current command.
427
- version: "0.1.233",
427
+ version: "0.1.235",
428
428
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
429
429
  supportPolicy: {
430
- latest: "0.1.233",
430
+ latest: "0.1.235",
431
431
  minimumSupported: "0.1.53",
432
432
  deprecatedBelow: "0.1.219",
433
433
  commandMinimumSupported: [
package/dist/index.mjs CHANGED
@@ -354,10 +354,10 @@ var SDK_RELEASE = {
354
354
  // 0.1.175 ships loud `deepline enrich` empty-waterfall reporting.
355
355
  // 0.1.220 deprecates SDK CLI versions below 0.1.219 and updates them
356
356
  // automatically without blocking their current command.
357
- version: "0.1.233",
357
+ version: "0.1.235",
358
358
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
359
359
  supportPolicy: {
360
- latest: "0.1.233",
360
+ latest: "0.1.235",
361
361
  minimumSupported: "0.1.53",
362
362
  deprecatedBelow: "0.1.219",
363
363
  commandMinimumSupported: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.1.233",
3
+ "version": "0.1.235",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {