@b3os/sdk 0.2.0 → 0.2.2

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 (152) hide show
  1. package/dist/cjs/core/sse.d.ts +2 -0
  2. package/dist/cjs/core/sse.js +17 -5
  3. package/dist/cjs/core/sse.js.map +1 -1
  4. package/dist/cjs/core/util.d.ts +1 -1
  5. package/dist/cjs/core/util.js +1 -1
  6. package/dist/cjs/generated/client.d.ts +13 -0
  7. package/dist/cjs/generated/client.js +25 -0
  8. package/dist/cjs/generated/client.js.map +1 -1
  9. package/dist/cjs/generated/errors.d.ts +1 -1
  10. package/dist/cjs/generated/errors.js +95 -0
  11. package/dist/cjs/generated/errors.js.map +1 -1
  12. package/dist/cjs/generated/ids.d.ts +61 -0
  13. package/dist/cjs/generated/ids.js +15 -0
  14. package/dist/cjs/generated/ids.js.map +1 -1
  15. package/dist/cjs/generated/jobs.js +4 -0
  16. package/dist/cjs/generated/jobs.js.map +1 -1
  17. package/dist/cjs/generated/ns/actions.d.ts +303 -4
  18. package/dist/cjs/generated/ns/actions.js +446 -4
  19. package/dist/cjs/generated/ns/actions.js.map +1 -1
  20. package/dist/cjs/generated/ns/agents.d.ts +229 -0
  21. package/dist/cjs/generated/ns/agents.js +402 -0
  22. package/dist/cjs/generated/ns/agents.js.map +1 -0
  23. package/dist/cjs/generated/ns/images.d.ts +81 -0
  24. package/dist/cjs/generated/ns/images.js +122 -0
  25. package/dist/cjs/generated/ns/images.js.map +1 -0
  26. package/dist/cjs/generated/ns/infer.d.ts +71 -3
  27. package/dist/cjs/generated/ns/infer.js +98 -3
  28. package/dist/cjs/generated/ns/infer.js.map +1 -1
  29. package/dist/cjs/generated/ns/keys.d.ts +3 -1
  30. package/dist/cjs/generated/ns/keys.js +3 -1
  31. package/dist/cjs/generated/ns/keys.js.map +1 -1
  32. package/dist/cjs/generated/ns/listeners.d.ts +159 -0
  33. package/dist/cjs/generated/ns/listeners.js +264 -0
  34. package/dist/cjs/generated/ns/listeners.js.map +1 -0
  35. package/dist/cjs/generated/ns/orgs.d.ts +10 -0
  36. package/dist/cjs/generated/ns/orgs.js +26 -1
  37. package/dist/cjs/generated/ns/orgs.js.map +1 -1
  38. package/dist/cjs/generated/ns/projects.d.ts +32 -0
  39. package/dist/cjs/generated/ns/projects.js +66 -0
  40. package/dist/cjs/generated/ns/projects.js.map +1 -1
  41. package/dist/cjs/generated/ns/render.d.ts +192 -21
  42. package/dist/cjs/generated/ns/render.js +267 -24
  43. package/dist/cjs/generated/ns/render.js.map +1 -1
  44. package/dist/cjs/generated/ns/requests.d.ts +3 -1
  45. package/dist/cjs/generated/ns/requests.js +3 -1
  46. package/dist/cjs/generated/ns/requests.js.map +1 -1
  47. package/dist/cjs/generated/ns/routines.d.ts +11 -4
  48. package/dist/cjs/generated/ns/routines.js +11 -4
  49. package/dist/cjs/generated/ns/routines.js.map +1 -1
  50. package/dist/cjs/generated/ns/sandboxes.d.ts +292 -7
  51. package/dist/cjs/generated/ns/sandboxes.js +444 -6
  52. package/dist/cjs/generated/ns/sandboxes.js.map +1 -1
  53. package/dist/cjs/generated/ns/usage.d.ts +1 -1
  54. package/dist/cjs/generated/ns/usage.js +1 -1
  55. package/dist/cjs/generated/ns/vision.d.ts +59 -17
  56. package/dist/cjs/generated/ns/vision.js +59 -21
  57. package/dist/cjs/generated/ns/vision.js.map +1 -1
  58. package/dist/cjs/generated/types.d.ts +2787 -85
  59. package/dist/cjs/helpers/sandboxes.d.ts +46 -3
  60. package/dist/cjs/helpers/sandboxes.js +127 -14
  61. package/dist/cjs/helpers/sandboxes.js.map +1 -1
  62. package/dist/cjs/index.d.ts +1 -1
  63. package/dist/cjs/index.js +2 -1
  64. package/dist/cjs/index.js.map +1 -1
  65. package/dist/esm/core/sse.d.ts +2 -0
  66. package/dist/esm/core/sse.js +17 -5
  67. package/dist/esm/core/sse.js.map +1 -1
  68. package/dist/esm/core/util.d.ts +1 -1
  69. package/dist/esm/core/util.js +1 -1
  70. package/dist/esm/generated/client.d.ts +13 -0
  71. package/dist/esm/generated/client.js +25 -0
  72. package/dist/esm/generated/client.js.map +1 -1
  73. package/dist/esm/generated/errors.d.ts +1 -1
  74. package/dist/esm/generated/errors.js +95 -0
  75. package/dist/esm/generated/errors.js.map +1 -1
  76. package/dist/esm/generated/ids.d.ts +61 -0
  77. package/dist/esm/generated/ids.js +15 -0
  78. package/dist/esm/generated/ids.js.map +1 -1
  79. package/dist/esm/generated/jobs.js +4 -0
  80. package/dist/esm/generated/jobs.js.map +1 -1
  81. package/dist/esm/generated/ns/actions.d.ts +303 -4
  82. package/dist/esm/generated/ns/actions.js +446 -4
  83. package/dist/esm/generated/ns/actions.js.map +1 -1
  84. package/dist/esm/generated/ns/agents.d.ts +229 -0
  85. package/dist/esm/generated/ns/agents.js +398 -0
  86. package/dist/esm/generated/ns/agents.js.map +1 -0
  87. package/dist/esm/generated/ns/images.d.ts +81 -0
  88. package/dist/esm/generated/ns/images.js +118 -0
  89. package/dist/esm/generated/ns/images.js.map +1 -0
  90. package/dist/esm/generated/ns/infer.d.ts +71 -3
  91. package/dist/esm/generated/ns/infer.js +98 -3
  92. package/dist/esm/generated/ns/infer.js.map +1 -1
  93. package/dist/esm/generated/ns/keys.d.ts +3 -1
  94. package/dist/esm/generated/ns/keys.js +3 -1
  95. package/dist/esm/generated/ns/keys.js.map +1 -1
  96. package/dist/esm/generated/ns/listeners.d.ts +159 -0
  97. package/dist/esm/generated/ns/listeners.js +260 -0
  98. package/dist/esm/generated/ns/listeners.js.map +1 -0
  99. package/dist/esm/generated/ns/orgs.d.ts +10 -0
  100. package/dist/esm/generated/ns/orgs.js +26 -1
  101. package/dist/esm/generated/ns/orgs.js.map +1 -1
  102. package/dist/esm/generated/ns/projects.d.ts +32 -0
  103. package/dist/esm/generated/ns/projects.js +66 -0
  104. package/dist/esm/generated/ns/projects.js.map +1 -1
  105. package/dist/esm/generated/ns/render.d.ts +192 -21
  106. package/dist/esm/generated/ns/render.js +267 -24
  107. package/dist/esm/generated/ns/render.js.map +1 -1
  108. package/dist/esm/generated/ns/requests.d.ts +3 -1
  109. package/dist/esm/generated/ns/requests.js +3 -1
  110. package/dist/esm/generated/ns/requests.js.map +1 -1
  111. package/dist/esm/generated/ns/routines.d.ts +11 -4
  112. package/dist/esm/generated/ns/routines.js +11 -4
  113. package/dist/esm/generated/ns/routines.js.map +1 -1
  114. package/dist/esm/generated/ns/sandboxes.d.ts +292 -7
  115. package/dist/esm/generated/ns/sandboxes.js +444 -6
  116. package/dist/esm/generated/ns/sandboxes.js.map +1 -1
  117. package/dist/esm/generated/ns/usage.d.ts +1 -1
  118. package/dist/esm/generated/ns/usage.js +1 -1
  119. package/dist/esm/generated/ns/vision.d.ts +59 -17
  120. package/dist/esm/generated/ns/vision.js +59 -21
  121. package/dist/esm/generated/ns/vision.js.map +1 -1
  122. package/dist/esm/generated/types.d.ts +2787 -85
  123. package/dist/esm/helpers/sandboxes.d.ts +46 -3
  124. package/dist/esm/helpers/sandboxes.js +126 -13
  125. package/dist/esm/helpers/sandboxes.js.map +1 -1
  126. package/dist/esm/index.d.ts +1 -1
  127. package/dist/esm/index.js +1 -1
  128. package/dist/esm/index.js.map +1 -1
  129. package/package.json +1 -1
  130. package/src/core/sse.ts +17 -5
  131. package/src/core/util.ts +1 -1
  132. package/src/generated/client.ts +28 -0
  133. package/src/generated/errors.ts +190 -0
  134. package/src/generated/ids.ts +15 -0
  135. package/src/generated/jobs.ts +4 -0
  136. package/src/generated/ns/actions.ts +483 -4
  137. package/src/generated/ns/agents.ts +461 -0
  138. package/src/generated/ns/images.ts +128 -0
  139. package/src/generated/ns/infer.ts +100 -3
  140. package/src/generated/ns/keys.ts +3 -1
  141. package/src/generated/ns/listeners.ts +296 -0
  142. package/src/generated/ns/orgs.ts +27 -1
  143. package/src/generated/ns/projects.ts +74 -0
  144. package/src/generated/ns/render.ts +277 -24
  145. package/src/generated/ns/requests.ts +3 -1
  146. package/src/generated/ns/routines.ts +11 -4
  147. package/src/generated/ns/sandboxes.ts +492 -7
  148. package/src/generated/ns/usage.ts +1 -1
  149. package/src/generated/ns/vision.ts +59 -21
  150. package/src/generated/types.ts +3511 -575
  151. package/src/helpers/sandboxes.ts +167 -14
  152. package/src/index.ts +1 -0
