@openrouter/sdk 1.2.135 → 1.2.136
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/esm/funcs/containersListContainerFiles.d.ts +1 -1
- package/esm/funcs/containersListContainerFiles.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/containerfilelistresponse.d.ts +4 -1
- package/esm/models/operations/listcontainerfiles.d.ts +1 -1
- package/esm/sdk/containers.d.ts +1 -1
- package/esm/sdk/containers.js +1 -1
- package/jsr.json +1 -1
- package/package.json +4 -4
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* List container files
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Lists the files in a container, in lexicographic path order. The container id is the canonical id returned in bash/shell tool results; a restarted session is a separate container with its own id. Paginate with `limit` and `after` (pass the previous page’s `last_id`); `has_more: true` always means the next page is fetchable that way.
|
|
16
|
+
* Lists the files in a container, in lexicographic path order. The container id is the canonical id returned in bash/shell tool results; a restarted session is a separate container with its own id. Paginate with `limit` and `after` (pass the previous page’s `last_id`); `has_more: true` always means the next page is fetchable that way. `last_id` is the resume cursor: it is the last listed file’s id, except when a page ends at the per-request scan bound on hidden bookkeeping objects, where it names the scan position instead and may not appear in `data` (which can then be empty).
|
|
17
17
|
*/
|
|
18
18
|
export declare function containersListContainerFiles(client: OpenRouterCore, request: operations.ListContainerFilesRequest, options?: RequestOptions): APIPromise<Result<models.ContainerFileListResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | errors.ServiceUnavailableResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=containersListContainerFiles.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* List container files
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Lists the files in a container, in lexicographic path order. The container id is the canonical id returned in bash/shell tool results; a restarted session is a separate container with its own id. Paginate with `limit` and `after` (pass the previous page’s `last_id`); `has_more: true` always means the next page is fetchable that way.
|
|
20
|
+
* Lists the files in a container, in lexicographic path order. The container id is the canonical id returned in bash/shell tool results; a restarted session is a separate container with its own id. Paginate with `limit` and `after` (pass the previous page’s `last_id`); `has_more: true` always means the next page is fetchable that way. `last_id` is the resume cursor: it is the last listed file’s id, except when a page ends at the per-request scan bound on hidden bookkeeping objects, where it names the scan position instead and may not appear in `data` (which can then be empty).
|
|
21
21
|
*/
|
|
22
22
|
export function containersListContainerFiles(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
50
50
|
export declare const SDK_METADATA: {
|
|
51
51
|
readonly language: "typescript";
|
|
52
52
|
readonly openapiDocVersion: "1.0.0";
|
|
53
|
-
readonly sdkVersion: "1.2.
|
|
53
|
+
readonly sdkVersion: "1.2.136";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.136 2.914.0 1.0.0 @openrouter/sdk";
|
|
56
56
|
};
|
|
57
57
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
|
|
|
29
29
|
export const SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "1.0.0",
|
|
32
|
-
sdkVersion: "1.2.
|
|
32
|
+
sdkVersion: "1.2.136",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.136 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -11,9 +11,12 @@ export type ContainerFileListResponse = {
|
|
|
11
11
|
data: Array<ContainerFile>;
|
|
12
12
|
firstId: string | null;
|
|
13
13
|
/**
|
|
14
|
-
* True when another page can be fetched by passing `after=last_id
|
|
14
|
+
* True when another page can be fetched by passing `after=last_id`; `last_id` is non-null whenever this is true.
|
|
15
15
|
*/
|
|
16
16
|
hasMore: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Cursor for the next page (pass as `after`). The last entry’s id, except when the page stopped at the per-request scan bound on hidden bookkeeping objects: then it names the scan position and may not appear in `data`. Null only when `has_more` is false and `data` is empty.
|
|
19
|
+
*/
|
|
17
20
|
lastId: string | null;
|
|
18
21
|
object: ContainerFileListResponseObject;
|
|
19
22
|
};
|
|
@@ -49,7 +49,7 @@ export type ListContainerFilesRequest = {
|
|
|
49
49
|
*/
|
|
50
50
|
limit?: number | undefined;
|
|
51
51
|
/**
|
|
52
|
-
* Forward cursor:
|
|
52
|
+
* Forward cursor: the previous page’s `last_id` (or any container file id); listing resumes strictly after that path.
|
|
53
53
|
*/
|
|
54
54
|
after?: string | undefined;
|
|
55
55
|
};
|
package/esm/sdk/containers.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare class Containers extends ClientSDK {
|
|
|
6
6
|
* List container files
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Lists the files in a container, in lexicographic path order. The container id is the canonical id returned in bash/shell tool results; a restarted session is a separate container with its own id. Paginate with `limit` and `after` (pass the previous page’s `last_id`); `has_more: true` always means the next page is fetchable that way.
|
|
9
|
+
* Lists the files in a container, in lexicographic path order. The container id is the canonical id returned in bash/shell tool results; a restarted session is a separate container with its own id. Paginate with `limit` and `after` (pass the previous page’s `last_id`); `has_more: true` always means the next page is fetchable that way. `last_id` is the resume cursor: it is the last listed file’s id, except when a page ends at the per-request scan bound on hidden bookkeeping objects, where it names the scan position instead and may not appear in `data` (which can then be empty).
|
|
10
10
|
*/
|
|
11
11
|
listContainerFiles(request: operations.ListContainerFilesRequest, options?: RequestOptions): Promise<models.ContainerFileListResponse>;
|
|
12
12
|
/**
|
package/esm/sdk/containers.js
CHANGED
|
@@ -13,7 +13,7 @@ export class Containers extends ClientSDK {
|
|
|
13
13
|
* List container files
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Lists the files in a container, in lexicographic path order. The container id is the canonical id returned in bash/shell tool results; a restarted session is a separate container with its own id. Paginate with `limit` and `after` (pass the previous page’s `last_id`); `has_more: true` always means the next page is fetchable that way.
|
|
16
|
+
* Lists the files in a container, in lexicographic path order. The container id is the canonical id returned in bash/shell tool results; a restarted session is a separate container with its own id. Paginate with `limit` and `after` (pass the previous page’s `last_id`); `has_more: true` always means the next page is fetchable that way. `last_id` is the resume cursor: it is the last listed file’s id, except when a page ends at the per-request scan bound on hidden bookkeeping objects, where it names the scan position instead and may not appear in `data` (which can then be empty).
|
|
17
17
|
*/
|
|
18
18
|
async listContainerFiles(request, options) {
|
|
19
19
|
return unwrapAsync(containersListContainerFiles(this, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.136",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"compile": "tsc",
|
|
77
76
|
"postinstall": "node scripts/check-types.js || true",
|
|
78
77
|
"prepare": "npm run build",
|
|
78
|
+
"test:e2e": "vitest --run --project e2e",
|
|
79
|
+
"test:transit": "exit 0",
|
|
79
80
|
"test:watch": "vitest --watch --project unit",
|
|
80
81
|
"typecheck": "tsc --noEmit",
|
|
82
|
+
"compile": "tsc",
|
|
81
83
|
"test": "vitest --run --project unit",
|
|
82
|
-
"test:e2e": "vitest --run --project e2e",
|
|
83
|
-
"test:transit": "exit 0",
|
|
84
84
|
"typecheck:transit": "exit 0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|