@civitai/orchestration-client 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,17 +16,27 @@ const client = createCivitaiClient({ auth: process.env.CIVITAI_API_TOKEN });
16
16
 
17
17
  This package was previously published as `@civitai/client`. Publishing to that name has been
18
18
  blocked by a registry-side failure since 2026-09-02 — every publish returns a 503 while every
19
- other operation on the package succeeds — so development continues here. The API is unchanged;
20
- only the package name differs.
19
+ other operation on the package succeeds — so development continues here.
21
20
 
22
- To migrate, swap the dependency and update your imports:
21
+ Releases continue under `@civitai/orchestration-client`; the old `@civitai/client` name is frozen
22
+ and will not be updated. Which migration you need depends on the version you have installed —
23
+ check with `npm ls @civitai/client`:
24
+
25
+ | Installed `@civitai/client` | How you got it | API | Migration |
26
+ | --- | --- | --- | --- |
27
+ | `0.2.0-beta.*` | `@civitai/client@beta` or a pinned beta | `createCivitaiClient` factory | Package name only |
28
+ | `0.1.x` | `npm install @civitai/client` (the `latest` tag) | `CivitaiClient` class | Package name **and** API |
29
+
30
+ **From the `0.2.0` betas** the API is unchanged; swap the dependency and update your imports:
23
31
 
24
32
  ```diff
25
33
  -import { createCivitaiClient } from '@civitai/client';
26
34
  +import { createCivitaiClient } from '@civitai/orchestration-client';
27
35
  ```
28
36
 
29
- `@civitai/client` remains installable at `0.2.0-beta.98` but will not receive further releases.
37
+ **From `0.1.x`** (what an unversioned `npm install @civitai/client` still resolves to), changing
38
+ only the package name is not enough: the `CivitaiClient` class does not exist in this package.
39
+ Replace it with the `createCivitaiClient` factory shown at the top of this README.
30
40
 
31
41
  ## Releasing
32
42
 
@@ -6,5 +6,5 @@ type ClientConfig = {
6
6
  };
7
7
  export declare function createCivitaiClient(
8
8
  config: ClientConfig
9
- ): import('../generated/client').Client;
9
+ ): import('../generated/client/types.gen.js').Client;
10
10
  export {};
