@kickflow/mcp-server 1.0.6 → 1.0.7
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.
- package/dist/kickflow-api/generated/api-definitions.js +817 -817
- package/dist/kickflow-api/generated/api-definitions.js.map +1 -1
- package/dist/kickflow-api/generated/audit-log/audit-log.zod.d.ts +17 -17
- package/dist/kickflow-api/generated/audit-log/audit-log.zod.js +90 -42
- package/dist/kickflow-api/generated/audit-log/audit-log.zod.js.map +1 -1
- package/dist/kickflow-api/generated/category/category.zod.d.ts +9 -9
- package/dist/kickflow-api/generated/category/category.zod.js +50 -31
- package/dist/kickflow-api/generated/category/category.zod.js.map +1 -1
- package/dist/kickflow-api/generated/comment/comment.zod.d.ts +67 -67
- package/dist/kickflow-api/generated/comment/comment.zod.js +492 -247
- package/dist/kickflow-api/generated/comment/comment.zod.js.map +1 -1
- package/dist/kickflow-api/generated/file/file.zod.d.ts +4 -4
- package/dist/kickflow-api/generated/file/file.zod.js +13 -13
- package/dist/kickflow-api/generated/file/file.zod.js.map +1 -1
- package/dist/kickflow-api/generated/folder/folder.zod.d.ts +56 -56
- package/dist/kickflow-api/generated/folder/folder.zod.js +374 -179
- package/dist/kickflow-api/generated/folder/folder.zod.js.map +1 -1
- package/dist/kickflow-api/generated/general-master/general-master.zod.d.ts +24 -24
- package/dist/kickflow-api/generated/general-master/general-master.zod.js +607 -267
- package/dist/kickflow-api/generated/general-master/general-master.zod.js.map +1 -1
- package/dist/kickflow-api/generated/grade/grade.zod.d.ts +17 -17
- package/dist/kickflow-api/generated/grade/grade.zod.js +157 -59
- package/dist/kickflow-api/generated/grade/grade.zod.js.map +1 -1
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.js +1 -6
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.js.map +1 -1
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.d.ts +1243 -1679
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.js +44 -96
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.js.map +1 -1
- package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.d.ts +20 -20
- package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.js +189 -116
- package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.js.map +1 -1
- package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.d.ts +82 -82
- package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.js +670 -286
- package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.js.map +1 -1
- package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.d.ts +82 -82
- package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.js +670 -286
- package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.js.map +1 -1
- package/dist/kickflow-api/generated/role/role.zod.d.ts +69 -69
- package/dist/kickflow-api/generated/role/role.zod.js +753 -281
- package/dist/kickflow-api/generated/role/role.zod.js.map +1 -1
- package/dist/kickflow-api/generated/route/route.zod.d.ts +91 -91
- package/dist/kickflow-api/generated/route/route.zod.js +795 -312
- package/dist/kickflow-api/generated/route/route.zod.js.map +1 -1
- package/dist/kickflow-api/generated/team/team.zod.d.ts +123 -123
- package/dist/kickflow-api/generated/team/team.zod.js +775 -373
- package/dist/kickflow-api/generated/team/team.zod.js.map +1 -1
- package/dist/kickflow-api/generated/ticket/ticket.zod.d.ts +8808 -8808
- package/dist/kickflow-api/generated/ticket/ticket.zod.js +130997 -41640
- package/dist/kickflow-api/generated/ticket/ticket.zod.js.map +1 -1
- package/dist/kickflow-api/generated/user/user.zod.d.ts +98 -98
- package/dist/kickflow-api/generated/user/user.zod.js +593 -291
- package/dist/kickflow-api/generated/user/user.zod.js.map +1 -1
- package/dist/kickflow-api/generated/workflow/workflow.zod.d.ts +175 -175
- package/dist/kickflow-api/generated/workflow/workflow.zod.js +2384 -810
- package/dist/kickflow-api/generated/workflow/workflow.zod.js.map +1 -1
- package/dist/kickflow-api/schema-registry.js +6 -2
- package/dist/kickflow-api/schema-registry.js.map +1 -1
- package/package.json +7 -7
|
@@ -3,31 +3,54 @@ import * as zod from 'zod';
|
|
|
3
3
|
* 現在のユーザーを取得します。
|
|
4
4
|
* @summary 現在のユーザーを取得
|
|
5
5
|
*/
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
6
|
+
export const getCurrentUserResponseOneEmailMax = 254;
|
|
7
|
+
export const getCurrentUserResponseOneCodeMax = 100;
|
|
8
|
+
export const getCurrentUserResponseOneFirstNameMax = 255;
|
|
9
|
+
export const getCurrentUserResponseOneLastNameMax = 255;
|
|
10
|
+
export const getCurrentUserResponseOneFullNameMax = 255;
|
|
11
|
+
export const getCurrentUserResponseOneEmployeeIdMax = 30;
|
|
12
|
+
export const GetCurrentUserResponse = zod
|
|
13
|
+
.object({
|
|
14
|
+
id: zod.uuid().describe('UUID'),
|
|
15
|
+
email: zod
|
|
16
|
+
.email()
|
|
17
|
+
.max(getCurrentUserResponseOneEmailMax)
|
|
18
|
+
.describe('メールアドレス'),
|
|
19
|
+
code: zod.string().max(getCurrentUserResponseOneCodeMax).describe('コード'),
|
|
20
|
+
firstName: zod
|
|
21
|
+
.string()
|
|
22
|
+
.max(getCurrentUserResponseOneFirstNameMax)
|
|
23
|
+
.describe('名'),
|
|
24
|
+
lastName: zod
|
|
25
|
+
.string()
|
|
26
|
+
.max(getCurrentUserResponseOneLastNameMax)
|
|
27
|
+
.describe('姓'),
|
|
28
|
+
fullName: zod
|
|
29
|
+
.string()
|
|
30
|
+
.max(getCurrentUserResponseOneFullNameMax)
|
|
31
|
+
.describe('フルネーム'),
|
|
32
|
+
employeeId: zod
|
|
33
|
+
.string()
|
|
34
|
+
.max(getCurrentUserResponseOneEmployeeIdMax)
|
|
35
|
+
.nullish()
|
|
36
|
+
.describe('社員番号'),
|
|
37
|
+
image: zod
|
|
38
|
+
.object({
|
|
39
|
+
'100x100': zod.string().nullable(),
|
|
40
|
+
'64x64': zod.string().nullable(),
|
|
41
|
+
'32x32': zod.string().nullable(),
|
|
42
|
+
})
|
|
43
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
44
|
+
status: zod
|
|
45
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
46
|
+
.describe('ステータス'),
|
|
47
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
48
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
49
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
50
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
51
|
+
})
|
|
52
|
+
.describe('ユーザー')
|
|
53
|
+
.describe('ユーザー詳細');
|
|
31
54
|
/**
|
|
32
55
|
* ユーザー一覧を取得します。
|
|
33
56
|
* @summary ユーザー一覧を取得
|
|
@@ -36,11 +59,27 @@ export const listUsersQueryPageDefault = 1;
|
|
|
36
59
|
export const listUsersQueryPerPageDefault = 25;
|
|
37
60
|
export const listUsersQueryPerPageMax = 100;
|
|
38
61
|
export const listUsersQuerySortByRegExp = new RegExp('^(email|code)(-asc|-desc)?$');
|
|
39
|
-
export const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
62
|
+
export const ListUsersQueryParams = zod.object({
|
|
63
|
+
page: zod
|
|
64
|
+
.number()
|
|
65
|
+
.min(1)
|
|
66
|
+
.default(listUsersQueryPageDefault)
|
|
67
|
+
.describe('ページ'),
|
|
68
|
+
perPage: zod
|
|
69
|
+
.number()
|
|
70
|
+
.min(1)
|
|
71
|
+
.max(listUsersQueryPerPageMax)
|
|
72
|
+
.default(listUsersQueryPerPageDefault)
|
|
73
|
+
.describe('1ページあたりの件数'),
|
|
74
|
+
status: zod
|
|
75
|
+
.array(zod.enum(['invited', 'activated', 'suspended', 'deactivated']))
|
|
76
|
+
.optional()
|
|
77
|
+
.describe('ステータスによる絞り込み'),
|
|
78
|
+
sortBy: zod
|
|
79
|
+
.string()
|
|
80
|
+
.regex(listUsersQuerySortByRegExp)
|
|
81
|
+
.optional()
|
|
82
|
+
.describe('ソート対象のフィールドと順序。指定可能なフィールド: email, code'),
|
|
44
83
|
});
|
|
45
84
|
export const listUsersResponseEmailMax = 254;
|
|
46
85
|
export const listUsersResponseCodeMax = 100;
|
|
@@ -48,26 +87,42 @@ export const listUsersResponseFirstNameMax = 255;
|
|
|
48
87
|
export const listUsersResponseLastNameMax = 255;
|
|
49
88
|
export const listUsersResponseFullNameMax = 255;
|
|
50
89
|
export const listUsersResponseEmployeeIdMax = 30;
|
|
51
|
-
export const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
90
|
+
export const ListUsersResponseItem = zod
|
|
91
|
+
.object({
|
|
92
|
+
id: zod.uuid().describe('UUID'),
|
|
93
|
+
email: zod
|
|
94
|
+
.email()
|
|
95
|
+
.max(listUsersResponseEmailMax)
|
|
96
|
+
.describe('メールアドレス'),
|
|
97
|
+
code: zod.string().max(listUsersResponseCodeMax).describe('コード'),
|
|
98
|
+
firstName: zod.string().max(listUsersResponseFirstNameMax).describe('名'),
|
|
99
|
+
lastName: zod.string().max(listUsersResponseLastNameMax).describe('姓'),
|
|
100
|
+
fullName: zod
|
|
101
|
+
.string()
|
|
102
|
+
.max(listUsersResponseFullNameMax)
|
|
103
|
+
.describe('フルネーム'),
|
|
104
|
+
employeeId: zod
|
|
105
|
+
.string()
|
|
106
|
+
.max(listUsersResponseEmployeeIdMax)
|
|
107
|
+
.nullish()
|
|
108
|
+
.describe('社員番号'),
|
|
109
|
+
image: zod
|
|
110
|
+
.object({
|
|
111
|
+
'100x100': zod.string().nullable(),
|
|
112
|
+
'64x64': zod.string().nullable(),
|
|
113
|
+
'32x32': zod.string().nullable(),
|
|
114
|
+
})
|
|
115
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
116
|
+
status: zod
|
|
117
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
118
|
+
.describe('ステータス'),
|
|
119
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
120
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
121
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
122
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
123
|
+
})
|
|
124
|
+
.describe('ユーザー');
|
|
125
|
+
export const ListUsersResponse = zod.array(ListUsersResponseItem);
|
|
71
126
|
/**
|
|
72
127
|
* ユーザーを作成します。
|
|
73
128
|
作成されたユーザーは招待済みステータスとなり、招待メールが送信されます。
|
|
@@ -79,72 +134,122 @@ export const createUserBodyCodeMax = 100;
|
|
|
79
134
|
export const createUserBodyFirstNameMax = 255;
|
|
80
135
|
export const createUserBodyLastNameMax = 255;
|
|
81
136
|
export const createUserBodyEmployeeIdMax = 30;
|
|
82
|
-
export const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
137
|
+
export const CreateUserBody = zod.object({
|
|
138
|
+
email: zod.email().describe('メールアドレス'),
|
|
139
|
+
code: zod
|
|
140
|
+
.string()
|
|
141
|
+
.max(createUserBodyCodeMax)
|
|
142
|
+
.describe('コード。未指定の場合、ランダムな英数字が自動的に設定されます。'),
|
|
143
|
+
firstName: zod.string().max(createUserBodyFirstNameMax).describe('名'),
|
|
144
|
+
lastName: zod.string().max(createUserBodyLastNameMax).describe('姓'),
|
|
145
|
+
sendEmail: zod
|
|
146
|
+
.boolean()
|
|
147
|
+
.optional()
|
|
148
|
+
.describe('招待メールを送信する場合true(デフォルト)、送信しない場合false'),
|
|
149
|
+
employeeId: zod
|
|
150
|
+
.string()
|
|
151
|
+
.max(createUserBodyEmployeeIdMax)
|
|
152
|
+
.nullish()
|
|
153
|
+
.describe('社員番号'),
|
|
89
154
|
});
|
|
90
|
-
export const
|
|
91
|
-
export const
|
|
92
|
-
export const
|
|
93
|
-
export const
|
|
94
|
-
export const
|
|
95
|
-
export const
|
|
96
|
-
export const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
155
|
+
export const createUserResponseOneEmailMax = 254;
|
|
156
|
+
export const createUserResponseOneCodeMax = 100;
|
|
157
|
+
export const createUserResponseOneFirstNameMax = 255;
|
|
158
|
+
export const createUserResponseOneLastNameMax = 255;
|
|
159
|
+
export const createUserResponseOneFullNameMax = 255;
|
|
160
|
+
export const createUserResponseOneEmployeeIdMax = 30;
|
|
161
|
+
export const CreateUserResponse = zod
|
|
162
|
+
.object({
|
|
163
|
+
id: zod.uuid().describe('UUID'),
|
|
164
|
+
email: zod
|
|
165
|
+
.email()
|
|
166
|
+
.max(createUserResponseOneEmailMax)
|
|
167
|
+
.describe('メールアドレス'),
|
|
168
|
+
code: zod.string().max(createUserResponseOneCodeMax).describe('コード'),
|
|
169
|
+
firstName: zod
|
|
170
|
+
.string()
|
|
171
|
+
.max(createUserResponseOneFirstNameMax)
|
|
172
|
+
.describe('名'),
|
|
173
|
+
lastName: zod.string().max(createUserResponseOneLastNameMax).describe('姓'),
|
|
174
|
+
fullName: zod
|
|
175
|
+
.string()
|
|
176
|
+
.max(createUserResponseOneFullNameMax)
|
|
177
|
+
.describe('フルネーム'),
|
|
178
|
+
employeeId: zod
|
|
179
|
+
.string()
|
|
180
|
+
.max(createUserResponseOneEmployeeIdMax)
|
|
181
|
+
.nullish()
|
|
182
|
+
.describe('社員番号'),
|
|
183
|
+
image: zod
|
|
184
|
+
.object({
|
|
185
|
+
'100x100': zod.string().nullable(),
|
|
186
|
+
'64x64': zod.string().nullable(),
|
|
187
|
+
'32x32': zod.string().nullable(),
|
|
188
|
+
})
|
|
189
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
190
|
+
status: zod
|
|
191
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
192
|
+
.describe('ステータス'),
|
|
193
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
194
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
195
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
196
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
197
|
+
})
|
|
198
|
+
.describe('ユーザー')
|
|
199
|
+
.describe('ユーザー詳細');
|
|
115
200
|
/**
|
|
116
201
|
* ユーザーを一件取得します。
|
|
117
202
|
* @summary ユーザーを取得
|
|
118
203
|
*/
|
|
119
204
|
export const getUserPathUserIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
120
|
-
export const
|
|
121
|
-
|
|
205
|
+
export const GetUserParams = zod.object({
|
|
206
|
+
userId: zod
|
|
207
|
+
.string()
|
|
208
|
+
.regex(getUserPathUserIdRegExp)
|
|
209
|
+
.describe('ユーザーのUUIDまたはコード'),
|
|
122
210
|
});
|
|
123
|
-
export const
|
|
124
|
-
export const
|
|
125
|
-
export const
|
|
126
|
-
export const
|
|
127
|
-
export const
|
|
128
|
-
export const
|
|
129
|
-
export const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
211
|
+
export const getUserResponseOneEmailMax = 254;
|
|
212
|
+
export const getUserResponseOneCodeMax = 100;
|
|
213
|
+
export const getUserResponseOneFirstNameMax = 255;
|
|
214
|
+
export const getUserResponseOneLastNameMax = 255;
|
|
215
|
+
export const getUserResponseOneFullNameMax = 255;
|
|
216
|
+
export const getUserResponseOneEmployeeIdMax = 30;
|
|
217
|
+
export const GetUserResponse = zod
|
|
218
|
+
.object({
|
|
219
|
+
id: zod.uuid().describe('UUID'),
|
|
220
|
+
email: zod
|
|
221
|
+
.email()
|
|
222
|
+
.max(getUserResponseOneEmailMax)
|
|
223
|
+
.describe('メールアドレス'),
|
|
224
|
+
code: zod.string().max(getUserResponseOneCodeMax).describe('コード'),
|
|
225
|
+
firstName: zod.string().max(getUserResponseOneFirstNameMax).describe('名'),
|
|
226
|
+
lastName: zod.string().max(getUserResponseOneLastNameMax).describe('姓'),
|
|
227
|
+
fullName: zod
|
|
228
|
+
.string()
|
|
229
|
+
.max(getUserResponseOneFullNameMax)
|
|
230
|
+
.describe('フルネーム'),
|
|
231
|
+
employeeId: zod
|
|
232
|
+
.string()
|
|
233
|
+
.max(getUserResponseOneEmployeeIdMax)
|
|
234
|
+
.nullish()
|
|
235
|
+
.describe('社員番号'),
|
|
236
|
+
image: zod
|
|
237
|
+
.object({
|
|
238
|
+
'100x100': zod.string().nullable(),
|
|
239
|
+
'64x64': zod.string().nullable(),
|
|
240
|
+
'32x32': zod.string().nullable(),
|
|
241
|
+
})
|
|
242
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
243
|
+
status: zod
|
|
244
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
245
|
+
.describe('ステータス'),
|
|
246
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
247
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
248
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
249
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
250
|
+
})
|
|
251
|
+
.describe('ユーザー')
|
|
252
|
+
.describe('ユーザー詳細');
|
|
148
253
|
/**
|
|
149
254
|
* ユーザーを削除します(論理削除)。
|
|
150
255
|
削除されたユーザーは削除済ステータスとなりますが、引き続きユーザー情報にアクセス可能です。
|
|
@@ -153,34 +258,57 @@ export const getUserResponse = zod.object({
|
|
|
153
258
|
* @summary ユーザーを削除
|
|
154
259
|
*/
|
|
155
260
|
export const deleteUserPathUserIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
156
|
-
export const
|
|
157
|
-
|
|
261
|
+
export const DeleteUserParams = zod.object({
|
|
262
|
+
userId: zod
|
|
263
|
+
.string()
|
|
264
|
+
.regex(deleteUserPathUserIdRegExp)
|
|
265
|
+
.describe('ユーザーのUUIDまたはコード'),
|
|
158
266
|
});
|
|
159
|
-
export const
|
|
160
|
-
export const
|
|
161
|
-
export const
|
|
162
|
-
export const
|
|
163
|
-
export const
|
|
164
|
-
export const
|
|
165
|
-
export const
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
267
|
+
export const deleteUserResponseOneEmailMax = 254;
|
|
268
|
+
export const deleteUserResponseOneCodeMax = 100;
|
|
269
|
+
export const deleteUserResponseOneFirstNameMax = 255;
|
|
270
|
+
export const deleteUserResponseOneLastNameMax = 255;
|
|
271
|
+
export const deleteUserResponseOneFullNameMax = 255;
|
|
272
|
+
export const deleteUserResponseOneEmployeeIdMax = 30;
|
|
273
|
+
export const DeleteUserResponse = zod
|
|
274
|
+
.object({
|
|
275
|
+
id: zod.uuid().describe('UUID'),
|
|
276
|
+
email: zod
|
|
277
|
+
.email()
|
|
278
|
+
.max(deleteUserResponseOneEmailMax)
|
|
279
|
+
.describe('メールアドレス'),
|
|
280
|
+
code: zod.string().max(deleteUserResponseOneCodeMax).describe('コード'),
|
|
281
|
+
firstName: zod
|
|
282
|
+
.string()
|
|
283
|
+
.max(deleteUserResponseOneFirstNameMax)
|
|
284
|
+
.describe('名'),
|
|
285
|
+
lastName: zod.string().max(deleteUserResponseOneLastNameMax).describe('姓'),
|
|
286
|
+
fullName: zod
|
|
287
|
+
.string()
|
|
288
|
+
.max(deleteUserResponseOneFullNameMax)
|
|
289
|
+
.describe('フルネーム'),
|
|
290
|
+
employeeId: zod
|
|
291
|
+
.string()
|
|
292
|
+
.max(deleteUserResponseOneEmployeeIdMax)
|
|
293
|
+
.nullish()
|
|
294
|
+
.describe('社員番号'),
|
|
295
|
+
image: zod
|
|
296
|
+
.object({
|
|
297
|
+
'100x100': zod.string().nullable(),
|
|
298
|
+
'64x64': zod.string().nullable(),
|
|
299
|
+
'32x32': zod.string().nullable(),
|
|
300
|
+
})
|
|
301
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
302
|
+
status: zod
|
|
303
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
304
|
+
.describe('ステータス'),
|
|
305
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
306
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
307
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
308
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
309
|
+
})
|
|
310
|
+
.describe('ユーザー')
|
|
311
|
+
.describe('ユーザー詳細');
|
|
184
312
|
/**
|
|
185
313
|
* ユーザーを更新します。
|
|
186
314
|
|
|
@@ -188,79 +316,144 @@ export const deleteUserResponse = zod.object({
|
|
|
188
316
|
* @summary ユーザーを更新
|
|
189
317
|
*/
|
|
190
318
|
export const updateUserPathUserIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
191
|
-
export const
|
|
192
|
-
|
|
319
|
+
export const UpdateUserParams = zod.object({
|
|
320
|
+
userId: zod
|
|
321
|
+
.string()
|
|
322
|
+
.regex(updateUserPathUserIdRegExp)
|
|
323
|
+
.describe('ユーザーのUUIDまたはコード'),
|
|
193
324
|
});
|
|
194
325
|
export const updateUserBodyEmailMax = 254;
|
|
195
326
|
export const updateUserBodyCodeMax = 100;
|
|
196
327
|
export const updateUserBodyFirstNameMax = 255;
|
|
197
328
|
export const updateUserBodyLastNameMax = 255;
|
|
198
329
|
export const updateUserBodyEmployeeIdMax = 30;
|
|
199
|
-
export const
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
330
|
+
export const UpdateUserBody = zod.object({
|
|
331
|
+
email: zod
|
|
332
|
+
.email()
|
|
333
|
+
.max(updateUserBodyEmailMax)
|
|
334
|
+
.optional()
|
|
335
|
+
.describe('メールアドレス'),
|
|
336
|
+
code: zod.string().max(updateUserBodyCodeMax).optional().describe('コード'),
|
|
337
|
+
firstName: zod
|
|
338
|
+
.string()
|
|
339
|
+
.max(updateUserBodyFirstNameMax)
|
|
340
|
+
.optional()
|
|
341
|
+
.describe('名'),
|
|
342
|
+
lastName: zod
|
|
343
|
+
.string()
|
|
344
|
+
.max(updateUserBodyLastNameMax)
|
|
345
|
+
.optional()
|
|
346
|
+
.describe('姓'),
|
|
347
|
+
employeeId: zod
|
|
348
|
+
.string()
|
|
349
|
+
.max(updateUserBodyEmployeeIdMax)
|
|
350
|
+
.nullish()
|
|
351
|
+
.describe('社員番号'),
|
|
205
352
|
});
|
|
206
|
-
export const
|
|
207
|
-
export const
|
|
208
|
-
export const
|
|
209
|
-
export const
|
|
210
|
-
export const
|
|
211
|
-
export const
|
|
212
|
-
export const
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
353
|
+
export const updateUserResponseOneEmailMax = 254;
|
|
354
|
+
export const updateUserResponseOneCodeMax = 100;
|
|
355
|
+
export const updateUserResponseOneFirstNameMax = 255;
|
|
356
|
+
export const updateUserResponseOneLastNameMax = 255;
|
|
357
|
+
export const updateUserResponseOneFullNameMax = 255;
|
|
358
|
+
export const updateUserResponseOneEmployeeIdMax = 30;
|
|
359
|
+
export const UpdateUserResponse = zod
|
|
360
|
+
.object({
|
|
361
|
+
id: zod.uuid().describe('UUID'),
|
|
362
|
+
email: zod
|
|
363
|
+
.email()
|
|
364
|
+
.max(updateUserResponseOneEmailMax)
|
|
365
|
+
.describe('メールアドレス'),
|
|
366
|
+
code: zod.string().max(updateUserResponseOneCodeMax).describe('コード'),
|
|
367
|
+
firstName: zod
|
|
368
|
+
.string()
|
|
369
|
+
.max(updateUserResponseOneFirstNameMax)
|
|
370
|
+
.describe('名'),
|
|
371
|
+
lastName: zod.string().max(updateUserResponseOneLastNameMax).describe('姓'),
|
|
372
|
+
fullName: zod
|
|
373
|
+
.string()
|
|
374
|
+
.max(updateUserResponseOneFullNameMax)
|
|
375
|
+
.describe('フルネーム'),
|
|
376
|
+
employeeId: zod
|
|
377
|
+
.string()
|
|
378
|
+
.max(updateUserResponseOneEmployeeIdMax)
|
|
379
|
+
.nullish()
|
|
380
|
+
.describe('社員番号'),
|
|
381
|
+
image: zod
|
|
382
|
+
.object({
|
|
383
|
+
'100x100': zod.string().nullable(),
|
|
384
|
+
'64x64': zod.string().nullable(),
|
|
385
|
+
'32x32': zod.string().nullable(),
|
|
386
|
+
})
|
|
387
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
388
|
+
status: zod
|
|
389
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
390
|
+
.describe('ステータス'),
|
|
391
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
392
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
393
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
394
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
395
|
+
})
|
|
396
|
+
.describe('ユーザー')
|
|
397
|
+
.describe('ユーザー詳細');
|
|
231
398
|
/**
|
|
232
399
|
* メールアドレスからユーザーを取得します(完全一致)
|
|
233
400
|
※メールアドレスはURLエンコードしたものを送ってください。
|
|
234
401
|
* @summary メールアドレスからユーザーを取得
|
|
235
402
|
*/
|
|
236
|
-
export const
|
|
237
|
-
|
|
403
|
+
export const LookupUserByEmailQueryParams = zod.object({
|
|
404
|
+
email: zod.string().describe('メールアドレス(URLエンコードを行ったもの)'),
|
|
238
405
|
});
|
|
239
|
-
export const
|
|
240
|
-
export const
|
|
241
|
-
export const
|
|
242
|
-
export const
|
|
243
|
-
export const
|
|
244
|
-
export const
|
|
245
|
-
export const
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
406
|
+
export const lookupUserByEmailResponseOneEmailMax = 254;
|
|
407
|
+
export const lookupUserByEmailResponseOneCodeMax = 100;
|
|
408
|
+
export const lookupUserByEmailResponseOneFirstNameMax = 255;
|
|
409
|
+
export const lookupUserByEmailResponseOneLastNameMax = 255;
|
|
410
|
+
export const lookupUserByEmailResponseOneFullNameMax = 255;
|
|
411
|
+
export const lookupUserByEmailResponseOneEmployeeIdMax = 30;
|
|
412
|
+
export const LookupUserByEmailResponse = zod
|
|
413
|
+
.object({
|
|
414
|
+
id: zod.uuid().describe('UUID'),
|
|
415
|
+
email: zod
|
|
416
|
+
.email()
|
|
417
|
+
.max(lookupUserByEmailResponseOneEmailMax)
|
|
418
|
+
.describe('メールアドレス'),
|
|
419
|
+
code: zod
|
|
420
|
+
.string()
|
|
421
|
+
.max(lookupUserByEmailResponseOneCodeMax)
|
|
422
|
+
.describe('コード'),
|
|
423
|
+
firstName: zod
|
|
424
|
+
.string()
|
|
425
|
+
.max(lookupUserByEmailResponseOneFirstNameMax)
|
|
426
|
+
.describe('名'),
|
|
427
|
+
lastName: zod
|
|
428
|
+
.string()
|
|
429
|
+
.max(lookupUserByEmailResponseOneLastNameMax)
|
|
430
|
+
.describe('姓'),
|
|
431
|
+
fullName: zod
|
|
432
|
+
.string()
|
|
433
|
+
.max(lookupUserByEmailResponseOneFullNameMax)
|
|
434
|
+
.describe('フルネーム'),
|
|
435
|
+
employeeId: zod
|
|
436
|
+
.string()
|
|
437
|
+
.max(lookupUserByEmailResponseOneEmployeeIdMax)
|
|
438
|
+
.nullish()
|
|
439
|
+
.describe('社員番号'),
|
|
440
|
+
image: zod
|
|
441
|
+
.object({
|
|
442
|
+
'100x100': zod.string().nullable(),
|
|
443
|
+
'64x64': zod.string().nullable(),
|
|
444
|
+
'32x32': zod.string().nullable(),
|
|
445
|
+
})
|
|
446
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
447
|
+
status: zod
|
|
448
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
449
|
+
.describe('ステータス'),
|
|
450
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
451
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
452
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
453
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
454
|
+
})
|
|
455
|
+
.describe('ユーザー')
|
|
456
|
+
.describe('ユーザー詳細');
|
|
264
457
|
/**
|
|
265
458
|
* 削除されたユーザーを再び招待します。
|
|
266
459
|
|
|
@@ -268,8 +461,11 @@ export const lookupUserByEmailResponse = zod.object({
|
|
|
268
461
|
* @summary ユーザーを再招待
|
|
269
462
|
*/
|
|
270
463
|
export const reinviteUserPathUserIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
271
|
-
export const
|
|
272
|
-
|
|
464
|
+
export const ReinviteUserParams = zod.object({
|
|
465
|
+
userId: zod
|
|
466
|
+
.string()
|
|
467
|
+
.regex(reinviteUserPathUserIdRegExp)
|
|
468
|
+
.describe('ユーザーのUUIDまたはコード'),
|
|
273
469
|
});
|
|
274
470
|
export const reinviteUserResponseEmailMax = 254;
|
|
275
471
|
export const reinviteUserResponseCodeMax = 100;
|
|
@@ -277,25 +473,44 @@ export const reinviteUserResponseFirstNameMax = 255;
|
|
|
277
473
|
export const reinviteUserResponseLastNameMax = 255;
|
|
278
474
|
export const reinviteUserResponseFullNameMax = 255;
|
|
279
475
|
export const reinviteUserResponseEmployeeIdMax = 30;
|
|
280
|
-
export const
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
476
|
+
export const ReinviteUserResponse = zod
|
|
477
|
+
.object({
|
|
478
|
+
id: zod.uuid().describe('UUID'),
|
|
479
|
+
email: zod
|
|
480
|
+
.email()
|
|
481
|
+
.max(reinviteUserResponseEmailMax)
|
|
482
|
+
.describe('メールアドレス'),
|
|
483
|
+
code: zod.string().max(reinviteUserResponseCodeMax).describe('コード'),
|
|
484
|
+
firstName: zod
|
|
485
|
+
.string()
|
|
486
|
+
.max(reinviteUserResponseFirstNameMax)
|
|
487
|
+
.describe('名'),
|
|
488
|
+
lastName: zod.string().max(reinviteUserResponseLastNameMax).describe('姓'),
|
|
489
|
+
fullName: zod
|
|
490
|
+
.string()
|
|
491
|
+
.max(reinviteUserResponseFullNameMax)
|
|
492
|
+
.describe('フルネーム'),
|
|
493
|
+
employeeId: zod
|
|
494
|
+
.string()
|
|
495
|
+
.max(reinviteUserResponseEmployeeIdMax)
|
|
496
|
+
.nullish()
|
|
497
|
+
.describe('社員番号'),
|
|
498
|
+
image: zod
|
|
499
|
+
.object({
|
|
500
|
+
'100x100': zod.string().nullable(),
|
|
501
|
+
'64x64': zod.string().nullable(),
|
|
502
|
+
'32x32': zod.string().nullable(),
|
|
503
|
+
})
|
|
504
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
505
|
+
status: zod
|
|
506
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
507
|
+
.describe('ステータス'),
|
|
508
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
509
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
510
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
511
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
512
|
+
})
|
|
513
|
+
.describe('ユーザー');
|
|
299
514
|
/**
|
|
300
515
|
* 有効なユーザーを一時停止します。
|
|
301
516
|
|
|
@@ -303,8 +518,11 @@ export const reinviteUserResponse = zod.object({
|
|
|
303
518
|
* @summary ユーザーを一時停止
|
|
304
519
|
*/
|
|
305
520
|
export const suspendUserPathUserIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
306
|
-
export const
|
|
307
|
-
|
|
521
|
+
export const SuspendUserParams = zod.object({
|
|
522
|
+
userId: zod
|
|
523
|
+
.string()
|
|
524
|
+
.regex(suspendUserPathUserIdRegExp)
|
|
525
|
+
.describe('ユーザーのUUIDまたはコード'),
|
|
308
526
|
});
|
|
309
527
|
export const suspendUserResponseEmailMax = 254;
|
|
310
528
|
export const suspendUserResponseCodeMax = 100;
|
|
@@ -312,25 +530,41 @@ export const suspendUserResponseFirstNameMax = 255;
|
|
|
312
530
|
export const suspendUserResponseLastNameMax = 255;
|
|
313
531
|
export const suspendUserResponseFullNameMax = 255;
|
|
314
532
|
export const suspendUserResponseEmployeeIdMax = 30;
|
|
315
|
-
export const
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
533
|
+
export const SuspendUserResponse = zod
|
|
534
|
+
.object({
|
|
535
|
+
id: zod.uuid().describe('UUID'),
|
|
536
|
+
email: zod
|
|
537
|
+
.email()
|
|
538
|
+
.max(suspendUserResponseEmailMax)
|
|
539
|
+
.describe('メールアドレス'),
|
|
540
|
+
code: zod.string().max(suspendUserResponseCodeMax).describe('コード'),
|
|
541
|
+
firstName: zod.string().max(suspendUserResponseFirstNameMax).describe('名'),
|
|
542
|
+
lastName: zod.string().max(suspendUserResponseLastNameMax).describe('姓'),
|
|
543
|
+
fullName: zod
|
|
544
|
+
.string()
|
|
545
|
+
.max(suspendUserResponseFullNameMax)
|
|
546
|
+
.describe('フルネーム'),
|
|
547
|
+
employeeId: zod
|
|
548
|
+
.string()
|
|
549
|
+
.max(suspendUserResponseEmployeeIdMax)
|
|
550
|
+
.nullish()
|
|
551
|
+
.describe('社員番号'),
|
|
552
|
+
image: zod
|
|
553
|
+
.object({
|
|
554
|
+
'100x100': zod.string().nullable(),
|
|
555
|
+
'64x64': zod.string().nullable(),
|
|
556
|
+
'32x32': zod.string().nullable(),
|
|
557
|
+
})
|
|
558
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
559
|
+
status: zod
|
|
560
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
561
|
+
.describe('ステータス'),
|
|
562
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
563
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
564
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
565
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
566
|
+
})
|
|
567
|
+
.describe('ユーザー');
|
|
334
568
|
/**
|
|
335
569
|
* 一時停止中のユーザーを有効化します。
|
|
336
570
|
|
|
@@ -338,8 +572,11 @@ export const suspendUserResponse = zod.object({
|
|
|
338
572
|
* @summary ユーザーを再有効化
|
|
339
573
|
*/
|
|
340
574
|
export const reactivateUserPathUserIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
341
|
-
export const
|
|
342
|
-
|
|
575
|
+
export const ReactivateUserParams = zod.object({
|
|
576
|
+
userId: zod
|
|
577
|
+
.string()
|
|
578
|
+
.regex(reactivateUserPathUserIdRegExp)
|
|
579
|
+
.describe('ユーザーのUUIDまたはコード'),
|
|
343
580
|
});
|
|
344
581
|
export const reactivateUserResponseEmailMax = 254;
|
|
345
582
|
export const reactivateUserResponseCodeMax = 100;
|
|
@@ -347,25 +584,47 @@ export const reactivateUserResponseFirstNameMax = 255;
|
|
|
347
584
|
export const reactivateUserResponseLastNameMax = 255;
|
|
348
585
|
export const reactivateUserResponseFullNameMax = 255;
|
|
349
586
|
export const reactivateUserResponseEmployeeIdMax = 30;
|
|
350
|
-
export const
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
587
|
+
export const ReactivateUserResponse = zod
|
|
588
|
+
.object({
|
|
589
|
+
id: zod.uuid().describe('UUID'),
|
|
590
|
+
email: zod
|
|
591
|
+
.email()
|
|
592
|
+
.max(reactivateUserResponseEmailMax)
|
|
593
|
+
.describe('メールアドレス'),
|
|
594
|
+
code: zod.string().max(reactivateUserResponseCodeMax).describe('コード'),
|
|
595
|
+
firstName: zod
|
|
596
|
+
.string()
|
|
597
|
+
.max(reactivateUserResponseFirstNameMax)
|
|
598
|
+
.describe('名'),
|
|
599
|
+
lastName: zod
|
|
600
|
+
.string()
|
|
601
|
+
.max(reactivateUserResponseLastNameMax)
|
|
602
|
+
.describe('姓'),
|
|
603
|
+
fullName: zod
|
|
604
|
+
.string()
|
|
605
|
+
.max(reactivateUserResponseFullNameMax)
|
|
606
|
+
.describe('フルネーム'),
|
|
607
|
+
employeeId: zod
|
|
608
|
+
.string()
|
|
609
|
+
.max(reactivateUserResponseEmployeeIdMax)
|
|
610
|
+
.nullish()
|
|
611
|
+
.describe('社員番号'),
|
|
612
|
+
image: zod
|
|
613
|
+
.object({
|
|
614
|
+
'100x100': zod.string().nullable(),
|
|
615
|
+
'64x64': zod.string().nullable(),
|
|
616
|
+
'32x32': zod.string().nullable(),
|
|
617
|
+
})
|
|
618
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
619
|
+
status: zod
|
|
620
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
621
|
+
.describe('ステータス'),
|
|
622
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
623
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
624
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
625
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
626
|
+
})
|
|
627
|
+
.describe('ユーザー');
|
|
369
628
|
/**
|
|
370
629
|
* ユーザーの所属チーム一覧を取得します。
|
|
371
630
|
|
|
@@ -373,33 +632,57 @@ export const reactivateUserResponse = zod.object({
|
|
|
373
632
|
* @summary ユーザーの所属チーム一覧を取得
|
|
374
633
|
*/
|
|
375
634
|
export const listUserTeamsPathUserIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
376
|
-
export const
|
|
377
|
-
|
|
635
|
+
export const ListUserTeamsParams = zod.object({
|
|
636
|
+
userId: zod
|
|
637
|
+
.string()
|
|
638
|
+
.regex(listUserTeamsPathUserIdRegExp)
|
|
639
|
+
.describe('ユーザーのUUIDまたはコード'),
|
|
378
640
|
});
|
|
379
641
|
export const listUserTeamsQueryPageDefault = 1;
|
|
380
642
|
export const listUserTeamsQueryPerPageDefault = 25;
|
|
381
643
|
export const listUserTeamsQueryPerPageMax = 100;
|
|
382
|
-
export const
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
644
|
+
export const ListUserTeamsQueryParams = zod.object({
|
|
645
|
+
page: zod
|
|
646
|
+
.number()
|
|
647
|
+
.min(1)
|
|
648
|
+
.default(listUserTeamsQueryPageDefault)
|
|
649
|
+
.describe('ページ'),
|
|
650
|
+
perPage: zod
|
|
651
|
+
.number()
|
|
652
|
+
.min(1)
|
|
653
|
+
.max(listUserTeamsQueryPerPageMax)
|
|
654
|
+
.default(listUserTeamsQueryPerPageDefault)
|
|
655
|
+
.describe('1ページあたりの件数'),
|
|
656
|
+
submittable: zod
|
|
657
|
+
.boolean()
|
|
658
|
+
.optional()
|
|
659
|
+
.describe('trueの場合、申請可能なチームのみ返す。デフォルトはfalse(すべてのチームを返す)'),
|
|
386
660
|
});
|
|
387
661
|
export const listUserTeamsResponseNameMax = 300;
|
|
388
662
|
export const listUserTeamsResponseCodeMax = 100;
|
|
389
663
|
export const listUserTeamsResponseNotesMax = 10000;
|
|
390
664
|
export const listUserTeamsResponseUsersCountMin = 0;
|
|
391
|
-
export const
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
665
|
+
export const ListUserTeamsResponseItem = zod
|
|
666
|
+
.object({
|
|
667
|
+
id: zod.uuid().describe('UUID'),
|
|
668
|
+
name: zod.string().max(listUserTeamsResponseNameMax).describe('名前'),
|
|
669
|
+
fullName: zod.string().describe('上位組織を含む名前'),
|
|
670
|
+
code: zod.string().max(listUserTeamsResponseCodeMax).describe('コード'),
|
|
671
|
+
notes: zod
|
|
672
|
+
.string()
|
|
673
|
+
.max(listUserTeamsResponseNotesMax)
|
|
674
|
+
.nullish()
|
|
675
|
+
.describe('管理用メモ'),
|
|
676
|
+
approveOnly: zod.boolean().describe('承認専用チームかどうか'),
|
|
677
|
+
usersCount: zod
|
|
678
|
+
.number()
|
|
679
|
+
.min(listUserTeamsResponseUsersCountMin)
|
|
680
|
+
.describe('ユーザー数'),
|
|
681
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
682
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
683
|
+
})
|
|
684
|
+
.describe('チーム');
|
|
685
|
+
export const ListUserTeamsResponse = zod.array(ListUserTeamsResponseItem);
|
|
403
686
|
/**
|
|
404
687
|
* ユーザーの管理者ロール一覧を取得します。
|
|
405
688
|
|
|
@@ -407,25 +690,44 @@ export const listUserTeamsResponse = zod.array(listUserTeamsResponseItem);
|
|
|
407
690
|
* @summary ユーザーの管理者ロール一覧を取得
|
|
408
691
|
*/
|
|
409
692
|
export const listUserRolesPathUserIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
410
|
-
export const
|
|
411
|
-
|
|
693
|
+
export const ListUserRolesParams = zod.object({
|
|
694
|
+
userId: zod
|
|
695
|
+
.string()
|
|
696
|
+
.regex(listUserRolesPathUserIdRegExp)
|
|
697
|
+
.describe('ユーザーのUUIDまたはコード'),
|
|
412
698
|
});
|
|
413
699
|
export const listUserRolesQueryPageDefault = 1;
|
|
414
700
|
export const listUserRolesQueryPerPageDefault = 25;
|
|
415
701
|
export const listUserRolesQueryPerPageMax = 100;
|
|
416
|
-
export const
|
|
417
|
-
|
|
418
|
-
|
|
702
|
+
export const ListUserRolesQueryParams = zod.object({
|
|
703
|
+
page: zod
|
|
704
|
+
.number()
|
|
705
|
+
.min(1)
|
|
706
|
+
.default(listUserRolesQueryPageDefault)
|
|
707
|
+
.describe('ページ'),
|
|
708
|
+
perPage: zod
|
|
709
|
+
.number()
|
|
710
|
+
.min(1)
|
|
711
|
+
.max(listUserRolesQueryPerPageMax)
|
|
712
|
+
.default(listUserRolesQueryPerPageDefault)
|
|
713
|
+
.describe('1ページあたりの件数'),
|
|
419
714
|
});
|
|
420
715
|
export const listUserRolesResponseNameMax = 300;
|
|
421
716
|
export const listUserRolesResponseUsersCountMin = 0;
|
|
422
|
-
export const
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
717
|
+
export const ListUserRolesResponseItem = zod
|
|
718
|
+
.object({
|
|
719
|
+
id: zod.uuid().describe('UUID'),
|
|
720
|
+
name: zod.string().max(listUserRolesResponseNameMax).describe('名前'),
|
|
721
|
+
editable: zod
|
|
722
|
+
.boolean()
|
|
723
|
+
.describe('編集可能かどうか。「すべての管理者」のときだけfalseになります。'),
|
|
724
|
+
usersCount: zod
|
|
725
|
+
.number()
|
|
726
|
+
.min(listUserRolesResponseUsersCountMin)
|
|
727
|
+
.describe('この管理者ロールに所属するユーザー数'),
|
|
728
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
729
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
730
|
+
})
|
|
731
|
+
.describe('管理者ロール');
|
|
732
|
+
export const ListUserRolesResponse = zod.array(ListUserRolesResponseItem);
|
|
431
733
|
//# sourceMappingURL=user.zod.js.map
|