@premai/api-sdk 1.0.35 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.cjs CHANGED
@@ -71,7 +71,8 @@ async function attest(apiKey, options = { enabled: true }) {
71
71
  if (options.model)
72
72
  query = query.with("model", options.model);
73
73
  try {
74
- const attested = await client.attest(query);
74
+ client.set_query(query);
75
+ const attested = await client.attest();
75
76
  const headers = attested.headers();
76
77
  const sessionId = attested.headers().gpu()?.get("x-session-id") ?? null;
77
78
  headers.free();
@@ -54,7 +54,8 @@ async function attest(apiKey, options = { enabled: true }) {
54
54
  if (options.model)
55
55
  query = query.with("model", options.model);
56
56
  try {
57
- const attested = await client.attest(query);
57
+ client.set_query(query);
58
+ const attested = await client.attest();
58
59
  const headers = attested.headers();
59
60
  const sessionId = attested.headers().gpu()?.get("x-session-id") ?? null;
60
61
  headers.free();
@@ -285,7 +285,8 @@ async function attest(apiKey, options = { enabled: true }) {
285
285
  if (options.model)
286
286
  query = query.with("model", options.model);
287
287
  try {
288
- const attested = await client.attest(query);
288
+ client.set_query(query);
289
+ const attested = await client.attest();
289
290
  const headers = attested.headers();
290
291
  const sessionId = attested.headers().gpu()?.get("x-session-id") ?? null;
291
292
  headers.free();
@@ -16561,7 +16562,7 @@ function finalize(ctx, schema) {
16561
16562
  result.$schema = "http://json-schema.org/draft-07/schema#";
16562
16563
  } else if (ctx.target === "draft-04") {
16563
16564
  result.$schema = "http://json-schema.org/draft-04/schema#";
16564
- } else if (ctx.target === "openapi-3.0") {} else {}
16565
+ } else if (ctx.target === "openapi-3.0") {}
16565
16566
  if (ctx.external?.uri) {
16566
16567
  const id = ctx.external.registry.get(schema)?.id;
16567
16568
  if (!id)
@@ -16806,7 +16807,7 @@ var literalProcessor = (schema, ctx, json, _params) => {
16806
16807
  if (val === undefined) {
16807
16808
  if (ctx.unrepresentable === "throw") {
16808
16809
  throw new Error("Literal `undefined` cannot be represented in JSON Schema");
16809
- } else {}
16810
+ }
16810
16811
  } else if (typeof val === "bigint") {
16811
16812
  if (ctx.unrepresentable === "throw") {
16812
16813
  throw new Error("BigInt literals cannot be represented in JSON Schema");
package/dist/index.cjs CHANGED
@@ -135,7 +135,8 @@ async function attest(apiKey, options = { enabled: true }) {
135
135
  if (options.model)
136
136
  query = query.with("model", options.model);
137
137
  try {
138
- const attested = await client.attest(query);
138
+ client.set_query(query);
139
+ const attested = await client.attest();
139
140
  const headers = attested.headers();
140
141
  const sessionId = attested.headers().gpu()?.get("x-session-id") ?? null;
141
142
  headers.free();
package/dist/index.mjs CHANGED
@@ -57,7 +57,8 @@ async function attest(apiKey, options = { enabled: true }) {
57
57
  if (options.model)
58
58
  query = query.with("model", options.model);
59
59
  try {
60
- const attested = await client.attest(query);
60
+ client.set_query(query);
61
+ const attested = await client.attest();
61
62
  const headers = attested.headers();
62
63
  const sessionId = attested.headers().gpu()?.get("x-session-id") ?? null;
63
64
  headers.free();
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "homepage": "https://github.com/premai-io/api-sdk-ts",
6
6
  "name": "@premai/api-sdk",
7
- "version": "1.0.35",
7
+ "version": "1.0.36",
8
8
  "main": "./dist/index.cjs",
9
9
  "bin": {
10
10
  "pcci-proxy": "./dist/cli.cjs"
@@ -65,7 +65,7 @@
65
65
  "@noble/curves": "^1.8.1",
66
66
  "@noble/hashes": "^1.7.1",
67
67
  "@noble/post-quantum": "^0.5.2",
68
- "@premai/reticle": "0.3.1",
68
+ "@premai/reticle": "^0.4.3",
69
69
  "bare-abort-controller": "^1.1.1",
70
70
  "bare-crypto": "^1.13.5",
71
71
  "bare-encoding": "^1.0.3",