peak-sdk 1.16.0__tar.gz → 1.16.1__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 (128) hide show
  1. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/PKG-INFO +3 -3
  2. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/_version.py +1 -1
  3. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/press/apps/deployments.py +13 -0
  4. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/press/apps.py +27 -1
  5. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/apps/deployments/create_app_deployment.yaml +6 -0
  6. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/apps/deployments/create_app_deployment_revision.yaml +7 -0
  7. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/pypi-home.md +2 -2
  8. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/pyproject.toml +1 -1
  9. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/LICENSE +0 -0
  10. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/__init__.py +0 -0
  11. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/_metadata.py +0 -0
  12. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/auth.py +0 -0
  13. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/base_client.py +0 -0
  14. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/callbacks.py +0 -0
  15. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/__init_.py +0 -0
  16. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/args.py +0 -0
  17. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/cli.py +0 -0
  18. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/helpers.py +0 -0
  19. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/metrics/__init__.py +0 -0
  20. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/metrics/metrics.py +0 -0
  21. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/press/__init__.py +0 -0
  22. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/press/apps/__init__.py +0 -0
  23. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/press/apps/specs.py +0 -0
  24. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/press/blocks/__init__.py +0 -0
  25. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/press/blocks/deployments.py +0 -0
  26. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/press/blocks/specs.py +0 -0
  27. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/press/deployments.py +0 -0
  28. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/press/specs.py +0 -0
  29. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/resources/__init__.py +0 -0
  30. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/resources/alerts/__init__.py +0 -0
  31. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/resources/alerts/emails.py +0 -0
  32. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/resources/artifacts.py +0 -0
  33. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/resources/images.py +0 -0
  34. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/resources/services.py +0 -0
  35. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/resources/tenants.py +0 -0
  36. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/resources/users.py +0 -0
  37. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/resources/webapps.py +0 -0
  38. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/resources/workflows.py +0 -0
  39. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/ruff.toml +0 -0
  40. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/cli/version.py +0 -0
  41. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/compression.py +0 -0
  42. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/config.py +0 -0
  43. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/constants.py +0 -0
  44. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/exceptions.py +0 -0
  45. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/handler.py +0 -0
  46. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/helpers.py +0 -0
  47. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/logger.py +0 -0
  48. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/metrics/__init__.py +0 -0
  49. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/metrics/metrics.py +0 -0
  50. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/output.py +0 -0
  51. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/press/__init__.py +0 -0
  52. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/press/blocks.py +0 -0
  53. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/press/deployments.py +0 -0
  54. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/press/specs.py +0 -0
  55. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/py.typed +0 -0
  56. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/resources/__init__.py +0 -0
  57. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/resources/alerts.py +0 -0
  58. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/resources/artifacts.py +0 -0
  59. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/resources/images.py +0 -0
  60. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/resources/services.py +0 -0
  61. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/resources/tenants.py +0 -0
  62. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/resources/users.py +0 -0
  63. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/resources/webapps.py +0 -0
  64. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/resources/workflows.py +0 -0
  65. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/metrics/create_collection.yaml +0 -0
  66. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/metrics/publish.yaml +0 -0
  67. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/metrics/query.yaml +0 -0
  68. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/apps/deployments/update_app_deployment_metadata.yaml +0 -0
  69. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/apps/specs/create_app_spec.yaml +0 -0
  70. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/apps/specs/create_app_spec_release.yaml +0 -0
  71. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/apps/specs/update_app_spec_metadata.yaml +0 -0
  72. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/blocks/deployments/create_block_deployment.yaml +0 -0
  73. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/blocks/deployments/create_block_deployment_revision.yaml +0 -0
  74. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/blocks/deployments/patch_block_parameters.yaml +0 -0
  75. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/blocks/deployments/update_block_deployment_metadata.yaml +0 -0
  76. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/blocks/specs/service/api/create_block_spec.yaml +0 -0
  77. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/blocks/specs/service/api/create_block_spec_release.yaml +0 -0
  78. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/blocks/specs/service/webapp/create_block_spec.yaml +0 -0
  79. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/blocks/specs/service/webapp/create_block_spec_release.yaml +0 -0
  80. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/blocks/specs/update_block_spec_metadata.yaml +0 -0
  81. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/blocks/specs/workflow/create_block_spec.yaml +0 -0
  82. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/blocks/specs/workflow/create_block_spec_release.yaml +0 -0
  83. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/deployments/patch_app_parameters_v2.yaml +0 -0
  84. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/deployments/patch_block_parameters_v2.yaml +0 -0
  85. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/press/patch_parameters.yaml +0 -0
  86. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/artifacts/create_artifact.yaml +0 -0
  87. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/artifacts/create_artifact_version.yaml +0 -0
  88. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/artifacts/update_artifact_metadata.yaml +0 -0
  89. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/emails/send_email.yaml +0 -0
  90. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/images/dockerfile/create_image.yaml +0 -0
  91. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/images/dockerfile/create_image_version.yaml +0 -0
  92. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/images/dockerfile/update_version.yaml +0 -0
  93. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/images/github/create_image.yaml +0 -0
  94. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/images/github/create_image_version.yaml +0 -0
  95. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/images/github/update_version.yaml +0 -0
  96. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/images/upload/create_image.yaml +0 -0
  97. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/images/upload/create_image_version.yaml +0 -0
  98. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/images/upload/create_or_update_image.yaml +0 -0
  99. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/images/upload/update_version.yaml +0 -0
  100. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/services/create_or_update_service.yaml +0 -0
  101. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/services/create_service.yaml +0 -0
  102. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/services/test_service.yaml +0 -0
  103. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/services/update_service.yaml +0 -0
  104. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/webapps/create_or_update_webapp.yaml +0 -0
  105. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/webapps/create_webapp.yaml +0 -0
  106. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/webapps/update_webapp.yaml +0 -0
  107. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/create_or_update_workflow.yaml +0 -0
  108. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/create_workflow.yaml +0 -0
  109. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/execute_partial_workflow.yaml +0 -0
  110. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/execute_workflow.yaml +0 -0
  111. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/patch_workflow.yaml +0 -0
  112. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/update_workflow.yaml +0 -0
  113. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/workflow_auto_retry.yaml +0 -0
  114. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/workflow_execution_parameters.yaml +0 -0
  115. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/workflow_input_parameters.yaml +0 -0
  116. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/workflow_input_parameters_inherit.yaml +0 -0
  117. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/workflow_output_parameters.yaml +0 -0
  118. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/sample_yaml/resources/workflows/workflow_skippable_steps.yaml +0 -0
  119. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/session.py +0 -0
  120. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/telemetry.py +0 -0
  121. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/template.py +0 -0
  122. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/tools/__init__.py +0 -0
  123. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/tools/logging/__init__.py +0 -0
  124. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/tools/logging/log_handler.py +0 -0
  125. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/tools/logging/log_level.py +0 -0
  126. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/tools/logging/logger.py +0 -0
  127. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/tools/logging/utils.py +0 -0
  128. {peak_sdk-1.16.0 → peak_sdk-1.16.1}/peak/validators.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: peak-sdk
