@nodaro/sdk 2.44.0 → 2.46.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/{chunk-ETX3TLNB.cjs → chunk-22P4X3N5.cjs} +16 -5
- package/dist/chunk-22P4X3N5.cjs.map +1 -0
- package/dist/{chunk-RETNLKOC.js → chunk-33HT46A3.js} +2 -2
- package/dist/{chunk-RETNLKOC.js.map → chunk-33HT46A3.js.map} +1 -1
- package/dist/{chunk-IGMWFEFB.js → chunk-5MOJSYHI.js} +2 -2
- package/dist/chunk-5MOJSYHI.js.map +1 -0
- package/dist/{chunk-DAGJLS7W.js → chunk-5Q4SUZPL.js} +3 -3
- package/dist/{chunk-DAGJLS7W.js.map → chunk-5Q4SUZPL.js.map} +1 -1
- package/dist/{chunk-55ZX6TE3.cjs → chunk-66M54BUO.cjs} +6 -6
- package/dist/chunk-66M54BUO.cjs.map +1 -0
- package/dist/chunk-6NTKEXT5.js +3 -0
- package/dist/chunk-6NTKEXT5.js.map +1 -0
- package/dist/{chunk-FQNCIP6K.js → chunk-7LODCIQK.js} +2 -2
- package/dist/chunk-7LODCIQK.js.map +1 -0
- package/dist/{chunk-34JMD6ZO.cjs → chunk-7LTVS75S.cjs} +36 -12
- package/dist/chunk-7LTVS75S.cjs.map +1 -0
- package/dist/{chunk-DQAYIVVS.js → chunk-BQAW4RX2.js} +16 -5
- package/dist/chunk-BQAW4RX2.js.map +1 -0
- package/dist/{chunk-HKDIIFG2.js → chunk-C3C7IL25.js} +6 -6
- package/dist/chunk-C3C7IL25.js.map +1 -0
- package/dist/{chunk-QHXLMCBR.cjs → chunk-DIF7A5OH.cjs} +2 -2
- package/dist/chunk-DIF7A5OH.cjs.map +1 -0
- package/dist/{chunk-PQ7OKM3E.cjs → chunk-FIMBPKIH.cjs} +2 -2
- package/dist/chunk-FIMBPKIH.cjs.map +1 -0
- package/dist/{chunk-ZWPDWFN2.js → chunk-GW76IRQD.js} +2 -2
- package/dist/chunk-GW76IRQD.js.map +1 -0
- package/dist/{chunk-YSZM3N7Q.js → chunk-HPXE3NZW.js} +2 -2
- package/dist/{chunk-YSZM3N7Q.js.map → chunk-HPXE3NZW.js.map} +1 -1
- package/dist/{chunk-OIYMTGYN.cjs → chunk-JOXZ4ZIF.cjs} +2 -2
- package/dist/chunk-JOXZ4ZIF.cjs.map +1 -0
- package/dist/chunk-KBHDUHKM.js +21 -0
- package/dist/chunk-KBHDUHKM.js.map +1 -0
- package/dist/{chunk-FHVNTS4E.cjs → chunk-KMNSPC72.cjs} +2 -2
- package/dist/{chunk-FHVNTS4E.cjs.map → chunk-KMNSPC72.cjs.map} +1 -1
- package/dist/{chunk-ILG5DHQQ.js → chunk-M7VSFZMV.js} +2 -2
- package/dist/chunk-M7VSFZMV.js.map +1 -0
- package/dist/{chunk-3ZZWCHF5.cjs → chunk-POKNFGGD.cjs} +33 -29
- package/dist/chunk-POKNFGGD.cjs.map +1 -0
- package/dist/{chunk-6MQ2LTJZ.js → chunk-PQHZUWSL.js} +36 -12
- package/dist/chunk-PQHZUWSL.js.map +1 -0
- package/dist/{chunk-Z7UZ3FD3.js → chunk-RBX3QTKB.js} +2 -2
- package/dist/{chunk-Z7UZ3FD3.js.map → chunk-RBX3QTKB.js.map} +1 -1
- package/dist/{chunk-7XOK277W.cjs → chunk-SF2CMKWA.cjs} +2 -2
- package/dist/{chunk-7XOK277W.cjs.map → chunk-SF2CMKWA.cjs.map} +1 -1
- package/dist/{chunk-2VJOHJUZ.cjs → chunk-TK2CEVSK.cjs} +2 -2
- package/dist/chunk-TK2CEVSK.cjs.map +1 -0
- package/dist/chunk-UANHMQ3A.cjs +4 -0
- package/dist/chunk-UANHMQ3A.cjs.map +1 -0
- package/dist/{chunk-EK672FFM.cjs → chunk-UIBYZNDR.cjs} +2 -2
- package/dist/chunk-UIBYZNDR.cjs.map +1 -0
- package/dist/{chunk-6PI3CI7P.js → chunk-WFAFFAGV.js} +20 -16
- package/dist/chunk-WFAFFAGV.js.map +1 -0
- package/dist/{chunk-PEMLIAPZ.cjs → chunk-WMT7HEBZ.cjs} +40 -7
- package/dist/chunk-WMT7HEBZ.cjs.map +1 -0
- package/dist/{chunk-Y6VDCZPB.js → chunk-WS4ZQ4AA.js} +40 -7
- package/dist/chunk-WS4ZQ4AA.js.map +1 -0
- package/dist/{chunk-VYEGCEZ3.cjs → chunk-WUM6CWTE.cjs} +2 -2
- package/dist/{chunk-VYEGCEZ3.cjs.map → chunk-WUM6CWTE.cjs.map} +1 -1
- package/dist/{chunk-4UPVE662.js → chunk-XILR6TFO.js} +2 -2
- package/dist/chunk-XILR6TFO.js.map +1 -0
- package/dist/chunk-XKDVEQVD.cjs +23 -0
- package/dist/chunk-XKDVEQVD.cjs.map +1 -0
- package/dist/{chunk-MPQQC45L.cjs → chunk-ZJCHIJND.cjs} +3 -3
- package/dist/{chunk-MPQQC45L.cjs.map → chunk-ZJCHIJND.cjs.map} +1 -1
- package/dist/entries/apps.cjs +2 -2
- package/dist/entries/apps.d.cts +1 -1
- package/dist/entries/apps.d.ts +1 -1
- package/dist/entries/apps.js +1 -1
- package/dist/entries/cast-swap.cjs +2 -2
- package/dist/entries/cast-swap.d.cts +117 -143
- package/dist/entries/cast-swap.d.ts +117 -143
- package/dist/entries/cast-swap.js +1 -1
- package/dist/entries/characters.d.cts +1 -1
- package/dist/entries/characters.d.ts +1 -1
- package/dist/entries/client.cjs +21 -20
- package/dist/entries/client.d.cts +4 -1
- package/dist/entries/client.d.ts +4 -1
- package/dist/entries/client.js +16 -15
- package/dist/entries/core.cjs +5 -5
- package/dist/entries/core.js +1 -1
- package/dist/entries/creatures.d.cts +1 -1
- package/dist/entries/creatures.d.ts +1 -1
- package/dist/entries/credits.cjs +2 -2
- package/dist/entries/credits.d.cts +2 -2
- package/dist/entries/credits.d.ts +2 -2
- package/dist/entries/credits.js +1 -1
- package/dist/entries/edit.cjs +6 -6
- package/dist/entries/edit.d.cts +1 -1
- package/dist/entries/edit.d.ts +1 -1
- package/dist/entries/edit.js +1 -1
- package/dist/entries/jobs.cjs +2 -2
- package/dist/entries/jobs.d.cts +57 -8
- package/dist/entries/jobs.d.ts +57 -8
- package/dist/entries/jobs.js +1 -1
- package/dist/entries/locations.d.cts +1 -1
- package/dist/entries/locations.d.ts +1 -1
- package/dist/entries/media.cjs +2 -2
- package/dist/entries/media.d.cts +14 -3
- package/dist/entries/media.d.ts +14 -3
- package/dist/entries/media.js +1 -1
- package/dist/entries/nodes.cjs +2 -2
- package/dist/entries/nodes.d.cts +1 -1
- package/dist/entries/nodes.d.ts +1 -1
- package/dist/entries/nodes.js +1 -1
- package/dist/entries/objects.d.cts +1 -1
- package/dist/entries/objects.d.ts +1 -1
- package/dist/entries/scene3d.d.cts +2 -2
- package/dist/entries/scene3d.d.ts +2 -2
- package/dist/entries/sessions.cjs +2 -2
- package/dist/entries/sessions.d.cts +58 -8
- package/dist/entries/sessions.d.ts +58 -8
- package/dist/entries/sessions.js +1 -1
- package/dist/entries/templates.cjs +2 -2
- package/dist/entries/templates.d.cts +1 -1
- package/dist/entries/templates.d.ts +1 -1
- package/dist/entries/templates.js +1 -1
- package/dist/entries/trash.cjs +13 -0
- package/dist/entries/trash.cjs.map +1 -0
- package/dist/entries/trash.d.cts +71 -0
- package/dist/entries/trash.d.ts +71 -0
- package/dist/entries/trash.js +4 -0
- package/dist/entries/trash.js.map +1 -0
- package/dist/entries/trends.cjs +2 -2
- package/dist/entries/trends.d.cts +86 -28
- package/dist/entries/trends.d.ts +86 -28
- package/dist/entries/trends.js +1 -1
- package/dist/entries/tutorials.cjs +2 -2
- package/dist/entries/tutorials.d.cts +1 -1
- package/dist/entries/tutorials.d.ts +1 -1
- package/dist/entries/tutorials.js +1 -1
- package/dist/entries/workflows.cjs +2 -2
- package/dist/entries/workflows.d.cts +11 -4
- package/dist/entries/workflows.d.ts +11 -4
- package/dist/entries/workflows.js +1 -1
- package/dist/index.cjs +48 -42
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +18 -16
- package/dist/{nodes-B4ZEqx2V.d.ts → nodes-C9j0PFto.d.ts} +12 -2
- package/dist/{nodes-DzBGNOUV.d.cts → nodes-DGIefTze.d.cts} +12 -2
- package/package.json +8 -3
- package/dist/chunk-2VJOHJUZ.cjs.map +0 -1
- package/dist/chunk-34JMD6ZO.cjs.map +0 -1
- package/dist/chunk-3ZZWCHF5.cjs.map +0 -1
- package/dist/chunk-4UPVE662.js.map +0 -1
- package/dist/chunk-55ZX6TE3.cjs.map +0 -1
- package/dist/chunk-6MQ2LTJZ.js.map +0 -1
- package/dist/chunk-6PI3CI7P.js.map +0 -1
- package/dist/chunk-DQAYIVVS.js.map +0 -1
- package/dist/chunk-EK672FFM.cjs.map +0 -1
- package/dist/chunk-ETX3TLNB.cjs.map +0 -1
- package/dist/chunk-FQNCIP6K.js.map +0 -1
- package/dist/chunk-HKDIIFG2.js.map +0 -1
- package/dist/chunk-IGMWFEFB.js.map +0 -1
- package/dist/chunk-ILG5DHQQ.js.map +0 -1
- package/dist/chunk-OIYMTGYN.cjs.map +0 -1
- package/dist/chunk-PEMLIAPZ.cjs.map +0 -1
- package/dist/chunk-PQ7OKM3E.cjs.map +0 -1
- package/dist/chunk-QHXLMCBR.cjs.map +0 -1
- package/dist/chunk-Y6VDCZPB.js.map +0 -1
- package/dist/chunk-ZWPDWFN2.js.map +0 -1
package/dist/entries/nodes.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ export { GeminiOmniVoicePresetId, ImageAspectRatio, ImageEditProvider, ImageEdit
|
|
|
4
4
|
export { PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY, PromptAffixFields } from '@nodaro/shared/nodes';
|
|
5
5
|
export { SocialPlatform, SocialPost, SocialPostAuthor, SocialPostMedia, SocialPostMetrics, SocialSearchCount, SocialSearchMode, SocialSearchParams, SocialSearchPeriod, SocialSearchSort, SocialSearchVideoKind } from '@nodaro/shared/social';
|
|
6
6
|
export { GenerateMaskOutput, GenerateMaskRequest, VideoDepthColormap, VideoDepthModelSize, VideoDepthProvider, VideoDepthResolution } from '@nodaro/shared/media';
|
|
7
|
-
export { A as AssembleNarratedVideoParams, B as BatchJobOutcome, E as EditImageCommonParams, a as EditImageFromTaskParams, b as EditImageFromUrlParams, c as EditImageParams, G as GenerateImageBatchGroup, e as GenerateImageBatchOutput, f as GenerateImageBatchResult, g as GenerateImageParams, h as GenerateMaskJobOutput, i as GenerateMaskParams, k as GenerateVideoParams, l as GenerationSessionParams, I as ImageJobStarted, m as ImageToImageParams, J as JobOutputImage, N as NodeCategory, n as NodeCreditRate, o as NodeDescriptor, p as NodeInputField, q as NodeInputSchema, r as NodeJobOutput, s as NodeQuote, t as NodesResource, O as OutputType, Q as QuoteAdjustment, y as QuoteWarning, R as ReferenceCaptionParams, F as RunAndWaitOptions, H as RunManyResult, K as RunNodeAdjustment, L as RunNodeOptions, M as RunNodeResult, S as RunNodeWarning, _ as SocialSearchJobOutput, $ as SplitImageParams, a0 as SplitImageResult, a1 as SplitImageTile, a2 as StructuredReferenceParams, a3 as Subject, a4 as TextToSpeechParams, a5 as TextToVideoParams, a6 as VideoDepthParams, a7 as VideoToVideoParams, a8 as VideoUpscaleParams } from '../nodes-
|
|
7
|
+
export { A as AssembleNarratedVideoParams, B as BatchJobOutcome, E as EditImageCommonParams, a as EditImageFromTaskParams, b as EditImageFromUrlParams, c as EditImageParams, G as GenerateImageBatchGroup, e as GenerateImageBatchOutput, f as GenerateImageBatchResult, g as GenerateImageParams, h as GenerateMaskJobOutput, i as GenerateMaskParams, k as GenerateVideoParams, l as GenerationSessionParams, I as ImageJobStarted, m as ImageToImageParams, J as JobOutputImage, N as NodeCategory, n as NodeCreditRate, o as NodeDescriptor, p as NodeInputField, q as NodeInputSchema, r as NodeJobOutput, s as NodeQuote, t as NodesResource, O as OutputType, Q as QuoteAdjustment, y as QuoteWarning, R as ReferenceCaptionParams, F as RunAndWaitOptions, H as RunManyResult, K as RunNodeAdjustment, L as RunNodeOptions, M as RunNodeResult, S as RunNodeWarning, _ as SocialSearchJobOutput, $ as SplitImageParams, a0 as SplitImageResult, a1 as SplitImageTile, a2 as StructuredReferenceParams, a3 as Subject, a4 as TextToSpeechParams, a5 as TextToVideoParams, a6 as VideoDepthParams, a7 as VideoToVideoParams, a8 as VideoUpscaleParams } from '../nodes-DGIefTze.cjs';
|
|
8
8
|
export { TopazUpscaleFactor } from '@nodaro/shared/credits';
|
|
9
9
|
export { ImageToImageAttachColumn } from '@nodaro/shared/entities';
|
|
10
10
|
import '@nodaro/shared/scene3d';
|
package/dist/entries/nodes.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { GeminiOmniVoicePresetId, ImageAspectRatio, ImageEditProvider, ImageEdit
|
|
|
4
4
|
export { PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY, PromptAffixFields } from '@nodaro/shared/nodes';
|
|
5
5
|
export { SocialPlatform, SocialPost, SocialPostAuthor, SocialPostMedia, SocialPostMetrics, SocialSearchCount, SocialSearchMode, SocialSearchParams, SocialSearchPeriod, SocialSearchSort, SocialSearchVideoKind } from '@nodaro/shared/social';
|
|
6
6
|
export { GenerateMaskOutput, GenerateMaskRequest, VideoDepthColormap, VideoDepthModelSize, VideoDepthProvider, VideoDepthResolution } from '@nodaro/shared/media';
|
|
7
|
-
export { A as AssembleNarratedVideoParams, B as BatchJobOutcome, E as EditImageCommonParams, a as EditImageFromTaskParams, b as EditImageFromUrlParams, c as EditImageParams, G as GenerateImageBatchGroup, e as GenerateImageBatchOutput, f as GenerateImageBatchResult, g as GenerateImageParams, h as GenerateMaskJobOutput, i as GenerateMaskParams, k as GenerateVideoParams, l as GenerationSessionParams, I as ImageJobStarted, m as ImageToImageParams, J as JobOutputImage, N as NodeCategory, n as NodeCreditRate, o as NodeDescriptor, p as NodeInputField, q as NodeInputSchema, r as NodeJobOutput, s as NodeQuote, t as NodesResource, O as OutputType, Q as QuoteAdjustment, y as QuoteWarning, R as ReferenceCaptionParams, F as RunAndWaitOptions, H as RunManyResult, K as RunNodeAdjustment, L as RunNodeOptions, M as RunNodeResult, S as RunNodeWarning, _ as SocialSearchJobOutput, $ as SplitImageParams, a0 as SplitImageResult, a1 as SplitImageTile, a2 as StructuredReferenceParams, a3 as Subject, a4 as TextToSpeechParams, a5 as TextToVideoParams, a6 as VideoDepthParams, a7 as VideoToVideoParams, a8 as VideoUpscaleParams } from '../nodes-
|
|
7
|
+
export { A as AssembleNarratedVideoParams, B as BatchJobOutcome, E as EditImageCommonParams, a as EditImageFromTaskParams, b as EditImageFromUrlParams, c as EditImageParams, G as GenerateImageBatchGroup, e as GenerateImageBatchOutput, f as GenerateImageBatchResult, g as GenerateImageParams, h as GenerateMaskJobOutput, i as GenerateMaskParams, k as GenerateVideoParams, l as GenerationSessionParams, I as ImageJobStarted, m as ImageToImageParams, J as JobOutputImage, N as NodeCategory, n as NodeCreditRate, o as NodeDescriptor, p as NodeInputField, q as NodeInputSchema, r as NodeJobOutput, s as NodeQuote, t as NodesResource, O as OutputType, Q as QuoteAdjustment, y as QuoteWarning, R as ReferenceCaptionParams, F as RunAndWaitOptions, H as RunManyResult, K as RunNodeAdjustment, L as RunNodeOptions, M as RunNodeResult, S as RunNodeWarning, _ as SocialSearchJobOutput, $ as SplitImageParams, a0 as SplitImageResult, a1 as SplitImageTile, a2 as StructuredReferenceParams, a3 as Subject, a4 as TextToSpeechParams, a5 as TextToVideoParams, a6 as VideoDepthParams, a7 as VideoToVideoParams, a8 as VideoUpscaleParams } from '../nodes-C9j0PFto.js';
|
|
8
8
|
export { TopazUpscaleFactor } from '@nodaro/shared/credits';
|
|
9
9
|
export { ImageToImageAttachColumn } from '@nodaro/shared/entities';
|
|
10
10
|
import '@nodaro/shared/scene3d';
|
package/dist/entries/nodes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY } from '../chunk-ZYPH2FPT.js';
|
|
2
|
-
export { NodesResource } from '../chunk-
|
|
2
|
+
export { NodesResource } from '../chunk-GW76IRQD.js';
|
|
3
3
|
import '../chunk-L6T44A3G.js';
|
|
4
4
|
//# sourceMappingURL=nodes.js.map
|
|
5
5
|
//# sourceMappingURL=nodes.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ObjectAssetType, ObjectAttachColumn, ObjectAspectRatio } from '@nodaro/shared/entities';
|
|
2
2
|
export { OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ATTACH_COLUMNS, ObjectAspectRatio, ObjectAssetType, ObjectAttachColumn } from '@nodaro/shared/entities';
|
|
3
3
|
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
|
|
4
|
-
import { l as GenerationSessionParams } from '../nodes-
|
|
4
|
+
import { l as GenerationSessionParams } from '../nodes-DGIefTze.cjs';
|
|
5
5
|
import '@nodaro/shared/apps';
|
|
6
6
|
import '@nodaro/shared/organizations';
|
|
7
7
|
import '@nodaro/shared/types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ObjectAssetType, ObjectAttachColumn, ObjectAspectRatio } from '@nodaro/shared/entities';
|
|
2
2
|
export { OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ATTACH_COLUMNS, ObjectAspectRatio, ObjectAssetType, ObjectAttachColumn } from '@nodaro/shared/entities';
|
|
3
3
|
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
|
|
4
|
-
import { l as GenerationSessionParams } from '../nodes-
|
|
4
|
+
import { l as GenerationSessionParams } from '../nodes-C9j0PFto.js';
|
|
5
5
|
import '@nodaro/shared/apps';
|
|
6
6
|
import '@nodaro/shared/organizations';
|
|
7
7
|
import '@nodaro/shared/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as NodesResource, V as Scene3DCapabilities, W as Scene3DDelivery, X as Scene3DDeliveryAsset, C as RetainedScene3DEditParams, D as RetainedScene3DEditResult, j as GenerateScene3DParams, M as RunNodeResult, F as RunAndWaitOptions, Z as Scene3DJobOutput, d as EditScene3DParams, u as Pro3DRenderParams, v as Pro3DRenderQuote, x as Pro3DRenderRunParams, w as Pro3DRenderRunOptions, P as Pro3DRenderJobOutput, z as RenderScene3DParams, r as NodeJobOutput } from '../nodes-
|
|
2
|
-
export { T as SCENE3D_DELIVERY_ASSET_USAGE, U as Scene3DAuthoringEngine, Y as Scene3DDeliveryAssetKind } from '../nodes-
|
|
1
|
+
import { t as NodesResource, V as Scene3DCapabilities, W as Scene3DDelivery, X as Scene3DDeliveryAsset, C as RetainedScene3DEditParams, D as RetainedScene3DEditResult, j as GenerateScene3DParams, M as RunNodeResult, F as RunAndWaitOptions, Z as Scene3DJobOutput, d as EditScene3DParams, u as Pro3DRenderParams, v as Pro3DRenderQuote, x as Pro3DRenderRunParams, w as Pro3DRenderRunOptions, P as Pro3DRenderJobOutput, z as RenderScene3DParams, r as NodeJobOutput } from '../nodes-DGIefTze.cjs';
|
|
2
|
+
export { T as SCENE3D_DELIVERY_ASSET_USAGE, U as Scene3DAuthoringEngine, Y as Scene3DDeliveryAssetKind } from '../nodes-DGIefTze.cjs';
|
|
3
3
|
import { Scene3DAssetRef } from '@nodaro/shared/scene3d';
|
|
4
4
|
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
|
|
5
5
|
import '@nodaro/shared/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as NodesResource, V as Scene3DCapabilities, W as Scene3DDelivery, X as Scene3DDeliveryAsset, C as RetainedScene3DEditParams, D as RetainedScene3DEditResult, j as GenerateScene3DParams, M as RunNodeResult, F as RunAndWaitOptions, Z as Scene3DJobOutput, d as EditScene3DParams, u as Pro3DRenderParams, v as Pro3DRenderQuote, x as Pro3DRenderRunParams, w as Pro3DRenderRunOptions, P as Pro3DRenderJobOutput, z as RenderScene3DParams, r as NodeJobOutput } from '../nodes-
|
|
2
|
-
export { T as SCENE3D_DELIVERY_ASSET_USAGE, U as Scene3DAuthoringEngine, Y as Scene3DDeliveryAssetKind } from '../nodes-
|
|
1
|
+
import { t as NodesResource, V as Scene3DCapabilities, W as Scene3DDelivery, X as Scene3DDeliveryAsset, C as RetainedScene3DEditParams, D as RetainedScene3DEditResult, j as GenerateScene3DParams, M as RunNodeResult, F as RunAndWaitOptions, Z as Scene3DJobOutput, d as EditScene3DParams, u as Pro3DRenderParams, v as Pro3DRenderQuote, x as Pro3DRenderRunParams, w as Pro3DRenderRunOptions, P as Pro3DRenderJobOutput, z as RenderScene3DParams, r as NodeJobOutput } from '../nodes-C9j0PFto.js';
|
|
2
|
+
export { T as SCENE3D_DELIVERY_ASSET_USAGE, U as Scene3DAuthoringEngine, Y as Scene3DDeliveryAssetKind } from '../nodes-C9j0PFto.js';
|
|
3
3
|
import { Scene3DAssetRef } from '@nodaro/shared/scene3d';
|
|
4
4
|
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
|
|
5
5
|
import '@nodaro/shared/types';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-VYK6MBL4.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkWMT7HEBZ_cjs = require('../chunk-WMT7HEBZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "SessionsResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkWMT7HEBZ_cjs.SessionsResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=sessions.cjs.map
|
|
13
13
|
//# sourceMappingURL=sessions.cjs.map
|
|
@@ -6,8 +6,8 @@ import '@nodaro/shared/organizations';
|
|
|
6
6
|
/**
|
|
7
7
|
* A generation session: one run of work in a creation tool (Create Image,
|
|
8
8
|
* Video, Music), optionally inside a project. Its project is fixed at
|
|
9
|
-
* creation — to get an item into another project,
|
|
10
|
-
* there.
|
|
9
|
+
* creation — to get an item into another project, move it into a session
|
|
10
|
+
* there ({@link SessionsResource.moveItems}) or import a copy of the link.
|
|
11
11
|
*/
|
|
12
12
|
interface GenerationSession {
|
|
13
13
|
id: string;
|
|
@@ -23,7 +23,12 @@ interface GenerationSession {
|
|
|
23
23
|
archivedAt: string | null;
|
|
24
24
|
/** The item picked as the session's cover (`update(id, { coverJobId })`); `null` = automatic. */
|
|
25
25
|
coverJobId: string | null;
|
|
26
|
+
/** Live items: not removed, and their job not deleted. */
|
|
26
27
|
itemCount: number;
|
|
28
|
+
/** Items removed from the session — its part of the Trash
|
|
29
|
+
* (`items(id, { removed: true })`, `client.trash.list()`). Absent from an
|
|
30
|
+
* older server. */
|
|
31
|
+
removedCount?: number;
|
|
27
32
|
/** Up to four image links: the cover's image first when one is set, then the
|
|
28
33
|
* newest completed items. */
|
|
29
34
|
previewUrls: string[];
|
|
@@ -44,7 +49,8 @@ interface UpdateSessionInput {
|
|
|
44
49
|
coverJobId?: string | null;
|
|
45
50
|
}
|
|
46
51
|
interface ListSessionsParams {
|
|
47
|
-
|
|
52
|
+
/** A project's id, or `"none"` for the sessions with no project. */
|
|
53
|
+
projectId?: string | "none";
|
|
48
54
|
tool?: string;
|
|
49
55
|
/** Archived sessions are left out unless this is true. */
|
|
50
56
|
includeArchived?: boolean;
|
|
@@ -57,6 +63,9 @@ interface ListSessionsParams {
|
|
|
57
63
|
interface SessionItem {
|
|
58
64
|
jobId: string;
|
|
59
65
|
addedAt: string;
|
|
66
|
+
/** When the item was removed from the session (it is in the Trash); `null`
|
|
67
|
+
* for a live item. Absent from an older server. */
|
|
68
|
+
removedAt?: string | null;
|
|
60
69
|
/** True when imported from elsewhere rather than born in this session. */
|
|
61
70
|
imported: boolean;
|
|
62
71
|
importedFrom: {
|
|
@@ -66,9 +75,18 @@ interface SessionItem {
|
|
|
66
75
|
job: Job;
|
|
67
76
|
}
|
|
68
77
|
interface ListSessionItemsParams {
|
|
78
|
+
/** `true`: the items removed from the session (its Trash), newest removal first. */
|
|
79
|
+
removed?: boolean;
|
|
69
80
|
limit?: number;
|
|
70
81
|
cursor?: string;
|
|
71
82
|
}
|
|
83
|
+
/** {@link SessionsResource.moveItems}' body. */
|
|
84
|
+
interface MoveSessionItemsInput {
|
|
85
|
+
/** Items of `fromSessionId` to move, up to 100. */
|
|
86
|
+
jobIds: string[];
|
|
87
|
+
/** The session they are in now. It keeps them as removed items, so the move can be undone from its Trash. */
|
|
88
|
+
fromSessionId: string;
|
|
89
|
+
}
|
|
72
90
|
interface SessionPage<T> {
|
|
73
91
|
data: T[];
|
|
74
92
|
/** Pass back as `cursor` for the next page; `null` on the last one. */
|
|
@@ -98,12 +116,18 @@ declare class SessionsResource {
|
|
|
98
116
|
delete(id: string): Promise<{
|
|
99
117
|
success: true;
|
|
100
118
|
}>;
|
|
101
|
-
/**
|
|
119
|
+
/**
|
|
120
|
+
* The session's live items, born-in and imported, newest first — or, with
|
|
121
|
+
* `{ removed: true }`, the items removed from it (its part of the Trash),
|
|
122
|
+
* newest removal first. An item whose job was deleted is in neither: it is in
|
|
123
|
+
* `client.trash.list()` as the deleted job.
|
|
124
|
+
*/
|
|
102
125
|
items(id: string, params?: ListSessionItemsParams): Promise<SessionPage<SessionItem>>;
|
|
103
126
|
/**
|
|
104
127
|
* Import some of your own jobs into a session — a link, not a copy (up to 100
|
|
105
128
|
* a call). All-or-nothing: if any id is not one of your jobs, nothing is
|
|
106
|
-
* imported and the call fails with 404. Items already there are left as they
|
|
129
|
+
* imported and the call fails with 404. Items already there are left as they
|
|
130
|
+
* are; an item removed from the session comes back where it was.
|
|
107
131
|
*/
|
|
108
132
|
importItems(id: string, input: {
|
|
109
133
|
jobIds: string[];
|
|
@@ -113,10 +137,36 @@ declare class SessionsResource {
|
|
|
113
137
|
requested: number;
|
|
114
138
|
};
|
|
115
139
|
}>;
|
|
116
|
-
/**
|
|
117
|
-
|
|
140
|
+
/**
|
|
141
|
+
* Remove one item from a session: it goes to the session's Trash until
|
|
142
|
+
* {@link restoreItem} brings it back or `{ forever: true }` deletes it for good
|
|
143
|
+
* — no automatic cleanup. Only the link moves: the job, and every other
|
|
144
|
+
* session holding it, stay; an item in no session shows in General
|
|
145
|
+
* (`client.jobs.list({ inSession: false })`). `forever` on an item that is
|
|
146
|
+
* not removed fails with a 409 `NodaroError` whose `code` is `"not_in_trash"`.
|
|
147
|
+
*/
|
|
148
|
+
removeItem(id: string, jobId: string, options?: {
|
|
149
|
+
forever?: boolean;
|
|
150
|
+
}): Promise<{
|
|
151
|
+
success: true;
|
|
152
|
+
}>;
|
|
153
|
+
/** Bring a removed item back into the session, where it was. An item that is not removed succeeds too. */
|
|
154
|
+
restoreItem(id: string, jobId: string): Promise<{
|
|
118
155
|
success: true;
|
|
119
156
|
}>;
|
|
157
|
+
/**
|
|
158
|
+
* Move items of another of your sessions into `targetId`, in one
|
|
159
|
+
* transaction: the target gets them (born-in stays born-in, else imported
|
|
160
|
+
* from the source), the source keeps them as removed items — so the move is
|
|
161
|
+
* undone with `restoreItem(fromSessionId, jobId)`. A session in another
|
|
162
|
+
* project is how an item moves to another project. All-or-nothing: if any id
|
|
163
|
+
* is not a live item of `fromSessionId`, nothing moves (404).
|
|
164
|
+
*/
|
|
165
|
+
moveItems(targetId: string, input: MoveSessionItemsInput): Promise<{
|
|
166
|
+
data: {
|
|
167
|
+
moved: number;
|
|
168
|
+
};
|
|
169
|
+
}>;
|
|
120
170
|
}
|
|
121
171
|
|
|
122
|
-
export { type CreateSessionInput, type GenerationSession, type ListSessionItemsParams, type ListSessionsParams, type SessionItem, type SessionPage, SessionsResource, type UpdateSessionInput };
|
|
172
|
+
export { type CreateSessionInput, type GenerationSession, type ListSessionItemsParams, type ListSessionsParams, type MoveSessionItemsInput, type SessionItem, type SessionPage, SessionsResource, type UpdateSessionInput };
|
|
@@ -6,8 +6,8 @@ import '@nodaro/shared/organizations';
|
|
|
6
6
|
/**
|
|
7
7
|
* A generation session: one run of work in a creation tool (Create Image,
|
|
8
8
|
* Video, Music), optionally inside a project. Its project is fixed at
|
|
9
|
-
* creation — to get an item into another project,
|
|
10
|
-
* there.
|
|
9
|
+
* creation — to get an item into another project, move it into a session
|
|
10
|
+
* there ({@link SessionsResource.moveItems}) or import a copy of the link.
|
|
11
11
|
*/
|
|
12
12
|
interface GenerationSession {
|
|
13
13
|
id: string;
|
|
@@ -23,7 +23,12 @@ interface GenerationSession {
|
|
|
23
23
|
archivedAt: string | null;
|
|
24
24
|
/** The item picked as the session's cover (`update(id, { coverJobId })`); `null` = automatic. */
|
|
25
25
|
coverJobId: string | null;
|
|
26
|
+
/** Live items: not removed, and their job not deleted. */
|
|
26
27
|
itemCount: number;
|
|
28
|
+
/** Items removed from the session — its part of the Trash
|
|
29
|
+
* (`items(id, { removed: true })`, `client.trash.list()`). Absent from an
|
|
30
|
+
* older server. */
|
|
31
|
+
removedCount?: number;
|
|
27
32
|
/** Up to four image links: the cover's image first when one is set, then the
|
|
28
33
|
* newest completed items. */
|
|
29
34
|
previewUrls: string[];
|
|
@@ -44,7 +49,8 @@ interface UpdateSessionInput {
|
|
|
44
49
|
coverJobId?: string | null;
|
|
45
50
|
}
|
|
46
51
|
interface ListSessionsParams {
|
|
47
|
-
|
|
52
|
+
/** A project's id, or `"none"` for the sessions with no project. */
|
|
53
|
+
projectId?: string | "none";
|
|
48
54
|
tool?: string;
|
|
49
55
|
/** Archived sessions are left out unless this is true. */
|
|
50
56
|
includeArchived?: boolean;
|
|
@@ -57,6 +63,9 @@ interface ListSessionsParams {
|
|
|
57
63
|
interface SessionItem {
|
|
58
64
|
jobId: string;
|
|
59
65
|
addedAt: string;
|
|
66
|
+
/** When the item was removed from the session (it is in the Trash); `null`
|
|
67
|
+
* for a live item. Absent from an older server. */
|
|
68
|
+
removedAt?: string | null;
|
|
60
69
|
/** True when imported from elsewhere rather than born in this session. */
|
|
61
70
|
imported: boolean;
|
|
62
71
|
importedFrom: {
|
|
@@ -66,9 +75,18 @@ interface SessionItem {
|
|
|
66
75
|
job: Job;
|
|
67
76
|
}
|
|
68
77
|
interface ListSessionItemsParams {
|
|
78
|
+
/** `true`: the items removed from the session (its Trash), newest removal first. */
|
|
79
|
+
removed?: boolean;
|
|
69
80
|
limit?: number;
|
|
70
81
|
cursor?: string;
|
|
71
82
|
}
|
|
83
|
+
/** {@link SessionsResource.moveItems}' body. */
|
|
84
|
+
interface MoveSessionItemsInput {
|
|
85
|
+
/** Items of `fromSessionId` to move, up to 100. */
|
|
86
|
+
jobIds: string[];
|
|
87
|
+
/** The session they are in now. It keeps them as removed items, so the move can be undone from its Trash. */
|
|
88
|
+
fromSessionId: string;
|
|
89
|
+
}
|
|
72
90
|
interface SessionPage<T> {
|
|
73
91
|
data: T[];
|
|
74
92
|
/** Pass back as `cursor` for the next page; `null` on the last one. */
|
|
@@ -98,12 +116,18 @@ declare class SessionsResource {
|
|
|
98
116
|
delete(id: string): Promise<{
|
|
99
117
|
success: true;
|
|
100
118
|
}>;
|
|
101
|
-
/**
|
|
119
|
+
/**
|
|
120
|
+
* The session's live items, born-in and imported, newest first — or, with
|
|
121
|
+
* `{ removed: true }`, the items removed from it (its part of the Trash),
|
|
122
|
+
* newest removal first. An item whose job was deleted is in neither: it is in
|
|
123
|
+
* `client.trash.list()` as the deleted job.
|
|
124
|
+
*/
|
|
102
125
|
items(id: string, params?: ListSessionItemsParams): Promise<SessionPage<SessionItem>>;
|
|
103
126
|
/**
|
|
104
127
|
* Import some of your own jobs into a session — a link, not a copy (up to 100
|
|
105
128
|
* a call). All-or-nothing: if any id is not one of your jobs, nothing is
|
|
106
|
-
* imported and the call fails with 404. Items already there are left as they
|
|
129
|
+
* imported and the call fails with 404. Items already there are left as they
|
|
130
|
+
* are; an item removed from the session comes back where it was.
|
|
107
131
|
*/
|
|
108
132
|
importItems(id: string, input: {
|
|
109
133
|
jobIds: string[];
|
|
@@ -113,10 +137,36 @@ declare class SessionsResource {
|
|
|
113
137
|
requested: number;
|
|
114
138
|
};
|
|
115
139
|
}>;
|
|
116
|
-
/**
|
|
117
|
-
|
|
140
|
+
/**
|
|
141
|
+
* Remove one item from a session: it goes to the session's Trash until
|
|
142
|
+
* {@link restoreItem} brings it back or `{ forever: true }` deletes it for good
|
|
143
|
+
* — no automatic cleanup. Only the link moves: the job, and every other
|
|
144
|
+
* session holding it, stay; an item in no session shows in General
|
|
145
|
+
* (`client.jobs.list({ inSession: false })`). `forever` on an item that is
|
|
146
|
+
* not removed fails with a 409 `NodaroError` whose `code` is `"not_in_trash"`.
|
|
147
|
+
*/
|
|
148
|
+
removeItem(id: string, jobId: string, options?: {
|
|
149
|
+
forever?: boolean;
|
|
150
|
+
}): Promise<{
|
|
151
|
+
success: true;
|
|
152
|
+
}>;
|
|
153
|
+
/** Bring a removed item back into the session, where it was. An item that is not removed succeeds too. */
|
|
154
|
+
restoreItem(id: string, jobId: string): Promise<{
|
|
118
155
|
success: true;
|
|
119
156
|
}>;
|
|
157
|
+
/**
|
|
158
|
+
* Move items of another of your sessions into `targetId`, in one
|
|
159
|
+
* transaction: the target gets them (born-in stays born-in, else imported
|
|
160
|
+
* from the source), the source keeps them as removed items — so the move is
|
|
161
|
+
* undone with `restoreItem(fromSessionId, jobId)`. A session in another
|
|
162
|
+
* project is how an item moves to another project. All-or-nothing: if any id
|
|
163
|
+
* is not a live item of `fromSessionId`, nothing moves (404).
|
|
164
|
+
*/
|
|
165
|
+
moveItems(targetId: string, input: MoveSessionItemsInput): Promise<{
|
|
166
|
+
data: {
|
|
167
|
+
moved: number;
|
|
168
|
+
};
|
|
169
|
+
}>;
|
|
120
170
|
}
|
|
121
171
|
|
|
122
|
-
export { type CreateSessionInput, type GenerationSession, type ListSessionItemsParams, type ListSessionsParams, type SessionItem, type SessionPage, SessionsResource, type UpdateSessionInput };
|
|
172
|
+
export { type CreateSessionInput, type GenerationSession, type ListSessionItemsParams, type ListSessionsParams, type MoveSessionItemsInput, type SessionItem, type SessionPage, SessionsResource, type UpdateSessionInput };
|
package/dist/entries/sessions.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-37YCKZX4.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkUIBYZNDR_cjs = require('../chunk-UIBYZNDR.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "TemplatesResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkUIBYZNDR_cjs.TemplatesResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=templates.cjs.map
|
|
13
13
|
//# sourceMappingURL=templates.cjs.map
|
|
@@ -19,7 +19,7 @@ interface TemplateBrowseCard {
|
|
|
19
19
|
/** The listed price; when `estimatedPerMinuteCredits` is above 0, its fixed part. */
|
|
20
20
|
estimatedCredits: number;
|
|
21
21
|
/** The listed price holds a metered LLM call's ESTIMATE (its model's typical
|
|
22
|
-
* call, charged its actual usage per token): show it
|
|
22
|
+
* call, charged its actual usage per token): show it `≈N`. Absent for a
|
|
23
23
|
* fixed price, and on a deployment running the tier-pricing rollback. */
|
|
24
24
|
estimatedCreditsIsEstimate?: true;
|
|
25
25
|
/**
|
|
@@ -19,7 +19,7 @@ interface TemplateBrowseCard {
|
|
|
19
19
|
/** The listed price; when `estimatedPerMinuteCredits` is above 0, its fixed part. */
|
|
20
20
|
estimatedCredits: number;
|
|
21
21
|
/** The listed price holds a metered LLM call's ESTIMATE (its model's typical
|
|
22
|
-
* call, charged its actual usage per token): show it
|
|
22
|
+
* call, charged its actual usage per token): show it `≈N`. Absent for a
|
|
23
23
|
* fixed price, and on a deployment running the tier-pricing rollback. */
|
|
24
24
|
estimatedCreditsIsEstimate?: true;
|
|
25
25
|
/**
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../chunk-UANHMQ3A.cjs');
|
|
4
|
+
var chunkXKDVEQVD_cjs = require('../chunk-XKDVEQVD.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "TrashResource", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkXKDVEQVD_cjs.TrashResource; }
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=trash.cjs.map
|
|
13
|
+
//# sourceMappingURL=trash.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"trash.cjs"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
|
|
2
|
+
import { Job } from './jobs.cjs';
|
|
3
|
+
import '@nodaro/shared/apps';
|
|
4
|
+
import '@nodaro/shared/organizations';
|
|
5
|
+
|
|
6
|
+
/** The session a removed item was removed from. */
|
|
7
|
+
interface TrashSession {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string | null;
|
|
10
|
+
projectId: string | null;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* One entry of the Trash: an item removed from a session, or a deleted job.
|
|
14
|
+
* Narrow on `kind`.
|
|
15
|
+
*
|
|
16
|
+
* - `removed`: kept until restored (`client.sessions.restoreItem(session.id, job.id)`)
|
|
17
|
+
* or deleted for good (`client.sessions.removeItem(session.id, job.id, { forever: true })`).
|
|
18
|
+
* - `deleted`: kept until `purgeAt` (30 days after `deletedAt`), then deleted for
|
|
19
|
+
* good (a copy saved to the Library stays); restore with `client.jobs.restore(job.id)`, or delete
|
|
20
|
+
* now with `client.jobs.delete(job.id, { forever: true })`.
|
|
21
|
+
*
|
|
22
|
+
* A removed item whose job was also deleted is listed once, as the deleted job.
|
|
23
|
+
*/
|
|
24
|
+
type TrashEntry = {
|
|
25
|
+
kind: "removed";
|
|
26
|
+
removedAt: string;
|
|
27
|
+
session: TrashSession;
|
|
28
|
+
job: Job;
|
|
29
|
+
} | {
|
|
30
|
+
kind: "deleted";
|
|
31
|
+
deletedAt: string;
|
|
32
|
+
purgeAt: string;
|
|
33
|
+
job: Job;
|
|
34
|
+
};
|
|
35
|
+
interface ListTrashParams {
|
|
36
|
+
/**
|
|
37
|
+
* A project's id: its sessions' removed items, and deleted jobs a session of
|
|
38
|
+
* it held. `"none"`: the sessions with no project, and General.
|
|
39
|
+
*/
|
|
40
|
+
projectId?: string | "none";
|
|
41
|
+
/**
|
|
42
|
+
* A creation tool (e.g. `"create-image"`): what a session of that tool holds
|
|
43
|
+
* or held. A job no session ever held has no tool and is left out — filter by
|
|
44
|
+
* `type` alone to include it.
|
|
45
|
+
*/
|
|
46
|
+
tool?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The job's `input_data.type` (`"generate-image"`, …), like `client.jobs.list`.
|
|
49
|
+
* One value or several (up to 20). Every filter combines with AND.
|
|
50
|
+
*/
|
|
51
|
+
type?: string | readonly string[];
|
|
52
|
+
/** Page size, 1–100 (server default 50). */
|
|
53
|
+
limit?: number;
|
|
54
|
+
/** The previous page's `next`. */
|
|
55
|
+
cursor?: string;
|
|
56
|
+
}
|
|
57
|
+
interface TrashPage {
|
|
58
|
+
/** A page may hold fewer than `limit` entries and still carry a `next`; page on `next`. */
|
|
59
|
+
data: TrashEntry[];
|
|
60
|
+
/** Pass back as `cursor` for the next page; `null` on the last one. */
|
|
61
|
+
next: string | null;
|
|
62
|
+
}
|
|
63
|
+
/** Your Trash (`GET /v1/trash`): one entry beside General in a creation tool's sessions list. */
|
|
64
|
+
declare class TrashResource {
|
|
65
|
+
private client;
|
|
66
|
+
constructor(client: NodaroClientCore);
|
|
67
|
+
/** One newest-first page of the Trash, on your side of the workspace line. */
|
|
68
|
+
list(params?: ListTrashParams): Promise<TrashPage>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export { type ListTrashParams, type TrashEntry, type TrashPage, TrashResource, type TrashSession };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
|
|
2
|
+
import { Job } from './jobs.js';
|
|
3
|
+
import '@nodaro/shared/apps';
|
|
4
|
+
import '@nodaro/shared/organizations';
|
|
5
|
+
|
|
6
|
+
/** The session a removed item was removed from. */
|
|
7
|
+
interface TrashSession {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string | null;
|
|
10
|
+
projectId: string | null;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* One entry of the Trash: an item removed from a session, or a deleted job.
|
|
14
|
+
* Narrow on `kind`.
|
|
15
|
+
*
|
|
16
|
+
* - `removed`: kept until restored (`client.sessions.restoreItem(session.id, job.id)`)
|
|
17
|
+
* or deleted for good (`client.sessions.removeItem(session.id, job.id, { forever: true })`).
|
|
18
|
+
* - `deleted`: kept until `purgeAt` (30 days after `deletedAt`), then deleted for
|
|
19
|
+
* good (a copy saved to the Library stays); restore with `client.jobs.restore(job.id)`, or delete
|
|
20
|
+
* now with `client.jobs.delete(job.id, { forever: true })`.
|
|
21
|
+
*
|
|
22
|
+
* A removed item whose job was also deleted is listed once, as the deleted job.
|
|
23
|
+
*/
|
|
24
|
+
type TrashEntry = {
|
|
25
|
+
kind: "removed";
|
|
26
|
+
removedAt: string;
|
|
27
|
+
session: TrashSession;
|
|
28
|
+
job: Job;
|
|
29
|
+
} | {
|
|
30
|
+
kind: "deleted";
|
|
31
|
+
deletedAt: string;
|
|
32
|
+
purgeAt: string;
|
|
33
|
+
job: Job;
|
|
34
|
+
};
|
|
35
|
+
interface ListTrashParams {
|
|
36
|
+
/**
|
|
37
|
+
* A project's id: its sessions' removed items, and deleted jobs a session of
|
|
38
|
+
* it held. `"none"`: the sessions with no project, and General.
|
|
39
|
+
*/
|
|
40
|
+
projectId?: string | "none";
|
|
41
|
+
/**
|
|
42
|
+
* A creation tool (e.g. `"create-image"`): what a session of that tool holds
|
|
43
|
+
* or held. A job no session ever held has no tool and is left out — filter by
|
|
44
|
+
* `type` alone to include it.
|
|
45
|
+
*/
|
|
46
|
+
tool?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The job's `input_data.type` (`"generate-image"`, …), like `client.jobs.list`.
|
|
49
|
+
* One value or several (up to 20). Every filter combines with AND.
|
|
50
|
+
*/
|
|
51
|
+
type?: string | readonly string[];
|
|
52
|
+
/** Page size, 1–100 (server default 50). */
|
|
53
|
+
limit?: number;
|
|
54
|
+
/** The previous page's `next`. */
|
|
55
|
+
cursor?: string;
|
|
56
|
+
}
|
|
57
|
+
interface TrashPage {
|
|
58
|
+
/** A page may hold fewer than `limit` entries and still carry a `next`; page on `next`. */
|
|
59
|
+
data: TrashEntry[];
|
|
60
|
+
/** Pass back as `cursor` for the next page; `null` on the last one. */
|
|
61
|
+
next: string | null;
|
|
62
|
+
}
|
|
63
|
+
/** Your Trash (`GET /v1/trash`): one entry beside General in a creation tool's sessions list. */
|
|
64
|
+
declare class TrashResource {
|
|
65
|
+
private client;
|
|
66
|
+
constructor(client: NodaroClientCore);
|
|
67
|
+
/** One newest-first page of the Trash, on your side of the workspace line. */
|
|
68
|
+
list(params?: ListTrashParams): Promise<TrashPage>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export { type ListTrashParams, type TrashEntry, type TrashPage, TrashResource, type TrashSession };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"trash.js"}
|
package/dist/entries/trends.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-PG2GBS3K.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkDIF7A5OH_cjs = require('../chunk-DIF7A5OH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "TrendsResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkDIF7A5OH_cjs.TrendsResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=trends.cjs.map
|
|
13
13
|
//# sourceMappingURL=trends.cjs.map
|