@byte_fluffy/nexra-sdk 0.1.0-alpha.7 → 0.1.0-alpha.8
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/README.md +2 -2
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.js +1 -1
- package/dist/chunk-IUUMCS7F.js +18776 -0
- package/dist/{index-DLTP5_Ri.d.ts → index-CAi88bUo.d.ts} +51 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3ZBQVBMA.js +0 -8115
|
@@ -121,6 +121,10 @@ interface ModelCapabilitySummary {
|
|
|
121
121
|
/** User-facing input patterns such as text-to-video or image-to-image. */
|
|
122
122
|
inputModes: string[];
|
|
123
123
|
features: string[];
|
|
124
|
+
/** Maximum combined input and output context supported by the model. */
|
|
125
|
+
contextWindowTokens?: number;
|
|
126
|
+
/** Maximum generated output tokens supported by the model. */
|
|
127
|
+
maxOutputTokens?: number;
|
|
124
128
|
}
|
|
125
129
|
interface ModelDateVersion {
|
|
126
130
|
id: string;
|
|
@@ -228,6 +232,15 @@ interface NexraModelOperation {
|
|
|
228
232
|
outputSchema: JsonObject;
|
|
229
233
|
metering: MeteringContract;
|
|
230
234
|
}
|
|
235
|
+
/** Public native wire endpoint metadata. Provider routing and credentials stay private. */
|
|
236
|
+
interface NexraModelEndpointSpec {
|
|
237
|
+
endpointKey: string;
|
|
238
|
+
operation: string;
|
|
239
|
+
protocol: string;
|
|
240
|
+
method: string;
|
|
241
|
+
path: string;
|
|
242
|
+
capabilities: readonly string[];
|
|
243
|
+
}
|
|
231
244
|
interface NexraModelSpec {
|
|
232
245
|
id: string;
|
|
233
246
|
contractVersion: number;
|
|
@@ -240,6 +253,7 @@ interface NexraModelSpec {
|
|
|
240
253
|
aliases: readonly string[];
|
|
241
254
|
capabilities: ModelCapabilitySummary;
|
|
242
255
|
operations: readonly NexraModelOperation[];
|
|
256
|
+
endpoints: readonly NexraModelEndpointSpec[];
|
|
243
257
|
}
|
|
244
258
|
interface NexraModelSpecFilter {
|
|
245
259
|
kind?: ModelModality;
|
|
@@ -262,6 +276,14 @@ interface CreateNexraQuoteRequest {
|
|
|
262
276
|
operation: string;
|
|
263
277
|
input: JsonObject;
|
|
264
278
|
}
|
|
279
|
+
interface CreateNexraDisplayQuoteBatchRequest {
|
|
280
|
+
modelId: string;
|
|
281
|
+
operation: string;
|
|
282
|
+
entries: readonly Readonly<{
|
|
283
|
+
key: string;
|
|
284
|
+
input: JsonObject;
|
|
285
|
+
}>[];
|
|
286
|
+
}
|
|
265
287
|
interface NexraQuote {
|
|
266
288
|
quoteToken: string;
|
|
267
289
|
modelId: string;
|
|
@@ -273,6 +295,32 @@ interface NexraQuote {
|
|
|
273
295
|
accuracy: "exact" | "estimated";
|
|
274
296
|
expiresAt: string;
|
|
275
297
|
}
|
|
298
|
+
type NexraDisplayQuoteBatchEntry = Readonly<{
|
|
299
|
+
key: string;
|
|
300
|
+
amount: string;
|
|
301
|
+
maximumAmount: string;
|
|
302
|
+
accuracy: "exact" | "estimated";
|
|
303
|
+
}> | Readonly<{
|
|
304
|
+
key: string;
|
|
305
|
+
error: {
|
|
306
|
+
code: string;
|
|
307
|
+
message: string;
|
|
308
|
+
};
|
|
309
|
+
}>;
|
|
310
|
+
interface NexraDisplayQuoteBatch {
|
|
311
|
+
modelId: string;
|
|
312
|
+
contractVersion: number;
|
|
313
|
+
priceRevision: string;
|
|
314
|
+
pricingPolicyRevision: string;
|
|
315
|
+
quoteContextRevision: string;
|
|
316
|
+
currency: NexraBillingCurrency;
|
|
317
|
+
entries: readonly NexraDisplayQuoteBatchEntry[];
|
|
318
|
+
expiresAt: string;
|
|
319
|
+
}
|
|
320
|
+
interface NexraCatalogRevision {
|
|
321
|
+
revision: string;
|
|
322
|
+
changedAt: string;
|
|
323
|
+
}
|
|
276
324
|
interface NexraSettlement {
|
|
277
325
|
amount: string;
|
|
278
326
|
currency: NexraBillingCurrency;
|
|
@@ -342,8 +390,10 @@ declare class CatalogClient {
|
|
|
342
390
|
constructor(transport: HttpTransport);
|
|
343
391
|
listPrices(signal?: AbortSignal): Promise<NexraSalePriceList>;
|
|
344
392
|
quote(request: CreateNexraQuoteRequest, signal?: AbortSignal): Promise<NexraQuote>;
|
|
393
|
+
quoteBatch(request: CreateNexraDisplayQuoteBatchRequest, signal?: AbortSignal): Promise<NexraDisplayQuoteBatch>;
|
|
394
|
+
revision(signal?: AbortSignal): Promise<NexraCatalogRevision>;
|
|
345
395
|
}
|
|
346
396
|
declare function getModelSpec(modelId: string): NexraModelSpec | undefined;
|
|
347
397
|
declare function listModelSpecs(filter?: NexraModelSpecFilter): readonly NexraModelSpec[];
|
|
348
398
|
|
|
349
|
-
export {
|
|
399
|
+
export { assessUsageEvidence as $, type NexraDisplayQuoteBatchEntry as A, type BillingMetric as B, type CursorPage as C, type NexraModelEndpointSpec as D, type NexraModelOperation as E, type FetchLike as F, type NexraModelSpec as G, HttpTransport as H, type NexraModelSpecFilter as I, type JsonObject as J, type NexraQuote as K, type NexraSalePrice as L, type ModelSchema as M, type NexraSettlement as N, type NexraSalePriceList as O, type NormalizedUsageV1 as P, type PriceEvaluation as Q, type PriceEvaluationIssue as R, type PriceEvaluationLine as S, type TaskModelSummary as T, type PriceRule as U, type UnifiedMediaGeometry as V, type UsageComponentEvidence as W, type UsageEvidenceAssessment as X, type UsageEvidenceStatus as Y, allocateDiscountedPriceLines as Z, applyMediaGeometry as _, type JsonValue as a, decodeMediaGeometry as a0, encodeMediaGeometry as a1, evaluatePriceRule as a2, getModelSpec as a3, jsonBody as a4, listModelSpecs as a5, projectMediaGeometry as a6, queryString as a7, sleep as a8, validateMeteringContract as a9, validateNormalizedUsage as aa, validatePriceRule as ab, type ModelSearchParams as b, type TaskModel as c, CatalogClient as d, type NexraClientOptions as e, BILLING_EXPORT_DIMENSIONS as f, BILLING_METRICS as g, type CreateNexraDisplayQuoteBatchRequest as h, type CreateNexraQuoteRequest as i, type JsonPrimitive as j, type MediaGeometryField as k, type MediaGeometryProjection as l, type MeteredPriceRate as m, type MeteredPriceRuleV1 as n, type MeteredUsageComponent as o, type MeteringContract as p, type MeteringKind as q, type ModelCapabilitySummary as r, type ModelDateVersion as s, type ModelEndpointSummary as t, type ModelModality as u, type ModelResourceList as v, type ModelResourceOption as w, type NexraBillingCurrency as x, type NexraCatalogRevision as y, type NexraDisplayQuoteBatch as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { J as JsonObject, B as BillingMetric, a as JsonValue, N as NexraSettlement, C as CursorPage, M as ModelSchema, T as TaskModelSummary, H as HttpTransport, b as ModelSearchParams, c as TaskModel, d as CatalogClient, e as NexraClientOptions } from './index-
|
|
2
|
-
export { f as BILLING_EXPORT_DIMENSIONS, g as BILLING_METRICS, h as CreateNexraQuoteRequest, F as FetchLike,
|
|
1
|
+
import { J as JsonObject, B as BillingMetric, a as JsonValue, N as NexraSettlement, C as CursorPage, M as ModelSchema, T as TaskModelSummary, H as HttpTransport, b as ModelSearchParams, c as TaskModel, d as CatalogClient, e as NexraClientOptions } from './index-CAi88bUo.js';
|
|
2
|
+
export { f as BILLING_EXPORT_DIMENSIONS, g as BILLING_METRICS, h as CreateNexraDisplayQuoteBatchRequest, i as CreateNexraQuoteRequest, F as FetchLike, j as JsonPrimitive, k as MediaGeometryField, l as MediaGeometryProjection, m as MeteredPriceRate, n as MeteredPriceRuleV1, o as MeteredUsageComponent, p as MeteringContract, q as MeteringKind, r as ModelCapabilitySummary, s as ModelDateVersion, t as ModelEndpointSummary, u as ModelModality, v as ModelResourceList, w as ModelResourceOption, x as NexraBillingCurrency, y as NexraCatalogRevision, z as NexraDisplayQuoteBatch, A as NexraDisplayQuoteBatchEntry, D as NexraModelEndpointSpec, E as NexraModelOperation, G as NexraModelSpec, I as NexraModelSpecFilter, K as NexraQuote, L as NexraSalePrice, O as NexraSalePriceList, P as NormalizedUsageV1, Q as PriceEvaluation, R as PriceEvaluationIssue, S as PriceEvaluationLine, U as PriceRule, V as UnifiedMediaGeometry, W as UsageComponentEvidence, X as UsageEvidenceAssessment, Y as UsageEvidenceStatus, Z as allocateDiscountedPriceLines, _ as applyMediaGeometry, $ as assessUsageEvidence, a0 as decodeMediaGeometry, a1 as encodeMediaGeometry, a2 as evaluatePriceRule, a3 as getModelSpec, a4 as jsonBody, a5 as listModelSpecs, a6 as projectMediaGeometry, a7 as queryString, a8 as sleep, a9 as validateMeteringContract, aa as validateNormalizedUsage, ab as validatePriceRule } from './index-CAi88bUo.js';
|
|
3
3
|
export { ceilDecimal, multiplyDecimal } from './decimal.js';
|
|
4
4
|
|
|
5
5
|
declare const MEDIA_KINDS: readonly ["image", "video", "audio", "document", "archive", "other"];
|
package/dist/index.js
CHANGED