notdiamond 2.0.0-rc2 → 2.0.0-rc20

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 (147) hide show
  1. package/CHANGELOG.md +185 -0
  2. package/LICENSE +1 -1
  3. package/README.md +261 -168
  4. package/client.d.mts +26 -43
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +26 -43
  7. package/client.d.ts.map +1 -1
  8. package/client.js +49 -68
  9. package/client.js.map +1 -1
  10. package/client.mjs +47 -66
  11. package/client.mjs.map +1 -1
  12. package/core/api-promise.d.mts +2 -2
  13. package/core/api-promise.d.ts +2 -2
  14. package/core/error.d.mts +2 -2
  15. package/core/error.d.ts +2 -2
  16. package/core/error.js +4 -4
  17. package/core/error.mjs +2 -2
  18. package/core/resource.d.mts +3 -3
  19. package/core/resource.d.ts +3 -3
  20. package/index.d.mts +3 -3
  21. package/index.d.ts +3 -3
  22. package/index.js +4 -4
  23. package/index.mjs +3 -3
  24. package/internal/parse.d.mts +2 -2
  25. package/internal/parse.d.ts +2 -2
  26. package/internal/shims.js +1 -1
  27. package/internal/shims.mjs +1 -1
  28. package/internal/uploads.d.mts +4 -4
  29. package/internal/uploads.d.ts +4 -4
  30. package/internal/utils/base64.js +2 -2
  31. package/internal/utils/base64.mjs +3 -3
  32. package/internal/utils/env.d.mts.map +1 -1
  33. package/internal/utils/env.d.ts.map +1 -1
  34. package/internal/utils/env.js +4 -2
  35. package/internal/utils/env.js.map +1 -1
  36. package/internal/utils/env.mjs +4 -2
  37. package/internal/utils/env.mjs.map +1 -1
  38. package/internal/utils/log.d.mts +3 -3
  39. package/internal/utils/log.d.ts +3 -3
  40. package/internal/utils/path.js +1 -1
  41. package/internal/utils/path.mjs +2 -2
  42. package/internal/utils/values.js +5 -5
  43. package/internal/utils/values.mjs +6 -6
  44. package/package.json +11 -12
  45. package/resources/custom-router.d.mts +145 -0
  46. package/resources/custom-router.d.mts.map +1 -0
  47. package/resources/custom-router.d.ts +145 -0
  48. package/resources/custom-router.d.ts.map +1 -0
  49. package/resources/custom-router.js +83 -0
  50. package/resources/custom-router.js.map +1 -0
  51. package/resources/custom-router.mjs +79 -0
  52. package/resources/custom-router.mjs.map +1 -0
  53. package/resources/index.d.mts +5 -6
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +5 -6
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js +5 -7
  58. package/resources/index.js.map +1 -1
  59. package/resources/index.mjs +2 -3
  60. package/resources/index.mjs.map +1 -1
  61. package/resources/model-router.d.mts +194 -0
  62. package/resources/model-router.d.mts.map +1 -0
  63. package/resources/model-router.d.ts +194 -0
  64. package/resources/model-router.d.ts.map +1 -0
  65. package/resources/model-router.js +68 -0
  66. package/resources/model-router.js.map +1 -0
  67. package/resources/model-router.mjs +64 -0
  68. package/resources/model-router.mjs.map +1 -0
  69. package/resources/models.d.mts +50 -25
  70. package/resources/models.d.mts.map +1 -1
  71. package/resources/models.d.ts +50 -25
  72. package/resources/models.d.ts.map +1 -1
  73. package/resources/models.js +5 -0
  74. package/resources/models.js.map +1 -1
  75. package/resources/models.mjs +5 -0
  76. package/resources/models.mjs.map +1 -1
  77. package/resources/preferences.d.mts +37 -54
  78. package/resources/preferences.d.mts.map +1 -1
  79. package/resources/preferences.d.ts +37 -54
  80. package/resources/preferences.d.ts.map +1 -1
  81. package/resources/preferences.js +17 -42
  82. package/resources/preferences.js.map +1 -1
  83. package/resources/preferences.mjs +17 -42
  84. package/resources/preferences.mjs.map +1 -1
  85. package/resources/prompt-adaptation.d.mts +340 -249
  86. package/resources/prompt-adaptation.d.mts.map +1 -1
  87. package/resources/prompt-adaptation.d.ts +340 -249
  88. package/resources/prompt-adaptation.d.ts.map +1 -1
  89. package/resources/prompt-adaptation.js +36 -79
  90. package/resources/prompt-adaptation.js.map +1 -1
  91. package/resources/prompt-adaptation.mjs +36 -79
  92. package/resources/prompt-adaptation.mjs.map +1 -1
  93. package/src/client.ts +72 -128
  94. package/src/core/api-promise.ts +4 -4
  95. package/src/core/error.ts +2 -2
  96. package/src/core/resource.ts +3 -3
  97. package/src/index.ts +3 -3
  98. package/src/internal/parse.ts +2 -2
  99. package/src/internal/shims.ts +1 -1
  100. package/src/internal/uploads.ts +5 -5
  101. package/src/internal/utils/base64.ts +3 -3
  102. package/src/internal/utils/env.ts +4 -2
  103. package/src/internal/utils/log.ts +3 -3
  104. package/src/internal/utils/path.ts +2 -2
  105. package/src/internal/utils/values.ts +6 -6
  106. package/src/resources/custom-router.ts +168 -0
  107. package/src/resources/index.ts +20 -32
  108. package/src/resources/model-router.ts +222 -0
  109. package/src/resources/models.ts +55 -32
  110. package/src/resources/preferences.ts +43 -83
  111. package/src/resources/prompt-adaptation.ts +358 -300
  112. package/src/version.ts +1 -1
  113. package/version.d.mts +1 -1
  114. package/version.d.mts.map +1 -1
  115. package/version.d.ts +1 -1
  116. package/version.d.ts.map +1 -1
  117. package/version.js +1 -1
  118. package/version.js.map +1 -1
  119. package/version.mjs +1 -1
  120. package/version.mjs.map +1 -1
  121. package/resources/admin.d.mts +0 -4
  122. package/resources/admin.d.mts.map +0 -1
  123. package/resources/admin.d.ts +0 -4
  124. package/resources/admin.d.ts.map +0 -1
  125. package/resources/admin.js +0 -9
  126. package/resources/admin.js.map +0 -1
  127. package/resources/admin.mjs +0 -5
  128. package/resources/admin.mjs.map +0 -1
  129. package/resources/report.d.mts +0 -245
  130. package/resources/report.d.mts.map +0 -1
  131. package/resources/report.d.ts +0 -245
  132. package/resources/report.d.ts.map +0 -1
  133. package/resources/report.js +0 -86
  134. package/resources/report.js.map +0 -1
  135. package/resources/report.mjs +0 -82
  136. package/resources/report.mjs.map +0 -1
  137. package/resources/routing.d.mts +0 -391
  138. package/resources/routing.d.mts.map +0 -1
  139. package/resources/routing.d.ts +0 -391
  140. package/resources/routing.d.ts.map +0 -1
  141. package/resources/routing.js +0 -163
  142. package/resources/routing.js.map +0 -1
  143. package/resources/routing.mjs +0 -159
  144. package/resources/routing.mjs.map +0 -1
  145. package/src/resources/admin.ts +0 -5
  146. package/src/resources/report.ts +0 -300
  147. package/src/resources/routing.ts +0 -476
