kodexa 7.4.416576510437__tar.gz → 7.4.416607913655__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 (51) hide show
  1. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/PKG-INFO +1 -1
  2. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/model/objects.py +72 -0
  3. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/platform/client.py +37 -0
  4. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/pyproject.toml +1 -1
  5. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/LICENSE +0 -0
  6. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/README.md +0 -0
  7. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/__init__.py +0 -0
  8. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/assistant/__init__.py +0 -0
  9. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/assistant/assistant.py +0 -0
  10. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/connectors/__init__.py +0 -0
  11. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/connectors/connectors.py +0 -0
  12. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/dataclasses/__init__.py +0 -0
  13. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
  14. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/model/__init__.py +0 -0
  15. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/model/base.py +0 -0
  16. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/model/entities/__init__.py +0 -0
  17. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/model/entities/check_response.py +0 -0
  18. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/model/entities/product.py +0 -0
  19. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/model/entities/product_group.py +0 -0
  20. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/model/entities/product_subscription.py +0 -0
  21. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/model/model.py +0 -0
  22. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/model/persistence.py +0 -0
  23. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/model/utils.py +0 -0
  24. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/pipeline/__init__.py +0 -0
  25. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/pipeline/pipeline.py +0 -0
  26. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/platform/__init__.py +0 -0
  27. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/platform/interaction.py +0 -0
  28. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/platform/kodexa.py +0 -0
  29. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/platform/manifest.py +0 -0
  30. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/selectors/__init__.py +0 -0
  31. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/selectors/ast.py +0 -0
  32. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/selectors/core.py +0 -0
  33. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/selectors/lexrules.py +0 -0
  34. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/selectors/lextab.py +0 -0
  35. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/selectors/lextab.pyi +0 -0
  36. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/selectors/parserules.py +0 -0
  37. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/selectors/parserules.pyi +0 -0
  38. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/selectors/parsetab.py +0 -0
  39. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/selectors/parsetab.pyi +0 -0
  40. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/spatial/__init__.py +0 -0
  41. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/spatial/azure_models.py +0 -0
  42. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/spatial/bbox_common.py +0 -0
  43. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/spatial/table_form_common.py +0 -0
  44. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/steps/__init__.py +0 -0
  45. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/steps/common.py +0 -0
  46. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/testing/__init__.py +0 -0
  47. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/testing/test_components.py +0 -0
  48. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/testing/test_utils.py +0 -0
  49. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/training/__init__.py +0 -0
  50. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/training/train_utils.py +0 -0
  51. {kodexa-7.4.416576510437 → kodexa-7.4.416607913655}/kodexa/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kodexa
3
- Version: 7.4.416576510437
3
+ Version: 7.4.416607913655
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -6320,6 +6320,76 @@ class OrchestrationEvent(BaseModel):
6320
6320
  execution_event: Optional[ExecutionEvent] = Field(None, alias="executionEvent")
6321
6321
 
6322
6322
 
6323
+
6324
+ class PageNote(BaseModel):
6325
+ """
6326
+ A page of notes
6327
+ """
6328
+ model_config = ConfigDict(
6329
+ populate_by_name=True,
6330
+ use_enum_values=True,
6331
+ arbitrary_types_allowed=True,
6332
+ protected_namespaces=("model_config",),
6333
+ )
6334
+ total_pages: Optional[int] = Field(None, alias="totalPages")
6335
+ total_elements: Optional[int] = Field(None, alias="totalElements")
6336
+ size: Optional[int] = None
6337
+ content: Optional[List[Note]] = None
6338
+ number: Optional[int] = None
6339
+ number_of_elements: Optional[int] = Field(None, alias="numberOfElements")
6340
+ first: Optional[bool] = None
6341
+ last: Optional[bool] = None
6342
+ empty: Optional[bool] = None
6343
+
6344
+
6345
+ class NoteType(Enum):
6346
+ """
6347
+ The NoteType enumeration represents the different formats a note can have.
6348
+ This includes MARKDOWN, TEXT, HTML formats, and ASSISTANT_KNOWLEDGE.
6349
+ """
6350
+ markdown = "MARKDOWN"
6351
+ text = "TEXT"
6352
+ html = "HTML"
6353
+ assistant_knowledge = "ASSISTANT_KNOWLEDGE"
6354
+
6355
+
6356
+ class Note(BaseModel):
6357
+ """
6358
+ A note within the Kodexa platform
6359
+ """
6360
+ model_config = ConfigDict(
6361
+ populate_by_name=True,
6362
+ use_enum_values=True,
6363
+ arbitrary_types_allowed=True,
6364
+ protected_namespaces=("model_config",),
6365
+ )
6366
+
6367
+ id: Optional[str] = Field(None)
6368
+ uuid: Optional[str] = None
6369
+ created_on: Optional[StandardDateTime] = Field(None, alias="createdOn")
6370
+ updated_on: Optional[StandardDateTime] = Field(None, alias="updatedOn")
6371
+
6372
+ # Data relationships
6373
+ workspace: Optional['Workspace'] = None
6374
+ assistant: Optional['Assistant'] = None
6375
+ parent_comment: Optional['Note'] = Field(None, alias="parentComment")
6376
+
6377
+ # Core content
6378
+ title: Optional[str] = None
6379
+ content: Optional[str] = None
6380
+ note_type: Optional[NoteType] = Field(None, alias="noteType")
6381
+
6382
+ # Author and replies
6383
+ author: Optional['User'] = None
6384
+ replies: Optional[List['Note']] = Field(default_factory=list)
6385
+
6386
+ # Task association
6387
+ task: Optional['Task'] = None
6388
+
6389
+ # Properties map
6390
+ note_properties: Optional[Dict[str, str]] = Field(default_factory=dict, alias="noteProperties")
6391
+
6392
+
6323
6393
  ThrowableProblem.model_rebuild()
