@zitadel/api 0.1.0-alpha.18 → 0.1.0-alpha.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +38 -3
  2. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  3. package/dist/generated/endpoints/zitadelNextGen.mjs +104 -98
  4. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  5. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +6 -2
  6. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  7. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +5132 -262
  8. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  9. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +2523 -110
  10. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  11. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +2581 -143
  12. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  13. package/dist/generated/model/index.d.mts +2 -2
  14. package/dist/generated/model/index.mjs +29 -5
  15. package/dist/generated/model/index.mjs.map +1 -1
  16. package/dist/{index-D6qIOslB.d.mts → index-Dt_0fSH9.d.mts} +2759 -390
  17. package/dist/index-Dt_0fSH9.d.mts.map +1 -0
  18. package/dist/runtime/api-factory.d.mts +1 -1
  19. package/dist/{zitadelNextGen-BCljAZpG.d.mts → zitadelNextGen-BkDpEAS9.d.mts} +62 -35
  20. package/dist/zitadelNextGen-BkDpEAS9.d.mts.map +1 -0
  21. package/package.json +1 -1
  22. package/src/generated/endpoints/zitadelNextGen.msw.ts +5330 -241
  23. package/src/generated/endpoints/zitadelNextGen.ts +129 -209
  24. package/src/generated/endpoints/zitadelNextGen.zod.ts +4635 -336
  25. package/src/generated/model/createAuthAttemptDefault.ts +10 -0
  26. package/src/generated/model/createFlowDefault.ts +10 -0
  27. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +11 -0
  28. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +11 -0
  29. package/src/generated/model/createFlowDefinitionDefault.ts +10 -0
  30. package/src/generated/model/createHandoffDefault.ts +10 -0
  31. package/src/generated/model/createProjectDefault.ts +20 -0
  32. package/src/generated/model/createSchemaBody.ts +5 -34
  33. package/src/generated/model/createSession201Session.ts +1 -1
  34. package/src/generated/model/createSession201SessionState.ts +1 -1
  35. package/src/generated/model/createSessionDefault.ts +20 -0
  36. package/src/generated/model/createUser201.ts +24 -4
  37. package/src/generated/model/createUser201Attributes.ts +14 -0
  38. package/src/generated/model/{createUserBodyMetadata.ts → createUser201Metadata.ts} +3 -3
  39. package/src/generated/model/{createUserBodyMetadataStatus.ts → createUser201MetadataStatus.ts} +3 -3
  40. package/src/generated/model/createUser500.ts +20 -0
  41. package/src/generated/model/{deleteTeamParams.ts → createUser500Details.ts} +4 -7
  42. package/src/generated/model/createUserBody.ts +22 -11
  43. package/src/generated/model/createUserBodyAttributes.ts +14 -0
  44. package/src/generated/model/createUserDefault.ts +10 -0
  45. package/src/generated/model/deleteFlowDefinitionDefault.ts +10 -0
  46. package/src/generated/model/deleteUserByIDDefault.ts +10 -0
  47. package/src/generated/model/exchangeHandoff200Session.ts +1 -1
  48. package/src/generated/model/exchangeHandoff200SessionState.ts +1 -1
  49. package/src/generated/model/exchangeHandoffDefault.ts +10 -0
  50. package/src/generated/model/getEvent200.ts +1372 -0
  51. package/src/generated/model/getEvent401.ts +20 -0
  52. package/src/generated/model/{getSessionParams.ts → getEvent401Details.ts} +4 -7
  53. package/src/generated/model/getEvent403.ts +20 -0
  54. package/src/generated/model/getEvent403Details.ts +12 -0
  55. package/src/generated/model/getEvent404.ts +20 -0
  56. package/src/generated/model/getEvent404Details.ts +12 -0
  57. package/src/generated/model/getEventDefault.ts +20 -0
  58. package/src/generated/model/getEventDefaultDetails.ts +12 -0
  59. package/src/generated/model/{getTeamParams.ts → getEventParams.ts} +1 -1
  60. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitions.ts +11 -0
  61. package/src/generated/model/getMySession200.ts +1 -1
  62. package/src/generated/model/getMySession200State.ts +1 -1
  63. package/src/generated/model/getMyUser200.ts +20 -7
  64. package/src/generated/model/getMyUser200Attributes.ts +14 -0
  65. package/src/generated/model/getSchemaById200.ts +5 -34
  66. package/src/generated/model/getSchemaByIdParams.ts +0 -5
  67. package/src/generated/model/getSession200.ts +1 -1
  68. package/src/generated/model/getSession200State.ts +1 -1
  69. package/src/generated/model/getUserByID200.ts +20 -7
  70. package/src/generated/model/getUserByID200Attributes.ts +14 -0
  71. package/src/generated/model/getUserByIDParams.ts +0 -5
  72. package/src/generated/model/index.ts +32 -13
  73. package/src/generated/model/listEvents200.ts +19 -0
  74. package/src/generated/model/listEvents200DataItem.ts +1372 -0
  75. package/src/generated/model/listEvents400.ts +20 -0
  76. package/src/generated/model/listEvents400Details.ts +12 -0
  77. package/src/generated/model/listEvents401.ts +20 -0
  78. package/src/generated/model/listEvents401Details.ts +12 -0
  79. package/src/generated/model/listEvents403.ts +20 -0
  80. package/src/generated/model/listEvents403Details.ts +12 -0
  81. package/src/generated/model/listEventsCategoryItem.ts +19 -0
  82. package/src/generated/model/listEventsDefault.ts +20 -0
  83. package/src/generated/model/{getFlowDefinitionParams.ts → listEventsDefaultDetails.ts} +4 -7
  84. package/src/generated/model/{getBrandingByIdParams.ts → listEventsOrder.ts} +6 -7
  85. package/src/generated/model/listEventsParams.ts +67 -0
  86. package/src/generated/model/listUserPasskeysParams.ts +0 -5
  87. package/src/generated/model/listUserTeamsDefault.ts +0 -20
  88. package/src/generated/model/listUserTeamsParams.ts +0 -5
  89. package/src/generated/model/listUsers200UsersItem.ts +20 -7
  90. package/src/generated/model/listUsers200UsersItemAttributes.ts +14 -0
  91. package/src/generated/model/patchProjectDefault.ts +10 -0
  92. package/src/generated/model/queryProjectsBodyFilterItem.ts +4 -0
  93. package/src/generated/model/queryProjectsBodyFilterItemOperation.ts +4 -0
  94. package/src/generated/model/querySessions200SessionsItem.ts +1 -1
  95. package/src/generated/model/querySessions200SessionsItemState.ts +1 -1
  96. package/src/generated/model/querySessionsBodyFilterItem.ts +6 -1
  97. package/src/generated/model/querySessionsBodyFilterItemField.ts +2 -1
  98. package/src/generated/model/querySessionsBodyFilterItemOperation.ts +4 -0
  99. package/src/generated/model/querySessionsDefault.ts +10 -0
  100. package/src/generated/model/queryTeamsBodyFilterItem.ts +9 -0
  101. package/src/generated/model/queryTeamsBodyFilterItemField.ts +9 -0
  102. package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +4 -0
  103. package/src/generated/model/queryTeamsBodySorting.ts +5 -0
  104. package/src/generated/model/queryTeamsBodySortingField.ts +9 -0
  105. package/src/generated/model/revokeMySessionDefault.ts +10 -0
  106. package/src/generated/model/revokeSessionDefault.ts +10 -0
  107. package/src/generated/model/setUserPasswordDefault.ts +10 -0
  108. package/src/generated/model/submitFlowStepDefault.ts +10 -0
  109. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemTransitions.ts +11 -0
  110. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +11 -0
  111. package/src/generated/model/updateFlowDefinitionDefault.ts +10 -0
  112. package/src/generated/model/verifyChallengeProofDefault.ts +10 -0
  113. package/dist/index-D6qIOslB.d.mts.map +0 -1
  114. package/dist/zitadelNextGen-BCljAZpG.d.mts.map +0 -1
  115. package/src/generated/model/deleteFlowDefinitionParams.ts +0 -15
  116. package/src/generated/model/deleteUserByIDParams.ts +0 -15
  117. package/src/generated/model/revokeSessionParams.ts +0 -15
  118. package/src/generated/model/setUserPasswordParams.ts +0 -15
  119. package/src/generated/model/updateFlowDefinitionParams.ts +0 -15
  120. package/src/generated/model/updateTeamParams.ts +0 -15
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+ import type { ListEvents400Details } from "./listEvents400Details";
9
+
10
+ /**
11
+ * Standard error payload returned for failed API requests.
12
+ */
13
+ export type ListEvents400 = {
14
+ /** Stable machine-readable error code. */
15
+ code: string;
16
+ /** Human-readable explanation of the error. */
17
+ message: string;
18
+ /** Additional error-specific context. */
19
+ details?: ListEvents400Details;
20
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * Additional error-specific context.
11
+ */
12
+ export type ListEvents400Details = { [key: string]: unknown };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+ import type { ListEvents401Details } from "./listEvents401Details";
9
+
10
+ /**
11
+ * Standard error payload returned for failed API requests.
12
+ */
13
+ export type ListEvents401 = {
14
+ /** Stable machine-readable error code. */
15
+ code: string;
16
+ /** Human-readable explanation of the error. */
17
+ message: string;
18
+ /** Additional error-specific context. */
19
+ details?: ListEvents401Details;
20
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * Additional error-specific context.
11
+ */
12
+ export type ListEvents401Details = { [key: string]: unknown };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+ import type { ListEvents403Details } from "./listEvents403Details";
9
+
10
+ /**
11
+ * Standard error payload returned for failed API requests.
12
+ */
13
+ export type ListEvents403 = {
14
+ /** Stable machine-readable error code. */
15
+ code: string;
16
+ /** Human-readable explanation of the error. */
17
+ message: string;
18
+ /** Additional error-specific context. */
19
+ details?: ListEvents403Details;
20
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * Additional error-specific context.
11
+ */
12
+ export type ListEvents403Details = { [key: string]: unknown };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ export type ListEventsCategoryItem =
10
+ (typeof ListEventsCategoryItem)[keyof typeof ListEventsCategoryItem];
11
+
12
+ export const ListEventsCategoryItem = {
13
+ request: "request",
14
+ auth: "auth",
15
+ session: "session",
16
+ admin: "admin",
17
+ entity: "entity",
18
+ signal: "signal",
19
+ } as const;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+ import type { ListEventsDefaultDetails } from "./listEventsDefaultDetails";
9
+
10
+ /**
11
+ * Standard error payload returned for failed API requests.
12
+ */
13
+ export type ListEventsDefault = {
14
+ /** Stable machine-readable error code. */
15
+ code: string;
16
+ /** Human-readable explanation of the error. */
17
+ message: string;
18
+ /** Additional error-specific context. */
19
+ details?: ListEventsDefaultDetails;
20
+ };
@@ -6,10 +6,7 @@
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
8
 
9
- export type GetFlowDefinitionParams = {
10
- /**
11
- * The project id to filter by.
12
- * @pattern ^[a-zA-Z0-9_-]+$
13
- */
14
- project_id: string;
15
- };
9
+ /**
10
+ * Additional error-specific context.
11
+ */
12
+ export type ListEventsDefaultDetails = { [key: string]: unknown };
@@ -6,10 +6,9 @@
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
8
 
9
- export type GetBrandingByIdParams = {
10
- /**
11
- * The unique identifier of the project
12
- * @pattern ^[a-zA-Z0-9_-]+$
13
- */
14
- project_id: string;
15
- };
9
+ export type ListEventsOrder = (typeof ListEventsOrder)[keyof typeof ListEventsOrder];
10
+
11
+ export const ListEventsOrder = {
12
+ asc: "asc",
13
+ desc: "desc",
14
+ } as const;
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+ import type { ListEventsCategoryItem } from "./listEventsCategoryItem";
9
+ import type { ListEventsOrder } from "./listEventsOrder";
10
+
11
+ export type ListEventsParams = {
12
+ /**
13
+ * The unique identifier of the project
14
+ * @pattern ^[a-zA-Z0-9_-]+$
15
+ */
16
+ project_id: string;
17
+ /**
18
+ * Filter by wide-event category. Repeatable (OR within the parameter).
19
+
20
+ */
21
+ category?: ListEventsCategoryItem[];
22
+ /**
23
+ * Exact-match filter on `event_type`. Repeatable (OR within the parameter).
24
+
25
+ */
26
+ event_type?: string[];
27
+ actor_id?: string;
28
+ client_id?: string;
29
+ session_id?: string;
30
+ flow_id?: string;
31
+ request_id?: string;
32
+ fingerprint?: string;
33
+ entity_type?: string;
34
+ entity_id?: string;
35
+ /**
36
+ * Filter by emit-time team scope stored on the event.
37
+ */
38
+ team_id?: string;
39
+ /**
40
+ * Inclusive lower bound on `created_at` (RFC 3339).
41
+ */
42
+ created_after?: string;
43
+ /**
44
+ * Exclusive upper bound on `created_at` (RFC 3339).
45
+ */
46
+ created_before?: string;
47
+ /**
48
+ * Sort direction on `(created_at, id)`. Default `desc` (newest first)
49
+ for audit UI. Pass `asc` for oldest-first.
50
+
51
+ */
52
+ order?: ListEventsOrder;
53
+ /**
54
+ * Token for fetching the next page of results.
55
+ Obtain this value from `next_page_token` in the previous response.
56
+ Omit to start from the beginning.
57
+ Its format is opaque and may change between releases.
58
+
59
+ */
60
+ page_token?: string;
61
+ /**
62
+ * Maximum number of items to return.
63
+ * @minimum 1
64
+ * @maximum 100
65
+ */
66
+ limit?: number;
67
+ };
@@ -21,9 +21,4 @@ Its format is opaque and may change between releases.
21
21
 
22
22
  */
23
23
  page_token?: string;
24
- /**
25
- * The unique identifier of the project
26
- * @pattern ^[a-zA-Z0-9_-]+$
27
- */
28
- project_id: string;
29
24
  };
@@ -37,26 +37,6 @@ export type ListUserTeamsDefault =
37
37
  } & {
38
38
  code: "req.invalid";
39
39
  })
