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