mailbreeze 0.1.0 → 0.2.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/dist/index.d.cts CHANGED
@@ -147,6 +147,10 @@ interface CancelEnrollmentResult {
147
147
  cancelledAt: string;
148
148
  }
149
149
 
150
+ /**
151
+ * Type of consent obtained from the contact (NDPR compliance).
152
+ */
153
+ type ConsentType = "explicit" | "implicit" | "legitimate_interest";
150
154
  /**
151
155
  * Parameters for creating a contact.
152
156
  */
@@ -163,6 +167,14 @@ interface CreateContactParams {
163
167
  customFields?: Record<string, unknown>;
164
168
  /** Source of the contact (e.g., 'api', 'import', 'form') */
165
169
  source?: string;
170
+ /** Type of consent obtained (NDPR compliance) */
171
+ consentType?: ConsentType;
172
+ /** Where consent was collected (e.g., 'signup_form', 'import', 'api') */
173
+ consentSource?: string;
174
+ /** When consent was given (ISO 8601 datetime) */
175
+ consentTimestamp?: string;
176
+ /** IP address from which consent was given */
177
+ consentIpAddress?: string;
166
178
  }
167
179
  /**
168
180
  * Parameters for updating a contact.
@@ -176,6 +188,14 @@ interface UpdateContactParams {
176
188
  phoneNumber?: string;
177
189
  /** Custom fields defined in the contact list */
178
190
  customFields?: Record<string, unknown>;
191
+ /** Type of consent obtained (NDPR compliance) */
192
+ consentType?: ConsentType;
193
+ /** Where consent was collected (e.g., 'signup_form', 'import', 'api') */
194
+ consentSource?: string;
195
+ /** When consent was given (ISO 8601 datetime) */
196
+ consentTimestamp?: string;
197
+ /** IP address from which consent was given */
198
+ consentIpAddress?: string;
179
199
  }
180
200
  /**
181
201
  * Contact record.
@@ -193,6 +213,14 @@ interface Contact {
193
213
  updatedAt: string;
194
214
  subscribedAt?: string;
195
215
  unsubscribedAt?: string;
216
+ /** Type of consent obtained (NDPR compliance) */
217
+ consentType?: ConsentType | null;
218
+ /** Where consent was collected */
219
+ consentSource?: string;
220
+ /** When consent was given (ISO 8601 datetime) */
221
+ consentTimestamp?: string;
222
+ /** IP address from which consent was given */
223
+ consentIpAddress?: string;
196
224
  }
197
225
  /**
198
226
  * Parameters for listing contacts.
package/dist/index.d.ts CHANGED
@@ -147,6 +147,10 @@ interface CancelEnrollmentResult {
147
147
  cancelledAt: string;
148
148
  }
149
149
 
150
+ /**
151
+ * Type of consent obtained from the contact (NDPR compliance).
152
+ */
153
+ type ConsentType = "explicit" | "implicit" | "legitimate_interest";
150
154
  /**
151
155
  * Parameters for creating a contact.
152
156
  */
@@ -163,6 +167,14 @@ interface CreateContactParams {
163
167
  customFields?: Record<string, unknown>;
164
168
  /** Source of the contact (e.g., 'api', 'import', 'form') */
165
169
  source?: string;
170
+ /** Type of consent obtained (NDPR compliance) */
171
+ consentType?: ConsentType;
172
+ /** Where consent was collected (e.g., 'signup_form', 'import', 'api') */
173
+ consentSource?: string;
174
+ /** When consent was given (ISO 8601 datetime) */
175
+ consentTimestamp?: string;
176
+ /** IP address from which consent was given */
177
+ consentIpAddress?: string;
166
178
  }
167
179
  /**
168
180
  * Parameters for updating a contact.
@@ -176,6 +188,14 @@ interface UpdateContactParams {
176
188
  phoneNumber?: string;
177
189
  /** Custom fields defined in the contact list */
178
190
  customFields?: Record<string, unknown>;
191
+ /** Type of consent obtained (NDPR compliance) */
192
+ consentType?: ConsentType;
193
+ /** Where consent was collected (e.g., 'signup_form', 'import', 'api') */
194
+ consentSource?: string;
195
+ /** When consent was given (ISO 8601 datetime) */
196
+ consentTimestamp?: string;
197
+ /** IP address from which consent was given */
198
+ consentIpAddress?: string;
179
199
  }
180
200
  /**
181
201
  * Contact record.
@@ -193,6 +213,14 @@ interface Contact {
193
213
  updatedAt: string;
194
214
  subscribedAt?: string;
195
215
  unsubscribedAt?: string;
216
+ /** Type of consent obtained (NDPR compliance) */
217
+ consentType?: ConsentType | null;
218
+ /** Where consent was collected */
219
+ consentSource?: string;
220
+ /** When consent was given (ISO 8601 datetime) */
221
+ consentTimestamp?: string;
222
+ /** IP address from which consent was given */
223
+ consentIpAddress?: string;
196
224
  }
197
225
  /**
198
226
  * Parameters for listing contacts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailbreeze",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Official JavaScript SDK for MailBreeze email platform",
5
5
  "author": "MailBreeze",
6
6
  "license": "MIT",