@smartbear/mcp 0.17.0 → 0.17.1
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/package.json.js
CHANGED
|
@@ -37,8 +37,439 @@ const MatrixSchema = z.object({
|
|
|
37
37
|
})
|
|
38
38
|
).min(1).max(2)
|
|
39
39
|
});
|
|
40
|
-
z.object({
|
|
40
|
+
const GetPacticipantSchema = z.object({
|
|
41
|
+
pacticipantName: z.string().describe("Name of the pacticipant (application or service)")
|
|
42
|
+
});
|
|
43
|
+
const ListBranchesSchema = z.object({
|
|
44
|
+
pacticipantName: z.string().describe("Name of the pacticipant"),
|
|
45
|
+
q: z.string().optional().describe("Filter branches by name"),
|
|
46
|
+
pageNumber: z.number().optional().describe("Page number (default: 1)"),
|
|
47
|
+
pageSize: z.number().optional().describe("Results per page (default: 100)")
|
|
48
|
+
});
|
|
49
|
+
const ListVersionsSchema = z.object({
|
|
50
|
+
pacticipantName: z.string().describe("Name of the pacticipant"),
|
|
51
|
+
pageNumber: z.number().optional().describe("Page number"),
|
|
52
|
+
pageSize: z.number().optional().describe("Results per page")
|
|
53
|
+
});
|
|
54
|
+
const GetVersionSchema = z.object({
|
|
55
|
+
pacticipantName: z.string().describe("Name of the pacticipant"),
|
|
56
|
+
versionNumber: z.string().describe("Version number to retrieve")
|
|
57
|
+
});
|
|
58
|
+
const GetLatestVersionSchema = z.object({
|
|
59
|
+
pacticipantName: z.string().describe("Name of the pacticipant"),
|
|
60
|
+
tag: z.string().optional().describe(
|
|
61
|
+
"Tag to filter by. If omitted, returns the overall latest version."
|
|
62
|
+
)
|
|
63
|
+
});
|
|
64
|
+
const GetEnvironmentSchema = z.object({
|
|
65
|
+
environmentId: z.string().describe("UUID of the environment")
|
|
66
|
+
});
|
|
67
|
+
const RecordDeploymentSchema = z.object({
|
|
68
|
+
pacticipantName: z.string().describe("Name of the pacticipant that was deployed"),
|
|
69
|
+
versionNumber: z.string().describe("Version number that was deployed"),
|
|
70
|
+
environmentId: z.string().describe("UUID of the target environment"),
|
|
71
|
+
applicationInstance: z.string().optional().describe(
|
|
72
|
+
"Identifies a specific instance when multiple instances of the same application are deployed to the same environment (e.g. 'blue', 'green')"
|
|
73
|
+
)
|
|
74
|
+
});
|
|
75
|
+
const GetCurrentlyDeployedSchema = z.object({
|
|
76
|
+
environmentId: z.string().describe("UUID of the environment")
|
|
77
|
+
});
|
|
78
|
+
const RecordReleaseSchema = z.object({
|
|
79
|
+
pacticipantName: z.string().describe("Name of the pacticipant that was released"),
|
|
80
|
+
versionNumber: z.string().describe("Version number that was released"),
|
|
81
|
+
environmentId: z.string().describe("UUID of the target environment")
|
|
82
|
+
});
|
|
83
|
+
const GetCurrentlySupportedSchema = z.object({
|
|
84
|
+
environmentId: z.string().describe("UUID of the environment")
|
|
85
|
+
});
|
|
86
|
+
const PublishConsumerContractsSchema = z.object({
|
|
87
|
+
pacticipantName: z.string().min(1).describe("Name of the consumer application"),
|
|
88
|
+
pacticipantVersionNumber: z.string().min(1).describe("Version number of the consumer"),
|
|
89
|
+
contracts: z.array(
|
|
90
|
+
z.object({
|
|
91
|
+
consumerName: z.string().describe("Consumer application name"),
|
|
92
|
+
providerName: z.string().describe("Provider application name"),
|
|
93
|
+
content: z.string().describe("Base64-encoded Pact JSON content"),
|
|
94
|
+
contentType: z.literal("application/json").describe("Content type (must be 'application/json')"),
|
|
95
|
+
specification: z.literal("pact").describe("Specification type (must be 'pact')")
|
|
96
|
+
})
|
|
97
|
+
).describe("Contracts to publish"),
|
|
98
|
+
tags: z.array(z.string()).optional().describe("Version tags (e.g. 'main', 'staging')"),
|
|
99
|
+
branch: z.string().optional().describe("Branch name of the consumer"),
|
|
100
|
+
buildUrl: z.string().optional().describe("URL of the CI build that produced these contracts")
|
|
101
|
+
});
|
|
102
|
+
const PublishProviderContractSchema = z.object({
|
|
103
|
+
providerName: z.string().describe("Name of the provider application"),
|
|
104
|
+
pacticipantVersionNumber: z.string().min(1).describe("Version number of the provider"),
|
|
105
|
+
contract: z.object({
|
|
106
|
+
content: z.string().describe("Base64-encoded OpenAPI specification content"),
|
|
107
|
+
contentType: z.enum(["application/json", "application/yaml", "application/yml"]).describe("Content type of the OpenAPI spec"),
|
|
108
|
+
specification: z.literal("oas").describe("Specification type (must be 'oas')"),
|
|
109
|
+
selfVerificationResults: z.object({
|
|
110
|
+
success: z.boolean().describe("Whether self-verification passed"),
|
|
111
|
+
content: z.string().optional().describe("Verification results content (e.g. test output)"),
|
|
112
|
+
contentType: z.string().optional().describe("Content type of the verification results"),
|
|
113
|
+
verifier: z.string().describe(
|
|
114
|
+
"Name of the tool used for verification (e.g. 'dredd', 'schemathesis')"
|
|
115
|
+
),
|
|
116
|
+
verifierVersion: z.string().optional().describe("Version of the verification tool"),
|
|
117
|
+
format: z.string().optional().describe("Format of the verification results")
|
|
118
|
+
}).describe(
|
|
119
|
+
"Results of self-verifying the provider against its own contract"
|
|
120
|
+
)
|
|
121
|
+
}).describe("Provider contract (OpenAPI spec) and verification details"),
|
|
122
|
+
tags: z.array(z.string()).optional().describe("Version tags"),
|
|
123
|
+
branch: z.string().optional().describe("Branch name of the provider"),
|
|
124
|
+
buildUrl: z.string().optional().describe("URL of the CI build")
|
|
125
|
+
});
|
|
126
|
+
const GetPactsForVerificationSchema = z.object({
|
|
127
|
+
providerName: z.string().describe("Name of the provider to get pacts for"),
|
|
128
|
+
consumerVersionSelectors: z.array(
|
|
129
|
+
z.object({
|
|
130
|
+
branch: z.string().optional().describe("Consumer branch name"),
|
|
131
|
+
consumer: z.string().optional().describe("Consumer name"),
|
|
132
|
+
deployed: z.boolean().optional().describe("Include versions that are currently deployed"),
|
|
133
|
+
deployedOrReleased: z.boolean().optional().describe("Include versions that are currently deployed or released"),
|
|
134
|
+
environment: z.string().optional().describe("Environment name"),
|
|
135
|
+
fallbackBranch: z.string().optional().describe("Fallback branch if primary branch doesn't exist"),
|
|
136
|
+
latest: z.boolean().optional().describe("Select only the latest version"),
|
|
137
|
+
mainBranch: z.boolean().optional().describe("Select versions from the consumer's main branch"),
|
|
138
|
+
matchingBranch: z.boolean().optional().describe(
|
|
139
|
+
"Select versions from the branch that matches the provider branch"
|
|
140
|
+
),
|
|
141
|
+
released: z.boolean().optional().describe("Include versions that are currently released"),
|
|
142
|
+
tag: z.string().optional().describe("Tag name (legacy, prefer branch)")
|
|
143
|
+
})
|
|
144
|
+
).optional().describe("Selectors specifying which consumer versions to include"),
|
|
145
|
+
includePendingStatus: z.boolean().optional().describe("Include the pending status in the results"),
|
|
146
|
+
includeWipPactsSince: z.string().optional().describe("Include WIP pacts published since this date (ISO 8601)"),
|
|
147
|
+
providerVersionBranch: z.string().optional().describe("Branch of the provider version being verified"),
|
|
148
|
+
providerVersionTags: z.array(z.string()).optional().describe("Tags for the provider version being verified")
|
|
149
|
+
});
|
|
150
|
+
const GetLabelSchema = z.object({
|
|
151
|
+
pacticipantName: z.string().describe("Name of the pacticipant"),
|
|
152
|
+
labelName: z.string().describe("Name of the label")
|
|
153
|
+
});
|
|
154
|
+
const LabelByNameSchema = z.object({
|
|
155
|
+
labelName: z.string().describe("Label name to filter by")
|
|
156
|
+
});
|
|
157
|
+
const UpdatePacticipantSchema = z.object({
|
|
158
|
+
pacticipantName: z.string().describe("Name of the pacticipant to update"),
|
|
159
|
+
displayName: z.string().optional().describe("Human-readable display name"),
|
|
160
|
+
mainBranch: z.string().optional().describe("Name of the main/trunk branch (e.g. 'main')"),
|
|
161
|
+
repositoryName: z.string().optional().describe("Repository name"),
|
|
162
|
+
repositoryNamespace: z.string().optional().describe("Repository namespace/organisation"),
|
|
163
|
+
repositoryUrl: z.string().optional().describe("URL of the source repository")
|
|
164
|
+
});
|
|
165
|
+
const UpdateVersionSchema = z.object({
|
|
166
|
+
pacticipantName: z.string().describe("Name of the pacticipant"),
|
|
167
|
+
versionNumber: z.string().describe("Version number to update"),
|
|
168
|
+
buildUrl: z.string().optional().describe("URL of the CI build that produced this version")
|
|
169
|
+
});
|
|
170
|
+
const GetBranchVersionsSchema = z.object({
|
|
171
|
+
pacticipantName: z.string().describe("Name of the pacticipant"),
|
|
172
|
+
branchName: z.string().describe("Name of the branch"),
|
|
173
|
+
pageNumber: z.number().optional().describe("Page number"),
|
|
174
|
+
pageSize: z.number().optional().describe("Results per page")
|
|
175
|
+
});
|
|
176
|
+
const GetVersionDeployedSchema = z.object({
|
|
177
|
+
pacticipantName: z.string().describe("Name of the pacticipant"),
|
|
178
|
+
versionNumber: z.string().describe("Version number"),
|
|
179
|
+
environmentId: z.string().describe("UUID of the environment")
|
|
180
|
+
});
|
|
181
|
+
const GetBiDirectionalProviderVersionSchema = z.object({
|
|
182
|
+
providerName: z.string().describe("Name of the provider"),
|
|
183
|
+
providerVersionNumber: z.string().describe("Provider version number")
|
|
184
|
+
});
|
|
185
|
+
const GetBiDirectionalConsumerProviderVersionSchema = z.object({
|
|
186
|
+
providerName: z.string().describe("Name of the provider"),
|
|
187
|
+
providerVersionNumber: z.string().describe("Provider version number"),
|
|
188
|
+
consumerName: z.string().describe("Name of the consumer"),
|
|
189
|
+
consumerVersionNumber: z.string().describe("Consumer version number")
|
|
190
|
+
});
|
|
191
|
+
const CreateEnvironmentSchema = z.object({
|
|
192
|
+
name: z.string().min(1).describe("Unique name for the environment (e.g. 'production', 'staging')"),
|
|
193
|
+
production: z.boolean().describe("Whether this is a production environment"),
|
|
194
|
+
displayName: z.string().optional().describe("Human-readable display name"),
|
|
195
|
+
teamUuids: z.array(z.string().uuid()).optional().describe("UUIDs of teams that own this environment")
|
|
196
|
+
});
|
|
197
|
+
const UpdateEnvironmentSchema = z.object({
|
|
198
|
+
environmentId: z.string().describe("UUID of the environment to update"),
|
|
199
|
+
name: z.string().min(1).describe("Unique name for the environment"),
|
|
200
|
+
production: z.boolean().describe("Whether this is a production environment"),
|
|
201
|
+
displayName: z.string().optional().describe("Human-readable display name"),
|
|
202
|
+
teamUuids: z.array(z.string().uuid()).optional().describe("UUIDs of teams that own this environment")
|
|
203
|
+
});
|
|
204
|
+
const CreatePacticipantSchema = z.object({
|
|
205
|
+
name: z.string().min(1).describe("Name of the pacticipant (cannot be changed after creation)"),
|
|
206
|
+
displayName: z.string().optional().describe("Human-readable display name"),
|
|
207
|
+
mainBranch: z.string().optional().describe("Name of the main/trunk branch (e.g. 'main')"),
|
|
208
|
+
repositoryName: z.string().optional().describe("Repository name"),
|
|
209
|
+
repositoryNamespace: z.string().optional().describe("Repository namespace/organisation"),
|
|
210
|
+
repositoryUrl: z.string().optional().describe("URL of the source repository")
|
|
211
|
+
});
|
|
212
|
+
const DeletePacticipantSchema = z.object({
|
|
213
|
+
pacticipantName: z.string().describe("Name of the pacticipant to delete")
|
|
214
|
+
});
|
|
215
|
+
const GetBranchSchema = z.object({
|
|
216
|
+
pacticipantName: z.string().describe("Name of the pacticipant"),
|
|
217
|
+
branchName: z.string().describe("Name of the branch")
|
|
218
|
+
});
|
|
219
|
+
const DeleteBranchSchema = z.object({
|
|
220
|
+
pacticipantName: z.string().describe("Name of the pacticipant"),
|
|
221
|
+
branchName: z.string().describe("Name of the branch to delete")
|
|
222
|
+
});
|
|
223
|
+
const ManageLabelSchema = z.object({
|
|
224
|
+
pacticipantName: z.string().describe("Name of the pacticipant"),
|
|
225
|
+
labelName: z.string().describe("Name of the label")
|
|
226
|
+
});
|
|
227
|
+
const GetIntegrationsByTeamSchema = z.object({
|
|
228
|
+
teamId: z.string().describe("UUID of the team")
|
|
229
|
+
});
|
|
230
|
+
const DeleteIntegrationSchema = z.object({
|
|
231
|
+
providerName: z.string().describe("Name of the provider"),
|
|
232
|
+
consumerName: z.string().describe("Name of the consumer")
|
|
233
|
+
});
|
|
234
|
+
const WebhookRequestSchema = z.object({
|
|
235
|
+
method: z.literal("POST").describe("HTTP method (must be POST)"),
|
|
236
|
+
url: z.string().url().describe("URL to send the webhook request to"),
|
|
237
|
+
body: z.any().optional().describe("Request body to send"),
|
|
238
|
+
headers: z.record(z.string(), z.string()).optional().describe("HTTP headers to include"),
|
|
239
|
+
username: z.string().optional().describe("Username for basic auth"),
|
|
240
|
+
password: z.string().optional().describe("Password for basic auth")
|
|
241
|
+
});
|
|
242
|
+
const WebhookEventSchema = z.object({
|
|
243
|
+
name: z.string().describe(
|
|
244
|
+
"Event name (e.g. 'contract_content_changed', 'provider_verification_published')"
|
|
245
|
+
)
|
|
246
|
+
});
|
|
247
|
+
const CreateWebhookSchema = z.object({
|
|
248
|
+
description: z.string().describe("Human-readable description of the webhook"),
|
|
249
|
+
events: z.array(WebhookEventSchema).min(1).describe("Events that trigger this webhook"),
|
|
250
|
+
request: WebhookRequestSchema.describe("HTTP request to send when triggered"),
|
|
251
|
+
consumer: z.object({ name: z.string() }).optional().describe("Restrict to a specific consumer (omit for all)"),
|
|
252
|
+
provider: z.object({ name: z.string() }).optional().describe("Restrict to a specific provider (omit for all)"),
|
|
253
|
+
enabled: z.boolean().optional().default(true).describe("Whether the webhook is enabled"),
|
|
254
|
+
teamUuid: z.string().uuid().nullable().optional().describe("UUID of the owning team (null for global)")
|
|
255
|
+
});
|
|
256
|
+
const UpdateWebhookSchema = z.object({
|
|
257
|
+
webhookId: z.string().describe("UUID of the webhook to update"),
|
|
258
|
+
description: z.string().optional().describe("Human-readable description"),
|
|
259
|
+
events: z.array(WebhookEventSchema).optional().describe("Events that trigger this webhook"),
|
|
260
|
+
request: WebhookRequestSchema.optional().describe(
|
|
261
|
+
"HTTP request to send when triggered"
|
|
262
|
+
),
|
|
263
|
+
consumer: z.object({ name: z.string() }).nullable().optional().describe("Restrict to a specific consumer"),
|
|
264
|
+
provider: z.object({ name: z.string() }).nullable().optional().describe("Restrict to a specific provider"),
|
|
265
|
+
enabled: z.boolean().optional().describe("Whether the webhook is enabled"),
|
|
266
|
+
teamUuid: z.string().uuid().nullable().optional().describe("UUID of the owning team")
|
|
267
|
+
});
|
|
268
|
+
const WebhookIdSchema = z.object({
|
|
269
|
+
webhookId: z.string().describe("UUID of the webhook")
|
|
270
|
+
});
|
|
271
|
+
const CreateSecretSchema = z.object({
|
|
272
|
+
name: z.string().min(1).describe("Name of the secret"),
|
|
273
|
+
value: z.string().min(1).describe("Value of the secret"),
|
|
274
|
+
description: z.string().nullable().optional().describe("Description of the secret"),
|
|
275
|
+
teamUuid: z.string().uuid().optional().describe("UUID of the owning team (cannot be changed after creation)")
|
|
276
|
+
});
|
|
277
|
+
const UpdateSecretSchema = z.object({
|
|
278
|
+
secretId: z.string().describe("UUID of the secret to update"),
|
|
279
|
+
name: z.string().optional().describe("New name for the secret"),
|
|
280
|
+
value: z.string().optional().describe("New value for the secret"),
|
|
281
|
+
description: z.string().nullable().optional().describe("New description")
|
|
282
|
+
});
|
|
283
|
+
const SecretIdSchema = z.object({
|
|
284
|
+
secretId: z.string().describe("UUID of the secret")
|
|
285
|
+
});
|
|
286
|
+
const RegenerateTokenSchema = z.object({
|
|
287
|
+
tokenId: z.string().describe("ID of the token to regenerate")
|
|
288
|
+
});
|
|
289
|
+
const AuditSchema = z.object({
|
|
290
|
+
since: z.string().optional().describe("Only include events at or after this ISO 8601 timestamp"),
|
|
291
|
+
userUuid: z.string().uuid().optional().describe("Filter events by PactFlow user UUID"),
|
|
292
|
+
type: z.string().optional().describe("Filter events by type (e.g. 'pact_publication')"),
|
|
293
|
+
sort: z.string().optional().describe("Sort order: '+timestamp' (asc, default) or '-timestamp' (desc)"),
|
|
294
|
+
from: z.string().optional().describe(
|
|
295
|
+
"Start result set from this audit event UUID (keyset pagination)"
|
|
296
|
+
),
|
|
297
|
+
pageNumber: z.number().int().min(1).optional().describe("Page number"),
|
|
298
|
+
pageSize: z.number().int().min(1).max(100).optional().describe("Results per page (max 100)")
|
|
299
|
+
});
|
|
300
|
+
const ListAdminUsersSchema = z.object({
|
|
301
|
+
active: z.boolean().optional().describe("Filter by active/inactive status"),
|
|
302
|
+
q: z.string().optional().describe("Filter by name or email"),
|
|
303
|
+
userType: z.number().min(0).max(1).optional().describe("0 = regular users, 1 = system accounts"),
|
|
304
|
+
page: z.number().optional().describe("Page number"),
|
|
305
|
+
size: z.number().optional().describe("Results per page")
|
|
306
|
+
});
|
|
307
|
+
const AdminUserIdSchema = z.object({
|
|
308
|
+
userId: z.string().describe("UUID of the user")
|
|
309
|
+
});
|
|
310
|
+
const CreateAdminUserSchema = z.object({
|
|
311
|
+
email: z.string().email().describe("Email address of the new user"),
|
|
312
|
+
name: z.string().describe("Display name of the new user"),
|
|
313
|
+
firstName: z.string().optional().describe("First name"),
|
|
314
|
+
lastName: z.string().optional().describe("Last name"),
|
|
315
|
+
externalIdpId: z.string().optional().describe("External identity provider ID (for SAML/SSO)"),
|
|
316
|
+
externalIdpUsername: z.string().optional().describe("External IdP username (for SAML/SSO)")
|
|
317
|
+
});
|
|
318
|
+
const UpdateAdminUserSchema = z.object({
|
|
319
|
+
userId: z.string().describe("UUID of the user to update"),
|
|
320
|
+
active: z.boolean().optional().describe("Whether the user is active"),
|
|
321
|
+
email: z.string().email().optional().describe("New email address"),
|
|
322
|
+
firstName: z.string().optional().describe("First name"),
|
|
323
|
+
lastName: z.string().optional().describe("Last name"),
|
|
324
|
+
name: z.string().optional().describe("Display name")
|
|
325
|
+
});
|
|
326
|
+
const InviteUsersSchema = z.object({
|
|
327
|
+
users: z.array(
|
|
328
|
+
z.object({
|
|
329
|
+
email: z.string().email().describe("Email address"),
|
|
330
|
+
name: z.string().min(1).describe("Display name")
|
|
331
|
+
})
|
|
332
|
+
).min(1).describe("List of users to invite")
|
|
333
|
+
});
|
|
334
|
+
const SetUserRolesSchema = z.object({
|
|
335
|
+
userId: z.string().describe("UUID of the user"),
|
|
336
|
+
roles: z.array(z.string()).describe("Array of role UUIDs to assign")
|
|
337
|
+
});
|
|
338
|
+
const UserRoleSchema = z.object({
|
|
339
|
+
userId: z.string().describe("UUID of the user"),
|
|
340
|
+
roleId: z.string().describe("UUID of the role")
|
|
341
|
+
});
|
|
342
|
+
const ListAdminTeamsSchema = z.object({
|
|
343
|
+
q: z.string().optional().describe("Filter teams by name"),
|
|
344
|
+
page: z.number().optional().describe("Page number"),
|
|
345
|
+
size: z.number().optional().describe("Results per page")
|
|
346
|
+
});
|
|
347
|
+
const AdminTeamIdSchema = z.object({
|
|
348
|
+
teamId: z.string().describe("UUID of the team")
|
|
349
|
+
});
|
|
350
|
+
const CreateTeamSchema = z.object({
|
|
351
|
+
name: z.string().min(1).describe("Name of the team"),
|
|
352
|
+
administratorUuids: z.array(z.string().uuid()).optional().describe("UUIDs of team administrators"),
|
|
353
|
+
environmentUuids: z.array(z.string().uuid()).optional().describe("UUIDs of environments assigned to this team"),
|
|
354
|
+
pacticipantNames: z.array(z.string().min(1)).optional().describe("Names of pacticipants assigned to this team")
|
|
355
|
+
});
|
|
356
|
+
const UpdateTeamSchema = z.object({
|
|
357
|
+
teamId: z.string().describe("UUID of the team to update"),
|
|
358
|
+
name: z.string().min(1).describe("Name of the team"),
|
|
359
|
+
administratorUuids: z.array(z.string().uuid()).optional().describe("UUIDs of team administrators"),
|
|
360
|
+
environmentUuids: z.array(z.string().uuid()).optional().describe("UUIDs of environments assigned to this team"),
|
|
361
|
+
pacticipantNames: z.array(z.string().min(1)).optional().describe("Names of pacticipants assigned to this team")
|
|
362
|
+
});
|
|
363
|
+
const TeamUserIdSchema = z.object({
|
|
364
|
+
teamId: z.string().describe("UUID of the team"),
|
|
365
|
+
userId: z.string().describe("UUID of the user")
|
|
366
|
+
});
|
|
367
|
+
const PatchTeamUsersSchema = z.object({
|
|
368
|
+
teamId: z.string().describe("UUID of the team"),
|
|
369
|
+
operations: z.array(
|
|
370
|
+
z.object({
|
|
371
|
+
op: z.enum(["add", "remove"]).describe("Operation: 'add' or 'remove'"),
|
|
372
|
+
path: z.literal("/users").describe("JSON Patch path (must be '/users')"),
|
|
373
|
+
value: z.object({
|
|
374
|
+
uuid: z.string().uuid().describe("UUID of the user")
|
|
375
|
+
})
|
|
376
|
+
})
|
|
377
|
+
).describe("JSON Patch operations to apply")
|
|
378
|
+
});
|
|
379
|
+
const SetTeamUsersSchema = z.object({
|
|
380
|
+
teamId: z.string().describe("UUID of the team"),
|
|
381
|
+
uuids: z.array(z.string().uuid()).describe("UUIDs of users to set as team members (replaces existing)")
|
|
382
|
+
});
|
|
383
|
+
const AdminRoleIdSchema = z.object({
|
|
384
|
+
roleId: z.string().describe("UUID of the role")
|
|
385
|
+
});
|
|
386
|
+
const CreateRoleSchema = z.object({
|
|
387
|
+
name: z.string().min(1).describe("Name of the role"),
|
|
388
|
+
permissions: z.array(
|
|
389
|
+
z.object({
|
|
390
|
+
scope: z.string().describe("Permission scope (e.g. 'webhook:read', 'user:manage')")
|
|
391
|
+
})
|
|
392
|
+
).describe("Permissions granted by this role"),
|
|
393
|
+
description: z.string().optional().describe("Description of the role")
|
|
394
|
+
});
|
|
395
|
+
const UpdateRoleSchema = z.object({
|
|
396
|
+
roleId: z.string().describe("UUID of the role to update"),
|
|
397
|
+
name: z.string().min(1).describe("Name of the role"),
|
|
398
|
+
permissions: z.array(
|
|
399
|
+
z.object({
|
|
400
|
+
scope: z.string().describe("Permission scope")
|
|
401
|
+
})
|
|
402
|
+
).describe("Permissions granted by this role"),
|
|
403
|
+
description: z.string().optional().describe("Description of the role")
|
|
404
|
+
});
|
|
405
|
+
const CreateSystemAccountSchema = z.object({
|
|
406
|
+
name: z.string().min(1).describe("Name of the system account")
|
|
407
|
+
});
|
|
408
|
+
const GetSystemAccountTokensSchema = z.object({
|
|
409
|
+
accountId: z.string().describe("UUID of the system account")
|
|
410
|
+
});
|
|
411
|
+
const GetPacticipantNetworkSchema = z.object({
|
|
412
|
+
pacticipantName: z.string().describe("Name of the pacticipant to get network for")
|
|
413
|
+
});
|
|
41
414
|
export {
|
|
415
|
+
AdminRoleIdSchema,
|
|
416
|
+
AdminTeamIdSchema,
|
|
417
|
+
AdminUserIdSchema,
|
|
418
|
+
AuditSchema,
|
|
42
419
|
CanIDeploySchema,
|
|
43
|
-
|
|
420
|
+
CreateAdminUserSchema,
|
|
421
|
+
CreateEnvironmentSchema,
|
|
422
|
+
CreatePacticipantSchema,
|
|
423
|
+
CreateRoleSchema,
|
|
424
|
+
CreateSecretSchema,
|
|
425
|
+
CreateSystemAccountSchema,
|
|
426
|
+
CreateTeamSchema,
|
|
427
|
+
CreateWebhookSchema,
|
|
428
|
+
DeleteBranchSchema,
|
|
429
|
+
DeleteIntegrationSchema,
|
|
430
|
+
DeletePacticipantSchema,
|
|
431
|
+
GetBiDirectionalConsumerProviderVersionSchema,
|
|
432
|
+
GetBiDirectionalProviderVersionSchema,
|
|
433
|
+
GetBranchSchema,
|
|
434
|
+
GetBranchVersionsSchema,
|
|
435
|
+
GetCurrentlyDeployedSchema,
|
|
436
|
+
GetCurrentlySupportedSchema,
|
|
437
|
+
GetEnvironmentSchema,
|
|
438
|
+
GetIntegrationsByTeamSchema,
|
|
439
|
+
GetLabelSchema,
|
|
440
|
+
GetLatestVersionSchema,
|
|
441
|
+
GetPacticipantNetworkSchema,
|
|
442
|
+
GetPacticipantSchema,
|
|
443
|
+
GetPactsForVerificationSchema,
|
|
444
|
+
GetSystemAccountTokensSchema,
|
|
445
|
+
GetVersionDeployedSchema,
|
|
446
|
+
GetVersionSchema,
|
|
447
|
+
InviteUsersSchema,
|
|
448
|
+
LabelByNameSchema,
|
|
449
|
+
ListAdminTeamsSchema,
|
|
450
|
+
ListAdminUsersSchema,
|
|
451
|
+
ListBranchesSchema,
|
|
452
|
+
ListVersionsSchema,
|
|
453
|
+
ManageLabelSchema,
|
|
454
|
+
MatrixSchema,
|
|
455
|
+
PatchTeamUsersSchema,
|
|
456
|
+
PublishConsumerContractsSchema,
|
|
457
|
+
PublishProviderContractSchema,
|
|
458
|
+
RecordDeploymentSchema,
|
|
459
|
+
RecordReleaseSchema,
|
|
460
|
+
RegenerateTokenSchema,
|
|
461
|
+
SecretIdSchema,
|
|
462
|
+
SetTeamUsersSchema,
|
|
463
|
+
SetUserRolesSchema,
|
|
464
|
+
TeamUserIdSchema,
|
|
465
|
+
UpdateAdminUserSchema,
|
|
466
|
+
UpdateEnvironmentSchema,
|
|
467
|
+
UpdatePacticipantSchema,
|
|
468
|
+
UpdateRoleSchema,
|
|
469
|
+
UpdateSecretSchema,
|
|
470
|
+
UpdateTeamSchema,
|
|
471
|
+
UpdateVersionSchema,
|
|
472
|
+
UpdateWebhookSchema,
|
|
473
|
+
UserRoleSchema,
|
|
474
|
+
WebhookIdSchema
|
|
44
475
|
};
|