Skip to content

Commit 3be9b2b

Browse files
Remove user notification preferences from user message. (#123)
1 parent f341a63 commit 3be9b2b

8 files changed

Lines changed: 73 additions & 217 deletions

File tree

gen/go/qdrant/cloud/iam/v1/iam.pb.go

Lines changed: 55 additions & 115 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/openapiv2/qdrant/cloud/account/v1/account.swagger.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -910,16 +910,6 @@
910910
},
911911
"description": "ListReceivedAccountInvitesResponse is the response from the ListReceivedAccountInvites function."
912912
},
913-
"v1NotificationPreferences": {
914-
"type": "object",
915-
"properties": {
916-
"emailNewsletterEnabled": {
917-
"type": "boolean",
918-
"description": "Whether the user wants to receive newsletters by email."
919-
}
920-
},
921-
"description": "NotificationPreferences defines the notification preferences of a user."
922-
},
923913
"v1RejectAccountInviteResponse": {
924914
"type": "object",
925915
"properties": {
@@ -968,10 +958,6 @@
968958
"defaultAccountId": {
969959
"type": "string",
970960
"description": "The default account ID of the user (in GUID format).\nYou should be member of the account when updating."
971-
},
972-
"notificationPreferences": {
973-
"$ref": "#/definitions/v1NotificationPreferences",
974-
"description": "The notification preferences of the user."
975961
}
976962
},
977963
"description": "A User represents a user in the Qdrant cloud."

gen/openapiv2/qdrant/cloud/iam/v1/iam.swagger.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -630,10 +630,6 @@
630630
"defaultAccountId": {
631631
"type": "string",
632632
"description": "The default account ID of the user (in GUID format).\nYou should be member of the account when updating."
633-
},
634-
"notificationPreferences": {
635-
"$ref": "#/definitions/v1NotificationPreferences",
636-
"description": "The notification preferences of the user."
637633
}
638634
},
639635
"description": "The actual user.",
@@ -797,16 +793,6 @@
797793
},
798794
"title": "ListUserRolesResponse is the response from the ListUserRoles function"
799795
},
800-
"v1NotificationPreferences": {
801-
"type": "object",
802-
"properties": {
803-
"emailNewsletterEnabled": {
804-
"type": "boolean",
805-
"description": "Whether the user wants to receive newsletters by email."
806-
}
807-
},
808-
"description": "NotificationPreferences defines the notification preferences of a user."
809-
},
810796
"v1RecordUserConsentRequest": {
811797
"type": "object",
812798
"properties": {
@@ -927,10 +913,6 @@
927913
"defaultAccountId": {
928914
"type": "string",
929915
"description": "The default account ID of the user (in GUID format).\nYou should be member of the account when updating."
930-
},
931-
"notificationPreferences": {
932-
"$ref": "#/definitions/v1NotificationPreferences",
933-
"description": "The notification preferences of the user."
934916
}
935917
},
936918
"description": "A User represents a user in the Qdrant cloud."

gen/python/qdrant/cloud/iam/v1/iam_pb2.py

Lines changed: 14 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/python/qdrant/cloud/iam/v1/iam_pb2.pyi

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,28 +224,20 @@ class AssignUserRolesResponse(_message.Message):
224224
def __init__(self) -> None: ...
225225

226226
class User(_message.Message):
227-
__slots__ = ("id", "created_at", "last_modified_at", "email", "status", "default_account_id", "notification_preferences")
227+
__slots__ = ("id", "created_at", "last_modified_at", "email", "status", "default_account_id")
228228
ID_FIELD_NUMBER: _ClassVar[int]
229229
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
230230
LAST_MODIFIED_AT_FIELD_NUMBER: _ClassVar[int]
231231
EMAIL_FIELD_NUMBER: _ClassVar[int]
232232
STATUS_FIELD_NUMBER: _ClassVar[int]
233233
DEFAULT_ACCOUNT_ID_FIELD_NUMBER: _ClassVar[int]
234-
NOTIFICATION_PREFERENCES_FIELD_NUMBER: _ClassVar[int]
235234
id: str
236235
created_at: _timestamp_pb2.Timestamp
237236
last_modified_at: _timestamp_pb2.Timestamp
238237
email: str
239238
status: UserStatus
240239
default_account_id: str
241-
notification_preferences: NotificationPreferences
242-
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., last_modified_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., email: _Optional[str] = ..., status: _Optional[_Union[UserStatus, str]] = ..., default_account_id: _Optional[str] = ..., notification_preferences: _Optional[_Union[NotificationPreferences, _Mapping]] = ...) -> None: ...
243-
244-
class NotificationPreferences(_message.Message):
245-
__slots__ = ("email_newsletter_enabled",)
246-
EMAIL_NEWSLETTER_ENABLED_FIELD_NUMBER: _ClassVar[int]
247-
email_newsletter_enabled: bool
248-
def __init__(self, email_newsletter_enabled: bool = ...) -> None: ...
240+
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., last_modified_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., email: _Optional[str] = ..., status: _Optional[_Union[UserStatus, str]] = ..., default_account_id: _Optional[str] = ...) -> None: ...
249241

