@hautechai/sdk 2.0.1 → 2.1.1
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/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ import * as axios from 'axios';
|
|
|
2
2
|
import { AxiosResponse } from 'axios';
|
|
3
3
|
import { Pipeline, Methods } from '@hautechai/pipelines';
|
|
4
4
|
import { ChangeMethodSignaturesInObject, WrapRefOrValue, TaskOutput, WrapRef, UnwrapRef } from '@hautechai/pipelines/dist/pipeline';
|
|
5
|
+
import { SocketOptions } from 'socket.io-client';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Generated by orval v7.10.0 🍺
|
|
@@ -6841,6 +6842,7 @@ interface Config {
|
|
|
6841
6842
|
baseUrl: string;
|
|
6842
6843
|
baseWsUrl: string;
|
|
6843
6844
|
authToken: () => string | Promise<string>;
|
|
6845
|
+
wsConfig?: SocketOptions;
|
|
6844
6846
|
}
|
|
6845
6847
|
|
|
6846
6848
|
interface BaseWsEvent<T> {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as axios from 'axios';
|
|
|
2
2
|
import { AxiosResponse } from 'axios';
|
|
3
3
|
import { Pipeline, Methods } from '@hautechai/pipelines';
|
|
4
4
|
import { ChangeMethodSignaturesInObject, WrapRefOrValue, TaskOutput, WrapRef, UnwrapRef } from '@hautechai/pipelines/dist/pipeline';
|
|
5
|
+
import { SocketOptions } from 'socket.io-client';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Generated by orval v7.10.0 🍺
|
|
@@ -6841,6 +6842,7 @@ interface Config {
|
|
|
6841
6842
|
baseUrl: string;
|
|
6842
6843
|
baseWsUrl: string;
|
|
6843
6844
|
authToken: () => string | Promise<string>;
|
|
6845
|
+
wsConfig?: SocketOptions;
|
|
6844
6846
|
}
|
|
6845
6847
|
|
|
6846
6848
|
interface BaseWsEvent<T> {
|
package/dist/index.js
CHANGED
|
@@ -14219,6 +14219,7 @@ var WsClient = class {
|
|
|
14219
14219
|
getSocket() {
|
|
14220
14220
|
if (!this.socket) {
|
|
14221
14221
|
this.socket = (0, import_socket.io)(this.config.baseWsUrl, {
|
|
14222
|
+
...this.config.wsConfig || {},
|
|
14222
14223
|
auth: (cb) => {
|
|
14223
14224
|
Promise.resolve(this.config.authToken()).then((token) => {
|
|
14224
14225
|
cb({
|