Skip to content

Commit 4bd6a15

Browse files
committed
Fix CI
1 parent 13de0ff commit 4bd6a15

File tree

3 files changed

+543
-10
lines changed

3 files changed

+543
-10
lines changed

doc

Lines changed: 397 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,397 @@
1+
{
2+
"discoveryVersion": "v1",
3+
"version_module": true,
4+
"schemas": {
5+
"Notification": {
6+
"type": "object",
7+
"properties": {
8+
"body": {
9+
"description": "The notification's body text.",
10+
"type": "string"
11+
},
12+
"title": {
13+
"description": "The notification's title.",
14+
"type": "string"
15+
}
16+
},
17+
"id": "Notification",
18+
"description": "Basic notification template to use across all platforms."
19+
},
20+
"ApnsConfig": {
21+
"description": "[Apple Push Notification Service](https://goo.gl/MXRTPa) specific options.",
22+
"type": "object",
23+
"properties": {
24+
"payload": {
25+
"additionalProperties": {
26+
"description": "Properties of the object.",
27+
"type": "any"
28+
},
29+
"description": "APNs payload as a JSON object, including both `aps` dictionary and custom\npayload. See [Payload Key Reference](https://goo.gl/32Pl5W).\nIf present, it overrides google.firebase.fcm.v1.Notification.title\nand google.firebase.fcm.v1.Notification.body.",
30+
"type": "object"
31+
},
32+
"headers": {
33+
"additionalProperties": {
34+
"type": "string"
35+
},
36+
"description": "HTTP request headers defined in Apple Push Notification Service. Refer to\n[APNs request headers](https://goo.gl/C6Yhia) for\nsupported headers, e.g. \"apns-priority\": \"10\".",
37+
"type": "object"
38+
}
39+
},
40+
"id": "ApnsConfig"
41+
},
42+
"AndroidConfig": {
43+
"description": "Android specific options for messages sent through\n[FCM connection server](https://goo.gl/4GLdUl).",
44+
"type": "object",
45+
"properties": {
46+
"notification": {
47+
"$ref": "AndroidNotification",
48+
"description": "Notification to send to android devices."
49+
},
50+
"restrictedPackageName": {
51+
"description": "Package name of the application where the registration token must match in\norder to receive the message.",
52+
"type": "string"
53+
},
54+
"ttl": {
55+
"description": "How long (in seconds) the message should be kept in FCM storage if the\ndevice is offline. The maximum time to live supported is 4 weeks, and the\ndefault value is 4 weeks if not set. Set it to 0 if want to send the\nmessage immediately.\nIn JSON format, the Duration type is encoded as a string rather than an\nobject, where the string ends in the suffix \"s\" (indicating seconds) and\nis preceded by the number of seconds, with nanoseconds expressed as\nfractional seconds. For example, 3 seconds with 0 nanoseconds should be\nencoded in JSON format as \"3s\", while 3 seconds and 1 nanosecond should\nbe expressed in JSON format as \"3.000000001s\". The ttl will be rounded down\nto the nearest second.",
56+
"format": "google-duration",
57+
"type": "string"
58+
},
59+
"priority": {
60+
"type": "string",
61+
"enumDescriptions": [
62+
"Default priority for data messages. Normal priority messages won't open\nnetwork connections on a sleeping device, and their delivery may be\ndelayed to conserve the battery. For less time-sensitive messages, such\nas notifications of new email or other data to sync, choose normal\ndelivery priority.",
63+
"Default priority for notification messages. FCM attempts to deliver high\npriority messages immediately, allowing the FCM service to wake a\nsleeping device when possible and open a network connection to your app\nserver. Apps with instant messaging, chat, or voice call alerts, for\nexample, generally need to open a network connection and make sure FCM\ndelivers the message to the device without delay. Set high priority if\nthe message is time-critical and requires the user's immediate\ninteraction, but beware that setting your messages to high priority\ncontributes more to battery drain compared with normal priority messages."
64+
],
65+
"enum": [
66+
"NORMAL",
67+
"HIGH"
68+
],
69+
"description": "Message priority. Can take \"normal\" and \"high\" values.\nFor more information, see [Setting the priority of a\nmessage](https://goo.gl/GjONJv)."
70+
},
71+
"data": {
72+
"additionalProperties": {
73+
"type": "string"
74+
},
75+
"description": "Arbitrary key/value payload. If present, it will override\ngoogle.firebase.fcm.v1.Message.data.",
76+
"type": "object"
77+
},
78+
"collapseKey": {
79+
"description": "An identifier of a group of messages that can be collapsed, so that only\nthe last message gets sent when delivery can be resumed. A maximum of 4\ndifferent collapse keys is allowed at any given time.",
80+
"type": "string"
81+
}
82+
},
83+
"id": "AndroidConfig"
84+
},
85+
"AndroidNotification": {
86+
"description": "Notification to send to android devices.",
87+
"type": "object",
88+
"properties": {
89+
"icon": {
90+
"description": "The notification's icon.\nSets the notification icon to myicon for drawable resource myicon.\nIf you don't send this key in the request, FCM displays the launcher icon\nspecified in your app manifest.",
91+
"type": "string"
92+
},
93+
"channelId": {
94+
"description": "The [notification's channel\nid](https://developer.android.com/guide/topics/ui/notifiers/notifications#ManageChannels)\n(new in Android O). The app must create a channel with this channel ID\nbefore any notification with this channel ID is received. If you don't send\nthis channel ID in the request, or if the channel ID provided has not yet\nbeen created by the app, FCM uses the channel ID specified in the app\nmanifest.",
95+
"type": "string"
96+
},
97+
"clickAction": {
98+
"description": "The action associated with a user click on the notification.\nIf specified, an activity with a matching intent filter is launched when\na user clicks on the notification.",
99+
"type": "string"
100+
},
101+
"color": {
102+
"type": "string",
103+
"description": "The notification's icon color, expressed in #rrggbb format."
104+
},
105+
"tag": {
106+
"description": "Identifier used to replace existing notifications in the notification\ndrawer.\nIf not specified, each request creates a new notification.\nIf specified and a notification with the same tag is already being shown,\nthe new notification replaces the existing one in the notification drawer.",
107+
"type": "string"
108+
},
109+
"titleLocKey": {
110+
"description": "The key to the title string in the app's string resources to use to\nlocalize the title text to the user's current localization.\nSee [String Resources](https://goo.gl/NdFZGI) for more information.",
111+
"type": "string"
112+
},
113+
"sound": {
114+
"type": "string",
115+
"description": "The sound to play when the device receives the notification.\nSupports \"default\" or the filename of a sound resource bundled in the app.\nSound files must reside in /res/raw/."
116+
},
117+
"title": {
118+
"description": "The notification's title. If present, it will override\ngoogle.firebase.fcm.v1.Notification.title.",
119+
"type": "string"
120+
},
121+
"bodyLocKey": {
122+
"description": "The key to the body string in the app's string resources to use to localize\nthe body text to the user's current localization.\nSee [String Resources](https://goo.gl/NdFZGI) for more information.",
123+
"type": "string"
124+
},
125+
"bodyLocArgs": {
126+
"description": "Variable string values to be used in place of the format specifiers in\nbody_loc_key to use to localize the body text to the user's current\nlocalization.\nSee [Formatting and Styling](https://goo.gl/MalYE3) for more information.",
127+
"type": "array",
128+
"items": {
129+
"type": "string"
130+
}
131+
},
132+
"titleLocArgs": {
133+
"description": "Variable string values to be used in place of the format specifiers in\ntitle_loc_key to use to localize the title text to the user's current\nlocalization.\nSee [Formatting and Styling](https://goo.gl/MalYE3) for more information.",
134+
"type": "array",
135+
"items": {
136+
"type": "string"
137+
}
138+
},
139+
"body": {
140+
"type": "string",
141+
"description": "The notification's body text. If present, it will override\ngoogle.firebase.fcm.v1.Notification.body."
142+
}
143+
},
144+
"id": "AndroidNotification"
145+
},
146+
"WebpushConfig": {
147+
"description": "[Webpush protocol](https://tools.ietf.org/html/rfc8030) options.",
148+
"type": "object",
149+
"properties": {
150+
"data": {
151+
"type": "object",
152+
"additionalProperties": {
153+
"type": "string"
154+
},
155+
"description": "Arbitrary key/value payload. If present, it will override\ngoogle.firebase.fcm.v1.Message.data."
156+
},
157+
"notification": {
158+
"additionalProperties": {
159+
"description": "Properties of the object.",
160+
"type": "any"
161+
},
162+
"description": "Web Notification options as a JSON object. Supports Notification instance\nproperties as defined in [Web Notification\nAPI](https://developer.mozilla.org/en-US/docs/Web/API/Notification). If\npresent, \"title\" and \"body\" fields override\n[google.firebase.fcm.v1.Notification.title] and\n[google.firebase.fcm.v1.Notification.body].",
163+
"type": "object"
164+
},
165+
"fcmOptions": {
166+
"$ref": "WebpushFcmOptions",
167+
"description": "Options for features provided by the FCM SDK for Web."
168+
},
169+
"headers": {
170+
"additionalProperties": {
171+
"type": "string"
172+
},
173+
"description": "HTTP headers defined in webpush protocol. Refer to\n[Webpush protocol](https://tools.ietf.org/html/rfc8030#section-5) for\nsupported headers, e.g. \"TTL\": \"15\".",
174+
"type": "object"
175+
}
176+
},
177+
"id": "WebpushConfig"
178+
},
179+
"WebpushFcmOptions": {
180+
"properties": {
181+
"link": {
182+
"description": "The link to open when the user clicks on the notification.\nFor all URL values, HTTPS is required.",
183+
"type": "string"
184+
}
185+
},
186+
"id": "WebpushFcmOptions",
187+
"description": "Options for features provided by the FCM SDK for Web.",
188+
"type": "object"
189+
},
190+
"SendMessageRequest": {
191+
"type": "object",
192+
"properties": {
193+
"validateOnly": {
194+
"description": "Flag for testing the request without actually delivering the message.",
195+
"type": "boolean"
196+
},
197+
"message": {
198+
"$ref": "Message",
199+
"description": "Required. Message to send."
200+
}
201+
},
202+
"id": "SendMessageRequest",
203+
"description": "Request to send a message to specified target."
204+
},
205+
"Message": {
206+
"description": "Message to send by Firebase Cloud Messaging Service.",
207+
"type": "object",
208+
"properties": {
209+
"token": {
210+
"description": "Registration token to send a message to.",
211+
"type": "string"
212+
},
213+
"android": {
214+
"$ref": "AndroidConfig",
215+
"description": "Input only. Android specific options for messages sent through\n[FCM connection server](https://goo.gl/4GLdUl)."
216+
},
217+
"condition": {
218+
"description": "Condition to send a message to,\ne.g. \"'foo' in topics && 'bar' in topics\".",
219+
"type": "string"
220+
},
221+
"apns": {
222+
"$ref": "ApnsConfig",
223+
"description": "Input only. [Apple Push Notification Service](https://goo.gl/MXRTPa)\nspecific options."
224+
},
225+
"webpush": {
226+
"$ref": "WebpushConfig",
227+
"description": "Input only. [Webpush protocol](https://tools.ietf.org/html/rfc8030)\noptions."
228+
},
229+
"name": {
230+
"type": "string",
231+
"description": "Output Only. The identifier of the message sent, in the format of\n`projects/*/messages/{message_id}`."
232+
},
233+
"topic": {
234+
"description": "Topic name to send a message to, e.g. \"weather\".\nNote: \"/topics/\" prefix should not be provided.",
235+
"type": "string"
236+
},
237+
"notification": {
238+
"$ref": "Notification",
239+
"description": "Input only. Basic notification template to use across all platforms."
240+
},
241+
"data": {
242+
"description": "Input only. Arbitrary key/value payload.",
243+
"type": "object",
244+
"additionalProperties": {
245+
"type": "string"
246+
}
247+
}
248+
},
249+
"id": "Message"
250+
}
251+
},
252+
"icons": {
253+
"x16": "http://www.google.com/images/icons/product/search-16.gif",
254+
"x32": "http://www.google.com/images/icons/product/search-32.gif"
255+
},
256+
"protocol": "rest",
257+
"auth": {
258+
"oauth2": {
259+
"scopes": {
260+
"https://www.googleapis.com/auth/cloud-platform": {
261+
"description": "View and manage your data across Google Cloud Platform services"
262+
}
263+
}
264+
}
265+
},
266+
"rootUrl": "https://fcm.googleapis.com/",
267+
"ownerDomain": "google.com",
268+
"name": "fcm",
269+
"batchPath": "batch",
270+
"fullyEncodeReservedExpansion": true,
271+
"title": "Firebase Cloud Messaging API",
272+
"ownerName": "Google",
273+
"resources": {
274+
"projects": {
275+
"resources": {
276+
"messages": {
277+
"methods": {
278+
"send": {
279+
"description": "Send a message to specified target (a registration token, topic\nor condition).",
280+
"request": {
281+
"$ref": "SendMessageRequest"
282+
},
283+
"response": {
284+
"$ref": "Message"
285+
},
286+
"parameterOrder": [
287+
"parent"
288+
],
289+
"httpMethod": "POST",
290+
"parameters": {
291+
"parent": {
292+
"description": "Required. It contains the Firebase project id (i.e. the unique identifier\nfor your Firebase project), in the format of `projects/{project_id}`.\nFor legacy support, the numeric project number with no padding is also\nsupported in the format of `projects/{project_number}`.",
293+
"required": true,
294+
"type": "string",
295+
"pattern": "^projects/[^/]+$",
296+
"location": "path"
297+
}
298+
},
299+
"scopes": [
300+
"https://www.googleapis.com/auth/cloud-platform"
301+
],
302+
"flatPath": "v1/projects/{projectsId}/messages:send",
303+
"path": "v1/{+parent}/messages:send",
304+
"id": "fcm.projects.messages.send"
305+
}
306+
}
307+
}
308+
}
309+
}
310+
},
311+
"parameters": {
312+
"upload_protocol": {
313+
"location": "query",
314+
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
315+
"type": "string"
316+
},
317+
"prettyPrint": {
318+
"location": "query",
319+
"description": "Returns response with indentations and line breaks.",
320+
"type": "boolean",
321+
"default": "true"
322+
},
323+
"quotaUser": {
324+
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
325+
"type": "string",
326+
"location": "query"
327+
},
328+
"fields": {
329+
"location": "query",
330+
"description": "Selector specifying which fields to include in a partial response.",
331+
"type": "string"
332+
},
333+
"uploadType": {
334+
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
335+
"type": "string",
336+
"location": "query"
337+
},
338+
"callback": {
339+
"location": "query",
340+
"description": "JSONP",
341+
"type": "string"
342+
},
343+
"oauth_token": {
344+
"description": "OAuth 2.0 token for the current user.",
345+
"type": "string",
346+
"location": "query"
347+
},
348+
"$.xgafv": {
349+
"location": "query",
350+
"enum": [
351+
"1",
352+
"2"
353+
],
354+
"description": "V1 error format.",
355+
"type": "string",
356+
"enumDescriptions": [
357+
"v1 error format",
358+
"v2 error format"
359+
]
360+
},
361+
"alt": {
362+
"enum": [
363+
"json",
364+
"media",
365+
"proto"
366+
],
367+
"type": "string",
368+
"enumDescriptions": [
369+
"Responses with Content-Type of application/json",
370+
"Media download with context-dependent Content-Type",
371+
"Responses with Content-Type of application/x-protobuf"
372+
],
373+
"location": "query",
374+
"description": "Data format for response.",
375+
"default": "json"
376+
},
377+
"access_token": {
378+
"description": "OAuth access token.",
379+
"type": "string",
380+
"location": "query"
381+
},
382+
"key": {
383+
"location": "query",
384+
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
385+
"type": "string"
386+
}
387+
},
388+
"version": "v1",
389+
"baseUrl": "https://fcm.googleapis.com/",
390+
"kind": "discovery#restDescription",
391+
"description": "FCM send API that provides a cross-platform messaging solution to reliably deliver messages at no cost.",
392+
"servicePath": "",
393+
"basePath": "",
394+
"id": "fcm:v1",
395+
"documentationLink": "https://firebase.google.com/docs/cloud-messaging",
396+
"revision": "20190425"
397+
}

0 commit comments

Comments
 (0)