phonic 0.31.12 → 0.31.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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +6 -0
- package/dist/cjs/Client.js +20 -10
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +6 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +54 -0
- package/dist/cjs/api/errors/index.d.ts +1 -0
- package/dist/cjs/api/errors/index.js +1 -0
- package/dist/cjs/api/resources/conversationItems/client/Client.d.ts +39 -0
- package/dist/cjs/api/resources/conversationItems/client/Client.js +139 -0
- package/dist/cjs/api/resources/conversationItems/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/conversationItems/client/index.js +17 -0
- package/dist/cjs/api/resources/conversationItems/client/requests/ReplayConversationItemRequest.d.ts +12 -0
- package/dist/cjs/api/resources/conversationItems/client/requests/ReplayConversationItemRequest.js +3 -0
- package/dist/cjs/api/resources/conversationItems/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/conversationItems/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/conversationItems/exports.d.ts +2 -0
- package/dist/cjs/api/resources/conversationItems/exports.js +21 -0
- package/dist/cjs/api/resources/conversationItems/index.d.ts +1 -0
- package/dist/cjs/api/resources/conversationItems/index.js +17 -0
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/conversations/client/Client.js +3 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsListResponse.d.ts +1 -9
- package/dist/cjs/api/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/index.js +5 -1
- package/dist/cjs/api/resources/projects/client/requests/UpdateProjectRequest.d.ts +2 -0
- package/dist/cjs/api/resources/workspace/client/Client.d.ts +26 -0
- package/dist/cjs/api/resources/workspace/client/Client.js +110 -0
- package/dist/cjs/api/resources/workspace/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/workspace/client/index.js +2 -0
- package/dist/cjs/api/resources/workspace/exports.d.ts +2 -0
- package/dist/cjs/api/resources/workspace/exports.js +21 -0
- package/dist/cjs/api/resources/workspace/index.d.ts +2 -0
- package/dist/cjs/api/resources/workspace/index.js +18 -0
- package/dist/cjs/api/resources/workspace/types/WorkspaceGetResponse.d.ts +6 -0
- package/dist/cjs/api/resources/workspace/types/WorkspaceGetResponse.js +3 -0
- package/dist/cjs/api/resources/workspace/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/workspace/types/index.js +17 -0
- package/dist/cjs/api/types/BadRequestErrorBody.d.ts +1 -1
- package/dist/cjs/api/types/Conversation.d.ts +8 -0
- package/dist/cjs/api/types/ConversationItem.d.ts +2 -0
- package/dist/cjs/api/types/ConversationsListResponseConversation.d.ts +4 -0
- package/dist/cjs/api/types/ConversationsListResponseConversation.js +3 -0
- package/dist/cjs/api/types/ConversationsListResponseConversations.d.ts +5 -0
- package/dist/cjs/api/types/ConversationsListResponseConversations.js +3 -0
- package/dist/cjs/api/types/ConversationsListResponseConversationsPagination.d.ts +6 -0
- package/dist/cjs/api/types/ConversationsListResponseConversationsPagination.js +3 -0
- package/dist/cjs/api/types/Project.d.ts +4 -0
- package/dist/cjs/api/types/ReplayConversationItemResponse.d.ts +16 -0
- package/dist/cjs/api/types/ReplayConversationItemResponse.js +3 -0
- package/dist/cjs/api/types/ReplayToolCall.d.ts +29 -0
- package/dist/cjs/api/types/ReplayToolCall.js +12 -0
- package/dist/cjs/api/types/SipCallError.d.ts +24 -0
- package/dist/cjs/api/types/SipCallError.js +16 -0
- package/dist/cjs/api/types/index.d.ts +6 -0
- package/dist/cjs/api/types/index.js +6 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +6 -0
- package/dist/esm/Client.mjs +10 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +6 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +17 -0
- package/dist/esm/api/errors/index.d.mts +1 -0
- package/dist/esm/api/errors/index.mjs +1 -0
- package/dist/esm/api/resources/conversationItems/client/Client.d.mts +39 -0
- package/dist/esm/api/resources/conversationItems/client/Client.mjs +102 -0
- package/dist/esm/api/resources/conversationItems/client/index.d.mts +1 -0
- package/dist/esm/api/resources/conversationItems/client/index.mjs +1 -0
- package/dist/esm/api/resources/conversationItems/client/requests/ReplayConversationItemRequest.d.mts +12 -0
- package/dist/esm/api/resources/conversationItems/client/requests/ReplayConversationItemRequest.mjs +2 -0
- package/dist/esm/api/resources/conversationItems/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/conversationItems/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/conversationItems/exports.d.mts +2 -0
- package/dist/esm/api/resources/conversationItems/exports.mjs +3 -0
- package/dist/esm/api/resources/conversationItems/index.d.mts +1 -0
- package/dist/esm/api/resources/conversationItems/index.mjs +1 -0
- package/dist/esm/api/resources/conversations/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/conversations/client/Client.mjs +3 -0
- package/dist/esm/api/resources/conversations/types/ConversationsListResponse.d.mts +1 -9
- package/dist/esm/api/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/index.mjs +4 -0
- package/dist/esm/api/resources/projects/client/requests/UpdateProjectRequest.d.mts +2 -0
- package/dist/esm/api/resources/workspace/client/Client.d.mts +26 -0
- package/dist/esm/api/resources/workspace/client/Client.mjs +73 -0
- package/dist/esm/api/resources/workspace/client/index.d.mts +1 -0
- package/dist/esm/api/resources/workspace/client/index.mjs +1 -0
- package/dist/esm/api/resources/workspace/exports.d.mts +2 -0
- package/dist/esm/api/resources/workspace/exports.mjs +3 -0
- package/dist/esm/api/resources/workspace/index.d.mts +2 -0
- package/dist/esm/api/resources/workspace/index.mjs +2 -0
- package/dist/esm/api/resources/workspace/types/WorkspaceGetResponse.d.mts +6 -0
- package/dist/esm/api/resources/workspace/types/WorkspaceGetResponse.mjs +2 -0
- package/dist/esm/api/resources/workspace/types/index.d.mts +1 -0
- package/dist/esm/api/resources/workspace/types/index.mjs +1 -0
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +1 -1
- package/dist/esm/api/types/Conversation.d.mts +8 -0
- package/dist/esm/api/types/ConversationItem.d.mts +2 -0
- package/dist/esm/api/types/ConversationsListResponseConversation.d.mts +4 -0
- package/dist/esm/api/types/ConversationsListResponseConversation.mjs +2 -0
- package/dist/esm/api/types/ConversationsListResponseConversations.d.mts +5 -0
- package/dist/esm/api/types/ConversationsListResponseConversations.mjs +2 -0
- package/dist/esm/api/types/ConversationsListResponseConversationsPagination.d.mts +6 -0
- package/dist/esm/api/types/ConversationsListResponseConversationsPagination.mjs +2 -0
- package/dist/esm/api/types/Project.d.mts +4 -0
- package/dist/esm/api/types/ReplayConversationItemResponse.d.mts +16 -0
- package/dist/esm/api/types/ReplayConversationItemResponse.mjs +2 -0
- package/dist/esm/api/types/ReplayToolCall.d.mts +29 -0
- package/dist/esm/api/types/ReplayToolCall.mjs +9 -0
- package/dist/esm/api/types/SipCallError.d.mts +24 -0
- package/dist/esm/api/types/SipCallError.mjs +13 -0
- package/dist/esm/api/types/index.d.mts +6 -0
- package/dist/esm/api/types/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +30 -8
- package/reference.md +134 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phonic",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -67,6 +67,28 @@
|
|
|
67
67
|
},
|
|
68
68
|
"default": "./dist/cjs/api/resources/voices/exports.js"
|
|
69
69
|
},
|
|
70
|
+
"./workspace": {
|
|
71
|
+
"import": {
|
|
72
|
+
"types": "./dist/esm/api/resources/workspace/exports.d.mts",
|
|
73
|
+
"default": "./dist/esm/api/resources/workspace/exports.mjs"
|
|
74
|
+
},
|
|
75
|
+
"require": {
|
|
76
|
+
"types": "./dist/cjs/api/resources/workspace/exports.d.ts",
|
|
77
|
+
"default": "./dist/cjs/api/resources/workspace/exports.js"
|
|
78
|
+
},
|
|
79
|
+
"default": "./dist/cjs/api/resources/workspace/exports.js"
|
|
80
|
+
},
|
|
81
|
+
"./conversationItems": {
|
|
82
|
+
"import": {
|
|
83
|
+
"types": "./dist/esm/api/resources/conversationItems/exports.d.mts",
|
|
84
|
+
"default": "./dist/esm/api/resources/conversationItems/exports.mjs"
|
|
85
|
+
},
|
|
86
|
+
"require": {
|
|
87
|
+
"types": "./dist/cjs/api/resources/conversationItems/exports.d.ts",
|
|
88
|
+
"default": "./dist/cjs/api/resources/conversationItems/exports.js"
|
|
89
|
+
},
|
|
90
|
+
"default": "./dist/cjs/api/resources/conversationItems/exports.js"
|
|
91
|
+
},
|
|
70
92
|
"./conversations": {
|
|
71
93
|
"import": {
|
|
72
94
|
"types": "./dist/esm/api/resources/conversations/exports.d.mts",
|
|
@@ -126,18 +148,18 @@
|
|
|
126
148
|
"ws": "^8.20.0"
|
|
127
149
|
},
|
|
128
150
|
"devDependencies": {
|
|
129
|
-
"
|
|
130
|
-
"ts-loader": "^9.5.4",
|
|
131
|
-
"@types/ws": "^8.18.1",
|
|
132
|
-
"jest": "^29.7.0",
|
|
151
|
+
"@biomejs/biome": "2.4.9",
|
|
133
152
|
"@jest/globals": "^29.7.0",
|
|
134
153
|
"@types/jest": "^29.5.14",
|
|
135
|
-
"
|
|
154
|
+
"@types/node": "^18.19.70",
|
|
155
|
+
"@types/ws": "^8.18.1",
|
|
156
|
+
"jest": "^29.7.0",
|
|
136
157
|
"jest-environment-jsdom": "^29.7.0",
|
|
137
158
|
"msw": "2.11.2",
|
|
138
|
-
"
|
|
159
|
+
"ts-jest": "^29.3.4",
|
|
160
|
+
"ts-loader": "^9.5.4",
|
|
139
161
|
"typescript": "~5.9.3",
|
|
140
|
-
"
|
|
162
|
+
"webpack": "^5.105.4"
|
|
141
163
|
},
|
|
142
164
|
"browser": {
|
|
143
165
|
"fs": false,
|
package/reference.md
CHANGED
|
@@ -1619,6 +1619,140 @@ await client.voices.get("id");
|
|
|
1619
1619
|
</dl>
|
|
1620
1620
|
|
|
1621
1621
|
|
|
1622
|
+
</dd>
|
|
1623
|
+
</dl>
|
|
1624
|
+
</details>
|
|
1625
|
+
|
|
1626
|
+
## Workspace
|
|
1627
|
+
<details><summary><code>client.workspace.<a href="/src/api/resources/workspace/client/Client.ts">get</a>() -> Phonic.WorkspaceGetResponse</code></summary>
|
|
1628
|
+
<dl>
|
|
1629
|
+
<dd>
|
|
1630
|
+
|
|
1631
|
+
#### 📝 Description
|
|
1632
|
+
|
|
1633
|
+
<dl>
|
|
1634
|
+
<dd>
|
|
1635
|
+
|
|
1636
|
+
<dl>
|
|
1637
|
+
<dd>
|
|
1638
|
+
|
|
1639
|
+
Returns information about the workspace.
|
|
1640
|
+
</dd>
|
|
1641
|
+
</dl>
|
|
1642
|
+
</dd>
|
|
1643
|
+
</dl>
|
|
1644
|
+
|
|
1645
|
+
#### 🔌 Usage
|
|
1646
|
+
|
|
1647
|
+
<dl>
|
|
1648
|
+
<dd>
|
|
1649
|
+
|
|
1650
|
+
<dl>
|
|
1651
|
+
<dd>
|
|
1652
|
+
|
|
1653
|
+
```typescript
|
|
1654
|
+
await client.workspace.get();
|
|
1655
|
+
|
|
1656
|
+
```
|
|
1657
|
+
</dd>
|
|
1658
|
+
</dl>
|
|
1659
|
+
</dd>
|
|
1660
|
+
</dl>
|
|
1661
|
+
|
|
1662
|
+
#### ⚙️ Parameters
|
|
1663
|
+
|
|
1664
|
+
<dl>
|
|
1665
|
+
<dd>
|
|
1666
|
+
|
|
1667
|
+
<dl>
|
|
1668
|
+
<dd>
|
|
1669
|
+
|
|
1670
|
+
**requestOptions:** `WorkspaceClient.RequestOptions`
|
|
1671
|
+
|
|
1672
|
+
</dd>
|
|
1673
|
+
</dl>
|
|
1674
|
+
</dd>
|
|
1675
|
+
</dl>
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
</dd>
|
|
1679
|
+
</dl>
|
|
1680
|
+
</details>
|
|
1681
|
+
|
|
1682
|
+
## ConversationItems
|
|
1683
|
+
<details><summary><code>client.conversationItems.<a href="/src/api/resources/conversationItems/client/Client.ts">replay</a>(id, { ...params }) -> Phonic.ReplayConversationItemResponse</code></summary>
|
|
1684
|
+
<dl>
|
|
1685
|
+
<dd>
|
|
1686
|
+
|
|
1687
|
+
#### 📝 Description
|
|
1688
|
+
|
|
1689
|
+
<dl>
|
|
1690
|
+
<dd>
|
|
1691
|
+
|
|
1692
|
+
<dl>
|
|
1693
|
+
<dd>
|
|
1694
|
+
|
|
1695
|
+
Returns the alternative response(s) the assistant would have
|
|
1696
|
+
produced for this conversation turn given changes to the agent system prompt.
|
|
1697
|
+
|
|
1698
|
+
Only assistant items from ended conversations can be replayed. The
|
|
1699
|
+
conversation must have an associated agent.
|
|
1700
|
+
</dd>
|
|
1701
|
+
</dl>
|
|
1702
|
+
</dd>
|
|
1703
|
+
</dl>
|
|
1704
|
+
|
|
1705
|
+
#### 🔌 Usage
|
|
1706
|
+
|
|
1707
|
+
<dl>
|
|
1708
|
+
<dd>
|
|
1709
|
+
|
|
1710
|
+
<dl>
|
|
1711
|
+
<dd>
|
|
1712
|
+
|
|
1713
|
+
```typescript
|
|
1714
|
+
await client.conversationItems.replay("id", {
|
|
1715
|
+
system_prompt: "system_prompt"
|
|
1716
|
+
});
|
|
1717
|
+
|
|
1718
|
+
```
|
|
1719
|
+
</dd>
|
|
1720
|
+
</dl>
|
|
1721
|
+
</dd>
|
|
1722
|
+
</dl>
|
|
1723
|
+
|
|
1724
|
+
#### ⚙️ Parameters
|
|
1725
|
+
|
|
1726
|
+
<dl>
|
|
1727
|
+
<dd>
|
|
1728
|
+
|
|
1729
|
+
<dl>
|
|
1730
|
+
<dd>
|
|
1731
|
+
|
|
1732
|
+
**id:** `string` — The ID of the conversation item to replay.
|
|
1733
|
+
|
|
1734
|
+
</dd>
|
|
1735
|
+
</dl>
|
|
1736
|
+
|
|
1737
|
+
<dl>
|
|
1738
|
+
<dd>
|
|
1739
|
+
|
|
1740
|
+
**request:** `Phonic.ReplayConversationItemRequest`
|
|
1741
|
+
|
|
1742
|
+
</dd>
|
|
1743
|
+
</dl>
|
|
1744
|
+
|
|
1745
|
+
<dl>
|
|
1746
|
+
<dd>
|
|
1747
|
+
|
|
1748
|
+
**requestOptions:** `ConversationItemsClient.RequestOptions`
|
|
1749
|
+
|
|
1750
|
+
</dd>
|
|
1751
|
+
</dl>
|
|
1752
|
+
</dd>
|
|
1753
|
+
</dl>
|
|
1754
|
+
|
|
1755
|
+
|
|
1622
1756
|
</dd>
|
|
1623
1757
|
</dl>
|
|
1624
1758
|
</details>
|