@tearleads/client-sdk 0.1.89 → 0.1.90

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.
@@ -453,8 +453,10 @@ export declare const listRootIdentityOrganizationsOperation: Omit<{
453
453
  organizationId: string;
454
454
  roster: {
455
455
  disabledAt: string | null;
456
+ holdsSeat: boolean;
456
457
  joinedAt: string;
457
458
  status: "active" | "disabled";
459
+ syncPausedAt: string | null;
458
460
  };
459
461
  }[];
460
462
  }, {
@@ -474,8 +476,10 @@ export declare const listRootIdentityOrganizationsOperation: Omit<{
474
476
  organizationId: string;
475
477
  roster: {
476
478
  disabledAt: string | null;
479
+ holdsSeat: boolean;
477
480
  joinedAt: string;
478
481
  status: "active" | "disabled";
482
+ syncPausedAt: string | null;
479
483
  };
480
484
  }[];
481
485
  }, z.core.$ZodTypeInternals<{
@@ -495,8 +499,10 @@ export declare const listRootIdentityOrganizationsOperation: Omit<{
495
499
  organizationId: string;
496
500
  roster: {
497
501
  disabledAt: string | null;
502
+ holdsSeat: boolean;
498
503
  joinedAt: string;
499
504
  status: "active" | "disabled";
505
+ syncPausedAt: string | null;
500
506
  };
501
507
  }[];
502
508
  }, {
@@ -516,8 +522,10 @@ export declare const listRootIdentityOrganizationsOperation: Omit<{
516
522
  organizationId: string;
517
523
  roster: {
518
524
  disabledAt: string | null;
525
+ holdsSeat: boolean;
519
526
  joinedAt: string;
520
527
  status: "active" | "disabled";
528
+ syncPausedAt: string | null;
521
529
  };
522
530
  }[];
523
531
  }>>;
@@ -261,6 +261,14 @@ export declare const getRootOrganizationOperation: Omit<{
261
261
  createdAt: string;
262
262
  billingStatus: "local" | "trialing" | "active" | "disabled" | "deleting" | "purged" | null;
263
263
  };
