-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.graphql
701 lines (629 loc) · 16.9 KB
/
index.graphql
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
#Copyright (C) 2023 Acoustic, L.P. All rights reserved.
#
#NOTICE: This file contains material that is proprietary to Acoustic, L.P. and/or other developers.
#No license is granted under any intellectual or industrial property rights of Acoustic, L.P.
#except as may be provided in an agreement with Acoustic, L.P. Any unauthorized copying or
#distribution of content from this file is prohibited.
schema {
query: Query
mutation: Mutation
}
interface SubscriptionGroup {
"""Id"""
id: ID!
type: SubscriptionGroupType!
name: String!
status: SubscriptionGroupStatus!
outgoingCode: SubscriptionGroupCode
shortenLinks: Boolean
creationDate: DateTime
modifiedDate: DateTime
}
interface MessageContent {
id: ID!
name: String!
tags: [String!]!
status: MessageSendStatus!
dataSetId: String
tracking: MessageContentTracking!
}
enum SubscriptionGroupType {
SMS_ONE_WAY_OPT_IN
SMS_TWO_WAY_OPT_IN
SMS_DOUBLE_OPT_IN
SMS_GLOBAL_OPT_OUT
}
enum SubscriptionGroupStatus {
DRAFT
RUNNING
COMPLETE
SCHEDULED
PRE_LAUNCH
PAUSED
ARCHIVED
}
enum MessageSendStatus {
DRAFT
SCHEDULED
SENDING
SENT
CANCELLING
FAILED
OTHER
}
type MessageContentTracking {
createdAt: DateTime!
lastModifiedAt: DateTime!
}
"""
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
"""
scalar DateTime
interface Journey {
type: JourneyType!
id: ID!
name: String!
incomingCode: SubscriptionGroupCode!
outgoingCode: SubscriptionGroupCode!
keywords: [String!]!
duration: DurationType
responseMessage: MessageType!
characterMapping: Boolean!
shortenLinks: Boolean!
status: SubscriptionGroupStatus!
creationDate: DateTime
modifiedDate: DateTime
}
enum JourneyType {
SMS_AUTORESPONDER
SMS_GLOBAL_HELP
SMS_GLOBAL_CATCHALL
}
type PageInfoWithCount {
startCursor: String
endCursor: String
hasPreviousPage: Boolean!
hasNextPage: Boolean!
count: Int!
}
type Keyword {
id: ID!
name: String!
creationDate: DateTime
modifiedDate: DateTime
}
type Code {
id: ID!
name: String!
type: CodeType!
supportsInboundMessaging: Boolean!
description: String
creationDate: DateTime
modifiedDate: DateTime
keywords: [Keyword!]
}
enum CodeType {
SMS_TRANSACTIONAL
SMS_PROMOTIONAL
SMS_TRANSCRUB
}
type SubscriptionGroupCode {
id: ID!
name: String!
type: CodeType!
}
type DurationType {
startDate: DateTime
endDate: DateTime
}
type MessageType {
messageText: String!
}
type ActionMessageType {
messageText: String!
actionKeyword: String!
}
type TimedMessageType {
messageText: String!
triggerDate: DateTime!
}
type SendingHoursType {
"""startHour represents a {hour}:{minute} format, where the value of hour is between 00 and 23 and the value of minute is between 00 and 59. Example values are 00:15, 23:59"""
startHour: String
"""endHour represents a {hour}:{minute} format, where the value of hour is between 00 and 23 and the value of minute is between 00 and 59. Example values are 00:15, 23:59"""
endHour: String
}
type SessionDuration {
hours: String
minutes: String
}
type SMSOneWayOptIn implements SubscriptionGroup{
"""Id"""
id: ID!
type: SubscriptionGroupType!
name: String!
status: SubscriptionGroupStatus!
outgoingCode: SubscriptionGroupCode
shortenLinks: Boolean
creationDate: DateTime
modifiedDate: DateTime
}
type SMSTwoWayOptIn implements SubscriptionGroup{
"""Id"""
id: ID!
type: SubscriptionGroupType!
name: String!
status: SubscriptionGroupStatus!
outgoingCode: SubscriptionGroupCode
shortenLinks: Boolean
creationDate: DateTime
modifiedDate: DateTime
incomingCode: SubscriptionGroupCode
timeZoneName: String
sendingHours: SendingHoursType
duration: DurationType
keywords: [String!]!
welcomeMessage: MessageType!
optOutMessage: ActionMessageType!
helpMessage: ActionMessageType!
alreadyOptedInMessage: MessageType
beforeStartMessage: TimedMessageType
afterEndMessage: TimedMessageType
characterMapping: Boolean!
}
type SMSDoubleOptIn implements SubscriptionGroup{
"""Id"""
id: ID!
type: SubscriptionGroupType!
name: String!
status: SubscriptionGroupStatus!
outgoingCode: SubscriptionGroupCode
shortenLinks: Boolean
creationDate: DateTime
modifiedDate: DateTime
incomingCode: SubscriptionGroupCode
twoWayOptInIds: [String!]!
optIn: Boolean!
keywords: [String!]
startMessage: MessageType!
confirmationMessage: ActionMessageType!
stopMessage: ActionMessageType!
helpMessage: MessageType!
timeZoneName: String
duration: DurationType
sessionDuration: SessionDuration
beforeStartMessage: TimedMessageType
afterEndMessage: TimedMessageType
characterMapping: Boolean!
}
type GlobalOptOut implements SubscriptionGroup{
"""Id"""
id: ID!
type: SubscriptionGroupType!
name: String!
status: SubscriptionGroupStatus!
outgoingCode: SubscriptionGroupCode
shortenLinks: Boolean
creationDate: DateTime
modifiedDate: DateTime
incomingCode: SubscriptionGroupCode
keywords: [String!]!
stopMessage: MessageType!
characterMapping: Boolean!
}
type SubscriptionGroupConnection {
edges: [SubscriptionGroupEdge!]!
pageInfo: PageInfoWithCount!
}
type SubscriptionGroupEdge {
node: SubscriptionGroup!
cursor: String!
}
type Autoresponder implements Journey {
type: JourneyType!
id: ID!
name: String!
incomingCode: SubscriptionGroupCode!
outgoingCode: SubscriptionGroupCode!
keywords: [String!]!
duration: DurationType
responseMessage: MessageType!
characterMapping: Boolean!
shortenLinks: Boolean!
status: SubscriptionGroupStatus!
creationDate: DateTime
modifiedDate: DateTime
twoWayOptInIds: [String!]
timeZoneName: String
}
type GlobalJourney implements Journey{
type: JourneyType!
id: ID!
name: String!
incomingCode: SubscriptionGroupCode!
outgoingCode: SubscriptionGroupCode!
keywords: [String!]!
duration: DurationType
responseMessage: MessageType!
characterMapping: Boolean!
shortenLinks: Boolean!
status: SubscriptionGroupStatus!
creationDate: DateTime
modifiedDate: DateTime
}
type SmsMessage implements MessageContent {
id: ID!
name: String!
tags: [String!]!
status: MessageSendStatus!
dataSetId: String
tracking: MessageContentTracking!
"""Text body of message."""
body: String
"""
Publicly accessible URL to media file attached to MMS message. Supported file formats: jpg, jpeg, png, gif, tiff, bmp, ics, ical, ifb, icalendar, vcf, csv, pdf, rtf, mp4, mov, webm, mpeg.
"""
mediaLink: String
"""Allows to shorten links in text body and enables link tracking."""
shortenLinks: Boolean!
"""
Allows to swap non-GSM standard characters to reduce text body character count.
"""
characterMapping: Boolean!
"""Identifiers of SMS subscription groups."""
subscriptionGroupIds: [String!]!
}
type SmsMessageConnection {
edges: [SmsMessageEdge!]!
pageInfo: PageInfoWithCount!
nodes: [SmsMessage!]!
}
type SmsMessageEdge {
node: SmsMessage!
cursor: String!
}
type DeleteSmsMessageResponse {
success: Boolean!
}
type Mailing {
id: ID!
message: MessageContent!
sendDateUTC: DateTime
scheduledDateUTC: DateTime
"""
Specifies timezone in which scheduledDate was provided. Supported format according to IANA Time Zone Database.
"""
scheduledTimezone: String
"""
Specifies the maximum number messages to be sent per hour. Provided value would be rounded up to a multiple of 1000.
"""
maxSendsPerHour: Int
}
type MailingConnection {
edges: [MailingEdge!]!
pageInfo: PageInfoWithCount!
nodes: [Mailing!]!
}
type MailingEdge {
node: Mailing!
cursor: String!
}
type TestSendMessageResponse {
accepted: Boolean!
}
input DurationInput {
startDate: DateTime
endDate: DateTime
}
input MessageInput {
messageText: String!
}
input ActionMessageInput {
messageText: String!
actionKeyword: String!
}
input TimedMessageInput {
messageText: String!
triggerDate: DateTime!
}
input SendingHoursInput {
startHour: String
endHour: String
}
input SessionDurationInput {
hours: String
minutes: String
}
input MessageContentFilter {
name: String
tags: ArrayFilter
statuses: [MessageSendStatus!]
lastModified: DateFilter
created: DateFilter
}
input ArrayFilter {
allOf: [String!]
anyOf: [String!]
}
input DateFilter {
from: DateTime
to: DateTime
}
type Query {
CodeAll(channel: CodeChannelType! = SMS): [Code!]!
CodeById(id: ID!, channel: CodeChannelType! = SMS): Code!
CodeByName(name: String!, channel: CodeChannelType! = SMS): Code!
KeywordsByCode(codeId: String!): [Keyword!]!
KeywordsByAggregator(aggregatorId: String!): [Keyword!]!
mobileMessagingAutoresponderAll: [Autoresponder!]!
mobileMessagingAutoresponderById(id: ID!): Autoresponder!
SubscriptionGroupAll(filter: SubscriptionGroupFilter, before: String, after: String, first: Float, last: Float): SubscriptionGroupConnection!
SubscriptionGroupById(id: ID!): SubscriptionGroup!
smsMessages(filter: MessageContentFilter, before: String, after: String, first: Float, last: Float): SmsMessageConnection!
smsMessage(id: ID!): SmsMessage!
mailing(id: ID!): Mailing!
mailings(filter: MessageContentFilter, before: String, after: String, first: Float, last: Float): MailingConnection!
}
enum CodeChannelType {
SMS
}
input SubscriptionGroupFilter {
name: String
parentId: String
types: [SubscriptionGroupType!]
codeIds: [String!]
statuses: [SubscriptionGroupStatus!]
keywords: [String!]
}
type Mutation {
createSmsAutoresponder(createAutoresponderInput: CreateAutoresponderInput!): Autoresponder!
updateMobileMessagingAutoresponder(id: String!, update: UpdateAutoresponder!): Journey!
createOneWayOptIn(create: CreateSMSOneWayOptIn!): SMSOneWayOptIn!
updateOneWayOptIn(id: String!, update: UpdateSMSOneWayOptIn!): SMSOneWayOptIn!
createTwoWayOptIn(create: CreateTwoWayOptIn!): SMSTwoWayOptIn!
updateTwoWayOptIn(id: String!, update: UpdateTwoWayOptIn!): SMSTwoWayOptIn!
createDoubleOptIn(create: CreateSMSDoubleOptIn!): SMSDoubleOptIn!
updateDoubleOptIn(id: String!, update: UpdateSMSDoubleOptIn!): SMSDoubleOptIn!
createGlobalOptOut(create: CreateGlobalOptOut!): GlobalOptOut!
updateGlobalOptOut(id: String!, update: UpdateGlobalOptOut!): GlobalOptOut!
createGlobalCatchAll(createGlobalCatchAllInput: CreateGlobalCatchAllInput!): GlobalJourney!
updateGlobalCatchAll(id: String!, update: UpdateGlobalCatchAllInput!): GlobalJourney!
createGlobalHelp(createGlobalHelpInput: CreateGlobalJourneyInput!): GlobalJourney!
updateGlobalHelp(id: String!, update: UpdateGlobalJourneyInput!): GlobalJourney!
createSmsMessage(createSmsInput: CreateSmsInput!): SmsMessage!
updateSmsMessage(updateSmsInput: UpdateSmsInput!): SmsMessage!
deleteSmsMessage(id: ID!): DeleteSmsMessageResponse!
scheduleMessage(messageId: ID!, scheduleInput: ScheduleInput): Mailing!
testSendMessage(messageId: ID!, testSendInput: TestSendInput!): TestSendMessageResponse!
cancelScheduledMessage(messageId: ID!): Mailing!
}
enum KeywordAction {
STOP
AUTO_REPLY
}
input CreateAutoresponderInput {
name: String!
outgoingCodeId: String!
incomingCodeId: String!
keywords: [String!]!
responseMessage: MessageInput!
characterMapping: Boolean
shortenLinks: Boolean
duration: DurationInput
twoWayOptInIds: [String!]
timeZoneName: String
}
input CreateSMSOneWayOptIn {
name: String!
outgoingCodeId: String!
}
input UpdateSMSOneWayOptIn {
name: String!
outgoingCodeId: String!
status: SubscriptionGroupOperation
}
enum SubscriptionGroupOperation {
PAUSE
RESUME
COMPLETE
}
input CreateTwoWayOptIn {
name: String!
characterMapping: Boolean
shortenLinks: Boolean
outgoingCodeId: String!
incomingCodeId: String!
timeZoneName: String
sendingHours: SendingHoursInput
duration: DurationInput
keywords: [String!]!
welcomeMessage: MessageInput!
optOutMessage: ActionMessageInput!
helpMessage: ActionMessageInput!
alreadyOptedInMessage: MessageInput
beforeStartMessage: TimedMessageInput
afterEndMessage: TimedMessageInput
}
input UpdateTwoWayOptIn {
name: String
characterMapping: Boolean
shortenLinks: Boolean
outgoingCodeId: String
incomingCodeId: String
timeZoneName: String
sendingHours: SendingHoursInput
duration: DurationInput
keywords: [String!]
welcomeMessage: MessageInput
optOutMessage: ActionMessageInput
helpMessage: ActionMessageInput
alreadyOptedInMessage: MessageInput
beforeStartMessage: TimedMessageInput
afterEndMessage: TimedMessageInput
status: SubscriptionGroupOperation
}
input CreateSMSDoubleOptIn {
name: String!
characterMapping: Boolean
shortenLinks: Boolean
outgoingCodeId: String!
incomingCodeId: String!
twoWayOptInIds: [String!]!
optIn: Boolean!
keywords: [String!]
startMessage: MessageInput!
confirmationMessage: ActionMessageInput!
stopMessage: ActionMessageInput!
helpMessage: MessageInput!
timeZoneName: String
duration: DurationInput
sessionDuration: SessionDurationInput
beforeStartMessage: TimedMessageInput
afterEndMessage: TimedMessageInput
}
input UpdateSMSDoubleOptIn {
name: String
characterMapping: Boolean
shortenLinks: Boolean
outgoingCodeId: String
incomingCodeId: String
twoWayOptInIds: [String!]
optIn: Boolean
keywords: [String!]
startMessage: MessageInput
confirmationMessage: ActionMessageInput
stopMessage: ActionMessageInput
helpMessage: MessageInput
timeZoneName: String
duration: DurationInput
sessionDuration: SessionDurationInput
beforeStartMessage: TimedMessageInput
afterEndMessage: TimedMessageInput
status: SubscriptionGroupOperation
}
input CreateGlobalOptOut {
name: String!
characterMapping: Boolean
shortenLinks: Boolean
outgoingCodeId: String!
incomingCodeId: String!
stopMessage: MessageInput!
keywords: [String!]!
}
input UpdateGlobalOptOut {
name: String
characterMapping: Boolean
shortenLinks: Boolean
outgoingCodeId: String
incomingCodeId: String
stopMessage: MessageInput
keywords: [String!]
status: SubscriptionGroupOperation
}
input CreateGlobalCatchAllInput {
name: String!
outgoingCodeId: String!
incomingCodeId: String!
responseMessage: MessageInput!
characterMapping: Boolean
shortenLinks: Boolean
}
input UpdateGlobalCatchAllInput {
name: String
outgoingCodeId: String
incomingCodeId: String
responseMessage: MessageInput
characterMapping: Boolean
shortenLinks: Boolean
status: SubscriptionGroupOperation
}
input UpdateAutoresponder {
name: String
outgoingCodeId: String
incomingCodeId: String
keywords: [String!]
responseMessage: MessageInput
characterMapping: Boolean
shortenLinks: Boolean
duration: DurationInput
twoWayOptInIds: [String!]
timeZoneName: String
status: SubscriptionGroupOperation
}
input CreateGlobalJourneyInput {
name: String!
outgoingCodeId: String!
incomingCodeId: String!
keywords: [String!]!
responseMessage: MessageInput!
characterMapping: Boolean
shortenLinks: Boolean
}
input UpdateGlobalJourneyInput {
name: String
outgoingCodeId: String
incomingCodeId: String
keywords: [String!]
responseMessage: MessageInput
characterMapping: Boolean
shortenLinks: Boolean
status: SubscriptionGroupOperation
}
input CreateSmsInput {
name: String!
tags: [String!]
dataSetId: String
"""Text body of message."""
body: String
"""
Publicly accessible URL to media file attached to MMS message. Supported file formats: jpg, jpeg, png, gif, tiff, bmp, ics, ical, ifb, icalendar, vcf, csv, pdf, rtf, mp4, mov, webm, mpeg.
"""
mediaLink: String
"""Allows to shorten links in text body and enables link tracking."""
shortenLinks: Boolean = true
"""
Allows to swap non-GSM standard characters to reduce text body character count.
"""
characterMapping: Boolean = false
"""Identifiers of SMS subscription groups."""
subscriptionGroupIds: [String!]
}
input UpdateSmsInput {
id: ID!
name: String
tags: [String!]
dataSetId: String
"""Text body of message."""
body: String
"""
Publicly accessible URL to media file attached to MMS message. Supported file formats: jpg, jpeg, png, gif, tiff, bmp, ics, ical, ifb, icalendar, vcf, csv, pdf, rtf, mp4, mov, webm, mpeg.
"""
mediaLink: String
"""Allows to shorten links in text body and enables link tracking."""
shortenLinks: Boolean = true
"""
Allows to swap non-GSM standard characters to reduce text body character count.
"""
characterMapping: Boolean = false
"""Identifiers of SMS subscription groups."""
subscriptionGroupIds: [String!]
}
input ScheduleInput {
scheduledDate: DateTime
"""
Specifies timezone in which scheduledDate was provided. Supported format according to IANA Time Zone Database.
"""
scheduledTimezone: String
"""
Specifies the maximum number messages to be sent per hour. Provided value would be rounded up to a multiple of 1000.
"""
maxSendsPerHour: Int
}
input TestSendInput {
"""Specifies recipient's phone number, including country code."""
destinationPhoneNumber: String
"""
Determines sender's identity, based on a phone number with country code, stored in data set.
"""
identityPhoneNumber: String
}