phonic 0.32.11 → 0.32.13

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 (138) 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 +3 -1
  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 +4 -2
  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/Client.d.ts +65 -0
  45. package/dist/cjs/api/resources/tools/client/Client.js +65 -0
  46. package/dist/cjs/api/resources/tools/client/requests/CreateToolRequest.d.ts +100 -6
  47. package/dist/cjs/api/resources/tools/client/requests/CreateToolRequest.js +7 -0
  48. package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.d.ts +27 -6
  49. package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.js +8 -1
  50. package/dist/cjs/api/types/Agent.d.ts +3 -1
  51. package/dist/cjs/api/types/ConfigOptions.d.ts +4 -2
  52. package/dist/cjs/api/types/CreateAgentRequest.d.ts +4 -2
  53. package/dist/cjs/api/types/ExternalStoragePolicy.d.ts +30 -0
  54. package/dist/cjs/api/types/ExternalStoragePolicy.js +13 -0
  55. package/dist/cjs/api/types/InlineWebSocketTool.d.ts +2 -0
  56. package/dist/cjs/api/types/OutboundCallConfig.d.ts +2 -2
  57. package/dist/cjs/api/types/Tool.d.ts +26 -2
  58. package/dist/cjs/api/types/Tool.js +7 -0
  59. package/dist/cjs/api/types/ToolParameter.d.ts +5 -2
  60. package/dist/cjs/api/types/ToolParameter.js +2 -1
  61. package/dist/cjs/api/types/ToolParametersJsonSchema.d.ts +15 -0
  62. package/dist/cjs/api/types/ToolParametersJsonSchema.js +3 -0
  63. package/dist/cjs/api/types/index.d.ts +2 -0
  64. package/dist/cjs/api/types/index.js +2 -0
  65. package/dist/cjs/version.d.ts +1 -1
  66. package/dist/cjs/version.js +1 -1
  67. package/dist/esm/BaseClient.mjs +2 -2
  68. package/dist/esm/Client.d.mts +3 -0
  69. package/dist/esm/Client.mjs +5 -0
  70. package/dist/esm/api/resources/agents/client/Client.d.mts +3 -0
  71. package/dist/esm/api/resources/agents/client/Client.mjs +3 -0
  72. package/dist/esm/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.d.mts +10 -7
  73. package/dist/esm/api/resources/agents/client/requests/AgentsCreateRequest.d.mts +3 -1
  74. package/dist/esm/api/resources/agents/client/requests/AgentsUpdatePhoneNumberRequest.d.mts +1 -1
  75. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +4 -2
  76. package/dist/esm/api/resources/externalStoragePolicies/client/Client.d.mts +117 -0
  77. package/dist/esm/api/resources/externalStoragePolicies/client/Client.mjs +390 -0
  78. package/dist/esm/api/resources/externalStoragePolicies/client/index.d.mts +1 -0
  79. package/dist/esm/api/resources/externalStoragePolicies/client/index.mjs +1 -0
  80. package/dist/esm/api/resources/externalStoragePolicies/client/requests/CreateExternalStoragePolicyRequest.d.mts +43 -0
  81. package/dist/esm/api/resources/externalStoragePolicies/client/requests/CreateExternalStoragePolicyRequest.mjs +10 -0
  82. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesDeleteRequest.d.mts +10 -0
  83. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesDeleteRequest.mjs +2 -0
  84. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesGetRequest.d.mts +10 -0
  85. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesGetRequest.mjs +2 -0
  86. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesListRequest.d.mts +10 -0
  87. package/dist/esm/api/resources/externalStoragePolicies/client/requests/ExternalStoragePoliciesListRequest.mjs +2 -0
  88. package/dist/esm/api/resources/externalStoragePolicies/client/requests/UpdateExternalStoragePolicyRequest.d.mts +37 -0
  89. package/dist/esm/api/resources/externalStoragePolicies/client/requests/UpdateExternalStoragePolicyRequest.mjs +10 -0
  90. package/dist/esm/api/resources/externalStoragePolicies/client/requests/index.d.mts +5 -0
  91. package/dist/esm/api/resources/externalStoragePolicies/client/requests/index.mjs +2 -0
  92. package/dist/esm/api/resources/externalStoragePolicies/exports.d.mts +2 -0
  93. package/dist/esm/api/resources/externalStoragePolicies/exports.mjs +3 -0
  94. package/dist/esm/api/resources/externalStoragePolicies/index.d.mts +2 -0
  95. package/dist/esm/api/resources/externalStoragePolicies/index.mjs +2 -0
  96. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesCreateResponse.d.mts +6 -0
  97. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesCreateResponse.mjs +2 -0
  98. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesDeleteResponse.d.mts +4 -0
  99. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesDeleteResponse.mjs +2 -0
  100. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesGetResponse.d.mts +4 -0
  101. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesGetResponse.mjs +2 -0
  102. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesListResponse.d.mts +4 -0
  103. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesListResponse.mjs +2 -0
  104. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesUpdateResponse.d.mts +4 -0
  105. package/dist/esm/api/resources/externalStoragePolicies/types/ExternalStoragePoliciesUpdateResponse.mjs +2 -0
  106. package/dist/esm/api/resources/externalStoragePolicies/types/index.d.mts +5 -0
  107. package/dist/esm/api/resources/externalStoragePolicies/types/index.mjs +5 -0
  108. package/dist/esm/api/resources/index.d.mts +3 -0
  109. package/dist/esm/api/resources/index.mjs +3 -0
  110. package/dist/esm/api/resources/tools/client/Client.d.mts +65 -0
  111. package/dist/esm/api/resources/tools/client/Client.mjs +65 -0
  112. package/dist/esm/api/resources/tools/client/requests/CreateToolRequest.d.mts +100 -6
  113. package/dist/esm/api/resources/tools/client/requests/CreateToolRequest.mjs +7 -0
  114. package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.d.mts +27 -6
  115. package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.mjs +8 -1
  116. package/dist/esm/api/types/Agent.d.mts +3 -1
  117. package/dist/esm/api/types/ConfigOptions.d.mts +4 -2
  118. package/dist/esm/api/types/CreateAgentRequest.d.mts +4 -2
  119. package/dist/esm/api/types/ExternalStoragePolicy.d.mts +30 -0
  120. package/dist/esm/api/types/ExternalStoragePolicy.mjs +10 -0
  121. package/dist/esm/api/types/InlineWebSocketTool.d.mts +2 -0
  122. package/dist/esm/api/types/OutboundCallConfig.d.mts +2 -2
  123. package/dist/esm/api/types/Tool.d.mts +26 -2
  124. package/dist/esm/api/types/Tool.mjs +7 -0
  125. package/dist/esm/api/types/ToolParameter.d.mts +5 -2
  126. package/dist/esm/api/types/ToolParameter.mjs +2 -1
  127. package/dist/esm/api/types/ToolParametersJsonSchema.d.mts +15 -0
  128. package/dist/esm/api/types/ToolParametersJsonSchema.mjs +2 -0
  129. package/dist/esm/api/types/index.d.mts +2 -0
  130. package/dist/esm/api/types/index.mjs +2 -0
  131. package/dist/esm/version.d.mts +1 -1
  132. package/dist/esm/version.mjs +1 -1
  133. package/dist/index.d.mts +240 -0
  134. package/dist/index.d.ts +240 -0
  135. package/dist/index.js +347 -0
  136. package/dist/index.mjs +310 -0
  137. package/package.json +12 -1
  138. package/reference.md +363 -0
