@animeapis/identity
Version:
Identity client for Node.js
1,058 lines (864 loc) • 437 kB
TypeScript
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import * as Long from "long";
import {protobuf as $protobuf} from "google-gax";
/** Namespace animeshon. */
export namespace animeshon {
/** Namespace identity. */
namespace identity {
/** Namespace v1alpha1. */
namespace v1alpha1 {
/** Represents an Identity */
class Identity extends $protobuf.rpc.Service {
/**
* Constructs a new Identity service.
* @param rpcImpl RPC implementation
* @param [requestDelimited=false] Whether requests are length-delimited
* @param [responseDelimited=false] Whether responses are length-delimited
*/
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
/**
* Creates new Identity service using the specified rpc implementation.
* @param rpcImpl RPC implementation
* @param [requestDelimited=false] Whether requests are length-delimited
* @param [responseDelimited=false] Whether responses are length-delimited
* @returns RPC service. Useful where requests and/or responses are streamed.
*/
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Identity;
/**
* Calls GetUserProfile.
* @param request GetUserProfileRequest message or plain object
* @param callback Node-style callback called with the error, if any, and UserProfile
*/
public getUserProfile(request: animeshon.identity.v1alpha1.IGetUserProfileRequest, callback: animeshon.identity.v1alpha1.Identity.GetUserProfileCallback): void;
/**
* Calls GetUserProfile.
* @param request GetUserProfileRequest message or plain object
* @returns Promise
*/
public getUserProfile(request: animeshon.identity.v1alpha1.IGetUserProfileRequest): Promise<animeshon.identity.v1alpha1.UserProfile>;
/**
* Calls GetUser.
* @param request GetUserRequest message or plain object
* @param callback Node-style callback called with the error, if any, and User
*/
public getUser(request: animeshon.identity.v1alpha1.IGetUserRequest, callback: animeshon.identity.v1alpha1.Identity.GetUserCallback): void;
/**
* Calls GetUser.
* @param request GetUserRequest message or plain object
* @returns Promise
*/
public getUser(request: animeshon.identity.v1alpha1.IGetUserRequest): Promise<animeshon.identity.v1alpha1.User>;
/**
* Calls ListUsers.
* @param request ListUsersRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListUsersResponse
*/
public listUsers(request: animeshon.identity.v1alpha1.IListUsersRequest, callback: animeshon.identity.v1alpha1.Identity.ListUsersCallback): void;
/**
* Calls ListUsers.
* @param request ListUsersRequest message or plain object
* @returns Promise
*/
public listUsers(request: animeshon.identity.v1alpha1.IListUsersRequest): Promise<animeshon.identity.v1alpha1.ListUsersResponse>;
/**
* Calls CreateUser.
* @param request CreateUserRequest message or plain object
* @param callback Node-style callback called with the error, if any, and User
*/
public createUser(request: animeshon.identity.v1alpha1.ICreateUserRequest, callback: animeshon.identity.v1alpha1.Identity.CreateUserCallback): void;
/**
* Calls CreateUser.
* @param request CreateUserRequest message or plain object
* @returns Promise
*/
public createUser(request: animeshon.identity.v1alpha1.ICreateUserRequest): Promise<animeshon.identity.v1alpha1.User>;
/**
* Calls UpdateUser.
* @param request UpdateUserRequest message or plain object
* @param callback Node-style callback called with the error, if any, and User
*/
public updateUser(request: animeshon.identity.v1alpha1.IUpdateUserRequest, callback: animeshon.identity.v1alpha1.Identity.UpdateUserCallback): void;
/**
* Calls UpdateUser.
* @param request UpdateUserRequest message or plain object
* @returns Promise
*/
public updateUser(request: animeshon.identity.v1alpha1.IUpdateUserRequest): Promise<animeshon.identity.v1alpha1.User>;
/**
* Calls DeleteUser.
* @param request DeleteUserRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Empty
*/
public deleteUser(request: animeshon.identity.v1alpha1.IDeleteUserRequest, callback: animeshon.identity.v1alpha1.Identity.DeleteUserCallback): void;
/**
* Calls DeleteUser.
* @param request DeleteUserRequest message or plain object
* @returns Promise
*/
public deleteUser(request: animeshon.identity.v1alpha1.IDeleteUserRequest): Promise<google.protobuf.Empty>;
/**
* Calls GetUserSettings.
* @param request GetUserSettingsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and UserSettings
*/
public getUserSettings(request: animeshon.identity.v1alpha1.IGetUserSettingsRequest, callback: animeshon.identity.v1alpha1.Identity.GetUserSettingsCallback): void;
/**
* Calls GetUserSettings.
* @param request GetUserSettingsRequest message or plain object
* @returns Promise
*/
public getUserSettings(request: animeshon.identity.v1alpha1.IGetUserSettingsRequest): Promise<animeshon.identity.v1alpha1.UserSettings>;
/**
* Calls UpdateUserSettings.
* @param request UpdateUserSettingsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and UserSettings
*/
public updateUserSettings(request: animeshon.identity.v1alpha1.IUpdateUserSettingsRequest, callback: animeshon.identity.v1alpha1.Identity.UpdateUserSettingsCallback): void;
/**
* Calls UpdateUserSettings.
* @param request UpdateUserSettingsRequest message or plain object
* @returns Promise
*/
public updateUserSettings(request: animeshon.identity.v1alpha1.IUpdateUserSettingsRequest): Promise<animeshon.identity.v1alpha1.UserSettings>;
/**
* Calls GetUserNotifications.
* @param request GetUserNotificationsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and UserNotifications
*/
public getUserNotifications(request: animeshon.identity.v1alpha1.IGetUserNotificationsRequest, callback: animeshon.identity.v1alpha1.Identity.GetUserNotificationsCallback): void;
/**
* Calls GetUserNotifications.
* @param request GetUserNotificationsRequest message or plain object
* @returns Promise
*/
public getUserNotifications(request: animeshon.identity.v1alpha1.IGetUserNotificationsRequest): Promise<animeshon.identity.v1alpha1.UserNotifications>;
/**
* Calls UpdateUserNotifications.
* @param request UpdateUserNotificationsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and UserNotifications
*/
public updateUserNotifications(request: animeshon.identity.v1alpha1.IUpdateUserNotificationsRequest, callback: animeshon.identity.v1alpha1.Identity.UpdateUserNotificationsCallback): void;
/**
* Calls UpdateUserNotifications.
* @param request UpdateUserNotificationsRequest message or plain object
* @returns Promise
*/
public updateUserNotifications(request: animeshon.identity.v1alpha1.IUpdateUserNotificationsRequest): Promise<animeshon.identity.v1alpha1.UserNotifications>;
/**
* Calls GetUserDefaults.
* @param request GetUserDefaultsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and UserDefaults
*/
public getUserDefaults(request: animeshon.identity.v1alpha1.IGetUserDefaultsRequest, callback: animeshon.identity.v1alpha1.Identity.GetUserDefaultsCallback): void;
/**
* Calls GetUserDefaults.
* @param request GetUserDefaultsRequest message or plain object
* @returns Promise
*/
public getUserDefaults(request: animeshon.identity.v1alpha1.IGetUserDefaultsRequest): Promise<animeshon.identity.v1alpha1.UserDefaults>;
/**
* Calls GetGroup.
* @param request GetGroupRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Group
*/
public getGroup(request: animeshon.identity.v1alpha1.IGetGroupRequest, callback: animeshon.identity.v1alpha1.Identity.GetGroupCallback): void;
/**
* Calls GetGroup.
* @param request GetGroupRequest message or plain object
* @returns Promise
*/
public getGroup(request: animeshon.identity.v1alpha1.IGetGroupRequest): Promise<animeshon.identity.v1alpha1.Group>;
/**
* Calls ListGroups.
* @param request ListGroupsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListGroupsResponse
*/
public listGroups(request: animeshon.identity.v1alpha1.IListGroupsRequest, callback: animeshon.identity.v1alpha1.Identity.ListGroupsCallback): void;
/**
* Calls ListGroups.
* @param request ListGroupsRequest message or plain object
* @returns Promise
*/
public listGroups(request: animeshon.identity.v1alpha1.IListGroupsRequest): Promise<animeshon.identity.v1alpha1.ListGroupsResponse>;
/**
* Calls CreateGroup.
* @param request CreateGroupRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Group
*/
public createGroup(request: animeshon.identity.v1alpha1.ICreateGroupRequest, callback: animeshon.identity.v1alpha1.Identity.CreateGroupCallback): void;
/**
* Calls CreateGroup.
* @param request CreateGroupRequest message or plain object
* @returns Promise
*/
public createGroup(request: animeshon.identity.v1alpha1.ICreateGroupRequest): Promise<animeshon.identity.v1alpha1.Group>;
/**
* Calls UpdateGroup.
* @param request UpdateGroupRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Group
*/
public updateGroup(request: animeshon.identity.v1alpha1.IUpdateGroupRequest, callback: animeshon.identity.v1alpha1.Identity.UpdateGroupCallback): void;
/**
* Calls UpdateGroup.
* @param request UpdateGroupRequest message or plain object
* @returns Promise
*/
public updateGroup(request: animeshon.identity.v1alpha1.IUpdateGroupRequest): Promise<animeshon.identity.v1alpha1.Group>;
/**
* Calls DeleteGroup.
* @param request DeleteGroupRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Empty
*/
public deleteGroup(request: animeshon.identity.v1alpha1.IDeleteGroupRequest, callback: animeshon.identity.v1alpha1.Identity.DeleteGroupCallback): void;
/**
* Calls DeleteGroup.
* @param request DeleteGroupRequest message or plain object
* @returns Promise
*/
public deleteGroup(request: animeshon.identity.v1alpha1.IDeleteGroupRequest): Promise<google.protobuf.Empty>;
}
namespace Identity {
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#getUserProfile}.
* @param error Error, if any
* @param [response] UserProfile
*/
type GetUserProfileCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.UserProfile) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#getUser}.
* @param error Error, if any
* @param [response] User
*/
type GetUserCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.User) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#listUsers}.
* @param error Error, if any
* @param [response] ListUsersResponse
*/
type ListUsersCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.ListUsersResponse) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#createUser}.
* @param error Error, if any
* @param [response] User
*/
type CreateUserCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.User) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#updateUser}.
* @param error Error, if any
* @param [response] User
*/
type UpdateUserCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.User) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#deleteUser}.
* @param error Error, if any
* @param [response] Empty
*/
type DeleteUserCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#getUserSettings}.
* @param error Error, if any
* @param [response] UserSettings
*/
type GetUserSettingsCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.UserSettings) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#updateUserSettings}.
* @param error Error, if any
* @param [response] UserSettings
*/
type UpdateUserSettingsCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.UserSettings) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#getUserNotifications}.
* @param error Error, if any
* @param [response] UserNotifications
*/
type GetUserNotificationsCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.UserNotifications) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#updateUserNotifications}.
* @param error Error, if any
* @param [response] UserNotifications
*/
type UpdateUserNotificationsCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.UserNotifications) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#getUserDefaults}.
* @param error Error, if any
* @param [response] UserDefaults
*/
type GetUserDefaultsCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.UserDefaults) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#getGroup}.
* @param error Error, if any
* @param [response] Group
*/
type GetGroupCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.Group) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#listGroups}.
* @param error Error, if any
* @param [response] ListGroupsResponse
*/
type ListGroupsCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.ListGroupsResponse) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#createGroup}.
* @param error Error, if any
* @param [response] Group
*/
type CreateGroupCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.Group) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#updateGroup}.
* @param error Error, if any
* @param [response] Group
*/
type UpdateGroupCallback = (error: (Error|null), response?: animeshon.identity.v1alpha1.Group) => void;
/**
* Callback as used by {@link animeshon.identity.v1alpha1.Identity#deleteGroup}.
* @param error Error, if any
* @param [response] Empty
*/
type DeleteGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
}
/** Gender enum. */
enum Gender {
GENDER_UNSPECIFIED = 0,
MALE = 1,
FEMALE = 2,
OTHER = 3
}
/** Properties of a UserProfile. */
interface IUserProfile {
/** UserProfile name */
name?: (string|null);
/** UserProfile profileImage */
profileImage?: (string|null);
/** UserProfile bannerImage */
bannerImage?: (string|null);
/** UserProfile username */
username?: (string|null);
/** UserProfile discriminator */
discriminator?: (string|null);
/** UserProfile birthday */
birthday?: (google.type.IDate|null);
/** UserProfile gender */
gender?: (animeshon.identity.v1alpha1.Gender|keyof typeof animeshon.identity.v1alpha1.Gender|null);
}
/** Represents a UserProfile. */
class UserProfile implements IUserProfile {
/**
* Constructs a new UserProfile.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.identity.v1alpha1.IUserProfile);
/** UserProfile name. */
public name: string;
/** UserProfile profileImage. */
public profileImage: string;
/** UserProfile bannerImage. */
public bannerImage: string;
/** UserProfile username. */
public username: string;
/** UserProfile discriminator. */
public discriminator: string;
/** UserProfile birthday. */
public birthday?: (google.type.IDate|null);
/** UserProfile gender. */
public gender: (animeshon.identity.v1alpha1.Gender|keyof typeof animeshon.identity.v1alpha1.Gender);
/**
* Creates a new UserProfile instance using the specified properties.
* @param [properties] Properties to set
* @returns UserProfile instance
*/
public static create(properties?: animeshon.identity.v1alpha1.IUserProfile): animeshon.identity.v1alpha1.UserProfile;
/**
* Encodes the specified UserProfile message. Does not implicitly {@link animeshon.identity.v1alpha1.UserProfile.verify|verify} messages.
* @param message UserProfile message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.identity.v1alpha1.IUserProfile, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified UserProfile message, length delimited. Does not implicitly {@link animeshon.identity.v1alpha1.UserProfile.verify|verify} messages.
* @param message UserProfile message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.identity.v1alpha1.IUserProfile, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a UserProfile message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns UserProfile
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.identity.v1alpha1.UserProfile;
/**
* Decodes a UserProfile message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns UserProfile
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.identity.v1alpha1.UserProfile;
/**
* Verifies a UserProfile message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a UserProfile message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns UserProfile
*/
public static fromObject(object: { [k: string]: any }): animeshon.identity.v1alpha1.UserProfile;
/**
* Creates a plain object from a UserProfile message. Also converts values to other types if specified.
* @param message UserProfile
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.identity.v1alpha1.UserProfile, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this UserProfile to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a User. */
interface IUser {
/** User name */
name?: (string|null);
/** User uuid */
uuid?: (string|null);
/** User username */
username?: (string|null);
/** User discriminator */
discriminator?: (string|null);
/** User primaryEmail */
primaryEmail?: (string|null);
/** User primaryEmailVerified */
primaryEmailVerified?: (boolean|null);
/** User givenName */
givenName?: (string|null);
/** User familyName */
familyName?: (string|null);
/** User displayName */
displayName?: (string|null);
/** User countryCode */
countryCode?: (string|null);
/** User locale */
locale?: (string|null);
/** User localeFallback */
localeFallback?: (string|null);
/** User birthday */
birthday?: (google.type.IDate|null);
/** User gender */
gender?: (animeshon.identity.v1alpha1.Gender|keyof typeof animeshon.identity.v1alpha1.Gender|null);
/** User profileImage */
profileImage?: (string|null);
/** User bannerImage */
bannerImage?: (string|null);
}
/** Represents a User. */
class User implements IUser {
/**
* Constructs a new User.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.identity.v1alpha1.IUser);
/** User name. */
public name: string;
/** User uuid. */
public uuid: string;
/** User username. */
public username: string;
/** User discriminator. */
public discriminator: string;
/** User primaryEmail. */
public primaryEmail: string;
/** User primaryEmailVerified. */
public primaryEmailVerified: boolean;
/** User givenName. */
public givenName: string;
/** User familyName. */
public familyName: string;
/** User displayName. */
public displayName: string;
/** User countryCode. */
public countryCode: string;
/** User locale. */
public locale: string;
/** User localeFallback. */
public localeFallback: string;
/** User birthday. */
public birthday?: (google.type.IDate|null);
/** User gender. */
public gender: (animeshon.identity.v1alpha1.Gender|keyof typeof animeshon.identity.v1alpha1.Gender);
/** User profileImage. */
public profileImage: string;
/** User bannerImage. */
public bannerImage: string;
/**
* Creates a new User instance using the specified properties.
* @param [properties] Properties to set
* @returns User instance
*/
public static create(properties?: animeshon.identity.v1alpha1.IUser): animeshon.identity.v1alpha1.User;
/**
* Encodes the specified User message. Does not implicitly {@link animeshon.identity.v1alpha1.User.verify|verify} messages.
* @param message User message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.identity.v1alpha1.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified User message, length delimited. Does not implicitly {@link animeshon.identity.v1alpha1.User.verify|verify} messages.
* @param message User message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.identity.v1alpha1.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a User message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns User
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.identity.v1alpha1.User;
/**
* Decodes a User message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns User
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.identity.v1alpha1.User;
/**
* Verifies a User message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a User message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns User
*/
public static fromObject(object: { [k: string]: any }): animeshon.identity.v1alpha1.User;
/**
* Creates a plain object from a User message. Also converts values to other types if specified.
* @param message User
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.identity.v1alpha1.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this User to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a UserSettings. */
interface IUserSettings {
/** UserSettings name */
name?: (string|null);
/** UserSettings profileVisibility */
profileVisibility?: (animeshon.identity.v1alpha1.UserSettings.Visibility|keyof typeof animeshon.identity.v1alpha1.UserSettings.Visibility|null);
/** UserSettings showExplicitContent */
showExplicitContent?: (boolean|null);
/** UserSettings enableDeveloperMode */
enableDeveloperMode?: (boolean|null);
}
/** Represents a UserSettings. */
class UserSettings implements IUserSettings {
/**
* Constructs a new UserSettings.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.identity.v1alpha1.IUserSettings);
/** UserSettings name. */
public name: string;
/** UserSettings profileVisibility. */
public profileVisibility: (animeshon.identity.v1alpha1.UserSettings.Visibility|keyof typeof animeshon.identity.v1alpha1.UserSettings.Visibility);
/** UserSettings showExplicitContent. */
public showExplicitContent: boolean;
/** UserSettings enableDeveloperMode. */
public enableDeveloperMode: boolean;
/**
* Creates a new UserSettings instance using the specified properties.
* @param [properties] Properties to set
* @returns UserSettings instance
*/
public static create(properties?: animeshon.identity.v1alpha1.IUserSettings): animeshon.identity.v1alpha1.UserSettings;
/**
* Encodes the specified UserSettings message. Does not implicitly {@link animeshon.identity.v1alpha1.UserSettings.verify|verify} messages.
* @param message UserSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.identity.v1alpha1.IUserSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified UserSettings message, length delimited. Does not implicitly {@link animeshon.identity.v1alpha1.UserSettings.verify|verify} messages.
* @param message UserSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.identity.v1alpha1.IUserSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a UserSettings message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns UserSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.identity.v1alpha1.UserSettings;
/**
* Decodes a UserSettings message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns UserSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.identity.v1alpha1.UserSettings;
/**
* Verifies a UserSettings message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a UserSettings message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns UserSettings
*/
public static fromObject(object: { [k: string]: any }): animeshon.identity.v1alpha1.UserSettings;
/**
* Creates a plain object from a UserSettings message. Also converts values to other types if specified.
* @param message UserSettings
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.identity.v1alpha1.UserSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this UserSettings to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
namespace UserSettings {
/** Visibility enum. */
enum Visibility {
VISIBILITY_UNSPECIFIED = 0,
PUBLIC = 1,
PRIVATE = 2
}
}
/** Properties of a UserDefaults. */
interface IUserDefaults {
/** UserDefaults albumProfile */
albumProfile?: (string|null);
/** UserDefaults albumBanner */
albumBanner?: (string|null);
/** UserDefaults playlistLiked */
playlistLiked?: (string|null);
/** UserDefaults playlistLater */
playlistLater?: (string|null);
}
/** Represents a UserDefaults. */
class UserDefaults implements IUserDefaults {
/**
* Constructs a new UserDefaults.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.identity.v1alpha1.IUserDefaults);
/** UserDefaults albumProfile. */
public albumProfile: string;
/** UserDefaults albumBanner. */
public albumBanner: string;
/** UserDefaults playlistLiked. */
public playlistLiked: string;
/** UserDefaults playlistLater. */
public playlistLater: string;
/**
* Creates a new UserDefaults instance using the specified properties.
* @param [properties] Properties to set
* @returns UserDefaults instance
*/
public static create(properties?: animeshon.identity.v1alpha1.IUserDefaults): animeshon.identity.v1alpha1.UserDefaults;
/**
* Encodes the specified UserDefaults message. Does not implicitly {@link animeshon.identity.v1alpha1.UserDefaults.verify|verify} messages.
* @param message UserDefaults message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.identity.v1alpha1.IUserDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified UserDefaults message, length delimited. Does not implicitly {@link animeshon.identity.v1alpha1.UserDefaults.verify|verify} messages.
* @param message UserDefaults message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.identity.v1alpha1.IUserDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a UserDefaults message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns UserDefaults
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.identity.v1alpha1.UserDefaults;
/**
* Decodes a UserDefaults message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns UserDefaults
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.identity.v1alpha1.UserDefaults;
/**
* Verifies a UserDefaults message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a UserDefaults message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns UserDefaults
*/
public static fromObject(object: { [k: string]: any }): animeshon.identity.v1alpha1.UserDefaults;
/**
* Creates a plain object from a UserDefaults message. Also converts values to other types if specified.
* @param message UserDefaults
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.identity.v1alpha1.UserDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this UserDefaults to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a UserNotifications. */
interface IUserNotifications {
/** UserNotifications name */
name?: (string|null);
}
/** Represents a UserNotifications. */
class UserNotifications implements IUserNotifications {
/**
* Constructs a new UserNotifications.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.identity.v1alpha1.IUserNotifications);
/** UserNotifications name. */
public name: string;
/**
* Creates a new UserNotifications instance using the specified properties.
* @param [properties] Properties to set
* @returns UserNotifications instance
*/
public static create(properties?: animeshon.identity.v1alpha1.IUserNotifications): animeshon.identity.v1alpha1.UserNotifications;
/**
* Encodes the specified UserNotifications message. Does not implicitly {@link animeshon.identity.v1alpha1.UserNotifications.verify|verify} messages.
* @param message UserNotifications message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.identity.v1alpha1.IUserNotifications, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified UserNotifications message, length delimited. Does not implicitly {@link animeshon.identity.v1alpha1.UserNotifications.verify|verify} messages.
* @param message UserNotifications message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.identity.v1alpha1.IUserNotifications, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a UserNotifications message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns UserNotifications
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.identity.v1alpha1.UserNotifications;
/**
* Decodes a UserNotifications message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns UserNotifications
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.identity.v1alpha1.UserNotifications;
/**
* Verifies a UserNotifications message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a UserNotifications message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns UserNotifications
*/
public static fromObject(object: { [k: string]: any }): animeshon.identity.v1alpha1.UserNotifications;
/**
* Creates a plain object from a UserNotifications message. Also converts values to other types if specified.
* @param message UserNotifications
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.identity.v1alpha1.UserNotifications, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this UserNotifications to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a Group. */
interface IGroup {
/** Group name */
name?: (string|null);
/** Group members */
members?: (string[]|null);
/** Group etag */
etag?: (Uint8Array|string|null);
}
/** Represents a Group. */
class Group implements IGroup {
/**
* Constructs a new Group.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.identity.v1alpha1.IGroup);
/** Group name. */
public name: string;
/** Group members. */
public members: string[];
/** Group etag. */
public etag: (Uint8Array|string);
/**
* Creates a new Group instance using the specified properties.
* @param [properties] Properties to set
* @returns Group instance
*/
public static create(properties?: animeshon.identity.v1alpha1.IGroup): animeshon.identity.v1alpha1.Group;
/**
* Encodes the specified Group message. Does not implicitly {@link animeshon.identity.v1alpha1.Group.verify|verify} messages.
* @param message Group message or plain object to encode
* @param [writer] Writer to encode to