@knocklabs/node 1.19.0 → 1.21.0

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.
Files changed (107) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +2 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/internal/to-file.d.mts +1 -1
  11. package/internal/to-file.d.ts +1 -1
  12. package/internal/to-file.js +1 -1
  13. package/internal/to-file.mjs +1 -1
  14. package/package.json +1 -1
  15. package/resources/audiences.d.mts +2 -2
  16. package/resources/audiences.d.mts.map +1 -1
  17. package/resources/audiences.d.ts +2 -2
  18. package/resources/audiences.d.ts.map +1 -1
  19. package/resources/index.d.mts +1 -1
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +1 -1
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +3 -3
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +1 -1
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/messages/messages.d.mts +46 -5
  28. package/resources/messages/messages.d.mts.map +1 -1
  29. package/resources/messages/messages.d.ts +46 -5
  30. package/resources/messages/messages.d.ts.map +1 -1
  31. package/resources/messages/messages.js.map +1 -1
  32. package/resources/messages/messages.mjs.map +1 -1
  33. package/resources/objects/objects.d.mts +87 -9
  34. package/resources/objects/objects.d.mts.map +1 -1
  35. package/resources/objects/objects.d.ts +87 -9
  36. package/resources/objects/objects.d.ts.map +1 -1
  37. package/resources/objects/objects.js +7 -4
  38. package/resources/objects/objects.js.map +1 -1
  39. package/resources/objects/objects.mjs +7 -4
  40. package/resources/objects/objects.mjs.map +1 -1
  41. package/resources/recipients/channel-data.d.mts +113 -25
  42. package/resources/recipients/channel-data.d.mts.map +1 -1
  43. package/resources/recipients/channel-data.d.ts +113 -25
  44. package/resources/recipients/channel-data.d.ts.map +1 -1
  45. package/resources/recipients/index.d.mts +1 -1
  46. package/resources/recipients/index.d.mts.map +1 -1
  47. package/resources/recipients/index.d.ts +1 -1
  48. package/resources/recipients/index.d.ts.map +1 -1
  49. package/resources/recipients/index.js.map +1 -1
  50. package/resources/recipients/index.mjs.map +1 -1
  51. package/resources/recipients/preferences.d.mts +120 -6
  52. package/resources/recipients/preferences.d.mts.map +1 -1
  53. package/resources/recipients/preferences.d.ts +120 -6
  54. package/resources/recipients/preferences.d.ts.map +1 -1
  55. package/resources/recipients/recipients.d.mts +2 -2
  56. package/resources/recipients/recipients.d.mts.map +1 -1
  57. package/resources/recipients/recipients.d.ts +2 -2
  58. package/resources/recipients/recipients.d.ts.map +1 -1
  59. package/resources/recipients/recipients.js.map +1 -1
  60. package/resources/recipients/recipients.mjs.map +1 -1
  61. package/resources/shared.d.mts +0 -6
  62. package/resources/shared.d.mts.map +1 -1
  63. package/resources/shared.d.ts +0 -6
  64. package/resources/shared.d.ts.map +1 -1
  65. package/resources/shared.js +0 -5
  66. package/resources/shared.js.map +1 -1
  67. package/resources/shared.mjs +1 -3
  68. package/resources/shared.mjs.map +1 -1
  69. package/resources/users/bulk.d.mts +13 -0
  70. package/resources/users/bulk.d.mts.map +1 -1
  71. package/resources/users/bulk.d.ts +13 -0
  72. package/resources/users/bulk.d.ts.map +1 -1
  73. package/resources/users/bulk.js +13 -0
  74. package/resources/users/bulk.js.map +1 -1
  75. package/resources/users/bulk.mjs +13 -0
  76. package/resources/users/bulk.mjs.map +1 -1
  77. package/resources/users/guides.d.mts +90 -21
  78. package/resources/users/guides.d.mts.map +1 -1
  79. package/resources/users/guides.d.ts +90 -21
  80. package/resources/users/guides.d.ts.map +1 -1
  81. package/resources/users/users.d.mts +93 -5
  82. package/resources/users/users.d.mts.map +1 -1
  83. package/resources/users/users.d.ts +93 -5
  84. package/resources/users/users.d.ts.map +1 -1
  85. package/resources/users/users.js +13 -0
  86. package/resources/users/users.js.map +1 -1
  87. package/resources/users/users.mjs +13 -0
  88. package/resources/users/users.mjs.map +1 -1
  89. package/src/client.ts +3 -5
  90. package/src/internal/to-file.ts +1 -1
  91. package/src/resources/audiences.ts +2 -2
  92. package/src/resources/index.ts +1 -1
  93. package/src/resources/messages/messages.ts +55 -5
  94. package/src/resources/objects/objects.ts +96 -11
  95. package/src/resources/recipients/channel-data.ts +133 -35
  96. package/src/resources/recipients/index.ts +0 -2
  97. package/src/resources/recipients/preferences.ts +130 -6
  98. package/src/resources/recipients/recipients.ts +0 -4
  99. package/src/resources/shared.ts +0 -8
  100. package/src/resources/users/bulk.ts +13 -0
  101. package/src/resources/users/guides.ts +118 -19
  102. package/src/resources/users/users.ts +102 -7
  103. package/src/version.ts +1 -1
  104. package/version.d.mts +1 -1
  105. package/version.d.ts +1 -1
  106. package/version.js +1 -1
  107. package/version.mjs +1 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as PreferencesAPI from './preferences';
