@hautechai/sdk 0.0.16 → 0.0.18

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.
@@ -7,6 +7,7 @@ export type MethodsPermissions = {
7
7
  accounts: {
8
8
  create: boolean;
9
9
  read: boolean;
10
+ list: boolean;
10
11
  };
11
12
  balances: {
12
13
  read: boolean;
@@ -55,6 +56,7 @@ export type MethodsPermissions = {
55
56
  poses: {
56
57
  create: boolean;
57
58
  read: boolean;
59
+ update: boolean;
58
60
  };
59
61
  stacks: {
60
62
  create: boolean;
@@ -85,28 +85,44 @@ export declare const createSDK: (options: SDKOptions) => {
85
85
  };
86
86
  operations: {
87
87
  create: {
88
- detect: {
88
+ composite: {
89
89
  v1: (props: {
90
- input: import("../autogenerated").ObjectDetectionV1Input;
90
+ input: import("../autogenerated").CompositeV1Input;
91
91
  metadata?: any;
92
92
  }) => Promise<import("../types").OperationEntity>;
93
93
  };
94
- estimatePose: {
94
+ cut: {
95
95
  v1: (props: {
96
- input: import("../autogenerated").PoseEstimationV1Input;
96
+ input: import("../autogenerated").CutV1Input;
97
97
  metadata?: any;
98
98
  }) => Promise<import("../types").OperationEntity>;
99
99
  };
100
- generate: {
100
+ detect: {
101
101
  v1: (props: {
102
- input: import("../autogenerated").GenerateV1Input;
102
+ input: import("../autogenerated").ObjectDetectionV1Input;
103
103
  metadata?: any;
104
104
  }) => Promise<import("../types").OperationEntity>;
105
- v3: (props: {
106
- input: import("../autogenerated").GenerateV3Input;
105
+ };
106
+ estimatePose: {
107
+ v1: (props: {
108
+ input: import("../autogenerated").PoseEstimationV1Input;
107
109
  metadata?: any;
108
110
  }) => Promise<import("../types").OperationEntity>;
109
111
  };
112
+ haute: {
113
+ linda: {
114
+ v1: (props: {
115
+ input: import("../autogenerated").LindaHauteV1Input;
116
+ metadata?: any;
117
+ }) => Promise<import("../types").OperationEntity>;
118
+ };
119
+ naomi: {
120
+ v1: (props: {
121
+ input: import("../autogenerated").NaomiHauteV1Input;
122
+ metadata?: any;
123
+ }) => Promise<import("../types").OperationEntity>;
124
+ };
125
+ };
110
126
  gpt: {
111
127
  v1: (props: {
112
128
  input: import("../autogenerated").GPTV1Input;
@@ -114,20 +130,30 @@ export declare const createSDK: (options: SDKOptions) => {
114
130
  }) => Promise<import("../types").OperationEntity>;
115
131
  };
116
132
  imagine: {
117
- v1: (props: {
118
- input: import("../autogenerated").ImagineV1Input;
119
- metadata?: any;
120
- }) => Promise<import("../types").OperationEntity>;
133
+ kate: {
134
+ v1: (props: {
135
+ input: import("../autogenerated").KateImagineV1Input;
136
+ metadata?: any;
137
+ }) => Promise<import("../types").OperationEntity>;
138
+ };
121
139
  };
122
140
  inpaint: {
141
+ kate: {
142
+ v1: (props: {
143
+ input: import("../autogenerated").KateInpaintV1Input;
144
+ metadata?: any;
145
+ }) => Promise<import("../types").OperationEntity>;
146
+ };
147
+ };
148
+ segmentEmbeddings: {
123
149
  v1: (props: {
124
- input: import("../autogenerated").InpaintV1Input;
150
+ input: import("../autogenerated").SegmentAnythingEmbeddingsV1Input;
125
151
  metadata?: any;
126
152
  }) => Promise<import("../types").OperationEntity>;
127
153
  };
128
- segmentEmbeddings: {
154
+ segmentMask: {
129
155
  v1: (props: {
130
- input: import("../autogenerated").SegmentAnythingEmbeddingsV1Input;
156
+ input: import("../autogenerated").SegmentAnythingMaskV1Input;
131
157
  metadata?: any;
132
158
  }) => Promise<import("../types").OperationEntity>;
133
159
  };
@@ -1,29 +1,45 @@
1
- import { GenerateV1Input, GenerateV3Input, GPTV1Input, ImagineV1Input, InpaintV1Input, ObjectDetectionV1Input, OperationEntity, PoseEstimationV1Input, SegmentAnythingEmbeddingsV1Input, UpscaleV1Input } from '../../autogenerated';
1
+ import { CompositeV1Input, CutV1Input, GPTV1Input, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, ObjectDetectionV1Input, OperationEntity, PoseEstimationV1Input, SegmentAnythingEmbeddingsV1Input, SegmentAnythingMaskV1Input, UpscaleV1Input } from '../../autogenerated';
2
2
  import { ListProps, ListResponse, SDKOptions } from '../../types';
3
3
  declare const operations: (options: SDKOptions) => {
4
4
  create: {
5
- detect: {
5
+ composite: {
6
6
  v1: (props: {
7
- input: ObjectDetectionV1Input;
7
+ input: CompositeV1Input;
8
8
  metadata?: any;
9
9
  }) => Promise<OperationEntity>;
10
10
  };
11
- estimatePose: {
11
+ cut: {
12
12
  v1: (props: {
13
- input: PoseEstimationV1Input;
13
+ input: CutV1Input;
14
14
  metadata?: any;
15
15
  }) => Promise<OperationEntity>;
16
16
  };
17
- generate: {
17
+ detect: {
18
18
  v1: (props: {
19
- input: GenerateV1Input;
19
+ input: ObjectDetectionV1Input;
20
20
  metadata?: any;
21
21
  }) => Promise<OperationEntity>;
22
- v3: (props: {
23
- input: GenerateV3Input;
22
+ };
23
+ estimatePose: {
24
+ v1: (props: {
25
+ input: PoseEstimationV1Input;
24
26
  metadata?: any;
25
27
  }) => Promise<OperationEntity>;
26
28
  };
29
+ haute: {
30
+ linda: {
31
+ v1: (props: {
32
+ input: LindaHauteV1Input;
33
+ metadata?: any;
34
+ }) => Promise<OperationEntity>;
35
+ };
36
+ naomi: {
37
+ v1: (props: {
38
+ input: NaomiHauteV1Input;
39
+ metadata?: any;
40
+ }) => Promise<OperationEntity>;
41
+ };
42
+ };
27
43
  gpt: {
28
44
  v1: (props: {
29
45
  input: GPTV1Input;
@@ -31,20 +47,30 @@ declare const operations: (options: SDKOptions) => {
31
47
  }) => Promise<OperationEntity>;
32
48
  };
33
49
  imagine: {
34
- v1: (props: {
35
- input: ImagineV1Input;
36
- metadata?: any;
37
- }) => Promise<OperationEntity>;
50
+ kate: {
51
+ v1: (props: {
52
+ input: KateImagineV1Input;
53
+ metadata?: any;
54
+ }) => Promise<OperationEntity>;
55
+ };
38
56
  };
39
57
  inpaint: {
58
+ kate: {
59
+ v1: (props: {
60
+ input: KateInpaintV1Input;
61
+ metadata?: any;
62
+ }) => Promise<OperationEntity>;
63
+ };
64
+ };
65
+ segmentEmbeddings: {
40
66
  v1: (props: {
41
- input: InpaintV1Input;
67
+ input: SegmentAnythingEmbeddingsV1Input;
42
68
  metadata?: any;
43
69
  }) => Promise<OperationEntity>;
44
70
  };
45
- segmentEmbeddings: {
71
+ segmentMask: {
46
72
  v1: (props: {
47
- input: SegmentAnythingEmbeddingsV1Input;
73
+ input: SegmentAnythingMaskV1Input;
48
74
  metadata?: any;
49
75
  }) => Promise<OperationEntity>;
50
76
  };
@@ -8,28 +8,45 @@ const operations = (options) => {
8
8
  const createOperation = (callMethod) => (props) => api.call({ run: (methods) => callMethod(methods, props) });
9
9
  return {
10
10
  create: {
11
+ composite: {
12
+ v1: createOperation((methods, props) => methods.operationsControllerRunCompositeV1V1(props)),
13
+ },
14
+ cut: {
15
+ v1: createOperation((methods, props) => methods.operationsControllerRunCutV1V1(props)),
16
+ },
11
17
  detect: {
12
18
  v1: createOperation((methods, props) => methods.operationsControllerRunObjectDetectionV1V1(props)),
13
19
  },
14
20
  estimatePose: {
15
21
  v1: createOperation((methods, props) => methods.operationsControllerRunPoseEstimationV1V1(props)),
16
22
  },
17
- generate: {
18
- v1: createOperation((methods, props) => methods.operationsControllerRunGenerateV1V1(props)),
19
- v3: createOperation((methods, props) => methods.operationsControllerRunGenerateV3V1(props)),
23
+ haute: {
24
+ linda: {
25
+ v1: createOperation((methods, props) => methods.operationsControllerRunLindaHauteV1V1(props)),
26
+ },
27
+ naomi: {
28
+ v1: createOperation((methods, props) => methods.operationsControllerRunNaomiHauteV1V1(props)),
29
+ },
20
30
  },
21
31
  gpt: {
22
32
  v1: createOperation((methods, props) => methods.operationsControllerRunGptV1V1(props)),
23
33
  },
24
34
  imagine: {
25
- v1: createOperation((methods, props) => methods.operationsControllerRunImagineV1V1(props)),
35
+ kate: {
36
+ v1: createOperation((methods, props) => methods.operationsControllerRunKateImagineV1V1(props)),
37
+ },
26
38
  },
27
39
  inpaint: {
28
- v1: createOperation((methods, props) => methods.operationsControllerRunInpaintV1V1(props)),
40
+ kate: {
41
+ v1: createOperation((methods, props) => methods.operationsControllerRunKateInpaintV1V1(props)),
42
+ },
29
43
  },
30
44
  segmentEmbeddings: {
31
45
  v1: createOperation((methods, props) => methods.operationsControllerRunSegmentAnythingEmbeddingsV1V1(props)),
32
46
  },
47
+ segmentMask: {
48
+ v1: createOperation((methods, props) => methods.operationsControllerRunSegmentAnythingMaskV1V1(props)),
49
+ },
33
50
  upscale: {
34
51
  v1: createOperation((methods, props) => methods.operationsControllerRunUpscaleV1V1(props)),
35
52
  },
@@ -1,6 +1,6 @@
1
1
  export const defaultPermissions = {
2
2
  access: { add: true, read: true, remove: true },
3
- accounts: { create: false, read: false },
3
+ accounts: { create: false, list: false, read: false },
4
4
  balances: { read: true, self: { read: true, update: false }, update: false },
5
5
  collections: {
6
6
  create: true,
@@ -12,7 +12,7 @@ export const defaultPermissions = {
12
12
  images: { create: true, read: true },
13
13
  operations: { create: true, read: true, metadata: { update: true } },
14
14
  pipelines: { create: true, read: true, update: true },
15
- poses: { create: true, read: true },
15
+ poses: { create: true, read: true, update: true },
16
16
  stacks: { create: true, items: { add: true, remove: true }, read: true, metadata: { update: true } },
17
17
  storage: { create: true, delete: true, read: true, update: true },
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hautechai/sdk",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "license": "MIT",
5
5
  "keywords": [],
6
6
  "repository": {