palbase 0.42.0 → 0.43.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.
Files changed (49) hide show
  1. package/dist/ai/index.js +2 -2
  2. package/dist/backend/engine.js +2 -2
  3. package/dist/backend/env.js +1 -1
  4. package/dist/backend/index.js +3 -3
  5. package/dist/backend/stack.js +1 -1
  6. package/dist/backend/test.js +2 -2
  7. package/dist/chunks/{6RAP4AII.js → 2MAP5CJ6.js} +2 -2
  8. package/dist/chunks/{AQV3OQRL.js → 2W3ELCC2.js} +2 -2
  9. package/dist/chunks/{VBROMD5X.js → 3BBJOHNC.js} +1 -1
  10. package/dist/chunks/{POCZ4Q2I.js → AX7C33RW.js} +1 -1
  11. package/dist/chunks/{TUMSSUUS.js → B5IZJXZU.js} +1 -1
  12. package/dist/chunks/{EEYIFP7R.js → CEXZKCGA.js} +2 -2
  13. package/dist/chunks/{L3W75GPJ.js → CKVGJBDE.js} +2 -2
  14. package/dist/chunks/{3B26HF2E.js → DDUOUX5Y.js} +1 -1
  15. package/dist/chunks/EI3CP3O7.js +22 -0
  16. package/dist/chunks/{I6WTPZ6G.js → IQMWDELL.js} +2 -2
  17. package/dist/chunks/{UGFLMEVH.js → ISTUIM3X.js} +2 -2
  18. package/dist/chunks/{DY65FDLF.js → JS6QFPSR.js} +1 -1
  19. package/dist/chunks/{MS4WUVDW.js → KZDJTCZ6.js} +1 -1
  20. package/dist/chunks/{RVXJJALR.js → LJM66WKM.js} +2 -2
  21. package/dist/chunks/{4FY2JOIE.js → P5PHOIEQ.js} +2 -2
  22. package/dist/chunks/{VXH23FMT.js → QDP5IIMZ.js} +2 -2
  23. package/dist/chunks/{QQKGUVDV.js → QINBTLCQ.js} +2 -2
  24. package/dist/chunks/{L3OT55MV.js → SVUVPTA4.js} +2 -2
  25. package/dist/chunks/{SMINGDYN.js → U5ZYNBB2.js} +2 -2
  26. package/dist/chunks/{DS4WQJZM.js → USJJR7ID.js} +2 -2
  27. package/dist/chunks/{LOINJWR3.js → WDVR33AO.js} +2 -2
  28. package/dist/chunks/{RNDFA3AQ.js → Y5S3P3BL.js} +2 -2
  29. package/dist/chunks/{OYA6Z4VI.js → YGF3LZZE.js} +1 -1
  30. package/dist/cli.js +120 -120
  31. package/dist/cloud/index.js +2 -2
  32. package/dist/refuse/ai.js +1 -1
  33. package/dist/refuse/backend.js +1 -1
  34. package/dist/refuse/cloud.js +1 -1
  35. package/dist/refuse/server.js +1 -1
  36. package/dist/server/index.js +2 -2
  37. package/dist/server/testing.js +2 -2
  38. package/dist/web/index.js +2 -2
  39. package/dist/web/message.js +2 -2
  40. package/dist/web/palbe.js +2 -2
  41. package/dist/web/paywall.js +2 -2
  42. package/dist/web/push-sw.js +1 -1
  43. package/dist/web/ssr.js +2 -2
  44. package/dist/web/vite.js +2 -2
  45. package/package.json +2 -2
  46. package/types/cloud/src/generated/studio.d.ts +92 -61
  47. package/types/internal/src/modules/machines.d.ts +17 -17
  48. package/types/web/src/socket.d.ts +19 -1
  49. package/dist/chunks/QG2BSVEO.js +0 -22