6324
6394
  Option.model_rebuild()
6325
6395
  Taxon.model_rebuild()
@@ -6377,3 +6447,5 @@ Message.model_rebuild()
6377
6447
  MessageFeedback.model_rebuild()
6378
6448
  MessageFeedbackResponse.model_rebuild()
6379
6449
  MessageFeedbackOption.model_rebuild()
6450
+ Note.model_rebuild()
6451
+ PageNote.model_rebuild()
@@ -105,6 +105,8 @@ from kodexa.model.objects import (
105
105
  PageTaskDocumentFamily,
106
106
  PageTaskActivity,
107
107
  PageTaskTag,
108
+ Note,
109
+ PageNote,
108
110
  )
109
111
 
110
112
  logger = logging.getLogger()
@@ -1416,6 +1418,39 @@ class TaskTagsEndpoint(EntitiesEndpoint):
1416
1418
  return PageTaskTagEndpoint
1417
1419
 
1418
1420
 
1421
+ class NoteEndpoint(EntityEndpoint, Note):
1422
+ """
1423
+ Represents a note endpoint.
1424
+ """
1425
+
1426
+ def get_type(self) -> str:
1427
+ return "notes"
1428
+
1429
+
1430
+ class NotesEndpoint(EntitiesEndpoint):
1431
+ """
1432
+ Represents notes endpoints.
1433
+ """
1434
+
1435
+ def get_type(self) -> str:
1436
+ return "notes"
1437
+
1438
+ def get_instance_class(self, object_dict=None):
1439
+ return NoteEndpoint
1440
+
1441
+ def get_page_class(self, object_dict=None):
1442
+ return PageNoteEndpoint
1443
+
1444
+
1445
+ class PageNoteEndpoint(PageNote, PageEndpoint):
1446
+ """
1447
+ Represents a page note endpoint.
1448
+ """
1449
+
1450
+ def get_type(self) -> Optional[str]:
1451
+ return "notes"
1452
+
1453
+
1419
1454
  class PageTaskTemplateEndpoint(PageTask, PageEndpoint):
1420
1455
  def get_type(self) -> Optional[str]:
1421
1456
  return "taskTemplate"
@@ -6740,6 +6775,7 @@ class KodexaClient:
6740
6775
  tasks (TasksEndpoint): An endpoint for tasks.
6741
6776
  users (UsersEndpoint): An endpoint for users.
6742
6777
  workspaces (WorkspacesEndpoint): An endpoint for workspaces.
6778
+ notes (NotesEndpoint): An endpoint for notes.
6743
6779
  """
6744
6780
 
6745
6781
  def __init__(self, url=None, access_token=None, profile=None):
@@ -6770,6 +6806,7 @@ class KodexaClient:
6770
6806
  self.users = UsersEndpoint(self)
6771
6807
  self.workspaces = WorkspacesEndpoint(self)
6772
6808
  self.data_exceptions = DataExceptionsEndpoint(self)
6809
+ self.notes = NotesEndpoint(self)
6773
6810
 
6774
6811
  @staticmethod
6775
6812
  def login(url, token):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "7.4.416576510437"
3
+ version = "7.4.416607913655"
4
4
  description = "Python SDK for the Kodexa Platform"
5
5
  authors = ["Austin Redenbaugh <austin@kodexa.com>", "Philip Dodds <philip@kodexa.com>", "Romar Cablao <rcablao@kodexa.com>", "Amadea Paula Dodds <amadeapaula@kodexa.com>"]
6
6
  readme = "README.md"