Skip to content

Commit

Permalink
test(schemas): update schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon authored and ysfscream committed May 6, 2024
1 parent 613fd3f commit 2c3d932
Show file tree
Hide file tree
Showing 15 changed files with 879 additions and 443 deletions.
137 changes: 74 additions & 63 deletions src/types/schemas/actions.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export type PutActionsId200 =
| SyskeeperGetBridgeV2
| BridgeSqlserverGetBridgeV2
| BridgeS3GetBridgeV2
| BridgeS3GetBridgeV2
| RocketmqGetBridgeV2
| RedisGetBridgeV2
| BridgeRabbitmqGetBridgeV2
Expand Down Expand Up @@ -130,6 +131,7 @@ export type PutActionsIdBody =
| SyskeeperPutBridgeV2
| BridgeSqlserverPutBridgeV2
| BridgeS3PutBridgeV2
| BridgeS3PutBridgeV2
| RocketmqPutBridgeV2
| RedisPutBridgeV2
| BridgeRabbitmqPutBridgeV2
Expand Down Expand Up @@ -174,6 +176,7 @@ export type GetActionsId200 =
| SyskeeperGetBridgeV2
| BridgeSqlserverGetBridgeV2
| BridgeS3GetBridgeV2
| BridgeS3GetBridgeV2
| RocketmqGetBridgeV2
| RedisGetBridgeV2
| BridgeRabbitmqGetBridgeV2
Expand Down Expand Up @@ -249,29 +252,30 @@ export type GetActionTypes200Item = typeof GetActionTypes200Item[keyof typeof Ge
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const GetActionTypes200Item = {
http: 'http',
cassandra: 'cassandra',
rabbitmq: 'rabbitmq',
rocketmq: 'rocketmq',
cassandra: 'cassandra',
influxdb: 'influxdb',
pulsar: 'pulsar',
syskeeper_forwarder: 'syskeeper_forwarder',
azure_event_hub_producer: 'azure_event_hub_producer',
confluent_producer: 'confluent_producer',
gcp_pubsub_producer: 'gcp_pubsub_producer',
greptimedb: 'greptimedb',
hstreamdb: 'hstreamdb',
influxdb: 'influxdb',
greptimedb: 'greptimedb',
gcp_pubsub_producer: 'gcp_pubsub_producer',
iotdb: 'iotdb',
sqlserver: 'sqlserver',
kafka_producer: 'kafka_producer',
mongodb: 'mongodb',
pulsar: 'pulsar',
sqlserver: 'sqlserver',
syskeeper_forwarder: 'syskeeper_forwarder',
kinesis: 'kinesis',
opents: 'opents',
redis: 'redis',
s3: 's3',
mqtt: 'mqtt',
s3_aggregated_upload: 's3_aggregated_upload',
clickhouse: 'clickhouse',
oracle: 'oracle',
tdengine: 'tdengine',
oracle: 'oracle',
timescale: 'timescale',
elasticsearch: 'elasticsearch',
matrix: 'matrix',
Expand Down Expand Up @@ -299,6 +303,7 @@ export type PostActionsProbeBody =
| SyskeeperPostBridgeV2
| BridgeSqlserverPostBridgeV2
| BridgeS3PostBridgeV2
| BridgeS3PostBridgeV2
| RocketmqPostBridgeV2
| RedisPostBridgeV2
| BridgeRabbitmqPostBridgeV2
Expand Down Expand Up @@ -343,6 +348,7 @@ export type PostActions201 =
| SyskeeperGetBridgeV2
| BridgeSqlserverGetBridgeV2
| BridgeS3GetBridgeV2
| BridgeS3GetBridgeV2
| RocketmqGetBridgeV2
| RedisGetBridgeV2
| BridgeRabbitmqGetBridgeV2
Expand Down Expand Up @@ -375,6 +381,7 @@ export type PostActionsBody =
| SyskeeperPostBridgeV2
| BridgeSqlserverPostBridgeV2
| BridgeS3PostBridgeV2
| BridgeS3PostBridgeV2
| RocketmqPostBridgeV2
| RedisPostBridgeV2
| BridgeRabbitmqPostBridgeV2
Expand Down Expand Up @@ -407,6 +414,7 @@ export type GetActions200Item =
| SyskeeperGetBridgeV2
| BridgeSqlserverGetBridgeV2
| BridgeS3GetBridgeV2
| BridgeS3GetBridgeV2
| RocketmqGetBridgeV2
| RedisGetBridgeV2
| BridgeRabbitmqGetBridgeV2
Expand Down Expand Up @@ -627,16 +635,6 @@ export interface SyskeeperCreationOpts {
max_buffer_bytes?: string
}

export interface RocketmqPutBridgeV2 {
local_topic?: string
enable?: boolean
connector: string
tags?: string[]
description?: string
parameters: RocketmqActionParameters
resource_opts?: ActionsAndSourcesActionResourceOpts
}

export type RocketmqPostBridgeV2Type =
typeof RocketmqPostBridgeV2Type[keyof typeof RocketmqPostBridgeV2Type]

Expand All @@ -645,18 +643,6 @@ export const RocketmqPostBridgeV2Type = {
rocketmq: 'rocketmq',
} as const

export interface RocketmqPostBridgeV2 {
type: RocketmqPostBridgeV2Type
name: string
local_topic?: string
enable?: boolean
connector: string
tags?: string[]
description?: string
parameters: RocketmqActionParameters
resource_opts?: ActionsAndSourcesActionResourceOpts
}

export type RocketmqGetBridgeV2Status =
typeof RocketmqGetBridgeV2Status[keyof typeof RocketmqGetBridgeV2Status]

Expand Down Expand Up @@ -702,14 +688,26 @@ export interface RocketmqActionParameters {
send_buffer?: string
}

export interface RedisPutBridgeV2 {
export interface RocketmqPutBridgeV2 {
local_topic?: string
enable?: boolean
connector: string
tags?: string[]
description?: string
parameters: BridgeRedisActionParameters
resource_opts?: RedisActionResourceOpts
parameters: RocketmqActionParameters
resource_opts?: ActionsAndSourcesActionResourceOpts
}

export interface RocketmqPostBridgeV2 {
type: RocketmqPostBridgeV2Type
name: string
local_topic?: string
enable?: boolean
connector: string
tags?: string[]
description?: string
parameters: RocketmqActionParameters
resource_opts?: ActionsAndSourcesActionResourceOpts
}

export type RedisPostBridgeV2Type = typeof RedisPostBridgeV2Type[keyof typeof RedisPostBridgeV2Type]
Expand Down Expand Up @@ -737,6 +735,21 @@ export const RedisGetBridgeV2Status = {
inconsistent: 'inconsistent',
} as const

export interface RedisGetBridgeV2 {
status?: RedisGetBridgeV2Status
status_reason?: string
node_status?: BridgeNodeStatus[]
type: RedisGetBridgeV2Type
name: string
local_topic?: string
enable?: boolean
connector: string
tags?: string[]
description?: string
parameters: BridgeRedisActionParameters
resource_opts?: RedisActionResourceOpts
}

export type RedisActionResourceOptsRequestTtl = 'infinity' | string

export type RedisActionResourceOptsQueryMode =
Expand All @@ -759,9 +772,7 @@ export interface RedisActionResourceOpts {
max_buffer_bytes?: string
}

export interface RedisPostBridgeV2 {
type: RedisPostBridgeV2Type
name: string
export interface RedisPutBridgeV2 {
local_topic?: string
enable?: boolean
connector: string
Expand All @@ -771,11 +782,8 @@ export interface RedisPostBridgeV2 {
resource_opts?: RedisActionResourceOpts
}

export interface RedisGetBridgeV2 {
status?: RedisGetBridgeV2Status
status_reason?: string
node_status?: BridgeNodeStatus[]
type: RedisGetBridgeV2Type
export interface RedisPostBridgeV2 {
type: RedisPostBridgeV2Type
name: string
local_topic?: string
enable?: boolean
Expand Down Expand Up @@ -1180,16 +1188,6 @@ export interface BridgeTimescaleGetBridgeV2 {
resource_opts?: ActionsAndSourcesActionResourceOpts
}

export interface BridgeTdenginePutBridgeV2 {
local_topic?: string
enable?: boolean
connector: string
tags?: string[]
description?: string
parameters: BridgeTdengineActionParameters
resource_opts?: ActionsAndSourcesActionResourceOpts
}

export type BridgeTdenginePostBridgeV2Type =
typeof BridgeTdenginePostBridgeV2Type[keyof typeof BridgeTdenginePostBridgeV2Type]

Expand All @@ -1198,18 +1196,6 @@ export const BridgeTdenginePostBridgeV2Type = {
tdengine: 'tdengine',
} as const

export interface BridgeTdenginePostBridgeV2 {
type: BridgeTdenginePostBridgeV2Type
name: string
local_topic?: string
enable?: boolean
connector: string
tags?: string[]
description?: string
parameters: BridgeTdengineActionParameters
resource_opts?: ActionsAndSourcesActionResourceOpts
}

export type BridgeTdengineGetBridgeV2Type =
typeof BridgeTdengineGetBridgeV2Type[keyof typeof BridgeTdengineGetBridgeV2Type]

Expand All @@ -1234,6 +1220,28 @@ export interface BridgeTdengineActionParameters {
sql?: string
}

export interface BridgeTdenginePutBridgeV2 {
local_topic?: string
enable?: boolean
connector: string
tags?: string[]
description?: string
parameters: BridgeTdengineActionParameters
resource_opts?: ActionsAndSourcesActionResourceOpts
}

export interface BridgeTdenginePostBridgeV2 {
type: BridgeTdenginePostBridgeV2Type
name: string
local_topic?: string
enable?: boolean
connector: string
tags?: string[]
description?: string
parameters: BridgeTdengineActionParameters
resource_opts?: ActionsAndSourcesActionResourceOpts
}

export interface BridgeTdengineGetBridgeV2 {
status?: BridgeTdengineGetBridgeV2Status
status_reason?: string
Expand Down Expand Up @@ -1317,6 +1325,8 @@ export interface BridgeSqlserverGetBridgeV2 {
resource_opts?: ActionsAndSourcesActionResourceOpts
}

export type BridgeS3S3UploadParametersHeaders = { [key: string]: any }

export type BridgeS3S3UploadParametersAcl =
typeof BridgeS3S3UploadParametersAcl[keyof typeof BridgeS3S3UploadParametersAcl]

Expand All @@ -1334,6 +1344,7 @@ export interface BridgeS3S3UploadParameters {
bucket: string
key: string
acl?: BridgeS3S3UploadParametersAcl
headers?: BridgeS3S3UploadParametersHeaders
content?: string
}

Expand Down
28 changes: 25 additions & 3 deletions src/types/schemas/authentication.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,16 @@ export const LdapSslLogLevel = {
all: 'all',
} as const

export type LdapSslPartialChain = typeof LdapSslPartialChain[keyof typeof LdapSslPartialChain]

// eslint-disable-next-line @typescript-eslint/no-redeclare
export const LdapSslPartialChain = {
true: 'true',
false: 'false',
two_cacerts_from_cacertfile: 'two_cacerts_from_cacertfile',
cacert_from_cacertfile: 'cacert_from_cacertfile',
} as const

export type LdapSslVerify = typeof LdapSslVerify[keyof typeof LdapSslVerify]

// eslint-disable-next-line @typescript-eslint/no-redeclare
Expand All @@ -454,6 +464,8 @@ export interface LdapSsl {
certfile?: string
keyfile?: string
verify?: LdapSslVerify
partial_chain?: LdapSslPartialChain
verify_peer_ext_key_usage?: string
reuse_sessions?: boolean
depth?: number
password?: string
Expand Down Expand Up @@ -485,6 +497,17 @@ export const EmqxSslClientOptsLogLevel = {
all: 'all',
} as const

export type EmqxSslClientOptsPartialChain =
typeof EmqxSslClientOptsPartialChain[keyof typeof EmqxSslClientOptsPartialChain]

// eslint-disable-next-line @typescript-eslint/no-redeclare
export const EmqxSslClientOptsPartialChain = {
true: 'true',
false: 'false',
two_cacerts_from_cacertfile: 'two_cacerts_from_cacertfile',
cacert_from_cacertfile: 'cacert_from_cacertfile',
} as const

export type EmqxSslClientOptsVerify =
typeof EmqxSslClientOptsVerify[keyof typeof EmqxSslClientOptsVerify]

Expand All @@ -501,6 +524,8 @@ export interface EmqxSslClientOpts {
certfile?: string
keyfile?: string
verify?: EmqxSslClientOptsVerify
partial_chain?: EmqxSslClientOptsPartialChain
verify_peer_ext_key_usage?: string
reuse_sessions?: boolean
depth?: number
password?: string
Expand Down Expand Up @@ -1177,7 +1202,6 @@ export interface AuthnJwtPublicKey {
mechanism: AuthnJwtPublicKeyMechanism
acl_claim_name?: string
verify_claims?: AuthnJwtPublicKeyVerifyClaims
disconnect_after_expire?: boolean
from?: AuthnJwtPublicKeyFrom
enable?: boolean
}
Expand Down Expand Up @@ -1215,7 +1239,6 @@ export interface AuthnJwtJwks {
mechanism: AuthnJwtJwksMechanism
acl_claim_name?: string
verify_claims?: AuthnJwtJwksVerifyClaims
disconnect_after_expire?: boolean
from?: AuthnJwtJwksFrom
enable?: boolean
}
Expand Down Expand Up @@ -1251,7 +1274,6 @@ export interface AuthnJwtHmac {
mechanism: AuthnJwtHmacMechanism
acl_claim_name?: string
verify_claims?: AuthnJwtHmacVerifyClaims
disconnect_after_expire?: boolean
from?: AuthnJwtHmacFrom
enable?: boolean
}
Expand Down
Loading

0 comments on commit 2c3d932

Please sign in to comment.