@@ -1,2 +1,2 @@
1
- /*! palbase 0.42.0 — Palbase SDK License (see LICENSE) */
2
- import{c as s}from"./DS4WQJZM.js";import{a as n}from"./DY65FDLF.js";var M=["ai.goal.updated","ai.response.completed","ai.response.failed","ai.response.started","ai.voice.closed","ai.voice.delegated","ai.voice.started","ai.workspace.published","ai.workspace.pushed","audience.entered","audience.exited","calls.call.ended","calls.call.started","calls.participant.joined","calls.participant.left","consent.changed","device.revoked","file.deleted","file.moved","file.uploaded","flag.changed","flag.override_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.unconfirmed","notification.undelivered","notification.uninstalled","purchases.catalog.applied","purchases.catalog.changed","purchases.coupon.redeemed","purchases.credits.depleted","purchases.credits.low","purchases.customer.changed","purchases.customer.erased","purchases.customer.merged","purchases.entitlement.changed","purchases.offer.redeemed","purchases.ownership.transferred","purchases.paywall.published","purchases.purchase.completed","purchases.quota.exhausted","purchases.quota.threshold","purchases.refund.changed","purchases.store.changed","purchases.subscription.changed","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.feedback.received","stores.google.changed","stores.group.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.permissions_changed"];var a={};n(a,{client:()=>P});function P(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("ListAgentVersions","name",e.path.name)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,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/"+s("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/"+s("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/"+s("DecideChatApproval","chat_id",e.path.chat_id)+"/approvals/"+s("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 forkChat(e){return t.send({op:"ForkChat",method:"POST",path:"/ai/chats/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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 putChatMember(e){return t.send({op:"PutChatMember",method:"PUT",path:"/ai/chats/"+s("PutChatMember","chat_id",e.path.chat_id)+"/members/"+s("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/"+s("DeleteChatMember","chat_id",e.path.chat_id)+"/members/"+s("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/"+s("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/"+s("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/"+s("GetChatMessageAttachment","chat_id",e.path.chat_id)+"/messages/"+s("GetChatMessageAttachment","message_id",e.path.message_id)+"/attachments/"+s("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/"+s("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/"+s("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/"+s("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/"+s("SendSubagentMessage","chat_id",e.path.chat_id)+"/runs/"+s("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/"+s("StopSubagent","chat_id",e.path.chat_id)+"/runs/"+s("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/"+s("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/"+s("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/"+s("GetChatToolCall","chat_id",e.path.chat_id)+"/tool-calls/"+s("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/"+s("AnswerChatToolCall","chat_id",e.path.chat_id)+"/tool-outputs/"+s("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/"+s("ListChatTurnArtifacts","chat_id",e.path.chat_id)+"/turns/"+s("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/"+s("GetChatTurnArtifact","chat_id",e.path.chat_id)+"/turns/"+s("GetChatTurnArtifact","response_id",e.path.response_id)+"/artifacts/"+s("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/"+s("GetChatTurnCost","chat_id",e.path.chat_id)+"/turns/"+s("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/"+s("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/"+s("GetChatVoice","chat_id",e.path.chat_id)+"/voice/"+s("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/"+s("CloseChatVoice","chat_id",e.path.chat_id)+"/voice/"+s("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/"+s("CommandChatVoice","chat_id",e.path.chat_id)+"/voice/"+s("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 getChatWorkspaceFile(e){return t.send({op:"GetChatWorkspaceFile",method:"GET",path:"/ai/chats/"+s("GetChatWorkspaceFile","chat_id",e.path.chat_id)+"/workspace/files",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"raw"},query:e.query,signal:e.signal})},async addChatWorkspaceRepo(e){return t.send({op:"AddChatWorkspaceRepo",method:"POST",path:"/ai/chats/"+s("AddChatWorkspaceRepo","chat_id",e.path.chat_id)+"/workspace/repos",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"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/"+s("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/"+s("DeleteEndpoint","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/"+s("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/"+s("GetImageFile","image_id",e.path.image_id)+"/files/"+s("GetImageFile","position",e.path.position),auth:[["SecretKeyAuth"]],answers:{200:"raw"},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 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/"+s("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/"+s("DisconnectProvider","provider",e.path.provider),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listRepos(e){return t.send({op:"ListRepos",method:"GET",path:"/ai/repos",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async putRepo(e){return t.send({op:"PutRepo",method:"PUT",path:"/ai/repos/"+s("PutRepo","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteRepo(e){return t.send({op:"DeleteRepo",method:"DELETE",path:"/ai/repos/"+s("DeleteRepo","name",e.path.name),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/"+s("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/"+s("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/"+s("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})}}}var r={};n(r,{client:()=>A});function A(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("DefineEvent","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var i={};n(i,{client:()=>S});function S(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("AdminAssignUserRole","uid",e.path.uid)+"/roles/"+s("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/"+s("AdminRevokeUserRole","uid",e.path.uid)+"/roles/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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"},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/"+s("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/"+s("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/"+s("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"},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/"+s("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/"+s("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"},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"},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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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 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/"+s("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})}}}var o={};n(o,{client:()=>R});function R(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={};n(l,{client:()=>v});function v(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/"+s("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/"+s("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/"+s("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 getCallPlace(e){return t.send({op:"GetCallPlace",method:"GET",path:"/calls/places/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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})}}}var p={};n(p,{client:()=>f});function f(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("PutUserValue","user_id",e.path.user_id)+"/"+s("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/"+s("DeleteUserValue","user_id",e.path.user_id)+"/"+s("DeleteUserValue","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,signal:e.signal})}}}var d={};n(d,{client:()=>w});function w(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("PutMachinePreview","name",e.path.name)+"/previews/"+s("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/"+s("DeleteMachinePreview","name",e.path.name)+"/previews/"+s("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/"+s("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/"+s("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/"+s("DeleteMachineDomain","name",e.path.name)+"/domains/"+s("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/"+s("UpdateMachineDomain","name",e.path.name)+"/domains/"+s("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/"+s("GetBuild","name",e.path.name)+"/builds/"+s("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/"+s("GetBuildLog","name",e.path.name)+"/builds/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("ReadMachineLogs","name",e.path.name)+"/logs",auth:[["SecretKeyAuth"]],answers:{200:"raw"},query:e.query,signal:e.signal})},async getMachineMetrics(e){return t.send({op:"GetMachineMetrics",method:"GET",path:"/machines/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("ListCronRuns","name",e.path.name)+"/crons/"+s("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/"+s("RunCron","name",e.path.name)+"/crons/"+s("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/"+s("PauseCron","name",e.path.name)+"/crons/"+s("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/"+s("ResumeCron","name",e.path.name)+"/crons/"+s("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/"+s("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/"+s("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/"+s("GetTask","name",e.path.name)+"/tasks/"+s("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/"+s("CancelTask","name",e.path.name)+"/tasks/"+s("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/"+s("RetryTask","name",e.path.name)+"/tasks/"+s("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/"+s("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/"+s("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/"+s("TemplateTestUser","name",e.path.name)+"/test-users/"+s("TemplateTestUser","user",e.path.user)+"/templates/"+s("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/"+s("DeleteTemplatedTestUser","name",e.path.name)+"/test-users/"+s("DeleteTemplatedTestUser","user",e.path.user),auth:[["SecretKeyAuth"]],answers:{204:"empty"},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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("UploadSiteFile","name",e.path.name)+"/releases/"+s("UploadSiteFile","release",e.path.release)+"/files/"+s("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/"+s("FinishSiteRelease","name",e.path.name)+"/releases/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("DeleteSiteDomain","name",e.path.name)+"/domains/"+s("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/"+s("UpdateSiteDomain","name",e.path.name)+"/domains/"+s("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/"+s("GetSiteBuild","name",e.path.name)+"/builds/"+s("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/"+s("AuthorizeSitePreview","name",e.path.name)+"/previews/"+s("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/"+s("AuthorizeMachinePreview","name",e.path.name)+"/previews/"+s("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/"+s("OpenMachinePreview","name",e.path.name)+"/previews/"+s("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/"+s("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/"+s("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/"+s("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/"+s("CancelSiteBuild","name",e.path.name)+"/builds/"+s("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/"+s("CancelBuild","name",e.path.name)+"/builds/"+s("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/"+s("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/"+s("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/"+s("DeleteSiteHook","name",e.path.name)+"/hooks/"+s("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/"+s("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/"+s("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/"+s("DeleteMachineHook","name",e.path.name)+"/hooks/"+s("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/"+s("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/"+s("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/"+s("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/"+s("DeletePreviewLink","name",e.path.name)+"/previews/links/"+s("DeletePreviewLink","link",e.path.link),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})}}}var g={};n(g,{client:()=>k});function k(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("AdminRemoveMember","conversation_id",e.path.conversation_id)+"/members/"+s("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/"+s("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/"+s("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/"+s("AdminDeleteMessage","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("AdminFileURL","conversation_id",e.path.conversation_id)+"/messages/"+s("AdminFileURL","message_id",e.path.message_id)+"/attachments/"+s("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/"+s("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/"+s("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/"+s("AdminReportFileURL","report_id",e.path.report_id)+"/attachments/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("RemoveMember","conversation_id",e.path.conversation_id)+"/members/"+s("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/"+s("UpdateMember","conversation_id",e.path.conversation_id)+"/members/"+s("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/"+s("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/"+s("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/"+s("GetMessage","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("DeleteMessage","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("EditMessage","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("AttachmentURL","conversation_id",e.path.conversation_id)+"/messages/"+s("AttachmentURL","message_id",e.path.message_id)+"/attachments/"+s("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/"+s("React","conversation_id",e.path.conversation_id)+"/messages/"+s("React","message_id",e.path.message_id)+"/reactions/"+s("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/"+s("Unreact","conversation_id",e.path.conversation_id)+"/messages/"+s("Unreact","message_id",e.path.message_id)+"/reactions/"+s("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/"+s("MessageReaders","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("ListReplies","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("ViewOnce","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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 y={};n(y,{client:()=>T});function T(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("PutNotifyProvider","channel",e.path.channel)+"/"+s("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/"+s("DeleteNotifyProvider","channel",e.path.channel)+"/"+s("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/"+s("GetEmailTemplate","slug",e.path.slug)+"/"+s("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/"+s("PutEmailTemplate","slug",e.path.slug)+"/"+s("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/"+s("DeleteEmailTemplate","slug",e.path.slug)+"/"+s("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/"+s("GetPushTemplate","slug",e.path.slug)+"/"+s("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/"+s("PutPushTemplate","slug",e.path.slug)+"/"+s("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/"+s("DeletePushTemplate","slug",e.path.slug)+"/"+s("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/"+s("GetSMSTemplate","slug",e.path.slug)+"/"+s("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/"+s("PutSMSTemplate","slug",e.path.slug)+"/"+s("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/"+s("DeleteSMSTemplate","slug",e.path.slug)+"/"+s("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/"+s("GetWhatsAppTemplate","slug",e.path.slug)+"/"+s("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/"+s("PutWhatsAppTemplate","slug",e.path.slug)+"/"+s("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/"+s("DeleteWhatsAppTemplate","slug",e.path.slug)+"/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("RemoveTopicSubscriber","name",e.path.name)+"/subscribers/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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 u={};n(u,{client:()=>x});function x(t){return{async getAppleAccount(e){return t.send({op:"GetAppleAccount",method:"GET",path:"/purchases/apple",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async disconnectApple(e){return t.send({op:"DisconnectApple",method:"DELETE",path:"/purchases/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:"/purchases/apple/account-token",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async getAppleConnectPage(e){return t.send({op:"GetAppleConnectPage",method:"GET",path:"/purchases/apple/connect",auth:[],answers:{200:"raw"},signal:e?.signal})},async connectAppleKey(e){return t.send({op:"ConnectAppleKey",method:"POST",path:"/purchases/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:"/purchases/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:"/purchases/apple/readiness",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async reportAppleTransactions(e){return t.send({op:"ReportAppleTransactions",method:"POST",path:"/purchases/apple/transactions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getGoogleAccountId(e){return t.send({op:"GetGoogleAccountID",method:"POST",path:"/purchases/google/account-id",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async reportGooglePurchases(e){return t.send({op:"ReportGooglePurchases",method:"POST",path:"/purchases/google/purchases",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:"/purchases/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:"/purchases/apple/xcode-certificate",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getGoogleAccount(e){return t.send({op:"GetGoogleAccount",method:"GET",path:"/purchases/google",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectGoogle(e){return t.send({op:"ConnectGoogle",method:"POST",path:"/purchases/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:"/purchases/google",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getCatalog(e){return t.send({op:"GetCatalog",method:"GET",path:"/purchases/catalog",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async saveCatalog(e){return t.send({op:"SaveCatalog",method:"PUT",path:"/purchases/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:"/purchases/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:"/purchases/catalog/plans/"+s("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:"/purchases/catalog/plans/"+s("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:"/purchases/catalog/plans/"+s("DeclineCatalogPlan","plan_id",e.path.plan_id)+"/decline",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async validateCatalog(e){return t.send({op:"ValidateCatalog",method:"POST",path:"/purchases/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:"/purchases/charts",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getChartsOverview(e){return t.send({op:"GetChartsOverview",method:"GET",path:"/purchases/charts/overview",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getChart(e){return t.send({op:"GetChart",method:"GET",path:"/purchases/charts/"+s("GetChart","chart",e.path.chart),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getStripeConnectPage(e){return t.send({op:"GetStripeConnectPage",method:"GET",path:"/purchases/connect",auth:[],answers:{200:"raw"},signal:e?.signal})},async connectStripeKey(e){return t.send({op:"ConnectStripeKey",method:"POST",path:"/purchases/connect",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getStripeAppInstallPage(e){return t.send({op:"GetStripeAppInstallPage",method:"GET",path:"/purchases/stripe/app/install",auth:[],answers:{200:"raw"},signal:e?.signal})},async startStripeAppInstall(e){return t.send({op:"StartStripeAppInstall",method:"POST",path:"/purchases/stripe/app/install",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async completeStripeAppInstall(e){return t.send({op:"CompleteStripeAppInstall",method:"GET",path:"/purchases/stripe/app/callback",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async getCustomer(e){return t.send({op:"GetCustomer",method:"GET",path:"/purchases/customers/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("RevokeGrant","customer_id",e.path.customer_id)+"/grants/"+s("RevokeGrant","grant_id",e.path.grant_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async holdSpend(e){return t.send({op:"HoldSpend",method:"POST",path:"/purchases/customers/"+s("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:"/purchases/customers/"+s("SetCustomerLimit","customer_id",e.path.customer_id)+"/limits/"+s("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:"/purchases/customers/"+s("ClearCustomerLimit","customer_id",e.path.customer_id)+"/limits/"+s("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:"/purchases/customers/"+s("GrantLimit","customer_id",e.path.customer_id)+"/limits/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("CommitSpend","customer_id",e.path.customer_id)+"/spends/"+s("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:"/purchases/customers/"+s("ExtendHold","customer_id",e.path.customer_id)+"/spends/"+s("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:"/purchases/customers/"+s("ReleaseSpend","customer_id",e.path.customer_id)+"/spends/"+s("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:"/purchases/customers/"+s("ReverseSpend","customer_id",e.path.customer_id)+"/spends/"+s("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 listExperiments(e){return t.send({op:"ListExperiments",method:"GET",path:"/purchases/experiments",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async startExperiment(e){return t.send({op:"StartExperiment",method:"POST",path:"/purchases/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:"/purchases/experiments/"+s("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:"/purchases/experiments/"+s("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:"/purchases/experiments/"+s("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:"/purchases/experiments/"+s("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 getMyCustomerInfo(e){return t.send({op:"GetMyCustomerInfo",method:"GET",path:"/purchases/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mergeGuest(e){return t.send({op:"MergeGuest",method:"POST",path:"/purchases/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:"/purchases/me/merge-grant",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},signal:e?.signal})},async getOfferings(e){return t.send({op:"GetOfferings",method:"GET",path:"/purchases/offerings",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listPaywalls(e){return t.send({op:"ListPaywalls",method:"GET",path:"/purchases/paywalls",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createPaywall(e){return t.send({op:"CreatePaywall",method:"POST",path:"/purchases/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:"/purchases/paywalls/assets",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async registerPaywallAsset(e){return t.send({op:"RegisterPaywallAsset",method:"POST",path:"/purchases/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:"/purchases/paywalls/assets/"+s("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:"/purchases/paywalls/templates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getPaywallTemplateAsset(e){return t.send({op:"GetPaywallTemplateAsset",method:"GET",path:"/purchases/paywalls/templates/"+s("GetPaywallTemplateAsset","key",e.path.key)+"/assets/"+s("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:"/purchases/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:"/purchases/paywalls/"+s("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:"/purchases/paywalls/"+s("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:"/purchases/paywalls/"+s("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:"/purchases/paywalls/"+s("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:"/purchases/paywalls/"+s("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:"/purchases/paywalls/"+s("GetPaywallVersion","paywall_id",e.path.paywall_id)+"/versions/"+s("GetPaywallVersion","version",e.path.version),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listPlacements(e){return t.send({op:"ListPlacements",method:"GET",path:"/purchases/placements",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listAttributeKeys(e){return t.send({op:"ListAttributeKeys",method:"GET",path:"/purchases/placements/attributes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async setPlacement(e){return t.send({op:"SetPlacement",method:"PUT",path:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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 getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/purchases/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async updateSettings(e){return t.send({op:"UpdateSettings",method:"PUT",path:"/purchases/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getStripeAccount(e){return t.send({op:"GetStripeAccount",method:"GET",path:"/purchases/stripe",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async disconnectStripe(e){return t.send({op:"DisconnectStripe",method:"DELETE",path:"/purchases/stripe",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async checkStripeAccount(e){return t.send({op:"CheckStripeAccount",method:"POST",path:"/purchases/stripe/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async createCheckout(e){return t.send({op:"CreateCheckout",method:"POST",path:"/purchases/stripe/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:"/purchases/stripe/checkout/redemption",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async redeemPurchase(e){return t.send({op:"RedeemPurchase",method:"POST",path:"/purchases/redemptions/redeem",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getRedemptionPage(e){return t.send({op:"GetRedemptionPage",method:"GET",path:"/purchases/redeem",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async createStripeGrant(e){return t.send({op:"CreateStripeGrant",method:"POST",path:"/purchases/stripe/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async createStripeAppInstall(e){return t.send({op:"CreateStripeAppInstall",method:"POST",path:"/purchases/stripe/app/grants",auth:[["SecretKeyAuth"]],answers:{201:"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:"/purchases/stripe/portal",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveAppleNotification(e){return t.send({op:"ReceiveAppleNotification",method:"POST",path:"/purchases/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:"/purchases/webhooks/google",auth:[],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveStripeEvent(e){return t.send({op:"ReceiveStripeEvent",method:"POST",path:"/purchases/webhooks/stripe",auth:[],answers:{200:"empty"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveStripeAppEvent(e){return t.send({op:"ReceiveStripeAppEvent",method:"POST",path:"/purchases/webhooks/stripe-app",auth:[],answers:{200:"empty"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMyOffers(e){return t.send({op:"ListMyOffers",method:"GET",path:"/purchases/offers",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async recordOfferView(e){return t.send({op:"RecordOfferView",method:"POST",path:"/purchases/offers/"+s("RecordOfferView","offer_key",e.path.offer_key)+"/views",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async signAppleOffer(e){return t.send({op:"SignAppleOffer",method:"POST",path:"/purchases/offers/"+s("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:"/purchases/offers/"+s("ClaimOffer","offer_key",e.path.offer_key)+"/claim",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},signal:e.signal})},async redeemCoupon(e){return t.send({op:"RedeemCoupon",method:"POST",path:"/purchases/coupons/redeem",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getOfferStats(e){return t.send({op:"GetOfferStats",method:"GET",path:"/purchases/offers/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listCoupons(e){return t.send({op:"ListCoupons",method:"GET",path:"/purchases/coupons",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createCoupon(e){return t.send({op:"CreateCoupon",method:"POST",path:"/purchases/coupons",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCoupon(e){return t.send({op:"GetCoupon",method:"GET",path:"/purchases/coupons/"+s("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:"/purchases/coupons/"+s("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:"/purchases/coupons/"+s("ListCouponCodes","coupon_key",e.path.coupon_key)+"/codes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setXcodeOfferKey(e){return t.send({op:"SetXcodeOfferKey",method:"PUT",path:"/purchases/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 searchCustomers(e){return t.send({op:"SearchCustomers",method:"GET",path:"/purchases/customers",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getCustomerHistory(e){return t.send({op:"GetCustomerHistory",method:"GET",path:"/purchases/customers/"+s("GetCustomerHistory","customer_id",e.path.customer_id)+"/history",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listCatalogRevisions(e){return t.send({op:"ListCatalogRevisions",method:"GET",path:"/purchases/catalog/revisions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getCatalogRevision(e){return t.send({op:"GetCatalogRevision",method:"GET",path:"/purchases/catalog/revisions/"+s("GetCatalogRevision","revision",e.path.revision),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async restoreCatalogRevision(e){return t.send({op:"RestoreCatalogRevision",method:"POST",path:"/purchases/catalog/revisions/"+s("RestoreCatalogRevision","revision",e.path.revision)+"/restore",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async extendSubscription(e){return t.send({op:"ExtendSubscription",method:"POST",path:"/purchases/customers/"+s("ExtendSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+s("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:"/purchases/customers/"+s("RefundSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+s("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 cancelSubscription(e){return t.send({op:"CancelSubscription",method:"POST",path:"/purchases/customers/"+s("CancelSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+s("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 setRefundDataConsent(e){return t.send({op:"SetRefundDataConsent",method:"PUT",path:"/purchases/me/refund-data-consent",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var c={};n(c,{client:()=>C});function C(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 m={};n(m,{client:()=>j});function j(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/"+s("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/"+s("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/"+s("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/"+s("GetSecret","environment",e.path.environment)+"/"+s("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/"+s("PutSecret","environment",e.path.environment)+"/"+s("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/"+s("DeleteSecret","environment",e.path.environment)+"/"+s("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/"+s("RollbackSecret","environment",e.path.environment)+"/"+s("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/"+s("ListSecretVersions","environment",e.path.environment)+"/"+s("ListSecretVersions","name",e.path.name)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})}}}var h={};n(h,{client:()=>E});function E(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("GetObject","bucket",e.path.bucket)+"/objects/"+s("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/"+s("PutObject","bucket",e.path.bucket)+"/objects/"+s("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/"+s("DeleteObject","bucket",e.path.bucket)+"/objects/"+s("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/"+s("HeadObject","bucket",e.path.bucket)+"/objects/"+s("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/"+s("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/"+s("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/"+s("GetPublicObject","bucket",e.path.bucket)+"/"+s("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/"+s("HeadPublicObject","bucket",e.path.bucket)+"/"+s("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/"+s("GetSignedObject","bucket",e.path.bucket)+"/"+s("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/"+s("PutSignedObject","bucket",e.path.bucket)+"/"+s("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/"+s("HeadSignedObject","bucket",e.path.bucket)+"/"+s("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/"+s("Upload","machine",e.path.machine)+"/"+s("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 b={};n(b,{client:()=>K});function K(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("GetFeedback","app_id",e.path.app_id)+"/feedback/"+s("GetFeedback","kind",e.path.kind)+"/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("GetSignedBundleLink","package_id",e.path.package_id)+"/deliveries/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("GetReviewAttachment","app_id",e.path.app_id)+"/review/threads/"+s("GetReviewAttachment","thread_id",e.path.thread_id)+"/attachments/"+s("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/"+s("SetReviewDraft","app_id",e.path.app_id)+"/review/threads/"+s("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/"+s("SendReviewDraft","app_id",e.path.app_id)+"/review/threads/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("UnshareAppleSession","environment",e.path.environment),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})}}}var _={};n(_,{client:()=>q});function q(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 listPersonRuns(e){return t.send({op:"ListPersonRuns",method:"GET",path:"/journeys/people/"+s("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 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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("TestJourney","key",e.path.key)+"/test",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}export{a,r as b,i as c,o as d,l as e,p as f,_ as g,d as h,g as i,y as j,u as k,c as l,m,h as n,b as o,M as p};
1
+ /*! palbase 0.43.1 — Palbase SDK License (see LICENSE) */
2
+ import{c as s}from"./USJJR7ID.js";import{a as n}from"./JS6QFPSR.js";var M=["ai.goal.updated","ai.response.completed","ai.response.failed","ai.response.started","ai.voice.closed","ai.voice.delegated","ai.voice.started","ai.workspace.published","ai.workspace.pushed","audience.entered","audience.exited","calls.call.ended","calls.call.started","calls.participant.joined","calls.participant.left","consent.changed","device.revoked","file.deleted","file.moved","file.uploaded","flag.changed","flag.override_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.unconfirmed","notification.undelivered","notification.uninstalled","purchases.catalog.applied","purchases.catalog.changed","purchases.coupon.redeemed","purchases.credits.depleted","purchases.credits.low","purchases.customer.changed","purchases.customer.erased","purchases.customer.merged","purchases.entitlement.changed","purchases.offer.redeemed","purchases.ownership.transferred","purchases.paywall.published","purchases.purchase.completed","purchases.quota.exhausted","purchases.quota.threshold","purchases.refund.changed","purchases.store.changed","purchases.subscription.changed","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.feedback.received","stores.google.changed","stores.group.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.permissions_changed"];var a={};n(a,{client:()=>P});function P(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("ListAgentVersions","name",e.path.name)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,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/"+s("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/"+s("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/"+s("DecideChatApproval","chat_id",e.path.chat_id)+"/approvals/"+s("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 forkChat(e){return t.send({op:"ForkChat",method:"POST",path:"/ai/chats/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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 putChatMember(e){return t.send({op:"PutChatMember",method:"PUT",path:"/ai/chats/"+s("PutChatMember","chat_id",e.path.chat_id)+"/members/"+s("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/"+s("DeleteChatMember","chat_id",e.path.chat_id)+"/members/"+s("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/"+s("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/"+s("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/"+s("GetChatMessageAttachment","chat_id",e.path.chat_id)+"/messages/"+s("GetChatMessageAttachment","message_id",e.path.message_id)+"/attachments/"+s("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/"+s("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/"+s("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/"+s("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/"+s("SendSubagentMessage","chat_id",e.path.chat_id)+"/runs/"+s("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/"+s("StopSubagent","chat_id",e.path.chat_id)+"/runs/"+s("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/"+s("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/"+s("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/"+s("GetChatToolCall","chat_id",e.path.chat_id)+"/tool-calls/"+s("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/"+s("AnswerChatToolCall","chat_id",e.path.chat_id)+"/tool-outputs/"+s("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/"+s("ListChatTurnArtifacts","chat_id",e.path.chat_id)+"/turns/"+s("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/"+s("GetChatTurnArtifact","chat_id",e.path.chat_id)+"/turns/"+s("GetChatTurnArtifact","response_id",e.path.response_id)+"/artifacts/"+s("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/"+s("GetChatTurnCost","chat_id",e.path.chat_id)+"/turns/"+s("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/"+s("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/"+s("GetChatVoice","chat_id",e.path.chat_id)+"/voice/"+s("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/"+s("CloseChatVoice","chat_id",e.path.chat_id)+"/voice/"+s("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/"+s("CommandChatVoice","chat_id",e.path.chat_id)+"/voice/"+s("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 getChatWorkspaceFile(e){return t.send({op:"GetChatWorkspaceFile",method:"GET",path:"/ai/chats/"+s("GetChatWorkspaceFile","chat_id",e.path.chat_id)+"/workspace/files",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"raw"},query:e.query,signal:e.signal})},async addChatWorkspaceRepo(e){return t.send({op:"AddChatWorkspaceRepo",method:"POST",path:"/ai/chats/"+s("AddChatWorkspaceRepo","chat_id",e.path.chat_id)+"/workspace/repos",auth:[["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"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/"+s("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/"+s("DeleteEndpoint","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/"+s("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/"+s("GetImageFile","image_id",e.path.image_id)+"/files/"+s("GetImageFile","position",e.path.position),auth:[["SecretKeyAuth"]],answers:{200:"raw"},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 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/"+s("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/"+s("DisconnectProvider","provider",e.path.provider),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})},async listRepos(e){return t.send({op:"ListRepos",method:"GET",path:"/ai/repos",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async putRepo(e){return t.send({op:"PutRepo",method:"PUT",path:"/ai/repos/"+s("PutRepo","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async deleteRepo(e){return t.send({op:"DeleteRepo",method:"DELETE",path:"/ai/repos/"+s("DeleteRepo","name",e.path.name),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/"+s("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/"+s("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/"+s("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})}}}var r={};n(r,{client:()=>A});function A(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("DefineEvent","name",e.path.name),auth:[["SecretKeyAuth"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var i={};n(i,{client:()=>S});function S(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("AdminAssignUserRole","uid",e.path.uid)+"/roles/"+s("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/"+s("AdminRevokeUserRole","uid",e.path.uid)+"/roles/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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"},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/"+s("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/"+s("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/"+s("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"},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/"+s("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/"+s("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"},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"},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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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 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/"+s("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})}}}var o={};n(o,{client:()=>R});function R(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={};n(l,{client:()=>v});function v(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/"+s("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/"+s("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/"+s("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 getCallPlace(e){return t.send({op:"GetCallPlace",method:"GET",path:"/calls/places/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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})}}}var p={};n(p,{client:()=>f});function f(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("PutUserValue","user_id",e.path.user_id)+"/"+s("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/"+s("DeleteUserValue","user_id",e.path.user_id)+"/"+s("DeleteUserValue","key",e.path.key),auth:[["SecretKeyAuth"]],answers:{200:"json"},headers:e.headers,signal:e.signal})}}}var d={};n(d,{client:()=>w});function w(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("PutMachinePreview","name",e.path.name)+"/previews/"+s("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/"+s("DeleteMachinePreview","name",e.path.name)+"/previews/"+s("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/"+s("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/"+s("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/"+s("DeleteMachineDomain","name",e.path.name)+"/domains/"+s("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/"+s("UpdateMachineDomain","name",e.path.name)+"/domains/"+s("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/"+s("GetBuild","name",e.path.name)+"/builds/"+s("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/"+s("GetBuildLog","name",e.path.name)+"/builds/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("ReadMachineLogs","name",e.path.name)+"/logs",auth:[["SecretKeyAuth"]],answers:{200:"raw"},query:e.query,signal:e.signal})},async getMachineMetrics(e){return t.send({op:"GetMachineMetrics",method:"GET",path:"/machines/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("ListCronRuns","name",e.path.name)+"/crons/"+s("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/"+s("RunCron","name",e.path.name)+"/crons/"+s("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/"+s("PauseCron","name",e.path.name)+"/crons/"+s("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/"+s("ResumeCron","name",e.path.name)+"/crons/"+s("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/"+s("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/"+s("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/"+s("GetTask","name",e.path.name)+"/tasks/"+s("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/"+s("CancelTask","name",e.path.name)+"/tasks/"+s("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/"+s("RetryTask","name",e.path.name)+"/tasks/"+s("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/"+s("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/"+s("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/"+s("TemplateTestUser","name",e.path.name)+"/test-users/"+s("TemplateTestUser","user",e.path.user)+"/templates/"+s("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/"+s("DeleteTemplatedTestUser","name",e.path.name)+"/test-users/"+s("DeleteTemplatedTestUser","user",e.path.user),auth:[["SecretKeyAuth"]],answers:{204:"empty"},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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("UploadSiteFile","name",e.path.name)+"/releases/"+s("UploadSiteFile","release",e.path.release)+"/files/"+s("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/"+s("FinishSiteRelease","name",e.path.name)+"/releases/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("DeleteSiteDomain","name",e.path.name)+"/domains/"+s("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/"+s("UpdateSiteDomain","name",e.path.name)+"/domains/"+s("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/"+s("GetSiteBuild","name",e.path.name)+"/builds/"+s("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/"+s("AuthorizeSitePreview","name",e.path.name)+"/previews/"+s("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/"+s("AuthorizeMachinePreview","name",e.path.name)+"/previews/"+s("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/"+s("OpenMachinePreview","name",e.path.name)+"/previews/"+s("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/"+s("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/"+s("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/"+s("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/"+s("CancelSiteBuild","name",e.path.name)+"/builds/"+s("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/"+s("CancelBuild","name",e.path.name)+"/builds/"+s("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/"+s("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/"+s("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/"+s("DeleteSiteHook","name",e.path.name)+"/hooks/"+s("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/"+s("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/"+s("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/"+s("DeleteMachineHook","name",e.path.name)+"/hooks/"+s("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/"+s("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/"+s("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/"+s("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/"+s("DeletePreviewLink","name",e.path.name)+"/previews/links/"+s("DeletePreviewLink","link",e.path.link),auth:[["SecretKeyAuth"]],answers:{204:"empty"},signal:e.signal})}}}var g={};n(g,{client:()=>k});function k(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("AdminRemoveMember","conversation_id",e.path.conversation_id)+"/members/"+s("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/"+s("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/"+s("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/"+s("AdminDeleteMessage","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("AdminFileURL","conversation_id",e.path.conversation_id)+"/messages/"+s("AdminFileURL","message_id",e.path.message_id)+"/attachments/"+s("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/"+s("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/"+s("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/"+s("AdminReportFileURL","report_id",e.path.report_id)+"/attachments/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("RemoveMember","conversation_id",e.path.conversation_id)+"/members/"+s("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/"+s("UpdateMember","conversation_id",e.path.conversation_id)+"/members/"+s("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/"+s("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/"+s("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/"+s("GetMessage","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("DeleteMessage","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("EditMessage","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("AttachmentURL","conversation_id",e.path.conversation_id)+"/messages/"+s("AttachmentURL","message_id",e.path.message_id)+"/attachments/"+s("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/"+s("React","conversation_id",e.path.conversation_id)+"/messages/"+s("React","message_id",e.path.message_id)+"/reactions/"+s("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/"+s("Unreact","conversation_id",e.path.conversation_id)+"/messages/"+s("Unreact","message_id",e.path.message_id)+"/reactions/"+s("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/"+s("MessageReaders","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("ListReplies","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("ViewOnce","conversation_id",e.path.conversation_id)+"/messages/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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 y={};n(y,{client:()=>T});function T(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("PutNotifyProvider","channel",e.path.channel)+"/"+s("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/"+s("DeleteNotifyProvider","channel",e.path.channel)+"/"+s("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/"+s("GetEmailTemplate","slug",e.path.slug)+"/"+s("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/"+s("PutEmailTemplate","slug",e.path.slug)+"/"+s("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/"+s("DeleteEmailTemplate","slug",e.path.slug)+"/"+s("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/"+s("GetPushTemplate","slug",e.path.slug)+"/"+s("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/"+s("PutPushTemplate","slug",e.path.slug)+"/"+s("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/"+s("DeletePushTemplate","slug",e.path.slug)+"/"+s("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/"+s("GetSMSTemplate","slug",e.path.slug)+"/"+s("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/"+s("PutSMSTemplate","slug",e.path.slug)+"/"+s("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/"+s("DeleteSMSTemplate","slug",e.path.slug)+"/"+s("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/"+s("GetWhatsAppTemplate","slug",e.path.slug)+"/"+s("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/"+s("PutWhatsAppTemplate","slug",e.path.slug)+"/"+s("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/"+s("DeleteWhatsAppTemplate","slug",e.path.slug)+"/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("RemoveTopicSubscriber","name",e.path.name)+"/subscribers/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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 u={};n(u,{client:()=>x});function x(t){return{async getAppleAccount(e){return t.send({op:"GetAppleAccount",method:"GET",path:"/purchases/apple",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async disconnectApple(e){return t.send({op:"DisconnectApple",method:"DELETE",path:"/purchases/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:"/purchases/apple/account-token",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async getAppleConnectPage(e){return t.send({op:"GetAppleConnectPage",method:"GET",path:"/purchases/apple/connect",auth:[],answers:{200:"raw"},signal:e?.signal})},async connectAppleKey(e){return t.send({op:"ConnectAppleKey",method:"POST",path:"/purchases/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:"/purchases/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:"/purchases/apple/readiness",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async reportAppleTransactions(e){return t.send({op:"ReportAppleTransactions",method:"POST",path:"/purchases/apple/transactions",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getGoogleAccountId(e){return t.send({op:"GetGoogleAccountID",method:"POST",path:"/purchases/google/account-id",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async reportGooglePurchases(e){return t.send({op:"ReportGooglePurchases",method:"POST",path:"/purchases/google/purchases",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:"/purchases/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:"/purchases/apple/xcode-certificate",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getGoogleAccount(e){return t.send({op:"GetGoogleAccount",method:"GET",path:"/purchases/google",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async connectGoogle(e){return t.send({op:"ConnectGoogle",method:"POST",path:"/purchases/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:"/purchases/google",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async getCatalog(e){return t.send({op:"GetCatalog",method:"GET",path:"/purchases/catalog",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async saveCatalog(e){return t.send({op:"SaveCatalog",method:"PUT",path:"/purchases/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:"/purchases/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:"/purchases/catalog/plans/"+s("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:"/purchases/catalog/plans/"+s("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:"/purchases/catalog/plans/"+s("DeclineCatalogPlan","plan_id",e.path.plan_id)+"/decline",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async validateCatalog(e){return t.send({op:"ValidateCatalog",method:"POST",path:"/purchases/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:"/purchases/charts",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getChartsOverview(e){return t.send({op:"GetChartsOverview",method:"GET",path:"/purchases/charts/overview",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getChart(e){return t.send({op:"GetChart",method:"GET",path:"/purchases/charts/"+s("GetChart","chart",e.path.chart),auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getStripeConnectPage(e){return t.send({op:"GetStripeConnectPage",method:"GET",path:"/purchases/connect",auth:[],answers:{200:"raw"},signal:e?.signal})},async connectStripeKey(e){return t.send({op:"ConnectStripeKey",method:"POST",path:"/purchases/connect",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getStripeAppInstallPage(e){return t.send({op:"GetStripeAppInstallPage",method:"GET",path:"/purchases/stripe/app/install",auth:[],answers:{200:"raw"},signal:e?.signal})},async startStripeAppInstall(e){return t.send({op:"StartStripeAppInstall",method:"POST",path:"/purchases/stripe/app/install",auth:[],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async completeStripeAppInstall(e){return t.send({op:"CompleteStripeAppInstall",method:"GET",path:"/purchases/stripe/app/callback",auth:[],answers:{200:"raw"},query:e?.query,signal:e?.signal})},async getCustomer(e){return t.send({op:"GetCustomer",method:"GET",path:"/purchases/customers/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("RevokeGrant","customer_id",e.path.customer_id)+"/grants/"+s("RevokeGrant","grant_id",e.path.grant_id),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})},async holdSpend(e){return t.send({op:"HoldSpend",method:"POST",path:"/purchases/customers/"+s("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:"/purchases/customers/"+s("SetCustomerLimit","customer_id",e.path.customer_id)+"/limits/"+s("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:"/purchases/customers/"+s("ClearCustomerLimit","customer_id",e.path.customer_id)+"/limits/"+s("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:"/purchases/customers/"+s("GrantLimit","customer_id",e.path.customer_id)+"/limits/"+s("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:"/purchases/customers/"+s("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:"/purchases/customers/"+s("CommitSpend","customer_id",e.path.customer_id)+"/spends/"+s("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:"/purchases/customers/"+s("ExtendHold","customer_id",e.path.customer_id)+"/spends/"+s("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:"/purchases/customers/"+s("ReleaseSpend","customer_id",e.path.customer_id)+"/spends/"+s("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:"/purchases/customers/"+s("ReverseSpend","customer_id",e.path.customer_id)+"/spends/"+s("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 listExperiments(e){return t.send({op:"ListExperiments",method:"GET",path:"/purchases/experiments",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async startExperiment(e){return t.send({op:"StartExperiment",method:"POST",path:"/purchases/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:"/purchases/experiments/"+s("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:"/purchases/experiments/"+s("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:"/purchases/experiments/"+s("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:"/purchases/experiments/"+s("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 getMyCustomerInfo(e){return t.send({op:"GetMyCustomerInfo",method:"GET",path:"/purchases/me",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async mergeGuest(e){return t.send({op:"MergeGuest",method:"POST",path:"/purchases/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:"/purchases/me/merge-grant",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},signal:e?.signal})},async getOfferings(e){return t.send({op:"GetOfferings",method:"GET",path:"/purchases/offerings",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async listPaywalls(e){return t.send({op:"ListPaywalls",method:"GET",path:"/purchases/paywalls",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createPaywall(e){return t.send({op:"CreatePaywall",method:"POST",path:"/purchases/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:"/purchases/paywalls/assets",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async registerPaywallAsset(e){return t.send({op:"RegisterPaywallAsset",method:"POST",path:"/purchases/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:"/purchases/paywalls/assets/"+s("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:"/purchases/paywalls/templates",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async getPaywallTemplateAsset(e){return t.send({op:"GetPaywallTemplateAsset",method:"GET",path:"/purchases/paywalls/templates/"+s("GetPaywallTemplateAsset","key",e.path.key)+"/assets/"+s("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:"/purchases/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:"/purchases/paywalls/"+s("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:"/purchases/paywalls/"+s("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:"/purchases/paywalls/"+s("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:"/purchases/paywalls/"+s("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:"/purchases/paywalls/"+s("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:"/purchases/paywalls/"+s("GetPaywallVersion","paywall_id",e.path.paywall_id)+"/versions/"+s("GetPaywallVersion","version",e.path.version),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async listPlacements(e){return t.send({op:"ListPlacements",method:"GET",path:"/purchases/placements",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listAttributeKeys(e){return t.send({op:"ListAttributeKeys",method:"GET",path:"/purchases/placements/attributes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async setPlacement(e){return t.send({op:"SetPlacement",method:"PUT",path:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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:"/purchases/placements/"+s("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 getSettings(e){return t.send({op:"GetSettings",method:"GET",path:"/purchases/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async updateSettings(e){return t.send({op:"UpdateSettings",method:"PUT",path:"/purchases/settings",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getStripeAccount(e){return t.send({op:"GetStripeAccount",method:"GET",path:"/purchases/stripe",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async disconnectStripe(e){return t.send({op:"DisconnectStripe",method:"DELETE",path:"/purchases/stripe",auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async checkStripeAccount(e){return t.send({op:"CheckStripeAccount",method:"POST",path:"/purchases/stripe/check",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async createCheckout(e){return t.send({op:"CreateCheckout",method:"POST",path:"/purchases/stripe/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:"/purchases/stripe/checkout/redemption",auth:[["ApiKeyAuth"],["ApiKeyAuth","userJWT"],["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async redeemPurchase(e){return t.send({op:"RedeemPurchase",method:"POST",path:"/purchases/redemptions/redeem",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getRedemptionPage(e){return t.send({op:"GetRedemptionPage",method:"GET",path:"/purchases/redeem",auth:[],answers:{200:"raw"},query:e.query,signal:e.signal})},async createStripeGrant(e){return t.send({op:"CreateStripeGrant",method:"POST",path:"/purchases/stripe/grants",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e?.headers,signal:e?.signal})},async createStripeAppInstall(e){return t.send({op:"CreateStripeAppInstall",method:"POST",path:"/purchases/stripe/app/grants",auth:[["SecretKeyAuth"]],answers:{201:"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:"/purchases/stripe/portal",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveAppleNotification(e){return t.send({op:"ReceiveAppleNotification",method:"POST",path:"/purchases/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:"/purchases/webhooks/google",auth:[],answers:{204:"empty"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveStripeEvent(e){return t.send({op:"ReceiveStripeEvent",method:"POST",path:"/purchases/webhooks/stripe",auth:[],answers:{200:"empty"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async receiveStripeAppEvent(e){return t.send({op:"ReceiveStripeAppEvent",method:"POST",path:"/purchases/webhooks/stripe-app",auth:[],answers:{200:"empty"},headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async listMyOffers(e){return t.send({op:"ListMyOffers",method:"GET",path:"/purchases/offers",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},signal:e?.signal})},async recordOfferView(e){return t.send({op:"RecordOfferView",method:"POST",path:"/purchases/offers/"+s("RecordOfferView","offer_key",e.path.offer_key)+"/views",auth:[["ApiKeyAuth","userJWT"]],answers:{204:"empty"},signal:e.signal})},async signAppleOffer(e){return t.send({op:"SignAppleOffer",method:"POST",path:"/purchases/offers/"+s("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:"/purchases/offers/"+s("ClaimOffer","offer_key",e.path.offer_key)+"/claim",auth:[["ApiKeyAuth","userJWT"]],answers:{201:"json"},signal:e.signal})},async redeemCoupon(e){return t.send({op:"RedeemCoupon",method:"POST",path:"/purchases/coupons/redeem",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getOfferStats(e){return t.send({op:"GetOfferStats",method:"GET",path:"/purchases/offers/stats",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async listCoupons(e){return t.send({op:"ListCoupons",method:"GET",path:"/purchases/coupons",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e?.signal})},async createCoupon(e){return t.send({op:"CreateCoupon",method:"POST",path:"/purchases/coupons",auth:[["SecretKeyAuth"]],answers:{201:"json"},idempotent:!0,headers:e.headers,body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})},async getCoupon(e){return t.send({op:"GetCoupon",method:"GET",path:"/purchases/coupons/"+s("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:"/purchases/coupons/"+s("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:"/purchases/coupons/"+s("ListCouponCodes","coupon_key",e.path.coupon_key)+"/codes",auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async setXcodeOfferKey(e){return t.send({op:"SetXcodeOfferKey",method:"PUT",path:"/purchases/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 searchCustomers(e){return t.send({op:"SearchCustomers",method:"GET",path:"/purchases/customers",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async getCustomerHistory(e){return t.send({op:"GetCustomerHistory",method:"GET",path:"/purchases/customers/"+s("GetCustomerHistory","customer_id",e.path.customer_id)+"/history",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})},async listCatalogRevisions(e){return t.send({op:"ListCatalogRevisions",method:"GET",path:"/purchases/catalog/revisions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e?.query,signal:e?.signal})},async getCatalogRevision(e){return t.send({op:"GetCatalogRevision",method:"GET",path:"/purchases/catalog/revisions/"+s("GetCatalogRevision","revision",e.path.revision),auth:[["SecretKeyAuth"]],answers:{200:"json"},signal:e.signal})},async restoreCatalogRevision(e){return t.send({op:"RestoreCatalogRevision",method:"POST",path:"/purchases/catalog/revisions/"+s("RestoreCatalogRevision","revision",e.path.revision)+"/restore",auth:[["SecretKeyAuth"]],answers:{200:"json"},idempotent:!0,headers:e.headers,signal:e.signal})},async extendSubscription(e){return t.send({op:"ExtendSubscription",method:"POST",path:"/purchases/customers/"+s("ExtendSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+s("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:"/purchases/customers/"+s("RefundSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+s("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 cancelSubscription(e){return t.send({op:"CancelSubscription",method:"POST",path:"/purchases/customers/"+s("CancelSubscription","customer_id",e.path.customer_id)+"/subscriptions/"+s("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 setRefundDataConsent(e){return t.send({op:"SetRefundDataConsent",method:"PUT",path:"/purchases/me/refund-data-consent",auth:[["ApiKeyAuth","userJWT"]],answers:{200:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}var c={};n(c,{client:()=>C});function C(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 m={};n(m,{client:()=>j});function j(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/"+s("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/"+s("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/"+s("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/"+s("GetSecret","environment",e.path.environment)+"/"+s("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/"+s("PutSecret","environment",e.path.environment)+"/"+s("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/"+s("DeleteSecret","environment",e.path.environment)+"/"+s("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/"+s("RollbackSecret","environment",e.path.environment)+"/"+s("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/"+s("ListSecretVersions","environment",e.path.environment)+"/"+s("ListSecretVersions","name",e.path.name)+"/versions",auth:[["SecretKeyAuth"]],answers:{200:"json"},query:e.query,signal:e.signal})}}}var h={};n(h,{client:()=>E});function E(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("GetObject","bucket",e.path.bucket)+"/objects/"+s("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/"+s("PutObject","bucket",e.path.bucket)+"/objects/"+s("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/"+s("DeleteObject","bucket",e.path.bucket)+"/objects/"+s("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/"+s("HeadObject","bucket",e.path.bucket)+"/objects/"+s("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/"+s("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/"+s("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/"+s("GetPublicObject","bucket",e.path.bucket)+"/"+s("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/"+s("HeadPublicObject","bucket",e.path.bucket)+"/"+s("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/"+s("GetSignedObject","bucket",e.path.bucket)+"/"+s("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/"+s("PutSignedObject","bucket",e.path.bucket)+"/"+s("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/"+s("HeadSignedObject","bucket",e.path.bucket)+"/"+s("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/"+s("Upload","machine",e.path.machine)+"/"+s("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 b={};n(b,{client:()=>K});function K(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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("GetFeedback","app_id",e.path.app_id)+"/feedback/"+s("GetFeedback","kind",e.path.kind)+"/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("GetSignedBundleLink","package_id",e.path.package_id)+"/deliveries/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("GetReviewAttachment","app_id",e.path.app_id)+"/review/threads/"+s("GetReviewAttachment","thread_id",e.path.thread_id)+"/attachments/"+s("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/"+s("SetReviewDraft","app_id",e.path.app_id)+"/review/threads/"+s("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/"+s("SendReviewDraft","app_id",e.path.app_id)+"/review/threads/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("UnshareAppleSession","environment",e.path.environment),auth:[["SecretKeyAuth"]],answers:{204:"empty"},idempotent:!0,headers:e.headers,signal:e.signal})}}}var _={};n(_,{client:()=>q});function q(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 listPersonRuns(e){return t.send({op:"ListPersonRuns",method:"GET",path:"/journeys/people/"+s("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 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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("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/"+s("TestJourney","key",e.path.key)+"/test",auth:[["SecretKeyAuth"]],answers:{201:"json"},body:{kind:"json",contentType:"application/json",value:e.body},signal:e.signal})}}}export{a,r as b,i as c,o as d,l as e,p as f,_ as g,d as h,g as i,y as j,u as k,c as l,m,h as n,b as o,M as p};