@vertesia/common 1.0.0 → 1.1.0-dev.20260427.060440Z

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.
Files changed (141) hide show
  1. package/lib/cjs/access-control.js +2 -0
  2. package/lib/cjs/access-control.js.map +1 -1
  3. package/lib/cjs/apikey.js.map +1 -1
  4. package/lib/cjs/apps.js +35 -0
  5. package/lib/cjs/apps.js.map +1 -1
  6. package/lib/cjs/audit-trail.js +7 -0
  7. package/lib/cjs/audit-trail.js.map +1 -1
  8. package/lib/cjs/cost-analytics.js +13 -0
  9. package/lib/cjs/cost-analytics.js.map +1 -0
  10. package/lib/cjs/group.js +2 -1
  11. package/lib/cjs/group.js.map +1 -1
  12. package/lib/cjs/index.js +3 -1
  13. package/lib/cjs/index.js.map +1 -1
  14. package/lib/cjs/interaction.js +2 -0
  15. package/lib/cjs/interaction.js.map +1 -1
  16. package/lib/cjs/oauth-server.js +3 -0
  17. package/lib/cjs/oauth-server.js.map +1 -0
  18. package/lib/cjs/oauth.js +1 -1
  19. package/lib/cjs/project.js.map +1 -1
  20. package/lib/cjs/store/conversation-state.js.map +1 -1
  21. package/lib/cjs/store/rendering.js +4 -0
  22. package/lib/cjs/store/rendering.js.map +1 -1
  23. package/lib/cjs/store/schedule.js.map +1 -1
  24. package/lib/cjs/store/store.js +4 -1
  25. package/lib/cjs/store/store.js.map +1 -1
  26. package/lib/cjs/store/workflow.js.map +1 -1
  27. package/lib/cjs/user.js +1 -0
  28. package/lib/cjs/user.js.map +1 -1
  29. package/lib/esm/access-control.js +2 -0
  30. package/lib/esm/access-control.js.map +1 -1
  31. package/lib/esm/apikey.js.map +1 -1
  32. package/lib/esm/apps.js +30 -0
  33. package/lib/esm/apps.js.map +1 -1
  34. package/lib/esm/audit-trail.js +6 -1
  35. package/lib/esm/audit-trail.js.map +1 -1
  36. package/lib/esm/cost-analytics.js +10 -0
  37. package/lib/esm/cost-analytics.js.map +1 -0
  38. package/lib/esm/group.js +1 -0
  39. package/lib/esm/group.js.map +1 -1
  40. package/lib/esm/index.js +3 -1
  41. package/lib/esm/index.js.map +1 -1
  42. package/lib/esm/interaction.js +2 -0
  43. package/lib/esm/interaction.js.map +1 -1
  44. package/lib/esm/oauth-server.js +2 -0
  45. package/lib/esm/oauth-server.js.map +1 -0
  46. package/lib/esm/oauth.js +1 -1
  47. package/lib/esm/project.js.map +1 -1
  48. package/lib/esm/store/conversation-state.js.map +1 -1
  49. package/lib/esm/store/rendering.js +3 -0
  50. package/lib/esm/store/rendering.js.map +1 -1
  51. package/lib/esm/store/schedule.js.map +1 -1
  52. package/lib/esm/store/store.js +3 -0
  53. package/lib/esm/store/store.js.map +1 -1
  54. package/lib/esm/store/workflow.js.map +1 -1
  55. package/lib/esm/user.js +1 -0
  56. package/lib/esm/user.js.map +1 -1
  57. package/lib/tsconfig.tsbuildinfo +1 -1
  58. package/lib/types/access-control.d.ts +2 -0
  59. package/lib/types/access-control.d.ts.map +1 -1
  60. package/lib/types/analytics.d.ts +12 -6
  61. package/lib/types/analytics.d.ts.map +1 -1
  62. package/lib/types/apikey.d.ts +1 -0
  63. package/lib/types/apikey.d.ts.map +1 -1
  64. package/lib/types/apps.d.ts +351 -40
  65. package/lib/types/apps.d.ts.map +1 -1
  66. package/lib/types/ask-user.d.ts +0 -4
  67. package/lib/types/ask-user.d.ts.map +1 -1
  68. package/lib/types/audit-trail.d.ts +32 -5
  69. package/lib/types/audit-trail.d.ts.map +1 -1
  70. package/lib/types/cost-analytics.d.ts +154 -0
  71. package/lib/types/cost-analytics.d.ts.map +1 -0
  72. package/lib/types/group.d.ts +1 -0
  73. package/lib/types/group.d.ts.map +1 -1
  74. package/lib/types/index.d.ts +3 -1
  75. package/lib/types/index.d.ts.map +1 -1
  76. package/lib/types/interaction.d.ts +33 -4
  77. package/lib/types/interaction.d.ts.map +1 -1
  78. package/lib/types/oauth-server.d.ts +224 -0
  79. package/lib/types/oauth-server.d.ts.map +1 -0
  80. package/lib/types/oauth.d.ts +29 -18
  81. package/lib/types/oauth.d.ts.map +1 -1
  82. package/lib/types/project.d.ts +87 -19
  83. package/lib/types/project.d.ts.map +1 -1
  84. package/lib/types/query.d.ts +7 -0
  85. package/lib/types/query.d.ts.map +1 -1
  86. package/lib/types/refs.d.ts +4 -0
  87. package/lib/types/refs.d.ts.map +1 -1
  88. package/lib/types/runs.d.ts +14 -0
  89. package/lib/types/runs.d.ts.map +1 -1
  90. package/lib/types/store/agent-run.d.ts +160 -2
  91. package/lib/types/store/agent-run.d.ts.map +1 -1
  92. package/lib/types/store/conversation-state.d.ts +21 -2
  93. package/lib/types/store/conversation-state.d.ts.map +1 -1
  94. package/lib/types/store/doc-analyzer.d.ts +10 -0
  95. package/lib/types/store/doc-analyzer.d.ts.map +1 -1
  96. package/lib/types/store/rendering.d.ts +6 -0
  97. package/lib/types/store/rendering.d.ts.map +1 -1
  98. package/lib/types/store/schedule.d.ts +2 -5
  99. package/lib/types/store/schedule.d.ts.map +1 -1
  100. package/lib/types/store/store.d.ts +9 -0
  101. package/lib/types/store/store.d.ts.map +1 -1
  102. package/lib/types/store/workflow.d.ts +2 -2
  103. package/lib/types/store/workflow.d.ts.map +1 -1
  104. package/lib/types/tool-execution.d.ts +4 -0
  105. package/lib/types/tool-execution.d.ts.map +1 -1
  106. package/lib/types/transient-tokens.d.ts +1 -1
  107. package/lib/types/transient-tokens.d.ts.map +1 -1
  108. package/lib/types/user.d.ts +1 -0
  109. package/lib/types/user.d.ts.map +1 -1
  110. package/lib/types/workflow-analytics.d.ts +12 -0
  111. package/lib/types/workflow-analytics.d.ts.map +1 -1
  112. package/lib/vertesia-common.js +1 -1
  113. package/lib/vertesia-common.js.map +1 -1
  114. package/package.json +4 -4
  115. package/src/access-control.ts +2 -0
  116. package/src/analytics.ts +13 -6
  117. package/src/apikey.ts +1 -0
  118. package/src/apps.ts +401 -40
  119. package/src/ask-user.ts +0 -4
  120. package/src/audit-trail.ts +44 -5
  121. package/src/cost-analytics.ts +165 -0
  122. package/src/group.ts +3 -1
  123. package/src/index.ts +3 -2
  124. package/src/interaction.ts +37 -3
  125. package/src/oauth-server.ts +248 -0
  126. package/src/oauth.ts +30 -18
  127. package/src/project.ts +94 -21
  128. package/src/query.ts +7 -0
  129. package/src/refs.ts +4 -0
  130. package/src/runs.ts +15 -0
  131. package/src/store/agent-run.ts +186 -2
  132. package/src/store/conversation-state.ts +24 -2
  133. package/src/store/doc-analyzer.ts +12 -0
  134. package/src/store/rendering.ts +10 -0
  135. package/src/store/schedule.ts +2 -6
  136. package/src/store/store.ts +11 -0
  137. package/src/store/workflow.ts +3 -2
  138. package/src/tool-execution.ts +4 -0
  139. package/src/transient-tokens.ts +1 -1
  140. package/src/user.ts +1 -0
  141. package/src/workflow-analytics.ts +12 -0
