@pidgeon-ai/sdk 1.4.0 → 1.5.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 CHANGED
@@ -9,6 +9,29 @@ call shapes, the result shape — not to the API behind it.
9
9
 
10
10
  ## Unreleased
11
11
 
12
+ ## 1.5.0 — a container your customers live in
13
+
14
+ **Additive.** Every account has exactly one pod already, every address is in
15
+ it, and a caller who never mentions a pod cannot tell this release from the
16
+ last one.
17
+
18
+ **Added.** `podsList`, `podsCreate`, `podsGet`, `podsUpdate`, the `Pod` type,
19
+ `pod_id` on an address, and `pod_id` as a filter on `identitiesList`.
20
+
21
+ A **pod** holds addresses and domains: one of your customers, a client, or
22
+ just test kept apart from production. It has a name and an optional
23
+ `client_id` that is your own id for it, carried and never parsed.
24
+
25
+ **It is organisational and not a boundary**, and the types say so because the
26
+ risk in shipping the container before the isolation is a reader assuming the
27
+ isolation. A pod carries no sending reputation of its own — one SES tenant
28
+ per _account_, unchanged — and **a key is still a list of address ids**,
29
+ never something scoped to a pod.
30
+
31
+ **No delete.** The verb that destroys a container full of mailboxes is worth
32
+ making somebody ask for, and nothing yet moves addresses between pods, so it
33
+ would either refuse every non-empty pod or destroy mail.
34
+
12
35
  ## 1.4.0 — things the prose promised and the types did not have
13
36
 
14
37
  **Additive, and two corrections to descriptions that were wrong.**
package/dist/index.cjs CHANGED
@@ -105,6 +105,10 @@ __export(index_exports, {
105
105
  messagesUndo: () => messagesUndo,
106
106
  messagesUpdate: () => messagesUpdate,
107
107
  metricsQuery: () => metricsQuery,
108
+ podsCreate: () => podsCreate,
109
+ podsGet: () => podsGet,
110
+ podsList: () => podsList,
111
+ podsUpdate: () => podsUpdate,
108
112
  routingCreate: () => routingCreate,
109
113
  routingDelete: () => routingDelete,
110
114
  routingList: () => routingList,
@@ -1059,6 +1063,34 @@ var identitiesSuspendTenant = (options) => (options.client ?? client).post({
1059
1063
  url: "/tenants/{id}/suspend",
1060
1064
  ...options
1061
1065
  });
1066
+ var podsList = (options) => (options?.client ?? client).get({
1067
+ security: [{ scheme: "bearer", type: "http" }],
1068
+ url: "/pods",
1069
+ ...options
1070
+ });
1071
+ var podsCreate = (options) => (options.client ?? client).post({
1072
+ security: [{ scheme: "bearer", type: "http" }],
1073
+ url: "/pods",
1074
+ ...options,
1075
+ headers: {
1076
+ "Content-Type": "application/json",
1077
+ ...options.headers
1078
+ }
1079
+ });
1080
+ var podsGet = (options) => (options.client ?? client).get({
1081
+ security: [{ scheme: "bearer", type: "http" }],
1082
+ url: "/pods/{id}",
1083
+ ...options
1084
+ });
1085
+ var podsUpdate = (options) => (options.client ?? client).patch({
1086
+ security: [{ scheme: "bearer", type: "http" }],
1087
+ url: "/pods/{id}",
1088
+ ...options,
1089
+ headers: {
1090
+ "Content-Type": "application/json",
1091
+ ...options.headers
1092
+ }
1093
+ });
1062
1094
  var labelsList = (options) => (options.client ?? client).get({
1063
1095
  security: [{ scheme: "bearer", type: "http" }],
1064
1096
  url: "/labels",
@@ -1834,6 +1866,10 @@ function sleep(ms, signal) {
1834
1866
  messagesUndo,
1835
1867
  messagesUpdate,
1836
1868
  metricsQuery,
1869
+ podsCreate,
1870
+ podsGet,
1871
+ podsList,
1872
+ podsUpdate,
1837
1873
  routingCreate,
1838
1874
  routingDelete,
1839
1875
  routingList,