-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi2-functions.yaml
123 lines (120 loc) · 3.5 KB
/
openapi2-functions.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
swagger: "2.0"
info:
title: "chattranslatorbot backend"
description: "API of chat message translator on Twitch for OBS and so on."
version: "0.1.0"
schemes:
- "https"
produces:
- "application/json"
securityDefinitions:
firebase:
authorizationUrl: ""
flow: "implicit"
type: "oauth2"
x-google-issuer: "https://securetoken.google.com/chattranslatorbot"
x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/metadata/x509/[email protected]"
x-google-audiences: "chattranslatorbot"
paths:
/translate-text:
get:
summary: "Translate text"
operationId: "translate-text"
x-google-backend:
address: "https://translate-text-h7nyl2mmoq-uc.a.run.app"
security:
- firebase: []
parameters:
- in: "query"
name: "text"
type: "string"
- in: "query"
name: "targetLanguageCode"
type: "string"
responses:
"200":
description: "A successful response"
schema:
type: "object"
properties:
audioContent:
type: "string"
language:
type: "string"
"204":
description: "Keep Alive"
options:
summary: "Translate text Preflight"
operationId: "translate-text-preflight"
x-google-backend:
address: "https://translate-text-h7nyl2mmoq-uc.a.run.app"
responses:
"204":
description: "A successful response"
/send-text-from-bot-to-chat:
get:
summary: "Send text from bot to chat"
operationId: "send-text-from-bot-to-chat"
x-google-backend:
address: "https://send-text-from-bot-to-chat-h7nyl2mmoq-uc.a.run.app"
security:
- firebase: []
parameters:
- in: "query"
name: "text"
type: "string"
responses:
"204":
description: "A successful response"
options:
summary: "Send text from bot to chat preflight"
operationId: "send-text-from-bot-to-chat-preflight"
x-google-backend:
address: "https://set-twitch-login-to-user-h7nyl2mmoq-uc.a.run.app"
responses:
"204":
description: "A successful response"
/set-twitch-login-to-user:
get:
summary: "Set Twitch login to user"
operationId: "set-twitch-login-to-user"
x-google-backend:
address: "https://set-twitch-login-to-user-h7nyl2mmoq-uc.a.run.app"
security:
- firebase: []
parameters:
- in: "query"
name: "token"
type: "string"
- in: "query"
name: "uid"
type: "string"
responses:
"204":
description: "A successful response"
options:
summary: "Set Twitch login to user Preflight"
operationId: "set-twitch-login-to-user-preflight"
x-google-backend:
address: "https://set-twitch-login-to-user-h7nyl2mmoq-uc.a.run.app"
responses:
"204":
description: "A successful response"
/authenticate-with-token:
get:
summary: "Authenticate with token"
operationId: "authenticate-with-token"
x-google-backend:
address: "https://authenticate-with-token-h7nyl2mmoq-uc.a.run.app"
parameters:
- in: "query"
name: "token"
type: "string"
- in: "query"
name: "uid"
type: "string"
responses:
"200":
description: "A successful response"
schema:
type: "string"