UNPKG

okta-mcp-server

Version:

Model Context Protocol (MCP) server for Okta API operations with support for bulk operations and caching

552 lines 20.9 kB
import { z } from 'zod'; export declare const BulkCreateUsersSchema: z.ZodObject<{ format: z.ZodEnum<["json", "csv"]>; data: z.ZodString; options: z.ZodOptional<z.ZodObject<{ batchSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; activate: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; dryRun: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; continueOnError: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; csvMapping: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; login: z.ZodOptional<z.ZodString>; mobilePhone: z.ZodOptional<z.ZodString>; department: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; manager: z.ZodOptional<z.ZodString>; customAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { login?: string | undefined; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; department?: string | undefined; title?: string | undefined; manager?: string | undefined; mobilePhone?: string | undefined; customAttributes?: Record<string, string> | undefined; }, { login?: string | undefined; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; department?: string | undefined; title?: string | undefined; manager?: string | undefined; mobilePhone?: string | undefined; customAttributes?: Record<string, string> | undefined; }>>; }, "strip", z.ZodTypeAny, { activate?: boolean | undefined; batchSize?: number | undefined; dryRun?: boolean | undefined; continueOnError?: boolean | undefined; csvMapping?: { login?: string | undefined; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; department?: string | undefined; title?: string | undefined; manager?: string | undefined; mobilePhone?: string | undefined; customAttributes?: Record<string, string> | undefined; } | undefined; }, { activate?: boolean | undefined; batchSize?: number | undefined; dryRun?: boolean | undefined; continueOnError?: boolean | undefined; csvMapping?: { login?: string | undefined; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; department?: string | undefined; title?: string | undefined; manager?: string | undefined; mobilePhone?: string | undefined; customAttributes?: Record<string, string> | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { data: string; format: "json" | "csv"; options?: { activate?: boolean | undefined; batchSize?: number | undefined; dryRun?: boolean | undefined; continueOnError?: boolean | undefined; csvMapping?: { login?: string | undefined; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; department?: string | undefined; title?: string | undefined; manager?: string | undefined; mobilePhone?: string | undefined; customAttributes?: Record<string, string> | undefined; } | undefined; } | undefined; }, { data: string; format: "json" | "csv"; options?: { activate?: boolean | undefined; batchSize?: number | undefined; dryRun?: boolean | undefined; continueOnError?: boolean | undefined; csvMapping?: { login?: string | undefined; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; department?: string | undefined; title?: string | undefined; manager?: string | undefined; mobilePhone?: string | undefined; customAttributes?: Record<string, string> | undefined; } | undefined; } | undefined; }>; export declare const BulkUpdateUsersSchema: z.ZodObject<{ updateMode: z.ZodEnum<["filter", "list", "csv"]>; filter: z.ZodOptional<z.ZodString>; userIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; csvData: z.ZodOptional<z.ZodString>; updates: z.ZodOptional<z.ZodObject<{ profile: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { profile?: Record<string, unknown> | undefined; credentials?: Record<string, unknown> | undefined; }, { profile?: Record<string, unknown> | undefined; credentials?: Record<string, unknown> | undefined; }>>; options: z.ZodOptional<z.ZodObject<{ batchSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; dryRun: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; continueOnError: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; csvMapping: z.ZodOptional<z.ZodObject<{ identifier: z.ZodOptional<z.ZodString>; identifierType: z.ZodOptional<z.ZodEnum<["email", "id", "login"]>>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { fields?: Record<string, string> | undefined; identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; }, { fields?: Record<string, string> | undefined; identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; }>>; }, "strip", z.ZodTypeAny, { batchSize?: number | undefined; dryRun?: boolean | undefined; continueOnError?: boolean | undefined; csvMapping?: { fields?: Record<string, string> | undefined; identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; } | undefined; }, { batchSize?: number | undefined; dryRun?: boolean | undefined; continueOnError?: boolean | undefined; csvMapping?: { fields?: Record<string, string> | undefined; identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { updateMode: "filter" | "csv" | "list"; filter?: string | undefined; options?: { batchSize?: number | undefined; dryRun?: boolean | undefined; continueOnError?: boolean | undefined; csvMapping?: { fields?: Record<string, string> | undefined; identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; } | undefined; } | undefined; userIds?: string[] | undefined; csvData?: string | undefined; updates?: { profile?: Record<string, unknown> | undefined; credentials?: Record<string, unknown> | undefined; } | undefined; }, { updateMode: "filter" | "csv" | "list"; filter?: string | undefined; options?: { batchSize?: number | undefined; dryRun?: boolean | undefined; continueOnError?: boolean | undefined; csvMapping?: { fields?: Record<string, string> | undefined; identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; } | undefined; } | undefined; userIds?: string[] | undefined; csvData?: string | undefined; updates?: { profile?: Record<string, unknown> | undefined; credentials?: Record<string, unknown> | undefined; } | undefined; }>; export declare const BulkDeleteUsersSchema: z.ZodObject<{ selectionMode: z.ZodEnum<["filter", "list", "csv"]>; filter: z.ZodOptional<z.ZodString>; userIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; csvData: z.ZodOptional<z.ZodString>; action: z.ZodDefault<z.ZodEnum<["deactivate", "delete"]>>; options: z.ZodOptional<z.ZodObject<{ batchSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; dryRun: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; requireConfirmation: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; sendEmail: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; csvMapping: z.ZodOptional<z.ZodObject<{ identifier: z.ZodOptional<z.ZodString>; identifierType: z.ZodOptional<z.ZodEnum<["email", "id", "login"]>>; }, "strip", z.ZodTypeAny, { identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; }, { identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; }>>; }, "strip", z.ZodTypeAny, { sendEmail?: boolean | undefined; batchSize?: number | undefined; dryRun?: boolean | undefined; csvMapping?: { identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; } | undefined; requireConfirmation?: boolean | undefined; }, { sendEmail?: boolean | undefined; batchSize?: number | undefined; dryRun?: boolean | undefined; csvMapping?: { identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; } | undefined; requireConfirmation?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { action: "deactivate" | "delete"; selectionMode: "filter" | "csv" | "list"; filter?: string | undefined; options?: { sendEmail?: boolean | undefined; batchSize?: number | undefined; dryRun?: boolean | undefined; csvMapping?: { identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; } | undefined; requireConfirmation?: boolean | undefined; } | undefined; userIds?: string[] | undefined; csvData?: string | undefined; }, { selectionMode: "filter" | "csv" | "list"; filter?: string | undefined; action?: "deactivate" | "delete" | undefined; options?: { sendEmail?: boolean | undefined; batchSize?: number | undefined; dryRun?: boolean | undefined; csvMapping?: { identifier?: string | undefined; identifierType?: "login" | "email" | "id" | undefined; } | undefined; requireConfirmation?: boolean | undefined; } | undefined; userIds?: string[] | undefined; csvData?: string | undefined; }>; export declare const ExportUsersSchema: z.ZodObject<{ format: z.ZodEnum<["csv", "json"]>; filter: z.ZodOptional<z.ZodString>; search: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>; options: z.ZodOptional<z.ZodObject<{ includeGroups: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; includeApps: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; filename: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { limit?: number | undefined; includeGroups?: boolean | undefined; includeApps?: boolean | undefined; filename?: string | undefined; }, { limit?: number | undefined; includeGroups?: boolean | undefined; includeApps?: boolean | undefined; filename?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { format: "json" | "csv"; filter?: string | undefined; search?: string | undefined; options?: { limit?: number | undefined; includeGroups?: boolean | undefined; includeApps?: boolean | undefined; filename?: string | undefined; } | undefined; fields?: string[] | undefined; }, { format: "json" | "csv"; filter?: string | undefined; search?: string | undefined; options?: { limit?: number | undefined; includeGroups?: boolean | undefined; includeApps?: boolean | undefined; filename?: string | undefined; } | undefined; fields?: string[] | undefined; }>; export declare const GenerateImportTemplateSchema: z.ZodObject<{ format: z.ZodEnum<["csv", "json"]>; includeOptionalFields: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; includeCustomAttributes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; sampleRows: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { format: "json" | "csv"; includeOptionalFields?: boolean | undefined; includeCustomAttributes?: string[] | undefined; sampleRows?: number | undefined; }, { format: "json" | "csv"; includeOptionalFields?: boolean | undefined; includeCustomAttributes?: string[] | undefined; sampleRows?: number | undefined; }>; export declare const GetBulkOperationStatusSchema: z.ZodObject<{ operationId: z.ZodString; }, "strip", z.ZodTypeAny, { operationId: string; }, { operationId: string; }>; export declare const BulkOperationProgressSchema: z.ZodObject<{ operationId: z.ZodString; type: z.ZodEnum<["create", "update", "delete", "export"]>; status: z.ZodEnum<["pending", "running", "completed", "failed", "cancelled"]>; total: z.ZodNumber; processed: z.ZodNumber; succeeded: z.ZodNumber; failed: z.ZodNumber; startTime: z.ZodString; endTime: z.ZodOptional<z.ZodString>; errors: z.ZodOptional<z.ZodArray<z.ZodObject<{ index: z.ZodNumber; identifier: z.ZodOptional<z.ZodString>; error: z.ZodString; details: z.ZodOptional<z.ZodUnknown>; }, "strip", z.ZodTypeAny, { error: string; index: number; identifier?: string | undefined; details?: unknown; }, { error: string; index: number; identifier?: string | undefined; details?: unknown; }>, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; }, "strip", z.ZodTypeAny, { status: "pending" | "running" | "completed" | "failed" | "cancelled"; type: "delete" | "create" | "update" | "export"; startTime: string; operationId: string; failed: number; total: number; processed: number; succeeded: number; endTime?: string | undefined; errors?: { error: string; index: number; identifier?: string | undefined; details?: unknown; }[] | undefined; results?: unknown[] | undefined; }, { status: "pending" | "running" | "completed" | "failed" | "cancelled"; type: "delete" | "create" | "update" | "export"; startTime: string; operationId: string; failed: number; total: number; processed: number; succeeded: number; endTime?: string | undefined; errors?: { error: string; index: number; identifier?: string | undefined; details?: unknown; }[] | undefined; results?: unknown[] | undefined; }>; export declare const CSVUserInputSchema: z.ZodObject<{ email: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; login: z.ZodOptional<z.ZodString>; mobilePhone: z.ZodOptional<z.ZodString>; department: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; manager: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ email: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; login: z.ZodOptional<z.ZodString>; mobilePhone: z.ZodOptional<z.ZodString>; department: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; manager: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ email: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; login: z.ZodOptional<z.ZodString>; mobilePhone: z.ZodOptional<z.ZodString>; department: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; manager: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; export declare const JSONUserInputSchema: z.ZodObject<{ profile: z.ZodObject<{ email: z.ZodString; login: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; mobilePhone: z.ZodOptional<z.ZodString>; secondEmail: z.ZodOptional<z.ZodString>; department: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; manager: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ email: z.ZodString; login: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; mobilePhone: z.ZodOptional<z.ZodString>; secondEmail: z.ZodOptional<z.ZodString>; department: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; manager: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ email: z.ZodString; login: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; mobilePhone: z.ZodOptional<z.ZodString>; secondEmail: z.ZodOptional<z.ZodString>; department: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; manager: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; credentials: z.ZodOptional<z.ZodObject<{ password: z.ZodOptional<z.ZodObject<{ value: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value?: string | undefined; }, { value?: string | undefined; }>>; recovery_question: z.ZodOptional<z.ZodObject<{ question: z.ZodOptional<z.ZodString>; answer: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { question?: string | undefined; answer?: string | undefined; }, { question?: string | undefined; answer?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { password?: { value?: string | undefined; } | undefined; recovery_question?: { question?: string | undefined; answer?: string | undefined; } | undefined; }, { password?: { value?: string | undefined; } | undefined; recovery_question?: { question?: string | undefined; answer?: string | undefined; } | undefined; }>>; groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { profile: { email: string; login?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; department?: string | undefined; title?: string | undefined; manager?: string | undefined; mobilePhone?: string | undefined; secondEmail?: string | undefined; } & { [k: string]: unknown; }; credentials?: { password?: { value?: string | undefined; } | undefined; recovery_question?: { question?: string | undefined; answer?: string | undefined; } | undefined; } | undefined; groupIds?: string[] | undefined; }, { profile: { email: string; login?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; department?: string | undefined; title?: string | undefined; manager?: string | undefined; mobilePhone?: string | undefined; secondEmail?: string | undefined; } & { [k: string]: unknown; }; credentials?: { password?: { value?: string | undefined; } | undefined; recovery_question?: { question?: string | undefined; answer?: string | undefined; } | undefined; } | undefined; groupIds?: string[] | undefined; }>; //# sourceMappingURL=schemas.d.ts.map