@superdurable/connector-activecampaign 0.2.0 → 0.3.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,1532 @@
1
+ import { SecretString, CredentialProvider, Mutation, Query, ConnectionRef } from '@superdurable/connectors-sdk';
2
+ import { z } from 'zod';
3
+ import { Codec } from '@superdurable/dex';
4
+
5
+ /** A signed 64-bit JSON integer. Values outside the safe number range retain their decimal token. */
6
+ type SignedInteger = number | Readonly<{
7
+ rawJSON: string;
8
+ }>;
9
+ /** Decode one signed Go integer from a safe number or a native raw JSON number token. */
10
+ declare function decodeSignedInteger(value: unknown): SignedInteger;
11
+ /** Read provider JSON with the original syntax of every numeric token for typed field validation. */
12
+ declare function parseJSONNumberTokens(text: string): unknown;
13
+ /** Decode JSON while retaining exact decimal tokens for integers outside JavaScript's safe range. */
14
+ declare function parseExactIntegerJSON(text: string): unknown;
15
+ /** JSON-wire codec for records with signed integer fields. An optional decoder validates the application type. */
16
+ declare function exactIntegerJSONCodec<T>(decode?: (value: unknown) => T): Codec<T>;
17
+ /** Connector configuration; omitted fields use manifest defaults. */
18
+ interface Config {
19
+ /** Non-secret account-specific API root copied from ActiveCampaign Settings > Developer at https://www.activecampaign.com/login. Enter the full HTTPS API URL ending in /api/3 without a trailing resource path, query, or token; blank prevents connection creation. It may have an account-specific domain and region. */
20
+ baseUrl: string;
21
+ /** Maximum duration of one API request as a positive Go duration such as 15s or 1m. Blank uses the displayed default; increase only for slow responses. Runtime value in milliseconds. */
22
+ timeoutMs?: number;
23
+ /** Positive maximum complete API response in bytes. Blank uses the displayed default; increase for known larger contact pages. Oversized responses select invalidResponse. */
24
+ maxResponseBytes?: number;
25
+ }
26
+ /** Runtime schema for manifest configuration. */
27
+ declare const ConfigSchema: z.ZodObject<{
28
+ baseUrl: z.ZodString;
29
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
30
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
31
+ }, z.core.$strip>;
32
+ /** Private connector credentials resolved by the host. */
33
+ interface Credentials {
34
+ /** Secret user-specific API Key from ActiveCampaign Settings > Developer at https://www.activecampaign.com/login. Copy the full key into this secret field; blank makes calls select defect. Dex sends it only in the Api-Token header. Reset it on the same page to revoke an exposed key. */
35
+ apiKey: SecretString;
36
+ }
37
+ /** Stored credential material that fails the connector credential checks, so no retry can succeed. */
38
+ declare class CredentialMaterialError extends TypeError {
39
+ constructor(message: string);
40
+ }
41
+ /** Report malformed stored credential material, also behind the SDK provider's decoding TypeError. */
42
+ declare function isCredentialMaterialError(error: unknown): boolean;
43
+ /** Decode private credential fields for the connector. */
44
+ declare function decodeCredentials(value: unknown): Credentials;
45
+ /** Host-owned source of private connector credentials. */
46
+ type CredentialSource = CredentialProvider<Credentials>;
47
+ /** EcommerceOrderLineItemInput describes one store product line in major currency units. */
48
+ interface EcommerceOrderLineItemInput {
49
+ /** StoreLineItemID is the stable external line ID. */
50
+ "storeLineItemId": string;
51
+ /** ProductStorePrimaryID identifies the purchased store product or variant. */
52
+ "productStorePrimaryId": string;
53
+ /** Name is the purchased product's display name. */
54
+ "name": string;
55
+ /** Quantity is a positive count of purchased units. */
56
+ "quantity": number;
57
+ /** PriceAmount is the non-negative unit price in major currency units. */
58
+ "priceAmount": string;
59
+ }
60
+ /** UpsertEcommerceOrderInput identifies a store order and its absolute commercial state. */
61
+ interface UpsertEcommerceOrderInput {
62
+ /** ConnectionID is the numeric Deep Data connection ID. */
63
+ "connectionId": string;
64
+ /** StoreOrderID is the stable order ID in the external store. */
65
+ "storeOrderId": string;
66
+ /** StoreCustomerID is the stable customer ID in the external store. */
67
+ "storeCustomerId": string;
68
+ /** Email is the purchasing contact's email address. */
69
+ "email": string;
70
+ /** CreatedAt is the store creation timestamp in RFC3339 format. */
71
+ "createdAt": string;
72
+ /** Currency is the three-letter ISO currency code. */
73
+ "currency": string;
74
+ /** FinalAmount is the non-negative total in major currency units, with up to four decimal places. */
75
+ "finalAmount": string;
76
+ /** CreationSource is REAL_TIME or HISTORICAL; REAL_TIME can start order automations. */
77
+ "creationSource": string;
78
+ /** Status is the provider's normalized order status. */
79
+ "status": string;
80
+ /** LineItems optionally replaces the order's product lines; nil lets the provider retain its default behavior. */
81
+ "lineItems"?: Array<EcommerceOrderLineItemInput> | undefined;
82
+ }
83
+ /** EcommerceOrderUpsertMetadata confirms the provider's keyed order identity. */
84
+ interface EcommerceOrderUpsertMetadata {
85
+ /** ConnectionID is the provider's ecommerce connection ID. */
86
+ "connectionId": string;
87
+ /** StoreOrderID is the stable external order ID. */
88
+ "storeOrderId": string;
89
+ /** Email is the contact email returned for this order. */
90
+ "email": string;
91
+ }
92
+ /** ListEcommerceOrdersInput filters Deep Data orders. */
93
+ interface ListEcommerceOrdersInput {
94
+ /** ConnectionID optionally filters by numeric ecommerce connection ID. */
95
+ "connectionId"?: string | undefined;
96
+ /** ExternalID optionally filters by store order ID. */
97
+ "externalId"?: string | undefined;
98
+ /** Email optionally filters by buyer email address. */
99
+ "email"?: string | undefined;
100
+ /** Offset skips this many orders. */
101
+ "offset"?: number | undefined;
102
+ /** Limit caps the returned orders; zero uses the provider default, at most 100. */
103
+ "limit"?: number | undefined;
104
+ }
105
+ /** EcommerceOrderMetadata contains a bounded order summary without addresses or links. */
106
+ interface EcommerceOrderMetadata {
107
+ /** ID is the numeric provider order ID. */
108
+ "id": string;
109
+ /** ConnectionID is the owning ecommerce integration. */
110
+ "connectionId": string;
111
+ /** ExternalID is the store order ID. */
112
+ "externalId": string;
113
+ /** CustomerID is the associated Deep Data customer ID. */
114
+ "customerId": string;
115
+ /** Email is the buyer email address. */
116
+ "email": string;
117
+ /** Currency is the three-letter ISO currency code. */
118
+ "currency": string;
119
+ /** TotalMinor is the order total in minor currency units. */
120
+ "totalMinor": number;
121
+ /** State is the provider order state code. */
122
+ "state": number;
123
+ }
124
+ /** EcommerceOrdersPage contains orders matching the requested filters. */
125
+ interface EcommerceOrdersPage {
126
+ /** Orders contains the selected order summaries. */
127
+ "orders": Array<EcommerceOrderMetadata> | null;
128
+ /** Total is the provider's matching order count. */
129
+ "total": number;
130
+ }
131
+ /** GetEcommerceOrderInput selects one order by numeric provider ID. */
132
+ interface GetEcommerceOrderInput {
133
+ /** OrderID is the numeric Deep Data order ID. */
134
+ "orderId": string;
135
+ }
136
+ /** ListEcommerceOrderProductsInput selects one page of Deep Data order products. */
137
+ interface ListEcommerceOrderProductsInput {
138
+ /** Offset skips this many order products. */
139
+ "offset"?: number | undefined;
140
+ /** Limit caps the returned products; zero uses the provider default, at most 100. */
141
+ "limit"?: number | undefined;
142
+ }
143
+ /** EcommerceOrderProductMetadata summarizes one order line item without provider links. */
144
+ interface EcommerceOrderProductMetadata {
145
+ /** ID is the numeric order-product ID. */
146
+ "id": string;
147
+ /** OrderID is the associated Deep Data order ID. */
148
+ "orderId": string;
149
+ /** ExternalID is the store product identifier. */
150
+ "externalId": string;
151
+ /** Name is the product display name. */
152
+ "name": string;
153
+ /** PriceMinor is this line's price in minor currency units. */
154
+ "priceMinor": number;
155
+ /** Quantity is the number of units on this line. */
156
+ "quantity": number;
157
+ }
158
+ /** EcommerceOrderProductsPage contains one order-product collection. */
159
+ interface EcommerceOrderProductsPage {
160
+ /** Products contains the selected line items. */
161
+ "products": Array<EcommerceOrderProductMetadata> | null;
162
+ /** Total is the provider's matching item count, or the returned count if absent. */
163
+ "total": number;
164
+ }
165
+ /** GetEcommerceOrderProductInput selects one line item by numeric provider ID. */
166
+ interface GetEcommerceOrderProductInput {
167
+ /** ProductID is the numeric Deep Data order-product ID. */
168
+ "productId": string;
169
+ }
170
+ /** ListProductsForEcommerceOrderInput selects one order's line items. */
171
+ interface ListProductsForEcommerceOrderInput {
172
+ /** OrderID is the numeric Deep Data order ID. */
173
+ "orderId": string;
174
+ /** Offset skips this many products for the selected order. */
175
+ "offset"?: number | undefined;
176
+ /** Limit caps the returned products; zero uses the provider default, at most 100. */
177
+ "limit"?: number | undefined;
178
+ }
179
+ /** ListEcommerceCustomersInput filters Deep Data customers. */
180
+ interface ListEcommerceCustomersInput {
181
+ /** ConnectionID optionally filters by numeric ecommerce connection ID. */
182
+ "connectionId"?: string | undefined;
183
+ /** ExternalID optionally filters by store customer ID. */
184
+ "externalId"?: string | undefined;
185
+ /** Email optionally filters by customer email address. */
186
+ "email"?: string | undefined;
187
+ /** Offset skips this many customers. */
188
+ "offset"?: number | undefined;
189
+ /** Limit caps the returned customers; zero uses the provider default, at most 100. */
190
+ "limit"?: number | undefined;
191
+ }
192
+ /** EcommerceCustomerMetadata identifies one store customer without aggregate or provider links. */
193
+ interface EcommerceCustomerMetadata {
194
+ /** ID is the numeric provider customer ID. */
195
+ "id": string;
196
+ /** ConnectionID is the owning ecommerce connection. */
197
+ "connectionId": string;
198
+ /** ExternalID is the store's customer identifier. */
199
+ "externalId": string;
200
+ /** Email is the customer's email address. */
201
+ "email": string;
202
+ }
203
+ /** EcommerceCustomersPage contains customers matching the requested filters. */
204
+ interface EcommerceCustomersPage {
205
+ /** Customers contains the matching customer identities. */
206
+ "customers": Array<EcommerceCustomerMetadata> | null;
207
+ /** Total is the provider's matching customer count. */
208
+ "total": number;
209
+ }
210
+ /** GetEcommerceCustomerInput selects one customer by numeric provider ID. */
211
+ interface GetEcommerceCustomerInput {
212
+ /** CustomerID is the numeric Deep Data customer ID. */
213
+ "customerId": string;
214
+ }
215
+ /** CreateEcommerceCustomerInput creates one Deep Data store customer. */
216
+ interface CreateEcommerceCustomerInput {
217
+ /** ConnectionID is the numeric ecommerce connection ID. */
218
+ "connectionId": string;
219
+ /** ExternalID is the customer's ID in the external store. */
220
+ "externalId": string;
221
+ /** Email is the customer's email address. */
222
+ "email": string;
223
+ }
224
+ /** UpdateEcommerceCustomerInput replaces a store customer's identity fields. */
225
+ interface UpdateEcommerceCustomerInput {
226
+ /** CustomerID is the numeric provider customer ID. */
227
+ "customerId": string;
228
+ /** ExternalID replaces the store customer ID when supplied. */
229
+ "externalId"?: string | undefined;
230
+ /** Email replaces the customer email when supplied. */
231
+ "email"?: string | undefined;
232
+ }
233
+ /** DeleteEcommerceCustomerInput selects one store customer for removal. */
234
+ interface DeleteEcommerceCustomerInput {
235
+ /** CustomerID is the numeric provider customer ID. */
236
+ "customerId": string;
237
+ }
238
+ /** EcommerceCustomerDeletion confirms a Deep Data customer is absent. */
239
+ interface EcommerceCustomerDeletion {
240
+ /** CustomerID is the customer removed or already absent. */
241
+ "customerId": string;
242
+ /** Deleted is true when the customer is absent. */
243
+ "deleted": boolean;
244
+ }
245
+ /** ListConnectionsInput filters Deep Data ecommerce integrations. */
246
+ interface ListConnectionsInput {
247
+ /** Service optionally filters by the integration's service name. */
248
+ "service"?: string | undefined;
249
+ /** ExternalID optionally filters by the store identifier in that service. */
250
+ "externalId"?: string | undefined;
251
+ /** Offset skips this many connections. */
252
+ "offset"?: number | undefined;
253
+ /** Limit caps the returned connections; zero uses the provider default, at most 100. */
254
+ "limit"?: number | undefined;
255
+ }
256
+ /** ConnectionMetadata identifies one ecommerce integration without provider links. */
257
+ interface ConnectionMetadata {
258
+ /** ID is the numeric provider connection ID. */
259
+ "id": string;
260
+ /** Service is the external commerce service name. */
261
+ "service": string;
262
+ /** ExternalID is the store identifier in that service. */
263
+ "externalId": string;
264
+ /** Name is the integration's display name. */
265
+ "name": string;
266
+ /** ListID is the optional list that receives ecommerce contacts. */
267
+ "listId": string;
268
+ }
269
+ /** ConnectionsPage contains connections matching the requested filters. */
270
+ interface ConnectionsPage {
271
+ /** Connections contains the matching connection metadata. */
272
+ "connections": Array<ConnectionMetadata> | null;
273
+ /** Total is the provider's matching connection count. */
274
+ "total": number;
275
+ }
276
+ /** GetConnectionInput selects one ecommerce connection by numeric ID. */
277
+ interface GetConnectionInput {
278
+ /** ConnectionID is the numeric provider connection ID. */
279
+ "connectionId": string;
280
+ }
281
+ /** CreateConnectionInput creates one Deep Data ecommerce integration. */
282
+ interface CreateConnectionInput {
283
+ /** Service is the external commerce service name. */
284
+ "service": string;
285
+ /** ExternalID is the store identifier within that service. */
286
+ "externalId": string;
287
+ /** Name is the connection's display name. */
288
+ "name": string;
289
+ /** ListID is the optional numeric contact list ID. */
290
+ "listId"?: string | undefined;
291
+ }
292
+ /** UpdateConnectionInput replaces selected ecommerce connection fields. */
293
+ interface UpdateConnectionInput {
294
+ /** ConnectionID is the numeric provider connection ID. */
295
+ "connectionId": string;
296
+ /** Service replaces the integration service name when supplied. */
297
+ "service"?: string | undefined;
298
+ /** ExternalID replaces the store identifier when supplied. */
299
+ "externalId"?: string | undefined;
300
+ /** Name replaces the display name when supplied. */
301
+ "name"?: string | undefined;
302
+ /** ListID replaces the assigned contact list when supplied. */
303
+ "listId"?: string | undefined;
304
+ }
305
+ /** DeleteConnectionInput selects one ecommerce connection for removal. */
306
+ interface DeleteConnectionInput {
307
+ /** ConnectionID is the numeric provider connection ID. */
308
+ "connectionId": string;
309
+ }
310
+ /** ConnectionDeletion confirms the selected connection is absent. */
311
+ interface ConnectionDeletion {
312
+ /** ConnectionID is the connection removed or already absent. */
313
+ "connectionId": string;
314
+ /** Deleted is true when the connection is absent. */
315
+ "deleted": boolean;
316
+ }
317
+ /** ListAccountContactsInput selects one page of account-contact links. */
318
+ interface ListAccountContactsInput {
319
+ /** AccountID optionally filters by numeric CRM account ID. */
320
+ "accountId"?: string | undefined;
321
+ /** ContactID optionally filters by numeric contact ID. */
322
+ "contactId"?: string | undefined;
323
+ /** Offset is the zero-based number of links to skip. */
324
+ "offset"?: number | undefined;
325
+ /** Limit is the maximum link count; zero uses 20 and 100 is the maximum. */
326
+ "limit"?: number | undefined;
327
+ }
328
+ /** AccountContactAssociation identifies a contact's CRM account link. */
329
+ interface AccountContactAssociation {
330
+ /** ID is the numeric provider link ID. */
331
+ "id": string;
332
+ /** AccountID is the linked CRM account. */
333
+ "accountId": string;
334
+ /** ContactID is the linked contact. */
335
+ "contactId": string;
336
+ /** JobTitle is the contact's optional role at the account. */
337
+ "jobTitle": string;
338
+ }
339
+ /** AccountContactsPage contains one offset-based page of account-contact links. */
340
+ interface AccountContactsPage {
341
+ /** Associations contains the selected links. */
342
+ "associations": Array<AccountContactAssociation> | null;
343
+ /** Offset is the requested zero-based offset. */
344
+ "offset": number;
345
+ /** Limit is the requested maximum count. */
346
+ "limit": number;
347
+ /** Total is the provider's matching link count. */
348
+ "total": number;
349
+ }
350
+ /** GetAccountContactInput selects one link by numeric provider ID. */
351
+ interface GetAccountContactInput {
352
+ /** AssociationID is the numeric account-contact link ID. */
353
+ "associationId": string;
354
+ }
355
+ /** CreateAccountContactInput links one contact to one CRM account. */
356
+ interface CreateAccountContactInput {
357
+ /** AccountID is the numeric target account ID. */
358
+ "accountId": string;
359
+ /** ContactID is the numeric contact ID; ActiveCampaign allows one account per contact. */
360
+ "contactId": string;
361
+ /** JobTitle is the contact's optional role at that account. */
362
+ "jobTitle"?: string | undefined;
363
+ }
364
+ /** UpdateAccountContactInput replaces a link's job title or account assignment. */
365
+ interface UpdateAccountContactInput {
366
+ /** AssociationID is the numeric link ID. */
367
+ "associationId": string;
368
+ /** AccountID moves the contact to this numeric account when supplied. */
369
+ "accountId"?: string | undefined;
370
+ /** JobTitle replaces the contact's role; blank clears it. */
371
+ "jobTitle"?: string | undefined;
372
+ }
373
+ /** DeleteAccountContactInput selects one link for removal. */
374
+ interface DeleteAccountContactInput {
375
+ /** AssociationID is the numeric link ID. */
376
+ "associationId": string;
377
+ }
378
+ /** AccountContactDeletion confirms that a link is absent. */
379
+ interface AccountContactDeletion {
380
+ /** AssociationID is the link removed or already absent. */
381
+ "associationId": string;
382
+ /** Deleted is true when the link is absent. */
383
+ "deleted": boolean;
384
+ }
385
+ /** ListAccountsInput selects one page of CRM accounts. */
386
+ interface ListAccountsInput {
387
+ /** Offset is the zero-based number of accounts to skip. */
388
+ "offset"?: number | undefined;
389
+ /** Limit is the maximum account count; zero uses 20 and 100 is the maximum. */
390
+ "limit"?: number | undefined;
391
+ }
392
+ /** AccountMetadata contains the public CRM account identity and website. */
393
+ interface AccountMetadata {
394
+ /** ID is the numeric provider account ID. */
395
+ "id": string;
396
+ /** Name is the account's display name. */
397
+ "name": string;
398
+ /** AccountURL is the optional company website URL. */
399
+ "accountUrl": string;
400
+ }
401
+ /** AccountsPage contains one offset-based page of CRM accounts. */
402
+ interface AccountsPage {
403
+ /** Accounts contains the selected account metadata. */
404
+ "accounts": Array<AccountMetadata> | null;
405
+ /** Offset is the requested zero-based offset. */
406
+ "offset": number;
407
+ /** Limit is the requested maximum count. */
408
+ "limit": number;
409
+ /** Total is the provider's matching account count. */
410
+ "total": number;
411
+ }
412
+ /** GetAccountInput selects one account by numeric provider ID. */
413
+ interface GetAccountInput {
414
+ /** AccountID is the numeric CRM account ID. */
415
+ "accountId": string;
416
+ }
417
+ /** CreateAccountInput creates a CRM account by its name and optional website. */
418
+ interface CreateAccountInput {
419
+ /** Name is the account's 1–250-character display name. */
420
+ "name": string;
421
+ /** AccountURL is the optional public company website. */
422
+ "accountUrl"?: string | undefined;
423
+ }
424
+ /** UpdateAccountInput replaces selected account fields by numeric ID. */
425
+ interface UpdateAccountInput {
426
+ /** AccountID is the numeric CRM account ID. */
427
+ "accountId": string;
428
+ /** Name replaces the name when supplied. */
429
+ "name"?: string | undefined;
430
+ /** AccountURL replaces the website when supplied; blank clears it. */
431
+ "accountUrl"?: string | undefined;
432
+ }
433
+ /** DeleteAccountInput selects one CRM account for deletion. */
434
+ interface DeleteAccountInput {
435
+ /** AccountID is the numeric CRM account ID. */
436
+ "accountId": string;
437
+ }
438
+ /** AccountDeletion confirms the selected account is absent. */
439
+ interface AccountDeletion {
440
+ /** AccountID is the account removed or already absent. */
441
+ "accountId": string;
442
+ /** Deleted is true when the account is absent. */
443
+ "deleted": boolean;
444
+ }
445
+ /** ListContactListMembershipsInput selects one page of a contact's list memberships. */
446
+ interface ListContactListMembershipsInput {
447
+ /** ContactID is the numeric provider contact ID. */
448
+ "contactId": string;
449
+ /** Offset is the zero-based number of memberships to skip. */
450
+ "offset"?: number | undefined;
451
+ /** Limit is the maximum membership count; zero uses 20 and 100 is the maximum. */
452
+ "limit"?: number | undefined;
453
+ }
454
+ /** ContactListMembership contains one contact's subscription status on a list. */
455
+ interface ContactListMembership {
456
+ /** ID is the provider membership ID; empty when an absent membership already satisfies unsubscribe. */
457
+ "id": string;
458
+ /** ContactID is the owning contact ID. */
459
+ "contactId": string;
460
+ /** ListID is the subscribed list ID. */
461
+ "listId": string;
462
+ /** Status is 1 for active and 2 for unsubscribed; reads may also return 0 unconfirmed or 3 bounced. */
463
+ "status": number;
464
+ }
465
+ /** ContactListMembershipsPage is one page of a contact's list memberships. */
466
+ interface ContactListMembershipsPage {
467
+ /** Memberships contains the selected membership records. */
468
+ "memberships": Array<ContactListMembership> | null;
469
+ /** ContactID is the selected contact ID. */
470
+ "contactId": string;
471
+ /** Offset is the requested zero-based offset. */
472
+ "offset": number;
473
+ /** Limit is the requested maximum count. */
474
+ "limit": number;
475
+ /** Total is the provider's matching membership count. */
476
+ "total": number;
477
+ }
478
+ /** SetContactListMembershipInput selects a contact and email list. */
479
+ interface SetContactListMembershipInput {
480
+ /** ContactID is the numeric provider contact ID. */
481
+ "contactId": string;
482
+ /** ListID is the numeric provider email list ID. */
483
+ "listId": string;
484
+ }
485
+ /** ListContactTagsInput selects one contact's tag associations. */
486
+ interface ListContactTagsInput {
487
+ /** ContactID is the numeric provider contact ID. */
488
+ "contactId": string;
489
+ }
490
+ /** ContactTagAssociation identifies one contact-to-tag relationship. */
491
+ interface ContactTagAssociation {
492
+ /** AssociationID is the provider relationship ID. */
493
+ "associationId": string;
494
+ /** ContactID is the owning contact ID. */
495
+ "contactId": string;
496
+ /** TagID is the applied tag definition ID. */
497
+ "tagId": string;
498
+ }
499
+ /** ContactTagAssociations lists one contact's applied tag identities. */
500
+ interface ContactTagAssociations {
501
+ /** ContactID is the selected contact ID. */
502
+ "contactId": string;
503
+ /** Tags contains the tag associations visible on the contact. */
504
+ "tags": Array<ContactTagAssociation> | null;
505
+ }
506
+ /** ApplyTagToContactInput applies an existing tag to one contact. */
507
+ interface ApplyTagToContactInput {
508
+ /** ContactID is the numeric provider contact ID. */
509
+ "contactId": string;
510
+ /** TagID is the numeric ID of an existing tag definition. */
511
+ "tagId": string;
512
+ }
513
+ /** RemoveTagFromContactInput removes one tag from one contact. */
514
+ interface RemoveTagFromContactInput {
515
+ /** ContactID is the numeric provider contact ID. */
516
+ "contactId": string;
517
+ /** TagID is the numeric provider tag ID. */
518
+ "tagId": string;
519
+ }
520
+ /** ContactTagRemoval confirms that a tag is absent from one contact. */
521
+ interface ContactTagRemoval {
522
+ /** ContactID is the selected contact ID. */
523
+ "contactId": string;
524
+ /** TagID is the selected tag definition ID. */
525
+ "tagId": string;
526
+ /** Removed is true when the relationship is absent after the call. */
527
+ "removed": boolean;
528
+ }
529
+ /** ListDealNotesInput selects one page of notes attached to a deal. */
530
+ interface ListDealNotesInput {
531
+ /** DealID is the numeric provider deal ID. */
532
+ "dealId": string;
533
+ /** Offset is the zero-based number of notes to skip. */
534
+ "offset"?: number | undefined;
535
+ /** Limit is the maximum note count; zero uses 20 and 100 is the maximum. */
536
+ "limit"?: number | undefined;
537
+ }
538
+ /** DealNoteMetadata contains one deal note without author or relationship links. */
539
+ interface DealNoteMetadata {
540
+ /** ID is the stable provider note ID. */
541
+ "id": string;
542
+ /** DealID is the deal owning the note. */
543
+ "dealId": string;
544
+ /** Text is the note body. */
545
+ "text": string;
546
+ }
547
+ /** DealNotesPage is one offset-based page of deal notes. */
548
+ interface DealNotesPage {
549
+ /** Notes contains the selected notes. */
550
+ "notes": Array<DealNoteMetadata> | null;
551
+ /** Offset is the requested zero-based offset. */
552
+ "offset": number;
553
+ /** Limit is the requested maximum count. */
554
+ "limit": number;
555
+ /** Total is the provider's matching note count. */
556
+ "total": number;
557
+ }
558
+ /** GetDealNoteInput selects one deal note by its numeric note ID. */
559
+ interface GetDealNoteInput {
560
+ /** NoteID is the provider note ID. */
561
+ "noteId": string;
562
+ }
563
+ /** CreateDealNoteInput adds text to one deal. */
564
+ interface CreateDealNoteInput {
565
+ /** DealID is the numeric provider deal ID. */
566
+ "dealId": string;
567
+ /** Text is the non-empty note body. */
568
+ "text": string;
569
+ }
570
+ /** UpdateDealNoteInput replaces an existing deal note's text. */
571
+ interface UpdateDealNoteInput {
572
+ /** DealID is the numeric provider deal ID. */
573
+ "dealId": string;
574
+ /** NoteID is the numeric provider note ID. */
575
+ "noteId": string;
576
+ /** Text is the complete replacement note body. */
577
+ "text": string;
578
+ }
579
+ /** ListDealsInput selects one offset-based page of deals. */
580
+ interface ListDealsInput {
581
+ /** Offset is the zero-based number of deals to skip. */
582
+ "offset"?: number | undefined;
583
+ /** Limit is the requested page size; zero uses the provider's default. */
584
+ "limit"?: number | undefined;
585
+ }
586
+ /** DealMetadata contains selected deal fields without embedded contacts or links. */
587
+ interface DealMetadata {
588
+ /** ID is the stable provider deal ID. */
589
+ "id": string;
590
+ /** Title is the deal's display title. */
591
+ "title": string;
592
+ /** ContactID is the primary contact's numeric ID, when visible. */
593
+ "contactId": string;
594
+ /** StageID is the deal stage's numeric ID, when visible. */
595
+ "stageId": string;
596
+ /** ValueMinor is the deal value in the currency's minor unit, when visible. */
597
+ "valueMinor": SignedInteger;
598
+ /** Currency is the ISO currency code, when visible. */
599
+ "currency": string;
600
+ /** Status is 0 for open, 1 for won, and 2 for lost. */
601
+ "status": SignedInteger;
602
+ }
603
+ /** DealsPage is one offset-based page of deal metadata. */
604
+ interface DealsPage {
605
+ /** Deals contains the selected deal records. */
606
+ "deals": Array<DealMetadata> | null;
607
+ /** Offset is the requested zero-based offset. */
608
+ "offset": number;
609
+ /** Limit is the requested page size. */
610
+ "limit": number;
611
+ /** Total is the provider's matching deal count. */
612
+ "total": number;
613
+ }
614
+ /** GetDealInput selects one numeric ActiveCampaign deal ID. */
615
+ interface GetDealInput {
616
+ /** DealID is the provider ID from a Deals page or API. */
617
+ "dealId": string;
618
+ }
619
+ /** CreateDealInput creates a deal for one primary contact in a pipeline stage. */
620
+ interface CreateDealInput {
621
+ /** Title is the deal title. */
622
+ "title": string;
623
+ /** ContactID is the numeric primary contact ID. */
624
+ "contactId": string;
625
+ /** PipelineID is the numeric deal pipeline ID. */
626
+ "pipelineId": string;
627
+ /** StageID is the numeric stage ID in the pipeline. */
628
+ "stageId": string;
629
+ /** ValueMinor is the deal value in the currency's minor unit. */
630
+ "valueMinor": SignedInteger;
631
+ /** Currency is a three-letter ISO currency code. */
632
+ "currency": string;
633
+ }
634
+ /** UpdateDealInput replaces selected absolute fields on one deal. */
635
+ interface UpdateDealInput {
636
+ /** DealID is the numeric provider deal ID. */
637
+ "dealId": string;
638
+ /** Title replaces the deal title when supplied. */
639
+ "title"?: string | undefined;
640
+ /** StageID moves the deal to this numeric stage when supplied. */
641
+ "stageId"?: string | undefined;
642
+ /** ValueMinor replaces the deal value in minor currency units when supplied. */
643
+ "valueMinor"?: SignedInteger | undefined;
644
+ /** Currency replaces the three-letter ISO currency code when supplied. */
645
+ "currency"?: string | undefined;
646
+ /** Status replaces the status: 0 open, 1 won, or 2 lost. */
647
+ "status"?: SignedInteger | undefined;
648
+ }
649
+ /** DeleteDealInput selects one deal for removal. */
650
+ interface DeleteDealInput {
651
+ /** DealID is the numeric provider deal ID. */
652
+ "dealId": string;
653
+ }
654
+ /** DealDeletion confirms the selected deal is absent. */
655
+ interface DealDeletion {
656
+ /** DealID is the deal removed or already absent. */
657
+ "dealId": string;
658
+ /** Deleted is true when the deal is absent after the call. */
659
+ "deleted": boolean;
660
+ }
661
+ /** ListTagsInput selects one page of contact tag definitions. */
662
+ interface ListTagsInput {
663
+ /** Offset is the zero-based number of tags to skip. */
664
+ "offset"?: number | undefined;
665
+ /** Limit is the maximum tag count; zero uses 20 and 100 is the maximum. */
666
+ "limit"?: number | undefined;
667
+ }
668
+ /** TagMetadata contains a tag definition without links or contact relationships. */
669
+ interface TagMetadata {
670
+ /** ID is the stable provider tag ID. */
671
+ "id": string;
672
+ /** Name is the tag's display name. */
673
+ "name": string;
674
+ /** Description is the tag's optional human-readable description. */
675
+ "description": string;
676
+ /** TagType is always contact for these operations. */
677
+ "tagType": string;
678
+ }
679
+ /** TagsPage is one offset-based page of contact tag definitions. */
680
+ interface TagsPage {
681
+ /** Tags contains the selected tag definitions. */
682
+ "tags": Array<TagMetadata> | null;
683
+ /** Offset is the requested zero-based offset. */
684
+ "offset": number;
685
+ /** Limit is the requested maximum count. */
686
+ "limit": number;
687
+ /** Total is the provider's matching tag count. */
688
+ "total": number;
689
+ }
690
+ /** GetTagInput selects a tag by its numeric ActiveCampaign ID. */
691
+ interface GetTagInput {
692
+ /** TagID is the numeric ID from the Tags page or API. */
693
+ "tagId": string;
694
+ }
695
+ /** CreateTagInput creates a contact tag definition identified by its name. */
696
+ interface CreateTagInput {
697
+ /** Name is a 1–250-character contact tag name without commas, line breaks, markup, or emoji. */
698
+ "name": string;
699
+ /** Description is optional text shown with the tag. */
700
+ "description"?: string | undefined;
701
+ }
702
+ /** UpdateTagInput replaces a contact tag's name and description by ID. */
703
+ interface UpdateTagInput {
704
+ /** TagID is the numeric provider tag ID. */
705
+ "tagId": string;
706
+ /** Name is the complete replacement tag name. */
707
+ "name": string;
708
+ /** Description is the complete replacement description; blank clears it. */
709
+ "description": string;
710
+ }
711
+ /** DeleteTagInput selects a tag definition for removal from the account and all contacts. */
712
+ interface DeleteTagInput {
713
+ /** TagID is the numeric provider tag ID. */
714
+ "tagId": string;
715
+ }
716
+ /** TagDeletion confirms the target tag is absent; deletion affects all tagged contacts. */
717
+ interface TagDeletion {
718
+ /** TagID is the tag removed or already absent. */
719
+ "tagId": string;
720
+ /** Deleted is true when the tag is absent after the call. */
721
+ "deleted": boolean;
722
+ }
723
+ /** ListListsInput selects one offset-based page of email lists. */
724
+ interface ListListsInput {
725
+ /** Offset is the zero-based number of lists to skip. */
726
+ "offset"?: number | undefined;
727
+ /** Limit is the maximum list count; zero uses 20 and 100 is the maximum. */
728
+ "limit"?: number | undefined;
729
+ }
730
+ /** ListMetadata contains an email list's identity and subscriber counts. */
731
+ interface ListMetadata {
732
+ /** ID is the stable provider list ID. */
733
+ "id": string;
734
+ /** Name is the list's display name. */
735
+ "name": string;
736
+ /** ActiveSubscribers counts contacts with active subscriptions; zero for getList, which omits this counter. */
737
+ "activeSubscribers": number;
738
+ /** NonDeletedSubscribers counts subscriptions in all non-deleted states; zero for getList, which omits this counter. */
739
+ "nonDeletedSubscribers": number;
740
+ }
741
+ /** ListsPage is one offset-based page of email lists. */
742
+ interface ListsPage {
743
+ /** Lists contains the selected email lists. */
744
+ "lists": Array<ListMetadata> | null;
745
+ /** Offset is the requested zero-based offset. */
746
+ "offset": number;
747
+ /** Limit is the requested maximum count. */
748
+ "limit": number;
749
+ /** Total is the provider's matching list count. */
750
+ "total": number;
751
+ }
752
+ /** GetListInput selects a list by its numeric ActiveCampaign ID. */
753
+ interface GetListInput {
754
+ /** ListID is the numeric ID from the Lists page or API. */
755
+ "listId": string;
756
+ }
757
+ /** ListContactsInput selects an offset-based page of at most 100 contacts. */
758
+ interface ListContactsInput {
759
+ /** Offset is the zero-based number of contacts to skip; zero starts at the first contact. */
760
+ "offset"?: number | undefined;
761
+ /** Limit is the maximum contact count; zero defaults to 20. */
762
+ "limit"?: number | undefined;
763
+ }
764
+ /** ContactMetadata contains contact identity and name without embedded relationships. */
765
+ interface ContactMetadata {
766
+ /** ID is the stable provider contact ID. */
767
+ "id": string;
768
+ /** Email is the contact email address, if present. */
769
+ "email": string;
770
+ /** FirstName is the contact given name, if present. */
771
+ "firstName": string;
772
+ /** LastName is the contact family name, if present. */
773
+ "lastName": string;
774
+ }
775
+ /** ContactsPage is one offset-based contact page. */
776
+ interface ContactsPage {
777
+ /** Contacts contains the selected contact records. */
778
+ "contacts": Array<ContactMetadata> | null;
779
+ /** Offset is the requested zero-based offset. */
780
+ "offset": number;
781
+ /** Limit is the requested maximum count. */
782
+ "limit": number;
783
+ /** Total is the provider's matching contact count. */
784
+ "total": number;
785
+ }
786
+ /** GetContactInput selects one numeric ActiveCampaign contact ID. */
787
+ interface GetContactInput {
788
+ /** ContactID is the numeric ID from the Contacts page or API. */
789
+ "contactId": string;
790
+ }
791
+ /** SyncContactInput creates or updates a contact identified by its email address. */
792
+ interface SyncContactInput {
793
+ /** Email is the contact's email address and the upsert identity. */
794
+ "email": string;
795
+ /** FirstName replaces the given name when supplied; nil leaves it unchanged. */
796
+ "firstName"?: string | undefined;
797
+ /** LastName replaces the family name when supplied; nil leaves it unchanged. */
798
+ "lastName"?: string | undefined;
799
+ }
800
+ /** UpdateContactInput replaces selected contact fields by provider ID. */
801
+ interface UpdateContactInput {
802
+ /** ContactID is the numeric ID shown by ActiveCampaign's Contacts page. */
803
+ "contactId": string;
804
+ /** Email replaces the email when supplied; nil leaves it unchanged. */
805
+ "email"?: string | undefined;
806
+ /** FirstName replaces the given name when supplied; nil leaves it unchanged. */
807
+ "firstName"?: string | undefined;
808
+ /** LastName replaces the family name when supplied; nil leaves it unchanged. */
809
+ "lastName"?: string | undefined;
810
+ }
811
+ /** Runtime validator for EcommerceOrderLineItemInput. */
812
+ declare const EcommerceOrderLineItemInputSchema: z.ZodObject<{
813
+ storeLineItemId: z.ZodString;
814
+ productStorePrimaryId: z.ZodString;
815
+ name: z.ZodString;
816
+ quantity: z.ZodNumber;
817
+ priceAmount: z.ZodString;
818
+ }, z.core.$strict>;
819
+ /** Runtime validator for UpsertEcommerceOrderInput. */
820
+ declare const UpsertEcommerceOrderInputSchema: z.ZodObject<{
821
+ connectionId: z.ZodString;
822
+ storeOrderId: z.ZodString;
823
+ storeCustomerId: z.ZodString;
824
+ email: z.ZodString;
825
+ createdAt: z.ZodString;
826
+ currency: z.ZodString;
827
+ finalAmount: z.ZodString;
828
+ creationSource: z.ZodString;
829
+ status: z.ZodString;
830
+ lineItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
831
+ storeLineItemId: z.ZodString;
832
+ productStorePrimaryId: z.ZodString;
833
+ name: z.ZodString;
834
+ quantity: z.ZodNumber;
835
+ priceAmount: z.ZodString;
836
+ }, z.core.$strict>>>;
837
+ }, z.core.$strict>;
838
+ /** Runtime validator for EcommerceOrderUpsertMetadata. */
839
+ declare const EcommerceOrderUpsertMetadataSchema: z.ZodObject<{
840
+ connectionId: z.ZodString;
841
+ storeOrderId: z.ZodString;
842
+ email: z.ZodString;
843
+ }, z.core.$strict>;
844
+ /** Runtime validator for ListEcommerceOrdersInput. */
845
+ declare const ListEcommerceOrdersInputSchema: z.ZodObject<{
846
+ connectionId: z.ZodOptional<z.ZodString>;
847
+ externalId: z.ZodOptional<z.ZodString>;
848
+ email: z.ZodOptional<z.ZodString>;
849
+ offset: z.ZodOptional<z.ZodNumber>;
850
+ limit: z.ZodOptional<z.ZodNumber>;
851
+ }, z.core.$strict>;
852
+ /** Runtime validator for EcommerceOrderMetadata. */
853
+ declare const EcommerceOrderMetadataSchema: z.ZodObject<{
854
+ id: z.ZodString;
855
+ connectionId: z.ZodString;
856
+ externalId: z.ZodString;
857
+ customerId: z.ZodString;
858
+ email: z.ZodString;
859
+ currency: z.ZodString;
860
+ totalMinor: z.ZodNumber;
861
+ state: z.ZodNumber;
862
+ }, z.core.$strict>;
863
+ /** Runtime validator for EcommerceOrdersPage. */
864
+ declare const EcommerceOrdersPageSchema: z.ZodObject<{
865
+ orders: z.ZodNullable<z.ZodArray<z.ZodObject<{
866
+ id: z.ZodString;
867
+ connectionId: z.ZodString;
868
+ externalId: z.ZodString;
869
+ customerId: z.ZodString;
870
+ email: z.ZodString;
871
+ currency: z.ZodString;
872
+ totalMinor: z.ZodNumber;
873
+ state: z.ZodNumber;
874
+ }, z.core.$strict>>>;
875
+ total: z.ZodNumber;
876
+ }, z.core.$strict>;
877
+ /** Runtime validator for GetEcommerceOrderInput. */
878
+ declare const GetEcommerceOrderInputSchema: z.ZodObject<{
879
+ orderId: z.ZodString;
880
+ }, z.core.$strict>;
881
+ /** Runtime validator for ListEcommerceOrderProductsInput. */
882
+ declare const ListEcommerceOrderProductsInputSchema: z.ZodObject<{
883
+ offset: z.ZodOptional<z.ZodNumber>;
884
+ limit: z.ZodOptional<z.ZodNumber>;
885
+ }, z.core.$strict>;
886
+ /** Runtime validator for EcommerceOrderProductMetadata. */
887
+ declare const EcommerceOrderProductMetadataSchema: z.ZodObject<{
888
+ id: z.ZodString;
889
+ orderId: z.ZodString;
890
+ externalId: z.ZodString;
891
+ name: z.ZodString;
892
+ priceMinor: z.ZodNumber;
893
+ quantity: z.ZodNumber;
894
+ }, z.core.$strict>;
895
+ /** Runtime validator for EcommerceOrderProductsPage. */
896
+ declare const EcommerceOrderProductsPageSchema: z.ZodObject<{
897
+ products: z.ZodNullable<z.ZodArray<z.ZodObject<{
898
+ id: z.ZodString;
899
+ orderId: z.ZodString;
900
+ externalId: z.ZodString;
901
+ name: z.ZodString;
902
+ priceMinor: z.ZodNumber;
903
+ quantity: z.ZodNumber;
904
+ }, z.core.$strict>>>;
905
+ total: z.ZodNumber;
906
+ }, z.core.$strict>;
907
+ /** Runtime validator for GetEcommerceOrderProductInput. */
908
+ declare const GetEcommerceOrderProductInputSchema: z.ZodObject<{
909
+ productId: z.ZodString;
910
+ }, z.core.$strict>;
911
+ /** Runtime validator for ListProductsForEcommerceOrderInput. */
912
+ declare const ListProductsForEcommerceOrderInputSchema: z.ZodObject<{
913
+ orderId: z.ZodString;
914
+ offset: z.ZodOptional<z.ZodNumber>;
915
+ limit: z.ZodOptional<z.ZodNumber>;
916
+ }, z.core.$strict>;
917
+ /** Runtime validator for ListEcommerceCustomersInput. */
918
+ declare const ListEcommerceCustomersInputSchema: z.ZodObject<{
919
+ connectionId: z.ZodOptional<z.ZodString>;
920
+ externalId: z.ZodOptional<z.ZodString>;
921
+ email: z.ZodOptional<z.ZodString>;
922
+ offset: z.ZodOptional<z.ZodNumber>;
923
+ limit: z.ZodOptional<z.ZodNumber>;
924
+ }, z.core.$strict>;
925
+ /** Runtime validator for EcommerceCustomerMetadata. */
926
+ declare const EcommerceCustomerMetadataSchema: z.ZodObject<{
927
+ id: z.ZodString;
928
+ connectionId: z.ZodString;
929
+ externalId: z.ZodString;
930
+ email: z.ZodString;
931
+ }, z.core.$strict>;
932
+ /** Runtime validator for EcommerceCustomersPage. */
933
+ declare const EcommerceCustomersPageSchema: z.ZodObject<{
934
+ customers: z.ZodNullable<z.ZodArray<z.ZodObject<{
935
+ id: z.ZodString;
936
+ connectionId: z.ZodString;
937
+ externalId: z.ZodString;
938
+ email: z.ZodString;
939
+ }, z.core.$strict>>>;
940
+ total: z.ZodNumber;
941
+ }, z.core.$strict>;
942
+ /** Runtime validator for GetEcommerceCustomerInput. */
943
+ declare const GetEcommerceCustomerInputSchema: z.ZodObject<{
944
+ customerId: z.ZodString;
945
+ }, z.core.$strict>;
946
+ /** Runtime validator for CreateEcommerceCustomerInput. */
947
+ declare const CreateEcommerceCustomerInputSchema: z.ZodObject<{
948
+ connectionId: z.ZodString;
949
+ externalId: z.ZodString;
950
+ email: z.ZodString;
951
+ }, z.core.$strict>;
952
+ /** Runtime validator for UpdateEcommerceCustomerInput. */
953
+ declare const UpdateEcommerceCustomerInputSchema: z.ZodObject<{
954
+ customerId: z.ZodString;
955
+ externalId: z.ZodOptional<z.ZodString>;
956
+ email: z.ZodOptional<z.ZodString>;
957
+ }, z.core.$strict>;
958
+ /** Runtime validator for DeleteEcommerceCustomerInput. */
959
+ declare const DeleteEcommerceCustomerInputSchema: z.ZodObject<{
960
+ customerId: z.ZodString;
961
+ }, z.core.$strict>;
962
+ /** Runtime validator for EcommerceCustomerDeletion. */
963
+ declare const EcommerceCustomerDeletionSchema: z.ZodObject<{
964
+ customerId: z.ZodString;
965
+ deleted: z.ZodBoolean;
966
+ }, z.core.$strict>;
967
+ /** Runtime validator for ListConnectionsInput. */
968
+ declare const ListConnectionsInputSchema: z.ZodObject<{
969
+ service: z.ZodOptional<z.ZodString>;
970
+ externalId: z.ZodOptional<z.ZodString>;
971
+ offset: z.ZodOptional<z.ZodNumber>;
972
+ limit: z.ZodOptional<z.ZodNumber>;
973
+ }, z.core.$strict>;
974
+ /** Runtime validator for ConnectionMetadata. */
975
+ declare const ConnectionMetadataSchema: z.ZodObject<{
976
+ id: z.ZodString;
977
+ service: z.ZodString;
978
+ externalId: z.ZodString;
979
+ name: z.ZodString;
980
+ listId: z.ZodString;
981
+ }, z.core.$strict>;
982
+ /** Runtime validator for ConnectionsPage. */
983
+ declare const ConnectionsPageSchema: z.ZodObject<{
984
+ connections: z.ZodNullable<z.ZodArray<z.ZodObject<{
985
+ id: z.ZodString;
986
+ service: z.ZodString;
987
+ externalId: z.ZodString;
988
+ name: z.ZodString;
989
+ listId: z.ZodString;
990
+ }, z.core.$strict>>>;
991
+ total: z.ZodNumber;
992
+ }, z.core.$strict>;
993
+ /** Runtime validator for GetConnectionInput. */
994
+ declare const GetConnectionInputSchema: z.ZodObject<{
995
+ connectionId: z.ZodString;
996
+ }, z.core.$strict>;
997
+ /** Runtime validator for CreateConnectionInput. */
998
+ declare const CreateConnectionInputSchema: z.ZodObject<{
999
+ service: z.ZodString;
1000
+ externalId: z.ZodString;
1001
+ name: z.ZodString;
1002
+ listId: z.ZodOptional<z.ZodString>;
1003
+ }, z.core.$strict>;
1004
+ /** Runtime validator for UpdateConnectionInput. */
1005
+ declare const UpdateConnectionInputSchema: z.ZodObject<{
1006
+ connectionId: z.ZodString;
1007
+ service: z.ZodOptional<z.ZodString>;
1008
+ externalId: z.ZodOptional<z.ZodString>;
1009
+ name: z.ZodOptional<z.ZodString>;
1010
+ listId: z.ZodOptional<z.ZodString>;
1011
+ }, z.core.$strict>;
1012
+ /** Runtime validator for DeleteConnectionInput. */
1013
+ declare const DeleteConnectionInputSchema: z.ZodObject<{
1014
+ connectionId: z.ZodString;
1015
+ }, z.core.$strict>;
1016
+ /** Runtime validator for ConnectionDeletion. */
1017
+ declare const ConnectionDeletionSchema: z.ZodObject<{
1018
+ connectionId: z.ZodString;
1019
+ deleted: z.ZodBoolean;
1020
+ }, z.core.$strict>;
1021
+ /** Runtime validator for ListAccountContactsInput. */
1022
+ declare const ListAccountContactsInputSchema: z.ZodObject<{
1023
+ accountId: z.ZodOptional<z.ZodString>;
1024
+ contactId: z.ZodOptional<z.ZodString>;
1025
+ offset: z.ZodOptional<z.ZodNumber>;
1026
+ limit: z.ZodOptional<z.ZodNumber>;
1027
+ }, z.core.$strict>;
1028
+ /** Runtime validator for AccountContactAssociation. */
1029
+ declare const AccountContactAssociationSchema: z.ZodObject<{
1030
+ id: z.ZodString;
1031
+ accountId: z.ZodString;
1032
+ contactId: z.ZodString;
1033
+ jobTitle: z.ZodString;
1034
+ }, z.core.$strict>;
1035
+ /** Runtime validator for AccountContactsPage. */
1036
+ declare const AccountContactsPageSchema: z.ZodObject<{
1037
+ associations: z.ZodNullable<z.ZodArray<z.ZodObject<{
1038
+ id: z.ZodString;
1039
+ accountId: z.ZodString;
1040
+ contactId: z.ZodString;
1041
+ jobTitle: z.ZodString;
1042
+ }, z.core.$strict>>>;
1043
+ offset: z.ZodNumber;
1044
+ limit: z.ZodNumber;
1045
+ total: z.ZodNumber;
1046
+ }, z.core.$strict>;
1047
+ /** Runtime validator for GetAccountContactInput. */
1048
+ declare const GetAccountContactInputSchema: z.ZodObject<{
1049
+ associationId: z.ZodString;
1050
+ }, z.core.$strict>;
1051
+ /** Runtime validator for CreateAccountContactInput. */
1052
+ declare const CreateAccountContactInputSchema: z.ZodObject<{
1053
+ accountId: z.ZodString;
1054
+ contactId: z.ZodString;
1055
+ jobTitle: z.ZodOptional<z.ZodString>;
1056
+ }, z.core.$strict>;
1057
+ /** Runtime validator for UpdateAccountContactInput. */
1058
+ declare const UpdateAccountContactInputSchema: z.ZodObject<{
1059
+ associationId: z.ZodString;
1060
+ accountId: z.ZodOptional<z.ZodString>;
1061
+ jobTitle: z.ZodOptional<z.ZodString>;
1062
+ }, z.core.$strict>;
1063
+ /** Runtime validator for DeleteAccountContactInput. */
1064
+ declare const DeleteAccountContactInputSchema: z.ZodObject<{
1065
+ associationId: z.ZodString;
1066
+ }, z.core.$strict>;
1067
+ /** Runtime validator for AccountContactDeletion. */
1068
+ declare const AccountContactDeletionSchema: z.ZodObject<{
1069
+ associationId: z.ZodString;
1070
+ deleted: z.ZodBoolean;
1071
+ }, z.core.$strict>;
1072
+ /** Runtime validator for ListAccountsInput. */
1073
+ declare const ListAccountsInputSchema: z.ZodObject<{
1074
+ offset: z.ZodOptional<z.ZodNumber>;
1075
+ limit: z.ZodOptional<z.ZodNumber>;
1076
+ }, z.core.$strict>;
1077
+ /** Runtime validator for AccountMetadata. */
1078
+ declare const AccountMetadataSchema: z.ZodObject<{
1079
+ id: z.ZodString;
1080
+ name: z.ZodString;
1081
+ accountUrl: z.ZodString;
1082
+ }, z.core.$strict>;
1083
+ /** Runtime validator for AccountsPage. */
1084
+ declare const AccountsPageSchema: z.ZodObject<{
1085
+ accounts: z.ZodNullable<z.ZodArray<z.ZodObject<{
1086
+ id: z.ZodString;
1087
+ name: z.ZodString;
1088
+ accountUrl: z.ZodString;
1089
+ }, z.core.$strict>>>;
1090
+ offset: z.ZodNumber;
1091
+ limit: z.ZodNumber;
1092
+ total: z.ZodNumber;
1093
+ }, z.core.$strict>;
1094
+ /** Runtime validator for GetAccountInput. */
1095
+ declare const GetAccountInputSchema: z.ZodObject<{
1096
+ accountId: z.ZodString;
1097
+ }, z.core.$strict>;
1098
+ /** Runtime validator for CreateAccountInput. */
1099
+ declare const CreateAccountInputSchema: z.ZodObject<{
1100
+ name: z.ZodString;
1101
+ accountUrl: z.ZodOptional<z.ZodString>;
1102
+ }, z.core.$strict>;
1103
+ /** Runtime validator for UpdateAccountInput. */
1104
+ declare const UpdateAccountInputSchema: z.ZodObject<{
1105
+ accountId: z.ZodString;
1106
+ name: z.ZodOptional<z.ZodString>;
1107
+ accountUrl: z.ZodOptional<z.ZodString>;
1108
+ }, z.core.$strict>;
1109
+ /** Runtime validator for DeleteAccountInput. */
1110
+ declare const DeleteAccountInputSchema: z.ZodObject<{
1111
+ accountId: z.ZodString;
1112
+ }, z.core.$strict>;
1113
+ /** Runtime validator for AccountDeletion. */
1114
+ declare const AccountDeletionSchema: z.ZodObject<{
1115
+ accountId: z.ZodString;
1116
+ deleted: z.ZodBoolean;
1117
+ }, z.core.$strict>;
1118
+ /** Runtime validator for ListContactListMembershipsInput. */
1119
+ declare const ListContactListMembershipsInputSchema: z.ZodObject<{
1120
+ contactId: z.ZodString;
1121
+ offset: z.ZodOptional<z.ZodNumber>;
1122
+ limit: z.ZodOptional<z.ZodNumber>;
1123
+ }, z.core.$strict>;
1124
+ /** Runtime validator for ContactListMembership. */
1125
+ declare const ContactListMembershipSchema: z.ZodObject<{
1126
+ id: z.ZodString;
1127
+ contactId: z.ZodString;
1128
+ listId: z.ZodString;
1129
+ status: z.ZodNumber;
1130
+ }, z.core.$strict>;
1131
+ /** Runtime validator for ContactListMembershipsPage. */
1132
+ declare const ContactListMembershipsPageSchema: z.ZodObject<{
1133
+ memberships: z.ZodNullable<z.ZodArray<z.ZodObject<{
1134
+ id: z.ZodString;
1135
+ contactId: z.ZodString;
1136
+ listId: z.ZodString;
1137
+ status: z.ZodNumber;
1138
+ }, z.core.$strict>>>;
1139
+ contactId: z.ZodString;
1140
+ offset: z.ZodNumber;
1141
+ limit: z.ZodNumber;
1142
+ total: z.ZodNumber;
1143
+ }, z.core.$strict>;
1144
+ /** Runtime validator for SetContactListMembershipInput. */
1145
+ declare const SetContactListMembershipInputSchema: z.ZodObject<{
1146
+ contactId: z.ZodString;
1147
+ listId: z.ZodString;
1148
+ }, z.core.$strict>;
1149
+ /** Runtime validator for ListContactTagsInput. */
1150
+ declare const ListContactTagsInputSchema: z.ZodObject<{
1151
+ contactId: z.ZodString;
1152
+ }, z.core.$strict>;
1153
+ /** Runtime validator for ContactTagAssociation. */
1154
+ declare const ContactTagAssociationSchema: z.ZodObject<{
1155
+ associationId: z.ZodString;
1156
+ contactId: z.ZodString;
1157
+ tagId: z.ZodString;
1158
+ }, z.core.$strict>;
1159
+ /** Runtime validator for ContactTagAssociations. */
1160
+ declare const ContactTagAssociationsSchema: z.ZodObject<{
1161
+ contactId: z.ZodString;
1162
+ tags: z.ZodNullable<z.ZodArray<z.ZodObject<{
1163
+ associationId: z.ZodString;
1164
+ contactId: z.ZodString;
1165
+ tagId: z.ZodString;
1166
+ }, z.core.$strict>>>;
1167
+ }, z.core.$strict>;
1168
+ /** Runtime validator for ApplyTagToContactInput. */
1169
+ declare const ApplyTagToContactInputSchema: z.ZodObject<{
1170
+ contactId: z.ZodString;
1171
+ tagId: z.ZodString;
1172
+ }, z.core.$strict>;
1173
+ /** Runtime validator for RemoveTagFromContactInput. */
1174
+ declare const RemoveTagFromContactInputSchema: z.ZodObject<{
1175
+ contactId: z.ZodString;
1176
+ tagId: z.ZodString;
1177
+ }, z.core.$strict>;
1178
+ /** Runtime validator for ContactTagRemoval. */
1179
+ declare const ContactTagRemovalSchema: z.ZodObject<{
1180
+ contactId: z.ZodString;
1181
+ tagId: z.ZodString;
1182
+ removed: z.ZodBoolean;
1183
+ }, z.core.$strict>;
1184
+ /** Runtime validator for ListDealNotesInput. */
1185
+ declare const ListDealNotesInputSchema: z.ZodObject<{
1186
+ dealId: z.ZodString;
1187
+ offset: z.ZodOptional<z.ZodNumber>;
1188
+ limit: z.ZodOptional<z.ZodNumber>;
1189
+ }, z.core.$strict>;
1190
+ /** Runtime validator for DealNoteMetadata. */
1191
+ declare const DealNoteMetadataSchema: z.ZodObject<{
1192
+ id: z.ZodString;
1193
+ dealId: z.ZodString;
1194
+ text: z.ZodString;
1195
+ }, z.core.$strict>;
1196
+ /** Runtime validator for DealNotesPage. */
1197
+ declare const DealNotesPageSchema: z.ZodObject<{
1198
+ notes: z.ZodNullable<z.ZodArray<z.ZodObject<{
1199
+ id: z.ZodString;
1200
+ dealId: z.ZodString;
1201
+ text: z.ZodString;
1202
+ }, z.core.$strict>>>;
1203
+ offset: z.ZodNumber;
1204
+ limit: z.ZodNumber;
1205
+ total: z.ZodNumber;
1206
+ }, z.core.$strict>;
1207
+ /** Runtime validator for GetDealNoteInput. */
1208
+ declare const GetDealNoteInputSchema: z.ZodObject<{
1209
+ noteId: z.ZodString;
1210
+ }, z.core.$strict>;
1211
+ /** Runtime validator for CreateDealNoteInput. */
1212
+ declare const CreateDealNoteInputSchema: z.ZodObject<{
1213
+ dealId: z.ZodString;
1214
+ text: z.ZodString;
1215
+ }, z.core.$strict>;
1216
+ /** Runtime validator for UpdateDealNoteInput. */
1217
+ declare const UpdateDealNoteInputSchema: z.ZodObject<{
1218
+ dealId: z.ZodString;
1219
+ noteId: z.ZodString;
1220
+ text: z.ZodString;
1221
+ }, z.core.$strict>;
1222
+ /** Runtime validator for ListDealsInput. */
1223
+ declare const ListDealsInputSchema: z.ZodObject<{
1224
+ offset: z.ZodOptional<z.ZodNumber>;
1225
+ limit: z.ZodOptional<z.ZodNumber>;
1226
+ }, z.core.$strict>;
1227
+ /** Runtime validator for DealMetadata. */
1228
+ declare const DealMetadataSchema: z.ZodObject<{
1229
+ id: z.ZodString;
1230
+ title: z.ZodString;
1231
+ contactId: z.ZodString;
1232
+ stageId: z.ZodString;
1233
+ valueMinor: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
1234
+ rawJSON: string;
1235
+ }>, unknown>>;
1236
+ currency: z.ZodString;
1237
+ status: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
1238
+ rawJSON: string;
1239
+ }>, unknown>>;
1240
+ }, z.core.$strict>;
1241
+ /** Runtime validator for DealsPage. */
1242
+ declare const DealsPageSchema: z.ZodObject<{
1243
+ deals: z.ZodNullable<z.ZodArray<z.ZodObject<{
1244
+ id: z.ZodString;
1245
+ title: z.ZodString;
1246
+ contactId: z.ZodString;
1247
+ stageId: z.ZodString;
1248
+ valueMinor: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
1249
+ rawJSON: string;
1250
+ }>, unknown>>;
1251
+ currency: z.ZodString;
1252
+ status: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
1253
+ rawJSON: string;
1254
+ }>, unknown>>;
1255
+ }, z.core.$strict>>>;
1256
+ offset: z.ZodNumber;
1257
+ limit: z.ZodNumber;
1258
+ total: z.ZodNumber;
1259
+ }, z.core.$strict>;
1260
+ /** Runtime validator for GetDealInput. */
1261
+ declare const GetDealInputSchema: z.ZodObject<{
1262
+ dealId: z.ZodString;
1263
+ }, z.core.$strict>;
1264
+ /** Runtime validator for CreateDealInput. */
1265
+ declare const CreateDealInputSchema: z.ZodObject<{
1266
+ title: z.ZodString;
1267
+ contactId: z.ZodString;
1268
+ pipelineId: z.ZodString;
1269
+ stageId: z.ZodString;
1270
+ valueMinor: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
1271
+ rawJSON: string;
1272
+ }>, unknown>>;
1273
+ currency: z.ZodString;
1274
+ }, z.core.$strict>;
1275
+ /** Runtime validator for UpdateDealInput. */
1276
+ declare const UpdateDealInputSchema: z.ZodObject<{
1277
+ dealId: z.ZodString;
1278
+ title: z.ZodOptional<z.ZodString>;
1279
+ stageId: z.ZodOptional<z.ZodString>;
1280
+ valueMinor: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
1281
+ rawJSON: string;
1282
+ }>, unknown>>>;
1283
+ currency: z.ZodOptional<z.ZodString>;
1284
+ status: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
1285
+ rawJSON: string;
1286
+ }>, unknown>>>;
1287
+ }, z.core.$strict>;
1288
+ /** Runtime validator for DeleteDealInput. */
1289
+ declare const DeleteDealInputSchema: z.ZodObject<{
1290
+ dealId: z.ZodString;
1291
+ }, z.core.$strict>;
1292
+ /** Runtime validator for DealDeletion. */
1293
+ declare const DealDeletionSchema: z.ZodObject<{
1294
+ dealId: z.ZodString;
1295
+ deleted: z.ZodBoolean;
1296
+ }, z.core.$strict>;
1297
+ /** Runtime validator for ListTagsInput. */
1298
+ declare const ListTagsInputSchema: z.ZodObject<{
1299
+ offset: z.ZodOptional<z.ZodNumber>;
1300
+ limit: z.ZodOptional<z.ZodNumber>;
1301
+ }, z.core.$strict>;
1302
+ /** Runtime validator for TagMetadata. */
1303
+ declare const TagMetadataSchema: z.ZodObject<{
1304
+ id: z.ZodString;
1305
+ name: z.ZodString;
1306
+ description: z.ZodString;
1307
+ tagType: z.ZodString;
1308
+ }, z.core.$strict>;
1309
+ /** Runtime validator for TagsPage. */
1310
+ declare const TagsPageSchema: z.ZodObject<{
1311
+ tags: z.ZodNullable<z.ZodArray<z.ZodObject<{
1312
+ id: z.ZodString;
1313
+ name: z.ZodString;
1314
+ description: z.ZodString;
1315
+ tagType: z.ZodString;
1316
+ }, z.core.$strict>>>;
1317
+ offset: z.ZodNumber;
1318
+ limit: z.ZodNumber;
1319
+ total: z.ZodNumber;
1320
+ }, z.core.$strict>;
1321
+ /** Runtime validator for GetTagInput. */
1322
+ declare const GetTagInputSchema: z.ZodObject<{
1323
+ tagId: z.ZodString;
1324
+ }, z.core.$strict>;
1325
+ /** Runtime validator for CreateTagInput. */
1326
+ declare const CreateTagInputSchema: z.ZodObject<{
1327
+ name: z.ZodString;
1328
+ description: z.ZodOptional<z.ZodString>;
1329
+ }, z.core.$strict>;
1330
+ /** Runtime validator for UpdateTagInput. */
1331
+ declare const UpdateTagInputSchema: z.ZodObject<{
1332
+ tagId: z.ZodString;
1333
+ name: z.ZodString;
1334
+ description: z.ZodString;
1335
+ }, z.core.$strict>;
1336
+ /** Runtime validator for DeleteTagInput. */
1337
+ declare const DeleteTagInputSchema: z.ZodObject<{
1338
+ tagId: z.ZodString;
1339
+ }, z.core.$strict>;
1340
+ /** Runtime validator for TagDeletion. */
1341
+ declare const TagDeletionSchema: z.ZodObject<{
1342
+ tagId: z.ZodString;
1343
+ deleted: z.ZodBoolean;
1344
+ }, z.core.$strict>;
1345
+ /** Runtime validator for ListListsInput. */
1346
+ declare const ListListsInputSchema: z.ZodObject<{
1347
+ offset: z.ZodOptional<z.ZodNumber>;
1348
+ limit: z.ZodOptional<z.ZodNumber>;
1349
+ }, z.core.$strict>;
1350
+ /** Runtime validator for ListMetadata. */
1351
+ declare const ListMetadataSchema: z.ZodObject<{
1352
+ id: z.ZodString;
1353
+ name: z.ZodString;
1354
+ activeSubscribers: z.ZodNumber;
1355
+ nonDeletedSubscribers: z.ZodNumber;
1356
+ }, z.core.$strict>;
1357
+ /** Runtime validator for ListsPage. */
1358
+ declare const ListsPageSchema: z.ZodObject<{
1359
+ lists: z.ZodNullable<z.ZodArray<z.ZodObject<{
1360
+ id: z.ZodString;
1361
+ name: z.ZodString;
1362
+ activeSubscribers: z.ZodNumber;
1363
+ nonDeletedSubscribers: z.ZodNumber;
1364
+ }, z.core.$strict>>>;
1365
+ offset: z.ZodNumber;
1366
+ limit: z.ZodNumber;
1367
+ total: z.ZodNumber;
1368
+ }, z.core.$strict>;
1369
+ /** Runtime validator for GetListInput. */
1370
+ declare const GetListInputSchema: z.ZodObject<{
1371
+ listId: z.ZodString;
1372
+ }, z.core.$strict>;
1373
+ /** Runtime validator for ListContactsInput. */
1374
+ declare const ListContactsInputSchema: z.ZodObject<{
1375
+ offset: z.ZodOptional<z.ZodNumber>;
1376
+ limit: z.ZodOptional<z.ZodNumber>;
1377
+ }, z.core.$strict>;
1378
+ /** Runtime validator for ContactMetadata. */
1379
+ declare const ContactMetadataSchema: z.ZodObject<{
1380
+ id: z.ZodString;
1381
+ email: z.ZodString;
1382
+ firstName: z.ZodString;
1383
+ lastName: z.ZodString;
1384
+ }, z.core.$strict>;
1385
+ /** Runtime validator for ContactsPage. */
1386
+ declare const ContactsPageSchema: z.ZodObject<{
1387
+ contacts: z.ZodNullable<z.ZodArray<z.ZodObject<{
1388
+ id: z.ZodString;
1389
+ email: z.ZodString;
1390
+ firstName: z.ZodString;
1391
+ lastName: z.ZodString;
1392
+ }, z.core.$strict>>>;
1393
+ offset: z.ZodNumber;
1394
+ limit: z.ZodNumber;
1395
+ total: z.ZodNumber;
1396
+ }, z.core.$strict>;
1397
+ /** Runtime validator for GetContactInput. */
1398
+ declare const GetContactInputSchema: z.ZodObject<{
1399
+ contactId: z.ZodString;
1400
+ }, z.core.$strict>;
1401
+ /** Runtime validator for SyncContactInput. */
1402
+ declare const SyncContactInputSchema: z.ZodObject<{
1403
+ email: z.ZodString;
1404
+ firstName: z.ZodOptional<z.ZodString>;
1405
+ lastName: z.ZodOptional<z.ZodString>;
1406
+ }, z.core.$strict>;
1407
+ /** Runtime validator for UpdateContactInput. */
1408
+ declare const UpdateContactInputSchema: z.ZodObject<{
1409
+ contactId: z.ZodString;
1410
+ email: z.ZodOptional<z.ZodString>;
1411
+ firstName: z.ZodOptional<z.ZodString>;
1412
+ lastName: z.ZodOptional<z.ZodString>;
1413
+ }, z.core.$strict>;
1414
+
1415
+ /** Typed operations supplied by a client or mock. */
1416
+ interface Operations {
1417
+ /** Invoke upsertEcommerceOrder through this connection. */
1418
+ upsertEcommerceOrder(): Mutation<UpsertEcommerceOrderInput, EcommerceOrderUpsertMetadata>;
1419
+ /** Invoke listEcommerceOrders through this connection. */
1420
+ listEcommerceOrders(): Query<ListEcommerceOrdersInput, EcommerceOrdersPage>;
1421
+ /** Invoke getEcommerceOrder through this connection. */
1422
+ getEcommerceOrder(): Query<GetEcommerceOrderInput, EcommerceOrderMetadata>;
1423
+ /** Invoke listEcommerceOrderProducts through this connection. */
1424
+ listEcommerceOrderProducts(): Query<ListEcommerceOrderProductsInput, EcommerceOrderProductsPage>;
1425
+ /** Invoke getEcommerceOrderProduct through this connection. */
1426
+ getEcommerceOrderProduct(): Query<GetEcommerceOrderProductInput, EcommerceOrderProductMetadata>;
1427
+ /** Invoke listProductsForEcommerceOrder through this connection. */
1428
+ listProductsForEcommerceOrder(): Query<ListProductsForEcommerceOrderInput, EcommerceOrderProductsPage>;
1429
+ /** Invoke listEcommerceCustomers through this connection. */
1430
+ listEcommerceCustomers(): Query<ListEcommerceCustomersInput, EcommerceCustomersPage>;
1431
+ /** Invoke getEcommerceCustomer through this connection. */
1432
+ getEcommerceCustomer(): Query<GetEcommerceCustomerInput, EcommerceCustomerMetadata>;
1433
+ /** Invoke createEcommerceCustomer through this connection. */
1434
+ createEcommerceCustomer(): Mutation<CreateEcommerceCustomerInput, EcommerceCustomerMetadata>;
1435
+ /** Invoke updateEcommerceCustomer through this connection. */
1436
+ updateEcommerceCustomer(): Mutation<UpdateEcommerceCustomerInput, EcommerceCustomerMetadata>;
1437
+ /** Invoke deleteEcommerceCustomer through this connection. */
1438
+ deleteEcommerceCustomer(): Mutation<DeleteEcommerceCustomerInput, EcommerceCustomerDeletion>;
1439
+ /** Invoke listConnections through this connection. */
1440
+ listConnections(): Query<ListConnectionsInput, ConnectionsPage>;
1441
+ /** Invoke getConnection through this connection. */
1442
+ getConnection(): Query<GetConnectionInput, ConnectionMetadata>;
1443
+ /** Invoke createConnection through this connection. */
1444
+ createConnection(): Mutation<CreateConnectionInput, ConnectionMetadata>;
1445
+ /** Invoke updateConnection through this connection. */
1446
+ updateConnection(): Mutation<UpdateConnectionInput, ConnectionMetadata>;
1447
+ /** Invoke deleteConnection through this connection. */
1448
+ deleteConnection(): Mutation<DeleteConnectionInput, ConnectionDeletion>;
1449
+ /** Invoke listAccountContacts through this connection. */
1450
+ listAccountContacts(): Query<ListAccountContactsInput, AccountContactsPage>;
1451
+ /** Invoke getAccountContact through this connection. */
1452
+ getAccountContact(): Query<GetAccountContactInput, AccountContactAssociation>;
1453
+ /** Invoke createAccountContact through this connection. */
1454
+ createAccountContact(): Mutation<CreateAccountContactInput, AccountContactAssociation>;
1455
+ /** Invoke updateAccountContact through this connection. */
1456
+ updateAccountContact(): Mutation<UpdateAccountContactInput, AccountContactAssociation>;
1457
+ /** Invoke deleteAccountContact through this connection. */
1458
+ deleteAccountContact(): Mutation<DeleteAccountContactInput, AccountContactDeletion>;
1459
+ /** Invoke listAccounts through this connection. */
1460
+ listAccounts(): Query<ListAccountsInput, AccountsPage>;
1461
+ /** Invoke getAccount through this connection. */
1462
+ getAccount(): Query<GetAccountInput, AccountMetadata>;
1463
+ /** Invoke createAccount through this connection. */
1464
+ createAccount(): Mutation<CreateAccountInput, AccountMetadata>;
1465
+ /** Invoke updateAccount through this connection. */
1466
+ updateAccount(): Mutation<UpdateAccountInput, AccountMetadata>;
1467
+ /** Invoke deleteAccount through this connection. */
1468
+ deleteAccount(): Mutation<DeleteAccountInput, AccountDeletion>;
1469
+ /** Invoke listContactListMemberships through this connection. */
1470
+ listContactListMemberships(): Query<ListContactListMembershipsInput, ContactListMembershipsPage>;
1471
+ /** Invoke subscribeContactToList through this connection. */
1472
+ subscribeContactToList(): Mutation<SetContactListMembershipInput, ContactListMembership>;
1473
+ /** Invoke unsubscribeContactFromList through this connection. */
1474
+ unsubscribeContactFromList(): Mutation<SetContactListMembershipInput, ContactListMembership>;
1475
+ /** Invoke listContactTags through this connection. */
1476
+ listContactTags(): Query<ListContactTagsInput, ContactTagAssociations>;
1477
+ /** Invoke applyTagToContact through this connection. */
1478
+ applyTagToContact(): Mutation<ApplyTagToContactInput, ContactTagAssociation>;
1479
+ /** Invoke removeTagFromContact through this connection. */
1480
+ removeTagFromContact(): Mutation<RemoveTagFromContactInput, ContactTagRemoval>;
1481
+ /** Invoke listDealNotes through this connection. */
1482
+ listDealNotes(): Query<ListDealNotesInput, DealNotesPage>;
1483
+ /** Invoke getDealNote through this connection. */
1484
+ getDealNote(): Query<GetDealNoteInput, DealNoteMetadata>;
1485
+ /** Invoke createDealNote through this connection. */
1486
+ createDealNote(): Mutation<CreateDealNoteInput, DealNoteMetadata>;
1487
+ /** Invoke updateDealNote through this connection. */
1488
+ updateDealNote(): Mutation<UpdateDealNoteInput, DealNoteMetadata>;
1489
+ /** Invoke listDeals through this connection. */
1490
+ listDeals(): Query<ListDealsInput, DealsPage>;
1491
+ /** Invoke getDeal through this connection. */
1492
+ getDeal(): Query<GetDealInput, DealMetadata>;
1493
+ /** Invoke createDeal through this connection. */
1494
+ createDeal(): Mutation<CreateDealInput, DealMetadata>;
1495
+ /** Invoke updateDeal through this connection. */
1496
+ updateDeal(): Mutation<UpdateDealInput, DealMetadata>;
1497
+ /** Invoke deleteDeal through this connection. */
1498
+ deleteDeal(): Mutation<DeleteDealInput, DealDeletion>;
1499
+ /** Invoke listTags through this connection. */
1500
+ listTags(): Query<ListTagsInput, TagsPage>;
1501
+ /** Invoke getTag through this connection. */
1502
+ getTag(): Query<GetTagInput, TagMetadata>;
1503
+ /** Invoke createTag through this connection. */
1504
+ createTag(): Mutation<CreateTagInput, TagMetadata>;
1505
+ /** Invoke updateTag through this connection. */
1506
+ updateTag(): Mutation<UpdateTagInput, TagMetadata>;
1507
+ /** Invoke deleteTag through this connection. */
1508
+ deleteTag(): Mutation<DeleteTagInput, TagDeletion>;
1509
+ /** Invoke listLists through this connection. */
1510
+ listLists(): Query<ListListsInput, ListsPage>;
1511
+ /** Invoke getList through this connection. */
1512
+ getList(): Query<GetListInput, ListMetadata>;
1513
+ /** Invoke listContacts through this connection. */
1514
+ listContacts(): Query<ListContactsInput, ContactsPage>;
1515
+ /** Invoke getContact through this connection. */
1516
+ getContact(): Query<GetContactInput, ContactMetadata>;
1517
+ /** Invoke syncContact through this connection. */
1518
+ syncContact(): Mutation<SyncContactInput, ContactMetadata>;
1519
+ /** Invoke updateContact through this connection. */
1520
+ updateContact(): Mutation<UpdateContactInput, ContactMetadata>;
1521
+ }
1522
+ /** Named connector connection kept outside Flow state. */
1523
+ declare class Connection<BoundOperations = Operations> {
1524
+ /** Stable provider and connection name. */
1525
+ readonly reference: ConnectionRef;
1526
+ /** Bound provider operations. */
1527
+ readonly operations: BoundOperations;
1528
+ /** Validate a reference and bind operations. */
1529
+ constructor(reference: ConnectionRef, operations: BoundOperations);
1530
+ }
1531
+
1532
+ export { type ContactTagAssociations as $, type ApplyTagToContactInput as A, type GetContactInput as B, type ContactTagAssociation as C, type DealNoteMetadata as D, type EcommerceCustomerMetadata as E, type ContactMetadata as F, type GetAccountContactInput as G, type GetDealNoteInput as H, type GetDealInput as I, type GetEcommerceCustomerInput as J, type GetEcommerceOrderProductInput as K, type EcommerceOrderProductMetadata as L, type GetEcommerceOrderInput as M, type EcommerceOrderMetadata as N, type GetListInput as O, type ListMetadata as P, type GetTagInput as Q, type ListAccountContactsInput as R, type AccountContactsPage as S, type TagMetadata as T, type ListAccountsInput as U, type AccountsPage as V, type ListConnectionsInput as W, type ConnectionsPage as X, type ListContactListMembershipsInput as Y, type ContactListMembershipsPage as Z, type ListContactTagsInput as _, Connection as a, DealMetadataSchema as a$, type ListContactsInput as a0, type ContactsPage as a1, type ListDealNotesInput as a2, type DealNotesPage as a3, type ListDealsInput as a4, type DealsPage as a5, type ListEcommerceCustomersInput as a6, type EcommerceCustomersPage as a7, type ListEcommerceOrderProductsInput as a8, type EcommerceOrderProductsPage as a9, AccountContactDeletionSchema as aA, AccountContactsPageSchema as aB, AccountDeletionSchema as aC, AccountMetadataSchema as aD, AccountsPageSchema as aE, ApplyTagToContactInputSchema as aF, ConfigSchema as aG, ConnectionDeletionSchema as aH, ConnectionMetadataSchema as aI, ConnectionsPageSchema as aJ, ContactListMembershipSchema as aK, ContactListMembershipsPageSchema as aL, ContactMetadataSchema as aM, ContactTagAssociationSchema as aN, ContactTagAssociationsSchema as aO, ContactTagRemovalSchema as aP, ContactsPageSchema as aQ, CreateAccountContactInputSchema as aR, CreateAccountInputSchema as aS, CreateConnectionInputSchema as aT, CreateDealInputSchema as aU, CreateDealNoteInputSchema as aV, CreateEcommerceCustomerInputSchema as aW, CreateTagInputSchema as aX, CredentialMaterialError as aY, type CredentialSource as aZ, DealDeletionSchema as a_, type ListEcommerceOrdersInput as aa, type EcommerceOrdersPage as ab, type ListListsInput as ac, type ListsPage as ad, type ListProductsForEcommerceOrderInput as ae, type ListTagsInput as af, type TagsPage as ag, type RemoveTagFromContactInput as ah, type ContactTagRemoval as ai, type SetContactListMembershipInput as aj, type ContactListMembership as ak, type SyncContactInput as al, type UpdateAccountContactInput as am, type UpdateAccountInput as an, type UpdateConnectionInput as ao, type UpdateContactInput as ap, type UpdateDealNoteInput as aq, type UpdateDealInput as ar, type UpdateEcommerceCustomerInput as as, type UpdateTagInput as at, type UpsertEcommerceOrderInput as au, type EcommerceOrderUpsertMetadata as av, type Operations as aw, type Config as ax, type Credentials as ay, AccountContactAssociationSchema as az, type CreateAccountContactInput as b, decodeSignedInteger as b$, DealNoteMetadataSchema as b0, DealNotesPageSchema as b1, DealsPageSchema as b2, DeleteAccountContactInputSchema as b3, DeleteAccountInputSchema as b4, DeleteConnectionInputSchema as b5, DeleteDealInputSchema as b6, DeleteEcommerceCustomerInputSchema as b7, DeleteTagInputSchema as b8, EcommerceCustomerDeletionSchema as b9, ListDealNotesInputSchema as bA, ListDealsInputSchema as bB, ListEcommerceCustomersInputSchema as bC, ListEcommerceOrderProductsInputSchema as bD, ListEcommerceOrdersInputSchema as bE, ListListsInputSchema as bF, ListMetadataSchema as bG, ListProductsForEcommerceOrderInputSchema as bH, ListTagsInputSchema as bI, ListsPageSchema as bJ, RemoveTagFromContactInputSchema as bK, SetContactListMembershipInputSchema as bL, type SignedInteger as bM, SyncContactInputSchema as bN, TagDeletionSchema as bO, TagMetadataSchema as bP, TagsPageSchema as bQ, UpdateAccountContactInputSchema as bR, UpdateAccountInputSchema as bS, UpdateConnectionInputSchema as bT, UpdateContactInputSchema as bU, UpdateDealInputSchema as bV, UpdateDealNoteInputSchema as bW, UpdateEcommerceCustomerInputSchema as bX, UpdateTagInputSchema as bY, UpsertEcommerceOrderInputSchema as bZ, decodeCredentials as b_, EcommerceCustomerMetadataSchema as ba, EcommerceCustomersPageSchema as bb, type EcommerceOrderLineItemInput as bc, EcommerceOrderLineItemInputSchema as bd, EcommerceOrderMetadataSchema as be, EcommerceOrderProductMetadataSchema as bf, EcommerceOrderProductsPageSchema as bg, EcommerceOrderUpsertMetadataSchema as bh, EcommerceOrdersPageSchema as bi, GetAccountContactInputSchema as bj, GetAccountInputSchema as bk, GetConnectionInputSchema as bl, GetContactInputSchema as bm, GetDealInputSchema as bn, GetDealNoteInputSchema as bo, GetEcommerceCustomerInputSchema as bp, GetEcommerceOrderInputSchema as bq, GetEcommerceOrderProductInputSchema as br, GetListInputSchema as bs, GetTagInputSchema as bt, ListAccountContactsInputSchema as bu, ListAccountsInputSchema as bv, ListConnectionsInputSchema as bw, ListContactListMembershipsInputSchema as bx, ListContactTagsInputSchema as by, ListContactsInputSchema as bz, type AccountContactAssociation as c, exactIntegerJSONCodec as c0, isCredentialMaterialError as c1, parseExactIntegerJSON as c2, parseJSONNumberTokens as c3, type CreateAccountInput as d, type AccountMetadata as e, type CreateConnectionInput as f, type ConnectionMetadata as g, type CreateDealNoteInput as h, type CreateDealInput as i, type DealMetadata as j, type CreateEcommerceCustomerInput as k, type CreateTagInput as l, type DeleteAccountContactInput as m, type AccountContactDeletion as n, type DeleteAccountInput as o, type AccountDeletion as p, type DeleteConnectionInput as q, type ConnectionDeletion as r, type DeleteDealInput as s, type DealDeletion as t, type DeleteEcommerceCustomerInput as u, type EcommerceCustomerDeletion as v, type DeleteTagInput as w, type TagDeletion as x, type GetAccountInput as y, type GetConnectionInput as z };