@pilot-status/sdk 0.1.0 → 0.1.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/README.md +58 -10
- package/dist/client.d.ts +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +9 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/analytics.js +1 -1
- package/dist/resources/analytics.js.map +1 -1
- package/dist/resources/api-keys.d.ts +9 -0
- package/dist/resources/api-keys.d.ts.map +1 -0
- package/dist/resources/api-keys.js +29 -0
- package/dist/resources/api-keys.js.map +1 -0
- package/dist/resources/messages.d.ts +2 -1
- package/dist/resources/messages.d.ts.map +1 -1
- package/dist/resources/messages.js +9 -2
- package/dist/resources/messages.js.map +1 -1
- package/dist/resources/numbers.d.ts +9 -0
- package/dist/resources/numbers.d.ts.map +1 -0
- package/dist/resources/numbers.js +24 -0
- package/dist/resources/numbers.js.map +1 -0
- package/dist/resources/projects.d.ts +9 -0
- package/dist/resources/projects.d.ts.map +1 -0
- package/dist/resources/projects.js +23 -0
- package/dist/resources/projects.js.map +1 -0
- package/dist/types.d.ts +89 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
# @pilot-status/sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Official TypeScript SDK for the Pilot Status public API.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm i @pilot-status/sdk
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Quickstart (Node.js / TypeScript)
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Create an API key in the dashboard and use it only on the backend.
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
16
|
import { PilotStatusClient } from "@pilot-status/sdk";
|
|
@@ -22,13 +22,62 @@ const client = new PilotStatusClient({
|
|
|
22
22
|
const accepted = await client.messages.send({
|
|
23
23
|
templateId: "onboarding-test",
|
|
24
24
|
destinationNumber: "+5511999999999",
|
|
25
|
-
variables: { name: "
|
|
25
|
+
variables: { name: "John" },
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
const message = await client.messages.get(accepted.id);
|
|
29
29
|
console.log(message.status);
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
## Management (projects, API keys, numbers)
|
|
33
|
+
|
|
34
|
+
These endpoints create resources within the scope (project + environment) of the current `apiKey`.
|
|
35
|
+
|
|
36
|
+
### Projects
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const project = await client.projects.create({
|
|
40
|
+
name: "My Project",
|
|
41
|
+
description: "Optional description",
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
const projects = await client.projects.list();
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### API keys
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
const key = await client.apiKeys.create({
|
|
51
|
+
name: "Backend Key",
|
|
52
|
+
retentionDays: 30,
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const keys = await client.apiKeys.list();
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Numbers (WhatsApp)
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
const created = await client.numbers.create({
|
|
62
|
+
name: "My WhatsApp",
|
|
63
|
+
number: "+5511999999999",
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const status = await client.numbers.getStatus(created.instance.id);
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Opt-in check (destination authorization)
|
|
70
|
+
|
|
71
|
+
In LIVE, sending may require opt-in when using the Pilot Status WhatsApp number. You can check whether a destination is already authorized for your project:
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
const optIn = await client.messages.checkOptIn("+5511999999");
|
|
75
|
+
|
|
76
|
+
if (!optIn.authorized) {
|
|
77
|
+
throw new Error(`Missing opt-in: ${optIn.reason}`);
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
32
81
|
## Analytics
|
|
33
82
|
|
|
34
83
|
```ts
|
|
@@ -36,7 +85,7 @@ const stats = await client.analytics.getDashboardStats({ tz: "America/Sao_Paulo"
|
|
|
36
85
|
console.log(stats.totalSent, stats.failureRate);
|
|
37
86
|
```
|
|
38
87
|
|
|
39
|
-
## Webhooks (parse/
|
|
88
|
+
## Webhooks (parse / validation)
|
|
40
89
|
|
|
41
90
|
```ts
|
|
42
91
|
import { parseCustomerWebhook } from "@pilot-status/sdk";
|
|
@@ -53,9 +102,9 @@ export async function handler(req: Request) {
|
|
|
53
102
|
}
|
|
54
103
|
```
|
|
55
104
|
|
|
56
|
-
##
|
|
105
|
+
## Errors
|
|
57
106
|
|
|
58
|
-
|
|
107
|
+
For non-2xx responses, the SDK throws an HTTP error with `status` and, when available, `body`.
|
|
59
108
|
|
|
60
109
|
```ts
|
|
61
110
|
import { PilotStatusHttpError } from "@pilot-status/sdk";
|
|
@@ -72,4 +121,3 @@ try {
|
|
|
72
121
|
}
|
|
73
122
|
}
|
|
74
123
|
```
|
|
75
|
-
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { AnalyticsResource } from "./resources/analytics.js";
|
|
2
2
|
import { MessagesResource } from "./resources/messages.js";
|
|
3
|
+
import { ApiKeysResource } from "./resources/api-keys.js";
|
|
4
|
+
import { NumbersResource } from "./resources/numbers.js";
|
|
5
|
+
import { ProjectsResource } from "./resources/projects.js";
|
|
3
6
|
import { type FetchLike } from "./http.js";
|
|
4
7
|
export type PilotStatusClientOptions = {
|
|
5
8
|
apiKey: string;
|
|
@@ -11,6 +14,9 @@ export type PilotStatusClientOptions = {
|
|
|
11
14
|
export declare class PilotStatusClient {
|
|
12
15
|
readonly messages: MessagesResource;
|
|
13
16
|
readonly analytics: AnalyticsResource;
|
|
17
|
+
readonly apiKeys: ApiKeysResource;
|
|
18
|
+
readonly numbers: NumbersResource;
|
|
19
|
+
readonly projects: ProjectsResource;
|
|
14
20
|
constructor(options: PilotStatusClientOptions);
|
|
15
21
|
}
|
|
16
22
|
//# sourceMappingURL=client.d.ts.map
|
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,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAE7D,MAAM,MAAM,wBAAwB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,qBAAa,iBAAiB;IAC1B,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;
|
|
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,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAE7D,MAAM,MAAM,wBAAwB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,qBAAa,iBAAiB;IAC1B,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAExB,OAAO,EAAE,wBAAwB;CAyBhD"}
|
package/dist/client.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { AnalyticsResource } from "./resources/analytics.js";
|
|
2
2
|
import { MessagesResource } from "./resources/messages.js";
|
|
3
|
+
import { ApiKeysResource } from "./resources/api-keys.js";
|
|
4
|
+
import { NumbersResource } from "./resources/numbers.js";
|
|
5
|
+
import { ProjectsResource } from "./resources/projects.js";
|
|
3
6
|
import { createHttpClient } from "./http.js";
|
|
4
7
|
export class PilotStatusClient {
|
|
5
8
|
messages;
|
|
6
9
|
analytics;
|
|
10
|
+
apiKeys;
|
|
11
|
+
numbers;
|
|
12
|
+
projects;
|
|
7
13
|
constructor(options) {
|
|
8
14
|
const fetchImpl = options.fetch ?? globalThis.fetch;
|
|
9
15
|
if (!fetchImpl) {
|
|
@@ -19,6 +25,9 @@ export class PilotStatusClient {
|
|
|
19
25
|
});
|
|
20
26
|
this.messages = new MessagesResource(http);
|
|
21
27
|
this.analytics = new AnalyticsResource(http);
|
|
28
|
+
this.apiKeys = new ApiKeysResource(http);
|
|
29
|
+
this.numbers = new NumbersResource(http);
|
|
30
|
+
this.projects = new ProjectsResource(http);
|
|
22
31
|
}
|
|
23
32
|
}
|
|
24
33
|
//# sourceMappingURL=client.js.map
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAkB,MAAM,WAAW,CAAC;AAU7D,MAAM,OAAO,iBAAiB;IACjB,QAAQ,CAAmB;IAC3B,SAAS,CAAoB;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAkB,MAAM,WAAW,CAAC;AAU7D,MAAM,OAAO,iBAAiB;IACjB,QAAQ,CAAmB;IAC3B,SAAS,CAAoB;IAC7B,OAAO,CAAkB;IACzB,OAAO,CAAkB;IACzB,QAAQ,CAAmB;IAEpC,YAAY,OAAiC;QACzC,MAAM,SAAS,GACX,OAAO,CAAC,KAAK,IAAK,UAAkB,CAAC,KAAK,CAAC;QAE/C,IAAI,CAAC,SAAS,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CACX,6EAA6E,CAChF,CAAC;QACN,CAAC;QAED,MAAM,IAAI,GAAG,gBAAgB,CAAC;YAC1B,OAAO,EAAE,4BAA4B;YACrC,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,MAAM;YACtC,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,CAAC;SACtC,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;CACJ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { PilotStatusClient } from "./client.js";
|
|
|
2
2
|
export type { PilotStatusClientOptions } from "./client.js";
|
|
3
3
|
export { PilotStatusError, PilotStatusHttpError, AuthenticationError, ValidationError, ForbiddenError, NotFoundError, ConflictError, RateLimitError, ServerError, } from "./errors.js";
|
|
4
4
|
export type { PilotStatusErrorBody } from "./errors.js";
|
|
5
|
-
export type { Environment, MessageStatus, SendMessageInput, SendMessageAccepted, MessageDetails, DashboardStats, } from "./types.js";
|
|
5
|
+
export type { Environment, MessageStatus, SendMessageInput, SendMessageAccepted, MessageDetails, DashboardStats, OptInCheckResult, Project, CreateProjectInput, ApiKeyCreateInput, ApiKeyCreated, ApiKeyListItem, WhatsAppNumberInstance, CreateNumberInput, CreateNumberResult, NumberStatusResult, } from "./types.js";
|
|
6
6
|
export type { CustomerWebhookEvent, MessageSentEvent, MessageReadEvent, MessageFailedEvent, MessageReplyEvent, } from "./webhooks/types.js";
|
|
7
7
|
export { parseCustomerWebhook, isCustomerWebhookEvent } from "./webhooks/parse.js";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,EACH,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,WAAW,GACd,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,YAAY,EACR,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,EACH,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,WAAW,GACd,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,YAAY,EACR,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GACrB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACR,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EACH,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,WAAW,GACd,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EACH,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,WAAW,GACd,MAAM,aAAa,CAAC;AA6BrB,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../src/resources/analytics.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,iBAAiB;IACjB,KAAK,CAAa;IAE3B,YAAY,IAAgB;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,MAAwB;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAiB;YAC1C,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../src/resources/analytics.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,iBAAiB;IACjB,KAAK,CAAa;IAE3B,YAAY,IAAgB;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,MAAwB;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAiB;YAC1C,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,yBAAyB;YAC/B,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;SAC5B,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { ApiKeyCreateInput, ApiKeyCreated, ApiKeyListItem } from "../types.js";
|
|
3
|
+
export declare class ApiKeysResource {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
list(): Promise<ApiKeyListItem[]>;
|
|
7
|
+
create(input: ApiKeyCreateInput): Promise<ApiKeyCreated>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=api-keys.d.ts.map
|
|
@@ -0,0 +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,EAAE,iBAAiB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEpF,qBAAa,eAAe;;gBAGZ,IAAI,EAAE,UAAU;IAItB,IAAI,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAOjC,MAAM,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC;CAgBjE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export class ApiKeysResource {
|
|
2
|
+
#http;
|
|
3
|
+
constructor(http) {
|
|
4
|
+
this.#http = http;
|
|
5
|
+
}
|
|
6
|
+
async list() {
|
|
7
|
+
return this.#http.requestJson({
|
|
8
|
+
method: "GET",
|
|
9
|
+
path: "/v1/api-keys",
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
async create(input) {
|
|
13
|
+
return this.#http.requestJson({
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/v1/api-keys",
|
|
16
|
+
body: {
|
|
17
|
+
name: input.name,
|
|
18
|
+
...(input.webhookId !== undefined ? { webhookId: input.webhookId } : {}),
|
|
19
|
+
...(input.whatsappInstanceId !== undefined
|
|
20
|
+
? { whatsappInstanceId: input.whatsappInstanceId }
|
|
21
|
+
: {}),
|
|
22
|
+
...(input.retentionDays !== undefined
|
|
23
|
+
? { retentionDays: input.retentionDays }
|
|
24
|
+
: {}),
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=api-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../../src/resources/api-keys.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,eAAe;IACf,KAAK,CAAa;IAE3B,YAAY,IAAgB;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAmB;YAC5C,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,cAAc;SACvB,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAAwB;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAgB;YACzC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE;gBACF,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,GAAG,CAAC,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACxE,GAAG,CAAC,KAAK,CAAC,kBAAkB,KAAK,SAAS;oBACtC,CAAC,CAAC,EAAE,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,EAAE;oBAClD,CAAC,CAAC,EAAE,CAAC;gBACT,GAAG,CAAC,KAAK,CAAC,aAAa,KAAK,SAAS;oBACjC,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE;oBACxC,CAAC,CAAC,EAAE,CAAC;aACZ;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { HttpClient } from "../http.js";
|
|
2
|
-
import type { MessageDetails, SendMessageAccepted, SendMessageInput } from "../types.js";
|
|
2
|
+
import type { MessageDetails, OptInCheckResult, SendMessageAccepted, SendMessageInput } from "../types.js";
|
|
3
3
|
export declare class MessagesResource {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(http: HttpClient);
|
|
6
6
|
send(input: SendMessageInput): Promise<SendMessageAccepted>;
|
|
7
7
|
get(id: string): Promise<MessageDetails>;
|
|
8
|
+
checkOptIn(destinationNumber: string): Promise<OptInCheckResult>;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EACR,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EACnB,MAAM,aAAa,CAAC;AAErB,qBAAa,gBAAgB;;gBAGb,IAAI,EAAE,UAAU;IAItB,IAAI,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAY3D,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAOxC,UAAU,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAOzE"}
|
|
@@ -6,7 +6,7 @@ export class MessagesResource {
|
|
|
6
6
|
async send(input) {
|
|
7
7
|
return this.#http.requestJson({
|
|
8
8
|
method: "POST",
|
|
9
|
-
path: "/
|
|
9
|
+
path: "/v1/messages/send",
|
|
10
10
|
body: {
|
|
11
11
|
templateId: input.templateId,
|
|
12
12
|
destinationNumber: input.destinationNumber,
|
|
@@ -17,7 +17,14 @@ export class MessagesResource {
|
|
|
17
17
|
async get(id) {
|
|
18
18
|
return this.#http.requestJson({
|
|
19
19
|
method: "GET",
|
|
20
|
-
path: `/
|
|
20
|
+
path: `/v1/messages/${encodeURIComponent(id)}`,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
async checkOptIn(destinationNumber) {
|
|
24
|
+
return this.#http.requestJson({
|
|
25
|
+
method: "GET",
|
|
26
|
+
path: "/v1/messages/opt-in",
|
|
27
|
+
query: { destinationNumber },
|
|
21
28
|
});
|
|
22
29
|
}
|
|
23
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/messages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/messages.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,gBAAgB;IAChB,KAAK,CAAa;IAE3B,YAAY,IAAgB;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,KAAuB;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAsB;YAC/C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE;gBACF,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;gBAC1C,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,EAAE;aACnC;SACJ,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAiB;YAC1C,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE;SACjD,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,iBAAyB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAmB;YAC5C,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,EAAE,iBAAiB,EAAE;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { CreateNumberInput, CreateNumberResult, NumberStatusResult } from "../types.js";
|
|
3
|
+
export declare class NumbersResource {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
create(input: CreateNumberInput): Promise<CreateNumberResult>;
|
|
7
|
+
getStatus(id: string): Promise<NumberStatusResult>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=numbers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["../../src/resources/numbers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE7F,qBAAa,eAAe;;gBAGZ,IAAI,EAAE,UAAU;IAItB,MAAM,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAY7D,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAM3D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class NumbersResource {
|
|
2
|
+
#http;
|
|
3
|
+
constructor(http) {
|
|
4
|
+
this.#http = http;
|
|
5
|
+
}
|
|
6
|
+
async create(input) {
|
|
7
|
+
return this.#http.requestJson({
|
|
8
|
+
method: "POST",
|
|
9
|
+
path: "/v1/numbers",
|
|
10
|
+
body: {
|
|
11
|
+
name: input.name,
|
|
12
|
+
number: input.number,
|
|
13
|
+
...(input.linkToApiKey !== undefined ? { linkToApiKey: input.linkToApiKey } : {}),
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async getStatus(id) {
|
|
18
|
+
return this.#http.requestJson({
|
|
19
|
+
method: "GET",
|
|
20
|
+
path: `/v1/numbers/${encodeURIComponent(id)}/status`,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=numbers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numbers.js","sourceRoot":"","sources":["../../src/resources/numbers.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,eAAe;IACf,KAAK,CAAa;IAE3B,YAAY,IAAgB;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAAwB;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAqB;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE;gBACF,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,GAAG,CAAC,KAAK,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACpF;SACJ,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAqB;YAC9C,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,eAAe,kBAAkB,CAAC,EAAE,CAAC,SAAS;SACvD,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { CreateProjectInput, Project } from "../types.js";
|
|
3
|
+
export declare class ProjectsResource {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
list(): Promise<Project[]>;
|
|
7
|
+
create(input: CreateProjectInput): Promise<Project>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/resources/projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE/D,qBAAa,gBAAgB;;gBAGb,IAAI,EAAE,UAAU;IAItB,IAAI,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAO1B,MAAM,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;CAU5D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export class ProjectsResource {
|
|
2
|
+
#http;
|
|
3
|
+
constructor(http) {
|
|
4
|
+
this.#http = http;
|
|
5
|
+
}
|
|
6
|
+
async list() {
|
|
7
|
+
return this.#http.requestJson({
|
|
8
|
+
method: "GET",
|
|
9
|
+
path: "/v1/projects",
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
async create(input) {
|
|
13
|
+
return this.#http.requestJson({
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/v1/projects",
|
|
16
|
+
body: {
|
|
17
|
+
name: input.name,
|
|
18
|
+
...(input.description !== undefined ? { description: input.description } : {}),
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=projects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/resources/projects.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,gBAAgB;IAChB,KAAK,CAAa;IAE3B,YAAY,IAAgB;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAY;YACrC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,cAAc;SACvB,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAAyB;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAU;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE;gBACF,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,GAAG,CAAC,KAAK,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACjF;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
|
package/dist/types.d.ts
CHANGED
|
@@ -40,4 +40,93 @@ export type DashboardStats = {
|
|
|
40
40
|
read: number;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
+
export type OptInCheckResult = {
|
|
44
|
+
authorized: boolean;
|
|
45
|
+
required: boolean;
|
|
46
|
+
enabled: boolean;
|
|
47
|
+
reason: "OPTIN_DISABLED" | "NON_DEFAULT_INSTANCE" | "NOT_LIVE" | "MISSING_PROJECT" | "INVALID_PHONE" | "NO_OPTIN" | null;
|
|
48
|
+
firstOptInAt: string | null;
|
|
49
|
+
lastSeenAt: string | null;
|
|
50
|
+
};
|
|
51
|
+
export type Project = {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
slug: string;
|
|
55
|
+
description: string;
|
|
56
|
+
productionApproved: boolean;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
};
|
|
59
|
+
export type CreateProjectInput = {
|
|
60
|
+
name: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
};
|
|
63
|
+
export type ApiKeyCreateInput = {
|
|
64
|
+
name: string;
|
|
65
|
+
webhookId?: string | null;
|
|
66
|
+
whatsappInstanceId?: string | null;
|
|
67
|
+
retentionDays?: number;
|
|
68
|
+
};
|
|
69
|
+
export type ApiKeyCreated = {
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
environment: Environment;
|
|
73
|
+
key: string;
|
|
74
|
+
keyPrefix: string;
|
|
75
|
+
createdAt: string;
|
|
76
|
+
webhookId: string | null;
|
|
77
|
+
whatsappInstanceId: string | null;
|
|
78
|
+
retentionDays: number;
|
|
79
|
+
};
|
|
80
|
+
export type ApiKeyListItem = {
|
|
81
|
+
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
keyPrefix: string;
|
|
84
|
+
environment: Environment;
|
|
85
|
+
lastUsedAt: string | null;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
webhookId: string | null;
|
|
88
|
+
projectId: string | null;
|
|
89
|
+
webhook: {
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
url: string;
|
|
93
|
+
} | null;
|
|
94
|
+
whatsappInstanceId: string | null;
|
|
95
|
+
whatsappInstance: {
|
|
96
|
+
id: string;
|
|
97
|
+
instanceName: string;
|
|
98
|
+
displayName: string;
|
|
99
|
+
number: string;
|
|
100
|
+
state: string;
|
|
101
|
+
} | null;
|
|
102
|
+
retentionDays: number;
|
|
103
|
+
};
|
|
104
|
+
export type WhatsAppNumberInstance = {
|
|
105
|
+
id: string;
|
|
106
|
+
tenantId: string;
|
|
107
|
+
instanceName: string;
|
|
108
|
+
number: string;
|
|
109
|
+
displayName: string;
|
|
110
|
+
state: string;
|
|
111
|
+
integration: string;
|
|
112
|
+
createdAt: string;
|
|
113
|
+
updatedAt: string;
|
|
114
|
+
name: string;
|
|
115
|
+
status: string;
|
|
116
|
+
quality: "GOOD" | "UNKNOWN";
|
|
117
|
+
};
|
|
118
|
+
export type CreateNumberInput = {
|
|
119
|
+
name: string;
|
|
120
|
+
number: string;
|
|
121
|
+
linkToApiKey?: boolean;
|
|
122
|
+
};
|
|
123
|
+
export type CreateNumberResult = {
|
|
124
|
+
instance: WhatsAppNumberInstance;
|
|
125
|
+
qrcodeBase64: string | null;
|
|
126
|
+
linkedApiKeyId: string | null;
|
|
127
|
+
};
|
|
128
|
+
export type NumberStatusResult = {
|
|
129
|
+
id: string;
|
|
130
|
+
state: string;
|
|
131
|
+
};
|
|
43
132
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EA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