@truefoundry/ai-gateway-sdk 0.0.20 → 0.0.21

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.
@@ -8297,6 +8297,9 @@
8297
8297
  {
8298
8298
  "$ref": "#/definitions/EmailNotificationChannel"
8299
8299
  },
8300
+ {
8301
+ "$ref": "#/definitions/WebhookNotificationChannel"
8302
+ },
8300
8303
  {
8301
8304
  "$ref": "#/definitions/CustomHelmRepo"
8302
8305
  },
@@ -15976,7 +15979,7 @@
15976
15979
  "pattern": "^[a-z][a-z0-9\\-]{1,34}[a-z0-9]$"
15977
15980
  },
15978
15981
  "notification_target": {
15979
- "$ref": "#/definitions/NotificationTarget"
15982
+ "$ref": "#/definitions/NotificationTargetForApproval"
15980
15983
  },
15981
15984
  "servers": {
15982
15985
  "description": "+label=Pick specific tools that require approval\n+usage=MCP servers this policy applies to, each with the tool groups that require approval.\n+uiProps={\"descriptionInline\":true}\n+sort=400\n+minItems=1",
@@ -17755,6 +17758,31 @@
17755
17758
  ],
17756
17759
  "$schema": "http://json-schema.org/draft-04/schema#"
17757
17760
  },
17761
+ "NotificationTargetForApproval": {
17762
+ "description": "MCP tool approval policies. Webhook receives the structured approval.requested event.\n+discriminator=type",
17763
+ "type": "object",
17764
+ "oneOf": [
17765
+ {
17766
+ "$ref": "#/definitions/Email"
17767
+ },
17768
+ {
17769
+ "$ref": "#/definitions/SlackWebhook"
17770
+ },
17771
+ {
17772
+ "$ref": "#/definitions/SlackBot"
17773
+ },
17774
+ {
17775
+ "$ref": "#/definitions/PagerDuty"
17776
+ },
17777
+ {
17778
+ "$ref": "#/definitions/MSTeamsWebhook"
17779
+ },
17780
+ {
17781
+ "$ref": "#/definitions/Webhook"
17782
+ }
17783
+ ],
17784
+ "$schema": "http://json-schema.org/draft-04/schema#"
17785
+ },
17758
17786
  "NotificationTargetForBudget": {
17759
17787
  "description": "+discriminator=type",
17760
17788
  "type": "object",
@@ -17773,6 +17801,9 @@
17773
17801
  },
17774
17802
  {
17775
17803
  "$ref": "#/definitions/MSTeamsWebhook"
17804
+ },
17805
+ {
17806
+ "$ref": "#/definitions/Webhook"
17776
17807
  }
17777
17808
  ],
17778
17809
  "$schema": "http://json-schema.org/draft-04/schema#"
@@ -28109,6 +28140,24 @@
28109
28140
  },
28110
28141
  "$schema": "http://json-schema.org/draft-04/schema#"
28111
28142
  },
28143
+ "Webhook": {
28144
+ "description": "+label=Webhook",
28145
+ "type": "object",
28146
+ "required": ["type", "notification_channel"],
28147
+ "properties": {
28148
+ "type": {
28149
+ "description": "+value=webhook",
28150
+ "type": "string",
28151
+ "enum": ["webhook"]
28152
+ },
28153
+ "notification_channel": {
28154
+ "description": "+label=Notification Channel\n+usage=Specify the notification channel to send alerts to\n+uiType=AlertNotificationChannel\n+uiProps={\"integrationType\":\"notification-channel\"}\n+sort=660",
28155
+ "type": "string",
28156
+ "minLength": 1
28157
+ }
28158
+ },
28159
+ "$schema": "http://json-schema.org/draft-04/schema#"
28160
+ },
28112
28161
  "WebhookBasicAuth": {
28113
28162
  "type": "object",
28114
28163
  "required": ["type", "username", "password"],
@@ -28195,6 +28244,48 @@
28195
28244
  "$ref": "#/definitions/WebhookIntegration",
28196
28245
  "$schema": "http://json-schema.org/draft-04/schema#"
28197
28246
  },
28247
+ "WebhookNotificationChannel": {
28248
+ "description": "+label=Webhook Notification Channel\n+icon=puzzle-piece",
28249
+ "type": "object",
28250
+ "required": ["type", "name", "url"],
28251
+ "properties": {
28252
+ "type": {
28253
+ "description": "+value=integration/notification-channel/webhook",
28254
+ "type": "string",
28255
+ "enum": ["integration/notification-channel/webhook"]
28256
+ },
28257
+ "name": {
28258
+ "description": "+label=Display Name\n+usage=The name of the integration that will be displayed in the TrueFoundry UI.\n+sort=100\n+message=3 to 36 lower case characters long alphanumeric word, may contain - in between, cannot start with a number",
28259
+ "type": "string",
28260
+ "pattern": "^[a-z][a-z0-9\\-]{1,34}[a-z0-9]$"
28261
+ },
28262
+ "url": {
28263
+ "description": "+label=Webhook URL\n+usage=HTTPS endpoint that receives a JSON POST for every notification.\n+sort=200",
28264
+ "type": "string",
28265
+ "pattern": "^https:\\/\\/[^\\s\\/:]+(:[0-9]{1,5})?(\\/.*)?$"
28266
+ },
28267
+ "auth_data": {
28268
+ "description": "+label=Auth Data\n+usage=Optional credentials sent in the Authorization header of every request.\n+sort=300\n+discriminator=type",
28269
+ "type": "object",
28270
+ "oneOf": [
28271
+ {
28272
+ "$ref": "#/definitions/CustomBearerAuth"
28273
+ },
28274
+ {
28275
+ "$ref": "#/definitions/CustomBasicAuth"
28276
+ }
28277
+ ]
28278
+ },
28279
+ "authorized_subjects": {
28280
+ "description": "+label=Access Control\n+usage=List of subjects that are authorized to access this integration. List of user fqn in format <user_type>:<username>.\n+sort=1200\n+uiType=AuthorizedSubjects",
28281
+ "type": "array",
28282
+ "items": {
28283
+ "type": "string"
28284
+ }
28285
+ }
28286
+ },
28287
+ "$schema": "http://json-schema.org/draft-04/schema#"
28288
+ },
28198
28289
  "WebhookProviderAccount": {
28199
28290
  "description": "+label=Webhook Provider Account\n+icon=webhook",
28200
28291
  "type": "object",
@@ -31590,6 +31681,9 @@
31590
31681
  "WaferProviderAccount": {
31591
31682
  "$ref": "#/definitions/WaferProviderAccount"
31592
31683
  },
31684
+ "Webhook": {
31685
+ "$ref": "#/definitions/Webhook"
31686
+ },
31593
31687
  "WebhookBasicAuth": {
31594
31688
  "$ref": "#/definitions/WebhookBasicAuth"
31595
31689
  },
@@ -31602,6 +31696,9 @@
31602
31696
  "WebhookIntegrations": {
31603
31697
  "$ref": "#/definitions/WebhookIntegrations"
31604
31698
  },
31699
+ "WebhookNotificationChannel": {
31700
+ "$ref": "#/definitions/WebhookNotificationChannel"
31701
+ },
31605
31702
  "WebhookProviderAccount": {
31606
31703
  "$ref": "#/definitions/WebhookProviderAccount"
31607
31704
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truefoundry/ai-gateway-sdk",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "LLM provider translation SDK",
5
5
  "author": "Truefoundry",
6
6
  "license": "UNLICENSED",