5
- import * as SharedAPI from '../shared';
5
+ import * as Shared from '../shared';
6
6
 
7
7
  export class Preferences extends APIResource {}
8
8
 
@@ -34,6 +34,17 @@ export interface PreferenceSet {
34
34
  */
35
35
  channel_types?: PreferenceSetChannelTypes | null;
36
36
 
37
+ /**
38
+ * Channel preferences.
39
+ */
40
+ channels?: { [key: string]: boolean | PreferenceSet.PreferenceSetChannelSetting } | null;
41
+
42
+ /**
43
+ * Whether the recipient is subscribed to commercial communications. When false,
44
+ * the recipient will not receive commercial workflow notifications.
45
+ */
46
+ commercial_subscribed?: boolean | null;
47
+
37
48
  /**
38
49
  * An object where the key is the workflow key and the values are the preference
39
50
  * settings for that workflow.
@@ -52,10 +63,41 @@ export namespace PreferenceSet {
52
63
  */
53
64
  channel_types?: PreferencesAPI.PreferenceSetChannelTypes | null;
54
65
 
66
+ /**
67
+ * Channel preferences.
68
+ */
69
+ channels?: {
70
+ [key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
71
+ } | null;
72
+
55
73
  /**
56
74
  * A list of conditions to apply to a channel type.
57
75
  */
58
- conditions?: Array<SharedAPI.Condition> | null;
76
+ conditions?: Array<Shared.Condition> | null;
77
+ }
78
+
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>;
59
101
  }
60
102
 
61
103
  /**
@@ -68,10 +110,30 @@ export namespace PreferenceSet {
68
110
  */
69
111
  channel_types?: PreferencesAPI.PreferenceSetChannelTypes | null;
70
112
 
113
+ /**
114
+ * Channel preferences.
115
+ */
116
+ channels?: {
117
+ [key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
118
+ } | null;
119
+
71
120
  /**
72
121
  * A list of conditions to apply to a channel type.
73
122
  */
74
- conditions?: Array<SharedAPI.Condition> | null;
123
+ conditions?: Array<Shared.Condition> | null;
124
+ }
125
+
126
+ export namespace PreferenceSetWorkflowCategorySettingObject {
127
+ /**
128
+ * A set of settings for a specific channel. Currently, this can only be a list of
129
+ * conditions to apply.
130
+ */
131
+ export interface PreferenceSetChannelSetting {
132
+ /**
133
+ * A list of conditions to apply to a specific channel.
134
+ */
135
+ conditions: Array<Shared.Condition>;
136
+ }
75
137
  }
