Skip to content

Commit fc4413b

Browse files
feat(api): manual updates
1 parent ef53288 commit fc4413b

File tree

5 files changed

+53
-1
lines changed

5 files changed

+53
-1
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 42
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-967cd0e731df83a642ded194cacae3628050f679c600b1efd4e66cf269973531.yml
33
openapi_spec_hash: 98642308bee81ac776b7b1843089b888
4-
config_hash: ddd6954a6e35eb1a97e5d0cda8209e62
4+
config_hash: 49e367d7f33aeaf63ed738c1c0392d0a

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ Methods:
163163

164164
Types:
165165

166+
- <code><a href="./src/resources/accounts/url-endpoints.ts">URLEndpoint</a></code>
166167
- <code><a href="./src/resources/accounts/url-endpoints.ts">URLEndpointCreateResponse</a></code>
167168
- <code><a href="./src/resources/accounts/url-endpoints.ts">URLEndpointUpdateResponse</a></code>
168169
- <code><a href="./src/resources/accounts/url-endpoints.ts">URLEndpointListResponse</a></code>

src/resources/accounts/accounts.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
} from './origins';
1515
import * as URLEndpointsAPI from './url-endpoints';
1616
import {
17+
URLEndpoint,
1718
URLEndpointCreateParams,
1819
URLEndpointCreateResponse,
1920
URLEndpointGetResponse,
@@ -51,6 +52,7 @@ export declare namespace Accounts {
5152

5253
export {
5354
URLEndpoints as URLEndpoints,
55+
type URLEndpoint as URLEndpoint,
5456
type URLEndpointCreateResponse as URLEndpointCreateResponse,
5557
type URLEndpointUpdateResponse as URLEndpointUpdateResponse,
5658
type URLEndpointListResponse as URLEndpointListResponse,

src/resources/accounts/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export {
1313
} from './origins';
1414
export {
1515
URLEndpoints,
16+
type URLEndpoint,
1617
type URLEndpointCreateResponse,
1718
type URLEndpointUpdateResponse,
1819
type URLEndpointListResponse,

src/resources/accounts/url-endpoints.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,53 @@ export class URLEndpoints extends APIResource {
9191
}
9292
}
9393

94+
/**
95+
* Schema for URL endpoint resource.
96+
*/
97+
export interface URLEndpoint {
98+
/**
99+
* Description of the URL endpoint.
100+
*/
101+
description: string;
102+
103+
/**
104+
* Ordered list of origin IDs to try when the file isn’t in the Media Library;
105+
* ImageKit checks them in the sequence provided. Origin must be created before it
106+
* can be used in a URL endpoint.
107+
*/
108+
origins?: Array<string>;
109+
110+
/**
111+
* Path segment appended to your base URL to form the endpoint (letters, digits,
112+
* and hyphens only — or empty for the default endpoint).
113+
*/
114+
urlPrefix?: string;
115+
116+
/**
117+
* Configuration for third-party URL rewriting.
118+
*/
119+
urlRewriter?: URLEndpoint.Cloudinary | URLEndpoint.Imgix | URLEndpoint.Akamai;
120+
}
121+
122+
export namespace URLEndpoint {
123+
export interface Cloudinary {
124+
type: 'CLOUDINARY';
125+
126+
/**
127+
* Whether to preserve `<asset_type>/<delivery_type>` in the rewritten URL.
128+
*/
129+
preserveAssetDeliveryTypes?: boolean;
130+
}
131+
132+
export interface Imgix {
133+
type: 'IMGIX';
134+
}
135+
136+
export interface Akamai {
137+
type: 'AKAMAI';
138+
}
139+
}
140+
94141
/**
95142
* URL‑endpoint object as returned by the API.
96143
*/
@@ -419,6 +466,7 @@ export namespace URLEndpointUpdateParams {
419466

420467
export declare namespace URLEndpoints {
421468
export {
469+
type URLEndpoint as URLEndpoint,
422470
type URLEndpointCreateResponse as URLEndpointCreateResponse,
423471
type URLEndpointUpdateResponse as URLEndpointUpdateResponse,
424472
type URLEndpointListResponse as URLEndpointListResponse,

0 commit comments

Comments
 (0)