@omnicross/contracts 0.1.2 → 0.1.4

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 (47) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +15 -15
  3. package/dist/account-tokens-types.d.cts +157 -1
  4. package/dist/account-tokens-types.d.ts +157 -1
  5. package/dist/audit-types.cjs +36 -0
  6. package/dist/audit-types.d.cts +98 -0
  7. package/dist/audit-types.d.ts +98 -0
  8. package/dist/audit-types.js +11 -0
  9. package/dist/billing-types.cjs +33 -0
  10. package/dist/billing-types.d.cts +98 -0
  11. package/dist/billing-types.d.ts +98 -0
  12. package/dist/billing-types.js +8 -0
  13. package/dist/canonical-models.d.cts +1 -1
  14. package/dist/canonical-models.d.ts +1 -1
  15. package/dist/endpoint-resolver.d.cts +1 -1
  16. package/dist/endpoint-resolver.d.ts +1 -1
  17. package/dist/health-logging-types.cjs +32 -0
  18. package/dist/health-logging-types.d.cts +68 -0
  19. package/dist/health-logging-types.d.ts +68 -0
  20. package/dist/health-logging-types.js +7 -0
  21. package/dist/index.cjs +63 -0
  22. package/dist/index.d.cts +9 -3
  23. package/dist/index.d.ts +9 -3
  24. package/dist/index.js +55 -0
  25. package/dist/{llm-config-D1jKQLVp.d.ts → llm-config-CKOaFFdy.d.ts} +8 -1
  26. package/dist/{llm-config-CQjOimv2.d.cts → llm-config-DeWNx1ig.d.cts} +8 -1
  27. package/dist/llm-config.d.cts +1 -1
  28. package/dist/llm-config.d.ts +1 -1
  29. package/dist/provider-presets/index.d.cts +2 -2
  30. package/dist/provider-presets/index.d.ts +2 -2
  31. package/dist/subscription-model-catalog.cjs +40 -0
  32. package/dist/subscription-model-catalog.d.cts +34 -0
  33. package/dist/subscription-model-catalog.d.ts +34 -0
  34. package/dist/subscription-model-catalog.js +14 -0
  35. package/dist/thinking-config.d.cts +1 -1
  36. package/dist/thinking-config.d.ts +1 -1
  37. package/dist/usage-stats-types.d.cts +22 -1
  38. package/dist/usage-stats-types.d.ts +22 -1
  39. package/dist/voucher-types.cjs +32 -0
  40. package/dist/voucher-types.d.cts +153 -0
  41. package/dist/voucher-types.d.ts +153 -0
  42. package/dist/voucher-types.js +7 -0
  43. package/dist/webhook-types.cjs +40 -0
  44. package/dist/webhook-types.d.cts +122 -0
  45. package/dist/webhook-types.d.ts +122 -0
  46. package/dist/webhook-types.js +14 -0
  47. package/package.json +156 -126
