shred-api-client 2.13.4 → 2.13.6

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
@@ -4669,6 +4669,25 @@ declare const ScoreHistoryEntrySchema: z.ZodObject<{
4669
4669
  key: string;
4670
4670
  } | undefined;
4671
4671
  }>;
4672
+ declare const ScoreMostSharedSchema: z.ZodObject<{
4673
+ projectId: z.ZodString;
4674
+ title: z.ZodString;
4675
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
4676
+ previewGifUrl: z.ZodOptional<z.ZodString>;
4677
+ shares: z.ZodNumber;
4678
+ }, "strip", z.ZodTypeAny, {
4679
+ title: string;
4680
+ projectId: string;
4681
+ shares: number;
4682
+ thumbnailUrl?: string | undefined;
4683
+ previewGifUrl?: string | undefined;
4684
+ }, {
4685
+ title: string;
4686
+ projectId: string;
4687
+ shares: number;
4688
+ thumbnailUrl?: string | undefined;
4689
+ previewGifUrl?: string | undefined;
4690
+ }>;
4672
4691
  declare const ScoreRecapSchema: z.ZodObject<{
4673
4692
  current: z.ZodObject<{
4674
4693
  value: z.ZodNumber;
@@ -4897,6 +4916,26 @@ declare const ScoreRecapSchema: z.ZodObject<{
4897
4916
  max: number;
4898
4917
  key: string;
4899
4918
  }>, "many">;
4919
+ /** Absent when nothing was downloaded or shared in the month. */
4920
+ mostShared: z.ZodOptional<z.ZodObject<{
4921
+ projectId: z.ZodString;
4922
+ title: z.ZodString;
4923
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
4924
+ previewGifUrl: z.ZodOptional<z.ZodString>;
4925
+ shares: z.ZodNumber;
4926
+ }, "strip", z.ZodTypeAny, {
4927
+ title: string;
4928
+ projectId: string;
4929
+ shares: number;
4930
+ thumbnailUrl?: string | undefined;
4931
+ previewGifUrl?: string | undefined;
4932
+ }, {
4933
+ title: string;
4934
+ projectId: string;
4935
+ shares: number;
4936
+ thumbnailUrl?: string | undefined;
4937
+ previewGifUrl?: string | undefined;
4938
+ }>>;
4900
4939
  }, "strip", z.ZodTypeAny, {
4901
4940
  history: {
4902
4941
  value: number;
@@ -4952,6 +4991,13 @@ declare const ScoreRecapSchema: z.ZodObject<{
4952
4991
  }[];
4953
4992
  previousPeriod?: string | undefined;
4954
4993
  nextPeriod?: string | undefined;
4994
+ mostShared?: {
4995
+ title: string;
4996
+ projectId: string;
4997
+ shares: number;
4998
+ thumbnailUrl?: string | undefined;
4999
+ previewGifUrl?: string | undefined;
5000
+ } | undefined;
4955
5001
  }, {
4956
5002
  history: {
4957
5003
  value: number;
@@ -5007,6 +5053,13 @@ declare const ScoreRecapSchema: z.ZodObject<{
5007
5053
  }[];
5008
5054
  previousPeriod?: string | undefined;
5009
5055
  nextPeriod?: string | undefined;
5056
+ mostShared?: {
5057
+ title: string;
5058
+ projectId: string;
5059
+ shares: number;
5060
+ thumbnailUrl?: string | undefined;
5061
+ previewGifUrl?: string | undefined;
5062
+ } | undefined;
5010
5063
  }>;
5011
5064
  declare const ScoreGoalOptionSchema: z.ZodObject<{
5012
5065
  key: z.ZodString;
@@ -5471,6 +5524,7 @@ type ScoreMetric = z.infer<typeof ScoreMetricSchema>;
5471
5524
  type Score = z.infer<typeof ScoreSchema>;
5472
5525
  type ScoreHistoryEntry = z.infer<typeof ScoreHistoryEntrySchema>;
5473
5526
  type ScoreRecap = z.infer<typeof ScoreRecapSchema>;
5527
+ type ScoreMostShared = z.infer<typeof ScoreMostSharedSchema>;
5474
5528
  type ScoreProgressMetric = z.infer<typeof ScoreProgressMetricSchema>;
5475
5529
  type ScoreProjection = z.infer<typeof ScoreProjectionSchema>;
5476
5530
  type ScoreProgress = z.infer<typeof ScoreProgressSchema>;
@@ -5525,6 +5579,8 @@ type index$3_ScoreMetric = ScoreMetric;
5525
5579
  type index$3_ScoreMetricKey = ScoreMetricKey;
5526
5580
  declare const index$3_ScoreMetricKeySchema: typeof ScoreMetricKeySchema;
5527
5581
  declare const index$3_ScoreMetricSchema: typeof ScoreMetricSchema;
5582
+ type index$3_ScoreMostShared = ScoreMostShared;
5583
+ declare const index$3_ScoreMostSharedSchema: typeof ScoreMostSharedSchema;
5528
5584
  type index$3_ScoreProgress = ScoreProgress;
5529
5585
  type index$3_ScoreProgressMetric = ScoreProgressMetric;
5530
5586
  declare const index$3_ScoreProgressMetricSchema: typeof ScoreProgressMetricSchema;
@@ -5534,7 +5590,7 @@ declare const index$3_ScoreProjectionSchema: typeof ScoreProjectionSchema;
5534
5590
  declare const index$3_ScoreRecapSchema: typeof ScoreRecapSchema;
5535
5591
  declare const index$3_ScoreSchema: typeof ScoreSchema;
5536
5592
  declare namespace index$3 {
5537
- export { Endpoints$1 as Endpoints, type ScoreRecap as Entity, type IAPI$1 as IAPI, type index$3_Score as Score, type index$3_ScoreBand as ScoreBand, index$3_ScoreBandSchema as ScoreBandSchema, type index$3_ScoreGoal as ScoreGoal, type index$3_ScoreGoalOption as ScoreGoalOption, index$3_ScoreGoalOptionSchema as ScoreGoalOptionSchema, index$3_ScoreGoalSchema as ScoreGoalSchema, type index$3_ScoreHistoryEntry as ScoreHistoryEntry, index$3_ScoreHistoryEntrySchema as ScoreHistoryEntrySchema, type index$3_ScoreMetric as ScoreMetric, type index$3_ScoreMetricKey as ScoreMetricKey, index$3_ScoreMetricKeySchema as ScoreMetricKeySchema, index$3_ScoreMetricSchema as ScoreMetricSchema, type index$3_ScoreProgress as ScoreProgress, type index$3_ScoreProgressMetric as ScoreProgressMetric, index$3_ScoreProgressMetricSchema as ScoreProgressMetricSchema, index$3_ScoreProgressSchema as ScoreProgressSchema, type index$3_ScoreProjection as ScoreProjection, index$3_ScoreProjectionSchema as ScoreProjectionSchema, index$3_ScoreRecapSchema as ScoreRecapSchema, index$3_ScoreSchema as ScoreSchema };
5593
+ export { Endpoints$1 as Endpoints, type ScoreRecap as Entity, type IAPI$1 as IAPI, type index$3_Score as Score, type index$3_ScoreBand as ScoreBand, index$3_ScoreBandSchema as ScoreBandSchema, type index$3_ScoreGoal as ScoreGoal, type index$3_ScoreGoalOption as ScoreGoalOption, index$3_ScoreGoalOptionSchema as ScoreGoalOptionSchema, index$3_ScoreGoalSchema as ScoreGoalSchema, type index$3_ScoreHistoryEntry as ScoreHistoryEntry, index$3_ScoreHistoryEntrySchema as ScoreHistoryEntrySchema, type index$3_ScoreMetric as ScoreMetric, type index$3_ScoreMetricKey as ScoreMetricKey, index$3_ScoreMetricKeySchema as ScoreMetricKeySchema, index$3_ScoreMetricSchema as ScoreMetricSchema, type index$3_ScoreMostShared as ScoreMostShared, index$3_ScoreMostSharedSchema as ScoreMostSharedSchema, type index$3_ScoreProgress as ScoreProgress, type index$3_ScoreProgressMetric as ScoreProgressMetric, index$3_ScoreProgressMetricSchema as ScoreProgressMetricSchema, index$3_ScoreProgressSchema as ScoreProgressSchema, type index$3_ScoreProjection as ScoreProjection, index$3_ScoreProjectionSchema as ScoreProjectionSchema, index$3_ScoreRecapSchema as ScoreRecapSchema, index$3_ScoreSchema as ScoreSchema };
5538
5594
  }
5539
5595
 
5540
5596
  /**
@@ -5626,6 +5682,7 @@ declare const Actions: {
5626
5682
  readonly USER_CHANGE_EMAIL: "user.change_email";
5627
5683
  readonly USER_GET_TOKEN: "user.get_token";
5628
5684
  readonly USER_CREATE_TOKEN: "user.create_token";
5685
+ readonly KPI_VIEW: "kpi.view";
5629
5686
  readonly ROLE_MANAGE: "role.manage";
5630
5687
  readonly USER_ASSIGN_ROLE: "user.assign_role";
5631
5688
  };
@@ -5641,7 +5698,7 @@ type Scope = {
5641
5698
  type: "tenant";
5642
5699
  id: string;
5643
5700
  };
5644
- type ActionGroup = "Projects" | "Editors" | "Goals" | "Notes" | "Notifications" | "Tenants" | "Offers" | "ShredU" | "Subscriptions" | "Scripts" | "Prompts" | "Email" | "Users" | "Administration";
5701
+ type ActionGroup = "Projects" | "Editors" | "Goals" | "Notes" | "Notifications" | "Tenants" | "Offers" | "ShredU" | "Subscriptions" | "Scripts" | "Prompts" | "Email" | "Users" | "KPIs" | "Administration";
5645
5702
  type ActionMeta = {
5646
5703
  label: string;
5647
5704
  group: ActionGroup;
package/dist/index.js CHANGED
@@ -6350,6 +6350,13 @@ var ScoreHistoryEntrySchema = external_exports.object({
6350
6350
  value: external_exports.number(),
6351
6351
  band: ScoreBandSchema.optional()
6352
6352
  });
6353
+ var ScoreMostSharedSchema = external_exports.object({
6354
+ projectId: external_exports.string(),
6355
+ title: external_exports.string(),
6356
+ thumbnailUrl: external_exports.string().optional(),
6357
+ previewGifUrl: external_exports.string().optional(),
6358
+ shares: external_exports.number()
6359
+ });
6353
6360
  var ScoreRecapSchema = external_exports.object({
6354
6361
  current: ScoreSchema,
6355
6362
  /** Oldest first. Months before the customer's first project are absent, not zero. */
@@ -6358,7 +6365,9 @@ var ScoreRecapSchema = external_exports.object({
6358
6365
  previousPeriod: external_exports.string().optional(),
6359
6366
  nextPeriod: external_exports.string().optional(),
6360
6367
  /** The whole score scale, lowest first. */
6361
- bands: external_exports.array(ScoreBandSchema)
6368
+ bands: external_exports.array(ScoreBandSchema),
6369
+ /** Absent when nothing was downloaded or shared in the month. */
6370
+ mostShared: ScoreMostSharedSchema.optional()
6362
6371
  });
6363
6372
  var ScoreGoalOptionSchema = external_exports.object({
6364
6373
  key: external_exports.string(),
@@ -6545,6 +6554,8 @@ var Actions = {
6545
6554
  USER_CHANGE_EMAIL: "user.change_email",
6546
6555
  USER_GET_TOKEN: "user.get_token",
6547
6556
  USER_CREATE_TOKEN: "user.create_token",
6557
+ // — KPIs —
6558
+ KPI_VIEW: "kpi.view",
6548
6559
  // — RBAC administration —
6549
6560
  ROLE_MANAGE: "role.manage",
6550
6561
  USER_ASSIGN_ROLE: "user.assign_role"
@@ -6642,6 +6653,8 @@ var ActionCatalog = {
6642
6653
  [Actions.USER_CHANGE_EMAIL]: { label: "Change your own email", group: "Users" },
6643
6654
  [Actions.USER_GET_TOKEN]: { label: "Get your own API token", group: "Users" },
6644
6655
  [Actions.USER_CREATE_TOKEN]: { label: "Create your own API token", group: "Users" },
6656
+ // KPIs
6657
+ [Actions.KPI_VIEW]: { label: "View the KPI scorecards", group: "KPIs" },
6645
6658
  // Administration
6646
6659
  [Actions.ROLE_MANAGE]: { label: "Manage roles (create, edit, delete)", group: "Administration" },
6647
6660
  [Actions.USER_ASSIGN_ROLE]: { label: "Assign roles to users", group: "Administration" }
@@ -7251,6 +7264,7 @@ __export(score_exports, {
7251
7264
  ScoreHistoryEntrySchema: () => ScoreHistoryEntrySchema,
7252
7265
  ScoreMetricKeySchema: () => ScoreMetricKeySchema,
7253
7266
  ScoreMetricSchema: () => ScoreMetricSchema,
7267
+ ScoreMostSharedSchema: () => ScoreMostSharedSchema,
7254
7268
  ScoreProgressMetricSchema: () => ScoreProgressMetricSchema,
7255
7269
  ScoreProgressSchema: () => ScoreProgressSchema,
7256
7270
  ScoreProjectionSchema: () => ScoreProjectionSchema,