40
- | ({
41
- /** Stable machine-readable error code. */
42
- code: string;
43
- /** Human-readable explanation of the error. */
44
- message: string;
45
- /** Additional error-specific context. */
46
- details?: { [key: string]: unknown };
47
- } & {
48
- code: "team.team_not_found";
49
- })
50
- | ({
51
- /** Stable machine-readable error code. */
52
- code: string;
53
- /** Human-readable explanation of the error. */
54
- message: string;
55
- /** Additional error-specific context. */
56
- details?: { [key: string]: unknown };
57
- } & {
58
- code: "team.permission_denied";
59
- })
60
40
  | ({
61
41
  /** Stable machine-readable error code. */
62
42
  code: string;
@@ -21,9 +21,4 @@ Its format is opaque and may change between releases.
21
21
 
22
22
  */
23
23
  page_token?: string;
24
- /**
25
- * The unique identifier of the project
26
- * @pattern ^[a-zA-Z0-9_-]+$
27
- */
28
- project_id: string;
29
24
  };
@@ -5,21 +5,34 @@
5
5
  * This is the next generation of the Zitadel identity platform.
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
+ import type { ListUsers200UsersItemAttributes } from "./listUsers200UsersItemAttributes";
8
9
  import type { ListUsers200UsersItemMetadata } from "./listUsers200UsersItemMetadata";
9
10
 
10
11
  /**
11
12
  * A user represents an individual identity in the system. It can be used to
12
13
  represent a human user, but also a service account or any other type of
13
- identity. The content of a user is determined by the configured schema for
14
- users, this is only a base schema.
14
+ identity.
15
15
 
16
- The server assigns the resource primary key (`id`) on create. Clients must
17
- not send `id` in the create body; it is returned in the create response.
16
+ `attributes` is the document that satisfies the user schema named by
17
+ `schema`: its property names and types are defined entirely by that schema,
18
+ and it is what the schema validates. The rest of the object — `id`,
19
+ `schema`, `metadata` — is the server-owned envelope. Keeping the two apart
20
+ means a schema may name a property `id` or `metadata` without colliding with
21
+ the envelope, and closed-world keywords (`additionalProperties: false`,
22
+ `propertyNames`, `unevaluatedProperties`) behave as their author expects.
18
23
 
19
24
  */
20
25
  export type ListUsers200UsersItem = {
21
26
  /** @pattern ^user_[a-zA-Z0-9_-]+$ */
22
- id?: string;
23
- metadata?: ListUsers200UsersItemMetadata;
24
- [key: string]: unknown;
27
+ id: string;
28
+ /** The schema that defines the content of `attributes`. These schemas can be
29
+ created using the `/schemas` endpoint. A default schema is provided.
30
+ This schema can be retrieved using the same endpoint.
31
+ */
32
+ schema: string;
33
+ /** The user's content, satisfying the schema named by `schema`. Property
34
+ names and types are determined entirely by that schema.
35
+ */
36
+ attributes: ListUsers200UsersItemAttributes;
37
+ metadata: ListUsers200UsersItemMetadata;
25
38
  };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * The user's content, satisfying the schema named by `schema`. Property
11
+ names and types are determined entirely by that schema.
12
+
13
+ */
14
+ export type ListUsers200UsersItemAttributes = { [key: string]: unknown };
@@ -17,6 +17,16 @@ export type PatchProjectDefault =
17
17
  } & {
18
18
  code: "auth.unauthorized";
19
19
  })
