@crowi/api-contract 2.0.0-alpha.13 → 2.0.0-alpha.14

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.
package/dist/index.d.ts CHANGED
@@ -7563,7 +7563,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7563
7563
  form: {
7564
7564
  file?: any;
7565
7565
  pageId?: string | undefined;
7566
- intent?: string | undefined;
7567
7566
  };
7568
7567
  };
7569
7568
  output: {
@@ -7579,7 +7578,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7579
7578
  form: {
7580
7579
  file?: any;
7581
7580
  pageId?: string | undefined;
7582
- intent?: string | undefined;
7583
7581
  };
7584
7582
  };
7585
7583
  output: {
@@ -7596,7 +7594,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7596
7594
  form: {
7597
7595
  file?: any;
7598
7596
  pageId?: string | undefined;
7599
- intent?: string | undefined;
7600
7597
  };
7601
7598
  };
7602
7599
  output: {
@@ -7612,7 +7609,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7612
7609
  form: {
7613
7610
  file?: any;
7614
7611
  pageId?: string | undefined;
7615
- intent?: string | undefined;
7616
7612
  };
7617
7613
  };
7618
7614
  output: {
@@ -7629,7 +7625,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7629
7625
  form: {
7630
7626
  file?: any;
7631
7627
  pageId?: string | undefined;
7632
- intent?: string | undefined;
7633
7628
  };
7634
7629
  };
7635
7630
  output: {
@@ -7646,7 +7641,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7646
7641
  form: {
7647
7642
  file?: any;
7648
7643
  pageId?: string | undefined;
7649
- intent?: string | undefined;
7650
7644
  };
7651
7645
  };
7652
7646
  output: {
@@ -7663,7 +7657,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7663
7657
  form: {
7664
7658
  file?: any;
7665
7659
  pageId?: string | undefined;
7666
- intent?: string | undefined;
7667
7660
  };
7668
7661
  };
7669
7662
  output: {
@@ -7680,7 +7673,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7680
7673
  form: {
7681
7674
  file?: any;
7682
7675
  pageId?: string | undefined;
7683
- intent?: string | undefined;
7684
7676
  };
7685
7677
  };
7686
7678
  output: {
@@ -7873,6 +7865,38 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7873
7865
  status: 403;
7874
7866
  };
7875
7867
  };
