Skip to content

Commit 7e013c6

Browse files
committed
Release 0.9.0
c602be0f6b122d021b4096209982658cf17a953a
1 parent f722172 commit 7e013c6

File tree

170 files changed

+2104
-587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+2104
-587
lines changed

dall-e-storage-action/convex/_generated/api.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

dall-e-storage-action/convex/_generated/dataModel.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

dall-e-storage-action/convex/_generated/dataModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

dall-e-storage-action/convex/_generated/react.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

dall-e-storage-action/convex/_generated/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

dall-e-storage-action/convex/_generated/server.d.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/
1111

1212
import {
1313
ActionBuilderForAPI,
14+
HttpEndpointBuilderForAPI,
1415
MutationBuilder,
1516
QueryBuilderForDataModel,
1617
ActionCtx as GenericActionCtx,
17-
QueryCtx as GenericQueryCtx,
18+
HttpEndpointCtx as GenericHttpEndpointCtx,
1819
MutationCtx as GenericMutationCtx,
20+
QueryCtx as GenericQueryCtx,
1921
DatabaseReader as GenericDatabaseReader,
2022
DatabaseWriter as GenericDatabaseWriter,
2123
} from "convex/server";
@@ -57,6 +59,18 @@ export declare const mutation: MutationBuilder<DataModel, API>;
5759
*/
5860
export declare const action: ActionBuilderForAPI<API>;
5961

62+
/**
63+
* Define an HTTP endpoint.
64+
*
65+
* This function will be used to respond to HTTP requests received by a Convex
66+
* deployment if the requests matches the path and method where this endpoint
67+
* is routed. Be sure to route your endpoint in `convex/http.js`.
68+
*
69+
* @param func - The endpoint function. It receives a {@link HttpEndpointCtx} as its first argument.
70+
* @returns The wrapped endpoint function. Import this function from `convex/http.js` and route it to hook it up.
71+
*/
72+
export declare const httpEndpoint: HttpEndpointBuilderForAPI<API>;
73+
6074
/**
6175
* A set of services for use within Convex query functions.
6276
*
@@ -84,6 +98,14 @@ export type MutationCtx = GenericMutationCtx<DataModel, API>;
8498
*/
8599
export type ActionCtx = GenericActionCtx<API>;
86100

101+
/**
102+
* A set of services for use within Convex HTTP endpoints.
103+
*
104+
* The HttpEndpointCtx is passed as the first argument to any Convex HTTP
105+
* endpoint run on the server.
106+
*/
107+
export type HttpEndpointCtx = GenericHttpEndpointCtx<API>;
108+
87109
/**
88110
* An interface to read from the database within Convex query functions.
89111
*

dall-e-storage-action/convex/_generated/server.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/
1111

12-
import { actionGeneric, queryGeneric, mutationGeneric } from "convex/server";
12+
import {
13+
actionGeneric,
14+
httpEndpointGeneric,
15+
queryGeneric,
16+
mutationGeneric,
17+
} from "convex/server";
1318

1419
/**
1520
* Define a query in this Convex app's public API.
@@ -45,3 +50,12 @@ export const mutation = mutationGeneric;
4550
* @returns The wrapped action. Include this as an `export` to name it and make it accessible.
4651
*/
4752
export const action = actionGeneric;
53+
54+
/**
55+
* Define a Convex HTTP endpoint.
56+
*
57+
* @param func - The function. It receives an {@link HttpEndpointCtx} as its first argument, and a `Request` object
58+
* as its second.
59+
* @returns The wrapped endpoint function. Route a URL path to this function in `convex/http.js`.
60+
*/
61+
export const httpEndpoint = httpEndpointGeneric;

dall-e-storage-action/convex/actions/sendDallE.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fetch from "node-fetch";
22
import { Configuration, OpenAIApi } from "openai";
33
import { action } from "../_generated/server";
44

