@company-semantics/contracts 58.3.0 → 58.4.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/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/org/README.md +1 -0
- package/src/org/index.ts +1 -0
- package/src/org/schemas.ts +14 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -687,6 +687,7 @@ export type { OrgDirectoryPerson, OrgDirectoryResponse } from "./org/index";
|
|
|
687
687
|
// caller's own directory rather than supplied by the caller.
|
|
688
688
|
export {
|
|
689
689
|
BATCH_INVITE_PERSONS_MAX,
|
|
690
|
+
INVITE_EXPIRY_DAYS,
|
|
690
691
|
BATCH_INVITE_SKIP_REASONS,
|
|
691
692
|
BatchInviteSkipReasonSchema,
|
|
692
693
|
BatchInviteRequestSchema,
|
package/src/org/README.md
CHANGED
|
@@ -163,6 +163,7 @@ Shared type vocabulary for organization ownership, type classification, and tran
|
|
|
163
163
|
- `INVITE_BATCH_ITEM_REASONS` — Why an item is not `sent`.
|
|
164
164
|
- `INVITE_BATCH_ITEM_STATUSES` — Per-recipient outcome within a batch. - `eligible` — will be invited when the batch is sent. - `excluded` —…
|
|
165
165
|
- `INVITE_BATCH_STATUSES` — Batch lifecycle. - `draft` — created, membership not yet evaluated.
|
|
166
|
+
- `INVITE_EXPIRY_DAYS` — How many days an invitation link stays redeemable.
|
|
166
167
|
- `IdentityTrustLevel` _(type)_ — Identity Trust Level — org's identity posture
|
|
167
168
|
- `IntegrationRequest` _(type)_ — Advisory integration request created by a member.
|
|
168
169
|
- `IntegrationRequestStatus` _(type)_ — Status of an integration request from a member.
|
package/src/org/index.ts
CHANGED
package/src/org/schemas.ts
CHANGED
|
@@ -854,6 +854,20 @@ export type OrgDirectoryResponse = z.infer<typeof OrgDirectoryResponseSchema>;
|
|
|
854
854
|
*/
|
|
855
855
|
export const BATCH_INVITE_PERSONS_MAX = 100;
|
|
856
856
|
|
|
857
|
+
/**
|
|
858
|
+
* How many days an invitation link stays redeemable.
|
|
859
|
+
*
|
|
860
|
+
* Shared vocabulary, not prose: the backend stamps `expires_at` from this when
|
|
861
|
+
* it mints an invite, and the review surface states the same window to the
|
|
862
|
+
* person about to send one. It lived in both places as a literal and drifted —
|
|
863
|
+
* the copy still promised seven days after the policy moved.
|
|
864
|
+
*
|
|
865
|
+
* A SECURITY parameter as much as a UX one: it bounds how long a leaked invite
|
|
866
|
+
* link stays usable, so widening it is a deliberate trust-model change rather
|
|
867
|
+
* than a copy edit.
|
|
868
|
+
*/
|
|
869
|
+
export const INVITE_EXPIRY_DAYS = 30;
|
|
870
|
+
|
|
857
871
|
/** @deprecated Use {@link CreateInviteBatchRequestSchema}. Removed in 58.0.0. */
|
|
858
872
|
export const BatchInviteRequestSchema = z.object({
|
|
859
873
|
personIds: z.array(z.string().uuid()).min(1).max(BATCH_INVITE_PERSONS_MAX),
|