PageSourceSearch

https://developers.basistheory.com/assets/js/ce4059ca.d62681e3.js

js basistheory.com collected 2026-09-24 11:51:21 UTC 48,212 bytes, 2 lines download raw bytes

1/*! For license information please see ce4059ca.d62681e3.js.LICENSE.txt */
2"use strict";(self.webpackChunkdevelopers_basistheory_com=self.webpackChunkdevelopers_basistheory_com||[]).push([[2613],{47386:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>h,metadata:()=>s,toc:()=>j});const s=JSON.parse('{"id":"api/tenants/tenants","title":"Tenants","description":"Tenants provide a way to logically group your Applications and tokens. Common use cases for Tenants may be to create one per environment such as development, QA, and production or to isolate business domains from each other. Tenant data is isolated from other tenants unless explicitly shared.","source":"@site/docs/api/tenants/tenants.mdx","sourceDirName":"api/tenants","slug":"/api/tenants/","permalink":"/docs/api/tenants/","draft":false,"unlisted":false,"tags":[],"version":"current","lastUpdatedAt":1790020069000,"frontMatter":{"title":"Tenants"},"sidebar":"api","previous":{"title":"Deprecations","permalink":"/docs/api/deprecations"},"next":{"title":"Tenants","permalink":"/docs/api/tenants/"}}');var r=t(74848),a=t(28453),i=t(13187),l=t(83227),c=t(47363),d=t(2368),o=t(85202);const h={title:"Tenants"},u="Tenants",p={},j=[{value:"Get a Tenant",id:"get-a-tenant",level:2},{value:"Permissions",id:"permissions",level:4},{value:"Request",id:"request",level:3},{value:"Response",id:"response",level:3},{value:"Update Tenant",id:"update-tenant",level:2},{value:"Permissions",id:"permissions-1",level:4},{value:"Request",id:"request-1",level:3},{value:"Request Parameters",id:"request-parameters",level:4},{value:"Response",id:"response-1",level:3},{value:"Get Security Contact Email",id:"get-security-contact-email",level:2},{value:"Permissions",id:"permissions-2",level:4},{value:"Request",id:"request-2",level:3},{value:"Response",id:"response-2",level:3},{value:"Update Security Contact Email",id:"update-security-contact-email",level:2},{value:"Permissions",id:"permissions-3",level:4},{value:"Request",id:"request-3",level:3},{value:"Request Parameters",id:"request-parameters-1",level:4},{value:"Response",id:"response-3",level:3},{value:"Delete Tenant",id:"delete-tenant",level:2},{value:"Permissions",id:"permissions-4",level:4},{value:"Request",id:"request-4",level:3},{value:"Response",id:"response-4",level:3},{value:"Get Tenant Usage Report",id:"get-tenant-usage-report",level:2},{value:"Permissions",id:"permissions-5",level:4},{value:"Request",id:"request-5",level:3},{value:"Response",id:"response-5",level:3},{value:"Tenant Object",id:"tenant-object",level:2},{value:"Tenant Settings Object",id:"tenant-settings-object",level:3},{value:"Tenant Usage Report Object",id:"tenant-usage-report-object",level:2},{value:"Token Report Object",id:"token-report-object",level:3},{value:"Token Type Metrics Object",id:"token-type-metrics-object",level:3}];function m(e){const n={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"tenants",children:"Tenants"})}),"\n",(0,r.jsx)(n.p,{children:"Tenants provide a way to logically group your Applications and tokens. Common use cases for Tenants may be to create one per environment such as development, QA, and production or to isolate business domains from each other. Tenant data is isolated from other tenants unless explicitly shared."}),"\n",(0,r.jsx)(n.h2,{id:"get-a-tenant",children:"Get a Tenant"}),"\n",(0,r.jsxs)(n.p,{children:["Retrieves the Tenant associated with the provided ",(0,r.jsx)(n.code,{children:"BT-API-KEY"}),"."]}),"\n",(0,r.jsx)(c.y,{method:c.P.GET,endpoint:"https://api.basistheory.com/tenants/self"}),"\n",(0,r.jsx)(n.h4,{id:"permissions",children:"Permissions"}),"\n",(0,r.jsx)(d.a,{content:"tenant:read"}),"\n",(0,r.jsx)(n.h3,{id:"request",children:"Request"}),"\n",(0,r.jsxs)(i.A,{className:"bt-tabs",groupId:"languages",children:[(0,r.jsx)(l.A,{value:"shell",label:"cURL",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",metastring:"showLineNumbers",children:'curl "https://api.basistheory.com/tenants/self" \\\n  -H "BT-API-KEY: <MANAGEMENT_API_KEY>
2"\n'})})}),(0,r.jsx)(l.A,{value:"node",label:"Node",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:"await client.tenants.self.get();\n"})})}),(0,r.jsx)(l.A,{value:"javascript",label:"JavaScript (legacy)",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:'import { BasisTheory } from "@basis-theory/basis-theory-js";\n\nconst bt = await new BasisTheory().init("<MANAGEMENT_API_KEY>");\n\nconst tenant = await bt.tenants.retrieve();\n'})})}),(0,r.jsx)(l.A,{value:"csharp",label:"C#",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-csharp",metastring:"showLineNumbers",children:"await client.Tenants.Self.GetAsync();\n"})})}),(0,r.jsx)(l.A,{value:"java",label:"Java",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-java",metastring:"showLineNumbers",children:"Tenant tenant = new TenantsClient(ClientOptions.builder().build())\n    .self()\n    .get();\n"})})}),(0,r.jsx)(l.A,{value:"python",label:"Python",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",metastring:"showLineNumbers",children:"client.tenants.self_.get()\n"})})}),(0,r.jsx)(l.A,{value:"go",label:"Go",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-go",metastring:"showLineNumbers",children:"tenant, err := client.Tenants.Self.Get(ctx)\n"})})})]}),"\n",(0,r.jsx)(n.h3,{id:"response",children:"Response"}),"\n",(0,r.jsxs)(n.p,{children:["Returns a ",(0,r.jsx)(n.a,{href:"#tenant-object",children:"Tenant"})," for the provided ",(0,r.jsx)(n.code,{children:"BT-API-KEY"}),". Returns ",(0,r.jsx)(n.a,{href:"/docs/api/errors",children:"an error"})," if the Tenant could not be retrieved."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers",children:'{\n  "id": "f88da999-b124-4a14-acde-cbc121444f14",\n  "owner_id": "97cec6e8-a143-4fb4-9ab0-cf7e49242d21",\n  "name": "My Tenant",\n  "type": "production",\n  "settings": {\n    "fingerprint_tokens": "false",\n    "disable_ephemeral_proxy": "false",\n    "deduplicate_tokens": "false"\n  },\n  "created_by": "fb124bba-f90d-45f0-9a59-5edca27b3b4a",\n  "created_at": "2020-09-15T15:53:00+00:00",\n  "modified_by": "fb124bba-f90d-45f0-9a59-5edca27b3b4a",\n  "modified_at": "2021-03-01T08:23:14+00:00"\n}\n'})}),"\n",(0,r.jsx)(n.h2,{id:"update-tenant",children:"Update Tenant"}),"\n",(0,r.jsxs)(n.p,{children:["Update the Tenant associated with the provided ",(0,r.jsx)(n.code,{children:"BT-API-KEY"}),"."]}),"\n",(0,r.jsx)(c.y,{method:c.P.PUT,endpoint:"https://api.basistheory.com/tenants/self"}),"\n",(0,r.jsx)(n.h4,{id:"permissions-1",children:"Permissions"}),"\n",(0,r.jsx)(d.a,{content:"tenant:update"}),"\n",(0,r.jsx)(n.h3,{id:"request-1",children:"Request"}),"\n",(0,r.jsxs)(i.A,{className:"bt-tabs",groupId:"languages",children:[(0,r.jsx)(l.A,{value:"shell",label:"cURL",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",metastring:"showLineNumbers",children:'curl "https://api.basistheory.com/tenants/self" \\\n  -H "BT-API-KEY: <MANAGEMENT_API_KEY>" \\\n  -H "Content-Type: application/json" \\\n  -X "PUT" \\\n  -d \'{\n    "name": "My Example Tenant",\n    "settings": {\n      "fingerprint_tokens": "true",\n      "disable_ephemeral_proxy": "true",\n      "deduplicate_tokens": "true"\n    }\n  }\'\n'})})}),(0,r.jsx)(l.A,{value:"node",label:"Node",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:'await client.tenants.self.update({\n    name: "name",\n});\n'})})}),(0,r.jsx)(l.A,{value:"javascript",label:"JavaScript (legacy)",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:'import { BasisTheory } from "@basis-theory/basis-theory-js";\n\nconst bt = await new BasisTheory().init("<MANAGEMENT_API_KEY>");\n\nconst tenant = await bt.tenants.update({\n  name: "My Example Tenant",\n  settings: {\n    fingerprint_tokens: "true",\n    disable_ephemeral_proxy: "true",\n    deduplicate_tokens: "true",\n  },\n});\n'})})}),(0,r.jsx)(l.A,{value:"csharp",label:"C#",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-csharp",metastring:"showLineNumbers",children:'await client.Tenants.Self.UpdateAsync(new UpdateTenantRequest { Name = "name" });\n'})})}),(0,r.jsx)(l.A,{value:"java",label:"Java",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-java",metastring:"showLineNumbers",children:'Tenant updatedTenant = new TenantsClient(ClientOptions.builder().build())\n    .self()\n    .update(UpdateTenantRequest.builder()\n        .name("My Example Tenant")\n        .build());\n'})})}),(0,r.jsx)(l.A,{value:"python",label:"Python",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",metastring:"showLineNumbers",children:'client.tenants.self_.update(\n    name="name",\n)\n'})})}),(0,r.jsx)(l.A,{value:"go",label:"Go",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-go",metastring:"showLineNumbers",children:'tenant, err := client.Tenants.Self.Update(ctx, &tenants.UpdateTenantRequest{\n    Name: "My Example Tenant",\n})\n'})})})]}),"\n",(0,r.jsx)(n.h4,{id:"request-parameters",children:"Request Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Attribute"}),(0,r.jsx)(n.th,{children:"Required"}),(0,r.jsx)(n.th,{children:"Type"}),(0,r.jsx)(n.th,{children:"Default"}),(0,r.jsx)(n.th,{children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"name"})}),(0,r.jsx)(n.td,{children:"true"}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"string"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"null"})}),(0,r.jsxs)(n.td,{children:["The name of the Tenant. Has a maximum length of ",(0,r.jsx)(n.code,{children:"200"})]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"settings"})}),(0,r.jsx)(n.td,{children:"false"}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"string"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.a,{href:"#tenant-settings-object",children:"Tenant Settings"})}),(0,r.jsx)(n.td,{children:"The settings for the Tenant"})]})]})]}),"\n",(0,r.jsx)(n.h3,{id:"response-1",children:"Response"}),"\n",(0,r.jsxs)(n.p,{children:["Returns a ",(0,r.jsx)(n.a,{href:"#tenant-object",children:"tenant"})," if the Tenant was updated. Returns ",(0,r.jsx)(n.a,{href:"/docs/api/errors",children:"an error"})," if there were validation errors, or the Tenant failed to update."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers",children:'{\n  "id": "f88da999-b124-4a14-acde-cbc121444f14",\n  "owner_id": "97cec6e8-a143-4fb4-9ab0-cf7e49242d21",\n  "name": "My Example Tenant",\n  "type": "production",\n  "settings": {\
2n    "fingerprint_tokens": "true",\n    "disable_ephemeral_proxy": "true",\n    "deduplicate_tokens": "true"\n  },\n  "created_by": "fb124bba-f90d-45f0-9a59-5edca27b3b4a",\n  "created_at": "2020-09-15T15:53:00+00:00",\n  "modified_by": "fb124bba-f90d-45f0-9a59-5edca27b3b4a",\n  "modified_at": "2021-03-01T08:23:14+00:00"\n}\n'})}),"\n",(0,r.jsx)(n.h2,{id:"get-security-contact-email",children:"Get Security Contact Email"}),"\n",(0,r.jsx)(n.p,{children:"Retrieves the security contact email used for vulnerability notifications."}),"\n",(0,r.jsx)(n.p,{children:"If a security contact email is not configured, this endpoint returns the tenant owner email."}),"\n",(0,r.jsxs)(n.p,{children:["For notification cadence and event behavior, see ",(0,r.jsx)(n.a,{href:"/docs/concepts/runtimes/vulnerability-scanning",children:"Runtime Vulnerability Scanning"}),"."]}),"\n",(0,r.jsx)(c.y,{method:c.P.GET,endpoint:"https://api.basistheory.com/tenants/self/security-contact"}),"\n",(0,r.jsx)(n.h4,{id:"permissions-2",children:"Permissions"}),"\n",(0,r.jsx)(d.a,{content:"tenant:read"}),"\n",(0,r.jsx)(n.h3,{id:"request-2",children:"Request"}),"\n",(0,r.jsxs)(i.A,{className:"bt-tabs",groupId:"languages",children:[(0,r.jsx)(l.A,{value:"shell",label:"cURL",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",metastring:"showLineNumbers",children:'curl "https://api.basistheory.com/tenants/self/security-contact" \\\n  -H "BT-API-KEY: <MANAGEMENT_API_KEY>"\n'})})}),(0,r.jsx)(l.A,{value:"node",label:"Node",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:"await client.tenants.securityContact.get();\n"})})}),(0,r.jsx)(l.A,{value:"javascript",label:"JavaScript (legacy)",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:'const response = await fetch("https://api.basistheory.com/tenants/self/security-contact", {\n  method: "GET",\n  headers: {\n    "BT-API-KEY": "<MANAGEMENT_API_KEY>",\n  },\n});\n\nconst securityContact = await response.json();\n'})})}),(0,r.jsx)(l.A,{value:"csharp",label:"C#",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-csharp",metastring:"showLineNumbers",children:"await client.Tenants.SecurityContact.GetAsync();\n"})})}),(0,r.jsx)(l.A,{value:"java",label:"Java",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-java",metastring:"showLineNumbers",children:"SecurityContactEmailResponse securityContact = new TenantsClient(ClientOptions.builder().build())\n    .securityContact()\n    .get();\n"})})}),(0,r.jsx)(l.A,{value:"python",label:"Python",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",metastring:"showLineNumbers",children:"client.tenants.security_contact.get()\n"})})}),(0,r.jsx)(l.A,{value:"go",label:"Go",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-go",metastring:"showLineNumbers",children:"securityContact, err := client.Tenants.SecurityContact.Get(ctx)\n"})})})]}),"\n",(0,r.jsx)(n.h3,{id:"response-2",children:"Response"}),"\n",(0,r.jsxs)(n.p,{children:["Returns a security contact object for the provided ",(0,r.jsx)(n.code,{children:"BT-API-KEY"}),"."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers",children:'{\n  "email": "[email protected]"\n}\n'})}),"\n",(0,r.jsx)(n.h2,{id:"update-security-contact-email",children:"Update Security Contact Email"}),"\n",(0,r.jsx)(n.p,{children:"Updates the security contact email used for vulnerability notifications."}),"\n",(0,r.jsx)(c.y,{method:c.P.PUT,endpoint:"https://api.basistheory.com/tenants/self/security-contact"}),"\n",(0,r.jsx)(n.h4,{id:"permissions-3",children:"Permissions"}),"\n",(0,r.jsx)(d.a,{content:"tenant:update"}),"\n",(0,r.jsx)(n.h3,{id:"request-3",children:"Request"}),"\n",(0,r.jsxs)(i.A,{className:"bt-tabs",groupId:"languages",children:[(0,r.jsx)(l.A,{value:"shell",label:"cURL",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",metastring:"showLineNumbers",children:'curl "https://api.basistheory.com/tenants/self/security-contact" \\\n  -H "BT-API-KEY: <MANAGEMENT_API_KEY>" \\\n  -H "Content-Type: application/json" \\\n  -X "PUT" \\\n  -d \'{\n    "email": "[email protected]"\n  }\'\n'})})}),(0,r.jsx)(l.A,{value:"node",label:"Node",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:'await client.tenants.securityContact.update({\n  email: "[email protected]",\n});\n'})})}),(0,r.jsx)(l.A,{value:"javascript",label:"JavaScript (legacy)",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:'const response = await fetch("https://api.basistheory.com/tenants/self/security-contact", {\n  method: "PUT",\n  headers: {\n    "BT-API-KEY": "<MANAGEMENT_API_KEY>",\n    "Content-Type": "application/json",\n  },\n  body: JSON.stringify({\n    email: "[email protected]",\n  }),\n});\n\nconst securityContact = await response.json();\n'})})}),(0,r.jsx)(l.A,{value:"csharp",label:"C#",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-csharp",metastring:"showLineNumbers",children:'await client.Tenants.SecurityContact.UpdateAsync(new SecurityContactEmailRequest\n{\n    Email = "[email protected]"\n});\n'})})}),(0,r.jsx)(l.A,{value:"java",label:"Java",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-java",metastring:"showLineNumbers",children:'SecurityContactEmailResponse securityContact = new TenantsClient(ClientOptions.builder().build())\n    .securityContact()\n    .update(SecurityContactEmailRequest.builder()\n        .email("[email protected]")\n        .build());\n'})})}),(0,r.jsx)(l.A,{value:"python",label:"Python",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",metastring:"showLineNumbers",children:'client.tenants.security_contact.update(\n    email="[email protected]",\n)\n'})})}),(0,r.jsx)(l.A,{value:"go",label:"Go",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-go",metastring:"showLineNumbers",children:'securityContact, err := client.Tenants.SecurityContact.Update(ctx, &tenants.SecurityContactEmailRequest{\n    Email: "[email protected]",\n})\n'})})})]}),"\n",(0,r.jsx)(n.h4,{id:"request-parameters-1",children:"Request Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Attribute"}),(0,r.jsx)(n.th,{children:"Required"}),(0,r.jsx)(n.th,{children:"Type"}),(0,r.jsx)(n.th,{children:"Description"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"email"})}),(0,r.jsx)(n.td,{children:"true"}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"string"})}),(0,r.jsxs)(n.td,{children:["Security contact email address. Max length ",(0,r.jsx)(n.code,{children:"200"})," characters."]})]})})]}),"\n",(0,r.jsx)(n.h3,{id:"response-3",children:"Response"}),"\n",(0,r.jsx)(n.p,{children:"Returns the updated security contact object."}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers",children:'{\n  "email": "[email protected]"\n}\n'})}),"\n",(0,r.jsx)(n.h2,{id:"delete-tenant",children:"Delete Tenant"}),"\n",(0,r.jsxs)(n.p,{children:["Delete the Tenant associated with the provided ",(0,r.jsx)(n.code,{children:"BT-API-KEY"}),"."]}),"\n",(0,r.jsx)(c.y,{method:c.P.DELETE,endpoint:"https://api.basistheory.com/tenants/self"}),"\n",(0,r.jsx)(n.h4,{id:"permissions-4",children:"Permissions"}),"\n",(0,r.jsx)(d.a,{content:"tenant:delete"}),"\n",(0,r.jsx)(n.h3,{id:"request-4",children:"Request"}),"\n",(0,r.jsxs)(i.A,{className:"bt-tabs",groupId:"languages",children:[(0,r.jsx)(l.A,{value:"shell",label:"cURL",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",metastring:"showLineNumbers",children:'curl "https://api.basistheory.com/tenants/self" \\\n  -H "BT-API-KEY: <MANAGEMENT_API_KEY>" \\\n  -X "DELETE"\n'})})}),(0,r.jsx)(l.A,{value:"node",label:"Node",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:"await client.tenants.self.delete();\n"})})}),(0,r.jsx)(l.A,{value:"javascript",label:"JavaScript (legacy)",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:'import { BasisTheory } from "@basis-theory/basis-theory-js";\n\nconst bt = await new BasisTheory().init("<MANAGEMENT_API_KEY>");\n\nawait bt.tenants.delete();\n'})})}),(0,r.jsx)(l.A,{value:"csharp",label:"C#",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-csharp",metastring:"showLineNumbers",children:"await client.Tenants.Self.DeleteAsync();\n"})})}),(0,r.jsx)(l.A,{value:"java",label:"Java",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-java",metastring:"showLineNumbers",children:"new TenantsClient(ClientOptions.builder().build())\n   .self()\n    .delete();\n"})})}),(0,r.jsx)(l.A,{value:"python",label:"Python",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",metastring:"showLineNumbers",children:"client.tenants.self_.delete()\n"})})}),(0,r.jsx)(l.A,{value:"go",label:"Go",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-go",metastring:"showLineNumbers",children:"err := client.Tenants.Self.Delete(ctx)\n"})})})]}),"\n",(0,r.jsx)(n.h3,{id:"response-4",children:"Response"}),"\n",(0,r.jsxs)(n.p,{children:["Returns ",(0,r.jsx)(n.a,{href:"/docs/api/errors",children:"an error"})," if the Tenant failed to delete."]}),"\n",(0,r.jsx)(n.h2,{id:"get-tenant-usage-report",children:"Get Tenant Usage Report"}),"\n",(0,r.jsxs)(n.p,{children:["Retrieves the Tenant Usage Report associated with the provided ",(0,r.jsx)(n.code,{children:"BT-API-KEY"}),"."]}),"\n",(0,r.jsx)(c.y,{method:c.P.GET,endpoint:"https://api.basistheory.com/tenants/self/reports/usage"}),"\n",(0,r.jsx)(n.h4,{id:"permissions-5",children:"Permissions"}),"\n",(0,r.jsx)(d.a,{content:"report:read"}),"\n",(0,r.jsx)(n.h3,{id:"request-5",children:"Request"}),"\n",(0,r.jsxs)(i.A,{className:"bt-tabs",groupId:"languages",children:[(0,r.jsx)(l.A,{value:"shell",label:"cURL",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",metastring:"showLineNumbers",children:'curl "https://api.basistheory.com/tenants/self/reports/usage" \\\n  -H "BT-API-KEY: <MANAGEMENT_API_KEY>
2"\n'})})}),(0,r.jsx)(l.A,{value:"node",label:"Node",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:"await client.tenants.self.getUsageReports();\n"})})}),(0,r.jsx)(l.A,{value:"javascript",label:"JavaScript (legacy)",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-javascript",metastring:"showLineNumbers",children:'import { BasisTheory } from "@basis-theory/basis-theory-js";\n\nconst bt = await new BasisTheory().init("<MANAGEMENT_API_KEY>");\n\nconst tenantUsageReport = await bt.tenants.retrieveUsageReport();\n'})})}),(0,r.jsx)(l.A,{value:"csharp",label:"C#",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-csharp",metastring:"showLineNumbers",children:"await client.Tenants.Self.GetUsageReportsAsync();\n"})})}),(0,r.jsx)(l.A,{value:"java",label:"Java",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-java",metastring:"showLineNumbers",children:"TenantUsageReport report = new TenantsClient(ClientOptions.builder().build())\n    .self()\n    .getUsageReports();\n"})})}),(0,r.jsx)(l.A,{value:"python",label:"Python",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",metastring:"showLineNumbers",children:"client.tenants.self_.get_usage_reports()\n"})})}),(0,r.jsx)(l.A,{value:"go",label:"Go",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-go",metastring:"showLineNumbers",children:"report, err := client.Tenants.Self.GetUsageReports(ctx)\n"})})})]}),"\n",(0,r.jsx)(n.h3,{id:"response-5",children:"Response"}),"\n",(0,r.jsxs)(n.p,{children:["Returns a ",(0,r.jsx)(n.a,{href:"#tenant-usage-report-object",children:"Tenant Usage Report"})," for the provided ",(0,r.jsx)(n.code,{children:"BT-API-KEY"}),". Returns ",(0,r.jsx)(n.a,{href:"/docs/api/errors",children:"an error"})," if the Tenant Usage Report could not be retrieved."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers",children:'{\n  "token_report": {\n    "metrics_by_type": {\n      "token": {\n        "count": 123,\n        "last_created_at": "2020-09-15T15:53:00+00:00"\n      },\n      "card": {\n        "count": 456,\n        "last_created_at": "2020-09-15T15:53:00+00:00"\n      },\n      "bank": {\n        "count": 789,\n        "last_created_at": "2020-09-15T15:53:00+00:00"\n      }\n    },\n    "included_monthly_active_tokens": 50,\n    "monthly_active_tokens": 987\n  }\n}\n'})}),"\n",(0,r.jsx)(n.h2,{id:"tenant-object",children:"Tenant Object"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Attribute"}),(0,r.jsx)(n.th,{children:"Type"}),(0,r.jsx)(n.th,{children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"id"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"uuid"})}),(0,r.jsx)(n.td,{children:"Unique identifier of the Tenant"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"owner_id"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"uuid"})}),(0,r.jsx)(n.td,{children:"The user ID which owns the Tenant"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"type"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"string"})}),(0,r.jsxs)(n.td,{children:["The type of the Tenant: ",(0,r.jsx)(n.code,{children:"production"})," or ",(0,r.jsx)(n.code,{children:"test"})]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"name"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"string"})}),(0,r.jsx)(n.td,{children:"The name of the Tenant"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"settings"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.a,{href:"#tenant-settings-object",children:"Tenant Settings"})}),(0,r.jsx)(n.td,{children:"The settings for the Tenant"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"created_by"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"uuid"})}),(0,r.jsx)(n.td,{children:"(Optional) The ID of the user that created the Tenant"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"created_at"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"date"})}),(0,r.jsx)(n.td,{children:"(Optional) Created date of the Tenant in ISO 8601 format"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"modified_by"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"uuid"})}),(0,r.jsxs)(n.td,{children:["(Optional) The ID of the user or ",(0,r.jsx)(n.a,{href:"/docs/api/applications",children:"Application"})," that last modified the Tenant"]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"modified_at"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"date"})}),(0,r.jsx)(n.td,{children:"(Optional) Last modified date of the Tenant in ISO 8601 format"})]})]})]}),"\n",(0,r.jsx)(n.h3,{id:"tenant-settings-object",children:"Tenant Settings Object"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Attribute"}),(0,r.jsx)(n.th,{children:"Type"}),(0,r.jsx)(n.th,{children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"fingerprint_tokens"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"string"})}),(0,r.jsxs)(n.td,{children:["(Bool) Whether all tokens will be fingerprinted using the ",(0,r.jsx)(n.a,{href:"/docs/api/tokens/token-types",children:"default fingerprint expression"})," for its token type. When disabled, fingerprinting can still be enabled per token by setting a ",(0,r.jsx)(n.a,{href:"/docs/expressions/fingerprints",children:"fingerprint expression"})," on the token."]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"disable_ephemeral_proxy"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"string"})}),(0,r.jsxs)(n.td,{children:["(Bool) When ",(0,r.jsx)(n.code,{children:"true"}),", ",(0,r.jsx)(n.a,{href:"/docs/api/proxies/invoke-ephemeral-proxies",children:"ephemeral proxies"})," will not be allowed for the tenant."]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"deduplicate_tokens"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"string"})}),(0,r.jsxs)(n.td,{children:["(Bool) Whether tokens are ",(0,r.jsx)(n.a,{href:"/docs/concepts/what-are-tokens#deduplication",children:"deduplicated"})," on creation and updates."]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"token_deduplication_behavior"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"string"})}),(0,r.jsxs)(n.td,{children:["Whether existing tokens have their data updated to the incoming token (",(0,r.jsx)(n.code,{children:"update_existing"}),") or remain unchanged and returned as is (",(0,r.jsx)(n.code,{children:"read_existing"}),") on ",(0,r.jsx)(n.a,{href:"/docs/concepts/what-are-tokens#deduplication",children:"deduplication"}),". ",(0,r.jsx)(n.a,{href:"/docs/concepts/token-intents",children:"Token Intents"})," do not use this setting and are always deduplicated when convert
2ing to tokens with the ",(0,r.jsx)(n.code,{children:"update_existing"})," behavior."]})]})]})]}),"\n",(0,r.jsx)(n.h2,{id:"tenant-usage-report-object",children:"Tenant Usage Report Object"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Attribute"}),(0,r.jsx)(n.th,{children:"Type"}),(0,r.jsx)(n.th,{children:"Description"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"token_report"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.a,{href:"#token-report-object",children:"Token Report"})}),(0,r.jsx)(n.td,{children:"Token Usage Report for Tenant"})]})})]}),"\n",(0,r.jsx)(n.h3,{id:"token-report-object",children:"Token Report Object"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Attribute"}),(0,r.jsx)(n.th,{children:"Type"}),(0,r.jsx)(n.th,{children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"metrics_by_type"})}),(0,r.jsx)(n.td,{children:(0,r.jsxs)(n.em,{children:["map<string, ",(0,r.jsx)(n.a,{href:"#token-type-metrics-object",children:"TokenTypeMetrics"}),">"]})}),(0,r.jsxs)(n.td,{children:["Token Metrics by ",(0,r.jsx)(n.a,{href:"/docs/api/tokens/token-types",children:"TokenType"})]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"included_monthly_active_tokens"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"long"})}),(0,r.jsx)(n.td,{children:"Number of included monthly active tokens for the billing plan"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"monthly_active_tokens"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"long"})}),(0,r.jsx)(n.td,{children:"Number of tokens that have been created, read, or used in the current month"})]})]})]}),"\n",(0,r.jsxs)(o.F,{children:["To learn more about pricing, check out ",(0,r.jsx)("a",{href:"http://basistheory.com/pricing",children:"our pricing page"}),"."]}),"\n",(0,r.jsx)(n.h3,{id:"token-type-metrics-object",children:"Token Type Metrics Object"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Attribute"}),(0,r.jsx)(n.th,{children:"Type"}),(0,r.jsx)(n.th,{children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"count"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"long"})}),(0,r.jsx)(n.td,{children:"Number of tokens"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"last_created_at"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.em,{children:"date"})}),(0,r.jsx)(n.td,{children:"(Optional) Last created date in ISO 8601 format"})]})]})]})]})}function x(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},21020:(e,n,t)=>{var s=t(96540),r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(e,n,t){var s,a={},d=null,o=null;for(s in void 0!==t&&(d=""+t),void 0!==n.key&&(d=""+n.key),void 0!==n.ref&&(o=n.ref),n)i.call(n,s)&&!c.hasOwnProperty(s)&&(a[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===a[s]&&(a[s]=n[s]);return{$$typeof:r,type:e,key:d,ref:o,props:a,_owner:l.current}}n.Fragment=a,n.jsx=d,n.jsxs=d},74848:(e,n,t)=>{e.exports=t(21020)},83227:(e,n,t)=>{t.d(n,{A:()=>i});var s=t(96540),r=t(34164);const a={tabItem:"tabItem_Ymn6"};function i({children:e,hidden:n,className:t}){return s.createElement("div",{role:"tabpanel",className:(0,r.A)(a.tabItem,t),hidden:n},e)}},13187:(e,n,t)=>{t.d(n,{A:()=>E});var s=t(96540),r=t(34164),a=t(23575),i=t(56347),l=t(91648),c=t(62072),d=t(73353),o=t(85831);function h(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,s)}return t}
2(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}function p(e){var n,t;return null!==(t=null===(n=s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)})))||void 0===n?void 0:n.filter(Boolean))&&void 0!==t?t:[]}function j(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=null!=n?n:function(e){return p(e).map((({props:{value:e,label:n,attributes:t,default:s}})=>({value:e,label:n,attributes:t,default:s})))}(t);return function(e){const n=(0,d.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m({value:e,tabValues:n}){return n.some((n=>n.value===e))}function x({queryString:e=!1,groupId:n}){const t=(0,i.W6)(),r=function({queryString:e=!1,groupId:n}){if("string"==typeof e)return e;if(!1===e)return null;if(!0===e&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return null!=n?n:null}({queryString:e,groupId:n}),a=(0,c.aZ)(r),l=(0,s.useCallback)((e=>{if(!r)return;const n=new URLSearchParams(t.location.search);n.set(r,e),t.replace(u(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},s=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),s.forEach((function(n){h(e,n,t[n])}))}return e}({},t.location),{search:n.toString()}))}),[r,t]);return[a,l]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,a=j(e),[i,c]=(0,s.useState)((()=>function({defaultValue:e,tabValues:n}){if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(e){if(!m({value:e,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${e}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return e}var t;const s=null!==(t=n.find((e=>e.default)))&&void 0!==t?t:n[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:a}))),[d,h]=x({queryString:t,groupId:r}),[u,p]=function({groupId:e}){const n=function(e){return e?`docusaurus.tab.${e}`:null}(e),[t,r]=(0,o.Dv)(n);return[t,(0,s.useCallback)((e=>{n&&r.set(e)}),[n,r])]}({groupId:r}),b=(()=>{const e=null!=d?d:u;return m({value:e,tabValues:a})?e:null})();(0,l.A)((()=>{b&&c(b)}),[b]);return{selectedValue:i,selectValue:(0,s.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);c(e),h(e),p(e)}),[h,p,a]),tabValues:a}}var g=t(52700);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},s=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),s.forEach((function(n){f(e,n,t[n])}))}return e}function T(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,s)}return t}
2(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}function w({className:e,block:n,selectedValue:t,selectValue:i,tabValues:l}){const c=[],{blockElementScrollPositionUntilNextRender:d}=(0,a.a_)(),o=e=>{const n=e.currentTarget,s=c.indexOf(n),r=l[s].value;r!==t&&(d(n),i(r))},h=e=>{let n=null;switch(e.key){case"Enter":o(e);break;case"ArrowRight":{const s=c.indexOf(e.currentTarget)+1;var t;n=null!==(t=c[s])&&void 0!==t?t:c[0];break}case"ArrowLeft":{const t=c.indexOf(e.currentTarget)-1;var s;n=null!==(s=c[t])&&void 0!==s?s:c[c.length-1];break}}null==n||n.focus()};return s.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":n},e)},l.map((({value:e,label:n,attributes:a})=>s.createElement("li",T(y({role:"tab",tabIndex:t===e?0:-1,"aria-selected":t===e,key:e,ref:e=>{c.push(e)},onKeyDown:h,onClick:o},a),{className:(0,r.A)("tabs__item",v.tabItem,null==a?void 0:a.className,{"tabs__item--active":t===e})}),null!=n?n:e))))}function N({lazy:e,children:n,selectedValue:t}){const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(e){const e=a.find((e=>e.props.value===t));return e?(0,s.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return s.createElement("div",{className:"margin-top--md"},a.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==t}))))}function A(e){const n=b(e);return s.createElement("div",{className:(0,r.A)("tabs-container",v.tabList)},s.createElement(w,y({},n,e)),s.createElement(N,y({},n,e)))}function E(e){const n=(0,g.A)();return s.createElement(A,y({key:String(n)},e),p(e.children))}},85202:(e,n,t)=>{t.d(n,{F:()=>O,W:()=>R});var s=t(34164),r=t(96540);const a="container_ygYU",i="title_KE4f",l="content_mpoX",c="error_YPD5",d="warning_Vv3u",o="info_XpSc",h="success_pFpA",u="neutral_bgLU",p="svg_xN_H";var j;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},m.apply(null,arguments)}const x=e=>{let{title:n,titleId:t,...s}=e;return r.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 18 18","aria-labelledby":t},s),n?r.createElement("title",{id:t},n):null,j||(j=r.createElement("path",{fill:"#F56C9D",fillRule:"evenodd",d:"M9 1.438A7.557 7.557 0 0 0 1.438 9 7.557 7.557 0 0 0 9 16.563 7.56 7.56 0 0 0 16.563 9 7.56 7.56 0 0 0 9 1.438M.063 9A8.93 8.93 0 0 1 9 .063 8.937 8.937 0 0 1 17.938 9 8.937 8.937 0 0 1 9 17.938 8.93 8.93 0 0 1 .063 9M9 4.188c.38 0 .688.307.688.687v4.583a.687.687 0 1 1-1.376 0V4.875c0-.38.308-.687.688-.687m-.006 7.791H9q.034 0 .067.003c.444.038.85.4.85.914 0 .27-.122.496-.272.645a.92.92 0 0 1-.645.271.92.92 0 0 1-.917-.916.914.914 0 0 1 .908-.917z",clipRule:"evenodd"})))};var b,g;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},v.apply(null,arguments)}const f=e=>{let{title:n,titleId:t,...s}=e;return r.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",width:20,height:18,fill:"none",viewBox:"0 0 20 18","aria-labelledby":t},s),n?r.createElement("title",{id:t},n):null,b||(b=r.createElement("path",{fill:"#FFA726",fillRule:"evenodd",d:"M7.656 1.614c1.04-1.809 3.649-1.809 4.689 0l7.055 12.27c1.037 1.803-.264 4.053-2.344 4.053H2.945c-2.08 0-3.381-2.25-2.345-4.052zm3.497.685a1.33 1.33 0 0 0-2.305 0L1.792 14.57a1.33 1.33 0 0 0 1.153 1.992h14.111a1.33 1.33 0 0 0 1.152-1.992z",clipRule:"evenodd"})),g||(g=r.createElement("path",{fill:"#FFA726",fillRule:"evenodd",d:"M10.001 5.883c.38 0 .688.308.688.688v3.428a.687.687 0 1 1-1.376 0V6.571c0-.38.308-.688.688-.688m-.006 6.183H10q.034 0 .068.003c.443.038.849.4.849.914 0 .27-.122.496-.271.645A.92.92 0 0 1 10 13.9a.92.92 0 0 1-.917-.916.914.914 0 0 1 .908-.917z",clipRule:"evenodd"})))};var y,T;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},w.apply(null,arguments)}const N=e=>{let{title:n,titleId:t,...s}=e;return r.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 18 18","aria-labelledby":t},s),n?r.createElement("title",{id:t},n):null,y||(y=r.createElement("path",{fill:"#00B68A",fillRule:"evenodd",d:"M5.58.743a8.937 8.937 0 1 1 6.84 16.514A8.937 8.937 0 0 1 5.58.743M9 1.438a7.562 7.562 0 1 0 0 15.124A7.562 7.562 0 0 0 9 1.437",clipRule:"evenodd"})),T||(T=r.createElement("path",{fill:"#00B68A",fillRule:"evenodd",d:"M12.664 6.31c.268.268.269.703 0 .972l-4.34 4.35a.69.69 0 0 1-1.087.151l-.018-.018L5.25 9.797a.688.688 0 1 1 .972-.972l1.481 1.481 3.987-3.995a.69.69 0 0 1 .973-.001",clipRule:"evenodd"})))};var A,E;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},_.apply(null,arguments)}const P=e=>{let{title:n,titleId:t,...s}=e;return r.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 18 18","aria-labelledby":t},s),n?r.createElement("title",{id:t},n):null,A||(A=r.createElement("path",{fill:"#29B6F6",fillRule:"evenodd",d:"M9.45 4.966a.69.69 0 0 0-.587-.33.914.914 0 0 0-.917.917.92.92 0 0 0 .917.917c.27 0 .495-.122.645-.271a.92.92 0 0 0 .271-.646.69.69 0 0 0-.33-.587M7.396 12.208c0-.38.308-.687.687-.687h2.118a.687.687 0 1 1 0 1.375H8.083a.69.69 0 0 1-.687-.688",clipRule:"evenodd"})),E||(E=r.createElement("path",{fill:"#29B6F6",fillRule:"evenodd",d:"M5.58.743a8.937 8.937 0 1 1 6.84 16.514A8.937 8.937 0 0 1 5.58.743M9 1.438a7.562 7.562 0 1 0 0 15.124A7.562 7.562 0 0 0 9 1.437m-.495 4.479a.687.687 0 0 0 1.265-.373.91.91 0 0 0-.97-.905.687.687 0 0 0-.295 1.278m-1.1 2.396c0-.38.307-.688.687-.688h1.054c.38 0 .687.308.687.688v3.895a.687.687 0 1 1-1.375 0V9h-.366a.69.69 0 0 1-.688-.687",clipRule:"evenodd"})))};var R=function(e){return e.ERROR="error",e.WARNING="warning",e.INFO="info",e.SUCCESS="success",e.NEUTRAL="neutral",e}({});const O=({type:e="info",title:n,content:t,children:j})=>{const m=(0,s.A)({[c]:"error"==e,[d]:"warning"==e,[o]:"info"==e,[h]:"success"==e,[u]:"neutral"==e}),b={error:x,warning:f,info:P,success:N}[e];return r.createElement("div",{className:(0,s.A)([a,m,"alert"])},b&&r.createElement("div",null,r.createElement(b,{className:p})),r.createElement("div",null,n&&r.createElement("div",{className:i},n),r.createElement("div",{className:l},null!=t?t:j)))}},47363:(e,n,t)=>{t.d(n,{y:()=>j,P:()=>p});var s=t(34164),r=t(96540);const a="container_do9A",i="get_oO0z",l="post_VGoy",c="put_yXVr",d="patch_mtMM",o="delete_tJlc",h="copy_R9HH";var u=t(78534);var p=function(e){return e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.GET="GET",e.PATCH="PATCH",e}({});const j=({method:e,endpoint:n})=>{const[t,p]=(0,r.useState)(!1),j=(0,s.A)({[l]:"POST"==e,[c]:"PUT"==e,[o]:"DELETE"==e,[i]:"GET"==e,[d]:"PATCH"==e});(0,r.useEffect)((()=>{t&&setTimeout((()=>{p(!1)}),1e3)}),[t]);return r.createElement("div",{className:(0,s.A)(a)},r.createElement(u.a,{className:j},e)," ",n,r.createElement("div",{className:h,onClick:e=>{p(!0),(async e=>{"clipboard"in navigator?await navigator.clipboard.writeText(e):document.execCommand("copy",!0,e)})(n)}},t?r.createElement("svg",{width:"24",height:"18",viewBox:"0 0 18 18",fill:"#00d600"},r.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})):r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,"Copy"),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.16488 3.31632C3.9398 3.31632 3.72395 3.40573 3.56479 3.56489C3.40564 3.72404 3.31623 3.9399 3.31623 4.16497V11.0726C3.31623 11.2976 3.40564 11.5135 3.56479 11.6726C3.72395 11.8318 3.9398 11.9212 4.16488 11.9212H5.01353V6.92801C5.01353 5.87072 5.87063 5.01362 6.92792 5.01362H11.9211V4.16497C11.9211 3.9399 11.8317 3.72404 11.6726 3.56489C11.5134 3.40573 11.2975 3.31632 11.0725 3.31632H4.16488ZM12.9869 5.01362V4.16497C12.9869 3.65724 12.7852 3.17031 12.4262 2.81129C12.0671 2.45227 11.5802 2.25058 11.0725 2.25058H4.16488C3.65715 2.25058 3.17022 2.45227 2.8112 2.81129C2.45218 3.17031 2.25049 3.65724 2.25049 4.16497V11.0726C2.25049 11.5803 2.45218 12.0672 2.8112 12.4262C3.17022 12.7853 3.65715 12.987 4.16488 12.987H5.01353V13.8356C5.01353 14.8929 5.87063 15.75 6.92792 15.75H13.8355C14.8928 15.75 15.7499 14.8929 15.7499 13.8356V6.92801C15.7499 5.87072 14.8928 5.01362 13.8355 5.01362H12.9869ZM12.4533 6.07936C12.4535 6.07936 12.4538 6.07936 12.454 6.07936C12.4542 6.07936 12.4544 6.07936 12.4547 6.07936H13.8355C14.3042 6.07936 14.6842 6.45931 14.6842 6.92801V13.8356C14.6842 14.3043 14.3042 14.6842 13.8355 14.6842H6.92792C6.45922 14.6842 6.07927 14.3043 6.07927 13.8356V12.4548C6.07927 12.4545 6.07927 12.4543 6.07927 12.4541C6.07927 12.4539 6.07927 12.4536 6.07927 12.4534V6.92801C6.07927 6.45931 6.45922 6.07936 6.92792 6.07936H12.4533Z",fill:"currentColor"}))))}},2368:(e,n,t)=>{t.d(n,{a:()=>l});var s=t(34164),r=t(96540);const a="primary_vpwI",i="secondary_eVSP",l=({content:e,variant:n="secondary",children:t})=>{const l=(0,s.A)({[a]:"primary"==n,[i]:"secondary"==n}
2);return r.createElement("code",{className:l},null!=e?e:t)}},78534:(e,n,t)=>{t.d(n,{a:()=>l});var s=t(96540);const r="pill_KJZw",a="pill-container_xPdd";var i=t(34164);const l=({children:e,className:n,title:t})=>s.createElement("div",{className:(0,i.A)(a)},s.createElement("span",{className:(0,i.A)(r,n),title:t},e))},28453:(e,n,t)=>{t.d(n,{R:()=>i,x:()=>l});var s=t(96540);const r={},a=s.createContext(r);function i(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.