@@ -0,0 +1,427 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ var __rest = (this && this.__rest) || function (s, e) {
46
+ var t = {};
47
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
48
+ t[p] = s[p];
49
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
50
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
52
+ t[p[i]] = s[p[i]];
53
+ }
54
+ return t;
55
+ };
56
+ Object.defineProperty(exports, "__esModule", { value: true });
57
+ exports.ExternalStoragePoliciesClient = void 0;
58
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
59
+ const headers_js_1 = require("../../../../core/headers.js");
60
+ const core = __importStar(require("../../../../core/index.js"));
61
+ const environments = __importStar(require("../../../../environments.js"));
62
+ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
63
+ const errors = __importStar(require("../../../../errors/index.js"));
64
+ const Phonic = __importStar(require("../../../index.js"));
65
+ class ExternalStoragePoliciesClient {
66
+ constructor(options = {}) {
67
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
68
+ }
69
+ /**
70
+ * Returns all external storage policies in a project.
71
+ *
72
+ * @param {Phonic.ExternalStoragePoliciesListRequest} request
73
+ * @param {ExternalStoragePoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
74
+ *
75
+ * @throws {@link Phonic.NotFoundError}
76
+ * @throws {@link Phonic.InternalServerError}
77
+ *
78
+ * @example
79
+ * await client.externalStoragePolicies.list({
80
+ * project: "main"
81
+ * })
82
+ */
83
+ list(request = {}, requestOptions) {
84
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
85
+ }
86
+ __list() {
87
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
88
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
89
+ const { project } = request;
90
+ const _queryParams = {
91
+ project,
92
+ };
93
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
94
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
95
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
96
+ url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
97
+ .base, "external_storage_policies"),
98
+ method: "GET",
99
+ headers: _headers,
100
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
101
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
102
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
103
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
104
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
105
+ logging: this._options.logging,
106
+ });
107
+ if (_response.ok) {
108
+ return {
109
+ data: _response.body,
110
+ rawResponse: _response.rawResponse,
111
+ };
112
+ }
113
+ if (_response.error.reason === "status-code") {
114
+ switch (_response.error.statusCode) {
115
+ case 404:
116
+ throw new Phonic.NotFoundError(_response.error.body, _response.rawResponse);
117
+ case 500:
118
+ throw new Phonic.InternalServerError(_response.error.body, _response.rawResponse);
119
+ default:
120
+ throw new errors.PhonicError({
121
+ statusCode: _response.error.statusCode,
122
+ body: _response.error.body,
123
+ rawResponse: _response.rawResponse,
124
+ });
125
+ }
126
+ }
127
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/external_storage_policies");
128
+ });
129
+ }
130
+ /**
131
+ * Creates a new external storage policy in a project. Agents referencing the policy deliver their conversation artifacts to the configured S3-compatible bucket.
132
+ *
133
+ * @param {Phonic.CreateExternalStoragePolicyRequest} request
134
+ * @param {ExternalStoragePoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
135
+ *
136
+ * @throws {@link Phonic.BadRequestError}
137
+ * @throws {@link Phonic.UnauthorizedError}
138
+ * @throws {@link Phonic.NotFoundError}
139
+ * @throws {@link Phonic.ConflictError}
140
+ * @throws {@link Phonic.InternalServerError}
141
+ *
142
+ * @example
143
+ * await client.externalStoragePolicies.create({
144
+ * project: "main",
145
+ * name: "conversation_archive",
146
+ * endpoint_url: "https://storage.example.com",
147
+ * bucket: "conversation-audio",
148
+ * region: "us-east-1",
149
+ * key_prefix: "phonic/conversations",
150
+ * addressing_style: "auto",
151
+ * access_key_id: "AKIAIOSFODNN7EXAMPLE",
152
+ * secret_access_key: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
153
+ * })
154
+ */
155
+ create(request, requestOptions) {
156
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
157
+ }
158
+ __create(request, requestOptions) {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
161
+ const { project } = request, _body = __rest(request, ["project"]);
162
+ const _queryParams = {
163
+ project,
164
+ };
165
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
166
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
167
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
168
+ url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
169
+ .base, "external_storage_policies"),
170
+ method: "POST",
171
+ headers: _headers,
172
+ contentType: "application/json",
173
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
174
+ requestType: "json",
175
+ body: _body,
176
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
177
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
178
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
179
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
180
+ logging: this._options.logging,
181
+ });
182
+ if (_response.ok) {
183
+ return {
184
+ data: _response.body,
185
+ rawResponse: _response.rawResponse,
186
+ };
187
+ }
188
+ if (_response.error.reason === "status-code") {
189
+ switch (_response.error.statusCode) {
190
+ case 400:
191
+ throw new Phonic.BadRequestError(_response.error.body, _response.rawResponse);
192
+ case 401:
193
+ throw new Phonic.UnauthorizedError(_response.error.body, _response.rawResponse);
194
+ case 404:
195
+ throw new Phonic.NotFoundError(_response.error.body, _response.rawResponse);
196
+ case 409:
197
+ throw new Phonic.ConflictError(_response.error.body, _response.rawResponse);
198
+ case 500:
199
+ throw new Phonic.InternalServerError(_response.error.body, _response.rawResponse);
200
+ default:
201
+ throw new errors.PhonicError({
202
+ statusCode: _response.error.statusCode,
203
+ body: _response.error.body,
204
+ rawResponse: _response.rawResponse,
205
+ });
206
+ }
207
+ }
208
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/external_storage_policies");
209
+ });
210
+ }
211
+ /**
212
+ * Returns an external storage policy by name or ID.
213
+ *
214
+ * @param {string} nameOrId - The name or the ID of the external storage policy to get.
215
+ * @param {Phonic.ExternalStoragePoliciesGetRequest} request
216
+ * @param {ExternalStoragePoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
217
+ *
218
+ * @throws {@link Phonic.ForbiddenError}
219
+ * @throws {@link Phonic.NotFoundError}
220
+ * @throws {@link Phonic.InternalServerError}
221
+ *
222
+ * @example
223
+ * await client.externalStoragePolicies.get("nameOrId", {
224
+ * project: "main"
225
+ * })
226
+ */
227
+ get(nameOrId, request = {}, requestOptions) {
228
+ return core.HttpResponsePromise.fromPromise(this.__get(nameOrId, request, requestOptions));
229
+ }
230
+ __get(nameOrId_1) {
231
+ return __awaiter(this, arguments, void 0, function* (nameOrId, request = {}, requestOptions) {
232
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
233
+ const { project } = request;
234
+ const _queryParams = {
235
+ project,
236
+ };
237
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
238
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
239
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
240
+ url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
241
+ .base, `external_storage_policies/${core.url.encodePathParam(nameOrId)}`),
242
+ method: "GET",
243
+ headers: _headers,
244
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
245
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
246
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
247
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
248
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
249
+ logging: this._options.logging,
250
+ });
251
+ if (_response.ok) {
252
+ return {
253
+ data: _response.body,
254
+ rawResponse: _response.rawResponse,
255
+ };
256
+ }
257
+ if (_response.error.reason === "status-code") {
258
+ switch (_response.error.statusCode) {
259
+ case 403:
260
+ throw new Phonic.ForbiddenError(_response.error.body, _response.rawResponse);
261
+ case 404:
262
+ throw new Phonic.NotFoundError(_response.error.body, _response.rawResponse);
263
+ case 500:
264
+ throw new Phonic.InternalServerError(_response.error.body, _response.rawResponse);
265
+ default:
266
+ throw new errors.PhonicError({
267
+ statusCode: _response.error.statusCode,
268
+ body: _response.error.body,
269
+ rawResponse: _response.rawResponse,
270
+ });
271
+ }
272
+ }
273
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/external_storage_policies/{nameOrId}");
274
+ });
275
+ }
276
+ /**
277
+ * Deletes an external storage policy by name or ID. The policy must not be referenced by any agent.
278
+ *
279
+ * @param {string} nameOrId - The name or the ID of the external storage policy to delete.
280
+ * @param {Phonic.ExternalStoragePoliciesDeleteRequest} request
281
+ * @param {ExternalStoragePoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
282
+ *
283
+ * @throws {@link Phonic.UnauthorizedError}
284
+ * @throws {@link Phonic.ForbiddenError}
285
+ * @throws {@link Phonic.NotFoundError}
286
+ * @throws {@link Phonic.ConflictError}
287
+ * @throws {@link Phonic.InternalServerError}
288
+ *
289
+ * @example
290
+ * await client.externalStoragePolicies.delete("nameOrId", {
291
+ * project: "main"
292
+ * })
293
+ */
294
+ delete(nameOrId, request = {}, requestOptions) {
295
+ return core.HttpResponsePromise.fromPromise(this.__delete(nameOrId, request, requestOptions));
296
+ }
297
+ __delete(nameOrId_1) {
298
+ return __awaiter(this, arguments, void 0, function* (nameOrId, request = {}, requestOptions) {
299
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
300
+ const { project } = request;
301
+ const _queryParams = {
302
+ project,
303
+ };
304
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
305
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
306
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
307
+ url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
308
+ .base, `external_storage_policies/${core.url.encodePathParam(nameOrId)}`),
309
+ method: "DELETE",
310
+ headers: _headers,
311
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
312
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
313
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
314
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
315
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
316
+ logging: this._options.logging,
317
+ });
318
+ if (_response.ok) {
319
+ return {
320
+ data: _response.body,
321
+ rawResponse: _response.rawResponse,
322
+ };
323
+ }
324
+ if (_response.error.reason === "status-code") {
325
+ switch (_response.error.statusCode) {
326
+ case 401:
327
+ throw new Phonic.UnauthorizedError(_response.error.body, _response.rawResponse);
328
+ case 403:
329
+ throw new Phonic.ForbiddenError(_response.error.body, _response.rawResponse);
330
+ case 404:
331
+ throw new Phonic.NotFoundError(_response.error.body, _response.rawResponse);
332
+ case 409:
333
+ throw new Phonic.ConflictError(_response.error.body, _response.rawResponse);
334
+ case 500:
335
+ throw new Phonic.InternalServerError(_response.error.body, _response.rawResponse);
336
+ default:
337
+ throw new errors.PhonicError({
338
+ statusCode: _response.error.statusCode,
339
+ body: _response.error.body,
340
+ rawResponse: _response.rawResponse,
341
+ });
342
+ }
343
+ }
344
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/external_storage_policies/{nameOrId}");
345
+ });
346
+ }
347
+ /**
348
+ * Updates an external storage policy by name or ID. Credentials can only be rotated by providing both `access_key_id` and `secret_access_key`.
349
+ *
350
+ * @param {string} nameOrId - The name or the ID of the external storage policy to update.
351
+ * @param {Phonic.UpdateExternalStoragePolicyRequest} request
352
+ * @param {ExternalStoragePoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
353
+ *
354
+ * @throws {@link Phonic.BadRequestError}
355
+ * @throws {@link Phonic.UnauthorizedError}
356
+ * @throws {@link Phonic.ForbiddenError}
357
+ * @throws {@link Phonic.NotFoundError}
358
+ * @throws {@link Phonic.ConflictError}
359
+ * @throws {@link Phonic.InternalServerError}
360
+ *
361
+ * @example
362
+ * await client.externalStoragePolicies.update("nameOrId", {
363
+ * project: "main",
364
+ * bucket: "conversation-audio-archive",
365
+ * key_prefix: "phonic/archive"
366
+ * })
367
+ */
368
+ update(nameOrId, request = {}, requestOptions) {
369
+ return core.HttpResponsePromise.fromPromise(this.__update(nameOrId, request, requestOptions));
370
+ }
371
+ __update(nameOrId_1) {
372
+ return __awaiter(this, arguments, void 0, function* (nameOrId, request = {}, requestOptions) {
373
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
374
+ const { project } = request, _body = __rest(request, ["project"]);
375
+ const _queryParams = {
376
+ project,
377
+ };
378
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
379
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
380
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
381
+ url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
382
+ .base, `external_storage_policies/${core.url.encodePathParam(nameOrId)}`),
383
+ method: "PATCH",
384
+ headers: _headers,
385
+ contentType: "application/json",
386
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
387
+ requestType: "json",
388
+ body: _body,
389
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
390
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
391
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
392
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
393
+ logging: this._options.logging,
394
+ });
395
+ if (_response.ok) {
396
+ return {
397
+ data: _response.body,
398
+ rawResponse: _response.rawResponse,
399
+ };
400
+ }
401
+ if (_response.error.reason === "status-code") {
402
+ switch (_response.error.statusCode) {
403
+ case 400:
404
+ throw new Phonic.BadRequestError(_response.error.body, _response.rawResponse);
405
+ case 401:
406
+ throw new Phonic.UnauthorizedError(_response.error.body, _response.rawResponse);
407
+ case 403:
408
+ throw new Phonic.ForbiddenError(_response.error.body, _response.rawResponse);
409
+ case 404:
410
+ throw new Phonic.NotFoundError(_response.error.body, _response.rawResponse);
411
+ case 409:
412
+ throw new Phonic.ConflictError(_response.error.body, _response.rawResponse);
413
+ case 500:
414
+ throw new Phonic.InternalServerError(_response.error.body, _response.rawResponse);
415
+ default:
416
+ throw new errors.PhonicError({
417
+ statusCode: _response.error.statusCode,
418
+ body: _response.error.body,
419
+ rawResponse: _response.rawResponse,
420
+ });
421
+ }
422
+ }
423
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/external_storage_policies/{nameOrId}");
424
+ });
425
+ }
426
+ }
427
+ exports.ExternalStoragePoliciesClient = ExternalStoragePoliciesClient;
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * project: "main",
5
+ * name: "conversation_archive",
6
+ * endpoint_url: "https://storage.example.com",
7
+ * bucket: "conversation-audio",
8
+ * region: "us-east-1",
9
+ * key_prefix: "phonic/conversations",
10
+ * addressing_style: "auto",
11
+ * access_key_id: "AKIAIOSFODNN7EXAMPLE",
12
+ * secret_access_key: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
13
+ * }
14
+ */
15
+ export interface CreateExternalStoragePolicyRequest {
16
+ /** The name of the project to create the external storage policy in. */
17
+ project?: string;
18
+ /** The name of the external storage policy. Must be snake_case, start with a lowercase letter and be unique within the project. */
19
+ name: string;
20
+ /** The S3-compatible endpoint URL that artifacts are uploaded to. Must be a publicly routable HTTPS URL without embedded credentials. */
21
+ endpoint_url: string;
22
+ /** The bucket that artifacts are uploaded to. */
23
+ bucket: string;
24
+ /** The region of the bucket. Set to `null` when the endpoint doesn't require a region. */
25
+ region?: string | null;
26
+ /** Prefix prepended to every object key. */
27
+ key_prefix?: string | null;
28
+ /** How bucket names are addressed in requests to the endpoint. */
29
+ addressing_style?: CreateExternalStoragePolicyRequest.AddressingStyle;
30
+ /** Access key ID used to authenticate with the endpoint. Stored encrypted and never returned. */
31
+ access_key_id: string;
32
+ /** Secret access key used to authenticate with the endpoint. Stored encrypted and never returned. */
33
+ secret_access_key: string;
34
+ }
35
+ export declare namespace CreateExternalStoragePolicyRequest {
36
+ /** How bucket names are addressed in requests to the endpoint. */
37
+ const AddressingStyle: {
38
+ readonly Auto: "auto";
39
+ readonly Virtual: "virtual";
40
+ readonly Path: "path";
41
+ };
42
+ type AddressingStyle = (typeof AddressingStyle)[keyof typeof AddressingStyle];
43
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CreateExternalStoragePolicyRequest = void 0;
5
+ var CreateExternalStoragePolicyRequest;
6
+ (function (CreateExternalStoragePolicyRequest) {
7
+ /** How bucket names are addressed in requests to the endpoint. */
8
+ CreateExternalStoragePolicyRequest.AddressingStyle = {
9
+ Auto: "auto",
10
+ Virtual: "virtual",
11
+ Path: "path",
12
+ };
13
+ })(CreateExternalStoragePolicyRequest || (exports.CreateExternalStoragePolicyRequest = CreateExternalStoragePolicyRequest = {}));
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * project: "main"
5
+ * }
6
+ */
7
+ export interface ExternalStoragePoliciesDeleteRequest {
8
+ /** The name of the project containing the external storage policy. Only used when `nameOrId` is a name. */
9
+ project?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * project: "main"
5
+ * }
6
+ */
7
+ export interface ExternalStoragePoliciesGetRequest {
8
+ /** The name of the project containing the external storage policy. Only used when `nameOrId` is a name. */
9
+ project?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * project: "main"
5
+ * }
6
+ */
7
+ export interface ExternalStoragePoliciesListRequest {
8
+ /** The name of the project to list external storage policies for. */
9
+ project?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * project: "main",
5
+ * bucket: "conversation-audio-archive",
6
+ * key_prefix: "phonic/archive"
7
+ * }
8
+ */
9
+ export interface UpdateExternalStoragePolicyRequest {
10
+ /** The name of the project containing the external storage policy. Only used when `nameOrId` is a name. */
11
+ project?: string;
12
+ /** The name of the external storage policy. Must be snake_case, start with a lowercase letter and be unique within the project. */
13
+ name?: string;
14
+ /** The S3-compatible endpoint URL that artifacts are uploaded to. Must be a publicly routable HTTPS URL without embedded credentials. */
15
+ endpoint_url?: string;
16
+ /** The bucket that artifacts are uploaded to. */
17
+ bucket?: string;
18
+ /** The region of the bucket. Set to `null` when the endpoint doesn't require a region. */
19
+ region?: string | null;
20
+ /** Prefix prepended to every object key. */
21
+ key_prefix?: string | null;
22
+ /** How bucket names are addressed in requests to the endpoint. */
23
+ addressing_style?: UpdateExternalStoragePolicyRequest.AddressingStyle;
24
+ /** Access key ID used to authenticate with the endpoint. Must be provided together with `secret_access_key`. */
25
+ access_key_id?: string;
26
+ /** Secret access key used to authenticate with the endpoint. Must be provided together with `access_key_id`. */
27
+ secret_access_key?: string;
28
+ }
29
+ export declare namespace UpdateExternalStoragePolicyRequest {
30
+ /** How bucket names are addressed in requests to the endpoint. */
31
+ const AddressingStyle: {
32
+ readonly Auto: "auto";
33
+ readonly Virtual: "virtual";
34
+ readonly Path: "path";
35
+ };
36
+ type AddressingStyle = (typeof AddressingStyle)[keyof typeof AddressingStyle];
37
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.UpdateExternalStoragePolicyRequest = void 0;
5
+ var UpdateExternalStoragePolicyRequest;
6
+ (function (UpdateExternalStoragePolicyRequest) {
7
+ /** How bucket names are addressed in requests to the endpoint. */
8
+ UpdateExternalStoragePolicyRequest.AddressingStyle = {
9
+ Auto: "auto",
10
+ Virtual: "virtual",
11
+ Path: "path",
12
+ };
13
+ })(UpdateExternalStoragePolicyRequest || (exports.UpdateExternalStoragePolicyRequest = UpdateExternalStoragePolicyRequest = {}));
@@ -0,0 +1,5 @@
1
+ export { CreateExternalStoragePolicyRequest } from "./CreateExternalStoragePolicyRequest.js";
2
+ export type { ExternalStoragePoliciesDeleteRequest } from "./ExternalStoragePoliciesDeleteRequest.js";
3
+ export type { ExternalStoragePoliciesGetRequest } from "./ExternalStoragePoliciesGetRequest.js";
4
+ export type { ExternalStoragePoliciesListRequest } from "./ExternalStoragePoliciesListRequest.js";
5
+ export { UpdateExternalStoragePolicyRequest } from "./UpdateExternalStoragePolicyRequest.js";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateExternalStoragePolicyRequest = exports.CreateExternalStoragePolicyRequest = void 0;
4
+ var CreateExternalStoragePolicyRequest_js_1 = require("./CreateExternalStoragePolicyRequest.js");
5
+ Object.defineProperty(exports, "CreateExternalStoragePolicyRequest", { enumerable: true, get: function () { return CreateExternalStoragePolicyRequest_js_1.CreateExternalStoragePolicyRequest; } });
6
+ var UpdateExternalStoragePolicyRequest_js_1 = require("./UpdateExternalStoragePolicyRequest.js");
7
+ Object.defineProperty(exports, "UpdateExternalStoragePolicyRequest", { enumerable: true, get: function () { return UpdateExternalStoragePolicyRequest_js_1.UpdateExternalStoragePolicyRequest; } });
@@ -0,0 +1,2 @@
1
+ export { ExternalStoragePoliciesClient } from "./client/Client.js";
2
+ export * from "./client/index.js";