codecraftai-restclient-pychestrate 1.2.0__tar.gz → 1.3.0__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 (84) hide show
  1. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/LICENSE.md +30 -21
  2. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/PKG-INFO +8 -6
  3. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/README.rst +4 -2
  4. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/pyproject.toml +5 -26
  5. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/generation/pychestraterestclientgenerator.py +5 -28
  6. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/agents.py +35 -26
  7. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/artifacts.py +18 -14
  8. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/audit.py +17 -11
  9. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/auth.py +10 -8
  10. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/clients.py +53 -39
  11. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/dispatch.py +16 -12
  12. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/enrollment.py +38 -27
  13. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/flags.py +63 -46
  14. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/me.py +8 -6
  15. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/notifications.py +23 -16
  16. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/pluginapi.py +19 -13
  17. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/pods.py +103 -74
  18. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/progress.py +8 -6
  19. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/projects.py +80 -57
  20. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/projecttemplates.py +14 -10
  21. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/rbac.py +40 -26
  22. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/results.py +32 -20
  23. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/retention.py +32 -23
  24. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/runs.py +25 -20
  25. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/secrets.py +14 -10
  26. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/tagging.py +33 -21
  27. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/testcatalog.py +34 -24
  28. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/testruns.py +11 -7
  29. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/users.py +18 -13
  30. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/variables.py +40 -30
  31. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/pychestraterestclient.py +7 -4
  32. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/pychestraterestclientbase.py +44 -12
  33. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/py.typed +0 -0
  34. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/__init__.py +0 -0
  35. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/generation/__init__.py +0 -0
  36. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/generation/specs/pychestrate.yaml +0 -0
  37. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/groups/__init__.py +0 -0
  38. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/__init__.py +0 -0
  39. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/agents.py +0 -0
  40. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/artifactlocaluploadresult.py +0 -0
  41. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/artifacts.py +0 -0
  42. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/artifactuploadtarget.py +0 -0
  43. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/audit.py +0 -0
  44. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/auth.py +0 -0
  45. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/capabilityentry.py +0 -0
  46. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/client.py +0 -0
  47. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/clients.py +0 -0
  48. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/dispatch.py +0 -0
  49. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/enrollment.py +0 -0
  50. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/flags.py +0 -0
  51. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/jobdeadline.py +0 -0
  52. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/jobenvelope.py +0 -0
  53. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/jobforwardinginfo.py +0 -0
  54. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/jobpipelineref.py +0 -0
  55. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/jobrefs.py +0 -0
  56. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/jobresultslocator.py +0 -0
  57. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/me.py +0 -0
  58. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/notifications.py +0 -0
  59. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/pagemeta.py +0 -0
  60. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/pluginapi.py +0 -0
  61. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/podmember.py +0 -0
  62. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/pods.py +0 -0
  63. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/podtopologylink.py +0 -0
  64. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/problem.py +0 -0
  65. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/progress.py +0 -0
  66. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/progressrecord.py +0 -0
  67. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/progresssummary.py +0 -0
  68. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/projects.py +0 -0
  69. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/projecttemplates.py +0 -0
  70. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/rbac.py +0 -0
  71. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/results.py +0 -0
  72. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/retention.py +0 -0
  73. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/runevent.py +0 -0
  74. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/runs.py +0 -0
  75. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/scopedsecret.py +0 -0
  76. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/secrets.py +0 -0
  77. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/signingkey.py +0 -0
  78. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/tagging.py +0 -0
  79. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/testcatalog.py +0 -0
  80. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/testcatalogimportsummary.py +0 -0
  81. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/testruns.py +0 -0
  82. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/users.py +0 -0
  83. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/variableeffectiveentry.py +0 -0
  84. {codecraftai_restclient_pychestrate-1.2.0 → codecraftai_restclient_pychestrate-1.3.0}/source/packages/ccai/pychestrate/rest/client/models/variables.py +0 -0
@@ -1,5 +1,5 @@
1
1
  # Code Craft AI - Source Available License
2
- Version 1.0, October 2026
2
+ Version 1.1, November 2026
3
3
 
4
4
  Copyright (C) 2026, Code Craft AI LLC
5
5
 
@@ -7,12 +7,12 @@ Everyone is permitted to copy and distribute verbatim copies of *This License* d
7
7
 
8
8
  *This License* covers the Python Automation Kit, the full suite of software published by *Licensor* that consists of every `codecraftai-*` package, every `pychestrate` package, and the `pychestrate` server.
9
9
 
10
- *The Software* is source available. Its source code is published so that anyone can read it, learn from it, and use it, but *This License* is not an open source license. *The Software* is free to use for *Non-Commercial Use*. *Commercial Use* is permitted in exchange for a *Usage Fee* that is based on a reasonable estimation of the income derived from *The Software*, as described in section 5. When a company migrates a product or service to *The Software* from another code base, the *Profit* from that product or service is not counted toward the *Usage Fee* for two years, as described in section 5.4. For assurance of costs, a company can disclose its usage and estimated returns to *Licensor* and negotiate a fixed license cost, as described in section 5.10.
10
+ *The Software* is source available. Its source code is published so that anyone can read it, learn from it, and use it, but *This License* is not an open source license. *The Software* is free to use for *Non-Commercial Use*. *Commercial Use* is permitted in exchange for a *Usage Fee* that is based on a reasonable estimation of the income derived from *The Software*, as described in section 5. That estimation starts from *Gross Income*, not net profit, so spending on research and development or other operating expenses does not reduce it. When a company migrates a product or service to *The Software* from another code base, the *Gross Income* from that product or service is not counted toward the *Usage Fee* for two years, as described in section 5.4. For assurance of costs, a company can disclose its usage and estimated returns to *Licensor* and negotiate a fixed license cost, as described in section 5.10.
11
11
 
