@company-semantics/contracts 58.2.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/api/generated-spec-hash.ts +2 -2
- package/src/api/generated.ts +56 -0
- package/src/generated/openapi-routes.ts +1 -0
- 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
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
|
|
2
|
-
export const SPEC_HASH = '
|
|
3
|
-
export const SPEC_HASH_FULL = '
|
|
2
|
+
export const SPEC_HASH = '433bb009d9f1' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = '433bb009d9f1037871adde049808503dc040cc4cb44122a8f2d603da02b4dd2b' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -465,6 +465,26 @@ export interface paths {
|
|
|
465
465
|
patch?: never;
|
|
466
466
|
trace?: never;
|
|
467
467
|
};
|
|
468
|
+
"/api/chats/proactive/{eventId}": {
|
|
469
|
+
parameters: {
|
|
470
|
+
query?: never;
|
|
471
|
+
header?: never;
|
|
472
|
+
path?: never;
|
|
473
|
+
cookie?: never;
|
|
474
|
+
};
|
|
475
|
+
/**
|
|
476
|
+
* Resolve a proactive occurrence to the current reader's chat
|
|
477
|
+
* @description A banner or inbox row links to an OCCURRENCE (/chat/proactive/{eventId}), never to a chat id, because the pushed chat is per recipient. This resolves the occurrence for the CURRENT reader: `ready` with their chat id, `pending` while the projection job is still running or retrying, `unavailable` when it gave up (the durable inbox row stands alone), or `ineligible` when the reader is not in the occurrence’s frozen audience.
|
|
478
|
+
*/
|
|
479
|
+
get: operations["resolveProactiveChat"];
|
|
480
|
+
put?: never;
|
|
481
|
+
post?: never;
|
|
482
|
+
delete?: never;
|
|
483
|
+
options?: never;
|
|
484
|
+
head?: never;
|
|
485
|
+
patch?: never;
|
|
486
|
+
trace?: never;
|
|
487
|
+
};
|
|
468
488
|
"/api/workspace/access": {
|
|
469
489
|
parameters: {
|
|
470
490
|
query?: never;
|
|
@@ -4247,6 +4267,20 @@ export interface components {
|
|
|
4247
4267
|
id?: string;
|
|
4248
4268
|
runtimeProfile?: string;
|
|
4249
4269
|
};
|
|
4270
|
+
ProactiveChatResolution: {
|
|
4271
|
+
/** @constant */
|
|
4272
|
+
state: "ready";
|
|
4273
|
+
chatId: string;
|
|
4274
|
+
} | {
|
|
4275
|
+
/** @constant */
|
|
4276
|
+
state: "pending";
|
|
4277
|
+
} | {
|
|
4278
|
+
/** @constant */
|
|
4279
|
+
state: "unavailable";
|
|
4280
|
+
} | {
|
|
4281
|
+
/** @constant */
|
|
4282
|
+
state: "ineligible";
|
|
4283
|
+
};
|
|
4250
4284
|
WorkspaceAccessResponse: {
|
|
4251
4285
|
hasAccess: boolean;
|
|
4252
4286
|
};
|
|
@@ -7836,6 +7870,28 @@ export interface operations {
|
|
|
7836
7870
|
};
|
|
7837
7871
|
};
|
|
7838
7872
|
};
|
|
7873
|
+
resolveProactiveChat: {
|
|
7874
|
+
parameters: {
|
|
7875
|
+
query?: never;
|
|
7876
|
+
header?: never;
|
|
7877
|
+
path: {
|
|
7878
|
+
eventId: string;
|
|
7879
|
+
};
|
|
7880
|
+
cookie?: never;
|
|
7881
|
+
};
|
|
7882
|
+
requestBody?: never;
|
|
7883
|
+
responses: {
|
|
7884
|
+
/** @description The resolution for the current reader (one of four bounded states) */
|
|
7885
|
+
200: {
|
|
7886
|
+
headers: {
|
|
7887
|
+
[name: string]: unknown;
|
|
7888
|
+
};
|
|
7889
|
+
content: {
|
|
7890
|
+
"application/json": components["schemas"]["ProactiveChatResolution"];
|
|
7891
|
+
};
|
|
7892
|
+
};
|
|
7893
|
+
};
|
|
7894
|
+
};
|
|
7839
7895
|
getWorkspaceAccess: {
|
|
7840
7896
|
parameters: {
|
|
7841
7897
|
query?: never;
|
|
@@ -15,6 +15,7 @@ export const openApiRoutes = {
|
|
|
15
15
|
'/api/chats': ['GET', 'POST'],
|
|
16
16
|
'/api/chats/by-interaction/{interactionId}': ['GET'],
|
|
17
17
|
'/api/chats/events': ['GET'],
|
|
18
|
+
'/api/chats/proactive/{eventId}': ['GET'],
|
|
18
19
|
'/api/chats/{chatId}/shares': ['GET', 'POST'],
|
|
19
20
|
'/api/chats/{id}': ['DELETE', 'GET', 'PATCH'],
|
|
20
21
|
'/api/chats/{id}/generate-title': ['POST'],
|
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),
|