@oxy.so/contracts 5.5.0 → 5.6.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/client/index.js +5 -1
- package/dist/cjs/inference/inbox.js +6 -0
- package/dist/esm/client/index.js +1 -0
- package/dist/esm/inference/inbox.js +6 -0
- package/dist/types/client/index.d.ts +1 -0
- package/dist/types/email/messages.d.ts +8 -8
- package/dist/types/inference/inbox.d.ts +24 -0
- package/package.json +1 -1
package/dist/cjs/client/index.js
CHANGED
|
@@ -34,7 +34,7 @@ exports.signedRecordEnvelopeCheck = exports.externalIdentityReferenceCheck = exp
|
|
|
34
34
|
exports.updateOrganizationCheck = exports.organizationNameCheck = exports.organizationListCheck = exports.organizationImportBatchResultCheck = exports.organizationExternalResolutionCheck = exports.organizationExternalCheck = exports.organizationCurationResultCheck = exports.organizationClaimReviewCheck = exports.organizationClaimListCheck = exports.organizationClaimInputCheck = exports.organizationClaimDetailCheck = exports.organizationClaimCheck = exports.organizationCheck = exports.organizationBatchCheck = exports.createOrganizationCheck = exports.ORGANIZATION_TYPES = exports.ORGANIZATION_STATUSES = exports.ORGANIZATION_NAME_MAX_LENGTH = exports.ORGANIZATION_ERROR_CODES = exports.ORGANIZATION_CLAIM_STATUSES = exports.ORGANIZATION_CLAIM_DECISIONS = exports.ORGANIZATION_ALIAS_KINDS = exports.canonicalJson = exports.buildIdentityProofMessage = exports.IDENTITY_PROOF_VERSION = exports.IDENTITY_PROOF_DOMAIN = exports.IDENTITY_PROOF_CHALLENGE_TTL_MS = exports.IDENTITY_PROOF_AUDIENCE = exports.IDENTITY_PROOF_ACTION_VALUES = exports.IDENTITY_PROOF_ACTIONS = exports.IDENTITY_ERROR_CODES = exports.parseIdentityLinkQrPayload = exports.identityLinkStateCheck = exports.identityLinkCreateResponseCheck = exports.buildIdentityLinkQrPayload = exports.IDENTITY_LINK_STATUSES = exports.IDENTITY_LINK_QR_PREFIX = exports.sessionAccountsChangedEventCheck = exports.deviceTokenMintResponseCheck = exports.deviceSessionSyncCheck = exports.deviceSessionStateCheck = exports.deviceRegisterResponseCheck = exports.deviceJoinResponseCheck = exports.deviceJoinCodeResponseCheck = exports.deviceBackgroundCredentialResponseCheck = exports.activeTokenCheck = exports.SESSION_ACCOUNTS_CHANGED_EVENT = exports.deviceDirectorySyncCheck = exports.deviceDirectoryCheck = exports.deviceActivateResponseCheck = void 0;
|
|
35
35
|
exports.TOTP_DIGITS = exports.TOTP_BACKUP_CODE_COUNT = exports.SIGN_IN_ERROR_CODES = exports.SIGNIN_SECOND_FACTOR_TTL_MS = exports.SIGNIN_SECOND_FACTOR_MAX_ATTEMPTS = exports.REAUTH_ACTIONS = exports.PASSWORD_MIN_LENGTH = exports.PASSWORD_MAX_LENGTH = exports.EMAIL_SIGNIN_LONG_CODE_LENGTH = exports.EMAIL_SIGNIN_LONG_CODE_ALPHABET = exports.EMAIL_SIGNIN_LINK_TTL_MS = exports.EMAIL_SIGNIN_CHOICE_TTL_MS = exports.EMAIL_ACCOUNTS_MAX = exports.publicApplicationCheck = exports.supervisionStateCheck = exports.supervisionReviewInputCheck = exports.supervisionInviteInputCheck = exports.supervisionInvitationCheck = exports.supervisionContactsResponseCheck = exports.supervisionContactInputCheck = exports.supervisionAcceptInputCheck = exports.safetyPeopleResponseCheck = exports.safetyPeopleInputCheck = exports.safetyOrganizationsResponseCheck = exports.safetyOrganizationsInputCheck = exports.purchaseReviewInputCheck = exports.purchaseApprovalListCheck = exports.purchaseApprovalCheck = exports.profileAccessInputCheck = exports.profileAccessDecisionCheck = exports.SUPERVISION_STATUSES = exports.SUPERVISION_INVITATION_STATUSES = exports.SUPERVISION_CONSENT_VERSION = exports.SUPERVISED_ACTIONS = exports.SAFETY_POLICY_VERSION = exports.PURCHASE_APPROVAL_STATUSES = exports.isFullReputationBalance = exports.recommendationRequestCheck = exports.subscriptionCreditGrantsResponseCheck = exports.subjectProductAccessQueryCheck = exports.subjectProductAccessCheck = exports.productSubscriptionsResponseCheck = exports.productSubscriptionRenewalRequestCheck = exports.productSubscriptionCancellationResultCheck = exports.productPlanCheckoutRequestCheck = exports.productPlanCatalogueCheck = exports.personalPlanCheckoutResultCheck = exports.personalPlanCheckoutRequestCheck = exports.personalPlanCatalogueCheck = exports.cancelProductSubscriptionCheck = void 0;
|
|
36
36
|
exports.appAssertionChallengeResponseCheck = exports.OXY_APP_ASSERTION_TYPE = exports.OXY_APP_ASSERTION_TTL_SECONDS = exports.OXY_APP_ASSERTION_HEADER = exports.OXY_APP_ASSERTION_AUDIENCE = exports.APP_ASSERTION_PLATFORMS = exports.APP_ASSERTION_ERROR_CODES = exports.APP_ASSERTION_CHALLENGE_PURPOSES = exports.isRightsClaim = exports.isErasureRequest = exports.OPEN_CONTENT_CLAIM_STATES = exports.ERASURE_REQUEST_DEADLINE_DAYS = exports.COUNTER_NOTICE_STATEMENTS = exports.COUNTER_NOTICE_STATEMENT_VERSION = exports.CONTENT_CLAIM_STATES = exports.CONTENT_CLAIM_REFERENCE_PATTERN = exports.CONTENT_CLAIM_LIMITS = exports.CONTENT_CLAIM_KINDS = exports.CONTENT_CLAIM_ERROR_CODES = exports.CONTENT_CLAIM_COUNTER_NOTICE_LIMITS = exports.CLOSED_CONTENT_CLAIM_STATES = exports.CLAIMANT_RELATIONSHIPS = exports.userNameCheck = exports.usernameCheckForAccountKind = exports.usernameCheck = exports.stripDisallowedUsernameCharacters = exports.botUsernameCheck = exports.applyBotUsernameSuffix = exports.USERNAME_PATTERN_SOURCE = exports.USERNAME_MIN_LENGTH = exports.USERNAME_MAX_LENGTH = exports.USERNAME_INVALID_MESSAGE = exports.RESERVED_USERNAME_MESSAGE = exports.RESERVED_USERNAMES = exports.NUMERIC_USERNAME_MESSAGE = exports.BOT_USERNAME_SUFFIX = exports.BOT_USERNAME_INVALID_MESSAGE = exports.totpEnrollResponseCheck = exports.totpBackupCodesResponseCheck = exports.signInMethodsCheck = exports.secondFactorRequiredCheck = exports.reauthProofCheck = exports.normalizeEmailSignInCode = exports.isSecondFactorRequired = exports.isEmailSignInChooseAccount = exports.emailSignInStartResponseCheck = exports.emailSignInPendingCheck = exports.emailSignInLinkResponseCheck = exports.emailSignInChooseAccountCheck = exports.TOTP_PERIOD_SECONDS = void 0;
|
|
37
|
-
exports.appAttestKeyResponseCheck = exports.appAssertionResponseCheck = void 0;
|
|
37
|
+
exports.FREE_USER_PROFILE_COLOR_PRESETS = exports.USER_PROFILE_COLOR_PRESETS = exports.USER_PROFILE_COLORS = exports.appAttestKeyResponseCheck = exports.appAssertionResponseCheck = void 0;
|
|
38
38
|
var check_1 = require("./check");
|
|
39
39
|
Object.defineProperty(exports, "ContractCheckError", { enumerable: true, get: function () { return check_1.ContractCheckError; } });
|
|
40
40
|
Object.defineProperty(exports, "checkContract", { enumerable: true, get: function () { return check_1.checkContract; } });
|
|
@@ -261,4 +261,8 @@ Object.defineProperty(exports, "OXY_APP_ASSERTION_TYPE", { enumerable: true, get
|
|
|
261
261
|
Object.defineProperty(exports, "appAssertionChallengeResponseCheck", { enumerable: true, get: function () { return appAssertions_1.appAssertionChallengeResponseCheck; } });
|
|
262
262
|
Object.defineProperty(exports, "appAssertionResponseCheck", { enumerable: true, get: function () { return appAssertions_1.appAssertionResponseCheck; } });
|
|
263
263
|
Object.defineProperty(exports, "appAttestKeyResponseCheck", { enumerable: true, get: function () { return appAssertions_1.appAttestKeyResponseCheck; } });
|
|
264
|
+
var profileColors_generated_1 = require("../profileColors.generated");
|
|
265
|
+
Object.defineProperty(exports, "USER_PROFILE_COLORS", { enumerable: true, get: function () { return profileColors_generated_1.USER_PROFILE_COLORS; } });
|
|
266
|
+
Object.defineProperty(exports, "USER_PROFILE_COLOR_PRESETS", { enumerable: true, get: function () { return profileColors_generated_1.USER_PROFILE_COLOR_PRESETS; } });
|
|
267
|
+
Object.defineProperty(exports, "FREE_USER_PROFILE_COLOR_PRESETS", { enumerable: true, get: function () { return profileColors_generated_1.FREE_USER_PROFILE_COLOR_PRESETS; } });
|
|
264
268
|
__exportStar(require("../products/one"), exports);
|
|
@@ -96,6 +96,12 @@ exports.inboxDailyBriefResponseSchema = zod_1.z.object({
|
|
|
96
96
|
requestId: zod_1.z.string().min(1).max(128),
|
|
97
97
|
generationId: zod_1.z.string().min(1).max(128).optional(),
|
|
98
98
|
summary: zod_1.z.string().max(400),
|
|
99
|
+
/** Returned only when the caller opts in with `?includeActions=true`. */
|
|
100
|
+
actions: zod_1.z.array(zod_1.z.object({
|
|
101
|
+
label: zod_1.z.string().trim().min(1).max(40),
|
|
102
|
+
prompt: zod_1.z.string().trim().min(1).max(600),
|
|
103
|
+
messageIds: zod_1.z.array(inboxMessageIdSchema).min(1).max(10),
|
|
104
|
+
}).strict()).min(2).max(5).optional(),
|
|
99
105
|
counts: zod_1.z.object({
|
|
100
106
|
received: zod_1.z.number().int().nonnegative(),
|
|
101
107
|
unread: zod_1.z.number().int().nonnegative(),
|
package/dist/esm/client/index.js
CHANGED
|
@@ -38,4 +38,5 @@ export { BOT_USERNAME_INVALID_MESSAGE, BOT_USERNAME_SUFFIX, NUMERIC_USERNAME_MES
|
|
|
38
38
|
export { userNameCheck } from './userResponse.js';
|
|
39
39
|
export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './contentClaims.js';
|
|
40
40
|
export { APP_ASSERTION_CHALLENGE_PURPOSES, APP_ASSERTION_ERROR_CODES, APP_ASSERTION_PLATFORMS, OXY_APP_ASSERTION_AUDIENCE, OXY_APP_ASSERTION_HEADER, OXY_APP_ASSERTION_TTL_SECONDS, OXY_APP_ASSERTION_TYPE, appAssertionChallengeResponseCheck, appAssertionResponseCheck, appAttestKeyResponseCheck, } from './appAssertions.js';
|
|
41
|
+
export { USER_PROFILE_COLORS, USER_PROFILE_COLOR_PRESETS, FREE_USER_PROFILE_COLOR_PRESETS, } from '../profileColors.generated.js';
|
|
41
42
|
export * from '../products/one.js';
|
|
@@ -93,6 +93,12 @@ export const inboxDailyBriefResponseSchema = z.object({
|
|
|
93
93
|
requestId: z.string().min(1).max(128),
|
|
94
94
|
generationId: z.string().min(1).max(128).optional(),
|
|
95
95
|
summary: z.string().max(400),
|
|
96
|
+
/** Returned only when the caller opts in with `?includeActions=true`. */
|
|
97
|
+
actions: z.array(z.object({
|
|
98
|
+
label: z.string().trim().min(1).max(40),
|
|
99
|
+
prompt: z.string().trim().min(1).max(600),
|
|
100
|
+
messageIds: z.array(inboxMessageIdSchema).min(1).max(10),
|
|
101
|
+
}).strict()).min(2).max(5).optional(),
|
|
96
102
|
counts: z.object({
|
|
97
103
|
received: z.number().int().nonnegative(),
|
|
98
104
|
unread: z.number().int().nonnegative(),
|
|
@@ -38,4 +38,5 @@ export { BOT_USERNAME_INVALID_MESSAGE, BOT_USERNAME_SUFFIX, NUMERIC_USERNAME_MES
|
|
|
38
38
|
export { userNameCheck } from './userResponse';
|
|
39
39
|
export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './contentClaims';
|
|
40
40
|
export { APP_ASSERTION_CHALLENGE_PURPOSES, APP_ASSERTION_ERROR_CODES, APP_ASSERTION_PLATFORMS, OXY_APP_ASSERTION_AUDIENCE, OXY_APP_ASSERTION_HEADER, OXY_APP_ASSERTION_TTL_SECONDS, OXY_APP_ASSERTION_TYPE, appAssertionChallengeResponseCheck, appAssertionResponseCheck, appAttestKeyResponseCheck, } from './appAssertions';
|
|
41
|
+
export { USER_PROFILE_COLORS, USER_PROFILE_COLOR_PRESETS, FREE_USER_PROFILE_COLOR_PRESETS, } from '../profileColors.generated';
|
|
41
42
|
export * from '../products/one';
|
|
@@ -763,16 +763,16 @@ export declare const emailFilterSchema: z.ZodObject<{
|
|
|
763
763
|
userId: string;
|
|
764
764
|
matchAll: boolean;
|
|
765
765
|
_id: string;
|
|
766
|
+
actions: {
|
|
767
|
+
type: "star" | "label" | "archive" | "move" | "mark-read" | "delete" | "forward";
|
|
768
|
+
value?: string | undefined;
|
|
769
|
+
}[];
|
|
766
770
|
order: number;
|
|
767
771
|
conditions: {
|
|
768
772
|
value: string;
|
|
769
773
|
field: "subject" | "from" | "size" | "to" | "has-attachment";
|
|
770
774
|
operator: "contains" | "equals" | "not-contains" | "starts-with" | "ends-with" | "greater-than" | "less-than";
|
|
771
775
|
}[];
|
|
772
|
-
actions: {
|
|
773
|
-
type: "star" | "label" | "archive" | "move" | "mark-read" | "delete" | "forward";
|
|
774
|
-
value?: string | undefined;
|
|
775
|
-
}[];
|
|
776
776
|
}, {
|
|
777
777
|
name: string;
|
|
778
778
|
createdAt: string;
|
|
@@ -782,16 +782,16 @@ export declare const emailFilterSchema: z.ZodObject<{
|
|
|
782
782
|
userId: string;
|
|
783
783
|
matchAll: boolean;
|
|
784
784
|
_id: string;
|
|
785
|
+
actions: {
|
|
786
|
+
type: "star" | "label" | "archive" | "move" | "mark-read" | "delete" | "forward";
|
|
787
|
+
value?: string | undefined;
|
|
788
|
+
}[];
|
|
785
789
|
order: number;
|
|
786
790
|
conditions: {
|
|
787
791
|
value: string;
|
|
788
792
|
field: "subject" | "from" | "size" | "to" | "has-attachment";
|
|
789
793
|
operator: "contains" | "equals" | "not-contains" | "starts-with" | "ends-with" | "greater-than" | "less-than";
|
|
790
794
|
}[];
|
|
791
|
-
actions: {
|
|
792
|
-
type: "star" | "label" | "archive" | "move" | "mark-read" | "delete" | "forward";
|
|
793
|
-
value?: string | undefined;
|
|
794
|
-
}[];
|
|
795
795
|
}>;
|
|
796
796
|
export type EmailFilterWire = z.infer<typeof emailFilterSchema>;
|
|
797
797
|
export declare const emailBundleSchema: z.ZodObject<{
|
|
@@ -193,6 +193,20 @@ export declare const inboxDailyBriefResponseSchema: z.ZodObject<{
|
|
|
193
193
|
requestId: z.ZodString;
|
|
194
194
|
generationId: z.ZodOptional<z.ZodString>;
|
|
195
195
|
summary: z.ZodString;
|
|
196
|
+
/** Returned only when the caller opts in with `?includeActions=true`. */
|
|
197
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
198
|
+
label: z.ZodString;
|
|
199
|
+
prompt: z.ZodString;
|
|
200
|
+
messageIds: z.ZodArray<z.ZodString, "many">;
|
|
201
|
+
}, "strict", z.ZodTypeAny, {
|
|
202
|
+
label: string;
|
|
203
|
+
prompt: string;
|
|
204
|
+
messageIds: string[];
|
|
205
|
+
}, {
|
|
206
|
+
label: string;
|
|
207
|
+
prompt: string;
|
|
208
|
+
messageIds: string[];
|
|
209
|
+
}>, "many">>;
|
|
196
210
|
counts: z.ZodObject<{
|
|
197
211
|
received: z.ZodNumber;
|
|
198
212
|
unread: z.ZodNumber;
|
|
@@ -276,6 +290,11 @@ export declare const inboxDailyBriefResponseSchema: z.ZodObject<{
|
|
|
276
290
|
earlierUnread: number;
|
|
277
291
|
};
|
|
278
292
|
generationId?: string | undefined;
|
|
293
|
+
actions?: {
|
|
294
|
+
label: string;
|
|
295
|
+
prompt: string;
|
|
296
|
+
messageIds: string[];
|
|
297
|
+
}[] | undefined;
|
|
279
298
|
}, {
|
|
280
299
|
items: {
|
|
281
300
|
subject: string;
|
|
@@ -300,6 +319,11 @@ export declare const inboxDailyBriefResponseSchema: z.ZodObject<{
|
|
|
300
319
|
earlierUnread: number;
|
|
301
320
|
};
|
|
302
321
|
generationId?: string | undefined;
|
|
322
|
+
actions?: {
|
|
323
|
+
label: string;
|
|
324
|
+
prompt: string;
|
|
325
|
+
messageIds: string[];
|
|
326
|
+
}[] | undefined;
|
|
303
327
|
}>;
|
|
304
328
|
export declare const inboxSmartRepliesResponseSchema: z.ZodObject<{
|
|
305
329
|
replies: z.ZodArray<z.ZodString, "many">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/contracts",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.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",
|