samva 0.56.7 → 0.56.8

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.
@@ -4501,7 +4501,7 @@ export declare class Mailboxes {
4501
4501
  /**
4502
4502
  * Create a draft
4503
4503
  *
4504
- * Saves a draft of a new message, or of a reply when `inReplyToMessageId` names a message in the mailbox, and returns it with status 201. A phone channel's draft holds a recipient number and text. Send it with `POST /v1/mailboxes/{id}/drafts/{draftId}/send`.
4504
+ * Saves a draft of a new message, or of a reply when `inReplyToMessageId` names a message in the mailbox, and returns it with status 201. An email reply draft defaults missing To and Subject to the reply headers. With `replyAll: true`, missing To and Cc include the other original recipients, excluding the mailbox’s own addresses. Explicit headers take precedence. A phone channel's draft holds a recipient number and text. Send it with `POST /v1/mailboxes/{id}/drafts/{draftId}/send`.
4505
4505
  */
4506
4506
  static createDraft<ThrowOnError extends boolean = false>(parameters: {
4507
4507
  id: MailboxId;
@@ -14277,7 +14277,7 @@ var Mailboxes = class {
14277
14277
  /**
14278
14278
  * Create a draft
14279
14279
  *
14280
- * Saves a draft of a new message, or of a reply when `inReplyToMessageId` names a message in the mailbox, and returns it with status 201. A phone channel's draft holds a recipient number and text. Send it with `POST /v1/mailboxes/{id}/drafts/{draftId}/send`.
14280
+ * Saves a draft of a new message, or of a reply when `inReplyToMessageId` names a message in the mailbox, and returns it with status 201. An email reply draft defaults missing To and Subject to the reply headers. With `replyAll: true`, missing To and Cc include the other original recipients, excluding the mailbox’s own addresses. Explicit headers take precedence. A phone channel's draft holds a recipient number and text. Send it with `POST /v1/mailboxes/{id}/drafts/{draftId}/send`.
14281
14281
  */
14282
14282
  static createDraft(parameters, options) {
14283
14283
  const params = buildClientParams([parameters], [{ args: [{
@@ -921,6 +921,7 @@ export type CreateMailboxEmailDraftPayload = {
921
921
  html?: string | null | undefined;
922
922
  attachments?: Array<EmailAttachment> | null | undefined;
923
923
  inReplyToMessageId?: MessageId | null | undefined;
924
+ replyAll?: boolean | null | undefined;
924
925
  };
925
926
  export type MailboxDraftPage = {
926
927
  items: Array<MailboxDraftSummary>;
@@ -6712,6 +6712,7 @@ export declare const MailboxesCreateDraftRequestJson: Schema.Union<readonly [Sch
6712
6712
  readonly size: Schema.Finite;
6713
6713
  }>>, Schema.Null]>>;
6714
6714
  readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
6715
+ readonly replyAll: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
6715
6716
  }>, Schema.Struct<{
6716
6717
  readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
6717
6718
  readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -15294,6 +15295,7 @@ export declare const MailboxesCreateDraftEndpoint: HttpApiEndpoint.HttpApiEndpoi
15294
15295
  readonly size: Schema.Finite;
15295
15296
  }>>, Schema.Null]>>;
15296
15297
  readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
15298
+ readonly replyAll: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
15297
15299
  }>, Schema.Struct<{
15298
15300
  readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
15299
15301
  readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -2829,7 +2829,7 @@ const MailboxesCreateDraftEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post
2829
2829
  MailboxesCreateDraft500,
2830
2830
  MailboxesCreateDraft504.pipe(HttpApiSchema.status(504))
2831
2831
  ]
2832
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createDraft").annotate(OpenApi.Summary, "Create a draft").annotate(OpenApi.Description, "Saves a draft of a new message, or of a reply when `inReplyToMessageId` names a message in the mailbox, and returns it with status 201. A phone channel's draft holds a recipient number and text. Send it with `POST /v1/mailboxes/{id}/drafts/{draftId}/send`."))();
2832
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createDraft").annotate(OpenApi.Summary, "Create a draft").annotate(OpenApi.Description, "Saves a draft of a new message, or of a reply when `inReplyToMessageId` names a message in the mailbox, and returns it with status 201. An email reply draft defaults missing To and Subject to the reply headers. With `replyAll: true`, missing To and Cc include the other original recipients, excluding the mailbox’s own addresses. Explicit headers take precedence. A phone channel's draft holds a recipient number and text. Send it with `POST /v1/mailboxes/{id}/drafts/{draftId}/send`."))();
2833
2833
  const MailboxesGetDraftEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("mailboxesGetDraft", "/v1/mailboxes/:id/drafts/:draftId", {
2834
2834
  params: MailboxesGetDraftPathParams,
2835
2835
  success: MailboxesGetDraft200,
@@ -3338,6 +3338,7 @@ export type CreateMailboxEmailDraftPayload = {
3338
3338
  readonly html?: string | null;
3339
3339
  readonly attachments?: ReadonlyArray<EmailAttachment> | null;
3340
3340
  readonly inReplyToMessageId?: MessageId | null;
3341
+ readonly replyAll?: boolean | null;
3341
3342
  };
3342
3343
  export declare const CreateMailboxEmailDraftPayload: Schema.Struct<{
3343
3344
  readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
@@ -3357,6 +3358,7 @@ export declare const CreateMailboxEmailDraftPayload: Schema.Struct<{
3357
3358
  readonly size: Schema.Finite;
3358
3359
  }>>, Schema.Null]>>;
3359
3360
  readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
3361
+ readonly replyAll: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
3360
3362
  }>;
3361
3363
  export type SendMailboxEmailPayload = {
3362
3364
  readonly channel?: "email" | null;
@@ -4280,6 +4282,7 @@ export declare const CreateMailboxDraftPayload: Schema.Union<readonly [Schema.St
4280
4282
  readonly size: Schema.Finite;
4281
4283
  }>>, Schema.Null]>>;
4282
4284
  readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
4285
+ readonly replyAll: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
4283
4286
  }>, Schema.Struct<{
4284
4287
  readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
4285
4288
  readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -1796,7 +1796,8 @@ const CreateMailboxEmailDraftPayload = /* @__PURE__ */ (() => Schema.Struct({
1796
1796
  text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1797
1797
  html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1798
1798
  attachments: Schema.optionalKey(Schema.Union([Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema.Null])),
1799
- inReplyToMessageId: Schema.optionalKey(Schema.Union([MessageId, Schema.Null]))
1799
+ inReplyToMessageId: Schema.optionalKey(Schema.Union([MessageId, Schema.Null])),
1800
+ replyAll: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
1800
1801
  }).annotate({ identifier: "CreateMailboxEmailDraftPayload" }))();
1801
1802
  const SendMailboxEmailPayload = /* @__PURE__ */ (() => Schema.Struct({
1802
1803
  channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
@@ -1710,6 +1710,7 @@ export declare const createDraft: (input: {
1710
1710
  readonly size: number;
1711
1711
  }[] | null | undefined;
1712
1712
  readonly inReplyToMessageId?: string | null | undefined;
1713
+ readonly replyAll?: boolean | null | undefined;
1713
1714
  readonly id: string;
1714
1715
  }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCreateDraft">;
1715
1716
  export declare const getDraft: (input: {
@@ -1,3 +1,3 @@
1
1
  // package.json
2
- var version = "0.56.7";
2
+ var version = "0.56.8";
3
3
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samva",
3
- "version": "0.56.7",
3
+ "version": "0.56.8",
4
4
  "description": "TypeScript SDK for the Samva email and WhatsApp API",
5
5
  "keywords": [
6
6
  "api-client",
@@ -269,7 +269,7 @@
269
269
  "typecheck": "slot 'effect-tsgo tsrs --noEmit && effect-tsgo tsrs --noEmit -p codegen/tsconfig.json && effect-tsgo tsrs --noEmit -p tests/tsconfig.json && effect-tsgo tsrs --noEmit --project tests/parity/tsconfig.json \"$@\"'"
270
270
  },
271
271
  "dependencies": {
272
- "@samva/webhooks": "0.56.7"
272
+ "@samva/webhooks": "0.56.8"
273
273
  },
274
274
  "devDependencies": {
275
275
  "@effect/openapi-generator": "^4.1.4",