20
+ | ({
21
+ /** Stable machine-readable error code. */
22
+ code: string;
23
+ /** Human-readable explanation of the error. */
24
+ message: string;
25
+ /** Additional error-specific context. */
26
+ details?: { [key: string]: unknown };
27
+ } & {
28
+ code: "evt.invalid";
29
+ })
20
30
  | ({
21
31
  /** Stable machine-readable error code. */
22
32
  code: string;
@@ -17,6 +17,10 @@ export type QueryProjectsBodyFilterItem = {
17
17
  value?: string | number | boolean | null;
18
18
  /** Filter operation defines the operations which can be used when filtering on a
19
19
  query endpoint.
20
+
21
+ On text fields, `contains` is a case-insensitive substring match. `equals`
22
+ compares the whole value and is case-sensitive unless the field documents
23
+ otherwise.
20
24
  */
21
25
  operation: QueryProjectsBodyFilterItemOperation;
22
26
  };
@@ -10,6 +10,10 @@
10
10
  * Filter operation defines the operations which can be used when filtering on a
11
11
  query endpoint.
12
12
 
13
+ On text fields, `contains` is a case-insensitive substring match. `equals`
14
+ compares the whole value and is case-sensitive unless the field documents
15
+ otherwise.
16
+
13
17
  */
14
18
  export type QueryProjectsBodyFilterItemOperation =
15
19
  (typeof QueryProjectsBodyFilterItemOperation)[keyof typeof QueryProjectsBodyFilterItemOperation];
@@ -28,7 +28,7 @@ export type QuerySessions200SessionsItem = {
28
28
  /** @pattern ^[a-zA-Z0-9_-]+$ */
29
29
  project_id: string;
30
30
  /** Current lifecycle state of the session:
31
- - `building`: has a user factor but is still gathering authentication factors
31
+ - `building`: no verified authentication factors yet
32
32
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
33
33
  - `expired`: TTL elapsed
34
34
  */
@@ -8,7 +8,7 @@
8
8
 
9
9
  /**
10
10
  * Current lifecycle state of the session:
11
- - `building`: has a user factor but is still gathering authentication factors
11
+ - `building`: no verified authentication factors yet
12
12
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
13
13
  - `expired`: TTL elapsed
14
14
 
@@ -12,7 +12,8 @@ export type QuerySessionsBodyFilterItem = {
12
12
  /** Field to filter sessions by:
13
13
  - `created_at`: RFC3339 timestamp
14
14
  - `user_id`: user id
15
- - `state`: one of `building`, `active`, `expired`
15
+ - `state`: one of `building`, `active`, `expired`. State is computed at read
16
+ time, so a session expiring mid-request can match `active` but return `expired`.
16
17
  */
17
18
  field: QuerySessionsBodyFilterItemField;
18
19
  /** Filter-value specifies which values can be filtered by a query endpoint. This
@@ -22,6 +23,10 @@ export type QuerySessionsBodyFilterItem = {
22
23
  value?: string | number | boolean | null;
23
24
  /** Filter operation defines the operations which can be used when filtering on a
24
25
  query endpoint.
26
+
27
+ On text fields, `contains` is a case-insensitive substring match. `equals`
28
+ compares the whole value and is case-sensitive unless the field documents
29
+ otherwise.
25
30
  */
26
31
  operation: QuerySessionsBodyFilterItemOperation;
27
32
  };
@@ -10,7 +10,8 @@
10
10
  * Field to filter sessions by:
11
11
  - `created_at`: RFC3339 timestamp
12
12
  - `user_id`: user id
13
- - `state`: one of `building`, `active`, `expired`
13
+ - `state`: one of `building`, `active`, `expired`. State is computed at read
14
+ time, so a session expiring mid-request can match `active` but return `expired`.
14
15
 
15
16
  */
16
17
  export type QuerySessionsBodyFilterItemField =
@@ -10,6 +10,10 @@
10
10
  * Filter operation defines the operations which can be used when filtering on a
11
11
  query endpoint.
12
12
 
13
+ On text fields, `contains` is a case-insensitive substring match. `equals`
14
+ compares the whole value and is case-sensitive unless the field documents
15
+ otherwise.
16
+
13
17
  */
14
18
  export type QuerySessionsBodyFilterItemOperation =
15
19
  (typeof QuerySessionsBodyFilterItemOperation)[keyof typeof QuerySessionsBodyFilterItemOperation];
@@ -37,6 +37,16 @@ export type QuerySessionsDefault =
37
37
  } & {
38
38
  code: "not_implemented";
39
39
  })
