@growi/sdk-typescript 1.8.0 → 1.10.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.
@@ -2,13 +2,47 @@
2
2
  * Generated by orval v7.9.0 🍺
3
3
  * Do not edit manually.
4
4
  * GROWI REST API v3
5
- * OpenAPI spec version: 7.3.3-RC.0
5
+ * OpenAPI spec version: 7.5.5-RC.0
6
6
  */
7
7
  export interface SyncStatus {
8
8
  isExecutingSync?: boolean;
9
9
  totalCount?: number;
10
10
  count?: number;
11
11
  }
12
+ /**
13
+ * The type of suggestion
14
+ */
15
+ export type PathSuggestionType = (typeof PathSuggestionType)[keyof typeof PathSuggestionType];
16
+ export declare const PathSuggestionType: {
17
+ readonly memo: "memo";
18
+ readonly search: "search";
19
+ readonly category: "category";
20
+ };
21
+ /**
22
+ * Whether the content is flow (time-based) or stock (reference)
23
+ */
24
+ export type PathSuggestionInformationType = (typeof PathSuggestionInformationType)[keyof typeof PathSuggestionInformationType];
25
+ export declare const PathSuggestionInformationType: {
26
+ readonly flow: "flow";
27
+ readonly stock: "stock";
28
+ };
29
+ export interface PathSuggestion {
30
+ /** The type of suggestion */
31
+ type: PathSuggestionType;
32
+ /** Suggested page path */
33
+ path: string;
34
+ /** Human-readable label for the suggestion */
35
+ label: string;
36
+ /** Explanation of why this path is suggested */
37
+ description: string;
38
+ /** Page grant (1=public, 4=owner_only, 5=user_group) */
39
+ grant: number;
40
+ /** Whether the content is flow (time-based) or stock (reference) */
41
+ informationType?: PathSuggestionInformationType;
42
+ }
43
+ export interface SuggestPathResponse {
44
+ suggestions?: PathSuggestion[];
45
+ }
12
46
  export type ActivityResponseSerializedPaginationResultDocsItemSnapshot = {
13
47
  username?: string;
14
48
  _id?: string;
@@ -508,8 +542,6 @@ export interface ThemesMetadata {
508
542
  export interface CustomizeSidebar {
509
543
  /** The flag whether sidebar is collapsed mode or not. */
510
544
  isSidebarCollapsedMode?: boolean;
511
- /** The flag whether sidebar is closed at dock mode or not. */
512
- isSidebarClosedAtDockMode?: boolean;
513
545
  }
514
546
  /**
515
547
  * Customize Presentation
@@ -1023,6 +1055,8 @@ export interface GeneralSetting {
1023
1055
  isAllGroupMembershipRequiredForPageCompleteDeletion?: boolean;
1024
1056
  /** type of pageDeletionAuthority */
1025
1057
  pageCompleteDeletionAuthority?: string;
1058
+ /** hide all user pages from general users */
1059
+ disableUserPages?: boolean;
1026
1060
  /** enable hide by owner */
1027
1061
  hideRestrictedByOwner?: boolean;
1028
1062
  /** enable hide by group */
@@ -1096,50 +1130,6 @@ export interface LdapAuthSetting {
1096
1130
  /** The property of user object to use in dn interpolation of Group Search Filter */
1097
1131
  ldapGroupDnProperty?: string;
1098
1132
  }
1099
- export interface SamlAuthSetting {
1100
- /** array of missing mandatory config keys */
1101
- missingMandatoryConfigKeys?: string[];
1102
- /** use only env vars for some options */
1103
- useOnlyEnvVarsForSomeOptions?: boolean;
1104
- /** entry point for saml */
1105
- samlEntryPoint?: string;
1106
- /** issuer for saml */
1107
- samlIssuer?: string;
1108
- /** issuer for saml */
1109
- samlEnvVarIssuer?: string;
1110
- /** certificate for saml */
1111
- samlCert?: string;
1112
- /** certificate for saml */
1113
- samlEnvVarCert?: string;
1114
- /** attribute mapping id for saml */
1115
- samlAttrMapId?: string;
1116
- /** attribute mapping user name for saml */
1117
- samlAttrMapUserName?: string;
1118
- /** attribute mapping mail for saml */
1119
- samlAttrMapMail?: string;
1120
- /** attribute mapping id for saml */
1121
- samlEnvVarAttrMapId?: string;
1122
- /** attribute mapping user name for saml */
1123
- samlEnvVarAttrMapUserName?: string;
1124
- /** attribute mapping mail for saml */
1125
- samlEnvVarAttrMapMail?: string;
1126
- /** attribute mapping first name for saml */
1127
- samlAttrMapFirstName?: string;
1128
- /** attribute mapping last name for saml */
1129
- samlAttrMapLastName?: string;
1130
- /** attribute mapping first name for saml */
1131
- samlEnvVarAttrMapFirstName?: string;
1132
- /** attribute mapping last name for saml */
1133
- samlEnvVarAttrMapLastName?: string;
1134
- /** local account automatically linked the user name matched */
1135
- isSameUsernameTreatedAsIdenticalUser?: boolean;
1136
- /** local account automatically linked the email matched */
1137
- isSameEmailTreatedAsIdenticalUser?: boolean;
1138
- /** ABLCRule for saml */
1139
- samlABLCRule?: string;
1140
- /** ABLCRule for saml */
1141
- samlEnvVarABLCRule?: string;
1142
- }
1143
1133
  export interface OidcAuthSetting {
1144
1134
  /** provider name for oidc */
1145
1135
  oidcProviderName?: string;
@@ -1194,6 +1184,50 @@ export interface GoogleOAuthSetting {
1194
1184
  /** local account automatically linked the email matched */
1195
1185
  isSameUsernameTreatedAsIdenticalUser?: boolean;
1196
1186
  }
1187
+ export interface SamlAuthSetting {
1188
+ /** array of missing mandatory config keys */
1189
+ missingMandatoryConfigKeys?: string[];
1190
+ /** use only env vars for some options */
1191
+ useOnlyEnvVarsForSomeOptions?: boolean;
1192
+ /** entry point for saml */
1193
+ samlEntryPoint?: string;
1194
+ /** issuer for saml */
1195
+ samlIssuer?: string;
1196
+ /** issuer for saml */
1197
+ samlEnvVarIssuer?: string;
1198
+ /** certificate for saml */
1199
+ samlCert?: string;
1200
+ /** certificate for saml */
1201
+ samlEnvVarCert?: string;
1202
+ /** attribute mapping id for saml */
1203
+ samlAttrMapId?: string;
1204
+ /** attribute mapping user name for saml */
1205
+ samlAttrMapUserName?: string;
1206
+ /** attribute mapping mail for saml */
1207
+ samlAttrMapMail?: string;
1208
+ /** attribute mapping id for saml */
1209
+ samlEnvVarAttrMapId?: string;
1210
+ /** attribute mapping user name for saml */
1211
+ samlEnvVarAttrMapUserName?: string;
1212
+ /** attribute mapping mail for saml */
1213
+ samlEnvVarAttrMapMail?: string;
1214
+ /** attribute mapping first name for saml */
1215
+ samlAttrMapFirstName?: string;
1216
+ /** attribute mapping last name for saml */
1217
+ samlAttrMapLastName?: string;
1218
+ /** attribute mapping first name for saml */
1219
+ samlEnvVarAttrMapFirstName?: string;
1220
+ /** attribute mapping last name for saml */
1221
+ samlEnvVarAttrMapLastName?: string;
1222
+ /** local account automatically linked the user name matched */
1223
+ isSameUsernameTreatedAsIdenticalUser?: boolean;
1224
+ /** local account automatically linked the email matched */
1225
+ isSameEmailTreatedAsIdenticalUser?: boolean;
1226
+ /** ABLCRule for saml */
1227
+ samlABLCRule?: string;
1228
+ /** ABLCRule for saml */
1229
+ samlEnvVarABLCRule?: string;
1230
+ }
1197
1231
  export type ShareLinkRelatedPage = {
1198
1232
  /** The unique identifier of the related page */
1199
1233
  _id?: string;
@@ -1322,10 +1356,55 @@ export interface ErrorV3 {
1322
1356
  * Object ID
1323
1357
  */
1324
1358
  export type ObjectId = string;
1359
+ /**
1360
+ * Page
1361
+ */
1362
+ export interface PageForTreeItem {
1363
+ _id?: ObjectId;
1364
+ path?: PagePath;
1365
+ parent?: PagePath;
1366
+ grant?: PageGrant;
1367
+ lastUpdateUser?: User;
1368
+ descendantCount?: number;
1369
+ isEmpty?: boolean;
1370
+ wip?: boolean;
1371
+ /** date created at */
1372
+ createdAt?: string;
1373
+ /** date updated at */
1374
+ updatedAt?: string;
1375
+ }
1325
1376
  /**
1326
1377
  * Page path
1327
1378
  */
1328
1379
  export type PagePath = string;
1380
+ /**
1381
+ * @nullable
1382
+ */
1383
+ export type GetPageResponsePage = (Page & unknown) | null;
1384
+ /**
1385
+ * Metadata about the page request
1386
+ * @nullable
1387
+ */
1388
+ export type GetPageResponseMeta = {
1389
+ [key: string]: unknown;
1390
+ } | null;
1391
+ /**
1392
+ * Response for GET /page endpoint
1393
+ */
1394
+ export interface GetPageResponse {
1395
+ /** @nullable */
1396
+ page?: GetPageResponsePage;
1397
+ /**
1398
+ * Array of pages when findAll parameter is used. Null otherwise.
1399
+ * @nullable
1400
+ */
1401
+ pages?: Page[] | null;
1402
+ /**
1403
+ * Metadata about the page request
1404
+ * @nullable
1405
+ */
1406
+ meta?: GetPageResponseMeta;
1407
+ }
1329
1408
  /**
1330
1409
  * Grant for page
1331
1410
  */
@@ -1400,7 +1479,7 @@ export type PageInfoForListing = PageInfoForEntity & PageInfoForListingAllOf;
1400
1479
  /**
1401
1480
  * Page information (union of all page info types)
1402
1481
  */
1403
- export type PageInfoAll = PageInfo | PageInfoForEntity | PageInfoForOperation | PageInfoForListing;
1482
+ export type PageInfoExt = PageInfo | PageInfoForEntity | PageInfoForOperation | PageInfoForListing;
1404
1483
  /**
1405
1484
  * extend data
1406
1485
  */
@@ -1776,6 +1855,13 @@ export type GetPresetTemplatesByLocaleByTemplateIdForTemplates200 = {
1776
1855
  export type GetPluginTemplatesByLocaleByTemplateIdByReposIdByOrganizationIdForTemplates200 = {
1777
1856
  markdown?: string;
1778
1857
  };
1858
+ export type PostSuggestPathForAiToolsBody = {
1859
+ /**
1860
+ * The page content to analyze for path suggestions
1861
+ * @maxLength 50000
1862
+ */
1863
+ body: string;
1864
+ };
1779
1865
  export type PostPluginsBodyPluginInstallerForm = {
1780
1866
  url?: string;
1781
1867
  ghBranch?: string;
@@ -1804,6 +1890,9 @@ export type GetActivityParams = {
1804
1890
  export type GetAdminHome200 = {
1805
1891
  adminHomeParams?: SystemInformationParams;
1806
1892
  };
1893
+ export type PutFileUploadSettingsForAppSettings200 = {
1894
+ responseParams?: FileUploadSettingParams;
1895
+ };
1807
1896
  export type GetAppSettings200 = {
1808
1897
  appSettingsParams?: AppSettingParams;
1809
1898
  };
@@ -1826,8 +1915,25 @@ export type PutSmtpSettingForAppSettings200 = {
1826
1915
  export type PostSmtpTestForAppSettings200 = {
1827
1916
  [key: string]: unknown;
1828
1917
  };
1829
- export type PutFileUploadSettingsForAppSettings200 = {
1830
- responseParams?: FileUploadSettingParams;
1918
+ export type PutOauth2SettingForAppSettingsBody = {
1919
+ /** e-mail address used as from address */
1920
+ fromAddress?: string;
1921
+ /** transmission method */
1922
+ transmissionMethod?: string;
1923
+ /** OAuth 2.0 Client ID */
1924
+ oauth2ClientId?: string;
1925
+ /** OAuth 2.0 Client Secret */
1926
+ oauth2ClientSecret?: string;
1927
+ /** OAuth 2.0 Refresh Token */
1928
+ oauth2RefreshToken?: string;
1929
+ /** Email address of the authorized account */
1930
+ oauth2User?: string;
1931
+ };
1932
+ export type PutOauth2SettingForAppSettings200MailSettingParams = {
1933
+ [key: string]: unknown;
1934
+ };
1935
+ export type PutOauth2SettingForAppSettings200 = {
1936
+ mailSettingParams?: PutOauth2SettingForAppSettings200MailSettingParams;
1831
1937
  };
1832
1938
  export type PostV5SchemaMigrationForAppSettings200 = {
1833
1939
  /** is V5 compatible, or not */
@@ -1949,6 +2055,24 @@ export type GetInfoForBookmarksParams = {
1949
2055
  export type PutBookmarks200 = {
1950
2056
  bookmark?: Bookmark;
1951
2057
  };
2058
+ export type PutContentDispositionSettings200CurrentDispositionSettings = {
2059
+ /** The list of MIME types set to inline. */
2060
+ inlineMimeTypes?: string[];
2061
+ /** The list of MIME types set to attachment. */
2062
+ attachmentMimeTypes?: string[];
2063
+ };
2064
+ export type PutContentDispositionSettings200 = {
2065
+ currentDispositionSettings?: PutContentDispositionSettings200CurrentDispositionSettings;
2066
+ };
2067
+ export type GetContentDispositionSettings200CurrentDispositionSettings = {
2068
+ /** The list of MIME types set to inline. */
2069
+ inlineMimeTypes?: string[];
2070
+ /** The list of MIME types set to attachment. */
2071
+ attachmentMimeTypes?: string[];
2072
+ };
2073
+ export type GetContentDispositionSettings200 = {
2074
+ currentDispositionSettings?: GetContentDispositionSettings200CurrentDispositionSettings;
2075
+ };
1952
2076
  export type GetCustomizeSetting200 = {
1953
2077
  /** customize params */
1954
2078
  customizeParams?: CustomizeSetting;
@@ -2155,22 +2279,8 @@ export type GetHealthcheck503 = {
2155
2279
  errors?: GetHealthcheck503ErrorsItem[];
2156
2280
  info?: HealthcheckInfo;
2157
2281
  };
2158
- /**
2159
- * import settings params
2160
- */
2161
- export type GetImport200ImportSettingsParams = {
2162
- /** the team name of esa.io */
2163
- esaTeamName?: string;
2164
- /** the access token of esa.io */
2165
- esaAccessToken?: string;
2166
- /** the team name of qiita.com */
2167
- qiitaTeamName?: string;
2168
- /** the access token of qiita.com */
2169
- qiitaAccessToken?: string;
2170
- };
2171
- export type GetImport200 = {
2172
- /** import settings params */
2173
- importSettingsParams?: GetImport200ImportSettingsParams;
2282
+ export type GetStatusForImport200 = {
2283
+ status?: ImportStatus;
2174
2284
  };
2175
2285
  /**
2176
2286
  * the array of importing option that have collection name as the key
@@ -2188,9 +2298,6 @@ export type PostImportBody = {
2188
2298
  */
2189
2299
  options?: PostImportBodyOptions;
2190
2300
  };
2191
- export type GetStatusForImport200 = {
2192
- status?: ImportStatus;
2193
- };
2194
2301
  export type PostUploadForImportBody = {
2195
2302
  file?: Blob;
2196
2303
  };
@@ -2299,39 +2406,14 @@ export type PutEnabledByIdForNotificationSettingGlobalNotification200 = {
2299
2406
  id?: string;
2300
2407
  };
2301
2408
  export type GetRootForPageListing200 = {
2302
- rootPage?: Page;
2303
- };
2304
- export type GetAncestorsChildrenForPageListingParams = {
2305
- path: string;
2306
- };
2307
- export type GetAncestorsChildrenForPageListing200AncestorsChildren = {
2308
- [key: string]: {
2309
- /** Document ID */
2310
- _id?: string;
2311
- /** Number of descendants */
2312
- descendantCount?: number;
2313
- /** Indicates if the node is empty */
2314
- isEmpty?: boolean;
2315
- /** Access level */
2316
- grant?: number;
2317
- /** Path string */
2318
- path?: string;
2319
- /**
2320
- * Revision ID (nullable)
2321
- * @nullable
2322
- */
2323
- revision?: string | null;
2324
- };
2325
- };
2326
- export type GetAncestorsChildrenForPageListing200 = {
2327
- ancestorsChildren?: GetAncestorsChildrenForPageListing200AncestorsChildren;
2409
+ rootPage?: PageForTreeItem;
2328
2410
  };
2329
2411
  export type GetChildrenForPageListingParams = {
2330
2412
  id?: string;
2331
2413
  path?: string;
2332
2414
  };
2333
2415
  export type GetChildrenForPageListing200 = {
2334
- children?: Page[];
2416
+ children?: PageForTreeItem[];
2335
2417
  };
2336
2418
  export type GetInfoForPageListingParams = {
2337
2419
  /**
@@ -2346,7 +2428,33 @@ export type GetInfoForPageListingParams = {
2346
2428
  attachShortBody?: boolean;
2347
2429
  };
2348
2430
  export type GetInfoForPageListing200 = {
2349
- [key: string]: PageInfoAll;
2431
+ [key: string]: PageInfoExt;
2432
+ };
2433
+ export type GetItemForPageListingParams = {
2434
+ id: string;
2435
+ };
2436
+ export type GetItemForPageListing200 = {
2437
+ item?: PageForTreeItem;
2438
+ };
2439
+ export type GetSharedForPageParams = {
2440
+ /**
2441
+ * share link ID
2442
+ */
2443
+ shareLinkId: ObjectId;
2444
+ /**
2445
+ * page ID
2446
+ */
2447
+ pageId: ObjectId;
2448
+ };
2449
+ export type GetInfoForPageParams = {
2450
+ /**
2451
+ * page id
2452
+ */
2453
+ pageId: ObjectId;
2454
+ /**
2455
+ * share link id for shared page access
2456
+ */
2457
+ shareLinkId?: ObjectId;
2350
2458
  };
2351
2459
  export type GetPageParams = {
2352
2460
  /**
@@ -2357,6 +2465,18 @@ export type GetPageParams = {
2357
2465
  * page path
2358
2466
  */
2359
2467
  path?: PagePath;
2468
+ /**
2469
+ * If set, returns all pages matching the path (returns pages array instead of single page)
2470
+ */
2471
+ findAll?: boolean;
2472
+ /**
2473
+ * Specific revision ID to retrieve
2474
+ */
2475
+ revisionId?: ObjectId;
2476
+ /**
2477
+ * Include empty pages in results when using findAll
2478
+ */
2479
+ includeEmpty?: boolean;
2360
2480
  };
2361
2481
  export type PostPageBodyGrantUserGroupIdsItem = {
2362
2482
  /** Group type */
@@ -2413,12 +2533,6 @@ export type GetExistForPageParams = {
2413
2533
  export type GetExistForPage200 = {
2414
2534
  isExist?: boolean;
2415
2535
  };
2416
- export type GetInfoForPageParams = {
2417
- /**
2418
- * page id
2419
- */
2420
- pageId: ObjectId;
2421
- };
2422
2536
  export type GetGrantDataForPageParams = {
2423
2537
  /**
2424
2538
  * page id
@@ -2524,8 +2638,6 @@ export type GetRecentForPagesParams = {
2524
2638
  export type PutRenameForPagesBody = {
2525
2639
  pageId: ObjectId;
2526
2640
  path?: PagePath;
2527
- /** revision ID */
2528
- revisionId: string;
2529
2641
  /** new path */
2530
2642
  newPagePath?: string;
2531
2643
  /** whether redirect page */