@cdot65/prisma-airs-sdk 0.18.0 → 0.19.0
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.cjs +454 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1454 -101
- package/dist/index.d.ts +1454 -101
- package/dist/index.js +443 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -4443,6 +4443,11 @@ var GatewayConfigDetailSchema = GatewayConfigSchema.extend({
|
|
|
4443
4443
|
type: z35.string(),
|
|
4444
4444
|
version_id: z35.string()
|
|
4445
4445
|
}).passthrough();
|
|
4446
|
+
var GatewayConfigVersionSchema = GatewayConfigDetailSchema.extend({
|
|
4447
|
+
version_created_at: z35.string(),
|
|
4448
|
+
version_owner_id: z35.string()
|
|
4449
|
+
}).passthrough();
|
|
4450
|
+
var ListConfigVersionsResponseSchema = aiGatewayList(GatewayConfigVersionSchema);
|
|
4446
4451
|
var GatewayConfigCreateResponseSchema = z35.object({
|
|
4447
4452
|
id: z35.string(),
|
|
4448
4453
|
version_id: z35.string(),
|
|
@@ -4480,8 +4485,8 @@ var GatewayGuardrailDetailSchema = GatewayGuardrailSchema.extend({
|
|
|
4480
4485
|
async: z35.boolean(),
|
|
4481
4486
|
sequential: z35.boolean(),
|
|
4482
4487
|
/** Absent when the guardrail was created without a pass/fail feedback action. */
|
|
4483
|
-
on_success: guardrailFeedbackActionSchema.optional(),
|
|
4484
|
-
on_fail: guardrailFeedbackActionSchema.optional()
|
|
4488
|
+
on_success: guardrailFeedbackActionSchema.nullable().optional(),
|
|
4489
|
+
on_fail: guardrailFeedbackActionSchema.nullable().optional()
|
|
4485
4490
|
}).passthrough(),
|
|
4486
4491
|
version_id: z35.string()
|
|
4487
4492
|
}).passthrough();
|
|
@@ -4498,6 +4503,27 @@ var GatewayProviderSchema = z35.object({
|
|
|
4498
4503
|
object: z35.string().optional()
|
|
4499
4504
|
}).passthrough();
|
|
4500
4505
|
var ListProvidersResponseSchema = aiGatewayList(GatewayProviderSchema);
|
|
4506
|
+
var GatewayProviderDetailSchema = z35.object({
|
|
4507
|
+
id: z35.string(),
|
|
4508
|
+
ai_provider_name: z35.string(),
|
|
4509
|
+
model_config: z35.record(z35.unknown()),
|
|
4510
|
+
/** Potentially secret-bearing. Never log or persist this field. */
|
|
4511
|
+
key: z35.string(),
|
|
4512
|
+
masked_api_key: z35.string(),
|
|
4513
|
+
slug: z35.string(),
|
|
4514
|
+
name: z35.string(),
|
|
4515
|
+
usage_limits: z35.unknown().nullable(),
|
|
4516
|
+
status: z35.string(),
|
|
4517
|
+
note: z35.string().nullable(),
|
|
4518
|
+
created_at: z35.string(),
|
|
4519
|
+
expires_at: z35.string().nullable(),
|
|
4520
|
+
last_reset_at: z35.string().nullable(),
|
|
4521
|
+
rate_limits: z35.array(z35.unknown()),
|
|
4522
|
+
integration_id: z35.string(),
|
|
4523
|
+
tags: z35.unknown().nullable(),
|
|
4524
|
+
secret_mappings: z35.array(z35.unknown()).optional(),
|
|
4525
|
+
object: z35.string()
|
|
4526
|
+
}).passthrough();
|
|
4501
4527
|
var GatewayProviderCreateResponseSchema = z35.object({
|
|
4502
4528
|
id: z35.string(),
|
|
4503
4529
|
slug: z35.string(),
|
|
@@ -4509,6 +4535,11 @@ var GatewayApiKeySchema = z35.object({
|
|
|
4509
4535
|
object: z35.string().optional()
|
|
4510
4536
|
}).passthrough();
|
|
4511
4537
|
var ListApiKeysResponseSchema = aiGatewayList(GatewayApiKeySchema);
|
|
4538
|
+
var GatewayApiKeyRotateResponseSchema = z35.object({
|
|
4539
|
+
id: z35.string(),
|
|
4540
|
+
key: z35.string(),
|
|
4541
|
+
key_transition_expires_at: z35.string()
|
|
4542
|
+
}).passthrough();
|
|
4512
4543
|
var GatewayIntegrationSchema = z35.object({
|
|
4513
4544
|
id: z35.string(),
|
|
4514
4545
|
organisation_id: z35.string().optional(),
|
|
@@ -4539,7 +4570,7 @@ var GatewayIntegrationWorkspaceSchema = z35.object({
|
|
|
4539
4570
|
enabled: z35.boolean(),
|
|
4540
4571
|
status: z35.string(),
|
|
4541
4572
|
created_at: z35.string(),
|
|
4542
|
-
last_updated_at: z35.string(),
|
|
4573
|
+
last_updated_at: z35.string().nullable(),
|
|
4543
4574
|
last_reset_at: z35.string().nullable()
|
|
4544
4575
|
}).passthrough();
|
|
4545
4576
|
var GatewayGlobalWorkspaceAccessSchema = z35.object({
|
|
@@ -4572,6 +4603,70 @@ var McpIntegrationSchema = z35.object({
|
|
|
4572
4603
|
last_updated_at: z35.string()
|
|
4573
4604
|
}).passthrough();
|
|
4574
4605
|
var ListMcpIntegrationsResponseSchema = aiGatewayList(McpIntegrationSchema);
|
|
4606
|
+
var McpIntegrationDetailSchema = z35.object({
|
|
4607
|
+
id: z35.string(),
|
|
4608
|
+
name: z35.string(),
|
|
4609
|
+
description: z35.string().nullable(),
|
|
4610
|
+
owner_id: z35.string(),
|
|
4611
|
+
status: z35.string(),
|
|
4612
|
+
created_at: z35.string(),
|
|
4613
|
+
last_updated_at: z35.string(),
|
|
4614
|
+
configurations: z35.record(z35.unknown()),
|
|
4615
|
+
global_workspace_access: z35.object({ enabled: z35.boolean() }).passthrough().nullable(),
|
|
4616
|
+
workspace_id: z35.string().nullable(),
|
|
4617
|
+
slug: z35.string(),
|
|
4618
|
+
url: z35.string(),
|
|
4619
|
+
auth_type: z35.string(),
|
|
4620
|
+
transport: z35.string(),
|
|
4621
|
+
type: z35.string(),
|
|
4622
|
+
secret_mappings: z35.array(z35.unknown()).nullable(),
|
|
4623
|
+
object: z35.string()
|
|
4624
|
+
}).passthrough();
|
|
4625
|
+
var McpCapabilityCountSchema = z35.object({ total: z35.number(), enabled: z35.number() }).passthrough();
|
|
4626
|
+
var McpIntegrationCapabilitySchema = z35.object({
|
|
4627
|
+
name: z35.string(),
|
|
4628
|
+
type: z35.string(),
|
|
4629
|
+
title: z35.string().nullable(),
|
|
4630
|
+
description: z35.string().nullable(),
|
|
4631
|
+
icons: z35.unknown().nullable(),
|
|
4632
|
+
enabled: z35.boolean(),
|
|
4633
|
+
created_at: z35.string(),
|
|
4634
|
+
last_updated_at: z35.string(),
|
|
4635
|
+
input_schema: z35.record(z35.unknown()).nullable(),
|
|
4636
|
+
output_schema: z35.record(z35.unknown()).nullable(),
|
|
4637
|
+
execution: z35.unknown().nullable(),
|
|
4638
|
+
annotations: z35.record(z35.unknown()).nullable(),
|
|
4639
|
+
object: z35.string()
|
|
4640
|
+
}).passthrough();
|
|
4641
|
+
var McpIntegrationCapabilitiesResponseSchema = z35.object({
|
|
4642
|
+
object: z35.string(),
|
|
4643
|
+
counts: z35.object({
|
|
4644
|
+
tools: McpCapabilityCountSchema.optional(),
|
|
4645
|
+
prompts: McpCapabilityCountSchema.optional(),
|
|
4646
|
+
resources: McpCapabilityCountSchema.optional(),
|
|
4647
|
+
resource_templates: McpCapabilityCountSchema.optional()
|
|
4648
|
+
}).passthrough(),
|
|
4649
|
+
total: z35.number(),
|
|
4650
|
+
has_more: z35.boolean(),
|
|
4651
|
+
data: z35.array(McpIntegrationCapabilitySchema)
|
|
4652
|
+
}).passthrough();
|
|
4653
|
+
var McpIntegrationCapabilitiesUpdateResponseSchema = z35.object({ success: z35.boolean() }).passthrough();
|
|
4654
|
+
var McpIntegrationWorkspacesUpdateResponseSchema = z35.object({}).strict();
|
|
4655
|
+
var McpIntegrationMetadataSchema = z35.object({
|
|
4656
|
+
server_name: z35.string(),
|
|
4657
|
+
server_version: z35.string(),
|
|
4658
|
+
title: z35.string().nullable(),
|
|
4659
|
+
description: z35.string().nullable(),
|
|
4660
|
+
website_url: z35.string().nullable(),
|
|
4661
|
+
icons: z35.unknown().nullable(),
|
|
4662
|
+
protocol_version: z35.string().nullable(),
|
|
4663
|
+
capability_flags: z35.record(z35.unknown()),
|
|
4664
|
+
instructions: z35.string().nullable(),
|
|
4665
|
+
sync_status: z35.string(),
|
|
4666
|
+
last_synced_at: z35.string().nullable(),
|
|
4667
|
+
sync_error: z35.string().nullable(),
|
|
4668
|
+
object: z35.string()
|
|
4669
|
+
}).passthrough();
|
|
4575
4670
|
var GatewayDeploymentSchema = z35.object({
|
|
4576
4671
|
id: z35.string(),
|
|
4577
4672
|
name: z35.string(),
|
|
@@ -4607,6 +4702,18 @@ var GatewayDeploymentCreateResponseSchema = z35.object({
|
|
|
4607
4702
|
organisation_id: z35.string(),
|
|
4608
4703
|
object: z35.string()
|
|
4609
4704
|
}).passthrough();
|
|
4705
|
+
var GatewayDeploymentPingResponseSchema = z35.object({
|
|
4706
|
+
status: z35.string(),
|
|
4707
|
+
gateway_base_url: z35.string(),
|
|
4708
|
+
outbound: z35.object({
|
|
4709
|
+
status: z35.string(),
|
|
4710
|
+
status_code: z35.number().optional(),
|
|
4711
|
+
version: z35.string().optional(),
|
|
4712
|
+
error: z35.string().optional()
|
|
4713
|
+
}).passthrough(),
|
|
4714
|
+
inbound: z35.object({ status: z35.string(), error: z35.string().optional() }).passthrough(),
|
|
4715
|
+
object: z35.string()
|
|
4716
|
+
}).passthrough();
|
|
4610
4717
|
var ListDeploymentsResponseSchema = aiGatewayList(GatewayDeploymentSchema);
|
|
4611
4718
|
var GatewayPluginSchema = z35.object({
|
|
4612
4719
|
id: z35.string(),
|
|
@@ -11149,6 +11256,29 @@ var AIGatewayConfigsClient = class {
|
|
|
11149
11256
|
numRetries: this.numRetries
|
|
11150
11257
|
});
|
|
11151
11258
|
}
|
|
11259
|
+
/**
|
|
11260
|
+
* List the immutable version history for one config. Verified live 2026-08-29.
|
|
11261
|
+
* @param configId - Config UUID.
|
|
11262
|
+
* @returns Config versions, including version ownership and creation timestamps.
|
|
11263
|
+
* @example
|
|
11264
|
+
* ```ts
|
|
11265
|
+
* import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
|
|
11266
|
+
* const gw = new AIGatewayClient();
|
|
11267
|
+
* const versions = await gw.configs.listVersions('764cf9cd-4ebf-449e-b669-08149b0fbbbc');
|
|
11268
|
+
* console.log(versions.data[0].version_id);
|
|
11269
|
+
* ```
|
|
11270
|
+
*/
|
|
11271
|
+
async listVersions(configId) {
|
|
11272
|
+
assertUuid(configId, "configId");
|
|
11273
|
+
return request({
|
|
11274
|
+
method: "GET",
|
|
11275
|
+
baseUrl: this.baseUrl,
|
|
11276
|
+
path: `${AI_GW_CONFIGS_PATH}/${configId}/versions`,
|
|
11277
|
+
responseSchema: ListConfigVersionsResponseSchema,
|
|
11278
|
+
auth: this.auth,
|
|
11279
|
+
numRetries: this.numRetries
|
|
11280
|
+
});
|
|
11281
|
+
}
|
|
11152
11282
|
/**
|
|
11153
11283
|
* Create a config.
|
|
11154
11284
|
*
|
|
@@ -11341,6 +11471,32 @@ var AIGatewayGuardrailsClient = class {
|
|
|
11341
11471
|
numRetries: this.numRetries
|
|
11342
11472
|
});
|
|
11343
11473
|
}
|
|
11474
|
+
/**
|
|
11475
|
+
* Update a guardrail. Verified live 2026-08-29.
|
|
11476
|
+
* @param guardrailId - Guardrail UUID.
|
|
11477
|
+
* @param body - Fields to update.
|
|
11478
|
+
* @returns The gateway write response.
|
|
11479
|
+
* @example
|
|
11480
|
+
* ```ts
|
|
11481
|
+
* import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
|
|
11482
|
+
* const gw = new AIGatewayClient();
|
|
11483
|
+
* await gw.guardrails.update('9f6c2a8e-2b3d-4e5f-8a9b-0c1d2e3f4a5b', {
|
|
11484
|
+
* name: 'Updated guardrail',
|
|
11485
|
+
* });
|
|
11486
|
+
* ```
|
|
11487
|
+
*/
|
|
11488
|
+
async update(guardrailId, body) {
|
|
11489
|
+
assertUuid(guardrailId, "guardrailId");
|
|
11490
|
+
return request({
|
|
11491
|
+
method: "PUT",
|
|
11492
|
+
baseUrl: this.baseUrl,
|
|
11493
|
+
path: `${AI_GW_GUARDRAILS_PATH}/${guardrailId}`,
|
|
11494
|
+
body,
|
|
11495
|
+
responseSchema: GatewayWriteResponseSchema,
|
|
11496
|
+
auth: this.auth,
|
|
11497
|
+
numRetries: this.numRetries
|
|
11498
|
+
});
|
|
11499
|
+
}
|
|
11344
11500
|
/**
|
|
11345
11501
|
* Delete a guardrail.
|
|
11346
11502
|
*
|
|
@@ -11407,6 +11563,32 @@ var AIGatewayProvidersClient = class {
|
|
|
11407
11563
|
numRetries: this.numRetries
|
|
11408
11564
|
});
|
|
11409
11565
|
}
|
|
11566
|
+
/**
|
|
11567
|
+
* Fetch one provider binding. Verified live 2026-08-29.
|
|
11568
|
+
*
|
|
11569
|
+
* @remarks The response can contain provider credential material. Do not log or persist it,
|
|
11570
|
+
* and do not enable SDK debug logging around this call in production.
|
|
11571
|
+
* @param providerId - Provider UUID.
|
|
11572
|
+
* @returns Provider configuration and lifecycle detail.
|
|
11573
|
+
* @example
|
|
11574
|
+
* ```ts
|
|
11575
|
+
* import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
|
|
11576
|
+
* const gw = new AIGatewayClient();
|
|
11577
|
+
* const provider = await gw.providers.get('f6692544-3265-49be-9711-bbdcebc079e4');
|
|
11578
|
+
* console.log(provider.name);
|
|
11579
|
+
* ```
|
|
11580
|
+
*/
|
|
11581
|
+
async get(providerId) {
|
|
11582
|
+
assertUuid(providerId, "providerId");
|
|
11583
|
+
return request({
|
|
11584
|
+
method: "GET",
|
|
11585
|
+
baseUrl: this.baseUrl,
|
|
11586
|
+
path: `${AI_GW_PROVIDERS_PATH}/${providerId}`,
|
|
11587
|
+
responseSchema: GatewayProviderDetailSchema,
|
|
11588
|
+
auth: this.auth,
|
|
11589
|
+
numRetries: this.numRetries
|
|
11590
|
+
});
|
|
11591
|
+
}
|
|
11410
11592
|
/**
|
|
11411
11593
|
* Create a provider.
|
|
11412
11594
|
*
|
|
@@ -11447,6 +11629,33 @@ var AIGatewayProvidersClient = class {
|
|
|
11447
11629
|
numRetries: this.numRetries
|
|
11448
11630
|
});
|
|
11449
11631
|
}
|
|
11632
|
+
/**
|
|
11633
|
+
* Update a provider binding. Verified live 2026-08-29.
|
|
11634
|
+
* @param providerId - Provider UUID.
|
|
11635
|
+
* @param body - Fields to update.
|
|
11636
|
+
* @returns The gateway write response.
|
|
11637
|
+
* @example
|
|
11638
|
+
* ```ts
|
|
11639
|
+
* import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
|
|
11640
|
+
* const gw = new AIGatewayClient();
|
|
11641
|
+
* await gw.providers.update('f6692544-3265-49be-9711-bbdcebc079e4', {
|
|
11642
|
+
* name: 'Vertex production',
|
|
11643
|
+
* note: 'Updated by automation',
|
|
11644
|
+
* });
|
|
11645
|
+
* ```
|
|
11646
|
+
*/
|
|
11647
|
+
async update(providerId, body) {
|
|
11648
|
+
assertUuid(providerId, "providerId");
|
|
11649
|
+
return request({
|
|
11650
|
+
method: "PUT",
|
|
11651
|
+
baseUrl: this.baseUrl,
|
|
11652
|
+
path: `${AI_GW_PROVIDERS_PATH}/${providerId}`,
|
|
11653
|
+
body,
|
|
11654
|
+
responseSchema: GatewayWriteResponseSchema,
|
|
11655
|
+
auth: this.auth,
|
|
11656
|
+
numRetries: this.numRetries
|
|
11657
|
+
});
|
|
11658
|
+
}
|
|
11450
11659
|
/**
|
|
11451
11660
|
* Delete a provider.
|
|
11452
11661
|
*
|
|
@@ -11546,6 +11755,63 @@ var AIGatewayApiKeysClient = class {
|
|
|
11546
11755
|
async listUser(opts) {
|
|
11547
11756
|
return this.listAt(AI_GW_API_KEYS_USER_PATH, opts);
|
|
11548
11757
|
}
|
|
11758
|
+
getAt(path, keyId) {
|
|
11759
|
+
assertUuid(keyId, "keyId");
|
|
11760
|
+
return request({
|
|
11761
|
+
method: "GET",
|
|
11762
|
+
baseUrl: this.baseUrl,
|
|
11763
|
+
path: `${path}/${keyId}`,
|
|
11764
|
+
responseSchema: GatewayApiKeySchema,
|
|
11765
|
+
auth: this.auth,
|
|
11766
|
+
numRetries: this.numRetries
|
|
11767
|
+
});
|
|
11768
|
+
}
|
|
11769
|
+
async deleteAt(path, keyId) {
|
|
11770
|
+
assertUuid(keyId, "keyId");
|
|
11771
|
+
await request({
|
|
11772
|
+
method: "DELETE",
|
|
11773
|
+
baseUrl: this.baseUrl,
|
|
11774
|
+
path: `${path}/${keyId}`,
|
|
11775
|
+
auth: this.auth,
|
|
11776
|
+
numRetries: this.numRetries
|
|
11777
|
+
});
|
|
11778
|
+
}
|
|
11779
|
+
rotateAt(path, keyId, body = {}) {
|
|
11780
|
+
assertUuid(keyId, "keyId");
|
|
11781
|
+
return request({
|
|
11782
|
+
method: "POST",
|
|
11783
|
+
baseUrl: this.baseUrl,
|
|
11784
|
+
path: `${path}/${keyId}/rotate`,
|
|
11785
|
+
body,
|
|
11786
|
+
responseSchema: GatewayApiKeyRotateResponseSchema,
|
|
11787
|
+
auth: this.auth,
|
|
11788
|
+
numRetries: this.numRetries
|
|
11789
|
+
});
|
|
11790
|
+
}
|
|
11791
|
+
/** Get a service key. @example `await gw.apiKeys.getService(keyId);` */
|
|
11792
|
+
async getService(keyId) {
|
|
11793
|
+
return this.getAt(AI_GW_API_KEYS_SERVICE_PATH, keyId);
|
|
11794
|
+
}
|
|
11795
|
+
/** Get a user key. @example `await gw.apiKeys.getUser(keyId);` */
|
|
11796
|
+
async getUser(keyId) {
|
|
11797
|
+
return this.getAt(AI_GW_API_KEYS_USER_PATH, keyId);
|
|
11798
|
+
}
|
|
11799
|
+
/** Permanently delete a service key. @example `await gw.apiKeys.deleteService(keyId);` */
|
|
11800
|
+
async deleteService(keyId) {
|
|
11801
|
+
return this.deleteAt(AI_GW_API_KEYS_SERVICE_PATH, keyId);
|
|
11802
|
+
}
|
|
11803
|
+
/** Permanently delete a user key. @example `await gw.apiKeys.deleteUser(keyId);` */
|
|
11804
|
+
async deleteUser(keyId) {
|
|
11805
|
+
return this.deleteAt(AI_GW_API_KEYS_USER_PATH, keyId);
|
|
11806
|
+
}
|
|
11807
|
+
/** Rotate a service key; capture the returned secret. @example `const rotated = await gw.apiKeys.rotateService(keyId);` */
|
|
11808
|
+
async rotateService(keyId, body = {}) {
|
|
11809
|
+
return this.rotateAt(AI_GW_API_KEYS_SERVICE_PATH, keyId, body);
|
|
11810
|
+
}
|
|
11811
|
+
/** Rotate a user key; capture the returned secret. @example `const rotated = await gw.apiKeys.rotateUser(keyId);` */
|
|
11812
|
+
async rotateUser(keyId, body = {}) {
|
|
11813
|
+
return this.rotateAt(AI_GW_API_KEYS_USER_PATH, keyId, body);
|
|
11814
|
+
}
|
|
11549
11815
|
/**
|
|
11550
11816
|
* Create a service API key.
|
|
11551
11817
|
* @param body - Name, scopes, TSG, workspace UUID, and type.
|
|
@@ -11925,6 +12191,75 @@ var AIGatewayMcpIntegrationsClient = class {
|
|
|
11925
12191
|
numRetries: this.numRetries
|
|
11926
12192
|
});
|
|
11927
12193
|
}
|
|
12194
|
+
/**
|
|
12195
|
+
* Fetch one MCP integration. Verified live 2026-08-29.
|
|
12196
|
+
* @param mcpIntegrationId - MCP integration UUID.
|
|
12197
|
+
* @returns Integration detail; unlike list rows, `configurations` is an object.
|
|
12198
|
+
* @example
|
|
12199
|
+
* ```ts
|
|
12200
|
+
* import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
|
|
12201
|
+
* const gw = new AIGatewayClient();
|
|
12202
|
+
* const integration = await gw.mcpIntegrations.get('2a6f4e2e-6f5a-4a1f-9d0e-9b2b6f6c3a11');
|
|
12203
|
+
* console.log(integration.url);
|
|
12204
|
+
* ```
|
|
12205
|
+
*/
|
|
12206
|
+
async get(mcpIntegrationId) {
|
|
12207
|
+
assertUuid(mcpIntegrationId, "mcpIntegrationId");
|
|
12208
|
+
return request({
|
|
12209
|
+
method: "GET",
|
|
12210
|
+
baseUrl: this.baseUrl,
|
|
12211
|
+
path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}`,
|
|
12212
|
+
responseSchema: McpIntegrationDetailSchema,
|
|
12213
|
+
auth: this.auth,
|
|
12214
|
+
numRetries: this.numRetries
|
|
12215
|
+
});
|
|
12216
|
+
}
|
|
12217
|
+
/**
|
|
12218
|
+
* List capabilities discovered from an MCP integration. Verified live 2026-08-29.
|
|
12219
|
+
* @param mcpIntegrationId - MCP integration UUID.
|
|
12220
|
+
* @returns Tools, prompts, resources, and resource templates with enablement counts.
|
|
12221
|
+
* @example
|
|
12222
|
+
* ```ts
|
|
12223
|
+
* import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
|
|
12224
|
+
* const gw = new AIGatewayClient();
|
|
12225
|
+
* const capabilities = await gw.mcpIntegrations.getCapabilities('2a6f4e2e-6f5a-4a1f-9d0e-9b2b6f6c3a11');
|
|
12226
|
+
* console.log(capabilities.data.map((capability) => capability.name));
|
|
12227
|
+
* ```
|
|
12228
|
+
*/
|
|
12229
|
+
async getCapabilities(mcpIntegrationId) {
|
|
12230
|
+
assertUuid(mcpIntegrationId, "mcpIntegrationId");
|
|
12231
|
+
return request({
|
|
12232
|
+
method: "GET",
|
|
12233
|
+
baseUrl: this.baseUrl,
|
|
12234
|
+
path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}/capabilities`,
|
|
12235
|
+
responseSchema: McpIntegrationCapabilitiesResponseSchema,
|
|
12236
|
+
auth: this.auth,
|
|
12237
|
+
numRetries: this.numRetries
|
|
12238
|
+
});
|
|
12239
|
+
}
|
|
12240
|
+
/**
|
|
12241
|
+
* Fetch metadata discovered from an MCP server. Verified live 2026-08-29.
|
|
12242
|
+
* @param mcpIntegrationId - MCP integration UUID.
|
|
12243
|
+
* @returns Server identity, protocol, capability flags, and sync state.
|
|
12244
|
+
* @example
|
|
12245
|
+
* ```ts
|
|
12246
|
+
* import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
|
|
12247
|
+
* const gw = new AIGatewayClient();
|
|
12248
|
+
* const metadata = await gw.mcpIntegrations.getMetadata('2a6f4e2e-6f5a-4a1f-9d0e-9b2b6f6c3a11');
|
|
12249
|
+
* console.log(metadata.sync_status);
|
|
12250
|
+
* ```
|
|
12251
|
+
*/
|
|
12252
|
+
async getMetadata(mcpIntegrationId) {
|
|
12253
|
+
assertUuid(mcpIntegrationId, "mcpIntegrationId");
|
|
12254
|
+
return request({
|
|
12255
|
+
method: "GET",
|
|
12256
|
+
baseUrl: this.baseUrl,
|
|
12257
|
+
path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}/metadata`,
|
|
12258
|
+
responseSchema: McpIntegrationMetadataSchema,
|
|
12259
|
+
auth: this.auth,
|
|
12260
|
+
numRetries: this.numRetries
|
|
12261
|
+
});
|
|
12262
|
+
}
|
|
11928
12263
|
/**
|
|
11929
12264
|
* Register an MCP server.
|
|
11930
12265
|
* @param body - Name, server URL, auth type, transport, and provider-specific configuration.
|
|
@@ -11955,18 +12290,57 @@ var AIGatewayMcpIntegrationsClient = class {
|
|
|
11955
12290
|
numRetries: this.numRetries
|
|
11956
12291
|
});
|
|
11957
12292
|
}
|
|
12293
|
+
/** Update an MCP integration. @example `await gw.mcpIntegrations.update(id, { name: 'Docs MCP' });` */
|
|
12294
|
+
async update(mcpIntegrationId, body) {
|
|
12295
|
+
assertUuid(mcpIntegrationId, "mcpIntegrationId");
|
|
12296
|
+
return request({
|
|
12297
|
+
method: "PUT",
|
|
12298
|
+
baseUrl: this.baseUrl,
|
|
12299
|
+
path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}`,
|
|
12300
|
+
body,
|
|
12301
|
+
responseSchema: GatewayWriteResponseSchema,
|
|
12302
|
+
auth: this.auth,
|
|
12303
|
+
numRetries: this.numRetries
|
|
12304
|
+
});
|
|
12305
|
+
}
|
|
12306
|
+
/** Permanently delete an MCP integration. @example `await gw.mcpIntegrations.delete(id);` */
|
|
12307
|
+
async delete(mcpIntegrationId) {
|
|
12308
|
+
assertUuid(mcpIntegrationId, "mcpIntegrationId");
|
|
12309
|
+
await request({
|
|
12310
|
+
method: "DELETE",
|
|
12311
|
+
baseUrl: this.baseUrl,
|
|
12312
|
+
path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}`,
|
|
12313
|
+
auth: this.auth,
|
|
12314
|
+
numRetries: this.numRetries
|
|
12315
|
+
});
|
|
12316
|
+
}
|
|
12317
|
+
/** Replace capability enablement values. @example `await gw.mcpIntegrations.setCapabilities(id, { capabilities: [{ name: 'lookup', type: 'tool', enabled: true }] });` */
|
|
12318
|
+
async setCapabilities(mcpIntegrationId, body) {
|
|
12319
|
+
assertUuid(mcpIntegrationId, "mcpIntegrationId");
|
|
12320
|
+
return request({
|
|
12321
|
+
method: "PUT",
|
|
12322
|
+
baseUrl: this.baseUrl,
|
|
12323
|
+
path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}/capabilities`,
|
|
12324
|
+
body,
|
|
12325
|
+
responseSchema: McpIntegrationCapabilitiesUpdateResponseSchema,
|
|
12326
|
+
auth: this.auth,
|
|
12327
|
+
numRetries: this.numRetries
|
|
12328
|
+
});
|
|
12329
|
+
}
|
|
11958
12330
|
/**
|
|
11959
12331
|
* Replace which workspaces may use this MCP integration.
|
|
11960
12332
|
* @param mcpIntegrationId - MCP integration UUID.
|
|
11961
12333
|
* @param body - Workspace bindings or a global-access flag; this is a replace, not a merge.
|
|
11962
|
-
* @returns
|
|
12334
|
+
* @returns An empty object. Verified live 2026-08-30.
|
|
11963
12335
|
* @example
|
|
11964
12336
|
* ```ts
|
|
11965
12337
|
* import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
|
|
11966
12338
|
* const gw = new AIGatewayClient();
|
|
11967
12339
|
*
|
|
11968
12340
|
* await gw.mcpIntegrations.setWorkspaces('f6692544-3265-49be-9711-bbdcebc079e4', {
|
|
11969
|
-
*
|
|
12341
|
+
* workspaces: [{ id: 'ws-development', enabled: true }],
|
|
12342
|
+
* global_workspace_access: { enabled: false },
|
|
12343
|
+
* override_existing_workspace_access: true,
|
|
11970
12344
|
* });
|
|
11971
12345
|
* ```
|
|
11972
12346
|
*/
|
|
@@ -11977,7 +12351,7 @@ var AIGatewayMcpIntegrationsClient = class {
|
|
|
11977
12351
|
baseUrl: this.baseUrl,
|
|
11978
12352
|
path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}/workspaces`,
|
|
11979
12353
|
body,
|
|
11980
|
-
responseSchema:
|
|
12354
|
+
responseSchema: McpIntegrationWorkspacesUpdateResponseSchema,
|
|
11981
12355
|
auth: this.auth,
|
|
11982
12356
|
numRetries: this.numRetries
|
|
11983
12357
|
});
|
|
@@ -12086,6 +12460,58 @@ var AIGatewayDeploymentsClient = class {
|
|
|
12086
12460
|
numRetries: this.numRetries
|
|
12087
12461
|
});
|
|
12088
12462
|
}
|
|
12463
|
+
/**
|
|
12464
|
+
* Update deployment settings, including its externally deployed gateway URL and workspace scope.
|
|
12465
|
+
* @param deploymentId - Deployment UUID.
|
|
12466
|
+
* @param body - Fields to update.
|
|
12467
|
+
* @returns The gateway write response.
|
|
12468
|
+
* @example
|
|
12469
|
+
* ```ts
|
|
12470
|
+
* import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
|
|
12471
|
+
* const gw = new AIGatewayClient();
|
|
12472
|
+
* await gw.deployments.update('21414819-485e-4ba3-b3d3-3e1815580e43', {
|
|
12473
|
+
* auth_settings: {
|
|
12474
|
+
* gateway_base_url: 'https://gateway.example.com',
|
|
12475
|
+
* workspaces_allowed: ['ws-develo-71f8d8'],
|
|
12476
|
+
* },
|
|
12477
|
+
* });
|
|
12478
|
+
* ```
|
|
12479
|
+
*/
|
|
12480
|
+
async update(deploymentId, body) {
|
|
12481
|
+
assertUuid(deploymentId, "deploymentId");
|
|
12482
|
+
return request({
|
|
12483
|
+
method: "PUT",
|
|
12484
|
+
baseUrl: this.baseUrl,
|
|
12485
|
+
path: `${AI_GW_DEPLOYMENTS_PATH}/${deploymentId}`,
|
|
12486
|
+
body,
|
|
12487
|
+
responseSchema: GatewayWriteResponseSchema,
|
|
12488
|
+
auth: this.auth,
|
|
12489
|
+
numRetries: this.numRetries
|
|
12490
|
+
});
|
|
12491
|
+
}
|
|
12492
|
+
/**
|
|
12493
|
+
* Run SCM's outbound and inbound connectivity checks against a configured gateway.
|
|
12494
|
+
* @param deploymentId - Deployment UUID.
|
|
12495
|
+
* @returns Health of both connectivity directions.
|
|
12496
|
+
* @example
|
|
12497
|
+
* ```ts
|
|
12498
|
+
* import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
|
|
12499
|
+
* const gw = new AIGatewayClient();
|
|
12500
|
+
* const health = await gw.deployments.ping('21414819-485e-4ba3-b3d3-3e1815580e43');
|
|
12501
|
+
* console.log(health.status, health.outbound.status, health.inbound.status);
|
|
12502
|
+
* ```
|
|
12503
|
+
*/
|
|
12504
|
+
async ping(deploymentId) {
|
|
12505
|
+
assertUuid(deploymentId, "deploymentId");
|
|
12506
|
+
return request({
|
|
12507
|
+
method: "GET",
|
|
12508
|
+
baseUrl: this.baseUrl,
|
|
12509
|
+
path: `${AI_GW_DEPLOYMENTS_PATH}/${deploymentId}/ping`,
|
|
12510
|
+
responseSchema: GatewayDeploymentPingResponseSchema,
|
|
12511
|
+
auth: this.auth,
|
|
12512
|
+
numRetries: this.numRetries
|
|
12513
|
+
});
|
|
12514
|
+
}
|
|
12089
12515
|
/**
|
|
12090
12516
|
* Archive a deployment.
|
|
12091
12517
|
*
|
|
@@ -12682,6 +13108,7 @@ export {
|
|
|
12682
13108
|
FileScanDataSchema,
|
|
12683
13109
|
FileScanResult,
|
|
12684
13110
|
FileType,
|
|
13111
|
+
GatewayApiKeyRotateResponseSchema,
|
|
12685
13112
|
GatewayApiKeySchema,
|
|
12686
13113
|
GatewayAuditLogRecordSchema,
|
|
12687
13114
|
GatewayAuditLogsResponseSchema,
|
|
@@ -12689,8 +13116,10 @@ export {
|
|
|
12689
13116
|
GatewayConfigCreateResponseSchema,
|
|
12690
13117
|
GatewayConfigDetailSchema,
|
|
12691
13118
|
GatewayConfigSchema,
|
|
13119
|
+
GatewayConfigVersionSchema,
|
|
12692
13120
|
GatewayDeploymentCreateResponseSchema,
|
|
12693
13121
|
GatewayDeploymentDetailSchema,
|
|
13122
|
+
GatewayDeploymentPingResponseSchema,
|
|
12694
13123
|
GatewayDeploymentSchema,
|
|
12695
13124
|
GatewayGlobalWorkspaceAccessSchema,
|
|
12696
13125
|
GatewayGroupRowSchema,
|
|
@@ -12705,6 +13134,7 @@ export {
|
|
|
12705
13134
|
GatewayLogsResponseSchema,
|
|
12706
13135
|
GatewayPluginSchema,
|
|
12707
13136
|
GatewayProviderCreateResponseSchema,
|
|
13137
|
+
GatewayProviderDetailSchema,
|
|
12708
13138
|
GatewayProviderSchema,
|
|
12709
13139
|
GatewayRateLimitSchema,
|
|
12710
13140
|
GatewayUsageLimitSchema,
|
|
@@ -12745,6 +13175,7 @@ export {
|
|
|
12745
13175
|
LanguageOptionSchema,
|
|
12746
13176
|
LatencyChartResponseSchema,
|
|
12747
13177
|
ListApiKeysResponseSchema,
|
|
13178
|
+
ListConfigVersionsResponseSchema,
|
|
12748
13179
|
ListConfigsResponseSchema,
|
|
12749
13180
|
ListDeploymentsResponseSchema,
|
|
12750
13181
|
ListGuardrailsResponseSchema,
|
|
@@ -12813,7 +13244,13 @@ export {
|
|
|
12813
13244
|
MaskedDataSchema,
|
|
12814
13245
|
McEntrySchema,
|
|
12815
13246
|
McReportSchema,
|
|
13247
|
+
McpIntegrationCapabilitiesResponseSchema,
|
|
13248
|
+
McpIntegrationCapabilitiesUpdateResponseSchema,
|
|
13249
|
+
McpIntegrationCapabilitySchema,
|
|
13250
|
+
McpIntegrationDetailSchema,
|
|
13251
|
+
McpIntegrationMetadataSchema,
|
|
12816
13252
|
McpIntegrationSchema,
|
|
13253
|
+
McpIntegrationWorkspacesUpdateResponseSchema,
|
|
12817
13254
|
MetadataCriterionSchema,
|
|
12818
13255
|
MetadataSchema,
|
|
12819
13256
|
ModelConfigurationSchema,
|