@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.
- package/LICENSE +21 -21
- package/README.md +15 -15
- package/dist/account-tokens-types.d.cts +157 -1
- package/dist/account-tokens-types.d.ts +157 -1
- package/dist/audit-types.cjs +36 -0
- package/dist/audit-types.d.cts +98 -0
- package/dist/audit-types.d.ts +98 -0
- package/dist/audit-types.js +11 -0
- package/dist/billing-types.cjs +33 -0
- package/dist/billing-types.d.cts +98 -0
- package/dist/billing-types.d.ts +98 -0
- package/dist/billing-types.js +8 -0
- package/dist/canonical-models.d.cts +1 -1
- package/dist/canonical-models.d.ts +1 -1
- package/dist/endpoint-resolver.d.cts +1 -1
- package/dist/endpoint-resolver.d.ts +1 -1
- package/dist/health-logging-types.cjs +32 -0
- package/dist/health-logging-types.d.cts +68 -0
- package/dist/health-logging-types.d.ts +68 -0
- package/dist/health-logging-types.js +7 -0
- package/dist/index.cjs +63 -0
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +55 -0
- package/dist/{llm-config-D1jKQLVp.d.ts → llm-config-CKOaFFdy.d.ts} +8 -1
- package/dist/{llm-config-CQjOimv2.d.cts → llm-config-DeWNx1ig.d.cts} +8 -1
- package/dist/llm-config.d.cts +1 -1
- package/dist/llm-config.d.ts +1 -1
- package/dist/provider-presets/index.d.cts +2 -2
- package/dist/provider-presets/index.d.ts +2 -2
- package/dist/subscription-model-catalog.cjs +40 -0
- package/dist/subscription-model-catalog.d.cts +34 -0
- package/dist/subscription-model-catalog.d.ts +34 -0
- package/dist/subscription-model-catalog.js +14 -0
- package/dist/thinking-config.d.cts +1 -1
- package/dist/thinking-config.d.ts +1 -1
- package/dist/usage-stats-types.d.cts +22 -1
- package/dist/usage-stats-types.d.ts +22 -1
- package/dist/voucher-types.cjs +32 -0
- package/dist/voucher-types.d.cts +153 -0
- package/dist/voucher-types.d.ts +153 -0
- package/dist/voucher-types.js +7 -0
- package/dist/webhook-types.cjs +40 -0
- package/dist/webhook-types.d.cts +122 -0
- package/dist/webhook-types.d.ts +122 -0
- package/dist/webhook-types.js +14 -0
- package/package.json +156 -126
package/package.json
CHANGED
|
@@ -1,126 +1,156 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@omnicross/contracts",
|
|
3
|
-
"version": "0.1.
|
|
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
|
-
"./
|
|
44
|
-
"types": "./dist/
|
|
45
|
-
"import": "./dist/
|
|
46
|
-
"require": "./dist/
|
|
47
|
-
},
|
|
48
|
-
"./
|
|
49
|
-
"types": "./dist/
|
|
50
|
-
"import": "./dist/
|
|
51
|
-
"require": "./dist/
|
|
52
|
-
},
|
|
53
|
-
"./
|
|
54
|
-
"types": "./dist/
|
|
55
|
-
"import": "./dist/
|
|
56
|
-
"require": "./dist/
|
|
57
|
-
},
|
|
58
|
-
"./
|
|
59
|
-
"types": "./dist/
|
|
60
|
-
"import": "./dist/
|
|
61
|
-
"require": "./dist/
|
|
62
|
-
},
|
|
63
|
-
"./
|
|
64
|
-
"types": "./dist/
|
|
65
|
-
"import": "./dist/
|
|
66
|
-
"require": "./dist/
|
|
67
|
-
},
|
|
68
|
-
"./
|
|
69
|
-
"types": "./dist/
|
|
70
|
-
"import": "./dist/
|
|
71
|
-
"require": "./dist/
|
|
72
|
-
},
|
|
73
|
-
"./
|
|
74
|
-
"types": "./dist/
|
|
75
|
-
"import": "./dist/
|
|
76
|
-
"require": "./dist/
|
|
77
|
-
},
|
|
78
|
-
"./
|
|
79
|
-
"types": "./dist/
|
|
80
|
-
"import": "./dist/
|
|
81
|
-
"require": "./dist/
|
|
82
|
-
},
|
|
83
|
-
"./
|
|
84
|
-
"types": "./dist/
|
|
85
|
-
"import": "./dist/
|
|
86
|
-
"require": "./dist/
|
|
87
|
-
},
|
|
88
|
-
"./
|
|
89
|
-
"types": "./dist/
|
|
90
|
-
"import": "./dist/
|
|
91
|
-
"require": "./dist/
|
|
92
|
-
},
|
|
93
|
-
"./
|
|
94
|
-
"types": "./dist/
|
|
95
|
-
"import": "./dist/
|
|
96
|
-
"require": "./dist/
|
|
97
|
-
},
|
|
98
|
-
"./
|
|
99
|
-
"types": "./dist/
|
|
100
|
-
"import": "./dist/
|
|
101
|
-
"require": "./dist/
|
|
102
|
-
},
|
|
103
|
-
"./
|
|
104
|
-
"types": "./dist/
|
|
105
|
-
"import": "./dist/
|
|
106
|
-
"require": "./dist/
|
|
107
|
-
},
|
|
108
|
-
"./
|
|
109
|
-
"types": "./dist/
|
|
110
|
-
"import": "./dist/
|
|
111
|
-
"require": "./dist/
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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
|
+
}
|