package/package.json CHANGED
@@ -1,126 +1,156 @@
1
- {
2
- "name": "@omnicross/contracts",
3
- "version": "0.1.2",
4
- "description": "Dependency-light, host-agnostic contract types + runtime-value helpers shared by the @omnicross/* packages.",
5
- "license": "MIT",
6
- "author": "Sayo (https://github.com/Dumoedss)",
7
- "homepage": "https://github.com/Dumoedss/omnicross#readme",
8
- "keywords": [
9
- "omnicross",
10
- "llm",
11
- "openai",
12
- "anthropic",
13
- "gemini",
14
- "types",
15
- "contracts"
16
- ],
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/Dumoedss/omnicross.git",
20
- "directory": "packages/contracts"
21
- },
22
- "publishConfig": {
23
- "access": "public"
24
- },
25
- "engines": {
26
- "node": ">=20"
27
- },
28
- "type": "module",
29
- "main": "dist/index.cjs",
30
- "module": "dist/index.js",
31
- "types": "dist/index.d.ts",
32
- "exports": {
33
- ".": {
34
- "types": "./dist/index.d.ts",
35
- "import": "./dist/index.js",
36
- "require": "./dist/index.cjs"
37
- },
38
- "./account-tokens-types": {
39
- "types": "./dist/account-tokens-types.d.ts",
40
- "import": "./dist/account-tokens-types.js",
41
- "require": "./dist/account-tokens-types.cjs"
42
- },
43
- "./canonical-models": {
44
- "types": "./dist/canonical-models.d.ts",
45
- "import": "./dist/canonical-models.js",
46
- "require": "./dist/canonical-models.cjs"
47
- },
48
- "./completion-types": {
49
- "types": "./dist/completion-types.d.ts",
50
- "import": "./dist/completion-types.js",
51
- "require": "./dist/completion-types.cjs"
52
- },
53
- "./endpoint-resolver": {
54
- "types": "./dist/endpoint-resolver.d.ts",
55
- "import": "./dist/endpoint-resolver.js",
56
- "require": "./dist/endpoint-resolver.cjs"
57
- },
58
- "./extended-context": {
59
- "types": "./dist/extended-context.d.ts",
60
- "import": "./dist/extended-context.js",
61
- "require": "./dist/extended-context.cjs"
62
- },
63
- "./llm-config": {
64
- "types": "./dist/llm-config.d.ts",
65
- "import": "./dist/llm-config.js",
66
- "require": "./dist/llm-config.cjs"
67
- },
68
- "./mcp-types": {
69
- "types": "./dist/mcp-types.d.ts",
70
- "import": "./dist/mcp-types.js",
71
- "require": "./dist/mcp-types.cjs"
72
- },
73
- "./message-blocks": {
74
- "types": "./dist/message-blocks.d.ts",
75
- "import": "./dist/message-blocks.js",
76
- "require": "./dist/message-blocks.cjs"
77
- },
78
- "./pricing-types": {
79
- "types": "./dist/pricing-types.d.ts",
80
- "import": "./dist/pricing-types.js",
81
- "require": "./dist/pricing-types.cjs"
82
- },
83
- "./provider-presets": {
84
- "types": "./dist/provider-presets/index.d.ts",
85
- "import": "./dist/provider-presets/index.js",
86
- "require": "./dist/provider-presets/index.cjs"
87
- },
88
- "./subscription-types": {
89
- "types": "./dist/subscription-types.d.ts",
90
- "import": "./dist/subscription-types.js",
91
- "require": "./dist/subscription-types.cjs"
92
- },
93
- "./thinking-config": {
94
- "types": "./dist/thinking-config.d.ts",
95
- "import": "./dist/thinking-config.js",
96
- "require": "./dist/thinking-config.cjs"
97
- },
98
- "./usage-stats-types": {
99
- "types": "./dist/usage-stats-types.d.ts",
100
- "import": "./dist/usage-stats-types.js",
101
- "require": "./dist/usage-stats-types.cjs"
102
- },
103
- "./usage-types": {
104
- "types": "./dist/usage-types.d.ts",
105
- "import": "./dist/usage-types.js",
106
- "require": "./dist/usage-types.cjs"
107
- },
108
- "./websearch-types": {
109
- "types": "./dist/websearch-types.d.ts",
110
- "import": "./dist/websearch-types.js",
111
- "require": "./dist/websearch-types.cjs"
112
- }
113
- },
114
- "files": [
115
- "dist",
116
- "LICENSE",
117
- "README.md"
118
- ],
119
- "scripts": {
120
- "build": "tsup",
121
- "typecheck": "tsc -p tsconfig.typecheck.json --noEmit"
122
- },
123
- "dependencies": {
124
- "zod": "^4.3.6"
125
- }
126
- }
1
+ {
2
+ "name": "@omnicross/contracts",
3
+ "version": "0.1.4",
4
+ "description": "Dependency-light, host-agnostic contract types + runtime-value helpers shared by the @omnicross/* packages.",
5
+ "license": "MIT",
6
+ "author": "Sayo (https://github.com/Dumoedss)",
7
+ "homepage": "https://github.com/Dumoedss/omnicross#readme",
8
+ "keywords": [
9
+ "omnicross",
10
+ "llm",
11
+ "openai",
12
+ "anthropic",
13
+ "gemini",
14
+ "types",
15
+ "contracts"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/Dumoedss/omnicross.git",
20
+ "directory": "packages/contracts"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "engines": {
26
+ "node": ">=20"
27
+ },
28
+ "type": "module",
29
+ "main": "dist/index.cjs",
30
+ "module": "dist/index.js",
31
+ "types": "dist/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "import": "./dist/index.js",
36
+ "require": "./dist/index.cjs"
37
+ },
38
+ "./account-tokens-types": {
39
+ "types": "./dist/account-tokens-types.d.ts",
40
+ "import": "./dist/account-tokens-types.js",
41
+ "require": "./dist/account-tokens-types.cjs"
42
+ },
43
+ "./audit-types": {
44
+ "types": "./dist/audit-types.d.ts",
45
+ "import": "./dist/audit-types.js",
46
+ "require": "./dist/audit-types.cjs"
47
+ },
48
+ "./billing-types": {
49
+ "types": "./dist/billing-types.d.ts",
50
+ "import": "./dist/billing-types.js",
51
+ "require": "./dist/billing-types.cjs"
52
+ },
53
+ "./canonical-models": {
54
+ "types": "./dist/canonical-models.d.ts",
55
+ "import": "./dist/canonical-models.js",
56
+ "require": "./dist/canonical-models.cjs"
57
+ },
58
+ "./completion-types": {
59
+ "types": "./dist/completion-types.d.ts",
60
+ "import": "./dist/completion-types.js",
61
+ "require": "./dist/completion-types.cjs"
62
+ },
63
+ "./endpoint-resolver": {
64
+ "types": "./dist/endpoint-resolver.d.ts",
65
+ "import": "./dist/endpoint-resolver.js",
66
+ "require": "./dist/endpoint-resolver.cjs"
67
+ },
68
+ "./extended-context": {
69
+ "types": "./dist/extended-context.d.ts",
70
+ "import": "./dist/extended-context.js",
71
+ "require": "./dist/extended-context.cjs"
72
+ },
73
+ "./health-logging-types": {
74
+ "types": "./dist/health-logging-types.d.ts",
75
+ "import": "./dist/health-logging-types.js",
76
+ "require": "./dist/health-logging-types.cjs"
77
+ },
78
+ "./llm-config": {
79
+ "types": "./dist/llm-config.d.ts",
80
+ "import": "./dist/llm-config.js",
81
+ "require": "./dist/llm-config.cjs"
82
+ },
83
+ "./mcp-types": {
84
+ "types": "./dist/mcp-types.d.ts",
85
+ "import": "./dist/mcp-types.js",
86
+ "require": "./dist/mcp-types.cjs"
87
+ },
88
+ "./message-blocks": {
89
+ "types": "./dist/message-blocks.d.ts",
90
+ "import": "./dist/message-blocks.js",
91
+ "require": "./dist/message-blocks.cjs"
92
+ },
93
+ "./pricing-types": {
94
+ "types": "./dist/pricing-types.d.ts",
95
+ "import": "./dist/pricing-types.js",
96
+ "require": "./dist/pricing-types.cjs"
97
+ },
98
+ "./provider-presets": {
99
+ "types": "./dist/provider-presets/index.d.ts",
100
+ "import": "./dist/provider-presets/index.js",
101
+ "require": "./dist/provider-presets/index.cjs"
102
+ },
103
+ "./subscription-model-catalog": {
104
+ "types": "./dist/subscription-model-catalog.d.ts",
105
+ "import": "./dist/subscription-model-catalog.js",
106
+ "require": "./dist/subscription-model-catalog.cjs"
107
+ },
108
+ "./subscription-types": {
109
+ "types": "./dist/subscription-types.d.ts",
110
+ "import": "./dist/subscription-types.js",
111
+ "require": "./dist/subscription-types.cjs"
112
+ },
113
+ "./thinking-config": {
114
+ "types": "./dist/thinking-config.d.ts",
115
+ "import": "./dist/thinking-config.js",
116
+ "require": "./dist/thinking-config.cjs"
117
+ },
118
+ "./usage-stats-types": {
119
+ "types": "./dist/usage-stats-types.d.ts",
120
+ "import": "./dist/usage-stats-types.js",
121
+ "require": "./dist/usage-stats-types.cjs"
122
+ },
123
+ "./usage-types": {
124
+ "types": "./dist/usage-types.d.ts",
125
+ "import": "./dist/usage-types.js",
126
+ "require": "./dist/usage-types.cjs"
127
+ },
128
+ "./voucher-types": {
129
+ "types": "./dist/voucher-types.d.ts",
130
+ "import": "./dist/voucher-types.js",
131
+ "require": "./dist/voucher-types.cjs"
132
+ },
133
+ "./webhook-types": {
134
+ "types": "./dist/webhook-types.d.ts",
135
+ "import": "./dist/webhook-types.js",
136
+ "require": "./dist/webhook-types.cjs"
137
+ },
138
+ "./websearch-types": {
139
+ "types": "./dist/websearch-types.d.ts",
140
+ "import": "./dist/websearch-types.js",
141
+ "require": "./dist/websearch-types.cjs"
142
+ }
143
+ },
144
+ "files": [
145
+ "dist",
146
+ "LICENSE",
147
+ "README.md"
148
+ ],
149
+ "scripts": {
150
+ "build": "tsup",
151
+ "typecheck": "tsc -p tsconfig.typecheck.json --noEmit"
152
+ },
153
+ "dependencies": {
154
+ "zod": "^4.3.6"
155
+ }
156
+ }