@pidgeon-ai/sdk 1.31.0 → 1.31.2
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/CHANGELOG.md +15 -0
- package/README.md +1 -1
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -331,7 +331,7 @@ type ClientOptions = {
|
|
|
331
331
|
baseUrl: 'https://pidgeon.ai/api/v1' | (string & {});
|
|
332
332
|
};
|
|
333
333
|
/**
|
|
334
|
-
*
|
|
334
|
+
* An address, with the display name when one was given.
|
|
335
335
|
*/
|
|
336
336
|
type Address = {
|
|
337
337
|
email: string;
|
|
@@ -442,13 +442,13 @@ type Message = {
|
|
|
442
442
|
id: string;
|
|
443
443
|
thread_id: string;
|
|
444
444
|
/**
|
|
445
|
-
* The
|
|
445
|
+
* The address this message is in, as an id. What `POST /attachments` and the other endpoints that take an `identity_id` expect — `identity` below is the same address as text.
|
|
446
446
|
*/
|
|
447
447
|
identity_id: string | null;
|
|
448
448
|
identity: string | null;
|
|
449
449
|
direction: string;
|
|
450
450
|
/**
|
|
451
|
-
*
|
|
451
|
+
* An address, with the display name when one was given.
|
|
452
452
|
*/
|
|
453
453
|
from: {
|
|
454
454
|
email: string;
|
|
@@ -662,13 +662,13 @@ type AwaitedMessage = {
|
|
|
662
662
|
id: string;
|
|
663
663
|
thread_id: string;
|
|
664
664
|
/**
|
|
665
|
-
* The
|
|
665
|
+
* The address this message is in, as an id. What `POST /attachments` and the other endpoints that take an `identity_id` expect — `identity` below is the same address as text.
|
|
666
666
|
*/
|
|
667
667
|
identity_id: string | null;
|
|
668
668
|
identity: string | null;
|
|
669
669
|
direction: string;
|
|
670
670
|
/**
|
|
671
|
-
*
|
|
671
|
+
* An address, with the display name when one was given.
|
|
672
672
|
*/
|
|
673
673
|
from: {
|
|
674
674
|
email: string;
|
|
@@ -1180,7 +1180,7 @@ type EventResponse = {
|
|
|
1180
1180
|
updated_at: string;
|
|
1181
1181
|
};
|
|
1182
1182
|
/**
|
|
1183
|
-
* Which of the
|
|
1183
|
+
* Which of the inbox’s addresses answered.
|
|
1184
1184
|
*/
|
|
1185
1185
|
attendee: string;
|
|
1186
1186
|
status: string;
|
|
@@ -1192,7 +1192,7 @@ type EventResponse = {
|
|
|
1192
1192
|
type InvitationResponse = {
|
|
1193
1193
|
status: string;
|
|
1194
1194
|
/**
|
|
1195
|
-
* Which of the
|
|
1195
|
+
* Which of the inbox’s addresses answered.
|
|
1196
1196
|
*/
|
|
1197
1197
|
attendee: string;
|
|
1198
1198
|
/**
|
|
@@ -1816,7 +1816,7 @@ type SearchHit = {
|
|
|
1816
1816
|
*/
|
|
1817
1817
|
folder: 'inbox' | 'starred' | 'sent' | 'drafts' | 'scheduled' | 'snoozed' | 'archive' | 'spam' | 'trash' | 'unauthenticated';
|
|
1818
1818
|
/**
|
|
1819
|
-
* The
|
|
1819
|
+
* The inbox it was found in, as the address. `identity_id` is the same row.
|
|
1820
1820
|
*/
|
|
1821
1821
|
identity: string | null;
|
|
1822
1822
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -331,7 +331,7 @@ type ClientOptions = {
|
|
|
331
331
|
baseUrl: 'https://pidgeon.ai/api/v1' | (string & {});
|
|
332
332
|
};
|
|
333
333
|
/**
|
|
334
|
-
*
|
|
334
|
+
* An address, with the display name when one was given.
|
|
335
335
|
*/
|
|
336
336
|
type Address = {
|
|
337
337
|
email: string;
|
|
@@ -442,13 +442,13 @@ type Message = {
|
|
|
442
442
|
id: string;
|
|
443
443
|
thread_id: string;
|
|
444
444
|
/**
|
|
445
|
-
* The
|
|
445
|
+
* The address this message is in, as an id. What `POST /attachments` and the other endpoints that take an `identity_id` expect — `identity` below is the same address as text.
|
|
446
446
|
*/
|
|
447
447
|
identity_id: string | null;
|
|
448
448
|
identity: string | null;
|
|
449
449
|
direction: string;
|
|
450
450
|
/**
|
|
451
|
-
*
|
|
451
|
+
* An address, with the display name when one was given.
|
|
452
452
|
*/
|
|
453
453
|
from: {
|
|
454
454
|
email: string;
|
|
@@ -662,13 +662,13 @@ type AwaitedMessage = {
|
|
|
662
662
|
id: string;
|
|
663
663
|
thread_id: string;
|
|
664
664
|
/**
|
|
665
|
-
* The
|
|
665
|
+
* The address this message is in, as an id. What `POST /attachments` and the other endpoints that take an `identity_id` expect — `identity` below is the same address as text.
|
|
666
666
|
*/
|
|
667
667
|
identity_id: string | null;
|
|
668
668
|
identity: string | null;
|
|
669
669
|
direction: string;
|
|
670
670
|
/**
|
|
671
|
-
*
|
|
671
|
+
* An address, with the display name when one was given.
|
|
672
672
|
*/
|
|
673
673
|
from: {
|
|
674
674
|
email: string;
|
|
@@ -1180,7 +1180,7 @@ type EventResponse = {
|
|
|
1180
1180
|
updated_at: string;
|
|
1181
1181
|
};
|
|
1182
1182
|
/**
|
|
1183
|
-
* Which of the
|
|
1183
|
+
* Which of the inbox’s addresses answered.
|
|
1184
1184
|
*/
|
|
1185
1185
|
attendee: string;
|
|
1186
1186
|
status: string;
|
|
@@ -1192,7 +1192,7 @@ type EventResponse = {
|
|
|
1192
1192
|
type InvitationResponse = {
|
|
1193
1193
|
status: string;
|
|
1194
1194
|
/**
|
|
1195
|
-
* Which of the
|
|
1195
|
+
* Which of the inbox’s addresses answered.
|
|
1196
1196
|
*/
|
|
1197
1197
|
attendee: string;
|
|
1198
1198
|
/**
|
|
@@ -1816,7 +1816,7 @@ type SearchHit = {
|
|
|
1816
1816
|
*/
|
|
1817
1817
|
folder: 'inbox' | 'starred' | 'sent' | 'drafts' | 'scheduled' | 'snoozed' | 'archive' | 'spam' | 'trash' | 'unauthenticated';
|
|
1818
1818
|
/**
|
|
1819
|
-
* The
|
|
1819
|
+
* The inbox it was found in, as the address. `identity_id` is the same row.
|
|
1820
1820
|
*/
|
|
1821
1821
|
identity: string | null;
|
|
1822
1822
|
};
|
package/dist/index.js
CHANGED
|
@@ -799,9 +799,19 @@ var createClient = (config = {}) => {
|
|
|
799
799
|
};
|
|
800
800
|
};
|
|
801
801
|
|
|
802
|
+
// src/runtime-config.ts
|
|
803
|
+
var USER_AGENT = "@pidgeon-ai/sdk";
|
|
804
|
+
var createClientConfig = (config) => ({
|
|
805
|
+
...config,
|
|
806
|
+
...typeof window === "undefined" ? { headers: { "User-Agent": USER_AGENT, ...plain(config?.headers) } } : {}
|
|
807
|
+
});
|
|
808
|
+
function plain(headers) {
|
|
809
|
+
return headers && typeof headers === "object" && !(headers instanceof Headers) ? headers : {};
|
|
810
|
+
}
|
|
811
|
+
|
|
802
812
|
// src/generated/client.gen.ts
|
|
803
813
|
var client = createClient(
|
|
804
|
-
createConfig({ baseUrl: "https://pidgeon.ai/api/v1" })
|
|
814
|
+
createClientConfig(createConfig({ baseUrl: "https://pidgeon.ai/api/v1" }))
|
|
805
815
|
);
|
|
806
816
|
|
|
807
817
|
// src/generated/sdk.gen.ts
|