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

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 (84) hide show
  1. package/lib/api-contract/components.generated.json +572 -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 +572 -0
  5. package/lib/api-contract/engine.js.map +1 -0
  6. package/lib/api-contract/index.d.ts +22 -183
  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-contract/types.d.ts +70 -0
  11. package/lib/api-contract/types.d.ts.map +1 -0
  12. package/lib/api-contract/types.js +2 -0
  13. package/lib/api-contract/types.js.map +1 -0
  14. package/lib/api-schemas/account.d.ts +0 -5
  15. package/lib/api-schemas/account.d.ts.map +1 -1
  16. package/lib/api-schemas/account.js +0 -7
  17. package/lib/api-schemas/account.js.map +1 -1
  18. package/lib/api-schemas/audit-trail.d.ts +255 -0
  19. package/lib/api-schemas/audit-trail.d.ts.map +1 -1
  20. package/lib/api-schemas/audit-trail.js +150 -1
  21. package/lib/api-schemas/audit-trail.js.map +1 -1
  22. package/lib/api-schemas/cost-analytics.d.ts +1 -0
  23. package/lib/api-schemas/cost-analytics.d.ts.map +1 -1
  24. package/lib/api-schemas/cost-analytics.js +7 -0
  25. package/lib/api-schemas/cost-analytics.js.map +1 -1
  26. package/lib/api-schemas/group.d.ts +2 -0
  27. package/lib/api-schemas/group.d.ts.map +1 -1
  28. package/lib/api-schemas/group.js +5 -0
  29. package/lib/api-schemas/group.js.map +1 -1
  30. package/lib/api-schemas/index.d.ts +1 -0
  31. package/lib/api-schemas/index.d.ts.map +1 -1
  32. package/lib/api-schemas/index.js +1 -0
  33. package/lib/api-schemas/index.js.map +1 -1
  34. package/lib/api-schemas/registry.d.ts +270 -186
  35. package/lib/api-schemas/registry.d.ts.map +1 -1
  36. package/lib/api-schemas/registry.js +26 -29
  37. package/lib/api-schemas/registry.js.map +1 -1
  38. package/lib/api-schemas/run-budget.d.ts +0 -36
  39. package/lib/api-schemas/run-budget.d.ts.map +1 -1
  40. package/lib/api-schemas/run-budget.js +0 -33
  41. package/lib/api-schemas/run-budget.js.map +1 -1
  42. package/lib/api-schemas/secrets.d.ts +0 -71
  43. package/lib/api-schemas/secrets.d.ts.map +1 -1
  44. package/lib/api-schemas/secrets.js +0 -73
  45. package/lib/api-schemas/secrets.js.map +1 -1
  46. package/lib/audit-trail.d.ts +14 -2
  47. package/lib/audit-trail.d.ts.map +1 -1
  48. package/lib/audit-trail.js +4 -0
  49. package/lib/audit-trail.js.map +1 -1
  50. package/lib/index.d.ts +1 -1
  51. package/lib/index.d.ts.map +1 -1
  52. package/lib/index.js.map +1 -1
  53. package/lib/platform-event.d.ts +0 -20
  54. package/lib/platform-event.d.ts.map +1 -1
  55. package/lib/run-budget.d.ts +0 -4
  56. package/lib/run-budget.d.ts.map +1 -1
  57. package/lib/secrets.d.ts +0 -10
  58. package/lib/secrets.d.ts.map +1 -1
  59. package/lib/user.d.ts +0 -1
  60. package/lib/user.d.ts.map +1 -1
  61. package/lib/vertesia-common.js +1 -1
  62. package/lib/vertesia-common.js.map +1 -1
  63. package/lib/wire-types.generated.d.ts +102 -105
  64. package/lib/wire-types.generated.d.ts.map +1 -1
  65. package/package.json +6 -6
  66. package/src/api-contract/components.generated.json +572 -403
  67. package/src/api-contract/engine.ts +644 -0
  68. package/src/api-contract/index.ts +32 -663
  69. package/src/api-contract/types.ts +108 -0
  70. package/src/api-schemas/account.ts +0 -8
  71. package/src/api-schemas/audit-trail.ts +169 -1
  72. package/src/api-schemas/cost-analytics.ts +8 -0
  73. package/src/api-schemas/group.ts +5 -0
  74. package/src/api-schemas/index.ts +1 -0
  75. package/src/api-schemas/registry.ts +41 -139
  76. package/src/api-schemas/run-budget.ts +0 -37
  77. package/src/api-schemas/secrets.ts +0 -84
  78. package/src/audit-trail.ts +17 -0
  79. package/src/index.ts +0 -4
  80. package/src/platform-event.ts +0 -25
  81. package/src/run-budget.ts +0 -4
  82. package/src/secrets.ts +0 -11
  83. package/src/user.ts +0 -2
  84. package/src/wire-types.generated.ts +103 -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;
