bluehive 0.1.0a13__py3-none-any.whl → 0.1.0a15__py3-none-any.whl

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.
bluehive/_streaming.py CHANGED
@@ -57,9 +57,8 @@ class Stream(Generic[_T]):
57
57
  for sse in iterator:
58
58
  yield process_data(data=sse.json(), cast_to=cast_to, response=response)
59
59
 
60
- # Ensure the entire stream is consumed
61
- for _sse in iterator:
62
- ...
60
+ # As we might not fully consume the response stream, we need to close it explicitly
61
+ response.close()
63
62
 
64
63
  def __enter__(self) -> Self:
65
64
  return self
@@ -121,9 +120,8 @@ class AsyncStream(Generic[_T]):
121
120
  async for sse in iterator:
122
121
  yield process_data(data=sse.json(), cast_to=cast_to, response=response)
123
122
 
124
- # Ensure the entire stream is consumed
125
- async for _sse in iterator:
126
- ...
123
+ # As we might not fully consume the response stream, we need to close it explicitly
124
+ await response.aclose()
127
125
 
128
126
  async def __aenter__(self) -> Self:
129
127
  return self
bluehive/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "bluehive"
4
- __version__ = "0.1.0-alpha.13" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.15" # x-release-please-version
@@ -53,7 +53,11 @@ class ServiceBundlesResource(SyncAPIResource):
53
53
  bundle_name: str,
54
54
  service_ids: SequenceNotStr[str],
55
55
  _id: str | Omit = omit,
56
+ limit: float | Omit = omit,
57
+ occurrence: str | Omit = omit,
58
+ recurring: bool | Omit = omit,
56
59
  roles: Optional[SequenceNotStr[str]] | Omit = omit,
60
+ start_date: str | Omit = omit,
57
61
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
58
62
  # The extra values given here take precedence over values defined on the client or passed to this method.
59
63
  extra_headers: Headers | None = None,
@@ -82,7 +86,11 @@ class ServiceBundlesResource(SyncAPIResource):
82
86
  "bundle_name": bundle_name,
83
87
  "service_ids": service_ids,
84
88
  "_id": _id,
89
+ "limit": limit,
90
+ "occurrence": occurrence,
91
+ "recurring": recurring,
85
92
  "roles": roles,
93
+ "start_date": start_date,
86
94
  },
87
95
  service_bundle_create_params.ServiceBundleCreateParams,
88
96
  ),
@@ -136,7 +144,11 @@ class ServiceBundlesResource(SyncAPIResource):
136
144
  bundle_name: str,
137
145
  service_ids: SequenceNotStr[str],
138
146
  _id: str | Omit = omit,
147
+ limit: float | Omit = omit,
148
+ occurrence: str | Omit = omit,
149
+ recurring: bool | Omit = omit,
139
150
  roles: Optional[SequenceNotStr[str]] | Omit = omit,
151
+ start_date: str | Omit = omit,
140
152
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
141
153
  # The extra values given here take precedence over values defined on the client or passed to this method.
142
154
  extra_headers: Headers | None = None,
@@ -167,7 +179,11 @@ class ServiceBundlesResource(SyncAPIResource):
167
179
  "bundle_name": bundle_name,
168
180
  "service_ids": service_ids,
169
181
  "_id": _id,
182
+ "limit": limit,
183
+ "occurrence": occurrence,
184
+ "recurring": recurring,
170
185
  "roles": roles,
186
+ "start_date": start_date,
171
187
  },
172
188
  service_bundle_update_params.ServiceBundleUpdateParams,
173
189
  ),
@@ -275,7 +291,11 @@ class AsyncServiceBundlesResource(AsyncAPIResource):
275
291
  bundle_name: str,
276
292
  service_ids: SequenceNotStr[str],
277
293
  _id: str | Omit = omit,
294
+ limit: float | Omit = omit,
295
+ occurrence: str | Omit = omit,
296
+ recurring: bool | Omit = omit,
278
297
  roles: Optional[SequenceNotStr[str]] | Omit = omit,
298
+ start_date: str | Omit = omit,
279
299
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
280
300
  # The extra values given here take precedence over values defined on the client or passed to this method.
281
301
  extra_headers: Headers | None = None,
@@ -304,7 +324,11 @@ class AsyncServiceBundlesResource(AsyncAPIResource):
304
324
  "bundle_name": bundle_name,
