{
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/connections",
- headers: {
- Accept: data.accept,
- },
query: {
page_size: data.pageSize,
starting_after: data.startingAfter,
@@ -1380,7 +1238,6 @@ export class Connections {
*
* @param data The data for the request.
* @param data.requestBody Connection details.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns create_connection_response Connection successfully created
* @throws ApiError
*/
@@ -1390,9 +1247,6 @@ export class Connections {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/connections",
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -1413,7 +1267,6 @@ export class Connections {
*
* @param data The data for the request.
* @param data.connectionId The unique identifier for the connection.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns connection Connection successfully retrieved.
* @throws ApiError
*/
@@ -1426,9 +1279,6 @@ export class Connections {
path: {
connection_id: data.connectionId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -1448,7 +1298,6 @@ export class Connections {
* @param data The data for the request.
* @param data.connectionId The unique identifier for the connection.
* @param data.requestBody The fields of the connection to update.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Connection successfully updated.
* @throws ApiError
*/
@@ -1461,9 +1310,6 @@ export class Connections {
path: {
connection_id: data.connectionId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -1484,7 +1330,6 @@ export class Connections {
*
* @param data The data for the request.
* @param data.connectionId The identifier for the connection.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Connection deleted.
* @throws ApiError
*/
@@ -1497,9 +1342,6 @@ export class Connections {
path: {
connection_id: data.connectionId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -1510,6 +1352,29 @@ export class Connections {
}
export class Environments {
+ /**
+ * Get environment
+ * Get's the current environment.
+ *
+ *
+ * read:environments
+ *
+ *
+ * @returns get_environment_response Environment successfully retrieved.
+ * @throws ApiError
+ */
+ public static getEnvironment(): CancelablePromise {
+ return __request(OpenAPI, {
+ method: "GET",
+ url: "/api/v1/environment",
+ errors: {
+ 400: "Invalid request.",
+ 403: "Unauthorized - invalid credentials.",
+ 429: "Too many requests. Request was throttled.",
+ },
+ });
+ }
+
/**
* Delete Environment Feature Flag Overrides
* Delete all environment feature flag overrides.
@@ -1518,20 +1383,13 @@ export class Environments {
* delete:environment_feature_flags
*
*
- * @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Feature flag overrides deleted successfully.
* @throws ApiError
*/
- public static deleteEnvironementFeatureFlagOverrides(
- data: DeleteEnvironementFeatureFlagOverridesData,
- ): CancelablePromise {
+ public static deleteEnvironementFeatureFlagOverrides(): CancelablePromise {
return __request(OpenAPI, {
method: "DELETE",
url: "/api/v1/environment/feature_flags",
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -1548,20 +1406,13 @@ export class Environments {
* read:environment_feature_flags
*
*
- * @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_environment_feature_flags_response Feature flags retrieved successfully.
* @throws ApiError
*/
- public static getEnvironementFeatureFlags(
- data: GetEnvironementFeatureFlagsData,
- ): CancelablePromise {
+ public static getEnvironementFeatureFlags(): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/environment/feature_flags",
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -1580,7 +1431,6 @@ export class Environments {
*
* @param data The data for the request.
* @param data.featureFlagKey The identifier for the feature flag.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Feature flag deleted successfully.
* @throws ApiError
*/
@@ -1593,9 +1443,6 @@ export class Environments {
path: {
feature_flag_key: data.featureFlagKey,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -1615,7 +1462,6 @@ export class Environments {
* @param data The data for the request.
* @param data.featureFlagKey The identifier for the feature flag.
* @param data.requestBody Flag details.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Feature flag override successful
* @throws ApiError
*/
@@ -1628,9 +1474,6 @@ export class Environments {
path: {
feature_flag_key: data.featureFlagKey,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -1651,20 +1494,13 @@ export class EnvironmentVariables {
* read:environment_variables
*
*
- * @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_environment_variables_response A successful response with a list of environment variables or an empty list.
* @throws ApiError
*/
- public static getEnvironmentVariables(
- data: GetEnvironmentVariablesData,
- ): CancelablePromise {
+ public static getEnvironmentVariables(): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/environment_variables",
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Unauthorized - invalid credentials.",
@@ -1683,7 +1519,6 @@ export class EnvironmentVariables {
*
* @param data The data for the request.
* @param data.requestBody The environment variable details.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns create_environment_variable_response Environment variable successfully created.
* @throws ApiError
*/
@@ -1693,9 +1528,6 @@ export class EnvironmentVariables {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/environment_variables",
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -1716,7 +1548,6 @@ export class EnvironmentVariables {
*
* @param data The data for the request.
* @param data.variableId The environment variable's ID.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_environment_variable_response Environment variable successfully retrieved.
* @throws ApiError
*/
@@ -1729,9 +1560,6 @@ export class EnvironmentVariables {
path: {
variable_id: data.variableId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Unauthorized - invalid credentials.",
@@ -1751,7 +1579,6 @@ export class EnvironmentVariables {
* @param data The data for the request.
* @param data.requestBody The new details for the environment variable
* @param data.variableId The environment variable's ID.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns update_environment_variable_response Environment variable successfully updated.
* @throws ApiError
*/
@@ -1764,9 +1591,6 @@ export class EnvironmentVariables {
path: {
variable_id: data.variableId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -1787,7 +1611,6 @@ export class EnvironmentVariables {
*
* @param data The data for the request.
* @param data.variableId The environment variable's ID.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns delete_environment_variable_response Environment variable successfully deleted.
* @throws ApiError
*/
@@ -1800,9 +1623,6 @@ export class EnvironmentVariables {
path: {
variable_id: data.variableId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Unauthorized - invalid credentials.",
@@ -1823,7 +1643,6 @@ export class FeatureFlags {
*
* @param data The data for the request.
* @param data.requestBody Flag details.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Feature flag successfully created
* @throws ApiError
*/
@@ -1833,9 +1652,6 @@ export class FeatureFlags {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/feature_flags",
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -1856,7 +1672,6 @@ export class FeatureFlags {
*
* @param data The data for the request.
* @param data.featureFlagKey The identifier for the feature flag.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Feature flag successfully updated.
* @throws ApiError
*/
@@ -1869,9 +1684,6 @@ export class FeatureFlags {
path: {
feature_flag_key: data.featureFlagKey,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -1895,7 +1707,6 @@ export class FeatureFlags {
* @param data.type The variable type
* @param data.allowOverrideLevel Allow the flag to be overridden at a different level.
* @param data.defaultValue Default value for the flag used by environments and organizations.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Feature flag successfully updated.
* @throws ApiError
*/
@@ -1908,9 +1719,6 @@ export class FeatureFlags {
path: {
feature_flag_key: data.featureFlagKey,
},
- headers: {
- Accept: data.accept,
- },
query: {
name: data.name,
description: data.description,
@@ -1938,7 +1746,6 @@ export class Identities {
*
* @param data The data for the request.
* @param data.identityId The unique identifier for the identity.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns identity Identity successfully retrieved.
* @throws ApiError
*/
@@ -1951,9 +1758,6 @@ export class Identities {
path: {
identity_id: data.identityId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -1973,7 +1777,6 @@ export class Identities {
* @param data The data for the request.
* @param data.identityId The unique identifier for the identity.
* @param data.requestBody The fields of the identity to update.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Identity successfully updated.
* @throws ApiError
*/
@@ -1986,9 +1789,6 @@ export class Identities {
path: {
identity_id: data.identityId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -2009,7 +1809,6 @@ export class Identities {
*
* @param data The data for the request.
* @param data.identityId The unique identifier for the identity.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Identity successfully deleted.
* @throws ApiError
*/
@@ -2022,9 +1821,6 @@ export class Identities {
path: {
identity_id: data.identityId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -2044,20 +1840,16 @@ export class Organizations {
*
*
* @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.code The organization's code.
* @returns get_organization_response Organization successfully retrieved.
* @throws ApiError
*/
public static getOrganization(
- data: GetOrganizationData,
+ data: GetOrganizationData = {},
): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/organization",
- headers: {
- Accept: data.accept,
- },
query: {
code: data.code,
},
@@ -2079,7 +1871,6 @@ export class Organizations {
*
* @param data The data for the request.
* @param data.requestBody Organization details.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns create_organization_response Organization successfully created.
* @throws ApiError
*/
@@ -2089,9 +1880,6 @@ export class Organizations {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/organization",
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -2111,7 +1899,6 @@ export class Organizations {
*
*
* @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.sort Field and order to sort the result by.
* @param data.pageSize Number of results per page. Defaults to 10 if parameter not sent.
* @param data.nextToken A string to get the next page of results if there are more results.
@@ -2119,14 +1906,11 @@ export class Organizations {
* @throws ApiError
*/
public static getOrganizations(
- data: GetOrganizationsData,
+ data: GetOrganizationsData = {},
): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/organizations",
- headers: {
- Accept: data.accept,
- },
query: {
sort: data.sort,
page_size: data.pageSize,
@@ -2150,7 +1934,6 @@ export class Organizations {
*
* @param data The data for the request.
* @param data.orgCode The identifier for the organization.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.requestBody Organization details.
* @returns success_response Organization successfully updated.
* @throws ApiError
@@ -2164,9 +1947,6 @@ export class Organizations {
path: {
org_code: data.orgCode,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -2187,7 +1967,6 @@ export class Organizations {
*
* @param data The data for the request.
* @param data.orgCode The identifier for the organization.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Organization successfully deleted.
* @throws ApiError
*/
@@ -2200,9 +1979,6 @@ export class Organizations {
path: {
org_code: data.orgCode,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Unauthorized - invalid credentials.",
@@ -2222,7 +1998,6 @@ export class Organizations {
*
* @param data The data for the request.
* @param data.orgCode The organization's code.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.sort Field and order to sort the result by.
* @param data.pageSize Number of results per page. Defaults to 10 if parameter not sent.
* @param data.nextToken A string to get the next page of results if there are more results.
@@ -2240,9 +2015,6 @@ export class Organizations {
path: {
org_code: data.orgCode,
},
- headers: {
- Accept: data.accept,
- },
query: {
sort: data.sort,
page_size: data.pageSize,
@@ -2268,7 +2040,6 @@ export class Organizations {
*
* @param data The data for the request.
* @param data.orgCode The organization's code.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.requestBody
* @returns add_organization_users_response Users successfully added.
* @returns void No users added.
@@ -2283,9 +2054,6 @@ export class Organizations {
path: {
org_code: data.orgCode,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -2306,7 +2074,6 @@ export class Organizations {
*
* @param data The data for the request.
* @param data.orgCode The organization's code.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.requestBody
* @returns update_organization_users_response Users successfully removed.
* @throws ApiError
@@ -2320,9 +2087,6 @@ export class Organizations {
path: {
org_code: data.orgCode,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -2344,7 +2108,6 @@ export class Organizations {
* @param data The data for the request.
* @param data.orgCode The organization's code.
* @param data.userId The user's id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_organizations_user_roles_response A successful response with a list of user roles.
* @throws ApiError
*/
@@ -2358,9 +2121,6 @@ export class Organizations {
org_code: data.orgCode,
user_id: data.userId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
403: "Invalid credentials.",
429: "Request was throttled.",
@@ -2380,7 +2140,6 @@ export class Organizations {
* @param data.orgCode The organization's code.
* @param data.userId The user's id.
* @param data.requestBody Role details.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Role successfully added.
* @throws ApiError
*/
@@ -2394,9 +2153,6 @@ export class Organizations {
org_code: data.orgCode,
user_id: data.userId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -2418,7 +2174,6 @@ export class Organizations {
* @param data.orgCode The organization's code.
* @param data.userId The user's id.
* @param data.roleId The role id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response User successfully removed.
* @throws ApiError
*/
@@ -2433,9 +2188,6 @@ export class Organizations {
user_id: data.userId,
role_id: data.roleId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Error creating user.",
403: "Invalid credentials.",
@@ -2455,7 +2207,6 @@ export class Organizations {
* @param data The data for the request.
* @param data.orgCode The organization's code.
* @param data.userId The user's id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.expand Specify additional data to retrieve. Use "roles".
* @returns get_organizations_user_permissions_response A successful response with a list of user permissions.
* @throws ApiError
@@ -2470,9 +2221,6 @@ export class Organizations {
org_code: data.orgCode,
user_id: data.userId,
},
- headers: {
- Accept: data.accept,
- },
query: {
expand: data.expand,
},
@@ -2495,7 +2243,6 @@ export class Organizations {
* @param data.orgCode The organization's code.
* @param data.userId The user's id.
* @param data.requestBody Permission details.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response User permission successfully updated.
* @throws ApiError
*/
@@ -2509,9 +2256,6 @@ export class Organizations {
org_code: data.orgCode,
user_id: data.userId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -2533,7 +2277,6 @@ export class Organizations {
* @param data.orgCode The organization's code.
* @param data.userId The user's id.
* @param data.permissionId The permission id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response User successfully removed.
* @throws ApiError
*/
@@ -2548,9 +2291,6 @@ export class Organizations {
user_id: data.userId,
permission_id: data.permissionId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Error creating user.",
403: "Invalid credentials.",
@@ -2570,7 +2310,6 @@ export class Organizations {
* @param data The data for the request.
* @param data.orgCode The organization's code.
* @param data.userId The user's id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response User successfully removed from organization
* @throws ApiError
*/
@@ -2584,9 +2323,6 @@ export class Organizations {
org_code: data.orgCode,
user_id: data.userId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Error removing user",
403: "Invalid credentials.",
@@ -2605,7 +2341,6 @@ export class Organizations {
*
* @param data The data for the request.
* @param data.orgCode The identifier for the organization.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_organization_feature_flags_response Feature flag overrides successfully returned.
* @throws ApiError
*/
@@ -2618,9 +2353,6 @@ export class Organizations {
path: {
org_code: data.orgCode,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -2639,7 +2371,6 @@ export class Organizations {
*
* @param data The data for the request.
* @param data.orgCode The identifier for the organization.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Feature flag overrides successfully deleted.
* @throws ApiError
*/
@@ -2652,9 +2383,6 @@ export class Organizations {
path: {
org_code: data.orgCode,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -2674,7 +2402,6 @@ export class Organizations {
* @param data The data for the request.
* @param data.orgCode The identifier for the organization.
* @param data.featureFlagKey The identifier for the feature flag.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Feature flag override successfully deleted.
* @throws ApiError
*/
@@ -2688,9 +2415,6 @@ export class Organizations {
org_code: data.orgCode,
feature_flag_key: data.featureFlagKey,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -2711,7 +2435,6 @@ export class Organizations {
* @param data.orgCode The identifier for the organization
* @param data.featureFlagKey The identifier for the feature flag
* @param data.value Override value
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Feature flag override successfully updated.
* @throws ApiError
*/
@@ -2725,9 +2448,6 @@ export class Organizations {
org_code: data.orgCode,
feature_flag_key: data.featureFlagKey,
},
- headers: {
- Accept: data.accept,
- },
query: {
value: data.value,
},
@@ -2751,7 +2471,6 @@ export class Organizations {
* @param data.orgCode The identifier for the organization
* @param data.propertyKey The identifier for the property
* @param data.value The new property value
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Property successfully updated.
* @throws ApiError
*/
@@ -2765,9 +2484,6 @@ export class Organizations {
org_code: data.orgCode,
property_key: data.propertyKey,
},
- headers: {
- Accept: data.accept,
- },
query: {
value: data.value,
},
@@ -2789,7 +2505,6 @@ export class Organizations {
*
* @param data The data for the request.
* @param data.orgCode The organization's code.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_property_values_response Properties successfully retrieved.
* @throws ApiError
*/
@@ -2802,9 +2517,6 @@ export class Organizations {
path: {
org_code: data.orgCode,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Bad request.",
403: "Invalid credentials.",
@@ -2824,7 +2536,6 @@ export class Organizations {
* @param data The data for the request.
* @param data.orgCode The identifier for the organization
* @param data.requestBody Properties to update.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Properties successfully updated.
* @throws ApiError
*/
@@ -2837,9 +2548,6 @@ export class Organizations {
path: {
org_code: data.orgCode,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -2860,7 +2568,6 @@ export class Organizations {
*
* @param data The data for the request.
* @param data.orgCode The organization's code.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Handle successfully deleted.
* @throws ApiError
*/
@@ -2873,9 +2580,6 @@ export class Organizations {
path: {
org_code: data.orgCode,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Bad request.",
403: "Invalid credentials.",
@@ -2895,7 +2599,6 @@ export class Permissions {
*
*
* @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.sort Field and order to sort the result by.
* @param data.pageSize Number of results per page. Defaults to 10 if parameter not sent.
* @param data.nextToken A string to get the next page of results if there are more results.
@@ -2903,14 +2606,11 @@ export class Permissions {
* @throws ApiError
*/
public static getPermissions(
- data: GetPermissionsData,
+ data: GetPermissionsData = {},
): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/permissions",
- headers: {
- Accept: data.accept,
- },
query: {
sort: data.sort,
page_size: data.pageSize,
@@ -2932,20 +2632,16 @@ export class Permissions {
*
*
* @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.requestBody Permission details.
* @returns success_response Permission successfully created
* @throws ApiError
*/
public static createPermission(
- data: CreatePermissionData,
+ data: CreatePermissionData = {},
): CancelablePromise {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/permissions",
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -2966,7 +2662,6 @@ export class Permissions {
*
* @param data The data for the request.
* @param data.permissionId The identifier for the permission.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.requestBody Permission details.
* @returns success_response Permission successfully updated
* @throws ApiError
@@ -2980,9 +2675,6 @@ export class Permissions {
path: {
permission_id: data.permissionId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -3003,7 +2695,6 @@ export class Permissions {
*
* @param data The data for the request.
* @param data.permissionId The identifier for the permission.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response permission successfully updated.
* @throws ApiError
*/
@@ -3016,9 +2707,6 @@ export class Permissions {
path: {
permission_id: data.permissionId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -3038,7 +2726,6 @@ export class Properties {
*
*
* @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.pageSize Number of results per page. Defaults to 10 if parameter not sent.
* @param data.startingAfter The ID of the property to start after.
* @param data.endingBefore The ID of the property to end before.
@@ -3047,14 +2734,11 @@ export class Properties {
* @throws ApiError
*/
public static getProperties(
- data: GetPropertiesData,
+ data: GetPropertiesData = {},
): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/properties",
- headers: {
- Accept: data.accept,
- },
query: {
page_size: data.pageSize,
starting_after: data.startingAfter,
@@ -3079,7 +2763,6 @@ export class Properties {
*
* @param data The data for the request.
* @param data.requestBody Property details.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns create_property_response Property successfully created
* @throws ApiError
*/
@@ -3089,9 +2772,6 @@ export class Properties {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/properties",
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -3113,7 +2793,6 @@ export class Properties {
* @param data The data for the request.
* @param data.propertyId The unique identifier for the property.
* @param data.requestBody The fields of the property to update.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Property successfully updated.
* @throws ApiError
*/
@@ -3126,9 +2805,6 @@ export class Properties {
path: {
property_id: data.propertyId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -3149,7 +2825,6 @@ export class Properties {
*
* @param data The data for the request.
* @param data.propertyId The unique identifier for the property.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Property successfully deleted.
* @throws ApiError
*/
@@ -3162,9 +2837,6 @@ export class Properties {
path: {
property_id: data.propertyId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -3184,7 +2856,6 @@ export class PropertyCategories {
*
*
* @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.pageSize Number of results per page. Defaults to 10 if parameter not sent.
* @param data.startingAfter The ID of the category to start after.
* @param data.endingBefore The ID of the category to end before.
@@ -3193,14 +2864,11 @@ export class PropertyCategories {
* @throws ApiError
*/
public static getCategories(
- data: GetCategoriesData,
+ data: GetCategoriesData = {},
): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/property_categories",
- headers: {
- Accept: data.accept,
- },
query: {
page_size: data.pageSize,
starting_after: data.startingAfter,
@@ -3225,7 +2893,6 @@ export class PropertyCategories {
*
* @param data The data for the request.
* @param data.requestBody Category details.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns create_category_response Category successfully created
* @throws ApiError
*/
@@ -3235,9 +2902,6 @@ export class PropertyCategories {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/property_categories",
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -3259,7 +2923,6 @@ export class PropertyCategories {
* @param data The data for the request.
* @param data.categoryId The unique identifier for the category.
* @param data.requestBody The fields of the category to update.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response category successfully updated.
* @throws ApiError
*/
@@ -3272,9 +2935,6 @@ export class PropertyCategories {
path: {
category_id: data.categoryId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -3296,7 +2956,6 @@ export class Roles {
*
*
* @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.sort Field and order to sort the result by.
* @param data.pageSize Number of results per page. Defaults to 10 if parameter not sent.
* @param data.nextToken A string to get the next page of results if there are more results.
@@ -3304,14 +2963,11 @@ export class Roles {
* @throws ApiError
*/
public static getRoles(
- data: GetRolesData,
+ data: GetRolesData = {},
): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/roles",
- headers: {
- Accept: data.accept,
- },
query: {
sort: data.sort,
page_size: data.pageSize,
@@ -3334,20 +2990,16 @@ export class Roles {
*
*
* @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.requestBody Role details.
* @returns create_roles_response Role successfully created
* @throws ApiError
*/
public static createRole(
- data: CreateRoleData,
+ data: CreateRoleData = {},
): CancelablePromise {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/roles",
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -3368,7 +3020,6 @@ export class Roles {
*
* @param data The data for the request.
* @param data.roleId The identifier for the role.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_role_response Role successfully retrieved.
* @throws ApiError
*/
@@ -3379,9 +3030,6 @@ export class Roles {
path: {
role_id: data.roleId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Unauthorized - invalid credentials.",
@@ -3400,7 +3048,6 @@ export class Roles {
*
* @param data The data for the request.
* @param data.roleId The identifier for the role.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.requestBody Role details.
* @returns success_response Role successfully updated
* @throws ApiError
@@ -3414,9 +3061,6 @@ export class Roles {
path: {
role_id: data.roleId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -3437,7 +3081,6 @@ export class Roles {
*
* @param data The data for the request.
* @param data.roleId The identifier for the role.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Role successfully deleted.
* @throws ApiError
*/
@@ -3450,9 +3093,6 @@ export class Roles {
path: {
role_id: data.roleId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Unauthorized - invalid credentials.",
@@ -3471,7 +3111,6 @@ export class Roles {
*
* @param data The data for the request.
* @param data.roleId The role's public id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.sort Field and order to sort the result by.
* @param data.pageSize Number of results per page. Defaults to 10 if parameter not sent.
* @param data.nextToken A string to get the next page of results if there are more results.
@@ -3487,9 +3126,6 @@ export class Roles {
path: {
role_id: data.roleId,
},
- headers: {
- Accept: data.accept,
- },
query: {
sort: data.sort,
page_size: data.pageSize,
@@ -3514,7 +3150,6 @@ export class Roles {
* @param data The data for the request.
* @param data.roleId The identifier for the role.
* @param data.requestBody
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns update_role_permissions_response Permissions successfully updated.
* @throws ApiError
*/
@@ -3527,9 +3162,6 @@ export class Roles {
path: {
role_id: data.roleId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -3550,7 +3182,6 @@ export class Roles {
* @param data The data for the request.
* @param data.roleId The role's public id.
* @param data.permissionId The permission's public id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Permission successfully removed from role
* @throws ApiError
*/
@@ -3564,9 +3195,6 @@ export class Roles {
role_id: data.roleId,
permission_id: data.permissionId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Error removing user",
403: "Invalid credentials.",
@@ -3588,7 +3216,6 @@ export class Subscribers {
*
*
* @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.sort Field and order to sort the result by.
* @param data.pageSize Number of results per page. Defaults to 10 if parameter not sent.
* @param data.nextToken A string to get the next page of results if there are more results.
@@ -3596,14 +3223,11 @@ export class Subscribers {
* @throws ApiError
*/
public static getSubscribers(
- data: GetSubscribersData,
+ data: GetSubscribersData = {},
): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/subscribers",
- headers: {
- Accept: data.accept,
- },
query: {
sort: data.sort,
page_size: data.pageSize,
@@ -3628,7 +3252,6 @@ export class Subscribers {
* @param data.firstName Subscriber's first name.
* @param data.lastName Subscriber's last name.
* @param data.email The email address of the subscriber.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns create_subscriber_success_response Subscriber successfully created
* @throws ApiError
*/
@@ -3638,9 +3261,6 @@ export class Subscribers {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/subscribers",
- headers: {
- Accept: data.accept,
- },
query: {
first_name: data.firstName,
last_name: data.lastName,
@@ -3664,7 +3284,6 @@ export class Subscribers {
*
* @param data The data for the request.
* @param data.subscriberId The subscriber's id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_subscriber_response Subscriber successfully retrieved.
* @throws ApiError
*/
@@ -3677,9 +3296,6 @@ export class Subscribers {
path: {
subscriber_id: data.subscriberId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Bad request.",
403: "Invalid credentials.",
@@ -3699,7 +3315,6 @@ export class Users {
*
*
* @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.pageSize Number of results per page. Defaults to 10 if parameter not sent.
* @param data.userId ID of the user to filter by.
* @param data.nextToken A string to get the next page of results if there are more results.
@@ -3711,14 +3326,11 @@ export class Users {
* @throws ApiError
*/
public static getUsers(
- data: GetUsersData,
+ data: GetUsersData = {},
): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/users",
- headers: {
- Accept: data.accept,
- },
query: {
page_size: data.pageSize,
user_id: data.userId,
@@ -3746,7 +3358,6 @@ export class Users {
*
* @param data The data for the request.
* @param data.userId The id of the user whose claims needs to be updated.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Claims successfully refreshed.
* @throws ApiError
*/
@@ -3759,9 +3370,6 @@ export class Users {
path: {
user_id: data.userId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Bad request.",
403: "Bad request.",
@@ -3780,7 +3388,6 @@ export class Users {
*
* @param data The data for the request.
* @param data.id The user's id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.expand Specify additional data to retrieve. Use "organizations" and/or "identities".
* @returns user User successfully updated.
* @throws ApiError
@@ -3791,9 +3398,6 @@ export class Users {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/user",
- headers: {
- Accept: data.accept,
- },
query: {
id: data.id,
expand: data.expand,
@@ -3816,20 +3420,16 @@ export class Users {
*
*
* @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.requestBody The details of the user to create.
* @returns create_user_response User successfully created.
* @throws ApiError
*/
public static createUser(
- data: CreateUserData,
+ data: CreateUserData = {},
): CancelablePromise {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/user",
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -3851,7 +3451,6 @@ export class Users {
* @param data The data for the request.
* @param data.id The user's id.
* @param data.requestBody The user to update.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns update_user_response User successfully updated.
* @throws ApiError
*/
@@ -3861,9 +3460,6 @@ export class Users {
return __request(OpenAPI, {
method: "PATCH",
url: "/api/v1/user",
- headers: {
- Accept: data.accept,
- },
query: {
id: data.id,
},
@@ -3887,7 +3483,6 @@ export class Users {
*
* @param data The data for the request.
* @param data.id The user's id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.isDeleteProfile Delete all data and remove the user's profile from all of Kinde, including the subscriber list
* @returns success_response User successfully deleted.
* @throws ApiError
@@ -3898,9 +3493,6 @@ export class Users {
return __request(OpenAPI, {
method: "DELETE",
url: "/api/v1/user",
- headers: {
- Accept: data.accept,
- },
query: {
id: data.id,
is_delete_profile: data.isDeleteProfile,
@@ -3925,7 +3517,6 @@ export class Users {
* @param data.userId The identifier for the user
* @param data.featureFlagKey The identifier for the feature flag
* @param data.value Override value
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Feature flag override successfully updated.
* @throws ApiError
*/
@@ -3939,9 +3530,6 @@ export class Users {
user_id: data.userId,
feature_flag_key: data.featureFlagKey,
},
- headers: {
- Accept: data.accept,
- },
query: {
value: data.value,
},
@@ -3965,7 +3553,6 @@ export class Users {
* @param data.userId The identifier for the user
* @param data.propertyKey The identifier for the property
* @param data.value The new property value
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Property successfully updated.
* @throws ApiError
*/
@@ -3979,9 +3566,6 @@ export class Users {
user_id: data.userId,
property_key: data.propertyKey,
},
- headers: {
- Accept: data.accept,
- },
query: {
value: data.value,
},
@@ -4003,7 +3587,6 @@ export class Users {
*
* @param data The data for the request.
* @param data.userId The user's ID.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_property_values_response Properties successfully retrieved.
* @throws ApiError
*/
@@ -4016,9 +3599,6 @@ export class Users {
path: {
user_id: data.userId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Bad request.",
403: "Invalid credentials.",
@@ -4038,7 +3618,6 @@ export class Users {
* @param data The data for the request.
* @param data.userId The identifier for the user
* @param data.requestBody Properties to update.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response Properties successfully updated.
* @throws ApiError
*/
@@ -4051,9 +3630,6 @@ export class Users {
path: {
user_id: data.userId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -4075,7 +3651,6 @@ export class Users {
* @param data The data for the request.
* @param data.userId The identifier for the user
* @param data.requestBody Password details.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns success_response User successfully created.
* @throws ApiError
*/
@@ -4088,9 +3663,6 @@ export class Users {
path: {
user_id: data.userId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -4111,7 +3683,6 @@ export class Users {
*
* @param data The data for the request.
* @param data.userId The user's ID.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.startingAfter The ID of the identity to start after.
* @param data.endingBefore The ID of the identity to end before.
* @returns get_identities_response Identities successfully retrieved.
@@ -4126,9 +3697,6 @@ export class Users {
path: {
user_id: data.userId,
},
- headers: {
- Accept: data.accept,
- },
query: {
starting_after: data.startingAfter,
ending_before: data.endingBefore,
@@ -4151,7 +3719,6 @@ export class Users {
*
* @param data The data for the request.
* @param data.userId The user's ID.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @param data.requestBody The identity details.
* @returns create_identity_response Identity successfully created.
* @throws ApiError
@@ -4165,9 +3732,6 @@ export class Users {
path: {
user_id: data.userId,
},
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -4221,7 +3785,6 @@ export class Webhooks {
*
* @param data The data for the request.
* @param data.eventId The event id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_event_response Event successfully retrieved.
* @throws ApiError
*/
@@ -4234,9 +3797,6 @@ export class Webhooks {
path: {
event_id: data.eventId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -4253,20 +3813,13 @@ export class Webhooks {
* read:event_types
*
*
- * @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_event_types_response Event types successfully retrieved.
* @throws ApiError
*/
- public static getEventTypes(
- data: GetEventTypesData,
- ): CancelablePromise {
+ public static getEventTypes(): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/event_types",
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -4285,7 +3838,6 @@ export class Webhooks {
*
* @param data The data for the request.
* @param data.webhookId The webhook id.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns delete_webhook_response Webhook successfully deleted.
* @throws ApiError
*/
@@ -4298,9 +3850,6 @@ export class Webhooks {
path: {
webhook_id: data.webhookId,
},
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -4317,20 +3866,13 @@ export class Webhooks {
* read:webhooks
*
*
- * @param data The data for the request.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns get_webhooks_response Webhook list successfully returned.
* @throws ApiError
*/
- public static getWebHooks(
- data: GetWebHooksData,
- ): CancelablePromise {
+ public static getWebHooks(): CancelablePromise {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/webhooks",
- headers: {
- Accept: data.accept,
- },
errors: {
400: "Invalid request.",
403: "Invalid credentials.",
@@ -4349,7 +3891,6 @@ export class Webhooks {
*
* @param data The data for the request.
* @param data.requestBody Webhook request specification.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns create_webhook_response Webhook successfully created.
* @throws ApiError
*/
@@ -4359,9 +3900,6 @@ export class Webhooks {
return __request(OpenAPI, {
method: "POST",
url: "/api/v1/webhooks",
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
@@ -4382,7 +3920,6 @@ export class Webhooks {
*
* @param data The data for the request.
* @param data.requestBody Update webhook request specification.
- * @param data.accept The `Accept` header is required and must always be `application/json`.
* @returns update_webhook_response Webhook successfully updated.
* @throws ApiError
*/
@@ -4392,9 +3929,6 @@ export class Webhooks {
return __request(OpenAPI, {
method: "PATCH",
url: "/api/v1/webhooks",
- headers: {
- Accept: data.accept,
- },
body: data.requestBody,
mediaType: "application/json",
errors: {
diff --git a/lib/api/types.gen.ts b/lib/api/types.gen.ts
index 7dbffd6..e6edf6a 100644
--- a/lib/api/types.gen.ts
+++ b/lib/api/types.gen.ts
@@ -186,6 +186,18 @@ export type get_business_response = {
* Your Terms and Conditions URL.
*/
terms_url?: string | null;
+ /**
+ * Whether your business uses clickwrap agreements.
+ */
+ has_clickwrap?: boolean;
+ /**
+ * Whether your business shows Kinde branding.
+ */
+ has_kinde_branding?: boolean;
+ /**
+ * Date of business creation in ISO 8601 format.
+ */
+ created_on?: string;
};
};
@@ -625,7 +637,7 @@ export type get_event_response = {
/**
* Timestamp in ISO 8601 format.
*/
- timestamp?: string;
+ timestamp?: number;
/**
* Event specific data object.
*/
@@ -769,6 +781,141 @@ export type organization_item_schema = {
is_auto_membership_enabled?: boolean;
};
+export type get_environment_response = {
+ /**
+ * Response code.
+ */
+ code?: string;
+ /**
+ * Response message.
+ */
+ message?: string;
+ environment?: {
+ /**
+ * The unique identifier for the environment.
+ */
+ code?: string;
+ /**
+ * The environment's name.
+ */
+ name?: string;
+ /**
+ * Your HotJar site ID.
+ */
+ hotjar_site_id?: string | null;
+ /**
+ * Your Google Analytics tag.
+ */
+ google_analytics_tag?: string | null;
+ /**
+ * Whether the environment is the default. Typically this is your production environment.
+ */
+ is_default?: boolean;
+ /**
+ * Whether the environment is live.
+ */
+ is_live?: boolean;
+ /**
+ * Your domain on Kinde
+ */
+ kinde_domain?: string;
+ /**
+ * Your custom domain for the environment
+ */
+ custom_domain?: string | null;
+ /**
+ * The organization's logo URL.
+ */
+ logo?: string | null;
+ /**
+ * The organization's logo URL to be used for dark themes.
+ */
+ logo_dark?: string | null;
+ /**
+ * The organization's SVG favicon URL. Optimal format for most browsers
+ */
+ favicon_svg?: string | null;
+ /**
+ * The favicon URL to be used as a fallback in browsers that don’t support SVG, add a PNG
+ */
+ favicon_fallback?: string | null;
+ link_color?: {
+ raw?: string;
+ hex?: string;
+ hsl?: string;
+ } | null;
+ background_color?: {
+ raw?: string;
+ hex?: string;
+ hsl?: string;
+ } | null;
+ button_color?: {
+ raw?: string;
+ hex?: string;
+ hsl?: string;
+ } | null;
+ button_text_color?: {
+ raw?: string;
+ hex?: string;
+ hsl?: string;
+ } | null;
+ link_color_dark?: {
+ raw?: string;
+ hex?: string;
+ hsl?: string;
+ } | null;
+ background_color_dark?: {
+ raw?: string;
+ hex?: string;
+ hsl?: string;
+ } | null;
+ button_text_color_dark?: {
+ raw?: string;
+ hex?: string;
+ hsl?: string;
+ } | null;
+ button_color_dark?: {
+ raw?: string;
+ hex?: string;
+ hsl?: string;
+ } | null;
+ /**
+ * The border radius for buttons. Value is px, Kinde transforms to rem for rendering
+ */
+ button_border_radius?: number | null;
+ /**
+ * The border radius for cards. Value is px, Kinde transforms to rem for rendering
+ */
+ card_border_radius?: number | null;
+ /**
+ * The border radius for inputs. Value is px, Kinde transforms to rem for rendering
+ */
+ input_border_radius?: number | null;
+ /**
+ * Whether the environment is forced into light mode, dark mode or user preference
+ */
+ theme_code?: "light" | "dark" | "user_preference";
+ /**
+ * The color scheme for the environment used for meta tags based on the theme code
+ */
+ color_scheme?: "light" | "dark" | "light dark";
+ /**
+ * Date of environment creation in ISO 8601 format.
+ */
+ created_on?: string;
+ };
+};
+
+/**
+ * Whether the environment is forced into light mode, dark mode or user preference
+ */
+export type theme_code = "light" | "dark" | "user_preference";
+
+/**
+ * The color scheme for the environment used for meta tags based on the theme code
+ */
+export type color_scheme = "light" | "dark" | "light dark";
+
export type get_organization_response = {
/**
* The unique identifier for the organization.
@@ -795,9 +942,21 @@ export type get_organization_response = {
*/
is_auto_membership_enabled?: boolean;
/**
- * @deprecated
+ * The organization's logo URL.
*/
logo?: string | null;
+ /**
+ * The organization's logo URL to be used for dark themes.
+ */
+ logo_dark?: string | null;
+ /**
+ * The organization's SVG favicon URL. Optimal format for most browsers
+ */
+ favicon_svg?: string | null;
+ /**
+ * The favicon URL to be used as a fallback in browsers that don’t support SVG, add a PNG
+ */
+ favicon_fallback?: string | null;
link_color?: {
raw?: string;
hex?: string;
@@ -838,6 +997,30 @@ export type get_organization_response = {
hex?: string;
hsl?: string;
} | null;
+ /**
+ * The border radius for buttons. Value is px, Kinde transforms to rem for rendering
+ */
+ button_border_radius?: number | null;
+ /**
+ * The border radius for cards. Value is px, Kinde transforms to rem for rendering
+ */
+ card_border_radius?: number | null;
+ /**
+ * The border radius for inputs. Value is px, Kinde transforms to rem for rendering
+ */
+ input_border_radius?: number | null;
+ /**
+ * Whether the environment is forced into light mode, dark mode or user preference
+ */
+ theme_code?: "light" | "dark" | "user_preference";
+ /**
+ * The color scheme for the environment used for meta tags based on the theme code
+ */
+ color_scheme?: "light" | "dark" | "light dark";
+ /**
+ * Date of organization creation in ISO 8601 format.
+ */
+ created_on?: string;
/**
* Deprecated - Use 'is_auto_membership_enabled' instead
* @deprecated
@@ -1305,7 +1488,7 @@ export type get_application_response = {
/**
* The application's type.
*/
- type?: string;
+ type?: "m2m" | "reg" | "spa";
/**
* The application's client ID.
*/
@@ -1322,9 +1505,18 @@ export type get_application_response = {
* The homepage link to your application.
*/
homepage_uri?: string;
+ /**
+ * Whether the application has a cancel button to allow users to exit the auth flow [Beta].
+ */
+ has_cancel_button?: boolean;
};
};
+/**
+ * The application's type.
+ */
+export type type = "m2m" | "reg" | "spa";
+
export type applications = {
id?: string;
name?: string;
@@ -1513,11 +1705,11 @@ export type token_introspect = {
/**
* Token expiration timestamp.
*/
- exp?: string;
+ exp?: number;
/**
* Token issuance timestamp.
*/
- iat?: string;
+ iat?: number;
};
export type token_error_response = {
@@ -1551,25 +1743,9 @@ export type Parameterproperty_key = string;
*/
export type Parametervariable_id = string;
-/**
- * The `Accept` header is required and must always be `application/json`.
- */
-export type ParameteracceptApplicationJsonHeader = "application/json";
-
-export type GetApIsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
-};
-
export type GetApIsResponse = get_apis_response;
export type AddApIsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
requestBody: {
/**
* The name of the API. (1-64 characters).
@@ -1585,10 +1761,6 @@ export type AddApIsData = {
export type AddApIsResponse = create_apis_response;
export type GetApiData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The API's ID.
*/
@@ -1598,10 +1770,6 @@ export type GetApiData = {
export type GetApiResponse = get_api_response;
export type DeleteApiData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The API's ID.
*/
@@ -1611,10 +1779,6 @@ export type DeleteApiData = {
export type DeleteApiResponse = delete_api_response;
export type UpdateApiApplicationsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The API's ID.
*/
@@ -1639,10 +1803,6 @@ export type UpdateApiApplicationsData = {
export type UpdateApiApplicationsResponse = authorize_app_api_response;
export type GetApplicationsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* A string to get the next page of results if there are more results.
*/
@@ -1660,10 +1820,6 @@ export type GetApplicationsData = {
export type GetApplicationsResponse = get_applications_response;
export type CreateApplicationData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
requestBody: {
/**
* The application's name.
@@ -1679,10 +1835,6 @@ export type CreateApplicationData = {
export type CreateApplicationResponse = create_application_response;
export type GetApplicationData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the application.
*/
@@ -1692,10 +1844,6 @@ export type GetApplicationData = {
export type GetApplicationResponse = get_application_response;
export type UpdateApplicationData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the application.
*/
@@ -1734,10 +1882,6 @@ export type UpdateApplicationData = {
export type UpdateApplicationResponse = unknown;
export type DeleteApplicationData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the application.
*/
@@ -1747,10 +1891,6 @@ export type DeleteApplicationData = {
export type DeleteApplicationResponse = success_response;
export type GetApplicationConnectionsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier/client ID for the application.
*/
@@ -1760,10 +1900,6 @@ export type GetApplicationConnectionsData = {
export type GetApplicationConnectionsResponse = get_connections_response;
export type EnableConnectionData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier/client ID for the application.
*/
@@ -1777,10 +1913,6 @@ export type EnableConnectionData = {
export type EnableConnectionResponse = unknown;
export type RemoveConnectionData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier/client ID for the application.
*/
@@ -1794,10 +1926,6 @@ export type RemoveConnectionData = {
export type RemoveConnectionResponse = success_response;
export type GetApplicationPropertyValuesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The application's ID / client ID.
*/
@@ -1807,10 +1935,6 @@ export type GetApplicationPropertyValuesData = {
export type GetApplicationPropertyValuesResponse = get_property_values_response;
export type UpdateApplicationsPropertyData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The application's ID / client ID.
*/
@@ -1863,20 +1987,9 @@ export type UpdateApplicationTokensData = {
export type UpdateApplicationTokensResponse = success_response;
-export type GetBusinessData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
-};
-
export type GetBusinessResponse = get_business_response;
export type UpdateBusinessData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The business details to update.
*/
@@ -1926,29 +2039,11 @@ export type UpdateBusinessData = {
export type UpdateBusinessResponse = success_response;
-export type GetIndustriesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
-};
-
export type GetIndustriesResponse = get_industries_response;
-export type GetTimezonesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
-};
-
export type GetTimezonesResponse = get_timezones_response;
export type GetCallbackUrLsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the application.
*/
@@ -1958,10 +2053,6 @@ export type GetCallbackUrLsData = {
export type GetCallbackUrLsResponse = redirect_callback_urls;
export type AddRedirectCallbackUrLsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the application.
*/
@@ -1980,10 +2071,6 @@ export type AddRedirectCallbackUrLsData = {
export type AddRedirectCallbackUrLsResponse = success_response;
export type ReplaceRedirectCallbackUrLsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the application.
*/
@@ -2002,10 +2089,6 @@ export type ReplaceRedirectCallbackUrLsData = {
export type ReplaceRedirectCallbackUrLsResponse = success_response;
export type DeleteCallbackUrLsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the application.
*/
@@ -2019,10 +2102,6 @@ export type DeleteCallbackUrLsData = {
export type DeleteCallbackUrLsResponse = success_response;
export type GetLogoutUrLsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the application.
*/
@@ -2032,10 +2111,6 @@ export type GetLogoutUrLsData = {
export type GetLogoutUrLsResponse = logout_redirect_urls;
export type AddLogoutRedirectUrLsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the application.
*/
@@ -2054,10 +2129,6 @@ export type AddLogoutRedirectUrLsData = {
export type AddLogoutRedirectUrLsResponse = success_response;
export type ReplaceLogoutRedirectUrLsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the application.
*/
@@ -2076,10 +2147,6 @@ export type ReplaceLogoutRedirectUrLsData = {
export type ReplaceLogoutRedirectUrLsResponse = success_response;
export type DeleteLogoutUrLsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the application.
*/
@@ -2093,10 +2160,6 @@ export type DeleteLogoutUrLsData = {
export type DeleteLogoutUrLsResponse = success_response;
export type GetConnectedAppAuthUrlData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The unique key code reference of the connected app to authenticate against.
*/
@@ -2118,10 +2181,6 @@ export type GetConnectedAppAuthUrlData = {
export type GetConnectedAppAuthUrlResponse = connected_apps_auth_url;
export type GetConnectedAppTokenData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The unique sesssion id representing the login session of a user.
*/
@@ -2131,10 +2190,6 @@ export type GetConnectedAppTokenData = {
export type GetConnectedAppTokenResponse = connected_apps_access_token;
export type RevokeConnectedAppTokenData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The unique sesssion id representing the login session of a user.
*/
@@ -2144,10 +2199,6 @@ export type RevokeConnectedAppTokenData = {
export type RevokeConnectedAppTokenResponse = success_response;
export type GetConnectionsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The ID of the connection to end before.
*/
@@ -2165,10 +2216,6 @@ export type GetConnectionsData = {
export type GetConnectionsResponse = get_connections_response;
export type CreateConnectionData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Connection details.
*/
@@ -2219,10 +2266,6 @@ export type CreateConnectionData = {
export type CreateConnectionResponse = create_connection_response;
export type GetConnectionData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The unique identifier for the connection.
*/
@@ -2232,10 +2275,6 @@ export type GetConnectionData = {
export type GetConnectionResponse = connection;
export type UpdateConnectionData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The unique identifier for the connection.
*/
@@ -2268,10 +2307,6 @@ export type UpdateConnectionData = {
export type UpdateConnectionResponse = success_response;
export type DeleteConnectionData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the connection.
*/
@@ -2280,30 +2315,14 @@ export type DeleteConnectionData = {
export type DeleteConnectionResponse = success_response;
-export type DeleteEnvironementFeatureFlagOverridesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
-};
+export type GetEnvironmentResponse = get_environment_response;
export type DeleteEnvironementFeatureFlagOverridesResponse = success_response;
-export type GetEnvironementFeatureFlagsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
-};
-
export type GetEnvironementFeatureFlagsResponse =
get_environment_feature_flags_response;
export type DeleteEnvironementFeatureFlagOverrideData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the feature flag.
*/
@@ -2313,10 +2332,6 @@ export type DeleteEnvironementFeatureFlagOverrideData = {
export type DeleteEnvironementFeatureFlagOverrideResponse = success_response;
export type UpdateEnvironementFeatureFlagOverrideData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the feature flag.
*/
@@ -2334,21 +2349,10 @@ export type UpdateEnvironementFeatureFlagOverrideData = {
export type UpdateEnvironementFeatureFlagOverrideResponse = success_response;
-export type GetEnvironmentVariablesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
-};
-
export type GetEnvironmentVariablesResponse =
get_environment_variables_response;
export type CreateEnvironmentVariableData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The environment variable details.
*/
@@ -2372,10 +2376,6 @@ export type CreateEnvironmentVariableResponse =
create_environment_variable_response;
export type GetEnvironmentVariableData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The environment variable's ID.
*/
@@ -2385,10 +2385,6 @@ export type GetEnvironmentVariableData = {
export type GetEnvironmentVariableResponse = get_environment_variable_response;
export type UpdateEnvironmentVariableData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The new details for the environment variable
*/
@@ -2416,10 +2412,6 @@ export type UpdateEnvironmentVariableResponse =
update_environment_variable_response;
export type DeleteEnvironmentVariableData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The environment variable's ID.
*/
@@ -2430,10 +2422,6 @@ export type DeleteEnvironmentVariableResponse =
delete_environment_variable_response;
export type CreateFeatureFlagData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Flag details.
*/
@@ -2468,10 +2456,6 @@ export type CreateFeatureFlagData = {
export type CreateFeatureFlagResponse = success_response;
export type DeleteFeatureFlagData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the feature flag.
*/
@@ -2481,10 +2465,6 @@ export type DeleteFeatureFlagData = {
export type DeleteFeatureFlagResponse = success_response;
export type UpdateFeatureFlagData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Allow the flag to be overridden at a different level.
*/
@@ -2514,10 +2494,6 @@ export type UpdateFeatureFlagData = {
export type UpdateFeatureFlagResponse = success_response;
export type GetIdentityData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The unique identifier for the identity.
*/
@@ -2527,10 +2503,6 @@ export type GetIdentityData = {
export type GetIdentityResponse = identity;
export type UpdateIdentityData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The unique identifier for the identity.
*/
@@ -2549,10 +2521,6 @@ export type UpdateIdentityData = {
export type UpdateIdentityResponse = success_response;
export type DeleteIdentityData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The unique identifier for the identity.
*/
@@ -2562,10 +2530,6 @@ export type DeleteIdentityData = {
export type DeleteIdentityResponse = success_response;
export type GetOrganizationData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The organization's code.
*/
@@ -2575,10 +2539,6 @@ export type GetOrganizationData = {
export type GetOrganizationResponse = get_organization_response;
export type CreateOrganizationData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Organization details.
*/
@@ -2651,10 +2611,6 @@ export type CreateOrganizationData = {
export type CreateOrganizationResponse = create_organization_response;
export type GetOrganizationsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* A string to get the next page of results if there are more results.
*/
@@ -2672,10 +2628,6 @@ export type GetOrganizationsData = {
export type GetOrganizationsResponse = get_organizations_response;
export type UpdateOrganizationData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the organization.
*/
@@ -2755,10 +2707,6 @@ export type UpdateOrganizationData = {
export type UpdateOrganizationResponse = success_response;
export type DeleteOrganizationData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the organization.
*/
@@ -2768,10 +2716,6 @@ export type DeleteOrganizationData = {
export type DeleteOrganizationResponse = success_response;
export type GetOrganizationUsersData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* A string to get the next page of results if there are more results.
*/
@@ -2810,10 +2754,6 @@ export type GetOrganizationUsersData = {
export type GetOrganizationUsersResponse = get_organization_users_response;
export type AddOrganizationUsersData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The organization's code.
*/
@@ -2843,10 +2783,6 @@ export type AddOrganizationUsersResponse =
add_organization_users_response | void;
export type UpdateOrganizationUsersData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The organization's code.
*/
@@ -2880,10 +2816,6 @@ export type UpdateOrganizationUsersResponse =
update_organization_users_response;
export type GetOrganizationUserRolesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The organization's code.
*/
@@ -2898,10 +2830,6 @@ export type GetOrganizationUserRolesResponse =
get_organizations_user_roles_response;
export type CreateOrganizationUserRoleData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The organization's code.
*/
@@ -2924,10 +2852,6 @@ export type CreateOrganizationUserRoleData = {
export type CreateOrganizationUserRoleResponse = success_response;
export type DeleteOrganizationUserRoleData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The organization's code.
*/
@@ -2945,10 +2869,6 @@ export type DeleteOrganizationUserRoleData = {
export type DeleteOrganizationUserRoleResponse = success_response;
export type GetOrganizationUserPermissionsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Specify additional data to retrieve. Use "roles".
*/
@@ -2967,10 +2887,6 @@ export type GetOrganizationUserPermissionsResponse =
get_organizations_user_permissions_response;
export type CreateOrganizationUserPermissionData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The organization's code.
*/
@@ -2993,10 +2909,6 @@ export type CreateOrganizationUserPermissionData = {
export type CreateOrganizationUserPermissionResponse = success_response;
export type DeleteOrganizationUserPermissionData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The organization's code.
*/
@@ -3014,10 +2926,6 @@ export type DeleteOrganizationUserPermissionData = {
export type DeleteOrganizationUserPermissionResponse = success_response;
export type RemoveOrganizationUserData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The organization's code.
*/
@@ -3031,10 +2939,6 @@ export type RemoveOrganizationUserData = {
export type RemoveOrganizationUserResponse = success_response;
export type GetOrganizationFeatureFlagsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the organization.
*/
@@ -3045,10 +2949,6 @@ export type GetOrganizationFeatureFlagsResponse =
get_organization_feature_flags_response;
export type DeleteOrganizationFeatureFlagOverridesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the organization.
*/
@@ -3058,10 +2958,6 @@ export type DeleteOrganizationFeatureFlagOverridesData = {
export type DeleteOrganizationFeatureFlagOverridesResponse = success_response;
export type DeleteOrganizationFeatureFlagOverrideData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the feature flag.
*/
@@ -3075,10 +2971,6 @@ export type DeleteOrganizationFeatureFlagOverrideData = {
export type DeleteOrganizationFeatureFlagOverrideResponse = success_response;
export type UpdateOrganizationFeatureFlagOverrideData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the feature flag
*/
@@ -3096,10 +2988,6 @@ export type UpdateOrganizationFeatureFlagOverrideData = {
export type UpdateOrganizationFeatureFlagOverrideResponse = success_response;
export type UpdateOrganizationPropertyData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the organization
*/
@@ -3117,10 +3005,6 @@ export type UpdateOrganizationPropertyData = {
export type UpdateOrganizationPropertyResponse = success_response;
export type GetOrganizationPropertyValuesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The organization's code.
*/
@@ -3131,10 +3015,6 @@ export type GetOrganizationPropertyValuesResponse =
get_property_values_response;
export type UpdateOrganizationPropertiesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the organization
*/
@@ -3155,10 +3035,6 @@ export type UpdateOrganizationPropertiesData = {
export type UpdateOrganizationPropertiesResponse = success_response;
export type DeleteOrganizationHandleData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The organization's code.
*/
@@ -3168,10 +3044,6 @@ export type DeleteOrganizationHandleData = {
export type DeleteOrganizationHandleResponse = success_response;
export type GetPermissionsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* A string to get the next page of results if there are more results.
*/
@@ -3189,10 +3061,6 @@ export type GetPermissionsData = {
export type GetPermissionsResponse = get_permissions_response;
export type CreatePermissionData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Permission details.
*/
@@ -3215,10 +3083,6 @@ export type CreatePermissionData = {
export type CreatePermissionResponse = success_response;
export type UpdatePermissionsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the permission.
*/
@@ -3245,10 +3109,6 @@ export type UpdatePermissionsData = {
export type UpdatePermissionsResponse = success_response;
export type DeletePermissionData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the permission.
*/
@@ -3258,10 +3118,6 @@ export type DeletePermissionData = {
export type DeletePermissionResponse = success_response;
export type GetPropertiesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Filter results by user, organization or application context
*/
@@ -3283,10 +3139,6 @@ export type GetPropertiesData = {
export type GetPropertiesResponse = get_properties_response;
export type CreatePropertyData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Property details.
*/
@@ -3325,10 +3177,6 @@ export type CreatePropertyData = {
export type CreatePropertyResponse = create_property_response;
export type UpdatePropertyData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The unique identifier for the property.
*/
@@ -3359,10 +3207,6 @@ export type UpdatePropertyData = {
export type UpdatePropertyResponse = success_response;
export type DeletePropertyData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The unique identifier for the property.
*/
@@ -3372,10 +3216,6 @@ export type DeletePropertyData = {
export type DeletePropertyResponse = success_response;
export type GetCategoriesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Filter the results by User or Organization context
*/
@@ -3397,10 +3237,6 @@ export type GetCategoriesData = {
export type GetCategoriesResponse = get_categories_response;
export type CreateCategoryData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Category details.
*/
@@ -3419,10 +3255,6 @@ export type CreateCategoryData = {
export type CreateCategoryResponse = create_category_response;
export type UpdateCategoryData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The unique identifier for the category.
*/
@@ -3441,10 +3273,6 @@ export type UpdateCategoryData = {
export type UpdateCategoryResponse = success_response;
export type GetRolesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* A string to get the next page of results if there are more results.
*/
@@ -3462,10 +3290,6 @@ export type GetRolesData = {
export type GetRolesResponse = get_roles_response;
export type CreateRoleData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Role details.
*/
@@ -3492,10 +3316,6 @@ export type CreateRoleData = {
export type CreateRoleResponse = create_roles_response;
export type GetRoleData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the role.
*/
@@ -3505,10 +3325,6 @@ export type GetRoleData = {
export type GetRoleResponse = get_role_response;
export type UpdateRolesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Role details.
*/
@@ -3539,10 +3355,6 @@ export type UpdateRolesData = {
export type UpdateRolesResponse = success_response;
export type DeleteRoleData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the role.
*/
@@ -3552,10 +3364,6 @@ export type DeleteRoleData = {
export type DeleteRoleResponse = success_response;
export type GetRolePermissionsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* A string to get the next page of results if there are more results.
*/
@@ -3577,10 +3385,6 @@ export type GetRolePermissionsData = {
export type GetRolePermissionsResponse = role_permissions_response;
export type UpdateRolePermissionsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
requestBody: {
/**
* Permissions to add or remove from the role.
@@ -3605,10 +3409,6 @@ export type UpdateRolePermissionsData = {
export type UpdateRolePermissionsResponse = update_role_permissions_response;
export type RemoveRolePermissionData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The permission's public id.
*/
@@ -3622,10 +3422,6 @@ export type RemoveRolePermissionData = {
export type RemoveRolePermissionResponse = success_response;
export type GetSubscribersData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* A string to get the next page of results if there are more results.
*/
@@ -3643,10 +3439,6 @@ export type GetSubscribersData = {
export type GetSubscribersResponse = get_subscribers_response;
export type CreateSubscriberData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The email address of the subscriber.
*/
@@ -3664,10 +3456,6 @@ export type CreateSubscriberData = {
export type CreateSubscriberResponse = create_subscriber_success_response;
export type GetSubscriberData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The subscriber's id.
*/
@@ -3677,10 +3465,6 @@ export type GetSubscriberData = {
export type GetSubscriberResponse = get_subscriber_response;
export type GetUsersData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Filter the results by email address. The query string should be comma separated and url encoded.
*/
@@ -3714,10 +3498,6 @@ export type GetUsersData = {
export type GetUsersResponse = users_response;
export type RefreshUserClaimsData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The id of the user whose claims needs to be updated.
*/
@@ -3727,10 +3507,6 @@ export type RefreshUserClaimsData = {
export type RefreshUserClaimsResponse = success_response;
export type GetUserDataData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Specify additional data to retrieve. Use "organizations" and/or "identities".
*/
@@ -3744,10 +3520,6 @@ export type GetUserDataData = {
export type GetUserDataResponse = user;
export type CreateUserData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The details of the user to create.
*/
@@ -3813,10 +3585,6 @@ export type CreateUserData = {
export type CreateUserResponse = create_user_response;
export type UpdateUserData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The user's id.
*/
@@ -3855,10 +3623,6 @@ export type UpdateUserData = {
export type UpdateUserResponse = update_user_response;
export type DeleteUserData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The user's id.
*/
@@ -3872,10 +3636,6 @@ export type DeleteUserData = {
export type DeleteUserResponse = success_response;
export type UpdateUserFeatureFlagOverrideData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the feature flag
*/
@@ -3893,10 +3653,6 @@ export type UpdateUserFeatureFlagOverrideData = {
export type UpdateUserFeatureFlagOverrideResponse = success_response;
export type UpdateUserPropertyData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identifier for the property
*/
@@ -3914,10 +3670,6 @@ export type UpdateUserPropertyData = {
export type UpdateUserPropertyResponse = success_response;
export type GetUserPropertyValuesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The user's ID.
*/
@@ -3927,10 +3679,6 @@ export type GetUserPropertyValuesData = {
export type GetUserPropertyValuesResponse = get_property_values_response;
export type UpdateUserPropertiesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Properties to update.
*/
@@ -3951,10 +3699,6 @@ export type UpdateUserPropertiesData = {
export type UpdateUserPropertiesResponse = success_response;
export type SetUserPasswordData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Password details.
*/
@@ -3989,10 +3733,6 @@ export type SetUserPasswordData = {
export type SetUserPasswordResponse = success_response;
export type GetUserIdentitiesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The ID of the identity to end before.
*/
@@ -4010,10 +3750,6 @@ export type GetUserIdentitiesData = {
export type GetUserIdentitiesResponse = get_identities_response;
export type CreateUserIdentityData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The identity details.
*/
@@ -4053,10 +3789,6 @@ export type DeleteUserSessionsData = {
export type DeleteUserSessionsResponse = success_response;
export type GetEventData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The event id.
*/
@@ -4065,20 +3797,9 @@ export type GetEventData = {
export type GetEventResponse = get_event_response;
-export type GetEventTypesData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
-};
-
export type GetEventTypesResponse = get_event_types_response;
export type DeleteWebHookData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* The webhook id.
*/
@@ -4087,20 +3808,9 @@ export type DeleteWebHookData = {
export type DeleteWebHookResponse = delete_webhook_response;
-export type GetWebHooksData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
-};
-
export type GetWebHooksResponse = get_webhooks_response;
export type CreateWebHookData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Webhook request specification.
*/
@@ -4127,10 +3837,6 @@ export type CreateWebHookData = {
export type CreateWebHookResponse = create_webhook_response;
export type UpdateWebHookData = {
- /**
- * The `Accept` header is required and must always be `application/json`.
- */
- accept: "application/json";
/**
* Update webhook request specification.
*/
diff --git a/spec/kinde-mgmt-api-specs.yaml b/spec/kinde-mgmt-api-specs.yaml
index a511f25..e2dd5a9 100644
--- a/spec/kinde-mgmt-api-specs.yaml
+++ b/spec/kinde-mgmt-api-specs.yaml
@@ -76,8 +76,6 @@ tags:
x-displayName: OAuth
paths:
/api/v1/apis:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- APIs
@@ -159,7 +157,6 @@ paths:
/api/v1/apis/{api_id}:
parameters:
- $ref: '#/components/parameters/api_id'
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- APIs
@@ -215,7 +212,6 @@ paths:
/api/v1/apis/{api_id}/applications:
parameters:
- $ref: '#/components/parameters/api_id'
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
patch:
tags:
- APIs
@@ -271,8 +267,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/applications:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Applications
@@ -372,8 +366,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/applications/{application_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Applications
@@ -506,8 +498,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/applications/{application_id}/connections:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Applications
@@ -544,8 +534,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/applications/{application_id}/connections/{connection_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
post:
tags:
- Applications
@@ -627,7 +615,6 @@ paths:
/api/v1/applications/{application_id}/properties:
parameters:
- $ref: '#/components/parameters/application_id'
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Applications
@@ -658,7 +645,6 @@ paths:
parameters:
- $ref: '#/components/parameters/application_id'
- $ref: '#/components/parameters/property_key'
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
put:
tags:
- Applications
@@ -763,8 +749,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/business:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Business
@@ -881,8 +865,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/industries:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Industries
@@ -910,8 +892,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/timezones:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Timezones
@@ -939,8 +919,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/applications/{app_id}/auth_redirect_urls:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Callbacks
@@ -1142,8 +1120,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/applications/{app_id}/auth_logout_urls:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Callbacks
@@ -1309,8 +1285,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/connected_apps/auth_url:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Connected Apps
@@ -1398,8 +1372,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/connected_apps/token:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Connected Apps
@@ -1456,8 +1428,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/connected_apps/revoke:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
post:
tags:
- Connected Apps
@@ -1514,8 +1484,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/connections:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Connections
@@ -1668,8 +1636,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/connections/{connection_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Connections
@@ -1829,9 +1795,34 @@ paths:
description: Request was throttled.
security:
- kindeBearerAuth: []
+ /api/v1/environment:
+ get:
+ tags:
+ - Environments
+ operationId: getEnvironment
+ summary: Get environment
+ description: |
+ Get's the current environment.
+
+
+ read:environments
+
+ responses:
+ '200':
+ description: Environment successfully retrieved.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/get_environment_response'
+ '400':
+ $ref: '#/components/responses/bad_request'
+ '403':
+ $ref: '#/components/responses/forbidden'
+ '429':
+ $ref: '#/components/responses/too_many_requests'
+ security:
+ - kindeBearerAuth: []
/api/v1/environment/feature_flags:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
delete:
tags:
- Environments
@@ -1905,8 +1896,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/environment/feature_flags/{feature_flag_key}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
delete:
tags:
- Environments
@@ -2008,8 +1997,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/environment_variables:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Environment variables
@@ -2098,7 +2085,6 @@ paths:
/api/v1/environment_variables/{variable_id}:
parameters:
- $ref: '#/components/parameters/variable_id'
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Environment variables
@@ -2206,8 +2192,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/feature_flags:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
post:
tags:
- Feature Flags
@@ -2292,8 +2276,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/feature_flags/{feature_flag_key}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
delete:
tags:
- Feature Flags
@@ -2423,8 +2405,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/identities/{identity_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Identities
@@ -2574,8 +2554,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organization:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Organizations
@@ -2716,8 +2694,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organizations:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Organizations
@@ -2769,8 +2745,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organization/{org_code}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
patch:
tags:
- Organizations
@@ -2925,8 +2899,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organizations/{org_code}/users:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Organizations
@@ -3147,8 +3119,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organizations/{org_code}/users/{user_id}/roles:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Organizations
@@ -3245,8 +3215,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organizations/{org_code}/users/{user_id}/roles/{role_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
delete:
tags:
- Organizations
@@ -3306,8 +3274,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organizations/{org_code}/users/{user_id}/permissions:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Organizations
@@ -3413,8 +3379,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organizations/{org_code}/users/{user_id}/permissions/{permission_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
delete:
tags:
- Organizations
@@ -3474,8 +3438,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organizations/{org_code}/users/{user_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
delete:
tags:
- Organizations
@@ -3528,8 +3490,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organizations/{org_code}/feature_flags:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Organizations
@@ -3617,8 +3577,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
delete:
tags:
- Organizations
@@ -3724,8 +3682,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organizations/{org_code}/properties/{property_key}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
put:
tags:
- Organizations
@@ -3782,8 +3738,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organizations/{org_code}/properties:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Organizations
@@ -3886,8 +3840,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/organization/{org_code}/handle:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
delete:
tags:
- Organizations
@@ -3933,8 +3885,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/permissions:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Permissions
@@ -4048,8 +3998,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/permissions/{permission_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
patch:
tags:
- Permissions
@@ -4153,8 +4101,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/properties:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Properties
@@ -4316,8 +4262,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/properties/{property_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
put:
tags:
- Properties
@@ -4433,8 +4377,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/property_categories:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Property Categories
@@ -4566,8 +4508,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/property_categories/{category_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
put:
tags:
- Property Categories
@@ -4624,8 +4564,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/roles:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Roles
@@ -4726,8 +4664,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/roles/{role_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Roles
@@ -4851,8 +4787,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/roles/{role_id}/permissions:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Roles
@@ -4984,8 +4918,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/roles/{role_id}/permissions/{permission_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
delete:
tags:
- Roles
@@ -5038,8 +4970,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/subscribers:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Subscribers
@@ -5155,8 +5085,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/subscribers/{subscriber_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Subscribers
@@ -5200,8 +5128,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/users:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Users
@@ -5285,8 +5211,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/users/{user_id}/refresh_claims:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
post:
tags:
- Users
@@ -5338,8 +5262,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/user:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Users
@@ -5594,8 +5516,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/users/{user_id}/feature_flags/{feature_flag_key}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
patch:
tags:
- Users
@@ -5652,8 +5572,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/users/{user_id}/properties/{property_key}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
put:
tags:
- Users
@@ -5710,8 +5628,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/users/{user_id}/properties:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Users
@@ -5814,8 +5730,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/users/{user_id}/password:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
put:
tags:
- Users
@@ -5901,8 +5815,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/users/{user_id}/identities:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Users
@@ -6075,8 +5987,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/events/{event_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Webhooks
@@ -6129,8 +6039,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/event_types:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Webhooks
@@ -6175,8 +6083,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/webhooks/{webhook_id}:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
delete:
tags:
- Webhooks
@@ -6229,8 +6135,6 @@ paths:
security:
- kindeBearerAuth: []
/api/v1/webhooks:
- parameters:
- - $ref: '#/components/parameters/acceptApplicationJsonHeader'
get:
tags:
- Webhooks
@@ -6545,16 +6449,6 @@ paths:
security:
- kindeBearerAuth: []
components:
- headers:
- acceptApplicationJsonHeader:
- name: Accept
- in: header
- required: true
- schema:
- type: string
- enum:
- - application/json
- description: The `Accept` header is required and must always be `application/json`.
parameters:
api_id:
in: path
@@ -6588,15 +6482,6 @@ components:
schema:
type: string
example: env_var_0192b1941f125645fa15bf28a662a0b3
- acceptApplicationJsonHeader:
- name: Accept
- in: header
- required: true
- schema:
- type: string
- enum:
- - application/json
- description: The `Accept` header is required and must always be `application/json`.
responses:
bad_request:
description: Invalid request.
@@ -6840,6 +6725,18 @@ components:
description: Your Terms and Conditions URL.
example: https://example.com/terms
nullable: true
+ has_clickwrap:
+ type: boolean
+ description: Whether your business uses clickwrap agreements.
+ example: false
+ has_kinde_branding:
+ type: boolean
+ description: Whether your business shows Kinde branding.
+ example: true
+ created_on:
+ type: string
+ description: Date of business creation in ISO 8601 format.
+ example: '2021-01-01T00:00:00Z'
get_industries_response:
type: object
properties:
@@ -7302,7 +7199,7 @@ components:
event_id:
type: string
timestamp:
- type: string
+ type: integer
description: Timestamp in ISO 8601 format.
data:
type: object
@@ -7465,6 +7362,232 @@ components:
description: >-
If users become members of this organization when the org code is
supplied during authentication.
+ get_environment_response:
+ type: object
+ properties:
+ code:
+ type: string
+ description: Response code.
+ example: OK
+ message:
+ type: string
+ description: Response message.
+ example: success_response
+ environment:
+ type: object
+ properties:
+ code:
+ type: string
+ description: The unique identifier for the environment.
+ example: production
+ name:
+ type: string
+ description: The environment's name.
+ example: Production
+ hotjar_site_id:
+ type: string
+ description: Your HotJar site ID.
+ example: 404009
+ nullable: true
+ google_analytics_tag:
+ type: string
+ description: Your Google Analytics tag.
+ example: G-1234567
+ nullable: true
+ is_default:
+ type: boolean
+ description: >-
+ Whether the environment is the default. Typically this is your
+ production environment.
+ example: true
+ is_live:
+ type: boolean
+ description: Whether the environment is live.
+ example: true
+ kinde_domain:
+ type: string
+ description: Your domain on Kinde
+ example: example.kinde.com
+ custom_domain:
+ type: string
+ description: Your custom domain for the environment
+ nullable: true
+ example: app.example.com
+ logo:
+ type: string
+ nullable: true
+ description: The organization's logo URL.
+ example: >-
+ https://yoursubdomain.kinde.com/logo?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d
+ logo_dark:
+ type: string
+ nullable: true
+ description: The organization's logo URL to be used for dark themes.
+ example: >-
+ https://yoursubdomain.kinde.com/logo_dark?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d
+ favicon_svg:
+ type: string
+ nullable: true
+ description: >-
+ The organization's SVG favicon URL. Optimal format for most
+ browsers
+ example: >-
+ https://yoursubdomain.kinde.com/favicon_svg?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d
+ favicon_fallback:
+ type: string
+ nullable: true
+ description: >-
+ The favicon URL to be used as a fallback in browsers that don’t
+ support SVG, add a PNG
+ example: >-
+ https://yoursubdomain.kinde.com/favicon_fallback?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d
+ link_color:
+ type: object
+ nullable: true
+ properties:
+ raw:
+ type: string
+ example: '#0056F1'
+ hex:
+ type: string
+ example: '#0056F1'
+ hsl:
+ type: string
+ example: hsl(220, 100%, 50%)
+ background_color:
+ nullable: true
+ type: object
+ properties:
+ raw:
+ type: string
+ example: '#ffffff'
+ hex:
+ type: string
+ example: '#ffffff'
+ hsl:
+ type: string
+ example: hsl(0, 0%, 100%)
+ button_color:
+ nullable: true
+ type: object
+ properties:
+ raw:
+ type: string
+ example: '#0056F1'
+ hex:
+ type: string
+ example: '#0056F1'
+ hsl:
+ type: string
+ example: hsl(220, 100%, 50%)
+ button_text_color:
+ nullable: true
+ type: object
+ properties:
+ raw:
+ type: string
+ example: '#ffffff'
+ hex:
+ type: string
+ example: '#ffffff'
+ hsl:
+ type: string
+ example: hsl(0, 0%, 100%)
+ link_color_dark:
+ type: object
+ nullable: true
+ properties:
+ raw:
+ type: string
+ example: '#0056F1'
+ hex:
+ type: string
+ example: '#0056F1'
+ hsl:
+ type: string
+ example: hsl(220, 100%, 50%)
+ background_color_dark:
+ type: object
+ nullable: true
+ properties:
+ raw:
+ type: string
+ example: '#0056F1'
+ hex:
+ type: string
+ example: '#0056F1'
+ hsl:
+ type: string
+ example: hsl(220, 100%, 50%)
+ button_text_color_dark:
+ type: object
+ nullable: true
+ properties:
+ raw:
+ type: string
+ example: '#0056F1'
+ hex:
+ type: string
+ example: '#0056F1'
+ hsl:
+ type: string
+ example: hsl(220, 100%, 50%)
+ button_color_dark:
+ type: object
+ nullable: true
+ properties:
+ raw:
+ type: string
+ example: '#0056F1'
+ hex:
+ type: string
+ example: '#0056F1'
+ hsl:
+ type: string
+ example: hsl(220, 100%, 50%)
+ button_border_radius:
+ type: integer
+ nullable: true
+ description: >-
+ The border radius for buttons. Value is px, Kinde transforms to
+ rem for rendering
+ example: 8
+ card_border_radius:
+ type: integer
+ nullable: true
+ description: >-
+ The border radius for cards. Value is px, Kinde transforms to
+ rem for rendering
+ example: 16
+ input_border_radius:
+ type: integer
+ nullable: true
+ description: >-
+ The border radius for inputs. Value is px, Kinde transforms to
+ rem for rendering
+ example: 4
+ theme_code:
+ type: string
+ description: >-
+ Whether the environment is forced into light mode, dark mode or
+ user preference
+ enum:
+ - light
+ - dark
+ - user_preference
+ color_scheme:
+ type: string
+ description: >-
+ The color scheme for the environment used for meta tags based on
+ the theme code
+ enum:
+ - light
+ - dark
+ - light dark
+ created_on:
+ type: string
+ description: Date of environment creation in ISO 8601 format.
+ example: '2021-01-01T00:00:00Z'
get_organization_response:
type: object
properties:
@@ -7502,8 +7625,30 @@ components:
supplied during authentication.
logo:
type: string
- deprecated: true
nullable: true
+ description: The organization's logo URL.
+ example: >-
+ https://yoursubdomain.kinde.com/logo?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d
+ logo_dark:
+ type: string
+ nullable: true
+ description: The organization's logo URL to be used for dark themes.
+ example: >-
+ https://yoursubdomain.kinde.com/logo_dark?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d
+ favicon_svg:
+ type: string
+ nullable: true
+ description: The organization's SVG favicon URL. Optimal format for most browsers
+ example: >-
+ https://yoursubdomain.kinde.com/favicon_svg?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d
+ favicon_fallback:
+ type: string
+ nullable: true
+ description: >-
+ The favicon URL to be used as a fallback in browsers that don’t
+ support SVG, add a PNG
+ example: >-
+ https://yoursubdomain.kinde.com/favicon_fallback?org_code=org_1ccfb819462&cache=311308b8ad3544bf8e572979f0e5748d
link_color:
type: object
nullable: true
@@ -7608,6 +7753,49 @@ components:
hsl:
type: string
example: hsl(220, 100%, 50%)
+ button_border_radius:
+ type: integer
+ nullable: true
+ description: >-
+ The border radius for buttons. Value is px, Kinde transforms to rem
+ for rendering
+ example: 8
+ card_border_radius:
+ type: integer
+ nullable: true
+ description: >-
+ The border radius for cards. Value is px, Kinde transforms to rem
+ for rendering
+ example: 16
+ input_border_radius:
+ type: integer
+ nullable: true
+ description: >-
+ The border radius for inputs. Value is px, Kinde transforms to rem
+ for rendering
+ example: 4
+ theme_code:
+ type: string
+ description: >-
+ Whether the environment is forced into light mode, dark mode or user
+ preference
+ enum:
+ - light
+ - dark
+ - user_preference
+ color_scheme:
+ type: string
+ description: >-
+ The color scheme for the environment used for meta tags based on the
+ theme code
+ enum:
+ - light
+ - dark
+ - light dark
+ created_on:
+ type: string
+ description: Date of organization creation in ISO 8601 format.
+ example: '2021-01-01T00:00:00Z'
is_allow_registrations:
nullable: true
type: boolean
@@ -8130,12 +8318,15 @@ components:
id:
description: The application's identifier.
type: string
+ example: 3b0b5c6c8fcc464fab397f4969b5f482
client_id:
description: The application's client ID.
type: string
+ example: 3b0b5c6c8fcc464fab397f4969b5f482
client_secret:
description: The application's client secret.
type: string
+ example: sUJSHI3ZQEVTJkx6hOxdOSHaLsZkCBRFLzTNOI791rX8mDjgt7LC
get_application_response:
type: object
properties:
@@ -8151,24 +8342,40 @@ components:
id:
description: The application's identifier.
type: string
+ example: 3b0b5c6c8fcc464fab397f4969b5f482
name:
description: The application's name.
type: string
+ example: My React app
type:
description: The application's type.
type: string
+ enum:
+ - m2m
+ - reg
+ - spa
client_id:
description: The application's client ID.
type: string
+ example: 3b0b5c6c8fcc464fab397f4969b5f482
client_secret:
description: The application's client secret.
type: string
+ example: sUJSHI3ZQEVTJkx6hOxdOSHaLsZkCBRFLzTNOI791rX8mDjgt7LC
login_uri:
description: The default login route for resolving session issues.
type: string
+ example: https://yourapp.com/api/auth/login
homepage_uri:
description: The homepage link to your application.
type: string
+ example: https://yourapp.com
+ has_cancel_button:
+ description: >-
+ Whether the application has a cancel button to allow users to
+ exit the auth flow [Beta].
+ type: boolean
+ example: false
applications:
type: object
properties:
@@ -8361,11 +8568,11 @@ components:
description: Identifier for the requesting client.
example: 3b0b5c6c8fcc464fab397f4969b5f482
exp:
- type: string
+ type: integer
description: Token expiration timestamp.
example: 1612345678
iat:
- type: string
+ type: integer
description: Token issuance timestamp.
example: 1612345678
token_error_response: