@converge.ai/a13n 0.0.90 → 0.0.93

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/openapi.json CHANGED
@@ -1549,7 +1549,7 @@
1549
1549
  "type": "string"
1550
1550
  },
1551
1551
  "upload_id": {
1552
- "pattern": "^upl_[a-f0-9]{64}$",
1552
+ "pattern": "^upl_[a-f0-9]{32}$",
1553
1553
  "title": "Upload Id",
1554
1554
  "type": "string"
1555
1555
  }
@@ -1929,6 +1929,50 @@
1929
1929
  "title": "AuthenticationCase",
1930
1930
  "type": "object"
1931
1931
  },
1932
+ "AuthorizationCallback": {
1933
+ "additionalProperties": false,
1934
+ "properties": {
1935
+ "attempt_id": {
1936
+ "maxLength": 72,
1937
+ "minLength": 1,
1938
+ "title": "Attempt Id",
1939
+ "type": "string"
1940
+ },
1941
+ "callback_url": {
1942
+ "format": "password",
1943
+ "maxLength": 16384,
1944
+ "minLength": 1,
1945
+ "title": "Callback Url",
1946
+ "type": "string",
1947
+ "writeOnly": true
1948
+ }
1949
+ },
1950
+ "required": ["attempt_id", "callback_url"],
1951
+ "title": "AuthorizationCallback",
1952
+ "type": "object"
1953
+ },
1954
+ "AuthorizationDisconnect": {
1955
+ "properties": {
1956
+ "local_tokens_cleared": {
1957
+ "default": true,
1958
+ "title": "Local Tokens Cleared",
1959
+ "type": "boolean"
1960
+ },
1961
+ "revocation_confirmed": {
1962
+ "anyOf": [
1963
+ {
1964
+ "type": "boolean"
1965
+ },
1966
+ {
1967
+ "type": "null"
1968
+ }
1969
+ ],
1970
+ "title": "Revocation Confirmed"
1971
+ }
1972
+ },
1973
+ "title": "AuthorizationDisconnect",
1974
+ "type": "object"
1975
+ },
1932
1976
  "AuthorizationRequest": {
1933
1977
  "additionalProperties": false,
1934
1978
  "properties": {
@@ -1979,6 +2023,114 @@
1979
2023
  "title": "AuthorizationResult",
1980
2024
  "type": "object"
1981
2025
  },
2026
+ "AuthorizationStart": {
2027
+ "properties": {
2028
+ "attempt_id": {
2029
+ "title": "Attempt Id",
2030
+ "type": "string"
2031
+ },
2032
+ "authorization_url": {
2033
+ "title": "Authorization Url",
2034
+ "type": "string"
2035
+ },
2036
+ "expires_at": {
2037
+ "format": "date-time",
2038
+ "title": "Expires At",
2039
+ "type": "string"
2040
+ },
2041
+ "method": {
2042
+ "default": "manual_callback",
2043
+ "enum": ["manual_callback", "browser_callback"],
2044
+ "title": "Method",
2045
+ "type": "string"
2046
+ }
2047
+ },
2048
+ "required": ["attempt_id", "authorization_url", "expires_at"],
2049
+ "title": "AuthorizationStart",
2050
+ "type": "object"
2051
+ },
2052
+ "AuthorizationStatus": {
2053
+ "properties": {
2054
+ "client_id": {
2055
+ "anyOf": [
2056
+ {
2057
+ "type": "string"
2058
+ },
2059
+ {
2060
+ "type": "null"
2061
+ }
2062
+ ],
2063
+ "title": "Client Id"
2064
+ },
2065
+ "email": {
2066
+ "anyOf": [
2067
+ {
2068
+ "type": "string"
2069
+ },
2070
+ {
2071
+ "type": "null"
2072
+ }
2073
+ ],
2074
+ "title": "Email"
2075
+ },
2076
+ "expires_at": {
2077
+ "anyOf": [
2078
+ {
2079
+ "format": "date-time",
2080
+ "type": "string"
2081
+ },
2082
+ {
2083
+ "type": "null"
2084
+ }
2085
+ ],
2086
+ "title": "Expires At"
2087
+ },
2088
+ "message": {
2089
+ "anyOf": [
2090
+ {
2091
+ "type": "string"
2092
+ },
2093
+ {
2094
+ "type": "null"
2095
+ }
2096
+ ],
2097
+ "title": "Message"
2098
+ },
2099
+ "pending": {
2100
+ "default": false,
2101
+ "title": "Pending",
2102
+ "type": "boolean"
2103
+ },
2104
+ "provider_id": {
2105
+ "title": "Provider Id",
2106
+ "type": "string"
2107
+ },
2108
+ "state": {
2109
+ "enum": [
2110
+ "disconnected",
2111
+ "connected",
2112
+ "refreshing",
2113
+ "reauthentication_required"
2114
+ ],
2115
+ "title": "State",
2116
+ "type": "string"
2117
+ },
2118
+ "subject": {
2119
+ "anyOf": [
2120
+ {
2121
+ "type": "string"
2122
+ },
2123
+ {
2124
+ "type": "null"
2125
+ }
2126
+ ],
2127
+ "title": "Subject"
2128
+ }
2129
+ },
2130
+ "required": ["provider_id", "state"],
2131
+ "title": "AuthorizationStatus",
2132
+ "type": "object"
2133
+ },
1982
2134
  "BearerCredential": {
1983
2135
  "additionalProperties": false,
1984
2136
  "properties": {
@@ -2005,7 +2157,7 @@
2005
2157
  "password": {
2006
2158
  "format": "password",
2007
2159
  "maxLength": 1024,
2008
- "minLength": 12,
2160
+ "minLength": 8,
2009
2161
  "title": "Password",
2010
2162
  "type": "string",
2011
2163
  "writeOnly": true
@@ -2142,6 +2294,21 @@
2142
2294
  "enum": ["not_dispatched", "known", "unknown"],
2143
2295
  "type": "string"
2144
2296
  },
2297
+ "ChatGPTModel": {
2298
+ "properties": {
2299
+ "display_name": {
2300
+ "title": "Display Name",
2301
+ "type": "string"
2302
+ },
2303
+ "slug": {
2304
+ "title": "Slug",
2305
+ "type": "string"
2306
+ }
2307
+ },
2308
+ "required": ["slug", "display_name"],
2309
+ "title": "ChatGPTModel",
2310
+ "type": "object"
2311
+ },
2145
2312
  "ChildEnvironmentPolicy": {
2146
2313
  "additionalProperties": false,
2147
2314
  "description": "What a child run mounts: no environment, the parent's, or a new one from `template_id`.",
@@ -3998,6 +4165,17 @@
3998
4165
  ],
3999
4166
  "title": "Context Window Tokens"
4000
4167
  },
4168
+ "image_input": {
4169
+ "anyOf": [
4170
+ {
4171
+ "$ref": "#/components/schemas/ImageInputPolicy"
4172
+ },
4173
+ {
4174
+ "type": "null"
4175
+ }
4176
+ ],
4177
+ "description": "Image preparation policy; omitted uses native defaults, null disables automatic preparation."
4178
+ },
4001
4179
  "proactive_context_management_threshold": {
4002
4180
  "anyOf": [
4003
4181
  {
@@ -4011,6 +4189,12 @@
4011
4189
  ],
4012
4190
  "default": 0.65,
4013
4191
  "title": "Proactive Context Management Threshold"
4192
+ },
4193
+ "url_input": {
4194
+ "$ref": "#/components/schemas/UrlInputSupport-Input"
4195
+ },
4196
+ "video_input": {
4197
+ "$ref": "#/components/schemas/VideoInputPolicy"
4014
4198
  }
4015
4199
  },
4016
4200
  "title": "HarnessModelCharacteristics",
@@ -4046,6 +4230,17 @@
4046
4230
  ],
4047
4231
  "title": "Context Window Tokens"
4048
4232
  },