package/CHANGELOG.md CHANGED
@@ -1,5 +1,190 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.0-rc20 (2025-12-08)
4
+
5
+ Full Changelog: [v2.0.0-rc19...v2.0.0-rc20](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc19...v2.0.0-rc20)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([84c5066](https://github.com/Not-Diamond/not-diamond-typescript/commit/84c5066bea0f66d3f0a6db873db07c8a8fa5e003))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **mcp:** correct code tool API endpoint ([635c1ae](https://github.com/Not-Diamond/not-diamond-typescript/commit/635c1ae86b78993557e4dd91fd2e413a726dd04c))
15
+ * **mcp:** return correct lines on typescript errors ([4dbe2f4](https://github.com/Not-Diamond/not-diamond-typescript/commit/4dbe2f425ecc39e6dc89e3387754db85643718e4))
16
+
17
+
18
+ ### Chores
19
+
20
+ * **internal:** codegen related update ([ab51a25](https://github.com/Not-Diamond/not-diamond-typescript/commit/ab51a250692a609e9aa6bfe62392347b577846bc))
21
+ * **internal:** codegen related update ([c396036](https://github.com/Not-Diamond/not-diamond-typescript/commit/c39603681e3efa4ffd7df8dcf881c1a503d5aa2b))
22
+ * **internal:** configure pnpm minimumReleaseAge to 1 day ([b851d00](https://github.com/Not-Diamond/not-diamond-typescript/commit/b851d00a1a464c1771a744ae9cf0fa0ac2d2b112))
23
+ * **internal:** upgrade eslint ([37c2476](https://github.com/Not-Diamond/not-diamond-typescript/commit/37c2476b5fa8ad716f598f8d524f15f18eea9d90))
24
+
25
+ ## 2.0.0-rc19 (2025-12-02)
26
+
27
+ Full Changelog: [v2.0.0-rc18...v2.0.0-rc19](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc18...v2.0.0-rc19)
28
+
29
+ ### Features
30
+
31
+ * **api:** api update ([7d01517](https://github.com/Not-Diamond/not-diamond-typescript/commit/7d015174936c113759aeba7c867889eba461e63f))
32
+ * **api:** manual updates ([c036288](https://github.com/Not-Diamond/not-diamond-typescript/commit/c03628828ac7f0237204dbb87b615138b1dc1b7b))
33
+
34
+ ## 2.0.0-rc18 (2025-12-02)
35
+
36
+ Full Changelog: [v2.0.0-rc17...v2.0.0-rc18](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc17...v2.0.0-rc18)
37
+
38
+ ### Features
39
+
40
+ * **api:** api update ([4186119](https://github.com/Not-Diamond/not-diamond-typescript/commit/4186119d41c418d43aafbaebd146576bb5071bdd))
41
+
42
+
43
+ ### Chores
44
+
45
+ * **client:** fix logger property type ([ddb5250](https://github.com/Not-Diamond/not-diamond-typescript/commit/ddb5250728756f13a16b995134bde305a91e72cd))
46
+ * update package.json and pnpm-lock.yaml with dependency overrides for @babel/helpers and js-yaml ([2502340](https://github.com/Not-Diamond/not-diamond-typescript/commit/2502340cb7f23ae04894d2e7c6fc0a36a10a7b5e))
47
+
48
+ ## 2.0.0-rc17 (2025-11-14)
49
+
50
+ Full Changelog: [v2.0.0-rc16...v2.0.0-rc17](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc16...v2.0.0-rc17)
51
+
52
+ ### Bug Fixes
53
+
54
+ * **docs:** update README to correct prompt adaptation method calls and improve clarity ([92d08c9](https://github.com/Not-Diamond/not-diamond-typescript/commit/92d08c91068ab3a6d022c3675ff5e7d98092bed6))
55
+
56
+ ## 2.0.0-rc16 (2025-11-14)
57
+
58
+ Full Changelog: [v2.0.0-rc15...v2.0.0-rc16](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc15...v2.0.0-rc16)
59
+
60
+ ### Features
61
+
62
+ * **api:** manual updates ([cf4dff1](https://github.com/Not-Diamond/not-diamond-typescript/commit/cf4dff18d42113ba5e87502c3080142b5d8430c9))
63
+
64
+ ## 2.0.0-rc15 (2025-11-14)
65
+
66
+ Full Changelog: [v2.0.0-rc14...v2.0.0-rc15](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc14...v2.0.0-rc15)
67
+
68
+ ### Features
69
+
70
+ * **api:** api update ([fb34b0d](https://github.com/Not-Diamond/not-diamond-typescript/commit/fb34b0d945db7c91f11afc7780c366381359c036))
71
+
72
+ ## 2.0.0-rc14 (2025-11-14)
73
+
74
+ Full Changelog: [v2.0.0-rc13...v2.0.0-rc14](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc13...v2.0.0-rc14)
75
+
76
+ ### Features
77
+
78
+ * **api:** manual updates ([ef30432](https://github.com/Not-Diamond/not-diamond-typescript/commit/ef304326d8b0e0312c333e9c9c559c4a7de56d78))
79
+
80
+ ## 2.0.0-rc13 (2025-11-13)
81
+
82
+ Full Changelog: [v2.0.0-rc11...v2.0.0-rc13](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc11...v2.0.0-rc13)
83
+
84
+ ### Features
85
+
86
+ * **api:** manual updates ([39f6d64](https://github.com/Not-Diamond/not-diamond-typescript/commit/39f6d6412feea4853877ef81660b3b4bb1b8fce1))
87
+
88
+
89
+ ### Documentation
90
+
91
+ * update README to reflect changes in prompt adaptation details and API key naming convention ([664607c](https://github.com/Not-Diamond/not-diamond-typescript/commit/664607c23a691c96d8f9e7884a464fe5788d03ca))
92
+ * update README to remove Prompt Adaptation section and add Train Custom Router section with usage examples ([f568d40](https://github.com/Not-Diamond/not-diamond-typescript/commit/f568d406342742092a8f512373335764611005e4))
93
+
94
+ ## 2.0.0-rc11 (2025-11-12)
95
+
96
+ Full Changelog: [v2.0.0-rc10...v2.0.0-rc11](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc10...v2.0.0-rc11)
97
+
98
+ ### Features
99
+
100
+ * **api:** changed name ([26dafc9](https://github.com/Not-Diamond/not-diamond-typescript/commit/26dafc922b42ae9d95c010c38227360bde6759ce))
101
+
102
+
103
+ ### Chores
104
+
105
+ * **internal:** codegen related update ([8c6c957](https://github.com/Not-Diamond/not-diamond-typescript/commit/8c6c957834274d394960ac66d782547bdc7dd856))
106
+
107
+ ## 2.0.0-rc10 (2025-11-10)
108
+
109
+ Full Changelog: [v2.0.0-rc9...v2.0.0-rc10](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc9...v2.0.0-rc10)
110
+
111
+ ### Features
112
+
113
+ * **api:** manual updates ([b19bcb6](https://github.com/Not-Diamond/not-diamond-typescript/commit/b19bcb6965272f127345ef26b044fb74ac5a9f2a))
114
+
115
+ ## 2.0.0-rc9 (2025-11-10)
116
+
117
+ Full Changelog: [v2.0.0-rc9...v2.0.0-rc9](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc9...v2.0.0-rc9)
118
+
119
+ ### Features
120
+
121
+ * **api:** manual updates ([33b1872](https://github.com/Not-Diamond/not-diamond-typescript/commit/33b1872a28439049fe06472bdb7502ae9dd0d260))
122
+
123
+ ## 2.0.0-rc9 (2025-11-10)
124
+
125
+ Full Changelog: [v2.0.0-rc8...v2.0.0-rc9](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc8...v2.0.0-rc9)
126
+
127
+ ## 2.0.0-rc8 (2025-11-10)
128
+
129
+ Full Changelog: [v2.0.0-rc6...v2.0.0-rc8](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc6...v2.0.0-rc8)
130
+
131
+ ### Features
132
+
133
+ * **api:** manual updates ([46892a1](https://github.com/Not-Diamond/not-diamond-typescript/commit/46892a160ca21dedd68512bbc0f31dd26ab67586))
134
+
135
+ ## 2.0.0-rc6 (2025-11-07)
136
+
137
+ Full Changelog: [v2.0.0-rc5...v2.0.0-rc6](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc5...v2.0.0-rc6)
138
+
139
+ ### Features
140
+
141
+ * **api:** api update ([1d08dd1](https://github.com/Not-Diamond/not-diamond-typescript/commit/1d08dd1ee83a2f4f6147152c044858ad5c113247))
142
+
143
+ ## 2.0.0-rc5 (2025-11-06)
144
+
145
+ Full Changelog: [v2.0.0-rc4...v2.0.0-rc5](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc4...v2.0.0-rc5)
146
+
147
+ ### Features
148
+
149
+ * **api:** manual updates ([92ec1c6](https://github.com/Not-Diamond/not-diamond-typescript/commit/92ec1c69f2c5de881cdc36790aa84bcf568eae70))
150
+
151
+ ## 2.0.0-rc4 (2025-11-05)
152
+
153
+ Full Changelog: [v2.0.0-rc3...v2.0.0-rc4](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc3...v2.0.0-rc4)
154
+
155
+ ### Features
156
+
157
+ * **api:** manual updates ([dd4e78c](https://github.com/Not-Diamond/not-diamond-typescript/commit/dd4e78c59a3b8d07613b72e33cf0e414b62d7e30))
158
+
159
+
160
+ ### Chores
161
+
162
+ * update SDK settings ([42a98d0](https://github.com/Not-Diamond/not-diamond-typescript/commit/42a98d0699147509d025e232ad05ed97e6fa9ed3))
163
+
164
+ ## 2.0.0-rc3 (2025-11-05)
165
+
166
+ Full Changelog: [v2.0.0-rc2...v2.0.0-rc3](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc2...v2.0.0-rc3)
167
+
168
+ ### Features
169
+
170
+ * **api:** api update ([d087c64](https://github.com/Not-Diamond/not-diamond-typescript/commit/d087c6421949701acada35f89a1a8d009b581194))
171
+ * **api:** api update ([e431f34](https://github.com/Not-Diamond/not-diamond-typescript/commit/e431f343b558579f7940eacaef5d4f4b3656398f))
172
+ * **api:** api update ([8e6ad30](https://github.com/Not-Diamond/not-diamond-typescript/commit/8e6ad303485025b04622fcaf8d92686581fcc2a7))
173
+ * **api:** enable tests ([d94af20](https://github.com/Not-Diamond/not-diamond-typescript/commit/d94af20e2963644a0034fe1b60a7febf140b204f))
174
+ * **api:** manual updates ([20adad9](https://github.com/Not-Diamond/not-diamond-typescript/commit/20adad9ab8f778b3a8599c41cd91734b2c556614))
175
+ * **api:** regen docs ([ba39a05](https://github.com/Not-Diamond/not-diamond-typescript/commit/ba39a05f842dac7d5eb5153192ec08c3d87bf79f))
176
+ * **api:** verify mock tests enabled ([dcfbb6b](https://github.com/Not-Diamond/not-diamond-typescript/commit/dcfbb6b47900690ea531c510387b7e0392e23abb))
177
+
178
+
179
+ ### Bug Fixes
180
+
181
+ * **env:** handle empty environment variable values ([8360f59](https://github.com/Not-Diamond/not-diamond-typescript/commit/8360f59232e1887a1c6560a6195846c1c45f66e9))
182
+
183
+
184
+ ### Chores
185
+
186
+ * update SDK settings ([259c1ab](https://github.com/Not-Diamond/not-diamond-typescript/commit/259c1ab15d0c4d8bb1700ffa79fc24481ac4a4ae))
187
+
3
188
  ## 2.0.0-rc2 (2025-10-31)
4
189
 
5
190
  Full Changelog: [v2.0.0-rc1...v2.0.0-rc2](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc1...v2.0.0-rc2)
package/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2025 Not Diamond
189
+ Copyright 2025 Notdiamond
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.