@oxy.so/contracts 7.0.0 → 7.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.
@@ -82,6 +82,11 @@ exports.firstPartyTaskInputSchema = zod_1.z
82
82
  .strict(),
83
83
  actor: exports.executionActorRefSchema,
84
84
  effectiveAccountId: identifierSchema,
85
+ /**
86
+ * The REQUESTED end. A `request` root (at most 15 minutes) never outlives its requester: Oxy
87
+ * clamps it to the requester's remaining session and bearer lifetime, so the created task's
88
+ * `expiresAt` is the one that holds. Goals and automations (up to 366 days) are not clamped.
89
+ */
85
90
  expiresAt: zod_1.z.string().check((0, stringChecks_1.isoDateTime)()),
86
91
  })
87
92
  .strict();
@@ -259,6 +259,10 @@ exports.USER_PROFILE_COLORS = [
259
259
  {
260
260
  "name": "pewter-current",
261
261
  "gate": null
262
+ },
263
+ {
264
+ "name": "gemies",
265
+ "gate": "handle"
262
266
  }
263
267
  ];
264
268
  exports.USER_PROFILE_COLOR_PRESETS = exports.USER_PROFILE_COLORS.map(({ name }) => name);
@@ -232,6 +232,15 @@ exports.safetyRequesterSchema = zod_1.z.union([
232
232
  zod_1.z
233
233
  .object({ requesterContext: zod_1.z.string().check((0, stringChecks_1.utf16MinLength)(1)).check((0, stringChecks_1.utf16MaxLength)(16384)) })
234
234
  .strict(),
235
+ /**
236
+ * The account an Oxy service acts for, on what its first-party registry entry
237
+ * declares (`oxy:safety`, ADR 0066). Only an Oxy service may send it.
238
+ */
239
+ zod_1.z
240
+ .object({
241
+ actingForAccountId: zod_1.z.string().check((0, stringChecks_1.utf16MinLength)(1)).check((0, stringChecks_1.utf16MaxLength)(128)),
242
+ })
243
+ .strict(),
235
244
  ]);
236
245
  exports.supervisionSchema = zod_1.z
237
246
  .object({
@@ -77,6 +77,11 @@ export const firstPartyTaskInputSchema = z
77
77
  .strict(),
78
78
  actor: executionActorRefSchema,
79
79
  effectiveAccountId: identifierSchema,
80
+ /**
81
+ * The REQUESTED end. A `request` root (at most 15 minutes) never outlives its requester: Oxy
82
+ * clamps it to the requester's remaining session and bearer lifetime, so the created task's
83
+ * `expiresAt` is the one that holds. Goals and automations (up to 366 days) are not clamped.
84
+ */
80
85
  expiresAt: z.string().check(isoDateTime()),
81
86
  })
82
87
  .strict();
@@ -256,6 +256,10 @@ export const USER_PROFILE_COLORS = [
256
256
  {
257
257
  "name": "pewter-current",
258
258
  "gate": null
259
+ },
260
+ {
261
+ "name": "gemies",
262
+ "gate": "handle"
259
263
  }
260
264
  ];
261
265
  export const USER_PROFILE_COLOR_PRESETS = USER_PROFILE_COLORS.map(({ name }) => name);
@@ -222,6 +222,15 @@ export const safetyRequesterSchema = z.union([
222
222
  z
223
223
  .object({ requesterContext: z.string().check(utf16MinLength(1)).check(utf16MaxLength(16384)) })
224
224
  .strict(),
225
+ /**
226
+ * The account an Oxy service acts for, on what its first-party registry entry
227
+ * declares (`oxy:safety`, ADR 0066). Only an Oxy service may send it.
228
+ */
229
+ z
230
+ .object({
231
+ actingForAccountId: z.string().check(utf16MinLength(1)).check(utf16MaxLength(128)),
232
+ })
233
+ .strict(),
225
234
  ]);
226
235
  export const supervisionSchema = z
227
236
  .object({
@@ -190,6 +190,9 @@ export declare const USER_PROFILE_COLORS: readonly [{
190
190
  }, {
191
191
  readonly name: "pewter-current";
192
192
  readonly gate: null;
193
+ }, {
194
+ readonly name: "gemies";
195
+ readonly gate: "handle";
193
196
  }];
194
- export declare const USER_PROFILE_COLOR_PRESETS: ("teal" | "blue" | "green" | "yellow" | "red" | "purple" | "pink" | "sky" | "orange" | "mint" | "oxy" | "faircoin" | "pumpkin" | "gray" | "brown" | "peach" | "rose" | "mono" | "grove" | "ember" | "merlot" | "cobalt" | "jade" | "pine" | "olive" | "lagoon" | "navy" | "azure" | "violet" | "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: ("teal" | "blue" | "green" | "yellow" | "red" | "purple" | "pink" | "sky" | "orange" | "mint" | "oxy" | "faircoin" | "pumpkin" | "gray" | "brown" | "peach" | "rose" | "mono" | "grove" | "ember" | "merlot" | "cobalt" | "jade" | "pine" | "olive" | "lagoon" | "navy" | "azure" | "violet" | "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")[];
197
+ export declare const USER_PROFILE_COLOR_PRESETS: ("teal" | "blue" | "green" | "yellow" | "red" | "purple" | "pink" | "sky" | "orange" | "mint" | "oxy" | "faircoin" | "pumpkin" | "gray" | "brown" | "peach" | "rose" | "mono" | "grove" | "ember" | "merlot" | "cobalt" | "jade" | "pine" | "olive" | "lagoon" | "navy" | "azure" | "violet" | "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" | "gemies")[];
198
+ export declare const FREE_USER_PROFILE_COLOR_PRESETS: ("teal" | "blue" | "green" | "yellow" | "red" | "purple" | "pink" | "sky" | "orange" | "mint" | "oxy" | "faircoin" | "pumpkin" | "gray" | "brown" | "peach" | "rose" | "mono" | "grove" | "ember" | "merlot" | "cobalt" | "jade" | "pine" | "olive" | "lagoon" | "navy" | "azure" | "violet" | "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" | "gemies")[];
@@ -299,6 +299,8 @@ export declare const safetyRequesterSchema: z.ZodUnion<readonly [z.ZodObject<{
299
299
  capabilityTicket: z.ZodString;
300
300
  }, z.core.$strict>, z.ZodObject<{
301
301
  requesterContext: z.ZodString;
302
+ }, z.core.$strict>, z.ZodObject<{
303
+ actingForAccountId: z.ZodString;
302
304
  }, z.core.$strict>]>;
303
305
  export type SafetyRequester = z.infer<typeof safetyRequesterSchema>;
304
306
  export type ProfileAccessBatchInput = z.infer<typeof profileAccessBatchInputSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/contracts",
3
- "version": "7.0.0",
3
+ "version": "7.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",
@@ -89,6 +89,6 @@
89
89
  "@types/node": "^26.6.6",
90
90
  "jest": "^30.5.2",
91
91
  "typescript": "~6.0.3",
92
- "@oxy.so/bloom": "19.8.3"
92
+ "@oxy.so/bloom": "21.0.0"
93
93
  }
94
94
  }