shred-api-client 2.9.11 → 2.9.13

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/dist/index.d.ts CHANGED
@@ -1167,7 +1167,6 @@ declare const TenantSchema: z.ZodObject<{
1167
1167
  inviteCode: z.ZodString;
1168
1168
  totalUsersAllowed: z.ZodNumber;
1169
1169
  currentUsersSize: z.ZodOptional<z.ZodNumber>;
1170
- chargeByEmail: z.ZodBoolean;
1171
1170
  defaultProductId: z.ZodOptional<z.ZodString>;
1172
1171
  defaultPlanId: z.ZodOptional<z.ZodString>;
1173
1172
  defaultCoupomCode: z.ZodOptional<z.ZodString>;
@@ -1387,7 +1386,6 @@ declare const TenantSchema: z.ZodObject<{
1387
1386
  };
1388
1387
  inviteCode: string;
1389
1388
  totalUsersAllowed: number;
1390
- chargeByEmail: boolean;
1391
1389
  currentUsersSize?: number | undefined;
1392
1390
  defaultProductId?: string | undefined;
1393
1391
  defaultPlanId?: string | undefined;
@@ -1466,7 +1464,6 @@ declare const TenantSchema: z.ZodObject<{
1466
1464
  };
1467
1465
  inviteCode: string;
1468
1466
  totalUsersAllowed: number;
1469
- chargeByEmail: boolean;
1470
1467
  currentUsersSize?: number | undefined;
1471
1468
  defaultProductId?: string | undefined;
1472
1469
  defaultPlanId?: string | undefined;
@@ -1550,6 +1547,7 @@ declare const MemberUpdateSchema: z.ZodObject<{
1550
1547
  action: Action$1;
1551
1548
  }>;
1552
1549
  declare const TenantUpdateSchema: z.ZodObject<{
1550
+ isSubscriptionActive: z.ZodOptional<z.ZodBoolean>;
1553
1551
  preferences: z.ZodOptional<z.ZodObject<{
1554
1552
  iconUrl: z.ZodString;
1555
1553
  logoUrl: z.ZodString;
@@ -1643,8 +1641,12 @@ declare const TenantUpdateSchema: z.ZodObject<{
1643
1641
  progress?: number | undefined;
1644
1642
  }[] | undefined;
1645
1643
  }>>;
1644
+ inviteCode: z.ZodOptional<z.ZodString>;
1645
+ totalUsersAllowed: z.ZodOptional<z.ZodNumber>;
1646
+ defaultCoupomCode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1646
1647
  reportUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1647
1648
  }, "strip", z.ZodTypeAny, {
1649
+ isSubscriptionActive?: boolean | undefined;
1648
1650
  preferences?: {
1649
1651
  iconUrl: string;
1650
1652
  logoUrl: string;
@@ -1668,8 +1670,12 @@ declare const TenantUpdateSchema: z.ZodObject<{
1668
1670
  progress?: number | undefined;
1669
1671
  }[] | undefined;
1670
1672
  } | undefined;
1673
+ inviteCode?: string | undefined;
1674
+ totalUsersAllowed?: number | undefined;
1675
+ defaultCoupomCode?: string | undefined;
1671
1676
  reportUrl?: string | undefined;
1672
1677
  }, {
1678
+ isSubscriptionActive?: boolean | undefined;
1673
1679
  preferences?: {
1674
1680
  iconUrl: string;
1675
1681
  logoUrl: string;
@@ -1693,6 +1699,9 @@ declare const TenantUpdateSchema: z.ZodObject<{
1693
1699
  progress?: number | undefined;
1694
1700
  }[] | undefined;
1695
1701
  } | undefined;
1702
+ inviteCode?: string | undefined;
1703
+ totalUsersAllowed?: number | undefined;
1704
+ defaultCoupomCode?: string | undefined;
1696
1705
  reportUrl?: string | undefined;
1697
1706
  }>;
1698
1707
  type MemberUpdate = z.infer<typeof MemberUpdateSchema>;
@@ -3543,6 +3552,12 @@ declare const Actions: {
3543
3552
  readonly OFFER_DISABLE: "offer.disable";
3544
3553
  readonly OFFER_GET_MINE: "offer.get_mine";
3545
3554
  readonly OFFER_CLAIM: "offer.claim";
3555
+ readonly SHREDU_SESSION_VIEW: "shredu.session.view";
3556
+ readonly SHREDU_SESSION_LIST: "shredu.session.list";
3557
+ readonly SHREDU_SESSION_CREATE: "shredu.session.create";
3558
+ readonly SHREDU_SESSION_UPDATE: "shredu.session.update";
3559
+ readonly SHREDU_SESSION_CANCEL: "shredu.session.cancel";
3560
+ readonly SHREDU_SESSION_SET_RECORDING: "shredu.session.set_recording";
3546
3561
  readonly SUBSCRIPTION_VIEW_USER: "subscription.view_user";
3547
3562
  readonly SUBSCRIPTION_VIEW_SUMMARY: "subscription.view_summary";
3548
3563
  readonly SUBSCRIPTION_LIST_PROMO_CODES: "subscription.list_promo_codes";
@@ -3578,7 +3593,7 @@ type Scope = {
3578
3593
  type: "tenant";
3579
3594
  id: string;
3580
3595
  };
3581
- type ActionGroup = "Projects" | "Editors" | "Goals" | "Notes" | "Notifications" | "Tenants" | "Offers" | "Subscriptions" | "Scripts" | "Prompts" | "Email" | "Users" | "Administration";
3596
+ type ActionGroup = "Projects" | "Editors" | "Goals" | "Notes" | "Notifications" | "Tenants" | "Offers" | "ShredU" | "Subscriptions" | "Scripts" | "Prompts" | "Email" | "Users" | "Administration";
3582
3597
  type ActionMeta = {
3583
3598
  label: string;
3584
3599
  group: ActionGroup;
package/dist/index.js CHANGED
@@ -6131,6 +6131,13 @@ var Actions = {
6131
6131
  OFFER_DISABLE: "offer.disable",
6132
6132
  OFFER_GET_MINE: "offer.get_mine",
6133
6133
  OFFER_CLAIM: "offer.claim",
6134
+ // — ShredU —
6135
+ SHREDU_SESSION_VIEW: "shredu.session.view",
6136
+ SHREDU_SESSION_LIST: "shredu.session.list",
6137
+ SHREDU_SESSION_CREATE: "shredu.session.create",
6138
+ SHREDU_SESSION_UPDATE: "shredu.session.update",
6139
+ SHREDU_SESSION_CANCEL: "shredu.session.cancel",
6140
+ SHREDU_SESSION_SET_RECORDING: "shredu.session.set_recording",
6134
6141
  // — Subscriptions —
6135
6142
  SUBSCRIPTION_VIEW_USER: "subscription.view_user",
6136
6143
  SUBSCRIPTION_VIEW_SUMMARY: "subscription.view_summary",
@@ -6219,6 +6226,13 @@ var ActionCatalog = {
6219
6226
  [Actions.OFFER_DISABLE]: { label: "Disable an offer", group: "Offers" },
6220
6227
  [Actions.OFFER_GET_MINE]: { label: "View your own offer", group: "Offers" },
6221
6228
  [Actions.OFFER_CLAIM]: { label: "Claim your own offer", group: "Offers" },
6229
+ // ShredU (coaching calls)
6230
+ [Actions.SHREDU_SESSION_VIEW]: { label: "View ShredU sessions and recordings", group: "ShredU" },
6231
+ [Actions.SHREDU_SESSION_LIST]: { label: "List every ShredU session, cancelled included", group: "ShredU" },
6232
+ [Actions.SHREDU_SESSION_CREATE]: { label: "Schedule a ShredU session", group: "ShredU" },
6233
+ [Actions.SHREDU_SESSION_UPDATE]: { label: "Update a ShredU session", group: "ShredU" },
6234
+ [Actions.SHREDU_SESSION_CANCEL]: { label: "Cancel a ShredU session", group: "ShredU" },
6235
+ [Actions.SHREDU_SESSION_SET_RECORDING]: { label: "Attach a recording to a ShredU session", group: "ShredU" },
6222
6236
  // Subscriptions
6223
6237
  [Actions.SUBSCRIPTION_VIEW_USER]: { label: "View a user's subscription", group: "Subscriptions" },
6224
6238
  [Actions.SUBSCRIPTION_VIEW_SUMMARY]: { label: "View a user's subscription summary", group: "Subscriptions" },
@@ -6555,7 +6569,6 @@ var TenantSchema = external_exports.object({
6555
6569
  inviteCode: external_exports.string(),
6556
6570
  totalUsersAllowed: external_exports.number(),
6557
6571
  currentUsersSize: external_exports.number().optional(),
6558
- chargeByEmail: external_exports.boolean(),
6559
6572
  defaultProductId: external_exports.string().optional(),
6560
6573
  defaultPlanId: external_exports.string().optional(),
6561
6574
  defaultCoupomCode: external_exports.string().optional(),
@@ -6585,7 +6598,11 @@ var MemberUpdateSchema = external_exports.object({
6585
6598
  });
6586
6599
  var TenantUpdateSchema = TenantSchema.pick({
6587
6600
  reportUrl: true,
6588
- preferences: true
6601
+ preferences: true,
6602
+ inviteCode: true,
6603
+ isSubscriptionActive: true,
6604
+ totalUsersAllowed: true,
6605
+ defaultCoupomCode: true
6589
6606
  }).partial();
6590
6607
 
6591
6608
  // src/model/tenant/Tenant.api.ts