@olib-ai/owl-browser-sdk 2.0.3 → 2.0.4
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 +51 -8
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
10
|
-
"url": "http://
|
|
10
|
+
"url": "http://127.0.0.1:8080",
|
|
11
11
|
"description": "Current server"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
@@ -4745,6 +4745,49 @@
|
|
|
4745
4745
|
}
|
|
4746
4746
|
}
|
|
4747
4747
|
},
|
|
4748
|
+
"/api/execute/browser_get_headers": {
|
|
4749
|
+
"post": {
|
|
4750
|
+
"summary": "Browser Get Headers",
|
|
4751
|
+
"description": "Get HTTP response headers from the current page or a specific URL in the browser context. Network logging is automatically enabled when a context is created. Returns headers as a JSON object with header names as keys. Useful for extracting authentication tokens, content types, caching directives, and other response metadata.",
|
|
4752
|
+
"tags": [
|
|
4753
|
+
"General"
|
|
4754
|
+
],
|
|
4755
|
+
"requestBody": {
|
|
4756
|
+
"required": true,
|
|
4757
|
+
"content": {
|
|
4758
|
+
"application/json": {
|
|
4759
|
+
"schema": {
|
|
4760
|
+
"type": "object",
|
|
4761
|
+
"properties": {
|
|
4762
|
+
"context_id": {
|
|
4763
|
+
"type": "string",
|
|
4764
|
+
"description": "The unique identifier of the browser context (e.g., 'ctx_000001')"
|
|
4765
|
+
},
|
|
4766
|
+
"url": {
|
|
4767
|
+
"type": "string",
|
|
4768
|
+
"description": "Filter headers by URL. If not provided, returns headers from the main page's document response. If provided, searches recent network activity for a response matching this URL."
|
|
4769
|
+
}
|
|
4770
|
+
},
|
|
4771
|
+
"required": [
|
|
4772
|
+
"context_id"
|
|
4773
|
+
]
|
|
4774
|
+
}
|
|
4775
|
+
}
|
|
4776
|
+
}
|
|
4777
|
+
},
|
|
4778
|
+
"responses": {
|
|
4779
|
+
"200": {
|
|
4780
|
+
"description": "Successful response"
|
|
4781
|
+
},
|
|
4782
|
+
"400": {
|
|
4783
|
+
"description": "Bad request"
|
|
4784
|
+
},
|
|
4785
|
+
"401": {
|
|
4786
|
+
"description": "Unauthorized"
|
|
4787
|
+
}
|
|
4788
|
+
}
|
|
4789
|
+
}
|
|
4790
|
+
},
|
|
4748
4791
|
"/api/execute/browser_set_proxy": {
|
|
4749
4792
|
"post": {
|
|
4750
4793
|
"summary": "Browser Set Proxy",
|
|
@@ -7211,7 +7254,7 @@
|
|
|
7211
7254
|
},
|
|
7212
7255
|
"headers": {
|
|
7213
7256
|
"type": "string",
|
|
7214
|
-
"description": "HTTP headers as JSON object
|
|
7257
|
+
"description": "HTTP headers as a JSON object (e.g., {\"Content-Type\": \"application/json\", \"X-Custom\": \"value\"}) or as a string with one header per line. Each key-value pair becomes a request header."
|
|
7215
7258
|
},
|
|
7216
7259
|
"body": {
|
|
7217
7260
|
"type": "string",
|
|
@@ -7219,7 +7262,7 @@
|
|
|
7219
7262
|
},
|
|
7220
7263
|
"cookies": {
|
|
7221
7264
|
"type": "string",
|
|
7222
|
-
"description": "Cookies to send with the request
|
|
7265
|
+
"description": "Cookies to send with the request. Accepts either a string in 'name=value; name2=value2' format, or a JSON array of cookie objects from browser_get_cookies (e.g., [{\"name\": \"session\", \"value\": \"abc\"}, ...]). When using the array format, only 'name' and 'value' fields are used."
|
|
7223
7266
|
},
|
|
7224
7267
|
"auth_type": {
|
|
7225
7268
|
"type": "string",
|
|
@@ -7356,11 +7399,11 @@
|
|
|
7356
7399
|
},
|
|
7357
7400
|
"headers": {
|
|
7358
7401
|
"type": "string",
|
|
7359
|
-
"description": "HTTP headers as JSON object string."
|
|
7402
|
+
"description": "HTTP headers as a JSON object or string."
|
|
7360
7403
|
},
|
|
7361
7404
|
"cookies": {
|
|
7362
7405
|
"type": "string",
|
|
7363
|
-
"description": "Cookies to send with the request
|
|
7406
|
+
"description": "Cookies to send with the request. Accepts 'name=value; name2=value2' string or a JSON array from browser_get_cookies."
|
|
7364
7407
|
},
|
|
7365
7408
|
"proxy_type": {
|
|
7366
7409
|
"type": "string",
|
|
@@ -7717,7 +7760,7 @@
|
|
|
7717
7760
|
"properties": {
|
|
7718
7761
|
"headers": {
|
|
7719
7762
|
"type": "string",
|
|
7720
|
-
"description": "Default HTTP headers as JSON object string. Applied to all session requests unless overridden."
|
|
7763
|
+
"description": "Default HTTP headers as a JSON object or string. Applied to all session requests unless overridden."
|
|
7721
7764
|
},
|
|
7722
7765
|
"user_agent": {
|
|
7723
7766
|
"type": "string",
|
|
@@ -7825,7 +7868,7 @@
|
|
|
7825
7868
|
},
|
|
7826
7869
|
"headers": {
|
|
7827
7870
|
"type": "string",
|
|
7828
|
-
"description": "Additional HTTP headers as JSON object string. Merged with session default headers."
|
|
7871
|
+
"description": "Additional HTTP headers as a JSON object or string. Merged with session default headers."
|
|
7829
7872
|
},
|
|
7830
7873
|
"body": {
|
|
7831
7874
|
"type": "string",
|
|
@@ -7833,7 +7876,7 @@
|
|
|
7833
7876
|
},
|
|
7834
7877
|
"cookies": {
|
|
7835
7878
|
"type": "string",
|
|
7836
|
-
"description": "Additional cookies for this request."
|
|
7879
|
+
"description": "Additional cookies for this request. Accepts string or JSON array from browser_get_cookies."
|
|
7837
7880
|
},
|
|
7838
7881
|
"auth_type": {
|
|
7839
7882
|
"type": "string",
|
package/package.json
CHANGED