instill-sdk 0.0.1 → 0.0.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 +13 -13
- package/dist/{chunk-ZRC43MN3.mjs → chunk-DIAPO2ML.mjs} +1 -1
- package/dist/{chunk-WL54JNC6.mjs → chunk-G5M7VUJT.mjs} +1 -1
- package/dist/{chunk-4TKUHGUZ.mjs → chunk-MS2EILMH.mjs} +4 -4
- package/dist/{chunk-ECC5KF6S.mjs → chunk-YK7RY2CG.mjs} +3 -3
- package/dist/index.js +6 -6
- package/dist/index.mjs +4 -4
- package/dist/metric/MetricClient.js +1 -1
- package/dist/metric/MetricClient.mjs +1 -1
- package/dist/mgmt/AuthClient.js +1 -1
- package/dist/mgmt/AuthClient.mjs +1 -1
- package/dist/mgmt/index.mjs +1 -1
- package/dist/pipeline/PipelineClient.d.ts +1 -1
- package/dist/pipeline/PipelineClient.js +4 -4
- package/dist/pipeline/PipelineClient.mjs +2 -2
- package/dist/pipeline/index.mjs +2 -2
- package/dist/pipeline/queries.d.ts +1 -1
- package/dist/pipeline/queries.js +4 -4
- package/dist/pipeline/queries.mjs +3 -3
- package/dist/tests/recipePayload.js +57 -0
- package/dist/tests/recipePayload.mjs +59 -0
- package/dist/tests/resourcePaylaod.js +18 -0
- package/dist/tests/resourcePaylaod.mjs +20 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/protogen-ts/base/metric/v1alpha/metric.ts +0 -4522
- package/dist/protogen-ts/base/metric/v1alpha/metric_service.ts +0 -314
- package/dist/protogen-ts/base/mgmt/v1alpha/metric.ts +0 -2486
- package/dist/protogen-ts/base/mgmt/v1alpha/mgmt.ts +0 -3787
- package/dist/protogen-ts/base/mgmt/v1alpha/mgmt_private_service.ts +0 -107
- package/dist/protogen-ts/base/mgmt/v1alpha/mgmt_public_service.ts +0 -326
- package/dist/protogen-ts/base/usage/v1alpha/usage.ts +0 -2185
- package/dist/protogen-ts/base/usage/v1alpha/usage_service.ts +0 -81
- package/dist/protogen-ts/common/healthcheck/v1alpha/healthcheck.ts +0 -188
- package/dist/protogen-ts/common/task/v1alpha/task.ts +0 -109
- package/dist/protogen-ts/google/api/annotations.ts +0 -3
- package/dist/protogen-ts/google/api/client.ts +0 -2073
- package/dist/protogen-ts/google/api/field_behavior.ts +0 -119
- package/dist/protogen-ts/google/api/http.ts +0 -745
- package/dist/protogen-ts/google/api/launch_stage.ts +0 -115
- package/dist/protogen-ts/google/api/resource.ts +0 -529
- package/dist/protogen-ts/google/longrunning/operations.ts +0 -890
- package/dist/protogen-ts/google/protobuf/any.ts +0 -259
- package/dist/protogen-ts/google/protobuf/descriptor.ts +0 -4831
- package/dist/protogen-ts/google/protobuf/duration.ts +0 -203
- package/dist/protogen-ts/google/protobuf/empty.ts +0 -70
- package/dist/protogen-ts/google/protobuf/field_mask.ts +0 -289
- package/dist/protogen-ts/google/protobuf/struct.ts +0 -543
- package/dist/protogen-ts/google/protobuf/timestamp.ts +0 -232
- package/dist/protogen-ts/google/rpc/status.ts +0 -138
- package/dist/protogen-ts/model/controller/v1alpha/controller.ts +0 -823
- package/dist/protogen-ts/model/controller/v1alpha/controller_service.ts +0 -95
- package/dist/protogen-ts/model/model/v1alpha/common.ts +0 -135
- package/dist/protogen-ts/model/model/v1alpha/model.ts +0 -5682
- package/dist/protogen-ts/model/model/v1alpha/model_definition.ts +0 -775
- package/dist/protogen-ts/model/model/v1alpha/model_private_service.ts +0 -87
- package/dist/protogen-ts/model/model/v1alpha/model_public_service.ts +0 -383
- package/dist/protogen-ts/model/model/v1alpha/task_classification.ts +0 -326
- package/dist/protogen-ts/model/model/v1alpha/task_detection.ts +0 -411
- package/dist/protogen-ts/model/model/v1alpha/task_instance_segmentation.ts +0 -435
- package/dist/protogen-ts/model/model/v1alpha/task_keypoint.ts +0 -510
- package/dist/protogen-ts/model/model/v1alpha/task_ocr.ts +0 -406
- package/dist/protogen-ts/model/model/v1alpha/task_semantic_segmentation.ts +0 -396
- package/dist/protogen-ts/model/model/v1alpha/task_text_generation.ts +0 -247
- package/dist/protogen-ts/model/model/v1alpha/task_text_to_image.ts +0 -221
- package/dist/protogen-ts/model/model/v1alpha/task_unspecified.ts +0 -142
- package/dist/protogen-ts/protoc-gen-openapiv2/options/annotations.ts +0 -3
- package/dist/protogen-ts/protoc-gen-openapiv2/options/openapiv2.ts +0 -5095
- package/dist/protogen-ts/vdp/connector/v1alpha/connector.ts +0 -3637
- package/dist/protogen-ts/vdp/connector/v1alpha/connector_definition.ts +0 -1043
- package/dist/protogen-ts/vdp/connector/v1alpha/connector_private_service.ts +0 -92
- package/dist/protogen-ts/vdp/connector/v1alpha/connector_public_service.ts +0 -310
- package/dist/protogen-ts/vdp/connector/v1alpha/spec.ts +0 -126
- package/dist/protogen-ts/vdp/controller/v1alpha/controller.ts +0 -853
- package/dist/protogen-ts/vdp/controller/v1alpha/controller_service.ts +0 -95
- package/dist/protogen-ts/vdp/pipeline/v1alpha/common.ts +0 -498
- package/dist/protogen-ts/vdp/pipeline/v1alpha/operator_definition.ts +0 -948
- package/dist/protogen-ts/vdp/pipeline/v1alpha/pipeline.ts +0 -6006
- package/dist/protogen-ts/vdp/pipeline/v1alpha/pipeline_private_service.ts +0 -83
- package/dist/protogen-ts/vdp/pipeline/v1alpha/pipeline_public_service.ts +0 -413
package/README.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Typescript SDK for Instill AI products
|
|
4
4
|
|
|
5
5
|
[](https://github.com/instill-ai/typescript-sdk/actions)
|
|
6
|
-
[](https://www.npmjs.com/package/instill-sdk)
|
|
7
|
+
[](https://www.npmjs.com/package/instill-sdk)
|
|
8
|
+
[](https://www.npmjs.com/package/instill-sdk)
|
|
9
9
|
|
|
10
10
|
> [!IMPORTANT]
|
|
11
11
|
> **This SDK tool is under heavy development!!**
|
|
@@ -21,25 +21,25 @@ Typescript SDK for Instill AI products
|
|
|
21
21
|
### installation
|
|
22
22
|
|
|
23
23
|
```
|
|
24
|
-
npm i
|
|
24
|
+
npm i instill-sdk
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
yarn add
|
|
28
|
+
yarn add instill-sdk
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
```
|
|
32
|
-
pnpm add
|
|
32
|
+
pnpm add instill-sdk
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## Usage:
|
|
36
36
|
|
|
37
37
|
```
|
|
38
38
|
// node.js
|
|
39
|
-
const InstillClient = require("
|
|
39
|
+
const InstillClient = require("instill-sdk").default;
|
|
40
40
|
|
|
41
41
|
// next.js
|
|
42
|
-
import InstillClient from "
|
|
42
|
+
import InstillClient from "instill-sdk";
|
|
43
43
|
|
|
44
44
|
```
|
|
45
45
|
|
|
@@ -60,14 +60,14 @@ import { useEffect, useState } from "react";
|
|
|
60
60
|
import InstillClient, {
|
|
61
61
|
Nullable,
|
|
62
62
|
User,
|
|
63
|
-
} from "
|
|
63
|
+
} from "instill-sdk";
|
|
64
64
|
|
|
65
65
|
export default function TypescriptSdkDemo() {
|
|
66
66
|
const [user, setUser] = useState<User[]>([]);
|
|
67
67
|
|
|
68
68
|
const client = new InstillClient(
|
|
69
69
|
"http://localhost:8080",
|
|
70
|
-
"
|
|
70
|
+
"v1beta",
|
|
71
71
|
"<your_api_token>" // get console API token from `http://localhost:3000/settings`
|
|
72
72
|
);
|
|
73
73
|
|
|
@@ -101,7 +101,7 @@ import InstillClient, {
|
|
|
101
101
|
Nullable,
|
|
102
102
|
Pipeline,
|
|
103
103
|
User,
|
|
104
|
-
} from "
|
|
104
|
+
} from "instill-sdk";
|
|
105
105
|
|
|
106
106
|
export default function TypescriptSdkDemo() {
|
|
107
107
|
const [pipelines, setPipelines] = useState<Pipeline[]>([]);
|
|
@@ -109,7 +109,7 @@ export default function TypescriptSdkDemo() {
|
|
|
109
109
|
|
|
110
110
|
const client = new InstillClient(
|
|
111
111
|
"https://api.instill.tech",
|
|
112
|
-
"
|
|
112
|
+
"v1beta",
|
|
113
113
|
"<your_api_token>" // console API token
|
|
114
114
|
);
|
|
115
115
|
|
|
@@ -174,7 +174,7 @@ client.PipelineClient.createUserPipelineMutation("<userName>",
|
|
|
174
174
|
{
|
|
175
175
|
"id": "overseas-blue-lobster",
|
|
176
176
|
"recipe": {
|
|
177
|
-
"version": "
|
|
177
|
+
"version": "v1beta",
|
|
178
178
|
"components": [
|
|
179
179
|
{
|
|
180
180
|
"id": "start",
|
|
@@ -21,7 +21,7 @@ import axios from "axios";
|
|
|
21
21
|
var AuthClient = class {
|
|
22
22
|
axiosInstance;
|
|
23
23
|
constructor(baseUrl, appVersion, apiToken) {
|
|
24
|
-
let URL = `${baseUrl}/
|
|
24
|
+
let URL = `${baseUrl}/core/${appVersion}`;
|
|
25
25
|
this.axiosInstance = axios.create({
|
|
26
26
|
baseURL: URL,
|
|
27
27
|
headers: {
|
|
@@ -9,7 +9,7 @@ import axios from "axios";
|
|
|
9
9
|
var MetricClient = class {
|
|
10
10
|
axiosInstance;
|
|
11
11
|
constructor(baseUrl, appVersion, apiToken) {
|
|
12
|
-
let URL = `${baseUrl}/
|
|
12
|
+
let URL = `${baseUrl}/core/${appVersion}`;
|
|
13
13
|
this.axiosInstance = axios.create({
|
|
14
14
|
baseURL: URL,
|
|
15
15
|
headers: {
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
updateUserPipelineReleaseMutation
|
|
17
17
|
} from "./chunk-QLWRKSUE.mjs";
|
|
18
18
|
import {
|
|
19
|
-
ListUserPipelineReleasesQuery,
|
|
20
19
|
getUserPipelineQuery,
|
|
21
20
|
getUserPipelineReleaseQuery,
|
|
22
21
|
listPipelinesQuery,
|
|
22
|
+
listUserPipelineReleasesQuery,
|
|
23
23
|
listUserPipelinesQuery,
|
|
24
24
|
watchUserPipelineReleaseQuery
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YK7RY2CG.mjs";
|
|
26
26
|
|
|
27
27
|
// src/pipeline/PipelineClient.ts
|
|
28
28
|
import axios from "axios";
|
|
@@ -72,12 +72,12 @@ var PipelineClient = class {
|
|
|
72
72
|
/* -------------------------------------------------------------------------
|
|
73
73
|
* Pipeline Release
|
|
74
74
|
* -----------------------------------------------------------------------*/
|
|
75
|
-
async
|
|
75
|
+
async listUserPipelineReleasesQuery({
|
|
76
76
|
pipelineName,
|
|
77
77
|
pageSize,
|
|
78
78
|
nextPageToken
|
|
79
79
|
}) {
|
|
80
|
-
return
|
|
80
|
+
return listUserPipelineReleasesQuery({
|
|
81
81
|
axiosInstance: this.axiosInstance,
|
|
82
82
|
pipelineName,
|
|
83
83
|
pageSize,
|
|
@@ -80,7 +80,7 @@ async function getUserPipelineQuery({
|
|
|
80
80
|
return Promise.reject(err);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
async function
|
|
83
|
+
async function listUserPipelineReleasesQuery({
|
|
84
84
|
axiosInstance,
|
|
85
85
|
pipelineName,
|
|
86
86
|
pageSize,
|
|
@@ -100,7 +100,7 @@ async function ListUserPipelineReleasesQuery({
|
|
|
100
100
|
releases.push(...data.releases);
|
|
101
101
|
if (data.next_page_token) {
|
|
102
102
|
releases.push(
|
|
103
|
-
...await
|
|
103
|
+
...await listUserPipelineReleasesQuery({
|
|
104
104
|
axiosInstance,
|
|
105
105
|
pipelineName,
|
|
106
106
|
pageSize,
|
|
@@ -144,7 +144,7 @@ export {
|
|
|
144
144
|
listPipelinesQuery,
|
|
145
145
|
listUserPipelinesQuery,
|
|
146
146
|
getUserPipelineQuery,
|
|
147
|
-
|
|
147
|
+
listUserPipelineReleasesQuery,
|
|
148
148
|
getUserPipelineReleaseQuery,
|
|
149
149
|
watchUserPipelineReleaseQuery
|
|
150
150
|
};
|
package/dist/index.js
CHANGED
|
@@ -622,7 +622,7 @@ async function listTriggeredPipelineChartQuery({
|
|
|
622
622
|
var MetricClient = class {
|
|
623
623
|
axiosInstance;
|
|
624
624
|
constructor(baseUrl, appVersion, apiToken) {
|
|
625
|
-
let URL = `${baseUrl}/
|
|
625
|
+
let URL = `${baseUrl}/core/${appVersion}`;
|
|
626
626
|
this.axiosInstance = import_axios4.default.create({
|
|
627
627
|
baseURL: URL,
|
|
628
628
|
headers: {
|
|
@@ -826,7 +826,7 @@ async function authValidateTokenAction(axiosInstance) {
|
|
|
826
826
|
var AuthClient = class {
|
|
827
827
|
axiosInstance;
|
|
828
828
|
constructor(baseUrl, appVersion, apiToken) {
|
|
829
|
-
let URL = `${baseUrl}/
|
|
829
|
+
let URL = `${baseUrl}/core/${appVersion}`;
|
|
830
830
|
this.axiosInstance = import_axios5.default.create({
|
|
831
831
|
baseURL: URL,
|
|
832
832
|
headers: {
|
|
@@ -1462,7 +1462,7 @@ async function getUserPipelineQuery({
|
|
|
1462
1462
|
return Promise.reject(err);
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
|
-
async function
|
|
1465
|
+
async function listUserPipelineReleasesQuery({
|
|
1466
1466
|
axiosInstance,
|
|
1467
1467
|
pipelineName,
|
|
1468
1468
|
pageSize,
|
|
@@ -1482,7 +1482,7 @@ async function ListUserPipelineReleasesQuery({
|
|
|
1482
1482
|
releases.push(...data.releases);
|
|
1483
1483
|
if (data.next_page_token) {
|
|
1484
1484
|
releases.push(
|
|
1485
|
-
...await
|
|
1485
|
+
...await listUserPipelineReleasesQuery({
|
|
1486
1486
|
axiosInstance,
|
|
1487
1487
|
pipelineName,
|
|
1488
1488
|
pageSize,
|
|
@@ -1784,12 +1784,12 @@ var PipelineClient = class {
|
|
|
1784
1784
|
/* -------------------------------------------------------------------------
|
|
1785
1785
|
* Pipeline Release
|
|
1786
1786
|
* -----------------------------------------------------------------------*/
|
|
1787
|
-
async
|
|
1787
|
+
async listUserPipelineReleasesQuery({
|
|
1788
1788
|
pipelineName,
|
|
1789
1789
|
pageSize,
|
|
1790
1790
|
nextPageToken
|
|
1791
1791
|
}) {
|
|
1792
|
-
return
|
|
1792
|
+
return listUserPipelineReleasesQuery({
|
|
1793
1793
|
axiosInstance: this.axiosInstance,
|
|
1794
1794
|
pipelineName,
|
|
1795
1795
|
pageSize,
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./chunk-KCKTAMXW.mjs";
|
|
2
2
|
import {
|
|
3
3
|
PipelineClient_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MS2EILMH.mjs";
|
|
5
5
|
import "./chunk-NRP5M7FG.mjs";
|
|
6
6
|
import "./chunk-QLWRKSUE.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-YK7RY2CG.mjs";
|
|
8
8
|
import "./chunk-42SCMPQP.mjs";
|
|
9
9
|
import "./chunk-FNCXOA62.mjs";
|
|
10
10
|
import "./chunk-2VZRNT6D.mjs";
|
|
@@ -20,7 +20,7 @@ import "./chunk-73EPIL2R.mjs";
|
|
|
20
20
|
import "./chunk-VASX6R4R.mjs";
|
|
21
21
|
import {
|
|
22
22
|
AuthClient_default
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DIAPO2ML.mjs";
|
|
24
24
|
import "./chunk-IPW3WQCQ.mjs";
|
|
25
25
|
import "./chunk-3VVR3XHW.mjs";
|
|
26
26
|
import "./chunk-VIPORJ6H.mjs";
|
|
@@ -33,7 +33,7 @@ import "./chunk-QZOKJQTL.mjs";
|
|
|
33
33
|
import "./chunk-KHFNAMT4.mjs";
|
|
34
34
|
import {
|
|
35
35
|
MetricClient_default
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-G5M7VUJT.mjs";
|
|
37
37
|
import "./chunk-YXNMG2RZ.mjs";
|
|
38
38
|
import "./chunk-WBQAMGXK.mjs";
|
|
39
39
|
import "./chunk-WLPBUHMI.mjs";
|
|
@@ -164,7 +164,7 @@ async function listTriggeredPipelineChartQuery({
|
|
|
164
164
|
var MetricClient = class {
|
|
165
165
|
axiosInstance;
|
|
166
166
|
constructor(baseUrl, appVersion, apiToken) {
|
|
167
|
-
let URL = `${baseUrl}/
|
|
167
|
+
let URL = `${baseUrl}/core/${appVersion}`;
|
|
168
168
|
this.axiosInstance = import_axios3.default.create({
|
|
169
169
|
baseURL: URL,
|
|
170
170
|
headers: {
|
package/dist/mgmt/AuthClient.js
CHANGED
|
@@ -222,7 +222,7 @@ async function authValidateTokenAction(axiosInstance) {
|
|
|
222
222
|
var AuthClient = class {
|
|
223
223
|
axiosInstance;
|
|
224
224
|
constructor(baseUrl, appVersion, apiToken) {
|
|
225
|
-
let URL = `${baseUrl}/
|
|
225
|
+
let URL = `${baseUrl}/core/${appVersion}`;
|
|
226
226
|
this.axiosInstance = import_axios3.default.create({
|
|
227
227
|
baseURL: URL,
|
|
228
228
|
headers: {
|
package/dist/mgmt/AuthClient.mjs
CHANGED
package/dist/mgmt/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ declare class PipelineClient {
|
|
|
15
15
|
getUserPipelineQuery({ pipelineName }: {
|
|
16
16
|
pipelineName: string;
|
|
17
17
|
}): Promise<import("./types").Pipeline>;
|
|
18
|
-
|
|
18
|
+
listUserPipelineReleasesQuery({ pipelineName, pageSize, nextPageToken, }: {
|
|
19
19
|
pipelineName: string;
|
|
20
20
|
pageSize: Nullable<number>;
|
|
21
21
|
nextPageToken: Nullable<string>;
|
|
@@ -149,7 +149,7 @@ async function getUserPipelineQuery({
|
|
|
149
149
|
return Promise.reject(err);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
async function
|
|
152
|
+
async function listUserPipelineReleasesQuery({
|
|
153
153
|
axiosInstance,
|
|
154
154
|
pipelineName,
|
|
155
155
|
pageSize,
|
|
@@ -169,7 +169,7 @@ async function ListUserPipelineReleasesQuery({
|
|
|
169
169
|
releases.push(...data.releases);
|
|
170
170
|
if (data.next_page_token) {
|
|
171
171
|
releases.push(
|
|
172
|
-
...await
|
|
172
|
+
...await listUserPipelineReleasesQuery({
|
|
173
173
|
axiosInstance,
|
|
174
174
|
pipelineName,
|
|
175
175
|
pageSize,
|
|
@@ -471,12 +471,12 @@ var PipelineClient = class {
|
|
|
471
471
|
/* -------------------------------------------------------------------------
|
|
472
472
|
* Pipeline Release
|
|
473
473
|
* -----------------------------------------------------------------------*/
|
|
474
|
-
async
|
|
474
|
+
async listUserPipelineReleasesQuery({
|
|
475
475
|
pipelineName,
|
|
476
476
|
pageSize,
|
|
477
477
|
nextPageToken
|
|
478
478
|
}) {
|
|
479
|
-
return
|
|
479
|
+
return listUserPipelineReleasesQuery({
|
|
480
480
|
axiosInstance: this.axiosInstance,
|
|
481
481
|
pipelineName,
|
|
482
482
|
pageSize,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PipelineClient_default
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-MS2EILMH.mjs";
|
|
4
4
|
import "../chunk-NRP5M7FG.mjs";
|
|
5
5
|
import "../chunk-QLWRKSUE.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-YK7RY2CG.mjs";
|
|
7
7
|
import "../chunk-6ZXT6X3H.mjs";
|
|
8
8
|
import "../chunk-JTTE7IZY.mjs";
|
|
9
9
|
import "../chunk-DXEIDDIA.mjs";
|
package/dist/pipeline/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../chunk-KCKTAMXW.mjs";
|
|
2
|
-
import "../chunk-
|
|
2
|
+
import "../chunk-MS2EILMH.mjs";
|
|
3
3
|
import "../chunk-NRP5M7FG.mjs";
|
|
4
4
|
import "../chunk-QLWRKSUE.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-YK7RY2CG.mjs";
|
|
6
6
|
import "../chunk-42SCMPQP.mjs";
|
|
7
7
|
import "../chunk-6ZXT6X3H.mjs";
|
|
8
8
|
import "../chunk-JTTE7IZY.mjs";
|
|
@@ -16,7 +16,7 @@ export declare function getUserPipelineQuery({ axiosInstance, pipelineName, }: {
|
|
|
16
16
|
axiosInstance: AxiosInstance;
|
|
17
17
|
pipelineName: string;
|
|
18
18
|
}): Promise<Pipeline>;
|
|
19
|
-
export declare function
|
|
19
|
+
export declare function listUserPipelineReleasesQuery({ axiosInstance, pipelineName, pageSize, nextPageToken, }: {
|
|
20
20
|
axiosInstance: AxiosInstance;
|
|
21
21
|
pipelineName: string;
|
|
22
22
|
pageSize: Nullable<number>;
|
package/dist/pipeline/queries.js
CHANGED
|
@@ -30,10 +30,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/pipeline/queries.ts
|
|
31
31
|
var queries_exports = {};
|
|
32
32
|
__export(queries_exports, {
|
|
33
|
-
ListUserPipelineReleasesQuery: () => ListUserPipelineReleasesQuery,
|
|
34
33
|
getUserPipelineQuery: () => getUserPipelineQuery,
|
|
35
34
|
getUserPipelineReleaseQuery: () => getUserPipelineReleaseQuery,
|
|
36
35
|
listPipelinesQuery: () => listPipelinesQuery,
|
|
36
|
+
listUserPipelineReleasesQuery: () => listUserPipelineReleasesQuery,
|
|
37
37
|
listUserPipelinesQuery: () => listUserPipelinesQuery,
|
|
38
38
|
watchUserPipelineReleaseQuery: () => watchUserPipelineReleaseQuery
|
|
39
39
|
});
|
|
@@ -153,7 +153,7 @@ async function getUserPipelineQuery({
|
|
|
153
153
|
return Promise.reject(err);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
async function
|
|
156
|
+
async function listUserPipelineReleasesQuery({
|
|
157
157
|
axiosInstance,
|
|
158
158
|
pipelineName,
|
|
159
159
|
pageSize,
|
|
@@ -173,7 +173,7 @@ async function ListUserPipelineReleasesQuery({
|
|
|
173
173
|
releases.push(...data.releases);
|
|
174
174
|
if (data.next_page_token) {
|
|
175
175
|
releases.push(
|
|
176
|
-
...await
|
|
176
|
+
...await listUserPipelineReleasesQuery({
|
|
177
177
|
axiosInstance,
|
|
178
178
|
pipelineName,
|
|
179
179
|
pageSize,
|
|
@@ -214,10 +214,10 @@ async function watchUserPipelineReleaseQuery({
|
|
|
214
214
|
}
|
|
215
215
|
// Annotate the CommonJS export names for ESM import in node:
|
|
216
216
|
0 && (module.exports = {
|
|
217
|
-
ListUserPipelineReleasesQuery,
|
|
218
217
|
getUserPipelineQuery,
|
|
219
218
|
getUserPipelineReleaseQuery,
|
|
220
219
|
listPipelinesQuery,
|
|
220
|
+
listUserPipelineReleasesQuery,
|
|
221
221
|
listUserPipelinesQuery,
|
|
222
222
|
watchUserPipelineReleaseQuery
|
|
223
223
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ListUserPipelineReleasesQuery,
|
|
3
2
|
getUserPipelineQuery,
|
|
4
3
|
getUserPipelineReleaseQuery,
|
|
5
4
|
listPipelinesQuery,
|
|
5
|
+
listUserPipelineReleasesQuery,
|
|
6
6
|
listUserPipelinesQuery,
|
|
7
7
|
watchUserPipelineReleaseQuery
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-YK7RY2CG.mjs";
|
|
9
9
|
import "../chunk-6ZXT6X3H.mjs";
|
|
10
10
|
import "../chunk-JTTE7IZY.mjs";
|
|
11
11
|
import "../chunk-DXEIDDIA.mjs";
|
|
@@ -14,10 +14,10 @@ import "../chunk-7KV3Y36U.mjs";
|
|
|
14
14
|
import "../chunk-EBWGEVUX.mjs";
|
|
15
15
|
import "../chunk-EXJ4UK7Q.mjs";
|
|
16
16
|
export {
|
|
17
|
-
ListUserPipelineReleasesQuery,
|
|
18
17
|
getUserPipelineQuery,
|
|
19
18
|
getUserPipelineReleaseQuery,
|
|
20
19
|
listPipelinesQuery,
|
|
20
|
+
listUserPipelineReleasesQuery,
|
|
21
21
|
listUserPipelinesQuery,
|
|
22
22
|
watchUserPipelineReleaseQuery
|
|
23
23
|
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// src/tests/recipePayload.json
|
|
2
|
+
var id = "overseas-blue-lobster";
|
|
3
|
+
var recipe = {
|
|
4
|
+
version: "v1beta",
|
|
5
|
+
components: [
|
|
6
|
+
{
|
|
7
|
+
id: "start",
|
|
8
|
+
resource_name: "",
|
|
9
|
+
configuration: {
|
|
10
|
+
metadata: {
|
|
11
|
+
text: {
|
|
12
|
+
instillFormat: "string",
|
|
13
|
+
type: "string",
|
|
14
|
+
title: "text"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
definition_name: "operator-definitions/op-start"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: "end",
|
|
22
|
+
resource_name: "",
|
|
23
|
+
configuration: {
|
|
24
|
+
metadata: {
|
|
25
|
+
output: {
|
|
26
|
+
title: "output"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
input: {
|
|
30
|
+
output: "{ai_1.output.texts}"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
definition_name: "operator-definitions/op-end"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "ai_1",
|
|
37
|
+
resource_name: "users/namananand-instill-ai/connector-resources/ai2",
|
|
38
|
+
configuration: {
|
|
39
|
+
task: "TASK_TEXT_GENERATION",
|
|
40
|
+
input: {
|
|
41
|
+
prompt: "{start.text}",
|
|
42
|
+
model: "gpt-3.5-turbo"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
definition_name: "connector-definitions/ai-openai"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
};
|
|
49
|
+
var recipePayload_default = {
|
|
50
|
+
id,
|
|
51
|
+
recipe
|
|
52
|
+
};
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
id,
|
|
56
|
+
recipe
|
|
57
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import "../chunk-EXJ4UK7Q.mjs";
|
|
2
|
+
|
|
3
|
+
// src/tests/recipePayload.json
|
|
4
|
+
var id = "overseas-blue-lobster";
|
|
5
|
+
var recipe = {
|
|
6
|
+
version: "v1beta",
|
|
7
|
+
components: [
|
|
8
|
+
{
|
|
9
|
+
id: "start",
|
|
10
|
+
resource_name: "",
|
|
11
|
+
configuration: {
|
|
12
|
+
metadata: {
|
|
13
|
+
text: {
|
|
14
|
+
instillFormat: "string",
|
|
15
|
+
type: "string",
|
|
16
|
+
title: "text"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
definition_name: "operator-definitions/op-start"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "end",
|
|
24
|
+
resource_name: "",
|
|
25
|
+
configuration: {
|
|
26
|
+
metadata: {
|
|
27
|
+
output: {
|
|
28
|
+
title: "output"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
input: {
|
|
32
|
+
output: "{ai_1.output.texts}"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
definition_name: "operator-definitions/op-end"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "ai_1",
|
|
39
|
+
resource_name: "users/namananand-instill-ai/connector-resources/ai2",
|
|
40
|
+
configuration: {
|
|
41
|
+
task: "TASK_TEXT_GENERATION",
|
|
42
|
+
input: {
|
|
43
|
+
prompt: "{start.text}",
|
|
44
|
+
model: "gpt-3.5-turbo"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
definition_name: "connector-definitions/ai-openai"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
};
|
|
51
|
+
var recipePayload_default = {
|
|
52
|
+
id,
|
|
53
|
+
recipe
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
recipePayload_default as default,
|
|
57
|
+
id,
|
|
58
|
+
recipe
|
|
59
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/tests/resourcePaylaod.json
|
|
2
|
+
var id = "open-ai-model-1";
|
|
3
|
+
var connector_definition_name = "connector-definitions/ai-openai";
|
|
4
|
+
var configuration = {
|
|
5
|
+
organization: "my-org",
|
|
6
|
+
api_key: "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"
|
|
7
|
+
};
|
|
8
|
+
var resourcePaylaod_default = {
|
|
9
|
+
id,
|
|
10
|
+
connector_definition_name,
|
|
11
|
+
configuration
|
|
12
|
+
};
|
|
13
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
14
|
+
0 && (module.exports = {
|
|
15
|
+
configuration,
|
|
16
|
+
connector_definition_name,
|
|
17
|
+
id
|
|
18
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "../chunk-EXJ4UK7Q.mjs";
|
|
2
|
+
|
|
3
|
+
// src/tests/resourcePaylaod.json
|
|
4
|
+
var id = "open-ai-model-1";
|
|
5
|
+
var connector_definition_name = "connector-definitions/ai-openai";
|
|
6
|
+
var configuration = {
|
|
7
|
+
organization: "my-org",
|
|
8
|
+
api_key: "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"
|
|
9
|
+
};
|
|
10
|
+
var resourcePaylaod_default = {
|
|
11
|
+
id,
|
|
12
|
+
connector_definition_name,
|
|
13
|
+
configuration
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
configuration,
|
|
17
|
+
connector_definition_name,
|
|
18
|
+
resourcePaylaod_default as default,
|
|
19
|
+
id
|
|
20
|
+
};
|