diff --git a/main/docs/oas/myorganization/myorganization-api-oas.json b/main/docs/oas/myorganization/myorganization-api-oas.json index c5fd9f712..63bdd9ecf 100644 --- a/main/docs/oas/myorganization/myorganization-api-oas.json +++ b/main/docs/oas/myorganization/myorganization-api-oas.json @@ -116,23 +116,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Get Configuration", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.configuration.get();\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Get Configuration", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.configuration.get();\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Get Configuration", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.Configuration.Get(\n context.TODO(),\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/config/identity-providers": { @@ -184,23 +168,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Get Identity Providers Configuration", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.configuration.identityProviders.get();\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Get Identity Providers Configuration", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.configuration.identityProviders.get();\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Get Identity Providers Configuration", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.Configuration.IdentityProviders.Get(\n context.TODO(),\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/details": { @@ -247,23 +215,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Get organization details", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organizationDetails.get();\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Get organization details", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organizationDetails.get();\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Get organization details", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.OrganizationDetails.Get(\n context.TODO(),\n )\n}\n" - } - ] + "x-codeSamples": [] }, "patch": { "summary": "Modify organization details", @@ -314,23 +266,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Modify organization details", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organizationDetails.update({\n name: \"testorg\",\n displayName: \"Test Organization\",\n branding: {\n logoUrl: \"https://example.com/logo.png\",\n colors: {\n primary: \"#000000\",\n pageBackground: \"#FFFFFF\",\n },\n },\n });\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Modify organization details", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organizationDetails.update({\n name: \"testorg\",\n displayName: \"Test Organization\",\n branding: {\n logoUrl: \"https://example.com/logo.png\",\n colors: {\n primary: \"#000000\",\n pageBackground: \"#FFFFFF\",\n },\n },\n });\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Modify organization details", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n v \"./v\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n request := &v.OrgDetails{\n Name: v.String(\n \"testorg\",\n ),\n DisplayName: v.String(\n \"Test Organization\",\n ),\n Branding: &v.OrgBranding{\n LogoUrl: v.String(\n \"https://example.com/logo.png\",\n ),\n Colors: &v.OrgBrandingColors{\n Primary: \"#000000\",\n PageBackground: \"#FFFFFF\",\n },\n },\n }\n client.OrganizationDetails.Update(\n context.TODO(),\n request,\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/domains": { @@ -380,23 +316,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "List Organization Domains", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.list();\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "List Organization Domains", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.list();\n}\nmain();\n" - }, - { - "lang": "go", - "label": "List Organization Domains", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.Domains.List(\n context.TODO(),\n )\n}\n" - } - ] + "x-codeSamples": [] }, "post": { "summary": "Create a Domain for an Organization", @@ -453,23 +373,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Create a Domain for an Organization", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.create({\n domain: \"acme.com\",\n });\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Create a Domain for an Organization", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.create({\n domain: \"acme.com\",\n });\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Create a Domain for an Organization", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n organization \"./v/organization\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n request := &organization.CreateOrganizationDomainRequestContent{\n Domain: \"acme.com\",\n }\n client.Organization.Domains.Create(\n context.TODO(),\n request,\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/domains/{domain_id}": { @@ -526,23 +430,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Get Organization Domain", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.get(\"domain_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Get Organization Domain", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.get(\"domain_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Get Organization Domain", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.Domains.Get(\n context.TODO(),\n \"domain_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] }, "delete": { "summary": "Delete Domain from Organization", @@ -597,23 +485,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Delete Domain from Organization", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.delete(\"domain_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Delete Domain from Organization", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.delete(\"domain_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Delete Domain from Organization", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.Domains.Delete(\n context.TODO(),\n \"domain_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/domains/{domain_id}/verify": { @@ -671,23 +543,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Start Domain Verification", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.verify.create(\"domain_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Start Domain Verification", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.verify.create(\"domain_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Start Domain Verification", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.Domains.Verify.Create(\n context.TODO(),\n \"domain_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/domains/{domain_id}/identity-providers": { @@ -747,23 +603,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Get Identity Providers associated with an Organization Domain", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.identityProviders.get(\"domain_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Get Identity Providers associated with an Organization Domain", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.domains.identityProviders.get(\"domain_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Get Identity Providers associated with an Organization Domain", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.Domains.IdentityProviders.Get(\n context.TODO(),\n \"domain_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/identity-providers": { @@ -813,23 +653,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "List Identity Providers", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.list();\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "List Identity Providers", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.list();\n}\nmain();\n" - }, - { - "lang": "go", - "label": "List Identity Providers", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.IdentityProviders.List(\n context.TODO(),\n )\n}\n" - } - ] + "x-codeSamples": [] }, "post": { "summary": "Create Identity Provider", @@ -886,23 +710,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Create Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.create({\n name: \"oidcIdp\",\n strategy: \"oidc\",\n domains: [\n \"mydomain.com\",\n ],\n displayName: \"OIDC IdP\",\n showAsButton: true,\n assignMembershipOnLogin: false,\n isEnabled: true,\n options: {},\n });\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Create Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.create({\n name: \"oidcIdp\",\n strategy: \"oidc\",\n domains: [\n \"mydomain.com\",\n ],\n displayName: \"OIDC IdP\",\n showAsButton: true,\n assignMembershipOnLogin: false,\n isEnabled: true,\n options: {},\n });\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Create Identity Provider", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n v \"./v\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n request := &v.IdpKnownRequest{\n IdpAdfsRequest: &v.IdpAdfsRequest{\n Name: \"oidcIdp\",\n Domains: []string{\n \"mydomain.com\",\n },\n DisplayName: v.String(\n \"OIDC IdP\",\n ),\n ShowAsButton: v.Bool(\n true,\n ),\n AssignMembershipOnLogin: v.Bool(\n false,\n ),\n IsEnabled: v.Bool(\n true,\n ),\n Options: &v.IdpAdfsOptionsRequest{\n IdpAdfsOptionsRequestAdfsServer: &v.IdpAdfsOptionsRequestAdfsServer{},\n },\n },\n }\n client.Organization.IdentityProviders.Create(\n context.TODO(),\n request,\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/identity-providers/{idp_id}": { @@ -959,23 +767,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Get Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.get(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Get Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.get(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Get Identity Provider", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.IdentityProviders.Get(\n context.TODO(),\n \"idp_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] }, "patch": { "summary": "Update Identity Provider", @@ -1033,23 +825,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Update Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.update(\"idp_id\", {\n displayName: \"OIDC IdP\",\n showAsButton: true,\n assignMembershipOnLogin: false,\n isEnabled: true,\n options: {},\n });\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Update Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.update(\"idp_id\", {\n displayName: \"OIDC IdP\",\n showAsButton: true,\n assignMembershipOnLogin: false,\n isEnabled: true,\n options: {},\n });\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Update Identity Provider", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n v \"./v\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n request := &v.IdpUpdateKnownRequest{\n IdpAdfsUpdateRequest: &v.IdpAdfsUpdateRequest{\n DisplayName: v.String(\n \"OIDC IdP\",\n ),\n ShowAsButton: v.Bool(\n true,\n ),\n AssignMembershipOnLogin: v.Bool(\n false,\n ),\n IsEnabled: v.Bool(\n true,\n ),\n Options: &v.IdpAdfsOptionsRequest{\n IdpAdfsOptionsRequestAdfsServer: &v.IdpAdfsOptionsRequestAdfsServer{},\n },\n },\n }\n client.Organization.IdentityProviders.Update(\n context.TODO(),\n \"idp_id\",\n request,\n )\n}\n" - } - ] + "x-codeSamples": [] }, "delete": { "summary": "Delete Identity Provider", @@ -1104,23 +880,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Delete Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.delete(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Delete Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.delete(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Delete Identity Provider", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.IdentityProviders.Delete(\n context.TODO(),\n \"idp_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/identity-providers/{idp_id}/update-attributes": { @@ -1180,23 +940,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Refresh Identity Provider Attributes Mapping", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.updateAttributes(\"idp_id\", {\n \"key\": \"value\",\n });\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Refresh Identity Provider Attributes Mapping", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.updateAttributes(\"idp_id\", {\n \"key\": \"value\",\n });\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Refresh Identity Provider Attributes Mapping", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n request := map[string]any{\n \"key\": \"value\",\n }\n client.Organization.IdentityProviders.UpdateAttributes(\n context.TODO(),\n \"idp_id\",\n request,\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/identity-providers/{idp_id}/detach": { @@ -1253,23 +997,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Detach Identity Provider from Organization", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.detach(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Detach Identity Provider from Organization", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.detach(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Detach Identity Provider from Organization", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.IdentityProviders.Detach(\n context.TODO(),\n \"idp_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/identity-providers/{idp_id}/domains": { @@ -1333,23 +1061,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Associate Domain with Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.domains.create(\"idp_id\", {\n domain: \"my-domain.com\",\n });\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Associate Domain with Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.domains.create(\"idp_id\", {\n domain: \"my-domain.com\",\n });\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Associate Domain with Identity Provider", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n identityproviders \"./v/organization/identityproviders\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n request := &identityproviders.CreateIdpDomainRequestContent{\n Domain: \"my-domain.com\",\n }\n client.Organization.IdentityProviders.Domains.Create(\n context.TODO(),\n \"idp_id\",\n request,\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/identity-providers/{idp_id}/domains/{domain}": { @@ -1410,23 +1122,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Remove Domain from Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.domains.delete(\"idp_id\", \"domain\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Remove Domain from Identity Provider", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.domains.delete(\"idp_id\", \"domain\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Remove Domain from Identity Provider", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.IdentityProviders.Domains.Delete(\n context.TODO(),\n \"idp_id\",\n \"domain\",\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/identity-providers/{idp_id}/provisioning": { @@ -1484,23 +1180,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Get Provisioning Configuration", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.get(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Get Provisioning Configuration", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.get(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Get Provisioning Configuration", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.IdentityProviders.Provisioning.Get(\n context.TODO(),\n \"idp_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] }, "post": { "summary": "Create Provisioning Configuration", @@ -1556,23 +1236,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Create Provisioning Configuration", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.create(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Create Provisioning Configuration", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.create(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Create Provisioning Configuration", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.IdentityProviders.Provisioning.Create(\n context.TODO(),\n \"idp_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] }, "delete": { "summary": "Delete Provisioning Configuration", @@ -1628,23 +1292,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Delete Provisioning Configuration", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.delete(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Delete Provisioning Configuration", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.delete(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Delete Provisioning Configuration", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.IdentityProviders.Provisioning.Delete(\n context.TODO(),\n \"idp_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/identity-providers/{idp_id}/provisioning/update-attributes": { @@ -1705,23 +1353,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Refresh Provisioning Configuration Attributes Mapping", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.updateAttributes(\"idp_id\", {\n \"key\": \"value\",\n });\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Refresh Provisioning Configuration Attributes Mapping", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.updateAttributes(\"idp_id\", {\n \"key\": \"value\",\n });\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Refresh Provisioning Configuration Attributes Mapping", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n request := map[string]any{\n \"key\": \"value\",\n }\n client.Organization.IdentityProviders.Provisioning.UpdateAttributes(\n context.TODO(),\n \"idp_id\",\n request,\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/identity-providers/{idp_id}/provisioning/scim-tokens": { @@ -1780,23 +1412,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "List Provisioning SCIM Tokens", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.scimTokens.list(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "List Provisioning SCIM Tokens", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.scimTokens.list(\"idp_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "List Provisioning SCIM Tokens", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.IdentityProviders.Provisioning.ScimTokens.List(\n context.TODO(),\n \"idp_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] }, "post": { "summary": "Create Provisioning SCIM Token", @@ -1856,23 +1472,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Create Provisioning SCIM Token", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.scimTokens.create(\"idp_id\", {\n tokenLifetime: 86400,\n });\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Create Provisioning SCIM Token", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.scimTokens.create(\"idp_id\", {\n tokenLifetime: 86400,\n });\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Create Provisioning SCIM Token", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n provisioning \"./v/organization/identityproviders/provisioning\"\n v \"./v\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n request := &provisioning.CreateIdpProvisioningScimTokenRequestContent{\n TokenLifetime: v.Int(\n 86400,\n ),\n }\n client.Organization.IdentityProviders.Provisioning.ScimTokens.Create(\n context.TODO(),\n \"idp_id\",\n request,\n )\n}\n" - } - ] + "x-codeSamples": [] } }, "/identity-providers/{idp_id}/provisioning/scim-tokens/{idp_scim_token_id}": { @@ -1934,23 +1534,7 @@ "$ref": "#/components/responses/ClientErrorTooManyRequestsResponse" } }, - "x-codeSamples": [ - { - "lang": "typescript", - "label": "Revoke Provisioning SCIM Token", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.scimTokens.delete(\"idp_id\", \"idp_scim_token_id\");\n}\nmain();\n" - }, - { - "lang": "javascript", - "label": "Revoke Provisioning SCIM Token", - "source": "import { MyOrganizationClient } from \"@auth0/myorganization-js\";\n\nasync function main() {\n const client = new MyOrganizationClient({\n token: \"\",\n });\n await client.organization.identityProviders.provisioning.scimTokens.delete(\"idp_id\", \"idp_scim_token_id\");\n}\nmain();\n" - }, - { - "lang": "go", - "label": "Revoke Provisioning SCIM Token", - "source": "package example\n\nimport (\n client \"./v/client\"\n option \"./v/option\"\n context \"context\"\n)\n\nfunc do() {\n client := client.NewClient(\n option.WithToken(\n \"\",\n ),\n )\n client.Organization.IdentityProviders.Provisioning.ScimTokens.Delete(\n context.TODO(),\n \"idp_id\",\n \"idp_scim_token_id\",\n )\n}\n" - } - ] + "x-codeSamples": [] } } },