// This file is auto-generated by @hey-api/openapi-ts

import { oc } from '@orpc/contract'

import { zGetNotificationResponse, zPostNotificationDismissResponse } from './zod.gen'

/**
 * Mark a notification as dismissed for the current user.
 *
 * Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
 *
 * @deprecated
 */
export const post = oc
  .route({
    deprecated: true,
    description:
      'Mark a notification as dismissed for the current user.\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
    inputStructure: 'detailed',
    method: 'POST',
    operationId: 'postNotificationDismiss',
    path: '/notification/dismiss',
    tags: ['console'],
  })
  .output(zPostNotificationDismissResponse)

export const dismiss = {
  post,
}

/**
 * Return the active in-product notification for the current user in their interface language (falls back to English if unavailable). The notification is NOT marked as seen here; call POST /notification/dismiss when the user explicitly closes the modal.
 *
 * Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
 *
 * @deprecated
 */
export const get = oc
  .route({
    deprecated: true,
    description:
      'Return the active in-product notification for the current user in their interface language (falls back to English if unavailable). The notification is NOT marked as seen here; call POST /notification/dismiss when the user explicitly closes the modal.\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
    inputStructure: 'detailed',
    method: 'GET',
    operationId: 'getNotification',
    path: '/notification',
    tags: ['console'],
  })
  .output(zGetNotificationResponse)

export const notification = {
  get,
  dismiss,
}

export const contract = {
  notification,
}
