Type alias ChannelScope

ChannelScope: {
    id?: string;
    name?: string;
} & {
    actions: ("create" | "write" | "delete" | "updateMetadata" | "read")[];
    members: ({
        id?: string;
        name?: string;
    } & {
        actions: ("create" | "write" | "delete" | "updateMetadata" | "signal")[];
        publication?: objectInputType<{
            actions: ZodArray<ZodEffects<ZodEnum<(...)>, (...) | (...) | (...) | (...) | (...) | (...), (...) | (...) | (...) | (...) | (...) | (...)>, "many">;
        }, ZodTypeAny, "passthrough">;
        subscription?: objectInputType<{
            actions: ZodArray<ZodEffects<ZodEnum<(...)>, (...) | (...) | (...), (...) | (...) | (...)>, "many">;
        }, ZodTypeAny, "passthrough">;
    } & {
        [k: string]: unknown;
    })[];
    sfuBots?: objectInputType<{
        actions: ZodArray<ZodEffects<ZodEnum<["create", "write", "delete"]>, "create" | "write" | "delete", "create" | "write" | "delete">, "many">;
        forwardings: ZodArray<ZodObject<{
            actions: ZodArray<ZodEffects<(...), (...), (...)>, "many">;
        }, "passthrough", ZodTypeAny, objectOutputType<{
            actions: ZodArray<(...), (...)>;
        }, ZodTypeAny, "passthrough">, objectInputType<{
            actions: ZodArray<(...), (...)>;
        }, ZodTypeAny, "passthrough">>, "many">;
    }, ZodTypeAny, "passthrough">[];
} & {
    [k: string]: unknown;
}

Type declaration

  • Optional id?: string

    id (id または name のどちらかが必須 *)

    • id で対象の member を指定
    • '*' を指定することで、すべての member を指定
  • Optional name?: string

    name (id または name のどちらかが必須 *)

    • name で対象の channel を指定
    • '*' を指定することで、すべての member を指定

Type declaration

  • actions: ("create" | "write" | "delete" | "updateMetadata" | "read")[]

    以下を複数指定可能

    • write: すべて可能
    • read: 参照
    • create: 作成
    • delete: 削除
    • updateMetadata: metadata の編集
  • members: ({
        id?: string;
        name?: string;
    } & {
        actions: ("create" | "write" | "delete" | "updateMetadata" | "signal")[];
        publication?: objectInputType<{
            actions: ZodArray<ZodEffects<ZodEnum<(...)>, (...) | (...) | (...) | (...) | (...) | (...), (...) | (...) | (...) | (...) | (...) | (...)>, "many">;
        }, ZodTypeAny, "passthrough">;
        subscription?: objectInputType<{
            actions: ZodArray<ZodEffects<ZodEnum<(...)>, (...) | (...) | (...), (...) | (...) | (...)>, "many">;
        }, ZodTypeAny, "passthrough">;
    } & {
        [k: string]: unknown;
    })[]

    member リソースに関するオブジェクトを配列で指定

  • Optional sfuBots?: objectInputType<{
        actions: ZodArray<ZodEffects<ZodEnum<["create", "write", "delete"]>, "create" | "write" | "delete", "create" | "write" | "delete">, "many">;
        forwardings: ZodArray<ZodObject<{
            actions: ZodArray<ZodEffects<(...), (...), (...)>, "many">;
        }, "passthrough", ZodTypeAny, objectOutputType<{
            actions: ZodArray<(...), (...)>;
        }, ZodTypeAny, "passthrough">, objectInputType<{
            actions: ZodArray<(...), (...)>;
        }, ZodTypeAny, "passthrough">>, "many">;
    }, ZodTypeAny, "passthrough">[]

    sfuBot リソースに関するオブジェクトを配列で指定

Type declaration

  • [k: string]: unknown