4233
+ "image_input": {
4234
+ "anyOf": [
4235
+ {
4236
+ "$ref": "#/components/schemas/ImageInputPolicy"
4237
+ },
4238
+ {
4239
+ "type": "null"
4240
+ }
4241
+ ],
4242
+ "description": "Image preparation policy; omitted uses native defaults, null disables automatic preparation."
4243
+ },
4049
4244
  "proactive_context_management_threshold": {
4050
4245
  "anyOf": [
4051
4246
  {
@@ -4059,6 +4254,12 @@
4059
4254
  ],
4060
4255
  "default": 0.65,
4061
4256
  "title": "Proactive Context Management Threshold"
4257
+ },
4258
+ "url_input": {
4259
+ "$ref": "#/components/schemas/UrlInputSupport-Output"
4260
+ },
4261
+ "video_input": {
4262
+ "$ref": "#/components/schemas/VideoInputPolicy"
4062
4263
  }
4063
4264
  },
4064
4265
  "title": "HarnessModelCharacteristics",
@@ -4094,6 +4295,57 @@
4094
4295
  "title": "HistoryPurge",
4095
4296
  "type": "object"
4096
4297
  },
4298
+ "ImageInputPolicy": {
4299
+ "additionalProperties": false,
4300
+ "description": "Preparation limits for one model's image input, not native ModelSettings.",
4301
+ "properties": {
4302
+ "image_split_max_height": {
4303
+ "default": 4096,
4304
+ "exclusiveMinimum": 0.0,
4305
+ "title": "Image Split Max Height",
4306
+ "type": "integer"
4307
+ },
4308
+ "image_split_overlap": {
4309
+ "default": 50,
4310
+ "minimum": 0.0,
4311
+ "title": "Image Split Overlap",
4312
+ "type": "integer"
4313
+ },
4314
+ "max_image_bytes": {
4315
+ "default": 5242880,
4316
+ "description": "Maximum base64-encoded bytes per image; zero disables this byte limit.",
4317
+ "minimum": 0.0,
4318
+ "title": "Max Image Bytes",
4319
+ "type": "integer"
4320
+ },
4321
+ "max_image_dimension": {
4322
+ "default": 8000,
4323
+ "description": "Maximum image axis; zero disables this limit.",
4324
+ "minimum": 0.0,
4325
+ "title": "Max Image Dimension",
4326
+ "type": "integer"
4327
+ },
4328
+ "max_images": {
4329
+ "default": 20,
4330
+ "description": "Keep the newest images; zero removes all image input.",
4331
+ "minimum": 0.0,
4332
+ "title": "Max Images",
4333
+ "type": "integer"
4334
+ },
4335
+ "split_large_images": {
4336
+ "default": true,
4337
+ "title": "Split Large Images",
4338
+ "type": "boolean"
4339
+ },
4340
+ "support_gif": {
4341
+ "default": true,
4342
+ "title": "Support Gif",
4343
+ "type": "boolean"
4344
+ }
4345
+ },
4346
+ "title": "ImageInputPolicy",
4347
+ "type": "object"
4348
+ },
4097
4349
  "InboxOrder": {
4098
4350
  "additionalProperties": false,
4099
4351
  "properties": {
@@ -6189,6 +6441,13 @@
6189
6441
  "title": "Model Name",
6190
6442
  "type": "string"
6191
6443
  },
6444
+ "settings": {
6445
+ "additionalProperties": {
6446
+ "$ref": "#/components/schemas/JsonValue"
6447
+ },
6448
+ "title": "Settings",
6449
+ "type": "object"
6450
+ },
6192
6451
  "temperature": {
6193
6452
  "anyOf": [
6194
6453
  {
@@ -6270,6 +6529,13 @@
6270
6529
  "title": "Model Name",
6271
6530
  "type": "string"
6272
6531
  },
6532
+ "settings": {
6533
+ "additionalProperties": {
6534
+ "$ref": "#/components/schemas/JsonValue"
6535
+ },
6536
+ "title": "Settings",
6537
+ "type": "object"
6538
+ },
6273
6539
  "temperature": {
6274
6540
  "anyOf": [
6275
6541
  {
@@ -7352,7 +7618,7 @@
7352
7618
  "password": {
7353
7619
  "format": "password",
7354
7620
  "maxLength": 1024,
7355
- "minLength": 12,
7621
+ "minLength": 8,
7356
7622
  "title": "Password",
7357
7623
  "type": "string",
7358
7624
  "writeOnly": true
@@ -7381,7 +7647,7 @@
7381
7647
  "password": {
7382
7648
  "format": "password",
7383
7649
  "maxLength": 1024,
7384
- "minLength": 12,
7650
+ "minLength": 8,
7385
7651
  "title": "Password",
7386
7652
  "type": "string",
7387
7653
  "writeOnly": true
@@ -7916,6 +8182,18 @@
7916
8182
  "title": "Provider",
7917
8183
  "type": "object"
7918
8184
  },
8185
+ "ProviderAuthorizationRequest": {
8186
+ "additionalProperties": false,
8187
+ "properties": {
8188
+ "new_registration": {
8189
+ "default": false,
8190
+ "title": "New Registration",
8191
+ "type": "boolean"
8192
+ }
8193
+ },
8194
+ "title": "ProviderAuthorizationRequest",
8195
+ "type": "object"
8196
+ },
7919
8197
  "ProviderCreate": {
7920
8198
  "additionalProperties": false,
7921
8199
  "properties": {
@@ -8129,6 +8407,17 @@
8129
8407
  ],
8130
8408
  "title": "Model Apis"
8131
8409
  },
8410
+ "oauth_scheme": {
8411
+ "anyOf": [
8412
+ {
8413
+ "type": "string"
8414
+ },
8415
+ {
8416
+ "type": "null"
8417
+ }
8418
+ ],
8419
+ "title": "Oauth Scheme"
8420
+ },
8132
8421
  "operations": {
8133
8422
  "anyOf": [
8134
8423
  {
@@ -8573,6 +8862,67 @@
8573
8862
  "title": "RevokedConnection",
8574
8863
  "type": "object"
8575
8864
  },
8865
+ "RunConfiguration-Input": {
8866
+ "additionalProperties": false,
8867
+ "description": "An accepted snapshot, independent of Agent definitions and Capability configuration.\n\nConsumers explicitly opt into namespaced extensions and own their validation.\nExtension lookups return detached values, not mutable shared state.",
8868
+ "properties": {
8869
+ "allowed_hosts": {
8870
+ "anyOf": [
8871
+ {
8872
+ "items": {
8873
+ "type": "string"
8874
+ },
8875
+ "type": "array",
8876
+ "uniqueItems": true
8877
+ },
8878
+ {
8879
+ "type": "null"
8880
+ }
8881
+ ],
8882
+ "description": "Allowed normalized hostnames/IP literals or regex:<Python pattern> rules matched against the entire normalized hostname. Null is unrestricted; an empty array denies all.",
8883
+ "title": "Allowed Hosts"
8884
+ },
8885
+ "extensions": {
8886
+ "additionalProperties": {
8887
+ "$ref": "#/components/schemas/JsonValue"
8888
+ },
8889
+ "title": "Extensions",
8890
+ "type": "object"
8891
+ }
8892
+ },
8893
+ "title": "RunConfiguration",
8894
+ "type": "object"
8895
+ },
8896
+ "RunConfiguration-Output": {
8897
+ "additionalProperties": false,
8898
+ "description": "An accepted snapshot, independent of Agent definitions and Capability configuration.\n\nConsumers explicitly opt into namespaced extensions and own their validation.\nExtension lookups return detached values, not mutable shared state.",
8899
+ "properties": {
8900
+ "allowed_hosts": {
8901
+ "anyOf": [
8902
+ {
8903
+ "items": {
8904
+ "type": "string"
8905
+ },
8906
+ "type": "array"
8907
+ },
8908
+ {
8909
+ "type": "null"
8910
+ }
8911
+ ],
8912
+ "description": "Allowed normalized hostnames/IP literals or regex:<Python pattern> rules matched against the entire normalized hostname. Null is unrestricted; an empty array denies all.",
8913
+ "title": "Allowed Hosts"
8914
+ },
8915
+ "extensions": {
8916
+ "additionalProperties": {
8917
+ "$ref": "#/components/schemas/JsonValue"
8918
+ },
8919
+ "title": "Extensions",
8920
+ "type": "object"
8921
+ }
8922
+ },
8923
+ "title": "RunConfiguration",
8924
+ "type": "object"
8925
+ },
8576
8926
  "RunItems": {
8577
8927
  "description": "A run's committed display with the run it describes. Live output continues after `position`.",
8578
8928
  "properties": {
@@ -8602,12 +8952,23 @@
8602
8952
  ],
8603
8953
  "title": "Position"
8604
8954
  },
8605
- "run": {
8606
- "$ref": "#/components/schemas/RunView"
8607
- }
8608
- },
8609
- "required": ["run", "items", "position", "dropped", "complete"],
8610
- "title": "RunItems",
8955
+ "resume_after": {
8956
+ "anyOf": [
8957
+ {
8958
+ "type": "string"
8959
+ },
8960
+ {
8961
+ "type": "null"
8962
+ }
8963
+ ],
8964
+ "title": "Resume After"
8965
+ },
8966
+ "run": {
8967
+ "$ref": "#/components/schemas/RunView"
8968
+ }
8969
+ },
8970
+ "required": ["run", "items", "position", "dropped", "complete"],
8971
+ "title": "RunItems",
8611
8972
  "type": "object"
8612
8973
  },
8613
8974
  "RunLabels": {
@@ -8657,6 +9018,16 @@
8657
9018
  "additionalProperties": false,
8658
9019
  "description": "What a message may choose for the run it starts. A steer joins a run with the defaults or equal options.",
8659
9020
  "properties": {
9021
+ "configuration": {
9022
+ "anyOf": [
9023
+ {
9024
+ "$ref": "#/components/schemas/RunConfiguration-Input"
9025
+ },
9026
+ {
9027
+ "type": "null"
9028
+ }
9029
+ ]
9030
+ },
8660
9031
  "labels": {
8661
9032
  "additionalProperties": {
8662
9033
  "maxLength": 128,
@@ -8698,6 +9069,16 @@
8698
9069
  "additionalProperties": false,
8699
9070
  "description": "What a message may choose for the run it starts. A steer joins a run with the defaults or equal options.",
8700
9071
  "properties": {
9072
+ "configuration": {
9073
+ "anyOf": [
9074
+ {
9075
+ "$ref": "#/components/schemas/RunConfiguration-Output"
9076
+ },
9077
+ {
9078
+ "type": "null"
9079
+ }
9080
+ ]
9081
+ },
8701
9082
  "labels": {
8702
9083
  "additionalProperties": {
8703
9084
  "maxLength": 128,
@@ -11802,7 +12183,7 @@
11802
12183
  "type": "string"
11803
12184
  },
11804
12185
  "upload_id": {
11805
- "pattern": "^upl_[a-f0-9]{64}$",
12186
+ "pattern": "^upl_[a-f0-9]{32}$",
11806
12187
  "title": "Upload Id",
11807
12188
  "type": "string"
11808
12189
  }
@@ -11811,6 +12192,37 @@
11811
12192
  "title": "UploadSource",
11812
12193
  "type": "object"
11813
12194
  },
12195
+ "UrlInputSupport-Input": {
12196
+ "additionalProperties": false,
12197
+ "description": "URL subtypes consumed natively by the selected transport.",
12198
+ "properties": {
12199
+ "video": {
12200
+ "items": {
12201
+ "$ref": "#/components/schemas/VideoUrlType"
12202
+ },
12203
+ "title": "Video",
12204
+ "type": "array",
12205
+ "uniqueItems": true
12206
+ }
12207
+ },
12208
+ "title": "UrlInputSupport",
12209
+ "type": "object"
12210
+ },
12211
+ "UrlInputSupport-Output": {
12212
+ "additionalProperties": false,
12213
+ "description": "URL subtypes consumed natively by the selected transport.",
12214
+ "properties": {
12215
+ "video": {
12216
+ "items": {
12217
+ "type": "string"
12218
+ },
12219
+ "title": "Video",
12220
+ "type": "array"
12221
+ }
12222
+ },
12223
+ "title": "UrlInputSupport",
12224
+ "type": "object"
12225
+ },
11814
12226
  "UrlPart": {
11815
12227
  "additionalProperties": false,
11816
12228
  "properties": {
@@ -12099,6 +12511,26 @@
12099
12511
  "enum": ["read", "run", "write", "admin"],
12100
12512
  "type": "string"
12101
12513
  },
12514
+ "VideoInputPolicy": {
12515
+ "additionalProperties": false,
12516
+ "description": "Base64-after byte budget for both one video and all inline videos in a request.",
12517
+ "properties": {
12518
+ "max_video_bytes": {
12519
+ "default": 10485760,
12520
+ "description": "Maximum Base64-encoded bytes per video and in aggregate per model request.",
12521
+ "exclusiveMinimum": 0.0,
12522
+ "title": "Max Video Bytes",
12523
+ "type": "integer"
12524
+ }
12525
+ },
12526
+ "title": "VideoInputPolicy",
12527
+ "type": "object"
12528
+ },
12529
+ "VideoUrlType": {
12530
+ "enum": ["youtube"],
12531
+ "title": "VideoUrlType",
12532
+ "type": "string"
12533
+ },
12102
12534
  "WaitReason": {
12103
12535
  "enum": ["approval", "call", "multiple"],
12104
12536
  "type": "string"
@@ -15167,7 +15599,7 @@
15167
15599
  "loginSession": []
15168
15600
  }
15169
15601
  ],
15170
- "summary": "List Providers",
15602
+ "summary": "List connector providers",
15171
15603
  "tags": ["providers"]
15172
15604
  },
15173
15605
  "post": {
@@ -15231,7 +15663,7 @@
15231
15663
  "loginSession": []
15232
15664
  }
15233
15665
  ],
15234
- "summary": "Create Provider",
15666
+ "summary": "Create connector provider",
15235
15667
  "tags": ["providers"]
15236
15668
  }
15237
15669
  },
@@ -15295,7 +15727,7 @@
15295
15727
  "loginSession": []
15296
15728
  }
15297
15729
  ],
15298
- "summary": "Get Provider",
15730
+ "summary": "Get connector provider",
15299
15731
  "tags": ["providers"]
15300
15732
  },
15301
15733
  "patch": {
@@ -15388,7 +15820,7 @@
15388
15820
  "loginSession": []
15389
15821
  }
15390
15822
  ],
15391
- "summary": "Update Provider",
15823
+ "summary": "Update connector provider",
15392
15824
  "tags": ["providers"]
15393
15825
  }
15394
15826
  },
@@ -15718,7 +16150,7 @@
15718
16150
  "loginSession": []
15719
16151
  }
