Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ export const handleIncomingMessage = internalMutation({
});
```

If the `handleIncomingMessage` callback throws an error, the message will not be
saved and the webhook will throw an error. Twilio
[does not retry webhook requests](https://www.twilio.com/docs/usage/security/availability-reliability),
but you can replay them manually from the Twilio "Error logs" console.

## Querying Messages

To list all the mssages, use the `list` method in your Convex function.
Expand Down
11 changes: 11 additions & 0 deletions src/component/_generated/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export type Mounts = {
num_segments: string;
price: string | null;
price_unit: string | null;
rest?: any;
sid: string;
status: string;
subresource_uris: { feedback?: string; media: string } | null;
Expand Down Expand Up @@ -91,6 +92,7 @@ export type Mounts = {
num_segments: string;
price: string | null;
price_unit: string | null;
rest?: any;
sid: string;
status: string;
subresource_uris: { feedback?: string; media: string } | null;
Expand Down Expand Up @@ -119,6 +121,7 @@ export type Mounts = {
num_segments: string;
price: string | null;
price_unit: string | null;
rest?: any;
sid: string;
status: string;
subresource_uris: { feedback?: string; media: string } | null;
Expand Down Expand Up @@ -147,6 +150,7 @@ export type Mounts = {
num_segments: string;
price: string | null;
price_unit: string | null;
rest?: any;
sid: string;
status: string;
subresource_uris: { feedback?: string; media: string } | null;
Expand Down Expand Up @@ -180,6 +184,7 @@ export type Mounts = {
num_segments: string;
price: string | null;
price_unit: string | null;
rest?: any;
sid: string;
status: string;
subresource_uris: { feedback?: string; media: string } | null;
Expand Down Expand Up @@ -208,6 +213,7 @@ export type Mounts = {
num_segments: string;
price: string | null;
price_unit: string | null;
rest?: any;
sid: string;
status: string;
subresource_uris: { feedback?: string; media: string } | null;
Expand Down Expand Up @@ -236,6 +242,7 @@ export type Mounts = {
num_segments: string;
price: string | null;
price_unit: string | null;
rest?: any;
sid: string;
status: string;
subresource_uris: { feedback?: string; media: string } | null;
Expand Down Expand Up @@ -264,6 +271,7 @@ export type Mounts = {
num_segments: string;
price: string | null;
price_unit: string | null;
rest?: any;
sid: string;
status: string;
subresource_uris: { feedback?: string; media: string } | null;
Expand Down Expand Up @@ -292,6 +300,7 @@ export type Mounts = {
num_segments: string;
price: string | null;
price_unit: string | null;
rest?: any;
sid: string;
status: string;
subresource_uris: { feedback?: string; media: string } | null;
Expand Down Expand Up @@ -335,4 +344,6 @@ export declare const internal: FilterApi<
FunctionReference<any, "internal">
>;

export declare const components: {};

/* prettier-ignore-end */
3 changes: 2 additions & 1 deletion src/component/_generated/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @module
*/

import { anyApi } from "convex/server";
import { anyApi, componentsGeneric } from "convex/server";

/**
* A utility for referencing Convex functions in your app's API.
Expand All @@ -22,5 +22,6 @@ import { anyApi } from "convex/server";
*/
export const api = anyApi;
export const internal = anyApi;
export const components = componentsGeneric();

/* prettier-ignore-end */
2 changes: 0 additions & 2 deletions src/component/_generated/server.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,4 @@ export type DatabaseReader = GenericDatabaseReader<DataModel>;
*/
export type DatabaseWriter = GenericDatabaseWriter<DataModel>;

export declare const components: {};

/* prettier-ignore-end */
2 changes: 0 additions & 2 deletions src/component/_generated/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,4 @@ export const internalAction = internalActionGeneric;
*/
export const httpAction = httpActionGeneric;

export const components = componentsGeneric();

/* prettier-ignore-end */