@oxy.so/contracts 5.1.0 → 5.2.0
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/dist/cjs/agency.js +42 -1
- package/dist/cjs/index.js +23 -14
- package/dist/cjs/profileColors.generated.js +265 -0
- package/dist/cjs/userResponse.js +4 -19
- package/dist/esm/agency.js +39 -0
- package/dist/esm/index.js +3 -2
- package/dist/esm/profileColors.generated.js +262 -0
- package/dist/esm/userResponse.js +0 -15
- package/dist/types/agency.d.ts +58 -0
- package/dist/types/index.d.ts +4 -3
- package/dist/types/oauth.d.ts +3 -0
- package/dist/types/profileColors.generated.d.ts +195 -0
- package/dist/types/userResponse.d.ts +0 -2
- package/package.json +7 -4
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
export declare const USER_PROFILE_COLORS: readonly [{
|
|
2
|
+
readonly name: "teal";
|
|
3
|
+
readonly gate: null;
|
|
4
|
+
}, {
|
|
5
|
+
readonly name: "blue";
|
|
6
|
+
readonly gate: null;
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "green";
|
|
9
|
+
readonly gate: null;
|
|
10
|
+
}, {
|
|
11
|
+
readonly name: "yellow";
|
|
12
|
+
readonly gate: null;
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "red";
|
|
15
|
+
readonly gate: null;
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "purple";
|
|
18
|
+
readonly gate: null;
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "pink";
|
|
21
|
+
readonly gate: null;
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "sky";
|
|
24
|
+
readonly gate: null;
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "orange";
|
|
27
|
+
readonly gate: null;
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "mint";
|
|
30
|
+
readonly gate: null;
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "oxy";
|
|
33
|
+
readonly gate: "handle";
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "faircoin";
|
|
36
|
+
readonly gate: "handle";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "pumpkin";
|
|
39
|
+
readonly gate: null;
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "gray";
|
|
42
|
+
readonly gate: null;
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "brown";
|
|
45
|
+
readonly gate: null;
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "peach";
|
|
48
|
+
readonly gate: null;
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "rose";
|
|
51
|
+
readonly gate: null;
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "mono";
|
|
54
|
+
readonly gate: "premium";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "grove";
|
|
57
|
+
readonly gate: null;
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "ember";
|
|
60
|
+
readonly gate: null;
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "merlot";
|
|
63
|
+
readonly gate: null;
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "cobalt";
|
|
66
|
+
readonly gate: null;
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "jade";
|
|
69
|
+
readonly gate: null;
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "pine";
|
|
72
|
+
readonly gate: null;
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "olive";
|
|
75
|
+
readonly gate: null;
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "lagoon";
|
|
78
|
+
readonly gate: null;
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "navy";
|
|
81
|
+
readonly gate: null;
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "azure";
|
|
84
|
+
readonly gate: null;
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "violet";
|
|
87
|
+
readonly gate: null;
|
|
88
|
+
}, {
|
|
89
|
+
readonly name: "lavender";
|
|
90
|
+
readonly gate: null;
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "plum";
|
|
93
|
+
readonly gate: null;
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "cherry";
|
|
96
|
+
readonly gate: null;
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "chocolate";
|
|
99
|
+
readonly gate: null;
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "graphite";
|
|
102
|
+
readonly gate: null;
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "forest-fire";
|
|
105
|
+
readonly gate: null;
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "malachite-rush";
|
|
108
|
+
readonly gate: null;
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "moss-voltage";
|
|
111
|
+
readonly gate: null;
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "viridian-orbit";
|
|
114
|
+
readonly gate: null;
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "acid-canopy";
|
|
117
|
+
readonly gate: null;
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "pacific-flare";
|
|
120
|
+
readonly gate: null;
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "reef-pulse";
|
|
123
|
+
readonly gate: null;
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "electric-tide";
|
|
126
|
+
readonly gate: null;
|
|
127
|
+
}, {
|
|
128
|
+
readonly name: "arctic-signal";
|
|
129
|
+
readonly gate: null;
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "ultramarine-gold";
|
|
132
|
+
readonly gate: null;
|
|
133
|
+
}, {
|
|
134
|
+
readonly name: "midnight-citrus";
|
|
135
|
+
readonly gate: null;
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "persimmon-wave";
|
|
138
|
+
readonly gate: null;
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "solar-flux";
|
|
141
|
+
readonly gate: null;
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "paprika-current";
|
|
144
|
+
readonly gate: null;
|
|
145
|
+
}, {
|
|
146
|
+
readonly name: "crimson-spark";
|
|
147
|
+
readonly gate: null;
|
|
148
|
+
}, {
|
|
149
|
+
readonly name: "flamenco-sun";
|
|
150
|
+
readonly gate: null;
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "saffron-depth";
|
|
153
|
+
readonly gate: null;
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "clay-current";
|
|
156
|
+
readonly gate: null;
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "bronze-neon";
|
|
159
|
+
readonly gate: null;
|
|
160
|
+
}, {
|
|
161
|
+
readonly name: "copper-field";
|
|
162
|
+
readonly gate: null;
|
|
163
|
+
}, {
|
|
164
|
+
readonly name: "umber-signal";
|
|
165
|
+
readonly gate: null;
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "amethyst-current";
|
|
168
|
+
readonly gate: null;
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "ruby-current";
|
|
171
|
+
readonly gate: null;
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "orchid-flare";
|
|
174
|
+
readonly gate: null;
|
|
175
|
+
}, {
|
|
176
|
+
readonly name: "garnet-acid";
|
|
177
|
+
readonly gate: null;
|
|
178
|
+
}, {
|
|
179
|
+
readonly name: "indigo-ember";
|
|
180
|
+
readonly gate: null;
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "raspberry-gold";
|
|
183
|
+
readonly gate: null;
|
|
184
|
+
}, {
|
|
185
|
+
readonly name: "ink-orange";
|
|
186
|
+
readonly gate: null;
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "charcoal-lime";
|
|
189
|
+
readonly gate: null;
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "pewter-current";
|
|
192
|
+
readonly gate: null;
|
|
193
|
+
}];
|
|
194
|
+
export declare const USER_PROFILE_COLOR_PRESETS: ("pink" | "violet" | "blue" | "teal" | "yellow" | "green" | "red" | "purple" | "sky" | "orange" | "mint" | "oxy" | "faircoin" | "pumpkin" | "gray" | "brown" | "peach" | "rose" | "mono" | "grove" | "ember" | "merlot" | "cobalt" | "jade" | "pine" | "olive" | "lagoon" | "navy" | "azure" | "lavender" | "plum" | "cherry" | "chocolate" | "graphite" | "forest-fire" | "malachite-rush" | "moss-voltage" | "viridian-orbit" | "acid-canopy" | "pacific-flare" | "reef-pulse" | "electric-tide" | "arctic-signal" | "ultramarine-gold" | "midnight-citrus" | "persimmon-wave" | "solar-flux" | "paprika-current" | "crimson-spark" | "flamenco-sun" | "saffron-depth" | "clay-current" | "bronze-neon" | "copper-field" | "umber-signal" | "amethyst-current" | "ruby-current" | "orchid-flare" | "garnet-acid" | "indigo-ember" | "raspberry-gold" | "ink-orange" | "charcoal-lime" | "pewter-current")[];
|
|
195
|
+
export declare const FREE_USER_PROFILE_COLOR_PRESETS: ("pink" | "violet" | "blue" | "teal" | "yellow" | "green" | "red" | "purple" | "sky" | "orange" | "mint" | "oxy" | "faircoin" | "pumpkin" | "gray" | "brown" | "peach" | "rose" | "mono" | "grove" | "ember" | "merlot" | "cobalt" | "jade" | "pine" | "olive" | "lagoon" | "navy" | "azure" | "lavender" | "plum" | "cherry" | "chocolate" | "graphite" | "forest-fire" | "malachite-rush" | "moss-voltage" | "viridian-orbit" | "acid-canopy" | "pacific-flare" | "reef-pulse" | "electric-tide" | "arctic-signal" | "ultramarine-gold" | "midnight-citrus" | "persimmon-wave" | "solar-flux" | "paprika-current" | "crimson-spark" | "flamenco-sun" | "saffron-depth" | "clay-current" | "bronze-neon" | "copper-field" | "umber-signal" | "amethyst-current" | "ruby-current" | "orchid-flare" | "garnet-acid" | "indigo-ember" | "raspberry-gold" | "ink-orange" | "charcoal-lime" | "pewter-current")[];
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** Canonical profile/theme preset identities accepted by Oxy writes. */
|
|
2
|
-
export declare const USER_PROFILE_COLOR_PRESETS: readonly ["teal", "blue", "green", "amber", "red", "purple", "pink", "sky", "orange", "mint", "mono", "oxy"];
|
|
3
1
|
/**
|
|
4
2
|
* Canonical API user-response contracts.
|
|
5
3
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/contracts",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "OxyHQ API contracts — single source of truth for request/response Zod schemas and inferred types, shared by the backend and the client SDKs",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"node": ">=18.0.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
|
-
"build": "bun run build:cjs && bun run build:esm && bun run build:types",
|
|
72
|
+
"build": "bun run check:profile-colors && bun run build:cjs && bun run build:esm && bun run build:types",
|
|
73
73
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
74
74
|
"build:esm": "tsc -p tsconfig.esm.json && node scripts/fix-esm-imports.mjs",
|
|
75
75
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -77,7 +77,9 @@
|
|
|
77
77
|
"typescript": "tsc --noEmit",
|
|
78
78
|
"test": "jest --passWithNoTests",
|
|
79
79
|
"lint": "biome lint --error-on-warnings ./src",
|
|
80
|
-
"prepublishOnly": "node ../../scripts/assert-bun-publish.mjs && bun run clean && bun run build"
|
|
80
|
+
"prepublishOnly": "node ../../scripts/assert-bun-publish.mjs && bun run clean && bun run build",
|
|
81
|
+
"generate:profile-colors": "node scripts/generate-profile-colors.mjs",
|
|
82
|
+
"check:profile-colors": "node scripts/generate-profile-colors.mjs --check"
|
|
81
83
|
},
|
|
82
84
|
"dependencies": {
|
|
83
85
|
"zod": "^3.25.64"
|
|
@@ -85,6 +87,7 @@
|
|
|
85
87
|
"devDependencies": {
|
|
86
88
|
"@types/node": "^20.19.43",
|
|
87
89
|
"jest": "^30.5.1",
|
|
88
|
-
"typescript": "^5.9.2"
|
|
90
|
+
"typescript": "^5.9.2",
|
|
91
|
+
"@oxy.so/bloom": "12.0.0"
|
|
89
92
|
}
|
|
90
93
|
}
|