305
325
  "service_ids": service_ids,
306
326
  "_id": _id,
327
+ "limit": limit,
328
+ "occurrence": occurrence,
329
+ "recurring": recurring,
307
330
  "roles": roles,
331
+ "start_date": start_date,
308
332
  },
309
333
  service_bundle_create_params.ServiceBundleCreateParams,
310
334
  ),
@@ -358,7 +382,11 @@ class AsyncServiceBundlesResource(AsyncAPIResource):
358
382
  bundle_name: str,
359
383
  service_ids: SequenceNotStr[str],
360
384
  _id: str | Omit = omit,
385
+ limit: float | Omit = omit,
386
+ occurrence: str | Omit = omit,
387
+ recurring: bool | Omit = omit,
361
388
  roles: Optional[SequenceNotStr[str]] | Omit = omit,
389
+ start_date: str | Omit = omit,
362
390
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
363
391
  # The extra values given here take precedence over values defined on the client or passed to this method.
364
392
  extra_headers: Headers | None = None,
@@ -389,7 +417,11 @@ class AsyncServiceBundlesResource(AsyncAPIResource):
389
417
  "bundle_name": bundle_name,
390
418
  "service_ids": service_ids,
391
419
  "_id": _id,
420
+ "limit": limit,
421
+ "occurrence": occurrence,
422
+ "recurring": recurring,
392
423
  "roles": roles,
424
+ "start_date": start_date,
393
425
  },
394
426
  service_bundle_update_params.ServiceBundleUpdateParams,
395
427
  ),
@@ -18,4 +18,12 @@ class ServiceBundleCreateParams(TypedDict, total=False):
18
18
 
19
19
  _id: str
20
20
 
21
+ limit: float
22
+
23
+ occurrence: str
24
+
25
+ recurring: bool
26
+
21
27
  roles: Optional[SequenceNotStr[str]]
28
+
29
+ start_date: Annotated[str, PropertyInfo(alias="startDate")]
@@ -22,8 +22,16 @@ class ServiceBundleCreateResponse(BaseModel):
22
22
 
23
23
  created_by: Optional[str] = FieldInfo(alias="createdBy", default=None)
24
24
 
25
+ limit: Optional[float] = None
26
+
27
+ occurrence: Optional[str] = None
28
+
29
+ recurring: Optional[bool] = None
30
+
25
31
  roles: Optional[List[str]] = None
26
32
 
33
+ start_date: Optional[str] = FieldInfo(alias="startDate", default=None)
34
+
27
35
  updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None)
28
36
 
29
37
  updated_by: Optional[str] = FieldInfo(alias="updatedBy", default=None)
@@ -23,8 +23,16 @@ class ServiceBundleListResponseItem(BaseModel):
23
23
 
24
24
  created_by: Optional[str] = FieldInfo(alias="createdBy", default=None)
25
25
 
26
+ limit: Optional[float] = None
27
+
28
+ occurrence: Optional[str] = None
29
+
30
+ recurring: Optional[bool] = None
31
+
26
32
  roles: Optional[List[str]] = None
27
33
 
34
+ start_date: Optional[str] = FieldInfo(alias="startDate", default=None)
35
+
28
36
  updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None)
29
37
 
30
38
  updated_by: Optional[str] = FieldInfo(alias="updatedBy", default=None)
@@ -22,8 +22,16 @@ class ServiceBundleRetrieveResponse(BaseModel):
22
22
 
23
23
  created_by: Optional[str] = FieldInfo(alias="createdBy", default=None)
24
24
 
25
+ limit: Optional[float] = None
26
+
27
+ occurrence: Optional[str] = None
28
+
29
+ recurring: Optional[bool] = None
30
+
25
31
  roles: Optional[List[str]] = None
26
32
 
33
+ start_date: Optional[str] = FieldInfo(alias="startDate", default=None)
34
+
27
35
  updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None)
28
36
 
29
37
  updated_by: Optional[str] = FieldInfo(alias="updatedBy", default=None)
@@ -20,4 +20,12 @@ class ServiceBundleUpdateParams(TypedDict, total=False):
20
20
 
21
21
  _id: str
22
22
 
23
+ limit: float
24
+
25
+ occurrence: str
26
+
27
+ recurring: bool
28
+
23
29
  roles: Optional[SequenceNotStr[str]]
