Skip to content

Commit 0ef3913

Browse files
update api specs
1 parent b0c9044 commit 0ef3913

File tree

1 file changed

+44
-5
lines changed
  • src/glassflow/models/api

1 file changed

+44
-5
lines changed

src/glassflow/models/api/api.py

+44-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@ class CreateOrganization(BaseModel):
2020
name: str
2121

2222

23+
class PatchOrganization(BaseModel):
24+
name: str
25+
26+
2327
class Organization(CreateOrganization):
2428
id: str
29+
created_at: datetime
2530

2631

2732
class OrganizationScope(Organization):
@@ -50,6 +55,28 @@ class CreateSecret(BaseModel):
5055
value: str
5156

5257

58+
class CreateInvite(BaseModel):
59+
email: str
60+
61+
62+
class Invite(CreateInvite):
63+
id: str
64+
65+
66+
class Invites(RootModel[list[Invite]]):
67+
root: list[Invite]
68+
69+
70+
class OrganizationMember(BaseModel):
71+
id: str
72+
name: str
73+
email: str
74+
75+
76+
class OrganizationMembers(RootModel[list[OrganizationMember]]):
77+
root: list[OrganizationMember]
78+
79+
5380
class SignUp(BaseModel):
5481
access_token: str
5582
id_token: str
@@ -341,6 +368,23 @@ class Secret(BaseModel):
341368
key: SecretKey
342369

343370

371+
class CreateInvites(BaseModel):
372+
invites: list[CreateInvite]
373+
374+
375+
class ListOrganizationInvites(PaginationResponse):
376+
items: Invites
377+
378+
379+
class ListOrganizationMembers(PaginationResponse):
380+
items: OrganizationMembers
381+
382+
383+
class ClientHeader1(BaseModel):
384+
name: str
385+
value: ConnectorValueValue
386+
387+
344388
class ListPipelines(PaginationResponse):
345389
pipelines: SpacePipelines
346390

@@ -497,11 +541,6 @@ class SinkConnectorSnowflakeCDCJSON(BaseModel):
497541
configuration: Optional[Configuration6] = None
498542

499543

500-
class ClientHeader1(BaseModel):
501-
name: str
502-
value: ConnectorValue
503-
504-
505544
class Configuration7(BaseModel):
506545
api_key: ConnectorValue
507546
api_host: ConnectorValue

0 commit comments

Comments
 (0)