Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
863 changes: 416 additions & 447 deletions gen/go/qdrant/cloud/account/v1/account.pb.go

Large diffs are not rendered by default.

33 changes: 4 additions & 29 deletions gen/openapiv2/qdrant/cloud/account/v1/account.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -525,23 +525,6 @@
}
}
},
"parameters": [
{
"name": "statusFilter",
"description": "Optional: Filter invites by status (e.g. pending only).\n\n - ACCOUNT_INVITE_STATUS_UNSPECIFIED: Default, unspecified status.\n - ACCOUNT_INVITE_STATUS_PENDING: The invite is pending and waiting for the user to accept or reject.\n - ACCOUNT_INVITE_STATUS_ACCEPTED: The invite has been accepted by the user.\n - ACCOUNT_INVITE_STATUS_REJECTED: The invite has been rejected by the user.\n - ACCOUNT_INVITE_STATUS_CANCELED: The invite has been canceled (e.g., by an account admin).",
"in": "query",
"required": false,
"type": "string",
"enum": [
"ACCOUNT_INVITE_STATUS_UNSPECIFIED",
"ACCOUNT_INVITE_STATUS_PENDING",
"ACCOUNT_INVITE_STATUS_ACCEPTED",
"ACCOUNT_INVITE_STATUS_REJECTED",
"ACCOUNT_INVITE_STATUS_CANCELED"
],
"default": "ACCOUNT_INVITE_STATUS_UNSPECIFIED"
}
],
"tags": [
"AccountService"
]
Expand Down Expand Up @@ -583,19 +566,15 @@
"type": "string",
"description": "The identifier of the user who created the invite (in GUID format).\nThis is a read-only field, populated by the server based on the authenticated user."
},
"createdByName": {
"createdByEmail": {
"type": "string",
"description": "Name of the user that created this invite.\nThis is a read-only value, populated by the server based on the created_by_user_id field."
"description": "The email of the user who created this invite.\nThis is a read-only value, populated by the server based on the created_by_user_id field."
},
"lastModifiedAt": {
"type": "string",
"format": "date-time",
"description": "The timestamp when the invite was last updated (e.g., status change).\nThis is a read-only field."
},
"userId": {
"type": "string",
"description": "Identifier of the user that accepted or rejected this invite.\nThis is a read-only value."
},
"status": {
"$ref": "#/definitions/v1AccountInviteStatus",
"description": "The status of the invite.\nThis is a read-only field."
Expand Down Expand Up @@ -761,19 +740,15 @@
"type": "string",
"description": "The identifier of the user who created the invite (in GUID format).\nThis is a read-only field, populated by the server based on the authenticated user."
},
"createdByName": {
"createdByEmail": {
"type": "string",
"description": "Name of the user that created this invite.\nThis is a read-only value, populated by the server based on the created_by_user_id field."
"description": "The email of the user who created this invite.\nThis is a read-only value, populated by the server based on the created_by_user_id field."
},
"lastModifiedAt": {
"type": "string",
"format": "date-time",
"description": "The timestamp when the invite was last updated (e.g., status change).\nThis is a read-only field."
},
"userId": {
"type": "string",
"description": "Identifier of the user that accepted or rejected this invite.\nThis is a read-only value."
},
"status": {
"$ref": "#/definitions/v1AccountInviteStatus",
"description": "The status of the invite.\nThis is a read-only field."
Expand Down
96 changes: 47 additions & 49 deletions gen/python/qdrant/cloud/account/v1/account_pb2.py

Large diffs are not rendered by default.

16 changes: 6 additions & 10 deletions gen/python/qdrant/cloud/account/v1/account_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,8 @@ class ListAccountInvitesResponse(_message.Message):
def __init__(self, items: _Optional[_Iterable[_Union[AccountInvite, _Mapping]]] = ...) -> None: ...

class ListReceivedAccountInvitesRequest(_message.Message):
__slots__ = ("status_filter",)
STATUS_FILTER_FIELD_NUMBER: _ClassVar[int]
status_filter: AccountInviteStatus
def __init__(self, status_filter: _Optional[_Union[AccountInviteStatus, str]] = ...) -> None: ...
__slots__ = ()
def __init__(self) -> None: ...

class ListReceivedAccountInvitesResponse(_message.Message):
__slots__ = ("items",)
Expand Down Expand Up @@ -227,17 +225,16 @@ class Account(_message.Message):
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., last_modified_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., owner_id: _Optional[str] = ..., owner_email: _Optional[str] = ..., privileges: _Optional[_Iterable[str]] = ...) -> None: ...

class AccountInvite(_message.Message):
__slots__ = ("id", "account_id", "account_name", "user_email", "user_role_ids", "created_at", "created_by_user_id", "created_by_name", "last_modified_at", "user_id", "status")
__slots__ = ("id", "account_id", "account_name", "user_email", "user_role_ids", "created_at", "created_by_user_id", "created_by_email", "last_modified_at", "status")
ID_FIELD_NUMBER: _ClassVar[int]
ACCOUNT_ID_FIELD_NUMBER: _ClassVar[int]
ACCOUNT_NAME_FIELD_NUMBER: _ClassVar[int]
USER_EMAIL_FIELD_NUMBER: _ClassVar[int]
USER_ROLE_IDS_FIELD_NUMBER: _ClassVar[int]
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
CREATED_BY_USER_ID_FIELD_NUMBER: _ClassVar[int]
CREATED_BY_NAME_FIELD_NUMBER: _ClassVar[int]
CREATED_BY_EMAIL_FIELD_NUMBER: _ClassVar[int]
LAST_MODIFIED_AT_FIELD_NUMBER: _ClassVar[int]
USER_ID_FIELD_NUMBER: _ClassVar[int]
STATUS_FIELD_NUMBER: _ClassVar[int]
id: str
account_id: str
Expand All @@ -246,11 +243,10 @@ class AccountInvite(_message.Message):
user_role_ids: _containers.RepeatedScalarFieldContainer[str]
created_at: _timestamp_pb2.Timestamp
created_by_user_id: str
created_by_name: str
created_by_email: str
last_modified_at: _timestamp_pb2.Timestamp
user_id: str
status: AccountInviteStatus
def __init__(self, id: _Optional[str] = ..., account_id: _Optional[str] = ..., account_name: _Optional[str] = ..., user_email: _Optional[str] = ..., user_role_ids: _Optional[_Iterable[str]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., created_by_user_id: _Optional[str] = ..., created_by_name: _Optional[str] = ..., last_modified_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., user_id: _Optional[str] = ..., status: _Optional[_Union[AccountInviteStatus, str]] = ...) -> None: ...
def __init__(self, id: _Optional[str] = ..., account_id: _Optional[str] = ..., account_name: _Optional[str] = ..., user_email: _Optional[str] = ..., user_role_ids: _Optional[_Iterable[str]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., created_by_user_id: _Optional[str] = ..., created_by_email: _Optional[str] = ..., last_modified_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., status: _Optional[_Union[AccountInviteStatus, str]] = ...) -> None: ...

class AccountMember(_message.Message):
__slots__ = ("account_member", "is_owner")
Expand Down
24 changes: 6 additions & 18 deletions gen/typescript/qdrant/cloud/account/v1/account_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,11 @@ export declare const ListAccountInvitesResponseSchema: GenMessage<ListAccountInv
* ListReceivedAccountInvitesRequest is the request for the ListReceivedAccountInvites function.
* This lists invites for the authenticated user across all accounts.
*
* Empty
*
* @generated from message qdrant.cloud.account.v1.ListReceivedAccountInvitesRequest
*/
export declare type ListReceivedAccountInvitesRequest = Message<"qdrant.cloud.account.v1.ListReceivedAccountInvitesRequest"> & {
/**
* Optional: Filter invites by status (e.g. pending only).
*
* @generated from field: optional qdrant.cloud.account.v1.AccountInviteStatus status_filter = 1;
*/
statusFilter?: AccountInviteStatus;
};

/**
Expand Down Expand Up @@ -794,12 +790,12 @@ export declare type AccountInvite = Message<"qdrant.cloud.account.v1.AccountInvi
createdByUserId?: string;

/**
* Name of the user that created this invite.
* The email of the user who created this invite.
* This is a read-only value, populated by the server based on the created_by_user_id field.
*
* @generated from field: optional string created_by_name = 8;
* @generated from field: optional string created_by_email = 8;
*/
createdByName?: string;
createdByEmail?: string;

/**
* The timestamp when the invite was last updated (e.g., status change).
Expand All @@ -809,19 +805,11 @@ export declare type AccountInvite = Message<"qdrant.cloud.account.v1.AccountInvi
*/
lastModifiedAt?: Timestamp;

/**
* Identifier of the user that accepted or rejected this invite.
* This is a read-only value.
*
* @generated from field: optional string user_id = 10;
*/
userId?: string;

/**
* The status of the invite.
* This is a read-only field.
*
* @generated from field: qdrant.cloud.account.v1.AccountInviteStatus status = 11;
* @generated from field: qdrant.cloud.account.v1.AccountInviteStatus status = 10;
*/
status: AccountInviteStatus;
};
Expand Down
2 changes: 1 addition & 1 deletion gen/typescript/qdrant/cloud/account/v1/account_pb.js

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions proto/qdrant/cloud/account/v1/account.proto
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@
// ListReceivedAccountInvitesRequest is the request for the ListReceivedAccountInvites function.
// This lists invites for the authenticated user across all accounts.
// buf:lint:ignore QDRANT_CLOUD_REQUIRED_REQUEST_FIELDS
message ListReceivedAccountInvitesRequest {
// Optional: Filter invites by status (e.g. pending only).
optional AccountInviteStatus status_filter = 1;
// Empty
}

Check failure on line 256 in proto/qdrant/cloud/account/v1/account.proto

View workflow job for this annotation

GitHub Actions / Linting & checking uncommitted changes

Previously present field "1" with name "status_filter" on message "ListReceivedAccountInvitesRequest" was deleted.

// ListReceivedAccountInvitesResponse is the response from the ListReceivedAccountInvites function.
message ListReceivedAccountInvitesResponse {
Expand Down Expand Up @@ -423,50 +422,47 @@

// buf:lint:ignore QDRANT_CLOUD_REQUIRED_ENTITY_FIELDS
// An AccountInvite represents an invitation for a user to join an account.
message AccountInvite {
// Unique identifier for the invite (in GUID format).
// This is a read-only field, generated by the server.
string id = 1 [(buf.validate.field).string = {uuid: true}];
// The identifier of the account this invite is for (in GUID format).
// This field is required when creating an invite.
string account_id = 2 [(buf.validate.field).string = {uuid: true}];
// Human readable name of the account that the human is invited to join.
// This is a read-only value.
string account_name = 3;
// The email address of the user being invited.
// This field is required when creating an invite.
string user_email = 4 [(buf.validate.field).string = {
email: true
min_len: 1
}];
// The identifiers of the roles to be assigned to the user upon accepting the invite.
// This field is required when creating an invite, and the list must not be empty.
// Each string in the list must be a valid UUID, to be resolved in the provided account.
// Please use IAMService.ListRoles to get the possible roles to assign.
repeated string user_role_ids = 5 [(buf.validate.field).repeated = {
min_items: 1 // Ensure at least one role ID is provided
items: {
string: {uuid: true}
}
}];
// The timestamp when the invite was created.
// This is a read-only field.
google.protobuf.Timestamp created_at = 6;
// The identifier of the user who created the invite (in GUID format).
// This is a read-only field, populated by the server based on the authenticated user.
optional string created_by_user_id = 7 [(buf.validate.field).string = {uuid: true}];
// Name of the user that created this invite.
// The email of the user who created this invite.
// This is a read-only value, populated by the server based on the created_by_user_id field.
optional string created_by_name = 8;
optional string created_by_email = 8;

Check failure on line 459 in proto/qdrant/cloud/account/v1/account.proto

View workflow job for this annotation

GitHub Actions / Linting & checking uncommitted changes

Field "8" on message "AccountInvite" changed name from "created_by_name" to "created_by_email".

Check failure on line 459 in proto/qdrant/cloud/account/v1/account.proto

View workflow job for this annotation

GitHub Actions / Linting & checking uncommitted changes

Field "8" with name "created_by_email" on message "AccountInvite" changed option "json_name" from "createdByName" to "createdByEmail".
// The timestamp when the invite was last updated (e.g., status change).
// This is a read-only field.
google.protobuf.Timestamp last_modified_at = 9;
// Identifier of the user that accepted or rejected this invite.
// This is a read-only value.
optional string user_id = 10 [(buf.validate.field).string = {uuid: true}];
// The status of the invite.
// This is a read-only field.
AccountInviteStatus status = 11;
AccountInviteStatus status = 10;

Check failure on line 465 in proto/qdrant/cloud/account/v1/account.proto

View workflow job for this annotation

GitHub Actions / Linting & checking uncommitted changes

Field "10" on message "AccountInvite" changed name from "user_id" to "status".

Check failure on line 465 in proto/qdrant/cloud/account/v1/account.proto

View workflow job for this annotation

GitHub Actions / Linting & checking uncommitted changes

Field "10" with name "status" on message "AccountInvite" changed type from "string" to "enum".

Check failure on line 465 in proto/qdrant/cloud/account/v1/account.proto

View workflow job for this annotation

GitHub Actions / Linting & checking uncommitted changes

Field "10" with name "status" on message "AccountInvite" changed option "json_name" from "userId" to "status".

Check failure on line 465 in proto/qdrant/cloud/account/v1/account.proto

View workflow job for this annotation

GitHub Actions / Linting & checking uncommitted changes

Field "10" with name "status" on message "AccountInvite" changed cardinality from "optional with explicit presence" to "optional with implicit presence".
}

Check failure on line 466 in proto/qdrant/cloud/account/v1/account.proto

View workflow job for this annotation

GitHub Actions / Linting & checking uncommitted changes

Previously present field "11" with name "status" on message "AccountInvite" was deleted.

// AccountInviteStatus defines the possible statuses of an account invitation.
Expand Down
Loading