30
+
31
+ start_date: Annotated[str, PropertyInfo(alias="startDate")]
@@ -22,8 +22,16 @@ class ServiceBundleUpdateResponse(BaseModel):
22
22
 
23
23
  created_by: Optional[str] = FieldInfo(alias="createdBy", default=None)
24
24
 
25
+ limit: Optional[float] = None
26
+
27
+ occurrence: Optional[str] = None
28
+
29
+ recurring: Optional[bool] = None
30
+
25
31
  roles: Optional[List[str]] = None
26
32
 
33
+ start_date: Optional[str] = FieldInfo(alias="startDate", default=None)
34
+
27
35
  updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None)
28
36
 
29
37
  updated_by: Optional[str] = FieldInfo(alias="updatedBy", default=None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bluehive
3
- Version: 0.1.0a13
3
+ Version: 0.1.0a15
4
4
  Summary: The official Python library for the bluehive API
5
5
  Project-URL: Homepage, https://github.com/bluehive-health/bluehive-sdk-python
6
6
  Project-URL: Repository, https://github.com/bluehive-health/bluehive-sdk-python
@@ -30,7 +30,7 @@ Requires-Dist: sniffio
30
30
  Requires-Dist: typing-extensions<5,>=4.10
31
31
  Provides-Extra: aiohttp
32
32
  Requires-Dist: aiohttp; extra == 'aiohttp'
33
- Requires-Dist: httpx-aiohttp>=0.1.8; extra == 'aiohttp'
33
+ Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
34
34
  Description-Content-Type: text/markdown
35
35
 
36
36
  # BlueHive Python API library
@@ -9,9 +9,9 @@ bluehive/_models.py,sha256=lKnskYPONAWDvWo8tmbbVk7HmG7UOsI0Nve0vSMmkRc,30452
9
9
  bluehive/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
10
10
  bluehive/_resource.py,sha256=MI2mGktYiePpr3PUh2uCPn1ubEsju6JkKoMupdTaqtc,1112
11
11
  bluehive/_response.py,sha256=u3wZ9ksvCqcP549TZTsozw0LNZmHf1yPVWPo1hxMNDg,28800
12
- bluehive/_streaming.py,sha256=NQNWmPF1nXVRx0ua8CLGyKAdhI8IBcLSZ022LenbQHw,10108
12
+ bluehive/_streaming.py,sha256=ULiijxzSukAhT9t9G-1Mo2ks4iUt6kvD9NHYB8WlJwk,10157
13
13
  bluehive/_types.py,sha256=9h31eihqlGo3KevS5EpSAWg-hJWTZW4wsWCrlTkVC_4,7238
14
- bluehive/_version.py,sha256=E-6Yvz0j2ONcWqFBGw1IPomYoXiC6Ah8EglG99DYbBk,169
14
+ bluehive/_version.py,sha256=3uN7yfthe1XPYhzKyeUZYeuZsCx5qKRq1yw7OpNHvvQ,169
15
15
  bluehive/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  bluehive/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
17
  bluehive/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
@@ -38,7 +38,7 @@ bluehive/resources/providers.py,sha256=jvPpIL2LOJGtImcQPDjLnhwd84XKshBO8PHiDbmAf
38
38
  bluehive/resources/version.py,sha256=AJw0eWmUC1zJyQ-gYaO_7WOmrqN-Nmi1EpwqAOabCWI,5065
39
39
  bluehive/resources/employers/__init__.py,sha256=-ovT4pUPpmcAS2DPbKjmVXA7AkTPtnYjQGRNNjtFd5Y,1146
40
40
  bluehive/resources/employers/employers.py,sha256=y1ntoaxVC0ItOoJvJKoZFZvUlyaOSdgwnMxaKPSFhII,15415
41
- bluehive/resources/employers/service_bundles.py,sha256=09ghOW4ylRenqWC_naLdiGQEOMTcfGscnvrdIFaJPqM,21860
41
+ bluehive/resources/employers/service_bundles.py,sha256=EOKYyHZFLX_8w989a_DxLqiFrJ6mfcHNvgpW1R0LHZE,23160
42
42
  bluehive/types/__init__.py,sha256=Hi8LR0U2r8dB-9tZRTF7ar_p2sK9sYIcR_VP2HbbcuY,4051
43
43
  bluehive/types/database_check_health_response.py,sha256=zLlcDlDzrebwMLjVVwLtYLt-s9v5s-ogQoKOhLDgfeA,986
44
44
  bluehive/types/employee_create_params.py,sha256=sDBBCKkTyuDobdh8aKuWo_nH1oi2PwKmS8UVkAp4KVI,1415
@@ -85,13 +85,13 @@ bluehive/types/provider_lookup_params.py,sha256=AdCTBg4zGO8CuFE6l9uBK-Jlit9Hnhl6
85
85
  bluehive/types/provider_lookup_response.py,sha256=HkksVP7EBBBf6uElADofAkoLwcvdwl-jri66dROXmxs,1039
86
86
  bluehive/types/version_retrieve_response.py,sha256=TjSvHtF0tisleVxZB3u7y-cJOIbgouIvsWkAoHpOJUg,219
87
87
  bluehive/types/employers/__init__.py,sha256=WwMzOBPbInJZgnPC5KSK3NFku_5mTfWZXTsGNTrzDdg,729
88
- bluehive/types/employers/service_bundle_create_params.py,sha256=3yOPx4mqaWJjONHR4hhSCTEPrvPCOeDLFus1MLHUyd0,610
89
- bluehive/types/employers/service_bundle_create_response.py,sha256=yVJns7s5Clpe0BscRx5HGyNYaJlyRQBXeuPFc54RqDM,839
90
- bluehive/types/employers/service_bundle_list_response.py,sha256=4Vl8fCq2vkX7GA0epdtOxVD1Xde5Gu178Sg0AC3uX6k,989
91
- bluehive/types/employers/service_bundle_retrieve_response.py,sha256=mJ2Bpw-ND9SLorYw3qsx0Jl6oBZmq-u065nCyZpTDk8,843
92
- bluehive/types/employers/service_bundle_update_params.py,sha256=jDzhSVOUkdCVMChEg9jzQA-GurewPEHpa9gYRAd0BYE,687
93
- bluehive/types/employers/service_bundle_update_response.py,sha256=GeR_rGw3kAzpjWrsMeSYF2cCQtWWOWdCR77vKeB26J8,839
94
- bluehive-0.1.0a13.dist-info/METADATA,sha256=u9RgT4dBWpfV73_Xs3foJ-fyVJh4sd9FuXDoa8gzpJE,13679
95
- bluehive-0.1.0a13.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
96
- bluehive-0.1.0a13.dist-info/licenses/LICENSE,sha256=Q2LP5YQQAGzyScIIkgum9Z19KCG4jZvZHMgDQ_vOOqM,11338
97
- bluehive-0.1.0a13.dist-info/RECORD,,
88
+ bluehive/types/employers/service_bundle_create_params.py,sha256=I4eXQkTWgTv_ONxElXEZkRsZ5sub7JSy_7q6TythdYo,735
89
+ bluehive/types/employers/service_bundle_create_response.py,sha256=XDu_qGiU4GWhxCVl4PAqiyVcsR021prDSMULFnlUY48,1026
90
+ bluehive/types/employers/service_bundle_list_response.py,sha256=vnZlYv7KObJ0OSSY00-g2wRbW7VAFr-VNor29WiInCI,1176
91
+ bluehive/types/employers/service_bundle_retrieve_response.py,sha256=9nwdzfgErAQFzqwivKhKCLqA9k7ZsMj4YbNig09-Eho,1030
92
+ bluehive/types/employers/service_bundle_update_params.py,sha256=gxRnvCSsBsUqi1M91nhEXgj-2l03xlrnPeXOPAQ1ujA,812
93
+ bluehive/types/employers/service_bundle_update_response.py,sha256=zUR_nYflDEmLSmTcFb4EaTELCInqZZI-VIBHgcPq7G4,1026
94
+ bluehive-0.1.0a15.dist-info/METADATA,sha256=fQANK2hG4-P6lF-E8Gpa9G0rj8stVLYo-ieElm7LE6w,13679
95
+ bluehive-0.1.0a15.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
96
+ bluehive-0.1.0a15.dist-info/licenses/LICENSE,sha256=Q2LP5YQQAGzyScIIkgum9Z19KCG4jZvZHMgDQ_vOOqM,11338
97
+ bluehive-0.1.0a15.dist-info/RECORD,,