5-
export default action(async ({ mutation }, prompt, author) => {
5+
export default action(async ({ runMutation }, prompt, author) => {
66
const configuration = new Configuration({
77
apiKey: process.env.OPENAI_API_KEY,
88
});
@@ -52,5 +52,5 @@ export default action(async ({ mutation }, prompt, author) => {
5252
const { storageId } = await postImageResponse.json();
5353

5454
// Write storageId as the body of the message to the Convex database.
55-
await mutation("sendMessage", storageId, author, "dall-e");
55+
await runMutation("sendMessage", storageId, author, "dall-e");
5656
});

dall-e-storage-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dev:init": "convex dev --once"
1111
},
1212
"dependencies": {
13-
"convex": "0.8.0",
13+
"convex": "0.9.0",
1414
"node-fetch": "^2.6.1",
1515
"openai": "~3.1.0",
1616
"react": "^17.0.2",

file-storage/convex/_generated/api.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

file-storage/convex/_generated/dataModel.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

file-storage/convex/_generated/dataModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

file-storage/convex/_generated/react.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

file-storage/convex/_generated/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

file-storage/convex/_generated/server.d.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/
1111

1212
import {
1313
ActionBuilderForAPI,
14+
HttpEndpointBuilderForAPI,
1415
MutationBuilder,
1516
QueryBuilderForDataModel,
1617
ActionCtx as GenericActionCtx,
17-
QueryCtx as GenericQueryCtx,
18+
HttpEndpointCtx as GenericHttpEndpointCtx,
1819
MutationCtx as GenericMutationCtx,
20+
QueryCtx as GenericQueryCtx,
1921
DatabaseReader as GenericDatabaseReader,
2022
DatabaseWriter as GenericDatabaseWriter,
2123
} from "convex/server";
@@ -57,6 +59,18 @@ export declare const mutation: MutationBuilder<DataModel, API>;
5759
*/
5860
export declare const action: ActionBuilderForAPI<API>;
5961

62+
/**
63+
* Define an HTTP endpoint.
64+
*
65+
* This function will be used to respond to HTTP requests received by a Convex
66+
* deployment if the requests matches the path and method where this endpoint
67+
* is routed. Be sure to route your endpoint in `convex/http.js`.
68+
*
69+
* @param func - The endpoint function. It receives a {@link HttpEndpointCtx} as its first argument.
70+
* @returns The wrapped endpoint function. Import this function from `convex/http.js` and route it to hook it up.
71+
*/
72+
export declare const httpEndpoint: HttpEndpointBuilderForAPI<API>;
73+
6074
/**
6175
* A set of services for use within Convex query functions.
6276
*
@@ -84,6 +98,14 @@ export type MutationCtx = GenericMutationCtx<DataModel, API>;
8498
*/
8599
export type ActionCtx = GenericActionCtx<API>;
86100

101+
/**
102+
* A set of services for use within Convex HTTP endpoints.
103+
*
104+
* The HttpEndpointCtx is passed as the first argument to any Convex HTTP
105+
* endpoint run on the server.
106+
*/
107+
export type HttpEndpointCtx = GenericHttpEndpointCtx<API>;
108+
87109
/**
88110
* An interface to read from the database within Convex query functions.
89111
*

file-storage/convex/_generated/server.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/
1111

12-
import { actionGeneric, queryGeneric, mutationGeneric } from "convex/server";
12+
import {
13+
actionGeneric,
14+
httpEndpointGeneric,
15+
queryGeneric,
16+
mutationGeneric,
17+
} from "convex/server";
1318

1419
/**
1520
* Define a query in this Convex app's public API.
@@ -45,3 +50,12 @@ export const mutation = mutationGeneric;
4550
* @returns The wrapped action. Include this as an `export` to name it and make it accessible.
4651
*/
4752
export const action = actionGeneric;
53+
54+
/**
55+
* Define a Convex HTTP endpoint.
56+
*
57+
* @param func - The function. It receives an {@link HttpEndpointCtx} as its first argument, and a `Request` object
58+
* as its second.
59+
* @returns The wrapped endpoint function. Route a URL path to this function in `convex/http.js`.
60+
*/
61+
export const httpEndpoint = httpEndpointGeneric;

file-storage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dev:init": "convex dev --once"
1111
},
1212
"dependencies": {
13-
"convex": "0.8.0",
13+
"convex": "0.9.0",
1414
"react": "^17.0.2",
1515
"react-dom": "^17.0.2"
1616
},

giphy-action/convex/_generated/api.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

giphy-action/convex/_generated/dataModel.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

giphy-action/convex/_generated/dataModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

giphy-action/convex/_generated/react.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

giphy-action/convex/_generated/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* THIS CODE IS AUTOMATICALLY GENERATED.
66
*
7-
* Generated by convex@0.8.0.
7+
* Generated by convex@0.9.0.
88
* To regenerate, run `npx convex codegen`.
99
* @module
1010
*/

0 commit comments

Comments
 (0)