@knocklabs/node 1.33.0 → 1.35.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.
- package/CHANGELOG.md +59 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/audiences.d.mts +19 -39
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +19 -39
- package/resources/audiences.d.ts.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/batch.d.mts +15 -252
- package/resources/messages/batch.d.mts.map +1 -1
- package/resources/messages/batch.d.ts +15 -252
- package/resources/messages/batch.d.ts.map +1 -1
- package/resources/messages/batch.js +4 -3
- package/resources/messages/batch.js.map +1 -1
- package/resources/messages/batch.mjs +4 -3
- package/resources/messages/batch.mjs.map +1 -1
- package/resources/messages/index.d.mts +2 -2
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +2 -2
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +215 -188
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +215 -188
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/objects/objects.d.mts +5 -2
- package/resources/objects/objects.d.mts.map +1 -1
- package/resources/objects/objects.d.ts +5 -2
- package/resources/objects/objects.d.ts.map +1 -1
- package/resources/objects/objects.js.map +1 -1
- package/resources/objects/objects.mjs.map +1 -1
- package/resources/recipients/channel-data.d.mts +4 -0
- package/resources/recipients/channel-data.d.mts.map +1 -1
- package/resources/recipients/channel-data.d.ts +4 -0
- package/resources/recipients/channel-data.d.ts.map +1 -1
- package/resources/recipients/preferences.d.mts +9 -4
- package/resources/recipients/preferences.d.mts.map +1 -1
- package/resources/recipients/preferences.d.ts +9 -4
- package/resources/recipients/preferences.d.ts.map +1 -1
- package/resources/recipients/preferences.js.map +1 -1
- package/resources/recipients/preferences.mjs.map +1 -1
- package/resources/users/bulk.d.mts +4 -2
- package/resources/users/bulk.d.mts.map +1 -1
- package/resources/users/bulk.d.ts +4 -2
- package/resources/users/bulk.d.ts.map +1 -1
- package/resources/users/feeds.d.mts +1 -58
- package/resources/users/feeds.d.mts.map +1 -1
- package/resources/users/feeds.d.ts +1 -58
- package/resources/users/feeds.d.ts.map +1 -1
- package/resources/users/guides.d.mts +190 -108
- package/resources/users/guides.d.mts.map +1 -1
- package/resources/users/guides.d.ts +190 -108
- package/resources/users/guides.d.ts.map +1 -1
- package/resources/users/guides.js +55 -43
- package/resources/users/guides.js.map +1 -1
- package/resources/users/guides.mjs +55 -43
- package/resources/users/guides.mjs.map +1 -1
- package/resources/users/index.d.mts +3 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +3 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js +3 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs +1 -0
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/preference-center.d.mts +175 -0
- package/resources/users/preference-center.d.mts.map +1 -0
- package/resources/users/preference-center.d.ts +175 -0
- package/resources/users/preference-center.d.ts.map +1 -0
- package/resources/users/preference-center.js +41 -0
- package/resources/users/preference-center.js.map +1 -0
- package/resources/users/preference-center.mjs +37 -0
- package/resources/users/preference-center.mjs.map +1 -0
- package/resources/users/users.d.mts +47 -5
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +47 -5
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +4 -0
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +4 -0
- package/resources/users/users.mjs.map +1 -1
- package/src/client.ts +16 -2
- package/src/resources/audiences.ts +21 -42
- package/src/resources/index.ts +8 -1
- package/src/resources/messages/batch.ts +16 -294
- package/src/resources/messages/index.ts +5 -1
- package/src/resources/messages/messages.ts +252 -218
- package/src/resources/objects/objects.ts +5 -2
- package/src/resources/recipients/channel-data.ts +5 -0
- package/src/resources/recipients/preferences.ts +9 -4
- package/src/resources/users/bulk.ts +4 -2
- package/src/resources/users/feeds.ts +1 -70
- package/src/resources/users/guides.ts +228 -120
- package/src/resources/users/index.ts +15 -3
- package/src/resources/users/preference-center.ts +224 -0
- package/src/resources/users/users.ts +78 -8
- 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/resources/audiences.d.ts
CHANGED
|
@@ -75,6 +75,22 @@ export interface AudienceMember {
|
|
|
75
75
|
*/
|
|
76
76
|
tenant?: string | null;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* An audience member.
|
|
80
|
+
*/
|
|
81
|
+
export interface AudienceMemberRequest {
|
|
82
|
+
/**
|
|
83
|
+
* A set of parameters to inline-identify a user with. Inline identifying the user
|
|
84
|
+
* will ensure that the user is available before the request is executed in Knock.
|
|
85
|
+
* It will perform an upsert for the user you're supplying, replacing any
|
|
86
|
+
* properties specified.
|
|
87
|
+
*/
|
|
88
|
+
user: UsersAPI.InlineIdentifyUserRequest;
|
|
89
|
+
/**
|
|
90
|
+
* The unique identifier for the tenant.
|
|
91
|
+
*/
|
|
92
|
+
tenant?: string | null;
|
|
93
|
+
}
|
|
78
94
|
/**
|
|
79
95
|
* A paginated list of audience members.
|
|
80
96
|
*/
|
|
@@ -93,56 +109,20 @@ export interface AudienceAddMembersParams {
|
|
|
93
109
|
* Body param: A list of audience members to add. You can add up to 1,000 members
|
|
94
110
|
* per request.
|
|
95
111
|
*/
|
|
96
|
-
members: Array<
|
|
112
|
+
members: Array<AudienceMemberRequest>;
|
|
97
113
|
/**
|
|
98
114
|
* Query param: Create the audience if it does not exist.
|
|
99
115
|
*/
|
|
100
116
|
create_audience?: boolean;
|
|
101
117
|
}
|
|
102
|
-
export declare namespace AudienceAddMembersParams {
|
|
103
|
-
/**
|
|
104
|
-
* An audience member.
|
|
105
|
-
*/
|
|
106
|
-
interface Member {
|
|
107
|
-
/**
|
|
108
|
-
* A set of parameters to inline-identify a user with. Inline identifying the user
|
|
109
|
-
* will ensure that the user is available before the request is executed in Knock.
|
|
110
|
-
* It will perform an upsert for the user you're supplying, replacing any
|
|
111
|
-
* properties specified.
|
|
112
|
-
*/
|
|
113
|
-
user: UsersAPI.InlineIdentifyUserRequest;
|
|
114
|
-
/**
|
|
115
|
-
* The unique identifier for the tenant.
|
|
116
|
-
*/
|
|
117
|
-
tenant?: string | null;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
118
|
export interface AudienceRemoveMembersParams {
|
|
121
119
|
/**
|
|
122
120
|
* A list of audience members to remove. You can remove up to 1,000 members per
|
|
123
121
|
* request.
|
|
124
122
|
*/
|
|
125
|
-
members: Array<
|
|
126
|
-
}
|
|
127
|
-
export declare namespace AudienceRemoveMembersParams {
|
|
128
|
-
/**
|
|
129
|
-
* An audience member.
|
|
130
|
-
*/
|
|
131
|
-
interface Member {
|
|
132
|
-
/**
|
|
133
|
-
* A set of parameters to inline-identify a user with. Inline identifying the user
|
|
134
|
-
* will ensure that the user is available before the request is executed in Knock.
|
|
135
|
-
* It will perform an upsert for the user you're supplying, replacing any
|
|
136
|
-
* properties specified.
|
|
137
|
-
*/
|
|
138
|
-
user: UsersAPI.InlineIdentifyUserRequest;
|
|
139
|
-
/**
|
|
140
|
-
* The unique identifier for the tenant.
|
|
141
|
-
*/
|
|
142
|
-
tenant?: string | null;
|
|
143
|
-
}
|
|
123
|
+
members: Array<AudienceMemberRequest>;
|
|
144
124
|
}
|
|
145
125
|
export declare namespace Audiences {
|
|
146
|
-
export { type AudienceMember as AudienceMember, type AudienceListMembersResponse as AudienceListMembersResponse, type AudienceAddMembersParams as AudienceAddMembersParams, type AudienceRemoveMembersParams as AudienceRemoveMembersParams, };
|
|
126
|
+
export { type AudienceMember as AudienceMember, type AudienceMemberRequest as AudienceMemberRequest, type AudienceListMembersResponse as AudienceListMembersResponse, type AudienceAddMembersParams as AudienceAddMembersParams, type AudienceRemoveMembersParams as AudienceRemoveMembersParams, };
|
|
147
127
|
}
|
|
148
128
|
//# sourceMappingURL=audiences.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audiences.d.ts","sourceRoot":"","sources":["../src/resources/audiences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,KAAK,QAAQ,yBAAsB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAUrG;;;;;;;OAOG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI3F;;;;;;;;;OASG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO1G;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OA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AAM,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,IAAI,EAAE,QAAQ,CAAC,yBAAyB,CAAC;IAEzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAE/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,OAAO,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,OAAO,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export * from "./shared.mjs";
|
|
2
|
-
export { Audiences, type AudienceMember, type AudienceListMembersResponse, type AudienceAddMembersParams, type AudienceRemoveMembersParams, } from "./audiences.mjs";
|
|
2
|
+
export { Audiences, type AudienceMember, type AudienceMemberRequest, type AudienceListMembersResponse, type AudienceAddMembersParams, type AudienceRemoveMembersParams, } from "./audiences.mjs";
|
|
3
3
|
export { BulkOperations, type BulkOperation } from "./bulk-operations.mjs";
|
|
4
4
|
export { Channels } from "./channels/channels.mjs";
|
|
5
5
|
export { Integrations } from "./integrations/integrations.mjs";
|
|
6
|
-
export { Messages, type Activity, type Message, type MessageDeliveryLog, type MessageEvent, type
|
|
6
|
+
export { Messages, type Activity, type ListMessagesResponse, type Message, type MessageContents, type MessageDeliveryLog, type MessageEvent, type MessageInAppFeedButtonSetBlock, type MessageInAppFeedContentBlock, type MessageListParams, type MessageListActivitiesParams, type MessageListDeliveryLogsParams, type MessageListEventsParams, type MessageMarkAsInteractedParams, type MessagesItemsCursor, type ActivitiesItemsCursor, type MessageDeliveryLogsItemsCursor, type MessageEventsItemsCursor, } from "./messages/messages.mjs";
|
|
7
7
|
export { Objects, type InlineObjectRequest, type Object, type ObjectAddSubscriptionsResponse, type ObjectDeleteSubscriptionsResponse, type ObjectListPreferencesResponse, type ObjectListParams, type ObjectAddSubscriptionsParams, type ObjectDeleteSubscriptionsParams, type ObjectListMessagesParams, type ObjectListSchedulesParams, type ObjectListSubscriptionsParams, type ObjectSetParams, type ObjectSetChannelDataParams, type ObjectSetPreferencesParams, type ObjectsEntriesCursor, } from "./objects/objects.mjs";
|
|
8
8
|
export { Providers } from "./providers/providers.mjs";
|
|
9
9
|
export { Recipients, type Recipient, type RecipientReference, type RecipientRequest, } from "./recipients/recipients.mjs";
|
|
10
10
|
export { Schedules, type Schedule, type ScheduleRepeatRule, type ScheduleCreateResponse, type ScheduleUpdateResponse, type ScheduleDeleteResponse, type ScheduleCreateParams, type ScheduleUpdateParams, type ScheduleListParams, type ScheduleDeleteParams, type SchedulesEntriesCursor, } from "./schedules/schedules.mjs";
|
|
11
11
|
export { Tenants, type InlineTenantRequest, type Tenant, type TenantRequest, type TenantListParams, type TenantGetParams, type TenantSetParams, type TenantsEntriesCursor, } from "./tenants/tenants.mjs";
|
|
12
|
-
export { Users, type IdentifyUserRequest, type InlineIdentifyUserRequest, type User, type UserListPreferencesResponse, type UserUpdateParams, type UserListParams, type UserGetPreferencesParams, type UserListMessagesParams, type UserListSchedulesParams, type UserListSubscriptionsParams, type UserMergeParams, type UserSetChannelDataParams, type UserSetPreferencesParams, type UsersEntriesCursor, } from "./users/users.mjs";
|
|
12
|
+
export { Users, type IdentifyUserRequest, type InlineIdentifyUserRequest, type ListSchedulesResponse, type ListSubscriptionsResponse, type PreferenceSetCommercialSubscribedSetting, type User, type UserListPreferencesResponse, type UserUpdateParams, type UserListParams, type UserGetPreferencesParams, type UserListMessagesParams, type UserListSchedulesParams, type UserListSubscriptionsParams, type UserMergeParams, type UserSetChannelDataParams, type UserSetPreferencesParams, type UsersEntriesCursor, } from "./users/users.mjs";
|
|
13
13
|
export { WorkflowRecipientRuns, type WorkflowRecipientRun, type WorkflowRecipientRunDetail, type WorkflowRecipientRunEvent, type WorkflowRecipientRunListParams, type WorkflowRecipientRunsItemsCursor, } from "./workflow-recipient-runs.mjs";
|
|
14
14
|
export { Workflows, type WorkflowTriggerResponse, type WorkflowCancelParams, type WorkflowTriggerParams, } from "./workflows.mjs";
|
|
15
15
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,GACjC,wBAAoB;AACrB,OAAO,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,8BAA0B;AACvE,OAAO,EAAE,QAAQ,EAAE,gCAA4B;AAC/C,OAAO,EAAE,YAAY,EAAE,wCAAoC;AAC3D,OAAO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,K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zB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,kCAA8B;AAC/B,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B,8BAA0B;AAC3B,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,wCAAwC,EAC7C,KAAK,IAAI,EACT,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,GACxB,0BAAsB;AACvB,OAAO,EACL,qBAAqB,EACrB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,GACtC,sCAAkC;AACnC,OAAO,EACL,SAAS,EACT,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,wBAAoB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
|
-
export { Audiences, type AudienceMember, type AudienceListMembersResponse, type AudienceAddMembersParams, type AudienceRemoveMembersParams, } from "./audiences.js";
|
|
2
|
+
export { Audiences, type AudienceMember, type AudienceMemberRequest, type AudienceListMembersResponse, type AudienceAddMembersParams, type AudienceRemoveMembersParams, } from "./audiences.js";
|
|
3
3
|
export { BulkOperations, type BulkOperation } from "./bulk-operations.js";
|
|
4
4
|
export { Channels } from "./channels/channels.js";
|
|
5
5
|
export { Integrations } from "./integrations/integrations.js";
|
|
6
|
-
export { Messages, type Activity, type Message, type MessageDeliveryLog, type MessageEvent, type
|
|
6
|
+
export { Messages, type Activity, type ListMessagesResponse, type Message, type MessageContents, type MessageDeliveryLog, type MessageEvent, type MessageInAppFeedButtonSetBlock, type MessageInAppFeedContentBlock, type MessageListParams, type MessageListActivitiesParams, type MessageListDeliveryLogsParams, type MessageListEventsParams, type MessageMarkAsInteractedParams, type MessagesItemsCursor, type ActivitiesItemsCursor, type MessageDeliveryLogsItemsCursor, type MessageEventsItemsCursor, } from "./messages/messages.js";
|
|
7
7
|
export { Objects, type InlineObjectRequest, type Object, type ObjectAddSubscriptionsResponse, type ObjectDeleteSubscriptionsResponse, type ObjectListPreferencesResponse, type ObjectListParams, type ObjectAddSubscriptionsParams, type ObjectDeleteSubscriptionsParams, type ObjectListMessagesParams, type ObjectListSchedulesParams, type ObjectListSubscriptionsParams, type ObjectSetParams, type ObjectSetChannelDataParams, type ObjectSetPreferencesParams, type ObjectsEntriesCursor, } from "./objects/objects.js";
|
|
8
8
|
export { Providers } from "./providers/providers.js";
|
|
9
9
|
export { Recipients, type Recipient, type RecipientReference, type RecipientRequest, } from "./recipients/recipients.js";
|
|
10
10
|
export { Schedules, type Schedule, type ScheduleRepeatRule, type ScheduleCreateResponse, type ScheduleUpdateResponse, type ScheduleDeleteResponse, type ScheduleCreateParams, type ScheduleUpdateParams, type ScheduleListParams, type ScheduleDeleteParams, type SchedulesEntriesCursor, } from "./schedules/schedules.js";
|
|
11
11
|
export { Tenants, type InlineTenantRequest, type Tenant, type TenantRequest, type TenantListParams, type TenantGetParams, type TenantSetParams, type TenantsEntriesCursor, } from "./tenants/tenants.js";
|
|
12
|
-
export { Users, type IdentifyUserRequest, type InlineIdentifyUserRequest, type User, type UserListPreferencesResponse, type UserUpdateParams, type UserListParams, type UserGetPreferencesParams, type UserListMessagesParams, type UserListSchedulesParams, type UserListSubscriptionsParams, type UserMergeParams, type UserSetChannelDataParams, type UserSetPreferencesParams, type UsersEntriesCursor, } from "./users/users.js";
|
|
12
|
+
export { Users, type IdentifyUserRequest, type InlineIdentifyUserRequest, type ListSchedulesResponse, type ListSubscriptionsResponse, type PreferenceSetCommercialSubscribedSetting, type User, type UserListPreferencesResponse, type UserUpdateParams, type UserListParams, type UserGetPreferencesParams, type UserListMessagesParams, type UserListSchedulesParams, type UserListSubscriptionsParams, type UserMergeParams, type UserSetChannelDataParams, type UserSetPreferencesParams, type UsersEntriesCursor, } from "./users/users.js";
|
|
13
13
|
export { WorkflowRecipientRuns, type WorkflowRecipientRun, type WorkflowRecipientRunDetail, type WorkflowRecipientRunEvent, type WorkflowRecipientRunListParams, type WorkflowRecipientRunsItemsCursor, } from "./workflow-recipient-runs.js";
|
|
14
14
|
export { Workflows, type WorkflowTriggerResponse, type WorkflowCancelParams, type WorkflowTriggerParams, } from "./workflows.js";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,GACjC,uBAAoB;AACrB,OAAO,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,6BAA0B;AACvE,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB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,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,iCAA8B;AAC/B,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B,6BAA0B;AAC3B,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,wCAAwC,EAC7C,KAAK,IAAI,EACT,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,GACxB,yBAAsB;AACvB,OAAO,EACL,qBAAqB,EACrB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,GACtC,qCAAkC;AACnC,OAAO,EACL,SAAS,EACT,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,uBAAoB"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,4CAOqB;AANnB,sGAAA,SAAS,OAAA;AAOX,wDAAuE;AAA9D,iHAAA,cAAc,OAAA;AACvB,mDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,+DAA2D;AAAlD,4GAAA,YAAY,OAAA;AACrB,mDAmB6B;AAlB3B,oGAAA,QAAQ,OAAA;AAmBV,gDAiB2B;AAhBzB,kGAAA,OAAO,OAAA;AAiBT,sDAAkD;AAAzC,sGAAA,SAAS,OAAA;AAClB,yDAKiC;AAJ/B,wGAAA,UAAU,OAAA;AAKZ,sDAY+B;AAX7B,sGAAA,SAAS,OAAA;AAYX,gDAS2B;AARzB,kGAAA,OAAO,OAAA;AAST,0CAmBuB;AAlBrB,8FAAA,KAAK,OAAA;AAmBP,wEAOmC;AANjC,gIAAA,qBAAqB,OAAA;AAOvB,4CAKqB;AAJnB,sGAAA,SAAS,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,SAAS,GAMV,wBAAoB;AACrB,OAAO,EAAE,cAAc,EAAsB,8BAA0B;AACvE,OAAO,EAAE,QAAQ,EAAE,gCAA4B;AAC/C,OAAO,EAAE,YAAY,EAAE,wCAAoC;AAC3D,OAAO,EACL,QAAQ,GAkBT,gCAA4B;AAC7B,OAAO,EACL,OAAO,GAgBR,8BAA0B;AAC3B,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAClD,OAAO,EACL,UAAU,GAIX,oCAAgC;AACjC,OAAO,EACL,SAAS,GAWV,kCAA8B;AAC/B,OAAO,EACL,OAAO,GAQR,8BAA0B;AAC3B,OAAO,EACL,KAAK,GAkBN,0BAAsB;AACvB,OAAO,EACL,qBAAqB,GAMtB,sCAAkC;AACnC,OAAO,EACL,SAAS,GAIV,wBAAoB"}
|
|
@@ -26,9 +26,10 @@ export declare class Batch extends APIResource {
|
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* ```ts
|
|
29
|
-
* const
|
|
30
|
-
*
|
|
31
|
-
*
|
|
29
|
+
* const messageContents =
|
|
30
|
+
* await client.messages.batch.getContent({
|
|
31
|
+
* message_ids: ['string'],
|
|
32
|
+
* });
|
|
32
33
|
* ```
|
|
33
34
|
*/
|
|
34
35
|
getContent(query: BatchGetContentParams, options?: RequestOptions): APIPromise<BatchGetContentResponse>;
|
|
@@ -129,6 +130,15 @@ export declare class Batch extends APIResource {
|
|
|
129
130
|
*/
|
|
130
131
|
unarchive(body: BatchUnarchiveParams, options?: RequestOptions): APIPromise<BatchUnarchiveResponse>;
|
|
131
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Request to update the status of multiple messages in batch.
|
|
135
|
+
*/
|
|
136
|
+
export interface BatchMessagesStatusRequest {
|
|
137
|
+
/**
|
|
138
|
+
* The message IDs to update the status of.
|
|
139
|
+
*/
|
|
140
|
+
message_ids: Array<string>;
|
|
141
|
+
}
|
|
132
142
|
/**
|
|
133
143
|
* The list of messages that were updated.
|
|
134
144
|
*/
|
|
@@ -136,254 +146,7 @@ export type BatchArchiveResponse = Array<MessagesAPI.Message>;
|
|
|
136
146
|
/**
|
|
137
147
|
* A list of `MessageContents`
|
|
138
148
|
*/
|
|
139
|
-
export type BatchGetContentResponse = Array<
|
|
140
|
-
export declare namespace BatchGetContentResponse {
|
|
141
|
-
/**
|
|
142
|
-
* The content of a message.
|
|
143
|
-
*/
|
|
144
|
-
interface BatchGetContentResponseItem {
|
|
145
|
-
/**
|
|
146
|
-
* The typename of the schema.
|
|
147
|
-
*/
|
|
148
|
-
__typename: string;
|
|
149
|
-
/**
|
|
150
|
-
* Content data specific to the channel type.
|
|
151
|
-
*/
|
|
152
|
-
data: BatchGetContentResponseItem.MessageEmailContent | BatchGetContentResponseItem.MessageSMSContent | BatchGetContentResponseItem.MessagePushContent | BatchGetContentResponseItem.MessageChatContent | BatchGetContentResponseItem.MessageInAppFeedContent;
|
|
153
|
-
/**
|
|
154
|
-
* Timestamp when the message content was created.
|
|
155
|
-
*/
|
|
156
|
-
inserted_at: string;
|
|
157
|
-
/**
|
|
158
|
-
* The unique identifier for the message content.
|
|
159
|
-
*/
|
|
160
|
-
message_id: string;
|
|
161
|
-
}
|
|
162
|
-
namespace BatchGetContentResponseItem {
|
|
163
|
-
/**
|
|
164
|
-
* The content of an email message.
|
|
165
|
-
*/
|
|
166
|
-
interface MessageEmailContent {
|
|
167
|
-
/**
|
|
168
|
-
* The typename of the schema.
|
|
169
|
-
*/
|
|
170
|
-
__typename: string;
|
|
171
|
-
/**
|
|
172
|
-
* The sender's email address.
|
|
173
|
-
*/
|
|
174
|
-
from: string;
|
|
175
|
-
/**
|
|
176
|
-
* The HTML body of the email message.
|
|
177
|
-
*/
|
|
178
|
-
html_body: string;
|
|
179
|
-
/**
|
|
180
|
-
* The subject line of the email message.
|
|
181
|
-
*/
|
|
182
|
-
subject_line: string;
|
|
183
|
-
/**
|
|
184
|
-
* The text body of the email message.
|
|
185
|
-
*/
|
|
186
|
-
text_body: string;
|
|
187
|
-
/**
|
|
188
|
-
* The recipient's email address.
|
|
189
|
-
*/
|
|
190
|
-
to: string;
|
|
191
|
-
/**
|
|
192
|
-
* The BCC email addresses.
|
|
193
|
-
*/
|
|
194
|
-
bcc?: string | null;
|
|
195
|
-
/**
|
|
196
|
-
* The CC email addresses.
|
|
197
|
-
*/
|
|
198
|
-
cc?: string | null;
|
|
199
|
-
/**
|
|
200
|
-
* The reply-to email address.
|
|
201
|
-
*/
|
|
202
|
-
reply_to?: string | null;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* The content of an SMS message.
|
|
206
|
-
*/
|
|
207
|
-
interface MessageSMSContent {
|
|
208
|
-
/**
|
|
209
|
-
* The typename of the schema.
|
|
210
|
-
*/
|
|
211
|
-
__typename: string;
|
|
212
|
-
/**
|
|
213
|
-
* The content body of the SMS message.
|
|
214
|
-
*/
|
|
215
|
-
body: string;
|
|
216
|
-
/**
|
|
217
|
-
* The phone number the SMS was sent to.
|
|
218
|
-
*/
|
|
219
|
-
to: string;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Push channel data.
|
|
223
|
-
*/
|
|
224
|
-
interface MessagePushContent {
|
|
225
|
-
/**
|
|
226
|
-
* The device token to send the push notification to.
|
|
227
|
-
*/
|
|
228
|
-
token: string;
|
|
229
|
-
/**
|
|
230
|
-
* The typename of the schema.
|
|
231
|
-
*/
|
|
232
|
-
__typename: string;
|
|
233
|
-
/**
|
|
234
|
-
* The content body of the push notification.
|
|
235
|
-
*/
|
|
236
|
-
body: string;
|
|
237
|
-
/**
|
|
238
|
-
* The title of the push notification.
|
|
239
|
-
*/
|
|
240
|
-
title: string;
|
|
241
|
-
/**
|
|
242
|
-
* Additional data payload for the push notification.
|
|
243
|
-
*/
|
|
244
|
-
data?: {
|
|
245
|
-
[key: string]: unknown;
|
|
246
|
-
} | null;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* The content of a chat message.
|
|
250
|
-
*/
|
|
251
|
-
interface MessageChatContent {
|
|
252
|
-
/**
|
|
253
|
-
* The typename of the schema.
|
|
254
|
-
*/
|
|
255
|
-
__typename: string;
|
|
256
|
-
/**
|
|
257
|
-
* The channel data connection from the recipient to the underlying provider.
|
|
258
|
-
*/
|
|
259
|
-
connection: {
|
|
260
|
-
[key: string]: unknown;
|
|
261
|
-
};
|
|
262
|
-
/**
|
|
263
|
-
* The template structure for the chat message.
|
|
264
|
-
*/
|
|
265
|
-
template: MessageChatContent.Template;
|
|
266
|
-
/**
|
|
267
|
-
* Additional metadata associated with the chat message.
|
|
268
|
-
*/
|
|
269
|
-
metadata?: {
|
|
270
|
-
[key: string]: unknown;
|
|
271
|
-
} | null;
|
|
272
|
-
}
|
|
273
|
-
namespace MessageChatContent {
|
|
274
|
-
/**
|
|
275
|
-
* The template structure for the chat message.
|
|
276
|
-
*/
|
|
277
|
-
interface Template {
|
|
278
|
-
/**
|
|
279
|
-
* The blocks of the message in a chat.
|
|
280
|
-
*/
|
|
281
|
-
blocks?: Array<Template.Block> | null;
|
|
282
|
-
/**
|
|
283
|
-
* The JSON content of the message.
|
|
284
|
-
*/
|
|
285
|
-
json_content?: {
|
|
286
|
-
[key: string]: unknown;
|
|
287
|
-
} | null;
|
|
288
|
-
/**
|
|
289
|
-
* The summary of the chat message.
|
|
290
|
-
*/
|
|
291
|
-
summary?: string | null;
|
|
292
|
-
}
|
|
293
|
-
namespace Template {
|
|
294
|
-
/**
|
|
295
|
-
* A block in a message in a chat.
|
|
296
|
-
*/
|
|
297
|
-
interface Block {
|
|
298
|
-
/**
|
|
299
|
-
* The actual content of the block.
|
|
300
|
-
*/
|
|
301
|
-
content: string;
|
|
302
|
-
/**
|
|
303
|
-
* The name of the block for identification.
|
|
304
|
-
*/
|
|
305
|
-
name: string;
|
|
306
|
-
/**
|
|
307
|
-
* The type of block in a message in a chat (text or markdown).
|
|
308
|
-
*/
|
|
309
|
-
type: 'text' | 'markdown';
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* The content of an in-app feed message.
|
|
315
|
-
*/
|
|
316
|
-
interface MessageInAppFeedContent {
|
|
317
|
-
/**
|
|
318
|
-
* The typename of the schema.
|
|
319
|
-
*/
|
|
320
|
-
__typename: string;
|
|
321
|
-
/**
|
|
322
|
-
* The blocks of the message in an app feed.
|
|
323
|
-
*/
|
|
324
|
-
blocks: Array<MessageInAppFeedContent.MessageInAppFeedContentBlock | MessageInAppFeedContent.MessageInAppFeedButtonSetBlock>;
|
|
325
|
-
}
|
|
326
|
-
namespace MessageInAppFeedContent {
|
|
327
|
-
/**
|
|
328
|
-
* A block in a message in an app feed.
|
|
329
|
-
*/
|
|
330
|
-
interface MessageInAppFeedContentBlock {
|
|
331
|
-
/**
|
|
332
|
-
* The content of the block in a message in an app feed.
|
|
333
|
-
*/
|
|
334
|
-
content: string;
|
|
335
|
-
/**
|
|
336
|
-
* The name of the block in a message in an app feed.
|
|
337
|
-
*/
|
|
338
|
-
name: string;
|
|
339
|
-
/**
|
|
340
|
-
* The rendered HTML version of the content.
|
|
341
|
-
*/
|
|
342
|
-
rendered: string;
|
|
343
|
-
/**
|
|
344
|
-
* The type of block in a message in an app feed.
|
|
345
|
-
*/
|
|
346
|
-
type: 'markdown' | 'text';
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* A button set block in a message in an app feed.
|
|
350
|
-
*/
|
|
351
|
-
interface MessageInAppFeedButtonSetBlock {
|
|
352
|
-
/**
|
|
353
|
-
* A list of buttons in an in app feed message.
|
|
354
|
-
*/
|
|
355
|
-
buttons: Array<MessageInAppFeedButtonSetBlock.Button>;
|
|
356
|
-
/**
|
|
357
|
-
* The name of the button set in a message in an app feed.
|
|
358
|
-
*/
|
|
359
|
-
name: string;
|
|
360
|
-
/**
|
|
361
|
-
* The type of block in a message in an app feed.
|
|
362
|
-
*/
|
|
363
|
-
type: 'button_set';
|
|
364
|
-
}
|
|
365
|
-
namespace MessageInAppFeedButtonSetBlock {
|
|
366
|
-
/**
|
|
367
|
-
* A button in an in app feed message.
|
|
368
|
-
*/
|
|
369
|
-
interface Button {
|
|
370
|
-
/**
|
|
371
|
-
* The action to take when the button is clicked.
|
|
372
|
-
*/
|
|
373
|
-
action: string;
|
|
374
|
-
/**
|
|
375
|
-
* The label of the button.
|
|
376
|
-
*/
|
|
377
|
-
label: string;
|
|
378
|
-
/**
|
|
379
|
-
* The name of the button.
|
|
380
|
-
*/
|
|
381
|
-
name: string;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
149
|
+
export type BatchGetContentResponse = Array<MessagesAPI.MessageContents>;
|
|
387
150
|
/**
|
|
388
151
|
* The list of messages that were updated.
|
|
389
152
|
*/
|
|
@@ -463,6 +226,6 @@ export interface BatchUnarchiveParams {
|
|
|
463
226
|
message_ids: Array<string>;
|
|
464
227
|
}
|
|
465
228
|
export declare namespace Batch {
|
|
466
|
-
export { type BatchArchiveResponse as BatchArchiveResponse, type BatchGetContentResponse as BatchGetContentResponse, type BatchMarkAsInteractedResponse as BatchMarkAsInteractedResponse, type BatchMarkAsReadResponse as BatchMarkAsReadResponse, type BatchMarkAsSeenResponse as BatchMarkAsSeenResponse, type BatchMarkAsUnreadResponse as BatchMarkAsUnreadResponse, type BatchMarkAsUnseenResponse as BatchMarkAsUnseenResponse, type BatchUnarchiveResponse as BatchUnarchiveResponse, type BatchArchiveParams as BatchArchiveParams, type BatchGetContentParams as BatchGetContentParams, type BatchMarkAsInteractedParams as BatchMarkAsInteractedParams, type BatchMarkAsReadParams as BatchMarkAsReadParams, type BatchMarkAsSeenParams as BatchMarkAsSeenParams, type BatchMarkAsUnreadParams as BatchMarkAsUnreadParams, type BatchMarkAsUnseenParams as BatchMarkAsUnseenParams, type BatchUnarchiveParams as BatchUnarchiveParams, };
|
|
229
|
+
export { type BatchMessagesStatusRequest as BatchMessagesStatusRequest, type BatchArchiveResponse as BatchArchiveResponse, type BatchGetContentResponse as BatchGetContentResponse, type BatchMarkAsInteractedResponse as BatchMarkAsInteractedResponse, type BatchMarkAsReadResponse as BatchMarkAsReadResponse, type BatchMarkAsSeenResponse as BatchMarkAsSeenResponse, type BatchMarkAsUnreadResponse as BatchMarkAsUnreadResponse, type BatchMarkAsUnseenResponse as BatchMarkAsUnseenResponse, type BatchUnarchiveResponse as BatchUnarchiveResponse, type BatchArchiveParams as BatchArchiveParams, type BatchGetContentParams as BatchGetContentParams, type BatchMarkAsInteractedParams as BatchMarkAsInteractedParams, type BatchMarkAsReadParams as BatchMarkAsReadParams, type BatchMarkAsSeenParams as BatchMarkAsSeenParams, type BatchMarkAsUnreadParams as BatchMarkAsUnreadParams, type BatchMarkAsUnseenParams as BatchMarkAsUnseenParams, type BatchUnarchiveParams as BatchUnarchiveParams, };
|
|
467
230
|
}
|
|
468
231
|
//# sourceMappingURL=batch.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.mts","sourceRoot":"","sources":["../../src/resources/messages/batch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI7F
|
|
1
|
+
{"version":3,"file":"batch.d.mts","sourceRoot":"","sources":["../../src/resources/messages/batch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI7F;;;;;;;;;;OAUG;IACH,UAAU,CAAC,KAAK,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIvG;;;;;;;;;;;;;;;OAeG;IACH,gBAAgB,CACd,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;;;;;;;OAaG;IACH,UAAU,C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