ltijs
Version:
Easily turn your web application into a LTI 1.3 Learning Tool.
54 lines (53 loc) • 2.74 kB
TypeScript
import { z } from 'zod';
import { LtiMessageType } from '#services/launch/id-token.constants';
export declare const JwksResponseSchema: z.ZodObject<{
keys: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, z.core.$loose>;
export declare const ResourceLinkRequestSchema: z.ZodObject<{
"https://purl.imsglobal.org/spec/lti/claim/version": z.ZodLiteral<"1.3.0">;
"https://purl.imsglobal.org/spec/lti/claim/deployment_id": z.ZodString;
"https://purl.imsglobal.org/spec/lti/claim/roles": z.ZodArray<z.ZodString>;
iss: z.ZodString;
sub: z.ZodString;
aud: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
azp: z.ZodOptional<z.ZodString>;
iat: z.ZodNumber;
exp: z.ZodNumber;
nonce: z.ZodString;
"https://purl.imsglobal.org/spec/lti/claim/message_type": z.ZodLiteral<LtiMessageType.ResourceLinkRequest>;
"https://purl.imsglobal.org/spec/lti/claim/target_link_uri": z.ZodString;
"https://purl.imsglobal.org/spec/lti/claim/resource_link": z.ZodObject<{
id: z.ZodString;
}, z.core.$loose>;
}, z.core.$loose>;
export declare const DeepLinkingRequestSchema: z.ZodObject<{
"https://purl.imsglobal.org/spec/lti/claim/version": z.ZodLiteral<"1.3.0">;
"https://purl.imsglobal.org/spec/lti/claim/deployment_id": z.ZodString;
"https://purl.imsglobal.org/spec/lti/claim/roles": z.ZodArray<z.ZodString>;
iss: z.ZodString;
sub: z.ZodString;
aud: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
azp: z.ZodOptional<z.ZodString>;
iat: z.ZodNumber;
exp: z.ZodNumber;
nonce: z.ZodString;
"https://purl.imsglobal.org/spec/lti/claim/message_type": z.ZodLiteral<LtiMessageType.DeepLinkingRequest>;
}, z.core.$loose>;
export declare const SubmissionReviewRequestSchema: z.ZodObject<{
"https://purl.imsglobal.org/spec/lti/claim/version": z.ZodLiteral<"1.3.0">;
"https://purl.imsglobal.org/spec/lti/claim/deployment_id": z.ZodString;
"https://purl.imsglobal.org/spec/lti/claim/roles": z.ZodArray<z.ZodString>;
iss: z.ZodString;
sub: z.ZodString;
aud: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
azp: z.ZodOptional<z.ZodString>;
iat: z.ZodNumber;
exp: z.ZodNumber;
nonce: z.ZodString;
"https://purl.imsglobal.org/spec/lti/claim/message_type": z.ZodLiteral<LtiMessageType.SubmissionReviewRequest>;
"https://purl.imsglobal.org/spec/lti/claim/target_link_uri": z.ZodString;
"https://purl.imsglobal.org/spec/lti/claim/for_user": z.ZodObject<{
user_id: z.ZodString;
}, z.core.$loose>;
"https://purl.imsglobal.org/spec/lti-ags/claim/endpoint": z.ZodUnknown & z.ZodType<{} | null, unknown, z.core.$ZodTypeInternals<{} | null, unknown>>;
}, z.core.$loose>;