@trycourier/courier 6.6.1-alpha0 → 6.7.0-alpha2

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 (196) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +11 -11
  3. package/client.d.mts +23 -14
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +23 -14
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +2 -2
  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/internal/tslib.js +6 -6
  15. package/package.json +1 -1
  16. package/resources/audiences.d.mts +27 -46
  17. package/resources/audiences.d.mts.map +1 -1
  18. package/resources/audiences.d.ts +27 -46
  19. package/resources/audiences.d.ts.map +1 -1
  20. package/resources/audit-events.d.mts +3 -7
  21. package/resources/audit-events.d.mts.map +1 -1
  22. package/resources/audit-events.d.ts +3 -7
  23. package/resources/audit-events.d.ts.map +1 -1
  24. package/resources/auth.d.mts +2 -2
  25. package/resources/auth.d.mts.map +1 -1
  26. package/resources/auth.d.ts +2 -2
  27. package/resources/auth.d.ts.map +1 -1
  28. package/resources/automations/automations.d.mts +2 -253
  29. package/resources/automations/automations.d.mts.map +1 -1
  30. package/resources/automations/automations.d.ts +2 -253
  31. package/resources/automations/automations.d.ts.map +1 -1
  32. package/resources/automations/automations.js +0 -42
  33. package/resources/automations/automations.js.map +1 -1
  34. package/resources/automations/automations.mjs +0 -42
  35. package/resources/automations/automations.mjs.map +1 -1
  36. package/resources/automations/index.d.mts +2 -2
  37. package/resources/automations/index.d.mts.map +1 -1
  38. package/resources/automations/index.d.ts +2 -2
  39. package/resources/automations/index.d.ts.map +1 -1
  40. package/resources/automations/index.js.map +1 -1
  41. package/resources/automations/index.mjs +1 -1
  42. package/resources/automations/index.mjs.map +1 -1
  43. package/resources/automations/invoke.d.mts +124 -9
  44. package/resources/automations/invoke.d.mts.map +1 -1
  45. package/resources/automations/invoke.d.ts +124 -9
  46. package/resources/automations/invoke.d.ts.map +1 -1
  47. package/resources/automations/invoke.js +45 -0
  48. package/resources/automations/invoke.js.map +1 -1
  49. package/resources/automations/invoke.mjs +45 -0
  50. package/resources/automations/invoke.mjs.map +1 -1
  51. package/resources/brands.d.mts +74 -50
  52. package/resources/brands.d.mts.map +1 -1
  53. package/resources/brands.d.ts +74 -50
  54. package/resources/brands.d.ts.map +1 -1
  55. package/resources/brands.js.map +1 -1
  56. package/resources/brands.mjs.map +1 -1
  57. package/resources/bulk.d.mts +38 -89
  58. package/resources/bulk.d.mts.map +1 -1
  59. package/resources/bulk.d.ts +38 -89
  60. package/resources/bulk.d.ts.map +1 -1
  61. package/resources/inbound.d.mts +1 -1
  62. package/resources/inbound.d.ts +1 -1
  63. package/resources/index.d.mts +8 -7
  64. package/resources/index.d.mts.map +1 -1
  65. package/resources/index.d.ts +8 -7
  66. package/resources/index.d.ts.map +1 -1
  67. package/resources/index.js +2 -0
  68. package/resources/index.js.map +1 -1
  69. package/resources/index.mjs +2 -1
  70. package/resources/index.mjs.map +1 -1
  71. package/resources/lists/index.d.mts +2 -2
  72. package/resources/lists/index.d.mts.map +1 -1
  73. package/resources/lists/index.d.ts +2 -2
  74. package/resources/lists/index.d.ts.map +1 -1
  75. package/resources/lists/index.js.map +1 -1
  76. package/resources/lists/index.mjs +1 -1
  77. package/resources/lists/index.mjs.map +1 -1
  78. package/resources/lists/lists.d.mts +9 -7
  79. package/resources/lists/lists.d.mts.map +1 -1
  80. package/resources/lists/lists.d.ts +9 -7
  81. package/resources/lists/lists.d.ts.map +1 -1
  82. package/resources/lists/lists.js +7 -2
  83. package/resources/lists/lists.js.map +1 -1
  84. package/resources/lists/lists.mjs +7 -2
  85. package/resources/lists/lists.mjs.map +1 -1
  86. package/resources/lists/subscriptions.d.mts +9 -34
  87. package/resources/lists/subscriptions.d.mts.map +1 -1
  88. package/resources/lists/subscriptions.d.ts +9 -34
  89. package/resources/lists/subscriptions.d.ts.map +1 -1
  90. package/resources/messages.d.mts +6 -6
  91. package/resources/messages.d.mts.map +1 -1
  92. package/resources/messages.d.ts +6 -6
  93. package/resources/messages.d.ts.map +1 -1
  94. package/resources/messages.js +1 -1
  95. package/resources/messages.js.map +1 -1
  96. package/resources/messages.mjs +1 -1
  97. package/resources/messages.mjs.map +1 -1
  98. package/resources/notifications/index.d.mts +1 -1
  99. package/resources/notifications/index.d.mts.map +1 -1
  100. package/resources/notifications/index.d.ts +1 -1
  101. package/resources/notifications/index.d.ts.map +1 -1
  102. package/resources/notifications/index.js.map +1 -1
  103. package/resources/notifications/index.mjs.map +1 -1
  104. package/resources/notifications/notifications.d.mts +3 -8
  105. package/resources/notifications/notifications.d.mts.map +1 -1
  106. package/resources/notifications/notifications.d.ts +3 -8
  107. package/resources/notifications/notifications.d.ts.map +1 -1
  108. package/resources/notifications/notifications.js.map +1 -1
  109. package/resources/notifications/notifications.mjs.map +1 -1
  110. package/resources/send.d.mts +245 -701
  111. package/resources/send.d.mts.map +1 -1
  112. package/resources/send.d.ts +245 -701
  113. package/resources/send.d.ts.map +1 -1
  114. package/resources/send.js +12 -1
  115. package/resources/send.js.map +1 -1
  116. package/resources/send.mjs +12 -1
  117. package/resources/send.mjs.map +1 -1
  118. package/resources/shared.d.mts +42 -0
  119. package/resources/shared.d.mts.map +1 -0
  120. package/resources/shared.d.ts +42 -0
  121. package/resources/shared.d.ts.map +1 -0
  122. package/resources/shared.js +4 -0
  123. package/resources/shared.js.map +1 -0
  124. package/resources/shared.mjs +3 -0
  125. package/resources/shared.mjs.map +1 -0
  126. package/resources/tenants/index.d.mts +1 -0
  127. package/resources/tenants/index.d.mts.map +1 -1
  128. package/resources/tenants/index.d.ts +1 -0
  129. package/resources/tenants/index.d.ts.map +1 -1
  130. package/resources/tenants/index.js +3 -1
  131. package/resources/tenants/index.js.map +1 -1
  132. package/resources/tenants/index.mjs +1 -0
  133. package/resources/tenants/index.mjs.map +1 -1
  134. package/resources/tenants/templates.d.mts +122 -0
  135. package/resources/tenants/templates.d.mts.map +1 -0
  136. package/resources/tenants/templates.d.ts +122 -0
  137. package/resources/tenants/templates.d.ts.map +1 -0
  138. package/resources/tenants/templates.js +38 -0
  139. package/resources/tenants/templates.js.map +1 -0
  140. package/resources/tenants/templates.mjs +34 -0
  141. package/resources/tenants/templates.mjs.map +1 -0
  142. package/resources/tenants/tenants.d.mts +4 -0
  143. package/resources/tenants/tenants.d.mts.map +1 -1
  144. package/resources/tenants/tenants.d.ts +4 -0
  145. package/resources/tenants/tenants.d.ts.map +1 -1
  146. package/resources/tenants/tenants.js +4 -0
  147. package/resources/tenants/tenants.js.map +1 -1
  148. package/resources/tenants/tenants.mjs +4 -0
  149. package/resources/tenants/tenants.mjs.map +1 -1
  150. package/resources/users/index.d.mts +1 -1
  151. package/resources/users/index.d.mts.map +1 -1
  152. package/resources/users/index.d.ts +1 -1
  153. package/resources/users/index.d.ts.map +1 -1
  154. package/resources/users/tokens.d.mts +22 -23
  155. package/resources/users/tokens.d.mts.map +1 -1
  156. package/resources/users/tokens.d.ts +22 -23
  157. package/resources/users/tokens.d.ts.map +1 -1
  158. package/resources/users/tokens.js +14 -15
  159. package/resources/users/tokens.js.map +1 -1
  160. package/resources/users/tokens.mjs +14 -15
  161. package/resources/users/tokens.mjs.map +1 -1
  162. package/resources/users/users.d.mts +2 -2
  163. package/resources/users/users.d.mts.map +1 -1
  164. package/resources/users/users.d.ts +2 -2
  165. package/resources/users/users.d.ts.map +1 -1
  166. package/src/client.ts +48 -38
  167. package/src/internal/to-file.ts +1 -1
  168. package/src/resources/audiences.ts +43 -82
  169. package/src/resources/audit-events.ts +5 -11
  170. package/src/resources/auth.ts +2 -16
  171. package/src/resources/automations/automations.ts +4 -340
  172. package/src/resources/automations/index.ts +3 -8
  173. package/src/resources/automations/invoke.ts +163 -13
  174. package/src/resources/brands.ts +117 -51
  175. package/src/resources/bulk.ts +31 -104
  176. package/src/resources/inbound.ts +1 -1
  177. package/src/resources/index.ts +17 -19
  178. package/src/resources/lists/index.ts +9 -1
  179. package/src/resources/lists/lists.ts +15 -5
  180. package/src/resources/lists/subscriptions.ts +12 -45
  181. package/src/resources/messages.ts +8 -5
  182. package/src/resources/notifications/index.ts +0 -2
  183. package/src/resources/notifications/notifications.ts +2 -12
  184. package/src/resources/send.ts +249 -853
  185. package/src/resources/shared.ts +61 -0
  186. package/src/resources/tenants/index.ts +8 -0
  187. package/src/resources/tenants/templates.ts +165 -0
  188. package/src/resources/tenants/tenants.ts +21 -0
  189. package/src/resources/users/index.ts +2 -2
  190. package/src/resources/users/tokens.ts +33 -34
  191. package/src/resources/users/users.ts +4 -4
  192. package/src/version.ts +1 -1
  193. package/version.d.mts +1 -1
  194. package/version.d.ts +1 -1
  195. package/version.js +1 -1
  196. package/version.mjs +1 -1
