raccoonai 0.1.0a5__tar.gz → 0.1.0a7__tar.gz

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.
Files changed (78) hide show
  1. raccoonai-0.1.0a7/.release-please-manifest.json +3 -0
  2. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/CHANGELOG.md +33 -0
  3. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/PKG-INFO +16 -16
  4. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/README.md +15 -15
  5. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/SECURITY.md +2 -2
  6. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/api.md +1 -2
  7. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/pyproject.toml +1 -1
  8. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_base_client.py +8 -2
  9. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_client.py +2 -2
  10. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_version.py +1 -1
  11. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/resources/fleet.py +3 -12
  12. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/resources/lam.py +73 -422
  13. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/types/__init__.py +0 -2
  14. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/types/fleet_create_params.py +26 -12
  15. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/types/fleet_create_response.py +3 -5
  16. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/types/fleet_status_response.py +3 -5
  17. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/types/fleet_terminate_response.py +3 -5
  18. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/types/lam_integration_run_params.py +24 -3
  19. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/types/lam_integration_run_response.py +3 -3
  20. raccoonai-0.1.0a5/src/raccoonai/types/lam_extract_params.py → raccoonai-0.1.0a7/src/raccoonai/types/lam_run_params.py +30 -7
  21. raccoonai-0.1.0a5/src/raccoonai/types/lam_extract_response.py → raccoonai-0.1.0a7/src/raccoonai/types/lam_run_response.py +5 -4
  22. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/api_resources/test_fleet.py +16 -4
  23. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/api_resources/test_lam.py +125 -273
  24. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_client.py +10 -10
  25. raccoonai-0.1.0a5/.release-please-manifest.json +0 -3
  26. raccoonai-0.1.0a5/src/raccoonai/types/lam_run_params.py +0 -58
  27. raccoonai-0.1.0a5/src/raccoonai/types/lam_run_response.py +0 -24
  28. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/.gitignore +0 -0
  29. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/CONTRIBUTING.md +0 -0
  30. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/LICENSE +0 -0
  31. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/bin/check-release-environment +0 -0
  32. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/bin/publish-pypi +0 -0
  33. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/examples/.keep +0 -0
  34. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/mypy.ini +0 -0
  35. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/noxfile.py +0 -0
  36. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/release-please-config.json +0 -0
  37. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/requirements-dev.lock +0 -0
  38. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/requirements.lock +0 -0
  39. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/__init__.py +0 -0
  40. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_compat.py +0 -0
  41. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_constants.py +0 -0
  42. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_exceptions.py +0 -0
  43. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_files.py +0 -0
  44. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_models.py +0 -0
  45. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_qs.py +0 -0
  46. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_resource.py +0 -0
  47. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_response.py +0 -0
  48. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_streaming.py +0 -0
  49. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_types.py +0 -0
  50. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_utils/__init__.py +0 -0
  51. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_utils/_logs.py +0 -0
  52. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_utils/_proxy.py +0 -0
  53. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_utils/_reflection.py +0 -0
  54. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_utils/_streams.py +0 -0
  55. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_utils/_sync.py +0 -0
  56. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_utils/_transform.py +0 -0
  57. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_utils/_typing.py +0 -0
  58. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/_utils/_utils.py +0 -0
  59. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/lib/.keep +0 -0
  60. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/py.typed +0 -0
  61. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/resources/__init__.py +0 -0
  62. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/src/raccoonai/types/fleet_logs_response.py +0 -0
  63. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/__init__.py +0 -0
  64. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/api_resources/__init__.py +0 -0
  65. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/conftest.py +0 -0
  66. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/sample_file.txt +0 -0
  67. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_deepcopy.py +0 -0
  68. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_extract_files.py +0 -0
  69. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_files.py +0 -0
  70. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_models.py +0 -0
  71. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_qs.py +0 -0
  72. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_required_args.py +0 -0
  73. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_response.py +0 -0
  74. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_streaming.py +0 -0
  75. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_transform.py +0 -0
  76. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_utils/test_proxy.py +0 -0
  77. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/test_utils/test_typing.py +0 -0
  78. {raccoonai-0.1.0a5 → raccoonai-0.1.0a7}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.7"
