From 2e067a38eb3171005abc9bb2189f67b4d8866979 Mon Sep 17 00:00:00 2001 From: Kinplemelon Date: Thu, 19 Dec 2024 17:06:43 +0800 Subject: [PATCH] test(schemas): update schemas --- src/types/schemas/actions.schemas.ts | 1027 +++++++++++--------- src/types/schemas/configs.schemas.ts | 3 +- src/types/schemas/connectors.schemas.ts | 544 +++++++---- src/types/schemas/opentelemetry.schemas.ts | 25 + 4 files changed, 930 insertions(+), 669 deletions(-) create mode 100644 src/types/schemas/opentelemetry.schemas.ts diff --git a/src/types/schemas/actions.schemas.ts b/src/types/schemas/actions.schemas.ts index 411cbbc96..29d949c00 100644 --- a/src/types/schemas/actions.schemas.ts +++ b/src/types/schemas/actions.schemas.ts @@ -162,6 +162,7 @@ export type PutActionsId200 = | BridgeInfluxdbGetBridgeV2 | BridgeClickhouseGetBridgeV2 | BridgeCassaGetBridgeV2 + | BridgeTablestoreGetBridgeV2 | BridgeHstreamdbGetBridgeV2 | ActionSnowflakeGetBridgeV2 | BridgeOracleGetBridgeV2 @@ -198,6 +199,7 @@ export type PutActionsIdBody = | BridgeInfluxdbPutBridgeV2 | BridgeClickhousePutBridgeV2 | BridgeCassaPutBridgeV2 + | BridgeTablestorePutBridgeV2 | BridgeHstreamdbPutBridgeV2 | ActionSnowflakePutBridgeV2 | BridgeOraclePutBridgeV2 @@ -246,6 +248,7 @@ export type GetActionsId200 = | BridgeInfluxdbGetBridgeV2 | BridgeClickhouseGetBridgeV2 | BridgeCassaGetBridgeV2 + | BridgeTablestoreGetBridgeV2 | BridgeHstreamdbGetBridgeV2 | ActionSnowflakeGetBridgeV2 | BridgeOracleGetBridgeV2 @@ -304,6 +307,7 @@ export const GetActionTypes200Item = { snowflake: 'snowflake', sqlserver: 'sqlserver', syskeeper_forwarder: 'syskeeper_forwarder', + tablestore: 'tablestore', tdengine: 'tdengine', timescale: 'timescale', } as const @@ -335,6 +339,7 @@ export type PostActionsProbeBody = | BridgeInfluxdbPostBridgeV2 | BridgeClickhousePostBridgeV2 | BridgeCassaPostBridgeV2 + | BridgeTablestorePostBridgeV2 | BridgeHstreamdbPostBridgeV2 | ActionSnowflakePostBridgeV2 | BridgeOraclePostBridgeV2 @@ -383,6 +388,7 @@ export type PostActions201 = | BridgeInfluxdbGetBridgeV2 | BridgeClickhouseGetBridgeV2 | BridgeCassaGetBridgeV2 + | BridgeTablestoreGetBridgeV2 | BridgeHstreamdbGetBridgeV2 | ActionSnowflakeGetBridgeV2 | BridgeOracleGetBridgeV2 @@ -419,6 +425,7 @@ export type PostActionsBody = | BridgeInfluxdbPostBridgeV2 | BridgeClickhousePostBridgeV2 | BridgeCassaPostBridgeV2 + | BridgeTablestorePostBridgeV2 | BridgeHstreamdbPostBridgeV2 | ActionSnowflakePostBridgeV2 | BridgeOraclePostBridgeV2 @@ -455,6 +462,7 @@ export type GetActions200Item = | BridgeInfluxdbGetBridgeV2 | BridgeClickhouseGetBridgeV2 | BridgeCassaGetBridgeV2 + | BridgeTablestoreGetBridgeV2 | BridgeHstreamdbGetBridgeV2 | ActionSnowflakeGetBridgeV2 | BridgeOracleGetBridgeV2 @@ -746,6 +754,16 @@ export interface RocketmqActionParameters { send_buffer?: string } +export interface RedisPutBridgeV2 { + local_topic?: string + parameters: BridgeRedisActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: RedisActionResourceOpts +} + export type RedisPostBridgeV2Type = typeof RedisPostBridgeV2Type[keyof typeof RedisPostBridgeV2Type] // eslint-disable-next-line @typescript-eslint/no-redeclare @@ -820,16 +838,6 @@ export interface RedisActionResourceOpts { max_buffer_bytes?: string } -export interface RedisPutBridgeV2 { - local_topic?: string - parameters: BridgeRedisActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: RedisActionResourceOpts -} - export interface PulsarProducerPulsarMessage { key?: string value?: string @@ -882,6 +890,21 @@ export interface PulsarActionResourceOpts { request_ttl?: PulsarActionResourceOptsRequestTtl } +export interface PulsarGetBridgeV2 { + type: PulsarGetBridgeV2Type + name: string + status?: PulsarGetBridgeV2Status + status_reason?: string + node_status?: BridgeNodeStatus[] + local_topic?: string + parameters: PulsarActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: PulsarActionResourceOpts +} + export type PulsarActionParametersStrategy = typeof PulsarActionParametersStrategy[keyof typeof PulsarActionParametersStrategy] @@ -939,31 +962,6 @@ export interface PulsarPostBridgeV2 { resource_opts?: PulsarActionResourceOpts } -export interface PulsarGetBridgeV2 { - type: PulsarGetBridgeV2Type - name: string - status?: PulsarGetBridgeV2Status - status_reason?: string - node_status?: BridgeNodeStatus[] - local_topic?: string - parameters: PulsarActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: PulsarActionResourceOpts -} - -export interface GcpPubsubProducerPutBridgeV2 { - local_topic?: string - parameters: GcpPubsubProducerActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: ActionsAndSourcesActionResourceOpts -} - export type GcpPubsubProducerPostBridgeV2Type = typeof GcpPubsubProducerPostBridgeV2Type[keyof typeof GcpPubsubProducerPostBridgeV2Type] @@ -1010,6 +1008,16 @@ export interface GcpPubsubProducerActionParameters { pubsub_topic: string } +export interface GcpPubsubProducerPutBridgeV2 { + local_topic?: string + parameters: GcpPubsubProducerActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + export interface GcpPubsubProducerGetBridgeV2 { status?: GcpPubsubProducerGetBridgeV2Status status_reason?: string @@ -1038,6 +1046,16 @@ export interface ConnectorAggregatorContainerCsv { column_order?: string[] } +export interface ConfluentPutBridgeV2 { + enable?: boolean + connector: string + tags?: string[] + description?: string + local_topic?: string + parameters: ConfluentProducerKafkaOpts + resource_opts?: BridgeKafkaResourceOpts +} + export type ConfluentProducerKafkaOptsQueryMode = typeof ConfluentProducerKafkaOptsQueryMode[keyof typeof ConfluentProducerKafkaOptsQueryMode] @@ -1107,16 +1125,6 @@ export interface ConfluentProducerKafkaOpts { sync_query_timeout?: string } -export interface ConfluentPutBridgeV2 { - enable?: boolean - connector: string - tags?: string[] - description?: string - local_topic?: string - parameters: ConfluentProducerKafkaOpts - resource_opts?: BridgeKafkaResourceOpts -} - export type ConfluentPostBridgeV2Type = typeof ConfluentPostBridgeV2Type[keyof typeof ConfluentPostBridgeV2Type] @@ -1256,6 +1264,16 @@ export interface BridgeTimescaleGetBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } +export interface BridgeTdenginePutBridgeV2 { + local_topic?: string + parameters: BridgeTdengineActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + export type BridgeTdenginePostBridgeV2Type = typeof BridgeTdenginePostBridgeV2Type[keyof typeof BridgeTdenginePostBridgeV2Type] @@ -1289,7 +1307,9 @@ export interface BridgeTdengineActionParameters { undefined_vars_as_null?: boolean } -export interface BridgeTdenginePutBridgeV2 { +export interface BridgeTdenginePostBridgeV2 { + type: BridgeTdenginePostBridgeV2Type + name: string local_topic?: string parameters: BridgeTdengineActionParameters enable?: boolean @@ -1299,8 +1319,11 @@ export interface BridgeTdenginePutBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } -export interface BridgeTdenginePostBridgeV2 { - type: BridgeTdenginePostBridgeV2Type +export interface BridgeTdengineGetBridgeV2 { + status?: BridgeTdengineGetBridgeV2Status + status_reason?: string + node_status?: BridgeNodeStatus[] + type: BridgeTdengineGetBridgeV2Type name: string local_topic?: string parameters: BridgeTdengineActionParameters @@ -1311,14 +1334,76 @@ export interface BridgeTdenginePostBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } -export interface BridgeTdengineGetBridgeV2 { - status?: BridgeTdengineGetBridgeV2Status +export type BridgeTablestoreTablestoreFieldsIsbinary = string | boolean + +export type BridgeTablestoreTablestoreFieldsIsint = string | boolean + +export type BridgeTablestoreTablestoreFieldsValue = string | number | boolean + +export interface BridgeTablestoreTablestoreFields { + column: string + value: BridgeTablestoreTablestoreFieldsValue + isint?: BridgeTablestoreTablestoreFieldsIsint + isbinary?: BridgeTablestoreTablestoreFieldsIsbinary +} + +export interface BridgeTablestorePutBridgeV2 { + local_topic?: string + parameters: BridgeTablestoreActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + +export type BridgeTablestorePostBridgeV2Type = + typeof BridgeTablestorePostBridgeV2Type[keyof typeof BridgeTablestorePostBridgeV2Type] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeTablestorePostBridgeV2Type = { + tablestore: 'tablestore', +} as const + +export interface BridgeTablestorePostBridgeV2 { + type: BridgeTablestorePostBridgeV2Type + name: string + local_topic?: string + parameters: BridgeTablestoreActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + +export type BridgeTablestoreGetBridgeV2Status = + typeof BridgeTablestoreGetBridgeV2Status[keyof typeof BridgeTablestoreGetBridgeV2Status] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeTablestoreGetBridgeV2Status = { + connected: 'connected', + disconnected: 'disconnected', + connecting: 'connecting', + inconsistent: 'inconsistent', +} as const + +export type BridgeTablestoreGetBridgeV2Type = + typeof BridgeTablestoreGetBridgeV2Type[keyof typeof BridgeTablestoreGetBridgeV2Type] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeTablestoreGetBridgeV2Type = { + tablestore: 'tablestore', +} as const + +export interface BridgeTablestoreGetBridgeV2 { + type: BridgeTablestoreGetBridgeV2Type + name: string + status?: BridgeTablestoreGetBridgeV2Status status_reason?: string node_status?: BridgeNodeStatus[] - type: BridgeTdengineGetBridgeV2Type - name: string local_topic?: string - parameters: BridgeTdengineActionParameters + parameters: BridgeTablestoreActionParameters enable?: boolean connector: string tags?: string[] @@ -1326,6 +1411,38 @@ export interface BridgeTdengineGetBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } +export type BridgeTablestoreActionParametersMetaUpdateModel = + typeof BridgeTablestoreActionParametersMetaUpdateModel[keyof typeof BridgeTablestoreActionParametersMetaUpdateModel] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeTablestoreActionParametersMetaUpdateModel = { + MUM_IGNORE: 'MUM_IGNORE', + MUM_NORMAL: 'MUM_NORMAL', +} as const + +export type BridgeTablestoreActionParametersTimestamp = string | number + +export type BridgeTablestoreActionParametersTags = { [key: string]: any } + +export type BridgeTablestoreActionParametersStorageModelType = + typeof BridgeTablestoreActionParametersStorageModelType[keyof typeof BridgeTablestoreActionParametersStorageModelType] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeTablestoreActionParametersStorageModelType = { + timeseries: 'timeseries', +} as const + +export interface BridgeTablestoreActionParameters { + storage_model_type?: BridgeTablestoreActionParametersStorageModelType + table_name: string + measurement: string + tags?: BridgeTablestoreActionParametersTags + fields?: BridgeTablestoreTablestoreFields[] + data_source?: string + timestamp?: BridgeTablestoreActionParametersTimestamp + meta_update_model?: BridgeTablestoreActionParametersMetaUpdateModel +} + export interface BridgeSqlserverPutBridgeV2 { local_topic?: string parameters: BridgeSqlserverActionParameters @@ -1477,6 +1594,18 @@ export const BridgeS3S3AggregatedUploadParametersMode = { aggregated: 'aggregated', } as const +export interface BridgeS3S3AggregatedUploadParameters { + mode: BridgeS3S3AggregatedUploadParametersMode + container: BridgeS3S3AggregatedContainerCsv + aggregation: BridgeS3S3Aggregation + bucket: string + key: string + acl?: BridgeS3S3AggregatedUploadParametersAcl + headers?: BridgeS3S3AggregatedUploadParametersHeaders + min_part_size?: string + max_part_size?: string +} + export type BridgeS3S3AggregatedContainerCsvType = typeof BridgeS3S3AggregatedContainerCsvType[keyof typeof BridgeS3S3AggregatedContainerCsvType] @@ -1490,18 +1619,6 @@ export interface BridgeS3S3AggregatedContainerCsv { column_order?: string[] } -export interface BridgeS3S3AggregatedUploadParameters { - mode: BridgeS3S3AggregatedUploadParametersMode - container: BridgeS3S3AggregatedContainerCsv - aggregation: BridgeS3S3Aggregation - bucket: string - key: string - acl?: BridgeS3S3AggregatedUploadParametersAcl - headers?: BridgeS3S3AggregatedUploadParametersHeaders - min_part_size?: string - max_part_size?: string -} - export type BridgeS3PutBridgeV2Parameters = | BridgeS3S3DirectUploadParameters | BridgeS3S3AggregatedUploadParameters @@ -1609,6 +1726,21 @@ export const BridgeRabbitmqGetBridgeV2Type = { rabbitmq: 'rabbitmq', } as const +export interface BridgeRabbitmqGetBridgeV2 { + type: BridgeRabbitmqGetBridgeV2Type + name: string + status?: BridgeRabbitmqGetBridgeV2Status + status_reason?: string + node_status?: BridgeNodeStatus[] + local_topic?: string + parameters: BridgeRabbitmqActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: BridgeRabbitmqActionResourceOpts +} + export type BridgeRabbitmqActionResourceOptsRequestTtl = 'infinity' | string export type BridgeRabbitmqActionResourceOptsQueryMode = @@ -1671,21 +1803,6 @@ export interface BridgeRabbitmqPostBridgeV2 { resource_opts?: BridgeRabbitmqActionResourceOpts } -export interface BridgeRabbitmqGetBridgeV2 { - type: BridgeRabbitmqGetBridgeV2Type - name: string - status?: BridgeRabbitmqGetBridgeV2Status - status_reason?: string - node_status?: BridgeNodeStatus[] - local_topic?: string - parameters: BridgeRabbitmqActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: BridgeRabbitmqActionResourceOpts -} - export type BridgePulsarProducerBufferMode = typeof BridgePulsarProducerBufferMode[keyof typeof BridgePulsarProducerBufferMode] @@ -1747,16 +1864,6 @@ export interface BridgePgsqlGetBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } -export interface BridgeOraclePutBridgeV2 { - local_topic?: string - parameters: BridgeOracleActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: ActionsAndSourcesActionResourceOpts -} - export type BridgeOraclePostBridgeV2Type = typeof BridgeOraclePostBridgeV2Type[keyof typeof BridgeOraclePostBridgeV2Type] @@ -1765,18 +1872,6 @@ export const BridgeOraclePostBridgeV2Type = { oracle: 'oracle', } as const -export interface BridgeOraclePostBridgeV2 { - type: BridgeOraclePostBridgeV2Type - name: string - local_topic?: string - parameters: BridgeOracleActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: ActionsAndSourcesActionResourceOpts -} - export type BridgeOracleGetBridgeV2Status = typeof BridgeOracleGetBridgeV2Status[keyof typeof BridgeOracleGetBridgeV2Status] @@ -1800,12 +1895,7 @@ export interface BridgeOracleActionParameters { sql?: string } -export interface BridgeOracleGetBridgeV2 { - type: BridgeOracleGetBridgeV2Type - name: string - status?: BridgeOracleGetBridgeV2Status - status_reason?: string - node_status?: BridgeNodeStatus[] +export interface BridgeOraclePutBridgeV2 { local_topic?: string parameters: BridgeOracleActionParameters enable?: boolean @@ -1815,9 +1905,36 @@ export interface BridgeOracleGetBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } -export interface BridgeOpentsPutBridgeV2 { +export interface BridgeOraclePostBridgeV2 { + type: BridgeOraclePostBridgeV2Type + name: string local_topic?: string - parameters: BridgeOpentsActionParameters + parameters: BridgeOracleActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + +export interface BridgeOracleGetBridgeV2 { + type: BridgeOracleGetBridgeV2Type + name: string + status?: BridgeOracleGetBridgeV2Status + status_reason?: string + node_status?: BridgeNodeStatus[] + local_topic?: string + parameters: BridgeOracleActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + +export interface BridgeOpentsPutBridgeV2 { + local_topic?: string + parameters: BridgeOpentsActionParameters enable?: boolean connector: string tags?: string[] @@ -1833,6 +1950,18 @@ export const BridgeOpentsPostBridgeV2Type = { opents: 'opents', } as const +export interface BridgeOpentsPostBridgeV2 { + type: BridgeOpentsPostBridgeV2Type + name: string + local_topic?: string + parameters: BridgeOpentsActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + export type BridgeOpentsGetBridgeV2Type = typeof BridgeOpentsGetBridgeV2Type[keyof typeof BridgeOpentsGetBridgeV2Type] @@ -1852,37 +1981,6 @@ export const BridgeOpentsGetBridgeV2Status = { inconsistent: 'inconsistent', } as const -export type BridgeOpentsActionParametersDataValue = string | number | number - -export type BridgeOpentsActionParametersDataTagsOneOf = { [key: string]: any } - -export type BridgeOpentsActionParametersDataTags = - | string - | BridgeOpentsActionParametersDataTagsOneOf - -export interface BridgeOpentsActionParametersData { - timestamp?: string - metric: string - tags: BridgeOpentsActionParametersDataTags - value: BridgeOpentsActionParametersDataValue -} - -export interface BridgeOpentsActionParameters { - data?: BridgeOpentsActionParametersData[] -} - -export interface BridgeOpentsPostBridgeV2 { - type: BridgeOpentsPostBridgeV2Type - name: string - local_topic?: string - parameters: BridgeOpentsActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: ActionsAndSourcesActionResourceOpts -} - export interface BridgeOpentsGetBridgeV2 { status?: BridgeOpentsGetBridgeV2Status status_reason?: string @@ -1898,14 +1996,23 @@ export interface BridgeOpentsGetBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } -export interface BridgeMysqlPutBridgeV2 { - local_topic?: string - parameters: BridgeMysqlActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: ActionsAndSourcesActionResourceOpts +export type BridgeOpentsActionParametersDataValue = string | number | number + +export type BridgeOpentsActionParametersDataTags = + | string + | BridgeOpentsActionParametersDataTagsOneOf + +export interface BridgeOpentsActionParametersData { + timestamp?: string + metric: string + tags: BridgeOpentsActionParametersDataTags + value: BridgeOpentsActionParametersDataValue +} + +export type BridgeOpentsActionParametersDataTagsOneOf = { [key: string]: any } + +export interface BridgeOpentsActionParameters { + data?: BridgeOpentsActionParametersData[] } export type BridgeMysqlPostBridgeV2Type = @@ -1916,18 +2023,6 @@ export const BridgeMysqlPostBridgeV2Type = { mysql: 'mysql', } as const -export interface BridgeMysqlPostBridgeV2 { - type: BridgeMysqlPostBridgeV2Type - name: string - local_topic?: string - parameters: BridgeMysqlActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: ActionsAndSourcesActionResourceOpts -} - export type BridgeMysqlGetBridgeV2Status = typeof BridgeMysqlGetBridgeV2Status[keyof typeof BridgeMysqlGetBridgeV2Status] @@ -1952,6 +2047,28 @@ export interface BridgeMysqlActionParameters { undefined_vars_as_null?: boolean } +export interface BridgeMysqlPutBridgeV2 { + local_topic?: string + parameters: BridgeMysqlActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + +export interface BridgeMysqlPostBridgeV2 { + type: BridgeMysqlPostBridgeV2Type + name: string + local_topic?: string + parameters: BridgeMysqlActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + export interface BridgeMysqlGetBridgeV2 { type: BridgeMysqlGetBridgeV2Type name: string @@ -1967,6 +2084,16 @@ export interface BridgeMysqlGetBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } +export interface BridgeMqttPublisherPutBridgeV2 { + local_topic?: string + parameters: BridgeMqttPublisherActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: BridgeMqttPublisherActionResourceOpts +} + export type BridgeMqttPublisherPostBridgeV2Type = typeof BridgeMqttPublisherPostBridgeV2Type[keyof typeof BridgeMqttPublisherPostBridgeV2Type] @@ -1975,6 +2102,18 @@ export const BridgeMqttPublisherPostBridgeV2Type = { mqtt: 'mqtt', } as const +export interface BridgeMqttPublisherPostBridgeV2 { + type: BridgeMqttPublisherPostBridgeV2Type + name: string + local_topic?: string + parameters: BridgeMqttPublisherActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: BridgeMqttPublisherActionResourceOpts +} + export type BridgeMqttPublisherGetBridgeV2Status = typeof BridgeMqttPublisherGetBridgeV2Status[keyof typeof BridgeMqttPublisherGetBridgeV2Status] @@ -2040,28 +2179,6 @@ export interface BridgeMqttPublisherActionParameters { payload?: string } -export interface BridgeMqttPublisherPutBridgeV2 { - local_topic?: string - parameters: BridgeMqttPublisherActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: BridgeMqttPublisherActionResourceOpts -} - -export interface BridgeMqttPublisherPostBridgeV2 { - type: BridgeMqttPublisherPostBridgeV2Type - name: string - local_topic?: string - parameters: BridgeMqttPublisherActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: BridgeMqttPublisherActionResourceOpts -} - export interface BridgeMongodbPutBridgeV2 { local_topic?: string parameters: BridgeMongodbActionParameters @@ -2080,18 +2197,6 @@ export const BridgeMongodbPostBridgeV2Type = { mongodb: 'mongodb', } as const -export interface BridgeMongodbPostBridgeV2 { - type: BridgeMongodbPostBridgeV2Type - name: string - local_topic?: string - parameters: BridgeMongodbActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: BridgeMongodbActionResourceOpts -} - export type BridgeMongodbGetBridgeV2Status = typeof BridgeMongodbGetBridgeV2Status[keyof typeof BridgeMongodbGetBridgeV2Status] @@ -2111,6 +2216,21 @@ export const BridgeMongodbGetBridgeV2Type = { mongodb: 'mongodb', } as const +export interface BridgeMongodbGetBridgeV2 { + type: BridgeMongodbGetBridgeV2Type + name: string + status?: BridgeMongodbGetBridgeV2Status + status_reason?: string + node_status?: BridgeNodeStatus[] + local_topic?: string + parameters: BridgeMongodbActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: BridgeMongodbActionResourceOpts +} + export type BridgeMongodbActionResourceOptsRequestTtl = 'infinity' | string export type BridgeMongodbActionResourceOptsQueryMode = @@ -2136,12 +2256,9 @@ export interface BridgeMongodbActionParameters { payload_template?: string } -export interface BridgeMongodbGetBridgeV2 { - type: BridgeMongodbGetBridgeV2Type +export interface BridgeMongodbPostBridgeV2 { + type: BridgeMongodbPostBridgeV2Type name: string - status?: BridgeMongodbGetBridgeV2Status - status_reason?: string - node_status?: BridgeNodeStatus[] local_topic?: string parameters: BridgeMongodbActionParameters enable?: boolean @@ -2191,6 +2308,16 @@ export interface BridgeMatrixGetBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } +export interface BridgeKinesisPutBridgeV2 { + local_topic?: string + parameters: BridgeKinesisActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: BridgeKinesisActionResourceOpts +} + export type BridgeKinesisPostBridgeV2Type = typeof BridgeKinesisPostBridgeV2Type[keyof typeof BridgeKinesisPostBridgeV2Type] @@ -2199,6 +2326,18 @@ export const BridgeKinesisPostBridgeV2Type = { kinesis: 'kinesis', } as const +export interface BridgeKinesisPostBridgeV2 { + type: BridgeKinesisPostBridgeV2Type + name: string + local_topic?: string + parameters: BridgeKinesisActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: BridgeKinesisActionResourceOpts +} + export type BridgeKinesisGetBridgeV2Status = typeof BridgeKinesisGetBridgeV2Status[keyof typeof BridgeKinesisGetBridgeV2Status] @@ -2218,6 +2357,21 @@ export const BridgeKinesisGetBridgeV2Type = { kinesis: 'kinesis', } as const +export interface BridgeKinesisGetBridgeV2 { + type: BridgeKinesisGetBridgeV2Type + name: string + status?: BridgeKinesisGetBridgeV2Status + status_reason?: string + node_status?: BridgeNodeStatus[] + local_topic?: string + parameters: BridgeKinesisActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: BridgeKinesisActionResourceOpts +} + export type BridgeKinesisActionResourceOptsRequestTtl = 'infinity' | string export type BridgeKinesisActionResourceOptsQueryMode = @@ -2246,43 +2400,6 @@ export interface BridgeKinesisActionParameters { partition_key: string } -export interface BridgeKinesisPutBridgeV2 { - local_topic?: string - parameters: BridgeKinesisActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: BridgeKinesisActionResourceOpts -} - -export interface BridgeKinesisPostBridgeV2 { - type: BridgeKinesisPostBridgeV2Type - name: string - local_topic?: string - parameters: BridgeKinesisActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: BridgeKinesisActionResourceOpts -} - -export interface BridgeKinesisGetBridgeV2 { - type: BridgeKinesisGetBridgeV2Type - name: string - status?: BridgeKinesisGetBridgeV2Status - status_reason?: string - node_status?: BridgeNodeStatus[] - local_topic?: string - parameters: BridgeKinesisActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: BridgeKinesisActionResourceOpts -} - export interface BridgeKafkaResourceOpts { health_check_interval?: string } @@ -2351,23 +2468,6 @@ export interface BridgeKafkaProducerKafkaExtHeaders { kafka_ext_header_value: string } -export type BridgeKafkaProducerBufferMode = - typeof BridgeKafkaProducerBufferMode[keyof typeof BridgeKafkaProducerBufferMode] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const BridgeKafkaProducerBufferMode = { - memory: 'memory', - disk: 'disk', - hybrid: 'hybrid', -} as const - -export interface BridgeKafkaProducerBuffer { - mode?: BridgeKafkaProducerBufferMode - per_partition_limit?: string - segment_bytes?: string - memory_overload_protection?: boolean -} - export interface BridgeKafkaProducerKafkaOpts { topic: string message?: BridgeKafkaKafkaMessage @@ -2388,6 +2488,23 @@ export interface BridgeKafkaProducerKafkaOpts { sync_query_timeout?: string } +export type BridgeKafkaProducerBufferMode = + typeof BridgeKafkaProducerBufferMode[keyof typeof BridgeKafkaProducerBufferMode] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeKafkaProducerBufferMode = { + memory: 'memory', + disk: 'disk', + hybrid: 'hybrid', +} as const + +export interface BridgeKafkaProducerBuffer { + mode?: BridgeKafkaProducerBufferMode + per_partition_limit?: string + segment_bytes?: string + memory_overload_protection?: boolean +} + export type BridgeKafkaPostBridgeV2Type = typeof BridgeKafkaPostBridgeV2Type[keyof typeof BridgeKafkaPostBridgeV2Type] @@ -2466,18 +2583,6 @@ export const BridgeIotdbPostBridgeV2Type = { iotdb: 'iotdb', } as const -export interface BridgeIotdbPostBridgeV2 { - type: BridgeIotdbPostBridgeV2Type - name: string - local_topic?: string - parameters: BridgeIotdbActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: BridgeIotdbActionResourceOpts -} - export type BridgeIotdbGetBridgeV2Type = typeof BridgeIotdbGetBridgeV2Type[keyof typeof BridgeIotdbGetBridgeV2Type] @@ -2535,13 +2640,17 @@ export interface BridgeIotdbActionResourceOpts { } export type BridgeIotdbActionParametersDataDataType = - | string - | 'text' - | 'boolean' - | 'int32' - | 'int64' - | 'float' - | 'double' + typeof BridgeIotdbActionParametersDataDataType[keyof typeof BridgeIotdbActionParametersDataDataType] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeIotdbActionParametersDataDataType = { + text: 'text', + boolean: 'boolean', + int32: 'int32', + int64: 'int64', + float: 'float', + double: 'double', +} as const export type BridgeIotdbActionParametersDataTimestamp = | string @@ -2564,6 +2673,18 @@ export interface BridgeIotdbActionParameters { max_retries?: number } +export interface BridgeIotdbPostBridgeV2 { + type: BridgeIotdbPostBridgeV2Type + name: string + local_topic?: string + parameters: BridgeIotdbActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: BridgeIotdbActionResourceOpts +} + export interface BridgeInfluxdbPutBridgeV2 { local_topic?: string parameters: BridgeInfluxdbActionParameters @@ -2613,6 +2734,22 @@ export const BridgeInfluxdbGetBridgeV2Type = { influxdb: 'influxdb', } as const +export type BridgeInfluxdbActionParametersPrecision = + typeof BridgeInfluxdbActionParametersPrecision[keyof typeof BridgeInfluxdbActionParametersPrecision] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeInfluxdbActionParametersPrecision = { + ns: 'ns', + us: 'us', + ms: 'ms', + s: 's', +} as const + +export interface BridgeInfluxdbActionParameters { + write_syntax: string + precision?: BridgeInfluxdbActionParametersPrecision +} + export interface BridgeInfluxdbGetBridgeV2 { type: BridgeInfluxdbGetBridgeV2Type name: string @@ -2628,20 +2765,13 @@ export interface BridgeInfluxdbGetBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } -export type BridgeInfluxdbActionParametersPrecision = - typeof BridgeInfluxdbActionParametersPrecision[keyof typeof BridgeInfluxdbActionParametersPrecision] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const BridgeInfluxdbActionParametersPrecision = { - ns: 'ns', - us: 'us', - ms: 'ms', - s: 's', -} as const - -export interface BridgeInfluxdbActionParameters { - write_syntax: string - precision?: BridgeInfluxdbActionParametersPrecision +export interface BridgeHttpPutBridgeV2 { + enable?: boolean + connector: string + tags?: string[] + description?: string + parameters: BridgeHttpParametersOpts + resource_opts?: BridgeHttpActionResourceOpts } export type BridgeHttpPostBridgeV2Type = @@ -2652,6 +2782,17 @@ export const BridgeHttpPostBridgeV2Type = { http: 'http', } as const +export interface BridgeHttpPostBridgeV2 { + type: BridgeHttpPostBridgeV2Type + name: string + enable?: boolean + connector: string + tags?: string[] + description?: string + parameters: BridgeHttpParametersOpts + resource_opts?: BridgeHttpActionResourceOpts +} + export type BridgeHttpParametersOptsHeaders = { [key: string]: any } export type BridgeHttpParametersOptsMethod = @@ -2675,26 +2816,6 @@ export interface BridgeHttpParametersOpts { request_timeout?: string } -export interface BridgeHttpPutBridgeV2 { - enable?: boolean - connector: string - tags?: string[] - description?: string - parameters: BridgeHttpParametersOpts - resource_opts?: BridgeHttpActionResourceOpts -} - -export interface BridgeHttpPostBridgeV2 { - type: BridgeHttpPostBridgeV2Type - name: string - enable?: boolean - connector: string - tags?: string[] - description?: string - parameters: BridgeHttpParametersOpts - resource_opts?: BridgeHttpActionResourceOpts -} - export type BridgeHttpGetBridgeV2Type = typeof BridgeHttpGetBridgeV2Type[keyof typeof BridgeHttpGetBridgeV2Type] @@ -2714,20 +2835,6 @@ export const BridgeHttpGetBridgeV2Status = { inconsistent: 'inconsistent', } as const -export interface BridgeHttpGetBridgeV2 { - status?: BridgeHttpGetBridgeV2Status - status_reason?: string - node_status?: BridgeNodeStatus[] - type: BridgeHttpGetBridgeV2Type - name: string - enable?: boolean - connector: string - tags?: string[] - description?: string - parameters: BridgeHttpParametersOpts - resource_opts?: BridgeHttpActionResourceOpts -} - export type BridgeHttpActionResourceOptsRequestTtl = 'infinity' | string export type BridgeHttpActionResourceOptsQueryMode = @@ -2748,6 +2855,30 @@ export interface BridgeHttpActionResourceOpts { max_buffer_bytes?: string } +export interface BridgeHttpGetBridgeV2 { + status?: BridgeHttpGetBridgeV2Status + status_reason?: string + node_status?: BridgeNodeStatus[] + type: BridgeHttpGetBridgeV2Type + name: string + enable?: boolean + connector: string + tags?: string[] + description?: string + parameters: BridgeHttpParametersOpts + resource_opts?: BridgeHttpActionResourceOpts +} + +export interface BridgeHstreamdbPutBridgeV2 { + local_topic?: string + parameters: BridgeHstreamdbActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + export type BridgeHstreamdbPostBridgeV2Type = typeof BridgeHstreamdbPostBridgeV2Type[keyof typeof BridgeHstreamdbPostBridgeV2Type] @@ -2756,6 +2887,18 @@ export const BridgeHstreamdbPostBridgeV2Type = { hstreamdb: 'hstreamdb', } as const +export interface BridgeHstreamdbPostBridgeV2 { + type: BridgeHstreamdbPostBridgeV2Type + name: string + local_topic?: string + parameters: BridgeHstreamdbActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + export type BridgeHstreamdbGetBridgeV2Status = typeof BridgeHstreamdbGetBridgeV2Status[keyof typeof BridgeHstreamdbGetBridgeV2Status] @@ -2787,28 +2930,6 @@ export interface BridgeHstreamdbActionParameters { batch_interval?: string } -export interface BridgeHstreamdbPutBridgeV2 { - local_topic?: string - parameters: BridgeHstreamdbActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: ActionsAndSourcesActionResourceOpts -} - -export interface BridgeHstreamdbPostBridgeV2 { - type: BridgeHstreamdbPostBridgeV2Type - name: string - local_topic?: string - parameters: BridgeHstreamdbActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: ActionsAndSourcesActionResourceOpts -} - export interface BridgeHstreamdbGetBridgeV2 { type: BridgeHstreamdbGetBridgeV2Type name: string @@ -2909,10 +3030,14 @@ export interface BridgeGcpPubsubKeyValuePair { value: string } -export type BridgeElasticsearchPutBridgeV2Parameters = - | BridgeElasticsearchActionUpdate - | BridgeElasticsearchActionDelete - | BridgeElasticsearchActionCreate +export interface BridgeElasticsearchPutBridgeV2 { + parameters: BridgeElasticsearchPutBridgeV2Parameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: BridgeElasticsearchActionResourceOpts +} export type BridgeElasticsearchPostBridgeV2Type = typeof BridgeElasticsearchPostBridgeV2Type[keyof typeof BridgeElasticsearchPostBridgeV2Type] @@ -2933,11 +3058,6 @@ export interface BridgeElasticsearchPostBridgeV2 { resource_opts?: BridgeElasticsearchActionResourceOpts } -export type BridgeElasticsearchGetBridgeV2Parameters = - | BridgeElasticsearchActionUpdate - | BridgeElasticsearchActionDelete - | BridgeElasticsearchActionCreate - export type BridgeElasticsearchGetBridgeV2Type = typeof BridgeElasticsearchGetBridgeV2Type[keyof typeof BridgeElasticsearchGetBridgeV2Type] @@ -2957,20 +3077,6 @@ export const BridgeElasticsearchGetBridgeV2Status = { inconsistent: 'inconsistent', } as const -export interface BridgeElasticsearchGetBridgeV2 { - status?: BridgeElasticsearchGetBridgeV2Status - status_reason?: string - node_status?: BridgeNodeStatus[] - type: BridgeElasticsearchGetBridgeV2Type - name: string - parameters: BridgeElasticsearchGetBridgeV2Parameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: BridgeElasticsearchActionResourceOpts -} - export type BridgeElasticsearchActionUpdateAction = typeof BridgeElasticsearchActionUpdateAction[keyof typeof BridgeElasticsearchActionUpdateAction] @@ -2990,11 +3096,6 @@ export interface BridgeElasticsearchActionUpdate { max_retries?: number } -export type BridgeElasticsearchPostBridgeV2Parameters = - | BridgeElasticsearchActionUpdate - | BridgeElasticsearchActionDelete - | BridgeElasticsearchActionCreate - export type BridgeElasticsearchActionResourceOptsRequestTtl = 'infinity' | string export type BridgeElasticsearchActionResourceOptsQueryMode = @@ -3015,15 +3116,6 @@ export interface BridgeElasticsearchActionResourceOpts { max_buffer_bytes?: string } -export interface BridgeElasticsearchPutBridgeV2 { - parameters: BridgeElasticsearchPutBridgeV2Parameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: BridgeElasticsearchActionResourceOpts -} - export type BridgeElasticsearchActionDeleteAction = typeof BridgeElasticsearchActionDeleteAction[keyof typeof BridgeElasticsearchActionDeleteAction] @@ -3059,26 +3151,43 @@ export interface BridgeElasticsearchActionCreate { max_retries?: number } -export type BridgeDynamoPostBridgeV2Type = - typeof BridgeDynamoPostBridgeV2Type[keyof typeof BridgeDynamoPostBridgeV2Type] +export type BridgeElasticsearchPutBridgeV2Parameters = + | BridgeElasticsearchActionUpdate + | BridgeElasticsearchActionDelete + | BridgeElasticsearchActionCreate -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const BridgeDynamoPostBridgeV2Type = { - dynamo: 'dynamo', -} as const +export type BridgeElasticsearchPostBridgeV2Parameters = + | BridgeElasticsearchActionUpdate + | BridgeElasticsearchActionDelete + | BridgeElasticsearchActionCreate -export interface BridgeDynamoPostBridgeV2 { - type: BridgeDynamoPostBridgeV2Type +export type BridgeElasticsearchGetBridgeV2Parameters = + | BridgeElasticsearchActionUpdate + | BridgeElasticsearchActionDelete + | BridgeElasticsearchActionCreate + +export interface BridgeElasticsearchGetBridgeV2 { + status?: BridgeElasticsearchGetBridgeV2Status + status_reason?: string + node_status?: BridgeNodeStatus[] + type: BridgeElasticsearchGetBridgeV2Type name: string - local_topic?: string - parameters: BridgeDynamoActionParameters + parameters: BridgeElasticsearchGetBridgeV2Parameters enable?: boolean connector: string tags?: string[] description?: string - resource_opts?: ActionsAndSourcesActionResourceOpts + resource_opts?: BridgeElasticsearchActionResourceOpts } +export type BridgeDynamoPostBridgeV2Type = + typeof BridgeDynamoPostBridgeV2Type[keyof typeof BridgeDynamoPostBridgeV2Type] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeDynamoPostBridgeV2Type = { + dynamo: 'dynamo', +} as const + export type BridgeDynamoGetBridgeV2Status = typeof BridgeDynamoGetBridgeV2Status[keyof typeof BridgeDynamoGetBridgeV2Status] @@ -3116,6 +3225,18 @@ export interface BridgeDynamoPutBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } +export interface BridgeDynamoPostBridgeV2 { + type: BridgeDynamoPostBridgeV2Type + name: string + local_topic?: string + parameters: BridgeDynamoActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + export interface BridgeDynamoGetBridgeV2 { type: BridgeDynamoGetBridgeV2Type name: string @@ -3131,17 +3252,7 @@ export interface BridgeDynamoGetBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } -export type BridgeDatalayersPostBridgeV2Type = - typeof BridgeDatalayersPostBridgeV2Type[keyof typeof BridgeDatalayersPostBridgeV2Type] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const BridgeDatalayersPostBridgeV2Type = { - datalayers: 'datalayers', -} as const - -export interface BridgeDatalayersPostBridgeV2 { - type: BridgeDatalayersPostBridgeV2Type - name: string +export interface BridgeDatalayersPutBridgeV2 { local_topic?: string parameters: BridgeDatalayersActionParameters enable?: boolean @@ -3151,6 +3262,14 @@ export interface BridgeDatalayersPostBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } +export type BridgeDatalayersPostBridgeV2Type = + typeof BridgeDatalayersPostBridgeV2Type[keyof typeof BridgeDatalayersPostBridgeV2Type] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeDatalayersPostBridgeV2Type = { + datalayers: 'datalayers', +} as const + export type BridgeDatalayersGetBridgeV2Status = typeof BridgeDatalayersGetBridgeV2Status[keyof typeof BridgeDatalayersGetBridgeV2Status] @@ -3201,7 +3320,9 @@ export interface BridgeDatalayersActionParameters { precision?: BridgeDatalayersActionParametersPrecision } -export interface BridgeDatalayersPutBridgeV2 { +export interface BridgeDatalayersPostBridgeV2 { + type: BridgeDatalayersPostBridgeV2Type + name: string local_topic?: string parameters: BridgeDatalayersActionParameters enable?: boolean @@ -3211,17 +3332,7 @@ export interface BridgeDatalayersPutBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } -export type BridgeClickhousePostBridgeV2Type = - typeof BridgeClickhousePostBridgeV2Type[keyof typeof BridgeClickhousePostBridgeV2Type] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const BridgeClickhousePostBridgeV2Type = { - clickhouse: 'clickhouse', -} as const - -export interface BridgeClickhousePostBridgeV2 { - type: BridgeClickhousePostBridgeV2Type - name: string +export interface BridgeClickhousePutBridgeV2 { local_topic?: string parameters: BridgeClickhouseActionParameters enable?: boolean @@ -3231,6 +3342,14 @@ export interface BridgeClickhousePostBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } +export type BridgeClickhousePostBridgeV2Type = + typeof BridgeClickhousePostBridgeV2Type[keyof typeof BridgeClickhousePostBridgeV2Type] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeClickhousePostBridgeV2Type = { + clickhouse: 'clickhouse', +} as const + export type BridgeClickhouseGetBridgeV2Status = typeof BridgeClickhouseGetBridgeV2Status[keyof typeof BridgeClickhouseGetBridgeV2Status] @@ -3256,7 +3375,9 @@ export interface BridgeClickhouseActionParameters { batch_value_separator?: string } -export interface BridgeClickhousePutBridgeV2 { +export interface BridgeClickhousePostBridgeV2 { + type: BridgeClickhousePostBridgeV2Type + name: string local_topic?: string parameters: BridgeClickhouseActionParameters enable?: boolean @@ -3281,16 +3402,6 @@ export interface BridgeClickhouseGetBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } -export interface BridgeCassaPutBridgeV2 { - local_topic?: string - parameters: BridgeCassaActionParameters - enable?: boolean - connector: string - tags?: string[] - description?: string - resource_opts?: ActionsAndSourcesActionResourceOpts -} - export type BridgeCassaPostBridgeV2Type = typeof BridgeCassaPostBridgeV2Type[keyof typeof BridgeCassaPostBridgeV2Type] @@ -3334,6 +3445,16 @@ export interface BridgeCassaActionParameters { cql?: string } +export interface BridgeCassaPutBridgeV2 { + local_topic?: string + parameters: BridgeCassaActionParameters + enable?: boolean + connector: string + tags?: string[] + description?: string + resource_opts?: ActionsAndSourcesActionResourceOpts +} + export interface BridgeCassaGetBridgeV2 { type: BridgeCassaGetBridgeV2Type name: string @@ -3349,6 +3470,34 @@ export interface BridgeCassaGetBridgeV2 { resource_opts?: ActionsAndSourcesActionResourceOpts } +export type BridgeAzureEventHubProducerKafkaOptsQueryMode = + typeof BridgeAzureEventHubProducerKafkaOptsQueryMode[keyof typeof BridgeAzureEventHubProducerKafkaOptsQueryMode] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeAzureEventHubProducerKafkaOptsQueryMode = { + async: 'async', + sync: 'sync', +} as const + +export interface BridgeAzureEventHubProducerKafkaOpts { + topic: string + message?: BridgeAzureEventHubKafkaMessage + max_linger_time?: string + max_linger_bytes?: string + max_batch_bytes?: string + partition_strategy?: BridgeAzureEventHubProducerKafkaOptsPartitionStrategy + required_acks?: BridgeAzureEventHubProducerKafkaOptsRequiredAcks + kafka_headers?: string + kafka_ext_headers?: BridgeKafkaProducerKafkaExtHeaders[] + kafka_header_value_encode_mode?: BridgeAzureEventHubProducerKafkaOptsKafkaHeaderValueEncodeMode + partition_count_refresh_interval?: string + partitions_limit?: BridgeAzureEventHubProducerKafkaOptsPartitionsLimit + max_inflight?: number + buffer?: BridgeKafkaProducerBuffer + query_mode?: BridgeAzureEventHubProducerKafkaOptsQueryMode + sync_query_timeout?: string +} + export interface BridgeAzureEventHubPutBridgeV2 { enable?: boolean connector: string @@ -3359,15 +3508,6 @@ export interface BridgeAzureEventHubPutBridgeV2 { resource_opts?: BridgeKafkaResourceOpts } -export type BridgeAzureEventHubProducerKafkaOptsQueryMode = - typeof BridgeAzureEventHubProducerKafkaOptsQueryMode[keyof typeof BridgeAzureEventHubProducerKafkaOptsQueryMode] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const BridgeAzureEventHubProducerKafkaOptsQueryMode = { - async: 'async', - sync: 'sync', -} as const - export type BridgeAzureEventHubProducerKafkaOptsPartitionsLimit = number | 'all_partitions' export type BridgeAzureEventHubProducerKafkaOptsKafkaHeaderValueEncodeMode = @@ -3397,25 +3537,6 @@ export const BridgeAzureEventHubProducerKafkaOptsPartitionStrategy = { key_dispatch: 'key_dispatch', } as const -export interface BridgeAzureEventHubProducerKafkaOpts { - topic: string - message?: BridgeAzureEventHubKafkaMessage - max_linger_time?: string - max_linger_bytes?: string - max_batch_bytes?: string - partition_strategy?: BridgeAzureEventHubProducerKafkaOptsPartitionStrategy - required_acks?: BridgeAzureEventHubProducerKafkaOptsRequiredAcks - kafka_headers?: string - kafka_ext_headers?: BridgeKafkaProducerKafkaExtHeaders[] - kafka_header_value_encode_mode?: BridgeAzureEventHubProducerKafkaOptsKafkaHeaderValueEncodeMode - partition_count_refresh_interval?: string - partitions_limit?: BridgeAzureEventHubProducerKafkaOptsPartitionsLimit - max_inflight?: number - buffer?: BridgeKafkaProducerBuffer - query_mode?: BridgeAzureEventHubProducerKafkaOptsQueryMode - sync_query_timeout?: string -} - export type BridgeAzureEventHubPostBridgeV2Type = typeof BridgeAzureEventHubPostBridgeV2Type[keyof typeof BridgeAzureEventHubPostBridgeV2Type] diff --git a/src/types/schemas/configs.schemas.ts b/src/types/schemas/configs.schemas.ts index 67e6617dc..66969b37d 100644 --- a/src/types/schemas/configs.schemas.ts +++ b/src/types/schemas/configs.schemas.ts @@ -132,6 +132,7 @@ export const GetConfigsKey = { message_transformation: 'message_transformation', mqtt: 'mqtt', node: 'node', + opentelemetry: 'opentelemetry', overload_protection: 'overload_protection', prometheus: 'prometheus', psk_authentication: 'psk_authentication', @@ -1225,8 +1226,8 @@ export interface DashboardSaml { export interface DashboardSso { ldap?: SsoLdap - oidc?: SsoOidc saml?: DashboardSaml + oidc?: SsoOidc } export interface DashboardHttps { diff --git a/src/types/schemas/connectors.schemas.ts b/src/types/schemas/connectors.schemas.ts index 64ea003ca..cb6da55c6 100644 --- a/src/types/schemas/connectors.schemas.ts +++ b/src/types/schemas/connectors.schemas.ts @@ -28,6 +28,7 @@ export type PostConnectors201 = | BridgeClickhouseGetConnector | GcpPubsubConsumerGetConnector | BridgeCassaGetConnector + | BridgeTablestoreGetConnector | BridgeHstreamdbGetConnector | ConnectorSnowflakeGetConnector | BridgeOracleGetConnector @@ -69,6 +70,7 @@ export type PostConnectorsBody = | BridgeClickhousePostConnector | GcpPubsubConsumerPostConnector | BridgeCassaPostConnector + | BridgeTablestorePostConnector | BridgeHstreamdbPostConnector | ConnectorSnowflakePostConnector | BridgeOraclePostConnector @@ -110,6 +112,7 @@ export type GetConnectors200Item = | BridgeClickhouseGetConnector | GcpPubsubConsumerGetConnector | BridgeCassaGetConnector + | BridgeTablestoreGetConnector | BridgeHstreamdbGetConnector | ConnectorSnowflakeGetConnector | BridgeOracleGetConnector @@ -346,6 +349,7 @@ export type PutConnectorsId200 = | BridgeClickhouseGetConnector | GcpPubsubConsumerGetConnector | BridgeCassaGetConnector + | BridgeTablestoreGetConnector | BridgeHstreamdbGetConnector | ConnectorSnowflakeGetConnector | BridgeOracleGetConnector @@ -387,6 +391,7 @@ export type PutConnectorsIdBody = | BridgeClickhousePutConnector | GcpPubsubConsumerPutConnector | BridgeCassaPutConnector + | BridgeTablestorePutConnector | BridgeHstreamdbPutConnector | ConnectorSnowflakePutConnector | BridgeOraclePutConnector @@ -441,6 +446,7 @@ export type GetConnectorsId200 = | BridgeClickhouseGetConnector | GcpPubsubConsumerGetConnector | BridgeCassaGetConnector + | BridgeTablestoreGetConnector | BridgeHstreamdbGetConnector | ConnectorSnowflakeGetConnector | BridgeOracleGetConnector @@ -495,6 +501,7 @@ export type PostConnectorsProbeBody = | BridgeClickhousePostConnector | GcpPubsubConsumerPostConnector | BridgeCassaPostConnector + | BridgeTablestorePostConnector | BridgeHstreamdbPostConnector | ConnectorSnowflakePostConnector | BridgeOraclePostConnector @@ -634,6 +641,19 @@ export const SyskeeperForwarderPostType = { syskeeper_forwarder: 'syskeeper_forwarder', } as const +export interface SyskeeperForwarderPost { + type: SyskeeperForwarderPostType + name: string + enable?: boolean + tags?: string[] + description?: string + server: string + ack_mode?: SyskeeperForwarderPostAckMode + ack_timeout?: string + pool_size?: number + resource_opts?: SyskeeperForwarderConnectorResourceOpts +} + export type SyskeeperForwarderGetAckMode = typeof SyskeeperForwarderGetAckMode[keyof typeof SyskeeperForwarderGetAckMode] @@ -668,19 +688,6 @@ export interface SyskeeperForwarderConnectorResourceOpts { start_timeout?: string } -export interface SyskeeperForwarderPost { - type: SyskeeperForwarderPostType - name: string - enable?: boolean - tags?: string[] - description?: string - server: string - ack_mode?: SyskeeperForwarderPostAckMode - ack_timeout?: string - pool_size?: number - resource_opts?: SyskeeperForwarderConnectorResourceOpts -} - export interface SyskeeperForwarderGet { type: SyskeeperForwarderGetType name: string @@ -879,6 +886,17 @@ export const RedisPostConnectorType = { redis: 'redis', } as const +export interface RedisPostConnector { + type: RedisPostConnectorType + name: string + enable?: boolean + tags?: string[] + description?: string + parameters: RedisPostConnectorParameters + resource_opts?: RedisConnectorResourceOpts + ssl?: EmqxSslClientOpts +} + export type RedisGetConnectorParameters = | RedisRedisClusterConnector | RedisRedisSentinelConnector @@ -908,17 +926,6 @@ export interface RedisConnectorResourceOpts { start_timeout?: string } -export interface RedisPostConnector { - type: RedisPostConnectorType - name: string - enable?: boolean - tags?: string[] - description?: string - parameters: RedisPostConnectorParameters - resource_opts?: RedisConnectorResourceOpts - ssl?: EmqxSslClientOpts -} - export interface RedisGetConnector { status?: RedisGetConnectorStatus status_reason?: string @@ -956,22 +963,6 @@ export const RabbitmqPostType = { rabbitmq: 'rabbitmq', } as const -export type RabbitmqGetStatus = typeof RabbitmqGetStatus[keyof typeof RabbitmqGetStatus] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const RabbitmqGetStatus = { - connected: 'connected', - disconnected: 'disconnected', - connecting: 'connecting', - inconsistent: 'inconsistent', -} as const - -export interface RabbitmqConnectorResourceOpts { - health_check_interval?: string - start_after_created?: boolean - start_timeout?: string -} - export interface RabbitmqPost { type: RabbitmqPostType name: string @@ -990,6 +981,22 @@ export interface RabbitmqPost { resource_opts?: RabbitmqConnectorResourceOpts } +export type RabbitmqGetStatus = typeof RabbitmqGetStatus[keyof typeof RabbitmqGetStatus] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const RabbitmqGetStatus = { + connected: 'connected', + disconnected: 'disconnected', + connecting: 'connecting', + inconsistent: 'inconsistent', +} as const + +export interface RabbitmqConnectorResourceOpts { + health_check_interval?: string + start_after_created?: boolean + start_timeout?: string +} + export interface RabbitmqGet { status?: RabbitmqGetStatus status_reason?: string @@ -1011,17 +1018,6 @@ export interface RabbitmqGet { export type PulsarPutAuthentication = BridgePulsarAuthToken | BridgePulsarAuthBasic | 'none' -export interface PulsarPut { - enable?: boolean - tags?: string[] - description?: string - servers: string - authentication?: PulsarPutAuthentication - connect_timeout?: string - ssl?: EmqxSslClientOpts - resource_opts?: PulsarConnectorResourceOpts -} - export type PulsarPostAuthentication = BridgePulsarAuthToken | BridgePulsarAuthBasic | 'none' export type PulsarPostType = typeof PulsarPostType[keyof typeof PulsarPostType] @@ -1031,19 +1027,6 @@ export const PulsarPostType = { pulsar: 'pulsar', } as const -export interface PulsarPost { - type: PulsarPostType - name: string - enable?: boolean - tags?: string[] - description?: string - servers: string - authentication?: PulsarPostAuthentication - connect_timeout?: string - ssl?: EmqxSslClientOpts - resource_opts?: PulsarConnectorResourceOpts -} - export type PulsarGetAuthentication = BridgePulsarAuthToken | BridgePulsarAuthBasic | 'none' export type PulsarGetStatus = typeof PulsarGetStatus[keyof typeof PulsarGetStatus] @@ -1062,6 +1045,30 @@ export interface PulsarConnectorResourceOpts { start_timeout?: string } +export interface PulsarPut { + enable?: boolean + tags?: string[] + description?: string + servers: string + authentication?: PulsarPutAuthentication + connect_timeout?: string + ssl?: EmqxSslClientOpts + resource_opts?: PulsarConnectorResourceOpts +} + +export interface PulsarPost { + type: PulsarPostType + name: string + enable?: boolean + tags?: string[] + description?: string + servers: string + authentication?: PulsarPostAuthentication + connect_timeout?: string + ssl?: EmqxSslClientOpts + resource_opts?: PulsarConnectorResourceOpts +} + export interface PulsarGet { status?: PulsarGetStatus status_reason?: string @@ -1076,6 +1083,17 @@ export interface PulsarGet { resource_opts?: PulsarConnectorResourceOpts } +export interface OpentsConnectorPut { + enable?: boolean + tags?: string[] + description?: string + server: string + pool_size?: number + summary?: boolean + details?: boolean + resource_opts?: OpentsConnectorConnectorResourceOpts +} + export type OpentsConnectorPostType = typeof OpentsConnectorPostType[keyof typeof OpentsConnectorPostType] @@ -1084,6 +1102,19 @@ export const OpentsConnectorPostType = { opents: 'opents', } as const +export interface OpentsConnectorPost { + type: OpentsConnectorPostType + name: string + enable?: boolean + tags?: string[] + description?: string + server: string + pool_size?: number + summary?: boolean + details?: boolean + resource_opts?: OpentsConnectorConnectorResourceOpts +} + export type OpentsConnectorGetType = typeof OpentsConnectorGetType[keyof typeof OpentsConnectorGetType] @@ -1109,30 +1140,6 @@ export interface OpentsConnectorConnectorResourceOpts { start_timeout?: string } -export interface OpentsConnectorPut { - enable?: boolean - tags?: string[] - description?: string - server: string - pool_size?: number - summary?: boolean - details?: boolean - resource_opts?: OpentsConnectorConnectorResourceOpts -} - -export interface OpentsConnectorPost { - type: OpentsConnectorPostType - name: string - enable?: boolean - tags?: string[] - description?: string - server: string - pool_size?: number - summary?: boolean - details?: boolean - resource_opts?: OpentsConnectorConnectorResourceOpts -} - export interface OpentsConnectorGet { status?: OpentsConnectorGetStatus status_reason?: string @@ -1608,6 +1615,17 @@ export const IotdbGetRestapiStatus = { inconsistent: 'inconsistent', } as const +export interface IotdbConnectorResourceOpts { + health_check_interval?: string + start_after_created?: boolean + start_timeout?: string +} + +export interface IotdbAuthentication { + username: string + password: string +} + export interface IotdbGetRestapi { status?: IotdbGetRestapiStatus status_reason?: string @@ -1629,15 +1647,18 @@ export interface IotdbGetRestapi { authentication?: IotdbAuthentication } -export interface IotdbConnectorResourceOpts { - health_check_interval?: string - start_after_created?: boolean - start_timeout?: string -} - -export interface IotdbAuthentication { - username: string - password: string +export interface GcpPubsubProducerPutConnector { + enable?: boolean + tags?: string[] + description?: string + connect_timeout?: string + pool_size?: number + pipelining?: number + max_retries?: number + /** @deprecated */ + request_timeout?: string + service_account_json: string + resource_opts?: GcpPubsubProducerConnectorResourceOpts } export type GcpPubsubProducerPostConnectorType = @@ -1673,20 +1694,6 @@ export interface GcpPubsubProducerConnectorResourceOpts { start_timeout?: string } -export interface GcpPubsubProducerPutConnector { - enable?: boolean - tags?: string[] - description?: string - connect_timeout?: string - pool_size?: number - pipelining?: number - max_retries?: number - /** @deprecated */ - request_timeout?: string - service_account_json: string - resource_opts?: GcpPubsubProducerConnectorResourceOpts -} - export interface GcpPubsubProducerPostConnector { type: GcpPubsubProducerPostConnectorType name: string @@ -1875,6 +1882,20 @@ export const ElasticsearchPutPoolType = { hash: 'hash', } as const +export interface ElasticsearchPut { + enable?: boolean + tags?: string[] + description?: string + connect_timeout?: string + pool_type?: ElasticsearchPutPoolType + pool_size?: number + enable_pipelining?: number + ssl?: EmqxSslClientOpts + resource_opts?: BridgeHttpConnectorResourceOpts + server: string + authentication?: ElasticsearchAuthBasic +} + export type ElasticsearchPostPoolType = typeof ElasticsearchPostPoolType[keyof typeof ElasticsearchPostPoolType] @@ -1939,20 +1960,6 @@ export interface ElasticsearchAuthBasic { password: string } -export interface ElasticsearchPut { - enable?: boolean - tags?: string[] - description?: string - connect_timeout?: string - pool_type?: ElasticsearchPutPoolType - pool_size?: number - enable_pipelining?: number - ssl?: EmqxSslClientOpts - resource_opts?: BridgeHttpConnectorResourceOpts - server: string - authentication?: ElasticsearchAuthBasic -} - export interface ElasticsearchGet { status?: ElasticsearchGetStatus status_reason?: string @@ -1995,6 +2002,16 @@ export interface ConnectorNodeStatus { status_reason?: string } +export interface ConnectorSyskeeperProxyPut { + enable?: boolean + tags?: string[] + description?: string + listen: string + acceptors?: number + handshake_timeout?: string + resource_opts?: ConnectorSyskeeperProxyConnectorResourceOpts +} + export type ConnectorSyskeeperProxyPostType = typeof ConnectorSyskeeperProxyPostType[keyof typeof ConnectorSyskeeperProxyPostType] @@ -2040,16 +2057,6 @@ export interface ConnectorSyskeeperProxyConnectorResourceOpts { start_timeout?: string } -export interface ConnectorSyskeeperProxyPut { - enable?: boolean - tags?: string[] - description?: string - listen: string - acceptors?: number - handshake_timeout?: string - resource_opts?: ConnectorSyskeeperProxyConnectorResourceOpts -} - export interface ConnectorSyskeeperProxyGet { type: ConnectorSyskeeperProxyGetType name: string @@ -2664,21 +2671,6 @@ export interface ConfluentSslClientOpts { server_name_indication?: ConfluentSslClientOptsServerNameIndication } -export interface ConfluentPutConnector { - enable?: boolean - tags?: string[] - description?: string - bootstrap_hosts: string - connect_timeout?: string - min_metadata_refresh_interval?: string - metadata_request_timeout?: string - authentication: ConfluentAuthUsernamePassword - socket_opts?: BridgeKafkaSocketOpts - health_check_topic?: string - ssl: ConfluentSslClientOpts - resource_opts?: BridgeKafkaConnectorResourceOpts -} - export type ConfluentPostConnectorType = typeof ConfluentPostConnectorType[keyof typeof ConfluentPostConnectorType] @@ -2728,6 +2720,21 @@ export interface ConfluentAuthUsernamePassword { password: string } +export interface ConfluentPutConnector { + enable?: boolean + tags?: string[] + description?: string + bootstrap_hosts: string + connect_timeout?: string + min_metadata_refresh_interval?: string + metadata_request_timeout?: string + authentication: ConfluentAuthUsernamePassword + socket_opts?: BridgeKafkaSocketOpts + health_check_topic?: string + ssl: ConfluentSslClientOpts + resource_opts?: BridgeKafkaConnectorResourceOpts +} + export interface ConfluentGetConnector { type: ConfluentGetConnectorType name: string @@ -2849,39 +2856,113 @@ export interface BridgeTimescaleGetConnector { resource_opts?: ConnectorPostgresResourceOpts } -export type BridgeSqlserverPostConnectorType = - typeof BridgeSqlserverPostConnectorType[keyof typeof BridgeSqlserverPostConnectorType] +export type BridgeTablestorePutConnectorStorageModelType = + typeof BridgeTablestorePutConnectorStorageModelType[keyof typeof BridgeTablestorePutConnectorStorageModelType] // eslint-disable-next-line @typescript-eslint/no-redeclare -export const BridgeSqlserverPostConnectorType = { - sqlserver: 'sqlserver', +export const BridgeTablestorePutConnectorStorageModelType = { + timeseries: 'timeseries', } as const -export type BridgeSqlserverGetConnectorStatus = - typeof BridgeSqlserverGetConnectorStatus[keyof typeof BridgeSqlserverGetConnectorStatus] +export interface BridgeTablestorePutConnector { + enable?: boolean + tags?: string[] + description?: string + storage_model_type?: BridgeTablestorePutConnectorStorageModelType + endpoint: string + instance_name: string + access_key_id: string + access_key_secret: string + pool_size?: number + ssl?: EmqxSslClientOpts + resource_opts?: BridgeTablestoreConnectorResourceOpts +} + +export type BridgeTablestorePostConnectorStorageModelType = + typeof BridgeTablestorePostConnectorStorageModelType[keyof typeof BridgeTablestorePostConnectorStorageModelType] // eslint-disable-next-line @typescript-eslint/no-redeclare -export const BridgeSqlserverGetConnectorStatus = { +export const BridgeTablestorePostConnectorStorageModelType = { + timeseries: 'timeseries', +} as const + +export type BridgeTablestorePostConnectorType = + typeof BridgeTablestorePostConnectorType[keyof typeof BridgeTablestorePostConnectorType] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeTablestorePostConnectorType = { + tablestore: 'tablestore', +} as const + +export interface BridgeTablestorePostConnector { + type: BridgeTablestorePostConnectorType + name: string + enable?: boolean + tags?: string[] + description?: string + storage_model_type?: BridgeTablestorePostConnectorStorageModelType + endpoint: string + instance_name: string + access_key_id: string + access_key_secret: string + pool_size?: number + ssl?: EmqxSslClientOpts + resource_opts?: BridgeTablestoreConnectorResourceOpts +} + +export type BridgeTablestoreGetConnectorStorageModelType = + typeof BridgeTablestoreGetConnectorStorageModelType[keyof typeof BridgeTablestoreGetConnectorStorageModelType] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeTablestoreGetConnectorStorageModelType = { + timeseries: 'timeseries', +} as const + +export type BridgeTablestoreGetConnectorStatus = + typeof BridgeTablestoreGetConnectorStatus[keyof typeof BridgeTablestoreGetConnectorStatus] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeTablestoreGetConnectorStatus = { connected: 'connected', disconnected: 'disconnected', connecting: 'connecting', inconsistent: 'inconsistent', } as const -export type BridgeSqlserverGetConnectorType = - typeof BridgeSqlserverGetConnectorType[keyof typeof BridgeSqlserverGetConnectorType] +export type BridgeTablestoreGetConnectorType = + typeof BridgeTablestoreGetConnectorType[keyof typeof BridgeTablestoreGetConnectorType] // eslint-disable-next-line @typescript-eslint/no-redeclare -export const BridgeSqlserverGetConnectorType = { - sqlserver: 'sqlserver', +export const BridgeTablestoreGetConnectorType = { + tablestore: 'tablestore', } as const -export interface BridgeSqlserverConnectorResourceOpts { +export interface BridgeTablestoreConnectorResourceOpts { health_check_interval?: string start_after_created?: boolean start_timeout?: string } +export interface BridgeTablestoreGetConnector { + type: BridgeTablestoreGetConnectorType + name: string + enable?: boolean + tags?: string[] + description?: string + status?: BridgeTablestoreGetConnectorStatus + status_reason?: string + node_status?: ConnectorNodeStatus[] + actions?: string[] + storage_model_type?: BridgeTablestoreGetConnectorStorageModelType + endpoint: string + instance_name: string + access_key_id: string + access_key_secret: string + pool_size?: number + ssl?: EmqxSslClientOpts + resource_opts?: BridgeTablestoreConnectorResourceOpts +} + export interface BridgeSqlserverPutConnector { enable?: boolean tags?: string[] @@ -2897,6 +2978,14 @@ export interface BridgeSqlserverPutConnector { resource_opts?: BridgeSqlserverConnectorResourceOpts } +export type BridgeSqlserverPostConnectorType = + typeof BridgeSqlserverPostConnectorType[keyof typeof BridgeSqlserverPostConnectorType] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeSqlserverPostConnectorType = { + sqlserver: 'sqlserver', +} as const + export interface BridgeSqlserverPostConnector { type: BridgeSqlserverPostConnectorType name: string @@ -2914,6 +3003,31 @@ export interface BridgeSqlserverPostConnector { resource_opts?: BridgeSqlserverConnectorResourceOpts } +export type BridgeSqlserverGetConnectorStatus = + typeof BridgeSqlserverGetConnectorStatus[keyof typeof BridgeSqlserverGetConnectorStatus] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeSqlserverGetConnectorStatus = { + connected: 'connected', + disconnected: 'disconnected', + connecting: 'connecting', + inconsistent: 'inconsistent', +} as const + +export type BridgeSqlserverGetConnectorType = + typeof BridgeSqlserverGetConnectorType[keyof typeof BridgeSqlserverGetConnectorType] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const BridgeSqlserverGetConnectorType = { + sqlserver: 'sqlserver', +} as const + +export interface BridgeSqlserverConnectorResourceOpts { + health_check_interval?: string + start_after_created?: boolean + start_timeout?: string +} + export interface BridgeSqlserverGetConnector { type: BridgeSqlserverGetConnectorType name: string @@ -3278,6 +3392,25 @@ export const BridgeMongodbPostConnectorType = { mongodb: 'mongodb', } as const +export interface BridgeMongodbPostConnector { + type: BridgeMongodbPostConnectorType + name: string + enable?: boolean + tags?: string[] + description?: string + parameters: BridgeMongodbPostConnectorParameters + srv_record?: boolean + pool_size?: number + username?: string + password?: string + use_legacy_protocol?: BridgeMongodbPostConnectorUseLegacyProtocol + auth_source?: string + database: string + topology?: MongoTopology + ssl?: EmqxSslClientOpts + resource_opts?: BridgeMongodbConnectorResourceOpts +} + export type BridgeMongodbGetConnectorUseLegacyProtocol = typeof BridgeMongodbGetConnectorUseLegacyProtocol[keyof typeof BridgeMongodbGetConnectorUseLegacyProtocol] @@ -3318,25 +3451,6 @@ export interface BridgeMongodbConnectorResourceOpts { start_timeout?: string } -export interface BridgeMongodbPostConnector { - type: BridgeMongodbPostConnectorType - name: string - enable?: boolean - tags?: string[] - description?: string - parameters: BridgeMongodbPostConnectorParameters - srv_record?: boolean - pool_size?: number - username?: string - password?: string - use_legacy_protocol?: BridgeMongodbPostConnectorUseLegacyProtocol - auth_source?: string - database: string - topology?: MongoTopology - ssl?: EmqxSslClientOpts - resource_opts?: BridgeMongodbConnectorResourceOpts -} - export interface BridgeMongodbGetConnector { type: BridgeMongodbGetConnectorType name: string @@ -3713,17 +3827,6 @@ export type BridgeInfluxdbPutConnectorParameters = | ConnectorInfluxdbConnectorInfluxdbApiV2 | ConnectorInfluxdbConnectorInfluxdbApiV1 -export interface BridgeInfluxdbPutConnector { - enable?: boolean - tags?: string[] - description?: string - server?: string - pool_size?: number - parameters: BridgeInfluxdbPutConnectorParameters - ssl?: EmqxSslClientOpts - resource_opts?: BridgeInfluxdbConnectorResourceOpts -} - export type BridgeInfluxdbPostConnectorParameters = | ConnectorInfluxdbConnectorInfluxdbApiV2 | ConnectorInfluxdbConnectorInfluxdbApiV1 @@ -3736,19 +3839,6 @@ export const BridgeInfluxdbPostConnectorType = { influxdb: 'influxdb', } as const -export interface BridgeInfluxdbPostConnector { - type: BridgeInfluxdbPostConnectorType - name: string - enable?: boolean - tags?: string[] - description?: string - server?: string - pool_size?: number - parameters: BridgeInfluxdbPostConnectorParameters - ssl?: EmqxSslClientOpts - resource_opts?: BridgeInfluxdbConnectorResourceOpts -} - export type BridgeInfluxdbGetConnectorParameters = | ConnectorInfluxdbConnectorInfluxdbApiV2 | ConnectorInfluxdbConnectorInfluxdbApiV1 @@ -3778,6 +3868,30 @@ export interface BridgeInfluxdbConnectorResourceOpts { start_timeout?: string } +export interface BridgeInfluxdbPutConnector { + enable?: boolean + tags?: string[] + description?: string + server?: string + pool_size?: number + parameters: BridgeInfluxdbPutConnectorParameters + ssl?: EmqxSslClientOpts + resource_opts?: BridgeInfluxdbConnectorResourceOpts +} + +export interface BridgeInfluxdbPostConnector { + type: BridgeInfluxdbPostConnectorType + name: string + enable?: boolean + tags?: string[] + description?: string + server?: string + pool_size?: number + parameters: BridgeInfluxdbPostConnectorParameters + ssl?: EmqxSslClientOpts + resource_opts?: BridgeInfluxdbConnectorResourceOpts +} + export interface BridgeInfluxdbGetConnector { type: BridgeInfluxdbGetConnectorType name: string @@ -3937,16 +4051,6 @@ export interface BridgeHttpGetConnector { resource_opts?: BridgeHttpConnectorResourceOpts } -export interface BridgeHstreamdbPutConnector { - enable?: boolean - tags?: string[] - description?: string - url: string - grpc_timeout?: string - ssl?: EmqxSslClientOpts - resource_opts?: BridgeHstreamdbConnectorResourceOpts -} - export type BridgeHstreamdbPostConnectorType = typeof BridgeHstreamdbPostConnectorType[keyof typeof BridgeHstreamdbPostConnectorType] @@ -3980,6 +4084,16 @@ export interface BridgeHstreamdbConnectorResourceOpts { start_timeout?: string } +export interface BridgeHstreamdbPutConnector { + enable?: boolean + tags?: string[] + description?: string + url: string + grpc_timeout?: string + ssl?: EmqxSslClientOpts + resource_opts?: BridgeHstreamdbConnectorResourceOpts +} + export interface BridgeHstreamdbPostConnector { type: BridgeHstreamdbPostConnectorType name: string diff --git a/src/types/schemas/opentelemetry.schemas.ts b/src/types/schemas/opentelemetry.schemas.ts new file mode 100644 index 000000000..80853985b --- /dev/null +++ b/src/types/schemas/opentelemetry.schemas.ts @@ -0,0 +1,25 @@ +export type PostOpentelemetryWhitelistType500Code = + typeof PostOpentelemetryWhitelistType500Code[keyof typeof PostOpentelemetryWhitelistType500Code] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PostOpentelemetryWhitelistType500Code = { + INTERNAL_ERROR: 'INTERNAL_ERROR', +} as const + +export type PostOpentelemetryWhitelistType500 = { + code?: PostOpentelemetryWhitelistType500Code + message?: string +} + +export type DeleteOpentelemetryWhitelistType500Code = + typeof DeleteOpentelemetryWhitelistType500Code[keyof typeof DeleteOpentelemetryWhitelistType500Code] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DeleteOpentelemetryWhitelistType500Code = { + INTERNAL_ERROR: 'INTERNAL_ERROR', +} as const + +export type DeleteOpentelemetryWhitelistType500 = { + code?: DeleteOpentelemetryWhitelistType500Code + message?: string +}