@dvina/sdk 4.0.212 → 4.0.214

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.
Files changed (33) hide show
  1. package/dist/adapters/angular/index.cjs +4 -4
  2. package/dist/adapters/angular/index.d.cts +2 -2
  3. package/dist/adapters/angular/index.d.ts +2 -2
  4. package/dist/adapters/angular/index.js +2 -2
  5. package/dist/billing/index.cjs +5 -5
  6. package/dist/billing/index.d.cts +2 -12
  7. package/dist/billing/index.d.ts +2 -12
  8. package/dist/billing/index.js +1 -1
  9. package/dist/{chunk-CW5W3LEG.js → chunk-BJDU4UX4.js} +290 -408
  10. package/dist/chunk-BJDU4UX4.js.map +1 -0
  11. package/dist/{chunk-5TAY5I34.js → chunk-Q5XGHH7D.js} +471 -209
  12. package/dist/chunk-Q5XGHH7D.js.map +1 -0
  13. package/dist/{chunk-4EESBP3A.cjs → chunk-XK5PW7IX.cjs} +311 -429
  14. package/dist/chunk-XK5PW7IX.cjs.map +1 -0
  15. package/dist/{chunk-BL3GFOZR.cjs → chunk-Y4OD5SDF.cjs} +473 -208
  16. package/dist/chunk-Y4OD5SDF.cjs.map +1 -0
  17. package/dist/{client-mOcqT66b.d.ts → client-Bn-0nJ8y.d.ts} +9 -2
  18. package/dist/{client-DRS_ycOv.d.cts → client-Ca2wlmC4.d.cts} +9 -2
  19. package/dist/{index-BKyI_YQS.d.cts → index-Ct2Mh0zl.d.cts} +1 -1
  20. package/dist/{index-BrsbEcIx.d.ts → index-D50r0Gl0.d.ts} +1 -1
  21. package/dist/index.cjs +387 -387
  22. package/dist/index.d.cts +9 -7
  23. package/dist/index.d.ts +9 -7
  24. package/dist/index.js +2 -2
  25. package/dist/pagination/index.d.cts +2 -2
  26. package/dist/pagination/index.d.ts +2 -2
  27. package/dist/{sync-engine-DN0tSqtg.d.cts → sync-engine-21OlgS5_.d.cts} +5 -16
  28. package/dist/{sync-engine-BmE8-rhX.d.ts → sync-engine-D35aV8Zc.d.ts} +5 -16
  29. package/package.json +1 -1
  30. package/dist/chunk-4EESBP3A.cjs.map +0 -1
  31. package/dist/chunk-5TAY5I34.js.map +0 -1
  32. package/dist/chunk-BL3GFOZR.cjs.map +0 -1
  33. package/dist/chunk-CW5W3LEG.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunk4EESBP3A_cjs = require('../../chunk-4EESBP3A.cjs');
3
+ var chunkXK5PW7IX_cjs = require('../../chunk-XK5PW7IX.cjs');
4
4
  require('../../chunk-342BFYZZ.cjs');
5
5
  require('../../chunk-UELAE75E.cjs');
6
- require('../../chunk-BL3GFOZR.cjs');
6
+ require('../../chunk-Y4OD5SDF.cjs');
7
7
  require('../../chunk-KV5SP7RP.cjs');
8
8
  require('../../chunk-32A6N4YK.cjs');
9
9
  require('../../chunk-DZUJEN5N.cjs');