7868
+ } & {
7869
+ "/attachments/upload-policy": {
7870
+ $get: {
7871
+ input: {};
7872
+ output: {
7873
+ error: {
7874
+ code: "AUTHENTICATION_REQUIRED";
7875
+ message: "Authentication is required";
7876
+ redirectTo?: string | undefined;
7877
+ };
7878
+ };
7879
+ outputFormat: "json";
7880
+ status: 401;
7881
+ } | {
7882
+ input: {};
7883
+ output: {
7884
+ allowedMimeTypes: string[];
7885
+ extensionHints: {
7886
+ [x: string]: string;
7887
+ };
7888
+ maxBytes: {
7889
+ attachment: number;
7890
+ };
7891
+ profilePicture: {
7892
+ allowedMimeTypes: string[];
7893
+ maxBytes: number;
7894
+ };
7895
+ };
7896
+ outputFormat: "json";
7897
+ status: 200;
7898
+ };
7899
+ };
7876
7900
  } & {
7877
7901
  "/search": {
7878
7902
  $get: {
@@ -35443,9 +35467,12 @@ declare const autocompleteRoutes: {
35443
35467
  * Multipart: `addAttachment` + `uploadAttachment` are implemented
35444
35468
  * Hono-native via `c.req.parseBody()`. multer is gone from this
35445
35469
  * resource (legacy `/_api/me/picture/upload` still uses it, so the
35446
- * package dependency is removed in Phase 6 cleanup, not here).
35447
- * `uploadAttachment` runs a `Content-Length` precheck BEFORE
35448
- * `parseBody()` so a 50 MB+ body is 413'd without being buffered.
35470
+ * package dependency is removed in Phase 6 cleanup, not here). Both
35471
+ * routes reject an over-limit `Content-Length` before their body is ever
35472
+ * read see `rejectOversizedContentLength` in the api handler
35473
+ * (`packages/api/src/hono/handlers/attachment.ts`) for why that check
35474
+ * has to run as middleware ahead of `.openapi()`'s generated multipart
35475
+ * validator rather than at the top of the handler.
35449
35476
  */
35450
35477
 
35451
35478
  declare const listAttachmentsRoute: {
@@ -36117,7 +36144,6 @@ declare const uploadAttachmentRoute: {
36117
36144
  schema: z.ZodObject<{
36118
36145
  file: z.ZodOptional<z.ZodAny>;
36119
36146
  pageId: z.ZodOptional<z.ZodString>;
36120
- intent: z.ZodOptional<z.ZodString>;
36121
36147
  }, z.core.$strip>;
36122
36148
  };
36123
36149
  };
@@ -36396,6 +36422,59 @@ declare const removeAttachmentRoute: {
36396
36422
  } & {
36397
36423
  getRoutingPath(): "/attachments/:id";
36398
36424
  };
36425
+ /**
36426
+ * Publishes the server's upload policy (allowed MIME types, extension hints,
36427
+ * size limits) so a client stops guessing. `upload-policy` cannot collide
36428
+ * with the raw-stream `GET
36429
+ * /attachments/{id}` route (`attachment-stream.ts`, mounted outside this
36430
+ * contract file): that route constrains `:id` to a 24-char hex ObjectId, so
36431
+ * a literal path segment like `upload-policy` never matches it.
36432
+ */
36433
+ declare const getUploadPolicyRoute: {
36434
+ method: "get";
36435
+ path: "/attachments/upload-policy";
36436
+ tags: string[];
36437
+ security: {
36438
+ bearerAuth: never[];
36439
+ }[];
36440
+ summary: string;
36441
+ responses: {
36442
+ 200: {
36443
+ description: string;
36444
+ content: {
36445
+ 'application/json': {
36446
+ schema: z.ZodObject<{
36447
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
36448
+ extensionHints: z.ZodRecord<z.ZodString, z.ZodString>;
36449
+ maxBytes: z.ZodObject<{
36450
+ attachment: z.ZodNumber;
36451
+ }, z.core.$strip>;
36452
+ profilePicture: z.ZodObject<{
36453
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
36454
+ maxBytes: z.ZodNumber;
36455
+ }, z.core.$strip>;
36456
+ }, z.core.$strip>;
36457
+ };
36458
+ };
36459
+ };
36460
+ 401: {
36461
+ description: string;
36462
+ content: {
36463
+ 'application/json': {
36464
+ schema: z.ZodObject<{
36465
+ error: z.ZodObject<{
36466
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
36467
+ message: z.ZodLiteral<"Authentication is required">;
36468
+ redirectTo: z.ZodOptional<z.ZodString>;
36469
+ }, z.core.$strip>;
36470
+ }, z.core.$strip>;
36471
+ };
36472
+ };
36473
+ };
36474
+ };
36475
+ } & {
36476
+ getRoutingPath(): "/attachments/upload-policy";
36477
+ };
36399
36478
  declare const attachmentRoutes: {
36400
36479
  getAttachmentUsageRoute: {
36401
36480
  method: "get";
@@ -36936,7 +37015,6 @@ declare const attachmentRoutes: {
36936
37015
  schema: z.ZodObject<{
36937
37016
  file: z.ZodOptional<z.ZodAny>;
36938
37017
  pageId: z.ZodOptional<z.ZodString>;
36939
- intent: z.ZodOptional<z.ZodString>;
36940
37018
  }, z.core.$strip>;
36941
37019
  };
36942
37020
  };
@@ -37345,6 +37423,51 @@ declare const attachmentRoutes: {
37345
37423
  } & {
37346
37424
  getRoutingPath(): "/attachments/:id";
37347
37425
  };
37426
+ getUploadPolicyRoute: {
37427
+ method: "get";
37428
+ path: "/attachments/upload-policy";
37429
+ tags: string[];
37430
+ security: {
37431
+ bearerAuth: never[];
37432
+ }[];
37433
+ summary: string;
37434
+ responses: {
37435
+ 200: {
37436
+ description: string;
37437
+ content: {
37438
+ 'application/json': {
37439
+ schema: z.ZodObject<{
37440
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
37441
+ extensionHints: z.ZodRecord<z.ZodString, z.ZodString>;
37442
+ maxBytes: z.ZodObject<{
37443
+ attachment: z.ZodNumber;
37444
+ }, z.core.$strip>;
37445
+ profilePicture: z.ZodObject<{
37446
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
37447
+ maxBytes: z.ZodNumber;
37448
+ }, z.core.$strip>;
37449
+ }, z.core.$strip>;
37450
+ };
37451
+ };
37452
+ };
37453
+ 401: {
37454
+ description: string;
37455
+ content: {
37456
+ 'application/json': {
37457
+ schema: z.ZodObject<{
37458
+ error: z.ZodObject<{
37459
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
37460
+ message: z.ZodLiteral<"Authentication is required">;
37461
+ redirectTo: z.ZodOptional<z.ZodString>;
37462
+ }, z.core.$strip>;
37463
+ }, z.core.$strip>;
37464
+ };
37465
+ };
37466
+ };
37467
+ };
37468
+ } & {
37469
+ getRoutingPath(): "/attachments/upload-policy";
37470
+ };
37348
37471
  };
37349
37472
 
37350
37473
  declare const searchPagesRoute: {
@@ -45527,11 +45650,12 @@ type AttachmentError = z.infer<typeof AttachmentErrorSchema>;
45527
45650
  *
45528
45651
  * The editor's paste / drag-and-drop handlers upload a file directly
45529
45652
  * (multipart) and immediately splice the returned `url` into the
45530
- * Markdown source. Unlike `addAttachment`, this endpoint is keyed by
45531
- * the editor `intent` (`paste` / `dnd`) for telemetry and applies a
45653
+ * Markdown source. Unlike `addAttachment`, this endpoint applies a
45532
45654
  * per-user upload rate limit; it shares the same `FileUploader` storage
45533
45655
  * path. See `docs/rfcs/0004-editor-ux-enhancement.md`
45534
- * §"Attachment upload endpoint".
45656
+ * §"Attachment upload endpoint". The request body carries no `intent`
45657
+ * (`paste` / `dnd`) field: the size cap is a single value, independent of
45658
+ * which affordance triggered the upload.
45535
45659
  */
45536
45660
  declare const UploadAttachmentResponseSchema: z.ZodObject<{
45537
45661
  url: z.ZodString;
@@ -45547,9 +45671,8 @@ type UploadAttachmentResponse = z.infer<typeof UploadAttachmentResponseSchema>;
45547
45671
  * because the editor maps each code to a specific user-facing toast:
45548
45672
  * - `too_large` — file exceeds the size cap (413).
45549
45673
  * - `disallowed_type`— malformed request (bad multipart body, missing
45550
- * file, invalid `intent`); a generic 400 bucket
45551
- * predating feature-attachment-upload-policy, kept
45552
- * as-is for those unrelated failure modes.
45674
+ * file); a generic 400 bucket kept as-is for those
45675
+ * unrelated failure modes.
45553
45676
  * - `DISALLOWED_MIME`— the file's MIME type is outside the unified
45554
45677
  * upload allow-list (415). Deliberately spelled
45555
45678
  * the SAME as `AttachmentErrorCodeSchema`'s
@@ -45588,15 +45711,14 @@ declare const UploadAttachmentErrorSchema: z.ZodObject<{
45588
45711
  }, z.core.$strip>;
45589
45712
  type UploadAttachmentError = z.infer<typeof UploadAttachmentErrorSchema>;
45590
45713
  /**
45591
- * feature-attachment-upload-policy — the single "may this be uploaded at
45592
- * all" allow-list, shared by every upload path: the general page
45593
- * attachment endpoint (`POST /pages/:pageId/attachments`) and the editor's
45594
- * paste / drag-and-drop endpoint (`POST /attachments/upload`, both
45595
- * intents). A file's fate no longer depends on which of the three
45596
- * affordances (attach button / paste / drag-and-drop) triggered the
45597
- * upload see the feature spec's "3 つの独立した問い" design judgment 1.
45598
- * Per-route/per-intent SIZE caps (paste 10 MB / dnd 50 MB / add 100 MB)
45599
- * are unchanged and stay in the api handler, independent of this list.
45714
+ * The single "may this be uploaded at all" allow-list, shared by every
45715
+ * upload path: the general page attachment endpoint
45716
+ * (`POST /pages/:pageId/attachments`) and the editor's paste / drag-and-drop
45717
+ * endpoint (`POST /attachments/upload`). A file's fate does not depend on
45718
+ * which of the three affordances (attach button / paste / drag-and-drop)
45719
+ * triggered the upload. The SIZE cap (the api handler's single upload size
45720
+ * limit) is unified the same way: it applies regardless of route or
45721
+ * client-declared intent.
45600
45722
  *
45601
45723
  * Deliberately independent of `INLINE_SAFE_MIME`
45602
45724
  * (`attachment-stream.ts`) — that is a strict security boundary deciding
@@ -45616,6 +45738,42 @@ type UploadAttachmentError = z.infer<typeof UploadAttachmentErrorSchema>;
45616
45738
  * unknown, and it already downloads instead of rendering inline.
45617
45739
  */
45618
45740
  declare const UPLOAD_ALLOWED_MIME: readonly ["image/png", "image/jpeg", "image/gif", "image/webp", "image/svg+xml", "image/bmp", "image/avif", "image/apng", "image/x-icon", "application/pdf", "text/plain", "text/markdown", "text/csv", "application/json", "application/xml", "text/html", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/zip", "application/gzip", "application/x-tar", "audio/mpeg", "audio/wav", "video/mp4", "video/webm", "video/quicktime", "application/octet-stream"];
45741
+ /**
45742
+ * Response for `GET /attachments/upload-policy`.
45743
+ *
45744
+ * Publishes the server's actual upload policy so a client (CLI / curl / MCP)
45745
+ * can stop guessing what this instance allows. Every field is derived from
45746
+ * existing api constants, never a value maintained separately for this
45747
+ * response — see the handler's doc comment for the source of each field.
45748
+ *
45749
+ * - `allowedMimeTypes`: the same allow-list every upload route already
45750
+ * enforces (`UPLOAD_ALLOWED_MIME` above).
45751
+ * - `extensionHints`: extension → MIME, for a client that only knows a
45752
+ * filename and needs to declare a `Content-Type` for it.
45753
+ * - `maxBytes.attachment`: the SINGLE size limit every attachment upload
45754
+ * route enforces (attach button / editor paste / editor drag-and-drop
45755
+ * alike), resolved server-side from `CROWI_UPLOAD_MAX_BYTES` (default
45756
+ * 50 MB, hard ceiling 50 MB — the value is a memory budget, not a policy
45757
+ * knob, because the api buffers the whole upload in memory; an operator
45758
+ * may only lower it). No separate `paste` / `dnd` figure: a client-
45759
+ * declared intent is not a real defence, so it cannot justify a
45760
+ * different number.
45761
+ * - `profilePicture`: the separate, narrower policy `POST /me/picture`
45762
+ * enforces (a finite image-type allow-list and its own size cap — not the
45763
+ * general attachment policy above, and unaffected by it).
45764
+ */
45765
+ declare const UploadPolicyResponseSchema: z.ZodObject<{
45766
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
45767
+ extensionHints: z.ZodRecord<z.ZodString, z.ZodString>;
45768
+ maxBytes: z.ZodObject<{
45769
+ attachment: z.ZodNumber;
45770
+ }, z.core.$strip>;
45771
+ profilePicture: z.ZodObject<{
45772
+ allowedMimeTypes: z.ZodArray<z.ZodString>;
45773
+ maxBytes: z.ZodNumber;
45774
+ }, z.core.$strip>;
45775
+ }, z.core.$strip>;
45776
+ type UploadPolicyResponse = z.infer<typeof UploadPolicyResponseSchema>;
45619
45777
 
45620
45778
  /**
45621
45779
  * Token-based authentication schemas, shared by the `tokenAuth` Hono
@@ -49867,6 +50025,16 @@ interface RenderedAstNodeDef {
49867
50025
  /** Own (non-`type` / non-`data` / non-`children`) fields, nullability per `@types/mdast`. */
49868
50026
  fields: AstFieldsValidator;
49869
50027
  }
50028
+ declare const FRONTMATTER_MAX_ENTRIES = 50;
50029
+ declare const FRONTMATTER_MAX_KEY_CHARS = 100;
50030
+ declare const FRONTMATTER_MAX_VALUE_CHARS = 300;
50031
+ /** Raw frontmatter block size cap. Beyond this the block is never scanned into entries — it is preserved verbatim as a `code` node instead (§D-4). */
50032
+ declare const FRONTMATTER_MAX_RAW_BYTES: number;
50033
+ declare const CrowiFrontmatterEntrySchema: z.ZodObject<{
50034
+ key: z.ZodString;
50035
+ value: z.ZodString;
50036
+ }, z.core.$strip>;
50037
+ type CrowiFrontmatterEntry = z.infer<typeof CrowiFrontmatterEntrySchema>;
49870
50038
  /**
49871
50039
  * The closed type registry (design doc §3). Applies ONLY to
49872
50040
  * `X-Crowi-Ast-Version: 1` envelope generation — legacy responses never
@@ -51443,4 +51611,4 @@ declare const WS_CLOSE_CODES: {
51443
51611
  };
51444
51612
  type WsCloseCode = (typeof WS_CLOSE_CODES)[keyof typeof WS_CLOSE_CODES];
51445
51613
 
51446
- export { ALL_CAPABILITIES, ALL_SCOPES, API_SURFACE_VERSION, AST_INPUT_LIMIT_BYTES, AST_MAX_HAST_DEPTH, AST_MAX_IMAGE_BASE64_CHARS, AST_MAX_TREE_DEPTH, AST_MAX_VALUE_CHARS, AST_OUTPUT_BUDGET_BYTES, AST_OUTPUT_WARN_BYTES, type AccessToken, AccessTokenSchema, type ActivateRequest, ActivateRequestSchema, type ActivateValidationResponse, ActivateValidationResponseSchema, type ActiveSearchDriver, ActiveSearchDriverSchema, type ActiveStorageDriver, ActiveStorageDriverSchema, type AddAttachmentResponse, AddAttachmentResponseSchema, type AddBookmarkRequest, AddBookmarkRequestSchema, type AddCommentRequest, AddCommentRequestSchema, type AddCommentResponse, AddCommentResponseSchema, type AdminPager, AdminPagerSchema, type AdminRequiredError, AdminRequiredErrorSchema, type AdminSettingsContractApp, AdminSidebarSection, type AdminSidebarSectionValue, type AdminUserIdParam, AdminUserIdParamSchema, type AdminUserMutationResponse, AdminUserMutationResponseSchema, type AdminUsersPluginsContractApp, type ApiError, ApiErrorSchema, type AppAuthMeUserChain, type AppInfoResponse, AppInfoResponseSchema, type AppSettingsValidationError, AppSettingsValidationErrorSchema, type ApplicationNotInstalledError, ApplicationNotInstalledErrorSchema, type AstChildModel, type AstFieldsValidator, type AstPlacement, type Attachment, type AttachmentError, AttachmentErrorCodeSchema, AttachmentErrorSchema, type AttachmentMeta, AttachmentMetaSchema, AttachmentSchema, type AttachmentUsageResponse, AttachmentUsageResponseSchema, type AuthSettings, AuthSettingsSchema, type AuthenticationRequiredError, AuthenticationRequiredErrorSchema, type AuthorizeRequest, AuthorizeRequestSchema, type AuthorizeResponse, AuthorizeResponseSchema, type AutocompleteRateLimitError, AutocompleteRateLimitErrorSchema, type AutocompleteRequest, AutocompleteRequestSchema, type AutocompleteResponse, AutocompleteResponseSchema, type AutocompleteResult, AutocompleteResultSchema, type Backlink, type BacklinkFromPage, BacklinkFromPageSchema, type BacklinkFromRevision, BacklinkFromRevisionSchema, BacklinkSchema, type Bookmark, type BookmarkBacklinkCommentRevisionChain, type BookmarkResponse, BookmarkResponseSchema, BookmarkSchema, CURRENT_AST_VERSION, type Capability, CapabilitySchema, type ClaimPageLinkAccessResponse, ClaimPageLinkAccessResponseSchema, type ClearRenderCacheResponse, ClearRenderCacheResponseSchema, type ClientInfoResponse, ClientInfoResponseSchema, type ClientOptions, type CollabForceReloadMessage, CollabForceReloadMessageSchema, type CollabSaveError, CollabSaveErrorSchema, type CollabSaveMessage, CollabSaveMessageSchema, type CollabSaveOk, CollabSaveOkSchema, type Comment, type CommentInvalidRequestError, CommentInvalidRequestErrorSchema, type CommentNotFoundError, CommentNotFoundErrorSchema, CommentSchema, type ConfigReadinessIssue, ConfigReadinessIssueSchema, type ConfigReadinessResponse, ConfigReadinessResponseSchema, type ConfirmEmailChangeRequest, ConfirmEmailChangeRequestSchema, type ConfirmEmailChangeResponse, ConfirmEmailChangeResponseSchema, type ConflictError, ConflictErrorSchema, type ContributorRef, ContributorRefSchema, type CreateAccessTokenRequest, CreateAccessTokenRequestSchema, type CreateAccessTokenResponse, CreateAccessTokenResponseSchema, CreateAdminRequestSchema, CreateAdminResponseSchema, type CreateDraftRequest, CreateDraftRequestSchema, type CreateDraftResponse, CreateDraftResponseSchema, CreateLinkGrantRequestSchema, CreateLinkGrantResponseSchema, type CreatePageRequest, CreatePageRequestSchema, type CrowiApiClient, type CrowiCodeSidecar, CrowiCodeSidecarSchema, CrowiDiagramNodeSchema, type CrowiDiagramSidecar, CrowiDiagramSidecarSchema, CrowiDimensionSchema, type CrowiImagePayload, CrowiImagePayloadSchema, CrowiLinkCardNodeSchema, type CrowiLinkCardSidecar, CrowiLinkCardSidecarSchema, type CrowiMathSidecar, CrowiMathSidecarSchema, CrowiOpaqueNodeSchema, type CrowiPlaceholderKind, CrowiPlaceholderKindSchema, CrowiPlaceholderNodeSchema, type CrowiPlaceholderSidecar, CrowiPlaceholderSidecarSchema, type CryptoStatusResponse, CryptoStatusResponseSchema, DEVICE_CODE_GRANT_TYPE, DISCOVERY_SCOPES_SUPPORTED, DYNAMIC_CAPABILITIES, type DeleteAdminUserResponse, DeleteAdminUserResponseSchema, type DeleteCommentRequest, DeleteCommentRequestSchema, type DeleteCommentResponse, DeleteCommentResponseSchema, type DeviceAuthorizeRequest, DeviceAuthorizeRequestSchema, type DeviceAuthorizeResponse, DeviceAuthorizeResponseSchema, type DeviceInfoResponse, DeviceInfoResponseSchema, type DeviceVerifyRequest, DeviceVerifyRequestSchema, type DeviceVerifyResponse, DeviceVerifyResponseSchema, type DiscoveryResponse, DiscoveryResponseSchema, type DraftBadRequestError, DraftBadRequestErrorSchema, type DraftConflictOwner, DraftConflictOwnerSchema, type DraftNotFoundError, DraftNotFoundErrorSchema, type DraftPathConflictError, DraftPathConflictErrorSchema, type DraftSummary, DraftSummarySchema, ERROR_CODES, type EditAdminUserRequest, EditAdminUserRequestSchema, type EncryptionNotConfiguredError, EncryptionNotConfiguredErrorSchema, type ErrorCode, ErrorCodeSchema, type FederatedAuthContractApp, FederatedHandoffRequestSchema, FederatedHandoffResponseSchema, FederatedProviderSchema, FederatedRegistrationActiveResultSchema, FederatedRegistrationApprovalResultSchema, type FederatedRegistrationContractApp, FederatedRegistrationResultSchema, FederatedRegistrationSnapshotSchema, FederatedRegistrationSubmitRequestSchema, type ForbiddenError, ForbiddenErrorSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, type ForgotPasswordResponse, ForgotPasswordResponseSchema, GRANT_TYPES_SUPPORTED, type GetAppSettingsResponse, GetAppSettingsResponseSchema, type GetAuthSettingsResponse, GetAuthSettingsResponseSchema, type GetBacklinksRequest, GetBacklinksRequestSchema, type GetBacklinksResponse, GetBacklinksResponseSchema, type GetBookmarkRequest, GetBookmarkRequestSchema, type GetLikersRequest, GetLikersRequestSchema, type GetMailSettingsResponse, GetMailSettingsResponseSchema, type GetPageRequest, GetPageRequestSchema, type GetPageResponse, GetPageResponseSchema, type GetRevisionResponse, GetRevisionResponseSchema, type GetRevisionsRequest, GetRevisionsRequestSchema, type GetRevisionsResponse, GetRevisionsResponseSchema, type GetSearchStatusResponse, GetSearchStatusResponseSchema, type GetSecuritySettingsResponse, GetSecuritySettingsResponseSchema, type GetSeenUsersRequest, GetSeenUsersRequestSchema, type GetStorageStatusResponse, GetStorageStatusResponseSchema, type GetWatchStatusRequest, GetWatchStatusRequestSchema, type HChild, HChildSchema, HChildrenSchema, HNameSchema, HPropertiesSchema, type HastHintData, HastHintDataSchema, ISSUABLE_SCOPES, InstallerStatusResponseSchema, type InsufficientScopeError, InsufficientScopeErrorSchema, type InternalServerError, InternalServerErrorSchema, type InvalidPageIdError, InvalidPageIdErrorSchema, type InvalidScopeError, InvalidScopeErrorSchema, type InviteAcceptRequest, InviteAcceptRequestSchema, type InvitePreviewResponse, InvitePreviewResponseSchema, type InviteUsersRequest, InviteUsersRequestSchema, type InviteUsersResponse, InviteUsersResponseSchema, type InvitedUserResult, InvitedUserResultSchema, KNOWN_HTML_ELEMENTS, type Language, LanguageSchema, type LateContractApp, type Liker, LikerSchema, type LikersResponse, LikersResponseSchema, LinkedAuthProviderListResponseSchema, type ListAccessTokensResponse, ListAccessTokensResponseSchema, type ListAdminUsersRequest, ListAdminUsersRequestSchema, type ListAdminUsersResponse, ListAdminUsersResponseSchema, type ListAttachmentsResponse, ListAttachmentsResponseSchema, type ListCommentsRequest, ListCommentsRequestSchema, type ListCommentsResponse, ListCommentsResponseSchema, type ListDraftsResponse, ListDraftsResponseSchema, type ListMyBookmarksResponse, ListMyBookmarksResponseSchema, type ListNotificationsRequest, ListNotificationsRequestSchema, type ListNotificationsResponse, ListNotificationsResponseSchema, type ListPageChildrenRequest, ListPageChildrenRequestSchema, type ListPageChildrenResponse, ListPageChildrenResponseSchema, type ListPagesRequest, ListPagesRequestSchema, type ListPagesResponse, ListPagesResponseSchema, type ListPagesSort, type ListPluginsResponse, ListPluginsResponseSchema, type ListRevisionsRequest, ListRevisionsRequestSchema, type ListRevisionsResponse, ListRevisionsResponseSchema, type ListUsersRequest, ListUsersRequestSchema, type ListUsersResponse, ListUsersResponseSchema, LooseRenderedAstRootSchema, type MailSettingsValidationError, MailSettingsValidationErrorSchema, type MailTokenPayload, MailTokenPayloadSchema, type MailTokenPurpose, MailTokenPurposeSchema, type MarkAllAsReadResponse, MarkAllAsReadResponseSchema, type MentionResponse, MentionSchema, type NotFoundError, NotFoundErrorSchema, type Notification, type NotificationAction, NotificationActionEnum, NotificationActionSchema, type NotificationNotFoundError, NotificationNotFoundErrorSchema, NotificationSchema, type NotificationStatus, NotificationStatusEnum, type NotificationStatusResponse, NotificationStatusResponseSchema, NotificationStatusSchema, type NotificationTargetModel, NotificationTargetModelEnum, NotificationTargetModelSchema, type NotificationsChangedMessage, NotificationsChangedMessageSchema, type NotificationsServerMessage, NotificationsServerMessageSchema, type NotificationsTokenPayload, NotificationsTokenPayloadSchema, type NotificationsTokenResponse, NotificationsTokenResponseSchema, OAUTH_ERROR_CODES, type OAuthContractApp, type OAuthError, type OAuthErrorCode, OAuthErrorSchema, type OpenNotificationParam, OpenNotificationParamSchema, type OpenNotificationResponse, OpenNotificationResponseSchema, type Page, type PageChain, type PageChildSegment, PageChildSegmentSchema, PageExtendedSchema, PageGrantEnum, PageGrantSchema, type PageNotFoundError, PageNotFoundErrorSchema, type PageNotGrantedError, PageNotGrantedErrorSchema, type PageRef, PageRefSchema, type PageRevisionError, PageRevisionErrorSchema, PageSchema, PageStatusEnum, PageStatusSchema, PageTypeEnum, PageTypeSchema, type PageUser, PageUserSchema, type PageWithRevision, PageWithRevisionSchema, type Pager, PagerSchema, type PaginationRequest, PaginationRequestSchema, type PasswordErrorResponse, PasswordErrorResponseSchema, type PasswordUpdateSuccess, PasswordUpdateSuccessSchema, type PastAttachmentUsage, PastAttachmentUsageSchema, type PendingUsersCountResponse, PendingUsersCountResponseSchema, type PictureUploadResponse, PictureUploadResponseSchema, type PluginAdminPlacement, PluginAdminPlacementSchema, type PluginConfigResponse, PluginConfigResponseSchema, type PluginConfigValidationError, PluginConfigValidationErrorSchema, type PluginField, PluginFieldSchema, type PluginInfo, PluginInfoSchema, type PluginNotFoundError, PluginNotFoundErrorSchema, type PluginReadinessField, PluginReadinessFieldSchema, type PresenceClientMessage, PresenceClientMessageSchema, type PresenceCommentChangedMessage, PresenceCommentChangedMessageSchema, type PresenceHeartbeatMessage, PresenceHeartbeatMessageSchema, type PresencePageUpdatedMessage, PresencePageUpdatedMessageSchema, type PresenceServerMessage, PresenceServerMessageSchema, type PresenceTokenPayload, PresenceTokenPayloadSchema, type PresenceTokenResponse, PresenceTokenResponseSchema, type PresenceViewer, PresenceViewerSchema, type PresenceViewersMessage, PresenceViewersMessageSchema, type PreviewPageRequest, PreviewPageRequestSchema, type PreviewPageResponse, PreviewPageResponseSchema, type ProfileErrorResponse, ProfileErrorResponseSchema, ProviderListResponseSchema, RENDERED_AST_NODE_DEFS, type RecentlyViewedPagesResponse, RecentlyViewedPagesResponseSchema, type ReencryptResponse, ReencryptResponseSchema, RefreshTokenRequestSchema, type RegisterPendingResponse, RegisterPendingResponseSchema, type RegistrationMode, RegistrationModeSchema, type RemoveAttachmentResponse, RemoveAttachmentResponseSchema, type RemoveBookmarkRequest, RemoveBookmarkRequestSchema, type RemoveBookmarkResponse, RemoveBookmarkResponseSchema, type RenamePageRequest, RenamePageRequestSchema, type RenamePageResponse, RenamePageResponseSchema, type RenameSubtreeRequest, RenameSubtreeRequestSchema, type RenameSubtreeResponse, RenameSubtreeResponseSchema, type RenameTreeError, RenameTreeErrorSchema, RenderedAstArtifactKeySchema, type RenderedAstEnvelope, RenderedAstEnvelopeOpenApiSchema, RenderedAstEnvelopeSchema, type RenderedAstNode, type RenderedAstNodeDef, RenderedAstNodeSchema, RenderedAstRootSchema, type RenderedAstValue, RenderedAstValueSchema, ReservationSchema, type ReservationShape, type ResetPasswordRequest, ResetPasswordRequestSchema, type ResetPasswordResponse, ResetPasswordResponseSchema, type RevertToRevisionRequest, RevertToRevisionRequestSchema, type Revision, type RevisionInvalidRequestError, RevisionInvalidRequestErrorSchema, type RevisionMeta, RevisionMetaSchema, RevisionMetaSchemaShape, type RevisionMetaShape, RevisionSchema, type RevisionType, RevisionTypeSchema, type RevokeRequest, RevokeRequestSchema, type RevokeResponse, RevokeResponseSchema, SCOPES, SIDECAR_KEYS, STATIC_CAPABILITIES, STRIP_KNOWN_HTML_TAGS_MAX_LENGTH, type Scope, type SearchAdminUsersByEmailRequest, SearchAdminUsersByEmailRequestSchema, type SearchAdminUsersByEmailResponse, SearchAdminUsersByEmailResponseSchema, type SearchDriverEntry, SearchDriverEntrySchema, type SearchHit, SearchHitSchema, type SearchPageType, SearchPageTypeSchema, type SearchPagesRequest, SearchPagesRequestSchema, type SearchPagesResponse, SearchPagesResponseSchema, type SecuritySettings, SecuritySettingsSchema, type SeenPageRequest, SeenPageRequestSchema, type SeenUsersResponse, SeenUsersResponseSchema, type SendTestMailError, SendTestMailErrorSchema, type SendTestMailRequest, SendTestMailRequestSchema, type SendTestMailResponse, SendTestMailResponseSchema, SenderProofSchema, SenderPublicJwkSchema, type SensitiveConfigEntry, SensitiveConfigEntrySchema, type ServiceUnavailableError, ServiceUnavailableErrorSchema, type SetPageGrantRequest, SetPageGrantRequestSchema, type SetWatchStatusRequest, SetWatchStatusRequestSchema, type ShikiToken, ShikiTokenLinesSchema, ShikiTokenSchema, ShikiTokenStyleSchema, type SidecarKey, type StorageDriverEntry, StorageDriverEntrySchema, type SuccessResponse, SuccessResponseSchema, type Theme, ThemeSchema, type ThemeUpdateResponse, ThemeUpdateResponseSchema, type ThirdPartyAuthRequiredError, ThirdPartyAuthRequiredErrorSchema, type ThirdPartyAuthUnavailableError, ThirdPartyAuthUnavailableErrorSchema, type TocEntryResponse, TocEntrySchema, TokenAuthLoginRequestSchema, TokenAuthRegisterRequestSchema, TokenAuthResponseSchema, type TokenRequest, TokenRequestSchema, type TokenResponse, TokenResponseSchema, UPLOAD_ALLOWED_MIME, UnlinkAuthProviderErrorSchema, type UpdateAdminUserEmailRequest, UpdateAdminUserEmailRequestSchema, type UpdateAppSettingsRequest, UpdateAppSettingsRequestSchema, type UpdateAppSettingsResponse, UpdateAppSettingsResponseSchema, type UpdateAuthSettingsRequest, UpdateAuthSettingsRequestSchema, type UpdateAuthSettingsResponse, UpdateAuthSettingsResponseSchema, type UpdateMailSettingsRequest, UpdateMailSettingsRequestSchema, type UpdateMailSettingsResponse, UpdateMailSettingsResponseSchema, type UpdatePageRequest, UpdatePageRequestSchema, type UpdatePasswordRequest, UpdatePasswordRequestSchema, type UpdatePluginConfigRequest, UpdatePluginConfigRequestSchema, type UpdatePluginConfigResponse, UpdatePluginConfigResponseSchema, type UpdateProfileRequest, UpdateProfileRequestSchema, type UpdateSecuritySettingsRequest, UpdateSecuritySettingsRequestSchema, type UpdateSecuritySettingsResponse, UpdateSecuritySettingsResponseSchema, type UpdateThemeRequest, UpdateThemeRequestSchema, type UploadAttachmentError, type UploadAttachmentErrorCode, UploadAttachmentErrorCodeSchema, UploadAttachmentErrorSchema, type UploadAttachmentResponse, UploadAttachmentResponseSchema, type UserBookmarksResponse, UserBookmarksResponseSchema, type UserLanguage, UserLanguageSchema, type UserListItem, UserListItemSchema, type UserNotFoundError, UserNotFoundErrorSchema, type UserPageResponse, UserPageResponseSchema, type UserPagesResponse, UserPagesResponseSchema, type UserProfileResponse, UserProfileResponseSchema, type UserPublic, UserPublicSchema, UserPublicStatus, UserStatusEnum, type UserStatusError, UserStatusErrorSchema, UserStatusSchema, type UserSubpagesRequest, UserSubpagesRequestSchema, type Username, UsernameSchema, type ValidationError, ValidationErrorSchema, WS_CLOSE_CODES, type WatchStatusResponse, WatchStatusResponseSchema, type WikiLinkResponse, WikiLinkSchema, type WsCloseCode, type WsTokenPayload, WsTokenPayloadSchema, type WsTokenResponse, WsTokenResponseSchema, acceptInviteRoute, accessTokenRoutes, activateAccountRoute, activateUserRoute, activationRoutes, addAttachmentRoute, addBookmarkRoute, addCommentRoute, adminAppRoutes, adminAuthRoutes, adminCryptoRoutes, adminMailRoutes, adminPluginsRoutes, adminSearchRoutes, adminSecurityRoutes, adminStorageRoutes, adminUsersRoutes, appRoutes, attachmentRoutes, authorizeRoute, autocompletePagesRoute, autocompleteRoutes, autocompleteUsersRoute, backlinkRoutes, bookmarkRoutes, callbackFederatedProviderRoute, cancelDraftRoute, claimPageLinkAccessRoute, clearRenderCacheAllRoute, clearRenderCachePluginRoute, clientInfoRoute, commentRoutes, confirmEmailChangeRoute, createAccessTokenRoute, createAdminRoute, createAuthProviderLinkGrantRoute, createClient, createDraftRoute, createPageRoute, deleteAccessTokenRoute, deleteCommentRoute, deletePageRoute, deletePictureRoute, deleteUserRoute, deviceAuthorizeRoute, deviceInfoRoute, deviceVerifyRoute, discoveryRoute, draftRoutes, editUserRoute, emailChangeRoutes, federatedAuthRoutes, federatedHandoffRoute, federatedRegistrationRoutes, forgotPasswordRoute, getAppInfoRoute, getAppSettingsRoute, getAttachmentMetaRoute, getAttachmentUsageRoute, getAuthSettingsRoute, getBacklinksRoute, getBookmarkRoute, getCryptoStatusRoute, getFederatedRegistrationRoute, getInstallerStatusRoute, getLikersRoute, getMailSettingsRoute, getNotificationsTokenRoute, getPageRoute, getPluginConfigRoute, getPluginReadinessRoute, getPresenceTokenRoute, getProfileRoute, getRevisionRoute, getRevisionsRoute, getSearchStatusRoute, getSecuritySettingsRoute, getSeenUsersRoute, getStorageStatusRoute, getUnreadCountRoute, getUserBookmarksRoute, getUserPageRoute, getUserPagesRoute, getUserSubpagesRoute, getWatchStatusRoute, getYjsTokenRoute, installerRoutes, inviteAcceptRoutes, invitePreviewRoute, inviteUsersRoute, isIssuableScope, isScope, likePageRoute, listAccessTokensRoute, listAttachmentsRoute, listCommentsRoute, listDraftsRoute, listFederatedProvidersRoute, listLinkedAuthProvidersRoute, listMembersRoute, listMyBookmarksRoute, listNotificationsRoute, listPageChildrenRoute, listPagesRoute, listPluginsRoute, listRevisionsRoute, listUsersRoute, logoutFederatedRegistrationRoute, makeAdminRoute, markAllAsReadRoute, meRoutes, notificationRoutes, oauthRoutes, openNotificationRoute, pageCollabRoutes, pagePreviewRoutes, pageRoutes, parseScopeClaim, passwordResetRoutes, pendingUsersCountRoute, presenceRoutes, previewPageRoute, recentlyViewedPagesRoute, reencryptAllRoute, removeAttachmentRoute, removeBookmarkRoute, removeFromAdminRoute, renamePageRoute, renameSubtreeRoute, resendInviteRoute, resetPasswordRoute, revertDeletedPageRoute, revertToRevisionRoute, revisionRoutes, revokeRoute, scopeSatisfies, searchPagesRoute, searchRoutes, searchUsersByEmailRoute, seenPageRoute, selfResetPasswordRoute, sendTestMailRoute, setPageGrantRoute, setWatchStatusRoute, startFederatedProviderRoute, stripKnownHtmlTags, submitFederatedRegistrationRoute, suspendUserRoute, tokenAuthRoutes, tokenLoginRoute, tokenLogoutRoute, tokenMeRoute, tokenRefreshRoute, tokenRegisterRoute, tokenRoute, unlikePageRoute, unlinkAuthProviderRoute, unwrapRenderedAst, updateAppSettingsRoute, updateAuthSettingsRoute, updateMailSettingsRoute, updatePageRoute, updatePasswordRoute, updatePluginConfigRoute, updateProfileRoute, updateSecuritySettingsRoute, updateThemeRoute, updateUserEmailRoute, uploadAttachmentRoute, uploadPictureRoute, userRoutes, validateActivationTokenRoute, validateEmailChangeTokenRoute, validateResetTokenRoute };
51614
+ export { ALL_CAPABILITIES, ALL_SCOPES, API_SURFACE_VERSION, AST_INPUT_LIMIT_BYTES, AST_MAX_HAST_DEPTH, AST_MAX_IMAGE_BASE64_CHARS, AST_MAX_TREE_DEPTH, AST_MAX_VALUE_CHARS, AST_OUTPUT_BUDGET_BYTES, AST_OUTPUT_WARN_BYTES, type AccessToken, AccessTokenSchema, type ActivateRequest, ActivateRequestSchema, type ActivateValidationResponse, ActivateValidationResponseSchema, type ActiveSearchDriver, ActiveSearchDriverSchema, type ActiveStorageDriver, ActiveStorageDriverSchema, type AddAttachmentResponse, AddAttachmentResponseSchema, type AddBookmarkRequest, AddBookmarkRequestSchema, type AddCommentRequest, AddCommentRequestSchema, type AddCommentResponse, AddCommentResponseSchema, type AdminPager, AdminPagerSchema, type AdminRequiredError, AdminRequiredErrorSchema, type AdminSettingsContractApp, AdminSidebarSection, type AdminSidebarSectionValue, type AdminUserIdParam, AdminUserIdParamSchema, type AdminUserMutationResponse, AdminUserMutationResponseSchema, type AdminUsersPluginsContractApp, type ApiError, ApiErrorSchema, type AppAuthMeUserChain, type AppInfoResponse, AppInfoResponseSchema, type AppSettingsValidationError, AppSettingsValidationErrorSchema, type ApplicationNotInstalledError, ApplicationNotInstalledErrorSchema, type AstChildModel, type AstFieldsValidator, type AstPlacement, type Attachment, type AttachmentError, AttachmentErrorCodeSchema, AttachmentErrorSchema, type AttachmentMeta, AttachmentMetaSchema, AttachmentSchema, type AttachmentUsageResponse, AttachmentUsageResponseSchema, type AuthSettings, AuthSettingsSchema, type AuthenticationRequiredError, AuthenticationRequiredErrorSchema, type AuthorizeRequest, AuthorizeRequestSchema, type AuthorizeResponse, AuthorizeResponseSchema, type AutocompleteRateLimitError, AutocompleteRateLimitErrorSchema, type AutocompleteRequest, AutocompleteRequestSchema, type AutocompleteResponse, AutocompleteResponseSchema, type AutocompleteResult, AutocompleteResultSchema, type Backlink, type BacklinkFromPage, BacklinkFromPageSchema, type BacklinkFromRevision, BacklinkFromRevisionSchema, BacklinkSchema, type Bookmark, type BookmarkBacklinkCommentRevisionChain, type BookmarkResponse, BookmarkResponseSchema, BookmarkSchema, CURRENT_AST_VERSION, type Capability, CapabilitySchema, type ClaimPageLinkAccessResponse, ClaimPageLinkAccessResponseSchema, type ClearRenderCacheResponse, ClearRenderCacheResponseSchema, type ClientInfoResponse, ClientInfoResponseSchema, type ClientOptions, type CollabForceReloadMessage, CollabForceReloadMessageSchema, type CollabSaveError, CollabSaveErrorSchema, type CollabSaveMessage, CollabSaveMessageSchema, type CollabSaveOk, CollabSaveOkSchema, type Comment, type CommentInvalidRequestError, CommentInvalidRequestErrorSchema, type CommentNotFoundError, CommentNotFoundErrorSchema, CommentSchema, type ConfigReadinessIssue, ConfigReadinessIssueSchema, type ConfigReadinessResponse, ConfigReadinessResponseSchema, type ConfirmEmailChangeRequest, ConfirmEmailChangeRequestSchema, type ConfirmEmailChangeResponse, ConfirmEmailChangeResponseSchema, type ConflictError, ConflictErrorSchema, type ContributorRef, ContributorRefSchema, type CreateAccessTokenRequest, CreateAccessTokenRequestSchema, type CreateAccessTokenResponse, CreateAccessTokenResponseSchema, CreateAdminRequestSchema, CreateAdminResponseSchema, type CreateDraftRequest, CreateDraftRequestSchema, type CreateDraftResponse, CreateDraftResponseSchema, CreateLinkGrantRequestSchema, CreateLinkGrantResponseSchema, type CreatePageRequest, CreatePageRequestSchema, type CrowiApiClient, type CrowiCodeSidecar, CrowiCodeSidecarSchema, CrowiDiagramNodeSchema, type CrowiDiagramSidecar, CrowiDiagramSidecarSchema, CrowiDimensionSchema, type CrowiFrontmatterEntry, CrowiFrontmatterEntrySchema, type CrowiImagePayload, CrowiImagePayloadSchema, CrowiLinkCardNodeSchema, type CrowiLinkCardSidecar, CrowiLinkCardSidecarSchema, type CrowiMathSidecar, CrowiMathSidecarSchema, CrowiOpaqueNodeSchema, type CrowiPlaceholderKind, CrowiPlaceholderKindSchema, CrowiPlaceholderNodeSchema, type CrowiPlaceholderSidecar, CrowiPlaceholderSidecarSchema, type CryptoStatusResponse, CryptoStatusResponseSchema, DEVICE_CODE_GRANT_TYPE, DISCOVERY_SCOPES_SUPPORTED, DYNAMIC_CAPABILITIES, type DeleteAdminUserResponse, DeleteAdminUserResponseSchema, type DeleteCommentRequest, DeleteCommentRequestSchema, type DeleteCommentResponse, DeleteCommentResponseSchema, type DeviceAuthorizeRequest, DeviceAuthorizeRequestSchema, type DeviceAuthorizeResponse, DeviceAuthorizeResponseSchema, type DeviceInfoResponse, DeviceInfoResponseSchema, type DeviceVerifyRequest, DeviceVerifyRequestSchema, type DeviceVerifyResponse, DeviceVerifyResponseSchema, type DiscoveryResponse, DiscoveryResponseSchema, type DraftBadRequestError, DraftBadRequestErrorSchema, type DraftConflictOwner, DraftConflictOwnerSchema, type DraftNotFoundError, DraftNotFoundErrorSchema, type DraftPathConflictError, DraftPathConflictErrorSchema, type DraftSummary, DraftSummarySchema, ERROR_CODES, type EditAdminUserRequest, EditAdminUserRequestSchema, type EncryptionNotConfiguredError, EncryptionNotConfiguredErrorSchema, type ErrorCode, ErrorCodeSchema, FRONTMATTER_MAX_ENTRIES, FRONTMATTER_MAX_KEY_CHARS, FRONTMATTER_MAX_RAW_BYTES, FRONTMATTER_MAX_VALUE_CHARS, type FederatedAuthContractApp, FederatedHandoffRequestSchema, FederatedHandoffResponseSchema, FederatedProviderSchema, FederatedRegistrationActiveResultSchema, FederatedRegistrationApprovalResultSchema, type FederatedRegistrationContractApp, FederatedRegistrationResultSchema, FederatedRegistrationSnapshotSchema, FederatedRegistrationSubmitRequestSchema, type ForbiddenError, ForbiddenErrorSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, type ForgotPasswordResponse, ForgotPasswordResponseSchema, GRANT_TYPES_SUPPORTED, type GetAppSettingsResponse, GetAppSettingsResponseSchema, type GetAuthSettingsResponse, GetAuthSettingsResponseSchema, type GetBacklinksRequest, GetBacklinksRequestSchema, type GetBacklinksResponse, GetBacklinksResponseSchema, type GetBookmarkRequest, GetBookmarkRequestSchema, type GetLikersRequest, GetLikersRequestSchema, type GetMailSettingsResponse, GetMailSettingsResponseSchema, type GetPageRequest, GetPageRequestSchema, type GetPageResponse, GetPageResponseSchema, type GetRevisionResponse, GetRevisionResponseSchema, type GetRevisionsRequest, GetRevisionsRequestSchema, type GetRevisionsResponse, GetRevisionsResponseSchema, type GetSearchStatusResponse, GetSearchStatusResponseSchema, type GetSecuritySettingsResponse, GetSecuritySettingsResponseSchema, type GetSeenUsersRequest, GetSeenUsersRequestSchema, type GetStorageStatusResponse, GetStorageStatusResponseSchema, type GetWatchStatusRequest, GetWatchStatusRequestSchema, type HChild, HChildSchema, HChildrenSchema, HNameSchema, HPropertiesSchema, type HastHintData, HastHintDataSchema, ISSUABLE_SCOPES, InstallerStatusResponseSchema, type InsufficientScopeError, InsufficientScopeErrorSchema, type InternalServerError, InternalServerErrorSchema, type InvalidPageIdError, InvalidPageIdErrorSchema, type InvalidScopeError, InvalidScopeErrorSchema, type InviteAcceptRequest, InviteAcceptRequestSchema, type InvitePreviewResponse, InvitePreviewResponseSchema, type InviteUsersRequest, InviteUsersRequestSchema, type InviteUsersResponse, InviteUsersResponseSchema, type InvitedUserResult, InvitedUserResultSchema, KNOWN_HTML_ELEMENTS, type Language, LanguageSchema, type LateContractApp, type Liker, LikerSchema, type LikersResponse, LikersResponseSchema, LinkedAuthProviderListResponseSchema, type ListAccessTokensResponse, ListAccessTokensResponseSchema, type ListAdminUsersRequest, ListAdminUsersRequestSchema, type ListAdminUsersResponse, ListAdminUsersResponseSchema, type ListAttachmentsResponse, ListAttachmentsResponseSchema, type ListCommentsRequest, ListCommentsRequestSchema, type ListCommentsResponse, ListCommentsResponseSchema, type ListDraftsResponse, ListDraftsResponseSchema, type ListMyBookmarksResponse, ListMyBookmarksResponseSchema, type ListNotificationsRequest, ListNotificationsRequestSchema, type ListNotificationsResponse, ListNotificationsResponseSchema, type ListPageChildrenRequest, ListPageChildrenRequestSchema, type ListPageChildrenResponse, ListPageChildrenResponseSchema, type ListPagesRequest, ListPagesRequestSchema, type ListPagesResponse, ListPagesResponseSchema, type ListPagesSort, type ListPluginsResponse, ListPluginsResponseSchema, type ListRevisionsRequest, ListRevisionsRequestSchema, type ListRevisionsResponse, ListRevisionsResponseSchema, type ListUsersRequest, ListUsersRequestSchema, type ListUsersResponse, ListUsersResponseSchema, LooseRenderedAstRootSchema, type MailSettingsValidationError, MailSettingsValidationErrorSchema, type MailTokenPayload, MailTokenPayloadSchema, type MailTokenPurpose, MailTokenPurposeSchema, type MarkAllAsReadResponse, MarkAllAsReadResponseSchema, type MentionResponse, MentionSchema, type NotFoundError, NotFoundErrorSchema, type Notification, type NotificationAction, NotificationActionEnum, NotificationActionSchema, type NotificationNotFoundError, NotificationNotFoundErrorSchema, NotificationSchema, type NotificationStatus, NotificationStatusEnum, type NotificationStatusResponse, NotificationStatusResponseSchema, NotificationStatusSchema, type NotificationTargetModel, NotificationTargetModelEnum, NotificationTargetModelSchema, type NotificationsChangedMessage, NotificationsChangedMessageSchema, type NotificationsServerMessage, NotificationsServerMessageSchema, type NotificationsTokenPayload, NotificationsTokenPayloadSchema, type NotificationsTokenResponse, NotificationsTokenResponseSchema, OAUTH_ERROR_CODES, type OAuthContractApp, type OAuthError, type OAuthErrorCode, OAuthErrorSchema, type OpenNotificationParam, OpenNotificationParamSchema, type OpenNotificationResponse, OpenNotificationResponseSchema, type Page, type PageChain, type PageChildSegment, PageChildSegmentSchema, PageExtendedSchema, PageGrantEnum, PageGrantSchema, type PageNotFoundError, PageNotFoundErrorSchema, type PageNotGrantedError, PageNotGrantedErrorSchema, type PageRef, PageRefSchema, type PageRevisionError, PageRevisionErrorSchema, PageSchema, PageStatusEnum, PageStatusSchema, PageTypeEnum, PageTypeSchema, type PageUser, PageUserSchema, type PageWithRevision, PageWithRevisionSchema, type Pager, PagerSchema, type PaginationRequest, PaginationRequestSchema, type PasswordErrorResponse, PasswordErrorResponseSchema, type PasswordUpdateSuccess, PasswordUpdateSuccessSchema, type PastAttachmentUsage, PastAttachmentUsageSchema, type PendingUsersCountResponse, PendingUsersCountResponseSchema, type PictureUploadResponse, PictureUploadResponseSchema, type PluginAdminPlacement, PluginAdminPlacementSchema, type PluginConfigResponse, PluginConfigResponseSchema, type PluginConfigValidationError, PluginConfigValidationErrorSchema, type PluginField, PluginFieldSchema, type PluginInfo, PluginInfoSchema, type PluginNotFoundError, PluginNotFoundErrorSchema, type PluginReadinessField, PluginReadinessFieldSchema, type PresenceClientMessage, PresenceClientMessageSchema, type PresenceCommentChangedMessage, PresenceCommentChangedMessageSchema, type PresenceHeartbeatMessage, PresenceHeartbeatMessageSchema, type PresencePageUpdatedMessage, PresencePageUpdatedMessageSchema, type PresenceServerMessage, PresenceServerMessageSchema, type PresenceTokenPayload, PresenceTokenPayloadSchema, type PresenceTokenResponse, PresenceTokenResponseSchema, type PresenceViewer, PresenceViewerSchema, type PresenceViewersMessage, PresenceViewersMessageSchema, type PreviewPageRequest, PreviewPageRequestSchema, type PreviewPageResponse, PreviewPageResponseSchema, type ProfileErrorResponse, ProfileErrorResponseSchema, ProviderListResponseSchema, RENDERED_AST_NODE_DEFS, type RecentlyViewedPagesResponse, RecentlyViewedPagesResponseSchema, type ReencryptResponse, ReencryptResponseSchema, RefreshTokenRequestSchema, type RegisterPendingResponse, RegisterPendingResponseSchema, type RegistrationMode, RegistrationModeSchema, type RemoveAttachmentResponse, RemoveAttachmentResponseSchema, type RemoveBookmarkRequest, RemoveBookmarkRequestSchema, type RemoveBookmarkResponse, RemoveBookmarkResponseSchema, type RenamePageRequest, RenamePageRequestSchema, type RenamePageResponse, RenamePageResponseSchema, type RenameSubtreeRequest, RenameSubtreeRequestSchema, type RenameSubtreeResponse, RenameSubtreeResponseSchema, type RenameTreeError, RenameTreeErrorSchema, RenderedAstArtifactKeySchema, type RenderedAstEnvelope, RenderedAstEnvelopeOpenApiSchema, RenderedAstEnvelopeSchema, type RenderedAstNode, type RenderedAstNodeDef, RenderedAstNodeSchema, RenderedAstRootSchema, type RenderedAstValue, RenderedAstValueSchema, ReservationSchema, type ReservationShape, type ResetPasswordRequest, ResetPasswordRequestSchema, type ResetPasswordResponse, ResetPasswordResponseSchema, type RevertToRevisionRequest, RevertToRevisionRequestSchema, type Revision, type RevisionInvalidRequestError, RevisionInvalidRequestErrorSchema, type RevisionMeta, RevisionMetaSchema, RevisionMetaSchemaShape, type RevisionMetaShape, RevisionSchema, type RevisionType, RevisionTypeSchema, type RevokeRequest, RevokeRequestSchema, type RevokeResponse, RevokeResponseSchema, SCOPES, SIDECAR_KEYS, STATIC_CAPABILITIES, STRIP_KNOWN_HTML_TAGS_MAX_LENGTH, type Scope, type SearchAdminUsersByEmailRequest, SearchAdminUsersByEmailRequestSchema, type SearchAdminUsersByEmailResponse, SearchAdminUsersByEmailResponseSchema, type SearchDriverEntry, SearchDriverEntrySchema, type SearchHit, SearchHitSchema, type SearchPageType, SearchPageTypeSchema, type SearchPagesRequest, SearchPagesRequestSchema, type SearchPagesResponse, SearchPagesResponseSchema, type SecuritySettings, SecuritySettingsSchema, type SeenPageRequest, SeenPageRequestSchema, type SeenUsersResponse, SeenUsersResponseSchema, type SendTestMailError, SendTestMailErrorSchema, type SendTestMailRequest, SendTestMailRequestSchema, type SendTestMailResponse, SendTestMailResponseSchema, SenderProofSchema, SenderPublicJwkSchema, type SensitiveConfigEntry, SensitiveConfigEntrySchema, type ServiceUnavailableError, ServiceUnavailableErrorSchema, type SetPageGrantRequest, SetPageGrantRequestSchema, type SetWatchStatusRequest, SetWatchStatusRequestSchema, type ShikiToken, ShikiTokenLinesSchema, ShikiTokenSchema, ShikiTokenStyleSchema, type SidecarKey, type StorageDriverEntry, StorageDriverEntrySchema, type SuccessResponse, SuccessResponseSchema, type Theme, ThemeSchema, type ThemeUpdateResponse, ThemeUpdateResponseSchema, type ThirdPartyAuthRequiredError, ThirdPartyAuthRequiredErrorSchema, type ThirdPartyAuthUnavailableError, ThirdPartyAuthUnavailableErrorSchema, type TocEntryResponse, TocEntrySchema, TokenAuthLoginRequestSchema, TokenAuthRegisterRequestSchema, TokenAuthResponseSchema, type TokenRequest, TokenRequestSchema, type TokenResponse, TokenResponseSchema, UPLOAD_ALLOWED_MIME, UnlinkAuthProviderErrorSchema, type UpdateAdminUserEmailRequest, UpdateAdminUserEmailRequestSchema, type UpdateAppSettingsRequest, UpdateAppSettingsRequestSchema, type UpdateAppSettingsResponse, UpdateAppSettingsResponseSchema, type UpdateAuthSettingsRequest, UpdateAuthSettingsRequestSchema, type UpdateAuthSettingsResponse, UpdateAuthSettingsResponseSchema, type UpdateMailSettingsRequest, UpdateMailSettingsRequestSchema, type UpdateMailSettingsResponse, UpdateMailSettingsResponseSchema, type UpdatePageRequest, UpdatePageRequestSchema, type UpdatePasswordRequest, UpdatePasswordRequestSchema, type UpdatePluginConfigRequest, UpdatePluginConfigRequestSchema, type UpdatePluginConfigResponse, UpdatePluginConfigResponseSchema, type UpdateProfileRequest, UpdateProfileRequestSchema, type UpdateSecuritySettingsRequest, UpdateSecuritySettingsRequestSchema, type UpdateSecuritySettingsResponse, UpdateSecuritySettingsResponseSchema, type UpdateThemeRequest, UpdateThemeRequestSchema, type UploadAttachmentError, type UploadAttachmentErrorCode, UploadAttachmentErrorCodeSchema, UploadAttachmentErrorSchema, type UploadAttachmentResponse, UploadAttachmentResponseSchema, type UploadPolicyResponse, UploadPolicyResponseSchema, type UserBookmarksResponse, UserBookmarksResponseSchema, type UserLanguage, UserLanguageSchema, type UserListItem, UserListItemSchema, type UserNotFoundError, UserNotFoundErrorSchema, type UserPageResponse, UserPageResponseSchema, type UserPagesResponse, UserPagesResponseSchema, type UserProfileResponse, UserProfileResponseSchema, type UserPublic, UserPublicSchema, UserPublicStatus, UserStatusEnum, type UserStatusError, UserStatusErrorSchema, UserStatusSchema, type UserSubpagesRequest, UserSubpagesRequestSchema, type Username, UsernameSchema, type ValidationError, ValidationErrorSchema, WS_CLOSE_CODES, type WatchStatusResponse, WatchStatusResponseSchema, type WikiLinkResponse, WikiLinkSchema, type WsCloseCode, type WsTokenPayload, WsTokenPayloadSchema, type WsTokenResponse, WsTokenResponseSchema, acceptInviteRoute, accessTokenRoutes, activateAccountRoute, activateUserRoute, activationRoutes, addAttachmentRoute, addBookmarkRoute, addCommentRoute, adminAppRoutes, adminAuthRoutes, adminCryptoRoutes, adminMailRoutes, adminPluginsRoutes, adminSearchRoutes, adminSecurityRoutes, adminStorageRoutes, adminUsersRoutes, appRoutes, attachmentRoutes, authorizeRoute, autocompletePagesRoute, autocompleteRoutes, autocompleteUsersRoute, backlinkRoutes, bookmarkRoutes, callbackFederatedProviderRoute, cancelDraftRoute, claimPageLinkAccessRoute, clearRenderCacheAllRoute, clearRenderCachePluginRoute, clientInfoRoute, commentRoutes, confirmEmailChangeRoute, createAccessTokenRoute, createAdminRoute, createAuthProviderLinkGrantRoute, createClient, createDraftRoute, createPageRoute, deleteAccessTokenRoute, deleteCommentRoute, deletePageRoute, deletePictureRoute, deleteUserRoute, deviceAuthorizeRoute, deviceInfoRoute, deviceVerifyRoute, discoveryRoute, draftRoutes, editUserRoute, emailChangeRoutes, federatedAuthRoutes, federatedHandoffRoute, federatedRegistrationRoutes, forgotPasswordRoute, getAppInfoRoute, getAppSettingsRoute, getAttachmentMetaRoute, getAttachmentUsageRoute, getAuthSettingsRoute, getBacklinksRoute, getBookmarkRoute, getCryptoStatusRoute, getFederatedRegistrationRoute, getInstallerStatusRoute, getLikersRoute, getMailSettingsRoute, getNotificationsTokenRoute, getPageRoute, getPluginConfigRoute, getPluginReadinessRoute, getPresenceTokenRoute, getProfileRoute, getRevisionRoute, getRevisionsRoute, getSearchStatusRoute, getSecuritySettingsRoute, getSeenUsersRoute, getStorageStatusRoute, getUnreadCountRoute, getUploadPolicyRoute, getUserBookmarksRoute, getUserPageRoute, getUserPagesRoute, getUserSubpagesRoute, getWatchStatusRoute, getYjsTokenRoute, installerRoutes, inviteAcceptRoutes, invitePreviewRoute, inviteUsersRoute, isIssuableScope, isScope, likePageRoute, listAccessTokensRoute, listAttachmentsRoute, listCommentsRoute, listDraftsRoute, listFederatedProvidersRoute, listLinkedAuthProvidersRoute, listMembersRoute, listMyBookmarksRoute, listNotificationsRoute, listPageChildrenRoute, listPagesRoute, listPluginsRoute, listRevisionsRoute, listUsersRoute, logoutFederatedRegistrationRoute, makeAdminRoute, markAllAsReadRoute, meRoutes, notificationRoutes, oauthRoutes, openNotificationRoute, pageCollabRoutes, pagePreviewRoutes, pageRoutes, parseScopeClaim, passwordResetRoutes, pendingUsersCountRoute, presenceRoutes, previewPageRoute, recentlyViewedPagesRoute, reencryptAllRoute, removeAttachmentRoute, removeBookmarkRoute, removeFromAdminRoute, renamePageRoute, renameSubtreeRoute, resendInviteRoute, resetPasswordRoute, revertDeletedPageRoute, revertToRevisionRoute, revisionRoutes, revokeRoute, scopeSatisfies, searchPagesRoute, searchRoutes, searchUsersByEmailRoute, seenPageRoute, selfResetPasswordRoute, sendTestMailRoute, setPageGrantRoute, setWatchStatusRoute, startFederatedProviderRoute, stripKnownHtmlTags, submitFederatedRegistrationRoute, suspendUserRoute, tokenAuthRoutes, tokenLoginRoute, tokenLogoutRoute, tokenMeRoute, tokenRefreshRoute, tokenRegisterRoute, tokenRoute, unlikePageRoute, unlinkAuthProviderRoute, unwrapRenderedAst, updateAppSettingsRoute, updateAuthSettingsRoute, updateMailSettingsRoute, updatePageRoute, updatePasswordRoute, updatePluginConfigRoute, updateProfileRoute, updateSecuritySettingsRoute, updateThemeRoute, updateUserEmailRoute, uploadAttachmentRoute, uploadPictureRoute, userRoutes, validateActivationTokenRoute, validateEmailChangeTokenRoute, validateResetTokenRoute };