@shipfox/api-auth-dto 19.0.0 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 10 files with swc (343.44ms)
2
+ Successfully compiled: 11 files with swc (250.85ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @shipfox/api-auth-dto
2
2
 
3
+ ## 20.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9113421: Add MCP OAuth discovery, public-client registration, and Client ID Metadata Document resolution for the read-only profile.
8
+
3
9
  ## 19.0.0
4
10
 
5
11
  ### Minor Changes
@@ -3,6 +3,7 @@ export { type AdminBootstrapStateDto, type AdminGrantDto, type AdministratorGran
3
3
  export { type ChangePasswordBodyDto, changePasswordBodySchema, emailSchema, type ImpersonateResponseDto, impersonateResponseSchema, type LoginBodyDto, type LoginMethodDto, type LoginMethodsResponseDto, type LoginResponseDto, type LogoutBodyDto, loginBodySchema, loginMethodSchema, loginMethodsResponseSchema, loginResponseSchema, logoutBodySchema, type MeResponseDto, meResponseSchema, type PasswordResetConfirmBodyDto, type PasswordResetConfirmResponseDto, type PasswordResetRequestBodyDto, passwordResetConfirmBodySchema, passwordResetConfirmResponseSchema, passwordResetRequestBodySchema, passwordSchema, type RefreshResponseDto, refreshResponseSchema, type SessionResponseDto, type SignupAcceptErrorDto, type SignupBodyDto, type SignupMembershipDto, type SignupResponseDto, sessionResponseSchema, signupAcceptErrorSchema, signupBodySchema, signupMembershipSchema, signupResponseSchema, type VerifyEmailConfirmBodyDto, type VerifyEmailConfirmResponseDto, type VerifyEmailResendBodyDto, type VerifyEmailResendResponseDto, verifyEmailConfirmBodySchema, verifyEmailConfirmResponseSchema, verifyEmailResendBodySchema, verifyEmailResendResponseSchema, } from './auth.js';
4
4
  export { type E2eCreateSessionBodyDto, type E2eCreateSessionResponseDto, type E2eCreateUserBodyDto, type E2eCreateUserResponseDto, type E2eSessionDto, e2eCreateSessionBodySchema, e2eCreateSessionResponseSchema, e2eCreateUserBodySchema, e2eCreateUserResponseSchema, } from './e2e.js';
5
5
  export { JOB_LEASE_TOKEN_AUDIENCE, type JobLeaseTokenClaims, jobLeaseTokenClaimsSchema, } from './job-lease-token.js';
6
+ export { OAUTH_READ_SCOPE, type OAuthAuthorizationServerMetadataDto, type OAuthClientMetadataDocumentDto, type OAuthDynamicClientRegistrationRequestDto, type OAuthDynamicClientRegistrationResponseDto, type OAuthProtectedResourceMetadataDto, oauthAuthorizationServerMetadataSchema, oauthClientMetadataDocumentSchema, oauthDynamicClientRegistrationRequestSchema, oauthDynamicClientRegistrationResponseSchema, oauthProtectedResourceMetadataSchema, } from './oauth.js';
6
7
  export { RUNNER_SESSION_TOKEN_AUDIENCE, type RunnerSessionTokenClaims, runnerSessionTokenClaimsSchema, } from './runner-session-token.js';
7
8
  export { type UserDto, userDtoSchema, userStatusSchema } from './user.js';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,mBAAmB,EACnB,KAAK,YAAY,EACjB,KAAK,mCAAmC,EACxC,KAAK,qBAAqB,EAC1B,gBAAgB,EAChB,oCAAoC,EACpC,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,4BAA4B,EACjC,KAAK,kCAAkC,EACvC,KAAK,qCAAqC,EAC1C,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EACzC,KAAK,2BAA2B,EAChC,KAAK,SAAS,EACd,yBAAyB,EACzB,mBAAmB,EACnB,+BAA+B,EAC/B,qCAAqC,EACrC,wCAAwC,EACxC,+BAA+B,EAC/B,kCAAkC,EAClC,uCAAuC,EACvC,8BAA8B,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K,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,0BAA0B,EAC1B,8BAA8B,EAC9B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,wBAAwB,EACxB,KAAK,mBAAmB,EACxB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAChB,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,wCAAwC,EAC7C,KAAK,yCAAyC,EAC9C,KAAK,iCAAiC,EACtC,sCAAsC,EACtC,iCAAiC,EACjC,2CAA2C,EAC3C,4CAA4C,EAC5C,oCAAoC,GACrC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,6BAA6B,EAC7B,KAAK,wBAAwB,EAC7B,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAC,KAAK,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAC,MAAM,WAAW,CAAC"}
@@ -3,6 +3,7 @@ export { adminBootstrapStateSchema, adminGrantDtoSchema, administratorGrantSumma
3
3
  export { changePasswordBodySchema, emailSchema, impersonateResponseSchema, loginBodySchema, loginMethodSchema, loginMethodsResponseSchema, loginResponseSchema, logoutBodySchema, meResponseSchema, passwordResetConfirmBodySchema, passwordResetConfirmResponseSchema, passwordResetRequestBodySchema, passwordSchema, refreshResponseSchema, sessionResponseSchema, signupAcceptErrorSchema, signupBodySchema, signupMembershipSchema, signupResponseSchema, verifyEmailConfirmBodySchema, verifyEmailConfirmResponseSchema, verifyEmailResendBodySchema, verifyEmailResendResponseSchema } from './auth.js';
4
4
  export { e2eCreateSessionBodySchema, e2eCreateSessionResponseSchema, e2eCreateUserBodySchema, e2eCreateUserResponseSchema } from './e2e.js';
5
5
  export { JOB_LEASE_TOKEN_AUDIENCE, jobLeaseTokenClaimsSchema } from './job-lease-token.js';
6
+ export { OAUTH_READ_SCOPE, oauthAuthorizationServerMetadataSchema, oauthClientMetadataDocumentSchema, oauthDynamicClientRegistrationRequestSchema, oauthDynamicClientRegistrationResponseSchema, oauthProtectedResourceMetadataSchema } from './oauth.js';
6
7
  export { RUNNER_SESSION_TOKEN_AUDIENCE, runnerSessionTokenClaimsSchema } from './runner-session-token.js';
7
8
  export { userDtoSchema, userStatusSchema } from './user.js';
8
9
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n AUTH_PASSWORD_RESET_SEND_REQUESTED,\n AUTH_USER_SIGNED_UP,\n type AuthEventMap,\n type AuthPasswordResetSendRequestedEvent,\n type AuthUserSignedUpEvent,\n authEventSchemas,\n authPasswordResetSendRequestedSchema,\n authUserSignedUpSchema,\n} from '../events.js';\nexport {\n type AdminBootstrapStateDto,\n type AdminGrantDto,\n type AdministratorGrantSummaryDto,\n type AdministratorUserDirectoryQueryDto,\n type AdministratorUserDirectoryResponseDto,\n type AdministratorUserIdentityDto,\n type AdministratorUserLookupQueryDto,\n type AdministratorUserMutationResponseDto,\n type AdministratorUserSummaryDto,\n type AdminRole,\n adminBootstrapStateSchema,\n adminGrantDtoSchema,\n administratorGrantSummarySchema,\n administratorUserDirectoryQuerySchema,\n administratorUserDirectoryResponseSchema,\n administratorUserIdentitySchema,\n administratorUserLookupQuerySchema,\n administratorUserMutationResponseSchema,\n administratorUserSummarySchema,\n adminRoleSchema,\n type BootstrapAdminOwnerBodyDto,\n type BootstrapAdminOwnerResponseDto,\n bootstrapAdminOwnerBodySchema,\n bootstrapAdminOwnerResponseSchema,\n type GrantAdminRoleBodyDto,\n type GrantAdminRoleResponseDto,\n grantAdminRoleBodySchema,\n grantAdminRoleResponseSchema,\n type ImpersonateUserBodyDto,\n impersonateUserBodySchema,\n isAdminRole,\n type ListAdminGrantsQueryDto,\n type ListAdminGrantsResponseDto,\n listAdminGrantsQuerySchema,\n listAdminGrantsResponseSchema,\n type ReactivateAdministratorUserBodyDto,\n type RevokeAdminGrantBodyDto,\n type RevokeAdminGrantResponseDto,\n type RevokeAdministratorUserSessionsBodyDto,\n type RevokeAdministratorUserSessionsResponseDto,\n reactivateAdministratorUserBodySchema,\n revokeAdminGrantBodySchema,\n revokeAdminGrantResponseSchema,\n revokeAdministratorUserSessionsBodySchema,\n revokeAdministratorUserSessionsResponseSchema,\n type SuspendAdministratorUserBodyDto,\n suspendAdministratorUserBodySchema,\n} from './admin.js';\nexport {\n type ChangePasswordBodyDto,\n changePasswordBodySchema,\n emailSchema,\n type ImpersonateResponseDto,\n impersonateResponseSchema,\n type LoginBodyDto,\n type LoginMethodDto,\n type LoginMethodsResponseDto,\n type LoginResponseDto,\n type LogoutBodyDto,\n loginBodySchema,\n loginMethodSchema,\n loginMethodsResponseSchema,\n loginResponseSchema,\n logoutBodySchema,\n type MeResponseDto,\n meResponseSchema,\n type PasswordResetConfirmBodyDto,\n type PasswordResetConfirmResponseDto,\n type PasswordResetRequestBodyDto,\n passwordResetConfirmBodySchema,\n passwordResetConfirmResponseSchema,\n passwordResetRequestBodySchema,\n passwordSchema,\n type RefreshResponseDto,\n refreshResponseSchema,\n type SessionResponseDto,\n type SignupAcceptErrorDto,\n type SignupBodyDto,\n type SignupMembershipDto,\n type SignupResponseDto,\n sessionResponseSchema,\n signupAcceptErrorSchema,\n signupBodySchema,\n signupMembershipSchema,\n signupResponseSchema,\n type VerifyEmailConfirmBodyDto,\n type VerifyEmailConfirmResponseDto,\n type VerifyEmailResendBodyDto,\n type VerifyEmailResendResponseDto,\n verifyEmailConfirmBodySchema,\n verifyEmailConfirmResponseSchema,\n verifyEmailResendBodySchema,\n verifyEmailResendResponseSchema,\n} from './auth.js';\nexport {\n type E2eCreateSessionBodyDto,\n type E2eCreateSessionResponseDto,\n type E2eCreateUserBodyDto,\n type E2eCreateUserResponseDto,\n type E2eSessionDto,\n e2eCreateSessionBodySchema,\n e2eCreateSessionResponseSchema,\n e2eCreateUserBodySchema,\n e2eCreateUserResponseSchema,\n} from './e2e.js';\nexport {\n JOB_LEASE_TOKEN_AUDIENCE,\n type JobLeaseTokenClaims,\n jobLeaseTokenClaimsSchema,\n} from './job-lease-token.js';\nexport {\n RUNNER_SESSION_TOKEN_AUDIENCE,\n type RunnerSessionTokenClaims,\n runnerSessionTokenClaimsSchema,\n} from './runner-session-token.js';\nexport {type UserDto, userDtoSchema, userStatusSchema} from './user.js';\n"],"names":["AUTH_PASSWORD_RESET_SEND_REQUESTED","AUTH_USER_SIGNED_UP","authEventSchemas","authPasswordResetSendRequestedSchema","authUserSignedUpSchema","adminBootstrapStateSchema","adminGrantDtoSchema","administratorGrantSummarySchema","administratorUserDirectoryQuerySchema","administratorUserDirectoryResponseSchema","administratorUserIdentitySchema","administratorUserLookupQuerySchema","administratorUserMutationResponseSchema","administratorUserSummarySchema","adminRoleSchema","bootstrapAdminOwnerBodySchema","bootstrapAdminOwnerResponseSchema","grantAdminRoleBodySchema","grantAdminRoleResponseSchema","impersonateUserBodySchema","isAdminRole","listAdminGrantsQuerySchema","listAdminGrantsResponseSchema","reactivateAdministratorUserBodySchema","revokeAdminGrantBodySchema","revokeAdminGrantResponseSchema","revokeAdministratorUserSessionsBodySchema","revokeAdministratorUserSessionsResponseSchema","suspendAdministratorUserBodySchema","changePasswordBodySchema","emailSchema","impersonateResponseSchema","loginBodySchema","loginMethodSchema","loginMethodsResponseSchema","loginResponseSchema","logoutBodySchema","meResponseSchema","passwordResetConfirmBodySchema","passwordResetConfirmResponseSchema","passwordResetRequestBodySchema","passwordSchema","refreshResponseSchema","sessionResponseSchema","signupAcceptErrorSchema","signupBodySchema","signupMembershipSchema","signupResponseSchema","verifyEmailConfirmBodySchema","verifyEmailConfirmResponseSchema","verifyEmailResendBodySchema","verifyEmailResendResponseSchema","e2eCreateSessionBodySchema","e2eCreateSessionResponseSchema","e2eCreateUserBodySchema","e2eCreateUserResponseSchema","JOB_LEASE_TOKEN_AUDIENCE","jobLeaseTokenClaimsSchema","RUNNER_SESSION_TOKEN_AUDIENCE","runnerSessionTokenClaimsSchema","userDtoSchema","userStatusSchema"],"mappings":"AAAA,SACEA,kCAAkC,EAClCC,mBAAmB,EAInBC,gBAAgB,EAChBC,oCAAoC,EACpCC,sBAAsB,QACjB,eAAe;AACtB,SAWEC,yBAAyB,EACzBC,mBAAmB,EACnBC,+BAA+B,EAC/BC,qCAAqC,EACrCC,wCAAwC,EACxCC,+BAA+B,EAC/BC,kCAAkC,EAClCC,uCAAuC,EACvCC,8BAA8B,EAC9BC,eAAe,EAGfC,6BAA6B,EAC7BC,iCAAiC,EAGjCC,wBAAwB,EACxBC,4BAA4B,EAE5BC,yBAAyB,EACzBC,WAAW,EAGXC,0BAA0B,EAC1BC,6BAA6B,EAM7BC,qCAAqC,EACrCC,0BAA0B,EAC1BC,8BAA8B,EAC9BC,yCAAyC,EACzCC,6CAA6C,EAE7CC,kCAAkC,QAC7B,aAAa;AACpB,SAEEC,wBAAwB,EACxBC,WAAW,EAEXC,yBAAyB,EAMzBC,eAAe,EACfC,iBAAiB,EACjBC,0BAA0B,EAC1BC,mBAAmB,EACnBC,gBAAgB,EAEhBC,gBAAgB,EAIhBC,8BAA8B,EAC9BC,kCAAkC,EAClCC,8BAA8B,EAC9BC,cAAc,EAEdC,qBAAqB,EAMrBC,qBAAqB,EACrBC,uBAAuB,EACvBC,gBAAgB,EAChBC,sBAAsB,EACtBC,oBAAoB,EAKpBC,4BAA4B,EAC5BC,gCAAgC,EAChCC,2BAA2B,EAC3BC,+BAA+B,QAC1B,YAAY;AACnB,SAMEC,0BAA0B,EAC1BC,8BAA8B,EAC9BC,uBAAuB,EACvBC,2BAA2B,QACtB,WAAW;AAClB,SACEC,wBAAwB,EAExBC,yBAAyB,QACpB,uBAAuB;AAC9B,SACEC,6BAA6B,EAE7BC,8BAA8B,QACzB,4BAA4B;AACnC,SAAsBC,aAAa,EAAEC,gBAAgB,QAAO,YAAY"}
1
+ {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n AUTH_PASSWORD_RESET_SEND_REQUESTED,\n AUTH_USER_SIGNED_UP,\n type AuthEventMap,\n type AuthPasswordResetSendRequestedEvent,\n type AuthUserSignedUpEvent,\n authEventSchemas,\n authPasswordResetSendRequestedSchema,\n authUserSignedUpSchema,\n} from '../events.js';\nexport {\n type AdminBootstrapStateDto,\n type AdminGrantDto,\n type AdministratorGrantSummaryDto,\n type AdministratorUserDirectoryQueryDto,\n type AdministratorUserDirectoryResponseDto,\n type AdministratorUserIdentityDto,\n type AdministratorUserLookupQueryDto,\n type AdministratorUserMutationResponseDto,\n type AdministratorUserSummaryDto,\n type AdminRole,\n adminBootstrapStateSchema,\n adminGrantDtoSchema,\n administratorGrantSummarySchema,\n administratorUserDirectoryQuerySchema,\n administratorUserDirectoryResponseSchema,\n administratorUserIdentitySchema,\n administratorUserLookupQuerySchema,\n administratorUserMutationResponseSchema,\n administratorUserSummarySchema,\n adminRoleSchema,\n type BootstrapAdminOwnerBodyDto,\n type BootstrapAdminOwnerResponseDto,\n bootstrapAdminOwnerBodySchema,\n bootstrapAdminOwnerResponseSchema,\n type GrantAdminRoleBodyDto,\n type GrantAdminRoleResponseDto,\n grantAdminRoleBodySchema,\n grantAdminRoleResponseSchema,\n type ImpersonateUserBodyDto,\n impersonateUserBodySchema,\n isAdminRole,\n type ListAdminGrantsQueryDto,\n type ListAdminGrantsResponseDto,\n listAdminGrantsQuerySchema,\n listAdminGrantsResponseSchema,\n type ReactivateAdministratorUserBodyDto,\n type RevokeAdminGrantBodyDto,\n type RevokeAdminGrantResponseDto,\n type RevokeAdministratorUserSessionsBodyDto,\n type RevokeAdministratorUserSessionsResponseDto,\n reactivateAdministratorUserBodySchema,\n revokeAdminGrantBodySchema,\n revokeAdminGrantResponseSchema,\n revokeAdministratorUserSessionsBodySchema,\n revokeAdministratorUserSessionsResponseSchema,\n type SuspendAdministratorUserBodyDto,\n suspendAdministratorUserBodySchema,\n} from './admin.js';\nexport {\n type ChangePasswordBodyDto,\n changePasswordBodySchema,\n emailSchema,\n type ImpersonateResponseDto,\n impersonateResponseSchema,\n type LoginBodyDto,\n type LoginMethodDto,\n type LoginMethodsResponseDto,\n type LoginResponseDto,\n type LogoutBodyDto,\n loginBodySchema,\n loginMethodSchema,\n loginMethodsResponseSchema,\n loginResponseSchema,\n logoutBodySchema,\n type MeResponseDto,\n meResponseSchema,\n type PasswordResetConfirmBodyDto,\n type PasswordResetConfirmResponseDto,\n type PasswordResetRequestBodyDto,\n passwordResetConfirmBodySchema,\n passwordResetConfirmResponseSchema,\n passwordResetRequestBodySchema,\n passwordSchema,\n type RefreshResponseDto,\n refreshResponseSchema,\n type SessionResponseDto,\n type SignupAcceptErrorDto,\n type SignupBodyDto,\n type SignupMembershipDto,\n type SignupResponseDto,\n sessionResponseSchema,\n signupAcceptErrorSchema,\n signupBodySchema,\n signupMembershipSchema,\n signupResponseSchema,\n type VerifyEmailConfirmBodyDto,\n type VerifyEmailConfirmResponseDto,\n type VerifyEmailResendBodyDto,\n type VerifyEmailResendResponseDto,\n verifyEmailConfirmBodySchema,\n verifyEmailConfirmResponseSchema,\n verifyEmailResendBodySchema,\n verifyEmailResendResponseSchema,\n} from './auth.js';\nexport {\n type E2eCreateSessionBodyDto,\n type E2eCreateSessionResponseDto,\n type E2eCreateUserBodyDto,\n type E2eCreateUserResponseDto,\n type E2eSessionDto,\n e2eCreateSessionBodySchema,\n e2eCreateSessionResponseSchema,\n e2eCreateUserBodySchema,\n e2eCreateUserResponseSchema,\n} from './e2e.js';\nexport {\n JOB_LEASE_TOKEN_AUDIENCE,\n type JobLeaseTokenClaims,\n jobLeaseTokenClaimsSchema,\n} from './job-lease-token.js';\nexport {\n OAUTH_READ_SCOPE,\n type OAuthAuthorizationServerMetadataDto,\n type OAuthClientMetadataDocumentDto,\n type OAuthDynamicClientRegistrationRequestDto,\n type OAuthDynamicClientRegistrationResponseDto,\n type OAuthProtectedResourceMetadataDto,\n oauthAuthorizationServerMetadataSchema,\n oauthClientMetadataDocumentSchema,\n oauthDynamicClientRegistrationRequestSchema,\n oauthDynamicClientRegistrationResponseSchema,\n oauthProtectedResourceMetadataSchema,\n} from './oauth.js';\nexport {\n RUNNER_SESSION_TOKEN_AUDIENCE,\n type RunnerSessionTokenClaims,\n runnerSessionTokenClaimsSchema,\n} from './runner-session-token.js';\nexport {type UserDto, userDtoSchema, userStatusSchema} from './user.js';\n"],"names":["AUTH_PASSWORD_RESET_SEND_REQUESTED","AUTH_USER_SIGNED_UP","authEventSchemas","authPasswordResetSendRequestedSchema","authUserSignedUpSchema","adminBootstrapStateSchema","adminGrantDtoSchema","administratorGrantSummarySchema","administratorUserDirectoryQuerySchema","administratorUserDirectoryResponseSchema","administratorUserIdentitySchema","administratorUserLookupQuerySchema","administratorUserMutationResponseSchema","administratorUserSummarySchema","adminRoleSchema","bootstrapAdminOwnerBodySchema","bootstrapAdminOwnerResponseSchema","grantAdminRoleBodySchema","grantAdminRoleResponseSchema","impersonateUserBodySchema","isAdminRole","listAdminGrantsQuerySchema","listAdminGrantsResponseSchema","reactivateAdministratorUserBodySchema","revokeAdminGrantBodySchema","revokeAdminGrantResponseSchema","revokeAdministratorUserSessionsBodySchema","revokeAdministratorUserSessionsResponseSchema","suspendAdministratorUserBodySchema","changePasswordBodySchema","emailSchema","impersonateResponseSchema","loginBodySchema","loginMethodSchema","loginMethodsResponseSchema","loginResponseSchema","logoutBodySchema","meResponseSchema","passwordResetConfirmBodySchema","passwordResetConfirmResponseSchema","passwordResetRequestBodySchema","passwordSchema","refreshResponseSchema","sessionResponseSchema","signupAcceptErrorSchema","signupBodySchema","signupMembershipSchema","signupResponseSchema","verifyEmailConfirmBodySchema","verifyEmailConfirmResponseSchema","verifyEmailResendBodySchema","verifyEmailResendResponseSchema","e2eCreateSessionBodySchema","e2eCreateSessionResponseSchema","e2eCreateUserBodySchema","e2eCreateUserResponseSchema","JOB_LEASE_TOKEN_AUDIENCE","jobLeaseTokenClaimsSchema","OAUTH_READ_SCOPE","oauthAuthorizationServerMetadataSchema","oauthClientMetadataDocumentSchema","oauthDynamicClientRegistrationRequestSchema","oauthDynamicClientRegistrationResponseSchema","oauthProtectedResourceMetadataSchema","RUNNER_SESSION_TOKEN_AUDIENCE","runnerSessionTokenClaimsSchema","userDtoSchema","userStatusSchema"],"mappings":"AAAA,SACEA,kCAAkC,EAClCC,mBAAmB,EAInBC,gBAAgB,EAChBC,oCAAoC,EACpCC,sBAAsB,QACjB,eAAe;AACtB,SAWEC,yBAAyB,EACzBC,mBAAmB,EACnBC,+BAA+B,EAC/BC,qCAAqC,EACrCC,wCAAwC,EACxCC,+BAA+B,EAC/BC,kCAAkC,EAClCC,uCAAuC,EACvCC,8BAA8B,EAC9BC,eAAe,EAGfC,6BAA6B,EAC7BC,iCAAiC,EAGjCC,wBAAwB,EACxBC,4BAA4B,EAE5BC,yBAAyB,EACzBC,WAAW,EAGXC,0BAA0B,EAC1BC,6BAA6B,EAM7BC,qCAAqC,EACrCC,0BAA0B,EAC1BC,8BAA8B,EAC9BC,yCAAyC,EACzCC,6CAA6C,EAE7CC,kCAAkC,QAC7B,aAAa;AACpB,SAEEC,wBAAwB,EACxBC,WAAW,EAEXC,yBAAyB,EAMzBC,eAAe,EACfC,iBAAiB,EACjBC,0BAA0B,EAC1BC,mBAAmB,EACnBC,gBAAgB,EAEhBC,gBAAgB,EAIhBC,8BAA8B,EAC9BC,kCAAkC,EAClCC,8BAA8B,EAC9BC,cAAc,EAEdC,qBAAqB,EAMrBC,qBAAqB,EACrBC,uBAAuB,EACvBC,gBAAgB,EAChBC,sBAAsB,EACtBC,oBAAoB,EAKpBC,4BAA4B,EAC5BC,gCAAgC,EAChCC,2BAA2B,EAC3BC,+BAA+B,QAC1B,YAAY;AACnB,SAMEC,0BAA0B,EAC1BC,8BAA8B,EAC9BC,uBAAuB,EACvBC,2BAA2B,QACtB,WAAW;AAClB,SACEC,wBAAwB,EAExBC,yBAAyB,QACpB,uBAAuB;AAC9B,SACEC,gBAAgB,EAMhBC,sCAAsC,EACtCC,iCAAiC,EACjCC,2CAA2C,EAC3CC,4CAA4C,EAC5CC,oCAAoC,QAC/B,aAAa;AACpB,SACEC,6BAA6B,EAE7BC,8BAA8B,QACzB,4BAA4B;AACnC,SAAsBC,aAAa,EAAEC,gBAAgB,QAAO,YAAY"}
@@ -0,0 +1,79 @@
1
+ import { z } from 'zod';
2
+ /** The only scope exposed by the MCP read-only profile. */
3
+ export declare const OAUTH_READ_SCOPE: 'read';
4
+ /** RFC 9728 metadata advertised for the protected MCP resource. */
5
+ export declare const oauthProtectedResourceMetadataSchema: z.ZodObject<{
6
+ resource: z.ZodString;
7
+ authorization_servers: z.ZodArray<z.ZodString>;
8
+ scopes_supported: z.ZodArray<z.ZodLiteral<"read">>;
9
+ }, z.core.$strict>;
10
+ export type OAuthProtectedResourceMetadataDto = z.infer<typeof oauthProtectedResourceMetadataSchema>;
11
+ /** RFC 8414 metadata for the MCP authorization server. */
12
+ export declare const oauthAuthorizationServerMetadataSchema: z.ZodObject<{
13
+ issuer: z.ZodString;
14
+ authorization_endpoint: z.ZodString;
15
+ token_endpoint: z.ZodString;
16
+ registration_endpoint: z.ZodString;
17
+ response_types_supported: z.ZodArray<z.ZodLiteral<"code">>;
18
+ grant_types_supported: z.ZodArray<z.ZodEnum<{
19
+ authorization_code: "authorization_code";
20
+ refresh_token: "refresh_token";
21
+ }>>;
22
+ code_challenge_methods_supported: z.ZodArray<z.ZodLiteral<"S256">>;
23
+ token_endpoint_auth_methods_supported: z.ZodArray<z.ZodLiteral<"none">>;
24
+ scopes_supported: z.ZodArray<z.ZodLiteral<"read">>;
25
+ client_id_metadata_document_supported: z.ZodLiteral<true>;
26
+ }, z.core.$strict>;
27
+ export type OAuthAuthorizationServerMetadataDto = z.infer<typeof oauthAuthorizationServerMetadataSchema>;
28
+ /** RFC 7591 request shape accepted by the MCP public-client profile. */
29
+ export declare const oauthDynamicClientRegistrationRequestSchema: z.ZodObject<{
30
+ client_name: z.ZodString;
31
+ redirect_uris: z.ZodArray<z.ZodString>;
32
+ grant_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
33
+ authorization_code: "authorization_code";
34
+ refresh_token: "refresh_token";
35
+ }>>>;
36
+ response_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<"code">>>;
37
+ token_endpoint_auth_method: z.ZodOptional<z.ZodLiteral<"none">>;
38
+ scope: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strict>;
40
+ export type OAuthDynamicClientRegistrationRequestDto = z.infer<typeof oauthDynamicClientRegistrationRequestSchema>;
41
+ /** RFC 7591 response shape returned for a newly registered public client. */
42
+ export declare const oauthDynamicClientRegistrationResponseSchema: z.ZodObject<{
43
+ client_id: z.ZodString;
44
+ client_name: z.ZodString;
45
+ redirect_uris: z.ZodArray<z.ZodString>;
46
+ grant_types: z.ZodArray<z.ZodEnum<{
47
+ authorization_code: "authorization_code";
48
+ refresh_token: "refresh_token";
49
+ }>>;
50
+ response_types: z.ZodArray<z.ZodLiteral<"code">>;
51
+ token_endpoint_auth_method: z.ZodLiteral<"none">;
52
+ scope: z.ZodLiteral<"read">;
53
+ }, z.core.$strict>;
54
+ export type OAuthDynamicClientRegistrationResponseDto = z.infer<typeof oauthDynamicClientRegistrationResponseSchema>;
55
+ /**
56
+ * The subset of a Client ID Metadata Document needed before authorization.
57
+ * Optional standard metadata is retained in the schema so a conforming
58
+ * document can be validated without treating unrelated fields as identity.
59
+ */
60
+ export declare const oauthClientMetadataDocumentSchema: z.ZodObject<{
61
+ client_id: z.ZodString;
62
+ client_name: z.ZodString;
63
+ redirect_uris: z.ZodArray<z.ZodString>;
64
+ grant_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
65
+ authorization_code: "authorization_code";
66
+ refresh_token: "refresh_token";
67
+ }>>>;
68
+ response_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<"code">>>;
69
+ token_endpoint_auth_method: z.ZodOptional<z.ZodString>;
70
+ scope: z.ZodOptional<z.ZodString>;
71
+ client_uri: z.ZodOptional<z.ZodString>;
72
+ logo_uri: z.ZodOptional<z.ZodString>;
73
+ tos_uri: z.ZodOptional<z.ZodString>;
74
+ policy_uri: z.ZodOptional<z.ZodString>;
75
+ jwks_uri: z.ZodOptional<z.ZodString>;
76
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
+ }, z.core.$loose>;
78
+ export type OAuthClientMetadataDocumentDto = z.infer<typeof oauthClientMetadataDocumentSchema>;
79
+ //# sourceMappingURL=oauth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/schemas/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAStB,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,EAAG,MAAe,CAAC;AAEhD,mEAAmE;AACnE,eAAO,MAAM,oCAAoC;;;;kBAMtC,CAAC;AAEZ,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,oCAAoC,CAC5C,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;kBAaxC,CAAC;AAEZ,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,sCAAsC,CAC9C,CAAC;AAWF,wEAAwE;AACxE,eAAO,MAAM,2CAA2C;;;;;;;;;;kBAE7C,CAAC;AAEZ,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,2CAA2C,CACnD,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,4CAA4C;;;;;;;;;;;kBAU9C,CAAC;AAEZ,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAC7D,OAAO,4CAA4C,CACpD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;iBAgB9B,CAAC;AAEjB,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { z } from 'zod';
2
+ const oauthUrlSchema = z.string().url().max(2048);
3
+ const oauthClientNameSchema = z.string().min(1).max(256);
4
+ const oauthRedirectUriSchema = z.string().min(1).max(2048);
5
+ const oauthScopeSchema = z.string().min(1).max(256);
6
+ const oauthGrantTypeSchema = z.enum([
7
+ 'authorization_code',
8
+ 'refresh_token'
9
+ ]);
10
+ const oauthResponseTypeSchema = z.literal('code');
11
+ /** The only scope exposed by the MCP read-only profile. */ export const OAUTH_READ_SCOPE = 'read';
12
+ /** RFC 9728 metadata advertised for the protected MCP resource. */ export const oauthProtectedResourceMetadataSchema = z.object({
13
+ resource: oauthUrlSchema,
14
+ authorization_servers: z.array(oauthUrlSchema).min(1),
15
+ scopes_supported: z.array(z.literal(OAUTH_READ_SCOPE)).min(1)
16
+ }).strict();
17
+ /** RFC 8414 metadata for the MCP authorization server. */ export const oauthAuthorizationServerMetadataSchema = z.object({
18
+ issuer: oauthUrlSchema,
19
+ authorization_endpoint: oauthUrlSchema,
20
+ token_endpoint: oauthUrlSchema,
21
+ registration_endpoint: oauthUrlSchema,
22
+ response_types_supported: z.array(oauthResponseTypeSchema).min(1),
23
+ grant_types_supported: z.array(oauthGrantTypeSchema).min(1),
24
+ code_challenge_methods_supported: z.array(z.literal('S256')).min(1),
25
+ token_endpoint_auth_methods_supported: z.array(z.literal('none')).min(1),
26
+ scopes_supported: z.array(z.literal(OAUTH_READ_SCOPE)).min(1),
27
+ client_id_metadata_document_supported: z.literal(true)
28
+ }).strict();
29
+ const oauthRegistrationProfileFields = {
30
+ client_name: oauthClientNameSchema,
31
+ redirect_uris: z.array(oauthRedirectUriSchema).min(1).max(10),
32
+ grant_types: z.array(oauthGrantTypeSchema).min(1).max(2).optional(),
33
+ response_types: z.array(oauthResponseTypeSchema).min(1).max(1).optional(),
34
+ token_endpoint_auth_method: z.literal('none').optional(),
35
+ scope: oauthScopeSchema.optional()
36
+ };
37
+ /** RFC 7591 request shape accepted by the MCP public-client profile. */ export const oauthDynamicClientRegistrationRequestSchema = z.object(oauthRegistrationProfileFields).strict();
38
+ /** RFC 7591 response shape returned for a newly registered public client. */ export const oauthDynamicClientRegistrationResponseSchema = z.object({
39
+ client_id: z.string().min(1).max(2048),
40
+ client_name: oauthClientNameSchema,
41
+ redirect_uris: z.array(oauthRedirectUriSchema).min(1).max(10),
42
+ grant_types: z.array(oauthGrantTypeSchema).min(1).max(2),
43
+ response_types: z.array(oauthResponseTypeSchema).min(1).max(1),
44
+ token_endpoint_auth_method: z.literal('none'),
45
+ scope: z.literal(OAUTH_READ_SCOPE)
46
+ }).strict();
47
+ /**
48
+ * The subset of a Client ID Metadata Document needed before authorization.
49
+ * Optional standard metadata is retained in the schema so a conforming
50
+ * document can be validated without treating unrelated fields as identity.
51
+ */ export const oauthClientMetadataDocumentSchema = z.object({
52
+ client_id: z.string().min(1).max(2048),
53
+ client_name: oauthClientNameSchema,
54
+ redirect_uris: z.array(oauthRedirectUriSchema).min(1).max(10),
55
+ grant_types: z.array(oauthGrantTypeSchema).min(1).max(2).optional(),
56
+ response_types: z.array(oauthResponseTypeSchema).min(1).max(1).optional(),
57
+ token_endpoint_auth_method: z.string().min(1).max(128).optional(),
58
+ scope: oauthScopeSchema.optional(),
59
+ client_uri: oauthUrlSchema.optional(),
60
+ logo_uri: oauthUrlSchema.optional(),
61
+ tos_uri: oauthUrlSchema.optional(),
62
+ policy_uri: oauthUrlSchema.optional(),
63
+ jwks_uri: oauthUrlSchema.optional(),
64
+ contacts: z.array(z.string().min(1).max(256)).max(10).optional()
65
+ }).passthrough();
66
+
67
+ //# sourceMappingURL=oauth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/schemas/oauth.ts"],"sourcesContent":["import {z} from 'zod';\n\nconst oauthUrlSchema = z.string().url().max(2048);\nconst oauthClientNameSchema = z.string().min(1).max(256);\nconst oauthRedirectUriSchema = z.string().min(1).max(2048);\nconst oauthScopeSchema = z.string().min(1).max(256);\nconst oauthGrantTypeSchema = z.enum(['authorization_code', 'refresh_token']);\nconst oauthResponseTypeSchema = z.literal('code');\n\n/** The only scope exposed by the MCP read-only profile. */\nexport const OAUTH_READ_SCOPE = 'read' as const;\n\n/** RFC 9728 metadata advertised for the protected MCP resource. */\nexport const oauthProtectedResourceMetadataSchema = z\n .object({\n resource: oauthUrlSchema,\n authorization_servers: z.array(oauthUrlSchema).min(1),\n scopes_supported: z.array(z.literal(OAUTH_READ_SCOPE)).min(1),\n })\n .strict();\n\nexport type OAuthProtectedResourceMetadataDto = z.infer<\n typeof oauthProtectedResourceMetadataSchema\n>;\n\n/** RFC 8414 metadata for the MCP authorization server. */\nexport const oauthAuthorizationServerMetadataSchema = z\n .object({\n issuer: oauthUrlSchema,\n authorization_endpoint: oauthUrlSchema,\n token_endpoint: oauthUrlSchema,\n registration_endpoint: oauthUrlSchema,\n response_types_supported: z.array(oauthResponseTypeSchema).min(1),\n grant_types_supported: z.array(oauthGrantTypeSchema).min(1),\n code_challenge_methods_supported: z.array(z.literal('S256')).min(1),\n token_endpoint_auth_methods_supported: z.array(z.literal('none')).min(1),\n scopes_supported: z.array(z.literal(OAUTH_READ_SCOPE)).min(1),\n client_id_metadata_document_supported: z.literal(true),\n })\n .strict();\n\nexport type OAuthAuthorizationServerMetadataDto = z.infer<\n typeof oauthAuthorizationServerMetadataSchema\n>;\n\nconst oauthRegistrationProfileFields = {\n client_name: oauthClientNameSchema,\n redirect_uris: z.array(oauthRedirectUriSchema).min(1).max(10),\n grant_types: z.array(oauthGrantTypeSchema).min(1).max(2).optional(),\n response_types: z.array(oauthResponseTypeSchema).min(1).max(1).optional(),\n token_endpoint_auth_method: z.literal('none').optional(),\n scope: oauthScopeSchema.optional(),\n};\n\n/** RFC 7591 request shape accepted by the MCP public-client profile. */\nexport const oauthDynamicClientRegistrationRequestSchema = z\n .object(oauthRegistrationProfileFields)\n .strict();\n\nexport type OAuthDynamicClientRegistrationRequestDto = z.infer<\n typeof oauthDynamicClientRegistrationRequestSchema\n>;\n\n/** RFC 7591 response shape returned for a newly registered public client. */\nexport const oauthDynamicClientRegistrationResponseSchema = z\n .object({\n client_id: z.string().min(1).max(2048),\n client_name: oauthClientNameSchema,\n redirect_uris: z.array(oauthRedirectUriSchema).min(1).max(10),\n grant_types: z.array(oauthGrantTypeSchema).min(1).max(2),\n response_types: z.array(oauthResponseTypeSchema).min(1).max(1),\n token_endpoint_auth_method: z.literal('none'),\n scope: z.literal(OAUTH_READ_SCOPE),\n })\n .strict();\n\nexport type OAuthDynamicClientRegistrationResponseDto = z.infer<\n typeof oauthDynamicClientRegistrationResponseSchema\n>;\n\n/**\n * The subset of a Client ID Metadata Document needed before authorization.\n * Optional standard metadata is retained in the schema so a conforming\n * document can be validated without treating unrelated fields as identity.\n */\nexport const oauthClientMetadataDocumentSchema = z\n .object({\n client_id: z.string().min(1).max(2048),\n client_name: oauthClientNameSchema,\n redirect_uris: z.array(oauthRedirectUriSchema).min(1).max(10),\n grant_types: z.array(oauthGrantTypeSchema).min(1).max(2).optional(),\n response_types: z.array(oauthResponseTypeSchema).min(1).max(1).optional(),\n token_endpoint_auth_method: z.string().min(1).max(128).optional(),\n scope: oauthScopeSchema.optional(),\n client_uri: oauthUrlSchema.optional(),\n logo_uri: oauthUrlSchema.optional(),\n tos_uri: oauthUrlSchema.optional(),\n policy_uri: oauthUrlSchema.optional(),\n jwks_uri: oauthUrlSchema.optional(),\n contacts: z.array(z.string().min(1).max(256)).max(10).optional(),\n })\n .passthrough();\n\nexport type OAuthClientMetadataDocumentDto = z.infer<typeof oauthClientMetadataDocumentSchema>;\n"],"names":["z","oauthUrlSchema","string","url","max","oauthClientNameSchema","min","oauthRedirectUriSchema","oauthScopeSchema","oauthGrantTypeSchema","enum","oauthResponseTypeSchema","literal","OAUTH_READ_SCOPE","oauthProtectedResourceMetadataSchema","object","resource","authorization_servers","array","scopes_supported","strict","oauthAuthorizationServerMetadataSchema","issuer","authorization_endpoint","token_endpoint","registration_endpoint","response_types_supported","grant_types_supported","code_challenge_methods_supported","token_endpoint_auth_methods_supported","client_id_metadata_document_supported","oauthRegistrationProfileFields","client_name","redirect_uris","grant_types","optional","response_types","token_endpoint_auth_method","scope","oauthDynamicClientRegistrationRequestSchema","oauthDynamicClientRegistrationResponseSchema","client_id","oauthClientMetadataDocumentSchema","client_uri","logo_uri","tos_uri","policy_uri","jwks_uri","contacts","passthrough"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,MAAMC,iBAAiBD,EAAEE,MAAM,GAAGC,GAAG,GAAGC,GAAG,CAAC;AAC5C,MAAMC,wBAAwBL,EAAEE,MAAM,GAAGI,GAAG,CAAC,GAAGF,GAAG,CAAC;AACpD,MAAMG,yBAAyBP,EAAEE,MAAM,GAAGI,GAAG,CAAC,GAAGF,GAAG,CAAC;AACrD,MAAMI,mBAAmBR,EAAEE,MAAM,GAAGI,GAAG,CAAC,GAAGF,GAAG,CAAC;AAC/C,MAAMK,uBAAuBT,EAAEU,IAAI,CAAC;IAAC;IAAsB;CAAgB;AAC3E,MAAMC,0BAA0BX,EAAEY,OAAO,CAAC;AAE1C,yDAAyD,GACzD,OAAO,MAAMC,mBAAmB,OAAgB;AAEhD,iEAAiE,GACjE,OAAO,MAAMC,uCAAuCd,EACjDe,MAAM,CAAC;IACNC,UAAUf;IACVgB,uBAAuBjB,EAAEkB,KAAK,CAACjB,gBAAgBK,GAAG,CAAC;IACnDa,kBAAkBnB,EAAEkB,KAAK,CAAClB,EAAEY,OAAO,CAACC,mBAAmBP,GAAG,CAAC;AAC7D,GACCc,MAAM,GAAG;AAMZ,wDAAwD,GACxD,OAAO,MAAMC,yCAAyCrB,EACnDe,MAAM,CAAC;IACNO,QAAQrB;IACRsB,wBAAwBtB;IACxBuB,gBAAgBvB;IAChBwB,uBAAuBxB;IACvByB,0BAA0B1B,EAAEkB,KAAK,CAACP,yBAAyBL,GAAG,CAAC;IAC/DqB,uBAAuB3B,EAAEkB,KAAK,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