12
12
  ## 1. Definitions
13
13
 
14
14
  ### 1.1 *This License* or *The License*
15
- **This License** or **The License** refers to version 1.0 of the Code Craft AI - Source Available License.
15
+ **This License** or **The License** refers to version 1.1 of the Code Craft AI - Source Available License.
16
16
 
17
17
  ### 1.2 Licensor
18
18
  **Licensor** refers to Code Craft AI LLC.
@@ -42,14 +42,14 @@ Everyone is permitted to copy and distribute verbatim copies of *This License* d
42
42
  ### 1.9 Fiscal Year
43
43
  **Fiscal Year** means the annual accounting period that *You* use for financial reporting.
44
44
 
45
- ### 1.10 Profit
46
- **Profit** means the net profit that *You* earn from the *Commercial Activity* during a *Fiscal Year*, determined under the accounting principles that *You* regularly use for financial reporting.
45
+ ### 1.10 Gross Income
46
+ **Gross Income** means, for each product or service in connection with which *You* make *Commercial Use* of *The Software*, the gross profit that *You* earn from that product or service during a *Fiscal Year*: the revenue from that product or service, less its cost of goods sold or cost of revenue, determined under the accounting principles that *You* regularly use for financial reporting. *Gross Income* is calculated before operating expenses, such as research and development, sales and marketing, and general and administrative expenses, and before interest and taxes. *Gross Income* is measured for the products and services that *The Software* is used for, not for *Your* business as a whole.
47
47
 
48
48
  ### 1.11 Contribution Estimate
49
- **Contribution Estimate** means *Your* reasonable, good faith estimate of the portion of the *Profit* that *The Software* contributed to, expressed as a number from 0 to 1.
49
+ **Contribution Estimate** means *Your* reasonable, good faith estimate of the portion of the *Gross Income* that *The Software* contributed to, expressed as a number from 0 to 1.
50
50
 
51
51
  ### 1.12 Derived Income
52
- **Derived Income** means the portion of the *Profit* for a *Fiscal Year* that is derived from *The Software*, calculated as described in section 5.2.
52
+ **Derived Income** means the portion of the *Gross Income* for a *Fiscal Year* that is derived from *The Software*, calculated as described in section 5.2.
53
53
 
54
54
  ### 1.13 Usage Fee
55
55
  **Usage Fee** means the yearly fee for *Commercial Use* that is set by the table in section 5.3.
@@ -58,7 +58,7 @@ Everyone is permitted to copy and distribute verbatim copies of *This License* d
58
58
  **Migration** means moving the work for one of *Your* products or services from a code base other than *The Software*, such as another framework, another library, or *Your* own code, to *The Software*.
59
59
 
60
60
  ### 1.15 Migration Period
61
- **Migration Period** means the two (2) year period, described in section 5.4, during which the *Profit* from a product or service that *You* are migrating to *The Software* is not counted.
61
+ **Migration Period** means the two (2) year period, described in section 5.4, during which the *Gross Income* from a product or service that *You* are migrating to *The Software* is not counted.
62
62
 
63
63
  ## 2. License Grant
64
64
 
@@ -96,11 +96,11 @@ For each *Fiscal Year* in which *You* make *Commercial Use* of *The Software*, *
96
96
  ### 5.2 Derived Income
97
97
  The *Derived Income* for a *Fiscal Year* is calculated as follows:
98
98
 
99
- (Contribution Estimate) * (Profit) = (Derived Income)
99
+ (Contribution Estimate) * (Gross Income) = (Derived Income)
100
100
 
101
- If *You* make *Commercial Use* of *The Software* for more than one product or service, calculate the *Derived Income* for each product or service using its own *Contribution Estimate* and *Profit*, and add the results together. The *Profit* from a product or service that is in its *Migration Period* is not counted, as described in section 5.4.
101
+ If *You* make *Commercial Use* of *The Software* for more than one product or service, calculate the *Derived Income* for each product or service using its own *Contribution Estimate* and *Gross Income*, and add the results together. The *Gross Income* from a product or service that is in its *Migration Period* is not counted, as described in section 5.4.
102
102
 
103
- If the *Profit* from a product or service for a *Fiscal Year* is zero or less, then the *Derived Income* from that product or service for that *Fiscal Year* is zero.
103
+ If the *Gross Income* from a product or service for a *Fiscal Year* is zero or less, then the *Derived Income* from that product or service for that *Fiscal Year* is zero.
104
104
 
105
105
  ### 5.3 Usage Fee
106
106
  The *Usage Fee* for a *Fiscal Year* is set by the *Derived Income* for that *Fiscal Year*, as shown in the following table.
@@ -113,56 +113,65 @@ The *Usage Fee* for a *Fiscal Year* is set by the *Derived Income* for that *Fis
113
113
  | More than 100,000,000, up to and including 1,000,000,000 | 250,000 |
114
114
  | More than 1,000,000,000 | 500,000 |
115
115
 
