UNPKG

ltijs

Version:

Easily turn your web application into a LTI 1.3 Learning Tool.

58 lines (57 loc) • 2.3 kB
import { z } from 'zod'; import { LtiMessageType } from '#services/launch/id-token.constants'; import { IdTokenValidationMethod } from '#services/platform-manager/platform-manager.constants'; export declare const IdTokenValidationSchema: z.ZodObject<{ method: z.ZodEnum<typeof IdTokenValidationMethod>; key: z.ZodString; }, z.core.$strip>; export declare const PlatformKeysSchema: z.ZodObject<{ public: z.ZodString; private: z.ZodString; }, z.core.$strip>; export declare const PlatformRecordSchema: z.ZodObject<{ id: z.ZodString; url: z.ZodString; clientId: z.ZodString; name: z.ZodString; authenticationEndpoint: z.ZodString; accessTokenEndpoint: z.ZodString; authorizationServer: z.ZodOptional<z.ZodString>; idTokenValidation: z.ZodObject<{ method: z.ZodEnum<typeof IdTokenValidationMethod>; key: z.ZodString; }, z.core.$strip>; active: z.ZodBoolean; keys: z.ZodObject<{ public: z.ZodString; private: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export declare const AccessTokenRecordSchema: z.ZodObject<{ access_token: z.ZodString; token_type: z.ZodString; expires_in: z.ZodNumber; scope: z.ZodOptional<z.ZodString>; createdAt: z.ZodNumber; }, z.core.$strip>; export declare const IdTokenRecordSchema: z.ZodObject<{ id: z.ZodString; iss: z.ZodString; sub: z.ZodString; aud: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>; azp: z.ZodOptional<z.ZodString>; exp: z.ZodOptional<z.ZodNumber>; iat: z.ZodOptional<z.ZodNumber>; nonce: z.ZodOptional<z.ZodString>; given_name: z.ZodOptional<z.ZodString>; family_name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; client_id: z.ZodString; platform_id: z.ZodString; "https://purl.imsglobal.org/spec/lti/claim/deployment_id": z.ZodString; "https://purl.imsglobal.org/spec/lti/claim/message_type": z.ZodEnum<typeof LtiMessageType>; "https://purl.imsglobal.org/spec/lti/claim/version": z.ZodString; "https://purl.imsglobal.org/spec/lti/claim/roles": z.ZodArray<z.ZodString>; "https://purl.imsglobal.org/spec/lti/claim/target_link_uri": z.ZodOptional<z.ZodString>; }, z.core.$loose>;