250242
class Role(_message.Message):
251243
__slots__ = ("id", "created_at", "last_modified_at", "account_id", "name", "description", "role_type", "permissions")

gen/typescript/qdrant/cloud/iam/v1/iam_pb.d.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -659,13 +659,6 @@ export declare type User = Message<"qdrant.cloud.iam.v1.User"> & {
659659
* @generated from field: string default_account_id = 6;
660660
*/
661661
defaultAccountId: string;
662-
663-
/**
664-
* The notification preferences of the user.
665-
*
666-
* @generated from field: qdrant.cloud.iam.v1.NotificationPreferences notification_preferences = 7;
667-
*/
668-
notificationPreferences?: NotificationPreferences;
669662
};
670663

671664
/**
@@ -674,26 +667,6 @@ export declare type User = Message<"qdrant.cloud.iam.v1.User"> & {
674667
*/
675668
export declare const UserSchema: GenMessage<User>;
676669

677-
/**
678-
* NotificationPreferences defines the notification preferences of a user.
679-
*
680-
* @generated from message qdrant.cloud.iam.v1.NotificationPreferences
681-
*/
682-
export declare type NotificationPreferences = Message<"qdrant.cloud.iam.v1.NotificationPreferences"> & {
683-
/**
684-
* Whether the user wants to receive newsletters by email.
685-
*
686-
* @generated from field: bool email_newsletter_enabled = 1;
687-
*/
688-
emailNewsletterEnabled: boolean;
689-
};
690-
691-
/**
692-
* Describes the message qdrant.cloud.iam.v1.NotificationPreferences.
693-
* Use `create(NotificationPreferencesSchema)` to create a new message.
694-
*/
695-
export declare const NotificationPreferencesSchema: GenMessage<NotificationPreferences>;
696-
697670
/**
698671
* A Role represents a role in the Qdrant cloud.
699672
*

gen/typescript/qdrant/cloud/iam/v1/iam_pb.js

Lines changed: 2 additions & 9 deletions
Large diffs are not rendered by default.

proto/qdrant/cloud/iam/v1/iam.proto

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,6 @@ message User {
405405
// The default account ID of the user (in GUID format).
406406
// You should be member of the account when updating.
407407
string default_account_id = 6 [(buf.validate.field).string = {uuid: true}];
408-
// The notification preferences of the user.
409-
NotificationPreferences notification_preferences = 7;
410408
}
411409

412410
// UserStatus defines the possible statuses of a user.
@@ -421,12 +419,6 @@ enum UserStatus {
421419
USER_STATUS_DELETED = 3;
422420
}
423421

424-
// NotificationPreferences defines the notification preferences of a user.
425-
message NotificationPreferences {
426-
// Whether the user wants to receive newsletters by email.
427-
bool email_newsletter_enabled = 1;
428-
}
429-
430422
// LegalDocumentType specifies the type of a legal document.
431423
enum LegalDocumentType {
432424
// Unspecified document type.

0 commit comments

Comments
 (0)