@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
@@ -65,7 +65,6 @@ import type {
65
65
  } from './store/store.js';
66
66
  import type { AgentMessageType, FileProcessingStatus, WorkflowExecutionStatusValues } from './store/workflow.js';
67
67
  import type { TransientTokenType } from './transient-tokens-values.js';
68
- import type { ApiVersions } from './versions.js';
69
68
  import type { ViewNavigationNode } from './views.js';
70
69
  import type { AgentEvent, LlmCallType } from './workflow-analytics.js';
71
70
 
@@ -1701,7 +1700,7 @@ export type AuditTrailResponse = {
1701
1700
  export type AuditAggregationResolution = 'hour' | 'day' | 'week' | 'month';
1702
1701
  export type AuditAggregationDetailField = 'pipeline' | 'verdict' | 'workflow_type' | 'rule_id';
1703
1702
  export type AuditAggregationOperation = 'count' | 'count_distinct' | 'sum_meter' | 'average_meter';
1704
- export type AuditAggregationDistinctField = 'resource_id' | 'request_id' | 'principal_id' | 'actor_id';
1703
+ export type AuditAggregationDistinctField = 'resource_id' | 'request_id' | 'principal_id' | 'actor_id' | 'user_id';
1705
1704
  export type AuditAggregationGroup = {
1706
1705
  dimension: AuditAggregationDimensionWire;
1707
1706
  resolution?: AuditAggregationResolution | undefined;
@@ -1748,6 +1747,90 @@ export type AuditAggregationResponse = {
1748
1747
  from: string;
1749
1748
  to: string;
1750
1749
  };
1750
+ export type AuditAdoptionFilter = {
1751
+ actions?: AuditActionWire[] | undefined;
1752
+ resourceTypes?: string[] | undefined;
1753
+ eventCategories?: EventCategory[] | undefined;
1754
+ };
1755
+ export type AuditAdoptionQuery = {
1756
+ projectId?: string | undefined;
1757
+ from?: string | undefined;
1758
+ to?: string | undefined;
1759
+ filter?: AuditAdoptionFilter | undefined;
1760
+ };
1761
+ export type AuditAdoptionPeriod = {
1762
+ from: string;
1763
+ to: string;
1764
+ };
1765
+ export type AuditAdoptionBucket = {
1766
+ from: string;
1767
+ to: string;
1768
+ partial: boolean;
1769
+ active_users: number;
1770
+ };
1771
+ export type AuditAdoptionActiveDays = {
1772
+ days: number;
1773
+ users: number;
1774
+ };
1775
+ export type AuditAdoptionProject = {
1776
+ project_id: string;
1777
+ project_name: string | null;
1778
+ active_users: number;
1779
+ active_user_days: number;
1780
+ };
1781
+ export type AuditAdoptionHistory = {
1782
+ earliest_observed_at: string | null;
1783
+ coverage_from: string | null;
1784
+ completeness: 'unknown' | 'insufficient' | 'verified';
1785
+ retention_unavailable_reason: 'no_previous_users' | 'insufficient_history' | null;
1786
+ };
1787
+ export type AuditAdoptionResponse = {
1788
+ period: AuditAdoptionPeriod;
1789
+ previous_period: AuditAdoptionPeriod;
1790
+ resolution: 'day' | 'week';
1791
+ active_users: number;
1792
+ previous_active_users: number;
1793
+ retained_users: number;
1794
+ observed_retention: number | null;
1795
+ returning_user_share: number | null;
1796
+ repeat_user_share: number | null;
1797
+ median_active_days: number | null;
1798
+ active_projects: number | null;
1799
+ timeline: AuditAdoptionBucket[];
1800
+ active_day_distribution: AuditAdoptionActiveDays[];
1801
+ top_projects: AuditAdoptionProject[];
1802
+ history: AuditAdoptionHistory;
1803
+ };
1804
+ export type AuditUsageQuery = {
1805
+ projectId?: string | undefined;
1806
+ from?: string | undefined;
1807
+ to?: string | undefined;
1808
+ resolution?: 'day' | 'week' | 'month' | undefined;
1809
+ };
1810
+ export type AuditUsageCounts = {
1811
+ active_users: number;
1812
+ agent_runs: number;
1813
+ user_agent_runs: number;
1814
+ automated_agent_runs: number;
1815
+ agent_users: number;
1816
+ direct_calls: number;
1817
+ direct_call_users: number;
1818
+ content_objects: number;
1819
+ user_content_objects: number;
1820
+ other_content_objects: number;
1821
+ };
1822
+ export type AuditUsageBucket = {
1823
+ from: string;
1824
+ to: string;
1825
+ partial: boolean;
1826
+ counts: AuditUsageCounts;
1827
+ };
1828
+ export type AuditUsageResponse = {
1829
+ period: AuditAdoptionPeriod;
1830
+ resolution: 'day' | 'week' | 'month';
1831
+ totals: AuditUsageCounts;
1832
+ timeline: AuditUsageBucket[];
1833
+ };
1751
1834
  export type WebsiteCredentialCapability = 'password' | 'totp' | 'oauth';
1752
1835
  export type WebsiteCredentialTotpAlgorithm = 'SHA1' | 'SHA256' | 'SHA512';
1753
1836
  export type WebsiteCredentialWebsite = {
@@ -2041,6 +2124,7 @@ export type CostAnalyticsQuery = {
2041
2124
  workflow_run_id?: string | undefined;
2042
2125
  run_id?: string | undefined;
2043
2126
  agent_run_id?: string | undefined;
2127
+ agent_only?: boolean | undefined;
2044
2128
  interaction_id?: string | undefined;
2045
2129
  principal_id?: string | undefined;
2046
2130
  account_id?: string | undefined;
@@ -6111,30 +6195,6 @@ export type RoleDefinition = RoleDefinitionFromSchema;
6111
6195
  * by the server's `/roles/system` endpoint.
6112
6196
  */
6113
6197
  export type SystemRoleDefinition = SystemRoleDefinitionFromSchema;
6114
- export type RunBudgetOwner = {
6115
- workflow_id: string;
6116
- first_run_id: string;
6117
- };
6118
- export type RunBudgetUsage = {
6119
- input: number;
6120
- cached_input: number;
6121
- output: number;
6122
- };
6123
- export type ReadRunBudgetUsagePayload = {
6124
- account_id: string;
6125
- project_id: string;
6126
- agent_run_id: string;
6127
- owner: RunBudgetOwner;
6128
- require_estimates?: boolean | undefined;
6129
- };
6130
- export type RunBudgetTotals = {
6131
- measured: RunBudgetUsage;
6132
- unpriced: RunBudgetUsage;
6133
- reported_nano_usd: number;
6134
- estimated_nano_usd: number;
6135
- unmeasured_calls: number;
6136
- missing_usage_calls: number;
6137
- };
6138
6198
  export type RunBudgetCapability = {
6139
6199
  supported: boolean;
6140
6200
  source: 'provider' | 'estimate' | 'unavailable';
@@ -6390,61 +6450,6 @@ export type UpdateSecretRequest = {
6390
6450
  clear_totp?: boolean | undefined;
6391
6451
  clear_oauth?: boolean | undefined;
6392
6452
  };
6393
- export type EventWebhookSigningSecretRequest = {
6394
- account_id?: string | undefined;
6395
- project_id: string;
6396
- };
6397
- export type EventWebhookSigningSecretResponse = {
6398
- subscription_id: string;
6399
- secret: string;
6400
- secret_label: string;
6401
- };
6402
- export type SignEventWebhookRequest = {
6403
- account_id?: string | undefined;
6404
- project_id: string;
6405
- delivery_id: string;
6406
- body: string;
6407
- event_id: string;
6408
- event_category: EventCategory;
6409
- action: string;
6410
- timestamp?: number | undefined;
6411
- };
6412
- export type SignEventWebhookResponse = {
6413
- headers: Record<string, string>;
6414
- timestamp: number;
6415
- signature: string;
6416
- };
6417
- export type EventIngestSigningSecretRequest = {
6418
- account_id?: string | undefined;
6419
- project_id: string;
6420
- };
6421
- export type EventIngestSigningSecretResponse = {
6422
- channel_id: string;
6423
- secret: string;
6424
- secret_label: string;
6425
- };
6426
- export type VerifyEventIngestSignatureRequest = {
6427
- account_id?: string | undefined;
6428
- project_id: string;
6429
- body: string;
6430
- signature_header: string;
6431
- algorithm?: 'sha256' | 'sha1' | undefined;
6432
- encoding?: 'hex' | 'base64' | undefined;
6433
- prefix?: string | undefined;
6434
- };
6435
- export type VerifyEventIngestSignatureResponse = {
6436
- valid: boolean;
6437
- };
6438
- export type GithubInstallationTokenRequest = {
6439
- account_id?: string | undefined;
6440
- project_id: string;
6441
- installation_id: string;
6442
- repo: string;
6443
- };
6444
- export type GithubInstallationTokenResponse = {
6445
- token: string;
6446
- expires_at?: string | undefined;
6447
- };
6448
6453
  export type DeleteSecretResponse = {
6449
6454
  ok: boolean;
6450
6455
  };
@@ -9163,9 +9168,6 @@ export type SignupPayload = {
9163
9168
  firebaseToken: string;
9164
9169
  signupData: SignupData;
9165
9170
  };
9166
- export type AccountApiVersionPolicy = {
9167
- default_api_version?: (typeof ApiVersions)[keyof typeof ApiVersions] | undefined;
9168
- };
9169
9171
  /** An author-provided Elasticsearch query subtree validated by the View runtime. */
9170
9172
  export type ViewElasticsearchQuery = {
9171
9173
  [k: string]: unknown;
@@ -10559,6 +10561,8 @@ export type KnownAuditActionWire =
10559
10561
  | 'credentials_totp_generation'
10560
10562
  | 'publish'
10561
10563
  | 'unpublish'
10564
+ | 'search'
10565
+ | 'read'
10562
10566
  | 'inference'
10563
10567
  | 'embedding'
10564
10568
  | 'image_generation'
@@ -10572,6 +10576,7 @@ export type AuditAggregationDimensionMap = {
10572
10576
  project_id?: string | null | undefined;
10573
10577
  principal_id?: string | null | undefined;
10574
10578
  actor_id?: string | null | undefined;
10579
+ user_id?: string | null | undefined;
10575
10580
  'details.pipeline'?: string | null | undefined;
10576
10581
  'details.verdict'?: string | null | undefined;
10577
10582
  'details.workflow_type'?: string | null | undefined;
@@ -10587,6 +10592,7 @@ export type AuditAggregationDimensionWire =
10587
10592
  | 'project_id'
10588
10593
  | 'principal_id'
10589
10594
  | 'actor_id'
10595
+ | 'user_id'
10590
10596
  | 'details.pipeline'
10591
10597
  | 'details.verdict'
10592
10598
  | 'details.workflow_type'
@@ -10617,9 +10623,6 @@ export type AppToolCollectionArray = AppToolCollection[];
10617
10623
  export type SystemPackageQuery = {
10618
10624
  scope?: AppPackageScopeWire[] | undefined;
10619
10625
  };
10620
- export type InternalSecretDeleteResponse = {
10621
- deleted: true;
10622
- };
10623
10626
  export type SupportedIntegrations_ask_user_webhook = (typeof SupportedIntegrations)['ask_user_webhook'];
10624
10627
  export type SupportedIntegrations_resend = (typeof SupportedIntegrations)['resend'];
10625
10628
  export type SupportedIntegrations_linkup = (typeof SupportedIntegrations)['linkup'];
@@ -10649,7 +10652,6 @@ export type AppInstallationListEntryArray = AppInstallationListEntry[];
10649
10652
  export type BinaryFileResponse = string;
10650
10653
  /** The wire type of every registry component, by component name: what `ApiComponentType<N>` resolves. */
10651
10654
  export interface ApiComponentTypes {
10652
- AccountApiVersionPolicy: AccountApiVersionPolicy;
10653
10655
  Account: AccountFromSchema;
10654
10656
  UpdateAccountPayload: UpdateAccountPayloadFromSchema;
10655
10657
  StripeBillingStatusResponse: StripeBillingStatusResponseFromSchema;
@@ -11603,6 +11605,18 @@ export interface ApiComponentTypes {
11603
11605
  OAuthAuthStatusArray: OAuthAuthStatusArray;
11604
11606
  SetMcpApiKeyRequest: SetMcpApiKeyRequest;
11605
11607
  McpApiKeyStatus: McpApiKeyStatus;
11608
+ AuditAdoptionActiveDays: AuditAdoptionActiveDays;
11609
+ AuditAdoptionBucket: AuditAdoptionBucket;
11610
+ AuditAdoptionFilter: AuditAdoptionFilter;
11611
+ AuditAdoptionHistory: AuditAdoptionHistory;
11612
+ AuditAdoptionPeriod: AuditAdoptionPeriod;
11613
+ AuditAdoptionProject: AuditAdoptionProject;
11614
+ AuditAdoptionQuery: AuditAdoptionQuery;
11615
+ AuditAdoptionResponse: AuditAdoptionResponse;
11616
+ AuditUsageQuery: AuditUsageQuery;
11617
+ AuditUsageCounts: AuditUsageCounts;
11618
+ AuditUsageBucket: AuditUsageBucket;
11619
+ AuditUsageResponse: AuditUsageResponse;
11606
11620
  AuditMeter: AuditMeter;
11607
11621
  KnownAuditAction: KnownAuditActionWire;
11608
11622
  EventCategory: EventCategory;
@@ -11762,17 +11776,6 @@ export interface ApiComponentTypes {
11762
11776
  SecretProjectQuery: SecretProjectQuery;
11763
11777
  ListSecretsQuery: ListSecretsQuery;
11764
11778
  SecretLookupQuery: SecretLookupQuery;
11765
- EventWebhookSigningSecretRequest: EventWebhookSigningSecretRequest;
11766
- EventWebhookSigningSecretResponse: EventWebhookSigningSecretResponse;
11767
- SignEventWebhookRequest: SignEventWebhookRequest;
11768
- SignEventWebhookResponse: SignEventWebhookResponse;
11769
- EventIngestSigningSecretRequest: EventIngestSigningSecretRequest;
11770
- EventIngestSigningSecretResponse: EventIngestSigningSecretResponse;
11771
- VerifyEventIngestSignatureRequest: VerifyEventIngestSignatureRequest;
11772
- VerifyEventIngestSignatureResponse: VerifyEventIngestSignatureResponse;
11773
- GithubInstallationTokenRequest: GithubInstallationTokenRequest;
11774
- GithubInstallationTokenResponse: GithubInstallationTokenResponse;
11775
- InternalSecretDeleteResponse: InternalSecretDeleteResponse;
11776
11779
  SupportedIntegrations_ask_user_webhook: SupportedIntegrations_ask_user_webhook;
11777
11780
  SupportedIntegrations_resend: SupportedIntegrations_resend;
11778
11781
  SupportedIntegrations_linkup: SupportedIntegrations_linkup;
@@ -11880,10 +11883,6 @@ export interface ApiComponentTypes {
11880
11883
  CreateDelegationGrantPayload: CreateDelegationGrantPayload;
11881
11884
  DelegationGrant: DelegationGrant;
11882
11885
  DelegationGrantArray: DelegationGrantArray;
11883
- RunBudgetOwner: RunBudgetOwner;
11884
- RunBudgetUsage: RunBudgetUsage;
11885
- ReadRunBudgetUsagePayload: ReadRunBudgetUsagePayload;
11886
- RunBudgetTotals: RunBudgetTotals;
11887
11886
  RunBudgetCapability: RunBudgetCapability;
11888
11887
  RunBudgetCapabilityQuery: RunBudgetCapabilityQuery;
11889
11888
  }