mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
feat(reports): add server-driven report flows (#3330)
This commit is contained in:
1 parent
bc17922b02
commit
ece622e800
471 files changed
+56262
-35932
No files matched your search
@@ -221,6 +221,8 @@ const CHANNEL_THREADS_UNTIL_GA = {
|
||||
]),
|
||||
};
|
||||
|
||||
const LEGACY_REPORT_ROUTES = new Set(['POST /reports/message', 'POST /reports/user', 'POST /reports/guild']);
|
||||
|
||||
interface ExemptionRule {
|
||||
readonly name: string;
|
||||
readonly justification: string;
|
||||
@@ -276,6 +278,13 @@ const EXEMPTION_RULES: ReadonlyArray<ExemptionRule> = [
|
||||
anchors: [{file: 'fluxer_api/src/api/app/ControllerRegistry.ts', anchor: 'InternalRpcController(routes);'}],
|
||||
covers: (shape) => OUT_OF_BAND_CREDENTIAL.has(shape),
|
||||
},
|
||||
{
|
||||
name: 'legacy report routes',
|
||||
justification:
|
||||
'still served for clients released before report flows, which new callers must use instead. The generator drops them at OpenAPIGeneratorCatalog excluded.paths',
|
||||
anchors: [{file: 'packages/openapi/src/generator/OpenAPIGeneratorCatalog.ts', anchor: "'/reports/message'"}],
|
||||
covers: (shape) => LEGACY_REPORT_ROUTES.has(shape),
|
||||
},
|
||||
{
|
||||
name: 'channel_threads',
|
||||
justification:
|
||||
|
||||
@@ -273,7 +273,7 @@ const ACCEPTED_TABLE_FINDINGS = new Map<string, Readonly<Partial<Record<TableRul
|
||||
['admin-api/index.mdx', {'table-identifier': 3}],
|
||||
['admin-api/instance.mdx', {'table-identifier': 8}],
|
||||
['admin-api/messages.mdx', {'table-identifier': 1}],
|
||||
['admin-api/reports.mdx', {'table-fit': 1, 'table-identifier': 2}],
|
||||
['admin-api/reports.mdx', {'table-fit': 1, 'table-identifier': 3}],
|
||||
['admin-api/users.mdx', {'table-identifier': 3}],
|
||||
['admin-api/voice.mdx', {'table-identifier': 3}],
|
||||
['gateway/event-filtering.md', {'table-cell': 2}],
|
||||
@@ -303,7 +303,7 @@ const ACCEPTED_TABLE_FINDINGS = new Map<string, Readonly<Partial<Record<TableRul
|
||||
['http-api/messages.mdx', {'table-fit': 1, 'table-cell': 20, 'table-identifier': 1}],
|
||||
['http-api/permissions.mdx', {'table-cell': 8}],
|
||||
['http-api/premium.mdx', {'table-identifier': 5}],
|
||||
['http-api/reports.mdx', {'table-cell': 5, 'table-identifier': 1}],
|
||||
['http-api/reports.mdx', {'table-identifier': 1}],
|
||||
['http-api/search.mdx', {'table-fit': 1, 'table-cell': 2, 'table-identifier': 1}],
|
||||
['http-api/streams.mdx', {'table-cell': 5}],
|
||||
['http-api/unfurl.mdx', {'table-cell': 2, 'table-parallel': 1}],
|
||||
|
||||
Reference in new issue
Block a user