palbase 0.77.0 → 0.78.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/dist/ai/index.js +2 -2
- package/dist/ai-sdk/index.js +2 -2
- package/dist/backend/engine.js +2 -2
- package/dist/backend/env.js +1 -1
- package/dist/backend/index.js +3 -3
- package/dist/backend/stack.js +1 -1
- package/dist/backend/test.js +2 -2
- package/dist/chunks/{34HGL5FX.js → 25KG2TVU.js} +1 -1
- package/dist/chunks/{GFBWGJW3.js → 2T3EX52E.js} +1 -1
- package/dist/chunks/{VOLGPAPR.js → 35KQJQ77.js} +2 -2
- package/dist/chunks/{ES24JS2D.js → 3TJFV35H.js} +2 -2
- package/dist/chunks/{FN5763FR.js → 3XF644A5.js} +2 -2
- package/dist/chunks/426QPZNS.js +13 -0
- package/dist/chunks/{U4VX7NKX.js → 4XE4HLPK.js} +2 -2
- package/dist/chunks/{WXT24CE5.js → 5KGMQFET.js} +1 -1
- package/dist/chunks/6Y4ICGZ7.js +2 -0
- package/dist/chunks/{G3PH5T6N.js → EUMY6SCM.js} +1 -1
- package/dist/chunks/{IZVBCAKH.js → FCCX2OTM.js} +2 -2
- package/dist/chunks/{RQJ4MX2H.js → IO5HB5B6.js} +2 -2
- package/dist/chunks/{AUOFL6RB.js → JY7YG3BO.js} +2 -2
- package/dist/chunks/{RRS7TQKX.js → L63FWRZX.js} +2 -2
- package/dist/chunks/{ONLXIZ6E.js → LONPNPNX.js} +2 -2
- package/dist/chunks/{DENZSXKJ.js → LXS7JHPJ.js} +2 -2
- package/dist/chunks/{QWXF6KWI.js → QWKOKJKM.js} +1 -1
- package/dist/chunks/{7RTPVUIH.js → RB4JQXKZ.js} +2 -2
- package/dist/chunks/{BDHVYVWT.js → ROV6TJZK.js} +1 -1
- package/dist/chunks/{KLK7HZZ7.js → TFPVJ3C3.js} +3 -3
- package/dist/chunks/{JOVXELK5.js → UUDOMSKW.js} +2 -2
- package/dist/chunks/{FE7ZBADH.js → VNUCKM7H.js} +1 -1
- package/dist/chunks/{ZZNNCI6A.js → WTFMJKDB.js} +2 -2
- package/dist/chunks/{F6OGRDZB.js → ZBTOHVML.js} +2 -2
- package/dist/chunks/{CYNLRAAW.js → ZIHVYOXE.js} +2 -2
- package/dist/cli.js +7 -3
- package/dist/cloud/index.js +2 -2
- package/dist/refuse/ai-sdk.js +1 -1
- package/dist/refuse/ai.js +1 -1
- package/dist/refuse/backend.js +1 -1
- package/dist/refuse/cloud.js +1 -1
- package/dist/refuse/server.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/testing.js +2 -2
- package/dist/web/index.js +2 -2
- package/dist/web/message.js +2 -2
- package/dist/web/palbe.js +2 -2
- package/dist/web/payments-ui.js +2 -2
- package/dist/web/paywall.js +2 -2
- package/dist/web/push-sw.js +1 -1
- package/dist/web/ssr.js +2 -2
- package/dist/web/vite.js +2 -2
- package/package.json +2 -2
- package/types/ai/src/chats.d.ts +7 -0
- package/types/backend/src/gateways.d.ts +2 -1
- package/types/cloud/src/generated/project.d.ts +1 -1
- package/types/internal/src/chat.d.ts +28 -0
- package/types/internal/src/modules/ai.d.ts +11 -7
- package/types/internal/src/modules/payments.d.ts +366 -24
- package/types/web/src/chat.d.ts +20 -0
- package/types/web/src/index.d.ts +1 -1
- package/dist/chunks/4M4GEXJS.js +0 -13
- package/dist/chunks/6WCN7VAZ.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! palbase 0.
|
|
2
|
-
import{c as n}from"./VOLGPAPR.js";import{a as s}from"./FE7ZBADH.js";var V=["ai.goal.updated","ai.mcp.auth_completed","ai.mcp.auth_required","ai.response.completed","ai.response.failed","ai.response.started","ai.secret_host_requested","ai.trigger.fired","ai.voice.closed","ai.voice.delegated","ai.voice.started","ai.wait.created","ai.wait.resumed","ai.wait.timed_out","ai.workflow.completed","ai.workflow.failed","audience.entered","audience.exited","calls.call.ended","calls.call.started","calls.participant.joined","calls.participant.left","calls.transcript.completed","calls.transcript.segment","campaigns.broadcast.canceled","campaigns.broadcast.completed","campaigns.broadcast.started","campaigns.onsite.clicked","campaigns.onsite.converted","campaigns.onsite.shown","commerce.buybox.changed","commerce.cart.abandoned","commerce.cart.merged","commerce.fulfillment.created","commerce.fulfillment.delivered","commerce.inventory.restocked","commerce.listing.price_dropped","commerce.order.created","commerce.order.paid","commerce.order.refunded","commerce.product.created","commerce.return.rejected","commerce.return.requested","commerce.review.created","commerce.store.created","commerce.store_order.canceled","consent.changed","device.revoked","file.deleted","file.moved","file.uploaded","flag.changed","flag.override_changed","iap.catalog.applied","iap.catalog.changed","iap.coupon.redeemed","iap.credits.depleted","iap.credits.low","iap.customer.changed","iap.customer.erased","iap.customer.merged","iap.entitlement.changed","iap.offer.redeemed","iap.ownership.transferred","iap.paywall.published","iap.purchase.completed","iap.quota.exhausted","iap.quota.threshold","iap.refund.changed","iap.store.changed","iap.subscription.changed","journey.converted","journey.ended","journey.entered","journey.event","journey.step","messaging.conversation.created","messaging.conversation.deleted","messaging.conversation.read","messaging.message.created","messaging.report.created","notification.action","notification.bounced","notification.complained","notification.delivered","notification.dismissed","notification.expired","notification.failed","notification.not_shown","notification.opened","notification.push_failing","notification.read","notification.received","notification.rejected","notification.sent","notification.shared_paused","notification.unconfirmed","notification.undelivered","notification.uninstalled","payments.dispute.closed","payments.dispute.opened","payments.payment.canceled","payments.payment.failed","payments.payment.requires_capture","payments.payment.succeeded","payments.refund.succeeded","payments.split.approved","payments.split.refunded","payments.sub_merchant.updated","payments.subscription.canceled","payments.subscription.changed","payments.wallet.balance_changed","payments.wallet.hold_changed","payments.wallet.vested","promotions.rule.created","session.ended","stores.action.changed","stores.app.changed","stores.apple.changed","stores.apple.key.made","stores.apple.key.revoked","stores.apple.session.changed","stores.apple.session.ended","stores.apple.session.expired","stores.beta_review.changed","stores.build.changed","stores.delivery.changed","stores.delivery.requested","stores.device.changed","stores.feedback.received","stores.google.changed","stores.group.changed","stores.invitation.changed","stores.package.changed","stores.play_release.changed","stores.product.changed","stores.review.message","stores.version.changed","stores.version.reviewed","stores.vitals.changed","stores.webhook.changed","user.converted","user.deleted","user.locale_changed","user.password_changed","user.permissions_changed","workspace.conflict","workspace.deleted","workspace.published"];var r={};s(r,{client:()=>v});function v(t){return{async draftAgent(e){return t.send({op:"DraftAgent",method:"POST",path:"/ai/agent-drafts",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listAgents(e){return t.send({op:"ListAgents",method:"GET",path:"/ai/agents",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getAgent(e){return t.send({op:"GetAgent",method:"GET",path:"/ai/agents/"+n("GetAgent","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putAgent(e){return t.send({op:"PutAgent",method:"PUT",path:"/ai/agents/"+n("PutAgent","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteAgent(e){return t.send({op:"DeleteAgent",method:"DELETE",path:"/ai/agents/"+n("DeleteAgent","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async publishAgent(e){return t.send({op:"PublishAgent",method:"POST",path:"/ai/agents/"+n("PublishAgent","name",e.path.name)+"/publish",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rollbackAgent(e){return t.send({op:"RollbackAgent",method:"POST",path:"/ai/agents/"+n("RollbackAgent","name",e.path.name)+"/rollback",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listAgentVersions(e){return t.send({op:"ListAgentVersions",method:"GET",path:"/ai/agents/"+n("ListAgentVersions","name",e.path.name)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async createAudioSpeech(e){return t.send({op:"CreateAudioSpeech",method:"POST",path:"/ai/audio/speech",auth:[["SecretKeyAuth"]],answers:{200:"raw"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createAudioTranscription(e){return t.send({op:"CreateAudioTranscription",method:"POST",path:"/ai/audio/transcriptions",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listChats(e){return t.send({op:"ListChats",method:"GET",path:"/ai/chats",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createChat(e){return t.send({op:"CreateChat",method:"POST",path:"/ai/chats",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChat(e){return t.send({op:"GetChat",method:"GET",path:"/ai/chats/"+n("GetChat","chat_id",e.path.chat_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteChat(e){return t.send({op:"DeleteChat",method:"DELETE",path:"/ai/chats/"+n("DeleteChat","chat_id",e.path.chat_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async decideChatApproval(e){return t.send({op:"DecideChatApproval",method:"POST",path:"/ai/chats/"+n("DecideChatApproval","chat_id",e.path.chat_id)+"/approvals/"+n("DecideChatApproval","approval_id",e.path.approval_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChatExecution(e){return t.send({op:"GetChatExecution",method:"GET",path:"/ai/chats/"+n("GetChatExecution","chat_id",e.path.chat_id)+"/execution",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async patchChatExecution(e){return t.send({op:"PatchChatExecution",method:"PATCH",path:"/ai/chats/"+n("PatchChatExecution","chat_id",e.path.chat_id)+"/execution",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async forkChat(e){return t.send({op:"ForkChat",method:"POST",path:"/ai/chats/"+n("ForkChat","chat_id",e.path.chat_id)+"/fork",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChatGoal(e){return t.send({op:"GetChatGoal",method:"GET",path:"/ai/chats/"+n("GetChatGoal","chat_id",e.path.chat_id)+"/goal",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async setChatGoal(e){return t.send({op:"SetChatGoal",method:"PUT",path:"/ai/chats/"+n("SetChatGoal","chat_id",e.path.chat_id)+"/goal",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async clearChatGoal(e){return t.send({op:"ClearChatGoal",method:"DELETE",path:"/ai/chats/"+n("ClearChatGoal","chat_id",e.path.chat_id)+"/goal",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},query:e.query,signal:e.signal})},async updateChatGoal(e){return t.send({op:"UpdateChatGoal",method:"PATCH",path:"/ai/chats/"+n("UpdateChatGoal","chat_id",e.path.chat_id)+"/goal",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async handoffChat(e){return t.send({op:"HandoffChat",method:"POST",path:"/ai/chats/"+n("HandoffChat","chat_id",e.path.chat_id)+"/handoff",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async putChatMember(e){return t.send({op:"PutChatMember",method:"PUT",path:"/ai/chats/"+n("PutChatMember","chat_id",e.path.chat_id)+"/members/"+n("PutChatMember","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteChatMember(e){return t.send({op:"DeleteChatMember",method:"DELETE",path:"/ai/chats/"+n("DeleteChatMember","chat_id",e.path.chat_id)+"/members/"+n("DeleteChatMember","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listChatMessages(e){return t.send({op:"ListChatMessages",method:"GET",path:"/ai/chats/"+n("ListChatMessages","chat_id",e.path.chat_id)+"/messages",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async sendChatMessage(e){return t.send({op:"SendChatMessage",method:"POST",path:"/ai/chats/"+n("SendChatMessage","chat_id",e.path.chat_id)+"/messages",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChatMessageAttachment(e){return t.send({op:"GetChatMessageAttachment",method:"GET",path:"/ai/chats/"+n("GetChatMessageAttachment","chat_id",e.path.chat_id)+"/messages/"+n("GetChatMessageAttachment","message_id",e.path.message_id)+"/attachments/"+n("GetChatMessageAttachment","position",e.path.position),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"raw"},signal:e.signal})},async listChatParts(e){return t.send({op:"ListChatParts",method:"GET",path:"/ai/chats/"+n("ListChatParts","chat_id",e.path.chat_id)+"/parts",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async putChatPipe(e){return t.send({op:"PutChatPipe",method:"PUT",path:"/ai/chats/"+n("PutChatPipe","chat_id",e.path.chat_id)+"/pipe",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteChatPipe(e){return t.send({op:"DeleteChatPipe",method:"DELETE",path:"/ai/chats/"+n("DeleteChatPipe","chat_id",e.path.chat_id)+"/pipe",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async sendSubagentMessage(e){return t.send({op:"SendSubagentMessage",method:"POST",path:"/ai/chats/"+n("SendSubagentMessage","chat_id",e.path.chat_id)+"/runs/"+n("SendSubagentMessage","run_id",e.path.run_id)+"/messages",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stopSubagent(e){return t.send({op:"StopSubagent",method:"POST",path:"/ai/chats/"+n("StopSubagent","chat_id",e.path.chat_id)+"/runs/"+n("StopSubagent","run_id",e.path.run_id)+"/stop",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stopChat(e){return t.send({op:"StopChat",method:"POST",path:"/ai/chats/"+n("StopChat","chat_id",e.path.chat_id)+"/stop",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTurnToolCalls(e){return t.send({op:"ListTurnToolCalls",method:"GET",path:"/ai/chats/"+n("ListTurnToolCalls","chat_id",e.path.chat_id)+"/tool-calls",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getChatToolCall(e){return t.send({op:"GetChatToolCall",method:"GET",path:"/ai/chats/"+n("GetChatToolCall","chat_id",e.path.chat_id)+"/tool-calls/"+n("GetChatToolCall","call_id",e.path.call_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async answerChatToolCall(e){return t.send({op:"AnswerChatToolCall",method:"POST",path:"/ai/chats/"+n("AnswerChatToolCall","chat_id",e.path.chat_id)+"/tool-outputs/"+n("AnswerChatToolCall","call_id",e.path.call_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listChatTurnArtifacts(e){return t.send({op:"ListChatTurnArtifacts",method:"GET",path:"/ai/chats/"+n("ListChatTurnArtifacts","chat_id",e.path.chat_id)+"/turns/"+n("ListChatTurnArtifacts","response_id",e.path.response_id)+"/artifacts",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getChatTurnArtifact(e){return t.send({op:"GetChatTurnArtifact",method:"GET",path:"/ai/chats/"+n("GetChatTurnArtifact","chat_id",e.path.chat_id)+"/turns/"+n("GetChatTurnArtifact","response_id",e.path.response_id)+"/artifacts/"+n("GetChatTurnArtifact","artifact_id",e.path.artifact_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"raw"},signal:e.signal})},async getChatTurnCost(e){return t.send({op:"GetChatTurnCost",method:"GET",path:"/ai/chats/"+n("GetChatTurnCost","chat_id",e.path.chat_id)+"/turns/"+n("GetChatTurnCost","response_id",e.path.response_id)+"/cost",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async startChatVoice(e){return t.send({op:"StartChatVoice",method:"POST",path:"/ai/chats/"+n("StartChatVoice","chat_id",e.path.chat_id)+"/voice",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChatVoice(e){return t.send({op:"GetChatVoice",method:"GET",path:"/ai/chats/"+n("GetChatVoice","chat_id",e.path.chat_id)+"/voice/"+n("GetChatVoice","voice_id",e.path.voice_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async closeChatVoice(e){return t.send({op:"CloseChatVoice",method:"DELETE",path:"/ai/chats/"+n("CloseChatVoice","chat_id",e.path.chat_id)+"/voice/"+n("CloseChatVoice","voice_id",e.path.voice_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async commandChatVoice(e){return t.send({op:"CommandChatVoice",method:"POST",path:"/ai/chats/"+n("CommandChatVoice","chat_id",e.path.chat_id)+"/voice/"+n("CommandChatVoice","voice_id",e.path.voice_id)+"/commands",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createEmbeddings(e){return t.send({op:"CreateEmbeddings",method:"POST",path:"/ai/embeddings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listEndpoints(e){return t.send({op:"ListEndpoints",method:"GET",path:"/ai/endpoints",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putEndpoint(e){return t.send({op:"PutEndpoint",method:"PUT",path:"/ai/endpoints/"+n("PutEndpoint","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteEndpoint(e){return t.send({op:"DeleteEndpoint",method:"DELETE",path:"/ai/endpoints/"+n("DeleteEndpoint","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listEnv(e){return t.send({op:"ListEnv",method:"GET",path:"/ai/env",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listEnvAllowances(e){return t.send({op:"ListEnvAllowances",method:"GET",path:"/ai/env/allowances",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async deleteEnvAllowance(e){return t.send({op:"DeleteEnvAllowance",method:"DELETE",path:"/ai/env/allowances/"+n("DeleteEnvAllowance","allowance_id",e.path.allowance_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listEnvHostRequests(e){return t.send({op:"ListEnvHostRequests",method:"GET",path:"/ai/env/host-requests",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async allowEnvHostRequest(e){return t.send({op:"AllowEnvHostRequest",method:"POST",path:"/ai/env/host-requests/"+n("AllowEnvHostRequest","request_id",e.path.request_id)+"/allow",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async dismissEnvHostRequest(e){return t.send({op:"DismissEnvHostRequest",method:"POST",path:"/ai/env/host-requests/"+n("DismissEnvHostRequest","request_id",e.path.request_id)+"/dismiss",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putEnv(e){return t.send({op:"PutEnv",method:"PUT",path:"/ai/env/"+n("PutEnv","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteEnv(e){return t.send({op:"DeleteEnv",method:"DELETE",path:"/ai/env/"+n("DeleteEnv","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async allowEnvHost(e){return t.send({op:"AllowEnvHost",method:"POST",path:"/ai/env/"+n("AllowEnvHost","key",e.path.key)+"/hosts",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listEnvironments(e){return t.send({op:"ListEnvironments",method:"GET",path:"/ai/environments",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createEnvironment(e){return t.send({op:"CreateEnvironment",method:"POST",path:"/ai/environments",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getEnvironment(e){return t.send({op:"GetEnvironment",method:"GET",path:"/ai/environments/"+n("GetEnvironment","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putEnvironment(e){return t.send({op:"PutEnvironment",method:"PUT",path:"/ai/environments/"+n("PutEnvironment","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteEnvironment(e){return t.send({op:"DeleteEnvironment",method:"DELETE",path:"/ai/environments/"+n("DeleteEnvironment","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async createImage(e){return t.send({op:"CreateImage",method:"POST",path:"/ai/images",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getImage(e){return t.send({op:"GetImage",method:"GET",path:"/ai/images/"+n("GetImage","image_id",e.path.image_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getImageFile(e){return t.send({op:"GetImageFile",method:"GET",path:"/ai/images/"+n("GetImageFile","image_id",e.path.image_id)+"/files/"+n("GetImageFile","position",e.path.position),auth:[["SecretKeyAuth"]],answers:{200:"raw"},signal:e.signal})},async getMachine(e){return t.send({op:"GetMachine",method:"GET",path:"/ai/machines/"+n("GetMachine","machine",e.path.machine),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteMachine(e){return t.send({op:"DeleteMachine",method:"DELETE",path:"/ai/machines/"+n("DeleteMachine","machine",e.path.machine),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},query:e.query,signal:e.signal})},async cordonMachine(e){return t.send({op:"CordonMachine",method:"POST",path:"/ai/machines/"+n("CordonMachine","machine",e.path.machine)+"/cordon",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async resumeMachine(e){return t.send({op:"ResumeMachine",method:"POST",path:"/ai/machines/"+n("ResumeMachine","machine",e.path.machine)+"/resume",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listModels(e){return t.send({op:"ListModels",method:"GET",path:"/ai/models",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async revokePoolKey(e){return t.send({op:"RevokePoolKey",method:"POST",path:"/ai/pool-keys/"+n("RevokePoolKey","key",e.path.key)+"/revoke",auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listPools(e){return t.send({op:"ListPools",method:"GET",path:"/ai/pools",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createPool(e){return t.send({op:"CreatePool",method:"POST",path:"/ai/pools",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deletePool(e){return t.send({op:"DeletePool",method:"DELETE",path:"/ai/pools/"+n("DeletePool","pool",e.path.pool),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listPoolKeys(e){return t.send({op:"ListPoolKeys",method:"GET",path:"/ai/pools/"+n("ListPoolKeys","pool",e.path.pool)+"/keys",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createPoolKey(e){return t.send({op:"CreatePoolKey",method:"POST",path:"/ai/pools/"+n("CreatePoolKey","pool",e.path.pool)+"/keys",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPoolState(e){return t.send({op:"GetPoolState",method:"GET",path:"/ai/pools/"+n("GetPoolState","pool",e.path.pool)+"/state",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listProviders(e){return t.send({op:"ListProviders",method:"GET",path:"/ai/providers",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectProvider(e){return t.send({op:"ConnectProvider",method:"PUT",path:"/ai/providers/"+n("ConnectProvider","provider",e.path.provider),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async disconnectProvider(e){return t.send({op:"DisconnectProvider",method:"DELETE",path:"/ai/providers/"+n("DisconnectProvider","provider",e.path.provider),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async createResponse(e){return t.send({op:"CreateResponse",method:"POST",path:"/ai/responses",auth:[["SecretKeyAuth"]],answers:{200:"raw",202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getResponse(e){return t.send({op:"GetResponse",method:"GET",path:"/ai/responses/"+n("GetResponse","response_id",e.path.response_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelResponse(e){return t.send({op:"CancelResponse",method:"POST",path:"/ai/responses/"+n("CancelResponse","response_id",e.path.response_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async followResponse(e){return t.send({op:"FollowResponse",method:"GET",path:"/ai/responses/"+n("FollowResponse","response_id",e.path.response_id)+"/live",auth:[["SecretKeyAuth"]],answers:{200:"raw"},query:e.query,signal:e.signal})},async getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/ai/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putSettings(e){return t.send({op:"PutSettings",method:"PUT",path:"/ai/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSpend(e){return t.send({op:"GetSpend",method:"GET",path:"/ai/spend",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async askSupport(e){return t.send({op:"AskSupport",method:"POST",path:"/ai/support-questions",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTools(e){return t.send({op:"ListTools",method:"GET",path:"/ai/tools",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listUsage(e){return t.send({op:"ListUsage",method:"GET",path:"/ai/usage",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async gatewayAudioSpeech(e){return t.send({op:"GatewayAudioSpeech",method:"POST",path:"/ai/v1/audio/speech",auth:[["SecretKeyAuth"]],answers:{200:"raw"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayAudioTranscriptions(e){return t.send({op:"GatewayAudioTranscriptions",method:"POST",path:"/ai/v1/audio/transcriptions",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayChatCompletions(e){return t.send({op:"GatewayChatCompletions",method:"POST",path:"/ai/v1/chat/completions",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayEmbeddings(e){return t.send({op:"GatewayEmbeddings",method:"POST",path:"/ai/v1/embeddings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayImagesGenerations(e){return t.send({op:"GatewayImagesGenerations",method:"POST",path:"/ai/v1/images/generations",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayAnthropicMessages(e){return t.send({op:"GatewayAnthropicMessages",method:"POST",path:"/ai/v1/messages",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayListModels(e){return t.send({op:"GatewayListModels",method:"GET",path:"/ai/v1/models",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async gatewayResponses(e){return t.send({op:"GatewayResponses",method:"POST",path:"/ai/v1/responses",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createVideo(e){return t.send({op:"CreateVideo",method:"POST",path:"/ai/videos",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getVideo(e){return t.send({op:"GetVideo",method:"GET",path:"/ai/videos/"+n("GetVideo","video_id",e.path.video_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelVideo(e){return t.send({op:"CancelVideo",method:"POST",path:"/ai/videos/"+n("CancelVideo","video_id",e.path.video_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listTriggers(e){return t.send({op:"ListTriggers",method:"GET",path:"/ai/triggers",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createTrigger(e){return t.send({op:"CreateTrigger",method:"POST",path:"/ai/triggers",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getTrigger(e){return t.send({op:"GetTrigger",method:"GET",path:"/ai/triggers/"+n("GetTrigger","trigger_id",e.path.trigger_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteTrigger(e){return t.send({op:"DeleteTrigger",method:"DELETE",path:"/ai/triggers/"+n("DeleteTrigger","trigger_id",e.path.trigger_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateTrigger(e){return t.send({op:"UpdateTrigger",method:"PATCH",path:"/ai/triggers/"+n("UpdateTrigger","trigger_id",e.path.trigger_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async testTrigger(e){return t.send({op:"TestTrigger",method:"POST",path:"/ai/triggers/"+n("TestTrigger","trigger_id",e.path.trigger_id)+"/test",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async invokeTriggerWebhook(e){return t.send({op:"InvokeTriggerWebhook",method:"POST",path:"/ai/triggers/"+n("InvokeTriggerWebhook","trigger_id",e.path.trigger_id)+"/hook",auth:[],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listWaits(e){return t.send({op:"ListWaits",method:"GET",path:"/ai/waits",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getWait(e){return t.send({op:"GetWait",method:"GET",path:"/ai/waits/"+n("GetWait","wait_id",e.path.wait_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async signalWait(e){return t.send({op:"SignalWait",method:"POST",path:"/ai/waits/"+n("SignalWait","wait_id",e.path.wait_id)+"/signal",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async cancelWait(e){return t.send({op:"CancelWait",method:"POST",path:"/ai/waits/"+n("CancelWait","wait_id",e.path.wait_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listWorkflowRuns(e){return t.send({op:"ListWorkflowRuns",method:"GET",path:"/ai/workflows/runs",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createWorkflowRun(e){return t.send({op:"CreateWorkflowRun",method:"POST",path:"/ai/workflows/runs",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getWorkflowRun(e){return t.send({op:"GetWorkflowRun",method:"GET",path:"/ai/workflows/runs/"+n("GetWorkflowRun","run_id",e.path.run_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async recordWorkflowStep(e){return t.send({op:"RecordWorkflowStep",method:"POST",path:"/ai/workflows/runs/"+n("RecordWorkflowStep","run_id",e.path.run_id)+"/steps/"+n("RecordWorkflowStep","step_key",e.path.step_key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async completeWorkflowRun(e){return t.send({op:"CompleteWorkflowRun",method:"POST",path:"/ai/workflows/runs/"+n("CompleteWorkflowRun","run_id",e.path.run_id)+"/complete",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async replayWorkflowRun(e){return t.send({op:"ReplayWorkflowRun",method:"POST",path:"/ai/workflows/runs/"+n("ReplayWorkflowRun","run_id",e.path.run_id)+"/replay",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stopRunTree(e){return t.send({op:"StopRunTree",method:"POST",path:"/ai/runs/"+n("StopRunTree","root_id",e.path.root_id)+"/stop-tree",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getMemory(e){return t.send({op:"GetMemory",method:"GET",path:"/ai/memory/"+n("GetMemory","namespace",e.path.namespace)+"/"+n("GetMemory","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putMemory(e){return t.send({op:"PutMemory",method:"PUT",path:"/ai/memory/"+n("PutMemory","namespace",e.path.namespace)+"/"+n("PutMemory","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMemory(e){return t.send({op:"DeleteMemory",method:"DELETE",path:"/ai/memory/"+n("DeleteMemory","namespace",e.path.namespace)+"/"+n("DeleteMemory","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async searchMemory(e){return t.send({op:"SearchMemory",method:"POST",path:"/ai/memory/search",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listActorGroupMembers(e){return t.send({op:"ListActorGroupMembers",method:"GET",path:"/ai/groups/"+n("ListActorGroupMembers","group_id",e.path.group_id)+"/members",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async addActorGroupMember(e){return t.send({op:"AddActorGroupMember",method:"POST",path:"/ai/groups/"+n("AddActorGroupMember","group_id",e.path.group_id)+"/members",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async broadcastActorGroup(e){return t.send({op:"BroadcastActorGroup",method:"POST",path:"/ai/groups/"+n("BroadcastActorGroup","group_id",e.path.group_id)+"/broadcast",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getA2AAgentCard(e){return t.send({op:"GetA2AAgentCard",method:"GET",path:"/.well-known/agent.json",auth:[],answers:{200:"json"},signal:e?.signal})},async callA2Arpc(e){return t.send({op:"CallA2ARPC",method:"POST",path:"/ai/a2a",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async putMcpUserCredential(e){return t.send({op:"PutMCPUserCredential",method:"POST",path:"/ai/endpoints/"+n("PutMCPUserCredential","name",e.path.name)+"/user-credentials/"+n("PutMCPUserCredential","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMcpUserCredential(e){return t.send({op:"DeleteMCPUserCredential",method:"DELETE",path:"/ai/endpoints/"+n("DeleteMCPUserCredential","name",e.path.name)+"/user-credentials/"+n("DeleteMCPUserCredential","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async startMcpoAuth(e){return t.send({op:"StartMCPOAuth",method:"GET",path:"/ai/endpoints/"+n("StartMCPOAuth","name",e.path.name)+"/oauth/start",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async completeMcpoAuthCallback(e){return t.send({op:"CompleteMCPOAuthCallback",method:"GET",path:"/ai/mcp/oauth/callback",auth:[],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listTemplates(e){return t.send({op:"ListTemplates",method:"GET",path:"/ai/templates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getTemplate(e){return t.send({op:"GetTemplate",method:"GET",path:"/ai/templates/"+n("GetTemplate","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putTemplate(e){return t.send({op:"PutTemplate",method:"PUT",path:"/ai/templates/"+n("PutTemplate","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteTemplate(e){return t.send({op:"DeleteTemplate",method:"DELETE",path:"/ai/templates/"+n("DeleteTemplate","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async publishTemplate(e){return t.send({op:"PublishTemplate",method:"POST",path:"/ai/templates/"+n("PublishTemplate","name",e.path.name)+"/publish",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rollbackTemplate(e){return t.send({op:"RollbackTemplate",method:"POST",path:"/ai/templates/"+n("RollbackTemplate","name",e.path.name)+"/rollback",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTemplateVersions(e){return t.send({op:"ListTemplateVersions",method:"GET",path:"/ai/templates/"+n("ListTemplateVersions","name",e.path.name)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listUserSpend(e){return t.send({op:"ListUserSpend",method:"GET",path:"/ai/users/spend",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getUserQuota(e){return t.send({op:"GetUserQuota",method:"GET",path:"/ai/users/"+n("GetUserQuota","user_id",e.path.user_id)+"/quota",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putUserQuota(e){return t.send({op:"PutUserQuota",method:"PUT",path:"/ai/users/"+n("PutUserQuota","user_id",e.path.user_id)+"/quota",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteUserQuota(e){return t.send({op:"DeleteUserQuota",method:"DELETE",path:"/ai/users/"+n("DeleteUserQuota","user_id",e.path.user_id)+"/quota",auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async clientAttestChallenge(e){return t.send({op:"ClientAttestChallenge",method:"POST",path:"/ai/client/attest-challenge",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async runClientTemplate(e){return t.send({op:"RunClientTemplate",method:"POST",path:"/ai/client/templates/"+n("RunClientTemplate","name",e.path.name)+"/run",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async voiceClientTemplate(e){return t.send({op:"VoiceClientTemplate",method:"POST",path:"/ai/client/templates/"+n("VoiceClientTemplate","name",e.path.name)+"/voice",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createMachineKey(e){return t.send({op:"CreateMachineKey",method:"POST",path:"/ai/machine-keys",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMachines(e){return t.send({op:"ListMachines",method:"GET",path:"/ai/machines",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})}}}var a={};s(a,{client:()=>k});function k(t){return{async listAudiences(e){return t.send({op:"ListAudiences",method:"GET",path:"/analytics/audiences",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createAudience(e){return t.send({op:"CreateAudience",method:"POST",path:"/analytics/audiences",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async previewAudience(e){return t.send({op:"PreviewAudience",method:"POST",path:"/analytics/audiences/preview",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getAudience(e){return t.send({op:"GetAudience",method:"GET",path:"/analytics/audiences/"+n("GetAudience","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteAudience(e){return t.send({op:"DeleteAudience",method:"DELETE",path:"/analytics/audiences/"+n("DeleteAudience","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateAudience(e){return t.send({op:"UpdateAudience",method:"PATCH",path:"/analytics/audiences/"+n("UpdateAudience","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listAudienceMembers(e){return t.send({op:"ListAudienceMembers",method:"GET",path:"/analytics/audiences/"+n("ListAudienceMembers","id",e.path.id)+"/members",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async alias(e){return t.send({op:"Alias",method:"POST",path:"/analytics/alias",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async batch(e){return t.send({op:"Batch",method:"POST",path:"/analytics/batch",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json",207:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getEventBreakdown(e){return t.send({op:"GetEventBreakdown",method:"GET",path:"/analytics/breakdown",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async capture(e){return t.send({op:"Capture",method:"POST",path:"/analytics/capture",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sendConsoleHistory(e){return t.send({op:"SendConsoleHistory",method:"POST",path:"/analytics/console-breadcrumbs",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getConsoleConfig(e){return t.send({op:"GetConsoleConfig",method:"GET",path:"/analytics/console-breadcrumbs/config",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listConsoleRecords(e){return t.send({op:"ListConsoleRecords",method:"GET",path:"/analytics/console-records",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listEventNames(e){return t.send({op:"ListEventNames",method:"GET",path:"/analytics/event-names",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listEvents(e){return t.send({op:"ListEvents",method:"GET",path:"/analytics/events",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getEventTimeline(e){return t.send({op:"GetEventTimeline",method:"GET",path:"/analytics/events/timeline",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async runFunnel(e){return t.send({op:"RunFunnel",method:"POST",path:"/analytics/funnel",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async identify(e){return t.send({op:"Identify",method:"POST",path:"/analytics/identify",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async page(e){return t.send({op:"Page",method:"POST",path:"/analytics/page",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sendPerf(e){return t.send({op:"SendPerf",method:"POST",path:"/analytics/perf",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPerfGroups(e){return t.send({op:"ListPerfGroups",method:"GET",path:"/analytics/perf/client",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getPerfConfig(e){return t.send({op:"GetPerfConfig",method:"GET",path:"/analytics/perf/config",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json",304:"empty"},headers:e?.headers,signal:e?.signal})},async getPerfTimeline(e){return t.send({op:"GetPerfTimeline",method:"GET",path:"/analytics/perf/timeline",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listRequestLines(e){return t.send({op:"ListRequestLines",method:"GET",path:"/analytics/requests",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getMachineTraffic(e){return t.send({op:"GetMachineTraffic",method:"GET",path:"/analytics/machines/"+n("GetMachineTraffic","name",e.path.name)+"/traffic",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async runRetention(e){return t.send({op:"RunRetention",method:"POST",path:"/analytics/retention",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async screen(e){return t.send({op:"Screen",method:"POST",path:"/analytics/screen",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/analytics/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putSettings(e){return t.send({op:"PutSettings",method:"PUT",path:"/analytics/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSummary(e){return t.send({op:"GetSummary",method:"GET",path:"/analytics/summary",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listTraces(e){return t.send({op:"ListTraces",method:"GET",path:"/analytics/traces",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async sendTrace(e){return t.send({op:"SendTrace",method:"POST",path:"/analytics/traces",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sendTraceBatch(e){return t.send({op:"SendTraceBatch",method:"POST",path:"/analytics/traces/batch",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json",207:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getTraceHops(e){return t.send({op:"GetTraceHops",method:"GET",path:"/analytics/traces/by-trace",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listSessionTraces(e){return t.send({op:"ListSessionTraces",method:"GET",path:"/analytics/traces/session",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getTraceSummary(e){return t.send({op:"GetTraceSummary",method:"GET",path:"/analytics/traces/summary",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getTraceTimeline(e){return t.send({op:"GetTraceTimeline",method:"GET",path:"/analytics/traces/timeline",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async searchPeople(e){return t.send({op:"SearchPeople",method:"GET",path:"/analytics/people",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async setPersonProperties(e){return t.send({op:"SetPersonProperties",method:"POST",path:"/analytics/people",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPerson(e){return t.send({op:"GetPerson",method:"GET",path:"/analytics/people/"+n("GetPerson","person_id",e.path.person_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listPersonEvents(e){return t.send({op:"ListPersonEvents",method:"GET",path:"/analytics/people/"+n("ListPersonEvents","person_id",e.path.person_id)+"/events",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getEventCatalog(e){return t.send({op:"GetEventCatalog",method:"GET",path:"/analytics/catalog",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async defineEvent(e){return t.send({op:"DefineEvent",method:"PUT",path:"/analytics/catalog/"+n("DefineEvent","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var i={};s(i,{client:()=>w});function w(t){return{async getAppleAppSiteAssociation(e){return t.send({op:"GetAppleAppSiteAssociation",method:"GET",path:"/.well-known/apple-app-site-association",auth:[],answers:{200:"json"},signal:e?.signal})},async getAssetLinks(e){return t.send({op:"GetAssetLinks",method:"GET",path:"/.well-known/assetlinks.json",auth:[],answers:{200:"json"},signal:e?.signal})},async getJwks(e){return t.send({op:"GetJWKS",method:"GET",path:"/.well-known/jwks.json",auth:[],answers:{200:"json"},signal:e?.signal})},async getOidcDiscovery(e){return t.send({op:"GetOIDCDiscovery",method:"GET",path:"/.well-known/openid-configuration",auth:[],answers:{200:"json"},signal:e?.signal})},async getWebAuthnRelatedOrigins(e){return t.send({op:"GetWebAuthnRelatedOrigins",method:"GET",path:"/.well-known/webauthn",auth:[],answers:{200:"json"},signal:e?.signal})},async adminVerifyDeviceAssertion(e){return t.send({op:"AdminVerifyDeviceAssertion",method:"POST",path:"/admin/attest/devices/assert",auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetAttestPolicy(e){return t.send({op:"AdminGetAttestPolicy",method:"GET",path:"/admin/attest/devices/attest-policy",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminGetAttestObservations(e){return t.send({op:"AdminGetAttestObservations",method:"GET",path:"/admin/attest/devices/observations",auth:[["AdminAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminRecordAttestObservations(e){return t.send({op:"AdminRecordAttestObservations",method:"POST",path:"/admin/attest/devices/observations",auth:[["AdminAuth"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListAuditEvents(e){return t.send({op:"AdminListAuditEvents",method:"GET",path:"/admin/audit",auth:[["AdminAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminExportAuditEvents(e){return t.send({op:"AdminExportAuditEvents",method:"GET",path:"/admin/audit/export",auth:[["AdminAuth"]],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async adminVerifyAuditTrail(e){return t.send({op:"AdminVerifyAuditTrail",method:"GET",path:"/admin/audit/verify",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminGetAuthSettings(e){return t.send({op:"AdminGetAuthSettings",method:"GET",path:"/admin/auth-settings",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminUpdateAuthSettings(e){return t.send({op:"AdminUpdateAuthSettings",method:"PUT",path:"/admin/auth-settings",auth:[["AdminAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetBreachWatch(e){return t.send({op:"AdminGetBreachWatch",method:"GET",path:"/admin/breach-watch",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminListHooks(e){return t.send({op:"AdminListHooks",method:"GET",path:"/admin/hooks",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminCreateHook(e){return t.send({op:"AdminCreateHook",method:"POST",path:"/admin/hooks",auth:[["AdminAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminUpdateHook(e){return t.send({op:"AdminUpdateHook",method:"PUT",path:"/admin/hooks/"+n("AdminUpdateHook","id",e.path.id),auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminDeleteHook(e){return t.send({op:"AdminDeleteHook",method:"DELETE",path:"/admin/hooks/"+n("AdminDeleteHook","id",e.path.id),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminListHookExecutions(e){return t.send({op:"AdminListHookExecutions",method:"GET",path:"/admin/hooks/"+n("AdminListHookExecutions","id",e.path.id)+"/executions",auth:[["AdminAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async adminListIntegrations(e){return t.send({op:"AdminListIntegrations",method:"GET",path:"/admin/integrations",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminPutIntegration(e){return t.send({op:"AdminPutIntegration",method:"PUT",path:"/admin/integrations/"+n("AdminPutIntegration","name",e.path.name),auth:[["AdminAuth"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminDeleteIntegration(e){return t.send({op:"AdminDeleteIntegration",method:"DELETE",path:"/admin/integrations/"+n("AdminDeleteIntegration","name",e.path.name),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminListOAuthClients(e){return t.send({op:"AdminListOAuthClients",method:"GET",path:"/admin/oauth-clients",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminCreateOAuthClient(e){return t.send({op:"AdminCreateOAuthClient",method:"POST",path:"/admin/oauth-clients",auth:[["AdminAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetOAuthClient(e){return t.send({op:"AdminGetOAuthClient",method:"GET",path:"/admin/oauth-clients/"+n("AdminGetOAuthClient","id",e.path.id),auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminDeleteOAuthClient(e){return t.send({op:"AdminDeleteOAuthClient",method:"DELETE",path:"/admin/oauth-clients/"+n("AdminDeleteOAuthClient","id",e.path.id),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminUpdateOAuthClient(e){return t.send({op:"AdminUpdateOAuthClient",method:"PATCH",path:"/admin/oauth-clients/"+n("AdminUpdateOAuthClient","id",e.path.id),auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListProviders(e){return t.send({op:"AdminListProviders",method:"GET",path:"/admin/providers",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminGetPhoneSettings(e){return t.send({op:"AdminGetPhoneSettings",method:"GET",path:"/admin/providers/phone/settings",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminUpdatePhoneSettings(e){return t.send({op:"AdminUpdatePhoneSettings",method:"PUT",path:"/admin/providers/phone/settings",auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminToggleProvider(e){return t.send({op:"AdminToggleProvider",method:"POST",path:"/admin/providers/"+n("AdminToggleProvider","name",e.path.name),auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListRoles(e){return t.send({op:"AdminListRoles",method:"GET",path:"/admin/roles",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminUpsertRole(e){return t.send({op:"AdminUpsertRole",method:"PUT",path:"/admin/roles/"+n("AdminUpsertRole","name",e.path.name),auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminDeleteRole(e){return t.send({op:"AdminDeleteRole",method:"DELETE",path:"/admin/roles/"+n("AdminDeleteRole","name",e.path.name),auth:[["AdminAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async adminListServiceAccounts(e){return t.send({op:"AdminListServiceAccounts",method:"GET",path:"/admin/service-accounts",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminCreateServiceAccount(e){return t.send({op:"AdminCreateServiceAccount",method:"POST",path:"/admin/service-accounts",auth:[["AdminAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetServiceAccount(e){return t.send({op:"AdminGetServiceAccount",method:"GET",path:"/admin/service-accounts/"+n("AdminGetServiceAccount","id",e.path.id),auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminRevokeServiceAccount(e){return t.send({op:"AdminRevokeServiceAccount",method:"DELETE",path:"/admin/service-accounts/"+n("AdminRevokeServiceAccount","id",e.path.id),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminRotateServiceAccount(e){return t.send({op:"AdminRotateServiceAccount",method:"POST",path:"/admin/service-accounts/"+n("AdminRotateServiceAccount","id",e.path.id)+"/rotate",auth:[["AdminAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async adminListSessions(e){return t.send({op:"AdminListSessions",method:"GET",path:"/admin/sessions",auth:[["AdminAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminRevokeSession(e){return t.send({op:"AdminRevokeSession",method:"DELETE",path:"/admin/sessions/"+n("AdminRevokeSession","id",e.path.id),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminListSigningKeys(e){return t.send({op:"AdminListSigningKeys",method:"GET",path:"/admin/signing-keys",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminRotateSigningKey(e){return t.send({op:"AdminRotateSigningKey",method:"POST",path:"/admin/signing-keys/rotate",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async socialAdminConfig(e){return t.send({op:"SocialAdminConfig",method:"GET",path:"/admin/social-auth",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async socialCredentialPut(e){return t.send({op:"SocialCredentialPut",method:"PUT",path:"/admin/social-auth/credentials/"+n("SocialCredentialPut","key",e.path.key),auth:[["AdminAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async socialCredentialDelete(e){return t.send({op:"SocialCredentialDelete",method:"DELETE",path:"/admin/social-auth/credentials/"+n("SocialCredentialDelete","key",e.path.key),auth:[["AdminAuth"]],answers:{204:"empty"},headers:e.headers,signal:e.signal})},async socialProviderPatch(e){return t.send({op:"SocialProviderPatch",method:"PATCH",path:"/admin/social-auth/providers/"+n("SocialProviderPatch","provider",e.path.provider),auth:[["AdminAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetStats(e){return t.send({op:"AdminGetStats",method:"GET",path:"/admin/stats",auth:[["AdminAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminSendTestTemplate(e){return t.send({op:"AdminSendTestTemplate",method:"POST",path:"/admin/templates/"+n("AdminSendTestTemplate","key",e.path.key)+"/send-test",auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListTestUsers(e){return t.send({op:"AdminListTestUsers",method:"GET",path:"/admin/test-users",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminCreateTestUsers(e){return t.send({op:"AdminCreateTestUsers",method:"POST",path:"/admin/test-users",auth:[["AdminAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminSetTestUserPhone(e){return t.send({op:"AdminSetTestUserPhone",method:"PUT",path:"/admin/test-users/phone",auth:[["AdminAuth"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminCreateTestSignupAddress(e){return t.send({op:"AdminCreateTestSignupAddress",method:"POST",path:"/admin/test-users/addresses",auth:[["AdminAuth"]],answers:{201:"json"},signal:e?.signal})},async adminDeleteTestUser(e){return t.send({op:"AdminDeleteTestUser",method:"DELETE",path:"/admin/test-users/"+n("AdminDeleteTestUser","uid",e.path.uid),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminCreateCustomToken(e){return t.send({op:"AdminCreateCustomToken",method:"POST",path:"/admin/token/custom",auth:[["AdminAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListUsers(e){return t.send({op:"AdminListUsers",method:"GET",path:"/admin/users",auth:[["AdminAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminCreateUser(e){return t.send({op:"AdminCreateUser",method:"POST",path:"/admin/users",auth:[["AdminAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminImportUsers(e){return t.send({op:"AdminImportUsers",method:"POST",path:"/admin/users/import",auth:[["AdminAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetUser(e){return t.send({op:"AdminGetUser",method:"GET",path:"/admin/users/"+n("AdminGetUser","uid",e.path.uid),auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminDeleteUser(e){return t.send({op:"AdminDeleteUser",method:"DELETE",path:"/admin/users/"+n("AdminDeleteUser","uid",e.path.uid),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminUpdateUser(e){return t.send({op:"AdminUpdateUser",method:"PATCH",path:"/admin/users/"+n("AdminUpdateUser","uid",e.path.uid),auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminBanUser(e){return t.send({op:"AdminBanUser",method:"POST",path:"/admin/users/"+n("AdminBanUser","uid",e.path.uid)+"/ban",auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetUserConsents(e){return t.send({op:"AdminGetUserConsents",method:"GET",path:"/admin/users/"+n("AdminGetUserConsents","uid",e.path.uid)+"/consents",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminRevokeUserCredentials(e){return t.send({op:"AdminRevokeUserCredentials",method:"POST",path:"/admin/users/"+n("AdminRevokeUserCredentials","uid",e.path.uid)+"/credentials/revoke-all",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminExportUser(e){return t.send({op:"AdminExportUser",method:"GET",path:"/admin/users/"+n("AdminExportUser","uid",e.path.uid)+"/export",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminListUserMfaFactors(e){return t.send({op:"AdminListUserMFAFactors",method:"GET",path:"/admin/users/"+n("AdminListUserMFAFactors","uid",e.path.uid)+"/mfa",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminResetUserMfa(e){return t.send({op:"AdminResetUserMFA",method:"DELETE",path:"/admin/users/"+n("AdminResetUserMFA","uid",e.path.uid)+"/mfa",auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminResetUserPassword(e){return t.send({op:"AdminResetUserPassword",method:"POST",path:"/admin/users/"+n("AdminResetUserPassword","uid",e.path.uid)+"/reset-password",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminListUserRoles(e){return t.send({op:"AdminListUserRoles",method:"GET",path:"/admin/users/"+n("AdminListUserRoles","uid",e.path.uid)+"/roles",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminAssignUserRole(e){return t.send({op:"AdminAssignUserRole",method:"PUT",path:"/admin/users/"+n("AdminAssignUserRole","uid",e.path.uid)+"/roles/"+n("AdminAssignUserRole","role",e.path.role),auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminRevokeUserRole(e){return t.send({op:"AdminRevokeUserRole",method:"DELETE",path:"/admin/users/"+n("AdminRevokeUserRole","uid",e.path.uid)+"/roles/"+n("AdminRevokeUserRole","role",e.path.role),auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminRevokeUserSessions(e){return t.send({op:"AdminRevokeUserSessions",method:"POST",path:"/admin/users/"+n("AdminRevokeUserSessions","uid",e.path.uid)+"/sessions/revoke-all",auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminUnbanUser(e){return t.send({op:"AdminUnbanUser",method:"POST",path:"/admin/users/"+n("AdminUnbanUser","uid",e.path.uid)+"/unban",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async signInAnonymously(e){return t.send({op:"SignInAnonymously",method:"POST",path:"/auth/anonymous",auth:[["ApiKeyAuth"]],answers:{201:"json"},headers:e?.headers,body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async convertAnonymousUser(e){return t.send({op:"ConvertAnonymousUser",method:"POST",path:"/auth/anonymous/convert",auth:[["ApiKeyAuth","userJWT"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async verifyAnonymousConversion(e){return t.send({op:"VerifyAnonymousConversion",method:"POST",path:"/auth/anonymous/convert/verify",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async devicePendingRequest(e){return t.send({op:"DevicePendingRequest",method:"GET",path:"/auth/device/requests/"+n("DevicePendingRequest","user_code",e.path.user_code),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async deviceVerifyPage(e){return t.send({op:"DeviceVerifyPage",method:"GET",path:"/auth/device/verify",auth:[["ApiKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async deviceVerifySubmit(e){return t.send({op:"DeviceVerifySubmit",method:"POST",path:"/auth/device/verify",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async listDevices(e){return t.send({op:"ListDevices",method:"GET",path:"/auth/devices",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async attestAndroidDevice(e){return t.send({op:"AttestAndroidDevice",method:"POST",path:"/auth/devices/attest/android",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async attestIosDevice(e){return t.send({op:"AttestIOSDevice",method:"POST",path:"/auth/devices/attest/ios",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async bindDeviceKey(e){return t.send({op:"BindDeviceKey",method:"POST",path:"/auth/devices/bind",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createDeviceChallenge(e){return t.send({op:"CreateDeviceChallenge",method:"POST",path:"/auth/devices/challenge",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e?.headers,signal:e?.signal})},async verifyAndroidIntegrity(e){return t.send({op:"VerifyAndroidIntegrity",method:"POST",path:"/auth/devices/verify/android",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteDevice(e){return t.send({op:"DeleteDevice",method:"DELETE",path:"/auth/devices/"+n("DeleteDevice","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async verifyDeviceSignature(e){return t.send({op:"VerifyDeviceSignature",method:"POST",path:"/auth/devices/"+n("VerifyDeviceSignature","id",e.path.id)+"/verify",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listIdentities(e){return t.send({op:"ListIdentities",method:"GET",path:"/auth/identities",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async unlinkIdentity(e){return t.send({op:"UnlinkIdentity",method:"DELETE",path:"/auth/identities/"+n("UnlinkIdentity","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async createInstallation(e){return t.send({op:"CreateInstallation",method:"POST",path:"/auth/installations",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async bindInstallation(e){return t.send({op:"BindInstallation",method:"POST",path:"/auth/installations/"+n("BindInstallation","id",e.path.id)+"/bind",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async refreshInstallation(e){return t.send({op:"RefreshInstallation",method:"POST",path:"/auth/installations/"+n("RefreshInstallation","id",e.path.id)+"/refresh",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async revokeInstallation(e){return t.send({op:"RevokeInstallation",method:"POST",path:"/auth/installations/"+n("RevokeInstallation","id",e.path.id)+"/revoke",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async unbindInstallation(e){return t.send({op:"UnbindInstallation",method:"POST",path:"/auth/installations/"+n("UnbindInstallation","id",e.path.id)+"/unbind",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async login(e){return t.send({op:"Login",method:"POST",path:"/auth/login",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async logout(e){return t.send({op:"Logout",method:"POST",path:"/auth/logout",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async magicLinkRequest(e){return t.send({op:"MagicLinkRequest",method:"POST",path:"/auth/magic-link",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async magicLinkVerify(e){return t.send({op:"MagicLinkVerify",method:"POST",path:"/auth/magic-link/verify",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getMe(e){return t.send({op:"GetMe",method:"GET",path:"/auth/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async updateMe(e){return t.send({op:"UpdateMe",method:"PATCH",path:"/auth/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaChallenge(e){return t.send({op:"MfaChallenge",method:"POST",path:"/auth/mfa/challenge",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaEmailChallenge(e){return t.send({op:"MfaEmailChallenge",method:"POST",path:"/auth/mfa/email/challenge",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaEmailEnroll(e){return t.send({op:"MfaEmailEnroll",method:"POST",path:"/auth/mfa/email/enroll",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mfaEmailVerify(e){return t.send({op:"MfaEmailVerify",method:"POST",path:"/auth/mfa/email/verify",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaEnroll(e){return t.send({op:"MfaEnroll",method:"POST",path:"/auth/mfa/enroll",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaListFactors(e){return t.send({op:"MfaListFactors",method:"GET",path:"/auth/mfa/factors",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mfaRemoveFactor(e){return t.send({op:"MfaRemoveFactor",method:"DELETE",path:"/auth/mfa/factors/"+n("MfaRemoveFactor","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaRecovery(e){return t.send({op:"MfaRecovery",method:"POST",path:"/auth/mfa/recovery",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaRegenerateRecoveryCodes(e){return t.send({op:"MfaRegenerateRecoveryCodes",method:"POST",path:"/auth/mfa/recovery-codes/regenerate",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mfaSmsChallenge(e){return t.send({op:"MfaSMSChallenge",method:"POST",path:"/auth/mfa/sms/challenge",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaSmsEnroll(e){return t.send({op:"MfaSMSEnroll",method:"POST",path:"/auth/mfa/sms/enroll",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaSmsVerifyEnrollment(e){return t.send({op:"MfaSMSVerifyEnrollment",method:"POST",path:"/auth/mfa/sms/verify",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaVerifyEnrollment(e){return t.send({op:"MfaVerifyEnrollment",method:"POST",path:"/auth/mfa/verify",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async socialCallbackApple(e){return t.send({op:"SocialCallbackApple",method:"GET",path:"/auth/oauth/callback/apple",auth:[],answers:{},signal:e?.signal})},async socialCallbackApplePost(e){return t.send({op:"SocialCallbackApplePost",method:"POST",path:"/auth/oauth/callback/apple",auth:[],answers:{303:"redirect"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async socialCallbackGitHub(e){return t.send({op:"SocialCallbackGitHub",method:"GET",path:"/auth/oauth/callback/github",auth:[],answers:{303:"redirect"},query:e.query,signal:e.signal})},async socialCallbackGitHubPost(e){return t.send({op:"SocialCallbackGitHubPost",method:"POST",path:"/auth/oauth/callback/github",auth:[],answers:{},signal:e?.signal})},async socialCallbackGoogle(e){return t.send({op:"SocialCallbackGoogle",method:"GET",path:"/auth/oauth/callback/google",auth:[],answers:{303:"redirect"},query:e.query,signal:e.signal})},async socialCallbackGooglePost(e){return t.send({op:"SocialCallbackGooglePost",method:"POST",path:"/auth/oauth/callback/google",auth:[],answers:{},signal:e?.signal})},async socialCallbackMicrosoft(e){return t.send({op:"SocialCallbackMicrosoft",method:"GET",path:"/auth/oauth/callback/microsoft",auth:[],answers:{303:"redirect"},query:e.query,signal:e.signal})},async socialCallbackMicrosoftPost(e){return t.send({op:"SocialCallbackMicrosoftPost",method:"POST",path:"/auth/oauth/callback/microsoft",auth:[],answers:{},signal:e?.signal})},async socialConfig(e){return t.send({op:"SocialConfig",method:"GET",path:"/auth/oauth/config",auth:[["ApiKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async socialBegin(e){return t.send({op:"SocialBegin",method:"POST",path:"/auth/oauth/transactions",auth:[["ApiKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async socialCancel(e){return t.send({op:"SocialCancel",method:"POST",path:"/auth/oauth/transactions/"+n("SocialCancel","id",e.path.id)+"/cancel",auth:[["ApiKeyAuth"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async socialComplete(e){return t.send({op:"SocialComplete",method:"POST",path:"/auth/oauth/transactions/"+n("SocialComplete","id",e.path.id)+"/complete",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async requestPhoneOtp(e){return t.send({op:"RequestPhoneOTP",method:"POST",path:"/auth/otp",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async verifyPhoneOtp(e){return t.send({op:"VerifyPhoneOTP",method:"POST",path:"/auth/otp/verify",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async hostedRecoveryApprovalPage(e){return t.send({op:"HostedRecoveryApprovalPage",method:"GET",path:"/auth/pages/recovery-approval",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedRecoveryApprovalSubmit(e){return t.send({op:"HostedRecoveryApprovalSubmit",method:"POST",path:"/auth/pages/recovery-approval",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async hostedRecoveryContactPage(e){return t.send({op:"HostedRecoveryContactPage",method:"GET",path:"/auth/pages/recovery-contact",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedRecoveryContactSubmit(e){return t.send({op:"HostedRecoveryContactSubmit",method:"POST",path:"/auth/pages/recovery-contact",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async hostedResetPasswordPage(e){return t.send({op:"HostedResetPasswordPage",method:"GET",path:"/auth/pages/reset-password",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedResetPasswordSubmit(e){return t.send({op:"HostedResetPasswordSubmit",method:"POST",path:"/auth/pages/reset-password",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async hostedVerifyEmailPage(e){return t.send({op:"HostedVerifyEmailPage",method:"GET",path:"/auth/pages/verify-email",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedVerifyEmailSubmit(e){return t.send({op:"HostedVerifyEmailSubmit",method:"POST",path:"/auth/pages/verify-email",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async passwordChange(e){return t.send({op:"PasswordChange",method:"POST",path:"/auth/password/change",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async passwordResetRequest(e){return t.send({op:"PasswordResetRequest",method:"POST",path:"/auth/password/reset",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async passwordResetConfirm(e){return t.send({op:"PasswordResetConfirm",method:"POST",path:"/auth/password/reset/confirm",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async setPassword(e){return t.send({op:"SetPassword",method:"POST",path:"/auth/password/set",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async powChallenge(e){return t.send({op:"PowChallenge",method:"POST",path:"/auth/pow/challenge",auth:[["ApiKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async approveRecovery(e){return t.send({op:"ApproveRecovery",method:"POST",path:"/auth/recovery/approve",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listRecoveryContacts(e){return t.send({op:"ListRecoveryContacts",method:"GET",path:"/auth/recovery/contacts",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async addRecoveryContact(e){return t.send({op:"AddRecoveryContact",method:"POST",path:"/auth/recovery/contacts",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteRecoveryContact(e){return t.send({op:"DeleteRecoveryContact",method:"DELETE",path:"/auth/recovery/contacts/"+n("DeleteRecoveryContact","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async verifyRecoveryContact(e){return t.send({op:"VerifyRecoveryContact",method:"POST",path:"/auth/recovery/contacts/"+n("VerifyRecoveryContact","id",e.path.id)+"/verify",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async denyRecovery(e){return t.send({op:"DenyRecovery",method:"POST",path:"/auth/recovery/deny",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async initiateRecovery(e){return t.send({op:"InitiateRecovery",method:"POST",path:"/auth/recovery/initiate",auth:[["ApiKeyAuth"]],answers:{200:"json",202:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getRecoveryStatus(e){return t.send({op:"GetRecoveryStatus",method:"GET",path:"/auth/recovery/status",auth:[["ApiKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async resendVerification(e){return t.send({op:"ResendVerification",method:"POST",path:"/auth/resend-verification",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSessions(e){return t.send({op:"ListSessions",method:"GET",path:"/auth/sessions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async revokeAllSessions(e){return t.send({op:"RevokeAllSessions",method:"DELETE",path:"/auth/sessions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async revokeSession(e){return t.send({op:"RevokeSession",method:"DELETE",path:"/auth/sessions/"+n("RevokeSession","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async signup(e){return t.send({op:"Signup",method:"POST",path:"/auth/signup",auth:[["ApiKeyAuth"]],answers:{201:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stepUp(e){return t.send({op:"StepUp",method:"POST",path:"/auth/step-up",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stepUpStatus(e){return t.send({op:"StepUpStatus",method:"GET",path:"/auth/step-up/status",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async stepUpWebAuthnBegin(e){return t.send({op:"StepUpWebAuthnBegin",method:"POST",path:"/auth/step-up/webauthn/begin",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async stepUpSmsSend(e){return t.send({op:"StepUpSMSSend",method:"POST",path:"/auth/step-up/sms/send",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async exchangeCustomToken(e){return t.send({op:"ExchangeCustomToken",method:"POST",path:"/auth/token/exchange",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async refreshToken(e){return t.send({op:"RefreshToken",method:"POST",path:"/auth/token/refresh",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revokeRefreshToken(e){return t.send({op:"RevokeRefreshToken",method:"POST",path:"/auth/token/revoke",auth:[["ApiKeyAuth"]],answers:{200:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTransactions(e){return t.send({op:"ListTransactions",method:"GET",path:"/auth/transactions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createTransaction(e){return t.send({op:"CreateTransaction",method:"POST",path:"/auth/transactions",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getTransaction(e){return t.send({op:"GetTransaction",method:"GET",path:"/auth/transactions/"+n("GetTransaction","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async approveTransaction(e){return t.send({op:"ApproveTransaction",method:"POST",path:"/auth/transactions/"+n("ApproveTransaction","id",e.path.id)+"/approve",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async denyTransaction(e){return t.send({op:"DenyTransaction",method:"POST",path:"/auth/transactions/"+n("DenyTransaction","id",e.path.id)+"/deny",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTrustedDevices(e){return t.send({op:"ListTrustedDevices",method:"GET",path:"/auth/trusted-devices",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async registerTrustedDevice(e){return t.send({op:"RegisterTrustedDevice",method:"POST",path:"/auth/trusted-devices",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revokeTrustedDevice(e){return t.send({op:"RevokeTrustedDevice",method:"DELETE",path:"/auth/trusted-devices/"+n("RevokeTrustedDevice","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async verifyTokenUser(e){return t.send({op:"VerifyTokenUser",method:"GET",path:"/auth/user",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async deleteAccount(e){return t.send({op:"DeleteAccount",method:"DELETE",path:"/auth/user",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async verifyEmail(e){return t.send({op:"VerifyEmail",method:"POST",path:"/auth/verify-email",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnListCredentials(e){return t.send({op:"WebauthnListCredentials",method:"GET",path:"/auth/webauthn/credentials",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async webauthnRenameCredential(e){return t.send({op:"WebauthnRenameCredential",method:"PUT",path:"/auth/webauthn/credentials/"+n("WebauthnRenameCredential","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnDeleteCredential(e){return t.send({op:"WebauthnDeleteCredential",method:"DELETE",path:"/auth/webauthn/credentials/"+n("WebauthnDeleteCredential","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async webauthnLoginBegin(e){return t.send({op:"WebauthnLoginBegin",method:"POST",path:"/auth/webauthn/login/begin",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async webauthnLoginFinish(e){return t.send({op:"WebauthnLoginFinish",method:"POST",path:"/auth/webauthn/login/finish",auth:[["ApiKeyAuth"]],answers:{200:"json"},query:e.query,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnRecoveryBegin(e){return t.send({op:"WebauthnRecoveryBegin",method:"POST",path:"/auth/webauthn/recovery/begin",auth:[["ApiKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async webauthnRecoveryFinish(e){return t.send({op:"WebauthnRecoveryFinish",method:"POST",path:"/auth/webauthn/recovery/finish",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnRecoveryRegisterBegin(e){return t.send({op:"WebauthnRecoveryRegisterBegin",method:"POST",path:"/auth/webauthn/recovery/register/begin",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async webauthnRecoveryRegisterFinish(e){return t.send({op:"WebauthnRecoveryRegisterFinish",method:"POST",path:"/auth/webauthn/recovery/register/finish",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnRegisterBegin(e){return t.send({op:"WebauthnRegisterBegin",method:"POST",path:"/auth/webauthn/register/begin",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async webauthnRegisterFinish(e){return t.send({op:"WebauthnRegisterFinish",method:"POST",path:"/auth/webauthn/register/finish",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnSignupBegin(e){return t.send({op:"WebauthnSignupBegin",method:"POST",path:"/auth/webauthn/signup/begin",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnSignupFinish(e){return t.send({op:"WebauthnSignupFinish",method:"POST",path:"/auth/webauthn/signup/finish",auth:[["ApiKeyAuth"]],answers:{201:"json"},query:e.query,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async oauthAuthorize(e){return t.send({op:"OauthAuthorize",method:"GET",path:"/oauth/authorize",auth:[],answers:{302:"redirect",303:"redirect"},query:e?.query,signal:e?.signal})},async oauthAuthorizePost(e){return t.send({op:"OauthAuthorizePost",method:"POST",path:"/oauth/authorize",auth:[],answers:{302:"redirect",303:"redirect"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async oauthAuthorizeCallback(e){return t.send({op:"OauthAuthorizeCallback",method:"GET",path:"/oauth/authorize/callback",auth:[],answers:{303:"redirect"},query:e.query,signal:e.signal})},async oauthAuthorizeEmailLink(e){return t.send({op:"OauthAuthorizeEmailLink",method:"GET",path:"/oauth/authorize/email",auth:[],answers:{200:"raw",303:"redirect"},query:e.query,signal:e.signal})},async oauthDeviceAuthorize(e){return t.send({op:"OauthDeviceAuthorize",method:"POST",path:"/oauth/device",auth:[["OAuthClient"],[]],answers:{200:"json"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async oauthIntrospect(e){return t.send({op:"OauthIntrospect",method:"POST",path:"/oauth/introspect",auth:[["AdminAuth"],["OAuthClient"],[]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async oauthLogout(e){return t.send({op:"OauthLogout",method:"GET",path:"/oauth/logout",auth:[],answers:{302:"redirect"},query:e?.query,signal:e?.signal})},async oauthLogoutPost(e){return t.send({op:"OauthLogoutPost",method:"POST",path:"/oauth/logout",auth:[],answers:{302:"redirect"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e?.body},signal:e?.signal})},async oauthPar(e){return t.send({op:"OauthPAR",method:"POST",path:"/oauth/par",auth:[["OAuthClient"],[]],answers:{201:"json"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async oauthRevoke(e){return t.send({op:"OauthRevoke",method:"POST",path:"/oauth/revoke",auth:[["OAuthClient"],[]],answers:{200:"empty"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async oauthToken(e){return t.send({op:"OauthToken",method:"POST",path:"/oauth/token",auth:[["OAuthClient"],[]],answers:{200:"json"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async oauthUserinfo(e){return t.send({op:"OauthUserinfo",method:"GET",path:"/oauth/userinfo",auth:[["OAuthAccessToken"]],answers:{200:"json"},signal:e?.signal})},async oauthUserinfoPost(e){return t.send({op:"OauthUserinfoPost",method:"POST",path:"/oauth/userinfo",auth:[["OAuthAccessToken"]],answers:{200:"json"},signal:e?.signal})},async ownerCliCode(e){return t.send({op:"OwnerCLICode",method:"POST",path:"/auth/cli/owner-code",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listConsentKeys(e){return t.send({op:"ListConsentKeys",method:"GET",path:"/auth/consents/keys",auth:[["ApiKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getConsents(e){return t.send({op:"GetConsents",method:"GET",path:"/auth/consents",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,headers:e.headers,signal:e.signal})},async chooseConsents(e){return t.send({op:"ChooseConsents",method:"PUT",path:"/auth/consents",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async linkConsents(e){return t.send({op:"LinkConsents",method:"POST",path:"/auth/consents/link",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetInstallationConsents(e){return t.send({op:"AdminGetInstallationConsents",method:"GET",path:"/admin/installations/"+n("AdminGetInstallationConsents","installation_id",e.path.installation_id)+"/consents",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminRefuseConsents(e){return t.send({op:"AdminRefuseConsents",method:"POST",path:"/admin/consents/refuse",auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminInviteUser(e){return t.send({op:"AdminInviteUser",method:"POST",path:"/admin/users/invite",auth:[["AdminAuth"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async acceptInvitation(e){return t.send({op:"AcceptInvitation",method:"POST",path:"/auth/invitations/accept",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async hostedAcceptInvitationPage(e){return t.send({op:"HostedAcceptInvitationPage",method:"GET",path:"/auth/pages/accept-invitation",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedAcceptInvitationSubmit(e){return t.send({op:"HostedAcceptInvitationSubmit",method:"POST",path:"/auth/pages/accept-invitation",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async hostedNotMePage(e){return t.send({op:"HostedNotMePage",method:"GET",path:"/auth/pages/not-me",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedNotMeSubmit(e){return t.send({op:"HostedNotMeSubmit",method:"POST",path:"/auth/pages/not-me",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})}}}var o={};s(o,{client:()=>f});function f(t){return{async getCacheEntry(e){return t.send({op:"GetCacheEntry",method:"GET",path:"/cache/entry",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async putCacheEntry(e){return t.send({op:"PutCacheEntry",method:"PUT",path:"/cache/entry",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteCacheEntry(e){return t.send({op:"DeleteCacheEntry",method:"DELETE",path:"/cache/entry",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async incrementCacheEntry(e){return t.send({op:"IncrementCacheEntry",method:"POST",path:"/cache/entry/increment",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getCacheUsage(e){return t.send({op:"GetCacheUsage",method:"GET",path:"/cache/usage",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})}}}var l={};s(l,{client:()=>T});function T(t){return{async listCalls(e){return t.send({op:"ListCalls",method:"GET",path:"/calls",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async startCall(e){return t.send({op:"StartCall",method:"POST",path:"/calls",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListCalls(e){return t.send({op:"AdminListCalls",method:"GET",path:"/calls/admin/calls",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminGetCall(e){return t.send({op:"AdminGetCall",method:"GET",path:"/calls/admin/calls/"+n("AdminGetCall","call_id",e.path.call_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminEndCall(e){return t.send({op:"AdminEndCall",method:"POST",path:"/calls/admin/calls/"+n("AdminEndCall","call_id",e.path.call_id)+"/end",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createCallTicket(e){return t.send({op:"CreateCallTicket",method:"POST",path:"/calls/admin/calls/"+n("CreateCallTicket","call_id",e.path.call_id)+"/tickets",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetCallTranscription(e){return t.send({op:"AdminGetCallTranscription",method:"GET",path:"/calls/admin/calls/"+n("AdminGetCallTranscription","call_id",e.path.call_id)+"/transcription",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async adminStartCallTranscription(e){return t.send({op:"AdminStartCallTranscription",method:"POST",path:"/calls/admin/calls/"+n("AdminStartCallTranscription","call_id",e.path.call_id)+"/transcription",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminStopCallTranscription(e){return t.send({op:"AdminStopCallTranscription",method:"DELETE",path:"/calls/admin/calls/"+n("AdminStopCallTranscription","call_id",e.path.call_id)+"/transcription",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminIngestCallTranscriptionAudio(e){return t.send({op:"AdminIngestCallTranscriptionAudio",method:"POST",path:"/calls/admin/calls/"+n("AdminIngestCallTranscriptionAudio","call_id",e.path.call_id)+"/transcription/audio",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},body:{kind:"raw",contentType:e.contentType??"multipart/form-data",value:e.body},signal:e.signal})},async getCallPlace(e){return t.send({op:"GetCallPlace",method:"GET",path:"/calls/places/"+n("GetCallPlace","place",e.path.place),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async watchCallPlace(e){return t.send({op:"WatchCallPlace",method:"POST",path:"/calls/places/"+n("WatchCallPlace","place",e.path.place)+"/watch",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async unwatchCallPlace(e){return t.send({op:"UnwatchCallPlace",method:"DELETE",path:"/calls/places/"+n("UnwatchCallPlace","place",e.path.place)+"/watch",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async getCallSettings(e){return t.send({op:"GetCallSettings",method:"GET",path:"/calls/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putCallSettings(e){return t.send({op:"PutCallSettings",method:"PUT",path:"/calls/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rotateCallHookSecret(e){return t.send({op:"RotateCallHookSecret",method:"POST",path:"/calls/settings/hook-secret",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getCall(e){return t.send({op:"GetCall",method:"GET",path:"/calls/"+n("GetCall","call_id",e.path.call_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async acceptCall(e){return t.send({op:"AcceptCall",method:"POST",path:"/calls/"+n("AcceptCall","call_id",e.path.call_id)+"/accept",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async declineCall(e){return t.send({op:"DeclineCall",method:"POST",path:"/calls/"+n("DeclineCall","call_id",e.path.call_id)+"/decline",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async callHeartbeat(e){return t.send({op:"CallHeartbeat",method:"POST",path:"/calls/"+n("CallHeartbeat","call_id",e.path.call_id)+"/heartbeat",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async joinCall(e){return t.send({op:"JoinCall",method:"POST",path:"/calls/"+n("JoinCall","call_id",e.path.call_id)+"/join",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async leaveCall(e){return t.send({op:"LeaveCall",method:"POST",path:"/calls/"+n("LeaveCall","call_id",e.path.call_id)+"/leave",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async getCallMedia(e){return t.send({op:"GetCallMedia",method:"POST",path:"/calls/"+n("GetCallMedia","call_id",e.path.call_id)+"/media",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async inviteToCall(e){return t.send({op:"InviteToCall",method:"POST",path:"/calls/"+n("InviteToCall","call_id",e.path.call_id)+"/participants",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCallTranscription(e){return t.send({op:"GetCallTranscription",method:"GET",path:"/calls/"+n("GetCallTranscription","call_id",e.path.call_id)+"/transcription",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async ingestCallTranscriptionAudio(e){return t.send({op:"IngestCallTranscriptionAudio",method:"POST",path:"/calls/"+n("IngestCallTranscriptionAudio","call_id",e.path.call_id)+"/transcription/audio",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json",201:"json"},body:{kind:"raw",contentType:e.contentType??"multipart/form-data",value:e.body},signal:e.signal})}}}var p={};s(p,{client:()=>x});function x(t){return{async listBroadcasts(e){return t.send({op:"ListBroadcasts",method:"GET",path:"/campaigns/broadcasts",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createBroadcast(e){return t.send({op:"CreateBroadcast",method:"POST",path:"/campaigns/broadcasts",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async recordBroadcastConversion(e){return t.send({op:"RecordBroadcastConversion",method:"POST",path:"/campaigns/broadcasts/conversions",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getBroadcast(e){return t.send({op:"GetBroadcast",method:"GET",path:"/campaigns/broadcasts/"+n("GetBroadcast","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateBroadcast(e){return t.send({op:"UpdateBroadcast",method:"PUT",path:"/campaigns/broadcasts/"+n("UpdateBroadcast","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteBroadcast(e){return t.send({op:"DeleteBroadcast",method:"DELETE",path:"/campaigns/broadcasts/"+n("DeleteBroadcast","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async cancelBroadcast(e){return t.send({op:"CancelBroadcast",method:"POST",path:"/campaigns/broadcasts/"+n("CancelBroadcast","id",e.path.id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async pauseBroadcast(e){return t.send({op:"PauseBroadcast",method:"POST",path:"/campaigns/broadcasts/"+n("PauseBroadcast","id",e.path.id)+"/pause",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async startBroadcast(e){return t.send({op:"StartBroadcast",method:"POST",path:"/campaigns/broadcasts/"+n("StartBroadcast","id",e.path.id)+"/start",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getBroadcastStats(e){return t.send({op:"GetBroadcastStats",method:"GET",path:"/campaigns/broadcasts/"+n("GetBroadcastStats","id",e.path.id)+"/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listTrackingLinks(e){return t.send({op:"ListTrackingLinks",method:"GET",path:"/campaigns/links",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createTrackingLink(e){return t.send({op:"CreateTrackingLink",method:"POST",path:"/campaigns/links",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async attributeLinkConversion(e){return t.send({op:"AttributeLinkConversion",method:"POST",path:"/campaigns/links/attribute",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getTrackingLink(e){return t.send({op:"GetTrackingLink",method:"GET",path:"/campaigns/links/"+n("GetTrackingLink","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateTrackingLink(e){return t.send({op:"UpdateTrackingLink",method:"PUT",path:"/campaigns/links/"+n("UpdateTrackingLink","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteTrackingLink(e){return t.send({op:"DeleteTrackingLink",method:"DELETE",path:"/campaigns/links/"+n("DeleteTrackingLink","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async getTrackingLinkStats(e){return t.send({op:"GetTrackingLinkStats",method:"GET",path:"/campaigns/links/"+n("GetTrackingLinkStats","id",e.path.id)+"/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listOnSiteCampaigns(e){return t.send({op:"ListOnSiteCampaigns",method:"GET",path:"/campaigns/onsite",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createOnSiteCampaign(e){return t.send({op:"CreateOnSiteCampaign",method:"POST",path:"/campaigns/onsite",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createOnSiteImpression(e){return t.send({op:"CreateOnSiteImpression",method:"POST",path:"/campaigns/onsite/impressions",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async recordOnSiteEvent(e){return t.send({op:"RecordOnSiteEvent",method:"POST",path:"/campaigns/onsite/impressions/"+n("RecordOnSiteEvent","id",e.path.id)+"/events",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listOnSiteMessages(e){return t.send({op:"ListOnSiteMessages",method:"GET",path:"/campaigns/onsite/messages",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getOnSiteSettings(e){return t.send({op:"GetOnSiteSettings",method:"GET",path:"/campaigns/onsite/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putOnSiteSettings(e){return t.send({op:"PutOnSiteSettings",method:"PUT",path:"/campaigns/onsite/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listOnSiteTemplates(e){return t.send({op:"ListOnSiteTemplates",method:"GET",path:"/campaigns/onsite/templates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getOnSiteCampaign(e){return t.send({op:"GetOnSiteCampaign",method:"GET",path:"/campaigns/onsite/"+n("GetOnSiteCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateOnSiteCampaign(e){return t.send({op:"UpdateOnSiteCampaign",method:"PUT",path:"/campaigns/onsite/"+n("UpdateOnSiteCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteOnSiteCampaign(e){return t.send({op:"DeleteOnSiteCampaign",method:"DELETE",path:"/campaigns/onsite/"+n("DeleteOnSiteCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async getOnSiteCampaignStats(e){return t.send({op:"GetOnSiteCampaignStats",method:"GET",path:"/campaigns/onsite/"+n("GetOnSiteCampaignStats","id",e.path.id)+"/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async redirectTrackingLink(e){return t.send({op:"RedirectTrackingLink",method:"GET",path:"/l/"+n("RedirectTrackingLink","slug",e.path.slug),auth:[[]],answers:{302:"redirect"},signal:e.signal})},async headTrackingLink(e){return t.send({op:"HeadTrackingLink",method:"HEAD",path:"/l/"+n("HeadTrackingLink","slug",e.path.slug),auth:[[]],answers:{302:"redirect"},signal:e.signal})}}}var d={};s(d,{client:()=>C});function C(t){return{async listBrands(e){return t.send({op:"ListBrands",method:"GET",path:"/commerce/brands",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createBrand(e){return t.send({op:"CreateBrand",method:"POST",path:"/commerce/brands",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createCart(e){return t.send({op:"CreateCart",method:"POST",path:"/commerce/carts",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCart(e){return t.send({op:"GetCart",method:"GET",path:"/commerce/carts/"+n("GetCart","cart_id",e.path.cart_id),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateCart(e){return t.send({op:"UpdateCart",method:"PATCH",path:"/commerce/carts/"+n("UpdateCart","cart_id",e.path.cart_id),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async checkoutCart(e){return t.send({op:"CheckoutCart",method:"POST",path:"/commerce/carts/"+n("CheckoutCart","cart_id",e.path.cart_id)+"/checkout",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addCartItem(e){return t.send({op:"AddCartItem",method:"POST",path:"/commerce/carts/"+n("AddCartItem","cart_id",e.path.cart_id)+"/items",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteCartItem(e){return t.send({op:"DeleteCartItem",method:"DELETE",path:"/commerce/carts/"+n("DeleteCartItem","cart_id",e.path.cart_id)+"/items/"+n("DeleteCartItem","line_id",e.path.line_id),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateCartItem(e){return t.send({op:"UpdateCartItem",method:"PATCH",path:"/commerce/carts/"+n("UpdateCartItem","cart_id",e.path.cart_id)+"/items/"+n("UpdateCartItem","line_id",e.path.line_id),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mergeGuestCart(e){return t.send({op:"MergeGuestCart",method:"POST",path:"/commerce/carts/"+n("MergeGuestCart","cart_id",e.path.cart_id)+"/merge",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async applyCartPromoCode(e){return t.send({op:"ApplyCartPromoCode",method:"POST",path:"/commerce/carts/"+n("ApplyCartPromoCode","cart_id",e.path.cart_id)+"/promo-codes",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeCartPromoCode(e){return t.send({op:"RemoveCartPromoCode",method:"DELETE",path:"/commerce/carts/"+n("RemoveCartPromoCode","cart_id",e.path.cart_id)+"/promo-codes/"+n("RemoveCartPromoCode","code",e.path.code),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async selectCartShipping(e){return t.send({op:"SelectCartShipping",method:"POST",path:"/commerce/carts/"+n("SelectCartShipping","cart_id",e.path.cart_id)+"/shipping",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async storefrontListBrands(e){return t.send({op:"StorefrontListBrands",method:"GET",path:"/commerce/catalog/brands",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async storefrontListCategories(e){return t.send({op:"StorefrontListCategories",method:"GET",path:"/commerce/catalog/categories",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async storefrontListChannels(e){return t.send({op:"StorefrontListChannels",method:"GET",path:"/commerce/catalog/channels",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async storefrontListCollections(e){return t.send({op:"StorefrontListCollections",method:"GET",path:"/commerce/catalog/collections",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async storefrontListProducts(e){return t.send({op:"StorefrontListProducts",method:"GET",path:"/commerce/catalog/products",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async storefrontSearchProducts(e){return t.send({op:"StorefrontSearchProducts",method:"POST",path:"/commerce/catalog/search",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async storefrontSuggest(e){return t.send({op:"StorefrontSuggest",method:"GET",path:"/commerce/catalog/suggest",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async storefrontRecommendProducts(e){return t.send({op:"StorefrontRecommendProducts",method:"POST",path:"/commerce/catalog/recommend",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async storefrontProductRecommendations(e){return t.send({op:"StorefrontProductRecommendations",method:"GET",path:"/commerce/catalog/products/"+n("StorefrontProductRecommendations","product_id_or_handle",e.path.product_id_or_handle)+"/recommendations",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async storefrontGetProduct(e){return t.send({op:"StorefrontGetProduct",method:"GET",path:"/commerce/catalog/products/"+n("StorefrontGetProduct","product_id_or_handle",e.path.product_id_or_handle),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async storefrontListProductReviews(e){return t.send({op:"StorefrontListProductReviews",method:"GET",path:"/commerce/catalog/products/"+n("StorefrontListProductReviews","product_id_or_handle",e.path.product_id_or_handle)+"/reviews",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async storefrontListRegions(e){return t.send({op:"StorefrontListRegions",method:"GET",path:"/commerce/catalog/regions",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async storefrontListStores(e){return t.send({op:"StorefrontListStores",method:"GET",path:"/commerce/catalog/stores",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async storefrontGetStore(e){return t.send({op:"StorefrontGetStore",method:"GET",path:"/commerce/catalog/stores/"+n("StorefrontGetStore","store_id_or_slug",e.path.store_id_or_slug),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async storefrontListStoreReviews(e){return t.send({op:"StorefrontListStoreReviews",method:"GET",path:"/commerce/catalog/stores/"+n("StorefrontListStoreReviews","store_id_or_slug",e.path.store_id_or_slug)+"/reviews",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listCategories(e){return t.send({op:"ListCategories",method:"GET",path:"/commerce/categories",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createCategory(e){return t.send({op:"CreateCategory",method:"POST",path:"/commerce/categories",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listChannels(e){return t.send({op:"ListChannels",method:"GET",path:"/commerce/channels",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createChannel(e){return t.send({op:"CreateChannel",method:"POST",path:"/commerce/channels",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async attachChannelRegion(e){return t.send({op:"AttachChannelRegion",method:"PUT",path:"/commerce/channels/"+n("AttachChannelRegion","channel_id",e.path.channel_id)+"/regions/"+n("AttachChannelRegion","region_id",e.path.region_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async attachChannelStore(e){return t.send({op:"AttachChannelStore",method:"PUT",path:"/commerce/channels/"+n("AttachChannelStore","channel_id",e.path.channel_id)+"/stores/"+n("AttachChannelStore","store_id",e.path.store_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async detachChannelStore(e){return t.send({op:"DetachChannelStore",method:"DELETE",path:"/commerce/channels/"+n("DetachChannelStore","channel_id",e.path.channel_id)+"/stores/"+n("DetachChannelStore","store_id",e.path.store_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listCollections(e){return t.send({op:"ListCollections",method:"GET",path:"/commerce/collections",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createCollection(e){return t.send({op:"CreateCollection",method:"POST",path:"/commerce/collections",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addCollectionProduct(e){return t.send({op:"AddCollectionProduct",method:"PUT",path:"/commerce/collections/"+n("AddCollectionProduct","collection_id",e.path.collection_id)+"/products/"+n("AddCollectionProduct","product_id",e.path.product_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async removeCollectionProduct(e){return t.send({op:"RemoveCollectionProduct",method:"DELETE",path:"/commerce/collections/"+n("RemoveCollectionProduct","collection_id",e.path.collection_id)+"/products/"+n("RemoveCollectionProduct","product_id",e.path.product_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createDigitalAsset(e){return t.send({op:"CreateDigitalAsset",method:"POST",path:"/commerce/digital-assets",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateFulfillment(e){return t.send({op:"UpdateFulfillment",method:"PATCH",path:"/commerce/fulfillments/"+n("UpdateFulfillment","fulfillment_id",e.path.fulfillment_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addShipmentEvent(e){return t.send({op:"AddShipmentEvent",method:"POST",path:"/commerce/fulfillments/"+n("AddShipmentEvent","fulfillment_id",e.path.fulfillment_id)+"/events",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listDiscoveryStrategies(e){return t.send({op:"ListDiscoveryStrategies",method:"GET",path:"/commerce/discovery/strategies",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createDiscoveryStrategy(e){return t.send({op:"CreateDiscoveryStrategy",method:"POST",path:"/commerce/discovery/strategies",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getDiscoveryStrategy(e){return t.send({op:"GetDiscoveryStrategy",method:"GET",path:"/commerce/discovery/strategies/"+n("GetDiscoveryStrategy","strategy_id",e.path.strategy_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteDiscoveryStrategy(e){return t.send({op:"DeleteDiscoveryStrategy",method:"DELETE",path:"/commerce/discovery/strategies/"+n("DeleteDiscoveryStrategy","strategy_id",e.path.strategy_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateDiscoveryStrategy(e){return t.send({op:"UpdateDiscoveryStrategy",method:"PATCH",path:"/commerce/discovery/strategies/"+n("UpdateDiscoveryStrategy","strategy_id",e.path.strategy_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMerchandisingRules(e){return t.send({op:"ListMerchandisingRules",method:"GET",path:"/commerce/discovery/rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createMerchandisingRule(e){return t.send({op:"CreateMerchandisingRule",method:"POST",path:"/commerce/discovery/rules",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getMerchandisingRule(e){return t.send({op:"GetMerchandisingRule",method:"GET",path:"/commerce/discovery/rules/"+n("GetMerchandisingRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteMerchandisingRule(e){return t.send({op:"DeleteMerchandisingRule",method:"DELETE",path:"/commerce/discovery/rules/"+n("DeleteMerchandisingRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateMerchandisingRule(e){return t.send({op:"UpdateMerchandisingRule",method:"PATCH",path:"/commerce/discovery/rules/"+n("UpdateMerchandisingRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSearchSynonyms(e){return t.send({op:"ListSearchSynonyms",method:"GET",path:"/commerce/discovery/synonyms",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createSearchSynonym(e){return t.send({op:"CreateSearchSynonym",method:"POST",path:"/commerce/discovery/synonyms",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteSearchSynonym(e){return t.send({op:"DeleteSearchSynonym",method:"DELETE",path:"/commerce/discovery/synonyms/"+n("DeleteSearchSynonym","synonym_id",e.path.synonym_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async refreshDiscoverySignals(e){return t.send({op:"RefreshDiscoverySignals",method:"POST",path:"/commerce/discovery/signals/refresh",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listHooks(e){return t.send({op:"ListHooks",method:"GET",path:"/commerce/hooks",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async upsertHook(e){return t.send({op:"UpsertHook",method:"POST",path:"/commerce/hooks",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteHook(e){return t.send({op:"DeleteHook",method:"DELETE",path:"/commerce/hooks/"+n("DeleteHook","hook_id",e.path.hook_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listInventory(e){return t.send({op:"ListInventory",method:"GET",path:"/commerce/inventory",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adjustInventory(e){return t.send({op:"AdjustInventory",method:"POST",path:"/commerce/inventory/adjust",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async bulkSyncInventory(e){return t.send({op:"BulkSyncInventory",method:"POST",path:"/commerce/inventory/bulk-sync",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listInventoryMovements(e){return t.send({op:"ListInventoryMovements",method:"GET",path:"/commerce/inventory/movements",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listInvoices(e){return t.send({op:"ListInvoices",method:"GET",path:"/commerce/invoices",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createInvoice(e){return t.send({op:"CreateInvoice",method:"POST",path:"/commerce/invoices",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateInvoice(e){return t.send({op:"UpdateInvoice",method:"PATCH",path:"/commerce/invoices/"+n("UpdateInvoice","invoice_id",e.path.invoice_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listListings(e){return t.send({op:"ListListings",method:"GET",path:"/commerce/listings",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createListing(e){return t.send({op:"CreateListing",method:"POST",path:"/commerce/listings",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateListing(e){return t.send({op:"UpdateListing",method:"PATCH",path:"/commerce/listings/"+n("UpdateListing","listing_id",e.path.listing_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async importLicenseKeys(e){return t.send({op:"ImportLicenseKeys",method:"POST",path:"/commerce/listings/"+n("ImportLicenseKeys","listing_id",e.path.listing_id)+"/license-keys",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async upsertPrice(e){return t.send({op:"UpsertPrice",method:"POST",path:"/commerce/listings/"+n("UpsertPrice","listing_id",e.path.listing_id)+"/prices",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMyOrders(e){return t.send({op:"ListMyOrders",method:"GET",path:"/commerce/me/orders",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getMyOrder(e){return t.send({op:"GetMyOrder",method:"GET",path:"/commerce/me/orders/"+n("GetMyOrder","order_id",e.path.order_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async getMyOrderDownloads(e){return t.send({op:"GetMyOrderDownloads",method:"GET",path:"/commerce/me/orders/"+n("GetMyOrderDownloads","order_id",e.path.order_id)+"/downloads",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async createProductReview(e){return t.send({op:"CreateProductReview",method:"POST",path:"/commerce/me/products/"+n("CreateProductReview","product_id_or_handle",e.path.product_id_or_handle)+"/reviews",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMyReturns(e){return t.send({op:"ListMyReturns",method:"GET",path:"/commerce/me/returns",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async listMyReviews(e){return t.send({op:"ListMyReviews",method:"GET",path:"/commerce/me/reviews",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mintReviewUploadUrl(e){return t.send({op:"MintReviewUploadURL",method:"POST",path:"/commerce/me/reviews/upload-url",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMyReview(e){return t.send({op:"DeleteMyReview",method:"DELETE",path:"/commerce/me/reviews/"+n("DeleteMyReview","review_id",e.path.review_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async voteReview(e){return t.send({op:"VoteReview",method:"POST",path:"/commerce/me/reviews/"+n("VoteReview","review_id",e.path.review_id)+"/vote",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async requestMyReturn(e){return t.send({op:"RequestMyReturn",method:"POST",path:"/commerce/me/store-orders/"+n("RequestMyReturn","store_order_id",e.path.store_order_id)+"/returns",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createStoreReview(e){return t.send({op:"CreateStoreReview",method:"POST",path:"/commerce/me/stores/"+n("CreateStoreReview","store_id_or_slug",e.path.store_id_or_slug)+"/reviews",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createMediaAsset(e){return t.send({op:"CreateMediaAsset",method:"POST",path:"/commerce/media",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listOrders(e){return t.send({op:"ListOrders",method:"GET",path:"/commerce/orders",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getGuestOrder(e){return t.send({op:"GetGuestOrder",method:"GET",path:"/commerce/orders/guest/"+n("GetGuestOrder","order_number",e.path.order_number),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getOrder(e){return t.send({op:"GetOrder",method:"GET",path:"/commerce/orders/"+n("GetOrder","order_id",e.path.order_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async markOrderPaid(e){return t.send({op:"MarkOrderPaid",method:"POST",path:"/commerce/orders/"+n("MarkOrderPaid","order_id",e.path.order_id)+"/mark-paid",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPriceLists(e){return t.send({op:"ListPriceLists",method:"GET",path:"/commerce/price-lists",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createPriceList(e){return t.send({op:"CreatePriceList",method:"POST",path:"/commerce/price-lists",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listProducts(e){return t.send({op:"ListProducts",method:"GET",path:"/commerce/products",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createProduct(e){return t.send({op:"CreateProduct",method:"POST",path:"/commerce/products",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createQuickProduct(e){return t.send({op:"CreateQuickProduct",method:"POST",path:"/commerce/products/quick",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getProduct(e){return t.send({op:"GetProduct",method:"GET",path:"/commerce/products/"+n("GetProduct","product_id",e.path.product_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateProduct(e){return t.send({op:"UpdateProduct",method:"PATCH",path:"/commerce/products/"+n("UpdateProduct","product_id",e.path.product_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async approveProduct(e){return t.send({op:"ApproveProduct",method:"POST",path:"/commerce/products/"+n("ApproveProduct","product_id",e.path.product_id)+"/approval",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async upsertProductOption(e){return t.send({op:"UpsertProductOption",method:"POST",path:"/commerce/products/"+n("UpsertProductOption","product_id",e.path.product_id)+"/options",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createVariant(e){return t.send({op:"CreateVariant",method:"POST",path:"/commerce/products/"+n("CreateVariant","product_id",e.path.product_id)+"/variants",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listRegions(e){return t.send({op:"ListRegions",method:"GET",path:"/commerce/regions",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createRegion(e){return t.send({op:"CreateRegion",method:"POST",path:"/commerce/regions",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateRegion(e){return t.send({op:"UpdateRegion",method:"PATCH",path:"/commerce/regions/"+n("UpdateRegion","region_id",e.path.region_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listReturns(e){return t.send({op:"ListReturns",method:"GET",path:"/commerce/returns",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async approveReturn(e){return t.send({op:"ApproveReturn",method:"POST",path:"/commerce/returns/"+n("ApproveReturn","return_id",e.path.return_id)+"/approve",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rejectReturn(e){return t.send({op:"RejectReturn",method:"POST",path:"/commerce/returns/"+n("RejectReturn","return_id",e.path.return_id)+"/reject",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async completeReturn(e){return t.send({op:"CompleteReturn",method:"POST",path:"/commerce/returns/"+n("CompleteReturn","return_id",e.path.return_id)+"/complete",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveReturn(e){return t.send({op:"ReceiveReturn",method:"POST",path:"/commerce/returns/"+n("ReceiveReturn","return_id",e.path.return_id)+"/receive",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListReviews(e){return t.send({op:"AdminListReviews",method:"GET",path:"/commerce/reviews",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminDeleteReview(e){return t.send({op:"AdminDeleteReview",method:"DELETE",path:"/commerce/reviews/"+n("AdminDeleteReview","review_id",e.path.review_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async adminModerateReview(e){return t.send({op:"AdminModerateReview",method:"PATCH",path:"/commerce/reviews/"+n("AdminModerateReview","review_id",e.path.review_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCommerceSettings(e){return t.send({op:"GetCommerceSettings",method:"GET",path:"/commerce/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async updateCommerceSettings(e){return t.send({op:"UpdateCommerceSettings",method:"PUT",path:"/commerce/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSettlements(e){return t.send({op:"ListSettlements",method:"GET",path:"/commerce/settlements",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async generateSettlement(e){return t.send({op:"GenerateSettlement",method:"POST",path:"/commerce/settlements/generate",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async markSettlementPaid(e){return t.send({op:"MarkSettlementPaid",method:"POST",path:"/commerce/settlements/"+n("MarkSettlementPaid","settlement_id",e.path.settlement_id)+"/mark-paid",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listShippingOptions(e){return t.send({op:"ListShippingOptions",method:"GET",path:"/commerce/shipping-options",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createShippingOption(e){return t.send({op:"CreateShippingOption",method:"POST",path:"/commerce/shipping-options",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listShippingProfiles(e){return t.send({op:"ListShippingProfiles",method:"GET",path:"/commerce/shipping-profiles",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createShippingProfile(e){return t.send({op:"CreateShippingProfile",method:"POST",path:"/commerce/shipping-profiles",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listStockLocations(e){return t.send({op:"ListStockLocations",method:"GET",path:"/commerce/stock-locations",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createStockLocation(e){return t.send({op:"CreateStockLocation",method:"POST",path:"/commerce/stock-locations",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listStoreOrders(e){return t.send({op:"ListStoreOrders",method:"GET",path:"/commerce/store-orders",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getStoreOrder(e){return t.send({op:"GetStoreOrder",method:"GET",path:"/commerce/store-orders/"+n("GetStoreOrder","store_order_id",e.path.store_order_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelStoreOrder(e){return t.send({op:"CancelStoreOrder",method:"POST",path:"/commerce/store-orders/"+n("CancelStoreOrder","store_order_id",e.path.store_order_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createFulfillment(e){return t.send({op:"CreateFulfillment",method:"POST",path:"/commerce/store-orders/"+n("CreateFulfillment","store_order_id",e.path.store_order_id)+"/fulfillments",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createReturn(e){return t.send({op:"CreateReturn",method:"POST",path:"/commerce/store-orders/"+n("CreateReturn","store_order_id",e.path.store_order_id)+"/returns",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listStores(e){return t.send({op:"ListStores",method:"GET",path:"/commerce/stores",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createStore(e){return t.send({op:"CreateStore",method:"POST",path:"/commerce/stores",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getStore(e){return t.send({op:"GetStore",method:"GET",path:"/commerce/stores/"+n("GetStore","store_id",e.path.store_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateStore(e){return t.send({op:"UpdateStore",method:"PATCH",path:"/commerce/stores/"+n("UpdateStore","store_id",e.path.store_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerUpdateFulfillment(e){return t.send({op:"SellerUpdateFulfillment",method:"PATCH",path:"/commerce/stores/"+n("SellerUpdateFulfillment","store_id",e.path.store_id)+"/fulfillments/"+n("SellerUpdateFulfillment","fulfillment_id",e.path.fulfillment_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerAddShipmentEvent(e){return t.send({op:"SellerAddShipmentEvent",method:"POST",path:"/commerce/stores/"+n("SellerAddShipmentEvent","store_id",e.path.store_id)+"/fulfillments/"+n("SellerAddShipmentEvent","fulfillment_id",e.path.fulfillment_id)+"/events",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListInventory(e){return t.send({op:"SellerListInventory",method:"GET",path:"/commerce/stores/"+n("SellerListInventory","store_id",e.path.store_id)+"/inventory",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerAdjustInventory(e){return t.send({op:"SellerAdjustInventory",method:"POST",path:"/commerce/stores/"+n("SellerAdjustInventory","store_id",e.path.store_id)+"/inventory/adjust",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerBulkSyncInventory(e){return t.send({op:"SellerBulkSyncInventory",method:"POST",path:"/commerce/stores/"+n("SellerBulkSyncInventory","store_id",e.path.store_id)+"/inventory/bulk-sync",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListListings(e){return t.send({op:"SellerListListings",method:"GET",path:"/commerce/stores/"+n("SellerListListings","store_id",e.path.store_id)+"/listings",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerCreateListing(e){return t.send({op:"SellerCreateListing",method:"POST",path:"/commerce/stores/"+n("SellerCreateListing","store_id",e.path.store_id)+"/listings",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerUpdateListing(e){return t.send({op:"SellerUpdateListing",method:"PATCH",path:"/commerce/stores/"+n("SellerUpdateListing","store_id",e.path.store_id)+"/listings/"+n("SellerUpdateListing","listing_id",e.path.listing_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerImportLicenseKeys(e){return t.send({op:"SellerImportLicenseKeys",method:"POST",path:"/commerce/stores/"+n("SellerImportLicenseKeys","store_id",e.path.store_id)+"/listings/"+n("SellerImportLicenseKeys","listing_id",e.path.listing_id)+"/license-keys",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerUpsertPrice(e){return t.send({op:"SellerUpsertPrice",method:"POST",path:"/commerce/stores/"+n("SellerUpsertPrice","store_id",e.path.store_id)+"/listings/"+n("SellerUpsertPrice","listing_id",e.path.listing_id)+"/prices",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListStockLocations(e){return t.send({op:"SellerListStockLocations",method:"GET",path:"/commerce/stores/"+n("SellerListStockLocations","store_id",e.path.store_id)+"/locations",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerCreateStockLocation(e){return t.send({op:"SellerCreateStockLocation",method:"POST",path:"/commerce/stores/"+n("SellerCreateStockLocation","store_id",e.path.store_id)+"/locations",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addStoreMember(e){return t.send({op:"AddStoreMember",method:"POST",path:"/commerce/stores/"+n("AddStoreMember","store_id",e.path.store_id)+"/members",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeStoreMember(e){return t.send({op:"RemoveStoreMember",method:"DELETE",path:"/commerce/stores/"+n("RemoveStoreMember","store_id",e.path.store_id)+"/members/"+n("RemoveStoreMember","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerGetMetrics(e){return t.send({op:"SellerGetMetrics",method:"GET",path:"/commerce/stores/"+n("SellerGetMetrics","store_id",e.path.store_id)+"/metrics",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerListStoreOrders(e){return t.send({op:"SellerListStoreOrders",method:"GET",path:"/commerce/stores/"+n("SellerListStoreOrders","store_id",e.path.store_id)+"/orders",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async sellerGetStoreOrder(e){return t.send({op:"SellerGetStoreOrder",method:"GET",path:"/commerce/stores/"+n("SellerGetStoreOrder","store_id",e.path.store_id)+"/orders/"+n("SellerGetStoreOrder","store_order_id",e.path.store_order_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerCancelStoreOrder(e){return t.send({op:"SellerCancelStoreOrder",method:"POST",path:"/commerce/stores/"+n("SellerCancelStoreOrder","store_id",e.path.store_id)+"/orders/"+n("SellerCancelStoreOrder","store_order_id",e.path.store_order_id)+"/cancel",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerCreateFulfillment(e){return t.send({op:"SellerCreateFulfillment",method:"POST",path:"/commerce/stores/"+n("SellerCreateFulfillment","store_id",e.path.store_id)+"/orders/"+n("SellerCreateFulfillment","store_order_id",e.path.store_order_id)+"/fulfillments",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async onboardStorePaymentAccount(e){return t.send({op:"OnboardStorePaymentAccount",method:"POST",path:"/commerce/stores/"+n("OnboardStorePaymentAccount","store_id",e.path.store_id)+"/payment-accounts",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerOnboardPayouts(e){return t.send({op:"SellerOnboardPayouts",method:"POST",path:"/commerce/stores/"+n("SellerOnboardPayouts","store_id",e.path.store_id)+"/payouts/onboard",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerOnboardingLink(e){return t.send({op:"SellerOnboardingLink",method:"POST",path:"/commerce/stores/"+n("SellerOnboardingLink","store_id",e.path.store_id)+"/payouts/onboarding-link",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListProducts(e){return t.send({op:"SellerListProducts",method:"GET",path:"/commerce/stores/"+n("SellerListProducts","store_id",e.path.store_id)+"/products",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async sellerCreateProduct(e){return t.send({op:"SellerCreateProduct",method:"POST",path:"/commerce/stores/"+n("SellerCreateProduct","store_id",e.path.store_id)+"/products",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerCreateQuickProduct(e){return t.send({op:"SellerCreateQuickProduct",method:"POST",path:"/commerce/stores/"+n("SellerCreateQuickProduct","store_id",e.path.store_id)+"/products/quick",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerCreatePromotionRule(e){return t.send({op:"SellerCreatePromotionRule",method:"POST",path:"/commerce/stores/"+n("SellerCreatePromotionRule","store_id",e.path.store_id)+"/promotions/rules",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListReturns(e){return t.send({op:"SellerListReturns",method:"GET",path:"/commerce/stores/"+n("SellerListReturns","store_id",e.path.store_id)+"/returns",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerApproveReturn(e){return t.send({op:"SellerApproveReturn",method:"POST",path:"/commerce/stores/"+n("SellerApproveReturn","store_id",e.path.store_id)+"/returns/"+n("SellerApproveReturn","return_id",e.path.return_id)+"/approve",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerRejectReturn(e){return t.send({op:"SellerRejectReturn",method:"POST",path:"/commerce/stores/"+n("SellerRejectReturn","store_id",e.path.store_id)+"/returns/"+n("SellerRejectReturn","return_id",e.path.return_id)+"/reject",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerCompleteReturn(e){return t.send({op:"SellerCompleteReturn",method:"POST",path:"/commerce/stores/"+n("SellerCompleteReturn","store_id",e.path.store_id)+"/returns/"+n("SellerCompleteReturn","return_id",e.path.return_id)+"/complete",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerReceiveReturn(e){return t.send({op:"SellerReceiveReturn",method:"POST",path:"/commerce/stores/"+n("SellerReceiveReturn","store_id",e.path.store_id)+"/returns/"+n("SellerReceiveReturn","return_id",e.path.return_id)+"/receive",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListReviews(e){return t.send({op:"SellerListReviews",method:"GET",path:"/commerce/stores/"+n("SellerListReviews","store_id",e.path.store_id)+"/reviews",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async sellerReplyReview(e){return t.send({op:"SellerReplyReview",method:"POST",path:"/commerce/stores/"+n("SellerReplyReview","store_id",e.path.store_id)+"/reviews/"+n("SellerReplyReview","review_id",e.path.review_id)+"/reply",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListSettlements(e){return t.send({op:"SellerListSettlements",method:"GET",path:"/commerce/stores/"+n("SellerListSettlements","store_id",e.path.store_id)+"/settlements",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerCreateShippingOption(e){return t.send({op:"SellerCreateShippingOption",method:"POST",path:"/commerce/stores/"+n("SellerCreateShippingOption","store_id",e.path.store_id)+"/shipping-options",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTaxRates(e){return t.send({op:"ListTaxRates",method:"GET",path:"/commerce/tax-rates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async upsertTaxRate(e){return t.send({op:"UpsertTaxRate",method:"PUT",path:"/commerce/tax-rates",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateVariant(e){return t.send({op:"UpdateVariant",method:"PATCH",path:"/commerce/variants/"+n("UpdateVariant","variant_id",e.path.variant_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async setBundleItems(e){return t.send({op:"SetBundleItems",method:"POST",path:"/commerce/variants/"+n("SetBundleItems","variant_id",e.path.variant_id)+"/bundle-items",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async recomputeVariantBuyBox(e){return t.send({op:"RecomputeVariantBuyBox",method:"POST",path:"/commerce/variants/"+n("RecomputeVariantBuyBox","variant_id",e.path.variant_id)+"/buybox/recompute",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async revokePromotionCode(e){return t.send({op:"RevokePromotionCode",method:"DELETE",path:"/promotions/codes/"+n("RevokePromotionCode","code_id",e.path.code_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async evaluatePromotions(e){return t.send({op:"EvaluatePromotions",method:"POST",path:"/promotions/evaluate",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async holdPromotions(e){return t.send({op:"HoldPromotions",method:"POST",path:"/promotions/holds",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async commitPromotionHold(e){return t.send({op:"CommitPromotionHold",method:"POST",path:"/promotions/holds/"+n("CommitPromotionHold","hold_id",e.path.hold_id)+"/commit",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async releasePromotionHold(e){return t.send({op:"ReleasePromotionHold",method:"POST",path:"/promotions/holds/"+n("ReleasePromotionHold","hold_id",e.path.hold_id)+"/release",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listPromotionRedemptions(e){return t.send({op:"ListPromotionRedemptions",method:"GET",path:"/promotions/redemptions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async reversePromotionRedemption(e){return t.send({op:"ReversePromotionRedemption",method:"POST",path:"/promotions/redemptions/"+n("ReversePromotionRedemption","redemption_id",e.path.redemption_id)+"/reverse",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listPromotionRules(e){return t.send({op:"ListPromotionRules",method:"GET",path:"/promotions/rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createPromotionRule(e){return t.send({op:"CreatePromotionRule",method:"POST",path:"/promotions/rules",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPromotionRule(e){return t.send({op:"GetPromotionRule",method:"GET",path:"/promotions/rules/"+n("GetPromotionRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async archivePromotionRule(e){return t.send({op:"ArchivePromotionRule",method:"DELETE",path:"/promotions/rules/"+n("ArchivePromotionRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updatePromotionRule(e){return t.send({op:"UpdatePromotionRule",method:"PATCH",path:"/promotions/rules/"+n("UpdatePromotionRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async upsertPromotionBudget(e){return t.send({op:"UpsertPromotionBudget",method:"PUT",path:"/promotions/rules/"+n("UpsertPromotionBudget","rule_id",e.path.rule_id)+"/budgets/"+n("UpsertPromotionBudget","currency",e.path.currency),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPromotionCodes(e){return t.send({op:"ListPromotionCodes",method:"GET",path:"/promotions/rules/"+n("ListPromotionCodes","rule_id",e.path.rule_id)+"/codes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createPromotionCode(e){return t.send({op:"CreatePromotionCode",method:"POST",path:"/promotions/rules/"+n("CreatePromotionCode","rule_id",e.path.rule_id)+"/codes",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async generatePromotionCodeBatch(e){return t.send({op:"GeneratePromotionCodeBatch",method:"POST",path:"/promotions/rules/"+n("GeneratePromotionCodeBatch","rule_id",e.path.rule_id)+"/codes/batch",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var g={};s(g,{client:()=>j});function j(t){return{async getValues(e){return t.send({op:"GetValues",method:"GET",path:"/flags",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},headers:e?.headers,signal:e?.signal})},async batchUserValues(e){return t.send({op:"BatchUserValues",method:"POST",path:"/flags/batch",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getDelta(e){return t.send({op:"GetDelta",method:"GET",path:"/flags/delta",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json",304:"empty"},query:e?.query,headers:e?.headers,signal:e?.signal})},async getEvaluations(e){return t.send({op:"GetEvaluations",method:"GET",path:"/flags/evaluations",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listExperiments(e){return t.send({op:"ListExperiments",method:"GET",path:"/flags/experiments",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async startExperiment(e){return t.send({op:"StartExperiment",method:"POST",path:"/flags/experiments",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getExperiment(e){return t.send({op:"GetExperiment",method:"GET",path:"/flags/experiments/"+n("GetExperiment","experiment_id",e.path.experiment_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getExperimentResults(e){return t.send({op:"GetExperimentResults",method:"GET",path:"/flags/experiments/"+n("GetExperimentResults","experiment_id",e.path.experiment_id)+"/results",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async stopExperiment(e){return t.send({op:"StopExperiment",method:"POST",path:"/flags/experiments/"+n("StopExperiment","experiment_id",e.path.experiment_id)+"/stop",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async declareExperimentWinner(e){return t.send({op:"DeclareExperimentWinner",method:"POST",path:"/flags/experiments/"+n("DeclareExperimentWinner","experiment_id",e.path.experiment_id)+"/winner",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCurrentInstallations(e){return t.send({op:"GetCurrentInstallations",method:"GET",path:"/flags/installations/current",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getInstallationsDaily(e){return t.send({op:"GetInstallationsDaily",method:"GET",path:"/flags/installations/daily",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getSnapshot(e){return t.send({op:"GetSnapshot",method:"GET",path:"/flags/snapshot",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json",304:"empty"},headers:e?.headers,signal:e?.signal})},async listDefinitions(e){return t.send({op:"ListDefinitions",method:"GET",path:"/flags/system",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getDefinition(e){return t.send({op:"GetDefinition",method:"GET",path:"/flags/system/"+n("GetDefinition","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putDefinition(e){return t.send({op:"PutDefinition",method:"PUT",path:"/flags/system/"+n("PutDefinition","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteDefinition(e){return t.send({op:"DeleteDefinition",method:"DELETE",path:"/flags/system/"+n("DeleteDefinition","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async activateTemplates(e){return t.send({op:"ActivateTemplates",method:"POST",path:"/flags/templates/activation",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getActiveTemplate(e){return t.send({op:"GetActiveTemplate",method:"GET",path:"/flags/templates/active",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getTemplateCapabilities(e){return t.send({op:"GetTemplateCapabilities",method:"GET",path:"/flags/templates/capabilities",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getTemplateDraft(e){return t.send({op:"GetTemplateDraft",method:"GET",path:"/flags/templates/draft",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createTemplateDraft(e){return t.send({op:"CreateTemplateDraft",method:"POST",path:"/flags/templates/draft",auth:[["SecretKeyAuth"]],answers:{201:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async discardTemplateDraft(e){return t.send({op:"DiscardTemplateDraft",method:"DELETE",path:"/flags/templates/draft",auth:[["SecretKeyAuth"]],answers:{204:"empty"},headers:e.headers,signal:e.signal})},async putTemplateParameter(e){return t.send({op:"PutTemplateParameter",method:"PUT",path:"/flags/templates/draft/parameters/"+n("PutTemplateParameter","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeTemplateParameter(e){return t.send({op:"RemoveTemplateParameter",method:"DELETE",path:"/flags/templates/draft/parameters/"+n("RemoveTemplateParameter","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,signal:e.signal})},async reviewTemplateDraft(e){return t.send({op:"ReviewTemplateDraft",method:"GET",path:"/flags/templates/draft/review",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async publishTemplate(e){return t.send({op:"PublishTemplate",method:"POST",path:"/flags/templates/publish",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPublishReceipt(e){return t.send({op:"GetPublishReceipt",method:"POST",path:"/flags/templates/publish/receipt",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async restoreTemplateVersion(e){return t.send({op:"RestoreTemplateVersion",method:"POST",path:"/flags/templates/restore/"+n("RestoreTemplateVersion","version",e.path.version),auth:[["SecretKeyAuth"]],answers:{201:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTemplateVersions(e){return t.send({op:"ListTemplateVersions",method:"GET",path:"/flags/templates/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getTemplateVersion(e){return t.send({op:"GetTemplateVersion",method:"GET",path:"/flags/templates/versions/"+n("GetTemplateVersion","version",e.path.version),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getUserValues(e){return t.send({op:"GetUserValues",method:"GET",path:"/flags/users/"+n("GetUserValues","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,signal:e.signal})},async putUserValues(e){return t.send({op:"PutUserValues",method:"PUT",path:"/flags/users/"+n("PutUserValues","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteUserValues(e){return t.send({op:"DeleteUserValues",method:"DELETE",path:"/flags/users/"+n("DeleteUserValues","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putUserValue(e){return t.send({op:"PutUserValue",method:"PUT",path:"/flags/users/"+n("PutUserValue","user_id",e.path.user_id)+"/"+n("PutUserValue","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteUserValue(e){return t.send({op:"DeleteUserValue",method:"DELETE",path:"/flags/users/"+n("DeleteUserValue","user_id",e.path.user_id)+"/"+n("DeleteUserValue","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,signal:e.signal})}}}var c={};s(c,{client:()=>E});function E(t){return{async getAppleAccount(e){return t.send({op:"GetAppleAccount",method:"GET",path:"/iap/apple",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async disconnectApple(e){return t.send({op:"DisconnectApple",method:"DELETE",path:"/iap/apple",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getAppleAccountToken(e){return t.send({op:"GetAppleAccountToken",method:"POST",path:"/iap/apple/account-token",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async getAppleConnectPage(e){return t.send({op:"GetAppleConnectPage",method:"GET",path:"/iap/apple/connect",auth:[],answers:{200:"raw"},signal:e?.signal})},async connectAppleKey(e){return t.send({op:"ConnectAppleKey",method:"POST",path:"/iap/apple/connect",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createAppleGrant(e){return t.send({op:"CreateAppleGrant",method:"POST",path:"/iap/apple/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getAppleReadiness(e){return t.send({op:"GetAppleReadiness",method:"GET",path:"/iap/apple/readiness",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async reportAppleTransactions(e){return t.send({op:"ReportAppleTransactions",method:"POST",path:"/iap/apple/transactions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async setXcodeCertificate(e){return t.send({op:"SetXcodeCertificate",method:"PUT",path:"/iap/apple/xcode-certificate",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async clearXcodeCertificate(e){return t.send({op:"ClearXcodeCertificate",method:"DELETE",path:"/iap/apple/xcode-certificate",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async setXcodeOfferKey(e){return t.send({op:"SetXcodeOfferKey",method:"PUT",path:"/iap/apple/xcode-offer-key",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCatalog(e){return t.send({op:"GetCatalog",method:"GET",path:"/iap/catalog",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async saveCatalog(e){return t.send({op:"SaveCatalog",method:"PUT",path:"/iap/catalog",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async planCatalog(e){return t.send({op:"PlanCatalog",method:"POST",path:"/iap/catalog/plans",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getCatalogPlan(e){return t.send({op:"GetCatalogPlan",method:"GET",path:"/iap/catalog/plans/"+n("GetCatalogPlan","plan_id",e.path.plan_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async confirmCatalogPlan(e){return t.send({op:"ConfirmCatalogPlan",method:"POST",path:"/iap/catalog/plans/"+n("ConfirmCatalogPlan","plan_id",e.path.plan_id)+"/confirm",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async declineCatalogPlan(e){return t.send({op:"DeclineCatalogPlan",method:"POST",path:"/iap/catalog/plans/"+n("DeclineCatalogPlan","plan_id",e.path.plan_id)+"/decline",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async listCatalogRevisions(e){return t.send({op:"ListCatalogRevisions",method:"GET",path:"/iap/catalog/revisions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getCatalogRevision(e){return t.send({op:"GetCatalogRevision",method:"GET",path:"/iap/catalog/revisions/"+n("GetCatalogRevision","revision",e.path.revision),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async restoreCatalogRevision(e){return t.send({op:"RestoreCatalogRevision",method:"POST",path:"/iap/catalog/revisions/"+n("RestoreCatalogRevision","revision",e.path.revision)+"/restore",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async validateCatalog(e){return t.send({op:"ValidateCatalog",method:"POST",path:"/iap/catalog/validate",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listCharts(e){return t.send({op:"ListCharts",method:"GET",path:"/iap/charts",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getChartsOverview(e){return t.send({op:"GetChartsOverview",method:"GET",path:"/iap/charts/overview",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getChart(e){return t.send({op:"GetChart",method:"GET",path:"/iap/charts/"+n("GetChart","chart",e.path.chart),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async createCheckout(e){return t.send({op:"CreateCheckout",method:"POST",path:"/iap/checkout",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createCheckoutRedemption(e){return t.send({op:"CreateCheckoutRedemption",method:"POST",path:"/iap/checkout/redemption",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listCoupons(e){return t.send({op:"ListCoupons",method:"GET",path:"/iap/coupons",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createCoupon(e){return t.send({op:"CreateCoupon",method:"POST",path:"/iap/coupons",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async redeemCoupon(e){return t.send({op:"RedeemCoupon",method:"POST",path:"/iap/coupons/redeem",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCoupon(e){return t.send({op:"GetCoupon",method:"GET",path:"/iap/coupons/"+n("GetCoupon","coupon_key",e.path.coupon_key),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async revokeCoupon(e){return t.send({op:"RevokeCoupon",method:"DELETE",path:"/iap/coupons/"+n("RevokeCoupon","coupon_key",e.path.coupon_key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listCouponCodes(e){return t.send({op:"ListCouponCodes",method:"GET",path:"/iap/coupons/"+n("ListCouponCodes","coupon_key",e.path.coupon_key)+"/codes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async searchCustomers(e){return t.send({op:"SearchCustomers",method:"GET",path:"/iap/customers",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getCustomer(e){return t.send({op:"GetCustomer",method:"GET",path:"/iap/customers/"+n("GetCustomer","customer_id",e.path.customer_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async grantCredits(e){return t.send({op:"GrantCredits",method:"POST",path:"/iap/customers/"+n("GrantCredits","customer_id",e.path.customer_id)+"/credits",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listCreditEntries(e){return t.send({op:"ListCreditEntries",method:"GET",path:"/iap/customers/"+n("ListCreditEntries","customer_id",e.path.customer_id)+"/credits/entries",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async forgiveCredits(e){return t.send({op:"ForgiveCredits",method:"POST",path:"/iap/customers/"+n("ForgiveCredits","customer_id",e.path.customer_id)+"/credits/forgive",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listCustomerGrants(e){return t.send({op:"ListCustomerGrants",method:"GET",path:"/iap/customers/"+n("ListCustomerGrants","customer_id",e.path.customer_id)+"/grants",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async grantEntitlement(e){return t.send({op:"GrantEntitlement",method:"POST",path:"/iap/customers/"+n("GrantEntitlement","customer_id",e.path.customer_id)+"/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revokeGrant(e){return t.send({op:"RevokeGrant",method:"DELETE",path:"/iap/customers/"+n("RevokeGrant","customer_id",e.path.customer_id)+"/grants/"+n("RevokeGrant","grant_id",e.path.grant_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async getCustomerHistory(e){return t.send({op:"GetCustomerHistory",method:"GET",path:"/iap/customers/"+n("GetCustomerHistory","customer_id",e.path.customer_id)+"/history",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async holdSpend(e){return t.send({op:"HoldSpend",method:"POST",path:"/iap/customers/"+n("HoldSpend","customer_id",e.path.customer_id)+"/holds",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async setCustomerLimit(e){return t.send({op:"SetCustomerLimit",method:"PUT",path:"/iap/customers/"+n("SetCustomerLimit","customer_id",e.path.customer_id)+"/limits/"+n("SetCustomerLimit","limit_key",e.path.limit_key),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async clearCustomerLimit(e){return t.send({op:"ClearCustomerLimit",method:"DELETE",path:"/iap/customers/"+n("ClearCustomerLimit","customer_id",e.path.customer_id)+"/limits/"+n("ClearCustomerLimit","limit_key",e.path.limit_key),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async grantLimit(e){return t.send({op:"GrantLimit",method:"POST",path:"/iap/customers/"+n("GrantLimit","customer_id",e.path.customer_id)+"/limits/"+n("GrantLimit","limit_key",e.path.limit_key)+"/grants",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async spend(e){return t.send({op:"Spend",method:"POST",path:"/iap/customers/"+n("Spend","customer_id",e.path.customer_id)+"/spend",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async commitSpend(e){return t.send({op:"CommitSpend",method:"POST",path:"/iap/customers/"+n("CommitSpend","customer_id",e.path.customer_id)+"/spends/"+n("CommitSpend","spend_id",e.path.spend_id)+"/commit",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async extendHold(e){return t.send({op:"ExtendHold",method:"POST",path:"/iap/customers/"+n("ExtendHold","customer_id",e.path.customer_id)+"/spends/"+n("ExtendHold","spend_id",e.path.spend_id)+"/extend",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async releaseSpend(e){return t.send({op:"ReleaseSpend",method:"POST",path:"/iap/customers/"+n("ReleaseSpend","customer_id",e.path.customer_id)+"/spends/"+n("ReleaseSpend","spend_id",e.path.spend_id)+"/release",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async reverseSpend(e){return t.send({op:"ReverseSpend",method:"POST",path:"/iap/customers/"+n("ReverseSpend","customer_id",e.path.customer_id)+"/spends/"+n("ReverseSpend","spend_id",e.path.spend_id)+"/reverse",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async cancelSubscription(e){return t.send({op:"CancelSubscription",method:"POST",path:"/iap/customers/"+n("CancelSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+n("CancelSubscription","subscription_id",e.path.subscription_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async extendSubscription(e){return t.send({op:"ExtendSubscription",method:"POST",path:"/iap/customers/"+n("ExtendSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+n("ExtendSubscription","subscription_id",e.path.subscription_id)+"/extend",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async refundSubscription(e){return t.send({op:"RefundSubscription",method:"POST",path:"/iap/customers/"+n("RefundSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+n("RefundSubscription","subscription_id",e.path.subscription_id)+"/refund",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listExperiments(e){return t.send({op:"ListExperiments",method:"GET",path:"/iap/experiments",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async startExperiment(e){return t.send({op:"StartExperiment",method:"POST",path:"/iap/experiments",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getExperiment(e){return t.send({op:"GetExperiment",method:"GET",path:"/iap/experiments/"+n("GetExperiment","experiment_id",e.path.experiment_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getExperimentResults(e){return t.send({op:"GetExperimentResults",method:"GET",path:"/iap/experiments/"+n("GetExperimentResults","experiment_id",e.path.experiment_id)+"/results",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async stopExperiment(e){return t.send({op:"StopExperiment",method:"POST",path:"/iap/experiments/"+n("StopExperiment","experiment_id",e.path.experiment_id)+"/stop",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async declareExperimentWinner(e){return t.send({op:"DeclareExperimentWinner",method:"POST",path:"/iap/experiments/"+n("DeclareExperimentWinner","experiment_id",e.path.experiment_id)+"/winner",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getGoogleAccount(e){return t.send({op:"GetGoogleAccount",method:"GET",path:"/iap/google",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectGoogle(e){return t.send({op:"ConnectGoogle",method:"POST",path:"/iap/google",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async disconnectGoogle(e){return t.send({op:"DisconnectGoogle",method:"DELETE",path:"/iap/google",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getGoogleAccountId(e){return t.send({op:"GetGoogleAccountID",method:"POST",path:"/iap/google/account-id",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async reportGooglePurchases(e){return t.send({op:"ReportGooglePurchases",method:"POST",path:"/iap/google/purchases",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getMyCustomerInfo(e){return t.send({op:"GetMyCustomerInfo",method:"GET",path:"/iap/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mergeGuest(e){return t.send({op:"MergeGuest",method:"POST",path:"/iap/me/merge",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createMergeGrant(e){return t.send({op:"CreateMergeGrant",method:"POST",path:"/iap/me/merge-grant",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},signal:e?.signal})},async setRefundDataConsent(e){return t.send({op:"SetRefundDataConsent",method:"PUT",path:"/iap/me/refund-data-consent",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getOfferings(e){return t.send({op:"GetOfferings",method:"GET",path:"/iap/offerings",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listMyOffers(e){return t.send({op:"ListMyOffers",method:"GET",path:"/iap/offers",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async getOfferStats(e){return t.send({op:"GetOfferStats",method:"GET",path:"/iap/offers/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async signAppleOffer(e){return t.send({op:"SignAppleOffer",method:"POST",path:"/iap/offers/"+n("SignAppleOffer","offer_key",e.path.offer_key)+"/apple-signature",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async claimOffer(e){return t.send({op:"ClaimOffer",method:"POST",path:"/iap/offers/"+n("ClaimOffer","offer_key",e.path.offer_key)+"/claim",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},signal:e.signal})},async recordOfferView(e){return t.send({op:"RecordOfferView",method:"POST",path:"/iap/offers/"+n("RecordOfferView","offer_key",e.path.offer_key)+"/views",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async listPaywalls(e){return t.send({op:"ListPaywalls",method:"GET",path:"/iap/paywalls",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createPaywall(e){return t.send({op:"CreatePaywall",method:"POST",path:"/iap/paywalls",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPaywallAssets(e){return t.send({op:"ListPaywallAssets",method:"GET",path:"/iap/paywalls/assets",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async registerPaywallAsset(e){return t.send({op:"RegisterPaywallAsset",method:"POST",path:"/iap/paywalls/assets",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deletePaywallAsset(e){return t.send({op:"DeletePaywallAsset",method:"DELETE",path:"/iap/paywalls/assets/"+n("DeletePaywallAsset","asset_id",e.path.asset_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listPaywallTemplates(e){return t.send({op:"ListPaywallTemplates",method:"GET",path:"/iap/paywalls/templates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getPaywallTemplateAsset(e){return t.send({op:"GetPaywallTemplateAsset",method:"GET",path:"/iap/paywalls/templates/"+n("GetPaywallTemplateAsset","key",e.path.key)+"/assets/"+n("GetPaywallTemplateAsset","asset_id",e.path.asset_id),auth:[["SecretKeyAuth"]],answers:{200:"raw",304:"empty"},headers:e.headers,signal:e.signal})},async validatePaywall(e){return t.send({op:"ValidatePaywall",method:"POST",path:"/iap/paywalls/validate",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPaywall(e){return t.send({op:"GetPaywall",method:"GET",path:"/iap/paywalls/"+n("GetPaywall","paywall_id",e.path.paywall_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deletePaywall(e){return t.send({op:"DeletePaywall",method:"DELETE",path:"/iap/paywalls/"+n("DeletePaywall","paywall_id",e.path.paywall_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async savePaywallDraft(e){return t.send({op:"SavePaywallDraft",method:"PUT",path:"/iap/paywalls/"+n("SavePaywallDraft","paywall_id",e.path.paywall_id)+"/draft",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async publishPaywall(e){return t.send({op:"PublishPaywall",method:"POST",path:"/iap/paywalls/"+n("PublishPaywall","paywall_id",e.path.paywall_id)+"/publish",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async listPaywallVersions(e){return t.send({op:"ListPaywallVersions",method:"GET",path:"/iap/paywalls/"+n("ListPaywallVersions","paywall_id",e.path.paywall_id)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getPaywallVersion(e){return t.send({op:"GetPaywallVersion",method:"GET",path:"/iap/paywalls/"+n("GetPaywallVersion","paywall_id",e.path.paywall_id)+"/versions/"+n("GetPaywallVersion","version",e.path.version),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listPlacements(e){return t.send({op:"ListPlacements",method:"GET",path:"/iap/placements",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listAttributeKeys(e){return t.send({op:"ListAttributeKeys",method:"GET",path:"/iap/placements/attributes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async setPlacement(e){return t.send({op:"SetPlacement",method:"PUT",path:"/iap/placements/"+n("SetPlacement","placement",e.path.placement),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deletePlacement(e){return t.send({op:"DeletePlacement",method:"DELETE",path:"/iap/placements/"+n("DeletePlacement","placement",e.path.placement),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async recordPaywallExposure(e){return t.send({op:"RecordPaywallExposure",method:"POST",path:"/iap/placements/"+n("RecordPaywallExposure","placement",e.path.placement)+"/exposures",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPlacementPaywall(e){return t.send({op:"GetPlacementPaywall",method:"GET",path:"/iap/placements/"+n("GetPlacementPaywall","placement",e.path.placement)+"/paywall",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json",204:"empty",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async previewPlacement(e){return t.send({op:"PreviewPlacement",method:"POST",path:"/iap/placements/"+n("PreviewPlacement","placement",e.path.placement)+"/resolve-preview",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPlacementResults(e){return t.send({op:"GetPlacementResults",method:"GET",path:"/iap/placements/"+n("GetPlacementResults","placement",e.path.placement)+"/results",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getPlacementRules(e){return t.send({op:"GetPlacementRules",method:"GET",path:"/iap/placements/"+n("GetPlacementRules","placement",e.path.placement)+"/rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setPlacementRules(e){return t.send({op:"SetPlacementRules",method:"PUT",path:"/iap/placements/"+n("SetPlacementRules","placement",e.path.placement)+"/rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createPortalSession(e){return t.send({op:"CreatePortalSession",method:"POST",path:"/iap/portal",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getRedemptionPage(e){return t.send({op:"GetRedemptionPage",method:"GET",path:"/iap/redeem",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async redeemPurchase(e){return t.send({op:"RedeemPurchase",method:"POST",path:"/iap/redemptions/redeem",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/iap/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async updateSettings(e){return t.send({op:"UpdateSettings",method:"PUT",path:"/iap/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveAppleNotification(e){return t.send({op:"ReceiveAppleNotification",method:"POST",path:"/iap/webhooks/apple",auth:[],answers:{200:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveGoogleNotification(e){return t.send({op:"ReceiveGoogleNotification",method:"POST",path:"/iap/webhooks/google",auth:[],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var u={};s(u,{client:()=>K});function K(t){return{async listJourneys(e){return t.send({op:"ListJourneys",method:"GET",path:"/journeys",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createJourney(e){return t.send({op:"CreateJourney",method:"POST",path:"/journeys",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listBlueprints(e){return t.send({op:"ListBlueprints",method:"GET",path:"/journeys/blueprints",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listPersonRuns(e){return t.send({op:"ListPersonRuns",method:"GET",path:"/journeys/people/"+n("ListPersonRuns","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async simulateJourney(e){return t.send({op:"SimulateJourney",method:"POST",path:"/journeys/simulate",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listStoreBlueprints(e){return t.send({op:"ListStoreBlueprints",method:"GET",path:"/journeys/stores/"+n("ListStoreBlueprints","store_id",e.path.store_id)+"/blueprints",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async activateStoreBlueprint(e){return t.send({op:"ActivateStoreBlueprint",method:"POST",path:"/journeys/stores/"+n("ActivateStoreBlueprint","store_id",e.path.store_id)+"/blueprints",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteStoreBlueprint(e){return t.send({op:"DeleteStoreBlueprint",method:"DELETE",path:"/journeys/stores/"+n("DeleteStoreBlueprint","store_id",e.path.store_id)+"/blueprints/"+n("DeleteStoreBlueprint","key",e.path.key),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async validateJourney(e){return t.send({op:"ValidateJourney",method:"POST",path:"/journeys/validate",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getJourney(e){return t.send({op:"GetJourney",method:"GET",path:"/journeys/"+n("GetJourney","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateJourney(e){return t.send({op:"UpdateJourney",method:"PUT",path:"/journeys/"+n("UpdateJourney","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteJourney(e){return t.send({op:"DeleteJourney",method:"DELETE",path:"/journeys/"+n("DeleteJourney","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async copyJourney(e){return t.send({op:"CopyJourney",method:"POST",path:"/journeys/"+n("CopyJourney","key",e.path.key)+"/copy",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async publishJourney(e){return t.send({op:"PublishJourney",method:"POST",path:"/journeys/"+n("PublishJourney","key",e.path.key)+"/publish",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listJourneyRuns(e){return t.send({op:"ListJourneyRuns",method:"GET",path:"/journeys/"+n("ListJourneyRuns","key",e.path.key)+"/runs",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getJourneyStats(e){return t.send({op:"GetJourneyStats",method:"GET",path:"/journeys/"+n("GetJourneyStats","key",e.path.key)+"/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async stopJourney(e){return t.send({op:"StopJourney",method:"POST",path:"/journeys/"+n("StopJourney","key",e.path.key)+"/stop",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async testJourney(e){return t.send({op:"TestJourney",method:"POST",path:"/journeys/"+n("TestJourney","key",e.path.key)+"/test",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var y={};s(y,{client:()=>q});function q(t){return{async listMachines(e){return t.send({op:"ListMachines",method:"GET",path:"/machines",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createMachine(e){return t.send({op:"CreateMachine",method:"POST",path:"/machines",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMachineSizes(e){return t.send({op:"ListMachineSizes",method:"GET",path:"/machines/sizes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getMachineNetwork(e){return t.send({op:"GetMachineNetwork",method:"GET",path:"/machines/network",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectGitHub(e){return t.send({op:"ConnectGitHub",method:"POST",path:"/machines/github/connect",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listInstallations(e){return t.send({op:"ListInstallations",method:"GET",path:"/machines/github/installations",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async linkInstallation(e){return t.send({op:"LinkInstallation",method:"POST",path:"/machines/github/installations",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async shareInstallation(e){return t.send({op:"ShareInstallation",method:"POST",path:"/machines/github/installations/share",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async unlinkInstallation(e){return t.send({op:"UnlinkInstallation",method:"DELETE",path:"/machines/github/installations/"+n("UnlinkInstallation","installation",e.path.installation),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listRepositories(e){return t.send({op:"ListRepositories",method:"GET",path:"/machines/github/repositories",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getMachine(e){return t.send({op:"GetMachine",method:"GET",path:"/machines/"+n("GetMachine","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteMachine(e){return t.send({op:"DeleteMachine",method:"DELETE",path:"/machines/"+n("DeleteMachine","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateMachine(e){return t.send({op:"UpdateMachine",method:"PATCH",path:"/machines/"+n("UpdateMachine","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listBuilds(e){return t.send({op:"ListBuilds",method:"GET",path:"/machines/"+n("ListBuilds","name",e.path.name)+"/builds",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async deployMachine(e){return t.send({op:"DeployMachine",method:"POST",path:"/machines/"+n("DeployMachine","name",e.path.name)+"/builds",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMachinePreviews(e){return t.send({op:"ListMachinePreviews",method:"GET",path:"/machines/"+n("ListMachinePreviews","name",e.path.name)+"/previews",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putMachinePreview(e){return t.send({op:"PutMachinePreview",method:"PUT",path:"/machines/"+n("PutMachinePreview","name",e.path.name)+"/previews/"+n("PutMachinePreview","pull_request",e.path.pull_request),auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMachinePreview(e){return t.send({op:"DeleteMachinePreview",method:"DELETE",path:"/machines/"+n("DeleteMachinePreview","name",e.path.name)+"/previews/"+n("DeleteMachinePreview","pull_request",e.path.pull_request),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listMachineDomains(e){return t.send({op:"ListMachineDomains",method:"GET",path:"/machines/"+n("ListMachineDomains","name",e.path.name)+"/domains",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async addMachineDomain(e){return t.send({op:"AddMachineDomain",method:"POST",path:"/machines/"+n("AddMachineDomain","name",e.path.name)+"/domains",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMachineDomain(e){return t.send({op:"DeleteMachineDomain",method:"DELETE",path:"/machines/"+n("DeleteMachineDomain","name",e.path.name)+"/domains/"+n("DeleteMachineDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateMachineDomain(e){return t.send({op:"UpdateMachineDomain",method:"PATCH",path:"/machines/"+n("UpdateMachineDomain","name",e.path.name)+"/domains/"+n("UpdateMachineDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getBuild(e){return t.send({op:"GetBuild",method:"GET",path:"/machines/"+n("GetBuild","name",e.path.name)+"/builds/"+n("GetBuild","build",e.path.build),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getBuildLog(e){return t.send({op:"GetBuildLog",method:"GET",path:"/machines/"+n("GetBuildLog","name",e.path.name)+"/builds/"+n("GetBuildLog","build",e.path.build)+"/log",auth:[["SecretKeyAuth"]],answers:{200:"raw"},signal:e.signal})},async rollbackMachine(e){return t.send({op:"RollbackMachine",method:"POST",path:"/machines/"+n("RollbackMachine","name",e.path.name)+"/rollback",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listDatabases(e){return t.send({op:"ListDatabases",method:"GET",path:"/databases",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createDatabase(e){return t.send({op:"CreateDatabase",method:"POST",path:"/databases",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listDatabaseSizes(e){return t.send({op:"ListDatabaseSizes",method:"GET",path:"/databases/sizes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getDatabase(e){return t.send({op:"GetDatabase",method:"GET",path:"/databases/"+n("GetDatabase","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteDatabase(e){return t.send({op:"DeleteDatabase",method:"DELETE",path:"/databases/"+n("DeleteDatabase","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateDatabase(e){return t.send({op:"UpdateDatabase",method:"PATCH",path:"/databases/"+n("UpdateDatabase","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async undeleteDatabase(e){return t.send({op:"UndeleteDatabase",method:"POST",path:"/databases/"+n("UndeleteDatabase","name",e.path.name)+"/undelete",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async purgeDatabase(e){return t.send({op:"PurgeDatabase",method:"POST",path:"/databases/"+n("PurgeDatabase","name",e.path.name)+"/purge",auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async getDatabaseCredentials(e){return t.send({op:"GetDatabaseCredentials",method:"GET",path:"/databases/"+n("GetDatabaseCredentials","name",e.path.name)+"/credentials",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async changeDatabasePassword(e){return t.send({op:"ChangeDatabasePassword",method:"POST",path:"/databases/"+n("ChangeDatabasePassword","name",e.path.name)+"/password",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async readMachineLogs(e){return t.send({op:"ReadMachineLogs",method:"GET",path:"/machines/"+n("ReadMachineLogs","name",e.path.name)+"/logs",auth:[["SecretKeyAuth"]],answers:{200:"raw"},query:e.query,signal:e.signal})},async execInMachine(e){return t.send({op:"ExecInMachine",method:"POST",path:"/machines/"+n("ExecInMachine","name",e.path.name)+"/exec",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMachineExecs(e){return t.send({op:"ListMachineExecs",method:"GET",path:"/machines/"+n("ListMachineExecs","name",e.path.name)+"/execs",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getMachineMetrics(e){return t.send({op:"GetMachineMetrics",method:"GET",path:"/machines/"+n("GetMachineMetrics","name",e.path.name)+"/metrics",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getMachineContract(e){return t.send({op:"GetMachineContract",method:"GET",path:"/machines/"+n("GetMachineContract","name",e.path.name)+"/openapi",auth:[["SecretKeyAuth"]],answers:{200:"json",304:"empty"},headers:e.headers,signal:e.signal})},async restoreDatabase(e){return t.send({op:"RestoreDatabase",method:"POST",path:"/databases/"+n("RestoreDatabase","name",e.path.name)+"/restore",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getDatabaseSchema(e){return t.send({op:"GetDatabaseSchema",method:"GET",path:"/databases/"+n("GetDatabaseSchema","name",e.path.name)+"/schema",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getDatabaseMetrics(e){return t.send({op:"GetDatabaseMetrics",method:"GET",path:"/databases/"+n("GetDatabaseMetrics","name",e.path.name)+"/metrics",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async queryDatabase(e){return t.send({op:"QueryDatabase",method:"POST",path:"/databases/"+n("QueryDatabase","name",e.path.name)+"/sql",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listCrons(e){return t.send({op:"ListCrons",method:"GET",path:"/machines/"+n("ListCrons","name",e.path.name)+"/crons",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listCronRuns(e){return t.send({op:"ListCronRuns",method:"GET",path:"/machines/"+n("ListCronRuns","name",e.path.name)+"/crons/"+n("ListCronRuns","cron",e.path.cron)+"/runs",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async runCron(e){return t.send({op:"RunCron",method:"POST",path:"/machines/"+n("RunCron","name",e.path.name)+"/crons/"+n("RunCron","cron",e.path.cron)+"/run",auth:[["SecretKeyAuth"]],answers:{201:"json"},signal:e.signal})},async pauseCron(e){return t.send({op:"PauseCron",method:"POST",path:"/machines/"+n("PauseCron","name",e.path.name)+"/crons/"+n("PauseCron","cron",e.path.cron)+"/pause",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async resumeCron(e){return t.send({op:"ResumeCron",method:"POST",path:"/machines/"+n("ResumeCron","name",e.path.name)+"/crons/"+n("ResumeCron","cron",e.path.cron)+"/resume",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listTasks(e){return t.send({op:"ListTasks",method:"GET",path:"/machines/"+n("ListTasks","name",e.path.name)+"/tasks",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async enqueueTask(e){return t.send({op:"EnqueueTask",method:"POST",path:"/machines/"+n("EnqueueTask","name",e.path.name)+"/tasks",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getTask(e){return t.send({op:"GetTask",method:"GET",path:"/machines/"+n("GetTask","name",e.path.name)+"/tasks/"+n("GetTask","task",e.path.task),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelTask(e){return t.send({op:"CancelTask",method:"POST",path:"/machines/"+n("CancelTask","name",e.path.name)+"/tasks/"+n("CancelTask","task",e.path.task)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async retryTask(e){return t.send({op:"RetryTask",method:"POST",path:"/machines/"+n("RetryTask","name",e.path.name)+"/tasks/"+n("RetryTask","task",e.path.task)+"/retry",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listTaskTypes(e){return t.send({op:"ListTaskTypes",method:"GET",path:"/machines/"+n("ListTaskTypes","name",e.path.name)+"/task-types",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async makeTemplatedTestUsers(e){return t.send({op:"MakeTemplatedTestUsers",method:"POST",path:"/machines/"+n("MakeTemplatedTestUsers","name",e.path.name)+"/test-users",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async templateTestUser(e){return t.send({op:"TemplateTestUser",method:"POST",path:"/machines/"+n("TemplateTestUser","name",e.path.name)+"/test-users/"+n("TemplateTestUser","user",e.path.user)+"/templates/"+n("TemplateTestUser","template",e.path.template),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteTemplatedTestUser(e){return t.send({op:"DeleteTemplatedTestUser",method:"DELETE",path:"/machines/"+n("DeleteTemplatedTestUser","name",e.path.name)+"/test-users/"+n("DeleteTemplatedTestUser","user",e.path.user),auth:[["SecretKeyAuth"]],answers:{200:"json",204:"empty"},headers:e.headers,signal:e.signal})},async listSites(e){return t.send({op:"ListSites",method:"GET",path:"/sites",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createSite(e){return t.send({op:"CreateSite",method:"POST",path:"/sites",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSite(e){return t.send({op:"GetSite",method:"GET",path:"/sites/"+n("GetSite","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteSite(e){return t.send({op:"DeleteSite",method:"DELETE",path:"/sites/"+n("DeleteSite","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateSite(e){return t.send({op:"UpdateSite",method:"PATCH",path:"/sites/"+n("UpdateSite","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSiteReleases(e){return t.send({op:"ListSiteReleases",method:"GET",path:"/sites/"+n("ListSiteReleases","name",e.path.name)+"/releases",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createSiteRelease(e){return t.send({op:"CreateSiteRelease",method:"POST",path:"/sites/"+n("CreateSiteRelease","name",e.path.name)+"/releases",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async uploadSiteFile(e){return t.send({op:"UploadSiteFile",method:"PUT",path:"/sites/"+n("UploadSiteFile","name",e.path.name)+"/releases/"+n("UploadSiteFile","release",e.path.release)+"/files/"+n("UploadSiteFile","digest",e.path.digest),auth:[["SecretKeyAuth"]],answers:{204:"empty"},body:{kind:"raw",contentType:e.contentType??"application/octet-stream",value:e.body},signal:e.signal})},async finishSiteRelease(e){return t.send({op:"FinishSiteRelease",method:"POST",path:"/sites/"+n("FinishSiteRelease","name",e.path.name)+"/releases/"+n("FinishSiteRelease","release",e.path.release)+"/finish",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async rollbackSite(e){return t.send({op:"RollbackSite",method:"POST",path:"/sites/"+n("RollbackSite","name",e.path.name)+"/rollback",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSiteBuilds(e){return t.send({op:"ListSiteBuilds",method:"GET",path:"/sites/"+n("ListSiteBuilds","name",e.path.name)+"/builds",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deploySite(e){return t.send({op:"DeploySite",method:"POST",path:"/sites/"+n("DeploySite","name",e.path.name)+"/builds",auth:[["SecretKeyAuth"]],answers:{202:"json"},signal:e.signal})},async listSitePreviews(e){return t.send({op:"ListSitePreviews",method:"GET",path:"/sites/"+n("ListSitePreviews","name",e.path.name)+"/previews",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listSiteDomains(e){return t.send({op:"ListSiteDomains",method:"GET",path:"/sites/"+n("ListSiteDomains","name",e.path.name)+"/domains",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async addSiteDomain(e){return t.send({op:"AddSiteDomain",method:"POST",path:"/sites/"+n("AddSiteDomain","name",e.path.name)+"/domains",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteSiteDomain(e){return t.send({op:"DeleteSiteDomain",method:"DELETE",path:"/sites/"+n("DeleteSiteDomain","name",e.path.name)+"/domains/"+n("DeleteSiteDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateSiteDomain(e){return t.send({op:"UpdateSiteDomain",method:"PATCH",path:"/sites/"+n("UpdateSiteDomain","name",e.path.name)+"/domains/"+n("UpdateSiteDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSiteBuild(e){return t.send({op:"GetSiteBuild",method:"GET",path:"/sites/"+n("GetSiteBuild","name",e.path.name)+"/builds/"+n("GetSiteBuild","build",e.path.build),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async authorizeSitePreview(e){return t.send({op:"AuthorizeSitePreview",method:"POST",path:"/sites/"+n("AuthorizeSitePreview","name",e.path.name)+"/previews/"+n("AuthorizeSitePreview","pull_request",e.path.pull_request)+"/authorize",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async authorizeMachinePreview(e){return t.send({op:"AuthorizeMachinePreview",method:"POST",path:"/machines/"+n("AuthorizeMachinePreview","name",e.path.name)+"/previews/"+n("AuthorizeMachinePreview","pull_request",e.path.pull_request)+"/authorize",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async openMachinePreview(e){return t.send({op:"OpenMachinePreview",method:"POST",path:"/machines/"+n("OpenMachinePreview","name",e.path.name)+"/previews/"+n("OpenMachinePreview","pull_request",e.path.pull_request)+"/open",auth:[["SecretKeyAuth"]],answers:{202:"json"},signal:e.signal})},async moveMachine(e){return t.send({op:"MoveMachine",method:"POST",path:"/machines/"+n("MoveMachine","name",e.path.name)+"/move",auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async moveSite(e){return t.send({op:"MoveSite",method:"POST",path:"/sites/"+n("MoveSite","name",e.path.name)+"/move",auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async moveDatabase(e){return t.send({op:"MoveDatabase",method:"POST",path:"/databases/"+n("MoveDatabase","name",e.path.name)+"/move",auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async cancelSiteBuild(e){return t.send({op:"CancelSiteBuild",method:"POST",path:"/sites/"+n("CancelSiteBuild","name",e.path.name)+"/builds/"+n("CancelSiteBuild","build",e.path.build)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelBuild(e){return t.send({op:"CancelBuild",method:"POST",path:"/machines/"+n("CancelBuild","name",e.path.name)+"/builds/"+n("CancelBuild","build",e.path.build)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listSiteHooks(e){return t.send({op:"ListSiteHooks",method:"GET",path:"/sites/"+n("ListSiteHooks","name",e.path.name)+"/hooks",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createSiteHook(e){return t.send({op:"CreateSiteHook",method:"POST",path:"/sites/"+n("CreateSiteHook","name",e.path.name)+"/hooks",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteSiteHook(e){return t.send({op:"DeleteSiteHook",method:"DELETE",path:"/sites/"+n("DeleteSiteHook","name",e.path.name)+"/hooks/"+n("DeleteSiteHook","hook",e.path.hook),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listMachineHooks(e){return t.send({op:"ListMachineHooks",method:"GET",path:"/machines/"+n("ListMachineHooks","name",e.path.name)+"/hooks",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createMachineHook(e){return t.send({op:"CreateMachineHook",method:"POST",path:"/machines/"+n("CreateMachineHook","name",e.path.name)+"/hooks",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMachineHook(e){return t.send({op:"DeleteMachineHook",method:"DELETE",path:"/machines/"+n("DeleteMachineHook","name",e.path.name)+"/hooks/"+n("DeleteMachineHook","hook",e.path.hook),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async detectProject(e){return t.send({op:"DetectProject",method:"GET",path:"/machines/github/detect",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async createPreviewPass(e){return t.send({op:"CreatePreviewPass",method:"POST",path:"/sites/"+n("CreatePreviewPass","name",e.path.name)+"/previews/pass",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPreviewLinks(e){return t.send({op:"ListPreviewLinks",method:"GET",path:"/sites/"+n("ListPreviewLinks","name",e.path.name)+"/previews/links",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createPreviewLink(e){return t.send({op:"CreatePreviewLink",method:"POST",path:"/sites/"+n("CreatePreviewLink","name",e.path.name)+"/previews/links",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deletePreviewLink(e){return t.send({op:"DeletePreviewLink",method:"DELETE",path:"/sites/"+n("DeletePreviewLink","name",e.path.name)+"/previews/links/"+n("DeletePreviewLink","link",e.path.link),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listEnvironmentDomains(e){return t.send({op:"ListEnvironmentDomains",method:"GET",path:"/domains",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async addEnvironmentDomain(e){return t.send({op:"AddEnvironmentDomain",method:"POST",path:"/domains",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteEnvironmentDomain(e){return t.send({op:"DeleteEnvironmentDomain",method:"DELETE",path:"/domains/"+n("DeleteEnvironmentDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async setEnvironmentSignInDomain(e){return t.send({op:"SetEnvironmentSignInDomain",method:"PATCH",path:"/domains/"+n("SetEnvironmentSignInDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var m={};s(m,{client:()=>L});function L(t){return{async adminAccessLog(e){return t.send({op:"AdminAccessLog",method:"GET",path:"/messaging/admin/access-log",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminListConversations(e){return t.send({op:"AdminListConversations",method:"GET",path:"/messaging/admin/conversations",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminCreateConversation(e){return t.send({op:"AdminCreateConversation",method:"POST",path:"/messaging/admin/conversations",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetConversation(e){return t.send({op:"AdminGetConversation",method:"GET",path:"/messaging/admin/conversations/"+n("AdminGetConversation","conversation_id",e.path.conversation_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminDeleteConversation(e){return t.send({op:"AdminDeleteConversation",method:"DELETE",path:"/messaging/admin/conversations/"+n("AdminDeleteConversation","conversation_id",e.path.conversation_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async adminUpdateConversation(e){return t.send({op:"AdminUpdateConversation",method:"PATCH",path:"/messaging/admin/conversations/"+n("AdminUpdateConversation","conversation_id",e.path.conversation_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminAddMembers(e){return t.send({op:"AdminAddMembers",method:"POST",path:"/messaging/admin/conversations/"+n("AdminAddMembers","conversation_id",e.path.conversation_id)+"/members",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminRemoveMember(e){return t.send({op:"AdminRemoveMember",method:"DELETE",path:"/messaging/admin/conversations/"+n("AdminRemoveMember","conversation_id",e.path.conversation_id)+"/members/"+n("AdminRemoveMember","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async adminListMessages(e){return t.send({op:"AdminListMessages",method:"GET",path:"/messaging/admin/conversations/"+n("AdminListMessages","conversation_id",e.path.conversation_id)+"/messages",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async adminSendMessage(e){return t.send({op:"AdminSendMessage",method:"POST",path:"/messaging/admin/conversations/"+n("AdminSendMessage","conversation_id",e.path.conversation_id)+"/messages",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminDeleteMessage(e){return t.send({op:"AdminDeleteMessage",method:"DELETE",path:"/messaging/admin/conversations/"+n("AdminDeleteMessage","conversation_id",e.path.conversation_id)+"/messages/"+n("AdminDeleteMessage","message_id",e.path.message_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async adminFileUrl(e){return t.send({op:"AdminFileURL",method:"GET",path:"/messaging/admin/conversations/"+n("AdminFileURL","conversation_id",e.path.conversation_id)+"/messages/"+n("AdminFileURL","message_id",e.path.message_id)+"/attachments/"+n("AdminFileURL","attachment_id",e.path.attachment_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminPutProfile(e){return t.send({op:"AdminPutProfile",method:"PUT",path:"/messaging/admin/profiles/"+n("AdminPutProfile","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListReports(e){return t.send({op:"AdminListReports",method:"GET",path:"/messaging/admin/reports",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminGetReport(e){return t.send({op:"AdminGetReport",method:"GET",path:"/messaging/admin/reports/"+n("AdminGetReport","report_id",e.path.report_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminReportFileUrl(e){return t.send({op:"AdminReportFileURL",method:"GET",path:"/messaging/admin/reports/"+n("AdminReportFileURL","report_id",e.path.report_id)+"/attachments/"+n("AdminReportFileURL","attachment_id",e.path.attachment_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminResolveReport(e){return t.send({op:"AdminResolveReport",method:"POST",path:"/messaging/admin/reports/"+n("AdminResolveReport","report_id",e.path.report_id)+"/resolve",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listBlocks(e){return t.send({op:"ListBlocks",method:"GET",path:"/messaging/blocks",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async block(e){return t.send({op:"Block",method:"PUT",path:"/messaging/blocks/"+n("Block","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async unblock(e){return t.send({op:"Unblock",method:"DELETE",path:"/messaging/blocks/"+n("Unblock","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async listConversations(e){return t.send({op:"ListConversations",method:"GET",path:"/messaging/conversations",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async openDirectConversation(e){return t.send({op:"OpenDirectConversation",method:"POST",path:"/messaging/conversations/direct",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createGroup(e){return t.send({op:"CreateGroup",method:"POST",path:"/messaging/conversations/group",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getConversation(e){return t.send({op:"GetConversation",method:"GET",path:"/messaging/conversations/"+n("GetConversation","conversation_id",e.path.conversation_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async deleteConversation(e){return t.send({op:"DeleteConversation",method:"DELETE",path:"/messaging/conversations/"+n("DeleteConversation","conversation_id",e.path.conversation_id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async updateConversation(e){return t.send({op:"UpdateConversation",method:"PATCH",path:"/messaging/conversations/"+n("UpdateConversation","conversation_id",e.path.conversation_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async clearConversation(e){return t.send({op:"ClearConversation",method:"POST",path:"/messaging/conversations/"+n("ClearConversation","conversation_id",e.path.conversation_id)+"/clear",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async closeConversation(e){return t.send({op:"CloseConversation",method:"POST",path:"/messaging/conversations/"+n("CloseConversation","conversation_id",e.path.conversation_id)+"/close",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async joinGroup(e){return t.send({op:"JoinGroup",method:"POST",path:"/messaging/conversations/"+n("JoinGroup","conversation_id",e.path.conversation_id)+"/join",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async listMembers(e){return t.send({op:"ListMembers",method:"GET",path:"/messaging/conversations/"+n("ListMembers","conversation_id",e.path.conversation_id)+"/members",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async addMembers(e){return t.send({op:"AddMembers",method:"POST",path:"/messaging/conversations/"+n("AddMembers","conversation_id",e.path.conversation_id)+"/members",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeMember(e){return t.send({op:"RemoveMember",method:"DELETE",path:"/messaging/conversations/"+n("RemoveMember","conversation_id",e.path.conversation_id)+"/members/"+n("RemoveMember","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async updateMember(e){return t.send({op:"UpdateMember",method:"PATCH",path:"/messaging/conversations/"+n("UpdateMember","conversation_id",e.path.conversation_id)+"/members/"+n("UpdateMember","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMessages(e){return t.send({op:"ListMessages",method:"GET",path:"/messaging/conversations/"+n("ListMessages","conversation_id",e.path.conversation_id)+"/messages",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async sendMessage(e){return t.send({op:"SendMessage",method:"POST",path:"/messaging/conversations/"+n("SendMessage","conversation_id",e.path.conversation_id)+"/messages",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json",201:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getMessage(e){return t.send({op:"GetMessage",method:"GET",path:"/messaging/conversations/"+n("GetMessage","conversation_id",e.path.conversation_id)+"/messages/"+n("GetMessage","message_id",e.path.message_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async deleteMessage(e){return t.send({op:"DeleteMessage",method:"DELETE",path:"/messaging/conversations/"+n("DeleteMessage","conversation_id",e.path.conversation_id)+"/messages/"+n("DeleteMessage","message_id",e.path.message_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json",204:"empty"},query:e.query,signal:e.signal})},async editMessage(e){return t.send({op:"EditMessage",method:"PATCH",path:"/messaging/conversations/"+n("EditMessage","conversation_id",e.path.conversation_id)+"/messages/"+n("EditMessage","message_id",e.path.message_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async attachmentUrl(e){return t.send({op:"AttachmentURL",method:"GET",path:"/messaging/conversations/"+n("AttachmentURL","conversation_id",e.path.conversation_id)+"/messages/"+n("AttachmentURL","message_id",e.path.message_id)+"/attachments/"+n("AttachmentURL","attachment_id",e.path.attachment_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async react(e){return t.send({op:"React",method:"PUT",path:"/messaging/conversations/"+n("React","conversation_id",e.path.conversation_id)+"/messages/"+n("React","message_id",e.path.message_id)+"/reactions/"+n("React","emoji",e.path.emoji),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async unreact(e){return t.send({op:"Unreact",method:"DELETE",path:"/messaging/conversations/"+n("Unreact","conversation_id",e.path.conversation_id)+"/messages/"+n("Unreact","message_id",e.path.message_id)+"/reactions/"+n("Unreact","emoji",e.path.emoji),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async messageReaders(e){return t.send({op:"MessageReaders",method:"GET",path:"/messaging/conversations/"+n("MessageReaders","conversation_id",e.path.conversation_id)+"/messages/"+n("MessageReaders","message_id",e.path.message_id)+"/readers",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async listReplies(e){return t.send({op:"ListReplies",method:"GET",path:"/messaging/conversations/"+n("ListReplies","conversation_id",e.path.conversation_id)+"/messages/"+n("ListReplies","message_id",e.path.message_id)+"/replies",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async viewOnce(e){return t.send({op:"ViewOnce",method:"POST",path:"/messaging/conversations/"+n("ViewOnce","conversation_id",e.path.conversation_id)+"/messages/"+n("ViewOnce","message_id",e.path.message_id)+"/view",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async setConversationNotifications(e){return t.send({op:"SetConversationNotifications",method:"PUT",path:"/messaging/conversations/"+n("SetConversationNotifications","conversation_id",e.path.conversation_id)+"/notifications",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async reportScreenshot(e){return t.send({op:"ReportScreenshot",method:"POST",path:"/messaging/conversations/"+n("ReportScreenshot","conversation_id",e.path.conversation_id)+"/screenshot",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},signal:e.signal})},async typing(e){return t.send({op:"Typing",method:"POST",path:"/messaging/conversations/"+n("Typing","conversation_id",e.path.conversation_id)+"/typing",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createUpload(e){return t.send({op:"CreateUpload",method:"POST",path:"/messaging/conversations/"+n("CreateUpload","conversation_id",e.path.conversation_id)+"/uploads",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listOpenGroups(e){return t.send({op:"ListOpenGroups",method:"GET",path:"/messaging/groups/open",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getMyProfile(e){return t.send({op:"GetMyProfile",method:"GET",path:"/messaging/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async updateMyProfile(e){return t.send({op:"UpdateMyProfile",method:"PATCH",path:"/messaging/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async presence(e){return t.send({op:"Presence",method:"POST",path:"/messaging/me/presence",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e?.signal})},async getProfiles(e){return t.send({op:"GetProfiles",method:"GET",path:"/messaging/profiles",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async receipts(e){return t.send({op:"Receipts",method:"POST",path:"/messaging/receipts",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async report(e){return t.send({op:"Report",method:"POST",path:"/messaging/reports",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listScheduled(e){return t.send({op:"ListScheduled",method:"GET",path:"/messaging/scheduled",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async cancelScheduled(e){return t.send({op:"CancelScheduled",method:"DELETE",path:"/messaging/scheduled/"+n("CancelScheduled","scheduled_id",e.path.scheduled_id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async updateScheduled(e){return t.send({op:"UpdateScheduled",method:"PATCH",path:"/messaging/scheduled/"+n("UpdateScheduled","scheduled_id",e.path.scheduled_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async searchMessages(e){return t.send({op:"SearchMessages",method:"GET",path:"/messaging/search",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/messaging/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putSettings(e){return t.send({op:"PutSettings",method:"PUT",path:"/messaging/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rotateHookSecret(e){return t.send({op:"RotateHookSecret",method:"POST",path:"/messaging/settings/hook-secret",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async sync(e){return t.send({op:"Sync",method:"GET",path:"/messaging/sync",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listThreads(e){return t.send({op:"ListThreads",method:"GET",path:"/messaging/threads",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})}}}var h={};s(h,{client:()=>M});function M(t){return{async getDeliverability(e){return t.send({op:"GetDeliverability",method:"GET",path:"/notify/deliverability",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listDevices(e){return t.send({op:"ListDevices",method:"GET",path:"/notify/devices",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async registerDevice(e){return t.send({op:"RegisterDevice",method:"POST",path:"/notify/devices",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getDeviceStats(e){return t.send({op:"GetDeviceStats",method:"GET",path:"/notify/devices/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async deleteMyDevice(e){return t.send({op:"DeleteMyDevice",method:"DELETE",path:"/notify/devices/"+n("DeleteMyDevice","device_id",e.path.device_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async sendEmail(e){return t.send({op:"SendEmail",method:"POST",path:"/notify/email",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listInAppCampaigns(e){return t.send({op:"ListInAppCampaigns",method:"GET",path:"/notify/in-app/campaigns",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createInAppCampaign(e){return t.send({op:"CreateInAppCampaign",method:"POST",path:"/notify/in-app/campaigns",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getInAppCampaign(e){return t.send({op:"GetInAppCampaign",method:"GET",path:"/notify/in-app/campaigns/"+n("GetInAppCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putInAppCampaign(e){return t.send({op:"PutInAppCampaign",method:"PUT",path:"/notify/in-app/campaigns/"+n("PutInAppCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteInAppCampaign(e){return t.send({op:"DeleteInAppCampaign",method:"DELETE",path:"/notify/in-app/campaigns/"+n("DeleteInAppCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async getInAppCampaignStats(e){return t.send({op:"GetInAppCampaignStats",method:"GET",path:"/notify/in-app/campaigns/"+n("GetInAppCampaignStats","id",e.path.id)+"/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async showInAppMessage(e){return t.send({op:"ShowInAppMessage",method:"POST",path:"/notify/in-app/impressions",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async reportInAppEvent(e){return t.send({op:"ReportInAppEvent",method:"POST",path:"/notify/in-app/impressions/"+n("ReportInAppEvent","id",e.path.id)+"/events",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{204:"empty"},idempotent:!0,query:e.query,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMyInAppMessages(e){return t.send({op:"ListMyInAppMessages",method:"GET",path:"/notify/in-app/messages",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listInAppTemplates(e){return t.send({op:"ListInAppTemplates",method:"GET",path:"/notify/in-app/templates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listMyInbox(e){return t.send({op:"ListMyInbox",method:"GET",path:"/notify/inbox",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async sendInbox(e){return t.send({op:"SendInbox",method:"POST",path:"/notify/inbox",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listInboxMessages(e){return t.send({op:"ListInboxMessages",method:"GET",path:"/notify/inbox/messages",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async readMyInbox(e){return t.send({op:"ReadMyInbox",method:"POST",path:"/notify/inbox/read",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMyInboxMessage(e){return t.send({op:"DeleteMyInboxMessage",method:"DELETE",path:"/notify/inbox/"+n("DeleteMyInboxMessage","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listNotifyMessages(e){return t.send({op:"ListNotifyMessages",method:"GET",path:"/notify/messages",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getNotifyMessage(e){return t.send({op:"GetNotifyMessage",method:"GET",path:"/notify/messages/"+n("GetNotifyMessage","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelMessage(e){return t.send({op:"CancelMessage",method:"POST",path:"/notify/messages/"+n("CancelMessage","id",e.path.id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getMetricsSummary(e){return t.send({op:"GetMetricsSummary",method:"GET",path:"/notify/metrics/summary",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getMyPreferences(e){return t.send({op:"GetMyPreferences",method:"GET",path:"/notify/preferences",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async setMyPreferences(e){return t.send({op:"SetMyPreferences",method:"PUT",path:"/notify/preferences",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listNotifyProviders(e){return t.send({op:"ListNotifyProviders",method:"GET",path:"/notify/providers",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putNotifyProvider(e){return t.send({op:"PutNotifyProvider",method:"PUT",path:"/notify/providers/"+n("PutNotifyProvider","channel",e.path.channel)+"/"+n("PutNotifyProvider","provider",e.path.provider),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteNotifyProvider(e){return t.send({op:"DeleteNotifyProvider",method:"DELETE",path:"/notify/providers/"+n("DeleteNotifyProvider","channel",e.path.channel)+"/"+n("DeleteNotifyProvider","provider",e.path.provider),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async sendPush(e){return t.send({op:"SendPush",method:"POST",path:"/notify/push",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async recordPushReceipts(e){return t.send({op:"RecordPushReceipts",method:"POST",path:"/notify/receipts",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getNotifySettings(e){return t.send({op:"GetNotifySettings",method:"GET",path:"/notify/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putNotifySettings(e){return t.send({op:"PutNotifySettings",method:"PUT",path:"/notify/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sendSms(e){return t.send({op:"SendSMS",method:"POST",path:"/notify/sms",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listEmailTemplates(e){return t.send({op:"ListEmailTemplates",method:"GET",path:"/notify/templates/email",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getEmailTemplate(e){return t.send({op:"GetEmailTemplate",method:"GET",path:"/notify/templates/email/"+n("GetEmailTemplate","slug",e.path.slug)+"/"+n("GetEmailTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putEmailTemplate(e){return t.send({op:"PutEmailTemplate",method:"PUT",path:"/notify/templates/email/"+n("PutEmailTemplate","slug",e.path.slug)+"/"+n("PutEmailTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteEmailTemplate(e){return t.send({op:"DeleteEmailTemplate",method:"DELETE",path:"/notify/templates/email/"+n("DeleteEmailTemplate","slug",e.path.slug)+"/"+n("DeleteEmailTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listPushTemplates(e){return t.send({op:"ListPushTemplates",method:"GET",path:"/notify/templates/push",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getPushTemplate(e){return t.send({op:"GetPushTemplate",method:"GET",path:"/notify/templates/push/"+n("GetPushTemplate","slug",e.path.slug)+"/"+n("GetPushTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putPushTemplate(e){return t.send({op:"PutPushTemplate",method:"PUT",path:"/notify/templates/push/"+n("PutPushTemplate","slug",e.path.slug)+"/"+n("PutPushTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deletePushTemplate(e){return t.send({op:"DeletePushTemplate",method:"DELETE",path:"/notify/templates/push/"+n("DeletePushTemplate","slug",e.path.slug)+"/"+n("DeletePushTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listSmsTemplates(e){return t.send({op:"ListSMSTemplates",method:"GET",path:"/notify/templates/sms",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getSmsTemplate(e){return t.send({op:"GetSMSTemplate",method:"GET",path:"/notify/templates/sms/"+n("GetSMSTemplate","slug",e.path.slug)+"/"+n("GetSMSTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putSmsTemplate(e){return t.send({op:"PutSMSTemplate",method:"PUT",path:"/notify/templates/sms/"+n("PutSMSTemplate","slug",e.path.slug)+"/"+n("PutSMSTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteSmsTemplate(e){return t.send({op:"DeleteSMSTemplate",method:"DELETE",path:"/notify/templates/sms/"+n("DeleteSMSTemplate","slug",e.path.slug)+"/"+n("DeleteSMSTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listWhatsAppTemplates(e){return t.send({op:"ListWhatsAppTemplates",method:"GET",path:"/notify/templates/whatsapp",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getWhatsAppTemplate(e){return t.send({op:"GetWhatsAppTemplate",method:"GET",path:"/notify/templates/whatsapp/"+n("GetWhatsAppTemplate","slug",e.path.slug)+"/"+n("GetWhatsAppTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putWhatsAppTemplate(e){return t.send({op:"PutWhatsAppTemplate",method:"PUT",path:"/notify/templates/whatsapp/"+n("PutWhatsAppTemplate","slug",e.path.slug)+"/"+n("PutWhatsAppTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteWhatsAppTemplate(e){return t.send({op:"DeleteWhatsAppTemplate",method:"DELETE",path:"/notify/templates/whatsapp/"+n("DeleteWhatsAppTemplate","slug",e.path.slug)+"/"+n("DeleteWhatsAppTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listTestUserMessages(e){return t.send({op:"ListTestUserMessages",method:"GET",path:"/notify/test-users/"+n("ListTestUserMessages","user_id",e.path.user_id)+"/messages",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listTopics(e){return t.send({op:"ListTopics",method:"GET",path:"/notify/topics",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createTopic(e){return t.send({op:"CreateTopic",method:"POST",path:"/notify/topics",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteTopic(e){return t.send({op:"DeleteTopic",method:"DELETE",path:"/notify/topics/"+n("DeleteTopic","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async changeTopic(e){return t.send({op:"ChangeTopic",method:"PATCH",path:"/notify/topics/"+n("ChangeTopic","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addTopicSubscribers(e){return t.send({op:"AddTopicSubscribers",method:"POST",path:"/notify/topics/"+n("AddTopicSubscribers","name",e.path.name)+"/subscribers",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeTopicSubscriber(e){return t.send({op:"RemoveTopicSubscriber",method:"DELETE",path:"/notify/topics/"+n("RemoveTopicSubscriber","name",e.path.name)+"/subscribers/"+n("RemoveTopicSubscriber","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async followTopic(e){return t.send({op:"FollowTopic",method:"POST",path:"/notify/topics/"+n("FollowTopic","name",e.path.name)+"/subscription",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async unfollowTopic(e){return t.send({op:"UnfollowTopic",method:"DELETE",path:"/notify/topics/"+n("UnfollowTopic","name",e.path.name)+"/subscription",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listUserDevices(e){return t.send({op:"ListUserDevices",method:"GET",path:"/notify/users/"+n("ListUserDevices","user_id",e.path.user_id)+"/devices",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getUserPreferences(e){return t.send({op:"GetUserPreferences",method:"GET",path:"/notify/users/"+n("GetUserPreferences","user_id",e.path.user_id)+"/preferences",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setUserPreferences(e){return t.send({op:"SetUserPreferences",method:"PUT",path:"/notify/users/"+n("SetUserPreferences","user_id",e.path.user_id)+"/preferences",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async startVerification(e){return t.send({op:"StartVerification",method:"POST",path:"/notify/verifications",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async checkVerification(e){return t.send({op:"CheckVerification",method:"POST",path:"/notify/verifications/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveSendGridEvents(e){return t.send({op:"ReceiveSendGridEvents",method:"POST",path:"/notify/webhooks/email/sendgrid",auth:[],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveTwilioStatus(e){return t.send({op:"ReceiveTwilioStatus",method:"POST",path:"/notify/webhooks/sms/twilio",auth:[],answers:{204:"empty"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async receiveTwilioText(e){return t.send({op:"ReceiveTwilioText",method:"POST",path:"/notify/webhooks/sms/twilio/inbound",auth:[],answers:{204:"empty"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async receiveVonageReceiptQuery(e){return t.send({op:"ReceiveVonageReceiptQuery",method:"GET",path:"/notify/webhooks/sms/vonage",auth:[],answers:{204:"empty"},query:e?.query,signal:e?.signal})},async receiveVonageReceipt(e){return t.send({op:"ReceiveVonageReceipt",method:"POST",path:"/notify/webhooks/sms/vonage",auth:[],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async subscribeMetaWebhook(e){return t.send({op:"SubscribeMetaWebhook",method:"GET",path:"/notify/webhooks/whatsapp/meta",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async receiveMetaNotification(e){return t.send({op:"ReceiveMetaNotification",method:"POST",path:"/notify/webhooks/whatsapp/meta",auth:[],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getWebPushStatus(e){return t.send({op:"GetWebPushStatus",method:"GET",path:"/notify/webpush",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getWebPushKey(e){return t.send({op:"GetWebPushKey",method:"GET",path:"/notify/webpush/key",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async sendWhatsApp(e){return t.send({op:"SendWhatsApp",method:"POST",path:"/notify/whatsapp",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listWhatsAppInbound(e){return t.send({op:"ListWhatsAppInbound",method:"GET",path:"/notify/whatsapp/inbound",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})}}}var b={};s(b,{client:()=>G});function G(t){return{async auditCashFlow(e){return t.send({op:"AuditCashFlow",method:"GET",path:"/payments/audit/cashflow",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async auditDrift(e){return t.send({op:"AuditDrift",method:"GET",path:"/payments/audit/drift",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async auditLedger(e){return t.send({op:"AuditLedger",method:"GET",path:"/payments/audit/ledger",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async exportAuditLedgerCsv(e){return t.send({op:"ExportAuditLedgerCSV",method:"GET",path:"/payments/audit/ledger/export",auth:[["SecretKeyAuth"]],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async providerCallbackGet(e){return t.send({op:"ProviderCallbackGet",method:"GET",path:"/payments/callback/"+n("ProviderCallbackGet","provider",e.path.provider)+"/"+n("ProviderCallbackGet","attempt_id",e.path.attempt_id),auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async providerCallbackPost(e){return t.send({op:"ProviderCallbackPost",method:"POST",path:"/payments/callback/"+n("ProviderCallbackPost","provider",e.path.provider)+"/"+n("ProviderCallbackPost","attempt_id",e.path.attempt_id),auth:[],answers:{200:"raw"},signal:e.signal})},async getCapabilities(e){return t.send({op:"GetCapabilities",method:"GET",path:"/payments/capabilities",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listChannels(e){return t.send({op:"ListChannels",method:"GET",path:"/payments/channels",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectChannel(e){return t.send({op:"ConnectChannel",method:"POST",path:"/payments/channels",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createChannelGrant(e){return t.send({op:"CreateChannelGrant",method:"POST",path:"/payments/channels/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChannel(e){return t.send({op:"GetChannel",method:"GET",path:"/payments/channels/"+n("GetChannel","channel_key",e.path.channel_key),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteChannel(e){return t.send({op:"DeleteChannel",method:"DELETE",path:"/payments/channels/"+n("DeleteChannel","channel_key",e.path.channel_key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async checkChannel(e){return t.send({op:"CheckChannel",method:"POST",path:"/payments/channels/"+n("CheckChannel","channel_key",e.path.channel_key)+"/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setDefaultChannel(e){return t.send({op:"SetDefaultChannel",method:"POST",path:"/payments/channels/"+n("SetDefaultChannel","channel_key",e.path.channel_key)+"/default",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async connectChannelPage(e){return t.send({op:"ConnectChannelPage",method:"GET",path:"/payments/connect",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async connectChannelSubmit(e){return t.send({op:"ConnectChannelSubmit",method:"POST",path:"/payments/connect",auth:[],answers:{200:"json"},signal:e?.signal})},async listDisputes(e){return t.send({op:"ListDisputes",method:"GET",path:"/payments/disputes",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async lookupInstallments(e){return t.send({op:"LookupInstallments",method:"POST",path:"/payments/installments",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listIntents(e){return t.send({op:"ListIntents",method:"GET",path:"/payments/intents",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createIntent(e){return t.send({op:"CreateIntent",method:"POST",path:"/payments/intents",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getIntent(e){return t.send({op:"GetIntent",method:"GET",path:"/payments/intents/"+n("GetIntent","intent_id",e.path.intent_id),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listIntentAttempts(e){return t.send({op:"ListIntentAttempts",method:"GET",path:"/payments/intents/"+n("ListIntentAttempts","intent_id",e.path.intent_id)+"/attempts",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelIntent(e){return t.send({op:"CancelIntent",method:"POST",path:"/payments/intents/"+n("CancelIntent","intent_id",e.path.intent_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async settlePendingRefund(e){return t.send({op:"SettlePendingRefund",method:"POST",path:"/payments/intents/"+n("SettlePendingRefund","intent_id",e.path.intent_id)+"/pending-refund",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async captureIntent(e){return t.send({op:"CaptureIntent",method:"POST",path:"/payments/intents/"+n("CaptureIntent","intent_id",e.path.intent_id)+"/capture",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async confirmIntent(e){return t.send({op:"ConfirmIntent",method:"POST",path:"/payments/intents/"+n("ConfirmIntent","intent_id",e.path.intent_id)+"/confirm",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async submitIntentOtp(e){return t.send({op:"SubmitIntentOTP",method:"POST",path:"/payments/intents/"+n("SubmitIntentOTP","intent_id",e.path.intent_id)+"/otp",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMyMethods(e){return t.send({op:"ListMyMethods",method:"GET",path:"/payments/me/methods",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async addMyMethod(e){return t.send({op:"AddMyMethod",method:"POST",path:"/payments/me/methods",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async deleteMyMethod(e){return t.send({op:"DeleteMyMethod",method:"DELETE",path:"/payments/me/methods/"+n("DeleteMyMethod","method_id",e.path.method_id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async createMyPortal(e){return t.send({op:"CreateMyPortal",method:"POST",path:"/payments/me/portal",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getMyProfile(e){return t.send({op:"GetMyProfile",method:"GET",path:"/payments/me/profile",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async updateMyProfile(e){return t.send({op:"UpdateMyProfile",method:"PUT",path:"/payments/me/profile",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMySubscriptions(e){return t.send({op:"ListMySubscriptions",method:"GET",path:"/payments/me/subscriptions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async cancelMySubscription(e){return t.send({op:"CancelMySubscription",method:"POST",path:"/payments/me/subscriptions/"+n("CancelMySubscription","subscription_id",e.path.subscription_id)+"/cancel",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async listMyWallets(e){return t.send({op:"ListMyWallets",method:"GET",path:"/payments/me/wallets",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async createMySpendToken(e){return t.send({op:"CreateMySpendToken",method:"POST",path:"/payments/me/wallets/spend-tokens",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async topUpMyWallet(e){return t.send({op:"TopUpMyWallet",method:"POST",path:"/payments/me/wallets/top-up",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listRefunds(e){return t.send({op:"ListRefunds",method:"GET",path:"/payments/refunds",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createRefund(e){return t.send({op:"CreateRefund",method:"POST",path:"/payments/refunds",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listRoutingRules(e){return t.send({op:"ListRoutingRules",method:"GET",path:"/payments/routing-rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async replaceRoutingRules(e){return t.send({op:"ReplaceRoutingRules",method:"PUT",path:"/payments/routing-rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSellerAccount(e){return t.send({op:"GetSellerAccount",method:"GET",path:"/payments/seller-accounts/"+n("GetSellerAccount","seller_ref",e.path.seller_ref),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listSellerLedger(e){return t.send({op:"ListSellerLedger",method:"GET",path:"/payments/seller-accounts/"+n("ListSellerLedger","seller_ref",e.path.seller_ref)+"/ledger",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/payments/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async updateSettings(e){return t.send({op:"UpdateSettings",method:"PUT",path:"/payments/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPaymentSplits(e){return t.send({op:"ListPaymentSplits",method:"GET",path:"/payments/splits",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async updatePaymentSplit(e){return t.send({op:"UpdatePaymentSplit",method:"PUT",path:"/payments/splits/"+n("UpdatePaymentSplit","split_id",e.path.split_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async approvePaymentSplit(e){return t.send({op:"ApprovePaymentSplit",method:"POST",path:"/payments/splits/"+n("ApprovePaymentSplit","split_id",e.path.split_id)+"/approve",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async disapprovePaymentSplit(e){return t.send({op:"DisapprovePaymentSplit",method:"POST",path:"/payments/splits/"+n("DisapprovePaymentSplit","split_id",e.path.split_id)+"/disapprove",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async refundPaymentSplit(e){return t.send({op:"RefundPaymentSplit",method:"POST",path:"/payments/splits/"+n("RefundPaymentSplit","split_id",e.path.split_id)+"/refund",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stripeAppCallback(e){return t.send({op:"StripeAppCallback",method:"GET",path:"/payments/stripe/app/callback",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async createStripeAppGrant(e){return t.send({op:"CreateStripeAppGrant",method:"POST",path:"/payments/stripe/app/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async stripeAppInstallPage(e){return t.send({op:"StripeAppInstallPage",method:"GET",path:"/payments/stripe/app/install",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async stripeAppInstallStart(e){return t.send({op:"StripeAppInstallStart",method:"POST",path:"/payments/stripe/app/install",auth:[],answers:{303:"redirect"},signal:e?.signal})},async listSubMerchants(e){return t.send({op:"ListSubMerchants",method:"GET",path:"/payments/sub-merchants",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async upsertSubMerchant(e){return t.send({op:"UpsertSubMerchant",method:"POST",path:"/payments/sub-merchants",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSubMerchant(e){return t.send({op:"GetSubMerchant",method:"GET",path:"/payments/sub-merchants/"+n("GetSubMerchant","sub_merchant_id",e.path.sub_merchant_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createSubMerchantOnboardingLink(e){return t.send({op:"CreateSubMerchantOnboardingLink",method:"POST",path:"/payments/sub-merchants/"+n("CreateSubMerchantOnboardingLink","sub_merchant_id",e.path.sub_merchant_id)+"/onboarding-link",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async syncSubMerchant(e){return t.send({op:"SyncSubMerchant",method:"POST",path:"/payments/sub-merchants/"+n("SyncSubMerchant","sub_merchant_id",e.path.sub_merchant_id)+"/sync",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listSubscriptions(e){return t.send({op:"ListSubscriptions",method:"GET",path:"/payments/subscriptions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createSubscription(e){return t.send({op:"CreateSubscription",method:"POST",path:"/payments/subscriptions",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async cancelSubscription(e){return t.send({op:"CancelSubscription",method:"POST",path:"/payments/subscriptions/"+n("CancelSubscription","subscription_id",e.path.subscription_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async extendSubscription(e){return t.send({op:"ExtendSubscription",method:"POST",path:"/payments/subscriptions/"+n("ExtendSubscription","subscription_id",e.path.subscription_id)+"/extend",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listWallets(e){return t.send({op:"ListWallets",method:"GET",path:"/payments/wallets",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async upsertWallet(e){return t.send({op:"UpsertWallet",method:"POST",path:"/payments/wallets",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async chargeWallet(e){return t.send({op:"ChargeWallet",method:"POST",path:"/payments/wallets/charge",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async creditWallet(e){return t.send({op:"CreditWallet",method:"POST",path:"/payments/wallets/credit",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCustomerWallets(e){return t.send({op:"GetCustomerWallets",method:"GET",path:"/payments/wallets/customers/"+n("GetCustomerWallets","customer_id",e.path.customer_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async freezeWallet(e){return t.send({op:"FreezeWallet",method:"PUT",path:"/payments/wallets/customers/"+n("FreezeWallet","customer_id",e.path.customer_id)+"/"+n("FreezeWallet","wallet_key",e.path.wallet_key)+"/freeze",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createWalletHold(e){return t.send({op:"CreateWalletHold",method:"POST",path:"/payments/wallets/holds",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async commitWalletHold(e){return t.send({op:"CommitWalletHold",method:"POST",path:"/payments/wallets/holds/"+n("CommitWalletHold","hold_id",e.path.hold_id)+"/commit",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async releaseWalletHold(e){return t.send({op:"ReleaseWalletHold",method:"POST",path:"/payments/wallets/holds/"+n("ReleaseWalletHold","hold_id",e.path.hold_id)+"/release",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async voidPendingWalletCredits(e){return t.send({op:"VoidPendingWalletCredits",method:"POST",path:"/payments/wallets/pending/void",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async transferWallet(e){return t.send({op:"TransferWallet",method:"POST",path:"/payments/wallets/transfer",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async iyzicoWebhook(e){return t.send({op:"IyzicoWebhook",method:"POST",path:"/payments/webhooks/iyzico",auth:[],answers:{200:"empty"},signal:e?.signal})},async stripeWebhook(e){return t.send({op:"StripeWebhook",method:"POST",path:"/payments/webhooks/stripe",auth:[],answers:{200:"empty"},signal:e?.signal})},async stripeAppWebhook(e){return t.send({op:"StripeAppWebhook",method:"POST",path:"/payments/webhooks/stripe-app",auth:[],answers:{200:"empty"},signal:e?.signal})},async stripeConnectWebhook(e){return t.send({op:"StripeConnectWebhook",method:"POST",path:"/payments/webhooks/stripe/connect",auth:[],answers:{200:"empty"},signal:e?.signal})}}}var _={};s(_,{client:()=>O});function O(t){return{async broadcast(e){return t.send({op:"Broadcast",method:"POST",path:"/realtime/broadcast",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChannels(e){return t.send({op:"GetChannels",method:"GET",path:"/realtime/channels",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putChannels(e){return t.send({op:"PutChannels",method:"PUT",path:"/realtime/channels",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getLimits(e){return t.send({op:"GetLimits",method:"GET",path:"/realtime/limits",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putLimits(e){return t.send({op:"PutLimits",method:"PUT",path:"/realtime/limits",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revalidate(e){return t.send({op:"Revalidate",method:"POST",path:"/realtime/revalidate",auth:[["SecretKeyAuth"]],answers:{202:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async writeState(e){return t.send({op:"WriteState",method:"POST",path:"/realtime/state",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getStats(e){return t.send({op:"GetStats",method:"GET",path:"/realtime/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})}}}var P={};s(P,{client:()=>D});function D(t){return{async listSecretAudit(e){return t.send({op:"ListSecretAudit",method:"GET",path:"/secrets/audit",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listFieldKeys(e){return t.send({op:"ListFieldKeys",method:"GET",path:"/secrets/fields",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getFieldKeys(e){return t.send({op:"GetFieldKeys",method:"GET",path:"/secrets/fields/keys",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async openFields(e){return t.send({op:"OpenFields",method:"POST",path:"/secrets/fields/open",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sealPlaceholder(e){return t.send({op:"SealPlaceholder",method:"POST",path:"/secrets/fields/placeholder",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rotateFieldKeys(e){return t.send({op:"RotateFieldKeys",method:"POST",path:"/secrets/fields/rotate",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async listTransitKeys(e){return t.send({op:"ListTransitKeys",method:"GET",path:"/secrets/transit",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getTransitKeys(e){return t.send({op:"GetTransitKeys",method:"GET",path:"/secrets/transit/keys",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getTransitPublicKeys(e){return t.send({op:"GetTransitPublicKeys",method:"GET",path:"/secrets/transit/public",auth:[["ApiKeyAuth"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async rotateTransitKeys(e){return t.send({op:"RotateTransitKeys",method:"POST",path:"/secrets/transit/rotate",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async retireTransitKey(e){return t.send({op:"RetireTransitKey",method:"POST",path:"/secrets/transit/"+n("RetireTransitKey","kid",e.path.kid)+"/retire",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async listSecrets(e){return t.send({op:"ListSecrets",method:"GET",path:"/secrets/"+n("ListSecrets","environment",e.path.environment),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getEnvironmentValues(e){return t.send({op:"GetEnvironmentValues",method:"GET",path:"/secrets/"+n("GetEnvironmentValues","environment",e.path.environment)+"/values",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getSecret(e){return t.send({op:"GetSecret",method:"GET",path:"/secrets/"+n("GetSecret","environment",e.path.environment)+"/"+n("GetSecret","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putSecret(e){return t.send({op:"PutSecret",method:"PUT",path:"/secrets/"+n("PutSecret","environment",e.path.environment)+"/"+n("PutSecret","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteSecret(e){return t.send({op:"DeleteSecret",method:"DELETE",path:"/secrets/"+n("DeleteSecret","environment",e.path.environment)+"/"+n("DeleteSecret","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async rollbackSecret(e){return t.send({op:"RollbackSecret",method:"POST",path:"/secrets/"+n("RollbackSecret","environment",e.path.environment)+"/"+n("RollbackSecret","name",e.path.name)+"/rollback",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSecretVersions(e){return t.send({op:"ListSecretVersions",method:"GET",path:"/secrets/"+n("ListSecretVersions","environment",e.path.environment)+"/"+n("ListSecretVersions","name",e.path.name)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})}}}var R={};s(R,{client:()=>I});function I(t){return{async listBuckets(e){return t.send({op:"ListBuckets",method:"GET",path:"/storage/buckets",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getBucket(e){return t.send({op:"GetBucket",method:"GET",path:"/storage/buckets/"+n("GetBucket","bucket",e.path.bucket),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putBucket(e){return t.send({op:"PutBucket",method:"PUT",path:"/storage/buckets/"+n("PutBucket","bucket",e.path.bucket),auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteBucket(e){return t.send({op:"DeleteBucket",method:"DELETE",path:"/storage/buckets/"+n("DeleteBucket","bucket",e.path.bucket),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async copyObject(e){return t.send({op:"CopyObject",method:"POST",path:"/storage/buckets/"+n("CopyObject","bucket",e.path.bucket)+"/copy",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async moveObject(e){return t.send({op:"MoveObject",method:"POST",path:"/storage/buckets/"+n("MoveObject","bucket",e.path.bucket)+"/move",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listObjects(e){return t.send({op:"ListObjects",method:"GET",path:"/storage/buckets/"+n("ListObjects","bucket",e.path.bucket)+"/objects",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getObject(e){return t.send({op:"GetObject",method:"GET",path:"/storage/buckets/"+n("GetObject","bucket",e.path.bucket)+"/objects/"+n("GetObject","path",e.path.path),auth:[["SecretKeyAuth"]],answers:{200:"raw",206:"raw",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async putObject(e){return t.send({op:"PutObject",method:"PUT",path:"/storage/buckets/"+n("PutObject","bucket",e.path.bucket)+"/objects/"+n("PutObject","path",e.path.path),auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},query:e.query,headers:e.headers,body:{kind:"raw",contentType:e.contentType??"application/octet-stream",value:e.body},signal:e.signal})},async deleteObject(e){return t.send({op:"DeleteObject",method:"DELETE",path:"/storage/buckets/"+n("DeleteObject","bucket",e.path.bucket)+"/objects/"+n("DeleteObject","path",e.path.path),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async headObject(e){return t.send({op:"HeadObject",method:"HEAD",path:"/storage/buckets/"+n("HeadObject","bucket",e.path.bucket)+"/objects/"+n("HeadObject","path",e.path.path),auth:[["SecretKeyAuth"]],answers:{200:"empty",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async createSignedUrl(e){return t.send({op:"CreateSignedUrl",method:"POST",path:"/storage/buckets/"+n("CreateSignedUrl","bucket",e.path.bucket)+"/signed-urls",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createUploadUrl(e){return t.send({op:"CreateUploadUrl",method:"POST",path:"/storage/buckets/"+n("CreateUploadUrl","bucket",e.path.bucket)+"/upload-urls",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPublicObject(e){return t.send({op:"GetPublicObject",method:"GET",path:"/storage/public/"+n("GetPublicObject","bucket",e.path.bucket)+"/"+n("GetPublicObject","path",e.path.path),auth:[],answers:{200:"raw",206:"raw",302:"redirect",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async headPublicObject(e){return t.send({op:"HeadPublicObject",method:"HEAD",path:"/storage/public/"+n("HeadPublicObject","bucket",e.path.bucket)+"/"+n("HeadPublicObject","path",e.path.path),auth:[],answers:{200:"empty",302:"redirect",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async getSignedObject(e){return t.send({op:"GetSignedObject",method:"GET",path:"/storage/signed/"+n("GetSignedObject","bucket",e.path.bucket)+"/"+n("GetSignedObject","path",e.path.path),auth:[],answers:{200:"raw",206:"raw",302:"redirect",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async putSignedObject(e){return t.send({op:"PutSignedObject",method:"PUT",path:"/storage/signed/"+n("PutSignedObject","bucket",e.path.bucket)+"/"+n("PutSignedObject","path",e.path.path),auth:[],answers:{200:"json",201:"json"},query:e.query,headers:e.headers,body:{kind:"raw",contentType:e.contentType??"application/octet-stream",value:e.body},signal:e.signal})},async headSignedObject(e){return t.send({op:"HeadSignedObject",method:"HEAD",path:"/storage/signed/"+n("HeadSignedObject","bucket",e.path.bucket)+"/"+n("HeadSignedObject","path",e.path.path),auth:[],answers:{200:"empty",302:"redirect",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async getStorageStats(e){return t.send({op:"GetStorageStats",method:"GET",path:"/storage/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async upload(e){return t.send({op:"Upload",method:"POST",path:"/storage/upload/"+n("Upload","machine",e.path.machine)+"/"+n("Upload","route",e.path.route),auth:[["ApiKeyAuth","userJWT"],["ApiKeyAuth"]],answers:{},body:{kind:"raw",contentType:e.contentType??"multipart/form-data",value:e.body},signal:e.signal})}}}var S={};s(S,{client:()=>W});function W(t){return{async listActions(e){return t.send({op:"ListActions",method:"GET",path:"/stores/actions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getAction(e){return t.send({op:"GetAction",method:"GET",path:"/stores/actions/"+n("GetAction","action_id",e.path.action_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async confirmAction(e){return t.send({op:"ConfirmAction",method:"POST",path:"/stores/actions/"+n("ConfirmAction","action_id",e.path.action_id)+"/confirm",auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async declineAction(e){return t.send({op:"DeclineAction",method:"POST",path:"/stores/actions/"+n("DeclineAction","action_id",e.path.action_id)+"/decline",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async getAppleAccount(e){return t.send({op:"GetAppleAccount",method:"GET",path:"/stores/apple",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async disconnectApple(e){return t.send({op:"DisconnectApple",method:"DELETE",path:"/stores/apple",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async checkAppleAccount(e){return t.send({op:"CheckAppleAccount",method:"POST",path:"/stores/apple/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async createAppleGrant(e){return t.send({op:"CreateAppleGrant",method:"POST",path:"/stores/apple/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getSandboxReadiness(e){return t.send({op:"GetSandboxReadiness",method:"GET",path:"/stores/apple/readiness",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listSandboxTesters(e){return t.send({op:"ListSandboxTesters",method:"GET",path:"/stores/apple/sandbox-testers",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async clearSandboxPurchaseHistory(e){return t.send({op:"ClearSandboxPurchaseHistory",method:"POST",path:"/stores/apple/sandbox-testers/clear-purchase-history",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateSandboxTester(e){return t.send({op:"UpdateSandboxTester",method:"PATCH",path:"/stores/apple/sandbox-testers/"+n("UpdateSandboxTester","tester_id",e.path.tester_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listApps(e){return t.send({op:"ListApps",method:"GET",path:"/stores/apps",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listFeedback(e){return t.send({op:"ListFeedback",method:"GET",path:"/stores/apps/"+n("ListFeedback","app_id",e.path.app_id)+"/feedback",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getFeedback(e){return t.send({op:"GetFeedback",method:"GET",path:"/stores/apps/"+n("GetFeedback","app_id",e.path.app_id)+"/feedback/"+n("GetFeedback","kind",e.path.kind)+"/"+n("GetFeedback","feedback_id",e.path.feedback_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listGroups(e){return t.send({op:"ListGroups",method:"GET",path:"/stores/apps/"+n("ListGroups","app_id",e.path.app_id)+"/groups",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createGroup(e){return t.send({op:"CreateGroup",method:"POST",path:"/stores/apps/"+n("CreateGroup","app_id",e.path.app_id)+"/groups",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async linkApp(e){return t.send({op:"LinkApp",method:"POST",path:"/stores/apps/"+n("LinkApp","app_id",e.path.app_id)+"/link",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getListing(e){return t.send({op:"GetListing",method:"GET",path:"/stores/apps/"+n("GetListing","app_id",e.path.app_id)+"/listing",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setListing(e){return t.send({op:"SetListing",method:"PUT",path:"/stores/apps/"+n("SetListing","app_id",e.path.app_id)+"/listing",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async planListing(e){return t.send({op:"PlanListing",method:"POST",path:"/stores/apps/"+n("PlanListing","app_id",e.path.app_id)+"/listing/plan",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async createPackage(e){return t.send({op:"CreatePackage",method:"POST",path:"/stores/apps/"+n("CreatePackage","app_id",e.path.app_id)+"/packages",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async uploadScreenshot(e){return t.send({op:"UploadScreenshot",method:"PUT",path:"/stores/apps/"+n("UploadScreenshot","app_id",e.path.app_id)+"/screenshots",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,query:e.query,headers:e.headers,body:{kind:"raw",contentType:e.contentType??"image/png",value:e.body},signal:e.signal})},async getReviewInfo(e){return t.send({op:"GetReviewInfo",method:"GET",path:"/stores/apps/"+n("GetReviewInfo","app_id",e.path.app_id)+"/testflight/review-info",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async setReviewInfo(e){return t.send({op:"SetReviewInfo",method:"PUT",path:"/stores/apps/"+n("SetReviewInfo","app_id",e.path.app_id)+"/testflight/review-info",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getUploadKey(e){return t.send({op:"GetUploadKey",method:"GET",path:"/stores/apps/"+n("GetUploadKey","app_id",e.path.app_id)+"/upload-key",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getAppStoreVersion(e){return t.send({op:"GetAppStoreVersion",method:"GET",path:"/stores/apps/"+n("GetAppStoreVersion","app_id",e.path.app_id)+"/version",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async prepareAppStoreVersion(e){return t.send({op:"PrepareAppStoreVersion",method:"PUT",path:"/stores/apps/"+n("PrepareAppStoreVersion","app_id",e.path.app_id)+"/version",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async planPhasedRelease(e){return t.send({op:"PlanPhasedRelease",method:"POST",path:"/stores/apps/"+n("PlanPhasedRelease","app_id",e.path.app_id)+"/version/phased-release",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async planReleaseVersion(e){return t.send({op:"PlanReleaseVersion",method:"POST",path:"/stores/apps/"+n("PlanReleaseVersion","app_id",e.path.app_id)+"/version/release",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async planSubmitReview(e){return t.send({op:"PlanSubmitReview",method:"POST",path:"/stores/apps/"+n("PlanSubmitReview","app_id",e.path.app_id)+"/version/submit",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async planWithdrawReview(e){return t.send({op:"PlanWithdrawReview",method:"POST",path:"/stores/apps/"+n("PlanWithdrawReview","app_id",e.path.app_id)+"/version/withdraw",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async getAppVitals(e){return t.send({op:"GetAppVitals",method:"GET",path:"/stores/apps/"+n("GetAppVitals","app_id",e.path.app_id)+"/vitals",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getAppWebhook(e){return t.send({op:"GetAppWebhook",method:"GET",path:"/stores/apps/"+n("GetAppWebhook","app_id",e.path.app_id)+"/webhook",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async makeAppWebhook(e){return t.send({op:"MakeAppWebhook",method:"POST",path:"/stores/apps/"+n("MakeAppWebhook","app_id",e.path.app_id)+"/webhook",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async pingAppWebhook(e){return t.send({op:"PingAppWebhook",method:"POST",path:"/stores/apps/"+n("PingAppWebhook","app_id",e.path.app_id)+"/webhook/ping",auth:[["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async downloadSignedBundle(e){return t.send({op:"DownloadSignedBundle",method:"GET",path:"/stores/bundles",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async getConnectPage(e){return t.send({op:"GetConnectPage",method:"GET",path:"/stores/connect",auth:[],answers:{200:"raw"},signal:e?.signal})},async connectAppleKey(e){return t.send({op:"ConnectAppleKey",method:"POST",path:"/stores/connect",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getGoogleAccount(e){return t.send({op:"GetGoogleAccount",method:"GET",path:"/stores/google",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectGoogle(e){return t.send({op:"ConnectGoogle",method:"POST",path:"/stores/google",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async disconnectGoogle(e){return t.send({op:"DisconnectGoogle",method:"DELETE",path:"/stores/google",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async checkGoogleAccount(e){return t.send({op:"CheckGoogleAccount",method:"POST",path:"/stores/google/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async deleteGroup(e){return t.send({op:"DeleteGroup",method:"DELETE",path:"/stores/groups/"+n("DeleteGroup","group_id",e.path.group_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async renameGroup(e){return t.send({op:"RenameGroup",method:"PATCH",path:"/stores/groups/"+n("RenameGroup","group_id",e.path.group_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addGroupBuild(e){return t.send({op:"AddGroupBuild",method:"POST",path:"/stores/groups/"+n("AddGroupBuild","group_id",e.path.group_id)+"/builds",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTesters(e){return t.send({op:"ListTesters",method:"GET",path:"/stores/groups/"+n("ListTesters","group_id",e.path.group_id)+"/testers",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setTesters(e){return t.send({op:"SetTesters",method:"PUT",path:"/stores/groups/"+n("SetTesters","group_id",e.path.group_id)+"/testers",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPackages(e){return t.send({op:"ListPackages",method:"GET",path:"/stores/packages",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getPackage(e){return t.send({op:"GetPackage",method:"GET",path:"/stores/packages/"+n("GetPackage","package_id",e.path.package_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async uploadArtifact(e){return t.send({op:"UploadArtifact",method:"PUT",path:"/stores/packages/"+n("UploadArtifact","package_id",e.path.package_id)+"/artifact",auth:[],answers:{200:"json"},headers:e.headers,body:{kind:"raw",contentType:e.contentType??"application/octet-stream",value:e.body},signal:e.signal})},async planBetaReview(e){return t.send({op:"PlanBetaReview",method:"POST",path:"/stores/packages/"+n("PlanBetaReview","package_id",e.path.package_id)+"/beta-review",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async listDeliveries(e){return t.send({op:"ListDeliveries",method:"GET",path:"/stores/packages/"+n("ListDeliveries","package_id",e.path.package_id)+"/deliveries",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deliver(e){return t.send({op:"Deliver",method:"POST",path:"/stores/packages/"+n("Deliver","package_id",e.path.package_id)+"/deliveries",auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSignedBundleLink(e){return t.send({op:"GetSignedBundleLink",method:"POST",path:"/stores/packages/"+n("GetSignedBundleLink","package_id",e.path.package_id)+"/deliveries/"+n("GetSignedBundleLink","channel",e.path.channel)+"/bundle-link",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async planExpire(e){return t.send({op:"PlanExpire",method:"POST",path:"/stores/packages/"+n("PlanExpire","package_id",e.path.package_id)+"/expire",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async planExportCompliance(e){return t.send({op:"PlanExportCompliance",method:"POST",path:"/stores/packages/"+n("PlanExportCompliance","package_id",e.path.package_id)+"/export-compliance",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async setWhatToTest(e){return t.send({op:"SetWhatToTest",method:"PUT",path:"/stores/packages/"+n("SetWhatToTest","package_id",e.path.package_id)+"/what-to-test",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async takeAppleWebhook(e){return t.send({op:"TakeAppleWebhook",method:"POST",path:"/stores/webhooks/apple/"+n("TakeAppleWebhook","app_id",e.path.app_id),auth:[],answers:{200:"empty"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getAppleSession(e){return t.send({op:"GetAppleSession",method:"GET",path:"/stores/apple/session",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async disconnectAppleSession(e){return t.send({op:"DisconnectAppleSession",method:"DELETE",path:"/stores/apple/session",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async checkAppleSession(e){return t.send({op:"CheckAppleSession",method:"POST",path:"/stores/apple/session/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async createAppleIdGrant(e){return t.send({op:"CreateAppleIDGrant",method:"POST",path:"/stores/apple/session/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getAppleIdPage(e){return t.send({op:"GetAppleIDPage",method:"GET",path:"/stores/connect/apple-id",auth:[],answers:{200:"raw"},signal:e?.signal})},async signInAppleId(e){return t.send({op:"SignInAppleID",method:"POST",path:"/stores/connect/apple-id",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async submitAppleIdCode(e){return t.send({op:"SubmitAppleIDCode",method:"POST",path:"/stores/connect/apple-id/code",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async chooseAppleIdTeam(e){return t.send({op:"ChooseAppleIDTeam",method:"POST",path:"/stores/connect/apple-id/team",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getAppReview(e){return t.send({op:"GetAppReview",method:"GET",path:"/stores/apps/"+n("GetAppReview","app_id",e.path.app_id)+"/review",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getReviewAttachment(e){return t.send({op:"GetReviewAttachment",method:"GET",path:"/stores/apps/"+n("GetReviewAttachment","app_id",e.path.app_id)+"/review/threads/"+n("GetReviewAttachment","thread_id",e.path.thread_id)+"/attachments/"+n("GetReviewAttachment","attachment_id",e.path.attachment_id),auth:[["SecretKeyAuth"]],answers:{200:"raw"},signal:e.signal})},async setReviewDraft(e){return t.send({op:"SetReviewDraft",method:"PUT",path:"/stores/apps/"+n("SetReviewDraft","app_id",e.path.app_id)+"/review/threads/"+n("SetReviewDraft","thread_id",e.path.thread_id)+"/draft",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sendReviewDraft(e){return t.send({op:"SendReviewDraft",method:"POST",path:"/stores/apps/"+n("SendReviewDraft","app_id",e.path.app_id)+"/review/threads/"+n("SendReviewDraft","thread_id",e.path.thread_id)+"/draft/send",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async getAppPrivacy(e){return t.send({op:"GetAppPrivacy",method:"GET",path:"/stores/apps/"+n("GetAppPrivacy","app_id",e.path.app_id)+"/privacy",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setAppPrivacy(e){return t.send({op:"SetAppPrivacy",method:"PUT",path:"/stores/apps/"+n("SetAppPrivacy","app_id",e.path.app_id)+"/privacy",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async makeAppRecord(e){return t.send({op:"MakeAppRecord",method:"POST",path:"/stores/apps/"+n("MakeAppRecord","app_id",e.path.app_id)+"/record",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeAppRecord(e){return t.send({op:"RemoveAppRecord",method:"DELETE",path:"/stores/apps/"+n("RemoveAppRecord","app_id",e.path.app_id)+"/record",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listMadeAppleKeys(e){return t.send({op:"ListMadeAppleKeys",method:"GET",path:"/stores/apple/keys",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async makeAppleKey(e){return t.send({op:"MakeAppleKey",method:"POST",path:"/stores/apple/keys",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revokeMadeAppleKey(e){return t.send({op:"RevokeMadeAppleKey",method:"DELETE",path:"/stores/apple/keys/"+n("RevokeMadeAppleKey","key_id",e.path.key_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async shareAppleSession(e){return t.send({op:"ShareAppleSession",method:"PUT",path:"/stores/apple/session/shares/"+n("ShareAppleSession","environment",e.path.environment),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async unshareAppleSession(e){return t.send({op:"UnshareAppleSession",method:"DELETE",path:"/stores/apple/session/shares/"+n("UnshareAppleSession","environment",e.path.environment),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async getInstallPage(e){return t.send({op:"GetInstallPage",method:"GET",path:"/stores/install",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async getInstallStatus(e){return t.send({op:"GetInstallStatus",method:"GET",path:"/stores/install/status",auth:[],answers:{200:"json"},query:e.query,signal:e.signal})},async retryInstall(e){return t.send({op:"RetryInstall",method:"POST",path:"/stores/install/retry",auth:[],answers:{204:"empty"},query:e.query,signal:e.signal})},async getInstallEnrollment(e){return t.send({op:"GetInstallEnrollment",method:"GET",path:"/stores/install/enroll",auth:[],answers:{200:"raw",303:"redirect"},query:e.query,signal:e.signal})},async registerInstallDevice(e){return t.send({op:"RegisterInstallDevice",method:"POST",path:"/stores/install/device",auth:[],answers:{200:"raw",301:"redirect"},query:e.query,body:{kind:"raw",contentType:e.contentType??"application/pkcs7-signature",value:e.body},signal:e.signal})},async getInstallManifest(e){return t.send({op:"GetInstallManifest",method:"GET",path:"/stores/install/manifest",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async getInstallBuild(e){return t.send({op:"GetInstallBuild",method:"GET",path:"/stores/install/app",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async headInstallBuild(e){return t.send({op:"HeadInstallBuild",method:"HEAD",path:"/stores/install/app",auth:[],answers:{200:"empty"},query:e.query,signal:e.signal})},async getInstallIcon(e){return t.send({op:"GetInstallIcon",method:"GET",path:"/stores/install/icon",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async listInvitations(e){return t.send({op:"ListInvitations",method:"GET",path:"/stores/packages/"+n("ListInvitations","package_id",e.path.package_id)+"/invitations",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async invitePerson(e){return t.send({op:"InvitePerson",method:"POST",path:"/stores/packages/"+n("InvitePerson","package_id",e.path.package_id)+"/invitations",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revokeInvitation(e){return t.send({op:"RevokeInvitation",method:"DELETE",path:"/stores/invitations/"+n("RevokeInvitation","invitation_id",e.path.invitation_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listDevices(e){return t.send({op:"ListDevices",method:"GET",path:"/stores/devices",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})}}}var A={};s(A,{client:()=>U});function U(t){return{async listWorkspaces(e){return t.send({op:"ListWorkspaces",method:"GET",path:"/workspaces",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createWorkspace(e){return t.send({op:"CreateWorkspace",method:"POST",path:"/workspaces",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async testWorkspaceByos(e){return t.send({op:"TestWorkspaceBYOS",method:"POST",path:"/workspaces/byos/test",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listProjectS3Keys(e){return t.send({op:"ListProjectS3Keys",method:"GET",path:"/workspaces/s3-keys",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createProjectS3Key(e){return t.send({op:"CreateProjectS3Key",method:"POST",path:"/workspaces/s3-keys",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async deleteProjectS3Key(e){return t.send({op:"DeleteProjectS3Key",method:"DELETE",path:"/workspaces/s3-keys/"+n("DeleteProjectS3Key","token_id",e.path.token_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async getWorkspace(e){return t.send({op:"GetWorkspace",method:"GET",path:"/workspaces/"+n("GetWorkspace","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteWorkspace(e){return t.send({op:"DeleteWorkspace",method:"DELETE",path:"/workspaces/"+n("DeleteWorkspace","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},query:e.query,signal:e.signal})},async updateWorkspaceStorage(e){return t.send({op:"UpdateWorkspaceStorage",method:"PUT",path:"/workspaces/"+n("UpdateWorkspaceStorage","id",e.path.id)+"/storage",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getWorkspaceFiles(e){return t.send({op:"GetWorkspaceFiles",method:"GET",path:"/workspaces/"+n("GetWorkspaceFiles","id",e.path.id)+"/files",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async putWorkspaceFile(e){return t.send({op:"PutWorkspaceFile",method:"PUT",path:"/workspaces/"+n("PutWorkspaceFile","id",e.path.id)+"/files",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,body:{kind:"raw",contentType:e.contentType??"application/octet-stream",value:e.body},signal:e.signal})},async deleteWorkspaceFile(e){return t.send({op:"DeleteWorkspaceFile",method:"DELETE",path:"/workspaces/"+n("DeleteWorkspaceFile","id",e.path.id)+"/files",auth:[["SecretKeyAuth"]],answers:{204:"empty"},query:e.query,signal:e.signal})},async listWorkspaceTokens(e){return t.send({op:"ListWorkspaceTokens",method:"GET",path:"/workspaces/"+n("ListWorkspaceTokens","id",e.path.id)+"/tokens",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async createWorkspaceToken(e){return t.send({op:"CreateWorkspaceToken",method:"POST",path:"/workspaces/"+n("CreateWorkspaceToken","id",e.path.id)+"/tokens",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteWorkspaceToken(e){return t.send({op:"DeleteWorkspaceToken",method:"DELETE",path:"/workspaces/"+n("DeleteWorkspaceToken","id",e.path.id)+"/tokens/"+n("DeleteWorkspaceToken","token_id",e.path.token_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listWorkspaceLocks(e){return t.send({op:"ListWorkspaceLocks",method:"GET",path:"/workspaces/"+n("ListWorkspaceLocks","id",e.path.id)+"/locks",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async acquireWorkspaceLock(e){return t.send({op:"AcquireWorkspaceLock",method:"POST",path:"/workspaces/"+n("AcquireWorkspaceLock","id",e.path.id)+"/locks",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async releaseWorkspaceLock(e){return t.send({op:"ReleaseWorkspaceLock",method:"DELETE",path:"/workspaces/"+n("ReleaseWorkspaceLock","id",e.path.id)+"/locks",auth:[["SecretKeyAuth"]],answers:{204:"empty"},query:e.query,signal:e.signal})},async getSyncHead(e){return t.send({op:"GetSyncHead",method:"GET",path:"/workspaces/sync/head",auth:[],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getSyncChanges(e){return t.send({op:"GetSyncChanges",method:"GET",path:"/workspaces/sync/changes",auth:[],answers:{200:"json"},query:e?.query,signal:e?.signal})},async publishSyncChanges(e){return t.send({op:"PublishSyncChanges",method:"POST",path:"/workspaces/sync/publish",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async requestSyncUploadGrants(e){return t.send({op:"RequestSyncUploadGrants",method:"POST",path:"/workspaces/sync/blobs/upload-grants",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async requestSyncDownloadGrants(e){return t.send({op:"RequestSyncDownloadGrants",method:"POST",path:"/workspaces/sync/blobs/download-grants",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async downloadSignedSyncBlob(e){return t.send({op:"DownloadSignedSyncBlob",method:"GET",path:"/workspaces/sync/blobs/"+n("DownloadSignedSyncBlob","digest",e.path.digest),auth:[],answers:{200:"empty"},signal:e.signal})},async uploadSignedSyncBlob(e){return t.send({op:"UploadSignedSyncBlob",method:"PUT",path:"/workspaces/sync/blobs/"+n("UploadSignedSyncBlob","digest",e.path.digest),auth:[],answers:{200:"empty"},signal:e.signal})},async streamSyncEvents(e){return t.send({op:"StreamSyncEvents",method:"GET",path:"/workspaces/sync/events",auth:[],answers:{200:"raw"},signal:e?.signal})}}}export{r as a,a as b,i as c,o as d,l as e,p as f,d as g,g as h,c as i,u as j,y as k,m as l,h as m,b as n,_ as o,P as p,R as q,S as r,A as s,V as t};
|
|
1
|
+
/*! palbase 0.78.1 — Palbase SDK License (see LICENSE) */
|
|
2
|
+
import{c as n}from"./35KQJQ77.js";import{a as s}from"./VNUCKM7H.js";var V=["ai.goal.updated","ai.mcp.auth_completed","ai.mcp.auth_required","ai.response.completed","ai.response.failed","ai.response.started","ai.secret_host_requested","ai.trigger.fired","ai.voice.closed","ai.voice.delegated","ai.voice.started","ai.wait.created","ai.wait.resumed","ai.wait.timed_out","ai.workflow.completed","ai.workflow.failed","audience.entered","audience.exited","calls.call.ended","calls.call.started","calls.participant.joined","calls.participant.left","calls.transcript.completed","calls.transcript.segment","campaigns.broadcast.canceled","campaigns.broadcast.completed","campaigns.broadcast.started","campaigns.onsite.clicked","campaigns.onsite.converted","campaigns.onsite.shown","commerce.buybox.changed","commerce.cart.abandoned","commerce.cart.merged","commerce.fulfillment.created","commerce.fulfillment.delivered","commerce.inventory.restocked","commerce.listing.price_dropped","commerce.order.created","commerce.order.paid","commerce.order.refunded","commerce.product.created","commerce.return.rejected","commerce.return.requested","commerce.review.created","commerce.store.created","commerce.store_order.canceled","consent.changed","device.revoked","file.deleted","file.moved","file.uploaded","flag.changed","flag.override_changed","iap.catalog.applied","iap.catalog.changed","iap.coupon.redeemed","iap.credits.depleted","iap.credits.low","iap.customer.changed","iap.customer.erased","iap.customer.merged","iap.entitlement.changed","iap.offer.redeemed","iap.ownership.transferred","iap.paywall.published","iap.purchase.completed","iap.quota.exhausted","iap.quota.threshold","iap.refund.changed","iap.store.changed","iap.subscription.changed","journey.converted","journey.ended","journey.entered","journey.event","journey.step","messaging.conversation.created","messaging.conversation.deleted","messaging.conversation.read","messaging.message.created","messaging.report.created","notification.action","notification.bounced","notification.complained","notification.delivered","notification.dismissed","notification.expired","notification.failed","notification.not_shown","notification.opened","notification.push_failing","notification.read","notification.received","notification.rejected","notification.sent","notification.shared_paused","notification.unconfirmed","notification.undelivered","notification.uninstalled","payments.dispute.closed","payments.dispute.opened","payments.payment.canceled","payments.payment.failed","payments.payment.requires_capture","payments.payment.succeeded","payments.refund.succeeded","payments.split.approved","payments.split.refunded","payments.sub_merchant.updated","payments.subscription.canceled","payments.subscription.changed","payments.wallet.balance_changed","payments.wallet.hold_changed","payments.wallet.vested","promotions.rule.created","session.ended","stores.action.changed","stores.app.changed","stores.apple.changed","stores.apple.key.made","stores.apple.key.revoked","stores.apple.session.changed","stores.apple.session.ended","stores.apple.session.expired","stores.beta_review.changed","stores.build.changed","stores.delivery.changed","stores.delivery.requested","stores.device.changed","stores.feedback.received","stores.google.changed","stores.group.changed","stores.invitation.changed","stores.package.changed","stores.play_release.changed","stores.product.changed","stores.review.message","stores.version.changed","stores.version.reviewed","stores.vitals.changed","stores.webhook.changed","user.converted","user.deleted","user.locale_changed","user.password_changed","user.permissions_changed","workspace.conflict","workspace.deleted","workspace.published"];var r={};s(r,{client:()=>v});function v(t){return{async draftAgent(e){return t.send({op:"DraftAgent",method:"POST",path:"/ai/agent-drafts",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listAgents(e){return t.send({op:"ListAgents",method:"GET",path:"/ai/agents",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getAgent(e){return t.send({op:"GetAgent",method:"GET",path:"/ai/agents/"+n("GetAgent","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putAgent(e){return t.send({op:"PutAgent",method:"PUT",path:"/ai/agents/"+n("PutAgent","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteAgent(e){return t.send({op:"DeleteAgent",method:"DELETE",path:"/ai/agents/"+n("DeleteAgent","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async publishAgent(e){return t.send({op:"PublishAgent",method:"POST",path:"/ai/agents/"+n("PublishAgent","name",e.path.name)+"/publish",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rollbackAgent(e){return t.send({op:"RollbackAgent",method:"POST",path:"/ai/agents/"+n("RollbackAgent","name",e.path.name)+"/rollback",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listAgentVersions(e){return t.send({op:"ListAgentVersions",method:"GET",path:"/ai/agents/"+n("ListAgentVersions","name",e.path.name)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async createAudioSpeech(e){return t.send({op:"CreateAudioSpeech",method:"POST",path:"/ai/audio/speech",auth:[["SecretKeyAuth"]],answers:{200:"raw"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createAudioTranscription(e){return t.send({op:"CreateAudioTranscription",method:"POST",path:"/ai/audio/transcriptions",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listChats(e){return t.send({op:"ListChats",method:"GET",path:"/ai/chats",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createChat(e){return t.send({op:"CreateChat",method:"POST",path:"/ai/chats",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChat(e){return t.send({op:"GetChat",method:"GET",path:"/ai/chats/"+n("GetChat","chat_id",e.path.chat_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteChat(e){return t.send({op:"DeleteChat",method:"DELETE",path:"/ai/chats/"+n("DeleteChat","chat_id",e.path.chat_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async decideChatApproval(e){return t.send({op:"DecideChatApproval",method:"POST",path:"/ai/chats/"+n("DecideChatApproval","chat_id",e.path.chat_id)+"/approvals/"+n("DecideChatApproval","approval_id",e.path.approval_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChatExecution(e){return t.send({op:"GetChatExecution",method:"GET",path:"/ai/chats/"+n("GetChatExecution","chat_id",e.path.chat_id)+"/execution",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async patchChatExecution(e){return t.send({op:"PatchChatExecution",method:"PATCH",path:"/ai/chats/"+n("PatchChatExecution","chat_id",e.path.chat_id)+"/execution",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async forkChat(e){return t.send({op:"ForkChat",method:"POST",path:"/ai/chats/"+n("ForkChat","chat_id",e.path.chat_id)+"/fork",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChatGoal(e){return t.send({op:"GetChatGoal",method:"GET",path:"/ai/chats/"+n("GetChatGoal","chat_id",e.path.chat_id)+"/goal",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async setChatGoal(e){return t.send({op:"SetChatGoal",method:"PUT",path:"/ai/chats/"+n("SetChatGoal","chat_id",e.path.chat_id)+"/goal",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async clearChatGoal(e){return t.send({op:"ClearChatGoal",method:"DELETE",path:"/ai/chats/"+n("ClearChatGoal","chat_id",e.path.chat_id)+"/goal",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},query:e.query,signal:e.signal})},async updateChatGoal(e){return t.send({op:"UpdateChatGoal",method:"PATCH",path:"/ai/chats/"+n("UpdateChatGoal","chat_id",e.path.chat_id)+"/goal",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async handoffChat(e){return t.send({op:"HandoffChat",method:"POST",path:"/ai/chats/"+n("HandoffChat","chat_id",e.path.chat_id)+"/handoff",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async putChatMember(e){return t.send({op:"PutChatMember",method:"PUT",path:"/ai/chats/"+n("PutChatMember","chat_id",e.path.chat_id)+"/members/"+n("PutChatMember","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteChatMember(e){return t.send({op:"DeleteChatMember",method:"DELETE",path:"/ai/chats/"+n("DeleteChatMember","chat_id",e.path.chat_id)+"/members/"+n("DeleteChatMember","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listChatMessages(e){return t.send({op:"ListChatMessages",method:"GET",path:"/ai/chats/"+n("ListChatMessages","chat_id",e.path.chat_id)+"/messages",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async sendChatMessage(e){return t.send({op:"SendChatMessage",method:"POST",path:"/ai/chats/"+n("SendChatMessage","chat_id",e.path.chat_id)+"/messages",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChatMessageAttachment(e){return t.send({op:"GetChatMessageAttachment",method:"GET",path:"/ai/chats/"+n("GetChatMessageAttachment","chat_id",e.path.chat_id)+"/messages/"+n("GetChatMessageAttachment","message_id",e.path.message_id)+"/attachments/"+n("GetChatMessageAttachment","position",e.path.position),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"raw"},signal:e.signal})},async listChatParts(e){return t.send({op:"ListChatParts",method:"GET",path:"/ai/chats/"+n("ListChatParts","chat_id",e.path.chat_id)+"/parts",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async putChatPipe(e){return t.send({op:"PutChatPipe",method:"PUT",path:"/ai/chats/"+n("PutChatPipe","chat_id",e.path.chat_id)+"/pipe",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteChatPipe(e){return t.send({op:"DeleteChatPipe",method:"DELETE",path:"/ai/chats/"+n("DeleteChatPipe","chat_id",e.path.chat_id)+"/pipe",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async sendSubagentMessage(e){return t.send({op:"SendSubagentMessage",method:"POST",path:"/ai/chats/"+n("SendSubagentMessage","chat_id",e.path.chat_id)+"/runs/"+n("SendSubagentMessage","run_id",e.path.run_id)+"/messages",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stopSubagent(e){return t.send({op:"StopSubagent",method:"POST",path:"/ai/chats/"+n("StopSubagent","chat_id",e.path.chat_id)+"/runs/"+n("StopSubagent","run_id",e.path.run_id)+"/stop",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stopChat(e){return t.send({op:"StopChat",method:"POST",path:"/ai/chats/"+n("StopChat","chat_id",e.path.chat_id)+"/stop",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTurnToolCalls(e){return t.send({op:"ListTurnToolCalls",method:"GET",path:"/ai/chats/"+n("ListTurnToolCalls","chat_id",e.path.chat_id)+"/tool-calls",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getChatToolCall(e){return t.send({op:"GetChatToolCall",method:"GET",path:"/ai/chats/"+n("GetChatToolCall","chat_id",e.path.chat_id)+"/tool-calls/"+n("GetChatToolCall","call_id",e.path.call_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async answerChatToolCall(e){return t.send({op:"AnswerChatToolCall",method:"POST",path:"/ai/chats/"+n("AnswerChatToolCall","chat_id",e.path.chat_id)+"/tool-outputs/"+n("AnswerChatToolCall","call_id",e.path.call_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listChatTurnArtifacts(e){return t.send({op:"ListChatTurnArtifacts",method:"GET",path:"/ai/chats/"+n("ListChatTurnArtifacts","chat_id",e.path.chat_id)+"/turns/"+n("ListChatTurnArtifacts","response_id",e.path.response_id)+"/artifacts",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getChatTurnArtifact(e){return t.send({op:"GetChatTurnArtifact",method:"GET",path:"/ai/chats/"+n("GetChatTurnArtifact","chat_id",e.path.chat_id)+"/turns/"+n("GetChatTurnArtifact","response_id",e.path.response_id)+"/artifacts/"+n("GetChatTurnArtifact","artifact_id",e.path.artifact_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"raw"},signal:e.signal})},async getChatTurnCost(e){return t.send({op:"GetChatTurnCost",method:"GET",path:"/ai/chats/"+n("GetChatTurnCost","chat_id",e.path.chat_id)+"/turns/"+n("GetChatTurnCost","response_id",e.path.response_id)+"/cost",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async startChatVoice(e){return t.send({op:"StartChatVoice",method:"POST",path:"/ai/chats/"+n("StartChatVoice","chat_id",e.path.chat_id)+"/voice",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChatVoice(e){return t.send({op:"GetChatVoice",method:"GET",path:"/ai/chats/"+n("GetChatVoice","chat_id",e.path.chat_id)+"/voice/"+n("GetChatVoice","voice_id",e.path.voice_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async closeChatVoice(e){return t.send({op:"CloseChatVoice",method:"DELETE",path:"/ai/chats/"+n("CloseChatVoice","chat_id",e.path.chat_id)+"/voice/"+n("CloseChatVoice","voice_id",e.path.voice_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async commandChatVoice(e){return t.send({op:"CommandChatVoice",method:"POST",path:"/ai/chats/"+n("CommandChatVoice","chat_id",e.path.chat_id)+"/voice/"+n("CommandChatVoice","voice_id",e.path.voice_id)+"/commands",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createEmbeddings(e){return t.send({op:"CreateEmbeddings",method:"POST",path:"/ai/embeddings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listEndpoints(e){return t.send({op:"ListEndpoints",method:"GET",path:"/ai/endpoints",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putEndpoint(e){return t.send({op:"PutEndpoint",method:"PUT",path:"/ai/endpoints/"+n("PutEndpoint","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteEndpoint(e){return t.send({op:"DeleteEndpoint",method:"DELETE",path:"/ai/endpoints/"+n("DeleteEndpoint","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listEnv(e){return t.send({op:"ListEnv",method:"GET",path:"/ai/env",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listEnvAllowances(e){return t.send({op:"ListEnvAllowances",method:"GET",path:"/ai/env/allowances",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async deleteEnvAllowance(e){return t.send({op:"DeleteEnvAllowance",method:"DELETE",path:"/ai/env/allowances/"+n("DeleteEnvAllowance","allowance_id",e.path.allowance_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listEnvHostRequests(e){return t.send({op:"ListEnvHostRequests",method:"GET",path:"/ai/env/host-requests",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async allowEnvHostRequest(e){return t.send({op:"AllowEnvHostRequest",method:"POST",path:"/ai/env/host-requests/"+n("AllowEnvHostRequest","request_id",e.path.request_id)+"/allow",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async dismissEnvHostRequest(e){return t.send({op:"DismissEnvHostRequest",method:"POST",path:"/ai/env/host-requests/"+n("DismissEnvHostRequest","request_id",e.path.request_id)+"/dismiss",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putEnv(e){return t.send({op:"PutEnv",method:"PUT",path:"/ai/env/"+n("PutEnv","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteEnv(e){return t.send({op:"DeleteEnv",method:"DELETE",path:"/ai/env/"+n("DeleteEnv","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async allowEnvHost(e){return t.send({op:"AllowEnvHost",method:"POST",path:"/ai/env/"+n("AllowEnvHost","key",e.path.key)+"/hosts",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listEnvironments(e){return t.send({op:"ListEnvironments",method:"GET",path:"/ai/environments",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createEnvironment(e){return t.send({op:"CreateEnvironment",method:"POST",path:"/ai/environments",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getEnvironment(e){return t.send({op:"GetEnvironment",method:"GET",path:"/ai/environments/"+n("GetEnvironment","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putEnvironment(e){return t.send({op:"PutEnvironment",method:"PUT",path:"/ai/environments/"+n("PutEnvironment","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteEnvironment(e){return t.send({op:"DeleteEnvironment",method:"DELETE",path:"/ai/environments/"+n("DeleteEnvironment","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async createImage(e){return t.send({op:"CreateImage",method:"POST",path:"/ai/images",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getImage(e){return t.send({op:"GetImage",method:"GET",path:"/ai/images/"+n("GetImage","image_id",e.path.image_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getImageFile(e){return t.send({op:"GetImageFile",method:"GET",path:"/ai/images/"+n("GetImageFile","image_id",e.path.image_id)+"/files/"+n("GetImageFile","position",e.path.position),auth:[["SecretKeyAuth"]],answers:{200:"raw"},signal:e.signal})},async getMachine(e){return t.send({op:"GetMachine",method:"GET",path:"/ai/machines/"+n("GetMachine","machine",e.path.machine),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteMachine(e){return t.send({op:"DeleteMachine",method:"DELETE",path:"/ai/machines/"+n("DeleteMachine","machine",e.path.machine),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},query:e.query,signal:e.signal})},async cordonMachine(e){return t.send({op:"CordonMachine",method:"POST",path:"/ai/machines/"+n("CordonMachine","machine",e.path.machine)+"/cordon",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async resumeMachine(e){return t.send({op:"ResumeMachine",method:"POST",path:"/ai/machines/"+n("ResumeMachine","machine",e.path.machine)+"/resume",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listModels(e){return t.send({op:"ListModels",method:"GET",path:"/ai/models",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async revokePoolKey(e){return t.send({op:"RevokePoolKey",method:"POST",path:"/ai/pool-keys/"+n("RevokePoolKey","key",e.path.key)+"/revoke",auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listPools(e){return t.send({op:"ListPools",method:"GET",path:"/ai/pools",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createPool(e){return t.send({op:"CreatePool",method:"POST",path:"/ai/pools",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deletePool(e){return t.send({op:"DeletePool",method:"DELETE",path:"/ai/pools/"+n("DeletePool","pool",e.path.pool),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listPoolKeys(e){return t.send({op:"ListPoolKeys",method:"GET",path:"/ai/pools/"+n("ListPoolKeys","pool",e.path.pool)+"/keys",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createPoolKey(e){return t.send({op:"CreatePoolKey",method:"POST",path:"/ai/pools/"+n("CreatePoolKey","pool",e.path.pool)+"/keys",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPoolState(e){return t.send({op:"GetPoolState",method:"GET",path:"/ai/pools/"+n("GetPoolState","pool",e.path.pool)+"/state",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listProviders(e){return t.send({op:"ListProviders",method:"GET",path:"/ai/providers",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectProvider(e){return t.send({op:"ConnectProvider",method:"PUT",path:"/ai/providers/"+n("ConnectProvider","provider",e.path.provider),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async disconnectProvider(e){return t.send({op:"DisconnectProvider",method:"DELETE",path:"/ai/providers/"+n("DisconnectProvider","provider",e.path.provider),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async createResponse(e){return t.send({op:"CreateResponse",method:"POST",path:"/ai/responses",auth:[["SecretKeyAuth"]],answers:{200:"raw",202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getResponse(e){return t.send({op:"GetResponse",method:"GET",path:"/ai/responses/"+n("GetResponse","response_id",e.path.response_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelResponse(e){return t.send({op:"CancelResponse",method:"POST",path:"/ai/responses/"+n("CancelResponse","response_id",e.path.response_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async followResponse(e){return t.send({op:"FollowResponse",method:"GET",path:"/ai/responses/"+n("FollowResponse","response_id",e.path.response_id)+"/live",auth:[["SecretKeyAuth"]],answers:{200:"raw"},query:e.query,signal:e.signal})},async getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/ai/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putSettings(e){return t.send({op:"PutSettings",method:"PUT",path:"/ai/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSpend(e){return t.send({op:"GetSpend",method:"GET",path:"/ai/spend",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async askSupport(e){return t.send({op:"AskSupport",method:"POST",path:"/ai/support-questions",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTools(e){return t.send({op:"ListTools",method:"GET",path:"/ai/tools",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listUsage(e){return t.send({op:"ListUsage",method:"GET",path:"/ai/usage",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async gatewayAudioSpeech(e){return t.send({op:"GatewayAudioSpeech",method:"POST",path:"/ai/v1/audio/speech",auth:[["SecretKeyAuth"]],answers:{200:"raw"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayAudioTranscriptions(e){return t.send({op:"GatewayAudioTranscriptions",method:"POST",path:"/ai/v1/audio/transcriptions",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayChatCompletions(e){return t.send({op:"GatewayChatCompletions",method:"POST",path:"/ai/v1/chat/completions",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayEmbeddings(e){return t.send({op:"GatewayEmbeddings",method:"POST",path:"/ai/v1/embeddings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayImagesGenerations(e){return t.send({op:"GatewayImagesGenerations",method:"POST",path:"/ai/v1/images/generations",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayAnthropicMessages(e){return t.send({op:"GatewayAnthropicMessages",method:"POST",path:"/ai/v1/messages",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async gatewayListModels(e){return t.send({op:"GatewayListModels",method:"GET",path:"/ai/v1/models",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async gatewayResponses(e){return t.send({op:"GatewayResponses",method:"POST",path:"/ai/v1/responses",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createVideo(e){return t.send({op:"CreateVideo",method:"POST",path:"/ai/videos",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getVideo(e){return t.send({op:"GetVideo",method:"GET",path:"/ai/videos/"+n("GetVideo","video_id",e.path.video_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelVideo(e){return t.send({op:"CancelVideo",method:"POST",path:"/ai/videos/"+n("CancelVideo","video_id",e.path.video_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listTriggers(e){return t.send({op:"ListTriggers",method:"GET",path:"/ai/triggers",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createTrigger(e){return t.send({op:"CreateTrigger",method:"POST",path:"/ai/triggers",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getTrigger(e){return t.send({op:"GetTrigger",method:"GET",path:"/ai/triggers/"+n("GetTrigger","trigger_id",e.path.trigger_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteTrigger(e){return t.send({op:"DeleteTrigger",method:"DELETE",path:"/ai/triggers/"+n("DeleteTrigger","trigger_id",e.path.trigger_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateTrigger(e){return t.send({op:"UpdateTrigger",method:"PATCH",path:"/ai/triggers/"+n("UpdateTrigger","trigger_id",e.path.trigger_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async testTrigger(e){return t.send({op:"TestTrigger",method:"POST",path:"/ai/triggers/"+n("TestTrigger","trigger_id",e.path.trigger_id)+"/test",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async invokeTriggerWebhook(e){return t.send({op:"InvokeTriggerWebhook",method:"POST",path:"/ai/triggers/"+n("InvokeTriggerWebhook","trigger_id",e.path.trigger_id)+"/hook",auth:[],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listWaits(e){return t.send({op:"ListWaits",method:"GET",path:"/ai/waits",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getWait(e){return t.send({op:"GetWait",method:"GET",path:"/ai/waits/"+n("GetWait","wait_id",e.path.wait_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async signalWait(e){return t.send({op:"SignalWait",method:"POST",path:"/ai/waits/"+n("SignalWait","wait_id",e.path.wait_id)+"/signal",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async cancelWait(e){return t.send({op:"CancelWait",method:"POST",path:"/ai/waits/"+n("CancelWait","wait_id",e.path.wait_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listWorkflowRuns(e){return t.send({op:"ListWorkflowRuns",method:"GET",path:"/ai/workflows/runs",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createWorkflowRun(e){return t.send({op:"CreateWorkflowRun",method:"POST",path:"/ai/workflows/runs",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getWorkflowRun(e){return t.send({op:"GetWorkflowRun",method:"GET",path:"/ai/workflows/runs/"+n("GetWorkflowRun","run_id",e.path.run_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async recordWorkflowStep(e){return t.send({op:"RecordWorkflowStep",method:"POST",path:"/ai/workflows/runs/"+n("RecordWorkflowStep","run_id",e.path.run_id)+"/steps/"+n("RecordWorkflowStep","step_key",e.path.step_key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async completeWorkflowRun(e){return t.send({op:"CompleteWorkflowRun",method:"POST",path:"/ai/workflows/runs/"+n("CompleteWorkflowRun","run_id",e.path.run_id)+"/complete",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async replayWorkflowRun(e){return t.send({op:"ReplayWorkflowRun",method:"POST",path:"/ai/workflows/runs/"+n("ReplayWorkflowRun","run_id",e.path.run_id)+"/replay",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stopRunTree(e){return t.send({op:"StopRunTree",method:"POST",path:"/ai/runs/"+n("StopRunTree","root_id",e.path.root_id)+"/stop-tree",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getMemory(e){return t.send({op:"GetMemory",method:"GET",path:"/ai/memory/"+n("GetMemory","namespace",e.path.namespace)+"/"+n("GetMemory","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putMemory(e){return t.send({op:"PutMemory",method:"PUT",path:"/ai/memory/"+n("PutMemory","namespace",e.path.namespace)+"/"+n("PutMemory","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMemory(e){return t.send({op:"DeleteMemory",method:"DELETE",path:"/ai/memory/"+n("DeleteMemory","namespace",e.path.namespace)+"/"+n("DeleteMemory","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async searchMemory(e){return t.send({op:"SearchMemory",method:"POST",path:"/ai/memory/search",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listActorGroupMembers(e){return t.send({op:"ListActorGroupMembers",method:"GET",path:"/ai/groups/"+n("ListActorGroupMembers","group_id",e.path.group_id)+"/members",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async addActorGroupMember(e){return t.send({op:"AddActorGroupMember",method:"POST",path:"/ai/groups/"+n("AddActorGroupMember","group_id",e.path.group_id)+"/members",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async broadcastActorGroup(e){return t.send({op:"BroadcastActorGroup",method:"POST",path:"/ai/groups/"+n("BroadcastActorGroup","group_id",e.path.group_id)+"/broadcast",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getA2AAgentCard(e){return t.send({op:"GetA2AAgentCard",method:"GET",path:"/.well-known/agent.json",auth:[],answers:{200:"json"},signal:e?.signal})},async callA2Arpc(e){return t.send({op:"CallA2ARPC",method:"POST",path:"/ai/a2a",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async putMcpUserCredential(e){return t.send({op:"PutMCPUserCredential",method:"POST",path:"/ai/endpoints/"+n("PutMCPUserCredential","name",e.path.name)+"/user-credentials/"+n("PutMCPUserCredential","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMcpUserCredential(e){return t.send({op:"DeleteMCPUserCredential",method:"DELETE",path:"/ai/endpoints/"+n("DeleteMCPUserCredential","name",e.path.name)+"/user-credentials/"+n("DeleteMCPUserCredential","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async startMcpoAuth(e){return t.send({op:"StartMCPOAuth",method:"GET",path:"/ai/endpoints/"+n("StartMCPOAuth","name",e.path.name)+"/oauth/start",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async completeMcpoAuthCallback(e){return t.send({op:"CompleteMCPOAuthCallback",method:"GET",path:"/ai/mcp/oauth/callback",auth:[],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listTemplates(e){return t.send({op:"ListTemplates",method:"GET",path:"/ai/templates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getTemplate(e){return t.send({op:"GetTemplate",method:"GET",path:"/ai/templates/"+n("GetTemplate","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putTemplate(e){return t.send({op:"PutTemplate",method:"PUT",path:"/ai/templates/"+n("PutTemplate","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteTemplate(e){return t.send({op:"DeleteTemplate",method:"DELETE",path:"/ai/templates/"+n("DeleteTemplate","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async publishTemplate(e){return t.send({op:"PublishTemplate",method:"POST",path:"/ai/templates/"+n("PublishTemplate","name",e.path.name)+"/publish",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rollbackTemplate(e){return t.send({op:"RollbackTemplate",method:"POST",path:"/ai/templates/"+n("RollbackTemplate","name",e.path.name)+"/rollback",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTemplateVersions(e){return t.send({op:"ListTemplateVersions",method:"GET",path:"/ai/templates/"+n("ListTemplateVersions","name",e.path.name)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listUserSpend(e){return t.send({op:"ListUserSpend",method:"GET",path:"/ai/users/spend",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getUserQuota(e){return t.send({op:"GetUserQuota",method:"GET",path:"/ai/users/"+n("GetUserQuota","user_id",e.path.user_id)+"/quota",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putUserQuota(e){return t.send({op:"PutUserQuota",method:"PUT",path:"/ai/users/"+n("PutUserQuota","user_id",e.path.user_id)+"/quota",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteUserQuota(e){return t.send({op:"DeleteUserQuota",method:"DELETE",path:"/ai/users/"+n("DeleteUserQuota","user_id",e.path.user_id)+"/quota",auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async clientAttestChallenge(e){return t.send({op:"ClientAttestChallenge",method:"POST",path:"/ai/client/attest-challenge",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async runClientTemplate(e){return t.send({op:"RunClientTemplate",method:"POST",path:"/ai/client/templates/"+n("RunClientTemplate","name",e.path.name)+"/run",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async voiceClientTemplate(e){return t.send({op:"VoiceClientTemplate",method:"POST",path:"/ai/client/templates/"+n("VoiceClientTemplate","name",e.path.name)+"/voice",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createMachineKey(e){return t.send({op:"CreateMachineKey",method:"POST",path:"/ai/machine-keys",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMachines(e){return t.send({op:"ListMachines",method:"GET",path:"/ai/machines",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})}}}var a={};s(a,{client:()=>k});function k(t){return{async listAudiences(e){return t.send({op:"ListAudiences",method:"GET",path:"/analytics/audiences",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createAudience(e){return t.send({op:"CreateAudience",method:"POST",path:"/analytics/audiences",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async previewAudience(e){return t.send({op:"PreviewAudience",method:"POST",path:"/analytics/audiences/preview",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getAudience(e){return t.send({op:"GetAudience",method:"GET",path:"/analytics/audiences/"+n("GetAudience","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteAudience(e){return t.send({op:"DeleteAudience",method:"DELETE",path:"/analytics/audiences/"+n("DeleteAudience","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateAudience(e){return t.send({op:"UpdateAudience",method:"PATCH",path:"/analytics/audiences/"+n("UpdateAudience","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listAudienceMembers(e){return t.send({op:"ListAudienceMembers",method:"GET",path:"/analytics/audiences/"+n("ListAudienceMembers","id",e.path.id)+"/members",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async alias(e){return t.send({op:"Alias",method:"POST",path:"/analytics/alias",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async batch(e){return t.send({op:"Batch",method:"POST",path:"/analytics/batch",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json",207:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getEventBreakdown(e){return t.send({op:"GetEventBreakdown",method:"GET",path:"/analytics/breakdown",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async capture(e){return t.send({op:"Capture",method:"POST",path:"/analytics/capture",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sendConsoleHistory(e){return t.send({op:"SendConsoleHistory",method:"POST",path:"/analytics/console-breadcrumbs",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getConsoleConfig(e){return t.send({op:"GetConsoleConfig",method:"GET",path:"/analytics/console-breadcrumbs/config",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listConsoleRecords(e){return t.send({op:"ListConsoleRecords",method:"GET",path:"/analytics/console-records",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listEventNames(e){return t.send({op:"ListEventNames",method:"GET",path:"/analytics/event-names",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listEvents(e){return t.send({op:"ListEvents",method:"GET",path:"/analytics/events",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getEventTimeline(e){return t.send({op:"GetEventTimeline",method:"GET",path:"/analytics/events/timeline",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async runFunnel(e){return t.send({op:"RunFunnel",method:"POST",path:"/analytics/funnel",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async identify(e){return t.send({op:"Identify",method:"POST",path:"/analytics/identify",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async page(e){return t.send({op:"Page",method:"POST",path:"/analytics/page",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sendPerf(e){return t.send({op:"SendPerf",method:"POST",path:"/analytics/perf",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPerfGroups(e){return t.send({op:"ListPerfGroups",method:"GET",path:"/analytics/perf/client",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getPerfConfig(e){return t.send({op:"GetPerfConfig",method:"GET",path:"/analytics/perf/config",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json",304:"empty"},headers:e?.headers,signal:e?.signal})},async getPerfTimeline(e){return t.send({op:"GetPerfTimeline",method:"GET",path:"/analytics/perf/timeline",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listRequestLines(e){return t.send({op:"ListRequestLines",method:"GET",path:"/analytics/requests",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getMachineTraffic(e){return t.send({op:"GetMachineTraffic",method:"GET",path:"/analytics/machines/"+n("GetMachineTraffic","name",e.path.name)+"/traffic",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async runRetention(e){return t.send({op:"RunRetention",method:"POST",path:"/analytics/retention",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async screen(e){return t.send({op:"Screen",method:"POST",path:"/analytics/screen",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/analytics/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putSettings(e){return t.send({op:"PutSettings",method:"PUT",path:"/analytics/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSummary(e){return t.send({op:"GetSummary",method:"GET",path:"/analytics/summary",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listTraces(e){return t.send({op:"ListTraces",method:"GET",path:"/analytics/traces",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async sendTrace(e){return t.send({op:"SendTrace",method:"POST",path:"/analytics/traces",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sendTraceBatch(e){return t.send({op:"SendTraceBatch",method:"POST",path:"/analytics/traces/batch",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"json",207:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getTraceHops(e){return t.send({op:"GetTraceHops",method:"GET",path:"/analytics/traces/by-trace",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listSessionTraces(e){return t.send({op:"ListSessionTraces",method:"GET",path:"/analytics/traces/session",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getTraceSummary(e){return t.send({op:"GetTraceSummary",method:"GET",path:"/analytics/traces/summary",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getTraceTimeline(e){return t.send({op:"GetTraceTimeline",method:"GET",path:"/analytics/traces/timeline",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async searchPeople(e){return t.send({op:"SearchPeople",method:"GET",path:"/analytics/people",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async setPersonProperties(e){return t.send({op:"SetPersonProperties",method:"POST",path:"/analytics/people",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{202:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPerson(e){return t.send({op:"GetPerson",method:"GET",path:"/analytics/people/"+n("GetPerson","person_id",e.path.person_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listPersonEvents(e){return t.send({op:"ListPersonEvents",method:"GET",path:"/analytics/people/"+n("ListPersonEvents","person_id",e.path.person_id)+"/events",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getEventCatalog(e){return t.send({op:"GetEventCatalog",method:"GET",path:"/analytics/catalog",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async defineEvent(e){return t.send({op:"DefineEvent",method:"PUT",path:"/analytics/catalog/"+n("DefineEvent","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var i={};s(i,{client:()=>w});function w(t){return{async getAppleAppSiteAssociation(e){return t.send({op:"GetAppleAppSiteAssociation",method:"GET",path:"/.well-known/apple-app-site-association",auth:[],answers:{200:"json"},signal:e?.signal})},async getAssetLinks(e){return t.send({op:"GetAssetLinks",method:"GET",path:"/.well-known/assetlinks.json",auth:[],answers:{200:"json"},signal:e?.signal})},async getJwks(e){return t.send({op:"GetJWKS",method:"GET",path:"/.well-known/jwks.json",auth:[],answers:{200:"json"},signal:e?.signal})},async getOidcDiscovery(e){return t.send({op:"GetOIDCDiscovery",method:"GET",path:"/.well-known/openid-configuration",auth:[],answers:{200:"json"},signal:e?.signal})},async getWebAuthnRelatedOrigins(e){return t.send({op:"GetWebAuthnRelatedOrigins",method:"GET",path:"/.well-known/webauthn",auth:[],answers:{200:"json"},signal:e?.signal})},async adminVerifyDeviceAssertion(e){return t.send({op:"AdminVerifyDeviceAssertion",method:"POST",path:"/admin/attest/devices/assert",auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetAttestPolicy(e){return t.send({op:"AdminGetAttestPolicy",method:"GET",path:"/admin/attest/devices/attest-policy",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminGetAttestObservations(e){return t.send({op:"AdminGetAttestObservations",method:"GET",path:"/admin/attest/devices/observations",auth:[["AdminAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminRecordAttestObservations(e){return t.send({op:"AdminRecordAttestObservations",method:"POST",path:"/admin/attest/devices/observations",auth:[["AdminAuth"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListAuditEvents(e){return t.send({op:"AdminListAuditEvents",method:"GET",path:"/admin/audit",auth:[["AdminAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminExportAuditEvents(e){return t.send({op:"AdminExportAuditEvents",method:"GET",path:"/admin/audit/export",auth:[["AdminAuth"]],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async adminVerifyAuditTrail(e){return t.send({op:"AdminVerifyAuditTrail",method:"GET",path:"/admin/audit/verify",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminGetAuthSettings(e){return t.send({op:"AdminGetAuthSettings",method:"GET",path:"/admin/auth-settings",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminUpdateAuthSettings(e){return t.send({op:"AdminUpdateAuthSettings",method:"PUT",path:"/admin/auth-settings",auth:[["AdminAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetBreachWatch(e){return t.send({op:"AdminGetBreachWatch",method:"GET",path:"/admin/breach-watch",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminListHooks(e){return t.send({op:"AdminListHooks",method:"GET",path:"/admin/hooks",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminCreateHook(e){return t.send({op:"AdminCreateHook",method:"POST",path:"/admin/hooks",auth:[["AdminAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminUpdateHook(e){return t.send({op:"AdminUpdateHook",method:"PUT",path:"/admin/hooks/"+n("AdminUpdateHook","id",e.path.id),auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminDeleteHook(e){return t.send({op:"AdminDeleteHook",method:"DELETE",path:"/admin/hooks/"+n("AdminDeleteHook","id",e.path.id),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminListHookExecutions(e){return t.send({op:"AdminListHookExecutions",method:"GET",path:"/admin/hooks/"+n("AdminListHookExecutions","id",e.path.id)+"/executions",auth:[["AdminAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async adminListIntegrations(e){return t.send({op:"AdminListIntegrations",method:"GET",path:"/admin/integrations",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminPutIntegration(e){return t.send({op:"AdminPutIntegration",method:"PUT",path:"/admin/integrations/"+n("AdminPutIntegration","name",e.path.name),auth:[["AdminAuth"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminDeleteIntegration(e){return t.send({op:"AdminDeleteIntegration",method:"DELETE",path:"/admin/integrations/"+n("AdminDeleteIntegration","name",e.path.name),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminListOAuthClients(e){return t.send({op:"AdminListOAuthClients",method:"GET",path:"/admin/oauth-clients",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminCreateOAuthClient(e){return t.send({op:"AdminCreateOAuthClient",method:"POST",path:"/admin/oauth-clients",auth:[["AdminAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetOAuthClient(e){return t.send({op:"AdminGetOAuthClient",method:"GET",path:"/admin/oauth-clients/"+n("AdminGetOAuthClient","id",e.path.id),auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminDeleteOAuthClient(e){return t.send({op:"AdminDeleteOAuthClient",method:"DELETE",path:"/admin/oauth-clients/"+n("AdminDeleteOAuthClient","id",e.path.id),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminUpdateOAuthClient(e){return t.send({op:"AdminUpdateOAuthClient",method:"PATCH",path:"/admin/oauth-clients/"+n("AdminUpdateOAuthClient","id",e.path.id),auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListProviders(e){return t.send({op:"AdminListProviders",method:"GET",path:"/admin/providers",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminGetPhoneSettings(e){return t.send({op:"AdminGetPhoneSettings",method:"GET",path:"/admin/providers/phone/settings",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminUpdatePhoneSettings(e){return t.send({op:"AdminUpdatePhoneSettings",method:"PUT",path:"/admin/providers/phone/settings",auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminToggleProvider(e){return t.send({op:"AdminToggleProvider",method:"POST",path:"/admin/providers/"+n("AdminToggleProvider","name",e.path.name),auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListRoles(e){return t.send({op:"AdminListRoles",method:"GET",path:"/admin/roles",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminUpsertRole(e){return t.send({op:"AdminUpsertRole",method:"PUT",path:"/admin/roles/"+n("AdminUpsertRole","name",e.path.name),auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminDeleteRole(e){return t.send({op:"AdminDeleteRole",method:"DELETE",path:"/admin/roles/"+n("AdminDeleteRole","name",e.path.name),auth:[["AdminAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async adminListServiceAccounts(e){return t.send({op:"AdminListServiceAccounts",method:"GET",path:"/admin/service-accounts",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminCreateServiceAccount(e){return t.send({op:"AdminCreateServiceAccount",method:"POST",path:"/admin/service-accounts",auth:[["AdminAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetServiceAccount(e){return t.send({op:"AdminGetServiceAccount",method:"GET",path:"/admin/service-accounts/"+n("AdminGetServiceAccount","id",e.path.id),auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminRevokeServiceAccount(e){return t.send({op:"AdminRevokeServiceAccount",method:"DELETE",path:"/admin/service-accounts/"+n("AdminRevokeServiceAccount","id",e.path.id),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminRotateServiceAccount(e){return t.send({op:"AdminRotateServiceAccount",method:"POST",path:"/admin/service-accounts/"+n("AdminRotateServiceAccount","id",e.path.id)+"/rotate",auth:[["AdminAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async adminListSessions(e){return t.send({op:"AdminListSessions",method:"GET",path:"/admin/sessions",auth:[["AdminAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminRevokeSession(e){return t.send({op:"AdminRevokeSession",method:"DELETE",path:"/admin/sessions/"+n("AdminRevokeSession","id",e.path.id),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminListSigningKeys(e){return t.send({op:"AdminListSigningKeys",method:"GET",path:"/admin/signing-keys",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminRotateSigningKey(e){return t.send({op:"AdminRotateSigningKey",method:"POST",path:"/admin/signing-keys/rotate",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async socialAdminConfig(e){return t.send({op:"SocialAdminConfig",method:"GET",path:"/admin/social-auth",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async socialCredentialPut(e){return t.send({op:"SocialCredentialPut",method:"PUT",path:"/admin/social-auth/credentials/"+n("SocialCredentialPut","key",e.path.key),auth:[["AdminAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async socialCredentialDelete(e){return t.send({op:"SocialCredentialDelete",method:"DELETE",path:"/admin/social-auth/credentials/"+n("SocialCredentialDelete","key",e.path.key),auth:[["AdminAuth"]],answers:{204:"empty"},headers:e.headers,signal:e.signal})},async socialProviderPatch(e){return t.send({op:"SocialProviderPatch",method:"PATCH",path:"/admin/social-auth/providers/"+n("SocialProviderPatch","provider",e.path.provider),auth:[["AdminAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetStats(e){return t.send({op:"AdminGetStats",method:"GET",path:"/admin/stats",auth:[["AdminAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminSendTestTemplate(e){return t.send({op:"AdminSendTestTemplate",method:"POST",path:"/admin/templates/"+n("AdminSendTestTemplate","key",e.path.key)+"/send-test",auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListTestUsers(e){return t.send({op:"AdminListTestUsers",method:"GET",path:"/admin/test-users",auth:[["AdminAuth"]],answers:{200:"json"},signal:e?.signal})},async adminCreateTestUsers(e){return t.send({op:"AdminCreateTestUsers",method:"POST",path:"/admin/test-users",auth:[["AdminAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminSetTestUserPhone(e){return t.send({op:"AdminSetTestUserPhone",method:"PUT",path:"/admin/test-users/phone",auth:[["AdminAuth"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminCreateTestSignupAddress(e){return t.send({op:"AdminCreateTestSignupAddress",method:"POST",path:"/admin/test-users/addresses",auth:[["AdminAuth"]],answers:{201:"json"},signal:e?.signal})},async adminDeleteTestUser(e){return t.send({op:"AdminDeleteTestUser",method:"DELETE",path:"/admin/test-users/"+n("AdminDeleteTestUser","uid",e.path.uid),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminCreateCustomToken(e){return t.send({op:"AdminCreateCustomToken",method:"POST",path:"/admin/token/custom",auth:[["AdminAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListUsers(e){return t.send({op:"AdminListUsers",method:"GET",path:"/admin/users",auth:[["AdminAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminCreateUser(e){return t.send({op:"AdminCreateUser",method:"POST",path:"/admin/users",auth:[["AdminAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminImportUsers(e){return t.send({op:"AdminImportUsers",method:"POST",path:"/admin/users/import",auth:[["AdminAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetUser(e){return t.send({op:"AdminGetUser",method:"GET",path:"/admin/users/"+n("AdminGetUser","uid",e.path.uid),auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminDeleteUser(e){return t.send({op:"AdminDeleteUser",method:"DELETE",path:"/admin/users/"+n("AdminDeleteUser","uid",e.path.uid),auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminUpdateUser(e){return t.send({op:"AdminUpdateUser",method:"PATCH",path:"/admin/users/"+n("AdminUpdateUser","uid",e.path.uid),auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminBanUser(e){return t.send({op:"AdminBanUser",method:"POST",path:"/admin/users/"+n("AdminBanUser","uid",e.path.uid)+"/ban",auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetUserConsents(e){return t.send({op:"AdminGetUserConsents",method:"GET",path:"/admin/users/"+n("AdminGetUserConsents","uid",e.path.uid)+"/consents",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminRevokeUserCredentials(e){return t.send({op:"AdminRevokeUserCredentials",method:"POST",path:"/admin/users/"+n("AdminRevokeUserCredentials","uid",e.path.uid)+"/credentials/revoke-all",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminExportUser(e){return t.send({op:"AdminExportUser",method:"GET",path:"/admin/users/"+n("AdminExportUser","uid",e.path.uid)+"/export",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminListUserMfaFactors(e){return t.send({op:"AdminListUserMFAFactors",method:"GET",path:"/admin/users/"+n("AdminListUserMFAFactors","uid",e.path.uid)+"/mfa",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminResetUserMfa(e){return t.send({op:"AdminResetUserMFA",method:"DELETE",path:"/admin/users/"+n("AdminResetUserMFA","uid",e.path.uid)+"/mfa",auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminResetUserPassword(e){return t.send({op:"AdminResetUserPassword",method:"POST",path:"/admin/users/"+n("AdminResetUserPassword","uid",e.path.uid)+"/reset-password",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminListUserRoles(e){return t.send({op:"AdminListUserRoles",method:"GET",path:"/admin/users/"+n("AdminListUserRoles","uid",e.path.uid)+"/roles",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminAssignUserRole(e){return t.send({op:"AdminAssignUserRole",method:"PUT",path:"/admin/users/"+n("AdminAssignUserRole","uid",e.path.uid)+"/roles/"+n("AdminAssignUserRole","role",e.path.role),auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminRevokeUserRole(e){return t.send({op:"AdminRevokeUserRole",method:"DELETE",path:"/admin/users/"+n("AdminRevokeUserRole","uid",e.path.uid)+"/roles/"+n("AdminRevokeUserRole","role",e.path.role),auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminRevokeUserSessions(e){return t.send({op:"AdminRevokeUserSessions",method:"POST",path:"/admin/users/"+n("AdminRevokeUserSessions","uid",e.path.uid)+"/sessions/revoke-all",auth:[["AdminAuth"]],answers:{204:"empty"},signal:e.signal})},async adminUnbanUser(e){return t.send({op:"AdminUnbanUser",method:"POST",path:"/admin/users/"+n("AdminUnbanUser","uid",e.path.uid)+"/unban",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async signInAnonymously(e){return t.send({op:"SignInAnonymously",method:"POST",path:"/auth/anonymous",auth:[["ApiKeyAuth"]],answers:{201:"json"},headers:e?.headers,body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async convertAnonymousUser(e){return t.send({op:"ConvertAnonymousUser",method:"POST",path:"/auth/anonymous/convert",auth:[["ApiKeyAuth","userJWT"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async verifyAnonymousConversion(e){return t.send({op:"VerifyAnonymousConversion",method:"POST",path:"/auth/anonymous/convert/verify",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async devicePendingRequest(e){return t.send({op:"DevicePendingRequest",method:"GET",path:"/auth/device/requests/"+n("DevicePendingRequest","user_code",e.path.user_code),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async deviceVerifyPage(e){return t.send({op:"DeviceVerifyPage",method:"GET",path:"/auth/device/verify",auth:[["ApiKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async deviceVerifySubmit(e){return t.send({op:"DeviceVerifySubmit",method:"POST",path:"/auth/device/verify",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async listDevices(e){return t.send({op:"ListDevices",method:"GET",path:"/auth/devices",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async attestAndroidDevice(e){return t.send({op:"AttestAndroidDevice",method:"POST",path:"/auth/devices/attest/android",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async attestIosDevice(e){return t.send({op:"AttestIOSDevice",method:"POST",path:"/auth/devices/attest/ios",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async bindDeviceKey(e){return t.send({op:"BindDeviceKey",method:"POST",path:"/auth/devices/bind",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createDeviceChallenge(e){return t.send({op:"CreateDeviceChallenge",method:"POST",path:"/auth/devices/challenge",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e?.headers,signal:e?.signal})},async verifyAndroidIntegrity(e){return t.send({op:"VerifyAndroidIntegrity",method:"POST",path:"/auth/devices/verify/android",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteDevice(e){return t.send({op:"DeleteDevice",method:"DELETE",path:"/auth/devices/"+n("DeleteDevice","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async verifyDeviceSignature(e){return t.send({op:"VerifyDeviceSignature",method:"POST",path:"/auth/devices/"+n("VerifyDeviceSignature","id",e.path.id)+"/verify",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listIdentities(e){return t.send({op:"ListIdentities",method:"GET",path:"/auth/identities",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async unlinkIdentity(e){return t.send({op:"UnlinkIdentity",method:"DELETE",path:"/auth/identities/"+n("UnlinkIdentity","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async createInstallation(e){return t.send({op:"CreateInstallation",method:"POST",path:"/auth/installations",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async bindInstallation(e){return t.send({op:"BindInstallation",method:"POST",path:"/auth/installations/"+n("BindInstallation","id",e.path.id)+"/bind",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async refreshInstallation(e){return t.send({op:"RefreshInstallation",method:"POST",path:"/auth/installations/"+n("RefreshInstallation","id",e.path.id)+"/refresh",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async revokeInstallation(e){return t.send({op:"RevokeInstallation",method:"POST",path:"/auth/installations/"+n("RevokeInstallation","id",e.path.id)+"/revoke",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async unbindInstallation(e){return t.send({op:"UnbindInstallation",method:"POST",path:"/auth/installations/"+n("UnbindInstallation","id",e.path.id)+"/unbind",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async login(e){return t.send({op:"Login",method:"POST",path:"/auth/login",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async logout(e){return t.send({op:"Logout",method:"POST",path:"/auth/logout",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async magicLinkRequest(e){return t.send({op:"MagicLinkRequest",method:"POST",path:"/auth/magic-link",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async magicLinkVerify(e){return t.send({op:"MagicLinkVerify",method:"POST",path:"/auth/magic-link/verify",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getMe(e){return t.send({op:"GetMe",method:"GET",path:"/auth/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async updateMe(e){return t.send({op:"UpdateMe",method:"PATCH",path:"/auth/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaChallenge(e){return t.send({op:"MfaChallenge",method:"POST",path:"/auth/mfa/challenge",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaEmailChallenge(e){return t.send({op:"MfaEmailChallenge",method:"POST",path:"/auth/mfa/email/challenge",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaEmailEnroll(e){return t.send({op:"MfaEmailEnroll",method:"POST",path:"/auth/mfa/email/enroll",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mfaEmailVerify(e){return t.send({op:"MfaEmailVerify",method:"POST",path:"/auth/mfa/email/verify",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaEnroll(e){return t.send({op:"MfaEnroll",method:"POST",path:"/auth/mfa/enroll",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaListFactors(e){return t.send({op:"MfaListFactors",method:"GET",path:"/auth/mfa/factors",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mfaRemoveFactor(e){return t.send({op:"MfaRemoveFactor",method:"DELETE",path:"/auth/mfa/factors/"+n("MfaRemoveFactor","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaRecovery(e){return t.send({op:"MfaRecovery",method:"POST",path:"/auth/mfa/recovery",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaRegenerateRecoveryCodes(e){return t.send({op:"MfaRegenerateRecoveryCodes",method:"POST",path:"/auth/mfa/recovery-codes/regenerate",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mfaSmsChallenge(e){return t.send({op:"MfaSMSChallenge",method:"POST",path:"/auth/mfa/sms/challenge",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaSmsEnroll(e){return t.send({op:"MfaSMSEnroll",method:"POST",path:"/auth/mfa/sms/enroll",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaSmsVerifyEnrollment(e){return t.send({op:"MfaSMSVerifyEnrollment",method:"POST",path:"/auth/mfa/sms/verify",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mfaVerifyEnrollment(e){return t.send({op:"MfaVerifyEnrollment",method:"POST",path:"/auth/mfa/verify",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async socialCallbackApple(e){return t.send({op:"SocialCallbackApple",method:"GET",path:"/auth/oauth/callback/apple",auth:[],answers:{},signal:e?.signal})},async socialCallbackApplePost(e){return t.send({op:"SocialCallbackApplePost",method:"POST",path:"/auth/oauth/callback/apple",auth:[],answers:{303:"redirect"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async socialCallbackGitHub(e){return t.send({op:"SocialCallbackGitHub",method:"GET",path:"/auth/oauth/callback/github",auth:[],answers:{303:"redirect"},query:e.query,signal:e.signal})},async socialCallbackGitHubPost(e){return t.send({op:"SocialCallbackGitHubPost",method:"POST",path:"/auth/oauth/callback/github",auth:[],answers:{},signal:e?.signal})},async socialCallbackGoogle(e){return t.send({op:"SocialCallbackGoogle",method:"GET",path:"/auth/oauth/callback/google",auth:[],answers:{303:"redirect"},query:e.query,signal:e.signal})},async socialCallbackGooglePost(e){return t.send({op:"SocialCallbackGooglePost",method:"POST",path:"/auth/oauth/callback/google",auth:[],answers:{},signal:e?.signal})},async socialCallbackMicrosoft(e){return t.send({op:"SocialCallbackMicrosoft",method:"GET",path:"/auth/oauth/callback/microsoft",auth:[],answers:{303:"redirect"},query:e.query,signal:e.signal})},async socialCallbackMicrosoftPost(e){return t.send({op:"SocialCallbackMicrosoftPost",method:"POST",path:"/auth/oauth/callback/microsoft",auth:[],answers:{},signal:e?.signal})},async socialConfig(e){return t.send({op:"SocialConfig",method:"GET",path:"/auth/oauth/config",auth:[["ApiKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async socialBegin(e){return t.send({op:"SocialBegin",method:"POST",path:"/auth/oauth/transactions",auth:[["ApiKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async socialCancel(e){return t.send({op:"SocialCancel",method:"POST",path:"/auth/oauth/transactions/"+n("SocialCancel","id",e.path.id)+"/cancel",auth:[["ApiKeyAuth"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async socialComplete(e){return t.send({op:"SocialComplete",method:"POST",path:"/auth/oauth/transactions/"+n("SocialComplete","id",e.path.id)+"/complete",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async requestPhoneOtp(e){return t.send({op:"RequestPhoneOTP",method:"POST",path:"/auth/otp",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async verifyPhoneOtp(e){return t.send({op:"VerifyPhoneOTP",method:"POST",path:"/auth/otp/verify",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async hostedRecoveryApprovalPage(e){return t.send({op:"HostedRecoveryApprovalPage",method:"GET",path:"/auth/pages/recovery-approval",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedRecoveryApprovalSubmit(e){return t.send({op:"HostedRecoveryApprovalSubmit",method:"POST",path:"/auth/pages/recovery-approval",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async hostedRecoveryContactPage(e){return t.send({op:"HostedRecoveryContactPage",method:"GET",path:"/auth/pages/recovery-contact",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedRecoveryContactSubmit(e){return t.send({op:"HostedRecoveryContactSubmit",method:"POST",path:"/auth/pages/recovery-contact",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async hostedResetPasswordPage(e){return t.send({op:"HostedResetPasswordPage",method:"GET",path:"/auth/pages/reset-password",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedResetPasswordSubmit(e){return t.send({op:"HostedResetPasswordSubmit",method:"POST",path:"/auth/pages/reset-password",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async hostedVerifyEmailPage(e){return t.send({op:"HostedVerifyEmailPage",method:"GET",path:"/auth/pages/verify-email",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedVerifyEmailSubmit(e){return t.send({op:"HostedVerifyEmailSubmit",method:"POST",path:"/auth/pages/verify-email",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async passwordChange(e){return t.send({op:"PasswordChange",method:"POST",path:"/auth/password/change",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async passwordResetRequest(e){return t.send({op:"PasswordResetRequest",method:"POST",path:"/auth/password/reset",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async passwordResetConfirm(e){return t.send({op:"PasswordResetConfirm",method:"POST",path:"/auth/password/reset/confirm",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async setPassword(e){return t.send({op:"SetPassword",method:"POST",path:"/auth/password/set",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async powChallenge(e){return t.send({op:"PowChallenge",method:"POST",path:"/auth/pow/challenge",auth:[["ApiKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async approveRecovery(e){return t.send({op:"ApproveRecovery",method:"POST",path:"/auth/recovery/approve",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listRecoveryContacts(e){return t.send({op:"ListRecoveryContacts",method:"GET",path:"/auth/recovery/contacts",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async addRecoveryContact(e){return t.send({op:"AddRecoveryContact",method:"POST",path:"/auth/recovery/contacts",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteRecoveryContact(e){return t.send({op:"DeleteRecoveryContact",method:"DELETE",path:"/auth/recovery/contacts/"+n("DeleteRecoveryContact","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async verifyRecoveryContact(e){return t.send({op:"VerifyRecoveryContact",method:"POST",path:"/auth/recovery/contacts/"+n("VerifyRecoveryContact","id",e.path.id)+"/verify",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async denyRecovery(e){return t.send({op:"DenyRecovery",method:"POST",path:"/auth/recovery/deny",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async initiateRecovery(e){return t.send({op:"InitiateRecovery",method:"POST",path:"/auth/recovery/initiate",auth:[["ApiKeyAuth"]],answers:{200:"json",202:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getRecoveryStatus(e){return t.send({op:"GetRecoveryStatus",method:"GET",path:"/auth/recovery/status",auth:[["ApiKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async resendVerification(e){return t.send({op:"ResendVerification",method:"POST",path:"/auth/resend-verification",auth:[["ApiKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSessions(e){return t.send({op:"ListSessions",method:"GET",path:"/auth/sessions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async revokeAllSessions(e){return t.send({op:"RevokeAllSessions",method:"DELETE",path:"/auth/sessions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async revokeSession(e){return t.send({op:"RevokeSession",method:"DELETE",path:"/auth/sessions/"+n("RevokeSession","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async signup(e){return t.send({op:"Signup",method:"POST",path:"/auth/signup",auth:[["ApiKeyAuth"]],answers:{201:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stepUp(e){return t.send({op:"StepUp",method:"POST",path:"/auth/step-up",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stepUpStatus(e){return t.send({op:"StepUpStatus",method:"GET",path:"/auth/step-up/status",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async stepUpWebAuthnBegin(e){return t.send({op:"StepUpWebAuthnBegin",method:"POST",path:"/auth/step-up/webauthn/begin",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async stepUpSmsSend(e){return t.send({op:"StepUpSMSSend",method:"POST",path:"/auth/step-up/sms/send",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async exchangeCustomToken(e){return t.send({op:"ExchangeCustomToken",method:"POST",path:"/auth/token/exchange",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async refreshToken(e){return t.send({op:"RefreshToken",method:"POST",path:"/auth/token/refresh",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revokeRefreshToken(e){return t.send({op:"RevokeRefreshToken",method:"POST",path:"/auth/token/revoke",auth:[["ApiKeyAuth"]],answers:{200:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTransactions(e){return t.send({op:"ListTransactions",method:"GET",path:"/auth/transactions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createTransaction(e){return t.send({op:"CreateTransaction",method:"POST",path:"/auth/transactions",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getTransaction(e){return t.send({op:"GetTransaction",method:"GET",path:"/auth/transactions/"+n("GetTransaction","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async approveTransaction(e){return t.send({op:"ApproveTransaction",method:"POST",path:"/auth/transactions/"+n("ApproveTransaction","id",e.path.id)+"/approve",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async denyTransaction(e){return t.send({op:"DenyTransaction",method:"POST",path:"/auth/transactions/"+n("DenyTransaction","id",e.path.id)+"/deny",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTrustedDevices(e){return t.send({op:"ListTrustedDevices",method:"GET",path:"/auth/trusted-devices",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async registerTrustedDevice(e){return t.send({op:"RegisterTrustedDevice",method:"POST",path:"/auth/trusted-devices",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revokeTrustedDevice(e){return t.send({op:"RevokeTrustedDevice",method:"DELETE",path:"/auth/trusted-devices/"+n("RevokeTrustedDevice","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async verifyTokenUser(e){return t.send({op:"VerifyTokenUser",method:"GET",path:"/auth/user",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async deleteAccount(e){return t.send({op:"DeleteAccount",method:"DELETE",path:"/auth/user",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async verifyEmail(e){return t.send({op:"VerifyEmail",method:"POST",path:"/auth/verify-email",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnListCredentials(e){return t.send({op:"WebauthnListCredentials",method:"GET",path:"/auth/webauthn/credentials",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async webauthnRenameCredential(e){return t.send({op:"WebauthnRenameCredential",method:"PUT",path:"/auth/webauthn/credentials/"+n("WebauthnRenameCredential","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnDeleteCredential(e){return t.send({op:"WebauthnDeleteCredential",method:"DELETE",path:"/auth/webauthn/credentials/"+n("WebauthnDeleteCredential","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async webauthnLoginBegin(e){return t.send({op:"WebauthnLoginBegin",method:"POST",path:"/auth/webauthn/login/begin",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async webauthnLoginFinish(e){return t.send({op:"WebauthnLoginFinish",method:"POST",path:"/auth/webauthn/login/finish",auth:[["ApiKeyAuth"]],answers:{200:"json"},query:e.query,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnRecoveryBegin(e){return t.send({op:"WebauthnRecoveryBegin",method:"POST",path:"/auth/webauthn/recovery/begin",auth:[["ApiKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async webauthnRecoveryFinish(e){return t.send({op:"WebauthnRecoveryFinish",method:"POST",path:"/auth/webauthn/recovery/finish",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnRecoveryRegisterBegin(e){return t.send({op:"WebauthnRecoveryRegisterBegin",method:"POST",path:"/auth/webauthn/recovery/register/begin",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async webauthnRecoveryRegisterFinish(e){return t.send({op:"WebauthnRecoveryRegisterFinish",method:"POST",path:"/auth/webauthn/recovery/register/finish",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnRegisterBegin(e){return t.send({op:"WebauthnRegisterBegin",method:"POST",path:"/auth/webauthn/register/begin",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async webauthnRegisterFinish(e){return t.send({op:"WebauthnRegisterFinish",method:"POST",path:"/auth/webauthn/register/finish",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnSignupBegin(e){return t.send({op:"WebauthnSignupBegin",method:"POST",path:"/auth/webauthn/signup/begin",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async webauthnSignupFinish(e){return t.send({op:"WebauthnSignupFinish",method:"POST",path:"/auth/webauthn/signup/finish",auth:[["ApiKeyAuth"]],answers:{201:"json"},query:e.query,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async oauthAuthorize(e){return t.send({op:"OauthAuthorize",method:"GET",path:"/oauth/authorize",auth:[],answers:{302:"redirect",303:"redirect"},query:e?.query,signal:e?.signal})},async oauthAuthorizePost(e){return t.send({op:"OauthAuthorizePost",method:"POST",path:"/oauth/authorize",auth:[],answers:{302:"redirect",303:"redirect"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async oauthAuthorizeCallback(e){return t.send({op:"OauthAuthorizeCallback",method:"GET",path:"/oauth/authorize/callback",auth:[],answers:{303:"redirect"},query:e.query,signal:e.signal})},async oauthAuthorizeEmailLink(e){return t.send({op:"OauthAuthorizeEmailLink",method:"GET",path:"/oauth/authorize/email",auth:[],answers:{200:"raw",303:"redirect"},query:e.query,signal:e.signal})},async oauthDeviceAuthorize(e){return t.send({op:"OauthDeviceAuthorize",method:"POST",path:"/oauth/device",auth:[["OAuthClient"],[]],answers:{200:"json"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async oauthIntrospect(e){return t.send({op:"OauthIntrospect",method:"POST",path:"/oauth/introspect",auth:[["AdminAuth"],["OAuthClient"],[]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async oauthLogout(e){return t.send({op:"OauthLogout",method:"GET",path:"/oauth/logout",auth:[],answers:{302:"redirect"},query:e?.query,signal:e?.signal})},async oauthLogoutPost(e){return t.send({op:"OauthLogoutPost",method:"POST",path:"/oauth/logout",auth:[],answers:{302:"redirect"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e?.body},signal:e?.signal})},async oauthPar(e){return t.send({op:"OauthPAR",method:"POST",path:"/oauth/par",auth:[["OAuthClient"],[]],answers:{201:"json"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async oauthRevoke(e){return t.send({op:"OauthRevoke",method:"POST",path:"/oauth/revoke",auth:[["OAuthClient"],[]],answers:{200:"empty"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async oauthToken(e){return t.send({op:"OauthToken",method:"POST",path:"/oauth/token",auth:[["OAuthClient"],[]],answers:{200:"json"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async oauthUserinfo(e){return t.send({op:"OauthUserinfo",method:"GET",path:"/oauth/userinfo",auth:[["OAuthAccessToken"]],answers:{200:"json"},signal:e?.signal})},async oauthUserinfoPost(e){return t.send({op:"OauthUserinfoPost",method:"POST",path:"/oauth/userinfo",auth:[["OAuthAccessToken"]],answers:{200:"json"},signal:e?.signal})},async ownerCliCode(e){return t.send({op:"OwnerCLICode",method:"POST",path:"/auth/cli/owner-code",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listConsentKeys(e){return t.send({op:"ListConsentKeys",method:"GET",path:"/auth/consents/keys",auth:[["ApiKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getConsents(e){return t.send({op:"GetConsents",method:"GET",path:"/auth/consents",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,headers:e.headers,signal:e.signal})},async chooseConsents(e){return t.send({op:"ChooseConsents",method:"PUT",path:"/auth/consents",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async linkConsents(e){return t.send({op:"LinkConsents",method:"POST",path:"/auth/consents/link",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetInstallationConsents(e){return t.send({op:"AdminGetInstallationConsents",method:"GET",path:"/admin/installations/"+n("AdminGetInstallationConsents","installation_id",e.path.installation_id)+"/consents",auth:[["AdminAuth"]],answers:{200:"json"},signal:e.signal})},async adminRefuseConsents(e){return t.send({op:"AdminRefuseConsents",method:"POST",path:"/admin/consents/refuse",auth:[["AdminAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminInviteUser(e){return t.send({op:"AdminInviteUser",method:"POST",path:"/admin/users/invite",auth:[["AdminAuth"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async acceptInvitation(e){return t.send({op:"AcceptInvitation",method:"POST",path:"/auth/invitations/accept",auth:[["ApiKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async hostedAcceptInvitationPage(e){return t.send({op:"HostedAcceptInvitationPage",method:"GET",path:"/auth/pages/accept-invitation",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedAcceptInvitationSubmit(e){return t.send({op:"HostedAcceptInvitationSubmit",method:"POST",path:"/auth/pages/accept-invitation",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async hostedNotMePage(e){return t.send({op:"HostedNotMePage",method:"GET",path:"/auth/pages/not-me",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async hostedNotMeSubmit(e){return t.send({op:"HostedNotMeSubmit",method:"POST",path:"/auth/pages/not-me",auth:[],answers:{200:"raw"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})}}}var o={};s(o,{client:()=>f});function f(t){return{async getCacheEntry(e){return t.send({op:"GetCacheEntry",method:"GET",path:"/cache/entry",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async putCacheEntry(e){return t.send({op:"PutCacheEntry",method:"PUT",path:"/cache/entry",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteCacheEntry(e){return t.send({op:"DeleteCacheEntry",method:"DELETE",path:"/cache/entry",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async incrementCacheEntry(e){return t.send({op:"IncrementCacheEntry",method:"POST",path:"/cache/entry/increment",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getCacheUsage(e){return t.send({op:"GetCacheUsage",method:"GET",path:"/cache/usage",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})}}}var l={};s(l,{client:()=>T});function T(t){return{async listCalls(e){return t.send({op:"ListCalls",method:"GET",path:"/calls",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async startCall(e){return t.send({op:"StartCall",method:"POST",path:"/calls",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListCalls(e){return t.send({op:"AdminListCalls",method:"GET",path:"/calls/admin/calls",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminGetCall(e){return t.send({op:"AdminGetCall",method:"GET",path:"/calls/admin/calls/"+n("AdminGetCall","call_id",e.path.call_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminEndCall(e){return t.send({op:"AdminEndCall",method:"POST",path:"/calls/admin/calls/"+n("AdminEndCall","call_id",e.path.call_id)+"/end",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createCallTicket(e){return t.send({op:"CreateCallTicket",method:"POST",path:"/calls/admin/calls/"+n("CreateCallTicket","call_id",e.path.call_id)+"/tickets",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetCallTranscription(e){return t.send({op:"AdminGetCallTranscription",method:"GET",path:"/calls/admin/calls/"+n("AdminGetCallTranscription","call_id",e.path.call_id)+"/transcription",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async adminStartCallTranscription(e){return t.send({op:"AdminStartCallTranscription",method:"POST",path:"/calls/admin/calls/"+n("AdminStartCallTranscription","call_id",e.path.call_id)+"/transcription",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminStopCallTranscription(e){return t.send({op:"AdminStopCallTranscription",method:"DELETE",path:"/calls/admin/calls/"+n("AdminStopCallTranscription","call_id",e.path.call_id)+"/transcription",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminIngestCallTranscriptionAudio(e){return t.send({op:"AdminIngestCallTranscriptionAudio",method:"POST",path:"/calls/admin/calls/"+n("AdminIngestCallTranscriptionAudio","call_id",e.path.call_id)+"/transcription/audio",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},body:{kind:"raw",contentType:e.contentType??"multipart/form-data",value:e.body},signal:e.signal})},async getCallPlace(e){return t.send({op:"GetCallPlace",method:"GET",path:"/calls/places/"+n("GetCallPlace","place",e.path.place),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async watchCallPlace(e){return t.send({op:"WatchCallPlace",method:"POST",path:"/calls/places/"+n("WatchCallPlace","place",e.path.place)+"/watch",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async unwatchCallPlace(e){return t.send({op:"UnwatchCallPlace",method:"DELETE",path:"/calls/places/"+n("UnwatchCallPlace","place",e.path.place)+"/watch",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async getCallSettings(e){return t.send({op:"GetCallSettings",method:"GET",path:"/calls/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putCallSettings(e){return t.send({op:"PutCallSettings",method:"PUT",path:"/calls/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rotateCallHookSecret(e){return t.send({op:"RotateCallHookSecret",method:"POST",path:"/calls/settings/hook-secret",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getCall(e){return t.send({op:"GetCall",method:"GET",path:"/calls/"+n("GetCall","call_id",e.path.call_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async acceptCall(e){return t.send({op:"AcceptCall",method:"POST",path:"/calls/"+n("AcceptCall","call_id",e.path.call_id)+"/accept",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async declineCall(e){return t.send({op:"DeclineCall",method:"POST",path:"/calls/"+n("DeclineCall","call_id",e.path.call_id)+"/decline",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async callHeartbeat(e){return t.send({op:"CallHeartbeat",method:"POST",path:"/calls/"+n("CallHeartbeat","call_id",e.path.call_id)+"/heartbeat",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async joinCall(e){return t.send({op:"JoinCall",method:"POST",path:"/calls/"+n("JoinCall","call_id",e.path.call_id)+"/join",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async leaveCall(e){return t.send({op:"LeaveCall",method:"POST",path:"/calls/"+n("LeaveCall","call_id",e.path.call_id)+"/leave",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async getCallMedia(e){return t.send({op:"GetCallMedia",method:"POST",path:"/calls/"+n("GetCallMedia","call_id",e.path.call_id)+"/media",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async inviteToCall(e){return t.send({op:"InviteToCall",method:"POST",path:"/calls/"+n("InviteToCall","call_id",e.path.call_id)+"/participants",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCallTranscription(e){return t.send({op:"GetCallTranscription",method:"GET",path:"/calls/"+n("GetCallTranscription","call_id",e.path.call_id)+"/transcription",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async ingestCallTranscriptionAudio(e){return t.send({op:"IngestCallTranscriptionAudio",method:"POST",path:"/calls/"+n("IngestCallTranscriptionAudio","call_id",e.path.call_id)+"/transcription/audio",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json",201:"json"},body:{kind:"raw",contentType:e.contentType??"multipart/form-data",value:e.body},signal:e.signal})}}}var p={};s(p,{client:()=>x});function x(t){return{async listBroadcasts(e){return t.send({op:"ListBroadcasts",method:"GET",path:"/campaigns/broadcasts",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createBroadcast(e){return t.send({op:"CreateBroadcast",method:"POST",path:"/campaigns/broadcasts",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async recordBroadcastConversion(e){return t.send({op:"RecordBroadcastConversion",method:"POST",path:"/campaigns/broadcasts/conversions",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getBroadcast(e){return t.send({op:"GetBroadcast",method:"GET",path:"/campaigns/broadcasts/"+n("GetBroadcast","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateBroadcast(e){return t.send({op:"UpdateBroadcast",method:"PUT",path:"/campaigns/broadcasts/"+n("UpdateBroadcast","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteBroadcast(e){return t.send({op:"DeleteBroadcast",method:"DELETE",path:"/campaigns/broadcasts/"+n("DeleteBroadcast","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async cancelBroadcast(e){return t.send({op:"CancelBroadcast",method:"POST",path:"/campaigns/broadcasts/"+n("CancelBroadcast","id",e.path.id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async pauseBroadcast(e){return t.send({op:"PauseBroadcast",method:"POST",path:"/campaigns/broadcasts/"+n("PauseBroadcast","id",e.path.id)+"/pause",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async startBroadcast(e){return t.send({op:"StartBroadcast",method:"POST",path:"/campaigns/broadcasts/"+n("StartBroadcast","id",e.path.id)+"/start",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getBroadcastStats(e){return t.send({op:"GetBroadcastStats",method:"GET",path:"/campaigns/broadcasts/"+n("GetBroadcastStats","id",e.path.id)+"/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listTrackingLinks(e){return t.send({op:"ListTrackingLinks",method:"GET",path:"/campaigns/links",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createTrackingLink(e){return t.send({op:"CreateTrackingLink",method:"POST",path:"/campaigns/links",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async attributeLinkConversion(e){return t.send({op:"AttributeLinkConversion",method:"POST",path:"/campaigns/links/attribute",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getTrackingLink(e){return t.send({op:"GetTrackingLink",method:"GET",path:"/campaigns/links/"+n("GetTrackingLink","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateTrackingLink(e){return t.send({op:"UpdateTrackingLink",method:"PUT",path:"/campaigns/links/"+n("UpdateTrackingLink","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteTrackingLink(e){return t.send({op:"DeleteTrackingLink",method:"DELETE",path:"/campaigns/links/"+n("DeleteTrackingLink","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async getTrackingLinkStats(e){return t.send({op:"GetTrackingLinkStats",method:"GET",path:"/campaigns/links/"+n("GetTrackingLinkStats","id",e.path.id)+"/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listOnSiteCampaigns(e){return t.send({op:"ListOnSiteCampaigns",method:"GET",path:"/campaigns/onsite",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createOnSiteCampaign(e){return t.send({op:"CreateOnSiteCampaign",method:"POST",path:"/campaigns/onsite",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createOnSiteImpression(e){return t.send({op:"CreateOnSiteImpression",method:"POST",path:"/campaigns/onsite/impressions",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async recordOnSiteEvent(e){return t.send({op:"RecordOnSiteEvent",method:"POST",path:"/campaigns/onsite/impressions/"+n("RecordOnSiteEvent","id",e.path.id)+"/events",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listOnSiteMessages(e){return t.send({op:"ListOnSiteMessages",method:"GET",path:"/campaigns/onsite/messages",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getOnSiteSettings(e){return t.send({op:"GetOnSiteSettings",method:"GET",path:"/campaigns/onsite/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putOnSiteSettings(e){return t.send({op:"PutOnSiteSettings",method:"PUT",path:"/campaigns/onsite/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listOnSiteTemplates(e){return t.send({op:"ListOnSiteTemplates",method:"GET",path:"/campaigns/onsite/templates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getOnSiteCampaign(e){return t.send({op:"GetOnSiteCampaign",method:"GET",path:"/campaigns/onsite/"+n("GetOnSiteCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateOnSiteCampaign(e){return t.send({op:"UpdateOnSiteCampaign",method:"PUT",path:"/campaigns/onsite/"+n("UpdateOnSiteCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteOnSiteCampaign(e){return t.send({op:"DeleteOnSiteCampaign",method:"DELETE",path:"/campaigns/onsite/"+n("DeleteOnSiteCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async getOnSiteCampaignStats(e){return t.send({op:"GetOnSiteCampaignStats",method:"GET",path:"/campaigns/onsite/"+n("GetOnSiteCampaignStats","id",e.path.id)+"/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async redirectTrackingLink(e){return t.send({op:"RedirectTrackingLink",method:"GET",path:"/l/"+n("RedirectTrackingLink","slug",e.path.slug),auth:[[]],answers:{302:"redirect"},signal:e.signal})},async headTrackingLink(e){return t.send({op:"HeadTrackingLink",method:"HEAD",path:"/l/"+n("HeadTrackingLink","slug",e.path.slug),auth:[[]],answers:{302:"redirect"},signal:e.signal})}}}var d={};s(d,{client:()=>C});function C(t){return{async listBrands(e){return t.send({op:"ListBrands",method:"GET",path:"/commerce/brands",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createBrand(e){return t.send({op:"CreateBrand",method:"POST",path:"/commerce/brands",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createCart(e){return t.send({op:"CreateCart",method:"POST",path:"/commerce/carts",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCart(e){return t.send({op:"GetCart",method:"GET",path:"/commerce/carts/"+n("GetCart","cart_id",e.path.cart_id),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateCart(e){return t.send({op:"UpdateCart",method:"PATCH",path:"/commerce/carts/"+n("UpdateCart","cart_id",e.path.cart_id),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async checkoutCart(e){return t.send({op:"CheckoutCart",method:"POST",path:"/commerce/carts/"+n("CheckoutCart","cart_id",e.path.cart_id)+"/checkout",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addCartItem(e){return t.send({op:"AddCartItem",method:"POST",path:"/commerce/carts/"+n("AddCartItem","cart_id",e.path.cart_id)+"/items",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteCartItem(e){return t.send({op:"DeleteCartItem",method:"DELETE",path:"/commerce/carts/"+n("DeleteCartItem","cart_id",e.path.cart_id)+"/items/"+n("DeleteCartItem","line_id",e.path.line_id),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateCartItem(e){return t.send({op:"UpdateCartItem",method:"PATCH",path:"/commerce/carts/"+n("UpdateCartItem","cart_id",e.path.cart_id)+"/items/"+n("UpdateCartItem","line_id",e.path.line_id),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async mergeGuestCart(e){return t.send({op:"MergeGuestCart",method:"POST",path:"/commerce/carts/"+n("MergeGuestCart","cart_id",e.path.cart_id)+"/merge",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async applyCartPromoCode(e){return t.send({op:"ApplyCartPromoCode",method:"POST",path:"/commerce/carts/"+n("ApplyCartPromoCode","cart_id",e.path.cart_id)+"/promo-codes",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeCartPromoCode(e){return t.send({op:"RemoveCartPromoCode",method:"DELETE",path:"/commerce/carts/"+n("RemoveCartPromoCode","cart_id",e.path.cart_id)+"/promo-codes/"+n("RemoveCartPromoCode","code",e.path.code),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async selectCartShipping(e){return t.send({op:"SelectCartShipping",method:"POST",path:"/commerce/carts/"+n("SelectCartShipping","cart_id",e.path.cart_id)+"/shipping",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async storefrontListBrands(e){return t.send({op:"StorefrontListBrands",method:"GET",path:"/commerce/catalog/brands",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async storefrontListCategories(e){return t.send({op:"StorefrontListCategories",method:"GET",path:"/commerce/catalog/categories",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async storefrontListChannels(e){return t.send({op:"StorefrontListChannels",method:"GET",path:"/commerce/catalog/channels",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async storefrontListCollections(e){return t.send({op:"StorefrontListCollections",method:"GET",path:"/commerce/catalog/collections",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async storefrontListProducts(e){return t.send({op:"StorefrontListProducts",method:"GET",path:"/commerce/catalog/products",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async storefrontSearchProducts(e){return t.send({op:"StorefrontSearchProducts",method:"POST",path:"/commerce/catalog/search",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async storefrontSuggest(e){return t.send({op:"StorefrontSuggest",method:"GET",path:"/commerce/catalog/suggest",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async storefrontRecommendProducts(e){return t.send({op:"StorefrontRecommendProducts",method:"POST",path:"/commerce/catalog/recommend",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async storefrontProductRecommendations(e){return t.send({op:"StorefrontProductRecommendations",method:"GET",path:"/commerce/catalog/products/"+n("StorefrontProductRecommendations","product_id_or_handle",e.path.product_id_or_handle)+"/recommendations",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async storefrontGetProduct(e){return t.send({op:"StorefrontGetProduct",method:"GET",path:"/commerce/catalog/products/"+n("StorefrontGetProduct","product_id_or_handle",e.path.product_id_or_handle),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async storefrontListProductReviews(e){return t.send({op:"StorefrontListProductReviews",method:"GET",path:"/commerce/catalog/products/"+n("StorefrontListProductReviews","product_id_or_handle",e.path.product_id_or_handle)+"/reviews",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async storefrontListRegions(e){return t.send({op:"StorefrontListRegions",method:"GET",path:"/commerce/catalog/regions",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async storefrontListStores(e){return t.send({op:"StorefrontListStores",method:"GET",path:"/commerce/catalog/stores",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async storefrontGetStore(e){return t.send({op:"StorefrontGetStore",method:"GET",path:"/commerce/catalog/stores/"+n("StorefrontGetStore","store_id_or_slug",e.path.store_id_or_slug),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async storefrontListStoreReviews(e){return t.send({op:"StorefrontListStoreReviews",method:"GET",path:"/commerce/catalog/stores/"+n("StorefrontListStoreReviews","store_id_or_slug",e.path.store_id_or_slug)+"/reviews",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listCategories(e){return t.send({op:"ListCategories",method:"GET",path:"/commerce/categories",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createCategory(e){return t.send({op:"CreateCategory",method:"POST",path:"/commerce/categories",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listChannels(e){return t.send({op:"ListChannels",method:"GET",path:"/commerce/channels",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createChannel(e){return t.send({op:"CreateChannel",method:"POST",path:"/commerce/channels",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async attachChannelRegion(e){return t.send({op:"AttachChannelRegion",method:"PUT",path:"/commerce/channels/"+n("AttachChannelRegion","channel_id",e.path.channel_id)+"/regions/"+n("AttachChannelRegion","region_id",e.path.region_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async attachChannelStore(e){return t.send({op:"AttachChannelStore",method:"PUT",path:"/commerce/channels/"+n("AttachChannelStore","channel_id",e.path.channel_id)+"/stores/"+n("AttachChannelStore","store_id",e.path.store_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async detachChannelStore(e){return t.send({op:"DetachChannelStore",method:"DELETE",path:"/commerce/channels/"+n("DetachChannelStore","channel_id",e.path.channel_id)+"/stores/"+n("DetachChannelStore","store_id",e.path.store_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listCollections(e){return t.send({op:"ListCollections",method:"GET",path:"/commerce/collections",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createCollection(e){return t.send({op:"CreateCollection",method:"POST",path:"/commerce/collections",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addCollectionProduct(e){return t.send({op:"AddCollectionProduct",method:"PUT",path:"/commerce/collections/"+n("AddCollectionProduct","collection_id",e.path.collection_id)+"/products/"+n("AddCollectionProduct","product_id",e.path.product_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async removeCollectionProduct(e){return t.send({op:"RemoveCollectionProduct",method:"DELETE",path:"/commerce/collections/"+n("RemoveCollectionProduct","collection_id",e.path.collection_id)+"/products/"+n("RemoveCollectionProduct","product_id",e.path.product_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createDigitalAsset(e){return t.send({op:"CreateDigitalAsset",method:"POST",path:"/commerce/digital-assets",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateFulfillment(e){return t.send({op:"UpdateFulfillment",method:"PATCH",path:"/commerce/fulfillments/"+n("UpdateFulfillment","fulfillment_id",e.path.fulfillment_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addShipmentEvent(e){return t.send({op:"AddShipmentEvent",method:"POST",path:"/commerce/fulfillments/"+n("AddShipmentEvent","fulfillment_id",e.path.fulfillment_id)+"/events",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listDiscoveryStrategies(e){return t.send({op:"ListDiscoveryStrategies",method:"GET",path:"/commerce/discovery/strategies",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createDiscoveryStrategy(e){return t.send({op:"CreateDiscoveryStrategy",method:"POST",path:"/commerce/discovery/strategies",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getDiscoveryStrategy(e){return t.send({op:"GetDiscoveryStrategy",method:"GET",path:"/commerce/discovery/strategies/"+n("GetDiscoveryStrategy","strategy_id",e.path.strategy_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteDiscoveryStrategy(e){return t.send({op:"DeleteDiscoveryStrategy",method:"DELETE",path:"/commerce/discovery/strategies/"+n("DeleteDiscoveryStrategy","strategy_id",e.path.strategy_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateDiscoveryStrategy(e){return t.send({op:"UpdateDiscoveryStrategy",method:"PATCH",path:"/commerce/discovery/strategies/"+n("UpdateDiscoveryStrategy","strategy_id",e.path.strategy_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMerchandisingRules(e){return t.send({op:"ListMerchandisingRules",method:"GET",path:"/commerce/discovery/rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createMerchandisingRule(e){return t.send({op:"CreateMerchandisingRule",method:"POST",path:"/commerce/discovery/rules",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getMerchandisingRule(e){return t.send({op:"GetMerchandisingRule",method:"GET",path:"/commerce/discovery/rules/"+n("GetMerchandisingRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteMerchandisingRule(e){return t.send({op:"DeleteMerchandisingRule",method:"DELETE",path:"/commerce/discovery/rules/"+n("DeleteMerchandisingRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateMerchandisingRule(e){return t.send({op:"UpdateMerchandisingRule",method:"PATCH",path:"/commerce/discovery/rules/"+n("UpdateMerchandisingRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSearchSynonyms(e){return t.send({op:"ListSearchSynonyms",method:"GET",path:"/commerce/discovery/synonyms",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createSearchSynonym(e){return t.send({op:"CreateSearchSynonym",method:"POST",path:"/commerce/discovery/synonyms",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteSearchSynonym(e){return t.send({op:"DeleteSearchSynonym",method:"DELETE",path:"/commerce/discovery/synonyms/"+n("DeleteSearchSynonym","synonym_id",e.path.synonym_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async refreshDiscoverySignals(e){return t.send({op:"RefreshDiscoverySignals",method:"POST",path:"/commerce/discovery/signals/refresh",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listHooks(e){return t.send({op:"ListHooks",method:"GET",path:"/commerce/hooks",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async upsertHook(e){return t.send({op:"UpsertHook",method:"POST",path:"/commerce/hooks",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteHook(e){return t.send({op:"DeleteHook",method:"DELETE",path:"/commerce/hooks/"+n("DeleteHook","hook_id",e.path.hook_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listInventory(e){return t.send({op:"ListInventory",method:"GET",path:"/commerce/inventory",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adjustInventory(e){return t.send({op:"AdjustInventory",method:"POST",path:"/commerce/inventory/adjust",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async bulkSyncInventory(e){return t.send({op:"BulkSyncInventory",method:"POST",path:"/commerce/inventory/bulk-sync",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listInventoryMovements(e){return t.send({op:"ListInventoryMovements",method:"GET",path:"/commerce/inventory/movements",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listInvoices(e){return t.send({op:"ListInvoices",method:"GET",path:"/commerce/invoices",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createInvoice(e){return t.send({op:"CreateInvoice",method:"POST",path:"/commerce/invoices",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateInvoice(e){return t.send({op:"UpdateInvoice",method:"PATCH",path:"/commerce/invoices/"+n("UpdateInvoice","invoice_id",e.path.invoice_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listListings(e){return t.send({op:"ListListings",method:"GET",path:"/commerce/listings",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createListing(e){return t.send({op:"CreateListing",method:"POST",path:"/commerce/listings",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateListing(e){return t.send({op:"UpdateListing",method:"PATCH",path:"/commerce/listings/"+n("UpdateListing","listing_id",e.path.listing_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async importLicenseKeys(e){return t.send({op:"ImportLicenseKeys",method:"POST",path:"/commerce/listings/"+n("ImportLicenseKeys","listing_id",e.path.listing_id)+"/license-keys",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async upsertPrice(e){return t.send({op:"UpsertPrice",method:"POST",path:"/commerce/listings/"+n("UpsertPrice","listing_id",e.path.listing_id)+"/prices",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMyOrders(e){return t.send({op:"ListMyOrders",method:"GET",path:"/commerce/me/orders",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getMyOrder(e){return t.send({op:"GetMyOrder",method:"GET",path:"/commerce/me/orders/"+n("GetMyOrder","order_id",e.path.order_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async getMyOrderDownloads(e){return t.send({op:"GetMyOrderDownloads",method:"GET",path:"/commerce/me/orders/"+n("GetMyOrderDownloads","order_id",e.path.order_id)+"/downloads",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async createProductReview(e){return t.send({op:"CreateProductReview",method:"POST",path:"/commerce/me/products/"+n("CreateProductReview","product_id_or_handle",e.path.product_id_or_handle)+"/reviews",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMyReturns(e){return t.send({op:"ListMyReturns",method:"GET",path:"/commerce/me/returns",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async listMyReviews(e){return t.send({op:"ListMyReviews",method:"GET",path:"/commerce/me/reviews",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mintReviewUploadUrl(e){return t.send({op:"MintReviewUploadURL",method:"POST",path:"/commerce/me/reviews/upload-url",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMyReview(e){return t.send({op:"DeleteMyReview",method:"DELETE",path:"/commerce/me/reviews/"+n("DeleteMyReview","review_id",e.path.review_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async voteReview(e){return t.send({op:"VoteReview",method:"POST",path:"/commerce/me/reviews/"+n("VoteReview","review_id",e.path.review_id)+"/vote",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async requestMyReturn(e){return t.send({op:"RequestMyReturn",method:"POST",path:"/commerce/me/store-orders/"+n("RequestMyReturn","store_order_id",e.path.store_order_id)+"/returns",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createStoreReview(e){return t.send({op:"CreateStoreReview",method:"POST",path:"/commerce/me/stores/"+n("CreateStoreReview","store_id_or_slug",e.path.store_id_or_slug)+"/reviews",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createMediaAsset(e){return t.send({op:"CreateMediaAsset",method:"POST",path:"/commerce/media",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listOrders(e){return t.send({op:"ListOrders",method:"GET",path:"/commerce/orders",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getGuestOrder(e){return t.send({op:"GetGuestOrder",method:"GET",path:"/commerce/orders/guest/"+n("GetGuestOrder","order_number",e.path.order_number),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getOrder(e){return t.send({op:"GetOrder",method:"GET",path:"/commerce/orders/"+n("GetOrder","order_id",e.path.order_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async markOrderPaid(e){return t.send({op:"MarkOrderPaid",method:"POST",path:"/commerce/orders/"+n("MarkOrderPaid","order_id",e.path.order_id)+"/mark-paid",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPriceLists(e){return t.send({op:"ListPriceLists",method:"GET",path:"/commerce/price-lists",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createPriceList(e){return t.send({op:"CreatePriceList",method:"POST",path:"/commerce/price-lists",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listProducts(e){return t.send({op:"ListProducts",method:"GET",path:"/commerce/products",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createProduct(e){return t.send({op:"CreateProduct",method:"POST",path:"/commerce/products",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createQuickProduct(e){return t.send({op:"CreateQuickProduct",method:"POST",path:"/commerce/products/quick",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getProduct(e){return t.send({op:"GetProduct",method:"GET",path:"/commerce/products/"+n("GetProduct","product_id",e.path.product_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateProduct(e){return t.send({op:"UpdateProduct",method:"PATCH",path:"/commerce/products/"+n("UpdateProduct","product_id",e.path.product_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async approveProduct(e){return t.send({op:"ApproveProduct",method:"POST",path:"/commerce/products/"+n("ApproveProduct","product_id",e.path.product_id)+"/approval",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async upsertProductOption(e){return t.send({op:"UpsertProductOption",method:"POST",path:"/commerce/products/"+n("UpsertProductOption","product_id",e.path.product_id)+"/options",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createVariant(e){return t.send({op:"CreateVariant",method:"POST",path:"/commerce/products/"+n("CreateVariant","product_id",e.path.product_id)+"/variants",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listRegions(e){return t.send({op:"ListRegions",method:"GET",path:"/commerce/regions",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createRegion(e){return t.send({op:"CreateRegion",method:"POST",path:"/commerce/regions",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateRegion(e){return t.send({op:"UpdateRegion",method:"PATCH",path:"/commerce/regions/"+n("UpdateRegion","region_id",e.path.region_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listReturns(e){return t.send({op:"ListReturns",method:"GET",path:"/commerce/returns",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async approveReturn(e){return t.send({op:"ApproveReturn",method:"POST",path:"/commerce/returns/"+n("ApproveReturn","return_id",e.path.return_id)+"/approve",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rejectReturn(e){return t.send({op:"RejectReturn",method:"POST",path:"/commerce/returns/"+n("RejectReturn","return_id",e.path.return_id)+"/reject",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async completeReturn(e){return t.send({op:"CompleteReturn",method:"POST",path:"/commerce/returns/"+n("CompleteReturn","return_id",e.path.return_id)+"/complete",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveReturn(e){return t.send({op:"ReceiveReturn",method:"POST",path:"/commerce/returns/"+n("ReceiveReturn","return_id",e.path.return_id)+"/receive",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListReviews(e){return t.send({op:"AdminListReviews",method:"GET",path:"/commerce/reviews",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminDeleteReview(e){return t.send({op:"AdminDeleteReview",method:"DELETE",path:"/commerce/reviews/"+n("AdminDeleteReview","review_id",e.path.review_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async adminModerateReview(e){return t.send({op:"AdminModerateReview",method:"PATCH",path:"/commerce/reviews/"+n("AdminModerateReview","review_id",e.path.review_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCommerceSettings(e){return t.send({op:"GetCommerceSettings",method:"GET",path:"/commerce/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async updateCommerceSettings(e){return t.send({op:"UpdateCommerceSettings",method:"PUT",path:"/commerce/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSettlements(e){return t.send({op:"ListSettlements",method:"GET",path:"/commerce/settlements",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async generateSettlement(e){return t.send({op:"GenerateSettlement",method:"POST",path:"/commerce/settlements/generate",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async markSettlementPaid(e){return t.send({op:"MarkSettlementPaid",method:"POST",path:"/commerce/settlements/"+n("MarkSettlementPaid","settlement_id",e.path.settlement_id)+"/mark-paid",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listShippingOptions(e){return t.send({op:"ListShippingOptions",method:"GET",path:"/commerce/shipping-options",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createShippingOption(e){return t.send({op:"CreateShippingOption",method:"POST",path:"/commerce/shipping-options",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listShippingProfiles(e){return t.send({op:"ListShippingProfiles",method:"GET",path:"/commerce/shipping-profiles",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createShippingProfile(e){return t.send({op:"CreateShippingProfile",method:"POST",path:"/commerce/shipping-profiles",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listStockLocations(e){return t.send({op:"ListStockLocations",method:"GET",path:"/commerce/stock-locations",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createStockLocation(e){return t.send({op:"CreateStockLocation",method:"POST",path:"/commerce/stock-locations",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listStoreOrders(e){return t.send({op:"ListStoreOrders",method:"GET",path:"/commerce/store-orders",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getStoreOrder(e){return t.send({op:"GetStoreOrder",method:"GET",path:"/commerce/store-orders/"+n("GetStoreOrder","store_order_id",e.path.store_order_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelStoreOrder(e){return t.send({op:"CancelStoreOrder",method:"POST",path:"/commerce/store-orders/"+n("CancelStoreOrder","store_order_id",e.path.store_order_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createFulfillment(e){return t.send({op:"CreateFulfillment",method:"POST",path:"/commerce/store-orders/"+n("CreateFulfillment","store_order_id",e.path.store_order_id)+"/fulfillments",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createReturn(e){return t.send({op:"CreateReturn",method:"POST",path:"/commerce/store-orders/"+n("CreateReturn","store_order_id",e.path.store_order_id)+"/returns",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listStores(e){return t.send({op:"ListStores",method:"GET",path:"/commerce/stores",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createStore(e){return t.send({op:"CreateStore",method:"POST",path:"/commerce/stores",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getStore(e){return t.send({op:"GetStore",method:"GET",path:"/commerce/stores/"+n("GetStore","store_id",e.path.store_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateStore(e){return t.send({op:"UpdateStore",method:"PATCH",path:"/commerce/stores/"+n("UpdateStore","store_id",e.path.store_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerUpdateFulfillment(e){return t.send({op:"SellerUpdateFulfillment",method:"PATCH",path:"/commerce/stores/"+n("SellerUpdateFulfillment","store_id",e.path.store_id)+"/fulfillments/"+n("SellerUpdateFulfillment","fulfillment_id",e.path.fulfillment_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerAddShipmentEvent(e){return t.send({op:"SellerAddShipmentEvent",method:"POST",path:"/commerce/stores/"+n("SellerAddShipmentEvent","store_id",e.path.store_id)+"/fulfillments/"+n("SellerAddShipmentEvent","fulfillment_id",e.path.fulfillment_id)+"/events",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListInventory(e){return t.send({op:"SellerListInventory",method:"GET",path:"/commerce/stores/"+n("SellerListInventory","store_id",e.path.store_id)+"/inventory",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerAdjustInventory(e){return t.send({op:"SellerAdjustInventory",method:"POST",path:"/commerce/stores/"+n("SellerAdjustInventory","store_id",e.path.store_id)+"/inventory/adjust",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerBulkSyncInventory(e){return t.send({op:"SellerBulkSyncInventory",method:"POST",path:"/commerce/stores/"+n("SellerBulkSyncInventory","store_id",e.path.store_id)+"/inventory/bulk-sync",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListListings(e){return t.send({op:"SellerListListings",method:"GET",path:"/commerce/stores/"+n("SellerListListings","store_id",e.path.store_id)+"/listings",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerCreateListing(e){return t.send({op:"SellerCreateListing",method:"POST",path:"/commerce/stores/"+n("SellerCreateListing","store_id",e.path.store_id)+"/listings",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerUpdateListing(e){return t.send({op:"SellerUpdateListing",method:"PATCH",path:"/commerce/stores/"+n("SellerUpdateListing","store_id",e.path.store_id)+"/listings/"+n("SellerUpdateListing","listing_id",e.path.listing_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerImportLicenseKeys(e){return t.send({op:"SellerImportLicenseKeys",method:"POST",path:"/commerce/stores/"+n("SellerImportLicenseKeys","store_id",e.path.store_id)+"/listings/"+n("SellerImportLicenseKeys","listing_id",e.path.listing_id)+"/license-keys",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerUpsertPrice(e){return t.send({op:"SellerUpsertPrice",method:"POST",path:"/commerce/stores/"+n("SellerUpsertPrice","store_id",e.path.store_id)+"/listings/"+n("SellerUpsertPrice","listing_id",e.path.listing_id)+"/prices",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListStockLocations(e){return t.send({op:"SellerListStockLocations",method:"GET",path:"/commerce/stores/"+n("SellerListStockLocations","store_id",e.path.store_id)+"/locations",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerCreateStockLocation(e){return t.send({op:"SellerCreateStockLocation",method:"POST",path:"/commerce/stores/"+n("SellerCreateStockLocation","store_id",e.path.store_id)+"/locations",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addStoreMember(e){return t.send({op:"AddStoreMember",method:"POST",path:"/commerce/stores/"+n("AddStoreMember","store_id",e.path.store_id)+"/members",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeStoreMember(e){return t.send({op:"RemoveStoreMember",method:"DELETE",path:"/commerce/stores/"+n("RemoveStoreMember","store_id",e.path.store_id)+"/members/"+n("RemoveStoreMember","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerGetMetrics(e){return t.send({op:"SellerGetMetrics",method:"GET",path:"/commerce/stores/"+n("SellerGetMetrics","store_id",e.path.store_id)+"/metrics",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerListStoreOrders(e){return t.send({op:"SellerListStoreOrders",method:"GET",path:"/commerce/stores/"+n("SellerListStoreOrders","store_id",e.path.store_id)+"/orders",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async sellerGetStoreOrder(e){return t.send({op:"SellerGetStoreOrder",method:"GET",path:"/commerce/stores/"+n("SellerGetStoreOrder","store_id",e.path.store_id)+"/orders/"+n("SellerGetStoreOrder","store_order_id",e.path.store_order_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerCancelStoreOrder(e){return t.send({op:"SellerCancelStoreOrder",method:"POST",path:"/commerce/stores/"+n("SellerCancelStoreOrder","store_id",e.path.store_id)+"/orders/"+n("SellerCancelStoreOrder","store_order_id",e.path.store_order_id)+"/cancel",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerCreateFulfillment(e){return t.send({op:"SellerCreateFulfillment",method:"POST",path:"/commerce/stores/"+n("SellerCreateFulfillment","store_id",e.path.store_id)+"/orders/"+n("SellerCreateFulfillment","store_order_id",e.path.store_order_id)+"/fulfillments",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async onboardStorePaymentAccount(e){return t.send({op:"OnboardStorePaymentAccount",method:"POST",path:"/commerce/stores/"+n("OnboardStorePaymentAccount","store_id",e.path.store_id)+"/payment-accounts",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerOnboardPayouts(e){return t.send({op:"SellerOnboardPayouts",method:"POST",path:"/commerce/stores/"+n("SellerOnboardPayouts","store_id",e.path.store_id)+"/payouts/onboard",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerOnboardingLink(e){return t.send({op:"SellerOnboardingLink",method:"POST",path:"/commerce/stores/"+n("SellerOnboardingLink","store_id",e.path.store_id)+"/payouts/onboarding-link",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListProducts(e){return t.send({op:"SellerListProducts",method:"GET",path:"/commerce/stores/"+n("SellerListProducts","store_id",e.path.store_id)+"/products",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async sellerCreateProduct(e){return t.send({op:"SellerCreateProduct",method:"POST",path:"/commerce/stores/"+n("SellerCreateProduct","store_id",e.path.store_id)+"/products",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerCreateQuickProduct(e){return t.send({op:"SellerCreateQuickProduct",method:"POST",path:"/commerce/stores/"+n("SellerCreateQuickProduct","store_id",e.path.store_id)+"/products/quick",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerCreatePromotionRule(e){return t.send({op:"SellerCreatePromotionRule",method:"POST",path:"/commerce/stores/"+n("SellerCreatePromotionRule","store_id",e.path.store_id)+"/promotions/rules",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListReturns(e){return t.send({op:"SellerListReturns",method:"GET",path:"/commerce/stores/"+n("SellerListReturns","store_id",e.path.store_id)+"/returns",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerApproveReturn(e){return t.send({op:"SellerApproveReturn",method:"POST",path:"/commerce/stores/"+n("SellerApproveReturn","store_id",e.path.store_id)+"/returns/"+n("SellerApproveReturn","return_id",e.path.return_id)+"/approve",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerRejectReturn(e){return t.send({op:"SellerRejectReturn",method:"POST",path:"/commerce/stores/"+n("SellerRejectReturn","store_id",e.path.store_id)+"/returns/"+n("SellerRejectReturn","return_id",e.path.return_id)+"/reject",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerCompleteReturn(e){return t.send({op:"SellerCompleteReturn",method:"POST",path:"/commerce/stores/"+n("SellerCompleteReturn","store_id",e.path.store_id)+"/returns/"+n("SellerCompleteReturn","return_id",e.path.return_id)+"/complete",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerReceiveReturn(e){return t.send({op:"SellerReceiveReturn",method:"POST",path:"/commerce/stores/"+n("SellerReceiveReturn","store_id",e.path.store_id)+"/returns/"+n("SellerReceiveReturn","return_id",e.path.return_id)+"/receive",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListReviews(e){return t.send({op:"SellerListReviews",method:"GET",path:"/commerce/stores/"+n("SellerListReviews","store_id",e.path.store_id)+"/reviews",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async sellerReplyReview(e){return t.send({op:"SellerReplyReview",method:"POST",path:"/commerce/stores/"+n("SellerReplyReview","store_id",e.path.store_id)+"/reviews/"+n("SellerReplyReview","review_id",e.path.review_id)+"/reply",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sellerListSettlements(e){return t.send({op:"SellerListSettlements",method:"GET",path:"/commerce/stores/"+n("SellerListSettlements","store_id",e.path.store_id)+"/settlements",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async sellerCreateShippingOption(e){return t.send({op:"SellerCreateShippingOption",method:"POST",path:"/commerce/stores/"+n("SellerCreateShippingOption","store_id",e.path.store_id)+"/shipping-options",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTaxRates(e){return t.send({op:"ListTaxRates",method:"GET",path:"/commerce/tax-rates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async upsertTaxRate(e){return t.send({op:"UpsertTaxRate",method:"PUT",path:"/commerce/tax-rates",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateVariant(e){return t.send({op:"UpdateVariant",method:"PATCH",path:"/commerce/variants/"+n("UpdateVariant","variant_id",e.path.variant_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async setBundleItems(e){return t.send({op:"SetBundleItems",method:"POST",path:"/commerce/variants/"+n("SetBundleItems","variant_id",e.path.variant_id)+"/bundle-items",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async recomputeVariantBuyBox(e){return t.send({op:"RecomputeVariantBuyBox",method:"POST",path:"/commerce/variants/"+n("RecomputeVariantBuyBox","variant_id",e.path.variant_id)+"/buybox/recompute",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async revokePromotionCode(e){return t.send({op:"RevokePromotionCode",method:"DELETE",path:"/promotions/codes/"+n("RevokePromotionCode","code_id",e.path.code_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async evaluatePromotions(e){return t.send({op:"EvaluatePromotions",method:"POST",path:"/promotions/evaluate",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async holdPromotions(e){return t.send({op:"HoldPromotions",method:"POST",path:"/promotions/holds",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async commitPromotionHold(e){return t.send({op:"CommitPromotionHold",method:"POST",path:"/promotions/holds/"+n("CommitPromotionHold","hold_id",e.path.hold_id)+"/commit",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async releasePromotionHold(e){return t.send({op:"ReleasePromotionHold",method:"POST",path:"/promotions/holds/"+n("ReleasePromotionHold","hold_id",e.path.hold_id)+"/release",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listPromotionRedemptions(e){return t.send({op:"ListPromotionRedemptions",method:"GET",path:"/promotions/redemptions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async reversePromotionRedemption(e){return t.send({op:"ReversePromotionRedemption",method:"POST",path:"/promotions/redemptions/"+n("ReversePromotionRedemption","redemption_id",e.path.redemption_id)+"/reverse",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listPromotionRules(e){return t.send({op:"ListPromotionRules",method:"GET",path:"/promotions/rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createPromotionRule(e){return t.send({op:"CreatePromotionRule",method:"POST",path:"/promotions/rules",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPromotionRule(e){return t.send({op:"GetPromotionRule",method:"GET",path:"/promotions/rules/"+n("GetPromotionRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async archivePromotionRule(e){return t.send({op:"ArchivePromotionRule",method:"DELETE",path:"/promotions/rules/"+n("ArchivePromotionRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updatePromotionRule(e){return t.send({op:"UpdatePromotionRule",method:"PATCH",path:"/promotions/rules/"+n("UpdatePromotionRule","rule_id",e.path.rule_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async upsertPromotionBudget(e){return t.send({op:"UpsertPromotionBudget",method:"PUT",path:"/promotions/rules/"+n("UpsertPromotionBudget","rule_id",e.path.rule_id)+"/budgets/"+n("UpsertPromotionBudget","currency",e.path.currency),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPromotionCodes(e){return t.send({op:"ListPromotionCodes",method:"GET",path:"/promotions/rules/"+n("ListPromotionCodes","rule_id",e.path.rule_id)+"/codes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createPromotionCode(e){return t.send({op:"CreatePromotionCode",method:"POST",path:"/promotions/rules/"+n("CreatePromotionCode","rule_id",e.path.rule_id)+"/codes",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async generatePromotionCodeBatch(e){return t.send({op:"GeneratePromotionCodeBatch",method:"POST",path:"/promotions/rules/"+n("GeneratePromotionCodeBatch","rule_id",e.path.rule_id)+"/codes/batch",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var g={};s(g,{client:()=>j});function j(t){return{async getValues(e){return t.send({op:"GetValues",method:"GET",path:"/flags",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},headers:e?.headers,signal:e?.signal})},async batchUserValues(e){return t.send({op:"BatchUserValues",method:"POST",path:"/flags/batch",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getDelta(e){return t.send({op:"GetDelta",method:"GET",path:"/flags/delta",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json",304:"empty"},query:e?.query,headers:e?.headers,signal:e?.signal})},async getEvaluations(e){return t.send({op:"GetEvaluations",method:"GET",path:"/flags/evaluations",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listExperiments(e){return t.send({op:"ListExperiments",method:"GET",path:"/flags/experiments",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async startExperiment(e){return t.send({op:"StartExperiment",method:"POST",path:"/flags/experiments",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getExperiment(e){return t.send({op:"GetExperiment",method:"GET",path:"/flags/experiments/"+n("GetExperiment","experiment_id",e.path.experiment_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getExperimentResults(e){return t.send({op:"GetExperimentResults",method:"GET",path:"/flags/experiments/"+n("GetExperimentResults","experiment_id",e.path.experiment_id)+"/results",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async stopExperiment(e){return t.send({op:"StopExperiment",method:"POST",path:"/flags/experiments/"+n("StopExperiment","experiment_id",e.path.experiment_id)+"/stop",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async declareExperimentWinner(e){return t.send({op:"DeclareExperimentWinner",method:"POST",path:"/flags/experiments/"+n("DeclareExperimentWinner","experiment_id",e.path.experiment_id)+"/winner",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCurrentInstallations(e){return t.send({op:"GetCurrentInstallations",method:"GET",path:"/flags/installations/current",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getInstallationsDaily(e){return t.send({op:"GetInstallationsDaily",method:"GET",path:"/flags/installations/daily",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getSnapshot(e){return t.send({op:"GetSnapshot",method:"GET",path:"/flags/snapshot",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json",304:"empty"},headers:e?.headers,signal:e?.signal})},async listDefinitions(e){return t.send({op:"ListDefinitions",method:"GET",path:"/flags/system",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getDefinition(e){return t.send({op:"GetDefinition",method:"GET",path:"/flags/system/"+n("GetDefinition","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putDefinition(e){return t.send({op:"PutDefinition",method:"PUT",path:"/flags/system/"+n("PutDefinition","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteDefinition(e){return t.send({op:"DeleteDefinition",method:"DELETE",path:"/flags/system/"+n("DeleteDefinition","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async activateTemplates(e){return t.send({op:"ActivateTemplates",method:"POST",path:"/flags/templates/activation",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getActiveTemplate(e){return t.send({op:"GetActiveTemplate",method:"GET",path:"/flags/templates/active",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getTemplateCapabilities(e){return t.send({op:"GetTemplateCapabilities",method:"GET",path:"/flags/templates/capabilities",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getTemplateDraft(e){return t.send({op:"GetTemplateDraft",method:"GET",path:"/flags/templates/draft",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createTemplateDraft(e){return t.send({op:"CreateTemplateDraft",method:"POST",path:"/flags/templates/draft",auth:[["SecretKeyAuth"]],answers:{201:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async discardTemplateDraft(e){return t.send({op:"DiscardTemplateDraft",method:"DELETE",path:"/flags/templates/draft",auth:[["SecretKeyAuth"]],answers:{204:"empty"},headers:e.headers,signal:e.signal})},async putTemplateParameter(e){return t.send({op:"PutTemplateParameter",method:"PUT",path:"/flags/templates/draft/parameters/"+n("PutTemplateParameter","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeTemplateParameter(e){return t.send({op:"RemoveTemplateParameter",method:"DELETE",path:"/flags/templates/draft/parameters/"+n("RemoveTemplateParameter","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,signal:e.signal})},async reviewTemplateDraft(e){return t.send({op:"ReviewTemplateDraft",method:"GET",path:"/flags/templates/draft/review",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async publishTemplate(e){return t.send({op:"PublishTemplate",method:"POST",path:"/flags/templates/publish",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPublishReceipt(e){return t.send({op:"GetPublishReceipt",method:"POST",path:"/flags/templates/publish/receipt",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async restoreTemplateVersion(e){return t.send({op:"RestoreTemplateVersion",method:"POST",path:"/flags/templates/restore/"+n("RestoreTemplateVersion","version",e.path.version),auth:[["SecretKeyAuth"]],answers:{201:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTemplateVersions(e){return t.send({op:"ListTemplateVersions",method:"GET",path:"/flags/templates/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getTemplateVersion(e){return t.send({op:"GetTemplateVersion",method:"GET",path:"/flags/templates/versions/"+n("GetTemplateVersion","version",e.path.version),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getUserValues(e){return t.send({op:"GetUserValues",method:"GET",path:"/flags/users/"+n("GetUserValues","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,signal:e.signal})},async putUserValues(e){return t.send({op:"PutUserValues",method:"PUT",path:"/flags/users/"+n("PutUserValues","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteUserValues(e){return t.send({op:"DeleteUserValues",method:"DELETE",path:"/flags/users/"+n("DeleteUserValues","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putUserValue(e){return t.send({op:"PutUserValue",method:"PUT",path:"/flags/users/"+n("PutUserValue","user_id",e.path.user_id)+"/"+n("PutUserValue","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteUserValue(e){return t.send({op:"DeleteUserValue",method:"DELETE",path:"/flags/users/"+n("DeleteUserValue","user_id",e.path.user_id)+"/"+n("DeleteUserValue","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,signal:e.signal})}}}var u={};s(u,{client:()=>E});function E(t){return{async getAppleAccount(e){return t.send({op:"GetAppleAccount",method:"GET",path:"/iap/apple",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async disconnectApple(e){return t.send({op:"DisconnectApple",method:"DELETE",path:"/iap/apple",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getAppleAccountToken(e){return t.send({op:"GetAppleAccountToken",method:"POST",path:"/iap/apple/account-token",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async getAppleConnectPage(e){return t.send({op:"GetAppleConnectPage",method:"GET",path:"/iap/apple/connect",auth:[],answers:{200:"raw"},signal:e?.signal})},async connectAppleKey(e){return t.send({op:"ConnectAppleKey",method:"POST",path:"/iap/apple/connect",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createAppleGrant(e){return t.send({op:"CreateAppleGrant",method:"POST",path:"/iap/apple/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getAppleReadiness(e){return t.send({op:"GetAppleReadiness",method:"GET",path:"/iap/apple/readiness",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async reportAppleTransactions(e){return t.send({op:"ReportAppleTransactions",method:"POST",path:"/iap/apple/transactions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async setXcodeCertificate(e){return t.send({op:"SetXcodeCertificate",method:"PUT",path:"/iap/apple/xcode-certificate",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async clearXcodeCertificate(e){return t.send({op:"ClearXcodeCertificate",method:"DELETE",path:"/iap/apple/xcode-certificate",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async setXcodeOfferKey(e){return t.send({op:"SetXcodeOfferKey",method:"PUT",path:"/iap/apple/xcode-offer-key",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCatalog(e){return t.send({op:"GetCatalog",method:"GET",path:"/iap/catalog",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async saveCatalog(e){return t.send({op:"SaveCatalog",method:"PUT",path:"/iap/catalog",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async planCatalog(e){return t.send({op:"PlanCatalog",method:"POST",path:"/iap/catalog/plans",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getCatalogPlan(e){return t.send({op:"GetCatalogPlan",method:"GET",path:"/iap/catalog/plans/"+n("GetCatalogPlan","plan_id",e.path.plan_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async confirmCatalogPlan(e){return t.send({op:"ConfirmCatalogPlan",method:"POST",path:"/iap/catalog/plans/"+n("ConfirmCatalogPlan","plan_id",e.path.plan_id)+"/confirm",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async declineCatalogPlan(e){return t.send({op:"DeclineCatalogPlan",method:"POST",path:"/iap/catalog/plans/"+n("DeclineCatalogPlan","plan_id",e.path.plan_id)+"/decline",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async listCatalogRevisions(e){return t.send({op:"ListCatalogRevisions",method:"GET",path:"/iap/catalog/revisions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getCatalogRevision(e){return t.send({op:"GetCatalogRevision",method:"GET",path:"/iap/catalog/revisions/"+n("GetCatalogRevision","revision",e.path.revision),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async restoreCatalogRevision(e){return t.send({op:"RestoreCatalogRevision",method:"POST",path:"/iap/catalog/revisions/"+n("RestoreCatalogRevision","revision",e.path.revision)+"/restore",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async validateCatalog(e){return t.send({op:"ValidateCatalog",method:"POST",path:"/iap/catalog/validate",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listCharts(e){return t.send({op:"ListCharts",method:"GET",path:"/iap/charts",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getChartsOverview(e){return t.send({op:"GetChartsOverview",method:"GET",path:"/iap/charts/overview",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getChart(e){return t.send({op:"GetChart",method:"GET",path:"/iap/charts/"+n("GetChart","chart",e.path.chart),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async createCheckout(e){return t.send({op:"CreateCheckout",method:"POST",path:"/iap/checkout",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createCheckoutRedemption(e){return t.send({op:"CreateCheckoutRedemption",method:"POST",path:"/iap/checkout/redemption",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listCoupons(e){return t.send({op:"ListCoupons",method:"GET",path:"/iap/coupons",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createCoupon(e){return t.send({op:"CreateCoupon",method:"POST",path:"/iap/coupons",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async redeemCoupon(e){return t.send({op:"RedeemCoupon",method:"POST",path:"/iap/coupons/redeem",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCoupon(e){return t.send({op:"GetCoupon",method:"GET",path:"/iap/coupons/"+n("GetCoupon","coupon_key",e.path.coupon_key),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async revokeCoupon(e){return t.send({op:"RevokeCoupon",method:"DELETE",path:"/iap/coupons/"+n("RevokeCoupon","coupon_key",e.path.coupon_key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listCouponCodes(e){return t.send({op:"ListCouponCodes",method:"GET",path:"/iap/coupons/"+n("ListCouponCodes","coupon_key",e.path.coupon_key)+"/codes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async searchCustomers(e){return t.send({op:"SearchCustomers",method:"GET",path:"/iap/customers",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getCustomer(e){return t.send({op:"GetCustomer",method:"GET",path:"/iap/customers/"+n("GetCustomer","customer_id",e.path.customer_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async grantCredits(e){return t.send({op:"GrantCredits",method:"POST",path:"/iap/customers/"+n("GrantCredits","customer_id",e.path.customer_id)+"/credits",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listCreditEntries(e){return t.send({op:"ListCreditEntries",method:"GET",path:"/iap/customers/"+n("ListCreditEntries","customer_id",e.path.customer_id)+"/credits/entries",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async forgiveCredits(e){return t.send({op:"ForgiveCredits",method:"POST",path:"/iap/customers/"+n("ForgiveCredits","customer_id",e.path.customer_id)+"/credits/forgive",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listCustomerGrants(e){return t.send({op:"ListCustomerGrants",method:"GET",path:"/iap/customers/"+n("ListCustomerGrants","customer_id",e.path.customer_id)+"/grants",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async grantEntitlement(e){return t.send({op:"GrantEntitlement",method:"POST",path:"/iap/customers/"+n("GrantEntitlement","customer_id",e.path.customer_id)+"/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revokeGrant(e){return t.send({op:"RevokeGrant",method:"DELETE",path:"/iap/customers/"+n("RevokeGrant","customer_id",e.path.customer_id)+"/grants/"+n("RevokeGrant","grant_id",e.path.grant_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async getCustomerHistory(e){return t.send({op:"GetCustomerHistory",method:"GET",path:"/iap/customers/"+n("GetCustomerHistory","customer_id",e.path.customer_id)+"/history",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async holdSpend(e){return t.send({op:"HoldSpend",method:"POST",path:"/iap/customers/"+n("HoldSpend","customer_id",e.path.customer_id)+"/holds",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async setCustomerLimit(e){return t.send({op:"SetCustomerLimit",method:"PUT",path:"/iap/customers/"+n("SetCustomerLimit","customer_id",e.path.customer_id)+"/limits/"+n("SetCustomerLimit","limit_key",e.path.limit_key),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async clearCustomerLimit(e){return t.send({op:"ClearCustomerLimit",method:"DELETE",path:"/iap/customers/"+n("ClearCustomerLimit","customer_id",e.path.customer_id)+"/limits/"+n("ClearCustomerLimit","limit_key",e.path.limit_key),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async grantLimit(e){return t.send({op:"GrantLimit",method:"POST",path:"/iap/customers/"+n("GrantLimit","customer_id",e.path.customer_id)+"/limits/"+n("GrantLimit","limit_key",e.path.limit_key)+"/grants",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async spend(e){return t.send({op:"Spend",method:"POST",path:"/iap/customers/"+n("Spend","customer_id",e.path.customer_id)+"/spend",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async commitSpend(e){return t.send({op:"CommitSpend",method:"POST",path:"/iap/customers/"+n("CommitSpend","customer_id",e.path.customer_id)+"/spends/"+n("CommitSpend","spend_id",e.path.spend_id)+"/commit",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async extendHold(e){return t.send({op:"ExtendHold",method:"POST",path:"/iap/customers/"+n("ExtendHold","customer_id",e.path.customer_id)+"/spends/"+n("ExtendHold","spend_id",e.path.spend_id)+"/extend",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async releaseSpend(e){return t.send({op:"ReleaseSpend",method:"POST",path:"/iap/customers/"+n("ReleaseSpend","customer_id",e.path.customer_id)+"/spends/"+n("ReleaseSpend","spend_id",e.path.spend_id)+"/release",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async reverseSpend(e){return t.send({op:"ReverseSpend",method:"POST",path:"/iap/customers/"+n("ReverseSpend","customer_id",e.path.customer_id)+"/spends/"+n("ReverseSpend","spend_id",e.path.spend_id)+"/reverse",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async cancelSubscription(e){return t.send({op:"CancelSubscription",method:"POST",path:"/iap/customers/"+n("CancelSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+n("CancelSubscription","subscription_id",e.path.subscription_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async extendSubscription(e){return t.send({op:"ExtendSubscription",method:"POST",path:"/iap/customers/"+n("ExtendSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+n("ExtendSubscription","subscription_id",e.path.subscription_id)+"/extend",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async refundSubscription(e){return t.send({op:"RefundSubscription",method:"POST",path:"/iap/customers/"+n("RefundSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+n("RefundSubscription","subscription_id",e.path.subscription_id)+"/refund",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listExperiments(e){return t.send({op:"ListExperiments",method:"GET",path:"/iap/experiments",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async startExperiment(e){return t.send({op:"StartExperiment",method:"POST",path:"/iap/experiments",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getExperiment(e){return t.send({op:"GetExperiment",method:"GET",path:"/iap/experiments/"+n("GetExperiment","experiment_id",e.path.experiment_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getExperimentResults(e){return t.send({op:"GetExperimentResults",method:"GET",path:"/iap/experiments/"+n("GetExperimentResults","experiment_id",e.path.experiment_id)+"/results",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async stopExperiment(e){return t.send({op:"StopExperiment",method:"POST",path:"/iap/experiments/"+n("StopExperiment","experiment_id",e.path.experiment_id)+"/stop",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async declareExperimentWinner(e){return t.send({op:"DeclareExperimentWinner",method:"POST",path:"/iap/experiments/"+n("DeclareExperimentWinner","experiment_id",e.path.experiment_id)+"/winner",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getGoogleAccount(e){return t.send({op:"GetGoogleAccount",method:"GET",path:"/iap/google",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectGoogle(e){return t.send({op:"ConnectGoogle",method:"POST",path:"/iap/google",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async disconnectGoogle(e){return t.send({op:"DisconnectGoogle",method:"DELETE",path:"/iap/google",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getGoogleAccountId(e){return t.send({op:"GetGoogleAccountID",method:"POST",path:"/iap/google/account-id",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async reportGooglePurchases(e){return t.send({op:"ReportGooglePurchases",method:"POST",path:"/iap/google/purchases",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getMyCustomerInfo(e){return t.send({op:"GetMyCustomerInfo",method:"GET",path:"/iap/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mergeGuest(e){return t.send({op:"MergeGuest",method:"POST",path:"/iap/me/merge",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createMergeGrant(e){return t.send({op:"CreateMergeGrant",method:"POST",path:"/iap/me/merge-grant",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},signal:e?.signal})},async setRefundDataConsent(e){return t.send({op:"SetRefundDataConsent",method:"PUT",path:"/iap/me/refund-data-consent",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getOfferings(e){return t.send({op:"GetOfferings",method:"GET",path:"/iap/offerings",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listMyOffers(e){return t.send({op:"ListMyOffers",method:"GET",path:"/iap/offers",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async getOfferStats(e){return t.send({op:"GetOfferStats",method:"GET",path:"/iap/offers/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async signAppleOffer(e){return t.send({op:"SignAppleOffer",method:"POST",path:"/iap/offers/"+n("SignAppleOffer","offer_key",e.path.offer_key)+"/apple-signature",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async claimOffer(e){return t.send({op:"ClaimOffer",method:"POST",path:"/iap/offers/"+n("ClaimOffer","offer_key",e.path.offer_key)+"/claim",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},signal:e.signal})},async recordOfferView(e){return t.send({op:"RecordOfferView",method:"POST",path:"/iap/offers/"+n("RecordOfferView","offer_key",e.path.offer_key)+"/views",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async listPaywalls(e){return t.send({op:"ListPaywalls",method:"GET",path:"/iap/paywalls",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createPaywall(e){return t.send({op:"CreatePaywall",method:"POST",path:"/iap/paywalls",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPaywallAssets(e){return t.send({op:"ListPaywallAssets",method:"GET",path:"/iap/paywalls/assets",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async registerPaywallAsset(e){return t.send({op:"RegisterPaywallAsset",method:"POST",path:"/iap/paywalls/assets",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deletePaywallAsset(e){return t.send({op:"DeletePaywallAsset",method:"DELETE",path:"/iap/paywalls/assets/"+n("DeletePaywallAsset","asset_id",e.path.asset_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listPaywallTemplates(e){return t.send({op:"ListPaywallTemplates",method:"GET",path:"/iap/paywalls/templates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getPaywallTemplateAsset(e){return t.send({op:"GetPaywallTemplateAsset",method:"GET",path:"/iap/paywalls/templates/"+n("GetPaywallTemplateAsset","key",e.path.key)+"/assets/"+n("GetPaywallTemplateAsset","asset_id",e.path.asset_id),auth:[["SecretKeyAuth"]],answers:{200:"raw",304:"empty"},headers:e.headers,signal:e.signal})},async validatePaywall(e){return t.send({op:"ValidatePaywall",method:"POST",path:"/iap/paywalls/validate",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPaywall(e){return t.send({op:"GetPaywall",method:"GET",path:"/iap/paywalls/"+n("GetPaywall","paywall_id",e.path.paywall_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deletePaywall(e){return t.send({op:"DeletePaywall",method:"DELETE",path:"/iap/paywalls/"+n("DeletePaywall","paywall_id",e.path.paywall_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async savePaywallDraft(e){return t.send({op:"SavePaywallDraft",method:"PUT",path:"/iap/paywalls/"+n("SavePaywallDraft","paywall_id",e.path.paywall_id)+"/draft",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async publishPaywall(e){return t.send({op:"PublishPaywall",method:"POST",path:"/iap/paywalls/"+n("PublishPaywall","paywall_id",e.path.paywall_id)+"/publish",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async listPaywallVersions(e){return t.send({op:"ListPaywallVersions",method:"GET",path:"/iap/paywalls/"+n("ListPaywallVersions","paywall_id",e.path.paywall_id)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getPaywallVersion(e){return t.send({op:"GetPaywallVersion",method:"GET",path:"/iap/paywalls/"+n("GetPaywallVersion","paywall_id",e.path.paywall_id)+"/versions/"+n("GetPaywallVersion","version",e.path.version),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listPlacements(e){return t.send({op:"ListPlacements",method:"GET",path:"/iap/placements",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listAttributeKeys(e){return t.send({op:"ListAttributeKeys",method:"GET",path:"/iap/placements/attributes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async setPlacement(e){return t.send({op:"SetPlacement",method:"PUT",path:"/iap/placements/"+n("SetPlacement","placement",e.path.placement),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deletePlacement(e){return t.send({op:"DeletePlacement",method:"DELETE",path:"/iap/placements/"+n("DeletePlacement","placement",e.path.placement),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async recordPaywallExposure(e){return t.send({op:"RecordPaywallExposure",method:"POST",path:"/iap/placements/"+n("RecordPaywallExposure","placement",e.path.placement)+"/exposures",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPlacementPaywall(e){return t.send({op:"GetPlacementPaywall",method:"GET",path:"/iap/placements/"+n("GetPlacementPaywall","placement",e.path.placement)+"/paywall",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json",204:"empty",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async previewPlacement(e){return t.send({op:"PreviewPlacement",method:"POST",path:"/iap/placements/"+n("PreviewPlacement","placement",e.path.placement)+"/resolve-preview",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPlacementResults(e){return t.send({op:"GetPlacementResults",method:"GET",path:"/iap/placements/"+n("GetPlacementResults","placement",e.path.placement)+"/results",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getPlacementRules(e){return t.send({op:"GetPlacementRules",method:"GET",path:"/iap/placements/"+n("GetPlacementRules","placement",e.path.placement)+"/rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setPlacementRules(e){return t.send({op:"SetPlacementRules",method:"PUT",path:"/iap/placements/"+n("SetPlacementRules","placement",e.path.placement)+"/rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createPortalSession(e){return t.send({op:"CreatePortalSession",method:"POST",path:"/iap/portal",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getRedemptionPage(e){return t.send({op:"GetRedemptionPage",method:"GET",path:"/iap/redeem",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async redeemPurchase(e){return t.send({op:"RedeemPurchase",method:"POST",path:"/iap/redemptions/redeem",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/iap/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async updateSettings(e){return t.send({op:"UpdateSettings",method:"PUT",path:"/iap/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveAppleNotification(e){return t.send({op:"ReceiveAppleNotification",method:"POST",path:"/iap/webhooks/apple",auth:[],answers:{200:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveGoogleNotification(e){return t.send({op:"ReceiveGoogleNotification",method:"POST",path:"/iap/webhooks/google",auth:[],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var c={};s(c,{client:()=>K});function K(t){return{async listJourneys(e){return t.send({op:"ListJourneys",method:"GET",path:"/journeys",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createJourney(e){return t.send({op:"CreateJourney",method:"POST",path:"/journeys",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listBlueprints(e){return t.send({op:"ListBlueprints",method:"GET",path:"/journeys/blueprints",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listPersonRuns(e){return t.send({op:"ListPersonRuns",method:"GET",path:"/journeys/people/"+n("ListPersonRuns","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async simulateJourney(e){return t.send({op:"SimulateJourney",method:"POST",path:"/journeys/simulate",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listStoreBlueprints(e){return t.send({op:"ListStoreBlueprints",method:"GET",path:"/journeys/stores/"+n("ListStoreBlueprints","store_id",e.path.store_id)+"/blueprints",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async activateStoreBlueprint(e){return t.send({op:"ActivateStoreBlueprint",method:"POST",path:"/journeys/stores/"+n("ActivateStoreBlueprint","store_id",e.path.store_id)+"/blueprints",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteStoreBlueprint(e){return t.send({op:"DeleteStoreBlueprint",method:"DELETE",path:"/journeys/stores/"+n("DeleteStoreBlueprint","store_id",e.path.store_id)+"/blueprints/"+n("DeleteStoreBlueprint","key",e.path.key),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async validateJourney(e){return t.send({op:"ValidateJourney",method:"POST",path:"/journeys/validate",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getJourney(e){return t.send({op:"GetJourney",method:"GET",path:"/journeys/"+n("GetJourney","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateJourney(e){return t.send({op:"UpdateJourney",method:"PUT",path:"/journeys/"+n("UpdateJourney","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteJourney(e){return t.send({op:"DeleteJourney",method:"DELETE",path:"/journeys/"+n("DeleteJourney","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async copyJourney(e){return t.send({op:"CopyJourney",method:"POST",path:"/journeys/"+n("CopyJourney","key",e.path.key)+"/copy",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async publishJourney(e){return t.send({op:"PublishJourney",method:"POST",path:"/journeys/"+n("PublishJourney","key",e.path.key)+"/publish",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listJourneyRuns(e){return t.send({op:"ListJourneyRuns",method:"GET",path:"/journeys/"+n("ListJourneyRuns","key",e.path.key)+"/runs",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getJourneyStats(e){return t.send({op:"GetJourneyStats",method:"GET",path:"/journeys/"+n("GetJourneyStats","key",e.path.key)+"/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async stopJourney(e){return t.send({op:"StopJourney",method:"POST",path:"/journeys/"+n("StopJourney","key",e.path.key)+"/stop",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async testJourney(e){return t.send({op:"TestJourney",method:"POST",path:"/journeys/"+n("TestJourney","key",e.path.key)+"/test",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var y={};s(y,{client:()=>q});function q(t){return{async listMachines(e){return t.send({op:"ListMachines",method:"GET",path:"/machines",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createMachine(e){return t.send({op:"CreateMachine",method:"POST",path:"/machines",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMachineSizes(e){return t.send({op:"ListMachineSizes",method:"GET",path:"/machines/sizes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getMachineNetwork(e){return t.send({op:"GetMachineNetwork",method:"GET",path:"/machines/network",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectGitHub(e){return t.send({op:"ConnectGitHub",method:"POST",path:"/machines/github/connect",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listInstallations(e){return t.send({op:"ListInstallations",method:"GET",path:"/machines/github/installations",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async linkInstallation(e){return t.send({op:"LinkInstallation",method:"POST",path:"/machines/github/installations",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async shareInstallation(e){return t.send({op:"ShareInstallation",method:"POST",path:"/machines/github/installations/share",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async unlinkInstallation(e){return t.send({op:"UnlinkInstallation",method:"DELETE",path:"/machines/github/installations/"+n("UnlinkInstallation","installation",e.path.installation),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listRepositories(e){return t.send({op:"ListRepositories",method:"GET",path:"/machines/github/repositories",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getMachine(e){return t.send({op:"GetMachine",method:"GET",path:"/machines/"+n("GetMachine","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteMachine(e){return t.send({op:"DeleteMachine",method:"DELETE",path:"/machines/"+n("DeleteMachine","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateMachine(e){return t.send({op:"UpdateMachine",method:"PATCH",path:"/machines/"+n("UpdateMachine","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listBuilds(e){return t.send({op:"ListBuilds",method:"GET",path:"/machines/"+n("ListBuilds","name",e.path.name)+"/builds",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async deployMachine(e){return t.send({op:"DeployMachine",method:"POST",path:"/machines/"+n("DeployMachine","name",e.path.name)+"/builds",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMachinePreviews(e){return t.send({op:"ListMachinePreviews",method:"GET",path:"/machines/"+n("ListMachinePreviews","name",e.path.name)+"/previews",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putMachinePreview(e){return t.send({op:"PutMachinePreview",method:"PUT",path:"/machines/"+n("PutMachinePreview","name",e.path.name)+"/previews/"+n("PutMachinePreview","pull_request",e.path.pull_request),auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMachinePreview(e){return t.send({op:"DeleteMachinePreview",method:"DELETE",path:"/machines/"+n("DeleteMachinePreview","name",e.path.name)+"/previews/"+n("DeleteMachinePreview","pull_request",e.path.pull_request),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listMachineDomains(e){return t.send({op:"ListMachineDomains",method:"GET",path:"/machines/"+n("ListMachineDomains","name",e.path.name)+"/domains",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async addMachineDomain(e){return t.send({op:"AddMachineDomain",method:"POST",path:"/machines/"+n("AddMachineDomain","name",e.path.name)+"/domains",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMachineDomain(e){return t.send({op:"DeleteMachineDomain",method:"DELETE",path:"/machines/"+n("DeleteMachineDomain","name",e.path.name)+"/domains/"+n("DeleteMachineDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateMachineDomain(e){return t.send({op:"UpdateMachineDomain",method:"PATCH",path:"/machines/"+n("UpdateMachineDomain","name",e.path.name)+"/domains/"+n("UpdateMachineDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getBuild(e){return t.send({op:"GetBuild",method:"GET",path:"/machines/"+n("GetBuild","name",e.path.name)+"/builds/"+n("GetBuild","build",e.path.build),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getBuildLog(e){return t.send({op:"GetBuildLog",method:"GET",path:"/machines/"+n("GetBuildLog","name",e.path.name)+"/builds/"+n("GetBuildLog","build",e.path.build)+"/log",auth:[["SecretKeyAuth"]],answers:{200:"raw"},signal:e.signal})},async rollbackMachine(e){return t.send({op:"RollbackMachine",method:"POST",path:"/machines/"+n("RollbackMachine","name",e.path.name)+"/rollback",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listDatabases(e){return t.send({op:"ListDatabases",method:"GET",path:"/databases",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createDatabase(e){return t.send({op:"CreateDatabase",method:"POST",path:"/databases",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listDatabaseSizes(e){return t.send({op:"ListDatabaseSizes",method:"GET",path:"/databases/sizes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getDatabase(e){return t.send({op:"GetDatabase",method:"GET",path:"/databases/"+n("GetDatabase","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteDatabase(e){return t.send({op:"DeleteDatabase",method:"DELETE",path:"/databases/"+n("DeleteDatabase","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateDatabase(e){return t.send({op:"UpdateDatabase",method:"PATCH",path:"/databases/"+n("UpdateDatabase","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async undeleteDatabase(e){return t.send({op:"UndeleteDatabase",method:"POST",path:"/databases/"+n("UndeleteDatabase","name",e.path.name)+"/undelete",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async purgeDatabase(e){return t.send({op:"PurgeDatabase",method:"POST",path:"/databases/"+n("PurgeDatabase","name",e.path.name)+"/purge",auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async getDatabaseCredentials(e){return t.send({op:"GetDatabaseCredentials",method:"GET",path:"/databases/"+n("GetDatabaseCredentials","name",e.path.name)+"/credentials",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async changeDatabasePassword(e){return t.send({op:"ChangeDatabasePassword",method:"POST",path:"/databases/"+n("ChangeDatabasePassword","name",e.path.name)+"/password",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async readMachineLogs(e){return t.send({op:"ReadMachineLogs",method:"GET",path:"/machines/"+n("ReadMachineLogs","name",e.path.name)+"/logs",auth:[["SecretKeyAuth"]],answers:{200:"raw"},query:e.query,signal:e.signal})},async execInMachine(e){return t.send({op:"ExecInMachine",method:"POST",path:"/machines/"+n("ExecInMachine","name",e.path.name)+"/exec",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMachineExecs(e){return t.send({op:"ListMachineExecs",method:"GET",path:"/machines/"+n("ListMachineExecs","name",e.path.name)+"/execs",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getMachineMetrics(e){return t.send({op:"GetMachineMetrics",method:"GET",path:"/machines/"+n("GetMachineMetrics","name",e.path.name)+"/metrics",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getMachineContract(e){return t.send({op:"GetMachineContract",method:"GET",path:"/machines/"+n("GetMachineContract","name",e.path.name)+"/openapi",auth:[["SecretKeyAuth"]],answers:{200:"json",304:"empty"},headers:e.headers,signal:e.signal})},async restoreDatabase(e){return t.send({op:"RestoreDatabase",method:"POST",path:"/databases/"+n("RestoreDatabase","name",e.path.name)+"/restore",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getDatabaseSchema(e){return t.send({op:"GetDatabaseSchema",method:"GET",path:"/databases/"+n("GetDatabaseSchema","name",e.path.name)+"/schema",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getDatabaseMetrics(e){return t.send({op:"GetDatabaseMetrics",method:"GET",path:"/databases/"+n("GetDatabaseMetrics","name",e.path.name)+"/metrics",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async queryDatabase(e){return t.send({op:"QueryDatabase",method:"POST",path:"/databases/"+n("QueryDatabase","name",e.path.name)+"/sql",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listCrons(e){return t.send({op:"ListCrons",method:"GET",path:"/machines/"+n("ListCrons","name",e.path.name)+"/crons",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listCronRuns(e){return t.send({op:"ListCronRuns",method:"GET",path:"/machines/"+n("ListCronRuns","name",e.path.name)+"/crons/"+n("ListCronRuns","cron",e.path.cron)+"/runs",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async runCron(e){return t.send({op:"RunCron",method:"POST",path:"/machines/"+n("RunCron","name",e.path.name)+"/crons/"+n("RunCron","cron",e.path.cron)+"/run",auth:[["SecretKeyAuth"]],answers:{201:"json"},signal:e.signal})},async pauseCron(e){return t.send({op:"PauseCron",method:"POST",path:"/machines/"+n("PauseCron","name",e.path.name)+"/crons/"+n("PauseCron","cron",e.path.cron)+"/pause",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async resumeCron(e){return t.send({op:"ResumeCron",method:"POST",path:"/machines/"+n("ResumeCron","name",e.path.name)+"/crons/"+n("ResumeCron","cron",e.path.cron)+"/resume",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listTasks(e){return t.send({op:"ListTasks",method:"GET",path:"/machines/"+n("ListTasks","name",e.path.name)+"/tasks",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async enqueueTask(e){return t.send({op:"EnqueueTask",method:"POST",path:"/machines/"+n("EnqueueTask","name",e.path.name)+"/tasks",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getTask(e){return t.send({op:"GetTask",method:"GET",path:"/machines/"+n("GetTask","name",e.path.name)+"/tasks/"+n("GetTask","task",e.path.task),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelTask(e){return t.send({op:"CancelTask",method:"POST",path:"/machines/"+n("CancelTask","name",e.path.name)+"/tasks/"+n("CancelTask","task",e.path.task)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async retryTask(e){return t.send({op:"RetryTask",method:"POST",path:"/machines/"+n("RetryTask","name",e.path.name)+"/tasks/"+n("RetryTask","task",e.path.task)+"/retry",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listTaskTypes(e){return t.send({op:"ListTaskTypes",method:"GET",path:"/machines/"+n("ListTaskTypes","name",e.path.name)+"/task-types",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async makeTemplatedTestUsers(e){return t.send({op:"MakeTemplatedTestUsers",method:"POST",path:"/machines/"+n("MakeTemplatedTestUsers","name",e.path.name)+"/test-users",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async templateTestUser(e){return t.send({op:"TemplateTestUser",method:"POST",path:"/machines/"+n("TemplateTestUser","name",e.path.name)+"/test-users/"+n("TemplateTestUser","user",e.path.user)+"/templates/"+n("TemplateTestUser","template",e.path.template),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteTemplatedTestUser(e){return t.send({op:"DeleteTemplatedTestUser",method:"DELETE",path:"/machines/"+n("DeleteTemplatedTestUser","name",e.path.name)+"/test-users/"+n("DeleteTemplatedTestUser","user",e.path.user),auth:[["SecretKeyAuth"]],answers:{200:"json",204:"empty"},headers:e.headers,signal:e.signal})},async listSites(e){return t.send({op:"ListSites",method:"GET",path:"/sites",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createSite(e){return t.send({op:"CreateSite",method:"POST",path:"/sites",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSite(e){return t.send({op:"GetSite",method:"GET",path:"/sites/"+n("GetSite","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteSite(e){return t.send({op:"DeleteSite",method:"DELETE",path:"/sites/"+n("DeleteSite","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateSite(e){return t.send({op:"UpdateSite",method:"PATCH",path:"/sites/"+n("UpdateSite","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSiteReleases(e){return t.send({op:"ListSiteReleases",method:"GET",path:"/sites/"+n("ListSiteReleases","name",e.path.name)+"/releases",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createSiteRelease(e){return t.send({op:"CreateSiteRelease",method:"POST",path:"/sites/"+n("CreateSiteRelease","name",e.path.name)+"/releases",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async uploadSiteFile(e){return t.send({op:"UploadSiteFile",method:"PUT",path:"/sites/"+n("UploadSiteFile","name",e.path.name)+"/releases/"+n("UploadSiteFile","release",e.path.release)+"/files/"+n("UploadSiteFile","digest",e.path.digest),auth:[["SecretKeyAuth"]],answers:{204:"empty"},body:{kind:"raw",contentType:e.contentType??"application/octet-stream",value:e.body},signal:e.signal})},async finishSiteRelease(e){return t.send({op:"FinishSiteRelease",method:"POST",path:"/sites/"+n("FinishSiteRelease","name",e.path.name)+"/releases/"+n("FinishSiteRelease","release",e.path.release)+"/finish",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async rollbackSite(e){return t.send({op:"RollbackSite",method:"POST",path:"/sites/"+n("RollbackSite","name",e.path.name)+"/rollback",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSiteBuilds(e){return t.send({op:"ListSiteBuilds",method:"GET",path:"/sites/"+n("ListSiteBuilds","name",e.path.name)+"/builds",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deploySite(e){return t.send({op:"DeploySite",method:"POST",path:"/sites/"+n("DeploySite","name",e.path.name)+"/builds",auth:[["SecretKeyAuth"]],answers:{202:"json"},signal:e.signal})},async listSitePreviews(e){return t.send({op:"ListSitePreviews",method:"GET",path:"/sites/"+n("ListSitePreviews","name",e.path.name)+"/previews",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listSiteDomains(e){return t.send({op:"ListSiteDomains",method:"GET",path:"/sites/"+n("ListSiteDomains","name",e.path.name)+"/domains",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async addSiteDomain(e){return t.send({op:"AddSiteDomain",method:"POST",path:"/sites/"+n("AddSiteDomain","name",e.path.name)+"/domains",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteSiteDomain(e){return t.send({op:"DeleteSiteDomain",method:"DELETE",path:"/sites/"+n("DeleteSiteDomain","name",e.path.name)+"/domains/"+n("DeleteSiteDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async updateSiteDomain(e){return t.send({op:"UpdateSiteDomain",method:"PATCH",path:"/sites/"+n("UpdateSiteDomain","name",e.path.name)+"/domains/"+n("UpdateSiteDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSiteBuild(e){return t.send({op:"GetSiteBuild",method:"GET",path:"/sites/"+n("GetSiteBuild","name",e.path.name)+"/builds/"+n("GetSiteBuild","build",e.path.build),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async authorizeSitePreview(e){return t.send({op:"AuthorizeSitePreview",method:"POST",path:"/sites/"+n("AuthorizeSitePreview","name",e.path.name)+"/previews/"+n("AuthorizeSitePreview","pull_request",e.path.pull_request)+"/authorize",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async authorizeMachinePreview(e){return t.send({op:"AuthorizeMachinePreview",method:"POST",path:"/machines/"+n("AuthorizeMachinePreview","name",e.path.name)+"/previews/"+n("AuthorizeMachinePreview","pull_request",e.path.pull_request)+"/authorize",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async openMachinePreview(e){return t.send({op:"OpenMachinePreview",method:"POST",path:"/machines/"+n("OpenMachinePreview","name",e.path.name)+"/previews/"+n("OpenMachinePreview","pull_request",e.path.pull_request)+"/open",auth:[["SecretKeyAuth"]],answers:{202:"json"},signal:e.signal})},async moveMachine(e){return t.send({op:"MoveMachine",method:"POST",path:"/machines/"+n("MoveMachine","name",e.path.name)+"/move",auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async moveSite(e){return t.send({op:"MoveSite",method:"POST",path:"/sites/"+n("MoveSite","name",e.path.name)+"/move",auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async moveDatabase(e){return t.send({op:"MoveDatabase",method:"POST",path:"/databases/"+n("MoveDatabase","name",e.path.name)+"/move",auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async cancelSiteBuild(e){return t.send({op:"CancelSiteBuild",method:"POST",path:"/sites/"+n("CancelSiteBuild","name",e.path.name)+"/builds/"+n("CancelSiteBuild","build",e.path.build)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelBuild(e){return t.send({op:"CancelBuild",method:"POST",path:"/machines/"+n("CancelBuild","name",e.path.name)+"/builds/"+n("CancelBuild","build",e.path.build)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listSiteHooks(e){return t.send({op:"ListSiteHooks",method:"GET",path:"/sites/"+n("ListSiteHooks","name",e.path.name)+"/hooks",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createSiteHook(e){return t.send({op:"CreateSiteHook",method:"POST",path:"/sites/"+n("CreateSiteHook","name",e.path.name)+"/hooks",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteSiteHook(e){return t.send({op:"DeleteSiteHook",method:"DELETE",path:"/sites/"+n("DeleteSiteHook","name",e.path.name)+"/hooks/"+n("DeleteSiteHook","hook",e.path.hook),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listMachineHooks(e){return t.send({op:"ListMachineHooks",method:"GET",path:"/machines/"+n("ListMachineHooks","name",e.path.name)+"/hooks",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createMachineHook(e){return t.send({op:"CreateMachineHook",method:"POST",path:"/machines/"+n("CreateMachineHook","name",e.path.name)+"/hooks",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMachineHook(e){return t.send({op:"DeleteMachineHook",method:"DELETE",path:"/machines/"+n("DeleteMachineHook","name",e.path.name)+"/hooks/"+n("DeleteMachineHook","hook",e.path.hook),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async detectProject(e){return t.send({op:"DetectProject",method:"GET",path:"/machines/github/detect",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async createPreviewPass(e){return t.send({op:"CreatePreviewPass",method:"POST",path:"/sites/"+n("CreatePreviewPass","name",e.path.name)+"/previews/pass",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPreviewLinks(e){return t.send({op:"ListPreviewLinks",method:"GET",path:"/sites/"+n("ListPreviewLinks","name",e.path.name)+"/previews/links",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createPreviewLink(e){return t.send({op:"CreatePreviewLink",method:"POST",path:"/sites/"+n("CreatePreviewLink","name",e.path.name)+"/previews/links",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deletePreviewLink(e){return t.send({op:"DeletePreviewLink",method:"DELETE",path:"/sites/"+n("DeletePreviewLink","name",e.path.name)+"/previews/links/"+n("DeletePreviewLink","link",e.path.link),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listEnvironmentDomains(e){return t.send({op:"ListEnvironmentDomains",method:"GET",path:"/domains",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async addEnvironmentDomain(e){return t.send({op:"AddEnvironmentDomain",method:"POST",path:"/domains",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteEnvironmentDomain(e){return t.send({op:"DeleteEnvironmentDomain",method:"DELETE",path:"/domains/"+n("DeleteEnvironmentDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async setEnvironmentSignInDomain(e){return t.send({op:"SetEnvironmentSignInDomain",method:"PATCH",path:"/domains/"+n("SetEnvironmentSignInDomain","host",e.path.host),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var m={};s(m,{client:()=>L});function L(t){return{async adminAccessLog(e){return t.send({op:"AdminAccessLog",method:"GET",path:"/messaging/admin/access-log",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminListConversations(e){return t.send({op:"AdminListConversations",method:"GET",path:"/messaging/admin/conversations",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminCreateConversation(e){return t.send({op:"AdminCreateConversation",method:"POST",path:"/messaging/admin/conversations",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminGetConversation(e){return t.send({op:"AdminGetConversation",method:"GET",path:"/messaging/admin/conversations/"+n("AdminGetConversation","conversation_id",e.path.conversation_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminDeleteConversation(e){return t.send({op:"AdminDeleteConversation",method:"DELETE",path:"/messaging/admin/conversations/"+n("AdminDeleteConversation","conversation_id",e.path.conversation_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async adminUpdateConversation(e){return t.send({op:"AdminUpdateConversation",method:"PATCH",path:"/messaging/admin/conversations/"+n("AdminUpdateConversation","conversation_id",e.path.conversation_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminAddMembers(e){return t.send({op:"AdminAddMembers",method:"POST",path:"/messaging/admin/conversations/"+n("AdminAddMembers","conversation_id",e.path.conversation_id)+"/members",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminRemoveMember(e){return t.send({op:"AdminRemoveMember",method:"DELETE",path:"/messaging/admin/conversations/"+n("AdminRemoveMember","conversation_id",e.path.conversation_id)+"/members/"+n("AdminRemoveMember","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async adminListMessages(e){return t.send({op:"AdminListMessages",method:"GET",path:"/messaging/admin/conversations/"+n("AdminListMessages","conversation_id",e.path.conversation_id)+"/messages",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async adminSendMessage(e){return t.send({op:"AdminSendMessage",method:"POST",path:"/messaging/admin/conversations/"+n("AdminSendMessage","conversation_id",e.path.conversation_id)+"/messages",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminDeleteMessage(e){return t.send({op:"AdminDeleteMessage",method:"DELETE",path:"/messaging/admin/conversations/"+n("AdminDeleteMessage","conversation_id",e.path.conversation_id)+"/messages/"+n("AdminDeleteMessage","message_id",e.path.message_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async adminFileUrl(e){return t.send({op:"AdminFileURL",method:"GET",path:"/messaging/admin/conversations/"+n("AdminFileURL","conversation_id",e.path.conversation_id)+"/messages/"+n("AdminFileURL","message_id",e.path.message_id)+"/attachments/"+n("AdminFileURL","attachment_id",e.path.attachment_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminPutProfile(e){return t.send({op:"AdminPutProfile",method:"PUT",path:"/messaging/admin/profiles/"+n("AdminPutProfile","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async adminListReports(e){return t.send({op:"AdminListReports",method:"GET",path:"/messaging/admin/reports",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async adminGetReport(e){return t.send({op:"AdminGetReport",method:"GET",path:"/messaging/admin/reports/"+n("AdminGetReport","report_id",e.path.report_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminReportFileUrl(e){return t.send({op:"AdminReportFileURL",method:"GET",path:"/messaging/admin/reports/"+n("AdminReportFileURL","report_id",e.path.report_id)+"/attachments/"+n("AdminReportFileURL","attachment_id",e.path.attachment_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async adminResolveReport(e){return t.send({op:"AdminResolveReport",method:"POST",path:"/messaging/admin/reports/"+n("AdminResolveReport","report_id",e.path.report_id)+"/resolve",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listBlocks(e){return t.send({op:"ListBlocks",method:"GET",path:"/messaging/blocks",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async block(e){return t.send({op:"Block",method:"PUT",path:"/messaging/blocks/"+n("Block","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async unblock(e){return t.send({op:"Unblock",method:"DELETE",path:"/messaging/blocks/"+n("Unblock","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async listConversations(e){return t.send({op:"ListConversations",method:"GET",path:"/messaging/conversations",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async openDirectConversation(e){return t.send({op:"OpenDirectConversation",method:"POST",path:"/messaging/conversations/direct",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json",201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createGroup(e){return t.send({op:"CreateGroup",method:"POST",path:"/messaging/conversations/group",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getConversation(e){return t.send({op:"GetConversation",method:"GET",path:"/messaging/conversations/"+n("GetConversation","conversation_id",e.path.conversation_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async deleteConversation(e){return t.send({op:"DeleteConversation",method:"DELETE",path:"/messaging/conversations/"+n("DeleteConversation","conversation_id",e.path.conversation_id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async updateConversation(e){return t.send({op:"UpdateConversation",method:"PATCH",path:"/messaging/conversations/"+n("UpdateConversation","conversation_id",e.path.conversation_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async clearConversation(e){return t.send({op:"ClearConversation",method:"POST",path:"/messaging/conversations/"+n("ClearConversation","conversation_id",e.path.conversation_id)+"/clear",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async closeConversation(e){return t.send({op:"CloseConversation",method:"POST",path:"/messaging/conversations/"+n("CloseConversation","conversation_id",e.path.conversation_id)+"/close",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async joinGroup(e){return t.send({op:"JoinGroup",method:"POST",path:"/messaging/conversations/"+n("JoinGroup","conversation_id",e.path.conversation_id)+"/join",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async listMembers(e){return t.send({op:"ListMembers",method:"GET",path:"/messaging/conversations/"+n("ListMembers","conversation_id",e.path.conversation_id)+"/members",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async addMembers(e){return t.send({op:"AddMembers",method:"POST",path:"/messaging/conversations/"+n("AddMembers","conversation_id",e.path.conversation_id)+"/members",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeMember(e){return t.send({op:"RemoveMember",method:"DELETE",path:"/messaging/conversations/"+n("RemoveMember","conversation_id",e.path.conversation_id)+"/members/"+n("RemoveMember","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async updateMember(e){return t.send({op:"UpdateMember",method:"PATCH",path:"/messaging/conversations/"+n("UpdateMember","conversation_id",e.path.conversation_id)+"/members/"+n("UpdateMember","user_id",e.path.user_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMessages(e){return t.send({op:"ListMessages",method:"GET",path:"/messaging/conversations/"+n("ListMessages","conversation_id",e.path.conversation_id)+"/messages",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async sendMessage(e){return t.send({op:"SendMessage",method:"POST",path:"/messaging/conversations/"+n("SendMessage","conversation_id",e.path.conversation_id)+"/messages",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json",201:"json",202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getMessage(e){return t.send({op:"GetMessage",method:"GET",path:"/messaging/conversations/"+n("GetMessage","conversation_id",e.path.conversation_id)+"/messages/"+n("GetMessage","message_id",e.path.message_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async deleteMessage(e){return t.send({op:"DeleteMessage",method:"DELETE",path:"/messaging/conversations/"+n("DeleteMessage","conversation_id",e.path.conversation_id)+"/messages/"+n("DeleteMessage","message_id",e.path.message_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json",204:"empty"},query:e.query,signal:e.signal})},async editMessage(e){return t.send({op:"EditMessage",method:"PATCH",path:"/messaging/conversations/"+n("EditMessage","conversation_id",e.path.conversation_id)+"/messages/"+n("EditMessage","message_id",e.path.message_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async attachmentUrl(e){return t.send({op:"AttachmentURL",method:"GET",path:"/messaging/conversations/"+n("AttachmentURL","conversation_id",e.path.conversation_id)+"/messages/"+n("AttachmentURL","message_id",e.path.message_id)+"/attachments/"+n("AttachmentURL","attachment_id",e.path.attachment_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async react(e){return t.send({op:"React",method:"PUT",path:"/messaging/conversations/"+n("React","conversation_id",e.path.conversation_id)+"/messages/"+n("React","message_id",e.path.message_id)+"/reactions/"+n("React","emoji",e.path.emoji),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async unreact(e){return t.send({op:"Unreact",method:"DELETE",path:"/messaging/conversations/"+n("Unreact","conversation_id",e.path.conversation_id)+"/messages/"+n("Unreact","message_id",e.path.message_id)+"/reactions/"+n("Unreact","emoji",e.path.emoji),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async messageReaders(e){return t.send({op:"MessageReaders",method:"GET",path:"/messaging/conversations/"+n("MessageReaders","conversation_id",e.path.conversation_id)+"/messages/"+n("MessageReaders","message_id",e.path.message_id)+"/readers",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async listReplies(e){return t.send({op:"ListReplies",method:"GET",path:"/messaging/conversations/"+n("ListReplies","conversation_id",e.path.conversation_id)+"/messages/"+n("ListReplies","message_id",e.path.message_id)+"/replies",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async viewOnce(e){return t.send({op:"ViewOnce",method:"POST",path:"/messaging/conversations/"+n("ViewOnce","conversation_id",e.path.conversation_id)+"/messages/"+n("ViewOnce","message_id",e.path.message_id)+"/view",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async setConversationNotifications(e){return t.send({op:"SetConversationNotifications",method:"PUT",path:"/messaging/conversations/"+n("SetConversationNotifications","conversation_id",e.path.conversation_id)+"/notifications",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async reportScreenshot(e){return t.send({op:"ReportScreenshot",method:"POST",path:"/messaging/conversations/"+n("ReportScreenshot","conversation_id",e.path.conversation_id)+"/screenshot",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},signal:e.signal})},async typing(e){return t.send({op:"Typing",method:"POST",path:"/messaging/conversations/"+n("Typing","conversation_id",e.path.conversation_id)+"/typing",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createUpload(e){return t.send({op:"CreateUpload",method:"POST",path:"/messaging/conversations/"+n("CreateUpload","conversation_id",e.path.conversation_id)+"/uploads",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listOpenGroups(e){return t.send({op:"ListOpenGroups",method:"GET",path:"/messaging/groups/open",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getMyProfile(e){return t.send({op:"GetMyProfile",method:"GET",path:"/messaging/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async updateMyProfile(e){return t.send({op:"UpdateMyProfile",method:"PATCH",path:"/messaging/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async presence(e){return t.send({op:"Presence",method:"POST",path:"/messaging/me/presence",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e?.signal})},async getProfiles(e){return t.send({op:"GetProfiles",method:"GET",path:"/messaging/profiles",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async receipts(e){return t.send({op:"Receipts",method:"POST",path:"/messaging/receipts",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async report(e){return t.send({op:"Report",method:"POST",path:"/messaging/reports",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listScheduled(e){return t.send({op:"ListScheduled",method:"GET",path:"/messaging/scheduled",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async cancelScheduled(e){return t.send({op:"CancelScheduled",method:"DELETE",path:"/messaging/scheduled/"+n("CancelScheduled","scheduled_id",e.path.scheduled_id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async updateScheduled(e){return t.send({op:"UpdateScheduled",method:"PATCH",path:"/messaging/scheduled/"+n("UpdateScheduled","scheduled_id",e.path.scheduled_id),auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async searchMessages(e){return t.send({op:"SearchMessages",method:"GET",path:"/messaging/search",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/messaging/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putSettings(e){return t.send({op:"PutSettings",method:"PUT",path:"/messaging/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rotateHookSecret(e){return t.send({op:"RotateHookSecret",method:"POST",path:"/messaging/settings/hook-secret",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async sync(e){return t.send({op:"Sync",method:"GET",path:"/messaging/sync",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listThreads(e){return t.send({op:"ListThreads",method:"GET",path:"/messaging/threads",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})}}}var h={};s(h,{client:()=>M});function M(t){return{async getDeliverability(e){return t.send({op:"GetDeliverability",method:"GET",path:"/notify/deliverability",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listDevices(e){return t.send({op:"ListDevices",method:"GET",path:"/notify/devices",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async registerDevice(e){return t.send({op:"RegisterDevice",method:"POST",path:"/notify/devices",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getDeviceStats(e){return t.send({op:"GetDeviceStats",method:"GET",path:"/notify/devices/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async deleteMyDevice(e){return t.send({op:"DeleteMyDevice",method:"DELETE",path:"/notify/devices/"+n("DeleteMyDevice","device_id",e.path.device_id),auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async sendEmail(e){return t.send({op:"SendEmail",method:"POST",path:"/notify/email",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listInAppCampaigns(e){return t.send({op:"ListInAppCampaigns",method:"GET",path:"/notify/in-app/campaigns",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createInAppCampaign(e){return t.send({op:"CreateInAppCampaign",method:"POST",path:"/notify/in-app/campaigns",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getInAppCampaign(e){return t.send({op:"GetInAppCampaign",method:"GET",path:"/notify/in-app/campaigns/"+n("GetInAppCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putInAppCampaign(e){return t.send({op:"PutInAppCampaign",method:"PUT",path:"/notify/in-app/campaigns/"+n("PutInAppCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteInAppCampaign(e){return t.send({op:"DeleteInAppCampaign",method:"DELETE",path:"/notify/in-app/campaigns/"+n("DeleteInAppCampaign","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async getInAppCampaignStats(e){return t.send({op:"GetInAppCampaignStats",method:"GET",path:"/notify/in-app/campaigns/"+n("GetInAppCampaignStats","id",e.path.id)+"/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async showInAppMessage(e){return t.send({op:"ShowInAppMessage",method:"POST",path:"/notify/in-app/impressions",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async reportInAppEvent(e){return t.send({op:"ReportInAppEvent",method:"POST",path:"/notify/in-app/impressions/"+n("ReportInAppEvent","id",e.path.id)+"/events",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{204:"empty"},idempotent:!0,query:e.query,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMyInAppMessages(e){return t.send({op:"ListMyInAppMessages",method:"GET",path:"/notify/in-app/messages",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listInAppTemplates(e){return t.send({op:"ListInAppTemplates",method:"GET",path:"/notify/in-app/templates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listMyInbox(e){return t.send({op:"ListMyInbox",method:"GET",path:"/notify/inbox",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async sendInbox(e){return t.send({op:"SendInbox",method:"POST",path:"/notify/inbox",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listInboxMessages(e){return t.send({op:"ListInboxMessages",method:"GET",path:"/notify/inbox/messages",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async readMyInbox(e){return t.send({op:"ReadMyInbox",method:"POST",path:"/notify/inbox/read",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteMyInboxMessage(e){return t.send({op:"DeleteMyInboxMessage",method:"DELETE",path:"/notify/inbox/"+n("DeleteMyInboxMessage","id",e.path.id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listNotifyMessages(e){return t.send({op:"ListNotifyMessages",method:"GET",path:"/notify/messages",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getNotifyMessage(e){return t.send({op:"GetNotifyMessage",method:"GET",path:"/notify/messages/"+n("GetNotifyMessage","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelMessage(e){return t.send({op:"CancelMessage",method:"POST",path:"/notify/messages/"+n("CancelMessage","id",e.path.id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getMetricsSummary(e){return t.send({op:"GetMetricsSummary",method:"GET",path:"/notify/metrics/summary",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getMyPreferences(e){return t.send({op:"GetMyPreferences",method:"GET",path:"/notify/preferences",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async setMyPreferences(e){return t.send({op:"SetMyPreferences",method:"PUT",path:"/notify/preferences",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listNotifyProviders(e){return t.send({op:"ListNotifyProviders",method:"GET",path:"/notify/providers",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putNotifyProvider(e){return t.send({op:"PutNotifyProvider",method:"PUT",path:"/notify/providers/"+n("PutNotifyProvider","channel",e.path.channel)+"/"+n("PutNotifyProvider","provider",e.path.provider),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteNotifyProvider(e){return t.send({op:"DeleteNotifyProvider",method:"DELETE",path:"/notify/providers/"+n("DeleteNotifyProvider","channel",e.path.channel)+"/"+n("DeleteNotifyProvider","provider",e.path.provider),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async sendPush(e){return t.send({op:"SendPush",method:"POST",path:"/notify/push",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async recordPushReceipts(e){return t.send({op:"RecordPushReceipts",method:"POST",path:"/notify/receipts",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getNotifySettings(e){return t.send({op:"GetNotifySettings",method:"GET",path:"/notify/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putNotifySettings(e){return t.send({op:"PutNotifySettings",method:"PUT",path:"/notify/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sendSms(e){return t.send({op:"SendSMS",method:"POST",path:"/notify/sms",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listEmailTemplates(e){return t.send({op:"ListEmailTemplates",method:"GET",path:"/notify/templates/email",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getEmailTemplate(e){return t.send({op:"GetEmailTemplate",method:"GET",path:"/notify/templates/email/"+n("GetEmailTemplate","slug",e.path.slug)+"/"+n("GetEmailTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putEmailTemplate(e){return t.send({op:"PutEmailTemplate",method:"PUT",path:"/notify/templates/email/"+n("PutEmailTemplate","slug",e.path.slug)+"/"+n("PutEmailTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteEmailTemplate(e){return t.send({op:"DeleteEmailTemplate",method:"DELETE",path:"/notify/templates/email/"+n("DeleteEmailTemplate","slug",e.path.slug)+"/"+n("DeleteEmailTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listPushTemplates(e){return t.send({op:"ListPushTemplates",method:"GET",path:"/notify/templates/push",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getPushTemplate(e){return t.send({op:"GetPushTemplate",method:"GET",path:"/notify/templates/push/"+n("GetPushTemplate","slug",e.path.slug)+"/"+n("GetPushTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putPushTemplate(e){return t.send({op:"PutPushTemplate",method:"PUT",path:"/notify/templates/push/"+n("PutPushTemplate","slug",e.path.slug)+"/"+n("PutPushTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deletePushTemplate(e){return t.send({op:"DeletePushTemplate",method:"DELETE",path:"/notify/templates/push/"+n("DeletePushTemplate","slug",e.path.slug)+"/"+n("DeletePushTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listSmsTemplates(e){return t.send({op:"ListSMSTemplates",method:"GET",path:"/notify/templates/sms",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getSmsTemplate(e){return t.send({op:"GetSMSTemplate",method:"GET",path:"/notify/templates/sms/"+n("GetSMSTemplate","slug",e.path.slug)+"/"+n("GetSMSTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putSmsTemplate(e){return t.send({op:"PutSMSTemplate",method:"PUT",path:"/notify/templates/sms/"+n("PutSMSTemplate","slug",e.path.slug)+"/"+n("PutSMSTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteSmsTemplate(e){return t.send({op:"DeleteSMSTemplate",method:"DELETE",path:"/notify/templates/sms/"+n("DeleteSMSTemplate","slug",e.path.slug)+"/"+n("DeleteSMSTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listWhatsAppTemplates(e){return t.send({op:"ListWhatsAppTemplates",method:"GET",path:"/notify/templates/whatsapp",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getWhatsAppTemplate(e){return t.send({op:"GetWhatsAppTemplate",method:"GET",path:"/notify/templates/whatsapp/"+n("GetWhatsAppTemplate","slug",e.path.slug)+"/"+n("GetWhatsAppTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putWhatsAppTemplate(e){return t.send({op:"PutWhatsAppTemplate",method:"PUT",path:"/notify/templates/whatsapp/"+n("PutWhatsAppTemplate","slug",e.path.slug)+"/"+n("PutWhatsAppTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteWhatsAppTemplate(e){return t.send({op:"DeleteWhatsAppTemplate",method:"DELETE",path:"/notify/templates/whatsapp/"+n("DeleteWhatsAppTemplate","slug",e.path.slug)+"/"+n("DeleteWhatsAppTemplate","locale",e.path.locale),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listTestUserMessages(e){return t.send({op:"ListTestUserMessages",method:"GET",path:"/notify/test-users/"+n("ListTestUserMessages","user_id",e.path.user_id)+"/messages",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listTopics(e){return t.send({op:"ListTopics",method:"GET",path:"/notify/topics",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createTopic(e){return t.send({op:"CreateTopic",method:"POST",path:"/notify/topics",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteTopic(e){return t.send({op:"DeleteTopic",method:"DELETE",path:"/notify/topics/"+n("DeleteTopic","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async changeTopic(e){return t.send({op:"ChangeTopic",method:"PATCH",path:"/notify/topics/"+n("ChangeTopic","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addTopicSubscribers(e){return t.send({op:"AddTopicSubscribers",method:"POST",path:"/notify/topics/"+n("AddTopicSubscribers","name",e.path.name)+"/subscribers",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeTopicSubscriber(e){return t.send({op:"RemoveTopicSubscriber",method:"DELETE",path:"/notify/topics/"+n("RemoveTopicSubscriber","name",e.path.name)+"/subscribers/"+n("RemoveTopicSubscriber","user_id",e.path.user_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async followTopic(e){return t.send({op:"FollowTopic",method:"POST",path:"/notify/topics/"+n("FollowTopic","name",e.path.name)+"/subscription",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async unfollowTopic(e){return t.send({op:"UnfollowTopic",method:"DELETE",path:"/notify/topics/"+n("UnfollowTopic","name",e.path.name)+"/subscription",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listUserDevices(e){return t.send({op:"ListUserDevices",method:"GET",path:"/notify/users/"+n("ListUserDevices","user_id",e.path.user_id)+"/devices",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getUserPreferences(e){return t.send({op:"GetUserPreferences",method:"GET",path:"/notify/users/"+n("GetUserPreferences","user_id",e.path.user_id)+"/preferences",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setUserPreferences(e){return t.send({op:"SetUserPreferences",method:"PUT",path:"/notify/users/"+n("SetUserPreferences","user_id",e.path.user_id)+"/preferences",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async startVerification(e){return t.send({op:"StartVerification",method:"POST",path:"/notify/verifications",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async checkVerification(e){return t.send({op:"CheckVerification",method:"POST",path:"/notify/verifications/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveSendGridEvents(e){return t.send({op:"ReceiveSendGridEvents",method:"POST",path:"/notify/webhooks/email/sendgrid",auth:[],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveTwilioStatus(e){return t.send({op:"ReceiveTwilioStatus",method:"POST",path:"/notify/webhooks/sms/twilio",auth:[],answers:{204:"empty"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async receiveTwilioText(e){return t.send({op:"ReceiveTwilioText",method:"POST",path:"/notify/webhooks/sms/twilio/inbound",auth:[],answers:{204:"empty"},body:{kind:"form",contentType:"application/x-www-form-urlencoded",value:e.body},signal:e.signal})},async receiveVonageReceiptQuery(e){return t.send({op:"ReceiveVonageReceiptQuery",method:"GET",path:"/notify/webhooks/sms/vonage",auth:[],answers:{204:"empty"},query:e?.query,signal:e?.signal})},async receiveVonageReceipt(e){return t.send({op:"ReceiveVonageReceipt",method:"POST",path:"/notify/webhooks/sms/vonage",auth:[],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async subscribeMetaWebhook(e){return t.send({op:"SubscribeMetaWebhook",method:"GET",path:"/notify/webhooks/whatsapp/meta",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async receiveMetaNotification(e){return t.send({op:"ReceiveMetaNotification",method:"POST",path:"/notify/webhooks/whatsapp/meta",auth:[],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getWebPushStatus(e){return t.send({op:"GetWebPushStatus",method:"GET",path:"/notify/webpush",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getWebPushKey(e){return t.send({op:"GetWebPushKey",method:"GET",path:"/notify/webpush/key",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async sendWhatsApp(e){return t.send({op:"SendWhatsApp",method:"POST",path:"/notify/whatsapp",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listWhatsAppInbound(e){return t.send({op:"ListWhatsAppInbound",method:"GET",path:"/notify/whatsapp/inbound",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})}}}var b={};s(b,{client:()=>G});function G(t){return{async auditCashFlow(e){return t.send({op:"AuditCashFlow",method:"GET",path:"/payments/audit/cashflow",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async auditDrift(e){return t.send({op:"AuditDrift",method:"GET",path:"/payments/audit/drift",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async auditLedger(e){return t.send({op:"AuditLedger",method:"GET",path:"/payments/audit/ledger",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async exportAuditLedgerCsv(e){return t.send({op:"ExportAuditLedgerCSV",method:"GET",path:"/payments/audit/ledger/export",auth:[["SecretKeyAuth"]],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async providerCallbackGet(e){return t.send({op:"ProviderCallbackGet",method:"GET",path:"/payments/callback/"+n("ProviderCallbackGet","provider",e.path.provider)+"/"+n("ProviderCallbackGet","attempt_id",e.path.attempt_id),auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async providerCallbackPost(e){return t.send({op:"ProviderCallbackPost",method:"POST",path:"/payments/callback/"+n("ProviderCallbackPost","provider",e.path.provider)+"/"+n("ProviderCallbackPost","attempt_id",e.path.attempt_id),auth:[],answers:{200:"raw"},signal:e.signal})},async getCapabilities(e){return t.send({op:"GetCapabilities",method:"GET",path:"/payments/capabilities",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listChannels(e){return t.send({op:"ListChannels",method:"GET",path:"/payments/channels",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectChannel(e){return t.send({op:"ConnectChannel",method:"POST",path:"/payments/channels",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createChannelGrant(e){return t.send({op:"CreateChannelGrant",method:"POST",path:"/payments/channels/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChannel(e){return t.send({op:"GetChannel",method:"GET",path:"/payments/channels/"+n("GetChannel","channel_key",e.path.channel_key),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteChannel(e){return t.send({op:"DeleteChannel",method:"DELETE",path:"/payments/channels/"+n("DeleteChannel","channel_key",e.path.channel_key),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async checkChannel(e){return t.send({op:"CheckChannel",method:"POST",path:"/payments/channels/"+n("CheckChannel","channel_key",e.path.channel_key)+"/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setDefaultChannel(e){return t.send({op:"SetDefaultChannel",method:"POST",path:"/payments/channels/"+n("SetDefaultChannel","channel_key",e.path.channel_key)+"/default",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async connectChannelPage(e){return t.send({op:"ConnectChannelPage",method:"GET",path:"/payments/connect",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async connectChannelSubmit(e){return t.send({op:"ConnectChannelSubmit",method:"POST",path:"/payments/connect",auth:[],answers:{200:"json"},signal:e?.signal})},async listDisputes(e){return t.send({op:"ListDisputes",method:"GET",path:"/payments/disputes",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async lookupInstallments(e){return t.send({op:"LookupInstallments",method:"POST",path:"/payments/installments",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listIntents(e){return t.send({op:"ListIntents",method:"GET",path:"/payments/intents",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createIntent(e){return t.send({op:"CreateIntent",method:"POST",path:"/payments/intents",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getIntent(e){return t.send({op:"GetIntent",method:"GET",path:"/payments/intents/"+n("GetIntent","intent_id",e.path.intent_id),auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listIntentAttempts(e){return t.send({op:"ListIntentAttempts",method:"GET",path:"/payments/intents/"+n("ListIntentAttempts","intent_id",e.path.intent_id)+"/attempts",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async cancelIntent(e){return t.send({op:"CancelIntent",method:"POST",path:"/payments/intents/"+n("CancelIntent","intent_id",e.path.intent_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async settlePendingRefund(e){return t.send({op:"SettlePendingRefund",method:"POST",path:"/payments/intents/"+n("SettlePendingRefund","intent_id",e.path.intent_id)+"/pending-refund",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async captureIntent(e){return t.send({op:"CaptureIntent",method:"POST",path:"/payments/intents/"+n("CaptureIntent","intent_id",e.path.intent_id)+"/capture",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async confirmIntent(e){return t.send({op:"ConfirmIntent",method:"POST",path:"/payments/intents/"+n("ConfirmIntent","intent_id",e.path.intent_id)+"/confirm",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async submitIntentOtp(e){return t.send({op:"SubmitIntentOTP",method:"POST",path:"/payments/intents/"+n("SubmitIntentOTP","intent_id",e.path.intent_id)+"/otp",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMyMethods(e){return t.send({op:"ListMyMethods",method:"GET",path:"/payments/me/methods",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async addMyMethod(e){return t.send({op:"AddMyMethod",method:"POST",path:"/payments/me/methods",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async deleteMyMethod(e){return t.send({op:"DeleteMyMethod",method:"DELETE",path:"/payments/me/methods/"+n("DeleteMyMethod","method_id",e.path.method_id),auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async createMyPortal(e){return t.send({op:"CreateMyPortal",method:"POST",path:"/payments/me/portal",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getMyProfile(e){return t.send({op:"GetMyProfile",method:"GET",path:"/payments/me/profile",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async updateMyProfile(e){return t.send({op:"UpdateMyProfile",method:"PUT",path:"/payments/me/profile",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMySubscriptions(e){return t.send({op:"ListMySubscriptions",method:"GET",path:"/payments/me/subscriptions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async cancelMySubscription(e){return t.send({op:"CancelMySubscription",method:"POST",path:"/payments/me/subscriptions/"+n("CancelMySubscription","subscription_id",e.path.subscription_id)+"/cancel",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e.signal})},async listMyWallets(e){return t.send({op:"ListMyWallets",method:"GET",path:"/payments/me/wallets",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async createMySpendToken(e){return t.send({op:"CreateMySpendToken",method:"POST",path:"/payments/me/wallets/spend-tokens",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async topUpMyWallet(e){return t.send({op:"TopUpMyWallet",method:"POST",path:"/payments/me/wallets/top-up",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listRefunds(e){return t.send({op:"ListRefunds",method:"GET",path:"/payments/refunds",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createRefund(e){return t.send({op:"CreateRefund",method:"POST",path:"/payments/refunds",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listRoutingRules(e){return t.send({op:"ListRoutingRules",method:"GET",path:"/payments/routing-rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async replaceRoutingRules(e){return t.send({op:"ReplaceRoutingRules",method:"PUT",path:"/payments/routing-rules",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSellerAccount(e){return t.send({op:"GetSellerAccount",method:"GET",path:"/payments/seller-accounts/"+n("GetSellerAccount","seller_ref",e.path.seller_ref),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listSellerLedger(e){return t.send({op:"ListSellerLedger",method:"GET",path:"/payments/seller-accounts/"+n("ListSellerLedger","seller_ref",e.path.seller_ref)+"/ledger",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/payments/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async updateSettings(e){return t.send({op:"UpdateSettings",method:"PUT",path:"/payments/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPaymentSplits(e){return t.send({op:"ListPaymentSplits",method:"GET",path:"/payments/splits",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async updatePaymentSplit(e){return t.send({op:"UpdatePaymentSplit",method:"PUT",path:"/payments/splits/"+n("UpdatePaymentSplit","split_id",e.path.split_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async approvePaymentSplit(e){return t.send({op:"ApprovePaymentSplit",method:"POST",path:"/payments/splits/"+n("ApprovePaymentSplit","split_id",e.path.split_id)+"/approve",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async disapprovePaymentSplit(e){return t.send({op:"DisapprovePaymentSplit",method:"POST",path:"/payments/splits/"+n("DisapprovePaymentSplit","split_id",e.path.split_id)+"/disapprove",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async refundPaymentSplit(e){return t.send({op:"RefundPaymentSplit",method:"POST",path:"/payments/splits/"+n("RefundPaymentSplit","split_id",e.path.split_id)+"/refund",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async stripeAppCallback(e){return t.send({op:"StripeAppCallback",method:"GET",path:"/payments/stripe/app/callback",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async createStripeAppGrant(e){return t.send({op:"CreateStripeAppGrant",method:"POST",path:"/payments/stripe/app/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async stripeAppInstallPage(e){return t.send({op:"StripeAppInstallPage",method:"GET",path:"/payments/stripe/app/install",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async stripeAppInstallStart(e){return t.send({op:"StripeAppInstallStart",method:"POST",path:"/payments/stripe/app/install",auth:[],answers:{303:"redirect"},signal:e?.signal})},async listSubMerchants(e){return t.send({op:"ListSubMerchants",method:"GET",path:"/payments/sub-merchants",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async upsertSubMerchant(e){return t.send({op:"UpsertSubMerchant",method:"POST",path:"/payments/sub-merchants",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSubMerchant(e){return t.send({op:"GetSubMerchant",method:"GET",path:"/payments/sub-merchants/"+n("GetSubMerchant","sub_merchant_id",e.path.sub_merchant_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createSubMerchantOnboardingLink(e){return t.send({op:"CreateSubMerchantOnboardingLink",method:"POST",path:"/payments/sub-merchants/"+n("CreateSubMerchantOnboardingLink","sub_merchant_id",e.path.sub_merchant_id)+"/onboarding-link",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async syncSubMerchant(e){return t.send({op:"SyncSubMerchant",method:"POST",path:"/payments/sub-merchants/"+n("SyncSubMerchant","sub_merchant_id",e.path.sub_merchant_id)+"/sync",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listSubscriptions(e){return t.send({op:"ListSubscriptions",method:"GET",path:"/payments/subscriptions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async createSubscription(e){return t.send({op:"CreateSubscription",method:"POST",path:"/payments/subscriptions",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async cancelSubscription(e){return t.send({op:"CancelSubscription",method:"POST",path:"/payments/subscriptions/"+n("CancelSubscription","subscription_id",e.path.subscription_id)+"/cancel",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async extendSubscription(e){return t.send({op:"ExtendSubscription",method:"POST",path:"/payments/subscriptions/"+n("ExtendSubscription","subscription_id",e.path.subscription_id)+"/extend",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listWallets(e){return t.send({op:"ListWallets",method:"GET",path:"/payments/wallets",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async upsertWallet(e){return t.send({op:"UpsertWallet",method:"POST",path:"/payments/wallets",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async chargeWallet(e){return t.send({op:"ChargeWallet",method:"POST",path:"/payments/wallets/charge",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async creditWallet(e){return t.send({op:"CreditWallet",method:"POST",path:"/payments/wallets/credit",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCustomerWallets(e){return t.send({op:"GetCustomerWallets",method:"GET",path:"/payments/wallets/customers/"+n("GetCustomerWallets","customer_id",e.path.customer_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async freezeWallet(e){return t.send({op:"FreezeWallet",method:"PUT",path:"/payments/wallets/customers/"+n("FreezeWallet","customer_id",e.path.customer_id)+"/"+n("FreezeWallet","wallet_key",e.path.wallet_key)+"/freeze",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createWalletHold(e){return t.send({op:"CreateWalletHold",method:"POST",path:"/payments/wallets/holds",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async commitWalletHold(e){return t.send({op:"CommitWalletHold",method:"POST",path:"/payments/wallets/holds/"+n("CommitWalletHold","hold_id",e.path.hold_id)+"/commit",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async releaseWalletHold(e){return t.send({op:"ReleaseWalletHold",method:"POST",path:"/payments/wallets/holds/"+n("ReleaseWalletHold","hold_id",e.path.hold_id)+"/release",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async voidPendingWalletCredits(e){return t.send({op:"VoidPendingWalletCredits",method:"POST",path:"/payments/wallets/pending/void",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async transferWallet(e){return t.send({op:"TransferWallet",method:"POST",path:"/payments/wallets/transfer",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async iyzicoWebhook(e){return t.send({op:"IyzicoWebhook",method:"POST",path:"/payments/webhooks/iyzico",auth:[],answers:{200:"empty"},signal:e?.signal})},async stripeWebhook(e){return t.send({op:"StripeWebhook",method:"POST",path:"/payments/webhooks/stripe",auth:[],answers:{200:"empty"},signal:e?.signal})},async stripeAppWebhook(e){return t.send({op:"StripeAppWebhook",method:"POST",path:"/payments/webhooks/stripe-app",auth:[],answers:{200:"empty"},signal:e?.signal})},async stripeConnectWebhook(e){return t.send({op:"StripeConnectWebhook",method:"POST",path:"/payments/webhooks/stripe/connect",auth:[],answers:{200:"empty"},signal:e?.signal})},async getCustomer(e){return t.send({op:"GetCustomer",method:"GET",path:"/payments/customers/"+n("GetCustomer","customer_id",e.path.customer_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async updateCustomer(e){return t.send({op:"UpdateCustomer",method:"PUT",path:"/payments/customers/"+n("UpdateCustomer","customer_id",e.path.customer_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteCustomer(e){return t.send({op:"DeleteCustomer",method:"DELETE",path:"/payments/customers/"+n("DeleteCustomer","customer_id",e.path.customer_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listCustomerMethods(e){return t.send({op:"ListCustomerMethods",method:"GET",path:"/payments/customers/"+n("ListCustomerMethods","customer_id",e.path.customer_id)+"/methods",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async addCustomerMethod(e){return t.send({op:"AddCustomerMethod",method:"POST",path:"/payments/customers/"+n("AddCustomerMethod","customer_id",e.path.customer_id)+"/methods",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteCustomerMethod(e){return t.send({op:"DeleteCustomerMethod",method:"DELETE",path:"/payments/customers/"+n("DeleteCustomerMethod","customer_id",e.path.customer_id)+"/methods/"+n("DeleteCustomerMethod","method_id",e.path.method_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async setCustomerDefaultMethod(e){return t.send({op:"SetCustomerDefaultMethod",method:"POST",path:"/payments/customers/"+n("SetCustomerDefaultMethod","customer_id",e.path.customer_id)+"/methods/"+n("SetCustomerDefaultMethod","method_id",e.path.method_id)+"/default",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createCustomerPortal(e){return t.send({op:"CreateCustomerPortal",method:"POST",path:"/payments/customers/"+n("CreateCustomerPortal","customer_id",e.path.customer_id)+"/portal",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var _={};s(_,{client:()=>O});function O(t){return{async broadcast(e){return t.send({op:"Broadcast",method:"POST",path:"/realtime/broadcast",auth:[["SecretKeyAuth"]],answers:{202:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getChannels(e){return t.send({op:"GetChannels",method:"GET",path:"/realtime/channels",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putChannels(e){return t.send({op:"PutChannels",method:"PUT",path:"/realtime/channels",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getLimits(e){return t.send({op:"GetLimits",method:"GET",path:"/realtime/limits",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async putLimits(e){return t.send({op:"PutLimits",method:"PUT",path:"/realtime/limits",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revalidate(e){return t.send({op:"Revalidate",method:"POST",path:"/realtime/revalidate",auth:[["SecretKeyAuth"]],answers:{202:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async writeState(e){return t.send({op:"WriteState",method:"POST",path:"/realtime/state",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getStats(e){return t.send({op:"GetStats",method:"GET",path:"/realtime/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})}}}var P={};s(P,{client:()=>D});function D(t){return{async listSecretAudit(e){return t.send({op:"ListSecretAudit",method:"GET",path:"/secrets/audit",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listFieldKeys(e){return t.send({op:"ListFieldKeys",method:"GET",path:"/secrets/fields",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getFieldKeys(e){return t.send({op:"GetFieldKeys",method:"GET",path:"/secrets/fields/keys",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async openFields(e){return t.send({op:"OpenFields",method:"POST",path:"/secrets/fields/open",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sealPlaceholder(e){return t.send({op:"SealPlaceholder",method:"POST",path:"/secrets/fields/placeholder",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async rotateFieldKeys(e){return t.send({op:"RotateFieldKeys",method:"POST",path:"/secrets/fields/rotate",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async listTransitKeys(e){return t.send({op:"ListTransitKeys",method:"GET",path:"/secrets/transit",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getTransitKeys(e){return t.send({op:"GetTransitKeys",method:"GET",path:"/secrets/transit/keys",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getTransitPublicKeys(e){return t.send({op:"GetTransitPublicKeys",method:"GET",path:"/secrets/transit/public",auth:[["ApiKeyAuth"],["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async rotateTransitKeys(e){return t.send({op:"RotateTransitKeys",method:"POST",path:"/secrets/transit/rotate",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async retireTransitKey(e){return t.send({op:"RetireTransitKey",method:"POST",path:"/secrets/transit/"+n("RetireTransitKey","kid",e.path.kid)+"/retire",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async listSecrets(e){return t.send({op:"ListSecrets",method:"GET",path:"/secrets/"+n("ListSecrets","environment",e.path.environment),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getEnvironmentValues(e){return t.send({op:"GetEnvironmentValues",method:"GET",path:"/secrets/"+n("GetEnvironmentValues","environment",e.path.environment)+"/values",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getSecret(e){return t.send({op:"GetSecret",method:"GET",path:"/secrets/"+n("GetSecret","environment",e.path.environment)+"/"+n("GetSecret","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putSecret(e){return t.send({op:"PutSecret",method:"PUT",path:"/secrets/"+n("PutSecret","environment",e.path.environment)+"/"+n("PutSecret","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteSecret(e){return t.send({op:"DeleteSecret",method:"DELETE",path:"/secrets/"+n("DeleteSecret","environment",e.path.environment)+"/"+n("DeleteSecret","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async rollbackSecret(e){return t.send({op:"RollbackSecret",method:"POST",path:"/secrets/"+n("RollbackSecret","environment",e.path.environment)+"/"+n("RollbackSecret","name",e.path.name)+"/rollback",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listSecretVersions(e){return t.send({op:"ListSecretVersions",method:"GET",path:"/secrets/"+n("ListSecretVersions","environment",e.path.environment)+"/"+n("ListSecretVersions","name",e.path.name)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})}}}var R={};s(R,{client:()=>I});function I(t){return{async listBuckets(e){return t.send({op:"ListBuckets",method:"GET",path:"/storage/buckets",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getBucket(e){return t.send({op:"GetBucket",method:"GET",path:"/storage/buckets/"+n("GetBucket","bucket",e.path.bucket),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async putBucket(e){return t.send({op:"PutBucket",method:"PUT",path:"/storage/buckets/"+n("PutBucket","bucket",e.path.bucket),auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteBucket(e){return t.send({op:"DeleteBucket",method:"DELETE",path:"/storage/buckets/"+n("DeleteBucket","bucket",e.path.bucket),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async copyObject(e){return t.send({op:"CopyObject",method:"POST",path:"/storage/buckets/"+n("CopyObject","bucket",e.path.bucket)+"/copy",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async moveObject(e){return t.send({op:"MoveObject",method:"POST",path:"/storage/buckets/"+n("MoveObject","bucket",e.path.bucket)+"/move",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listObjects(e){return t.send({op:"ListObjects",method:"GET",path:"/storage/buckets/"+n("ListObjects","bucket",e.path.bucket)+"/objects",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getObject(e){return t.send({op:"GetObject",method:"GET",path:"/storage/buckets/"+n("GetObject","bucket",e.path.bucket)+"/objects/"+n("GetObject","path",e.path.path),auth:[["SecretKeyAuth"]],answers:{200:"raw",206:"raw",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async putObject(e){return t.send({op:"PutObject",method:"PUT",path:"/storage/buckets/"+n("PutObject","bucket",e.path.bucket)+"/objects/"+n("PutObject","path",e.path.path),auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},query:e.query,headers:e.headers,body:{kind:"raw",contentType:e.contentType??"application/octet-stream",value:e.body},signal:e.signal})},async deleteObject(e){return t.send({op:"DeleteObject",method:"DELETE",path:"/storage/buckets/"+n("DeleteObject","bucket",e.path.bucket)+"/objects/"+n("DeleteObject","path",e.path.path),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async headObject(e){return t.send({op:"HeadObject",method:"HEAD",path:"/storage/buckets/"+n("HeadObject","bucket",e.path.bucket)+"/objects/"+n("HeadObject","path",e.path.path),auth:[["SecretKeyAuth"]],answers:{200:"empty",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async createSignedUrl(e){return t.send({op:"CreateSignedUrl",method:"POST",path:"/storage/buckets/"+n("CreateSignedUrl","bucket",e.path.bucket)+"/signed-urls",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async createUploadUrl(e){return t.send({op:"CreateUploadUrl",method:"POST",path:"/storage/buckets/"+n("CreateUploadUrl","bucket",e.path.bucket)+"/upload-urls",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getPublicObject(e){return t.send({op:"GetPublicObject",method:"GET",path:"/storage/public/"+n("GetPublicObject","bucket",e.path.bucket)+"/"+n("GetPublicObject","path",e.path.path),auth:[],answers:{200:"raw",206:"raw",302:"redirect",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async headPublicObject(e){return t.send({op:"HeadPublicObject",method:"HEAD",path:"/storage/public/"+n("HeadPublicObject","bucket",e.path.bucket)+"/"+n("HeadPublicObject","path",e.path.path),auth:[],answers:{200:"empty",302:"redirect",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async getSignedObject(e){return t.send({op:"GetSignedObject",method:"GET",path:"/storage/signed/"+n("GetSignedObject","bucket",e.path.bucket)+"/"+n("GetSignedObject","path",e.path.path),auth:[],answers:{200:"raw",206:"raw",302:"redirect",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async putSignedObject(e){return t.send({op:"PutSignedObject",method:"PUT",path:"/storage/signed/"+n("PutSignedObject","bucket",e.path.bucket)+"/"+n("PutSignedObject","path",e.path.path),auth:[],answers:{200:"json",201:"json"},query:e.query,headers:e.headers,body:{kind:"raw",contentType:e.contentType??"application/octet-stream",value:e.body},signal:e.signal})},async headSignedObject(e){return t.send({op:"HeadSignedObject",method:"HEAD",path:"/storage/signed/"+n("HeadSignedObject","bucket",e.path.bucket)+"/"+n("HeadSignedObject","path",e.path.path),auth:[],answers:{200:"empty",302:"redirect",304:"empty"},query:e.query,headers:e.headers,signal:e.signal})},async getStorageStats(e){return t.send({op:"GetStorageStats",method:"GET",path:"/storage/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async upload(e){return t.send({op:"Upload",method:"POST",path:"/storage/upload/"+n("Upload","machine",e.path.machine)+"/"+n("Upload","route",e.path.route),auth:[["ApiKeyAuth","userJWT"],["ApiKeyAuth"]],answers:{},body:{kind:"raw",contentType:e.contentType??"multipart/form-data",value:e.body},signal:e.signal})}}}var S={};s(S,{client:()=>W});function W(t){return{async listActions(e){return t.send({op:"ListActions",method:"GET",path:"/stores/actions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getAction(e){return t.send({op:"GetAction",method:"GET",path:"/stores/actions/"+n("GetAction","action_id",e.path.action_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async confirmAction(e){return t.send({op:"ConfirmAction",method:"POST",path:"/stores/actions/"+n("ConfirmAction","action_id",e.path.action_id)+"/confirm",auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async declineAction(e){return t.send({op:"DeclineAction",method:"POST",path:"/stores/actions/"+n("DeclineAction","action_id",e.path.action_id)+"/decline",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async getAppleAccount(e){return t.send({op:"GetAppleAccount",method:"GET",path:"/stores/apple",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async disconnectApple(e){return t.send({op:"DisconnectApple",method:"DELETE",path:"/stores/apple",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async checkAppleAccount(e){return t.send({op:"CheckAppleAccount",method:"POST",path:"/stores/apple/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async createAppleGrant(e){return t.send({op:"CreateAppleGrant",method:"POST",path:"/stores/apple/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getSandboxReadiness(e){return t.send({op:"GetSandboxReadiness",method:"GET",path:"/stores/apple/readiness",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listSandboxTesters(e){return t.send({op:"ListSandboxTesters",method:"GET",path:"/stores/apple/sandbox-testers",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async clearSandboxPurchaseHistory(e){return t.send({op:"ClearSandboxPurchaseHistory",method:"POST",path:"/stores/apple/sandbox-testers/clear-purchase-history",auth:[["SecretKeyAuth"]],answers:{202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async updateSandboxTester(e){return t.send({op:"UpdateSandboxTester",method:"PATCH",path:"/stores/apple/sandbox-testers/"+n("UpdateSandboxTester","tester_id",e.path.tester_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listApps(e){return t.send({op:"ListApps",method:"GET",path:"/stores/apps",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listFeedback(e){return t.send({op:"ListFeedback",method:"GET",path:"/stores/apps/"+n("ListFeedback","app_id",e.path.app_id)+"/feedback",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getFeedback(e){return t.send({op:"GetFeedback",method:"GET",path:"/stores/apps/"+n("GetFeedback","app_id",e.path.app_id)+"/feedback/"+n("GetFeedback","kind",e.path.kind)+"/"+n("GetFeedback","feedback_id",e.path.feedback_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listGroups(e){return t.send({op:"ListGroups",method:"GET",path:"/stores/apps/"+n("ListGroups","app_id",e.path.app_id)+"/groups",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async createGroup(e){return t.send({op:"CreateGroup",method:"POST",path:"/stores/apps/"+n("CreateGroup","app_id",e.path.app_id)+"/groups",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async linkApp(e){return t.send({op:"LinkApp",method:"POST",path:"/stores/apps/"+n("LinkApp","app_id",e.path.app_id)+"/link",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getListing(e){return t.send({op:"GetListing",method:"GET",path:"/stores/apps/"+n("GetListing","app_id",e.path.app_id)+"/listing",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setListing(e){return t.send({op:"SetListing",method:"PUT",path:"/stores/apps/"+n("SetListing","app_id",e.path.app_id)+"/listing",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async planListing(e){return t.send({op:"PlanListing",method:"POST",path:"/stores/apps/"+n("PlanListing","app_id",e.path.app_id)+"/listing/plan",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async createPackage(e){return t.send({op:"CreatePackage",method:"POST",path:"/stores/apps/"+n("CreatePackage","app_id",e.path.app_id)+"/packages",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async uploadScreenshot(e){return t.send({op:"UploadScreenshot",method:"PUT",path:"/stores/apps/"+n("UploadScreenshot","app_id",e.path.app_id)+"/screenshots",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,query:e.query,headers:e.headers,body:{kind:"raw",contentType:e.contentType??"image/png",value:e.body},signal:e.signal})},async getReviewInfo(e){return t.send({op:"GetReviewInfo",method:"GET",path:"/stores/apps/"+n("GetReviewInfo","app_id",e.path.app_id)+"/testflight/review-info",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async setReviewInfo(e){return t.send({op:"SetReviewInfo",method:"PUT",path:"/stores/apps/"+n("SetReviewInfo","app_id",e.path.app_id)+"/testflight/review-info",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getUploadKey(e){return t.send({op:"GetUploadKey",method:"GET",path:"/stores/apps/"+n("GetUploadKey","app_id",e.path.app_id)+"/upload-key",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getAppStoreVersion(e){return t.send({op:"GetAppStoreVersion",method:"GET",path:"/stores/apps/"+n("GetAppStoreVersion","app_id",e.path.app_id)+"/version",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async prepareAppStoreVersion(e){return t.send({op:"PrepareAppStoreVersion",method:"PUT",path:"/stores/apps/"+n("PrepareAppStoreVersion","app_id",e.path.app_id)+"/version",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async planPhasedRelease(e){return t.send({op:"PlanPhasedRelease",method:"POST",path:"/stores/apps/"+n("PlanPhasedRelease","app_id",e.path.app_id)+"/version/phased-release",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async planReleaseVersion(e){return t.send({op:"PlanReleaseVersion",method:"POST",path:"/stores/apps/"+n("PlanReleaseVersion","app_id",e.path.app_id)+"/version/release",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async planSubmitReview(e){return t.send({op:"PlanSubmitReview",method:"POST",path:"/stores/apps/"+n("PlanSubmitReview","app_id",e.path.app_id)+"/version/submit",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async planWithdrawReview(e){return t.send({op:"PlanWithdrawReview",method:"POST",path:"/stores/apps/"+n("PlanWithdrawReview","app_id",e.path.app_id)+"/version/withdraw",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async getAppVitals(e){return t.send({op:"GetAppVitals",method:"GET",path:"/stores/apps/"+n("GetAppVitals","app_id",e.path.app_id)+"/vitals",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getAppWebhook(e){return t.send({op:"GetAppWebhook",method:"GET",path:"/stores/apps/"+n("GetAppWebhook","app_id",e.path.app_id)+"/webhook",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async makeAppWebhook(e){return t.send({op:"MakeAppWebhook",method:"POST",path:"/stores/apps/"+n("MakeAppWebhook","app_id",e.path.app_id)+"/webhook",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async pingAppWebhook(e){return t.send({op:"PingAppWebhook",method:"POST",path:"/stores/apps/"+n("PingAppWebhook","app_id",e.path.app_id)+"/webhook/ping",auth:[["SecretKeyAuth"]],answers:{202:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async downloadSignedBundle(e){return t.send({op:"DownloadSignedBundle",method:"GET",path:"/stores/bundles",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async getConnectPage(e){return t.send({op:"GetConnectPage",method:"GET",path:"/stores/connect",auth:[],answers:{200:"raw"},signal:e?.signal})},async connectAppleKey(e){return t.send({op:"ConnectAppleKey",method:"POST",path:"/stores/connect",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getGoogleAccount(e){return t.send({op:"GetGoogleAccount",method:"GET",path:"/stores/google",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectGoogle(e){return t.send({op:"ConnectGoogle",method:"POST",path:"/stores/google",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async disconnectGoogle(e){return t.send({op:"DisconnectGoogle",method:"DELETE",path:"/stores/google",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async checkGoogleAccount(e){return t.send({op:"CheckGoogleAccount",method:"POST",path:"/stores/google/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async deleteGroup(e){return t.send({op:"DeleteGroup",method:"DELETE",path:"/stores/groups/"+n("DeleteGroup","group_id",e.path.group_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async renameGroup(e){return t.send({op:"RenameGroup",method:"PATCH",path:"/stores/groups/"+n("RenameGroup","group_id",e.path.group_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async addGroupBuild(e){return t.send({op:"AddGroupBuild",method:"POST",path:"/stores/groups/"+n("AddGroupBuild","group_id",e.path.group_id)+"/builds",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listTesters(e){return t.send({op:"ListTesters",method:"GET",path:"/stores/groups/"+n("ListTesters","group_id",e.path.group_id)+"/testers",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setTesters(e){return t.send({op:"SetTesters",method:"PUT",path:"/stores/groups/"+n("SetTesters","group_id",e.path.group_id)+"/testers",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listPackages(e){return t.send({op:"ListPackages",method:"GET",path:"/stores/packages",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getPackage(e){return t.send({op:"GetPackage",method:"GET",path:"/stores/packages/"+n("GetPackage","package_id",e.path.package_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async uploadArtifact(e){return t.send({op:"UploadArtifact",method:"PUT",path:"/stores/packages/"+n("UploadArtifact","package_id",e.path.package_id)+"/artifact",auth:[],answers:{200:"json"},headers:e.headers,body:{kind:"raw",contentType:e.contentType??"application/octet-stream",value:e.body},signal:e.signal})},async planBetaReview(e){return t.send({op:"PlanBetaReview",method:"POST",path:"/stores/packages/"+n("PlanBetaReview","package_id",e.path.package_id)+"/beta-review",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async listDeliveries(e){return t.send({op:"ListDeliveries",method:"GET",path:"/stores/packages/"+n("ListDeliveries","package_id",e.path.package_id)+"/deliveries",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deliver(e){return t.send({op:"Deliver",method:"POST",path:"/stores/packages/"+n("Deliver","package_id",e.path.package_id)+"/deliveries",auth:[["SecretKeyAuth"]],answers:{200:"json",202:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getSignedBundleLink(e){return t.send({op:"GetSignedBundleLink",method:"POST",path:"/stores/packages/"+n("GetSignedBundleLink","package_id",e.path.package_id)+"/deliveries/"+n("GetSignedBundleLink","channel",e.path.channel)+"/bundle-link",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async planExpire(e){return t.send({op:"PlanExpire",method:"POST",path:"/stores/packages/"+n("PlanExpire","package_id",e.path.package_id)+"/expire",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async planExportCompliance(e){return t.send({op:"PlanExportCompliance",method:"POST",path:"/stores/packages/"+n("PlanExportCompliance","package_id",e.path.package_id)+"/export-compliance",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async setWhatToTest(e){return t.send({op:"SetWhatToTest",method:"PUT",path:"/stores/packages/"+n("SetWhatToTest","package_id",e.path.package_id)+"/what-to-test",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async takeAppleWebhook(e){return t.send({op:"TakeAppleWebhook",method:"POST",path:"/stores/webhooks/apple/"+n("TakeAppleWebhook","app_id",e.path.app_id),auth:[],answers:{200:"empty"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getAppleSession(e){return t.send({op:"GetAppleSession",method:"GET",path:"/stores/apple/session",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async disconnectAppleSession(e){return t.send({op:"DisconnectAppleSession",method:"DELETE",path:"/stores/apple/session",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async checkAppleSession(e){return t.send({op:"CheckAppleSession",method:"POST",path:"/stores/apple/session/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async createAppleIdGrant(e){return t.send({op:"CreateAppleIDGrant",method:"POST",path:"/stores/apple/session/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getAppleIdPage(e){return t.send({op:"GetAppleIDPage",method:"GET",path:"/stores/connect/apple-id",auth:[],answers:{200:"raw"},signal:e?.signal})},async signInAppleId(e){return t.send({op:"SignInAppleID",method:"POST",path:"/stores/connect/apple-id",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async submitAppleIdCode(e){return t.send({op:"SubmitAppleIDCode",method:"POST",path:"/stores/connect/apple-id/code",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async chooseAppleIdTeam(e){return t.send({op:"ChooseAppleIDTeam",method:"POST",path:"/stores/connect/apple-id/team",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getAppReview(e){return t.send({op:"GetAppReview",method:"GET",path:"/stores/apps/"+n("GetAppReview","app_id",e.path.app_id)+"/review",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async getReviewAttachment(e){return t.send({op:"GetReviewAttachment",method:"GET",path:"/stores/apps/"+n("GetReviewAttachment","app_id",e.path.app_id)+"/review/threads/"+n("GetReviewAttachment","thread_id",e.path.thread_id)+"/attachments/"+n("GetReviewAttachment","attachment_id",e.path.attachment_id),auth:[["SecretKeyAuth"]],answers:{200:"raw"},signal:e.signal})},async setReviewDraft(e){return t.send({op:"SetReviewDraft",method:"PUT",path:"/stores/apps/"+n("SetReviewDraft","app_id",e.path.app_id)+"/review/threads/"+n("SetReviewDraft","thread_id",e.path.thread_id)+"/draft",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async sendReviewDraft(e){return t.send({op:"SendReviewDraft",method:"POST",path:"/stores/apps/"+n("SendReviewDraft","app_id",e.path.app_id)+"/review/threads/"+n("SendReviewDraft","thread_id",e.path.thread_id)+"/draft/send",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async getAppPrivacy(e){return t.send({op:"GetAppPrivacy",method:"GET",path:"/stores/apps/"+n("GetAppPrivacy","app_id",e.path.app_id)+"/privacy",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setAppPrivacy(e){return t.send({op:"SetAppPrivacy",method:"PUT",path:"/stores/apps/"+n("SetAppPrivacy","app_id",e.path.app_id)+"/privacy",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async makeAppRecord(e){return t.send({op:"MakeAppRecord",method:"POST",path:"/stores/apps/"+n("MakeAppRecord","app_id",e.path.app_id)+"/record",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async removeAppRecord(e){return t.send({op:"RemoveAppRecord",method:"DELETE",path:"/stores/apps/"+n("RemoveAppRecord","app_id",e.path.app_id)+"/record",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listMadeAppleKeys(e){return t.send({op:"ListMadeAppleKeys",method:"GET",path:"/stores/apple/keys",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async makeAppleKey(e){return t.send({op:"MakeAppleKey",method:"POST",path:"/stores/apple/keys",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revokeMadeAppleKey(e){return t.send({op:"RevokeMadeAppleKey",method:"DELETE",path:"/stores/apple/keys/"+n("RevokeMadeAppleKey","key_id",e.path.key_id),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async shareAppleSession(e){return t.send({op:"ShareAppleSession",method:"PUT",path:"/stores/apple/session/shares/"+n("ShareAppleSession","environment",e.path.environment),auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async unshareAppleSession(e){return t.send({op:"UnshareAppleSession",method:"DELETE",path:"/stores/apple/session/shares/"+n("UnshareAppleSession","environment",e.path.environment),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async getInstallPage(e){return t.send({op:"GetInstallPage",method:"GET",path:"/stores/install",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async getInstallStatus(e){return t.send({op:"GetInstallStatus",method:"GET",path:"/stores/install/status",auth:[],answers:{200:"json"},query:e.query,signal:e.signal})},async retryInstall(e){return t.send({op:"RetryInstall",method:"POST",path:"/stores/install/retry",auth:[],answers:{204:"empty"},query:e.query,signal:e.signal})},async getInstallEnrollment(e){return t.send({op:"GetInstallEnrollment",method:"GET",path:"/stores/install/enroll",auth:[],answers:{200:"raw",303:"redirect"},query:e.query,signal:e.signal})},async registerInstallDevice(e){return t.send({op:"RegisterInstallDevice",method:"POST",path:"/stores/install/device",auth:[],answers:{200:"raw",301:"redirect"},query:e.query,body:{kind:"raw",contentType:e.contentType??"application/pkcs7-signature",value:e.body},signal:e.signal})},async getInstallManifest(e){return t.send({op:"GetInstallManifest",method:"GET",path:"/stores/install/manifest",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async getInstallBuild(e){return t.send({op:"GetInstallBuild",method:"GET",path:"/stores/install/app",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async headInstallBuild(e){return t.send({op:"HeadInstallBuild",method:"HEAD",path:"/stores/install/app",auth:[],answers:{200:"empty"},query:e.query,signal:e.signal})},async getInstallIcon(e){return t.send({op:"GetInstallIcon",method:"GET",path:"/stores/install/icon",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async listInvitations(e){return t.send({op:"ListInvitations",method:"GET",path:"/stores/packages/"+n("ListInvitations","package_id",e.path.package_id)+"/invitations",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async invitePerson(e){return t.send({op:"InvitePerson",method:"POST",path:"/stores/packages/"+n("InvitePerson","package_id",e.path.package_id)+"/invitations",auth:[["SecretKeyAuth"]],answers:{200:"json",201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async revokeInvitation(e){return t.send({op:"RevokeInvitation",method:"DELETE",path:"/stores/invitations/"+n("RevokeInvitation","invitation_id",e.path.invitation_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async listDevices(e){return t.send({op:"ListDevices",method:"GET",path:"/stores/devices",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})}}}var A={};s(A,{client:()=>U});function U(t){return{async listWorkspaces(e){return t.send({op:"ListWorkspaces",method:"GET",path:"/workspaces",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createWorkspace(e){return t.send({op:"CreateWorkspace",method:"POST",path:"/workspaces",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async testWorkspaceByos(e){return t.send({op:"TestWorkspaceBYOS",method:"POST",path:"/workspaces/byos/test",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listProjectS3Keys(e){return t.send({op:"ListProjectS3Keys",method:"GET",path:"/workspaces/s3-keys",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createProjectS3Key(e){return t.send({op:"CreateProjectS3Key",method:"POST",path:"/workspaces/s3-keys",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e?.body},signal:e?.signal})},async deleteProjectS3Key(e){return t.send({op:"DeleteProjectS3Key",method:"DELETE",path:"/workspaces/s3-keys/"+n("DeleteProjectS3Key","token_id",e.path.token_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async getWorkspace(e){return t.send({op:"GetWorkspace",method:"GET",path:"/workspaces/"+n("GetWorkspace","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async deleteWorkspace(e){return t.send({op:"DeleteWorkspace",method:"DELETE",path:"/workspaces/"+n("DeleteWorkspace","id",e.path.id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},query:e.query,signal:e.signal})},async updateWorkspaceStorage(e){return t.send({op:"UpdateWorkspaceStorage",method:"PUT",path:"/workspaces/"+n("UpdateWorkspaceStorage","id",e.path.id)+"/storage",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getWorkspaceFiles(e){return t.send({op:"GetWorkspaceFiles",method:"GET",path:"/workspaces/"+n("GetWorkspaceFiles","id",e.path.id)+"/files",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async putWorkspaceFile(e){return t.send({op:"PutWorkspaceFile",method:"PUT",path:"/workspaces/"+n("PutWorkspaceFile","id",e.path.id)+"/files",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,body:{kind:"raw",contentType:e.contentType??"application/octet-stream",value:e.body},signal:e.signal})},async deleteWorkspaceFile(e){return t.send({op:"DeleteWorkspaceFile",method:"DELETE",path:"/workspaces/"+n("DeleteWorkspaceFile","id",e.path.id)+"/files",auth:[["SecretKeyAuth"]],answers:{204:"empty"},query:e.query,signal:e.signal})},async listWorkspaceTokens(e){return t.send({op:"ListWorkspaceTokens",method:"GET",path:"/workspaces/"+n("ListWorkspaceTokens","id",e.path.id)+"/tokens",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async createWorkspaceToken(e){return t.send({op:"CreateWorkspaceToken",method:"POST",path:"/workspaces/"+n("CreateWorkspaceToken","id",e.path.id)+"/tokens",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteWorkspaceToken(e){return t.send({op:"DeleteWorkspaceToken",method:"DELETE",path:"/workspaces/"+n("DeleteWorkspaceToken","id",e.path.id)+"/tokens/"+n("DeleteWorkspaceToken","token_id",e.path.token_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listWorkspaceLocks(e){return t.send({op:"ListWorkspaceLocks",method:"GET",path:"/workspaces/"+n("ListWorkspaceLocks","id",e.path.id)+"/locks",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async acquireWorkspaceLock(e){return t.send({op:"AcquireWorkspaceLock",method:"POST",path:"/workspaces/"+n("AcquireWorkspaceLock","id",e.path.id)+"/locks",auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async releaseWorkspaceLock(e){return t.send({op:"ReleaseWorkspaceLock",method:"DELETE",path:"/workspaces/"+n("ReleaseWorkspaceLock","id",e.path.id)+"/locks",auth:[["SecretKeyAuth"]],answers:{204:"empty"},query:e.query,signal:e.signal})},async getSyncHead(e){return t.send({op:"GetSyncHead",method:"GET",path:"/workspaces/sync/head",auth:[],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getSyncChanges(e){return t.send({op:"GetSyncChanges",method:"GET",path:"/workspaces/sync/changes",auth:[],answers:{200:"json"},query:e?.query,signal:e?.signal})},async publishSyncChanges(e){return t.send({op:"PublishSyncChanges",method:"POST",path:"/workspaces/sync/publish",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async requestSyncUploadGrants(e){return t.send({op:"RequestSyncUploadGrants",method:"POST",path:"/workspaces/sync/blobs/upload-grants",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async requestSyncDownloadGrants(e){return t.send({op:"RequestSyncDownloadGrants",method:"POST",path:"/workspaces/sync/blobs/download-grants",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async downloadSignedSyncBlob(e){return t.send({op:"DownloadSignedSyncBlob",method:"GET",path:"/workspaces/sync/blobs/"+n("DownloadSignedSyncBlob","digest",e.path.digest),auth:[],answers:{200:"empty"},signal:e.signal})},async uploadSignedSyncBlob(e){return t.send({op:"UploadSignedSyncBlob",method:"PUT",path:"/workspaces/sync/blobs/"+n("UploadSignedSyncBlob","digest",e.path.digest),auth:[],answers:{200:"empty"},signal:e.signal})},async streamSyncEvents(e){return t.send({op:"StreamSyncEvents",method:"GET",path:"/workspaces/sync/events",auth:[],answers:{200:"raw"},signal:e?.signal})}}}export{r as a,a as b,i as c,o as d,l as e,p as f,d as g,g as h,u as i,c as j,y as k,m as l,h as m,b as n,_ as o,P as p,R as q,S as r,A as s,V as t};
|