264
+ overview: {
265
+ adminGroupId: string;
266
+ memberGroupId: string;
267
+ activeMemberCount: number;
268
+ disabledMemberCount: number;
269
+ syncPausedMemberCount: number;
270
+ openSeatAssignmentCount: number;
271
+ };
264
272
  billing: {
265
273
  currentPeriodStartsAt: string | null;
266
274
  providerCustomerId: string | null;
@@ -268,6 +276,7 @@ export declare const getRootOrganizationOperation: Omit<{
268
276
  providerProductId: string | null;
269
277
  providerTransactionId: string | null;
270
278
  entitlementId: string | null;
279
+ purgeStartedAt: string | null;
271
280
  createdAt: string;
272
281
  updatedAt: string;
273
282
  currentPeriodEndsAt: string | null;
@@ -326,6 +335,14 @@ export declare const getRootOrganizationOperation: Omit<{
326
335
  createdAt: string;
327
336
  billingStatus: "local" | "trialing" | "active" | "disabled" | "deleting" | "purged" | null;
328
337
  };
338
+ overview: {
339
+ adminGroupId: string;
340
+ memberGroupId: string;
341
+ activeMemberCount: number;
342
+ disabledMemberCount: number;
343
+ syncPausedMemberCount: number;
344
+ openSeatAssignmentCount: number;
345
+ };
329
346
  billing: {
330
347
  currentPeriodStartsAt: string | null;
331
348
  providerCustomerId: string | null;
@@ -333,6 +350,7 @@ export declare const getRootOrganizationOperation: Omit<{
333
350
  providerProductId: string | null;
334
351
  providerTransactionId: string | null;
335
352
  entitlementId: string | null;
353
+ purgeStartedAt: string | null;
336
354
  createdAt: string;
337
355
  updatedAt: string;
338
356
  currentPeriodEndsAt: string | null;
@@ -391,6 +409,14 @@ export declare const getRootOrganizationOperation: Omit<{
391
409
  createdAt: string;
392
410
  billingStatus: "local" | "trialing" | "active" | "disabled" | "deleting" | "purged" | null;
393
411
  };
412
+ overview: {
413
+ adminGroupId: string;
414
+ memberGroupId: string;
415
+ activeMemberCount: number;
416
+ disabledMemberCount: number;
417
+ syncPausedMemberCount: number;
418
+ openSeatAssignmentCount: number;
419
+ };
394
420
  billing: {
395
421
  currentPeriodStartsAt: string | null;
396
422
  providerCustomerId: string | null;
@@ -398,6 +424,7 @@ export declare const getRootOrganizationOperation: Omit<{
398
424
  providerProductId: string | null;
399
425
  providerTransactionId: string | null;
400
426
  entitlementId: string | null;
427
+ purgeStartedAt: string | null;
401
428
  createdAt: string;
402
429
  updatedAt: string;
403
430
  currentPeriodEndsAt: string | null;
@@ -456,6 +483,14 @@ export declare const getRootOrganizationOperation: Omit<{
456
483
  createdAt: string;
457
484
  billingStatus: "local" | "trialing" | "active" | "disabled" | "deleting" | "purged" | null;
458
485
  };
486
+ overview: {
487
+ adminGroupId: string;
488
+ memberGroupId: string;
489
+ activeMemberCount: number;
490
+ disabledMemberCount: number;
491
+ syncPausedMemberCount: number;
492
+ openSeatAssignmentCount: number;
493
+ };
459
494
  billing: {
460
495
  currentPeriodStartsAt: string | null;
461
496
  providerCustomerId: string | null;
@@ -463,6 +498,7 @@ export declare const getRootOrganizationOperation: Omit<{
463
498
  providerProductId: string | null;
464
499
  providerTransactionId: string | null;
465
500
  entitlementId: string | null;
501
+ purgeStartedAt: string | null;
466
502
  createdAt: string;
467
503
  updatedAt: string;
468
504
  currentPeriodEndsAt: string | null;
@@ -660,8 +696,10 @@ export declare const listRootOrganizationIdentitiesOperation: Omit<{
660
696
  };
661
697
  roster: {
662
698
  disabledAt: string | null;
699
+ holdsSeat: boolean;
663
700
  joinedAt: string;
664
701
  status: "active" | "disabled";
702
+ syncPausedAt: string | null;
665
703
  };
666
704
  }[];
667
705
  nextCursor: string | null;
@@ -678,8 +716,10 @@ export declare const listRootOrganizationIdentitiesOperation: Omit<{
678
716
  };
679
717
  roster: {
680
718
  disabledAt: string | null;
719
+ holdsSeat: boolean;
681
720
  joinedAt: string;
682
721
  status: "active" | "disabled";
722
+ syncPausedAt: string | null;
683
723
  };
684
724
  }[];
685
725
  nextCursor: string | null;
@@ -696,8 +736,10 @@ export declare const listRootOrganizationIdentitiesOperation: Omit<{
696
736
  };
697
737
  roster: {
698
738
  disabledAt: string | null;
739
+ holdsSeat: boolean;
699
740
  joinedAt: string;
700
741
  status: "active" | "disabled";
742
+ syncPausedAt: string | null;
701
743
  };
702
744
  }[];
703
745
  nextCursor: string | null;
@@ -714,8 +756,10 @@ export declare const listRootOrganizationIdentitiesOperation: Omit<{
714
756
  };
715
757
  roster: {
716
758
  disabledAt: string | null;
759
+ holdsSeat: boolean;
717
760
  joinedAt: string;
718
761
  status: "active" | "disabled";
762
+ syncPausedAt: string | null;
719
763
  };
720
764
  }[];
721
765
  nextCursor: string | null;
@@ -1,20 +1,28 @@
1
1
  import { z } from "zod";
2
2
  export declare const RootRosterSchema: z.ZodType<{
3
3
  disabledAt: string | null;
4
+ holdsSeat: boolean;
4
5
  joinedAt: string;
5
6
  status: "active" | "disabled";
7
+ syncPausedAt: string | null;
6
8
  }, {
7
9
  disabledAt: string | null;
10
+ holdsSeat: boolean;
8
11
  joinedAt: string;
9
12
  status: "active" | "disabled";
13
+ syncPausedAt: string | null;
10
14
  }, z.core.$ZodTypeInternals<{
11
15
  disabledAt: string | null;
16
+ holdsSeat: boolean;
12
17
  joinedAt: string;
13
18
  status: "active" | "disabled";
19
+ syncPausedAt: string | null;
14
20
  }, {
15
21
  disabledAt: string | null;
22
+ holdsSeat: boolean;
16
23
  joinedAt: string;
17
24
  status: "active" | "disabled";
25
+ syncPausedAt: string | null;
18
26
  }>>;
19
27
  /** Operator-facing view of one registered identity, from `GET /root/identities`. */
20
28
  export declare const RootIdentitySummaryResponseSchema: z.ZodType<{
@@ -266,8 +274,10 @@ export declare const RootIdentityOrganizationResponseSchema: z.ZodType<{
266
274
  organizationId: string;
267
275
  roster: {
268
276
  disabledAt: string | null;
277
+ holdsSeat: boolean;
269
278
  joinedAt: string;
270
279
  status: "active" | "disabled";
280
+ syncPausedAt: string | null;
271
281
  };
272
282
  }, {
273
283
  billing: {
@@ -285,8 +295,10 @@ export declare const RootIdentityOrganizationResponseSchema: z.ZodType<{
285
295
  organizationId: string;
286
296
  roster: {
287
297
  disabledAt: string | null;
298
+ holdsSeat: boolean;
288
299
  joinedAt: string;
289
300
  status: "active" | "disabled";
301
+ syncPausedAt: string | null;
290
302
  };
291
303
  }, z.core.$ZodTypeInternals<{
292
304
  billing: {
@@ -304,8 +316,10 @@ export declare const RootIdentityOrganizationResponseSchema: z.ZodType<{
304
316
  organizationId: string;
305
317
  roster: {
306
318
  disabledAt: string | null;
319
+ holdsSeat: boolean;
307
320
  joinedAt: string;
308
321
  status: "active" | "disabled";
322
+ syncPausedAt: string | null;
309
323
  };
310
324
  }, {
311
325
  billing: {
@@ -323,8 +337,10 @@ export declare const RootIdentityOrganizationResponseSchema: z.ZodType<{
323
337
  organizationId: string;
324
338
  roster: {
325
339
  disabledAt: string | null;
340
+ holdsSeat: boolean;
326
341
  joinedAt: string;
327
342
  status: "active" | "disabled";
343
+ syncPausedAt: string | null;
328
344
  };
329
345
  }>>;
330
346
  export type RootIdentityOrganizationResponse = z.infer<typeof RootIdentityOrganizationResponseSchema>;
@@ -345,8 +361,10 @@ export declare const RootIdentityOrganizationsResponseSchema: z.ZodType<{
345
361
  organizationId: string;
346
362
  roster: {
347
363
  disabledAt: string | null;
364
+ holdsSeat: boolean;
348
365
  joinedAt: string;
349
366
  status: "active" | "disabled";
367
+ syncPausedAt: string | null;
350
368
  };
351
369
  }[];
352
370
  }, {
@@ -366,8 +384,10 @@ export declare const RootIdentityOrganizationsResponseSchema: z.ZodType<{
366
384
  organizationId: string;
367
385
  roster: {
368
386
  disabledAt: string | null;
387
+ holdsSeat: boolean;
369
388
  joinedAt: string;
370
389
  status: "active" | "disabled";
390
+ syncPausedAt: string | null;
371
391
  };
372
392
  }[];
373
393
  }, z.core.$ZodTypeInternals<{
@@ -387,8 +407,10 @@ export declare const RootIdentityOrganizationsResponseSchema: z.ZodType<{
387
407
  organizationId: string;
388
408
  roster: {
389
409
  disabledAt: string | null;
410
+ holdsSeat: boolean;
390
411
  joinedAt: string;
391
412
  status: "active" | "disabled";
413
+ syncPausedAt: string | null;
392
414
  };
393
415
  }[];
394
416
  }, {
@@ -408,8 +430,10 @@ export declare const RootIdentityOrganizationsResponseSchema: z.ZodType<{
408
430
  organizationId: string;
409
431
  roster: {
410
432
  disabledAt: string | null;
433
+ holdsSeat: boolean;
411
434
  joinedAt: string;
412
435
  status: "active" | "disabled";
436
+ syncPausedAt: string | null;
413
437
  };
414
438
  }[];
415
439
  }>>;
@@ -3,8 +3,12 @@ import { arraySchema, loosePlainObject, nonEmptyStringSchema, nonNegativeInteger
3
3
  import { OrganizationBillingStatusSchema } from "./organizationBilling.js";
4
4
  export const RootRosterSchema = loosePlainObject({
5
5
  disabledAt: z.string().nullable(),
6
+ /** Whether the identity holds an open billable-seat assignment in the org. */
7
+ holdsSeat: z.boolean(),
6
8
  joinedAt: z.string(),
7
9
  status: z.literal(["active", "disabled"]),
10
+ /** When the member paused the org's sync to their devices; null while syncing. */
11
+ syncPausedAt: z.string().nullable(),
8
12
  });
9
13
  /** Operator-facing view of one registered identity, from `GET /root/identities`. */
10
14
  export const RootIdentitySummaryResponseSchema = loosePlainObject({
@@ -1 +1 @@
1
- {"version":3,"file":"root.js","sourceRoot":"","sources":["root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAExE,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;IAC/C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;CAC1C,CAAC,CAAC;AAEH,oFAAoF;AACpF,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC;IAChE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,qBAAqB,EAAE,oBAAoB;IAC3C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,2BA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CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC;AACF,MAAM,CAAC,MAAM,6CAA6C,GAAG,gBAAgB,CAC3E,4BAA4B,CAC7B,CAAC;AAMF,MAAM,CAAC,MAAM,sCAAsC,GAAG,gBAAgB,CAAC;IACrE,+EAA+E;IAC/E,OAAO,EAAE,6CAA6C,CAAC,QAAQ,EAAE;IACjE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE;IAClC,cAAc,EAAE,oBAAoB;IACpC,MAAM,EAAE,gBAAgB;CACzB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,uCAAuC,GAAG,gBAAgB,CAAC;IACtE,aAAa,EAAE,WAAW,CAAC,sCAAsC,CAAC;CACnE,CAAC,CAAC;AAMH,MAAM,UAAU,wBAAwB,CACtC,KAAc;IAEd,OAAO,4BAA4B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,KAAc;IAEd,OAAO,gCAAgC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,KAAc;IAEd,OAAO,uCAAuC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC1E,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n arraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n nonNegativeIntegerSchema,\n sha256HexStringSchema,\n} from \"../schema\";\nimport { OrganizationBillingStatusSchema } from \"./organizationBilling\";\n\nexport const RootRosterSchema = loosePlainObject({\n disabledAt: z.string().nullable(),\n joinedAt: z.string(),\n status: z.literal([\"active\", \"disabled\"]),\n});\n\n/** Operator-facing view of one registered identity, from `GET /root/identities`. */\nexport const RootIdentitySummaryResponseSchema = loosePlainObject({\n createdAt: z.string(),\n defaultOrganizationId: nonEmptyStringSchema,\n isRoot: z.boolean(),\n lastActiveAt: z.string().nullable(),\n registrationSourceIpAddress: z.string().nullable(),\n signingKeyFingerprint: sha256HexStringSchema,\n userId: nonEmptyStringSchema,\n});\n\nexport type RootIdentitySummaryResponse = z.infer<\n typeof RootIdentitySummaryResponseSchema\n>;\n\nexport const RootIdentitiesResponseSchema = loosePlainObject({\n identities: arraySchema(RootIdentitySummaryResponseSchema),\n /** Opaque cursor for the next page; null when the listing is exhausted. */\n nextCursor: z.string().nullable(),\n});\n\nexport type RootIdentitiesResponse = z.infer<\n typeof RootIdentitiesResponseSchema\n>;\n\n/** A live session of the inspected identity; no session is the operator's. */\nexport const RootIdentitySessionResponseSchema = loosePlainObject({\n createdAt: z.string(),\n id: sha256HexStringSchema,\n ipAddresses: arraySchema(nonEmptyStringSchema),\n lastActiveAt: z.string(),\n lastActiveIp: nonEmptyStringSchema.nullable(),\n signingKeyFingerprint: z.string(),\n});\n\nexport type RootIdentitySessionResponse = z.infer<\n typeof RootIdentitySessionResponseSchema\n>;\n\nexport const RootIdentityDetailResponseSchema = loosePlainObject({\n identity: RootIdentitySummaryResponseSchema,\n sessions: arraySchema(RootIdentitySessionResponseSchema),\n});\n\nexport type RootIdentityDetailResponse = z.infer<\n typeof RootIdentityDetailResponseSchema\n>;\n\nexport const rootOrganizationBillingShape = {\n currentPeriodEndsAt: z.string().nullable(),\n disabledAt: z.string().nullable(),\n provider: z.string().nullable(),\n purgeAfter: z.string().nullable(),\n purgedAt: z.string().nullable(),\n seatCount: nonNegativeIntegerSchema,\n status: OrganizationBillingStatusSchema,\n trialEndsAt: z.string().nullable(),\n};\nexport const RootIdentityOrganizationBillingResponseSchema = loosePlainObject(\n rootOrganizationBillingShape,\n);\n\nexport type RootIdentityOrganizationBillingResponse = z.infer<\n typeof RootIdentityOrganizationBillingResponseSchema\n>;\n\nexport const RootIdentityOrganizationResponseSchema = loosePlainObject({\n /** Null only when the organization has no billing row, which is unexpected. */\n billing: RootIdentityOrganizationBillingResponseSchema.nullable(),\n createdAt: z.string(),\n isDefaultOrganization: z.boolean(),\n organizationId: nonEmptyStringSchema,\n roster: RootRosterSchema,\n});\n\nexport type RootIdentityOrganizationResponse = z.infer<\n typeof RootIdentityOrganizationResponseSchema\n>;\n\nexport const RootIdentityOrganizationsResponseSchema = loosePlainObject({\n organizations: arraySchema(RootIdentityOrganizationResponseSchema),\n});\n\nexport type RootIdentityOrganizationsResponse = z.infer<\n typeof RootIdentityOrganizationsResponseSchema\n>;\n\nexport function isRootIdentitiesResponse(\n value: unknown,\n): value is RootIdentitiesResponse {\n return RootIdentitiesResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityDetailResponse(\n value: unknown,\n): value is RootIdentityDetailResponse {\n return RootIdentityDetailResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityOrganizationsResponse(\n value: unknown,\n): value is RootIdentityOrganizationsResponse {\n return RootIdentityOrganizationsResponseSchema.safeParse(value).success;\n}\n"]}
1
+ {"version":3,"file":"root.js","sourceRoot":"","sources":["root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAExE,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;IAC/C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,8EAA8E;IAC9E,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACzC,kFAAkF;IAClF,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ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IntegerSchema,\n sha256HexStringSchema,\n} from \"../schema\";\nimport { OrganizationBillingStatusSchema } from \"./organizationBilling\";\n\nexport const RootRosterSchema = loosePlainObject({\n disabledAt: z.string().nullable(),\n /** Whether the identity holds an open billable-seat assignment in the org. */\n holdsSeat: z.boolean(),\n joinedAt: z.string(),\n status: z.literal([\"active\", \"disabled\"]),\n /** When the member paused the org's sync to their devices; null while syncing. */\n syncPausedAt: z.string().nullable(),\n});\n\n/** Operator-facing view of one registered identity, from `GET /root/identities`. */\nexport const RootIdentitySummaryResponseSchema = loosePlainObject({\n createdAt: z.string(),\n defaultOrganizationId: nonEmptyStringSchema,\n isRoot: z.boolean(),\n lastActiveAt: z.string().nullable(),\n registrationSourceIpAddress: z.string().nullable(),\n signingKeyFingerprint: sha256HexStringSchema,\n userId: nonEmptyStringSchema,\n});\n\nexport type RootIdentitySummaryResponse = z.infer<\n typeof RootIdentitySummaryResponseSchema\n>;\n\nexport const RootIdentitiesResponseSchema = loosePlainObject({\n identities: arraySchema(RootIdentitySummaryResponseSchema),\n /** Opaque cursor for the next page; null when the listing is exhausted. */\n nextCursor: z.string().nullable(),\n});\n\nexport type RootIdentitiesResponse = z.infer<\n typeof RootIdentitiesResponseSchema\n>;\n\n/** A live session of the inspected identity; no session is the operator's. */\nexport const RootIdentitySessionResponseSchema = loosePlainObject({\n createdAt: z.string(),\n id: sha256HexStringSchema,\n ipAddresses: arraySchema(nonEmptyStringSchema),\n lastActiveAt: z.string(),\n lastActiveIp: nonEmptyStringSchema.nullable(),\n signingKeyFingerprint: z.string(),\n});\n\nexport type RootIdentitySessionResponse = z.infer<\n typeof RootIdentitySessionResponseSchema\n>;\n\nexport const RootIdentityDetailResponseSchema = loosePlainObject({\n identity: RootIdentitySummaryResponseSchema,\n sessions: arraySchema(RootIdentitySessionResponseSchema),\n});\n\nexport type RootIdentityDetailResponse = z.infer<\n typeof RootIdentityDetailResponseSchema\n>;\n\nexport const rootOrganizationBillingShape = {\n currentPeriodEndsAt: z.string().nullable(),\n disabledAt: z.string().nullable(),\n provider: z.string().nullable(),\n purgeAfter: z.string().nullable(),\n purgedAt: z.string().nullable(),\n seatCount: nonNegativeIntegerSchema,\n status: OrganizationBillingStatusSchema,\n trialEndsAt: z.string().nullable(),\n};\nexport const RootIdentityOrganizationBillingResponseSchema = loosePlainObject(\n rootOrganizationBillingShape,\n);\n\nexport type RootIdentityOrganizationBillingResponse = z.infer<\n typeof RootIdentityOrganizationBillingResponseSchema\n>;\n\nexport const RootIdentityOrganizationResponseSchema = loosePlainObject({\n /** Null only when the organization has no billing row, which is unexpected. */\n billing: RootIdentityOrganizationBillingResponseSchema.nullable(),\n createdAt: z.string(),\n isDefaultOrganization: z.boolean(),\n organizationId: nonEmptyStringSchema,\n roster: RootRosterSchema,\n});\n\nexport type RootIdentityOrganizationResponse = z.infer<\n typeof RootIdentityOrganizationResponseSchema\n>;\n\nexport const RootIdentityOrganizationsResponseSchema = loosePlainObject({\n organizations: arraySchema(RootIdentityOrganizationResponseSchema),\n});\n\nexport type RootIdentityOrganizationsResponse = z.infer<\n typeof RootIdentityOrganizationsResponseSchema\n>;\n\nexport function isRootIdentitiesResponse(\n value: unknown,\n): value is RootIdentitiesResponse {\n return RootIdentitiesResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityDetailResponse(\n value: unknown,\n): value is RootIdentityDetailResponse {\n return RootIdentityDetailResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityOrganizationsResponse(\n value: unknown,\n): value is RootIdentityOrganizationsResponse {\n return RootIdentityOrganizationsResponseSchema.safeParse(value).success;\n}\n"]}
@@ -53,6 +53,14 @@ export declare const RootOrganizationDetailResponseSchema: z.ZodType<{
53
53
  createdAt: string;
54
54
  billingStatus: "local" | "trialing" | "active" | "disabled" | "deleting" | "purged" | null;
55
55
  };
56
+ overview: {
57
+ adminGroupId: string;
58
+ memberGroupId: string;
59
+ activeMemberCount: number;
60
+ disabledMemberCount: number;
61
+ syncPausedMemberCount: number;
62
+ openSeatAssignmentCount: number;
63
+ };
56
64
  billing: {
57
65
  currentPeriodStartsAt: string | null;
58
66
  providerCustomerId: string | null;
@@ -60,6 +68,7 @@ export declare const RootOrganizationDetailResponseSchema: z.ZodType<{
60
68
  providerProductId: string | null;
61
69
  providerTransactionId: string | null;
62
70
  entitlementId: string | null;
71
+ purgeStartedAt: string | null;
63
72
  createdAt: string;
64
73
  updatedAt: string;
65
74
  currentPeriodEndsAt: string | null;
@@ -118,6 +127,14 @@ export declare const RootOrganizationDetailResponseSchema: z.ZodType<{
118
127
  createdAt: string;
119
128
  billingStatus: "local" | "trialing" | "active" | "disabled" | "deleting" | "purged" | null;
120
129
  };
130
+ overview: {
131
+ adminGroupId: string;
132
+ memberGroupId: string;
133
+ activeMemberCount: number;
134
+ disabledMemberCount: number;
135
+ syncPausedMemberCount: number;
136
+ openSeatAssignmentCount: number;
137
+ };
121
138
  billing: {
122
139
  currentPeriodStartsAt: string | null;
123
140
  providerCustomerId: string | null;
@@ -125,6 +142,7 @@ export declare const RootOrganizationDetailResponseSchema: z.ZodType<{
125
142
  providerProductId: string | null;
126
143
  providerTransactionId: string | null;
127
144
  entitlementId: string | null;
145
+ purgeStartedAt: string | null;
128
146
  createdAt: string;
129
147
  updatedAt: string;
130
148
  currentPeriodEndsAt: string | null;
@@ -183,6 +201,14 @@ export declare const RootOrganizationDetailResponseSchema: z.ZodType<{
183
201
  createdAt: string;
184
202
  billingStatus: "local" | "trialing" | "active" | "disabled" | "deleting" | "purged" | null;
185
203
  };
204
+ overview: {
205
+ adminGroupId: string;
206
+ memberGroupId: string;
207
+ activeMemberCount: number;
208
+ disabledMemberCount: number;
209
+ syncPausedMemberCount: number;
210
+ openSeatAssignmentCount: number;
211
+ };
186
212
  billing: {
187
213
  currentPeriodStartsAt: string | null;
188
214
  providerCustomerId: string | null;
@@ -190,6 +216,7 @@ export declare const RootOrganizationDetailResponseSchema: z.ZodType<{
190
216
  providerProductId: string | null;
191
217
  providerTransactionId: string | null;
192
218
  entitlementId: string | null;
219
+ purgeStartedAt: string | null;
193
220
  createdAt: string;
194
221
  updatedAt: string;
195
222
  currentPeriodEndsAt: string | null;
@@ -248,6 +275,14 @@ export declare const RootOrganizationDetailResponseSchema: z.ZodType<{
248
275
  createdAt: string;
249
276
  billingStatus: "local" | "trialing" | "active" | "disabled" | "deleting" | "purged" | null;
250
277
  };
278
+ overview: {
279
+ adminGroupId: string;
280
+ memberGroupId: string;
281
+ activeMemberCount: number;
282
+ disabledMemberCount: number;
283
+ syncPausedMemberCount: number;
284
+ openSeatAssignmentCount: number;
285
+ };
251
286
  billing: {
252
287
  currentPeriodStartsAt: string | null;
253
288
  providerCustomerId: string | null;
@@ -255,6 +290,7 @@ export declare const RootOrganizationDetailResponseSchema: z.ZodType<{
255
290
  providerProductId: string | null;
256
291
  providerTransactionId: string | null;
257
292
  entitlementId: string | null;
293
+ purgeStartedAt: string | null;
258
294
  createdAt: string;
259
295
  updatedAt: string;
260
296
  currentPeriodEndsAt: string | null;
@@ -321,8 +357,10 @@ export declare const RootOrganizationIdentityResponseSchema: z.ZodType<{
321
357
  };
322
358
  roster: {
323
359
  disabledAt: string | null;
360
+ holdsSeat: boolean;
324
361
  joinedAt: string;
325
362
  status: "active" | "disabled";
363
+ syncPausedAt: string | null;
326
364
  };
327
365
  }, {
328
366
  identity: {
@@ -336,8 +374,10 @@ export declare const RootOrganizationIdentityResponseSchema: z.ZodType<{
336
374
  };
337
375
  roster: {
338
376
  disabledAt: string | null;
377
+ holdsSeat: boolean;
339
378
  joinedAt: string;
340
379
  status: "active" | "disabled";
380
+ syncPausedAt: string | null;
341
381
  };
342
382
  }, z.core.$ZodTypeInternals<{
343
383
  identity: {
@@ -351,8 +391,10 @@ export declare const RootOrganizationIdentityResponseSchema: z.ZodType<{
351
391
  };
352
392
  roster: {
353
393
  disabledAt: string | null;
394
+ holdsSeat: boolean;
354
395
  joinedAt: string;
355
396
  status: "active" | "disabled";
397
+ syncPausedAt: string | null;
356
398
  };
357
399
  }, {
358
400
  identity: {
@@ -366,8 +408,10 @@ export declare const RootOrganizationIdentityResponseSchema: z.ZodType<{
366
408
  };
367
409
  roster: {
368
410
  disabledAt: string | null;
411
+ holdsSeat: boolean;
369
412
  joinedAt: string;
370
413
  status: "active" | "disabled";
414
+ syncPausedAt: string | null;
371
415
  };
372
416
  }>>;
373
417
  export type RootOrganizationIdentityResponse = z.infer<typeof RootOrganizationIdentityResponseSchema>;
@@ -384,8 +428,10 @@ export declare const RootOrganizationIdentitiesResponseSchema: z.ZodType<{
384
428
  };
385
429
  roster: {
386
430
  disabledAt: string | null;
431
+ holdsSeat: boolean;
387
432
  joinedAt: string;
388
433
  status: "active" | "disabled";
434
+ syncPausedAt: string | null;
389
435
  };
390
436
  }[];
391
437
  nextCursor: string | null;
@@ -402,8 +448,10 @@ export declare const RootOrganizationIdentitiesResponseSchema: z.ZodType<{
402
448
  };
403
449
  roster: {
404
450
  disabledAt: string | null;
451
+ holdsSeat: boolean;
405
452
  joinedAt: string;
406
453
  status: "active" | "disabled";
454
+ syncPausedAt: string | null;
407
455
  };
408
456
  }[];
409
457
  nextCursor: string | null;
@@ -420,8 +468,10 @@ export declare const RootOrganizationIdentitiesResponseSchema: z.ZodType<{
420
468
  };
421
469
  roster: {
422
470
  disabledAt: string | null;
471
+ holdsSeat: boolean;
423
472
  joinedAt: string;
424
473
  status: "active" | "disabled";
474
+ syncPausedAt: string | null;
425
475
  };
426
476
  }[];
427
477
  nextCursor: string | null;
@@ -438,8 +488,10 @@ export declare const RootOrganizationIdentitiesResponseSchema: z.ZodType<{
438
488
  };
439
489
  roster: {
440
490
  disabledAt: string | null;
491
+ holdsSeat: boolean;
441
492
  joinedAt: string;
442
493
  status: "active" | "disabled";
494
+ syncPausedAt: string | null;
443
495
  };
444
496
  }[];
445
497
  nextCursor: string | null;
@@ -21,9 +21,21 @@ const RootOrganizationBillingResponseSchema = loosePlainObject({
21
21
  providerProductId: z.string().nullable(),
22
22
  providerTransactionId: z.string().nullable(),
23
23
  entitlementId: z.string().nullable(),
24
+ purgeStartedAt: z.string().nullable(),
24
25
  createdAt: z.string(),
25
26
  updatedAt: z.string(),
26
27
  });
28
+ /** Persisted group bindings plus roster and seat counts; no names or content. */
29
+ const RootOrganizationOverviewResponseSchema = loosePlainObject({
30
+ adminGroupId: nonEmptyStringSchema,
31
+ memberGroupId: nonEmptyStringSchema,
32
+ activeMemberCount: nonNegativeIntegerSchema,
33
+ disabledMemberCount: nonNegativeIntegerSchema,
34
+ /** Active members who paused the organization's sync to their devices. */
35
+ syncPausedMemberCount: nonNegativeIntegerSchema,
36
+ /** Unreleased billable-seat assignments, the billing panel's assigned seats. */
37
+ openSeatAssignmentCount: nonNegativeIntegerSchema,
38
+ });
27
39
  const RootOrganizationStripeResponseSchema = loosePlainObject({
28
40
  customerId: z.string().nullable(),
29
41
  subscriptionId: z.string().nullable(),
@@ -41,6 +53,7 @@ const RootOrganizationStripeResponseSchema = loosePlainObject({
41
53
  });
42
54
  export const RootOrganizationDetailResponseSchema = loosePlainObject({
43
55
  organization: RootOrganizationSummaryResponseSchema,
56
+ overview: RootOrganizationOverviewResponseSchema,
44
57
  billing: RootOrganizationBillingResponseSchema.nullable(),
45
58
  stripe: RootOrganizationStripeResponseSchema.nullable(),
46
59
  /** The 50 most recent merged durable billing events. */
@@ -1 +1 @@
1
- {"version":3,"file":"rootOrganizations.js","sourceRoot":"","sources":["rootOrganizations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,qCAAqC,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EACL,iCAAiC,EACjC,gBAAg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CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n arraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n nonNegativeIntegerSchema,\n} from \"../schema\";\nimport { OrganizationBillingStatusSchema } from \"./organizationBilling\";\nimport { OrganizationBillingHistoryEntrySchema } from \"./organizationBillingHistory\";\nimport { OrganizationDataUsageResponseSchema } from \"./organizationDataUsage\";\nimport {\n RootIdentitySummaryResponseSchema,\n RootRosterSchema,\n rootOrganizationBillingShape,\n} from \"./root\";\n\nexport const RootOrganizationSummaryResponseSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n createdAt: z.string(),\n billingStatus: OrganizationBillingStatusSchema.nullable(),\n});\nexport type RootOrganizationSummaryResponse = z.infer<\n typeof RootOrganizationSummaryResponseSchema\n>;\n\nexport const RootOrganizationsResponseSchema = loosePlainObject({\n organizations: arraySchema(RootOrganizationSummaryResponseSchema),\n nextCursor: z.string().nullable(),\n});\nexport type RootOrganizationsResponse = z.infer<\n typeof RootOrganizationsResponseSchema\n>;\n\nconst RootOrganizationBillingResponseSchema = loosePlainObject({\n ...rootOrganizationBillingShape,\n currentPeriodStartsAt: z.string().nullable(),\n providerCustomerId: z.string().nullable(),\n providerSubscriptionId: z.string().nullable(),\n providerProductId: z.string().nullable(),\n providerTransactionId: z.string().nullable(),\n entitlementId: z.string().nullable(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nconst RootOrganizationStripeResponseSchema = loosePlainObject({\n customerId: z.string().nullable(),\n subscriptionId: z.string().nullable(),\n subscriptionItemId: z.string().nullable(),\n priceId: z.string().nullable(),\n lastInvoiceId: z.string().nullable(),\n desiredPaidCapacity: nonNegativeIntegerSchema,\n desiredRenewalQuantity: nonNegativeIntegerSchema,\n appliedPaidCapacity: nonNegativeIntegerSchema,\n observedQuantity: nonNegativeIntegerSchema.nullable(),\n lastSyncedAt: z.string().nullable(),\n nextAttemptAt: z.string().nullable(),\n attemptCount: nonNegativeIntegerSchema,\n lastError: z.string().nullable(),\n});\n\nexport const RootOrganizationDetailResponseSchema = loosePlainObject({\n organization: RootOrganizationSummaryResponseSchema,\n billing: RootOrganizationBillingResponseSchema.nullable(),\n stripe: RootOrganizationStripeResponseSchema.nullable(),\n /** The 50 most recent merged durable billing events. */\n history: arraySchema(OrganizationBillingHistoryEntrySchema),\n});\nexport type RootOrganizationDetailResponse = z.infer<\n typeof RootOrganizationDetailResponseSchema\n>;\n\nexport const RootOrganizationIdentityResponseSchema = loosePlainObject({\n identity: RootIdentitySummaryResponseSchema,\n roster: RootRosterSchema,\n});\nexport type RootOrganizationIdentityResponse = z.infer<\n typeof RootOrganizationIdentityResponseSchema\n>;\nexport const RootOrganizationIdentitiesResponseSchema = loosePlainObject({\n identities: arraySchema(RootOrganizationIdentityResponseSchema),\n nextCursor: z.string().nullable(),\n});\nexport type RootOrganizationIdentitiesResponse = z.infer<\n typeof RootOrganizationIdentitiesResponseSchema\n>;\n\nexport const RootDataUsageReportResponseSchema = loosePlainObject({\n organizations: arraySchema(\n loosePlainObject({\n organization: RootOrganizationSummaryResponseSchema,\n dataUsage: OrganizationDataUsageResponseSchema,\n }),\n ),\n nextCursor: z.string().nullable(),\n});\nexport type RootDataUsageReportResponse = z.infer<\n typeof RootDataUsageReportResponseSchema\n>;\n"]}
1
+ {"version":3,"file":"rootOrganizations.js","sourceRoot":"","sources":["rootOrganizations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,qCAAqC,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EACL,iCAAiC,EACjC,gBAAgB,EAChB,4BAA4B,GAC7B,MAAM,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,CAAC,sCAAsC,CAAC;IAC/D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC;IAChE,aAAa,EAAE,WAAW,CACxB,gBAAgB,CAAC;QACf,YAAY,EAAE,qCAAqC;QACnD,SAAS,EAAE,mCAAmC;KAC/C,CAAC,CACH;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n arraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n nonNegativeIntegerSchema,\n} from \"../schema\";\nimport { OrganizationBillingStatusSchema } from \"./organizationBilling\";\nimport { OrganizationBillingHistoryEntrySchema } from \"./organizationBillingHistory\";\nimport { OrganizationDataUsageResponseSchema } from \"./organizationDataUsage\";\nimport {\n RootIdentitySummaryResponseSchema,\n RootRosterSchema,\n rootOrganizationBillingShape,\n} from \"./root\";\n\nexport const RootOrganizationSummaryResponseSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n createdAt: z.string(),\n billingStatus: OrganizationBillingStatusSchema.nullable(),\n});\nexport type RootOrganizationSummaryResponse = z.infer<\n typeof RootOrganizationSummaryResponseSchema\n>;\n\nexport const RootOrganizationsResponseSchema = loosePlainObject({\n organizations: arraySchema(RootOrganizationSummaryResponseSchema),\n nextCursor: z.string().nullable(),\n});\nexport type RootOrganizationsResponse = z.infer<\n typeof RootOrganizationsResponseSchema\n>;\n\nconst RootOrganizationBillingResponseSchema = loosePlainObject({\n ...rootOrganizationBillingShape,\n currentPeriodStartsAt: z.string().nullable(),\n providerCustomerId: z.string().nullable(),\n providerSubscriptionId: z.string().nullable(),\n providerProductId: z.string().nullable(),\n providerTransactionId: z.string().nullable(),\n entitlementId: z.string().nullable(),\n purgeStartedAt: z.string().nullable(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\n/** Persisted group bindings plus roster and seat counts; no names or content. */\nconst RootOrganizationOverviewResponseSchema = loosePlainObject({\n adminGroupId: nonEmptyStringSchema,\n memberGroupId: nonEmptyStringSchema,\n activeMemberCount: nonNegativeIntegerSchema,\n disabledMemberCount: nonNegativeIntegerSchema,\n /** Active members who paused the organization's sync to their devices. */\n syncPausedMemberCount: nonNegativeIntegerSchema,\n /** Unreleased billable-seat assignments, the billing panel's assigned seats. */\n openSeatAssignmentCount: nonNegativeIntegerSchema,\n});\n\nconst RootOrganizationStripeResponseSchema = loosePlainObject({\n customerId: z.string().nullable(),\n subscriptionId: z.string().nullable(),\n subscriptionItemId: z.string().nullable(),\n priceId: z.string().nullable(),\n lastInvoiceId: z.string().nullable(),\n desiredPaidCapacity: nonNegativeIntegerSchema,\n desiredRenewalQuantity: nonNegativeIntegerSchema,\n appliedPaidCapacity: nonNegativeIntegerSchema,\n observedQuantity: nonNegativeIntegerSchema.nullable(),\n lastSyncedAt: z.string().nullable(),\n nextAttemptAt: z.string().nullable(),\n attemptCount: nonNegativeIntegerSchema,\n lastError: z.string().nullable(),\n});\n\nexport const RootOrganizationDetailResponseSchema = loosePlainObject({\n organization: RootOrganizationSummaryResponseSchema,\n overview: RootOrganizationOverviewResponseSchema,\n billing: RootOrganizationBillingResponseSchema.nullable(),\n stripe: RootOrganizationStripeResponseSchema.nullable(),\n /** The 50 most recent merged durable billing events. */\n history: arraySchema(OrganizationBillingHistoryEntrySchema),\n});\nexport type RootOrganizationDetailResponse = z.infer<\n typeof RootOrganizationDetailResponseSchema\n>;\n\nexport const RootOrganizationIdentityResponseSchema = loosePlainObject({\n identity: RootIdentitySummaryResponseSchema,\n roster: RootRosterSchema,\n});\nexport type RootOrganizationIdentityResponse = z.infer<\n typeof RootOrganizationIdentityResponseSchema\n>;\nexport const RootOrganizationIdentitiesResponseSchema = loosePlainObject({\n identities: arraySchema(RootOrganizationIdentityResponseSchema),\n nextCursor: z.string().nullable(),\n});\nexport type RootOrganizationIdentitiesResponse = z.infer<\n typeof RootOrganizationIdentitiesResponseSchema\n>;\n\nexport const RootDataUsageReportResponseSchema = loosePlainObject({\n organizations: arraySchema(\n loosePlainObject({\n organization: RootOrganizationSummaryResponseSchema,\n dataUsage: OrganizationDataUsageResponseSchema,\n }),\n ),\n nextCursor: z.string().nullable(),\n});\nexport type RootDataUsageReportResponse = z.infer<\n typeof RootDataUsageReportResponseSchema\n>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tearleads/client-sdk",
3
- "version": "0.1.89",
3
+ "version": "0.1.90",
4
4
  "description": "React-free Tearleads client runtime: local SQLite persistence, keys, sync, encrypted blobs, and domain workflows.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {