@vertesia/common 1.6.0-dev.20261004.085740Z → 1.6.0-dev.20261008.064737Z

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 (74) hide show
  1. package/lib/api-contract/components.generated.json +566 -403
  2. package/lib/api-contract/engine.d.ts +65 -0
  3. package/lib/api-contract/engine.d.ts.map +1 -0
  4. package/lib/api-contract/engine.js +569 -0
  5. package/lib/api-contract/engine.js.map +1 -0
  6. package/lib/api-contract/index.d.ts +21 -182
  7. package/lib/api-contract/index.d.ts.map +1 -1
  8. package/lib/api-contract/index.js +13 -551
  9. package/lib/api-contract/index.js.map +1 -1
  10. package/lib/api-schemas/account.d.ts +0 -5
  11. package/lib/api-schemas/account.d.ts.map +1 -1
  12. package/lib/api-schemas/account.js +0 -7
  13. package/lib/api-schemas/account.js.map +1 -1
  14. package/lib/api-schemas/audit-trail.d.ts +255 -0
  15. package/lib/api-schemas/audit-trail.d.ts.map +1 -1
  16. package/lib/api-schemas/audit-trail.js +150 -1
  17. package/lib/api-schemas/audit-trail.js.map +1 -1
  18. package/lib/api-schemas/cost-analytics.d.ts +1 -0
  19. package/lib/api-schemas/cost-analytics.d.ts.map +1 -1
  20. package/lib/api-schemas/cost-analytics.js +7 -0
  21. package/lib/api-schemas/cost-analytics.js.map +1 -1
  22. package/lib/api-schemas/index.d.ts +1 -0
  23. package/lib/api-schemas/index.d.ts.map +1 -1
  24. package/lib/api-schemas/index.js +1 -0
  25. package/lib/api-schemas/index.js.map +1 -1
  26. package/lib/api-schemas/registry.d.ts +256 -109
  27. package/lib/api-schemas/registry.d.ts.map +1 -1
  28. package/lib/api-schemas/registry.js +26 -29
  29. package/lib/api-schemas/registry.js.map +1 -1
  30. package/lib/api-schemas/run-budget.d.ts +0 -36
  31. package/lib/api-schemas/run-budget.d.ts.map +1 -1
  32. package/lib/api-schemas/run-budget.js +0 -33
  33. package/lib/api-schemas/run-budget.js.map +1 -1
  34. package/lib/api-schemas/secrets.d.ts +0 -71
  35. package/lib/api-schemas/secrets.d.ts.map +1 -1
  36. package/lib/api-schemas/secrets.js +0 -73
  37. package/lib/api-schemas/secrets.js.map +1 -1
  38. package/lib/audit-trail.d.ts +14 -2
  39. package/lib/audit-trail.d.ts.map +1 -1
  40. package/lib/audit-trail.js +4 -0
  41. package/lib/audit-trail.js.map +1 -1
  42. package/lib/index.d.ts +1 -1
  43. package/lib/index.d.ts.map +1 -1
  44. package/lib/index.js.map +1 -1
  45. package/lib/platform-event.d.ts +0 -20
  46. package/lib/platform-event.d.ts.map +1 -1
  47. package/lib/run-budget.d.ts +0 -4
  48. package/lib/run-budget.d.ts.map +1 -1
  49. package/lib/secrets.d.ts +0 -10
  50. package/lib/secrets.d.ts.map +1 -1
  51. package/lib/user.d.ts +0 -1
  52. package/lib/user.d.ts.map +1 -1
  53. package/lib/vertesia-common.js +1 -1
  54. package/lib/vertesia-common.js.map +1 -1
  55. package/lib/wire-types.generated.d.ts +101 -105
  56. package/lib/wire-types.generated.d.ts.map +1 -1
  57. package/package.json +6 -6
  58. package/src/api-contract/components.generated.json +566 -403
  59. package/src/api-contract/engine.ts +641 -0
  60. package/src/api-contract/index.ts +30 -661
  61. package/src/api-schemas/account.ts +0 -8
  62. package/src/api-schemas/audit-trail.ts +169 -1
  63. package/src/api-schemas/cost-analytics.ts +8 -0
  64. package/src/api-schemas/index.ts +1 -0
  65. package/src/api-schemas/registry.ts +37 -33
  66. package/src/api-schemas/run-budget.ts +0 -37
  67. package/src/api-schemas/secrets.ts +0 -84
  68. package/src/audit-trail.ts +17 -0
  69. package/src/index.ts +0 -4
  70. package/src/platform-event.ts +0 -25
  71. package/src/run-budget.ts +0 -4
  72. package/src/secrets.ts +0 -11
  73. package/src/user.ts +0 -2
  74. package/src/wire-types.generated.ts +102 -103
@@ -17,7 +17,6 @@ import type { InCodeProcessDefinition } from './store/process.js';
17
17
  import type { ContentObjectStatus, MarkdownRenditionFormat as MarkdownRenditionFormatValues, WorkflowRuleInputType } from './store/store.js';
18
18
  import type { AgentMessageType, FileProcessingStatus, WorkflowExecutionStatusValues } from './store/workflow.js';
19
19
  import type { TransientTokenType } from './transient-tokens-values.js';
20
- import type { ApiVersions } from './versions.js';
21
20
  import type { ViewNavigationNode } from './views.js';
22
21
  import type { AgentEvent, LlmCallType } from './workflow-analytics.js';
23
22
  /**
@@ -1607,7 +1606,7 @@ export type AuditTrailResponse = {
1607
1606
  export type AuditAggregationResolution = 'hour' | 'day' | 'week' | 'month';
1608
1607
  export type AuditAggregationDetailField = 'pipeline' | 'verdict' | 'workflow_type' | 'rule_id';
1609
1608
  export type AuditAggregationOperation = 'count' | 'count_distinct' | 'sum_meter' | 'average_meter';
1610
- export type AuditAggregationDistinctField = 'resource_id' | 'request_id' | 'principal_id' | 'actor_id';
1609
+ export type AuditAggregationDistinctField = 'resource_id' | 'request_id' | 'principal_id' | 'actor_id' | 'user_id';
1611
1610
  export type AuditAggregationGroup = {
1612
1611
  dimension: AuditAggregationDimensionWire;
1613
1612
  resolution?: AuditAggregationResolution | undefined;
@@ -1654,6 +1653,90 @@ export type AuditAggregationResponse = {
1654
1653
  from: string;
1655
1654
  to: string;
1656
1655
  };
1656
+ export type AuditAdoptionFilter = {
1657
+ actions?: AuditActionWire[] | undefined;
1658
+ resourceTypes?: string[] | undefined;
1659
+ eventCategories?: EventCategory[] | undefined;
1660
+ };
1661
+ export type AuditAdoptionQuery = {
1662
+ projectId?: string | undefined;
1663
+ from?: string | undefined;
1664
+ to?: string | undefined;
1665
+ filter?: AuditAdoptionFilter | undefined;
1666
+ };
1667
+ export type AuditAdoptionPeriod = {
1668
+ from: string;
1669
+ to: string;
1670
+ };
1671
+ export type AuditAdoptionBucket = {
1672
+ from: string;
1673
+ to: string;
1674
+ partial: boolean;
1675
+ active_users: number;
1676
+ };
1677
+ export type AuditAdoptionActiveDays = {
1678
+ days: number;
1679
+ users: number;
1680
+ };
1681
+ export type AuditAdoptionProject = {
1682
+ project_id: string;
1683
+ project_name: string | null;
1684
+ active_users: number;
1685
+ active_user_days: number;
1686
+ };
1687
+ export type AuditAdoptionHistory = {
1688
+ earliest_observed_at: string | null;
1689
+ coverage_from: string | null;
1690
+ completeness: 'unknown' | 'insufficient' | 'verified';
1691
+ retention_unavailable_reason: 'no_previous_users' | 'insufficient_history' | null;
1692
+ };
1693
+ export type AuditAdoptionResponse = {
1694
+ period: AuditAdoptionPeriod;
1695
+ previous_period: AuditAdoptionPeriod;
1696
+ resolution: 'day' | 'week';
1697
+ active_users: number;
1698
+ previous_active_users: number;
1699
+ retained_users: number;
1700
+ observed_retention: number | null;
1701
+ returning_user_share: number | null;
1702
+ repeat_user_share: number | null;
1703
+ median_active_days: number | null;
1704
+ active_projects: number | null;
1705
+ timeline: AuditAdoptionBucket[];
1706
+ active_day_distribution: AuditAdoptionActiveDays[];
1707
+ top_projects: AuditAdoptionProject[];
1708
+ history: AuditAdoptionHistory;
1709
+ };
1710
+ export type AuditUsageQuery = {
1711
+ projectId?: string | undefined;
1712
+ from?: string | undefined;
1713
+ to?: string | undefined;
1714
+ resolution?: 'day' | 'week' | 'month' | undefined;
1715
+ };
1716
+ export type AuditUsageCounts = {
1717
+ active_users: number;
1718
+ agent_runs: number;
1719
+ user_agent_runs: number;
1720
+ automated_agent_runs: number;
1721
+ agent_users: number;
1722
+ direct_calls: number;
1723
+ direct_call_users: number;
1724
+ content_objects: number;
1725
+ user_content_objects: number;
1726
+ other_content_objects: number;
1727
+ };
1728
+ export type AuditUsageBucket = {
1729
+ from: string;
1730
+ to: string;
1731
+ partial: boolean;
1732
+ counts: AuditUsageCounts;
1733
+ };
1734
+ export type AuditUsageResponse = {
1735
+ period: AuditAdoptionPeriod;
1736
+ resolution: 'day' | 'week' | 'month';
1737
+ totals: AuditUsageCounts;
1738
+ timeline: AuditUsageBucket[];
1739
+ };
1657
1740
  export type WebsiteCredentialCapability = 'password' | 'totp' | 'oauth';
1658
1741
  export type WebsiteCredentialTotpAlgorithm = 'SHA1' | 'SHA256' | 'SHA512';
1659
1742
  export type WebsiteCredentialWebsite = {
@@ -1913,6 +1996,7 @@ export type CostAnalyticsQuery = {
1913
1996
  workflow_run_id?: string | undefined;
1914
1997
  run_id?: string | undefined;
1915
1998
  agent_run_id?: string | undefined;
1999
+ agent_only?: boolean | undefined;
1916
2000
  interaction_id?: string | undefined;
1917
2001
  principal_id?: string | undefined;
1918
2002
  account_id?: string | undefined;
@@ -5808,30 +5892,6 @@ export type RoleDefinition = RoleDefinitionFromSchema;
5808
5892
  * by the server's `/roles/system` endpoint.
5809
5893
  */
5810
5894
  export type SystemRoleDefinition = SystemRoleDefinitionFromSchema;
5811
- export type RunBudgetOwner = {
5812
- workflow_id: string;
5813
- first_run_id: string;
5814
- };
5815
- export type RunBudgetUsage = {
5816
- input: number;
5817
- cached_input: number;
5818
- output: number;
5819
- };
5820
- export type ReadRunBudgetUsagePayload = {
5821
- account_id: string;
5822
- project_id: string;
5823
- agent_run_id: string;
5824
- owner: RunBudgetOwner;
5825
- require_estimates?: boolean | undefined;
5826
- };
5827
- export type RunBudgetTotals = {
5828
- measured: RunBudgetUsage;
5829
- unpriced: RunBudgetUsage;
5830
- reported_nano_usd: number;
5831
- estimated_nano_usd: number;
5832
- unmeasured_calls: number;
5833
- missing_usage_calls: number;
5834
- };
5835
5895
  export type RunBudgetCapability = {
5836
5896
  supported: boolean;
5837
5897
  source: 'provider' | 'estimate' | 'unavailable';
@@ -6063,61 +6123,6 @@ export type UpdateSecretRequest = {
6063
6123
  clear_totp?: boolean | undefined;
6064
6124
  clear_oauth?: boolean | undefined;
6065
6125
  };
6066
- export type EventWebhookSigningSecretRequest = {
6067
- account_id?: string | undefined;
6068
- project_id: string;
6069
- };
6070
- export type EventWebhookSigningSecretResponse = {
6071
- subscription_id: string;
6072
- secret: string;
6073
- secret_label: string;
6074
- };
6075
- export type SignEventWebhookRequest = {
6076
- account_id?: string | undefined;
6077
- project_id: string;
6078
- delivery_id: string;
6079
- body: string;
6080
- event_id: string;
6081
- event_category: EventCategory;
6082
- action: string;
6083
- timestamp?: number | undefined;
6084
- };
6085
- export type SignEventWebhookResponse = {
6086
- headers: Record<string, string>;
6087
- timestamp: number;
6088
- signature: string;
6089
- };
6090
- export type EventIngestSigningSecretRequest = {
6091
- account_id?: string | undefined;
6092
- project_id: string;
6093
- };
6094
- export type EventIngestSigningSecretResponse = {
6095
- channel_id: string;
6096
- secret: string;
6097
- secret_label: string;
6098
- };
6099
- export type VerifyEventIngestSignatureRequest = {
6100
- account_id?: string | undefined;
6101
- project_id: string;
6102
- body: string;
6103
- signature_header: string;
6104
- algorithm?: 'sha256' | 'sha1' | undefined;
6105
- encoding?: 'hex' | 'base64' | undefined;
6106
- prefix?: string | undefined;
6107
- };
6108
- export type VerifyEventIngestSignatureResponse = {
6109
- valid: boolean;
6110
- };
6111
- export type GithubInstallationTokenRequest = {
6112
- account_id?: string | undefined;
6113
- project_id: string;
6114
- installation_id: string;
6115
- repo: string;
6116
- };
6117
- export type GithubInstallationTokenResponse = {
6118
- token: string;
6119
- expires_at?: string | undefined;
6120
- };
6121
6126
  export type DeleteSecretResponse = {
6122
6127
  ok: boolean;
6123
6128
  };
@@ -8641,9 +8646,6 @@ export type SignupPayload = {
8641
8646
  firebaseToken: string;
8642
8647
  signupData: SignupData;
8643
8648
  };
8644
- export type AccountApiVersionPolicy = {
8645
- default_api_version?: (typeof ApiVersions)[keyof typeof ApiVersions] | undefined;
8646
- };
8647
8649
  /** An author-provided Elasticsearch query subtree validated by the View runtime. */
8648
8650
  export type ViewElasticsearchQuery = {
8649
8651
  [k: string]: unknown;
@@ -9932,7 +9934,7 @@ export type ViewNavigationResultMap = {
9932
9934
  export type PromptTemplateRefArray = PromptTemplateRef[];
9933
9935
  export type AggregatedToolArray = AggregatedTool[];
9934
9936
  export type OAuthAuthStatusArray = OAuthAuthStatus[];
9935
- export type KnownAuditActionWire = 'create' | 'update' | 'delete' | 'bulk_create' | 'bulk_change_type' | 'bulk_update' | 'bulk_delete' | 'attach' | 'detach' | 'credentials_fill' | 'credentials_totp_generation' | 'publish' | 'unpublish' | 'inference' | 'embedding' | 'image_generation' | 'document_processed';
9937
+ export type KnownAuditActionWire = 'create' | 'update' | 'delete' | 'bulk_create' | 'bulk_change_type' | 'bulk_update' | 'bulk_delete' | 'attach' | 'detach' | 'credentials_fill' | 'credentials_totp_generation' | 'publish' | 'unpublish' | 'search' | 'read' | 'inference' | 'embedding' | 'image_generation' | 'document_processed';
9936
9938
  export type AuditAggregationDimensionMap = {
9937
9939
  time?: string | null | undefined;
9938
9940
  action?: string | null | undefined;
@@ -9942,13 +9944,14 @@ export type AuditAggregationDimensionMap = {
9942
9944
  project_id?: string | null | undefined;
9943
9945
  principal_id?: string | null | undefined;
9944
9946
  actor_id?: string | null | undefined;
9947
+ user_id?: string | null | undefined;
9945
9948
  'details.pipeline'?: string | null | undefined;
9946
9949
  'details.verdict'?: string | null | undefined;
9947
9950
  'details.workflow_type'?: string | null | undefined;
9948
9951
  'details.rule_id'?: string | null | undefined;
9949
9952
  model?: string | null | undefined;
9950
9953
  };
9951
- export type AuditAggregationDimensionWire = 'time' | 'action' | 'resource_type' | 'event_category' | 'provider' | 'project_id' | 'principal_id' | 'actor_id' | 'details.pipeline' | 'details.verdict' | 'details.workflow_type' | 'details.rule_id' | 'model';
9954
+ export type AuditAggregationDimensionWire = 'time' | 'action' | 'resource_type' | 'event_category' | 'provider' | 'project_id' | 'principal_id' | 'actor_id' | 'user_id' | 'details.pipeline' | 'details.verdict' | 'details.workflow_type' | 'details.rule_id' | 'model';
9952
9955
  export type AuditActionWire = KnownAuditActionWire | string;
9953
9956
  export type ViewExperienceSchemaVersionWire = 1;
9954
9957
  export type ViewAgenticSearchModeWire = 'query' | 'query_and_view';
@@ -9960,9 +9963,6 @@ export type AppToolCollectionArray = AppToolCollection[];
9960
9963
  export type SystemPackageQuery = {
9961
9964
  scope?: AppPackageScopeWire[] | undefined;
9962
9965
  };
9963
- export type InternalSecretDeleteResponse = {
9964
- deleted: true;
9965
- };
9966
9966
  export type SupportedIntegrations_ask_user_webhook = (typeof SupportedIntegrations)['ask_user_webhook'];
9967
9967
  export type SupportedIntegrations_resend = (typeof SupportedIntegrations)['resend'];
9968
9968
  export type SupportedIntegrations_linkup = (typeof SupportedIntegrations)['linkup'];
@@ -9992,7 +9992,6 @@ export type AppInstallationListEntryArray = AppInstallationListEntry[];
9992
9992
  export type BinaryFileResponse = string;
9993
9993
  /** The wire type of every registry component, by component name: what `ApiComponentType<N>` resolves. */
9994
9994
  export interface ApiComponentTypes {
9995
- AccountApiVersionPolicy: AccountApiVersionPolicy;
9996
9995
  Account: AccountFromSchema;
9997
9996
  UpdateAccountPayload: UpdateAccountPayloadFromSchema;
9998
9997
  StripeBillingStatusResponse: StripeBillingStatusResponseFromSchema;
@@ -10944,6 +10943,18 @@ export interface ApiComponentTypes {
10944
10943
  OAuthAuthStatusArray: OAuthAuthStatusArray;
10945
10944
  SetMcpApiKeyRequest: SetMcpApiKeyRequest;
10946
10945
  McpApiKeyStatus: McpApiKeyStatus;
10946
+ AuditAdoptionActiveDays: AuditAdoptionActiveDays;
10947
+ AuditAdoptionBucket: AuditAdoptionBucket;
10948
+ AuditAdoptionFilter: AuditAdoptionFilter;
10949
+ AuditAdoptionHistory: AuditAdoptionHistory;
10950
+ AuditAdoptionPeriod: AuditAdoptionPeriod;
10951
+ AuditAdoptionProject: AuditAdoptionProject;
10952
+ AuditAdoptionQuery: AuditAdoptionQuery;
10953
+ AuditAdoptionResponse: AuditAdoptionResponse;
10954
+ AuditUsageQuery: AuditUsageQuery;
10955
+ AuditUsageCounts: AuditUsageCounts;
10956
+ AuditUsageBucket: AuditUsageBucket;
10957
+ AuditUsageResponse: AuditUsageResponse;
10947
10958
  AuditMeter: AuditMeter;
10948
10959
  KnownAuditAction: KnownAuditActionWire;
10949
10960
  EventCategory: EventCategory;
@@ -11103,17 +11114,6 @@ export interface ApiComponentTypes {
11103
11114
  SecretProjectQuery: SecretProjectQuery;
11104
11115
  ListSecretsQuery: ListSecretsQuery;
11105
11116
  SecretLookupQuery: SecretLookupQuery;
11106
- EventWebhookSigningSecretRequest: EventWebhookSigningSecretRequest;
11107
- EventWebhookSigningSecretResponse: EventWebhookSigningSecretResponse;
11108
- SignEventWebhookRequest: SignEventWebhookRequest;
11109
- SignEventWebhookResponse: SignEventWebhookResponse;
11110
- EventIngestSigningSecretRequest: EventIngestSigningSecretRequest;
11111
- EventIngestSigningSecretResponse: EventIngestSigningSecretResponse;
11112
- VerifyEventIngestSignatureRequest: VerifyEventIngestSignatureRequest;
11113
- VerifyEventIngestSignatureResponse: VerifyEventIngestSignatureResponse;
11114
- GithubInstallationTokenRequest: GithubInstallationTokenRequest;
11115
- GithubInstallationTokenResponse: GithubInstallationTokenResponse;
11116
- InternalSecretDeleteResponse: InternalSecretDeleteResponse;
11117
11117
  SupportedIntegrations_ask_user_webhook: SupportedIntegrations_ask_user_webhook;
11118
11118
  SupportedIntegrations_resend: SupportedIntegrations_resend;
11119
11119
  SupportedIntegrations_linkup: SupportedIntegrations_linkup;
@@ -11221,10 +11221,6 @@ export interface ApiComponentTypes {
11221
11221
  CreateDelegationGrantPayload: CreateDelegationGrantPayload;
11222
11222
  DelegationGrant: DelegationGrant;
11223
11223
  DelegationGrantArray: DelegationGrantArray;
11224
- RunBudgetOwner: RunBudgetOwner;
11225
- RunBudgetUsage: RunBudgetUsage;
11226
- ReadRunBudgetUsagePayload: ReadRunBudgetUsagePayload;
11227
- RunBudgetTotals: RunBudgetTotals;
11228
11224
  RunBudgetCapability: RunBudgetCapability;
11229
11225
  RunBudgetCapabilityQuery: RunBudgetCapabilityQuery;
11230
11226
  }