Skip to content

Commit

Permalink
型を export する
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Oct 28, 2024
1 parent ff502de commit b7a765b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 12 additions & 0 deletions packages/sdk/src/sora.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import type {
DataChannelDirection,
DataChannelEvent,
DataChannelMessageEvent,
ForwardingFilter,
ForwardingFilterAction,
ForwardingFilterRule,
ForwardingFilterRuleField,
ForwardingFilterRuleKindValue,
ForwardingFilterRuleOperator,
JSONType,
Role,
SignalingEvent,
Expand Down Expand Up @@ -213,6 +219,12 @@ export type {
DataChannelDirection,
DataChannelEvent,
DataChannelMessageEvent,
ForwardingFilter,
ForwardingFilterAction,
ForwardingFilterRule,
ForwardingFilterRuleField,
ForwardingFilterRuleKindValue,
ForwardingFilterRuleOperator,
JSONType,
Role,
SignalingEvent,
Expand Down
12 changes: 6 additions & 6 deletions packages/sdk/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,23 +327,23 @@ export type DataChannelConfiguration = {
header?: MessagingHeaderField[]
}

type ForwardingFilterRuleField = 'connection_id' | 'client_id' | 'kind'
export type ForwardingFilterRuleField = 'connection_id' | 'client_id' | 'kind'

type ForwardingFilterRuleOperator = 'is_in' | 'is_not_in'
export type ForwardingFilterRuleOperator = 'is_in' | 'is_not_in'

type ForwardingFilterRuleKindValue = 'audio' | 'video'
export type ForwardingFilterRuleKindValue = 'audio' | 'video'

type ForwardingFilterRuleValue = string | ForwardingFilterRuleKindValue

type ForwardingFilterRule = {
export type ForwardingFilterRule = {
field: ForwardingFilterRuleField
operator: ForwardingFilterRuleOperator
values: [ForwardingFilterRuleValue]
}

type ForwardingFilterAction = 'block' | 'allow'
export type ForwardingFilterAction = 'block' | 'allow'

type ForwardingFilter = {
export type ForwardingFilter = {
version?: string
metadata?: JSONType
action?: ForwardingFilterAction
Expand Down

0 comments on commit b7a765b

Please sign in to comment.