Skip to content

Commit

Permalink
Add UsersActiveChannelsResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyaschorge committed Mar 1, 2024
1 parent b101ef9 commit 6b9e08f
Showing 1 changed file with 59 additions and 56 deletions.
115 changes: 59 additions & 56 deletions src/v2/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ components:
pages:
type: array
items:
$ref: '#/components/schemas/NeynarFramePage'
$ref: "#/components/schemas/NeynarFramePage"
valid:
type: boolean
description: Indicates if the frame is valid.
Expand All @@ -1039,20 +1039,20 @@ components:
type: string
description: The title of the page.
image:
$ref: '#/components/schemas/NeynarPageImage'
$ref: "#/components/schemas/NeynarPageImage"
buttons:
type: array
items:
$ref: '#/components/schemas/NeynarPageButton'
$ref: "#/components/schemas/NeynarPageButton"
input:
$ref: '#/components/schemas/NeynarPageInput'
required:
- uuid
- version
- title
- image
- buttons
- input
$ref: "#/components/schemas/NeynarPageInput"
required:
- uuid
- version
- title
- image
- buttons
- input
NeynarPageImage:
type: object
properties:
Expand Down Expand Up @@ -1085,9 +1085,9 @@ components:
- "link"
next_page:
oneOf:
- $ref: '#/components/schemas/NeynarNextFramePage'
- $ref: '#/components/schemas/NeynarNextFramePageRedirect'
- $ref: '#/components/schemas/NeynarNextFramePageMintUrl'
- $ref: "#/components/schemas/NeynarNextFramePage"
- $ref: "#/components/schemas/NeynarNextFramePageRedirect"
- $ref: "#/components/schemas/NeynarNextFramePageMintUrl"
required:
- title
- action_type
Expand Down Expand Up @@ -1141,7 +1141,7 @@ components:
pages:
type: array
items:
$ref: '#/components/schemas/NeynarFramePage'
$ref: "#/components/schemas/NeynarFramePage"
required:
- name
- pages
Expand All @@ -1155,7 +1155,7 @@ components:
pages:
type: array
items:
$ref: '#/components/schemas/NeynarFramePage'
$ref: "#/components/schemas/NeynarFramePage"
required:
- name
- pages
Expand All @@ -1181,7 +1181,7 @@ components:
$ref: "#/components/schemas/FrameState"
cast:
$ref: "#/components/schemas/CastWithInteractions"
timestamp:
timestamp:
$ref: "#/components/schemas/Timestamp"
ValidateFrameActionResponse:
type: object
Expand All @@ -1205,7 +1205,7 @@ components:
- fid
properties:
fid:
type: integer
type: integer
RegisterUserReqBody:
type: object
required:
Expand All @@ -1216,7 +1216,7 @@ components:
properties:
signature:
type: string
fid:
fid:
type: number
requested_user_custody_address:
type: string
Expand All @@ -1239,6 +1239,15 @@ components:
type: string
signer:
$ref: "#/components/schemas/Signer"
UsersActiveChannelsResponse:
type: object
properties:
user:
$ref: "#/components/schemas/User"
channels:
type: array
items:
$ref: "#/components/schemas/Channel"

parameters:
ApiKey:
Expand Down Expand Up @@ -1553,7 +1562,8 @@ paths:
tags:
- User
summary: Fetches users based on Eth or Sol addresses
description: Fetches all users based on multiple Ethereum or Solana addresses.
description:
Fetches all users based on multiple Ethereum or Solana addresses.


Each farcaster user has a custody Ethereum address and optionally verified Ethereum or Solana addresses. This endpoint returns all users that have any of the given addresses as their custody or verified Ethereum or Solana addresses.
Expand Down Expand Up @@ -2117,14 +2127,14 @@ paths:
format: uuid
description: UUID of the frame to retrieve
responses:
'200':
"200":
description: A frame object
content:
application/json:
schema:
$ref: '#/components/schemas/NeynarFrame'
'404':
$ref: '#/components/responses/404Response'
$ref: "#/components/schemas/NeynarFrame"
"404":
$ref: "#/components/responses/404Response"
post:
tags:
- Frame
Expand All @@ -2135,16 +2145,16 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/NeynarFrameCreationRequest'
$ref: "#/components/schemas/NeynarFrameCreationRequest"
responses:
'200':
"200":
description: Frame created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/NeynarFrame'
'400':
$ref: '#/components/responses/400Response'
$ref: "#/components/schemas/NeynarFrame"
"400":
$ref: "#/components/responses/400Response"
put:
tags:
- Frame
Expand All @@ -2155,18 +2165,18 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/NeynarFrameUpdateRequest'
$ref: "#/components/schemas/NeynarFrameUpdateRequest"
responses:
'200':
"200":
description: Frame updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/NeynarFrame'
'404':
$ref: '#/components/responses/404Response'
'400':
$ref: '#/components/responses/400Response'
$ref: "#/components/schemas/NeynarFrame"
"404":
$ref: "#/components/responses/404Response"
"400":
$ref: "#/components/responses/400Response"
delete:
tags:
- Frame
Expand All @@ -2183,7 +2193,7 @@ paths:
type: string
format: uuid
responses:
'200':
"200":
description: Frame deleted successfully
content:
application/json:
Expand All @@ -2195,25 +2205,25 @@ paths:
uuid:
type: string
format: uuid
'404':
$ref: '#/components/responses/404Response'
"404":
$ref: "#/components/responses/404Response"
/farcaster/frame/list:
get:
tags:
- Frame
summary: Retrieve a list of frames
description: Retrieve a list of frames made by the developer (identified by API key)
responses:
'200':
"200":
description: A list of frames
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/NeynarFrame'
'404':
$ref: '#/components/responses/404Response'
$ref: "#/components/schemas/NeynarFrame"
"404":
$ref: "#/components/responses/404Response"
/farcaster/reaction:
post:
tags:
Expand Down Expand Up @@ -2789,34 +2799,27 @@ paths:
tags:
- Channel
summary: Get channels that a user is active in
description: Fetches all channels that a user has casted in, in reverse chronological order. Once follows are on the protocol, we will allow choosing for different types of user activity (e.g. casted, followed, etc.).
description: Fetches all channels that a user has casted in, in reverse chronological order. Once follows are on the protocol, we will allow choosing for different types of user activity (e.g. casted, followed, etc.).
operationId: active-channels
parameters:
- $ref: "#/components/parameters/ApiKey"
- name: fid
in: query
required: true
schema:
$ref: '#/components/schemas/Fid'
$ref: "#/components/schemas/Fid"
description: The user's fid (identifier)
example: 194
responses:
'200':
"200":
description: successful operation
content:
application/json:
schema:
type: object
properties:
user:
$ref: '#/components/schemas/User'
channels:
type: array
items:
$ref: '#/components/schemas/Channel'
'400':
$ref: "#/components/schemas/UsersActiveChannelsResponse"
"400":
$ref: "#/components/responses/400Response"
'404':
"404":
$ref: "#/components/responses/400Response"
/farcaster/channel/users:
get:
Expand Down

0 comments on commit 6b9e08f

Please sign in to comment.