@pidgeon-ai/sdk 1.25.0 → 1.26.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/CHANGELOG.md +12 -0
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +233 -8
- package/dist/index.d.ts +233 -8
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ the two would publish a release for every unrelated product deploy.
|
|
|
7
7
|
Semver applies to **this package's own surface** — the exported names, the
|
|
8
8
|
call shapes, the result shape — not to the API behind it.
|
|
9
9
|
|
|
10
|
+
## 1.26.0 — provisioning and teardown by pod
|
|
11
|
+
|
|
12
|
+
`podsCreate` takes `address` (the same fields as `identitiesCreate`) and `key`
|
|
13
|
+
(`name`, `access`, `expires_at`, `test`), and makes the pod, that address in
|
|
14
|
+
it and a pod key in one call, or none of them. It answers `PodCreated`: the
|
|
15
|
+
pod with `address` and `key`, each null when not asked for. The key's `token`
|
|
16
|
+
is there once; a replay with the same `Idempotency-Key` returns the same pod,
|
|
17
|
+
address and key with `token: null`. `podsDelete` (`DELETE /pods/{id}`) revokes
|
|
18
|
+
the pod's keys and deletes its addresses and all their mail, and needs
|
|
19
|
+
`delete_addresses: 'true'` for a pod that holds any. `keysList` takes
|
|
20
|
+
`pod_id`. Additive.
|
|
21
|
+
|
|
10
22
|
## 1.25.0 — a forged `from` is held back
|
|
11
23
|
|
|
12
24
|
`messagesAwait` with `from` matches only mail that passed DMARC (or that
|
package/dist/index.cjs
CHANGED
|
@@ -111,6 +111,7 @@ __export(index_exports, {
|
|
|
111
111
|
messagesUpdate: () => messagesUpdate,
|
|
112
112
|
metricsQuery: () => metricsQuery,
|
|
113
113
|
podsCreate: () => podsCreate,
|
|
114
|
+
podsDelete: () => podsDelete,
|
|
114
115
|
podsGet: () => podsGet,
|
|
115
116
|
podsList: () => podsList,
|
|
116
117
|
podsUpdate: () => podsUpdate,
|
|
@@ -1083,6 +1084,11 @@ var podsCreate = (options) => (options.client ?? client).post({
|
|
|
1083
1084
|
...options.headers
|
|
1084
1085
|
}
|
|
1085
1086
|
});
|
|
1087
|
+
var podsDelete = (options) => (options.client ?? client).delete({
|
|
1088
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1089
|
+
url: "/pods/{id}",
|
|
1090
|
+
...options
|
|
1091
|
+
});
|
|
1086
1092
|
var podsGet = (options) => (options.client ?? client).get({
|
|
1087
1093
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1088
1094
|
url: "/pods/{id}",
|
|
@@ -1916,6 +1922,7 @@ function sleep(ms, signal) {
|
|
|
1916
1922
|
messagesUpdate,
|
|
1917
1923
|
metricsQuery,
|
|
1918
1924
|
podsCreate,
|
|
1925
|
+
podsDelete,
|
|
1919
1926
|
podsGet,
|
|
1920
1927
|
podsList,
|
|
1921
1928
|
podsUpdate,
|