@@ -0,0 +1,81 @@
1
+ import type { RequestOptions } from "../../core/client.ts";
2
+ import { Namespace } from "../../core/namespace.ts";
3
+ import type { Op } from "../../core/op.ts";
4
+ import type { APIPromise } from "../../core/promise.ts";
5
+ import type * as T from "../types.ts";
6
+ /** Descriptors of every images operation, keyed by method name (for tooling and custom clients). */
7
+ export declare const imagesOps: {
8
+ readonly listImages: Op;
9
+ readonly importImage: Op;
10
+ readonly deleteImage: Op;
11
+ readonly getImage: Op;
12
+ };
13
+ /** Public OCI images imported as templates for your project's sandboxes (`/v1/images`). */
14
+ export declare class ImagesAPI extends Namespace {
15
+ /**
16
+ * List images
17
+ *
18
+ * Lists this project's images, newest first, in every status (an `evicted` or `failed` image stays listed
19
+ * until it is deleted). Other projects' images are never listed.
20
+ *
21
+ * `GET /v1/images` · scope `sandboxes:read` · served by the node
22
+ */
23
+ listImages(options?: RequestOptions): APIPromise<T.ImageList>;
24
+ /**
25
+ * Import an image
26
+ *
27
+ * Imports a public OCI image as a template for this project's sandboxes. The reference is resolved before the
28
+ * answer (a tag to its digest with one manifest `HEAD`), so the answer names the exact image: `202` with a new
29
+ * image (`status: queued`), or `200` with the project's existing image when one with the same key exists,
30
+ * ready or still importing. The key covers the project, the image's digest, the warm-up, the size and the
31
+ * node's own build inputs (guest agent, kernel, the unpacker), so the same request after a node release can be
32
+ * a new image. Watch it with `GET /v1/images/{image_id}?wait=30` until `ready` (or `failed`), then create
33
+ * sandboxes with `POST /v1/sandboxes {"image": "img_…"}`.
34
+ *
35
+ * The import runs whether or not the client stays connected. It holds `images.rootfs_max` of your
36
+ * organization's snapshot storage while it runs and then counts as one snapshot, its root file system plus its
37
+ * warm snapshot's memory, against `sandboxes.snapshots_max` and `sandboxes.snapshot_storage_max`. An
38
+ * organization runs one import at a time and a node two; more wait in the queue (`queued`). The CPU the import
39
+ * uses (the unpacking microVM and the warm-up boot) is recorded as `images.import_vcpu_ms`.
40
+ *
41
+ * `warmup.commands` run in order, each as an argument list (no shell unless you name one), as root, with no
42
+ * network, at most 300 seconds in all; what they read is in the page cache of every sandbox restored from the
43
+ * snapshot. The image's `USER`, `ENV` and `WORKDIR` apply to every command your sandboxes run. Clones of one
44
+ * warm snapshot share the in-process random state of anything the warm-up left running, within your project
45
+ * only; the kernel's random pool is reseeded for each.
46
+ *
47
+ * `size` (`vcpu`, `memory_mib`) is fixed at import: every sandbox from the image has it, and a create that asks
48
+ * for another size answers `400 invalid_request`. Without the flag on for your organization the answer is
49
+ * `404 feature_not_enabled`; without an image store on the node, a full store or the node's disk under its
50
+ * floor, `503 capacity_unavailable`.
51
+ *
52
+ * A `failed` image whose warm snapshot could not be rebuilt (`error.stage: rebuild`) keeps its root file
53
+ * system, and the node tries it again at its next start. The same request imports it again under its ID and
54
+ * replaces that file system, except while a running or paused sandbox, or a snapshot taken from one, uses the
55
+ * image's template: then the answer is `409 image_in_use`.
56
+ *
57
+ * `POST /v1/images` · scope `sandboxes:write` · served by the node
58
+ */
59
+ importImage(body: T.ImageImportRequest, options?: RequestOptions): APIPromise<T.Image>;
60
+ /**
61
+ * Delete an image
62
+ *
63
+ * Deletes the image, its template, its warm snapshot and its root file system. An import in progress is
64
+ * cancelled and leaves nothing behind. While a running or paused sandbox, or a snapshot taken from one, uses
65
+ * the image's template the answer is `409 image_in_use`.
66
+ *
67
+ * `DELETE /v1/images/{image_id}` · scope `sandboxes:write` · served by the node
68
+ */
69
+ deleteImage(imageId: string, options?: RequestOptions): APIPromise<T.Deleted>;
70
+ /**
71
+ * Get an image
72
+ *
73
+ * Returns one of this project's images. With `wait` (seconds, at most 30) the answer is held until the image is
74
+ * `ready`, `failed` or `evicted`, or the time passes, whichever is first; it then returns the image as it is.
75
+ * `stages_ms` times each stage the import has finished; `error` says why a `failed` image failed, with the
76
+ * last 4 KiB of output.
77
+ *
78
+ * `GET /v1/images/{image_id}` · scope `sandboxes:read` · served by the node
79
+ */
80
+ getImage(imageId: string, params?: T.ImagesGetImageParams, options?: RequestOptions): APIPromise<T.Image>;
81
+ }
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ // Generated by packages/sdk/scripts/generate.mjs from packages/spec/dist. Do not edit; run `pnpm generate`.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ImagesAPI = exports.imagesOps = void 0;
5
+ const namespace_ts_1 = require("../../core/namespace.js");
6
+ const listImagesOp = {
7
+ id: "imagesListImages",
8
+ method: "GET",
9
+ path: "/v1/images",
10
+ timeoutMs: 10000,
11
+ scope: "sandboxes:read",
12
+ };
13
+ const importImageOp = {
14
+ id: "imagesImportImage",
15
+ method: "POST",
16
+ path: "/v1/images",
17
+ body: "json",
18
+ timeoutMs: 30000,
19
+ scope: "sandboxes:write",
20
+ };
21
+ const deleteImageOp = {
22
+ id: "imagesDeleteImage",
23
+ method: "DELETE",
24
+ path: "/v1/images/{image_id}",
25
+ params: ["image_id"],
26
+ timeoutMs: 30000,
27
+ scope: "sandboxes:write",
28
+ };
29
+ const getImageOp = {
30
+ id: "imagesGetImage",
31
+ method: "GET",
32
+ path: "/v1/images/{image_id}",
33
+ params: ["image_id"],
34
+ timeoutMs: 35000,
35
+ scope: "sandboxes:read",
36
+ };
37
+ /** Descriptors of every images operation, keyed by method name (for tooling and custom clients). */
38
+ exports.imagesOps = {
39
+ listImages: listImagesOp,
40
+ importImage: importImageOp,
41
+ deleteImage: deleteImageOp,
42
+ getImage: getImageOp,
43
+ };
44
+ /** Public OCI images imported as templates for your project's sandboxes (`/v1/images`). */
45
+ class ImagesAPI extends namespace_ts_1.Namespace {
46
+ /**
47
+ * List images
48
+ *
49
+ * Lists this project's images, newest first, in every status (an `evicted` or `failed` image stays listed
50
+ * until it is deleted). Other projects' images are never listed.
51
+ *
52
+ * `GET /v1/images` · scope `sandboxes:read` · served by the node
53
+ */
54
+ listImages(options) {
55
+ return this._client._call(listImagesOp, {}, options);
56
+ }
57
+ /**
58
+ * Import an image
59
+ *
60
+ * Imports a public OCI image as a template for this project's sandboxes. The reference is resolved before the
61
+ * answer (a tag to its digest with one manifest `HEAD`), so the answer names the exact image: `202` with a new
62
+ * image (`status: queued`), or `200` with the project's existing image when one with the same key exists,
63
+ * ready or still importing. The key covers the project, the image's digest, the warm-up, the size and the
64
+ * node's own build inputs (guest agent, kernel, the unpacker), so the same request after a node release can be
65
+ * a new image. Watch it with `GET /v1/images/{image_id}?wait=30` until `ready` (or `failed`), then create
66
+ * sandboxes with `POST /v1/sandboxes {"image": "img_…"}`.
67
+ *
68
+ * The import runs whether or not the client stays connected. It holds `images.rootfs_max` of your
69
+ * organization's snapshot storage while it runs and then counts as one snapshot, its root file system plus its
70
+ * warm snapshot's memory, against `sandboxes.snapshots_max` and `sandboxes.snapshot_storage_max`. An
71
+ * organization runs one import at a time and a node two; more wait in the queue (`queued`). The CPU the import
72
+ * uses (the unpacking microVM and the warm-up boot) is recorded as `images.import_vcpu_ms`.
73
+ *
74
+ * `warmup.commands` run in order, each as an argument list (no shell unless you name one), as root, with no
75
+ * network, at most 300 seconds in all; what they read is in the page cache of every sandbox restored from the
76
+ * snapshot. The image's `USER`, `ENV` and `WORKDIR` apply to every command your sandboxes run. Clones of one
77
+ * warm snapshot share the in-process random state of anything the warm-up left running, within your project
78
+ * only; the kernel's random pool is reseeded for each.
79
+ *
80
+ * `size` (`vcpu`, `memory_mib`) is fixed at import: every sandbox from the image has it, and a create that asks
81
+ * for another size answers `400 invalid_request`. Without the flag on for your organization the answer is
82
+ * `404 feature_not_enabled`; without an image store on the node, a full store or the node's disk under its
83
+ * floor, `503 capacity_unavailable`.
84
+ *
85
+ * A `failed` image whose warm snapshot could not be rebuilt (`error.stage: rebuild`) keeps its root file
86
+ * system, and the node tries it again at its next start. The same request imports it again under its ID and
87
+ * replaces that file system, except while a running or paused sandbox, or a snapshot taken from one, uses the
88
+ * image's template: then the answer is `409 image_in_use`.
89
+ *
90
+ * `POST /v1/images` · scope `sandboxes:write` · served by the node
91
+ */
92
+ importImage(body, options) {
93
+ return this._client._call(importImageOp, { body }, options);
94
+ }
95
+ /**
96
+ * Delete an image
97
+ *
98
+ * Deletes the image, its template, its warm snapshot and its root file system. An import in progress is
99
+ * cancelled and leaves nothing behind. While a running or paused sandbox, or a snapshot taken from one, uses
100
+ * the image's template the answer is `409 image_in_use`.
101
+ *
102
+ * `DELETE /v1/images/{image_id}` · scope `sandboxes:write` · served by the node
103
+ */
104
+ deleteImage(imageId, options) {
105
+ return this._client._call(deleteImageOp, { path: [imageId] }, options);
106
+ }
107
+ /**
108
+ * Get an image
109
+ *
110
+ * Returns one of this project's images. With `wait` (seconds, at most 30) the answer is held until the image is
111
+ * `ready`, `failed` or `evicted`, or the time passes, whichever is first; it then returns the image as it is.
112
+ * `stages_ms` times each stage the import has finished; `error` says why a `failed` image failed, with the
113
+ * last 4 KiB of output.
114
+ *
115
+ * `GET /v1/images/{image_id}` · scope `sandboxes:read` · served by the node
116
+ */
117
+ getImage(imageId, params, options) {
118
+ return this._client._call(getImageOp, { path: [imageId], query: params }, options);
119
+ }
120
+ }
121
+ exports.ImagesAPI = ImagesAPI;
122
+ //# sourceMappingURL=images.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"images.js","sourceRoot":"","sources":["../../../../src/generated/ns/images.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;AAG5G,0DAAoD;AAKpD,MAAM,YAAY,GAAO;IACvB,EAAE,EAAE,kBAAkB;IACtB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,YAAY;IAClB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,gBAAgB;CACxB,CAAC;AACF,MAAM,aAAa,GAAO;IACxB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,YAAY;IAClB,IAAI,EAA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IACH,QAAQ,CAAC,OAAe,EAAE,MAA+B,EAAE,OAAwB;QACjF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAU,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF;AA9ED,8BA8EC"}
@@ -13,9 +13,11 @@ export declare const inferOps: {
13
13
  readonly createEmbeddings: Op;
14
14
  readonly listModels: Op;
15
15
  readonly getModel: Op;
16
+ readonly createRerank: Op;
16
17
  readonly createResponse: Op;
17
18
  readonly createMessage: Op;
18
19
  readonly countMessageTokens: Op;
20
+ readonly createRerankV2: Op;
19
21
  };