15720
16152
  ],
15721
- "summary": "Test Provider",
16153
+ "summary": "Test connector provider",
15722
16154
  "tags": ["providers"]
15723
16155
  }
15724
16156
  },
@@ -15801,7 +16233,7 @@
15801
16233
  "loginSession": []
15802
16234
  }
15803
16235
  ],
15804
- "summary": "List Providers",
16236
+ "summary": "List environment providers",
15805
16237
  "tags": ["providers"]
15806
16238
  },
15807
16239
  "post": {
@@ -15865,7 +16297,7 @@
15865
16297
  "loginSession": []
15866
16298
  }
15867
16299
  ],
15868
- "summary": "Create Provider",
16300
+ "summary": "Create environment provider",
15869
16301
  "tags": ["providers"]
15870
16302
  }
15871
16303
  },
@@ -15929,7 +16361,7 @@
15929
16361
  "loginSession": []
15930
16362
  }
15931
16363
  ],
15932
- "summary": "Get Provider",
16364
+ "summary": "Get environment provider",
15933
16365
  "tags": ["providers"]
15934
16366
  },
15935
16367
  "patch": {
@@ -16022,7 +16454,7 @@
16022
16454
  "loginSession": []
16023
16455
  }
16024
16456
  ],
16025
- "summary": "Update Provider",
16457
+ "summary": "Update environment provider",
16026
16458
  "tags": ["providers"]
