import { z } from 'zod'; import { type CreateSecret } from '../db-entries/secret.js'; import { SecretType } from '../foundations/index.js'; export declare const encryptedSecretGuard: z.ZodObject; id: z.ZodType; userId: z.ZodType; type: z.ZodType; encryptedDek: z.ZodType; iv: z.ZodType; authTag: z.ZodType; ciphertext: z.ZodType; metadata: z.ZodType; createdAt: z.ZodType; updatedAt: z.ZodType; }, "encryptedDek" | "iv" | "authTag" | "ciphertext">, "strip", z.ZodTypeAny, { encryptedDek: import("../foundations/index.js").BufferLike; iv: import("../foundations/index.js").BufferLike; authTag: import("../foundations/index.js").BufferLike; ciphertext: import("../foundations/index.js").BufferLike; }, { encryptedDek: import("../foundations/index.js").BufferLike; iv: import("../foundations/index.js").BufferLike; authTag: import("../foundations/index.js").BufferLike; ciphertext: import("../foundations/index.js").BufferLike; }>; export type EncryptedSecret = z.infer; export declare const tokenSetGuard: z.ZodObject<{ id_token: z.ZodOptional; access_token: z.ZodString; refresh_token: z.ZodOptional; }, "strip", z.ZodTypeAny, { access_token: string; id_token?: string | undefined; refresh_token?: string | undefined; }, { access_token: string; id_token?: string | undefined; refresh_token?: string | undefined; }>; export type TokenSet = z.infer; export declare const tokenSetMetadataGuard: z.ZodObject<{ scope: z.ZodOptional; expiresAt: z.ZodOptional; tokenType: z.ZodOptional; hasRefreshToken: z.ZodBoolean; }, "strip", z.ZodTypeAny, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }>; export type TokenSetMetadata = z.infer; export declare const encryptedTokenSetGuard: z.ZodObject<{ encryptedTokenSetBase64: z.ZodString; metadata: z.ZodObject<{ scope: z.ZodOptional; expiresAt: z.ZodOptional; tokenType: z.ZodOptional; hasRefreshToken: z.ZodBoolean; }, "strip", z.ZodTypeAny, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }>; }, "strip", z.ZodTypeAny, { metadata: { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }; encryptedTokenSetBase64: string; }, { metadata: { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }; encryptedTokenSetBase64: string; }>; export type EncryptedTokenSet = z.infer; export type CreateSocialTokenSetSecret = CreateSecret & { metadata: TokenSetMetadata; }; export declare const secretSocialConnectorRelationPayloadGuard: z.ZodObject>; secretId: z.ZodType; connectorId: z.ZodType; target: z.ZodType; identityId: z.ZodType; }, "connectorId" | "target" | "identityId">, "strip", z.ZodTypeAny, { connectorId: string; target: string; identityId: string; }, { connectorId: string; target: string; identityId: string; }>; export type SecretSocialConnectorRelationPayload = z.infer; export declare const secretEnterpriseSsoConnectorRelationPayloadGuard: z.ZodObject>; secretId: z.ZodType; ssoConnectorId: z.ZodType; issuer: z.ZodType; identityId: z.ZodType; }, "issuer" | "ssoConnectorId" | "identityId">, "strip", z.ZodTypeAny, { issuer: string; ssoConnectorId: string; identityId: string; }, { issuer: string; ssoConnectorId: string; identityId: string; }>; export type SecretEnterpriseSsoConnectorRelationPayload = z.infer; export declare const socialTokenSetSecretGuard: z.ZodObject<{ tenantId: z.ZodType; id: z.ZodType; userId: z.ZodType; encryptedDek: z.ZodType; iv: z.ZodType; authTag: z.ZodType; ciphertext: z.ZodType; createdAt: z.ZodType; updatedAt: z.ZodType; } & { type: z.ZodLiteral; metadata: z.ZodObject<{ scope: z.ZodOptional; expiresAt: z.ZodOptional; tokenType: z.ZodOptional; hasRefreshToken: z.ZodBoolean; }, "strip", z.ZodTypeAny, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }>; connectorId: z.ZodString; identityId: z.ZodString; target: z.ZodString; }, "strip", z.ZodTypeAny, { type: SecretType; id: string; userId: string; tenantId: string; createdAt: number; updatedAt: number; connectorId: string; metadata: { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }; target: string; identityId: string; encryptedDek: import("../foundations/index.js").BufferLike; iv: import("../foundations/index.js").BufferLike; authTag: import("../foundations/index.js").BufferLike; ciphertext: import("../foundations/index.js").BufferLike; }, { type: SecretType; id: string; userId: string; tenantId: string; createdAt: number; updatedAt: number; connectorId: string; metadata: { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }; target: string; identityId: string; encryptedDek: import("../foundations/index.js").BufferLike; iv: import("../foundations/index.js").BufferLike; authTag: import("../foundations/index.js").BufferLike; ciphertext: import("../foundations/index.js").BufferLike; }>; /** * Social token set secret type * - Secret type is `FederatedTokenSet` * - Metadata is the social connector token set metadata * - Joined with the social connector relation */ export type SocialTokenSetSecret = z.infer; export declare const desensitizedSocialTokenSetSecretGuard: z.ZodObject; id: z.ZodType; userId: z.ZodType; encryptedDek: z.ZodType; iv: z.ZodType; authTag: z.ZodType; ciphertext: z.ZodType; createdAt: z.ZodType; updatedAt: z.ZodType; } & { type: z.ZodLiteral; metadata: z.ZodObject<{ scope: z.ZodOptional; expiresAt: z.ZodOptional; tokenType: z.ZodOptional; hasRefreshToken: z.ZodBoolean; }, "strip", z.ZodTypeAny, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }>; connectorId: z.ZodString; identityId: z.ZodString; target: z.ZodString; }, "encryptedDek" | "iv" | "authTag" | "ciphertext">, "strip", z.ZodTypeAny, { type: SecretType; id: string; userId: string; tenantId: string; createdAt: number; updatedAt: number; connectorId: string; metadata: { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }; target: string; identityId: string; }, { type: SecretType; id: string; userId: string; tenantId: string; createdAt: number; updatedAt: number; connectorId: string; metadata: { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }; target: string; identityId: string; }>; export type DesensitizedSocialTokenSetSecret = z.infer; export declare const enterpriseSsoTokenSetSecretGuard: z.ZodObject<{ tenantId: z.ZodType; id: z.ZodType; userId: z.ZodType; encryptedDek: z.ZodType; iv: z.ZodType; authTag: z.ZodType; ciphertext: z.ZodType; createdAt: z.ZodType; updatedAt: z.ZodType; } & { type: z.ZodLiteral; metadata: z.ZodObject<{ scope: z.ZodOptional; expiresAt: z.ZodOptional; tokenType: z.ZodOptional; hasRefreshToken: z.ZodBoolean; }, "strip", z.ZodTypeAny, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }>; ssoConnectorId: z.ZodString; issuer: z.ZodString; identityId: z.ZodString; }, "strip", z.ZodTypeAny, { type: SecretType; id: string; userId: string; tenantId: string; createdAt: number; issuer: string; updatedAt: number; metadata: { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }; ssoConnectorId: string; identityId: string; encryptedDek: import("../foundations/index.js").BufferLike; iv: import("../foundations/index.js").BufferLike; authTag: import("../foundations/index.js").BufferLike; ciphertext: import("../foundations/index.js").BufferLike; }, { type: SecretType; id: string; userId: string; tenantId: string; createdAt: number; issuer: string; updatedAt: number; metadata: { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }; ssoConnectorId: string; identityId: string; encryptedDek: import("../foundations/index.js").BufferLike; iv: import("../foundations/index.js").BufferLike; authTag: import("../foundations/index.js").BufferLike; ciphertext: import("../foundations/index.js").BufferLike; }>; /** * Enterprise SSO token set secret type * - Secret type is `FederatedTokenSet` * - Metadata is the Enterprise SSO connector token set metadata * - Joined with the Enterprise SSO connector relation */ export type EnterpriseSsoTokenSetSecret = z.infer; export declare const desensitizedEnterpriseSsoTokenSetSecretGuard: z.ZodObject; id: z.ZodType; userId: z.ZodType; encryptedDek: z.ZodType; iv: z.ZodType; authTag: z.ZodType; ciphertext: z.ZodType; createdAt: z.ZodType; updatedAt: z.ZodType; } & { type: z.ZodLiteral; metadata: z.ZodObject<{ scope: z.ZodOptional; expiresAt: z.ZodOptional; tokenType: z.ZodOptional; hasRefreshToken: z.ZodBoolean; }, "strip", z.ZodTypeAny, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }, { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }>; ssoConnectorId: z.ZodString; issuer: z.ZodString; identityId: z.ZodString; }, "encryptedDek" | "iv" | "authTag" | "ciphertext">, "strip", z.ZodTypeAny, { type: SecretType; id: string; userId: string; tenantId: string; createdAt: number; issuer: string; updatedAt: number; metadata: { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }; ssoConnectorId: string; identityId: string; }, { type: SecretType; id: string; userId: string; tenantId: string; createdAt: number; issuer: string; updatedAt: number; metadata: { hasRefreshToken: boolean; scope?: string | undefined; expiresAt?: number | undefined; tokenType?: string | undefined; }; ssoConnectorId: string; identityId: string; }>; export type DesensitizedEnterpriseSsoTokenSetSecret = z.infer; export type DesensitizedTokenSetSecret = Omit; export declare const getThirdPartyAccessTokenResponseGuard: z.ZodObject<{ scope: z.ZodOptional; expires_in: z.ZodOptional>; token_type: z.ZodOptional; } & { access_token: z.ZodString; }, "strip", z.ZodTypeAny, { access_token: string; scope?: string | undefined; expires_in?: string | number | undefined; token_type?: string | undefined; }, { access_token: string; scope?: string | undefined; expires_in?: string | number | undefined; token_type?: string | undefined; }>; export type GetThirdPartyAccessTokenResponse = z.infer;