bitsnap-react 1.6.1 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +135 -0
- package/dist/CartProvider-F2VH7WFO.mjs +2 -0
- package/dist/CartProvider-F2VH7WFO.mjs.map +1 -0
- package/dist/CartProvider-PDEV6GCV.css +2 -0
- package/dist/CartProvider-PDEV6GCV.css.map +1 -0
- package/dist/appearance-core-Dt2grZdl.d.mts +19 -0
- package/dist/appearance-core-Dt2grZdl.d.ts +19 -0
- package/dist/catalog.css +2 -0
- package/dist/catalog.css.map +1 -0
- package/dist/catalog.d.mts +214 -0
- package/dist/catalog.d.ts +214 -0
- package/dist/catalog.js +2 -0
- package/dist/catalog.js.map +1 -0
- package/dist/catalog.mjs +2 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/chunk-3TENJTY4.mjs +2 -0
- package/dist/chunk-3TENJTY4.mjs.map +1 -0
- package/dist/chunk-4HOZFM6V.mjs +2 -0
- package/dist/chunk-4HOZFM6V.mjs.map +1 -0
- package/dist/chunk-6KQBDN7M.mjs +2 -0
- package/dist/chunk-6KQBDN7M.mjs.map +1 -0
- package/dist/chunk-FTYJTO6O.mjs +2 -0
- package/dist/chunk-FTYJTO6O.mjs.map +1 -0
- package/dist/chunk-RATFYRKZ.mjs +4 -0
- package/dist/chunk-RATFYRKZ.mjs.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +62 -23
- package/dist/index.d.ts +62 -23
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -3
- package/dist/index.mjs.map +1 -1
- package/dist/methods-PFZSMZFU.mjs +2 -0
- package/dist/methods-PFZSMZFU.mjs.map +1 -0
- package/dist/methods-QAZED7TJ.css +2 -0
- package/dist/methods-QAZED7TJ.css.map +1 -0
- package/dist/models.d.mts +54 -0
- package/dist/models.d.ts +54 -0
- package/dist/models.js +1 -1
- package/dist/models.js.map +1 -1
- package/dist/models.mjs +1 -1
- package/dist/models.mjs.map +1 -1
- package/dist/returns.d.mts +602 -52
- package/dist/returns.d.ts +602 -52
- package/dist/returns.js +1 -1
- package/dist/returns.js.map +1 -1
- package/dist/returns.mjs +1 -1
- package/package.json +21 -26
- package/dist/chunk-O4ICBP4G.mjs +0 -2
- package/dist/chunk-O4ICBP4G.mjs.map +0 -1
package/dist/returns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/returns/index.ts","../src/returns/BitsnapReturns.tsx","../src/gen/proto/common/v1/environment_pb.ts","../src/gen/proto/public/v1/returns_pb.ts"],"sourcesContent":["export {\n BitsnapReturns,\n BitsnapReturnsProvider,\n useCreateReturn,\n useMyReturns,\n useReturnableOrder,\n useReturnOrders,\n useReturnSession,\n} from \"./BitsnapReturns\";\nexport type {\n BitsnapReturnsProps,\n BitsnapReturnsProviderProps,\n} from \"./BitsnapReturns\";\nexport { Environment } from \"../gen/proto/common/v1/environment_pb\";\n","\"use client\";\n\nimport { Code, ConnectError, createClient, type Client } from \"@connectrpc/connect\";\nimport { createConnectTransport } from \"@connectrpc/connect-web\";\nimport { Environment } from \"../gen/proto/common/v1/environment_pb\";\nimport { ReturnsService } from \"../gen/proto/public/v1/returns_pb\";\nimport type {\n ReturnOrderDetail,\n ReturnRequestView,\n ReturnOrderSummary,\n} from \"../gen/proto/public/v1/returns_pb\";\nimport { QueryClient, QueryClientProvider, useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport React, { createContext, useContext, useMemo, useRef, useState } from \"react\";\n\nexport type BitsnapReturnsProviderProps = {\n projectID: string;\n host?: string;\n environment?: Environment;\n children: React.ReactNode;\n};\n\ntype ReturnsContextValue = {\n projectID: string;\n host: string;\n environment: Environment;\n client: Client<typeof ReturnsService>;\n sessionToken?: string;\n setSession: (token?: string, expiresAt?: number) => void;\n expiresAt?: number;\n};\n\nconst ReturnsContext = createContext<ReturnsContextValue | null>(null);\n\n/** Provider for the returns hooks when building a custom customer flow. */\nexport function BitsnapReturnsProvider({\n projectID,\n host = \"https://bitsnap.pl\",\n environment = Environment.PRODUCTION,\n children,\n}: BitsnapReturnsProviderProps) {\n const scope = `${host.replace(/\\/$/, \"\")}|${projectID}|${environment}`;\n const [session, setSessionState] = useState<{ token: string; expiresAt?: number; scope: string }>();\n const sessionToken = session?.scope === scope ? session.token : undefined;\n const expiresAt = session?.scope === scope ? session.expiresAt : undefined;\n const [queryClient] = useState(() => new QueryClient({ defaultOptions: { queries: { staleTime: 0, refetchOnWindowFocus: true } } }));\n const client = useMemo(\n () =>\n createClient(\n ReturnsService,\n createConnectTransport({\n baseUrl: `${host.replace(/\\/$/, \"\")}/api/rpc`,\n useBinaryFormat: true,\n }),\n ),\n [host],\n );\n const contextValue = useMemo(\n () => ({\n projectID,\n host: host.replace(/\\/$/, \"\"),\n environment,\n client,\n sessionToken,\n setSession: (token?: string, expiry?: number) => setSessionState(\n token ? { token, expiresAt: expiry, scope } : undefined,\n ),\n expiresAt,\n }),\n [projectID, host, environment, client, sessionToken, expiresAt, scope],\n );\n\n return <QueryClientProvider client={queryClient}><ReturnsContext.Provider value={contextValue}>{children}</ReturnsContext.Provider></QueryClientProvider>;\n}\n\nfunction useReturnsContext() {\n const value = useContext(ReturnsContext);\n if (!value) throw new Error(\"Wrap returns hooks in BitsnapReturnsProvider.\");\n return value;\n}\n\nfunction handleSessionError(error: unknown, clear: () => void) {\n if (error instanceof ConnectError && error.code === Code.Unauthenticated) clear();\n throw error;\n}\n\nexport function useReturnSession() {\n const ctx = useReturnsContext();\n const start = useMutation({\n mutationFn: (email: string) =>\n ctx.client.startReturnSession({ projectId: ctx.projectID, email, environment: ctx.environment }),\n });\n const verify = useMutation({\n mutationFn: async ({ challengeId, code }: { challengeId: string; code: string }) => {\n const result = await ctx.client.verifyReturnSession({\n projectId: ctx.projectID,\n challengeId,\n code,\n environment: ctx.environment,\n });\n const expiry = result.expiresAt\n ? Number(result.expiresAt.seconds) * 1000 + result.expiresAt.nanos / 1_000_000\n : undefined;\n ctx.setSession(result.sessionToken, expiry);\n return result;\n },\n });\n const logout = () => {\n ctx.setSession(undefined);\n verify.reset();\n start.reset();\n };\n return { startSession: start.mutateAsync, verifySession: verify.mutateAsync, logout, isAuthenticated: Boolean(ctx.sessionToken && (!ctx.expiresAt || Date.now() < ctx.expiresAt)), starting: start.isPending, verifying: verify.isPending, error: start.error ?? verify.error };\n}\n\nexport function useReturnOrders(pageSize = 20, pageToken = \"\") {\n const ctx = useReturnsContext();\n const token = ctx.sessionToken;\n return useQuery({\n queryKey: [\"bitsnap-returns\", ctx.host, ctx.projectID, ctx.environment, pageSize, pageToken, \"orders\"],\n enabled: Boolean(token && (!ctx.expiresAt || Date.now() < ctx.expiresAt)),\n queryFn: () => ctx.client.listReturnOrders({ projectId: ctx.projectID, sessionToken: token!, pageSize, pageToken }).catch((e) => handleSessionError(e, () => ctx.setSession(undefined))),\n });\n}\n\nexport function useReturnableOrder(canonicalOrderID?: string) {\n const ctx = useReturnsContext();\n const token = ctx.sessionToken;\n return useQuery({\n queryKey: [\"bitsnap-returns\", ctx.host, ctx.projectID, ctx.environment, canonicalOrderID, \"order\"],\n enabled: Boolean(token && canonicalOrderID && (!ctx.expiresAt || Date.now() < ctx.expiresAt)),\n queryFn: () => ctx.client.getReturnableOrder({ projectId: ctx.projectID, sessionToken: token!, canonicalOrderId: canonicalOrderID! }).catch((e) => handleSessionError(e, () => ctx.setSession(undefined))),\n });\n}\n\nexport function useCreateReturn() {\n const ctx = useReturnsContext();\n const token = ctx.sessionToken;\n const queryClient = useQueryClient();\n return useMutation({\n mutationFn: (input: { canonicalOrderID: string; items: { lineId: string; quantity: number }[]; note?: string; idempotencyKey?: string }) => {\n if (!token || (ctx.expiresAt && Date.now() >= ctx.expiresAt)) {\n ctx.setSession(undefined);\n throw new Error(\"Verify your email to continue.\");\n }\n return ctx.client.createReturnRequest({\n projectId: ctx.projectID,\n sessionToken: token,\n canonicalOrderId: input.canonicalOrderID,\n items: input.items,\n note: input.note ?? \"\",\n idempotencyKey: input.idempotencyKey ?? globalThis.crypto.randomUUID(),\n }).catch((e) => handleSessionError(e, () => ctx.setSession(undefined)));\n },\n onSuccess: async () => queryClient.invalidateQueries({ queryKey: [\"bitsnap-returns\", ctx.host, ctx.projectID, ctx.environment] }),\n });\n}\n\nexport function useMyReturns(pageSize = 20, pageToken = \"\") {\n const ctx = useReturnsContext();\n const token = ctx.sessionToken;\n return useQuery({\n queryKey: [\"bitsnap-returns\", ctx.host, ctx.projectID, ctx.environment, pageSize, pageToken, \"mine\"],\n enabled: Boolean(token && (!ctx.expiresAt || Date.now() < ctx.expiresAt)),\n queryFn: () => ctx.client.listMyReturns({ projectId: ctx.projectID, sessionToken: token!, pageSize, pageToken }).catch((e) => handleSessionError(e, () => ctx.setSession(undefined))),\n });\n}\n\nexport type BitsnapReturnsProps = {\n projectID: string;\n host?: string;\n environment?: Environment;\n texts?: Partial<{\n title: string; email: string; sendCode: string; code: string; verify: string;\n orders: string; submit: string; note: string; loading: string; history: string;\n }>;\n theme?: { brandColor?: string };\n className?: string;\n};\n\nconst defaultTexts = {\n title: \"Request a return\", email: \"Email address\", sendCode: \"Send code\", code: \"Email code\",\n verify: \"Verify\", orders: \"Your orders\", submit: \"Submit return\", note: \"Note (optional)\",\n loading: \"Loading…\", history: \"My return requests\",\n};\n\nexport function BitsnapReturns(props: BitsnapReturnsProps) {\n return (\n <BitsnapReturnsProvider projectID={props.projectID} host={props.host} environment={props.environment}>\n <BitsnapReturnsForm {...props} />\n </BitsnapReturnsProvider>\n );\n}\n\nfunction BitsnapReturnsForm(props: BitsnapReturnsProps) {\n const texts = { ...defaultTexts, ...props.texts };\n const session = useReturnSession();\n const [orderPageToken, setOrderPageToken] = useState(\"\");\n const ordersQuery = useReturnOrders(20, orderPageToken);\n const mineQuery = useMyReturns();\n const create = useCreateReturn();\n const [email, setEmail] = useState(\"\");\n const [challengeID, setChallengeID] = useState(\"\");\n const [code, setCode] = useState(\"\");\n const [selectedOrder, setSelectedOrder] = useState<ReturnOrderSummary>();\n const [orderDetail, setOrderDetail] = useState<ReturnOrderDetail>();\n const [quantities, setQuantities] = useState<Record<string, number>>({});\n const [note, setNote] = useState(\"\");\n const [created, setCreated] = useState<ReturnRequestView>();\n const submittingRef = useRef(false);\n const idempotencyKeyRef = useRef<string | undefined>(undefined);\n const orderQuery = useReturnableOrder(selectedOrder?.canonicalOrderId);\n React.useEffect(() => { if (orderQuery.data?.order) setOrderDetail(orderQuery.data.order); }, [orderQuery.data]);\n const error = session.error ?? ordersQuery.error ?? orderQuery.error ?? create.error;\n const style = { \"--bitsnap-returns-brand\": props.theme?.brandColor ?? \"#111827\" } as React.CSSProperties;\n\n return (\n <section className={`bitsnap-returns ${props.className ?? \"\"}`} style={style} aria-live=\"polite\">\n <h2 className=\"mb-4 text-xl font-semibold\">{texts.title}</h2>\n {!session.isAuthenticated && (\n <div className=\"space-y-3\">\n <label className=\"block text-sm\">{texts.email}<input type=\"email\" autoComplete=\"email\" value={email} onChange={(e) => setEmail(e.target.value)} className=\"mt-1 block w-full rounded border p-2\" /></label>\n {!challengeID ? <button type=\"button\" disabled={session.starting || !email} onClick={async () => { const response = await session.startSession(email); setChallengeID(response.challengeId); }} className=\"rounded bg-[var(--bitsnap-returns-brand)] px-4 py-2 text-white disabled:opacity-50\">{session.starting ? texts.loading : texts.sendCode}</button> : <>\n <label className=\"block text-sm\">{texts.code}<input inputMode=\"numeric\" autoComplete=\"one-time-code\" value={code} onChange={(e) => setCode(e.target.value)} className=\"mt-1 block w-full rounded border p-2\" /></label>\n <button type=\"button\" disabled={session.verifying || !code} onClick={() => session.verifySession({ challengeId: challengeID, code })} className=\"rounded bg-[var(--bitsnap-returns-brand)] px-4 py-2 text-white disabled:opacity-50\">{session.verifying ? texts.loading : texts.verify}</button>\n <button type=\"button\" disabled={session.starting} onClick={async () => { const response = await session.startSession(email); setChallengeID(response.challengeId); }} className=\"ml-3 underline\">Resend code</button>\n </>}\n </div>\n )}\n {ordersQuery.isLoading && <p>{texts.loading}</p>}\n {ordersQuery.data != null && !selectedOrder && !created && <div className=\"space-y-3\"><h3 className=\"font-medium\">{texts.orders}</h3>{ordersQuery.data.orders.length === 0 && <p>No eligible orders found.</p>}{ordersQuery.data.orders.map((order) => <button key={order.canonicalOrderId} type=\"button\" onClick={() => setSelectedOrder(order)} className=\"block w-full rounded border p-3 text-left hover:border-[var(--bitsnap-returns-brand)]\"><span className=\"font-medium\">{order.displayReference}</span><span className=\"ml-2 text-sm text-gray-600\">{order.currency} {formatMinor(order.totalMinor)}</span></button>)}{ordersQuery.data.nextPageToken && <button type=\"button\" onClick={() => setOrderPageToken(ordersQuery.data?.nextPageToken ?? \"\")} className=\"underline\">Next orders</button>}</div>}\n {orderDetail && !created && <div className=\"space-y-3\"><button type=\"button\" onClick={() => { setSelectedOrder(undefined); setOrderDetail(undefined); }} className=\"text-sm underline\">← {texts.orders}</button>{orderDetail.lines.map((line) => <label key={line.lineId} className=\"flex items-center justify-between gap-3 rounded border p-3\"><span>{line.name}<small className=\"block text-gray-600\">{line.availableQuantity} available · {line.currency} {formatMinor(line.paidUnitMinor)}</small></span><input type=\"number\" min={0} max={line.availableQuantity} disabled={!line.eligible} value={quantities[line.lineId] ?? 0} onChange={(e) => setQuantities((prev) => ({ ...prev, [line.lineId]: Math.max(0, Math.min(line.availableQuantity, Number(e.target.value))) }))} className=\"w-20 rounded border p-2\" />{!line.eligible && <small>{line.exclusionReason}</small>}</label>)}<label className=\"block text-sm\">{texts.note}<textarea value={note} onChange={(e) => setNote(e.target.value)} className=\"mt-1 block w-full rounded border p-2\" /></label><button type=\"button\" disabled={create.isPending || !Object.values(quantities).some((q) => q > 0)} onClick={async () => { if (submittingRef.current) return; submittingRef.current = true; idempotencyKeyRef.current ??= globalThis.crypto.randomUUID(); try { const result = await create.mutateAsync({ canonicalOrderID: orderDetail.canonicalOrderId, items: Object.entries(quantities).filter(([, quantity]) => quantity > 0).map(([lineId, quantity]) => ({ lineId, quantity })), note, idempotencyKey: idempotencyKeyRef.current }); if (result && \"request\" in result && result.request) setCreated(result.request); } finally { submittingRef.current = false; } }} className=\"rounded bg-[var(--bitsnap-returns-brand)] px-4 py-2 text-white disabled:opacity-50\">{create.isPending ? texts.loading : texts.submit}</button></div>}\n {created && <div className=\"rounded border p-4\"><h3 className=\"font-semibold\">Return submitted</h3><p>Reference: <strong>{created.reference}</strong></p><p>Status: {created.status}</p>{created.returnInstructions && <p className=\"mt-2\">{created.returnInstructions}</p>}<button type=\"button\" onClick={() => { setCreated(undefined); setSelectedOrder(undefined); setOrderDetail(undefined); setQuantities({}); void mineQuery.refetch(); }} className=\"mt-3 underline\">{texts.history}</button></div>}\n {mineQuery.data?.returns && mineQuery.data.returns.length > 0 && !created && <div className=\"mt-6\"><h3 className=\"mb-2 font-medium\">{texts.history}</h3>{mineQuery.data.returns.map((item) => <div key={item.id} className=\"border-t py-2\"><strong>{item.reference}</strong><span className=\"ml-2\">{item.status}</span></div>)}</div>}\n {error && <p role=\"alert\" className=\"mt-3 text-sm text-red-700\">{error.message}</p>}\n </section>\n );\n}\n\nfunction formatMinor(amount: bigint | number) {\n return (Number(amount) / 100).toFixed(2);\n}\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file common/v1/environment.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc } from \"@bufbuild/protobuf/codegenv2\";\n\n/**\n * Describes the file common/v1/environment.proto.\n */\nexport const file_common_v1_environment: GenFile = /*@__PURE__*/\n fileDesc(\"Chtjb21tb24vdjEvZW52aXJvbm1lbnQucHJvdG8SCWNvbW1vbi52MSonCgtFbnZpcm9ubWVudBIOCgpQUk9EVUNUSU9OEAASCAoEVEVTVBABQk5aTGdpdGh1Yi5jb20vZW1tZW1zL3N1cGVyLWNhcnQvYXBwcy9zcnYtd29ya2VyL3V0aWxzL21vZGVscy9jb21tb24vdjE7Y29tbW9udjFiBnByb3RvMw\");\n\n/**\n * @generated from enum common.v1.Environment\n */\nexport enum Environment {\n /**\n * @generated from enum value: PRODUCTION = 0;\n */\n PRODUCTION = 0,\n\n /**\n * @generated from enum value: TEST = 1;\n */\n TEST = 1,\n}\n\n/**\n * Describes the enum common.v1.Environment.\n */\nexport const EnvironmentSchema: GenEnum<Environment> = /*@__PURE__*/\n enumDesc(file_common_v1_environment, 0);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file public/v1/returns.proto (package public.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Environment } from \"../../common/v1/environment_pb\";\nimport { file_common_v1_environment } from \"../../common/v1/environment_pb\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file public/v1/returns.proto.\n */\nexport const file_public_v1_returns: GenFile = /*@__PURE__*/\n fileDesc(\"ChdwdWJsaWMvdjEvcmV0dXJucy5wcm90bxIJcHVibGljLnYxImsKGVN0YXJ0UmV0dXJuU2Vzc2lvblJlcXVlc3QSEgoKcHJvamVjdF9pZBgBIAEoCRINCgVlbWFpbBgCIAEoCRIrCgtlbnZpcm9ubWVudBgDIAEoDjIWLmNvbW1vbi52MS5FbnZpcm9ubWVudCJhChpTdGFydFJldHVyblNlc3Npb25SZXNwb25zZRIUCgxjaGFsbGVuZ2VfaWQYASABKAkSHAoUcmVzZW5kX2FmdGVyX3NlY29uZHMYAiABKAUSDwoHbWVzc2FnZRgDIAEoCSKBAQoaVmVyaWZ5UmV0dXJuU2Vzc2lvblJlcXVlc3QSEgoKcHJ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kxpc3RSZXR1cm5PcmRlcnNSZXF1ZXN0GiMucHVibGljLnYxLkxpc3RSZXR1cm5PcmRlcnNSZXNwb25zZRJhChJHZXRSZXR1cm5hYmxlT3JkZXISJC5wdWJsaWMudjEuR2V0UmV0dXJuYWJsZU9yZGVyUmVxdWVzdBolLnB1YmxpYy52MS5HZXRSZXR1cm5hYmxlT3JkZXJSZXNwb25zZRJkChNDcmVhdGVSZXR1cm5SZXF1ZXN0EiUucHVibGljLnYxLkNyZWF0ZVJldHVyblJlcXVlc3RSZXF1ZXN0GiYucHVibGljLnYxLkNyZWF0ZVJldHVyblJlcXVlc3RSZXNwb25zZRJSCg1MaXN0TXlSZXR1cm5zEh8ucHVibGljLnYxLkxpc3RNeVJldHVybnNSZXF1ZXN0GiAucHVibGljLnYxLkxpc3RNeVJldHVybnNSZXNwb25zZRJMCgtHZXRNeVJldHVybhIdLnB1YmxpYy52MS5HZXRNeVJldHVyblJlcXVlc3QaHi5wdWJsaWMudjEuR2V0TXlSZXR1cm5SZXNwb25zZWIGcHJvdG8z\", [file_common_v1_environment, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message public.v1.StartReturnSessionRequest\n */\nexport type StartReturnSessionRequest = Message<\"public.v1.StartReturnSessionRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: common.v1.Environment environment = 3;\n */\n environment: Environment;\n};\n\n/**\n * Describes the message public.v1.StartReturnSessionRequest.\n * Use `create(StartReturnSessionRequestSchema)` to create a new message.\n */\nexport const StartReturnSessionRequestSchema: GenMessage<StartReturnSessionRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 0);\n\n/**\n * @generated from message public.v1.StartReturnSessionResponse\n */\nexport type StartReturnSessionResponse = Message<\"public.v1.StartReturnSessionResponse\"> & {\n /**\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * @generated from field: int32 resend_after_seconds = 2;\n */\n resendAfterSeconds: number;\n\n /**\n * @generated from field: string message = 3;\n */\n message: string;\n};\n\n/**\n * Describes the message public.v1.StartReturnSessionResponse.\n * Use `create(StartReturnSessionResponseSchema)` to create a new message.\n */\nexport const StartReturnSessionResponseSchema: GenMessage<StartReturnSessionResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 1);\n\n/**\n * @generated from message public.v1.VerifyReturnSessionRequest\n */\nexport type VerifyReturnSessionRequest = Message<\"public.v1.VerifyReturnSessionRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string challenge_id = 2;\n */\n challengeId: string;\n\n /**\n * @generated from field: string code = 3;\n */\n code: string;\n\n /**\n * @generated from field: common.v1.Environment environment = 4;\n */\n environment: Environment;\n};\n\n/**\n * Describes the message public.v1.VerifyReturnSessionRequest.\n * Use `create(VerifyReturnSessionRequestSchema)` to create a new message.\n */\nexport const VerifyReturnSessionRequestSchema: GenMessage<VerifyReturnSessionRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 2);\n\n/**\n * @generated from message public.v1.VerifyReturnSessionResponse\n */\nexport type VerifyReturnSessionResponse = Message<\"public.v1.VerifyReturnSessionResponse\"> & {\n /**\n * @generated from field: string session_token = 1;\n */\n sessionToken: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message public.v1.VerifyReturnSessionResponse.\n * Use `create(VerifyReturnSessionResponseSchema)` to create a new message.\n */\nexport const VerifyReturnSessionResponseSchema: GenMessage<VerifyReturnSessionResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 3);\n\n/**\n * @generated from message public.v1.ReturnPage\n */\nexport type ReturnPage = Message<\"public.v1.ReturnPage\"> & {\n /**\n * @generated from field: int32 page_size = 1;\n */\n pageSize: number;\n\n /**\n * @generated from field: string page_token = 2;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message public.v1.ReturnPage.\n * Use `create(ReturnPageSchema)` to create a new message.\n */\nexport const ReturnPageSchema: GenMessage<ReturnPage> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 4);\n\n/**\n * @generated from message public.v1.ReturnOrderSummary\n */\nexport type ReturnOrderSummary = Message<\"public.v1.ReturnOrderSummary\"> & {\n /**\n * @generated from field: string canonical_order_id = 1;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: string display_reference = 2;\n */\n displayReference: string;\n\n /**\n * @generated from field: string gateway = 3;\n */\n gateway: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp purchased_at = 4;\n */\n purchasedAt?: Timestamp;\n\n /**\n * @generated from field: int64 total_minor = 5;\n */\n totalMinor: bigint;\n\n /**\n * @generated from field: string currency = 6;\n */\n currency: string;\n\n /**\n * @generated from field: int32 returnable_line_count = 7;\n */\n returnableLineCount: number;\n};\n\n/**\n * Describes the message public.v1.ReturnOrderSummary.\n * Use `create(ReturnOrderSummarySchema)` to create a new message.\n */\nexport const ReturnOrderSummarySchema: GenMessage<ReturnOrderSummary> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 5);\n\n/**\n * @generated from message public.v1.ListReturnOrdersRequest\n */\nexport type ListReturnOrdersRequest = Message<\"public.v1.ListReturnOrdersRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: int32 page_size = 3;\n */\n pageSize: number;\n\n /**\n * @generated from field: string page_token = 4;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message public.v1.ListReturnOrdersRequest.\n * Use `create(ListReturnOrdersRequestSchema)` to create a new message.\n */\nexport const ListReturnOrdersRequestSchema: GenMessage<ListReturnOrdersRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 6);\n\n/**\n * @generated from message public.v1.ListReturnOrdersResponse\n */\nexport type ListReturnOrdersResponse = Message<\"public.v1.ListReturnOrdersResponse\"> & {\n /**\n * @generated from field: repeated public.v1.ReturnOrderSummary orders = 1;\n */\n orders: ReturnOrderSummary[];\n\n /**\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n\n /**\n * @generated from field: int32 total = 3;\n */\n total: number;\n};\n\n/**\n * Describes the message public.v1.ListReturnOrdersResponse.\n * Use `create(ListReturnOrdersResponseSchema)` to create a new message.\n */\nexport const ListReturnOrdersResponseSchema: GenMessage<ListReturnOrdersResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 7);\n\n/**\n * @generated from message public.v1.ReturnOrderLine\n */\nexport type ReturnOrderLine = Message<\"public.v1.ReturnOrderLine\"> & {\n /**\n * @generated from field: string line_id = 1;\n */\n lineId: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: string variant_id = 3;\n */\n variantId: string;\n\n /**\n * @generated from field: string name = 4;\n */\n name: string;\n\n /**\n * @generated from field: string fulfillment_type = 5;\n */\n fulfillmentType: string;\n\n /**\n * @generated from field: int32 purchased_quantity = 6;\n */\n purchasedQuantity: number;\n\n /**\n * @generated from field: int32 reserved_quantity = 7;\n */\n reservedQuantity: number;\n\n /**\n * @generated from field: int32 returned_quantity = 8;\n */\n returnedQuantity: number;\n\n /**\n * @generated from field: int32 available_quantity = 9;\n */\n availableQuantity: number;\n\n /**\n * @generated from field: int64 regular_unit_minor = 10;\n */\n regularUnitMinor: bigint;\n\n /**\n * @generated from field: int64 paid_unit_minor = 11;\n */\n paidUnitMinor: bigint;\n\n /**\n * @generated from field: string currency = 12;\n */\n currency: string;\n\n /**\n * @generated from field: bool eligible = 13;\n */\n eligible: boolean;\n\n /**\n * @generated from field: string exclusion_reason = 14;\n */\n exclusionReason: string;\n\n /**\n * @generated from field: int64 paid_line_total_minor = 15;\n */\n paidLineTotalMinor: bigint;\n\n /**\n * @generated from field: int64 coupon_allocation_minor = 16;\n */\n couponAllocationMinor: bigint;\n\n /**\n * @generated from field: string access_source = 17;\n */\n accessSource: string;\n\n /**\n * @generated from field: string access_reference = 18;\n */\n accessReference: string;\n};\n\n/**\n * Describes the message public.v1.ReturnOrderLine.\n * Use `create(ReturnOrderLineSchema)` to create a new message.\n */\nexport const ReturnOrderLineSchema: GenMessage<ReturnOrderLine> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 8);\n\n/**\n * @generated from message public.v1.ReturnOrderDetail\n */\nexport type ReturnOrderDetail = Message<\"public.v1.ReturnOrderDetail\"> & {\n /**\n * @generated from field: string canonical_order_id = 1;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: string display_reference = 2;\n */\n displayReference: string;\n\n /**\n * @generated from field: string gateway = 3;\n */\n gateway: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp purchased_at = 4;\n */\n purchasedAt?: Timestamp;\n\n /**\n * @generated from field: int64 total_minor = 5;\n */\n totalMinor: bigint;\n\n /**\n * @generated from field: string currency = 6;\n */\n currency: string;\n\n /**\n * @generated from field: repeated public.v1.ReturnOrderLine lines = 7;\n */\n lines: ReturnOrderLine[];\n};\n\n/**\n * Describes the message public.v1.ReturnOrderDetail.\n * Use `create(ReturnOrderDetailSchema)` to create a new message.\n */\nexport const ReturnOrderDetailSchema: GenMessage<ReturnOrderDetail> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 9);\n\n/**\n * @generated from message public.v1.ReturnRequestLineInput\n */\nexport type ReturnRequestLineInput = Message<\"public.v1.ReturnRequestLineInput\"> & {\n /**\n * @generated from field: string line_id = 1;\n */\n lineId: string;\n\n /**\n * @generated from field: int32 quantity = 2;\n */\n quantity: number;\n};\n\n/**\n * Describes the message public.v1.ReturnRequestLineInput.\n * Use `create(ReturnRequestLineInputSchema)` to create a new message.\n */\nexport const ReturnRequestLineInputSchema: GenMessage<ReturnRequestLineInput> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 10);\n\n/**\n * @generated from message public.v1.ReturnHistoryEntry\n */\nexport type ReturnHistoryEntry = Message<\"public.v1.ReturnHistoryEntry\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string reference = 2;\n */\n reference: string;\n\n /**\n * @generated from field: string status = 3;\n */\n status: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 4;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message public.v1.ReturnHistoryEntry.\n * Use `create(ReturnHistoryEntrySchema)` to create a new message.\n */\nexport const ReturnHistoryEntrySchema: GenMessage<ReturnHistoryEntry> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 11);\n\n/**\n * @generated from message public.v1.ReturnRequestLineView\n */\nexport type ReturnRequestLineView = Message<\"public.v1.ReturnRequestLineView\"> & {\n /**\n * @generated from field: string line_id = 1;\n */\n lineId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string fulfillment_type = 3;\n */\n fulfillmentType: string;\n\n /**\n * @generated from field: int32 requested_quantity = 4;\n */\n requestedQuantity: number;\n\n /**\n * @generated from field: int32 approved_quantity = 5;\n */\n approvedQuantity: number;\n\n /**\n * @generated from field: int32 received_quantity = 6;\n */\n receivedQuantity: number;\n\n /**\n * @generated from field: string access_status = 7;\n */\n accessStatus: string;\n};\n\n/**\n * Describes the message public.v1.ReturnRequestLineView.\n * Use `create(ReturnRequestLineViewSchema)` to create a new message.\n */\nexport const ReturnRequestLineViewSchema: GenMessage<ReturnRequestLineView> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 12);\n\n/**\n * @generated from message public.v1.ReturnRequestView\n */\nexport type ReturnRequestView = Message<\"public.v1.ReturnRequestView\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string reference = 2;\n */\n reference: string;\n\n /**\n * @generated from field: string canonical_order_id = 3;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: string status = 4;\n */\n status: string;\n\n /**\n * @generated from field: string refund_status = 5;\n */\n refundStatus: string;\n\n /**\n * @generated from field: int64 refund_amount_minor = 6;\n */\n refundAmountMinor: bigint;\n\n /**\n * @generated from field: string currency = 7;\n */\n currency: string;\n\n /**\n * @generated from field: string customer_note = 8;\n */\n customerNote: string;\n\n /**\n * @generated from field: int64 version = 9;\n */\n version: bigint;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 10;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: repeated public.v1.ReturnRequestLineView lines = 11;\n */\n lines: ReturnRequestLineView[];\n\n /**\n * @generated from field: repeated public.v1.ReturnHistoryEntry history = 12;\n */\n history: ReturnHistoryEntry[];\n\n /**\n * @generated from field: string return_instructions = 13;\n */\n returnInstructions: string;\n};\n\n/**\n * Describes the message public.v1.ReturnRequestView.\n * Use `create(ReturnRequestViewSchema)` to create a new message.\n */\nexport const ReturnRequestViewSchema: GenMessage<ReturnRequestView> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 13);\n\n/**\n * @generated from message public.v1.GetReturnableOrderRequest\n */\nexport type GetReturnableOrderRequest = Message<\"public.v1.GetReturnableOrderRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: string canonical_order_id = 3;\n */\n canonicalOrderId: string;\n};\n\n/**\n * Describes the message public.v1.GetReturnableOrderRequest.\n * Use `create(GetReturnableOrderRequestSchema)` to create a new message.\n */\nexport const GetReturnableOrderRequestSchema: GenMessage<GetReturnableOrderRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 14);\n\n/**\n * @generated from message public.v1.GetReturnableOrderResponse\n */\nexport type GetReturnableOrderResponse = Message<\"public.v1.GetReturnableOrderResponse\"> & {\n /**\n * @generated from field: public.v1.ReturnOrderDetail order = 1;\n */\n order?: ReturnOrderDetail;\n\n /**\n * @generated from field: repeated public.v1.ReturnHistoryEntry return_history = 2;\n */\n returnHistory: ReturnHistoryEntry[];\n};\n\n/**\n * Describes the message public.v1.GetReturnableOrderResponse.\n * Use `create(GetReturnableOrderResponseSchema)` to create a new message.\n */\nexport const GetReturnableOrderResponseSchema: GenMessage<GetReturnableOrderResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 15);\n\n/**\n * @generated from message public.v1.CreateReturnRequestRequest\n */\nexport type CreateReturnRequestRequest = Message<\"public.v1.CreateReturnRequestRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: string canonical_order_id = 3;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: repeated public.v1.ReturnRequestLineInput items = 4;\n */\n items: ReturnRequestLineInput[];\n\n /**\n * @generated from field: string note = 5;\n */\n note: string;\n\n /**\n * @generated from field: string idempotency_key = 6;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message public.v1.CreateReturnRequestRequest.\n * Use `create(CreateReturnRequestRequestSchema)` to create a new message.\n */\nexport const CreateReturnRequestRequestSchema: GenMessage<CreateReturnRequestRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 16);\n\n/**\n * @generated from message public.v1.CreateReturnRequestResponse\n */\nexport type CreateReturnRequestResponse = Message<\"public.v1.CreateReturnRequestResponse\"> & {\n /**\n * @generated from field: public.v1.ReturnRequestView request = 1;\n */\n request?: ReturnRequestView;\n};\n\n/**\n * Describes the message public.v1.CreateReturnRequestResponse.\n * Use `create(CreateReturnRequestResponseSchema)` to create a new message.\n */\nexport const CreateReturnRequestResponseSchema: GenMessage<CreateReturnRequestResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 17);\n\n/**\n * @generated from message public.v1.ListMyReturnsRequest\n */\nexport type ListMyReturnsRequest = Message<\"public.v1.ListMyReturnsRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: int32 page_size = 3;\n */\n pageSize: number;\n\n /**\n * @generated from field: string page_token = 4;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message public.v1.ListMyReturnsRequest.\n * Use `create(ListMyReturnsRequestSchema)` to create a new message.\n */\nexport const ListMyReturnsRequestSchema: GenMessage<ListMyReturnsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 18);\n\n/**\n * @generated from message public.v1.ListMyReturnsResponse\n */\nexport type ListMyReturnsResponse = Message<\"public.v1.ListMyReturnsResponse\"> & {\n /**\n * @generated from field: repeated public.v1.ReturnRequestView returns = 1;\n */\n returns: ReturnRequestView[];\n\n /**\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n\n /**\n * @generated from field: int32 total = 3;\n */\n total: number;\n};\n\n/**\n * Describes the message public.v1.ListMyReturnsResponse.\n * Use `create(ListMyReturnsResponseSchema)` to create a new message.\n */\nexport const ListMyReturnsResponseSchema: GenMessage<ListMyReturnsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 19);\n\n/**\n * @generated from message public.v1.GetMyReturnRequest\n */\nexport type GetMyReturnRequest = Message<\"public.v1.GetMyReturnRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: string return_id = 3;\n */\n returnId: string;\n};\n\n/**\n * Describes the message public.v1.GetMyReturnRequest.\n * Use `create(GetMyReturnRequestSchema)` to create a new message.\n */\nexport const GetMyReturnRequestSchema: GenMessage<GetMyReturnRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 20);\n\n/**\n * @generated from message public.v1.GetMyReturnResponse\n */\nexport type GetMyReturnResponse = Message<\"public.v1.GetMyReturnResponse\"> & {\n /**\n * @generated from field: public.v1.ReturnRequestView request = 1;\n */\n request?: ReturnRequestView;\n};\n\n/**\n * Describes the message public.v1.GetMyReturnResponse.\n * Use `create(GetMyReturnResponseSchema)` to create a new message.\n */\nexport const GetMyReturnResponseSchema: GenMessage<GetMyReturnResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 21);\n\n/**\n * @generated from service public.v1.ReturnsService\n */\nexport const ReturnsService: GenService<{\n /**\n * @generated from rpc public.v1.ReturnsService.StartReturnSession\n */\n startReturnSession: {\n methodKind: \"unary\";\n input: typeof StartReturnSessionRequestSchema;\n output: typeof StartReturnSessionResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.VerifyReturnSession\n */\n verifyReturnSession: {\n methodKind: \"unary\";\n input: typeof VerifyReturnSessionRequestSchema;\n output: typeof VerifyReturnSessionResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.ListReturnOrders\n */\n listReturnOrders: {\n methodKind: \"unary\";\n input: typeof ListReturnOrdersRequestSchema;\n output: typeof ListReturnOrdersResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.GetReturnableOrder\n */\n getReturnableOrder: {\n methodKind: \"unary\";\n input: typeof GetReturnableOrderRequestSchema;\n output: typeof GetReturnableOrderResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.CreateReturnRequest\n */\n createReturnRequest: {\n methodKind: \"unary\";\n input: typeof CreateReturnRequestRequestSchema;\n output: typeof CreateReturnRequestResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.ListMyReturns\n */\n listMyReturns: {\n methodKind: \"unary\";\n input: typeof ListMyReturnsRequestSchema;\n output: typeof ListMyReturnsResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.GetMyReturn\n */\n getMyReturn: {\n methodKind: \"unary\";\n input: typeof GetMyReturnRequestSchema;\n output: typeof GetMyReturnResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_public_v1_returns, 0);\n\n"],"mappings":"ukBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,oBAAAE,EAAA,2BAAAC,EAAA,gBAAAC,EAAA,oBAAAC,EAAA,iBAAAC,EAAA,oBAAAC,EAAA,qBAAAC,EAAA,uBAAAC,IAAA,eAAAC,GA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,IAAK6B,MAAS,QAAC,OAAkB,UAAU,gBAAgB,oBAAC,UAAQ,SAAAA,EAAK,UAAU,KAAS,OAAC,QAAK,UAAU,OAAQ,SAAAA,EAAK,OAAO,IAAxGA,EAAK,EAA0G,CAAM,GAAE,EAC9TzD,MAAS,OAAC,KAAE,KAAK,QAAQ,UAAU,4BAA6B,SAAAA,EAAM,QAAQ,GACjF,CAEJ,CAEA,SAASmD,EAAYO,EAAyB,CAC5C,OAAQ,OAAOA,CAAM,EAAI,KAAK,QAAQ,CAAC,CACzC","names":["returns_exports","__export","BitsnapReturns","BitsnapReturnsProvider","Environment","useCreateReturn","useMyReturns","useReturnOrders","useReturnSession","useReturnableOrder","__toCommonJS","import_connect","import_connect_web","import_codegenv2","file_common_v1_environment","Environment","import_codegenv2","import_wkt","file_public_v1_returns","file_common_v1_environment","ReturnsService","file_public_v1_returns","import_react_query","import_react","import_jsx_runtime","ReturnsContext","BitsnapReturnsProvider","projectID","host","environment","children","scope","session","setSessionState","sessionToken","expiresAt","queryClient","client","ReturnsService","contextValue","token","expiry","useReturnsContext","value","handleSessionError","error","clear","useReturnSession","ctx","start","email","verify","challengeId","code","result","logout","useReturnOrders","pageSize","pageToken","e","useReturnableOrder","canonicalOrderID","useCreateReturn","input","useMyReturns","defaultTexts","BitsnapReturns","props","BitsnapReturnsForm","texts","orderPageToken","setOrderPageToken","ordersQuery","mineQuery","create","setEmail","challengeID","setChallengeID","setCode","selectedOrder","setSelectedOrder","orderDetail","setOrderDetail","quantities","setQuantities","note","setNote","created","setCreated","submittingRef","idempotencyKeyRef","orderQuery","React","style","response","order","formatMinor","line","prev","q","quantity","lineId","item","amount"]}
|
|
1
|
+
{"version":3,"sources":["../src/returns/index.ts","../src/components/returns/BitsnapReturns.tsx","../src/lib/utils.ts","../src/components/returns/appearance.context.tsx","../src/lib/appearance-core.ts","../src/components/returns/appearance.ts","../src/components/returns/AuthSteps.tsx","../src/ui/button.tsx","../src/ui/input.tsx","../src/ui/label.tsx","../src/ui/spinner.tsx","../src/components/returns/hooks.ts","../src/rpc-provider.tsx","../src/components/checkout/constants.ts","../src/gen/proto/dashboard/v1/notifications-NotificationsService_connectquery.ts","../src/gen/proto/dashboard/v1/notifications_pb.ts","../src/gen/proto/dashboard/v1/product_pb.ts","../src/gen/proto/common/v1/push_notifications_pb.ts","../src/gen/proto/public/v1/public_api-PublicApiService_connectquery.ts","../src/gen/proto/public/v1/public_api_pb.ts","../src/gen/proto/common/v1/address_pb.ts","../src/gen/proto/common/v1/gateway_pb.ts","../src/gen/proto/dashboard/v1/audiobooks_pb.ts","../src/gen/proto/public/v1/returns-ReturnsService_connectquery.ts","../src/gen/proto/public/v1/returns_pb.ts","../src/gen/proto/common/v1/environment_pb.ts","../src/components/returns/errors.ts","../src/components/returns/idempotency.ts","../src/components/returns/color.ts","../src/components/returns/legacy.ts","../src/components/returns/ReturnsProvider.tsx","../src/components/returns/session-storage.ts","../src/components/returns/texts.context.tsx","../src/lib/texts.ts","../src/components/checkout/locale.ts","../src/components/returns/texts.ts","../src/ui/skeleton.tsx","../src/components/returns/internal.tsx","../src/components/returns/date.ts","../src/components/returns/money.ts","../src/components/returns/MyReturns.tsx","../src/components/returns/OrderSteps.tsx","../src/ui/textarea.tsx","../src/components/returns/selection.ts","../src/components/returns/state-machine.ts"],"sourcesContent":["/**\n * `bitsnap-react/returns` subpath. It keeps the 1.6.0 import path working and\n * exposes the same implementation as the package root: the 1.6.0 names plus\n * the whole returns API.\n */\nexport {\n BitsnapReturns,\n type BitsnapReturnsProps,\n} from \"../components/returns/BitsnapReturns\";\nexport {\n BitsnapReturnsProvider,\n ReturnsProvider,\n type BitsnapReturnsProviderProps,\n type ReturnsChallenge,\n type ReturnsEnvironment,\n type ReturnsProviderProps,\n type ReturnsSessionStatus,\n} from \"../components/returns/ReturnsProvider\";\nexport {\n ReturnsCodeStep,\n ReturnsEmailStep,\n type ReturnsCodeStepProps,\n type ReturnsEmailStepProps,\n} from \"../components/returns/AuthSteps\";\nexport {\n ReturnsConfirmation,\n ReturnsOrderDetail,\n ReturnsOrderList,\n ReturnsResult,\n type ReturnsConfirmationProps,\n type ReturnsOrderDetailProps,\n type ReturnsOrderListProps,\n type ReturnsResultProps,\n} from \"../components/returns/OrderSteps\";\nexport {\n ReturnsMyReturnDetail,\n ReturnsMyReturnsList,\n type ReturnsMyReturnDetailProps,\n type ReturnsMyReturnsListProps,\n} from \"../components/returns/MyReturns\";\nexport {\n useCreateReturn,\n useMyReturn,\n useMyReturns,\n useReturnableOrder,\n useReturnOrders,\n useReturnSession,\n type CreateReturnInput,\n type LegacyCreateReturnInput,\n type UseCreateReturnResult,\n type UseMyReturnResult,\n type UseMyReturnsResult,\n type UseReturnableOrderResult,\n type UseReturnOrdersResult,\n type UseReturnSessionResult,\n} from \"../components/returns/hooks\";\nexport {\n RETURNS_SLOT_NAMES,\n type ReturnsAppearance,\n type ReturnsAppearanceElements,\n type ReturnsAppearanceTokens,\n type ReturnsSlotAppearance,\n type ReturnsSlotName,\n type ReturnsTheme,\n} from \"../components/returns/appearance\";\nexport {\n ReturnsAppearanceProvider,\n useReturnsAppearance,\n useReturnsSlot,\n} from \"../components/returns/appearance.context\";\nexport { useReturnsText } from \"../components/returns/texts.context\";\nexport {\n type ReturnsTextKey,\n type ReturnsTexts,\n} from \"../components/returns/texts\";\nexport {\n type LegacyReturnsTexts,\n type LegacyReturnsTheme,\n type ReturnsEnvironmentInput,\n type ReturnsTextsInput,\n} from \"../components/returns/legacy\";\nexport { type SelectedReturnLine } from \"../components/returns/state-machine\";\nexport { Environment } from \"../gen/proto/common/v1/environment_pb\";\n","import { useEffect, useReducer } from \"react\";\nimport { cn } from \"@/src/lib/utils\";\nimport { useReturnsSlot } from \"./appearance.context\";\nimport { ReturnsCodeStep, ReturnsEmailStep } from \"./AuthSteps\";\nimport { SkeletonRows } from \"./internal\";\nimport { ReturnsMyReturnDetail, ReturnsMyReturnsList } from \"./MyReturns\";\nimport {\n ReturnsConfirmation,\n ReturnsOrderDetail,\n ReturnsOrderList,\n ReturnsResult,\n} from \"./OrderSteps\";\nimport {\n ReturnsProvider,\n useReturnsContext,\n type ReturnsProviderProps,\n} from \"./ReturnsProvider\";\nimport {\n initialReturnsStep,\n reduceReturnsStep,\n RETURNS_STEP_COUNT,\n returnsStepNumber,\n} from \"./state-machine\";\nimport { useReturnsText } from \"./texts.context\";\n\nexport type BitsnapReturnsProps = Omit<ReturnsProviderProps, \"children\">;\n\nfunction StepIndicator({ current }: { current: number }) {\n const text = useReturnsText();\n const slot = useReturnsSlot(\"stepIndicator\");\n\n return (\n <p\n data-bitsnap-returns-slot=\"stepIndicator\"\n className={cn(\"text-xs\", slot.className)}\n style={slot.style}\n >\n {text(\"stepIndicator\", { current, total: RETURNS_STEP_COUNT })}\n </p>\n );\n}\n\n/** Default step router. All transitions come from the pure state machine. */\nfunction ReturnsRouter({ panelToken }: { panelToken: boolean }) {\n const { status } = useReturnsContext(\"BitsnapReturns\");\n const [step, dispatch] = useReducer(\n reduceReturnsStep,\n initialReturnsStep(false),\n );\n\n // A valid session (verified code, stored session, exchanged panel token)\n // moves on to the orders; a dropped one returns to the start.\n useEffect(() => {\n if (status === \"authenticated\") {\n dispatch({ type: \"AUTHENTICATED\" });\n } else if (status === \"anonymous\") {\n dispatch({ type: \"SESSION_EXPIRED\" });\n }\n }, [status]);\n\n // Without a panel token the server render and the first client render show\n // the email step; a stored session switches to the orders after hydration.\n if (status === \"exchanging\" || (status === \"hydrating\" && panelToken)) {\n return <SkeletonRows />;\n }\n\n const stepNumber = returnsStepNumber(step.name);\n\n return (\n <div className=\"flex flex-col gap-4\">\n {stepNumber != null && <StepIndicator current={stepNumber} />}\n {step.name === \"email\" && (\n <ReturnsEmailStep onSubmitted={() => dispatch({ type: \"CODE_SENT\" })} />\n )}\n {step.name === \"code\" && (\n <ReturnsCodeStep\n onVerified={() => dispatch({ type: \"AUTHENTICATED\" })}\n onBack={() => dispatch({ type: \"BACK\" })}\n />\n )}\n {step.name === \"orders\" && (\n <ReturnsOrderList\n showLogout={!panelToken}\n onSelectOrder={(orderId) =>\n dispatch({ type: \"SELECT_ORDER\", orderId })\n }\n onOpenMyReturns={() => dispatch({ type: \"OPEN_MY_RETURNS\" })}\n />\n )}\n {step.name === \"order\" && (\n <ReturnsOrderDetail\n orderId={step.orderId}\n initialItems={step.items}\n initialNote={step.note}\n onBack={() => dispatch({ type: \"BACK\" })}\n onContinue={({ items, note }) =>\n dispatch({ type: \"REVIEW\", items, note })\n }\n />\n )}\n {step.name === \"confirmation\" && (\n <ReturnsConfirmation\n orderId={step.orderId}\n items={step.items}\n note={step.note}\n onBack={() => dispatch({ type: \"BACK\" })}\n onSubmitted={(returnId) =>\n dispatch({ type: \"SUBMITTED\", returnId })\n }\n />\n )}\n {step.name === \"result\" && (\n <ReturnsResult\n returnId={step.returnId}\n onContinue={() => dispatch({ type: \"CONTINUE\" })}\n onOpenMyReturns={() => dispatch({ type: \"OPEN_MY_RETURNS\" })}\n />\n )}\n {step.name === \"myReturns\" && (\n <ReturnsMyReturnsList\n onSelectReturn={(returnId) =>\n dispatch({ type: \"SELECT_RETURN\", returnId })\n }\n onBack={() => dispatch({ type: \"BACK\" })}\n />\n )}\n {step.name === \"myReturn\" && (\n <ReturnsMyReturnDetail\n returnId={step.returnId}\n onBack={() => dispatch({ type: \"BACK\" })}\n />\n )}\n </div>\n );\n}\n\n/**\n * Customer return flow: email, code, orders, line selection, confirmation and\n * result, plus the list of earlier returns. It is `ReturnsProvider` with the\n * default step router; compose your own page from the step components to\n * change the layout.\n *\n * ```tsx\n * <BitsnapReturns projectID=\"…\" appearance={brand} texts={{ emailStepTitle: \"Return a product\" }} />\n * ```\n */\nexport function BitsnapReturns(props: BitsnapReturnsProps) {\n return (\n <ReturnsProvider {...props}>\n <ReturnsRouter panelToken={props.panelAccessToken != null && props.panelAccessToken !== \"\"} />\n </ReturnsProvider>\n );\n}\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport type Modify<T, R> = Omit<T, keyof R> & R;\n\nexport type Partial<T> = {\n [P in keyof T]?: T[P];\n};\n","import { createContext, useContext, useMemo } from \"react\";\nimport type { ReactNode } from \"react\";\nimport {\n getReturnsSlotAppearance,\n resolveReturnsAppearance,\n type ResolvedReturnsAppearance,\n type ReturnsAppearance,\n type ReturnsSlotAppearance,\n type ReturnsSlotName,\n} from \"./appearance\";\n\nconst ReturnsAppearanceContext = createContext<ResolvedReturnsAppearance>(\n resolveReturnsAppearance(),\n);\n\n/**\n * Returns scoped appearance provider. It only wraps the returns views, so the\n * configuration never leaks into checkout, the panel or the host page.\n */\nexport function ReturnsAppearanceProvider({\n appearance,\n children,\n}: {\n appearance?: ReturnsAppearance;\n children: ReactNode;\n}) {\n const resolved = useMemo(\n () => resolveReturnsAppearance(appearance),\n [appearance],\n );\n\n return (\n <ReturnsAppearanceContext.Provider value={resolved}>\n {children}\n </ReturnsAppearanceContext.Provider>\n );\n}\n\nexport function useReturnsAppearance(): ResolvedReturnsAppearance {\n return useContext(ReturnsAppearanceContext);\n}\n\n/**\n * Returns the caller overrides for a slot, meant to be merged with the\n * built-in presentation:\n *\n * ```tsx\n * const slot = useReturnsSlot(\"title\");\n *\n * return <h2 className={cn(\"text-xl font-semibold\", slot.className)} style={slot.style} />;\n * ```\n */\nexport function useReturnsSlot(slot: ReturnsSlotName): ReturnsSlotAppearance {\n const resolved = useReturnsAppearance();\n\n return getReturnsSlotAppearance(resolved, slot) ?? {};\n}\n","import type { CSSProperties } from \"react\";\n\n/**\n * Generic building blocks shared by the appearance modules (checkout, and\n * later returns). Each module supplies its own token to CSS variable map, theme\n * presets and shadcn mapping, and keeps its own public types. Everything here\n * is pure so it can be tested without a DOM.\n */\n\n/** Caller overrides for a single slot. */\nexport type SlotAppearance = {\n /** Merged after the built-in classes with `cn`, so Tailwind conflicts resolve. */\n className?: string;\n /** Merged after the built-in inline styles. */\n style?: CSSProperties;\n};\n\n/** Typed partial map of slot name to its overrides. */\nexport type AppearanceElements<Slot extends string> = Partial<\n Record<Slot, SlotAppearance>\n>;\n\n/** CSS custom property used for each token. */\nexport type TokenVariables<Token extends string> = Readonly<\n Record<Token, string>\n>;\n\n/**\n * Remaps a token onto a shadcn theme variable (`--background`, `--ring`, ...)\n * so shared UI primitives follow the module's tokens. Only written when the\n * token is in effect.\n */\nexport type ShadcnVariableMapping<Token extends string> = readonly {\n token: Token;\n variable: string;\n}[];\n\nexport type AppearanceCoreConfig<Token extends string, Theme extends string> = {\n /** Theme used when the caller does not select one. */\n defaultTheme: Theme;\n /** Partial token sets applied underneath the caller tokens. */\n presets: Record<Theme, Partial<Record<Token, string>>>;\n variables: TokenVariables<Token>;\n shadcnVariables: ShadcnVariableMapping<Token>;\n};\n\nexport type ResolvedAppearanceCore<\n Token extends string,\n Theme extends string,\n Slot extends string,\n> = {\n theme: Theme;\n /** `true` as soon as the caller passed a theme, a token or a slot override. */\n isCustomized: boolean;\n /** Tokens that are in effect. Empty entries were dropped. */\n tokens: Partial<Record<Token, string>>;\n elements: AppearanceElements<Slot>;\n /** Inline custom properties for the theme boundary. */\n boundaryStyle: CSSProperties;\n};\n\n/** Drops `undefined`/`null` tokens so unset values keep the stylesheet default. */\nexport function omitUndefined<Token extends string>(\n tokens: Partial<Record<Token, string>>,\n): Partial<Record<Token, string>> {\n const result: Record<string, unknown> = {};\n\n for (const [key, value] of Object.entries(tokens)) {\n if (value != null) {\n result[key] = value;\n }\n }\n\n return result as Partial<Record<Token, string>>;\n}\n\nexport function hasAnyElement<Slot extends string>(\n elements: AppearanceElements<Slot>,\n): boolean {\n return Object.values<SlotAppearance | undefined>(elements).some(\n (element) =>\n element != null && (element.className != null || element.style != null),\n );\n}\n\n/**\n * Token to CSS variable resolution, followed by the shadcn remapping. Only\n * tokens that are in effect produce a variable.\n */\nexport function resolveBoundaryStyle<Token extends string>(\n tokens: Partial<Record<Token, string>>,\n variables: TokenVariables<Token>,\n shadcnVariables: ShadcnVariableMapping<Token>,\n): CSSProperties {\n const style: Record<string, string> = {};\n\n for (const [token, variable] of Object.entries<string>(variables)) {\n const value = tokens[token as Token];\n if (value != null) {\n style[variable] = value;\n }\n }\n\n for (const { token, variable } of shadcnVariables) {\n const value = tokens[token];\n if (value != null) {\n style[variable] = value;\n }\n }\n\n return style as CSSProperties;\n}\n\n/**\n * Resolves theme, tokens, slot overrides and the boundary style. The resolver\n * never invents values: a token is only present when the caller provided it or\n * selected a theme preset that carries it.\n */\nexport function resolveAppearanceCore<\n Token extends string,\n Theme extends string,\n Slot extends string,\n>(\n appearance:\n | {\n theme?: Theme;\n tokens?: Partial<Record<Token, string>>;\n elements?: AppearanceElements<Slot>;\n }\n | undefined,\n config: AppearanceCoreConfig<Token, Theme>,\n): ResolvedAppearanceCore<Token, Theme, Slot> {\n const theme: Theme = appearance?.theme ?? config.defaultTheme;\n\n const tokens = omitUndefined<Token>({\n ...config.presets[theme],\n ...appearance?.tokens,\n });\n\n const elements = appearance?.elements ?? {};\n\n return {\n theme,\n isCustomized:\n appearance?.theme != null ||\n Object.keys(tokens).length > 0 ||\n hasAnyElement(elements),\n tokens,\n elements,\n boundaryStyle: resolveBoundaryStyle(\n tokens,\n config.variables,\n config.shadcnVariables,\n ),\n };\n}\n\n/** Caller overrides for a slot, if any were provided. */\nexport function getSlotAppearance<Slot extends string>(\n elements: AppearanceElements<Slot>,\n slot: Slot,\n): SlotAppearance | undefined {\n return elements[slot];\n}\n","import type { CSSProperties } from \"react\";\nimport {\n getSlotAppearance,\n resolveAppearanceCore,\n type AppearanceElements,\n type ShadcnVariableMapping,\n type SlotAppearance,\n} from \"@/src/lib/appearance-core\";\n\n/**\n * Returns appearance API.\n *\n * It mirrors `CheckoutAppearance` (theme, tokens, elements) so a shop can reuse\n * one brand object for both. The resolver is pure: it turns the caller input\n * into a theme name, the tokens in effect, the slot overrides and the inline\n * style for the theme boundary.\n */\n\nexport type ReturnsTheme = \"light\" | \"dark\";\n\nexport type ReturnsAppearanceTokens = {\n /** Font family of the returns views. The library never loads fonts. */\n fontFamily?: string;\n /** Base font size. */\n fontSize?: string;\n /** Page background. */\n background?: string;\n /** Raised surfaces: cards, skeletons, summaries. */\n surface?: string;\n /** Main text color. */\n foreground?: string;\n /** Secondary text: descriptions, dates, hints. */\n mutedForeground?: string;\n /** Borders of cards, inputs and separators. */\n border?: string;\n /** Primary button background. */\n buttonBackground?: string;\n /** Primary button text. */\n buttonForeground?: string;\n /** Primary button background on hover. */\n buttonHoverBackground?: string;\n /** Hover surface of secondary buttons and selectable cards. */\n hoverSurface?: string;\n /** Focus ring color. Also applied to shared UI primitives through `--ring`. */\n focusRing?: string;\n /** Error color. */\n error?: string;\n /** Success color: result screen, completed and refunded statuses. */\n success?: string;\n /** Warning color: statuses that need attention. */\n warning?: string;\n /** Status badge background. */\n badgeBackground?: string;\n /** Status badge text. */\n badgeForeground?: string;\n /** Background of text inputs and the note field. */\n inputBackground?: string;\n /** Corner radius, applied through `--radius`. */\n radius?: string;\n};\n\n/**\n * Stable slot names. They are exposed as `data-bitsnap-returns-slot`\n * attributes so they can also be targeted from plain CSS.\n */\nexport const RETURNS_SLOT_NAMES = [\n // Frame\n \"root\",\n \"header\",\n \"title\",\n \"description\",\n \"backButton\",\n \"stepIndicator\",\n \"error\",\n \"emptyState\",\n \"skeleton\",\n // Auth\n \"emailForm\",\n \"emailInput\",\n \"codeForm\",\n \"codeInput\",\n \"resendButton\",\n \"logoutButton\",\n // Orders\n \"orderList\",\n \"orderCard\",\n \"orderReference\",\n \"orderDate\",\n \"orderTotal\",\n \"pagination\",\n // Selection\n \"lineList\",\n \"line\",\n \"lineName\",\n \"linePrice\",\n \"lineQuantityControl\",\n \"quantityButton\",\n \"quantityInput\",\n \"lineIneligibleReason\",\n \"noteInput\",\n // Confirmation and result\n \"summary\",\n \"submitButton\",\n \"secondaryButton\",\n \"successState\",\n \"returnReference\",\n \"returnInstructions\",\n // My returns\n \"returnList\",\n \"returnCard\",\n \"statusBadge\",\n \"history\",\n \"historyEntry\",\n] as const;\n\nexport type ReturnsSlotName = (typeof RETURNS_SLOT_NAMES)[number];\n\nexport type ReturnsSlotAppearance = SlotAppearance;\n\nexport type ReturnsAppearanceElements = AppearanceElements<ReturnsSlotName>;\n\nexport type ReturnsAppearance = {\n /** `\"light\"` or `\"dark\"`. Omitted means `\"light\"`. */\n theme?: ReturnsTheme;\n /** Partial overrides applied over the theme preset. */\n tokens?: ReturnsAppearanceTokens;\n /** Per element `className`/`style` overrides. */\n elements?: ReturnsAppearanceElements;\n};\n\nexport type ResolvedReturnsAppearance = {\n theme: ReturnsTheme;\n /** Tokens that are in effect (the theme preset plus caller overrides). */\n tokens: ReturnsAppearanceTokens;\n elements: ReturnsAppearanceElements;\n /** Theme marker class for the theme boundary. */\n boundaryClassName: string;\n /** Inline custom properties applied to the returns root. */\n boundaryStyle: CSSProperties;\n};\n\n/** CSS custom property used for each token. */\nexport const RETURNS_TOKEN_VARIABLES = {\n fontFamily: \"--bitsnap-returns-font-family\",\n fontSize: \"--bitsnap-returns-font-size\",\n background: \"--bitsnap-returns-background\",\n surface: \"--bitsnap-returns-surface\",\n foreground: \"--bitsnap-returns-foreground\",\n mutedForeground: \"--bitsnap-returns-muted-foreground\",\n border: \"--bitsnap-returns-border\",\n buttonBackground: \"--bitsnap-returns-button-background\",\n buttonForeground: \"--bitsnap-returns-button-foreground\",\n buttonHoverBackground: \"--bitsnap-returns-button-hover-background\",\n hoverSurface: \"--bitsnap-returns-hover-surface\",\n focusRing: \"--bitsnap-returns-focus-ring\",\n error: \"--bitsnap-returns-error\",\n success: \"--bitsnap-returns-success\",\n warning: \"--bitsnap-returns-warning\",\n badgeBackground: \"--bitsnap-returns-badge-background\",\n badgeForeground: \"--bitsnap-returns-badge-foreground\",\n inputBackground: \"--bitsnap-returns-input-background\",\n radius: \"--bitsnap-returns-radius\",\n} as const;\n\nexport type ReturnsTokenName = keyof typeof RETURNS_TOKEN_VARIABLES;\n\n/**\n * Complete palettes. They carry colors and radius only, so typography is never\n * reset implicitly. `returns.css` falls back to the light values, which keeps\n * the views usable even when the boundary style is missing.\n */\nexport const RETURNS_THEME_PRESETS: Record<\n ReturnsTheme,\n ReturnsAppearanceTokens\n> = {\n light: {\n background: \"#ffffff\",\n surface: \"#f9fafb\",\n foreground: \"#18181b\",\n mutedForeground: \"#71717a\",\n border: \"#e4e4e7\",\n buttonBackground: \"#18181b\",\n buttonForeground: \"#fafafa\",\n buttonHoverBackground: \"#000000\",\n hoverSurface: \"#f4f4f5\",\n focusRing: \"#71717a\",\n error: \"#dc2626\",\n success: \"#16a34a\",\n warning: \"#d97706\",\n badgeBackground: \"#f4f4f5\",\n badgeForeground: \"#3f3f46\",\n inputBackground: \"#ffffff\",\n radius: \"8px\",\n },\n dark: {\n background: \"#18181b\",\n surface: \"#27272a\",\n foreground: \"#fafafa\",\n mutedForeground: \"#a1a1aa\",\n border: \"#3f3f46\",\n buttonBackground: \"#fafafa\",\n buttonForeground: \"#18181b\",\n buttonHoverBackground: \"#e4e4e7\",\n hoverSurface: \"#3f3f46\",\n focusRing: \"#a1a1aa\",\n error: \"#f87171\",\n success: \"#4ade80\",\n warning: \"#fbbf24\",\n badgeBackground: \"#3f3f46\",\n badgeForeground: \"#e4e4e7\",\n inputBackground: \"#27272a\",\n radius: \"8px\",\n },\n};\n\n/**\n * Shared UI primitives (`Button`, `Input`, `Label`, ...) read the shadcn theme\n * variables, so those follow the returns tokens inside the boundary.\n */\nconst RETURNS_SHADCN_VARIABLES: ShadcnVariableMapping<ReturnsTokenName> = [\n { token: \"background\", variable: \"--background\" },\n { token: \"foreground\", variable: \"--foreground\" },\n { token: \"surface\", variable: \"--card\" },\n { token: \"foreground\", variable: \"--card-foreground\" },\n { token: \"surface\", variable: \"--popover\" },\n { token: \"foreground\", variable: \"--popover-foreground\" },\n { token: \"buttonBackground\", variable: \"--primary\" },\n { token: \"buttonForeground\", variable: \"--primary-foreground\" },\n { token: \"surface\", variable: \"--secondary\" },\n { token: \"foreground\", variable: \"--secondary-foreground\" },\n { token: \"hoverSurface\", variable: \"--accent\" },\n { token: \"foreground\", variable: \"--accent-foreground\" },\n { token: \"mutedForeground\", variable: \"--muted-foreground\" },\n { token: \"border\", variable: \"--border\" },\n { token: \"border\", variable: \"--input\" },\n { token: \"focusRing\", variable: \"--ring\" },\n { token: \"error\", variable: \"--destructive\" },\n { token: \"radius\", variable: \"--radius\" },\n];\n\nexport function resolveReturnsAppearance(\n appearance?: ReturnsAppearance,\n): ResolvedReturnsAppearance {\n const resolved = resolveAppearanceCore<\n ReturnsTokenName,\n ReturnsTheme,\n ReturnsSlotName\n >(appearance, {\n defaultTheme: \"light\",\n presets: RETURNS_THEME_PRESETS,\n variables: RETURNS_TOKEN_VARIABLES,\n shadcnVariables: RETURNS_SHADCN_VARIABLES,\n });\n\n return {\n theme: resolved.theme,\n tokens: resolved.tokens,\n elements: resolved.elements,\n boundaryClassName: resolved.theme,\n boundaryStyle: resolved.boundaryStyle,\n };\n}\n\n/** Caller overrides for a single slot, if any were provided. */\nexport function getReturnsSlotAppearance(\n resolved: ResolvedReturnsAppearance,\n slot: ReturnsSlotName,\n): ReturnsSlotAppearance | undefined {\n return getSlotAppearance(resolved.elements, slot);\n}\n","import { useEffect, useState } from \"react\";\nimport type { FormEvent } from \"react\";\nimport { Button } from \"@/src/ui/button\";\nimport { Input } from \"@/src/ui/input\";\nimport { Label } from \"@/src/ui/label\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport { cn } from \"@/src/lib/utils\";\nimport { useReturnsSlot } from \"./appearance.context\";\nimport { useReturnSession } from \"./hooks\";\nimport {\n ErrorMessage,\n INPUT_CLASS,\n PRIMARY_BUTTON_CLASS,\n SECONDARY_BUTTON_CLASS,\n StepFrame,\n} from \"./internal\";\nimport { useReturnsContext } from \"./ReturnsProvider\";\nimport { useReturnsText } from \"./texts.context\";\n\nexport type ReturnsEmailStepProps = {\n /** Called after the verification code was sent, with the trimmed email. */\n onSubmitted?: (email: string) => void;\n className?: string;\n};\n\n/** First step: asks for the email the order was placed with. */\nexport function ReturnsEmailStep({\n onSubmitted,\n className,\n}: ReturnsEmailStepProps) {\n useReturnsContext(\"ReturnsEmailStep\");\n const text = useReturnsText();\n const session = useReturnSession();\n const [email, setEmail] = useState(\"\");\n const form = useReturnsSlot(\"emailForm\");\n const input = useReturnsSlot(\"emailInput\");\n const submitButton = useReturnsSlot(\"submitButton\");\n\n async function handleSubmit(event: FormEvent<HTMLFormElement>) {\n event.preventDefault();\n if (session.isStarting) {\n return;\n }\n if (await session.start(email)) {\n onSubmitted?.(email.trim());\n }\n }\n\n return (\n <StepFrame\n className={className}\n title={text(\"emailStepTitle\")}\n description={text(\"emailStepDescription\")}\n >\n <form\n data-bitsnap-returns-slot=\"emailForm\"\n className={cn(\"flex flex-col gap-4\", form.className)}\n style={form.style}\n onSubmit={handleSubmit}\n >\n <div className=\"flex flex-col gap-2\">\n <Label htmlFor=\"bitsnap-returns-email\">{text(\"emailLabel\")}</Label>\n <Input\n id=\"bitsnap-returns-email\"\n type=\"email\"\n name=\"email\"\n autoComplete=\"email\"\n required\n value={email}\n placeholder={text(\"emailPlaceholder\")}\n disabled={session.isStarting}\n data-bitsnap-returns-slot=\"emailInput\"\n className={cn(INPUT_CLASS, input.className)}\n style={input.style}\n onChange={(event) => setEmail(event.target.value)}\n />\n </div>\n {session.errorKey != null && <ErrorMessage errorKey={session.errorKey} />}\n <Button\n type=\"submit\"\n disabled={session.isStarting}\n data-bitsnap-returns-slot=\"submitButton\"\n className={cn(PRIMARY_BUTTON_CLASS, submitButton.className)}\n style={submitButton.style}\n >\n {session.isStarting && <Spinner />}\n {text(\"emailSubmit\")}\n </Button>\n </form>\n </StepFrame>\n );\n}\n\n/** Seconds left until `availableAt`, ticking once a second. */\nfunction useCountdown(availableAt: number | undefined): number {\n const [now, setNow] = useState<number>();\n\n useEffect(() => {\n if (availableAt == null) {\n return;\n }\n setNow(Date.now());\n const timer = setInterval(() => {\n const current = Date.now();\n setNow(current);\n if (current >= availableAt) {\n clearInterval(timer);\n }\n }, 1000);\n return () => clearInterval(timer);\n }, [availableAt]);\n\n return availableAt != null && now != null\n ? Math.max(0, Math.ceil((availableAt - now) / 1000))\n : 0;\n}\n\nexport type ReturnsCodeStepProps = {\n /** Called once the code was accepted and the session exists. */\n onVerified?: () => void;\n /** Shows a back button, for example to change the email. */\n onBack?: () => void;\n className?: string;\n};\n\n/** Second step: asks for the code that was emailed to the customer. */\nexport function ReturnsCodeStep({\n onVerified,\n onBack,\n className,\n}: ReturnsCodeStepProps) {\n useReturnsContext(\"ReturnsCodeStep\");\n const text = useReturnsText();\n const session = useReturnSession();\n const [code, setCode] = useState(\"\");\n const secondsLeft = useCountdown(session.challenge?.resendAvailableAt);\n const form = useReturnsSlot(\"codeForm\");\n const input = useReturnsSlot(\"codeInput\");\n const submitButton = useReturnsSlot(\"submitButton\");\n const resendButton = useReturnsSlot(\"resendButton\");\n const isBusy = session.isVerifying || session.isStarting;\n\n async function handleSubmit(event: FormEvent<HTMLFormElement>) {\n event.preventDefault();\n if (isBusy) {\n return;\n }\n if (await session.verify(code)) {\n onVerified?.();\n }\n }\n\n return (\n <StepFrame\n className={className}\n onBack={onBack}\n title={text(\"codeStepTitle\")}\n description={text(\"codeStepDescription\", {\n email: session.challenge?.email ?? \"\",\n })}\n >\n <form\n data-bitsnap-returns-slot=\"codeForm\"\n className={cn(\"flex flex-col gap-4\", form.className)}\n style={form.style}\n onSubmit={handleSubmit}\n >\n <div className=\"flex flex-col gap-2\">\n <Label htmlFor=\"bitsnap-returns-code\">{text(\"codeLabel\")}</Label>\n <Input\n id=\"bitsnap-returns-code\"\n name=\"code\"\n inputMode=\"numeric\"\n autoComplete=\"one-time-code\"\n required\n value={code}\n disabled={isBusy}\n data-bitsnap-returns-slot=\"codeInput\"\n className={cn(INPUT_CLASS, input.className)}\n style={input.style}\n onChange={(event) => setCode(event.target.value)}\n />\n </div>\n {session.errorKey != null && <ErrorMessage errorKey={session.errorKey} />}\n <div className=\"flex flex-wrap items-center gap-3\">\n <Button\n type=\"submit\"\n disabled={isBusy || session.challenge == null}\n data-bitsnap-returns-slot=\"submitButton\"\n className={cn(PRIMARY_BUTTON_CLASS, submitButton.className)}\n style={submitButton.style}\n >\n {session.isVerifying && <Spinner />}\n {text(\"codeSubmit\")}\n </Button>\n <Button\n type=\"button\"\n variant=\"secondary\"\n disabled={isBusy || secondsLeft > 0 || session.challenge == null}\n data-bitsnap-returns-slot=\"resendButton\"\n className={cn(SECONDARY_BUTTON_CLASS, resendButton.className)}\n style={resendButton.style}\n onClick={() => void session.resend()}\n >\n {secondsLeft > 0\n ? text(\"resendIn\", { seconds: secondsLeft })\n : text(\"resend\")}\n </Button>\n </div>\n </form>\n </StepFrame>\n );\n}\n\n/** Sign out button that drops the returns session. */\nexport function LogoutButton() {\n const text = useReturnsText();\n const session = useReturnSession();\n const logoutButton = useReturnsSlot(\"logoutButton\");\n\n return (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n data-bitsnap-returns-slot=\"logoutButton\"\n className={cn(\n \"text-[color:var(--bitsnap-returns-muted-foreground,#71717a)] hover:bg-[var(--bitsnap-returns-hover-surface,#f4f4f5)]\",\n logoutButton.className,\n )}\n style={logoutButton.style}\n onClick={session.logout}\n >\n {text(\"logout\")}\n </Button>\n );\n}\n","import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40\",\n outline:\n \"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost:\n \"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n xs: \"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3\",\n sm: \"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5\",\n lg: \"h-10 rounded-md px-6 has-[>svg]:px-4\",\n icon: \"size-9\",\n \"icon-xs\": \"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3\",\n \"icon-sm\": \"size-8\",\n \"icon-lg\": \"size-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Button({\n className,\n variant = \"default\",\n size = \"default\",\n asChild = false,\n ...props\n}: React.ComponentProps<\"button\"> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean\n }) {\n const Comp = asChild ? Slot.Root : \"button\"\n\n return (\n <Comp\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Button, buttonVariants }\n","import * as React from \"react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n \"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Input }\n","import * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n","import { Loader2Icon } from \"lucide-react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Spinner({ className, ...props }: React.ComponentProps<\"svg\">) {\n return (\n <Loader2Icon\n role=\"status\"\n aria-label=\"Loading\"\n className={cn(\"size-4 animate-spin\", className)}\n {...props}\n />\n )\n}\n\nexport { Spinner }\n","import { useMutation, useQuery } from \"@connectrpc/connect-query\";\nimport { useQueryClient } from \"@tanstack/react-query\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport type {\n CreateReturnRequestResponse,\n GetReturnableOrderResponse,\n ListMyReturnsResponse,\n ListReturnOrdersResponse,\n StartReturnSessionResponse,\n VerifyReturnSessionResponse,\n ReturnOrderDetail,\n ReturnOrderSummary,\n ReturnHistoryEntry,\n ReturnRequestView,\n} from \"@/src/gen/proto/public/v1/returns_pb\";\nimport { rpcProvider } from \"@/src/rpc-provider\";\nimport { isSessionExpiredError, mapReturnsError } from \"./errors\";\nimport { createIdempotencyKey } from \"./idempotency\";\nimport { resolvePagedArguments } from \"./legacy\";\nimport {\n returnsQueryKey,\n useReturnsContext,\n type ReturnsChallenge,\n type ReturnsSessionStatus,\n} from \"./ReturnsProvider\";\nimport { expiryToMillis } from \"./session-storage\";\nimport type { ReturnsTextKey } from \"./texts\";\n\n/** React Query style status shared by the query and mutation results. */\ntype QueryStatus = \"pending\" | \"error\" | \"success\";\ntype MutationStatus = \"idle\" | QueryStatus;\n\n/** Anything thrown becomes an `Error`, as React Query results expose them. */\nfunction asError(error: unknown): Error | null {\n if (error == null) {\n return null;\n }\n return error instanceof Error ? error : new Error(String(error));\n}\n\n/** Text key of a failure, `undefined` while there is none. */\nfunction errorKeyOf(error: unknown): ReturnsTextKey | undefined {\n return error == null ? undefined : mapReturnsError(error);\n}\n\n/**\n * Drops the session when a request failed with `SESSION_EXPIRED`. The flow\n * returns to its start because every step that needs a session is gone.\n */\nfunction useDropSessionOnExpiry(error: unknown, clearSession: () => void) {\n useEffect(() => {\n if (isSessionExpiredError(error)) {\n clearSession();\n }\n }, [error, clearSession]);\n}\n\n/** Page tokens of the pages visited so far; the first page has no token. */\nfunction usePageTokens(resetKey: unknown) {\n const [tokens, setTokens] = useState<string[]>([\"\"]);\n\n useEffect(() => {\n setTokens([\"\"]);\n }, [resetKey]);\n\n return {\n pageToken: tokens[tokens.length - 1] ?? \"\",\n page: tokens.length,\n push: (token: string) => setTokens((current) => [...current, token]),\n pop: () =>\n setTokens((current) =>\n current.length > 1 ? current.slice(0, -1) : current,\n ),\n };\n}\n\nexport type UseReturnSessionResult = {\n status: ReturnsSessionStatus;\n isAuthenticated: boolean;\n /** Pending email verification, set after `start` succeeded. */\n challenge: ReturnsChallenge | undefined;\n isStarting: boolean;\n isVerifying: boolean;\n /** Last failure of `start` or `verify`, or of the panel token exchange. */\n error: Error | null;\n errorKey: ReturnsTextKey | undefined;\n /** Same as `isStarting` (`bitsnap-react` 1.6.0 name). */\n starting: boolean;\n /** Same as `isVerifying` (`bitsnap-react` 1.6.0 name). */\n verifying: boolean;\n /**\n * `bitsnap-react` 1.6.0 API: sends a code and resolves with the response\n * (including `challengeId`). Rejects on failure. Also stores the challenge\n * like `start`.\n */\n startSession: (email: string) => Promise<StartReturnSessionResponse>;\n /**\n * `bitsnap-react` 1.6.0 API: verifies a code, stores the session like\n * `verify` and resolves with the response. Rejects on failure.\n */\n verifySession: (input: {\n challengeId: string;\n code: string;\n }) => Promise<VerifyReturnSessionResponse>;\n /** Sends a code to `email`. Resolves to `true` when the code was sent. */\n start: (email: string) => Promise<boolean>;\n /** Verifies the code of the pending challenge. Resolves to `true` on success. */\n verify: (code: string) => Promise<boolean>;\n /** Sends a new code to the email of the pending challenge. */\n resend: () => Promise<boolean>;\n /** Drops the session and the pending challenge. */\n logout: () => void;\n};\n\n/** Email verification and the returns session of the nearest provider. */\nexport function useReturnSession(): UseReturnSessionResult {\n const ctx = useReturnsContext(\"useReturnSession\");\n const startMutation = useMutation(rpcProvider.returns.startReturnSession);\n const verifyMutation = useMutation(rpcProvider.returns.verifyReturnSession);\n const { setChallenge, authenticate, clearSession } = ctx;\n\n const startSession = useCallback(\n async (email: string) => {\n verifyMutation.reset();\n const trimmed = email.trim();\n const response = await startMutation.mutateAsync({\n projectId: ctx.projectID,\n email: trimmed,\n environment: ctx.environment,\n });\n setChallenge({\n challengeId: response.challengeId,\n email: trimmed,\n resendAvailableAt:\n Date.now() + Math.max(0, response.resendAfterSeconds) * 1000,\n });\n return response;\n },\n [ctx.projectID, ctx.environment, setChallenge, startMutation, verifyMutation],\n );\n\n const verifySession = useCallback(\n async (input: { challengeId: string; code: string }) => {\n const response = await verifyMutation.mutateAsync({\n projectId: ctx.projectID,\n challengeId: input.challengeId,\n code: input.code,\n environment: ctx.environment,\n });\n const expiresAt = expiryToMillis(response.expiresAt);\n if (response.sessionToken === \"\" || expiresAt == null) {\n throw new Error(\"EMPTY_SESSION\");\n }\n authenticate({ token: response.sessionToken, expiresAt });\n return response;\n },\n [ctx.projectID, ctx.environment, authenticate, verifyMutation],\n );\n\n const start = useCallback(\n async (email: string) => {\n try {\n await startSession(email);\n return true;\n } catch {\n return false;\n }\n },\n [startSession],\n );\n\n const verify = useCallback(\n async (code: string) => {\n if (ctx.challenge == null) {\n return false;\n }\n try {\n await verifySession({\n challengeId: ctx.challenge.challengeId,\n code: code.trim(),\n });\n return true;\n } catch {\n return false;\n }\n },\n [ctx.challenge, verifySession],\n );\n\n const resend = useCallback(\n () => (ctx.challenge != null ? start(ctx.challenge.email) : Promise.resolve(false)),\n [ctx.challenge, start],\n );\n\n const error = asError(\n startMutation.error ?? verifyMutation.error ?? ctx.exchangeError,\n );\n\n return {\n status: ctx.status,\n isAuthenticated: ctx.status === \"authenticated\",\n challenge: ctx.challenge,\n isStarting: startMutation.isPending,\n isVerifying: verifyMutation.isPending,\n starting: startMutation.isPending,\n verifying: verifyMutation.isPending,\n error,\n errorKey: errorKeyOf(error),\n start,\n startSession,\n verifySession,\n verify,\n resend,\n logout: clearSession,\n };\n}\n\ntype PagedOptions = {\n /** Items per page. Defaults to 10. */\n pageSize?: number;\n};\n\nexport type UseReturnOrdersResult = {\n orders: ReturnOrderSummary[];\n /** Total number of returnable orders. */\n total: number;\n /** Response for the requested page (React Query style). */\n data: ListReturnOrdersResponse | undefined;\n isLoading: boolean;\n isFetching: boolean;\n error: Error | null;\n errorKey: ReturnsTextKey | undefined;\n status: QueryStatus;\n isError: boolean;\n isSuccess: boolean;\n /** 1-based number of the current page. */\n page: number;\n hasNext: boolean;\n hasPrevious: boolean;\n next: () => void;\n previous: () => void;\n refetch: () => Promise<unknown>;\n};\n\n/**\n * `true` while the session is still being restored or a panel token is being\n * exchanged. A logged out customer is not \"loading\", as in 1.6.0.\n */\nfunction isSessionPending(ctx: { status: string }): boolean {\n return ctx.status === \"hydrating\" || ctx.status === \"exchanging\";\n}\n\n/**\n * Orders of the signed-in customer that have lines to return, page by page.\n * Call it with `{ pageSize }` (pages are walked with `next`/`previous`) or, as\n * in `bitsnap-react` 1.6.0, with `(pageSize, pageToken)`; then the explicit\n * token is requested and `data.nextPageToken` drives paging.\n */\nexport function useReturnOrders(options?: PagedOptions): UseReturnOrdersResult;\nexport function useReturnOrders(\n pageSize?: number,\n pageToken?: string,\n): UseReturnOrdersResult;\nexport function useReturnOrders(\n first?: number | PagedOptions,\n token?: string,\n): UseReturnOrdersResult {\n const ctx = useReturnsContext(\"useReturnOrders\");\n const { pageSize, explicitPageToken } = resolvePagedArguments(first, token);\n const pages = usePageTokens(ctx.token);\n\n const query = useQuery(\n rpcProvider.returns.listReturnOrders,\n {\n projectId: ctx.projectID,\n sessionToken: ctx.token ?? \"\",\n pageSize,\n pageToken: explicitPageToken ?? pages.pageToken,\n },\n { enabled: ctx.token != null },\n );\n useDropSessionOnExpiry(query.error, ctx.clearSession);\n\n const nextPageToken = query.data?.nextPageToken ?? \"\";\n\n return {\n orders: query.data?.orders ?? [],\n total: query.data?.total ?? 0,\n data: query.data,\n isLoading: isSessionPending(ctx) || query.isLoading,\n isFetching: query.isFetching,\n error: asError(query.error),\n errorKey: errorKeyOf(query.error),\n status: query.status,\n isError: query.isError,\n isSuccess: query.isSuccess,\n page: pages.page,\n hasNext: nextPageToken !== \"\",\n hasPrevious: pages.page > 1,\n next: () => {\n if (nextPageToken !== \"\") {\n pages.push(nextPageToken);\n }\n },\n previous: pages.pop,\n refetch: () => query.refetch(),\n };\n}\n\nexport type UseReturnableOrderResult = {\n order: ReturnOrderDetail | undefined;\n /** Earlier return requests for this order. */\n returnHistory: ReturnHistoryEntry[];\n /** Response (React Query style): `data.order` is the order. */\n data: GetReturnableOrderResponse | undefined;\n isLoading: boolean;\n error: Error | null;\n errorKey: ReturnsTextKey | undefined;\n status: QueryStatus;\n isError: boolean;\n isSuccess: boolean;\n refetch: () => Promise<unknown>;\n};\n\n/**\n * One order with the eligibility of each line. Without an `orderId` the query\n * is disabled.\n */\nexport function useReturnableOrder(orderId?: string): UseReturnableOrderResult {\n const ctx = useReturnsContext(\"useReturnableOrder\");\n\n const query = useQuery(\n rpcProvider.returns.getReturnableOrder,\n {\n projectId: ctx.projectID,\n sessionToken: ctx.token ?? \"\",\n canonicalOrderId: orderId ?? \"\",\n },\n { enabled: ctx.token != null && orderId != null && orderId !== \"\" },\n );\n useDropSessionOnExpiry(query.error, ctx.clearSession);\n\n return {\n order: query.data?.order,\n returnHistory: query.data?.returnHistory ?? [],\n data: query.data,\n isLoading:\n orderId != null && orderId !== \"\" && (isSessionPending(ctx) || query.isLoading),\n error: asError(query.error),\n errorKey: errorKeyOf(query.error),\n status: query.status,\n isError: query.isError,\n isSuccess: query.isSuccess,\n refetch: () => query.refetch(),\n };\n}\n\nexport type CreateReturnInput = {\n orderId: string;\n items: { lineId: string; quantity: number }[];\n note?: string;\n};\n\n/** Input of the `bitsnap-react` 1.6.0 `mutateAsync`/`mutate`. */\nexport type LegacyCreateReturnInput = {\n canonicalOrderID: string;\n items: { lineId: string; quantity: number }[];\n note?: string;\n /** Used as given. A fresh key is generated per call when omitted. */\n idempotencyKey?: string;\n};\n\nexport type UseCreateReturnResult = {\n /**\n * Submits the return request. Resolves to the created request, or\n * `undefined` when it failed (see `error`). Retrying reuses the same\n * idempotency key, so a retry can never create a second request.\n */\n submit: (input: CreateReturnInput) => Promise<ReturnRequestView | undefined>;\n isPending: boolean;\n error: Error | null;\n errorKey: ReturnsTextKey | undefined;\n /**\n * `bitsnap-react` 1.6.0 API (React Query mutation semantics): resolves with\n * the response (`result.request`) and rejects on failure.\n */\n mutateAsync: (\n input: LegacyCreateReturnInput,\n ) => Promise<CreateReturnRequestResponse>;\n /** Fire and forget version of `mutateAsync`; failures land in `error`. */\n mutate: (\n input: LegacyCreateReturnInput,\n options?: {\n onSuccess?: (response: CreateReturnRequestResponse) => void;\n onError?: (error: Error) => void;\n },\n ) => void;\n /** Response of the last successful request. */\n data: CreateReturnRequestResponse | undefined;\n reset: () => void;\n status: MutationStatus;\n isError: boolean;\n isSuccess: boolean;\n};\n\n/**\n * Creates a return request. With `submit` the idempotency key is generated\n * once per hook instance, which is once per confirmation screen, and reused on\n * retry.\n */\nexport function useCreateReturn(): UseCreateReturnResult {\n const ctx = useReturnsContext(\"useCreateReturn\");\n const queryClient = useQueryClient();\n const mutation = useMutation(rpcProvider.returns.createReturnRequest);\n const idempotencyKey = useRef<string | undefined>(undefined);\n const { clearSession } = ctx;\n\n const send = useCallback(\n async (input: CreateReturnInput, key: string) => {\n try {\n const response = await mutation.mutateAsync({\n projectId: ctx.projectID,\n sessionToken: ctx.token ?? \"\",\n canonicalOrderId: input.orderId,\n items: input.items,\n note: input.note ?? \"\",\n idempotencyKey: key,\n });\n // Quantities and the list of returns changed.\n void queryClient.invalidateQueries({ queryKey: returnsQueryKey() });\n return response;\n } catch (error) {\n if (isSessionExpiredError(error)) {\n clearSession();\n }\n throw error;\n }\n },\n [ctx.projectID, ctx.token, mutation, queryClient, clearSession],\n );\n\n const submit = useCallback(\n async (input: CreateReturnInput) => {\n idempotencyKey.current ??= createIdempotencyKey();\n try {\n const response = await send(input, idempotencyKey.current);\n idempotencyKey.current = undefined;\n return response.request;\n } catch {\n return undefined;\n }\n },\n [send],\n );\n\n const mutateAsync = useCallback(\n async (input: LegacyCreateReturnInput) => {\n if (ctx.token == null) {\n throw new Error(\"Verify your email to continue.\");\n }\n return send(\n {\n orderId: input.canonicalOrderID,\n items: input.items,\n note: input.note,\n },\n input.idempotencyKey ?? createIdempotencyKey(),\n );\n },\n [ctx.token, send],\n );\n\n const mutate = useCallback(\n (\n input: LegacyCreateReturnInput,\n options?: {\n onSuccess?: (response: CreateReturnRequestResponse) => void;\n onError?: (error: Error) => void;\n },\n ) => {\n mutateAsync(input).then(\n (response) => options?.onSuccess?.(response),\n (error: unknown) => options?.onError?.(asError(error) as Error),\n );\n },\n [mutateAsync],\n );\n\n return {\n submit,\n isPending: mutation.isPending,\n error: asError(mutation.error),\n errorKey: errorKeyOf(mutation.error),\n mutateAsync,\n mutate,\n data: mutation.data,\n reset: mutation.reset,\n status: mutation.status,\n isError: mutation.isError,\n isSuccess: mutation.isSuccess,\n };\n}\n\nexport type UseMyReturnsResult = {\n returns: ReturnRequestView[];\n total: number;\n /** Response for the requested page (React Query style). */\n data: ListMyReturnsResponse | undefined;\n isLoading: boolean;\n isFetching: boolean;\n error: Error | null;\n errorKey: ReturnsTextKey | undefined;\n status: QueryStatus;\n isError: boolean;\n isSuccess: boolean;\n page: number;\n hasNext: boolean;\n hasPrevious: boolean;\n next: () => void;\n previous: () => void;\n refetch: () => Promise<unknown>;\n};\n\n/**\n * Return requests of the signed-in customer, page by page. Accepts\n * `{ pageSize }` or the `bitsnap-react` 1.6.0 `(pageSize, pageToken)` form,\n * like `useReturnOrders`.\n */\nexport function useMyReturns(options?: PagedOptions): UseMyReturnsResult;\nexport function useMyReturns(\n pageSize?: number,\n pageToken?: string,\n): UseMyReturnsResult;\nexport function useMyReturns(\n first?: number | PagedOptions,\n token?: string,\n): UseMyReturnsResult {\n const ctx = useReturnsContext(\"useMyReturns\");\n const { pageSize, explicitPageToken } = resolvePagedArguments(first, token);\n const pages = usePageTokens(ctx.token);\n\n const query = useQuery(\n rpcProvider.returns.listMyReturns,\n {\n projectId: ctx.projectID,\n sessionToken: ctx.token ?? \"\",\n pageSize,\n pageToken: explicitPageToken ?? pages.pageToken,\n },\n { enabled: ctx.token != null },\n );\n useDropSessionOnExpiry(query.error, ctx.clearSession);\n\n const nextPageToken = query.data?.nextPageToken ?? \"\";\n\n return {\n returns: query.data?.returns ?? [],\n total: query.data?.total ?? 0,\n data: query.data,\n isLoading: isSessionPending(ctx) || query.isLoading,\n isFetching: query.isFetching,\n error: asError(query.error),\n errorKey: errorKeyOf(query.error),\n status: query.status,\n isError: query.isError,\n isSuccess: query.isSuccess,\n page: pages.page,\n hasNext: nextPageToken !== \"\",\n hasPrevious: pages.page > 1,\n next: () => {\n if (nextPageToken !== \"\") {\n pages.push(nextPageToken);\n }\n },\n previous: pages.pop,\n refetch: () => query.refetch(),\n };\n}\n\nexport type UseMyReturnResult = {\n request: ReturnRequestView | undefined;\n isLoading: boolean;\n error: unknown;\n errorKey: ReturnsTextKey | undefined;\n refetch: () => void;\n};\n\n/** One return request of the signed-in customer. */\nexport function useMyReturn(returnId: string): UseMyReturnResult {\n const ctx = useReturnsContext(\"useMyReturn\");\n\n const query = useQuery(\n rpcProvider.returns.getMyReturn,\n {\n projectId: ctx.projectID,\n sessionToken: ctx.token ?? \"\",\n returnId,\n },\n { enabled: ctx.token != null },\n );\n useDropSessionOnExpiry(query.error, ctx.clearSession);\n\n return {\n request: query.data?.request,\n isLoading: isSessionPending(ctx) || query.isLoading,\n error: query.error,\n errorKey: errorKeyOf(query.error),\n refetch: () => query.refetch(),\n };\n}\n","import {\n TransportProvider,\n useMutation as um,\n useQuery as uq,\n} from \"@connectrpc/connect-query\";\nimport { createConnectTransport } from \"@connectrpc/connect-web\";\nimport { QueryClient, QueryClientProvider } from \"@tanstack/react-query\";\nimport React, { useState } from \"react\";\n\nimport { Transport } from \"@connectrpc/connect\";\nimport { HOST, setCustomHost } from \"./components/checkout/constants\";\nimport * as notificationsRouter from \"./gen/proto/dashboard/v1/notifications-NotificationsService_connectquery\";\nimport * as publicApiRouter from \"./gen/proto/public/v1/public_api-PublicApiService_connectquery\";\nimport * as returnsRouter from \"./gen/proto/public/v1/returns-ReturnsService_connectquery\";\n\nlet currentFinalTransportHost: string | undefined;\nlet finalTransport: Transport | undefined;\n\n// @ts-ignore\nBigInt.prototype.toJSON = function () {\n return this.toString();\n};\n\nexport const rpcProvider = {\n publicApi: publicApiRouter,\n notifications: notificationsRouter,\n returns: returnsRouter,\n};\n\nexport const useQuery = uq;\nexport const useMutation = um;\n\nlet customHost: string | undefined;\n\nexport function setHost(host: string): void {\n customHost = host;\n setCustomHost(host);\n}\n\nexport function getTransportHost(): string {\n return customHost ?? HOST;\n}\n\nfunction createRpcTransport(host: string): Transport {\n return createConnectTransport({\n baseUrl: host + \"/api/rpc\",\n useBinaryFormat: true,\n // @ts-ignore\n fetch: async (input, init?) => {\n return fetch(input, {\n ...init,\n keepalive: false,\n credentials: \"include\",\n });\n },\n });\n}\n\nconst transportsByHost = new Map<string, Transport>();\n\n/**\n * Transport for an explicit host, created once per host. Unlike the shared\n * transport behind `RpcProvider`, several hosts can be in use at the same time.\n */\nexport function getRpcTransport(host: string): Transport {\n let transport = transportsByHost.get(host);\n if (transport == null) {\n transport = createRpcTransport(host);\n transportsByHost.set(host, transport);\n }\n return transport;\n}\n\nexport const RpcProvider: React.FC<{\n children: React.ReactNode;\n}> = ({ children }) => {\n const transportHost = getTransportHost();\n\n if (finalTransport == null || currentFinalTransportHost !== transportHost) {\n currentFinalTransportHost = transportHost;\n finalTransport = createRpcTransport(transportHost);\n }\n\n const [queryClient] = useState(\n () =>\n new QueryClient({\n defaultOptions: { queries: { staleTime: 5000 } },\n }),\n );\n\n return (\n <TransportProvider transport={finalTransport}>\n <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>\n </TransportProvider>\n );\n};\n","export const DEFAULT_HOST = \"https://bitsnap.pl\";\nexport let HOST = DEFAULT_HOST;\n\nexport function setCustomHost(host: string) {\n console.log(\"setCustomHost\", host);\n HOST = host;\n}\n","// @generated by protoc-gen-connect-query v2.2.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file dashboard/v1/notifications.proto (package dashboard.notifications.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport { NotificationsService } from \"./notifications_pb\";\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationSetting\n */\nexport const createNotificationSetting = NotificationsService.method.createNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationSetting\n */\nexport const readNotificationSetting = NotificationsService.method.readNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationSetting\n */\nexport const updateNotificationSetting = NotificationsService.method.updateNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationSetting\n */\nexport const deleteNotificationSetting = NotificationsService.method.deleteNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroup\n */\nexport const createNotificationGroup = NotificationsService.method.createNotificationGroup;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroups\n */\nexport const readNotificationGroups = NotificationsService.method.readNotificationGroups;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroup\n */\nexport const updateNotificationGroup = NotificationsService.method.updateNotificationGroup;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroup\n */\nexport const deleteNotificationGroup = NotificationsService.method.deleteNotificationGroup;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationUser\n */\nexport const createNotificationUser = NotificationsService.method.createNotificationUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationUsers\n */\nexport const readNotificationUsers = NotificationsService.method.readNotificationUsers;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationUser\n */\nexport const updateNotificationUser = NotificationsService.method.updateNotificationUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationUser\n */\nexport const deleteNotificationUser = NotificationsService.method.deleteNotificationUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroupUser\n */\nexport const createNotificationGroupUser = NotificationsService.method.createNotificationGroupUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroupUsers\n */\nexport const readNotificationGroupUsers = NotificationsService.method.readNotificationGroupUsers;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroupUser\n */\nexport const updateNotificationGroupUser = NotificationsService.method.updateNotificationGroupUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroupUser\n */\nexport const deleteNotificationGroupUser = NotificationsService.method.deleteNotificationGroupUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessage\n */\nexport const createNotificationMessage = NotificationsService.method.createNotificationMessage;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessages\n */\nexport const readNotificationMessages = NotificationsService.method.readNotificationMessages;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetSentNotificationMessages\n */\nexport const getSentNotificationMessages = NotificationsService.method.getSentNotificationMessages;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessage\n */\nexport const updateNotificationMessage = NotificationsService.method.updateNotificationMessage;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessage\n */\nexport const deleteNotificationMessage = NotificationsService.method.deleteNotificationMessage;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessageJob\n */\nexport const createNotificationMessageJob = NotificationsService.method.createNotificationMessageJob;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessageJobs\n */\nexport const readNotificationMessageJobs = NotificationsService.method.readNotificationMessageJobs;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessageJob\n */\nexport const updateNotificationMessageJob = NotificationsService.method.updateNotificationMessageJob;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessageJob\n */\nexport const deleteNotificationMessageJob = NotificationsService.method.deleteNotificationMessageJob;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationProducts\n */\nexport const readNotificationProducts = NotificationsService.method.readNotificationProducts;\n\n/**\n * Public endpoints\n *\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetNotificationUserSettings\n */\nexport const getNotificationUserSettings = NotificationsService.method.getNotificationUserSettings;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.VerifyUserEmail\n */\nexport const verifyUserEmail = NotificationsService.method.verifyUserEmail;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetUserGroups\n */\nexport const getUserGroups = NotificationsService.method.getUserGroups;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateUserGroups\n */\nexport const updateUserGroups = NotificationsService.method.updateUserGroups;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetProjectedRecipientCount\n */\nexport const getProjectedRecipientCount = NotificationsService.method.getProjectedRecipientCount;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetNotificationStats\n */\nexport const getNotificationStats = NotificationsService.method.getNotificationStats;\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file dashboard/v1/notifications.proto (package dashboard.notifications.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { EmptySchema, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { SearchProductsResponseSchema } from \"./product_pb\";\nimport { file_dashboard_v1_product } from \"./product_pb\";\nimport type { NotificationGroupHowOften } from \"../../common/v1/push_notifications_pb\";\nimport { file_common_v1_push_notifications } from \"../../common/v1/push_notifications_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file dashboard/v1/notifications.proto.\n */\nexport const file_dashboard_v1_notifications: GenFile = /*@__PURE__*/\n fileDesc(\"CiBkYXNoYm9hcmQvdjEvbm90aWZpY2F0aW9ucy5wcm90bxIaZGFzaGJvYXJkLm5vdGlmaWNhdGlvbnMudjEiYAoWVmVyaWZ5VXNlckVtYWlsUmVxdWVzdBISCgVlbWFpbBgBIAEoCUgAiAEBEhEKBGNvZGUYAi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0aW9uU3RhdHMSNy5kYXNoYm9hcmQubm90aWZpY2F0aW9ucy52MS5HZXROb3RpZmljYXRpb25TdGF0c1JlcXVlc3QaOC5kYXNoYm9hcmQubm90aWZpY2F0aW9ucy52MS5HZXROb3RpZmljYXRpb25TdGF0c1Jlc3BvbnNlYgZwcm90bzM\", [file_google_protobuf_timestamp, file_google_protobuf_empty, file_dashboard_v1_product, file_common_v1_push_notifications]);\n\n/**\n * @generated from message dashboard.notifications.v1.VerifyUserEmailRequest\n */\nexport type VerifyUserEmailRequest = Message<\"dashboard.notifications.v1.VerifyUserEmailRequest\"> & {\n /**\n * @generated from field: optional string email = 1;\n */\n email?: string;\n\n /**\n * @generated from field: optional string code = 2;\n */\n code?: string;\n\n /**\n * @generated from field: string slug = 3;\n */\n slug: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.VerifyUserEmailRequest.\n * Use `create(VerifyUserEmailRequestSchema)` to create a new message.\n */\nexport const VerifyUserEmailRequestSchema: GenMessage<VerifyUserEmailRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.VerifyUserEmailResponse\n */\nexport type VerifyUserEmailResponse = Message<\"dashboard.notifications.v1.VerifyUserEmailResponse\"> & {\n /**\n * @generated from field: optional bool ok = 1;\n */\n ok?: boolean;\n\n /**\n * @generated from field: optional string access_token = 2;\n */\n accessToken?: string;\n\n /**\n * @generated from field: optional string user_id = 3;\n */\n userId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.VerifyUserEmailResponse.\n * Use `create(VerifyUserEmailResponseSchema)` to create a new message.\n */\nexport const VerifyUserEmailResponseSchema: GenMessage<VerifyUserEmailResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.GetUserGroupsRequest\n */\nexport type GetUserGroupsRequest = Message<\"dashboard.notifications.v1.GetUserGroupsRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * if access token is not provided, all groups are off and user needs to check which groups are for him.\n *\n * @generated from field: optional string access_token = 2;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetUserGroupsRequest.\n * Use `create(GetUserGroupsRequestSchema)` to create a new message.\n */\nexport const GetUserGroupsRequestSchema: GenMessage<GetUserGroupsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 2);\n\n/**\n * @generated from message dashboard.notifications.v1.GetUserGroupsResponse\n */\nexport type GetUserGroupsResponse = Message<\"dashboard.notifications.v1.GetUserGroupsResponse\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.GetUserGroupsResponse.Group groups = 1;\n */\n groups: GetUserGroupsResponse_Group[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetUserGroupsResponse.\n * Use `create(GetUserGroupsResponseSchema)` to create a new message.\n */\nexport const GetUserGroupsResponseSchema: GenMessage<GetUserGroupsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 3);\n\n/**\n * @generated from message dashboard.notifications.v1.GetUserGroupsResponse.Group\n */\nexport type GetUserGroupsResponse_Group = Message<\"dashboard.notifications.v1.GetUserGroupsResponse.Group\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: bool is_on = 4;\n */\n isOn: boolean;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 5;\n */\n howOften?: NotificationGroupHowOften;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetUserGroupsResponse.Group.\n * Use `create(GetUserGroupsResponse_GroupSchema)` to create a new message.\n */\nexport const GetUserGroupsResponse_GroupSchema: GenMessage<GetUserGroupsResponse_Group> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 3, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateUserGroupsRequest\n */\nexport type UpdateUserGroupsRequest = Message<\"dashboard.notifications.v1.UpdateUserGroupsRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string user_id = 2;\n */\n userId: string;\n\n /**\n * @generated from field: repeated string group_ids = 3;\n */\n groupIds: string[];\n\n /**\n * @generated from field: optional string access_token = 4;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateUserGroupsRequest.\n * Use `create(UpdateUserGroupsRequestSchema)` to create a new message.\n */\nexport const UpdateUserGroupsRequestSchema: GenMessage<UpdateUserGroupsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 4);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationUserSettingsRequest\n */\nexport type GetNotificationUserSettingsRequest = Message<\"dashboard.notifications.v1.GetNotificationUserSettingsRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string user_id = 2;\n */\n userId: string;\n\n /**\n * @generated from field: optional string access_token = 3;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationUserSettingsRequest.\n * Use `create(GetNotificationUserSettingsRequestSchema)` to create a new message.\n */\nexport const GetNotificationUserSettingsRequestSchema: GenMessage<GetNotificationUserSettingsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 5);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationUserSettingsResponse\n */\nexport type GetNotificationUserSettingsResponse = Message<\"dashboard.notifications.v1.GetNotificationUserSettingsResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.GetNotificationUserSettingsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result success = 1;\n */\n value: GetNotificationUserSettingsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationUserSettingsResponse.\n * Use `create(GetNotificationUserSettingsResponseSchema)` to create a new message.\n */\nexport const GetNotificationUserSettingsResponseSchema: GenMessage<GetNotificationUserSettingsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 6);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result\n */\nexport type GetNotificationUserSettingsResponse_Result = Message<\"dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n\n /**\n * @generated from field: string subscription_slug = 2;\n */\n subscriptionSlug: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 3;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 4;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 5;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * it can be unavailable for certain of reasons.\n *\n * @generated from field: bool email_notification_available = 6;\n */\n emailNotificationAvailable: boolean;\n\n /**\n * @generated from field: bool sms_notification_available = 7;\n */\n smsNotificationAvailable: boolean;\n\n /**\n * @generated from field: bool mobile_notification_available = 8;\n */\n mobileNotificationAvailable: boolean;\n\n /**\n * @generated from field: bool has_user_installed_app = 9;\n */\n hasUserInstalledApp: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result.\n * Use `create(GetNotificationUserSettingsResponse_ResultSchema)` to create a new message.\n */\nexport const GetNotificationUserSettingsResponse_ResultSchema: GenMessage<GetNotificationUserSettingsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 6, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationSettingRequest\n */\nexport type CreateNotificationSettingRequest = Message<\"dashboard.notifications.v1.CreateNotificationSettingRequest\"> & {\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationSettingRequest.\n * Use `create(CreateNotificationSettingRequestSchema)` to create a new message.\n */\nexport const CreateNotificationSettingRequestSchema: GenMessage<CreateNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 7);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationSettingRequest\n */\nexport type ReadNotificationSettingRequest = Message<\"dashboard.notifications.v1.ReadNotificationSettingRequest\"> & {\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationSettingRequest.\n * Use `create(ReadNotificationSettingRequestSchema)` to create a new message.\n */\nexport const ReadNotificationSettingRequestSchema: GenMessage<ReadNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 8);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationSettingRequest\n */\nexport type UpdateNotificationSettingRequest = Message<\"dashboard.notifications.v1.UpdateNotificationSettingRequest\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n\n /**\n * @generated from field: string subscription_slug = 2;\n */\n subscriptionSlug: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 3;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 4;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 5;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationSettingRequest.\n * Use `create(UpdateNotificationSettingRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationSettingRequestSchema: GenMessage<UpdateNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 9);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationSettingRequest\n */\nexport type DeleteNotificationSettingRequest = Message<\"dashboard.notifications.v1.DeleteNotificationSettingRequest\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationSettingRequest.\n * Use `create(DeleteNotificationSettingRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationSettingRequestSchema: GenMessage<DeleteNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 10);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationSettingResponse\n */\nexport type ReadNotificationSettingResponse = Message<\"dashboard.notifications.v1.ReadNotificationSettingResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationSettingResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationSettingResponse.Result success = 1;\n */\n value: ReadNotificationSettingResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationSettingResponse.\n * Use `create(ReadNotificationSettingResponseSchema)` to create a new message.\n */\nexport const ReadNotificationSettingResponseSchema: GenMessage<ReadNotificationSettingResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 11);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationSettingResponse.Result\n */\nexport type ReadNotificationSettingResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationSettingResponse.Result\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n\n /**\n * @generated from field: string subscription_slug = 2;\n */\n subscriptionSlug: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 3;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 4;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 5;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationSettingResponse.Result.\n * Use `create(ReadNotificationSettingResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationSettingResponse_ResultSchema: GenMessage<ReadNotificationSettingResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 11, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationSettingResponse\n */\nexport type NotificationSettingResponse = Message<\"dashboard.notifications.v1.NotificationSettingResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationSettingResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationSettingResponse.Result success = 1;\n */\n value: NotificationSettingResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationSettingResponse.\n * Use `create(NotificationSettingResponseSchema)` to create a new message.\n */\nexport const NotificationSettingResponseSchema: GenMessage<NotificationSettingResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 12);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationSettingResponse.Result\n */\nexport type NotificationSettingResponse_Result = Message<\"dashboard.notifications.v1.NotificationSettingResponse.Result\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationSettingResponse.Result.\n * Use `create(NotificationSettingResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationSettingResponse_ResultSchema: GenMessage<NotificationSettingResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 12, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationGroupRequest\n */\nexport type CreateNotificationGroupRequest = Message<\"dashboard.notifications.v1.CreateNotificationGroupRequest\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 2;\n */\n description?: string;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 3;\n */\n howOften?: NotificationGroupHowOften;\n\n /**\n * @generated from field: optional bool is_public = 4;\n */\n isPublic?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationGroupRequest.\n * Use `create(CreateNotificationGroupRequestSchema)` to create a new message.\n */\nexport const CreateNotificationGroupRequestSchema: GenMessage<CreateNotificationGroupRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 13);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsRequest\n */\nexport type ReadNotificationGroupsRequest = Message<\"dashboard.notifications.v1.ReadNotificationGroupsRequest\"> & {\n /**\n * @generated from field: repeated string group_ids = 1;\n */\n groupIds: string[];\n\n /**\n * @generated from field: optional string group_name = 2;\n */\n groupName?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsRequest.\n * Use `create(ReadNotificationGroupsRequestSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsRequestSchema: GenMessage<ReadNotificationGroupsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 14);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationGroupRequest\n */\nexport type UpdateNotificationGroupRequest = Message<\"dashboard.notifications.v1.UpdateNotificationGroupRequest\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 4;\n */\n howOften?: NotificationGroupHowOften;\n\n /**\n * @generated from field: optional bool is_public = 5;\n */\n isPublic?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationGroupRequest.\n * Use `create(UpdateNotificationGroupRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationGroupRequestSchema: GenMessage<UpdateNotificationGroupRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 15);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationGroupRequest\n */\nexport type DeleteNotificationGroupRequest = Message<\"dashboard.notifications.v1.DeleteNotificationGroupRequest\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationGroupRequest.\n * Use `create(DeleteNotificationGroupRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationGroupRequestSchema: GenMessage<DeleteNotificationGroupRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 16);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsResponse\n */\nexport type ReadNotificationGroupsResponse = Message<\"dashboard.notifications.v1.ReadNotificationGroupsResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationGroupsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationGroupsResponse.Result success = 1;\n */\n value: ReadNotificationGroupsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsResponse.\n * Use `create(ReadNotificationGroupsResponseSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsResponseSchema: GenMessage<ReadNotificationGroupsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 17);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsResponse.Group\n */\nexport type ReadNotificationGroupsResponse_Group = Message<\"dashboard.notifications.v1.ReadNotificationGroupsResponse.Group\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 4;\n */\n howOften?: NotificationGroupHowOften;\n\n /**\n * @generated from field: int32 users = 5;\n */\n users: number;\n\n /**\n * @generated from field: bool is_public = 6;\n */\n isPublic: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsResponse.Group.\n * Use `create(ReadNotificationGroupsResponse_GroupSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsResponse_GroupSchema: GenMessage<ReadNotificationGroupsResponse_Group> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 17, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsResponse.Result\n */\nexport type ReadNotificationGroupsResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationGroupsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.ReadNotificationGroupsResponse.Group groups = 1;\n */\n groups: ReadNotificationGroupsResponse_Group[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsResponse.Result.\n * Use `create(ReadNotificationGroupsResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsResponse_ResultSchema: GenMessage<ReadNotificationGroupsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 17, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupResponse\n */\nexport type NotificationGroupResponse = Message<\"dashboard.notifications.v1.NotificationGroupResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationGroupResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationGroupResponse.Result success = 1;\n */\n value: NotificationGroupResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupResponse.\n * Use `create(NotificationGroupResponseSchema)` to create a new message.\n */\nexport const NotificationGroupResponseSchema: GenMessage<NotificationGroupResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 18);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupResponse.Result\n */\nexport type NotificationGroupResponse_Result = Message<\"dashboard.notifications.v1.NotificationGroupResponse.Result\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupResponse.Result.\n * Use `create(NotificationGroupResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationGroupResponse_ResultSchema: GenMessage<NotificationGroupResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 18, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationUserRequest\n */\nexport type CreateNotificationUserRequest = Message<\"dashboard.notifications.v1.CreateNotificationUserRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: repeated string groups = 3;\n */\n groups: string[];\n\n /**\n * @generated from field: optional string phone = 4;\n */\n phone?: string;\n\n /**\n * @generated from field: optional string first_name = 5;\n */\n firstName?: string;\n\n /**\n * @generated from field: optional string last_name = 6;\n */\n lastName?: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 7;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 8;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 9;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationUserRequest.\n * Use `create(CreateNotificationUserRequestSchema)` to create a new message.\n */\nexport const CreateNotificationUserRequestSchema: GenMessage<CreateNotificationUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 19);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationUsersRequest\n */\nexport type ReadNotificationUsersRequest = Message<\"dashboard.notifications.v1.ReadNotificationUsersRequest\"> & {\n /**\n * @generated from field: repeated string user_ids = 1;\n */\n userIds: string[];\n\n /**\n * @generated from field: optional string user_email = 2;\n */\n userEmail?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationUsersRequest.\n * Use `create(ReadNotificationUsersRequestSchema)` to create a new message.\n */\nexport const ReadNotificationUsersRequestSchema: GenMessage<ReadNotificationUsersRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 20);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationUserRequest\n */\nexport type UpdateNotificationUserRequest = Message<\"dashboard.notifications.v1.UpdateNotificationUserRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string notification_user_id = 2;\n */\n notificationUserId: string;\n\n /**\n * @generated from field: optional string first_name = 3;\n */\n firstName?: string;\n\n /**\n * @generated from field: optional string last_name = 4;\n */\n lastName?: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 5;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 6;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 7;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: optional string access_token = 8;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationUserRequest.\n * Use `create(UpdateNotificationUserRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationUserRequestSchema: GenMessage<UpdateNotificationUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 21);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationUserRequest\n */\nexport type DeleteNotificationUserRequest = Message<\"dashboard.notifications.v1.DeleteNotificationUserRequest\"> & {\n /**\n * @generated from field: string user_id = 1;\n */\n userId: string;\n\n /**\n * @generated from field: string slug = 2;\n */\n slug: string;\n\n /**\n * @generated from field: optional string access_token = 3;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationUserRequest.\n * Use `create(DeleteNotificationUserRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationUserRequestSchema: GenMessage<DeleteNotificationUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 22);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationUsersResponse\n */\nexport type ReadNotificationUsersResponse = Message<\"dashboard.notifications.v1.ReadNotificationUsersResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationUsersResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationUsersResponse.Result success = 1;\n */\n value: ReadNotificationUsersResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationUsersResponse.\n * Use `create(ReadNotificationUsersResponseSchema)` to create a new message.\n */\nexport const ReadNotificationUsersResponseSchema: GenMessage<ReadNotificationUsersResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 23);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationUsersResponse.Result\n */\nexport type ReadNotificationUsersResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationUsersResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.User users = 1;\n */\n users: User[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationUsersResponse.Result.\n * Use `create(ReadNotificationUsersResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationUsersResponse_ResultSchema: GenMessage<ReadNotificationUsersResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 23, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationUserResponse\n */\nexport type NotificationUserResponse = Message<\"dashboard.notifications.v1.NotificationUserResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationUserResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationUserResponse.Result success = 1;\n */\n value: NotificationUserResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n\n /**\n * @generated from field: optional string access_token = 3;\n */\n accessToken?: string;\n\n /**\n * @generated from field: optional string user_id = 4;\n */\n userId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationUserResponse.\n * Use `create(NotificationUserResponseSchema)` to create a new message.\n */\nexport const NotificationUserResponseSchema: GenMessage<NotificationUserResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 24);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationUserResponse.Result\n */\nexport type NotificationUserResponse_Result = Message<\"dashboard.notifications.v1.NotificationUserResponse.Result\"> & {\n /**\n * @generated from field: string notification_user_id = 1;\n */\n notificationUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationUserResponse.Result.\n * Use `create(NotificationUserResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationUserResponse_ResultSchema: GenMessage<NotificationUserResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 24, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationGroupUserRequest\n */\nexport type CreateNotificationGroupUserRequest = Message<\"dashboard.notifications.v1.CreateNotificationGroupUserRequest\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string notification_user_id = 2;\n */\n notificationUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationGroupUserRequest.\n * Use `create(CreateNotificationGroupUserRequestSchema)` to create a new message.\n */\nexport const CreateNotificationGroupUserRequestSchema: GenMessage<CreateNotificationGroupUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 25);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupUsersRequests\n */\nexport type ReadNotificationGroupUsersRequests = Message<\"dashboard.notifications.v1.ReadNotificationGroupUsersRequests\"> & {\n /**\n * @generated from field: repeated string group_ids = 1;\n */\n groupIds: string[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupUsersRequests.\n * Use `create(ReadNotificationGroupUsersRequestsSchema)` to create a new message.\n */\nexport const ReadNotificationGroupUsersRequestsSchema: GenMessage<ReadNotificationGroupUsersRequests> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 26);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationGroupUserRequest\n */\nexport type UpdateNotificationGroupUserRequest = Message<\"dashboard.notifications.v1.UpdateNotificationGroupUserRequest\"> & {\n /**\n * @generated from field: string notification_group_user_id = 1;\n */\n notificationGroupUserId: string;\n\n /**\n * @generated from field: string notification_group_id = 2;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string notification_user_id = 3;\n */\n notificationUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationGroupUserRequest.\n * Use `create(UpdateNotificationGroupUserRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationGroupUserRequestSchema: GenMessage<UpdateNotificationGroupUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 27);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationGroupUserRequest\n */\nexport type DeleteNotificationGroupUserRequest = Message<\"dashboard.notifications.v1.DeleteNotificationGroupUserRequest\"> & {\n /**\n * @generated from field: string notification_group_user_id = 1;\n */\n notificationGroupUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationGroupUserRequest.\n * Use `create(DeleteNotificationGroupUserRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationGroupUserRequestSchema: GenMessage<DeleteNotificationGroupUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 28);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupUsersResponse\n */\nexport type ReadNotificationGroupUsersResponse = Message<\"dashboard.notifications.v1.ReadNotificationGroupUsersResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationGroupUsersResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result success = 1;\n */\n value: ReadNotificationGroupUsersResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupUsersResponse.\n * Use `create(ReadNotificationGroupUsersResponseSchema)` to create a new message.\n */\nexport const ReadNotificationGroupUsersResponseSchema: GenMessage<ReadNotificationGroupUsersResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 29);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result\n */\nexport type ReadNotificationGroupUsersResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.User users = 1;\n */\n users: User[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result.\n * Use `create(ReadNotificationGroupUsersResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationGroupUsersResponse_ResultSchema: GenMessage<ReadNotificationGroupUsersResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 29, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupUserResponse\n */\nexport type NotificationGroupUserResponse = Message<\"dashboard.notifications.v1.NotificationGroupUserResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationGroupUserResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationGroupUserResponse.Result success = 1;\n */\n value: NotificationGroupUserResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupUserResponse.\n * Use `create(NotificationGroupUserResponseSchema)` to create a new message.\n */\nexport const NotificationGroupUserResponseSchema: GenMessage<NotificationGroupUserResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 30);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupUserResponse.Result\n */\nexport type NotificationGroupUserResponse_Result = Message<\"dashboard.notifications.v1.NotificationGroupUserResponse.Result\"> & {\n /**\n * @generated from field: string notification_group_user_id = 1;\n */\n notificationGroupUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupUserResponse.Result.\n * Use `create(NotificationGroupUserResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationGroupUserResponse_ResultSchema: GenMessage<NotificationGroupUserResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 30, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessage\n */\nexport type NotificationMessage = Message<\"dashboard.notifications.v1.NotificationMessage\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageStatus status = 2;\n */\n status: NotificationMessageStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp send_at = 3;\n */\n sendAt?: Timestamp;\n\n /**\n * @generated from field: string title = 4;\n */\n title: string;\n\n /**\n * @generated from field: optional string subtitle = 5;\n */\n subtitle?: string;\n\n /**\n * @generated from field: optional string message = 6;\n */\n message?: string;\n\n /**\n * @generated from field: optional string image_url = 7;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: optional string open_url = 15;\n */\n openUrl?: string;\n\n /**\n * @generated from field: repeated string groups = 8;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 9;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 10;\n */\n users: string[];\n\n /**\n * @generated from field: bool mobile_notification_enabled = 11;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 12;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 13;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: optional string error_message = 14;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessage.\n * Use `create(NotificationMessageSchema)` to create a new message.\n */\nexport const NotificationMessageSchema: GenMessage<NotificationMessage> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 31);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationMessageRequest\n */\nexport type CreateNotificationMessageRequest = Message<\"dashboard.notifications.v1.CreateNotificationMessageRequest\"> & {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageStatus status = 1;\n */\n status: NotificationMessageStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp send_at = 2;\n */\n sendAt?: Timestamp;\n\n /**\n * @generated from field: string title = 3;\n */\n title: string;\n\n /**\n * @generated from field: optional string subtitle = 4;\n */\n subtitle?: string;\n\n /**\n * @generated from field: optional string message = 5;\n */\n message?: string;\n\n /**\n * @generated from field: optional string image_url = 6;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: optional string open_url = 13;\n */\n openUrl?: string;\n\n /**\n * @generated from field: repeated string groups = 7;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 8;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 9;\n */\n users: string[];\n\n /**\n * @generated from field: bool mobile_notification_enabled = 10;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 11;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 12;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationMessageRequest.\n * Use `create(CreateNotificationMessageRequestSchema)` to create a new message.\n */\nexport const CreateNotificationMessageRequestSchema: GenMessage<CreateNotificationMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 32);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesRequest\n */\nexport type GetSentNotificationMessagesRequest = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesRequest\"> & {\n /**\n * @generated from field: optional string notification_message_id = 1;\n */\n notificationMessageId?: string;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp start_time = 2;\n */\n startTime?: Timestamp;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp end_time = 3;\n */\n endTime?: Timestamp;\n\n /**\n * @generated from field: optional bool include_export_data = 4;\n */\n includeExportData?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesRequest.\n * Use `create(GetSentNotificationMessagesRequestSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesRequestSchema: GenMessage<GetSentNotificationMessagesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 33);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesResponse\n */\nexport type GetSentNotificationMessagesResponse = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.GetSentNotificationMessagesResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result success = 1;\n */\n value: GetSentNotificationMessagesResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesResponse.\n * Use `create(GetSentNotificationMessagesResponseSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesResponseSchema: GenMessage<GetSentNotificationMessagesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 34);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats\n */\nexport type GetSentNotificationMessagesResponse_NotificationMessageStats = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats\"> & {\n /**\n * @generated from field: int32 sent = 1;\n */\n sent: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats.\n * Use `create(GetSentNotificationMessagesResponse_NotificationMessageStatsSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesResponse_NotificationMessageStatsSchema: GenMessage<GetSentNotificationMessagesResponse_NotificationMessageStats> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 34, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result\n */\nexport type GetSentNotificationMessagesResponse_Result = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.NotificationMessage notification_messages = 1;\n */\n notificationMessages: NotificationMessage[];\n\n /**\n * @generated from field: dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats stats = 2;\n */\n stats?: GetSentNotificationMessagesResponse_NotificationMessageStats;\n\n /**\n * @generated from field: optional bytes export_data = 3;\n */\n exportData?: Uint8Array;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result.\n * Use `create(GetSentNotificationMessagesResponse_ResultSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesResponse_ResultSchema: GenMessage<GetSentNotificationMessagesResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 34, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessagesRequest\n */\nexport type ReadNotificationMessagesRequest = Message<\"dashboard.notifications.v1.ReadNotificationMessagesRequest\"> & {\n /**\n * @generated from field: optional string notification_message_id = 1;\n */\n notificationMessageId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessagesRequest.\n * Use `create(ReadNotificationMessagesRequestSchema)` to create a new message.\n */\nexport const ReadNotificationMessagesRequestSchema: GenMessage<ReadNotificationMessagesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 35);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationMessageRequest\n */\nexport type UpdateNotificationMessageRequest = Message<\"dashboard.notifications.v1.UpdateNotificationMessageRequest\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageStatus status = 2;\n */\n status: NotificationMessageStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp send_at = 3;\n */\n sendAt?: Timestamp;\n\n /**\n * @generated from field: string title = 4;\n */\n title: string;\n\n /**\n * @generated from field: optional string subtitle = 5;\n */\n subtitle?: string;\n\n /**\n * @generated from field: optional string message = 6;\n */\n message?: string;\n\n /**\n * @generated from field: optional string image_url = 7;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: repeated string groups = 8;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 9;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 10;\n */\n users: string[];\n\n /**\n * @generated from field: bool mobile_notification_enabled = 11;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 12;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 13;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: optional string error_message = 14;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationMessageRequest.\n * Use `create(UpdateNotificationMessageRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationMessageRequestSchema: GenMessage<UpdateNotificationMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 36);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationMessageRequest\n */\nexport type DeleteNotificationMessageRequest = Message<\"dashboard.notifications.v1.DeleteNotificationMessageRequest\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationMessageRequest.\n * Use `create(DeleteNotificationMessageRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationMessageRequestSchema: GenMessage<DeleteNotificationMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 37);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessagesResponse\n */\nexport type ReadNotificationMessagesResponse = Message<\"dashboard.notifications.v1.ReadNotificationMessagesResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationMessagesResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationMessagesResponse.Result success = 1;\n */\n value: ReadNotificationMessagesResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessagesResponse.\n * Use `create(ReadNotificationMessagesResponseSchema)` to create a new message.\n */\nexport const ReadNotificationMessagesResponseSchema: GenMessage<ReadNotificationMessagesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 38);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessagesResponse.Result\n */\nexport type ReadNotificationMessagesResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationMessagesResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.NotificationMessage notification_messages = 1;\n */\n notificationMessages: NotificationMessage[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessagesResponse.Result.\n * Use `create(ReadNotificationMessagesResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationMessagesResponse_ResultSchema: GenMessage<ReadNotificationMessagesResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 38, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageResponse\n */\nexport type NotificationMessageResponse = Message<\"dashboard.notifications.v1.NotificationMessageResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationMessageResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageResponse.Result success = 1;\n */\n value: NotificationMessageResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageResponse.\n * Use `create(NotificationMessageResponseSchema)` to create a new message.\n */\nexport const NotificationMessageResponseSchema: GenMessage<NotificationMessageResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 39);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageResponse.Result\n */\nexport type NotificationMessageResponse_Result = Message<\"dashboard.notifications.v1.NotificationMessageResponse.Result\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageResponse.Result.\n * Use `create(NotificationMessageResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationMessageResponse_ResultSchema: GenMessage<NotificationMessageResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 39, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationMessageJobRequest\n */\nexport type CreateNotificationMessageJobRequest = Message<\"dashboard.notifications.v1.CreateNotificationMessageJobRequest\"> & {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobStatus status = 1;\n */\n status: NotificationMessageJobStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp sent_at = 2;\n */\n sentAt?: Timestamp;\n\n /**\n * @generated from field: string customer_id = 3;\n */\n customerId: string;\n\n /**\n * @generated from field: string notification_message_id = 4;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: repeated string priority = 5;\n */\n priority: string[];\n\n /**\n * @generated from field: optional string error_message = 6;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationMessageJobRequest.\n * Use `create(CreateNotificationMessageJobRequestSchema)` to create a new message.\n */\nexport const CreateNotificationMessageJobRequestSchema: GenMessage<CreateNotificationMessageJobRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 40);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsRequest\n */\nexport type ReadNotificationMessageJobsRequest = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsRequest\"> & {\n /**\n * @generated from field: optional string notification_message_job_id = 1;\n */\n notificationMessageJobId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsRequest.\n * Use `create(ReadNotificationMessageJobsRequestSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsRequestSchema: GenMessage<ReadNotificationMessageJobsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 41);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationMessageJobRequest\n */\nexport type UpdateNotificationMessageJobRequest = Message<\"dashboard.notifications.v1.UpdateNotificationMessageJobRequest\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobStatus status = 2;\n */\n status: NotificationMessageJobStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp sent_at = 3;\n */\n sentAt?: Timestamp;\n\n /**\n * @generated from field: optional string error_message = 4;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationMessageJobRequest.\n * Use `create(UpdateNotificationMessageJobRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationMessageJobRequestSchema: GenMessage<UpdateNotificationMessageJobRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 42);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationMessageJobRequest\n */\nexport type DeleteNotificationMessageJobRequest = Message<\"dashboard.notifications.v1.DeleteNotificationMessageJobRequest\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationMessageJobRequest.\n * Use `create(DeleteNotificationMessageJobRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationMessageJobRequestSchema: GenMessage<DeleteNotificationMessageJobRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 43);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsResponse\n */\nexport type ReadNotificationMessageJobsResponse = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationMessageJobsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result success = 1;\n */\n value: ReadNotificationMessageJobsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.\n * Use `create(ReadNotificationMessageJobsResponseSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsResponseSchema: GenMessage<ReadNotificationMessageJobsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 44);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob\n */\nexport type ReadNotificationMessageJobsResponse_NotificationMessageJob = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobStatus status = 2;\n */\n status: NotificationMessageJobStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp sent_at = 3;\n */\n sentAt?: Timestamp;\n\n /**\n * @generated from field: string customer_id = 4;\n */\n customerId: string;\n\n /**\n * @generated from field: string notification_message_id = 5;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: repeated string priority = 6;\n */\n priority: string[];\n\n /**\n * @generated from field: optional string error_message = 7;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob.\n * Use `create(ReadNotificationMessageJobsResponse_NotificationMessageJobSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsResponse_NotificationMessageJobSchema: GenMessage<ReadNotificationMessageJobsResponse_NotificationMessageJob> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 44, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result\n */\nexport type ReadNotificationMessageJobsResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob notification_message_jobs = 1;\n */\n notificationMessageJobs: ReadNotificationMessageJobsResponse_NotificationMessageJob[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result.\n * Use `create(ReadNotificationMessageJobsResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsResponse_ResultSchema: GenMessage<ReadNotificationMessageJobsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 44, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageJobResponse\n */\nexport type NotificationMessageJobResponse = Message<\"dashboard.notifications.v1.NotificationMessageJobResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationMessageJobResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobResponse.Result success = 1;\n */\n value: NotificationMessageJobResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageJobResponse.\n * Use `create(NotificationMessageJobResponseSchema)` to create a new message.\n */\nexport const NotificationMessageJobResponseSchema: GenMessage<NotificationMessageJobResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 45);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageJobResponse.Result\n */\nexport type NotificationMessageJobResponse_Result = Message<\"dashboard.notifications.v1.NotificationMessageJobResponse.Result\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageJobResponse.Result.\n * Use `create(NotificationMessageJobResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationMessageJobResponse_ResultSchema: GenMessage<NotificationMessageJobResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 45, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.User\n */\nexport type User = Message<\"dashboard.notifications.v1.User\"> & {\n /**\n * @generated from field: string notification_user_id = 1;\n */\n notificationUserId: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: optional string first_name = 3;\n */\n firstName?: string;\n\n /**\n * @generated from field: optional string last_name = 4;\n */\n lastName?: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 5;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 6;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 7;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 8;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: optional bool is_app_installed = 9;\n */\n isAppInstalled?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.User.\n * Use `create(UserSchema)` to create a new message.\n */\nexport const UserSchema: GenMessage<User> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 46);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationProductsRequest\n */\nexport type ReadNotificationProductsRequest = Message<\"dashboard.notifications.v1.ReadNotificationProductsRequest\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationProductsRequest.\n * Use `create(ReadNotificationProductsRequestSchema)` to create a new message.\n */\nexport const ReadNotificationProductsRequestSchema: GenMessage<ReadNotificationProductsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 47);\n\n/**\n * @generated from message dashboard.notifications.v1.GetProjectedRecipientCountRequest\n */\nexport type GetProjectedRecipientCountRequest = Message<\"dashboard.notifications.v1.GetProjectedRecipientCountRequest\"> & {\n /**\n * @generated from field: repeated string groups = 1;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 2;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 3;\n */\n users: string[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetProjectedRecipientCountRequest.\n * Use `create(GetProjectedRecipientCountRequestSchema)` to create a new message.\n */\nexport const GetProjectedRecipientCountRequestSchema: GenMessage<GetProjectedRecipientCountRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 48);\n\n/**\n * @generated from message dashboard.notifications.v1.GetProjectedRecipientCountResponse\n */\nexport type GetProjectedRecipientCountResponse = Message<\"dashboard.notifications.v1.GetProjectedRecipientCountResponse\"> & {\n /**\n * @generated from field: int32 total = 1;\n */\n total: number;\n\n /**\n * @generated from field: int32 email_count = 2;\n */\n emailCount: number;\n\n /**\n * @generated from field: int32 sms_count = 3;\n */\n smsCount: number;\n\n /**\n * @generated from field: int32 mobile_count = 4;\n */\n mobileCount: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetProjectedRecipientCountResponse.\n * Use `create(GetProjectedRecipientCountResponseSchema)` to create a new message.\n */\nexport const GetProjectedRecipientCountResponseSchema: GenMessage<GetProjectedRecipientCountResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 49);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsRequest\n */\nexport type GetNotificationStatsRequest = Message<\"dashboard.notifications.v1.GetNotificationStatsRequest\"> & {\n /**\n * @generated from field: optional google.protobuf.Timestamp start_time = 1;\n */\n startTime?: Timestamp;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp end_time = 2;\n */\n endTime?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsRequest.\n * Use `create(GetNotificationStatsRequestSchema)` to create a new message.\n */\nexport const GetNotificationStatsRequestSchema: GenMessage<GetNotificationStatsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 50);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsResponse\n */\nexport type GetNotificationStatsResponse = Message<\"dashboard.notifications.v1.GetNotificationStatsResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.GetNotificationStatsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.GetNotificationStatsResponse.Result success = 1;\n */\n value: GetNotificationStatsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsResponse.\n * Use `create(GetNotificationStatsResponseSchema)` to create a new message.\n */\nexport const GetNotificationStatsResponseSchema: GenMessage<GetNotificationStatsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 51);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsResponse.StatusBreakdown\n */\nexport type GetNotificationStatsResponse_StatusBreakdown = Message<\"dashboard.notifications.v1.GetNotificationStatsResponse.StatusBreakdown\"> & {\n /**\n * @generated from field: int32 drafts = 1;\n */\n drafts: number;\n\n /**\n * @generated from field: int32 planned = 2;\n */\n planned: number;\n\n /**\n * @generated from field: int32 in_progress = 3;\n */\n inProgress: number;\n\n /**\n * @generated from field: int32 sent = 4;\n */\n sent: number;\n\n /**\n * @generated from field: int32 error = 5;\n */\n error: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsResponse.StatusBreakdown.\n * Use `create(GetNotificationStatsResponse_StatusBreakdownSchema)` to create a new message.\n */\nexport const GetNotificationStatsResponse_StatusBreakdownSchema: GenMessage<GetNotificationStatsResponse_StatusBreakdown> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 51, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsResponse.ChannelBreakdown\n */\nexport type GetNotificationStatsResponse_ChannelBreakdown = Message<\"dashboard.notifications.v1.GetNotificationStatsResponse.ChannelBreakdown\"> & {\n /**\n * @generated from field: int32 mobile = 1;\n */\n mobile: number;\n\n /**\n * @generated from field: int32 email = 2;\n */\n email: number;\n\n /**\n * @generated from field: int32 sms = 3;\n */\n sms: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsResponse.ChannelBreakdown.\n * Use `create(GetNotificationStatsResponse_ChannelBreakdownSchema)` to create a new message.\n */\nexport const GetNotificationStatsResponse_ChannelBreakdownSchema: GenMessage<GetNotificationStatsResponse_ChannelBreakdown> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 51, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsResponse.TimelinePoint\n */\nexport type GetNotificationStatsResponse_TimelinePoint = Message<\"dashboard.notifications.v1.GetNotificationStatsResponse.TimelinePoint\"> & {\n /**\n * @generated from field: string date = 1;\n */\n date: string;\n\n /**\n * @generated from field: int32 count = 2;\n */\n count: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsResponse.TimelinePoint.\n * Use `create(GetNotificationStatsResponse_TimelinePointSchema)` to create a new message.\n */\nexport const GetNotificationStatsResponse_TimelinePointSchema: GenMessage<GetNotificationStatsResponse_TimelinePoint> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 51, 2);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsResponse.Result\n */\nexport type GetNotificationStatsResponse_Result = Message<\"dashboard.notifications.v1.GetNotificationStatsResponse.Result\"> & {\n /**\n * @generated from field: dashboard.notifications.v1.GetNotificationStatsResponse.StatusBreakdown status_breakdown = 1;\n */\n statusBreakdown?: GetNotificationStatsResponse_StatusBreakdown;\n\n /**\n * @generated from field: dashboard.notifications.v1.GetNotificationStatsResponse.ChannelBreakdown channel_breakdown = 2;\n */\n channelBreakdown?: GetNotificationStatsResponse_ChannelBreakdown;\n\n /**\n * @generated from field: repeated dashboard.notifications.v1.GetNotificationStatsResponse.TimelinePoint timeline = 3;\n */\n timeline: GetNotificationStatsResponse_TimelinePoint[];\n\n /**\n * @generated from field: int32 total_subscribers = 4;\n */\n totalSubscribers: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsResponse.Result.\n * Use `create(GetNotificationStatsResponse_ResultSchema)` to create a new message.\n */\nexport const GetNotificationStatsResponse_ResultSchema: GenMessage<GetNotificationStatsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 51, 3);\n\n/**\n * @generated from enum dashboard.notifications.v1.NotificationMessageStatus\n */\nexport enum NotificationMessageStatus {\n /**\n * @generated from enum value: DRAFT = 0;\n */\n DRAFT = 0,\n\n /**\n * @generated from enum value: PLANNED = 1;\n */\n PLANNED = 1,\n\n /**\n * @generated from enum value: IN_PROGRESS = 2;\n */\n IN_PROGRESS = 2,\n\n /**\n * @generated from enum value: SENT = 3;\n */\n SENT = 3,\n\n /**\n * @generated from enum value: ERROR = 4;\n */\n ERROR = 4,\n}\n\n/**\n * Describes the enum dashboard.notifications.v1.NotificationMessageStatus.\n */\nexport const NotificationMessageStatusSchema: GenEnum<NotificationMessageStatus> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_notifications, 0);\n\n/**\n * @generated from enum dashboard.notifications.v1.NotificationMessageJobStatus\n */\nexport enum NotificationMessageJobStatus {\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_TODO = 0;\n */\n TODO = 0,\n\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_IN_PROGRESS = 1;\n */\n IN_PROGRESS = 1,\n\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_SENT = 2;\n */\n SENT = 2,\n\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_ERROR = 3;\n */\n ERROR = 3,\n}\n\n/**\n * Describes the enum dashboard.notifications.v1.NotificationMessageJobStatus.\n */\nexport const NotificationMessageJobStatusSchema: GenEnum<NotificationMessageJobStatus> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_notifications, 1);\n\n/**\n * @generated from enum dashboard.notifications.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_SETTING_NOT_FOUND = 2;\n */\n NOTIFICATION_SETTING_NOT_FOUND = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_SETTING_FAILED = 3;\n */\n CREATE_NOTIFICATION_SETTING_FAILED = 3,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_SETTING_FAILED = 4;\n */\n UPDATE_NOTIFICATION_SETTING_FAILED = 4,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_SETTING_FAILED = 5;\n */\n DELETE_NOTIFICATION_SETTING_FAILED = 5,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUP_NOT_FOUND = 6;\n */\n NOTIFICATION_GROUP_NOT_FOUND = 6,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUPS_NOT_FOUND = 7;\n */\n NOTIFICATION_GROUPS_NOT_FOUND = 7,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_GROUP_FAILED = 8;\n */\n CREATE_NOTIFICATION_GROUP_FAILED = 8,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_GROUP_FAILED = 9;\n */\n UPDATE_NOTIFICATION_GROUP_FAILED = 9,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_GROUP_FAILED = 10;\n */\n DELETE_NOTIFICATION_GROUP_FAILED = 10,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_USER_NOT_FOUND = 11;\n */\n NOTIFICATION_USER_NOT_FOUND = 11,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_USERS_NOT_FOUND = 12;\n */\n NOTIFICATION_USERS_NOT_FOUND = 12,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_USER_FAILED = 13;\n */\n CREATE_NOTIFICATION_USER_FAILED = 13,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_USER_FAILED = 14;\n */\n UPDATE_NOTIFICATION_USER_FAILED = 14,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_USER_FAILED = 15;\n */\n DELETE_NOTIFICATION_USER_FAILED = 15,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUP_USER_NOT_FOUND = 16;\n */\n NOTIFICATION_GROUP_USER_NOT_FOUND = 16,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_GROUP_USER_FAILED = 17;\n */\n CREATE_NOTIFICATION_GROUP_USER_FAILED = 17,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_GROUP_USER_FAILED = 18;\n */\n UPDATE_NOTIFICATION_GROUP_USER_FAILED = 18,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_GROUP_USER_FAILED = 19;\n */\n DELETE_NOTIFICATION_GROUP_USER_FAILED = 19,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGE_NOT_FOUND = 20;\n */\n NOTIFICATION_MESSAGE_NOT_FOUND = 20,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGES_NOT_FOUND = 21;\n */\n NOTIFICATION_MESSAGES_NOT_FOUND = 21,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_MESSAGE_FAILED = 22;\n */\n CREATE_NOTIFICATION_MESSAGE_FAILED = 22,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_MESSAGE_FAILED = 23;\n */\n UPDATE_NOTIFICATION_MESSAGE_FAILED = 23,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_MESSAGE_FAILED = 24;\n */\n DELETE_NOTIFICATION_MESSAGE_FAILED = 24,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGE_JOB_NOT_FOUND = 25;\n */\n NOTIFICATION_MESSAGE_JOB_NOT_FOUND = 25,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGE_JOBS_NOT_FOUND = 26;\n */\n NOTIFICATION_MESSAGE_JOBS_NOT_FOUND = 26,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_MESSAGE_JOB_FAILED = 27;\n */\n CREATE_NOTIFICATION_MESSAGE_JOB_FAILED = 27,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_MESSAGE_JOB_FAILED = 28;\n */\n UPDATE_NOTIFICATION_MESSAGE_JOB_FAILED = 28,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_MESSAGE_JOB_FAILED = 29;\n */\n DELETE_NOTIFICATION_MESSAGE_JOB_FAILED = 29,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_SETTING_ALREADY_EXIST = 30;\n */\n NOTIFICATION_SETTING_ALREADY_EXIST = 30,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_SETTING_SLUG_ALREADY_TAKEN = 31;\n */\n NOTIFICATION_SETTING_SLUG_ALREADY_TAKEN = 31,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_USER_ALREADY_EXIST = 32;\n */\n NOTIFICATION_USER_ALREADY_EXIST = 32,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUP_ALREADY_EXIST = 33;\n */\n NOTIFICATION_GROUP_ALREADY_EXIST = 33,\n}\n\n/**\n * Describes the enum dashboard.notifications.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_notifications, 2);\n\n/**\n * @generated from service dashboard.notifications.v1.NotificationsService\n */\nexport const NotificationsService: GenService<{\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationSetting\n */\n createNotificationSetting: {\n methodKind: \"unary\";\n input: typeof CreateNotificationSettingRequestSchema;\n output: typeof NotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationSetting\n */\n readNotificationSetting: {\n methodKind: \"unary\";\n input: typeof ReadNotificationSettingRequestSchema;\n output: typeof ReadNotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationSetting\n */\n updateNotificationSetting: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationSettingRequestSchema;\n output: typeof NotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationSetting\n */\n deleteNotificationSetting: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationSettingRequestSchema;\n output: typeof NotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroup\n */\n createNotificationGroup: {\n methodKind: \"unary\";\n input: typeof CreateNotificationGroupRequestSchema;\n output: typeof NotificationGroupResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroups\n */\n readNotificationGroups: {\n methodKind: \"unary\";\n input: typeof ReadNotificationGroupsRequestSchema;\n output: typeof ReadNotificationGroupsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroup\n */\n updateNotificationGroup: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationGroupRequestSchema;\n output: typeof NotificationGroupResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroup\n */\n deleteNotificationGroup: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationGroupRequestSchema;\n output: typeof NotificationGroupResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationUser\n */\n createNotificationUser: {\n methodKind: \"unary\";\n input: typeof CreateNotificationUserRequestSchema;\n output: typeof NotificationUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationUsers\n */\n readNotificationUsers: {\n methodKind: \"unary\";\n input: typeof ReadNotificationUsersRequestSchema;\n output: typeof ReadNotificationUsersResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationUser\n */\n updateNotificationUser: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationUserRequestSchema;\n output: typeof NotificationUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationUser\n */\n deleteNotificationUser: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationUserRequestSchema;\n output: typeof NotificationUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroupUser\n */\n createNotificationGroupUser: {\n methodKind: \"unary\";\n input: typeof CreateNotificationGroupUserRequestSchema;\n output: typeof NotificationGroupUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroupUsers\n */\n readNotificationGroupUsers: {\n methodKind: \"unary\";\n input: typeof ReadNotificationGroupUsersRequestsSchema;\n output: typeof ReadNotificationGroupUsersResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroupUser\n */\n updateNotificationGroupUser: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationGroupUserRequestSchema;\n output: typeof NotificationGroupUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroupUser\n */\n deleteNotificationGroupUser: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationGroupUserRequestSchema;\n output: typeof NotificationGroupUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessage\n */\n createNotificationMessage: {\n methodKind: \"unary\";\n input: typeof CreateNotificationMessageRequestSchema;\n output: typeof NotificationMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessages\n */\n readNotificationMessages: {\n methodKind: \"unary\";\n input: typeof ReadNotificationMessagesRequestSchema;\n output: typeof ReadNotificationMessagesResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetSentNotificationMessages\n */\n getSentNotificationMessages: {\n methodKind: \"unary\";\n input: typeof GetSentNotificationMessagesRequestSchema;\n output: typeof GetSentNotificationMessagesResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessage\n */\n updateNotificationMessage: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationMessageRequestSchema;\n output: typeof NotificationMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessage\n */\n deleteNotificationMessage: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationMessageRequestSchema;\n output: typeof NotificationMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessageJob\n */\n createNotificationMessageJob: {\n methodKind: \"unary\";\n input: typeof CreateNotificationMessageJobRequestSchema;\n output: typeof NotificationMessageJobResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessageJobs\n */\n readNotificationMessageJobs: {\n methodKind: \"unary\";\n input: typeof ReadNotificationMessageJobsRequestSchema;\n output: typeof ReadNotificationMessageJobsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessageJob\n */\n updateNotificationMessageJob: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationMessageJobRequestSchema;\n output: typeof NotificationMessageJobResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessageJob\n */\n deleteNotificationMessageJob: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationMessageJobRequestSchema;\n output: typeof NotificationMessageJobResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationProducts\n */\n readNotificationProducts: {\n methodKind: \"unary\";\n input: typeof ReadNotificationProductsRequestSchema;\n output: typeof SearchProductsResponseSchema;\n },\n /**\n * Public endpoints\n *\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetNotificationUserSettings\n */\n getNotificationUserSettings: {\n methodKind: \"unary\";\n input: typeof GetNotificationUserSettingsRequestSchema;\n output: typeof GetNotificationUserSettingsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.VerifyUserEmail\n */\n verifyUserEmail: {\n methodKind: \"unary\";\n input: typeof VerifyUserEmailRequestSchema;\n output: typeof VerifyUserEmailResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetUserGroups\n */\n getUserGroups: {\n methodKind: \"unary\";\n input: typeof GetUserGroupsRequestSchema;\n output: typeof GetUserGroupsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateUserGroups\n */\n updateUserGroups: {\n methodKind: \"unary\";\n input: typeof UpdateUserGroupsRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetProjectedRecipientCount\n */\n getProjectedRecipientCount: {\n methodKind: \"unary\";\n input: typeof GetProjectedRecipientCountRequestSchema;\n output: typeof GetProjectedRecipientCountResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetNotificationStats\n */\n getNotificationStats: {\n methodKind: \"unary\";\n input: typeof GetNotificationStatsRequestSchema;\n output: typeof GetNotificationStatsResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_dashboard_v1_notifications, 0);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file dashboard/v1/product.proto (package dashboard.product.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Empty, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file dashboard/v1/product.proto.\n */\nexport const file_dashboard_v1_product: GenFile = /*@__PURE__*/\n fileDesc(\"ChpkYXNoYm9hcmQvdjEvcHJvZHVjdC5wcm90bxIUZGFzaGJvYXJkLnByb2R1Y3QudjEiNAoeR2V0R3Vlc3RDYXRhbG9nU2V0dGluZ3NSZXF1ZXN0EhIKCnByb2R1Y3RfaWQYASABKAkibAobU2V0R3Vlc3RDYXRhbG9nRW50cnlSZXF1ZXN0EhIKCnByb2R1Y3RfaWQYASABKAkSFAoMcHJvZHVjdF90eXBlGAIgASgJEg8KB2VuYWJsZWQYAyABKAgSEgoKc29ydF9vcmRlchgEIAEoBSL3AQofR2V0R3Vlc3RDYXRhbG9nU2V0dGluZ3NSZXNwb25zZRISCgpjYW5fbWFuYWdlGAEgASgIEh0KFWd1ZXN0X2NhdGFsb2dfZW5hYmxlZBgCIAEoCBI4CgdlbnRyaWVzGAMgAygLMicuZGFzaGJvYXJkLnByb2R1Y3QudjEuR3Vlc3RDYXRhbG9nRW50cnkSHQoVYXZhaWxhYmxlX3Byb2R1Y3RfaWRzGAQgAygJEkgKD3Byb2R1Y3Rfb3B0aW9ucxgFIAMoCzIvLmRhc2hib2FyZC5wcm9kdWN0LnYxLkd1ZXN0Q2F0YWxvZ1Byb2R1Y3RPcHRpb24iRQoZR3Vlc3RDYXRhbG9nUHJvZHVjdE9wdGlvbhISCgpwcm9kdWN0X2lkGAEgASgJEhQKDGRpc3BsYXlfbmFtZRgCIAEoCSJ+ChFHdWVzdENhdGFsb2dFbnRyeRISCgpwcm9kdWN0X2lkGAEgASgJEhQKDHByb2R1Y3RfdHlwZRgCIAEoCRIPCgdlbmFibGVkGAMgASgI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S5DcmVhdGVQcm9kdWN0UmVxdWVzdBolLmRhc2hib2FyZC5wcm9kdWN0LnYxLk9wZXJhdGlvblJlc3VsdBJiCg1EZWxldGVQcm9kdWN0EiouZGFzaGJvYXJkLnByb2R1Y3QudjEuRGVsZXRlUHJvZHVjdFJlcXVlc3QaJS5kYXNoYm9hcmQucHJvZHVjdC52MS5PcGVyYXRpb25SZXN1bHQSZwoOR2V0UHJvZHVjdEJ5SWQSKy5kYXNoYm9hcmQucHJvZHVjdC52MS5HZXRQcm9kdWN0QnlJZFJlcXVlc3QaKC5kYXNoYm9hcmQucHJvZHVjdC52MS5HZXRQcm9kdWN0UmVzcG9uc2UShgEKF0dldEd1ZXN0Q2F0YWxvZ1NldHRpbmdzEjQuZGFzaGJvYXJkLnByb2R1Y3QudjEuR2V0R3Vlc3RDYXRhbG9nU2V0dGluZ3NSZXF1ZXN0GjUuZGFzaGJvYXJkLnByb2R1Y3QudjEuR2V0R3Vlc3RDYXRhbG9nU2V0dGluZ3NSZXNwb25zZRKAAQoUU2V0R3Vlc3RDYXRhbG9nRW50cnkSMS5kYXNoYm9hcmQucHJvZHVjdC52MS5TZXRHdWVzdENhdGFsb2dFbnRyeVJlcXVlc3QaNS5kYXNoYm9hcmQucHJvZHVjdC52MS5HZXRHdWVzdENhdGFsb2dTZXR0aW5nc1Jlc3BvbnNlYgZwcm90bzM\", [file_google_protobuf_empty, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message dashboard.product.v1.GetGuestCatalogSettingsRequest\n */\nexport type GetGuestCatalogSettingsRequest = Message<\"dashboard.product.v1.GetGuestCatalogSettingsRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetGuestCatalogSettingsRequest.\n * Use `create(GetGuestCatalogSettingsRequestSchema)` to create a new message.\n */\nexport const GetGuestCatalogSettingsRequestSchema: GenMessage<GetGuestCatalogSettingsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 0);\n\n/**\n * @generated from message dashboard.product.v1.SetGuestCatalogEntryRequest\n */\nexport type SetGuestCatalogEntryRequest = Message<\"dashboard.product.v1.SetGuestCatalogEntryRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string product_type = 2;\n */\n productType: string;\n\n /**\n * @generated from field: bool enabled = 3;\n */\n enabled: boolean;\n\n /**\n * @generated from field: int32 sort_order = 4;\n */\n sortOrder: number;\n};\n\n/**\n * Describes the message dashboard.product.v1.SetGuestCatalogEntryRequest.\n * Use `create(SetGuestCatalogEntryRequestSchema)` to create a new message.\n */\nexport const SetGuestCatalogEntryRequestSchema: GenMessage<SetGuestCatalogEntryRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 1);\n\n/**\n * @generated from message dashboard.product.v1.GetGuestCatalogSettingsResponse\n */\nexport type GetGuestCatalogSettingsResponse = Message<\"dashboard.product.v1.GetGuestCatalogSettingsResponse\"> & {\n /**\n * @generated from field: bool can_manage = 1;\n */\n canManage: boolean;\n\n /**\n * @generated from field: bool guest_catalog_enabled = 2;\n */\n guestCatalogEnabled: boolean;\n\n /**\n * @generated from field: repeated dashboard.product.v1.GuestCatalogEntry entries = 3;\n */\n entries: GuestCatalogEntry[];\n\n /**\n * @generated from field: repeated string available_product_ids = 4;\n */\n availableProductIds: string[];\n\n /**\n * @generated from field: repeated dashboard.product.v1.GuestCatalogProductOption product_options = 5;\n */\n productOptions: GuestCatalogProductOption[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetGuestCatalogSettingsResponse.\n * Use `create(GetGuestCatalogSettingsResponseSchema)` to create a new message.\n */\nexport const GetGuestCatalogSettingsResponseSchema: GenMessage<GetGuestCatalogSettingsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 2);\n\n/**\n * @generated from message dashboard.product.v1.GuestCatalogProductOption\n */\nexport type GuestCatalogProductOption = Message<\"dashboard.product.v1.GuestCatalogProductOption\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string display_name = 2;\n */\n displayName: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GuestCatalogProductOption.\n * Use `create(GuestCatalogProductOptionSchema)` to create a new message.\n */\nexport const GuestCatalogProductOptionSchema: GenMessage<GuestCatalogProductOption> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 3);\n\n/**\n * @generated from message dashboard.product.v1.GuestCatalogEntry\n */\nexport type GuestCatalogEntry = Message<\"dashboard.product.v1.GuestCatalogEntry\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string product_type = 2;\n */\n productType: string;\n\n /**\n * @generated from field: bool enabled = 3;\n */\n enabled: boolean;\n\n /**\n * @generated from field: int32 sort_order = 4;\n */\n sortOrder: number;\n\n /**\n * @generated from field: string eligibility_reason = 5;\n */\n eligibilityReason: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GuestCatalogEntry.\n * Use `create(GuestCatalogEntrySchema)` to create a new message.\n */\nexport const GuestCatalogEntrySchema: GenMessage<GuestCatalogEntry> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 4);\n\n/**\n * @generated from message dashboard.product.v1.ArchiveProductRequest\n */\nexport type ArchiveProductRequest = Message<\"dashboard.product.v1.ArchiveProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.ArchiveProductRequest.\n * Use `create(ArchiveProductRequestSchema)` to create a new message.\n */\nexport const ArchiveProductRequestSchema: GenMessage<ArchiveProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 5);\n\n/**\n * @generated from message dashboard.product.v1.DuplicateProductRequest\n */\nexport type DuplicateProductRequest = Message<\"dashboard.product.v1.DuplicateProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.DuplicateProductRequest.\n * Use `create(DuplicateProductRequestSchema)` to create a new message.\n */\nexport const DuplicateProductRequestSchema: GenMessage<DuplicateProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 6);\n\n/**\n * @generated from message dashboard.product.v1.DuplicateProductResponse\n */\nexport type DuplicateProductResponse = Message<\"dashboard.product.v1.DuplicateProductResponse\"> & {\n /**\n * @generated from field: string duplicated_product_id = 1;\n */\n duplicatedProductId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.DuplicateProductResponse.\n * Use `create(DuplicateProductResponseSchema)` to create a new message.\n */\nexport const DuplicateProductResponseSchema: GenMessage<DuplicateProductResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 7);\n\n/**\n * @generated from message dashboard.product.v1.ExchangeProductIDsToNamesRequest\n */\nexport type ExchangeProductIDsToNamesRequest = Message<\"dashboard.product.v1.ExchangeProductIDsToNamesRequest\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message dashboard.product.v1.ExchangeProductIDsToNamesRequest.\n * Use `create(ExchangeProductIDsToNamesRequestSchema)` to create a new message.\n */\nexport const ExchangeProductIDsToNamesRequestSchema: GenMessage<ExchangeProductIDsToNamesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 8);\n\n/**\n * @generated from message dashboard.product.v1.ExchangeProductIDsToNamesResponse\n */\nexport type ExchangeProductIDsToNamesResponse = Message<\"dashboard.product.v1.ExchangeProductIDsToNamesResponse\"> & {\n /**\n * @generated from field: map<string, string> product_names = 1;\n */\n productNames: { [key: string]: string };\n};\n\n/**\n * Describes the message dashboard.product.v1.ExchangeProductIDsToNamesResponse.\n * Use `create(ExchangeProductIDsToNamesResponseSchema)` to create a new message.\n */\nexport const ExchangeProductIDsToNamesResponseSchema: GenMessage<ExchangeProductIDsToNamesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 9);\n\n/**\n * @generated from message dashboard.product.v1.GetFileAccessMembersRequest\n */\nexport type GetFileAccessMembersRequest = Message<\"dashboard.product.v1.GetFileAccessMembersRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: optional string search = 2;\n */\n search?: string;\n\n /**\n * @generated from field: optional string variant_id = 3;\n */\n variantId?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetFileAccessMembersRequest.\n * Use `create(GetFileAccessMembersRequestSchema)` to create a new message.\n */\nexport const GetFileAccessMembersRequestSchema: GenMessage<GetFileAccessMembersRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 10);\n\n/**\n * @generated from message dashboard.product.v1.GetFileAccessMembersResponse\n */\nexport type GetFileAccessMembersResponse = Message<\"dashboard.product.v1.GetFileAccessMembersResponse\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.GetFileAccessMembersResponse.Value members = 1;\n */\n members: GetFileAccessMembersResponse_Value[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetFileAccessMembersResponse.\n * Use `create(GetFileAccessMembersResponseSchema)` to create a new message.\n */\nexport const GetFileAccessMembersResponseSchema: GenMessage<GetFileAccessMembersResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 11);\n\n/**\n * @generated from message dashboard.product.v1.GetFileAccessMembersResponse.Value\n */\nexport type GetFileAccessMembersResponse_Value = Message<\"dashboard.product.v1.GetFileAccessMembersResponse.Value\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp created_at = 3;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetFileAccessMembersResponse.Value.\n * Use `create(GetFileAccessMembersResponse_ValueSchema)` to create a new message.\n */\nexport const GetFileAccessMembersResponse_ValueSchema: GenMessage<GetFileAccessMembersResponse_Value> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 11, 0);\n\n/**\n * @generated from message dashboard.product.v1.GiveAccessToFileRequest\n */\nexport type GiveAccessToFileRequest = Message<\"dashboard.product.v1.GiveAccessToFileRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: optional string variant_id = 2;\n */\n variantId?: string;\n\n /**\n * @generated from field: string email = 3;\n */\n email: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GiveAccessToFileRequest.\n * Use `create(GiveAccessToFileRequestSchema)` to create a new message.\n */\nexport const GiveAccessToFileRequestSchema: GenMessage<GiveAccessToFileRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 12);\n\n/**\n * @generated from message dashboard.product.v1.GiveAccessToFileResponse\n */\nexport type GiveAccessToFileResponse = Message<\"dashboard.product.v1.GiveAccessToFileResponse\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GiveAccessToFileResponse.\n * Use `create(GiveAccessToFileResponseSchema)` to create a new message.\n */\nexport const GiveAccessToFileResponseSchema: GenMessage<GiveAccessToFileResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 13);\n\n/**\n * @generated from message dashboard.product.v1.RemoveAccessToFileRequest\n */\nexport type RemoveAccessToFileRequest = Message<\"dashboard.product.v1.RemoveAccessToFileRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.RemoveAccessToFileRequest.\n * Use `create(RemoveAccessToFileRequestSchema)` to create a new message.\n */\nexport const RemoveAccessToFileRequestSchema: GenMessage<RemoveAccessToFileRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 14);\n\n/**\n * @generated from message dashboard.product.v1.RemoveAccessToFileResponse\n */\nexport type RemoveAccessToFileResponse = Message<\"dashboard.product.v1.RemoveAccessToFileResponse\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.RemoveAccessToFileResponse.\n * Use `create(RemoveAccessToFileResponseSchema)` to create a new message.\n */\nexport const RemoveAccessToFileResponseSchema: GenMessage<RemoveAccessToFileResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 15);\n\n/**\n * @generated from message dashboard.product.v1.SendTestEmailWithMessageRequest\n */\nexport type SendTestEmailWithMessageRequest = Message<\"dashboard.product.v1.SendTestEmailWithMessageRequest\"> & {\n /**\n * @generated from field: string email = 1;\n */\n email: string;\n\n /**\n * @generated from field: string html_message = 2;\n */\n htmlMessage: string;\n\n /**\n * @generated from field: optional string title = 3;\n */\n title?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.SendTestEmailWithMessageRequest.\n * Use `create(SendTestEmailWithMessageRequestSchema)` to create a new message.\n */\nexport const SendTestEmailWithMessageRequestSchema: GenMessage<SendTestEmailWithMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 16);\n\n/**\n * @generated from message dashboard.product.v1.GetProductVariantsRequest\n */\nexport type GetProductVariantsRequest = Message<\"dashboard.product.v1.GetProductVariantsRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductVariantsRequest.\n * Use `create(GetProductVariantsRequestSchema)` to create a new message.\n */\nexport const GetProductVariantsRequestSchema: GenMessage<GetProductVariantsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 17);\n\n/**\n * @generated from message dashboard.product.v1.GetProductVariantsResponse\n */\nexport type GetProductVariantsResponse = Message<\"dashboard.product.v1.GetProductVariantsResponse\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.GetProductVariantsResponse.SingleVariant variants = 1;\n */\n variants: GetProductVariantsResponse_SingleVariant[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductVariantsResponse.\n * Use `create(GetProductVariantsResponseSchema)` to create a new message.\n */\nexport const GetProductVariantsResponseSchema: GenMessage<GetProductVariantsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 18);\n\n/**\n * @generated from message dashboard.product.v1.GetProductVariantsResponse.SingleVariant\n */\nexport type GetProductVariantsResponse_SingleVariant = Message<\"dashboard.product.v1.GetProductVariantsResponse.SingleVariant\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductVariantsResponse.SingleVariant.\n * Use `create(GetProductVariantsResponse_SingleVariantSchema)` to create a new message.\n */\nexport const GetProductVariantsResponse_SingleVariantSchema: GenMessage<GetProductVariantsResponse_SingleVariant> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 18, 0);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductAfterPurchaseMessageRequest\n */\nexport type UpdateProductAfterPurchaseMessageRequest = Message<\"dashboard.product.v1.UpdateProductAfterPurchaseMessageRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string message = 2;\n */\n message: string;\n\n /**\n * @generated from field: string html_message = 3;\n */\n htmlMessage: string;\n\n /**\n * @generated from field: optional string title = 4;\n */\n title?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductAfterPurchaseMessageRequest.\n * Use `create(UpdateProductAfterPurchaseMessageRequestSchema)` to create a new message.\n */\nexport const UpdateProductAfterPurchaseMessageRequestSchema: GenMessage<UpdateProductAfterPurchaseMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 19);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAfterPurchaseMessageRequest\n */\nexport type GetProductAfterPurchaseMessageRequest = Message<\"dashboard.product.v1.GetProductAfterPurchaseMessageRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAfterPurchaseMessageRequest.\n * Use `create(GetProductAfterPurchaseMessageRequestSchema)` to create a new message.\n */\nexport const GetProductAfterPurchaseMessageRequestSchema: GenMessage<GetProductAfterPurchaseMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 20);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAfterPurchaseMessageResponse\n */\nexport type GetProductAfterPurchaseMessageResponse = Message<\"dashboard.product.v1.GetProductAfterPurchaseMessageResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductAfterPurchaseMessageResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success success = 1;\n */\n value: GetProductAfterPurchaseMessageResponse_Success;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAfterPurchaseMessageResponse.\n * Use `create(GetProductAfterPurchaseMessageResponseSchema)` to create a new message.\n */\nexport const GetProductAfterPurchaseMessageResponseSchema: GenMessage<GetProductAfterPurchaseMessageResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 21);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success\n */\nexport type GetProductAfterPurchaseMessageResponse_Success = Message<\"dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success\"> & {\n /**\n * @generated from field: optional string message = 1;\n */\n message?: string;\n\n /**\n * @generated from field: optional string html_message = 2;\n */\n htmlMessage?: string;\n\n /**\n * @generated from field: optional string title = 3;\n */\n title?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success.\n * Use `create(GetProductAfterPurchaseMessageResponse_SuccessSchema)` to create a new message.\n */\nexport const GetProductAfterPurchaseMessageResponse_SuccessSchema: GenMessage<GetProductAfterPurchaseMessageResponse_Success> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 21, 0);\n\n/**\n * @generated from message dashboard.product.v1.PublishProductIfNeededRequest\n */\nexport type PublishProductIfNeededRequest = Message<\"dashboard.product.v1.PublishProductIfNeededRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.PublishProductIfNeededRequest.\n * Use `create(PublishProductIfNeededRequestSchema)` to create a new message.\n */\nexport const PublishProductIfNeededRequestSchema: GenMessage<PublishProductIfNeededRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 22);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductSendTicketAfterPurchaseRequest\n */\nexport type UpdateProductSendTicketAfterPurchaseRequest = Message<\"dashboard.product.v1.UpdateProductSendTicketAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: bool send_ticket_after_purchase = 2;\n */\n sendTicketAfterPurchase: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductSendTicketAfterPurchaseRequest.\n * Use `create(UpdateProductSendTicketAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const UpdateProductSendTicketAfterPurchaseRequestSchema: GenMessage<UpdateProductSendTicketAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 23);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductAudiobookAfterPurchaseRequest\n */\nexport type UpdateProductAudiobookAfterPurchaseRequest = Message<\"dashboard.product.v1.UpdateProductAudiobookAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string audiobook_id = 2;\n */\n audiobookId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductAudiobookAfterPurchaseRequest.\n * Use `create(UpdateProductAudiobookAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const UpdateProductAudiobookAfterPurchaseRequestSchema: GenMessage<UpdateProductAudiobookAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 24);\n\n/**\n * @generated from message dashboard.product.v1.GetProductSendTicketAfterPurchaseRequest\n */\nexport type GetProductSendTicketAfterPurchaseRequest = Message<\"dashboard.product.v1.GetProductSendTicketAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductSendTicketAfterPurchaseRequest.\n * Use `create(GetProductSendTicketAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const GetProductSendTicketAfterPurchaseRequestSchema: GenMessage<GetProductSendTicketAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 25);\n\n/**\n * @generated from message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse\n */\nexport type GetProductSendTicketAfterPurchaseResponse = Message<\"dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success success = 1;\n */\n value: GetProductSendTicketAfterPurchaseResponse_Success;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.\n * Use `create(GetProductSendTicketAfterPurchaseResponseSchema)` to create a new message.\n */\nexport const GetProductSendTicketAfterPurchaseResponseSchema: GenMessage<GetProductSendTicketAfterPurchaseResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 26);\n\n/**\n * @generated from message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success\n */\nexport type GetProductSendTicketAfterPurchaseResponse_Success = Message<\"dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success\"> & {\n /**\n * @generated from field: bool send_ticket_after_purchase = 1;\n */\n sendTicketAfterPurchase: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success.\n * Use `create(GetProductSendTicketAfterPurchaseResponse_SuccessSchema)` to create a new message.\n */\nexport const GetProductSendTicketAfterPurchaseResponse_SuccessSchema: GenMessage<GetProductSendTicketAfterPurchaseResponse_Success> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 26, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAudiobookAfterPurchaseRequest\n */\nexport type GetProductAudiobookAfterPurchaseRequest = Message<\"dashboard.product.v1.GetProductAudiobookAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAudiobookAfterPurchaseRequest.\n * Use `create(GetProductAudiobookAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const GetProductAudiobookAfterPurchaseRequestSchema: GenMessage<GetProductAudiobookAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 27);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse\n */\nexport type GetProductAudiobookAfterPurchaseResponse = Message<\"dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success success = 1;\n */\n value: GetProductAudiobookAfterPurchaseResponse_Success;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.\n * Use `create(GetProductAudiobookAfterPurchaseResponseSchema)` to create a new message.\n */\nexport const GetProductAudiobookAfterPurchaseResponseSchema: GenMessage<GetProductAudiobookAfterPurchaseResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 28);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success\n */\nexport type GetProductAudiobookAfterPurchaseResponse_Success = Message<\"dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success\"> & {\n /**\n * @generated from field: string audiobook_id = 1;\n */\n audiobookId: string;\n\n /**\n * @generated from field: string audiobook_title = 2;\n */\n audiobookTitle: string;\n\n /**\n * @generated from field: string audiobook_image_url = 3;\n */\n audiobookImageUrl: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success.\n * Use `create(GetProductAudiobookAfterPurchaseResponse_SuccessSchema)` to create a new message.\n */\nexport const GetProductAudiobookAfterPurchaseResponse_SuccessSchema: GenMessage<GetProductAudiobookAfterPurchaseResponse_Success> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 28, 0);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsRequest\n */\nexport type SearchProductsRequest = Message<\"dashboard.product.v1.SearchProductsRequest\"> & {\n /**\n * @generated from field: optional string search = 1;\n */\n search?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsRequest.\n * Use `create(SearchProductsRequestSchema)` to create a new message.\n */\nexport const SearchProductsRequestSchema: GenMessage<SearchProductsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 29);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsResponse\n */\nexport type SearchProductsResponse = Message<\"dashboard.product.v1.SearchProductsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.SearchProductsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.SearchProductsResponse.Result success = 1;\n */\n value: SearchProductsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsResponse.\n * Use `create(SearchProductsResponseSchema)` to create a new message.\n */\nexport const SearchProductsResponseSchema: GenMessage<SearchProductsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 30);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsResponse.SingleProduct\n */\nexport type SearchProductsResponse_SingleProduct = Message<\"dashboard.product.v1.SearchProductsResponse.SingleProduct\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string image_url = 3;\n */\n imageUrl?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsResponse.SingleProduct.\n * Use `create(SearchProductsResponse_SingleProductSchema)` to create a new message.\n */\nexport const SearchProductsResponse_SingleProductSchema: GenMessage<SearchProductsResponse_SingleProduct> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 30, 0);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsResponse.Result\n */\nexport type SearchProductsResponse_Result = Message<\"dashboard.product.v1.SearchProductsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.SearchProductsResponse.SingleProduct products = 1;\n */\n products: SearchProductsResponse_SingleProduct[];\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsResponse.Result.\n * Use `create(SearchProductsResponse_ResultSchema)` to create a new message.\n */\nexport const SearchProductsResponse_ResultSchema: GenMessage<SearchProductsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 30, 1);\n\n/**\n * @generated from message dashboard.product.v1.GetProductBoughtArticlesRequest\n */\nexport type GetProductBoughtArticlesRequest = Message<\"dashboard.product.v1.GetProductBoughtArticlesRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductBoughtArticlesRequest.\n * Use `create(GetProductBoughtArticlesRequestSchema)` to create a new message.\n */\nexport const GetProductBoughtArticlesRequestSchema: GenMessage<GetProductBoughtArticlesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 31);\n\n/**\n * @generated from message dashboard.product.v1.GetProductBoughtArticlesResponse\n */\nexport type GetProductBoughtArticlesResponse = Message<\"dashboard.product.v1.GetProductBoughtArticlesResponse\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.ProductBoughtArticle articles = 1;\n */\n articles: ProductBoughtArticle[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductBoughtArticlesResponse.\n * Use `create(GetProductBoughtArticlesResponseSchema)` to create a new message.\n */\nexport const GetProductBoughtArticlesResponseSchema: GenMessage<GetProductBoughtArticlesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 32);\n\n/**\n * @generated from message dashboard.product.v1.ProductBoughtArticle\n */\nexport type ProductBoughtArticle = Message<\"dashboard.product.v1.ProductBoughtArticle\"> & {\n /**\n * empty string if new.\n *\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: optional string content = 3;\n */\n content?: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 8;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.ProductBoughtArticle.\n * Use `create(ProductBoughtArticleSchema)` to create a new message.\n */\nexport const ProductBoughtArticleSchema: GenMessage<ProductBoughtArticle> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 33);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductBoughtArticleRequest\n */\nexport type UpdateProductBoughtArticleRequest = Message<\"dashboard.product.v1.UpdateProductBoughtArticleRequest\"> & {\n /**\n * @generated from field: dashboard.product.v1.ProductBoughtArticle article = 1;\n */\n article?: ProductBoughtArticle;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductBoughtArticleRequest.\n * Use `create(UpdateProductBoughtArticleRequestSchema)` to create a new message.\n */\nexport const UpdateProductBoughtArticleRequestSchema: GenMessage<UpdateProductBoughtArticleRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 34);\n\n/**\n * @generated from message dashboard.product.v1.GetProductRequest\n */\nexport type GetProductRequest = Message<\"dashboard.product.v1.GetProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductRequest.\n * Use `create(GetProductRequestSchema)` to create a new message.\n */\nexport const GetProductRequestSchema: GenMessage<GetProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 35);\n\n/**\n * @generated from message dashboard.product.v1.GetProductResponse\n */\nexport type GetProductResponse = Message<\"dashboard.product.v1.GetProductResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.ProductV2 product = 1;\n */\n value: ProductV2;\n case: \"product\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n\n /**\n * @generated from field: repeated dashboard.product.v1.GetProductResponse.SellStats sell_stats = 3;\n */\n sellStats: GetProductResponse_SellStats[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductResponse.\n * Use `create(GetProductResponseSchema)` to create a new message.\n */\nexport const GetProductResponseSchema: GenMessage<GetProductResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 36);\n\n/**\n * @generated from message dashboard.product.v1.GetProductResponse.SellStats\n */\nexport type GetProductResponse_SellStats = Message<\"dashboard.product.v1.GetProductResponse.SellStats\"> & {\n /**\n * @generated from field: string productID = 1;\n */\n productID: string;\n\n /**\n * @generated from field: int32 sold = 2;\n */\n sold: number;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductResponse.SellStats.\n * Use `create(GetProductResponse_SellStatsSchema)` to create a new message.\n */\nexport const GetProductResponse_SellStatsSchema: GenMessage<GetProductResponse_SellStats> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 36, 0);\n\n/**\n * @generated from message dashboard.product.v1.CreateOrUpdateProductRequest\n */\nexport type CreateOrUpdateProductRequest = Message<\"dashboard.product.v1.CreateOrUpdateProductRequest\"> & {\n /**\n * @generated from field: dashboard.product.v1.ProductV2 product = 1;\n */\n product?: ProductV2;\n\n /**\n * @generated from field: bool is_description_different = 2;\n */\n isDescriptionDifferent: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.CreateOrUpdateProductRequest.\n * Use `create(CreateOrUpdateProductRequestSchema)` to create a new message.\n */\nexport const CreateOrUpdateProductRequestSchema: GenMessage<CreateOrUpdateProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 37);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductUniqueSlugRequest\n */\nexport type UpdateProductUniqueSlugRequest = Message<\"dashboard.product.v1.UpdateProductUniqueSlugRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string new_unique_slug = 2;\n */\n newUniqueSlug: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductUniqueSlugRequest.\n * Use `create(UpdateProductUniqueSlugRequestSchema)` to create a new message.\n */\nexport const UpdateProductUniqueSlugRequestSchema: GenMessage<UpdateProductUniqueSlugRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 38);\n\n/**\n * @generated from message dashboard.product.v1.ProductV2\n */\nexport type ProductV2 = Message<\"dashboard.product.v1.ProductV2\"> & {\n /**\n * @generated from field: optional string id = 1;\n */\n id?: string;\n\n /**\n * @generated from field: string unique_slug = 2;\n */\n uniqueSlug: string;\n\n /**\n * @generated from field: string project_id = 3;\n */\n projectId: string;\n\n /**\n * @generated from field: dashboard.product.v1.ProductV2.Status status = 4;\n */\n status: ProductV2_Status;\n\n /**\n * @generated from field: optional bool is_recurring = 5;\n */\n isRecurring?: boolean;\n\n /**\n * @generated from field: optional dashboard.product.v1.Recurring recurring = 6;\n */\n recurring?: Recurring;\n\n /**\n * @generated from field: string name = 7;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 8;\n */\n description?: string;\n\n /**\n * @generated from field: optional string html_description = 9;\n */\n htmlDescription?: string;\n\n /**\n * @generated from field: optional string short_description = 10;\n */\n shortDescription?: string;\n\n /**\n * @generated from field: optional int32 price_amount = 11;\n */\n priceAmount?: number;\n\n /**\n * @generated from field: optional string price_currency = 12;\n */\n priceCurrency?: string;\n\n /**\n * @generated from field: optional float tax = 13;\n */\n tax?: number;\n\n /**\n * @generated from field: optional int32 available_quantity = 14;\n */\n availableQuantity?: number;\n\n /**\n * @generated from field: map<string, string> features = 15;\n */\n features: { [key: string]: string };\n\n /**\n * @generated from field: repeated string images = 16;\n */\n images: string[];\n\n /**\n * @generated from field: optional string thumbnail_image = 17;\n */\n thumbnailImage?: string;\n\n /**\n * @generated from field: optional string main_image = 18;\n */\n mainImage?: string;\n\n /**\n * @generated from field: repeated dashboard.product.v1.Variant variants = 19;\n */\n variants: Variant[];\n\n /**\n * @generated from field: optional bool send_ticket_after_purchase = 20;\n */\n sendTicketAfterPurchase?: boolean;\n\n /**\n * @generated from field: optional bool is_product_visible_on_list = 21;\n */\n isProductVisibleOnList?: boolean;\n\n /**\n * @generated from field: optional bool is_deliverable = 24;\n */\n isDeliverable?: boolean;\n\n /**\n * @generated from field: optional bool force_manual_payment = 29;\n */\n forceManualPayment?: boolean;\n\n /**\n * @generated from field: optional int32 weight_grams = 30;\n */\n weightGrams?: number;\n\n /**\n * @generated from field: optional int32 width_millimeters = 31;\n */\n widthMillimeters?: number;\n\n /**\n * @generated from field: optional int32 height_millimeters = 32;\n */\n heightMillimeters?: number;\n\n /**\n * @generated from field: int64 created_at = 25;\n */\n createdAt: bigint;\n\n /**\n * @generated from field: int64 updated_at = 26;\n */\n updatedAt: bigint;\n\n /**\n * @generated from field: optional int64 deleted_at = 27;\n */\n deletedAt?: bigint;\n\n /**\n * @generated from field: optional bool archived = 28;\n */\n archived?: boolean;\n\n /**\n * Monotonic conditional-save token. Clients must send the revision they read.\n *\n * @generated from field: int32 revision = 33;\n */\n revision: number;\n};\n\n/**\n * Describes the message dashboard.product.v1.ProductV2.\n * Use `create(ProductV2Schema)` to create a new message.\n */\nexport const ProductV2Schema: GenMessage<ProductV2> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 39);\n\n/**\n * @generated from enum dashboard.product.v1.ProductV2.Status\n */\nexport enum ProductV2_Status {\n /**\n * @generated from enum value: DRAFT = 0;\n */\n DRAFT = 0,\n\n /**\n * @generated from enum value: UNPUBLISHED = 1;\n */\n UNPUBLISHED = 1,\n\n /**\n * @generated from enum value: PUBLISHED = 2;\n */\n PUBLISHED = 2,\n}\n\n/**\n * Describes the enum dashboard.product.v1.ProductV2.Status.\n */\nexport const ProductV2_StatusSchema: GenEnum<ProductV2_Status> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 39, 0);\n\n/**\n * @generated from message dashboard.product.v1.Recurring\n */\nexport type Recurring = Message<\"dashboard.product.v1.Recurring\"> & {\n /**\n * @generated from field: dashboard.product.v1.BillingPeriod billingPeriod = 1;\n */\n billingPeriod: BillingPeriod;\n\n /**\n * @generated from field: optional int32 trial_days = 2;\n */\n trialDays?: number;\n\n /**\n * @generated from field: optional int32 number_of_payments = 3;\n */\n numberOfPayments?: number;\n\n /**\n * @generated from field: optional bool change_amount_for_currentSubscribers = 4;\n */\n changeAmountForCurrentSubscribers?: boolean;\n\n /**\n * @generated from field: optional bool remove_access_for_cancelled_subscribers = 5;\n */\n removeAccessForCancelledSubscribers?: boolean;\n\n /**\n * @generated from field: optional bool should_send_trial_period_reminder = 6;\n */\n shouldSendTrialPeriodReminder?: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.Recurring.\n * Use `create(RecurringSchema)` to create a new message.\n */\nexport const RecurringSchema: GenMessage<Recurring> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 40);\n\n/**\n * @generated from message dashboard.product.v1.VariantDiscount\n */\nexport type VariantDiscount = Message<\"dashboard.product.v1.VariantDiscount\"> & {\n /**\n * @generated from field: dashboard.product.v1.VariantDiscount.Type type = 1;\n */\n type: VariantDiscount_Type;\n\n /**\n * Minor units for FIXED; basis points (10000 = 100%) for PERCENTAGE.\n *\n * @generated from field: int32 amount = 2;\n */\n amount: number;\n\n /**\n * Kept at field 3 for wire compatibility with the original discount model.\n *\n * @generated from field: optional google.protobuf.Timestamp end_date = 3;\n */\n endDate?: Timestamp;\n\n /**\n * @generated from field: optional string id = 4;\n */\n id?: string;\n\n /**\n * @generated from field: bool enabled = 5;\n */\n enabled: boolean;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp start_date = 6;\n */\n startDate?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.VariantDiscount.\n * Use `create(VariantDiscountSchema)` to create a new message.\n */\nexport const VariantDiscountSchema: GenMessage<VariantDiscount> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 41);\n\n/**\n * @generated from enum dashboard.product.v1.VariantDiscount.Type\n */\nexport enum VariantDiscount_Type {\n /**\n * @generated from enum value: FIXED = 0;\n */\n FIXED = 0,\n\n /**\n * @generated from enum value: PERCENTAGE = 1;\n */\n PERCENTAGE = 1,\n}\n\n/**\n * Describes the enum dashboard.product.v1.VariantDiscount.Type.\n */\nexport const VariantDiscount_TypeSchema: GenEnum<VariantDiscount_Type> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 41, 0);\n\n/**\n * @generated from message dashboard.product.v1.Variant\n */\nexport type Variant = Message<\"dashboard.product.v1.Variant\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional string image_url = 4;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: int32 price_amount = 5;\n */\n priceAmount: number;\n\n /**\n * @generated from field: string price_currency = 6;\n */\n priceCurrency: string;\n\n /**\n * @generated from field: optional int32 tax = 7;\n */\n tax?: number;\n\n /**\n * @generated from field: optional int32 available_quantity = 8;\n */\n availableQuantity?: number;\n\n /**\n * @generated from field: optional dashboard.product.v1.Recurring recurring = 9;\n */\n recurring?: Recurring;\n\n /**\n * @generated from field: optional bool is_deliverable = 10;\n */\n isDeliverable?: boolean;\n\n /**\n * @generated from field: optional int32 lowest_price_30_days = 11;\n */\n lowestPrice30Days?: number;\n\n /**\n * @generated from field: optional dashboard.product.v1.VariantDiscount discount = 12;\n */\n discount?: VariantDiscount;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp estimated_delivery_at = 13;\n */\n estimatedDeliveryAt?: Timestamp;\n\n /**\n * @generated from field: int32 regular_price_amount = 14;\n */\n regularPriceAmount: number;\n\n /**\n * @generated from field: int32 effective_price_amount = 15;\n */\n effectivePriceAmount: number;\n\n /**\n * @generated from field: optional int32 reference_price_amount = 16;\n */\n referencePriceAmount?: number;\n\n /**\n * @generated from field: bool reference_history_available = 17;\n */\n referenceHistoryAvailable: boolean;\n\n /**\n * @generated from field: int64 price_version = 18;\n */\n priceVersion: bigint;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp next_price_change_at = 19;\n */\n nextPriceChangeAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.Variant.\n * Use `create(VariantSchema)` to create a new message.\n */\nexport const VariantSchema: GenMessage<Variant> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 42);\n\n/**\n * @generated from message dashboard.product.v1.CreateOrUpdateProductResponse\n */\nexport type CreateOrUpdateProductResponse = Message<\"dashboard.product.v1.CreateOrUpdateProductResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.CreateOrUpdateProductResponse.result\n */\n result: {\n /**\n * @generated from field: string product_id = 1;\n */\n value: string;\n case: \"productId\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.CreateOrUpdateProductResponse.\n * Use `create(CreateOrUpdateProductResponseSchema)` to create a new message.\n */\nexport const CreateOrUpdateProductResponseSchema: GenMessage<CreateOrUpdateProductResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 43);\n\n/**\n * @generated from message dashboard.product.v1.BoolResponse\n */\nexport type BoolResponse = Message<\"dashboard.product.v1.BoolResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.BoolResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.BoolResponse.\n * Use `create(BoolResponseSchema)` to create a new message.\n */\nexport const BoolResponseSchema: GenMessage<BoolResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 44);\n\n/**\n * Plain bool result message for non-success/failure RPCs\n *\n * @generated from message dashboard.product.v1.OperationResult\n */\nexport type OperationResult = Message<\"dashboard.product.v1.OperationResult\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.OperationResult.\n * Use `create(OperationResultSchema)` to create a new message.\n */\nexport const OperationResultSchema: GenMessage<OperationResult> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 45);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsRequest\n */\nexport type GetProductsRequest = Message<\"dashboard.product.v1.GetProductsRequest\"> & {\n /**\n * @generated from field: optional string search = 1;\n */\n search?: string;\n\n /**\n * @generated from field: optional string type = 2;\n */\n type?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsRequest.\n * Use `create(GetProductsRequestSchema)` to create a new message.\n */\nexport const GetProductsRequestSchema: GenMessage<GetProductsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 46);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsResponse\n */\nexport type GetProductsResponse = Message<\"dashboard.product.v1.GetProductsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductsResponse.Result success = 1;\n */\n value: GetProductsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsResponse.\n * Use `create(GetProductsResponseSchema)` to create a new message.\n */\nexport const GetProductsResponseSchema: GenMessage<GetProductsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 47);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsResponse.Result\n */\nexport type GetProductsResponse_Result = Message<\"dashboard.product.v1.GetProductsResponse.Result\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsResponse.Result.\n * Use `create(GetProductsResponse_ResultSchema)` to create a new message.\n */\nexport const GetProductsResponse_ResultSchema: GenMessage<GetProductsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 47, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsByIdsRequest\n */\nexport type GetProductsByIdsRequest = Message<\"dashboard.product.v1.GetProductsByIdsRequest\"> & {\n /**\n * @generated from field: repeated string ids = 1;\n */\n ids: string[];\n\n /**\n * @generated from field: optional string currency = 2;\n */\n currency?: string;\n\n /**\n * @generated from field: optional string lang = 3;\n */\n lang?: string;\n\n /**\n * @generated from field: optional bool group_variants = 4;\n */\n groupVariants?: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsByIdsRequest.\n * Use `create(GetProductsByIdsRequestSchema)` to create a new message.\n */\nexport const GetProductsByIdsRequestSchema: GenMessage<GetProductsByIdsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 48);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsByIdsResponse\n */\nexport type GetProductsByIdsResponse = Message<\"dashboard.product.v1.GetProductsByIdsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductsByIdsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductsByIdsResponse.Result success = 1;\n */\n value: GetProductsByIdsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsByIdsResponse.\n * Use `create(GetProductsByIdsResponseSchema)` to create a new message.\n */\nexport const GetProductsByIdsResponseSchema: GenMessage<GetProductsByIdsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 49);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsByIdsResponse.Product\n */\nexport type GetProductsByIdsResponse_Product = Message<\"dashboard.product.v1.GetProductsByIdsResponse.Product\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: int32 price = 3;\n */\n price: number;\n\n /**\n * @generated from field: string currency = 4;\n */\n currency: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsByIdsResponse.Product.\n * Use `create(GetProductsByIdsResponse_ProductSchema)` to create a new message.\n */\nexport const GetProductsByIdsResponse_ProductSchema: GenMessage<GetProductsByIdsResponse_Product> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 49, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsByIdsResponse.Result\n */\nexport type GetProductsByIdsResponse_Result = Message<\"dashboard.product.v1.GetProductsByIdsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.GetProductsByIdsResponse.Product products = 1;\n */\n products: GetProductsByIdsResponse_Product[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsByIdsResponse.Result.\n * Use `create(GetProductsByIdsResponse_ResultSchema)` to create a new message.\n */\nexport const GetProductsByIdsResponse_ResultSchema: GenMessage<GetProductsByIdsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 49, 1);\n\n/**\n * @generated from message dashboard.product.v1.GetProductGridRequest\n */\nexport type GetProductGridRequest = Message<\"dashboard.product.v1.GetProductGridRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: optional string search = 2;\n */\n search?: string;\n\n /**\n * @generated from field: optional string currency = 3;\n */\n currency?: string;\n\n /**\n * @generated from field: optional bool group_variants = 4;\n */\n groupVariants?: boolean;\n\n /**\n * @generated from field: optional int32 offset = 5;\n */\n offset?: number;\n\n /**\n * @generated from field: optional int32 limit = 6;\n */\n limit?: number;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductGridRequest.\n * Use `create(GetProductGridRequestSchema)` to create a new message.\n */\nexport const GetProductGridRequestSchema: GenMessage<GetProductGridRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 50);\n\n/**\n * @generated from message dashboard.product.v1.GetProductGridResponse\n */\nexport type GetProductGridResponse = Message<\"dashboard.product.v1.GetProductGridResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductGridResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductGridResponse.Result success = 1;\n */\n value: GetProductGridResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductGridResponse.\n * Use `create(GetProductGridResponseSchema)` to create a new message.\n */\nexport const GetProductGridResponseSchema: GenMessage<GetProductGridResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 51);\n\n/**\n * @generated from message dashboard.product.v1.GetProductGridResponse.Result\n */\nexport type GetProductGridResponse_Result = Message<\"dashboard.product.v1.GetProductGridResponse.Result\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductGridResponse.Result.\n * Use `create(GetProductGridResponse_ResultSchema)` to create a new message.\n */\nexport const GetProductGridResponse_ResultSchema: GenMessage<GetProductGridResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 51, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetMainPageProductsRequest\n */\nexport type GetMainPageProductsRequest = Message<\"dashboard.product.v1.GetMainPageProductsRequest\"> & {\n /**\n * @generated from field: optional string project_id = 1;\n */\n projectId?: string;\n\n /**\n * @generated from field: optional string search = 2;\n */\n search?: string;\n\n /**\n * @generated from field: optional int32 limit = 3;\n */\n limit?: number;\n\n /**\n * @generated from field: optional int32 offset = 4;\n */\n offset?: number;\n\n /**\n * @generated from field: optional bool include_archived = 5;\n */\n includeArchived?: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetMainPageProductsRequest.\n * Use `create(GetMainPageProductsRequestSchema)` to create a new message.\n */\nexport const GetMainPageProductsRequestSchema: GenMessage<GetMainPageProductsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 52);\n\n/**\n * @generated from message dashboard.product.v1.GetMainPageProductsResponse\n */\nexport type GetMainPageProductsResponse = Message<\"dashboard.product.v1.GetMainPageProductsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetMainPageProductsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetMainPageProductsResponse.Result success = 1;\n */\n value: GetMainPageProductsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetMainPageProductsResponse.\n * Use `create(GetMainPageProductsResponseSchema)` to create a new message.\n */\nexport const GetMainPageProductsResponseSchema: GenMessage<GetMainPageProductsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 53);\n\n/**\n * @generated from message dashboard.product.v1.GetMainPageProductsResponse.Result\n */\nexport type GetMainPageProductsResponse_Result = Message<\"dashboard.product.v1.GetMainPageProductsResponse.Result\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n\n /**\n * @generated from field: optional int32 total_count = 2;\n */\n totalCount?: number;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetMainPageProductsResponse.Result.\n * Use `create(GetMainPageProductsResponse_ResultSchema)` to create a new message.\n */\nexport const GetMainPageProductsResponse_ResultSchema: GenMessage<GetMainPageProductsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 53, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicProductByUniqueSlugRequest\n */\nexport type GetPublicProductByUniqueSlugRequest = Message<\"dashboard.product.v1.GetPublicProductByUniqueSlugRequest\"> & {\n /**\n * @generated from field: string unique_slug = 1;\n */\n uniqueSlug: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicProductByUniqueSlugRequest.\n * Use `create(GetPublicProductByUniqueSlugRequestSchema)` to create a new message.\n */\nexport const GetPublicProductByUniqueSlugRequestSchema: GenMessage<GetPublicProductByUniqueSlugRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 54);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicProductByUniqueSlugResponse\n */\nexport type GetPublicProductByUniqueSlugResponse = Message<\"dashboard.product.v1.GetPublicProductByUniqueSlugResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetPublicProductByUniqueSlugResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetPublicProductByUniqueSlugResponse.Result success = 1;\n */\n value: GetPublicProductByUniqueSlugResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicProductByUniqueSlugResponse.\n * Use `create(GetPublicProductByUniqueSlugResponseSchema)` to create a new message.\n */\nexport const GetPublicProductByUniqueSlugResponseSchema: GenMessage<GetPublicProductByUniqueSlugResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 55);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicProductByUniqueSlugResponse.Result\n */\nexport type GetPublicProductByUniqueSlugResponse_Result = Message<\"dashboard.product.v1.GetPublicProductByUniqueSlugResponse.Result\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n\n /**\n * @generated from field: optional string message = 2;\n */\n message?: string;\n\n /**\n * @generated from field: string project_id = 3;\n */\n projectId: string;\n\n /**\n * @generated from field: string id = 4;\n */\n id: string;\n\n /**\n * @generated from field: string name = 5;\n */\n name: string;\n\n /**\n * @generated from field: optional string short_description = 6;\n */\n shortDescription?: string;\n\n /**\n * @generated from field: optional int32 price_amount = 7;\n */\n priceAmount?: number;\n\n /**\n * @generated from field: optional string price_currency = 8;\n */\n priceCurrency?: string;\n\n /**\n * @generated from field: optional string main_image = 9;\n */\n mainImage?: string;\n\n /**\n * @generated from field: optional string thumbnail_image = 10;\n */\n thumbnailImage?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicProductByUniqueSlugResponse.Result.\n * Use `create(GetPublicProductByUniqueSlugResponse_ResultSchema)` to create a new message.\n */\nexport const GetPublicProductByUniqueSlugResponse_ResultSchema: GenMessage<GetPublicProductByUniqueSlugResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 55, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicAgreementsRequest\n */\nexport type GetPublicAgreementsRequest = Message<\"dashboard.product.v1.GetPublicAgreementsRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated string product_ids = 2;\n */\n productIds: string[];\n\n /**\n * @generated from field: bool contains_recurring = 3;\n */\n containsRecurring: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicAgreementsRequest.\n * Use `create(GetPublicAgreementsRequestSchema)` to create a new message.\n */\nexport const GetPublicAgreementsRequestSchema: GenMessage<GetPublicAgreementsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 56);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicAgreementsResponse\n */\nexport type GetPublicAgreementsResponse = Message<\"dashboard.product.v1.GetPublicAgreementsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetPublicAgreementsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetPublicAgreementsResponse.Result success = 1;\n */\n value: GetPublicAgreementsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicAgreementsResponse.\n * Use `create(GetPublicAgreementsResponseSchema)` to create a new message.\n */\nexport const GetPublicAgreementsResponseSchema: GenMessage<GetPublicAgreementsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 57);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicAgreementsResponse.Agreement\n */\nexport type GetPublicAgreementsResponse_Agreement = Message<\"dashboard.product.v1.GetPublicAgreementsResponse.Agreement\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: bool required = 2;\n */\n required: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicAgreementsResponse.Agreement.\n * Use `create(GetPublicAgreementsResponse_AgreementSchema)` to create a new message.\n */\nexport const GetPublicAgreementsResponse_AgreementSchema: GenMessage<GetPublicAgreementsResponse_Agreement> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 57, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicAgreementsResponse.Result\n */\nexport type GetPublicAgreementsResponse_Result = Message<\"dashboard.product.v1.GetPublicAgreementsResponse.Result\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n\n /**\n * @generated from field: optional string message = 2;\n */\n message?: string;\n\n /**\n * @generated from field: repeated dashboard.product.v1.GetPublicAgreementsResponse.Agreement result = 3;\n */\n result: GetPublicAgreementsResponse_Agreement[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicAgreementsResponse.Result.\n * Use `create(GetPublicAgreementsResponse_ResultSchema)` to create a new message.\n */\nexport const GetPublicAgreementsResponse_ResultSchema: GenMessage<GetPublicAgreementsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 57, 1);\n\n/**\n * @generated from message dashboard.product.v1.GetEProductsAddedForThisProductRequest\n */\nexport type GetEProductsAddedForThisProductRequest = Message<\"dashboard.product.v1.GetEProductsAddedForThisProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetEProductsAddedForThisProductRequest.\n * Use `create(GetEProductsAddedForThisProductRequestSchema)` to create a new message.\n */\nexport const GetEProductsAddedForThisProductRequestSchema: GenMessage<GetEProductsAddedForThisProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 58);\n\n/**\n * @generated from message dashboard.product.v1.GetEProductsAddedForThisProductResponse\n */\nexport type GetEProductsAddedForThisProductResponse = Message<\"dashboard.product.v1.GetEProductsAddedForThisProductResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetEProductsAddedForThisProductResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetEProductsAddedForThisProductResponse.Result success = 1;\n */\n value: GetEProductsAddedForThisProductResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetEProductsAddedForThisProductResponse.\n * Use `create(GetEProductsAddedForThisProductResponseSchema)` to create a new message.\n */\nexport const GetEProductsAddedForThisProductResponseSchema: GenMessage<GetEProductsAddedForThisProductResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 59);\n\n/**\n * @generated from message dashboard.product.v1.GetEProductsAddedForThisProductResponse.Result\n */\nexport type GetEProductsAddedForThisProductResponse_Result = Message<\"dashboard.product.v1.GetEProductsAddedForThisProductResponse.Result\"> & {\n /**\n * @generated from field: repeated string eproduct_ids = 1;\n */\n eproductIds: string[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetEProductsAddedForThisProductResponse.Result.\n * Use `create(GetEProductsAddedForThisProductResponse_ResultSchema)` to create a new message.\n */\nexport const GetEProductsAddedForThisProductResponse_ResultSchema: GenMessage<GetEProductsAddedForThisProductResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 59, 0);\n\n/**\n * @generated from message dashboard.product.v1.UpdateEProductsAddedForThisProductRequest\n */\nexport type UpdateEProductsAddedForThisProductRequest = Message<\"dashboard.product.v1.UpdateEProductsAddedForThisProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: repeated string eproduct_ids = 2;\n */\n eproductIds: string[];\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateEProductsAddedForThisProductRequest.\n * Use `create(UpdateEProductsAddedForThisProductRequestSchema)` to create a new message.\n */\nexport const UpdateEProductsAddedForThisProductRequestSchema: GenMessage<UpdateEProductsAddedForThisProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 60);\n\n/**\n * @generated from message dashboard.product.v1.GetListOfAdditionalAgreementsRequest\n */\nexport type GetListOfAdditionalAgreementsRequest = Message<\"dashboard.product.v1.GetListOfAdditionalAgreementsRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetListOfAdditionalAgreementsRequest.\n * Use `create(GetListOfAdditionalAgreementsRequestSchema)` to create a new message.\n */\nexport const GetListOfAdditionalAgreementsRequestSchema: GenMessage<GetListOfAdditionalAgreementsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 61);\n\n/**\n * @generated from message dashboard.product.v1.AgreementOption\n */\nexport type AgreementOption = Message<\"dashboard.product.v1.AgreementOption\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: bool is_required = 2;\n */\n isRequired: boolean;\n\n /**\n * @generated from field: optional string link = 3;\n */\n link?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.AgreementOption.\n * Use `create(AgreementOptionSchema)` to create a new message.\n */\nexport const AgreementOptionSchema: GenMessage<AgreementOption> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 62);\n\n/**\n * @generated from message dashboard.product.v1.GetListOfAdditionalAgreementsResponse\n */\nexport type GetListOfAdditionalAgreementsResponse = Message<\"dashboard.product.v1.GetListOfAdditionalAgreementsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetListOfAdditionalAgreementsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetListOfAdditionalAgreementsResponse.Result success = 1;\n */\n value: GetListOfAdditionalAgreementsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetListOfAdditionalAgreementsResponse.\n * Use `create(GetListOfAdditionalAgreementsResponseSchema)` to create a new message.\n */\nexport const GetListOfAdditionalAgreementsResponseSchema: GenMessage<GetListOfAdditionalAgreementsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 63);\n\n/**\n * @generated from message dashboard.product.v1.GetListOfAdditionalAgreementsResponse.Result\n */\nexport type GetListOfAdditionalAgreementsResponse_Result = Message<\"dashboard.product.v1.GetListOfAdditionalAgreementsResponse.Result\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n\n /**\n * @generated from field: optional string message = 2;\n */\n message?: string;\n\n /**\n * @generated from field: repeated dashboard.product.v1.AgreementOption result = 3;\n */\n result: AgreementOption[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetListOfAdditionalAgreementsResponse.Result.\n * Use `create(GetListOfAdditionalAgreementsResponse_ResultSchema)` to create a new message.\n */\nexport const GetListOfAdditionalAgreementsResponse_ResultSchema: GenMessage<GetListOfAdditionalAgreementsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 63, 0);\n\n/**\n * @generated from message dashboard.product.v1.UpdateListOfAdditionalAgreementsRequest\n */\nexport type UpdateListOfAdditionalAgreementsRequest = Message<\"dashboard.product.v1.UpdateListOfAdditionalAgreementsRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: repeated dashboard.product.v1.AgreementOption agreements = 2;\n */\n agreements: AgreementOption[];\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateListOfAdditionalAgreementsRequest.\n * Use `create(UpdateListOfAdditionalAgreementsRequestSchema)` to create a new message.\n */\nexport const UpdateListOfAdditionalAgreementsRequestSchema: GenMessage<UpdateListOfAdditionalAgreementsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 64);\n\n/**\n * @generated from message dashboard.product.v1.CreateProductRequest\n */\nexport type CreateProductRequest = Message<\"dashboard.product.v1.CreateProductRequest\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.CreateProductRequest.\n * Use `create(CreateProductRequestSchema)` to create a new message.\n */\nexport const CreateProductRequestSchema: GenMessage<CreateProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 65);\n\n/**\n * @generated from message dashboard.product.v1.DeleteProductRequest\n */\nexport type DeleteProductRequest = Message<\"dashboard.product.v1.DeleteProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.DeleteProductRequest.\n * Use `create(DeleteProductRequestSchema)` to create a new message.\n */\nexport const DeleteProductRequestSchema: GenMessage<DeleteProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 66);\n\n/**\n * @generated from message dashboard.product.v1.GetProductByIdRequest\n */\nexport type GetProductByIdRequest = Message<\"dashboard.product.v1.GetProductByIdRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string id = 2;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductByIdRequest.\n * Use `create(GetProductByIdRequestSchema)` to create a new message.\n */\nexport const GetProductByIdRequestSchema: GenMessage<GetProductByIdRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 67);\n\n/**\n * @generated from enum dashboard.product.v1.BillingPeriod\n */\nexport enum BillingPeriod {\n /**\n * @generated from enum value: BILLING_PERIOD_DAILY = 0;\n */\n DAILY = 0,\n\n /**\n * @generated from enum value: BILLING_PERIOD_WEEKLY = 1;\n */\n WEEKLY = 1,\n\n /**\n * @generated from enum value: BILLING_PERIOD_MONTHLY = 2;\n */\n MONTHLY = 2,\n\n /**\n * @generated from enum value: BILLING_PERIOD_QUARTERLY = 3;\n */\n QUARTERLY = 3,\n\n /**\n * @generated from enum value: BILLING_PERIOD_SEMI_ANNUALLY = 4;\n */\n SEMI_ANNUALLY = 4,\n\n /**\n * @generated from enum value: BILLING_PERIOD_ANNUALLY = 5;\n */\n ANNUALLY = 5,\n}\n\n/**\n * Describes the enum dashboard.product.v1.BillingPeriod.\n */\nexport const BillingPeriodSchema: GenEnum<BillingPeriod> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 0);\n\n/**\n * @generated from enum dashboard.product.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PRODUCT_NOT_FOUND = 2;\n */\n PRODUCT_NOT_FOUND = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INVALID_PRODUCT_ID = 3;\n */\n INVALID_PRODUCT_ID = 3,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_SLUG_ALREADY_TAKEN = 4;\n */\n SLUG_ALREADY_TAKEN = 4,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CANNOT_CREATE_PRODUCT = 5;\n */\n CANNOT_CREATE_PRODUCT = 5,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NO_ACCESS = 6;\n */\n NO_ACCESS = 6,\n}\n\n/**\n * Describes the enum dashboard.product.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 1);\n\n/**\n * @generated from service dashboard.product.v1.ProductRouter\n */\nexport const ProductRouter: GenService<{\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.CreateOrUpdateProduct\n */\n createOrUpdateProduct: {\n methodKind: \"unary\";\n input: typeof CreateOrUpdateProductRequestSchema;\n output: typeof CreateOrUpdateProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.DuplicateProduct\n */\n duplicateProduct: {\n methodKind: \"unary\";\n input: typeof DuplicateProductRequestSchema;\n output: typeof DuplicateProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductUniqueSlug\n */\n updateProductUniqueSlug: {\n methodKind: \"unary\";\n input: typeof UpdateProductUniqueSlugRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProduct\n */\n getProduct: {\n methodKind: \"unary\";\n input: typeof GetProductRequestSchema;\n output: typeof GetProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductSendTicketAfterPurchase\n */\n getProductSendTicketAfterPurchase: {\n methodKind: \"unary\";\n input: typeof GetProductSendTicketAfterPurchaseRequestSchema;\n output: typeof GetProductSendTicketAfterPurchaseResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductAudiobookAfterPurchase\n */\n getProductAudiobookAfterPurchase: {\n methodKind: \"unary\";\n input: typeof GetProductAudiobookAfterPurchaseRequestSchema;\n output: typeof GetProductAudiobookAfterPurchaseResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductSendTicketAfterPurchase\n */\n updateProductSendTicketAfterPurchase: {\n methodKind: \"unary\";\n input: typeof UpdateProductSendTicketAfterPurchaseRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductAudiobookAfterPurchase\n */\n updateProductAudiobookAfterPurchase: {\n methodKind: \"unary\";\n input: typeof UpdateProductAudiobookAfterPurchaseRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.PublishProductIfNeeded\n */\n publishProductIfNeeded: {\n methodKind: \"unary\";\n input: typeof PublishProductIfNeededRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductAfterPurchaseMessage\n */\n getProductAfterPurchaseMessage: {\n methodKind: \"unary\";\n input: typeof GetProductAfterPurchaseMessageRequestSchema;\n output: typeof GetProductAfterPurchaseMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductAfterPurchaseMessage\n */\n updateProductAfterPurchaseMessage: {\n methodKind: \"unary\";\n input: typeof UpdateProductAfterPurchaseMessageRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductVariants\n */\n getProductVariants: {\n methodKind: \"unary\";\n input: typeof GetProductVariantsRequestSchema;\n output: typeof GetProductVariantsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.SendTestEmailWithMessage\n */\n sendTestEmailWithMessage: {\n methodKind: \"unary\";\n input: typeof SendTestEmailWithMessageRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.SearchProducts\n */\n searchProducts: {\n methodKind: \"unary\";\n input: typeof SearchProductsRequestSchema;\n output: typeof SearchProductsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.ExchangeProductIDsToNames\n */\n exchangeProductIDsToNames: {\n methodKind: \"unary\";\n input: typeof ExchangeProductIDsToNamesRequestSchema;\n output: typeof ExchangeProductIDsToNamesResponseSchema;\n },\n /**\n * After product buy methods\n *\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductBoughtArticles\n */\n getProductBoughtArticles: {\n methodKind: \"unary\";\n input: typeof GetProductBoughtArticlesRequestSchema;\n output: typeof GetProductBoughtArticlesResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductBoughtArticle\n */\n updateProductBoughtArticle: {\n methodKind: \"unary\";\n input: typeof UpdateProductBoughtArticleRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.AddProductBoughtArticle\n */\n addProductBoughtArticle: {\n methodKind: \"unary\";\n input: typeof ProductBoughtArticleSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetFileAccessMembers\n */\n getFileAccessMembers: {\n methodKind: \"unary\";\n input: typeof GetFileAccessMembersRequestSchema;\n output: typeof GetFileAccessMembersResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GiveAccessToFile\n */\n giveAccessToFile: {\n methodKind: \"unary\";\n input: typeof GiveAccessToFileRequestSchema;\n output: typeof GiveAccessToFileResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.RemoveAccessToFile\n */\n removeAccessToFile: {\n methodKind: \"unary\";\n input: typeof RemoveAccessToFileRequestSchema;\n output: typeof RemoveAccessToFileResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.ArchiveProduct\n */\n archiveProduct: {\n methodKind: \"unary\";\n input: typeof ArchiveProductRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UnarchiveProduct\n */\n unarchiveProduct: {\n methodKind: \"unary\";\n input: typeof ArchiveProductRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * Dashboard product procedures (ported from tRPC)\n *\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProducts\n */\n getProducts: {\n methodKind: \"unary\";\n input: typeof GetProductsRequestSchema;\n output: typeof GetProductsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductsByIds\n */\n getProductsByIds: {\n methodKind: \"unary\";\n input: typeof GetProductsByIdsRequestSchema;\n output: typeof GetProductsByIdsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductGrid\n */\n getProductGrid: {\n methodKind: \"unary\";\n input: typeof GetProductGridRequestSchema;\n output: typeof GetProductGridResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetMainPageProducts\n */\n getMainPageProducts: {\n methodKind: \"unary\";\n input: typeof GetMainPageProductsRequestSchema;\n output: typeof GetMainPageProductsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetPublicProductByUniqueSlug\n */\n getPublicProductByUniqueSlug: {\n methodKind: \"unary\";\n input: typeof GetPublicProductByUniqueSlugRequestSchema;\n output: typeof GetPublicProductByUniqueSlugResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetPublicAgreements\n */\n getPublicAgreements: {\n methodKind: \"unary\";\n input: typeof GetPublicAgreementsRequestSchema;\n output: typeof GetPublicAgreementsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetEProductsAddedForThisProduct\n */\n getEProductsAddedForThisProduct: {\n methodKind: \"unary\";\n input: typeof GetEProductsAddedForThisProductRequestSchema;\n output: typeof GetEProductsAddedForThisProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateEProductsAddedForThisProduct\n */\n updateEProductsAddedForThisProduct: {\n methodKind: \"unary\";\n input: typeof UpdateEProductsAddedForThisProductRequestSchema;\n output: typeof OperationResultSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetListOfAdditionalAgreements\n */\n getListOfAdditionalAgreements: {\n methodKind: \"unary\";\n input: typeof GetListOfAdditionalAgreementsRequestSchema;\n output: typeof GetListOfAdditionalAgreementsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateListOfAdditionalAgreements\n */\n updateListOfAdditionalAgreements: {\n methodKind: \"unary\";\n input: typeof UpdateListOfAdditionalAgreementsRequestSchema;\n output: typeof OperationResultSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.CreateProduct\n */\n createProduct: {\n methodKind: \"unary\";\n input: typeof CreateProductRequestSchema;\n output: typeof OperationResultSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.DeleteProduct\n */\n deleteProduct: {\n methodKind: \"unary\";\n input: typeof DeleteProductRequestSchema;\n output: typeof OperationResultSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductById\n */\n getProductById: {\n methodKind: \"unary\";\n input: typeof GetProductByIdRequestSchema;\n output: typeof GetProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetGuestCatalogSettings\n */\n getGuestCatalogSettings: {\n methodKind: \"unary\";\n input: typeof GetGuestCatalogSettingsRequestSchema;\n output: typeof GetGuestCatalogSettingsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.SetGuestCatalogEntry\n */\n setGuestCatalogEntry: {\n methodKind: \"unary\";\n input: typeof SetGuestCatalogEntryRequestSchema;\n output: typeof GetGuestCatalogSettingsResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_dashboard_v1_product, 0);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file common/v1/push_notifications.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file common/v1/push_notifications.proto.\n */\nexport const file_common_v1_push_notifications: GenFile = /*@__PURE__*/\n fileDesc(\"CiJjb21tb24vdjEvcHVzaF9ub3RpZmljYXRpb25zLnByb3RvEgljb21tb24udjEi9gEKG1B1c2hOb3RpZmljYXRpb25EZXZpY2VUb2tlbhIXCgpwdXNoX3Rva2VuGAIgASgJSACIAQESNAoLZXhwaXJlX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAGIAQESEwoGcDI1NmRoGAQgASgJSAKIAQESFQoIZW5kcG9pbnQYBSABKAlIA4gBARIlCghwbGF0Zm9ybRgGIAEoDjITLmNvbW1vbi52MS5QbGF0Zm9ybUINCgtfcHVzaF90b2tlbkIOCgxfZXhwaXJlX3RpbWVCCQoHX3AyNTZkaEILCglfZW5kcG9pbnQi0AEKF1B1c2hOb3RpZmljYXRpb25QYXlsb2FkEg0KBXRpdGxlGAIgASgJEhUKCG9wZW5fdXJsGAMgASgJSAGIAQESDgoEYm9keRgEIAEoCUgAEjoKBGRhdGEYBSADKAsyLC5jb21tb24udjEuUHVzaE5vdGlmaWNhdGlvblBheWxvYWQuRGF0YUVudHJ5GisKCURhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBQgkKB21lc3NhZ2VCCwoJX29wZW5fdXJsKngKCFBsYXRmb3JtEhgKFFBMQVRGT1JNX1VOU1BFQ0lGSUVEEAASEAoMUExBVEZPUk1fV0VCEAESGAoUUExBVEZPUk1fSU9TX1NBTkRCT1gQAhIQCgxQTEFURk9STV9JT1MQAxIUChBQTEFURk9STV9BTkRST0lEEAQqdAoRTm90aWZpY2F0aW9uRXZlbnQSEQoNRVZFTlRfVU5LTk9XThAAEhIKDkVWRU5UX1JFQ0VJVkVEEAESEAoMRVZFTlRfT1BFTkVEEAISEQoNRVZFTlRfQ0xJQ0tFRBADEhMKD0VWRU5UX0RJU01JU1NFRBAEKpkBChlOb3RpZmljYXRpb25Hcm91cEhvd09mdGVuEicKI05PVElGSUNBVElPTl9HUk9VUF9IT1dfT0ZURU5fUkFSRUxZEAASJgoiTk9USUZJQ0FUSU9OX0dST1VQX0hPV19PRlRFTl9PRlRFThABEisKJ05PVElGSUNBVElPTl9HUk9VUF9IT1dfT0ZURU5fVkVSWV9PRlRFThACQk5aTGdpdGh1Yi5jb20vZW1tZW1zL3N1cGVyLWNhcnQvYXBwcy9zcnYtd29ya2VyL3V0aWxzL21vZGVscy9jb21tb24vdjE7Y29tbW9udjFiBnByb3RvMw\", [file_google_protobuf_timestamp]);\n\n/**\n * @generated from message common.v1.PushNotificationDeviceToken\n */\nexport type PushNotificationDeviceToken = Message<\"common.v1.PushNotificationDeviceToken\"> & {\n /**\n * @generated from field: optional string push_token = 2;\n */\n pushToken?: string;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp expire_time = 3;\n */\n expireTime?: Timestamp;\n\n /**\n * @generated from field: optional string p256dh = 4;\n */\n p256dh?: string;\n\n /**\n * @generated from field: optional string endpoint = 5;\n */\n endpoint?: string;\n\n /**\n * @generated from field: common.v1.Platform platform = 6;\n */\n platform: Platform;\n};\n\n/**\n * Describes the message common.v1.PushNotificationDeviceToken.\n * Use `create(PushNotificationDeviceTokenSchema)` to create a new message.\n */\nexport const PushNotificationDeviceTokenSchema: GenMessage<PushNotificationDeviceToken> = /*@__PURE__*/\n messageDesc(file_common_v1_push_notifications, 0);\n\n/**\n * @generated from message common.v1.PushNotificationPayload\n */\nexport type PushNotificationPayload = Message<\"common.v1.PushNotificationPayload\"> & {\n /**\n * @generated from field: string title = 2;\n */\n title: string;\n\n /**\n * @generated from field: optional string open_url = 3;\n */\n openUrl?: string;\n\n /**\n * @generated from oneof common.v1.PushNotificationPayload.message\n */\n message: {\n /**\n * @generated from field: string body = 4;\n */\n value: string;\n case: \"body\";\n } | { case: undefined; value?: undefined };\n\n /**\n * @generated from field: map<string, string> data = 5;\n */\n data: { [key: string]: string };\n};\n\n/**\n * Describes the message common.v1.PushNotificationPayload.\n * Use `create(PushNotificationPayloadSchema)` to create a new message.\n */\nexport const PushNotificationPayloadSchema: GenMessage<PushNotificationPayload> = /*@__PURE__*/\n messageDesc(file_common_v1_push_notifications, 1);\n\n/**\n * @generated from enum common.v1.Platform\n */\nexport enum Platform {\n /**\n * @generated from enum value: PLATFORM_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: PLATFORM_WEB = 1;\n */\n WEB = 1,\n\n /**\n * @generated from enum value: PLATFORM_IOS_SANDBOX = 2;\n */\n IOS_SANDBOX = 2,\n\n /**\n * @generated from enum value: PLATFORM_IOS = 3;\n */\n IOS = 3,\n\n /**\n * @generated from enum value: PLATFORM_ANDROID = 4;\n */\n ANDROID = 4,\n}\n\n/**\n * Describes the enum common.v1.Platform.\n */\nexport const PlatformSchema: GenEnum<Platform> = /*@__PURE__*/\n enumDesc(file_common_v1_push_notifications, 0);\n\n/**\n * @generated from enum common.v1.NotificationEvent\n */\nexport enum NotificationEvent {\n /**\n * @generated from enum value: EVENT_UNKNOWN = 0;\n */\n EVENT_UNKNOWN = 0,\n\n /**\n * @generated from enum value: EVENT_RECEIVED = 1;\n */\n EVENT_RECEIVED = 1,\n\n /**\n * @generated from enum value: EVENT_OPENED = 2;\n */\n EVENT_OPENED = 2,\n\n /**\n * @generated from enum value: EVENT_CLICKED = 3;\n */\n EVENT_CLICKED = 3,\n\n /**\n * @generated from enum value: EVENT_DISMISSED = 4;\n */\n EVENT_DISMISSED = 4,\n}\n\n/**\n * Describes the enum common.v1.NotificationEvent.\n */\nexport const NotificationEventSchema: GenEnum<NotificationEvent> = /*@__PURE__*/\n enumDesc(file_common_v1_push_notifications, 1);\n\n/**\n * @generated from enum common.v1.NotificationGroupHowOften\n */\nexport enum NotificationGroupHowOften {\n /**\n * @generated from enum value: NOTIFICATION_GROUP_HOW_OFTEN_RARELY = 0;\n */\n RARELY = 0,\n\n /**\n * @generated from enum value: NOTIFICATION_GROUP_HOW_OFTEN_OFTEN = 1;\n */\n OFTEN = 1,\n\n /**\n * @generated from enum value: NOTIFICATION_GROUP_HOW_OFTEN_VERY_OFTEN = 2;\n */\n VERY_OFTEN = 2,\n}\n\n/**\n * Describes the enum common.v1.NotificationGroupHowOften.\n */\nexport const NotificationGroupHowOftenSchema: GenEnum<NotificationGroupHowOften> = /*@__PURE__*/\n enumDesc(file_common_v1_push_notifications, 2);\n\n","// @generated by protoc-gen-connect-query v2.2.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file public/v1/public_api.proto (package public_api.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport { PublicApiService } from \"./public_api_pb\";\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetOrder\n */\nexport const getOrder = PublicApiService.method.getOrder;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetOrders\n */\nexport const getOrders = PublicApiService.method.getOrders;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetOrderRetryUrl\n */\nexport const getOrderRetryUrl = PublicApiService.method.getOrderRetryUrl;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogin\n */\nexport const userPanelLogin = PublicApiService.method.userPanelLogin;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLoginWithCode\n */\nexport const userPanelLoginWithCode = PublicApiService.method.userPanelLoginWithCode;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogout\n */\nexport const userPanelLogout = PublicApiService.method.userPanelLogout;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelDeleteAccount\n */\nexport const userPanelDeleteAccount = PublicApiService.method.userPanelDeleteAccount;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetProducts\n */\nexport const userPanelGetProducts = PublicApiService.method.userPanelGetProducts;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetails\n */\nexport const userPanelGetAudiobookDetails = PublicApiService.method.userPanelGetAudiobookDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetailsDownloadURLs\n */\nexport const userPanelGetAudiobookDetailsDownloadURLs = PublicApiService.method.userPanelGetAudiobookDetailsDownloadURLs;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetFileDetails\n */\nexport const userPanelGetFileDetails = PublicApiService.method.userPanelGetFileDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetTicketDetails\n */\nexport const userPanelGetTicketDetails = PublicApiService.method.userPanelGetTicketDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetCourseDetails\n */\nexport const userPanelGetCourseDetails = PublicApiService.method.userPanelGetCourseDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.PushSendDeviceToken\n */\nexport const pushSendDeviceToken = PublicApiService.method.pushSendDeviceToken;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.PushEvent\n */\nexport const pushEvent = PublicApiService.method.pushEvent;\n\n/**\n * iOS SHOP methods\n *\n * @generated from rpc public_api.v1.PublicApiService.ShouldShopProducts\n */\nexport const shouldShopProducts = PublicApiService.method.shouldShopProducts;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.ShouldShowGuestCatalog\n */\nexport const shouldShowGuestCatalog = PublicApiService.method.shouldShowGuestCatalog;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetGuestCatalog\n */\nexport const getGuestCatalog = PublicApiService.method.getGuestCatalog;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelResolveProductAccess\n */\nexport const userPanelResolveProductAccess = PublicApiService.method.userPanelResolveProductAccess;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetShopProducts\n */\nexport const getShopProducts = PublicApiService.method.getShopProducts;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.DidBuyProduct\n */\nexport const didBuyProduct = PublicApiService.method.didBuyProduct;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetAppStoreAccountToken\n */\nexport const getAppStoreAccountToken = PublicApiService.method.getAppStoreAccountToken;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.VerifyAppStorePurchase\n */\nexport const verifyAppStorePurchase = PublicApiService.method.verifyAppStorePurchase;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetAppStoreEntitlements\n */\nexport const getAppStoreEntitlements = PublicApiService.method.getAppStoreEntitlements;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.RestoreAppStorePurchases\n */\nexport const restoreAppStorePurchases = PublicApiService.method.restoreAppStorePurchases;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.ClearAppStoreAccountToken\n */\nexport const clearAppStoreAccountToken = PublicApiService.method.clearAppStoreAccountToken;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetStoreKitCatalog\n */\nexport const getStoreKitCatalog = PublicApiService.method.getStoreKitCatalog;\n\n/**\n * Notification settings\n *\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettings\n */\nexport const getNotificationSettings = PublicApiService.method.getNotificationSettings;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettingsDetails\n */\nexport const getNotificationSettingsDetails = PublicApiService.method.getNotificationSettingsDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UpdateGlobalNotificationSettings\n */\nexport const updateGlobalNotificationSettings = PublicApiService.method.updateGlobalNotificationSettings;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UpdateNotificationSettings\n */\nexport const updateNotificationSettings = PublicApiService.method.updateNotificationSettings;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationHistory\n */\nexport const getNotificationHistory = PublicApiService.method.getNotificationHistory;\n\n/**\n * Product V2 requests\n *\n * @generated from rpc public_api.v1.PublicApiService.GetAvailableCountForProduct\n */\nexport const getAvailableCountForProduct = PublicApiService.method.getAvailableCountForProduct;\n\n/**\n * Checkout requests\n *\n * @generated from rpc public_api.v1.PublicApiService.IsOneClickPaymentAvailable\n */\nexport const isOneClickPaymentAvailable = PublicApiService.method.isOneClickPaymentAvailable;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetPreOrderDetails\n */\nexport const getPreOrderDetails = PublicApiService.method.getPreOrderDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.ApplePayValidateMerchant\n */\nexport const applePayValidateMerchant = PublicApiService.method.applePayValidateMerchant;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.AuthorizeOneClickPayment\n */\nexport const authorizeOneClickPayment = PublicApiService.method.authorizeOneClickPayment;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.NotifyUserAboutProductAvailability\n */\nexport const notifyUserAboutProductAvailability = PublicApiService.method.notifyUserAboutProductAvailability;\n\n/**\n * Public order details (with obfuscation)\n *\n * @generated from rpc public_api.v1.PublicApiService.GetPublicOrderDetails\n */\nexport const getPublicOrderDetails = PublicApiService.method.getPublicOrderDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.AddPublicOrderComment\n */\nexport const addPublicOrderComment = PublicApiService.method.addPublicOrderComment;\n\n/**\n * Testimonials\n *\n * @generated from rpc public_api.v1.PublicApiService.GetOrderForTestimonial\n */\nexport const getOrderForTestimonial = PublicApiService.method.getOrderForTestimonial;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.SubmitTestimonial\n */\nexport const submitTestimonial = PublicApiService.method.submitTestimonial;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetTestimonialUploadUrl\n */\nexport const getTestimonialUploadUrl = PublicApiService.method.getTestimonialUploadUrl;\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file public/v1/public_api.proto (package public_api.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Address, BillingAddress } from \"../../common/v1/address_pb\";\nimport { file_common_v1_address } from \"../../common/v1/address_pb\";\nimport type { Gateway } from \"../../common/v1/gateway_pb\";\nimport { file_common_v1_gateway } from \"../../common/v1/gateway_pb\";\nimport type { NotificationEvent, NotificationGroupHowOften, PushNotificationDeviceToken } from \"../../common/v1/push_notifications_pb\";\nimport { file_common_v1_push_notifications } from \"../../common/v1/push_notifications_pb\";\nimport type { Audiobook as Audiobook$1 } from \"../../dashboard/v1/audiobooks_pb\";\nimport { file_dashboard_v1_audiobooks } from \"../../dashboard/v1/audiobooks_pb\";\nimport type { Empty, EmptySchema, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file public/v1/public_api.proto.\n */\nexport const file_public_v1_public_api: GenFile = /*@__PURE__*/\n fileDesc(\"ChpwdWJsaWMvdjEvcHVibGljX2FwaS5wcm90bxINcHVibGljX2FwaS52MSI2Ch5HZXRBcHBTdG9yZUFjY291bnRUb2tlblJlcXVlc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2R1Y3RBdmFpbGFiaWxpdHkSOC5wdWJsaWNfYXBpLnYxLk5vdGlmeVVzZXJBYm91dFByb2R1Y3RBdmFpbGFiaWxpdHlSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5EnIKFUdldFB1YmxpY09yZGVyRGV0YWlscxIrLnB1YmxpY19hcGkudjEuR2V0UHVibGljT3JkZXJEZXRhaWxzUmVxdWVzdBosLnB1YmxpY19hcGkudjEuR2V0UHVibGljT3JkZXJEZXRhaWxzUmVzcG9uc2UScgoVQWRkUHVibGljT3JkZXJDb21tZW50EisucHVibGljX2FwaS52MS5BZGRQdWJsaWNPcmRlckNvbW1lbnRSZXF1ZXN0GiwucHVibGljX2FwaS52MS5BZGRQdWJsaWNPcmRlckNvbW1lbnRSZXNwb25zZRJ1ChZHZXRPcmRlckZvclRlc3RpbW9uaWFsEiwucHVibGljX2FwaS52MS5HZXRPcmRlckZvclRlc3RpbW9uaWFsUmVxdWVzdBotLnB1YmxpY19hcGkudjEuR2V0T3JkZXJGb3JUZXN0aW1vbmlhbFJlc3BvbnNlEmYKEVN1Ym1pdFRlc3RpbW9uaWFsEicucHVibGljX2FwaS52MS5TdWJtaXRUZXN0aW1vbmlhbFJlcXVlc3QaKC5wdWJsaWNfYXBpLnYxLlN1Ym1pdFRlc3RpbW9uaWFsUmVzcG9uc2USeAoXR2V0VGVzdGltb25pYWxVcGxvYWRVcmwSLS5wdWJsaWNfYXBpLnYxLkdldFRlc3RpbW9uaWFsVXBsb2FkVXJsUmVxdWVzdBouLnB1YmxpY19hcGkudjEuR2V0VGVzdGltb25pYWxVcGxvYWRVcmxSZXNwb25zZWIGcHJvdG8z\", [file_common_v1_address, file_common_v1_gateway, file_common_v1_push_notifications, file_dashboard_v1_audiobooks, file_google_protobuf_empty, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message public_api.v1.GetAppStoreAccountTokenRequest\n */\nexport type GetAppStoreAccountTokenRequest = Message<\"public_api.v1.GetAppStoreAccountTokenRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.GetAppStoreAccountTokenRequest.\n * Use `create(GetAppStoreAccountTokenRequestSchema)` to create a new message.\n */\nexport const GetAppStoreAccountTokenRequestSchema: GenMessage<GetAppStoreAccountTokenRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 0);\n\n/**\n * @generated from message public_api.v1.GetAppStoreAccountTokenResponse\n */\nexport type GetAppStoreAccountTokenResponse = Message<\"public_api.v1.GetAppStoreAccountTokenResponse\"> & {\n /**\n * @generated from field: string app_account_token = 1;\n */\n appAccountToken: string;\n};\n\n/**\n * Describes the message public_api.v1.GetAppStoreAccountTokenResponse.\n * Use `create(GetAppStoreAccountTokenResponseSchema)` to create a new message.\n */\nexport const GetAppStoreAccountTokenResponseSchema: GenMessage<GetAppStoreAccountTokenResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 1);\n\n/**\n * @generated from message public_api.v1.VerifyAppStorePurchaseRequest\n */\nexport type VerifyAppStorePurchaseRequest = Message<\"public_api.v1.VerifyAppStorePurchaseRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string signed_transaction = 2;\n */\n signedTransaction: string;\n\n /**\n * @generated from field: string transaction_id = 3;\n */\n transactionId: string;\n};\n\n/**\n * Describes the message public_api.v1.VerifyAppStorePurchaseRequest.\n * Use `create(VerifyAppStorePurchaseRequestSchema)` to create a new message.\n */\nexport const VerifyAppStorePurchaseRequestSchema: GenMessage<VerifyAppStorePurchaseRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 2);\n\n/**\n * @generated from message public_api.v1.VerifyAppStorePurchaseResponse\n */\nexport type VerifyAppStorePurchaseResponse = Message<\"public_api.v1.VerifyAppStorePurchaseResponse\"> & {\n /**\n * @generated from field: bool fulfilled = 1;\n */\n fulfilled: boolean;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: string environment = 3;\n */\n environment: string;\n};\n\n/**\n * Describes the message public_api.v1.VerifyAppStorePurchaseResponse.\n * Use `create(VerifyAppStorePurchaseResponseSchema)` to create a new message.\n */\nexport const VerifyAppStorePurchaseResponseSchema: GenMessage<VerifyAppStorePurchaseResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 3);\n\n/**\n * @generated from message public_api.v1.GetAppStoreEntitlementsRequest\n */\nexport type GetAppStoreEntitlementsRequest = Message<\"public_api.v1.GetAppStoreEntitlementsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.GetAppStoreEntitlementsRequest.\n * Use `create(GetAppStoreEntitlementsRequestSchema)` to create a new message.\n */\nexport const GetAppStoreEntitlementsRequestSchema: GenMessage<GetAppStoreEntitlementsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 4);\n\n/**\n * @generated from message public_api.v1.GetAppStoreEntitlementsResponse\n */\nexport type GetAppStoreEntitlementsResponse = Message<\"public_api.v1.GetAppStoreEntitlementsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetAppStoreEntitlementsResponse.Entitlement entitlements = 1;\n */\n entitlements: GetAppStoreEntitlementsResponse_Entitlement[];\n};\n\n/**\n * Describes the message public_api.v1.GetAppStoreEntitlementsResponse.\n * Use `create(GetAppStoreEntitlementsResponseSchema)` to create a new message.\n */\nexport const GetAppStoreEntitlementsResponseSchema: GenMessage<GetAppStoreEntitlementsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 5);\n\n/**\n * @generated from message public_api.v1.GetAppStoreEntitlementsResponse.Entitlement\n */\nexport type GetAppStoreEntitlementsResponse_Entitlement = Message<\"public_api.v1.GetAppStoreEntitlementsResponse.Entitlement\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string status = 2;\n */\n status: string;\n\n /**\n * @generated from field: string environment = 3;\n */\n environment: string;\n\n /**\n * @generated from field: string fulfillment_status = 4;\n */\n fulfillmentStatus: string;\n\n /**\n * @generated from field: string original_transaction_id = 5;\n */\n originalTransactionId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetAppStoreEntitlementsResponse.Entitlement.\n * Use `create(GetAppStoreEntitlementsResponse_EntitlementSchema)` to create a new message.\n */\nexport const GetAppStoreEntitlementsResponse_EntitlementSchema: GenMessage<GetAppStoreEntitlementsResponse_Entitlement> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 5, 0);\n\n/**\n * @generated from message public_api.v1.RestoreAppStorePurchasesRequest\n */\nexport type RestoreAppStorePurchasesRequest = Message<\"public_api.v1.RestoreAppStorePurchasesRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * JWS strings from expo-iap getAvailablePurchases. Each entry is verified on\n * the backend, matched against the customer's account token, and used to\n * refresh entitlements. Duplicate or empty JWS strings are skipped.\n *\n * @generated from field: repeated string signed_transactions = 2;\n */\n signedTransactions: string[];\n};\n\n/**\n * Describes the message public_api.v1.RestoreAppStorePurchasesRequest.\n * Use `create(RestoreAppStorePurchasesRequestSchema)` to create a new message.\n */\nexport const RestoreAppStorePurchasesRequestSchema: GenMessage<RestoreAppStorePurchasesRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 6);\n\n/**\n * @generated from message public_api.v1.RestoreAppStorePurchasesResponse\n */\nexport type RestoreAppStorePurchasesResponse = Message<\"public_api.v1.RestoreAppStorePurchasesResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.RestoreAppStorePurchasesResponse.RestoredProduct products = 1;\n */\n products: RestoreAppStorePurchasesResponse_RestoredProduct[];\n\n /**\n * True when at least one transaction came back as family-shared. The\n * customer's existing library is preserved; an ops review row is recorded.\n *\n * @generated from field: bool family_sharing_review_required = 2;\n */\n familySharingReviewRequired: boolean;\n};\n\n/**\n * Describes the message public_api.v1.RestoreAppStorePurchasesResponse.\n * Use `create(RestoreAppStorePurchasesResponseSchema)` to create a new message.\n */\nexport const RestoreAppStorePurchasesResponseSchema: GenMessage<RestoreAppStorePurchasesResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 7);\n\n/**\n * @generated from message public_api.v1.RestoreAppStorePurchasesResponse.RestoredProduct\n */\nexport type RestoreAppStorePurchasesResponse_RestoredProduct = Message<\"public_api.v1.RestoreAppStorePurchasesResponse.RestoredProduct\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string original_transaction_id = 2;\n */\n originalTransactionId: string;\n\n /**\n * \"active\" | \"revoked\" | \"skipped\" | \"rejected\"\n *\n * @generated from field: string status = 3;\n */\n status: string;\n\n /**\n * Populated when status is \"rejected\" or \"skipped\" so the caller can show\n * actionable UI (signature mismatch, family-shared ownership, owner\n * mismatch, duplicate empty JWS, etc).\n *\n * @generated from field: string reason = 4;\n */\n reason: string;\n\n /**\n * @generated from field: bool fulfilled = 5;\n */\n fulfilled: boolean;\n};\n\n/**\n * Describes the message public_api.v1.RestoreAppStorePurchasesResponse.RestoredProduct.\n * Use `create(RestoreAppStorePurchasesResponse_RestoredProductSchema)` to create a new message.\n */\nexport const RestoreAppStorePurchasesResponse_RestoredProductSchema: GenMessage<RestoreAppStorePurchasesResponse_RestoredProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 7, 0);\n\n/**\n * @generated from message public_api.v1.ClearAppStoreAccountTokenRequest\n */\nexport type ClearAppStoreAccountTokenRequest = Message<\"public_api.v1.ClearAppStoreAccountTokenRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.ClearAppStoreAccountTokenRequest.\n * Use `create(ClearAppStoreAccountTokenRequestSchema)` to create a new message.\n */\nexport const ClearAppStoreAccountTokenRequestSchema: GenMessage<ClearAppStoreAccountTokenRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 8);\n\n/**\n * @generated from message public_api.v1.GetStoreKitCatalogRequest\n */\nexport type GetStoreKitCatalogRequest = Message<\"public_api.v1.GetStoreKitCatalogRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.GetStoreKitCatalogRequest.\n * Use `create(GetStoreKitCatalogRequestSchema)` to create a new message.\n */\nexport const GetStoreKitCatalogRequestSchema: GenMessage<GetStoreKitCatalogRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 9);\n\n/**\n * @generated from message public_api.v1.GetStoreKitCatalogResponse\n */\nexport type GetStoreKitCatalogResponse = Message<\"public_api.v1.GetStoreKitCatalogResponse\"> & {\n /**\n * Mirrors the DIRECT_STOREKIT_PAYWALL_ENABLED flag so the mobile client can\n * decide whether to surface the direct StoreKit paywall or fall back to\n * RevenueCat. The catalog itself is gated by DIRECT_STOREKIT_ENABLED at\n * the route level.\n *\n * @generated from field: bool paywall_enabled = 1;\n */\n paywallEnabled: boolean;\n\n /**\n * @generated from field: repeated public_api.v1.GetStoreKitCatalogResponse.Product products = 2;\n */\n products: GetStoreKitCatalogResponse_Product[];\n};\n\n/**\n * Describes the message public_api.v1.GetStoreKitCatalogResponse.\n * Use `create(GetStoreKitCatalogResponseSchema)` to create a new message.\n */\nexport const GetStoreKitCatalogResponseSchema: GenMessage<GetStoreKitCatalogResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 10);\n\n/**\n * @generated from message public_api.v1.GetStoreKitCatalogResponse.Product\n */\nexport type GetStoreKitCatalogResponse_Product = Message<\"public_api.v1.GetStoreKitCatalogResponse.Product\"> & {\n /**\n * @generated from field: string store_product_id = 1;\n */\n storeProductId: string;\n\n /**\n * @generated from field: string internal_product_id = 2;\n */\n internalProductId: string;\n\n /**\n * \"audiobook\" | \"ebook\"\n *\n * @generated from field: string kind = 3;\n */\n kind: string;\n\n /**\n * @generated from field: string display_name = 4;\n */\n displayName: string;\n\n /**\n * @generated from field: string description = 5;\n */\n description: string;\n};\n\n/**\n * Describes the message public_api.v1.GetStoreKitCatalogResponse.Product.\n * Use `create(GetStoreKitCatalogResponse_ProductSchema)` to create a new message.\n */\nexport const GetStoreKitCatalogResponse_ProductSchema: GenMessage<GetStoreKitCatalogResponse_Product> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 10, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetCourseDetailsRequest\n */\nexport type UserPanelGetCourseDetailsRequest = Message<\"public_api.v1.UserPanelGetCourseDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetCourseDetailsRequest.\n * Use `create(UserPanelGetCourseDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetCourseDetailsRequestSchema: GenMessage<UserPanelGetCourseDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 11);\n\n/**\n * @generated from message public_api.v1.UserPanelGetCourseDetailsResponse\n */\nexport type UserPanelGetCourseDetailsResponse = Message<\"public_api.v1.UserPanelGetCourseDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetCourseDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: string redirect_url = 1;\n */\n value: string;\n case: \"redirectUrl\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetCourseDetailsResponse.\n * Use `create(UserPanelGetCourseDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetCourseDetailsResponseSchema: GenMessage<UserPanelGetCourseDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 12);\n\n/**\n * @generated from message public_api.v1.GetOrdersRequest\n */\nexport type GetOrdersRequest = Message<\"public_api.v1.GetOrdersRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string access_token = 2;\n */\n accessToken: string;\n\n /**\n * @generated from field: optional int32 limit = 3;\n */\n limit?: number;\n\n /**\n * @generated from field: optional int32 offset = 4;\n */\n offset?: number;\n};\n\n/**\n * Describes the message public_api.v1.GetOrdersRequest.\n * Use `create(GetOrdersRequestSchema)` to create a new message.\n */\nexport const GetOrdersRequestSchema: GenMessage<GetOrdersRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 13);\n\n/**\n * @generated from message public_api.v1.GetOrdersResponse\n */\nexport type GetOrdersResponse = Message<\"public_api.v1.GetOrdersResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetOrdersResponse.OrderSummary orders = 1;\n */\n orders: GetOrdersResponse_OrderSummary[];\n\n /**\n * @generated from field: int32 total_count = 2;\n */\n totalCount: number;\n};\n\n/**\n * Describes the message public_api.v1.GetOrdersResponse.\n * Use `create(GetOrdersResponseSchema)` to create a new message.\n */\nexport const GetOrdersResponseSchema: GenMessage<GetOrdersResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 14);\n\n/**\n * @generated from message public_api.v1.GetOrdersResponse.OrderSummary\n */\nexport type GetOrdersResponse_OrderSummary = Message<\"public_api.v1.GetOrdersResponse.OrderSummary\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string status = 2;\n */\n status: string;\n\n /**\n * @generated from field: int32 total_amount = 3;\n */\n totalAmount: number;\n\n /**\n * @generated from field: string currency = 4;\n */\n currency: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 5;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: string customer_name = 6;\n */\n customerName: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrdersResponse.OrderSummary.\n * Use `create(GetOrdersResponse_OrderSummarySchema)` to create a new message.\n */\nexport const GetOrdersResponse_OrderSummarySchema: GenMessage<GetOrdersResponse_OrderSummary> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 14, 0);\n\n/**\n * @generated from message public_api.v1.IsOneClickPaymentAvailableRequest\n */\nexport type IsOneClickPaymentAvailableRequest = Message<\"public_api.v1.IsOneClickPaymentAvailableRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.IsOneClickPaymentAvailableRequest.\n * Use `create(IsOneClickPaymentAvailableRequestSchema)` to create a new message.\n */\nexport const IsOneClickPaymentAvailableRequestSchema: GenMessage<IsOneClickPaymentAvailableRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 15);\n\n/**\n * @generated from message public_api.v1.IsOneClickPaymentAvailableResponse\n */\nexport type IsOneClickPaymentAvailableResponse = Message<\"public_api.v1.IsOneClickPaymentAvailableResponse\"> & {\n /**\n * @generated from field: bool inpost_pay = 1;\n */\n inpostPay: boolean;\n\n /**\n * @generated from field: bool apple_pay = 2;\n */\n applePay: boolean;\n\n /**\n * @generated from field: bool google_pay = 3;\n */\n googlePay: boolean;\n\n /**\n * @generated from field: optional public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig google_pay_config = 4;\n */\n googlePayConfig?: IsOneClickPaymentAvailableResponse_GooglePayConfig;\n};\n\n/**\n * Describes the message public_api.v1.IsOneClickPaymentAvailableResponse.\n * Use `create(IsOneClickPaymentAvailableResponseSchema)` to create a new message.\n */\nexport const IsOneClickPaymentAvailableResponseSchema: GenMessage<IsOneClickPaymentAvailableResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 16);\n\n/**\n * @generated from message public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig\n */\nexport type IsOneClickPaymentAvailableResponse_GooglePayConfig = Message<\"public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig\"> & {\n /**\n * @generated from field: string merchant_id = 1;\n */\n merchantId: string;\n\n /**\n * @generated from field: string merchant_name = 2;\n */\n merchantName: string;\n\n /**\n * @generated from field: string gateway = 3;\n */\n gateway: string;\n\n /**\n * @generated from field: string gateway_merchant_id = 4;\n */\n gatewayMerchantId: string;\n};\n\n/**\n * Describes the message public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig.\n * Use `create(IsOneClickPaymentAvailableResponse_GooglePayConfigSchema)` to create a new message.\n */\nexport const IsOneClickPaymentAvailableResponse_GooglePayConfigSchema: GenMessage<IsOneClickPaymentAvailableResponse_GooglePayConfig> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 16, 0);\n\n/**\n * @generated from message public_api.v1.OneClickAuthorizePaymentRequest\n */\nexport type OneClickAuthorizePaymentRequest = Message<\"public_api.v1.OneClickAuthorizePaymentRequest\"> & {\n /**\n * @generated from field: public_api.v1.OneClickAuthorizePaymentRequest.Gateway gateway = 1;\n */\n gateway: OneClickAuthorizePaymentRequest_Gateway;\n\n /**\n * @generated from field: string paymentData = 2;\n */\n paymentData: string;\n\n /**\n * @generated from field: string paymentMethod = 3;\n */\n paymentMethod: string;\n\n /**\n * @generated from field: string transactionIdentifier = 4;\n */\n transactionIdentifier: string;\n\n /**\n * @generated from field: public_api.v1.GetPreOrderDetailsRequest order = 5;\n */\n order?: GetPreOrderDetailsRequest;\n\n /**\n * @generated from field: optional common.v1.Address shipping_address = 6;\n */\n shippingAddress?: Address;\n\n /**\n * @generated from field: optional common.v1.BillingAddress billing_address = 7;\n */\n billingAddress?: BillingAddress;\n\n /**\n * @generated from field: optional string metadata = 8;\n */\n metadata?: string;\n};\n\n/**\n * Describes the message public_api.v1.OneClickAuthorizePaymentRequest.\n * Use `create(OneClickAuthorizePaymentRequestSchema)` to create a new message.\n */\nexport const OneClickAuthorizePaymentRequestSchema: GenMessage<OneClickAuthorizePaymentRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 17);\n\n/**\n * @generated from enum public_api.v1.OneClickAuthorizePaymentRequest.Gateway\n */\nexport enum OneClickAuthorizePaymentRequest_Gateway {\n /**\n * @generated from enum value: APPLE_PAY = 0;\n */\n APPLE_PAY = 0,\n\n /**\n * @generated from enum value: GOOGLE_PAY = 1;\n */\n GOOGLE_PAY = 1,\n}\n\n/**\n * Describes the enum public_api.v1.OneClickAuthorizePaymentRequest.Gateway.\n */\nexport const OneClickAuthorizePaymentRequest_GatewaySchema: GenEnum<OneClickAuthorizePaymentRequest_Gateway> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 17, 0);\n\n/**\n * @generated from message public_api.v1.OneClickAuthorizePaymentResponse\n */\nexport type OneClickAuthorizePaymentResponse = Message<\"public_api.v1.OneClickAuthorizePaymentResponse\"> & {\n /**\n * @generated from field: bool is_success = 1;\n */\n isSuccess: boolean;\n\n /**\n * @generated from field: string redirect_url = 2;\n */\n redirectUrl: string;\n\n /**\n * @generated from field: string transaction_id = 3;\n */\n transactionId: string;\n\n /**\n * @generated from field: optional string apple_pay_tracking_url = 4;\n */\n applePayTrackingUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.OneClickAuthorizePaymentResponse.\n * Use `create(OneClickAuthorizePaymentResponseSchema)` to create a new message.\n */\nexport const OneClickAuthorizePaymentResponseSchema: GenMessage<OneClickAuthorizePaymentResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 18);\n\n/**\n * @generated from message public_api.v1.PreOrderItem\n */\nexport type PreOrderItem = Message<\"public_api.v1.PreOrderItem\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: int32 quantity = 2;\n */\n quantity: number;\n};\n\n/**\n * Describes the message public_api.v1.PreOrderItem.\n * Use `create(PreOrderItemSchema)` to create a new message.\n */\nexport const PreOrderItemSchema: GenMessage<PreOrderItem> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 19);\n\n/**\n * @generated from message public_api.v1.GetPreOrderDetailsRequest\n */\nexport type GetPreOrderDetailsRequest = Message<\"public_api.v1.GetPreOrderDetailsRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated public_api.v1.PreOrderItem items = 2;\n */\n items: PreOrderItem[];\n\n /**\n * @generated from field: optional string country_code = 3;\n */\n countryCode?: string;\n\n /**\n * @generated from field: optional string post_code = 4;\n */\n postCode?: string;\n\n /**\n * We can check if coupon code is available.\n *\n * @generated from field: optional string couponCode = 5;\n */\n couponCode?: string;\n\n /**\n * @generated from field: optional string email = 6;\n */\n email?: string;\n\n /**\n * @generated from field: optional string selected_delivery_method = 7;\n */\n selectedDeliveryMethod?: string;\n\n /**\n * @generated from field: optional string phone = 8;\n */\n phone?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetPreOrderDetailsRequest.\n * Use `create(GetPreOrderDetailsRequestSchema)` to create a new message.\n */\nexport const GetPreOrderDetailsRequestSchema: GenMessage<GetPreOrderDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 20);\n\n/**\n * @generated from message public_api.v1.DeliveryMethod\n */\nexport type DeliveryMethod = Message<\"public_api.v1.DeliveryMethod\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: int32 amount = 2;\n */\n amount: number;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 4;\n */\n description?: string;\n\n /**\n * @generated from field: optional int32 min_days = 5;\n */\n minDays?: number;\n\n /**\n * @generated from field: optional int32 max_days = 6;\n */\n maxDays?: number;\n};\n\n/**\n * Describes the message public_api.v1.DeliveryMethod.\n * Use `create(DeliveryMethodSchema)` to create a new message.\n */\nexport const DeliveryMethodSchema: GenMessage<DeliveryMethod> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 21);\n\n/**\n * @generated from message public_api.v1.GetPreOrderDetailsResponse\n */\nexport type GetPreOrderDetailsResponse = Message<\"public_api.v1.GetPreOrderDetailsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.DeliveryMethod methods = 1;\n */\n methods: DeliveryMethod[];\n\n /**\n * @generated from field: optional string couponCode = 2;\n */\n couponCode?: string;\n\n /**\n * @generated from field: optional string selected_delivery_method = 3;\n */\n selectedDeliveryMethod?: string;\n\n /**\n * @generated from field: optional int32 total_amount = 4;\n */\n totalAmount?: number;\n\n /**\n * @generated from field: optional int32 coupon_value = 5;\n */\n couponValue?: number;\n\n /**\n * Mainly use for Google Pay\n *\n * @generated from field: string currency = 6;\n */\n currency: string;\n\n /**\n * @generated from field: string country = 7;\n */\n country: string;\n};\n\n/**\n * Describes the message public_api.v1.GetPreOrderDetailsResponse.\n * Use `create(GetPreOrderDetailsResponseSchema)` to create a new message.\n */\nexport const GetPreOrderDetailsResponseSchema: GenMessage<GetPreOrderDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 22);\n\n/**\n * @generated from message public_api.v1.NotifyUserAboutProductAvailabilityRequest\n */\nexport type NotifyUserAboutProductAvailabilityRequest = Message<\"public_api.v1.NotifyUserAboutProductAvailabilityRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: string email = 3;\n */\n email: string;\n};\n\n/**\n * Describes the message public_api.v1.NotifyUserAboutProductAvailabilityRequest.\n * Use `create(NotifyUserAboutProductAvailabilityRequestSchema)` to create a new message.\n */\nexport const NotifyUserAboutProductAvailabilityRequestSchema: GenMessage<NotifyUserAboutProductAvailabilityRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 23);\n\n/**\n * @generated from message public_api.v1.ApplePayValidateMerchantRequest\n */\nexport type ApplePayValidateMerchantRequest = Message<\"public_api.v1.ApplePayValidateMerchantRequest\"> & {\n /**\n * @generated from field: string validation_url = 1;\n */\n validationUrl: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.ApplePayValidateMerchantRequest.\n * Use `create(ApplePayValidateMerchantRequestSchema)` to create a new message.\n */\nexport const ApplePayValidateMerchantRequestSchema: GenMessage<ApplePayValidateMerchantRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 24);\n\n/**\n * @generated from message public_api.v1.ApplePayValidateMerchantResponse\n */\nexport type ApplePayValidateMerchantResponse = Message<\"public_api.v1.ApplePayValidateMerchantResponse\"> & {\n /**\n * @generated from field: string merchant_session = 1;\n */\n merchantSession: string;\n};\n\n/**\n * Describes the message public_api.v1.ApplePayValidateMerchantResponse.\n * Use `create(ApplePayValidateMerchantResponseSchema)` to create a new message.\n */\nexport const ApplePayValidateMerchantResponseSchema: GenMessage<ApplePayValidateMerchantResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 25);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductRequest\n */\nexport type GetAvailableCountForProductRequest = Message<\"public_api.v1.GetAvailableCountForProductRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated string all_variants = 2;\n */\n allVariants: string[];\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductRequest.\n * Use `create(GetAvailableCountForProductRequestSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductRequestSchema: GenMessage<GetAvailableCountForProductRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 26);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductResponse\n */\nexport type GetAvailableCountForProductResponse = Message<\"public_api.v1.GetAvailableCountForProductResponse\"> & {\n /**\n * @generated from field: map<string, public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct> available_counts = 1;\n */\n availableCounts: { [key: string]: GetAvailableCountForProductResponse_AvailableCountForProduct };\n\n /**\n * @generated from field: optional public_api.v1.GetAvailableCountForProductResponse.Error error = 2;\n */\n error?: GetAvailableCountForProductResponse_Error;\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductResponse.\n * Use `create(GetAvailableCountForProductResponseSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductResponseSchema: GenMessage<GetAvailableCountForProductResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 27);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct\n */\nexport type GetAvailableCountForProductResponse_AvailableCountForProduct = Message<\"public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct\"> & {\n /**\n * @generated from field: int32 available_quantity_to_order = 1;\n */\n availableQuantityToOrder: number;\n\n /**\n * @generated from field: bool can_back = 2;\n */\n canBack: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct.\n * Use `create(GetAvailableCountForProductResponse_AvailableCountForProductSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductResponse_AvailableCountForProductSchema: GenMessage<GetAvailableCountForProductResponse_AvailableCountForProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 27, 0);\n\n/**\n * @generated from enum public_api.v1.GetAvailableCountForProductResponse.Error\n */\nexport enum GetAvailableCountForProductResponse_Error {\n /**\n * @generated from enum value: ERROR_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: ERROR_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: ERROR_PRODUCT_NOT_AVAILABLE = 2;\n */\n PRODUCT_NOT_AVAILABLE = 2,\n\n /**\n * @generated from enum value: ERROR_PRODUCT_NOT_AVAILABLE_BUT_CAN_BACK = 3;\n */\n PRODUCT_NOT_AVAILABLE_BUT_CAN_BACK = 3,\n}\n\n/**\n * Describes the enum public_api.v1.GetAvailableCountForProductResponse.Error.\n */\nexport const GetAvailableCountForProductResponse_ErrorSchema: GenEnum<GetAvailableCountForProductResponse_Error> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 27, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelDeleteAccountRequest\n */\nexport type UserPanelDeleteAccountRequest = Message<\"public_api.v1.UserPanelDeleteAccountRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelDeleteAccountRequest.\n * Use `create(UserPanelDeleteAccountRequestSchema)` to create a new message.\n */\nexport const UserPanelDeleteAccountRequestSchema: GenMessage<UserPanelDeleteAccountRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 28);\n\n/**\n * @generated from message public_api.v1.DidBuyProductRequest\n */\nexport type DidBuyProductRequest = Message<\"public_api.v1.DidBuyProductRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n};\n\n/**\n * Describes the message public_api.v1.DidBuyProductRequest.\n * Use `create(DidBuyProductRequestSchema)` to create a new message.\n */\nexport const DidBuyProductRequestSchema: GenMessage<DidBuyProductRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 29);\n\n/**\n * @generated from message public_api.v1.UpdateNotificationSettingsRequest\n */\nexport type UpdateNotificationSettingsRequest = Message<\"public_api.v1.UpdateNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated public_api.v1.UpdateNotificationSettingsRequest.Group modifications = 3;\n */\n modifications: UpdateNotificationSettingsRequest_Group[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod enabled_methods = 4;\n */\n enabledMethods: NotificationMethod[];\n};\n\n/**\n * Describes the message public_api.v1.UpdateNotificationSettingsRequest.\n * Use `create(UpdateNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationSettingsRequestSchema: GenMessage<UpdateNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 30);\n\n/**\n * @generated from message public_api.v1.UpdateNotificationSettingsRequest.Group\n */\nexport type UpdateNotificationSettingsRequest_Group = Message<\"public_api.v1.UpdateNotificationSettingsRequest.Group\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: bool enabled = 2;\n */\n enabled: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UpdateNotificationSettingsRequest.Group.\n * Use `create(UpdateNotificationSettingsRequest_GroupSchema)` to create a new message.\n */\nexport const UpdateNotificationSettingsRequest_GroupSchema: GenMessage<UpdateNotificationSettingsRequest_Group> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 30, 0);\n\n/**\n * @generated from message public_api.v1.UpdateGlobalNotificationSettingsRequest\n */\nexport type UpdateGlobalNotificationSettingsRequest = Message<\"public_api.v1.UpdateGlobalNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: bool is_muted = 2;\n */\n isMuted: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UpdateGlobalNotificationSettingsRequest.\n * Use `create(UpdateGlobalNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const UpdateGlobalNotificationSettingsRequestSchema: GenMessage<UpdateGlobalNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 31);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsDetailsRequest\n */\nexport type GetNotificationSettingsDetailsRequest = Message<\"public_api.v1.GetNotificationSettingsDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsDetailsRequest.\n * Use `create(GetNotificationSettingsDetailsRequestSchema)` to create a new message.\n */\nexport const GetNotificationSettingsDetailsRequestSchema: GenMessage<GetNotificationSettingsDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 32);\n\n/**\n * @generated from message public_api.v1.NotificationGroup\n */\nexport type NotificationGroup = Message<\"public_api.v1.NotificationGroup\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: bool enabled = 4;\n */\n enabled: boolean;\n\n /**\n * @generated from field: common.v1.NotificationGroupHowOften how_often = 5;\n */\n howOften: NotificationGroupHowOften;\n};\n\n/**\n * Describes the message public_api.v1.NotificationGroup.\n * Use `create(NotificationGroupSchema)` to create a new message.\n */\nexport const NotificationGroupSchema: GenMessage<NotificationGroup> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 33);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsDetailsResponse\n */\nexport type GetNotificationSettingsDetailsResponse = Message<\"public_api.v1.GetNotificationSettingsDetailsResponse\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme theme = 3;\n */\n theme?: ProjectTheme;\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod available_methods = 4;\n */\n availableMethods: NotificationMethod[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod enabled_methods = 5;\n */\n enabledMethods: NotificationMethod[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationGroup groups = 6;\n */\n groups: NotificationGroup[];\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsDetailsResponse.\n * Use `create(GetNotificationSettingsDetailsResponseSchema)` to create a new message.\n */\nexport const GetNotificationSettingsDetailsResponseSchema: GenMessage<GetNotificationSettingsDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 34);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsRequest\n */\nexport type GetNotificationSettingsRequest = Message<\"public_api.v1.GetNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: bool all = 2;\n */\n all: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsRequest.\n * Use `create(GetNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const GetNotificationSettingsRequestSchema: GenMessage<GetNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 35);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsResponse\n */\nexport type GetNotificationSettingsResponse = Message<\"public_api.v1.GetNotificationSettingsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetNotificationSettingsResponse.Project projects = 1;\n */\n projects: GetNotificationSettingsResponse_Project[];\n\n /**\n * @generated from field: bool is_muted = 2;\n */\n isMuted: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsResponse.\n * Use `create(GetNotificationSettingsResponseSchema)` to create a new message.\n */\nexport const GetNotificationSettingsResponseSchema: GenMessage<GetNotificationSettingsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 36);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsResponse.Project\n */\nexport type GetNotificationSettingsResponse_Project = Message<\"public_api.v1.GetNotificationSettingsResponse.Project\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: public_api.v1.GetNotificationSettingsResponse.Status status = 3;\n */\n status: GetNotificationSettingsResponse_Status;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme theme = 4;\n */\n theme?: ProjectTheme;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsResponse.Project.\n * Use `create(GetNotificationSettingsResponse_ProjectSchema)` to create a new message.\n */\nexport const GetNotificationSettingsResponse_ProjectSchema: GenMessage<GetNotificationSettingsResponse_Project> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 36, 0);\n\n/**\n * @generated from enum public_api.v1.GetNotificationSettingsResponse.Status\n */\nexport enum GetNotificationSettingsResponse_Status {\n /**\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: STATUS_ENABLED = 1;\n */\n ENABLED = 1,\n\n /**\n * @generated from enum value: STATUS_DISABLED = 2;\n */\n DISABLED = 2,\n}\n\n/**\n * Describes the enum public_api.v1.GetNotificationSettingsResponse.Status.\n */\nexport const GetNotificationSettingsResponse_StatusSchema: GenEnum<GetNotificationSettingsResponse_Status> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 36, 0);\n\n/**\n * @generated from message public_api.v1.GetNotificationHistoryRequest\n */\nexport type GetNotificationHistoryRequest = Message<\"public_api.v1.GetNotificationHistoryRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: optional string project_id = 2;\n */\n projectId?: string;\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod methods = 3;\n */\n methods: NotificationMethod[];\n\n /**\n * @generated from field: int32 page_size = 4;\n */\n pageSize: number;\n\n /**\n * @generated from field: optional string page_token = 5;\n */\n pageToken?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationHistoryRequest.\n * Use `create(GetNotificationHistoryRequestSchema)` to create a new message.\n */\nexport const GetNotificationHistoryRequestSchema: GenMessage<GetNotificationHistoryRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 37);\n\n/**\n * @generated from message public_api.v1.NotificationHistoryItem\n */\nexport type NotificationHistoryItem = Message<\"public_api.v1.NotificationHistoryItem\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string notification_id = 2;\n */\n notificationId: string;\n\n /**\n * @generated from field: public_api.v1.NotificationMethod method = 3;\n */\n method: NotificationMethod;\n\n /**\n * @generated from field: google.protobuf.Timestamp sent_at = 4;\n */\n sentAt?: Timestamp;\n\n /**\n * @generated from field: string title = 5;\n */\n title: string;\n\n /**\n * @generated from field: optional string subtitle = 6;\n */\n subtitle?: string;\n\n /**\n * @generated from field: optional string content = 7;\n */\n content?: string;\n\n /**\n * @generated from field: optional string image_url = 8;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: optional string open_url = 10;\n */\n openUrl?: string;\n\n /**\n * @generated from field: public_api.v1.NotificationHistoryItem.Sender sender = 9;\n */\n sender?: NotificationHistoryItem_Sender;\n};\n\n/**\n * Describes the message public_api.v1.NotificationHistoryItem.\n * Use `create(NotificationHistoryItemSchema)` to create a new message.\n */\nexport const NotificationHistoryItemSchema: GenMessage<NotificationHistoryItem> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 38);\n\n/**\n * @generated from message public_api.v1.NotificationHistoryItem.Sender\n */\nexport type NotificationHistoryItem_Sender = Message<\"public_api.v1.NotificationHistoryItem.Sender\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string display_name = 2;\n */\n displayName: string;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme theme = 3;\n */\n theme?: ProjectTheme;\n};\n\n/**\n * Describes the message public_api.v1.NotificationHistoryItem.Sender.\n * Use `create(NotificationHistoryItem_SenderSchema)` to create a new message.\n */\nexport const NotificationHistoryItem_SenderSchema: GenMessage<NotificationHistoryItem_Sender> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 38, 0);\n\n/**\n * @generated from message public_api.v1.GetNotificationHistoryResponse\n */\nexport type GetNotificationHistoryResponse = Message<\"public_api.v1.GetNotificationHistoryResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.NotificationHistoryItem notifications = 1;\n */\n notifications: NotificationHistoryItem[];\n\n /**\n * @generated from field: optional string next_page_token = 2;\n */\n nextPageToken?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationHistoryResponse.\n * Use `create(GetNotificationHistoryResponseSchema)` to create a new message.\n */\nexport const GetNotificationHistoryResponseSchema: GenMessage<GetNotificationHistoryResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 39);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesRequest\n */\nexport type UserPanelPushGetAvailableCompaniesRequest = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesRequest.\n * Use `create(UserPanelPushGetAvailableCompaniesRequestSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesRequestSchema: GenMessage<UserPanelPushGetAvailableCompaniesRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 40);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse\n */\nexport type UserPanelPushGetAvailableCompaniesResponse = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company companies = 1;\n */\n companies: UserPanelPushGetAvailableCompaniesResponse_Company[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.\n * Use `create(UserPanelPushGetAvailableCompaniesResponseSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponseSchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 41);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group\n */\nexport type UserPanelPushGetAvailableCompaniesResponse_Group = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional string how_often = 4;\n */\n howOften?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group.\n * Use `create(UserPanelPushGetAvailableCompaniesResponse_GroupSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponse_GroupSchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse_Group> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 41, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company\n */\nexport type UserPanelPushGetAvailableCompaniesResponse_Company = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: repeated public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group groups = 3;\n */\n groups: UserPanelPushGetAvailableCompaniesResponse_Group[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company.\n * Use `create(UserPanelPushGetAvailableCompaniesResponse_CompanySchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponse_CompanySchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse_Company> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 41, 1);\n\n/**\n * @generated from message public_api.v1.ShouldShopProductsResponse\n */\nexport type ShouldShopProductsResponse = Message<\"public_api.v1.ShouldShopProductsResponse\"> & {\n /**\n * @generated from field: bool is_visible = 1;\n */\n isVisible: boolean;\n};\n\n/**\n * Describes the message public_api.v1.ShouldShopProductsResponse.\n * Use `create(ShouldShopProductsResponseSchema)` to create a new message.\n */\nexport const ShouldShopProductsResponseSchema: GenMessage<ShouldShopProductsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 42);\n\n/**\n * @generated from message public_api.v1.ShouldShowGuestCatalogResponse\n */\nexport type ShouldShowGuestCatalogResponse = Message<\"public_api.v1.ShouldShowGuestCatalogResponse\"> & {\n /**\n * @generated from field: bool is_visible = 1;\n */\n isVisible: boolean;\n};\n\n/**\n * Describes the message public_api.v1.ShouldShowGuestCatalogResponse.\n * Use `create(ShouldShowGuestCatalogResponseSchema)` to create a new message.\n */\nexport const ShouldShowGuestCatalogResponseSchema: GenMessage<ShouldShowGuestCatalogResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 43);\n\n/**\n * @generated from message public_api.v1.GuestCatalogProduct\n */\nexport type GuestCatalogProduct = Message<\"public_api.v1.GuestCatalogProduct\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string cover_image_url = 3;\n */\n coverImageUrl: string;\n\n /**\n * @generated from field: public_api.v1.UserProductType product_type = 4;\n */\n productType: UserProductType;\n};\n\n/**\n * Describes the message public_api.v1.GuestCatalogProduct.\n * Use `create(GuestCatalogProductSchema)` to create a new message.\n */\nexport const GuestCatalogProductSchema: GenMessage<GuestCatalogProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 44);\n\n/**\n * @generated from message public_api.v1.GetGuestCatalogResponse\n */\nexport type GetGuestCatalogResponse = Message<\"public_api.v1.GetGuestCatalogResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GuestCatalogProduct products = 1;\n */\n products: GuestCatalogProduct[];\n};\n\n/**\n * Describes the message public_api.v1.GetGuestCatalogResponse.\n * Use `create(GetGuestCatalogResponseSchema)` to create a new message.\n */\nexport const GetGuestCatalogResponseSchema: GenMessage<GetGuestCatalogResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 45);\n\n/**\n * @generated from message public_api.v1.UserPanelResolveProductAccessRequest\n */\nexport type UserPanelResolveProductAccessRequest = Message<\"public_api.v1.UserPanelResolveProductAccessRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: public_api.v1.UserProductType product_type = 3;\n */\n productType: UserProductType;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelResolveProductAccessRequest.\n * Use `create(UserPanelResolveProductAccessRequestSchema)` to create a new message.\n */\nexport const UserPanelResolveProductAccessRequestSchema: GenMessage<UserPanelResolveProductAccessRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 46);\n\n/**\n * @generated from message public_api.v1.UserPanelResolveProductAccessResponse\n */\nexport type UserPanelResolveProductAccessResponse = Message<\"public_api.v1.UserPanelResolveProductAccessResponse\"> & {\n /**\n * @generated from field: public_api.v1.UserPanelResolveProductAccessResponse.Status status = 1;\n */\n status: UserPanelResolveProductAccessResponse_Status;\n\n /**\n * @generated from field: optional string access_id = 2;\n */\n accessId?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelResolveProductAccessResponse.\n * Use `create(UserPanelResolveProductAccessResponseSchema)` to create a new message.\n */\nexport const UserPanelResolveProductAccessResponseSchema: GenMessage<UserPanelResolveProductAccessResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 47);\n\n/**\n * @generated from enum public_api.v1.UserPanelResolveProductAccessResponse.Status\n */\nexport enum UserPanelResolveProductAccessResponse_Status {\n /**\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n STATUS_UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: OWNED = 1;\n */\n OWNED = 1,\n\n /**\n * @generated from enum value: NOT_OWNED = 2;\n */\n NOT_OWNED = 2,\n\n /**\n * @generated from enum value: UNAVAILABLE = 3;\n */\n UNAVAILABLE = 3,\n}\n\n/**\n * Describes the enum public_api.v1.UserPanelResolveProductAccessResponse.Status.\n */\nexport const UserPanelResolveProductAccessResponse_StatusSchema: GenEnum<UserPanelResolveProductAccessResponse_Status> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 47, 0);\n\n/**\n * @generated from message public_api.v1.GetShopProductsRequest\n */\nexport type GetShopProductsRequest = Message<\"public_api.v1.GetShopProductsRequest\"> & {\n /**\n * @generated from field: optional string access_token = 1;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsRequest.\n * Use `create(GetShopProductsRequestSchema)` to create a new message.\n */\nexport const GetShopProductsRequestSchema: GenMessage<GetShopProductsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 48);\n\n/**\n * @generated from message public_api.v1.GetShopProductsResponse\n */\nexport type GetShopProductsResponse = Message<\"public_api.v1.GetShopProductsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetShopProductsResponse.Product products = 5;\n */\n products: GetShopProductsResponse_Product[];\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsResponse.\n * Use `create(GetShopProductsResponseSchema)` to create a new message.\n */\nexport const GetShopProductsResponseSchema: GenMessage<GetShopProductsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 49);\n\n/**\n * @generated from message public_api.v1.GetShopProductsResponse.Product\n */\nexport type GetShopProductsResponse_Product = Message<\"public_api.v1.GetShopProductsResponse.Product\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string image_url = 3;\n */\n imageUrl: string;\n\n /**\n * @generated from field: string price = 4;\n */\n price: string;\n\n /**\n * @generated from field: optional bool is_already_bought = 5;\n */\n isAlreadyBought?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsResponse.Product.\n * Use `create(GetShopProductsResponse_ProductSchema)` to create a new message.\n */\nexport const GetShopProductsResponse_ProductSchema: GenMessage<GetShopProductsResponse_Product> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 49, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsResponse\n */\nexport type UserPanelGetFileDetailsResponse = Message<\"public_api.v1.UserPanelGetFileDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetFileDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetFileDetailsResponse.Result success = 1;\n */\n value: UserPanelGetFileDetailsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsResponse.\n * Use `create(UserPanelGetFileDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsResponseSchema: GenMessage<UserPanelGetFileDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 50);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsResponse.Result\n */\nexport type UserPanelGetFileDetailsResponse_Result = Message<\"public_api.v1.UserPanelGetFileDetailsResponse.Result\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated string files = 2;\n */\n files: string[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsResponse.Result.\n * Use `create(UserPanelGetFileDetailsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsResponse_ResultSchema: GenMessage<UserPanelGetFileDetailsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 50, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsRequest\n */\nexport type UserPanelGetFileDetailsRequest = Message<\"public_api.v1.UserPanelGetFileDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsRequest.\n * Use `create(UserPanelGetFileDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsRequestSchema: GenMessage<UserPanelGetFileDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 51);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsResponse\n */\nexport type UserPanelGetTicketDetailsResponse = Message<\"public_api.v1.UserPanelGetTicketDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetTicketDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetTicketDetailsResponse.Result success = 1;\n */\n value: UserPanelGetTicketDetailsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsResponse.\n * Use `create(UserPanelGetTicketDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsResponseSchema: GenMessage<UserPanelGetTicketDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 52);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsResponse.Result\n */\nexport type UserPanelGetTicketDetailsResponse_Result = Message<\"public_api.v1.UserPanelGetTicketDetailsResponse.Result\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string ticket_url = 2;\n */\n ticketUrl: string;\n\n /**\n * @generated from field: string product_name = 3;\n */\n productName: string;\n\n /**\n * @generated from field: string product_image_url = 4;\n */\n productImageUrl: string;\n\n /**\n * @generated from field: optional string google_wallet_url = 5;\n */\n googleWalletUrl?: string;\n\n /**\n * @generated from field: optional string apple_wallet_url = 6;\n */\n appleWalletUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsResponse.Result.\n * Use `create(UserPanelGetTicketDetailsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsResponse_ResultSchema: GenMessage<UserPanelGetTicketDetailsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 52, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsRequest\n */\nexport type UserPanelGetTicketDetailsRequest = Message<\"public_api.v1.UserPanelGetTicketDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsRequest.\n * Use `create(UserPanelGetTicketDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsRequestSchema: GenMessage<UserPanelGetTicketDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 53);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsResponse = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result success = 1;\n */\n value: UserPanelGetAudiobookDetailsDownloadURLsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsResponseSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 54);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails\"> & {\n /**\n * @generated from field: string chapter_id = 1;\n */\n chapterId: string;\n\n /**\n * @generated from field: string public_url = 2;\n */\n publicUrl: string;\n\n /**\n * @generated from field: optional string downloadable_url = 3;\n */\n downloadableUrl?: string;\n\n /**\n * @generated from field: optional int32 duration = 4;\n */\n duration?: number;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetailsSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetailsSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 54, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsResponse_Result = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result\"> & {\n /**\n * @generated from field: repeated public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails audiobook_download_details = 1;\n */\n audiobookDownloadDetails: UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails[];\n\n /**\n * @generated from field: optional bool is_available_to_download_in_mobile_app = 2;\n */\n isAvailableToDownloadInMobileApp?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsResponse_ResultSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 54, 1);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsRequest\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsRequest = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n\n /**\n * @generated from field: optional bool is_browser = 3;\n */\n isBrowser?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsRequest.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsRequestSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 55);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsResponse\n */\nexport type UserPanelGetAudiobookDetailsResponse = Message<\"public_api.v1.UserPanelGetAudiobookDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetAudiobookDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.audiobooks.v1.Audiobook audiobook = 1;\n */\n value: Audiobook$1;\n case: \"audiobook\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsResponse.\n * Use `create(UserPanelGetAudiobookDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsResponseSchema: GenMessage<UserPanelGetAudiobookDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 56);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsRequest\n */\nexport type UserPanelGetAudiobookDetailsRequest = Message<\"public_api.v1.UserPanelGetAudiobookDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsRequest.\n * Use `create(UserPanelGetAudiobookDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsRequestSchema: GenMessage<UserPanelGetAudiobookDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 57);\n\n/**\n * @generated from message public_api.v1.UserPanelGetProductsRequest\n */\nexport type UserPanelGetProductsRequest = Message<\"public_api.v1.UserPanelGetProductsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetProductsRequest.\n * Use `create(UserPanelGetProductsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetProductsRequestSchema: GenMessage<UserPanelGetProductsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 58);\n\n/**\n * @generated from message public_api.v1.UserPanelGetProductsResponse\n */\nexport type UserPanelGetProductsResponse = Message<\"public_api.v1.UserPanelGetProductsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetProductsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetProductsResponse.Result success = 1;\n */\n value: UserPanelGetProductsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetProductsResponse.\n * Use `create(UserPanelGetProductsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetProductsResponseSchema: GenMessage<UserPanelGetProductsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 59);\n\n/**\n * @generated from message public_api.v1.UserPanelGetProductsResponse.Result\n */\nexport type UserPanelGetProductsResponse_Result = Message<\"public_api.v1.UserPanelGetProductsResponse.Result\"> & {\n /**\n * @generated from field: repeated public_api.v1.UserProduct products = 1;\n */\n products: UserProduct[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetProductsResponse.Result.\n * Use `create(UserPanelGetProductsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetProductsResponse_ResultSchema: GenMessage<UserPanelGetProductsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 59, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelLogoutRequest\n */\nexport type UserPanelLogoutRequest = Message<\"public_api.v1.UserPanelLogoutRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLogoutRequest.\n * Use `create(UserPanelLogoutRequestSchema)` to create a new message.\n */\nexport const UserPanelLogoutRequestSchema: GenMessage<UserPanelLogoutRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 60);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginWithCodeResponse\n */\nexport type UserPanelLoginWithCodeResponse = Message<\"public_api.v1.UserPanelLoginWithCodeResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelLoginWithCodeResponse.result\n */\n result: {\n /**\n * @generated from field: string access_token = 1;\n */\n value: string;\n case: \"accessToken\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n\n /**\n * @generated from field: optional string email = 3;\n */\n email?: string;\n\n /**\n * @generated from field: optional string user_id = 4;\n */\n userId?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginWithCodeResponse.\n * Use `create(UserPanelLoginWithCodeResponseSchema)` to create a new message.\n */\nexport const UserPanelLoginWithCodeResponseSchema: GenMessage<UserPanelLoginWithCodeResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 61);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginWithCodeRequest\n */\nexport type UserPanelLoginWithCodeRequest = Message<\"public_api.v1.UserPanelLoginWithCodeRequest\"> & {\n /**\n * @generated from field: int32 code = 1;\n */\n code: number;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginWithCodeRequest.\n * Use `create(UserPanelLoginWithCodeRequestSchema)` to create a new message.\n */\nexport const UserPanelLoginWithCodeRequestSchema: GenMessage<UserPanelLoginWithCodeRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 62);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginResponse\n */\nexport type UserPanelLoginResponse = Message<\"public_api.v1.UserPanelLoginResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelLoginResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelLoginResponse.Result success = 1;\n */\n value: UserPanelLoginResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginResponse.\n * Use `create(UserPanelLoginResponseSchema)` to create a new message.\n */\nexport const UserPanelLoginResponseSchema: GenMessage<UserPanelLoginResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 63);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginResponse.Result\n */\nexport type UserPanelLoginResponse_Result = Message<\"public_api.v1.UserPanelLoginResponse.Result\"> & {\n /**\n * @generated from field: int32 retry_in = 1;\n */\n retryIn: number;\n\n /**\n * @generated from field: public_api.v1.LoginCodeDeliveryMethod delivery_method = 2;\n */\n deliveryMethod: LoginCodeDeliveryMethod;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginResponse.Result.\n * Use `create(UserPanelLoginResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelLoginResponse_ResultSchema: GenMessage<UserPanelLoginResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 63, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginRequest\n */\nexport type UserPanelLoginRequest = Message<\"public_api.v1.UserPanelLoginRequest\"> & {\n /**\n * @generated from field: string email = 1;\n */\n email: string;\n\n /**\n * @generated from field: optional bool regulations_accept = 2;\n */\n regulationsAccept?: boolean;\n\n /**\n * @generated from field: public_api.v1.LoginCodeDeliveryMethod delivery_method = 3;\n */\n deliveryMethod: LoginCodeDeliveryMethod;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginRequest.\n * Use `create(UserPanelLoginRequestSchema)` to create a new message.\n */\nexport const UserPanelLoginRequestSchema: GenMessage<UserPanelLoginRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 64);\n\n/**\n * @generated from message public_api.v1.GetOrderRetryUrlRequest\n */\nexport type GetOrderRetryUrlRequest = Message<\"public_api.v1.GetOrderRetryUrlRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRetryUrlRequest.\n * Use `create(GetOrderRetryUrlRequestSchema)` to create a new message.\n */\nexport const GetOrderRetryUrlRequestSchema: GenMessage<GetOrderRetryUrlRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 65);\n\n/**\n * @generated from message public_api.v1.GetOrderRetryUrlResponse\n */\nexport type GetOrderRetryUrlResponse = Message<\"public_api.v1.GetOrderRetryUrlResponse\"> & {\n /**\n * @generated from oneof public_api.v1.GetOrderRetryUrlResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.GetOrderRetryUrlResponse.Success url = 1;\n */\n value: GetOrderRetryUrlResponse_Success;\n case: \"url\";\n } | {\n /**\n * @generated from field: string failure = 2;\n */\n value: string;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRetryUrlResponse.\n * Use `create(GetOrderRetryUrlResponseSchema)` to create a new message.\n */\nexport const GetOrderRetryUrlResponseSchema: GenMessage<GetOrderRetryUrlResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 66);\n\n/**\n * @generated from message public_api.v1.GetOrderRetryUrlResponse.Success\n */\nexport type GetOrderRetryUrlResponse_Success = Message<\"public_api.v1.GetOrderRetryUrlResponse.Success\"> & {\n /**\n * @generated from field: string url = 1;\n */\n url: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRetryUrlResponse.Success.\n * Use `create(GetOrderRetryUrlResponse_SuccessSchema)` to create a new message.\n */\nexport const GetOrderRetryUrlResponse_SuccessSchema: GenMessage<GetOrderRetryUrlResponse_Success> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 66, 0);\n\n/**\n * @generated from message public_api.v1.GetOrderRequest\n */\nexport type GetOrderRequest = Message<\"public_api.v1.GetOrderRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRequest.\n * Use `create(GetOrderRequestSchema)` to create a new message.\n */\nexport const GetOrderRequestSchema: GenMessage<GetOrderRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 67);\n\n/**\n * @generated from message public_api.v1.GetOrderResponse\n */\nexport type GetOrderResponse = Message<\"public_api.v1.GetOrderResponse\"> & {\n /**\n * @generated from field: optional string id = 1;\n */\n id?: string;\n\n /**\n * @generated from field: repeated public_api.v1.Item items = 2;\n */\n items: Item[];\n\n /**\n * @generated from field: public_api.v1.OrderDetails details = 3;\n */\n details?: OrderDetails;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderResponse.\n * Use `create(GetOrderResponseSchema)` to create a new message.\n */\nexport const GetOrderResponseSchema: GenMessage<GetOrderResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 68);\n\n/**\n * @generated from message public_api.v1.OrderDetails\n */\nexport type OrderDetails = Message<\"public_api.v1.OrderDetails\"> & {\n /**\n * @generated from field: repeated public_api.v1.OrderDetails.SingleItem items = 1;\n */\n items: OrderDetails_SingleItem[];\n\n /**\n * @generated from field: common.v1.Gateway gateway = 2;\n */\n gateway: Gateway;\n};\n\n/**\n * Describes the message public_api.v1.OrderDetails.\n * Use `create(OrderDetailsSchema)` to create a new message.\n */\nexport const OrderDetailsSchema: GenMessage<OrderDetails> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 69);\n\n/**\n * @generated from message public_api.v1.OrderDetails.SingleItem\n */\nexport type OrderDetails_SingleItem = Message<\"public_api.v1.OrderDetails.SingleItem\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: optional string image_url = 2;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: int32 quantity = 4;\n */\n quantity: number;\n\n /**\n * @generated from field: int64 price_amount = 5;\n */\n priceAmount: bigint;\n\n /**\n * @generated from field: string price_currency = 6;\n */\n priceCurrency: string;\n};\n\n/**\n * Describes the message public_api.v1.OrderDetails.SingleItem.\n * Use `create(OrderDetails_SingleItemSchema)` to create a new message.\n */\nexport const OrderDetails_SingleItemSchema: GenMessage<OrderDetails_SingleItem> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 69, 0);\n\n/**\n * @generated from message public_api.v1.Item\n */\nexport type Item = Message<\"public_api.v1.Item\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string image_url = 3;\n */\n imageUrl: string;\n\n /**\n * @generated from oneof public_api.v1.Item.item\n */\n item: {\n /**\n * @generated from field: public_api.v1.FileDownloadable file_downloadable = 4;\n */\n value: FileDownloadable;\n case: \"fileDownloadable\";\n } | {\n /**\n * @generated from field: public_api.v1.Audiobook audiobook = 5;\n */\n value: Audiobook;\n case: \"audiobook\";\n } | {\n /**\n * @generated from field: public_api.v1.Ticket ticket = 6;\n */\n value: Ticket;\n case: \"ticket\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.Item.\n * Use `create(ItemSchema)` to create a new message.\n */\nexport const ItemSchema: GenMessage<Item> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 70);\n\n/**\n * @generated from message public_api.v1.FileDownloadable\n */\nexport type FileDownloadable = Message<\"public_api.v1.FileDownloadable\"> & {\n /**\n * @generated from field: string file_url = 1;\n */\n fileUrl: string;\n};\n\n/**\n * Describes the message public_api.v1.FileDownloadable.\n * Use `create(FileDownloadableSchema)` to create a new message.\n */\nexport const FileDownloadableSchema: GenMessage<FileDownloadable> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 71);\n\n/**\n * @generated from message public_api.v1.Audiobook\n */\nexport type Audiobook = Message<\"public_api.v1.Audiobook\"> & {\n /**\n * @generated from field: string app_download_url = 1;\n */\n appDownloadUrl: string;\n};\n\n/**\n * Describes the message public_api.v1.Audiobook.\n * Use `create(AudiobookSchema)` to create a new message.\n */\nexport const AudiobookSchema: GenMessage<Audiobook> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 72);\n\n/**\n * @generated from message public_api.v1.Ticket\n */\nexport type Ticket = Message<\"public_api.v1.Ticket\"> & {\n /**\n * @generated from field: string ticket_id = 1;\n */\n ticketId: string;\n\n /**\n * @generated from field: optional string apple_pass_url = 2;\n */\n applePassUrl?: string;\n\n /**\n * @generated from field: optional string google_ticket_url = 3;\n */\n googleTicketUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.Ticket.\n * Use `create(TicketSchema)` to create a new message.\n */\nexport const TicketSchema: GenMessage<Ticket> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 73);\n\n/**\n * @generated from message public_api.v1.UserProduct\n */\nexport type UserProduct = Message<\"public_api.v1.UserProduct\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string project_name = 2;\n */\n projectName: string;\n\n /**\n * @generated from field: string product_id = 3;\n */\n productId: string;\n\n /**\n * @generated from field: string product_name = 4;\n */\n productName: string;\n\n /**\n * @generated from field: string product_description = 5;\n */\n productDescription: string;\n\n /**\n * @generated from field: string product_image_url = 6;\n */\n productImageUrl: string;\n\n /**\n * @generated from field: public_api.v1.UserProductType product_type = 7;\n */\n productType: UserProductType;\n\n /**\n * @generated from field: string access_id = 8;\n */\n accessId: string;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme project_theme = 9;\n */\n projectTheme?: ProjectTheme;\n\n /**\n * @generated from field: optional string project_description = 10;\n */\n projectDescription?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserProduct.\n * Use `create(UserProductSchema)` to create a new message.\n */\nexport const UserProductSchema: GenMessage<UserProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 74);\n\n/**\n * @generated from message public_api.v1.BoolResponse\n */\nexport type BoolResponse = Message<\"public_api.v1.BoolResponse\"> & {\n /**\n * @generated from oneof public_api.v1.BoolResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.BoolResponse.\n * Use `create(BoolResponseSchema)` to create a new message.\n */\nexport const BoolResponseSchema: GenMessage<BoolResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 75);\n\n/**\n * @generated from message public_api.v1.PushEventRequest\n */\nexport type PushEventRequest = Message<\"public_api.v1.PushEventRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string notification_id = 2;\n */\n notificationId: string;\n\n /**\n * @generated from field: common.v1.NotificationEvent event = 3;\n */\n event: NotificationEvent;\n};\n\n/**\n * Describes the message public_api.v1.PushEventRequest.\n * Use `create(PushEventRequestSchema)` to create a new message.\n */\nexport const PushEventRequestSchema: GenMessage<PushEventRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 76);\n\n/**\n * @generated from message public_api.v1.PushSendDeviceTokenRequest\n */\nexport type PushSendDeviceTokenRequest = Message<\"public_api.v1.PushSendDeviceTokenRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: common.v1.PushNotificationDeviceToken payload = 2;\n */\n payload?: PushNotificationDeviceToken;\n\n /**\n * @generated from field: optional bool is_notification_granted = 3;\n */\n isNotificationGranted?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.PushSendDeviceTokenRequest.\n * Use `create(PushSendDeviceTokenRequestSchema)` to create a new message.\n */\nexport const PushSendDeviceTokenRequestSchema: GenMessage<PushSendDeviceTokenRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 77);\n\n/**\n * @generated from message public_api.v1.ProjectTheme\n */\nexport type ProjectTheme = Message<\"public_api.v1.ProjectTheme\"> & {\n /**\n * @generated from field: optional string image_url = 1;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: optional string image_dark_url = 2;\n */\n imageDarkUrl?: string;\n\n /**\n * @generated from field: optional string brand_color = 3;\n */\n brandColor?: string;\n\n /**\n * @generated from field: optional string brand_color_dark = 4;\n */\n brandColorDark?: string;\n};\n\n/**\n * Describes the message public_api.v1.ProjectTheme.\n * Use `create(ProjectThemeSchema)` to create a new message.\n */\nexport const ProjectThemeSchema: GenMessage<ProjectTheme> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 78);\n\n/**\n * Public Order Details Messages\n *\n * @generated from message public_api.v1.GetPublicOrderDetailsRequest\n */\nexport type GetPublicOrderDetailsRequest = Message<\"public_api.v1.GetPublicOrderDetailsRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * If provided and matches order, show unobfuscated data\n *\n * @generated from field: optional string email = 3;\n */\n email?: string;\n\n /**\n * If provided, extract email from token for automatic verification\n *\n * @generated from field: optional string access_token = 4;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetPublicOrderDetailsRequest.\n * Use `create(GetPublicOrderDetailsRequestSchema)` to create a new message.\n */\nexport const GetPublicOrderDetailsRequestSchema: GenMessage<GetPublicOrderDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 79);\n\n/**\n * @generated from message public_api.v1.GetPublicOrderDetailsResponse\n */\nexport type GetPublicOrderDetailsResponse = Message<\"public_api.v1.GetPublicOrderDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.GetPublicOrderDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.PublicOrderDetails order = 1;\n */\n value: PublicOrderDetails;\n case: \"order\";\n } | {\n /**\n * @generated from field: string failure = 2;\n */\n value: string;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.GetPublicOrderDetailsResponse.\n * Use `create(GetPublicOrderDetailsResponseSchema)` to create a new message.\n */\nexport const GetPublicOrderDetailsResponseSchema: GenMessage<GetPublicOrderDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 80);\n\n/**\n * @generated from message public_api.v1.PublicOrderDetails\n */\nexport type PublicOrderDetails = Message<\"public_api.v1.PublicOrderDetails\"> & {\n /**\n * @generated from field: string order_id = 1;\n */\n orderId: string;\n\n /**\n * Always visible (e.g., \"completed\", \"pending\", \"shipped\")\n *\n * @generated from field: string status = 2;\n */\n status: string;\n\n /**\n * Always visible\n *\n * @generated from field: optional string processing_status = 3;\n */\n processingStatus?: string;\n\n /**\n * Obfuscated unless email verified\n *\n * @generated from field: string customer_name = 4;\n */\n customerName: string;\n\n /**\n * @generated from field: string customer_email = 5;\n */\n customerEmail: string;\n\n /**\n * @generated from field: optional string customer_phone = 6;\n */\n customerPhone?: string;\n\n /**\n * @generated from field: optional string delivery_address = 7;\n */\n deliveryAddress?: string;\n\n /**\n * @generated from field: optional string delivery_method = 8;\n */\n deliveryMethod?: string;\n\n /**\n * @generated from field: optional string tracking_number = 9;\n */\n trackingNumber?: string;\n\n /**\n * @generated from field: repeated public_api.v1.PublicOrderItem items = 10;\n */\n items: PublicOrderItem[];\n\n /**\n * @generated from field: repeated public_api.v1.PublicOrderComment comments = 11;\n */\n comments: PublicOrderComment[];\n\n /**\n * @generated from field: int64 total_amount = 12;\n */\n totalAmount: bigint;\n\n /**\n * @generated from field: string currency = 13;\n */\n currency: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 14;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp updated_at = 15;\n */\n updatedAt?: Timestamp;\n\n /**\n * True if email matched - frontend uses this to show/hide verify form\n *\n * @generated from field: bool is_verified = 16;\n */\n isVerified: boolean;\n\n /**\n * Total non-internal comments count\n *\n * @generated from field: int32 comment_count = 17;\n */\n commentCount: number;\n\n /**\n * Project branding\n *\n * @generated from field: optional public_api.v1.ProjectTheme project_theme = 18;\n */\n projectTheme?: ProjectTheme;\n\n /**\n * @generated from field: optional string project_name = 19;\n */\n projectName?: string;\n};\n\n/**\n * Describes the message public_api.v1.PublicOrderDetails.\n * Use `create(PublicOrderDetailsSchema)` to create a new message.\n */\nexport const PublicOrderDetailsSchema: GenMessage<PublicOrderDetails> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 81);\n\n/**\n * @generated from message public_api.v1.PublicOrderItem\n */\nexport type PublicOrderItem = Message<\"public_api.v1.PublicOrderItem\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: int32 quantity = 2;\n */\n quantity: number;\n\n /**\n * @generated from field: int64 price = 3;\n */\n price: bigint;\n\n /**\n * @generated from field: string currency = 4;\n */\n currency: string;\n\n /**\n * @generated from field: optional string image_url = 5;\n */\n imageUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.PublicOrderItem.\n * Use `create(PublicOrderItemSchema)` to create a new message.\n */\nexport const PublicOrderItemSchema: GenMessage<PublicOrderItem> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 82);\n\n/**\n * @generated from message public_api.v1.PublicOrderComment\n */\nexport type PublicOrderComment = Message<\"public_api.v1.PublicOrderComment\"> & {\n /**\n * @generated from field: int32 id = 1;\n */\n id: number;\n\n /**\n * Obfuscated to \"***\" if not verified\n *\n * @generated from field: string message = 2;\n */\n message: string;\n\n /**\n * \"admin\", \"system\", \"customer\"\n *\n * @generated from field: string author_type = 3;\n */\n authorType: string;\n\n /**\n * Obfuscated if not verified\n *\n * @generated from field: optional string author_name = 4;\n */\n authorName?: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 5;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message public_api.v1.PublicOrderComment.\n * Use `create(PublicOrderCommentSchema)` to create a new message.\n */\nexport const PublicOrderCommentSchema: GenMessage<PublicOrderComment> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 83);\n\n/**\n * @generated from message public_api.v1.AddPublicOrderCommentRequest\n */\nexport type AddPublicOrderCommentRequest = Message<\"public_api.v1.AddPublicOrderCommentRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * @generated from field: string message = 3;\n */\n message: string;\n\n /**\n * Lucia session cookie value\n *\n * @generated from field: string access_token = 4;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.AddPublicOrderCommentRequest.\n * Use `create(AddPublicOrderCommentRequestSchema)` to create a new message.\n */\nexport const AddPublicOrderCommentRequestSchema: GenMessage<AddPublicOrderCommentRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 84);\n\n/**\n * @generated from message public_api.v1.AddPublicOrderCommentResponse\n */\nexport type AddPublicOrderCommentResponse = Message<\"public_api.v1.AddPublicOrderCommentResponse\"> & {\n /**\n * @generated from oneof public_api.v1.AddPublicOrderCommentResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.PublicOrderComment comment = 1;\n */\n value: PublicOrderComment;\n case: \"comment\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.AddPublicOrderCommentResponse.\n * Use `create(AddPublicOrderCommentResponseSchema)` to create a new message.\n */\nexport const AddPublicOrderCommentResponseSchema: GenMessage<AddPublicOrderCommentResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 85);\n\n/**\n * Testimonial Messages\n *\n * @generated from message public_api.v1.GetOrderForTestimonialRequest\n */\nexport type GetOrderForTestimonialRequest = Message<\"public_api.v1.GetOrderForTestimonialRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialRequest.\n * Use `create(GetOrderForTestimonialRequestSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialRequestSchema: GenMessage<GetOrderForTestimonialRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 86);\n\n/**\n * @generated from message public_api.v1.GetOrderForTestimonialResponse\n */\nexport type GetOrderForTestimonialResponse = Message<\"public_api.v1.GetOrderForTestimonialResponse\"> & {\n /**\n * @generated from oneof public_api.v1.GetOrderForTestimonialResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.GetOrderForTestimonialResponse.OrderInfo order = 1;\n */\n value: GetOrderForTestimonialResponse_OrderInfo;\n case: \"order\";\n } | {\n /**\n * @generated from field: string failure = 2;\n */\n value: string;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialResponse.\n * Use `create(GetOrderForTestimonialResponseSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialResponseSchema: GenMessage<GetOrderForTestimonialResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 87);\n\n/**\n * @generated from message public_api.v1.GetOrderForTestimonialResponse.OrderProduct\n */\nexport type GetOrderForTestimonialResponse_OrderProduct = Message<\"public_api.v1.GetOrderForTestimonialResponse.OrderProduct\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string product_name = 2;\n */\n productName: string;\n\n /**\n * @generated from field: optional string product_image_url = 3;\n */\n productImageUrl?: string;\n\n /**\n * @generated from field: int32 quantity = 4;\n */\n quantity: number;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialResponse.OrderProduct.\n * Use `create(GetOrderForTestimonialResponse_OrderProductSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialResponse_OrderProductSchema: GenMessage<GetOrderForTestimonialResponse_OrderProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 87, 0);\n\n/**\n * @generated from message public_api.v1.GetOrderForTestimonialResponse.OrderInfo\n */\nexport type GetOrderForTestimonialResponse_OrderInfo = Message<\"public_api.v1.GetOrderForTestimonialResponse.OrderInfo\"> & {\n /**\n * @generated from field: string order_id = 1;\n */\n orderId: string;\n\n /**\n * @generated from field: string customer_name = 2;\n */\n customerName: string;\n\n /**\n * @generated from field: string customer_email = 3;\n */\n customerEmail: string;\n\n /**\n * @generated from field: repeated public_api.v1.GetOrderForTestimonialResponse.OrderProduct products = 4;\n */\n products: GetOrderForTestimonialResponse_OrderProduct[];\n\n /**\n * @generated from field: bool already_submitted = 5;\n */\n alreadySubmitted: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialResponse.OrderInfo.\n * Use `create(GetOrderForTestimonialResponse_OrderInfoSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialResponse_OrderInfoSchema: GenMessage<GetOrderForTestimonialResponse_OrderInfo> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 87, 1);\n\n/**\n * @generated from message public_api.v1.SubmitTestimonialRequest\n */\nexport type SubmitTestimonialRequest = Message<\"public_api.v1.SubmitTestimonialRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * @generated from field: string customer_name = 3;\n */\n customerName: string;\n\n /**\n * @generated from field: optional string photo_url = 4;\n */\n photoUrl?: string;\n\n /**\n * @generated from field: int32 rating = 5;\n */\n rating: number;\n\n /**\n * @generated from field: string message = 6;\n */\n message: string;\n\n /**\n * @generated from field: repeated string product_ids = 7;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message public_api.v1.SubmitTestimonialRequest.\n * Use `create(SubmitTestimonialRequestSchema)` to create a new message.\n */\nexport const SubmitTestimonialRequestSchema: GenMessage<SubmitTestimonialRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 88);\n\n/**\n * @generated from message public_api.v1.SubmitTestimonialResponse\n */\nexport type SubmitTestimonialResponse = Message<\"public_api.v1.SubmitTestimonialResponse\"> & {\n /**\n * @generated from oneof public_api.v1.SubmitTestimonialResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.SubmitTestimonialResponse.\n * Use `create(SubmitTestimonialResponseSchema)` to create a new message.\n */\nexport const SubmitTestimonialResponseSchema: GenMessage<SubmitTestimonialResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 89);\n\n/**\n * @generated from message public_api.v1.GetTestimonialUploadUrlRequest\n */\nexport type GetTestimonialUploadUrlRequest = Message<\"public_api.v1.GetTestimonialUploadUrlRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * @generated from field: string filename = 3;\n */\n filename: string;\n};\n\n/**\n * Describes the message public_api.v1.GetTestimonialUploadUrlRequest.\n * Use `create(GetTestimonialUploadUrlRequestSchema)` to create a new message.\n */\nexport const GetTestimonialUploadUrlRequestSchema: GenMessage<GetTestimonialUploadUrlRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 90);\n\n/**\n * @generated from message public_api.v1.GetTestimonialUploadUrlResponse\n */\nexport type GetTestimonialUploadUrlResponse = Message<\"public_api.v1.GetTestimonialUploadUrlResponse\"> & {\n /**\n * @generated from field: string upload_url = 1;\n */\n uploadUrl: string;\n\n /**\n * @generated from field: string public_url = 2;\n */\n publicUrl: string;\n};\n\n/**\n * Describes the message public_api.v1.GetTestimonialUploadUrlResponse.\n * Use `create(GetTestimonialUploadUrlResponseSchema)` to create a new message.\n */\nexport const GetTestimonialUploadUrlResponseSchema: GenMessage<GetTestimonialUploadUrlResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 91);\n\n/**\n * @generated from enum public_api.v1.LoginCodeDeliveryMethod\n */\nexport enum LoginCodeDeliveryMethod {\n /**\n * @generated from enum value: LOGIN_CODE_DELIVERY_METHOD_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: LOGIN_CODE_DELIVERY_METHOD_EMAIL = 1;\n */\n EMAIL = 1,\n\n /**\n * @generated from enum value: LOGIN_CODE_DELIVERY_METHOD_PUSH = 2;\n */\n PUSH = 2,\n\n /**\n * @generated from enum value: LOGIN_CODE_DELIVERY_METHOD_SMS = 3;\n */\n SMS = 3,\n}\n\n/**\n * Describes the enum public_api.v1.LoginCodeDeliveryMethod.\n */\nexport const LoginCodeDeliveryMethodSchema: GenEnum<LoginCodeDeliveryMethod> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 0);\n\n/**\n * @generated from enum public_api.v1.UserProductType\n */\nexport enum UserProductType {\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_AUDIO = 1;\n */\n AUDIO = 1,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_FILE = 2;\n */\n FILE = 2,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_TICKET = 3;\n */\n TICKET = 3,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_COURSE = 4;\n */\n COURSE = 4,\n}\n\n/**\n * Describes the enum public_api.v1.UserProductType.\n */\nexport const UserProductTypeSchema: GenEnum<UserProductType> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 1);\n\n/**\n * @generated from enum public_api.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_EMAIL_NOT_FOUND = 1;\n */\n EMAIL_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_EMAIL = 2;\n */\n INCORRECT_EMAIL = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_CODE = 3;\n */\n INCORRECT_CODE = 3,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_GENERATE_ACCESS_TOKEN_FAILED = 4;\n */\n GENERATE_ACCESS_TOKEN_FAILED = 4,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_LOGOUT_FAILED = 5;\n */\n LOGOUT_FAILED = 5,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PRDUCTS_NOT_FOUND = 6;\n */\n PRDUCTS_NOT_FOUND = 6,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_AUDIOBOOK_NOT_FOUND = 7;\n */\n AUDIOBOOK_NOT_FOUND = 7,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_AUDIOBOOK = 8;\n */\n INCORRECT_AUDIOBOOK = 8,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNAUTHORIZED = 9;\n */\n UNAUTHORIZED = 9,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_TICKET_NOT_FOUND = 10;\n */\n TICKET_NOT_FOUND = 10,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELIVERY_METHOD_UNAVAILABLE = 11;\n */\n DELIVERY_METHOD_UNAVAILABLE = 11,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELIVERY_FAILED = 12;\n */\n DELIVERY_FAILED = 12,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_RATE_LIMITED = 13;\n */\n RATE_LIMITED = 13,\n}\n\n/**\n * Describes the enum public_api.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 2);\n\n/**\n * @generated from enum public_api.v1.NotificationMethod\n */\nexport enum NotificationMethod {\n /**\n * @generated from enum value: NOTIFICATION_METHOD_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: NOTIFICATION_METHOD_EMAIL = 1;\n */\n EMAIL = 1,\n\n /**\n * @generated from enum value: NOTIFICATION_METHOD_SMS = 2;\n */\n SMS = 2,\n\n /**\n * @generated from enum value: NOTIFICATION_METHOD_PUSH = 3;\n */\n PUSH = 3,\n}\n\n/**\n * Describes the enum public_api.v1.NotificationMethod.\n */\nexport const NotificationMethodSchema: GenEnum<NotificationMethod> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 3);\n\n/**\n * @generated from service public_api.v1.PublicApiService\n */\nexport const PublicApiService: GenService<{\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetOrder\n */\n getOrder: {\n methodKind: \"unary\";\n input: typeof GetOrderRequestSchema;\n output: typeof GetOrderResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetOrders\n */\n getOrders: {\n methodKind: \"unary\";\n input: typeof GetOrdersRequestSchema;\n output: typeof GetOrdersResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetOrderRetryUrl\n */\n getOrderRetryUrl: {\n methodKind: \"unary\";\n input: typeof GetOrderRetryUrlRequestSchema;\n output: typeof GetOrderRetryUrlResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogin\n */\n userPanelLogin: {\n methodKind: \"unary\";\n input: typeof UserPanelLoginRequestSchema;\n output: typeof UserPanelLoginResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLoginWithCode\n */\n userPanelLoginWithCode: {\n methodKind: \"unary\";\n input: typeof UserPanelLoginWithCodeRequestSchema;\n output: typeof UserPanelLoginWithCodeResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogout\n */\n userPanelLogout: {\n methodKind: \"unary\";\n input: typeof UserPanelLogoutRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelDeleteAccount\n */\n userPanelDeleteAccount: {\n methodKind: \"unary\";\n input: typeof UserPanelDeleteAccountRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetProducts\n */\n userPanelGetProducts: {\n methodKind: \"unary\";\n input: typeof UserPanelGetProductsRequestSchema;\n output: typeof UserPanelGetProductsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetails\n */\n userPanelGetAudiobookDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetAudiobookDetailsRequestSchema;\n output: typeof UserPanelGetAudiobookDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetailsDownloadURLs\n */\n userPanelGetAudiobookDetailsDownloadURLs: {\n methodKind: \"unary\";\n input: typeof UserPanelGetAudiobookDetailsDownloadURLsRequestSchema;\n output: typeof UserPanelGetAudiobookDetailsDownloadURLsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetFileDetails\n */\n userPanelGetFileDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetFileDetailsRequestSchema;\n output: typeof UserPanelGetFileDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetTicketDetails\n */\n userPanelGetTicketDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetTicketDetailsRequestSchema;\n output: typeof UserPanelGetTicketDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetCourseDetails\n */\n userPanelGetCourseDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetCourseDetailsRequestSchema;\n output: typeof UserPanelGetCourseDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.PushSendDeviceToken\n */\n pushSendDeviceToken: {\n methodKind: \"unary\";\n input: typeof PushSendDeviceTokenRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.PushEvent\n */\n pushEvent: {\n methodKind: \"unary\";\n input: typeof PushEventRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * iOS SHOP methods\n *\n * @generated from rpc public_api.v1.PublicApiService.ShouldShopProducts\n */\n shouldShopProducts: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof ShouldShopProductsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.ShouldShowGuestCatalog\n */\n shouldShowGuestCatalog: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof ShouldShowGuestCatalogResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetGuestCatalog\n */\n getGuestCatalog: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof GetGuestCatalogResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelResolveProductAccess\n */\n userPanelResolveProductAccess: {\n methodKind: \"unary\";\n input: typeof UserPanelResolveProductAccessRequestSchema;\n output: typeof UserPanelResolveProductAccessResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetShopProducts\n */\n getShopProducts: {\n methodKind: \"unary\";\n input: typeof GetShopProductsRequestSchema;\n output: typeof GetShopProductsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.DidBuyProduct\n */\n didBuyProduct: {\n methodKind: \"unary\";\n input: typeof DidBuyProductRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetAppStoreAccountToken\n */\n getAppStoreAccountToken: {\n methodKind: \"unary\";\n input: typeof GetAppStoreAccountTokenRequestSchema;\n output: typeof GetAppStoreAccountTokenResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.VerifyAppStorePurchase\n */\n verifyAppStorePurchase: {\n methodKind: \"unary\";\n input: typeof VerifyAppStorePurchaseRequestSchema;\n output: typeof VerifyAppStorePurchaseResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetAppStoreEntitlements\n */\n getAppStoreEntitlements: {\n methodKind: \"unary\";\n input: typeof GetAppStoreEntitlementsRequestSchema;\n output: typeof GetAppStoreEntitlementsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.RestoreAppStorePurchases\n */\n restoreAppStorePurchases: {\n methodKind: \"unary\";\n input: typeof RestoreAppStorePurchasesRequestSchema;\n output: typeof RestoreAppStorePurchasesResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.ClearAppStoreAccountToken\n */\n clearAppStoreAccountToken: {\n methodKind: \"unary\";\n input: typeof ClearAppStoreAccountTokenRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetStoreKitCatalog\n */\n getStoreKitCatalog: {\n methodKind: \"unary\";\n input: typeof GetStoreKitCatalogRequestSchema;\n output: typeof GetStoreKitCatalogResponseSchema;\n },\n /**\n * Notification settings\n *\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettings\n */\n getNotificationSettings: {\n methodKind: \"unary\";\n input: typeof GetNotificationSettingsRequestSchema;\n output: typeof GetNotificationSettingsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettingsDetails\n */\n getNotificationSettingsDetails: {\n methodKind: \"unary\";\n input: typeof GetNotificationSettingsDetailsRequestSchema;\n output: typeof GetNotificationSettingsDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UpdateGlobalNotificationSettings\n */\n updateGlobalNotificationSettings: {\n methodKind: \"unary\";\n input: typeof UpdateGlobalNotificationSettingsRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UpdateNotificationSettings\n */\n updateNotificationSettings: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationSettingsRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationHistory\n */\n getNotificationHistory: {\n methodKind: \"unary\";\n input: typeof GetNotificationHistoryRequestSchema;\n output: typeof GetNotificationHistoryResponseSchema;\n },\n /**\n * Product V2 requests\n *\n * @generated from rpc public_api.v1.PublicApiService.GetAvailableCountForProduct\n */\n getAvailableCountForProduct: {\n methodKind: \"unary\";\n input: typeof GetAvailableCountForProductRequestSchema;\n output: typeof GetAvailableCountForProductResponseSchema;\n },\n /**\n * Checkout requests\n *\n * @generated from rpc public_api.v1.PublicApiService.IsOneClickPaymentAvailable\n */\n isOneClickPaymentAvailable: {\n methodKind: \"unary\";\n input: typeof IsOneClickPaymentAvailableRequestSchema;\n output: typeof IsOneClickPaymentAvailableResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetPreOrderDetails\n */\n getPreOrderDetails: {\n methodKind: \"unary\";\n input: typeof GetPreOrderDetailsRequestSchema;\n output: typeof GetPreOrderDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.ApplePayValidateMerchant\n */\n applePayValidateMerchant: {\n methodKind: \"unary\";\n input: typeof ApplePayValidateMerchantRequestSchema;\n output: typeof ApplePayValidateMerchantResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.AuthorizeOneClickPayment\n */\n authorizeOneClickPayment: {\n methodKind: \"unary\";\n input: typeof OneClickAuthorizePaymentRequestSchema;\n output: typeof OneClickAuthorizePaymentResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.NotifyUserAboutProductAvailability\n */\n notifyUserAboutProductAvailability: {\n methodKind: \"unary\";\n input: typeof NotifyUserAboutProductAvailabilityRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * Public order details (with obfuscation)\n *\n * @generated from rpc public_api.v1.PublicApiService.GetPublicOrderDetails\n */\n getPublicOrderDetails: {\n methodKind: \"unary\";\n input: typeof GetPublicOrderDetailsRequestSchema;\n output: typeof GetPublicOrderDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.AddPublicOrderComment\n */\n addPublicOrderComment: {\n methodKind: \"unary\";\n input: typeof AddPublicOrderCommentRequestSchema;\n output: typeof AddPublicOrderCommentResponseSchema;\n },\n /**\n * Testimonials\n *\n * @generated from rpc public_api.v1.PublicApiService.GetOrderForTestimonial\n */\n getOrderForTestimonial: {\n methodKind: \"unary\";\n input: typeof GetOrderForTestimonialRequestSchema;\n output: typeof GetOrderForTestimonialResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.SubmitTestimonial\n */\n submitTestimonial: {\n methodKind: \"unary\";\n input: typeof SubmitTestimonialRequestSchema;\n output: typeof SubmitTestimonialResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetTestimonialUploadUrl\n */\n getTestimonialUploadUrl: {\n methodKind: \"unary\";\n input: typeof GetTestimonialUploadUrlRequestSchema;\n output: typeof GetTestimonialUploadUrlResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_public_v1_public_api, 0);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file common/v1/address.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file common/v1/address.proto.\n */\nexport const file_common_v1_address: GenFile = /*@__PURE__*/\n fileDesc(\"Chdjb21tb24vdjEvYWRkcmVzcy5wcm90bxIJY29tbW9uLnYxIocBCgdBZGRyZXNzEgwKBG5hbWUYASABKAkSDQoFbGluZTEYAiABKAkSEgoFbGluZTIYAyABKAlIAIgBARIMCgRjaXR5GAQgASgJEg8KB2NvdW50cnkYBSABKAkSFQoIemlwX2NvZGUYBiABKAlIAYgBAUIICgZfbGluZTJCCwoJX3ppcF9jb2RlIq4BCg5CaWxsaW5nQWRkcmVzcxIMCgRuYW1lGAEgASgJEg0KBWxpbmUxGAIgASgJEhIKBWxpbmUyGAMgASgJSACIAQESDAoEY2l0eRgEIAEoCRIPCgdjb3VudHJ5GAUgASgJEhUKCHppcF9jb2RlGAYgASgJSAGIAQESEwoGdGF4X2lkGAcgASgJSAKIAQFCCAoGX2xpbmUyQgsKCV96aXBfY29kZUIJCgdfdGF4X2lkQk5aTGdpdGh1Yi5jb20vZW1tZW1zL3N1cGVyLWNhcnQvYXBwcy9zcnYtd29ya2VyL3V0aWxzL21vZGVscy9jb21tb24vdjE7Y29tbW9udjFiBnByb3RvMw\");\n\n/**\n * @generated from message common.v1.Address\n */\nexport type Address = Message<\"common.v1.Address\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: string line1 = 2;\n */\n line1: string;\n\n /**\n * @generated from field: optional string line2 = 3;\n */\n line2?: string;\n\n /**\n * @generated from field: string city = 4;\n */\n city: string;\n\n /**\n * @generated from field: string country = 5;\n */\n country: string;\n\n /**\n * @generated from field: optional string zip_code = 6;\n */\n zipCode?: string;\n};\n\n/**\n * Describes the message common.v1.Address.\n * Use `create(AddressSchema)` to create a new message.\n */\nexport const AddressSchema: GenMessage<Address> = /*@__PURE__*/\n messageDesc(file_common_v1_address, 0);\n\n/**\n * @generated from message common.v1.BillingAddress\n */\nexport type BillingAddress = Message<\"common.v1.BillingAddress\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: string line1 = 2;\n */\n line1: string;\n\n /**\n * @generated from field: optional string line2 = 3;\n */\n line2?: string;\n\n /**\n * @generated from field: string city = 4;\n */\n city: string;\n\n /**\n * @generated from field: string country = 5;\n */\n country: string;\n\n /**\n * @generated from field: optional string zip_code = 6;\n */\n zipCode?: string;\n\n /**\n * @generated from field: optional string tax_id = 7;\n */\n taxId?: string;\n};\n\n/**\n * Describes the message common.v1.BillingAddress.\n * Use `create(BillingAddressSchema)` to create a new message.\n */\nexport const BillingAddressSchema: GenMessage<BillingAddress> = /*@__PURE__*/\n messageDesc(file_common_v1_address, 1);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file common/v1/gateway.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc } from \"@bufbuild/protobuf/codegenv2\";\n\n/**\n * Describes the file common/v1/gateway.proto.\n */\nexport const file_common_v1_gateway: GenFile = /*@__PURE__*/\n fileDesc(\"Chdjb21tb24vdjEvZ2F0ZXdheS5wcm90bxIJY29tbW9uLnYxKs8BCgdHYXRld2F5Eg8KC0dBVEVXQVlfQUxMEAASFwoTR0FURVdBWV9QUlpFTEVXWV8yNBABEhIKDkdBVEVXQVlfU1RSSVBFEAISEAoMR0FURVdBWV9UUEFZEAMSHAoYR0FURVdBWV9DQVNIX09OX0RFTElWRVJZEAQSEAoMR0FURVdBWV9GUkVFEAUSFgoSR0FURVdBWV9JTlBPU1RfUEFZEAYSEAoMR0FURVdBWV9QQVlVEAcSGgoWR0FURVdBWV9NQU5VQUxfUEFZTUVOVBAIQk5aTGdpdGh1Yi5jb20vZW1tZW1zL3N1cGVyLWNhcnQvYXBwcy9zcnYtd29ya2VyL3V0aWxzL21vZGVscy9jb21tb24vdjE7Y29tbW9udjFiBnByb3RvMw\");\n\n/**\n * @generated from enum common.v1.Gateway\n */\nexport enum Gateway {\n /**\n * @generated from enum value: GATEWAY_ALL = 0;\n */\n ALL = 0,\n\n /**\n * @generated from enum value: GATEWAY_PRZELEWY_24 = 1;\n */\n PRZELEWY_24 = 1,\n\n /**\n * @generated from enum value: GATEWAY_STRIPE = 2;\n */\n STRIPE = 2,\n\n /**\n * @generated from enum value: GATEWAY_TPAY = 3;\n */\n TPAY = 3,\n\n /**\n * @generated from enum value: GATEWAY_CASH_ON_DELIVERY = 4;\n */\n CASH_ON_DELIVERY = 4,\n\n /**\n * @generated from enum value: GATEWAY_FREE = 5;\n */\n FREE = 5,\n\n /**\n * @generated from enum value: GATEWAY_INPOST_PAY = 6;\n */\n INPOST_PAY = 6,\n\n /**\n * @generated from enum value: GATEWAY_PAYU = 7;\n */\n PAYU = 7,\n\n /**\n * @generated from enum value: GATEWAY_MANUAL_PAYMENT = 8;\n */\n MANUAL_PAYMENT = 8,\n}\n\n/**\n * Describes the enum common.v1.Gateway.\n */\nexport const GatewaySchema: GenEnum<Gateway> = /*@__PURE__*/\n enumDesc(file_common_v1_gateway, 0);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file dashboard/v1/audiobooks.proto (package dashboard.audiobooks.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Empty, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file dashboard/v1/audiobooks.proto.\n */\nexport const file_dashboard_v1_audiobooks: GenFile = /*@__PURE__*/\n fileDesc(\"Ch1kYXNoYm9hcmQvdjEvYXVkaW9ib29rcy5wcm90bxIXZGFzaGJvYXJkLmF1ZGlvYm9va3MudjEiFgoUR2V0QXVkaW9ib29rc1JlcXVlc3QiIQoTR2V0QXVkaW9ib29rUmVxdWVzdBIKCgJpZBgBIAEoCSKrAQoHQ2hhcHRlchIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEhgKC2Rlc2NyaXB0aW9uGAMgASgJSACIAQESGgoNbXVsdGltZWRpYV9pZBgEIAEoCUgBi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ChhHZXRBdWRpb2Jvb2tBY2Nlc3NFbWFpbHMSOC5kYXNoYm9hcmQuYXVkaW9ib29rcy52MS5HZXRBdWRpb2Jvb2tBY2Nlc3NFbWFpbHNSZXF1ZXN0GjkuZGFzaGJvYXJkLmF1ZGlvYm9va3MudjEuR2V0QXVkaW9ib29rQWNjZXNzRW1haWxzUmVzcG9uc2USdQoVQ3JlYXRlQXVkaW9ib29rQWNjZXNzEjUuZGFzaGJvYXJkLmF1ZGlvYm9va3MudjEuQ3JlYXRlQXVkaW9ib29rQWNjZXNzUmVxdWVzdBolLmRhc2hib2FyZC5hdWRpb2Jvb2tzLnYxLkJvb2xSZXNwb25zZRJ1ChVEZWxldGVBdWRpb2Jvb2tBY2Nlc3MSNS5kYXNoYm9hcmQuYXVkaW9ib29rcy52MS5EZWxldGVBdWRpb2Jvb2tBY2Nlc3NSZXF1ZXN0GiUuZGFzaGJvYXJkLmF1ZGlvYm9va3MudjEuQm9vbFJlc3BvbnNlYgZwcm90bzM\", [file_google_protobuf_timestamp, file_google_protobuf_empty]);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobooksRequest\n */\nexport type GetAudiobooksRequest = Message<\"dashboard.audiobooks.v1.GetAudiobooksRequest\"> & {\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobooksRequest.\n * Use `create(GetAudiobooksRequestSchema)` to create a new message.\n */\nexport const GetAudiobooksRequestSchema: GenMessage<GetAudiobooksRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 0);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookRequest\n */\nexport type GetAudiobookRequest = Message<\"dashboard.audiobooks.v1.GetAudiobookRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookRequest.\n * Use `create(GetAudiobookRequestSchema)` to create a new message.\n */\nexport const GetAudiobookRequestSchema: GenMessage<GetAudiobookRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 1);\n\n/**\n * @generated from message dashboard.audiobooks.v1.Chapter\n */\nexport type Chapter = Message<\"dashboard.audiobooks.v1.Chapter\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional string multimedia_id = 4;\n */\n multimediaId?: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 5;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.Chapter.\n * Use `create(ChapterSchema)` to create a new message.\n */\nexport const ChapterSchema: GenMessage<Chapter> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 2);\n\n/**\n * @generated from message dashboard.audiobooks.v1.Audiobook\n */\nexport type Audiobook = Message<\"dashboard.audiobooks.v1.Audiobook\"> & {\n /**\n * @generated from field: optional string id = 1;\n */\n id?: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: string description = 4;\n */\n description: string;\n\n /**\n * @generated from field: string cover_image = 5;\n */\n coverImage: string;\n\n /**\n * @generated from field: string thumbnail_image = 6;\n */\n thumbnailImage: string;\n\n /**\n * @generated from field: repeated dashboard.audiobooks.v1.Chapter chapters = 7;\n */\n chapters: Chapter[];\n\n /**\n * @generated from field: bool is_downloadable = 8;\n */\n isDownloadable: boolean;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 9;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: optional bool is_browser_downloadable = 10;\n */\n isBrowserDownloadable?: boolean;\n\n /**\n * @generated from field: optional string accent_color = 11;\n */\n accentColor?: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.Audiobook.\n * Use `create(AudiobookSchema)` to create a new message.\n */\nexport const AudiobookSchema: GenMessage<Audiobook> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 3);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobooksResponse\n */\nexport type GetAudiobooksResponse = Message<\"dashboard.audiobooks.v1.GetAudiobooksResponse\"> & {\n /**\n * @generated from field: repeated dashboard.audiobooks.v1.Audiobook audiobooks = 1;\n */\n audiobooks: Audiobook[];\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobooksResponse.\n * Use `create(GetAudiobooksResponseSchema)` to create a new message.\n */\nexport const GetAudiobooksResponseSchema: GenMessage<GetAudiobooksResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 4);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookResponse\n */\nexport type GetAudiobookResponse = Message<\"dashboard.audiobooks.v1.GetAudiobookResponse\"> & {\n /**\n * @generated from field: optional dashboard.audiobooks.v1.Audiobook audiobook = 1;\n */\n audiobook?: Audiobook;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookResponse.\n * Use `create(GetAudiobookResponseSchema)` to create a new message.\n */\nexport const GetAudiobookResponseSchema: GenMessage<GetAudiobookResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 5);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateOrUpdateAudiobookRequest\n */\nexport type CreateOrUpdateAudiobookRequest = Message<\"dashboard.audiobooks.v1.CreateOrUpdateAudiobookRequest\"> & {\n /**\n * @generated from field: dashboard.audiobooks.v1.Audiobook audiobook = 1;\n */\n audiobook?: Audiobook;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateOrUpdateAudiobookRequest.\n * Use `create(CreateOrUpdateAudiobookRequestSchema)` to create a new message.\n */\nexport const CreateOrUpdateAudiobookRequestSchema: GenMessage<CreateOrUpdateAudiobookRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 6);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse\n */\nexport type CreateOrUpdateAudiobookResponse = Message<\"dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse\"> & {\n /**\n * @generated from oneof dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result success = 1;\n */\n value: CreateOrUpdateAudiobookResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.audiobooks.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.\n * Use `create(CreateOrUpdateAudiobookResponseSchema)` to create a new message.\n */\nexport const CreateOrUpdateAudiobookResponseSchema: GenMessage<CreateOrUpdateAudiobookResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 7);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result\n */\nexport type CreateOrUpdateAudiobookResponse_Result = Message<\"dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result.\n * Use `create(CreateOrUpdateAudiobookResponse_ResultSchema)` to create a new message.\n */\nexport const CreateOrUpdateAudiobookResponse_ResultSchema: GenMessage<CreateOrUpdateAudiobookResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 7, 0);\n\n/**\n * @generated from message dashboard.audiobooks.v1.DeleteAudiobookRequest\n */\nexport type DeleteAudiobookRequest = Message<\"dashboard.audiobooks.v1.DeleteAudiobookRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.DeleteAudiobookRequest.\n * Use `create(DeleteAudiobookRequestSchema)` to create a new message.\n */\nexport const DeleteAudiobookRequestSchema: GenMessage<DeleteAudiobookRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 8);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsRequest\n */\nexport type GetAudiobookAccessEmailsRequest = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsRequest\"> & {\n /**\n * @generated from field: string audiobook_id = 1;\n */\n audiobookId: string;\n\n /**\n * @generated from field: optional string email = 2;\n */\n email?: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsRequest.\n * Use `create(GetAudiobookAccessEmailsRequestSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsRequestSchema: GenMessage<GetAudiobookAccessEmailsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 9);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse\n */\nexport type GetAudiobookAccessEmailsResponse = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse\"> & {\n /**\n * @generated from oneof dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result success = 1;\n */\n value: GetAudiobookAccessEmailsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.audiobooks.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.\n * Use `create(GetAudiobookAccessEmailsResponseSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsResponseSchema: GenMessage<GetAudiobookAccessEmailsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 10);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail\n */\nexport type GetAudiobookAccessEmailsResponse_AccessEmail = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 3;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail.\n * Use `create(GetAudiobookAccessEmailsResponse_AccessEmailSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsResponse_AccessEmailSchema: GenMessage<GetAudiobookAccessEmailsResponse_AccessEmail> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 10, 0);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result\n */\nexport type GetAudiobookAccessEmailsResponse_Result = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail emails = 1;\n */\n emails: GetAudiobookAccessEmailsResponse_AccessEmail[];\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result.\n * Use `create(GetAudiobookAccessEmailsResponse_ResultSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsResponse_ResultSchema: GenMessage<GetAudiobookAccessEmailsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 10, 1);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateAudiobookAccessRequest\n */\nexport type CreateAudiobookAccessRequest = Message<\"dashboard.audiobooks.v1.CreateAudiobookAccessRequest\"> & {\n /**\n * @generated from field: string audiobook_id = 1;\n */\n audiobookId: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateAudiobookAccessRequest.\n * Use `create(CreateAudiobookAccessRequestSchema)` to create a new message.\n */\nexport const CreateAudiobookAccessRequestSchema: GenMessage<CreateAudiobookAccessRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 11);\n\n/**\n * @generated from message dashboard.audiobooks.v1.DeleteAudiobookAccessRequest\n */\nexport type DeleteAudiobookAccessRequest = Message<\"dashboard.audiobooks.v1.DeleteAudiobookAccessRequest\"> & {\n /**\n * @generated from field: string system_access_id = 1;\n */\n systemAccessId: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.DeleteAudiobookAccessRequest.\n * Use `create(DeleteAudiobookAccessRequestSchema)` to create a new message.\n */\nexport const DeleteAudiobookAccessRequestSchema: GenMessage<DeleteAudiobookAccessRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 12);\n\n/**\n * @generated from message dashboard.audiobooks.v1.BoolResponse\n */\nexport type BoolResponse = Message<\"dashboard.audiobooks.v1.BoolResponse\"> & {\n /**\n * @generated from oneof dashboard.audiobooks.v1.BoolResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.audiobooks.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.BoolResponse.\n * Use `create(BoolResponseSchema)` to create a new message.\n */\nexport const BoolResponseSchema: GenMessage<BoolResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 13);\n\n/**\n * @generated from enum dashboard.audiobooks.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CHAPTER_NOT_FOUND = 2;\n */\n CHAPTER_NOT_FOUND = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_CHAPTER_FORMAT = 3;\n */\n INCORRECT_CHAPTER_FORMAT = 3,\n}\n\n/**\n * Describes the enum dashboard.audiobooks.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_audiobooks, 0);\n\n/**\n * @generated from service dashboard.audiobooks.v1.AudiobooksService\n */\nexport const AudiobooksService: GenService<{\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.GetAudiobooks\n */\n getAudiobooks: {\n methodKind: \"unary\";\n input: typeof GetAudiobooksRequestSchema;\n output: typeof GetAudiobooksResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.GetAudiobook\n */\n getAudiobook: {\n methodKind: \"unary\";\n input: typeof GetAudiobookRequestSchema;\n output: typeof GetAudiobookResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.CreateOrUpdateAudiobook\n */\n createOrUpdateAudiobook: {\n methodKind: \"unary\";\n input: typeof CreateOrUpdateAudiobookRequestSchema;\n output: typeof CreateOrUpdateAudiobookResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.DeleteAudiobook\n */\n deleteAudiobook: {\n methodKind: \"unary\";\n input: typeof DeleteAudiobookRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.GetAudiobookAccessEmails\n */\n getAudiobookAccessEmails: {\n methodKind: \"unary\";\n input: typeof GetAudiobookAccessEmailsRequestSchema;\n output: typeof GetAudiobookAccessEmailsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.CreateAudiobookAccess\n */\n createAudiobookAccess: {\n methodKind: \"unary\";\n input: typeof CreateAudiobookAccessRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.DeleteAudiobookAccess\n */\n deleteAudiobookAccess: {\n methodKind: \"unary\";\n input: typeof DeleteAudiobookAccessRequestSchema;\n output: typeof BoolResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_dashboard_v1_audiobooks, 0);\n\n","// @generated by protoc-gen-connect-query v2.3.1 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file public/v1/returns.proto (package public.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ReturnsService } from \"./returns_pb\";\n\n/**\n * @generated from rpc public.v1.ReturnsService.StartReturnSession\n */\nexport const startReturnSession = ReturnsService.method.startReturnSession;\n\n/**\n * @generated from rpc public.v1.ReturnsService.VerifyReturnSession\n */\nexport const verifyReturnSession = ReturnsService.method.verifyReturnSession;\n\n/**\n * @generated from rpc public.v1.ReturnsService.ExchangePanelSession\n */\nexport const exchangePanelSession = ReturnsService.method.exchangePanelSession;\n\n/**\n * @generated from rpc public.v1.ReturnsService.ListReturnOrders\n */\nexport const listReturnOrders = ReturnsService.method.listReturnOrders;\n\n/**\n * @generated from rpc public.v1.ReturnsService.GetReturnableOrder\n */\nexport const getReturnableOrder = ReturnsService.method.getReturnableOrder;\n\n/**\n * @generated from rpc public.v1.ReturnsService.CreateReturnRequest\n */\nexport const createReturnRequest = ReturnsService.method.createReturnRequest;\n\n/**\n * @generated from rpc public.v1.ReturnsService.ListMyReturns\n */\nexport const listMyReturns = ReturnsService.method.listMyReturns;\n\n/**\n * @generated from rpc public.v1.ReturnsService.GetMyReturn\n */\nexport const getMyReturn = ReturnsService.method.getMyReturn;\n","// @generated by protoc-gen-es v2.14.1 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file public/v1/returns.proto (package public.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Environment } from \"../../common/v1/environment_pb\";\nimport { file_common_v1_environment } from \"../../common/v1/environment_pb\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file public/v1/returns.proto.\n */\nexport const file_public_v1_returns: GenFile = /*@__PURE__*/\n fileDesc(\"ChdwdWJsaWMvdjEvcmV0dXJucy5wcm90bxIJcHVibGljLnYxImsKGVN0YXJ0UmV0dXJuU2Vzc2lvblJlcXVlc3QSEgoKcHJvamVjdF9pZBgBIAEoCRINCgVlbWFpbBgCIAEoCRIrCgtlbnZpcm9ubWVudBgDIAEoDjIWLmNvbW1vbi52MS5FbnZpcm9ubWVudCJhChpTdGFydFJldHVyblNlc3Npb25SZXNwb25zZRIUCgxjaGFsbGVuZ2VfaWQYASABKAkSHAoUcmVzZW5kX2FmdGVyX3NlY29uZHMYAiABKAUSDwoHbWVzc2FnZRgDIAEoCSKBAQoaVmVyaWZ5UmV0dXJuU2Vzc2lvblJlcXVlc3QSEgoKcHJvamVjdF9pZBgBIAEoCRIUCgxjaGFsbGVuZ2VfaWQYAiABKAkSDAoEY29kZRgDIAEoCRIrCgtlbnZpcm9ubWVudBgEIAEoDjIWLmNvbW1vbi52MS5FbnZpcm9ubWVudCJkChtWZXJpZnlSZXR1cm5TZXNzaW9uUmVzcG9uc2USFQoNc2Vzc2lvbl90b2tlbhgBIAEoCRIuCgpleHBpcmVzX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJ0ChtFeGNoYW5nZVBhbmVsU2Vzc2lvblJlcXVlc3QSEgoKcHJvamVjdF9pZBgBIAEoCRIUCgxhY2Nlc3NfdG9rZW4YAiABKAkSKwoLZW52aXJvbm1lbnQYAyABKA4yFi5jb21tb24udjEuRW52aXJvbm1lbnQiZQocRXhjaGFuZ2VQYW5lb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ZGVyc1JlcXVlc3QaIy5wdWJsaWMudjEuTGlzdFJldHVybk9yZGVyc1Jlc3BvbnNlEmEKEkdldFJldHVybmFibGVPcmRlchIkLnB1YmxpYy52MS5HZXRSZXR1cm5hYmxlT3JkZXJSZXF1ZXN0GiUucHVibGljLnYxLkdldFJldHVybmFibGVPcmRlclJlc3BvbnNlEmQKE0NyZWF0ZVJldHVyblJlcXVlc3QSJS5wdWJsaWMudjEuQ3JlYXRlUmV0dXJuUmVxdWVzdFJlcXVlc3QaJi5wdWJsaWMudjEuQ3JlYXRlUmV0dXJuUmVxdWVzdFJlc3BvbnNlElIKDUxpc3RNeVJldHVybnMSHy5wdWJsaWMudjEuTGlzdE15UmV0dXJuc1JlcXVlc3QaIC5wdWJsaWMudjEuTGlzdE15UmV0dXJuc1Jlc3BvbnNlEkwKC0dldE15UmV0dXJuEh0ucHVibGljLnYxLkdldE15UmV0dXJuUmVxdWVzdBoeLnB1YmxpYy52MS5HZXRNeVJldHVyblJlc3BvbnNlYgZwcm90bzM\", [file_common_v1_environment, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message public.v1.StartReturnSessionRequest\n */\nexport type StartReturnSessionRequest = Message<\"public.v1.StartReturnSessionRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: common.v1.Environment environment = 3;\n */\n environment: Environment;\n};\n\n/**\n * Describes the message public.v1.StartReturnSessionRequest.\n * Use `create(StartReturnSessionRequestSchema)` to create a new message.\n */\nexport const StartReturnSessionRequestSchema: GenMessage<StartReturnSessionRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 0);\n\n/**\n * @generated from message public.v1.StartReturnSessionResponse\n */\nexport type StartReturnSessionResponse = Message<\"public.v1.StartReturnSessionResponse\"> & {\n /**\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * @generated from field: int32 resend_after_seconds = 2;\n */\n resendAfterSeconds: number;\n\n /**\n * @generated from field: string message = 3;\n */\n message: string;\n};\n\n/**\n * Describes the message public.v1.StartReturnSessionResponse.\n * Use `create(StartReturnSessionResponseSchema)` to create a new message.\n */\nexport const StartReturnSessionResponseSchema: GenMessage<StartReturnSessionResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 1);\n\n/**\n * @generated from message public.v1.VerifyReturnSessionRequest\n */\nexport type VerifyReturnSessionRequest = Message<\"public.v1.VerifyReturnSessionRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string challenge_id = 2;\n */\n challengeId: string;\n\n /**\n * @generated from field: string code = 3;\n */\n code: string;\n\n /**\n * @generated from field: common.v1.Environment environment = 4;\n */\n environment: Environment;\n};\n\n/**\n * Describes the message public.v1.VerifyReturnSessionRequest.\n * Use `create(VerifyReturnSessionRequestSchema)` to create a new message.\n */\nexport const VerifyReturnSessionRequestSchema: GenMessage<VerifyReturnSessionRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 2);\n\n/**\n * @generated from message public.v1.VerifyReturnSessionResponse\n */\nexport type VerifyReturnSessionResponse = Message<\"public.v1.VerifyReturnSessionResponse\"> & {\n /**\n * @generated from field: string session_token = 1;\n */\n sessionToken: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message public.v1.VerifyReturnSessionResponse.\n * Use `create(VerifyReturnSessionResponseSchema)` to create a new message.\n */\nexport const VerifyReturnSessionResponseSchema: GenMessage<VerifyReturnSessionResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 3);\n\n/**\n * Exchanges a customer panel access token for a returns session. The email comes\n * from the server-side panel session, never from the request.\n *\n * @generated from message public.v1.ExchangePanelSessionRequest\n */\nexport type ExchangePanelSessionRequest = Message<\"public.v1.ExchangePanelSessionRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string access_token = 2;\n */\n accessToken: string;\n\n /**\n * @generated from field: common.v1.Environment environment = 3;\n */\n environment: Environment;\n};\n\n/**\n * Describes the message public.v1.ExchangePanelSessionRequest.\n * Use `create(ExchangePanelSessionRequestSchema)` to create a new message.\n */\nexport const ExchangePanelSessionRequestSchema: GenMessage<ExchangePanelSessionRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 4);\n\n/**\n * @generated from message public.v1.ExchangePanelSessionResponse\n */\nexport type ExchangePanelSessionResponse = Message<\"public.v1.ExchangePanelSessionResponse\"> & {\n /**\n * @generated from field: string session_token = 1;\n */\n sessionToken: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message public.v1.ExchangePanelSessionResponse.\n * Use `create(ExchangePanelSessionResponseSchema)` to create a new message.\n */\nexport const ExchangePanelSessionResponseSchema: GenMessage<ExchangePanelSessionResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 5);\n\n/**\n * @generated from message public.v1.ReturnPage\n */\nexport type ReturnPage = Message<\"public.v1.ReturnPage\"> & {\n /**\n * @generated from field: int32 page_size = 1;\n */\n pageSize: number;\n\n /**\n * @generated from field: string page_token = 2;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message public.v1.ReturnPage.\n * Use `create(ReturnPageSchema)` to create a new message.\n */\nexport const ReturnPageSchema: GenMessage<ReturnPage> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 6);\n\n/**\n * @generated from message public.v1.ReturnOrderSummary\n */\nexport type ReturnOrderSummary = Message<\"public.v1.ReturnOrderSummary\"> & {\n /**\n * @generated from field: string canonical_order_id = 1;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: string display_reference = 2;\n */\n displayReference: string;\n\n /**\n * @generated from field: string gateway = 3;\n */\n gateway: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp purchased_at = 4;\n */\n purchasedAt?: Timestamp | undefined;\n\n /**\n * @generated from field: int64 total_minor = 5;\n */\n totalMinor: bigint;\n\n /**\n * @generated from field: string currency = 6;\n */\n currency: string;\n\n /**\n * @generated from field: int32 returnable_line_count = 7;\n */\n returnableLineCount: number;\n};\n\n/**\n * Describes the message public.v1.ReturnOrderSummary.\n * Use `create(ReturnOrderSummarySchema)` to create a new message.\n */\nexport const ReturnOrderSummarySchema: GenMessage<ReturnOrderSummary> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 7);\n\n/**\n * @generated from message public.v1.ListReturnOrdersRequest\n */\nexport type ListReturnOrdersRequest = Message<\"public.v1.ListReturnOrdersRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: int32 page_size = 3;\n */\n pageSize: number;\n\n /**\n * @generated from field: string page_token = 4;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message public.v1.ListReturnOrdersRequest.\n * Use `create(ListReturnOrdersRequestSchema)` to create a new message.\n */\nexport const ListReturnOrdersRequestSchema: GenMessage<ListReturnOrdersRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 8);\n\n/**\n * @generated from message public.v1.ListReturnOrdersResponse\n */\nexport type ListReturnOrdersResponse = Message<\"public.v1.ListReturnOrdersResponse\"> & {\n /**\n * @generated from field: repeated public.v1.ReturnOrderSummary orders = 1;\n */\n orders: ReturnOrderSummary[];\n\n /**\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n\n /**\n * @generated from field: int32 total = 3;\n */\n total: number;\n};\n\n/**\n * Describes the message public.v1.ListReturnOrdersResponse.\n * Use `create(ListReturnOrdersResponseSchema)` to create a new message.\n */\nexport const ListReturnOrdersResponseSchema: GenMessage<ListReturnOrdersResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 9);\n\n/**\n * @generated from message public.v1.ReturnOrderLine\n */\nexport type ReturnOrderLine = Message<\"public.v1.ReturnOrderLine\"> & {\n /**\n * @generated from field: string line_id = 1;\n */\n lineId: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: string variant_id = 3;\n */\n variantId: string;\n\n /**\n * @generated from field: string name = 4;\n */\n name: string;\n\n /**\n * @generated from field: string fulfillment_type = 5;\n */\n fulfillmentType: string;\n\n /**\n * @generated from field: int32 purchased_quantity = 6;\n */\n purchasedQuantity: number;\n\n /**\n * @generated from field: int32 reserved_quantity = 7;\n */\n reservedQuantity: number;\n\n /**\n * @generated from field: int32 returned_quantity = 8;\n */\n returnedQuantity: number;\n\n /**\n * @generated from field: int32 available_quantity = 9;\n */\n availableQuantity: number;\n\n /**\n * @generated from field: int64 regular_unit_minor = 10;\n */\n regularUnitMinor: bigint;\n\n /**\n * @generated from field: int64 paid_unit_minor = 11;\n */\n paidUnitMinor: bigint;\n\n /**\n * @generated from field: string currency = 12;\n */\n currency: string;\n\n /**\n * @generated from field: bool eligible = 13;\n */\n eligible: boolean;\n\n /**\n * @generated from field: string exclusion_reason = 14;\n */\n exclusionReason: string;\n\n /**\n * @generated from field: int64 paid_line_total_minor = 15;\n */\n paidLineTotalMinor: bigint;\n\n /**\n * @generated from field: int64 coupon_allocation_minor = 16;\n */\n couponAllocationMinor: bigint;\n\n /**\n * @generated from field: string access_source = 17;\n */\n accessSource: string;\n\n /**\n * @generated from field: string access_reference = 18;\n */\n accessReference: string;\n};\n\n/**\n * Describes the message public.v1.ReturnOrderLine.\n * Use `create(ReturnOrderLineSchema)` to create a new message.\n */\nexport const ReturnOrderLineSchema: GenMessage<ReturnOrderLine> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 10);\n\n/**\n * @generated from message public.v1.ReturnOrderDetail\n */\nexport type ReturnOrderDetail = Message<\"public.v1.ReturnOrderDetail\"> & {\n /**\n * @generated from field: string canonical_order_id = 1;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: string display_reference = 2;\n */\n displayReference: string;\n\n /**\n * @generated from field: string gateway = 3;\n */\n gateway: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp purchased_at = 4;\n */\n purchasedAt?: Timestamp | undefined;\n\n /**\n * @generated from field: int64 total_minor = 5;\n */\n totalMinor: bigint;\n\n /**\n * @generated from field: string currency = 6;\n */\n currency: string;\n\n /**\n * @generated from field: repeated public.v1.ReturnOrderLine lines = 7;\n */\n lines: ReturnOrderLine[];\n};\n\n/**\n * Describes the message public.v1.ReturnOrderDetail.\n * Use `create(ReturnOrderDetailSchema)` to create a new message.\n */\nexport const ReturnOrderDetailSchema: GenMessage<ReturnOrderDetail> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 11);\n\n/**\n * @generated from message public.v1.ReturnRequestLineInput\n */\nexport type ReturnRequestLineInput = Message<\"public.v1.ReturnRequestLineInput\"> & {\n /**\n * @generated from field: string line_id = 1;\n */\n lineId: string;\n\n /**\n * @generated from field: int32 quantity = 2;\n */\n quantity: number;\n};\n\n/**\n * Describes the message public.v1.ReturnRequestLineInput.\n * Use `create(ReturnRequestLineInputSchema)` to create a new message.\n */\nexport const ReturnRequestLineInputSchema: GenMessage<ReturnRequestLineInput> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 12);\n\n/**\n * @generated from message public.v1.ReturnHistoryEntry\n */\nexport type ReturnHistoryEntry = Message<\"public.v1.ReturnHistoryEntry\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string reference = 2;\n */\n reference: string;\n\n /**\n * @generated from field: string status = 3;\n */\n status: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 4;\n */\n createdAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message public.v1.ReturnHistoryEntry.\n * Use `create(ReturnHistoryEntrySchema)` to create a new message.\n */\nexport const ReturnHistoryEntrySchema: GenMessage<ReturnHistoryEntry> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 13);\n\n/**\n * @generated from message public.v1.ReturnRequestLineView\n */\nexport type ReturnRequestLineView = Message<\"public.v1.ReturnRequestLineView\"> & {\n /**\n * @generated from field: string line_id = 1;\n */\n lineId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string fulfillment_type = 3;\n */\n fulfillmentType: string;\n\n /**\n * @generated from field: int32 requested_quantity = 4;\n */\n requestedQuantity: number;\n\n /**\n * @generated from field: int32 approved_quantity = 5;\n */\n approvedQuantity: number;\n\n /**\n * @generated from field: int32 received_quantity = 6;\n */\n receivedQuantity: number;\n\n /**\n * @generated from field: string access_status = 7;\n */\n accessStatus: string;\n};\n\n/**\n * Describes the message public.v1.ReturnRequestLineView.\n * Use `create(ReturnRequestLineViewSchema)` to create a new message.\n */\nexport const ReturnRequestLineViewSchema: GenMessage<ReturnRequestLineView> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 14);\n\n/**\n * @generated from message public.v1.ReturnRequestView\n */\nexport type ReturnRequestView = Message<\"public.v1.ReturnRequestView\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string reference = 2;\n */\n reference: string;\n\n /**\n * @generated from field: string canonical_order_id = 3;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: string status = 4;\n */\n status: string;\n\n /**\n * @generated from field: string refund_status = 5;\n */\n refundStatus: string;\n\n /**\n * @generated from field: int64 refund_amount_minor = 6;\n */\n refundAmountMinor: bigint;\n\n /**\n * @generated from field: string currency = 7;\n */\n currency: string;\n\n /**\n * @generated from field: string customer_note = 8;\n */\n customerNote: string;\n\n /**\n * @generated from field: int64 version = 9;\n */\n version: bigint;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 10;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * @generated from field: repeated public.v1.ReturnRequestLineView lines = 11;\n */\n lines: ReturnRequestLineView[];\n\n /**\n * @generated from field: repeated public.v1.ReturnHistoryEntry history = 12;\n */\n history: ReturnHistoryEntry[];\n\n /**\n * @generated from field: string return_instructions = 13;\n */\n returnInstructions: string;\n};\n\n/**\n * Describes the message public.v1.ReturnRequestView.\n * Use `create(ReturnRequestViewSchema)` to create a new message.\n */\nexport const ReturnRequestViewSchema: GenMessage<ReturnRequestView> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 15);\n\n/**\n * @generated from message public.v1.GetReturnableOrderRequest\n */\nexport type GetReturnableOrderRequest = Message<\"public.v1.GetReturnableOrderRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: string canonical_order_id = 3;\n */\n canonicalOrderId: string;\n};\n\n/**\n * Describes the message public.v1.GetReturnableOrderRequest.\n * Use `create(GetReturnableOrderRequestSchema)` to create a new message.\n */\nexport const GetReturnableOrderRequestSchema: GenMessage<GetReturnableOrderRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 16);\n\n/**\n * @generated from message public.v1.GetReturnableOrderResponse\n */\nexport type GetReturnableOrderResponse = Message<\"public.v1.GetReturnableOrderResponse\"> & {\n /**\n * @generated from field: public.v1.ReturnOrderDetail order = 1;\n */\n order?: ReturnOrderDetail | undefined;\n\n /**\n * @generated from field: repeated public.v1.ReturnHistoryEntry return_history = 2;\n */\n returnHistory: ReturnHistoryEntry[];\n};\n\n/**\n * Describes the message public.v1.GetReturnableOrderResponse.\n * Use `create(GetReturnableOrderResponseSchema)` to create a new message.\n */\nexport const GetReturnableOrderResponseSchema: GenMessage<GetReturnableOrderResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 17);\n\n/**\n * @generated from message public.v1.CreateReturnRequestRequest\n */\nexport type CreateReturnRequestRequest = Message<\"public.v1.CreateReturnRequestRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: string canonical_order_id = 3;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: repeated public.v1.ReturnRequestLineInput items = 4;\n */\n items: ReturnRequestLineInput[];\n\n /**\n * @generated from field: string note = 5;\n */\n note: string;\n\n /**\n * @generated from field: string idempotency_key = 6;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message public.v1.CreateReturnRequestRequest.\n * Use `create(CreateReturnRequestRequestSchema)` to create a new message.\n */\nexport const CreateReturnRequestRequestSchema: GenMessage<CreateReturnRequestRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 18);\n\n/**\n * @generated from message public.v1.CreateReturnRequestResponse\n */\nexport type CreateReturnRequestResponse = Message<\"public.v1.CreateReturnRequestResponse\"> & {\n /**\n * @generated from field: public.v1.ReturnRequestView request = 1;\n */\n request?: ReturnRequestView | undefined;\n};\n\n/**\n * Describes the message public.v1.CreateReturnRequestResponse.\n * Use `create(CreateReturnRequestResponseSchema)` to create a new message.\n */\nexport const CreateReturnRequestResponseSchema: GenMessage<CreateReturnRequestResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 19);\n\n/**\n * @generated from message public.v1.ListMyReturnsRequest\n */\nexport type ListMyReturnsRequest = Message<\"public.v1.ListMyReturnsRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: int32 page_size = 3;\n */\n pageSize: number;\n\n /**\n * @generated from field: string page_token = 4;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message public.v1.ListMyReturnsRequest.\n * Use `create(ListMyReturnsRequestSchema)` to create a new message.\n */\nexport const ListMyReturnsRequestSchema: GenMessage<ListMyReturnsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 20);\n\n/**\n * @generated from message public.v1.ListMyReturnsResponse\n */\nexport type ListMyReturnsResponse = Message<\"public.v1.ListMyReturnsResponse\"> & {\n /**\n * @generated from field: repeated public.v1.ReturnRequestView returns = 1;\n */\n returns: ReturnRequestView[];\n\n /**\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n\n /**\n * @generated from field: int32 total = 3;\n */\n total: number;\n};\n\n/**\n * Describes the message public.v1.ListMyReturnsResponse.\n * Use `create(ListMyReturnsResponseSchema)` to create a new message.\n */\nexport const ListMyReturnsResponseSchema: GenMessage<ListMyReturnsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 21);\n\n/**\n * @generated from message public.v1.GetMyReturnRequest\n */\nexport type GetMyReturnRequest = Message<\"public.v1.GetMyReturnRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: string return_id = 3;\n */\n returnId: string;\n};\n\n/**\n * Describes the message public.v1.GetMyReturnRequest.\n * Use `create(GetMyReturnRequestSchema)` to create a new message.\n */\nexport const GetMyReturnRequestSchema: GenMessage<GetMyReturnRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 22);\n\n/**\n * @generated from message public.v1.GetMyReturnResponse\n */\nexport type GetMyReturnResponse = Message<\"public.v1.GetMyReturnResponse\"> & {\n /**\n * @generated from field: public.v1.ReturnRequestView request = 1;\n */\n request?: ReturnRequestView | undefined;\n};\n\n/**\n * Describes the message public.v1.GetMyReturnResponse.\n * Use `create(GetMyReturnResponseSchema)` to create a new message.\n */\nexport const GetMyReturnResponseSchema: GenMessage<GetMyReturnResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 23);\n\n/**\n * @generated from service public.v1.ReturnsService\n */\nexport const ReturnsService: GenService<{\n /**\n * @generated from rpc public.v1.ReturnsService.StartReturnSession\n */\n startReturnSession: {\n methodKind: \"unary\";\n input: typeof StartReturnSessionRequestSchema;\n output: typeof StartReturnSessionResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.VerifyReturnSession\n */\n verifyReturnSession: {\n methodKind: \"unary\";\n input: typeof VerifyReturnSessionRequestSchema;\n output: typeof VerifyReturnSessionResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.ExchangePanelSession\n */\n exchangePanelSession: {\n methodKind: \"unary\";\n input: typeof ExchangePanelSessionRequestSchema;\n output: typeof ExchangePanelSessionResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.ListReturnOrders\n */\n listReturnOrders: {\n methodKind: \"unary\";\n input: typeof ListReturnOrdersRequestSchema;\n output: typeof ListReturnOrdersResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.GetReturnableOrder\n */\n getReturnableOrder: {\n methodKind: \"unary\";\n input: typeof GetReturnableOrderRequestSchema;\n output: typeof GetReturnableOrderResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.CreateReturnRequest\n */\n createReturnRequest: {\n methodKind: \"unary\";\n input: typeof CreateReturnRequestRequestSchema;\n output: typeof CreateReturnRequestResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.ListMyReturns\n */\n listMyReturns: {\n methodKind: \"unary\";\n input: typeof ListMyReturnsRequestSchema;\n output: typeof ListMyReturnsResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.GetMyReturn\n */\n getMyReturn: {\n methodKind: \"unary\";\n input: typeof GetMyReturnRequestSchema;\n output: typeof GetMyReturnResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_public_v1_returns, 0);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file common/v1/environment.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc } from \"@bufbuild/protobuf/codegenv2\";\n\n/**\n * Describes the file common/v1/environment.proto.\n */\nexport const file_common_v1_environment: GenFile = /*@__PURE__*/\n fileDesc(\"Chtjb21tb24vdjEvZW52aXJvbm1lbnQucHJvdG8SCWNvbW1vbi52MSonCgtFbnZpcm9ubWVudBIOCgpQUk9EVUNUSU9OEAASCAoEVEVTVBABQk5aTGdpdGh1Yi5jb20vZW1tZW1zL3N1cGVyLWNhcnQvYXBwcy9zcnYtd29ya2VyL3V0aWxzL21vZGVscy9jb21tb24vdjE7Y29tbW9udjFiBnByb3RvMw\");\n\n/**\n * @generated from enum common.v1.Environment\n */\nexport enum Environment {\n /**\n * @generated from enum value: PRODUCTION = 0;\n */\n PRODUCTION = 0,\n\n /**\n * @generated from enum value: TEST = 1;\n */\n TEST = 1,\n}\n\n/**\n * Describes the enum common.v1.Environment.\n */\nexport const EnvironmentSchema: GenEnum<Environment> = /*@__PURE__*/\n enumDesc(file_common_v1_environment, 0);\n\n","import type { ReturnsTextKey } from \"./texts\";\n\n/** Backend error code that means the returns session is gone. */\nexport const SESSION_EXPIRED = \"SESSION_EXPIRED\";\n\nconst ERROR_TEXT_KEYS: Record<string, ReturnsTextKey> = {\n INVALID_EMAIL: \"errorInvalidEmail\",\n INVALID_OR_EXPIRED_CODE: \"errorInvalidCode\",\n SESSION_EXPIRED: \"errorSessionExpired\",\n ORDER_NOT_FOUND: \"errorOrderNotFound\",\n RETURN_NOT_FOUND: \"errorReturnNotFound\",\n QUANTITY_UNAVAILABLE: \"errorQuantityUnavailable\",\n ITEM_NOT_RETURNABLE: \"errorItemNotReturnable\",\n INVALID_RETURN_ITEMS: \"errorItemNotReturnable\",\n RETURNS_DISABLED: \"errorReturnsDisabled\",\n SUBMISSION_RATE_LIMITED: \"errorRateLimited\",\n IDEMPOTENCY_CONFLICT: \"errorIdempotencyConflict\",\n VERIFICATION_DELIVERY_FAILED: \"errorDeliveryFailed\",\n};\n\n/**\n * Backend error code of a failed RPC. `ConnectError.rawMessage` carries it; for\n * other errors the message is searched for a known code.\n */\nexport function getReturnsErrorCode(error: unknown): string | undefined {\n if (error == null || typeof error !== \"object\") {\n return undefined;\n }\n\n const { rawMessage, message } = error as {\n rawMessage?: unknown;\n message?: unknown;\n };\n\n if (typeof rawMessage === \"string\" && rawMessage.length > 0) {\n return rawMessage;\n }\n\n if (typeof message === \"string\") {\n return Object.keys(ERROR_TEXT_KEYS).find((code) => message.includes(code));\n }\n\n return undefined;\n}\n\nexport function isSessionExpiredError(error: unknown): boolean {\n return getReturnsErrorCode(error) === SESSION_EXPIRED;\n}\n\n/** Maps any failure to the text key of a customer facing message. */\nexport function mapReturnsError(error: unknown): ReturnsTextKey {\n const code = getReturnsErrorCode(error);\n\n return (code != null ? ERROR_TEXT_KEYS[code] : undefined) ?? \"errorGeneric\";\n}\n","/**\n * New idempotency key for one return submission. Uses `crypto.randomUUID`\n * where available and falls back to random bytes (or `Math.random` as the last\n * resort) so older browsers and non-secure contexts keep working. Keys stay\n * well below the 128 character backend limit.\n */\nexport function createIdempotencyKey(): string {\n const cryptoObject: Crypto | undefined =\n typeof globalThis !== \"undefined\" ? globalThis.crypto : undefined;\n\n if (typeof cryptoObject?.randomUUID === \"function\") {\n return cryptoObject.randomUUID();\n }\n\n const bytes = new Uint8Array(16);\n if (typeof cryptoObject?.getRandomValues === \"function\") {\n cryptoObject.getRandomValues(bytes);\n } else {\n for (let i = 0; i < bytes.length; i++) {\n bytes[i] = Math.floor(Math.random() * 256);\n }\n }\n\n return Array.from(bytes, (byte) => byte.toString(16).padStart(2, \"0\")).join(\n \"\",\n );\n}\n","function parseHex(value: string): [number, number, number] | undefined {\n const match = /^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(value);\n if (match == null) {\n return undefined;\n }\n let hex = match[1];\n if (hex.length <= 4) {\n hex = hex\n .split(\"\")\n .map((char) => char + char)\n .join(\"\");\n }\n return [\n parseInt(hex.slice(0, 2), 16),\n parseInt(hex.slice(2, 4), 16),\n parseInt(hex.slice(4, 6), 16),\n ];\n}\n\nfunction parseRgb(value: string): [number, number, number] | undefined {\n const match =\n /^rgba?\\(\\s*(\\d{1,3})[\\s,]+(\\d{1,3})[\\s,]+(\\d{1,3})(?:[\\s,/]+[\\d.%]+)?\\s*\\)$/i.exec(\n value,\n );\n if (match == null) {\n return undefined;\n }\n const channels = [match[1], match[2], match[3]].map(Number);\n return channels.every((channel) => channel <= 255)\n ? (channels as [number, number, number])\n : undefined;\n}\n\nfunction linearize(channel: number): number {\n const value = channel / 255;\n return value <= 0.03928 ? value / 12.92 : ((value + 0.055) / 1.055) ** 2.4;\n}\n\n/**\n * Text color that stays readable on a brand color: white or near black,\n * whichever has the higher WCAG contrast. `undefined` when the color is not a\n * hex or `rgb()` value.\n */\nexport function readableForeground(color: string): string | undefined {\n const trimmed = color.trim();\n const rgb = parseHex(trimmed) ?? parseRgb(trimmed);\n if (rgb == null) {\n return undefined;\n }\n const [r, g, b] = rgb.map(linearize);\n const luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n // Contrast against white (1.05 / (L + 0.05)) versus against black.\n const whiteContrast = 1.05 / (luminance + 0.05);\n const blackContrast = (luminance + 0.05) / 0.05;\n return whiteContrast >= blackContrast ? \"#ffffff\" : \"#18181b\";\n}\n\n/**\n * Appearance tokens derived from one brand color: button background, focus\n * ring and, when the color can be parsed, a readable button foreground.\n */\nexport function brandColorTokens(color: string): {\n buttonBackground: string;\n focusRing: string;\n buttonForeground?: string;\n} {\n const foreground = readableForeground(color);\n return {\n buttonBackground: color,\n focusRing: color,\n ...(foreground != null ? { buttonForeground: foreground } : {}),\n };\n}\n","import { Environment } from \"@/src/gen/proto/common/v1/environment_pb\";\nimport type { ReturnsAppearance } from \"./appearance\";\nimport { brandColorTokens } from \"./color\";\nimport type { ReturnsTexts } from \"./texts\";\n\n/**\n * Compatibility layer for the `bitsnap-react` 1.6.0 returns widget. Everything\n * here is pure; the components and hooks apply it at their boundary.\n */\n\n/** Environment as a string or as the proto enum used by 1.6.0. */\nexport type ReturnsEnvironmentInput = \"production\" | \"test\" | Environment;\n\n/** Text keys of the 1.6.0 widget. */\nexport type LegacyReturnsTexts = Partial<{\n title: string;\n email: string;\n sendCode: string;\n code: string;\n verify: string;\n orders: string;\n submit: string;\n note: string;\n loading: string;\n history: string;\n}>;\n\n/** Our text keys plus the 1.6.0 ones. Our keys win when both are given. */\nexport type ReturnsTextsInput = Partial<ReturnsTexts> & LegacyReturnsTexts;\n\n/** 1.6.0 `theme` prop. */\nexport type LegacyReturnsTheme = { brandColor?: string };\n\n/** Backend environment for a string or enum value. Defaults to production. */\nexport function resolveReturnsEnvironment(\n environment?: ReturnsEnvironmentInput,\n): Environment {\n return environment === \"test\" || environment === Environment.TEST\n ? Environment.TEST\n : Environment.PRODUCTION;\n}\n\nconst LEGACY_TEXT_KEYS: Record<\n Exclude<keyof LegacyReturnsTexts, \"loading\">,\n readonly (keyof ReturnsTexts)[]\n> = {\n title: [\"emailStepTitle\"],\n email: [\"emailLabel\"],\n sendCode: [\"emailSubmit\"],\n code: [\"codeLabel\"],\n verify: [\"codeSubmit\"],\n orders: [\"ordersTitle\"],\n submit: [\"confirmationSubmit\"],\n note: [\"noteLabel\"],\n history: [\"myReturnsTitle\", \"myReturnsLink\"],\n};\n\n/**\n * Maps 1.6.0 text keys onto ours. A key of the new API always wins over the\n * legacy key that maps to it. `loading` has the same name in both.\n */\nexport function mapLegacyTexts(\n texts: ReturnsTextsInput | undefined,\n): Partial<ReturnsTexts> | undefined {\n if (texts == null) {\n return undefined;\n }\n\n const result: Partial<ReturnsTexts> = {};\n for (const [legacyKey, targets] of Object.entries(LEGACY_TEXT_KEYS) as [\n keyof typeof LEGACY_TEXT_KEYS,\n readonly (keyof ReturnsTexts)[],\n ][]) {\n const value = texts[legacyKey];\n if (typeof value === \"string\") {\n for (const target of targets) {\n result[target] = value;\n }\n }\n }\n\n for (const key of Object.keys(texts) as (keyof ReturnsTextsInput)[]) {\n if (key in LEGACY_TEXT_KEYS) {\n continue;\n }\n const value = texts[key];\n if (typeof value === \"string\") {\n result[key as keyof ReturnsTexts] = value;\n }\n }\n\n return result;\n}\n\n/**\n * Appearance with the 1.6.0 `brandColor` applied as button background, focus\n * ring and readable button foreground. Explicit `appearance.tokens` win.\n */\nexport function resolveBrandAppearance(\n appearance: ReturnsAppearance | undefined,\n theme: LegacyReturnsTheme | undefined,\n): ReturnsAppearance | undefined {\n const color = theme?.brandColor?.trim();\n if (color == null || color === \"\") {\n return appearance;\n }\n return {\n ...appearance,\n tokens: { ...brandColorTokens(color), ...appearance?.tokens },\n };\n}\n\n/** Arguments of the paged hooks in either call style. */\nexport type PagedArguments = {\n pageSize: number;\n /** Explicit page token of the positional (1.6.0) form. */\n explicitPageToken: string | undefined;\n};\n\n/**\n * Normalizes `(pageSize?, pageToken?)` (1.6.0) and `({ pageSize })` (ours).\n * Both forms default to 20 items, like 1.6.0.\n */\nexport function resolvePagedArguments(\n first: number | { pageSize?: number } | undefined,\n pageToken: string | undefined,\n): PagedArguments {\n if (typeof first === \"object\" && first != null) {\n return { pageSize: first.pageSize ?? 20, explicitPageToken: undefined };\n }\n if (typeof first === \"number\" || pageToken !== undefined) {\n return { pageSize: first ?? 20, explicitPageToken: pageToken ?? \"\" };\n }\n return { pageSize: 20, explicitPageToken: undefined };\n}\n","import { createClient } from \"@connectrpc/connect\";\nimport {\n createConnectQueryKey,\n TransportProvider,\n} from \"@connectrpc/connect-query\";\nimport {\n QueryClient,\n QueryClientContext,\n QueryClientProvider,\n useQueryClient,\n} from \"@tanstack/react-query\";\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport type { CSSProperties, ReactNode } from \"react\";\nimport { Environment } from \"@/src/gen/proto/common/v1/environment_pb\";\nimport { ReturnsService } from \"@/src/gen/proto/public/v1/returns_pb\";\nimport { cn } from \"@/src/lib/utils\";\nimport { getRpcTransport, getTransportHost } from \"@/src/rpc-provider\";\nimport type { Transport } from \"@connectrpc/connect\";\nimport type { ReturnsAppearance } from \"./appearance\";\nimport {\n ReturnsAppearanceProvider,\n useReturnsAppearance,\n useReturnsSlot,\n} from \"./appearance.context\";\nimport {\n clearStoredSession,\n expiryToMillis,\n getBrowserSessionStorage,\n readStoredSession,\n writeStoredSession,\n type StoredReturnsSession,\n} from \"./session-storage\";\nimport {\n mapLegacyTexts,\n resolveBrandAppearance,\n resolveReturnsEnvironment,\n type LegacyReturnsTheme,\n type ReturnsEnvironmentInput,\n type ReturnsTextsInput,\n} from \"./legacy\";\nimport { ReturnsTextsProvider } from \"./texts.context\";\n\n/**\n * Backend environment the returns calls run against. The library has no other\n * environment switch for public API calls, so this defaults to `\"production\"`.\n */\nexport type ReturnsEnvironment = \"production\" | \"test\";\n\nexport type ReturnsSessionStatus =\n /** Server render and first client render: storage has not been read yet. */\n | \"hydrating\"\n /** A `panelAccessToken` is being exchanged for a returns session. */\n | \"exchanging\"\n | \"anonymous\"\n | \"authenticated\";\n\n/** A pending email verification. */\nexport type ReturnsChallenge = {\n challengeId: string;\n email: string;\n /** Unix milliseconds when the next code may be requested. */\n resendAvailableAt: number;\n};\n\nexport type ReturnsContextValue = {\n projectID: string;\n environment: Environment;\n status: ReturnsSessionStatus;\n /** Session token. Never log it. */\n token: string | undefined;\n /** Failure of the last panel token exchange, if any. */\n exchangeError: unknown;\n challenge: ReturnsChallenge | undefined;\n setChallenge: (challenge: ReturnsChallenge | undefined) => void;\n /** Stores a freshly issued session in state and `sessionStorage`. */\n authenticate: (session: StoredReturnsSession) => void;\n /** Drops the session, the pending challenge and cached customer data. */\n clearSession: () => void;\n};\n\nconst ReturnsContext = createContext<ReturnsContextValue | undefined>(\n undefined,\n);\n\n/**\n * Context of the nearest `ReturnsProvider`. Throws a clear error outside of\n * it, naming the component or hook that was misplaced.\n */\nexport function useReturnsContext(name: string): ReturnsContextValue {\n const value = useContext(ReturnsContext);\n\n if (value == null) {\n throw new Error(`${name} must be rendered inside <ReturnsProvider>`);\n }\n\n return value;\n}\n\nexport type ReturnsProviderProps = {\n /** Bitsnap project ID. */\n projectID: string;\n /**\n * API host. Defaults to the host set with `setCustomHost`/`setHost`, then to\n * `https://bitsnap.pl`. Each provider keeps its own transport.\n */\n host?: string;\n /**\n * Backend environment, `\"production\"` unless set to `\"test\"`. The proto\n * `Environment` enum is accepted too.\n */\n environment?: ReturnsEnvironmentInput;\n /** Theme, tokens and per-element overrides. */\n appearance?: ReturnsAppearance;\n /**\n * Text overrides, applied whatever the locale. The keys of `bitsnap-react`\n * 1.6.0 (`title`, `email`, `sendCode`, ...) are accepted too; our own keys\n * win when both are given.\n */\n texts?: ReturnsTextsInput;\n /** `bitsnap-react` 1.6.0 brand color. Explicit `appearance.tokens` win. */\n theme?: LegacyReturnsTheme;\n /** Locale of texts, dates and money. Defaults to the library locale. */\n locale?: string;\n /**\n * Customer panel access token. When set, it is exchanged for a returns\n * session on mount, so the customer needs no second verification code.\n * Changing or removing it drops the session.\n */\n panelAccessToken?: string;\n /** Class of the themed root element. */\n className?: string;\n children?: ReactNode;\n};\n\n/** Key prefix that matches every returns query, for invalidation and removal. */\nexport function returnsQueryKey(): readonly unknown[] {\n return createConnectQueryKey({\n schema: ReturnsService,\n cardinality: undefined,\n });\n}\n\n/** Longest delay `setTimeout` accepts. */\nconst MAX_TIMEOUT_MS = 2 ** 31 - 1;\n\nfunction SessionProvider({\n projectID,\n environment,\n transport,\n panelAccessToken,\n className,\n children,\n}: {\n projectID: string;\n environment: Environment;\n transport: Transport;\n panelAccessToken?: string;\n className?: string;\n children?: ReactNode;\n}) {\n const queryClient = useQueryClient();\n const { boundaryClassName, boundaryStyle } = useReturnsAppearance();\n const root = useReturnsSlot(\"root\");\n\n const [session, setSession] = useState<{\n status: ReturnsSessionStatus;\n token?: string;\n expiresAt?: number;\n }>({ status: \"hydrating\" });\n const [exchangeError, setExchangeError] = useState<unknown>();\n const [challenge, setChallenge] = useState<ReturnsChallenge>();\n const previousPanelToken = useRef<string | undefined>(undefined);\n\n const dropCachedData = useCallback(() => {\n // Query inputs carry the session token, so cached customer data must not\n // outlive the session. Only returns queries are touched.\n queryClient.removeQueries({ queryKey: returnsQueryKey() });\n }, [queryClient]);\n\n const clearSession = useCallback(() => {\n clearStoredSession(getBrowserSessionStorage(), projectID);\n setChallenge(undefined);\n setSession({ status: \"anonymous\" });\n dropCachedData();\n }, [projectID, dropCachedData]);\n\n const authenticate = useCallback(\n (next: StoredReturnsSession) => {\n writeStoredSession(getBrowserSessionStorage(), projectID, next);\n setExchangeError(undefined);\n setChallenge(undefined);\n setSession({\n status: \"authenticated\",\n token: next.token,\n expiresAt: next.expiresAt,\n });\n },\n [projectID],\n );\n\n // Hydrates from `sessionStorage`, or exchanges the panel token. Runs after\n // mount, so render never touches `window`.\n useEffect(() => {\n let cancelled = false;\n const storage = getBrowserSessionStorage();\n\n if (panelAccessToken == null || panelAccessToken === \"\") {\n const hadPanelToken = previousPanelToken.current != null;\n previousPanelToken.current = undefined;\n\n if (hadPanelToken) {\n clearSession();\n return;\n }\n\n const stored = readStoredSession(storage, projectID);\n setSession(\n stored != null\n ? {\n status: \"authenticated\",\n token: stored.token,\n expiresAt: stored.expiresAt,\n }\n : { status: \"anonymous\" },\n );\n return;\n }\n\n previousPanelToken.current = panelAccessToken;\n clearStoredSession(storage, projectID);\n dropCachedData();\n setExchangeError(undefined);\n setSession({ status: \"exchanging\" });\n\n createClient(ReturnsService, transport)\n .exchangePanelSession({\n projectId: projectID,\n accessToken: panelAccessToken,\n environment,\n })\n .then((response) => {\n if (cancelled) {\n return;\n }\n const expiresAt = expiryToMillis(response.expiresAt);\n if (response.sessionToken === \"\" || expiresAt == null) {\n throw new Error(\"EMPTY_SESSION\");\n }\n authenticate({ token: response.sessionToken, expiresAt });\n })\n .catch((error: unknown) => {\n if (cancelled) {\n return;\n }\n setExchangeError(error);\n setSession({ status: \"anonymous\" });\n });\n\n return () => {\n cancelled = true;\n };\n // `clearSession`, `authenticate` and `dropCachedData` only change with the\n // project or the query client, which are already covered.\n }, [panelAccessToken, projectID, environment, transport]);\n\n // Expired sessions are dropped even when the page stays open.\n useEffect(() => {\n if (session.status !== \"authenticated\" || session.expiresAt == null) {\n return;\n }\n const remaining = session.expiresAt - Date.now();\n if (remaining <= 0) {\n clearSession();\n return;\n }\n const timer = setTimeout(\n clearSession,\n Math.min(remaining, MAX_TIMEOUT_MS),\n );\n return () => clearTimeout(timer);\n }, [session.status, session.expiresAt, clearSession]);\n\n const value = useMemo<ReturnsContextValue>(\n () => ({\n projectID,\n environment,\n status: session.status,\n token: session.token,\n exchangeError,\n challenge,\n setChallenge,\n authenticate,\n clearSession,\n }),\n [\n projectID,\n environment,\n session.status,\n session.token,\n exchangeError,\n challenge,\n authenticate,\n clearSession,\n ],\n );\n\n return (\n <ReturnsContext.Provider value={value}>\n <div\n data-bitsnap-returns=\"root\"\n data-bitsnap-returns-slot=\"root\"\n className={cn(\"bitsnap-react\", boundaryClassName, className, root.className)}\n style={{ ...boundaryStyle, ...root.style } as CSSProperties}\n >\n {children}\n </div>\n </ReturnsContext.Provider>\n );\n}\n\n/**\n * Holds everything the returns views share: the per-instance transport, the\n * query client (when the app has none), appearance, texts and the returns\n * session. It renders the themed root element, so step components composed\n * under it are themed without extra markup.\n *\n * ```tsx\n * <ReturnsProvider projectID=\"…\" appearance={brand}>\n * <ReturnsOrderList onSelectOrder={setOrderId} />\n * </ReturnsProvider>\n * ```\n */\nexport function ReturnsProvider({\n projectID,\n host,\n environment,\n appearance,\n texts,\n theme,\n locale,\n panelAccessToken,\n className,\n children,\n}: ReturnsProviderProps) {\n const existingQueryClient = useContext(QueryClientContext);\n const [ownQueryClient] = useState(() =>\n existingQueryClient == null\n ? new QueryClient({ defaultOptions: { queries: { staleTime: 5000 } } })\n : undefined,\n );\n\n const resolvedHost = host ?? getTransportHost();\n const transport = useMemo(\n () => getRpcTransport(resolvedHost),\n [resolvedHost],\n );\n\n const brandColor = theme?.brandColor;\n const resolvedAppearance = useMemo(\n () => resolveBrandAppearance(appearance, { brandColor }),\n [appearance, brandColor],\n );\n const resolvedTexts = useMemo(() => mapLegacyTexts(texts), [texts]);\n\n const content = (\n <TransportProvider transport={transport}>\n <ReturnsAppearanceProvider appearance={resolvedAppearance}>\n <ReturnsTextsProvider texts={resolvedTexts} locale={locale}>\n <SessionProvider\n projectID={projectID}\n environment={resolveReturnsEnvironment(environment)}\n transport={transport}\n panelAccessToken={panelAccessToken}\n className={className}\n >\n {children}\n </SessionProvider>\n </ReturnsTextsProvider>\n </ReturnsAppearanceProvider>\n </TransportProvider>\n );\n\n return existingQueryClient == null && ownQueryClient != null ? (\n <QueryClientProvider client={ownQueryClient}>{content}</QueryClientProvider>\n ) : (\n content\n );\n}\n\n/** Name of {@link ReturnsProvider} in `bitsnap-react` 1.6.0. */\nexport const BitsnapReturnsProvider = ReturnsProvider;\n\nexport type BitsnapReturnsProviderProps = ReturnsProviderProps;\n","import { timestampMs, type Timestamp } from \"@bufbuild/protobuf/wkt\";\n\n/** Returns session as kept in `sessionStorage`. */\nexport type StoredReturnsSession = {\n token: string;\n /** Expiry as unix milliseconds. */\n expiresAt: number;\n};\n\n/** The part of `Storage` the session code needs. */\nexport type SessionStorageLike = Pick<\n Storage,\n \"getItem\" | \"setItem\" | \"removeItem\"\n>;\n\nconst KEY_PREFIX = \"bitsnap-returns-session:\";\n\n/** One key per project, so projects on the same page never share a session. */\nexport function sessionStorageKey(projectID: string): string {\n return `${KEY_PREFIX}${projectID}`;\n}\n\n/**\n * `window.sessionStorage` when it is usable, otherwise `undefined`. Safe to\n * call on the server and where storage access throws (blocked cookies).\n */\nexport function getBrowserSessionStorage(): SessionStorageLike | undefined {\n try {\n return typeof window !== \"undefined\" ? window.sessionStorage : undefined;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Reads the stored session. Malformed and expired entries are removed and\n * reported as no session.\n */\nexport function readStoredSession(\n storage: SessionStorageLike | undefined,\n projectID: string,\n now: number = Date.now(),\n): StoredReturnsSession | undefined {\n if (storage == null) {\n return undefined;\n }\n\n const key = sessionStorageKey(projectID);\n\n try {\n const raw = storage.getItem(key);\n if (raw == null) {\n return undefined;\n }\n\n const parsed: unknown = JSON.parse(raw);\n if (\n parsed != null &&\n typeof parsed === \"object\" &&\n typeof (parsed as StoredReturnsSession).token === \"string\" &&\n (parsed as StoredReturnsSession).token.length > 0 &&\n typeof (parsed as StoredReturnsSession).expiresAt === \"number\" &&\n (parsed as StoredReturnsSession).expiresAt > now\n ) {\n const { token, expiresAt } = parsed as StoredReturnsSession;\n return { token, expiresAt };\n }\n\n storage.removeItem(key);\n } catch {\n try {\n storage.removeItem(key);\n } catch {\n // Storage is unusable; nothing else to clean up.\n }\n }\n\n return undefined;\n}\n\nexport function writeStoredSession(\n storage: SessionStorageLike | undefined,\n projectID: string,\n session: StoredReturnsSession,\n): void {\n try {\n storage?.setItem(sessionStorageKey(projectID), JSON.stringify(session));\n } catch {\n // The session still works in memory when storage is full or blocked.\n }\n}\n\nexport function clearStoredSession(\n storage: SessionStorageLike | undefined,\n projectID: string,\n): void {\n try {\n storage?.removeItem(sessionStorageKey(projectID));\n } catch {\n // Nothing to do when storage is blocked.\n }\n}\n\n/** Expiry of a backend session in unix milliseconds, `undefined` when missing. */\nexport function expiryToMillis(\n expiresAt: Timestamp | undefined,\n): number | undefined {\n return expiresAt == null ? undefined : timestampMs(expiresAt);\n}\n","import { createContext, useCallback, useContext, useMemo } from \"react\";\nimport type { ReactNode } from \"react\";\nimport { getLocale } from \"@/src/components/checkout/locale\";\nimport {\n fillText,\n resolveReturnsTexts,\n type ReturnsTextKey,\n type ReturnsTexts,\n} from \"./texts\";\n\ntype ReturnsTextsContextValue = {\n /** Active locale (the `locale` prop or the library locale). */\n locale: string;\n texts: ReturnsTexts;\n};\n\nconst ReturnsTextsContext = createContext<ReturnsTextsContextValue>({\n locale: \"pl-PL\",\n texts: resolveReturnsTexts(\"pl-PL\"),\n});\n\n/**\n * Returns scoped texts provider. Carries the `texts` overrides and the\n * `locale` prop down to the returns tree.\n */\nexport function ReturnsTextsProvider({\n texts,\n locale,\n children,\n}: {\n texts?: Partial<ReturnsTexts>;\n locale?: string;\n children: ReactNode;\n}) {\n const activeLocale = locale ?? getLocale();\n const value = useMemo(\n () => ({\n locale: activeLocale,\n texts: resolveReturnsTexts(activeLocale, texts),\n }),\n [activeLocale, texts],\n );\n\n return (\n <ReturnsTextsContext.Provider value={value}>\n {children}\n </ReturnsTextsContext.Provider>\n );\n}\n\n/**\n * Returns a lookup for the returns strings: the caller override when provided,\n * otherwise the default for the locale. Optional `values` fill `{placeholders}`.\n */\nexport function useReturnsText(): (\n key: ReturnsTextKey,\n values?: Record<string, string | number>,\n) => string {\n const { texts } = useContext(ReturnsTextsContext);\n\n return useCallback(\n (key, values) =>\n values == null ? texts[key] : fillText(texts[key], values),\n [texts],\n );\n}\n\n/** Active locale of the returns views, for date and money formatting. */\nexport function useReturnsLocale(): string {\n return useContext(ReturnsTextsContext).locale;\n}\n","/**\n * Shared text machinery: typed string tables per locale, the locale fallback\n * and a merge with caller overrides. Each module (checkout, later returns)\n * supplies its own key type and default tables.\n */\n\n/** Strings of one locale, keyed by text key. */\nexport type TextTable<Key extends string> = Record<Key, string>;\n\n/** Default tables for the supported locales. */\nexport type LocaleTables<Key extends string> = {\n en: TextTable<Key>;\n pl: TextTable<Key>;\n};\n\n/**\n * Picks the table for a locale. Any locale starting with `en` (case\n * insensitive, so `en`, `en-US`, `EN-gb`) gets English; everything else,\n * including unknown locales, gets the Polish default.\n */\nexport function pickLocaleTable<Key extends string>(\n tables: LocaleTables<Key>,\n locale: string,\n): TextTable<Key> {\n return locale.toLowerCase().startsWith(\"en\") ? tables.en : tables.pl;\n}\n\n/**\n * Merges caller overrides over a table. Overrides apply regardless of the\n * locale; `undefined`/`null` entries are ignored so the default stays.\n */\nexport function mergeTexts<Key extends string>(\n table: TextTable<Key>,\n overrides?: Partial<TextTable<Key>>,\n): TextTable<Key> {\n const result: Record<string, string> = { ...table };\n\n if (overrides != null) {\n for (const [key, value] of Object.entries<string | undefined>(overrides)) {\n if (value != null) {\n result[key] = value;\n }\n }\n }\n\n return result as TextTable<Key>;\n}\n\n/** Locale table merged with the caller overrides. */\nexport function resolveTexts<Key extends string>(\n tables: LocaleTables<Key>,\n locale: string,\n overrides?: Partial<TextTable<Key>>,\n): TextTable<Key> {\n return mergeTexts(pickLocaleTable(tables, locale), overrides);\n}\n\n/** Looks up a single text. Unknown keys return the key itself. */\nexport function lookupText<Key extends string>(\n texts: TextTable<Key>,\n key: Key,\n): string {\n return (texts as Record<string, string | undefined>)[key] ?? key;\n}\n","import { pickLocaleTable } from \"@/src/lib/texts\";\nimport { CHECKOUT_TEXT_TABLES } from \"./texts\";\n\nexport const DEFAULT_LOCALE = \"pl-PL\" as const;\nconst localeStorageKey = \"bitsnap-locale\";\n\nlet activeLocale: string | undefined;\n\nexport function setLocale(locale?: string): void {\n const value = locale?.trim();\n activeLocale = value\n ? value.toLowerCase() === \"en\"\n ? \"en-US\"\n : value.toLowerCase() === \"pl\"\n ? DEFAULT_LOCALE\n : value\n : undefined;\n if (typeof localStorage !== \"undefined\") {\n if (activeLocale == null) {\n localStorage.removeItem(localeStorageKey);\n } else {\n localStorage.setItem(localeStorageKey, activeLocale);\n }\n }\n}\n\nexport function getLocale(): string {\n if (activeLocale != null) {\n return activeLocale;\n }\n if (typeof localStorage !== \"undefined\") {\n return localStorage.getItem(localeStorageKey) ?? DEFAULT_LOCALE;\n }\n return DEFAULT_LOCALE;\n}\n\nexport function translate(key: string, locale: string = getLocale()): string {\n return (\n (pickLocaleTable(CHECKOUT_TEXT_TABLES, locale) as Record<string, string>)[\n key\n ] ?? key\n );\n}\n","import { lookupText, resolveTexts, type LocaleTables } from \"@/src/lib/texts\";\n\n/**\n * Every string the returns views render. Pass a partial object through the\n * `texts` prop of `BitsnapReturns`/`ReturnsProvider` to override any of them,\n * whatever the locale. Strings with `{name}` placeholders keep them in\n * overrides; unknown placeholders are left untouched.\n */\nexport type ReturnsTexts = {\n // Frame\n /** Label of the back buttons. */\n back: string;\n /** Step indicator, placeholders `{current}` and `{total}`. */\n stepIndicator: string;\n /** Skeleton accessible label. */\n loading: string;\n /** Button that opens the list of previous returns. */\n myReturnsLink: string;\n\n // Email step\n emailStepTitle: string;\n emailStepDescription: string;\n emailLabel: string;\n emailPlaceholder: string;\n emailSubmit: string;\n\n // Code step\n codeStepTitle: string;\n /** Placeholder `{email}`. */\n codeStepDescription: string;\n codeLabel: string;\n codeSubmit: string;\n resend: string;\n /** Placeholder `{seconds}`. */\n resendIn: string;\n logout: string;\n\n // Orders\n ordersTitle: string;\n ordersDescription: string;\n ordersEmpty: string;\n /** Placeholder `{reference}`. */\n orderTitle: string;\n /** Placeholder `{count}`. */\n orderReturnableLines: string;\n orderSelect: string;\n paginationPrevious: string;\n paginationNext: string;\n /** Placeholders `{page}` and `{total}` (number of orders). */\n paginationInfo: string;\n\n // Order detail\n /** Placeholder `{reference}`. */\n orderDetailTitle: string;\n orderDetailDescription: string;\n /** Placeholder `{name}`. */\n quantityLabel: string;\n /** Placeholder `{name}`. */\n quantityDecrease: string;\n /** Placeholder `{name}`. */\n quantityIncrease: string;\n /** Placeholder `{available}`. */\n quantityOfAvailable: string;\n /** Shown for an ineligible line without a reason from the backend. */\n lineIneligibleFallback: string;\n noteLabel: string;\n notePlaceholder: string;\n selectionContinue: string;\n selectionEmpty: string;\n previousReturnsTitle: string;\n\n // Confirmation\n confirmationTitle: string;\n confirmationDescription: string;\n confirmationSummary: string;\n /** Placeholder `{quantity}`. */\n confirmationQuantity: string;\n confirmationNote: string;\n confirmationSubmit: string;\n\n // Result\n successTitle: string;\n successDescription: string;\n successReference: string;\n successInstructions: string;\n successDone: string;\n\n // My returns\n myReturnsTitle: string;\n myReturnsDescription: string;\n myReturnsEmpty: string;\n myReturnOpen: string;\n myReturnDetailTitle: string;\n /** Placeholder `{reference}`. */\n myReturnTitle: string;\n myReturnCreatedAt: string;\n myReturnRefund: string;\n myReturnLines: string;\n /** Placeholders `{requested}`, `{approved}`, `{received}`. */\n myReturnLineQuantities: string;\n myReturnNote: string;\n myReturnHistory: string;\n\n // Request status labels\n statusSubmitted: string;\n statusApproved: string;\n statusRejected: string;\n statusAwaitingReceipt: string;\n statusReceived: string;\n statusCompleted: string;\n statusCancelled: string;\n statusRefunded: string;\n /** Any status the backend adds later. */\n statusFallback: string;\n\n // Refund status labels\n refundStatusNotStarted: string;\n refundStatusPending: string;\n refundStatusSucceeded: string;\n refundStatusFailed: string;\n refundStatusFallback: string;\n\n // Error messages\n errorGeneric: string;\n errorInvalidEmail: string;\n errorInvalidCode: string;\n errorSessionExpired: string;\n errorOrderNotFound: string;\n errorReturnNotFound: string;\n errorQuantityUnavailable: string;\n errorItemNotReturnable: string;\n errorReturnsDisabled: string;\n errorRateLimited: string;\n errorIdempotencyConflict: string;\n errorDeliveryFailed: string;\n errorRetry: string;\n};\n\nexport type ReturnsTextKey = keyof ReturnsTexts;\n\nexport const RETURNS_TEXT_TABLES: LocaleTables<ReturnsTextKey> = {\n en: {\n back: \"Back\",\n stepIndicator: \"Step {current} of {total}\",\n loading: \"Loading\",\n myReturnsLink: \"My returns\",\n\n emailStepTitle: \"Return a product\",\n emailStepDescription:\n \"Enter the email address you used for the order. We will send you a verification code.\",\n emailLabel: \"Email address\",\n emailPlaceholder: \"name@example.com\",\n emailSubmit: \"Send code\",\n\n codeStepTitle: \"Enter the code\",\n codeStepDescription: \"We sent a verification code to {email}.\",\n codeLabel: \"Verification code\",\n codeSubmit: \"Verify\",\n resend: \"Send the code again\",\n resendIn: \"Send again in {seconds} s\",\n logout: \"Sign out\",\n\n ordersTitle: \"Your orders\",\n ordersDescription: \"Choose the order that contains the product to return.\",\n ordersEmpty: \"There are no orders eligible for return.\",\n orderTitle: \"Order {reference}\",\n orderReturnableLines: \"Products available to return: {count}\",\n orderSelect: \"Choose\",\n paginationPrevious: \"Previous\",\n paginationNext: \"Next\",\n paginationInfo: \"Page {page}, {total} orders\",\n\n orderDetailTitle: \"Order {reference}\",\n orderDetailDescription: \"Select the products and quantities to return.\",\n quantityLabel: \"Quantity to return: {name}\",\n quantityDecrease: \"Decrease quantity: {name}\",\n quantityIncrease: \"Increase quantity: {name}\",\n quantityOfAvailable: \"of {available}\",\n lineIneligibleFallback: \"This product cannot be returned.\",\n noteLabel: \"Note (optional)\",\n notePlaceholder: \"Tell us why you are returning the product\",\n selectionContinue: \"Continue\",\n selectionEmpty: \"Select at least one item to return.\",\n previousReturnsTitle: \"Earlier returns for this order\",\n\n confirmationTitle: \"Confirm the return\",\n confirmationDescription: \"Check the products before you submit the request.\",\n confirmationSummary: \"Products to return\",\n confirmationQuantity: \"Quantity: {quantity}\",\n confirmationNote: \"Your note\",\n confirmationSubmit: \"Submit return request\",\n\n successTitle: \"Return request submitted\",\n successDescription: \"We received your request and will keep you posted.\",\n successReference: \"Request number\",\n successInstructions: \"What to do next\",\n successDone: \"Back to orders\",\n\n myReturnsTitle: \"My returns\",\n myReturnsDescription: \"Track the status of your return requests.\",\n myReturnsEmpty: \"You have not submitted any return requests yet.\",\n myReturnOpen: \"Details\",\n myReturnDetailTitle: \"Return details\",\n myReturnTitle: \"Return {reference}\",\n myReturnCreatedAt: \"Submitted\",\n myReturnRefund: \"Refund\",\n myReturnLines: \"Products\",\n myReturnLineQuantities:\n \"Requested: {requested}, approved: {approved}, received: {received}\",\n myReturnNote: \"Your note\",\n myReturnHistory: \"History\",\n\n statusSubmitted: \"Submitted\",\n statusApproved: \"Approved\",\n statusRejected: \"Rejected\",\n statusAwaitingReceipt: \"Awaiting the package\",\n statusReceived: \"Package received\",\n statusCompleted: \"Completed\",\n statusCancelled: \"Cancelled\",\n statusRefunded: \"Refunded\",\n statusFallback: \"In progress\",\n\n refundStatusNotStarted: \"Not started\",\n refundStatusPending: \"Refund in progress\",\n refundStatusSucceeded: \"Refunded\",\n refundStatusFailed: \"Refund failed\",\n refundStatusFallback: \"Unknown\",\n\n errorGeneric: \"Something went wrong. Please try again.\",\n errorInvalidEmail: \"Enter a valid email address.\",\n errorInvalidCode: \"The code is invalid or has expired.\",\n errorSessionExpired: \"Your session has expired. Verify your email again.\",\n errorOrderNotFound: \"We could not find this order.\",\n errorReturnNotFound: \"We could not find this return request.\",\n errorQuantityUnavailable:\n \"The selected quantity is no longer available for return.\",\n errorItemNotReturnable: \"One of the selected products cannot be returned.\",\n errorReturnsDisabled: \"Returns are not available in this shop.\",\n errorRateLimited: \"Too many attempts. Please try again later.\",\n errorIdempotencyConflict:\n \"This request was already submitted with different contents. Reload and try again.\",\n errorDeliveryFailed: \"We could not send the code. Please try again.\",\n errorRetry: \"Try again\",\n },\n pl: {\n back: \"Wstecz\",\n stepIndicator: \"Krok {current} z {total}\",\n loading: \"Ładowanie\",\n myReturnsLink: \"Moje zwroty\",\n\n emailStepTitle: \"Zwróć produkt\",\n emailStepDescription:\n \"Podaj adres e-mail użyty w zamówieniu. Wyślemy na niego kod weryfikacyjny.\",\n emailLabel: \"Adres e-mail\",\n emailPlaceholder: \"jan@example.com\",\n emailSubmit: \"Wyślij kod\",\n\n codeStepTitle: \"Wpisz kod\",\n codeStepDescription: \"Wysłaliśmy kod weryfikacyjny na adres {email}.\",\n codeLabel: \"Kod weryfikacyjny\",\n codeSubmit: \"Zweryfikuj\",\n resend: \"Wyślij kod ponownie\",\n resendIn: \"Wyślij ponownie za {seconds} s\",\n logout: \"Wyloguj się\",\n\n ordersTitle: \"Twoje zamówienia\",\n ordersDescription: \"Wybierz zamówienie z produktem do zwrotu.\",\n ordersEmpty: \"Brak zamówień, które można zwrócić.\",\n orderTitle: \"Zamówienie {reference}\",\n orderReturnableLines: \"Produkty do zwrotu: {count}\",\n orderSelect: \"Wybierz\",\n paginationPrevious: \"Poprzednia\",\n paginationNext: \"Następna\",\n paginationInfo: \"Strona {page}, zamówień: {total}\",\n\n orderDetailTitle: \"Zamówienie {reference}\",\n orderDetailDescription: \"Wybierz produkty i ilości do zwrotu.\",\n quantityLabel: \"Ilość do zwrotu: {name}\",\n quantityDecrease: \"Zmniejsz ilość: {name}\",\n quantityIncrease: \"Zwiększ ilość: {name}\",\n quantityOfAvailable: \"z {available}\",\n lineIneligibleFallback: \"Ten produkt nie podlega zwrotowi.\",\n noteLabel: \"Uwagi (opcjonalnie)\",\n notePlaceholder: \"Napisz, dlaczego zwracasz produkt\",\n selectionContinue: \"Dalej\",\n selectionEmpty: \"Wybierz co najmniej jedną sztukę do zwrotu.\",\n previousReturnsTitle: \"Wcześniejsze zwroty tego zamówienia\",\n\n confirmationTitle: \"Potwierdź zwrot\",\n confirmationDescription: \"Sprawdź produkty przed wysłaniem zgłoszenia.\",\n confirmationSummary: \"Produkty do zwrotu\",\n confirmationQuantity: \"Ilość: {quantity}\",\n confirmationNote: \"Twoje uwagi\",\n confirmationSubmit: \"Wyślij zgłoszenie zwrotu\",\n\n successTitle: \"Zgłoszenie zwrotu zostało wysłane\",\n successDescription: \"Otrzymaliśmy zgłoszenie i będziemy informować o jego statusie.\",\n successReference: \"Numer zgłoszenia\",\n successInstructions: \"Co dalej\",\n successDone: \"Wróć do zamówień\",\n\n myReturnsTitle: \"Moje zwroty\",\n myReturnsDescription: \"Sprawdź status swoich zgłoszeń zwrotu.\",\n myReturnsEmpty: \"Nie masz jeszcze żadnych zgłoszeń zwrotu.\",\n myReturnOpen: \"Szczegóły\",\n myReturnDetailTitle: \"Szczegóły zwrotu\",\n myReturnTitle: \"Zwrot {reference}\",\n myReturnCreatedAt: \"Zgłoszono\",\n myReturnRefund: \"Zwrot środków\",\n myReturnLines: \"Produkty\",\n myReturnLineQuantities:\n \"Zgłoszono: {requested}, zaakceptowano: {approved}, odebrano: {received}\",\n myReturnNote: \"Twoje uwagi\",\n myReturnHistory: \"Historia\",\n\n statusSubmitted: \"Zgłoszony\",\n statusApproved: \"Zaakceptowany\",\n statusRejected: \"Odrzucony\",\n statusAwaitingReceipt: \"Oczekiwanie na paczkę\",\n statusReceived: \"Paczka odebrana\",\n statusCompleted: \"Zakończony\",\n statusCancelled: \"Anulowany\",\n statusRefunded: \"Środki zwrócone\",\n statusFallback: \"W trakcie\",\n\n refundStatusNotStarted: \"Nie rozpoczęto\",\n refundStatusPending: \"Zwrot środków w toku\",\n refundStatusSucceeded: \"Środki zwrócone\",\n refundStatusFailed: \"Zwrot środków nie powiódł się\",\n refundStatusFallback: \"Nieznany\",\n\n errorGeneric: \"Coś poszło nie tak. Spróbuj ponownie.\",\n errorInvalidEmail: \"Podaj poprawny adres e-mail.\",\n errorInvalidCode: \"Kod jest nieprawidłowy lub wygasł.\",\n errorSessionExpired: \"Sesja wygasła. Zweryfikuj adres e-mail ponownie.\",\n errorOrderNotFound: \"Nie znaleziono tego zamówienia.\",\n errorReturnNotFound: \"Nie znaleziono tego zgłoszenia zwrotu.\",\n errorQuantityUnavailable:\n \"Wybrana ilość nie jest już dostępna do zwrotu.\",\n errorItemNotReturnable: \"Jeden z wybranych produktów nie podlega zwrotowi.\",\n errorReturnsDisabled: \"Zwroty nie są dostępne w tym sklepie.\",\n errorRateLimited: \"Zbyt wiele prób. Spróbuj ponownie później.\",\n errorIdempotencyConflict:\n \"To zgłoszenie zostało już wysłane z inną zawartością. Odśwież stronę i spróbuj ponownie.\",\n errorDeliveryFailed: \"Nie udało się wysłać kodu. Spróbuj ponownie.\",\n errorRetry: \"Spróbuj ponownie\",\n },\n};\n\n/** Default texts for a locale merged with the caller overrides. */\nexport function resolveReturnsTexts(\n locale: string,\n overrides?: Partial<ReturnsTexts>,\n): ReturnsTexts {\n return resolveTexts(RETURNS_TEXT_TABLES, locale, overrides);\n}\n\nexport function getReturnsText(\n key: ReturnsTextKey,\n locale: string,\n overrides?: Partial<ReturnsTexts>,\n): string {\n return lookupText(resolveReturnsTexts(locale, overrides), key);\n}\n\n/** Replaces `{name}` placeholders. Unknown placeholders stay as they are. */\nexport function fillText(\n template: string,\n values: Record<string, string | number>,\n): string {\n return template.replace(/\\{(\\w+)\\}/g, (match, name: string) =>\n Object.prototype.hasOwnProperty.call(values, name)\n ? String(values[name])\n : match,\n );\n}\n\nconst STATUS_TEXT_KEYS: Record<string, ReturnsTextKey> = {\n submitted: \"statusSubmitted\",\n approved: \"statusApproved\",\n rejected: \"statusRejected\",\n awaiting_receipt: \"statusAwaitingReceipt\",\n received: \"statusReceived\",\n completed: \"statusCompleted\",\n cancelled: \"statusCancelled\",\n refunded: \"statusRefunded\",\n};\n\nconst REFUND_STATUS_TEXT_KEYS: Record<string, ReturnsTextKey> = {\n not_started: \"refundStatusNotStarted\",\n pending: \"refundStatusPending\",\n succeeded: \"refundStatusSucceeded\",\n failed: \"refundStatusFailed\",\n};\n\n/** Text key for a backend request status, with a fallback for unknown ones. */\nexport function statusTextKey(status: string): ReturnsTextKey {\n return STATUS_TEXT_KEYS[status] ?? \"statusFallback\";\n}\n\n/** Text key for a backend refund status, with a fallback for unknown ones. */\nexport function refundStatusTextKey(status: string): ReturnsTextKey {\n return REFUND_STATUS_TEXT_KEYS[status] ?? \"refundStatusFallback\";\n}\n","import { cn } from \"@/src/lib/utils\"\n\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"skeleton\"\n className={cn(\"bg-accent animate-pulse rounded-md\", className)}\n {...props}\n />\n )\n}\n\nexport { Skeleton }\n","import type { CSSProperties, ReactNode } from \"react\";\nimport { Button } from \"@/src/ui/button\";\nimport { Skeleton } from \"@/src/ui/skeleton\";\nimport { cn } from \"@/src/lib/utils\";\nimport { useReturnsSlot } from \"./appearance.context\";\nimport { refundStatusTextKey, statusTextKey, type ReturnsTextKey } from \"./texts\";\nimport { useReturnsText } from \"./texts.context\";\n\n/*\n * Built-in colors read the returns tokens through arbitrary values. They are\n * utilities, so `twMerge` replaces the primitive's own `bg-primary`/`dark:`\n * classes and the tokens win in both themes. Slot overrides are merged last.\n */\n\nexport const PRIMARY_BUTTON_CLASS =\n \"bg-[var(--bitsnap-returns-button-background,#18181b)] text-[color:var(--bitsnap-returns-button-foreground,#fafafa)] hover:bg-[var(--bitsnap-returns-button-hover-background,#000000)] focus-visible:ring-[color:var(--bitsnap-returns-focus-ring,#71717a)]/50\";\n\nexport const SECONDARY_BUTTON_CLASS =\n \"border border-[color:var(--bitsnap-returns-border,#e4e4e7)] bg-transparent text-[color:var(--bitsnap-returns-foreground,#18181b)] hover:bg-[var(--bitsnap-returns-hover-surface,#f4f4f5)] focus-visible:ring-[color:var(--bitsnap-returns-focus-ring,#71717a)]/50\";\n\nexport const INPUT_CLASS =\n \"bg-[var(--bitsnap-returns-input-background,#ffffff)] dark:bg-[var(--bitsnap-returns-input-background,#ffffff)] border-[color:var(--bitsnap-returns-border,#e4e4e7)] text-[color:var(--bitsnap-returns-foreground,#18181b)] placeholder:text-[color:var(--bitsnap-returns-muted-foreground,#71717a)] focus-visible:border-[color:var(--bitsnap-returns-focus-ring,#71717a)] focus-visible:ring-[color:var(--bitsnap-returns-focus-ring,#71717a)]/50\";\n\nexport type SlotProps = { className?: string; style?: CSSProperties };\n\n/** Frame shared by every step: back button, title and description. */\nexport function StepFrame({\n title,\n description,\n onBack,\n className,\n children,\n}: {\n title: ReactNode;\n description?: ReactNode;\n onBack?: () => void;\n className?: string;\n children?: ReactNode;\n}) {\n const text = useReturnsText();\n const header = useReturnsSlot(\"header\");\n const titleSlot = useReturnsSlot(\"title\");\n const descriptionSlot = useReturnsSlot(\"description\");\n const backButton = useReturnsSlot(\"backButton\");\n\n return (\n <section className={cn(\"flex flex-col gap-5\", className)}>\n <div\n data-bitsnap-returns-slot=\"header\"\n className={cn(\"flex flex-col gap-2\", header.className)}\n style={header.style}\n >\n {onBack != null && (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n data-bitsnap-returns-slot=\"backButton\"\n className={cn(\n \"self-start -ml-3 text-[color:var(--bitsnap-returns-muted-foreground,#71717a)] hover:bg-[var(--bitsnap-returns-hover-surface,#f4f4f5)]\",\n backButton.className,\n )}\n style={backButton.style}\n onClick={onBack}\n >\n {text(\"back\")}\n </Button>\n )}\n <h2\n data-bitsnap-returns-slot=\"title\"\n className={cn(\"text-2xl font-semibold\", titleSlot.className)}\n style={titleSlot.style}\n >\n {title}\n </h2>\n {description != null && (\n <p\n data-bitsnap-returns-slot=\"description\"\n className={cn(\"text-sm\", descriptionSlot.className)}\n style={descriptionSlot.style}\n >\n {description}\n </p>\n )}\n </div>\n {children}\n </section>\n );\n}\n\n/** Error message with an optional retry action. */\nexport function ErrorMessage({\n errorKey,\n onRetry,\n}: {\n errorKey: ReturnsTextKey;\n onRetry?: () => void;\n}) {\n const text = useReturnsText();\n const error = useReturnsSlot(\"error\");\n const secondaryButton = useReturnsSlot(\"secondaryButton\");\n\n return (\n <div\n role=\"alert\"\n data-bitsnap-returns-slot=\"error\"\n className={cn(\"flex flex-col items-start gap-2 text-sm\", error.className)}\n style={error.style}\n >\n <p>{text(errorKey)}</p>\n {onRetry != null && (\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"sm\"\n data-bitsnap-returns-slot=\"secondaryButton\"\n className={cn(SECONDARY_BUTTON_CLASS, secondaryButton.className)}\n style={secondaryButton.style}\n onClick={onRetry}\n >\n {text(\"errorRetry\")}\n </Button>\n )}\n </div>\n );\n}\n\n/** Empty list placeholder. */\nexport function EmptyState({ children }: { children: ReactNode }) {\n const emptyState = useReturnsSlot(\"emptyState\");\n\n return (\n <p\n data-bitsnap-returns-slot=\"emptyState\"\n className={cn(\"py-6 text-center text-sm\", emptyState.className)}\n style={emptyState.style}\n >\n {children}\n </p>\n );\n}\n\n/** Loading placeholder. `aria-busy` marks the region for assistive tech. */\nexport function SkeletonRows({ rows = 3 }: { rows?: number }) {\n const text = useReturnsText();\n const skeleton = useReturnsSlot(\"skeleton\");\n\n return (\n <div\n role=\"status\"\n aria-busy=\"true\"\n aria-label={text(\"loading\")}\n className=\"flex flex-col gap-3\"\n >\n {Array.from({ length: rows }, (_, index) => (\n <Skeleton\n key={index}\n data-bitsnap-returns-slot=\"skeleton\"\n className={cn(\n \"h-16 w-full bg-[var(--bitsnap-returns-hover-surface,#f4f4f5)]\",\n skeleton.className,\n )}\n style={skeleton.style}\n />\n ))}\n </div>\n );\n}\n\n/** Status chip of a return request. Unknown statuses use the fallback text. */\nexport function StatusBadge({ status }: { status: string }) {\n const text = useReturnsText();\n const badge = useReturnsSlot(\"statusBadge\");\n\n return (\n <span\n data-bitsnap-returns-slot=\"statusBadge\"\n data-status={status}\n className={cn(\n \"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium\",\n badge.className,\n )}\n style={badge.style}\n >\n {text(statusTextKey(status))}\n </span>\n );\n}\n\n/** Text of a refund status. */\nexport function useRefundStatusText(): (status: string) => string {\n const text = useReturnsText();\n\n return (status) => text(refundStatusTextKey(status));\n}\n\n/** Previous/next controls for paged lists. */\nexport function Pagination({\n page,\n total,\n hasNext,\n hasPrevious,\n isFetching,\n onNext,\n onPrevious,\n}: {\n page: number;\n total: number;\n hasNext: boolean;\n hasPrevious: boolean;\n isFetching: boolean;\n onNext: () => void;\n onPrevious: () => void;\n}) {\n const text = useReturnsText();\n const pagination = useReturnsSlot(\"pagination\");\n const secondaryButton = useReturnsSlot(\"secondaryButton\");\n\n if (!hasNext && !hasPrevious) {\n return null;\n }\n\n return (\n <nav\n data-bitsnap-returns-slot=\"pagination\"\n className={cn(\n \"flex items-center justify-between gap-3 text-sm\",\n pagination.className,\n )}\n style={pagination.style}\n >\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"sm\"\n data-bitsnap-returns-slot=\"secondaryButton\"\n className={cn(SECONDARY_BUTTON_CLASS, secondaryButton.className)}\n style={secondaryButton.style}\n disabled={!hasPrevious || isFetching}\n onClick={onPrevious}\n >\n {text(\"paginationPrevious\")}\n </Button>\n <span aria-live=\"polite\">{text(\"paginationInfo\", { page, total })}</span>\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"sm\"\n data-bitsnap-returns-slot=\"secondaryButton\"\n className={cn(SECONDARY_BUTTON_CLASS, secondaryButton.className)}\n style={secondaryButton.style}\n disabled={!hasNext || isFetching}\n onClick={onNext}\n >\n {text(\"paginationNext\")}\n </Button>\n </nav>\n );\n}\n","import { timestampDate, type Timestamp } from \"@bufbuild/protobuf/wkt\";\n\n/** Medium date of a protobuf timestamp in the given locale, empty when unset. */\nexport function formatDate(\n timestamp: Timestamp | undefined,\n locale: string,\n): string {\n if (timestamp == null) {\n return \"\";\n }\n\n const date = timestampDate(timestamp);\n\n try {\n return new Intl.DateTimeFormat(locale, { dateStyle: \"medium\" }).format(date);\n } catch {\n return date.toISOString().slice(0, 10);\n }\n}\n","/**\n * Formats an amount given in minor units (for example grosze) with the\n * currency and locale. The amount stays a `bigint` until the decimal string is\n * built, so large `int64` values never lose precision.\n */\nexport function formatMoney(\n minor: bigint | number,\n currency: string,\n locale: string,\n): string {\n const amount = typeof minor === \"bigint\" ? minor : BigInt(Math.trunc(minor));\n\n try {\n const formatter = new Intl.NumberFormat(locale, {\n style: \"currency\",\n currency,\n });\n const digits = formatter.resolvedOptions().maximumFractionDigits ?? 2;\n // Intl accepts exact decimal strings at runtime; the ES2022 typings only\n // know numbers.\n return formatter.format(\n toDecimalString(amount, digits) as unknown as number,\n );\n } catch {\n return `${toDecimalString(amount, 2)} ${currency}`;\n }\n}\n\n/** Decimal string of a minor unit amount, e.g. `12345n, 2` -> `\"123.45\"`. */\nexport function toDecimalString(amount: bigint, fractionDigits: number): string {\n const negative = amount < BigInt(0);\n const absolute = negative ? -amount : amount;\n\n if (fractionDigits <= 0) {\n return `${negative ? \"-\" : \"\"}${absolute}`;\n }\n\n const divisor = BigInt(10) ** BigInt(fractionDigits);\n const whole = absolute / divisor;\n const fraction = (absolute % divisor).toString().padStart(fractionDigits, \"0\");\n\n return `${negative ? \"-\" : \"\"}${whole}.${fraction}`;\n}\n","import { Button } from \"@/src/ui/button\";\nimport { cn } from \"@/src/lib/utils\";\nimport { useReturnsSlot } from \"./appearance.context\";\nimport { formatDate } from \"./date\";\nimport { useMyReturn, useMyReturns } from \"./hooks\";\nimport {\n EmptyState,\n ErrorMessage,\n Pagination,\n SECONDARY_BUTTON_CLASS,\n SkeletonRows,\n StatusBadge,\n StepFrame,\n useRefundStatusText,\n} from \"./internal\";\nimport { formatMoney } from \"./money\";\nimport { useReturnsContext } from \"./ReturnsProvider\";\nimport { useReturnsLocale, useReturnsText } from \"./texts.context\";\n\nexport type ReturnsMyReturnsListProps = {\n /** Called with the ID of the chosen return. */\n onSelectReturn?: (returnId: string) => void;\n onBack?: () => void;\n /** Returns per page. Defaults to 10. */\n pageSize?: number;\n className?: string;\n};\n\n/** Return requests the customer has submitted, with their status. */\nexport function ReturnsMyReturnsList({\n onSelectReturn,\n onBack,\n pageSize,\n className,\n}: ReturnsMyReturnsListProps) {\n useReturnsContext(\"ReturnsMyReturnsList\");\n const text = useReturnsText();\n const locale = useReturnsLocale();\n const refundText = useRefundStatusText();\n const myReturns = useMyReturns({ pageSize });\n const list = useReturnsSlot(\"returnList\");\n const card = useReturnsSlot(\"returnCard\");\n const reference = useReturnsSlot(\"returnReference\");\n const secondaryButton = useReturnsSlot(\"secondaryButton\");\n\n return (\n <StepFrame\n className={className}\n onBack={onBack}\n title={text(\"myReturnsTitle\")}\n description={text(\"myReturnsDescription\")}\n >\n {myReturns.isLoading ? (\n <SkeletonRows />\n ) : myReturns.errorKey != null ? (\n <ErrorMessage errorKey={myReturns.errorKey} onRetry={myReturns.refetch} />\n ) : myReturns.returns.length === 0 ? (\n <EmptyState>{text(\"myReturnsEmpty\")}</EmptyState>\n ) : (\n <>\n <ul\n data-bitsnap-returns-slot=\"returnList\"\n className={cn(\"flex flex-col gap-3\", list.className)}\n style={list.style}\n >\n {myReturns.returns.map((item) => (\n <li\n key={item.id}\n data-bitsnap-returns-slot=\"returnCard\"\n className={cn(\n \"flex flex-wrap items-center justify-between gap-3 border p-4\",\n card.className,\n )}\n style={card.style}\n >\n <div className=\"flex flex-col gap-1\">\n <span\n data-bitsnap-returns-slot=\"returnReference\"\n className={cn(\"font-medium\", reference.className)}\n style={reference.style}\n >\n {item.reference}\n </span>\n <span className=\"text-sm\">\n {formatDate(item.createdAt, locale)}\n </span>\n <span className=\"text-sm\">\n {text(\"myReturnRefund\")}: {refundText(item.refundStatus)}\n </span>\n </div>\n <div className=\"flex items-center gap-3\">\n <StatusBadge status={item.status} />\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"sm\"\n aria-label={`${text(\"myReturnOpen\")}: ${item.reference}`}\n data-bitsnap-returns-slot=\"secondaryButton\"\n className={cn(\n SECONDARY_BUTTON_CLASS,\n secondaryButton.className,\n )}\n style={secondaryButton.style}\n onClick={() => onSelectReturn?.(item.id)}\n >\n {text(\"myReturnOpen\")}\n </Button>\n </div>\n </li>\n ))}\n </ul>\n <Pagination\n page={myReturns.page}\n total={myReturns.total}\n hasNext={myReturns.hasNext}\n hasPrevious={myReturns.hasPrevious}\n isFetching={myReturns.isFetching}\n onNext={myReturns.next}\n onPrevious={myReturns.previous}\n />\n </>\n )}\n </StepFrame>\n );\n}\n\nexport type ReturnsMyReturnDetailProps = {\n /** ID of the return to show. */\n returnId: string;\n onBack?: () => void;\n className?: string;\n};\n\n/** Status, lines, refund and history of one return request. */\nexport function ReturnsMyReturnDetail({\n returnId,\n onBack,\n className,\n}: ReturnsMyReturnDetailProps) {\n useReturnsContext(\"ReturnsMyReturnDetail\");\n const text = useReturnsText();\n const locale = useReturnsLocale();\n const refundText = useRefundStatusText();\n const { request, isLoading, errorKey, refetch } = useMyReturn(returnId);\n const summary = useReturnsSlot(\"summary\");\n const lineList = useReturnsSlot(\"lineList\");\n const lineSlot = useReturnsSlot(\"line\");\n const lineName = useReturnsSlot(\"lineName\");\n const instructions = useReturnsSlot(\"returnInstructions\");\n const history = useReturnsSlot(\"history\");\n const historyEntry = useReturnsSlot(\"historyEntry\");\n\n return (\n <StepFrame\n className={className}\n onBack={onBack}\n title={\n request != null\n ? text(\"myReturnTitle\", { reference: request.reference })\n : text(\"myReturnDetailTitle\")\n }\n >\n {isLoading ? (\n <SkeletonRows />\n ) : errorKey != null ? (\n <ErrorMessage errorKey={errorKey} onRetry={refetch} />\n ) : (\n request != null && (\n <div className=\"flex flex-col gap-5\">\n <div\n data-bitsnap-returns-slot=\"summary\"\n className={cn(\n \"flex flex-col gap-2 border p-4 text-sm\",\n summary.className,\n )}\n style={summary.style}\n >\n <div className=\"flex items-center justify-between gap-2\">\n <StatusBadge status={request.status} />\n <span>\n {text(\"myReturnCreatedAt\")}:{\" \"}\n {formatDate(request.createdAt, locale)}\n </span>\n </div>\n <span>\n {text(\"myReturnRefund\")}: {refundText(request.refundStatus)}\n {request.refundAmountMinor > BigInt(0) &&\n ` · ${formatMoney(request.refundAmountMinor, request.currency, locale)}`}\n </span>\n {request.customerNote !== \"\" && (\n <span className=\"whitespace-pre-wrap\">\n {text(\"myReturnNote\")}: {request.customerNote}\n </span>\n )}\n </div>\n {request.returnInstructions !== \"\" && (\n <p\n data-bitsnap-returns-slot=\"returnInstructions\"\n className={cn(\n \"whitespace-pre-wrap border p-3 text-sm\",\n instructions.className,\n )}\n style={instructions.style}\n >\n {request.returnInstructions}\n </p>\n )}\n <div className=\"flex flex-col gap-2\">\n <h3 className=\"text-sm font-medium\">{text(\"myReturnLines\")}</h3>\n <ul\n data-bitsnap-returns-slot=\"lineList\"\n className={cn(\"flex flex-col gap-3\", lineList.className)}\n style={lineList.style}\n >\n {request.lines.map((line) => (\n <li\n key={line.lineId}\n data-bitsnap-returns-slot=\"line\"\n className={cn(\n \"flex flex-wrap items-baseline justify-between gap-2 border p-4\",\n lineSlot.className,\n )}\n style={lineSlot.style}\n >\n <span\n data-bitsnap-returns-slot=\"lineName\"\n className={cn(\"font-medium\", lineName.className)}\n style={lineName.style}\n >\n {line.name}\n </span>\n <span className=\"text-sm\">\n {text(\"myReturnLineQuantities\", {\n requested: line.requestedQuantity,\n approved: line.approvedQuantity,\n received: line.receivedQuantity,\n })}\n </span>\n </li>\n ))}\n </ul>\n </div>\n {request.history.length > 0 && (\n <div className=\"flex flex-col gap-2\">\n <h3 className=\"text-sm font-medium\">{text(\"myReturnHistory\")}</h3>\n <ul\n data-bitsnap-returns-slot=\"history\"\n className={cn(\"flex flex-col gap-2\", history.className)}\n style={history.style}\n >\n {request.history.map((entry) => (\n <li\n key={entry.id}\n data-bitsnap-returns-slot=\"historyEntry\"\n className={cn(\n \"flex flex-wrap items-center justify-between gap-2 text-sm\",\n historyEntry.className,\n )}\n style={historyEntry.style}\n >\n <StatusBadge status={entry.status} />\n <span>{formatDate(entry.createdAt, locale)}</span>\n </li>\n ))}\n </ul>\n </div>\n )}\n </div>\n )\n )}\n </StepFrame>\n );\n}\n","import { useState } from \"react\";\nimport type { FormEvent } from \"react\";\nimport type {\n ReturnOrderLine,\n ReturnRequestView,\n} from \"@/src/gen/proto/public/v1/returns_pb\";\nimport { Button } from \"@/src/ui/button\";\nimport { Label } from \"@/src/ui/label\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport { Textarea } from \"@/src/ui/textarea\";\nimport { cn } from \"@/src/lib/utils\";\nimport { useReturnsSlot } from \"./appearance.context\";\nimport { LogoutButton } from \"./AuthSteps\";\nimport { formatDate } from \"./date\";\nimport {\n useCreateReturn,\n useMyReturn,\n useReturnableOrder,\n useReturnOrders,\n} from \"./hooks\";\nimport {\n EmptyState,\n ErrorMessage,\n INPUT_CLASS,\n Pagination,\n PRIMARY_BUTTON_CLASS,\n SECONDARY_BUTTON_CLASS,\n SkeletonRows,\n StatusBadge,\n StepFrame,\n} from \"./internal\";\nimport { formatMoney } from \"./money\";\nimport { useReturnsContext } from \"./ReturnsProvider\";\nimport { clampQuantity, isLineSelectable, toSelectedLines } from \"./selection\";\nimport type { SelectedReturnLine } from \"./state-machine\";\nimport { useReturnsLocale, useReturnsText } from \"./texts.context\";\n\nexport type ReturnsOrderListProps = {\n /** Called with the canonical order ID of the chosen order. */\n onSelectOrder?: (orderId: string) => void;\n /** Shows a \"my returns\" button that calls this. */\n onOpenMyReturns?: () => void;\n /** Shows the sign out button. Defaults to `true`. */\n showLogout?: boolean;\n /** Orders per page. Defaults to 10. */\n pageSize?: number;\n className?: string;\n};\n\n/** Orders of the customer that still have products to return. */\nexport function ReturnsOrderList({\n onSelectOrder,\n onOpenMyReturns,\n showLogout = true,\n pageSize,\n className,\n}: ReturnsOrderListProps) {\n useReturnsContext(\"ReturnsOrderList\");\n const text = useReturnsText();\n const locale = useReturnsLocale();\n const orders = useReturnOrders({ pageSize });\n const list = useReturnsSlot(\"orderList\");\n const card = useReturnsSlot(\"orderCard\");\n const reference = useReturnsSlot(\"orderReference\");\n const date = useReturnsSlot(\"orderDate\");\n const total = useReturnsSlot(\"orderTotal\");\n const secondaryButton = useReturnsSlot(\"secondaryButton\");\n\n return (\n <StepFrame\n className={className}\n title={text(\"ordersTitle\")}\n description={text(\"ordersDescription\")}\n >\n {(showLogout || onOpenMyReturns != null) && (\n <div className=\"flex flex-wrap items-center justify-between gap-2\">\n {onOpenMyReturns != null ? (\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"sm\"\n data-bitsnap-returns-slot=\"secondaryButton\"\n className={cn(SECONDARY_BUTTON_CLASS, secondaryButton.className)}\n style={secondaryButton.style}\n onClick={onOpenMyReturns}\n >\n {text(\"myReturnsLink\")}\n </Button>\n ) : (\n <span />\n )}\n {showLogout && <LogoutButton />}\n </div>\n )}\n {orders.isLoading ? (\n <SkeletonRows />\n ) : orders.errorKey != null ? (\n <ErrorMessage errorKey={orders.errorKey} onRetry={orders.refetch} />\n ) : orders.orders.length === 0 ? (\n <EmptyState>{text(\"ordersEmpty\")}</EmptyState>\n ) : (\n <>\n <ul\n data-bitsnap-returns-slot=\"orderList\"\n className={cn(\"flex flex-col gap-3\", list.className)}\n style={list.style}\n >\n {orders.orders.map((order) => (\n <li\n key={order.canonicalOrderId}\n data-bitsnap-returns-slot=\"orderCard\"\n className={cn(\n \"flex flex-wrap items-center justify-between gap-3 border p-4\",\n card.className,\n )}\n style={card.style}\n >\n <div className=\"flex flex-col gap-1\">\n <span\n data-bitsnap-returns-slot=\"orderReference\"\n className={cn(\"font-medium\", reference.className)}\n style={reference.style}\n >\n {text(\"orderTitle\", { reference: order.displayReference })}\n </span>\n <span\n data-bitsnap-returns-slot=\"orderDate\"\n className={cn(\"text-sm\", date.className)}\n style={date.style}\n >\n {formatDate(order.purchasedAt, locale)}\n </span>\n <span className=\"text-sm\">\n {text(\"orderReturnableLines\", {\n count: order.returnableLineCount,\n })}\n </span>\n </div>\n <div className=\"flex items-center gap-4\">\n <span\n data-bitsnap-returns-slot=\"orderTotal\"\n className={cn(\"font-medium\", total.className)}\n style={total.style}\n >\n {formatMoney(order.totalMinor, order.currency, locale)}\n </span>\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"sm\"\n aria-label={`${text(\"orderSelect\")}: ${text(\"orderTitle\", {\n reference: order.displayReference,\n })}`}\n data-bitsnap-returns-slot=\"secondaryButton\"\n className={cn(\n SECONDARY_BUTTON_CLASS,\n secondaryButton.className,\n )}\n style={secondaryButton.style}\n onClick={() => onSelectOrder?.(order.canonicalOrderId)}\n >\n {text(\"orderSelect\")}\n </Button>\n </div>\n </li>\n ))}\n </ul>\n <Pagination\n page={orders.page}\n total={orders.total}\n hasNext={orders.hasNext}\n hasPrevious={orders.hasPrevious}\n isFetching={orders.isFetching}\n onNext={orders.next}\n onPrevious={orders.previous}\n />\n </>\n )}\n </StepFrame>\n );\n}\n\nexport type ReturnsOrderDetailProps = {\n /** Canonical order ID, as given to `onSelectOrder`. */\n orderId: string;\n /** Called with the selected lines and the note when the form is valid. */\n onContinue?: (selection: { items: SelectedReturnLine[]; note: string }) => void;\n onBack?: () => void;\n /** Selection to start with, for example when coming back from the confirmation. */\n initialItems?: SelectedReturnLine[];\n initialNote?: string;\n className?: string;\n};\n\n/** Line and quantity selection of one order. */\nexport function ReturnsOrderDetail({\n orderId,\n onContinue,\n onBack,\n initialItems,\n initialNote,\n className,\n}: ReturnsOrderDetailProps) {\n useReturnsContext(\"ReturnsOrderDetail\");\n const text = useReturnsText();\n const locale = useReturnsLocale();\n const { order, returnHistory, isLoading, errorKey, refetch } =\n useReturnableOrder(orderId);\n const [quantities, setQuantities] = useState<Record<string, number>>(() =>\n Object.fromEntries(\n (initialItems ?? []).map((item) => [item.lineId, item.quantity]),\n ),\n );\n const [note, setNote] = useState(initialNote ?? \"\");\n const [showEmptyError, setShowEmptyError] = useState(false);\n const lineList = useReturnsSlot(\"lineList\");\n const lineSlot = useReturnsSlot(\"line\");\n const lineName = useReturnsSlot(\"lineName\");\n const linePrice = useReturnsSlot(\"linePrice\");\n const quantityControl = useReturnsSlot(\"lineQuantityControl\");\n const quantityButton = useReturnsSlot(\"quantityButton\");\n const quantityInput = useReturnsSlot(\"quantityInput\");\n const ineligibleReason = useReturnsSlot(\"lineIneligibleReason\");\n const noteInput = useReturnsSlot(\"noteInput\");\n const submitButton = useReturnsSlot(\"submitButton\");\n const history = useReturnsSlot(\"history\");\n const historyEntry = useReturnsSlot(\"historyEntry\");\n\n function setQuantity(line: ReturnOrderLine, value: number) {\n setShowEmptyError(false);\n setQuantities((current) => ({\n ...current,\n [line.lineId]: clampQuantity(value, line.availableQuantity),\n }));\n }\n\n function handleSubmit(event: FormEvent<HTMLFormElement>) {\n event.preventDefault();\n if (order == null) {\n return;\n }\n const items = toSelectedLines(\n order.lines.filter(isLineSelectable).map((line) => line.lineId),\n quantities,\n );\n if (items.length === 0) {\n setShowEmptyError(true);\n return;\n }\n onContinue?.({ items, note: note.trim() });\n }\n\n return (\n <StepFrame\n className={className}\n onBack={onBack}\n title={text(\"orderDetailTitle\", {\n reference: order?.displayReference ?? \"\",\n })}\n description={text(\"orderDetailDescription\")}\n >\n {isLoading ? (\n <SkeletonRows />\n ) : errorKey != null ? (\n <ErrorMessage errorKey={errorKey} onRetry={refetch} />\n ) : order == null ? null : (\n <form className=\"flex flex-col gap-5\" onSubmit={handleSubmit}>\n <ul\n data-bitsnap-returns-slot=\"lineList\"\n className={cn(\"flex flex-col gap-3\", lineList.className)}\n style={lineList.style}\n >\n {order.lines.map((line) => {\n const selectable = isLineSelectable(line);\n const quantity = quantities[line.lineId] ?? 0;\n const inputId = `bitsnap-returns-quantity-${line.lineId}`;\n\n return (\n <li\n key={line.lineId}\n data-bitsnap-returns-slot=\"line\"\n data-selected={quantity > 0 ? \"\" : undefined}\n data-ineligible={selectable ? undefined : \"\"}\n className={cn(\n \"flex flex-col gap-3 border p-4\",\n lineSlot.className,\n )}\n style={lineSlot.style}\n >\n <div className=\"flex flex-wrap items-baseline justify-between gap-2\">\n <span\n data-bitsnap-returns-slot=\"lineName\"\n className={cn(\"font-medium\", lineName.className)}\n style={lineName.style}\n >\n {line.name}\n </span>\n <span\n data-bitsnap-returns-slot=\"linePrice\"\n className={cn(\"text-sm\", linePrice.className)}\n style={linePrice.style}\n >\n {formatMoney(line.paidUnitMinor, line.currency, locale)}\n </span>\n </div>\n {selectable ? (\n <div\n role=\"group\"\n aria-label={text(\"quantityLabel\", { name: line.name })}\n data-bitsnap-returns-slot=\"lineQuantityControl\"\n className={cn(\n \"flex items-center gap-2\",\n quantityControl.className,\n )}\n style={quantityControl.style}\n >\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"icon-sm\"\n aria-label={text(\"quantityDecrease\", {\n name: line.name,\n })}\n aria-controls={inputId}\n disabled={quantity <= 0}\n data-bitsnap-returns-slot=\"quantityButton\"\n className={cn(\n SECONDARY_BUTTON_CLASS,\n quantityButton.className,\n )}\n style={quantityButton.style}\n onClick={() => setQuantity(line, quantity - 1)}\n >\n <span aria-hidden=\"true\">-</span>\n </Button>\n <input\n id={inputId}\n type=\"number\"\n inputMode=\"numeric\"\n min={0}\n max={line.availableQuantity}\n step={1}\n value={quantity}\n aria-label={text(\"quantityLabel\", { name: line.name })}\n data-bitsnap-returns-slot=\"quantityInput\"\n className={cn(\n \"h-8 w-16 rounded-md border px-2 text-center text-sm outline-none focus-visible:ring-[3px]\",\n INPUT_CLASS,\n quantityInput.className,\n )}\n style={quantityInput.style}\n onChange={(event) =>\n setQuantity(line, event.target.valueAsNumber)\n }\n />\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"icon-sm\"\n aria-label={text(\"quantityIncrease\", {\n name: line.name,\n })}\n aria-controls={inputId}\n disabled={quantity >= line.availableQuantity}\n data-bitsnap-returns-slot=\"quantityButton\"\n className={cn(\n SECONDARY_BUTTON_CLASS,\n quantityButton.className,\n )}\n style={quantityButton.style}\n onClick={() => setQuantity(line, quantity + 1)}\n >\n <span aria-hidden=\"true\">+</span>\n </Button>\n <span className=\"text-sm\">\n {text(\"quantityOfAvailable\", {\n available: line.availableQuantity,\n })}\n </span>\n </div>\n ) : (\n <p\n data-bitsnap-returns-slot=\"lineIneligibleReason\"\n className={cn(\"text-sm\", ineligibleReason.className)}\n style={ineligibleReason.style}\n >\n {line.exclusionReason !== \"\"\n ? line.exclusionReason\n : text(\"lineIneligibleFallback\")}\n </p>\n )}\n </li>\n );\n })}\n </ul>\n <div className=\"flex flex-col gap-2\">\n <Label htmlFor=\"bitsnap-returns-note\">{text(\"noteLabel\")}</Label>\n <Textarea\n id=\"bitsnap-returns-note\"\n name=\"note\"\n rows={3}\n maxLength={1000}\n value={note}\n placeholder={text(\"notePlaceholder\")}\n data-bitsnap-returns-slot=\"noteInput\"\n className={cn(\n INPUT_CLASS,\n \"dark:border-[color:var(--bitsnap-returns-border,#e4e4e7)] dark:placeholder:text-[color:var(--bitsnap-returns-muted-foreground,#71717a)] dark:focus-visible:ring-[color:var(--bitsnap-returns-focus-ring,#71717a)]\",\n noteInput.className,\n )}\n style={noteInput.style}\n onChange={(event) => setNote(event.target.value)}\n />\n </div>\n {showEmptyError && <ErrorMessage errorKey=\"selectionEmpty\" />}\n <Button\n type=\"submit\"\n data-bitsnap-returns-slot=\"submitButton\"\n className={cn(PRIMARY_BUTTON_CLASS, submitButton.className)}\n style={submitButton.style}\n >\n {text(\"selectionContinue\")}\n </Button>\n {returnHistory.length > 0 && (\n <div className=\"flex flex-col gap-2\">\n <h3 className=\"text-sm font-medium\">\n {text(\"previousReturnsTitle\")}\n </h3>\n <ul\n data-bitsnap-returns-slot=\"history\"\n className={cn(\"flex flex-col gap-2\", history.className)}\n style={history.style}\n >\n {returnHistory.map((entry) => (\n <li\n key={entry.id}\n data-bitsnap-returns-slot=\"historyEntry\"\n className={cn(\n \"flex flex-wrap items-center justify-between gap-2 text-sm\",\n historyEntry.className,\n )}\n style={historyEntry.style}\n >\n <span>{entry.reference}</span>\n <span>{formatDate(entry.createdAt, locale)}</span>\n <StatusBadge status={entry.status} />\n </li>\n ))}\n </ul>\n </div>\n )}\n </form>\n )}\n </StepFrame>\n );\n}\n\nexport type ReturnsConfirmationProps = {\n /** Canonical order ID. */\n orderId: string;\n /** Lines chosen in the order detail step. */\n items: SelectedReturnLine[];\n note?: string;\n /** Called with the new return's ID and the created request. */\n onSubmitted?: (returnId: string, request: ReturnRequestView) => void;\n onBack?: () => void;\n className?: string;\n};\n\n/** Review of the selected lines and the submit action. */\nexport function ReturnsConfirmation({\n orderId,\n items,\n note,\n onSubmitted,\n onBack,\n className,\n}: ReturnsConfirmationProps) {\n useReturnsContext(\"ReturnsConfirmation\");\n const text = useReturnsText();\n const locale = useReturnsLocale();\n const { order, isLoading, errorKey: orderErrorKey, refetch } =\n useReturnableOrder(orderId);\n const create = useCreateReturn();\n const summary = useReturnsSlot(\"summary\");\n const lineSlot = useReturnsSlot(\"line\");\n const lineName = useReturnsSlot(\"lineName\");\n const linePrice = useReturnsSlot(\"linePrice\");\n const submitButton = useReturnsSlot(\"submitButton\");\n\n async function handleSubmit(event: FormEvent<HTMLFormElement>) {\n event.preventDefault();\n if (create.isPending) {\n return;\n }\n const request = await create.submit({\n orderId,\n items: items.map((item) => ({\n lineId: item.lineId,\n quantity: item.quantity,\n })),\n note,\n });\n if (request != null) {\n onSubmitted?.(request.id, request);\n }\n }\n\n return (\n <StepFrame\n className={className}\n onBack={onBack}\n title={text(\"confirmationTitle\")}\n description={text(\"confirmationDescription\")}\n >\n {isLoading ? (\n <SkeletonRows rows={2} />\n ) : orderErrorKey != null ? (\n <ErrorMessage errorKey={orderErrorKey} onRetry={refetch} />\n ) : (\n <form className=\"flex flex-col gap-5\" onSubmit={handleSubmit}>\n <div\n data-bitsnap-returns-slot=\"summary\"\n className={cn(\"flex flex-col gap-3 border p-4\", summary.className)}\n style={summary.style}\n >\n <h3 className=\"text-sm font-medium\">\n {text(\"confirmationSummary\")}\n </h3>\n <ul className=\"flex flex-col gap-3\">\n {items.map((item) => {\n const line = order?.lines.find(\n (candidate) => candidate.lineId === item.lineId,\n );\n\n return (\n <li\n key={item.lineId}\n data-bitsnap-returns-slot=\"line\"\n className={cn(\n \"flex flex-wrap items-baseline justify-between gap-2\",\n lineSlot.className,\n )}\n style={lineSlot.style}\n >\n <span\n data-bitsnap-returns-slot=\"lineName\"\n className={cn(\"font-medium\", lineName.className)}\n style={lineName.style}\n >\n {line?.name ?? item.lineId}\n </span>\n <span\n data-bitsnap-returns-slot=\"linePrice\"\n className={cn(\"text-sm\", linePrice.className)}\n style={linePrice.style}\n >\n {text(\"confirmationQuantity\", { quantity: item.quantity })}\n {line != null &&\n ` · ${formatMoney(\n line.paidUnitMinor * BigInt(item.quantity),\n line.currency,\n locale,\n )}`}\n </span>\n </li>\n );\n })}\n </ul>\n {note != null && note !== \"\" && (\n <div className=\"flex flex-col gap-1 text-sm\">\n <span className=\"font-medium\">{text(\"confirmationNote\")}</span>\n <span className=\"whitespace-pre-wrap\">{note}</span>\n </div>\n )}\n </div>\n {create.errorKey != null && <ErrorMessage errorKey={create.errorKey} />}\n <Button\n type=\"submit\"\n disabled={create.isPending || items.length === 0}\n data-bitsnap-returns-slot=\"submitButton\"\n className={cn(PRIMARY_BUTTON_CLASS, submitButton.className)}\n style={submitButton.style}\n >\n {create.isPending && <Spinner />}\n {text(\"confirmationSubmit\")}\n </Button>\n </form>\n )}\n </StepFrame>\n );\n}\n\nexport type ReturnsResultProps = {\n /** ID of the created return, as given to `onSubmitted`. */\n returnId: string;\n /** Called by the primary button, normally to go back to the orders. */\n onContinue?: () => void;\n /** Shows a \"my returns\" button that calls this. */\n onOpenMyReturns?: () => void;\n className?: string;\n};\n\n/** Success screen with the reference and the return instructions. */\nexport function ReturnsResult({\n returnId,\n onContinue,\n onOpenMyReturns,\n className,\n}: ReturnsResultProps) {\n useReturnsContext(\"ReturnsResult\");\n const text = useReturnsText();\n const { request, isLoading, errorKey, refetch } = useMyReturn(returnId);\n const success = useReturnsSlot(\"successState\");\n const reference = useReturnsSlot(\"returnReference\");\n const instructions = useReturnsSlot(\"returnInstructions\");\n const submitButton = useReturnsSlot(\"submitButton\");\n const secondaryButton = useReturnsSlot(\"secondaryButton\");\n\n return (\n <section className={cn(\"flex flex-col gap-5\", className)}>\n <div\n role=\"status\"\n data-bitsnap-returns-slot=\"successState\"\n className={cn(\"flex flex-col gap-4 border p-5\", success.className)}\n style={success.style}\n >\n <h2 className=\"text-2xl font-semibold\">{text(\"successTitle\")}</h2>\n <p className=\"text-sm\">{text(\"successDescription\")}</p>\n {isLoading ? (\n <SkeletonRows rows={2} />\n ) : errorKey != null ? (\n <ErrorMessage errorKey={errorKey} onRetry={refetch} />\n ) : (\n request != null && (\n <>\n <div className=\"flex flex-col gap-1\">\n <span className=\"text-sm\">{text(\"successReference\")}</span>\n <span\n data-bitsnap-returns-slot=\"returnReference\"\n className={cn(\"text-lg font-semibold\", reference.className)}\n style={reference.style}\n >\n {request.reference}\n </span>\n </div>\n {request.returnInstructions !== \"\" && (\n <div className=\"flex flex-col gap-1\">\n <span className=\"text-sm font-medium\">\n {text(\"successInstructions\")}\n </span>\n <p\n data-bitsnap-returns-slot=\"returnInstructions\"\n className={cn(\n \"whitespace-pre-wrap border p-3 text-sm\",\n instructions.className,\n )}\n style={instructions.style}\n >\n {request.returnInstructions}\n </p>\n </div>\n )}\n </>\n )\n )}\n </div>\n <div className=\"flex flex-wrap gap-3\">\n <Button\n type=\"button\"\n data-bitsnap-returns-slot=\"submitButton\"\n className={cn(PRIMARY_BUTTON_CLASS, submitButton.className)}\n style={submitButton.style}\n onClick={onContinue}\n >\n {text(\"successDone\")}\n </Button>\n {onOpenMyReturns != null && (\n <Button\n type=\"button\"\n variant=\"secondary\"\n data-bitsnap-returns-slot=\"secondaryButton\"\n className={cn(SECONDARY_BUTTON_CLASS, secondaryButton.className)}\n style={secondaryButton.style}\n onClick={onOpenMyReturns}\n >\n {text(\"myReturnsLink\")}\n </Button>\n )}\n </div>\n </section>\n );\n}\n","import * as React from \"react\";\n\nimport { cn } from \"../lib/utils\";\n\nexport interface TextareaProps\n extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"flex min-h-[60px] w-full rounded-md border border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:bg-neutral-950 dark:ring-offset-neutral-950 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300\",\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n","import type { SelectedReturnLine } from \"./state-machine\";\n\n/** Keeps a typed quantity inside `0..max`. Non-numeric input becomes `0`. */\nexport function clampQuantity(value: number, max: number): number {\n if (!Number.isFinite(value)) {\n return 0;\n }\n\n return Math.min(Math.max(0, Math.trunc(value)), Math.max(0, max));\n}\n\n/** A line can be selected only when it is eligible and has quantity left. */\nexport function isLineSelectable(line: {\n eligible: boolean;\n availableQuantity: number;\n}): boolean {\n return line.eligible && line.availableQuantity > 0;\n}\n\n/** Lines with a positive quantity, in the order of the order's lines. */\nexport function toSelectedLines(\n lineIds: readonly string[],\n quantities: Readonly<Record<string, number>>,\n): SelectedReturnLine[] {\n return lineIds\n .map((lineId) => ({ lineId, quantity: quantities[lineId] ?? 0 }))\n .filter((line) => line.quantity > 0);\n}\n","/** One line chosen for return. */\nexport type SelectedReturnLine = {\n lineId: string;\n quantity: number;\n};\n\n/** Where the default flow of `BitsnapReturns` currently is. */\nexport type ReturnsStep =\n | { name: \"email\" }\n | { name: \"code\" }\n | { name: \"orders\" }\n | {\n name: \"order\";\n orderId: string;\n /** Selection to restore when coming back from the confirmation. */\n items?: SelectedReturnLine[];\n note?: string;\n }\n | {\n name: \"confirmation\";\n orderId: string;\n items: SelectedReturnLine[];\n note: string;\n }\n | { name: \"result\"; returnId: string }\n | { name: \"myReturns\" }\n | { name: \"myReturn\"; returnId: string };\n\nexport type ReturnsStepName = ReturnsStep[\"name\"];\n\nexport type ReturnsStepEvent =\n /** A verification code was requested. */\n | { type: \"CODE_SENT\" }\n /** The session became valid: code verified, stored session or panel token. */\n | { type: \"AUTHENTICATED\" }\n /** The session was dropped by the backend, expiry or logout. */\n | { type: \"SESSION_EXPIRED\" }\n | { type: \"SELECT_ORDER\"; orderId: string }\n | { type: \"REVIEW\"; items: SelectedReturnLine[]; note: string }\n | { type: \"SUBMITTED\"; returnId: string }\n | { type: \"OPEN_MY_RETURNS\" }\n | { type: \"SELECT_RETURN\"; returnId: string }\n | { type: \"BACK\" }\n /** Leave the result screen for the order list. */\n | { type: \"CONTINUE\" };\n\nconst STEPS_WITH_SESSION: readonly ReturnsStepName[] = [\n \"orders\",\n \"order\",\n \"confirmation\",\n \"result\",\n \"myReturns\",\n \"myReturn\",\n];\n\n/** Steps that cannot be shown without a returns session. */\nexport function stepRequiresSession(step: ReturnsStepName): boolean {\n return STEPS_WITH_SESSION.includes(step);\n}\n\n/** Starts at the orders when a session exists, otherwise at the email. */\nexport function initialReturnsStep(hasSession: boolean): ReturnsStep {\n return hasSession ? { name: \"orders\" } : { name: \"email\" };\n}\n\n/**\n * Pure transition function of the default flow. Events that do not apply to\n * the current step leave it unchanged.\n */\nexport function reduceReturnsStep(\n step: ReturnsStep,\n event: ReturnsStepEvent,\n): ReturnsStep {\n switch (event.type) {\n case \"SESSION_EXPIRED\":\n // Email and code do not need a session; keep a pending verification.\n return stepRequiresSession(step.name) ? { name: \"email\" } : step;\n case \"CODE_SENT\":\n return step.name === \"email\" ? { name: \"code\" } : step;\n case \"AUTHENTICATED\":\n return step.name === \"email\" || step.name === \"code\"\n ? { name: \"orders\" }\n : step;\n case \"SELECT_ORDER\":\n return step.name === \"orders\"\n ? { name: \"order\", orderId: event.orderId }\n : step;\n case \"REVIEW\":\n return step.name === \"order\"\n ? {\n name: \"confirmation\",\n orderId: step.orderId,\n items: event.items,\n note: event.note,\n }\n : step;\n case \"SUBMITTED\":\n return step.name === \"confirmation\"\n ? { name: \"result\", returnId: event.returnId }\n : step;\n case \"OPEN_MY_RETURNS\":\n return step.name === \"orders\" || step.name === \"result\"\n ? { name: \"myReturns\" }\n : step;\n case \"SELECT_RETURN\":\n return step.name === \"myReturns\"\n ? { name: \"myReturn\", returnId: event.returnId }\n : step;\n case \"CONTINUE\":\n return step.name === \"result\" ? { name: \"orders\" } : step;\n case \"BACK\":\n switch (step.name) {\n case \"code\":\n return { name: \"email\" };\n case \"order\":\n case \"myReturns\":\n return { name: \"orders\" };\n case \"confirmation\":\n return {\n name: \"order\",\n orderId: step.orderId,\n items: step.items,\n note: step.note,\n };\n case \"myReturn\":\n return { name: \"myReturns\" };\n default:\n return step;\n }\n }\n}\n\nconst STEP_NUMBERS: Partial<Record<ReturnsStepName, number>> = {\n email: 1,\n code: 2,\n orders: 3,\n order: 4,\n confirmation: 5,\n result: 6,\n};\n\nexport const RETURNS_STEP_COUNT = 6;\n\n/** Position of a step in the return flow, `undefined` for the \"my returns\" views. */\nexport function returnsStepNumber(step: ReturnsStepName): number | undefined {\n return STEP_NUMBERS[step];\n}\n"],"mappings":"+kBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,oBAAAE,GAAA,2BAAAC,GAAA,gBAAAC,GAAA,uBAAAC,GAAA,8BAAAC,GAAA,oBAAAC,GAAA,wBAAAC,GAAA,qBAAAC,GAAA,0BAAAC,GAAA,yBAAAC,GAAA,uBAAAC,GAAA,qBAAAC,GAAA,oBAAAC,GAAA,kBAAAC,GAAA,oBAAAC,GAAA,gBAAAC,GAAA,iBAAAC,GAAA,oBAAAC,GAAA,qBAAAC,GAAA,uBAAAC,GAAA,yBAAAC,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AW,EAAO,KAAAC,CAAK,IACzBZ,EAAS,CAAE,KAAM,SAAU,MAAAW,EAAO,KAAAC,CAAK,CAAC,EAE5C,EAEDb,EAAK,OAAS,mBACb,OAACc,GAAA,CACC,QAASd,EAAK,QACd,MAAOA,EAAK,MACZ,KAAMA,EAAK,KACX,OAAQ,IAAMC,EAAS,CAAE,KAAM,MAAO,CAAC,EACvC,YAAcc,GACZd,EAAS,CAAE,KAAM,YAAa,SAAAc,CAAS,CAAC,EAE5C,EAEDf,EAAK,OAAS,aACb,OAACgB,GAAA,CACC,SAAUhB,EAAK,SACf,WAAY,IAAMC,EAAS,CAAE,KAAM,UAAW,CAAC,EAC/C,gBAAiB,IAAMA,EAAS,CAAE,KAAM,iBAAkB,CAAC,EAC7D,EAEDD,EAAK,OAAS,gBACb,OAACiB,GAAA,CACC,eAAiBF,GACfd,EAAS,CAAE,KAAM,gBAAiB,SAAAc,CAAS,CAAC,EAE9C,OAAQ,IAAMd,EAAS,CAAE,KAAM,MAAO,CAAC,EACzC,EAEDD,EAAK,OAAS,eACb,OAACkB,GAAA,CACC,SAAUlB,EAAK,SACf,OAAQ,IAAMC,EAAS,CAAE,KAAM,MAAO,CAAC,EACzC,GAEJ,CAEJ,CAYO,SAASkB,GAAeC,EAA4B,CACzD,SACE,OAACC,GAAA,CAAiB,GAAGD,EACnB,mBAACxB,GAAA,CAAc,WAAYwB,EAAM,kBAAoB,MAAQA,EAAM,mBAAqB,GAAI,EAC9F,CAEJ","names":["returns_exports","__export","BitsnapReturns","BitsnapReturnsProvider","Environment","RETURNS_SLOT_NAMES","ReturnsAppearanceProvider","ReturnsCodeStep","ReturnsConfirmation","ReturnsEmailStep","ReturnsMyReturnDetail","ReturnsMyReturnsList","ReturnsOrderDetail","ReturnsOrderList","ReturnsProvider","ReturnsResult","useCreateReturn","useMyReturn","useMyReturns","useReturnOrders","useReturnSession","useReturnableOrder","useReturnsAppearance","useReturnsSlot","useReturnsText","__toCommonJS","import_react","import_clsx","import_tailwind_merge","cn","inputs","import_react","omitUndefined","tokens","result","key","value","hasAnyElement","elements","element","resolveBoundaryStyle","variables","shadcnVariables","style","token","variable","resolveAppearanceCore","appearance","config","theme","getSlotAppearance","slot","RETURNS_SLOT_NAMES","RETURNS_TOKEN_VARIABLES","RETURNS_THEME_PRESETS","RETURNS_SHADCN_VARIABLES","resolveReturnsAppearance","appearance","resolved","resolveAppearanceCore","getReturnsSlotAppearance","slot","getSlotAppearance","import_jsx_runtime","ReturnsAppearanceContext","resolveReturnsAppearance","ReturnsAppearanceProvider","appearance","children","resolved","useReturnsAppearance","useReturnsSlot","slot","getReturnsSlotAppearance","import_react","import_class_variance_authority","import_radix_ui","import_jsx_runtime","buttonVariants","Button","className","variant","size","asChild","props","Comp","cn","import_jsx_runtime","Input","className","type","props","cn","LabelPrimitive","import_jsx_runtime","Label","className","props","cn","import_lucide_react","import_jsx_runtime","Spinner","className","props","cn","import_connect_query","import_react_query","import_react","import_connect_query","import_connect_web","import_react_query","import_react","DEFAULT_HOST","HOST","notifications_NotificationsService_connectquery_exports","__export","createNotificationGroup","createNotificationGroupUser","createNotificationMessage","createNotificationMessageJob","createNotificationSetting","createNotificationUser","deleteNotificationGroup","deleteNotificationGroupUser","deleteNotificationMessage","deleteNotificationMessageJob","deleteNotificationSetting","deleteNotificationUser","getNotificationStats","getNotificationUserSettings","getProjectedRecipientCount","getSentNotificationMessages","getUserGroups","readNotificationGroupUsers","readNotificationGroups","readNotificationMessageJobs","readNotificationMessages","readNotificationProducts","readNotificationSetting","readNotificationUsers","updateNotificationGroup","updateNotificationGroupUser","updateNotificationMessage","updateNotificationMessageJob","updateNotificationSetting","updateNotificationUser","updateUserGroups","verifyUserEmail","import_codegenv2","import_wkt","import_codegenv2","import_wkt","file_dashboard_v1_product","import_codegenv2","import_wkt","file_common_v1_push_notifications","file_dashboard_v1_notifications","file_dashboard_v1_product","file_common_v1_push_notifications","NotificationsService","file_dashboard_v1_notifications","createNotificationSetting","NotificationsService","readNotificationSetting","updateNotificationSetting","deleteNotificationSetting","createNotificationGroup","readNotificationGroups","updateNotificationGroup","deleteNotificationGroup","createNotificationUser","readNotificationUsers","updateNotificationUser","deleteNotificationUser","createNotificationGroupUser","readNotificationGroupUsers","updateNotificationGroupUser","deleteNotificationGroupUser","createNotificationMessage","readNotificationMessages","getSentNotificationMessages","updateNotificationMessage","deleteNotificationMessage","createNotificationMessageJob","readNotificationMessageJobs","updateNotificationMessageJob","deleteNotificationMessageJob","readNotificationProducts","getNotificationUserSettings","verifyUserEmail","getUserGroups","updateUserGroups","getProjectedRecipientCount","getNotificationStats","public_api_PublicApiService_connectquery_exports","__export","addPublicOrderComment","applePayValidateMerchant","authorizeOneClickPayment","clearAppStoreAccountToken","didBuyProduct","getAppStoreAccountToken","getAppStoreEntitlements","getAvailableCountForProduct","getGuestCatalog","getNotificationHistory","getNotificationSettings","getNotificationSettingsDetails","getOrder","getOrderForTestimonial","getOrderRetryUrl","getOrders","getPreOrderDetails","getPublicOrderDetails","getShopProducts","getStoreKitCatalog","getTestimonialUploadUrl","isOneClickPaymentAvailable","notifyUserAboutProductAvailability","pushEvent","pushSendDeviceToken","restoreAppStorePurchases","shouldShopProducts","shouldShowGuestCatalog","submitTestimonial","updateGlobalNotificationSettings","updateNotificationSettings","userPanelDeleteAccount","userPanelGetAudiobookDetails","userPanelGetAudiobookDetailsDownloadURLs","userPanelGetCourseDetails","userPanelGetFileDetails","userPanelGetProducts","userPanelGetTicketDetails","userPanelLogin","userPanelLoginWithCode","userPanelLogout","userPanelResolveProductAccess","verifyAppStorePurchase","import_codegenv2","import_codegenv2","file_common_v1_address","import_codegenv2","file_common_v1_gateway","import_codegenv2","import_wkt","file_dashboard_v1_audiobooks","import_wkt","file_public_v1_public_api","file_common_v1_address","file_common_v1_gateway","file_common_v1_push_notifications","file_dashboard_v1_audiobooks","PublicApiService","file_public_v1_public_api","getOrder","PublicApiService","getOrders","getOrderRetryUrl","userPanelLogin","userPanelLoginWithCode","userPanelLogout","userPanelDeleteAccount","userPanelGetProducts","userPanelGetAudiobookDetails","userPanelGetAudiobookDetailsDownloadURLs","userPanelGetFileDetails","userPanelGetTicketDetails","userPanelGetCourseDetails","pushSendDeviceToken","pushEvent","shouldShopProducts","shouldShowGuestCatalog","getGuestCatalog","userPanelResolveProductAccess","getShopProducts","didBuyProduct","getAppStoreAccountToken","verifyAppStorePurchase","getAppStoreEntitlements","restoreAppStorePurchases","clearAppStoreAccountToken","getStoreKitCatalog","getNotificationSettings","getNotificationSettingsDetails","updateGlobalNotificationSettings","updateNotificationSettings","getNotificationHistory","getAvailableCountForProduct","isOneClickPaymentAvailable","getPreOrderDetails","applePayValidateMerchant","authorizeOneClickPayment","notifyUserAboutProductAvailability","getPublicOrderDetails","addPublicOrderComment","getOrderForTestimonial","submitTestimonial","getTestimonialUploadUrl","returns_ReturnsService_connectquery_exports","__export","createReturnRequest","exchangePanelSession","getMyReturn","getReturnableOrder","listMyReturns","listReturnOrders","startReturnSession","verifyReturnSession","import_codegenv2","import_codegenv2","file_common_v1_environment","Environment","import_wkt","file_public_v1_returns","file_common_v1_environment","ReturnsService","file_public_v1_returns","startReturnSession","ReturnsService","verifyReturnSession","exchangePanelSession","listReturnOrders","getReturnableOrder","createReturnRequest","listMyReturns","getMyReturn","import_jsx_runtime","rpcProvider","public_api_PublicApiService_connectquery_exports","notifications_NotificationsService_connectquery_exports","returns_ReturnsService_connectquery_exports","customHost","getTransportHost","customHost","HOST","createRpcTransport","host","input","init","transportsByHost","getRpcTransport","transport","SESSION_EXPIRED","ERROR_TEXT_KEYS","getReturnsErrorCode","error","rawMessage","message","code","isSessionExpiredError","mapReturnsError","createIdempotencyKey","cryptoObject","bytes","i","byte","parseHex","value","match","hex","char","parseRgb","channels","channel","linearize","readableForeground","color","trimmed","rgb","r","g","b","luminance","whiteContrast","blackContrast","brandColorTokens","foreground","resolveReturnsEnvironment","environment","LEGACY_TEXT_KEYS","mapLegacyTexts","texts","result","legacyKey","targets","value","target","key","resolveBrandAppearance","appearance","theme","color","brandColorTokens","resolvePagedArguments","first","pageToken","import_connect","import_connect_query","import_react_query","import_react","import_wkt","KEY_PREFIX","sessionStorageKey","projectID","getBrowserSessionStorage","readStoredSession","storage","now","key","raw","parsed","token","expiresAt","writeStoredSession","session","clearStoredSession","expiryToMillis","import_react","pickLocaleTable","tables","locale","mergeTexts","table","overrides","result","key","value","resolveTexts","DEFAULT_LOCALE","localeStorageKey","activeLocale","getLocale","activeLocale","localeStorageKey","DEFAULT_LOCALE","RETURNS_TEXT_TABLES","resolveReturnsTexts","locale","overrides","resolveTexts","fillText","template","values","match","name","STATUS_TEXT_KEYS","REFUND_STATUS_TEXT_KEYS","statusTextKey","status","refundStatusTextKey","import_jsx_runtime","ReturnsTextsContext","resolveReturnsTexts","ReturnsTextsProvider","texts","locale","children","activeLocale","getLocale","value","useReturnsText","key","values","fillText","useReturnsLocale","import_jsx_runtime","ReturnsContext","useReturnsContext","name","value","returnsQueryKey","ReturnsService","MAX_TIMEOUT_MS","SessionProvider","projectID","environment","transport","panelAccessToken","className","children","queryClient","boundaryClassName","boundaryStyle","useReturnsAppearance","root","useReturnsSlot","session","setSession","exchangeError","setExchangeError","challenge","setChallenge","previousPanelToken","dropCachedData","clearSession","clearStoredSession","getBrowserSessionStorage","authenticate","next","writeStoredSession","cancelled","storage","hadPanelToken","stored","readStoredSession","response","expiresAt","expiryToMillis","error","remaining","timer","cn","ReturnsProvider","host","appearance","texts","theme","locale","existingQueryClient","ownQueryClient","resolvedHost","getTransportHost","getRpcTransport","brandColor","resolvedAppearance","resolveBrandAppearance","resolvedTexts","mapLegacyTexts","content","ReturnsAppearanceProvider","ReturnsTextsProvider","resolveReturnsEnvironment","BitsnapReturnsProvider","asError","error","errorKeyOf","mapReturnsError","useDropSessionOnExpiry","clearSession","isSessionExpiredError","usePageTokens","resetKey","tokens","setTokens","token","current","useReturnSession","ctx","useReturnsContext","startMutation","rpcProvider","verifyMutation","setChallenge","authenticate","startSession","email","trimmed","response","verifySession","input","expiresAt","expiryToMillis","start","verify","code","resend","isSessionPending","useReturnOrders","first","pageSize","explicitPageToken","resolvePagedArguments","pages","query","nextPageToken","useReturnableOrder","orderId","useCreateReturn","queryClient","mutation","idempotencyKey","send","key","returnsQueryKey","submit","createIdempotencyKey","mutateAsync","mutate","options","useMyReturns","useMyReturn","returnId","import_jsx_runtime","Skeleton","className","props","cn","import_jsx_runtime","PRIMARY_BUTTON_CLASS","SECONDARY_BUTTON_CLASS","INPUT_CLASS","StepFrame","title","description","onBack","className","children","text","useReturnsText","header","useReturnsSlot","titleSlot","descriptionSlot","backButton","cn","Button","ErrorMessage","errorKey","onRetry","error","secondaryButton","EmptyState","emptyState","SkeletonRows","rows","skeleton","_","index","Skeleton","StatusBadge","status","badge","statusTextKey","useRefundStatusText","refundStatusTextKey","Pagination","page","total","hasNext","hasPrevious","isFetching","onNext","onPrevious","pagination","import_jsx_runtime","ReturnsEmailStep","onSubmitted","className","useReturnsContext","text","useReturnsText","session","useReturnSession","email","setEmail","form","useReturnsSlot","input","submitButton","handleSubmit","event","StepFrame","cn","Label","Input","INPUT_CLASS","ErrorMessage","Button","PRIMARY_BUTTON_CLASS","Spinner","useCountdown","availableAt","now","setNow","timer","current","ReturnsCodeStep","onVerified","onBack","code","setCode","secondsLeft","resendButton","isBusy","SECONDARY_BUTTON_CLASS","LogoutButton","logoutButton","import_wkt","formatDate","timestamp","locale","date","formatMoney","minor","currency","locale","amount","formatter","digits","toDecimalString","fractionDigits","negative","absolute","divisor","whole","fraction","import_jsx_runtime","ReturnsMyReturnsList","onSelectReturn","onBack","pageSize","className","useReturnsContext","text","useReturnsText","locale","useReturnsLocale","refundText","useRefundStatusText","myReturns","useMyReturns","list","useReturnsSlot","card","reference","secondaryButton","StepFrame","SkeletonRows","ErrorMessage","EmptyState","cn","item","formatDate","StatusBadge","Button","SECONDARY_BUTTON_CLASS","Pagination","ReturnsMyReturnDetail","returnId","request","isLoading","errorKey","refetch","useMyReturn","summary","lineList","lineSlot","lineName","instructions","history","historyEntry","formatMoney","line","entry","import_react","React","import_jsx_runtime","Textarea","className","props","ref","cn","clampQuantity","value","max","isLineSelectable","line","toSelectedLines","lineIds","quantities","lineId","import_jsx_runtime","ReturnsOrderList","onSelectOrder","onOpenMyReturns","showLogout","pageSize","className","useReturnsContext","text","useReturnsText","locale","useReturnsLocale","orders","useReturnOrders","list","useReturnsSlot","card","reference","date","total","secondaryButton","StepFrame","Button","cn","SECONDARY_BUTTON_CLASS","LogoutButton","SkeletonRows","ErrorMessage","EmptyState","order","formatDate","formatMoney","Pagination","ReturnsOrderDetail","orderId","onContinue","onBack","initialItems","initialNote","returnHistory","isLoading","errorKey","refetch","useReturnableOrder","quantities","setQuantities","item","note","setNote","showEmptyError","setShowEmptyError","lineList","lineSlot","lineName","linePrice","quantityControl","quantityButton","quantityInput","ineligibleReason","noteInput","submitButton","history","historyEntry","setQuantity","line","value","current","clampQuantity","handleSubmit","event","items","toSelectedLines","isLineSelectable","selectable","quantity","inputId","INPUT_CLASS","Label","Textarea","PRIMARY_BUTTON_CLASS","entry","StatusBadge","ReturnsConfirmation","onSubmitted","orderErrorKey","create","useCreateReturn","summary","request","candidate","Spinner","ReturnsResult","returnId","useMyReturn","success","instructions","STEPS_WITH_SESSION","stepRequiresSession","step","initialReturnsStep","hasSession","reduceReturnsStep","event","STEP_NUMBERS","RETURNS_STEP_COUNT","returnsStepNumber","import_jsx_runtime","StepIndicator","current","text","useReturnsText","slot","useReturnsSlot","cn","RETURNS_STEP_COUNT","ReturnsRouter","panelToken","status","useReturnsContext","step","dispatch","reduceReturnsStep","initialReturnsStep","SkeletonRows","stepNumber","returnsStepNumber","ReturnsEmailStep","ReturnsCodeStep","ReturnsOrderList","orderId","ReturnsOrderDetail","items","note","ReturnsConfirmation","returnId","ReturnsResult","ReturnsMyReturnsList","ReturnsMyReturnDetail","BitsnapReturns","props","ReturnsProvider"]}
|