3
- Version: 1.16.0
3
+ Version: 1.16.1
4
4
  Summary: Python SDK for interacting with the Peak platform
5
5
  Home-page: https://docs.peak.ai/sdk/latest/
6
6
  License: Apache-2.0
@@ -106,7 +106,7 @@ Follow these steps to create a virtual environment using Python's built-in `venv
106
106
  This should return a response of the following format
107
107
 
108
108
  ```bash
109
- peak-cli==1.16.0
109
+ peak-cli==1.16.1
110
110
  Python==3.12.3
111
111
  System==Darwin(23.6.0)
112
112
  ```
@@ -122,7 +122,7 @@ Follow these steps to create a virtual environment using Python's built-in `venv
122
122
  This should print the version of the SDK
123
123
 
124
124
  ```
125
- 1.16.0
125
+ 1.16.1
126
126
  ```
127
127
 
128
128
  ### Using the SDK and CLI
@@ -18,4 +18,4 @@
18
18
  # # You should have received a copy of the APACHE LICENSE, VERSION 2.0
19
19
  # # along with this program. If not, see <https://apache.org/licenses/LICENSE-2.0>
20
20
  #
21
- __version__: str = "1.16.0"
21
+ __version__: str = "1.16.1"
@@ -79,6 +79,12 @@ def create(
79
79
  id (string): ID of the app spec to be deployed.
80
80
  release (map | required: false):
81
81
  version (string): A valid semantic release version of the app spec.
82
+ includes (list(map) | required: false): List of blocks to include in the deployment. These blocks should not be part of the app spec.
83
+ - id (string): ID of the block to include.
84
+ releaseVersion (string): Release version of the block.
85
+ excludes (list(map) | required: false): List of blocks that are part of the app spec which should be excluded from the deployment.
86
+ - id (string): ID of the block to exclude.
87
+ releaseVersion (string): Release version of the block.
82
88
  ```
83
89
 
84
90
  \b
@@ -362,6 +368,13 @@ def create_revision(
362
368
  version (string): A valid semantic release version of the app spec.
363
369
  revision (map | required: false):
364
370
  notes (string | required: false): Notes for the deployment revision.
371
+ blocksConfig (map | required: false):
372
+ includes (list(map) | required: false): List of blocks to include in the deployment. These blocks should not be part of the app spec.
373
+ - id (string): ID of the block to include.
374
+ releaseVersion (string): Release version of the block.
375
+ excludes (list(map) | required: false): List of blocks that are part of the app spec which should be excluded from the deployment.
376
+ - id (string): ID of the block to exclude.
377
+ releaseVersion (string): Release version of the block.
365
378
 
366
379
  ```
367
380
 
@@ -690,7 +690,19 @@ class App(BaseClient):
690
690
  "id": "string(required)",
691
691
  "release": {
692
692
  "version": "string(required)",
693
- }
693
+ },
694
+ "includes": [
695
+ {
696
+ "id": "string",
697
+ "releaseVersion": "string"
698
+ }
699
+ ],
700
+ "excludes": [
701
+ {
702
+ "id": "string",
703
+ "releaseVersion": "string"
704
+ }
705
+ ]
694
706
  }
