1 /**
2 * @schema AdminInvite
3 * type: object
4 * description: The invite's details.
5 * x-schemaName: AdminInvite
6 * required:
7 * - id
8 * - email
9 * - accepted
10 * - token
11 * - expires_at
12 * - created_at
13 * - updated_at
14 * properties:
15 * id:
16 * type: string
17 * title: id
18 * description: The invite's ID.
19 * email:
20 * type: string
21 * title: email
22 * description: The invite's email.
23 * format: email
24 * accepted:
25 * type: boolean
26 * title: accepted
27 * description: Whether the invite has been accepted.
28 * token:
29 * type: string
30 * title: token
31 * description: The invite's token.
32 * expires_at:
33 * type: string
34 * title: expires_at
35 * description: The invite's expiry date.
36 * format: date-time
37 * metadata:
38 * type: object
39 * description: The invite's metadata, can hold custom key-value pairs.
40 * externalDocs:
41 * url: https://docs.medusajs.com/api/admin#manage-metadata
42 * description: Learn how to manage metadata
43 * created_at:
44 * type: string
45 * format: date-time
46 * title: created_at
47 * description: The date the invite was created.
48 * updated_at:
49 * type: string
50 * format: date-time
51 * title: updated_at
52 * description: The date the invite was updated.
53 * rbac_roles:
54 * type: array
55 * description: The roles of the invited user.
56 * x-featureFlag: rbac
57 * items:
58 * $ref: "#/components/schemas/AdminRbacRole"
59 *
60 */
61