@veltdev/types 6.0.37 → 6.0.39

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.
@@ -219,6 +219,12 @@ export type ActivityResolverEventType = {
219
219
  ACTIVITY_SAVE_ERROR: 'activitySaveError';
220
220
  };
221
221
  export type ActivityResolverEvent = BaseResolverEvent<ActivityResolverEventType, ActivityResolverSource, ActivityResolverModuleName>;
222
+ /**
223
+ * The license state of a self-hosted (Tier B) deployment, as its gateway reports it (backend Part 119).
224
+ * `expiring-soon` is the 30 days before `expiresAt`; `in-grace` the 30 days after it, still fully working;
225
+ * `terminated` (after `terminatesAt`) and `unlicensed` refuse new sessions.
226
+ */
227
+ export type SelfHostedLicenseState = 'unlicensed' | 'valid' | 'expiring-soon' | 'in-grace' | 'terminated';
222
228
  export type ErrorEvent = {
223
229
  event?: string;
224
230
  sourceMethod?: string;
@@ -229,6 +235,14 @@ export type ErrorEvent = {
229
235
  code?: string;
230
236
  message?: string;
231
237
  source?: string;
238
+ /**
239
+ * Self-hosted license events only (`code` is `license_terminated`, `license_in_grace`,
240
+ * `license_expiring_soon` or `license_restored`): the deployment's license state, and its dates as ISO
241
+ * strings when known.
242
+ */
243
+ state?: SelfHostedLicenseState;
244
+ expiresAt?: string;
245
+ terminatesAt?: string;
232
246
  };
233
247
  export declare enum InitUpdateMethodNames {
234
248
  SET_DOCUMENTS = "setDocuments",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types",
3
- "version": "6.0.37",
3
+ "version": "6.0.39",
4
4
  "description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
5
5
  "homepage": "https://velt.dev",
6
6
  "keywords": [