16027
16459
  }
16028
16460
  },
@@ -16087,7 +16519,7 @@
16087
16519
  "loginSession": []
16088
16520
  }
16089
16521
  ],
16090
- "summary": "Test Provider",
16522
+ "summary": "Test environment provider",
16091
16523
  "tags": ["providers"]
16092
16524
  }
16093
16525
  },
@@ -18808,46 +19240,415 @@
18808
19240
  },
18809
19241
  "/api/v1/memories/{memory_id}/revisions/{seq}/restore": {
18810
19242
  "post": {
18811
- "description": "Set the path back to the content the change replaced; `If-Match` names the file there, if any.",
18812
- "operationId": "restore_revision_api_v1_memories__memory_id__revisions__seq__restore_post",
19243
+ "description": "Set the path back to the content the change replaced; `If-Match` names the file there, if any.",
19244
+ "operationId": "restore_revision_api_v1_memories__memory_id__revisions__seq__restore_post",
19245
+ "parameters": [
19246
+ {
19247
+ "in": "path",
19248
+ "name": "memory_id",
19249
+ "required": true,
19250
+ "schema": {
19251
+ "title": "Memory Id",
19252
+ "type": "string"
19253
+ }
19254
+ },
19255
+ {
19256
+ "in": "path",
19257
+ "name": "seq",
19258
+ "required": true,
19259
+ "schema": {
19260
+ "title": "Seq",
19261
+ "type": "integer"
19262
+ }
19263
+ },
19264
+ {
19265
+ "description": "The resource's ETag: `\"{id}:{version}\"` of its current view, `\"{key}:{version}\"` for a model",
19266
+ "in": "header",
19267
+ "name": "If-Match",
19268
+ "required": false,
19269
+ "schema": {
19270
+ "anyOf": [
19271
+ {
19272
+ "maxLength": 512,
19273
+ "type": "string"
19274
+ },
19275
+ {
19276
+ "type": "null"
19277
+ }
19278
+ ],
19279
+ "description": "The resource's ETag: `\"{id}:{version}\"` of its current view, `\"{key}:{version}\"` for a model",
19280
+ "title": "If-Match"
19281
+ }
19282
+ },
19283
+ {
19284
+ "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19285
+ "in": "header",
19286
+ "name": "X-Workspace-ID",
19287
+ "required": false,
19288
+ "schema": {
19289
+ "anyOf": [
19290
+ {
19291
+ "maxLength": 41,
19292
+ "pattern": "^[a-z][a-z0-9]{1,7}_[0-9a-f]{20,32}$",
19293
+ "type": "string"
19294
+ },
19295
+ {
19296
+ "type": "null"
19297
+ }
19298
+ ],
19299
+ "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19300
+ "title": "X-Workspace-Id"
19301
+ }
19302
+ }
19303
+ ],
19304
+ "responses": {
19305
+ "200": {
19306
+ "content": {
19307
+ "application/json": {
19308
+ "schema": {
19309
+ "$ref": "#/components/schemas/MemoryFileState"
19310
+ }
19311
+ }
19312
+ },
19313
+ "description": "Successful Response"
19314
+ },
19315
+ "400": {
19316
+ "$ref": "#/components/responses/Error"
19317
+ },
19318
+ "default": {
19319
+ "$ref": "#/components/responses/Error"
19320
+ }
19321
+ },
19322
+ "security": [
19323
+ {
19324
+ "apiKey": []
19325
+ },
19326
+ {
19327
+ "csrf": [],
19328
+ "loginSession": []
19329
+ }
19330
+ ],
19331
+ "summary": "Restore Revision",
19332
+ "tags": ["memories"]
19333
+ }
19334
+ },
19335
+ "/api/v1/memory-providers": {
19336
+ "get": {
19337
+ "operationId": "list_providers_api_v1_memory_providers_get",
19338
+ "parameters": [
19339
+ {
19340
+ "in": "query",
19341
+ "name": "limit",
19342
+ "required": false,
19343
+ "schema": {
19344
+ "default": 50,
19345
+ "maximum": 100,
19346
+ "minimum": 1,
19347
+ "title": "Limit",
19348
+ "type": "integer"
19349
+ }
19350
+ },
19351
+ {
19352
+ "in": "query",
19353
+ "name": "cursor",
19354
+ "required": false,
19355
+ "schema": {
19356
+ "anyOf": [
19357
+ {
19358
+ "type": "string"
19359
+ },
19360
+ {
19361
+ "type": "null"
19362
+ }
19363
+ ],
19364
+ "title": "Cursor"
19365
+ }
19366
+ },
19367
+ {
19368
+ "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19369
+ "in": "header",
19370
+ "name": "X-Workspace-ID",
19371
+ "required": false,
19372
+ "schema": {
19373
+ "anyOf": [
19374
+ {
19375
+ "maxLength": 41,
19376
+ "pattern": "^[a-z][a-z0-9]{1,7}_[0-9a-f]{20,32}$",
19377
+ "type": "string"
19378
+ },
19379
+ {
19380
+ "type": "null"
19381
+ }
19382
+ ],
19383
+ "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19384
+ "title": "X-Workspace-Id"
19385
+ }
19386
+ }
19387
+ ],
19388
+ "responses": {
19389
+ "200": {
19390
+ "content": {
19391
+ "application/json": {
19392
+ "schema": {
19393
+ "$ref": "#/components/schemas/ProviderPage"
19394
+ }
19395
+ }
19396
+ },
19397
+ "description": "Successful Response"
19398
+ },
19399
+ "400": {
19400
+ "$ref": "#/components/responses/Error"
19401
+ },
19402
+ "default": {
19403
+ "$ref": "#/components/responses/Error"
19404
+ }
19405
+ },
19406
+ "security": [
19407
+ {
19408
+ "apiKey": []
19409
+ },
19410
+ {
19411
+ "loginSession": []
19412
+ }
19413
+ ],
19414
+ "summary": "List memory providers",
19415
+ "tags": ["providers"]
19416
+ },
19417
+ "post": {
19418
+ "operationId": "create_provider_api_v1_memory_providers_post",
19419
+ "parameters": [
19420
+ {
19421
+ "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19422
+ "in": "header",
19423
+ "name": "X-Workspace-ID",
19424
+ "required": false,
19425
+ "schema": {
19426
+ "anyOf": [
19427
+ {
19428
+ "maxLength": 41,
19429
+ "pattern": "^[a-z][a-z0-9]{1,7}_[0-9a-f]{20,32}$",
19430
+ "type": "string"
19431
+ },
19432
+ {
19433
+ "type": "null"
19434
+ }
19435
+ ],
19436
+ "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19437
+ "title": "X-Workspace-Id"
19438
+ }
19439
+ }
19440
+ ],
19441
+ "requestBody": {
19442
+ "content": {
19443
+ "application/json": {
19444
+ "schema": {
19445
+ "$ref": "#/components/schemas/ProviderCreate"
19446
+ }
19447
+ }
19448
+ },
19449
+ "required": true
19450
+ },
19451
+ "responses": {
19452
+ "201": {
19453
+ "content": {
19454
+ "application/json": {
19455
+ "schema": {
19456
+ "$ref": "#/components/schemas/Provider"
19457
+ }
19458
+ }
19459
+ },
19460
+ "description": "Successful Response"
19461
+ },
19462
+ "400": {
19463
+ "$ref": "#/components/responses/Error"
19464
+ },
19465
+ "default": {
19466
+ "$ref": "#/components/responses/Error"
19467
+ }
19468
+ },
19469
+ "security": [
19470
+ {
19471
+ "apiKey": []
19472
+ },
19473
+ {
19474
+ "csrf": [],
19475
+ "loginSession": []
19476
+ }
19477
+ ],
19478
+ "summary": "Create memory provider",
19479
+ "tags": ["providers"]
19480
+ }
19481
+ },
19482
+ "/api/v1/memory-providers/{provider_id}": {
19483
+ "get": {
19484
+ "operationId": "get_provider_api_v1_memory_providers__provider_id__get",
19485
+ "parameters": [
19486
+ {
19487
+ "in": "path",
19488
+ "name": "provider_id",
19489
+ "required": true,
19490
+ "schema": {
19491
+ "title": "Provider Id",
19492
+ "type": "string"
19493
+ }
19494
+ },
19495
+ {
19496
+ "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19497
+ "in": "header",
19498
+ "name": "X-Workspace-ID",
19499
+ "required": false,
19500
+ "schema": {
19501
+ "anyOf": [
19502
+ {
19503
+ "maxLength": 41,
19504
+ "pattern": "^[a-z][a-z0-9]{1,7}_[0-9a-f]{20,32}$",
19505
+ "type": "string"
19506
+ },
19507
+ {
19508
+ "type": "null"
19509
+ }
19510
+ ],
19511
+ "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19512
+ "title": "X-Workspace-Id"
19513
+ }
19514
+ }
19515
+ ],
19516
+ "responses": {
19517
+ "200": {
19518
+ "content": {
19519
+ "application/json": {
19520
+ "schema": {
19521
+ "$ref": "#/components/schemas/Provider"
19522
+ }
19523
+ }
19524
+ },
19525
+ "description": "Successful Response"
19526
+ },
19527
+ "400": {
19528
+ "$ref": "#/components/responses/Error"
19529
+ },
19530
+ "default": {
19531
+ "$ref": "#/components/responses/Error"
19532
+ }
19533
+ },
19534
+ "security": [
19535
+ {
19536
+ "apiKey": []
19537
+ },
19538
+ {
19539
+ "loginSession": []
19540
+ }
19541
+ ],
19542
+ "summary": "Get memory provider",
19543
+ "tags": ["providers"]
19544
+ },
19545
+ "patch": {
19546
+ "description": "A `config` change must also replace or remove a stored credential: it never follows a new endpoint.",
19547
+ "operationId": "update_provider_api_v1_memory_providers__provider_id__patch",
19548
+ "parameters": [
19549
+ {
19550
+ "in": "path",
19551
+ "name": "provider_id",
19552
+ "required": true,
19553
+ "schema": {
19554
+ "title": "Provider Id",
19555
+ "type": "string"
19556
+ }
19557
+ },
19558
+ {
19559
+ "description": "The resource's ETag: `\"{id}:{version}\"` of its current view, `\"{key}:{version}\"` for a model",
19560
+ "in": "header",
19561
+ "name": "If-Match",
19562
+ "required": false,
19563
+ "schema": {
19564
+ "anyOf": [
19565
+ {
19566
+ "maxLength": 512,
19567
+ "type": "string"
19568
+ },
19569
+ {
19570
+ "type": "null"
19571
+ }
19572
+ ],
19573
+ "description": "The resource's ETag: `\"{id}:{version}\"` of its current view, `\"{key}:{version}\"` for a model",
19574
+ "title": "If-Match"
19575
+ }
19576
+ },
19577
+ {
19578
+ "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19579
+ "in": "header",
19580
+ "name": "X-Workspace-ID",
19581
+ "required": false,
19582
+ "schema": {
19583
+ "anyOf": [
19584
+ {
19585
+ "maxLength": 41,
19586
+ "pattern": "^[a-z][a-z0-9]{1,7}_[0-9a-f]{20,32}$",
19587
+ "type": "string"
19588
+ },
19589
+ {
19590
+ "type": "null"
19591
+ }
19592
+ ],
19593
+ "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19594
+ "title": "X-Workspace-Id"
19595
+ }
19596
+ }
19597
+ ],
19598
+ "requestBody": {
19599
+ "content": {
19600
+ "application/json": {
19601
+ "schema": {
19602
+ "$ref": "#/components/schemas/ProviderUpdate"
19603
+ }
19604
+ }
19605
+ },
19606
+ "required": true
19607
+ },
19608
+ "responses": {
19609
+ "200": {
19610
+ "content": {
19611
+ "application/json": {
19612
+ "schema": {
19613
+ "$ref": "#/components/schemas/Provider"
19614
+ }
19615
+ }
19616
+ },
19617
+ "description": "Successful Response"
19618
+ },
19619
+ "400": {
19620
+ "$ref": "#/components/responses/Error"
19621
+ },
19622
+ "default": {
19623
+ "$ref": "#/components/responses/Error"
19624
+ }
19625
+ },
19626
+ "security": [
19627
+ {
19628
+ "apiKey": []
19629
+ },
19630
+ {
19631
+ "csrf": [],
19632
+ "loginSession": []
19633
+ }
19634
+ ],
19635
+ "summary": "Update memory provider",
19636
+ "tags": ["providers"]
19637
+ }
19638
+ },
19639
+ "/api/v1/memory-providers/{provider_id}/test": {
19640
+ "post": {
19641
+ "operationId": "test_provider_api_v1_memory_providers__provider_id__test_post",
18813
19642
  "parameters": [
18814
19643
  {
18815
19644
  "in": "path",
18816
- "name": "memory_id",
19645
+ "name": "provider_id",
18817
19646
  "required": true,
18818
19647
  "schema": {
18819
- "title": "Memory Id",
19648
+ "title": "Provider Id",
18820
19649
  "type": "string"
18821
19650
  }
18822
19651
  },
18823
- {
18824
- "in": "path",
18825
- "name": "seq",
18826
- "required": true,
18827
- "schema": {
18828
- "title": "Seq",
18829
- "type": "integer"
18830
- }
18831
- },
18832
- {
18833
- "description": "The resource's ETag: `\"{id}:{version}\"` of its current view, `\"{key}:{version}\"` for a model",
18834
- "in": "header",
18835
- "name": "If-Match",
18836
- "required": false,
18837
- "schema": {
18838
- "anyOf": [
18839
- {
18840
- "maxLength": 512,
18841
- "type": "string"
18842
- },
18843
- {
18844
- "type": "null"
18845
- }
18846
- ],
18847
- "description": "The resource's ETag: `\"{id}:{version}\"` of its current view, `\"{key}:{version}\"` for a model",
18848
- "title": "If-Match"
18849
- }
18850
- },
18851
19652
  {
18852
19653
  "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
18853
19654
  "in": "header",
@@ -18874,7 +19675,7 @@
18874
19675
  "content": {
18875
19676
  "application/json": {
18876
19677
  "schema": {
18877
- "$ref": "#/components/schemas/MemoryFileState"
19678
+ "$ref": "#/components/schemas/ProviderTest"
18878
19679
  }
18879
19680
  }
18880
19681
  },
@@ -18896,13 +19697,44 @@
18896
19697
  "loginSession": []
18897
19698
  }
18898
19699
  ],
18899
- "summary": "Restore Revision",
18900
- "tags": ["memories"]
19700
+ "summary": "Test memory provider",
19701
+ "tags": ["providers"]
18901
19702
  }
18902
19703
  },
