@@ -42,6 +42,15 @@ public static SubscriptionCollection list() throws InvalidException, Authorizati
4242 return DataResource .list (SENTINEL , "subscriptions" , SubscriptionCollection .class );
4343 }
4444
45+ public static Subscription ping (String id ) throws InvalidException , AuthorizationException {
46+ final HttpClient resource = new HttpClient (UriBuilder .newBuilder ().path ("subscriptions" ).path (id ).path ("ping" ).build ());
47+ return resource .post (Subscription .class , null );
48+ }
49+
50+ public static Subscription ping (Subscription subscription ) throws InvalidException , AuthorizationException {
51+ return ping (subscription .getId ());
52+ }
53+
4554 public static NotificationCollection sentFeed (String id ) throws InvalidException , AuthorizationException {
4655 final URI feedURI = UriBuilder .newBuilder ()
4756 .path ("subscriptions" )
@@ -72,8 +81,16 @@ public static class Topic {
7281
7382 private final static String CONVERSATION_NAME = "conversation" ;
7483
84+ private final static String CONVERSATION_PART_NAME = "conversation_part" ;
85+
7586 private static final String USER_NAME = "user" ;
7687
88+ private static final String CONTACT_NAME = "contact" ;
89+
90+ private static final String VISITOR_NAME = "visitor" ;
91+
92+ private static final String EVENT_NAME = "event" ;
93+
7794 public static final Topic PING = new Topic ("ping" , SUBTYPE_WILDCARD );
7895
7996 public static final Topic COMPANY = new Topic (COMPANY_NAME , SUBTYPE_WILDCARD );
@@ -92,20 +109,42 @@ public static class Topic {
92109
93110 public static final Topic CONVERSATION_ADMIN_CLOSED = new Topic (CONVERSATION_NAME , "admin.closed" );
94111
95- public static final Topic CONVERSATION_ADMIN_OPEN = new Topic (CONVERSATION_NAME , "admin.open " );
112+ public static final Topic CONVERSATION_ADMIN_OPEN = new Topic (CONVERSATION_NAME , "admin.opened " );
96113
97114 public static final Topic CONVERSATION_ADMIN_NOTED = new Topic (CONVERSATION_NAME , "admin.noted" );
98115
116+ public static final Topic CONVERSATION_ADMIN_SINGLE_CREATED = new Topic (CONVERSATION_NAME , "admin.single.created" );
117+
118+ public static final Topic CONVERSATION_PART_TAG_CREATED = new Topic (CONVERSATION_PART_NAME , "tag.created" );
119+
99120 public static final Topic USER = new Topic (USER_NAME , SUBTYPE_WILDCARD );
100121
101122 public static final Topic USER_CREATED = new Topic (USER_NAME , "created" );
102123
124+ public static final Topic USER_DELETED = new Topic (USER_NAME , "deleted" );
125+
126+ public static final Topic USER_EMAIL_UPDATED = new Topic (USER_NAME , "email.updated" );
127+
103128 public static final Topic USER_UNSUBSCRIBED = new Topic (USER_NAME , "unsubscribed" );
104129
105130 public static final Topic USER_TAG_CREATED = new Topic (USER_NAME , "tag.created" );
106131
107132 public static final Topic USER_TAG_DELETED = new Topic (USER_NAME , "tag.deleted" );
108133
134+ public static final Topic CONTACT = new Topic (CONTACT_NAME , SUBTYPE_WILDCARD );
135+
136+ public static final Topic CONTACT_ADDED_EMAIL = new Topic (CONTACT_NAME , "added_email" );
137+
138+ public static final Topic CONTACT_CREATED = new Topic (CONTACT_NAME , "created" );
139+
140+ public static final Topic CONTACT_SIGNED_UP = new Topic (CONTACT_NAME , "signed_up" );
141+
142+ public static final Topic VISITOR = new Topic (VISITOR_NAME , SUBTYPE_WILDCARD );
143+
144+ public static final Topic VISITOR_SIGNED_UP = new Topic (VISITOR_NAME , "signed_up" );
145+
146+ public static final Topic EVENT_CREATED = new Topic (EVENT_NAME , "created" );
147+
109148 public static final Topic ALL_TOPIC = valueOf ("all" );
110149
111150 public static Topic valueOf (String type ) throws IllegalArgumentException {
0 commit comments