@ai-matrx/data 0.22.12 → 0.22.14

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/types.d.cts CHANGED
@@ -49209,6 +49209,34 @@ type Database = {
49209
49209
  [_ in never]: never;
49210
49210
  };
49211
49211
  Functions: {
49212
+ _automation_run_costs: {
49213
+ Args: {
49214
+ p_automation_id?: string;
49215
+ p_org_id: string;
49216
+ p_since: string;
49217
+ };
49218
+ Returns: {
49219
+ agent_ids: string[];
49220
+ automation_id: string;
49221
+ automation_kind: string;
49222
+ conversation_id: string;
49223
+ cost: number;
49224
+ mandates: string[];
49225
+ max_loop: number;
49226
+ models: string[];
49227
+ run_at: string;
49228
+ run_id: string;
49229
+ status: string;
49230
+ turns: number;
49231
+ workflow_run_id: string;
49232
+ }[];
49233
+ };
49234
+ _is_premium_model: {
49235
+ Args: {
49236
+ p_name: string;
49237
+ };
49238
+ Returns: boolean;
49239
+ };
49212
49240
  admin_disable_task: {
49213
49241
  Args: {
49214
49242
  p_reason?: string;
@@ -49223,6 +49251,67 @@ type Database = {
49223
49251
  };
49224
49252
  Returns: Json;
49225
49253
  };
49254
+ automation_cost_rollup: {
49255
+ Args: {
49256
+ p_days?: number;
49257
+ p_org_id?: string;
49258
+ };
49259
+ Returns: {
49260
+ agents: Json;
49261
+ approval: string;
49262
+ approved_at: string;
49263
+ approved_by: string;
49264
+ automation_id: string;
49265
+ automation_kind: string;
49266
+ avg_run_cost: number;
49267
+ avg_turns: number;
49268
+ cost: number;
49269
+ cost_7d: number;
49270
+ description: string;
49271
+ enabled: boolean;
49272
+ est_monthly_cost: number;
49273
+ last_run_at: string;
49274
+ last_run_cost: number;
49275
+ mandates: string[];
49276
+ max_loop: number;
49277
+ max_run_cost: number;
49278
+ max_turns: number;
49279
+ models: string[];
49280
+ name: string;
49281
+ organization_id: string;
49282
+ organization_is_system: boolean;
49283
+ organization_name: string;
49284
+ owner_email: string;
49285
+ owner_is_platform_admin: boolean;
49286
+ owner_user_id: string;
49287
+ premium_models: string[];
49288
+ runs: number;
49289
+ runs_7d: number;
49290
+ trigger_config: Json;
49291
+ trigger_type: string;
49292
+ workflow_definition_id: string;
49293
+ }[];
49294
+ };
49295
+ automation_cost_runs: {
49296
+ Args: {
49297
+ p_automation_id: string;
49298
+ p_automation_kind: string;
49299
+ p_days?: number;
49300
+ };
49301
+ Returns: {
49302
+ agent_ids: string[];
49303
+ conversation_id: string;
49304
+ cost: number;
49305
+ mandates: string[];
49306
+ max_loop: number;
49307
+ models: string[];
49308
+ run_at: string;
49309
+ run_id: string;
49310
+ status: string;
49311
+ turns: number;
49312
+ workflow_run_id: string;
49313
+ }[];
49314
+ };
49226
49315
  realtime_topic_admits: {
49227
49316
  Args: {
49228
49317
  p_topic: string;
package/dist/types.d.ts CHANGED
@@ -49209,6 +49209,34 @@ type Database = {
49209
49209
  [_ in never]: never;
49210
49210
  };
49211
49211
  Functions: {
49212
+ _automation_run_costs: {
49213
+ Args: {
49214
+ p_automation_id?: string;
49215
+ p_org_id: string;
49216
+ p_since: string;
49217
+ };
49218
+ Returns: {
49219
+ agent_ids: string[];
49220
+ automation_id: string;
49221
+ automation_kind: string;
49222
+ conversation_id: string;
49223
+ cost: number;
49224
+ mandates: string[];
49225
+ max_loop: number;
49226
+ models: string[];
49227
+ run_at: string;
49228
+ run_id: string;
49229
+ status: string;
49230
+ turns: number;
49231
+ workflow_run_id: string;
49232
+ }[];
49233
+ };
49234
+ _is_premium_model: {
49235
+ Args: {
49236
+ p_name: string;
49237
+ };
49238
+ Returns: boolean;
49239
+ };
49212
49240
  admin_disable_task: {
49213
49241
  Args: {
49214
49242
  p_reason?: string;
@@ -49223,6 +49251,67 @@ type Database = {
49223
49251
  };
49224
49252
  Returns: Json;
49225
49253
  };
49254
+ automation_cost_rollup: {
49255
+ Args: {
49256
+ p_days?: number;
49257
+ p_org_id?: string;
49258
+ };
49259
+ Returns: {
49260
+ agents: Json;
49261
+ approval: string;
49262
+ approved_at: string;
49263
+ approved_by: string;
49264
+ automation_id: string;
49265
+ automation_kind: string;
49266
+ avg_run_cost: number;
49267
+ avg_turns: number;
49268
+ cost: number;
49269
+ cost_7d: number;
49270
+ description: string;
49271
+ enabled: boolean;
49272
+ est_monthly_cost: number;
49273
+ last_run_at: string;
49274
+ last_run_cost: number;
49275
+ mandates: string[];
49276
+ max_loop: number;
49277
+ max_run_cost: number;
49278
+ max_turns: number;
49279
+ models: string[];
49280
+ name: string;
49281
+ organization_id: string;
49282
+ organization_is_system: boolean;
49283
+ organization_name: string;
49284
+ owner_email: string;
49285
+ owner_is_platform_admin: boolean;
49286
+ owner_user_id: string;
49287
+ premium_models: string[];
49288
+ runs: number;
49289
+ runs_7d: number;
49290
+ trigger_config: Json;
49291
+ trigger_type: string;
49292
+ workflow_definition_id: string;
49293
+ }[];
49294
+ };
49295
+ automation_cost_runs: {
49296
+ Args: {
49297
+ p_automation_id: string;
49298
+ p_automation_kind: string;
49299
+ p_days?: number;
49300
+ };
49301
+ Returns: {
49302
+ agent_ids: string[];
49303
+ conversation_id: string;
49304
+ cost: number;
49305
+ mandates: string[];
49306
+ max_loop: number;
49307
+ models: string[];
49308
+ run_at: string;
49309
+ run_id: string;
49310
+ status: string;
49311
+ turns: number;
49312
+ workflow_run_id: string;
49313
+ }[];
49314
+ };
49226
49315
  realtime_topic_admits: {
49227
49316
  Args: {
49228
49317
  p_topic: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/data",
3
- "version": "0.22.12",
3
+ "version": "0.22.14",
4
4
  "description": "The opinionated AI Matrx data layer: the /db tier's hard-won Supabase primitives — optimistic concurrency, complete-list reads, JSONB merge, session-retry, the domain-wide auth cookie, realtime channel hygiene — the /net resilience trio, and the /files lane: the Matrx file-communication client (durable-ref resolution, the mx_files_session bootstrap, authenticated blob fetch, uploads, the public-link door).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -208,5 +208,5 @@
208
208
  "test:watch": "vitest",
209
209
  "verify:tarball": "node ./scripts/verify-tarball.mjs"
210
210
  },
211
- "gitHead": "72c166ca9e3b90dc0f6648754257142aba4756b6"
211
+ "gitHead": "dd94cd4330d09f6438ffa5f6ac8629cf65b0bfdf"
212
212
  }