package/src/client.ts CHANGED
@@ -28,7 +28,6 @@ import {
28
28
  Audiences,
29
29
  Filter,
30
30
  FilterConfig,
31
- NestedFilterConfig,
32
31
  Paging,
33
32
  } from './resources/audiences';
34
33
  import {
@@ -40,13 +39,24 @@ import {
40
39
  import { Auth, AuthIssueTokenParams, AuthIssueTokenResponse } from './resources/auth';
41
40
  import {
42
41
  Brand,
42
+ BrandColors,
43
43
  BrandCreateParams,
44
44
  BrandListParams,
45
45
  BrandListResponse,
46
46
  BrandSettings,
47
+ BrandSettingsEmail,
48
+ BrandSettingsInApp,
49
+ BrandSnippet,
47
50
  BrandSnippets,
51
+ BrandTemplate,
48
52
  BrandUpdateParams,
49
53
  Brands,
54
+ EmailFooter,
55
+ EmailHead,
56
+ EmailHeader,
57
+ Icons,
58
+ Logo,
59
+ WidgetBackground,
50
60
  } from './resources/brands';
51
61
  import {
52
62
  Bulk,
@@ -62,8 +72,8 @@ import {
62
72
  } from './resources/bulk';
63
73
  import { Inbound, InboundTrackEventParams, InboundTrackEventResponse } from './resources/inbound';
64
74
  import {
75
+ MessageContentResponse,
65
76
  MessageDetails,
66
- MessageGetContentResponse,
67
77
  MessageHistoryParams,
68
78
  MessageHistoryResponse,
69
79
  MessageListParams,
@@ -73,21 +83,13 @@ import {
73
83
  } from './resources/messages';
74
84
  import { Requests } from './resources/requests';
75
85
  import {
76
- BaseMessage,
77
- BaseMessageSendTo,
78
- Content,
79
86
  ElementalChannelNode,
80
- ElementalGroupNode,
81
87
  ElementalNode,
82
- Message,
83
88
  MessageContext,
84
- MsTeamsBaseProperties,
85
89
  Recipient,
86
- RoutingMethod,
87
90
  Send,
88
- SendSendMessageParams,
89
- SendSendMessageResponse,
90
- SlackBaseProperties,
91
+ SendMessageParams,
92
+ SendMessageResponse,
91
93
  Utm,
92
94
  } from './resources/send';
93
95
  import {
@@ -96,15 +98,16 @@ import {
96
98
  TranslationUpdateParams,
97
99
  Translations,
98
100
  } from './resources/translations';
101
+ import { Automations } from './resources/automations/automations';
99
102
  import {
100
- AutomationInvokeAdHocParams,
101
- AutomationInvokeByTemplateParams,
102
- Automations,
103
- } from './resources/automations/automations';
104
- import { List, ListListParams, ListListResponse, ListUpdateParams, Lists } from './resources/lists/lists';
103
+ List,
104
+ ListListParams,
105
+ ListListResponse,
106
+ ListRestoreParams,
107
+ ListUpdateParams,
108
+ Lists,
109
+ } from './resources/lists/lists';
105
110
  import {
106
- MessageRouting,
107
- MessageRoutingChannel,
108
111
  NotificationGetContent,
109
112
  NotificationListParams,
110
113
  NotificationListResponse,
@@ -851,21 +854,13 @@ export declare namespace Courier {
851
854
 
852
855
  export {
853
856
  Send as Send,
854
- type BaseMessage as BaseMessage,
855
- type BaseMessageSendTo as BaseMessageSendTo,
856
- type Content as Content,
857
857
  type ElementalChannelNode as ElementalChannelNode,
858
- type ElementalGroupNode as ElementalGroupNode,
859
858
  type ElementalNode as ElementalNode,
860
- type Message as Message,
861
859
  type MessageContext as MessageContext,
862
- type MsTeamsBaseProperties as MsTeamsBaseProperties,
863
860
  type Recipient as Recipient,
864
- type RoutingMethod as RoutingMethod,
865
- type SlackBaseProperties as SlackBaseProperties,
866
861
  type Utm as Utm,
867
- type SendSendMessageResponse as SendSendMessageResponse,
868
- type SendSendMessageParams as SendSendMessageParams,
862
+ type SendMessageResponse as SendMessageResponse,
863
+ type SendMessageParams as SendMessageParams,
869
864
  };
870
865
 
871
866
  export {
@@ -873,7 +868,6 @@ export declare namespace Courier {
873
868
  type Audience as Audience,
874
869
  type Filter as Filter,
875
870
  type FilterConfig as FilterConfig,
876
- type NestedFilterConfig as NestedFilterConfig,
877
871
  type Paging as Paging,
878
872
  type AudienceUpdateResponse as AudienceUpdateResponse,
879
873
  type AudienceListResponse as AudienceListResponse,
@@ -896,17 +890,24 @@ export declare namespace Courier {
896
890
  type AuthIssueTokenParams as AuthIssueTokenParams,
897
891
  };
898
892
 
899
- export {
900
- Automations as Automations,
901
- type AutomationInvokeAdHocParams as AutomationInvokeAdHocParams,
902
- type AutomationInvokeByTemplateParams as AutomationInvokeByTemplateParams,
903
- };
893
+ export { Automations as Automations };
904
894
 
905
895
  export {
906
896
  Brands as Brands,
907
897
  type Brand as Brand,
898
+ type BrandColors as BrandColors,
908
899
  type BrandSettings as BrandSettings,
900
+ type BrandSettingsEmail as BrandSettingsEmail,
901
+ type BrandSettingsInApp as BrandSettingsInApp,
902
+ type BrandSnippet as BrandSnippet,
909
903
  type BrandSnippets as BrandSnippets,
904
+ type BrandTemplate as BrandTemplate,
905
+ type EmailFooter as EmailFooter,
906
+ type EmailHead as EmailHead,
907
+ type EmailHeader as EmailHeader,
908
+ type Icons as Icons,
909
+ type Logo as Logo,
910
+ type WidgetBackground as WidgetBackground,
910
911
  type BrandListResponse as BrandListResponse,
911
912
  type BrandCreateParams as BrandCreateParams,
912
913
  type BrandUpdateParams as BrandUpdateParams,
@@ -938,6 +939,7 @@ export declare namespace Courier {
938
939
  type ListListResponse as ListListResponse,
939
940
  type ListUpdateParams as ListUpdateParams,
940
941
  type ListListParams as ListListParams,
942
+ type ListRestoreParams as ListRestoreParams,
941
943
  };
942
944
 
943
945
  export {
@@ -945,7 +947,7 @@ export declare namespace Courier {
945
947
  type MessageDetails as MessageDetails,
946
948
  type MessageRetrieveResponse as MessageRetrieveResponse,
947
949
  type MessageListResponse as MessageListResponse,
948
- type MessageGetContentResponse as MessageGetContentResponse,
950
+ type MessageContentResponse as MessageContentResponse,
949
951
  type MessageHistoryResponse as MessageHistoryResponse,
950
952
  type MessageListParams as MessageListParams,
951
953
  type MessageHistoryParams as MessageHistoryParams,
@@ -955,8 +957,6 @@ export declare namespace Courier {
955
957
 
956
958
  export {
957
959
  Notifications as Notifications,
958
- type MessageRouting as MessageRouting,
959
- type MessageRoutingChannel as MessageRoutingChannel,
960
960
  type NotificationGetContent as NotificationGetContent,
961
961
  type NotificationListResponse as NotificationListResponse,
962
962
  type NotificationListParams as NotificationListParams,
@@ -991,4 +991,14 @@ export declare namespace Courier {
991
991
  };
992
992
 
993
993
  export { Users as Users };
994
+
995
+ export type Alignment = API.Alignment;
996
+ export type ChannelPreference = API.ChannelPreference;
997
+ export type ElementalBaseNode = API.ElementalBaseNode;
998
+ export type ElementalContentSugar = API.ElementalContentSugar;
999
+ export type MessageRouting = API.MessageRouting;
1000
+ export type MessageRoutingChannel = API.MessageRoutingChannel;
1001
+ export type Preference = API.Preference;
1002
+ export type Rule = API.Rule;
1003
+ export type TextStyle = API.TextStyle;
994
1004
  }
@@ -73,7 +73,7 @@ export type ToFileInput =
73
73
 
74
74
  /**
75
75
  * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
76
- * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
76
+ * @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
77
77
  * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
78
78
  * @param {Object=} options additional properties
79
79
  * @param {string=} options.type the MIME type of the content
@@ -71,7 +71,7 @@ export interface Audience {
71
71
  description: string;
72
72
 
73
73
  /**
74
- * The operator to use for filtering
74
+ * A single filter to use for filtering
75
75
  */
76
76
  filter: Filter;
77
77
 
@@ -83,87 +83,40 @@ export interface Audience {
83
83
  updated_at: string;
84
84
  }
85
85
 
86
- /**
87
- * The operator to use for filtering
88
- */
89
- export type Filter = Filter.UnionMember0 | NestedFilterConfig;
90
-
91
- export namespace Filter {
92
- export interface UnionMember0 {
93
- /**
94
- * The operator to use for filtering
95
- */
96
- operator:
97
- | 'ENDS_WITH'
98
- | 'EQ'
99
- | 'EXISTS'
100
- | 'GT'
101
- | 'GTE'
102
- | 'INCLUDES'
103
- | 'IS_AFTER'
104
- | 'IS_BEFORE'
105
- | 'LT'
106
- | 'LTE'
107
- | 'NEQ'
108
- | 'OMIT'
109
- | 'STARTS_WITH'
110
- | 'AND'
111
- | 'OR';
112
-
113
- /**
114
- * The attribe name from profile whose value will be operated against the filter
115
- * value
116
- */
117
- path: string;
118
-
119
- /**
120
- * The value to use for filtering
121
- */
122
- value: string;
123
- }
124
- }
86
+ export interface Filter {
87
+ /**
88
+ * The operator to use for filtering
89
+ */
90
+ operator:
91
+ | 'ENDS_WITH'
92
+ | 'EQ'
93
+ | 'EXISTS'
94
+ | 'GT'
95
+ | 'GTE'
96
+ | 'INCLUDES'
97
+ | 'IS_AFTER'
98
+ | 'IS_BEFORE'
99
+ | 'LT'
100
+ | 'LTE'
101
+ | 'NEQ'
102
+ | 'OMIT'
103
+ | 'STARTS_WITH'
104
+ | 'AND'
105
+ | 'OR';
125
106
 
126
- /**
127
- * The operator to use for filtering
128
- */
129
- export type FilterConfig = FilterConfig.UnionMember0 | NestedFilterConfig;
130
-
131
- export namespace FilterConfig {
132
- export interface UnionMember0 {
133
- /**
134
- * The operator to use for filtering
135
- */
136
- operator:
137
- | 'ENDS_WITH'
138
- | 'EQ'
139
- | 'EXISTS'
140
- | 'GT'
141
- | 'GTE'
142
- | 'INCLUDES'
143
- | 'IS_AFTER'
144
- | 'IS_BEFORE'
145
- | 'LT'
146
- | 'LTE'
147
- | 'NEQ'
148
- | 'OMIT'
149
- | 'STARTS_WITH'
150
- | 'AND'
151
- | 'OR';
152
-
153
- /**
154
- * The attribe name from profile whose value will be operated against the filter
155
- * value
156
- */
157
- path: string;
158
-
159
- /**
160
- * The value to use for filtering
161
- */
162
- value: string;
163
- }
107
+ /**
108
+ * The attribe name from profile whose value will be operated against the filter
109
+ * value
110
+ */
111
+ path: string;
112
+
113
+ /**
114
+ * The value to use for filtering
115
+ */
116
+ value: string;
164
117
  }
165
118
 
166
- export interface NestedFilterConfig {
119
+ export interface FilterConfig {
167
120
  /**
168
121
  * The operator to use for filtering
169
122
  */
@@ -184,7 +137,16 @@ export interface NestedFilterConfig {
184
137
  | 'AND'
185
138
  | 'OR';
186
139
 
187
- rules: Array<FilterConfig>;
140
+ /**
141
+ * The attribe name from profile whose value will be operated against the filter
142
+ * value
143
+ */
144
+ path: string;
145
+
146
+ /**
147
+ * The value to use for filtering
148
+ */
149
+ value: string;
188
150
  }
189
151
 
190
152
  export interface Paging {
@@ -230,7 +192,7 @@ export interface AudienceUpdateParams {
230
192
  description?: string | null;
231
193
 
232
194
  /**
233
- * The operator to use for filtering
195
+ * A single filter to use for filtering
234
196
  */
235
197
  filter?: Filter | null;
236
198
 
@@ -259,7 +221,6 @@ export declare namespace Audiences {
259
221
  type Audience as Audience,
260
222
  type Filter as Filter,
261
223
  type FilterConfig as FilterConfig,
262
- type NestedFilterConfig as NestedFilterConfig,
263
224
  type Paging as Paging,
264
225
  type AudienceUpdateResponse as AudienceUpdateResponse,
265
226
  type AudienceListResponse as AudienceListResponse,
@@ -26,28 +26,22 @@ export class AuditEvents extends APIResource {
26
26
  }
27
27
 
28
28
  export interface AuditEvent {
29
+ actor: AuditEvent.Actor;
30
+
29
31
  auditEventId: string;
30
32
 
31
33
  source: string;
32
34
 
35
+ target: string;
36
+
33
37
  timestamp: string;
34
38
 
35
39
  type: string;
36
-
37
- actor?: AuditEvent.Actor | null;
38
-
39
- target?: AuditEvent.Target | null;
40
40
  }
41
41
 
42
42
  export namespace AuditEvent {
43
43
  export interface Actor {
44
- id?: string | null;
45
-
46
- email?: string | null;
47
- }
48
-
49
- export interface Target {
50
- id?: string | null;
44
+ id: string;
51
45
 
52
46
  email?: string | null;
53
47
  }
@@ -14,27 +14,13 @@ export class Auth extends APIResource {
14
14
  }
15
15
 
16
16
  export interface AuthIssueTokenResponse {
17
- token?: string | null;
17
+ token: string;
18
18
  }
19
19
 
20
20
  export interface AuthIssueTokenParams {
21
21
  expires_in: string;
22
22
 
23
- scope:
24
- | 'read:preferences'
25
- | 'write:preferences'
26
- | 'read:user-tokens'
27
- | 'write:user-tokens'
28
- | 'read:brands'
29
- | 'write:brands'
30
- | 'read:brands{:id}'
31
- | 'write:brands{:id}'
32
- | 'write:track'
33
- | 'inbox:read:messages'
34
- | 'inbox:write:messages'
35
- | 'inbox:write:event'
36
- | 'inbox:write:events'
37
- | 'user_id:$YOUR_USER_ID';
23
+ scope: string;
38
24
  }
39
25
 
40
26
  export declare namespace Auth {