@oxy.so/contracts 7.1.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.
- package/dist/cjs/agency.js +5 -0
- package/dist/cjs/safety.js +9 -0
- package/dist/esm/agency.js +5 -0
- package/dist/esm/safety.js +9 -0
- package/dist/types/safety.d.ts +2 -0
- package/package.json +1 -1
package/dist/cjs/agency.js
CHANGED
|
@@ -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();
|
package/dist/cjs/safety.js
CHANGED
|
@@ -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({
|
package/dist/esm/agency.js
CHANGED
|
@@ -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();
|
package/dist/esm/safety.js
CHANGED
|
@@ -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({
|
package/dist/types/safety.d.ts
CHANGED
|
@@ -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.
|
|
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",
|