-
Notifications
You must be signed in to change notification settings - Fork 25
/
notification_queue_messages.yaml
92 lines (92 loc) · 2.06 KB
/
notification_queue_messages.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
swagger: "2.0"
info:
version: 1.0.0
title: Push notifcation types
paths: []
definitions:
Platform:
type: string
description: The platform type where the installation happened.
x-extensible-enum:
- apns
- gcm
NotificationMessageKind:
type: string
enum:
- "Notify"
- "CreateOrUpdateInstallation"
- "DeleteInstallation"
InstallationId:
type: string
minLength: 1
NotifyMessagePayload:
title: Notification payload
description: Push notification payload
type: object
properties:
message:
type: string
message_id:
type: string
title:
type: string
required:
- message
- message_id
- title
NotifyMessage:
title: Notify message
description: Message sent to the queue for a new notify event
type: object
properties:
installationId:
$ref: '#/definitions/InstallationId'
payload:
$ref: '#/definitions/NotifyMessagePayload'
kind:
type: string
enum:
- "Notify"
required:
- installationId
- payload
- kind
CreateOrUpdateInstallationMessage:
title: CreateOrUpdate message
description: Message sent to the queue for a new CreateOrUpdate event
type: object
properties:
installationId:
$ref: '#/definitions/InstallationId'
kind:
type: string
enum:
- "CreateOrUpdateInstallation"
platform:
$ref: '#/definitions/Platform'
pushChannel:
type: string
tags:
type: array
items:
type: string
required:
- installationId
- platform
- pushChannel
- tags
- kind
DeleteInstallationMessage:
title: Delete Installation message
description: Message sent to the queue for a new Delete Installation event
type: object
properties:
installationId:
$ref: '#/definitions/InstallationId'
kind:
type: string
enum:
- DeleteInstallation
required:
- installationId
- kind