@pilot-status/sdk 0.25.1 → 0.27.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 +40 -0
- package/README.md +143 -6
- package/dist/client.d.ts +3 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/api-keys.d.ts +52 -4
- package/dist/resources/api-keys.d.ts.map +1 -1
- package/dist/resources/api-keys.js +68 -3
- package/dist/resources/api-keys.js.map +1 -1
- package/dist/resources/flows.d.ts +56 -1
- package/dist/resources/flows.d.ts.map +1 -1
- package/dist/resources/flows.js +93 -0
- package/dist/resources/flows.js.map +1 -1
- package/dist/resources/knowledge.d.ts +14 -0
- package/dist/resources/knowledge.d.ts.map +1 -0
- package/dist/resources/knowledge.js +27 -0
- package/dist/resources/knowledge.js.map +1 -0
- package/dist/resources/messages.d.ts +23 -1
- package/dist/resources/messages.d.ts.map +1 -1
- package/dist/resources/messages.js +34 -0
- package/dist/resources/messages.js.map +1 -1
- package/dist/resources/numbers.d.ts +36 -1
- package/dist/resources/numbers.d.ts.map +1 -1
- package/dist/resources/numbers.js +67 -0
- package/dist/resources/numbers.js.map +1 -1
- package/dist/resources/phone-lines.d.ts +67 -1
- package/dist/resources/phone-lines.d.ts.map +1 -1
- package/dist/resources/phone-lines.js +116 -0
- package/dist/resources/phone-lines.js.map +1 -1
- package/dist/resources/workspace-webhooks.d.ts +17 -1
- package/dist/resources/workspace-webhooks.d.ts.map +1 -1
- package/dist/resources/workspace-webhooks.js +21 -0
- package/dist/resources/workspace-webhooks.js.map +1 -1
- package/dist/resources/workspace.d.ts +47 -9
- package/dist/resources/workspace.d.ts.map +1 -1
- package/dist/resources/workspace.js +81 -8
- package/dist/resources/workspace.js.map +1 -1
- package/dist/types.d.ts +334 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/user-agent.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/webhooks/parse.d.ts.map +1 -1
- package/dist/webhooks/parse.js +35 -0
- package/dist/webhooks/parse.js.map +1 -1
- package/dist/webhooks/types.d.ts +43 -1
- package/dist/webhooks/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@pilot-status/sdk`.
|
|
4
4
|
|
|
5
|
+
## 0.27.0 - 2026-11-27
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `knowledge.search({ query, type?, language?, limit? })` → POST `/v1/knowledge/search`: searches the API docs, the blog and the
|
|
10
|
+
public site pages (pt-BR, en, es) and returns `{ results: [{ title, url, type, language, updated, snippet, score }] }`
|
|
11
|
+
(types `KnowledgeSearchParams`, `KnowledgeSearchResult`). Any key; `type` is `doc` | `blog` | `page`; `limit` 1–20, default 5.
|
|
12
|
+
- Named number keys: `apiKeys.listNumberKeys/createNumberKey/revokeNumberKey` → GET/POST `/v1/numbers/{numberId}/api-keys`, DELETE
|
|
13
|
+
`/v1/numbers/{numberId}/api-keys/{keyId}` (raw key shown once; max 20 per number incl. default;
|
|
14
|
+
the default key cannot be revoked here: 409 `primary_key_use_regenerate`). Regenerating a number
|
|
15
|
+
key now revokes ONLY the default number key; named keys survive.
|
|
16
|
+
- `workspace.webhooks.rotateSecret(id)` (POST `/v1/workspace/webhooks/{id}/rotate-secret`, no body) →
|
|
17
|
+
`{ id, hasSecret: true, secret }` (type `WorkspaceWebhookRotateSecretResult`). The new `plwh_` secret is
|
|
18
|
+
returned once and the old one stops working immediately. Works with an account key + `workspaceId` /
|
|
19
|
+
`withWorkspace` (`x-workspace-id`).
|
|
20
|
+
- Methods for the remaining `/v1` endpoints:
|
|
21
|
+
- `messages.unreadCounts()` (GET `/v1/messages/unread/counts`), `messages.resend(id)` (POST `/v1/messages/{id}/resend`).
|
|
22
|
+
- `apiKeys.regenerate()` (POST `/v1/api-keys/regenerate`) — **revokes the calling key**.
|
|
23
|
+
- `workspace.members.invite/update/remove/resend/updateNumbers` (`/v1/workspace/members*`). Member writes
|
|
24
|
+
were previously documented as OAuth-only; the backend accepts an account key (`ps_account_`), classic
|
|
25
|
+
`ps_` keys get 403 `MACHINE_CREDENTIAL_CANNOT_MANAGE_MEMBERS`.
|
|
26
|
+
- `flows.getJson`, `flows.preview`, `flows.listTraces`, `flows.getEndpoint`/`setEndpoint`/`registerEndpoint`,
|
|
27
|
+
`flows.syncFromMeta`.
|
|
28
|
+
- `phoneLines.list/get/available/buy/cancel` and `listActivations/createActivation/getActivation/cancelActivation`
|
|
29
|
+
(`buy` charges and requires an idempotency key; `cancel` has no refund).
|
|
30
|
+
- `numbers.contacts.block/unblock` (POST/DELETE `/v1/numbers/{id}/contacts/{phone}/block`, Meta + QR Code) and
|
|
31
|
+
`numbers.chats.archive/unarchive` (POST/DELETE `/v1/numbers/{id}/chats/{jid}/archive`, QR Code only: official
|
|
32
|
+
numbers get 422 `NOT_AVAILABLE_FOR_OFFICIAL_NUMBERS`).
|
|
33
|
+
|
|
34
|
+
## 0.26.0 - 2026-11-24
|
|
35
|
+
|
|
36
|
+
### Added
|
|
37
|
+
|
|
38
|
+
- Webhook events `chat.archived`, `chat.unarchived`, `contact.blocked` and `contact.unblocked`
|
|
39
|
+
(`ChatArchivedEvent`, `ChatUnarchivedEvent`, `ContactBlockedEvent`, `ContactUnblockedEvent`,
|
|
40
|
+
shared data `ChatContactStateEventData`): `{ id, event, data: { numberId, numberPhone,
|
|
41
|
+
provider, jid, phone, isGroup, occurredAt, source } }`. `chat.*` is QR Code only;
|
|
42
|
+
`contact.*` fires on QR Code numbers and on official Meta numbers (Meta: via the API only).
|
|
43
|
+
Parsed strictly and listed in `CUSTOMER_WEBHOOK_EVENTS`.
|
|
44
|
+
|
|
5
45
|
## 0.25.1 - 2026-11-11
|
|
6
46
|
|
|
7
47
|
### Added
|
package/README.md
CHANGED
|
@@ -134,6 +134,24 @@ for (const k of keys) {
|
|
|
134
134
|
// NUMBER-scoped: that number's masked keys
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
// Rotate THE key of the calling scope (POST /v1/api-keys/regenerate).
|
|
139
|
+
// ⛔ It REVOKES THE KEY YOU ARE CALLING WITH: the old key stops working immediately.
|
|
140
|
+
// Store `fresh.key` (shown once) and build a new client with it.
|
|
141
|
+
const fresh = await client.apiKeys.regenerate();
|
|
142
|
+
const next = new PilotStatusClient({ apiKey: fresh.key });
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
> **Rotating without downtime.** `regenerateNumber` revokes ONLY the number's default key, immediately
|
|
147
|
+
> (named number keys survive; `regenerate` revokes the calling key). Zero-downtime: create a named number
|
|
148
|
+
> key, switch to it, then regenerate/revoke the old one.
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
// Named number keys (workspace key, or account key + workspaceId; number keys get 403).
|
|
152
|
+
const { data } = await client.apiKeys.listNumberKeys("wn_1");
|
|
153
|
+
const { apiKey } = await client.apiKeys.createNumberKey("wn_1", { name: "ci" }); // apiKey.key shown once
|
|
154
|
+
await client.apiKeys.revokeNumberKey("wn_1", apiKey.id); // 409 primary_key_use_regenerate for the default key
|
|
137
155
|
```
|
|
138
156
|
|
|
139
157
|
### Workspace
|
|
@@ -152,6 +170,34 @@ await client.workspace.updateSettings({ mainTimezone: "America/Sao_Paulo", mainL
|
|
|
152
170
|
// the currency and the billing mode do not change through the API
|
|
153
171
|
```
|
|
154
172
|
|
|
173
|
+
#### Managing members (account key only)
|
|
174
|
+
|
|
175
|
+
Member writes need a USER on the wire: use an **account key** (`ps_account_…` +
|
|
176
|
+
`workspaceId`). Every classic `ps_` key gets `403 MACHINE_CREDENTIAL_CANNOT_MANAGE_MEMBERS`;
|
|
177
|
+
the user's live role decides the rest.
|
|
178
|
+
|
|
179
|
+
```ts
|
|
180
|
+
const account = new PilotStatusClient({ apiKey: "ps_account_...", workspaceId: "ws_1" });
|
|
181
|
+
|
|
182
|
+
// Invite (role defaults to AGENT). sendEmail:false → no email, inviteUrl returned ONCE
|
|
183
|
+
const { member, inviteUrl } = await account.workspace.members.invite({
|
|
184
|
+
email: "ana@acme.com.br",
|
|
185
|
+
role: "AGENT",
|
|
186
|
+
allowedNumberIds: ["wn_1"], // [] or omitted = every number
|
|
187
|
+
sendEmail: false,
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
// Lost the link? Resend ALWAYS rotates the token (the old link dies)
|
|
191
|
+
await account.workspace.members.resend(member.id, { sendEmail: false });
|
|
192
|
+
|
|
193
|
+
await account.workspace.members.update(member.id, { role: "ADMIN" }); // OWNER only
|
|
194
|
+
await account.workspace.members.updateNumbers(member.id, ["wn_1", "wn_2"]); // [] = all numbers
|
|
195
|
+
|
|
196
|
+
// Remove an active member / revoke a pending invite. A member who created live API keys
|
|
197
|
+
// stops with 409 MEMBER_HAS_API_KEYS until you say what to do with them:
|
|
198
|
+
await account.workspace.members.remove(member.id, { apiKeyAction: "revoke" }); // or "keep"
|
|
199
|
+
```
|
|
200
|
+
|
|
155
201
|
#### Archive and ownership transfer (OWNER, account key only — 0.23.0)
|
|
156
202
|
|
|
157
203
|
Both need the OWNER on the wire: use the owner's **account key** with `workspaceId`
|
|
@@ -172,11 +218,8 @@ const { name } = await owner.workspace.get();
|
|
|
172
218
|
await owner.workspace.archive(name!); // { archived: true, archivedAt } — 400 CONFIRMATION_MISMATCH otherwise
|
|
173
219
|
```
|
|
174
220
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
`x-api-key` request has none. Those calls answer
|
|
178
|
-
`403 MACHINE_CREDENTIAL_CANNOT_MANAGE_MEMBERS` for any `ps_` key, so this SDK
|
|
179
|
-
deliberately does not expose them — use the dashboard or an OAuth connector.
|
|
221
|
+
Member writes (invite, resend, role, numbers, removal) are under *Managing members*
|
|
222
|
+
above: they need an account key, never a classic `ps_` key.
|
|
180
223
|
|
|
181
224
|
### Numbers (WhatsApp)
|
|
182
225
|
|
|
@@ -328,6 +371,23 @@ for (const n of blocked) {
|
|
|
328
371
|
|
|
329
372
|
The SDK never retries a POST on its own, so `pay()` sends exactly one request.
|
|
330
373
|
|
|
374
|
+
#### Blocking contacts and archiving chats
|
|
375
|
+
|
|
376
|
+
```ts
|
|
377
|
+
// Block / unblock — QR (Evolution GO) AND official (Meta) numbers. Needs contacts:manage.
|
|
378
|
+
await client.numbers.contacts.block("wn_1", "+5511999998888"); // { success, blocked: true, ... }
|
|
379
|
+
await client.numbers.contacts.unblock("wn_1", "+5511999998888");
|
|
380
|
+
|
|
381
|
+
// Archive / unarchive — QR (Evolution GO) numbers ONLY. `jid` is a phone or a full jid.
|
|
382
|
+
await client.numbers.chats.archive("wn_1", "5511999998888");
|
|
383
|
+
await client.numbers.chats.unarchive("wn_1", "120363000000000000@g.us");
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
On an official (Meta) number `archive()`/`unarchive()` throw `UnprocessableEntityError`
|
|
387
|
+
(422 `NOT_AVAILABLE_FOR_OFFICIAL_NUMBERS`: Meta has no archive API); an Evolution V2 number
|
|
388
|
+
gets 422 `FEATURE_NOT_SUPPORTED`. Path segments are URL-encoded by the SDK. Webhooks receive
|
|
389
|
+
`contact.blocked` / `contact.unblocked` / `chat.archived` / `chat.unarchived`.
|
|
390
|
+
|
|
331
391
|
## Messages, conversations and the 24h window
|
|
332
392
|
|
|
333
393
|
```ts
|
|
@@ -337,6 +397,14 @@ const log = await client.messages.list({ status: "FAILED,SENT", direction: "out"
|
|
|
337
397
|
// Unread inbound — `total` is the real count, NOT messages.length
|
|
338
398
|
const { total, messages } = await client.messages.unread();
|
|
339
399
|
|
|
400
|
+
// Unread count PER NUMBER in one call (omit the ids = every number the key reaches; max 100)
|
|
401
|
+
const counts = await client.messages.unreadCounts({ whatsappNumberIds: ["wn_1", "wn_2"] });
|
|
402
|
+
// { byNumber: [{ whatsappNumberId, number, displayName, total }], total }
|
|
403
|
+
|
|
404
|
+
// Resend a FAILED or CANCELED message (number-scoped key) — a NEW message, 202
|
|
405
|
+
const resent = await client.messages.resend("msg_123"); // { id, status, ..., originalMessageId }
|
|
406
|
+
// any other status is 409; a second resend of the same message within 120 s is refused
|
|
407
|
+
|
|
340
408
|
// Read receipts and typing indicators, without sending a message
|
|
341
409
|
await client.messages.markRead("+5511999999999");
|
|
342
410
|
await client.messages.typing({ to: "+5511999999999", state: "typing" });
|
|
@@ -459,6 +527,32 @@ const { released, circuitOpen } = await client.webhooks.reactivate(hook.id);
|
|
|
459
527
|
`deliveryTimeoutMs` (per-destination delivery deadline) is writable by platform staff
|
|
460
528
|
only — anyone else gets `403 DELIVERY_TIMEOUT_STAFF_ONLY` — so the SDK does not send it.
|
|
461
529
|
|
|
530
|
+
## WhatsApp Flows: preview, JSON, endpoint, traces and sync
|
|
531
|
+
|
|
532
|
+
Number-scoped key of a Meta number; `{id}` is the LOCAL id from `client.flows.list()`.
|
|
533
|
+
|
|
534
|
+
```ts
|
|
535
|
+
// Read the Flow JSON back (flows:read); uploadJson() is the write
|
|
536
|
+
const { flowJson } = await client.flows.getJson(flowId);
|
|
537
|
+
|
|
538
|
+
// A preview link (works on a DRAFT; flows:manage).
|
|
539
|
+
// ⛔ The link needs NO login — anyone holding it sees the Flow; and for a data_exchange
|
|
540
|
+
// Flow it drives your REAL endpoint. invalidate:true kills the previous link.
|
|
541
|
+
const { previewUrl, expiresAt } = await client.flows.preview(flowId, { invalidate: true });
|
|
542
|
+
|
|
543
|
+
// data_exchange wiring (flows:manage)
|
|
544
|
+
const state = await client.flows.getEndpoint(flowId); // { url, hasSecret, endpointUri, metaEndpointUri, drift, warnings }
|
|
545
|
+
const saved = await client.flows.setEndpoint(flowId, { url: "https://api.acme.com/flow", rotateSecret: true });
|
|
546
|
+
// saved.secret = the HMAC secret (store it). url:null removes the destination. This does NOT touch Meta:
|
|
547
|
+
await client.flows.registerEndpoint(flowId); // points the Flow at our proxy ON META ({ confirmOverwrite: true } to replace another)
|
|
548
|
+
|
|
549
|
+
// What our proxy saw on recent exchanges (NOT paginated; ~24 h window, `notice` when empty)
|
|
550
|
+
const { traces } = await client.flows.listTraces(flowId);
|
|
551
|
+
|
|
552
|
+
// Re-read the number's Flows from Meta into the catalogue (429 while one is running)
|
|
553
|
+
const { created, updated, seen, truncated } = await client.flows.syncFromMeta();
|
|
554
|
+
```
|
|
555
|
+
|
|
462
556
|
## Chatwoot, billing and embed sessions
|
|
463
557
|
|
|
464
558
|
```ts
|
|
@@ -640,6 +734,32 @@ is refused. The verification routes also require `phone_lines:purchase`, which o
|
|
|
640
734
|
routes `phone_lines:webhooks` (both ADMIN and up). These routes do not use
|
|
641
735
|
`whatsappNumberId`.
|
|
642
736
|
|
|
737
|
+
### Lines and activation codes
|
|
738
|
+
|
|
739
|
+
```ts
|
|
740
|
+
import { randomUUID } from "node:crypto";
|
|
741
|
+
|
|
742
|
+
const { lines } = await client.phoneLines.list({ includeClosed: true }); // phone_lines:read
|
|
743
|
+
const { line } = await client.phoneLines.get("pl_1");
|
|
744
|
+
|
|
745
|
+
// Search and BUY (OWNER, phone_lines:purchase, approved verification).
|
|
746
|
+
// 💸 buy() CHARGES MONEY: each line is a monthly subscription, charged now.
|
|
747
|
+
const offer = await client.phoneLines.available("11"); // { numbers: [{ number, display }], price, currency }
|
|
748
|
+
const idempotencyKey = randomUUID(); // keep it: a retry after a timeout MUST reuse it
|
|
749
|
+
const { results } = await client.phoneLines.buy([offer.numbers[0].number], { idempotencyKey });
|
|
750
|
+
for (const r of results) if (!r.ok) console.warn(r.number, r.code); // HTTP 200 ≠ success: read each item
|
|
751
|
+
|
|
752
|
+
// 💸 Cancel a line (OWNER). A paid line is NOT refunded and runs to currentPeriodEnd;
|
|
753
|
+
// ⛔ an UNPAID line is returned to the carrier NOW — irreversible.
|
|
754
|
+
await client.phoneLines.cancel("pl_1");
|
|
755
|
+
|
|
756
|
+
// Capture a WhatsApp verification CALL (5-minute window), then poll for the code
|
|
757
|
+
const { activation } = await client.phoneLines.createActivation("pl_1");
|
|
758
|
+
const polled = await client.phoneLines.getActivation(activation.id); // status, code (⛔ a credential)
|
|
759
|
+
await client.phoneLines.cancelActivation("pl_1", activation.id); // ends a WAITING request only (no charge)
|
|
760
|
+
const { activations } = await client.phoneLines.listActivations("pl_1", { limit: 20 });
|
|
761
|
+
```
|
|
762
|
+
|
|
643
763
|
### Workspace verification (unlocks buying lines)
|
|
644
764
|
|
|
645
765
|
```ts
|
|
@@ -788,6 +908,22 @@ const { webhook } = await client.workspace.webhooks.create({
|
|
|
788
908
|
});
|
|
789
909
|
```
|
|
790
910
|
|
|
911
|
+
Lost or leaked the secret? `rotateSecret(id)` (0.27.0, `POST /v1/workspace/webhooks/{id}/rotate-secret`,
|
|
912
|
+
no body) mints a new one and returns it **once**: `{ id, hasSecret: true, secret: "plwh_…" }`.
|
|
913
|
+
⛔ The rotation is immediate, with no overlap — the old secret stops verifying the very next
|
|
914
|
+
delivery, so update your verifier right away.
|
|
915
|
+
|
|
916
|
+
```ts
|
|
917
|
+
// workspace ps_ key, full-workspace OAuth, or an account key + workspace:
|
|
918
|
+
const account = new PilotStatusClient({ apiKey: "ps_account_…", workspaceId: "ws_1" });
|
|
919
|
+
const { secret } = await account.workspace.webhooks.rotateSecret("plw_1"); // sends x-workspace-id
|
|
920
|
+
// another workspace with the same key: account.withWorkspace("ws_2").workspace.webhooks.rotateSecret(id)
|
|
921
|
+
```
|
|
922
|
+
|
|
923
|
+
Errors: 400 `WORKSPACE_ID_REQUIRED` (account key without `workspaceId`), 403
|
|
924
|
+
`WORKSPACE_MEMBERSHIP_REQUIRED` / `NUMBER_SCOPE_NOT_ALLOWED` (`ForbiddenError`), 404
|
|
925
|
+
`WEBHOOK_NOT_FOUND` (`NotFoundError`, also for another workspace's webhook).
|
|
926
|
+
|
|
791
927
|
## Receiving webhooks (verify, then parse)
|
|
792
928
|
|
|
793
929
|
`parseCustomerWebhook` proves the **shape** of an event, nothing else — anyone on
|
|
@@ -862,7 +998,7 @@ Notes:
|
|
|
862
998
|
- `message.received` includes `fromMe` (boolean).
|
|
863
999
|
- `message.group` is delivered for inbound group messages (includes `groupName`).
|
|
864
1000
|
- `message.newsletter` is delivered for inbound WhatsApp channel / newsletter messages (`@newsletter`, includes `newsletterId`).
|
|
865
|
-
- Supported events in the parser: `message.sent`, `message.delivered`, `message.read`, `message.failed`, `message.reply`, `message.received`, `message.group`, `message.newsletter`, `number.created`, `number.connected`, `number.disconnected`, `number.removed`, `number.restored`, `call.ringing`, `call.connected`, `call.ended`, `call.missed`, `call.permission_updated`, `flow.response_received`, `lead.received`. The same list is exported as `CUSTOMER_WEBHOOK_EVENTS` — it is derived from the parser's own union, and a test compares this line against it, so the two cannot drift.
|
|
1001
|
+
- Supported events in the parser: `message.sent`, `message.delivered`, `message.read`, `message.failed`, `message.reply`, `message.received`, `message.group`, `message.newsletter`, `number.created`, `number.connected`, `number.disconnected`, `number.removed`, `number.restored`, `call.ringing`, `call.connected`, `call.ended`, `call.missed`, `call.permission_updated`, `flow.response_received`, `lead.received`, `chat.archived`, `chat.unarchived`, `contact.blocked`, `contact.unblocked`. The same list is exported as `CUSTOMER_WEBHOOK_EVENTS` — it is derived from the parser's own union, and a test compares this line against it, so the two cannot drift.
|
|
866
1002
|
- `flow.response_received` carries the answers of a submitted WhatsApp Flow (`interactive.nfm_reply`), **META numbers only**. Wrapped in `data` like the `message.*` events: `{ event, data: { event, flowId, metaFlowId, flowToken, messageId, whatsappNumberId, from, receivedAt, response, responseRaw, flowMedia, submitted } }`. Two fields need care. **The number field is `whatsappNumberId`, not `numberId`** — same value as everywhere else, different name on the wire, so a handler reading `numberId` gets `undefined`. And **`response` and `responseRaw` are mutually exclusive**: `response` is the parsed answer object and `responseRaw` is `null`; when the submission could not be parsed it is the other way round, and the raw string is the only copy of the answer that exists. `flowId` is `null` for a Flow built in Meta's Flow Manager and not yet synced here — normal, not an error.
|
|
867
1003
|
- **Files attached inside a Flow form** (`PhotoPicker` / `DocumentPicker`) are **not in `response`**. A media picker requires a `data_exchange` endpoint, so what `response` holds for such a field is a reference to Meta's CDN — which Meta deletes after 20 days. The re-hosted copy is the only way to reach the bytes, and it is published in the two places the answers are readable, in shapes that are similar and **not** the same:
|
|
868
1004
|
- On the event, `data.flowMedia` — `null` when nothing was attached, and **never `[]`**. The asymmetry is deliberate: the payload stored in the webhook log of a `RELAY_ONLY` number is redacted field by field, and the redactor blanks any field that holds something. An empty array holds something, so it would be replaced by the "content unavailable" placeholder and read back as *"there were attachments and we hid them"*; `null` passes through untouched. `flowMedia` is also **optional**, and absent is not `null` — absent is a backend older than the field, which the parser accepts rather than rejecting every event from an older deployment over one field it cannot read.
|
|
@@ -881,6 +1017,7 @@ Notes:
|
|
|
881
1017
|
- The two shapes differ in exactly one way, the same way the attachment shapes do: on the event `submitted` is **`null`, never `[]`**, when nothing was captured (the redactor that blanks a `RELAY_ONLY` log replaces anything non-empty, so `[]` would read as *"there were answers and we hid them"*), and it is also **optional** — absent means a backend older than the field. On `listResponses()` it is **always an array**.
|
|
882
1018
|
- ⚠️ **Empty is not "they typed nothing".** A NAVIGATE-only Flow never calls an endpoint at all — its answers are wholly in `response` — and a number configured to relay and keep nothing captures none. The element type is exported: `import type { FlowSubmittedExchange } from "@pilot-status/sdk"`, and it is the SAME type on both surfaces.
|
|
883
1019
|
- `lead.received` carries a whole lead from a Facebook / Instagram Instant Form (Meta Lead Ads), delivered on the number its Page is linked to — on **any** provider, since the lead arrives on the Page, not through the number. Wrapped in `data`: `{ event, data: { leadId, leadgenId, whatsappNumberId, pageId, pageName?, formId, formName?, adId?, adsetId?, campaignId?, adName?, adsetName?, campaignName?, platform?, isOrganic?, createdAt, fullName?, email?, phone?, fields, consentGiven?, conversationId? } }` (types `LeadReceivedEvent` / `LeadReceivedEventData` / `LeadReceivedField`). Like the Flow event, **the number field is `whatsappNumberId`**; unlike it, there is **no `event` repeated inside `data`**. `leadgenId` is Meta's id and the natural idempotency key; `leadId` is ours and reads back with `client.leads.get(leadId)`. `createdAt` is when the person submitted the form. `fields[]` is `{ key, label?, values }` — `values` is always a list, and `label` is absent when it could not be resolved (on `client.leads.*` it is always present, falling back to the key). `consentGiven: null` means **unknown** (no consent checkbox configured, or not answered), never a refusal.
|
|
1020
|
+
- `chat.archived` / `chat.unarchived` / `contact.blocked` / `contact.unblocked` share one payload: `{ id, event, data: { numberId, numberPhone, provider, jid, phone, isGroup, occurredAt, source } }` (types `ChatArchivedEvent` / `ChatUnarchivedEvent` / `ContactBlockedEvent` / `ContactUnblockedEvent` / `ChatContactStateEventData`). `provider` is `"qrcode"` or `"meta"`; `source` is `"phone"` (changed on the device) or `"api"` (changed through Pilot Status); `phone` is `null` when the JID is not a phone (group, LID). **`chat.*` is QR Code only**; `contact.*` fires on QR Code numbers and on official Meta numbers (Meta: only when the block is done through the API).
|
|
884
1021
|
- `call.*` payloads are **flat** (fields sit next to `event`, no `data` wrapper): `{ event, callId, externalCallId?, direction, status, from, to, timestamp, duration? }`. `duration` (seconds) appears on `call.ended` only when the call was answered; `call.permission_updated` has `callId`/`direction` `null` and `status` `NO_PERMISSION` | `TEMPORARY` | `PERMANENT`.
|
|
885
1022
|
|
|
886
1023
|
## Errors
|
package/dist/client.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { NumbersResource } from "./resources/numbers.js";
|
|
|
17
17
|
import { PhoneLinesResource } from "./resources/phone-lines.js";
|
|
18
18
|
import { StoriesResource } from "./resources/stories.js";
|
|
19
19
|
import { ServiceWindowResource } from "./resources/service-window.js";
|
|
20
|
+
import { KnowledgeResource } from "./resources/knowledge.js";
|
|
20
21
|
import { SubscriptionResource } from "./resources/subscription.js";
|
|
21
22
|
import { TemplatesResource } from "./resources/templates.js";
|
|
22
23
|
import { GroupsResource } from "./resources/groups.js";
|
|
@@ -97,6 +98,8 @@ export declare class PilotStatusClient {
|
|
|
97
98
|
/** Meta Lead Ads Pages and Instant Form configuration (`/v1/lead-pages/*`). */
|
|
98
99
|
readonly leadPages: LeadPagesResource;
|
|
99
100
|
readonly serviceWindow: ServiceWindowResource;
|
|
101
|
+
/** Search the docs, the blog and the public pages (`POST /v1/knowledge/search`). */
|
|
102
|
+
readonly knowledge: KnowledgeResource;
|
|
100
103
|
readonly meta: MetaResource;
|
|
101
104
|
readonly webhooks: WebhooksResource;
|
|
102
105
|
readonly branding: BrandingResource;
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,eAA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,CAAC,OAAO,EAAE,eAAe,CAAC;gBAItB,OAAO,EAAE,wBAAwB;IAsD7C;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,gBAAgB,EAAE,MAAM,GAAG,iBAAiB;IAIvD;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB;CAGtD"}
|
package/dist/client.js
CHANGED
|
@@ -17,6 +17,7 @@ import { NumbersResource } from "./resources/numbers.js";
|
|
|
17
17
|
import { PhoneLinesResource } from "./resources/phone-lines.js";
|
|
18
18
|
import { StoriesResource } from "./resources/stories.js";
|
|
19
19
|
import { ServiceWindowResource } from "./resources/service-window.js";
|
|
20
|
+
import { KnowledgeResource } from "./resources/knowledge.js";
|
|
20
21
|
import { SubscriptionResource } from "./resources/subscription.js";
|
|
21
22
|
import { TemplatesResource } from "./resources/templates.js";
|
|
22
23
|
import { GroupsResource } from "./resources/groups.js";
|
|
@@ -51,6 +52,8 @@ export class PilotStatusClient {
|
|
|
51
52
|
/** Meta Lead Ads Pages and Instant Form configuration (`/v1/lead-pages/*`). */
|
|
52
53
|
leadPages;
|
|
53
54
|
serviceWindow;
|
|
55
|
+
/** Search the docs, the blog and the public pages (`POST /v1/knowledge/search`). */
|
|
56
|
+
knowledge;
|
|
54
57
|
meta;
|
|
55
58
|
webhooks;
|
|
56
59
|
branding;
|
|
@@ -102,6 +105,7 @@ export class PilotStatusClient {
|
|
|
102
105
|
this.ads = new AdsResource(http);
|
|
103
106
|
this.leadPages = new LeadPagesResource(http);
|
|
104
107
|
this.serviceWindow = new ServiceWindowResource(http);
|
|
108
|
+
this.knowledge = new KnowledgeResource(http);
|
|
105
109
|
this.meta = new MetaResource(http);
|
|
106
110
|
this.webhooks = new WebhooksResource(http);
|
|
107
111
|
this.branding = new BrandingResource(http);
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":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
package/dist/index.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export { PhoneLinesResource, PhoneLineVerificationResource, PhoneLineWebhooksRes
|
|
|
13
13
|
/** Account-level workspaces (account key) and the workspace webhooks. */
|
|
14
14
|
export { WorkspacesResource, WorkspaceApiKeysResource } from "./resources/workspaces.js";
|
|
15
15
|
export { WorkspaceWebhooksResource } from "./resources/workspace-webhooks.js";
|
|
16
|
-
export type { MessageStatus, Button, ButtonType, MarketingOptions, SendMessageInput, SendMessageOptions, SendMessageHeader, SendMessageAccepted, MessageDetails, MessageMetaPricing, MessageLogDirection, MessageLogEntry, KnownMessageOrigin, MessageListParams, MessageListResult, GroupMessagesParams, GroupMessagesResult, UnreadMessagesParams, UnreadMessagesResult, MarkReadResult, TypingState, TypingInput, TypingResult, DashboardStats, ApiKeyCreated, ApiKeyListItem, ApiKeyListResult, NumberApiKeyReveal, RegeneratedNumberKey, WhatsAppNumberInstance, WhatsAppNumberListItem, NumberListItemApiKeyRef, NumberCoexistence, CreateNumberInput, CreateNumberResult, CreatedNumber, CreateMetaNumberInput, CheckNumbersInput, CheckNumbersResult, NumberConnectResult, NumberStatusResult, NumberStatusFailureCode, NumberDetail, NumberSettings, NumberSettingsInput, NumberSettingsSync, NumberPiiInput, NumberLogoutResult, NumberRestoreResult, NumberPurgeResult, NumberPayResult, NumberPayErrorBody, UpdateNumberInput, UpdateNumberResult, ChatHistoryMedia, ChatHistoryMessage, MessageHistoryParams, MessageHistoryResult, NumberLinkBundle, RemotePairingInput, RemotePairingResult, RemotePairingInfo, RemotePairingStatus, RemotePairingConnectResult, CancelMessagesResult, DeleteNumberResult, TemplateCategory, TemplateExamples, TemplateListItem, TemplateDetail, CreateTemplateInput, UpdateTemplateInput, TemplateDeleteResult, TemplateInsightsDays, TemplateInsightsOptions, TemplateInsightsTotals, TemplateInsightsClick, TemplateInsightsDay, TemplateInsights, TemplateSubmitResult, TemplateSyncResult, TemplateDeletePreview, FlowCategory, Flow, FlowListParams, FlowListResult, CreateFlowInput, FlowCreated, UpdateFlowInput, FlowUpdateResult, FlowDeleteResult, FlowJsonUploadResult, FlowJsonValidationFailure, FlowPublishInput, FlowPublishResult, FlowDeprecateInput, FlowDeprecateResult, FlowResponse, FlowResponseMedia, FlowSubmittedExchange, FlowResponseListParams, FlowResponseListResult, FlowEndpointKeyMetaStatus, FlowEndpointKeyStatus, FlowEndpointKeyRotateInput, FlowEndpointKeyRotateResult, GroupListItem, GroupDetail, GroupParticipant, CreateGroupInput, GroupActionResult, GroupInviteResult, GroupPinAction, NewsletterListItem, MediaDownloadResult, ConversationListParams, ConversationListResult, ConversationSummary, LeadListParams, LeadListResult, LeadGetResult, Lead, LeadField, ChatReferral, ReferralListParams, ReferralMessage, ReferralListResult, ReferralSummaryParams, ReferralSummaryAd, ReferralSummaryResult, LinkedAdAccount, AdAccountCandidate, AdAccountListResult, AdAccountLinkResult, AdAccountUnlinkResult, AdsSummaryParams, AdsSummaryAd, AdsSummaryResult, LeadPageLink, LeadPageCandidate, LeadPageListResult, LeadPageLinkInput, LeadPageLinkResult, LeadPageUpdateInput, LeadPageUpdateResult, LeadPageUnlinkResult, LeadPageResyncResult, LeadVariableSource, LeadFormConfig, LeadFormQuestion, LeadForm, LeadFormListResult, LeadFormConfigInput, LeadFormConfigResult, ServiceWindowType, ServiceWindowResult, MetaPricingParams, MetaPricingResult, Webhook, CreateWebhookInput, UpdateWebhookInput, WebhookDeleteResult, WebhookLogsParams, WebhookLogEntry, CreatedWebhook, WebhookRotateSecretResult, WebhookCircuitStatus, WebhookReactivateResult, BrandingInput, BrandingResult, EmbedSurface, EmbedSessionInput, EmbedSessionResult, CheckoutPurpose, CheckoutInput, CheckoutResult, CheckoutMethod, AddCardCheckoutResult, CardTopupCheckoutResult, PixTopupCheckoutResult, PixCharge, WalletTopupStatus, WalletTopup, WalletTopupResponse, CardSetupIntent, SavedCard, CardSetupIntentSync, CreatePaymentIntentInput, CreatePaymentIntentOptions, WalletTopupPaymentIntent, CreatePaymentIntentResult, PaymentIntentSync, ExtraNumbersPreview, ExtraNumbersPurchaseResult, ExtraNumbersScheduleResult, ChatwootChannelMode, ChatwootStatus, ChatwootConnectInput, ChatwootUpdateInput, ChatwootTestInput, ChatwootTestResult, ChatwootHistoryReplayInput, ChatwootHistoryReplayState, WorkspaceRole, WorkspaceMemberStatus, WorkspaceDetail, WorkspaceMember, WorkspaceMemberList, WorkspaceRenameResult, WorkspaceLanguage, WorkspaceSettings, WorkspaceSettingsResponse, UpdateWorkspaceSettingsInput, WorkspaceArchiveResult, WorkspaceTransferOwnershipResult, CallDirection, CallStatus, CallDetails, CallInitiateInput, CallInitiateAccepted, CallActionResult, CallListResult, CallingSettingsResult, CallSettingsUpdateInput, CallSettingsUpdateResult, CallPermissionResult, CallPermissionRequestInput, CallPermissionRequestResult, CallRealtimeSessionMode, CallRealtimeSessionResult, VerificationStatus, VerificationDocumentType, VerificationContactChannel, VerificationContactChannelPath, VerificationDocumentStatus, VerificationReviewReason, VerificationDetails, VerificationState, StartVerificationParams, StartVerificationOptions, StartVerificationResult, ActivationAudio, PhoneLineWebhookSubscription, PhoneLineWebhook, CreatedPhoneLineWebhook, PhoneLineWebhookList, PhoneLineWebhookResponse, CreatePhoneLineWebhookResponse, CreatePhoneLineWebhookInput, UpdatePhoneLineWebhookInput, PhoneLineWebhookDeleteResult, PhoneLineWebhookDeliveryStatus, PhoneLineWebhookDelivery, PhoneLineWebhookDeliveryDetail, ListPhoneLineWebhookDeliveriesParams, PhoneLineWebhookDeliveryList, PhoneLineWebhookDeliveryResponse, WorkspaceWebhookSubscription, WorkspaceWebhook, CreatedWorkspaceWebhook, WorkspaceWebhookList, WorkspaceWebhookResponse, CreateWorkspaceWebhookResponse, WorkspaceWebhookDeleteResult, WorkspaceWebhookDelivery, WorkspaceWebhookDeliveryDetail, ListWorkspaceWebhookDeliveriesParams, WorkspaceWebhookDeliveryList, WorkspaceWebhookDeliveryResponse, CreateWorkspaceWebhookInput, UpdateWorkspaceWebhookInput, AccountWorkspace, AccountWorkspaceList, CreateWorkspaceInput, MintedWorkspaceKey, CreatedWorkspace, WorkspaceSharedCard, WorkspaceSharedCardResult, WorkspaceKey, WorkspaceKeyList, CreateWorkspaceKeyInput, CreatedWorkspaceKey, RevokedWorkspaceKey, } from "./types.js";
|
|
17
|
-
export type { CustomerWebhookEvent, UnknownCustomerWebhookEvent, WhatsAppMessageType, MessageSentEvent, MessageDeliveredEvent, MessageReadEvent, MessageFailedEvent, MessageReplyEvent, MessageReceivedEvent, MessageGroupEvent, MessageNewsletterEvent, NumberCreatedEvent, NumberConnectedEvent, NumberDisconnectedEvent, NumberRemovedEvent, NumberRestoredEvent, CallRingingEvent, CallConnectedEvent, CallEndedEvent, CallMissedEvent, CallPermissionUpdatedEvent, EvolutionGoCallEventData, EvolutionGoCallOfferEvent, EvolutionGoCallAcceptEvent, EvolutionGoCallTerminateEvent, EvolutionGoCallEvent, FlowResponseReceivedEvent, FlowResponseReceivedEventData, FlowResponseMediaAttachment, LeadReceivedEvent, LeadReceivedEventData, LeadReceivedField, PhoneLineWebhookEvent, PhoneLineWebhookEventName, PhoneLineReturnedReason, PhoneLinePurchasedEvent, PhoneLineAudioReceivedEvent, PhoneLineCodeReceivedEvent, PhoneLineCodeFailedEvent, PhoneLineRenewedEvent, PhoneLinePaymentFailedEvent, PhoneLineSuspendedEvent, PhoneLineReturnedEvent, PhoneLineCanceledEvent, PhoneLineVerificationUpdatedEvent, WalletTopupPaidEvent, WorkspaceWebhookEvent, WorkspaceWebhookEventName, } from "./webhooks/types.js";
|
|
16
|
+
export type { MessageStatus, Button, ButtonType, MarketingOptions, SendMessageInput, SendMessageOptions, SendMessageHeader, SendMessageAccepted, MessageDetails, MessageMetaPricing, MessageLogDirection, MessageLogEntry, KnownMessageOrigin, MessageListParams, MessageListResult, GroupMessagesParams, GroupMessagesResult, UnreadMessagesParams, UnreadMessagesResult, MarkReadResult, TypingState, TypingInput, TypingResult, DashboardStats, ApiKeyCreated, ApiKeyListItem, ApiKeyListResult, NumberApiKeyReveal, RegeneratedNumberKey, NumberApiKey, NumberApiKeyList, CreatedNumberApiKey, RevokedNumberApiKey, WhatsAppNumberInstance, WhatsAppNumberListItem, NumberListItemApiKeyRef, NumberCoexistence, CreateNumberInput, CreateNumberResult, CreatedNumber, CreateMetaNumberInput, CheckNumbersInput, CheckNumbersResult, NumberConnectResult, NumberStatusResult, NumberStatusFailureCode, NumberDetail, NumberSettings, NumberSettingsInput, NumberSettingsSync, NumberPiiInput, NumberLogoutResult, NumberRestoreResult, NumberPurgeResult, NumberPayResult, NumberPayErrorBody, UpdateNumberInput, UpdateNumberResult, ChatHistoryMedia, ChatHistoryMessage, MessageHistoryParams, MessageHistoryResult, NumberLinkBundle, RemotePairingInput, RemotePairingResult, RemotePairingInfo, RemotePairingStatus, RemotePairingConnectResult, CancelMessagesResult, DeleteNumberResult, TemplateCategory, TemplateExamples, TemplateListItem, TemplateDetail, CreateTemplateInput, UpdateTemplateInput, TemplateDeleteResult, TemplateInsightsDays, TemplateInsightsOptions, TemplateInsightsTotals, TemplateInsightsClick, TemplateInsightsDay, TemplateInsights, TemplateSubmitResult, TemplateSyncResult, TemplateDeletePreview, FlowCategory, Flow, FlowListParams, FlowListResult, CreateFlowInput, FlowCreated, UpdateFlowInput, FlowUpdateResult, FlowDeleteResult, FlowJsonUploadResult, FlowJsonValidationFailure, FlowPublishInput, FlowPublishResult, FlowDeprecateInput, FlowDeprecateResult, FlowResponse, FlowResponseMedia, FlowSubmittedExchange, FlowResponseListParams, FlowResponseListResult, FlowEndpointKeyMetaStatus, FlowEndpointKeyStatus, FlowEndpointKeyRotateInput, FlowEndpointKeyRotateResult, GroupListItem, GroupDetail, GroupParticipant, CreateGroupInput, GroupActionResult, GroupInviteResult, GroupPinAction, NewsletterListItem, MediaDownloadResult, ConversationListParams, ConversationListResult, ConversationSummary, LeadListParams, LeadListResult, LeadGetResult, Lead, LeadField, ChatReferral, ReferralListParams, ReferralMessage, ReferralListResult, ReferralSummaryParams, ReferralSummaryAd, ReferralSummaryResult, LinkedAdAccount, AdAccountCandidate, AdAccountListResult, AdAccountLinkResult, AdAccountUnlinkResult, AdsSummaryParams, AdsSummaryAd, AdsSummaryResult, LeadPageLink, LeadPageCandidate, LeadPageListResult, LeadPageLinkInput, LeadPageLinkResult, LeadPageUpdateInput, LeadPageUpdateResult, LeadPageUnlinkResult, LeadPageResyncResult, LeadVariableSource, LeadFormConfig, LeadFormQuestion, LeadForm, LeadFormListResult, LeadFormConfigInput, LeadFormConfigResult, ServiceWindowType, ServiceWindowResult, KnowledgeType, KnowledgeLanguage, KnowledgeSearchParams, KnowledgeSearchHit, KnowledgeSearchResult, MetaPricingParams, MetaPricingResult, Webhook, CreateWebhookInput, UpdateWebhookInput, WebhookDeleteResult, WebhookLogsParams, WebhookLogEntry, CreatedWebhook, WebhookRotateSecretResult, WebhookCircuitStatus, WebhookReactivateResult, BrandingInput, BrandingResult, EmbedSurface, EmbedSessionInput, EmbedSessionResult, CheckoutPurpose, CheckoutInput, CheckoutResult, CheckoutMethod, AddCardCheckoutResult, CardTopupCheckoutResult, PixTopupCheckoutResult, PixCharge, WalletTopupStatus, WalletTopup, WalletTopupResponse, CardSetupIntent, SavedCard, CardSetupIntentSync, CreatePaymentIntentInput, CreatePaymentIntentOptions, WalletTopupPaymentIntent, CreatePaymentIntentResult, PaymentIntentSync, ExtraNumbersPreview, ExtraNumbersPurchaseResult, ExtraNumbersScheduleResult, ChatwootChannelMode, ChatwootStatus, ChatwootConnectInput, ChatwootUpdateInput, ChatwootTestInput, ChatwootTestResult, ChatwootHistoryReplayInput, ChatwootHistoryReplayState, WorkspaceRole, WorkspaceMemberStatus, WorkspaceDetail, WorkspaceMember, WorkspaceMemberList, WorkspaceRenameResult, WorkspaceLanguage, WorkspaceSettings, WorkspaceSettingsResponse, UpdateWorkspaceSettingsInput, WorkspaceArchiveResult, WorkspaceTransferOwnershipResult, CallDirection, CallStatus, CallDetails, CallInitiateInput, CallInitiateAccepted, CallActionResult, CallListResult, CallingSettingsResult, CallSettingsUpdateInput, CallSettingsUpdateResult, CallPermissionResult, CallPermissionRequestInput, CallPermissionRequestResult, CallRealtimeSessionMode, CallRealtimeSessionResult, VerificationStatus, VerificationDocumentType, VerificationContactChannel, VerificationContactChannelPath, VerificationDocumentStatus, VerificationReviewReason, VerificationDetails, VerificationState, StartVerificationParams, StartVerificationOptions, StartVerificationResult, ActivationAudio, PhoneLineWebhookSubscription, PhoneLineWebhook, CreatedPhoneLineWebhook, PhoneLineWebhookList, PhoneLineWebhookResponse, CreatePhoneLineWebhookResponse, CreatePhoneLineWebhookInput, UpdatePhoneLineWebhookInput, PhoneLineWebhookDeleteResult, PhoneLineWebhookDeliveryStatus, PhoneLineWebhookDelivery, PhoneLineWebhookDeliveryDetail, ListPhoneLineWebhookDeliveriesParams, PhoneLineWebhookDeliveryList, PhoneLineWebhookDeliveryResponse, WorkspaceWebhookSubscription, WorkspaceWebhook, CreatedWorkspaceWebhook, WorkspaceWebhookList, WorkspaceWebhookResponse, CreateWorkspaceWebhookResponse, WorkspaceWebhookDeleteResult, WorkspaceWebhookDelivery, WorkspaceWebhookDeliveryDetail, ListWorkspaceWebhookDeliveriesParams, WorkspaceWebhookDeliveryList, WorkspaceWebhookDeliveryResponse, WorkspaceWebhookRotateSecretResult, CreateWorkspaceWebhookInput, UpdateWorkspaceWebhookInput, AccountWorkspace, AccountWorkspaceList, CreateWorkspaceInput, MintedWorkspaceKey, CreatedWorkspace, WorkspaceSharedCard, WorkspaceSharedCardResult, WorkspaceKey, WorkspaceKeyList, CreateWorkspaceKeyInput, CreatedWorkspaceKey, RevokedWorkspaceKey, UnreadCountsParams, UnreadCountByNumber, UnreadCountsResult, ResendMessageResult, RegeneratedApiKey, InviteWorkspaceMemberInput, InviteWorkspaceMemberResult, ResendWorkspaceInviteOptions, ResendWorkspaceInviteResult, UpdateWorkspaceMemberInput, WorkspaceMemberResult, RemoveWorkspaceMemberOptions, RemoveWorkspaceMemberResult, FlowPreviewInput, FlowPreviewResult, FlowTrace, FlowTraceList, FlowEndpointWarning, FlowEndpointState, SetFlowEndpointInput, SetFlowEndpointResult, RegisterFlowEndpointInput, RegisterFlowEndpointResult, FlowMetaSyncResult, FlowJsonDocument, PhoneLineStatus, PhoneLine, ListPhoneLinesParams, PhoneLineList, PhoneLineResponse, AvailablePhoneLines, BuyPhoneLinesOptions, PhoneLinePurchaseOutcome, PhoneLinePurchaseResult, PhoneLineActivationStatus, PhoneLineActivation, ListPhoneLineActivationsParams, PhoneLineActivationList, PhoneLineActivationResponse, ContactBlockResult, ChatArchiveResult, } from "./types.js";
|
|
17
|
+
export type { CustomerWebhookEvent, UnknownCustomerWebhookEvent, WhatsAppMessageType, MessageSentEvent, MessageDeliveredEvent, MessageReadEvent, MessageFailedEvent, MessageReplyEvent, MessageReceivedEvent, MessageGroupEvent, MessageNewsletterEvent, NumberCreatedEvent, NumberConnectedEvent, NumberDisconnectedEvent, NumberRemovedEvent, NumberRestoredEvent, CallRingingEvent, CallConnectedEvent, CallEndedEvent, CallMissedEvent, CallPermissionUpdatedEvent, EvolutionGoCallEventData, EvolutionGoCallOfferEvent, EvolutionGoCallAcceptEvent, EvolutionGoCallTerminateEvent, EvolutionGoCallEvent, FlowResponseReceivedEvent, FlowResponseReceivedEventData, FlowResponseMediaAttachment, LeadReceivedEvent, LeadReceivedEventData, ChatContactStateEventData, ChatArchivedEvent, ChatUnarchivedEvent, ContactBlockedEvent, ContactUnblockedEvent, LeadReceivedField, PhoneLineWebhookEvent, PhoneLineWebhookEventName, PhoneLineReturnedReason, PhoneLinePurchasedEvent, PhoneLineAudioReceivedEvent, PhoneLineCodeReceivedEvent, PhoneLineCodeFailedEvent, PhoneLineRenewedEvent, PhoneLinePaymentFailedEvent, PhoneLineSuspendedEvent, PhoneLineReturnedEvent, PhoneLineCanceledEvent, PhoneLineVerificationUpdatedEvent, WalletTopupPaidEvent, WorkspaceWebhookEvent, WorkspaceWebhookEventName, } from "./webhooks/types.js";
|
|
18
18
|
export { parseCustomerWebhook, isCustomerWebhookEvent, isUnknownCustomerWebhookEvent, CUSTOMER_WEBHOOK_EVENTS, } from "./webhooks/parse.js";
|
|
19
19
|
export type { StoryType, StoryFont, StoryRecipientsMode, CreateStoryInput, CreateStoryOptions, CreateStoryAccepted, StoryDetails, RevokeStoryResult, } from "./types.js";
|
|
20
20
|
export type { ParseCustomerWebhookOptions } from "./webhooks/parse.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAClE,YAAY,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,cAAc,EACd,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF;;;GAGG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,sGAAsG;AACtG,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,yBAAyB,EACzB,SAAS,EACT,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AAEpC,yEAAyE;AACzE,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,YAAY,EACV,aAAa,EACb,MAAM,EACN,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EAC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,EACnB,yBAAyB,EACzB,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAClE,YAAY,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,cAAc,EACd,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF;;;GAGG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,sGAAsG;AACtG,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,yBAAyB,EACzB,SAAS,EACT,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AAEpC,yEAAyE;AACzE,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,YAAY,EACV,aAAa,EACb,MAAM,EACN,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,WAAW,EACX,YAAY,EACZ,cAAc,EACd,aAAa,EACb,cAAc,EACd,gBAA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B,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,iCAAiC,EACjC,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,oBAAoB,EACpB,sBAAsB,EACtB,6BAA6B,EAC7B,uBAAuB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,GAClB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EACL,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2xEAA2xE;AAE3xE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGlE,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,cAAc,EACd,WAAW,GACZ,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF;;;GAGG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,sGAAsG;AACtG,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,yBAAyB,EACzB,SAAS,EACT,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AAEpC,yEAAyE;AACzE,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2xEAA2xE;AAE3xE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGlE,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,cAAc,EACd,WAAW,GACZ,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF;;;GAGG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,sGAAsG;AACtG,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,yBAAyB,EACzB,SAAS,EACT,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AAEpC,yEAAyE;AACzE,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AA0Y9E,OAAO,EACH,oBAAoB,EACpB,sBAAsB,EACtB,6BAA6B,EAC7B,uBAAuB,GAC1B,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EACL,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpClient } from "../http.js";
|
|
2
|
-
import type { ApiKeyListResult, RegeneratedNumberKey } from "../types.js";
|
|
2
|
+
import type { ApiKeyListResult, CreatedNumberApiKey, NumberApiKeyList, RegeneratedApiKey, RegeneratedNumberKey, RevokedNumberApiKey } from "../types.js";
|
|
3
3
|
export declare class ApiKeysResource {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(http: HttpClient);
|
|
@@ -30,10 +30,58 @@ export declare class ApiKeysResource {
|
|
|
30
30
|
/**
|
|
31
31
|
* Regenerate the default key of one WhatsApp number (`POST /v1/api-keys`).
|
|
32
32
|
*
|
|
33
|
-
* Tenant-scoped action
|
|
34
|
-
*
|
|
35
|
-
*
|
|
33
|
+
* Tenant-scoped action. It rotates ONLY the DEFAULT (primary) key of the number
|
|
34
|
+
* identified by `whatsappNumberId` and returns the new usable key (shown once).
|
|
35
|
+
* Named number keys ({@link createNumberKey}) survive; a panic/reissue revokes all.
|
|
36
|
+
*
|
|
37
|
+
* **The previous default key stops working immediately** (no grace period).
|
|
38
|
+
* Zero-downtime rotation: create a named number key with {@link createNumberKey},
|
|
39
|
+
* switch your integration to it, then regenerate (or revoke) the old one.
|
|
36
40
|
*/
|
|
37
41
|
regenerateNumber(whatsappNumberId: string): Promise<RegeneratedNumberKey>;
|
|
42
|
+
/**
|
|
43
|
+
* List the keys of one number (`GET /v1/numbers/{numberId}/api-keys`): the
|
|
44
|
+
* default key (`isPrimary: true`) plus named keys, masked (`prefix`/`last4`).
|
|
45
|
+
*
|
|
46
|
+
* Credential: a workspace key (`ps_workspace_…`) or an account key
|
|
47
|
+
* (`ps_account_…` + `workspaceId`, sent as `x-workspace-id`); number keys get 403.
|
|
48
|
+
*/
|
|
49
|
+
listNumberKeys(numberId: string): Promise<NumberApiKeyList>;
|
|
50
|
+
/**
|
|
51
|
+
* Create a NAMED key for one number (`POST /v1/numbers/{numberId}/api-keys`) → 201.
|
|
52
|
+
* The raw `apiKey.key` is returned ONCE — store it. `name` is 1–60 chars
|
|
53
|
+
* (400 `name_required` / `name_too_long`); at most 20 keys per number including
|
|
54
|
+
* the default (409 `limit_reached`). Same credentials as {@link listNumberKeys}.
|
|
55
|
+
* Not retried automatically.
|
|
56
|
+
*/
|
|
57
|
+
createNumberKey(numberId: string, input: {
|
|
58
|
+
name: string;
|
|
59
|
+
}): Promise<CreatedNumberApiKey>;
|
|
60
|
+
/**
|
|
61
|
+
* Revoke one named key of a number (`DELETE /v1/numbers/{numberId}/api-keys/{keyId}`).
|
|
62
|
+
* It stops working immediately. The default key cannot be revoked here
|
|
63
|
+
* (409 `primary_key_use_regenerate`: use {@link regenerateNumber}).
|
|
64
|
+
*/
|
|
65
|
+
revokeNumberKey(numberId: string, keyId: string): Promise<RevokedNumberApiKey>;
|
|
66
|
+
/**
|
|
67
|
+
* Regenerate THE key of the calling scope (`POST /v1/api-keys/regenerate`) → 201.
|
|
68
|
+
*
|
|
69
|
+
* ⛔ **This revokes the key you are calling with.** A number-scoped key rotates
|
|
70
|
+
* itself; the workspace's primary key rotates itself. The OLD KEY STOPS WORKING
|
|
71
|
+
* IMMEDIATELY — every later call on this client answers 401 until you build a new
|
|
72
|
+
* client with the returned `key`, which is shown ONCE (store it before anything
|
|
73
|
+
* else). A named `ps_workspace_` key rotates the workspace's PRIMARY key and
|
|
74
|
+
* survives itself.
|
|
75
|
+
*
|
|
76
|
+
* Needs `apikeys:reveal` (OWNER) for an account key; a per-number OAuth grant is
|
|
77
|
+
* 403 `NUMBERS_GRANT_NOT_ALLOWED`. Never retried automatically by the SDK.
|
|
78
|
+
*
|
|
79
|
+
* **The previous key stops working immediately** (no grace period). To rotate
|
|
80
|
+
* without downtime, do not call this first: create a named workspace key
|
|
81
|
+
* (`ps_workspace_…`) with `workspaces.apiKeys.create(workspaceId, { name })`
|
|
82
|
+
* using an account key, or use an account key (`ps_account_…` + `workspaceId`)
|
|
83
|
+
* directly; switch your integration to it; then revoke the old key.
|
|
84
|
+
*/
|
|
85
|
+
regenerate(): Promise<RegeneratedApiKey>;
|
|
38
86
|
}
|
|
39
87
|
//# sourceMappingURL=api-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../../src/resources/api-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../../src/resources/api-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,aAAa,CAAC;AAKrB,qBAAa,eAAe;;gBAGd,IAAI,EAAE,UAAU;IAI5B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACG,IAAI,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAOvC;;;;;;;;;;OAUG;IACG,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAQ/E;;;;;;OAMG;IACG,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIjE;;;;;;OAMG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAQ9F;;;;OAIG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAOpF;;;;;;;;;;;;;;;;;;OAkBG;IACG,UAAU,IAAI,OAAO,CAAC,iBAAiB,CAAC;CAM/C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const numberKeysPath = (numberId) => `/v1/numbers/${encodeURIComponent(numberId)}/api-keys`;
|
|
1
2
|
export class ApiKeysResource {
|
|
2
3
|
#http;
|
|
3
4
|
constructor(http) {
|
|
@@ -35,9 +36,13 @@ export class ApiKeysResource {
|
|
|
35
36
|
/**
|
|
36
37
|
* Regenerate the default key of one WhatsApp number (`POST /v1/api-keys`).
|
|
37
38
|
*
|
|
38
|
-
* Tenant-scoped action
|
|
39
|
-
*
|
|
40
|
-
*
|
|
39
|
+
* Tenant-scoped action. It rotates ONLY the DEFAULT (primary) key of the number
|
|
40
|
+
* identified by `whatsappNumberId` and returns the new usable key (shown once).
|
|
41
|
+
* Named number keys ({@link createNumberKey}) survive; a panic/reissue revokes all.
|
|
42
|
+
*
|
|
43
|
+
* **The previous default key stops working immediately** (no grace period).
|
|
44
|
+
* Zero-downtime rotation: create a named number key with {@link createNumberKey},
|
|
45
|
+
* switch your integration to it, then regenerate (or revoke) the old one.
|
|
41
46
|
*/
|
|
42
47
|
async regenerateNumber(whatsappNumberId) {
|
|
43
48
|
return this.#http.requestJson({
|
|
@@ -46,5 +51,65 @@ export class ApiKeysResource {
|
|
|
46
51
|
body: { whatsappNumberId },
|
|
47
52
|
});
|
|
48
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* List the keys of one number (`GET /v1/numbers/{numberId}/api-keys`): the
|
|
56
|
+
* default key (`isPrimary: true`) plus named keys, masked (`prefix`/`last4`).
|
|
57
|
+
*
|
|
58
|
+
* Credential: a workspace key (`ps_workspace_…`) or an account key
|
|
59
|
+
* (`ps_account_…` + `workspaceId`, sent as `x-workspace-id`); number keys get 403.
|
|
60
|
+
*/
|
|
61
|
+
async listNumberKeys(numberId) {
|
|
62
|
+
return this.#http.requestJson({ method: "GET", path: numberKeysPath(numberId) });
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Create a NAMED key for one number (`POST /v1/numbers/{numberId}/api-keys`) → 201.
|
|
66
|
+
* The raw `apiKey.key` is returned ONCE — store it. `name` is 1–60 chars
|
|
67
|
+
* (400 `name_required` / `name_too_long`); at most 20 keys per number including
|
|
68
|
+
* the default (409 `limit_reached`). Same credentials as {@link listNumberKeys}.
|
|
69
|
+
* Not retried automatically.
|
|
70
|
+
*/
|
|
71
|
+
async createNumberKey(numberId, input) {
|
|
72
|
+
return this.#http.requestJson({
|
|
73
|
+
method: "POST",
|
|
74
|
+
path: numberKeysPath(numberId),
|
|
75
|
+
body: { name: input.name },
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Revoke one named key of a number (`DELETE /v1/numbers/{numberId}/api-keys/{keyId}`).
|
|
80
|
+
* It stops working immediately. The default key cannot be revoked here
|
|
81
|
+
* (409 `primary_key_use_regenerate`: use {@link regenerateNumber}).
|
|
82
|
+
*/
|
|
83
|
+
async revokeNumberKey(numberId, keyId) {
|
|
84
|
+
return this.#http.requestJson({
|
|
85
|
+
method: "DELETE",
|
|
86
|
+
path: `${numberKeysPath(numberId)}/${encodeURIComponent(keyId)}`,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Regenerate THE key of the calling scope (`POST /v1/api-keys/regenerate`) → 201.
|
|
91
|
+
*
|
|
92
|
+
* ⛔ **This revokes the key you are calling with.** A number-scoped key rotates
|
|
93
|
+
* itself; the workspace's primary key rotates itself. The OLD KEY STOPS WORKING
|
|
94
|
+
* IMMEDIATELY — every later call on this client answers 401 until you build a new
|
|
95
|
+
* client with the returned `key`, which is shown ONCE (store it before anything
|
|
96
|
+
* else). A named `ps_workspace_` key rotates the workspace's PRIMARY key and
|
|
97
|
+
* survives itself.
|
|
98
|
+
*
|
|
99
|
+
* Needs `apikeys:reveal` (OWNER) for an account key; a per-number OAuth grant is
|
|
100
|
+
* 403 `NUMBERS_GRANT_NOT_ALLOWED`. Never retried automatically by the SDK.
|
|
101
|
+
*
|
|
102
|
+
* **The previous key stops working immediately** (no grace period). To rotate
|
|
103
|
+
* without downtime, do not call this first: create a named workspace key
|
|
104
|
+
* (`ps_workspace_…`) with `workspaces.apiKeys.create(workspaceId, { name })`
|
|
105
|
+
* using an account key, or use an account key (`ps_account_…` + `workspaceId`)
|
|
106
|
+
* directly; switch your integration to it; then revoke the old key.
|
|
107
|
+
*/
|
|
108
|
+
async regenerate() {
|
|
109
|
+
return this.#http.requestJson({
|
|
110
|
+
method: "POST",
|
|
111
|
+
path: "/v1/api-keys/regenerate",
|
|
112
|
+
});
|
|
113
|
+
}
|
|
49
114
|
}
|
|
50
115
|
//# sourceMappingURL=api-keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../../src/resources/api-keys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../../src/resources/api-keys.ts"],"names":[],"mappings":"AAUA,MAAM,cAAc,GAAG,CAAC,QAAgB,EAAE,EAAE,CAC1C,eAAe,kBAAkB,CAAC,QAAQ,CAAC,WAAW,CAAC;AAEzD,MAAM,OAAO,eAAe;IACjB,KAAK,CAAa;IAE3B,YAAY,IAAgB;QAC1B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAmB;YAC9C,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,cAAc;SACrB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,gBAAgB,CAAC,gBAAwB;QAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAuB;YAClD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,EAAE,gBAAgB,EAAE;SAC3B,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,cAAc,CAAC,QAAgB;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAmB,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,eAAe,CAAC,QAAgB,EAAE,KAAuB;QAC7D,OAA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