@growi/sdk-typescript 1.0.0-RC.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +210 -0
  4. package/README_JP.md +211 -0
  5. package/dist/apiv1/index.d.ts +22 -0
  6. package/dist/apiv1/index.d.ts.map +1 -0
  7. package/dist/apiv1/index.js +3 -0
  8. package/dist/apiv1/index.js.map +1 -0
  9. package/dist/apiv3/index.d.ts +245 -0
  10. package/dist/apiv3/index.d.ts.map +1 -0
  11. package/dist/apiv3/index.js +3 -0
  12. package/dist/apiv3/index.js.map +1 -0
  13. package/dist/generated/v1/index.d.ts +47 -0
  14. package/dist/generated/v1/index.d.ts.map +1 -0
  15. package/dist/generated/v1/index.js +131 -0
  16. package/dist/generated/v1/index.js.map +1 -0
  17. package/dist/generated/v1/index.schemas.d.ts +491 -0
  18. package/dist/generated/v1/index.schemas.d.ts.map +1 -0
  19. package/dist/generated/v1/index.schemas.js +12 -0
  20. package/dist/generated/v1/index.schemas.js.map +1 -0
  21. package/dist/generated/v3/index.d.ts +493 -0
  22. package/dist/generated/v3/index.d.ts.map +1 -0
  23. package/dist/generated/v3/index.js +1981 -0
  24. package/dist/generated/v3/index.js.map +1 -0
  25. package/dist/generated/v3/index.schemas.d.ts +3548 -0
  26. package/dist/generated/v3/index.schemas.d.ts.map +1 -0
  27. package/dist/generated/v3/index.schemas.js +30 -0
  28. package/dist/generated/v3/index.schemas.js.map +1 -0
  29. package/dist/index.d.ts +6 -0
  30. package/dist/index.d.ts.map +1 -0
  31. package/dist/index.js +5 -0
  32. package/dist/index.js.map +1 -0
  33. package/dist/utils/axios-instance.d.ts +5 -0
  34. package/dist/utils/axios-instance.d.ts.map +1 -0
  35. package/dist/utils/axios-instance.js +19 -0
  36. package/dist/utils/axios-instance.js.map +1 -0
  37. package/package.json +53 -0
  38. package/src/apiv1/index.ts +7 -0
  39. package/src/apiv3/index.ts +7 -0
  40. package/src/generated/v1/index.schemas.ts +554 -0
  41. package/src/generated/v1/index.ts +231 -0
  42. package/src/generated/v3/index.schemas.ts +3891 -0
  43. package/src/generated/v3/index.ts +3362 -0
  44. package/src/index.ts +8 -0
  45. package/src/utils/axios-instance.ts +23 -0
