nixflex 0.6.0 → 0.8.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 +9 -0
- package/dist/cli/index.js +1376 -0
- package/dist/index.cjs +6 -6
- package/dist/index.js +3 -3
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -17,8 +17,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
19
|
// src/index.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
20
|
+
var src_exports = {};
|
|
21
|
+
__export(src_exports, {
|
|
22
22
|
Nixflex: () => Nixflex,
|
|
23
23
|
NixflexAuthenticationError: () => NixflexAuthenticationError,
|
|
24
24
|
NixflexConnectionError: () => NixflexConnectionError,
|
|
@@ -28,11 +28,11 @@ __export(index_exports, {
|
|
|
28
28
|
NixflexPaymentRequiredError: () => NixflexPaymentRequiredError,
|
|
29
29
|
NixflexRateLimitError: () => NixflexRateLimitError,
|
|
30
30
|
NixflexServerError: () => NixflexServerError,
|
|
31
|
-
default: () =>
|
|
31
|
+
default: () => src_default,
|
|
32
32
|
errorFromResponse: () => errorFromResponse,
|
|
33
33
|
verifyWebhookSignature: () => verifyWebhookSignature
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
35
|
+
module.exports = __toCommonJS(src_exports);
|
|
36
36
|
|
|
37
37
|
// src/errors.ts
|
|
38
38
|
var NixflexError = class extends Error {
|
|
@@ -117,7 +117,7 @@ function errorFromResponse(status, body, requestId, retryAfterSeconds) {
|
|
|
117
117
|
// src/client.ts
|
|
118
118
|
var DEFAULT_BASE_URL = "https://api.nixflex.com";
|
|
119
119
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
120
|
-
var SDK_VERSION = "0.
|
|
120
|
+
var SDK_VERSION = "0.8.0";
|
|
121
121
|
var HttpClient = class {
|
|
122
122
|
apiKey;
|
|
123
123
|
baseUrl;
|
|
@@ -651,7 +651,7 @@ var Nixflex = class {
|
|
|
651
651
|
return body;
|
|
652
652
|
}
|
|
653
653
|
};
|
|
654
|
-
var
|
|
654
|
+
var src_default = Nixflex;
|
|
655
655
|
// Annotate the CommonJS export names for ESM import in node:
|
|
656
656
|
0 && (module.exports = {
|
|
657
657
|
Nixflex,
|
package/dist/index.js
CHANGED
|
@@ -81,7 +81,7 @@ function errorFromResponse(status, body, requestId, retryAfterSeconds) {
|
|
|
81
81
|
// src/client.ts
|
|
82
82
|
var DEFAULT_BASE_URL = "https://api.nixflex.com";
|
|
83
83
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
84
|
-
var SDK_VERSION = "0.
|
|
84
|
+
var SDK_VERSION = "0.8.0";
|
|
85
85
|
var HttpClient = class {
|
|
86
86
|
apiKey;
|
|
87
87
|
baseUrl;
|
|
@@ -615,7 +615,7 @@ var Nixflex = class {
|
|
|
615
615
|
return body;
|
|
616
616
|
}
|
|
617
617
|
};
|
|
618
|
-
var
|
|
618
|
+
var src_default = Nixflex;
|
|
619
619
|
export {
|
|
620
620
|
Nixflex,
|
|
621
621
|
NixflexAuthenticationError,
|
|
@@ -626,7 +626,7 @@ export {
|
|
|
626
626
|
NixflexPaymentRequiredError,
|
|
627
627
|
NixflexRateLimitError,
|
|
628
628
|
NixflexServerError,
|
|
629
|
-
|
|
629
|
+
src_default as default,
|
|
630
630
|
errorFromResponse,
|
|
631
631
|
verifyWebhookSignature
|
|
632
632
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nixflex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Official Node.js SDK for the Nixflex voice AI platform - AI phone agents, outbound campaigns, and SMS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nixflex",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"type": "module",
|
|
29
|
+
"bin": { "nixflex": "./dist/cli/index.js" },
|
|
29
30
|
"main": "./dist/index.cjs",
|
|
30
31
|
"module": "./dist/index.js",
|
|
31
32
|
"types": "./dist/index.d.ts",
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
"node": ">=18"
|
|
47
48
|
},
|
|
48
49
|
"scripts": {
|
|
49
|
-
"build": "tsup
|
|
50
|
+
"build": "tsup",
|
|
50
51
|
"check": "node --test tests/*.test.cjs",
|
|
51
52
|
"prepublishOnly": "npm run build && npm run check"
|
|
52
53
|
},
|