// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
// @generated from file api/v1/activity_service.proto (package memos.api.v1, syntax proto3)
/* eslint-disable */

import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
import { file_google_api_annotations } from "../../google/api/annotations_pb";
import { file_google_api_client } from "../../google/api/client_pb";
import { file_google_api_field_behavior } from "../../google/api/field_behavior_pb";
import { file_google_api_resource } from "../../google/api/resource_pb";
import type { Timestamp } from "@bufbuild/protobuf/wkt";
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file api/v1/activity_service.proto.
 */
export const file_api_v1_activity_service: GenFile = /*@__PURE__*/
  fileDesc("Ch1hcGkvdjEvYWN0aXZpdHlfc2VydmljZS5wcm90bxIMbWVtb3MuYXBpLnYxIsEDCghBY3Rpdml0eRIUCgRuYW1lGAEgASgJQgbgQQPgQQgSFAoHY3JlYXRvchgCIAEoCUID4EEDEi4KBHR5cGUYAyABKA4yGy5tZW1vcy5hcGkudjEuQWN0aXZpdHkuVHlwZUID4EEDEjAKBWxldmVsGAQgASgOMhwubWVtb3MuYXBpLnYxLkFjdGl2aXR5LkxldmVsQgPgQQMSNAoLY3JlYXRlX3RpbWUYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSMwoHcGF5bG9hZBgGIAEoCzIdLm1lbW9zLmFwaS52MS5BY3Rpdml0eVBheWxvYWRCA+BBAyIuCgRUeXBlEhQKEFRZUEVfVU5TUEVDSUZJRUQQABIQCgxNRU1PX0NPTU1FTlQQASI9CgVMZXZlbBIVChFMRVZFTF9VTlNQRUNJRklFRBAAEggKBElORk8QARIICgRXQVJOEAISCQoFRVJST1IQAzpN6kFKChVtZW1vcy5hcGkudjEvQWN0aXZpdHkSFWFjdGl2aXRpZXMve2FjdGl2aXR5fRoEbm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W1vc1xBcGlcVjHiAhhNZW1vc1xBcGlcVjFcR1BCTWV0YWRhdGHqAg5NZW1vczo6QXBpOjpWMWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_timestamp]);

/**
 * @generated from message memos.api.v1.Activity
 */
export type Activity = Message<"memos.api.v1.Activity"> & {
  /**
   * The name of the activity.
   * Format: activities/{id}
   *
   * @generated from field: string name = 1;
   */
  name: string;

  /**
   * The name of the creator.
   * Format: users/{user}
   *
   * @generated from field: string creator = 2;
   */
  creator: string;

  /**
   * The type of the activity.
   *
   * @generated from field: memos.api.v1.Activity.Type type = 3;
   */
  type: Activity_Type;

  /**
   * The level of the activity.
   *
   * @generated from field: memos.api.v1.Activity.Level level = 4;
   */
  level: Activity_Level;

  /**
   * The create time of the activity.
   *
   * @generated from field: google.protobuf.Timestamp create_time = 5;
   */
  createTime?: Timestamp;

  /**
   * The payload of the activity.
   *
   * @generated from field: memos.api.v1.ActivityPayload payload = 6;
   */
  payload?: ActivityPayload;
};

/**
 * Describes the message memos.api.v1.Activity.
 * Use `create(ActivitySchema)` to create a new message.
 */
export const ActivitySchema: GenMessage<Activity> = /*@__PURE__*/
  messageDesc(file_api_v1_activity_service, 0);

/**
 * Activity types.
 *
 * @generated from enum memos.api.v1.Activity.Type
 */
export enum Activity_Type {
  /**
   * Unspecified type.
   *
   * @generated from enum value: TYPE_UNSPECIFIED = 0;
   */
  TYPE_UNSPECIFIED = 0,

  /**
   * Memo comment activity.
   *
   * @generated from enum value: MEMO_COMMENT = 1;
   */
  MEMO_COMMENT = 1,
}

/**
 * Describes the enum memos.api.v1.Activity.Type.
 */
export const Activity_TypeSchema: GenEnum<Activity_Type> = /*@__PURE__*/
  enumDesc(file_api_v1_activity_service, 0, 0);

/**
 * Activity levels.
 *
 * @generated from enum memos.api.v1.Activity.Level
 */
export enum Activity_Level {
  /**
   * Unspecified level.
   *
   * @generated from enum value: LEVEL_UNSPECIFIED = 0;
   */
  LEVEL_UNSPECIFIED = 0,

  /**
   * Info level.
   *
   * @generated from enum value: INFO = 1;
   */
  INFO = 1,

  /**
   * Warn level.
   *
   * @generated from enum value: WARN = 2;
   */
  WARN = 2,

  /**
   * Error level.
   *
   * @generated from enum value: ERROR = 3;
   */
  ERROR = 3,
}

/**
 * Describes the enum memos.api.v1.Activity.Level.
 */
export const Activity_LevelSchema: GenEnum<Activity_Level> = /*@__PURE__*/
  enumDesc(file_api_v1_activity_service, 0, 1);

/**
 * @generated from message memos.api.v1.ActivityPayload
 */
export type ActivityPayload = Message<"memos.api.v1.ActivityPayload"> & {
  /**
   * @generated from oneof memos.api.v1.ActivityPayload.payload
   */
  payload: {
    /**
     * Memo comment activity payload.
     *
     * @generated from field: memos.api.v1.ActivityMemoCommentPayload memo_comment = 1;
     */
    value: ActivityMemoCommentPayload;
    case: "memoComment";
  } | { case: undefined; value?: undefined };
};

/**
 * Describes the message memos.api.v1.ActivityPayload.
 * Use `create(ActivityPayloadSchema)` to create a new message.
 */
export const ActivityPayloadSchema: GenMessage<ActivityPayload> = /*@__PURE__*/
  messageDesc(file_api_v1_activity_service, 1);

/**
 * ActivityMemoCommentPayload represents the payload of a memo comment activity.
 *
 * @generated from message memos.api.v1.ActivityMemoCommentPayload
 */
export type ActivityMemoCommentPayload = Message<"memos.api.v1.ActivityMemoCommentPayload"> & {
  /**
   * The memo name of comment.
   * Format: memos/{memo}
   *
   * @generated from field: string memo = 1;
   */
  memo: string;

  /**
   * The name of related memo.
   * Format: memos/{memo}
   *
   * @generated from field: string related_memo = 2;
   */
  relatedMemo: string;
};

/**
 * Describes the message memos.api.v1.ActivityMemoCommentPayload.
 * Use `create(ActivityMemoCommentPayloadSchema)` to create a new message.
 */
export const ActivityMemoCommentPayloadSchema: GenMessage<ActivityMemoCommentPayload> = /*@__PURE__*/
  messageDesc(file_api_v1_activity_service, 2);

/**
 * @generated from message memos.api.v1.ListActivitiesRequest
 */
export type ListActivitiesRequest = Message<"memos.api.v1.ListActivitiesRequest"> & {
  /**
   * The maximum number of activities to return.
   * The service may return fewer than this value.
   * If unspecified, at most 100 activities will be returned.
   * The maximum value is 1000; values above 1000 will be coerced to 1000.
   *
   * @generated from field: int32 page_size = 1;
   */
  pageSize: number;

  /**
   * A page token, received from a previous `ListActivities` call.
   * Provide this to retrieve the subsequent page.
   *
   * @generated from field: string page_token = 2;
   */
  pageToken: string;
};

/**
 * Describes the message memos.api.v1.ListActivitiesRequest.
 * Use `create(ListActivitiesRequestSchema)` to create a new message.
 */
export const ListActivitiesRequestSchema: GenMessage<ListActivitiesRequest> = /*@__PURE__*/
  messageDesc(file_api_v1_activity_service, 3);

/**
 * @generated from message memos.api.v1.ListActivitiesResponse
 */
export type ListActivitiesResponse = Message<"memos.api.v1.ListActivitiesResponse"> & {
  /**
   * The activities.
   *
   * @generated from field: repeated memos.api.v1.Activity activities = 1;
   */
  activities: Activity[];

  /**
   * A token to retrieve the next page of results.
   * Pass this value in the page_token field in the subsequent call to `ListActivities`
   * method to retrieve the next page of results.
   *
   * @generated from field: string next_page_token = 2;
   */
  nextPageToken: string;
};

/**
 * Describes the message memos.api.v1.ListActivitiesResponse.
 * Use `create(ListActivitiesResponseSchema)` to create a new message.
 */
export const ListActivitiesResponseSchema: GenMessage<ListActivitiesResponse> = /*@__PURE__*/
  messageDesc(file_api_v1_activity_service, 4);

/**
 * @generated from message memos.api.v1.GetActivityRequest
 */
export type GetActivityRequest = Message<"memos.api.v1.GetActivityRequest"> & {
  /**
   * The name of the activity.
   * Format: activities/{id}, id is the system generated auto-incremented id.
   *
   * @generated from field: string name = 1;
   */
  name: string;
};

/**
 * Describes the message memos.api.v1.GetActivityRequest.
 * Use `create(GetActivityRequestSchema)` to create a new message.
 */
export const GetActivityRequestSchema: GenMessage<GetActivityRequest> = /*@__PURE__*/
  messageDesc(file_api_v1_activity_service, 5);

/**
 * @generated from service memos.api.v1.ActivityService
 */
export const ActivityService: GenService<{
  /**
   * ListActivities returns a list of activities.
   *
   * @generated from rpc memos.api.v1.ActivityService.ListActivities
   */
  listActivities: {
    methodKind: "unary";
    input: typeof ListActivitiesRequestSchema;
    output: typeof ListActivitiesResponseSchema;
  },
  /**
   * GetActivity returns the activity with the given id.
   *
   * @generated from rpc memos.api.v1.ActivityService.GetActivity
   */
  getActivity: {
    methodKind: "unary";
    input: typeof GetActivityRequestSchema;
    output: typeof ActivitySchema;
  },
}> = /*@__PURE__*/
  serviceDesc(file_api_v1_activity_service, 0);

