Skip to main content
Version: 0.14.0 (Latest)

๐Ÿ“ Identity schemas

identityIdPathParameter is a reusable OpenAPIParameter; the other seven exports are withSchema(...) SDK composers. They define request contracts for Identity features and routes, plus Profileโ€™s identity-profile lookup.

Inventoryโ€‹

ExportRequest locationContract
identityIdPathParameterPathRequired string identityId reusable parameter.
getIdentitySchemaPathRequired identityId.
findIdentitySchemaQueryOptional name, page, and limit.
updateIdentitySchemaPath, bodyRequired identityId; required strict JSON object with optional update fields.
deleteIdentitySchemaPathRequired identityId.
lockIdentitySchemaPathRequired identityId.
unlockIdentitySchemaPathRequired identityId.
findByIdentityIdSchemaPath, QueryRequired identityId, plus optional pagination query fields.

Detailsโ€‹

identityIdPathParameterโ€‹

Definition

Reusable path-parameter definition for an identity ID.

LocationFieldTypeRequiredConstraints
PathidentityIdstringYesNo format or pattern restriction is declared.

Used by getIdentitySchema, updateIdentitySchema, deleteIdentitySchema, lockIdentitySchema, unlockIdentitySchema, and findByIdentityIdSchema. Notification also spreads it into updateNotificationToReadBatchSchema.

View complete source
export const identityIdPathParameter: OpenAPIParameter = {
in: 'path',
name: 'identityId',
required: true,
schema: {
type: 'string',
},
};

getIdentitySchemaโ€‹

Definition

Validates the path ID for identity retrieval.

LocationFieldTypeRequiredConstraints
PathidentityIdstringYesSpread from identityIdPathParameter.

Used by route: getIdentityRoute. Used by feature: getIdentityFeature.

View complete source
export const getIdentitySchema = withSchema({
parameters: [{...identityIdPathParameter}],
});

findIdentitySchemaโ€‹

Definition

Validates the identity-list query. page and limit are spread from the shared paginationQueryParametersSchema.

LocationFieldTypeRequiredConstraints
QuerynamestringNoOptional identity-name filter.
QuerypageintegerNoMinimum 1; maximum 1000.
QuerylimitintegerNoMinimum 1; maximum 50.

Used by route: findIdentitiesRoute. Used by feature: findIdentitiesFeature.

View complete source
export const findIdentitySchema = withSchema({
parameters: [
{
in: 'query',
name: 'name',
required: false,
schema: {
type: 'string',
},
},
...paginationQueryParametersSchema,
],
});

updateIdentitySchemaโ€‹

Definition

Validates an identity update. The request body is required and only accepts the listed JSON properties; no body property is individually required.

LocationFieldTypeRequiredConstraints
PathidentityIdstringYesSpread from identityIdPathParameter.
BodybodyobjectYesContent type application/json; additionalProperties: false.
BodyemailstringNoPermitted JSON property.
BodyemailVerifiedbooleanNoPermitted JSON property.
BodytypeIdstringNoPermitted JSON property.

Used by route: updateIdentityRoute. Used by feature: updateIdentityFeature.

View complete source
export const updateIdentitySchema = withSchema({
parameters: [{...identityIdPathParameter}],
requestBody: {
content: {
'application/json': {
schema: {
$schema: 'http://json-schema.org/draft-07/schema#',
additionalProperties: false,
properties: {
email: {type: 'string'},
emailVerified: {type: 'boolean'},
typeId: {type: 'string'},
},
type: 'object',
},
},
},
required: true,
},
});

deleteIdentitySchemaโ€‹

Definition

Validates the path ID for identity deletion.

LocationFieldTypeRequiredConstraints
PathidentityIdstringYesSpread from identityIdPathParameter.

Used by route: deleteIdentityRoute. Used by feature: deleteIdentityFeature.

View complete source
export const deleteIdentitySchema = withSchema({
parameters: [{...identityIdPathParameter}],
});

lockIdentitySchemaโ€‹

Definition

Validates the path ID for identity locking.

LocationFieldTypeRequiredConstraints
PathidentityIdstringYesSpread from identityIdPathParameter.

Used by route: lockIdentityRoute. Used by feature: lockIdentityFeature.

View complete source
export const lockIdentitySchema = withSchema({
parameters: [{...identityIdPathParameter}],
});

unlockIdentitySchemaโ€‹

Definition

Validates the path ID for identity unlocking.

LocationFieldTypeRequiredConstraints
PathidentityIdstringYesSpread from identityIdPathParameter.

Used by route: unlockIdentityRoute. Used by feature: unlockIdentityFeature.

View complete source
export const unlockIdentitySchema = withSchema({
parameters: [{...identityIdPathParameter}],
});

findByIdentityIdSchemaโ€‹

Definition

Validates Profileโ€™s identity-profile lookup. Its pagination fields are spread from the shared paginationQueryParametersSchema.

LocationFieldTypeRequiredConstraints
PathidentityIdstringYesSpread from identityIdPathParameter.
QuerypageintegerNoMinimum 1; maximum 1000.
QuerylimitintegerNoMinimum 1; maximum 50.

Used by route: findProfilesByIdentityIdRoute. Used by feature: findProfilesByIdentityIdFeature.

View complete source
export const findByIdentityIdSchema = withSchema({
parameters: [{...identityIdPathParameter}, ...paginationQueryParametersSchema],
});