@supabase/functions-js 2.3.0 → 2.4.0
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/main/index.d.ts +1 -1
- package/dist/main/index.d.ts.map +1 -1
- package/dist/main/version.d.ts +1 -1
- package/dist/main/version.js +1 -1
- package/dist/module/index.d.ts +1 -1
- package/dist/module/index.d.ts.map +1 -1
- package/dist/module/version.d.ts +1 -1
- package/dist/module/version.js +1 -1
- package/package.json +2 -1
- package/src/edge-runtime.d.ts +35 -33
- package/src/index.ts +2 -2
- package/src/version.ts +1 -1
package/dist/main/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { FunctionsClient } from './FunctionsClient';
|
|
2
|
-
export { FunctionInvokeOptions, FunctionsError, FunctionsFetchError, FunctionsHttpError, FunctionsRelayError, FunctionRegion, FunctionsResponse, } from './types';
|
|
2
|
+
export { type FunctionInvokeOptions, FunctionsError, FunctionsFetchError, FunctionsHttpError, FunctionsRelayError, FunctionRegion, type FunctionsResponse, } from './types';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/main/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,KAAK,qBAAqB,EAC1B,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,KAAK,iBAAiB,GACvB,MAAM,SAAS,CAAA"}
|
package/dist/main/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.
|
|
1
|
+
export declare const version = "2.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/main/version.js
CHANGED
package/dist/module/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { FunctionsClient } from './FunctionsClient';
|
|
2
|
-
export { FunctionInvokeOptions, FunctionsError, FunctionsFetchError, FunctionsHttpError, FunctionsRelayError, FunctionRegion, FunctionsResponse, } from './types';
|
|
2
|
+
export { type FunctionInvokeOptions, FunctionsError, FunctionsFetchError, FunctionsHttpError, FunctionsRelayError, FunctionRegion, type FunctionsResponse, } from './types';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,KAAK,qBAAqB,EAC1B,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,KAAK,iBAAiB,GACvB,MAAM,SAAS,CAAA"}
|
package/dist/module/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.
|
|
1
|
+
export declare const version = "2.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.4.0';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supabase/functions-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "JS Client library to interact with Supabase Functions.",
|
|
5
5
|
"main": "dist/main/index.js",
|
|
6
6
|
"module": "dist/module/index.js",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@supabase/node-fetch": "^2.6.14"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
+
"@sebbo2002/semantic-release-jsr": "^1.0.0",
|
|
42
43
|
"@types/jest": "^28.1.0",
|
|
43
44
|
"@types/jsonwebtoken": "^8.5.8",
|
|
44
45
|
"@types/node": "^18.7.0",
|
package/src/edge-runtime.d.ts
CHANGED
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
declare namespace Supabase {
|
|
2
|
+
export interface ModelOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Pool embeddings by taking their mean. Applies only for `gte-small` model
|
|
5
|
+
*/
|
|
6
|
+
mean_pool?: boolean
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Normalize the embeddings result. Applies only for `gte-small` model
|
|
10
|
+
*/
|
|
11
|
+
normalize?: boolean
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Stream response from model. Applies only for LLMs like `mistral` (default: false)
|
|
15
|
+
*/
|
|
16
|
+
stream?: boolean
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
18
|
+
/**
|
|
19
|
+
* Automatically abort the request to the model after specified time (in seconds). Applies only for LLMs like `mistral` (default: 60)
|
|
20
|
+
*/
|
|
21
|
+
timeout?: number
|
|
22
|
+
}
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
24
|
+
export class Session {
|
|
25
|
+
/**
|
|
26
|
+
* Create a new model session using given model
|
|
27
|
+
*/
|
|
28
|
+
constructor(model: string, sessionOptions?: unknown)
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
new (model: string, sessionOptions?: unknown): Session
|
|
36
|
-
}
|
|
30
|
+
/**
|
|
31
|
+
* Execute the given prompt in model session
|
|
32
|
+
*/
|
|
33
|
+
run(prompt: string, modelOptions?: ModelOptions): unknown
|
|
34
|
+
}
|
|
37
35
|
|
|
38
|
-
declare var Supabase: {
|
|
39
36
|
/**
|
|
40
37
|
* Provides AI related APIs
|
|
41
38
|
*/
|
|
42
|
-
|
|
39
|
+
export interface Ai {
|
|
43
40
|
readonly Session: typeof Session
|
|
44
41
|
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Provides AI related APIs
|
|
45
|
+
*/
|
|
46
|
+
export const ai: Ai
|
|
45
47
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { FunctionsClient } from './FunctionsClient'
|
|
2
2
|
export {
|
|
3
|
-
FunctionInvokeOptions,
|
|
3
|
+
type FunctionInvokeOptions,
|
|
4
4
|
FunctionsError,
|
|
5
5
|
FunctionsFetchError,
|
|
6
6
|
FunctionsHttpError,
|
|
7
7
|
FunctionsRelayError,
|
|
8
8
|
FunctionRegion,
|
|
9
|
-
FunctionsResponse,
|
|
9
|
+
type FunctionsResponse,
|
|
10
10
|
} from './types'
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.4.0'
|