Skip to content

Commit

Permalink
Release SDK 1a6eea7 (#1560)
Browse files Browse the repository at this point in the history
commit a9e2f1f
Author: GitHub Action Bot <[email protected]>
Date:   Tue Nov 19 00:24:01 2024 +0000

    sdk-1a6eea7-0.0.110

commit d8a0cc1
Author: GitHub Action Bot <[email protected]>
Date:   Tue Nov 19 00:23:51 2024 +0000

    docs for version sdk-1a6eea7-
  • Loading branch information
jterzis authored Nov 19, 2024
1 parent 1a6eea7 commit 255c94d
Show file tree
Hide file tree
Showing 25 changed files with 188 additions and 68 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.0.109",
"version": "0.0.110",
"packages": ["packages/*", "protocol"],
"npmClient": "yarn"
}
2 changes: 1 addition & 1 deletion packages/create-river-build-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-river-build-app",
"version": "0.0.109",
"version": "0.0.110",
"bin": "index.js",
"engines": {
"node": "^18.0.0 || >=20.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/dlog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@river-build/dlog",
"version": "0.0.109",
"version": "0.0.110",
"packageManager": "[email protected]",
"type": "module",
"main": "dist/index.js",
Expand Down
2 changes: 2 additions & 0 deletions packages/docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@
"sdk/react-sdk/api/useChannel",
"sdk/react-sdk/api/useChannelTimeline",
"sdk/react-sdk/api/useCreateChannel",
"sdk/react-sdk/api/useCreateDm",
"sdk/react-sdk/api/useCreateGdm",
"sdk/react-sdk/api/useCreateSpace",
"sdk/react-sdk/api/useDm",
"sdk/react-sdk/api/useDmTimeline",
Expand Down
12 changes: 6 additions & 6 deletions packages/docs/sdk/react-sdk/api/useChannel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ function useChannel(
): {
data: ChannelModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: ChannelModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: ChannelModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand Down Expand Up @@ -71,21 +71,21 @@ The ChannelModel data.
{
data: ChannelModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: ChannelModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: ChannelModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand Down
59 changes: 59 additions & 0 deletions packages/docs/sdk/react-sdk/api/useCreateDm.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
title: useCreateDm
---
A hook that allows you to create a new direct message (DM).

## Imports

```ts
import { useCreateDm } from '@river-build/react-sdk'
```

## Definition

```ts
function useCreateDm(
config?: ActionConfig<Dms['createDM']>,
): {
data: {
streamId: string;
} | undefined;
error: Error | undefined;
isPending: boolean;
isSuccess: boolean;
isError: boolean;
createDM: (userId: string, streamSettings?: PlainMessage<StreamSettings> | undefined) => Promise<{
streamId: string;
}>;
}
```

**Source:** [useCreateDm](https://github.com/river-build/river/blob/main/packages/react-sdk/src/useCreateDm.ts)

## Parameters

### config

- **Type:** `ActionConfig<Dms['createDM']>`
- **Optional**

The action config.

## Return Type

An object containing the `createDM` action and the rest of the action result.

```ts
{
data: {
streamId: string;
} | undefined;
error: Error | undefined;
isPending: boolean;
isSuccess: boolean;
isError: boolean;
createDM: (userId: string, streamSettings?: PlainMessage<StreamSettings> | undefined) => Promise<{
streamId: string;
}>;
}
```
59 changes: 59 additions & 0 deletions packages/docs/sdk/react-sdk/api/useCreateGdm.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
title: useCreateGdm
---
A hook that allows you to create a new group direct message (GDM).

## Imports

```ts
import { useCreateGdm } from '@river-build/react-sdk'
```

## Definition

```ts
function useCreateGdm(
config?: ActionConfig<Gdms['createGDM']>,
): {
data: {
streamId: string;
} | undefined;
error: Error | undefined;
isPending: boolean;
isSuccess: boolean;
isError: boolean;
createGDM: (userIds: string[], channelProperties?: EncryptedData | undefined, streamSettings?: PlainMessage<StreamSettings> | undefined) => Promise<{
streamId: string;
}>;
}
```

**Source:** [useCreateGdm](https://github.com/river-build/river/blob/main/packages/react-sdk/src/useCreateGdm.ts)

## Parameters

### config

- **Type:** `ActionConfig<Gdms['createGDM']>`
- **Optional**

The action config.

## Return Type

An object containing the `createGDM` action and the rest of the action result.

```ts
{
data: {
streamId: string;
} | undefined;
error: Error | undefined;
isPending: boolean;
isSuccess: boolean;
isError: boolean;
createGDM: (userIds: string[], channelProperties?: EncryptedData | undefined, streamSettings?: PlainMessage<StreamSettings> | undefined) => Promise<{
streamId: string;
}>;
}
```
12 changes: 6 additions & 6 deletions packages/docs/sdk/react-sdk/api/useDm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ function useDm(
): {
data: DmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: DmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: DmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand Down Expand Up @@ -64,21 +64,21 @@ The DmModel of the DM.
{
data: DmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: DmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: DmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand Down
12 changes: 6 additions & 6 deletions packages/docs/sdk/react-sdk/api/useGdm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ function useGdm(
): {
data: GdmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: GdmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: GdmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand Down Expand Up @@ -64,21 +64,21 @@ The GdmModel of the Group DM.
{
data: GdmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: GdmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
} | {
data: GdmModel;
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand Down
12 changes: 6 additions & 6 deletions packages/docs/sdk/react-sdk/api/useMember.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function useMember(
config?: ObservableConfig.FromObservable<Member>,
): {
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand All @@ -37,7 +37,7 @@ function useMember(
membership: MembershipOp | undefined;
} | {
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand All @@ -54,7 +54,7 @@ function useMember(
membership: MembershipOp | undefined;
} | {
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand Down Expand Up @@ -99,7 +99,7 @@ The Member data.
```ts
{
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand All @@ -116,7 +116,7 @@ The Member data.
membership: MembershipOp | undefined;
} | {
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand All @@ -133,7 +133,7 @@ The Member data.
membership: MembershipOp | undefined;
} | {
error: Error | undefined;
status: "loading" | "loaded" | "error";
status: "error" | "loading" | "loaded";
isLoading: boolean;
isError: boolean;
isLoaded: boolean;
Expand Down
Loading

0 comments on commit 255c94d

Please sign in to comment.