116
- All amounts in this section 5 are in United States dollars. If *You* report *Profit* in a different currency, convert the *Derived Income* to United States dollars using the average exchange rate for the *Fiscal Year*.
116
+ All amounts in this section 5 are in United States dollars. If *You* report *Gross Income* in a different currency, convert the *Derived Income* to United States dollars using the average exchange rate for the *Fiscal Year*.
117
117
 
118
118
  ### 5.4 Migration Allowance
119
- When *You* migrate a product or service to *The Software*, the *Profit* from that product or service is not counted when calculating the *Derived Income* during its *Migration Period* (the **Migration Allowance**).
119
+ When *You* migrate a product or service to *The Software*, the *Gross Income* from that product or service is not counted when calculating the *Derived Income* during its *Migration Period* (the **Migration Allowance**).
120
120
 
121
121
  The *Migration Period* for a product or service begins on the date that *You* first make *Commercial Use* of *The Software* for that product or service as part of its *Migration*, and ends two (2) years after that date.
122
122
 
123
123
  The *Migration Allowance* applies to each product or service separately, and *You* may use it for every product or service that *You* migrate. Each product or service has only one *Migration Period*.
124
124
 
125
- If a *Fiscal Year* is only partly within the *Migration Period* of a product or service, the *Profit* from that product or service for that *Fiscal Year* is reduced in proportion to the number of days of that *Fiscal Year* that fall within its *Migration Period*.
125
+ If a *Fiscal Year* is only partly within the *Migration Period* of a product or service, the *Gross Income* from that product or service for that *Fiscal Year* is reduced in proportion to the number of days of that *Fiscal Year* that fall within its *Migration Period*.
126
126
 
127
- For example, a company tests product A with *The Software* and pays a *Usage Fee* based on the *Profit* from product A. On March 1, 2027, the company begins moving the testing of product B from a different test framework to *The Software*. The company does not count the *Profit* from product B in its *Derived Income* from March 1, 2027 until March 1, 2029. Starting March 1, 2029, the *Profit* from product B is counted. If the company later migrates product C, the *Profit* from product C is not counted for two years from the start of its own *Migration*.
127
+ For example, a company tests product A with *The Software* and pays a *Usage Fee* based on the *Gross Income* from product A. On March 1, 2027, the company begins moving the testing of product B from a different test framework to *The Software*. The company does not count the *Gross Income* from product B in its *Derived Income* from March 1, 2027 until March 1, 2029. Starting March 1, 2029, the *Gross Income* from product B is counted. If the company later migrates product C, the *Gross Income* from product C is not counted for two years from the start of its own *Migration*.
128
128
 
129
129
  ### 5.5 Contribution Estimate
130
130
  *You* are responsible for making the *Contribution Estimate*. A *Contribution Estimate* must be reasonable and made in good faith. The *Contribution Estimate* for a product or service covers all of the *Components* that *You* *Use* for that product or service. When making the *Contribution Estimate*, *You* should consider how important *The Software* is to the *Commercial Activity*, how much of the *Commercial Activity* depends on *The Software*, and the effort and cost that *You* would otherwise need to spend to accomplish what *The Software* accomplishes for *You*.
131
131
 
132
132
  The following table is a guide for making the *Contribution Estimate*. When *Your* *Commercial Use* of *The Software* matches an entry in the table, the *Contribution Estimate* in that entry is a reasonable *Contribution Estimate*. When *Your* *Commercial Use* does not match an entry in the table, make the *Contribution Estimate* by comparing *Your* *Commercial Use* with the entries in the table. When more than one entry matches the same *Commercial Activity*, use the entry with the highest *Contribution Estimate*.
133
133
 
134
+ Many products are not software, such as devices, machines, vehicles, and other physical goods, and software accounts for only part of what such a product is worth. For a product or service that is not software, *You* may reduce the *Contribution Estimate* in proportion to the share of the value of the shipped product that its software reasonably accounts for. To do so, multiply the *Contribution Estimate* from the table by that share, expressed as a number from 0 to 1. *You* must keep records that reasonably support that share, as described in section 5.8.
135
+
134
136
  | Commercial Use of *The Software* | Contribution Estimate |
135
137
  |----------------------------------|-----------------------|
136
138
  | Quality Assurance (QA) and Continuous Integration (CI): *The Software* is used to test or validate the products or services of the *Commercial Activity*, or to run their build and test pipelines | 0.3 |
137
139
  | Products Completely Based on *The Software*: the products or services of the *Commercial Activity* are built completely on *The Software* | 0.5 |
138
140
 
139
141
  ### 5.6 Examples
140
- A company earns 1,000,000,000 in *Profit* from a product line during a *Fiscal Year*. The company uses *The Software* for the QA and CI of that product line, so the *Contribution Estimate* is 0.3.
142
+ A company earns 1,000,000,000 in *Gross Income* from a product line during a *Fiscal Year*. The company uses *The Software* for the QA and CI of that product line, so the *Contribution Estimate* is 0.3.
141
143
 
142
144
  0.3 * 1,000,000,000 = 300,000,000
143
145
 
144
146
  The *Derived Income* of 300,000,000 is more than 100,000,000 and not more than 1,000,000,000, so the *Usage Fee* for that *Fiscal Year* is 250,000.
145
147
 
