@avallon-labs/mcp 69.7.0 → 69.8.0-staging.1487
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/index.js
CHANGED
|
@@ -3304,6 +3304,104 @@ var updateTenantSettings = async (updateTenantSettingsBody, options) => {
|
|
|
3304
3304
|
const data = body ? JSON.parse(body) : {};
|
|
3305
3305
|
return { data, status: res.status, headers: res.headers };
|
|
3306
3306
|
};
|
|
3307
|
+
var getCreateIdentityProviderUrl = () => {
|
|
3308
|
+
return `/v1/identity-providers`;
|
|
3309
|
+
};
|
|
3310
|
+
var createIdentityProvider = async (createIdentityProviderBody, options) => {
|
|
3311
|
+
const getHeaders = (h) => {
|
|
3312
|
+
if (!h) return {};
|
|
3313
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3314
|
+
if (Array.isArray(h)) return Object.fromEntries(h);
|
|
3315
|
+
return h;
|
|
3316
|
+
};
|
|
3317
|
+
const res = await fetch(
|
|
3318
|
+
getCreateIdentityProviderUrl(),
|
|
3319
|
+
{
|
|
3320
|
+
...options,
|
|
3321
|
+
method: "POST",
|
|
3322
|
+
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
3323
|
+
body: JSON.stringify(createIdentityProviderBody)
|
|
3324
|
+
}
|
|
3325
|
+
);
|
|
3326
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
3327
|
+
const data = body ? JSON.parse(body) : {};
|
|
3328
|
+
return { data, status: res.status, headers: res.headers };
|
|
3329
|
+
};
|
|
3330
|
+
var getListIdentityProvidersUrl = (params) => {
|
|
3331
|
+
const normalizedParams = new URLSearchParams();
|
|
3332
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
3333
|
+
if (value !== void 0) {
|
|
3334
|
+
normalizedParams.append(key, value === null ? "null" : String(value));
|
|
3335
|
+
}
|
|
3336
|
+
});
|
|
3337
|
+
const stringifiedParams = normalizedParams.toString();
|
|
3338
|
+
return stringifiedParams.length > 0 ? `/v1/identity-providers?${stringifiedParams}` : `/v1/identity-providers`;
|
|
3339
|
+
};
|
|
3340
|
+
var listIdentityProviders = async (params, options) => {
|
|
3341
|
+
const res = await fetch(
|
|
3342
|
+
getListIdentityProvidersUrl(params),
|
|
3343
|
+
{
|
|
3344
|
+
...options,
|
|
3345
|
+
method: "GET"
|
|
3346
|
+
}
|
|
3347
|
+
);
|
|
3348
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
3349
|
+
const data = body ? JSON.parse(body) : {};
|
|
3350
|
+
return { data, status: res.status, headers: res.headers };
|
|
3351
|
+
};
|
|
3352
|
+
var getGetIdentityProviderUrl = (identityProviderId) => {
|
|
3353
|
+
return `/v1/identity-providers/${identityProviderId}`;
|
|
3354
|
+
};
|
|
3355
|
+
var getIdentityProvider = async (identityProviderId, options) => {
|
|
3356
|
+
const res = await fetch(
|
|
3357
|
+
getGetIdentityProviderUrl(identityProviderId),
|
|
3358
|
+
{
|
|
3359
|
+
...options,
|
|
3360
|
+
method: "GET"
|
|
3361
|
+
}
|
|
3362
|
+
);
|
|
3363
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
3364
|
+
const data = body ? JSON.parse(body) : {};
|
|
3365
|
+
return { data, status: res.status, headers: res.headers };
|
|
3366
|
+
};
|
|
3367
|
+
var getUpdateIdentityProviderUrl = (identityProviderId) => {
|
|
3368
|
+
return `/v1/identity-providers/${identityProviderId}`;
|
|
3369
|
+
};
|
|
3370
|
+
var updateIdentityProvider = async (identityProviderId, updateIdentityProviderBody, options) => {
|
|
3371
|
+
const getHeaders = (h) => {
|
|
3372
|
+
if (!h) return {};
|
|
3373
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3374
|
+
if (Array.isArray(h)) return Object.fromEntries(h);
|
|
3375
|
+
return h;
|
|
3376
|
+
};
|
|
3377
|
+
const res = await fetch(
|
|
3378
|
+
getUpdateIdentityProviderUrl(identityProviderId),
|
|
3379
|
+
{
|
|
3380
|
+
...options,
|
|
3381
|
+
method: "PATCH",
|
|
3382
|
+
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
3383
|
+
body: JSON.stringify(updateIdentityProviderBody)
|
|
3384
|
+
}
|
|
3385
|
+
);
|
|
3386
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
3387
|
+
const data = body ? JSON.parse(body) : {};
|
|
3388
|
+
return { data, status: res.status, headers: res.headers };
|
|
3389
|
+
};
|
|
3390
|
+
var getDeleteIdentityProviderUrl = (identityProviderId) => {
|
|
3391
|
+
return `/v1/identity-providers/${identityProviderId}`;
|
|
3392
|
+
};
|
|
3393
|
+
var deleteIdentityProvider = async (identityProviderId, options) => {
|
|
3394
|
+
const res = await fetch(
|
|
3395
|
+
getDeleteIdentityProviderUrl(identityProviderId),
|
|
3396
|
+
{
|
|
3397
|
+
...options,
|
|
3398
|
+
method: "DELETE"
|
|
3399
|
+
}
|
|
3400
|
+
);
|
|
3401
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
3402
|
+
const data = body ? JSON.parse(body) : {};
|
|
3403
|
+
return { data, status: res.status, headers: res.headers };
|
|
3404
|
+
};
|
|
3307
3405
|
var getCreateSecretUrl = () => {
|
|
3308
3406
|
return `/v1/secrets`;
|
|
3309
3407
|
};
|
|
@@ -8236,6 +8334,121 @@ var updateTenantSettingsHandler = async (args, options) => {
|
|
|
8236
8334
|
structuredContent: res.data
|
|
8237
8335
|
};
|
|
8238
8336
|
};
|
|
8337
|
+
var createIdentityProviderHandler = async (args, options) => {
|
|
8338
|
+
const res = await createIdentityProvider(args.bodyParams, options);
|
|
8339
|
+
if (res.status >= 400) {
|
|
8340
|
+
return {
|
|
8341
|
+
content: [
|
|
8342
|
+
{
|
|
8343
|
+
type: "text",
|
|
8344
|
+
text: JSON.stringify(res.data ?? null)
|
|
8345
|
+
}
|
|
8346
|
+
],
|
|
8347
|
+
isError: true
|
|
8348
|
+
};
|
|
8349
|
+
}
|
|
8350
|
+
return {
|
|
8351
|
+
content: [
|
|
8352
|
+
{
|
|
8353
|
+
type: "text",
|
|
8354
|
+
text: JSON.stringify(res.data ?? null)
|
|
8355
|
+
}
|
|
8356
|
+
],
|
|
8357
|
+
structuredContent: res.data
|
|
8358
|
+
};
|
|
8359
|
+
};
|
|
8360
|
+
var listIdentityProvidersHandler = async (args, options) => {
|
|
8361
|
+
const res = await listIdentityProviders(args.queryParams, options);
|
|
8362
|
+
if (res.status >= 400) {
|
|
8363
|
+
return {
|
|
8364
|
+
content: [
|
|
8365
|
+
{
|
|
8366
|
+
type: "text",
|
|
8367
|
+
text: JSON.stringify(res.data ?? null)
|
|
8368
|
+
}
|
|
8369
|
+
],
|
|
8370
|
+
isError: true
|
|
8371
|
+
};
|
|
8372
|
+
}
|
|
8373
|
+
return {
|
|
8374
|
+
content: [
|
|
8375
|
+
{
|
|
8376
|
+
type: "text",
|
|
8377
|
+
text: JSON.stringify(res.data ?? null)
|
|
8378
|
+
}
|
|
8379
|
+
],
|
|
8380
|
+
structuredContent: res.data
|
|
8381
|
+
};
|
|
8382
|
+
};
|
|
8383
|
+
var getIdentityProviderHandler = async (args, options) => {
|
|
8384
|
+
const res = await getIdentityProvider(args.pathParams.identityProviderId, options);
|
|
8385
|
+
if (res.status >= 400) {
|
|
8386
|
+
return {
|
|
8387
|
+
content: [
|
|
8388
|
+
{
|
|
8389
|
+
type: "text",
|
|
8390
|
+
text: JSON.stringify(res.data ?? null)
|
|
8391
|
+
}
|
|
8392
|
+
],
|
|
8393
|
+
isError: true
|
|
8394
|
+
};
|
|
8395
|
+
}
|
|
8396
|
+
return {
|
|
8397
|
+
content: [
|
|
8398
|
+
{
|
|
8399
|
+
type: "text",
|
|
8400
|
+
text: JSON.stringify(res.data ?? null)
|
|
8401
|
+
}
|
|
8402
|
+
],
|
|
8403
|
+
structuredContent: res.data
|
|
8404
|
+
};
|
|
8405
|
+
};
|
|
8406
|
+
var updateIdentityProviderHandler = async (args, options) => {
|
|
8407
|
+
const res = await updateIdentityProvider(args.pathParams.identityProviderId, args.bodyParams, options);
|
|
8408
|
+
if (res.status >= 400) {
|
|
8409
|
+
return {
|
|
8410
|
+
content: [
|
|
8411
|
+
{
|
|
8412
|
+
type: "text",
|
|
8413
|
+
text: JSON.stringify(res.data ?? null)
|
|
8414
|
+
}
|
|
8415
|
+
],
|
|
8416
|
+
isError: true
|
|
8417
|
+
};
|
|
8418
|
+
}
|
|
8419
|
+
return {
|
|
8420
|
+
content: [
|
|
8421
|
+
{
|
|
8422
|
+
type: "text",
|
|
8423
|
+
text: JSON.stringify(res.data ?? null)
|
|
8424
|
+
}
|
|
8425
|
+
],
|
|
8426
|
+
structuredContent: res.data
|
|
8427
|
+
};
|
|
8428
|
+
};
|
|
8429
|
+
var deleteIdentityProviderHandler = async (args, options) => {
|
|
8430
|
+
const res = await deleteIdentityProvider(args.pathParams.identityProviderId, options);
|
|
8431
|
+
if (res.status >= 400) {
|
|
8432
|
+
return {
|
|
8433
|
+
content: [
|
|
8434
|
+
{
|
|
8435
|
+
type: "text",
|
|
8436
|
+
text: JSON.stringify(res.data ?? null)
|
|
8437
|
+
}
|
|
8438
|
+
],
|
|
8439
|
+
isError: true
|
|
8440
|
+
};
|
|
8441
|
+
}
|
|
8442
|
+
return {
|
|
8443
|
+
content: [
|
|
8444
|
+
{
|
|
8445
|
+
type: "text",
|
|
8446
|
+
text: JSON.stringify(res.data ?? null)
|
|
8447
|
+
}
|
|
8448
|
+
],
|
|
8449
|
+
structuredContent: res.data
|
|
8450
|
+
};
|
|
8451
|
+
};
|
|
8239
8452
|
var createSecretHandler = async (args, options) => {
|
|
8240
8453
|
const res = await createSecret(args.bodyParams, options);
|
|
8241
8454
|
if (res.status >= 400) {
|
|
@@ -13510,6 +13723,7 @@ var ListChatAgentsResponse = zod.object({
|
|
|
13510
13723
|
"id": zod.string(),
|
|
13511
13724
|
"name": zod.string(),
|
|
13512
13725
|
"evaluator_slug": zod.union([zod.string(), zod.null()]),
|
|
13726
|
+
"identity_provider_id": zod.union([zod.string(), zod.null()]).describe("Identity provider whose members are the only ones who may open chats with this agent, or null when anyone may."),
|
|
13513
13727
|
"created_at": zod.string().datetime({ "offset": true }),
|
|
13514
13728
|
"updated_at": zod.string().datetime({ "offset": true })
|
|
13515
13729
|
})),
|
|
@@ -13526,6 +13740,7 @@ var GetChatAgentResponse = zod.object({
|
|
|
13526
13740
|
"id": zod.string(),
|
|
13527
13741
|
"name": zod.string(),
|
|
13528
13742
|
"evaluator_slug": zod.union([zod.string(), zod.null()]),
|
|
13743
|
+
"identity_provider_id": zod.union([zod.string(), zod.null()]).describe("Identity provider whose members are the only ones who may open chats with this agent, or null when anyone may."),
|
|
13529
13744
|
"created_at": zod.string().datetime({ "offset": true }),
|
|
13530
13745
|
"updated_at": zod.string().datetime({ "offset": true }),
|
|
13531
13746
|
"tool_ids": zod.array(zod.string())
|
|
@@ -13539,13 +13754,15 @@ var updateChatAgentBodyEvaluatorSlugOneMax = 100;
|
|
|
13539
13754
|
var updateChatAgentBodyEvaluatorSlugOneRegExp = new RegExp("^[a-z0-9]+(?:[-_][a-z0-9]+)*$");
|
|
13540
13755
|
var UpdateChatAgentBody = zod.object({
|
|
13541
13756
|
"tools": zod.array(zod.string().uuid()).optional().describe("Replace the agent's attached code tool set. Omit to leave unchanged; pass [] to clear."),
|
|
13542
|
-
"evaluator_slug": zod.union([zod.string().max(updateChatAgentBodyEvaluatorSlugOneMax).regex(updateChatAgentBodyEvaluatorSlugOneRegExp), zod.null()]).optional().describe("Evaluator that scores this agent's chats, created with `POST /v1/evaluators`. null detaches it. Omit to leave unchanged.")
|
|
13757
|
+
"evaluator_slug": zod.union([zod.string().max(updateChatAgentBodyEvaluatorSlugOneMax).regex(updateChatAgentBodyEvaluatorSlugOneRegExp), zod.null()]).optional().describe("Evaluator that scores this agent's chats, created with `POST /v1/evaluators`. null detaches it. Omit to leave unchanged."),
|
|
13758
|
+
"identity_provider_id": zod.union([zod.string().uuid(), zod.null()]).optional().describe("Identity provider, created with `POST /v1/identity-providers`, whose members are the only ones who may open chats with this agent. null opens the agent to anyone again. Omit to leave unchanged. Requires the `identity-providers:write` permission.")
|
|
13543
13759
|
});
|
|
13544
13760
|
var UpdateChatAgentResponse = zod.object({
|
|
13545
13761
|
"data": zod.object({
|
|
13546
13762
|
"id": zod.string(),
|
|
13547
13763
|
"name": zod.string(),
|
|
13548
13764
|
"evaluator_slug": zod.union([zod.string(), zod.null()]),
|
|
13765
|
+
"identity_provider_id": zod.union([zod.string(), zod.null()]).describe("Identity provider whose members are the only ones who may open chats with this agent, or null when anyone may."),
|
|
13549
13766
|
"created_at": zod.string().datetime({ "offset": true }),
|
|
13550
13767
|
"updated_at": zod.string().datetime({ "offset": true })
|
|
13551
13768
|
}),
|
|
@@ -14179,7 +14396,7 @@ var GetProfileResponse = zod.object({
|
|
|
14179
14396
|
"last_name": zod.union([zod.string(), zod.null()]),
|
|
14180
14397
|
"email": zod.string(),
|
|
14181
14398
|
"role": zod.enum(["admin", "avallon_admin", "member"]),
|
|
14182
|
-
"permissions": zod.array(zod.enum(["voice-agents:read", "voice-agents:write", "voice-agents:promote", "tools:write", "tools:execute", "tools:promote", "tool-calls:read", "extractors:write", "inboxes:write", "inboxes:send", "artifacts:write", "api-keys:write", "teams:write", "cases:write", "cases:delete", "case-types:read", "case-types:create", "case-types:write", "forms:read", "forms:create", "forms:write", "forms:request", "forms:promote", "information-requests:write", "information-requests:resolve", "information-requests:delete", "feedback:write", "outbound-jobs:write", "outbound-jobs:schedule", "calls:monitor", "workers:read", "workers:create", "workers:write", "workers:execute", "workers:write-mcp", "workers:run", "workers:promote", "chat-agents:write", "evaluators:write", "intakes:write", "notifications:write", "prompts:read", "prompts:write", "secrets:read", "secrets:write", "schedules:read", "schedules:write", "tenants:write", "analytics:view-cost"])),
|
|
14399
|
+
"permissions": zod.array(zod.enum(["voice-agents:read", "voice-agents:write", "voice-agents:promote", "tools:write", "tools:execute", "tools:promote", "tool-calls:read", "extractors:write", "inboxes:write", "inboxes:send", "artifacts:write", "api-keys:write", "teams:write", "cases:write", "cases:delete", "case-types:read", "case-types:create", "case-types:write", "forms:read", "forms:create", "forms:write", "forms:request", "forms:promote", "information-requests:write", "information-requests:resolve", "information-requests:delete", "feedback:write", "outbound-jobs:write", "outbound-jobs:schedule", "calls:monitor", "workers:read", "workers:create", "workers:write", "workers:execute", "workers:write-mcp", "workers:run", "workers:promote", "chat-agents:write", "evaluators:write", "intakes:write", "notifications:write", "prompts:read", "prompts:write", "secrets:read", "secrets:write", "identity-providers:write", "schedules:read", "schedules:write", "tenants:write", "analytics:view-cost"])),
|
|
14183
14400
|
"tenants": zod.object({
|
|
14184
14401
|
"active": zod.object({
|
|
14185
14402
|
"id": zod.string(),
|
|
@@ -14286,6 +14503,128 @@ var UpdateTenantSettingsResponse = zod.object({
|
|
|
14286
14503
|
}),
|
|
14287
14504
|
"message": zod.string()
|
|
14288
14505
|
});
|
|
14506
|
+
var createIdentityProviderBodySlugMax = 64;
|
|
14507
|
+
var createIdentityProviderBodySlugRegExp = new RegExp("^[a-z0-9]+(-[a-z0-9]+)*$");
|
|
14508
|
+
var createIdentityProviderBodyIssuerMax = 2048;
|
|
14509
|
+
var createIdentityProviderBodyOauthBaseUrlMax = 2048;
|
|
14510
|
+
var createIdentityProviderBodyClientIdMax = 255;
|
|
14511
|
+
var createIdentityProviderBodyClientSecretMax = 4096;
|
|
14512
|
+
var createIdentityProviderBodyRedirectUriMax = 2048;
|
|
14513
|
+
var createIdentityProviderBodyScopesItemRegExp = new RegExp("^[\\x21\\x23-\\x5B\\x5D-\\x7E]+$");
|
|
14514
|
+
var createIdentityProviderBodyScopesMax = 20;
|
|
14515
|
+
var CreateIdentityProviderBody = zod.object({
|
|
14516
|
+
"slug": zod.string().max(createIdentityProviderBodySlugMax).regex(createIdentityProviderBodySlugRegExp).describe("The `provider_id` clients send when exchanging a token (e.g. `acme-okta`). Unique across all organizations and immutable."),
|
|
14517
|
+
"type": zod.enum(["okta_interclient"]),
|
|
14518
|
+
"issuer": zod.string().url().max(createIdentityProviderBodyIssuerMax).describe("Expected `iss` of the ID token. Must be an https URL."),
|
|
14519
|
+
"oauth_base_url": zod.string().url().max(createIdentityProviderBodyOauthBaseUrlMax).describe("Base of the authorization server's `/v1/authorize`, `/v1/token` and `/v1/keys` endpoints: `<org>/oauth2` for the org server, or the issuer itself for a custom one. Must be an https URL on a public address."),
|
|
14520
|
+
"client_id": zod.string().min(1).max(createIdentityProviderBodyClientIdMax).describe("Client ID of the app registered in the IdP."),
|
|
14521
|
+
"client_secret": zod.string().min(1).max(createIdentityProviderBodyClientSecretMax).describe("Client secret of that app. Write-only: it is never returned."),
|
|
14522
|
+
"redirect_uri": zod.string().url().max(createIdentityProviderBodyRedirectUriMax).describe("A sign-in redirect URI registered on the IdP app, without a query string or fragment. It is never requested; only the code in the redirect is read."),
|
|
14523
|
+
"scopes": zod.array(zod.string().regex(createIdentityProviderBodyScopesItemRegExp)).max(createIdentityProviderBodyScopesMax).optional().describe("OAuth scopes requested at `/authorize`. `openid` is always included.")
|
|
14524
|
+
});
|
|
14525
|
+
var CreateIdentityProviderResponse = zod.object({
|
|
14526
|
+
"data": zod.object({
|
|
14527
|
+
"id": zod.string().describe("Unique identifier for the identity provider"),
|
|
14528
|
+
"slug": zod.string().describe("The `provider_id` clients send when exchanging a token. Immutable."),
|
|
14529
|
+
"type": zod.enum(["okta_interclient"]),
|
|
14530
|
+
"issuer": zod.string(),
|
|
14531
|
+
"oauth_base_url": zod.string(),
|
|
14532
|
+
"client_id": zod.string(),
|
|
14533
|
+
"redirect_uri": zod.string(),
|
|
14534
|
+
"scopes": zod.array(zod.string()),
|
|
14535
|
+
"created_at": zod.string().datetime({ "offset": true }).describe("Creation timestamp"),
|
|
14536
|
+
"updated_at": zod.string().datetime({ "offset": true }).describe("Last update timestamp")
|
|
14537
|
+
}),
|
|
14538
|
+
"message": zod.string()
|
|
14539
|
+
});
|
|
14540
|
+
var listIdentityProvidersQueryCountDefault = 50;
|
|
14541
|
+
var listIdentityProvidersQueryCountMax = 100;
|
|
14542
|
+
var listIdentityProvidersQueryOffsetDefault = 0;
|
|
14543
|
+
var listIdentityProvidersQueryOffsetMin = 0;
|
|
14544
|
+
var listIdentityProvidersQuerySortByDefault = `slug`;
|
|
14545
|
+
var listIdentityProvidersQuerySortOrderDefault = `asc`;
|
|
14546
|
+
var ListIdentityProvidersQueryParams = zod.object({
|
|
14547
|
+
"count": zod.number().min(1).max(listIdentityProvidersQueryCountMax).default(listIdentityProvidersQueryCountDefault),
|
|
14548
|
+
"offset": zod.number().min(listIdentityProvidersQueryOffsetMin).default(listIdentityProvidersQueryOffsetDefault),
|
|
14549
|
+
"sort_by": zod.enum(["slug", "created_at"]).default(listIdentityProvidersQuerySortByDefault),
|
|
14550
|
+
"sort_order": zod.enum(["asc", "desc"]).default(listIdentityProvidersQuerySortOrderDefault)
|
|
14551
|
+
});
|
|
14552
|
+
var ListIdentityProvidersResponse = zod.object({
|
|
14553
|
+
"data": zod.array(zod.object({
|
|
14554
|
+
"id": zod.string().describe("Unique identifier for the identity provider"),
|
|
14555
|
+
"slug": zod.string().describe("The `provider_id` clients send when exchanging a token. Immutable."),
|
|
14556
|
+
"type": zod.enum(["okta_interclient"]),
|
|
14557
|
+
"issuer": zod.string(),
|
|
14558
|
+
"oauth_base_url": zod.string(),
|
|
14559
|
+
"client_id": zod.string(),
|
|
14560
|
+
"redirect_uri": zod.string(),
|
|
14561
|
+
"scopes": zod.array(zod.string()),
|
|
14562
|
+
"created_at": zod.string().datetime({ "offset": true }).describe("Creation timestamp"),
|
|
14563
|
+
"updated_at": zod.string().datetime({ "offset": true }).describe("Last update timestamp")
|
|
14564
|
+
})),
|
|
14565
|
+
"message": zod.string(),
|
|
14566
|
+
"meta": zod.object({
|
|
14567
|
+
"total": zod.number()
|
|
14568
|
+
})
|
|
14569
|
+
});
|
|
14570
|
+
var GetIdentityProviderParams = zod.object({
|
|
14571
|
+
"identityProviderId": zod.string().uuid()
|
|
14572
|
+
});
|
|
14573
|
+
var GetIdentityProviderResponse = zod.object({
|
|
14574
|
+
"data": zod.object({
|
|
14575
|
+
"id": zod.string().describe("Unique identifier for the identity provider"),
|
|
14576
|
+
"slug": zod.string().describe("The `provider_id` clients send when exchanging a token. Immutable."),
|
|
14577
|
+
"type": zod.enum(["okta_interclient"]),
|
|
14578
|
+
"issuer": zod.string(),
|
|
14579
|
+
"oauth_base_url": zod.string(),
|
|
14580
|
+
"client_id": zod.string(),
|
|
14581
|
+
"redirect_uri": zod.string(),
|
|
14582
|
+
"scopes": zod.array(zod.string()),
|
|
14583
|
+
"created_at": zod.string().datetime({ "offset": true }).describe("Creation timestamp"),
|
|
14584
|
+
"updated_at": zod.string().datetime({ "offset": true }).describe("Last update timestamp")
|
|
14585
|
+
}),
|
|
14586
|
+
"message": zod.string()
|
|
14587
|
+
});
|
|
14588
|
+
var UpdateIdentityProviderParams = zod.object({
|
|
14589
|
+
"identityProviderId": zod.string().uuid()
|
|
14590
|
+
});
|
|
14591
|
+
var updateIdentityProviderBodyIssuerMax = 2048;
|
|
14592
|
+
var updateIdentityProviderBodyOauthBaseUrlMax = 2048;
|
|
14593
|
+
var updateIdentityProviderBodyClientIdMax = 255;
|
|
14594
|
+
var updateIdentityProviderBodyClientSecretMax = 4096;
|
|
14595
|
+
var updateIdentityProviderBodyRedirectUriMax = 2048;
|
|
14596
|
+
var updateIdentityProviderBodyScopesItemRegExp = new RegExp("^[\\x21\\x23-\\x5B\\x5D-\\x7E]+$");
|
|
14597
|
+
var updateIdentityProviderBodyScopesMax = 20;
|
|
14598
|
+
var UpdateIdentityProviderBody = zod.object({
|
|
14599
|
+
"issuer": zod.string().url().max(updateIdentityProviderBodyIssuerMax).optional().describe("Expected `iss` of the ID token. Must be an https URL."),
|
|
14600
|
+
"oauth_base_url": zod.string().url().max(updateIdentityProviderBodyOauthBaseUrlMax).optional().describe("Base of the authorization server's `/v1/authorize`, `/v1/token` and `/v1/keys` endpoints: `<org>/oauth2` for the org server, or the issuer itself for a custom one. Must be an https URL on a public address."),
|
|
14601
|
+
"client_id": zod.string().min(1).max(updateIdentityProviderBodyClientIdMax).optional().describe("Client ID of the app registered in the IdP."),
|
|
14602
|
+
"client_secret": zod.string().min(1).max(updateIdentityProviderBodyClientSecretMax).optional().describe("Client secret of that app. Write-only: it is never returned."),
|
|
14603
|
+
"redirect_uri": zod.string().url().max(updateIdentityProviderBodyRedirectUriMax).optional().describe("A sign-in redirect URI registered on the IdP app, without a query string or fragment. It is never requested; only the code in the redirect is read."),
|
|
14604
|
+
"scopes": zod.array(zod.string().regex(updateIdentityProviderBodyScopesItemRegExp)).max(updateIdentityProviderBodyScopesMax).optional().describe("OAuth scopes requested at `/authorize`. `openid` is always included.")
|
|
14605
|
+
});
|
|
14606
|
+
var UpdateIdentityProviderResponse = zod.object({
|
|
14607
|
+
"data": zod.object({
|
|
14608
|
+
"id": zod.string().describe("Unique identifier for the identity provider"),
|
|
14609
|
+
"slug": zod.string().describe("The `provider_id` clients send when exchanging a token. Immutable."),
|
|
14610
|
+
"type": zod.enum(["okta_interclient"]),
|
|
14611
|
+
"issuer": zod.string(),
|
|
14612
|
+
"oauth_base_url": zod.string(),
|
|
14613
|
+
"client_id": zod.string(),
|
|
14614
|
+
"redirect_uri": zod.string(),
|
|
14615
|
+
"scopes": zod.array(zod.string()),
|
|
14616
|
+
"created_at": zod.string().datetime({ "offset": true }).describe("Creation timestamp"),
|
|
14617
|
+
"updated_at": zod.string().datetime({ "offset": true }).describe("Last update timestamp")
|
|
14618
|
+
}),
|
|
14619
|
+
"message": zod.string()
|
|
14620
|
+
});
|
|
14621
|
+
var DeleteIdentityProviderParams = zod.object({
|
|
14622
|
+
"identityProviderId": zod.string().uuid()
|
|
14623
|
+
});
|
|
14624
|
+
var DeleteIdentityProviderResponse = zod.object({
|
|
14625
|
+
"data": zod.object({}),
|
|
14626
|
+
"message": zod.string()
|
|
14627
|
+
});
|
|
14289
14628
|
var createSecretBodyNameMax = 100;
|
|
14290
14629
|
var createSecretBodyEnvKeyMax = 128;
|
|
14291
14630
|
var createSecretBodyEnvKeyRegExp = new RegExp("^[A-Z][A-Z0-9_]*$");
|
|
@@ -18009,7 +18348,7 @@ var createMcpServer = (options) => {
|
|
|
18009
18348
|
"updateChatAgent",
|
|
18010
18349
|
{
|
|
18011
18350
|
title: "Update chat agent",
|
|
18012
|
-
description: "Patch a chat agent's attached code tool set and evaluator. The response does not include the resulting tool list; the agent's `updated_at` is not bumped when only the tool set changes.\n\nSet `evaluator_slug` to score the agent's chats with that evaluator when they end. It applies to every chat that ends afterwards.",
|
|
18351
|
+
description: "Patch a chat agent's attached code tool set and evaluator. The response does not include the resulting tool list; the agent's `updated_at` is not bumped when only the tool set changes.\n\nSet `evaluator_slug` to score the agent's chats with that evaluator when they end. It applies to every chat that ends afterwards.\n\nSet `identity_provider_id` to restrict the agent to members signed in through that identity provider. It applies to every chat opened afterwards.",
|
|
18013
18352
|
inputSchema: {
|
|
18014
18353
|
pathParams: UpdateChatAgentParams,
|
|
18015
18354
|
bodyParams: UpdateChatAgentBody.optional()
|
|
@@ -18656,6 +18995,87 @@ var createMcpServer = (options) => {
|
|
|
18656
18995
|
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
18657
18996
|
})
|
|
18658
18997
|
);
|
|
18998
|
+
tools.createIdentityProvider = server2.registerTool(
|
|
18999
|
+
"createIdentityProvider",
|
|
19000
|
+
{
|
|
19001
|
+
title: "Create an identity provider",
|
|
19002
|
+
description: "Register an external identity provider (Okta Native-to-Web SSO) for member sign-in. Attach it to a chat agent with `identity_provider_id` on `PATCH /v1/chat-agents/{id}`; only its members may then open chats with that agent. The client secret is encrypted at rest and **write-only**.\n\nRequires the `identity-providers:write` permission.",
|
|
19003
|
+
inputSchema: {
|
|
19004
|
+
bodyParams: CreateIdentityProviderBody.optional()
|
|
19005
|
+
},
|
|
19006
|
+
outputSchema: CreateIdentityProviderResponse,
|
|
19007
|
+
annotations: { destructiveHint: true }
|
|
19008
|
+
},
|
|
19009
|
+
(args, ctx) => createIdentityProviderHandler(args, {
|
|
19010
|
+
...options,
|
|
19011
|
+
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
19012
|
+
})
|
|
19013
|
+
);
|
|
19014
|
+
tools.listIdentityProviders = server2.registerTool(
|
|
19015
|
+
"listIdentityProviders",
|
|
19016
|
+
{
|
|
19017
|
+
title: "List identity providers",
|
|
19018
|
+
description: "List the organization's identity providers. Client secrets are never included. Requires the `identity-providers:write` permission.",
|
|
19019
|
+
inputSchema: {
|
|
19020
|
+
queryParams: ListIdentityProvidersQueryParams
|
|
19021
|
+
},
|
|
19022
|
+
outputSchema: ListIdentityProvidersResponse,
|
|
19023
|
+
annotations: { readOnlyHint: true }
|
|
19024
|
+
},
|
|
19025
|
+
(args, ctx) => listIdentityProvidersHandler(args, {
|
|
19026
|
+
...options,
|
|
19027
|
+
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
19028
|
+
})
|
|
19029
|
+
);
|
|
19030
|
+
tools.getIdentityProvider = server2.registerTool(
|
|
19031
|
+
"getIdentityProvider",
|
|
19032
|
+
{
|
|
19033
|
+
title: "Get identity provider",
|
|
19034
|
+
description: "Get an identity provider. The client secret is never included. Requires the `identity-providers:write` permission.",
|
|
19035
|
+
inputSchema: {
|
|
19036
|
+
pathParams: GetIdentityProviderParams
|
|
19037
|
+
},
|
|
19038
|
+
outputSchema: GetIdentityProviderResponse,
|
|
19039
|
+
annotations: { readOnlyHint: true }
|
|
19040
|
+
},
|
|
19041
|
+
(args, ctx) => getIdentityProviderHandler(args, {
|
|
19042
|
+
...options,
|
|
19043
|
+
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
19044
|
+
})
|
|
19045
|
+
);
|
|
19046
|
+
tools.updateIdentityProvider = server2.registerTool(
|
|
19047
|
+
"updateIdentityProvider",
|
|
19048
|
+
{
|
|
19049
|
+
title: "Update identity provider",
|
|
19050
|
+
description: "Update an identity provider. Omitted fields are left unchanged; `scopes` replaces the stored list. Passing `client_secret` rotates it.\n\nThe `slug` is immutable: clients and existing chats refer to the provider by it.\n\nRequires the `identity-providers:write` permission.",
|
|
19051
|
+
inputSchema: {
|
|
19052
|
+
pathParams: UpdateIdentityProviderParams,
|
|
19053
|
+
bodyParams: UpdateIdentityProviderBody.optional()
|
|
19054
|
+
},
|
|
19055
|
+
outputSchema: UpdateIdentityProviderResponse,
|
|
19056
|
+
annotations: { destructiveHint: true }
|
|
19057
|
+
},
|
|
19058
|
+
(args, ctx) => updateIdentityProviderHandler(args, {
|
|
19059
|
+
...options,
|
|
19060
|
+
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
19061
|
+
})
|
|
19062
|
+
);
|
|
19063
|
+
tools.deleteIdentityProvider = server2.registerTool(
|
|
19064
|
+
"deleteIdentityProvider",
|
|
19065
|
+
{
|
|
19066
|
+
title: "Delete identity provider",
|
|
19067
|
+
description: "Delete an identity provider. Fails with 409 while chat agents are still attached to it. Requires the `identity-providers:write` permission.",
|
|
19068
|
+
inputSchema: {
|
|
19069
|
+
pathParams: DeleteIdentityProviderParams
|
|
19070
|
+
},
|
|
19071
|
+
outputSchema: DeleteIdentityProviderResponse,
|
|
19072
|
+
annotations: { destructiveHint: true, idempotentHint: true }
|
|
19073
|
+
},
|
|
19074
|
+
(args, ctx) => deleteIdentityProviderHandler(args, {
|
|
19075
|
+
...options,
|
|
19076
|
+
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
19077
|
+
})
|
|
19078
|
+
);
|
|
18659
19079
|
tools.createSecret = server2.registerTool(
|
|
18660
19080
|
"createSecret",
|
|
18661
19081
|
{
|
|
@@ -19658,4 +20078,4 @@ var transport = new StdioServerTransport();
|
|
|
19658
20078
|
server.connect(transport).then(() => {
|
|
19659
20079
|
console.error("MCP server running on stdio");
|
|
19660
20080
|
}).catch(console.error);
|
|
19661
|
-
//# sourceMappingURL=server-
|
|
20081
|
+
//# sourceMappingURL=server-TU4PPGZV.js.map
|