@pidgeon-ai/sdk 1.62.0 → 1.63.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 +11 -0
- package/dist/index.cjs +63 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +838 -106
- package/dist/index.d.ts +838 -106
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ 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.63.0 — grants
|
|
11
|
+
|
|
12
|
+
- `grantsTemplatesList`, `grantsTemplatesCreate`, `grantsTemplatesDelete`:
|
|
13
|
+
what an account's agents may ask a person for.
|
|
14
|
+
- `grantsCreate` asks a person (the answer carries `consent_url`) or grants
|
|
15
|
+
as the organisation; `grantsList`, `grantsGet`, `grantsRevoke`; and the
|
|
16
|
+
public `grantsStatus`.
|
|
17
|
+
- `messagesSend` takes `grant_ids`, carried as `Post-Grant`.
|
|
18
|
+
- `verifySender` takes `grants` and `subject`, and its answer gains
|
|
19
|
+
`grants`: each one valid or not, with why.
|
|
20
|
+
|
|
10
21
|
## 1.62.0 — the shared domain, said plainly
|
|
11
22
|
|
|
12
23
|
- `operator.shared` on `verifySender`'s answer: true for `pidgeon.email` and
|
package/dist/index.cjs
CHANGED
|
@@ -80,6 +80,14 @@ __export(index_exports, {
|
|
|
80
80
|
eventsSocket: () => eventsSocket,
|
|
81
81
|
eventsStream: () => eventsStream,
|
|
82
82
|
exportMail: () => exportMail,
|
|
83
|
+
grantsCreate: () => grantsCreate,
|
|
84
|
+
grantsGet: () => grantsGet,
|
|
85
|
+
grantsList: () => grantsList,
|
|
86
|
+
grantsRevoke: () => grantsRevoke,
|
|
87
|
+
grantsStatus: () => grantsStatus,
|
|
88
|
+
grantsTemplatesCreate: () => grantsTemplatesCreate,
|
|
89
|
+
grantsTemplatesDelete: () => grantsTemplatesDelete,
|
|
90
|
+
grantsTemplatesList: () => grantsTemplatesList,
|
|
83
91
|
identitiesAccessCreate: () => identitiesAccessCreate,
|
|
84
92
|
identitiesAccessDelete: () => identitiesAccessDelete,
|
|
85
93
|
identitiesAccessGet: () => identitiesAccessGet,
|
|
@@ -1059,6 +1067,10 @@ var logMonitorsDelete = (options) => (options.client ?? client).delete({
|
|
|
1059
1067
|
url: "/log/monitors/{id}",
|
|
1060
1068
|
...options
|
|
1061
1069
|
});
|
|
1070
|
+
var grantsStatus = (options) => (options.client ?? client).get({
|
|
1071
|
+
url: "/grants/{id}/status",
|
|
1072
|
+
...options
|
|
1073
|
+
});
|
|
1062
1074
|
var agentConnect = (options) => (options.client ?? client).post({
|
|
1063
1075
|
url: "/agent/connect",
|
|
1064
1076
|
...options,
|
|
@@ -1235,6 +1247,49 @@ var labelsUpdate = (options) => (options.client ?? client).patch({
|
|
|
1235
1247
|
...options.headers
|
|
1236
1248
|
}
|
|
1237
1249
|
});
|
|
1250
|
+
var grantsTemplatesList = (options) => (options?.client ?? client).get({
|
|
1251
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1252
|
+
url: "/grant-templates",
|
|
1253
|
+
...options
|
|
1254
|
+
});
|
|
1255
|
+
var grantsTemplatesCreate = (options) => (options.client ?? client).post({
|
|
1256
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1257
|
+
url: "/grant-templates",
|
|
1258
|
+
...options,
|
|
1259
|
+
headers: {
|
|
1260
|
+
"Content-Type": "application/json",
|
|
1261
|
+
...options.headers
|
|
1262
|
+
}
|
|
1263
|
+
});
|
|
1264
|
+
var grantsTemplatesDelete = (options) => (options.client ?? client).delete({
|
|
1265
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1266
|
+
url: "/grant-templates/{id}",
|
|
1267
|
+
...options
|
|
1268
|
+
});
|
|
1269
|
+
var grantsList = (options) => (options.client ?? client).get({
|
|
1270
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1271
|
+
url: "/grants",
|
|
1272
|
+
...options
|
|
1273
|
+
});
|
|
1274
|
+
var grantsCreate = (options) => (options.client ?? client).post({
|
|
1275
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1276
|
+
url: "/grants",
|
|
1277
|
+
...options,
|
|
1278
|
+
headers: {
|
|
1279
|
+
"Content-Type": "application/json",
|
|
1280
|
+
...options.headers
|
|
1281
|
+
}
|
|
1282
|
+
});
|
|
1283
|
+
var grantsRevoke = (options) => (options.client ?? client).delete({
|
|
1284
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1285
|
+
url: "/grants/{id}",
|
|
1286
|
+
...options
|
|
1287
|
+
});
|
|
1288
|
+
var grantsGet = (options) => (options.client ?? client).get({
|
|
1289
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1290
|
+
url: "/grants/{id}",
|
|
1291
|
+
...options
|
|
1292
|
+
});
|
|
1238
1293
|
var contactsList = (options) => (options?.client ?? client).get({
|
|
1239
1294
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1240
1295
|
url: "/contacts",
|
|
@@ -2071,6 +2126,14 @@ function sleep(ms, signal) {
|
|
|
2071
2126
|
eventsSocket,
|
|
2072
2127
|
eventsStream,
|
|
2073
2128
|
exportMail,
|
|
2129
|
+
grantsCreate,
|
|
2130
|
+
grantsGet,
|
|
2131
|
+
grantsList,
|
|
2132
|
+
grantsRevoke,
|
|
2133
|
+
grantsStatus,
|
|
2134
|
+
grantsTemplatesCreate,
|
|
2135
|
+
grantsTemplatesDelete,
|
|
2136
|
+
grantsTemplatesList,
|
|
2074
2137
|
identitiesAccessCreate,
|
|
2075
2138
|
identitiesAccessDelete,
|
|
2076
2139
|
identitiesAccessGet,
|