@@ -1,4 +1,4 @@
1
- import { createClient, createConfig } from '../generated/client';
1
+ import { createClient, createConfig } from '../generated/client/index.js';
2
2
  export function createCivitaiClient(config) {
3
3
  const client = createClient(createConfig({
4
4
  baseUrl: config.baseUrl
@@ -1,2 +1,2 @@
1
- import type { Client, Config } from './types.gen';
1
+ import type { Client, Config } from './types.gen.js';
2
2
  export declare const createClient: (config?: Config) => Client;
@@ -1,7 +1,7 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { createSseClient } from '../core/serverSentEvents.gen';
3
- import { getValidRequestBody } from '../core/utils.gen';
4
- import { buildUrl, createConfig, createInterceptors, getParseAs, mergeConfigs, mergeHeaders, setAuthParams, } from './utils.gen';
2
+ import { createSseClient } from '../core/serverSentEvents.gen.js';
3
+ import { getValidRequestBody } from '../core/utils.gen.js';
4
+ import { buildUrl, createConfig, createInterceptors, getParseAs, mergeConfigs, mergeHeaders, setAuthParams, } from './utils.gen.js';
5
5
  export const createClient = (config = {}) => {
6
6
  let _config = mergeConfigs(createConfig(), config);
7
7
  const getConfig = () => ({ ..._config });
@@ -1,13 +1,13 @@
1
- export type { Auth } from '../core/auth.gen';
2
- export type { QuerySerializerOptions } from '../core/bodySerializer.gen';
1
+ export type { Auth } from '../core/auth.gen.js';
2
+ export type { QuerySerializerOptions } from '../core/bodySerializer.gen.js';
3
3
  export {
4
4
  formDataBodySerializer,
5
5
  jsonBodySerializer,
6
6
  urlSearchParamsBodySerializer,
7
- } from '../core/bodySerializer.gen';
8
- export { buildClientParams } from '../core/params.gen';
9
- export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen';
10
- export { createClient } from './client.gen';
7
+ } from '../core/bodySerializer.gen.js';
8
+ export { buildClientParams } from '../core/params.gen.js';
9
+ export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen.js';
10
+ export { createClient } from './client.gen.js';
11
11
  export type {
12
12
  Client,
13
13
  ClientOptions,
@@ -19,5 +19,5 @@ export type {
19
19
  ResolvedRequestOptions,
20
20
  ResponseStyle,
21
21
  TDataShape,
22
- } from './types.gen';
23
- export { createConfig, mergeHeaders } from './utils.gen';
22
+ } from './types.gen.js';
23
+ export { createConfig, mergeHeaders } from './utils.gen.js';
@@ -1,6 +1,6 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from '../core/bodySerializer.gen';
3
- export { buildClientParams } from '../core/params.gen';
4
- export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen';
5
- export { createClient } from './client.gen';
6
- export { createConfig, mergeHeaders } from './utils.gen';
2
+ export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from '../core/bodySerializer.gen.js';
3
+ export { buildClientParams } from '../core/params.gen.js';
4
+ export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen.js';
5
+ export { createClient } from './client.gen.js';
6
+ export { createConfig, mergeHeaders } from './utils.gen.js';
@@ -1,7 +1,10 @@
1
- import type { Auth } from '../core/auth.gen';
2
- import type { ServerSentEventsOptions, ServerSentEventsResult } from '../core/serverSentEvents.gen';
3
- import type { Client as CoreClient, Config as CoreConfig } from '../core/types.gen';
4
- import type { Middleware } from './utils.gen';
1
+ import type { Auth } from '../core/auth.gen.js';
2
+ import type {
3
+ ServerSentEventsOptions,
4
+ ServerSentEventsResult,
5
+ } from '../core/serverSentEvents.gen.js';
6
+ import type { Client as CoreClient, Config as CoreConfig } from '../core/types.gen.js';
7
+ import type { Middleware } from './utils.gen.js';
5
8
  export type ResponseStyle = 'data' | 'fields';
6
9
  export interface Config<T extends ClientOptions = ClientOptions>
7
10
  extends Omit<RequestInit, 'body' | 'headers' | 'method'>, CoreConfig {
@@ -1,5 +1,5 @@
1
- import type { QuerySerializerOptions } from '../core/bodySerializer.gen';
2
- import type { Client, ClientOptions, Config, RequestOptions } from './types.gen';
1
+ import type { QuerySerializerOptions } from '../core/bodySerializer.gen.js';
2
+ import type { Client, ClientOptions, Config, RequestOptions } from './types.gen.js';
3
3
  export declare const createQuerySerializer: <T = unknown>({
4
4
  parameters,
5
5
  ...args
@@ -1,8 +1,8 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { getAuthToken } from '../core/auth.gen';
3
- import { jsonBodySerializer } from '../core/bodySerializer.gen';
4
- import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from '../core/pathSerializer.gen';
5
- import { getUrl } from '../core/utils.gen';
2
+ import { getAuthToken } from '../core/auth.gen.js';
3
+ import { jsonBodySerializer } from '../core/bodySerializer.gen.js';
4
+ import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from '../core/pathSerializer.gen.js';
5
+ import { getUrl } from '../core/utils.gen.js';
6
6
  export const createQuerySerializer = ({ parameters = {}, ...args } = {}) => {
7
7
  const querySerializer = (queryParams) => {
8
8
  const search = [];
@@ -1,5 +1,5 @@
1
- import { type ClientOptions, type Config } from './client';
2
- import type { ClientOptions as ClientOptions2 } from './types.gen';
1
+ import { type ClientOptions, type Config } from './client/index.js';
2
+ import type { ClientOptions as ClientOptions2 } from './types.gen.js';
3
3
  /**
4
4
  * The `createClientConfig()` function will be called on client initialization
5
5
  * and the returned object will become the client's initial configuration.
@@ -11,4 +11,4 @@ import type { ClientOptions as ClientOptions2 } from './types.gen';
11
11
  export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (
12
12
  override?: Config<ClientOptions & T>
13
13
  ) => Config<Required<ClientOptions> & T>;
14
- export declare const client: import('./client').Client;
14
+ export declare const client: import('./client/types.gen.js').Client;
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { createClient, createConfig } from './client';
2
+ import { createClient, createConfig } from './client/index.js';
3
3
  export const client = createClient(createConfig());
@@ -1,4 +1,4 @@
1
- import type { ArrayStyle, ObjectStyle, SerializerOptions } from './pathSerializer.gen';
1
+ import type { ArrayStyle, ObjectStyle, SerializerOptions } from './pathSerializer.gen.js';
2
2
  export type QuerySerializer = (query: Record<string, unknown>) => string;
3
3
  export type BodySerializer = (body: unknown) => unknown;
4
4
  type QuerySerializerOptionsObject = {
@@ -1,4 +1,4 @@
1
- import type { Config } from './types.gen';
1
+ import type { Config } from './types.gen.js';
2
2
  export type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> &
3
3
  Pick<Config, 'method' | 'responseTransformer' | 'responseValidator'> & {
4
4
  /**
@@ -1,5 +1,9 @@
1
- import type { Auth, AuthToken } from './auth.gen';
2
- import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from './bodySerializer.gen';
1
+ import type { Auth, AuthToken } from './auth.gen.js';
2
+ import type {
3
+ BodySerializer,
4
+ QuerySerializer,
5
+ QuerySerializerOptions,
6
+ } from './bodySerializer.gen.js';
3
7
  export type HttpMethod =
4
8
  | 'connect'
5
9
  | 'delete'
@@ -1,4 +1,4 @@
1
- import type { BodySerializer, QuerySerializer } from './bodySerializer.gen';
1
+ import type { BodySerializer, QuerySerializer } from './bodySerializer.gen.js';
2
2
  export interface PathSerializer {
3
3
  path: Record<string, unknown>;
4
4
  url: string;
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from './pathSerializer.gen';
2
+ import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from './pathSerializer.gen.js';
3
3
  export const PATH_PARAM_RE = /\{[^{}]+\}/g;
4
4
  export const defaultPathSerializer = ({ path, url: _url }) => {
5
5
  let url = _url;
@@ -100,7 +100,7 @@ export {
100
100
  updateWorkflow,
101
101
  updateWorkflowStep,
102
102
  uploadConsumerBlob,
103
- } from './sdk.gen';
103
+ } from './sdk.gen.js';
104
104
  export {
105
105
  type AceStep15AiToolkitTrainingInput,
106
106
  type AceStep15AiToolkitTrainingInputWritable,
@@ -1043,6 +1043,8 @@ export {
1043
1043
  type KlingVideoGenInput,
1044
1044
  type KohyaImageResourceTrainingInput,
1045
1045
  type KohyaImageResourceTrainingInputWritable,
1046
+ type KohyaTrainingInput,
1047
+ type KohyaTrainingInputWritable,
1046
1048
  type Krea2AiToolkitTrainingInput,
1047
1049
  type Krea2AiToolkitTrainingInputWritable,
1048
1050
  type Krea2CreateFalImageGenInput,
@@ -1725,4 +1727,4 @@ export {
1725
1727
  type ZImageTurboImageGenInput,
1726
1728
  type ZipTrainingData,
1727
1729
  ZoeDepthEnvironment,
1728
- } from './types.gen';
1730
+ } from './types.gen.js';
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export { addWorkflowTag, appendStreamingBlob, createFund, deleteFund, deleteWorkflow, depositIntoFund, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getFreeTier, getFund, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeArchiveExtractionStepTemplate, invokeAudioCaptioningStepTemplate, invokeAudioClassificationStepTemplate, invokeAudioModerationStepTemplate, invokeAudioTextModerationStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageScanningStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeLiveTextToSpeechStepTemplate, invokeLiveTranscriptionStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMergeStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokeMultimodalEmbeddingStepTemplate, invokePolyGenStepTemplate, invokePrepareResourceStepTemplate, invokePreprocessImageStepTemplate, invokePreprocessVideoStepTemplate, invokePromptEnhancementStepTemplate, invokePromptModerationStepTemplate, invokeQwenImageBenchStepTemplate, invokeRepeatStepTemplate, invokeShieldstralModerationStepTemplate, invokeSoniloAudioGenStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoBackgroundRemovalStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeWebScrapeStepTemplate, invokeWebSearchStepTemplate, invokeXGuardModerationStepTemplate, invokeYuE2StepTemplate, listServices, patchWorkflow, patchWorkflowStep, queryResources, queryWorkflows, refreshBlob, refundFund, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateFund, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
3
- export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, ArchiveEntryMediaType, ArchiveEntryRejectionReason, ArchiveFormat, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, EmbeddingPrecision, FileFormat, GeminiOmniModel, GeminiOmniResolution, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HiDreamI1Precision, HiDreamI1Variant, HumanoidImageMaskCategory, ImageBackgroundRemovalFormat, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaContainer, MediaFit, MediaHashType, MediaOutputType, MergeMissingBehavior, MergeReducer, Metric3dBackbone, MiniMaxH3Model, MiniMaxVideoGenModel, ModelClamScanStatus, ModelPickleScanStatus, NsfwLevel, OutputFormat, Priority, ResourceFeeType, ResourceView, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedanceModel, SeedreamVersion, ServiceStatus, SettlementCurrency, ShadowRemoval, TraceMode, TrainingModerationStatus, TrainingTraceMode, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowStepWarningCode, WorkflowTier, WorkflowUpgradeMode, WorkflowWaitUntil, XGuardPromptScope, ZoeDepthEnvironment, } from './types.gen';
2
+ export { addWorkflowTag, appendStreamingBlob, createFund, deleteFund, deleteWorkflow, depositIntoFund, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getFreeTier, getFund, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeArchiveExtractionStepTemplate, invokeAudioCaptioningStepTemplate, invokeAudioClassificationStepTemplate, invokeAudioModerationStepTemplate, invokeAudioTextModerationStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageScanningStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeLiveTextToSpeechStepTemplate, invokeLiveTranscriptionStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMergeStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokeMultimodalEmbeddingStepTemplate, invokePolyGenStepTemplate, invokePrepareResourceStepTemplate, invokePreprocessImageStepTemplate, invokePreprocessVideoStepTemplate, invokePromptEnhancementStepTemplate, invokePromptModerationStepTemplate, invokeQwenImageBenchStepTemplate, invokeRepeatStepTemplate, invokeShieldstralModerationStepTemplate, invokeSoniloAudioGenStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoBackgroundRemovalStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeWebScrapeStepTemplate, invokeWebSearchStepTemplate, invokeXGuardModerationStepTemplate, invokeYuE2StepTemplate, listServices, patchWorkflow, patchWorkflowStep, queryResources, queryWorkflows, refreshBlob, refundFund, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateFund, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen.js';
3
+ export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, ArchiveEntryMediaType, ArchiveEntryRejectionReason, ArchiveFormat, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, EmbeddingPrecision, FileFormat, GeminiOmniModel, GeminiOmniResolution, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HiDreamI1Precision, HiDreamI1Variant, HumanoidImageMaskCategory, ImageBackgroundRemovalFormat, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaContainer, MediaFit, MediaHashType, MediaOutputType, MergeMissingBehavior, MergeReducer, Metric3dBackbone, MiniMaxH3Model, MiniMaxVideoGenModel, ModelClamScanStatus, ModelPickleScanStatus, NsfwLevel, OutputFormat, Priority, ResourceFeeType, ResourceView, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedanceModel, SeedreamVersion, ServiceStatus, SettlementCurrency, ShadowRemoval, TraceMode, TrainingModerationStatus, TrainingTraceMode, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowStepWarningCode, WorkflowTier, WorkflowUpgradeMode, WorkflowWaitUntil, XGuardPromptScope, ZoeDepthEnvironment, } from './types.gen.js';