Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Dec 3, 2024
1 parent 114c2b3 commit d873000
Show file tree
Hide file tree
Showing 10 changed files with 320 additions and 308 deletions.
16 changes: 16 additions & 0 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ types:
allow_newsletters:
type: optional<boolean>
docs: Allow sending newsletters to user
date_joined: optional<datetime>
source:
openapi: openapi/openapi.yaml
Filter:
Expand Down Expand Up @@ -373,6 +374,7 @@ types:
validation:
format: email
maxLength: 254
created_at: optional<datetime>
source:
openapi: openapi/openapi.yaml
Organization:
Expand Down Expand Up @@ -430,6 +432,7 @@ types:
allow_newsletters:
type: optional<boolean>
docs: Allow sending newsletters to user
date_joined: optional<datetime>
created_projects: optional<string>
contributed_to_projects: optional<string>
source:
Expand Down Expand Up @@ -2265,6 +2268,19 @@ types:
docs: A unique integer value identifying this project.
source:
openapi: openapi/openapi.yaml
OrganizationMember:
properties:
user:
type: integer
docs: User ID
organization:
type: integer
docs: Organization ID
contributed_projects_count: optional<string>
annotations_count: optional<string>
created_at: optional<datetime>
source:
openapi: openapi/openapi.yaml
PromptCreatedBy:
discriminated: false
docs: User ID of the creator of the prompt
Expand Down
1 change: 1 addition & 0 deletions .mock/definition/organizations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ service:
- id: 1
title: title
contact_info: contact_info
created_at: '2024-01-15T09:30:00Z'
get:
path: /api/organizations/{id}
method: GET
Expand Down
27 changes: 27 additions & 0 deletions .mock/definition/organizations/members.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,33 @@ service:
organization: 1
user:
username: username
get:
path: /api/organizations/{id}/memberships/{user_pk}/
method: GET
auth: true
docs: Get organization member details by user ID.
path-parameters:
id: string
user_pk:
type: integer
docs: >-
A unique integer value identifying the user to get organization
details for.
display-name: Get organization member details
response:
docs: ''
type: root.OrganizationMember
examples:
- path-parameters:
id: id
user_pk: 1
response:
body:
user: 1
organization: 1
contributed_projects_count: contributed_projects_count
annotations_count: annotations_count
created_at: '2024-01-15T09:30:00Z'
delete:
path: /api/organizations/{id}/memberships/{user_pk}/
method: DELETE
Expand Down
5 changes: 5 additions & 0 deletions .mock/definition/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ service:
phone: phone
active_organization: 1
allow_newsletters: true
date_joined: '2024-01-15T09:30:00Z'
audiences:
- public
list:
Expand Down Expand Up @@ -107,6 +108,7 @@ service:
phone: phone
active_organization: 1
allow_newsletters: true
date_joined: '2024-01-15T09:30:00Z'
audiences:
- public
create:
Expand Down Expand Up @@ -166,6 +168,7 @@ service:
phone: phone
active_organization: 1
allow_newsletters: true
date_joined: '2024-01-15T09:30:00Z'
audiences:
- public
get:
Expand Down Expand Up @@ -202,6 +205,7 @@ service:
phone: phone
active_organization: 1
allow_newsletters: true
date_joined: '2024-01-15T09:30:00Z'
audiences:
- public
delete:
Expand Down Expand Up @@ -299,6 +303,7 @@ service:
phone: phone
active_organization: 1
allow_newsletters: true
date_joined: '2024-01-15T09:30:00Z'
audiences:
- public
source:
Expand Down
13 changes: 13 additions & 0 deletions .mock/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8279,6 +8279,10 @@ components:
description: Allow sending newsletters to user
type: boolean
nullable: true
date_joined:
title: Date joined
type: string
format: date-time
Filter:
required:
- column
Expand Down Expand Up @@ -8696,6 +8700,11 @@ components:
format: email
maxLength: 254
nullable: true
created_at:
title: Created at
type: string
format: date-time
readOnly: true
Organization:
required:
- title
Expand Down Expand Up @@ -8794,6 +8803,10 @@ components:
description: Allow sending newsletters to user
type: boolean
nullable: true
date_joined:
title: Date joined
type: string
format: date-time
created_projects:
title: Created projects
type: string
Expand Down
Loading

0 comments on commit d873000

Please sign in to comment.