146
- A company earns 4,000,000 in *Profit* from a product during a *Fiscal Year*. The product is built completely on *The Software*, so the *Contribution Estimate* is 0.5.
148
+ A company earns 4,000,000 in *Gross Income* from a product during a *Fiscal Year*. The product is built completely on *The Software*, so the *Contribution Estimate* is 0.5.
147
149
 
148
150
  0.5 * 4,000,000 = 2,000,000
149
151
 
150
152
  The *Derived Income* of 2,000,000 is more than 1,000,000 and not more than 10,000,000, so the *Usage Fee* for that *Fiscal Year* is 50,000.
151
153
 
152
- A company earns 3,000,000 in *Profit* from a product line during a *Fiscal Year*. The company uses *The Software* for the QA and CI of that product line, so the *Contribution Estimate* is 0.3.
154
+ A company earns 3,000,000 in *Gross Income* from a product line during a *Fiscal Year*. The company uses *The Software* for the QA and CI of that product line, so the *Contribution Estimate* is 0.3.
153
155
 
154
156
  0.3 * 3,000,000 = 900,000
155
157
 
156
158
  The *Derived Income* of 900,000 is 1,000,000 or less, so there is no *Usage Fee* for that *Fiscal Year*.
157
159
 
160
+ A company earns 50,000,000 in *Gross Income* from a line of medical devices during a *Fiscal Year*. The company uses *The Software* for the QA and CI of the devices, so the *Contribution Estimate* from the table is 0.3. The devices are not software, and the company reasonably estimates that their software accounts for one fifth (0.2) of the value of each shipped device, so the company reduces the *Contribution Estimate* to 0.06.
161
+
162
+ 0.3 * 0.2 = 0.06
163
+ 0.06 * 50,000,000 = 3,000,000
164
+
165
+ The *Derived Income* of 3,000,000 is more than 1,000,000 and not more than 10,000,000, so the *Usage Fee* for that *Fiscal Year* is 50,000. Without the reduction, the *Derived Income* would be 15,000,000 and the *Usage Fee* would be 100,000.
166
+
158
167
  ### 5.7 Reporting and Payment
159
- Within one hundred twenty (120) days after the end of each *Fiscal Year* for which a *Usage Fee* is owed, *You* must pay the *Usage Fee* to *Licensor* and provide *Licensor* with a written statement that shows the *Profit*, the *Contribution Estimate*, the reasoning used to make the *Contribution Estimate*, the *Derived Income*, and the *Usage Fee*. *Usage Fees* are payable in United States dollars. If any *Profit* is not counted under section 5.4, the statement must also identify each product or service that is in a *Migration Period* and show the dates of its *Migration Period*. No statement is required for a *Fiscal Year* in which no *Usage Fee* is owed.
168
+ Within one hundred twenty (120) days after the end of each *Fiscal Year* for which a *Usage Fee* is owed, *You* must pay the *Usage Fee* to *Licensor* and provide *Licensor* with a written statement that shows the *Gross Income*, the *Contribution Estimate*, the reasoning used to make the *Contribution Estimate*, the *Derived Income*, and the *Usage Fee*. *Usage Fees* are payable in United States dollars. If any *Gross Income* is not counted under section 5.4, the statement must also identify each product or service that is in a *Migration Period* and show the dates of its *Migration Period*. No statement is required for a *Fiscal Year* in which no *Usage Fee* is owed.
160
169
 
161
170
  ### 5.8 Records and Review
162
- *You* must keep records that reasonably support each *Contribution Estimate*, each *Profit* figure, and the dates of any *Migration Period* for at least three (3) years after the end of the *Fiscal Year* that they apply to. No more than once in any twelve (12) month period, *Licensor* may ask in writing for the records that support a statement, and *You* must provide them within sixty (60) days of the request. *Licensor* will treat those records as confidential.
171
+ *You* must keep records that reasonably support each *Contribution Estimate*, including any share used to reduce it under section 5.5, each *Gross Income* figure, and the dates of any *Migration Period* for at least three (3) years after the end of the *Fiscal Year* that they apply to. No more than once in any twelve (12) month period, *Licensor* may ask in writing for the records that support a statement, and *You* must provide them within sixty (60) days of the request. *Licensor* will treat those records as confidential.
163
172
 
164
173
  ### 5.9 Disputes About the Usage Fee
165
- If *Licensor* believes that a *Contribution Estimate*, a *Profit* figure, or the dates of a *Migration Period* are not reasonable, *Licensor* will notify *You* in writing and explain why. *You* and *Licensor* will then negotiate in good faith for at least sixty (60) days to agree on a reasonable *Usage Fee*. If *You* and *Licensor* cannot agree, either party may resolve the dispute as described in section 8.
174
+ If *Licensor* believes that a *Contribution Estimate*, a *Gross Income* figure, or the dates of a *Migration Period* are not reasonable, *Licensor* will notify *You* in writing and explain why. *You* and *Licensor* will then negotiate in good faith for at least sixty (60) days to agree on a reasonable *Usage Fee*. If *You* and *Licensor* cannot agree, either party may resolve the dispute as described in section 8.
166
175
 
167
176
  ### 5.10 Fixed License Cost
