import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { BulkUploadHistoryEvent } from "./bulkuploadhistoryevent.js"; import { DatasourceObjectTypeDocumentCountEntry } from "./datasourceobjecttypedocumentcountentry.js"; import { DebugDatasourceStatusIdentityResponseComponent } from "./debugdatasourcestatusidentityresponsecomponent.js"; import { ProcessingHistoryEvent } from "./processinghistoryevent.js"; export type DebugDatasourceStatusResponseCounts = { /** * A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale. * * @remarks */ uploaded?: Array | undefined; /** * The number of documents indexed, grouped by objectType */ indexed?: Array | undefined; }; export type Documents = { /** * Information about active and recent successful uploads for the datasource */ bulkUploadHistory?: Array | undefined; counts?: DebugDatasourceStatusResponseCounts | undefined; /** * Information about processing history for the datasource */ processingHistory?: Array | undefined; }; export type Identity = { /** * Information about processing history for the datasource */ processingHistory?: Array | undefined; users?: DebugDatasourceStatusIdentityResponseComponent | undefined; groups?: DebugDatasourceStatusIdentityResponseComponent | undefined; memberships?: DebugDatasourceStatusIdentityResponseComponent | undefined; }; /** * The visibility of the datasource, an enum of VISIBLE_TO_ALL, VISIBLE_TO_TEST_GROUP, NOT_VISIBLE */ export declare const DatasourceVisibility: { readonly EnabledForAll: "ENABLED_FOR_ALL"; readonly EnabledForTestGroup: "ENABLED_FOR_TEST_GROUP"; readonly NotEnabled: "NOT_ENABLED"; }; /** * The visibility of the datasource, an enum of VISIBLE_TO_ALL, VISIBLE_TO_TEST_GROUP, NOT_VISIBLE */ export type DatasourceVisibility = OpenEnum; /** * Describes the response body of the /debug/{datasource}/status API call */ export type DebugDatasourceStatusResponse = { documents?: Documents | undefined; identity?: Identity | undefined; /** * The visibility of the datasource, an enum of VISIBLE_TO_ALL, VISIBLE_TO_TEST_GROUP, NOT_VISIBLE */ datasourceVisibility?: DatasourceVisibility | undefined; }; /** @internal */ export declare const DebugDatasourceStatusResponseCounts$inboundSchema: z.ZodType; export declare function debugDatasourceStatusResponseCountsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Documents$inboundSchema: z.ZodType; export declare function documentsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Identity$inboundSchema: z.ZodType; export declare function identityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DatasourceVisibility$inboundSchema: z.ZodType; /** @internal */ export declare const DebugDatasourceStatusResponse$inboundSchema: z.ZodType; export declare function debugDatasourceStatusResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=debugdatasourcestatusresponse.d.ts.map