Skip to content

Commit f0e224b

Browse files
fix: ROOT-85: allow managers to access Cloud Storage screen (#550)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 5c8b6d2 commit f0e224b

File tree

13 files changed

+574
-179
lines changed

13 files changed

+574
-179
lines changed

.mock/definition/__package__.yml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7327,6 +7327,118 @@ types:
73277327
maxLength: 2048
73287328
source:
73297329
openapi: openapi/openapi.yaml
7330+
WhoAmILseFieldsOnboardingState:
7331+
discriminated: false
7332+
docs: |-
7333+
The current stage of user onboarding
7334+
7335+
* `not_started` - Not Started
7336+
* `signup` - Signup
7337+
* `trial_signup` - Trial Signup
7338+
* `first_tutorial` - First Tutorial
7339+
* `in_app_guidance` - In App Guidance
7340+
* `complete` - Complete
7341+
union:
7342+
- OnboardingStateEnum
7343+
- BlankEnum
7344+
- NullEnum
7345+
source:
7346+
openapi: openapi/openapi.yaml
7347+
inline: true
7348+
WhoAmILseFieldsTrialRole:
7349+
discriminated: false
7350+
union:
7351+
- TrialRoleEnum
7352+
- BlankEnum
7353+
- NullEnum
7354+
source:
7355+
openapi: openapi/openapi.yaml
7356+
inline: true
7357+
WhoAmILseFields:
7358+
properties:
7359+
active_organization_external_id: optional<string>
7360+
email_notification_settings: string
7361+
invite_activated: optional<boolean>
7362+
invite_expired: string
7363+
invite_expired_at: string
7364+
invited_at: optional<datetime>
7365+
invited_by: optional<integer>
7366+
onboarding_state:
7367+
type: optional<WhoAmILseFieldsOnboardingState>
7368+
docs: |-
7369+
The current stage of user onboarding
7370+
7371+
* `not_started` - Not Started
7372+
* `signup` - Signup
7373+
* `trial_signup` - Trial Signup
7374+
* `first_tutorial` - First Tutorial
7375+
* `in_app_guidance` - In App Guidance
7376+
* `complete` - Complete
7377+
social_auth_finished:
7378+
type: optional<boolean>
7379+
docs: Is user finished social authentication
7380+
trial_company:
7381+
type: optional<string>
7382+
validation:
7383+
maxLength: 1000
7384+
trial_experience_labeling:
7385+
type: optional<string>
7386+
validation:
7387+
maxLength: 1000
7388+
trial_license_enterprise: optional<boolean>
7389+
trial_models_in_production:
7390+
type: optional<string>
7391+
validation:
7392+
maxLength: 1000
7393+
trial_role: optional<WhoAmILseFieldsTrialRole>
7394+
source:
7395+
openapi: openapi/openapi.yaml
7396+
WhoAmIUser:
7397+
docs: |-
7398+
A ModelSerializer that takes additional arguments for
7399+
"fields", "omit" and "expand" in order to
7400+
control which fields are displayed, and whether to replace simple
7401+
values with complex, nested serializations
7402+
properties:
7403+
active_organization: optional<integer>
7404+
active_organization_meta: string
7405+
allow_newsletters:
7406+
type: optional<boolean>
7407+
docs: Allow sending newsletters to user
7408+
avatar: string
7409+
custom_hotkeys: optional<unknown>
7410+
date_joined: optional<datetime>
7411+
email:
7412+
type: optional<string>
7413+
validation:
7414+
format: email
7415+
maxLength: 254
7416+
first_name:
7417+
type: optional<string>
7418+
validation:
7419+
maxLength: 256
7420+
id: integer
7421+
initials:
7422+
type: string
7423+
default: '?'
7424+
last_activity: datetime
7425+
last_name:
7426+
type: optional<string>
7427+
validation:
7428+
maxLength: 256
7429+
lse_fields: WhoAmILseFields
7430+
org_membership: list<OrganizationMembership>
7431+
pause: string
7432+
phone:
7433+
type: optional<string>
7434+
validation:
7435+
maxLength: 256
7436+
username:
7437+
type: string
7438+
validation:
7439+
maxLength: 256
7440+
source:
7441+
openapi: openapi/openapi.yaml
73307442
Workspace:
73317443
docs: |-
73327444
A ModelSerializer that takes additional arguments for

.mock/definition/users.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ service:
200200
display-name: Retrieve my user
201201
response:
202202
docs: ''
203-
type: root.LseUser
203+
type: root.WhoAmIUser
204204
examples:
205205
- response:
206206
body:
@@ -218,6 +218,7 @@ service:
218218
last_activity: '2024-01-15T09:30:00Z'
219219
last_name: last_name
220220
lse_fields:
221+
active_organization_external_id: active_organization_external_id
221222
email_notification_settings: email_notification_settings
222223
invite_activated: true
223224
invite_expired: invite_expired

.mock/openapi/openapi.yaml

Lines changed: 149 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ paths:
12861286
content:
12871287
application/json:
12881288
schema:
1289-
$ref: '#/components/schemas/LseUser'
1289+
$ref: '#/components/schemas/WhoAmIUser'
12901290
description: ''
12911291
security:
12921292
- Token: []
@@ -27299,6 +27299,154 @@ components:
2729927299
required:
2730027300
- url
2730127301
type: object
27302+
WhoAmILseFields:
27303+
properties:
27304+
active_organization_external_id:
27305+
nullable: true
27306+
readOnly: true
27307+
type: string
27308+
email_notification_settings:
27309+
readOnly: true
27310+
type: string
27311+
invite_activated:
27312+
nullable: true
27313+
type: boolean
27314+
invite_expired:
27315+
readOnly: true
27316+
type: string
27317+
invite_expired_at:
27318+
readOnly: true
27319+
type: string
27320+
invited_at:
27321+
format: date-time
27322+
nullable: true
27323+
type: string
27324+
invited_by:
27325+
nullable: true
27326+
type: integer
27327+
onboarding_state:
27328+
description: |-
27329+
The current stage of user onboarding
27330+
27331+
* `not_started` - Not Started
27332+
* `signup` - Signup
27333+
* `trial_signup` - Trial Signup
27334+
* `first_tutorial` - First Tutorial
27335+
* `in_app_guidance` - In App Guidance
27336+
* `complete` - Complete
27337+
nullable: true
27338+
oneOf:
27339+
- $ref: '#/components/schemas/OnboardingStateEnum'
27340+
- $ref: '#/components/schemas/BlankEnum'
27341+
- $ref: '#/components/schemas/NullEnum'
27342+
social_auth_finished:
27343+
description: Is user finished social authentication
27344+
nullable: true
27345+
type: boolean
27346+
trial_company:
27347+
maxLength: 1000
27348+
nullable: true
27349+
type: string
27350+
trial_experience_labeling:
27351+
maxLength: 1000
27352+
nullable: true
27353+
type: string
27354+
trial_license_enterprise:
27355+
nullable: true
27356+
type: boolean
27357+
trial_models_in_production:
27358+
maxLength: 1000
27359+
nullable: true
27360+
type: string
27361+
trial_role:
27362+
nullable: true
27363+
oneOf:
27364+
- $ref: '#/components/schemas/TrialRoleEnum'
27365+
- $ref: '#/components/schemas/BlankEnum'
27366+
- $ref: '#/components/schemas/NullEnum'
27367+
required:
27368+
- active_organization_external_id
27369+
- email_notification_settings
27370+
- invite_expired
27371+
- invite_expired_at
27372+
type: object
27373+
WhoAmIUser:
27374+
description: |-
27375+
A ModelSerializer that takes additional arguments for
27376+
"fields", "omit" and "expand" in order to
27377+
control which fields are displayed, and whether to replace simple
27378+
values with complex, nested serializations
27379+
properties:
27380+
active_organization:
27381+
nullable: true
27382+
type: integer
27383+
active_organization_meta:
27384+
readOnly: true
27385+
type: string
27386+
allow_newsletters:
27387+
description: Allow sending newsletters to user
27388+
nullable: true
27389+
type: boolean
27390+
avatar:
27391+
readOnly: true
27392+
type: string
27393+
custom_hotkeys:
27394+
description: Custom keyboard shortcuts configuration for the user interface
27395+
nullable: true
27396+
date_joined:
27397+
format: date-time
27398+
type: string
27399+
email:
27400+
format: email
27401+
maxLength: 254
27402+
title: Email address
27403+
type: string
27404+
first_name:
27405+
maxLength: 256
27406+
type: string
27407+
id:
27408+
readOnly: true
27409+
type: integer
27410+
initials:
27411+
default: '?'
27412+
readOnly: true
27413+
type: string
27414+
last_activity:
27415+
format: date-time
27416+
readOnly: true
27417+
type: string
27418+
last_name:
27419+
maxLength: 256
27420+
type: string
27421+
lse_fields:
27422+
allOf:
27423+
- $ref: '#/components/schemas/WhoAmILseFields'
27424+
readOnly: true
27425+
org_membership:
27426+
items:
27427+
$ref: '#/components/schemas/OrganizationMembership'
27428+
readOnly: true
27429+
type: array
27430+
pause:
27431+
readOnly: true
27432+
type: string
27433+
phone:
27434+
maxLength: 256
27435+
type: string
27436+
username:
27437+
maxLength: 256
27438+
type: string
27439+
required:
27440+
- active_organization_meta
27441+
- avatar
27442+
- id
27443+
- initials
27444+
- last_activity
27445+
- lse_fields
27446+
- org_membership
27447+
- pause
27448+
- username
27449+
type: object
2730227450
Workspace:
2730327451
description: |-
2730427452
A ModelSerializer that takes additional arguments for

0 commit comments

Comments
 (0)