168
177
  For assurance of costs, *You* may disclose to *Licensor* how *You* *Use* *The Software* and the returns that *You* estimate *You* will derive from it, and negotiate a fixed license cost with *Licensor*. A fixed license cost, and any other terms that *You* and *Licensor* agree to, must be set out in a writing signed by both *You* and *Licensor* (a **Fixed License Agreement**).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codecraftai-restclient-pychestrate
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Summary: Code Craft AI - Rest Client for Pychestrate
5
5
  License-Expression: LicenseRef-CodeCraftAI-Source-Available
6
6
  License-File: LICENSE.md
@@ -10,9 +10,9 @@ Author-email: myron.walker@gmail.com
10
10
  Requires-Python: >=3.10,<4.0
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: POSIX
13
- Requires-Dist: codecraftai-credentials (<2.0.0)
14
- Requires-Dist: codecraftai-foundations (<2.0.0)
15
- Requires-Dist: codecraftai-restclient-base (<2.0.0)
13
+ Requires-Dist: codecraftai-credentials (>=1.0.0,<2.0.0)
14
+ Requires-Dist: codecraftai-foundations (>=1.0.0,<2.0.0)
15
+ Requires-Dist: codecraftai-restclient-base (>=1.3.0,<2.0.0)
16
16
  Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
17
17
  Requires-Dist: requests (>=2.32.4,<3.0.0)
18
18
  Project-URL: Issues, https://github.com/code-craft-ai-company/codecraftai-restclient-pychestrate/issues
@@ -41,8 +41,10 @@ Highlights
41
41
  REST surface.
42
42
  - ``PychestrateRestClientGenerator`` under ``pychestrate/generation/`` to
43
43
  regenerate schema and group modules from the OpenAPI specification.
44
- - Authentication via cookie session, API key header, and mTLS material — wired
45
- through ``codecraftai-credentials``.
44
+ - Authentication via API key header, bearer token, and mTLS material — wired
45
+ through ``codecraftai-credentials``. The REST API has no password login (the
46
+ session cookie is issued by the HTML login form), so a credential carrying
47
+ only a username and password raises ``ConfigurationError``.
46
48
 
47
49
  Source of Truth
48
50
  ===============
@@ -20,8 +20,10 @@ Highlights
20
20
  REST surface.
21
21
  - ``PychestrateRestClientGenerator`` under ``pychestrate/generation/`` to
22
22
  regenerate schema and group modules from the OpenAPI specification.
23
- - Authentication via cookie session, API key header, and mTLS material — wired
24
- through ``codecraftai-credentials``.
23
+ - Authentication via API key header, bearer token, and mTLS material — wired
24
+ through ``codecraftai-credentials``. The REST API has no password login (the
25
+ session cookie is issued by the HTML login form), so a credential carrying
26
+ only a username and password raises ``ConfigurationError``.
25
27
 
26
28
  Source of Truth
27
29
  ===============
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codecraftai-restclient-pychestrate"
3
- version = "1.2.0"
3
+ version = "1.3.0"
4
4
  description = "Code Craft AI - Rest Client for Pychestrate"
5
5
  readme = "README.rst"
6
6
  license = "LicenseRef-CodeCraftAI-Source-Available"
@@ -16,9 +16,9 @@ requires-python = ">=3.10,<4.0"
16
16
  dependencies = [
17
17
  "requests>=2.32.4,<3.0.0",
18
18
  "pyyaml>=6.0.2,<7.0.0",
19
- "codecraftai-foundations<2.0.0",
20
- "codecraftai-credentials<2.0.0",
21
- "codecraftai-restclient-base<2.0.0",
19
+ "codecraftai-foundations>=1.0.0,<2.0.0",
20
+ "codecraftai-credentials>=1.0.0,<2.0.0",
21
+ "codecraftai-restclient-base>=1.3.0,<2.0.0",
22
22
  ]
23
23
 
24
24
  [project.urls]
@@ -27,34 +27,13 @@ Issues = "https://github.com/code-craft-ai-company/codecraftai-restclient-pyches
27
27
 
28
28
  [dependency-groups]
29
29
  dev = [
30
- "codecraftai-testbase<2.0.0",
30
+ "codecraftai-testbase>=1.0.0,<2.0.0",
31
31
  ]
32
32
  dbio = []
33
33
 
34
34
  [tool.poetry]
35
35
  packages = [{include="ccai", from="source/packages"}]
36
36
 
37
- [tool.poetry.dependencies]
38
- codecraftai-foundations = {source = "codecraftai"}
39
- codecraftai-credentials = {source = "codecraftai"}
40
- codecraftai-restclient-base = {source = "codecraftai"}
41
-
42
- [tool.poetry.group.dev.dependencies]
43
- codecraftai-testbase = {source = "codecraftai"}
44
-
45
- [[tool.poetry.source]]
46
- name = "codecraftai"
47
- url = "https://code-craft.ai/licensed-repository/simple/"
48
- priority = "supplemental"
49
-
50
- [[tool.uv.index]]
51
- # Same licensed index as [[tool.poetry.source]]. Listed before PyPI so that
52
- # codecraftai-* packages (direct and transitive) resolve from it; everything
53
- # else falls through to PyPI. Credentials: UV_INDEX_CODECRAFTAI_USERNAME /
54
- # UV_INDEX_CODECRAFTAI_PASSWORD, or `uv auth login`.
55
- name = "codecraftai"
56
- url = "https://code-craft.ai/licensed-repository/simple/"
57
-
58
37
  [tool.ruff.lint]
59
38
  # Deliberately narrow. This gate exists for one reason: a bare `except:`
