@superdurable/connector-intuit-mailchimp 0.0.0-stage → 0.1.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.
@@ -0,0 +1,371 @@
1
+ import { G as GetMemberInput, M as Member, C as Connection, L as ListMembersInput, a as ListMembersOutput, S as SendCampaignInput, b as SendCampaignOutput, U as UpdateMemberTagsInput, c as UpdateMemberTagsOutput, d as UpsertMemberInput, e as UpsertMemberOutput, O as Operations, f as Config, g as Credentials } from './connection-CR-ewlWK.js';
2
+ export { h as Campaign, i as CampaignSchema, j as ConfigSchema, k as CredentialSource, l as GetMemberInputSchema, m as ListMembersOutputSchema, n as MarketingPermissionInput, o as MarketingPermissionInputSchema, p as MemberSchema, q as SendCampaignInputSchema, r as SendCampaignOutputSchema, s as UpdateMemberTagsInputSchema, t as UpdateMemberTagsOutputSchema, u as UpsertMemberInputSchema, v as UpsertMemberOutputSchema, w as decodeCredentials, x as newConnection, y as newConnectionWithOperations } from './connection-CR-ewlWK.js';
3
+ import { z } from 'zod';
4
+ import * as _superdurable_connectors_sdk from '@superdurable/connectors-sdk';
5
+ import { QueryDefinition, MutationDefinition, QueryStepConfig, Query, QueryResult, MutationStepConfig, Mutation, MutationResult, QueryStep, MutationStep, Call, QueryAttempt, MutationAttempt, CredentialProvider, Failure, ReceiptDraft } from '@superdurable/connectors-sdk';
6
+ import { StepTarget } from '@superdurable/dex';
7
+ import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
8
+ import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
9
+
10
+ /** Accept Go time.Parse's RFC 3339 forms; the operation validates the timestamp. */
11
+ declare const ListMembersInputSchema: z.ZodObject<{
12
+ listId: z.ZodString;
13
+ status: z.ZodOptional<z.ZodString>;
14
+ pageSize: z.ZodOptional<z.ZodNumber>;
15
+ offset: z.ZodOptional<z.ZodNumber>;
16
+ changedSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ optedInSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$strict>;
19
+
20
+ /** Stable connector identity. */
21
+ declare const ConnectorID = "mailchimp";
22
+ /** Provider identity for named connections. */
23
+ declare const ProviderID = "mailchimp";
24
+ /** Branch IDs for getMember. */
25
+ declare const GetMemberBranch: {
26
+ readonly Found: "found";
27
+ readonly NotFound: "notFound";
28
+ readonly ProviderRejected: "providerRejected";
29
+ readonly InvalidResponse: "invalidResponse";
30
+ readonly Defect: "defect";
31
+ };
32
+ /** The contact exists in the audience, in any status including unsubscribed, cleaned, or archived. */
33
+ declare const GetMemberBranchFound: "found";
34
+ /** The audience has no contact with that address, or the audience does not exist. */
35
+ declare const GetMemberBranchNotFound: "notFound";
36
+ /** Mailchimp conclusively rejected the read, such as an invalid or revoked API key or a role without access. */
37
+ declare const GetMemberBranchProviderRejected: "providerRejected";
38
+ /** Mailchimp returned an invalid or oversized contact. */
39
+ declare const GetMemberBranchInvalidResponse: "invalidResponse";
40
+ /** Local input, connection configuration, or connector definition is invalid. */
41
+ declare const GetMemberBranchDefect: "defect";
42
+ /** Manifest definition for getMember. */
43
+ declare const GetMemberDefinition: QueryDefinition;
44
+ /** Manifest metadata for getMember. */
45
+ declare const GetMemberMetadata: {
46
+ readonly kind: "query";
47
+ readonly idempotency: "none";
48
+ readonly authorization: "required";
49
+ };
50
+ /** Branch IDs for listMembers. */
51
+ declare const ListMembersBranch: {
52
+ readonly Listed: "listed";
53
+ readonly NotFound: "notFound";
54
+ readonly ProviderRejected: "providerRejected";
55
+ readonly InvalidResponse: "invalidResponse";
56
+ readonly Defect: "defect";
57
+ };
58
+ /** One page of the audience's contacts was read; it may be empty. */
59
+ declare const ListMembersBranchListed: "listed";
60
+ /** The audience does not exist. */
61
+ declare const ListMembersBranchNotFound: "notFound";
62
+ /** Mailchimp conclusively rejected the list, such as an invalid API key or a role without access. */
63
+ declare const ListMembersBranchProviderRejected: "providerRejected";
64
+ /** Mailchimp returned an invalid or oversized page of contacts. */
65
+ declare const ListMembersBranchInvalidResponse: "invalidResponse";
66
+ /** Local input, connection configuration, or connector definition is invalid. */
67
+ declare const ListMembersBranchDefect: "defect";
68
+ /** Manifest definition for listMembers. */
69
+ declare const ListMembersDefinition: QueryDefinition;
70
+ /** Manifest metadata for listMembers. */
71
+ declare const ListMembersMetadata: {
72
+ readonly kind: "query";
73
+ readonly idempotency: "none";
74
+ readonly authorization: "required";
75
+ };
76
+ /** Branch IDs for upsertMember. */
77
+ declare const UpsertMemberBranch: {
78
+ readonly Upserted: "upserted";
79
+ readonly ProviderRejected: "providerRejected";
80
+ readonly InvalidResponse: "invalidResponse";
81
+ readonly Defect: "defect";
82
+ };
83
+ /** Mailchimp holds the contact with the requested values, written now or by an earlier attempt, and returned it. */
84
+ declare const UpsertMemberBranchUpserted: "upserted";
85
+ /** Mailchimp conclusively rejected the contact, such as an invalid merge field, a permanently deleted address, or a contact in a compliance state; nothing was written. */
86
+ declare const UpsertMemberBranchProviderRejected: "providerRejected";
87
+ /** Mailchimp returned an invalid or oversized contact, so the change may have been applied. */
88
+ declare const UpsertMemberBranchInvalidResponse: "invalidResponse";
89
+ /** Local input, connection configuration, or connector definition is invalid. */
90
+ declare const UpsertMemberBranchDefect: "defect";
91
+ /** Manifest definition for upsertMember. */
92
+ declare const UpsertMemberDefinition: MutationDefinition;
93
+ /** Manifest metadata for upsertMember. */
94
+ declare const UpsertMemberMetadata: {
95
+ readonly kind: "mutation";
96
+ readonly idempotency: "required";
97
+ readonly authorization: "required";
98
+ };
99
+ /** Branch IDs for updateMemberTags. */
100
+ declare const UpdateMemberTagsBranch: {
101
+ readonly Updated: "updated";
102
+ readonly NotFound: "notFound";
103
+ readonly ProviderRejected: "providerRejected";
104
+ readonly InvalidResponse: "invalidResponse";
105
+ readonly Defect: "defect";
106
+ };
107
+ /** Mailchimp accepted the tag changes, including tags the contact already had or already lacked. */
108
+ declare const UpdateMemberTagsBranchUpdated: "updated";
109
+ /** The audience has no contact with that address, or the audience does not exist; nothing was changed. */
110
+ declare const UpdateMemberTagsBranchNotFound: "notFound";
111
+ /** Mailchimp conclusively rejected the tag changes, such as an invalid API key or a role without access. */
112
+ declare const UpdateMemberTagsBranchProviderRejected: "providerRejected";
113
+ /** Mailchimp accepted the request but returned an oversized or credential-reflecting body, so the tags may have changed. */
114
+ declare const UpdateMemberTagsBranchInvalidResponse: "invalidResponse";
115
+ /** Local input, connection configuration, or connector definition is invalid. */
116
+ declare const UpdateMemberTagsBranchDefect: "defect";
117
+ /** Manifest definition for updateMemberTags. */
118
+ declare const UpdateMemberTagsDefinition: MutationDefinition;
119
+ /** Manifest metadata for updateMemberTags. */
120
+ declare const UpdateMemberTagsMetadata: {
121
+ readonly kind: "mutation";
122
+ readonly idempotency: "required";
123
+ readonly authorization: "required";
124
+ };
125
+ /** Branch IDs for sendCampaign. */
126
+ declare const SendCampaignBranch: {
127
+ readonly Sent: "sent";
128
+ readonly AlreadySent: "alreadySent";
129
+ readonly NotSendable: "notSendable";
130
+ readonly NotFound: "notFound";
131
+ readonly ProviderRejected: "providerRejected";
132
+ readonly InvalidResponse: "invalidResponse";
133
+ readonly Uncertain: "uncertain";
134
+ readonly Defect: "defect";
135
+ };
136
+ /** Mailchimp accepted the send of the draft campaign this Step read. */
137
+ declare const SendCampaignBranchSent: "sent";
138
+ /** Mailchimp reports the campaign as sending or sent, so this attempt sent nothing. */
139
+ declare const SendCampaignBranchAlreadySent: "alreadySent";
140
+ /** The campaign is not a draft that can be sent now, such as a scheduled, paused, canceled, or RSS campaign, or it targets another audience than expectedListId; nothing was sent. */
141
+ declare const SendCampaignBranchNotSendable: "notSendable";
142
+ /** The campaign does not exist; nothing was sent. */
143
+ declare const SendCampaignBranchNotFound: "notFound";
144
+ /** Mailchimp conclusively rejected the send, such as a campaign that fails its send checklist or a role that cannot send; nothing was sent. */
145
+ declare const SendCampaignBranchProviderRejected: "providerRejected";
146
+ /** Mailchimp returned an invalid or oversized campaign before the send; nothing was sent. */
147
+ declare const SendCampaignBranchInvalidResponse: "invalidResponse";
148
+ /** The send request was sent but its outcome cannot be confirmed, so the campaign may be sending; the connector never sends it again. */
149
+ declare const SendCampaignBranchUncertain: "uncertain";
150
+ /** Local input, connection configuration, or connector definition is invalid. */
151
+ declare const SendCampaignBranchDefect: "defect";
152
+ /** Manifest definition for sendCampaign. */
153
+ declare const SendCampaignDefinition: MutationDefinition;
154
+ /** Manifest metadata for sendCampaign. */
155
+ declare const SendCampaignMetadata: {
156
+ readonly kind: "mutation";
157
+ readonly idempotency: "required";
158
+ readonly authorization: "required";
159
+ };
160
+
161
+ /** Configuration for the getMember connector Step. */
162
+ interface GetMemberStepConfig<StepInput, OperationInput = GetMemberInput, OperationOutput = Member> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
163
+ /** Named connection supplying this operation. */
164
+ connection: Connection<{
165
+ getMember(): Query<OperationInput, OperationOutput>;
166
+ }>;
167
+ /** Name matching the bound connection. */
168
+ connectionName: string;
169
+ /** The contact exists in the audience, in any status including unsubscribed, cleaned, or archived. */
170
+ found: StepTarget<QueryResult<OperationOutput>>;
171
+ /** The audience has no contact with that address, or the audience does not exist. */
172
+ notFound?: StepTarget<QueryResult<OperationOutput>>;
173
+ /** Mailchimp conclusively rejected the read, such as an invalid or revoked API key or a role without access. */
174
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
175
+ /** Mailchimp returned an invalid or oversized contact. */
176
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
177
+ /** Local input, connection configuration, or connector definition is invalid. */
178
+ defect?: StepTarget<QueryResult<OperationOutput>>;
179
+ }
180
+ /** Build the getMember Step from a named connection. */
181
+ declare function newGetMemberStep<StepInput, OperationInput = GetMemberInput, OperationOutput = Member>(configuration: GetMemberStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
182
+ /** Configuration for the listMembers connector Step. */
183
+ interface ListMembersStepConfig<StepInput, OperationInput = ListMembersInput, OperationOutput = ListMembersOutput> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
184
+ /** Named connection supplying this operation. */
185
+ connection: Connection<{
186
+ listMembers(): Query<OperationInput, OperationOutput>;
187
+ }>;
188
+ /** Name matching the bound connection. */
189
+ connectionName: string;
190
+ /** One page of the audience's contacts was read; it may be empty. */
191
+ listed: StepTarget<QueryResult<OperationOutput>>;
192
+ /** The audience does not exist. */
193
+ notFound?: StepTarget<QueryResult<OperationOutput>>;
194
+ /** Mailchimp conclusively rejected the list, such as an invalid API key or a role without access. */
195
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
196
+ /** Mailchimp returned an invalid or oversized page of contacts. */
197
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
198
+ /** Local input, connection configuration, or connector definition is invalid. */
199
+ defect?: StepTarget<QueryResult<OperationOutput>>;
200
+ }
201
+ /** Build the listMembers Step from a named connection. */
202
+ declare function newListMembersStep<StepInput, OperationInput = ListMembersInput, OperationOutput = ListMembersOutput>(configuration: ListMembersStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
203
+ /** Configuration for the upsertMember connector Step. */
204
+ interface UpsertMemberStepConfig<StepInput, OperationInput = UpsertMemberInput, OperationOutput = UpsertMemberOutput> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
205
+ /** Named connection supplying this operation. */
206
+ connection: Connection<{
207
+ upsertMember(): Mutation<OperationInput, OperationOutput>;
208
+ }>;
209
+ /** Name matching the bound connection. */
210
+ connectionName: string;
211
+ /** Mailchimp holds the contact with the requested values, written now or by an earlier attempt, and returned it. */
212
+ upserted: StepTarget<MutationResult<OperationOutput>>;
213
+ /** Mailchimp conclusively rejected the contact, such as an invalid merge field, a permanently deleted address, or a contact in a compliance state; nothing was written. */
214
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
215
+ /** Mailchimp returned an invalid or oversized contact, so the change may have been applied. */
216
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
217
+ /** Local input, connection configuration, or connector definition is invalid. */
218
+ defect?: StepTarget<MutationResult<OperationOutput>>;
219
+ }
220
+ /** Build the upsertMember Step from a named connection. */
221
+ declare function newUpsertMemberStep<StepInput, OperationInput = UpsertMemberInput, OperationOutput = UpsertMemberOutput>(configuration: UpsertMemberStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
222
+ /** Configuration for the updateMemberTags connector Step. */
223
+ interface UpdateMemberTagsStepConfig<StepInput, OperationInput = UpdateMemberTagsInput, OperationOutput = UpdateMemberTagsOutput> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
224
+ /** Named connection supplying this operation. */
225
+ connection: Connection<{
226
+ updateMemberTags(): Mutation<OperationInput, OperationOutput>;
227
+ }>;
228
+ /** Name matching the bound connection. */
229
+ connectionName: string;
230
+ /** Mailchimp accepted the tag changes, including tags the contact already had or already lacked. */
231
+ updated: StepTarget<MutationResult<OperationOutput>>;
232
+ /** The audience has no contact with that address, or the audience does not exist; nothing was changed. */
233
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
234
+ /** Mailchimp conclusively rejected the tag changes, such as an invalid API key or a role without access. */
235
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
236
+ /** Mailchimp accepted the request but returned an oversized or credential-reflecting body, so the tags may have changed. */
237
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
238
+ /** Local input, connection configuration, or connector definition is invalid. */
239
+ defect?: StepTarget<MutationResult<OperationOutput>>;
240
+ }
241
+ /** Build the updateMemberTags Step from a named connection. */
242
+ declare function newUpdateMemberTagsStep<StepInput, OperationInput = UpdateMemberTagsInput, OperationOutput = UpdateMemberTagsOutput>(configuration: UpdateMemberTagsStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
243
+ /** Configuration for the sendCampaign connector Step. */
244
+ interface SendCampaignStepConfig<StepInput, OperationInput = SendCampaignInput, OperationOutput = SendCampaignOutput> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
245
+ /** Named connection supplying this operation. */
246
+ connection: Connection<{
247
+ sendCampaign(): Mutation<OperationInput, OperationOutput>;
248
+ }>;
249
+ /** Name matching the bound connection. */
250
+ connectionName: string;
251
+ /** Mailchimp accepted the send of the draft campaign this Step read. */
252
+ sent: StepTarget<MutationResult<OperationOutput>>;
253
+ /** Mailchimp reports the campaign as sending or sent, so this attempt sent nothing. */
254
+ alreadySent?: StepTarget<MutationResult<OperationOutput>>;
255
+ /** The campaign is not a draft that can be sent now, such as a scheduled, paused, canceled, or RSS campaign, or it targets another audience than expectedListId; nothing was sent. */
256
+ notSendable?: StepTarget<MutationResult<OperationOutput>>;
257
+ /** The campaign does not exist; nothing was sent. */
258
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
259
+ /** Mailchimp conclusively rejected the send, such as a campaign that fails its send checklist or a role that cannot send; nothing was sent. */
260
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
261
+ /** Mailchimp returned an invalid or oversized campaign before the send; nothing was sent. */
262
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
263
+ /** The send request was sent but its outcome cannot be confirmed, so the campaign may be sending; the connector never sends it again. */
264
+ uncertain?: StepTarget<MutationResult<OperationOutput>>;
265
+ /** Local input, connection configuration, or connector definition is invalid. */
266
+ defect?: StepTarget<MutationResult<OperationOutput>>;
267
+ }
268
+ /** Build the sendCampaign Step from a named connection. */
269
+ declare function newSendCampaignStep<StepInput, OperationInput = SendCampaignInput, OperationOutput = SendCampaignOutput>(configuration: SendCampaignStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
270
+
271
+ /** Open one static Mailchimp connection declared in a Dex project. */
272
+ declare function newProjectConnection(project: LoadedProject, connectionName: string): Connection<Operations>;
273
+
274
+ /** Read one audience contact. */
275
+ declare class GetMemberOperation implements Query<GetMemberInput, Member> {
276
+ private readonly client;
277
+ /** Bind the client. */ constructor(client: MailchimpClient);
278
+ /** Return the manifest definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
279
+ /** Read by Mailchimp subscriber hash. */
280
+ invoke(call: Call, input: GetMemberInput): Promise<QueryAttempt<Member>>;
281
+ }
282
+ /** Read one ordered audience page. */
283
+ declare class ListMembersOperation implements Query<ListMembersInput, ListMembersOutput> {
284
+ private readonly client;
285
+ /** Bind the client. */ constructor(client: MailchimpClient);
286
+ /** Return the manifest definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
287
+ /** Read one page with optional status and time filters. */
288
+ invoke(call: Call, input: ListMembersInput): Promise<QueryAttempt<ListMembersOutput>>;
289
+ }
290
+ /** Upsert one contact with absolute, repeatable values. */
291
+ declare class UpsertMemberOperation implements Mutation<UpsertMemberInput, UpsertMemberOutput> {
292
+ private readonly client;
293
+ /** Bind the client. */ constructor(client: MailchimpClient);
294
+ /** Return the manifest definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
295
+ /** Use the stable Call ID for receipt correlation. */ idempotencyKey(callId: string): string;
296
+ /** Write one contact without changing an existing subscription unless requested. */
297
+ invoke(call: Call, input: UpsertMemberInput): Promise<MutationAttempt<UpsertMemberOutput>>;
298
+ }
299
+ /** Set contact tags active or inactive with repeatable declarations. */
300
+ declare class UpdateMemberTagsOperation implements Mutation<UpdateMemberTagsInput, UpdateMemberTagsOutput> {
301
+ private readonly client;
302
+ /** Bind the client. */ constructor(client: MailchimpClient);
303
+ /** Return the manifest definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
304
+ /** Use the stable Call ID for receipt correlation. */ idempotencyKey(callId: string): string;
305
+ /** Declare tag states for one contact. */
306
+ invoke(call: Call, input: UpdateMemberTagsInput): Promise<MutationAttempt<UpdateMemberTagsOutput>>;
307
+ }
308
+ /** Send a reviewed draft campaign at most once. */
309
+ declare class SendCampaignOperation implements Mutation<SendCampaignInput, SendCampaignOutput> {
310
+ private readonly client;
311
+ /** Bind the client. */ constructor(client: MailchimpClient);
312
+ /** Return the manifest definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
313
+ /** Use the stable Call ID for receipt correlation. */ idempotencyKey(callId: string): string;
314
+ /** Read status, checkpoint dispatch, and send only a draft. */
315
+ invoke(call: Call, input: SendCampaignInput): Promise<MutationAttempt<SendCampaignOutput>>;
316
+ }
317
+
318
+ /** Injectable provider transport for deterministic tests. */
319
+ type MailchimpRequestSender = (request: ProviderRequest) => Promise<ProviderResponse>;
320
+ /** Constructor dependencies for deterministic tests and local stand-ins. */
321
+ interface MailchimpClientOptions {
322
+ /** Local Mailchimp-compatible endpoint; production derives the host from the API key. */
323
+ apiBaseURL?: string;
324
+ /** Optional request sender; production uses the bounded no-redirect transport. */
325
+ send?: MailchimpRequestSender;
326
+ /** Receipt and Retry-After clock. */
327
+ now?: () => Date;
328
+ }
329
+ /** One classified Mailchimp exchange. */
330
+ interface MailchimpExchange {
331
+ outcome: 'succeeded' | 'notFound' | 'rateLimited' | 'notSent' | 'unavailable' | 'rejected' | 'invalid' | 'defect';
332
+ status: number;
333
+ body: Uint8Array;
334
+ headers: ProviderResponse['headers'];
335
+ failure?: Failure;
336
+ retryAfterMs: number;
337
+ }
338
+ /** Authenticated Mailchimp Marketing API client. */
339
+ declare class MailchimpClient {
340
+ private readonly maxResponseBytes;
341
+ private readonly credentials;
342
+ private readonly apiBaseURL;
343
+ private readonly send;
344
+ private readonly now;
345
+ /** Validate configuration and retain immutable dependencies. */
346
+ constructor(config: Config, credentials: CredentialProvider<Credentials>, options?: MailchimpClientOptions);
347
+ /** Bind the contact read. */
348
+ getMember(): GetMemberOperation;
349
+ /** Bind the audience page read. */
350
+ listMembers(): ListMembersOperation;
351
+ /** Bind the contact upsert. */
352
+ upsertMember(): UpsertMemberOperation;
353
+ /** Bind the tag update. */
354
+ updateMemberTags(): UpdateMemberTagsOperation;
355
+ /** Bind the guarded campaign send. */
356
+ sendCampaign(): SendCampaignOperation;
357
+ /** Resolve the current API key and its data center without exposing it in failures. */
358
+ resolveConnection(call: Call): Promise<{
359
+ key: string;
360
+ baseURL: string;
361
+ } | undefined>;
362
+ /** Send one request and classify the outcome before an operation chooses its branch. */
363
+ exchange(call: Call, connection: {
364
+ key: string;
365
+ baseURL: string;
366
+ }, operation: string, method: string, path: string, query?: URLSearchParams, payload?: unknown): Promise<MailchimpExchange>;
367
+ /** Create a secret-free provider receipt. */
368
+ receipt(call: Call, exchange: MailchimpExchange, objectID: string): ReceiptDraft;
369
+ }
370
+
371
+ export { Config, Connection, ConnectorID, Credentials, GetMemberBranch, GetMemberBranchDefect, GetMemberBranchFound, GetMemberBranchInvalidResponse, GetMemberBranchNotFound, GetMemberBranchProviderRejected, GetMemberDefinition, GetMemberInput, GetMemberMetadata, GetMemberOperation, type GetMemberStepConfig, ListMembersBranch, ListMembersBranchDefect, ListMembersBranchInvalidResponse, ListMembersBranchListed, ListMembersBranchNotFound, ListMembersBranchProviderRejected, ListMembersDefinition, ListMembersInput, ListMembersInputSchema, ListMembersMetadata, ListMembersOperation, ListMembersOutput, type ListMembersStepConfig, MailchimpClient, type MailchimpClientOptions, type MailchimpRequestSender, Member, ProviderID, SendCampaignBranch, SendCampaignBranchAlreadySent, SendCampaignBranchDefect, SendCampaignBranchInvalidResponse, SendCampaignBranchNotFound, SendCampaignBranchNotSendable, SendCampaignBranchProviderRejected, SendCampaignBranchSent, SendCampaignBranchUncertain, SendCampaignDefinition, SendCampaignInput, SendCampaignMetadata, SendCampaignOperation, SendCampaignOutput, type SendCampaignStepConfig, UpdateMemberTagsBranch, UpdateMemberTagsBranchDefect, UpdateMemberTagsBranchInvalidResponse, UpdateMemberTagsBranchNotFound, UpdateMemberTagsBranchProviderRejected, UpdateMemberTagsBranchUpdated, UpdateMemberTagsDefinition, UpdateMemberTagsInput, UpdateMemberTagsMetadata, UpdateMemberTagsOperation, UpdateMemberTagsOutput, type UpdateMemberTagsStepConfig, UpsertMemberBranch, UpsertMemberBranchDefect, UpsertMemberBranchInvalidResponse, UpsertMemberBranchProviderRejected, UpsertMemberBranchUpserted, UpsertMemberDefinition, UpsertMemberInput, UpsertMemberMetadata, UpsertMemberOperation, UpsertMemberOutput, type UpsertMemberStepConfig, newGetMemberStep, newListMembersStep, newProjectConnection, newSendCampaignStep, newUpdateMemberTagsStep, newUpsertMemberStep };