@elevasis/ui 1.3.7 → 1.4.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.
@@ -2483,6 +2483,9 @@ type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables
2483
2483
  } ? R : never : never;
2484
2484
 
2485
2485
  type SupabaseUserProfile = Tables<'users'>;
2486
+ type SupabaseApiKey = Tables<'api_keys'>;
2487
+ /** API response type for API key list items (omits sensitive key_hash) */
2488
+ type ApiKeyListItem = Omit<SupabaseApiKey, 'key_hash'>;
2486
2489
 
2487
2490
  /**
2488
2491
  * Origin resource type - where an execution/task originated from.
@@ -2847,6 +2850,27 @@ interface APIExecutionListResponse {
2847
2850
  executions: APIExecutionSummary[];
2848
2851
  }
2849
2852
 
2853
+ /**
2854
+ * Deployment types — browser-safe
2855
+ *
2856
+ * Canonical API response types for the deployment resource.
2857
+ * The API's transformRow converts snake_case DB columns to these camelCase fields.
2858
+ */
2859
+ type DeploymentStatus = 'deploying' | 'active' | 'failed' | 'rolled_back' | 'stopped';
2860
+ interface Deployment {
2861
+ id: string;
2862
+ organizationId: string;
2863
+ status: DeploymentStatus;
2864
+ sdkVersion: string;
2865
+ deploymentVersion: string | null;
2866
+ port: number | null;
2867
+ pid: number | null;
2868
+ tarballPath: string | null;
2869
+ errorMessage: string | null;
2870
+ createdAt: string;
2871
+ updatedAt: string;
2872
+ }
2873
+
2850
2874
  /**
2851
2875
  * Workflow-specific logging types and utilities
2852
2876
  */
@@ -3797,4 +3821,22 @@ declare const UpdateWebhookEndpointRequestSchema = z
3797
3821
 
3798
3822
  type UpdateWebhookEndpointRequest = z.infer<typeof UpdateWebhookEndpointRequestSchema>
3799
3823
 
3800
- export type { AIResourceDefinition, APIExecutionDetail, APIExecutionListResponse, Activity, ActivityType, ChatMessage, CheckpointListResponse, CostByModelResponse, CostSummaryResponse, CostTrendsResponse, CreateWebhookEndpointRequest, DashboardMetrics, ErrorAnalysisMetrics, ErrorDetailFull, ErrorDetailResponse, ErrorTrend, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogMessage, ExecutionStatus$1 as ExecutionStatus, ExecutionSummary, MembershipFeatureConfig, MembershipWithDetails, MessageEvent, NotificationDTO, OrgFeatureConfig, PatchTaskParams, ResourceDefinition, ResourceStatus, ResourceType, SessionDTO, SessionTokenUsage, SupabaseUserProfile, Task, TaskSchedule, TaskScheduleConfig, TaskStatus, TimeRange, UpdateWebhookEndpointRequest, UserConfig, WebhookEndpoint };
3824
+ /**
3825
+ * GET /api/credentials - List credentials
3826
+ */
3827
+ declare const ListCredentialsResponseSchema = z.object({
3828
+ credentials: z.array(
3829
+ z.object({
3830
+ id: UuidSchema,
3831
+ name: z.string(),
3832
+ type: z.string(),
3833
+ provider: z.string().nullable(), // OAuth provider or null for non-OAuth
3834
+ createdAt: z.string().datetime()
3835
+ })
3836
+ )
3837
+ })
3838
+
3839
+ /** API response type for a single credential list item */
3840
+ type CredentialListItem = z.infer<typeof ListCredentialsResponseSchema>['credentials'][number]
3841
+
3842
+ export type { AIResourceDefinition, APIExecutionDetail, APIExecutionListResponse, Activity, ActivityType, ApiKeyListItem, ChatMessage, CheckpointListResponse, CostByModelResponse, CostSummaryResponse, CostTrendsResponse, CreateWebhookEndpointRequest, CredentialListItem, DashboardMetrics, Deployment, DeploymentStatus, ErrorAnalysisMetrics, ErrorDetailFull, ErrorDetailResponse, ErrorTrend, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogMessage, ExecutionStatus$1 as ExecutionStatus, ExecutionSummary, MembershipFeatureConfig, MembershipWithDetails, MessageEvent, NotificationDTO, OrgFeatureConfig, PatchTaskParams, ResourceDefinition, ResourceStatus, ResourceType, SessionDTO, SessionTokenUsage, SupabaseUserProfile, Task, TaskSchedule, TaskScheduleConfig, TaskStatus, TimeRange, UpdateWebhookEndpointRequest, UserConfig, WebhookEndpoint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/ui",
3
- "version": "1.3.7",
3
+ "version": "1.4.0",
4
4
  "description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
5
5
  "type": "module",
6
6
  "license": "MIT",