@knocklabs/node 1.21.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/client.d.mts +21 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +21 -1
- package/client.d.ts.map +1 -1
- package/client.js +43 -2
- package/client.js.map +1 -1
- package/client.mjs +43 -2
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/objects/bulk.d.mts +5 -19
- package/resources/objects/bulk.d.mts.map +1 -1
- package/resources/objects/bulk.d.ts +5 -19
- package/resources/objects/bulk.d.ts.map +1 -1
- package/resources/objects/bulk.js +1 -19
- package/resources/objects/bulk.js.map +1 -1
- package/resources/objects/bulk.mjs +1 -19
- package/resources/objects/bulk.mjs.map +1 -1
- package/resources/objects/objects.d.mts +13 -68
- package/resources/objects/objects.d.mts.map +1 -1
- package/resources/objects/objects.d.ts +13 -68
- package/resources/objects/objects.d.ts.map +1 -1
- package/resources/objects/objects.js +1 -0
- package/resources/objects/objects.js.map +1 -1
- package/resources/objects/objects.mjs +1 -0
- package/resources/objects/objects.mjs.map +1 -1
- package/resources/recipients/channel-data.d.mts +94 -73
- package/resources/recipients/channel-data.d.mts.map +1 -1
- package/resources/recipients/channel-data.d.ts +94 -73
- package/resources/recipients/channel-data.d.ts.map +1 -1
- package/resources/recipients/index.d.mts +2 -2
- package/resources/recipients/index.d.mts.map +1 -1
- package/resources/recipients/index.d.ts +2 -2
- package/resources/recipients/index.d.ts.map +1 -1
- package/resources/recipients/index.js.map +1 -1
- package/resources/recipients/index.mjs.map +1 -1
- package/resources/recipients/preferences.d.mts +17 -75
- package/resources/recipients/preferences.d.mts.map +1 -1
- package/resources/recipients/preferences.d.ts +17 -75
- package/resources/recipients/preferences.d.ts.map +1 -1
- package/resources/recipients/recipients.d.mts +4 -4
- package/resources/recipients/recipients.d.mts.map +1 -1
- package/resources/recipients/recipients.d.ts +4 -4
- package/resources/recipients/recipients.d.ts.map +1 -1
- package/resources/recipients/recipients.js.map +1 -1
- package/resources/recipients/recipients.mjs.map +1 -1
- package/resources/tenants/bulk.d.mts +1 -1
- package/resources/tenants/bulk.d.ts +1 -1
- package/resources/tenants/bulk.js +1 -1
- package/resources/tenants/bulk.mjs +1 -1
- package/resources/tenants/tenants.d.mts +9 -0
- package/resources/tenants/tenants.d.mts.map +1 -1
- package/resources/tenants/tenants.d.ts +9 -0
- package/resources/tenants/tenants.d.ts.map +1 -1
- package/resources/tenants/tenants.js +1 -0
- package/resources/tenants/tenants.js.map +1 -1
- package/resources/tenants/tenants.mjs +1 -0
- package/resources/tenants/tenants.mjs.map +1 -1
- package/resources/users/feeds.d.mts +7 -0
- package/resources/users/feeds.d.mts.map +1 -1
- package/resources/users/feeds.d.ts +7 -0
- package/resources/users/feeds.d.ts.map +1 -1
- package/resources/users/users.d.mts +4 -68
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +4 -68
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/src/client.ts +52 -1
- package/src/resources/objects/bulk.ts +6 -19
- package/src/resources/objects/objects.ts +19 -80
- package/src/resources/recipients/channel-data.ts +117 -83
- package/src/resources/recipients/index.ts +6 -0
- package/src/resources/recipients/preferences.ts +17 -87
- package/src/resources/recipients/recipients.ts +12 -0
- package/src/resources/tenants/bulk.ts +1 -1
- package/src/resources/tenants/tenants.ts +11 -0
- package/src/resources/users/feeds.ts +8 -0
- package/src/resources/users/users.ts +8 -80
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -298,6 +298,7 @@ export class Objects extends APIResource {
|
|
|
298
298
|
* },
|
|
299
299
|
* },
|
|
300
300
|
* locale: 'en-US',
|
|
301
|
+
* name: 'My product',
|
|
301
302
|
* preferences: {
|
|
302
303
|
* default: {
|
|
303
304
|
* channel_types: { email: true },
|
|
@@ -444,6 +445,11 @@ export interface InlineObjectRequest {
|
|
|
444
445
|
*/
|
|
445
446
|
created_at?: string | null;
|
|
446
447
|
|
|
448
|
+
/**
|
|
449
|
+
* An optional name for the object.
|
|
450
|
+
*/
|
|
451
|
+
name?: string | null;
|
|
452
|
+
|
|
447
453
|
/**
|
|
448
454
|
* Inline set preferences for a recipient, where the key is the preference set id.
|
|
449
455
|
* Preferences that are set inline will be merged into any existing preferences
|
|
@@ -683,6 +689,11 @@ export interface ObjectSetParams {
|
|
|
683
689
|
*/
|
|
684
690
|
locale?: string | null;
|
|
685
691
|
|
|
692
|
+
/**
|
|
693
|
+
* An optional name for the object.
|
|
694
|
+
*/
|
|
695
|
+
name?: string | null;
|
|
696
|
+
|
|
686
697
|
/**
|
|
687
698
|
* Inline set preferences for a recipient, where the key is the preference set id.
|
|
688
699
|
* Preferences that are set inline will be merged into any existing preferences
|
|
@@ -706,47 +717,16 @@ export interface ObjectSetChannelDataParams {
|
|
|
706
717
|
* Channel data for a given channel type.
|
|
707
718
|
*/
|
|
708
719
|
data:
|
|
709
|
-
|
|
|
710
|
-
|
|
|
711
|
-
|
|
|
720
|
+
| ChannelDataAPI.PushChannelDataTokensOnly
|
|
721
|
+
| ChannelDataAPI.PushChannelDataDevicesOnly
|
|
722
|
+
| ChannelDataAPI.AwsSnsPushChannelDataTargetArnsOnly
|
|
723
|
+
| ChannelDataAPI.AwsSnsPushChannelDataDevicesOnly
|
|
724
|
+
| ChannelDataAPI.OneSignalChannelDataPlayerIDsOnly
|
|
712
725
|
| ChannelDataAPI.SlackChannelData
|
|
713
726
|
| ChannelDataAPI.MsTeamsChannelData
|
|
714
727
|
| ChannelDataAPI.DiscordChannelData;
|
|
715
728
|
}
|
|
716
729
|
|
|
717
|
-
export namespace ObjectSetChannelDataParams {
|
|
718
|
-
/**
|
|
719
|
-
* Push channel data.
|
|
720
|
-
*/
|
|
721
|
-
export interface PushChannelDataTokensOnly {
|
|
722
|
-
/**
|
|
723
|
-
* A list of push channel tokens.
|
|
724
|
-
*/
|
|
725
|
-
tokens: Array<string>;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
/**
|
|
729
|
-
* AWS SNS push channel data.
|
|
730
|
-
*/
|
|
731
|
-
export interface AwssnsPushChannelDataTargetArNsOnly {
|
|
732
|
-
/**
|
|
733
|
-
* A list of platform endpoint ARNs. See
|
|
734
|
-
* [Setting up an Amazon SNS platform endpoint for mobile notifications](https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html).
|
|
735
|
-
*/
|
|
736
|
-
target_arns: Array<string>;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* OneSignal channel data.
|
|
741
|
-
*/
|
|
742
|
-
export interface OneSignalChannelDataPlayerIDsOnly {
|
|
743
|
-
/**
|
|
744
|
-
* A list of OneSignal player IDs.
|
|
745
|
-
*/
|
|
746
|
-
player_ids: Array<string>;
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
|
|
750
730
|
export interface ObjectSetPreferencesParams {
|
|
751
731
|
/**
|
|
752
732
|
* Controls how the preference set is persisted. 'replace' will completely replace
|
|
@@ -770,7 +750,7 @@ export interface ObjectSetPreferencesParams {
|
|
|
770
750
|
/**
|
|
771
751
|
* Channel preferences.
|
|
772
752
|
*/
|
|
773
|
-
channels?: { [key: string]: boolean |
|
|
753
|
+
channels?: { [key: string]: boolean | PreferencesAPI.PreferenceSetChannelSetting } | null;
|
|
774
754
|
|
|
775
755
|
/**
|
|
776
756
|
* Whether the recipient is subscribed to commercial communications. When false,
|
|
@@ -801,9 +781,7 @@ export namespace ObjectSetPreferencesParams {
|
|
|
801
781
|
/**
|
|
802
782
|
* Channel preferences.
|
|
803
783
|
*/
|
|
804
|
-
channels?: {
|
|
805
|
-
[key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
|
|
806
|
-
} | null;
|
|
784
|
+
channels?: { [key: string]: boolean | PreferencesAPI.PreferenceSetChannelSetting } | null;
|
|
807
785
|
|
|
808
786
|
/**
|
|
809
787
|
* A list of conditions to apply to a channel type.
|
|
@@ -811,30 +789,6 @@ export namespace ObjectSetPreferencesParams {
|
|
|
811
789
|
conditions?: Array<Shared.Condition> | null;
|
|
812
790
|
}
|
|
813
791
|
|
|
814
|
-
export namespace PreferenceSetWorkflowCategorySettingObject {
|
|
815
|
-
/**
|
|
816
|
-
* A set of settings for a specific channel. Currently, this can only be a list of
|
|
817
|
-
* conditions to apply.
|
|
818
|
-
*/
|
|
819
|
-
export interface PreferenceSetChannelSetting {
|
|
820
|
-
/**
|
|
821
|
-
* A list of conditions to apply to a specific channel.
|
|
822
|
-
*/
|
|
823
|
-
conditions: Array<Shared.Condition>;
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
/**
|
|
828
|
-
* A set of settings for a specific channel. Currently, this can only be a list of
|
|
829
|
-
* conditions to apply.
|
|
830
|
-
*/
|
|
831
|
-
export interface PreferenceSetChannelSetting {
|
|
832
|
-
/**
|
|
833
|
-
* A list of conditions to apply to a specific channel.
|
|
834
|
-
*/
|
|
835
|
-
conditions: Array<Shared.Condition>;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
792
|
/**
|
|
839
793
|
* The settings object for a workflow or category, where you can specify channel
|
|
840
794
|
* types or conditions.
|
|
@@ -848,28 +802,13 @@ export namespace ObjectSetPreferencesParams {
|
|
|
848
802
|
/**
|
|
849
803
|
* Channel preferences.
|
|
850
804
|
*/
|
|
851
|
-
channels?: {
|
|
852
|
-
[key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
|
|
853
|
-
} | null;
|
|
805
|
+
channels?: { [key: string]: boolean | PreferencesAPI.PreferenceSetChannelSetting } | null;
|
|
854
806
|
|
|
855
807
|
/**
|
|
856
808
|
* A list of conditions to apply to a channel type.
|
|
857
809
|
*/
|
|
858
810
|
conditions?: Array<Shared.Condition> | null;
|
|
859
811
|
}
|
|
860
|
-
|
|
861
|
-
export namespace PreferenceSetWorkflowCategorySettingObject {
|
|
862
|
-
/**
|
|
863
|
-
* A set of settings for a specific channel. Currently, this can only be a list of
|
|
864
|
-
* conditions to apply.
|
|
865
|
-
*/
|
|
866
|
-
export interface PreferenceSetChannelSetting {
|
|
867
|
-
/**
|
|
868
|
-
* A list of conditions to apply to a specific channel.
|
|
869
|
-
*/
|
|
870
|
-
conditions: Array<Shared.Condition>;
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
812
|
}
|
|
874
813
|
|
|
875
814
|
Objects.Bulk = Bulk;
|
|
@@ -4,6 +4,53 @@ import { APIResource } from '../../core/resource';
|
|
|
4
4
|
|
|
5
5
|
export class ChannelData extends APIResource {}
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* AWS SNS push channel data.
|
|
9
|
+
*/
|
|
10
|
+
export interface AwsSnsPushChannelDataDevicesOnly {
|
|
11
|
+
/**
|
|
12
|
+
* A list of devices. Each device contains a target_arn, and optionally a locale
|
|
13
|
+
* and timezone.
|
|
14
|
+
*/
|
|
15
|
+
devices: Array<AwsSnsPushChannelDataDevicesOnly.Device>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export namespace AwsSnsPushChannelDataDevicesOnly {
|
|
19
|
+
export interface Device {
|
|
20
|
+
/**
|
|
21
|
+
* The ARN of a platform endpoint associated with a platform application and a
|
|
22
|
+
* device token. See
|
|
23
|
+
* [Setting up an Amazon SNS platform endpoint for mobile notifications](https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html).
|
|
24
|
+
*/
|
|
25
|
+
target_arn: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The locale of the object. Used for
|
|
29
|
+
* [message localization](/concepts/translations).
|
|
30
|
+
*/
|
|
31
|
+
locale?: string | null;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The timezone of the object. Must be a
|
|
35
|
+
* valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
36
|
+
* Used
|
|
37
|
+
* for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
|
|
38
|
+
*/
|
|
39
|
+
timezone?: string | null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* AWS SNS push channel data.
|
|
45
|
+
*/
|
|
46
|
+
export interface AwsSnsPushChannelDataTargetArnsOnly {
|
|
47
|
+
/**
|
|
48
|
+
* A list of platform endpoint ARNs. See
|
|
49
|
+
* [Setting up an Amazon SNS platform endpoint for mobile notifications](https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html).
|
|
50
|
+
*/
|
|
51
|
+
target_arns: Array<string>;
|
|
52
|
+
}
|
|
53
|
+
|
|
7
54
|
/**
|
|
8
55
|
* Channel data for a given channel type.
|
|
9
56
|
*/
|
|
@@ -24,7 +71,7 @@ export interface ChannelData {
|
|
|
24
71
|
data:
|
|
25
72
|
| ChannelData.PushChannelDataFull
|
|
26
73
|
| ChannelData.AwssnsPushChannelDataFull
|
|
27
|
-
|
|
|
74
|
+
| OneSignalChannelDataPlayerIDsOnly
|
|
28
75
|
| SlackChannelData
|
|
29
76
|
| MsTeamsChannelData
|
|
30
77
|
| DiscordChannelData;
|
|
@@ -125,16 +172,6 @@ export namespace ChannelData {
|
|
|
125
172
|
timezone?: string | null;
|
|
126
173
|
}
|
|
127
174
|
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* OneSignal channel data.
|
|
131
|
-
*/
|
|
132
|
-
export interface OneSignalChannelDataPlayerIDsOnly {
|
|
133
|
-
/**
|
|
134
|
-
* A list of OneSignal player IDs.
|
|
135
|
-
*/
|
|
136
|
-
player_ids: Array<string>;
|
|
137
|
-
}
|
|
138
175
|
}
|
|
139
176
|
|
|
140
177
|
/**
|
|
@@ -145,47 +182,16 @@ export interface ChannelDataRequest {
|
|
|
145
182
|
* Channel data for a given channel type.
|
|
146
183
|
*/
|
|
147
184
|
data:
|
|
148
|
-
|
|
|
149
|
-
|
|
|
150
|
-
|
|
|
185
|
+
| PushChannelDataTokensOnly
|
|
186
|
+
| PushChannelDataDevicesOnly
|
|
187
|
+
| AwsSnsPushChannelDataTargetArnsOnly
|
|
188
|
+
| AwsSnsPushChannelDataDevicesOnly
|
|
189
|
+
| OneSignalChannelDataPlayerIDsOnly
|
|
151
190
|
| SlackChannelData
|
|
152
191
|
| MsTeamsChannelData
|
|
153
192
|
| DiscordChannelData;
|
|
154
193
|
}
|
|
155
194
|
|
|
156
|
-
export namespace ChannelDataRequest {
|
|
157
|
-
/**
|
|
158
|
-
* Push channel data.
|
|
159
|
-
*/
|
|
160
|
-
export interface PushChannelDataTokensOnly {
|
|
161
|
-
/**
|
|
162
|
-
* A list of push channel tokens.
|
|
163
|
-
*/
|
|
164
|
-
tokens: Array<string>;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* AWS SNS push channel data.
|
|
169
|
-
*/
|
|
170
|
-
export interface AwssnsPushChannelDataTargetArNsOnly {
|
|
171
|
-
/**
|
|
172
|
-
* A list of platform endpoint ARNs. See
|
|
173
|
-
* [Setting up an Amazon SNS platform endpoint for mobile notifications](https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html).
|
|
174
|
-
*/
|
|
175
|
-
target_arns: Array<string>;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* OneSignal channel data.
|
|
180
|
-
*/
|
|
181
|
-
export interface OneSignalChannelDataPlayerIDsOnly {
|
|
182
|
-
/**
|
|
183
|
-
* A list of OneSignal player IDs.
|
|
184
|
-
*/
|
|
185
|
-
player_ids: Array<string>;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
195
|
/**
|
|
190
196
|
* Discord channel data.
|
|
191
197
|
*/
|
|
@@ -237,47 +243,16 @@ export namespace DiscordChannelData {
|
|
|
237
243
|
*/
|
|
238
244
|
export type InlineChannelDataRequest = {
|
|
239
245
|
[key: string]:
|
|
240
|
-
|
|
|
241
|
-
|
|
|
242
|
-
|
|
|
246
|
+
| PushChannelDataTokensOnly
|
|
247
|
+
| PushChannelDataDevicesOnly
|
|
248
|
+
| AwsSnsPushChannelDataTargetArnsOnly
|
|
249
|
+
| AwsSnsPushChannelDataDevicesOnly
|
|
250
|
+
| OneSignalChannelDataPlayerIDsOnly
|
|
243
251
|
| SlackChannelData
|
|
244
252
|
| MsTeamsChannelData
|
|
245
253
|
| DiscordChannelData;
|
|
246
254
|
};
|
|
247
255
|
|
|
248
|
-
export namespace InlineChannelDataRequest {
|
|
249
|
-
/**
|
|
250
|
-
* Push channel data.
|
|
251
|
-
*/
|
|
252
|
-
export interface PushChannelDataTokensOnly {
|
|
253
|
-
/**
|
|
254
|
-
* A list of push channel tokens.
|
|
255
|
-
*/
|
|
256
|
-
tokens: Array<string>;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* AWS SNS push channel data.
|
|
261
|
-
*/
|
|
262
|
-
export interface AwssnsPushChannelDataTargetArNsOnly {
|
|
263
|
-
/**
|
|
264
|
-
* A list of platform endpoint ARNs. See
|
|
265
|
-
* [Setting up an Amazon SNS platform endpoint for mobile notifications](https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html).
|
|
266
|
-
*/
|
|
267
|
-
target_arns: Array<string>;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* OneSignal channel data.
|
|
272
|
-
*/
|
|
273
|
-
export interface OneSignalChannelDataPlayerIDsOnly {
|
|
274
|
-
/**
|
|
275
|
-
* A list of OneSignal player IDs.
|
|
276
|
-
*/
|
|
277
|
-
player_ids: Array<string>;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
256
|
/**
|
|
282
257
|
* Microsoft Teams channel data.
|
|
283
258
|
*/
|
|
@@ -344,6 +319,60 @@ export namespace MsTeamsChannelData {
|
|
|
344
319
|
}
|
|
345
320
|
}
|
|
346
321
|
|
|
322
|
+
/**
|
|
323
|
+
* OneSignal channel data.
|
|
324
|
+
*/
|
|
325
|
+
export interface OneSignalChannelDataPlayerIDsOnly {
|
|
326
|
+
/**
|
|
327
|
+
* A list of OneSignal player IDs.
|
|
328
|
+
*/
|
|
329
|
+
player_ids: Array<string>;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Push channel data.
|
|
334
|
+
*/
|
|
335
|
+
export interface PushChannelDataDevicesOnly {
|
|
336
|
+
/**
|
|
337
|
+
* A list of devices. Each device contains a token, and optionally a locale and
|
|
338
|
+
* timezone.
|
|
339
|
+
*/
|
|
340
|
+
devices: Array<PushChannelDataDevicesOnly.Device>;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export namespace PushChannelDataDevicesOnly {
|
|
344
|
+
export interface Device {
|
|
345
|
+
/**
|
|
346
|
+
* The device token to send the push notification to.
|
|
347
|
+
*/
|
|
348
|
+
token: string;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* The locale of the object. Used for
|
|
352
|
+
* [message localization](/concepts/translations).
|
|
353
|
+
*/
|
|
354
|
+
locale?: string | null;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* The timezone of the object. Must be a
|
|
358
|
+
* valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
359
|
+
* Used
|
|
360
|
+
* for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
|
|
361
|
+
*/
|
|
362
|
+
timezone?: string | null;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Push channel data.
|
|
368
|
+
*/
|
|
369
|
+
export interface PushChannelDataTokensOnly {
|
|
370
|
+
/**
|
|
371
|
+
* A list of push channel tokens.
|
|
372
|
+
*/
|
|
373
|
+
tokens: Array<string>;
|
|
374
|
+
}
|
|
375
|
+
|
|
347
376
|
/**
|
|
348
377
|
* Slack channel data.
|
|
349
378
|
*/
|
|
@@ -403,11 +432,16 @@ export namespace SlackChannelData {
|
|
|
403
432
|
|
|
404
433
|
export declare namespace ChannelData {
|
|
405
434
|
export {
|
|
435
|
+
type AwsSnsPushChannelDataDevicesOnly as AwsSnsPushChannelDataDevicesOnly,
|
|
436
|
+
type AwsSnsPushChannelDataTargetArnsOnly as AwsSnsPushChannelDataTargetArnsOnly,
|
|
406
437
|
type ChannelData as ChannelData,
|
|
407
438
|
type ChannelDataRequest as ChannelDataRequest,
|
|
408
439
|
type DiscordChannelData as DiscordChannelData,
|
|
409
440
|
type InlineChannelDataRequest as InlineChannelDataRequest,
|
|
410
441
|
type MsTeamsChannelData as MsTeamsChannelData,
|
|
442
|
+
type OneSignalChannelDataPlayerIDsOnly as OneSignalChannelDataPlayerIDsOnly,
|
|
443
|
+
type PushChannelDataDevicesOnly as PushChannelDataDevicesOnly,
|
|
444
|
+
type PushChannelDataTokensOnly as PushChannelDataTokensOnly,
|
|
411
445
|
type SlackChannelData as SlackChannelData,
|
|
412
446
|
};
|
|
413
447
|
}
|
|
@@ -2,16 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
ChannelData,
|
|
5
|
+
type AwsSnsPushChannelDataDevicesOnly,
|
|
6
|
+
type AwsSnsPushChannelDataTargetArnsOnly,
|
|
5
7
|
type ChannelDataRequest,
|
|
6
8
|
type DiscordChannelData,
|
|
7
9
|
type InlineChannelDataRequest,
|
|
8
10
|
type MsTeamsChannelData,
|
|
11
|
+
type OneSignalChannelDataPlayerIDsOnly,
|
|
12
|
+
type PushChannelDataDevicesOnly,
|
|
13
|
+
type PushChannelDataTokensOnly,
|
|
9
14
|
type SlackChannelData,
|
|
10
15
|
} from './channel-data';
|
|
11
16
|
export {
|
|
12
17
|
Preferences,
|
|
13
18
|
type InlinePreferenceSetRequest,
|
|
14
19
|
type PreferenceSet,
|
|
20
|
+
type PreferenceSetChannelSetting,
|
|
15
21
|
type PreferenceSetChannelTypeSetting,
|
|
16
22
|
type PreferenceSetChannelTypes,
|
|
17
23
|
type PreferenceSetRequest,
|
|
@@ -37,7 +37,7 @@ export interface PreferenceSet {
|
|
|
37
37
|
/**
|
|
38
38
|
* Channel preferences.
|
|
39
39
|
*/
|
|
40
|
-
channels?: { [key: string]: boolean |
|
|
40
|
+
channels?: { [key: string]: boolean | PreferenceSetChannelSetting } | null;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Whether the recipient is subscribed to commercial communications. When false,
|
|
@@ -66,9 +66,7 @@ export namespace PreferenceSet {
|
|
|
66
66
|
/**
|
|
67
67
|
* Channel preferences.
|
|
68
68
|
*/
|
|
69
|
-
channels?: {
|
|
70
|
-
[key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
|
|
71
|
-
} | null;
|
|
69
|
+
channels?: { [key: string]: boolean | PreferencesAPI.PreferenceSetChannelSetting } | null;
|
|
72
70
|
|
|
73
71
|
/**
|
|
74
72
|
* A list of conditions to apply to a channel type.
|
|
@@ -76,30 +74,6 @@ export namespace PreferenceSet {
|
|
|
76
74
|
conditions?: Array<Shared.Condition> | null;
|
|
77
75
|
}
|
|
78
76
|
|
|
79
|
-
export namespace PreferenceSetWorkflowCategorySettingObject {
|
|
80
|
-
/**
|
|
81
|
-
* A set of settings for a specific channel. Currently, this can only be a list of
|
|
82
|
-
* conditions to apply.
|
|
83
|
-
*/
|
|
84
|
-
export interface PreferenceSetChannelSetting {
|
|
85
|
-
/**
|
|
86
|
-
* A list of conditions to apply to a specific channel.
|
|
87
|
-
*/
|
|
88
|
-
conditions: Array<Shared.Condition>;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* A set of settings for a specific channel. Currently, this can only be a list of
|
|
94
|
-
* conditions to apply.
|
|
95
|
-
*/
|
|
96
|
-
export interface PreferenceSetChannelSetting {
|
|
97
|
-
/**
|
|
98
|
-
* A list of conditions to apply to a specific channel.
|
|
99
|
-
*/
|
|
100
|
-
conditions: Array<Shared.Condition>;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
77
|
/**
|
|
104
78
|
* The settings object for a workflow or category, where you can specify channel
|
|
105
79
|
* types or conditions.
|
|
@@ -113,28 +87,24 @@ export namespace PreferenceSet {
|
|
|
113
87
|
/**
|
|
114
88
|
* Channel preferences.
|
|
115
89
|
*/
|
|
116
|
-
channels?: {
|
|
117
|
-
[key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
|
|
118
|
-
} | null;
|
|
90
|
+
channels?: { [key: string]: boolean | PreferencesAPI.PreferenceSetChannelSetting } | null;
|
|
119
91
|
|
|
120
92
|
/**
|
|
121
93
|
* A list of conditions to apply to a channel type.
|
|
122
94
|
*/
|
|
123
95
|
conditions?: Array<Shared.Condition> | null;
|
|
124
96
|
}
|
|
97
|
+
}
|
|
125
98
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
conditions: Array<Shared.Condition>;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
99
|
+
/**
|
|
100
|
+
* A set of settings for a specific channel. Currently, this can only be a list of
|
|
101
|
+
* conditions to apply.
|
|
102
|
+
*/
|
|
103
|
+
export interface PreferenceSetChannelSetting {
|
|
104
|
+
/**
|
|
105
|
+
* A list of conditions to apply to a specific channel.
|
|
106
|
+
*/
|
|
107
|
+
conditions: Array<Shared.Condition>;
|
|
138
108
|
}
|
|
139
109
|
|
|
140
110
|
/**
|
|
@@ -209,7 +179,7 @@ export interface PreferenceSetRequest {
|
|
|
209
179
|
/**
|
|
210
180
|
* Channel preferences.
|
|
211
181
|
*/
|
|
212
|
-
channels?: { [key: string]: boolean |
|
|
182
|
+
channels?: { [key: string]: boolean | PreferenceSetChannelSetting } | null;
|
|
213
183
|
|
|
214
184
|
/**
|
|
215
185
|
* Whether the recipient is subscribed to commercial communications. When false,
|
|
@@ -240,9 +210,7 @@ export namespace PreferenceSetRequest {
|
|
|
240
210
|
/**
|
|
241
211
|
* Channel preferences.
|
|
242
212
|
*/
|
|
243
|
-
channels?: {
|
|
244
|
-
[key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
|
|
245
|
-
} | null;
|
|
213
|
+
channels?: { [key: string]: boolean | PreferencesAPI.PreferenceSetChannelSetting } | null;
|
|
246
214
|
|
|
247
215
|
/**
|
|
248
216
|
* A list of conditions to apply to a channel type.
|
|
@@ -250,30 +218,6 @@ export namespace PreferenceSetRequest {
|
|
|
250
218
|
conditions?: Array<Shared.Condition> | null;
|
|
251
219
|
}
|
|
252
220
|
|
|
253
|
-
export namespace PreferenceSetWorkflowCategorySettingObject {
|
|
254
|
-
/**
|
|
255
|
-
* A set of settings for a specific channel. Currently, this can only be a list of
|
|
256
|
-
* conditions to apply.
|
|
257
|
-
*/
|
|
258
|
-
export interface PreferenceSetChannelSetting {
|
|
259
|
-
/**
|
|
260
|
-
* A list of conditions to apply to a specific channel.
|
|
261
|
-
*/
|
|
262
|
-
conditions: Array<Shared.Condition>;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* A set of settings for a specific channel. Currently, this can only be a list of
|
|
268
|
-
* conditions to apply.
|
|
269
|
-
*/
|
|
270
|
-
export interface PreferenceSetChannelSetting {
|
|
271
|
-
/**
|
|
272
|
-
* A list of conditions to apply to a specific channel.
|
|
273
|
-
*/
|
|
274
|
-
conditions: Array<Shared.Condition>;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
221
|
/**
|
|
278
222
|
* The settings object for a workflow or category, where you can specify channel
|
|
279
223
|
* types or conditions.
|
|
@@ -287,34 +231,20 @@ export namespace PreferenceSetRequest {
|
|
|
287
231
|
/**
|
|
288
232
|
* Channel preferences.
|
|
289
233
|
*/
|
|
290
|
-
channels?: {
|
|
291
|
-
[key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
|
|
292
|
-
} | null;
|
|
234
|
+
channels?: { [key: string]: boolean | PreferencesAPI.PreferenceSetChannelSetting } | null;
|
|
293
235
|
|
|
294
236
|
/**
|
|
295
237
|
* A list of conditions to apply to a channel type.
|
|
296
238
|
*/
|
|
297
239
|
conditions?: Array<Shared.Condition> | null;
|
|
298
240
|
}
|
|
299
|
-
|
|
300
|
-
export namespace PreferenceSetWorkflowCategorySettingObject {
|
|
301
|
-
/**
|
|
302
|
-
* A set of settings for a specific channel. Currently, this can only be a list of
|
|
303
|
-
* conditions to apply.
|
|
304
|
-
*/
|
|
305
|
-
export interface PreferenceSetChannelSetting {
|
|
306
|
-
/**
|
|
307
|
-
* A list of conditions to apply to a specific channel.
|
|
308
|
-
*/
|
|
309
|
-
conditions: Array<Shared.Condition>;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
241
|
}
|
|
313
242
|
|
|
314
243
|
export declare namespace Preferences {
|
|
315
244
|
export {
|
|
316
245
|
type InlinePreferenceSetRequest as InlinePreferenceSetRequest,
|
|
317
246
|
type PreferenceSet as PreferenceSet,
|
|
247
|
+
type PreferenceSetChannelSetting as PreferenceSetChannelSetting,
|
|
318
248
|
type PreferenceSetChannelTypeSetting as PreferenceSetChannelTypeSetting,
|
|
319
249
|
type PreferenceSetChannelTypes as PreferenceSetChannelTypes,
|
|
320
250
|
type PreferenceSetRequest as PreferenceSetRequest,
|
|
@@ -4,17 +4,23 @@ import { APIResource } from '../../core/resource';
|
|
|
4
4
|
import * as ObjectsAPI from '../objects/objects';
|
|
5
5
|
import * as ChannelDataAPI from './channel-data';
|
|
6
6
|
import {
|
|
7
|
+
AwsSnsPushChannelDataDevicesOnly,
|
|
8
|
+
AwsSnsPushChannelDataTargetArnsOnly,
|
|
7
9
|
ChannelData,
|
|
8
10
|
ChannelDataRequest,
|
|
9
11
|
DiscordChannelData,
|
|
10
12
|
InlineChannelDataRequest,
|
|
11
13
|
MsTeamsChannelData,
|
|
14
|
+
OneSignalChannelDataPlayerIDsOnly,
|
|
15
|
+
PushChannelDataDevicesOnly,
|
|
16
|
+
PushChannelDataTokensOnly,
|
|
12
17
|
SlackChannelData,
|
|
13
18
|
} from './channel-data';
|
|
14
19
|
import * as PreferencesAPI from './preferences';
|
|
15
20
|
import {
|
|
16
21
|
InlinePreferenceSetRequest,
|
|
17
22
|
PreferenceSet,
|
|
23
|
+
PreferenceSetChannelSetting,
|
|
18
24
|
PreferenceSetChannelTypeSetting,
|
|
19
25
|
PreferenceSetChannelTypes,
|
|
20
26
|
PreferenceSetRequest,
|
|
@@ -81,6 +87,7 @@ export declare namespace Recipients {
|
|
|
81
87
|
Preferences as Preferences,
|
|
82
88
|
type InlinePreferenceSetRequest as InlinePreferenceSetRequest,
|
|
83
89
|
type PreferenceSet as PreferenceSet,
|
|
90
|
+
type PreferenceSetChannelSetting as PreferenceSetChannelSetting,
|
|
84
91
|
type PreferenceSetChannelTypeSetting as PreferenceSetChannelTypeSetting,
|
|
85
92
|
type PreferenceSetChannelTypes as PreferenceSetChannelTypes,
|
|
86
93
|
type PreferenceSetRequest as PreferenceSetRequest,
|
|
@@ -88,10 +95,15 @@ export declare namespace Recipients {
|
|
|
88
95
|
|
|
89
96
|
export {
|
|
90
97
|
type ChannelData as ChannelData,
|
|
98
|
+
type AwsSnsPushChannelDataDevicesOnly as AwsSnsPushChannelDataDevicesOnly,
|
|
99
|
+
type AwsSnsPushChannelDataTargetArnsOnly as AwsSnsPushChannelDataTargetArnsOnly,
|
|
91
100
|
type ChannelDataRequest as ChannelDataRequest,
|
|
92
101
|
type DiscordChannelData as DiscordChannelData,
|
|
93
102
|
type InlineChannelDataRequest as InlineChannelDataRequest,
|
|
94
103
|
type MsTeamsChannelData as MsTeamsChannelData,
|
|
104
|
+
type OneSignalChannelDataPlayerIDsOnly as OneSignalChannelDataPlayerIDsOnly,
|
|
105
|
+
type PushChannelDataDevicesOnly as PushChannelDataDevicesOnly,
|
|
106
|
+
type PushChannelDataTokensOnly as PushChannelDataTokensOnly,
|
|
95
107
|
type SlackChannelData as SlackChannelData,
|
|
96
108
|
};
|
|
97
109
|
}
|