phonic 0.32.11 → 0.32.12

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.
Files changed (112) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +17 -12
  4. package/dist/cjs/api/resources/agents/client/Client.d.ts +3 -0
  5. package/dist/cjs/api/resources/agents/client/Client.js +3 -0
  6. package/dist/cjs/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.d.ts +10 -7
  7. package/dist/cjs/api/resources/agents/client/requests/AgentsCreateRequest.d.ts +2 -0
  8. package/dist/cjs/api/resources/agents/client/requests/AgentsUpdatePhoneNumberRequest.d.ts +1 -1
  9. package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +3 -1
  10. package/dist/cjs/api/resources/externalStoragePolicies/client/Client.d.ts +117 -0
  11. package/dist/cjs/api/resources/externalStoragePolicies/client/Client.js +427 -0
  12. package/dist/cjs/api/resources/externalStoragePolicies/client/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/externalStoragePolicies/client/index.js +17 -0
  14. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/CreateExternalStoragePolicyRequest.d.ts +43 -0
  15. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/CreateExternalStoragePolicyRequest.js +13 -0
  16. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesDeleteRequest.d.ts +10 -0
  17. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesDeleteRequest.js +3 -0
  18. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesGetRequest.d.ts +10 -0
  19. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesGetRequest.js +3 -0
  20. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesListRequest.d.ts +10 -0
  21. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesListRequest.js +3 -0
  22. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/UpdateExternalStoragePolicyRequest.d.ts +37 -0
  23. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/UpdateExternalStoragePolicyRequest.js +13 -0
  24. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/index.d.ts +5 -0
  25. package/dist/cjs/api/resources/externalStoragePolicies/client/requests/index.js +7 -0
  26. package/dist/cjs/api/resources/externalStoragePolicies/exports.d.ts +2 -0
  27. package/dist/cjs/api/resources/externalStoragePolicies/exports.js +21 -0
  28. package/dist/cjs/api/resources/externalStoragePolicies/index.d.ts +2 -0
  29. package/dist/cjs/api/resources/externalStoragePolicies/index.js +18 -0
  30. package/dist/cjs/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesCreateResponse.d.ts +6 -0
  31. package/dist/cjs/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesCreateResponse.js +3 -0
  32. package/dist/cjs/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesDeleteResponse.d.ts +4 -0
  33. package/dist/cjs/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesDeleteResponse.js +3 -0
  34. package/dist/cjs/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesGetResponse.d.ts +4 -0
  35. package/dist/cjs/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesGetResponse.js +3 -0
  36. package/dist/cjs/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesListResponse.d.ts +4 -0
  37. package/dist/cjs/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesListResponse.js +3 -0
  38. package/dist/cjs/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesUpdateResponse.d.ts +4 -0
  39. package/dist/cjs/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesUpdateResponse.js +3 -0
  40. package/dist/cjs/api/resources/externalStoragePolicies/types/index.d.ts +5 -0
  41. package/dist/cjs/api/resources/externalStoragePolicies/types/index.js +21 -0
  42. package/dist/cjs/api/resources/index.d.ts +3 -0
  43. package/dist/cjs/api/resources/index.js +4 -1
  44. package/dist/cjs/api/resources/tools/client/requests/CreateToolRequest.d.ts +1 -1
  45. package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.d.ts +1 -0
  46. package/dist/cjs/api/types/Agent.d.ts +2 -0
  47. package/dist/cjs/api/types/ConfigOptions.d.ts +3 -1
  48. package/dist/cjs/api/types/CreateAgentRequest.d.ts +3 -1
  49. package/dist/cjs/api/types/ExternalStoragePolicy.d.ts +30 -0
  50. package/dist/cjs/api/types/ExternalStoragePolicy.js +13 -0
  51. package/dist/cjs/api/types/OutboundCallConfig.d.ts +1 -1
  52. package/dist/cjs/api/types/index.d.ts +1 -0
  53. package/dist/cjs/api/types/index.js +1 -0
  54. package/dist/cjs/version.d.ts +1 -1
  55. package/dist/cjs/version.js +1 -1
  56. package/dist/esm/BaseClient.mjs +2 -2
  57. package/dist/esm/Client.d.mts +3 -0
  58. package/dist/esm/Client.mjs +5 -0
  59. package/dist/esm/api/resources/agents/client/Client.d.mts +3 -0
  60. package/dist/esm/api/resources/agents/client/Client.mjs +3 -0
  61. package/dist/esm/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.d.mts +10 -7
  62. package/dist/esm/api/resources/agents/client/requests/AgentsCreateRequest.d.mts +2 -0
  63. package/dist/esm/api/resources/agents/client/requests/AgentsUpdatePhoneNumberRequest.d.mts +1 -1
  64. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +3 -1
  65. package/dist/esm/api/resources/externalStoragePolicies/client/Client.d.mts +117 -0
  66. package/dist/esm/api/resources/externalStoragePolicies/client/Client.mjs +390 -0
  67. package/dist/esm/api/resources/externalStoragePolicies/client/index.d.mts +1 -0
  68. package/dist/esm/api/resources/externalStoragePolicies/client/index.mjs +1 -0
  69. package/dist/esm/api/resources/externalStoragePolicies/client/requests/CreateExternalStoragePolicyRequest.d.mts +43 -0
  70. package/dist/esm/api/resources/externalStoragePolicies/client/requests/CreateExternalStoragePolicyRequest.mjs +10 -0
  71. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesDeleteRequest.d.mts +10 -0
  72. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesDeleteRequest.mjs +2 -0
  73. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesGetRequest.d.mts +10 -0
  74. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesGetRequest.mjs +2 -0
  75. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesListRequest.d.mts +10 -0
  76. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesListRequest.mjs +2 -0
  77. package/dist/esm/api/resources/externalStoragePolicies/client/requests/UpdateExternalStoragePolicyRequest.d.mts +37 -0
  78. package/dist/esm/api/resources/externalStoragePolicies/client/requests/UpdateExternalStoragePolicyRequest.mjs +10 -0
  79. package/dist/esm/api/resources/externalStoragePolicies/client/requests/index.d.mts +5 -0
  80. package/dist/esm/api/resources/externalStoragePolicies/client/requests/index.mjs +2 -0
  81. package/dist/esm/api/resources/externalStoragePolicies/exports.d.mts +2 -0
  82. package/dist/esm/api/resources/externalStoragePolicies/exports.mjs +3 -0
  83. package/dist/esm/api/resources/externalStoragePolicies/index.d.mts +2 -0
  84. package/dist/esm/api/resources/externalStoragePolicies/index.mjs +2 -0
  85. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesCreateResponse.d.mts +6 -0
  86. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesCreateResponse.mjs +2 -0
  87. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesDeleteResponse.d.mts +4 -0
  88. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesDeleteResponse.mjs +2 -0
  89. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesGetResponse.d.mts +4 -0
  90. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesGetResponse.mjs +2 -0
  91. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesListResponse.d.mts +4 -0
  92. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesListResponse.mjs +2 -0
  93. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesUpdateResponse.d.mts +4 -0
  94. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesUpdateResponse.mjs +2 -0
  95. package/dist/esm/api/resources/externalStoragePolicies/types/index.d.mts +5 -0
  96. package/dist/esm/api/resources/externalStoragePolicies/types/index.mjs +5 -0
  97. package/dist/esm/api/resources/index.d.mts +3 -0
  98. package/dist/esm/api/resources/index.mjs +3 -0
  99. package/dist/esm/api/resources/tools/client/requests/CreateToolRequest.d.mts +1 -1
  100. package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.d.mts +1 -0
  101. package/dist/esm/api/types/Agent.d.mts +2 -0
  102. package/dist/esm/api/types/ConfigOptions.d.mts +3 -1
  103. package/dist/esm/api/types/CreateAgentRequest.d.mts +3 -1
  104. package/dist/esm/api/types/ExternalStoragePolicy.d.mts +30 -0
  105. package/dist/esm/api/types/ExternalStoragePolicy.mjs +10 -0
  106. package/dist/esm/api/types/OutboundCallConfig.d.mts +1 -1
  107. package/dist/esm/api/types/index.d.mts +1 -0
  108. package/dist/esm/api/types/index.mjs +1 -0
  109. package/dist/esm/version.d.mts +1 -1
  110. package/dist/esm/version.mjs +1 -1
  111. package/package.json +12 -1
  112. package/reference.md +363 -0
@@ -0,0 +1,5 @@
1
+ export * from "./ExternalStoragePoliciesCreateResponse.mjs";
2
+ export * from "./ExternalStoragePoliciesDeleteResponse.mjs";
3
+ export * from "./ExternalStoragePoliciesGetResponse.mjs";
4
+ export * from "./ExternalStoragePoliciesListResponse.mjs";
5
+ export * from "./ExternalStoragePoliciesUpdateResponse.mjs";
@@ -12,6 +12,9 @@ export * as conversationItems from "./conversationItems/index.mjs";
12
12
  export * from "./conversations/client/requests/index.mjs";
13
13
  export * as conversations from "./conversations/index.mjs";
14
14
  export * from "./conversations/types/index.mjs";
15
+ export * from "./externalStoragePolicies/client/requests/index.mjs";
16
+ export * as externalStoragePolicies from "./externalStoragePolicies/index.mjs";
17
+ export * from "./externalStoragePolicies/types/index.mjs";
15
18
  export * from "./extractionSchemas/client/requests/index.mjs";
16
19
  export * as extractionSchemas from "./extractionSchemas/index.mjs";
17
20
  export * from "./extractionSchemas/types/index.mjs";
@@ -12,6 +12,9 @@ export * as conversationItems from "./conversationItems/index.mjs";
12
12
  export * from "./conversations/client/requests/index.mjs";
