neurograph-core 1.202510052316__py3-none-any.whl → 1.202510092216__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.
- neurograph/v1/__init__.py +26 -0
- neurograph/v1/api/reporting_api.py +264 -0
- neurograph/v1/models/__init__.py +13 -0
- neurograph/v1/models/client_persona.py +4 -2
- neurograph/v1/models/knowledge_enrichment_artifact_create_request.py +3 -1
- neurograph/v1/models/reporting_chart_data.py +97 -0
- neurograph/v1/models/reporting_chart_dataset.py +93 -0
- neurograph/v1/models/reporting_chart_defaults.py +91 -0
- neurograph/v1/models/reporting_chart_options.py +93 -0
- neurograph/v1/models/reporting_content_config.py +113 -0
- neurograph/v1/models/reporting_data_range.py +89 -0
- neurograph/v1/models/reporting_exploration_topic.py +91 -0
- neurograph/v1/models/reporting_header_config.py +89 -0
- neurograph/v1/models/reporting_meta_config.py +99 -0
- neurograph/v1/models/reporting_primary_analysis.py +99 -0
- neurograph/v1/models/reporting_rich_insights_config.py +97 -0
- neurograph/v1/models/reporting_visualization.py +103 -0
- neurograph/v1/models/reporting_visualization_insights.py +91 -0
- {neurograph_core-1.202510052316.dist-info → neurograph_core-1.202510092216.dist-info}/METADATA +1 -1
- {neurograph_core-1.202510052316.dist-info → neurograph_core-1.202510092216.dist-info}/RECORD +22 -9
- {neurograph_core-1.202510052316.dist-info → neurograph_core-1.202510092216.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202510052316.dist-info → neurograph_core-1.202510092216.dist-info}/top_level.txt +0 -0
neurograph/v1/__init__.py
CHANGED
|
@@ -212,12 +212,25 @@ __all__ = [
|
|
|
212
212
|
"PgtypeText",
|
|
213
213
|
"PgtypeTimestamp",
|
|
214
214
|
"ReportingAffinitiesResponse",
|
|
215
|
+
"ReportingChartData",
|
|
216
|
+
"ReportingChartDataset",
|
|
217
|
+
"ReportingChartDefaults",
|
|
218
|
+
"ReportingChartOptions",
|
|
219
|
+
"ReportingContentConfig",
|
|
215
220
|
"ReportingCustomerActivityResponse",
|
|
216
221
|
"ReportingDailyMetric",
|
|
217
222
|
"ReportingDailyMetricsResponse",
|
|
223
|
+
"ReportingDataRange",
|
|
224
|
+
"ReportingExplorationTopic",
|
|
225
|
+
"ReportingHeaderConfig",
|
|
226
|
+
"ReportingMetaConfig",
|
|
218
227
|
"ReportingPersonaActivityResponse",
|
|
219
228
|
"ReportingPersonasResponse",
|
|
229
|
+
"ReportingPrimaryAnalysis",
|
|
220
230
|
"ReportingQuery",
|
|
231
|
+
"ReportingRichInsightsConfig",
|
|
232
|
+
"ReportingVisualization",
|
|
233
|
+
"ReportingVisualizationInsights",
|
|
221
234
|
"WorkbenchWorkbenchUrlCheckRequest",
|
|
222
235
|
"WorkbenchWorkbenchUrlCheckResponse",
|
|
223
236
|
"WorkbenchWorkbenchVersion",
|
|
@@ -425,12 +438,25 @@ from neurograph.v1.models.pgtype_int8 import PgtypeInt8 as PgtypeInt8
|
|
|
425
438
|
from neurograph.v1.models.pgtype_text import PgtypeText as PgtypeText
|
|
426
439
|
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp as PgtypeTimestamp
|
|
427
440
|
from neurograph.v1.models.reporting_affinities_response import ReportingAffinitiesResponse as ReportingAffinitiesResponse
|
|
441
|
+
from neurograph.v1.models.reporting_chart_data import ReportingChartData as ReportingChartData
|
|
442
|
+
from neurograph.v1.models.reporting_chart_dataset import ReportingChartDataset as ReportingChartDataset
|
|
443
|
+
from neurograph.v1.models.reporting_chart_defaults import ReportingChartDefaults as ReportingChartDefaults
|
|
444
|
+
from neurograph.v1.models.reporting_chart_options import ReportingChartOptions as ReportingChartOptions
|
|
445
|
+
from neurograph.v1.models.reporting_content_config import ReportingContentConfig as ReportingContentConfig
|
|
428
446
|
from neurograph.v1.models.reporting_customer_activity_response import ReportingCustomerActivityResponse as ReportingCustomerActivityResponse
|
|
429
447
|
from neurograph.v1.models.reporting_daily_metric import ReportingDailyMetric as ReportingDailyMetric
|
|
430
448
|
from neurograph.v1.models.reporting_daily_metrics_response import ReportingDailyMetricsResponse as ReportingDailyMetricsResponse
|
|
449
|
+
from neurograph.v1.models.reporting_data_range import ReportingDataRange as ReportingDataRange
|
|
450
|
+
from neurograph.v1.models.reporting_exploration_topic import ReportingExplorationTopic as ReportingExplorationTopic
|
|
451
|
+
from neurograph.v1.models.reporting_header_config import ReportingHeaderConfig as ReportingHeaderConfig
|
|
452
|
+
from neurograph.v1.models.reporting_meta_config import ReportingMetaConfig as ReportingMetaConfig
|
|
431
453
|
from neurograph.v1.models.reporting_persona_activity_response import ReportingPersonaActivityResponse as ReportingPersonaActivityResponse
|
|
432
454
|
from neurograph.v1.models.reporting_personas_response import ReportingPersonasResponse as ReportingPersonasResponse
|
|
455
|
+
from neurograph.v1.models.reporting_primary_analysis import ReportingPrimaryAnalysis as ReportingPrimaryAnalysis
|
|
433
456
|
from neurograph.v1.models.reporting_query import ReportingQuery as ReportingQuery
|
|
457
|
+
from neurograph.v1.models.reporting_rich_insights_config import ReportingRichInsightsConfig as ReportingRichInsightsConfig
|
|
458
|
+
from neurograph.v1.models.reporting_visualization import ReportingVisualization as ReportingVisualization
|
|
459
|
+
from neurograph.v1.models.reporting_visualization_insights import ReportingVisualizationInsights as ReportingVisualizationInsights
|
|
434
460
|
from neurograph.v1.models.workbench_workbench_url_check_request import WorkbenchWorkbenchUrlCheckRequest as WorkbenchWorkbenchUrlCheckRequest
|
|
435
461
|
from neurograph.v1.models.workbench_workbench_url_check_response import WorkbenchWorkbenchUrlCheckResponse as WorkbenchWorkbenchUrlCheckResponse
|
|
436
462
|
from neurograph.v1.models.workbench_workbench_version import WorkbenchWorkbenchVersion as WorkbenchWorkbenchVersion
|
|
@@ -25,6 +25,7 @@ from neurograph.v1.models.reporting_daily_metrics_response import ReportingDaily
|
|
|
25
25
|
from neurograph.v1.models.reporting_persona_activity_response import ReportingPersonaActivityResponse
|
|
26
26
|
from neurograph.v1.models.reporting_personas_response import ReportingPersonasResponse
|
|
27
27
|
from neurograph.v1.models.reporting_query import ReportingQuery
|
|
28
|
+
from neurograph.v1.models.reporting_rich_insights_config import ReportingRichInsightsConfig
|
|
28
29
|
|
|
29
30
|
from neurograph.v1.api_client import ApiClient, RequestSerialized
|
|
30
31
|
from neurograph.v1.api_response import ApiResponse
|
|
@@ -345,6 +346,269 @@ class ReportingApi:
|
|
|
345
346
|
|
|
346
347
|
|
|
347
348
|
|
|
349
|
+
@validate_call
|
|
350
|
+
def api_v1_reporting_client_uid_get(
|
|
351
|
+
self,
|
|
352
|
+
client_uid: Annotated[StrictStr, Field(description="client's uid, eg. arthaus")],
|
|
353
|
+
_request_timeout: Union[
|
|
354
|
+
None,
|
|
355
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
356
|
+
Tuple[
|
|
357
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
358
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
359
|
+
]
|
|
360
|
+
] = None,
|
|
361
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
362
|
+
_content_type: Optional[StrictStr] = None,
|
|
363
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
364
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
365
|
+
) -> ReportingRichInsightsConfig:
|
|
366
|
+
"""Get AI Summary by Client UID
|
|
367
|
+
|
|
368
|
+
Get AI Summary by Client UID
|
|
369
|
+
|
|
370
|
+
:param client_uid: client's uid, eg. arthaus (required)
|
|
371
|
+
:type client_uid: str
|
|
372
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
373
|
+
number provided, it will be total request
|
|
374
|
+
timeout. It can also be a pair (tuple) of
|
|
375
|
+
(connection, read) timeouts.
|
|
376
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
377
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
378
|
+
request; this effectively ignores the
|
|
379
|
+
authentication in the spec for a single request.
|
|
380
|
+
:type _request_auth: dict, optional
|
|
381
|
+
:param _content_type: force content-type for the request.
|
|
382
|
+
:type _content_type: str, Optional
|
|
383
|
+
:param _headers: set to override the headers for a single
|
|
384
|
+
request; this effectively ignores the headers
|
|
385
|
+
in the spec for a single request.
|
|
386
|
+
:type _headers: dict, optional
|
|
387
|
+
:param _host_index: set to override the host_index for a single
|
|
388
|
+
request; this effectively ignores the host_index
|
|
389
|
+
in the spec for a single request.
|
|
390
|
+
:type _host_index: int, optional
|
|
391
|
+
:return: Returns the result object.
|
|
392
|
+
""" # noqa: E501
|
|
393
|
+
|
|
394
|
+
_param = self._api_v1_reporting_client_uid_get_serialize(
|
|
395
|
+
client_uid=client_uid,
|
|
396
|
+
_request_auth=_request_auth,
|
|
397
|
+
_content_type=_content_type,
|
|
398
|
+
_headers=_headers,
|
|
399
|
+
_host_index=_host_index
|
|
400
|
+
)
|
|
401
|
+
|
|
402
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
403
|
+
'200': "ReportingRichInsightsConfig",
|
|
404
|
+
'503': "ReportingRichInsightsConfig",
|
|
405
|
+
}
|
|
406
|
+
response_data = self.api_client.call_api(
|
|
407
|
+
*_param,
|
|
408
|
+
_request_timeout=_request_timeout
|
|
409
|
+
)
|
|
410
|
+
response_data.read()
|
|
411
|
+
return self.api_client.response_deserialize(
|
|
412
|
+
response_data=response_data,
|
|
413
|
+
response_types_map=_response_types_map,
|
|
414
|
+
).data
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
@validate_call
|
|
418
|
+
def api_v1_reporting_client_uid_get_with_http_info(
|
|
419
|
+
self,
|
|
420
|
+
client_uid: Annotated[StrictStr, Field(description="client's uid, eg. arthaus")],
|
|
421
|
+
_request_timeout: Union[
|
|
422
|
+
None,
|
|
423
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
424
|
+
Tuple[
|
|
425
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
426
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
427
|
+
]
|
|
428
|
+
] = None,
|
|
429
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
430
|
+
_content_type: Optional[StrictStr] = None,
|
|
431
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
432
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
433
|
+
) -> ApiResponse[ReportingRichInsightsConfig]:
|
|
434
|
+
"""Get AI Summary by Client UID
|
|
435
|
+
|
|
436
|
+
Get AI Summary by Client UID
|
|
437
|
+
|
|
438
|
+
:param client_uid: client's uid, eg. arthaus (required)
|
|
439
|
+
:type client_uid: str
|
|
440
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
441
|
+
number provided, it will be total request
|
|
442
|
+
timeout. It can also be a pair (tuple) of
|
|
443
|
+
(connection, read) timeouts.
|
|
444
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
445
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
446
|
+
request; this effectively ignores the
|
|
447
|
+
authentication in the spec for a single request.
|
|
448
|
+
:type _request_auth: dict, optional
|
|
449
|
+
:param _content_type: force content-type for the request.
|
|
450
|
+
:type _content_type: str, Optional
|
|
451
|
+
:param _headers: set to override the headers for a single
|
|
452
|
+
request; this effectively ignores the headers
|
|
453
|
+
in the spec for a single request.
|
|
454
|
+
:type _headers: dict, optional
|
|
455
|
+
:param _host_index: set to override the host_index for a single
|
|
456
|
+
request; this effectively ignores the host_index
|
|
457
|
+
in the spec for a single request.
|
|
458
|
+
:type _host_index: int, optional
|
|
459
|
+
:return: Returns the result object.
|
|
460
|
+
""" # noqa: E501
|
|
461
|
+
|
|
462
|
+
_param = self._api_v1_reporting_client_uid_get_serialize(
|
|
463
|
+
client_uid=client_uid,
|
|
464
|
+
_request_auth=_request_auth,
|
|
465
|
+
_content_type=_content_type,
|
|
466
|
+
_headers=_headers,
|
|
467
|
+
_host_index=_host_index
|
|
468
|
+
)
|
|
469
|
+
|
|
470
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
471
|
+
'200': "ReportingRichInsightsConfig",
|
|
472
|
+
'503': "ReportingRichInsightsConfig",
|
|
473
|
+
}
|
|
474
|
+
response_data = self.api_client.call_api(
|
|
475
|
+
*_param,
|
|
476
|
+
_request_timeout=_request_timeout
|
|
477
|
+
)
|
|
478
|
+
response_data.read()
|
|
479
|
+
return self.api_client.response_deserialize(
|
|
480
|
+
response_data=response_data,
|
|
481
|
+
response_types_map=_response_types_map,
|
|
482
|
+
)
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
@validate_call
|
|
486
|
+
def api_v1_reporting_client_uid_get_without_preload_content(
|
|
487
|
+
self,
|
|
488
|
+
client_uid: Annotated[StrictStr, Field(description="client's uid, eg. arthaus")],
|
|
489
|
+
_request_timeout: Union[
|
|
490
|
+
None,
|
|
491
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
492
|
+
Tuple[
|
|
493
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
494
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
495
|
+
]
|
|
496
|
+
] = None,
|
|
497
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
498
|
+
_content_type: Optional[StrictStr] = None,
|
|
499
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
500
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
501
|
+
) -> RESTResponseType:
|
|
502
|
+
"""Get AI Summary by Client UID
|
|
503
|
+
|
|
504
|
+
Get AI Summary by Client UID
|
|
505
|
+
|
|
506
|
+
:param client_uid: client's uid, eg. arthaus (required)
|
|
507
|
+
:type client_uid: str
|
|
508
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
509
|
+
number provided, it will be total request
|
|
510
|
+
timeout. It can also be a pair (tuple) of
|
|
511
|
+
(connection, read) timeouts.
|
|
512
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
513
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
514
|
+
request; this effectively ignores the
|
|
515
|
+
authentication in the spec for a single request.
|
|
516
|
+
:type _request_auth: dict, optional
|
|
517
|
+
:param _content_type: force content-type for the request.
|
|
518
|
+
:type _content_type: str, Optional
|
|
519
|
+
:param _headers: set to override the headers for a single
|
|
520
|
+
request; this effectively ignores the headers
|
|
521
|
+
in the spec for a single request.
|
|
522
|
+
:type _headers: dict, optional
|
|
523
|
+
:param _host_index: set to override the host_index for a single
|
|
524
|
+
request; this effectively ignores the host_index
|
|
525
|
+
in the spec for a single request.
|
|
526
|
+
:type _host_index: int, optional
|
|
527
|
+
:return: Returns the result object.
|
|
528
|
+
""" # noqa: E501
|
|
529
|
+
|
|
530
|
+
_param = self._api_v1_reporting_client_uid_get_serialize(
|
|
531
|
+
client_uid=client_uid,
|
|
532
|
+
_request_auth=_request_auth,
|
|
533
|
+
_content_type=_content_type,
|
|
534
|
+
_headers=_headers,
|
|
535
|
+
_host_index=_host_index
|
|
536
|
+
)
|
|
537
|
+
|
|
538
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
539
|
+
'200': "ReportingRichInsightsConfig",
|
|
540
|
+
'503': "ReportingRichInsightsConfig",
|
|
541
|
+
}
|
|
542
|
+
response_data = self.api_client.call_api(
|
|
543
|
+
*_param,
|
|
544
|
+
_request_timeout=_request_timeout
|
|
545
|
+
)
|
|
546
|
+
return response_data.response
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
def _api_v1_reporting_client_uid_get_serialize(
|
|
550
|
+
self,
|
|
551
|
+
client_uid,
|
|
552
|
+
_request_auth,
|
|
553
|
+
_content_type,
|
|
554
|
+
_headers,
|
|
555
|
+
_host_index,
|
|
556
|
+
) -> RequestSerialized:
|
|
557
|
+
|
|
558
|
+
_host = None
|
|
559
|
+
|
|
560
|
+
_collection_formats: Dict[str, str] = {
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
_path_params: Dict[str, str] = {}
|
|
564
|
+
_query_params: List[Tuple[str, str]] = []
|
|
565
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
566
|
+
_form_params: List[Tuple[str, str]] = []
|
|
567
|
+
_files: Dict[
|
|
568
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
569
|
+
] = {}
|
|
570
|
+
_body_params: Optional[bytes] = None
|
|
571
|
+
|
|
572
|
+
# process the path parameters
|
|
573
|
+
if client_uid is not None:
|
|
574
|
+
_path_params['client_uid'] = client_uid
|
|
575
|
+
# process the query parameters
|
|
576
|
+
# process the header parameters
|
|
577
|
+
# process the form parameters
|
|
578
|
+
# process the body parameter
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
# set the HTTP header `Accept`
|
|
582
|
+
if 'Accept' not in _header_params:
|
|
583
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
584
|
+
[
|
|
585
|
+
'application/json'
|
|
586
|
+
]
|
|
587
|
+
)
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
# authentication setting
|
|
591
|
+
_auth_settings: List[str] = [
|
|
592
|
+
]
|
|
593
|
+
|
|
594
|
+
return self.api_client.param_serialize(
|
|
595
|
+
method='GET',
|
|
596
|
+
resource_path='/api/v1/reporting/{client_uid}/',
|
|
597
|
+
path_params=_path_params,
|
|
598
|
+
query_params=_query_params,
|
|
599
|
+
header_params=_header_params,
|
|
600
|
+
body=_body_params,
|
|
601
|
+
post_params=_form_params,
|
|
602
|
+
files=_files,
|
|
603
|
+
auth_settings=_auth_settings,
|
|
604
|
+
collection_formats=_collection_formats,
|
|
605
|
+
_host=_host,
|
|
606
|
+
_request_auth=_request_auth
|
|
607
|
+
)
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
|
|
348
612
|
@validate_call
|
|
349
613
|
def api_v1_reporting_customer_activity_get(
|
|
350
614
|
self,
|
neurograph/v1/models/__init__.py
CHANGED
|
@@ -183,12 +183,25 @@ from neurograph.v1.models.pgtype_int8 import PgtypeInt8
|
|
|
183
183
|
from neurograph.v1.models.pgtype_text import PgtypeText
|
|
184
184
|
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
185
185
|
from neurograph.v1.models.reporting_affinities_response import ReportingAffinitiesResponse
|
|
186
|
+
from neurograph.v1.models.reporting_chart_data import ReportingChartData
|
|
187
|
+
from neurograph.v1.models.reporting_chart_dataset import ReportingChartDataset
|
|
188
|
+
from neurograph.v1.models.reporting_chart_defaults import ReportingChartDefaults
|
|
189
|
+
from neurograph.v1.models.reporting_chart_options import ReportingChartOptions
|
|
190
|
+
from neurograph.v1.models.reporting_content_config import ReportingContentConfig
|
|
186
191
|
from neurograph.v1.models.reporting_customer_activity_response import ReportingCustomerActivityResponse
|
|
187
192
|
from neurograph.v1.models.reporting_daily_metric import ReportingDailyMetric
|
|
188
193
|
from neurograph.v1.models.reporting_daily_metrics_response import ReportingDailyMetricsResponse
|
|
194
|
+
from neurograph.v1.models.reporting_data_range import ReportingDataRange
|
|
195
|
+
from neurograph.v1.models.reporting_exploration_topic import ReportingExplorationTopic
|
|
196
|
+
from neurograph.v1.models.reporting_header_config import ReportingHeaderConfig
|
|
197
|
+
from neurograph.v1.models.reporting_meta_config import ReportingMetaConfig
|
|
189
198
|
from neurograph.v1.models.reporting_persona_activity_response import ReportingPersonaActivityResponse
|
|
190
199
|
from neurograph.v1.models.reporting_personas_response import ReportingPersonasResponse
|
|
200
|
+
from neurograph.v1.models.reporting_primary_analysis import ReportingPrimaryAnalysis
|
|
191
201
|
from neurograph.v1.models.reporting_query import ReportingQuery
|
|
202
|
+
from neurograph.v1.models.reporting_rich_insights_config import ReportingRichInsightsConfig
|
|
203
|
+
from neurograph.v1.models.reporting_visualization import ReportingVisualization
|
|
204
|
+
from neurograph.v1.models.reporting_visualization_insights import ReportingVisualizationInsights
|
|
192
205
|
from neurograph.v1.models.workbench_workbench_url_check_request import WorkbenchWorkbenchUrlCheckRequest
|
|
193
206
|
from neurograph.v1.models.workbench_workbench_url_check_response import WorkbenchWorkbenchUrlCheckResponse
|
|
194
207
|
from neurograph.v1.models.workbench_workbench_version import WorkbenchWorkbenchVersion
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
22
22
|
from neurograph.v1.models.client_kpi import ClientKpi
|
|
23
23
|
from neurograph.v1.models.client_persona_factor import ClientPersonaFactor
|
|
@@ -37,6 +37,7 @@ class ClientPersona(BaseModel):
|
|
|
37
37
|
id: Optional[StrictStr] = None
|
|
38
38
|
income: Optional[StrictStr] = None
|
|
39
39
|
insights: Optional[List[ClientPersonaInsight]] = None
|
|
40
|
+
is_active: Optional[StrictBool] = None
|
|
40
41
|
kpis: Optional[List[ClientKpi]] = None
|
|
41
42
|
male: Optional[Union[StrictFloat, StrictInt]] = None
|
|
42
43
|
metadata: Optional[StrictStr] = None
|
|
@@ -57,7 +58,7 @@ class ClientPersona(BaseModel):
|
|
|
57
58
|
ts_created: Optional[StrictInt] = None
|
|
58
59
|
ts_updated: Optional[StrictInt] = None
|
|
59
60
|
value: Optional[StrictStr] = None
|
|
60
|
-
__properties: ClassVar[List[str]] = ["age", "description", "factors", "female", "id", "income", "insights", "kpis", "male", "metadata", "name", "persona_seed_id", "personality_background", "personality_first_name", "personality_img_url", "personality_last_name", "personality_quote", "personality_traits", "personality_video_url", "positioning_statement", "seed_uid", "summary_detail", "summary_headline", "tag", "ts_created", "ts_updated", "value"]
|
|
61
|
+
__properties: ClassVar[List[str]] = ["age", "description", "factors", "female", "id", "income", "insights", "is_active", "kpis", "male", "metadata", "name", "persona_seed_id", "personality_background", "personality_first_name", "personality_img_url", "personality_last_name", "personality_quote", "personality_traits", "personality_video_url", "positioning_statement", "seed_uid", "summary_detail", "summary_headline", "tag", "ts_created", "ts_updated", "value"]
|
|
61
62
|
|
|
62
63
|
model_config = ConfigDict(
|
|
63
64
|
populate_by_name=True,
|
|
@@ -145,6 +146,7 @@ class ClientPersona(BaseModel):
|
|
|
145
146
|
"id": obj.get("id"),
|
|
146
147
|
"income": obj.get("income"),
|
|
147
148
|
"insights": [ClientPersonaInsight.from_dict(_item) for _item in obj["insights"]] if obj.get("insights") is not None else None,
|
|
149
|
+
"is_active": obj.get("is_active"),
|
|
148
150
|
"kpis": [ClientKpi.from_dict(_item) for _item in obj["kpis"]] if obj.get("kpis") is not None else None,
|
|
149
151
|
"male": obj.get("male"),
|
|
150
152
|
"metadata": obj.get("metadata"),
|
|
@@ -26,6 +26,7 @@ class KnowledgeEnrichmentArtifactCreateRequest(BaseModel):
|
|
|
26
26
|
"""
|
|
27
27
|
KnowledgeEnrichmentArtifactCreateRequest
|
|
28
28
|
""" # noqa: E501
|
|
29
|
+
client_id: Optional[StrictStr] = None
|
|
29
30
|
cloud_run_job_name: Optional[StrictStr] = None
|
|
30
31
|
confidence: Optional[Union[StrictFloat, StrictInt]] = None
|
|
31
32
|
config_entity_id: Optional[StrictStr] = None
|
|
@@ -41,7 +42,7 @@ class KnowledgeEnrichmentArtifactCreateRequest(BaseModel):
|
|
|
41
42
|
supersedes_artifact_id: Optional[StrictInt] = None
|
|
42
43
|
task_name: Optional[StrictStr] = None
|
|
43
44
|
task_queue_name: Optional[StrictStr] = None
|
|
44
|
-
__properties: ClassVar[List[str]] = ["cloud_run_job_name", "confidence", "config_entity_id", "config_snapshot", "input_params", "job_name", "kind", "output_json", "output_schema_id", "output_text", "spec_version", "subject_entity_id", "supersedes_artifact_id", "task_name", "task_queue_name"]
|
|
45
|
+
__properties: ClassVar[List[str]] = ["client_id", "cloud_run_job_name", "confidence", "config_entity_id", "config_snapshot", "input_params", "job_name", "kind", "output_json", "output_schema_id", "output_text", "spec_version", "subject_entity_id", "supersedes_artifact_id", "task_name", "task_queue_name"]
|
|
45
46
|
|
|
46
47
|
model_config = ConfigDict(
|
|
47
48
|
populate_by_name=True,
|
|
@@ -94,6 +95,7 @@ class KnowledgeEnrichmentArtifactCreateRequest(BaseModel):
|
|
|
94
95
|
return cls.model_validate(obj)
|
|
95
96
|
|
|
96
97
|
_obj = cls.model_validate({
|
|
98
|
+
"client_id": obj.get("client_id"),
|
|
97
99
|
"cloud_run_job_name": obj.get("cloud_run_job_name"),
|
|
98
100
|
"confidence": obj.get("confidence"),
|
|
99
101
|
"config_entity_id": obj.get("config_entity_id"),
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Neurograph Core
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from neurograph.v1.models.reporting_chart_dataset import ReportingChartDataset
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ReportingChartData(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ReportingChartData
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
datasets: Optional[List[ReportingChartDataset]] = None
|
|
31
|
+
labels: Optional[List[StrictStr]] = None
|
|
32
|
+
__properties: ClassVar[List[str]] = ["datasets", "labels"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of ReportingChartData from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
# override the default output from pydantic by calling `to_dict()` of each item in datasets (list)
|
|
74
|
+
_items = []
|
|
75
|
+
if self.datasets:
|
|
76
|
+
for _item_datasets in self.datasets:
|
|
77
|
+
if _item_datasets:
|
|
78
|
+
_items.append(_item_datasets.to_dict())
|
|
79
|
+
_dict['datasets'] = _items
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of ReportingChartData from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"datasets": [ReportingChartDataset.from_dict(_item) for _item in obj["datasets"]] if obj.get("datasets") is not None else None,
|
|
93
|
+
"labels": obj.get("labels")
|
|
94
|
+
})
|
|
95
|
+
return _obj
|
|
96
|
+
|
|
97
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Neurograph Core
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ReportingChartDataset(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ReportingChartDataset
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
background_color: Optional[StrictStr] = Field(default=None, alias="backgroundColor")
|
|
30
|
+
bar_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="barPercentage")
|
|
31
|
+
data: Optional[List[Union[StrictFloat, StrictInt]]] = None
|
|
32
|
+
label: Optional[StrictStr] = None
|
|
33
|
+
__properties: ClassVar[List[str]] = ["backgroundColor", "barPercentage", "data", "label"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of ReportingChartDataset from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of ReportingChartDataset from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"backgroundColor": obj.get("backgroundColor"),
|
|
87
|
+
"barPercentage": obj.get("barPercentage"),
|
|
88
|
+
"data": obj.get("data"),
|
|
89
|
+
"label": obj.get("label")
|
|
90
|
+
})
|
|
91
|
+
return _obj
|
|
92
|
+
|
|
93
|
+
|