60
39
  # swallows ConfigurationError and SemanticError, which derive from
@@ -10,8 +10,6 @@ from __future__ import annotations
10
10
 
11
11
  import os
12
12
 
13
- from pathlib import Path
14
-
15
13
  from ccai.restclient.base.restclientgenerator import RestClientGenerator
16
14
 
17
15
  from ccai.pychestrate.rest.client.pychestraterestclientbase import PychestrateRestClientBase
@@ -34,33 +32,12 @@ class PychestrateRestClientGenerator(RestClientGenerator):
34
32
  SCHEMA_MODULE_ROOT = "ccai.pychestrate.rest.client.models"
35
33
  GROUP_MODULE_ROOT = "ccai.pychestrate.rest.client.groups"
36
34
 
37
- def generate(self):
38
- """
39
- Generate all client, group, and schema modules.
40
-
41
- Mirrors the parent generator but writes schemas into a
42
- ``models/`` directory instead of ``schemas/``.
43
- """
44
- clients_root = self._clients_root
45
- groups_dir = clients_root / "groups"
46
- schemas_dir = clients_root / "models"
47
-
48
- for directory in (groups_dir, schemas_dir):
49
- directory.mkdir(parents=True, exist_ok=True)
50
-
51
- self._generate_schema_modules(schemas_dir)
52
-
53
- sorted_groups = sorted(self._groups.keys())
54
-
55
- for group in sorted_groups:
56
- ops = sorted(self._groups[group], key=lambda o: self._safe_snake(o.method_name))
57
- self._generate_group_module(group, ops, groups_dir)
35
+ # Schema modules are written to 'models/' instead of the base generator's 'schemas/'.
36
+ SCHEMAS_DIRNAME = "models"
58
37
 
59
- self._generate_client_module(sorted_groups, clients_root)
60
- self._write_simple_init(groups_dir)
61
- self._write_schemas_init(schemas_dir)
62
- self._write_simple_init(clients_root)
63
- return
38
+ # The artifact path is a '/'-separated path inside the run's artifact tree. It is percent-encoded
39
+ # per segment, and '.' / '..' segments are rejected; every other path parameter is one segment.
40
+ MULTI_SEGMENT_PARAMETER_NAMES = ("artifact_path",)
64
41
 
65
42
 
66
43
  def pychestrate_rest_client_generator_main():
@@ -1,6 +1,6 @@
1
1
  # Auto-generated by RestClientGenerator. DO NOT EDIT.
2
2
 
3
- from typing import Any, Dict, List, Optional
3
+ from typing import Any, Dict, List, Optional, Union
4
4
 
5
5
  from ccai.pychestrate.rest.client.models.agents import Agentrollout
6
6
  from ccai.pychestrate.rest.client.models.agents import Agentrolloutcreaterequest
@@ -15,7 +15,7 @@ class AgentsApiGroup(RestApiGroup):
15
15
  Agent rollouts and per-client capability inventory.
16
16
  """
17
17
 
18
- def agents_create_rollout(self, body: Agentrolloutcreaterequest, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
18
+ def agents_create_rollout(self, body: Union[Agentrolloutcreaterequest, Dict[str, Any]], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Agentrollout:
19
19
  """
20
20
  Create an agent rollout plan.
21
21
  """
@@ -23,9 +23,9 @@ class AgentsApiGroup(RestApiGroup):
23
23
  if aspects is None:
24
24
  aspects = client.aspects
25
25
 
26
- header_params = client.headers
26
+ header_params = dict(client.headers)
27
27
  if headers is not None:
28
- header_params = headers
28
+ header_params = dict(headers)
29
29
 
30
30
  call_leaf = "/agent-rollouts"
31
31
 
@@ -45,10 +45,13 @@ class AgentsApiGroup(RestApiGroup):
45
45
  context_msg=None,
46
46
  aspects=aspects,
47
47
  )
48
- if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
48
+ if len(resp.content) == 0:
49
49
  rtnval = None
50
+ elif self._is_raw_response(resp):
51
+ rtnval = self._read_raw_body(resp)
50
52
  else:
51
- rtnval = resp.json()
53
+ raw_data = resp.json()
54
+ rtnval = Agentrollout.from_dict(raw_data)
52
55
  return rtnval
53
56
 
54
57
  def agents_get_client_capabilities(self, client_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Clientcapabilities:
@@ -59,15 +62,15 @@ class AgentsApiGroup(RestApiGroup):
59
62
  if aspects is None:
60
63
  aspects = client.aspects
61
64
 
62
- header_params = client.headers
65
+ header_params = dict(client.headers)
63
66
  if headers is not None:
64
- header_params = headers
67
+ header_params = dict(headers)
65
68
 
66
69
  leaf_template = "/clients/{client_id}/capabilities"
67
70
  path_params = {
68
71
  'client_id': client_id,
69
72
  }
70
- call_leaf = leaf_template.format(**path_params)
73
+ call_leaf = self.format_leaf(leaf_template, path_params=path_params)
71
74
 
72
75
  query_params = None
73
76
 
@@ -85,12 +88,14 @@ class AgentsApiGroup(RestApiGroup):
85
88
  context_msg=None,
86
89
  aspects=aspects,
87
90
  )
88
- if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
89
- rtnobj = None
91
+ if len(resp.content) == 0:
92
+ rtnval = None
93
+ elif self._is_raw_response(resp):
94
+ rtnval = self._read_raw_body(resp)
90
95
  else:
91
96
  raw_data = resp.json()
92
- rtnobj = Clientcapabilities.from_dict(raw_data)
93
- return rtnobj
97
+ rtnval = Clientcapabilities.from_dict(raw_data)
98
+ return rtnval
94
99
 
95
100
  def agents_get_client_inventory(self, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Clientinventory:
96
101
  """