76
138
  }
77
139
 
@@ -83,7 +145,7 @@ export interface PreferenceSetChannelTypeSetting {
83
145
  /**
84
146
  * A list of conditions to apply to a channel type.
85
147
  */
86
- conditions: Array<SharedAPI.Condition>;
148
+ conditions: Array<Shared.Condition>;
87
149
  }
88
150
 
89
151
  /**
@@ -144,6 +206,17 @@ export interface PreferenceSetRequest {
144
206
  */
145
207
  channel_types?: PreferenceSetChannelTypes | null;
146
208
 
209
+ /**
210
+ * Channel preferences.
211
+ */
212
+ channels?: { [key: string]: boolean | PreferenceSetRequest.PreferenceSetChannelSetting } | null;
213
+
214
+ /**
215
+ * Whether the recipient is subscribed to commercial communications. When false,
216
+ * the recipient will not receive commercial workflow notifications.
217
+ */
218
+ commercial_subscribed?: boolean | null;
219
+
147
220
  /**
148
221
  * An object where the key is the workflow key and the values are the preference
149
222
  * settings for that workflow.
@@ -164,10 +237,41 @@ export namespace PreferenceSetRequest {
164
237
  */
165
238
  channel_types?: PreferencesAPI.PreferenceSetChannelTypes | null;
166
239
 
240
+ /**
241
+ * Channel preferences.
242
+ */
243
+ channels?: {
244
+ [key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
245
+ } | null;
246
+
167
247
  /**
168
248
  * A list of conditions to apply to a channel type.
169
249
  */
170
- conditions?: Array<SharedAPI.Condition> | null;
250
+ conditions?: Array<Shared.Condition> | null;
251
+ }
252
+
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>;
171
275
  }
172
276
 
173
277
  /**
@@ -180,10 +284,30 @@ export namespace PreferenceSetRequest {
180
284
  */
181
285
  channel_types?: PreferencesAPI.PreferenceSetChannelTypes | null;
182
286
 
287
+ /**
288
+ * Channel preferences.
289
+ */
290
+ channels?: {
291
+ [key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
292
+ } | null;
293
+
183
294
  /**
184
295
  * A list of conditions to apply to a channel type.
185
296
  */
186
- conditions?: Array<SharedAPI.Condition> | null;
297
+ conditions?: Array<Shared.Condition> | null;
298
+ }
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
+ }
187
311
  }
188
312
  }
189
313
 
@@ -9,8 +9,6 @@ import {
9
9
  DiscordChannelData,
10
10
  InlineChannelDataRequest,
11
11
  MsTeamsChannelData,
12
- OneSignalChannelData,
13
- PushChannelData,
14
12
  SlackChannelData,
15
13
  } from './channel-data';
16
14
  import * as PreferencesAPI from './preferences';
@@ -94,8 +92,6 @@ export declare namespace Recipients {
94
92
  type DiscordChannelData as DiscordChannelData,
95
93
  type InlineChannelDataRequest as InlineChannelDataRequest,
96
94
  type MsTeamsChannelData as MsTeamsChannelData,
97
- type OneSignalChannelData as OneSignalChannelData,
98
- type PushChannelData as PushChannelData,
99
95
  type SlackChannelData as SlackChannelData,
100
96
  };
101
97
  }
@@ -1,9 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../core/resource';
4
-
5
- export class Shared extends APIResource {}
6
-
7
3
  /**
8
4
  * A condition to be evaluated.
9
5
  */
@@ -66,7 +62,3 @@ export interface PageInfo {
66
62
  */
67
63
  before?: string | null;
68
64
  }
69
-
70
- export declare namespace Shared {
71
- export { type Condition as Condition, type PageInfo as PageInfo };
72
- }
@@ -63,6 +63,19 @@ export class Bulk extends APIResource {
63
63
  * transactional: { channel_types: { email: false } },
64
64
  * },
65
65
  * channel_types: { email: true },
