@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
|
@@ -9,284 +9,721 @@ export const listRolesQueryPageDefault = 1;
|
|
|
9
9
|
export const listRolesQueryPerPageDefault = 25;
|
|
10
10
|
export const listRolesQueryPerPageMax = 100;
|
|
11
11
|
export const listRolesQuerySortByRegExp = new RegExp('^(createdAt|name)(-asc|-desc)?$');
|
|
12
|
-
export const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
export const ListRolesQueryParams = zod.object({
|
|
13
|
+
page: zod
|
|
14
|
+
.number()
|
|
15
|
+
.min(1)
|
|
16
|
+
.default(listRolesQueryPageDefault)
|
|
17
|
+
.describe('ページ'),
|
|
18
|
+
perPage: zod
|
|
19
|
+
.number()
|
|
20
|
+
.min(1)
|
|
21
|
+
.max(listRolesQueryPerPageMax)
|
|
22
|
+
.default(listRolesQueryPerPageDefault)
|
|
23
|
+
.describe('1ページあたりの件数'),
|
|
24
|
+
sortBy: zod
|
|
25
|
+
.string()
|
|
26
|
+
.regex(listRolesQuerySortByRegExp)
|
|
27
|
+
.optional()
|
|
28
|
+
.describe('ソート対象のフィールドと順序。指定可能なフィールド: createdAt, name'),
|
|
16
29
|
});
|
|
17
30
|
export const listRolesResponseNameMax = 300;
|
|
18
31
|
export const listRolesResponseUsersCountMin = 0;
|
|
19
|
-
export const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
export const ListRolesResponseItem = zod
|
|
33
|
+
.object({
|
|
34
|
+
id: zod.uuid().describe('UUID'),
|
|
35
|
+
name: zod.string().max(listRolesResponseNameMax).describe('名前'),
|
|
36
|
+
editable: zod
|
|
37
|
+
.boolean()
|
|
38
|
+
.describe('編集可能かどうか。「すべての管理者」のときだけfalseになります。'),
|
|
39
|
+
usersCount: zod
|
|
40
|
+
.number()
|
|
41
|
+
.min(listRolesResponseUsersCountMin)
|
|
42
|
+
.describe('この管理者ロールに所属するユーザー数'),
|
|
43
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
44
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
45
|
+
})
|
|
46
|
+
.describe('管理者ロール');
|
|
47
|
+
export const ListRolesResponse = zod.array(ListRolesResponseItem);
|
|
28
48
|
/**
|
|
29
49
|
* 管理者ロールを作成します。
|
|
30
50
|
|
|
31
51
|
このAPIの実行には、ロールの管理権限が必要です。
|
|
32
52
|
* @summary 管理者ロールを作成
|
|
33
53
|
*/
|
|
34
|
-
export const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
54
|
+
export const CreateRoleBody = zod
|
|
55
|
+
.object({
|
|
56
|
+
name: zod.string().describe('名前'),
|
|
57
|
+
permissionList: zod
|
|
58
|
+
.array(zod.object({
|
|
59
|
+
permission: zod
|
|
60
|
+
.enum([
|
|
61
|
+
'tenant',
|
|
62
|
+
'billing',
|
|
63
|
+
'integration',
|
|
64
|
+
'security',
|
|
65
|
+
'audit',
|
|
66
|
+
'stats',
|
|
67
|
+
'workflow',
|
|
68
|
+
'route',
|
|
69
|
+
'pipeline',
|
|
70
|
+
'workflow_misc',
|
|
71
|
+
'user',
|
|
72
|
+
'team',
|
|
73
|
+
'role',
|
|
74
|
+
'master',
|
|
75
|
+
'ticket_read',
|
|
76
|
+
'ticket_write',
|
|
77
|
+
'label',
|
|
78
|
+
'automation',
|
|
79
|
+
])
|
|
80
|
+
.describe('権限タイプ'),
|
|
81
|
+
restricted: zod.boolean().describe('管理対象を制限する場合true'),
|
|
82
|
+
folderIds: zod
|
|
83
|
+
.array(zod.uuid())
|
|
84
|
+
.optional()
|
|
85
|
+
.describe('管理対象のフォルダID'),
|
|
86
|
+
generalMasterIds: zod
|
|
87
|
+
.array(zod.uuid())
|
|
88
|
+
.optional()
|
|
89
|
+
.describe('管理対象の汎用マスタID'),
|
|
90
|
+
teamIds: zod
|
|
91
|
+
.array(zod.uuid())
|
|
92
|
+
.optional()
|
|
93
|
+
.describe('管理対象のチームID'),
|
|
94
|
+
}))
|
|
95
|
+
.describe('権限リスト'),
|
|
96
|
+
})
|
|
97
|
+
.describe('管理者ロールを作成するときのrequest body');
|
|
98
|
+
export const createRoleResponseOneNameMax = 300;
|
|
99
|
+
export const createRoleResponseOneUsersCountMin = 0;
|
|
100
|
+
export const createRoleResponseTwoPermissionListItemFoldersItemNameMax = 300;
|
|
101
|
+
export const createRoleResponseTwoPermissionListItemFoldersItemCodeMax = 100;
|
|
102
|
+
export const createRoleResponseTwoPermissionListItemFoldersItemWorkflowsCountMin = 0;
|
|
103
|
+
export const createRoleResponseTwoPermissionListItemFoldersItemRoutesCountMin = 0;
|
|
104
|
+
export const createRoleResponseTwoPermissionListItemFoldersItemPipelinesCountMin = 0;
|
|
105
|
+
export const createRoleResponseTwoPermissionListItemGeneralMastersItemCodeMax = 100;
|
|
106
|
+
export const createRoleResponseTwoPermissionListItemGeneralMastersItemNameMax = 300;
|
|
107
|
+
export const createRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemTitleMax = 300;
|
|
108
|
+
export const createRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemCodeMax = 100;
|
|
109
|
+
export const createRoleResponseTwoPermissionListItemTeamsItemNameMax = 300;
|
|
110
|
+
export const createRoleResponseTwoPermissionListItemTeamsItemCodeMax = 100;
|
|
111
|
+
export const createRoleResponseTwoPermissionListItemTeamsItemNotesMax = 10000;
|
|
112
|
+
export const createRoleResponseTwoPermissionListItemTeamsItemUsersCountMin = 0;
|
|
113
|
+
export const CreateRoleResponse = zod
|
|
114
|
+
.object({
|
|
115
|
+
id: zod.uuid().describe('UUID'),
|
|
116
|
+
name: zod.string().max(createRoleResponseOneNameMax).describe('名前'),
|
|
117
|
+
editable: zod
|
|
118
|
+
.boolean()
|
|
119
|
+
.describe('編集可能かどうか。「すべての管理者」のときだけfalseになります。'),
|
|
120
|
+
usersCount: zod
|
|
121
|
+
.number()
|
|
122
|
+
.min(createRoleResponseOneUsersCountMin)
|
|
123
|
+
.describe('この管理者ロールに所属するユーザー数'),
|
|
124
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
125
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
126
|
+
})
|
|
127
|
+
.describe('管理者ロール')
|
|
128
|
+
.and(zod.object({
|
|
129
|
+
permissionList: zod
|
|
130
|
+
.array(zod.object({
|
|
131
|
+
permission: zod
|
|
132
|
+
.enum([
|
|
133
|
+
'tenant',
|
|
134
|
+
'billing',
|
|
135
|
+
'integration',
|
|
136
|
+
'security',
|
|
137
|
+
'audit',
|
|
138
|
+
'stats',
|
|
139
|
+
'workflow',
|
|
140
|
+
'route',
|
|
141
|
+
'pipeline',
|
|
142
|
+
'workflow_misc',
|
|
143
|
+
'user',
|
|
144
|
+
'team',
|
|
145
|
+
'role',
|
|
146
|
+
'master',
|
|
147
|
+
'ticket_read',
|
|
148
|
+
'ticket_write',
|
|
149
|
+
'label',
|
|
150
|
+
'automation',
|
|
151
|
+
])
|
|
152
|
+
.describe('権限タイプ'),
|
|
153
|
+
restricted: zod
|
|
154
|
+
.boolean()
|
|
155
|
+
.describe('管理対象が制限されている場合true'),
|
|
156
|
+
folders: zod
|
|
157
|
+
.array(zod
|
|
158
|
+
.object({
|
|
159
|
+
id: zod.uuid().describe('UUID'),
|
|
160
|
+
name: zod
|
|
161
|
+
.string()
|
|
162
|
+
.max(createRoleResponseTwoPermissionListItemFoldersItemNameMax)
|
|
163
|
+
.describe('名前'),
|
|
164
|
+
code: zod
|
|
165
|
+
.string()
|
|
166
|
+
.max(createRoleResponseTwoPermissionListItemFoldersItemCodeMax)
|
|
167
|
+
.describe('コード'),
|
|
168
|
+
description: zod.string().nullish().describe('説明'),
|
|
169
|
+
workflowsCount: zod
|
|
170
|
+
.number()
|
|
171
|
+
.min(createRoleResponseTwoPermissionListItemFoldersItemWorkflowsCountMin)
|
|
172
|
+
.describe('フォルダ内のワークフロー数'),
|
|
173
|
+
routesCount: zod
|
|
174
|
+
.number()
|
|
175
|
+
.min(createRoleResponseTwoPermissionListItemFoldersItemRoutesCountMin)
|
|
176
|
+
.describe('フォルダ内の経路数'),
|
|
177
|
+
pipelinesCount: zod
|
|
178
|
+
.number()
|
|
179
|
+
.min(createRoleResponseTwoPermissionListItemFoldersItemPipelinesCountMin)
|
|
180
|
+
.describe('フォルダ内のパイプライン数'),
|
|
181
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
182
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
183
|
+
})
|
|
184
|
+
.describe('フォルダ'))
|
|
185
|
+
.describe('管理対象のフォルダ'),
|
|
186
|
+
generalMasters: zod
|
|
187
|
+
.array(zod
|
|
188
|
+
.object({
|
|
189
|
+
id: zod.uuid().describe('UUID'),
|
|
190
|
+
code: zod
|
|
191
|
+
.string()
|
|
192
|
+
.max(createRoleResponseTwoPermissionListItemGeneralMastersItemCodeMax)
|
|
193
|
+
.describe('コード'),
|
|
194
|
+
name: zod
|
|
195
|
+
.string()
|
|
196
|
+
.max(createRoleResponseTwoPermissionListItemGeneralMastersItemNameMax)
|
|
197
|
+
.describe('名前'),
|
|
198
|
+
description: zod.string().nullable().describe('説明'),
|
|
199
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
200
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
201
|
+
fields: zod
|
|
202
|
+
.array(zod
|
|
203
|
+
.object({
|
|
204
|
+
id: zod.uuid().describe('UUID'),
|
|
205
|
+
title: zod
|
|
206
|
+
.string()
|
|
207
|
+
.max(createRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemTitleMax)
|
|
208
|
+
.describe('フィールド名'),
|
|
209
|
+
description: zod
|
|
210
|
+
.string()
|
|
211
|
+
.nullable()
|
|
212
|
+
.describe('フィールドの説明'),
|
|
213
|
+
code: zod
|
|
214
|
+
.string()
|
|
215
|
+
.max(createRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemCodeMax)
|
|
216
|
+
.describe('フィールドのコード'),
|
|
217
|
+
fieldType: zod
|
|
218
|
+
.enum([
|
|
219
|
+
'text',
|
|
220
|
+
'text_long',
|
|
221
|
+
'number',
|
|
222
|
+
'integer',
|
|
223
|
+
'checkbox',
|
|
224
|
+
'pull_down',
|
|
225
|
+
'date',
|
|
226
|
+
])
|
|
227
|
+
.describe('フィールドの型'),
|
|
228
|
+
required: zod
|
|
229
|
+
.boolean()
|
|
230
|
+
.describe('必須項目かどうか'),
|
|
231
|
+
visible: zod
|
|
232
|
+
.boolean()
|
|
233
|
+
.describe('管理者以外も閲覧可能な場合true'),
|
|
234
|
+
options: zod
|
|
235
|
+
.array(zod.string())
|
|
236
|
+
.nullable()
|
|
237
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
238
|
+
createdAt: zod.iso
|
|
239
|
+
.datetime({})
|
|
240
|
+
.describe('作成日時'),
|
|
241
|
+
updatedAt: zod.iso
|
|
242
|
+
.datetime({})
|
|
243
|
+
.describe('更新日時'),
|
|
244
|
+
})
|
|
245
|
+
.describe('汎用マスタのカスタムフィールド'))
|
|
246
|
+
.describe('カスタムフィールドの配列'),
|
|
247
|
+
})
|
|
248
|
+
.describe('汎用マスタ'))
|
|
249
|
+
.describe('管理対象の汎用マスタ'),
|
|
250
|
+
teams: zod
|
|
251
|
+
.array(zod
|
|
252
|
+
.object({
|
|
253
|
+
id: zod.uuid().describe('UUID'),
|
|
254
|
+
name: zod
|
|
255
|
+
.string()
|
|
256
|
+
.max(createRoleResponseTwoPermissionListItemTeamsItemNameMax)
|
|
257
|
+
.describe('名前'),
|
|
258
|
+
fullName: zod.string().describe('上位組織を含む名前'),
|
|
259
|
+
code: zod
|
|
260
|
+
.string()
|
|
261
|
+
.max(createRoleResponseTwoPermissionListItemTeamsItemCodeMax)
|
|
262
|
+
.describe('コード'),
|
|
263
|
+
notes: zod
|
|
264
|
+
.string()
|
|
265
|
+
.max(createRoleResponseTwoPermissionListItemTeamsItemNotesMax)
|
|
266
|
+
.nullish()
|
|
267
|
+
.describe('管理用メモ'),
|
|
268
|
+
approveOnly: zod
|
|
269
|
+
.boolean()
|
|
270
|
+
.describe('承認専用チームかどうか'),
|
|
271
|
+
usersCount: zod
|
|
272
|
+
.number()
|
|
273
|
+
.min(createRoleResponseTwoPermissionListItemTeamsItemUsersCountMin)
|
|
274
|
+
.describe('ユーザー数'),
|
|
275
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
276
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
277
|
+
})
|
|
278
|
+
.describe('チーム'))
|
|
279
|
+
.describe('管理対象のチーム'),
|
|
280
|
+
}))
|
|
281
|
+
.describe('権限のリスト'),
|
|
282
|
+
}))
|
|
283
|
+
.describe('管理者ロールの詳細');
|
|
114
284
|
/**
|
|
115
285
|
* 管理者ロールを一件取得します。
|
|
116
286
|
|
|
117
287
|
このAPIの実行には、ロールの管理権限が必要です。
|
|
118
288
|
* @summary 管理者ロールを取得
|
|
119
289
|
*/
|
|
120
|
-
export const
|
|
121
|
-
|
|
290
|
+
export const GetRoleParams = zod.object({
|
|
291
|
+
roleId: zod.uuid().describe('管理者ロールのUUID'),
|
|
122
292
|
});
|
|
123
|
-
export const
|
|
124
|
-
export const
|
|
125
|
-
export const
|
|
126
|
-
export const
|
|
127
|
-
export const
|
|
128
|
-
export const
|
|
129
|
-
export const
|
|
130
|
-
export const
|
|
131
|
-
export const
|
|
132
|
-
export const
|
|
133
|
-
export const
|
|
134
|
-
export const
|
|
135
|
-
export const
|
|
136
|
-
export const
|
|
137
|
-
export const
|
|
138
|
-
export const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
293
|
+
export const getRoleResponseOneNameMax = 300;
|
|
294
|
+
export const getRoleResponseOneUsersCountMin = 0;
|
|
295
|
+
export const getRoleResponseTwoPermissionListItemFoldersItemNameMax = 300;
|
|
296
|
+
export const getRoleResponseTwoPermissionListItemFoldersItemCodeMax = 100;
|
|
297
|
+
export const getRoleResponseTwoPermissionListItemFoldersItemWorkflowsCountMin = 0;
|
|
298
|
+
export const getRoleResponseTwoPermissionListItemFoldersItemRoutesCountMin = 0;
|
|
299
|
+
export const getRoleResponseTwoPermissionListItemFoldersItemPipelinesCountMin = 0;
|
|
300
|
+
export const getRoleResponseTwoPermissionListItemGeneralMastersItemCodeMax = 100;
|
|
301
|
+
export const getRoleResponseTwoPermissionListItemGeneralMastersItemNameMax = 300;
|
|
302
|
+
export const getRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemTitleMax = 300;
|
|
303
|
+
export const getRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemCodeMax = 100;
|
|
304
|
+
export const getRoleResponseTwoPermissionListItemTeamsItemNameMax = 300;
|
|
305
|
+
export const getRoleResponseTwoPermissionListItemTeamsItemCodeMax = 100;
|
|
306
|
+
export const getRoleResponseTwoPermissionListItemTeamsItemNotesMax = 10000;
|
|
307
|
+
export const getRoleResponseTwoPermissionListItemTeamsItemUsersCountMin = 0;
|
|
308
|
+
export const GetRoleResponse = zod
|
|
309
|
+
.object({
|
|
310
|
+
id: zod.uuid().describe('UUID'),
|
|
311
|
+
name: zod.string().max(getRoleResponseOneNameMax).describe('名前'),
|
|
312
|
+
editable: zod
|
|
313
|
+
.boolean()
|
|
314
|
+
.describe('編集可能かどうか。「すべての管理者」のときだけfalseになります。'),
|
|
315
|
+
usersCount: zod
|
|
316
|
+
.number()
|
|
317
|
+
.min(getRoleResponseOneUsersCountMin)
|
|
318
|
+
.describe('この管理者ロールに所属するユーザー数'),
|
|
319
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
320
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
321
|
+
})
|
|
322
|
+
.describe('管理者ロール')
|
|
323
|
+
.and(zod.object({
|
|
324
|
+
permissionList: zod
|
|
325
|
+
.array(zod.object({
|
|
326
|
+
permission: zod
|
|
327
|
+
.enum([
|
|
328
|
+
'tenant',
|
|
329
|
+
'billing',
|
|
330
|
+
'integration',
|
|
331
|
+
'security',
|
|
332
|
+
'audit',
|
|
333
|
+
'stats',
|
|
334
|
+
'workflow',
|
|
335
|
+
'route',
|
|
336
|
+
'pipeline',
|
|
337
|
+
'workflow_misc',
|
|
338
|
+
'user',
|
|
339
|
+
'team',
|
|
340
|
+
'role',
|
|
341
|
+
'master',
|
|
342
|
+
'ticket_read',
|
|
343
|
+
'ticket_write',
|
|
344
|
+
'label',
|
|
345
|
+
'automation',
|
|
346
|
+
])
|
|
347
|
+
.describe('権限タイプ'),
|
|
348
|
+
restricted: zod
|
|
349
|
+
.boolean()
|
|
350
|
+
.describe('管理対象が制限されている場合true'),
|
|
351
|
+
folders: zod
|
|
352
|
+
.array(zod
|
|
353
|
+
.object({
|
|
354
|
+
id: zod.uuid().describe('UUID'),
|
|
355
|
+
name: zod
|
|
356
|
+
.string()
|
|
357
|
+
.max(getRoleResponseTwoPermissionListItemFoldersItemNameMax)
|
|
358
|
+
.describe('名前'),
|
|
359
|
+
code: zod
|
|
360
|
+
.string()
|
|
361
|
+
.max(getRoleResponseTwoPermissionListItemFoldersItemCodeMax)
|
|
362
|
+
.describe('コード'),
|
|
363
|
+
description: zod.string().nullish().describe('説明'),
|
|
364
|
+
workflowsCount: zod
|
|
365
|
+
.number()
|
|
366
|
+
.min(getRoleResponseTwoPermissionListItemFoldersItemWorkflowsCountMin)
|
|
367
|
+
.describe('フォルダ内のワークフロー数'),
|
|
368
|
+
routesCount: zod
|
|
369
|
+
.number()
|
|
370
|
+
.min(getRoleResponseTwoPermissionListItemFoldersItemRoutesCountMin)
|
|
371
|
+
.describe('フォルダ内の経路数'),
|
|
372
|
+
pipelinesCount: zod
|
|
373
|
+
.number()
|
|
374
|
+
.min(getRoleResponseTwoPermissionListItemFoldersItemPipelinesCountMin)
|
|
375
|
+
.describe('フォルダ内のパイプライン数'),
|
|
376
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
377
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
378
|
+
})
|
|
379
|
+
.describe('フォルダ'))
|
|
380
|
+
.describe('管理対象のフォルダ'),
|
|
381
|
+
generalMasters: zod
|
|
382
|
+
.array(zod
|
|
383
|
+
.object({
|
|
384
|
+
id: zod.uuid().describe('UUID'),
|
|
385
|
+
code: zod
|
|
386
|
+
.string()
|
|
387
|
+
.max(getRoleResponseTwoPermissionListItemGeneralMastersItemCodeMax)
|
|
388
|
+
.describe('コード'),
|
|
389
|
+
name: zod
|
|
390
|
+
.string()
|
|
391
|
+
.max(getRoleResponseTwoPermissionListItemGeneralMastersItemNameMax)
|
|
392
|
+
.describe('名前'),
|
|
393
|
+
description: zod.string().nullable().describe('説明'),
|
|
394
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
395
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
396
|
+
fields: zod
|
|
397
|
+
.array(zod
|
|
398
|
+
.object({
|
|
399
|
+
id: zod.uuid().describe('UUID'),
|
|
400
|
+
title: zod
|
|
401
|
+
.string()
|
|
402
|
+
.max(getRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemTitleMax)
|
|
403
|
+
.describe('フィールド名'),
|
|
404
|
+
description: zod
|
|
405
|
+
.string()
|
|
406
|
+
.nullable()
|
|
407
|
+
.describe('フィールドの説明'),
|
|
408
|
+
code: zod
|
|
409
|
+
.string()
|
|
410
|
+
.max(getRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemCodeMax)
|
|
411
|
+
.describe('フィールドのコード'),
|
|
412
|
+
fieldType: zod
|
|
413
|
+
.enum([
|
|
414
|
+
'text',
|
|
415
|
+
'text_long',
|
|
416
|
+
'number',
|
|
417
|
+
'integer',
|
|
418
|
+
'checkbox',
|
|
419
|
+
'pull_down',
|
|
420
|
+
'date',
|
|
421
|
+
])
|
|
422
|
+
.describe('フィールドの型'),
|
|
423
|
+
required: zod
|
|
424
|
+
.boolean()
|
|
425
|
+
.describe('必須項目かどうか'),
|
|
426
|
+
visible: zod
|
|
427
|
+
.boolean()
|
|
428
|
+
.describe('管理者以外も閲覧可能な場合true'),
|
|
429
|
+
options: zod
|
|
430
|
+
.array(zod.string())
|
|
431
|
+
.nullable()
|
|
432
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
433
|
+
createdAt: zod.iso
|
|
434
|
+
.datetime({})
|
|
435
|
+
.describe('作成日時'),
|
|
436
|
+
updatedAt: zod.iso
|
|
437
|
+
.datetime({})
|
|
438
|
+
.describe('更新日時'),
|
|
439
|
+
})
|
|
440
|
+
.describe('汎用マスタのカスタムフィールド'))
|
|
441
|
+
.describe('カスタムフィールドの配列'),
|
|
442
|
+
})
|
|
443
|
+
.describe('汎用マスタ'))
|
|
444
|
+
.describe('管理対象の汎用マスタ'),
|
|
445
|
+
teams: zod
|
|
446
|
+
.array(zod
|
|
447
|
+
.object({
|
|
448
|
+
id: zod.uuid().describe('UUID'),
|
|
449
|
+
name: zod
|
|
450
|
+
.string()
|
|
451
|
+
.max(getRoleResponseTwoPermissionListItemTeamsItemNameMax)
|
|
452
|
+
.describe('名前'),
|
|
453
|
+
fullName: zod.string().describe('上位組織を含む名前'),
|
|
454
|
+
code: zod
|
|
455
|
+
.string()
|
|
456
|
+
.max(getRoleResponseTwoPermissionListItemTeamsItemCodeMax)
|
|
457
|
+
.describe('コード'),
|
|
458
|
+
notes: zod
|
|
459
|
+
.string()
|
|
460
|
+
.max(getRoleResponseTwoPermissionListItemTeamsItemNotesMax)
|
|
461
|
+
.nullish()
|
|
462
|
+
.describe('管理用メモ'),
|
|
463
|
+
approveOnly: zod
|
|
464
|
+
.boolean()
|
|
465
|
+
.describe('承認専用チームかどうか'),
|
|
466
|
+
usersCount: zod
|
|
467
|
+
.number()
|
|
468
|
+
.min(getRoleResponseTwoPermissionListItemTeamsItemUsersCountMin)
|
|
469
|
+
.describe('ユーザー数'),
|
|
470
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
471
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
472
|
+
})
|
|
473
|
+
.describe('チーム'))
|
|
474
|
+
.describe('管理対象のチーム'),
|
|
475
|
+
}))
|
|
476
|
+
.describe('権限のリスト'),
|
|
477
|
+
}))
|
|
478
|
+
.describe('管理者ロールの詳細');
|
|
193
479
|
/**
|
|
194
480
|
* 管理者ロールを更新します。
|
|
195
481
|
|
|
196
482
|
このAPIの実行には、ロールの管理権限が必要です。
|
|
197
483
|
* @summary 管理者ロールを更新
|
|
198
484
|
*/
|
|
199
|
-
export const
|
|
200
|
-
|
|
485
|
+
export const UpdateRoleParams = zod.object({
|
|
486
|
+
roleId: zod.uuid().describe('管理者ロールのUUID'),
|
|
201
487
|
});
|
|
202
|
-
export const
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
488
|
+
export const UpdateRoleBody = zod
|
|
489
|
+
.object({
|
|
490
|
+
name: zod.string().optional().describe('名前'),
|
|
491
|
+
permissionList: zod
|
|
492
|
+
.array(zod.object({
|
|
493
|
+
permission: zod
|
|
494
|
+
.enum([
|
|
495
|
+
'tenant',
|
|
496
|
+
'billing',
|
|
497
|
+
'integration',
|
|
498
|
+
'security',
|
|
499
|
+
'audit',
|
|
500
|
+
'stats',
|
|
501
|
+
'workflow',
|
|
502
|
+
'route',
|
|
503
|
+
'pipeline',
|
|
504
|
+
'workflow_misc',
|
|
505
|
+
'user',
|
|
506
|
+
'team',
|
|
507
|
+
'role',
|
|
508
|
+
'master',
|
|
509
|
+
'ticket_read',
|
|
510
|
+
'ticket_write',
|
|
511
|
+
'label',
|
|
512
|
+
'automation',
|
|
513
|
+
])
|
|
514
|
+
.describe('権限タイプ'),
|
|
515
|
+
restricted: zod.boolean().describe('管理対象を制限する場合true'),
|
|
516
|
+
folderIds: zod
|
|
517
|
+
.array(zod.uuid())
|
|
518
|
+
.optional()
|
|
519
|
+
.describe('管理対象のフォルダID'),
|
|
520
|
+
generalMasterIds: zod
|
|
521
|
+
.array(zod.uuid())
|
|
522
|
+
.optional()
|
|
523
|
+
.describe('管理対象の汎用マスタID'),
|
|
524
|
+
teamIds: zod
|
|
525
|
+
.array(zod.uuid())
|
|
526
|
+
.optional()
|
|
527
|
+
.describe('管理対象のチームID'),
|
|
528
|
+
}))
|
|
529
|
+
.optional()
|
|
530
|
+
.describe('権限リスト'),
|
|
531
|
+
})
|
|
532
|
+
.describe('管理者ロールを更新するときのrequest body');
|
|
533
|
+
export const updateRoleResponseOneNameMax = 300;
|
|
534
|
+
export const updateRoleResponseOneUsersCountMin = 0;
|
|
535
|
+
export const updateRoleResponseTwoPermissionListItemFoldersItemNameMax = 300;
|
|
536
|
+
export const updateRoleResponseTwoPermissionListItemFoldersItemCodeMax = 100;
|
|
537
|
+
export const updateRoleResponseTwoPermissionListItemFoldersItemWorkflowsCountMin = 0;
|
|
538
|
+
export const updateRoleResponseTwoPermissionListItemFoldersItemRoutesCountMin = 0;
|
|
539
|
+
export const updateRoleResponseTwoPermissionListItemFoldersItemPipelinesCountMin = 0;
|
|
540
|
+
export const updateRoleResponseTwoPermissionListItemGeneralMastersItemCodeMax = 100;
|
|
541
|
+
export const updateRoleResponseTwoPermissionListItemGeneralMastersItemNameMax = 300;
|
|
542
|
+
export const updateRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemTitleMax = 300;
|
|
543
|
+
export const updateRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemCodeMax = 100;
|
|
544
|
+
export const updateRoleResponseTwoPermissionListItemTeamsItemNameMax = 300;
|
|
545
|
+
export const updateRoleResponseTwoPermissionListItemTeamsItemCodeMax = 100;
|
|
546
|
+
export const updateRoleResponseTwoPermissionListItemTeamsItemNotesMax = 10000;
|
|
547
|
+
export const updateRoleResponseTwoPermissionListItemTeamsItemUsersCountMin = 0;
|
|
548
|
+
export const UpdateRoleResponse = zod
|
|
549
|
+
.object({
|
|
550
|
+
id: zod.uuid().describe('UUID'),
|
|
551
|
+
name: zod.string().max(updateRoleResponseOneNameMax).describe('名前'),
|
|
552
|
+
editable: zod
|
|
553
|
+
.boolean()
|
|
554
|
+
.describe('編集可能かどうか。「すべての管理者」のときだけfalseになります。'),
|
|
555
|
+
usersCount: zod
|
|
556
|
+
.number()
|
|
557
|
+
.min(updateRoleResponseOneUsersCountMin)
|
|
558
|
+
.describe('この管理者ロールに所属するユーザー数'),
|
|
559
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
560
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
561
|
+
})
|
|
562
|
+
.describe('管理者ロール')
|
|
563
|
+
.and(zod.object({
|
|
564
|
+
permissionList: zod
|
|
565
|
+
.array(zod.object({
|
|
566
|
+
permission: zod
|
|
567
|
+
.enum([
|
|
568
|
+
'tenant',
|
|
569
|
+
'billing',
|
|
570
|
+
'integration',
|
|
571
|
+
'security',
|
|
572
|
+
'audit',
|
|
573
|
+
'stats',
|
|
574
|
+
'workflow',
|
|
575
|
+
'route',
|
|
576
|
+
'pipeline',
|
|
577
|
+
'workflow_misc',
|
|
578
|
+
'user',
|
|
579
|
+
'team',
|
|
580
|
+
'role',
|
|
581
|
+
'master',
|
|
582
|
+
'ticket_read',
|
|
583
|
+
'ticket_write',
|
|
584
|
+
'label',
|
|
585
|
+
'automation',
|
|
586
|
+
])
|
|
587
|
+
.describe('権限タイプ'),
|
|
588
|
+
restricted: zod
|
|
589
|
+
.boolean()
|
|
590
|
+
.describe('管理対象が制限されている場合true'),
|
|
591
|
+
folders: zod
|
|
592
|
+
.array(zod
|
|
593
|
+
.object({
|
|
594
|
+
id: zod.uuid().describe('UUID'),
|
|
595
|
+
name: zod
|
|
596
|
+
.string()
|
|
597
|
+
.max(updateRoleResponseTwoPermissionListItemFoldersItemNameMax)
|
|
598
|
+
.describe('名前'),
|
|
599
|
+
code: zod
|
|
600
|
+
.string()
|
|
601
|
+
.max(updateRoleResponseTwoPermissionListItemFoldersItemCodeMax)
|
|
602
|
+
.describe('コード'),
|
|
603
|
+
description: zod.string().nullish().describe('説明'),
|
|
604
|
+
workflowsCount: zod
|
|
605
|
+
.number()
|
|
606
|
+
.min(updateRoleResponseTwoPermissionListItemFoldersItemWorkflowsCountMin)
|
|
607
|
+
.describe('フォルダ内のワークフロー数'),
|
|
608
|
+
routesCount: zod
|
|
609
|
+
.number()
|
|
610
|
+
.min(updateRoleResponseTwoPermissionListItemFoldersItemRoutesCountMin)
|
|
611
|
+
.describe('フォルダ内の経路数'),
|
|
612
|
+
pipelinesCount: zod
|
|
613
|
+
.number()
|
|
614
|
+
.min(updateRoleResponseTwoPermissionListItemFoldersItemPipelinesCountMin)
|
|
615
|
+
.describe('フォルダ内のパイプライン数'),
|
|
616
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
617
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
618
|
+
})
|
|
619
|
+
.describe('フォルダ'))
|
|
620
|
+
.describe('管理対象のフォルダ'),
|
|
621
|
+
generalMasters: zod
|
|
622
|
+
.array(zod
|
|
623
|
+
.object({
|
|
624
|
+
id: zod.uuid().describe('UUID'),
|
|
625
|
+
code: zod
|
|
626
|
+
.string()
|
|
627
|
+
.max(updateRoleResponseTwoPermissionListItemGeneralMastersItemCodeMax)
|
|
628
|
+
.describe('コード'),
|
|
629
|
+
name: zod
|
|
630
|
+
.string()
|
|
631
|
+
.max(updateRoleResponseTwoPermissionListItemGeneralMastersItemNameMax)
|
|
632
|
+
.describe('名前'),
|
|
633
|
+
description: zod.string().nullable().describe('説明'),
|
|
634
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
635
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
636
|
+
fields: zod
|
|
637
|
+
.array(zod
|
|
638
|
+
.object({
|
|
639
|
+
id: zod.uuid().describe('UUID'),
|
|
640
|
+
title: zod
|
|
641
|
+
.string()
|
|
642
|
+
.max(updateRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemTitleMax)
|
|
643
|
+
.describe('フィールド名'),
|
|
644
|
+
description: zod
|
|
645
|
+
.string()
|
|
646
|
+
.nullable()
|
|
647
|
+
.describe('フィールドの説明'),
|
|
648
|
+
code: zod
|
|
649
|
+
.string()
|
|
650
|
+
.max(updateRoleResponseTwoPermissionListItemGeneralMastersItemFieldsItemCodeMax)
|
|
651
|
+
.describe('フィールドのコード'),
|
|
652
|
+
fieldType: zod
|
|
653
|
+
.enum([
|
|
654
|
+
'text',
|
|
655
|
+
'text_long',
|
|
656
|
+
'number',
|
|
657
|
+
'integer',
|
|
658
|
+
'checkbox',
|
|
659
|
+
'pull_down',
|
|
660
|
+
'date',
|
|
661
|
+
])
|
|
662
|
+
.describe('フィールドの型'),
|
|
663
|
+
required: zod
|
|
664
|
+
.boolean()
|
|
665
|
+
.describe('必須項目かどうか'),
|
|
666
|
+
visible: zod
|
|
667
|
+
.boolean()
|
|
668
|
+
.describe('管理者以外も閲覧可能な場合true'),
|
|
669
|
+
options: zod
|
|
670
|
+
.array(zod.string())
|
|
671
|
+
.nullable()
|
|
672
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
673
|
+
createdAt: zod.iso
|
|
674
|
+
.datetime({})
|
|
675
|
+
.describe('作成日時'),
|
|
676
|
+
updatedAt: zod.iso
|
|
677
|
+
.datetime({})
|
|
678
|
+
.describe('更新日時'),
|
|
679
|
+
})
|
|
680
|
+
.describe('汎用マスタのカスタムフィールド'))
|
|
681
|
+
.describe('カスタムフィールドの配列'),
|
|
682
|
+
})
|
|
683
|
+
.describe('汎用マスタ'))
|
|
684
|
+
.describe('管理対象の汎用マスタ'),
|
|
685
|
+
teams: zod
|
|
686
|
+
.array(zod
|
|
687
|
+
.object({
|
|
688
|
+
id: zod.uuid().describe('UUID'),
|
|
689
|
+
name: zod
|
|
690
|
+
.string()
|
|
691
|
+
.max(updateRoleResponseTwoPermissionListItemTeamsItemNameMax)
|
|
692
|
+
.describe('名前'),
|
|
693
|
+
fullName: zod.string().describe('上位組織を含む名前'),
|
|
694
|
+
code: zod
|
|
695
|
+
.string()
|
|
696
|
+
.max(updateRoleResponseTwoPermissionListItemTeamsItemCodeMax)
|
|
697
|
+
.describe('コード'),
|
|
698
|
+
notes: zod
|
|
699
|
+
.string()
|
|
700
|
+
.max(updateRoleResponseTwoPermissionListItemTeamsItemNotesMax)
|
|
701
|
+
.nullish()
|
|
702
|
+
.describe('管理用メモ'),
|
|
703
|
+
approveOnly: zod
|
|
704
|
+
.boolean()
|
|
705
|
+
.describe('承認専用チームかどうか'),
|
|
706
|
+
usersCount: zod
|
|
707
|
+
.number()
|
|
708
|
+
.min(updateRoleResponseTwoPermissionListItemTeamsItemUsersCountMin)
|
|
709
|
+
.describe('ユーザー数'),
|
|
710
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
711
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
712
|
+
})
|
|
713
|
+
.describe('チーム'))
|
|
714
|
+
.describe('管理対象のチーム'),
|
|
715
|
+
}))
|
|
716
|
+
.describe('権限のリスト'),
|
|
717
|
+
}))
|
|
718
|
+
.describe('管理者ロールの詳細');
|
|
282
719
|
/**
|
|
283
720
|
* 管理者ロールを削除します。
|
|
284
721
|
|
|
285
722
|
このAPIの実行には、ロールの管理権限が必要です。
|
|
286
723
|
* @summary 管理者ロールを削除
|
|
287
724
|
*/
|
|
288
|
-
export const
|
|
289
|
-
|
|
725
|
+
export const DeleteRoleParams = zod.object({
|
|
726
|
+
roleId: zod.uuid().describe('管理者ロールのUUID'),
|
|
290
727
|
});
|
|
291
728
|
/**
|
|
292
729
|
* 管理者ロールにメンバーを追加します。最大10人まで複数のメンバーを同時に追加可能です。
|
|
@@ -294,12 +731,16 @@ export const deleteRoleParams = zod.object({
|
|
|
294
731
|
このAPIの実行には、ロールの管理権限が必要です。
|
|
295
732
|
* @summary 管理者ロールにメンバーを追加
|
|
296
733
|
*/
|
|
297
|
-
export const
|
|
298
|
-
|
|
734
|
+
export const CreateRoleMembersParams = zod.object({
|
|
735
|
+
roleId: zod.uuid().describe('管理者ロールのUUID'),
|
|
299
736
|
});
|
|
300
737
|
export const createRoleMembersBodyUserIdsMax = 10;
|
|
301
|
-
export const
|
|
302
|
-
|
|
738
|
+
export const CreateRoleMembersBody = zod.object({
|
|
739
|
+
userIds: zod
|
|
740
|
+
.array(zod.uuid())
|
|
741
|
+
.min(1)
|
|
742
|
+
.max(createRoleMembersBodyUserIdsMax)
|
|
743
|
+
.describe('ユーザーUUIDの配列'),
|
|
303
744
|
});
|
|
304
745
|
/**
|
|
305
746
|
* 管理者ロールのメンバー一覧を取得します。
|
|
@@ -307,15 +748,24 @@ export const createRoleMembersBody = zod.object({
|
|
|
307
748
|
このAPIの実行には、ロールの管理権限が必要です。
|
|
308
749
|
* @summary 管理者ロールのメンバー一覧を取得
|
|
309
750
|
*/
|
|
310
|
-
export const
|
|
311
|
-
|
|
751
|
+
export const ListRoleMembersParams = zod.object({
|
|
752
|
+
roleId: zod.uuid().describe('管理者ロールのUUID'),
|
|
312
753
|
});
|
|
313
754
|
export const listRoleMembersQueryPageDefault = 1;
|
|
314
755
|
export const listRoleMembersQueryPerPageDefault = 25;
|
|
315
756
|
export const listRoleMembersQueryPerPageMax = 100;
|
|
316
|
-
export const
|
|
317
|
-
|
|
318
|
-
|
|
757
|
+
export const ListRoleMembersQueryParams = zod.object({
|
|
758
|
+
page: zod
|
|
759
|
+
.number()
|
|
760
|
+
.min(1)
|
|
761
|
+
.default(listRoleMembersQueryPageDefault)
|
|
762
|
+
.describe('ページ'),
|
|
763
|
+
perPage: zod
|
|
764
|
+
.number()
|
|
765
|
+
.min(1)
|
|
766
|
+
.max(listRoleMembersQueryPerPageMax)
|
|
767
|
+
.default(listRoleMembersQueryPerPageDefault)
|
|
768
|
+
.describe('1ページあたりの件数'),
|
|
319
769
|
});
|
|
320
770
|
export const listRoleMembersResponseEmailMax = 254;
|
|
321
771
|
export const listRoleMembersResponseCodeMax = 100;
|
|
@@ -323,34 +773,56 @@ export const listRoleMembersResponseFirstNameMax = 255;
|
|
|
323
773
|
export const listRoleMembersResponseLastNameMax = 255;
|
|
324
774
|
export const listRoleMembersResponseFullNameMax = 255;
|
|
325
775
|
export const listRoleMembersResponseEmployeeIdMax = 30;
|
|
326
|
-
export const
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
776
|
+
export const ListRoleMembersResponseItem = zod
|
|
777
|
+
.object({
|
|
778
|
+
id: zod.uuid().describe('UUID'),
|
|
779
|
+
email: zod
|
|
780
|
+
.email()
|
|
781
|
+
.max(listRoleMembersResponseEmailMax)
|
|
782
|
+
.describe('メールアドレス'),
|
|
783
|
+
code: zod.string().max(listRoleMembersResponseCodeMax).describe('コード'),
|
|
784
|
+
firstName: zod
|
|
785
|
+
.string()
|
|
786
|
+
.max(listRoleMembersResponseFirstNameMax)
|
|
787
|
+
.describe('名'),
|
|
788
|
+
lastName: zod
|
|
789
|
+
.string()
|
|
790
|
+
.max(listRoleMembersResponseLastNameMax)
|
|
791
|
+
.describe('姓'),
|
|
792
|
+
fullName: zod
|
|
793
|
+
.string()
|
|
794
|
+
.max(listRoleMembersResponseFullNameMax)
|
|
795
|
+
.describe('フルネーム'),
|
|
796
|
+
employeeId: zod
|
|
797
|
+
.string()
|
|
798
|
+
.max(listRoleMembersResponseEmployeeIdMax)
|
|
799
|
+
.nullish()
|
|
800
|
+
.describe('社員番号'),
|
|
801
|
+
image: zod
|
|
802
|
+
.object({
|
|
803
|
+
'100x100': zod.string().nullable(),
|
|
804
|
+
'64x64': zod.string().nullable(),
|
|
805
|
+
'32x32': zod.string().nullable(),
|
|
806
|
+
})
|
|
807
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
808
|
+
status: zod
|
|
809
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
810
|
+
.describe('ステータス'),
|
|
811
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
812
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
813
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
814
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
815
|
+
})
|
|
816
|
+
.describe('ユーザー');
|
|
817
|
+
export const ListRoleMembersResponse = zod.array(ListRoleMembersResponseItem);
|
|
346
818
|
/**
|
|
347
819
|
* 管理者ロールからメンバーを削除します。
|
|
348
820
|
|
|
349
821
|
このAPIの実行には、ロールの管理権限が必要です。
|
|
350
822
|
* @summary 管理者ロールからメンバーを削除
|
|
351
823
|
*/
|
|
352
|
-
export const
|
|
353
|
-
|
|
354
|
-
|
|
824
|
+
export const DeleteRoleMemberParams = zod.object({
|
|
825
|
+
roleId: zod.uuid().describe('管理者ロールのUUID'),
|
|
826
|
+
userId: zod.string().describe('ユーザーのUUIDまたはコード'),
|
|
355
827
|
});
|
|
356
828
|
//# sourceMappingURL=role.zod.js.map
|