UNPKG

@flyteorg/flyteidl2

Version:

Compiled protocol buffers and gRPC service and connect clients/servers for Flyte IDLs

206 lines (179 loc) 7.03 kB
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts" // @generated from file flyteidl2/common/identity.proto (package flyteidl2.common, syntax proto3) /* eslint-disable */ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; import { file_buf_validate_validate } from "../../buf/validate/validate_pb.ts"; import type { ApplicationIdentifier, UserIdentifier } from "./identifier_pb.ts"; import { file_flyteidl2_common_identifier } from "./identifier_pb.ts"; import type { Policy } from "./policy_pb.ts"; import { file_flyteidl2_common_policy } from "./policy_pb.ts"; import type { Role } from "./role_pb.ts"; import { file_flyteidl2_common_role } from "./role_pb.ts"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file flyteidl2/common/identity.proto. */ export const file_flyteidl2_common_identity: GenFile = /*@__PURE__*/ fileDesc("Ch9mbHl0ZWlkbDIvY29tbW9uL2lkZW50aXR5LnByb3RvEhBmbHl0ZWlkbDIuY29tbW9uIrUBCgRVc2VyEiwKAmlkGAEgASgLMiAuZmx5dGVpZGwyLmNvbW1vbi5Vc2VySWRlbnRpZmllchIoCgRzcGVjGAIgASgLMhouZmx5dGVpZGwyLmNvbW1vbi5Vc2VyU3BlYxIpCgVyb2xlcxgDIAMoCzIWLmZseXRlaWRsMi5jb21tb24uUm9sZUICGAESKgoIcG9saWNpZXMYBCADKAsyGC5mbHl0ZWlkbDIuY29tbW9uLlBvbGljeSKOAQoIVXNlclNwZWMSEgoKZmlyc3RfbmFtZRgBIAEoCRIRCglsYXN0X25hbWUYAiABKAkSDQoFZW1haWwYAyABKAkSFAoMb3JnYW5pemF0aW9uGAQgASgJEhMKC3VzZXJfaGFuZGxlGAUgASgJEg4KBmdyb3VwcxgGIAMoCRIRCglwaG90b191cmwYByABKAkiawoLQXBwbGljYXRpb24SMwoCaWQYASABKAsyJy5mbHl0ZWlkbDIuY29tbW9uLkFwcGxpY2F0aW9uSWRlbnRpZmllchInCgRzcGVjGAIgASgLMhkuZmx5dGVpZGwyLmNvbW1vbi5BcHBTcGVjIi0KB0FwcFNwZWMSDAoEbmFtZRgBIAEoCRIUCgxvcmdhbml6YXRpb24YAiABKAkihAEKEEVucmljaGVkSWRlbnRpdHkSJgoEdXNlchgBIAEoCzIWLmZseXRlaWRsMi5jb21tb24uVXNlckgAEjQKC2FwcGxpY2F0aW9uGAIgASgLMh0uZmx5dGVpZGwyLmNvbW1vbi5BcHBsaWNhdGlvbkgAQhIKCXByaW5jaXBhbBIFukgCCAEijwEKCElkZW50aXR5EjMKB3VzZXJfaWQYASABKAsyIC5mbHl0ZWlkbDIuY29tbW9uLlVzZXJJZGVudGlmaWVySAASQQoOYXBwbGljYXRpb25faWQYAiABKAsyJy5mbHl0ZWlkbDIuY29tbW9uLkFwcGxpY2F0aW9uSWRlbnRpZmllckgAQgsKCXByaW5jaXBhbEK+AQoUY29tLmZseXRlaWRsMi5jb21tb25CDUlkZW50aXR5UHJvdG9IAlABWjRnaXRodWIuY29tL2ZseXRlb3JnL2ZseXRlL3YyL2dlbi9nby9mbHl0ZWlkbDIvY29tbW9uogIDRkNYqgIQRmx5dGVpZGwyLkNvbW1vbsoCEEZseXRlaWRsMlxDb21tb27iAhxGbHl0ZWlkbDJcQ29tbW9uXEdQQk1ldGFkYXRh6gIRRmx5dGVpZGwyOjpDb21tb25iBnByb3RvMw", [file_buf_validate_validate, file_flyteidl2_common_identifier, file_flyteidl2_common_policy, file_flyteidl2_common_role]); /** * Encapsulates user profile details for a member of an organization. * * @generated from message flyteidl2.common.User */ export type User = Message<"flyteidl2.common.User"> & { /** * @generated from field: flyteidl2.common.UserIdentifier id = 1; */ id?: UserIdentifier; /** * @generated from field: flyteidl2.common.UserSpec spec = 2; */ spec?: UserSpec; /** * @generated from field: repeated flyteidl2.common.Role roles = 3 [deprecated = true]; * @deprecated */ roles: Role[]; /** * @generated from field: repeated flyteidl2.common.Policy policies = 4; */ policies: Policy[]; }; /** * Describes the message flyteidl2.common.User. * Use `create(UserSchema)` to create a new message. */ export const UserSchema: GenMessage<User> = /*@__PURE__*/ messageDesc(file_flyteidl2_common_identity, 0); /** * @generated from message flyteidl2.common.UserSpec */ export type UserSpec = Message<"flyteidl2.common.UserSpec"> & { /** * @generated from field: string first_name = 1; */ firstName: string; /** * @generated from field: string last_name = 2; */ lastName: string; /** * @generated from field: string email = 3; */ email: string; /** * @generated from field: string organization = 4; */ organization: string; /** * @generated from field: string user_handle = 5; */ userHandle: string; /** * @generated from field: repeated string groups = 6; */ groups: string[]; /** * @generated from field: string photo_url = 7; */ photoUrl: string; }; /** * Describes the message flyteidl2.common.UserSpec. * Use `create(UserSpecSchema)` to create a new message. */ export const UserSpecSchema: GenMessage<UserSpec> = /*@__PURE__*/ messageDesc(file_flyteidl2_common_identity, 1); /** * @generated from message flyteidl2.common.Application */ export type Application = Message<"flyteidl2.common.Application"> & { /** * @generated from field: flyteidl2.common.ApplicationIdentifier id = 1; */ id?: ApplicationIdentifier; /** * @generated from field: flyteidl2.common.AppSpec spec = 2; */ spec?: AppSpec; }; /** * Describes the message flyteidl2.common.Application. * Use `create(ApplicationSchema)` to create a new message. */ export const ApplicationSchema: GenMessage<Application> = /*@__PURE__*/ messageDesc(file_flyteidl2_common_identity, 2); /** * @generated from message flyteidl2.common.AppSpec */ export type AppSpec = Message<"flyteidl2.common.AppSpec"> & { /** * @generated from field: string name = 1; */ name: string; /** * @generated from field: string organization = 2; */ organization: string; }; /** * Describes the message flyteidl2.common.AppSpec. * Use `create(AppSpecSchema)` to create a new message. */ export const AppSpecSchema: GenMessage<AppSpec> = /*@__PURE__*/ messageDesc(file_flyteidl2_common_identity, 3); /** * @generated from message flyteidl2.common.EnrichedIdentity */ export type EnrichedIdentity = Message<"flyteidl2.common.EnrichedIdentity"> & { /** * @generated from oneof flyteidl2.common.EnrichedIdentity.principal */ principal: { /** * @generated from field: flyteidl2.common.User user = 1; */ value: User; case: "user"; } | { /** * @generated from field: flyteidl2.common.Application application = 2; */ value: Application; case: "application"; } | { case: undefined; value?: undefined }; }; /** * Describes the message flyteidl2.common.EnrichedIdentity. * Use `create(EnrichedIdentitySchema)` to create a new message. */ export const EnrichedIdentitySchema: GenMessage<EnrichedIdentity> = /*@__PURE__*/ messageDesc(file_flyteidl2_common_identity, 4); /** * @generated from message flyteidl2.common.Identity */ export type Identity = Message<"flyteidl2.common.Identity"> & { /** * @generated from oneof flyteidl2.common.Identity.principal */ principal: { /** * @generated from field: flyteidl2.common.UserIdentifier user_id = 1; */ value: UserIdentifier; case: "userId"; } | { /** * @generated from field: flyteidl2.common.ApplicationIdentifier application_id = 2; */ value: ApplicationIdentifier; case: "applicationId"; } | { case: undefined; value?: undefined }; }; /** * Describes the message flyteidl2.common.Identity. * Use `create(IdentitySchema)` to create a new message. */ export const IdentitySchema: GenMessage<Identity> = /*@__PURE__*/ messageDesc(file_flyteidl2_common_identity, 5);