@nodaro/sdk 1.14.0 → 1.16.0
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/index.cjs +29 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +105 -1
- package/dist/index.d.ts +105 -1
- package/dist/index.js +29 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2003,6 +2003,11 @@ var PickerCatalogsResource = class {
|
|
|
2003
2003
|
list() {
|
|
2004
2004
|
return this.client.request("GET", "/v1/picker-catalogs");
|
|
2005
2005
|
}
|
|
2006
|
+
/** Fill pickers from a free-text description (Cine "AI Fill"): returns the
|
|
2007
|
+
* same pickerJson shape as describe-to-picker, keyed by picker node type. */
|
|
2008
|
+
analyzeText(params) {
|
|
2009
|
+
return this.client.request("POST", "/v1/text-to-picker", { body: params });
|
|
2010
|
+
}
|
|
2006
2011
|
/** Get one picker's catalog of valid values. */
|
|
2007
2012
|
get(nodeType, opts = {}) {
|
|
2008
2013
|
const qs = new URLSearchParams();
|
|
@@ -2017,6 +2022,26 @@ var PickerCatalogsResource = class {
|
|
|
2017
2022
|
}
|
|
2018
2023
|
};
|
|
2019
2024
|
|
|
2025
|
+
// src/resources/models.ts
|
|
2026
|
+
var ModelsResource = class {
|
|
2027
|
+
constructor(client) {
|
|
2028
|
+
this.client = client;
|
|
2029
|
+
}
|
|
2030
|
+
client;
|
|
2031
|
+
/** Browse the models available on this instance — capability sheets,
|
|
2032
|
+
* per-variant credit pricing, prompt tips, and the `doctrineCovered`
|
|
2033
|
+
* truth flag. Public endpoint; cached 5 minutes. */
|
|
2034
|
+
list(opts = {}) {
|
|
2035
|
+
const qs = new URLSearchParams();
|
|
2036
|
+
if (opts.kind) qs.set("kind", opts.kind);
|
|
2037
|
+
if (opts.mode) qs.set("mode", opts.mode);
|
|
2038
|
+
if (opts.family) qs.set("family", opts.family);
|
|
2039
|
+
if (opts.featuredOnly) qs.set("featuredOnly", "true");
|
|
2040
|
+
const query = qs.toString();
|
|
2041
|
+
return this.client.request("GET", `/v1/models${query ? `?${query}` : ""}`);
|
|
2042
|
+
}
|
|
2043
|
+
};
|
|
2044
|
+
|
|
2020
2045
|
// src/resources/community.ts
|
|
2021
2046
|
var CommunityResource = class {
|
|
2022
2047
|
constructor(client) {
|
|
@@ -2170,7 +2195,7 @@ var TutorialsResource = class {
|
|
|
2170
2195
|
};
|
|
2171
2196
|
|
|
2172
2197
|
// src/client.ts
|
|
2173
|
-
var SDK_VERSION = "1.
|
|
2198
|
+
var SDK_VERSION = "1.16.0" ;
|
|
2174
2199
|
var CLIENT_HEADER = "X-Nodaro-Client";
|
|
2175
2200
|
var isBrowser = () => typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
2176
2201
|
var NodaroClient = class {
|
|
@@ -2215,6 +2240,7 @@ var NodaroClient = class {
|
|
|
2215
2240
|
library;
|
|
2216
2241
|
presets;
|
|
2217
2242
|
pickerCatalogs;
|
|
2243
|
+
models;
|
|
2218
2244
|
community;
|
|
2219
2245
|
templates;
|
|
2220
2246
|
tutorials;
|
|
@@ -2249,6 +2275,7 @@ var NodaroClient = class {
|
|
|
2249
2275
|
this.library = new LibraryResource(this);
|
|
2250
2276
|
this.presets = new PresetsResource(this);
|
|
2251
2277
|
this.pickerCatalogs = new PickerCatalogsResource(this);
|
|
2278
|
+
this.models = new ModelsResource(this);
|
|
2252
2279
|
this.community = new CommunityResource(this);
|
|
2253
2280
|
this.templates = new TemplatesResource(this);
|
|
2254
2281
|
this.tutorials = new TutorialsResource(this);
|
|
@@ -2431,6 +2458,7 @@ exports.JobsResource = JobsResource;
|
|
|
2431
2458
|
exports.LibraryResource = LibraryResource;
|
|
2432
2459
|
exports.LocationsResource = LocationsResource;
|
|
2433
2460
|
exports.MediaResource = MediaResource;
|
|
2461
|
+
exports.ModelsResource = ModelsResource;
|
|
2434
2462
|
exports.NodaroClient = NodaroClient;
|
|
2435
2463
|
exports.NodaroError = NodaroError;
|
|
2436
2464
|
exports.NodesResource = NodesResource;
|