@@ -507,6 +507,9 @@ export interface AgentTask {
507
507
 
508
508
  /** LLM stop reason for llm_call tasks (e.g., "stop", "length", "tool_use") */
509
509
  finish_reason?: string;
510
+
511
+ /** Warnings about the task outcome (e.g. unexpected model behavior). */
512
+ warnings?: string[];
510
513
  }
511
514
 
512
515
  export interface WorkflowRun {
@@ -728,8 +731,6 @@ export interface RequestInputDetails {
728
731
  options?: Array<{ id: string; label: string }>;
729
732
  variant?: string;
730
733
  multiSelect?: boolean;
731
- allowFreeResponse?: boolean;
732
- placeholder?: string;
733
734
  };
734
735
  [key: string]: unknown;
735
736
  }
@@ -28,6 +28,10 @@ export interface ToolExecutionMetadata {
28
28
  * Workflow run ID
29
29
  */
30
30
  run_id?: string;
31
+ /**
32
+ * Conversation storage ID for artifact operations
33
+ */
34
+ conversation_storage_id?: string;
31
35
  /**
32
36
  * App installation ID
33
37
  */
@@ -25,6 +25,6 @@ export interface UserInviteTokenData {
25
25
  email: string;
26
26
  role: ProjectRoles;
27
27
  account: AccountRef;
28
- project: ProjectRef;
28
+ project?: ProjectRef;
29
29
  invited_by: UserRef;
30
30
  }
package/src/user.ts CHANGED
@@ -58,6 +58,7 @@ export enum AccountType {
58
58
  partner = 'partner',
59
59
  free = 'free',
60
60
  customer = 'customer',
61
+ prospect = 'prospect',
61
62
  unknown = 'unknown'
62
63
  }
63
64
 
@@ -142,6 +142,10 @@ export interface LlmCallEvent extends BaseAgentEvent {
142
142
  eventType: AgentEventType.LlmCall;
143
143
  /** Number of input/prompt tokens */
144
144
  promptTokens: number;
145
+ /** Number of prompt tokens served from cache */
146
+ promptCachedTokens?: number;
147
+ /** Number of prompt tokens written into cache */
148
+ promptCacheWriteTokens?: number;
145
149
  /** Number of output/completion tokens */
146
150
  completionTokens: number;
147
151
  /** Total tokens used */
@@ -352,6 +356,10 @@ export interface WorkflowToolParametersQuery extends WorkflowAnalyticsQueryBase
352
356
  export interface TokenUsageMetrics {
353
357
  /** Total input/prompt tokens */
354
358
  inputTokens: number;
359
+ /** Total cached input tokens */
360
+ cachedInputTokens?: number;
361
+ /** Total cache write input tokens */
362
+ cacheWriteInputTokens?: number;
355
363
  /** Total output/completion tokens */
356
364
  outputTokens: number;
357
365
  /** Total tokens (input + output) */
@@ -682,6 +690,10 @@ export interface AgentFilterOption {
682
690
  id: string;
683
691
  /** The display name (resolved from interaction) */
684
692
  name: string;
693
+ /** Interaction status (published, archived, code, etc.) */
694
+ status?: string;
695
+ /** Interaction version number */
696
+ version?: number;
685
697
  }
686
698
 
687
699
  /**