pingram-python 1.0.33__py3-none-any.whl → 1.0.35__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.
- pingram/__init__.py +15 -1
- pingram/api/account_api.py +20 -3
- pingram/api/user_api.py +75 -1215
- pingram/api/webhooks_api.py +24 -24
- pingram/api_client.py +1 -1
- pingram/configuration.py +1 -1
- pingram/models/__init__.py +7 -0
- pingram/models/create_account_request_plan.py +2 -2
- pingram/models/get_usage_history_query.py +5 -3
- pingram/models/get_usage_history_response.py +1 -1
- pingram/models/get_usage_history_response_items_inner.py +1 -1
- pingram/models/user_preferences_get_response.py +115 -0
- pingram/models/user_preferences_get_response_notifications_inner.py +98 -0
- pingram/models/user_preferences_get_response_preferences_inner.py +101 -0
- pingram/models/user_preferences_get_response_sub_notifications_inner.py +91 -0
- pingram/models/user_preferences_post_request_inner.py +106 -0
- pingram/models/user_preferences_post_response_inner.py +103 -0
- pingram/models/user_preferences_post_response_inner_channels_states_inner.py +99 -0
- pingram/models/webhook_endpoint.py +3 -3
- pingram/models/webhook_endpoint_upsert_request.py +2 -2
- pingram/models/webhook_endpoints_response_endpoints_inner.py +3 -3
- {pingram_python-1.0.33.dist-info → pingram_python-1.0.35.dist-info}/METADATA +1 -1
- {pingram_python-1.0.33.dist-info → pingram_python-1.0.35.dist-info}/RECORD +26 -19
- {pingram_python-1.0.33.dist-info → pingram_python-1.0.35.dist-info}/WHEEL +0 -0
- {pingram_python-1.0.33.dist-info → pingram_python-1.0.35.dist-info}/licenses/LICENSE +0 -0
- {pingram_python-1.0.33.dist-info → pingram_python-1.0.35.dist-info}/top_level.txt +0 -0
pingram/__init__.py
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "1.0.
|
|
17
|
+
__version__ = "1.0.35"
|
|
18
18
|
|
|
19
19
|
# Define package exports
|
|
20
20
|
__all__ = [
|
|
@@ -335,6 +335,13 @@ __all__ = [
|
|
|
335
335
|
"UpdateVoiceAgentRequest",
|
|
336
336
|
"UpdateVoiceAgentResponse",
|
|
337
337
|
"User",
|
|
338
|
+
"UserPreferencesGETResponse",
|
|
339
|
+
"UserPreferencesGETResponseNotificationsInner",
|
|
340
|
+
"UserPreferencesGETResponsePreferencesInner",
|
|
341
|
+
"UserPreferencesGETResponseSubNotificationsInner",
|
|
342
|
+
"UserPreferencesPOSTRequestInner",
|
|
343
|
+
"UserPreferencesPOSTResponseInner",
|
|
344
|
+
"UserPreferencesPOSTResponseInnerChannelsStatesInner",
|
|
338
345
|
"UserSuppressionDeleteResponse",
|
|
339
346
|
"VoiceBrowserCallRequest",
|
|
340
347
|
"VoiceBrowserCallResponse",
|
|
@@ -670,6 +677,13 @@ from pingram.models.update_broadcast_request import UpdateBroadcastRequest as Up
|
|
|
670
677
|
from pingram.models.update_voice_agent_request import UpdateVoiceAgentRequest as UpdateVoiceAgentRequest
|
|
671
678
|
from pingram.models.update_voice_agent_response import UpdateVoiceAgentResponse as UpdateVoiceAgentResponse
|
|
672
679
|
from pingram.models.user import User as User
|
|
680
|
+
from pingram.models.user_preferences_get_response import UserPreferencesGETResponse as UserPreferencesGETResponse
|
|
681
|
+
from pingram.models.user_preferences_get_response_notifications_inner import UserPreferencesGETResponseNotificationsInner as UserPreferencesGETResponseNotificationsInner
|
|
682
|
+
from pingram.models.user_preferences_get_response_preferences_inner import UserPreferencesGETResponsePreferencesInner as UserPreferencesGETResponsePreferencesInner
|
|
683
|
+
from pingram.models.user_preferences_get_response_sub_notifications_inner import UserPreferencesGETResponseSubNotificationsInner as UserPreferencesGETResponseSubNotificationsInner
|
|
684
|
+
from pingram.models.user_preferences_post_request_inner import UserPreferencesPOSTRequestInner as UserPreferencesPOSTRequestInner
|
|
685
|
+
from pingram.models.user_preferences_post_response_inner import UserPreferencesPOSTResponseInner as UserPreferencesPOSTResponseInner
|
|
686
|
+
from pingram.models.user_preferences_post_response_inner_channels_states_inner import UserPreferencesPOSTResponseInnerChannelsStatesInner as UserPreferencesPOSTResponseInnerChannelsStatesInner
|
|
673
687
|
from pingram.models.user_suppression_delete_response import UserSuppressionDeleteResponse as UserSuppressionDeleteResponse
|
|
674
688
|
from pingram.models.voice_browser_call_request import VoiceBrowserCallRequest as VoiceBrowserCallRequest
|
|
675
689
|
from pingram.models.voice_browser_call_response import VoiceBrowserCallResponse as VoiceBrowserCallResponse
|
pingram/api/account_api.py
CHANGED
|
@@ -1128,6 +1128,7 @@ class AccountApi:
|
|
|
1128
1128
|
self,
|
|
1129
1129
|
start_date: Annotated[StrictStr, Field(description="Start date (YYYY-MM-DD) for the range")],
|
|
1130
1130
|
end_date: Annotated[StrictStr, Field(description="End date (YYYY-MM-DD) for the range")],
|
|
1131
|
+
group_by: Annotated[Optional[StrictStr], Field(description="calendar (UTC months, default) or billing (account billing cycles)")] = None,
|
|
1131
1132
|
_request_timeout: Union[
|
|
1132
1133
|
None,
|
|
1133
1134
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1141,13 +1142,15 @@ class AccountApi:
|
|
|
1141
1142
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1142
1143
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1143
1144
|
) -> GetUsageHistoryResponse:
|
|
1144
|
-
"""Get historical usage for the authenticated account over a date range.
|
|
1145
|
+
"""Get historical usage for the authenticated account over a date range, summed by UTC calendar month or billing cycle from daily counts.
|
|
1145
1146
|
|
|
1146
1147
|
|
|
1147
1148
|
:param start_date: Start date (YYYY-MM-DD) for the range (required)
|
|
1148
1149
|
:type start_date: str
|
|
1149
1150
|
:param end_date: End date (YYYY-MM-DD) for the range (required)
|
|
1150
1151
|
:type end_date: str
|
|
1152
|
+
:param group_by: calendar (UTC months, default) or billing (account billing cycles)
|
|
1153
|
+
:type group_by: str
|
|
1151
1154
|
:param _request_timeout: timeout setting for this request. If one
|
|
1152
1155
|
number provided, it will be total request
|
|
1153
1156
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1173,6 +1176,7 @@ class AccountApi:
|
|
|
1173
1176
|
_param = self._account_get_usage_history_serialize(
|
|
1174
1177
|
start_date=start_date,
|
|
1175
1178
|
end_date=end_date,
|
|
1179
|
+
group_by=group_by,
|
|
1176
1180
|
_request_auth=_request_auth,
|
|
1177
1181
|
_content_type=_content_type,
|
|
1178
1182
|
_headers=_headers,
|
|
@@ -1203,6 +1207,7 @@ class AccountApi:
|
|
|
1203
1207
|
self,
|
|
1204
1208
|
start_date: Annotated[StrictStr, Field(description="Start date (YYYY-MM-DD) for the range")],
|
|
1205
1209
|
end_date: Annotated[StrictStr, Field(description="End date (YYYY-MM-DD) for the range")],
|
|
1210
|
+
group_by: Annotated[Optional[StrictStr], Field(description="calendar (UTC months, default) or billing (account billing cycles)")] = None,
|
|
1206
1211
|
_request_timeout: Union[
|
|
1207
1212
|
None,
|
|
1208
1213
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1216,13 +1221,15 @@ class AccountApi:
|
|
|
1216
1221
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1217
1222
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1218
1223
|
) -> ApiResponse[GetUsageHistoryResponse]:
|
|
1219
|
-
"""Get historical usage for the authenticated account over a date range.
|
|
1224
|
+
"""Get historical usage for the authenticated account over a date range, summed by UTC calendar month or billing cycle from daily counts.
|
|
1220
1225
|
|
|
1221
1226
|
|
|
1222
1227
|
:param start_date: Start date (YYYY-MM-DD) for the range (required)
|
|
1223
1228
|
:type start_date: str
|
|
1224
1229
|
:param end_date: End date (YYYY-MM-DD) for the range (required)
|
|
1225
1230
|
:type end_date: str
|
|
1231
|
+
:param group_by: calendar (UTC months, default) or billing (account billing cycles)
|
|
1232
|
+
:type group_by: str
|
|
1226
1233
|
:param _request_timeout: timeout setting for this request. If one
|
|
1227
1234
|
number provided, it will be total request
|
|
1228
1235
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1248,6 +1255,7 @@ class AccountApi:
|
|
|
1248
1255
|
_param = self._account_get_usage_history_serialize(
|
|
1249
1256
|
start_date=start_date,
|
|
1250
1257
|
end_date=end_date,
|
|
1258
|
+
group_by=group_by,
|
|
1251
1259
|
_request_auth=_request_auth,
|
|
1252
1260
|
_content_type=_content_type,
|
|
1253
1261
|
_headers=_headers,
|
|
@@ -1278,6 +1286,7 @@ class AccountApi:
|
|
|
1278
1286
|
self,
|
|
1279
1287
|
start_date: Annotated[StrictStr, Field(description="Start date (YYYY-MM-DD) for the range")],
|
|
1280
1288
|
end_date: Annotated[StrictStr, Field(description="End date (YYYY-MM-DD) for the range")],
|
|
1289
|
+
group_by: Annotated[Optional[StrictStr], Field(description="calendar (UTC months, default) or billing (account billing cycles)")] = None,
|
|
1281
1290
|
_request_timeout: Union[
|
|
1282
1291
|
None,
|
|
1283
1292
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1291,13 +1300,15 @@ class AccountApi:
|
|
|
1291
1300
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1292
1301
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1293
1302
|
) -> RESTResponseType:
|
|
1294
|
-
"""Get historical usage for the authenticated account over a date range.
|
|
1303
|
+
"""Get historical usage for the authenticated account over a date range, summed by UTC calendar month or billing cycle from daily counts.
|
|
1295
1304
|
|
|
1296
1305
|
|
|
1297
1306
|
:param start_date: Start date (YYYY-MM-DD) for the range (required)
|
|
1298
1307
|
:type start_date: str
|
|
1299
1308
|
:param end_date: End date (YYYY-MM-DD) for the range (required)
|
|
1300
1309
|
:type end_date: str
|
|
1310
|
+
:param group_by: calendar (UTC months, default) or billing (account billing cycles)
|
|
1311
|
+
:type group_by: str
|
|
1301
1312
|
:param _request_timeout: timeout setting for this request. If one
|
|
1302
1313
|
number provided, it will be total request
|
|
1303
1314
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1323,6 +1334,7 @@ class AccountApi:
|
|
|
1323
1334
|
_param = self._account_get_usage_history_serialize(
|
|
1324
1335
|
start_date=start_date,
|
|
1325
1336
|
end_date=end_date,
|
|
1337
|
+
group_by=group_by,
|
|
1326
1338
|
_request_auth=_request_auth,
|
|
1327
1339
|
_content_type=_content_type,
|
|
1328
1340
|
_headers=_headers,
|
|
@@ -1348,6 +1360,7 @@ class AccountApi:
|
|
|
1348
1360
|
self,
|
|
1349
1361
|
start_date,
|
|
1350
1362
|
end_date,
|
|
1363
|
+
group_by,
|
|
1351
1364
|
_request_auth,
|
|
1352
1365
|
_content_type,
|
|
1353
1366
|
_headers,
|
|
@@ -1378,6 +1391,10 @@ class AccountApi:
|
|
|
1378
1391
|
|
|
1379
1392
|
_query_params.append(('endDate', end_date))
|
|
1380
1393
|
|
|
1394
|
+
if group_by is not None:
|
|
1395
|
+
|
|
1396
|
+
_query_params.append(('groupBy', group_by))
|
|
1397
|
+
|
|
1381
1398
|
# process the header parameters
|
|
1382
1399
|
# process the form parameters
|
|
1383
1400
|
# process the body parameter
|