40
+ | ({
41
+ /** Stable machine-readable error code. */
42
+ code: string;
43
+ /** Human-readable explanation of the error. */
44
+ message: string;
45
+ /** Additional error-specific context. */
46
+ details?: { [key: string]: unknown };
47
+ } & {
48
+ code: "proj.missing_id";
49
+ })
40
50
  | ({
41
51
  /** Stable machine-readable error code. */
42
52
  code: string;
@@ -9,6 +9,11 @@ import type { QueryTeamsBodyFilterItemField } from "./queryTeamsBodyFilterItemFi
9
9
  import type { QueryTeamsBodyFilterItemOperation } from "./queryTeamsBodyFilterItemOperation";
10
10
 
11
11
  export type QueryTeamsBodyFilterItem = {
12
+ /** Field to filter or sort teams by.
13
+
14
+ Team names are unique per project case-insensitively, so `name` is matched
15
+ case-insensitively by `equals` as well as by `contains`.
16
+ */
12
17
  field: QueryTeamsBodyFilterItemField;
13
18
  /** Filter-value specifies which values can be filtered by a query endpoint. This
14
19
  is a union of types. When a value is specified which is not assignable to the
@@ -17,6 +22,10 @@ export type QueryTeamsBodyFilterItem = {
17
22
  value?: string | number | boolean | null;
18
23
  /** Filter operation defines the operations which can be used when filtering on a
19
24
  query endpoint.
25
+
26
+ On text fields, `contains` is a case-insensitive substring match. `equals`
27
+ compares the whole value and is case-sensitive unless the field documents
28
+ otherwise.
20
29
  */
21
30
  operation: QueryTeamsBodyFilterItemOperation;
22
31
  };
@@ -6,9 +6,18 @@
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
8
 
9
+ /**
10
+ * Field to filter or sort teams by.
11
+
12
+ Team names are unique per project case-insensitively, so `name` is matched
13
+ case-insensitively by `equals` as well as by `contains`.
14
+
15
+ */
9
16
  export type QueryTeamsBodyFilterItemField =
10
17
  (typeof QueryTeamsBodyFilterItemField)[keyof typeof QueryTeamsBodyFilterItemField];
11
18
 
12
19
  export const QueryTeamsBodyFilterItemField = {
13
20
  created_at: "created_at",
21
+ name: "name",
22
+ status: "status",
14
23
  } as const;
@@ -10,6 +10,10 @@
10
10
  * Filter operation defines the operations which can be used when filtering on a
11
11
  query endpoint.
12
12
 
13
+ On text fields, `contains` is a case-insensitive substring match. `equals`
14
+ compares the whole value and is case-sensitive unless the field documents
15
+ otherwise.
16
+
13
17
  */
14
18
  export type QueryTeamsBodyFilterItemOperation =
15
19
  (typeof QueryTeamsBodyFilterItemOperation)[keyof typeof QueryTeamsBodyFilterItemOperation];
@@ -9,6 +9,11 @@ import type { QueryTeamsBodySortingDirection } from "./queryTeamsBodySortingDire
9
9
  import type { QueryTeamsBodySortingField } from "./queryTeamsBodySortingField";
10
10
 
11
11
  export type QueryTeamsBodySorting = {
12
+ /** Field to filter or sort teams by.
13
+
14
+ Team names are unique per project case-insensitively, so `name` is matched
15
+ case-insensitively by `equals` as well as by `contains`.
16
+ */
12
17
  field: QueryTeamsBodySortingField;
13
18
  direction: QueryTeamsBodySortingDirection;
14
19
  };
@@ -6,9 +6,18 @@
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
8
 
9
+ /**
10
+ * Field to filter or sort teams by.
11
+
12
+ Team names are unique per project case-insensitively, so `name` is matched
13
+ case-insensitively by `equals` as well as by `contains`.
14
+
15
+ */
9
16
  export type QueryTeamsBodySortingField =
10
17
  (typeof QueryTeamsBodySortingField)[keyof typeof QueryTeamsBodySortingField];
11
18
 
12
19
  export const QueryTeamsBodySortingField = {
13
20
  created_at: "created_at",
21
+ name: "name",
22
+ status: "status",
14
23
  } as const;
@@ -17,6 +17,16 @@ export type RevokeMySessionDefault =
17
17
  } & {
18
18
  code: "auth.unauthorized";
19
19
  })