20
22
  /** Models on the node: OpenAI-compatible chat, embeddings and speech (`/v1/infer`). */
21
23
  export declare class InferAPI extends Namespace {
@@ -137,8 +139,33 @@ export declare class InferAPI extends Namespace {
137
139
  /**
138
140
  * Create embeddings
139
141
  *
140
- * The OpenAI Embeddings API, for embedding models the node serves (`b3os.kind` is `embedding`). Other models
141
- * return `404 model_not_available`; the beta node serves no embedding model yet. Bills input tokens.
142
+ * The OpenAI Embeddings API, for embedding models the node serves (`b3os.kind` is `embedding` in
143
+ * `GET /v1/infer/models`). Other models return `404 model_not_available`; the beta node serves no embedding
144
+ * model yet. An embedding model has no alias: name its own ID, so stored vectors always come from the model
145
+ * that made them.
146
+ *
147
+ * `input` is a string or 1 to 2,048 strings, none of them empty (`400 invalid_request` pointing at it). Arrays
148
+ * of token IDs are `400 unsupported_parameter`: the node reads text only, and token IDs from another tokenizer
149
+ * would give wrong vectors (LangChain's `OpenAIEmbeddings` sends them unless it is created with
150
+ * `check_embedding_ctx_length=False`). An input may have as many tokens as the model's `context_length`,
151
+ * query prompt included; a longer one is `400 context_length_exceeded` pointing at it, unless `truncate` is
152
+ * `end`, which cuts it at the end to fit.
153
+ *
154
+ * `encoding_format` is `float` (the default) or `base64` (little-endian float32, what the OpenAI SDKs ask for
155
+ * by default); both carry the same numbers. Every vector has length 1. `dimensions` shortens the vectors, from
156
+ * the model's `b3os.min_dimensions` to its `b3os.dimensions` values (`400 unsupported_parameter` outside it):
157
+ * the node cuts each vector and scales it back to length 1. `user` is accepted and ignored.
158
+ *
159
+ * B3OS extensions: `input_type: "query"` puts the model's query prompt before each input, for text you search
160
+ * with (`document`, the default, embeds the input as it is), and `instruction` replaces the task the prompt
161
+ * describes (with `input_type: "query"` only, at most 512 characters). The prompt's tokens are billed with the
162
+ * input. The node sends a large request to the model in parts of at most 8,192 tokens and answers in input
163
+ * order.
164
+ *
165
+ * Bills `infer.embed_tokens`, the tokens the model read; a request that fails is not billed. Requests are
166
+ * admitted against your organization's per-minute token and request limits on the model, and against 8
167
+ * embedding and rerank requests in flight per organization (`429 concurrency_limited`, limit
168
+ * `infer.pool.concurrent`). Embeddings are never kept by the model call log. No streaming.
142
169
  *
143
170
  * `POST /v1/infer/embeddings` · scope `infer:run` · served by the node
144
171
  *
@@ -152,7 +179,8 @@ export declare class InferAPI extends Namespace {
152
179
  * quantization, whether it supports tools, JSON Schema output and image input, the largest accepted request,
153
180
  * and your per-model token and request limits. Chat models are listed while the node's model runtime is
154
181
  * configured (one that is restarting is still listed; requests get `503` with `Retry-After`); speech models
155
- * while the voice service answers.
182
+ * while the voice service answers. Embedding and rerank models, where a node serves them, are listed the same
183
+ * way, each with its own engine.
156
184
  *
157
185
  * `GET /v1/infer/models` · scope `infer:read` · served by the node
158
186
  */
@@ -165,6 +193,34 @@ export declare class InferAPI extends Namespace {
165
193
  * `GET /v1/infer/models/{model}` · scope `infer:read` · served by the node
166
194
  */
167
195
  getModel(model: string, options?: RequestOptions): APIPromise<T.Model>;
196
+ /**
197
+ * Rerank documents
198
+ *
199
+ * Ranks documents by how well they answer a query, in the shape of Cohere's v2 rerank API, for rerank models
200
+ * the node serves (`b3os.kind` is `rerank` in `GET /v1/infer/models`). Other models return
201
+ * `404 model_not_available`; the beta node serves no rerank model yet. The same operation answers at
202
+ * `POST /v1/infer/v2/rerank`, so Cohere's SDK works with its base URL set to
203
+ * `https://beta-api.b3os.org/v1/infer`.
204
+ *
205
+ * `documents` holds 1 to 1,000 strings or `{text}` objects, none of them empty. `query` may have 2,048 tokens
206
+ * (`400 context_length_exceeded` past it). Each document is cut at the end to `max_tokens_per_doc` tokens
207
+ * (default 4,096, at most 8,000), and further where the query and the document together would pass the
208
+ * model's `context_length`. `results` lists the `top_n` best documents (default: all of them), highest
209
+ * `relevance_score` (0 to 1) first, each with its `index` in `documents`; with `return_documents: true` each
210
+ * also carries its document as sent. B3OS extension: `instruction` replaces the task the model's query prompt
211
+ * describes (at most 512 characters). The node sends a large request to the model in parts of at most 8,192
212
+ * tokens.
213
+ *
214
+ * Bills `infer.rerank_tokens`, the tokens of every query and document pair the model read
215
+ * (`usage.total_tokens`, also in `meta.billed_units.input_tokens`); a request that fails is not billed. Limits
216
+ * as for embeddings: per-minute tokens and requests on the model, and 8 embedding and rerank requests in
217
+ * flight per organization. Rerank calls are never kept by the model call log. No streaming.
218
+ *
219
+ * `POST /v1/infer/rerank` · scope `infer:run` · served by the node
220
+ *
221
+ * Stretch: in the contract, but may answer `501 not_implemented` on this deployment.
222
+ */
223
+ createRerank(body: T.RerankRequest, options?: RequestOptions): APIPromise<T.RerankList>;
168
224
  /**
169
225
  * Create a response (OpenAI Responses API)
170
226
  *
@@ -318,4 +374,16 @@ export declare class InferAPI extends Namespace {
318
374
  * `POST /v1/infer/v1/messages/count_tokens` · scope `infer:run` · served by the node
319
375
  */
320
376
  countMessageTokens(body: T.AnthropicCountTokensRequest, options?: RequestOptions): APIPromise<T.AnthropicCountTokens>;
377
+ /**
378
+ * Rerank documents at Cohere's path
379
+ *
380
+ * `POST /v1/infer/rerank` at the path Cohere's v2 SDK calls (`<base URL>/v2/rerank`), so
381
+ * `cohere.ClientV2(base_url="https://beta-api.b3os.org/v1/infer")` works unchanged. The request, the answer,
382
+ * the limits and the meter are those of `POST /v1/infer/rerank`.
383
+ *
384
+ * `POST /v1/infer/v2/rerank` · scope `infer:run` · served by the node
385
+ *
386
+ * Stretch: in the contract, but may answer `501 not_implemented` on this deployment.
387
+ */
388
+ createRerankV2(body: T.RerankRequest, options?: RequestOptions): APIPromise<T.RerankList>;
321
389
  }
@@ -24,6 +24,7 @@ const createChatCompletionOp = {
24
24
  id: "inferCreateChatCompletion",
25
25
  method: "POST",
26
26
  path: "/v1/infer/chat/completions",
27
+ headerParams: { capture_content: "X-B3OS-Capture-Content", replay_of: "X-B3OS-Replay-Of" },
27
28
  body: "json",
28
29
  stream: "sse",
29
30
  timeoutMs: 600000,
@@ -58,10 +59,21 @@ const getModelOp = {
58
59
  errorFormat: "openai",
59
60
  scope: "infer:read",
60
61
  };
62
+ const createRerankOp = {
63
+ id: "inferCreateRerank",
64
+ method: "POST",
65
+ path: "/v1/infer/rerank",
66
+ body: "json",
67
+ timeoutMs: 65000,
68
+ errorFormat: "openai",
69
+ stretch: true,
70
+ scope: "infer:run",
71
+ };
61
72
  const createResponseOp = {
62
73
  id: "inferCreateResponse",
63
74
  method: "POST",
64
75
  path: "/v1/infer/responses",
76
+ headerParams: { capture_content: "X-B3OS-Capture-Content", replay_of: "X-B3OS-Replay-Of" },
65
77
  body: "json",
66
78
  stream: "sse",
67
79
  timeoutMs: 600000,
@@ -72,6 +84,7 @@ const createMessageOp = {
72
84
  id: "inferCreateMessage",
73
85
  method: "POST",
74
86
  path: "/v1/infer/v1/messages",
87
+ headerParams: { capture_content: "X-B3OS-Capture-Content", replay_of: "X-B3OS-Replay-Of" },
75
88
  body: "json",
76
89
  stream: "sse",
77
90
  timeoutMs: 600000,
@@ -87,6 +100,16 @@ const countMessageTokensOp = {
87
100
  errorFormat: "anthropic",
88
101
  scope: "infer:run",
89
102
  };
103
+ const createRerankV2Op = {
104
+ id: "inferCreateRerankV2",
105
+ method: "POST",
106
+ path: "/v1/infer/v2/rerank",
107
+ body: "json",
108
+ timeoutMs: 65000,
109
+ errorFormat: "openai",
110
+ stretch: true,
111
+ scope: "infer:run",
112
+ };
90
113
  /** Descriptors of every infer operation, keyed by method name (for tooling and custom clients). */
91
114
  exports.inferOps = {
92
115
  createSpeech: createSpeechOp,
@@ -95,9 +118,11 @@ exports.inferOps = {
95
118
  createEmbeddings: createEmbeddingsOp,
96
119
  listModels: listModelsOp,
97
120
  getModel: getModelOp,
121
+ createRerank: createRerankOp,
98
122
  createResponse: createResponseOp,
99
123
  createMessage: createMessageOp,
100
124
  countMessageTokens: countMessageTokensOp,
125
+ createRerankV2: createRerankV2Op,
101
126
  };
102
127
  /** Models on the node: OpenAI-compatible chat, embeddings and speech (`/v1/infer`). */
103
128
  class InferAPI extends namespace_ts_1.Namespace {
@@ -140,8 +165,33 @@ class InferAPI extends namespace_ts_1.Namespace {
140
165
  /**
141
166
  * Create embeddings
142
167
  *
143
- * The OpenAI Embeddings API, for embedding models the node serves (`b3os.kind` is `embedding`). Other models
144
- * return `404 model_not_available`; the beta node serves no embedding model yet. Bills input tokens.
168
+ * The OpenAI Embeddings API, for embedding models the node serves (`b3os.kind` is `embedding` in
169
+ * `GET /v1/infer/models`). Other models return `404 model_not_available`; the beta node serves no embedding
170
+ * model yet. An embedding model has no alias: name its own ID, so stored vectors always come from the model
171
+ * that made them.
172
+ *
173
+ * `input` is a string or 1 to 2,048 strings, none of them empty (`400 invalid_request` pointing at it). Arrays
174
+ * of token IDs are `400 unsupported_parameter`: the node reads text only, and token IDs from another tokenizer
175
+ * would give wrong vectors (LangChain's `OpenAIEmbeddings` sends them unless it is created with
176
+ * `check_embedding_ctx_length=False`). An input may have as many tokens as the model's `context_length`,
177
+ * query prompt included; a longer one is `400 context_length_exceeded` pointing at it, unless `truncate` is
178
+ * `end`, which cuts it at the end to fit.
179
+ *
180
+ * `encoding_format` is `float` (the default) or `base64` (little-endian float32, what the OpenAI SDKs ask for
181
+ * by default); both carry the same numbers. Every vector has length 1. `dimensions` shortens the vectors, from
182
+ * the model's `b3os.min_dimensions` to its `b3os.dimensions` values (`400 unsupported_parameter` outside it):
183
+ * the node cuts each vector and scales it back to length 1. `user` is accepted and ignored.
184
+ *
185
+ * B3OS extensions: `input_type: "query"` puts the model's query prompt before each input, for text you search
186
+ * with (`document`, the default, embeds the input as it is), and `instruction` replaces the task the prompt
187
+ * describes (with `input_type: "query"` only, at most 512 characters). The prompt's tokens are billed with the
188
+ * input. The node sends a large request to the model in parts of at most 8,192 tokens and answers in input
189
+ * order.
190
+ *
191
+ * Bills `infer.embed_tokens`, the tokens the model read; a request that fails is not billed. Requests are
192
+ * admitted against your organization's per-minute token and request limits on the model, and against 8
193
+ * embedding and rerank requests in flight per organization (`429 concurrency_limited`, limit
194
+ * `infer.pool.concurrent`). Embeddings are never kept by the model call log. No streaming.
145
195
  *
146
196
  * `POST /v1/infer/embeddings` · scope `infer:run` · served by the node
147
197
  *
@@ -157,7 +207,8 @@ class InferAPI extends namespace_ts_1.Namespace {
157
207
  * quantization, whether it supports tools, JSON Schema output and image input, the largest accepted request,
158
208
  * and your per-model token and request limits. Chat models are listed while the node's model runtime is
159
209
  * configured (one that is restarting is still listed; requests get `503` with `Retry-After`); speech models
160
- * while the voice service answers.
210
+ * while the voice service answers. Embedding and rerank models, where a node serves them, are listed the same
211
+ * way, each with its own engine.
161
212
  *
162
213
  * `GET /v1/infer/models` · scope `infer:read` · served by the node
163
214
  */
@@ -174,6 +225,36 @@ class InferAPI extends namespace_ts_1.Namespace {
174
225
  getModel(model, options) {
175
226
  return this._client._call(getModelOp, { path: [model] }, options);
176
227
  }
228
+ /**
229
+ * Rerank documents
230
+ *
231
+ * Ranks documents by how well they answer a query, in the shape of Cohere's v2 rerank API, for rerank models
232
+ * the node serves (`b3os.kind` is `rerank` in `GET /v1/infer/models`). Other models return
233
+ * `404 model_not_available`; the beta node serves no rerank model yet. The same operation answers at
234
+ * `POST /v1/infer/v2/rerank`, so Cohere's SDK works with its base URL set to
235
+ * `https://beta-api.b3os.org/v1/infer`.
236
+ *
237
+ * `documents` holds 1 to 1,000 strings or `{text}` objects, none of them empty. `query` may have 2,048 tokens
238
+ * (`400 context_length_exceeded` past it). Each document is cut at the end to `max_tokens_per_doc` tokens
239
+ * (default 4,096, at most 8,000), and further where the query and the document together would pass the
240
+ * model's `context_length`. `results` lists the `top_n` best documents (default: all of them), highest
241
+ * `relevance_score` (0 to 1) first, each with its `index` in `documents`; with `return_documents: true` each
242
+ * also carries its document as sent. B3OS extension: `instruction` replaces the task the model's query prompt
243
+ * describes (at most 512 characters). The node sends a large request to the model in parts of at most 8,192
244
+ * tokens.
245
+ *
246
+ * Bills `infer.rerank_tokens`, the tokens of every query and document pair the model read
247
+ * (`usage.total_tokens`, also in `meta.billed_units.input_tokens`); a request that fails is not billed. Limits
248
+ * as for embeddings: per-minute tokens and requests on the model, and 8 embedding and rerank requests in
249
+ * flight per organization. Rerank calls are never kept by the model call log. No streaming.
250
+ *
251
+ * `POST /v1/infer/rerank` · scope `infer:run` · served by the node
252
+ *
253
+ * Stretch: in the contract, but may answer `501 not_implemented` on this deployment.
254
+ */
255
+ createRerank(body, options) {
256
+ return this._client._call(createRerankOp, { body }, options);
257
+ }
177
258
  createResponse(body, options = {}) {
178
259
  if (body.stream) {
179
260
  return this._client._postStream(createResponseOp, { body }, options, {
@@ -202,6 +283,20 @@ class InferAPI extends namespace_ts_1.Namespace {
202
283
  countMessageTokens(body, options) {
203
284
  return this._client._call(countMessageTokensOp, { body }, options);
204
285
  }
286
+ /**
287
+ * Rerank documents at Cohere's path
288
+ *
289
+ * `POST /v1/infer/rerank` at the path Cohere's v2 SDK calls (`<base URL>/v2/rerank`), so
290
+ * `cohere.ClientV2(base_url="https://beta-api.b3os.org/v1/infer")` works unchanged. The request, the answer,
291
+ * the limits and the meter are those of `POST /v1/infer/rerank`.
292
+ *
293
+ * `POST /v1/infer/v2/rerank` · scope `infer:run` · served by the node
294
+ *
295
+ * Stretch: in the contract, but may answer `501 not_implemented` on this deployment.
296
+ */
297
+ createRerankV2(body, options) {
298
+ return this._client._call(createRerankV2Op, { body }, options);
299
+ }
205
300
  }
206
301
  exports.InferAPI = InferAPI;
207
302
  //# sourceMappingURL=infer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"infer.js","sourceRoot":"","sources":["../../../../src/generated/ns/infer.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;AAI5G,0DAAoD;AAMpD,MAAM,cAAc,GAAO;IACzB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,KAAK;IAChB,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,MAAM,YAAY,GAAO;IACvB,EAAE,EAAE,iBAAiB;IACrB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,wBAAwB;IAC9B,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,YAAY;CACpB,CAAC;AACF,MAAM,sBAAsB,GAAO;IACjC,EAAE,EAAE,2BAA2B;IAC/B,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,MAAM,kBAAkB,GAAO;IAC7B,EAAE,EAAE,uBAAuB;IAC3B,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,KAAK;IAChB,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,MAAM,YAAY,GAAO;IACvB,EAAE,EAAE,iBAAiB;IACrB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,kBAAkB;IACxB,SAAS,EAAE,KAAK;IAChB,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,YAAY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,9 @@ export declare class KeysAPI extends Namespace {
29
29
  *
30
30
  * Creates a key in your project (or `project`, in the same organization). `scopes` and `spend_cap_usd` may not
31
31
  * exceed the caller's own, and when the caller expires, `expires_at` must be set and no later than the caller's
32
- * expiry (`forbidden`, reason `scope_escalation`). The response is the only time `secret` is returned.
32
+ * expiry (`forbidden`, reason `scope_escalation`). The response is the only time `secret` is returned. An
33
+ * organization holds at most `platform.keys.max` active API keys (1,000 in the beta; revoked and expired ones are
34
+ * not counted, nor CLI tokens); a create past it is 422 `limit_exceeded`.
33
35
  *
34
36
  * `POST /v1/keys` · scope `platform:write` · served by beta-api.b3os.org
35
37
  */
@@ -93,7 +93,9 @@ class KeysAPI extends namespace_ts_1.Namespace {
93
93
  *
94
94
  * Creates a key in your project (or `project`, in the same organization). `scopes` and `spend_cap_usd` may not
95
95
  * exceed the caller's own, and when the caller expires, `expires_at` must be set and no later than the caller's
96
- * expiry (`forbidden`, reason `scope_escalation`). The response is the only time `secret` is returned.
96
+ * expiry (`forbidden`, reason `scope_escalation`). The response is the only time `secret` is returned. An
97
+ * organization holds at most `platform.keys.max` active API keys (1,000 in the beta; revoked and expired ones are
98
+ * not counted, nor CLI tokens); a create past it is 422 `limit_exceeded`.
97
99
  *
98
100
  * `POST /v1/keys` · scope `platform:write` · served by beta-api.b3os.org
99
101
  */
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../src/generated/ns/keys.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;AAG5G,0DAAoD;AAKpD,MAAM,UAAU,GAAO;IACrB,EAAE,EAAE,kBAAkB;IACtB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,eAAe;CACvB,CAAC;AACF,MAAM,WAAW,GAAO;IACtB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,UAAU;IAChB,IA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