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