3
+ }
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.7 (2025-03-03)
4
+
5
+ Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/raccoonaihq/raccoonai-python/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([#32](https://github.com/raccoonaihq/raccoonai-python/issues/32)) ([122dfbd](https://github.com/raccoonaihq/raccoonai-python/commit/122dfbdab0b497c7baa5c1e30e8c53d971a99b0c))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **docs:** update client docstring ([#31](https://github.com/raccoonaihq/raccoonai-python/issues/31)) ([7d5b1cb](https://github.com/raccoonaihq/raccoonai-python/commit/7d5b1cbbbc21e7d7daf7860951236ebbfcc3ba70))
15
+ * **internal:** fix devcontainers setup ([#27](https://github.com/raccoonaihq/raccoonai-python/issues/27)) ([8b3178e](https://github.com/raccoonaihq/raccoonai-python/commit/8b3178e30fe72e1326eb46c49891b668a15db3ca))
16
+ * **internal:** properly set __pydantic_private__ ([#29](https://github.com/raccoonaihq/raccoonai-python/issues/29)) ([f457c28](https://github.com/raccoonaihq/raccoonai-python/commit/f457c28d9b5bbe682cc83156bfad97a0d5216444))
17
+
18
+
19
+ ### Documentation
20
+
21
+ * update URLs from stainlessapi.com to stainless.com ([#30](https://github.com/raccoonaihq/raccoonai-python/issues/30)) ([a90f1af](https://github.com/raccoonaihq/raccoonai-python/commit/a90f1afa15b717ae8b8df892b56ee29c1061d441))
22
+
23
+ ## 0.1.0-alpha.6 (2025-02-21)
24
+
25
+ Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/raccoonaihq/raccoonai-python/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
26
+
27
+ ### Features
28
+
29
+ * **client:** allow passing `NotGiven` for body ([#24](https://github.com/raccoonaihq/raccoonai-python/issues/24)) ([c632aa5](https://github.com/raccoonaihq/raccoonai-python/commit/c632aa57554681c776cb5aad35c673b2c2db65c7))
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **client:** mark some request bodies as optional ([c632aa5](https://github.com/raccoonaihq/raccoonai-python/commit/c632aa57554681c776cb5aad35c673b2c2db65c7))
35
+
3
36
  ## 0.1.0-alpha.5 (2025-02-20)
4
37
 
5
38
  Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/raccoonaihq/raccoonai-python/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: raccoonai
3
- Version: 0.1.0a5
3
+ Version: 0.1.0a7
4
4
  Summary: The official Python library for the raccoonAI API
5
5
  Project-URL: Homepage, https://github.com/raccoonaihq/raccoonai-python
6
6
  Project-URL: Repository, https://github.com/raccoonaihq/raccoonai-python
@@ -38,7 +38,7 @@ The Raccoon AI Python library provides convenient access to the Raccoon AI REST
38
38
  application. The library includes type definitions for all request params and response fields,
39
39
  and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
40
40
 
41
- It is generated with [Stainless](https://www.stainlessapi.com/).
41
+ It is generated with [Stainless](https://www.stainless.com/).
42
42
 
43
43
  ## Documentation
44
44
 
@@ -66,10 +66,10 @@ client = RaccoonAI(
66
66
  )
67
67
 
68
68
  response = client.lam.run(
69
- query="Find the price of iphone 16 on Amazon.",
69
+ query="Find YCombinator startups who got funded in W24.",
70
70
  raccoon_passcode="<end-user-raccoon-passcode>",
71
71
  )
72
- print(response.livestream_url)
72
+ print(response.data)
73
73
  ```
74
74
 
75
75
  While you can provide a `secret_key` keyword argument,
@@ -95,10 +95,10 @@ client = AsyncRaccoonAI(
95
95
 
96
96
  async def main() -> None:
97
97
  response = await client.lam.run(
98
- query="Find the price of iphone 16 on Amazon.",
98
+ query="Find YCombinator startups who got funded in W24.",
99
99
  raccoon_passcode="<end-user-raccoon-passcode>",
100
100
  )
101
- print(response.livestream_url)
101
+ print(response.data)
102
102
 
103
103
 
104
104
  asyncio.run(main())
@@ -116,12 +116,12 @@ from raccoonai import RaccoonAI
116
116
  client = RaccoonAI()
117
117
 
118
118
  stream = client.lam.run(
119
- query="Find the price of iphone 16 on Amazon.",
119
+ query="Find YCombinator startups who got funded in W24.",
120
120
  raccoon_passcode="<end-user-raccoon-passcode>",
121
121
  stream=True,
122
122
  )
123
123
  for response in stream:
124
- print(response.livestream_url)
124
+ print(response.data)
125
125
  ```
126
126
 
127
127
  The async client uses the exact same interface.
@@ -132,12 +132,12 @@ from raccoonai import AsyncRaccoonAI
132
132
  client = AsyncRaccoonAI()
133
133
 
134
134
  stream = await client.lam.run(
135
- query="Find the price of iphone 16 on Amazon.",
135
+ query="Find YCombinator startups who got funded in W24.",
136
136
  raccoon_passcode="<end-user-raccoon-passcode>",
137
137
  stream=True,
138
138
  )
139
139
  async for response in stream:
140
- print(response.livestream_url)
140
+ print(response.data)
141
141
  ```
142
142
 
143
143
  ## Using types
@@ -166,7 +166,7 @@ client = RaccoonAI()
166
166
 
167
167
  try:
168
168
  client.lam.run(
169
- query="Find the price of iphone 16 on Amazon.",
169
+ query="Find YCombinator startups who got funded in W24.",
170
170
  raccoon_passcode="<end-user-raccoon-passcode>",
171
171
  )
172
172
  except raccoonai.APIConnectionError as e:
@@ -212,7 +212,7 @@ client = RaccoonAI(
212
212
 
213
213
  # Or, configure per-request:
214
214
  client.with_options(max_retries=5).lam.run(
215
- query="Find the price of iphone 16 on Amazon.",
215
+ query="Find YCombinator startups who got funded in W24.",
216
216
  raccoon_passcode="<end-user-raccoon-passcode>",
217
217
  )
218
218
  ```
@@ -238,7 +238,7 @@ client = RaccoonAI(
238
238
 
239
239
  # Override per-request:
240
240
  client.with_options(timeout=5.0).lam.run(
241
- query="Find the price of iphone 16 on Amazon.",
241
+ query="Find YCombinator startups who got funded in W24.",
242
242
  raccoon_passcode="<end-user-raccoon-passcode>",
243
243
  )
244
244
  ```
@@ -282,13 +282,13 @@ from raccoonai import RaccoonAI
282
282
 
283
283
  client = RaccoonAI()
284
284
  response = client.lam.with_raw_response.run(
285
- query="Find the price of iphone 16 on Amazon.",
285
+ query="Find YCombinator startups who got funded in W24.",
286
286
  raccoon_passcode="<end-user-raccoon-passcode>",
287
287
  )
288
288
  print(response.headers.get('X-My-Header'))
289
289
 
290
290
  lam = response.parse() # get the object that `lam.run()` would have returned
291
- print(lam.livestream_url)
291
+ print(lam.data)
292
292
  ```
293
293
 
294
294
  These methods return an [`APIResponse`](https://github.com/raccoonaihq/raccoonai-python/tree/main/src/raccoonai/_response.py) object.
@@ -303,7 +303,7 @@ To stream the response body, use `.with_streaming_response` instead, which requi
303
303
 
304
304
  ```python
305
305
  with client.lam.with_streaming_response.run(
306
- query="Find the price of iphone 16 on Amazon.",
306
+ query="Find YCombinator startups who got funded in W24.",
307
307
  raccoon_passcode="<end-user-raccoon-passcode>",
308
308
  ) as response:
309
309
  print(response.headers.get("X-My-Header"))
@@ -6,7 +6,7 @@ The Raccoon AI Python library provides convenient access to the Raccoon AI REST
6
6
  application. The library includes type definitions for all request params and response fields,
7
7
  and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
8
8
 
9
- It is generated with [Stainless](https://www.stainlessapi.com/).
9
+ It is generated with [Stainless](https://www.stainless.com/).
10
10
 
11
11
  ## Documentation
12
12
 
@@ -34,10 +34,10 @@ client = RaccoonAI(
34
34
  )
35
35
 
36
36
  response = client.lam.run(
37
- query="Find the price of iphone 16 on Amazon.",
37
+ query="Find YCombinator startups who got funded in W24.",
38
38
  raccoon_passcode="<end-user-raccoon-passcode>",
39
39
  )
40
- print(response.livestream_url)
40
+ print(response.data)
41
41
  ```
42
42
 
43
43
  While you can provide a `secret_key` keyword argument,
@@ -63,10 +63,10 @@ client = AsyncRaccoonAI(
63
63
 
64
64
  async def main() -> None:
65
65
  response = await client.lam.run(
66
- query="Find the price of iphone 16 on Amazon.",
66
+ query="Find YCombinator startups who got funded in W24.",
67
67
  raccoon_passcode="<end-user-raccoon-passcode>",
68
68
  )
69
- print(response.livestream_url)
69
+ print(response.data)
70
70
 
71
71
 
72
72
  asyncio.run(main())
@@ -84,12 +84,12 @@ from raccoonai import RaccoonAI
84
84
  client = RaccoonAI()
85
85
 
86
86
  stream = client.lam.run(
87
- query="Find the price of iphone 16 on Amazon.",
87
+ query="Find YCombinator startups who got funded in W24.",
88
88
  raccoon_passcode="<end-user-raccoon-passcode>",
89
89
  stream=True,
90
90
  )
91
91
  for response in stream:
92
- print(response.livestream_url)
92
+ print(response.data)
93
93
  ```
94
94
 
95
95
  The async client uses the exact same interface.
@@ -100,12 +100,12 @@ from raccoonai import AsyncRaccoonAI
100
100
  client = AsyncRaccoonAI()
101
101
 
102
102
  stream = await client.lam.run(
103
- query="Find the price of iphone 16 on Amazon.",
103
+ query="Find YCombinator startups who got funded in W24.",
104
104
  raccoon_passcode="<end-user-raccoon-passcode>",
105
105
  stream=True,
106
106
  )
107
107
  async for response in stream:
108
- print(response.livestream_url)
108
+ print(response.data)
109
109
  ```
110
110
 
111
111
  ## Using types
@@ -134,7 +134,7 @@ client = RaccoonAI()
134
134
 
135
135
  try:
136
136
  client.lam.run(
137
- query="Find the price of iphone 16 on Amazon.",
137
+ query="Find YCombinator startups who got funded in W24.",
138
138
  raccoon_passcode="<end-user-raccoon-passcode>",
139
139
  )
140
140
  except raccoonai.APIConnectionError as e:
@@ -180,7 +180,7 @@ client = RaccoonAI(
180
180
 
181
181
  # Or, configure per-request:
182
182
  client.with_options(max_retries=5).lam.run(
183
- query="Find the price of iphone 16 on Amazon.",
183
+ query="Find YCombinator startups who got funded in W24.",
184
184
  raccoon_passcode="<end-user-raccoon-passcode>",
185
185
  )
186
186
  ```
@@ -206,7 +206,7 @@ client = RaccoonAI(
206
206
 
207
207
  # Override per-request:
208
208
  client.with_options(timeout=5.0).lam.run(
209
- query="Find the price of iphone 16 on Amazon.",
209
+ query="Find YCombinator startups who got funded in W24.",
210
210
  raccoon_passcode="<end-user-raccoon-passcode>",
211
211
  )
212
212
  ```
@@ -250,13 +250,13 @@ from raccoonai import RaccoonAI
250
250
 
251
251
  client = RaccoonAI()
252
252
  response = client.lam.with_raw_response.run(
253
- query="Find the price of iphone 16 on Amazon.",
253
+ query="Find YCombinator startups who got funded in W24.",
254
254
  raccoon_passcode="<end-user-raccoon-passcode>",
255
255
  )
256
256
  print(response.headers.get('X-My-Header'))
257
257
 
258
258
  lam = response.parse() # get the object that `lam.run()` would have returned
259
- print(lam.livestream_url)
259
+ print(lam.data)
260
260
  ```
261
261
 
262
262
  These methods return an [`APIResponse`](https://github.com/raccoonaihq/raccoonai-python/tree/main/src/raccoonai/_response.py) object.
@@ -271,7 +271,7 @@ To stream the response body, use `.with_streaming_response` instead, which requi
271
271
 
272
272
  ```python
273
273
  with client.lam.with_streaming_response.run(
274
- query="Find the price of iphone 16 on Amazon.",
274
+ query="Find YCombinator startups who got funded in W24.",
275
275
  raccoon_passcode="<end-user-raccoon-passcode>",
276
276
  ) as response:
277
277
  print(response.headers.get("X-My-Header"))
@@ -2,9 +2,9 @@
2
2
 
3
3
  ## Reporting Security Issues
4
4
 
5
- This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
5
+ This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
6
6
 
7
- To report a security issue, please contact the Stainless team at security@stainlessapi.com.
7
+ To report a security issue, please contact the Stainless team at security@stainless.com.
8
8
 
9
9
  ## Responsible Disclosure
10
10
 
@@ -3,12 +3,11 @@
3
3
  Types:
4
4
 
5
5
  ```python
6
- from raccoonai.types import LamExtractResponse, LamIntegrationRunResponse, LamRunResponse
6
+ from raccoonai.types import LamIntegrationRunResponse, LamRunResponse
7
7
  ```
8
8
 
9
9
  Methods:
10
10
 
11
- - <code title="post /lam/extract">client.lam.<a href="./src/raccoonai/resources/lam.py">extract</a>(\*\*<a href="src/raccoonai/types/lam_extract_params.py">params</a>) -> <a href="./src/raccoonai/types/lam_extract_response.py">LamExtractResponse</a></code>
12
11
  - <code title="post /lam/{app_name}/run">client.lam.<a href="./src/raccoonai/resources/lam.py">integration_run</a>(app_name, \*\*<a href="src/raccoonai/types/lam_integration_run_params.py">params</a>) -> <a href="./src/raccoonai/types/lam_integration_run_response.py">LamIntegrationRunResponse</a></code>
13
12
  - <code title="post /lam/run">client.lam.<a href="./src/raccoonai/resources/lam.py">run</a>(\*\*<a href="src/raccoonai/types/lam_run_params.py">params</a>) -> <a href="./src/raccoonai/types/lam_run_response.py">LamRunResponse</a></code>
14
13
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "raccoonai"
3
- version = "0.1.0-alpha.5"
3
+ version = "0.1.0-alpha.7"
4
4
  description = "The official Python library for the raccoonAI API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -63,7 +63,7 @@ from ._types import (
63
63
  ModelBuilderProtocol,
64
64
  )
65
65
  from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
66
- from ._compat import model_copy, model_dump
66
+ from ._compat import PYDANTIC_V2, model_copy, model_dump
67
67
  from ._models import GenericModel, FinalRequestOptions, validate_type, construct_type
68
68
  from ._response import (
69
69
  APIResponse,
@@ -207,6 +207,9 @@ class BaseSyncPage(BasePage[_T], Generic[_T]):
207
207
  model: Type[_T],
208
208
  options: FinalRequestOptions,
209
209
  ) -> None:
210
+ if PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None:
211
+ self.__pydantic_private__ = {}
212
+
210
213
  self._model = model
211
214
  self._client = client
212
215
  self._options = options
@@ -292,6 +295,9 @@ class BaseAsyncPage(BasePage[_T], Generic[_T]):
292
295
  client: AsyncAPIClient,
293
296
  options: FinalRequestOptions,
294
297
  ) -> None:
298
+ if PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None:
299
+ self.__pydantic_private__ = {}
300
+
295
301
  self._model = model
296
302
  self._client = client
297
303
  self._options = options
@@ -518,7 +524,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
518
524
  # so that passing a `TypedDict` doesn't cause an error.
519
525
  # https://github.com/microsoft/pyright/issues/3526#event-6715453066
520
526
  params=self.qs.stringify(cast(Mapping[str, Any], params)) if params else None,
521
- json=json_data,
527
+ json=json_data if is_given(json_data) else None,
522
528
  files=files,
523
529
  **kwargs,
524
530
  )
@@ -87,7 +87,7 @@ class RaccoonAI(SyncAPIClient):
87
87
  # part of our public interface in the future.
88
88
  _strict_response_validation: bool = False,
89
89
  ) -> None:
90
- """Construct a new synchronous raccoonAI client instance.
90
+ """Construct a new synchronous RaccoonAI client instance.
91
91
 
92
92
  This automatically infers the `secret_key` argument from the `RACCOON_SECRET_KEY` environment variable if it is not provided.
93
93
  """
@@ -283,7 +283,7 @@ class AsyncRaccoonAI(AsyncAPIClient):
283
283
  # part of our public interface in the future.
284
284
  _strict_response_validation: bool = False,
285
285
  ) -> None:
286
- """Construct a new async raccoonAI client instance.
286
+ """Construct a new async AsyncRaccoonAI client instance.
287
287
 
288
288
  This automatically infers the `secret_key` argument from the `RACCOON_SECRET_KEY` environment variable if it is not provided.
289
289
  """
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "raccoonai"
4
- __version__ = "0.1.0-alpha.5" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.7" # x-release-please-version
@@ -3,6 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from typing import Optional
6
+ from typing_extensions import Literal
6
7
 
7
8
  import httpx
8
9
 
@@ -53,8 +54,7 @@ class FleetResource(SyncAPIResource):
53
54
  self,
54
55
  *,
55
56
  advanced: Optional[fleet_create_params.Advanced] | NotGiven = NOT_GIVEN,
56
- app_name: Optional[str] | NotGiven = NOT_GIVEN,
57
- browser_type: Optional[str] | NotGiven = NOT_GIVEN,
57
+ browser_type: Optional[Literal["chromium", "firefox", "webkit"]] | NotGiven = NOT_GIVEN,
58
58
  headless: Optional[bool] | NotGiven = NOT_GIVEN,
59
59
  raccoon_passcode: Optional[str] | NotGiven = NOT_GIVEN,
60
60
  session_timeout: Optional[int] | NotGiven = NOT_GIVEN,
@@ -74,9 +74,6 @@ class FleetResource(SyncAPIResource):
74
74
  advanced: Advanced configuration options for the session, such as ad-blocking and CAPTCHA
75
75
  solving.
76
76
 
77
- app_name: The name of the app for which the session is going to run for, used for
78
- streamlining authentication.
79
-
80
77
  browser_type: The type of browser to use. Supported values include 'chromium', 'firefox', and
81
78
  'webkit'.
82
79
 
@@ -105,7 +102,6 @@ class FleetResource(SyncAPIResource):
105
102
  body=maybe_transform(
106
103
  {
107
104
  "advanced": advanced,
108
- "app_name": app_name,
109
105
  "browser_type": browser_type,
110
106
  "headless": headless,
111
107
  "raccoon_passcode": raccoon_passcode,
@@ -245,8 +241,7 @@ class AsyncFleetResource(AsyncAPIResource):
245
241
  self,
246
242
  *,
247
243
  advanced: Optional[fleet_create_params.Advanced] | NotGiven = NOT_GIVEN,
248
- app_name: Optional[str] | NotGiven = NOT_GIVEN,
249
- browser_type: Optional[str] | NotGiven = NOT_GIVEN,
244
+ browser_type: Optional[Literal["chromium", "firefox", "webkit"]] | NotGiven = NOT_GIVEN,
250
245
  headless: Optional[bool] | NotGiven = NOT_GIVEN,
251
246
  raccoon_passcode: Optional[str] | NotGiven = NOT_GIVEN,
252
247
  session_timeout: Optional[int] | NotGiven = NOT_GIVEN,
@@ -266,9 +261,6 @@ class AsyncFleetResource(AsyncAPIResource):
266
261
  advanced: Advanced configuration options for the session, such as ad-blocking and CAPTCHA
267
262
  solving.
268
263
 
269
- app_name: The name of the app for which the session is going to run for, used for
270
- streamlining authentication.
271
-
272
264
  browser_type: The type of browser to use. Supported values include 'chromium', 'firefox', and
273
265
  'webkit'.
274
266
 
@@ -297,7 +289,6 @@ class AsyncFleetResource(AsyncAPIResource):
297
289
  body=await async_maybe_transform(
298
290
  {
299
291
  "advanced": advanced,
300
- "app_name": app_name,
301
292
  "browser_type": browser_type,
302
293
  "headless": headless,
303
294
  "raccoon_passcode": raccoon_passcode,