@xpert-ai/contracts 3.26.0 → 3.26.2

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.
@@ -0,0 +1,24 @@
1
+ export type ManualRetentionTarget = 'copilot_checkpoint' | 'model_gateway_call';
2
+ export interface ManualRetentionRange {
3
+ target: ManualRetentionTarget;
4
+ /** Inclusive ISO timestamp. */
5
+ start: string;
6
+ /** Exclusive ISO timestamp. */
7
+ end: string;
8
+ }
9
+ export interface ManualRetentionPreview extends ManualRetentionRange {
10
+ previewToken: string;
11
+ expiresAt: string;
12
+ scope: 'all_tenants';
13
+ matchedCount: number;
14
+ protectedCount: number;
15
+ eligibleCount: number;
16
+ selectedCount: number;
17
+ relatedWriteCount: number;
18
+ batchLimit: number;
19
+ }
20
+ export interface ManualRetentionResult {
21
+ deletedCount: number;
22
+ deletedWriteCount: number;
23
+ skippedCount: number;
24
+ }
package/src/index.d.ts CHANGED
@@ -44,6 +44,7 @@ export * from './custom-smtp.model';
44
44
  export * from './date-picker.model';
45
45
  export * from './data-source.model';
46
46
  export * from './analytics-query.model';
47
+ export * from './analytics-source.model';
47
48
  export * from './data-source-type.model';
48
49
  export * from './integration.model';
49
50
  export * from './invite.model';
@@ -76,3 +77,5 @@ export * from './default-agent-plugins';
76
77
  export * from './agent-plugin-maintenance';
77
78
  export * from './assistant-sharing.model';
78
79
  export * from './artifact-presentation.model';