695
707
  }
696
708
 
@@ -923,6 +935,20 @@ class App(BaseClient):
923
935
  "revision": {
924
936
  "notes": "string",
925
937
  },
938
+ "blocksConfig": {
939
+ "includes": [
940
+ {
941
+ "id": "string",
942
+ "releaseVersion": "string"
943
+ }
944
+ ],
945
+ "excludes": [
946
+ {
947
+ "id": "string",
948
+ "releaseVersion": "string"
949
+ }
950
+ ]
951
+ },
926
952
  "appParameters": {
927
953
  "build": {
928
954
  "param_name": "param_value (string | number | boolean | array)"
@@ -53,3 +53,9 @@ body:
53
53
  id: 0bddb4c6-40c5-45c3-b477-fceb2c051609
54
54
  release:
55
55
  version: 1.0.0
56
+ # Block inclusion/exclusion configuration
57
+ includes:
58
+ - id: block-1
59
+ releaseVersion: "1.0.0" # including a block
60
+ excludes:
61
+ - id: block-3 # Excluding block-3 from deployment
@@ -42,3 +42,10 @@ body:
42
42
  notes: This is the initial revision
43
43
  release:
44
44
  version: 2.0.0
45
+ # Added blocks configuration for revision
46
+ blocksConfig:
47
+ includes:
48
+ - id: block-1
49
+ releaseVersion: "2.0.0" # including a block
50
+ excludes:
51
+ - id: block-3 # Excluding block-3 in this revision
@@ -70,7 +70,7 @@ Follow these steps to create a virtual environment using Python's built-in `venv
70
70
  This should return a response of the following format
71
71
 
72
72
  ```bash
73
- peak-cli==1.16.0
73
+ peak-cli==1.16.1
74
74
  Python==3.12.3
75
75
  System==Darwin(23.6.0)
76
76
  ```
@@ -86,7 +86,7 @@ Follow these steps to create a virtual environment using Python's built-in `venv
86
86
  This should print the version of the SDK
87
87
 
88
88
  ```
89
- 1.16.0
89
+ 1.16.1
90
90
  ```
91
91
 
92
92
  ### Using the SDK and CLI
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "peak-sdk"
3
- version = "1.16.0"
3
+ version = "1.16.1"
4
4
  packages = [{ include = "peak" }]
5
5
  description = "Python SDK for interacting with the Peak platform"
6
6
  authors = ["Peak <support@peak.ai>"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes