shred-api-client 2.6.6 → 2.8.0
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 +278 -148
- package/dist/index.js +196 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -232,15 +232,15 @@ declare const Endpoints$b: {
|
|
|
232
232
|
};
|
|
233
233
|
};
|
|
234
234
|
|
|
235
|
-
type index$
|
|
236
|
-
declare const index$
|
|
237
|
-
declare const index$
|
|
238
|
-
type index$
|
|
239
|
-
type index$
|
|
240
|
-
declare const index$
|
|
241
|
-
declare const index$
|
|
242
|
-
declare namespace index$
|
|
243
|
-
export { type index$
|
|
235
|
+
type index$f_Category = Category;
|
|
236
|
+
declare const index$f_CategorySchema: typeof CategorySchema;
|
|
237
|
+
declare const index$f_PromptSchema: typeof PromptSchema;
|
|
238
|
+
type index$f_Script = Script;
|
|
239
|
+
type index$f_ScriptIARequest = ScriptIARequest;
|
|
240
|
+
declare const index$f_ScriptIARequestSchema: typeof ScriptIARequestSchema;
|
|
241
|
+
declare const index$f_ScriptSchema: typeof ScriptSchema;
|
|
242
|
+
declare namespace index$f {
|
|
243
|
+
export { type index$f_Category as Category, index$f_CategorySchema as CategorySchema, Endpoints$b as Endpoints, type Prompt as Entity, type IAPI$c as IAPI, index$f_PromptSchema as PromptSchema, type index$f_Script as Script, type index$f_ScriptIARequest as ScriptIARequest, index$f_ScriptIARequestSchema as ScriptIARequestSchema, index$f_ScriptSchema as ScriptSchema };
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
declare enum Type {
|
|
@@ -668,19 +668,19 @@ declare const Endpoints$a: {
|
|
|
668
668
|
};
|
|
669
669
|
};
|
|
670
670
|
|
|
671
|
-
type index$
|
|
672
|
-
declare const index$
|
|
673
|
-
type index$
|
|
674
|
-
declare const index$
|
|
675
|
-
type index$
|
|
676
|
-
declare const index$
|
|
677
|
-
type index$
|
|
678
|
-
declare const index$
|
|
679
|
-
declare const index$
|
|
680
|
-
type index$
|
|
681
|
-
declare const index$
|
|
682
|
-
declare namespace index$
|
|
683
|
-
export { type index$
|
|
671
|
+
type index$e_Charge = Charge;
|
|
672
|
+
declare const index$e_ChargeSchema: typeof ChargeSchema;
|
|
673
|
+
type index$e_Plan = Plan;
|
|
674
|
+
declare const index$e_PlanSchema: typeof PlanSchema;
|
|
675
|
+
type index$e_Product = Product;
|
|
676
|
+
declare const index$e_ProductSchema: typeof ProductSchema;
|
|
677
|
+
type index$e_PromoCode = PromoCode;
|
|
678
|
+
declare const index$e_SubscriptionSchema: typeof SubscriptionSchema;
|
|
679
|
+
declare const index$e_SubscriptionTypeSchema: typeof SubscriptionTypeSchema;
|
|
680
|
+
type index$e_Type = Type;
|
|
681
|
+
declare const index$e_Type: typeof Type;
|
|
682
|
+
declare namespace index$e {
|
|
683
|
+
export { type index$e_Charge as Charge, index$e_ChargeSchema as ChargeSchema, Endpoints$a as Endpoints, type Subscription as Entity, type IAPI$b as IAPI, type index$e_Plan as Plan, index$e_PlanSchema as PlanSchema, type index$e_Product as Product, index$e_ProductSchema as ProductSchema, type index$e_PromoCode as PromoCode, index$e_SubscriptionSchema as SubscriptionSchema, index$e_SubscriptionTypeSchema as SubscriptionTypeSchema, type SubscriptionSummary as Summary, index$e_Type as Type };
|
|
684
684
|
}
|
|
685
685
|
|
|
686
686
|
declare enum Role {
|
|
@@ -873,13 +873,13 @@ type APIResponse<T> = {
|
|
|
873
873
|
perPage?: number;
|
|
874
874
|
};
|
|
875
875
|
|
|
876
|
-
type index$
|
|
877
|
-
type index$
|
|
878
|
-
type index$
|
|
879
|
-
type index$
|
|
880
|
-
type index$
|
|
881
|
-
declare namespace index$
|
|
882
|
-
export type { index$
|
|
876
|
+
type index$d_APIResponse<T> = APIResponse<T>;
|
|
877
|
+
type index$d_QueryFilterOp = QueryFilterOp;
|
|
878
|
+
type index$d_QueryOptions<T> = QueryOptions<T>;
|
|
879
|
+
type index$d_QueryOrderBy<T> = QueryOrderBy<T>;
|
|
880
|
+
type index$d_QueryWhere<T> = QueryWhere<T>;
|
|
881
|
+
declare namespace index$d {
|
|
882
|
+
export type { index$d_APIResponse as APIResponse, index$d_QueryFilterOp as QueryFilterOp, index$d_QueryOptions as QueryOptions, index$d_QueryOrderBy as QueryOrderBy, index$d_QueryWhere as QueryWhere };
|
|
883
883
|
}
|
|
884
884
|
|
|
885
885
|
interface IAPI$a {
|
|
@@ -966,13 +966,13 @@ declare const Endpoints$9: {
|
|
|
966
966
|
};
|
|
967
967
|
};
|
|
968
968
|
|
|
969
|
-
type index$
|
|
970
|
-
declare const index$
|
|
971
|
-
type index$
|
|
972
|
-
declare const index$
|
|
973
|
-
declare const index$
|
|
974
|
-
declare namespace index$
|
|
975
|
-
export { type Create$1 as Create, Endpoints$9 as Endpoints, type User as Entity, type IAPI$a as IAPI, type Preferences$1 as Preferences, PreferencesSchema$1 as PreferencesSchema, index$
|
|
969
|
+
type index$c_Role = Role;
|
|
970
|
+
declare const index$c_Role: typeof Role;
|
|
971
|
+
type index$c_System = System;
|
|
972
|
+
declare const index$c_System: typeof System;
|
|
973
|
+
declare const index$c_UserSchema: typeof UserSchema;
|
|
974
|
+
declare namespace index$c {
|
|
975
|
+
export { type Create$1 as Create, Endpoints$9 as Endpoints, type User as Entity, type IAPI$a as IAPI, type Preferences$1 as Preferences, PreferencesSchema$1 as PreferencesSchema, index$c_Role as Role, index$c_System as System, type Update$1 as Update, index$c_UserSchema as UserSchema };
|
|
976
976
|
}
|
|
977
977
|
|
|
978
978
|
declare const PreferencesSchema: z.ZodObject<{
|
|
@@ -1537,19 +1537,29 @@ declare const MemberSchema: z.ZodObject<{
|
|
|
1537
1537
|
name: string;
|
|
1538
1538
|
isActive: boolean;
|
|
1539
1539
|
}>;
|
|
1540
|
-
declare enum Action {
|
|
1540
|
+
declare enum Action$1 {
|
|
1541
1541
|
ADD = "ADD",
|
|
1542
1542
|
REMOVE = "REMOVE"
|
|
1543
1543
|
}
|
|
1544
1544
|
declare const ReportViewerUpdateSchema: z.ZodObject<{
|
|
1545
1545
|
userId: z.ZodString;
|
|
1546
|
-
action: z.ZodNativeEnum<typeof Action>;
|
|
1546
|
+
action: z.ZodNativeEnum<typeof Action$1>;
|
|
1547
1547
|
}, "strip", z.ZodTypeAny, {
|
|
1548
1548
|
userId: string;
|
|
1549
|
-
action: Action;
|
|
1549
|
+
action: Action$1;
|
|
1550
1550
|
}, {
|
|
1551
1551
|
userId: string;
|
|
1552
|
-
action: Action;
|
|
1552
|
+
action: Action$1;
|
|
1553
|
+
}>;
|
|
1554
|
+
declare const MemberUpdateSchema: z.ZodObject<{
|
|
1555
|
+
userIds: z.ZodArray<z.ZodString, "many">;
|
|
1556
|
+
action: z.ZodNativeEnum<typeof Action$1>;
|
|
1557
|
+
}, "strip", z.ZodTypeAny, {
|
|
1558
|
+
action: Action$1;
|
|
1559
|
+
userIds: string[];
|
|
1560
|
+
}, {
|
|
1561
|
+
action: Action$1;
|
|
1562
|
+
userIds: string[];
|
|
1553
1563
|
}>;
|
|
1554
1564
|
declare const TenantUpdateSchema: z.ZodObject<{
|
|
1555
1565
|
preferences: z.ZodOptional<z.ZodObject<{
|
|
@@ -1698,6 +1708,7 @@ declare const TenantUpdateSchema: z.ZodObject<{
|
|
|
1698
1708
|
reportUrl?: string | undefined;
|
|
1699
1709
|
}>;
|
|
1700
1710
|
type ReportViewerUpdate = z.infer<typeof ReportViewerUpdateSchema>;
|
|
1711
|
+
type MemberUpdate = z.infer<typeof MemberUpdateSchema>;
|
|
1701
1712
|
type TenantUpdate = z.infer<typeof TenantUpdateSchema>;
|
|
1702
1713
|
type Tenant = z.infer<typeof TenantSchema>;
|
|
1703
1714
|
type Member = z.infer<typeof MemberSchema>;
|
|
@@ -1711,6 +1722,7 @@ interface IAPI$9 {
|
|
|
1711
1722
|
getMembers: (context: Context, tenantId: string) => Promise<Member[]>;
|
|
1712
1723
|
update: (tenantId: string, data: TenantUpdate, context: Context) => Promise<boolean>;
|
|
1713
1724
|
updateReportViewers: (tenantId: string, reportViewerUpdate: ReportViewerUpdate, context: Context) => Promise<boolean>;
|
|
1725
|
+
updateMembers: (tenantId: string, memberUpdate: MemberUpdate, context: Context) => Promise<boolean>;
|
|
1714
1726
|
}
|
|
1715
1727
|
declare const Endpoints$8: {
|
|
1716
1728
|
GetByInviteCode: {
|
|
@@ -1745,21 +1757,25 @@ declare const Endpoints$8: {
|
|
|
1745
1757
|
uri: string;
|
|
1746
1758
|
method: string;
|
|
1747
1759
|
};
|
|
1760
|
+
UpdateMembers: {
|
|
1761
|
+
uri: string;
|
|
1762
|
+
method: string;
|
|
1763
|
+
};
|
|
1748
1764
|
};
|
|
1749
1765
|
|
|
1750
|
-
type index$
|
|
1751
|
-
declare const index$
|
|
1752
|
-
type index$
|
|
1753
|
-
declare const index$
|
|
1754
|
-
type index$
|
|
1755
|
-
declare const index$
|
|
1756
|
-
type index$
|
|
1757
|
-
declare const index$
|
|
1758
|
-
declare const index$
|
|
1759
|
-
type index$
|
|
1760
|
-
declare const index$
|
|
1761
|
-
declare namespace index$
|
|
1762
|
-
export {
|
|
1766
|
+
type index$b_Member = Member;
|
|
1767
|
+
declare const index$b_MemberSchema: typeof MemberSchema;
|
|
1768
|
+
type index$b_MemberUpdate = MemberUpdate;
|
|
1769
|
+
declare const index$b_MemberUpdateSchema: typeof MemberUpdateSchema;
|
|
1770
|
+
type index$b_Preferences = Preferences;
|
|
1771
|
+
declare const index$b_PreferencesSchema: typeof PreferencesSchema;
|
|
1772
|
+
type index$b_ReportViewerUpdate = ReportViewerUpdate;
|
|
1773
|
+
declare const index$b_ReportViewerUpdateSchema: typeof ReportViewerUpdateSchema;
|
|
1774
|
+
declare const index$b_TenantSchema: typeof TenantSchema;
|
|
1775
|
+
type index$b_TenantUpdate = TenantUpdate;
|
|
1776
|
+
declare const index$b_TenantUpdateSchema: typeof TenantUpdateSchema;
|
|
1777
|
+
declare namespace index$b {
|
|
1778
|
+
export { Action$1 as Action, Endpoints$8 as Endpoints, type Tenant as Entity, type IAPI$9 as IAPI, type index$b_Member as Member, index$b_MemberSchema as MemberSchema, type index$b_MemberUpdate as MemberUpdate, index$b_MemberUpdateSchema as MemberUpdateSchema, type index$b_Preferences as Preferences, index$b_PreferencesSchema as PreferencesSchema, type index$b_ReportViewerUpdate as ReportViewerUpdate, index$b_ReportViewerUpdateSchema as ReportViewerUpdateSchema, index$b_TenantSchema as TenantSchema, type index$b_TenantUpdate as TenantUpdate, index$b_TenantUpdateSchema as TenantUpdateSchema };
|
|
1763
1779
|
}
|
|
1764
1780
|
|
|
1765
1781
|
declare const TrackParamSchema: z.ZodObject<{
|
|
@@ -1816,11 +1832,11 @@ declare const Endpoints$7: {
|
|
|
1816
1832
|
};
|
|
1817
1833
|
};
|
|
1818
1834
|
|
|
1819
|
-
type index$
|
|
1820
|
-
declare const index$
|
|
1821
|
-
declare const index$
|
|
1822
|
-
declare namespace index$
|
|
1823
|
-
export { Endpoints$7 as Endpoints, type Track as Entity, type IAPI$8 as IAPI, type index$
|
|
1835
|
+
type index$a_TrackParam = TrackParam;
|
|
1836
|
+
declare const index$a_TrackParamSchema: typeof TrackParamSchema;
|
|
1837
|
+
declare const index$a_TrackSchema: typeof TrackSchema;
|
|
1838
|
+
declare namespace index$a {
|
|
1839
|
+
export { Endpoints$7 as Endpoints, type Track as Entity, type IAPI$8 as IAPI, type index$a_TrackParam as TrackParam, index$a_TrackParamSchema as TrackParamSchema, index$a_TrackSchema as TrackSchema };
|
|
1824
1840
|
}
|
|
1825
1841
|
|
|
1826
1842
|
declare const EmailSchema: z.ZodObject<{
|
|
@@ -1848,9 +1864,9 @@ declare const Endpoints$6: {
|
|
|
1848
1864
|
};
|
|
1849
1865
|
};
|
|
1850
1866
|
|
|
1851
|
-
declare const index$
|
|
1852
|
-
declare namespace index$
|
|
1853
|
-
export { index$
|
|
1867
|
+
declare const index$9_EmailSchema: typeof EmailSchema;
|
|
1868
|
+
declare namespace index$9 {
|
|
1869
|
+
export { index$9_EmailSchema as EmailSchema, Endpoints$6 as Endpoints, type Email as Entity, type IAPI$7 as IAPI };
|
|
1854
1870
|
}
|
|
1855
1871
|
|
|
1856
1872
|
declare enum Status$1 {
|
|
@@ -2317,26 +2333,26 @@ type StatusConfigType = {
|
|
|
2317
2333
|
};
|
|
2318
2334
|
declare const StatusConfig: Record<Status$1, StatusConfigType>;
|
|
2319
2335
|
|
|
2320
|
-
type index$
|
|
2321
|
-
type index$
|
|
2322
|
-
declare const index$
|
|
2323
|
-
type index$
|
|
2324
|
-
declare const index$
|
|
2325
|
-
type index$
|
|
2326
|
-
declare const index$
|
|
2327
|
-
type index$
|
|
2328
|
-
declare const index$
|
|
2329
|
-
type index$
|
|
2330
|
-
declare const index$
|
|
2331
|
-
type index$
|
|
2332
|
-
declare const index$
|
|
2333
|
-
type index$
|
|
2334
|
-
type index$
|
|
2335
|
-
declare const index$
|
|
2336
|
-
type index$
|
|
2337
|
-
declare const index$
|
|
2338
|
-
declare namespace index$
|
|
2339
|
-
export { type index$
|
|
2336
|
+
type index$8_Approve = Approve;
|
|
2337
|
+
type index$8_CaptionStyle = CaptionStyle;
|
|
2338
|
+
declare const index$8_CaptionStyle: typeof CaptionStyle;
|
|
2339
|
+
type index$8_Feedback = Feedback;
|
|
2340
|
+
declare const index$8_FeedbackSchema: typeof FeedbackSchema;
|
|
2341
|
+
type index$8_Interaction = Interaction;
|
|
2342
|
+
declare const index$8_InteractionSchema: typeof InteractionSchema;
|
|
2343
|
+
type index$8_InteractionType = InteractionType;
|
|
2344
|
+
declare const index$8_InteractionType: typeof InteractionType;
|
|
2345
|
+
type index$8_ProjectCreation = ProjectCreation;
|
|
2346
|
+
declare const index$8_ProjectSchema: typeof ProjectSchema;
|
|
2347
|
+
type index$8_SendToApproval = SendToApproval;
|
|
2348
|
+
declare const index$8_StatusConfig: typeof StatusConfig;
|
|
2349
|
+
type index$8_StatusConfigType = StatusConfigType;
|
|
2350
|
+
type index$8_Style = Style;
|
|
2351
|
+
declare const index$8_Styles: typeof Styles;
|
|
2352
|
+
type index$8_TimelineItem = TimelineItem;
|
|
2353
|
+
declare const index$8_TimelineItemSchema: typeof TimelineItemSchema;
|
|
2354
|
+
declare namespace index$8 {
|
|
2355
|
+
export { type index$8_Approve as Approve, index$8_CaptionStyle as CaptionStyle, Endpoints$5 as Endpoints, type Project as Entity, type index$8_Feedback as Feedback, index$8_FeedbackSchema as FeedbackSchema, type IAPI$6 as IAPI, type index$8_Interaction as Interaction, index$8_InteractionSchema as InteractionSchema, index$8_InteractionType as InteractionType, type index$8_ProjectCreation as ProjectCreation, index$8_ProjectSchema as ProjectSchema, type index$8_SendToApproval as SendToApproval, Status$1 as Status, index$8_StatusConfig as StatusConfig, type index$8_StatusConfigType as StatusConfigType, type index$8_Style as Style, index$8_Styles as Styles, type index$8_TimelineItem as TimelineItem, index$8_TimelineItemSchema as TimelineItemSchema };
|
|
2340
2356
|
}
|
|
2341
2357
|
|
|
2342
2358
|
declare const DailyMilestoneSchema: z.ZodObject<{
|
|
@@ -2423,11 +2439,11 @@ declare const Endpoints$4: {
|
|
|
2423
2439
|
};
|
|
2424
2440
|
};
|
|
2425
2441
|
|
|
2426
|
-
type index$
|
|
2427
|
-
declare const index$
|
|
2428
|
-
declare const index$
|
|
2429
|
-
declare namespace index$
|
|
2430
|
-
export { type index$
|
|
2442
|
+
type index$7_DailyMilestone = DailyMilestone;
|
|
2443
|
+
declare const index$7_DailyMilestoneSchema: typeof DailyMilestoneSchema;
|
|
2444
|
+
declare const index$7_GoalSchema: typeof GoalSchema;
|
|
2445
|
+
declare namespace index$7 {
|
|
2446
|
+
export { type index$7_DailyMilestone as DailyMilestone, index$7_DailyMilestoneSchema as DailyMilestoneSchema, Endpoints$4 as Endpoints, type Goal as Entity, index$7_GoalSchema as GoalSchema, type IAPI$5 as IAPI };
|
|
2431
2447
|
}
|
|
2432
2448
|
|
|
2433
2449
|
declare const EditorSchema: z.ZodObject<{
|
|
@@ -2475,9 +2491,9 @@ declare const Endpoints$3: {
|
|
|
2475
2491
|
};
|
|
2476
2492
|
};
|
|
2477
2493
|
|
|
2478
|
-
declare const index$
|
|
2479
|
-
declare namespace index$
|
|
2480
|
-
export { index$
|
|
2494
|
+
declare const index$6_EditorSchema: typeof EditorSchema;
|
|
2495
|
+
declare namespace index$6 {
|
|
2496
|
+
export { index$6_EditorSchema as EditorSchema, Endpoints$3 as Endpoints, type Editor as Entity, type IAPI$4 as IAPI };
|
|
2481
2497
|
}
|
|
2482
2498
|
|
|
2483
2499
|
declare enum Frequency {
|
|
@@ -3023,32 +3039,32 @@ declare const Endpoints$2: {
|
|
|
3023
3039
|
};
|
|
3024
3040
|
};
|
|
3025
3041
|
|
|
3026
|
-
type index$
|
|
3027
|
-
declare const index$
|
|
3028
|
-
type index$
|
|
3029
|
-
declare const index$
|
|
3030
|
-
type index$
|
|
3031
|
-
declare const index$
|
|
3032
|
-
type index$
|
|
3033
|
-
declare const index$
|
|
3034
|
-
type index$
|
|
3035
|
-
declare const index$
|
|
3036
|
-
type index$
|
|
3037
|
-
declare const index$
|
|
3038
|
-
type index$
|
|
3039
|
-
declare const index$
|
|
3040
|
-
type index$
|
|
3041
|
-
declare const index$
|
|
3042
|
-
type index$
|
|
3043
|
-
declare const index$
|
|
3044
|
-
type index$
|
|
3045
|
-
declare const index$
|
|
3046
|
-
type index$
|
|
3047
|
-
declare const index$
|
|
3048
|
-
type index$
|
|
3049
|
-
declare const index$
|
|
3050
|
-
declare namespace index$
|
|
3051
|
-
export { type index$
|
|
3042
|
+
type index$5_Criteria = Criteria;
|
|
3043
|
+
declare const index$5_CriteriaSchema: typeof CriteriaSchema;
|
|
3044
|
+
type index$5_CriteriaType = CriteriaType;
|
|
3045
|
+
declare const index$5_CriteriaType: typeof CriteriaType;
|
|
3046
|
+
type index$5_Frequency = Frequency;
|
|
3047
|
+
declare const index$5_Frequency: typeof Frequency;
|
|
3048
|
+
type index$5_History = History;
|
|
3049
|
+
declare const index$5_HistorySchema: typeof HistorySchema;
|
|
3050
|
+
type index$5_NotificationDetail = NotificationDetail;
|
|
3051
|
+
declare const index$5_NotificationDetailSchema: typeof NotificationDetailSchema;
|
|
3052
|
+
type index$5_NotificationItem = NotificationItem;
|
|
3053
|
+
declare const index$5_NotificationItemSchema: typeof NotificationItemSchema;
|
|
3054
|
+
type index$5_NotificationType = NotificationType;
|
|
3055
|
+
declare const index$5_NotificationType: typeof NotificationType;
|
|
3056
|
+
type index$5_RecurrenceRule = RecurrenceRule;
|
|
3057
|
+
declare const index$5_RecurrenceRuleSchema: typeof RecurrenceRuleSchema;
|
|
3058
|
+
type index$5_Status = Status;
|
|
3059
|
+
declare const index$5_Status: typeof Status;
|
|
3060
|
+
type index$5_TransportType = TransportType;
|
|
3061
|
+
declare const index$5_TransportType: typeof TransportType;
|
|
3062
|
+
type index$5_Trigger = Trigger;
|
|
3063
|
+
declare const index$5_TriggerSchema: typeof TriggerSchema;
|
|
3064
|
+
type index$5_WeekDay = WeekDay;
|
|
3065
|
+
declare const index$5_WeekDay: typeof WeekDay;
|
|
3066
|
+
declare namespace index$5 {
|
|
3067
|
+
export { type index$5_Criteria as Criteria, index$5_CriteriaSchema as CriteriaSchema, index$5_CriteriaType as CriteriaType, Endpoints$2 as Endpoints, index$5_Frequency as Frequency, type index$5_History as History, index$5_HistorySchema as HistorySchema, type IAPI$3 as IAPI, type index$5_NotificationDetail as NotificationDetail, index$5_NotificationDetailSchema as NotificationDetailSchema, type index$5_NotificationItem as NotificationItem, index$5_NotificationItemSchema as NotificationItemSchema, index$5_NotificationType as NotificationType, type index$5_RecurrenceRule as RecurrenceRule, index$5_RecurrenceRuleSchema as RecurrenceRuleSchema, index$5_Status as Status, index$5_TransportType as TransportType, type index$5_Trigger as Trigger, index$5_TriggerSchema as TriggerSchema, index$5_WeekDay as WeekDay };
|
|
3052
3068
|
}
|
|
3053
3069
|
|
|
3054
3070
|
interface IAPI$2 {
|
|
@@ -3220,11 +3236,11 @@ declare const Endpoints$1: {
|
|
|
3220
3236
|
};
|
|
3221
3237
|
};
|
|
3222
3238
|
|
|
3223
|
-
type index$
|
|
3224
|
-
declare const index$
|
|
3225
|
-
declare const index$
|
|
3226
|
-
declare namespace index$
|
|
3227
|
-
export { Endpoints$1 as Endpoints, type Note as Entity, type IAPI$1 as IAPI, type index$
|
|
3239
|
+
type index$4_NoteHistory = NoteHistory;
|
|
3240
|
+
declare const index$4_NoteHistorySchema: typeof NoteHistorySchema;
|
|
3241
|
+
declare const index$4_NoteSchema: typeof NoteSchema;
|
|
3242
|
+
declare namespace index$4 {
|
|
3243
|
+
export { Endpoints$1 as Endpoints, type Note as Entity, type IAPI$1 as IAPI, type index$4_NoteHistory as NoteHistory, index$4_NoteHistorySchema as NoteHistorySchema, index$4_NoteSchema as NoteSchema };
|
|
3228
3244
|
}
|
|
3229
3245
|
|
|
3230
3246
|
declare const SpecialOfferSchema: z.ZodObject<{
|
|
@@ -3377,17 +3393,17 @@ declare const Endpoints: {
|
|
|
3377
3393
|
};
|
|
3378
3394
|
};
|
|
3379
3395
|
|
|
3380
|
-
type index$
|
|
3381
|
-
declare const index$
|
|
3382
|
-
declare const index$
|
|
3383
|
-
type index$
|
|
3384
|
-
declare const index$
|
|
3385
|
-
type index$
|
|
3386
|
-
declare const index$
|
|
3387
|
-
type index$
|
|
3388
|
-
declare const index$
|
|
3389
|
-
declare namespace index$
|
|
3390
|
-
export { type index$
|
|
3396
|
+
type index$3_Create = Create;
|
|
3397
|
+
declare const index$3_CreateSpecialOfferSchema: typeof CreateSpecialOfferSchema;
|
|
3398
|
+
declare const index$3_Endpoints: typeof Endpoints;
|
|
3399
|
+
type index$3_IAPI = IAPI;
|
|
3400
|
+
declare const index$3_SpecialOfferSchema: typeof SpecialOfferSchema;
|
|
3401
|
+
type index$3_Update = Update;
|
|
3402
|
+
declare const index$3_UpdateSpecialOfferSchema: typeof UpdateSpecialOfferSchema;
|
|
3403
|
+
type index$3_UserOfferDetails = UserOfferDetails;
|
|
3404
|
+
declare const index$3_UserOfferDetailsSchema: typeof UserOfferDetailsSchema;
|
|
3405
|
+
declare namespace index$3 {
|
|
3406
|
+
export { type index$3_Create as Create, index$3_CreateSpecialOfferSchema as CreateSpecialOfferSchema, index$3_Endpoints as Endpoints, type SpecialOffer as Entity, type index$3_IAPI as IAPI, index$3_SpecialOfferSchema as SpecialOfferSchema, type index$3_Update as Update, index$3_UpdateSpecialOfferSchema as UpdateSpecialOfferSchema, type index$3_UserOfferDetails as UserOfferDetails, index$3_UserOfferDetailsSchema as UserOfferDetailsSchema };
|
|
3391
3407
|
}
|
|
3392
3408
|
|
|
3393
3409
|
declare class ShredAPI {
|
|
@@ -3432,20 +3448,20 @@ declare class ForbiddenException extends ShredException {
|
|
|
3432
3448
|
constructor(message: string);
|
|
3433
3449
|
}
|
|
3434
3450
|
|
|
3435
|
-
type index$
|
|
3436
|
-
declare const index$
|
|
3437
|
-
type index$
|
|
3438
|
-
declare const index$
|
|
3439
|
-
type index$
|
|
3440
|
-
declare const index$
|
|
3441
|
-
type index$
|
|
3442
|
-
declare const index$
|
|
3443
|
-
type index$
|
|
3444
|
-
declare const index$
|
|
3445
|
-
type index$
|
|
3446
|
-
declare const index$
|
|
3447
|
-
declare namespace index$
|
|
3448
|
-
export { index$
|
|
3451
|
+
type index$2_ConflictException = ConflictException;
|
|
3452
|
+
declare const index$2_ConflictException: typeof ConflictException;
|
|
3453
|
+
type index$2_ForbiddenException = ForbiddenException;
|
|
3454
|
+
declare const index$2_ForbiddenException: typeof ForbiddenException;
|
|
3455
|
+
type index$2_InvalidArgumentException = InvalidArgumentException;
|
|
3456
|
+
declare const index$2_InvalidArgumentException: typeof InvalidArgumentException;
|
|
3457
|
+
type index$2_ResourceNotFoundException = ResourceNotFoundException;
|
|
3458
|
+
declare const index$2_ResourceNotFoundException: typeof ResourceNotFoundException;
|
|
3459
|
+
type index$2_ShredException = ShredException;
|
|
3460
|
+
declare const index$2_ShredException: typeof ShredException;
|
|
3461
|
+
type index$2_UnauthorizedException = UnauthorizedException;
|
|
3462
|
+
declare const index$2_UnauthorizedException: typeof UnauthorizedException;
|
|
3463
|
+
declare namespace index$2 {
|
|
3464
|
+
export { index$2_ConflictException as ConflictException, index$2_ForbiddenException as ForbiddenException, index$2_InvalidArgumentException as InvalidArgumentException, index$2_ResourceNotFoundException as ResourceNotFoundException, index$2_ShredException as ShredException, index$2_UnauthorizedException as UnauthorizedException };
|
|
3449
3465
|
}
|
|
3450
3466
|
|
|
3451
3467
|
declare const AssetSchema: z.ZodObject<{
|
|
@@ -3490,9 +3506,123 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
3490
3506
|
}>;
|
|
3491
3507
|
type Asset = z.infer<typeof AssetSchema>;
|
|
3492
3508
|
|
|
3493
|
-
declare const
|
|
3509
|
+
declare const index$1_AssetSchema: typeof AssetSchema;
|
|
3510
|
+
declare namespace index$1 {
|
|
3511
|
+
export { index$1_AssetSchema as AssetSchema, type Asset as Entity };
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
/**
|
|
3515
|
+
* RBAC Action catalog — the single source of truth for authorization capabilities.
|
|
3516
|
+
*
|
|
3517
|
+
* An Action is an atomic capability the code checks (via `<Allowed>` in the hub,
|
|
3518
|
+
* `requireAction` in the API). Roles are bags of Actions; the code never checks roles.
|
|
3519
|
+
*
|
|
3520
|
+
* Adding a capability = add a key here, then bump this package (see rbac docs).
|
|
3521
|
+
* String values are dot-notation `domain.action` and are permanent once shipped.
|
|
3522
|
+
*/
|
|
3523
|
+
declare const Actions: {
|
|
3524
|
+
readonly PROJECT_APPROVE: "project.approve";
|
|
3525
|
+
readonly PROJECT_DENY: "project.deny";
|
|
3526
|
+
readonly PROJECT_ASSIGN: "project.assign";
|
|
3527
|
+
readonly PROJECT_ROLLBACK: "project.rollback";
|
|
3528
|
+
readonly PROJECT_SCHEDULE: "project.schedule";
|
|
3529
|
+
readonly PROJECT_UNSCHEDULE: "project.unschedule";
|
|
3530
|
+
readonly PROJECT_GET_NEXT_IN_QUEUE: "project.get_next_in_queue";
|
|
3531
|
+
readonly PROJECT_VIEW_ALL: "project.view_all";
|
|
3532
|
+
readonly PROJECT_VIEW_HISTORY: "project.view_history";
|
|
3533
|
+
readonly PROJECT_START: "project.start";
|
|
3534
|
+
readonly PROJECT_SEND_TO_APPROVAL: "project.send_to_approval";
|
|
3535
|
+
readonly PROJECT_VIEW_POOL: "project.view_pool";
|
|
3536
|
+
readonly PROJECT_STREAM: "project.stream";
|
|
3537
|
+
readonly PROJECT_CREATE: "project.create";
|
|
3538
|
+
readonly PROJECT_CANCEL: "project.cancel";
|
|
3539
|
+
readonly PROJECT_REORDER: "project.reorder";
|
|
3540
|
+
readonly PROJECT_REQUEST_REVIEW: "project.request_review";
|
|
3541
|
+
readonly PROJECT_RECORD_INTERACTION: "project.record_interaction";
|
|
3542
|
+
readonly PROJECT_CHECK_FREE_QUOTA: "project.check_free_quota";
|
|
3543
|
+
readonly PROJECT_LIST_OWN: "project.list_own";
|
|
3544
|
+
readonly PROJECT_VIEW_OWN: "project.view_own";
|
|
3545
|
+
readonly EDITOR_LIST: "editor.list";
|
|
3546
|
+
readonly EDITOR_GET: "editor.get";
|
|
3547
|
+
readonly GOAL_VIEW_OWN: "goal.view_own";
|
|
3548
|
+
readonly GOAL_VIEW_EDITOR: "goal.view_editor";
|
|
3549
|
+
readonly NOTE_VIEW: "note.view";
|
|
3550
|
+
readonly NOTE_CREATE: "note.create";
|
|
3551
|
+
readonly NOTE_UPDATE: "note.update";
|
|
3552
|
+
readonly NOTE_DELETE: "note.delete";
|
|
3553
|
+
readonly TENANT_CREATE: "tenant.create";
|
|
3554
|
+
readonly TENANT_LIST: "tenant.list";
|
|
3555
|
+
readonly TENANT_VIEW: "tenant.view";
|
|
3556
|
+
readonly TENANT_UPDATE: "tenant.update";
|
|
3557
|
+
readonly TENANT_VIEW_MEMBERS: "tenant.view_members";
|
|
3558
|
+
readonly TENANT_UPDATE_MEMBERS: "tenant.update_members";
|
|
3559
|
+
readonly TENANT_UPDATE_REPORT_VIEWERS: "tenant.update_report_viewers";
|
|
3560
|
+
readonly TENANT_VIEW_REPORT: "tenant.view_report";
|
|
3561
|
+
readonly TENANT_VIEW_MINE: "tenant.view_mine";
|
|
3562
|
+
readonly OFFER_LIST: "offer.list";
|
|
3563
|
+
readonly OFFER_CREATE: "offer.create";
|
|
3564
|
+
readonly OFFER_UPDATE: "offer.update";
|
|
3565
|
+
readonly OFFER_ENABLE: "offer.enable";
|
|
3566
|
+
readonly OFFER_DISABLE: "offer.disable";
|
|
3567
|
+
readonly OFFER_GET_MINE: "offer.get_mine";
|
|
3568
|
+
readonly OFFER_CLAIM: "offer.claim";
|
|
3569
|
+
readonly SUBSCRIPTION_VIEW_USER: "subscription.view_user";
|
|
3570
|
+
readonly SUBSCRIPTION_VIEW_SUMMARY: "subscription.view_summary";
|
|
3571
|
+
readonly SUBSCRIPTION_LIST_PROMO_CODES: "subscription.list_promo_codes";
|
|
3572
|
+
readonly SUBSCRIPTION_CHECKOUT: "subscription.checkout";
|
|
3573
|
+
readonly SUBSCRIPTION_PORTAL: "subscription.portal";
|
|
3574
|
+
readonly SUBSCRIPTION_VIEW_ACTIVE: "subscription.view_active";
|
|
3575
|
+
readonly SUBSCRIPTION_LIST_PRODUCTS: "subscription.list_products";
|
|
3576
|
+
readonly SCRIPT_LIST: "script.list";
|
|
3577
|
+
readonly SCRIPT_CREATE: "script.create";
|
|
3578
|
+
readonly SCRIPT_UPDATE: "script.update";
|
|
3579
|
+
readonly SCRIPT_DELETE: "script.delete";
|
|
3580
|
+
readonly SCRIPT_GENERATE: "script.generate";
|
|
3581
|
+
readonly PROMPT_GET: "prompt.get";
|
|
3582
|
+
readonly EMAIL_SEND: "email.send";
|
|
3583
|
+
readonly USER_SEARCH: "user.search";
|
|
3584
|
+
readonly USER_CREATE_PRIVILEGED: "user.create_privileged";
|
|
3585
|
+
readonly USER_UPDATE: "user.update";
|
|
3586
|
+
readonly USER_DELETE: "user.delete";
|
|
3587
|
+
readonly USER_CHANGE_EMAIL: "user.change_email";
|
|
3588
|
+
readonly USER_GET_TOKEN: "user.get_token";
|
|
3589
|
+
readonly USER_CREATE_TOKEN: "user.create_token";
|
|
3590
|
+
readonly ROLE_MANAGE: "role.manage";
|
|
3591
|
+
readonly USER_ASSIGN_ROLE: "user.assign_role";
|
|
3592
|
+
};
|
|
3593
|
+
type Action = (typeof Actions)[keyof typeof Actions];
|
|
3594
|
+
/**
|
|
3595
|
+
* The scope of a role assignment. Global assignments apply everywhere; scoped
|
|
3596
|
+
* assignments apply only within a specific resource (currently only `tenant`).
|
|
3597
|
+
* Modeled extensibly (`{ type, id }`) so new axes can be added without breaking consumers.
|
|
3598
|
+
*/
|
|
3599
|
+
type Scope = {
|
|
3600
|
+
type: "global";
|
|
3601
|
+
} | {
|
|
3602
|
+
type: "tenant";
|
|
3603
|
+
id: string;
|
|
3604
|
+
};
|
|
3605
|
+
type ActionGroup = "Projects" | "Editors" | "Goals" | "Notes" | "Tenants" | "Offers" | "Subscriptions" | "Scripts" | "Prompts" | "Email" | "Users" | "Administration";
|
|
3606
|
+
/** Metadata for one Action — powers the admin "create/edit role" UI (GET /actions). */
|
|
3607
|
+
type ActionCatalogEntry = {
|
|
3608
|
+
key: Action;
|
|
3609
|
+
label: string;
|
|
3610
|
+
group: ActionGroup;
|
|
3611
|
+
};
|
|
3612
|
+
/**
|
|
3613
|
+
* Human-readable catalog for the admin UI. References `Actions.*` values so the
|
|
3614
|
+
* string literal lives in exactly one place — this only adds label + group metadata.
|
|
3615
|
+
*/
|
|
3616
|
+
declare const ActionCatalog: ActionCatalogEntry[];
|
|
3617
|
+
|
|
3618
|
+
type index_Action = Action;
|
|
3619
|
+
declare const index_ActionCatalog: typeof ActionCatalog;
|
|
3620
|
+
type index_ActionCatalogEntry = ActionCatalogEntry;
|
|
3621
|
+
type index_ActionGroup = ActionGroup;
|
|
3622
|
+
declare const index_Actions: typeof Actions;
|
|
3623
|
+
type index_Scope = Scope;
|
|
3494
3624
|
declare namespace index {
|
|
3495
|
-
export {
|
|
3625
|
+
export { type index_Action as Action, index_ActionCatalog as ActionCatalog, type index_ActionCatalogEntry as ActionCatalogEntry, type index_ActionGroup as ActionGroup, index_Actions as Actions, type index_Scope as Scope };
|
|
3496
3626
|
}
|
|
3497
3627
|
|
|
3498
|
-
export { index as Asset, index$
|
|
3628
|
+
export { index$1 as Asset, index$d as Core, index$6 as Editor, index$9 as Email, index$2 as Exceptions, index$7 as Goal, index$4 as Note, index$5 as Notification, index$8 as Project, index$f as Prompt, index as RBAC, ShredAPI, index$3 as SpecialOffer, index$e as Subscription, index$b as Tenant, index$a as Track, index$c as User, ShredAPI as default };
|