@@ -0,0 +1,3891 @@
1
+ /**
2
+ * Generated by orval v7.9.0 🍺
3
+ * Do not edit manually.
4
+ * GROWI REST API v3
5
+ * OpenAPI spec version: 7.2.6-RC.0
6
+ */
7
+ export interface SyncStatus {
8
+ isExecutingSync?: boolean;
9
+ totalCount?: number;
10
+ count?: number;
11
+ }
12
+
13
+ export type ActivityResponseSerializedPaginationResultDocsItemSnapshot = {
14
+ username?: string;
15
+ _id?: string;
16
+ };
17
+
18
+ export type ActivityResponseSerializedPaginationResultDocsItemUser = {
19
+ _id?: string;
20
+ isGravatarEnabled?: boolean;
21
+ isEmailPublished?: boolean;
22
+ lang?: string;
23
+ status?: number;
24
+ admin?: boolean;
25
+ readOnly?: boolean;
26
+ isInvitationEmailSended?: boolean;
27
+ isQuestionnaireEnabled?: boolean;
28
+ name?: string;
29
+ username?: string;
30
+ createdAt?: string;
31
+ updatedAt?: string;
32
+ __v?: number;
33
+ imageUrlCached?: string;
34
+ lastLoginAt?: string;
35
+ email?: string;
36
+ };
37
+
38
+ export type ActivityResponseSerializedPaginationResultDocsItem = {
39
+ _id?: string;
40
+ id?: string;
41
+ ip?: string;
42
+ endpoint?: string;
43
+ targetModel?: string;
44
+ target?: string;
45
+ action?: string;
46
+ snapshot?: ActivityResponseSerializedPaginationResultDocsItemSnapshot;
47
+ createdAt?: string;
48
+ __v?: number;
49
+ user?: ActivityResponseSerializedPaginationResultDocsItemUser;
50
+ };
51
+
52
+ export type ActivityResponseSerializedPaginationResult = {
53
+ docs?: ActivityResponseSerializedPaginationResultDocsItem[];
54
+ totalDocs?: number;
55
+ offset?: number;
56
+ limit?: number;
57
+ totalPages?: number;
58
+ page?: number;
59
+ pagingCounter?: number;
60
+ hasPrevPage?: boolean;
61
+ hasNextPage?: boolean;
62
+ /** @nullable */
63
+ prevPage?: number | null;
64
+ /** @nullable */
65
+ nextPage?: number | null;
66
+ };
67
+
68
+ export interface ActivityResponse {
69
+ serializedPaginationResult?: ActivityResponseSerializedPaginationResult;
70
+ }
71
+
72
+ /**
73
+ * environment variables
74
+ */
75
+ export type SystemInformationParamsEnvVars = { [key: string]: string };
76
+
77
+ export interface SystemInformationParams {
78
+ /** GROWI version or '-' */
79
+ growiVersion?: string;
80
+ /** node version or '-' */
81
+ nodeVersion?: string;
82
+ /** npm version or '-' */
83
+ npmVersion?: string;
84
+ /** pnpm version or '-' */
85
+ pnpmVersion?: string;
86
+ /** environment variables */
87
+ envVars?: SystemInformationParamsEnvVars;
88
+ /** This value is true if this GROWI is compatible v5. */
89
+ isV5Compatible?: boolean;
90
+ /** This value is true if this site is maintenance mode. */
91
+ isMaintenanceMode?: boolean;
92
+ }
93
+
94
+ /**
95
+ * installed plugins
96
+ */
97
+ export type InstalledPluginsParamsInstalledPlugins = { [key: string]: unknown };
98
+
99
+ export interface InstalledPluginsParams {
100
+ /** installed plugins */
101
+ installedPlugins?: InstalledPluginsParamsInstalledPlugins;
102
+ }
103
+
104
+ /**
105
+ * AppSettingParams
106
+ */
107
+ export interface AppSettingParams {
108
+ azureReferenceFileWithRelayMode?: boolean;
109
+ azureUseOnlyEnvVars?: boolean;
110
+ /** confidential show on page header */
111
+ confidential?: string;
112
+ envAzureClientId?: string;
113
+ envAzureClientSecret?: string;
114
+ envAzureStorageAccountName?: string;
115
+ envAzureStorageContainerName?: string;
116
+ envFileUploadType?: string;
117
+ envGcsApiKeyJsonPath?: string;
118
+ envGcsBucket?: string;
119
+ envGcsUploadNamespace?: string;
120
+ envSiteUrl?: string;
121
+ fileUpload?: boolean;
122
+ fileUploadType?: string;
123
+ fromAddress?: string;
124
+ gcsApiKeyJsonPath?: string;
125
+ gcsBucket?: string;
126
+ gcsReferenceFileWithRelayMode?: boolean;
127
+ gcsUploadNamespace?: string;
128
+ gcsUseOnlyEnvVars?: boolean;
129
+ globalLang?: string;
130
+ isAppSiteUrlHashed?: boolean;
131
+ isEmailPublishedForNewUser?: boolean;
132
+ isMaintenanceMode?: boolean;
133
+ isQuestionnaireEnabled?: boolean;
134
+ isV5Compatible?: boolean;
135
+ s3AccessKeyId?: string;
136
+ s3Bucket?: string;
137
+ s3CustomEndpoint?: string;
138
+ s3ReferenceFileWithRelayMode?: boolean;
139
+ s3Region?: string;
140
+ siteUrl?: string;
141
+ siteUrlUseOnlyEnvVars?: boolean;
142
+ smtpHost?: string;
143
+ smtpPassword?: string;
144
+ smtpPort?: string;
145
+ smtpUser?: string;
146
+ useOnlyEnvVarForFileUploadType?: boolean;
147
+ }
148
+
149
+ /**
150
+ * AppSettingPutParams
151
+ */
152
+ export interface AppSettingPutParams {
153
+ /** title of the site */
154
+ title?: string;
155
+ /** confidential show on page header */
156
+ confidential?: string;
157
+ /** global language */
158
+ globalLang?: string;
159
+ /** is email published for new user, or not */
160
+ isEmailPublishedForNewUser?: boolean;
161
+ /** is file upload enabled, or not */
162
+ fileUpload?: boolean;
163
+ }
164
+
165
+ /**
166
+ * SiteUrlSettingParams
167
+ */
168
+ export interface SiteUrlSettingParams {
169
+ /** Site URL. e.g. https://example.com, https://example.com:8080 */
170
+ siteUrl?: string;
171
+ /** environment variable 'APP_SITE_URL' */
172
+ envSiteUrl?: string;
173
+ }
174
+
175
+ /**
176
+ * SmtpSettingParams
177
+ */
178
+ export interface SmtpSettingParams {
179
+ /** host name of client's smtp server */
180
+ smtpHost?: string;
181
+ /** port of client's smtp server */
182
+ smtpPort?: string;
183
+ /** user name of client's smtp server */
184
+ smtpUser?: string;
185
+ /** password of client's smtp server */
186
+ smtpPassword?: string;
187
+ /** e-mail address */
188
+ fromAddress?: string;
189
+ }
190
+
191
+ /**
192
+ * SmtpSettingResponseParams
193
+ */
194
+ export interface SmtpSettingResponseParams {
195
+ /** is mailer setup, or not */
196
+ isMailerSetup?: boolean;
197
+ /** host name of client's smtp server */
198
+ smtpHost?: string;
199
+ /** port of client's smtp server */
200
+ smtpPort?: string;
201
+ /** user name of client's smtp server */
202
+ smtpUser?: string;
203
+ /** password of client's smtp server */
204
+ smtpPassword?: string;
205
+ /** e-mail address */
206
+ fromAddress?: string;
207
+ }
208
+
209
+ /**
210
+ * SesSettingParams
211
+ */
212
+ export interface SesSettingParams {
213
+ /** e-mail address used as from address of mail which sent from GROWI app */
214
+ from?: string;
215
+ /** transmission method */
216
+ transmissionMethod?: string;
217
+ /** accesskey id for authentification of AWS */
218
+ sesAccessKeyId?: string;
219
+ /** secret key for authentification of AWS */
220
+ sesSecretAccessKey?: string;
221
+ }
222
+
223
+ /**
224
+ * SesSettingParams
225
+ */
226
+ export interface SesSettingResponseParams {
227
+ /** is mailer setup, or not */
228
+ isMailerSetup?: boolean;
229
+ /** e-mail address used as from address of mail which sent from GROWI app */
230
+ from?: string;
231
+ /** transmission method */
232
+ transmissionMethod?: string;
233
+ /** accesskey id for authentification of AWS */
234
+ sesAccessKeyId?: string;
235
+ /** secret key for authentification of AWS */
236
+ sesSecretAccessKey?: string;
237
+ }
238
+
239
+ /**
240
+ * FileUploadTypeParams
241
+ */
242
+ export interface FileUploadSettingParams {
243
+ /** fileUploadType */
244
+ fileUploadType?: string;
245
+ /** region of AWS S3 */
246
+ s3Region?: string;
247
+ /** custom endpoint of AWS S3 */
248
+ s3CustomEndpoint?: string;
249
+ /** AWS S3 bucket name */
250
+ s3Bucket?: string;
251
+ /** accesskey id for authentification of AWS */
252
+ s3AccessKeyId?: string;
253
+ /** secret key for authentification of AWS */
254
+ s3SecretAccessKey?: string;
255
+ /** is enable internal stream system for s3 file request */
256
+ s3ReferenceFileWithRelayMode?: boolean;
257
+ /** apiKeyJsonPath of gcp */
258
+ gcsApiKeyJsonPath?: string;
259
+ /** bucket name of gcs */
260
+ gcsBucket?: string;
261
+ /** name space of gcs */
262
+ gcsUploadNamespace?: string;
263
+ /** is enable internal stream system for gcs file request */
264
+ gcsReferenceFileWithRelayMode?: boolean;
265
+ /** tenant id of azure */
266
+ azureTenantId?: string;
267
+ /** client id of azure */
268
+ azureClientId?: string;
269
+ /** client secret of azure */
270
+ azureClientSecret?: string;
271
+ /** storage account name of azure */
272
+ azureStorageAccountName?: string;
273
+ /** storage container name of azure */
274
+ azureStorageContainerName?: string;
275
+ /** is enable internal stream system for azure file request */
276
+ azureReferenceFileWithRelayMode?: boolean;
277
+ }
278
+
279
+ /**
280
+ * QuestionnaireSettingParams
281
+ */
282
+ export interface QuestionnaireSettingParams {
283
+ /** is questionnaire enabled, or not */
284
+ isQuestionnaireEnabled?: boolean;
285
+ /** is app site url hashed, or not */
286
+ isAppSiteUrlHashed?: boolean;
287
+ }
288
+
289
+ /**
290
+ * AttachmentPaginateResult
291
+ */
292
+ export interface AttachmentPaginateResult {
293
+ docs?: Attachment[];
294
+ totalDocs?: number;
295
+ limit?: number;
296
+ totalPages?: number;
297
+ page?: number;
298
+ offset?: number;
299
+ prevPage?: number;
300
+ nextPage?: number;
301
+ hasNextPage?: boolean;
302
+ hasPrevPage?: boolean;
303
+ pagingCounter?: number;
304
+ }
305
+
306
+ /**
307
+ * Attachment
308
+ */
309
+ export interface Attachment {
310
+ /** attachment ID */
311
+ id?: string;
312
+ /** attachment ID */
313
+ _id?: string;
314
+ /** attachment version */
315
+ __v?: number;
316
+ /** attachment type */
317
+ attachmentType?: string;
318
+ /** file format in MIME */
319
+ fileFormat?: string;
320
+ /** file name */
321
+ fileName?: string;
322
+ /** original file name */
323
+ originalName?: string;
324
+ creator?: User;
325
+ /** page ID attached at */
326
+ page?: string;
327
+ /** date created at */
328
+ createdAt?: string;
329
+ /** temporary URL expired at */
330
+ temporaryUrlExpiredAt?: string;
331
+ /** file size */
332
+ fileSize?: number;
333
+ /** file path proxied */
334
+ filePathProxied?: string;
335
+ /** download path proxied */
336
+ downloadPathProxied?: string;
337
+ /** temporary URL cached */
338
+ temporaryUrlCached?: string;
339
+ }
340
+
341
+ export type BookmarkFolderBookmarksItemPageAllOf = {
342
+ /** Page ID */
343
+ id?: string;
344
+ /** Parent page ID */
345
+ parent?: string;
346
+ /** Number of descendants */
347
+ descendantCount?: number;
348
+ /** Whether the page is empty */
349
+ isEmpty?: boolean;
350
+ /** List of granted groups */
351
+ grantedGroups?: string[];
352
+ /** Creator user ID */
353
+ creator?: string;
354
+ /** Length of the latest revision body */
355
+ latestRevisionBodyLength?: number;
356
+ };
357
+
358
+ /**
359
+ * Pages that are bookmarked in the folder
360
+ */
361
+ export type BookmarkFolderBookmarksItemPage = Page & BookmarkFolderBookmarksItemPageAllOf;
362
+
363
+ export type BookmarkFolderBookmarksItem = {
364
+ /** Bookmark ID */
365
+ _id?: string;
366
+ /** User ID of the bookmarker */
367
+ user?: string;
368
+ /** Date and time when the bookmark was created */
369
+ createdAt?: string;
370
+ /** Version of the bookmark */
371
+ __v?: number;
372
+ /** Pages that are bookmarked in the folder */
373
+ page?: BookmarkFolderBookmarksItemPage;
374
+ };
375
+
376
+ /**
377
+ * Bookmark Folder
378
+ */
379
+ export interface BookmarkFolder {
380
+ /** Bookmark Folder ID */
381
+ _id?: string;
382
+ /** Version of the bookmark folder */
383
+ __v?: number;
384
+ /** Name of the bookmark folder */
385
+ name?: string;
386
+ /** Owner user ID of the bookmark folder */
387
+ owner?: string;
388
+ bookmarks?: BookmarkFolderBookmarksItem[];
389
+ childFolder?: BookmarkFolder[];
390
+ }
391
+
392
+ /**
393
+ * Bookmark
394
+ */
395
+ export interface Bookmark {
396
+ /** page ID */
397
+ _id?: string;
398
+ /** DB record version */
399
+ __v?: number;
400
+ /** date created at */
401
+ createdAt?: string;
402
+ page?: Page;
403
+ user?: ObjectId;
404
+ }
405
+
406
+ /**
407
+ * User Root Bookmarks
408
+ */
409
+ export interface Bookmarks {
410
+ userRootBookmarks?: Bookmark[];
411
+ }
412
+
413
+ /**
414
+ * BookmarkParams
415
+ */
416
+ export interface BookmarkParams {
417
+ /** page ID */
418
+ pageId?: string;
419
+ /** boolean for bookmark status */
420
+ bool?: boolean;
421
+ }
422
+
423
+ /**
424
+ * BookmarkInfo
425
+ */
426
+ export interface BookmarkInfo {
427
+ /** how many people bookmarked the page */
428
+ sumOfBookmarks?: number;
429
+ /** Whether the request user bookmarked (will be returned if the user is included in the request) */
430
+ isBookmarked?: boolean;
431
+ /** page ID */
432
+ pageId?: string;
433
+ bookmarkedUsers?: User[];
434
+ }
435
+
436
+ /**
437
+ * CustomizeLayout
438
+ */
439
+ export interface CustomizeLayout {
440
+ isContainerFluid?: boolean;
441
+ }
442
+
443
+ /**
444
+ * CustomizeTheme
445
+ */
446
+ export interface CustomizeTheme {
447
+ theme?: string;
448
+ }
449
+
450
+ /**
451
+ * CustomizeFunction
452
+ */
453
+ export interface CustomizeFunction {
454
+ isEnabledTimeline?: boolean;
455
+ isEnabledAttachTitleHeader?: boolean;
456
+ pageLimitationS?: number;
457
+ pageLimitationM?: number;
458
+ isEnabledStaleNotification?: boolean;
459
+ isAllReplyShown?: boolean;
460
+ isSearchScopeChildrenAsDefault?: boolean;
461
+ }
462
+
463
+ /**
464
+ * CustomizeHighlight
465
+ */
466
+ export interface CustomizeHighlight {
467
+ highlightJsStyle?: string;
468
+ highlightJsStyleBorder?: boolean;
469
+ }
470
+
471
+ /**
472
+ * CustomizeHighlight Response
473
+ */
474
+ export interface CustomizeHighlightResponse {
475
+ styleName?: string;
476
+ styleBorder?: boolean;
477
+ }
478
+
479
+ /**
480
+ * CustomizeTitle
481
+ */
482
+ export interface CustomizeTitle {
483
+ customizeTitle?: string;
484
+ }
485
+
486
+ /**
487
+ * CustomizeNoscript
488
+ */
489
+ export interface CustomizeNoscript {
490
+ customizeNoscript?: string;
491
+ }
492
+
493
+ /**
494
+ * CustomizeCss
495
+ */
496
+ export interface CustomizeCss {
497
+ customizeCss?: string;
498
+ }
499
+
500
+ /**
501
+ * CustomizeScript
502
+ */
503
+ export interface CustomizeScript {
504
+ customizeScript?: string;
505
+ }
506
+
507
+ /**
508
+ * Customize Setting
509
+ */
510
+ export interface CustomizeSetting {
511
+ isEnabledTimeline?: boolean;
512
+ isEnabledAttachTitleHeader?: boolean;
513
+ pageLimitationS?: number;
514
+ pageLimitationM?: number;
515
+ pageLimitationL?: number;
516
+ pageLimitationXL?: number;
517
+ isEnabledStaleNotification?: boolean;
518
+ isAllReplyShown?: boolean;
519
+ isSearchScopeChildrenAsDefault?: boolean;
520
+ isEnabledMarp?: boolean;
521
+ styleName?: string;
522
+ styleBorder?: string;
523
+ customizeTitle?: string;
524
+ customizeScript?: string;
525
+ customizeCss?: string;
526
+ customizeNoscript?: string;
527
+ }
528
+
529
+ export interface ThemesMetadata {
530
+ /** The name of the plugin theme. */
531
+ name?: string;
532
+ /** Path to the theme manifest file. */
533
+ manifestKey?: string;
534
+ /** The color scheme type (e.g., light or dark). */
535
+ schemeType?: string;
536
+ /** Light mode background color (hex). */
537
+ lightBg?: string;
538
+ /** Dark mode background color (hex). */
539
+ darkBg?: string;
540
+ /** Light mode sidebar color (hex). */
541
+ lightSidebar?: string;
542
+ /** Dark mode sidebar color (hex). */
543
+ darkSidebar?: string;
544
+ /** Light mode icon color (hex). */
545
+ lightIcon?: string;
546
+ /** Dark mode icon color (hex). */
547
+ darkIcon?: string;
548
+ /** Color of the create button (hex). */
549
+ createBtn?: string;
550
+ }
551
+
552
+ /**
553
+ * Customize Sidebar
554
+ */
555
+ export interface CustomizeSidebar {
556
+ /** The flag whether sidebar is collapsed mode or not. */
557
+ isSidebarCollapsedMode?: boolean;
558
+ /** The flag whether sidebar is closed at dock mode or not. */
559
+ isSidebarClosedAtDockMode?: boolean;
560
+ }
561
+
562
+ /**
563
+ * Customize Presentation
564
+ */
565
+ export interface CustomizePresentation {
566
+ /** The flag whether Marp is enabled or not. */
567
+ isEnabledMarp?: boolean;
568
+ }
569
+
570
+ /**
571
+ * Customize Logo
572
+ */
573
+ export interface CustomizeLogo {
574
+ /** The flag whether the logo is default or not. */
575
+ isDefaultLogo?: boolean;
576
+ }
577
+
578
+ export interface ExportStatus {
579
+ zipFileStats?: ExportZipFileStat[];
580
+ isExporting?: boolean;
581
+ /** @nullable */
582
+ progressList?: string[] | null;
583
+ }
584
+
585
+ export interface ExportZipFileStat {
586
+ meta?: ExportMeta;
587
+ fileName?: string;
588
+ zipFilePath?: string;
589
+ fileStat?: ExportFileStat;
590
+ innerFileStats?: ExportInnerFileStat[];
591
+ }
592
+
593
+ export type ExportMetaEnvVars = { [key: string]: string };
594
+
595
+ export interface ExportMeta {
596
+ version?: string;
597
+ url?: string;
598
+ passwordSeed?: string;
599
+ exportedAt?: string;
600
+ envVars?: ExportMetaEnvVars;
601
+ }
602
+
603
+ export interface ExportFileStat {
604
+ dev?: number;
605
+ mode?: number;
606
+ nlink?: number;
607
+ uid?: number;
608
+ gid?: number;
609
+ rdev?: number;
610
+ blksize?: number;
611
+ ino?: number;
612
+ size?: number;
613
+ blocks?: number;
614
+ atime?: string;
615
+ mtime?: string;
616
+ ctime?: string;
617
+ birthtime?: string;
618
+ }
619
+
620
+ /**
621
+ * progress data for each exporting collections
622
+ */
623
+ export type ExportInnerFileStatMetaProgressListItem = { [key: string]: unknown };
624
+
625
+ export type ExportInnerFileStatMeta = {
626
+ progressList?: ExportInnerFileStatMetaProgressListItem[];
627
+ /** whether the current exporting job exists or not */
628
+ isExporting?: boolean;
629
+ };
630
+
631
+ export interface ExportInnerFileStat {
632
+ fileName?: string;
633
+ collectionName?: string;
634
+ meta?: ExportInnerFileStatMeta;
635
+ }
636
+
637
+ export interface PasswordResetRequest {
638
+ email?: string;
639
+ }
640
+
641
+ export interface PasswordResetResponse {
642
+ message?: string;
643
+ error?: string;
644
+ }
645
+
646
+ export type GrowiInfoAttachmentInfo = {
647
+ type?: string;
648
+ writable?: boolean;
649
+ bucket?: string;
650
+ customEndpoint?: string;
651
+ uploadNamespace?: string;
652
+ accountName?: string;
653
+ containerName?: string;
654
+ };
655
+
656
+ export interface GrowiInfo {
657
+ /** The version of the GROWI */
658
+ version?: string;
659
+ /** The upper limit of the number of users */
660
+ userUpperLimit?: number;
661
+ fileUploadDisabled?: boolean;
662
+ /** The total limit of the file upload size */
663
+ fileUploadTotalLimit?: number;
664
+ attachmentInfo?: GrowiInfoAttachmentInfo;
665
+ }
666
+
667
+ export type HealthcheckInfoSearchInfoStatus = (typeof HealthcheckInfoSearchInfoStatus)[keyof typeof HealthcheckInfoSearchInfoStatus];
668
+
669
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
670
+ export const HealthcheckInfoSearchInfoStatus = {
671
+ green: 'green',
672
+ yellow: 'yellow',
673
+ red: 'red',
674
+ } as const;
675
+
676
+ export type HealthcheckInfoSearchInfo = {
677
+ cluster_name?: string;
678
+ status?: HealthcheckInfoSearchInfoStatus;
679
+ timed_out?: boolean;
680
+ number_of_nodes?: number;
681
+ number_of_data_nodes?: number;
682
+ active_primary_shards?: number;
683
+ active_shards?: number;
684
+ relocating_shards?: number;
685
+ initializing_shards?: number;
686
+ unassigned_shards?: number;
687
+ delayed_unassigned_shards?: number;
688
+ number_of_pending_tasks?: number;
689
+ number_of_in_flight_fetch?: number;
690
+ task_max_waiting_in_queue_millis?: number;
691
+ active_shards_percent_as_number?: number;
692
+ };
693
+
694
+ /**
695
+ * Information of middlewares
696
+ */
697
+ export interface HealthcheckInfo {
698
+ /** OK */
699
+ mongo?: string;
700
+ searchInfo?: HealthcheckInfoSearchInfo;
701
+ }
702
+
703
+ /**
704
+ * Import mode
705
+ */
706
+ export type GrowiArchiveImportOptionMode = (typeof GrowiArchiveImportOptionMode)[keyof typeof GrowiArchiveImportOptionMode];
707
+
708
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
709
+ export const GrowiArchiveImportOptionMode = {
710
+ insert: 'insert',
711
+ upsert: 'upsert',
712
+ flushAndInsert: 'flushAndInsert',
713
+ } as const;
714
+
715
+ /**
716
+ * GrowiArchiveImportOption
717
+ */
718
+ export interface GrowiArchiveImportOption {
719
+ /** Import mode */
720
+ mode?: GrowiArchiveImportOptionMode;
721
+ }
722
+
723
+ /**
724
+ * the property object
725
+ */
726
+ export type ImportStatusZipFileStat = { [key: string]: unknown };
727
+
728
+ /**
729
+ * progress data for each exporting collections
730
+ */
731
+ export type ImportStatusProgressListItem = { [key: string]: unknown };
732
+
733
+ /**
734
+ * ImportStatus
735
+ */
736
+ export interface ImportStatus {
737
+ /** whether the version of the uploaded data is the same as the current GROWI version */
738
+ isTheSameVersion?: boolean;
739
+ /** the property object */
740
+ zipFileStat?: ImportStatusZipFileStat;
741
+ progressList?: ImportStatusProgressListItem[];
742
+ /** whether the current importing job exists or not */
743
+ isImporting?: boolean;
744
+ }
745
+
746
+ export type FileImportResponseMetaEnvVars = {
747
+ ELASTICSEARCH_URI?: string;
748
+ };
749
+
750
+ export type FileImportResponseMeta = {
751
+ version?: string;
752
+ url?: string;
753
+ passwordSeed?: string;
754
+ exportedAt?: string;
755
+ envVars?: FileImportResponseMetaEnvVars;
756
+ };
757
+
758
+ export type FileImportResponseFileStat = {
759
+ dev?: number;
760
+ mode?: number;
761
+ nlink?: number;
762
+ uid?: number;
763
+ gid?: number;
764
+ rdev?: number;
765
+ blksize?: number;
766
+ ino?: number;
767
+ size?: number;
768
+ blocks?: number;
769
+ atime?: string;
770
+ mtime?: string;
771
+ ctime?: string;
772
+ birthtime?: string;
773
+ };
774
+
775
+ export type FileImportResponseInnerFileStatsItem = {
776
+ fileName?: string;
777
+ collectionName?: string;
778
+ /** @nullable */
779
+ size?: number | null;
780
+ };
781
+
782
+ export interface FileImportResponse {
783
+ meta?: FileImportResponseMeta;
784
+ fileName?: string;
785
+ zipFilePath?: string;
786
+ fileStat?: FileImportResponseFileStat;
787
+ innerFileStats?: FileImportResponseInnerFileStatsItem[];
788
+ }
789
+
790
+ export interface InAppNotificationListResponse {
791
+ docs?: InAppNotificationDocument[];
792
+ /** Total number of in app notification documents */
793
+ totalDocs?: number;
794
+ /** Offset value */
795
+ offset?: number;
796
+ /** Limit per page */
797
+ limit?: number;
798
+ /** Total pages available */
799
+ totalPages?: number;
800
+ /** Current page number */
801
+ page?: number;
802
+ /** Indicator for previous page */
803
+ hasPrevPage?: boolean;
804
+ /** Indicator for next page */
805
+ hasNextPage?: boolean;
806
+ /** Previous page number or null */
807
+ prevPage?: string;
808
+ /** Next page number or null */
809
+ nextPage?: string;
810
+ }
811
+
812
+ export interface InAppNotificationDocument {
813
+ /** In app notification document ID */
814
+ _id?: string;
815
+ /** Action performed on the in app notification document */
816
+ action?: string;
817
+ /** Snapshot details in JSON format */
818
+ snapshot?: string;
819
+ target?: Page;
820
+ user?: User;
821
+ /** Creation timestamp */
822
+ createdAt?: string;
823
+ /** Status of the in app notification document */
824
+ status?: string;
825
+ /** Model of the target */
826
+ targetModel?: string;
827
+ /** In app notification document ID */
828
+ id?: string;
829
+ actionUsers?: User[];
830
+ }
831
+
832
+ /**
833
+ * MarkdownParams
834
+ */
835
+ export interface MarkdownParams {
836
+ /** enable lineBreak */
837
+ isEnabledLinebreaks?: boolean;
838
+ /** enable lineBreak in comment */
839
+ isEnabledLinebreaksInComments?: boolean;
840
+ /** preferred indent size */
841
+ adminPreferredIndentSize?: number;
842
+ /** force indent size */
843
+ isIndentSizeForced?: boolean;
844
+ /** enable xss */
845
+ isEnabledXss?: boolean;
846
+ /** number of xss option */
847
+ xssOption?: number;
848
+ /** array of tag whitelist */
849
+ tagWhitelist?: string[];
850
+ /** attr whitelist */
851
+ attrWhitelist?: string;
852
+ }
853
+
854
+ /**
855
+ * LineBreakParams
856
+ */
857
+ export interface LineBreakParams {
858
+ /** enable lineBreak */
859
+ isEnabledLinebreaks?: boolean;
860
+ /** enable lineBreak in comment */
861
+ isEnabledLinebreaksInComments?: boolean;
862
+ }
863
+
864
+ /**
865
+ * PresentationParams
866
+ */
867
+ export interface PresentationParams {
868
+ /** number of pageBreakSeparator */
869
+ pageBreakSeparator?: number;
870
+ /** string of pageBreakCustomSeparator */
871
+ pageBreakCustomSeparator?: string;
872
+ }
873
+
874
+ /**
875
+ * XssParams
876
+ */
877
+ export interface XssParams {
878
+ /** enable xss */
879
+ isEnabledXss?: boolean;
880
+ /** number of xss option */
881
+ xssOption?: number;
882
+ /** array of tag whitelist */
883
+ tagWhitelist?: string[];
884
+ /** attr whitelist */
885
+ attrWhitelist?: string;
886
+ }
887
+
888
+ /**
889
+ * IndentParams
890
+ */
891
+ export interface IndentParams {
892
+ /** preferred indent size */
893
+ adminPreferredIndentSize?: number;
894
+ /** force indent size */
895
+ isIndentSizeForced?: boolean;
896
+ }
897
+
898
+ export interface NotificationParams {
899
+ /** status of slack integration */
900
+ isSlackbotConfigured?: boolean;
901
+ /** status of slack legacy integration */
902
+ isSlackLegacyConfigured?: boolean;
903
+ /** current bot type */
904
+ currentBotType?: string;
905
+ userNotifications?: UserNotification[];
906
+ /** Whether to notify on owner page */
907
+ isNotificationForOwnerPageEnabled?: boolean;
908
+ /** Whether to notify on group page */
909
+ isNotificationForGroupPageEnabled?: boolean;
910
+ /** global notifications */
911
+ globalNotifications?: GlobalNotificationParams[];
912
+ }
913
+
914
+ export interface UserNotification {
915
+ /** slack channel name without '#' */
916
+ channel?: string;
917
+ /** path name of wiki */
918
+ pathPattern?: string;
919
+ /** created date */
920
+ createdAt?: string;
921
+ /** user who set notification */
922
+ creator?: User;
923
+ /** path pattern prefix */
924
+ patternPrefix?: string;
925
+ /** path pattern prefix2 */
926
+ patternPrefix2?: string;
927
+ /** provider */
928
+ provider?: string;
929
+ /** updated date */
930
+ updatedAt?: string;
931
+ /** version */
932
+ __v?: number;
933
+ /** id */
934
+ _id?: string;
935
+ }
936
+
937
+ export interface UserNotificationParams {
938
+ /** path name of wiki */
939
+ pathPattern?: string;
940
+ /** slack channel name without '#' */
941
+ channel?: string;
942
+ }
943
+
944
+ export interface NotifyForPageGrant {
945
+ /** Whether to notify on owner page */
946
+ isNotificationForOwnerPageEnabled?: boolean;
947
+ /** Whether to notify on group page */
948
+ isNotificationForGroupPageEnabled?: boolean;
949
+ }
950
+
951
+ export interface GlobalNotification {
952
+ /** id */
953
+ _id?: string;
954
+ /** is notification enabled */
955
+ isEnabled?: boolean;
956
+ /** trigger events for notify */
957
+ triggerEvents?: string[];
958
+ /** type of notification */
959
+ __t?: string;
960
+ /** channels for notify */
961
+ slackChannels?: string;
962
+ /** trigger path for notify */
963
+ triggerPath?: string;
964
+ /** version */
965
+ __v?: number;
966
+ }
967
+
968
+ export interface GlobalNotificationParams {
969
+ /** What is type for notify */
970
+ notifyType?: string;
971
+ /** email for notify */
972
+ toEmail?: string;
973
+ /** channels for notify */
974
+ slackChannels?: string;
975
+ /** trigger path for notify */
976
+ triggerPath?: string;
977
+ /** trigger events for notify */
978
+ triggerEvents?: string[];
979
+ }
980
+
981
+ /**
982
+ * LikeParams
983
+ */
984
+ export interface LikeParams {
985
+ /** page ID */
986
+ pageId?: string;
987
+ /** boolean for like status */
988
+ bool?: boolean;
989
+ }
990
+
991
+ /**
992
+ * PageInfo
993
+ */
994
+ export interface PageInfo {
995
+ /** Whether the page is liked by the logged in user */
996
+ isLiked?: boolean;
997
+ /** Number of users who have liked the page */
998
+ sumOfLikers: number;
999
+ /** Ids of users who have liked the page */
1000
+ likerIds: string[];
1001
+ /** Number of users who have seen the page */
1002
+ sumOfSeenUsers: number;
1003
+ /** Ids of users who have seen the page */
1004
+ seenUserIds: string[];
1005
+ }
1006
+
1007
+ /**
1008
+ * PageParams
1009
+ */
1010
+ export interface PageParams {
1011
+ /** page ID */
1012
+ pageId: string;
1013
+ }
1014
+
1015
+ /**
1016
+ * personal settings
1017
+ */
1018
+ export interface PersonalSettings {
1019
+ name?: string;
1020
+ email?: string;
1021
+ lang?: string;
1022
+ isEmailPublished?: boolean;
1023
+ slackMemberId?: string;
1024
+ }
1025
+
1026
+ /**
1027
+ * passwords for update
1028
+ */
1029
+ export interface Passwords {
1030
+ oldPassword?: string;
1031
+ newPassword?: string;
1032
+ newPasswordConfirm?: string;
1033
+ }
1034
+
1035
+ /**
1036
+ * Ldap account for associate
1037
+ */
1038
+ export interface AssociateUser {
1039
+ username?: string;
1040
+ password?: string;
1041
+ }
1042
+
1043
+ /**
1044
+ * Ldap account for disassociate
1045
+ */
1046
+ export interface DisassociateUser {
1047
+ providerType?: string;
1048
+ accountId?: string;
1049
+ }
1050
+
1051
+ /**
1052
+ * Revision
1053
+ */
1054
+ export interface Revision {
1055
+ /** The revision ID */
1056
+ _id?: ObjectId;
1057
+ /** format */
1058
+ format?: string;
1059
+ /** The ID of the page the revision belongs to */
1060
+ pageId?: string;
1061
+ /** The content of the revision */
1062
+ body?: RevisionBody;
1063
+ author?: ObjectId;
1064
+ /** The origin of the revision */
1065
+ origin?: string;
1066
+ /** Whether the revision has differences to the previous one */
1067
+ hasDiffToPrev?: boolean;
1068
+ /** date created at */
1069
+ createdAt?: string;
1070
+ /** DB record version */
1071
+ __v?: number;
1072
+ /** path */
1073
+ path?: string;
1074
+ }
1075
+
1076
+ export type IndicesGrowi = {
1077
+ uuid?: string;
1078
+ health?: string;
1079
+ status?: string;
1080
+ primaries?: SearchIndex;
1081
+ total?: SearchIndex;
1082
+ };
1083
+
1084
+ export type IndicesAliasesGrowiAliasesGrowiAlias = { [key: string]: unknown };
1085
+
1086
+ export type IndicesAliasesGrowiAliases = {
1087
+ 'growi-alias'?: IndicesAliasesGrowiAliasesGrowiAlias;
1088
+ };
1089
+
1090
+ export type IndicesAliasesGrowi = {
1091
+ aliases?: IndicesAliasesGrowiAliases;
1092
+ };
1093
+
1094
+ export type IndicesAliases = {
1095
+ growi?: IndicesAliasesGrowi;
1096
+ };
1097
+
1098
+ export interface Indices {
1099
+ growi?: IndicesGrowi;
1100
+ aliases?: IndicesAliases;
1101
+ isNormalized?: boolean;
1102
+ }
1103
+
1104
+ export type SearchIndexDocs = {
1105
+ count?: number;
1106
+ deleted?: number;
1107
+ };
1108
+
1109
+ export type SearchIndexStore = {
1110
+ size_in_bytes?: number;
1111
+ total_data_set_size_in_bytes?: number;
1112
+ reserved_in_bytes?: number;
1113
+ };
1114
+
1115
+ export type SearchIndexIndexing = {
1116
+ index_total?: number;
1117
+ index_time_in_millis?: number;
1118
+ index_current?: number;
1119
+ index_failed?: number;
1120
+ delete_total?: number;
1121
+ delete_time_in_millis?: number;
1122
+ delete_current?: number;
1123
+ noop_update_total?: number;
1124
+ is_throttled?: boolean;
1125
+ throttle_time_in_millis?: number;
1126
+ write_load?: number;
1127
+ };
1128
+
1129
+ export interface SearchIndex {
1130
+ docs?: SearchIndexDocs;
1131
+ store?: SearchIndexStore;
1132
+ indexing?: SearchIndexIndexing;
1133
+ }
1134
+
1135
+ export interface GeneralSetting {
1136
+ /** type of restrictGuestMode */
1137
+ restrictGuestMode?: string;
1138
+ /** type of pageDeletionAuthority */
1139
+ pageDeletionAuthority?: string;
1140
+ /** type of pageRecursiveDeletionAuthority */
1141
+ pageRecursiveDeletionAuthority?: string;
1142
+ /** type of pageRecursiveCompleteDeletionAuthority */
1143
+ pageRecursiveCompleteDeletionAuthority?: string;
1144
+ /** enable all group membership required for page complete deletion */
1145
+ isAllGroupMembershipRequiredForPageCompleteDeletion?: boolean;
1146
+ /** type of pageDeletionAuthority */
1147
+ pageCompleteDeletionAuthority?: string;
1148
+ /** enable hide by owner */
1149
+ hideRestrictedByOwner?: boolean;
1150
+ /** enable hide by group */
1151
+ hideRestrictedByGroup?: boolean;
1152
+ /** enable user homepage deletion */
1153
+ isUsersHomepageDeletionEnabled?: boolean;
1154
+ /** enable force delete user homepage on user deletion */
1155
+ isForceDeleteUserHomepageOnUserDeletion?: boolean;
1156
+ /** enable rom user allowed to comment */
1157
+ isRomUserAllowedToComment?: boolean;
1158
+ /** type of wikiMode */
1159
+ wikiMode?: string;
1160
+ /** max age of session */
1161
+ sessionMaxAge?: number;
1162
+ }
1163
+
1164
+ export interface ShareLinkSetting {
1165
+ /** disable link sharing */
1166
+ disableLinkSharing?: boolean;
1167
+ }
1168
+
1169
+ export interface LocalSetting {
1170
+ /** use only env vars for some options */
1171
+ useOnlyEnvVarsForSomeOptions?: boolean;
1172
+ /** enable password reset */
1173
+ isPasswordResetEnabled?: boolean;
1174
+ /** enable email authentication */
1175
+ isEmailAuthenticationEnabled?: boolean;
1176
+ /** local setting mode */
1177
+ isLocalEnabled?: boolean;
1178
+ /** type of registrationMode */
1179
+ registrationMode?: string;
1180
+ /** array of regsitrationList */
1181
+ registrationWhitelist?: string[];
1182
+ }
1183
+
1184
+ export interface GeneralAuthSetting {
1185
+ /** local setting mode */
1186
+ isLocalEnabled?: boolean;
1187
+ /** ldap setting mode */
1188
+ isLdapEnabled?: boolean;
1189
+ /** saml setting mode */
1190
+ isSamlEnabled?: boolean;
1191
+ /** oidc setting mode */
1192
+ isOidcEnabled?: boolean;
1193
+ /** google setting mode */
1194
+ isGoogleEnabled?: boolean;
1195
+ /** github setting mode */
1196
+ isGitHubEnabled?: boolean;
1197
+ }
1198
+
1199
+ export interface LdapAuthSetting {
1200
+ /** server url for ldap */
1201
+ serverUrl?: string;
1202
+ /** enable user bind */
1203
+ isUserBind?: boolean;
1204
+ /** the query used to bind with the directory service */
1205
+ ldapBindDN?: string;
1206
+ /** the password that is entered in the login page will be used to bind */
1207
+ ldapBindDNPassword?: string;
1208
+ /** the query used to locate the authenticated user */
1209
+ ldapSearchFilter?: string;
1210
+ /** specification of mappings for username when creating new users */
1211
+ ldapAttrMapUsername?: string;
1212
+ /** local account automatically linked the user name matched */
1213
+ isSameUsernameTreatedAsIdenticalUser?: boolean;
1214
+ /** specification of mappings for mail address when creating new users */
1215
+ ldapAttrMapMail?: string;
1216
+ /** Specification of mappings for full name address when creating new users */
1217
+ ldapAttrMapName?: string;
1218
+ /** the base DN from which to search for groups. */
1219
+ ldapGroupSearchBase?: string;
1220
+ /** the query used to filter for groups */
1221
+ ldapGroupSearchFilter?: string;
1222
+ /** The property of user object to use in dn interpolation of Group Search Filter */
1223
+ ldapGroupDnProperty?: string;
1224
+ }
1225
+
1226
+ export interface SamlAuthSetting {
1227
+ /** array of missing mandatory config keys */
1228
+ missingMandatoryConfigKeys?: string[];
1229
+ /** use only env vars for some options */
1230
+ useOnlyEnvVarsForSomeOptions?: boolean;
1231
+ /** entry point for saml */
1232
+ samlEntryPoint?: string;
1233
+ /** issuer for saml */
1234
+ samlIssuer?: string;
1235
+ /** issuer for saml */
1236
+ samlEnvVarIssuer?: string;
1237
+ /** certificate for saml */
1238
+ samlCert?: string;
1239
+ /** certificate for saml */
1240
+ samlEnvVarCert?: string;
1241
+ /** attribute mapping id for saml */
1242
+ samlAttrMapId?: string;
1243
+ /** attribute mapping user name for saml */
1244
+ samlAttrMapUserName?: string;
1245
+ /** attribute mapping mail for saml */
1246
+ samlAttrMapMail?: string;
1247
+ /** attribute mapping id for saml */
1248
+ samlEnvVarAttrMapId?: string;
1249
+ /** attribute mapping user name for saml */
1250
+ samlEnvVarAttrMapUserName?: string;
1251
+ /** attribute mapping mail for saml */
1252
+ samlEnvVarAttrMapMail?: string;
1253
+ /** attribute mapping first name for saml */
1254
+ samlAttrMapFirstName?: string;
1255
+ /** attribute mapping last name for saml */
1256
+ samlAttrMapLastName?: string;
1257
+ /** attribute mapping first name for saml */
1258
+ samlEnvVarAttrMapFirstName?: string;
1259
+ /** attribute mapping last name for saml */
1260
+ samlEnvVarAttrMapLastName?: string;
1261
+ /** local account automatically linked the user name matched */
1262
+ isSameUsernameTreatedAsIdenticalUser?: boolean;
1263
+ /** local account automatically linked the email matched */
1264
+ isSameEmailTreatedAsIdenticalUser?: boolean;
1265
+ /** ABLCRule for saml */
1266
+ samlABLCRule?: string;
1267
+ /** ABLCRule for saml */
1268
+ samlEnvVarABLCRule?: string;
1269
+ }
1270
+
1271
+ export interface OidcAuthSetting {
1272
+ /** provider name for oidc */
1273
+ oidcProviderName?: string;
1274
+ /** issuer host for oidc */
1275
+ oidcIssuerHost?: string;
1276
+ /** authorization endpoint for oidc */
1277
+ oidcAuthorizationEndpoint?: string;
1278
+ /** token endpoint for oidc */
1279
+ oidcTokenEndpoint?: string;
1280
+ /** revocation endpoint for oidc */
1281
+ oidcRevocationEndpoint?: string;
1282
+ /** introspection endpoint for oidc */
1283
+ oidcIntrospectionEndpoint?: string;
1284
+ /** userinfo endpoint for oidc */
1285
+ oidcUserInfoEndpoint?: string;
1286
+ /** end session endpoint for oidc */
1287
+ oidcEndSessionEndpoint?: string;
1288
+ /** registration endpoint for oidc */
1289
+ oidcRegistrationEndpoint?: string;
1290
+ /** JSON Web Key Set URI for oidc */
1291
+ oidcJWKSUri?: string;
1292
+ /** client id for oidc */
1293
+ oidcClientId?: string;
1294
+ /** client secret for oidc */
1295
+ oidcClientSecret?: string;
1296
+ /** attr map id for oidc */
1297
+ oidcAttrMapId?: string;
1298
+ /** attr map username for oidc */
1299
+ oidcAttrMapUserName?: string;
1300
+ /** attr map name for oidc */
1301
+ oidcAttrMapName?: string;
1302
+ /** attr map mail for oidc */
1303
+ oidcAttrMapMail?: string;
1304
+ /** local account automatically linked the user name matched */
1305
+ isSameUsernameTreatedAsIdenticalUser?: boolean;
1306
+ /** local account automatically linked the email matched */
1307
+ isSameEmailTreatedAsIdenticalUser?: boolean;
1308
+ }
1309
+
1310
+ export interface GitHubOAuthSetting {
1311
+ /** key of comsumer */
1312
+ githubClientId?: string;
1313
+ /** password of comsumer */
1314
+ githubClientSecret?: string;
1315
+ /** local account automatically linked the email matched */
1316
+ isSameUsernameTreatedAsIdenticalUser?: boolean;
1317
+ }
1318
+
1319
+ export interface GoogleOAuthSetting {
1320
+ /** key of comsumer */
1321
+ googleClientId?: string;
1322
+ /** password of comsumer */
1323
+ googleClientSecret?: string;
1324
+ /** local account automatically linked the email matched */
1325
+ isSameUsernameTreatedAsIdenticalUser?: boolean;
1326
+ }
1327
+
1328
+ export type ShareLinkRelatedPage = {
1329
+ /** The unique identifier of the related page */
1330
+ _id?: string;
1331
+ /** The path of the related page */
1332
+ path?: string;
1333
+ };
1334
+
1335
+ export interface ShareLink {
1336
+ /** The unique identifier of the share link */
1337
+ _id?: string;
1338
+ relatedPage?: ShareLinkRelatedPage;
1339
+ /** The expiration date of the share link */
1340
+ expiredAt?: string;
1341
+ /** The description of the share link */
1342
+ description?: string;
1343
+ /** The creation date of the share link */
1344
+ createdAt?: string;
1345
+ /** The version key */
1346
+ __v?: number;
1347
+ }
1348
+
1349
+ export interface ShareLinkSimple {
1350
+ /** The unique identifier of the related page */
1351
+ relatedPage?: string;
1352
+ /** The expiration date of the share link */
1353
+ expiredAt?: string;
1354
+ /** The description of the share link */
1355
+ description?: string;
1356
+ /** The creation date of the share link */
1357
+ createdAt?: string;
1358
+ /** The version key */
1359
+ __v?: number;
1360
+ /** The unique identifier of the share link */
1361
+ _id?: string;
1362
+ }
1363
+
1364
+ export interface SlackConfigurationParams {
1365
+ /** incoming webhooks url */
1366
+ webhookUrl?: string;
1367
+ /** use incoming webhooks even if Slack App settings are enabled */
1368
+ isIncomingWebhookPrioritized?: boolean;
1369
+ /** OAuth access token */
1370
+ slackToken?: string;
1371
+ }
1372
+
1373
+ /**
1374
+ * BotType
1375
+ */
1376
+ export interface BotType {
1377
+ currentBotType?: string;
1378
+ }
1379
+
1380
+ /**
1381
+ * SlackIntegration
1382
+ */
1383
+ export interface SlackIntegration {
1384
+ currentBotType?: string;
1385
+ }
1386
+
1387
+ export type StatisticsUserResponseDataActive = {
1388
+ total?: number;
1389
+ admin?: number;
1390
+ };
1391
+
1392
+ export type StatisticsUserResponseDataInactive = {
1393
+ total?: number;
1394
+ registered?: number;
1395
+ suspended?: number;
1396
+ deleted?: number;
1397
+ invited?: number;
1398
+ };
1399
+
1400
+ export type StatisticsUserResponseData = {
1401
+ total?: number;
1402
+ active?: StatisticsUserResponseDataActive;
1403
+ inactive?: StatisticsUserResponseDataInactive;
1404
+ };
1405
+
1406
+ export interface StatisticsUserResponse {
1407
+ data?: StatisticsUserResponseData;
1408
+ }
1409
+
1410
+ /**
1411
+ * User
1412
+ */
1413
+ export interface User {
1414
+ /** user ID */
1415
+ _id?: string;
1416
+ /** language */
1417
+ lang?: string;
1418
+ /** status */
1419
+ status?: number;
1420
+ /** whether the admin */
1421
+ admin?: boolean;
1422
+ /** E-Mail address */
1423
+ email?: string;
1424
+ /** username */
1425
+ username?: string;
1426
+ /** full name */
1427
+ name?: string;
1428
+ /** date created at */
1429
+ createdAt?: string;
1430
+ /** cached image URL */
1431
+ imageUrlCached?: string;
1432
+ /** whether the email is published */
1433
+ isEmailPublished?: boolean;
1434
+ /** whether the gravatar is enabled */
1435
+ isGravatarEnabled?: boolean;
1436
+ /** whether the invitation email is sent */
1437
+ isInvitationEmailSended?: boolean;
1438
+ /** whether the questionnaire is enabled */
1439
+ isQuestionnaireEnabled?: boolean;
1440
+ /** datetime last login at */
1441
+ lastLoginAt?: string;
1442
+ /** whether the user is read only */
1443
+ readOnly?: boolean;
1444
+ /** datetime updated at */
1445
+ updatedAt?: string;
1446
+ /** DB record version */
1447
+ __v?: number;
1448
+ }
1449
+
1450
+ export type ErrorV3Stack = { [key: string]: unknown };
1451
+
1452
+ export type ErrorV3Args = { [key: string]: unknown };
1453
+
1454
+ /**
1455
+ * Error for APIv3
1456
+ */
1457
+ export interface ErrorV3 {
1458
+ message?: string;
1459
+ code?: string;
1460
+ stack?: ErrorV3Stack;
1461
+ args?: ErrorV3Args;
1462
+ }
1463
+
1464
+ /**
1465
+ * Object ID
1466
+ */
1467
+ export type ObjectId = string;
1468
+
1469
+ /**
1470
+ * Page path
1471
+ */
1472
+ export type PagePath = string;
1473
+
1474
+ /**
1475
+ * Grant for page
1476
+ */
1477
+ export type PageGrant = number;
1478
+
1479
+ /**
1480
+ * extend data
1481
+ */
1482
+ export type PageExtended = { [key: string]: unknown };
1483
+
1484
+ /**
1485
+ * status
1486
+ */
1487
+ export type PageStatus = (typeof PageStatus)[keyof typeof PageStatus];
1488
+
1489
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1490
+ export const PageStatus = {
1491
+ wip: 'wip',
1492
+ published: 'published',
1493
+ deleted: 'deleted',
1494
+ deprecated: 'deprecated',
1495
+ } as const;
1496
+
1497
+ /**
1498
+ * Page
1499
+ */
1500
+ export interface Page {
1501
+ _id?: ObjectId;
1502
+ /** DB record version */
1503
+ __v?: number;
1504
+ /** count of comments */
1505
+ commentCount?: number;
1506
+ /** date created at */
1507
+ createdAt?: string;
1508
+ creator?: User;
1509
+ /** extend data */
1510
+ extended?: PageExtended;
1511
+ grant?: PageGrant;
1512
+ /** granted users */
1513
+ grantedUsers?: string[];
1514
+ lastUpdateUser?: User;
1515
+ /** granted users */
1516
+ liker?: string[];
1517
+ path?: PagePath;
1518
+ /** page revision */
1519
+ revision?: string;
1520
+ /** granted users */
1521
+ seenUsers?: string[];
1522
+ /** status */
1523
+ status?: PageStatus;
1524
+ /** date updated at */
1525
+ updatedAt?: string;
1526
+ }
1527
+
1528
+ /**
1529
+ * Offset for pagination
1530
+ */
1531
+ export type Offset = number;
1532
+
1533
+ /**
1534
+ * Limit for pagination
1535
+ */
1536
+ export type Limit = number;
1537
+
1538
+ export type PaginateResultDocsItem = { [key: string]: unknown };
1539
+
1540
+ /**
1541
+ * PaginateResult
1542
+ */
1543
+ export interface PaginateResult {
1544
+ /** Array of documents */
1545
+ docs?: PaginateResultDocsItem[];
1546
+ /** Total number of documents in collection that match a query */
1547
+ totalDocs?: number;
1548
+ limit?: Limit;
1549
+ /** Availability of prev page. */
1550
+ hasPrevPage?: number;
1551
+ /** Availability of next page. */
1552
+ hasNextPage?: number;
1553
+ /** Current page number */
1554
+ page?: number;
1555
+ /** Total number of pages. */
1556
+ totalPages?: number;
1557
+ /** Only if specified or default page/offset values were used */
1558
+ offset?: Offset;
1559
+ /** Previous page number if available or NULL */
1560
+ prefPage?: number;
1561
+ /** Next page number if available or NULL */
1562
+ nextPage?: number;
1563
+ /** The starting sl. number of first document. */
1564
+ pagingCounter?: number;
1565
+ /** Object of pagination meta data (Default false). */
1566
+ meta?: number;
1567
+ }
1568
+
1569
+ export type V1PaginateResultMeta = {
1570
+ /** Total number of documents in collection that match a query */
1571
+ total?: number;
1572
+ limit?: Limit;
1573
+ /** Only if specified or default page/offset values were used */
1574
+ offset?: Offset;
1575
+ };
1576
+
1577
+ /**
1578
+ * Object of pagination meta data.
1579
+ */
1580
+ export type V1PaginateResultData = { [key: string]: unknown };
1581
+
1582
+ /**
1583
+ * Paginate result v1
1584
+ */
1585
+ export interface V1PaginateResult {
1586
+ meta?: V1PaginateResultMeta;
1587
+ /** Object of pagination meta data. */
1588
+ data?: V1PaginateResultData;
1589
+ }
1590
+
1591
+ /**
1592
+ * Revision content body
1593
+ */
1594
+ export type RevisionBody = string;
1595
+
1596
+ /**
1597
+ * Tags
1598
+ */
1599
+ export type Tags = TagName[];
1600
+
1601
+ /**
1602
+ * Tag name
1603
+ */
1604
+ export type TagName = string;
1605
+
1606
+ /**
1607
+ * Tag
1608
+ */
1609
+ export interface Tag {
1610
+ /** tag ID */
1611
+ _id?: string;
1612
+ name?: TagName;
1613
+ /** Count of tagged pages */
1614
+ count?: number;
1615
+ }
1616
+
1617
+ /**
1618
+ * API is succeeded
1619
+ */
1620
+ export type V1ResponseOK = boolean;
1621
+
1622
+ /**
1623
+ * Response v1
1624
+ */
1625
+ export interface V1Response {
1626
+ ok?: V1ResponseOK;
1627
+ }
1628
+
1629
+ /**
1630
+ * Forbidden
1631
+ */
1632
+ export type N403Response = void;
1633
+
1634
+ /**
1635
+ * Internal Server Error
1636
+ */
1637
+ export type N500Response = void;
1638
+
1639
+ export type GetExternalUserGroupRelationsParams = {
1640
+ /**
1641
+ * The group IDs to get relations for
1642
+ */
1643
+ groupIds?: string[];
1644
+ /**
1645
+ * The child group IDs to get relations for
1646
+ */
1647
+ childGroupIds?: string[];
1648
+ };
1649
+
1650
+ export type GetExternalUserGroupRelations200UserGroupRelationsItem = { [key: string]: unknown };
1651
+
1652
+ export type GetExternalUserGroupRelations200RelationsOfChildGroupsItem = { [key: string]: unknown };
1653
+
1654
+ export type GetExternalUserGroupRelations200 = {
1655
+ userGroupRelations?: GetExternalUserGroupRelations200UserGroupRelationsItem[];
1656
+ relationsOfChildGroups?: GetExternalUserGroupRelations200RelationsOfChildGroupsItem[];
1657
+ };
1658
+
1659
+ export type GetExternalUserGroupsParams = {
1660
+ /**
1661
+ * Page number for pagination
1662
+ */
1663
+ page?: number;
1664
+ /**
1665
+ * Number of items per page
1666
+ */
1667
+ limit?: number;
1668
+ /**
1669
+ * Offset for pagination
1670
+ */
1671
+ offset?: number;
1672
+ /**
1673
+ * Whether to enable pagination
1674
+ */
1675
+ pagination?: boolean;
1676
+ };
1677
+
1678
+ export type GetExternalUserGroups200UserGroupsItem = { [key: string]: unknown };
1679
+
1680
+ export type GetExternalUserGroups200 = {
1681
+ userGroups?: GetExternalUserGroups200UserGroupsItem[];
1682
+ totalUserGroups?: number;
1683
+ pagingLimit?: number;
1684
+ };
1685
+
1686
+ export type GetExternalUserGroupsAncestorsParams = {
1687
+ /**
1688
+ * The ID of the user group to get ancestors for
1689
+ */
1690
+ groupId: string;
1691
+ };
1692
+
1693
+ export type GetExternalUserGroupsAncestors200AncestorUserGroupsItem = { [key: string]: unknown };
1694
+
1695
+ export type GetExternalUserGroupsAncestors200 = {
1696
+ ancestorUserGroups?: GetExternalUserGroupsAncestors200AncestorUserGroupsItem[];
1697
+ };
1698
+
1699
+ export type GetExternalUserGroupsChildrenParams = {
1700
+ /**
1701
+ * The IDs of the parent user groups
1702
+ */
1703
+ parentIds?: string[];
1704
+ /**
1705
+ * Whether to include grandchild user groups
1706
+ */
1707
+ includeGrandChildren?: boolean;
1708
+ };
1709
+
1710
+ export type GetExternalUserGroupsChildren200ChildUserGroupsItem = { [key: string]: unknown };
1711
+
1712
+ export type GetExternalUserGroupsChildren200GrandChildUserGroupsItem = { [key: string]: unknown };
1713
+
1714
+ export type GetExternalUserGroupsChildren200 = {
1715
+ childUserGroups?: GetExternalUserGroupsChildren200ChildUserGroupsItem[];
1716
+ grandChildUserGroups?: GetExternalUserGroupsChildren200GrandChildUserGroupsItem[];
1717
+ };
1718
+
1719
+ export type GetExternalUserGroupsId200UserGroup = { [key: string]: unknown };
1720
+
1721
+ export type GetExternalUserGroupsId200 = {
1722
+ userGroup?: GetExternalUserGroupsId200UserGroup;
1723
+ };
1724
+
1725
+ export type DeleteExternalUserGroupsIdParams = {
1726
+ /**
1727
+ * The action to perform on group delete
1728
+ */
1729
+ actionName: string;
1730
+ /**
1731
+ * The ID of the user group to transfer to
1732
+ */
1733
+ transferToUserGroupId?: string;
1734
+ /**
1735
+ * The type of the user group to transfer to
1736
+ */
1737
+ transferToUserGroupType?: string;
1738
+ };
1739
+
1740
+ export type DeleteExternalUserGroupsId200UserGroupsItem = { [key: string]: unknown };
1741
+
1742
+ export type DeleteExternalUserGroupsId200 = {
1743
+ userGroups?: DeleteExternalUserGroupsId200UserGroupsItem[];
1744
+ };
1745
+
1746
+ export type PutExternalUserGroupsIdBody = {
1747
+ description?: string;
1748
+ };
1749
+
1750
+ export type PutExternalUserGroupsId200UserGroup = { [key: string]: unknown };
1751
+
1752
+ export type PutExternalUserGroupsId200 = {
1753
+ userGroup?: PutExternalUserGroupsId200UserGroup;
1754
+ };
1755
+
1756
+ export type GetExternalUserGroupsIdExternalUserGroupRelations200UserGroupRelationsItem = { [key: string]: unknown };
1757
+
1758
+ export type GetExternalUserGroupsIdExternalUserGroupRelations200 = {
1759
+ userGroupRelations?: GetExternalUserGroupsIdExternalUserGroupRelations200UserGroupRelationsItem[];
1760
+ };
1761
+
1762
+ export type GetExternalUserGroupsLdapSyncSettings200 = {
1763
+ ldapGroupSearchBase?: string;
1764
+ ldapGroupMembershipAttribute?: string;
1765
+ ldapGroupMembershipAttributeType?: string;
1766
+ ldapGroupChildGroupAttribute?: string;
1767
+ autoGenerateUserOnLdapGroupSync?: boolean;
1768
+ preserveDeletedLdapGroups?: boolean;
1769
+ ldapGroupNameAttribute?: string;
1770
+ ldapGroupDescriptionAttribute?: string;
1771
+ };
1772
+
1773
+ export type PutExternalUserGroupsLdapSyncSettingsBody = {
1774
+ ldapGroupSearchBase?: string;
1775
+ ldapGroupMembershipAttribute?: string;
1776
+ ldapGroupMembershipAttributeType?: string;
1777
+ ldapGroupChildGroupAttribute?: string;
1778
+ autoGenerateUserOnLdapGroupSync?: boolean;
1779
+ preserveDeletedLdapGroups?: boolean;
1780
+ ldapGroupNameAttribute?: string;
1781
+ ldapGroupDescriptionAttribute?: string;
1782
+ };
1783
+
1784
+ export type PutExternalUserGroupsLdapSyncSettings204 = { [key: string]: unknown };
1785
+
1786
+ export type GetExternalUserGroupsKeycloakSyncSettings200 = {
1787
+ keycloakHost?: string;
1788
+ keycloakGroupRealm?: string;
1789
+ keycloakGroupSyncClientRealm?: string;
1790
+ keycloakGroupSyncClientID?: string;
1791
+ keycloakGroupSyncClientSecret?: string;
1792
+ autoGenerateUserOnKeycloakGroupSync?: boolean;
1793
+ preserveDeletedKeycloakGroups?: boolean;
1794
+ keycloakGroupDescriptionAttribute?: string;
1795
+ };
1796
+
1797
+ export type PutExternalUserGroupsKeycloakSyncSettingsBody = {
1798
+ keycloakHost?: string;
1799
+ keycloakGroupRealm?: string;
1800
+ keycloakGroupSyncClientRealm?: string;
1801
+ keycloakGroupSyncClientID?: string;
1802
+ keycloakGroupSyncClientSecret?: string;
1803
+ autoGenerateUserOnKeycloakGroupSync?: boolean;
1804
+ preserveDeletedKeycloakGroups?: boolean;
1805
+ keycloakGroupDescriptionAttribute?: string;
1806
+ };
1807
+
1808
+ export type PutExternalUserGroupsKeycloakSyncSettings204 = { [key: string]: unknown };
1809
+
1810
+ export type PutExternalUserGroupsLdapSync202 = { [key: string]: unknown };
1811
+
1812
+ export type PutExternalUserGroupsKeycloakSync202 = { [key: string]: unknown };
1813
+
1814
+ export type GetQuestionnaireOrders200QuestionnaireOrdersItem = { [key: string]: unknown };
1815
+
1816
+ export type GetQuestionnaireOrders200 = {
1817
+ questionnaireOrders?: GetQuestionnaireOrders200QuestionnaireOrdersItem[];
1818
+ };
1819
+
1820
+ export type GetQuestionnaireIsEnabled200 = {
1821
+ isEnabled?: boolean;
1822
+ };
1823
+
1824
+ export type PostQuestionnaireProactiveAnswerBody = { [key: string]: unknown };
1825
+
1826
+ export type PostQuestionnaireProactiveAnswer200 = { [key: string]: unknown };
1827
+
1828
+ export type PutQuestionnaireAnswerBody = { [key: string]: unknown };
1829
+
1830
+ export type PutQuestionnaireAnswer201 = { [key: string]: unknown };
1831
+
1832
+ export type PutQuestionnaireAnswer204 = { [key: string]: unknown };
1833
+
1834
+ export type PutQuestionnaireSkipBody = { [key: string]: unknown };
1835
+
1836
+ export type PutQuestionnaireSkip201 = { [key: string]: unknown };
1837
+
1838
+ export type PutQuestionnaireSkip204 = { [key: string]: unknown };
1839
+
1840
+ export type PutQuestionnaireDenyBody = { [key: string]: unknown };
1841
+
1842
+ export type PutQuestionnaireDeny201 = { [key: string]: unknown };
1843
+
1844
+ export type PutQuestionnaireDeny204 = { [key: string]: unknown };
1845
+
1846
+ export type GetTemplatesParams = {
1847
+ /**
1848
+ * Whether to include invalid templates
1849
+ */
1850
+ includeInvalidTemplates?: boolean;
1851
+ };
1852
+
1853
+ export type GetTemplates200Summaries = {
1854
+ [key: string]: {
1855
+ id?: string;
1856
+ isDefault?: boolean;
1857
+ isValid?: boolean;
1858
+ locale?: string;
1859
+ title?: string;
1860
+ };
1861
+ };
1862
+
1863
+ export type GetTemplates200 = {
1864
+ summaries?: GetTemplates200Summaries;
1865
+ };
1866
+
1867
+ export type GetTemplatesPresetTemplatesTemplateIdLocale200 = {
1868
+ markdown?: string;
1869
+ };
1870
+
1871
+ export type GetTemplatesPluginTemplatesOrganizationIdReposIdTemplateIdLocale200 = {
1872
+ markdown?: string;
1873
+ };
1874
+
1875
+ export type PostPluginsBodyPluginInstallerForm = {
1876
+ url?: string;
1877
+ ghBranch?: string;
1878
+ ghTag?: string;
1879
+ };
1880
+
1881
+ export type PostPluginsBody = {
1882
+ pluginInstallerForm?: PostPluginsBodyPluginInstallerForm;
1883
+ };
1884
+
1885
+ export type PostPlugins200 = {
1886
+ /** The name of the installed plugin */
1887
+ pluginName?: string;
1888
+ };
1889
+
1890
+ export type PutPluginsIdActivate200 = {
1891
+ /** The name of the activated plugin */
1892
+ pluginName?: string;
1893
+ };
1894
+
1895
+ export type DeletePluginsIdRemove200 = {
1896
+ /** The name of the removed plugin */
1897
+ pluginName?: string;
1898
+ };
1899
+
1900
+ export type GetActivityParams = {
1901
+ limit?: number;
1902
+ offset?: number;
1903
+ searchFilter?: string;
1904
+ };
1905
+
1906
+ export type GetAdminHome200 = {
1907
+ adminHomeParams?: SystemInformationParams;
1908
+ };
1909
+
1910
+ export type GetAppSettings200 = {
1911
+ appSettingsParams?: AppSettingParams;
1912
+ };
1913
+
1914
+ export type PutAppSettingsAppSetting200 = {
1915
+ appSettingParams?: AppSettingPutParams;
1916
+ };
1917
+
1918
+ export type PutAppSettingsSiteUrlSetting200SiteUrlSettingParams = {
1919
+ /** Site URL. e.g. https://example.com, https://example.com:3000 */
1920
+ siteUrl?: string;
1921
+ };
1922
+
1923
+ export type PutAppSettingsSiteUrlSetting200 = {
1924
+ siteUrlSettingParams?: PutAppSettingsSiteUrlSetting200SiteUrlSettingParams;
1925
+ };
1926
+
1927
+ export type PutAppSettingsSmtpSetting200 = {
1928
+ mailSettingParams?: SmtpSettingResponseParams;
1929
+ };
1930
+
1931
+ /**
1932
+ * Empty object
1933
+ */
1934
+ export type PostAppSettingsSmtpTest200 = { [key: string]: unknown };
1935
+
1936
+ export type PutAppSettingsFileUploadSettings200 = {
1937
+ responseParams?: FileUploadSettingParams;
1938
+ };
1939
+
1940
+ export type PutAppSettingsQuestionnaireSettings200 = {
1941
+ responseParams?: QuestionnaireSettingParams;
1942
+ };
1943
+
1944
+ export type PostAppSettingsV5SchemaMigration200 = {
1945
+ /** is V5 compatible, or not */
1946
+ isV5Compatible?: boolean;
1947
+ };
1948
+
1949
+ export type PostAppSettingsMaintenanceModeBody = {
1950
+ /** flag for maintenance mode */
1951
+ flag?: boolean;
1952
+ };
1953
+
1954
+ export type PostAppSettingsMaintenanceMode200 = {
1955
+ /** true if maintenance mode is enabled */
1956
+ flag?: boolean;
1957
+ };
1958
+
1959
+ export type GetAttachmentListParams = {
1960
+ /**
1961
+ * page id
1962
+ */
1963
+ pageId: string;
1964
+ /**
1965
+ * page number
1966
+ */
1967
+ pageNumber?: number;
1968
+ /**
1969
+ * limit
1970
+ */
1971
+ limit?: number;
1972
+ };
1973
+
1974
+ export type GetAttachmentLimitParams = {
1975
+ fileSize: number;
1976
+ };
1977
+
1978
+ export type GetAttachmentLimit200 = {
1979
+ /** uploadable */
1980
+ isUploadable?: boolean;
1981
+ };
1982
+
1983
+ export type PostAttachmentBodyOne = {
1984
+ /** */
1985
+ page_id?: string;
1986
+ /** attachment data */
1987
+ file?: Blob;
1988
+ };
1989
+
1990
+ export type PostAttachmentBodyTwo = {
1991
+ /** */
1992
+ page_id?: string;
1993
+ /** attachment data */
1994
+ file?: Blob;
1995
+ };
1996
+
1997
+ export type PostAttachment200 = {
1998
+ page?: Page;
1999
+ attachment?: Attachment;
2000
+ revision?: string;
2001
+ };
2002
+
2003
+ export type GetAttachmentId200 = {
2004
+ attachment?: Attachment;
2005
+ };
2006
+
2007
+ export type PostBookmarkFolderBody = {
2008
+ /**
2009
+ * Name of the bookmark folder
2010
+ */
2011
+ name?: string;
2012
+ /** Parent folder ID */
2013
+ parent?: string;
2014
+ };
2015
+
2016
+ export type PostBookmarkFolder200 = {
2017
+ bookmarkFolder?: BookmarkFolder;
2018
+ };
2019
+
2020
+ export type PutBookmarkFolderBody = {
2021
+ /** Bookmark Folder ID */
2022
+ bookmarkFolderId?: string;
2023
+ /**
2024
+ * Name of the bookmark folder
2025
+ */
2026
+ name?: string;
2027
+ /** Parent folder ID */
2028
+ parent?: string;
2029
+ /** Child folders */
2030
+ childFolder?: BookmarkFolder[];
2031
+ };
2032
+
2033
+ export type PutBookmarkFolder200 = {
2034
+ bookmarkFolder?: BookmarkFolder;
2035
+ };
2036
+
2037
+ export type GetBookmarkFolderListUserId200 = {
2038
+ bookmarkFolderItems?: BookmarkFolder[];
2039
+ };
2040
+
2041
+ export type DeleteBookmarkFolderId200 = {
2042
+ /** Number of deleted folders */
2043
+ deletedCount?: number;
2044
+ };
2045
+
2046
+ export type PostBookmarkFolderAddBookmarkToFolderBody = {
2047
+ /**
2048
+ * Page ID
2049
+ */
2050
+ pageId?: string;
2051
+ /**
2052
+ * Folder ID
2053
+ * @nullable
2054
+ */
2055
+ folderId?: string | null;
2056
+ };
2057
+
2058
+ export type PostBookmarkFolderAddBookmarkToFolder200 = {
2059
+ bookmarkFolder?: BookmarkFolder;
2060
+ };
2061
+
2062
+ export type PutBookmarkFolderUpdateBookmarkBody = {
2063
+ /**
2064
+ * Page ID
2065
+ */
2066
+ pageId?: string;
2067
+ /** Bookmark status */
2068
+ status?: string;
2069
+ };
2070
+
2071
+ export type PutBookmarkFolderUpdateBookmark200 = {
2072
+ bookmarkFolder?: BookmarkFolder;
2073
+ };
2074
+
2075
+ export type GetBookmarksInfoParams = {
2076
+ /**
2077
+ * page id
2078
+ */
2079
+ pageId?: string;
2080
+ };
2081
+
2082
+ export type PutBookmarks200 = {
2083
+ bookmark?: Bookmark;
2084
+ };
2085
+
2086
+ export type GetCustomizeSetting200 = {
2087
+ /** customize params */
2088
+ customizeParams?: CustomizeSetting;
2089
+ };
2090
+
2091
+ export type PutCustomizeSettingLayout200 = {
2092
+ /** customized params */
2093
+ customizedParams?: CustomizeLayout;
2094
+ };
2095
+
2096
+ export type GetCustomizeSettingTheme200 = {
2097
+ /** The current theme name. */
2098
+ currentTheme?: string;
2099
+ /** Metadata for available plugin themes. */
2100
+ pluginThemesMetadatas?: ThemesMetadata[];
2101
+ };
2102
+
2103
+ export type PutCustomizeSettingTheme200 = {
2104
+ customizedParams?: CustomizeTheme;
2105
+ };
2106
+
2107
+ export type PutCustomizeSettingSidebar200 = {
2108
+ customizedParams?: CustomizeSidebar;
2109
+ };
2110
+
2111
+ export type PutCustomizeSettingFunction200 = {
2112
+ customizedParams?: CustomizeFunction;
2113
+ };
2114
+
2115
+ export type PutCustomizeSettingPresentation200 = {
2116
+ customizedParams?: CustomizePresentation;
2117
+ };
2118
+
2119
+ export type PutCustomizeSettingHighlight200 = {
2120
+ customizedParams?: CustomizeHighlightResponse;
2121
+ };
2122
+
2123
+ export type PutCustomizeSettingCustomizeTitle200 = {
2124
+ customizedParams?: CustomizeTitle;
2125
+ };
2126
+
2127
+ export type PutCustomizeSettingCustomizeNoscript200 = {
2128
+ customizedParams?: CustomizeNoscript;
2129
+ };
2130
+
2131
+ export type PutCustomizeSettingCustomizeCss200 = {
2132
+ customizedParams?: CustomizeCss;
2133
+ };
2134
+
2135
+ export type PutCustomizeSettingCustomizeScript200 = {
2136
+ customizedParams?: CustomizeScript;
2137
+ };
2138
+
2139
+ export type PutCustomizeSettingCustomizeLogo200 = {
2140
+ customizedParams?: CustomizeLogo;
2141
+ };
2142
+
2143
+ export type PutCustomizeSettingUploadBrandLogoBody = {
2144
+ file?: Blob;
2145
+ };
2146
+
2147
+ export type PutCustomizeSettingUploadBrandLogo200AttachmentAllOf = {
2148
+ creator?: string;
2149
+ page?: unknown;
2150
+ temporaryUrlExpiredAt?: unknown;
2151
+ temporaryUrlCached?: unknown;
2152
+ };
2153
+
2154
+ export type PutCustomizeSettingUploadBrandLogo200Attachment = Attachment & PutCustomizeSettingUploadBrandLogo200AttachmentAllOf;
2155
+
2156
+ export type PutCustomizeSettingUploadBrandLogo200 = {
2157
+ attachment?: PutCustomizeSettingUploadBrandLogo200Attachment;
2158
+ };
2159
+
2160
+ export type GetExportStatus200 = {
2161
+ /** whether the request is succeeded or not */
2162
+ ok?: boolean;
2163
+ status?: ExportStatus;
2164
+ };
2165
+
2166
+ export type PostExportBody = {
2167
+ collections?: string[];
2168
+ };
2169
+
2170
+ export type PostExport200 = {
2171
+ /** whether the request is succeeded */
2172
+ ok?: boolean;
2173
+ };
2174
+
2175
+ export type DeleteExportFileName200 = {
2176
+ /** whether the request is succeeded */
2177
+ ok?: boolean;
2178
+ };
2179
+
2180
+ export type PostForgotPasswordBody = {
2181
+ /** Email address of the user requesting password reset */
2182
+ email?: string;
2183
+ };
2184
+
2185
+ export type PostForgotPassword200 = { [key: string]: unknown };
2186
+
2187
+ export type PutForgotPasswordBody = {
2188
+ /** New password */
2189
+ newPassword?: string;
2190
+ };
2191
+
2192
+ export type PutForgotPassword200 = {
2193
+ userData?: User;
2194
+ };
2195
+
2196
+ export type GetG2gTransferFiles200FilesItem = {
2197
+ /** The name of the file */
2198
+ name?: string;
2199
+ /** The size of the file */
2200
+ size?: number;
2201
+ };
2202
+
2203
+ export type GetG2gTransferFiles200 = {
2204
+ files?: GetG2gTransferFiles200FilesItem[];
2205
+ };
2206
+
2207
+ /**
2208
+ * The map of options for each collection
2209
+ */
2210
+ export type PostG2gTransferBodyOptionsMap = { [key: string]: unknown };
2211
+
2212
+ /**
2213
+ * The map of upload configurations
2214
+ */
2215
+ export type PostG2gTransferBodyUploadConfigs = { [key: string]: unknown };
2216
+
2217
+ export type PostG2gTransferBody = {
2218
+ /** The zip file of the data to be transferred */
2219
+ file?: Blob;
2220
+ /** The list of MongoDB collections to be transferred */
2221
+ collections?: string[];
2222
+ /** The map of options for each collection */
2223
+ optionsMap?: PostG2gTransferBodyOptionsMap;
2224
+ /** The ID of the operator user */
2225
+ operatorUserId?: string;
2226
+ /** The map of upload configurations */
2227
+ uploadConfigs?: PostG2gTransferBodyUploadConfigs;
2228
+ };
2229
+
2230
+ export type PostG2gTransfer200 = {
2231
+ /** The message of the result */
2232
+ message?: string;
2233
+ };
2234
+
2235
+ /**
2236
+ * Metadata of the attachment
2237
+ */
2238
+ export type PostG2gTransferAttachmentBodyAttachmentMetadata = { [key: string]: unknown };
2239
+
2240
+ export type PostG2gTransferAttachmentBody = {
2241
+ /** The zip file of the data to be transferred */
2242
+ file?: Blob;
2243
+ /** Metadata of the attachment */
2244
+ attachmentMetadata?: PostG2gTransferAttachmentBodyAttachmentMetadata;
2245
+ };
2246
+
2247
+ export type PostG2gTransferAttachment200 = {
2248
+ /** The message of the result */
2249
+ message?: string;
2250
+ };
2251
+
2252
+ export type GetG2gTransferGrowiInfo200 = {
2253
+ growiInfo?: GrowiInfo;
2254
+ };
2255
+
2256
+ export type PostG2gTransferGenerateKeyBody = {
2257
+ /** The URL of the GROWI */
2258
+ appSiteUrl?: string;
2259
+ };
2260
+
2261
+ export type PostG2gTransferGenerateKey200 = {
2262
+ /** The transfer key */
2263
+ transferKey?: string;
2264
+ };
2265
+
2266
+ /**
2267
+ * The map of options for each collection
2268
+ */
2269
+ export type PostG2gTransferTransferBodyOptionsMap = { [key: string]: unknown };
2270
+
2271
+ export type PostG2gTransferTransferBody = {
2272
+ /** The transfer key */
2273
+ transferKey?: string;
2274
+ /** The list of MongoDB collections to be transferred */
2275
+ collections?: string[];
2276
+ /** The map of options for each collection */
2277
+ optionsMap?: PostG2gTransferTransferBodyOptionsMap;
2278
+ };
2279
+
2280
+ export type PostG2gTransferTransfer200 = {
2281
+ /** The message of the result */
2282
+ message?: string;
2283
+ };
2284
+
2285
+ export type GetHealthcheckParams = {
2286
+ /**
2287
+ * The list of services to check health
2288
+ */
2289
+ checkServices?: GetHealthcheckCheckServicesItem[];
2290
+ /**
2291
+ * Check services and responds 503 if either of these is unhealthy
2292
+ */
2293
+ strictly?: boolean;
2294
+ };
2295
+
2296
+ export type GetHealthcheckCheckServicesItem = (typeof GetHealthcheckCheckServicesItem)[keyof typeof GetHealthcheckCheckServicesItem];
2297
+
2298
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
2299
+ export const GetHealthcheckCheckServicesItem = {
2300
+ mongo: 'mongo',
2301
+ search: 'search',
2302
+ } as const;
2303
+
2304
+ /**
2305
+ * Don't select checkServices
2306
+ */
2307
+ export type GetHealthcheck200OneOf = {
2308
+ status?: string;
2309
+ };
2310
+
2311
+ /**
2312
+ * Select checkServices
2313
+ */
2314
+ export type GetHealthcheck200OneOfTwo = {
2315
+ info?: HealthcheckInfo;
2316
+ };
2317
+
2318
+ export type GetHealthcheck200 = GetHealthcheck200OneOf | GetHealthcheck200OneOfTwo;
2319
+
2320
+ export type GetHealthcheck503ErrorsItem = {
2321
+ message?: string;
2322
+ code?: string;
2323
+ };
2324
+
2325
+ export type GetHealthcheck503 = {
2326
+ /** Errors */
2327
+ errors?: GetHealthcheck503ErrorsItem[];
2328
+ info?: HealthcheckInfo;
2329
+ };
2330
+
2331
+ /**
2332
+ * import settings params
2333
+ */
2334
+ export type GetImport200ImportSettingsParams = {
2335
+ /** the team name of esa.io */
2336
+ esaTeamName?: string;
2337
+ /** the access token of esa.io */
2338
+ esaAccessToken?: string;
2339
+ /** the team name of qiita.com */
2340
+ qiitaTeamName?: string;
2341
+ /** the access token of qiita.com */
2342
+ qiitaAccessToken?: string;
2343
+ };
2344
+
2345
+ export type GetImport200 = {
2346
+ /** import settings params */
2347
+ importSettingsParams?: GetImport200ImportSettingsParams;
2348
+ };
2349
+
2350
+ /**
2351
+ * the array of importing option that have collection name as the key
2352
+
2353
+ */
2354
+ export type PostImportBodyOptions = { [key: string]: GrowiArchiveImportOption[] };
2355
+
2356
+ export type PostImportBody = {
2357
+ /** the file name of zip file */
2358
+ fileName?: string;
2359
+ /** collection names to import */
2360
+ collections?: string[];
2361
+ /** the array of importing option that have collection name as the key
2362
+ */
2363
+ options?: PostImportBodyOptions;
2364
+ };
2365
+
2366
+ export type GetImportStatus200 = {
2367
+ status?: ImportStatus;
2368
+ };
2369
+
2370
+ export type PostImportUploadBody = {
2371
+ file?: Blob;
2372
+ };
2373
+
2374
+ export type GetInAppNotificationListParams = {
2375
+ /**
2376
+ * The number of notifications to get
2377
+ */
2378
+ limit?: number;
2379
+ /**
2380
+ * The number of notifications to skip
2381
+ */
2382
+ offset?: number;
2383
+ /**
2384
+ * The status to categorize. 'UNOPENED' or 'OPENED'.
2385
+ */
2386
+ status?: string;
2387
+ };
2388
+
2389
+ export type GetInAppNotificationStatus200 = {
2390
+ /** Count of unread notifications */
2391
+ count?: number;
2392
+ };
2393
+
2394
+ export type PostInAppNotificationOpenBody = {
2395
+ /** Notification ID */
2396
+ id: string;
2397
+ };
2398
+
2399
+ export type PostInAppNotificationOpen200 = { [key: string]: unknown };
2400
+
2401
+ export type PostInstallerBodyRegisterForm = {
2402
+ name?: string;
2403
+ username?: string;
2404
+ email?: string;
2405
+ password?: string;
2406
+ 'app:globalLang'?: string;
2407
+ };
2408
+
2409
+ export type PostInstallerBody = {
2410
+ registerForm?: PostInstallerBodyRegisterForm;
2411
+ };
2412
+
2413
+ export type PostInstaller200 = {
2414
+ message?: string;
2415
+ };
2416
+
2417
+ export type PostInvitedBodyInvitedForm = {
2418
+ /** The username of the invited user. */
2419
+ username?: string;
2420
+ /** The name of the invited user. */
2421
+ name?: string;
2422
+ /** The password for the invited user. */
2423
+ password?: string;
2424
+ };
2425
+
2426
+ export type PostInvitedBody = {
2427
+ invitedForm?: PostInvitedBodyInvitedForm;
2428
+ };
2429
+
2430
+ export type PostInvited200 = {
2431
+ /** URL to redirect after successful activation. */
2432
+ redirectTo?: string;
2433
+ };
2434
+
2435
+ export type GetMarkdownSetting200 = {
2436
+ /** markdown params */
2437
+ markdownParams?: MarkdownParams;
2438
+ };
2439
+
2440
+ export type PutMarkdownSettingLineBreak200 = {
2441
+ lineBreaksParams?: LineBreakParams;
2442
+ };
2443
+
2444
+ export type PutMarkdownSettingIndent200 = {
2445
+ /** indent params */
2446
+ indentParams?: IndentParams;
2447
+ };
2448
+
2449
+ export type GetMongoCollections200 = {
2450
+ /** whether the request is succeeded */
2451
+ ok?: boolean;
2452
+ collections?: string[];
2453
+ };
2454
+
2455
+ export type GetNotificationSetting200 = {
2456
+ /** notification params */
2457
+ notificationParams?: NotificationParams;
2458
+ };
2459
+
2460
+ /**
2461
+ * response params
2462
+ */
2463
+ export type PostNotificationSettingUserNotification200ResponseParams = {
2464
+ /** user who set notification */
2465
+ createdUser?: User;
2466
+ userNotifications?: UserNotification[];
2467
+ };
2468
+
2469
+ export type PostNotificationSettingUserNotification200 = {
2470
+ /** response params */
2471
+ responseParams?: PostNotificationSettingUserNotification200ResponseParams;
2472
+ };
2473
+
2474
+ export type GetNotificationSettingGlobalNotificationId200 = {
2475
+ globalNotification?: GlobalNotification;
2476
+ };
2477
+
2478
+ export type PutNotificationSettingGlobalNotificationId200 = {
2479
+ /** notification param updated */
2480
+ createdNotification?: GlobalNotification;
2481
+ };
2482
+
2483
+ export type PostNotificationSettingGlobalNotification200 = {
2484
+ /** notification param created */
2485
+ createdNotification?: GlobalNotification;
2486
+ };
2487
+
2488
+ export type PutNotificationSettingGlobalNotificationIdEnabledBody = {
2489
+ /** is notification enabled */
2490
+ isEnabled?: boolean;
2491
+ };
2492
+
2493
+ export type PutNotificationSettingGlobalNotificationIdEnabled200 = {
2494
+ /** notification id */
2495
+ id?: string;
2496
+ };
2497
+
2498
+ export type GetPageListingRoot200 = {
2499
+ rootPage?: Page;
2500
+ };
2501
+
2502
+ export type GetPageListingAncestorsChildrenParams = {
2503
+ path: string;
2504
+ };
2505
+
2506
+ export type GetPageListingAncestorsChildren200AncestorsChildren = {
2507
+ [key: string]: {
2508
+ /** Document ID */
2509
+ _id?: string;
2510
+ /** Number of descendants */
2511
+ descendantCount?: number;
2512
+ /** Indicates if the node is empty */
2513
+ isEmpty?: boolean;
2514
+ /** Access level */
2515
+ grant?: number;
2516
+ /** Path string */
2517
+ path?: string;
2518
+ /**
2519
+ * Revision ID (nullable)
2520
+ * @nullable
2521
+ */
2522
+ revision?: string | null;
2523
+ };
2524
+ };
2525
+
2526
+ export type GetPageListingAncestorsChildren200 = {
2527
+ ancestorsChildren?: GetPageListingAncestorsChildren200AncestorsChildren;
2528
+ };
2529
+
2530
+ export type GetPageListingChildrenParams = {
2531
+ id?: string;
2532
+ path?: string;
2533
+ };
2534
+
2535
+ export type GetPageListingChildren200 = {
2536
+ children?: Page[];
2537
+ };
2538
+
2539
+ export type GetPageListingInfoParams = {
2540
+ pageIds?: string[];
2541
+ path?: string;
2542
+ attachBookmarkCount?: boolean;
2543
+ attachShortBody?: boolean;
2544
+ };
2545
+
2546
+ export type GetPageListingInfo200IdToPageInfoMap = {
2547
+ [key: string]: {
2548
+ commentCount?: number;
2549
+ contentAge?: number;
2550
+ descendantCount?: number;
2551
+ isAbleToDeleteCompletely?: boolean;
2552
+ isDeletable?: boolean;
2553
+ isEmpty?: boolean;
2554
+ isMovable?: boolean;
2555
+ isRevertible?: boolean;
2556
+ isV5Compatible?: boolean;
2557
+ likerIds?: string[];
2558
+ seenUserIds?: string[];
2559
+ sumOfLikers?: number;
2560
+ sumOfSeenUsers?: number;
2561
+ };
2562
+ };
2563
+
2564
+ export type GetPageListingInfo200 = {
2565
+ idToPageInfoMap?: GetPageListingInfo200IdToPageInfoMap;
2566
+ };
2567
+
2568
+ export type GetPageParams = {
2569
+ /**
2570
+ * page id
2571
+ */
2572
+ pageId?: ObjectId;
2573
+ /**
2574
+ * page path
2575
+ */
2576
+ path?: PagePath;
2577
+ };
2578
+
2579
+ export type PostPageBody = {
2580
+ /** Text of page */
2581
+ body: string;
2582
+ path: PagePath;
2583
+ grant?: PageGrant;
2584
+ /** UserGroup ID */
2585
+ grantUserGroupIds?: string;
2586
+ pageTags?: string[];
2587
+ };
2588
+
2589
+ export type PostPage201Data = {
2590
+ page?: Page;
2591
+ tags?: Tags[];
2592
+ revision?: Revision;
2593
+ };
2594
+
2595
+ export type PostPage201 = {
2596
+ data?: PostPage201Data;
2597
+ };
2598
+
2599
+ export type PutPageBody = {
2600
+ body: RevisionBody;
2601
+ pageId: ObjectId;
2602
+ revisionId: ObjectId;
2603
+ grant?: PageGrant;
2604
+ userRelatedGrantUserGroupIds?: string[];
2605
+ /** Determine whether the scopes of descendants should be overwritten */
2606
+ overwriteScopesOfDescendants?: boolean;
2607
+ /** Determine whether the page is enabled to be posted to Slack */
2608
+ isSlackEnabled?: boolean;
2609
+ /** Slack channel IDs */
2610
+ slackChannels?: string;
2611
+ /** Origin is "view" or "editor" */
2612
+ origin?: string;
2613
+ /** Determine whether the page is WIP */
2614
+ wip?: boolean;
2615
+ };
2616
+
2617
+ export type PutPage200Data = {
2618
+ page?: Page;
2619
+ revision?: Revision;
2620
+ };
2621
+
2622
+ export type PutPage200 = {
2623
+ data?: PutPage200Data;
2624
+ };
2625
+
2626
+ export type GetPageExistParams = {
2627
+ /**
2628
+ * The path to check for existence
2629
+ */
2630
+ path: string;
2631
+ };
2632
+
2633
+ export type GetPageExist200 = {
2634
+ isExist?: boolean;
2635
+ };
2636
+
2637
+ export type GetPageGrantDataParams = {
2638
+ /**
2639
+ * page id
2640
+ */
2641
+ pageId?: ObjectId;
2642
+ };
2643
+
2644
+ export type GetPageGrantData200 = {
2645
+ isGrantNormalized?: boolean;
2646
+ };
2647
+
2648
+ export type GetPageNonUserRelatedGroupsGrantedParams = {
2649
+ /**
2650
+ * Path of the page
2651
+ */
2652
+ path: string;
2653
+ };
2654
+
2655
+ export type GetPageNonUserRelatedGroupsGranted200 = {
2656
+ isNonUserRelatedGroupsGranted?: boolean;
2657
+ };
2658
+
2659
+ export type GetPageApplicableGrantParams = {
2660
+ /**
2661
+ * ID of the page
2662
+ */
2663
+ pageId: string;
2664
+ };
2665
+
2666
+ export type GetPageApplicableGrant200 = {
2667
+ grant?: number;
2668
+ grantedUsers?: string[];
2669
+ grantedGroups?: string[];
2670
+ };
2671
+
2672
+ export type PutPageIdGrantBody = {
2673
+ /** Grant level */
2674
+ grant?: number;
2675
+ /** Array of user-related granted group IDs */
2676
+ userRelatedGrantedGroups?: string[];
2677
+ };
2678
+
2679
+ export type GetPageExistPathsParams = {
2680
+ /**
2681
+ * old parent path
2682
+ */
2683
+ fromPath?: string;
2684
+ /**
2685
+ * new parent path
2686
+ */
2687
+ toPath?: string;
2688
+ };
2689
+
2690
+ /**
2691
+ * Paths are already exist in DB
2692
+ */
2693
+ export type GetPageExistPaths200ExistPaths = { [key: string]: unknown };
2694
+
2695
+ export type GetPageExistPaths200 = {
2696
+ /** Paths are already exist in DB */
2697
+ existPaths?: GetPageExistPaths200ExistPaths;
2698
+ };
2699
+
2700
+ export type PutPageSubscribeBody = {
2701
+ pageId?: ObjectId;
2702
+ };
2703
+
2704
+ export type PutPageIdContentWidthBody = {
2705
+ /** Whether to expand the content width */
2706
+ expandContentWidth?: boolean;
2707
+ };
2708
+
2709
+ export type PutPageIdContentWidth200 = {
2710
+ page?: Page;
2711
+ };
2712
+
2713
+ /**
2714
+ * Yjs data
2715
+ */
2716
+ export type GetPageIdYjsData200YjsData = {
2717
+ /** Whether Yjs documents are newer than the latest revision */
2718
+ hasYdocsNewerThanLatestRevision?: boolean;
2719
+ /** Size of the awareness state */
2720
+ awarenessStateSize?: number;
2721
+ };
2722
+
2723
+ export type GetPageIdYjsData200 = {
2724
+ /** Yjs data */
2725
+ yjsData?: GetPageIdYjsData200YjsData;
2726
+ };
2727
+
2728
+ export type PutPageIdSyncLatestRevisionBodyToYjsDraftBody = {
2729
+ /** Length of the editing markdown */
2730
+ editingMarkdownLength?: number;
2731
+ };
2732
+
2733
+ export type PutPageIdSyncLatestRevisionBodyToYjsDraft200 = {
2734
+ /** Whether the latest revision body is synced to the Yjs draft */
2735
+ synced?: boolean;
2736
+ /** Whether Yjs data is broken */
2737
+ isYjsDataBroken?: boolean;
2738
+ };
2739
+
2740
+ export type GetPagesRecentParams = {
2741
+ /**
2742
+ * Limit of acquisitions
2743
+ */
2744
+ limit?: number;
2745
+ /**
2746
+ * Offset of acquisitions
2747
+ */
2748
+ offset?: number;
2749
+ /**
2750
+ * Whether to include WIP pages
2751
+ */
2752
+ includeWipPage?: string;
2753
+ };
2754
+
2755
+ export type PostPagesRenameBody = {
2756
+ pageId: ObjectId;
2757
+ path?: PagePath;
2758
+ /** revision ID */
2759
+ revisionId: string;
2760
+ /** new path */
2761
+ newPagePath?: string;
2762
+ /** whether redirect page */
2763
+ isRenameRedirect?: boolean;
2764
+ /** whether update meta data */
2765
+ updateMetadata?: boolean;
2766
+ /** whether rename page with descendants */
2767
+ isRecursively?: boolean;
2768
+ };
2769
+
2770
+ export type PostPagesRename200 = {
2771
+ page?: Page;
2772
+ };
2773
+
2774
+ export type PostPagesResumeRenameBody = {
2775
+ pageId: ObjectId;
2776
+ };
2777
+
2778
+ export type PostPagesResumeRename200 = { [key: string]: unknown };
2779
+
2780
+ export type DeletePagesEmptyTrash200 = {
2781
+ deletablePages?: Page[];
2782
+ };
2783
+
2784
+ export type GetPagesListParams = {
2785
+ /**
2786
+ * Path to search
2787
+ */
2788
+ path?: string;
2789
+ /**
2790
+ * Limit of acquisitions
2791
+ */
2792
+ limit?: number;
2793
+ /**
2794
+ * Page number
2795
+ */
2796
+ page?: number;
2797
+ };
2798
+
2799
+ export type GetPagesList200PagesItemAllOf = {
2800
+ lastUpdateUser?: User;
2801
+ };
2802
+
2803
+ export type GetPagesList200PagesItem = Page & GetPagesList200PagesItemAllOf;
2804
+
2805
+ export type GetPagesList200 = {
2806
+ /** Total count of pages */
2807
+ totalCount?: number;
2808
+ /** Offset of pages */
2809
+ offset?: number;
2810
+ /** Limit of pages */
2811
+ limit?: number;
2812
+ pages?: GetPagesList200PagesItem[];
2813
+ };
2814
+
2815
+ export type PostPagesDuplicateBody = {
2816
+ pageId: ObjectId;
2817
+ pageNameInput?: PagePath;
2818
+ /** whether duplicate page with descendants */
2819
+ isRecursively?: boolean;
2820
+ /** whether duplicate only user related resources */
2821
+ onlyDuplicateUserRelatedResources?: boolean;
2822
+ };
2823
+
2824
+ export type PostPagesDuplicate200 = {
2825
+ page?: Page;
2826
+ };
2827
+
2828
+ export type GetPagesSubordinatedListParams = {
2829
+ /**
2830
+ * Parent path of search
2831
+ */
2832
+ path?: string;
2833
+ /**
2834
+ * Limit of acquisitions
2835
+ */
2836
+ limit?: number;
2837
+ };
2838
+
2839
+ export type GetPagesSubordinatedList200 = {
2840
+ subordinatedPages?: Page[];
2841
+ };
2842
+
2843
+ /**
2844
+ * Map of page IDs to revision IDs
2845
+ */
2846
+ export type PostPagesDeleteBodyPageIdToRevisionIdMap = { [key: string]: unknown };
2847
+
2848
+ export type PostPagesDeleteBody = {
2849
+ /** Map of page IDs to revision IDs */
2850
+ pageIdToRevisionIdMap?: PostPagesDeleteBodyPageIdToRevisionIdMap;
2851
+ /** Whether to delete pages completely */
2852
+ isCompletely?: boolean;
2853
+ /** Whether to delete pages recursively */
2854
+ isRecursively?: boolean;
2855
+ /** Whether the page is restricted to anyone with the link */
2856
+ isAnyoneWithTheLink?: boolean;
2857
+ };
2858
+
2859
+ export type PostPagesDelete200 = {
2860
+ /** List of deleted page paths */
2861
+ paths?: string[];
2862
+ /** Whether pages were deleted recursively */
2863
+ isRecursively?: boolean;
2864
+ /** Whether pages were deleted completely */
2865
+ isCompletely?: boolean;
2866
+ };
2867
+
2868
+ export type PostPagesConvertPagesByPathBody = {
2869
+ /** Path to convert */
2870
+ convertPath?: string;
2871
+ };
2872
+
2873
+ /**
2874
+ * Empty object
2875
+ */
2876
+ export type PostPagesConvertPagesByPath200 = { [key: string]: unknown };
2877
+
2878
+ export type PostPagesLegacyPagesMigrationBody = {
2879
+ /** List of page IDs to migrate */
2880
+ pageIds?: string[];
2881
+ /** Whether to migrate pages recursively */
2882
+ isRecursively?: boolean;
2883
+ };
2884
+
2885
+ /**
2886
+ * Empty object
2887
+ */
2888
+ export type PostPagesLegacyPagesMigration200 = { [key: string]: unknown };
2889
+
2890
+ export type GetPagesV5MigrationStatus200 = {
2891
+ /** Whether the app is V5 compatible */
2892
+ isV5Compatible?: boolean;
2893
+ /** Number of pages that can be migrated */
2894
+ migratablePagesCount?: number;
2895
+ };
2896
+
2897
+ /**
2898
+ * personal params
2899
+ */
2900
+ export type GetPersonalSetting200CurrentUser = { [key: string]: unknown };
2901
+
2902
+ export type GetPersonalSetting200 = {
2903
+ /** personal params */
2904
+ currentUser?: GetPersonalSetting200CurrentUser;
2905
+ };
2906
+
2907
+ /**
2908
+ * personal params
2909
+ */
2910
+ export type PutPersonalSetting200UpdatedUser = { [key: string]: unknown };
2911
+
2912
+ export type PutPersonalSetting200 = {
2913
+ /** personal params */
2914
+ updatedUser?: PutPersonalSetting200UpdatedUser;
2915
+ };
2916
+
2917
+ export type GetPersonalSettingIsPasswordSet200 = {
2918
+ /** Whether a password has been set */
2919
+ isPasswordSet?: boolean;
2920
+ /** Minimum password length */
2921
+ minPasswordLength?: number;
2922
+ };
2923
+
2924
+ export type PutPersonalSettingImageTypeBody = {
2925
+ isGravatarEnabled?: boolean;
2926
+ };
2927
+
2928
+ /**
2929
+ * user data
2930
+ */
2931
+ export type PutPersonalSettingImageType200UserData = { [key: string]: unknown };
2932
+
2933
+ export type PutPersonalSettingImageType200 = {
2934
+ /** user data */
2935
+ userData?: PutPersonalSettingImageType200UserData;
2936
+ };
2937
+
2938
+ /**
2939
+ * array of external accounts
2940
+ */
2941
+ export type GetPersonalSettingExternalAccounts200ExternalAccounts = { [key: string]: unknown };
2942
+
2943
+ export type GetPersonalSettingExternalAccounts200 = {
2944
+ /** array of external accounts */
2945
+ externalAccounts?: GetPersonalSettingExternalAccounts200ExternalAccounts;
2946
+ };
2947
+
2948
+ export type PutPersonalSettingPasswordBody = {
2949
+ oldPassword?: string;
2950
+ newPassword?: string;
2951
+ };
2952
+
2953
+ /**
2954
+ * user data updated
2955
+ */
2956
+ export type PutPersonalSettingPassword200UserData = { [key: string]: unknown };
2957
+
2958
+ export type PutPersonalSettingPassword200 = {
2959
+ /** user data updated */
2960
+ userData?: PutPersonalSettingPassword200UserData;
2961
+ };
2962
+
2963
+ /**
2964
+ * user data
2965
+ */
2966
+ export type PutPersonalSettingApiToken200UserData = { [key: string]: unknown };
2967
+
2968
+ export type PutPersonalSettingApiToken200 = {
2969
+ /** user data */
2970
+ userData?: PutPersonalSettingApiToken200UserData;
2971
+ };
2972
+
2973
+ export type PutPersonalSettingAssociateLdapBody = {
2974
+ username?: string;
2975
+ };
2976
+
2977
+ /**
2978
+ * Ldap account associate to me
2979
+ */
2980
+ export type PutPersonalSettingAssociateLdap200AssociateUser = { [key: string]: unknown };
2981
+
2982
+ export type PutPersonalSettingAssociateLdap200 = {
2983
+ /** Ldap account associate to me */
2984
+ associateUser?: PutPersonalSettingAssociateLdap200AssociateUser;
2985
+ };
2986
+
2987
+ /**
2988
+ * Ldap account disassociate to me
2989
+ */
2990
+ export type PutPersonalSettingDisassociateLdap200DisassociateUser = { [key: string]: unknown };
2991
+
2992
+ export type PutPersonalSettingDisassociateLdap200 = {
2993
+ /** Ldap account disassociate to me */
2994
+ disassociateUser?: PutPersonalSettingDisassociateLdap200DisassociateUser;
2995
+ };
2996
+
2997
+ export type PutPersonalSettingEditorSettingsBody = {
2998
+ theme?: string;
2999
+ keymapMode?: string;
3000
+ styleActiveLine?: boolean;
3001
+ autoFormatMarkdownTable?: boolean;
3002
+ };
3003
+
3004
+ /**
3005
+ * editor settings
3006
+ */
3007
+ export type PutPersonalSettingEditorSettings200 = { [key: string]: unknown };
3008
+
3009
+ /**
3010
+ * editor settings
3011
+ */
3012
+ export type GetPersonalSettingEditorSettings200 = { [key: string]: unknown };
3013
+
3014
+ export type PutPersonalSettingInAppNotificationSettingsBodySubscribeRulesItem = {
3015
+ name?: string;
3016
+ isEnabled?: boolean;
3017
+ };
3018
+
3019
+ export type PutPersonalSettingInAppNotificationSettingsBody = {
3020
+ subscribeRules?: PutPersonalSettingInAppNotificationSettingsBodySubscribeRulesItem[];
3021
+ };
3022
+
3023
+ export type PutPersonalSettingInAppNotificationSettings200 = { [key: string]: unknown };
3024
+
3025
+ /**
3026
+ * InAppNotificationSettings
3027
+ */
3028
+ export type GetPersonalSettingInAppNotificationSettings200CurrentUser = { [key: string]: unknown };
3029
+
3030
+ export type GetPersonalSettingInAppNotificationSettings200 = {
3031
+ /** InAppNotificationSettings */
3032
+ currentUser?: GetPersonalSettingInAppNotificationSettings200CurrentUser;
3033
+ };
3034
+
3035
+ export type PutPersonalSettingQuestionnaireSettingsBody = {
3036
+ isQuestionnaireEnabled?: boolean;
3037
+ };
3038
+
3039
+ export type PutPersonalSettingQuestionnaireSettings200 = {
3040
+ message?: string;
3041
+ isQuestionnaireEnabled?: boolean;
3042
+ };
3043
+
3044
+ export type GetRevisionsListParams = {
3045
+ pageId?: string;
3046
+ /**
3047
+ * selected page number
3048
+ */
3049
+ page?: number;
3050
+ /**
3051
+ * page item limit
3052
+ */
3053
+ limit?: number;
3054
+ };
3055
+
3056
+ export type GetRevisionsList200 = {
3057
+ revisions?: Revision[];
3058
+ /** total count of revisions */
3059
+ totalCount?: number;
3060
+ /** offset of the revisions */
3061
+ offset?: number;
3062
+ };
3063
+
3064
+ export type GetRevisionsIdParams = {
3065
+ /**
3066
+ * page id
3067
+ */
3068
+ pageId: string;
3069
+ };
3070
+
3071
+ export type GetRevisionsId200 = {
3072
+ revision?: Revision;
3073
+ };
3074
+
3075
+ export type GetSearchIndices200 = {
3076
+ /** Status of indices */
3077
+ info?: Indices;
3078
+ };
3079
+
3080
+ /**
3081
+ * Operation type against to indices > * `normalize` - Normalize indices * `rebuild` - Rebuild indices
3082
+ */
3083
+ export type PutSearchIndicesBodyOperation = (typeof PutSearchIndicesBodyOperation)[keyof typeof PutSearchIndicesBodyOperation];
3084
+
3085
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
3086
+ export const PutSearchIndicesBodyOperation = {
3087
+ normalize: 'normalize',
3088
+ rebuild: 'rebuild',
3089
+ } as const;
3090
+
3091
+ export type PutSearchIndicesBody = {
3092
+ /** Operation type against to indices > * `normalize` - Normalize indices * `rebuild` - Rebuild indices */
3093
+ operation?: PutSearchIndicesBodyOperation;
3094
+ };
3095
+
3096
+ export type PutSearchIndices200 = {
3097
+ /** Operation is successfully processed, or requested */
3098
+ message?: string;
3099
+ };
3100
+
3101
+ /**
3102
+ * security params
3103
+ */
3104
+ export type GetSecuritySetting200SecurityParams = {
3105
+ generalSetting?: GeneralSetting;
3106
+ shareLinkSetting?: ShareLinkSetting;
3107
+ localSetting?: LocalSetting;
3108
+ generalAuth?: GeneralAuthSetting;
3109
+ ldapAuth?: LdapAuthSetting;
3110
+ samlAuth?: SamlAuthSetting;
3111
+ oidcAuth?: OidcAuthSetting;
3112
+ googleOAuth?: GoogleOAuthSetting;
3113
+ githubOAuth?: GitHubOAuthSetting;
3114
+ };
3115
+
3116
+ export type GetSecuritySetting200 = {
3117
+ /** security params */
3118
+ securityParams?: GetSecuritySetting200SecurityParams;
3119
+ };
3120
+
3121
+ export type PutSecuritySettingAuthenticationEnabledBody = {
3122
+ isEnabled?: boolean;
3123
+ authId?: string;
3124
+ };
3125
+
3126
+ /**
3127
+ * updated param
3128
+ */
3129
+ export type PutSecuritySettingAuthenticationEnabled200 = { [key: string]: unknown };
3130
+
3131
+ export type GetSecuritySettingAuthentication200 = {
3132
+ /** setup strategies list */
3133
+ setupStrategies?: string[];
3134
+ };
3135
+
3136
+ export type PutSecuritySettingShareLinkSetting200 = {
3137
+ securitySettingParams?: ShareLinkSetting;
3138
+ };
3139
+
3140
+ /**
3141
+ * suceed to get all share links
3142
+ */
3143
+ export type GetSecuritySettingAllShareLinks200SecurityParams = { [key: string]: unknown };
3144
+
3145
+ export type GetSecuritySettingAllShareLinks200 = {
3146
+ /** suceed to get all share links */
3147
+ securityParams?: GetSecuritySettingAllShareLinks200SecurityParams;
3148
+ };
3149
+
3150
+ export type DeleteSecuritySettingAllShareLinks200 = {
3151
+ /** total number of removed share links */
3152
+ removeTotal?: number;
3153
+ };
3154
+
3155
+ export type PutSecuritySettingLocalSetting200 = {
3156
+ localSettingParams?: LocalSetting;
3157
+ };
3158
+
3159
+ export type PutSecuritySettingLdap200 = {
3160
+ securitySettingParams?: LdapAuthSetting;
3161
+ };
3162
+
3163
+ export type PutSecuritySettingSaml200 = {
3164
+ securitySettingParams?: SamlAuthSetting;
3165
+ };
3166
+
3167
+ export type PutSecuritySettingOidc200 = {
3168
+ securitySettingParams?: OidcAuthSetting;
3169
+ };
3170
+
3171
+ export type PutSecuritySettingGoogleOauth200 = {
3172
+ securitySettingParams?: GoogleOAuthSetting;
3173
+ };
3174
+
3175
+ export type PutSecuritySettingGithubOauth200 = {
3176
+ securitySettingParams?: GitHubOAuthSetting;
3177
+ };
3178
+
3179
+ export type GetShareLinksParams = {
3180
+ /**
3181
+ * page id of share link
3182
+ */
3183
+ relatedPage: string;
3184
+ };
3185
+
3186
+ export type GetShareLinks200 = {
3187
+ shareLinksResult?: ShareLink[];
3188
+ };
3189
+
3190
+ export type PostShareLinksParams = {
3191
+ /**
3192
+ * page id of share link
3193
+ */
3194
+ relatedPage: string;
3195
+ /**
3196
+ * expiration date of share link
3197
+ */
3198
+ expiredAt?: string;
3199
+ /**
3200
+ * description of share link
3201
+ */
3202
+ description?: string;
3203
+ };
3204
+
3205
+ export type DeleteShareLinksParams = {
3206
+ /**
3207
+ * page id of share link
3208
+ */
3209
+ relatedPage: string;
3210
+ };
3211
+
3212
+ export type DeleteShareLinksAll200 = {
3213
+ /** The number of share links deleted */
3214
+ deletedCount?: number;
3215
+ };
3216
+
3217
+ export type GetSlackIntegrationLegacySetting200SlackIntegrationParamsAllOf = {
3218
+ /** whether slackbot is configured */
3219
+ isSlackbotConfigured?: boolean;
3220
+ };
3221
+
3222
+ export type GetSlackIntegrationLegacySetting200SlackIntegrationParams = SlackConfigurationParams &
3223
+ GetSlackIntegrationLegacySetting200SlackIntegrationParamsAllOf;
3224
+
3225
+ export type GetSlackIntegrationLegacySetting200 = {
3226
+ slackIntegrationParams?: GetSlackIntegrationLegacySetting200SlackIntegrationParams;
3227
+ };
3228
+
3229
+ export type PutSlackIntegrationLegacySettingBody = {
3230
+ /** incoming webhooks url */
3231
+ webhookUrl?: string;
3232
+ /** use incoming webhooks even if Slack App settings are enabled */
3233
+ isIncomingWebhookPrioritized?: boolean;
3234
+ /** OAuth access token */
3235
+ slackToken?: string;
3236
+ };
3237
+
3238
+ export type PutSlackIntegrationLegacySetting200 = {
3239
+ responseParams?: SlackConfigurationParams;
3240
+ };
3241
+
3242
+ export type GetSlackIntegrationSettings200SettingsCommandPermission = { [key: string]: unknown };
3243
+
3244
+ export type GetSlackIntegrationSettings200SettingsEventActionsPermission = { [key: string]: unknown };
3245
+
3246
+ export type GetSlackIntegrationSettings200Settings = {
3247
+ slackSigningSecretEnvVars?: string;
3248
+ slackBotTokenEnvVars?: string;
3249
+ slackSigningSecret?: string;
3250
+ slackBotToken?: string;
3251
+ commandPermission?: GetSlackIntegrationSettings200SettingsCommandPermission;
3252
+ eventActionsPermission?: GetSlackIntegrationSettings200SettingsEventActionsPermission;
3253
+ proxyServerUri?: string;
3254
+ };
3255
+
3256
+ export type GetSlackIntegrationSettings200ConnectionStatuses = { [key: string]: unknown };
3257
+
3258
+ export type GetSlackIntegrationSettings200 = {
3259
+ currentBotType?: string;
3260
+ settings?: GetSlackIntegrationSettings200Settings;
3261
+ connectionStatuses?: GetSlackIntegrationSettings200ConnectionStatuses;
3262
+ errorMsg?: string;
3263
+ errorCode?: string;
3264
+ };
3265
+
3266
+ export type PutSlackIntegrationSettingsWithoutProxyUpdateSettingsBody = {
3267
+ slackSigningSecret?: string;
3268
+ slackBotToken?: string;
3269
+ };
3270
+
3271
+ export type PutSlackIntegrationSettingsWithoutProxyUpdatePermissionsBodyCommandPermission = { [key: string]: unknown };
3272
+
3273
+ export type PutSlackIntegrationSettingsWithoutProxyUpdatePermissionsBodyEventActionsPermission = { [key: string]: unknown };
3274
+
3275
+ export type PutSlackIntegrationSettingsWithoutProxyUpdatePermissionsBody = {
3276
+ commandPermission?: PutSlackIntegrationSettingsWithoutProxyUpdatePermissionsBodyCommandPermission;
3277
+ eventActionsPermission?: PutSlackIntegrationSettingsWithoutProxyUpdatePermissionsBodyEventActionsPermission;
3278
+ };
3279
+
3280
+ export type PostSlackIntegrationSettingsSlackAppIntegrations200PermissionsForBroadcastUseCommands = { [key: string]: unknown };
3281
+
3282
+ export type PostSlackIntegrationSettingsSlackAppIntegrations200PermissionsForSingleUseCommands = { [key: string]: unknown };
3283
+
3284
+ export type PostSlackIntegrationSettingsSlackAppIntegrations200PermissionsForSlackEvents = { [key: string]: unknown };
3285
+
3286
+ export type PostSlackIntegrationSettingsSlackAppIntegrations200 = {
3287
+ tokenGtoP?: string;
3288
+ tokenPtoG?: string;
3289
+ permissionsForBroadcastUseCommands?: PostSlackIntegrationSettingsSlackAppIntegrations200PermissionsForBroadcastUseCommands;
3290
+ permissionsForSingleUseCommands?: PostSlackIntegrationSettingsSlackAppIntegrations200PermissionsForSingleUseCommands;
3291
+ permissionsForSlackEvents?: PostSlackIntegrationSettingsSlackAppIntegrations200PermissionsForSlackEvents;
3292
+ isPrimary?: boolean;
3293
+ };
3294
+
3295
+ export type DeleteSlackIntegrationSettingsSlackAppIntegrationsId200Response = { [key: string]: unknown };
3296
+
3297
+ export type DeleteSlackIntegrationSettingsSlackAppIntegrationsId200 = {
3298
+ response?: DeleteSlackIntegrationSettingsSlackAppIntegrationsId200Response;
3299
+ };
3300
+
3301
+ export type PutSlackIntegrationSettingsProxyUriBody = {
3302
+ proxyUri?: string;
3303
+ };
3304
+
3305
+ export type PutSlackIntegrationSettingsProxyUri200 = { [key: string]: unknown };
3306
+
3307
+ export type PutSlackIntegrationSettingsSlackAppIntegrationsIdRegenerateTokens200 = { [key: string]: unknown };
3308
+
3309
+ export type PutSlackIntegrationSettingsSlackAppIntegrationsIdPermissionsBodyPermissionsForBroadcastUseCommands = { [key: string]: unknown };
3310
+
3311
+ export type PutSlackIntegrationSettingsSlackAppIntegrationsIdPermissionsBodyPermissionsForSingleUseCommands = { [key: string]: unknown };
3312
+
3313
+ export type PutSlackIntegrationSettingsSlackAppIntegrationsIdPermissionsBodyPermissionsForSlackEventActions = { [key: string]: unknown };
3314
+
3315
+ export type PutSlackIntegrationSettingsSlackAppIntegrationsIdPermissionsBody = {
3316
+ permissionsForBroadcastUseCommands?: PutSlackIntegrationSettingsSlackAppIntegrationsIdPermissionsBodyPermissionsForBroadcastUseCommands;
3317
+ permissionsForSingleUseCommands?: PutSlackIntegrationSettingsSlackAppIntegrationsIdPermissionsBodyPermissionsForSingleUseCommands;
3318
+ permissionsForSlackEventActions?: PutSlackIntegrationSettingsSlackAppIntegrationsIdPermissionsBodyPermissionsForSlackEventActions;
3319
+ };
3320
+
3321
+ export type PutSlackIntegrationSettingsSlackAppIntegrationsIdPermissions200 = { [key: string]: unknown };
3322
+
3323
+ export type PostSlackIntegrationSettingsSlackAppIntegrationsIdRelationTestBody = {
3324
+ channel?: string;
3325
+ };
3326
+
3327
+ export type PostSlackIntegrationSettingsWithoutProxyTestBody = {
3328
+ channel?: string;
3329
+ };
3330
+
3331
+ export type PostSlackIntegrationCommandsBody = { [key: string]: unknown };
3332
+
3333
+ export type PostSlackIntegrationProxiedVerifyBody = {
3334
+ type?: string;
3335
+ challenge?: string;
3336
+ };
3337
+
3338
+ export type PostSlackIntegrationProxiedVerify200 = {
3339
+ challenge?: string;
3340
+ };
3341
+
3342
+ export type PostSlackIntegrationProxiedCommandsBody = { [key: string]: unknown };
3343
+
3344
+ export type PostSlackIntegrationInteractionsBody = { [key: string]: unknown };
3345
+
3346
+ export type PostSlackIntegrationProxiedInteractionsBody = { [key: string]: unknown };
3347
+
3348
+ export type GetSlackIntegrationSupportedCommands200PermissionsForBroadcastUseCommandsItem = { [key: string]: unknown };
3349
+
3350
+ export type GetSlackIntegrationSupportedCommands200PermissionsForSingleUseCommandsItem = { [key: string]: unknown };
3351
+
3352
+ export type GetSlackIntegrationSupportedCommands200 = {
3353
+ permissionsForBroadcastUseCommands?: GetSlackIntegrationSupportedCommands200PermissionsForBroadcastUseCommandsItem[];
3354
+ permissionsForSingleUseCommands?: GetSlackIntegrationSupportedCommands200PermissionsForSingleUseCommandsItem[];
3355
+ };
3356
+
3357
+ export type PostSlackIntegrationEventsBodyEvent = { [key: string]: unknown };
3358
+
3359
+ export type PostSlackIntegrationEventsBody = {
3360
+ event?: PostSlackIntegrationEventsBodyEvent;
3361
+ };
3362
+
3363
+ export type PostSlackIntegrationEvents200 = { [key: string]: unknown };
3364
+
3365
+ export type PostSlackIntegrationProxiedEventsBodyGrowiBotEvent = { [key: string]: unknown };
3366
+
3367
+ export type PostSlackIntegrationProxiedEventsBodyData = { [key: string]: unknown };
3368
+
3369
+ export type PostSlackIntegrationProxiedEventsBody = {
3370
+ growiBotEvent?: PostSlackIntegrationProxiedEventsBodyGrowiBotEvent;
3371
+ data?: PostSlackIntegrationProxiedEventsBodyData;
3372
+ };
3373
+
3374
+ export type PostSlackIntegrationProxiedEvents200 = { [key: string]: unknown };
3375
+
3376
+ export type PostCompleteRegistrationBodyRegisterForm = {
3377
+ username?: string;
3378
+ name?: string;
3379
+ password?: string;
3380
+ token?: string;
3381
+ email?: string;
3382
+ };
3383
+
3384
+ export type PostCompleteRegistrationBody = {
3385
+ registerForm?: PostCompleteRegistrationBodyRegisterForm;
3386
+ };
3387
+
3388
+ export type PostCompleteRegistration200 = {
3389
+ redirectTo?: string;
3390
+ };
3391
+
3392
+ export type GetUserGroupRelations200UserGroupRelationsUserGroupRelationsItem = { [key: string]: unknown };
3393
+
3394
+ export type GetUserGroupRelations200UserGroupRelationsRelationsOfChildGroupsItem = { [key: string]: unknown };
3395
+
3396
+ /**
3397
+ * contains arrays user objects related
3398
+ */
3399
+ export type GetUserGroupRelations200UserGroupRelations = {
3400
+ userGroupRelations?: GetUserGroupRelations200UserGroupRelationsUserGroupRelationsItem[];
3401
+ relationsOfChildGroups?: GetUserGroupRelations200UserGroupRelationsRelationsOfChildGroupsItem[];
3402
+ };
3403
+
3404
+ export type GetUserGroupRelations200 = {
3405
+ /** contains arrays user objects related */
3406
+ userGroupRelations?: GetUserGroupRelations200UserGroupRelations;
3407
+ };
3408
+
3409
+ export type GetUserGroupsParams = {
3410
+ /**
3411
+ * page number
3412
+ */
3413
+ page?: number;
3414
+ /**
3415
+ * number of items per page
3416
+ */
3417
+ limit?: number;
3418
+ /**
3419
+ * offset
3420
+ */
3421
+ offset?: number;
3422
+ /**
3423
+ * whether to paginate
3424
+ */
3425
+ pagination?: boolean;
3426
+ };
3427
+
3428
+ /**
3429
+ * a result of `UserGroup.find`
3430
+ */
3431
+ export type GetUserGroups200UserGroups = { [key: string]: unknown };
3432
+
3433
+ export type GetUserGroups200 = {
3434
+ /** a result of `UserGroup.find` */
3435
+ userGroups?: GetUserGroups200UserGroups;
3436
+ /** the number of userGroups */
3437
+ totalUserGroups?: number;
3438
+ /** the number of items per page */
3439
+ pagingLimit?: number;
3440
+ };
3441
+
3442
+ export type PostUserGroupsBody = {
3443
+ /** name of the userGroup trying to be added */
3444
+ name?: string;
3445
+ /** description of the userGroup trying to be added */
3446
+ description?: string;
3447
+ /** parentId of the userGroup trying to be added */
3448
+ parentId?: string;
3449
+ };
3450
+
3451
+ /**
3452
+ * A result of `UserGroup.createGroupByName`
3453
+ */
3454
+ export type PostUserGroups200UserGroup = { [key: string]: unknown };
3455
+
3456
+ export type PostUserGroups200 = {
3457
+ /** A result of `UserGroup.createGroupByName` */
3458
+ userGroup?: PostUserGroups200UserGroup;
3459
+ };
3460
+
3461
+ export type GetUserGroupsAncestorsParams = {
3462
+ /**
3463
+ * id of userGroup
3464
+ */
3465
+ groupId: string;
3466
+ };
3467
+
3468
+ export type GetUserGroupsAncestors200AncestorUserGroupsItem = { [key: string]: unknown };
3469
+
3470
+ export type GetUserGroupsAncestors200 = {
3471
+ /** userGroup objects */
3472
+ ancestorUserGroups?: GetUserGroupsAncestors200AncestorUserGroupsItem[];
3473
+ };
3474
+
3475
+ export type GetUserGroupsChildrenParams = {
3476
+ /**
3477
+ * IDs of parent user groups
3478
+ */
3479
+ parentIds?: string[];
3480
+ /**
3481
+ * Whether to include grandchild user groups
3482
+ */
3483
+ includeGrandChildren?: boolean;
3484
+ };
3485
+
3486
+ export type GetUserGroupsChildren200ChildUserGroupsItem = { [key: string]: unknown };
3487
+
3488
+ export type GetUserGroupsChildren200GrandChildUserGroupsItem = { [key: string]: unknown };
3489
+
3490
+ export type GetUserGroupsChildren200 = {
3491
+ /** Child user group objects */
3492
+ childUserGroups?: GetUserGroupsChildren200ChildUserGroupsItem[];
3493
+ /** Grandchild user group objects */
3494
+ grandChildUserGroups?: GetUserGroupsChildren200GrandChildUserGroupsItem[];
3495
+ };
3496
+
3497
+ export type GetSelectableParentGroupsParams = {
3498
+ /**
3499
+ * id of userGroup
3500
+ */
3501
+ groupId: string;
3502
+ };
3503
+
3504
+ export type GetSelectableParentGroups200SelectableParentGroupsItem = { [key: string]: unknown };
3505
+
3506
+ export type GetSelectableParentGroups200 = {
3507
+ /** userGroup objects */
3508
+ selectableParentGroups?: GetSelectableParentGroups200SelectableParentGroupsItem[];
3509
+ };
3510
+
3511
+ export type GetSelectableChildGroupsParams = {
3512
+ /**
3513
+ * id of userGroup
3514
+ */
3515
+ groupId: string;
3516
+ };
3517
+
3518
+ export type GetSelectableChildGroups200SelectableChildGroupsItem = { [key: string]: unknown };
3519
+
3520
+ export type GetSelectableChildGroups200 = {
3521
+ /** userGroup objects */
3522
+ selectableChildGroups?: GetSelectableChildGroups200SelectableChildGroupsItem[];
3523
+ };
3524
+
3525
+ /**
3526
+ * userGroup object
3527
+ */
3528
+ export type GetUserGroupsId200UserGroup = { [key: string]: unknown };
3529
+
3530
+ export type GetUserGroupsId200 = {
3531
+ /** userGroup object */
3532
+ userGroup?: GetUserGroupsId200UserGroup;
3533
+ };
3534
+
3535
+ export type DeleteUserGroupsIdParams = {
3536
+ /**
3537
+ * name of action
3538
+ */
3539
+ actionName?: string;
3540
+ /**
3541
+ * userGroup id that will be transferred to
3542
+ */
3543
+ transferToUserGroupId?: string;
3544
+ /**
3545
+ * userGroup type that will be transferred to
3546
+ */
3547
+ transferToUserGroupType?: string;
3548
+ };
3549
+
3550
+ /**
3551
+ * A result of `UserGroup.removeCompletelyById`
3552
+ */
3553
+ export type DeleteUserGroupsId200UserGroups = { [key: string]: unknown };
3554
+
3555
+ export type DeleteUserGroupsId200 = {
3556
+ /** A result of `UserGroup.removeCompletelyById` */
3557
+ userGroups?: DeleteUserGroupsId200UserGroups;
3558
+ };
3559
+
3560
+ export type PutUserGroupsIdBody = {
3561
+ /** name of the userGroup trying to be updated */
3562
+ name?: string;
3563
+ /** description of the userGroup trying to be updated */
3564
+ description?: string;
3565
+ /** parentId of the userGroup trying to be updated */
3566
+ parentId?: string;
3567
+ /** whether to update parent groups */
3568
+ forceUpdateParents?: boolean;
3569
+ };
3570
+
3571
+ /**
3572
+ * A result of `UserGroup.updateName`
3573
+ */
3574
+ export type PutUserGroupsId200UserGroup = { [key: string]: unknown };
3575
+
3576
+ export type PutUserGroupsId200 = {
3577
+ /** A result of `UserGroup.updateName` */
3578
+ userGroup?: PutUserGroupsId200UserGroup;
3579
+ };
3580
+
3581
+ export type GetUserGroupsIdUsers200 = {
3582
+ /** user objects */
3583
+ users?: User[];
3584
+ };
3585
+
3586
+ export type GetUserGroupsIdUnrelatedUsersParams = {
3587
+ /**
3588
+ * search word
3589
+ */
3590
+ searchWord?: string;
3591
+ /**
3592
+ * search type
3593
+ */
3594
+ searchType?: string;
3595
+ /**
3596
+ * whether name is also searched
3597
+ */
3598
+ isAlsoNameSearched?: boolean;
3599
+ /**
3600
+ * whether mail is also searched
3601
+ */
3602
+ isAlsoMailSearched?: boolean;
3603
+ };
3604
+
3605
+ export type GetUserGroupsIdUnrelatedUsers200 = {
3606
+ /** user objects */
3607
+ users?: User[];
3608
+ };
3609
+
3610
+ export type PostUserGroupsIdUsersUsername200 = {
3611
+ /** the user added to the group */
3612
+ user?: User;
3613
+ /** the number of relations created */
3614
+ createdRelationCount?: number;
3615
+ };
3616
+
3617
+ export type DeleteUserGroupsIdUsersUsername200 = {
3618
+ /** the user removed from the group */
3619
+ user?: User;
3620
+ /** the number of groups from which the user was removed */
3621
+ deletedGroupsCount?: number;
3622
+ };
3623
+
3624
+ export type GetUserGroupsIdUserGroupRelations200UserGroupRelationsItem = { [key: string]: unknown };
3625
+
3626
+ export type GetUserGroupsIdUserGroupRelations200 = {
3627
+ /** userGroupRelation objects */
3628
+ userGroupRelations?: GetUserGroupsIdUserGroupRelations200UserGroupRelationsItem[];
3629
+ };
3630
+
3631
+ export type GetUserGroupsIdPages200PagesItem = { [key: string]: unknown };
3632
+
3633
+ export type GetUserGroupsIdPages200 = {
3634
+ /** page objects */
3635
+ pages?: GetUserGroupsIdPages200PagesItem[];
3636
+ };
3637
+
3638
+ export type PutUserUiSettingsBodySettings = {
3639
+ currentSidebarContents?: string;
3640
+ currentProductNavWidth?: number;
3641
+ preferCollapsedModeByUser?: boolean;
3642
+ };
3643
+
3644
+ export type PutUserUiSettingsBody = {
3645
+ settings?: PutUserUiSettingsBodySettings;
3646
+ };
3647
+
3648
+ export type PutUserUiSettings200 = {
3649
+ _id?: string;
3650
+ user?: string;
3651
+ __v?: number;
3652
+ currentSidebarContents?: string;
3653
+ preferCollapsedModeByUser?: boolean;
3654
+ };
3655
+
3656
+ export type GetUsersParams = {
3657
+ /**
3658
+ * page number
3659
+ */
3660
+ page?: number;
3661
+ /**
3662
+ * status list
3663
+ */
3664
+ selectedStatusList?: string;
3665
+ /**
3666
+ * For incremental search value from input box
3667
+ */
3668
+ searchText?: string;
3669
+ /**
3670
+ * asc or desc
3671
+ */
3672
+ sortOrder?: string;
3673
+ /**
3674
+ * sorting column
3675
+ */
3676
+ sort?: string;
3677
+ /**
3678
+ * force include attributes
3679
+ */
3680
+ forceIncludeAttributes?: string;
3681
+ };
3682
+
3683
+ export type GetUsers200 = {
3684
+ paginateResult?: PaginateResult;
3685
+ };
3686
+
3687
+ export type GetIdRecent200 = {
3688
+ paginateResult?: PaginateResult;
3689
+ };
3690
+
3691
+ export type PostUsersInviteParams = {
3692
+ /**
3693
+ * Invitation emailList
3694
+ */
3695
+ shapedEmailList?: { [key: string]: unknown };
3696
+ /**
3697
+ * Whether to send mail
3698
+ */
3699
+ sendEmail?: boolean;
3700
+ };
3701
+
3702
+ /**
3703
+ * Users email that failed to create or send email
3704
+ */
3705
+ export type PostUsersInvite200FailedEmailList = {
3706
+ /** email address */
3707
+ email?: string;
3708
+ /** reason for failure */
3709
+ reason?: string;
3710
+ };
3711
+
3712
+ export type PostUsersInvite200 = {
3713
+ /** Users successfully created */
3714
+ createdUserList?: User;
3715
+ /** Users email that already exists */
3716
+ existingEmailList?: string[];
3717
+ /** Users email that failed to create or send email */
3718
+ failedEmailList?: PostUsersInvite200FailedEmailList;
3719
+ };
3720
+
3721
+ export type PutUsersIdGrantAdmin200 = {
3722
+ /** data of admin user */
3723
+ userData?: User;
3724
+ };
3725
+
3726
+ /**
3727
+ * data of revoked admin user
3728
+ */
3729
+ export type PutUsersIdRevokeAdmin200UserData = { [key: string]: unknown };
3730
+
3731
+ export type PutUsersIdRevokeAdmin200 = {
3732
+ /** data of revoked admin user */
3733
+ userData?: PutUsersIdRevokeAdmin200UserData;
3734
+ };
3735
+
3736
+ export type PutUsersIdGrantReadOnly200 = {
3737
+ /** data of grant read only */
3738
+ userData?: User;
3739
+ };
3740
+
3741
+ export type PutUsersIdRevokeReadOnly200 = {
3742
+ /** data of revoke read only */
3743
+ userData?: User;
3744
+ };
3745
+
3746
+ export type PutUsersIdActivate200 = {
3747
+ /** data of activate user */
3748
+ userData?: User;
3749
+ };
3750
+
3751
+ export type PutUsersIdDeactivate200 = {
3752
+ /** data of deactivate user */
3753
+ userData?: User;
3754
+ };
3755
+
3756
+ export type DeleteUsersIdRemove200 = {
3757
+ /** data of deleted user */
3758
+ user?: User;
3759
+ };
3760
+
3761
+ export type GetUsersExternalAccountsParams = {
3762
+ /**
3763
+ * page number
3764
+ */
3765
+ page?: number;
3766
+ };
3767
+
3768
+ export type GetUsersExternalAccounts200 = {
3769
+ paginateResult?: PaginateResult;
3770
+ };
3771
+
3772
+ /**
3773
+ * A result of `ExtenralAccount.findByIdAndRemove`
3774
+ */
3775
+ export type DeleteUsersExternalAccountsIdRemove200ExternalAccount = { [key: string]: unknown };
3776
+
3777
+ export type DeleteUsersExternalAccountsIdRemove200 = {
3778
+ /** A result of `ExtenralAccount.findByIdAndRemove` */
3779
+ externalAccount?: DeleteUsersExternalAccountsIdRemove200ExternalAccount;
3780
+ };
3781
+
3782
+ export type PutUsersUpdateImageUrlCacheBody = {
3783
+ /** user id list */
3784
+ userIds?: string[];
3785
+ };
3786
+
3787
+ /**
3788
+ * success creating imageUrlCached
3789
+ */
3790
+ export type PutUsersUpdateImageUrlCache200 = { [key: string]: unknown };
3791
+
3792
+ export type PutUsersResetPasswordBody = {
3793
+ /** user id for reset password */
3794
+ id?: string;
3795
+ };
3796
+
3797
+ export type PutUsersResetPassword200 = {
3798
+ /** new password */
3799
+ newPassword?: string;
3800
+ user?: User;
3801
+ };
3802
+
3803
+ export type PutUsersResetPasswordEmailBody = {
3804
+ /** user id for send new password email */
3805
+ id?: string;
3806
+ newPassword?: string;
3807
+ };
3808
+
3809
+ export type PutUsersSendInvitationEmailBody = {
3810
+ /** user id for send invitation email */
3811
+ id?: string;
3812
+ };
3813
+
3814
+ /**
3815
+ * email and reasons for email sending failure
3816
+ */
3817
+ export type PutUsersSendInvitationEmail200FailedToSendEmail = {
3818
+ email?: string;
3819
+ reason?: string;
3820
+ };
3821
+
3822
+ export type PutUsersSendInvitationEmail200 = {
3823
+ /** email and reasons for email sending failure */
3824
+ failedToSendEmail?: PutUsersSendInvitationEmail200FailedToSendEmail;
3825
+ };
3826
+
3827
+ export type GetUsersListParams = {
3828
+ userIds?: string;
3829
+ };
3830
+
3831
+ export type GetUsersList200 = {
3832
+ /** user list */
3833
+ users?: User[];
3834
+ };
3835
+
3836
+ export type GetUsersUsernamesParams = {
3837
+ q?: string;
3838
+ offset?: number;
3839
+ limit?: number;
3840
+ options?: string;
3841
+ };
3842
+
3843
+ export type GetUsersUsernames200ActiveUser = {
3844
+ usernames?: string[];
3845
+ totalCount?: number;
3846
+ };
3847
+
3848
+ export type GetUsersUsernames200InactiveUser = {
3849
+ usernames?: string[];
3850
+ totalCount?: number;
3851
+ };
3852
+
3853
+ export type GetUsersUsernames200ActivitySnapshotUser = {
3854
+ usernames?: string[];
3855
+ totalCount?: number;
3856
+ };
3857
+
3858
+ export type GetUsersUsernames200 = {
3859
+ activeUser?: GetUsersUsernames200ActiveUser;
3860
+ inactiveUser?: GetUsersUsernames200InactiveUser;
3861
+ activitySnapshotUser?: GetUsersUsernames200ActivitySnapshotUser;
3862
+ mixedUsernames?: string[];
3863
+ };
3864
+
3865
+ export type PostLoginBodyLoginForm = {
3866
+ username?: string;
3867
+ password?: string;
3868
+ };
3869
+
3870
+ export type PostLoginBody = {
3871
+ loginForm?: PostLoginBodyLoginForm;
3872
+ };
3873
+
3874
+ export type PostLogin200 = {
3875
+ redirectTo?: string;
3876
+ };
3877
+
3878
+ export type PostRegisterBodyRegisterForm = {
3879
+ name?: string;
3880
+ username?: string;
3881
+ email?: string;
3882
+ password?: string;
3883
+ };
3884
+
3885
+ export type PostRegisterBody = {
3886
+ registerForm?: PostRegisterBodyRegisterForm;
3887
+ };
3888
+
3889
+ export type PostRegister200 = {
3890
+ redirectTo?: string;
3891
+ };