@pidgeon-ai/sdk 1.31.2 → 1.31.4

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
@@ -1218,7 +1218,7 @@ type SetupLink = {
1218
1218
  width: number | null;
1219
1219
  height: number | null;
1220
1220
  /**
1221
- * `provider` — that zone’s DNS provider does not support Domain Connect, which is the common case. `unconfigured` — it does, and this deployment is not registered as a service provider, which is ours to fix. Null when `supported` is true.
1221
+ * `provider` — that zone’s DNS provider does not support Domain Connect, which is the common case, or has not approved Pidgeon’s template yet. `unconfigured` — it does, and this deployment has no key to sign the request with, which is ours to fix. Null when `supported` is true.
1222
1222
  */
1223
1223
  reason: 'provider' | 'unconfigured' | null;
1224
1224
  };
@@ -4208,7 +4208,7 @@ type MessagesAwaitData = {
4208
4208
  */
4209
4209
  include_unauthenticated?: 'true' | 'false';
4210
4210
  /**
4211
- * Only messages that arrived after this: the `cursor` a previous call returned, or `now`. Without it, the wait first looks back 2 minutes and returns the newest matching message from then, so a code that beat you to the call is not missed.
4211
+ * Only messages that arrived after this: the `cursor` a previous call returned, or `now`. Without it, the wait first looks back 2 minutes and returns the newest matching message from then, so a code that beat you to the call is not missed. To wait for mail you are about to cause, take a cursor with `now` first.
4212
4212
  */
4213
4213
  after?: 'now' | string;
4214
4214
  timeout?: number;
@@ -9155,7 +9155,7 @@ declare const messagesUndo: <ThrowOnError extends boolean = false>(options: Opti
9155
9155
  /**
9156
9156
  * Wait for the next message
9157
9157
  *
9158
- * Holds the request open until a message matching the filters arrives at the address, or `timeout` seconds pass — one call where you would otherwise poll. The message carries `extracted`: verification codes and links, most likely first. Without `after`, it first looks back 2 minutes and returns the newest matching message from then, because a code often lands before the call is made; narrow it with `from`, `subject_contains` or `has_code` so an earlier email is not taken for the one you want, or pass `after=now` to wait only for new mail. Pass the returned `cursor` as `after` on the next call so nothing arriving between calls is missed. Answers 200 with `message: null` and `timed_out: true` when nothing came. A matching message filed as spam is not returned unless you pass `include_spam=true`; it is counted in `held_back`, with its id, so a timeout never hides mail that arrived. A message matches `from` only when it passed DMARC, because anybody can write a `From:`; one that did not is counted in `held_back.unauthenticated`, and `include_unauthenticated=true` returns it.
9158
+ * Holds the request open until a message matching the filters arrives at the address, or `timeout` seconds pass — one call where you would otherwise poll. The message carries `extracted`: verification codes and links, most likely first. To wait for mail you are about to cause, take a cursor first: call with `after=now&timeout=1`, keep the `cursor`, submit the form or send, then wait with that cursor as `after`, so the mail cannot arrive before the wait starts. Without `after`, it first looks back 2 minutes and returns the newest matching message from then, because a code often lands before the call is made; narrow it with `from`, `subject_contains` or `has_code` so an earlier email is not taken for the one you want, or pass `after=now` to wait only for new mail. Pass the returned `cursor` as `after` on the next call so nothing arriving between calls is missed. Answers 200 with `message: null` and `timed_out: true` when nothing came. A matching message filed as spam is not returned unless you pass `include_spam=true`; it is counted in `held_back`, with its id, so a timeout never hides mail that arrived. A message matches `from` only when it passed DMARC, because anybody can write a `From:`; one that did not is counted in `held_back.unauthenticated`, and `include_unauthenticated=true` returns it.
9159
9159
  */
9160
9160
  declare const messagesAwait: <ThrowOnError extends boolean = false>(options: Options<MessagesAwaitData, ThrowOnError>) => RequestResult<MessagesAwaitResponses, MessagesAwaitErrors, ThrowOnError>;
9161
9161
  /**
package/dist/index.d.ts CHANGED
@@ -1218,7 +1218,7 @@ type SetupLink = {
1218
1218
  width: number | null;
1219
1219
  height: number | null;
1220
1220
  /**
1221
- * `provider` — that zone’s DNS provider does not support Domain Connect, which is the common case. `unconfigured` — it does, and this deployment is not registered as a service provider, which is ours to fix. Null when `supported` is true.
1221
+ * `provider` — that zone’s DNS provider does not support Domain Connect, which is the common case, or has not approved Pidgeon’s template yet. `unconfigured` — it does, and this deployment has no key to sign the request with, which is ours to fix. Null when `supported` is true.
1222
1222
  */
1223
1223
  reason: 'provider' | 'unconfigured' | null;
1224
1224
  };
@@ -4208,7 +4208,7 @@ type MessagesAwaitData = {
4208
4208
  */
4209
4209
  include_unauthenticated?: 'true' | 'false';
4210
4210
  /**
4211
- * Only messages that arrived after this: the `cursor` a previous call returned, or `now`. Without it, the wait first looks back 2 minutes and returns the newest matching message from then, so a code that beat you to the call is not missed.
4211
+ * Only messages that arrived after this: the `cursor` a previous call returned, or `now`. Without it, the wait first looks back 2 minutes and returns the newest matching message from then, so a code that beat you to the call is not missed. To wait for mail you are about to cause, take a cursor with `now` first.
4212
4212
  */
4213
4213
  after?: 'now' | string;
4214
4214
  timeout?: number;
@@ -9155,7 +9155,7 @@ declare const messagesUndo: <ThrowOnError extends boolean = false>(options: Opti
9155
9155
  /**
9156
9156
  * Wait for the next message
9157
9157
  *
9158
- * Holds the request open until a message matching the filters arrives at the address, or `timeout` seconds pass — one call where you would otherwise poll. The message carries `extracted`: verification codes and links, most likely first. Without `after`, it first looks back 2 minutes and returns the newest matching message from then, because a code often lands before the call is made; narrow it with `from`, `subject_contains` or `has_code` so an earlier email is not taken for the one you want, or pass `after=now` to wait only for new mail. Pass the returned `cursor` as `after` on the next call so nothing arriving between calls is missed. Answers 200 with `message: null` and `timed_out: true` when nothing came. A matching message filed as spam is not returned unless you pass `include_spam=true`; it is counted in `held_back`, with its id, so a timeout never hides mail that arrived. A message matches `from` only when it passed DMARC, because anybody can write a `From:`; one that did not is counted in `held_back.unauthenticated`, and `include_unauthenticated=true` returns it.
9158
+ * Holds the request open until a message matching the filters arrives at the address, or `timeout` seconds pass — one call where you would otherwise poll. The message carries `extracted`: verification codes and links, most likely first. To wait for mail you are about to cause, take a cursor first: call with `after=now&timeout=1`, keep the `cursor`, submit the form or send, then wait with that cursor as `after`, so the mail cannot arrive before the wait starts. Without `after`, it first looks back 2 minutes and returns the newest matching message from then, because a code often lands before the call is made; narrow it with `from`, `subject_contains` or `has_code` so an earlier email is not taken for the one you want, or pass `after=now` to wait only for new mail. Pass the returned `cursor` as `after` on the next call so nothing arriving between calls is missed. Answers 200 with `message: null` and `timed_out: true` when nothing came. A matching message filed as spam is not returned unless you pass `include_spam=true`; it is counted in `held_back`, with its id, so a timeout never hides mail that arrived. A message matches `from` only when it passed DMARC, because anybody can write a `From:`; one that did not is counted in `held_back.unauthenticated`, and `include_unauthenticated=true` returns it.
9159
9159
  */
9160
9160
  declare const messagesAwait: <ThrowOnError extends boolean = false>(options: Options<MessagesAwaitData, ThrowOnError>) => RequestResult<MessagesAwaitResponses, MessagesAwaitErrors, ThrowOnError>;
9161
9161
  /**