@spscommerce/max 0.0.1 → 0.1.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.
@@ -0,0 +1,5 @@
1
+ export interface Chat {
2
+ role: "user" | "agent";
3
+ content: string | undefined;
4
+ id?: string;
5
+ }
@@ -0,0 +1,32 @@
1
+ export interface Message {
2
+ createdDateTime: string;
3
+ id: string;
4
+ request: string;
5
+ response: string;
6
+ conversationId: string;
7
+ status: string;
8
+ context: Record<string, any>;
9
+ feedbackReceived: boolean;
10
+ archived: boolean;
11
+ completedDateTime: string;
12
+ }
13
+ export interface ConversationMessages {
14
+ results: Message[];
15
+ total: number;
16
+ previous: string | null;
17
+ next: string | null;
18
+ }
19
+ export interface Conversation {
20
+ createdDateTime: string;
21
+ deleted: boolean;
22
+ id: string;
23
+ modifiedDateTime: string;
24
+ title: string;
25
+ userId: string;
26
+ }
27
+ export interface ConversationList {
28
+ results: Conversation[];
29
+ total: number;
30
+ previous: string | null;
31
+ next: string | null;
32
+ }
@@ -0,0 +1,6 @@
1
+ export type CurrentApp = {
2
+ application: Application;
3
+ };
4
+ export type Application = {
5
+ name: string;
6
+ };
@@ -0,0 +1,23 @@
1
+ interface IdentityMeV2ResponseUserInfo {
2
+ first_name: string;
3
+ preferences: {
4
+ timezone: string;
5
+ };
6
+ }
7
+ interface IdentityMeV2Entity {
8
+ permissions: string[];
9
+ user_info: IdentityMeV2ResponseUserInfo;
10
+ org_user_id?: string;
11
+ }
12
+ interface IdentityMeV2Response {
13
+ acting_entity: IdentityMeV2Entity;
14
+ initiating_entity: IdentityMeV2Entity & {
15
+ permissions: null;
16
+ };
17
+ }
18
+ export type CurrentUser = Omit<IdentityMeV2Response, "initiating_entity"> & {
19
+ initiating_entity: Omit<IdentityMeV2Entity, "permissions"> & {
20
+ permissions: null;
21
+ };
22
+ };
23
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface FeatureFlagsTitles {
2
+ aiAgentPanel: boolean;
3
+ agentBeta: boolean;
4
+ showMaxLibraryComponent: boolean;
5
+ }
@@ -0,0 +1,7 @@
1
+ export interface UsageStatus {
2
+ status: "active" | "limited";
3
+ period_began: string;
4
+ period_end: string;
5
+ request_limit: number;
6
+ requests_in_period: number;
7
+ }