diff --git a/.github/workflows/type.yml b/.github/workflows/type.yml index 5bba30162..3bc03a6bc 100644 --- a/.github/workflows/type.yml +++ b/.github/workflows/type.yml @@ -13,3 +13,8 @@ jobs: - uses: ./.github/actions/setup-node - name: Run API type definition tests run: yarn test-types + env: + API_KEY: ${{ secrets.TS_TEST_API_KEY }} + API_SECRET: ${{ secrets.TS_TEST_API_SECRET }} + MULTITENANCY_API_KEY: ${{ secrets.TS_TEST_MULTITENANCY_API_KEY }} + MULTITENANCY_API_SECRET: ${{ secrets.TS_TEST_MULTITENANCY_API_SECRET }} diff --git a/src/types.ts b/src/types.ts index 36ae2f233..73a14ed4d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -75,8 +75,10 @@ export type AppSettingsAPIResponse[]; connect_events?: boolean; @@ -98,6 +100,7 @@ export type AppSettingsAPIResponse; + reminders_interval: number; async_url_enrich_enabled?: boolean; auto_translation_enabled?: boolean; before_message_send_hook_url?: string; @@ -1542,8 +1545,10 @@ export type ChannelConfigAutomodThresholds = null | { }; export type ChannelConfigFields = { + reminders: boolean; automod?: ChannelConfigAutomod; automod_behavior?: ChannelConfigAutomodBehavior; + automod_thresholds?: ChannelConfigAutomodThresholds; blocklist_behavior?: ChannelConfigAutomodBehavior; connect_events?: boolean; custom_events?: boolean; @@ -1617,6 +1622,7 @@ export type CheckPushInput