66
+ * channels: {
67
+ * '2f641633-95d3-4555-9222-9f1eb7888a80': {
68
+ * conditions: [
69
+ * {
70
+ * argument: 'US',
71
+ * operator: 'equal_to',
72
+ * variable: 'recipient.country_code',
73
+ * },
74
+ * ],
75
+ * },
76
+ * 'aef6e715-df82-4ab6-b61e-b743e249f7b6': true,
77
+ * },
78
+ * commercial_subscribed: true,
66
79
  * workflows: {
67
80
  * 'dinosaurs-loose': {
68
81
  * channel_types: { email: false },
@@ -142,50 +142,149 @@ export interface GuideGetChannelResponse {
142
142
  /**
143
143
  * A list of guides.
144
144
  */
145
- guides: Array<GuideGetChannelResponse.Guide>;
145
+ entries: Array<GuideGetChannelResponse.Entry>;
146
146
 
147
147
  /**
148
- * The recipient of the guide.
148
+ * A map of guide group keys to their last display timestamps.
149
149
  */
150
- recipient?: GuideGetChannelResponse.Recipient | null;
150
+ guide_group_display_logs: { [key: string]: string };
151
+
152
+ /**
153
+ * A list of guide groups with their display sequences and intervals.
154
+ */
155
+ guide_groups: Array<GuideGetChannelResponse.GuideGroup>;
151
156
  }
152
157
 
153
158
  export namespace GuideGetChannelResponse {
154
- export interface Guide {
159
+ export interface Entry {
155
160
  /**
156
161
  * The unique identifier for the guide.
157
162
  */
158
163
  id?: string;
159
164
 
160
165
  /**
161
- * Whether the guide is active.
166
+ * The typename of the schema.
162
167
  */
163
- active?: boolean;
168
+ __typename?: string;
164
169
 
165
170
  /**
166
- * The content of the guide.
171
+ * A list of URL Patterns to evaluate user's current location to activate the
172
+ * guide, if matched
167
173
  */
168
- content?: string;
174
+ activation_url_patterns?: Array<Entry.ActivationURLPattern>;
169
175
 
170
176
  /**
171
- * The metadata of the guide.
177
+ * A list of URL rules to evaluate user's current location to activate the guide,
178
+ * if matched
172
179
  */
173
- metadata?: { [key: string]: unknown };
180
+ activation_url_rules?: Array<Entry.ActivationURLRule>;
174
181
 
175
182
  /**
176
- * The title of the guide.
183
+ * Whether the guide is active.
177
184
  */
178
- title?: string;
179
- }
185
+ active?: boolean;
186
+
187
+ bypass_global_group_limit?: boolean;
188
+
189
+ channel_id?: string;
190
+
191
+ inserted_at?: string;
180
192
 
181
- /**
182
- * The recipient of the guide.
183
- */
184
- export interface Recipient {
185
193
  /**
186
- * Unique identifier for the recipient.
194
+ * The key of the guide.
187
195
  */
188
- id?: string;
196
+ key?: string;
197
+
198
+ semver?: string;
199
+
200
+ steps?: Array<Entry.Step>;
201
+
202
+ /**
203
+ * The type of the guide.
204
+ */
205
+ type?: string;
206
+
207
+ updated_at?: string;
208
+ }
209
+
210
+ export namespace Entry {
211
+ export interface ActivationURLPattern {
212
+ /**
213
+ * The directive for the URL pattern ('allow' or 'block')
214
+ */
215
+ directive?: string;
216
+
217
+ /**
218
+ * The pathname pattern to match (supports wildcards like /\*)
219
+ */
220
+ pathname?: string;
221
+ }
222
+
223
+ export interface ActivationURLRule {
224
+ /**
225
+ * The value to compare against
226
+ */
227
+ argument?: string;
228
+
229
+ /**
230
+ * The directive for the URL pattern ('allow' or 'block')
231
+ */
232
+ directive?: string;
233
+
234
+ /**
235
+ * The comparison operator ('contains' or 'equal_to')
236
+ */
237
+ operator?: string;
238
+
239
+ /**
240
+ * The variable to evaluate ('pathname')
241
+ */
242
+ variable?: string;
243
+ }
244
+
245
+ export interface Step {
246
+ content?: { [key: string]: unknown };
247
+
248
+ message?: Step.Message;
249
+
250
+ ref?: string;
251
+
252
+ schema_key?: string;
253
+
254
+ schema_semver?: string;
255
+
256
+ schema_variant_key?: string;
257
+ }
258
+
259
+ export namespace Step {
260
+ export interface Message {
261
+ id?: string | null;
262
+
263
+ archived_at?: string | null;
264
+
265
+ interacted_at?: string | null;
266
+
267
+ link_clicked_at?: string | null;
268
+
269
+ read_at?: string | null;
270
+
271
+ seen_at?: string | null;
272
+ }
273
+ }
274
+ }
275
+
276
+ export interface GuideGroup {
277
+ __typename?: string;
278
+
279
+ display_interval?: number;
280
+
281
+ display_sequence?: Array<string>;
282
+
283
+ inserted_at?: string;
284
+
285
+ key?: string;
286
+
287
+ updated_at?: string;
189
288
  }
190
289
  }
191
290
 
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
- import * as SharedAPI from '../shared';
4
+ import * as Shared from '../shared';
5
5
  import * as MessagesAPI from '../messages/messages';
6
6
  import { MessagesItemsCursor } from '../messages/messages';
7
7
  import * as ChannelDataAPI from '../recipients/channel-data';
@@ -316,6 +316,19 @@ export class Users extends APIResource {
316
316
  * transactional: { channel_types: { email: false } },
317
317
  * },
318
318
  * channel_types: { email: true },
319
+ * channels: {
320
+ * '2f641633-95d3-4555-9222-9f1eb7888a80': {
321
+ * conditions: [
322
+ * {
323
+ * argument: 'US',
324
+ * operator: 'equal_to',
325
+ * variable: 'recipient.country_code',
326
+ * },
327
+ * ],
328
+ * },
329
+ * 'aef6e715-df82-4ab6-b61e-b743e249f7b6': true,
330
+ * },
331
+ * commercial_subscribed: true,
319
332
  * workflows: {
320
333
  * 'dinosaurs-loose': {
321
334
  * channel_types: { email: false },
@@ -735,25 +748,45 @@ export interface UserSetChannelDataParams {
735
748
  * Channel data for a given channel type.
736
749
  */
737
750
  data:
738
- | ChannelDataAPI.PushChannelData
739
- | ChannelDataAPI.OneSignalChannelData
740
- | UserSetChannelDataParams.AwsSnsPushChannelData
751
+ | UserSetChannelDataParams.PushChannelDataTokensOnly
752
+ | UserSetChannelDataParams.AwssnsPushChannelDataTargetArNsOnly
753
+ | UserSetChannelDataParams.OneSignalChannelDataPlayerIDsOnly
741
754
  | ChannelDataAPI.SlackChannelData
742
755
  | ChannelDataAPI.MsTeamsChannelData
743
756
  | ChannelDataAPI.DiscordChannelData;
744
757
  }
745
758
 
746
759
  export namespace UserSetChannelDataParams {
760
+ /**
761
+ * Push channel data.
762
+ */
763
+ export interface PushChannelDataTokensOnly {
764
+ /**
765
+ * A list of push channel tokens.
766
+ */
767
+ tokens: Array<string>;
768
+ }
769
+
747
770
  /**
748
771
  * AWS SNS push channel data.
749
772
  */
750
- export interface AwsSnsPushChannelData {
773
+ export interface AwssnsPushChannelDataTargetArNsOnly {
751
774
  /**
752
775
  * A list of platform endpoint ARNs. See
753
776
  * [Setting up an Amazon SNS platform endpoint for mobile notifications](https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html).
754
777
  */
755
778
  target_arns: Array<string>;
756
779
  }
780
+
781
+ /**
782
+ * OneSignal channel data.
783
+ */
784
+ export interface OneSignalChannelDataPlayerIDsOnly {
785
+ /**
786
+ * A list of OneSignal player IDs.
787
+ */
788
+ player_ids: Array<string>;
789
+ }
757
790
  }
758
791
 
759
792
  export interface UserSetPreferencesParams {
@@ -776,6 +809,17 @@ export interface UserSetPreferencesParams {
776
809
  */
777
810
  channel_types?: PreferencesAPI.PreferenceSetChannelTypes | null;
778
811
 
812
+ /**
813
+ * Channel preferences.
814
+ */
815
+ channels?: { [key: string]: boolean | UserSetPreferencesParams.PreferenceSetChannelSetting } | null;
816
+
817
+ /**
818
+ * Whether the recipient is subscribed to commercial communications. When false,
819
+ * the recipient will not receive commercial workflow notifications.
820
+ */
821
+ commercial_subscribed?: boolean | null;
822
+
779
823
  /**
780
824
  * An object where the key is the workflow key and the values are the preference
781
825
  * settings for that workflow.
@@ -796,10 +840,41 @@ export namespace UserSetPreferencesParams {
796
840
  */
797
841
  channel_types?: PreferencesAPI.PreferenceSetChannelTypes | null;
798
842
 
843
+ /**
844
+ * Channel preferences.
845
+ */
846
+ channels?: {
847
+ [key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
848
+ } | null;
849
+
799
850
  /**
800
851
  * A list of conditions to apply to a channel type.
801
852
  */
802
- conditions?: Array<SharedAPI.Condition> | null;
853
+ conditions?: Array<Shared.Condition> | null;
854
+ }
855
+
856
+ export namespace PreferenceSetWorkflowCategorySettingObject {
857
+ /**
858
+ * A set of settings for a specific channel. Currently, this can only be a list of
859
+ * conditions to apply.
860
+ */
861
+ export interface PreferenceSetChannelSetting {
862
+ /**
863
+ * A list of conditions to apply to a specific channel.
864
+ */
865
+ conditions: Array<Shared.Condition>;
866
+ }
867
+ }
868
+
869
+ /**
870
+ * A set of settings for a specific channel. Currently, this can only be a list of
871
+ * conditions to apply.
872
+ */
873
+ export interface PreferenceSetChannelSetting {
874
+ /**
875
+ * A list of conditions to apply to a specific channel.
876
+ */
877
+ conditions: Array<Shared.Condition>;
803
878
  }
804
879
 
805
880
  /**
@@ -812,10 +887,30 @@ export namespace UserSetPreferencesParams {
812
887
  */
813
888
  channel_types?: PreferencesAPI.PreferenceSetChannelTypes | null;
814
889
 
890
+ /**
891
+ * Channel preferences.
892
+ */
893
+ channels?: {
894
+ [key: string]: boolean | PreferenceSetWorkflowCategorySettingObject.PreferenceSetChannelSetting;
895
+ } | null;
896
+
815
897
  /**
816
898
  * A list of conditions to apply to a channel type.
817
899
  */
818
- conditions?: Array<SharedAPI.Condition> | null;
900
+ conditions?: Array<Shared.Condition> | null;
901
+ }
902
+
903
+ export namespace PreferenceSetWorkflowCategorySettingObject {
904
+ /**
905
+ * A set of settings for a specific channel. Currently, this can only be a list of
906
+ * conditions to apply.
907
+ */
908
+ export interface PreferenceSetChannelSetting {
909
+ /**
910
+ * A list of conditions to apply to a specific channel.
911
+ */
912
+ conditions: Array<Shared.Condition>;
913
+ }
819
914
  }
820
915
  }
821
916
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.19.0'; // x-release-please-version
1
+ export const VERSION = '1.21.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.19.0";
1
+ export declare const VERSION = "1.21.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.19.0";
1
+ export declare const VERSION = "1.21.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.19.0'; // x-release-please-version
4
+ exports.VERSION = '1.21.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.19.0'; // x-release-please-version
1
+ export const VERSION = '1.21.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map