80
+ export * from './analytics-definition.model';
81
+ export * from './data-retention.model';
@@ -1,6 +1,4 @@
1
- import { Endpoints } from "@octokit/types";
2
- import { TIntegrationProvider } from '../integration.model';
3
- export declare const IntegrationGitHubProvider: TIntegrationProvider;
1
+ import { Endpoints } from '@octokit/types';
4
2
  export type TGithubAuth = {
5
3
  redirectUri: string;
6
4
  integrationId: string;
@@ -13,12 +11,12 @@ export type TGithubAuth = {
13
11
  installation_token: string;
14
12
  repository: string;
15
13
  };
16
- type GitHubInstallationsResponse = Endpoints["GET /user/installations"]["response"]["data"];
17
- type GitHubInstallation = GitHubInstallationsResponse["installations"][0];
14
+ type GitHubInstallationsResponse = Endpoints['GET /user/installations']['response']['data'];
15
+ type GitHubInstallation = GitHubInstallationsResponse['installations'][0];
18
16
  export interface Installation {
19
17
  id: number;
20
18
  accountName: string;
21
- accountType: "User" | "Organization";
19
+ accountType: 'User' | 'Organization';
22
20
  avatarUrl: string;
23
21
  }
24
22
  /**
@@ -1,4 +1,5 @@
1
1
  import { IntegrationEnum, TIntegrationProvider } from '../integration.model';
2
2
  export * from './github';
3
3
  export * from './lark';
4
+ /** @deprecated Discover providers through the host integration registry/API. */
4
5
  export declare const INTEGRATION_PROVIDERS: Partial<Record<IntegrationEnum, TIntegrationProvider>>;
@@ -5,6 +5,7 @@ export interface IRuntimeStreamInterruption {
5
5
  code: 'RUNTIME_RESTARTING';
6
6
  message: string;
7
7
  }
8
+ /** Process-supervisor execution modes; neither implies Pod/deployment orchestration. */
8
9
  export type RuntimeRestartMode = 'self-signal' | 'rolling-self-signal';
9
10
  export type RuntimeRestartStatus = 'in_progress' | 'completed' | 'failed' | 'awaiting_restart';
10
11
  export interface IRuntimePluginRequirement {
@@ -48,9 +49,11 @@ export interface IRuntimeRestartResponse {
48
49
  export interface IRuntimeRestartStatus {
49
50
  restartId: string;
50
51
  mode: RuntimeRestartMode;
52
+ /** completed confirms target runtime requirements and replacement readiness, not ingress acknowledgement. */
51
53
  status: RuntimeRestartStatus;
52
54
  requestedAt: string;
53
55
  targetReplicaCount: number;
56
+ /** Includes already-current targets; not a count of ingress-confirmed serving replicas. */
54
57
  completedReplicaCount: number;
55
58
  failedReplicaCount: number;
56
59
  pluginGeneration: number;
@@ -58,6 +61,7 @@ export interface IRuntimeRestartStatus {
58
61
  }
59
62
  export interface IPluginRuntimeConvergenceStatus {
60
63
  generation: number;
64
+ /** Runtime convergence outcome; completed does not attest ingress routing or business acceptance. */
61
65
  status: RuntimeRestartStatus;
62
66
  restartId?: string;
63
67
  targetReplicaCount: number;
@@ -65,10 +69,23 @@ export interface IPluginRuntimeConvergenceStatus {
65
69
  failedReplicaCount: number;
66
70
  error?: string;
67
71
  }
72
+ export type RuntimeAdmissionReason = 'ready' | 'startup-not-listening' | 'plugin-not-admitted' | 'validation-expired' | 'lease-expired';
73
+ export interface IRuntimeAdmissionDiagnostics {
74
+ reason: RuntimeAdmissionReason;
75
+ validationAgeMs: number | null;
76
+ validationRemainingMs: number;
77
+ leaseRemainingMs?: number;
78
+ checkDurationMs: number | null;
79
+ checkInFlight: boolean;
80
+ lastCheckFailed: boolean;
81
+ eventLoopDelayMaxMs?: number;
82
+ eventLoopDelayP99Ms?: number;
83
+ }
68
84
  export interface IRuntimeReadiness {
69
- status: 'ready' | 'draining' | 'unready';
85
+ status: 'ready' | 'withdrawing' | 'draining' | 'unready';
70
86
  instanceId: string;
71
87
  activeRequests: number;
88
+ admission?: IRuntimeAdmissionDiagnostics;
72
89
  restartId?: string;
73
90
  requestedAt?: string;
74
91
  }
@@ -2,3 +2,4 @@ export * from './model';
2
2
  export * from './assistant-profile';
3
3
  export * from './workbench';
4
4
  export * from './workbench-open';
5
+ export * from './workspace-connector';
@@ -0,0 +1,42 @@
1
+ import { z } from 'zod/v3';
2
+ /** An integration reference must name the Connector authentication method that consumes it. */
3
+ export declare const workspaceConnectorAuthorizationSchema: z.ZodEffects<z.ZodObject<{
4
+ authMethodId: z.ZodOptional<z.ZodString>;
5
+ integrationId: z.ZodOptional<z.ZodString>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ integrationId?: string;
8
+ authMethodId?: string;
9
+ }, {
10
+ integrationId?: string;
11
+ authMethodId?: string;
12
+ }>, {
13
+ integrationId?: string;
14
+ authMethodId?: string;
15
+ }, {
16
+ integrationId?: string;
17
+ authMethodId?: string;
18
+ }>;
19
+ export type WorkspaceConnectorAuthorization = z.infer<typeof workspaceConnectorAuthorizationSchema>;
20
+ /** Intent only: the host resolves workspace identity, permissions and available Connector definitions. */
21
+ export declare const workspaceConnectorConnectPayloadSchema: z.ZodEffects<z.ZodObject<{
22
+ authMethodId: z.ZodOptional<z.ZodString>;
23
+ integrationId: z.ZodOptional<z.ZodString>;
24
+ provider: z.ZodString;
25
+ }, "strict", z.ZodTypeAny, {
26
+ provider?: string;
27
+ integrationId?: string;
28
+ authMethodId?: string;
29
+ }, {
30
+ provider?: string;
31
+ integrationId?: string;
32
+ authMethodId?: string;
33
+ }>, {
34
+ provider?: string;
35
+ integrationId?: string;
36
+ authMethodId?: string;
37
+ }, {
38
+ provider?: string;
39
+ integrationId?: string;
40
+ authMethodId?: string;
41
+ }>;
42
+ export type WorkspaceConnectorConnectPayload = z.infer<typeof workspaceConnectorConnectPayloadSchema>;