samva 0.29.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +23 -5
- package/README.md +166 -133
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -2
- package/dist/client/client.gen.js +1 -2
- package/dist/client/core/auth.gen.js +1 -2
- package/dist/client/core/bodySerializer.gen.js +1 -2
- package/dist/client/core/params.gen.js +1 -2
- package/dist/client/core/pathSerializer.gen.js +1 -2
- package/dist/client/core/serverSentEvents.gen.js +1 -2
- package/dist/client/core/utils.gen.js +1 -2
- package/dist/client/sdk.gen.d.ts +216 -191
- package/dist/client/sdk.gen.js +2392 -1153
- package/dist/client/types.gen.d.ts +766 -376
- package/dist/client-attribution.js +1 -2
- package/dist/effect/agents.d.ts +33 -11
- package/dist/effect/agents.js +1 -2
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +1 -2
- package/dist/effect/api-keys.d.ts +8 -8
- package/dist/effect/api-keys.js +1 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +1 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +1 -2
- package/dist/effect/campaigns.d.ts +15 -16
- package/dist/effect/campaigns.js +1 -2
- package/dist/effect/categories.js +1 -2
- package/dist/effect/client.js +1 -2
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contact-groups.js +1 -2
- package/dist/effect/contacts.d.ts +23 -24
- package/dist/effect/contacts.js +1 -2
- package/dist/effect/conversations.d.ts +13 -13
- package/dist/effect/conversations.js +1 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +1 -2
- package/dist/effect/email.d.ts +61 -63
- package/dist/effect/email.js +1 -2
- package/dist/effect/events.d.ts +2 -4
- package/dist/effect/events.js +1 -2
- package/dist/effect/extension-installations.d.ts +9 -9
- package/dist/effect/extension-installations.js +1 -2
- package/dist/effect/extensions.d.ts +5 -5
- package/dist/effect/extensions.js +1 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +1 -2
- package/dist/effect/generated/agents.d.ts +264 -22
- package/dist/effect/generated/agents.js +2 -3
- package/dist/effect/generated/analytics.js +1 -2
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/attachments.js +1 -2
- package/dist/effect/generated/brands.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +160 -155
- package/dist/effect/generated/campaigns.js +7 -9
- package/dist/effect/generated/contact-events.js +1 -2
- package/dist/effect/generated/contact-groups.d.ts +26 -26
- package/dist/effect/generated/contact-groups.js +22 -19
- package/dist/effect/generated/contacts.d.ts +119 -90
- package/dist/effect/generated/contacts.js +32 -32
- package/dist/effect/generated/conversations.d.ts +22 -22
- package/dist/effect/generated/conversations.js +7 -8
- package/dist/effect/generated/custom-fields.d.ts +6 -6
- package/dist/effect/generated/custom-fields.js +3 -4
- package/dist/effect/generated/email.d.ts +38 -38
- package/dist/effect/generated/email.js +13 -14
- package/dist/effect/generated/events.d.ts +18 -9
- package/dist/effect/generated/events.js +8 -6
- package/dist/effect/generated/extension-installations.d.ts +2 -2
- package/dist/effect/generated/extension-installations.js +6 -3
- package/dist/effect/generated/extensions.js +1 -2
- package/dist/effect/generated/feedback.js +1 -2
- package/dist/effect/generated/index.d.ts +7 -5
- package/dist/effect/generated/journeys.js +1 -2
- package/dist/effect/generated/mailboxes.d.ts +44 -44
- package/dist/effect/generated/mailboxes.js +17 -18
- package/dist/effect/generated/media.js +1 -2
- package/dist/effect/generated/messages.d.ts +42 -42
- package/dist/effect/generated/messages.js +3 -4
- package/dist/effect/generated/namespaces.js +1 -2
- package/dist/effect/generated/{publication-domains.d.ts → newsletter-domains.d.ts} +304 -80
- package/dist/effect/generated/newsletter-domains.js +218 -0
- package/dist/effect/generated/{topic-issues.d.ts → newsletter-issues.d.ts} +330 -288
- package/dist/effect/generated/{topic-issues.js → newsletter-issues.js} +255 -246
- package/dist/effect/generated/newsletters.d.ts +741 -0
- package/dist/effect/generated/newsletters.js +143 -0
- package/dist/effect/generated/operations.js +1 -2
- package/dist/effect/generated/organizations.d.ts +9 -9
- package/dist/effect/generated/organizations.js +4 -5
- package/dist/effect/generated/scheduled-messages.d.ts +174 -169
- package/dist/effect/generated/scheduled-messages.js +7 -7
- package/dist/effect/generated/shared.d.ts +276 -208
- package/dist/effect/generated/shared.js +50 -36
- package/dist/effect/generated/subscriptions.js +1 -2
- package/dist/effect/generated/templates.d.ts +118 -67
- package/dist/effect/generated/templates.js +43 -35
- package/dist/effect/generated/topic-forms.d.ts +79 -19
- package/dist/effect/generated/topic-forms.js +13 -14
- package/dist/effect/generated/topics.d.ts +27 -65
- package/dist/effect/generated/topics.js +13 -20
- package/dist/effect/generated/webhooks.d.ts +9 -9
- package/dist/effect/generated/webhooks.js +4 -5
- package/dist/effect/generated/whoami.js +1 -2
- package/dist/effect/generated-metadata.d.ts +475 -70
- package/dist/effect/generated-metadata.js +642 -432
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +4 -3
- package/dist/effect/internal/client.d.ts +5 -0
- package/dist/effect/internal/client.js +9 -5
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/email-sender.js +4 -3
- package/dist/effect/internal/mailbox-events.js +1 -2
- package/dist/effect/internal/operation.d.ts +4 -15
- package/dist/effect/internal/operation.js +21 -33
- package/dist/effect/internal/send.js +2 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/journeys.js +1 -2
- package/dist/effect/mailboxes.d.ts +60 -70
- package/dist/effect/mailboxes.js +1 -2
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +1 -2
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/messages.js +1 -2
- package/dist/effect/namespaces.d.ts +8 -8
- package/dist/effect/namespaces.js +1 -2
- package/dist/effect/newsletter-domains.d.ts +71 -0
- package/dist/effect/newsletter-domains.js +18 -0
- package/dist/effect/{topic-issues.d.ts → newsletter-issues.d.ts} +11 -15
- package/dist/effect/newsletter-issues.js +32 -0
- package/dist/effect/newsletters.d.ts +22 -0
- package/dist/effect/newsletters.js +20 -0
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/operations.js +1 -2
- package/dist/effect/organizations.d.ts +8 -10
- package/dist/effect/organizations.js +1 -2
- package/dist/effect/pagination.js +1 -2
- package/dist/effect/retry.d.ts +4 -4
- package/dist/effect/retry.js +5 -6
- package/dist/effect/runtime.js +1 -2
- package/dist/effect/scheduled-messages.d.ts +5 -6
- package/dist/effect/scheduled-messages.js +1 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +1 -2
- package/dist/effect/templates.d.ts +34 -43
- package/dist/effect/templates.js +1 -2
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +1 -2
- package/dist/effect/topics.d.ts +9 -13
- package/dist/effect/topics.js +1 -2
- package/dist/effect/webhooks.d.ts +11 -11
- package/dist/effect/webhooks.js +1 -2
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +1 -2
- package/dist/index.js +2 -2
- package/dist/inline-attachments.js +1 -2
- package/dist/mailbox/dispatch.d.ts +10 -0
- package/dist/mailbox/dispatch.js +66 -0
- package/dist/mailbox/index.d.ts +17 -0
- package/dist/mailbox/index.js +30 -0
- package/dist/mailbox/test.d.ts +25 -0
- package/dist/mailbox/test.js +174 -0
- package/dist/mailbox/types.d.ts +184 -0
- package/dist/mailbox/webhook.d.ts +10 -0
- package/dist/mailbox/webhook.js +41 -0
- package/dist/mailbox-events.js +1 -2
- package/dist/normalize.js +1 -2
- package/dist/package.js +2 -3
- package/dist/promises/client.d.ts +215 -0
- package/dist/promises/client.js +324 -0
- package/dist/promises/errors.gen.js +1 -2
- package/dist/promises/index.d.ts +2 -196
- package/dist/promises/index.js +3 -295
- package/dist/promises/request.d.ts +15 -0
- package/dist/promises/request.js +75 -0
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +3 -0
- package/dist/request-policy.js +16 -0
- package/dist/service-map.d.ts +78 -47
- package/dist/service-map.js +52 -32
- package/package.json +34 -18
- package/dist/effect/generated/publication-domains.js +0 -163
- package/dist/effect/publication-domains.d.ts +0 -14
- package/dist/effect/publication-domains.js +0 -17
- package/dist/effect/topic-issues.js +0 -33
|
@@ -9,7 +9,7 @@ export declare const list: ((input?: {
|
|
|
9
9
|
readonly customFieldValue?: string | null | undefined;
|
|
10
10
|
readonly after?: string | null | undefined;
|
|
11
11
|
readonly before?: string | null | undefined;
|
|
12
|
-
} | undefined) => import("./internal/operation").OperationResult<"contactsList">) & {
|
|
12
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsList">) & {
|
|
13
13
|
readonly pages: (input?: {
|
|
14
14
|
readonly limit?: number | null | undefined;
|
|
15
15
|
readonly cursor?: string | null | undefined;
|
|
@@ -145,13 +145,13 @@ export declare const create: (input: {
|
|
|
145
145
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
146
146
|
} | null | undefined;
|
|
147
147
|
} | null | undefined;
|
|
148
|
-
}) => import("./internal/operation").OperationResult<"contactsCreate">;
|
|
148
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsCreate">;
|
|
149
149
|
export declare const find: (input?: {
|
|
150
150
|
readonly namespaceId?: string | null | undefined;
|
|
151
151
|
readonly email?: string | null | undefined;
|
|
152
152
|
readonly phone?: string | null | undefined;
|
|
153
153
|
readonly externalId?: string | null | undefined;
|
|
154
|
-
} | undefined) => import("./internal/operation").OperationResult<"contactsFind">;
|
|
154
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsFind">;
|
|
155
155
|
export declare const findOrCreate: (input: {
|
|
156
156
|
readonly namespaceId?: string | null | undefined;
|
|
157
157
|
readonly lookup: {
|
|
@@ -191,13 +191,13 @@ export declare const findOrCreate: (input: {
|
|
|
191
191
|
} | null | undefined;
|
|
192
192
|
readonly externalId?: string | null | undefined;
|
|
193
193
|
} | null | undefined;
|
|
194
|
-
}) => import("./internal/operation").OperationResult<"contactsFindOrCreate">;
|
|
194
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsFindOrCreate">;
|
|
195
195
|
export declare const get: (input: {
|
|
196
196
|
readonly id: string;
|
|
197
|
-
}) => import("./internal/operation").OperationResult<"contactsGet">;
|
|
197
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGet">;
|
|
198
198
|
export declare const remove: (input: {
|
|
199
199
|
readonly id: string;
|
|
200
|
-
}) => import("./internal/operation").OperationResult<"contactsRemove">;
|
|
200
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemove">;
|
|
201
201
|
export declare const update: (input: {
|
|
202
202
|
readonly id: string;
|
|
203
203
|
readonly name?: string | null | undefined;
|
|
@@ -260,17 +260,17 @@ export declare const update: (input: {
|
|
|
260
260
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
261
261
|
} | null | undefined;
|
|
262
262
|
} | null | undefined;
|
|
263
|
-
}) => import("./internal/operation").OperationResult<"contactsUpdate">;
|
|
263
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsUpdate">;
|
|
264
264
|
export declare const addIdentity: (input: {
|
|
265
265
|
readonly id: string;
|
|
266
266
|
readonly type: "email" | "phone";
|
|
267
267
|
readonly identifier: string;
|
|
268
268
|
readonly verified?: boolean | null | undefined;
|
|
269
|
-
}) => import("./internal/operation").OperationResult<"contactsAddIdentity">;
|
|
269
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsAddIdentity">;
|
|
270
270
|
export declare const removeIdentity: (input: {
|
|
271
271
|
readonly id: string;
|
|
272
272
|
readonly identityId: string;
|
|
273
|
-
}) => import("./internal/operation").OperationResult<"contactsRemoveIdentity">;
|
|
273
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemoveIdentity">;
|
|
274
274
|
export declare const setConsent: (input: {
|
|
275
275
|
readonly id: string;
|
|
276
276
|
readonly identityId: string;
|
|
@@ -305,18 +305,18 @@ export declare const setConsent: (input: {
|
|
|
305
305
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
306
306
|
} | null | undefined;
|
|
307
307
|
} | null | undefined;
|
|
308
|
-
}) => import("./internal/operation").OperationResult<"contactsSetConsent">;
|
|
308
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsSetConsent">;
|
|
309
309
|
export declare const addTags: (input: {
|
|
310
310
|
readonly id: string;
|
|
311
311
|
readonly tags: readonly string[];
|
|
312
|
-
}) => import("./internal/operation").OperationResult<"contactsAddTags">;
|
|
312
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsAddTags">;
|
|
313
313
|
export declare const removeTags: (input: {
|
|
314
314
|
readonly id: string;
|
|
315
315
|
readonly tags: readonly string[];
|
|
316
|
-
}) => import("./internal/operation").OperationResult<"contactsRemoveTags">;
|
|
316
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemoveTags">;
|
|
317
317
|
export declare const getEngagement: (input: {
|
|
318
318
|
readonly id: string;
|
|
319
|
-
}) => import("./internal/operation").OperationResult<"contactsGetEngagement">;
|
|
319
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetEngagement">;
|
|
320
320
|
export declare const planImport: (input: {
|
|
321
321
|
readonly preset: "beehiiv" | "kit" | "mailchimp" | "substack";
|
|
322
322
|
readonly topicId: string;
|
|
@@ -342,7 +342,7 @@ export declare const planImport: (input: {
|
|
|
342
342
|
};
|
|
343
343
|
readonly suppressionFree?: boolean | null | undefined;
|
|
344
344
|
})[];
|
|
345
|
-
}) => import("./internal/operation").OperationResult<"contactsPlanImport">;
|
|
345
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsPlanImport">;
|
|
346
346
|
export declare const startImport: (input: {
|
|
347
347
|
readonly mode: "new";
|
|
348
348
|
readonly input: {
|
|
@@ -372,27 +372,26 @@ export declare const startImport: (input: {
|
|
|
372
372
|
})[];
|
|
373
373
|
};
|
|
374
374
|
readonly planHash: string;
|
|
375
|
-
readonly idempotencyKey: string;
|
|
376
375
|
} | {
|
|
377
376
|
readonly mode: "resume";
|
|
378
377
|
readonly jobId: string;
|
|
379
378
|
readonly expectedGeneration: number;
|
|
380
|
-
}) => import("./internal/operation").OperationResult<"contactsStartImport">;
|
|
379
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsStartImport">;
|
|
381
380
|
export declare const getImportJob: (input: {
|
|
382
381
|
readonly id: string;
|
|
383
|
-
}) => import("./internal/operation").OperationResult<"contactsGetImportJob">;
|
|
382
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetImportJob">;
|
|
384
383
|
export declare const bulkDelete: (input: {
|
|
385
384
|
readonly ids: readonly string[];
|
|
386
|
-
}) => import("./internal/operation").OperationResult<"contactsBulkDelete">;
|
|
385
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkDelete">;
|
|
387
386
|
export declare const bulkUpdateTags: (input: {
|
|
388
387
|
readonly ids: readonly string[];
|
|
389
388
|
readonly operation: "add" | "remove" | "set";
|
|
390
389
|
readonly tags: readonly string[];
|
|
391
|
-
}) => import("./internal/operation").OperationResult<"contactsBulkUpdateTags">;
|
|
390
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkUpdateTags">;
|
|
392
391
|
export declare const bulkUpdateStatus: (input: {
|
|
393
392
|
readonly ids: readonly string[];
|
|
394
393
|
readonly status: "active" | "archived" | "blocked" | "paused";
|
|
395
|
-
}) => import("./internal/operation").OperationResult<"contactsBulkUpdateStatus">;
|
|
394
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkUpdateStatus">;
|
|
396
395
|
declare const exportContacts: (input?: {
|
|
397
396
|
readonly ids?: readonly string[] | null | undefined;
|
|
398
397
|
readonly format?: "csv" | "json" | null | undefined;
|
|
@@ -401,14 +400,14 @@ declare const exportContacts: (input?: {
|
|
|
401
400
|
readonly tags?: readonly string[] | null | undefined;
|
|
402
401
|
} | null | undefined;
|
|
403
402
|
readonly fields?: readonly string[] | null | undefined;
|
|
404
|
-
} | undefined) => import("./internal/operation").OperationResult<"contactsExport">;
|
|
403
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsExport">;
|
|
405
404
|
export { exportContacts as export };
|
|
406
405
|
export declare const getActivityTimeline: ((input: {
|
|
407
406
|
readonly id: string;
|
|
408
407
|
readonly limit?: number | null | undefined;
|
|
409
408
|
readonly cursor?: string | null | undefined;
|
|
410
409
|
readonly channel?: "email" | null | undefined;
|
|
411
|
-
}) => import("./internal/operation").OperationResult<"contactsGetActivityTimeline">) & {
|
|
410
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetActivityTimeline">) & {
|
|
412
411
|
readonly pages: (input: {
|
|
413
412
|
readonly id: string;
|
|
414
413
|
readonly limit?: number | null | undefined;
|
|
@@ -447,7 +446,7 @@ export declare const getGroupMemberships: ((input: {
|
|
|
447
446
|
readonly id: string;
|
|
448
447
|
readonly limit?: number | null | undefined;
|
|
449
448
|
readonly cursor?: string | null | undefined;
|
|
450
|
-
}) => import("./internal/operation").OperationResult<"contactsGetGroupMemberships">) & {
|
|
449
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetGroupMemberships">) & {
|
|
451
450
|
readonly pages: (input: {
|
|
452
451
|
readonly id: string;
|
|
453
452
|
readonly limit?: number | null | undefined;
|
|
@@ -480,7 +479,7 @@ export declare const listEvents: ((input: {
|
|
|
480
479
|
readonly id: string;
|
|
481
480
|
readonly limit?: number | null | undefined;
|
|
482
481
|
readonly cursor?: string | null | undefined;
|
|
483
|
-
}) => import("./internal/operation").OperationResult<"contactEventsListEvents">) & {
|
|
482
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactEventsListEvents">) & {
|
|
484
483
|
readonly pages: (input: {
|
|
485
484
|
readonly id: string;
|
|
486
485
|
readonly limit?: number | null | undefined;
|
package/dist/effect/contacts.js
CHANGED
|
@@ -2,7 +2,7 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
3
|
import { ContactEventsGroup } from "./generated/contact-events.js";
|
|
4
4
|
import { ContactsGroup } from "./generated/contacts.js";
|
|
5
|
-
|
|
5
|
+
// src/effect/contacts.ts
|
|
6
6
|
var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
addIdentity: () => addIdentity,
|
|
8
8
|
addTags: () => addTags,
|
|
@@ -52,7 +52,6 @@ const exportContacts = /* @__PURE__ */ make("contactsExport");
|
|
|
52
52
|
const getActivityTimeline = /* @__PURE__ */ make("contactsGetActivityTimeline");
|
|
53
53
|
const getGroupMemberships = /* @__PURE__ */ make("contactsGetGroupMemberships");
|
|
54
54
|
const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup)("contactEventsListEvents");
|
|
55
|
-
//#endregion
|
|
56
55
|
export { addIdentity, addTags, bulkDelete, bulkUpdateStatus, bulkUpdateTags, contacts_exports, create, exportContacts as export, find, findOrCreate, get, getActivityTimeline, getEngagement, getGroupMemberships, getImportJob, list, listEvents, planImport, remove, removeIdentity, removeTags, setConsent, startImport, update };
|
|
57
56
|
|
|
58
57
|
//# sourceMappingURL=contacts.js.map
|
|
@@ -6,7 +6,7 @@ export declare const list: ((input?: {
|
|
|
6
6
|
readonly contactId?: string | null | undefined;
|
|
7
7
|
readonly after?: string | null | undefined;
|
|
8
8
|
readonly before?: string | null | undefined;
|
|
9
|
-
} | undefined) => import("./internal/operation").OperationResult<"conversationsList">) & {
|
|
9
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsList">) & {
|
|
10
10
|
readonly pages: (input?: {
|
|
11
11
|
readonly limit?: number | null | undefined;
|
|
12
12
|
readonly cursor?: string | null | undefined;
|
|
@@ -190,17 +190,17 @@ export declare const create: (input: {
|
|
|
190
190
|
readonly isTest?: boolean | null | undefined;
|
|
191
191
|
readonly isInternal?: boolean | null | undefined;
|
|
192
192
|
readonly isPrivate?: boolean | null | undefined;
|
|
193
|
-
}) => import("./internal/operation").OperationResult<"conversationsCreate">;
|
|
193
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsCreate">;
|
|
194
194
|
export declare const getById: (input: {
|
|
195
195
|
readonly id: string;
|
|
196
|
-
}) => import("./internal/operation").OperationResult<"conversationsGetById">;
|
|
196
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsGetById">;
|
|
197
197
|
export declare const listMessages: ((input: {
|
|
198
198
|
readonly id: string;
|
|
199
199
|
readonly limit?: number | null | undefined;
|
|
200
200
|
readonly cursor?: string | null | undefined;
|
|
201
201
|
readonly after?: string | null | undefined;
|
|
202
202
|
readonly before?: string | null | undefined;
|
|
203
|
-
}) => import("./internal/operation").OperationResult<"conversationsListMessages">) & {
|
|
203
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsListMessages">) & {
|
|
204
204
|
readonly pages: (input: {
|
|
205
205
|
readonly id: string;
|
|
206
206
|
readonly limit?: number | null | undefined;
|
|
@@ -378,36 +378,36 @@ export declare const update: (input: {
|
|
|
378
378
|
readonly isTest?: boolean | null | undefined;
|
|
379
379
|
readonly isInternal?: boolean | null | undefined;
|
|
380
380
|
readonly isPrivate?: boolean | null | undefined;
|
|
381
|
-
}) => import("./internal/operation").OperationResult<"conversationsUpdate">;
|
|
381
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsUpdate">;
|
|
382
382
|
export declare const addTags: (input: {
|
|
383
383
|
readonly id: string;
|
|
384
384
|
readonly tags: readonly string[];
|
|
385
|
-
}) => import("./internal/operation").OperationResult<"conversationsAddTags">;
|
|
385
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddTags">;
|
|
386
386
|
export declare const removeTags: (input: {
|
|
387
387
|
readonly id: string;
|
|
388
388
|
readonly tags: readonly string[];
|
|
389
|
-
}) => import("./internal/operation").OperationResult<"conversationsRemoveTags">;
|
|
389
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveTags">;
|
|
390
390
|
export declare const addCategories: (input: {
|
|
391
391
|
readonly id: string;
|
|
392
392
|
readonly categories: readonly string[];
|
|
393
|
-
}) => import("./internal/operation").OperationResult<"conversationsAddCategories">;
|
|
393
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddCategories">;
|
|
394
394
|
export declare const removeCategories: (input: {
|
|
395
395
|
readonly id: string;
|
|
396
396
|
readonly categories: readonly string[];
|
|
397
|
-
}) => import("./internal/operation").OperationResult<"conversationsRemoveCategories">;
|
|
397
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveCategories">;
|
|
398
398
|
export declare const addChannels: (input: {
|
|
399
399
|
readonly id: string;
|
|
400
400
|
readonly channels: readonly "email"[];
|
|
401
|
-
}) => import("./internal/operation").OperationResult<"conversationsAddChannels">;
|
|
401
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddChannels">;
|
|
402
402
|
export declare const removeChannels: (input: {
|
|
403
403
|
readonly id: string;
|
|
404
404
|
readonly channels: readonly "email"[];
|
|
405
|
-
}) => import("./internal/operation").OperationResult<"conversationsRemoveChannels">;
|
|
405
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveChannels">;
|
|
406
406
|
export declare const addContacts: (input: {
|
|
407
407
|
readonly id: string;
|
|
408
408
|
readonly contactIds: readonly string[];
|
|
409
|
-
}) => import("./internal/operation").OperationResult<"conversationsAddContacts">;
|
|
409
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddContacts">;
|
|
410
410
|
export declare const removeContacts: (input: {
|
|
411
411
|
readonly id: string;
|
|
412
412
|
readonly contactIds: readonly string[];
|
|
413
|
-
}) => import("./internal/operation").OperationResult<"conversationsRemoveContacts">;
|
|
413
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveContacts">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
3
|
import { ConversationsGroup } from "./generated/conversations.js";
|
|
4
|
-
|
|
4
|
+
// src/effect/conversations.ts
|
|
5
5
|
var conversations_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
addCategories: () => addCategories,
|
|
7
7
|
addChannels: () => addChannels,
|
|
@@ -31,7 +31,6 @@ const addChannels = /* @__PURE__ */ make("conversationsAddChannels");
|
|
|
31
31
|
const removeChannels = /* @__PURE__ */ make("conversationsRemoveChannels");
|
|
32
32
|
const addContacts = /* @__PURE__ */ make("conversationsAddContacts");
|
|
33
33
|
const removeContacts = /* @__PURE__ */ make("conversationsRemoveContacts");
|
|
34
|
-
//#endregion
|
|
35
34
|
export { addCategories, addChannels, addContacts, addTags, conversations_exports, create, getById, list, listMessages, removeCategories, removeChannels, removeContacts, removeTags, update };
|
|
36
35
|
|
|
37
36
|
//# sourceMappingURL=conversations.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const list: (
|
|
1
|
+
export declare const list: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsList">;
|
|
2
2
|
export declare const create: (input: {
|
|
3
3
|
readonly key: string;
|
|
4
4
|
readonly label: string;
|
|
@@ -7,7 +7,7 @@ export declare const create: (input: {
|
|
|
7
7
|
readonly defaultValue?: string | null | undefined;
|
|
8
8
|
readonly isRequired?: boolean | null | undefined;
|
|
9
9
|
readonly sortOrder?: number | null | undefined;
|
|
10
|
-
}) => import("./internal/operation").OperationResult<"customFieldsCreate">;
|
|
10
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsCreate">;
|
|
11
11
|
export declare const update: (input: {
|
|
12
12
|
readonly id: string;
|
|
13
13
|
readonly label?: string | null | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const update: (input: {
|
|
|
15
15
|
readonly defaultValue?: string | null | undefined;
|
|
16
16
|
readonly isRequired?: boolean | null | undefined;
|
|
17
17
|
readonly sortOrder?: number | null | undefined;
|
|
18
|
-
}) => import("./internal/operation").OperationResult<"customFieldsUpdate">;
|
|
18
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsUpdate">;
|
|
19
19
|
export declare const remove: (input: {
|
|
20
20
|
readonly id: string;
|
|
21
|
-
}) => import("./internal/operation").OperationResult<"customFieldsRemove">;
|
|
21
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsRemove">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
3
|
import { CustomFieldsGroup } from "./generated/custom-fields.js";
|
|
4
|
-
|
|
4
|
+
// src/effect/custom-fields.ts
|
|
5
5
|
var custom_fields_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
create: () => create,
|
|
7
7
|
list: () => list,
|
|
@@ -13,7 +13,6 @@ const list = /* @__PURE__ */ make("customFieldsList");
|
|
|
13
13
|
const create = /* @__PURE__ */ make("customFieldsCreate");
|
|
14
14
|
const update = /* @__PURE__ */ make("customFieldsUpdate");
|
|
15
15
|
const remove = /* @__PURE__ */ make("customFieldsRemove");
|
|
16
|
-
//#endregion
|
|
17
16
|
export { create, custom_fields_exports, list, remove, update };
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=custom-fields.js.map
|