@sayna-ai/node-sdk 0.0.13 → 0.0.15

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 CHANGED
@@ -152,10 +152,10 @@ Sets or updates SIP webhook hooks in the runtime cache. Hooks with matching host
152
152
 
153
153
  Each `SipHook` object contains:
154
154
 
155
- | field | type | description |
156
- | --------- | -------- | ---------------------------------------------------------------------------------------------------------------------- |
157
- | `host` | `string` | SIP domain pattern (case-insensitive). |
158
- | `url` | `string` | HTTPS URL to forward webhook events to. |
155
+ | field | type | description |
156
+ | --------- | -------- | --------------------------------------------------------------------------------------------------------------------- |
157
+ | `host` | `string` | SIP domain pattern (case-insensitive). |
158
+ | `url` | `string` | HTTPS URL to forward webhook events to. |
159
159
  | `auth_id` | `string` | Tenant identifier for this hook. Required but may be empty for unauthenticated mode. Treat as opaque; pass unchanged. |
160
160
 
161
161
  **Returns**: `Promise<SipHooksResponse>` - Object containing the merged list of all configured hooks.
@@ -164,8 +164,16 @@ Each `SipHook` object contains:
164
164
 
165
165
  ```typescript
166
166
  const response = await client.setSipHooks([
167
- { host: "example.com", url: "https://webhook.example.com/events", auth_id: "tenant-123" },
168
- { host: "another.com", url: "https://webhook.another.com/events", auth_id: "" }, // Empty for unauthenticated mode
167
+ {
168
+ host: "example.com",
169
+ url: "https://webhook.example.com/events",
170
+ auth_id: "tenant-123",
171
+ },
172
+ {
173
+ host: "another.com",
174
+ url: "https://webhook.another.com/events",
175
+ auth_id: "",
176
+ }, // Empty for unauthenticated mode
169
177
  ]);
170
178
  console.log("Total hooks configured:", response.hooks.length);
171
179
  ```