13
13
  export * as conversations from "./conversations/index.mjs";
14
14
  export * from "./conversations/types/index.mjs";
15
+ export * from "./externalStoragePolicies/client/requests/index.mjs";
16
+ export * as externalStoragePolicies from "./externalStoragePolicies/index.mjs";
17
+ export * from "./externalStoragePolicies/types/index.mjs";
15
18
  export * from "./extractionSchemas/client/requests/index.mjs";
16
19
  export * as extractionSchemas from "./extractionSchemas/index.mjs";
17
20
  export * from "./extractionSchemas/types/index.mjs";
@@ -119,7 +119,7 @@ export interface CreateToolRequest {
119
119
  parameters?: Phonic.ToolParameter[];
120
120
  /** Required for webhook tools. HTTP method for the webhook endpoint. */
121
121
  endpoint_method?: CreateToolRequest.EndpointMethod;
122
- /** Required for webhook tools. */
122
+ /** Required for webhook tools. Must be a publicly routable HTTPS URL without embedded credentials. */
123
123
  endpoint_url?: string;
124
124
  /** Optional headers for webhook tools. */
125
125
  endpoint_headers?: Record<string, string>;
@@ -30,6 +30,7 @@ export interface UpdateToolRequest {
30
30
  parameters?: Phonic.ToolParameter[];
31
31
  /** HTTP method for webhook tools. When changing this value, all parameters must include explicit `location` values. */
32
32
  endpoint_method?: UpdateToolRequest.EndpointMethod;
33
+ /** URL for webhook tools. Must be a publicly routable HTTPS URL without embedded credentials. */
33
34
  endpoint_url?: string;
34
35
  /** Headers for webhook tools. Set to null to clear existing headers. */
35
36
  endpoint_headers?: Record<string, string | null> | null;
@@ -64,6 +64,8 @@ export interface Agent {
64
64
  boosted_keywords: string[];
65
65
  /** Names of observability integrations enabled for the agent. Each must be one of the supported providers. */
66
66
  observability_integrations?: "braintrust"[] | undefined;
67
+ /** Name of the external storage policy that conversation artifacts are delivered to. `null` when the agent doesn't deliver artifacts to external storage. */
68
+ external_storage_policy?: (string | null) | undefined;
67
69
  /** Array of `{ word, pronunciation }` entries. Words must be unique. */
68
70
  pronunciation_dictionary: Agent.PronunciationDictionary.Item[];
69
71
  /** Minimum number of words required to interrupt the assistant. */
@@ -75,6 +75,8 @@ export interface ConfigOptions {
75
75
  mcp_servers?: string[] | undefined;
76
76
  /** Names of observability integrations to enable for the conversation. Each must be one of the supported providers. */
77
77
  observability_integrations?: "braintrust"[] | undefined;
78
+ /** Name of an external storage policy in the same project that conversation artifacts are delivered to. Requires `data_retention_policy.zero_data_retention` to be `true` and cannot be combined with `enable_redaction`. Set to `null` to disable external delivery. */
79
+ external_storage_policy?: (string | null) | undefined;
78
80
  /** Tasks the assistant should accomplish during the conversation. */
79
81
  tasks?: ConfigOptions.Tasks.Item[] | undefined;
80
82
  /** Pool of phone numbers to use as the caller ID for outbound calls. */
@@ -161,7 +163,7 @@ export declare namespace ConfigOptions {
161
163
  * When not `null`, the agent will call this endpoint to get configuration options for the conversation.
162
164
  */
163
165
  interface ConfigurationEndpoint {
164
- /** URL to call. */
166
+ /** URL to call. Must be a publicly routable HTTPS URL without embedded credentials. */
165
167
  url: string;
166
168
  /** Object of key-value pairs sent as headers when calling the endpoint. */
167
169
  headers?: Record<string, string> | undefined;
@@ -92,6 +92,8 @@ export interface CreateAgentRequest {
92
92
  mcp_server_ids?: string[] | undefined;
93
93
  /** Names of observability integrations to enable for the agent. Each must be one of the supported providers. */
94
94
  observability_integrations?: "braintrust"[] | undefined;
95
+ /** Name of an external storage policy in the same project that conversation artifacts are delivered to. Requires zero data retention and cannot be combined with `enable_redaction`. */
96
+ external_storage_policy?: (string | null) | undefined;
95
97
  }
96
98
  export declare namespace CreateAgentRequest {
97
99
  const PhoneNumber: {
@@ -152,7 +154,7 @@ export declare namespace CreateAgentRequest {
152
154
  * When not `null`, at the beginning of the conversation the agent will make a POST request to this endpoint to get configuration options.
153
155
  */
154
156
  interface ConfigurationEndpoint {
155
- /** URL to call */
157
+ /** URL to call. Must be a publicly routable HTTPS URL without embedded credentials. */
156
158
  url: string;
157
159
  /** Object of key-value pairs. */
158
160
  headers?: Record<string, string> | undefined;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * An S3-compatible destination that conversation artifacts are delivered to.
3
+ */
4
+ export interface ExternalStoragePolicy {
5
+ /** The ID of the external storage policy. */
6
+ id: string;
7
+ /** The name of the external storage policy. Agents reference the policy by this name. */
8
+ name: string;
9
+ /** The S3-compatible endpoint URL that artifacts are uploaded to. */
10
+ endpoint_url: string;
11
+ /** The bucket that artifacts are uploaded to. */
12
+ bucket: string;
13
+ /** The region of the bucket. `null` when the endpoint doesn't require a region. */
14
+ region: string | null;
15
+ /** Prefix prepended to every object key. `null` when objects are written at the bucket root. */
16
+ key_prefix: string | null;
17
+ /** How bucket names are addressed in requests to the endpoint. */
18
+ addressing_style: ExternalStoragePolicy.AddressingStyle;
19
+ /** Number of agents currently referencing this external storage policy. */
20
+ agent_count: number;
21
+ }
22
+ export declare namespace ExternalStoragePolicy {
23
+ /** How bucket names are addressed in requests to the endpoint. */
24
+ const AddressingStyle: {
25
+ readonly Auto: "auto";
26
+ readonly Virtual: "virtual";
27
+ readonly Path: "path";
28
+ };
29
+ type AddressingStyle = (typeof AddressingStyle)[keyof typeof AddressingStyle];
30
+ }
@@ -0,0 +1,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var ExternalStoragePolicy;
3
+ (function (ExternalStoragePolicy) {
4
+ /** How bucket names are addressed in requests to the endpoint. */
5
+ ExternalStoragePolicy.AddressingStyle = {
6
+ Auto: "auto",
7
+ Virtual: "virtual",
8
+ Path: "path",
9
+ };
10
+ })(ExternalStoragePolicy || (ExternalStoragePolicy = {}));
@@ -113,7 +113,7 @@ export declare namespace OutboundCallConfig {
113
113
  * When not `null`, at the beginning of the conversation the agent will make a POST request to this endpoint to get configuration options.
114
114
  */
115
115
  interface ConfigurationEndpoint {
116
- /** URL to call */
116
+ /** URL to call. Must be a publicly routable HTTPS URL without embedded credentials. */
117
117
  url: string;
118
118
  /** Object of key-value pairs. */
119
119
  headers?: Record<string, string> | undefined;
@@ -33,6 +33,7 @@ export * from "./DataRetentionPolicy.mjs";
33
33
  export * from "./DtmfPayload.mjs";
34
34
  export * from "./Error_.mjs";
35
35
  export * from "./ErrorPayload.mjs";
36
+ export * from "./ExternalStoragePolicy.mjs";
36
37
  export * from "./ExtractionField.mjs";
37
38
  export * from "./ExtractionSchema.mjs";
38
39
  export * from "./GenerateReplyPayload.mjs";
@@ -33,6 +33,7 @@ export * from "./DataRetentionPolicy.mjs";
33
33
  export * from "./DtmfPayload.mjs";
34
34
  export * from "./Error_.mjs";
35
35
  export * from "./ErrorPayload.mjs";
36
+ export * from "./ExternalStoragePolicy.mjs";
36
37
  export * from "./ExtractionField.mjs";
37
38
  export * from "./ExtractionSchema.mjs";
38
39
  export * from "./GenerateReplyPayload.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.11";
1
+ export declare const SDK_VERSION = "0.32.12";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.32.11";
1
+ export const SDK_VERSION = "0.32.12";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.32.11",
3
+ "version": "0.32.12",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,6 +45,17 @@
45
45
  },
46
46
  "default": "./dist/cjs/api/resources/tools/exports.js"
47
47
  },
48
+ "./externalStoragePolicies": {
49
+ "import": {
50
+ "types": "./dist/esm/api/resources/externalStoragePolicies/exports.d.mts",
51
+ "default": "./dist/esm/api/resources/externalStoragePolicies/exports.mjs"
52
+ },
53
+ "require": {
54
+ "types": "./dist/cjs/api/resources/externalStoragePolicies/exports.d.ts",
55
+ "default": "./dist/cjs/api/resources/externalStoragePolicies/exports.js"
56
+ },
57
+ "default": "./dist/cjs/api/resources/externalStoragePolicies/exports.js"
58
+ },
48
59
  "./extractionSchemas": {
49
60
  "import": {
50
61
  "types": "./dist/esm/api/resources/extractionSchemas/exports.d.mts",
package/reference.md CHANGED
@@ -557,6 +557,9 @@ Adds a custom phone number to an agent. The user must configure their SIP trunk
557
557
 
558
558
  ```typescript
559
559
  await client.agents.addCustomPhoneNumber("nameOrId", {
560
+ "X-Sip-Address": "X-Sip-Address",
561
+ "X-Sip-Auth-Username": "X-Sip-Auth-Username",
562
+ "X-Sip-Auth-Password": "X-Sip-Auth-Password",
560
563
  project: "main",
561
564
  phone_number: "+15551234567",
562
565
  configuration_endpoint: {
@@ -1130,6 +1133,366 @@ await client.tools.update("nameOrId", {
1130
1133
  </dl>
1131
1134
 
1132
1135
 
1136
+ </dd>
1137
+ </dl>
1138
+ </details>
1139
+
1140
+ ## ExternalStoragePolicies
1141
+ <details><summary><code>client.externalStoragePolicies.<a href="/src/api/resources/externalStoragePolicies/client/Client.ts">list</a>({ ...params }) -> Phonic.ExternalStoragePoliciesListResponse</code></summary>
1142
+ <dl>
1143
+ <dd>
1144
+
1145
+ #### 📝 Description
1146
+
1147
+ <dl>
1148
+ <dd>
1149
+
1150
+ <dl>
1151
+ <dd>
1152
+
1153
+ Returns all external storage policies in a project.
1154
+ </dd>
1155
+ </dl>
1156
+ </dd>
1157
+ </dl>
1158
+
1159
+ #### 🔌 Usage
1160
+
1161
+ <dl>
1162
+ <dd>
1163
+
1164
+ <dl>
1165
+ <dd>
1166
+
1167
+ ```typescript
1168
+ await client.externalStoragePolicies.list({
1169
+ project: "main"
1170
+ });
1171
+
1172
+ ```
1173
+ </dd>
1174
+ </dl>
1175
+ </dd>
1176
+ </dl>
1177
+
1178
+ #### ⚙️ Parameters
1179
+
1180
+ <dl>
1181
+ <dd>
1182
+
1183
+ <dl>
1184
+ <dd>
1185
+
1186
+ **request:** `Phonic.ExternalStoragePoliciesListRequest`
1187
+
1188
+ </dd>
1189
+ </dl>
1190
+
1191
+ <dl>
1192
+ <dd>
1193
+
1194
+ **requestOptions:** `ExternalStoragePoliciesClient.RequestOptions`
1195
+
1196
+ </dd>
1197
+ </dl>
1198
+ </dd>
1199
+ </dl>
1200
+
1201
+
1202
+ </dd>
1203
+ </dl>
1204
+ </details>
1205
+
1206
+ <details><summary><code>client.externalStoragePolicies.<a href="/src/api/resources/externalStoragePolicies/client/Client.ts">create</a>({ ...params }) -> Phonic.ExternalStoragePoliciesCreateResponse</code></summary>
1207
+ <dl>
1208
+ <dd>
1209
+
1210
+ #### 📝 Description
1211
+
1212
+ <dl>
1213
+ <dd>
1214
+
1215
+ <dl>
1216
+ <dd>
1217
+
1218
+ Creates a new external storage policy in a project. Agents referencing the policy deliver their conversation artifacts to the configured S3-compatible bucket.
1219
+ </dd>
1220
+ </dl>
1221
+ </dd>
1222
+ </dl>
1223
+
1224
+ #### 🔌 Usage
1225
+
1226
+ <dl>
1227
+ <dd>
1228
+
1229
+ <dl>
1230
+ <dd>
1231
+
1232
+ ```typescript
1233
+ await client.externalStoragePolicies.create({
1234
+ project: "main",
1235
+ name: "conversation_archive",
1236
+ endpoint_url: "https://storage.example.com",
1237
+ bucket: "conversation-audio",
1238
+ region: "us-east-1",
1239
+ key_prefix: "phonic/conversations",
1240
+ addressing_style: "auto",
1241
+ access_key_id: "AKIAIOSFODNN7EXAMPLE",
1242
+ secret_access_key: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
1243
+ });
1244
+
1245
+ ```
1246
+ </dd>
1247
+ </dl>
1248
+ </dd>
1249
+ </dl>
1250
+
1251
+ #### ⚙️ Parameters
1252
+
1253
+ <dl>
1254
+ <dd>
1255
+
1256
+ <dl>
1257
+ <dd>
1258
+
1259
+ **request:** `Phonic.CreateExternalStoragePolicyRequest`
1260
+
1261
+ </dd>
1262
+ </dl>
1263
+
1264
+ <dl>
1265
+ <dd>
1266
+
1267
+ **requestOptions:** `ExternalStoragePoliciesClient.RequestOptions`
1268
+
1269
+ </dd>
1270
+ </dl>
1271
+ </dd>
1272
+ </dl>
1273
+
1274
+
1275
+ </dd>
1276
+ </dl>
1277
+ </details>
1278
+
1279
+ <details><summary><code>client.externalStoragePolicies.<a href="/src/api/resources/externalStoragePolicies/client/Client.ts">get</a>(nameOrId, { ...params }) -> Phonic.ExternalStoragePoliciesGetResponse</code></summary>
1280
+ <dl>
1281
+ <dd>
1282
+
1283
+ #### 📝 Description
1284
+
1285
+ <dl>
1286
+ <dd>
1287
+
1288
+ <dl>
1289
+ <dd>
1290
+
1291
+ Returns an external storage policy by name or ID.
1292
+ </dd>
1293
+ </dl>
1294
+ </dd>
1295
+ </dl>
1296
+
1297
+ #### 🔌 Usage
1298
+
1299
+ <dl>
1300
+ <dd>
1301
+
1302
+ <dl>
1303
+ <dd>
1304
+
1305
+ ```typescript
1306
+ await client.externalStoragePolicies.get("nameOrId", {
1307
+ project: "main"
1308
+ });
1309
+
1310
+ ```
1311
+ </dd>
1312
+ </dl>
1313
+ </dd>
1314
+ </dl>
1315
+
1316
+ #### ⚙️ Parameters
1317
+
1318
+ <dl>
1319
+ <dd>
1320
+
1321
+ <dl>
1322
+ <dd>
1323
+
1324
+ **nameOrId:** `string` — The name or the ID of the external storage policy to get.
1325
+
1326
+ </dd>
1327
+ </dl>
1328
+
1329
+ <dl>
1330
+ <dd>
1331
+
1332
+ **request:** `Phonic.ExternalStoragePoliciesGetRequest`
1333
+
1334
+ </dd>
1335
+ </dl>
1336
+
1337
+ <dl>
1338
+ <dd>
1339
+
1340
+ **requestOptions:** `ExternalStoragePoliciesClient.RequestOptions`
1341
+
1342
+ </dd>
1343
+ </dl>
1344
+ </dd>
1345
+ </dl>
1346
+
1347
+
1348
+ </dd>
1349
+ </dl>
1350
+ </details>
1351
+
1352
+ <details><summary><code>client.externalStoragePolicies.<a href="/src/api/resources/externalStoragePolicies/client/Client.ts">delete</a>(nameOrId, { ...params }) -> Phonic.ExternalStoragePoliciesDeleteResponse</code></summary>
1353
+ <dl>
1354
+ <dd>
1355
+
1356
+ #### 📝 Description
1357
+
1358
+ <dl>
1359
+ <dd>
1360
+
1361
+ <dl>
1362
+ <dd>
1363
+
1364
+ Deletes an external storage policy by name or ID. The policy must not be referenced by any agent.
1365
+ </dd>
1366
+ </dl>
1367
+ </dd>
1368
+ </dl>
1369
+
1370
+ #### 🔌 Usage
1371
+
1372
+ <dl>
1373
+ <dd>
1374
+
1375
+ <dl>
1376
+ <dd>
1377
+
1378
+ ```typescript
1379
+ await client.externalStoragePolicies.delete("nameOrId", {
1380
+ project: "main"
1381
+ });
1382
+
1383
+ ```
1384
+ </dd>
1385
+ </dl>
1386
+ </dd>
1387
+ </dl>
1388
+
1389
+ #### ⚙️ Parameters
1390
+
1391
+ <dl>
1392
+ <dd>
1393
+
1394
+ <dl>
1395
+ <dd>
1396
+
1397
+ **nameOrId:** `string` — The name or the ID of the external storage policy to delete.
1398
+
1399
+ </dd>
1400
+ </dl>
1401
+
1402
+ <dl>
1403
+ <dd>
1404
+
1405
+ **request:** `Phonic.ExternalStoragePoliciesDeleteRequest`
1406
+
1407
+ </dd>
1408
+ </dl>
1409
+
1410
+ <dl>
1411
+ <dd>
1412
+
1413
+ **requestOptions:** `ExternalStoragePoliciesClient.RequestOptions`
1414
+
1415
+ </dd>
1416
+ </dl>
1417
+ </dd>
1418
+ </dl>
1419
+
1420
+
1421
+ </dd>
1422
+ </dl>
1423
+ </details>
1424
+
1425
+ <details><summary><code>client.externalStoragePolicies.<a href="/src/api/resources/externalStoragePolicies/client/Client.ts">update</a>(nameOrId, { ...params }) -> Phonic.ExternalStoragePoliciesUpdateResponse</code></summary>
1426
+ <dl>
1427
+ <dd>
1428
+
1429
+ #### 📝 Description
1430
+
1431
+ <dl>
1432
+ <dd>
1433
+
1434
+ <dl>
1435
+ <dd>
1436
+
1437
+ Updates an external storage policy by name or ID. Credentials can only be rotated by providing both `access_key_id` and `secret_access_key`.
1438
+ </dd>
1439
+ </dl>
1440
+ </dd>
1441
+ </dl>
1442
+
1443
+ #### 🔌 Usage
1444
+
1445
+ <dl>
1446
+ <dd>
1447
+
1448
+ <dl>
1449
+ <dd>
1450
+
1451
+ ```typescript
1452
+ await client.externalStoragePolicies.update("nameOrId", {
1453
+ project: "main",
1454
+ bucket: "conversation-audio-archive",
1455
+ key_prefix: "phonic/archive"
1456
+ });
1457
+
1458
+ ```
1459
+ </dd>
1460
+ </dl>
1461
+ </dd>
1462
+ </dl>
1463
+
1464
+ #### ⚙️ Parameters
1465
+
1466
+ <dl>
1467
+ <dd>
1468
+
1469
+ <dl>
1470
+ <dd>
1471
+
1472
+ **nameOrId:** `string` — The name or the ID of the external storage policy to update.
1473
+
1474
+ </dd>
1475
+ </dl>
1476
+
1477
+ <dl>
1478
+ <dd>
1479
+
1480
+ **request:** `Phonic.UpdateExternalStoragePolicyRequest`
1481
+
1482
+ </dd>
1483
+ </dl>
1484
+
1485
+ <dl>
1486
+ <dd>
1487
+
1488
+ **requestOptions:** `ExternalStoragePoliciesClient.RequestOptions`
1489
+
1490
+ </dd>
1491
+ </dl>
1492
+ </dd>
1493
+ </dl>
1494
+
1495
+
1133
1496
  </dd>
1134
1497
  </dl>
1135
1498
  </details>