1+
2+
3+ export interface AppMessageContent {
4+ content ?: string ;
5+ file_urls ?: string [ ] ;
6+ custom_context ?: unknown ;
7+ additional_message_params ?: Record < string , unknown > ;
8+ [ key : string ] : unknown ;
9+ }
10+
11+ export interface AppConversationMessage extends AppMessageContent {
12+ id ?: string | null ;
13+ role ?: "user" | "assistant" | string ;
14+ }
15+
16+ export interface AppConversationLike {
17+ id ?: string | null ;
18+ messages ?: AppMessageContent [ ] | null ;
19+ model ?: string ;
20+ functions_fail_silently ?: boolean ;
21+ }
22+
23+
24+ export interface DenoProjectLike {
25+ project_id : string
26+ project_name : string
27+ app_id : string
28+ deployment_name_to_info : Record < string , { id : string , code : string } >
29+
30+ }
31+
32+ export interface AppLike {
33+ id ?: string ;
34+ conversation ?: AppConversationLike | null ;
35+ app_stage ?: "pending" | "product_flows" | "ready" | string ;
36+ created_date ?: string ;
37+ updated_date ?: string ;
38+ created_by ?: string ;
39+ organization_id ?: string ;
40+ name ?: string ;
41+ user_description ?: string ;
42+ entities ?: Record < string , any > ;
43+ additional_user_data_schema ?: any ;
44+ pages ?: { [ key : string ] : string } ;
45+ components : { [ key : string ] : any } ;
46+ layout ?: string ;
47+ globals_css ?: string ;
48+ agents ?: Record < string , any > ;
49+ logo_url ?: string ;
50+ slug ?: string ;
51+ public_settings ?: "private_with_login" | "public_with_login" | "public_without_login" | "workspace_with_login" | string ;
52+ is_blocked ?: boolean ;
53+ github_repo_url ?: string ;
54+ main_page ?: string ;
55+ installable_integrations ?: any ;
56+ backend_project ?: DenoProjectLike ;
57+ last_deployed_at ?: string ;
58+ is_remixable ?: boolean ;
59+ remixed_from_app_id ?: string ;
60+ hide_entity_created_by ?: boolean ;
61+ platform_version ?: number ;
62+ enable_username_password ?: boolean ;
63+ auth_config ?: AuthConfigLike ;
64+ status ?: {
65+ state ?: string ;
66+ details ?: any ;
67+ last_updated_date ?: string ;
68+ } ;
69+ custom_instructions ?: any ;
70+ frozen_files ?: string [ ] ;
71+ deep_coding_mode ?: boolean ;
72+ needs_to_add_diff ?: boolean ;
73+ installed_integration_context_items ?: any [ ] ;
74+ model ?: string ;
75+ is_starred ?: boolean ;
76+ agents_enabled ?: boolean ;
77+ categories ?: string [ ] ;
78+ functions ?: any ;
79+ function_names ?: string [ ] ;
80+ user_entity ?: UserEntityLike ;
81+ app_code_hash ?: string ;
82+ has_backend_functions_enabled ?: boolean ;
83+ }
84+
85+ export interface UserLike {
86+ id ?: string | null ;
87+ }
88+
89+ export interface UserEntityLike {
90+ type : string ;
91+ name : string ;
92+ title ?: string ;
93+ properties ?: {
94+ role ?: {
95+ type ?: string ;
96+ description ?: string ;
97+ enum ?: ( "admin" | "user" | string ) [ ] ;
98+ } ;
99+ email ?: {
100+ type ?: string ;
101+ description ?: string ;
102+ } ;
103+ full_name ?: {
104+ type ?: string ;
105+ description ?: string ;
106+ } ;
107+ } ;
108+ required : string [ ] ;
109+ }
110+
111+
112+ export interface AuthConfigLike {
113+ enable_username_password ?: boolean ;
114+ enable_google_login ?: boolean ;
115+ enable_microsoft_login ?: boolean ;
116+ enable_facebook_login ?: boolean ;
117+ sso_provider_name ?: string ;
118+ enable_sso_login ?: boolean ;
119+ }
120+
121+
122+
123+
124+ export type LoginInfoResponse = Pick <
125+ AppLike ,
126+ | "id"
127+ | "name"
128+ | "slug"
129+ | "logo_url"
130+ | "user_description"
131+ | "updated_date"
132+ | "created_date"
133+ | "auth_config"
134+ | "platform_version"
135+ > ;
0 commit comments