@elqnt/types 2.0.12 → 2.0.13

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../models/index.ts","../../models/types.ts","../../models/user-status.ts","../../models/user-models.ts","../../models/admin-models.ts","../../models/billing-models.ts"],"sourcesContent":["export * from \"./types\";\nexport * from \"./user-status\";\nexport * from \"./user-models\";\nexport * from \"./admin-models\";\nexport * from \"./billing-models\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: product-models.go\n\nexport type ProductName = string;\nexport const ProductNameShopAssist: ProductName = \"shop-assist\";\nexport const ProductNamePublicSector: ProductName = \"public-sector\";\nexport const ProductNameHub: ProductName = \"hub\";\nexport const ProductNameFinance: ProductName = \"finance\";\nexport const ProductNameLegal: ProductName = \"legal\";\nexport const ProductNameRealEstate: ProductName = \"real-estate\";\nexport const ProductNameQuickMind: ProductName = \"quick-mind\";\nexport const ProductNameDocBrain: ProductName = \"doc-brain\";\nexport const ProductNameDoneProjects: ProductName = \"done-projects\";\n\nexport const ProductNames = {\n \"shop-assist\": { value: 'shop-assist', label: 'Shop Assist' },\n \"public-sector\": { value: 'public-sector', label: 'Public Sector' },\n \"hub\": { value: 'hub', label: 'Hub' },\n \"finance\": { value: 'finance', label: 'Finance' },\n \"legal\": { value: 'legal', label: 'Legal' },\n \"real-estate\": { value: 'real-estate', label: 'Real Estate' },\n \"quick-mind\": { value: 'quick-mind', label: 'Quick Mind' },\n \"doc-brain\": { value: 'doc-brain', label: 'Doc Brain' },\n \"done-projects\": { value: 'done-projects', label: 'Done Projects' },\n} as const;\nexport type ProductNameTS = keyof typeof ProductNames;\nexport type ProductNameOptionTS = typeof ProductNames[ProductNameTS];\n\n\n//////////\n// source: response.go\n\n/**\n * APIResponse is the unified response wrapper for all HTTP endpoints.\n * Either Data or Error is present, never both (mutually exclusive).\n * This type is generated to TypeScript via tygo for frontend consumption.\n */\nexport interface APIResponse {\n data?: any;\n error?: APIError;\n metadata?: ResponseMetadata;\n}\n/**\n * APIError contains structured error information sent to clients.\n * Code maps to syserrors error codes (e.g., \"VALIDATION_ERROR\", \"NOT_FOUND\").\n */\nexport interface APIError {\n code: string;\n message: string;\n details?: { [key: string]: any};\n}\n/**\n * ResponseMetadata contains response metadata for both HTTP and NATS responses.\n * For HTTP: typically only RequestID and Timestamp are used (success indicated by HTTP status)\n * For NATS: Success, Message, and Error fields are used for RPC-style communication\n */\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n requestId?: string;\n}\n\n//////////\n// source: schema.go\n\n/**\n * Base JSON Schema type for reuse\n */\nexport interface JSONSchema {\n /**\n * Core Schema Metadata\n */\n type: string;\n title?: string;\n description?: string;\n default?: any;\n /**\n * Schema Composition\n */\n properties?: { [key: string]: JSONSchema};\n items?: JSONSchema; // For arrays\n required?: string[];\n '$ref'?: string;\n /**\n * Validation\n */\n minLength?: number /* int */;\n maxLength?: number /* int */;\n minimum?: number /* float64 */;\n maximum?: number /* float64 */;\n pattern?: string;\n format?: string; // email, date-time, etc\n enum?: any[];\n /**\n * Extended Properties\n */\n 'x-enumLabels'?: string[];\n 'x-enumColors'?: string[];\n 'x-enumDescriptions'?: string[];\n 'x-refDisplayFields'?: string[];\n 'x-refSearchFields'?: string[];\n 'x-refMultiple'?: boolean;\n 'x-searchable'?: boolean;\n 'x-unique'?: boolean;\n 'x-displayOrder'?: number /* int */;\n}\n\n//////////\n// source: service-types.go\n\n/**\n * ServiceEventMetadata contains metadata for service events\n */\nexport interface ServiceEventMetadata {\n id: string;\n timestamp: any /* time.Time */;\n version: string;\n source: string;\n}\n/**\n * ServiceEvent represents an event published by a service\n */\nexport interface ServiceEvent {\n metadata: ServiceEventMetadata;\n data: any /* json.RawMessage */;\n}\n\n//////////\n// source: types.go\n\n/**\n * todo: remove this\n */\nexport interface Variable {\n type: DataType;\n value: any;\n defaultValue?: any;\n validation?: VariableValidation;\n scope: VariableScope;\n reference?: VariableReference;\n description?: string;\n required: boolean;\n}\nexport type DataType = string;\nexport const DataTypeString: DataType = \"string\";\nexport const DataTypeInt: DataType = \"int\";\nexport const DataTypeFloat: DataType = \"float\";\nexport const DataTypeBoolean: DataType = \"boolean\";\nexport const DataTypeDate: DataType = \"date\";\nexport const DataTypeJSON: DataType = \"json\";\nexport const DataTypeArray: DataType = \"array\";\nexport const DataTypeInputFields: DataType = \"inputFields\";\nexport const DataTypeFile: DataType = \"file\";\nexport const DataTypeObjectList: DataType = \"objectList\";\nexport type VariableScope = string;\nexport const VariableScopeGlobal: VariableScope = \"global\";\nexport const VariableScopeNode: VariableScope = \"node\";\nexport const VariableScopeEdge: VariableScope = \"edge\";\nexport interface VariableValidation {\n minLength?: number /* int */;\n maxLength?: number /* int */;\n pattern?: string;\n min?: number /* float64 */;\n max?: number /* float64 */;\n options?: string[];\n}\nexport interface VariableReference {\n nodeId?: string;\n fieldPath: string; // dot notation for nested fields\n}\n","// User status types - shared between auth and chat packages\n// These are manually maintained to avoid circular dependencies\n\nimport { ResponseMetadata } from \"./types\";\n\nexport type UserStatusTS = \"online\" | \"away\" | \"busy\" | \"offline\";\n\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\n\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: user.go\n\nexport type WidgetType = string;\nexport const WidgetTypeCalendar: WidgetType = \"calendar\";\nexport const WidgetTypeActivities: WidgetType = \"activities\";\nexport const WidgetTypeEmail: WidgetType = \"email\";\nexport const WidgetTypeTasks: WidgetType = \"tasks\";\nexport const WidgetTypeNotes: WidgetType = \"notes\";\nexport const WidgetTypeFiles: WidgetType = \"files\";\nexport const WidgetTypeContacts: WidgetType = \"contacts\";\nexport const WidgetTypeAccounts: WidgetType = \"accounts\";\nexport const WidgetTypeLeads: WidgetType = \"leads\";\nexport const WidgetTypeOpportunities: WidgetType = \"opportunities\";\nexport const WidgetTypeChart: WidgetType = \"chart\";\nexport const WidgetTypeOrders: WidgetType = \"orders\";\nexport interface Widget {\n id?: string /* ObjectID */;\n userId: string;\n title: string;\n subTitle?: string;\n type: WidgetType;\n chartSettings?: ChartSettings;\n slotIndex: number /* int */;\n}\nexport type ChartType = string;\nexport const ChartTypeBar: ChartType = \"Bar chart\";\nexport const ChartTypeLine: ChartType = \"Line chart\";\nexport const ChartTypePie: ChartType = \"Pie chart\";\nexport const ChartTypeDoughnut: ChartType = \"Doughnut chart\";\nexport const ChartTypeMetic: ChartType = \"Metric\";\nexport type AggregateType = string;\nexport const AggregateTypeSum: AggregateType = \"Sum\";\nexport const AggregateTypeCount: AggregateType = \"Count\";\nexport const AggregateTypeAverage: AggregateType = \"Average\";\nexport const AggregateTypeMin: AggregateType = \"Min\";\nexport const AggregateTypeMax: AggregateType = \"Max\";\nexport const AggregateTypeDistinct: AggregateType = \"Distinct\";\nexport interface MetricResult {\n aggregateType: AggregateType;\n value: any;\n compareAggregateType: AggregateType;\n compareValue: any;\n}\nexport interface DateValue {\n date: string;\n value: number /* float64 */;\n}\nexport interface ChartSettings {\n chartType: ChartType;\n aggregateType: AggregateType;\n tableName: string;\n groupByFieldName: string;\n valueFieldName: string;\n filterFieldName: string;\n filterFieldValue: string;\n enableCompare: boolean;\n compareTitle: string;\n compareAggregateType: AggregateType;\n compareTableName: string;\n compareValueFieldName: string;\n compareFilterFieldName: string;\n compareFilterFieldValue: string;\n}\n","// Code generated by tygo. DO NOT EDIT.\nimport { ResponseMetadata } from \"./types\";\n\n//////////\n// source: admin-models.go\n\nexport interface Address {\n line1: string;\n line2: string;\n city: string;\n state: string;\n country: string;\n zip: string;\n}\nexport interface Org {\n id?: string /* uuid */;\n title: string;\n logoUrl: string;\n mainDomain: string;\n address: Address;\n apps: SystemAppTS[];\n /**\n * Status & Control\n */\n status: OrgStatusTS;\n enabled: boolean;\n /**\n * Classification\n */\n type: OrgTypeTS;\n size?: OrgSizeTS;\n industry?: string;\n tags?: string[];\n /**\n * Subscription (Stripe)\n */\n subscription?: OrgSubscription;\n userCount: number /* int64 */;\n /**\n * Onboarding & Provisioning\n */\n onboarding?: OrgOnboarding;\n provisioning?: OrgProvisioning;\n /**\n * Template & Roles\n */\n template?: OrgTemplate;\n roles: string[];\n /**\n * Flexible metadata\n */\n metadata?: { [key: string]: any};\n /**\n * Audit fields\n */\n createdAt?: number /* int64 */;\n updatedAt?: number /* int64 */;\n createdBy?: string;\n updatedBy?: string;\n}\nexport type OrgStatus = string;\nexport const OrgStatusActive: OrgStatus = \"active\";\nexport const OrgStatusSuspended: OrgStatus = \"suspended\";\n\nexport const OrgStatuses = {\n active: { value: 'active', label: 'Active' },\n suspended: { value: 'suspended', label: 'Suspended' },\n} as const;\nexport type OrgStatusTS = keyof typeof OrgStatuses;\nexport type OrgStatusOptionTS = typeof OrgStatuses[OrgStatusTS];\n\n/**\n * OrgType represents whether the org is self-serve or enterprise\n */\nexport type OrgType = string;\nexport const OrgTypeSelfServe: OrgType = \"self-serve\";\nexport const OrgTypeEnterprise: OrgType = \"enterprise\";\n\nexport const OrgTypes = {\n \"self-serve\": { value: 'self-serve', label: 'Self-Serve' },\n enterprise: { value: 'enterprise', label: 'Enterprise' },\n} as const;\nexport type OrgTypeTS = keyof typeof OrgTypes;\nexport type OrgTypeOptionTS = typeof OrgTypes[OrgTypeTS];\n\n/**\n * OrgSize represents the size of the organization\n */\nexport type OrgSize = string;\nexport const OrgSizeSolo: OrgSize = \"solo\";\nexport const OrgSizeSmall: OrgSize = \"small\";\nexport const OrgSizeMedium: OrgSize = \"medium\";\nexport const OrgSizeLarge: OrgSize = \"large\";\nexport const OrgSizeEnterprise: OrgSize = \"enterprise\";\n\nexport const OrgSizes = {\n solo: { value: 'solo', label: 'Just me' },\n small: { value: 'small', label: '2-10' },\n medium: { value: 'medium', label: '11-50' },\n large: { value: 'large', label: '51-200' },\n enterprise: { value: 'enterprise', label: '200+' },\n} as const;\nexport type OrgSizeTS = keyof typeof OrgSizes;\nexport type OrgSizeOptionTS = typeof OrgSizes[OrgSizeTS];\n\n/**\n * OnboardingStatus represents the status of an onboarding flow\n */\nexport type OnboardingStatus = string;\nexport const OnboardingStatusPending: OnboardingStatus = \"pending\";\nexport const OnboardingStatusInProgress: OnboardingStatus = \"in_progress\";\nexport const OnboardingStatusCompleted: OnboardingStatus = \"completed\";\nexport const OnboardingStatusSkipped: OnboardingStatus = \"skipped\";\nexport const OnboardingStatusLegacy: OnboardingStatus = \"legacy\"; // For users created before onboarding\n\nexport const OnboardingStatuses = {\n pending: { value: 'pending', label: 'Pending' },\n in_progress: { value: 'in_progress', label: 'In Progress' },\n completed: { value: 'completed', label: 'Completed' },\n skipped: { value: 'skipped', label: 'Skipped' },\n legacy: { value: 'legacy', label: 'Legacy' },\n} as const;\nexport type OnboardingStatusTS = keyof typeof OnboardingStatuses;\nexport type OnboardingStatusOptionTS = typeof OnboardingStatuses[OnboardingStatusTS];\n\n/**\n * ProvisioningStatus represents the status of resource provisioning\n */\nexport type ProvisioningStatus = string;\nexport const ProvisioningStatusPending: ProvisioningStatus = \"pending\";\nexport const ProvisioningStatusRunning: ProvisioningStatus = \"running\";\nexport const ProvisioningStatusCompleted: ProvisioningStatus = \"completed\";\nexport const ProvisioningStatusFailed: ProvisioningStatus = \"failed\";\n\nexport const ProvisioningStatuses = {\n pending: { value: 'pending', label: 'Pending' },\n running: { value: 'running', label: 'Running' },\n completed: { value: 'completed', label: 'Completed' },\n failed: { value: 'failed', label: 'Failed' },\n} as const;\nexport type ProvisioningStatusTS = keyof typeof ProvisioningStatuses;\nexport type ProvisioningStatusOptionTS = typeof ProvisioningStatuses[ProvisioningStatusTS];\n\n/**\n * OrgOnboarding tracks the onboarding progress for an organization\n */\nexport interface OrgOnboarding {\n status: OnboardingStatus;\n currentStep: number /* int */;\n completedAt?: number /* int64 */;\n skippedSteps?: number /* int */[];\n}\n/**\n * OrgProvisioning tracks the provisioning status of default resources\n */\nexport interface OrgProvisioning {\n status: ProvisioningStatus;\n defaultAgentId?: string;\n defaultKnowledgeGraphId?: string;\n completedAt?: number /* int64 */;\n error?: string;\n}\nexport interface OrgSubscription {\n plan: string;\n platform: SubscriptionPlatform;\n status: OrgSubscriptionStatus;\n trialEndsAt?: number /* int64 */;\n currentPeriodEnd?: number /* int64 */;\n seats?: number /* int */;\n stripeCustomerId?: string;\n stripeSubscriptionId?: string;\n cancelledAt?: number /* int64 */;\n cancelReason?: string;\n gracePeriodEndsAt?: number /* int64 */;\n}\nexport type OrgSubscriptionStatus = string;\nexport const OrgSubscriptionStatusTrialing: OrgSubscriptionStatus = \"trialing\";\nexport const OrgSubscriptionStatusActive: OrgSubscriptionStatus = \"active\";\nexport const OrgSubscriptionStatusPastDue: OrgSubscriptionStatus = \"past_due\";\nexport const OrgSubscriptionStatusCancelled: OrgSubscriptionStatus = \"cancelled\";\nexport const OrgSubscriptionStatusUnpaid: OrgSubscriptionStatus = \"unpaid\";\n\nexport const OrgSubscriptionStatuses = {\n trialing: { value: 'trialing', label: 'Trialing' },\n active: { value: 'active', label: 'Active' },\n past_due: { value: 'past_due', label: 'Past Due' },\n cancelled: { value: 'cancelled', label: 'Cancelled' },\n unpaid: { value: 'unpaid', label: 'Unpaid' },\n} as const;\nexport type OrgSubscriptionStatusTS = keyof typeof OrgSubscriptionStatuses;\nexport type OrgSubscriptionStatusOptionTS = typeof OrgSubscriptionStatuses[OrgSubscriptionStatusTS];\n\nexport interface OrgResponse {\n org: Org;\n metadata: ResponseMetadata;\n}\nexport interface OrgInfoResponse {\n orgInfo: OrgInfo;\n metadata: ResponseMetadata;\n}\nexport interface OrgRoleResponse {\n role: OrgRole;\n metadata: ResponseMetadata;\n}\nexport interface ListOrgsResponse {\n orgs: Org[];\n metadata: ResponseMetadata;\n}\nexport interface ListOrgRolesResponse {\n roles: OrgRole[];\n metadata: ResponseMetadata;\n}\nexport interface OrgInfo {\n id?: string;\n title: string;\n logoUrl: string;\n mainDomain?: string;\n apps: SystemAppTS[];\n}\nexport interface AzureSettings {\n appClientId?: string;\n appClientSecret?: string;\n azureTenantId?: string;\n}\nexport interface OrgTemplate {\n id: string /* uuid */;\n slug: string;\n title: string;\n}\nexport interface UserOrgAccess {\n orgId?: string /* uuid */;\n orgTitle?: string;\n roles: string[];\n isSingleAccount: boolean;\n entityRecordFilter?: { entityName: string; recordId: string; displayValue?: string };\n}\n/**\n * UserSettings represents user preferences (elastic JSON structure)\n */\nexport interface UserSettings {\n theme?: string; // \"system\" | \"light\" | \"dark\"\n language?: string; // \"auto\" | \"en\" | \"ar\" | etc.\n timezone?: string; // \"auto\" | \"America/New_York\" | etc.\n occupation?: string; // User's occupation/role\n company?: string; // User's company/organization\n}\n\nexport const ThemeOptions = {\n system: { value: 'system', label: 'System' },\n light: { value: 'light', label: 'Light' },\n dark: { value: 'dark', label: 'Dark' },\n} as const;\nexport type ThemeOptionTS = keyof typeof ThemeOptions;\n\n/**\n * NotificationPreferences represents user notification settings\n */\nexport interface NotificationPreferences {\n pushEnabled: boolean;\n newChatAssignment: boolean;\n newMessages: boolean;\n escalations: boolean;\n urgentOnly: boolean;\n soundEnabled: boolean;\n doNotDisturb: boolean;\n dndStart?: string; // \"22:00\" format\n dndEnd?: string; // \"08:00\" format\n}\n/**\n * UserSource represents how a user was created\n */\nexport type UserSource = string;\nexport const UserSourceSignup: UserSource = \"signup\"; // Self-registered\nexport const UserSourceInvite: UserSource = \"invite\"; // Invited by team member\nexport const UserSourceSSO: UserSource = \"sso\"; // Auto-provisioned via SSO\nexport const UserSourceAPI: UserSource = \"api\"; // Created via API\n\nexport const UserSources = {\n signup: { value: 'signup', label: 'Signup' },\n invite: { value: 'invite', label: 'Invite' },\n sso: { value: 'sso', label: 'SSO' },\n api: { value: 'api', label: 'API' },\n} as const;\nexport type UserSourceTS = keyof typeof UserSources;\nexport type UserSourceOptionTS = typeof UserSources[UserSourceTS];\n\n/**\n * InviteStatus represents the status of an invitation\n */\nexport type InviteStatus = string;\nexport const InviteStatusPending: InviteStatus = \"pending\";\nexport const InviteStatusAccepted: InviteStatus = \"accepted\";\nexport const InviteStatusExpired: InviteStatus = \"expired\";\nexport const InviteStatusRevoked: InviteStatus = \"revoked\";\n\nexport const InviteStatuses = {\n pending: { value: 'pending', label: 'Pending' },\n accepted: { value: 'accepted', label: 'Accepted' },\n expired: { value: 'expired', label: 'Expired' },\n revoked: { value: 'revoked', label: 'Revoked' },\n} as const;\nexport type InviteStatusTS = keyof typeof InviteStatuses;\nexport type InviteStatusOptionTS = typeof InviteStatuses[InviteStatusTS];\n\n/**\n * Invite represents a team/org invitation\n */\nexport interface Invite {\n id?: string /* uuid */;\n orgId: string /* uuid */;\n email: string;\n role: string;\n invitedBy: string /* uuid */;\n status: InviteStatusTS;\n acceptedBy?: string /* uuid */;\n acceptedAt?: number /* int64 */;\n expiresAt?: number /* int64 */;\n createdAt?: number /* int64 */;\n updatedAt?: number /* int64 */;\n}\nexport interface InviteResponse {\n invite: Invite;\n metadata: ResponseMetadata;\n}\nexport interface ListInvitesResponse {\n invites: Invite[];\n metadata: ResponseMetadata;\n}\n/**\n * UserOnboarding tracks the onboarding progress for a user\n */\nexport interface UserOnboarding {\n status: OnboardingStatus;\n completedAt?: number /* int64 */;\n}\n/**\n * User represents a user in the system\n */\nexport interface User {\n id?: string /* uuid */;\n email: string;\n firstName: string;\n lastName: string;\n authProviderName: string;\n orgAccess?: UserOrgAccess[];\n /**\n * Status & Control\n */\n enabled?: boolean;\n /**\n * Source tracking\n */\n source?: UserSourceTS;\n invitedBy?: string /* uuid */;\n inviteStatus?: InviteStatusTS;\n /**\n * Team membership - LEGACY, DO NOT USE\n * These fields are deprecated and will be removed.\n * Use Org and OrgAccess patterns instead.\n */\n isTeamAdmin?: boolean;\n teamId?: string;\n teamName?: string;\n /**\n * System admin flag\n */\n isSysAdmin?: boolean;\n /**\n * Preferences\n */\n settings?: UserSettings;\n notificationPreferences?: NotificationPreferences;\n /**\n * Onboarding tracking\n */\n onboarding?: UserOnboarding;\n /**\n * Flexible metadata\n */\n metadata?: { [key: string]: any};\n /**\n * Audit fields\n */\n createdAt?: number /* int64 */;\n updatedAt?: number /* int64 */;\n createdBy?: string;\n updatedBy?: string;\n}\nexport interface UserResponse {\n user: User;\n metadata: ResponseMetadata;\n}\nexport interface ListUsersResponse {\n users: User[];\n metadata: ResponseMetadata;\n}\nexport interface Team {\n id?: string /* uuid */;\n name: string;\n isSubscribed: boolean;\n subscribedAt?: number /* int64 */;\n plan: string;\n ownerName?: string;\n ownerEmail?: string;\n subscriptionPlatform?: SubscriptionPlatform;\n subscriptionId?: string;\n onboardingDone?: boolean;\n onboardingData?: string;\n}\nexport type SubscriptionPlatform = string;\nexport const SubscriptionPlatformStripe: SubscriptionPlatform = \"stripe\";\nexport const SubscriptionPlatformCustom: SubscriptionPlatform = \"custom\";\nexport interface OrgRole {\n id?: string /* uuid */;\n orgId?: string /* uuid */;\n title: string;\n permissions: Permission[];\n isSystem: boolean;\n createdAt?: number /* int64 */;\n updatedAt?: number /* int64 */;\n createdBy?: string;\n updatedBy?: string;\n}\n/**\n * org db - copied from sys db\n */\nexport interface Permission {\n /**\n * ID *primitive.ObjectID `bson:\"_id,omitempty\" json:\"id\"`\n */\n name: string;\n title: string;\n isSystem: boolean;\n}\nexport type SystemApp = string;\nexport const SystemAppAdmin: SystemApp = \"admin\";\nexport const SystemAppCRM: SystemApp = \"crm\";\nexport const SystemAppHelpdesk: SystemApp = \"helpdesk\";\nexport const SystemAppMarketing: SystemApp = \"marketing\";\nexport const SystemAppWorkflow: SystemApp = \"workflow\";\nexport const SystemAppAnalytics: SystemApp = \"analytics\";\nexport const SystemAppKnowledgeGraph: SystemApp = \"knowledge-graph\";\nexport const SystemAppDocumentProcessor: SystemApp = \"document-processor\";\n\nexport const SystemApps = {\n admin: { value: 'admin', label: 'Admin' },\n crm: { value: 'crm', label: 'CRM' },\n helpdesk: { value: 'helpdesk', label: 'Helpdesk' },\n marketing: { value: 'marketing', label: 'Marketing' },\n workflow: { value: 'workflow', label: 'Workflow' },\n analytics: { value: 'analytics', label: 'Analytics' },\n \"knowledge-graph\": { value: 'knowledge-graph', label: 'Knowledge Graph' },\n \"document-processor\": { value: 'document-processor', label: 'Document Processor' },\n} as const;\nexport type SystemAppTS = keyof typeof SystemApps;\nexport type SystemAppOptionTS = typeof SystemApps[SystemAppTS];\n\n/**\n * UpdateUserSettingsRequest is the request payload for updating user settings\n */\nexport interface UpdateUserSettingsRequest {\n id: string /* uuid */;\n settings?: UserSettings;\n notificationPreferences?: NotificationPreferences;\n}\n/**\n * UserSettingsResponse is the response for settings operations\n */\nexport interface UserSettingsResponse {\n settings?: UserSettings;\n notificationPreferences?: NotificationPreferences;\n metadata: ResponseMetadata;\n}\n/**\n * OnboardingStep represents a step in the onboarding flow\n */\nexport interface OnboardingStep {\n step: number /* int */;\n name: string;\n status: string; // pending, in_progress, completed, skipped\n required: boolean;\n}\n/**\n * OnboardingState represents the current state of a user's onboarding\n */\nexport interface OnboardingState {\n status: string; // pending, in_progress, completed\n currentStep: number /* int */;\n steps: OnboardingStep[];\n user?: User;\n org?: Org;\n}\n/**\n * OnboardingStateResponse is the response for onboarding status\n */\nexport interface OnboardingStateResponse {\n state: OnboardingState;\n metadata: ResponseMetadata;\n}\n/**\n * OrgInput contains the input for creating an organization\n */\nexport interface OrgInput {\n name: string;\n industry?: string;\n size: string;\n stripeSessionId?: string;\n}\n/**\n * OrgResult contains the result of organization creation\n */\nexport interface OrgResult {\n org?: Org;\n nextStep: string;\n metadata: ResponseMetadata;\n}\n/**\n * WorkspaceInput is an alias for OrgInput (deprecated)\n */\nexport type WorkspaceInput = OrgInput;\n/**\n * WorkspaceResult is an alias for OrgResult (deprecated)\n */\nexport type WorkspaceResult = OrgResult;\n/**\n * InviteInput contains the input for sending invites\n */\nexport interface InviteInput {\n email: string;\n role: string;\n}\n/**\n * InvitesResult contains the result of sending invites\n */\nexport interface InvitesResult {\n sent: InviteSentStatus[];\n failed: string[];\n nextStep: string;\n metadata: ResponseMetadata;\n}\n/**\n * InviteSentStatus represents status of a sent invite\n */\nexport interface InviteSentStatus {\n email: string;\n status: string;\n}\n/**\n * KnowledgeInput contains the input for creating knowledge graph\n */\nexport interface KnowledgeInput {\n name?: string;\n skipUpload: boolean;\n}\n/**\n * KnowledgeGraphInfo contains info about a knowledge graph\n */\nexport interface KnowledgeGraphInfo {\n id: string;\n name: string;\n status: string;\n documentCount: number /* int */;\n}\n/**\n * KnowledgeResult contains the result of knowledge graph creation\n */\nexport interface KnowledgeResult {\n knowledgeGraph: KnowledgeGraphInfo;\n nextStep: string;\n metadata: ResponseMetadata;\n}\n/**\n * AgentInput contains the input for creating an agent\n */\nexport interface AgentInput {\n name: string;\n goal: string;\n personality: string; // professional, friendly, concise, custom\n skills?: string[]; // skill names to enable (e.g., \"web_search\", \"knowledge_graph\")\n}\n/**\n * AgentInfo contains info about an agent\n */\nexport interface AgentInfo {\n id: string;\n name: string;\n goal: string;\n personality: string;\n status: string;\n knowledgeGraphId?: string;\n}\n/**\n * AgentResult contains the result of agent creation\n */\nexport interface AgentResult {\n agent: AgentInfo;\n nextStep: string;\n metadata: ResponseMetadata;\n}\n/**\n * OnboardingCompleteResult contains the result of completing onboarding\n */\nexport interface OnboardingCompleteResult {\n status: string;\n completedAt: number /* int64 */;\n org?: Org;\n redirectUrl: string;\n metadata: ResponseMetadata;\n}\n/**\n * PaymentSessionInput contains input for creating a payment session\n */\nexport interface PaymentSessionInput {\n plan: string; // pro, max\n billingCycle: string; // monthly, annual\n seats: number /* int */;\n successUrl: string;\n cancelUrl: string;\n affiliateCode?: string; // Referral code for affiliate tracking\n}\n/**\n * PaymentSessionResult contains the result of creating a payment session\n */\nexport interface PaymentSessionResult {\n url: string;\n sessionId: string;\n customerId: string;\n metadata: ResponseMetadata;\n}\n\n//////////\n// source: admin-subjects.go\n\nexport const AdminOrgCreate = \"admin.orgs.create\";\nexport const AdminOrgList = \"admin.orgs.list\";\nexport const AdminOrgListByMetadata = \"admin.orgs.listByMetadata\";\nexport const AdminOrgGet = \"admin.orgs.get\";\nexport const AdminOrgGetInfo = \"admin.orgs.getInfo\";\nexport const AdminOrgGetByDomain = \"admin.orgs.getByDomain\";\nexport const AdminOrgUpdate = \"admin.orgs.update\";\nexport const AdminOrgDelete = \"admin.orgs.delete\";\nexport const AdminOrgCreated = \"system.admin.org.created\";\nexport const AdminOrgRolesGet = \"admin.orgRoles.get\";\nexport const AdminOrgRolesCreate = \"admin.orgRoles.create\";\nexport const AdminOrgRolesUpdate = \"admin.orgRoles.update\";\nexport const AdminOrgRolesDelete = \"admin.orgRoles.delete\";\nexport const AdminUsersGet = \"admin.users.get\";\nexport const AdminUsersGetForOrg = \"admin.users.getUsersForOrg\";\nexport const AdminUsersGetOne = \"admin.users.getOne\";\nexport const AdminUsersGetOneByEmail = \"admin.users.getOneByEmail\";\nexport const AdminUsersCreate = \"admin.users.create\";\nexport const AdminUsersUpdate = \"admin.users.update\";\nexport const AdminUsersDelete = \"admin.users.delete\";\nexport const AdminUsersUpdateSettings = \"admin.users.updateSettings\";\nexport const AdminUsersGetSettings = \"admin.users.getSettings\";\nexport const AdminTeamsCreate = \"admin.teams.create\";\nexport const AdminTeamsGetOne = \"admin.teams.getOne\";\nexport const AdminTeamsGetForOrg = \"admin.teams.getTeamsForOrg\";\nexport const AdminTeamsUpdateOnboarding = \"admin.teams.updateOnboardingData\";\n","// Code generated by tygo. DO NOT EDIT.\n// Note: Moved to @elqnt/types for npm publishing (was in @repo/lib)\nimport { ResponseMetadata } from \"./types\";\n\n//////////\n// source: billing-models.go\n\n/**\n * Billing event handlers\n */\nexport const BillingRecordEvent = \"billing.events.record\";\n/**\n * NATS Subject constants\n */\nexport const BillingGetUsageReport = \"billing.usage.report\";\n/**\n * NATS Subject constants\n */\nexport const BillingGetInvoice = \"billing.invoice.get\";\n/**\n * NATS Subject constants\n */\nexport const BillingProcessBillingPeriod = \"billing.period.process\";\n/**\n * Usage handlers\n */\nexport const UsageGetCurrentUsage = \"billing.usage.current\";\n/**\n * NATS Subject constants\n */\nexport const UsageGetUsageHistory = \"billing.usage.history\";\n/**\n * NATS Subject constants\n */\nexport const UsageGetCostBreakdown = \"billing.usage.breakdown\";\n/**\n * NATS Subject constants\n */\nexport const UsageGetTopCostCenters = \"billing.usage.top_centers\";\n/**\n * Rules handlers\n */\nexport const RulesGetBillingRules = \"billing.rules.get\";\n/**\n * NATS Subject constants\n */\nexport const RulesCreateBillingRule = \"billing.rules.create\";\n/**\n * NATS Subject constants\n */\nexport const RulesUpdateBillingRule = \"billing.rules.update\";\n/**\n * NATS Subject constants\n */\nexport const RulesDeleteBillingRule = \"billing.rules.delete\";\nexport interface BillingEvent {\n /**\n * Core identifiers\n */\n org_id: string;\n event_id: string;\n user_id: string;\n customer_id: string;\n /**\n * Event details\n */\n event_type: string;\n event_subtype: string;\n timestamp: string /* RFC3339 */;\n /**\n * Billing metrics\n */\n billable_units: number /* int */;\n unit_type: string;\n cost_per_unit: number /* float64 */;\n total_cost: number /* float64 */;\n /**\n * Context\n */\n service_name: string;\n session_id: string;\n parent_event_id: string;\n /**\n * Resource consumption\n */\n input_tokens: number /* int */;\n output_tokens: number /* int */;\n processing_time_ms: number /* int */;\n /**\n * Product context\n */\n product_tier: string;\n feature_name: string;\n plan_id: string;\n /**\n * Metadata\n */\n metadata: { [key: string]: any};\n created_by: string;\n}\nexport interface UsageReport {\n org_id: string;\n period_start: string /* RFC3339 */;\n period_end: string /* RFC3339 */;\n total_cost: number /* float64 */;\n currency: string;\n service_breakdowns: ServiceUsage[];\n generated_at: string /* RFC3339 */;\n}\nexport interface ServiceUsage {\n service_name: string;\n event_type: string;\n unit_type: string;\n total_units: number /* int64 */;\n total_cost: number /* float64 */;\n total_events: number /* int32 */;\n unique_users: number /* int32 */;\n unique_sessions: number /* int32 */;\n total_input_tokens: number /* int64 */;\n total_output_tokens: number /* int64 */;\n total_processing_time: number /* int64 */;\n}\nexport interface BillingRule {\n rule_id: string;\n org_id: string;\n service_name: string;\n event_type: string;\n unit_type: string;\n /**\n * Tiered pricing\n */\n base_cost: number /* float64 */;\n tier_1_threshold: number /* int */;\n tier_1_cost: number /* float64 */;\n tier_2_threshold: number /* int */;\n tier_2_cost: number /* float64 */;\n tier_3_threshold: number /* int */;\n tier_3_cost: number /* float64 */;\n /**\n * Validity\n */\n effective_from: string /* RFC3339 */;\n effective_to: string /* RFC3339 */;\n is_active: boolean;\n created_at: string /* RFC3339 */;\n updated_at: string /* RFC3339 */;\n}\nexport interface BillingPeriod {\n period_id: string;\n org_id: string;\n period_start: string /* RFC3339 */;\n period_end: string /* RFC3339 */;\n status: string; // 'active', 'closed', 'processing'\n billing_cycle: string; // 'monthly', 'annual', 'usage'\n created_at: string /* RFC3339 */;\n}\nexport interface Invoice {\n invoice_id: string;\n org_id: string;\n period_id: string;\n period_start: string /* RFC3339 */;\n period_end: string /* RFC3339 */;\n line_items: InvoiceLineItem[];\n subtotal_amount: number /* float64 */;\n tax_amount: number /* float64 */;\n total_amount: number /* float64 */;\n currency: string;\n status: string; // 'draft', 'sent', 'paid', 'failed'\n generated_at: string /* RFC3339 */;\n due_date: string /* RFC3339 */;\n payment_method_id: string;\n}\nexport interface InvoiceLineItem {\n line_item_id: string;\n service_name: string;\n event_type: string;\n unit_type: string;\n description: string;\n quantity: number /* int64 */;\n unit_price: number /* float64 */;\n total_price: number /* float64 */;\n}\nexport interface BillingEventRequest {\n BillingEvent: BillingEvent;\n}\nexport interface BillingEventResponse {\n success: boolean;\n error?: string;\n}\nexport interface UsageReportRequest {\n org_id: string;\n period_start: string /* RFC3339 */;\n period_end: string /* RFC3339 */;\n}\nexport interface UsageReportResponse {\n success: boolean;\n data?: UsageReport;\n error?: string;\n}\nexport interface CurrentUsageRequest {\n org_id: string;\n service_name: string;\n event_type: string;\n}\nexport interface CurrentUsageResponse {\n success: boolean;\n data?: { [key: string]: any};\n error?: string;\n}\nexport interface CostBreakdownRequest {\n org_id: string;\n period_start: string /* RFC3339 */;\n period_end: string /* RFC3339 */;\n group_by: string; // 'service', 'user', 'day', 'hour'\n}\nexport interface CostBreakdownResponse {\n success: boolean;\n data?: CostBreakdown[];\n error?: string;\n}\nexport interface CostBreakdown {\n group_value: string;\n total_cost: number /* float64 */;\n total_units: number /* int64 */;\n event_count: number /* int32 */;\n}\nexport interface BillingRuleRequest {\n BillingRule: BillingRule;\n}\nexport interface BillingRuleResponse {\n success: boolean;\n data?: BillingRule;\n error?: string;\n}\nexport interface BillingRulesRequest {\n org_id: string;\n service_name: string;\n event_type: string;\n}\nexport interface BillingRulesResponse {\n success: boolean;\n data?: (BillingRule | undefined)[];\n error?: string;\n}\nexport interface InvoiceRequest {\n org_id: string;\n period_id: string;\n invoice_id: string;\n}\nexport interface InvoiceResponse {\n success: boolean;\n data?: Invoice;\n error?: string;\n}\nexport interface BillingPeriodProcessRequest {\n org_id: string;\n period_id: string;\n}\nexport interface BillingPeriodProcessResponse {\n success: boolean;\n invoice_id?: string;\n error?: string;\n}\nexport interface UsageAggregation {\n org_id: string;\n period_id: string;\n date: string;\n hour: number /* int */;\n service_name: string;\n event_type: string;\n unit_type: string;\n total_units: number /* int64 */;\n total_events: number /* int32 */;\n total_cost: number /* float64 */;\n unique_users: number /* int32 */;\n unique_sessions: number /* int32 */;\n total_input_tokens: number /* int64 */;\n total_output_tokens: number /* int64 */;\n total_processing_time: number /* int64 */;\n created_at: string /* RFC3339 */;\n}\nexport interface TopCostCenter {\n service_name: string;\n event_type: string;\n total_cost: number /* float64 */;\n total_units: number /* int64 */;\n event_count: number /* int32 */;\n percentage: number /* float64 */;\n}\nexport interface UsageHistory {\n date: string;\n total_cost: number /* float64 */;\n total_units: number /* int64 */;\n event_count: number /* int32 */;\n unique_users: number /* int32 */;\n}\nexport interface UserUsage {\n user_id: string;\n total_cost: number /* float64 */;\n total_units: number /* int64 */;\n event_count: number /* int32 */;\n last_activity: string /* RFC3339 */;\n}\n/**\n * Usage trends and analytics models\n */\nexport interface UsageTrends {\n org_id: string;\n days: number /* int */;\n trend: string; // \"increasing\", \"decreasing\", \"stable\"\n direction: string; // \"up\", \"down\", \"flat\"\n change_percent: number /* float64 */;\n recent_week_cost: number /* float64 */;\n previous_week_cost: number /* float64 */;\n}\nexport interface UsageAlert {\n type: string; // \"cost_spike\", \"volume_spike\", etc.\n severity: string; // \"low\", \"medium\", \"high\"\n message: string;\n current_value: number /* float64 */;\n threshold_value: number /* float64 */;\n created_at: string /* RFC3339 */;\n}\n/**\n * Cost preview models\n */\nexport interface CostPreview {\n units: number /* int */;\n total_cost: number /* float64 */;\n cost_per_unit: number /* float64 */;\n tier_breakdown: TierCost[];\n rule?: BillingRule;\n}\nexport interface TierCost {\n tier: string;\n units: number /* int */;\n rate: number /* float64 */;\n cost: number /* float64 */;\n}\n/**\n * Rule coverage models\n */\nexport interface RuleCoverage {\n org_id: string;\n total_services: number /* int */;\n covered_services: { [key: string]: boolean};\n missing_rules: string[];\n rule_count: number /* int */;\n coverage_percentage: number /* float64 */;\n}\n/**\n * Generic Response\n */\nexport interface BillingResponse {\n success: boolean;\n data?: any;\n error?: string;\n}\n\n//////////\n// source: stripe-models.go\n\n/**\n * Subscription management\n */\nexport const SubscriptionCreate = \"billing.subscription.create\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const SubscriptionGet = \"billing.subscription.get\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const SubscriptionUpdate = \"billing.subscription.update\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const SubscriptionCancel = \"billing.subscription.cancel\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const SubscriptionList = \"billing.subscription.list\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const SubscriptionCheckout = \"billing.subscription.checkout\";\n/**\n * Payment links\n */\nexport const PaymentLinkCreate = \"billing.payment-link.create\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const PaymentLinkList = \"billing.payment-link.list\";\n/**\n * Customer portal\n */\nexport const PortalSessionCreate = \"billing.portal.create\";\n/**\n * Customer management\n */\nexport const CustomerCreate = \"billing.customer.create\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const CustomerGet = \"billing.customer.get\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const CustomerUpdate = \"billing.customer.update\";\n/**\n * Credits\n */\nexport const CreditsBalance = \"billing.credits.balance\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const CreditsPurchase = \"billing.credits.purchase\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const CreditsConsume = \"billing.credits.consume\";\n/**\n * Plans\n */\nexport const PlansGet = \"billing.plans.get\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const PlansGetAll = \"billing.plans.list\";\n/**\n * Usage alerts\n */\nexport const UsageAlertThreshold = \"billing.usage.alert\";\n/**\n * Webhooks (internal events)\n */\nexport const WebhookSubscriptionCreated = \"billing.webhook.subscription.created\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const WebhookSubscriptionUpdated = \"billing.webhook.subscription.updated\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const WebhookSubscriptionCanceled = \"billing.webhook.subscription.canceled\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const WebhookInvoicePaid = \"billing.webhook.invoice.paid\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const WebhookInvoiceFailed = \"billing.webhook.invoice.failed\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const WebhookPaymentSucceeded = \"billing.webhook.payment.succeeded\";\n/**\n * Affiliates\n */\nexport const AffiliateCreate = \"billing.affiliate.create\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const AffiliateGet = \"billing.affiliate.get\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const AffiliateList = \"billing.affiliate.list\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const AffiliateUpdate = \"billing.affiliate.update\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const AffiliateOnboard = \"billing.affiliate.onboard\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const AffiliateCommissions = \"billing.affiliate.commissions\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const AffiliateAnalytics = \"billing.affiliate.analytics\";\n/**\n * Analytics\n */\nexport const AnalyticsRevenue = \"billing.analytics.revenue\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const AnalyticsUsage = \"billing.analytics.usage\";\n/**\n * NATS Subjects for Stripe/Subscription operations\n */\nexport const AnalyticsChurn = \"billing.analytics.churn\";\n/**\n * Plan represents a subscription plan\n */\nexport interface Plan {\n id: string;\n stripeProductId?: string;\n stripePriceId?: string;\n name: string;\n tier: string;\n priceCents: number /* int64 */;\n currency: string;\n billingInterval: string;\n chatSessionsLimit: number /* int */;\n tokenAllowance: number /* int64 */;\n agentsLimit: number /* int */;\n usersLimit: number /* int */;\n knowledgeGraphMb: number /* int */;\n tokenOverageRateCents: number /* int */;\n sessionOverageRateCents: number /* int */;\n features: { [key: string]: any};\n isActive: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * OrganizationBilling represents an organization's billing info\n */\nexport interface OrganizationBilling {\n orgId: string;\n stripeCustomerId?: string;\n stripeSubscriptionId?: string;\n planId?: string;\n plan?: Plan;\n status: string;\n currentPeriodStart?: string /* RFC3339 */;\n currentPeriodEnd?: string /* RFC3339 */;\n trialStart?: string /* RFC3339 */;\n trialEnd?: string /* RFC3339 */;\n billingEmail?: string;\n billingName?: string;\n affiliateCode?: string;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * CreditBalance represents a credit balance entry\n */\nexport interface CreditBalance {\n id: string;\n orgId: string;\n creditType: string;\n amount: number /* int64 */;\n remaining: number /* int64 */;\n description?: string;\n expiresAt?: string /* RFC3339 */;\n stripePaymentId?: string;\n createdAt: string /* RFC3339 */;\n}\n/**\n * CreditPackage represents a purchasable credit package\n */\nexport interface CreditPackage {\n id: string;\n stripeProductId?: string;\n stripePriceId?: string;\n name: string;\n tokens: number /* int64 */;\n priceCents: number /* int64 */;\n currency: string;\n bonusTokens: number /* int64 */;\n isActive: boolean;\n createdAt: string /* RFC3339 */;\n}\n/**\n * UsagePeriod represents usage within a billing period\n */\nexport interface UsagePeriod {\n id: string;\n orgId: string;\n periodStart: string /* RFC3339 */;\n periodEnd: string /* RFC3339 */;\n tokensUsed: number /* int64 */;\n sessionsUsed: number /* int */;\n tokensAllowance: number /* int64 */;\n sessionsAllowance: number /* int */;\n tokensOverage: number /* int64 */;\n sessionsOverage: number /* int */;\n overageChargedCents: number /* int64 */;\n status: string;\n stripeUsageRecordId?: string;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * UsageSummary provides a summary of current usage\n */\nexport interface UsageSummary {\n orgId: string;\n planTier: string;\n billingPeriodStart: string /* RFC3339 */;\n billingPeriodEnd: string /* RFC3339 */;\n daysRemaining: number /* int */;\n /**\n * Token usage\n */\n tokensUsed: number /* int64 */;\n tokensAllowance: number /* int64 */;\n tokensPercentage: number /* float64 */;\n tokensRemaining: number /* int64 */;\n /**\n * Session usage\n */\n sessionsUsed: number /* int */;\n sessionsAllowance: number /* int */;\n sessionsPercentage: number /* float64 */;\n sessionsRemaining: number /* int */;\n /**\n * Credits\n */\n creditsRemaining: number /* int64 */;\n /**\n * Projected overage\n */\n projectedTokenOverage: number /* int64 */;\n projectedSessionOverage: number /* int */;\n projectedOverageCents: number /* int64 */;\n}\n/**\n * Affiliate represents an affiliate partner\n */\nexport interface Affiliate {\n id: string;\n name: string;\n email: string;\n stripeAccountId?: string;\n status: string;\n commissionRate: number /* float64 */;\n commissionType: string;\n referralCode: string;\n referralLink: string;\n totalEarningsCents: number /* int64 */;\n pendingPayoutCents: number /* int64 */;\n onboardingCompleted: boolean;\n onboardingCompletedAt?: string /* RFC3339 */;\n country?: string;\n phone?: string;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * AffiliateReferral represents a customer referred by an affiliate\n */\nexport interface AffiliateReferral {\n id: string;\n affiliateId: string;\n customerOrgId: string;\n stripeCustomerId?: string;\n status: string;\n firstPurchaseAt?: string /* RFC3339 */;\n totalRevenueCents: number /* int64 */;\n totalCommissionCents: number /* int64 */;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * AffiliateCommission represents a commission payment to an affiliate\n */\nexport interface AffiliateCommission {\n id: string;\n affiliateId: string;\n referralId: string;\n stripePaymentId?: string;\n stripeTransferId?: string;\n stripeInvoiceId?: string;\n grossAmountCents: number /* int64 */;\n commissionAmountCents: number /* int64 */;\n commissionRate: number /* float64 */;\n currency: string;\n status: string;\n createdAt: string /* RFC3339 */;\n paidAt?: string /* RFC3339 */;\n}\n/**\n * Payment represents a payment record\n */\nexport interface Payment {\n id: string;\n orgId: string;\n stripePaymentIntentId?: string;\n stripeInvoiceId?: string;\n stripeSubscriptionId?: string;\n amountCents: number /* int64 */;\n currency: string;\n status: string;\n paymentType: string;\n customerEmail?: string;\n paymentMethod?: string;\n description?: string;\n metadata?: { [key: string]: any};\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * CreatePaymentLinkRequest is the request to create a payment link\n */\nexport interface CreatePaymentLinkRequest {\n orgId: string;\n priceId: string;\n successUrl: string;\n cancelUrl: string;\n customerEmail?: string;\n affiliateCode?: string;\n quantity?: number /* int64 */;\n metadata?: { [key: string]: string};\n}\n/**\n * CreatePaymentLinkResponse is the response from creating a payment link\n */\nexport interface CreatePaymentLinkResponse {\n success: boolean;\n url?: string;\n paymentLinkId?: string;\n error?: string;\n}\n/**\n * CreatePortalSessionRequest is the request to create a billing portal session\n */\nexport interface CreatePortalSessionRequest {\n orgId: string;\n returnUrl: string;\n}\n/**\n * CreatePortalSessionResponse is the response from creating a portal session\n */\nexport interface CreatePortalSessionResponse {\n success: boolean;\n url?: string;\n error?: string;\n}\n/**\n * CreateCheckoutSessionRequest is the request to create a checkout session\n */\nexport interface CreateCheckoutSessionRequest {\n orgId: string;\n priceId: string;\n successUrl: string;\n cancelUrl: string;\n customerEmail?: string;\n affiliateCode?: string;\n trialDays?: number /* int64 */;\n metadata?: { [key: string]: string};\n}\n/**\n * CreateCheckoutSessionResponse is the response from creating a checkout session\n */\nexport interface CreateCheckoutSessionResponse {\n success: boolean;\n sessionId?: string;\n url?: string;\n error?: string;\n}\n/**\n * GetSubscriptionRequest is the request to get subscription info\n */\nexport interface GetSubscriptionRequest {\n orgId: string;\n}\n/**\n * GetSubscriptionResponse is the response with subscription info\n */\nexport interface GetSubscriptionResponse {\n success: boolean;\n subscription?: OrganizationBilling;\n usage?: UsageSummary;\n error?: string;\n}\n/**\n * CancelSubscriptionRequest is the request to cancel a subscription\n */\nexport interface CancelSubscriptionRequest {\n orgId: string;\n cancelAtEnd: boolean;\n reason?: string;\n}\n/**\n * CancelSubscriptionResponse is the response from canceling a subscription\n */\nexport interface CancelSubscriptionResponse {\n success: boolean;\n cancelAt?: string /* RFC3339 */;\n error?: string;\n}\n/**\n * GetCreditsRequest is the request to get credit balance\n */\nexport interface GetCreditsRequest {\n orgId: string;\n}\n/**\n * GetCreditsResponse is the response with credit balance\n */\nexport interface GetCreditsResponse {\n success: boolean;\n totalRemaining: number /* int64 */;\n balances?: (CreditBalance | undefined)[];\n error?: string;\n}\n/**\n * PurchaseCreditsRequest is the request to purchase credits\n */\nexport interface PurchaseCreditsRequest {\n orgId: string;\n packageId: string;\n successUrl: string;\n cancelUrl: string;\n}\n/**\n * PurchaseCreditsResponse is the response from purchasing credits\n */\nexport interface PurchaseCreditsResponse {\n success: boolean;\n sessionId?: string;\n url?: string;\n error?: string;\n}\n/**\n * ConsumeCreditsRequest is the request to consume credits\n */\nexport interface ConsumeCreditsRequest {\n orgId: string;\n amount: number /* int64 */;\n reason?: string;\n}\n/**\n * ConsumeCreditsResponse is the response from consuming credits\n */\nexport interface ConsumeCreditsResponse {\n success: boolean;\n consumed: number /* int64 */;\n remaining: number /* int64 */;\n error?: string;\n}\n/**\n * GetPlansRequest is the request to get available plans\n */\nexport interface GetPlansRequest {\n activeOnly: boolean;\n}\n/**\n * GetPlansResponse is the response with available plans\n */\nexport interface GetPlansResponse {\n success: boolean;\n plans?: (Plan | undefined)[];\n error?: string;\n}\n/**\n * CreateAffiliateRequest is the request to create an affiliate\n */\nexport interface CreateAffiliateRequest {\n name: string;\n email: string;\n country: string;\n commissionRate?: number /* float64 */;\n phone?: string;\n}\n/**\n * CreateAffiliateResponse is the response from creating an affiliate\n */\nexport interface CreateAffiliateResponse {\n success: boolean;\n affiliate?: Affiliate;\n error?: string;\n}\n/**\n * GetAffiliateRequest is the request to get an affiliate\n */\nexport interface GetAffiliateRequest {\n affiliateId?: string;\n referralCode?: string;\n}\n/**\n * GetAffiliateResponse is the response with affiliate info\n */\nexport interface GetAffiliateResponse {\n success: boolean;\n affiliate?: Affiliate;\n error?: string;\n}\n/**\n * ListAffiliatesRequest is the request to list affiliates\n */\nexport interface ListAffiliatesRequest {\n status?: string;\n page?: number /* int */;\n pageSize?: number /* int */;\n}\n/**\n * ListAffiliatesResponse is the response with affiliate list\n */\nexport interface ListAffiliatesResponse {\n success: boolean;\n affiliates?: (Affiliate | undefined)[];\n total: number /* int */;\n page: number /* int */;\n pageSize: number /* int */;\n error?: string;\n}\n/**\n * CreateAffiliateOnboardingLinkRequest is the request to create an onboarding link\n */\nexport interface CreateAffiliateOnboardingLinkRequest {\n affiliateId: string;\n refreshUrl: string;\n returnUrl: string;\n}\n/**\n * CreateAffiliateOnboardingLinkResponse is the response with onboarding link\n */\nexport interface CreateAffiliateOnboardingLinkResponse {\n success: boolean;\n url?: string;\n error?: string;\n}\n/**\n * GetAffiliateCommissionsRequest is the request to get affiliate commissions\n */\nexport interface GetAffiliateCommissionsRequest {\n affiliateId: string;\n startDate?: string /* RFC3339 */;\n endDate?: string /* RFC3339 */;\n status?: string;\n page?: number /* int */;\n pageSize?: number /* int */;\n}\n/**\n * GetAffiliateCommissionsResponse is the response with affiliate commissions\n */\nexport interface GetAffiliateCommissionsResponse {\n success: boolean;\n commissions?: (AffiliateCommission | undefined)[];\n total: number /* int */;\n totalAmount: number /* int64 */;\n page: number /* int */;\n pageSize: number /* int */;\n error?: string;\n}\n/**\n * GetAffiliateAnalyticsRequest is the request to get affiliate analytics\n */\nexport interface GetAffiliateAnalyticsRequest {\n affiliateId: string;\n period?: string; // 'day', 'week', 'month', 'year'\n startDate?: string /* RFC3339 */;\n endDate?: string /* RFC3339 */;\n}\n/**\n * AffiliateAnalytics represents affiliate analytics data\n */\nexport interface AffiliateAnalytics {\n affiliateId: string;\n period: string;\n totalReferrals: number /* int */;\n activeReferrals: number /* int */;\n churnedReferrals: number /* int */;\n totalRevenueCents: number /* int64 */;\n totalCommissionsCents: number /* int64 */;\n conversionRate: number /* float64 */;\n avgCustomerLtvCents: number /* int64 */;\n}\n/**\n * GetAffiliateAnalyticsResponse is the response with affiliate analytics\n */\nexport interface GetAffiliateAnalyticsResponse {\n success: boolean;\n analytics?: AffiliateAnalytics;\n error?: string;\n}\n/**\n * RevenueAnalyticsRequest is the request to get revenue analytics\n */\nexport interface RevenueAnalyticsRequest {\n period?: string; // 'day', 'week', 'month', 'year'\n startDate?: string /* RFC3339 */;\n endDate?: string /* RFC3339 */;\n}\n/**\n * RevenueAnalytics represents revenue analytics data\n */\nexport interface RevenueAnalytics {\n period: string;\n mrrCents: number /* int64 */;\n arrCents: number /* int64 */;\n newMrrCents: number /* int64 */;\n churnedMrrCents: number /* int64 */;\n expansionMrrCents: number /* int64 */;\n contractionMrrCents: number /* int64 */;\n netMrrCents: number /* int64 */;\n totalCustomers: number /* int */;\n newCustomers: number /* int */;\n churnedCustomers: number /* int */;\n churnRate: number /* float64 */;\n}\n/**\n * RevenueAnalyticsResponse is the response with revenue analytics\n */\nexport interface RevenueAnalyticsResponse {\n success: boolean;\n analytics?: RevenueAnalytics;\n error?: string;\n}\n/**\n * Webhook event types\n */\nexport interface StripeWebhookEvent {\n type: string;\n data: { [key: string]: any};\n eventId: string;\n createdAt: string /* RFC3339 */;\n}\n\n//////////\n// source: subjects.go\n\n/**\n * Base subject prefix\n */\nexport const BillingSubjectPrefix = \"billing\";\n/**\n * Event recording subjects\n */\nexport const BillingEventsRecord = \"billing.events.record\";\n/**\n * Usage reporting subjects\n */\nexport const BillingUsageReport = \"billing.usage.report\";\nexport const BillingUsageCurrent = \"billing.usage.current\";\nexport const BillingUsageHistory = \"billing.usage.history\";\nexport const BillingUsageCostBreakdown = \"billing.usage.breakdown\";\nexport const BillingUsageTopCenters = \"billing.usage.top_centers\";\n/**\n * Invoice subjects\n */\nexport const BillingInvoiceGet = \"billing.invoice.get\";\nexport const BillingInvoiceCreate = \"billing.invoice.create\";\nexport const BillingInvoiceProcess = \"billing.invoice.process\";\n/**\n * Billing period subjects\n */\nexport const BillingPeriodCreate = \"billing.period.create\";\nexport const BillingPeriodClose = \"billing.period.close\";\nexport const BillingPeriodProcess = \"billing.period.process\";\n/**\n * Billing rules subjects\n */\nexport const BillingRulesGet = \"billing.rules.get\";\nexport const BillingRulesCreate = \"billing.rules.create\";\nexport const BillingRulesUpdate = \"billing.rules.update\";\nexport const BillingRulesDelete = \"billing.rules.delete\";\n/**\n * Organization provisioning\n */\nexport const BillingOrgProvision = \"billing.org.provision\";\n/**\n * Health check\n */\nexport const BillingHealthCheck = \"billing.health.check\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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3B,IAAM,uBAAuB;AAI7B,IAAM,kBAAkB;AACxB,IAAM,qBAAqB;AAC3B,IAAM,qBAAqB;AAC3B,IAAM,qBAAqB;AAI3B,IAAM,sBAAsB;AAI5B,IAAM,qBAAqB;","names":[]}
1
+ {"version":3,"sources":["../../models/index.ts","../../models/types.ts","../../models/user-status.ts","../../models/user-models.ts"],"sourcesContent":["// Core shared types\nexport * from \"./types\";\nexport * from \"./user-status\";\nexport * from \"./user-models\";\n\n// Note: admin-models and billing-models have been migrated to @elqnt/admin/models\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: product-models.go\n\nexport type ProductName = string;\nexport const ProductNameShopAssist: ProductName = \"shop-assist\";\nexport const ProductNamePublicSector: ProductName = \"public-sector\";\nexport const ProductNameHub: ProductName = \"hub\";\nexport const ProductNameFinance: ProductName = \"finance\";\nexport const ProductNameLegal: ProductName = \"legal\";\nexport const ProductNameRealEstate: ProductName = \"real-estate\";\nexport const ProductNameQuickMind: ProductName = \"quick-mind\";\nexport const ProductNameDocBrain: ProductName = \"doc-brain\";\nexport const ProductNameDoneProjects: ProductName = \"done-projects\";\n\nexport const ProductNames = {\n \"shop-assist\": { value: 'shop-assist', label: 'Shop Assist' },\n \"public-sector\": { value: 'public-sector', label: 'Public Sector' },\n \"hub\": { value: 'hub', label: 'Hub' },\n \"finance\": { value: 'finance', label: 'Finance' },\n \"legal\": { value: 'legal', label: 'Legal' },\n \"real-estate\": { value: 'real-estate', label: 'Real Estate' },\n \"quick-mind\": { value: 'quick-mind', label: 'Quick Mind' },\n \"doc-brain\": { value: 'doc-brain', label: 'Doc Brain' },\n \"done-projects\": { value: 'done-projects', label: 'Done Projects' },\n} as const;\nexport type ProductNameTS = keyof typeof ProductNames;\nexport type ProductNameOptionTS = typeof ProductNames[ProductNameTS];\n\n\n//////////\n// source: response.go\n\n/**\n * APIResponse is the unified response wrapper for all HTTP endpoints.\n * Either Data or Error is present, never both (mutually exclusive).\n * This type is generated to TypeScript via tygo for frontend consumption.\n */\nexport interface APIResponse {\n data?: any;\n error?: APIError;\n metadata?: ResponseMetadata;\n}\n/**\n * APIError contains structured error information sent to clients.\n * Code maps to syserrors error codes (e.g., \"VALIDATION_ERROR\", \"NOT_FOUND\").\n */\nexport interface APIError {\n code: string;\n message: string;\n details?: { [key: string]: any};\n}\n/**\n * ResponseMetadata contains response metadata for both HTTP and NATS responses.\n * For HTTP: typically only RequestID and Timestamp are used (success indicated by HTTP status)\n * For NATS: Success, Message, and Error fields are used for RPC-style communication\n */\nexport interface ResponseMetadata {\n success: boolean;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n requestId?: string;\n}\n\n//////////\n// source: schema.go\n\n/**\n * Base JSON Schema type for reuse\n */\nexport interface JSONSchema {\n /**\n * Core Schema Metadata\n */\n type: string;\n title?: string;\n description?: string;\n default?: any;\n /**\n * Schema Composition\n */\n properties?: { [key: string]: JSONSchema};\n items?: JSONSchema; // For arrays\n required?: string[];\n '$ref'?: string;\n /**\n * Validation\n */\n minLength?: number /* int */;\n maxLength?: number /* int */;\n minimum?: number /* float64 */;\n maximum?: number /* float64 */;\n pattern?: string;\n format?: string; // email, date-time, etc\n enum?: any[];\n /**\n * Extended Properties\n */\n 'x-enumLabels'?: string[];\n 'x-enumColors'?: string[];\n 'x-enumDescriptions'?: string[];\n 'x-refDisplayFields'?: string[];\n 'x-refSearchFields'?: string[];\n 'x-refMultiple'?: boolean;\n 'x-searchable'?: boolean;\n 'x-unique'?: boolean;\n 'x-displayOrder'?: number /* int */;\n}\n\n//////////\n// source: service-types.go\n\n/**\n * ServiceEventMetadata contains metadata for service events\n */\nexport interface ServiceEventMetadata {\n id: string;\n timestamp: any /* time.Time */;\n version: string;\n source: string;\n}\n/**\n * ServiceEvent represents an event published by a service\n */\nexport interface ServiceEvent {\n metadata: ServiceEventMetadata;\n data: any /* json.RawMessage */;\n}\n\n//////////\n// source: types.go\n\n/**\n * todo: remove this\n */\nexport interface Variable {\n type: DataType;\n value: any;\n defaultValue?: any;\n validation?: VariableValidation;\n scope: VariableScope;\n reference?: VariableReference;\n description?: string;\n required: boolean;\n}\nexport type DataType = string;\nexport const DataTypeString: DataType = \"string\";\nexport const DataTypeInt: DataType = \"int\";\nexport const DataTypeFloat: DataType = \"float\";\nexport const DataTypeBoolean: DataType = \"boolean\";\nexport const DataTypeDate: DataType = \"date\";\nexport const DataTypeJSON: DataType = \"json\";\nexport const DataTypeArray: DataType = \"array\";\nexport const DataTypeInputFields: DataType = \"inputFields\";\nexport const DataTypeFile: DataType = \"file\";\nexport const DataTypeObjectList: DataType = \"objectList\";\nexport type VariableScope = string;\nexport const VariableScopeGlobal: VariableScope = \"global\";\nexport const VariableScopeNode: VariableScope = \"node\";\nexport const VariableScopeEdge: VariableScope = \"edge\";\nexport interface VariableValidation {\n minLength?: number /* int */;\n maxLength?: number /* int */;\n pattern?: string;\n min?: number /* float64 */;\n max?: number /* float64 */;\n options?: string[];\n}\nexport interface VariableReference {\n nodeId?: string;\n fieldPath: string; // dot notation for nested fields\n}\n","// User status types - shared between auth and chat packages\n// These are manually maintained to avoid circular dependencies\n\nimport { ResponseMetadata } from \"./types\";\n\nexport type UserStatusTS = \"online\" | \"away\" | \"busy\" | \"offline\";\n\nexport interface UpdateUserStatusRequest {\n orgId: string;\n userId: string;\n status: UserStatusTS;\n}\n\nexport interface UpdateUserStatusResponse {\n metadata: ResponseMetadata;\n}\n\nexport const UpdateUserStatusSubject = \"chat.user.status.update\";\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: user.go\n\nexport type WidgetType = string;\nexport const WidgetTypeCalendar: WidgetType = \"calendar\";\nexport const WidgetTypeActivities: WidgetType = \"activities\";\nexport const WidgetTypeEmail: WidgetType = \"email\";\nexport const WidgetTypeTasks: WidgetType = \"tasks\";\nexport const WidgetTypeNotes: WidgetType = \"notes\";\nexport const WidgetTypeFiles: WidgetType = \"files\";\nexport const WidgetTypeContacts: WidgetType = \"contacts\";\nexport const WidgetTypeAccounts: WidgetType = \"accounts\";\nexport const WidgetTypeLeads: WidgetType = \"leads\";\nexport const WidgetTypeOpportunities: WidgetType = \"opportunities\";\nexport const WidgetTypeChart: WidgetType = \"chart\";\nexport const WidgetTypeOrders: WidgetType = \"orders\";\nexport interface Widget {\n id?: string /* ObjectID */;\n userId: string;\n title: string;\n subTitle?: string;\n type: WidgetType;\n chartSettings?: ChartSettings;\n slotIndex: number /* int */;\n}\nexport type ChartType = string;\nexport const ChartTypeBar: ChartType = \"Bar chart\";\nexport const ChartTypeLine: ChartType = \"Line chart\";\nexport const ChartTypePie: ChartType = \"Pie chart\";\nexport const ChartTypeDoughnut: ChartType = \"Doughnut chart\";\nexport const ChartTypeMetic: ChartType = \"Metric\";\nexport type AggregateType = string;\nexport const AggregateTypeSum: AggregateType = \"Sum\";\nexport const AggregateTypeCount: AggregateType = \"Count\";\nexport const AggregateTypeAverage: AggregateType = \"Average\";\nexport const AggregateTypeMin: AggregateType = \"Min\";\nexport const AggregateTypeMax: AggregateType = \"Max\";\nexport const AggregateTypeDistinct: AggregateType = \"Distinct\";\nexport interface MetricResult {\n aggregateType: AggregateType;\n value: any;\n compareAggregateType: AggregateType;\n compareValue: any;\n}\nexport interface DateValue {\n date: string;\n value: number /* float64 */;\n}\nexport interface ChartSettings {\n chartType: ChartType;\n aggregateType: AggregateType;\n tableName: string;\n groupByFieldName: string;\n valueFieldName: string;\n filterFieldName: string;\n filterFieldValue: string;\n enableCompare: boolean;\n compareTitle: string;\n compareAggregateType: AggregateType;\n compareTableName: string;\n compareValueFieldName: string;\n compareFilterFieldName: string;\n compareFilterFieldValue: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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ACvC,IAAM,kBAA8B;AACpC,IAAM,0BAAsC;AAC5C,IAAM,kBAA8B;AACpC,IAAM,mBAA+B;AAWrC,IAAM,eAA0B;AAChC,IAAM,gBAA2B;AACjC,IAAM,eAA0B;AAChC,IAAM,oBAA+B;AACrC,IAAM,iBAA4B;AAElC,IAAM,mBAAkC;AACxC,IAAM,qBAAoC;AAC1C,IAAM,uBAAsC;AAC5C,IAAM,mBAAkC;AACxC,IAAM,mBAAkC;AACxC,IAAM,wBAAuC;","names":[]}
@@ -60,281 +60,18 @@ var AggregateTypeAverage = "Average";
60
60
  var AggregateTypeMin = "Min";
61
61
  var AggregateTypeMax = "Max";
62
62
  var AggregateTypeDistinct = "Distinct";
63
-
64
- // models/admin-models.ts
65
- var OrgStatusActive = "active";
66
- var OrgStatusSuspended = "suspended";
67
- var OrgStatuses = {
68
- active: { value: "active", label: "Active" },
69
- suspended: { value: "suspended", label: "Suspended" }
70
- };
71
- var OrgTypeSelfServe = "self-serve";
72
- var OrgTypeEnterprise = "enterprise";
73
- var OrgTypes = {
74
- "self-serve": { value: "self-serve", label: "Self-Serve" },
75
- enterprise: { value: "enterprise", label: "Enterprise" }
76
- };
77
- var OrgSizeSolo = "solo";
78
- var OrgSizeSmall = "small";
79
- var OrgSizeMedium = "medium";
80
- var OrgSizeLarge = "large";
81
- var OrgSizeEnterprise = "enterprise";
82
- var OrgSizes = {
83
- solo: { value: "solo", label: "Just me" },
84
- small: { value: "small", label: "2-10" },
85
- medium: { value: "medium", label: "11-50" },
86
- large: { value: "large", label: "51-200" },
87
- enterprise: { value: "enterprise", label: "200+" }
88
- };
89
- var OnboardingStatusPending = "pending";
90
- var OnboardingStatusInProgress = "in_progress";
91
- var OnboardingStatusCompleted = "completed";
92
- var OnboardingStatusSkipped = "skipped";
93
- var OnboardingStatusLegacy = "legacy";
94
- var OnboardingStatuses = {
95
- pending: { value: "pending", label: "Pending" },
96
- in_progress: { value: "in_progress", label: "In Progress" },
97
- completed: { value: "completed", label: "Completed" },
98
- skipped: { value: "skipped", label: "Skipped" },
99
- legacy: { value: "legacy", label: "Legacy" }
100
- };
101
- var ProvisioningStatusPending = "pending";
102
- var ProvisioningStatusRunning = "running";
103
- var ProvisioningStatusCompleted = "completed";
104
- var ProvisioningStatusFailed = "failed";
105
- var ProvisioningStatuses = {
106
- pending: { value: "pending", label: "Pending" },
107
- running: { value: "running", label: "Running" },
108
- completed: { value: "completed", label: "Completed" },
109
- failed: { value: "failed", label: "Failed" }
110
- };
111
- var OrgSubscriptionStatusTrialing = "trialing";
112
- var OrgSubscriptionStatusActive = "active";
113
- var OrgSubscriptionStatusPastDue = "past_due";
114
- var OrgSubscriptionStatusCancelled = "cancelled";
115
- var OrgSubscriptionStatusUnpaid = "unpaid";
116
- var OrgSubscriptionStatuses = {
117
- trialing: { value: "trialing", label: "Trialing" },
118
- active: { value: "active", label: "Active" },
119
- past_due: { value: "past_due", label: "Past Due" },
120
- cancelled: { value: "cancelled", label: "Cancelled" },
121
- unpaid: { value: "unpaid", label: "Unpaid" }
122
- };
123
- var ThemeOptions = {
124
- system: { value: "system", label: "System" },
125
- light: { value: "light", label: "Light" },
126
- dark: { value: "dark", label: "Dark" }
127
- };
128
- var UserSourceSignup = "signup";
129
- var UserSourceInvite = "invite";
130
- var UserSourceSSO = "sso";
131
- var UserSourceAPI = "api";
132
- var UserSources = {
133
- signup: { value: "signup", label: "Signup" },
134
- invite: { value: "invite", label: "Invite" },
135
- sso: { value: "sso", label: "SSO" },
136
- api: { value: "api", label: "API" }
137
- };
138
- var InviteStatusPending = "pending";
139
- var InviteStatusAccepted = "accepted";
140
- var InviteStatusExpired = "expired";
141
- var InviteStatusRevoked = "revoked";
142
- var InviteStatuses = {
143
- pending: { value: "pending", label: "Pending" },
144
- accepted: { value: "accepted", label: "Accepted" },
145
- expired: { value: "expired", label: "Expired" },
146
- revoked: { value: "revoked", label: "Revoked" }
147
- };
148
- var SubscriptionPlatformStripe = "stripe";
149
- var SubscriptionPlatformCustom = "custom";
150
- var SystemAppAdmin = "admin";
151
- var SystemAppCRM = "crm";
152
- var SystemAppHelpdesk = "helpdesk";
153
- var SystemAppMarketing = "marketing";
154
- var SystemAppWorkflow = "workflow";
155
- var SystemAppAnalytics = "analytics";
156
- var SystemAppKnowledgeGraph = "knowledge-graph";
157
- var SystemAppDocumentProcessor = "document-processor";
158
- var SystemApps = {
159
- admin: { value: "admin", label: "Admin" },
160
- crm: { value: "crm", label: "CRM" },
161
- helpdesk: { value: "helpdesk", label: "Helpdesk" },
162
- marketing: { value: "marketing", label: "Marketing" },
163
- workflow: { value: "workflow", label: "Workflow" },
164
- analytics: { value: "analytics", label: "Analytics" },
165
- "knowledge-graph": { value: "knowledge-graph", label: "Knowledge Graph" },
166
- "document-processor": { value: "document-processor", label: "Document Processor" }
167
- };
168
- var AdminOrgCreate = "admin.orgs.create";
169
- var AdminOrgList = "admin.orgs.list";
170
- var AdminOrgListByMetadata = "admin.orgs.listByMetadata";
171
- var AdminOrgGet = "admin.orgs.get";
172
- var AdminOrgGetInfo = "admin.orgs.getInfo";
173
- var AdminOrgGetByDomain = "admin.orgs.getByDomain";
174
- var AdminOrgUpdate = "admin.orgs.update";
175
- var AdminOrgDelete = "admin.orgs.delete";
176
- var AdminOrgCreated = "system.admin.org.created";
177
- var AdminOrgRolesGet = "admin.orgRoles.get";
178
- var AdminOrgRolesCreate = "admin.orgRoles.create";
179
- var AdminOrgRolesUpdate = "admin.orgRoles.update";
180
- var AdminOrgRolesDelete = "admin.orgRoles.delete";
181
- var AdminUsersGet = "admin.users.get";
182
- var AdminUsersGetForOrg = "admin.users.getUsersForOrg";
183
- var AdminUsersGetOne = "admin.users.getOne";
184
- var AdminUsersGetOneByEmail = "admin.users.getOneByEmail";
185
- var AdminUsersCreate = "admin.users.create";
186
- var AdminUsersUpdate = "admin.users.update";
187
- var AdminUsersDelete = "admin.users.delete";
188
- var AdminUsersUpdateSettings = "admin.users.updateSettings";
189
- var AdminUsersGetSettings = "admin.users.getSettings";
190
- var AdminTeamsCreate = "admin.teams.create";
191
- var AdminTeamsGetOne = "admin.teams.getOne";
192
- var AdminTeamsGetForOrg = "admin.teams.getTeamsForOrg";
193
- var AdminTeamsUpdateOnboarding = "admin.teams.updateOnboardingData";
194
-
195
- // models/billing-models.ts
196
- var BillingRecordEvent = "billing.events.record";
197
- var BillingGetUsageReport = "billing.usage.report";
198
- var BillingGetInvoice = "billing.invoice.get";
199
- var BillingProcessBillingPeriod = "billing.period.process";
200
- var UsageGetCurrentUsage = "billing.usage.current";
201
- var UsageGetUsageHistory = "billing.usage.history";
202
- var UsageGetCostBreakdown = "billing.usage.breakdown";
203
- var UsageGetTopCostCenters = "billing.usage.top_centers";
204
- var RulesGetBillingRules = "billing.rules.get";
205
- var RulesCreateBillingRule = "billing.rules.create";
206
- var RulesUpdateBillingRule = "billing.rules.update";
207
- var RulesDeleteBillingRule = "billing.rules.delete";
208
- var SubscriptionCreate = "billing.subscription.create";
209
- var SubscriptionGet = "billing.subscription.get";
210
- var SubscriptionUpdate = "billing.subscription.update";
211
- var SubscriptionCancel = "billing.subscription.cancel";
212
- var SubscriptionList = "billing.subscription.list";
213
- var SubscriptionCheckout = "billing.subscription.checkout";
214
- var PaymentLinkCreate = "billing.payment-link.create";
215
- var PaymentLinkList = "billing.payment-link.list";
216
- var PortalSessionCreate = "billing.portal.create";
217
- var CustomerCreate = "billing.customer.create";
218
- var CustomerGet = "billing.customer.get";
219
- var CustomerUpdate = "billing.customer.update";
220
- var CreditsBalance = "billing.credits.balance";
221
- var CreditsPurchase = "billing.credits.purchase";
222
- var CreditsConsume = "billing.credits.consume";
223
- var PlansGet = "billing.plans.get";
224
- var PlansGetAll = "billing.plans.list";
225
- var UsageAlertThreshold = "billing.usage.alert";
226
- var WebhookSubscriptionCreated = "billing.webhook.subscription.created";
227
- var WebhookSubscriptionUpdated = "billing.webhook.subscription.updated";
228
- var WebhookSubscriptionCanceled = "billing.webhook.subscription.canceled";
229
- var WebhookInvoicePaid = "billing.webhook.invoice.paid";
230
- var WebhookInvoiceFailed = "billing.webhook.invoice.failed";
231
- var WebhookPaymentSucceeded = "billing.webhook.payment.succeeded";
232
- var AffiliateCreate = "billing.affiliate.create";
233
- var AffiliateGet = "billing.affiliate.get";
234
- var AffiliateList = "billing.affiliate.list";
235
- var AffiliateUpdate = "billing.affiliate.update";
236
- var AffiliateOnboard = "billing.affiliate.onboard";
237
- var AffiliateCommissions = "billing.affiliate.commissions";
238
- var AffiliateAnalytics = "billing.affiliate.analytics";
239
- var AnalyticsRevenue = "billing.analytics.revenue";
240
- var AnalyticsUsage = "billing.analytics.usage";
241
- var AnalyticsChurn = "billing.analytics.churn";
242
- var BillingSubjectPrefix = "billing";
243
- var BillingEventsRecord = "billing.events.record";
244
- var BillingUsageReport = "billing.usage.report";
245
- var BillingUsageCurrent = "billing.usage.current";
246
- var BillingUsageHistory = "billing.usage.history";
247
- var BillingUsageCostBreakdown = "billing.usage.breakdown";
248
- var BillingUsageTopCenters = "billing.usage.top_centers";
249
- var BillingInvoiceGet = "billing.invoice.get";
250
- var BillingInvoiceCreate = "billing.invoice.create";
251
- var BillingInvoiceProcess = "billing.invoice.process";
252
- var BillingPeriodCreate = "billing.period.create";
253
- var BillingPeriodClose = "billing.period.close";
254
- var BillingPeriodProcess = "billing.period.process";
255
- var BillingRulesGet = "billing.rules.get";
256
- var BillingRulesCreate = "billing.rules.create";
257
- var BillingRulesUpdate = "billing.rules.update";
258
- var BillingRulesDelete = "billing.rules.delete";
259
- var BillingOrgProvision = "billing.org.provision";
260
- var BillingHealthCheck = "billing.health.check";
261
63
  export {
262
- AdminOrgCreate,
263
- AdminOrgCreated,
264
- AdminOrgDelete,
265
- AdminOrgGet,
266
- AdminOrgGetByDomain,
267
- AdminOrgGetInfo,
268
- AdminOrgList,
269
- AdminOrgListByMetadata,
270
- AdminOrgRolesCreate,
271
- AdminOrgRolesDelete,
272
- AdminOrgRolesGet,
273
- AdminOrgRolesUpdate,
274
- AdminOrgUpdate,
275
- AdminTeamsCreate,
276
- AdminTeamsGetForOrg,
277
- AdminTeamsGetOne,
278
- AdminTeamsUpdateOnboarding,
279
- AdminUsersCreate,
280
- AdminUsersDelete,
281
- AdminUsersGet,
282
- AdminUsersGetForOrg,
283
- AdminUsersGetOne,
284
- AdminUsersGetOneByEmail,
285
- AdminUsersGetSettings,
286
- AdminUsersUpdate,
287
- AdminUsersUpdateSettings,
288
- AffiliateAnalytics,
289
- AffiliateCommissions,
290
- AffiliateCreate,
291
- AffiliateGet,
292
- AffiliateList,
293
- AffiliateOnboard,
294
- AffiliateUpdate,
295
64
  AggregateTypeAverage,
296
65
  AggregateTypeCount,
297
66
  AggregateTypeDistinct,
298
67
  AggregateTypeMax,
299
68
  AggregateTypeMin,
300
69
  AggregateTypeSum,
301
- AnalyticsChurn,
302
- AnalyticsRevenue,
303
- AnalyticsUsage,
304
- BillingEventsRecord,
305
- BillingGetInvoice,
306
- BillingGetUsageReport,
307
- BillingHealthCheck,
308
- BillingInvoiceCreate,
309
- BillingInvoiceGet,
310
- BillingInvoiceProcess,
311
- BillingOrgProvision,
312
- BillingPeriodClose,
313
- BillingPeriodCreate,
314
- BillingPeriodProcess,
315
- BillingProcessBillingPeriod,
316
- BillingRecordEvent,
317
- BillingRulesCreate,
318
- BillingRulesDelete,
319
- BillingRulesGet,
320
- BillingRulesUpdate,
321
- BillingSubjectPrefix,
322
- BillingUsageCostBreakdown,
323
- BillingUsageCurrent,
324
- BillingUsageHistory,
325
- BillingUsageReport,
326
- BillingUsageTopCenters,
327
70
  ChartTypeBar,
328
71
  ChartTypeDoughnut,
329
72
  ChartTypeLine,
330
73
  ChartTypeMetic,
331
74
  ChartTypePie,
332
- CreditsBalance,
333
- CreditsConsume,
334
- CreditsPurchase,
335
- CustomerCreate,
336
- CustomerGet,
337
- CustomerUpdate,
338
75
  DataTypeArray,
339
76
  DataTypeBoolean,
340
77
  DataTypeDate,
@@ -345,40 +82,6 @@ export {
345
82
  DataTypeJSON,
346
83
  DataTypeObjectList,
347
84
  DataTypeString,
348
- InviteStatusAccepted,
349
- InviteStatusExpired,
350
- InviteStatusPending,
351
- InviteStatusRevoked,
352
- InviteStatuses,
353
- OnboardingStatusCompleted,
354
- OnboardingStatusInProgress,
355
- OnboardingStatusLegacy,
356
- OnboardingStatusPending,
357
- OnboardingStatusSkipped,
358
- OnboardingStatuses,
359
- OrgSizeEnterprise,
360
- OrgSizeLarge,
361
- OrgSizeMedium,
362
- OrgSizeSmall,
363
- OrgSizeSolo,
364
- OrgSizes,
365
- OrgStatusActive,
366
- OrgStatusSuspended,
367
- OrgStatuses,
368
- OrgSubscriptionStatusActive,
369
- OrgSubscriptionStatusCancelled,
370
- OrgSubscriptionStatusPastDue,
371
- OrgSubscriptionStatusTrialing,
372
- OrgSubscriptionStatusUnpaid,
373
- OrgSubscriptionStatuses,
374
- OrgTypeEnterprise,
375
- OrgTypeSelfServe,
376
- OrgTypes,
377
- PaymentLinkCreate,
378
- PaymentLinkList,
379
- PlansGet,
380
- PlansGetAll,
381
- PortalSessionCreate,
382
85
  ProductNameDocBrain,
383
86
  ProductNameDoneProjects,
384
87
  ProductNameFinance,
@@ -389,53 +92,10 @@ export {
389
92
  ProductNameRealEstate,
390
93
  ProductNameShopAssist,
391
94
  ProductNames,
392
- ProvisioningStatusCompleted,
393
- ProvisioningStatusFailed,
394
- ProvisioningStatusPending,
395
- ProvisioningStatusRunning,
396
- ProvisioningStatuses,
397
- RulesCreateBillingRule,
398
- RulesDeleteBillingRule,
399
- RulesGetBillingRules,
400
- RulesUpdateBillingRule,
401
- SubscriptionCancel,
402
- SubscriptionCheckout,
403
- SubscriptionCreate,
404
- SubscriptionGet,
405
- SubscriptionList,
406
- SubscriptionPlatformCustom,
407
- SubscriptionPlatformStripe,
408
- SubscriptionUpdate,
409
- SystemAppAdmin,
410
- SystemAppAnalytics,
411
- SystemAppCRM,
412
- SystemAppDocumentProcessor,
413
- SystemAppHelpdesk,
414
- SystemAppKnowledgeGraph,
415
- SystemAppMarketing,
416
- SystemAppWorkflow,
417
- SystemApps,
418
- ThemeOptions,
419
95
  UpdateUserStatusSubject,
420
- UsageAlertThreshold,
421
- UsageGetCostBreakdown,
422
- UsageGetCurrentUsage,
423
- UsageGetTopCostCenters,
424
- UsageGetUsageHistory,
425
- UserSourceAPI,
426
- UserSourceInvite,
427
- UserSourceSSO,
428
- UserSourceSignup,
429
- UserSources,
430
96
  VariableScopeEdge,
431
97
  VariableScopeGlobal,
432
98
  VariableScopeNode,
433
- WebhookInvoiceFailed,
434
- WebhookInvoicePaid,
435
- WebhookPaymentSucceeded,
436
- WebhookSubscriptionCanceled,
437
- WebhookSubscriptionCreated,
438
- WebhookSubscriptionUpdated,
439
99
  WidgetTypeAccounts,
440
100
  WidgetTypeActivities,
441
101
  WidgetTypeCalendar,