@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 CHANGED
@@ -286,6 +286,7 @@ __export(index_exports, {
286
286
  FileScanDataSchema: () => FileScanDataSchema,
287
287
  FileScanResult: () => FileScanResult,
288
288
  FileType: () => FileType,
289
+ GatewayApiKeyRotateResponseSchema: () => GatewayApiKeyRotateResponseSchema,
289
290
  GatewayApiKeySchema: () => GatewayApiKeySchema,
290
291
  GatewayAuditLogRecordSchema: () => GatewayAuditLogRecordSchema,
291
292
  GatewayAuditLogsResponseSchema: () => GatewayAuditLogsResponseSchema,
@@ -293,8 +294,10 @@ __export(index_exports, {
293
294
  GatewayConfigCreateResponseSchema: () => GatewayConfigCreateResponseSchema,
294
295
  GatewayConfigDetailSchema: () => GatewayConfigDetailSchema,
295
296
  GatewayConfigSchema: () => GatewayConfigSchema,
297
+ GatewayConfigVersionSchema: () => GatewayConfigVersionSchema,
296
298
  GatewayDeploymentCreateResponseSchema: () => GatewayDeploymentCreateResponseSchema,
297
299
  GatewayDeploymentDetailSchema: () => GatewayDeploymentDetailSchema,
300
+ GatewayDeploymentPingResponseSchema: () => GatewayDeploymentPingResponseSchema,
298
301
  GatewayDeploymentSchema: () => GatewayDeploymentSchema,
299
302
  GatewayGlobalWorkspaceAccessSchema: () => GatewayGlobalWorkspaceAccessSchema,
300
303
  GatewayGroupRowSchema: () => GatewayGroupRowSchema,
@@ -309,6 +312,7 @@ __export(index_exports, {
309
312
  GatewayLogsResponseSchema: () => GatewayLogsResponseSchema,
310
313
  GatewayPluginSchema: () => GatewayPluginSchema,
311
314
  GatewayProviderCreateResponseSchema: () => GatewayProviderCreateResponseSchema,
315
+ GatewayProviderDetailSchema: () => GatewayProviderDetailSchema,
312
316
  GatewayProviderSchema: () => GatewayProviderSchema,
313
317
  GatewayRateLimitSchema: () => GatewayRateLimitSchema,
314
318
  GatewayUsageLimitSchema: () => GatewayUsageLimitSchema,
@@ -349,6 +353,7 @@ __export(index_exports, {
349
353
  LanguageOptionSchema: () => LanguageOptionSchema,
350
354
  LatencyChartResponseSchema: () => LatencyChartResponseSchema,
351
355
  ListApiKeysResponseSchema: () => ListApiKeysResponseSchema,
356
+ ListConfigVersionsResponseSchema: () => ListConfigVersionsResponseSchema,
352
357
  ListConfigsResponseSchema: () => ListConfigsResponseSchema,
353
358
  ListDeploymentsResponseSchema: () => ListDeploymentsResponseSchema,
354
359
  ListGuardrailsResponseSchema: () => ListGuardrailsResponseSchema,
@@ -417,7 +422,13 @@ __export(index_exports, {
417
422
  MaskedDataSchema: () => MaskedDataSchema,
418
423
  McEntrySchema: () => McEntrySchema,
419
424
  McReportSchema: () => McReportSchema,
425
+ McpIntegrationCapabilitiesResponseSchema: () => McpIntegrationCapabilitiesResponseSchema,
426
+ McpIntegrationCapabilitiesUpdateResponseSchema: () => McpIntegrationCapabilitiesUpdateResponseSchema,
427
+ McpIntegrationCapabilitySchema: () => McpIntegrationCapabilitySchema,
428
+ McpIntegrationDetailSchema: () => McpIntegrationDetailSchema,
429
+ McpIntegrationMetadataSchema: () => McpIntegrationMetadataSchema,
420
430
  McpIntegrationSchema: () => McpIntegrationSchema,
431
+ McpIntegrationWorkspacesUpdateResponseSchema: () => McpIntegrationWorkspacesUpdateResponseSchema,
421
432
  MetadataCriterionSchema: () => MetadataCriterionSchema,
422
433
  MetadataSchema: () => MetadataSchema,
423
434
  ModelConfigurationSchema: () => ModelConfigurationSchema,
@@ -5117,6 +5128,11 @@ var GatewayConfigDetailSchema = GatewayConfigSchema.extend({
5117
5128
  type: import_zod35.z.string(),
5118
5129
  version_id: import_zod35.z.string()
5119
5130
  }).passthrough();
5131
+ var GatewayConfigVersionSchema = GatewayConfigDetailSchema.extend({
5132
+ version_created_at: import_zod35.z.string(),
5133
+ version_owner_id: import_zod35.z.string()
5134
+ }).passthrough();
5135
+ var ListConfigVersionsResponseSchema = aiGatewayList(GatewayConfigVersionSchema);
5120
5136
  var GatewayConfigCreateResponseSchema = import_zod35.z.object({
5121
5137
  id: import_zod35.z.string(),
5122
5138
  version_id: import_zod35.z.string(),
@@ -5154,8 +5170,8 @@ var GatewayGuardrailDetailSchema = GatewayGuardrailSchema.extend({
5154
5170
  async: import_zod35.z.boolean(),
5155
5171
  sequential: import_zod35.z.boolean(),
5156
5172
  /** Absent when the guardrail was created without a pass/fail feedback action. */
5157
- on_success: guardrailFeedbackActionSchema.optional(),
5158
- on_fail: guardrailFeedbackActionSchema.optional()
5173
+ on_success: guardrailFeedbackActionSchema.nullable().optional(),
5174
+ on_fail: guardrailFeedbackActionSchema.nullable().optional()
5159
5175
  }).passthrough(),
5160
5176
  version_id: import_zod35.z.string()
5161
5177
  }).passthrough();
@@ -5172,6 +5188,27 @@ var GatewayProviderSchema = import_zod35.z.object({
5172
5188
  object: import_zod35.z.string().optional()
5173
5189
  }).passthrough();
5174
5190
  var ListProvidersResponseSchema = aiGatewayList(GatewayProviderSchema);
5191
+ var GatewayProviderDetailSchema = import_zod35.z.object({
5192
+ id: import_zod35.z.string(),
5193
+ ai_provider_name: import_zod35.z.string(),
5194
+ model_config: import_zod35.z.record(import_zod35.z.unknown()),
5195
+ /** Potentially secret-bearing. Never log or persist this field. */
5196
+ key: import_zod35.z.string(),
5197
+ masked_api_key: import_zod35.z.string(),
5198
+ slug: import_zod35.z.string(),
5199
+ name: import_zod35.z.string(),
5200
+ usage_limits: import_zod35.z.unknown().nullable(),
5201
+ status: import_zod35.z.string(),
5202
+ note: import_zod35.z.string().nullable(),
5203
+ created_at: import_zod35.z.string(),
5204
+ expires_at: import_zod35.z.string().nullable(),
5205
+ last_reset_at: import_zod35.z.string().nullable(),
5206
+ rate_limits: import_zod35.z.array(import_zod35.z.unknown()),
5207
+ integration_id: import_zod35.z.string(),
5208
+ tags: import_zod35.z.unknown().nullable(),
5209
+ secret_mappings: import_zod35.z.array(import_zod35.z.unknown()).optional(),
5210
+ object: import_zod35.z.string()
5211
+ }).passthrough();
5175
5212
  var GatewayProviderCreateResponseSchema = import_zod35.z.object({
5176
5213
  id: import_zod35.z.string(),
5177
5214
  slug: import_zod35.z.string(),
@@ -5183,6 +5220,11 @@ var GatewayApiKeySchema = import_zod35.z.object({
5183
5220
  object: import_zod35.z.string().optional()
5184
5221
  }).passthrough();
5185
5222
  var ListApiKeysResponseSchema = aiGatewayList(GatewayApiKeySchema);
5223
+ var GatewayApiKeyRotateResponseSchema = import_zod35.z.object({
5224
+ id: import_zod35.z.string(),
5225
+ key: import_zod35.z.string(),
5226
+ key_transition_expires_at: import_zod35.z.string()
5227
+ }).passthrough();
5186
5228
  var GatewayIntegrationSchema = import_zod35.z.object({
5187
5229
  id: import_zod35.z.string(),
5188
5230
  organisation_id: import_zod35.z.string().optional(),
@@ -5213,7 +5255,7 @@ var GatewayIntegrationWorkspaceSchema = import_zod35.z.object({
5213
5255
  enabled: import_zod35.z.boolean(),
5214
5256
  status: import_zod35.z.string(),
5215
5257
  created_at: import_zod35.z.string(),
5216
- last_updated_at: import_zod35.z.string(),
5258
+ last_updated_at: import_zod35.z.string().nullable(),
5217
5259
  last_reset_at: import_zod35.z.string().nullable()
5218
5260
  }).passthrough();
5219
5261
  var GatewayGlobalWorkspaceAccessSchema = import_zod35.z.object({
@@ -5246,6 +5288,70 @@ var McpIntegrationSchema = import_zod35.z.object({
5246
5288
  last_updated_at: import_zod35.z.string()
5247
5289
  }).passthrough();
5248
5290
  var ListMcpIntegrationsResponseSchema = aiGatewayList(McpIntegrationSchema);
5291
+ var McpIntegrationDetailSchema = import_zod35.z.object({
5292
+ id: import_zod35.z.string(),
5293
+ name: import_zod35.z.string(),
5294
+ description: import_zod35.z.string().nullable(),
5295
+ owner_id: import_zod35.z.string(),
5296
+ status: import_zod35.z.string(),
5297
+ created_at: import_zod35.z.string(),
5298
+ last_updated_at: import_zod35.z.string(),
5299
+ configurations: import_zod35.z.record(import_zod35.z.unknown()),
5300
+ global_workspace_access: import_zod35.z.object({ enabled: import_zod35.z.boolean() }).passthrough().nullable(),
5301
+ workspace_id: import_zod35.z.string().nullable(),
5302
+ slug: import_zod35.z.string(),
5303
+ url: import_zod35.z.string(),
5304
+ auth_type: import_zod35.z.string(),
5305
+ transport: import_zod35.z.string(),
5306
+ type: import_zod35.z.string(),
5307
+ secret_mappings: import_zod35.z.array(import_zod35.z.unknown()).nullable(),
5308
+ object: import_zod35.z.string()
5309
+ }).passthrough();
5310
+ var McpCapabilityCountSchema = import_zod35.z.object({ total: import_zod35.z.number(), enabled: import_zod35.z.number() }).passthrough();
5311
+ var McpIntegrationCapabilitySchema = import_zod35.z.object({
5312
+ name: import_zod35.z.string(),
5313
+ type: import_zod35.z.string(),
5314
+ title: import_zod35.z.string().nullable(),
5315
+ description: import_zod35.z.string().nullable(),
5316
+ icons: import_zod35.z.unknown().nullable(),
5317
+ enabled: import_zod35.z.boolean(),
5318
+ created_at: import_zod35.z.string(),
5319
+ last_updated_at: import_zod35.z.string(),
5320
+ input_schema: import_zod35.z.record(import_zod35.z.unknown()).nullable(),
5321
+ output_schema: import_zod35.z.record(import_zod35.z.unknown()).nullable(),
5322
+ execution: import_zod35.z.unknown().nullable(),
5323
+ annotations: import_zod35.z.record(import_zod35.z.unknown()).nullable(),
5324
+ object: import_zod35.z.string()
5325
+ }).passthrough();
5326
+ var McpIntegrationCapabilitiesResponseSchema = import_zod35.z.object({
5327
+ object: import_zod35.z.string(),
5328
+ counts: import_zod35.z.object({
5329
+ tools: McpCapabilityCountSchema.optional(),
5330
+ prompts: McpCapabilityCountSchema.optional(),
5331
+ resources: McpCapabilityCountSchema.optional(),
5332
+ resource_templates: McpCapabilityCountSchema.optional()
5333
+ }).passthrough(),
5334
+ total: import_zod35.z.number(),
5335
+ has_more: import_zod35.z.boolean(),
5336
+ data: import_zod35.z.array(McpIntegrationCapabilitySchema)
5337
+ }).passthrough();
5338
+ var McpIntegrationCapabilitiesUpdateResponseSchema = import_zod35.z.object({ success: import_zod35.z.boolean() }).passthrough();
5339
+ var McpIntegrationWorkspacesUpdateResponseSchema = import_zod35.z.object({}).strict();
5340
+ var McpIntegrationMetadataSchema = import_zod35.z.object({
5341
+ server_name: import_zod35.z.string(),
5342
+ server_version: import_zod35.z.string(),
5343
+ title: import_zod35.z.string().nullable(),
5344
+ description: import_zod35.z.string().nullable(),
5345
+ website_url: import_zod35.z.string().nullable(),
5346
+ icons: import_zod35.z.unknown().nullable(),
5347
+ protocol_version: import_zod35.z.string().nullable(),
5348
+ capability_flags: import_zod35.z.record(import_zod35.z.unknown()),
5349
+ instructions: import_zod35.z.string().nullable(),
5350
+ sync_status: import_zod35.z.string(),
5351
+ last_synced_at: import_zod35.z.string().nullable(),
5352
+ sync_error: import_zod35.z.string().nullable(),
5353
+ object: import_zod35.z.string()
5354
+ }).passthrough();
5249
5355
  var GatewayDeploymentSchema = import_zod35.z.object({
5250
5356
  id: import_zod35.z.string(),
5251
5357
  name: import_zod35.z.string(),
@@ -5281,6 +5387,18 @@ var GatewayDeploymentCreateResponseSchema = import_zod35.z.object({
5281
5387
  organisation_id: import_zod35.z.string(),
5282
5388
  object: import_zod35.z.string()
5283
5389
  }).passthrough();
5390
+ var GatewayDeploymentPingResponseSchema = import_zod35.z.object({
5391
+ status: import_zod35.z.string(),
5392
+ gateway_base_url: import_zod35.z.string(),
5393
+ outbound: import_zod35.z.object({
5394
+ status: import_zod35.z.string(),
5395
+ status_code: import_zod35.z.number().optional(),
5396
+ version: import_zod35.z.string().optional(),
5397
+ error: import_zod35.z.string().optional()
5398
+ }).passthrough(),
5399
+ inbound: import_zod35.z.object({ status: import_zod35.z.string(), error: import_zod35.z.string().optional() }).passthrough(),
5400
+ object: import_zod35.z.string()
5401
+ }).passthrough();
5284
5402
  var ListDeploymentsResponseSchema = aiGatewayList(GatewayDeploymentSchema);
5285
5403
  var GatewayPluginSchema = import_zod35.z.object({
5286
5404
  id: import_zod35.z.string(),
@@ -11823,6 +11941,29 @@ var AIGatewayConfigsClient = class {
11823
11941
  numRetries: this.numRetries
11824
11942
  });
11825
11943
  }
11944
+ /**
11945
+ * List the immutable version history for one config. Verified live 2026-08-29.
11946
+ * @param configId - Config UUID.
11947
+ * @returns Config versions, including version ownership and creation timestamps.
11948
+ * @example
11949
+ * ```ts
11950
+ * import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
11951
+ * const gw = new AIGatewayClient();
11952
+ * const versions = await gw.configs.listVersions('764cf9cd-4ebf-449e-b669-08149b0fbbbc');
11953
+ * console.log(versions.data[0].version_id);
11954
+ * ```
11955
+ */
11956
+ async listVersions(configId) {
11957
+ assertUuid(configId, "configId");
11958
+ return request({
11959
+ method: "GET",
11960
+ baseUrl: this.baseUrl,
11961
+ path: `${AI_GW_CONFIGS_PATH}/${configId}/versions`,
11962
+ responseSchema: ListConfigVersionsResponseSchema,
11963
+ auth: this.auth,
11964
+ numRetries: this.numRetries
11965
+ });
11966
+ }
11826
11967
  /**
11827
11968
  * Create a config.
11828
11969
  *
@@ -12015,6 +12156,32 @@ var AIGatewayGuardrailsClient = class {
12015
12156
  numRetries: this.numRetries
12016
12157
  });
12017
12158
  }
12159
+ /**
12160
+ * Update a guardrail. Verified live 2026-08-29.
12161
+ * @param guardrailId - Guardrail UUID.
12162
+ * @param body - Fields to update.
12163
+ * @returns The gateway write response.
12164
+ * @example
12165
+ * ```ts
12166
+ * import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
12167
+ * const gw = new AIGatewayClient();
12168
+ * await gw.guardrails.update('9f6c2a8e-2b3d-4e5f-8a9b-0c1d2e3f4a5b', {
12169
+ * name: 'Updated guardrail',
12170
+ * });
12171
+ * ```
12172
+ */
12173
+ async update(guardrailId, body) {
12174
+ assertUuid(guardrailId, "guardrailId");
12175
+ return request({
12176
+ method: "PUT",
12177
+ baseUrl: this.baseUrl,
12178
+ path: `${AI_GW_GUARDRAILS_PATH}/${guardrailId}`,
12179
+ body,
12180
+ responseSchema: GatewayWriteResponseSchema,
12181
+ auth: this.auth,
12182
+ numRetries: this.numRetries
12183
+ });
12184
+ }
12018
12185
  /**
12019
12186
  * Delete a guardrail.
12020
12187
  *
@@ -12081,6 +12248,32 @@ var AIGatewayProvidersClient = class {
12081
12248
  numRetries: this.numRetries
12082
12249
  });
12083
12250
  }
12251
+ /**
12252
+ * Fetch one provider binding. Verified live 2026-08-29.
12253
+ *
12254
+ * @remarks The response can contain provider credential material. Do not log or persist it,
12255
+ * and do not enable SDK debug logging around this call in production.
12256
+ * @param providerId - Provider UUID.
12257
+ * @returns Provider configuration and lifecycle detail.
12258
+ * @example
12259
+ * ```ts
12260
+ * import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
12261
+ * const gw = new AIGatewayClient();
12262
+ * const provider = await gw.providers.get('f6692544-3265-49be-9711-bbdcebc079e4');
12263
+ * console.log(provider.name);
12264
+ * ```
12265
+ */
12266
+ async get(providerId) {
12267
+ assertUuid(providerId, "providerId");
12268
+ return request({
12269
+ method: "GET",
12270
+ baseUrl: this.baseUrl,
12271
+ path: `${AI_GW_PROVIDERS_PATH}/${providerId}`,
12272
+ responseSchema: GatewayProviderDetailSchema,
12273
+ auth: this.auth,
12274
+ numRetries: this.numRetries
12275
+ });
12276
+ }
12084
12277
  /**
12085
12278
  * Create a provider.
12086
12279
  *
@@ -12121,6 +12314,33 @@ var AIGatewayProvidersClient = class {
12121
12314
  numRetries: this.numRetries
12122
12315
  });
12123
12316
  }
12317
+ /**
12318
+ * Update a provider binding. Verified live 2026-08-29.
12319
+ * @param providerId - Provider UUID.
12320
+ * @param body - Fields to update.
12321
+ * @returns The gateway write response.
12322
+ * @example
12323
+ * ```ts
12324
+ * import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
12325
+ * const gw = new AIGatewayClient();
12326
+ * await gw.providers.update('f6692544-3265-49be-9711-bbdcebc079e4', {
12327
+ * name: 'Vertex production',
12328
+ * note: 'Updated by automation',
12329
+ * });
12330
+ * ```
12331
+ */
12332
+ async update(providerId, body) {
12333
+ assertUuid(providerId, "providerId");
12334
+ return request({
12335
+ method: "PUT",
12336
+ baseUrl: this.baseUrl,
12337
+ path: `${AI_GW_PROVIDERS_PATH}/${providerId}`,
12338
+ body,
12339
+ responseSchema: GatewayWriteResponseSchema,
12340
+ auth: this.auth,
12341
+ numRetries: this.numRetries
12342
+ });
12343
+ }
12124
12344
  /**
12125
12345
  * Delete a provider.
12126
12346
  *
@@ -12220,6 +12440,63 @@ var AIGatewayApiKeysClient = class {
12220
12440
  async listUser(opts) {
12221
12441
  return this.listAt(AI_GW_API_KEYS_USER_PATH, opts);
12222
12442
  }
12443
+ getAt(path, keyId) {
12444
+ assertUuid(keyId, "keyId");
12445
+ return request({
12446
+ method: "GET",
12447
+ baseUrl: this.baseUrl,
12448
+ path: `${path}/${keyId}`,
12449
+ responseSchema: GatewayApiKeySchema,
12450
+ auth: this.auth,
12451
+ numRetries: this.numRetries
12452
+ });
12453
+ }
12454
+ async deleteAt(path, keyId) {
12455
+ assertUuid(keyId, "keyId");
12456
+ await request({
12457
+ method: "DELETE",
12458
+ baseUrl: this.baseUrl,
12459
+ path: `${path}/${keyId}`,
12460
+ auth: this.auth,
12461
+ numRetries: this.numRetries
12462
+ });
12463
+ }
12464
+ rotateAt(path, keyId, body = {}) {
12465
+ assertUuid(keyId, "keyId");
12466
+ return request({
12467
+ method: "POST",
12468
+ baseUrl: this.baseUrl,
12469
+ path: `${path}/${keyId}/rotate`,
12470
+ body,
12471
+ responseSchema: GatewayApiKeyRotateResponseSchema,
12472
+ auth: this.auth,
12473
+ numRetries: this.numRetries
12474
+ });
12475
+ }
12476
+ /** Get a service key. @example `await gw.apiKeys.getService(keyId);` */
12477
+ async getService(keyId) {
12478
+ return this.getAt(AI_GW_API_KEYS_SERVICE_PATH, keyId);
12479
+ }
12480
+ /** Get a user key. @example `await gw.apiKeys.getUser(keyId);` */
12481
+ async getUser(keyId) {
12482
+ return this.getAt(AI_GW_API_KEYS_USER_PATH, keyId);
12483
+ }
12484
+ /** Permanently delete a service key. @example `await gw.apiKeys.deleteService(keyId);` */
12485
+ async deleteService(keyId) {
12486
+ return this.deleteAt(AI_GW_API_KEYS_SERVICE_PATH, keyId);
12487
+ }
12488
+ /** Permanently delete a user key. @example `await gw.apiKeys.deleteUser(keyId);` */
12489
+ async deleteUser(keyId) {
12490
+ return this.deleteAt(AI_GW_API_KEYS_USER_PATH, keyId);
12491
+ }
12492
+ /** Rotate a service key; capture the returned secret. @example `const rotated = await gw.apiKeys.rotateService(keyId);` */
12493
+ async rotateService(keyId, body = {}) {
12494
+ return this.rotateAt(AI_GW_API_KEYS_SERVICE_PATH, keyId, body);
12495
+ }
12496
+ /** Rotate a user key; capture the returned secret. @example `const rotated = await gw.apiKeys.rotateUser(keyId);` */
12497
+ async rotateUser(keyId, body = {}) {
12498
+ return this.rotateAt(AI_GW_API_KEYS_USER_PATH, keyId, body);
12499
+ }
12223
12500
  /**
12224
12501
  * Create a service API key.
12225
12502
  * @param body - Name, scopes, TSG, workspace UUID, and type.
@@ -12599,6 +12876,75 @@ var AIGatewayMcpIntegrationsClient = class {
12599
12876
  numRetries: this.numRetries
12600
12877
  });
12601
12878
  }
12879
+ /**
12880
+ * Fetch one MCP integration. Verified live 2026-08-29.
12881
+ * @param mcpIntegrationId - MCP integration UUID.
12882
+ * @returns Integration detail; unlike list rows, `configurations` is an object.
12883
+ * @example
12884
+ * ```ts
12885
+ * import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
12886
+ * const gw = new AIGatewayClient();
12887
+ * const integration = await gw.mcpIntegrations.get('2a6f4e2e-6f5a-4a1f-9d0e-9b2b6f6c3a11');
12888
+ * console.log(integration.url);
12889
+ * ```
12890
+ */
12891
+ async get(mcpIntegrationId) {
12892
+ assertUuid(mcpIntegrationId, "mcpIntegrationId");
12893
+ return request({
12894
+ method: "GET",
12895
+ baseUrl: this.baseUrl,
12896
+ path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}`,
12897
+ responseSchema: McpIntegrationDetailSchema,
12898
+ auth: this.auth,
12899
+ numRetries: this.numRetries
12900
+ });
12901
+ }
12902
+ /**
12903
+ * List capabilities discovered from an MCP integration. Verified live 2026-08-29.
12904
+ * @param mcpIntegrationId - MCP integration UUID.
12905
+ * @returns Tools, prompts, resources, and resource templates with enablement counts.
12906
+ * @example
12907
+ * ```ts
12908
+ * import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
12909
+ * const gw = new AIGatewayClient();
12910
+ * const capabilities = await gw.mcpIntegrations.getCapabilities('2a6f4e2e-6f5a-4a1f-9d0e-9b2b6f6c3a11');
12911
+ * console.log(capabilities.data.map((capability) => capability.name));
12912
+ * ```
12913
+ */
12914
+ async getCapabilities(mcpIntegrationId) {
12915
+ assertUuid(mcpIntegrationId, "mcpIntegrationId");
12916
+ return request({
12917
+ method: "GET",
12918
+ baseUrl: this.baseUrl,
12919
+ path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}/capabilities`,
12920
+ responseSchema: McpIntegrationCapabilitiesResponseSchema,
12921
+ auth: this.auth,
12922
+ numRetries: this.numRetries
12923
+ });
12924
+ }
12925
+ /**
12926
+ * Fetch metadata discovered from an MCP server. Verified live 2026-08-29.
12927
+ * @param mcpIntegrationId - MCP integration UUID.
12928
+ * @returns Server identity, protocol, capability flags, and sync state.
12929
+ * @example
12930
+ * ```ts
12931
+ * import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
12932
+ * const gw = new AIGatewayClient();
12933
+ * const metadata = await gw.mcpIntegrations.getMetadata('2a6f4e2e-6f5a-4a1f-9d0e-9b2b6f6c3a11');
12934
+ * console.log(metadata.sync_status);
12935
+ * ```
12936
+ */
12937
+ async getMetadata(mcpIntegrationId) {
12938
+ assertUuid(mcpIntegrationId, "mcpIntegrationId");
12939
+ return request({
12940
+ method: "GET",
12941
+ baseUrl: this.baseUrl,
12942
+ path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}/metadata`,
12943
+ responseSchema: McpIntegrationMetadataSchema,
12944
+ auth: this.auth,
12945
+ numRetries: this.numRetries
12946
+ });
12947
+ }
12602
12948
  /**
12603
12949
  * Register an MCP server.
12604
12950
  * @param body - Name, server URL, auth type, transport, and provider-specific configuration.
@@ -12629,18 +12975,57 @@ var AIGatewayMcpIntegrationsClient = class {
12629
12975
  numRetries: this.numRetries
12630
12976
  });
12631
12977
  }
12978
+ /** Update an MCP integration. @example `await gw.mcpIntegrations.update(id, { name: 'Docs MCP' });` */
12979
+ async update(mcpIntegrationId, body) {
12980
+ assertUuid(mcpIntegrationId, "mcpIntegrationId");
12981
+ return request({
12982
+ method: "PUT",
12983
+ baseUrl: this.baseUrl,
12984
+ path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}`,
12985
+ body,
12986
+ responseSchema: GatewayWriteResponseSchema,
12987
+ auth: this.auth,
12988
+ numRetries: this.numRetries
12989
+ });
12990
+ }
12991
+ /** Permanently delete an MCP integration. @example `await gw.mcpIntegrations.delete(id);` */
12992
+ async delete(mcpIntegrationId) {
12993
+ assertUuid(mcpIntegrationId, "mcpIntegrationId");
12994
+ await request({
12995
+ method: "DELETE",
12996
+ baseUrl: this.baseUrl,
12997
+ path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}`,
12998
+ auth: this.auth,
12999
+ numRetries: this.numRetries
13000
+ });
13001
+ }
13002
+ /** Replace capability enablement values. @example `await gw.mcpIntegrations.setCapabilities(id, { capabilities: [{ name: 'lookup', type: 'tool', enabled: true }] });` */
13003
+ async setCapabilities(mcpIntegrationId, body) {
13004
+ assertUuid(mcpIntegrationId, "mcpIntegrationId");
13005
+ return request({
13006
+ method: "PUT",
13007
+ baseUrl: this.baseUrl,
13008
+ path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}/capabilities`,
13009
+ body,
13010
+ responseSchema: McpIntegrationCapabilitiesUpdateResponseSchema,
13011
+ auth: this.auth,
13012
+ numRetries: this.numRetries
13013
+ });
13014
+ }
12632
13015
  /**
12633
13016
  * Replace which workspaces may use this MCP integration.
12634
13017
  * @param mcpIntegrationId - MCP integration UUID.
12635
13018
  * @param body - Workspace bindings or a global-access flag; this is a replace, not a merge.
12636
- * @returns The raw response. Shape unverified against a live tenant — see the PRD.
13019
+ * @returns An empty object. Verified live 2026-08-30.
12637
13020
  * @example
12638
13021
  * ```ts
12639
13022
  * import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
12640
13023
  * const gw = new AIGatewayClient();
12641
13024
  *
12642
13025
  * await gw.mcpIntegrations.setWorkspaces('f6692544-3265-49be-9711-bbdcebc079e4', {
12643
- * global_workspace_access: true,
13026
+ * workspaces: [{ id: 'ws-development', enabled: true }],
13027
+ * global_workspace_access: { enabled: false },
13028
+ * override_existing_workspace_access: true,
12644
13029
  * });
12645
13030
  * ```
12646
13031
  */
@@ -12651,7 +13036,7 @@ var AIGatewayMcpIntegrationsClient = class {
12651
13036
  baseUrl: this.baseUrl,
12652
13037
  path: `${AI_GW_MCP_INTEGRATIONS_PATH}/${mcpIntegrationId}/workspaces`,
12653
13038
  body,
12654
- responseSchema: GatewayWriteResponseSchema,
13039
+ responseSchema: McpIntegrationWorkspacesUpdateResponseSchema,
12655
13040
  auth: this.auth,
12656
13041
  numRetries: this.numRetries
12657
13042
  });
@@ -12760,6 +13145,58 @@ var AIGatewayDeploymentsClient = class {
12760
13145
  numRetries: this.numRetries
12761
13146
  });
12762
13147
  }
13148
+ /**
13149
+ * Update deployment settings, including its externally deployed gateway URL and workspace scope.
13150
+ * @param deploymentId - Deployment UUID.
13151
+ * @param body - Fields to update.
13152
+ * @returns The gateway write response.
13153
+ * @example
13154
+ * ```ts
13155
+ * import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
13156
+ * const gw = new AIGatewayClient();
13157
+ * await gw.deployments.update('21414819-485e-4ba3-b3d3-3e1815580e43', {
13158
+ * auth_settings: {
13159
+ * gateway_base_url: 'https://gateway.example.com',
13160
+ * workspaces_allowed: ['ws-develo-71f8d8'],
13161
+ * },
13162
+ * });
13163
+ * ```
13164
+ */
13165
+ async update(deploymentId, body) {
13166
+ assertUuid(deploymentId, "deploymentId");
13167
+ return request({
13168
+ method: "PUT",
13169
+ baseUrl: this.baseUrl,
13170
+ path: `${AI_GW_DEPLOYMENTS_PATH}/${deploymentId}`,
13171
+ body,
13172
+ responseSchema: GatewayWriteResponseSchema,
13173
+ auth: this.auth,
13174
+ numRetries: this.numRetries
13175
+ });
13176
+ }
13177
+ /**
13178
+ * Run SCM's outbound and inbound connectivity checks against a configured gateway.
13179
+ * @param deploymentId - Deployment UUID.
13180
+ * @returns Health of both connectivity directions.
13181
+ * @example
13182
+ * ```ts
13183
+ * import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
13184
+ * const gw = new AIGatewayClient();
13185
+ * const health = await gw.deployments.ping('21414819-485e-4ba3-b3d3-3e1815580e43');
13186
+ * console.log(health.status, health.outbound.status, health.inbound.status);
13187
+ * ```
13188
+ */
13189
+ async ping(deploymentId) {
13190
+ assertUuid(deploymentId, "deploymentId");
13191
+ return request({
13192
+ method: "GET",
13193
+ baseUrl: this.baseUrl,
13194
+ path: `${AI_GW_DEPLOYMENTS_PATH}/${deploymentId}/ping`,
13195
+ responseSchema: GatewayDeploymentPingResponseSchema,
13196
+ auth: this.auth,
13197
+ numRetries: this.numRetries
13198
+ });
13199
+ }
12763
13200
  /**
12764
13201
  * Archive a deployment.
12765
13202
  *
@@ -13357,6 +13794,7 @@ var AIGatewayClient = class {
13357
13794
  FileScanDataSchema,
13358
13795
  FileScanResult,
13359
13796
  FileType,
13797
+ GatewayApiKeyRotateResponseSchema,
13360
13798
  GatewayApiKeySchema,
13361
13799
  GatewayAuditLogRecordSchema,
13362
13800
  GatewayAuditLogsResponseSchema,
@@ -13364,8 +13802,10 @@ var AIGatewayClient = class {
13364
13802
  GatewayConfigCreateResponseSchema,
13365
13803
  GatewayConfigDetailSchema,
13366
13804
  GatewayConfigSchema,
13805
+ GatewayConfigVersionSchema,
13367
13806
  GatewayDeploymentCreateResponseSchema,
13368
13807
  GatewayDeploymentDetailSchema,
13808
+ GatewayDeploymentPingResponseSchema,
13369
13809
  GatewayDeploymentSchema,
13370
13810
  GatewayGlobalWorkspaceAccessSchema,
13371
13811
  GatewayGroupRowSchema,
@@ -13380,6 +13820,7 @@ var AIGatewayClient = class {
13380
13820
  GatewayLogsResponseSchema,
13381
13821
  GatewayPluginSchema,
13382
13822
  GatewayProviderCreateResponseSchema,
13823
+ GatewayProviderDetailSchema,
13383
13824
  GatewayProviderSchema,
13384
13825
  GatewayRateLimitSchema,
13385
13826
  GatewayUsageLimitSchema,
@@ -13420,6 +13861,7 @@ var AIGatewayClient = class {
13420
13861
  LanguageOptionSchema,
13421
13862
  LatencyChartResponseSchema,
13422
13863
  ListApiKeysResponseSchema,
13864
+ ListConfigVersionsResponseSchema,
13423
13865
  ListConfigsResponseSchema,
13424
13866
  ListDeploymentsResponseSchema,
13425
13867
  ListGuardrailsResponseSchema,
@@ -13488,7 +13930,13 @@ var AIGatewayClient = class {
13488
13930
  MaskedDataSchema,
13489
13931
  McEntrySchema,
13490
13932
  McReportSchema,
13933
+ McpIntegrationCapabilitiesResponseSchema,
13934
+ McpIntegrationCapabilitiesUpdateResponseSchema,
13935
+ McpIntegrationCapabilitySchema,
13936
+ McpIntegrationDetailSchema,
13937
+ McpIntegrationMetadataSchema,
13491
13938
  McpIntegrationSchema,
13939
+ McpIntegrationWorkspacesUpdateResponseSchema,
13492
13940
  MetadataCriterionSchema,
13493
13941
  MetadataSchema,
13494
13942
  ModelConfigurationSchema,