@@ -147,10 +147,10 @@ function hasDispose(value) {
147
147
  function provideDvina(optionsOrFactory) {
148
148
  return core.makeEnvironmentProviders([
149
149
  {
150
- provide: chunk4EESBP3A_cjs.DvinaSdk,
150
+ provide: chunkXK5PW7IX_cjs.DvinaSdk,
151
151
  useFactory: () => {
152
152
  const options = typeof optionsOrFactory === "function" ? optionsOrFactory() : optionsOrFactory;
153
- return new chunk4EESBP3A_cjs.DvinaSdk(options);
153
+ return new chunkXK5PW7IX_cjs.DvinaSdk(options);
154
154
  }
155
155
  }
156
156
  ]);
@@ -1,8 +1,8 @@
1
1
  import { Signal, DestroyRef, EnvironmentProviders } from '@angular/core';
2
- import { D as DvinaSdkOptions } from '../../client-DRS_ycOv.cjs';
2
+ import { D as DvinaSdkOptions } from '../../client-Ca2wlmC4.cjs';
3
3
  import { D as DvinaQueryRef } from '../../types-2RotD0Ab.cjs';
4
4
  import '../../error-CsVoUTY8.cjs';
5
- import '../../sync-engine-DN0tSqtg.cjs';
5
+ import '../../sync-engine-21OlgS5_.cjs';
6
6
  import 'graphql';
7
7
  import 'dexie';
8
8
  import '../../client-Bb2gD6Iz.cjs';
@@ -1,8 +1,8 @@
1
1
  import { Signal, DestroyRef, EnvironmentProviders } from '@angular/core';
2
- import { D as DvinaSdkOptions } from '../../client-mOcqT66b.js';
2
+ import { D as DvinaSdkOptions } from '../../client-Bn-0nJ8y.js';
3
3
  import { D as DvinaQueryRef } from '../../types-2RotD0Ab.js';
4
4
  import '../../error-CsVoUTY8.js';
5
- import '../../sync-engine-BmE8-rhX.js';
5
+ import '../../sync-engine-D35aV8Zc.js';
6
6
  import 'graphql';
7
7
  import 'dexie';
8
8
  import '../../client-Bb2gD6Iz.js';
@@ -1,7 +1,7 @@
1
- import { DvinaSdk } from '../../chunk-CW5W3LEG.js';
1
+ import { DvinaSdk } from '../../chunk-BJDU4UX4.js';
2
2
  import '../../chunk-KEM6SUTS.js';
3
3
  import '../../chunk-PDM2KR7T.js';
4
- import '../../chunk-5TAY5I34.js';
4
+ import '../../chunk-Q5XGHH7D.js';
5
5
  import '../../chunk-7XBJ77RJ.js';
6
6
  import '../../chunk-ETPR6MV5.js';
7
7
  import '../../chunk-5WRI5ZAA.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkBL3GFOZR_cjs = require('../chunk-BL3GFOZR.cjs');
3
+ var chunkY4OD5SDF_cjs = require('../chunk-Y4OD5SDF.cjs');
4
4
  require('../chunk-KV5SP7RP.cjs');
5
5
  require('../chunk-DZUJEN5N.cjs');
6
6
 
@@ -8,19 +8,19 @@ require('../chunk-DZUJEN5N.cjs');
8
8
 
9
9
  Object.defineProperty(exports, "BillingClient", {
10
10
  enumerable: true,
11
- get: function () { return chunkBL3GFOZR_cjs.BillingClient; }
11
+ get: function () { return chunkY4OD5SDF_cjs.BillingClient; }
12
12
  });
13
13
  Object.defineProperty(exports, "EntitlementTier", {
14
14
  enumerable: true,
15
- get: function () { return chunkBL3GFOZR_cjs.EntitlementTier; }
15
+ get: function () { return chunkY4OD5SDF_cjs.EntitlementTier; }
16
16
  });
17
17
  Object.defineProperty(exports, "SubscriptionCycle", {
18
18
  enumerable: true,
19
- get: function () { return chunkBL3GFOZR_cjs.SubscriptionCycle; }
19
+ get: function () { return chunkY4OD5SDF_cjs.SubscriptionCycle; }
20
20
  });
21
21
  Object.defineProperty(exports, "SubscriptionProvider", {
22
22
  enumerable: true,
23
- get: function () { return chunkBL3GFOZR_cjs.SubscriptionProvider; }
23
+ get: function () { return chunkY4OD5SDF_cjs.SubscriptionProvider; }
24
24
  });
25
25
  //# sourceMappingURL=index.cjs.map
26
26
  //# sourceMappingURL=index.cjs.map
@@ -167,13 +167,14 @@ interface BillingClientOptions {
167
167
  declare class BillingClient {
168
168
  private readonly http;
169
169
  private readonly options;
170
- private readonly activeAbortControllers;
170
+ private readonly activeUpdateStreams;
171
171
  constructor(options: BillingClientOptions);
172
172
  /**
173
173
  * Terminate all active SSE streams.
174
174
  * Call this on logout or SDK teardown to prevent lingering connections.
175
175
  */
176
176
  destroy(): void;
177
+ reconnectAll(): void;
177
178
  get plans(): {
178
179
  list: () => Promise<{
179
180
  id: string;
@@ -272,11 +273,6 @@ declare class BillingClient {
272
273
  cancel: () => Promise<boolean>;
273
274
  reactivate: () => Promise<boolean>;
274
275
  releaseSchedule: () => Promise<boolean>;
275
- /**
276
- * Subscribe to real-time subscription updates via SSE.
277
- * Returns an AsyncIterable that yields WorkspaceSubscription snapshots.
278
- * Automatically reconnects with exponential backoff and token refresh on auth errors.
279
- */
280
276
  updates: () => AsyncIterable<WorkspaceSubscription>;
281
277
  };
282
278
  get seats(): {
@@ -327,12 +323,6 @@ declare class BillingClient {
327
323
  createCustomer: (variables: CreateCustomerMutationVariables) => Promise<string>;
328
324
  };
329
325
  private request;
330
- /**
331
- * Create an SSE stream that connects to the billing SSE endpoint.
332
- * Reconnects automatically with exponential backoff.
333
- * On 401/403, refreshes the token and retries with a short delay.
334
- */
335
- private createSseStream;
336
326
  }
337
327
 
338
328
  export { BillingClient, type BillingClientOptions, type EntitlementDetail, EntitlementTier, type Plan, type PlanFragmentFragment as PlanFragment, type Price, type ScheduledChange, SubscriptionCycle, SubscriptionProvider, type WorkspaceSubscription };
@@ -167,13 +167,14 @@ interface BillingClientOptions {
167
167
  declare class BillingClient {
168
168
  private readonly http;
169
169
  private readonly options;
170
- private readonly activeAbortControllers;
170
+ private readonly activeUpdateStreams;
171
171
  constructor(options: BillingClientOptions);
172
172
  /**
173
173
  * Terminate all active SSE streams.
174
174
  * Call this on logout or SDK teardown to prevent lingering connections.
175
175
  */
176
176
  destroy(): void;
177
+ reconnectAll(): void;
177
178
  get plans(): {
178
179
  list: () => Promise<{
179
180
  id: string;
@@ -272,11 +273,6 @@ declare class BillingClient {
272
273
  cancel: () => Promise<boolean>;
273
274
  reactivate: () => Promise<boolean>;
274
275
  releaseSchedule: () => Promise<boolean>;
275
- /**
276
- * Subscribe to real-time subscription updates via SSE.
277
- * Returns an AsyncIterable that yields WorkspaceSubscription snapshots.
278
- * Automatically reconnects with exponential backoff and token refresh on auth errors.
279
- */
280
276
  updates: () => AsyncIterable<WorkspaceSubscription>;
281
277
  };
282
278
  get seats(): {
@@ -327,12 +323,6 @@ declare class BillingClient {
327
323
  createCustomer: (variables: CreateCustomerMutationVariables) => Promise<string>;
328
324
  };
329
325
  private request;
330
- /**
331
- * Create an SSE stream that connects to the billing SSE endpoint.
332
- * Reconnects automatically with exponential backoff.
333
- * On 401/403, refreshes the token and retries with a short delay.
334
- */
335
- private createSseStream;
336
326
  }
337
327
 
338
328
  export { BillingClient, type BillingClientOptions, type EntitlementDetail, EntitlementTier, type Plan, type PlanFragmentFragment as PlanFragment, type Price, type ScheduledChange, SubscriptionCycle, SubscriptionProvider, type WorkspaceSubscription };
@@ -1,4 +1,4 @@
1
- export { BillingClient, EntitlementTier, SubscriptionCycle, SubscriptionProvider } from '../chunk-5TAY5I34.js';
1
+ export { BillingClient, EntitlementTier, SubscriptionCycle, SubscriptionProvider } from '../chunk-Q5XGHH7D.js';
2
2
  import '../chunk-7XBJ77RJ.js';
3
3
  import '../chunk-5WRI5ZAA.js';
4
4
  //# sourceMappingURL=index.js.map