@@ -100,9 +105,9 @@ class AgentsApiGroup(RestApiGroup):
100
105
  if aspects is None:
101
106
  aspects = client.aspects
102
107
 
103
- header_params = client.headers
108
+ header_params = dict(client.headers)
104
109
  if headers is not None:
105
- header_params = headers
110
+ header_params = dict(headers)
106
111
 
107
112
  call_leaf = "/clients:inventory"
108
113
 
@@ -122,12 +127,14 @@ class AgentsApiGroup(RestApiGroup):
122
127
  context_msg=None,
123
128
  aspects=aspects,
124
129
  )
125
- if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
126
- rtnobj = None
130
+ if len(resp.content) == 0:
131
+ rtnval = None
132
+ elif self._is_raw_response(resp):
133
+ rtnval = self._read_raw_body(resp)
127
134
  else:
128
135
  raw_data = resp.json()
129
- rtnobj = Clientinventory.from_dict(raw_data)
130
- return rtnobj
136
+ rtnval = Clientinventory.from_dict(raw_data)
137
+ return rtnval
131
138
 
132
139
  def agents_start_rollout(self, rollout_id: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Agentrollout:
133
140
  """
@@ -137,15 +144,15 @@ class AgentsApiGroup(RestApiGroup):
137
144
  if aspects is None:
138
145
  aspects = client.aspects
139
146
 
140
- header_params = client.headers
147
+ header_params = dict(client.headers)
141
148
  if headers is not None:
142
- header_params = headers
149
+ header_params = dict(headers)
143
150
 
144
151
  leaf_template = "/agent-rollouts/{rollout_id}:start"
145
152
  path_params = {
146
153
  'rollout_id': rollout_id,
147
154
  }
148
- call_leaf = leaf_template.format(**path_params)
155
+ call_leaf = self.format_leaf(leaf_template, path_params=path_params)
149
156
 
150
157
  query_params = None
151
158
 
@@ -163,9 +170,11 @@ class AgentsApiGroup(RestApiGroup):
163
170
  context_msg=None,
164
171
  aspects=aspects,
165
172
  )
166
- if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
167
- rtnobj = None
173
+ if len(resp.content) == 0:
174
+ rtnval = None
175
+ elif self._is_raw_response(resp):
176
+ rtnval = self._read_raw_body(resp)
168
177
  else:
169
178
  raw_data = resp.json()
170
- rtnobj = Agentrollout.from_dict(raw_data)
171
- return rtnobj
179
+ rtnval = Agentrollout.from_dict(raw_data)
180
+ return rtnval
@@ -21,16 +21,16 @@ class ArtifactsApiGroup(RestApiGroup):
21
21
  if aspects is None:
22
22
  aspects = client.aspects
23
23
 
24
- header_params = client.headers
24
+ header_params = dict(client.headers)
25
25
  if headers is not None:
26
- header_params = headers
26
+ header_params = dict(headers)
27
27
 
28
28
  leaf_template = "/runs/{run_id}/artifacts/{artifact_path}"
29
29
  path_params = {
30
30
  'run_id': run_id,
31
31
  'artifact_path': artifact_path,
32
32
  }
33
- call_leaf = leaf_template.format(**path_params)
33
+ call_leaf = self.format_leaf(leaf_template, path_params=path_params, multi_segment=['artifact_path'])
34
34
 
35
35
  query_params = None
36
36
 
@@ -48,12 +48,14 @@ class ArtifactsApiGroup(RestApiGroup):
48
48
  context_msg=None,
49
49
  aspects=aspects,
50
50
  )
51
- if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
52
- rtnobj = None
51
+ if len(resp.content) == 0:
52
+ rtnval = None
53
+ elif self._is_raw_response(resp):
54
+ rtnval = self._read_raw_body(resp)
53
55
  else:
54
56
  raw_data = resp.json()
55
- rtnobj = Artifactentry.from_dict(raw_data)
56
- return rtnobj
57
+ rtnval = Artifactentry.from_dict(raw_data)
58
+ return rtnval
57
59
 
58
60
  def artifacts_list_for_run(self, run_id: str, *, prefix: Optional[str] = None, page: Optional[int] = 1, per_page: Optional[int] = 50, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Artifactentrypage:
59
61
  """
@@ -63,15 +65,15 @@ class ArtifactsApiGroup(RestApiGroup):
63
65
  if aspects is None:
64
66
  aspects = client.aspects
65
67
 
66
- header_params = client.headers
68
+ header_params = dict(client.headers)
67
69
  if headers is not None:
68
- header_params = headers
70
+ header_params = dict(headers)
69
71
 
70
72
  leaf_template = "/runs/{run_id}/artifacts"
71
73
  path_params = {
72
74
  'run_id': run_id,
73
75
  }
74
- call_leaf = leaf_template.format(**path_params)
76
+ call_leaf = self.format_leaf(leaf_template, path_params=path_params)
75
77
 
76
78
  query_params = {}
77
79
  if prefix is not None:
@@ -95,9 +97,11 @@ class ArtifactsApiGroup(RestApiGroup):
95
97
  context_msg=None,
96
98
  aspects=aspects,
97
99
  )