18903
- "/api/v1/memory-providers": {
19704
+ "/api/v1/model-catalog": {
18904
19705
  "get": {
18905
- "operationId": "list_providers_api_v1_memory_providers_get",
19706
+ "description": "The models.dev models the registered model provider types serve, for any signed-in principal.",
19707
+ "operationId": "get_model_catalog_api_v1_model_catalog_get",
19708
+ "responses": {
19709
+ "200": {
19710
+ "content": {
19711
+ "application/json": {
19712
+ "schema": {
19713
+ "$ref": "#/components/schemas/ModelCatalog"
19714
+ }
19715
+ }
19716
+ },
19717
+ "description": "Successful Response"
19718
+ },
19719
+ "default": {
19720
+ "$ref": "#/components/responses/Error"
19721
+ }
19722
+ },
19723
+ "security": [
19724
+ {
19725
+ "apiKey": []
19726
+ },
19727
+ {
19728
+ "loginSession": []
19729
+ }
19730
+ ],
19731
+ "summary": "Get Model Catalog",
19732
+ "tags": ["models"]
19733
+ }
19734
+ },
19735
+ "/api/v1/model-providers": {
19736
+ "get": {
19737
+ "operationId": "list_providers_api_v1_model_providers_get",
18906
19738
  "parameters": [
18907
19739
  {
18908
19740
  "in": "query",
@@ -18979,11 +19811,11 @@
18979
19811
  "loginSession": []
18980
19812
  }
18981
19813
  ],
18982
- "summary": "List Providers",
19814
+ "summary": "List model providers",
18983
19815
  "tags": ["providers"]
18984
19816
  },
18985
19817
  "post": {
18986
- "operationId": "create_provider_api_v1_memory_providers_post",
19818
+ "operationId": "create_provider_api_v1_model_providers_post",
18987
19819
  "parameters": [
18988
19820
  {
18989
19821
  "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
@@ -19043,13 +19875,13 @@
19043
19875
  "loginSession": []
19044
19876
  }
19045
19877
  ],
19046
- "summary": "Create Provider",
19878
+ "summary": "Create model provider",
19047
19879
  "tags": ["providers"]
19048
19880
  }
19049
19881
  },
19050
- "/api/v1/memory-providers/{provider_id}": {
19882
+ "/api/v1/model-providers/{provider_id}": {
19051
19883
  "get": {
19052
- "operationId": "get_provider_api_v1_memory_providers__provider_id__get",
19884
+ "operationId": "get_provider_api_v1_model_providers__provider_id__get",
19053
19885
  "parameters": [
19054
19886
  {
19055
19887
  "in": "path",
@@ -19107,12 +19939,12 @@
19107
19939
  "loginSession": []
19108
19940
  }
19109
19941
  ],
19110
- "summary": "Get Provider",
19942
+ "summary": "Get model provider",
19111
19943
  "tags": ["providers"]
19112
19944
  },
19113
19945
  "patch": {
19114
19946
  "description": "A `config` change must also replace or remove a stored credential: it never follows a new endpoint.",
19115
- "operationId": "update_provider_api_v1_memory_providers__provider_id__patch",
19947
+ "operationId": "update_provider_api_v1_model_providers__provider_id__patch",
19116
19948
  "parameters": [
19117
19949
  {
19118
19950
  "in": "path",
@@ -19200,13 +20032,13 @@
19200
20032
  "loginSession": []
19201
20033
  }
19202
20034
  ],
19203
- "summary": "Update Provider",
20035
+ "summary": "Update model provider",
19204
20036
  "tags": ["providers"]
19205
20037
  }
19206
20038
  },
19207
- "/api/v1/memory-providers/{provider_id}/test": {
19208
- "post": {
19209
- "operationId": "test_provider_api_v1_memory_providers__provider_id__test_post",
20039
+ "/api/v1/model-providers/{provider_id}/authorization": {
20040
+ "delete": {
20041
+ "operationId": "disconnect_model_authorization_api_v1_model_providers__provider_id__authorization_delete",
19210
20042
  "parameters": [
19211
20043
  {
19212
20044
  "in": "path",
@@ -19243,7 +20075,7 @@
19243
20075
  "content": {
19244
20076
  "application/json": {
19245
20077
  "schema": {
19246
- "$ref": "#/components/schemas/ProviderTest"
20078
+ "$ref": "#/components/schemas/AuthorizationDisconnect"
19247
20079
  }
19248
20080
  }
19249
20081
  },
@@ -19265,71 +20097,19 @@
19265
20097
  "loginSession": []
19266
20098
  }
19267
20099
  ],
19268
- "summary": "Test Provider",
20100
+ "summary": "Disconnect Model Authorization",
19269
20101
  "tags": ["providers"]
19270
- }
19271
- },
19272
- "/api/v1/model-catalog": {
19273
- "get": {
19274
- "description": "The models.dev models the registered model provider types serve, for any signed-in principal.",
19275
- "operationId": "get_model_catalog_api_v1_model_catalog_get",
19276
- "responses": {
19277
- "200": {
19278
- "content": {
19279
- "application/json": {
19280
- "schema": {
19281
- "$ref": "#/components/schemas/ModelCatalog"
19282
- }
19283
- }
19284
- },
19285
- "description": "Successful Response"
19286
- },
19287
- "default": {
19288
- "$ref": "#/components/responses/Error"
19289
- }
19290
- },
19291
- "security": [
19292
- {
19293
- "apiKey": []
19294
- },
19295
- {
19296
- "loginSession": []
19297
- }
19298
- ],
19299
- "summary": "Get Model Catalog",
19300
- "tags": ["models"]
19301
- }
19302
- },
19303
- "/api/v1/model-providers": {
20102
+ },
19304
20103
  "get": {
19305
- "operationId": "list_providers_api_v1_model_providers_get",
20104
+ "operationId": "model_authorization_api_v1_model_providers__provider_id__authorization_get",
19306
20105
  "parameters": [
19307
20106
  {
19308
- "in": "query",
19309
- "name": "limit",
19310
- "required": false,
19311
- "schema": {
19312
- "default": 50,
19313
- "maximum": 100,
19314
- "minimum": 1,
19315
- "title": "Limit",
19316
- "type": "integer"
19317
- }
19318
- },
19319
- {
19320
- "in": "query",
19321
- "name": "cursor",
19322
- "required": false,
20107
+ "in": "path",
20108
+ "name": "provider_id",
20109
+ "required": true,
19323
20110
  "schema": {
19324
- "anyOf": [
19325
- {
19326
- "type": "string"
19327
- },
19328
- {
19329
- "type": "null"
19330
- }
19331
- ],
19332
- "title": "Cursor"
20111
+ "title": "Provider Id",
20112
+ "type": "string"
19333
20113
  }
19334
20114
  },
19335
20115
  {
@@ -19358,7 +20138,7 @@
19358
20138
  "content": {
19359
20139
  "application/json": {
19360
20140
  "schema": {
19361
- "$ref": "#/components/schemas/ProviderPage"
20141
+ "$ref": "#/components/schemas/AuthorizationStatus"
19362
20142
  }
19363
20143
  }
19364
20144
  },
@@ -19379,12 +20159,23 @@
19379
20159
  "loginSession": []
19380
20160
  }
19381
20161
  ],
19382
- "summary": "List Providers",
20162
+ "summary": "Model Authorization",
19383
20163
  "tags": ["providers"]
19384
- },
20164
+ }
20165
+ },
20166
+ "/api/v1/model-providers/{provider_id}/authorization/callback": {
19385
20167
  "post": {
19386
- "operationId": "create_provider_api_v1_model_providers_post",
20168
+ "operationId": "complete_model_authorization_api_v1_model_providers__provider_id__authorization_callback_post",
19387
20169
  "parameters": [
20170
+ {
20171
+ "in": "path",
20172
+ "name": "provider_id",
20173
+ "required": true,
20174
+ "schema": {
20175
+ "title": "Provider Id",
20176
+ "type": "string"
20177
+ }
20178
+ },
19388
20179
  {
19389
20180
  "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19390
20181
  "in": "header",
@@ -19410,18 +20201,18 @@
19410
20201
  "content": {
19411
20202
  "application/json": {
19412
20203
  "schema": {
19413
- "$ref": "#/components/schemas/ProviderCreate"
20204
+ "$ref": "#/components/schemas/AuthorizationCallback"
19414
20205
  }
19415
20206
  }
19416
20207
  },
19417
20208
  "required": true
19418
20209
  },
19419
20210
  "responses": {
19420
- "201": {
20211
+ "200": {
19421
20212
  "content": {
19422
20213
  "application/json": {
19423
20214
  "schema": {
19424
- "$ref": "#/components/schemas/Provider"
20215
+ "$ref": "#/components/schemas/AuthorizationStatus"
19425
20216
  }
19426
20217
  }
19427
20218
  },
@@ -19443,13 +20234,13 @@
19443
20234
  "loginSession": []
19444
20235
  }
19445
20236
  ],
19446
- "summary": "Create Provider",
20237
+ "summary": "Complete Model Authorization",
19447
20238
  "tags": ["providers"]
19448
20239
  }
19449
20240
  },
19450
- "/api/v1/model-providers/{provider_id}": {
19451
- "get": {
19452
- "operationId": "get_provider_api_v1_model_providers__provider_id__get",
20241
+ "/api/v1/model-providers/{provider_id}/authorize": {
20242
+ "post": {
20243
+ "operationId": "authorize_model_api_v1_model_providers__provider_id__authorize_post",
19453
20244
  "parameters": [
19454
20245
  {
19455
20246
  "in": "path",
@@ -19481,12 +20272,22 @@
19481
20272
  }
19482
20273
  }
19483
20274
  ],
20275
+ "requestBody": {
20276
+ "content": {
20277
+ "application/json": {
20278
+ "schema": {
20279
+ "$ref": "#/components/schemas/ProviderAuthorizationRequest"
20280
+ }
20281
+ }
20282
+ },
20283
+ "required": true
20284
+ },
19484
20285
  "responses": {
19485
20286
  "200": {
19486
20287
  "content": {
19487
20288
  "application/json": {
19488
20289
  "schema": {
19489
- "$ref": "#/components/schemas/Provider"
20290
+ "$ref": "#/components/schemas/AuthorizationStart"
19490
20291
  }
19491
20292
  }
19492
20293
  },
@@ -19504,15 +20305,17 @@
19504
20305
  "apiKey": []
19505
20306
  },
19506
20307
  {
20308
+ "csrf": [],
19507
20309
  "loginSession": []
19508
20310
  }
19509
20311
  ],
19510
- "summary": "Get Provider",
20312
+ "summary": "Authorize Model",
19511
20313
  "tags": ["providers"]
19512
- },
19513
- "patch": {
19514
- "description": "A `config` change must also replace or remove a stored credential: it never follows a new endpoint.",
19515
- "operationId": "update_provider_api_v1_model_providers__provider_id__patch",
20314
+ }
20315
+ },
20316
+ "/api/v1/model-providers/{provider_id}/models": {
20317
+ "get": {
20318
+ "operationId": "discover_model_provider_models_api_v1_model_providers__provider_id__models_get",
19516
20319
  "parameters": [
19517
20320
  {
19518
20321
  "in": "path",
@@ -19523,25 +20326,6 @@
19523
20326
  "type": "string"
19524
20327
  }
19525
20328
  },
19526
- {
19527
- "description": "The resource's ETag: `\"{id}:{version}\"` of its current view, `\"{key}:{version}\"` for a model",
19528
- "in": "header",
19529
- "name": "If-Match",
19530
- "required": false,
19531
- "schema": {
19532
- "anyOf": [
19533
- {
19534
- "maxLength": 512,
19535
- "type": "string"
19536
- },
19537
- {
19538
- "type": "null"
19539
- }
19540
- ],
19541
- "description": "The resource's ETag: `\"{id}:{version}\"` of its current view, `\"{key}:{version}\"` for a model",
19542
- "title": "If-Match"
19543
- }
19544
- },
19545
20329
  {
19546
20330
  "description": "The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.",
19547
20331
  "in": "header",
@@ -19563,22 +20347,16 @@
19563
20347
  }
19564
20348
  }
19565
20349
  ],
19566
- "requestBody": {
19567
- "content": {
19568
- "application/json": {
19569
- "schema": {
19570
- "$ref": "#/components/schemas/ProviderUpdate"
19571
- }
19572
- }
19573
- },
19574
- "required": true
19575
- },
19576
20350
  "responses": {
19577
20351
  "200": {
19578
20352
  "content": {
19579
20353
  "application/json": {
19580
20354
  "schema": {
19581
- "$ref": "#/components/schemas/Provider"
20355
+ "items": {
20356
+ "$ref": "#/components/schemas/ChatGPTModel"
20357
+ },
20358
+ "title": "Response Discover Model Provider Models Api V1 Model Providers Provider Id Models Get",
20359
+ "type": "array"
19582
20360
  }
19583
20361
  }
19584
20362
  },
@@ -19596,11 +20374,10 @@
19596
20374
  "apiKey": []
19597
20375
  },
19598
20376
  {
19599
- "csrf": [],
19600
20377
  "loginSession": []
19601
20378
  }
19602
20379
  ],
19603
- "summary": "Update Provider",
20380
+ "summary": "Discover Model Provider Models",
19604
20381
  "tags": ["providers"]
19605
20382
  }
19606
20383
  },
@@ -19665,7 +20442,7 @@
19665
20442
  "loginSession": []
19666
20443
  }
19667
20444
  ],
19668
- "summary": "Test Provider",
20445
+ "summary": "Test model provider",
19669
20446
  "tags": ["providers"]
19670
20447
  }
