-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from kinde-oss/feat/specupdate
- Loading branch information
Showing
5 changed files
with
792 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -656,6 +656,10 @@ export const $user = { | |
type: "string", | ||
description: "Default email address of the user in Kinde.", | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "User's primary phone number.", | ||
}, | ||
username: { | ||
type: "string", | ||
description: "Primary username of the user in Kinde.", | ||
|
@@ -792,6 +796,10 @@ export const $users_response = { | |
type: "string", | ||
description: "Default email address of the user in Kinde.", | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "User's primary phone number.", | ||
}, | ||
username: { | ||
type: "string", | ||
description: "Primary username of the user in Kinde.", | ||
|
@@ -864,6 +872,125 @@ export const $users_response = { | |
}, | ||
} as const; | ||
|
||
export const $search_users_response = { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "Response code.", | ||
}, | ||
message: { | ||
type: "string", | ||
description: "Response message.", | ||
}, | ||
results: { | ||
type: "array", | ||
items: { | ||
type: "object", | ||
properties: { | ||
id: { | ||
type: "string", | ||
description: "Unique ID of the user in Kinde.", | ||
example: "kp_0ba7c433e5d648cf992621ce99d42817", | ||
}, | ||
provided_id: { | ||
type: "string", | ||
description: "External ID for user.", | ||
nullable: true, | ||
example: "U123456", | ||
}, | ||
email: { | ||
type: "string", | ||
description: "Default email address of the user in Kinde.", | ||
nullable: true, | ||
example: "[email protected]", | ||
}, | ||
username: { | ||
type: "string", | ||
description: "Primary username of the user in Kinde.", | ||
nullable: true, | ||
example: "john.snow", | ||
}, | ||
last_name: { | ||
type: "string", | ||
description: "User's last name.", | ||
example: "Snow", | ||
}, | ||
first_name: { | ||
type: "string", | ||
description: "User's first name.", | ||
example: "John", | ||
}, | ||
is_suspended: { | ||
type: "boolean", | ||
description: "Whether the user is currently suspended or not.", | ||
example: true, | ||
}, | ||
picture: { | ||
type: "string", | ||
description: "User's profile picture URL.", | ||
example: "https://example.com/john_snow.jpg", | ||
nullable: true, | ||
}, | ||
total_sign_ins: { | ||
type: "integer", | ||
description: "Total number of user sign ins.", | ||
nullable: true, | ||
example: 1, | ||
}, | ||
failed_sign_ins: { | ||
type: "integer", | ||
description: "Number of consecutive failed user sign ins.", | ||
nullable: true, | ||
example: 0, | ||
}, | ||
last_signed_in: { | ||
type: "string", | ||
description: "Last sign in date in ISO 8601 format.", | ||
nullable: true, | ||
example: "2025-02-12T18:02:23.614638+00:00", | ||
}, | ||
created_on: { | ||
type: "string", | ||
description: "Date of user creation in ISO 8601 format.", | ||
nullable: true, | ||
example: "2025-02-12T18:02:23.614638+00:00", | ||
}, | ||
organizations: { | ||
type: "array", | ||
description: "Array of organizations a user belongs to.", | ||
items: { | ||
type: "string", | ||
}, | ||
}, | ||
identities: { | ||
type: "array", | ||
description: "Array of identities belonging to the user.", | ||
items: { | ||
type: "object", | ||
properties: { | ||
type: { | ||
type: "string", | ||
}, | ||
identity: { | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
}, | ||
properties: { | ||
type: "object", | ||
description: "The user properties.", | ||
additionalProperties: { | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} as const; | ||
|
||
export const $create_user_response = { | ||
type: "object", | ||
properties: { | ||
|
@@ -1949,6 +2076,19 @@ export const $get_organization_response = { | |
deprecated: true, | ||
description: "Deprecated - Use 'is_auto_membership_enabled' instead", | ||
}, | ||
sender_name: { | ||
nullable: true, | ||
type: "string", | ||
example: "Acme Corp", | ||
description: "The name of the organization that will be used in emails", | ||
}, | ||
sender_email: { | ||
nullable: true, | ||
type: "string", | ||
example: "[email protected]", | ||
description: | ||
"The email address that will be used in emails. Requires custom SMTP to be set up.", | ||
}, | ||
}, | ||
} as const; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.