@imbue-ai/detent 1.11.2 → 1.13.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/src/schemas/generatedBuiltinSchemas.d.ts.map +1 -1
- package/dist/src/schemas/generatedBuiltinSchemas.js +353 -0
- package/dist/src/schemas/generatedBuiltinSchemas.js.map +1 -1
- package/dist/tests/builtinSchemas.test.js +222 -0
- package/dist/tests/builtinSchemas.test.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generatedBuiltinSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/generatedBuiltinSchemas.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"generatedBuiltinSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/generatedBuiltinSchemas.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAk9O5E,CAAC"}
|
|
@@ -3685,6 +3685,226 @@ export const generatedBuiltinSchemas = {
|
|
|
3685
3685
|
"path"
|
|
3686
3686
|
]
|
|
3687
3687
|
},
|
|
3688
|
+
"huggingface-api": {
|
|
3689
|
+
"$comment": "Any Hugging Face API activity: the Hub API and repository file/git transfers on huggingface.co (or its hf.co alias), the Inference Providers router, the storage hosts that repository downloads and uploads are redirected to, and the dataset viewer. Does not cover, OAuth, the Hub MCP server, apps hosted on *.hf.space, or the Inference Endpoints management API.",
|
|
3690
|
+
"properties": {
|
|
3691
|
+
"domain": {
|
|
3692
|
+
"type": "string"
|
|
3693
|
+
},
|
|
3694
|
+
"path": {
|
|
3695
|
+
"type": "string"
|
|
3696
|
+
}
|
|
3697
|
+
},
|
|
3698
|
+
"required": [
|
|
3699
|
+
"domain",
|
|
3700
|
+
"path"
|
|
3701
|
+
],
|
|
3702
|
+
"anyOf": [
|
|
3703
|
+
{
|
|
3704
|
+
"$comment": "Hub REST API, e.g. /api/models, /api/datasets, /api/whoami-v2, /api/jobs.",
|
|
3705
|
+
"properties": {
|
|
3706
|
+
"domain": {
|
|
3707
|
+
"enum": [
|
|
3708
|
+
"huggingface.co",
|
|
3709
|
+
"hf.co"
|
|
3710
|
+
]
|
|
3711
|
+
},
|
|
3712
|
+
"path": {
|
|
3713
|
+
"type": "string",
|
|
3714
|
+
"pattern": "^/api(/|$)"
|
|
3715
|
+
}
|
|
3716
|
+
},
|
|
3717
|
+
"required": [
|
|
3718
|
+
"domain",
|
|
3719
|
+
"path"
|
|
3720
|
+
]
|
|
3721
|
+
},
|
|
3722
|
+
{
|
|
3723
|
+
"$comment": "Repository file contents, e.g. /openai-community/gpt2/resolve/main/config.json or /datasets/foo/bar/raw/main/README.md.",
|
|
3724
|
+
"properties": {
|
|
3725
|
+
"domain": {
|
|
3726
|
+
"enum": [
|
|
3727
|
+
"huggingface.co",
|
|
3728
|
+
"hf.co"
|
|
3729
|
+
]
|
|
3730
|
+
},
|
|
3731
|
+
"path": {
|
|
3732
|
+
"type": "string",
|
|
3733
|
+
"pattern": "^/(datasets/|spaces/)?[^/]+/([^/]+/)?(resolve|raw)/"
|
|
3734
|
+
}
|
|
3735
|
+
},
|
|
3736
|
+
"required": [
|
|
3737
|
+
"domain",
|
|
3738
|
+
"path"
|
|
3739
|
+
]
|
|
3740
|
+
},
|
|
3741
|
+
{
|
|
3742
|
+
"$comment": "Git-over-HTTP and Git LFS endpoints of Hub repositories.",
|
|
3743
|
+
"properties": {
|
|
3744
|
+
"domain": {
|
|
3745
|
+
"enum": [
|
|
3746
|
+
"huggingface.co",
|
|
3747
|
+
"hf.co"
|
|
3748
|
+
]
|
|
3749
|
+
},
|
|
3750
|
+
"path": {
|
|
3751
|
+
"type": "string",
|
|
3752
|
+
"pattern": "^/.+/(info/refs|git-upload-pack|git-receive-pack|info/lfs(/.*)?)$"
|
|
3753
|
+
}
|
|
3754
|
+
},
|
|
3755
|
+
"required": [
|
|
3756
|
+
"domain",
|
|
3757
|
+
"path"
|
|
3758
|
+
]
|
|
3759
|
+
},
|
|
3760
|
+
{
|
|
3761
|
+
"$comment": "The Inference Providers router and the storage hosts that repository transfers are redirected to (signed, opaque paths).",
|
|
3762
|
+
"properties": {
|
|
3763
|
+
"domain": {
|
|
3764
|
+
"type": "string",
|
|
3765
|
+
"pattern": "^(router\\.huggingface\\.co|datasets-server\\.huggingface\\.co|([a-z0-9-]+\\.)*(cdn|xethub)\\.hf\\.co|cdn-lfs(-[a-z0-9-]+)?\\.hf\\.co)$"
|
|
3766
|
+
}
|
|
3767
|
+
},
|
|
3768
|
+
"required": [
|
|
3769
|
+
"domain"
|
|
3770
|
+
]
|
|
3771
|
+
}
|
|
3772
|
+
]
|
|
3773
|
+
},
|
|
3774
|
+
"huggingface-read-all": {
|
|
3775
|
+
"$comment": "Read anything from the Hugging Face APIs: list and search models, datasets and Spaces, inspect repositories, download files, and browse the dataset viewer. Safe methods only, including the HEAD request huggingface_hub issues before a download.",
|
|
3776
|
+
"properties": {
|
|
3777
|
+
"method": {
|
|
3778
|
+
"enum": [
|
|
3779
|
+
"GET",
|
|
3780
|
+
"HEAD",
|
|
3781
|
+
"OPTIONS"
|
|
3782
|
+
]
|
|
3783
|
+
}
|
|
3784
|
+
},
|
|
3785
|
+
"required": [
|
|
3786
|
+
"method"
|
|
3787
|
+
]
|
|
3788
|
+
},
|
|
3789
|
+
"huggingface-write-all": {
|
|
3790
|
+
"$comment": "Change anything through the Hugging Face APIs: create repositories, upload files, push commits, edit settings, manage Spaces, and submit jobs. Covers every unsafe method except requests to the inference router.",
|
|
3791
|
+
"properties": {
|
|
3792
|
+
"method": {
|
|
3793
|
+
"enum": [
|
|
3794
|
+
"POST",
|
|
3795
|
+
"PUT",
|
|
3796
|
+
"PATCH",
|
|
3797
|
+
"DELETE"
|
|
3798
|
+
]
|
|
3799
|
+
},
|
|
3800
|
+
"domain": {
|
|
3801
|
+
"not": {
|
|
3802
|
+
"const": "router.huggingface.co"
|
|
3803
|
+
}
|
|
3804
|
+
}
|
|
3805
|
+
},
|
|
3806
|
+
"required": [
|
|
3807
|
+
"method",
|
|
3808
|
+
"domain"
|
|
3809
|
+
]
|
|
3810
|
+
},
|
|
3811
|
+
"huggingface-inference": {
|
|
3812
|
+
"$comment": "Run hosted inference through the Inference Providers router: a POST to router.huggingface.co. Consumes compute/quota.",
|
|
3813
|
+
"properties": {
|
|
3814
|
+
"domain": {
|
|
3815
|
+
"const": "router.huggingface.co"
|
|
3816
|
+
},
|
|
3817
|
+
"method": {
|
|
3818
|
+
"const": "POST"
|
|
3819
|
+
}
|
|
3820
|
+
},
|
|
3821
|
+
"required": [
|
|
3822
|
+
"domain",
|
|
3823
|
+
"method"
|
|
3824
|
+
]
|
|
3825
|
+
},
|
|
3826
|
+
"huggingface-download": {
|
|
3827
|
+
"$comment": "Download repository contents by any transport: resolve/raw file requests, the redirected CDN and Xet storage hosts, and a read-only Git clone or fetch (including the LFS batch call it needs). Does not grant access to the rest of the Hub API.",
|
|
3828
|
+
"anyOf": [
|
|
3829
|
+
{
|
|
3830
|
+
"properties": {
|
|
3831
|
+
"method": {
|
|
3832
|
+
"enum": [
|
|
3833
|
+
"GET",
|
|
3834
|
+
"HEAD"
|
|
3835
|
+
]
|
|
3836
|
+
},
|
|
3837
|
+
"path": {
|
|
3838
|
+
"type": "string",
|
|
3839
|
+
"pattern": "^(/api/resolve-cache/|/api/(models|datasets|spaces)/.+/xet-read-token/|/(datasets/|spaces/)?[^/]+/([^/]+/)?(resolve|raw)/)"
|
|
3840
|
+
}
|
|
3841
|
+
},
|
|
3842
|
+
"required": [
|
|
3843
|
+
"method",
|
|
3844
|
+
"path"
|
|
3845
|
+
]
|
|
3846
|
+
},
|
|
3847
|
+
{
|
|
3848
|
+
"properties": {
|
|
3849
|
+
"method": {
|
|
3850
|
+
"enum": [
|
|
3851
|
+
"GET",
|
|
3852
|
+
"HEAD"
|
|
3853
|
+
]
|
|
3854
|
+
},
|
|
3855
|
+
"domain": {
|
|
3856
|
+
"type": "string",
|
|
3857
|
+
"pattern": "^(([a-z0-9-]+\\.)*(cdn|xethub)\\.hf\\.co|cdn-lfs(-[a-z0-9-]+)?\\.hf\\.co)$"
|
|
3858
|
+
}
|
|
3859
|
+
},
|
|
3860
|
+
"required": [
|
|
3861
|
+
"method",
|
|
3862
|
+
"domain"
|
|
3863
|
+
]
|
|
3864
|
+
},
|
|
3865
|
+
{
|
|
3866
|
+
"properties": {
|
|
3867
|
+
"method": {
|
|
3868
|
+
"const": "GET"
|
|
3869
|
+
},
|
|
3870
|
+
"path": {
|
|
3871
|
+
"type": "string",
|
|
3872
|
+
"pattern": "^/.+/info/refs$"
|
|
3873
|
+
},
|
|
3874
|
+
"queryParams": {
|
|
3875
|
+
"properties": {
|
|
3876
|
+
"service": {
|
|
3877
|
+
"const": "git-upload-pack"
|
|
3878
|
+
}
|
|
3879
|
+
},
|
|
3880
|
+
"required": [
|
|
3881
|
+
"service"
|
|
3882
|
+
]
|
|
3883
|
+
}
|
|
3884
|
+
},
|
|
3885
|
+
"required": [
|
|
3886
|
+
"method",
|
|
3887
|
+
"path",
|
|
3888
|
+
"queryParams"
|
|
3889
|
+
]
|
|
3890
|
+
},
|
|
3891
|
+
{
|
|
3892
|
+
"properties": {
|
|
3893
|
+
"method": {
|
|
3894
|
+
"const": "POST"
|
|
3895
|
+
},
|
|
3896
|
+
"path": {
|
|
3897
|
+
"type": "string",
|
|
3898
|
+
"pattern": "^/.+/(git-upload-pack|info/lfs/objects/batch)$"
|
|
3899
|
+
}
|
|
3900
|
+
},
|
|
3901
|
+
"required": [
|
|
3902
|
+
"method",
|
|
3903
|
+
"path"
|
|
3904
|
+
]
|
|
3905
|
+
}
|
|
3906
|
+
]
|
|
3907
|
+
},
|
|
3688
3908
|
"linear-api": {
|
|
3689
3909
|
"$comment": "All requests to the Linear API.",
|
|
3690
3910
|
"properties": {
|
|
@@ -3973,6 +4193,80 @@ export const generatedBuiltinSchemas = {
|
|
|
3973
4193
|
"path"
|
|
3974
4194
|
]
|
|
3975
4195
|
},
|
|
4196
|
+
"ngrok-api": {
|
|
4197
|
+
"$comment": "All requests to the ngrok API.",
|
|
4198
|
+
"properties": {
|
|
4199
|
+
"domain": {
|
|
4200
|
+
"const": "api.ngrok.com"
|
|
4201
|
+
}
|
|
4202
|
+
},
|
|
4203
|
+
"required": [
|
|
4204
|
+
"domain"
|
|
4205
|
+
]
|
|
4206
|
+
},
|
|
4207
|
+
"ngrok-read-all": {
|
|
4208
|
+
"$comment": "Read anything from the ngrok API.",
|
|
4209
|
+
"properties": {
|
|
4210
|
+
"method": {
|
|
4211
|
+
"const": "GET"
|
|
4212
|
+
}
|
|
4213
|
+
},
|
|
4214
|
+
"required": [
|
|
4215
|
+
"method"
|
|
4216
|
+
]
|
|
4217
|
+
},
|
|
4218
|
+
"ngrok-write-all": {
|
|
4219
|
+
"$comment": "Create, update, delete, or run actions (e.g. restart/stop a tunnel session) through the ngrok API.",
|
|
4220
|
+
"properties": {
|
|
4221
|
+
"method": {
|
|
4222
|
+
"enum": [
|
|
4223
|
+
"POST",
|
|
4224
|
+
"PUT",
|
|
4225
|
+
"PATCH",
|
|
4226
|
+
"DELETE"
|
|
4227
|
+
]
|
|
4228
|
+
}
|
|
4229
|
+
},
|
|
4230
|
+
"required": [
|
|
4231
|
+
"method"
|
|
4232
|
+
]
|
|
4233
|
+
},
|
|
4234
|
+
"ngrok-read-credentials": {
|
|
4235
|
+
"$comment": "List and inspect tunnel credentials (the ngrok agent authtokens used to bring up tunnels).",
|
|
4236
|
+
"properties": {
|
|
4237
|
+
"method": {
|
|
4238
|
+
"const": "GET"
|
|
4239
|
+
},
|
|
4240
|
+
"path": {
|
|
4241
|
+
"type": "string",
|
|
4242
|
+
"pattern": "^/credentials(/.*)?$"
|
|
4243
|
+
}
|
|
4244
|
+
},
|
|
4245
|
+
"required": [
|
|
4246
|
+
"method",
|
|
4247
|
+
"path"
|
|
4248
|
+
]
|
|
4249
|
+
},
|
|
4250
|
+
"ngrok-write-credentials": {
|
|
4251
|
+
"$comment": "Mint, update, or delete tunnel credentials (create the ngrok agent authtokens used to bring up tunnels).",
|
|
4252
|
+
"properties": {
|
|
4253
|
+
"method": {
|
|
4254
|
+
"enum": [
|
|
4255
|
+
"POST",
|
|
4256
|
+
"PATCH",
|
|
4257
|
+
"DELETE"
|
|
4258
|
+
]
|
|
4259
|
+
},
|
|
4260
|
+
"path": {
|
|
4261
|
+
"type": "string",
|
|
4262
|
+
"pattern": "^/credentials(/.*)?$"
|
|
4263
|
+
}
|
|
4264
|
+
},
|
|
4265
|
+
"required": [
|
|
4266
|
+
"method",
|
|
4267
|
+
"path"
|
|
4268
|
+
]
|
|
4269
|
+
},
|
|
3976
4270
|
"notion-mcp-api": {
|
|
3977
4271
|
"$comment": "Any request to Notion's hosted MCP endpoint (mcp.notion.com).",
|
|
3978
4272
|
"properties": {
|
|
@@ -5112,6 +5406,65 @@ export const generatedBuiltinSchemas = {
|
|
|
5112
5406
|
"path"
|
|
5113
5407
|
]
|
|
5114
5408
|
},
|
|
5409
|
+
"openrouter-api": {
|
|
5410
|
+
"$comment": "All requests to the OpenRouter API.",
|
|
5411
|
+
"properties": {
|
|
5412
|
+
"domain": {
|
|
5413
|
+
"const": "openrouter.ai"
|
|
5414
|
+
},
|
|
5415
|
+
"path": {
|
|
5416
|
+
"type": "string",
|
|
5417
|
+
"pattern": "^/api/"
|
|
5418
|
+
}
|
|
5419
|
+
},
|
|
5420
|
+
"required": [
|
|
5421
|
+
"domain",
|
|
5422
|
+
"path"
|
|
5423
|
+
]
|
|
5424
|
+
},
|
|
5425
|
+
"openrouter-read-all": {
|
|
5426
|
+
"$comment": "Read anything from the OpenRouter API: list models and providers, and read key, credit, and generation metadata.",
|
|
5427
|
+
"properties": {
|
|
5428
|
+
"method": {
|
|
5429
|
+
"const": "GET"
|
|
5430
|
+
}
|
|
5431
|
+
},
|
|
5432
|
+
"required": [
|
|
5433
|
+
"method"
|
|
5434
|
+
]
|
|
5435
|
+
},
|
|
5436
|
+
"openrouter-write-all": {
|
|
5437
|
+
"$comment": "Create, update, or delete through the OpenRouter API: manage API keys, workspaces, guardrails, files, and account settings. Also covers running inference.",
|
|
5438
|
+
"properties": {
|
|
5439
|
+
"method": {
|
|
5440
|
+
"enum": [
|
|
5441
|
+
"POST",
|
|
5442
|
+
"PUT",
|
|
5443
|
+
"PATCH",
|
|
5444
|
+
"DELETE"
|
|
5445
|
+
]
|
|
5446
|
+
}
|
|
5447
|
+
},
|
|
5448
|
+
"required": [
|
|
5449
|
+
"method"
|
|
5450
|
+
]
|
|
5451
|
+
},
|
|
5452
|
+
"openrouter-inference": {
|
|
5453
|
+
"$comment": "Run models through the OpenRouter inference endpoints (POST chat/completions, messages, responses, embeddings, rerank, images, videos, and audio speech/transcriptions), which consume credits. Verified against the OpenRouter OpenAPI spec.",
|
|
5454
|
+
"properties": {
|
|
5455
|
+
"method": {
|
|
5456
|
+
"const": "POST"
|
|
5457
|
+
},
|
|
5458
|
+
"path": {
|
|
5459
|
+
"type": "string",
|
|
5460
|
+
"pattern": "^/api/v1/(chat/completions|messages|responses|embeddings|rerank|images|videos|audio/speech|audio/transcriptions)$"
|
|
5461
|
+
}
|
|
5462
|
+
},
|
|
5463
|
+
"required": [
|
|
5464
|
+
"method",
|
|
5465
|
+
"path"
|
|
5466
|
+
]
|
|
5467
|
+
},
|
|
5115
5468
|
"ramp-api": {
|
|
5116
5469
|
"$comment": "Any interaction with the Ramp API.",
|
|
5117
5470
|
"properties": {
|