19671
20448
  },
@@ -25710,6 +26487,39 @@
25710
26487
  "type": "string"
25711
26488
  }
25712
26489
  },
26490
+ {
26491
+ "in": "query",
26492
+ "name": "run",
26493
+ "required": false,
26494
+ "schema": {
26495
+ "anyOf": [
26496
+ {
26497
+ "type": "string"
26498
+ },
26499
+ {
26500
+ "type": "null"
26501
+ }
26502
+ ],
26503
+ "title": "Run"
26504
+ }
26505
+ },
26506
+ {
26507
+ "in": "query",
26508
+ "name": "position",
26509
+ "required": false,
26510
+ "schema": {
26511
+ "anyOf": [
26512
+ {
26513
+ "pattern": "^(0|[1-9][0-9]{0,19})-(0|[1-9][0-9]{0,19})$",
26514
+ "type": "string"
26515
+ },
26516
+ {
26517
+ "type": "null"
26518
+ }
26519
+ ],
26520
+ "title": "Position"
26521
+ }
26522
+ },
25713
26523
  {
25714
26524
  "in": "header",
25715
26525
  "name": "Last-Event-ID",
@@ -27540,7 +28350,7 @@
27540
28350
  "loginSession": []
27541
28351
  }
27542
28352
  ],
27543
- "summary": "List Providers",
28353
+ "summary": "List web providers",
27544
28354
  "tags": ["providers"]
27545
28355
  },
27546
28356
  "post": {
@@ -27604,7 +28414,7 @@
27604
28414
  "loginSession": []
27605
28415
  }
27606
28416
  ],
27607
- "summary": "Create Provider",
28417
+ "summary": "Create web provider",
27608
28418
  "tags": ["providers"]
27609
28419
  }
27610
28420
  },
@@ -27668,7 +28478,7 @@
27668
28478
  "loginSession": []
27669
28479
  }
27670
28480
  ],
27671
- "summary": "Get Provider",
28481
+ "summary": "Get web provider",
27672
28482
  "tags": ["providers"]
27673
28483
  },
27674
28484
  "patch": {
@@ -27761,7 +28571,7 @@
27761
28571
  "loginSession": []
27762
28572
  }
27763
28573
  ],
27764
- "summary": "Update Provider",
28574
+ "summary": "Update web provider",
27765
28575
  "tags": ["providers"]
27766
28576
  }
27767
28577
  },
@@ -27826,7 +28636,7 @@
27826
28636
  "loginSession": []
27827
28637
  }
27828
28638
  ],
27829
- "summary": "Test Provider",
28639
+ "summary": "Test web provider",
27830
28640
  "tags": ["providers"]
27831
28641
  }
27832
28642
  },