20
+ | ({
21
+ /** Stable machine-readable error code. */
22
+ code: string;
23
+ /** Human-readable explanation of the error. */
24
+ message: string;
25
+ /** Additional error-specific context. */
26
+ details?: { [key: string]: unknown };
27
+ } & {
28
+ code: "evt.invalid";
29
+ })
20
30
  | ({
21
31
  /** Stable machine-readable error code. */
22
32
  code: string;
@@ -17,6 +17,16 @@ export type RevokeSessionDefault =
17
17
  } & {
18
18
  code: "auth.unauthorized";
19
19
  })
20
+ | ({
21
+ /** Stable machine-readable error code. */
22
+ code: string;
23
+ /** Human-readable explanation of the error. */
24
+ message: string;
25
+ /** Additional error-specific context. */
26
+ details?: { [key: string]: unknown };
27
+ } & {
28
+ code: "evt.invalid";
29
+ })
20
30
  | ({
21
31
  /** Stable machine-readable error code. */
22
32
  code: string;
@@ -17,6 +17,16 @@ export type SetUserPasswordDefault =
17
17
  } & {
18
18
  code: "auth.unauthorized";
19
19
  })
20
+ | ({
21
+ /** Stable machine-readable error code. */
22
+ code: string;
23
+ /** Human-readable explanation of the error. */
24
+ message: string;
25
+ /** Additional error-specific context. */
26
+ details?: { [key: string]: unknown };
27
+ } & {
28
+ code: "evt.invalid";
29
+ })
20
30
  | ({
21
31
  /** Stable machine-readable error code. */
22
32
  code: string;
@@ -107,6 +107,16 @@ export type SubmitFlowStepDefault =
107
107
  } & {
108
108
  code: "enc_key.not_found";
109
109
  })
