@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.
- package/CHANGELOG.md +50 -0
- package/README.md +11 -11
- package/client.d.mts +23 -14
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -14
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +2 -2
- package/client.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +1 -1
- package/internal/tslib.js +6 -6
- package/package.json +1 -1
- package/resources/audiences.d.mts +27 -46
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +27 -46
- package/resources/audiences.d.ts.map +1 -1
- package/resources/audit-events.d.mts +3 -7
- package/resources/audit-events.d.mts.map +1 -1
- package/resources/audit-events.d.ts +3 -7
- package/resources/audit-events.d.ts.map +1 -1
- package/resources/auth.d.mts +2 -2
- package/resources/auth.d.mts.map +1 -1
- package/resources/auth.d.ts +2 -2
- package/resources/auth.d.ts.map +1 -1
- package/resources/automations/automations.d.mts +2 -253
- package/resources/automations/automations.d.mts.map +1 -1
- package/resources/automations/automations.d.ts +2 -253
- package/resources/automations/automations.d.ts.map +1 -1
- package/resources/automations/automations.js +0 -42
- package/resources/automations/automations.js.map +1 -1
- package/resources/automations/automations.mjs +0 -42
- package/resources/automations/automations.mjs.map +1 -1
- package/resources/automations/index.d.mts +2 -2
- package/resources/automations/index.d.mts.map +1 -1
- package/resources/automations/index.d.ts +2 -2
- package/resources/automations/index.d.ts.map +1 -1
- package/resources/automations/index.js.map +1 -1
- package/resources/automations/index.mjs +1 -1
- package/resources/automations/index.mjs.map +1 -1
- package/resources/automations/invoke.d.mts +124 -9
- package/resources/automations/invoke.d.mts.map +1 -1
- package/resources/automations/invoke.d.ts +124 -9
- package/resources/automations/invoke.d.ts.map +1 -1
- package/resources/automations/invoke.js +45 -0
- package/resources/automations/invoke.js.map +1 -1
- package/resources/automations/invoke.mjs +45 -0
- package/resources/automations/invoke.mjs.map +1 -1
- package/resources/brands.d.mts +74 -50
- package/resources/brands.d.mts.map +1 -1
- package/resources/brands.d.ts +74 -50
- package/resources/brands.d.ts.map +1 -1
- package/resources/brands.js.map +1 -1
- package/resources/brands.mjs.map +1 -1
- package/resources/bulk.d.mts +38 -89
- package/resources/bulk.d.mts.map +1 -1
- package/resources/bulk.d.ts +38 -89
- package/resources/bulk.d.ts.map +1 -1
- package/resources/inbound.d.mts +1 -1
- package/resources/inbound.d.ts +1 -1
- package/resources/index.d.mts +8 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -0
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/lists/index.d.mts +2 -2
- package/resources/lists/index.d.mts.map +1 -1
- package/resources/lists/index.d.ts +2 -2
- package/resources/lists/index.d.ts.map +1 -1
- package/resources/lists/index.js.map +1 -1
- package/resources/lists/index.mjs +1 -1
- package/resources/lists/index.mjs.map +1 -1
- package/resources/lists/lists.d.mts +9 -7
- package/resources/lists/lists.d.mts.map +1 -1
- package/resources/lists/lists.d.ts +9 -7
- package/resources/lists/lists.d.ts.map +1 -1
- package/resources/lists/lists.js +7 -2
- package/resources/lists/lists.js.map +1 -1
- package/resources/lists/lists.mjs +7 -2
- package/resources/lists/lists.mjs.map +1 -1
- package/resources/lists/subscriptions.d.mts +9 -34
- package/resources/lists/subscriptions.d.mts.map +1 -1
- package/resources/lists/subscriptions.d.ts +9 -34
- package/resources/lists/subscriptions.d.ts.map +1 -1
- package/resources/messages.d.mts +6 -6
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +6 -6
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +1 -1
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +1 -1
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications/index.d.mts +1 -1
- package/resources/notifications/index.d.mts.map +1 -1
- package/resources/notifications/index.d.ts +1 -1
- package/resources/notifications/index.d.ts.map +1 -1
- package/resources/notifications/index.js.map +1 -1
- package/resources/notifications/index.mjs.map +1 -1
- package/resources/notifications/notifications.d.mts +3 -8
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +3 -8
- package/resources/notifications/notifications.d.ts.map +1 -1
- package/resources/notifications/notifications.js.map +1 -1
- package/resources/notifications/notifications.mjs.map +1 -1
- package/resources/send.d.mts +245 -701
- package/resources/send.d.mts.map +1 -1
- package/resources/send.d.ts +245 -701
- package/resources/send.d.ts.map +1 -1
- package/resources/send.js +12 -1
- package/resources/send.js.map +1 -1
- package/resources/send.mjs +12 -1
- package/resources/send.mjs.map +1 -1
- package/resources/shared.d.mts +42 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +42 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/tenants/index.d.mts +1 -0
- package/resources/tenants/index.d.mts.map +1 -1
- package/resources/tenants/index.d.ts +1 -0
- package/resources/tenants/index.d.ts.map +1 -1
- package/resources/tenants/index.js +3 -1
- package/resources/tenants/index.js.map +1 -1
- package/resources/tenants/index.mjs +1 -0
- package/resources/tenants/index.mjs.map +1 -1
- package/resources/tenants/templates.d.mts +122 -0
- package/resources/tenants/templates.d.mts.map +1 -0
- package/resources/tenants/templates.d.ts +122 -0
- package/resources/tenants/templates.d.ts.map +1 -0
- package/resources/tenants/templates.js +38 -0
- package/resources/tenants/templates.js.map +1 -0
- package/resources/tenants/templates.mjs +34 -0
- package/resources/tenants/templates.mjs.map +1 -0
- package/resources/tenants/tenants.d.mts +4 -0
- package/resources/tenants/tenants.d.mts.map +1 -1
- package/resources/tenants/tenants.d.ts +4 -0
- package/resources/tenants/tenants.d.ts.map +1 -1
- package/resources/tenants/tenants.js +4 -0
- package/resources/tenants/tenants.js.map +1 -1
- package/resources/tenants/tenants.mjs +4 -0
- package/resources/tenants/tenants.mjs.map +1 -1
- package/resources/users/index.d.mts +1 -1
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/tokens.d.mts +22 -23
- package/resources/users/tokens.d.mts.map +1 -1
- package/resources/users/tokens.d.ts +22 -23
- package/resources/users/tokens.d.ts.map +1 -1
- package/resources/users/tokens.js +14 -15
- package/resources/users/tokens.js.map +1 -1
- package/resources/users/tokens.mjs +14 -15
- package/resources/users/tokens.mjs.map +1 -1
- package/resources/users/users.d.mts +2 -2
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +2 -2
- package/resources/users/users.d.ts.map +1 -1
- package/src/client.ts +48 -38
- package/src/internal/to-file.ts +1 -1
- package/src/resources/audiences.ts +43 -82
- package/src/resources/audit-events.ts +5 -11
- package/src/resources/auth.ts +2 -16
- package/src/resources/automations/automations.ts +4 -340
- package/src/resources/automations/index.ts +3 -8
- package/src/resources/automations/invoke.ts +163 -13
- package/src/resources/brands.ts +117 -51
- package/src/resources/bulk.ts +31 -104
- package/src/resources/inbound.ts +1 -1
- package/src/resources/index.ts +17 -19
- package/src/resources/lists/index.ts +9 -1
- package/src/resources/lists/lists.ts +15 -5
- package/src/resources/lists/subscriptions.ts +12 -45
- package/src/resources/messages.ts +8 -5
- package/src/resources/notifications/index.ts +0 -2
- package/src/resources/notifications/notifications.ts +2 -12
- package/src/resources/send.ts +249 -853
- package/src/resources/shared.ts +61 -0
- package/src/resources/tenants/index.ts +8 -0
- package/src/resources/tenants/templates.ts +165 -0
- package/src/resources/tenants/tenants.ts +21 -0
- package/src/resources/users/index.ts +2 -2
- package/src/resources/users/tokens.ts +33 -34
- package/src/resources/users/users.ts +4 -4
- 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
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
|
-
|
|
89
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
|
868
|
-
type
|
|
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
|
|
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
|
}
|
package/src/internal/to-file.ts
CHANGED
|
@@ -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.
|
|
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
|
-
*
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
|
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
|
}
|
package/src/resources/auth.ts
CHANGED
|
@@ -14,27 +14,13 @@ export class Auth extends APIResource {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface AuthIssueTokenResponse {
|
|
17
|
-
token
|
|
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 {
|