Amagi API 文档 - v6.1.2
    正在准备搜索索引...

    函数 validateKuaishouParams

    • 验证快手参数

      类型参数

      • T extends
            | "comments"
            | "liveRoomInfo"
            | "emojiList"
            | "userProfile"
            | "videoWork"
            | "userWorkList"

      参数

      • methodType: T

        快手方法类型

      • params: unknown

        待验证的参数

      返回 output<
          {
              videoWork: ZodType<
                  { methodType: "videoWork"; photoId: string },
                  unknown,
                  $ZodTypeInternals<{ methodType: "videoWork"; photoId: string }, unknown>,
              >;
              comments: ZodType<
                  { methodType: "comments"; photoId: string },
                  unknown,
                  $ZodTypeInternals<{ methodType: "comments"; photoId: string }, unknown>,
              >;
              userProfile: ZodType<
                  { methodType: "userProfile"; principalId: string },
                  unknown,
                  $ZodTypeInternals<
                      { methodType: "userProfile"; principalId: string },
                      unknown,
                  >,
              >;
              userWorkList: ZodType<
                  {
                      methodType: "userWorkList";
                      principalId: string;
                      pcursor?: string;
                      count?: number;
                  },
                  unknown,
                  $ZodTypeInternals<
                      {
                          methodType: "userWorkList";
                          principalId: string;
                          pcursor?: string;
                          count?: number;
                      },
                      unknown,
                  >,
              >;
              liveRoomInfo: ZodType<
                  { methodType: "liveRoomInfo"; principalId: string },
                  unknown,
                  $ZodTypeInternals<
                      { methodType: "liveRoomInfo"; principalId: string },
                      unknown,
                  >,
              >;
              emojiList: ZodType<
                  { methodType: "emojiList" },
                  unknown,
                  $ZodTypeInternals<{ methodType: "emojiList" }, unknown>,
              >;
          }[T],
      >

      验证后的参数,符合原始API期望的类型