110
+ | ({
111
+ /** Stable machine-readable error code. */
112
+ code: string;
113
+ /** Human-readable explanation of the error. */
114
+ message: string;
115
+ /** Additional error-specific context. */
116
+ details?: { [key: string]: unknown };
117
+ } & {
118
+ code: "evt.invalid";
119
+ })
110
120
  | ({
111
121
  /** Stable machine-readable error code. */
112
122
  code: string;
@@ -31,5 +31,16 @@ export type UpdateFlowDefinition200FlowDefinitionStepsItemTransitions = {
31
31
  Example: login → recovery → back to login.
32
32
  */
33
33
  action?: "switch" | "pivot" | null;
34
+ /** Local re-purposing. When set, taking this transition changes the
35
+ flow's current purpose to this value — the dispatch mode a step's
36
+ challenges run under — while the flow's original purpose stays
37
+ pinned. Must be a purpose this definition serves, and `target`
38
+ must be that purpose's entry step. Mutually exclusive with
39
+ `action`: a transition either re-purposes within this flow or
40
+ targets another flow, never both.
41
+ Example: a "Sign up" navigation on the login identifier step
42
+ (`{ target: register, purpose: register }`).
43
+ */
44
+ purpose?: "login" | "register" | "recovery" | "profiling" | "reauth" | "link_account" | null;
34
45
  };
35
46
  };