@nodaro/sdk 1.19.0 → 1.20.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 +94 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +183 -3
- package/dist/index.d.ts +183 -3
- package/dist/index.js +94 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GenericNode, GenericEdge, WorkflowExport, WorkflowImportReport, ConnectedReference, TtsProvider, EntityStyle, CharacterAspectRatio, CharacterAttachColumn, LocationAssetType, LocationAttachColumn, SurroundDirection, ObjectAssetType, ObjectAttachColumn, ObjectAspectRatio, CreatureAttachColumn, PipelineInput, PipelineStatus, PipelineMode, PipelineStageName, SubGateName, ChatEnabledStage, ProposedChange, ReduceStrategyId, ReduceMeta, Voice, VoiceLibraryParams, VoiceLibraryResponse, VoiceClone, AudioFxPreset, BrowseCommunityParams, BrowseCommunityResult, CommunityCard, CommunityFullDetail, CommunityEntityType, CloneListingResult, FavoriteListingResult, CommunityReportReason, ReportListingResult, PublishListingParams, PublishListingResult, SharedListing, OrganizationView, OrgKind, OrgSettings, OrgPage, OrgMemberView, MemberStatus, WorkspaceRole, InvitationDelivery, InvitationState, InvitationView, InvitationPreview, OrgAuditEntry, WorkspaceSummary, WorkspaceView, WorkspaceSettings, WorkspaceMemberView, JoinCodeView, MeOrganizations } from '@nodaro/shared';
|
|
1
|
+
import { CollaboratorRole, GenericNode, GenericEdge, WorkflowExport, WorkflowImportReport, WorkflowVisibility, ConnectedReference, TtsProvider, EntityStyle, CharacterAspectRatio, CharacterAttachColumn, LocationAssetType, LocationAttachColumn, SurroundDirection, ObjectAssetType, ObjectAttachColumn, ObjectAspectRatio, CreatureAttachColumn, PipelineInput, PipelineStatus, PipelineMode, PipelineStageName, SubGateName, ChatEnabledStage, ProposedChange, ReduceStrategyId, ReduceMeta, Voice, VoiceLibraryParams, VoiceLibraryResponse, VoiceClone, AudioFxPreset, BrowseCommunityParams, BrowseCommunityResult, CommunityCard, CommunityFullDetail, CommunityEntityType, CloneListingResult, FavoriteListingResult, CommunityReportReason, ReportListingResult, PublishListingParams, PublishListingResult, SharedListing, OrganizationView, OrgKind, OrgSettings, OrgPage, OrgMemberView, MemberStatus, WorkspaceRole, InvitationDelivery, InvitationState, InvitationView, InvitationPreview, OrgAuditEntry, WorkspaceSummary, WorkspaceView, WorkspaceSettings, WorkspaceMemberView, JoinCodeView, MeOrganizations } from '@nodaro/shared';
|
|
2
2
|
export { AudioFxPreset, BrowseCommunityParams, BrowseCommunityResult, CHARACTER_ASPECT_DEFAULTS, CHARACTER_ASPECT_OPTIONS, CHARACTER_STYLES, OBJECT_ASPECT_DEFAULTS as CREATURE_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS as CREATURE_ASPECT_OPTIONS, CREATURE_ATTACH_COLUMNS, CharacterAspectRatio, CloneListingResult, CommunityCard, CommunityEntityType, CommunityReportReason, CommunitySort, ConnectedReference, ObjectAspectRatio as CreatureAspectRatio, CreatureAttachColumn, EntityStyle, FavoriteListingResult, GenericEdge, GenericNode, InvitationDelivery, InvitationPreview, InvitationState, InvitationView, JoinCodeView, LOCATION_ASSET_TYPES, LOCATION_ATTACH_COLUMNS, LocationAssetType, LocationAttachColumn, MeOrganizations, MemberStatus, OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ATTACH_COLUMNS, ObjectAspectRatio, ObjectAssetType, ObjectAttachColumn, OrgAuditEntry, OrgErrorCode, OrgKind, OrgMemberView, OrgPage, OrgRole, OrgSettings, OrgStatus, OrganizationSummary, OrganizationView, PipelineStageName, PublishListingParams, PublishListingResult, ReduceMeta, ReduceStrategyId, ReportListingResult, SURROUND_DIRECTIONS, SharedListing, SharedVoice, SurroundDirection, Voice, VoiceClone, VoiceLibraryParams, VoiceLibraryResponse, WORKSPACE_HEADER, WorkflowExport, WorkflowExportCharacter, WorkflowExportLocation, WorkflowExportObject, WorkspaceMemberView, WorkspaceRole, WorkspaceSettings, WorkspaceSummary, WorkspaceView } from '@nodaro/shared';
|
|
3
3
|
import { PersonValue, WizardNodeContext, WizardQuestion, WizardSelection, RecommendedModel, FactoryPreset } from '@nodaro/prompts';
|
|
4
4
|
export { PEOPLE, PERSON_DIMENSION_LABELS, PERSON_DIMENSION_ORDER, PersonValue, RecommendedModel, WizardNodeContext, WizardOption, WizardQuestion, WizardSelection, buildPersonHints } from '@nodaro/prompts';
|
|
@@ -109,8 +109,68 @@ interface RunWorkflowResult {
|
|
|
109
109
|
executionId: string;
|
|
110
110
|
status: "pending" | "running";
|
|
111
111
|
}
|
|
112
|
+
/** A person granted access to a workflow. Email is never returned (privacy). */
|
|
113
|
+
interface Collaborator {
|
|
114
|
+
userId: string;
|
|
115
|
+
name?: string | null;
|
|
116
|
+
avatar?: string | null;
|
|
117
|
+
role: CollaboratorRole;
|
|
118
|
+
}
|
|
119
|
+
interface AddCollaboratorInput {
|
|
120
|
+
/** Provide exactly one of `userId` or `email`. */
|
|
121
|
+
userId?: string;
|
|
122
|
+
email?: string;
|
|
123
|
+
role: CollaboratorRole;
|
|
124
|
+
}
|
|
125
|
+
/** A workflow someone else shared with you, plus the role you hold on it. */
|
|
126
|
+
interface SharedWorkflow extends Workflow {
|
|
127
|
+
grantedRole: CollaboratorRole;
|
|
128
|
+
}
|
|
129
|
+
/** A grant dropped because a move took the workflow out of the workspace the
|
|
130
|
+
* access came from. */
|
|
131
|
+
interface DroppedCollaborator {
|
|
132
|
+
userId: string;
|
|
133
|
+
name: string | null;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* The people a workflow is shared with — reached as `client.workflows.collaborators`.
|
|
137
|
+
* All four endpoints are served by the organizations feature and exist only when
|
|
138
|
+
* it is enabled server-side; against an install without it they 404
|
|
139
|
+
* (→ `NotFoundError`). The active workspace travels on the request like every
|
|
140
|
+
* other call, so a workspace admin's grants apply automatically.
|
|
141
|
+
*/
|
|
142
|
+
declare class WorkflowCollaboratorsResource {
|
|
143
|
+
private client;
|
|
144
|
+
constructor(client: NodaroClient);
|
|
145
|
+
/** List a workflow's collaborators (id, name, avatar, role — never email). */
|
|
146
|
+
list(workflowId: string): Promise<{
|
|
147
|
+
data: Collaborator[];
|
|
148
|
+
}>;
|
|
149
|
+
/** Add a collaborator by `userId` OR `email` (exactly one), at the given role. */
|
|
150
|
+
add(workflowId: string, input: AddCollaboratorInput): Promise<{
|
|
151
|
+
data: {
|
|
152
|
+
userId: string;
|
|
153
|
+
role: CollaboratorRole;
|
|
154
|
+
};
|
|
155
|
+
}>;
|
|
156
|
+
/** Change a collaborator's role. */
|
|
157
|
+
update(workflowId: string, userId: string, input: {
|
|
158
|
+
role: CollaboratorRole;
|
|
159
|
+
}): Promise<{
|
|
160
|
+
data: {
|
|
161
|
+
userId: string;
|
|
162
|
+
role: CollaboratorRole;
|
|
163
|
+
};
|
|
164
|
+
}>;
|
|
165
|
+
/** Remove a collaborator — or yourself. Returns `{ success: true }`. */
|
|
166
|
+
remove(workflowId: string, userId: string): Promise<{
|
|
167
|
+
success: true;
|
|
168
|
+
}>;
|
|
169
|
+
}
|
|
112
170
|
declare class WorkflowsResource {
|
|
113
171
|
private client;
|
|
172
|
+
/** The people this workflow is shared with. See {@link WorkflowCollaboratorsResource}. */
|
|
173
|
+
readonly collaborators: WorkflowCollaboratorsResource;
|
|
114
174
|
constructor(client: NodaroClient);
|
|
115
175
|
/** List workflows for a project. Returns metadata only — `nodes`/`edges` are not included. */
|
|
116
176
|
list(params: ListWorkflowsParams): Promise<{
|
|
@@ -173,6 +233,36 @@ declare class WorkflowsResource {
|
|
|
173
233
|
data: Workflow;
|
|
174
234
|
importReport?: WorkflowImportReport;
|
|
175
235
|
}>;
|
|
236
|
+
/**
|
|
237
|
+
* Set a workflow's visibility — `"private"` (creator + explicit collaborators)
|
|
238
|
+
* or `"workspace"` (everyone in its workspace). Only the creator or a workspace
|
|
239
|
+
* admin may change it; anyone else gets HTTP 403. Thin wrapper over `update()`:
|
|
240
|
+
* the visibility lever lives on `PATCH /v1/workflows/:id`.
|
|
241
|
+
*/
|
|
242
|
+
setVisibility(id: string, visibility: WorkflowVisibility): Promise<{
|
|
243
|
+
data: Workflow;
|
|
244
|
+
}>;
|
|
245
|
+
/**
|
|
246
|
+
* Move a workflow to another project (`POST /v1/workflows/:id/move`); its folder
|
|
247
|
+
* is cleared. When the move takes the workflow out of a workspace, collaborator
|
|
248
|
+
* grants that came from that workspace are dropped and returned as
|
|
249
|
+
* `droppedCollaborators`.
|
|
250
|
+
*/
|
|
251
|
+
move(id: string, params: {
|
|
252
|
+
projectId: string;
|
|
253
|
+
}): Promise<{
|
|
254
|
+
data: Workflow;
|
|
255
|
+
droppedCollaborators: DroppedCollaborator[];
|
|
256
|
+
}>;
|
|
257
|
+
/**
|
|
258
|
+
* Workflows other people shared with you (`GET /v1/workflows/shared-with-me`) —
|
|
259
|
+
* grants on work that is NOT in a workspace you belong to (workspace work already
|
|
260
|
+
* shows in that workspace's own lists). Each carries the `grantedRole` you hold.
|
|
261
|
+
* Empty when the organizations feature is off server-side.
|
|
262
|
+
*/
|
|
263
|
+
sharedWithMe(): Promise<{
|
|
264
|
+
data: SharedWorkflow[];
|
|
265
|
+
}>;
|
|
176
266
|
}
|
|
177
267
|
|
|
178
268
|
interface Project {
|
|
@@ -1732,6 +1822,14 @@ interface UpdateLocationResult {
|
|
|
1732
1822
|
interface ListLocationsParams {
|
|
1733
1823
|
/** When true, return archived locations instead of active ones. */
|
|
1734
1824
|
archived?: boolean;
|
|
1825
|
+
/**
|
|
1826
|
+
* Max rows to return (cap 500). OPT-IN: omitted, the server returns the
|
|
1827
|
+
* full legacy listing with no `nextCursor`; supplied, the response is one
|
|
1828
|
+
* page plus `nextCursor` — keep passing it back until it is `null`.
|
|
1829
|
+
*/
|
|
1830
|
+
limit?: number;
|
|
1831
|
+
/** Opaque cursor from a prior page's `nextCursor` (fetches the next page). */
|
|
1832
|
+
cursor?: string;
|
|
1735
1833
|
}
|
|
1736
1834
|
/**
|
|
1737
1835
|
* Input for `client.locations.generate()` — fires the
|
|
@@ -1926,6 +2024,7 @@ declare class LocationsResource {
|
|
|
1926
2024
|
*/
|
|
1927
2025
|
list(params?: ListLocationsParams): Promise<{
|
|
1928
2026
|
locations: Location[];
|
|
2027
|
+
nextCursor?: string | null;
|
|
1929
2028
|
}>;
|
|
1930
2029
|
/**
|
|
1931
2030
|
* Convenience wrapper for `list({ archived: true })`. Returns soft-deleted
|
|
@@ -1936,6 +2035,7 @@ declare class LocationsResource {
|
|
|
1936
2035
|
*/
|
|
1937
2036
|
listArchived(params?: Omit<ListLocationsParams, "archived">): Promise<{
|
|
1938
2037
|
locations: Location[];
|
|
2038
|
+
nextCursor?: string | null;
|
|
1939
2039
|
}>;
|
|
1940
2040
|
/**
|
|
1941
2041
|
* Fetch a single location including in-flight asset job state. Soft-deleted
|
|
@@ -2273,6 +2373,14 @@ interface ListObjectsParams {
|
|
|
2273
2373
|
archived?: boolean;
|
|
2274
2374
|
/** Optional project filter — server-scoped to the caller's user. */
|
|
2275
2375
|
projectId?: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* Max rows to return (cap 500). OPT-IN: omitted, the server returns the
|
|
2378
|
+
* full legacy listing with no `nextCursor`; supplied, the response is one
|
|
2379
|
+
* page plus `nextCursor` — keep passing it back until it is `null`.
|
|
2380
|
+
*/
|
|
2381
|
+
limit?: number;
|
|
2382
|
+
/** Opaque cursor from a prior page's `nextCursor` (fetches the next page). */
|
|
2383
|
+
cursor?: string;
|
|
2276
2384
|
}
|
|
2277
2385
|
/**
|
|
2278
2386
|
* Input for `client.objects.generate()` — fires the
|
|
@@ -2428,6 +2536,7 @@ declare class ObjectsResource {
|
|
|
2428
2536
|
*/
|
|
2429
2537
|
list(params?: ListObjectsParams): Promise<{
|
|
2430
2538
|
objects: Object$1[];
|
|
2539
|
+
nextCursor?: string | null;
|
|
2431
2540
|
}>;
|
|
2432
2541
|
/**
|
|
2433
2542
|
* Convenience wrapper for `list({ archived: true })`. Returns soft-deleted
|
|
@@ -2438,6 +2547,7 @@ declare class ObjectsResource {
|
|
|
2438
2547
|
*/
|
|
2439
2548
|
listArchived(params?: Omit<ListObjectsParams, "archived">): Promise<{
|
|
2440
2549
|
objects: Object$1[];
|
|
2550
|
+
nextCursor?: string | null;
|
|
2441
2551
|
}>;
|
|
2442
2552
|
/**
|
|
2443
2553
|
* Fetch a single object including in-flight asset job state. Soft-deleted
|
|
@@ -2827,6 +2937,14 @@ interface ListCreaturesParams {
|
|
|
2827
2937
|
archived?: boolean;
|
|
2828
2938
|
/** Optional project filter — server-scoped to the caller's user. */
|
|
2829
2939
|
projectId?: string;
|
|
2940
|
+
/**
|
|
2941
|
+
* Max rows to return (cap 500). OPT-IN: omitted, the server returns the
|
|
2942
|
+
* full legacy listing with no `nextCursor`; supplied, the response is one
|
|
2943
|
+
* page plus `nextCursor` — keep passing it back until it is `null`.
|
|
2944
|
+
*/
|
|
2945
|
+
limit?: number;
|
|
2946
|
+
/** Opaque cursor from a prior page's `nextCursor` (fetches the next page). */
|
|
2947
|
+
cursor?: string;
|
|
2830
2948
|
}
|
|
2831
2949
|
/**
|
|
2832
2950
|
* Input for `client.creatures.generate()` — fires the
|
|
@@ -2983,6 +3101,7 @@ declare class CreaturesResource {
|
|
|
2983
3101
|
*/
|
|
2984
3102
|
list(params?: ListCreaturesParams): Promise<{
|
|
2985
3103
|
creatures: Creature[];
|
|
3104
|
+
nextCursor?: string | null;
|
|
2986
3105
|
}>;
|
|
2987
3106
|
/**
|
|
2988
3107
|
* Convenience wrapper for `list({ archived: true })`. Returns soft-deleted
|
|
@@ -2993,6 +3112,7 @@ declare class CreaturesResource {
|
|
|
2993
3112
|
*/
|
|
2994
3113
|
listArchived(params?: Omit<ListCreaturesParams, "archived">): Promise<{
|
|
2995
3114
|
creatures: Creature[];
|
|
3115
|
+
nextCursor?: string | null;
|
|
2996
3116
|
}>;
|
|
2997
3117
|
/**
|
|
2998
3118
|
* Fetch a single creature including in-flight asset job state. Soft-deleted
|
|
@@ -4415,6 +4535,13 @@ interface PickerOption {
|
|
|
4415
4535
|
category?: string;
|
|
4416
4536
|
/** The prompt fragment this id injects downstream. Present only when detail="full". */
|
|
4417
4537
|
promptHint?: string;
|
|
4538
|
+
/**
|
|
4539
|
+
* Short professional term injected by compact hint mode; `label` is for
|
|
4540
|
+
* display. Present at BOTH detail levels — a thin client renders `label`
|
|
4541
|
+
* and injects `term`. Empty for a no-op ("auto"/"none") entry that injects
|
|
4542
|
+
* nothing.
|
|
4543
|
+
*/
|
|
4544
|
+
term?: string;
|
|
4418
4545
|
icon?: string;
|
|
4419
4546
|
}
|
|
4420
4547
|
interface PickerDimension {
|
|
@@ -4449,7 +4576,7 @@ interface PickerCatalogSummary {
|
|
|
4449
4576
|
optionCount: number;
|
|
4450
4577
|
}
|
|
4451
4578
|
interface GetPickerCatalogOptions {
|
|
4452
|
-
/** "compact" (default) = id, label, category, icon; "full" additionally includes description + promptHint. */
|
|
4579
|
+
/** "compact" (default) = id, label, category, term, icon; "full" additionally includes description + promptHint. */
|
|
4453
4580
|
detail?: "compact" | "full";
|
|
4454
4581
|
/** single-dim: filter to one category. */
|
|
4455
4582
|
category?: string;
|
|
@@ -4506,6 +4633,58 @@ declare class PickerCatalogsResource {
|
|
|
4506
4633
|
}>;
|
|
4507
4634
|
}
|
|
4508
4635
|
|
|
4636
|
+
/**
|
|
4637
|
+
* Catalog projection types. Mirror `@nodaro/shared`'s `ProjectedCatalog` so the
|
|
4638
|
+
* SDK stays dependency-free (same convention as `picker-catalogs.ts`). Tag-free
|
|
4639
|
+
* by design — the deferred `CatalogPolicy` never crosses the wire.
|
|
4640
|
+
*/
|
|
4641
|
+
interface ProjectedCatalogOption {
|
|
4642
|
+
id: string;
|
|
4643
|
+
label: string;
|
|
4644
|
+
description?: string;
|
|
4645
|
+
category?: string;
|
|
4646
|
+
/** The prompt fragment this id injects downstream. Present only when detail="full". */
|
|
4647
|
+
promptHint?: string;
|
|
4648
|
+
/**
|
|
4649
|
+
* Short professional term injected by compact hint mode; `label` is for
|
|
4650
|
+
* display. Present at BOTH detail levels — a thin client renders `label`
|
|
4651
|
+
* and injects `term`. Empty for a no-op ("auto"/"none") entry that injects
|
|
4652
|
+
* nothing.
|
|
4653
|
+
*/
|
|
4654
|
+
term?: string;
|
|
4655
|
+
icon?: string;
|
|
4656
|
+
}
|
|
4657
|
+
interface ProjectedCatalogDimension {
|
|
4658
|
+
field: string;
|
|
4659
|
+
label: string;
|
|
4660
|
+
options: ProjectedCatalogOption[];
|
|
4661
|
+
}
|
|
4662
|
+
interface ProjectedCatalog {
|
|
4663
|
+
nodeType: string;
|
|
4664
|
+
label: string;
|
|
4665
|
+
catalogId: string;
|
|
4666
|
+
kind: "single" | "multi";
|
|
4667
|
+
valueField?: string;
|
|
4668
|
+
defaultValue?: string;
|
|
4669
|
+
categoryOrder?: string[];
|
|
4670
|
+
categoryLabels?: Record<string, string>;
|
|
4671
|
+
detail: "compact" | "full";
|
|
4672
|
+
options?: ProjectedCatalogOption[];
|
|
4673
|
+
fields?: string[];
|
|
4674
|
+
dimensions?: ProjectedCatalogDimension[];
|
|
4675
|
+
}
|
|
4676
|
+
declare class CatalogsResource {
|
|
4677
|
+
private client;
|
|
4678
|
+
constructor(client: NodaroClient);
|
|
4679
|
+
/** Every catalog, projected & pack-composed (honors the deployment's
|
|
4680
|
+
* registered vendored packs). Cached publicly 5 min. */
|
|
4681
|
+
list(opts?: {
|
|
4682
|
+
detail?: "compact" | "full";
|
|
4683
|
+
}): Promise<{
|
|
4684
|
+
data: ProjectedCatalog[];
|
|
4685
|
+
}>;
|
|
4686
|
+
}
|
|
4687
|
+
|
|
4509
4688
|
/**
|
|
4510
4689
|
* Model-catalog types. Mirrors the backend's `GET /v1/models` projection
|
|
4511
4690
|
* (itself shared with the MCP `list_models` tool) so the SDK stays
|
|
@@ -5440,6 +5619,7 @@ declare class NodaroClient {
|
|
|
5440
5619
|
readonly library: LibraryResource;
|
|
5441
5620
|
readonly presets: PresetsResource;
|
|
5442
5621
|
readonly pickerCatalogs: PickerCatalogsResource;
|
|
5622
|
+
readonly catalogs: CatalogsResource;
|
|
5443
5623
|
readonly models: ModelsResource;
|
|
5444
5624
|
readonly shots: ShotsResource;
|
|
5445
5625
|
readonly recast: RecastResource;
|
|
@@ -5571,4 +5751,4 @@ interface ApiErrorBody {
|
|
|
5571
5751
|
}
|
|
5572
5752
|
declare function throwFromResponse(status: number, body: ApiErrorBody): never;
|
|
5573
5753
|
|
|
5574
|
-
export { type AccessTokenResponse, type AnalyzeInput, type AnalyzeResult, type AppRun, type AppRunResult, type ApplyChatProposalResult, type ApproveCreatureMainImageResult, type ApproveMainImageResult, type ApproveObjectMainImageResult, type ApprovePortraitResult, AppsResource, AudioResource, type Auth, type BranchPipelineInput, type BranchPipelineResult, type BrowseTemplatesParams, type BrowseTemplatesResult, CREATURE_ASSET_TYPES, CallbackAuth, type CancelExecutionParams, type CancelJobResult, type Character, type CharacterDetail, type CharacterUsage, CharactersResource, type ChatStageResult, type ChatTurn, type ClientOptions, type CloneTemplateParams, type CloneTemplateResult, CommunityResource, type ContinueVideoProResult, type CreateCreatureInput, type CreateDeveloperAppInput, type CreateDeveloperAppResult, type CreateLocationInput, type CreateObjectInput, type CreateOrgInput, type CreateProjectInput, type CreateRecastInput, type CreateShotInput, type CreateWorkflowInput, type CreateWorkspaceInput, type Creature, type CreatureAssetType, type CreatureDetail, type CreatureReferencePhoto, type CreatureReferencePhotoKind, CreaturesResource, CreditsResource, type DeleteAppRunResult, type DeveloperApp, type DeveloperAppScope, type DeveloperAppStatus, DeveloperAppsResource, type DownloadVideoProgress, type DubbingInput, type DuplicateCharacterInput, type EnhanceInput, type EstimateRecastInput, type EstimateRecastRescoreInput, type ExchangeCodeInput, type ExecutionStatus, type ExecutionTriggerType, ExecutionsResource, type FactoryPresetsResult, ForbiddenError, type GenerateAssetInput, type GenerateCharacterInput, type GenerateCharacterResult, type GenerateCreatureAssetInput, type GenerateCreatureAssetResult, type GenerateCreatureInput, type GenerateCreatureMotionInput, type GenerateCreatureMotionResult, type GenerateCreatureResult, type GenerateImageParams, type GenerateInput, type GenerateLocationAssetInput, type GenerateLocationInput, type GenerateLocationResult, type GenerateMotionInput, type GenerateObjectAssetInput, type GenerateObjectAssetResult, type GenerateObjectInput, type GenerateObjectMotionInput, type GenerateObjectMotionResult, type GenerateObjectResult, type GenerateSurroundContinuationInput, type GenerateVideoParams, type GetPickerCatalogOptions, InsufficientCreditsError, type InviteInput, type Job, JobAbortedError, JobFailedError, type JobStatus, type JobStatusResult, JobTimeoutError, JobsResource, type LibraryAsset, LibraryResource, type ListAppRunsParams, type ListAppsParams, type ListAppsResult, type ListCharactersParams, type ListCharactersResult, type ListCreaturesParams, type ListExecutionsForWorkflowParams, type ListExecutionsPage, type ListInvitationsOptions, type ListLibraryParams, type ListLibraryResult, type ListLocationsParams, type ListModelsOptions, type ListObjectsParams, type ListWorkflowsParams, type Location, type LocationDetail, type LocationReferencePhoto, type LocationReferencePhotoKind, LocationsResource, MediaResource, type ModelCostsResult, type ModelSummary, type ModelsListResult, ModelsResource, NodaroClient, NodaroError, type NodeCategory, type NodeDescriptor, type NodeExecutionState, type NodeInputField, type NodeInputSchema, type NodeJobOutput, type NodePreset, type NodePresetGroup, NodesResource, NotFoundError, type OAuthAppInfo, OAuthResource, type Object$1 as Object, type ObjectCategory, type ObjectDetail, type ObjectReferencePhoto, type ObjectReferencePhotoKind, ObjectsResource, OrganizationsResource, type OutputType, type PickerCatalog, type PickerCatalogSummary, PickerCatalogsResource, type PickerDimension, type PickerOption, PipelinesResource, PresetsResource, type Project, ProjectsResource, PromptHelperResource, type PromptResult, type PublishedApp, type PublishedAppDetail, RateLimitedError, type RecaptionCreatureResult, type RecaptionLocationResult, type RecaptionObjectResult, type RecaptionResult, type RecastAudioLayerName, type RecastAudioManifestV1, type RecastAudioMix, type RecastAudioMixControl, type RecastAudioSectionReplacement, type RecastEstimate, type RecastRescoreOperation, type RecastRescoreQuote, type RecastRescoreReplacement, type RecastRescoreRequestV2, type RecastRescoreResponse, RecastResource, type RecastRunSnapshot, type RecastScriptImportResult, type RecastScriptValidation, type RecastScriptValidationError, type ReduceInput, ReduceResource, type ReduceResult, type ReferencePhoto, type ReferencePhotoKind, type ResolveRecastGateInput, type RotateSecretResult, type RunAndWaitOptions, type RunManyResult, type RunNodeResult, type RunWorkflowParams, type RunWorkflowResult, type Shot, type ShotEntityRef, type ShotMode, ShotsResource, StaticTokenAuth, type StopVideoProResult, StorageExceededError, type StructuredReferenceParams, type Template, type TemplateBrowseCard, type TemplateSort, TemplatesResource, type TutorialCategory, type TutorialFlowItem, type TutorialVideoItem, TutorialsResource, UnauthorizedError, type UpdateCreatureInput, type UpdateCreatureResult, type UpdateDeveloperAppInput, type UpdateLocationInput, type UpdateLocationResult, type UpdateObjectInput, type UpdateObjectResult, type UpdateProjectInput, type UpdateShotInput, type UpdateWorkflowInput, type UploadResult, UploadsResource, type UpsertCharacterInput, type UpsertCharacterResult, type UpsertCreatureInput, type UpsertCreatureResult, type UpsertObjectInput, type UpsertObjectResult, type UserBalance, type UserIdentity, type VcpAnalysis, type VcpAnalysisSpeaker, type VcpAnalyzeInput, type VcpExportInput, type VcpExportTrack, type VideoMetadata, VideoProResource, type VoiceChangerProInput, type VoiceChangerProVoice, type VoiceDesignInput, type VoiceRemixInput, VoicesResource, type Workflow, WorkflowConflictError, type WorkflowExecution, type WorkflowExecutionSummary, WorkflowsResource, WorkspacesResource, buildPersonSeedPrompt, createClient, supabaseAuth, throwFromResponse };
|
|
5754
|
+
export { type AccessTokenResponse, type AnalyzeInput, type AnalyzeResult, type AppRun, type AppRunResult, type ApplyChatProposalResult, type ApproveCreatureMainImageResult, type ApproveMainImageResult, type ApproveObjectMainImageResult, type ApprovePortraitResult, AppsResource, AudioResource, type Auth, type BranchPipelineInput, type BranchPipelineResult, type BrowseTemplatesParams, type BrowseTemplatesResult, CREATURE_ASSET_TYPES, CallbackAuth, type CancelExecutionParams, type CancelJobResult, CatalogsResource, type Character, type CharacterDetail, type CharacterUsage, CharactersResource, type ChatStageResult, type ChatTurn, type ClientOptions, type CloneTemplateParams, type CloneTemplateResult, CommunityResource, type ContinueVideoProResult, type CreateCreatureInput, type CreateDeveloperAppInput, type CreateDeveloperAppResult, type CreateLocationInput, type CreateObjectInput, type CreateOrgInput, type CreateProjectInput, type CreateRecastInput, type CreateShotInput, type CreateWorkflowInput, type CreateWorkspaceInput, type Creature, type CreatureAssetType, type CreatureDetail, type CreatureReferencePhoto, type CreatureReferencePhotoKind, CreaturesResource, CreditsResource, type DeleteAppRunResult, type DeveloperApp, type DeveloperAppScope, type DeveloperAppStatus, DeveloperAppsResource, type DownloadVideoProgress, type DubbingInput, type DuplicateCharacterInput, type EnhanceInput, type EstimateRecastInput, type EstimateRecastRescoreInput, type ExchangeCodeInput, type ExecutionStatus, type ExecutionTriggerType, ExecutionsResource, type FactoryPresetsResult, ForbiddenError, type GenerateAssetInput, type GenerateCharacterInput, type GenerateCharacterResult, type GenerateCreatureAssetInput, type GenerateCreatureAssetResult, type GenerateCreatureInput, type GenerateCreatureMotionInput, type GenerateCreatureMotionResult, type GenerateCreatureResult, type GenerateImageParams, type GenerateInput, type GenerateLocationAssetInput, type GenerateLocationInput, type GenerateLocationResult, type GenerateMotionInput, type GenerateObjectAssetInput, type GenerateObjectAssetResult, type GenerateObjectInput, type GenerateObjectMotionInput, type GenerateObjectMotionResult, type GenerateObjectResult, type GenerateSurroundContinuationInput, type GenerateVideoParams, type GetPickerCatalogOptions, InsufficientCreditsError, type InviteInput, type Job, JobAbortedError, JobFailedError, type JobStatus, type JobStatusResult, JobTimeoutError, JobsResource, type LibraryAsset, LibraryResource, type ListAppRunsParams, type ListAppsParams, type ListAppsResult, type ListCharactersParams, type ListCharactersResult, type ListCreaturesParams, type ListExecutionsForWorkflowParams, type ListExecutionsPage, type ListInvitationsOptions, type ListLibraryParams, type ListLibraryResult, type ListLocationsParams, type ListModelsOptions, type ListObjectsParams, type ListWorkflowsParams, type Location, type LocationDetail, type LocationReferencePhoto, type LocationReferencePhotoKind, LocationsResource, MediaResource, type ModelCostsResult, type ModelSummary, type ModelsListResult, ModelsResource, NodaroClient, NodaroError, type NodeCategory, type NodeDescriptor, type NodeExecutionState, type NodeInputField, type NodeInputSchema, type NodeJobOutput, type NodePreset, type NodePresetGroup, NodesResource, NotFoundError, type OAuthAppInfo, OAuthResource, type Object$1 as Object, type ObjectCategory, type ObjectDetail, type ObjectReferencePhoto, type ObjectReferencePhotoKind, ObjectsResource, OrganizationsResource, type OutputType, type PickerCatalog, type PickerCatalogSummary, PickerCatalogsResource, type PickerDimension, type PickerOption, PipelinesResource, PresetsResource, type Project, type ProjectedCatalog, type ProjectedCatalogDimension, type ProjectedCatalogOption, ProjectsResource, PromptHelperResource, type PromptResult, type PublishedApp, type PublishedAppDetail, RateLimitedError, type RecaptionCreatureResult, type RecaptionLocationResult, type RecaptionObjectResult, type RecaptionResult, type RecastAudioLayerName, type RecastAudioManifestV1, type RecastAudioMix, type RecastAudioMixControl, type RecastAudioSectionReplacement, type RecastEstimate, type RecastRescoreOperation, type RecastRescoreQuote, type RecastRescoreReplacement, type RecastRescoreRequestV2, type RecastRescoreResponse, RecastResource, type RecastRunSnapshot, type RecastScriptImportResult, type RecastScriptValidation, type RecastScriptValidationError, type ReduceInput, ReduceResource, type ReduceResult, type ReferencePhoto, type ReferencePhotoKind, type ResolveRecastGateInput, type RotateSecretResult, type RunAndWaitOptions, type RunManyResult, type RunNodeResult, type RunWorkflowParams, type RunWorkflowResult, type Shot, type ShotEntityRef, type ShotMode, ShotsResource, StaticTokenAuth, type StopVideoProResult, StorageExceededError, type StructuredReferenceParams, type Template, type TemplateBrowseCard, type TemplateSort, TemplatesResource, type TutorialCategory, type TutorialFlowItem, type TutorialVideoItem, TutorialsResource, UnauthorizedError, type UpdateCreatureInput, type UpdateCreatureResult, type UpdateDeveloperAppInput, type UpdateLocationInput, type UpdateLocationResult, type UpdateObjectInput, type UpdateObjectResult, type UpdateProjectInput, type UpdateShotInput, type UpdateWorkflowInput, type UploadResult, UploadsResource, type UpsertCharacterInput, type UpsertCharacterResult, type UpsertCreatureInput, type UpsertCreatureResult, type UpsertObjectInput, type UpsertObjectResult, type UserBalance, type UserIdentity, type VcpAnalysis, type VcpAnalysisSpeaker, type VcpAnalyzeInput, type VcpExportInput, type VcpExportTrack, type VideoMetadata, VideoProResource, type VoiceChangerProInput, type VoiceChangerProVoice, type VoiceDesignInput, type VoiceRemixInput, VoicesResource, type Workflow, WorkflowConflictError, type WorkflowExecution, type WorkflowExecutionSummary, WorkflowsResource, WorkspacesResource, buildPersonSeedPrompt, createClient, supabaseAuth, throwFromResponse };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GenericNode, GenericEdge, WorkflowExport, WorkflowImportReport, ConnectedReference, TtsProvider, EntityStyle, CharacterAspectRatio, CharacterAttachColumn, LocationAssetType, LocationAttachColumn, SurroundDirection, ObjectAssetType, ObjectAttachColumn, ObjectAspectRatio, CreatureAttachColumn, PipelineInput, PipelineStatus, PipelineMode, PipelineStageName, SubGateName, ChatEnabledStage, ProposedChange, ReduceStrategyId, ReduceMeta, Voice, VoiceLibraryParams, VoiceLibraryResponse, VoiceClone, AudioFxPreset, BrowseCommunityParams, BrowseCommunityResult, CommunityCard, CommunityFullDetail, CommunityEntityType, CloneListingResult, FavoriteListingResult, CommunityReportReason, ReportListingResult, PublishListingParams, PublishListingResult, SharedListing, OrganizationView, OrgKind, OrgSettings, OrgPage, OrgMemberView, MemberStatus, WorkspaceRole, InvitationDelivery, InvitationState, InvitationView, InvitationPreview, OrgAuditEntry, WorkspaceSummary, WorkspaceView, WorkspaceSettings, WorkspaceMemberView, JoinCodeView, MeOrganizations } from '@nodaro/shared';
|
|
1
|
+
import { CollaboratorRole, GenericNode, GenericEdge, WorkflowExport, WorkflowImportReport, WorkflowVisibility, ConnectedReference, TtsProvider, EntityStyle, CharacterAspectRatio, CharacterAttachColumn, LocationAssetType, LocationAttachColumn, SurroundDirection, ObjectAssetType, ObjectAttachColumn, ObjectAspectRatio, CreatureAttachColumn, PipelineInput, PipelineStatus, PipelineMode, PipelineStageName, SubGateName, ChatEnabledStage, ProposedChange, ReduceStrategyId, ReduceMeta, Voice, VoiceLibraryParams, VoiceLibraryResponse, VoiceClone, AudioFxPreset, BrowseCommunityParams, BrowseCommunityResult, CommunityCard, CommunityFullDetail, CommunityEntityType, CloneListingResult, FavoriteListingResult, CommunityReportReason, ReportListingResult, PublishListingParams, PublishListingResult, SharedListing, OrganizationView, OrgKind, OrgSettings, OrgPage, OrgMemberView, MemberStatus, WorkspaceRole, InvitationDelivery, InvitationState, InvitationView, InvitationPreview, OrgAuditEntry, WorkspaceSummary, WorkspaceView, WorkspaceSettings, WorkspaceMemberView, JoinCodeView, MeOrganizations } from '@nodaro/shared';
|
|
2
2
|
export { AudioFxPreset, BrowseCommunityParams, BrowseCommunityResult, CHARACTER_ASPECT_DEFAULTS, CHARACTER_ASPECT_OPTIONS, CHARACTER_STYLES, OBJECT_ASPECT_DEFAULTS as CREATURE_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS as CREATURE_ASPECT_OPTIONS, CREATURE_ATTACH_COLUMNS, CharacterAspectRatio, CloneListingResult, CommunityCard, CommunityEntityType, CommunityReportReason, CommunitySort, ConnectedReference, ObjectAspectRatio as CreatureAspectRatio, CreatureAttachColumn, EntityStyle, FavoriteListingResult, GenericEdge, GenericNode, InvitationDelivery, InvitationPreview, InvitationState, InvitationView, JoinCodeView, LOCATION_ASSET_TYPES, LOCATION_ATTACH_COLUMNS, LocationAssetType, LocationAttachColumn, MeOrganizations, MemberStatus, OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ATTACH_COLUMNS, ObjectAspectRatio, ObjectAssetType, ObjectAttachColumn, OrgAuditEntry, OrgErrorCode, OrgKind, OrgMemberView, OrgPage, OrgRole, OrgSettings, OrgStatus, OrganizationSummary, OrganizationView, PipelineStageName, PublishListingParams, PublishListingResult, ReduceMeta, ReduceStrategyId, ReportListingResult, SURROUND_DIRECTIONS, SharedListing, SharedVoice, SurroundDirection, Voice, VoiceClone, VoiceLibraryParams, VoiceLibraryResponse, WORKSPACE_HEADER, WorkflowExport, WorkflowExportCharacter, WorkflowExportLocation, WorkflowExportObject, WorkspaceMemberView, WorkspaceRole, WorkspaceSettings, WorkspaceSummary, WorkspaceView } from '@nodaro/shared';
|
|
3
3
|
import { PersonValue, WizardNodeContext, WizardQuestion, WizardSelection, RecommendedModel, FactoryPreset } from '@nodaro/prompts';
|
|
4
4
|
export { PEOPLE, PERSON_DIMENSION_LABELS, PERSON_DIMENSION_ORDER, PersonValue, RecommendedModel, WizardNodeContext, WizardOption, WizardQuestion, WizardSelection, buildPersonHints } from '@nodaro/prompts';
|
|
@@ -109,8 +109,68 @@ interface RunWorkflowResult {
|
|
|
109
109
|
executionId: string;
|
|
110
110
|
status: "pending" | "running";
|
|
111
111
|
}
|
|
112
|
+
/** A person granted access to a workflow. Email is never returned (privacy). */
|
|
113
|
+
interface Collaborator {
|
|
114
|
+
userId: string;
|
|
115
|
+
name?: string | null;
|
|
116
|
+
avatar?: string | null;
|
|
117
|
+
role: CollaboratorRole;
|
|
118
|
+
}
|
|
119
|
+
interface AddCollaboratorInput {
|
|
120
|
+
/** Provide exactly one of `userId` or `email`. */
|
|
121
|
+
userId?: string;
|
|
122
|
+
email?: string;
|
|
123
|
+
role: CollaboratorRole;
|
|
124
|
+
}
|
|
125
|
+
/** A workflow someone else shared with you, plus the role you hold on it. */
|
|
126
|
+
interface SharedWorkflow extends Workflow {
|
|
127
|
+
grantedRole: CollaboratorRole;
|
|
128
|
+
}
|
|
129
|
+
/** A grant dropped because a move took the workflow out of the workspace the
|
|
130
|
+
* access came from. */
|
|
131
|
+
interface DroppedCollaborator {
|
|
132
|
+
userId: string;
|
|
133
|
+
name: string | null;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* The people a workflow is shared with — reached as `client.workflows.collaborators`.
|
|
137
|
+
* All four endpoints are served by the organizations feature and exist only when
|
|
138
|
+
* it is enabled server-side; against an install without it they 404
|
|
139
|
+
* (→ `NotFoundError`). The active workspace travels on the request like every
|
|
140
|
+
* other call, so a workspace admin's grants apply automatically.
|
|
141
|
+
*/
|
|
142
|
+
declare class WorkflowCollaboratorsResource {
|
|
143
|
+
private client;
|
|
144
|
+
constructor(client: NodaroClient);
|
|
145
|
+
/** List a workflow's collaborators (id, name, avatar, role — never email). */
|
|
146
|
+
list(workflowId: string): Promise<{
|
|
147
|
+
data: Collaborator[];
|
|
148
|
+
}>;
|
|
149
|
+
/** Add a collaborator by `userId` OR `email` (exactly one), at the given role. */
|
|
150
|
+
add(workflowId: string, input: AddCollaboratorInput): Promise<{
|
|
151
|
+
data: {
|
|
152
|
+
userId: string;
|
|
153
|
+
role: CollaboratorRole;
|
|
154
|
+
};
|
|
155
|
+
}>;
|
|
156
|
+
/** Change a collaborator's role. */
|
|
157
|
+
update(workflowId: string, userId: string, input: {
|
|
158
|
+
role: CollaboratorRole;
|
|
159
|
+
}): Promise<{
|
|
160
|
+
data: {
|
|
161
|
+
userId: string;
|
|
162
|
+
role: CollaboratorRole;
|
|
163
|
+
};
|
|
164
|
+
}>;
|
|
165
|
+
/** Remove a collaborator — or yourself. Returns `{ success: true }`. */
|
|
166
|
+
remove(workflowId: string, userId: string): Promise<{
|
|
167
|
+
success: true;
|
|
168
|
+
}>;
|
|
169
|
+
}
|
|
112
170
|
declare class WorkflowsResource {
|
|
113
171
|
private client;
|
|
172
|
+
/** The people this workflow is shared with. See {@link WorkflowCollaboratorsResource}. */
|
|
173
|
+
readonly collaborators: WorkflowCollaboratorsResource;
|
|
114
174
|
constructor(client: NodaroClient);
|
|
115
175
|
/** List workflows for a project. Returns metadata only — `nodes`/`edges` are not included. */
|
|
116
176
|
list(params: ListWorkflowsParams): Promise<{
|
|
@@ -173,6 +233,36 @@ declare class WorkflowsResource {
|
|
|
173
233
|
data: Workflow;
|
|
174
234
|
importReport?: WorkflowImportReport;
|
|
175
235
|
}>;
|
|
236
|
+
/**
|
|
237
|
+
* Set a workflow's visibility — `"private"` (creator + explicit collaborators)
|
|
238
|
+
* or `"workspace"` (everyone in its workspace). Only the creator or a workspace
|
|
239
|
+
* admin may change it; anyone else gets HTTP 403. Thin wrapper over `update()`:
|
|
240
|
+
* the visibility lever lives on `PATCH /v1/workflows/:id`.
|
|
241
|
+
*/
|
|
242
|
+
setVisibility(id: string, visibility: WorkflowVisibility): Promise<{
|
|
243
|
+
data: Workflow;
|
|
244
|
+
}>;
|
|
245
|
+
/**
|
|
246
|
+
* Move a workflow to another project (`POST /v1/workflows/:id/move`); its folder
|
|
247
|
+
* is cleared. When the move takes the workflow out of a workspace, collaborator
|
|
248
|
+
* grants that came from that workspace are dropped and returned as
|
|
249
|
+
* `droppedCollaborators`.
|
|
250
|
+
*/
|
|
251
|
+
move(id: string, params: {
|
|
252
|
+
projectId: string;
|
|
253
|
+
}): Promise<{
|
|
254
|
+
data: Workflow;
|
|
255
|
+
droppedCollaborators: DroppedCollaborator[];
|
|
256
|
+
}>;
|
|
257
|
+
/**
|
|
258
|
+
* Workflows other people shared with you (`GET /v1/workflows/shared-with-me`) —
|
|
259
|
+
* grants on work that is NOT in a workspace you belong to (workspace work already
|
|
260
|
+
* shows in that workspace's own lists). Each carries the `grantedRole` you hold.
|
|
261
|
+
* Empty when the organizations feature is off server-side.
|
|
262
|
+
*/
|
|
263
|
+
sharedWithMe(): Promise<{
|
|
264
|
+
data: SharedWorkflow[];
|
|
265
|
+
}>;
|
|
176
266
|
}
|
|
177
267
|
|
|
178
268
|
interface Project {
|
|
@@ -1732,6 +1822,14 @@ interface UpdateLocationResult {
|
|
|
1732
1822
|
interface ListLocationsParams {
|
|
1733
1823
|
/** When true, return archived locations instead of active ones. */
|
|
1734
1824
|
archived?: boolean;
|
|
1825
|
+
/**
|
|
1826
|
+
* Max rows to return (cap 500). OPT-IN: omitted, the server returns the
|
|
1827
|
+
* full legacy listing with no `nextCursor`; supplied, the response is one
|
|
1828
|
+
* page plus `nextCursor` — keep passing it back until it is `null`.
|
|
1829
|
+
*/
|
|
1830
|
+
limit?: number;
|
|
1831
|
+
/** Opaque cursor from a prior page's `nextCursor` (fetches the next page). */
|
|
1832
|
+
cursor?: string;
|
|
1735
1833
|
}
|
|
1736
1834
|
/**
|
|
1737
1835
|
* Input for `client.locations.generate()` — fires the
|
|
@@ -1926,6 +2024,7 @@ declare class LocationsResource {
|
|
|
1926
2024
|
*/
|
|
1927
2025
|
list(params?: ListLocationsParams): Promise<{
|
|
1928
2026
|
locations: Location[];
|
|
2027
|
+
nextCursor?: string | null;
|
|
1929
2028
|
}>;
|
|
1930
2029
|
/**
|
|
1931
2030
|
* Convenience wrapper for `list({ archived: true })`. Returns soft-deleted
|
|
@@ -1936,6 +2035,7 @@ declare class LocationsResource {
|
|
|
1936
2035
|
*/
|
|
1937
2036
|
listArchived(params?: Omit<ListLocationsParams, "archived">): Promise<{
|
|
1938
2037
|
locations: Location[];
|
|
2038
|
+
nextCursor?: string | null;
|
|
1939
2039
|
}>;
|
|
1940
2040
|
/**
|
|
1941
2041
|
* Fetch a single location including in-flight asset job state. Soft-deleted
|
|
@@ -2273,6 +2373,14 @@ interface ListObjectsParams {
|
|
|
2273
2373
|
archived?: boolean;
|
|
2274
2374
|
/** Optional project filter — server-scoped to the caller's user. */
|
|
2275
2375
|
projectId?: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* Max rows to return (cap 500). OPT-IN: omitted, the server returns the
|
|
2378
|
+
* full legacy listing with no `nextCursor`; supplied, the response is one
|
|
2379
|
+
* page plus `nextCursor` — keep passing it back until it is `null`.
|
|
2380
|
+
*/
|
|
2381
|
+
limit?: number;
|
|
2382
|
+
/** Opaque cursor from a prior page's `nextCursor` (fetches the next page). */
|
|
2383
|
+
cursor?: string;
|
|
2276
2384
|
}
|
|
2277
2385
|
/**
|
|
2278
2386
|
* Input for `client.objects.generate()` — fires the
|
|
@@ -2428,6 +2536,7 @@ declare class ObjectsResource {
|
|
|
2428
2536
|
*/
|
|
2429
2537
|
list(params?: ListObjectsParams): Promise<{
|
|
2430
2538
|
objects: Object$1[];
|
|
2539
|
+
nextCursor?: string | null;
|
|
2431
2540
|
}>;
|
|
2432
2541
|
/**
|
|
2433
2542
|
* Convenience wrapper for `list({ archived: true })`. Returns soft-deleted
|
|
@@ -2438,6 +2547,7 @@ declare class ObjectsResource {
|
|
|
2438
2547
|
*/
|
|
2439
2548
|
listArchived(params?: Omit<ListObjectsParams, "archived">): Promise<{
|
|
2440
2549
|
objects: Object$1[];
|
|
2550
|
+
nextCursor?: string | null;
|
|
2441
2551
|
}>;
|
|
2442
2552
|
/**
|
|
2443
2553
|
* Fetch a single object including in-flight asset job state. Soft-deleted
|
|
@@ -2827,6 +2937,14 @@ interface ListCreaturesParams {
|
|
|
2827
2937
|
archived?: boolean;
|
|
2828
2938
|
/** Optional project filter — server-scoped to the caller's user. */
|
|
2829
2939
|
projectId?: string;
|
|
2940
|
+
/**
|
|
2941
|
+
* Max rows to return (cap 500). OPT-IN: omitted, the server returns the
|
|
2942
|
+
* full legacy listing with no `nextCursor`; supplied, the response is one
|
|
2943
|
+
* page plus `nextCursor` — keep passing it back until it is `null`.
|
|
2944
|
+
*/
|
|
2945
|
+
limit?: number;
|
|
2946
|
+
/** Opaque cursor from a prior page's `nextCursor` (fetches the next page). */
|
|
2947
|
+
cursor?: string;
|
|
2830
2948
|
}
|
|
2831
2949
|
/**
|
|
2832
2950
|
* Input for `client.creatures.generate()` — fires the
|
|
@@ -2983,6 +3101,7 @@ declare class CreaturesResource {
|
|
|
2983
3101
|
*/
|
|
2984
3102
|
list(params?: ListCreaturesParams): Promise<{
|
|
2985
3103
|
creatures: Creature[];
|
|
3104
|
+
nextCursor?: string | null;
|
|
2986
3105
|
}>;
|
|
2987
3106
|
/**
|
|
2988
3107
|
* Convenience wrapper for `list({ archived: true })`. Returns soft-deleted
|
|
@@ -2993,6 +3112,7 @@ declare class CreaturesResource {
|
|
|
2993
3112
|
*/
|
|
2994
3113
|
listArchived(params?: Omit<ListCreaturesParams, "archived">): Promise<{
|
|
2995
3114
|
creatures: Creature[];
|
|
3115
|
+
nextCursor?: string | null;
|
|
2996
3116
|
}>;
|
|
2997
3117
|
/**
|
|
2998
3118
|
* Fetch a single creature including in-flight asset job state. Soft-deleted
|
|
@@ -4415,6 +4535,13 @@ interface PickerOption {
|
|
|
4415
4535
|
category?: string;
|
|
4416
4536
|
/** The prompt fragment this id injects downstream. Present only when detail="full". */
|
|
4417
4537
|
promptHint?: string;
|
|
4538
|
+
/**
|
|
4539
|
+
* Short professional term injected by compact hint mode; `label` is for
|
|
4540
|
+
* display. Present at BOTH detail levels — a thin client renders `label`
|
|
4541
|
+
* and injects `term`. Empty for a no-op ("auto"/"none") entry that injects
|
|
4542
|
+
* nothing.
|
|
4543
|
+
*/
|
|
4544
|
+
term?: string;
|
|
4418
4545
|
icon?: string;
|
|
4419
4546
|
}
|
|
4420
4547
|
interface PickerDimension {
|
|
@@ -4449,7 +4576,7 @@ interface PickerCatalogSummary {
|
|
|
4449
4576
|
optionCount: number;
|
|
4450
4577
|
}
|
|
4451
4578
|
interface GetPickerCatalogOptions {
|
|
4452
|
-
/** "compact" (default) = id, label, category, icon; "full" additionally includes description + promptHint. */
|
|
4579
|
+
/** "compact" (default) = id, label, category, term, icon; "full" additionally includes description + promptHint. */
|
|
4453
4580
|
detail?: "compact" | "full";
|
|
4454
4581
|
/** single-dim: filter to one category. */
|
|
4455
4582
|
category?: string;
|
|
@@ -4506,6 +4633,58 @@ declare class PickerCatalogsResource {
|
|
|
4506
4633
|
}>;
|
|
4507
4634
|
}
|
|
4508
4635
|
|
|
4636
|
+
/**
|
|
4637
|
+
* Catalog projection types. Mirror `@nodaro/shared`'s `ProjectedCatalog` so the
|
|
4638
|
+
* SDK stays dependency-free (same convention as `picker-catalogs.ts`). Tag-free
|
|
4639
|
+
* by design — the deferred `CatalogPolicy` never crosses the wire.
|
|
4640
|
+
*/
|
|
4641
|
+
interface ProjectedCatalogOption {
|
|
4642
|
+
id: string;
|
|
4643
|
+
label: string;
|
|
4644
|
+
description?: string;
|
|
4645
|
+
category?: string;
|
|
4646
|
+
/** The prompt fragment this id injects downstream. Present only when detail="full". */
|
|
4647
|
+
promptHint?: string;
|
|
4648
|
+
/**
|
|
4649
|
+
* Short professional term injected by compact hint mode; `label` is for
|
|
4650
|
+
* display. Present at BOTH detail levels — a thin client renders `label`
|
|
4651
|
+
* and injects `term`. Empty for a no-op ("auto"/"none") entry that injects
|
|
4652
|
+
* nothing.
|
|
4653
|
+
*/
|
|
4654
|
+
term?: string;
|
|
4655
|
+
icon?: string;
|
|
4656
|
+
}
|
|
4657
|
+
interface ProjectedCatalogDimension {
|
|
4658
|
+
field: string;
|
|
4659
|
+
label: string;
|
|
4660
|
+
options: ProjectedCatalogOption[];
|
|
4661
|
+
}
|
|
4662
|
+
interface ProjectedCatalog {
|
|
4663
|
+
nodeType: string;
|
|
4664
|
+
label: string;
|
|
4665
|
+
catalogId: string;
|
|
4666
|
+
kind: "single" | "multi";
|
|
4667
|
+
valueField?: string;
|
|
4668
|
+
defaultValue?: string;
|
|
4669
|
+
categoryOrder?: string[];
|
|
4670
|
+
categoryLabels?: Record<string, string>;
|
|
4671
|
+
detail: "compact" | "full";
|
|
4672
|
+
options?: ProjectedCatalogOption[];
|
|
4673
|
+
fields?: string[];
|
|
4674
|
+
dimensions?: ProjectedCatalogDimension[];
|
|
4675
|
+
}
|
|
4676
|
+
declare class CatalogsResource {
|
|
4677
|
+
private client;
|
|
4678
|
+
constructor(client: NodaroClient);
|
|
4679
|
+
/** Every catalog, projected & pack-composed (honors the deployment's
|
|
4680
|
+
* registered vendored packs). Cached publicly 5 min. */
|
|
4681
|
+
list(opts?: {
|
|
4682
|
+
detail?: "compact" | "full";
|
|
4683
|
+
}): Promise<{
|
|
4684
|
+
data: ProjectedCatalog[];
|
|
4685
|
+
}>;
|
|
4686
|
+
}
|
|
4687
|
+
|
|
4509
4688
|
/**
|
|
4510
4689
|
* Model-catalog types. Mirrors the backend's `GET /v1/models` projection
|
|
4511
4690
|
* (itself shared with the MCP `list_models` tool) so the SDK stays
|
|
@@ -5440,6 +5619,7 @@ declare class NodaroClient {
|
|
|
5440
5619
|
readonly library: LibraryResource;
|
|
5441
5620
|
readonly presets: PresetsResource;
|
|
5442
5621
|
readonly pickerCatalogs: PickerCatalogsResource;
|
|
5622
|
+
readonly catalogs: CatalogsResource;
|
|
5443
5623
|
readonly models: ModelsResource;
|
|
5444
5624
|
readonly shots: ShotsResource;
|
|
5445
5625
|
readonly recast: RecastResource;
|
|
@@ -5571,4 +5751,4 @@ interface ApiErrorBody {
|
|
|
5571
5751
|
}
|
|
5572
5752
|
declare function throwFromResponse(status: number, body: ApiErrorBody): never;
|
|
5573
5753
|
|
|
5574
|
-
export { type AccessTokenResponse, type AnalyzeInput, type AnalyzeResult, type AppRun, type AppRunResult, type ApplyChatProposalResult, type ApproveCreatureMainImageResult, type ApproveMainImageResult, type ApproveObjectMainImageResult, type ApprovePortraitResult, AppsResource, AudioResource, type Auth, type BranchPipelineInput, type BranchPipelineResult, type BrowseTemplatesParams, type BrowseTemplatesResult, CREATURE_ASSET_TYPES, CallbackAuth, type CancelExecutionParams, type CancelJobResult, type Character, type CharacterDetail, type CharacterUsage, CharactersResource, type ChatStageResult, type ChatTurn, type ClientOptions, type CloneTemplateParams, type CloneTemplateResult, CommunityResource, type ContinueVideoProResult, type CreateCreatureInput, type CreateDeveloperAppInput, type CreateDeveloperAppResult, type CreateLocationInput, type CreateObjectInput, type CreateOrgInput, type CreateProjectInput, type CreateRecastInput, type CreateShotInput, type CreateWorkflowInput, type CreateWorkspaceInput, type Creature, type CreatureAssetType, type CreatureDetail, type CreatureReferencePhoto, type CreatureReferencePhotoKind, CreaturesResource, CreditsResource, type DeleteAppRunResult, type DeveloperApp, type DeveloperAppScope, type DeveloperAppStatus, DeveloperAppsResource, type DownloadVideoProgress, type DubbingInput, type DuplicateCharacterInput, type EnhanceInput, type EstimateRecastInput, type EstimateRecastRescoreInput, type ExchangeCodeInput, type ExecutionStatus, type ExecutionTriggerType, ExecutionsResource, type FactoryPresetsResult, ForbiddenError, type GenerateAssetInput, type GenerateCharacterInput, type GenerateCharacterResult, type GenerateCreatureAssetInput, type GenerateCreatureAssetResult, type GenerateCreatureInput, type GenerateCreatureMotionInput, type GenerateCreatureMotionResult, type GenerateCreatureResult, type GenerateImageParams, type GenerateInput, type GenerateLocationAssetInput, type GenerateLocationInput, type GenerateLocationResult, type GenerateMotionInput, type GenerateObjectAssetInput, type GenerateObjectAssetResult, type GenerateObjectInput, type GenerateObjectMotionInput, type GenerateObjectMotionResult, type GenerateObjectResult, type GenerateSurroundContinuationInput, type GenerateVideoParams, type GetPickerCatalogOptions, InsufficientCreditsError, type InviteInput, type Job, JobAbortedError, JobFailedError, type JobStatus, type JobStatusResult, JobTimeoutError, JobsResource, type LibraryAsset, LibraryResource, type ListAppRunsParams, type ListAppsParams, type ListAppsResult, type ListCharactersParams, type ListCharactersResult, type ListCreaturesParams, type ListExecutionsForWorkflowParams, type ListExecutionsPage, type ListInvitationsOptions, type ListLibraryParams, type ListLibraryResult, type ListLocationsParams, type ListModelsOptions, type ListObjectsParams, type ListWorkflowsParams, type Location, type LocationDetail, type LocationReferencePhoto, type LocationReferencePhotoKind, LocationsResource, MediaResource, type ModelCostsResult, type ModelSummary, type ModelsListResult, ModelsResource, NodaroClient, NodaroError, type NodeCategory, type NodeDescriptor, type NodeExecutionState, type NodeInputField, type NodeInputSchema, type NodeJobOutput, type NodePreset, type NodePresetGroup, NodesResource, NotFoundError, type OAuthAppInfo, OAuthResource, type Object$1 as Object, type ObjectCategory, type ObjectDetail, type ObjectReferencePhoto, type ObjectReferencePhotoKind, ObjectsResource, OrganizationsResource, type OutputType, type PickerCatalog, type PickerCatalogSummary, PickerCatalogsResource, type PickerDimension, type PickerOption, PipelinesResource, PresetsResource, type Project, ProjectsResource, PromptHelperResource, type PromptResult, type PublishedApp, type PublishedAppDetail, RateLimitedError, type RecaptionCreatureResult, type RecaptionLocationResult, type RecaptionObjectResult, type RecaptionResult, type RecastAudioLayerName, type RecastAudioManifestV1, type RecastAudioMix, type RecastAudioMixControl, type RecastAudioSectionReplacement, type RecastEstimate, type RecastRescoreOperation, type RecastRescoreQuote, type RecastRescoreReplacement, type RecastRescoreRequestV2, type RecastRescoreResponse, RecastResource, type RecastRunSnapshot, type RecastScriptImportResult, type RecastScriptValidation, type RecastScriptValidationError, type ReduceInput, ReduceResource, type ReduceResult, type ReferencePhoto, type ReferencePhotoKind, type ResolveRecastGateInput, type RotateSecretResult, type RunAndWaitOptions, type RunManyResult, type RunNodeResult, type RunWorkflowParams, type RunWorkflowResult, type Shot, type ShotEntityRef, type ShotMode, ShotsResource, StaticTokenAuth, type StopVideoProResult, StorageExceededError, type StructuredReferenceParams, type Template, type TemplateBrowseCard, type TemplateSort, TemplatesResource, type TutorialCategory, type TutorialFlowItem, type TutorialVideoItem, TutorialsResource, UnauthorizedError, type UpdateCreatureInput, type UpdateCreatureResult, type UpdateDeveloperAppInput, type UpdateLocationInput, type UpdateLocationResult, type UpdateObjectInput, type UpdateObjectResult, type UpdateProjectInput, type UpdateShotInput, type UpdateWorkflowInput, type UploadResult, UploadsResource, type UpsertCharacterInput, type UpsertCharacterResult, type UpsertCreatureInput, type UpsertCreatureResult, type UpsertObjectInput, type UpsertObjectResult, type UserBalance, type UserIdentity, type VcpAnalysis, type VcpAnalysisSpeaker, type VcpAnalyzeInput, type VcpExportInput, type VcpExportTrack, type VideoMetadata, VideoProResource, type VoiceChangerProInput, type VoiceChangerProVoice, type VoiceDesignInput, type VoiceRemixInput, VoicesResource, type Workflow, WorkflowConflictError, type WorkflowExecution, type WorkflowExecutionSummary, WorkflowsResource, WorkspacesResource, buildPersonSeedPrompt, createClient, supabaseAuth, throwFromResponse };
|
|
5754
|
+
export { type AccessTokenResponse, type AnalyzeInput, type AnalyzeResult, type AppRun, type AppRunResult, type ApplyChatProposalResult, type ApproveCreatureMainImageResult, type ApproveMainImageResult, type ApproveObjectMainImageResult, type ApprovePortraitResult, AppsResource, AudioResource, type Auth, type BranchPipelineInput, type BranchPipelineResult, type BrowseTemplatesParams, type BrowseTemplatesResult, CREATURE_ASSET_TYPES, CallbackAuth, type CancelExecutionParams, type CancelJobResult, CatalogsResource, type Character, type CharacterDetail, type CharacterUsage, CharactersResource, type ChatStageResult, type ChatTurn, type ClientOptions, type CloneTemplateParams, type CloneTemplateResult, CommunityResource, type ContinueVideoProResult, type CreateCreatureInput, type CreateDeveloperAppInput, type CreateDeveloperAppResult, type CreateLocationInput, type CreateObjectInput, type CreateOrgInput, type CreateProjectInput, type CreateRecastInput, type CreateShotInput, type CreateWorkflowInput, type CreateWorkspaceInput, type Creature, type CreatureAssetType, type CreatureDetail, type CreatureReferencePhoto, type CreatureReferencePhotoKind, CreaturesResource, CreditsResource, type DeleteAppRunResult, type DeveloperApp, type DeveloperAppScope, type DeveloperAppStatus, DeveloperAppsResource, type DownloadVideoProgress, type DubbingInput, type DuplicateCharacterInput, type EnhanceInput, type EstimateRecastInput, type EstimateRecastRescoreInput, type ExchangeCodeInput, type ExecutionStatus, type ExecutionTriggerType, ExecutionsResource, type FactoryPresetsResult, ForbiddenError, type GenerateAssetInput, type GenerateCharacterInput, type GenerateCharacterResult, type GenerateCreatureAssetInput, type GenerateCreatureAssetResult, type GenerateCreatureInput, type GenerateCreatureMotionInput, type GenerateCreatureMotionResult, type GenerateCreatureResult, type GenerateImageParams, type GenerateInput, type GenerateLocationAssetInput, type GenerateLocationInput, type GenerateLocationResult, type GenerateMotionInput, type GenerateObjectAssetInput, type GenerateObjectAssetResult, type GenerateObjectInput, type GenerateObjectMotionInput, type GenerateObjectMotionResult, type GenerateObjectResult, type GenerateSurroundContinuationInput, type GenerateVideoParams, type GetPickerCatalogOptions, InsufficientCreditsError, type InviteInput, type Job, JobAbortedError, JobFailedError, type JobStatus, type JobStatusResult, JobTimeoutError, JobsResource, type LibraryAsset, LibraryResource, type ListAppRunsParams, type ListAppsParams, type ListAppsResult, type ListCharactersParams, type ListCharactersResult, type ListCreaturesParams, type ListExecutionsForWorkflowParams, type ListExecutionsPage, type ListInvitationsOptions, type ListLibraryParams, type ListLibraryResult, type ListLocationsParams, type ListModelsOptions, type ListObjectsParams, type ListWorkflowsParams, type Location, type LocationDetail, type LocationReferencePhoto, type LocationReferencePhotoKind, LocationsResource, MediaResource, type ModelCostsResult, type ModelSummary, type ModelsListResult, ModelsResource, NodaroClient, NodaroError, type NodeCategory, type NodeDescriptor, type NodeExecutionState, type NodeInputField, type NodeInputSchema, type NodeJobOutput, type NodePreset, type NodePresetGroup, NodesResource, NotFoundError, type OAuthAppInfo, OAuthResource, type Object$1 as Object, type ObjectCategory, type ObjectDetail, type ObjectReferencePhoto, type ObjectReferencePhotoKind, ObjectsResource, OrganizationsResource, type OutputType, type PickerCatalog, type PickerCatalogSummary, PickerCatalogsResource, type PickerDimension, type PickerOption, PipelinesResource, PresetsResource, type Project, type ProjectedCatalog, type ProjectedCatalogDimension, type ProjectedCatalogOption, ProjectsResource, PromptHelperResource, type PromptResult, type PublishedApp, type PublishedAppDetail, RateLimitedError, type RecaptionCreatureResult, type RecaptionLocationResult, type RecaptionObjectResult, type RecaptionResult, type RecastAudioLayerName, type RecastAudioManifestV1, type RecastAudioMix, type RecastAudioMixControl, type RecastAudioSectionReplacement, type RecastEstimate, type RecastRescoreOperation, type RecastRescoreQuote, type RecastRescoreReplacement, type RecastRescoreRequestV2, type RecastRescoreResponse, RecastResource, type RecastRunSnapshot, type RecastScriptImportResult, type RecastScriptValidation, type RecastScriptValidationError, type ReduceInput, ReduceResource, type ReduceResult, type ReferencePhoto, type ReferencePhotoKind, type ResolveRecastGateInput, type RotateSecretResult, type RunAndWaitOptions, type RunManyResult, type RunNodeResult, type RunWorkflowParams, type RunWorkflowResult, type Shot, type ShotEntityRef, type ShotMode, ShotsResource, StaticTokenAuth, type StopVideoProResult, StorageExceededError, type StructuredReferenceParams, type Template, type TemplateBrowseCard, type TemplateSort, TemplatesResource, type TutorialCategory, type TutorialFlowItem, type TutorialVideoItem, TutorialsResource, UnauthorizedError, type UpdateCreatureInput, type UpdateCreatureResult, type UpdateDeveloperAppInput, type UpdateLocationInput, type UpdateLocationResult, type UpdateObjectInput, type UpdateObjectResult, type UpdateProjectInput, type UpdateShotInput, type UpdateWorkflowInput, type UploadResult, UploadsResource, type UpsertCharacterInput, type UpsertCharacterResult, type UpsertCreatureInput, type UpsertCreatureResult, type UpsertObjectInput, type UpsertObjectResult, type UserBalance, type UserIdentity, type VcpAnalysis, type VcpAnalysisSpeaker, type VcpAnalyzeInput, type VcpExportInput, type VcpExportTrack, type VideoMetadata, VideoProResource, type VoiceChangerProInput, type VoiceChangerProVoice, type VoiceDesignInput, type VoiceRemixInput, VoicesResource, type Workflow, WorkflowConflictError, type WorkflowExecution, type WorkflowExecutionSummary, WorkflowsResource, WorkspacesResource, buildPersonSeedPrompt, createClient, supabaseAuth, throwFromResponse };
|