@hautechai/sdk 0.3.28 → 0.3.31
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/autogenerated/api.d.ts +133 -50
- package/dist/autogenerated/api.js +15 -4
- package/dist/sdk/index.d.ts +4 -4
- package/dist/sdk/pipelines/index.d.ts +7 -6
- package/dist/sdk/pipelines/index.js +1 -1
- package/dist/sdk/poses/index.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -451,6 +451,12 @@ export type CollectionEntityKindEnum = typeof CollectionEntityKindEnum[keyof typ
|
|
|
451
451
|
* @interface CompositeElement
|
|
452
452
|
*/
|
|
453
453
|
export interface CompositeElement {
|
|
454
|
+
/**
|
|
455
|
+
* libvips blending mode
|
|
456
|
+
* @type {string}
|
|
457
|
+
* @memberof CompositeElement
|
|
458
|
+
*/
|
|
459
|
+
'blend': CompositeElementBlendEnum;
|
|
454
460
|
/**
|
|
455
461
|
*
|
|
456
462
|
* @type {string}
|
|
@@ -488,6 +494,13 @@ export interface CompositeElement {
|
|
|
488
494
|
*/
|
|
489
495
|
'fit': CompositeElementFitEnum;
|
|
490
496
|
}
|
|
497
|
+
export declare const CompositeElementBlendEnum: {
|
|
498
|
+
readonly Over: "over";
|
|
499
|
+
readonly Screen: "screen";
|
|
500
|
+
readonly Difference: "difference";
|
|
501
|
+
readonly Multiply: "multiply";
|
|
502
|
+
};
|
|
503
|
+
export type CompositeElementBlendEnum = typeof CompositeElementBlendEnum[keyof typeof CompositeElementBlendEnum];
|
|
491
504
|
export declare const CompositeElementFitEnum: {
|
|
492
505
|
readonly Cover: "cover";
|
|
493
506
|
readonly Contain: "contain";
|
|
@@ -2674,10 +2687,10 @@ export type ListOperationsParamsDtoOrderByEnum = typeof ListOperationsParamsDtoO
|
|
|
2674
2687
|
export interface ListPipelinesDto {
|
|
2675
2688
|
/**
|
|
2676
2689
|
*
|
|
2677
|
-
* @type {Array<
|
|
2690
|
+
* @type {Array<PipelinePreviewDto>}
|
|
2678
2691
|
* @memberof ListPipelinesDto
|
|
2679
2692
|
*/
|
|
2680
|
-
'data': Array<
|
|
2693
|
+
'data': Array<PipelinePreviewDto>;
|
|
2681
2694
|
/**
|
|
2682
2695
|
*
|
|
2683
2696
|
* @type {ListAccountsDtoPageInfo}
|
|
@@ -3572,139 +3585,178 @@ export type OperationOutputVideoSingleKindEnum = typeof OperationOutputVideoSing
|
|
|
3572
3585
|
/**
|
|
3573
3586
|
*
|
|
3574
3587
|
* @export
|
|
3575
|
-
* @interface
|
|
3588
|
+
* @interface PipelineDto
|
|
3576
3589
|
*/
|
|
3577
|
-
export interface
|
|
3590
|
+
export interface PipelineDto {
|
|
3578
3591
|
/**
|
|
3579
3592
|
*
|
|
3580
3593
|
* @type {string}
|
|
3581
|
-
* @memberof
|
|
3594
|
+
* @memberof PipelineDto
|
|
3595
|
+
*/
|
|
3596
|
+
'kind': PipelineDtoKindEnum;
|
|
3597
|
+
/**
|
|
3598
|
+
* State of the pipeline tasks
|
|
3599
|
+
* @type {{ [key: string]: PipelineDtoStateValue; }}
|
|
3600
|
+
* @memberof PipelineDto
|
|
3582
3601
|
*/
|
|
3583
|
-
'
|
|
3602
|
+
'state': {
|
|
3603
|
+
[key: string]: PipelineDtoStateValue;
|
|
3604
|
+
};
|
|
3584
3605
|
/**
|
|
3585
3606
|
*
|
|
3586
3607
|
* @type {object}
|
|
3587
|
-
* @memberof
|
|
3608
|
+
* @memberof PipelineDto
|
|
3588
3609
|
*/
|
|
3589
|
-
'
|
|
3610
|
+
'output'?: object;
|
|
3590
3611
|
/**
|
|
3591
3612
|
*
|
|
3592
|
-
* @type {
|
|
3593
|
-
* @memberof
|
|
3613
|
+
* @type {Array<TaskDto>}
|
|
3614
|
+
* @memberof PipelineDto
|
|
3594
3615
|
*/
|
|
3595
|
-
'
|
|
3616
|
+
'tasks': Array<TaskDto>;
|
|
3596
3617
|
/**
|
|
3597
3618
|
*
|
|
3598
3619
|
* @type {string}
|
|
3599
|
-
* @memberof
|
|
3620
|
+
* @memberof PipelineDto
|
|
3600
3621
|
*/
|
|
3601
3622
|
'id': string;
|
|
3602
3623
|
/**
|
|
3603
3624
|
*
|
|
3604
3625
|
* @type {string}
|
|
3605
|
-
* @memberof
|
|
3626
|
+
* @memberof PipelineDto
|
|
3606
3627
|
*/
|
|
3607
3628
|
'creatorId': string;
|
|
3629
|
+
/**
|
|
3630
|
+
*
|
|
3631
|
+
* @type {number}
|
|
3632
|
+
* @memberof PipelineDto
|
|
3633
|
+
*/
|
|
3634
|
+
'tasksAmount': number;
|
|
3608
3635
|
/**
|
|
3609
3636
|
*
|
|
3610
3637
|
* @type {object}
|
|
3611
|
-
* @memberof
|
|
3638
|
+
* @memberof PipelineDto
|
|
3612
3639
|
*/
|
|
3613
3640
|
'metadata': object;
|
|
3614
3641
|
/**
|
|
3615
3642
|
*
|
|
3616
3643
|
* @type {string}
|
|
3617
|
-
* @memberof
|
|
3644
|
+
* @memberof PipelineDto
|
|
3618
3645
|
*/
|
|
3619
3646
|
'createdAt': string;
|
|
3620
3647
|
/**
|
|
3621
3648
|
*
|
|
3622
3649
|
* @type {string}
|
|
3623
|
-
* @memberof
|
|
3650
|
+
* @memberof PipelineDto
|
|
3624
3651
|
*/
|
|
3625
3652
|
'updatedAt': string;
|
|
3653
|
+
/**
|
|
3654
|
+
*
|
|
3655
|
+
* @type {string}
|
|
3656
|
+
* @memberof PipelineDto
|
|
3657
|
+
*/
|
|
3658
|
+
'status': PipelineDtoStatusEnum;
|
|
3626
3659
|
}
|
|
3627
|
-
export declare const
|
|
3660
|
+
export declare const PipelineDtoKindEnum: {
|
|
3628
3661
|
readonly Pipeline: "pipeline";
|
|
3629
3662
|
};
|
|
3630
|
-
export type
|
|
3631
|
-
export declare const
|
|
3663
|
+
export type PipelineDtoKindEnum = typeof PipelineDtoKindEnum[keyof typeof PipelineDtoKindEnum];
|
|
3664
|
+
export declare const PipelineDtoStatusEnum: {
|
|
3632
3665
|
readonly Pending: "pending";
|
|
3633
3666
|
readonly Completed: "completed";
|
|
3634
3667
|
readonly Failed: "failed";
|
|
3635
3668
|
};
|
|
3636
|
-
export type
|
|
3669
|
+
export type PipelineDtoStatusEnum = typeof PipelineDtoStatusEnum[keyof typeof PipelineDtoStatusEnum];
|
|
3637
3670
|
/**
|
|
3638
3671
|
*
|
|
3639
3672
|
* @export
|
|
3640
|
-
* @interface
|
|
3673
|
+
* @interface PipelineDtoStateValue
|
|
3641
3674
|
*/
|
|
3642
|
-
export interface
|
|
3675
|
+
export interface PipelineDtoStateValue {
|
|
3643
3676
|
/**
|
|
3644
3677
|
*
|
|
3645
3678
|
* @type {string}
|
|
3646
|
-
* @memberof
|
|
3647
|
-
*/
|
|
3648
|
-
'kind': PipelineWithOutputKindEnum;
|
|
3649
|
-
/**
|
|
3650
|
-
*
|
|
3651
|
-
* @type {object}
|
|
3652
|
-
* @memberof PipelineWithOutput
|
|
3679
|
+
* @memberof PipelineDtoStateValue
|
|
3653
3680
|
*/
|
|
3654
|
-
'
|
|
3681
|
+
'status'?: PipelineDtoStateValueStatusEnum;
|
|
3655
3682
|
/**
|
|
3656
|
-
*
|
|
3683
|
+
* Output of the task
|
|
3657
3684
|
* @type {object}
|
|
3658
|
-
* @memberof
|
|
3685
|
+
* @memberof PipelineDtoStateValue
|
|
3659
3686
|
*/
|
|
3660
|
-
'
|
|
3687
|
+
'output'?: object;
|
|
3688
|
+
}
|
|
3689
|
+
export declare const PipelineDtoStateValueStatusEnum: {
|
|
3690
|
+
readonly Pending: "pending";
|
|
3691
|
+
readonly Completed: "completed";
|
|
3692
|
+
readonly Failed: "failed";
|
|
3693
|
+
};
|
|
3694
|
+
export type PipelineDtoStateValueStatusEnum = typeof PipelineDtoStateValueStatusEnum[keyof typeof PipelineDtoStateValueStatusEnum];
|
|
3695
|
+
/**
|
|
3696
|
+
*
|
|
3697
|
+
* @export
|
|
3698
|
+
* @interface PipelinePreviewDto
|
|
3699
|
+
*/
|
|
3700
|
+
export interface PipelinePreviewDto {
|
|
3661
3701
|
/**
|
|
3662
3702
|
*
|
|
3663
3703
|
* @type {string}
|
|
3664
|
-
* @memberof
|
|
3704
|
+
* @memberof PipelinePreviewDto
|
|
3665
3705
|
*/
|
|
3666
|
-
'
|
|
3706
|
+
'kind': PipelinePreviewDtoKindEnum;
|
|
3667
3707
|
/**
|
|
3668
3708
|
*
|
|
3669
3709
|
* @type {string}
|
|
3670
|
-
* @memberof
|
|
3710
|
+
* @memberof PipelinePreviewDto
|
|
3671
3711
|
*/
|
|
3672
3712
|
'id': string;
|
|
3673
3713
|
/**
|
|
3674
3714
|
*
|
|
3675
3715
|
* @type {string}
|
|
3676
|
-
* @memberof
|
|
3716
|
+
* @memberof PipelinePreviewDto
|
|
3677
3717
|
*/
|
|
3678
3718
|
'creatorId': string;
|
|
3719
|
+
/**
|
|
3720
|
+
*
|
|
3721
|
+
* @type {number}
|
|
3722
|
+
* @memberof PipelinePreviewDto
|
|
3723
|
+
*/
|
|
3724
|
+
'tasksAmount': number;
|
|
3679
3725
|
/**
|
|
3680
3726
|
*
|
|
3681
3727
|
* @type {object}
|
|
3682
|
-
* @memberof
|
|
3728
|
+
* @memberof PipelinePreviewDto
|
|
3683
3729
|
*/
|
|
3684
3730
|
'metadata': object;
|
|
3685
3731
|
/**
|
|
3686
3732
|
*
|
|
3687
3733
|
* @type {string}
|
|
3688
|
-
* @memberof
|
|
3734
|
+
* @memberof PipelinePreviewDto
|
|
3689
3735
|
*/
|
|
3690
3736
|
'createdAt': string;
|
|
3691
3737
|
/**
|
|
3692
3738
|
*
|
|
3693
3739
|
* @type {string}
|
|
3694
|
-
* @memberof
|
|
3740
|
+
* @memberof PipelinePreviewDto
|
|
3695
3741
|
*/
|
|
3696
3742
|
'updatedAt': string;
|
|
3743
|
+
/**
|
|
3744
|
+
*
|
|
3745
|
+
* @type {string}
|
|
3746
|
+
* @memberof PipelinePreviewDto
|
|
3747
|
+
*/
|
|
3748
|
+
'status': PipelinePreviewDtoStatusEnum;
|
|
3697
3749
|
}
|
|
3698
|
-
export declare const
|
|
3750
|
+
export declare const PipelinePreviewDtoKindEnum: {
|
|
3699
3751
|
readonly Pipeline: "pipeline";
|
|
3700
3752
|
};
|
|
3701
|
-
export type
|
|
3702
|
-
export declare const
|
|
3753
|
+
export type PipelinePreviewDtoKindEnum = typeof PipelinePreviewDtoKindEnum[keyof typeof PipelinePreviewDtoKindEnum];
|
|
3754
|
+
export declare const PipelinePreviewDtoStatusEnum: {
|
|
3703
3755
|
readonly Pending: "pending";
|
|
3704
3756
|
readonly Completed: "completed";
|
|
3705
3757
|
readonly Failed: "failed";
|
|
3706
3758
|
};
|
|
3707
|
-
export type
|
|
3759
|
+
export type PipelinePreviewDtoStatusEnum = typeof PipelinePreviewDtoStatusEnum[keyof typeof PipelinePreviewDtoStatusEnum];
|
|
3708
3760
|
/**
|
|
3709
3761
|
*
|
|
3710
3762
|
* @export
|
|
@@ -4627,6 +4679,37 @@ export interface StorageRecordsResultDto {
|
|
|
4627
4679
|
*/
|
|
4628
4680
|
'value': object;
|
|
4629
4681
|
}
|
|
4682
|
+
/**
|
|
4683
|
+
*
|
|
4684
|
+
* @export
|
|
4685
|
+
* @interface TaskDto
|
|
4686
|
+
*/
|
|
4687
|
+
export interface TaskDto {
|
|
4688
|
+
/**
|
|
4689
|
+
*
|
|
4690
|
+
* @type {string}
|
|
4691
|
+
* @memberof TaskDto
|
|
4692
|
+
*/
|
|
4693
|
+
'id': string;
|
|
4694
|
+
/**
|
|
4695
|
+
*
|
|
4696
|
+
* @type {Array<string>}
|
|
4697
|
+
* @memberof TaskDto
|
|
4698
|
+
*/
|
|
4699
|
+
'method': Array<string>;
|
|
4700
|
+
/**
|
|
4701
|
+
*
|
|
4702
|
+
* @type {Array<object>}
|
|
4703
|
+
* @memberof TaskDto
|
|
4704
|
+
*/
|
|
4705
|
+
'args': Array<object>;
|
|
4706
|
+
/**
|
|
4707
|
+
*
|
|
4708
|
+
* @type {Array<string>}
|
|
4709
|
+
* @memberof TaskDto
|
|
4710
|
+
*/
|
|
4711
|
+
'dependencies': Array<string>;
|
|
4712
|
+
}
|
|
4630
4713
|
/**
|
|
4631
4714
|
*
|
|
4632
4715
|
* @export
|
|
@@ -9114,14 +9197,14 @@ export declare const PipelinesApiFp: (configuration?: Configuration) => {
|
|
|
9114
9197
|
* @param {*} [options] Override http request option.
|
|
9115
9198
|
* @throws {RequiredError}
|
|
9116
9199
|
*/
|
|
9117
|
-
pipelinesControllerCreatePipelineV1(createPipelineParamsDto: CreatePipelineParamsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
9200
|
+
pipelinesControllerCreatePipelineV1(createPipelineParamsDto: CreatePipelineParamsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PipelineDto>>;
|
|
9118
9201
|
/**
|
|
9119
9202
|
*
|
|
9120
9203
|
* @param {string} id
|
|
9121
9204
|
* @param {*} [options] Override http request option.
|
|
9122
9205
|
* @throws {RequiredError}
|
|
9123
9206
|
*/
|
|
9124
|
-
pipelinesControllerGetPipelineV1(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
9207
|
+
pipelinesControllerGetPipelineV1(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PipelineDto>>;
|
|
9125
9208
|
/**
|
|
9126
9209
|
*
|
|
9127
9210
|
* @param {PipelinesControllerListPipelinesV1OrderByEnum} [orderBy]
|
|
@@ -9143,14 +9226,14 @@ export declare const PipelinesApiFactory: (configuration?: Configuration, basePa
|
|
|
9143
9226
|
* @param {*} [options] Override http request option.
|
|
9144
9227
|
* @throws {RequiredError}
|
|
9145
9228
|
*/
|
|
9146
|
-
pipelinesControllerCreatePipelineV1(createPipelineParamsDto: CreatePipelineParamsDto, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
9229
|
+
pipelinesControllerCreatePipelineV1(createPipelineParamsDto: CreatePipelineParamsDto, options?: RawAxiosRequestConfig): AxiosPromise<PipelineDto>;
|
|
9147
9230
|
/**
|
|
9148
9231
|
*
|
|
9149
9232
|
* @param {string} id
|
|
9150
9233
|
* @param {*} [options] Override http request option.
|
|
9151
9234
|
* @throws {RequiredError}
|
|
9152
9235
|
*/
|
|
9153
|
-
pipelinesControllerGetPipelineV1(id: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
9236
|
+
pipelinesControllerGetPipelineV1(id: string, options?: RawAxiosRequestConfig): AxiosPromise<PipelineDto>;
|
|
9154
9237
|
/**
|
|
9155
9238
|
*
|
|
9156
9239
|
* @param {PipelinesControllerListPipelinesV1OrderByEnum} [orderBy]
|
|
@@ -9175,7 +9258,7 @@ export declare class PipelinesApi extends BaseAPI {
|
|
|
9175
9258
|
* @throws {RequiredError}
|
|
9176
9259
|
* @memberof PipelinesApi
|
|
9177
9260
|
*/
|
|
9178
|
-
pipelinesControllerCreatePipelineV1(createPipelineParamsDto: CreatePipelineParamsDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
9261
|
+
pipelinesControllerCreatePipelineV1(createPipelineParamsDto: CreatePipelineParamsDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PipelineDto, any>>;
|
|
9179
9262
|
/**
|
|
9180
9263
|
*
|
|
9181
9264
|
* @param {string} id
|
|
@@ -9183,7 +9266,7 @@ export declare class PipelinesApi extends BaseAPI {
|
|
|
9183
9266
|
* @throws {RequiredError}
|
|
9184
9267
|
* @memberof PipelinesApi
|
|
9185
9268
|
*/
|
|
9186
|
-
pipelinesControllerGetPipelineV1(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
9269
|
+
pipelinesControllerGetPipelineV1(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PipelineDto, any>>;
|
|
9187
9270
|
/**
|
|
9188
9271
|
*
|
|
9189
9272
|
* @param {PipelinesControllerListPipelinesV1OrderByEnum} [orderBy]
|
|
@@ -54,6 +54,12 @@ export const CollectionEntityKindEnum = {
|
|
|
54
54
|
Storage: 'storage',
|
|
55
55
|
Pipeline: 'pipeline'
|
|
56
56
|
};
|
|
57
|
+
export const CompositeElementBlendEnum = {
|
|
58
|
+
Over: 'over',
|
|
59
|
+
Screen: 'screen',
|
|
60
|
+
Difference: 'difference',
|
|
61
|
+
Multiply: 'multiply'
|
|
62
|
+
};
|
|
57
63
|
export const CompositeElementFitEnum = {
|
|
58
64
|
Cover: 'cover',
|
|
59
65
|
Contain: 'contain',
|
|
@@ -315,18 +321,23 @@ export const OperationOutputTextSingleKindEnum = {
|
|
|
315
321
|
export const OperationOutputVideoSingleKindEnum = {
|
|
316
322
|
VideoSingle: 'video/single'
|
|
317
323
|
};
|
|
318
|
-
export const
|
|
324
|
+
export const PipelineDtoKindEnum = {
|
|
319
325
|
Pipeline: 'pipeline'
|
|
320
326
|
};
|
|
321
|
-
export const
|
|
327
|
+
export const PipelineDtoStatusEnum = {
|
|
328
|
+
Pending: 'pending',
|
|
329
|
+
Completed: 'completed',
|
|
330
|
+
Failed: 'failed'
|
|
331
|
+
};
|
|
332
|
+
export const PipelineDtoStateValueStatusEnum = {
|
|
322
333
|
Pending: 'pending',
|
|
323
334
|
Completed: 'completed',
|
|
324
335
|
Failed: 'failed'
|
|
325
336
|
};
|
|
326
|
-
export const
|
|
337
|
+
export const PipelinePreviewDtoKindEnum = {
|
|
327
338
|
Pipeline: 'pipeline'
|
|
328
339
|
};
|
|
329
|
-
export const
|
|
340
|
+
export const PipelinePreviewDtoStatusEnum = {
|
|
330
341
|
Pending: 'pending',
|
|
331
342
|
Completed: 'completed',
|
|
332
343
|
Failed: 'failed'
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1341,25 +1341,25 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
1341
1341
|
}) => Promise<import("../types").StorageEntity>;
|
|
1342
1342
|
};
|
|
1343
1343
|
}>;
|
|
1344
|
-
}) => Promise<Omit<import("../types").
|
|
1344
|
+
}) => Promise<Omit<import("../types").PipelineDto, "metadata"> & {
|
|
1345
1345
|
metadata: PipelineMetadata;
|
|
1346
1346
|
}>;
|
|
1347
1347
|
get: (props: {
|
|
1348
1348
|
id: string;
|
|
1349
|
-
}) => Promise<(Omit<import("../types").
|
|
1349
|
+
}) => Promise<(Omit<import("../types").PipelineDto, "metadata"> & {
|
|
1350
1350
|
metadata: PipelineMetadata;
|
|
1351
1351
|
}) | undefined>;
|
|
1352
1352
|
list: (props?: {
|
|
1353
1353
|
orderBy?: import("../autogenerated").PipelinesControllerListPipelinesV1OrderByEnum;
|
|
1354
1354
|
limit?: number;
|
|
1355
1355
|
cursor?: string;
|
|
1356
|
-
}) => Promise<import("../types").ListResponse<Omit<import("../types").
|
|
1356
|
+
}) => Promise<import("../types").ListResponse<Omit<import("../types").PipelinePreviewDto, "metadata"> & {
|
|
1357
1357
|
metadata: PipelineMetadata;
|
|
1358
1358
|
}>>;
|
|
1359
1359
|
wait: (props: {
|
|
1360
1360
|
id: string;
|
|
1361
1361
|
timeoutInSeconds?: number;
|
|
1362
|
-
}) => Promise<Omit<import("../types").
|
|
1362
|
+
}) => Promise<Omit<import("../types").PipelineDto, "metadata"> & {
|
|
1363
1363
|
metadata: PipelineMetadata;
|
|
1364
1364
|
}>;
|
|
1365
1365
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { PipelineEntity, PipelinesControllerListPipelinesV1OrderByEnum } from '../../autogenerated';
|
|
2
1
|
import { Pipeline } from '@hautechai/pipelines';
|
|
2
|
+
import { PipelineDto, PipelinePreviewDto, PipelinesControllerListPipelinesV1OrderByEnum } from '../../autogenerated';
|
|
3
3
|
import { ListResponse, SDKOptions } from '../../types';
|
|
4
4
|
import { PipelineMetadata } from '../index';
|
|
5
5
|
import { AddMetadata } from '../utils';
|
|
6
|
-
type
|
|
6
|
+
type PipelineDtoWithMetadata = AddMetadata<PipelineDto, PipelineMetadata>;
|
|
7
|
+
type PipelinePreviewDtoWithMetadata = AddMetadata<PipelinePreviewDto, PipelineMetadata>;
|
|
7
8
|
declare const pipelines: (options: SDKOptions) => {
|
|
8
9
|
constructTemplate: (consructPipeline: (pipeline: Pipeline<{
|
|
9
10
|
access: {
|
|
@@ -1061,18 +1062,18 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
1061
1062
|
}) => Promise<import("../../autogenerated").StorageEntity>;
|
|
1062
1063
|
};
|
|
1063
1064
|
}>;
|
|
1064
|
-
}) => Promise<
|
|
1065
|
+
}) => Promise<PipelineDtoWithMetadata>;
|
|
1065
1066
|
get: (props: {
|
|
1066
1067
|
id: string;
|
|
1067
|
-
}) => Promise<
|
|
1068
|
+
}) => Promise<PipelineDtoWithMetadata | undefined>;
|
|
1068
1069
|
list: (props?: {
|
|
1069
1070
|
orderBy?: PipelinesControllerListPipelinesV1OrderByEnum;
|
|
1070
1071
|
limit?: number;
|
|
1071
1072
|
cursor?: string;
|
|
1072
|
-
}) => Promise<ListResponse<
|
|
1073
|
+
}) => Promise<ListResponse<PipelinePreviewDtoWithMetadata>>;
|
|
1073
1074
|
wait: (props: {
|
|
1074
1075
|
id: string;
|
|
1075
1076
|
timeoutInSeconds?: number;
|
|
1076
|
-
}) => Promise<
|
|
1077
|
+
}) => Promise<PipelineDtoWithMetadata>;
|
|
1077
1078
|
};
|
|
1078
1079
|
export default pipelines;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CallApi, PipelinesApi, } from '../../autogenerated';
|
|
2
1
|
import { Pipeline } from '@hautechai/pipelines';
|
|
2
|
+
import { CallApi, PipelinesApi } from '../../autogenerated';
|
|
3
3
|
import { useAutogeneratedAPI } from '../api';
|
|
4
4
|
import { transformToListResponse } from '../transformers';
|
|
5
5
|
const pipelines = (options) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ListResponse, SDKOptions } from '../../types';
|
|
2
1
|
import { ListPosesParamsDto, PoseEntity } from '../../autogenerated';
|
|
2
|
+
import { ListResponse, SDKOptions } from '../../types';
|
|
3
3
|
import { PoseMetadata } from '../index';
|
|
4
4
|
import { AddMetadata } from '../utils';
|
|
5
5
|
type PoseEntityWithMetadata = AddMetadata<PoseEntity, PoseMetadata>;
|
package/dist/types.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export type ListProps = {
|
|
|
12
12
|
export declare class ListResponse<T> extends Array<T> {
|
|
13
13
|
nextCursor?: string;
|
|
14
14
|
}
|
|
15
|
-
export { AccountEntity, CollectionEntity, GroupEntity, ImageEntity, OperationEntity,
|
|
15
|
+
export { AccountEntity, CollectionEntity, GroupEntity, ImageEntity, OperationEntity, PipelineDto, PipelinePreviewDto, ResourceEntity, StackEntity, StorageEntity, } from './autogenerated/api';
|