@@ -3251,6 +3335,7 @@ export type UserGroup = {
3251
3335
  clearance?: number | undefined;
3252
3336
  compartments?: string[] | undefined;
3253
3337
  allowed_projects?: string[] | undefined;
3338
+ member_count?: number | undefined;
3254
3339
  };
3255
3340
  export type CreateUserGroupPayload = {
3256
3341
  name: string;
@@ -5808,30 +5893,6 @@ export type RoleDefinition = RoleDefinitionFromSchema;
5808
5893
  * by the server's `/roles/system` endpoint.
5809
5894
  */
5810
5895
  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
5896
  export type RunBudgetCapability = {
5836
5897
  supported: boolean;
5837
5898
  source: 'provider' | 'estimate' | 'unavailable';
@@ -6063,61 +6124,6 @@ export type UpdateSecretRequest = {
6063
6124
  clear_totp?: boolean | undefined;
6064
6125
  clear_oauth?: boolean | undefined;
6065
6126
  };
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
6127
  export type DeleteSecretResponse = {
6122
6128
  ok: boolean;
6123
6129
  };
@@ -8641,9 +8647,6 @@ export type SignupPayload = {
8641
8647
  firebaseToken: string;
8642
8648
  signupData: SignupData;
8643
8649
  };
8644
- export type AccountApiVersionPolicy = {
8645
- default_api_version?: (typeof ApiVersions)[keyof typeof ApiVersions] | undefined;
8646
- };
8647
8650
  /** An author-provided Elasticsearch query subtree validated by the View runtime. */
8648
8651
  export type ViewElasticsearchQuery = {
8649
8652
  [k: string]: unknown;
@@ -9932,7 +9935,7 @@ export type ViewNavigationResultMap = {
9932
9935
  export type PromptTemplateRefArray = PromptTemplateRef[];
9933
9936
  export type AggregatedToolArray = AggregatedTool[];
9934
9937
  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';
9938
+ 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
9939
  export type AuditAggregationDimensionMap = {
9937
9940
  time?: string | null | undefined;
9938
9941
  action?: string | null | undefined;
@@ -9942,13 +9945,14 @@ export type AuditAggregationDimensionMap = {
9942
9945
  project_id?: string | null | undefined;
9943
9946
  principal_id?: string | null | undefined;
9944
9947
  actor_id?: string | null | undefined;
9948
+ user_id?: string | null | undefined;
9945
9949
  'details.pipeline'?: string | null | undefined;
9946
9950
  'details.verdict'?: string | null | undefined;
9947
9951
  'details.workflow_type'?: string | null | undefined;
9948
9952
  'details.rule_id'?: string | null | undefined;
9949
9953
  model?: string | null | undefined;
9950
9954
  };
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';
9955
+ 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
9956
  export type AuditActionWire = KnownAuditActionWire | string;
9953
9957
  export type ViewExperienceSchemaVersionWire = 1;
9954
9958
  export type ViewAgenticSearchModeWire = 'query' | 'query_and_view';
@@ -9960,9 +9964,6 @@ export type AppToolCollectionArray = AppToolCollection[];
9960
9964
  export type SystemPackageQuery = {
9961
9965
  scope?: AppPackageScopeWire[] | undefined;
9962
9966
  };
9963
- export type InternalSecretDeleteResponse = {
9964
- deleted: true;
9965
- };
9966
9967
  export type SupportedIntegrations_ask_user_webhook = (typeof SupportedIntegrations)['ask_user_webhook'];
9967
9968
  export type SupportedIntegrations_resend = (typeof SupportedIntegrations)['resend'];
9968
9969
  export type SupportedIntegrations_linkup = (typeof SupportedIntegrations)['linkup'];
@@ -9992,7 +9993,6 @@ export type AppInstallationListEntryArray = AppInstallationListEntry[];
9992
9993
  export type BinaryFileResponse = string;
9993
9994
  /** The wire type of every registry component, by component name: what `ApiComponentType<N>` resolves. */
9994
9995
  export interface ApiComponentTypes {
9995
- AccountApiVersionPolicy: AccountApiVersionPolicy;
9996
9996
  Account: AccountFromSchema;
9997
9997
  UpdateAccountPayload: UpdateAccountPayloadFromSchema;
9998
9998
  StripeBillingStatusResponse: StripeBillingStatusResponseFromSchema;
@@ -10944,6 +10944,18 @@ export interface ApiComponentTypes {
10944
10944
  OAuthAuthStatusArray: OAuthAuthStatusArray;
10945
10945
  SetMcpApiKeyRequest: SetMcpApiKeyRequest;
10946
10946
  McpApiKeyStatus: McpApiKeyStatus;
10947
+ AuditAdoptionActiveDays: AuditAdoptionActiveDays;
10948
+ AuditAdoptionBucket: AuditAdoptionBucket;
10949
+ AuditAdoptionFilter: AuditAdoptionFilter;
10950
+ AuditAdoptionHistory: AuditAdoptionHistory;
10951
+ AuditAdoptionPeriod: AuditAdoptionPeriod;
10952
+ AuditAdoptionProject: AuditAdoptionProject;
10953
+ AuditAdoptionQuery: AuditAdoptionQuery;
10954
+ AuditAdoptionResponse: AuditAdoptionResponse;
10955
+ AuditUsageQuery: AuditUsageQuery;
10956
+ AuditUsageCounts: AuditUsageCounts;
10957
+ AuditUsageBucket: AuditUsageBucket;
10958
+ AuditUsageResponse: AuditUsageResponse;
10947
10959
  AuditMeter: AuditMeter;
10948
10960
  KnownAuditAction: KnownAuditActionWire;
10949
10961
  EventCategory: EventCategory;
@@ -11103,17 +11115,6 @@ export interface ApiComponentTypes {
11103
11115
  SecretProjectQuery: SecretProjectQuery;
11104
11116
  ListSecretsQuery: ListSecretsQuery;
11105
11117
  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
11118
  SupportedIntegrations_ask_user_webhook: SupportedIntegrations_ask_user_webhook;
11118
11119
  SupportedIntegrations_resend: SupportedIntegrations_resend;
11119
11120
  SupportedIntegrations_linkup: SupportedIntegrations_linkup;
@@ -11221,10 +11222,6 @@ export interface ApiComponentTypes {
11221
11222
  CreateDelegationGrantPayload: CreateDelegationGrantPayload;
11222
11223
  DelegationGrant: DelegationGrant;
11223
11224
  DelegationGrantArray: DelegationGrantArray;
11224
- RunBudgetOwner: RunBudgetOwner;
11225
- RunBudgetUsage: RunBudgetUsage;
11226
- ReadRunBudgetUsagePayload: ReadRunBudgetUsagePayload;
11227
- RunBudgetTotals: RunBudgetTotals;
11228
11225
  RunBudgetCapability: RunBudgetCapability;
11229
11226
  RunBudgetCapabilityQuery: RunBudgetCapabilityQuery;
11230
11227
  }