nixflex 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.11.1 — 2026-11-28
2
+
3
+ - Docs: README points AI assistants to the Nixflex AI rules; contact email dev@nixflex.com
4
+
1
5
  # K9 — 2026-11-11 (same unpublished candidate versions)
2
6
 
3
7
  - Added voice campaign deletion to Node, Python sync/async, CLI and the confirmed MCP delete_campaign tool (97 tools total).
@@ -1,118 +1,118 @@
1
- # K6 examples — Node 0.11.0 / Python 0.4.0 / MCP 0.5.0
2
-
3
- Examples are not an instruction to perform a live write. Use your owned number and explicit environment; no keys or carrier secrets belong in source, terminal arguments or chat. API authentication is NIXFLEX_API_KEY. The read-only smoke is separate.
4
-
5
- ## Node / TypeScript
6
-
7
- ```ts
8
- import Nixflex, {NixflexDoNotContactError, NixflexInvalidRequestError,
9
- type Booking, type CallCompletedBookingEvent, type SmsBookingEvent} from 'nixflex';
10
- const client = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY!, baseUrl:process.env.NIXFLEX_BASE_URL!});
11
- const number = '+12025550123'; // fictional example; replace with your owned number
12
- const consent = await client.integrations.connectGoogleCalendar(number, 'https://app.example.test/calendar-return');
13
- // Present consent.url privately to the human; never auto-open or log it.
14
- const status = await client.integrations.getGoogleCalendar(number);
15
- if (status.needs_reconnect) { /* Request fresh human consent, not a silent reconnect. */ }
16
- const settings = await client.integrations.updateGoogleCalendarSettings(number, {
17
- timezone:'America/New_York', slot_minutes:30, calendar_id:'primary', send_invites:false,
18
- hours:{monday:['09:00','17:00'],tuesday:['09:00','17:00'],wednesday:['09:00','17:00'],
19
- thursday:['09:00','17:00'],friday:['09:00','17:00'],saturday:null,sunday:null}
20
- });
21
- // Only on a separate, deliberate disconnect request:
22
- await client.integrations.disconnectGoogleCalendar(number);
23
- // Sensitive routing change. Read values from a privately configured process, never log.
24
- const receipt = await client.phoneNumbers.updateCredentials(number, {
25
- twilio_sid:process.env.NIXFLEX_TWILIO_SID!,twilio_token:process.env.NIXFLEX_TWILIO_TOKEN!
26
- });
27
- try {
28
- await client.sms.send({agent_id:'your-agent-id',from_number:number,to:'+12025550124',message:'Requested information'});
29
- } catch (error) {
30
- if (error instanceof NixflexDoNotContactError) { /* Stop; do not resend or remove suppression. */ }
31
- else if (error instanceof NixflexInvalidRequestError) { /* Retain old 400 validation/suppression handling. */ }
32
- else throw error;
33
- }
34
- function bookingPart(event: CallCompletedBookingEvent | SmsBookingEvent): Booking[] {
35
- // Call only AFTER the existing verifier has checked the original raw webhook body.
36
- return event.event === 'call.completed' ? event.bookings : [event.booking];
37
- }
38
- ```
39
-
40
- Telnyx uses the same updateCredentials method with only `{telnyx_api_key:process.env.NIXFLEX_TELNYX_API_KEY!,telnyx_connection_id:process.env.NIXFLEX_TELNYX_CONNECTION_ID!}`. Never mix pairs or send provider in the body. Type assertions are not runtime secret validation; the method rejects missing/invalid pairs without HTTP.
41
-
42
- ## Python sync and async
43
-
44
- ```python
45
- import os
46
- from nixflex import (Nixflex, AsyncNixflex, NixflexDoNotContactError,
47
- NixflexInvalidRequestError, Booking, CallCompletedBookingEvent, SmsBookingEvent)
48
- number = '+12025550123'
49
- config = dict(api_key=os.environ['NIXFLEX_API_KEY'],base_url=os.environ['NIXFLEX_BASE_URL'])
50
- with Nixflex(**config) as client:
51
- consent = client.integrations.connect_google_calendar(number, 'https://app.example.test/calendar-return')
52
- # Present the short-lived link privately to a human; never print it to logs.
53
- status = client.integrations.get_google_calendar(number)
54
- settings = client.integrations.update_google_calendar_settings(number, send_invites=False)
55
- # Separate deliberate disconnect:
56
- client.integrations.disconnect_google_calendar(number)
57
- receipt = client.phone_numbers.update_credentials(number,
58
- telnyx_api_key=os.environ['NIXFLEX_TELNYX_API_KEY'],
59
- telnyx_connection_id=os.environ['NIXFLEX_TELNYX_CONNECTION_ID'])
60
- try:
61
- client.sms.send(agent_id='your-agent-id',from_number=number,to='+12025550124',message='Requested information')
62
- except NixflexDoNotContactError:
63
- pass # Stop; nothing sent. Do not retry or bypass opt-out.
64
- except NixflexInvalidRequestError:
65
- pass # Existing old-server 400 handling; not all validation failures mean opt-out.
66
-
67
- async def read_status():
68
- async with AsyncNixflex(**config) as client:
69
- return await client.integrations.get_google_calendar(number)
70
- # Every other method has the same arguments and is awaited in AsyncNixflex.
71
-
72
- def booking_part(event):
73
- # Only after raw-body signature verification. TypedDict is not authentication.
74
- return event['bookings'] if event['event'] == 'call.completed' else [event['booking']]
75
- ```
76
-
77
- ## CLI (PowerShell-safe argument shapes)
78
-
79
- Privately configure NIXFLEX_API_KEY, NIXFLEX_BASE_URL and the selected carrier pair. These command lines contain no secret values. These are independent actions, not one recommended sequence.
80
-
81
- ```powershell
82
- nixflex integrations connectGoogleCalendar '+12025550123' --return-url 'https://app.example.test/calendar-return' --confirm
83
- nixflex integrations getGoogleCalendar '+12025550123' --json
84
- nixflex integrations updateGoogleCalendarSettings '+12025550123' --body '@calendar-settings.json' --confirm
85
- nixflex integrations disconnectGoogleCalendar '+12025550123' --confirm
86
- nixflex numbers updateCredentials '+12025550123' --provider twilio --confirm --json
87
- # Alternative: a trusted local secret-manager process pipes the exact JSON pair to stdin:
88
- # <private secret-manager command> | nixflex numbers updateCredentials '+12025550123' --provider telnyx --credentials-stdin --confirm
89
- ```
90
-
91
- calendar-settings.json contains settings only, e.g. `{"send_invites":false}`; never carrier credentials. Omit --confirm to preview without a request. Credential commands reject --body, --key and secret flags before the argument parser can echo values. SMS --json errors expose status/type/code: stop on 409 do_not_contact; retain old 400 handling. Webhook types do not add a CLI listener or ingest endpoint.
92
-
93
- ## MCP — K6's five additions (current total: 96 with K7)
94
-
95
- Ask the human to approve the exact number/change before using confirm:true. Credentials are preconfigured privately in the SERVER process environment, never tool arguments or chat. Missing configuration sends nothing. Existing 89 tools retain their original safeguards.
96
-
97
- | Tool | Arguments example | Result |
98
- | --- | --- | --- |
99
- | connect_google_calendar | `{ "phone_number":"+12025550123", "return_url":"https://app.example.test/calendar-return", "confirm":true }` | Consent url + expires_at; human opens it |
100
- | get_google_calendar | `{ "phone_number":"+12025550123" }` | Six status fields including needs_reconnect and send_invites |
101
- | update_google_calendar_settings | `{ "phone_number":"+12025550123", "send_invites":false, "confirm":true }` | Safe settings, false preserved |
102
- | disconnect_google_calendar | `{ "phone_number":"+12025550123", "confirm":true }` | ok:true, connected:false; no claim of remote revoke |
103
- | update_phone_number_credentials | `{ "phone_number":"+12025550123", "provider":"twilio", "confirm":true }` | Number, provider, updated:true only |
104
-
105
- All new writes without confirmation return confirmation_required:true, sent:false. Google settings accepts the same fields as Node/Python, including the seven-day hours object above. Use provider telnyx for the alternate private environment pair. No bulk deletion, signup, suppression removal, campaign resume/consent or hidden-write Knowledge draft tool is added.
106
-
107
- MCP SMS errors use `error.status=409`, `error.type=conflict`, `error.code=do_not_contact`; report that nothing was sent and stop. Older 400 invalid_request remains generic. The shipped booking schema can validate the booking part of an authenticated webhook locally:
108
-
109
- ```js
110
- import {callCompletedBookingSchema, smsBookingSchema} from 'nixflex-mcp/k6-schemas.js';
111
- // verifiedEvent is supplied only after existing raw-body signature verification.
112
- function parseBookingEvent(verifiedEvent) {
113
- return verifiedEvent.event === 'call.completed'
114
- ? callCompletedBookingSchema.parse(verifiedEvent) : smsBookingSchema.parse(verifiedEvent);
115
- }
116
- ```
117
-
118
- No MCP webhook-receiver tool is registered. Booking required keys: action, booking_uid, start, end, attendee_name, attendee_email, service, timezone. Preserve null; service can be numeric. Never count internal already_exists lookups as mutations.
1
+ # K6 examples — Node 0.11.0 / Python 0.4.0 / MCP 0.5.0
2
+
3
+ Examples are not an instruction to perform a live write. Use your owned number and explicit environment; no keys or carrier secrets belong in source, terminal arguments or chat. API authentication is NIXFLEX_API_KEY. The read-only smoke is separate.
4
+
5
+ ## Node / TypeScript
6
+
7
+ ```ts
8
+ import Nixflex, {NixflexDoNotContactError, NixflexInvalidRequestError,
9
+ type Booking, type CallCompletedBookingEvent, type SmsBookingEvent} from 'nixflex';
10
+ const client = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY!, baseUrl:process.env.NIXFLEX_BASE_URL!});
11
+ const number = '+12025550123'; // fictional example; replace with your owned number
12
+ const consent = await client.integrations.connectGoogleCalendar(number, 'https://app.example.test/calendar-return');
13
+ // Present consent.url privately to the human; never auto-open or log it.
14
+ const status = await client.integrations.getGoogleCalendar(number);
15
+ if (status.needs_reconnect) { /* Request fresh human consent, not a silent reconnect. */ }
16
+ const settings = await client.integrations.updateGoogleCalendarSettings(number, {
17
+ timezone:'America/New_York', slot_minutes:30, calendar_id:'primary', send_invites:false,
18
+ hours:{monday:['09:00','17:00'],tuesday:['09:00','17:00'],wednesday:['09:00','17:00'],
19
+ thursday:['09:00','17:00'],friday:['09:00','17:00'],saturday:null,sunday:null}
20
+ });
21
+ // Only on a separate, deliberate disconnect request:
22
+ await client.integrations.disconnectGoogleCalendar(number);
23
+ // Sensitive routing change. Read values from a privately configured process, never log.
24
+ const receipt = await client.phoneNumbers.updateCredentials(number, {
25
+ twilio_sid:process.env.NIXFLEX_TWILIO_SID!,twilio_token:process.env.NIXFLEX_TWILIO_TOKEN!
26
+ });
27
+ try {
28
+ await client.sms.send({agent_id:'your-agent-id',from_number:number,to:'+12025550124',message:'Requested information'});
29
+ } catch (error) {
30
+ if (error instanceof NixflexDoNotContactError) { /* Stop; do not resend or remove suppression. */ }
31
+ else if (error instanceof NixflexInvalidRequestError) { /* Retain old 400 validation/suppression handling. */ }
32
+ else throw error;
33
+ }
34
+ function bookingPart(event: CallCompletedBookingEvent | SmsBookingEvent): Booking[] {
35
+ // Call only AFTER the existing verifier has checked the original raw webhook body.
36
+ return event.event === 'call.completed' ? event.bookings : [event.booking];
37
+ }
38
+ ```
39
+
40
+ Telnyx uses the same updateCredentials method with only `{telnyx_api_key:process.env.NIXFLEX_TELNYX_API_KEY!,telnyx_connection_id:process.env.NIXFLEX_TELNYX_CONNECTION_ID!}`. Never mix pairs or send provider in the body. Type assertions are not runtime secret validation; the method rejects missing/invalid pairs without HTTP.
41
+
42
+ ## Python sync and async
43
+
44
+ ```python
45
+ import os
46
+ from nixflex import (Nixflex, AsyncNixflex, NixflexDoNotContactError,
47
+ NixflexInvalidRequestError, Booking, CallCompletedBookingEvent, SmsBookingEvent)
48
+ number = '+12025550123'
49
+ config = dict(api_key=os.environ['NIXFLEX_API_KEY'],base_url=os.environ['NIXFLEX_BASE_URL'])
50
+ with Nixflex(**config) as client:
51
+ consent = client.integrations.connect_google_calendar(number, 'https://app.example.test/calendar-return')
52
+ # Present the short-lived link privately to a human; never print it to logs.
53
+ status = client.integrations.get_google_calendar(number)
54
+ settings = client.integrations.update_google_calendar_settings(number, send_invites=False)
55
+ # Separate deliberate disconnect:
56
+ client.integrations.disconnect_google_calendar(number)
57
+ receipt = client.phone_numbers.update_credentials(number,
58
+ telnyx_api_key=os.environ['NIXFLEX_TELNYX_API_KEY'],
59
+ telnyx_connection_id=os.environ['NIXFLEX_TELNYX_CONNECTION_ID'])
60
+ try:
61
+ client.sms.send(agent_id='your-agent-id',from_number=number,to='+12025550124',message='Requested information')
62
+ except NixflexDoNotContactError:
63
+ pass # Stop; nothing sent. Do not retry or bypass opt-out.
64
+ except NixflexInvalidRequestError:
65
+ pass # Existing old-server 400 handling; not all validation failures mean opt-out.
66
+
67
+ async def read_status():
68
+ async with AsyncNixflex(**config) as client:
69
+ return await client.integrations.get_google_calendar(number)
70
+ # Every other method has the same arguments and is awaited in AsyncNixflex.
71
+
72
+ def booking_part(event):
73
+ # Only after raw-body signature verification. TypedDict is not authentication.
74
+ return event['bookings'] if event['event'] == 'call.completed' else [event['booking']]
75
+ ```
76
+
77
+ ## CLI (PowerShell-safe argument shapes)
78
+
79
+ Privately configure NIXFLEX_API_KEY, NIXFLEX_BASE_URL and the selected carrier pair. These command lines contain no secret values. These are independent actions, not one recommended sequence.
80
+
81
+ ```powershell
82
+ nixflex integrations connectGoogleCalendar '+12025550123' --return-url 'https://app.example.test/calendar-return' --confirm
83
+ nixflex integrations getGoogleCalendar '+12025550123' --json
84
+ nixflex integrations updateGoogleCalendarSettings '+12025550123' --body '@calendar-settings.json' --confirm
85
+ nixflex integrations disconnectGoogleCalendar '+12025550123' --confirm
86
+ nixflex numbers updateCredentials '+12025550123' --provider twilio --confirm --json
87
+ # Alternative: a trusted local secret-manager process pipes the exact JSON pair to stdin:
88
+ # <private secret-manager command> | nixflex numbers updateCredentials '+12025550123' --provider telnyx --credentials-stdin --confirm
89
+ ```
90
+
91
+ calendar-settings.json contains settings only, e.g. `{"send_invites":false}`; never carrier credentials. Omit --confirm to preview without a request. Credential commands reject --body, --key and secret flags before the argument parser can echo values. SMS --json errors expose status/type/code: stop on 409 do_not_contact; retain old 400 handling. Webhook types do not add a CLI listener or ingest endpoint.
92
+
93
+ ## MCP — K6's five additions (current total: 96 with K7)
94
+
95
+ Ask the human to approve the exact number/change before using confirm:true. Credentials are preconfigured privately in the SERVER process environment, never tool arguments or chat. Missing configuration sends nothing. Existing 89 tools retain their original safeguards.
96
+
97
+ | Tool | Arguments example | Result |
98
+ | --- | --- | --- |
99
+ | connect_google_calendar | `{ "phone_number":"+12025550123", "return_url":"https://app.example.test/calendar-return", "confirm":true }` | Consent url + expires_at; human opens it |
100
+ | get_google_calendar | `{ "phone_number":"+12025550123" }` | Six status fields including needs_reconnect and send_invites |
101
+ | update_google_calendar_settings | `{ "phone_number":"+12025550123", "send_invites":false, "confirm":true }` | Safe settings, false preserved |
102
+ | disconnect_google_calendar | `{ "phone_number":"+12025550123", "confirm":true }` | ok:true, connected:false; no claim of remote revoke |
103
+ | update_phone_number_credentials | `{ "phone_number":"+12025550123", "provider":"twilio", "confirm":true }` | Number, provider, updated:true only |
104
+
105
+ All new writes without confirmation return confirmation_required:true, sent:false. Google settings accepts the same fields as Node/Python, including the seven-day hours object above. Use provider telnyx for the alternate private environment pair. No bulk deletion, signup, suppression removal, campaign resume/consent or hidden-write Knowledge draft tool is added.
106
+
107
+ MCP SMS errors use `error.status=409`, `error.type=conflict`, `error.code=do_not_contact`; report that nothing was sent and stop. Older 400 invalid_request remains generic. The shipped booking schema can validate the booking part of an authenticated webhook locally:
108
+
109
+ ```js
110
+ import {callCompletedBookingSchema, smsBookingSchema} from 'nixflex-mcp/k6-schemas.js';
111
+ // verifiedEvent is supplied only after existing raw-body signature verification.
112
+ function parseBookingEvent(verifiedEvent) {
113
+ return verifiedEvent.event === 'call.completed'
114
+ ? callCompletedBookingSchema.parse(verifiedEvent) : smsBookingSchema.parse(verifiedEvent);
115
+ }
116
+ ```
117
+
118
+ No MCP webhook-receiver tool is registered. Booking required keys: action, booking_uid, start, end, attendee_name, attendee_email, service, timezone. Preserve null; service can be numeric. Never count internal already_exists lookups as mutations.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Nixflex
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nixflex
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/ORGANISATIONS.md CHANGED
@@ -1,9 +1,9 @@
1
- # Organisations candidate — not published or ready to enable
2
-
3
- Engine SQL 104 and reviewed round 2 activation are required. Read `client.organisation.get()`, `.members()` and `.activity({before,actor})`. Manage `.invite(email,role)`, `.resend(inviteId)`, `.revoke(inviteId)`, `.removeMember(userId)`, `.setRole(userId,role)` and API-only `.claimInvite(email)`.
4
-
5
- These use the existing organisation API key and its Owner-level API authority. Removing a dashboard member does not invalidate an externally shared key; the Owner must roll that key separately. No new key is created. No personal acceptance, Leave, ownership transfer or account deletion is exposed through this resource. No automatic signing-secret disclosure.
6
-
7
- CLI: `nixflex organisation get`, `members`, `activity`; changes `invite`, `claim`, `resend ID`, `revoke ID`, `remove USER_ID`, `role USER_ID`. Use `--set email=person@example.com`, `--set role=member` (or admin), Activity `--set before=123 --set actor=UUID`. Review the default preview, then add `--confirm` to make a change. Never blindly repeat after an unknown response.
8
-
9
- The current SDK fixed-resource CLI coverage test has no Organisation mapping. It remains unchanged and fails deliberately until an additive test-map extension is approved. New behavioural tests prove each implemented route and preview. Do not publish this candidate while any full gate fails.
1
+ # Organisations candidate — not published or ready to enable
2
+
3
+ Engine SQL 104 and reviewed round 2 activation are required. Read `client.organisation.get()`, `.members()` and `.activity({before,actor})`. Manage `.invite(email,role)`, `.resend(inviteId)`, `.revoke(inviteId)`, `.removeMember(userId)`, `.setRole(userId,role)` and API-only `.claimInvite(email)`.
4
+
5
+ These use the existing organisation API key and its Owner-level API authority. Removing a dashboard member does not invalidate an externally shared key; the Owner must roll that key separately. No new key is created. No personal acceptance, Leave, ownership transfer or account deletion is exposed through this resource. No automatic signing-secret disclosure.
6
+
7
+ CLI: `nixflex organisation get`, `members`, `activity`; changes `invite`, `claim`, `resend ID`, `revoke ID`, `remove USER_ID`, `role USER_ID`. Use `--set email=person@example.com`, `--set role=member` (or admin), Activity `--set before=123 --set actor=UUID`. Review the default preview, then add `--confirm` to make a change. Never blindly repeat after an unknown response.
8
+
9
+ The current SDK fixed-resource CLI coverage test has no Organisation mapping. It remains unchanged and fails deliberately until an additive test-map extension is approved. New behavioural tests prove each implemented route and preview. Do not publish this candidate while any full gate fails.
package/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Nixflex Node SDK and CLI — 0.11.0 candidate
2
+ > **Building with AI?** Tell your assistant to read https://docs.nixflex.com/ai-rules.md first - the rules for building on Nixflex (safe defaults, costs, what to ask before acting). Full docs: https://docs.nixflex.com
2
3
 
