shred-api-client 2.7.0 → 2.8.1
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 +274 -153
- package/dist/index.js +180 -0
- package/dist/index.js.map +1 -1
- package/package.json +8 -3
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,28 +1537,28 @@ 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
1553
|
}>;
|
|
1554
1554
|
declare const MemberUpdateSchema: z.ZodObject<{
|
|
1555
1555
|
userIds: z.ZodArray<z.ZodString, "many">;
|
|
1556
|
-
action: z.ZodNativeEnum<typeof Action>;
|
|
1556
|
+
action: z.ZodNativeEnum<typeof Action$1>;
|
|
1557
1557
|
}, "strip", z.ZodTypeAny, {
|
|
1558
|
-
action: Action;
|
|
1558
|
+
action: Action$1;
|
|
1559
1559
|
userIds: string[];
|
|
1560
1560
|
}, {
|
|
1561
|
-
action: Action;
|
|
1561
|
+
action: Action$1;
|
|
1562
1562
|
userIds: string[];
|
|
1563
1563
|
}>;
|
|
1564
1564
|
declare const TenantUpdateSchema: z.ZodObject<{
|
|
@@ -1763,21 +1763,19 @@ declare const Endpoints$8: {
|
|
|
1763
1763
|
};
|
|
1764
1764
|
};
|
|
1765
1765
|
|
|
1766
|
-
type index$
|
|
1767
|
-
declare const index$
|
|
1768
|
-
type index$
|
|
1769
|
-
declare const index$
|
|
1770
|
-
type index$
|
|
1771
|
-
declare const index$
|
|
1772
|
-
type index$
|
|
1773
|
-
declare const index$
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
declare const index$
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
declare namespace index$a {
|
|
1780
|
-
export { index$a_Action as Action, Endpoints$8 as Endpoints, type Tenant as Entity, type IAPI$9 as IAPI, type index$a_Member as Member, index$a_MemberSchema as MemberSchema, type index$a_MemberUpdate as MemberUpdate, index$a_MemberUpdateSchema as MemberUpdateSchema, type index$a_Preferences as Preferences, index$a_PreferencesSchema as PreferencesSchema, type index$a_ReportViewerUpdate as ReportViewerUpdate, index$a_ReportViewerUpdateSchema as ReportViewerUpdateSchema, index$a_TenantSchema as TenantSchema, type index$a_TenantUpdate as TenantUpdate, index$a_TenantUpdateSchema as TenantUpdateSchema };
|
|
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 };
|
|
1781
1779
|
}
|
|
1782
1780
|
|
|
1783
1781
|
declare const TrackParamSchema: z.ZodObject<{
|
|
@@ -1834,11 +1832,11 @@ declare const Endpoints$7: {
|
|
|
1834
1832
|
};
|
|
1835
1833
|
};
|
|
1836
1834
|
|
|
1837
|
-
type index$
|
|
1838
|
-
declare const index$
|
|
1839
|
-
declare const index$
|
|
1840
|
-
declare namespace index$
|
|
1841
|
-
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 };
|
|
1842
1840
|
}
|
|
1843
1841
|
|
|
1844
1842
|
declare const EmailSchema: z.ZodObject<{
|
|
@@ -1866,9 +1864,9 @@ declare const Endpoints$6: {
|
|
|
1866
1864
|
};
|
|
1867
1865
|
};
|
|
1868
1866
|
|
|
1869
|
-
declare const index$
|
|
1870
|
-
declare namespace index$
|
|
1871
|
-
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 };
|
|
1872
1870
|
}
|
|
1873
1871
|
|
|
1874
1872
|
declare enum Status$1 {
|
|
@@ -2335,26 +2333,26 @@ type StatusConfigType = {
|
|
|
2335
2333
|
};
|
|
2336
2334
|
declare const StatusConfig: Record<Status$1, StatusConfigType>;
|
|
2337
2335
|
|
|
2338
|
-
type index$
|
|
2339
|
-
type index$
|
|
2340
|
-
declare const index$
|
|
2341
|
-
type index$
|
|
2342
|
-
declare const index$
|
|
2343
|
-
type index$
|
|
2344
|
-
declare const index$
|
|
2345
|
-
type index$
|
|
2346
|
-
declare const index$
|
|
2347
|
-
type index$
|
|
2348
|
-
declare const index$
|
|
2349
|
-
type index$
|
|
2350
|
-
declare const index$
|
|
2351
|
-
type index$
|
|
2352
|
-
type index$
|
|
2353
|
-
declare const index$
|
|
2354
|
-
type index$
|
|
2355
|
-
declare const index$
|
|
2356
|
-
declare namespace index$
|
|
2357
|
-
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 };
|
|
2358
2356
|
}
|
|
2359
2357
|
|
|
2360
2358
|
declare const DailyMilestoneSchema: z.ZodObject<{
|
|
@@ -2441,11 +2439,11 @@ declare const Endpoints$4: {
|
|
|
2441
2439
|
};
|
|
2442
2440
|
};
|
|
2443
2441
|
|
|
2444
|
-
type index$
|
|
2445
|
-
declare const index$
|
|
2446
|
-
declare const index$
|
|
2447
|
-
declare namespace index$
|
|
2448
|
-
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 };
|
|
2449
2447
|
}
|
|
2450
2448
|
|
|
2451
2449
|
declare const EditorSchema: z.ZodObject<{
|
|
@@ -2493,9 +2491,9 @@ declare const Endpoints$3: {
|
|
|
2493
2491
|
};
|
|
2494
2492
|
};
|
|
2495
2493
|
|
|
2496
|
-
declare const index$
|
|
2497
|
-
declare namespace index$
|
|
2498
|
-
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 };
|
|
2499
2497
|
}
|
|
2500
2498
|
|
|
2501
2499
|
declare enum Frequency {
|
|
@@ -3041,32 +3039,32 @@ declare const Endpoints$2: {
|
|
|
3041
3039
|
};
|
|
3042
3040
|
};
|
|
3043
3041
|
|
|
3044
|
-
type index$
|
|
3045
|
-
declare const index$
|
|
3046
|
-
type index$
|
|
3047
|
-
declare const index$
|
|
3048
|
-
type index$
|
|
3049
|
-
declare const index$
|
|
3050
|
-
type index$
|
|
3051
|
-
declare const index$
|
|
3052
|
-
type index$
|
|
3053
|
-
declare const index$
|
|
3054
|
-
type index$
|
|
3055
|
-
declare const index$
|
|
3056
|
-
type index$
|
|
3057
|
-
declare const index$
|
|
3058
|
-
type index$
|
|
3059
|
-
declare const index$
|
|
3060
|
-
type index$
|
|
3061
|
-
declare const index$
|
|
3062
|
-
type index$
|
|
3063
|
-
declare const index$
|
|
3064
|
-
type index$
|
|
3065
|
-
declare const index$
|
|
3066
|
-
type index$
|
|
3067
|
-
declare const index$
|
|
3068
|
-
declare namespace index$
|
|
3069
|
-
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 };
|
|
3070
3068
|
}
|
|
3071
3069
|
|
|
3072
3070
|
interface IAPI$2 {
|
|
@@ -3238,11 +3236,11 @@ declare const Endpoints$1: {
|
|
|
3238
3236
|
};
|
|
3239
3237
|
};
|
|
3240
3238
|
|
|
3241
|
-
type index$
|
|
3242
|
-
declare const index$
|
|
3243
|
-
declare const index$
|
|
3244
|
-
declare namespace index$
|
|
3245
|
-
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 };
|
|
3246
3244
|
}
|
|
3247
3245
|
|
|
3248
3246
|
declare const SpecialOfferSchema: z.ZodObject<{
|
|
@@ -3395,17 +3393,17 @@ declare const Endpoints: {
|
|
|
3395
3393
|
};
|
|
3396
3394
|
};
|
|
3397
3395
|
|
|
3398
|
-
type index$
|
|
3399
|
-
declare const index$
|
|
3400
|
-
declare const index$
|
|
3401
|
-
type index$
|
|
3402
|
-
declare const index$
|
|
3403
|
-
type index$
|
|
3404
|
-
declare const index$
|
|
3405
|
-
type index$
|
|
3406
|
-
declare const index$
|
|
3407
|
-
declare namespace index$
|
|
3408
|
-
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 };
|
|
3409
3407
|
}
|
|
3410
3408
|
|
|
3411
3409
|
declare class ShredAPI {
|
|
@@ -3450,20 +3448,20 @@ declare class ForbiddenException extends ShredException {
|
|
|
3450
3448
|
constructor(message: string);
|
|
3451
3449
|
}
|
|
3452
3450
|
|
|
3453
|
-
type index$
|
|
3454
|
-
declare const index$
|
|
3455
|
-
type index$
|
|
3456
|
-
declare const index$
|
|
3457
|
-
type index$
|
|
3458
|
-
declare const index$
|
|
3459
|
-
type index$
|
|
3460
|
-
declare const index$
|
|
3461
|
-
type index$
|
|
3462
|
-
declare const index$
|
|
3463
|
-
type index$
|
|
3464
|
-
declare const index$
|
|
3465
|
-
declare namespace index$
|
|
3466
|
-
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 };
|
|
3467
3465
|
}
|
|
3468
3466
|
|
|
3469
3467
|
declare const AssetSchema: z.ZodObject<{
|
|
@@ -3508,9 +3506,132 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
3508
3506
|
}>;
|
|
3509
3507
|
type Asset = z.infer<typeof AssetSchema>;
|
|
3510
3508
|
|
|
3511
|
-
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, add its metadata to `ActionCatalog`
|
|
3521
|
+
* (the compiler enforces the entry exists), then bump this package (see rbac docs).
|
|
3522
|
+
* String values are dot-notation `domain.action` and are permanent once shipped.
|
|
3523
|
+
*/
|
|
3524
|
+
declare const Actions: {
|
|
3525
|
+
readonly PROJECT_APPROVE: "project.approve";
|
|
3526
|
+
readonly PROJECT_DENY: "project.deny";
|
|
3527
|
+
readonly PROJECT_ASSIGN: "project.assign";
|
|
3528
|
+
readonly PROJECT_ROLLBACK: "project.rollback";
|
|
3529
|
+
readonly PROJECT_SCHEDULE: "project.schedule";
|
|
3530
|
+
readonly PROJECT_UNSCHEDULE: "project.unschedule";
|
|
3531
|
+
readonly PROJECT_GET_NEXT_IN_QUEUE: "project.get_next_in_queue";
|
|
3532
|
+
readonly PROJECT_VIEW_ALL: "project.view_all";
|
|
3533
|
+
readonly PROJECT_VIEW_HISTORY: "project.view_history";
|
|
3534
|
+
readonly PROJECT_START: "project.start";
|
|
3535
|
+
readonly PROJECT_SEND_TO_APPROVAL: "project.send_to_approval";
|
|
3536
|
+
readonly PROJECT_VIEW_POOL: "project.view_pool";
|
|
3537
|
+
readonly PROJECT_STREAM: "project.stream";
|
|
3538
|
+
readonly PROJECT_CREATE: "project.create";
|
|
3539
|
+
readonly PROJECT_CANCEL: "project.cancel";
|
|
3540
|
+
readonly PROJECT_REORDER: "project.reorder";
|
|
3541
|
+
readonly PROJECT_REQUEST_REVIEW: "project.request_review";
|
|
3542
|
+
readonly PROJECT_RECORD_INTERACTION: "project.record_interaction";
|
|
3543
|
+
readonly PROJECT_CHECK_FREE_QUOTA: "project.check_free_quota";
|
|
3544
|
+
readonly PROJECT_LIST_OWN: "project.list_own";
|
|
3545
|
+
readonly PROJECT_VIEW_OWN: "project.view_own";
|
|
3546
|
+
readonly EDITOR_LIST: "editor.list";
|
|
3547
|
+
readonly EDITOR_GET: "editor.get";
|
|
3548
|
+
readonly GOAL_VIEW_OWN: "goal.view_own";
|
|
3549
|
+
readonly GOAL_VIEW_EDITOR: "goal.view_editor";
|
|
3550
|
+
readonly NOTE_VIEW: "note.view";
|
|
3551
|
+
readonly NOTE_CREATE: "note.create";
|
|
3552
|
+
readonly NOTE_UPDATE: "note.update";
|
|
3553
|
+
readonly NOTE_DELETE: "note.delete";
|
|
3554
|
+
readonly TENANT_CREATE: "tenant.create";
|
|
3555
|
+
readonly TENANT_LIST: "tenant.list";
|
|
3556
|
+
readonly TENANT_VIEW: "tenant.view";
|
|
3557
|
+
readonly TENANT_UPDATE: "tenant.update";
|
|
3558
|
+
readonly TENANT_VIEW_MEMBERS: "tenant.view_members";
|
|
3559
|
+
readonly TENANT_UPDATE_MEMBERS: "tenant.update_members";
|
|
3560
|
+
readonly TENANT_UPDATE_REPORT_VIEWERS: "tenant.update_report_viewers";
|
|
3561
|
+
readonly TENANT_VIEW_REPORT: "tenant.view_report";
|
|
3562
|
+
readonly TENANT_VIEW_MINE: "tenant.view_mine";
|
|
3563
|
+
readonly OFFER_LIST: "offer.list";
|
|
3564
|
+
readonly OFFER_CREATE: "offer.create";
|
|
3565
|
+
readonly OFFER_UPDATE: "offer.update";
|
|
3566
|
+
readonly OFFER_ENABLE: "offer.enable";
|
|
3567
|
+
readonly OFFER_DISABLE: "offer.disable";
|
|
3568
|
+
readonly OFFER_GET_MINE: "offer.get_mine";
|
|
3569
|
+
readonly OFFER_CLAIM: "offer.claim";
|
|
3570
|
+
readonly SUBSCRIPTION_VIEW_USER: "subscription.view_user";
|
|
3571
|
+
readonly SUBSCRIPTION_VIEW_SUMMARY: "subscription.view_summary";
|
|
3572
|
+
readonly SUBSCRIPTION_LIST_PROMO_CODES: "subscription.list_promo_codes";
|
|
3573
|
+
readonly SUBSCRIPTION_CHECKOUT: "subscription.checkout";
|
|
3574
|
+
readonly SUBSCRIPTION_PORTAL: "subscription.portal";
|
|
3575
|
+
readonly SUBSCRIPTION_VIEW_ACTIVE: "subscription.view_active";
|
|
3576
|
+
readonly SUBSCRIPTION_LIST_PRODUCTS: "subscription.list_products";
|
|
3577
|
+
readonly SCRIPT_LIST: "script.list";
|
|
3578
|
+
readonly SCRIPT_CREATE: "script.create";
|
|
3579
|
+
readonly SCRIPT_UPDATE: "script.update";
|
|
3580
|
+
readonly SCRIPT_DELETE: "script.delete";
|
|
3581
|
+
readonly SCRIPT_GENERATE: "script.generate";
|
|
3582
|
+
readonly PROMPT_GET: "prompt.get";
|
|
3583
|
+
readonly EMAIL_SEND: "email.send";
|
|
3584
|
+
readonly USER_SEARCH: "user.search";
|
|
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
|
+
type ActionMeta = {
|
|
3607
|
+
label: string;
|
|
3608
|
+
group: ActionGroup;
|
|
3609
|
+
};
|
|
3610
|
+
/** One catalog row as served to the admin UI (GET /actions). */
|
|
3611
|
+
type ActionCatalogEntry = ActionMeta & {
|
|
3612
|
+
key: Action;
|
|
3613
|
+
};
|
|
3614
|
+
/**
|
|
3615
|
+
* Human-readable metadata for every Action, powering the admin "create/edit role" UI.
|
|
3616
|
+
*
|
|
3617
|
+
* Typed as `Record<Action, ActionMeta>`, so the compiler GUARANTEES: every Action has
|
|
3618
|
+
* exactly one entry (a missing one is a build error), and no entry can reference an
|
|
3619
|
+
* Action that doesn't exist. Keys reference `Actions.*` so each string lives in one place.
|
|
3620
|
+
*/
|
|
3621
|
+
declare const ActionCatalog: Record<Action, ActionMeta>;
|
|
3622
|
+
/** The catalog as a flat list of `{ key, label, group }` — e.g. for `GET /actions`. */
|
|
3623
|
+
declare function listActionCatalog(): ActionCatalogEntry[];
|
|
3624
|
+
|
|
3625
|
+
type index_Action = Action;
|
|
3626
|
+
declare const index_ActionCatalog: typeof ActionCatalog;
|
|
3627
|
+
type index_ActionCatalogEntry = ActionCatalogEntry;
|
|
3628
|
+
type index_ActionGroup = ActionGroup;
|
|
3629
|
+
type index_ActionMeta = ActionMeta;
|
|
3630
|
+
declare const index_Actions: typeof Actions;
|
|
3631
|
+
type index_Scope = Scope;
|
|
3632
|
+
declare const index_listActionCatalog: typeof listActionCatalog;
|
|
3512
3633
|
declare namespace index {
|
|
3513
|
-
export {
|
|
3634
|
+
export { type index_Action as Action, index_ActionCatalog as ActionCatalog, type index_ActionCatalogEntry as ActionCatalogEntry, type index_ActionGroup as ActionGroup, type index_ActionMeta as ActionMeta, index_Actions as Actions, type index_Scope as Scope, index_listActionCatalog as listActionCatalog };
|
|
3514
3635
|
}
|
|
3515
3636
|
|
|
3516
|
-
export { index as Asset, index$
|
|
3637
|
+
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 };
|