98
- if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
99
- rtnobj = None
100
+ if len(resp.content) == 0:
101
+ rtnval = None
102
+ elif self._is_raw_response(resp):
103
+ rtnval = self._read_raw_body(resp)
100
104
  else:
101
105
  raw_data = resp.json()
102
- rtnobj = Artifactentrypage.from_dict(raw_data)
103
- return rtnobj
106
+ rtnval = Artifactentrypage.from_dict(raw_data)
107
+ return rtnval
@@ -20,15 +20,15 @@ class AuditApiGroup(RestApiGroup):
20
20
  if aspects is None:
21
21
  aspects = client.aspects
22
22
 
23
- header_params = client.headers
23
+ header_params = dict(client.headers)
24
24
  if headers is not None:
25
- header_params = headers
25
+ header_params = dict(headers)
26
26
 
27
27
  leaf_template = "/audit/{sequence_number}"
28
28
  path_params = {
29
29
  'sequence_number': sequence_number,
30
30
  }
31
- call_leaf = leaf_template.format(**path_params)
31
+ call_leaf = self.format_leaf(leaf_template, path_params=path_params)
32
32
 
33
33
  query_params = None
34
34
 
@@ -46,24 +46,28 @@ class AuditApiGroup(RestApiGroup):
46
46
  context_msg=None,
47
47
  aspects=aspects,
48
48
  )
49
- if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
50
- rtnobj = None
49
+ if len(resp.content) == 0:
50
+ rtnval = None
51
+ elif self._is_raw_response(resp):
52
+ rtnval = self._read_raw_body(resp)
51
53
  else:
52
54
  raw_data = resp.json()
53
- rtnobj = Auditrecord.from_dict(raw_data)
54
- return rtnobj
55
+ rtnval = Auditrecord.from_dict(raw_data)
56
+ return rtnval
55
57
 
56
- def audit_list(self, *, limit: Optional[int] = 100, after_sequence: Optional[int] = None, actor_id: Optional[str] = None, action: Optional[str] = None, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Dict[str, Any]:
58
+ def audit_list(self, *, limit: Optional[int] = None, after_sequence: Optional[int] = None, actor_id: Optional[str] = None, action: Optional[str] = None, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Dict[str, Any]:
57
59
  """
58
60
  List audit-log records.
61
+
62
+ :param limit: Not sent when None; the service then applies its default 100.
59
63
  """
60
64
  client = self.client
61
65
  if aspects is None:
62
66
  aspects = client.aspects
63
67
 
64
- header_params = client.headers
68
+ header_params = dict(client.headers)
65
69
  if headers is not None:
66
- header_params = headers
70
+ header_params = dict(headers)
67
71
 
68
72
  call_leaf = "/audit"
69
73
 
@@ -91,8 +95,10 @@ class AuditApiGroup(RestApiGroup):
91
95
  context_msg=None,
92
96
  aspects=aspects,
93
97
  )
94
- if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
98
+ if len(resp.content) == 0:
95
99
  rtnval = None
100
+ elif self._is_raw_response(resp):
101
+ rtnval = self._read_raw_body(resp)
96
102
  else:
97
103
  raw_data = resp.json()
98
104
  rtnval = self._parse_item(raw_data, Dict[str, Any])
@@ -1,6 +1,6 @@
1
1
  # Auto-generated by RestClientGenerator. DO NOT EDIT.
2
2
 
3
- from typing import Dict, List, Optional
3
+ from typing import Any, Dict, List, Optional, Union
4
4
 
5
5
  from ccai.pychestrate.rest.client.models.auth import Logoutrequest
6
6
  from ccai.pychestrate.rest.client.models.auth import Logoutresponse
@@ -13,7 +13,7 @@ class AuthApiGroup(RestApiGroup):
13
13
  Local-credential authentication and session lifecycle.
14
14
  """
15
15
 
16
- def auth_logout(self, body: Logoutrequest, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Logoutresponse:
16
+ def auth_logout(self, body: Union[Logoutrequest, Dict[str, Any]], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Logoutresponse:
17
17
  """
18
18
  Close the current session.
19
19
 
@@ -25,9 +25,9 @@ class AuthApiGroup(RestApiGroup):
25
25
  if aspects is None:
26
26
  aspects = client.aspects
27
27
 
28
- header_params = client.headers
28
+ header_params = dict(client.headers)
29
29
  if headers is not None:
30
- header_params = headers
30
+ header_params = dict(headers)
31
31
 
32
32
  call_leaf = "/auth/logout"
33
33
 
@@ -47,9 +47,11 @@ class AuthApiGroup(RestApiGroup):
47
47
  context_msg=None,
48
48
  aspects=aspects,
49
49
  )
50
- if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
51
- rtnobj = None
50
+ if len(resp.content) == 0:
51
+ rtnval = None
52
+ elif self._is_raw_response(resp):
53
+ rtnval = self._read_raw_body(resp)
52
54
  else:
53
55
  raw_data = resp.json()
54
- rtnobj = Logoutresponse.from_dict(raw_data)
55
- return rtnobj
56
+ rtnval = Logoutresponse.from_dict(raw_data)
57
+ return rtnval