3
4
  B57 deletion and voice campaign delete: see [B57-DELETES.md](B57-DELETES.md). K9 is an unpublished candidate; one DELETE, never an automatic retry.
4
5
 
@@ -1,69 +1,69 @@
1
- # Organisation and integration settings
2
-
3
- Use the account API key privately. It has Owner authority. These kits do not
4
- accept a teammate's dashboard session or impersonate a role.
5
-
6
- | Kit | Entry point |
7
- | --- | --- |
8
- | Node | client.organisation, client.integrations |
9
- | CLI | nixflex organisation, nixflex integrations |
10
- | Python sync/async | client.organisation, client.integrations |
11
- | MCP | See KITS-COVERAGE.md for included tools and deliberate exceptions |
12
-
13
- Organisation reads: get, members, activity. JSON activity accepts before, actor,
14
- from, to; Python spells from as from_. Dates are inclusive UTC calendar dates,
15
- clamped to retained history. IDs and next_cursor are strings; never parse them as
16
- floating-point numbers. Continue JSON pages with next_cursor as before until null.
17
-
18
- Node activityCsv and Python activity_csv stream CSV bytes. Python async usage is
19
- async for, not await. The server reads 500 rows per database chunk and rechecks
20
- authority each chunk. Closing/stopping early must close/aclose the iterator.
21
- Discard partial output after any error. Streaming never automatically restarts
22
- after yielding data. The CLI activityCsv --output FILE publishes the file only
23
- after completion and never overwrites an existing file.
24
-
25
- Organisation changes: invite, claimInvite/claim_invite, resend, revoke,
26
- removeMember/remove_member, setRole/set_role, rename. Personal acceptance, leave,
27
- ownership transfer and closure stay dashboard only. A sent invitation means
28
- provider acceptance, not delivery to the inbox. A resent invite replaces the old
29
- link. A membership 202/live_disconnect_pending means the change committed but
30
- live disconnection is unconfirmed; do not repeat the membership change blindly.
31
-
32
- Personal dashboard rules still apply there: Members cannot manage team/settings;
33
- Admins have permitted Member-management/settings rights but cannot manage Admins,
34
- rename the organisation, access keys, transfer ownership or close the account.
35
- The API key is Owner authority, so these kits cannot test personal Admin/Member
36
- access. Server refusals remain typed errors.
37
-
38
- Integration get/set/delete supports only calcom, slack, zapier, make, gohighlevel,
39
- webhook, webhook2, precall, web-calls. Use getAgentPrecall/setAgentPrecall/
40
- deleteAgentPrecall (snake_case in Python) for the agent default. Number pre-call
41
- overrides the default; removing the override can expose the default again.
42
-
43
- Provider PUT replaces stored configuration. Supply required credentials privately;
44
- omitted options reset to documented server defaults. Optional agent_id is only a
45
- fallback when the number has no assigned agent; it does not move the number.
46
- Web-call reads return the saved flag, not proof of effective availability.
47
-
48
- Functions use listFunctions/createFunction/updateFunction/deleteFunction
49
- (snake_case in Python). At most 15 per number; names are lowercase snake_case,
50
- maximum 64 characters; default method POST. timeout_ms defaults to 5000 and is
51
- clamped server-side to 1000..45000. PATCH only changes supplied fields; null
52
- speak_during clears it; an empty PATCH is refused. Reads expose has_headers,
53
- never the header values. Empty lists and successful no-op deletes are not proof
54
- of ownership or previous existence.
55
-
56
- SDKs return exact wire data without logging it. URLs can contain credentials:
57
- never print full integration responses. Use private body files/environment input.
58
- CLI display omits URLs, credential fields and free-form configuration, including
59
- webhook get/delete previews. Signing-secret retrieval is a private human action,
60
- not a kit method. Do not paste credential settings into an AI conversation.
61
-
62
- Every NEW CLI/MCP write needs explicit confirmation before any HTTP request.
63
- SDK writes are explicit method calls. Only GET may retry, with a bounded budget.
64
- Unknown write outcomes stay outcome_unknown / safe_to_retry:false: read current
65
- state before deciding whether to retry manually.
66
-
67
- K4-TEST.ps1 is read-only and uses built packages. It refuses every mutation at its
68
- transport boundary. Successful writes require a separately authorised manual test
69
- on disposable resources; never use the protected production/testing numbers.
1
+ # Organisation and integration settings
2
+
3
+ Use the account API key privately. It has Owner authority. These kits do not
4
+ accept a teammate's dashboard session or impersonate a role.
5
+
6
+ | Kit | Entry point |
7
+ | --- | --- |
8
+ | Node | client.organisation, client.integrations |
9
+ | CLI | nixflex organisation, nixflex integrations |
10
+ | Python sync/async | client.organisation, client.integrations |
11
+ | MCP | See KITS-COVERAGE.md for included tools and deliberate exceptions |
12
+
13
+ Organisation reads: get, members, activity. JSON activity accepts before, actor,
14
+ from, to; Python spells from as from_. Dates are inclusive UTC calendar dates,
15
+ clamped to retained history. IDs and next_cursor are strings; never parse them as
16
+ floating-point numbers. Continue JSON pages with next_cursor as before until null.
17
+
18
+ Node activityCsv and Python activity_csv stream CSV bytes. Python async usage is
19
+ async for, not await. The server reads 500 rows per database chunk and rechecks
20
+ authority each chunk. Closing/stopping early must close/aclose the iterator.
21
+ Discard partial output after any error. Streaming never automatically restarts
22
+ after yielding data. The CLI activityCsv --output FILE publishes the file only
23
+ after completion and never overwrites an existing file.
24
+
25
+ Organisation changes: invite, claimInvite/claim_invite, resend, revoke,
26
+ removeMember/remove_member, setRole/set_role, rename. Personal acceptance, leave,
27
+ ownership transfer and closure stay dashboard only. A sent invitation means
28
+ provider acceptance, not delivery to the inbox. A resent invite replaces the old
29
+ link. A membership 202/live_disconnect_pending means the change committed but
30
+ live disconnection is unconfirmed; do not repeat the membership change blindly.
31
+
32
+ Personal dashboard rules still apply there: Members cannot manage team/settings;
33
+ Admins have permitted Member-management/settings rights but cannot manage Admins,
34
+ rename the organisation, access keys, transfer ownership or close the account.
35
+ The API key is Owner authority, so these kits cannot test personal Admin/Member
36
+ access. Server refusals remain typed errors.
37
+
38
+ Integration get/set/delete supports only calcom, slack, zapier, make, gohighlevel,
39
+ webhook, webhook2, precall, web-calls. Use getAgentPrecall/setAgentPrecall/
40
+ deleteAgentPrecall (snake_case in Python) for the agent default. Number pre-call
41
+ overrides the default; removing the override can expose the default again.
42
+
43
+ Provider PUT replaces stored configuration. Supply required credentials privately;
44
+ omitted options reset to documented server defaults. Optional agent_id is only a
45
+ fallback when the number has no assigned agent; it does not move the number.
46
+ Web-call reads return the saved flag, not proof of effective availability.
47
+
48
+ Functions use listFunctions/createFunction/updateFunction/deleteFunction
49
+ (snake_case in Python). At most 15 per number; names are lowercase snake_case,
50
+ maximum 64 characters; default method POST. timeout_ms defaults to 5000 and is
51
+ clamped server-side to 1000..45000. PATCH only changes supplied fields; null
52
+ speak_during clears it; an empty PATCH is refused. Reads expose has_headers,
53
+ never the header values. Empty lists and successful no-op deletes are not proof
54
+ of ownership or previous existence.
55
+
56
+ SDKs return exact wire data without logging it. URLs can contain credentials:
57
+ never print full integration responses. Use private body files/environment input.
58
+ CLI display omits URLs, credential fields and free-form configuration, including
59
+ webhook get/delete previews. Signing-secret retrieval is a private human action,
60
+ not a kit method. Do not paste credential settings into an AI conversation.
61
+
62
+ Every NEW CLI/MCP write needs explicit confirmation before any HTTP request.
63
+ SDK writes are explicit method calls. Only GET may retry, with a bounded budget.
64
+ Unknown write outcomes stay outcome_unknown / safe_to_retry:false: read current
65
+ state before deciding whether to retry manually.
66
+
67
+ K4-TEST.ps1 is read-only and uses built packages. It refuses every mutation at its
68
+ transport boundary. Successful writes require a separately authorised manual test
69
+ on disposable resources; never use the protected production/testing numbers.
@@ -1,26 +1,26 @@
1
- # Bundled CLI dependency
2
-
3
- The MCP configuration editor in the CLI bundles jsonc-parser 3.3.1.
4
- The SDK library does not acquire a runtime dependency from this installer work.
5
-
6
- The MIT License (MIT)
7
-
8
- Copyright (c) Microsoft
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
- SOFTWARE.
1
+ # Bundled CLI dependency
2
+
3
+ The MCP configuration editor in the CLI bundles jsonc-parser 3.3.1.
4
+ The SDK library does not acquire a runtime dependency from this installer work.
5
+
6
+ The MIT License (MIT)
7
+
8
+ Copyright (c) Microsoft
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
package/dist/cli/index.js CHANGED
@@ -422,7 +422,7 @@ function queuedContentDelete(method, path2, status, body, requestId2) {
422
422
  }
423
423
 
424
424
  // src/client.ts
425
- var SDK_VERSION = "0.11.0";
425
+ var SDK_VERSION = "0.11.1";
426
426
  var DEFAULT_BASE_URL = "https://api.nixflex.com";
427
427
  var DEFAULT_TIMEOUT_MS = 3e4;
428
428
  var HttpClient = class {
@@ -4129,7 +4129,7 @@ async function setupMcp(app, { confirmed = false, localPackage, env = process.en
4129
4129
  }
4130
4130
 
4131
4131
  // src/cli/index.ts
4132
- var VERSION = true ? "0.11.0" : "0.0.0";
4132
+ var VERSION = true ? "0.11.1" : "0.0.0";
4133
4133
  var CONFIG_DIR = join4(homedir3(), ".nixflex");
4134
4134
  var CONFIG_FILE = join4(CONFIG_DIR, "config.json");
4135
4135
  function readConfig() {
package/dist/index.cjs CHANGED
@@ -444,7 +444,7 @@ function queuedContentDelete(method, path2, status, body, requestId2) {
444
444
  }
445
445
 
446
446
  // src/client.ts
447
- var SDK_VERSION = "0.11.0";
447
+ var SDK_VERSION = "0.11.1";
448
448
  var DEFAULT_BASE_URL = "https://api.nixflex.com";
449
449
  var DEFAULT_TIMEOUT_MS = 3e4;
450
450
  var HttpClient = class {
package/dist/index.js CHANGED
@@ -389,7 +389,7 @@ function queuedContentDelete(method, path2, status, body, requestId2) {
389
389
  }
390
390
 
391
391
  // src/client.ts
392
- var SDK_VERSION = "0.11.0";
392
+ var SDK_VERSION = "0.11.1";
393
393
  var DEFAULT_BASE_URL = "https://api.nixflex.com";
394
394
  var DEFAULT_TIMEOUT_MS = 3e4;
395
395
  var HttpClient = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nixflex",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
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",
@@ -68,5 +68,5 @@
68
68
  "tsup": "^8.0.0",
69
69
  "typescript": "^5.4.0"
70
70
  },
71
- "author": "Nixflex"
71
+ "author": "Nixflex <dev@nixflex.com>"
72
72
  }