From ddfe40e521fee0c52f9c9c1a9dd1ebf35f4efb86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 25 May 2023 01:47:45 +0900 Subject: [PATCH] build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/dart/openapi-3.0.yaml | 17 +++++++---------- dist/docs/openapi-3.0.yaml | 21 +++++++++++---------- dist/test/openapi-3.0.yaml | 21 +++++++++++---------- dist/typescript/openapi-3.0.yaml | 21 +++++++++++---------- src/config/component/security_schemes.yaml | 6 ++++++ src/openapi/openapi-3.0.yaml | 9 +++------ 6 files changed, 49 insertions(+), 46 deletions(-) diff --git a/dist/dart/openapi-3.0.yaml b/dist/dart/openapi-3.0.yaml index 226b5a8..2d6ddb2 100644 --- a/dist/dart/openapi-3.0.yaml +++ b/dist/dart/openapi-3.0.yaml @@ -1,6 +1,11 @@ components: schemas: {} securitySchemes: + AuthType: + description: OAuth2Session if you are logged in + in: header + name: x-twitter-auth-type + type: apiKey CookieAuthToken: description: HttpOnly cookie in: cookie @@ -16,11 +21,6 @@ components: in: header name: x-csrf-token type: apiKey - authType: - description: OAuth2Session if you are logged in - in: header - name: x-twitter-auth-type - type: apiKey info: contact: email: yuki@yuki0311.com @@ -84,13 +84,10 @@ paths: /other: $ref: ./paths/other.yaml#/paths/~1other security: -- bearerAuth: [] - CsrfToken: [] -- ActiveUser: [] -- AuthType: [] -- ClientLanguage: [] -- CookieAuthToken: [] - CookieCt0: [] +- CookieAuthToken: [] +- AuthType: [] servers: - url: https://twitter.com/i/api tags: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index a210777..17048a3 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -6,6 +6,11 @@ components: in: header name: x-twitter-active-user type: apiKey + AuthType: + description: OAuth2Session if you are logged in + in: header + name: x-twitter-auth-type + type: apiKey BearerAuth: description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA scheme: bearer @@ -36,11 +41,6 @@ components: in: header name: user-agent type: apiKey - authType: - description: OAuth2Session if you are logged in - in: header - name: x-twitter-auth-type - type: apiKey info: contact: email: yuki@yuki0311.com @@ -104,13 +104,14 @@ paths: /other: $ref: ./paths/other.yaml#/paths/~1other security: -- bearerAuth: [] - CsrfToken: [] -- ActiveUser: [] -- AuthType: [] -- ClientLanguage: [] -- CookieAuthToken: [] - CookieCt0: [] +- CookieAuthToken: [] +- AuthType: [] +- UserAgent: [] +- BearerAuth: [] +- ActiveUser: [] +- ClientLanguage: [] servers: - url: https://twitter.com/i/api tags: diff --git a/dist/test/openapi-3.0.yaml b/dist/test/openapi-3.0.yaml index a210777..17048a3 100644 --- a/dist/test/openapi-3.0.yaml +++ b/dist/test/openapi-3.0.yaml @@ -6,6 +6,11 @@ components: in: header name: x-twitter-active-user type: apiKey + AuthType: + description: OAuth2Session if you are logged in + in: header + name: x-twitter-auth-type + type: apiKey BearerAuth: description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA scheme: bearer @@ -36,11 +41,6 @@ components: in: header name: user-agent type: apiKey - authType: - description: OAuth2Session if you are logged in - in: header - name: x-twitter-auth-type - type: apiKey info: contact: email: yuki@yuki0311.com @@ -104,13 +104,14 @@ paths: /other: $ref: ./paths/other.yaml#/paths/~1other security: -- bearerAuth: [] - CsrfToken: [] -- ActiveUser: [] -- AuthType: [] -- ClientLanguage: [] -- CookieAuthToken: [] - CookieCt0: [] +- CookieAuthToken: [] +- AuthType: [] +- UserAgent: [] +- BearerAuth: [] +- ActiveUser: [] +- ClientLanguage: [] servers: - url: https://twitter.com/i/api tags: diff --git a/dist/typescript/openapi-3.0.yaml b/dist/typescript/openapi-3.0.yaml index a210777..17048a3 100644 --- a/dist/typescript/openapi-3.0.yaml +++ b/dist/typescript/openapi-3.0.yaml @@ -6,6 +6,11 @@ components: in: header name: x-twitter-active-user type: apiKey + AuthType: + description: OAuth2Session if you are logged in + in: header + name: x-twitter-auth-type + type: apiKey BearerAuth: description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA scheme: bearer @@ -36,11 +41,6 @@ components: in: header name: user-agent type: apiKey - authType: - description: OAuth2Session if you are logged in - in: header - name: x-twitter-auth-type - type: apiKey info: contact: email: yuki@yuki0311.com @@ -104,13 +104,14 @@ paths: /other: $ref: ./paths/other.yaml#/paths/~1other security: -- bearerAuth: [] - CsrfToken: [] -- ActiveUser: [] -- AuthType: [] -- ClientLanguage: [] -- CookieAuthToken: [] - CookieCt0: [] +- CookieAuthToken: [] +- AuthType: [] +- UserAgent: [] +- BearerAuth: [] +- ActiveUser: [] +- ClientLanguage: [] servers: - url: https://twitter.com/i/api tags: diff --git a/src/config/component/security_schemes.yaml b/src/config/component/security_schemes.yaml index 8c7a518..c7d4bb6 100644 --- a/src/config/component/security_schemes.yaml +++ b/src/config/component/security_schemes.yaml @@ -59,3 +59,9 @@ components: in: header name: x-twitter-client-language type: apiKey + +security: + - UserAgent: [] + - BearerAuth: [] + - ActiveUser: [] + - ClientLanguage: [] diff --git a/src/openapi/openapi-3.0.yaml b/src/openapi/openapi-3.0.yaml index 6ef6000..326eacf 100644 --- a/src/openapi/openapi-3.0.yaml +++ b/src/openapi/openapi-3.0.yaml @@ -36,20 +36,17 @@ components: name: auth_token description: "HttpOnly cookie" - authType: + AuthType: type: apiKey in: header name: x-twitter-auth-type description: "OAuth2Session if you are logged in" security: - - bearerAuth: [] - CsrfToken: [] - - ActiveUser: [] - - AuthType: [] - - ClientLanguage: [] - - CookieAuthToken: [] - CookieCt0: [] + - CookieAuthToken: [] + - AuthType: [] tags: - name: user description: response User