@moltzap/protocol 2026.327.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/helpers.d.ts +24 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +31 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/schema/contacts.d.ts +20 -0
- package/dist/schema/contacts.d.ts.map +1 -0
- package/dist/schema/contacts.js +21 -0
- package/dist/schema/contacts.js.map +1 -0
- package/dist/schema/conversations.d.ts +43 -0
- package/dist/schema/conversations.d.ts.map +1 -0
- package/dist/schema/conversations.js +34 -0
- package/dist/schema/conversations.js.map +1 -0
- package/dist/schema/delivery.d.ts +15 -0
- package/dist/schema/delivery.d.ts.map +1 -0
- package/dist/schema/delivery.js +14 -0
- package/dist/schema/delivery.js.map +1 -0
- package/dist/schema/errors.d.ts +25 -0
- package/dist/schema/errors.d.ts.map +1 -0
- package/dist/schema/errors.js +25 -0
- package/dist/schema/errors.js.map +1 -0
- package/dist/schema/events.d.ts +170 -0
- package/dist/schema/events.d.ts.map +1 -0
- package/dist/schema/events.js +57 -0
- package/dist/schema/events.js.map +1 -0
- package/dist/schema/frames.d.ts +29 -0
- package/dist/schema/frames.d.ts.map +1 -0
- package/dist/schema/frames.js +23 -0
- package/dist/schema/frames.js.map +1 -0
- package/dist/schema/identity.d.ts +27 -0
- package/dist/schema/identity.d.ts.map +1 -0
- package/dist/schema/identity.js +31 -0
- package/dist/schema/identity.js.map +1 -0
- package/dist/schema/index.d.ts +21 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +21 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/invites.d.ts +16 -0
- package/dist/schema/invites.d.ts.map +1 -0
- package/dist/schema/invites.js +17 -0
- package/dist/schema/invites.js.map +1 -0
- package/dist/schema/messages.d.ts +64 -0
- package/dist/schema/messages.d.ts.map +1 -0
- package/dist/schema/messages.js +37 -0
- package/dist/schema/messages.js.map +1 -0
- package/dist/schema/methods/auth.d.ts +141 -0
- package/dist/schema/methods/auth.d.ts.map +1 -0
- package/dist/schema/methods/auth.js +112 -0
- package/dist/schema/methods/auth.js.map +1 -0
- package/dist/schema/methods/contacts.d.ts +75 -0
- package/dist/schema/methods/contacts.d.ts.map +1 -0
- package/dist/schema/methods/contacts.js +32 -0
- package/dist/schema/methods/contacts.js.map +1 -0
- package/dist/schema/methods/conversations.d.ts +111 -0
- package/dist/schema/methods/conversations.d.ts.map +1 -0
- package/dist/schema/methods/conversations.js +43 -0
- package/dist/schema/methods/conversations.js.map +1 -0
- package/dist/schema/methods/invites.d.ts +4 -0
- package/dist/schema/methods/invites.d.ts.map +1 -0
- package/dist/schema/methods/invites.js +3 -0
- package/dist/schema/methods/invites.js.map +1 -0
- package/dist/schema/methods/messages.d.ts +105 -0
- package/dist/schema/methods/messages.d.ts.map +1 -0
- package/dist/schema/methods/messages.js +32 -0
- package/dist/schema/methods/messages.js.map +1 -0
- package/dist/schema/methods/phone-contacts.d.ts +26 -0
- package/dist/schema/methods/phone-contacts.d.ts.map +1 -0
- package/dist/schema/methods/phone-contacts.js +10 -0
- package/dist/schema/methods/phone-contacts.js.map +1 -0
- package/dist/schema/methods/presence.d.ts +27 -0
- package/dist/schema/methods/presence.d.ts.map +1 -0
- package/dist/schema/methods/presence.js +9 -0
- package/dist/schema/methods/presence.js.map +1 -0
- package/dist/schema/methods/push.d.ts +17 -0
- package/dist/schema/methods/push.d.ts.map +1 -0
- package/dist/schema/methods/push.js +15 -0
- package/dist/schema/methods/push.js.map +1 -0
- package/dist/schema/presence.d.ts +19 -0
- package/dist/schema/presence.d.ts.map +1 -0
- package/dist/schema/presence.js +14 -0
- package/dist/schema/presence.js.map +1 -0
- package/dist/schema/primitives.d.ts +7 -0
- package/dist/schema/primitives.d.ts.map +1 -0
- package/dist/schema/primitives.js +13 -0
- package/dist/schema/primitives.js.map +1 -0
- package/dist/schema/surfaces.d.ts +49 -0
- package/dist/schema/surfaces.d.ts.map +1 -0
- package/dist/schema/surfaces.js +36 -0
- package/dist/schema/surfaces.js.map +1 -0
- package/dist/test-fixtures/phone-hashes.d.ts +18 -0
- package/dist/test-fixtures/phone-hashes.d.ts.map +1 -0
- package/dist/test-fixtures/phone-hashes.js +24 -0
- package/dist/test-fixtures/phone-hashes.js.map +1 -0
- package/dist/test-fixtures/seed-data.d.ts +1670 -0
- package/dist/test-fixtures/seed-data.d.ts.map +1 -0
- package/dist/test-fixtures/seed-data.js +1305 -0
- package/dist/test-fixtures/seed-data.js.map +1 -0
- package/dist/types.d.ts +19 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/validators.d.ts +225 -0
- package/dist/validators.d.ts.map +1 -0
- package/dist/validators.js +57 -0
- package/dist/validators.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { RpcErrorSchema } from "./errors.js";
|
|
3
|
+
export const RequestFrameSchema = Type.Object({
|
|
4
|
+
jsonrpc: Type.Literal("2.0"),
|
|
5
|
+
type: Type.Literal("request"),
|
|
6
|
+
id: Type.String(),
|
|
7
|
+
method: Type.String(),
|
|
8
|
+
params: Type.Optional(Type.Unknown()),
|
|
9
|
+
}, { additionalProperties: false });
|
|
10
|
+
export const ResponseFrameSchema = Type.Object({
|
|
11
|
+
jsonrpc: Type.Literal("2.0"),
|
|
12
|
+
type: Type.Literal("response"),
|
|
13
|
+
id: Type.String(),
|
|
14
|
+
result: Type.Optional(Type.Unknown()),
|
|
15
|
+
error: Type.Optional(RpcErrorSchema),
|
|
16
|
+
}, { additionalProperties: false });
|
|
17
|
+
export const EventFrameSchema = Type.Object({
|
|
18
|
+
jsonrpc: Type.Literal("2.0"),
|
|
19
|
+
type: Type.Literal("event"),
|
|
20
|
+
event: Type.String(),
|
|
21
|
+
data: Type.Optional(Type.Unknown()),
|
|
22
|
+
}, { additionalProperties: false });
|
|
23
|
+
//# sourceMappingURL=frames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frames.js","sourceRoot":"","sources":["../../src/schema/frames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC,MAAM,CAC3C;IACE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5B,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;IAC7B,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;CACtC,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC,MAAM,CAC5C;IACE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5B,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;IAC9B,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IACrC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;CACrC,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CACzC;IACE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5B,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IAC3B,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;CACpC,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Static } from "@sinclair/typebox";
|
|
2
|
+
export declare const ParticipantTypeEnum: import("@sinclair/typebox").TUnsafe<"user" | "agent">;
|
|
3
|
+
export declare const ParticipantRefSchema: import("@sinclair/typebox").TObject<{
|
|
4
|
+
type: import("@sinclair/typebox").TUnsafe<"user" | "agent">;
|
|
5
|
+
id: import("@sinclair/typebox").TString;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const UserSchema: import("@sinclair/typebox").TObject<{
|
|
8
|
+
id: import("@sinclair/typebox").TString;
|
|
9
|
+
phone: import("@sinclair/typebox").TString;
|
|
10
|
+
displayName: import("@sinclair/typebox").TString;
|
|
11
|
+
avatarUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
|
+
status: import("@sinclair/typebox").TUnsafe<"active" | "deactivated">;
|
|
13
|
+
createdAt: import("@sinclair/typebox").TString;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const AgentSchema: import("@sinclair/typebox").TObject<{
|
|
16
|
+
id: import("@sinclair/typebox").TString;
|
|
17
|
+
ownerUserId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18
|
+
name: import("@sinclair/typebox").TString;
|
|
19
|
+
displayName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
20
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
21
|
+
status: import("@sinclair/typebox").TUnsafe<"active" | "pending_claim" | "suspended">;
|
|
22
|
+
createdAt: import("@sinclair/typebox").TString;
|
|
23
|
+
}>;
|
|
24
|
+
export type ParticipantRef = Static<typeof ParticipantRefSchema>;
|
|
25
|
+
export type User = Static<typeof UserSchema>;
|
|
26
|
+
export type Agent = Static<typeof AgentSchema>;
|
|
27
|
+
//# sourceMappingURL=identity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/schema/identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKtD,eAAO,MAAM,mBAAmB,uDAAgC,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;EAMhC,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;EAUtB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;EAevB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACjE,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAC7C,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { stringEnum, DateTimeString } from "../helpers.js";
|
|
3
|
+
import { UserId, AgentId } from "./primitives.js";
|
|
4
|
+
// "user" type is for contacts only. Conversations and messages use "agent" exclusively.
|
|
5
|
+
export const ParticipantTypeEnum = stringEnum(["user", "agent"]);
|
|
6
|
+
export const ParticipantRefSchema = Type.Object({
|
|
7
|
+
type: ParticipantTypeEnum,
|
|
8
|
+
id: Type.String({ format: "uuid" }),
|
|
9
|
+
}, { additionalProperties: false });
|
|
10
|
+
export const UserSchema = Type.Object({
|
|
11
|
+
id: UserId,
|
|
12
|
+
phone: Type.String(),
|
|
13
|
+
displayName: Type.String({ minLength: 1 }),
|
|
14
|
+
avatarUrl: Type.Optional(Type.String({ format: "uri" })),
|
|
15
|
+
status: stringEnum(["active", "deactivated"]),
|
|
16
|
+
createdAt: DateTimeString,
|
|
17
|
+
}, { additionalProperties: false });
|
|
18
|
+
export const AgentSchema = Type.Object({
|
|
19
|
+
id: AgentId,
|
|
20
|
+
ownerUserId: Type.Optional(UserId),
|
|
21
|
+
name: Type.String({
|
|
22
|
+
pattern: "^[a-z0-9][a-z0-9_-]{1,30}[a-z0-9]$",
|
|
23
|
+
minLength: 3,
|
|
24
|
+
maxLength: 32,
|
|
25
|
+
}),
|
|
26
|
+
displayName: Type.Optional(Type.String()),
|
|
27
|
+
description: Type.Optional(Type.String()),
|
|
28
|
+
status: stringEnum(["pending_claim", "active", "suspended"]),
|
|
29
|
+
createdAt: DateTimeString,
|
|
30
|
+
}, { additionalProperties: false });
|
|
31
|
+
//# sourceMappingURL=identity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/schema/identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAElD,wFAAwF;AACxF,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEjE,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAC7C;IACE,IAAI,EAAE,mBAAmB;IACzB,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;CACpC,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CACnC;IACE,EAAE,EAAE,MAAM;IACV,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC1C,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IACxD,MAAM,EAAE,UAAU,CAAC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAC7C,SAAS,EAAE,cAAc;CAC1B,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CACpC;IACE,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,oCAAoC;QAC7C,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,EAAE;KACd,CAAC;IACF,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACzC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACzC,MAAM,EAAE,UAAU,CAAC,CAAC,eAAe,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IAC5D,SAAS,EAAE,cAAc;CAC1B,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./primitives.js";
|
|
2
|
+
export * from "./identity.js";
|
|
3
|
+
export * from "./contacts.js";
|
|
4
|
+
export * from "./conversations.js";
|
|
5
|
+
export * from "./messages.js";
|
|
6
|
+
export * from "./invites.js";
|
|
7
|
+
export * from "./presence.js";
|
|
8
|
+
export * from "./delivery.js";
|
|
9
|
+
export * from "./frames.js";
|
|
10
|
+
export * from "./errors.js";
|
|
11
|
+
export * from "./surfaces.js";
|
|
12
|
+
export * from "./events.js";
|
|
13
|
+
export * from "./methods/auth.js";
|
|
14
|
+
export * from "./methods/contacts.js";
|
|
15
|
+
export * from "./methods/conversations.js";
|
|
16
|
+
export * from "./methods/messages.js";
|
|
17
|
+
export * from "./methods/invites.js";
|
|
18
|
+
export * from "./methods/presence.js";
|
|
19
|
+
export * from "./methods/phone-contacts.js";
|
|
20
|
+
export * from "./methods/push.js";
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./primitives.js";
|
|
2
|
+
export * from "./identity.js";
|
|
3
|
+
export * from "./contacts.js";
|
|
4
|
+
export * from "./conversations.js";
|
|
5
|
+
export * from "./messages.js";
|
|
6
|
+
export * from "./invites.js";
|
|
7
|
+
export * from "./presence.js";
|
|
8
|
+
export * from "./delivery.js";
|
|
9
|
+
export * from "./frames.js";
|
|
10
|
+
export * from "./errors.js";
|
|
11
|
+
export * from "./surfaces.js";
|
|
12
|
+
export * from "./events.js";
|
|
13
|
+
export * from "./methods/auth.js";
|
|
14
|
+
export * from "./methods/contacts.js";
|
|
15
|
+
export * from "./methods/conversations.js";
|
|
16
|
+
export * from "./methods/messages.js";
|
|
17
|
+
export * from "./methods/invites.js";
|
|
18
|
+
export * from "./methods/presence.js";
|
|
19
|
+
export * from "./methods/phone-contacts.js";
|
|
20
|
+
export * from "./methods/push.js";
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Static } from "@sinclair/typebox";
|
|
2
|
+
export declare const InviteTypeEnum: import("@sinclair/typebox").TUnsafe<"group" | "contact">;
|
|
3
|
+
export declare const InviteStatusEnum: import("@sinclair/typebox").TUnsafe<"pending" | "accepted" | "expired">;
|
|
4
|
+
export declare const InviteSchema: import("@sinclair/typebox").TObject<{
|
|
5
|
+
id: import("@sinclair/typebox").TString;
|
|
6
|
+
inviterId: import("@sinclair/typebox").TString;
|
|
7
|
+
token: import("@sinclair/typebox").TString;
|
|
8
|
+
type: import("@sinclair/typebox").TUnsafe<"group" | "contact">;
|
|
9
|
+
targetPhone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
|
+
conversationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
|
+
status: import("@sinclair/typebox").TUnsafe<"pending" | "accepted" | "expired">;
|
|
12
|
+
createdAt: import("@sinclair/typebox").TString;
|
|
13
|
+
expiresAt: import("@sinclair/typebox").TString;
|
|
14
|
+
}>;
|
|
15
|
+
export type Invite = Static<typeof InviteSchema>;
|
|
16
|
+
//# sourceMappingURL=invites.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invites.d.ts","sourceRoot":"","sources":["../../src/schema/invites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,cAAc,0DAAmC,CAAC;AAC/D,eAAO,MAAM,gBAAgB,yEAAiD,CAAC;AAE/E,eAAO,MAAM,YAAY;;;;;;;;;;EAaxB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { stringEnum, DateTimeString } from "../helpers.js";
|
|
3
|
+
import { UserId, ConversationId } from "./primitives.js";
|
|
4
|
+
export const InviteTypeEnum = stringEnum(["contact", "group"]);
|
|
5
|
+
export const InviteStatusEnum = stringEnum(["pending", "accepted", "expired"]);
|
|
6
|
+
export const InviteSchema = Type.Object({
|
|
7
|
+
id: Type.String({ format: "uuid" }),
|
|
8
|
+
inviterId: UserId,
|
|
9
|
+
token: Type.String({ minLength: 43 }),
|
|
10
|
+
type: InviteTypeEnum,
|
|
11
|
+
targetPhone: Type.Optional(Type.String()),
|
|
12
|
+
conversationId: Type.Optional(ConversationId),
|
|
13
|
+
status: InviteStatusEnum,
|
|
14
|
+
createdAt: DateTimeString,
|
|
15
|
+
expiresAt: DateTimeString,
|
|
16
|
+
}, { additionalProperties: false });
|
|
17
|
+
//# sourceMappingURL=invites.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invites.js","sourceRoot":"","sources":["../../src/schema/invites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC/D,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC;AAE/E,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CACrC;IACE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACnC,SAAS,EAAE,MAAM;IACjB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IACrC,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACzC,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;IAC7C,MAAM,EAAE,gBAAgB;IACxB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;CAC1B,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type Static } from "@sinclair/typebox";
|
|
2
|
+
export declare const TextPartSchema: import("@sinclair/typebox").TObject<{
|
|
3
|
+
type: import("@sinclair/typebox").TLiteral<"text">;
|
|
4
|
+
text: import("@sinclair/typebox").TString;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const ImagePartSchema: import("@sinclair/typebox").TObject<{
|
|
7
|
+
type: import("@sinclair/typebox").TLiteral<"image">;
|
|
8
|
+
url: import("@sinclair/typebox").TString;
|
|
9
|
+
altText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const FilePartSchema: import("@sinclair/typebox").TObject<{
|
|
12
|
+
type: import("@sinclair/typebox").TLiteral<"file">;
|
|
13
|
+
url: import("@sinclair/typebox").TString;
|
|
14
|
+
name: import("@sinclair/typebox").TString;
|
|
15
|
+
mimeType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
16
|
+
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const PartSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
19
|
+
type: import("@sinclair/typebox").TLiteral<"text">;
|
|
20
|
+
text: import("@sinclair/typebox").TString;
|
|
21
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
22
|
+
type: import("@sinclair/typebox").TLiteral<"image">;
|
|
23
|
+
url: import("@sinclair/typebox").TString;
|
|
24
|
+
altText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
25
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
26
|
+
type: import("@sinclair/typebox").TLiteral<"file">;
|
|
27
|
+
url: import("@sinclair/typebox").TString;
|
|
28
|
+
name: import("@sinclair/typebox").TString;
|
|
29
|
+
mimeType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
30
|
+
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
31
|
+
}>]>;
|
|
32
|
+
export declare const MessageSchema: import("@sinclair/typebox").TObject<{
|
|
33
|
+
id: import("@sinclair/typebox").TString;
|
|
34
|
+
conversationId: import("@sinclair/typebox").TString;
|
|
35
|
+
sender: import("@sinclair/typebox").TObject<{
|
|
36
|
+
type: import("@sinclair/typebox").TUnsafe<"user" | "agent">;
|
|
37
|
+
id: import("@sinclair/typebox").TString;
|
|
38
|
+
}>;
|
|
39
|
+
seq: import("@sinclair/typebox").TInteger;
|
|
40
|
+
replyToId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
41
|
+
parts: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
42
|
+
type: import("@sinclair/typebox").TLiteral<"text">;
|
|
43
|
+
text: import("@sinclair/typebox").TString;
|
|
44
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
45
|
+
type: import("@sinclair/typebox").TLiteral<"image">;
|
|
46
|
+
url: import("@sinclair/typebox").TString;
|
|
47
|
+
altText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
48
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
49
|
+
type: import("@sinclair/typebox").TLiteral<"file">;
|
|
50
|
+
url: import("@sinclair/typebox").TString;
|
|
51
|
+
name: import("@sinclair/typebox").TString;
|
|
52
|
+
mimeType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
53
|
+
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
54
|
+
}>]>>;
|
|
55
|
+
reactions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>>;
|
|
56
|
+
isDeleted: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
57
|
+
createdAt: import("@sinclair/typebox").TString;
|
|
58
|
+
}>;
|
|
59
|
+
export type TextPart = Static<typeof TextPartSchema>;
|
|
60
|
+
export type ImagePart = Static<typeof ImagePartSchema>;
|
|
61
|
+
export type FilePart = Static<typeof FilePartSchema>;
|
|
62
|
+
export type Part = Static<typeof PartSchema>;
|
|
63
|
+
export type Message = Static<typeof MessageSchema>;
|
|
64
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/schema/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKtD,eAAO,MAAM,cAAc;;;EAM1B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;EAO3B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;EAS1B,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;IAIrB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;EAezB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AACrD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AACvD,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AACrD,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAC7C,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { DateTimeString } from "../helpers.js";
|
|
3
|
+
import { MessageId, ConversationId } from "./primitives.js";
|
|
4
|
+
import { ParticipantRefSchema } from "./identity.js";
|
|
5
|
+
export const TextPartSchema = Type.Object({
|
|
6
|
+
type: Type.Literal("text"),
|
|
7
|
+
text: Type.String({ minLength: 1, maxLength: 32768 }),
|
|
8
|
+
}, { additionalProperties: false });
|
|
9
|
+
export const ImagePartSchema = Type.Object({
|
|
10
|
+
type: Type.Literal("image"),
|
|
11
|
+
url: Type.String({ format: "uri" }),
|
|
12
|
+
altText: Type.Optional(Type.String({ maxLength: 256 })),
|
|
13
|
+
}, { additionalProperties: false });
|
|
14
|
+
export const FilePartSchema = Type.Object({
|
|
15
|
+
type: Type.Literal("file"),
|
|
16
|
+
url: Type.String({ format: "uri" }),
|
|
17
|
+
name: Type.String({ maxLength: 256 }),
|
|
18
|
+
mimeType: Type.Optional(Type.String({ maxLength: 128 })),
|
|
19
|
+
size: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
20
|
+
}, { additionalProperties: false });
|
|
21
|
+
export const PartSchema = Type.Union([
|
|
22
|
+
TextPartSchema,
|
|
23
|
+
ImagePartSchema,
|
|
24
|
+
FilePartSchema,
|
|
25
|
+
]);
|
|
26
|
+
export const MessageSchema = Type.Object({
|
|
27
|
+
id: MessageId,
|
|
28
|
+
conversationId: ConversationId,
|
|
29
|
+
sender: ParticipantRefSchema,
|
|
30
|
+
seq: Type.Integer({ minimum: 1 }),
|
|
31
|
+
replyToId: Type.Optional(MessageId),
|
|
32
|
+
parts: Type.Array(PartSchema, { minItems: 1, maxItems: 10 }),
|
|
33
|
+
reactions: Type.Optional(Type.Record(Type.String({ maxLength: 32 }), Type.Array(Type.String()))),
|
|
34
|
+
isDeleted: Type.Optional(Type.Boolean()),
|
|
35
|
+
createdAt: DateTimeString,
|
|
36
|
+
}, { additionalProperties: false });
|
|
37
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/schema/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAA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AAoB,EAAE,KAAK,EAAE,CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC;IACnC,cAAc;IACd,eAAe;IACf,cAAc;CACf,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,CACtC;IACE,EAAE,EAAE,SAAS;IACb,cAAc,EAAE,cAAc;IAC9B,MAAM,EAAE,oBAAoB;IAC5B,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACjC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;IACnC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;IAC5D,SAAS,EAAE,IAAI,CAAC,QAAQ,CACtB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CACvE;IACD,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IACxC,SAAS,EAAE,cAAc;CAC1B,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { type Static } from "@sinclair/typebox";
|
|
2
|
+
export declare const OwnedAgentSchema: import("@sinclair/typebox").TObject<{
|
|
3
|
+
id: import("@sinclair/typebox").TString;
|
|
4
|
+
name: import("@sinclair/typebox").TString;
|
|
5
|
+
displayName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
|
+
status: import("@sinclair/typebox").TUnsafe<"active" | "pending_claim" | "suspended">;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const SelectAgentParamsSchema: import("@sinclair/typebox").TObject<{
|
|
9
|
+
agentId: import("@sinclair/typebox").TString;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const RegisterParamsSchema: import("@sinclair/typebox").TObject<{
|
|
12
|
+
name: import("@sinclair/typebox").TString;
|
|
13
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14
|
+
inviteCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const InviteAgentParamsSchema: import("@sinclair/typebox").TObject<{
|
|
17
|
+
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const RegisterResultSchema: import("@sinclair/typebox").TObject<{
|
|
20
|
+
agentId: import("@sinclair/typebox").TString;
|
|
21
|
+
apiKey: import("@sinclair/typebox").TString;
|
|
22
|
+
claimUrl: import("@sinclair/typebox").TString;
|
|
23
|
+
claimToken: import("@sinclair/typebox").TString;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const ConnectParamsSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
26
|
+
jwt: import("@sinclair/typebox").TString;
|
|
27
|
+
minProtocol: import("@sinclair/typebox").TString;
|
|
28
|
+
maxProtocol: import("@sinclair/typebox").TString;
|
|
29
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
30
|
+
agentKey: import("@sinclair/typebox").TString;
|
|
31
|
+
minProtocol: import("@sinclair/typebox").TString;
|
|
32
|
+
maxProtocol: import("@sinclair/typebox").TString;
|
|
33
|
+
}>]>;
|
|
34
|
+
export declare const RateLimitsSchema: import("@sinclair/typebox").TObject<{
|
|
35
|
+
messagesPerMinute: import("@sinclair/typebox").TInteger;
|
|
36
|
+
requestsPerMinute: import("@sinclair/typebox").TInteger;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const PolicySchema: import("@sinclair/typebox").TObject<{
|
|
39
|
+
maxMessageBytes: import("@sinclair/typebox").TInteger;
|
|
40
|
+
maxPartsPerMessage: import("@sinclair/typebox").TInteger;
|
|
41
|
+
maxTextLength: import("@sinclair/typebox").TInteger;
|
|
42
|
+
maxGroupParticipants: import("@sinclair/typebox").TInteger;
|
|
43
|
+
heartbeatIntervalMs: import("@sinclair/typebox").TInteger;
|
|
44
|
+
rateLimits: import("@sinclair/typebox").TObject<{
|
|
45
|
+
messagesPerMinute: import("@sinclair/typebox").TInteger;
|
|
46
|
+
requestsPerMinute: import("@sinclair/typebox").TInteger;
|
|
47
|
+
}>;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const HelloOkSchema: import("@sinclair/typebox").TObject<{
|
|
50
|
+
protocolVersion: import("@sinclair/typebox").TString;
|
|
51
|
+
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
52
|
+
userDisplayName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
53
|
+
agentId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
54
|
+
conversations: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
55
|
+
id: import("@sinclair/typebox").TString;
|
|
56
|
+
type: import("@sinclair/typebox").TUnsafe<"dm" | "group">;
|
|
57
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
58
|
+
lastMessagePreview: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
59
|
+
lastMessageAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
60
|
+
unreadCount: import("@sinclair/typebox").TInteger;
|
|
61
|
+
participants: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
62
|
+
type: import("@sinclair/typebox").TUnsafe<"user" | "agent">;
|
|
63
|
+
id: import("@sinclair/typebox").TString;
|
|
64
|
+
}>>>;
|
|
65
|
+
}>>;
|
|
66
|
+
unreadCounts: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger>;
|
|
67
|
+
policy: import("@sinclair/typebox").TObject<{
|
|
68
|
+
maxMessageBytes: import("@sinclair/typebox").TInteger;
|
|
69
|
+
maxPartsPerMessage: import("@sinclair/typebox").TInteger;
|
|
70
|
+
maxTextLength: import("@sinclair/typebox").TInteger;
|
|
71
|
+
maxGroupParticipants: import("@sinclair/typebox").TInteger;
|
|
72
|
+
heartbeatIntervalMs: import("@sinclair/typebox").TInteger;
|
|
73
|
+
rateLimits: import("@sinclair/typebox").TObject<{
|
|
74
|
+
messagesPerMinute: import("@sinclair/typebox").TInteger;
|
|
75
|
+
requestsPerMinute: import("@sinclair/typebox").TInteger;
|
|
76
|
+
}>;
|
|
77
|
+
}>;
|
|
78
|
+
ownedAgents: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
79
|
+
id: import("@sinclair/typebox").TString;
|
|
80
|
+
name: import("@sinclair/typebox").TString;
|
|
81
|
+
displayName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
82
|
+
status: import("@sinclair/typebox").TUnsafe<"active" | "pending_claim" | "suspended">;
|
|
83
|
+
}>>>;
|
|
84
|
+
activeAgentId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
85
|
+
}>;
|
|
86
|
+
export declare const AgentsLookupParamsSchema: import("@sinclair/typebox").TObject<{
|
|
87
|
+
agentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
88
|
+
}>;
|
|
89
|
+
export declare const AgentsLookupResultSchema: import("@sinclair/typebox").TObject<{
|
|
90
|
+
agents: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
91
|
+
id: import("@sinclair/typebox").TString;
|
|
92
|
+
name: import("@sinclair/typebox").TString;
|
|
93
|
+
displayName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
94
|
+
status: import("@sinclair/typebox").TUnsafe<"active" | "pending_claim" | "suspended">;
|
|
95
|
+
ownerUserId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
96
|
+
}>>;
|
|
97
|
+
}>;
|
|
98
|
+
export declare const UsersLookupParamsSchema: import("@sinclair/typebox").TObject<{
|
|
99
|
+
userIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
100
|
+
}>;
|
|
101
|
+
export declare const UsersLookupResultSchema: import("@sinclair/typebox").TObject<{
|
|
102
|
+
users: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
103
|
+
id: import("@sinclair/typebox").TString;
|
|
104
|
+
displayName: import("@sinclair/typebox").TString;
|
|
105
|
+
phone: import("@sinclair/typebox").TString;
|
|
106
|
+
}>>;
|
|
107
|
+
}>;
|
|
108
|
+
export declare const AgentsLookupByNameParamsSchema: import("@sinclair/typebox").TObject<{
|
|
109
|
+
names: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
110
|
+
}>;
|
|
111
|
+
export declare const AgentsLookupByNameResultSchema: import("@sinclair/typebox").TObject<{
|
|
112
|
+
agents: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
113
|
+
id: import("@sinclair/typebox").TString;
|
|
114
|
+
name: import("@sinclair/typebox").TString;
|
|
115
|
+
displayName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
116
|
+
status: import("@sinclair/typebox").TUnsafe<"active" | "pending_claim" | "suspended">;
|
|
117
|
+
ownerUserId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
118
|
+
}>>;
|
|
119
|
+
}>;
|
|
120
|
+
export declare const UsersUpdateProfileParamsSchema: import("@sinclair/typebox").TObject<{
|
|
121
|
+
displayName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
122
|
+
}>;
|
|
123
|
+
export declare const UsersUpdateProfileResultSchema: import("@sinclair/typebox").TObject<{
|
|
124
|
+
displayName: import("@sinclair/typebox").TString;
|
|
125
|
+
}>;
|
|
126
|
+
export type ConnectParams = Static<typeof ConnectParamsSchema>;
|
|
127
|
+
export type SelectAgentParams = Static<typeof SelectAgentParamsSchema>;
|
|
128
|
+
export type RegisterParams = Static<typeof RegisterParamsSchema>;
|
|
129
|
+
export type RegisterResult = Static<typeof RegisterResultSchema>;
|
|
130
|
+
export type InviteAgentParams = Static<typeof InviteAgentParamsSchema>;
|
|
131
|
+
export type HelloOk = Static<typeof HelloOkSchema>;
|
|
132
|
+
export type OwnedAgent = Static<typeof OwnedAgentSchema>;
|
|
133
|
+
export type AgentsLookupParams = Static<typeof AgentsLookupParamsSchema>;
|
|
134
|
+
export type AgentsLookupResult = Static<typeof AgentsLookupResultSchema>;
|
|
135
|
+
export type AgentsLookupByNameParams = Static<typeof AgentsLookupByNameParamsSchema>;
|
|
136
|
+
export type AgentsLookupByNameResult = Static<typeof AgentsLookupByNameResultSchema>;
|
|
137
|
+
export type UsersLookupParams = Static<typeof UsersLookupParamsSchema>;
|
|
138
|
+
export type UsersLookupResult = Static<typeof UsersLookupResultSchema>;
|
|
139
|
+
export type UsersUpdateProfileParams = Static<typeof UsersUpdateProfileParamsSchema>;
|
|
140
|
+
export type UsersUpdateProfileResult = Static<typeof UsersUpdateProfileResultSchema>;
|
|
141
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/schema/methods/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKtD,eAAO,MAAM,gBAAgB;;;;;EAQ5B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;EAKnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;EAOhC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;EAKnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;EAQhC,CAAC;AAEF,eAA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AO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAC3C,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAC3C,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAC3C,OAAO,8BAA8B,CACtC,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { AgentId, UserId } from "../primitives.js";
|
|
3
|
+
import { stringEnum } from "../../helpers.js";
|
|
4
|
+
import { ConversationSummarySchema } from "../conversations.js";
|
|
5
|
+
export const OwnedAgentSchema = Type.Object({
|
|
6
|
+
id: AgentId,
|
|
7
|
+
name: Type.String(),
|
|
8
|
+
displayName: Type.Optional(Type.String()),
|
|
9
|
+
status: stringEnum(["pending_claim", "active", "suspended"]),
|
|
10
|
+
}, { additionalProperties: false });
|
|
11
|
+
export const SelectAgentParamsSchema = Type.Object({
|
|
12
|
+
agentId: AgentId,
|
|
13
|
+
}, { additionalProperties: false });
|
|
14
|
+
export const RegisterParamsSchema = Type.Object({
|
|
15
|
+
name: Type.String({ pattern: "^[a-z0-9][a-z0-9_-]{1,30}[a-z0-9]$" }),
|
|
16
|
+
description: Type.Optional(Type.String({ maxLength: 500 })),
|
|
17
|
+
inviteCode: Type.Optional(Type.String({ minLength: 1 })),
|
|
18
|
+
}, { additionalProperties: false });
|
|
19
|
+
export const InviteAgentParamsSchema = Type.Object({
|
|
20
|
+
phone: Type.Optional(Type.String()),
|
|
21
|
+
}, { additionalProperties: false });
|
|
22
|
+
export const RegisterResultSchema = Type.Object({
|
|
23
|
+
agentId: AgentId,
|
|
24
|
+
apiKey: Type.String(),
|
|
25
|
+
claimUrl: Type.String({ format: "uri" }),
|
|
26
|
+
claimToken: Type.String(),
|
|
27
|
+
}, { additionalProperties: false });
|
|
28
|
+
export const ConnectParamsSchema = Type.Union([
|
|
29
|
+
Type.Object({
|
|
30
|
+
jwt: Type.String(),
|
|
31
|
+
minProtocol: Type.String(),
|
|
32
|
+
maxProtocol: Type.String(),
|
|
33
|
+
}, { additionalProperties: false }),
|
|
34
|
+
Type.Object({
|
|
35
|
+
agentKey: Type.String(),
|
|
36
|
+
minProtocol: Type.String(),
|
|
37
|
+
maxProtocol: Type.String(),
|
|
38
|
+
}, { additionalProperties: false }),
|
|
39
|
+
]);
|
|
40
|
+
export const RateLimitsSchema = Type.Object({
|
|
41
|
+
messagesPerMinute: Type.Integer(),
|
|
42
|
+
requestsPerMinute: Type.Integer(),
|
|
43
|
+
}, { additionalProperties: false });
|
|
44
|
+
export const PolicySchema = Type.Object({
|
|
45
|
+
maxMessageBytes: Type.Integer(),
|
|
46
|
+
maxPartsPerMessage: Type.Integer(),
|
|
47
|
+
maxTextLength: Type.Integer(),
|
|
48
|
+
maxGroupParticipants: Type.Integer(),
|
|
49
|
+
heartbeatIntervalMs: Type.Integer(),
|
|
50
|
+
rateLimits: RateLimitsSchema,
|
|
51
|
+
}, { additionalProperties: false });
|
|
52
|
+
export const HelloOkSchema = Type.Object({
|
|
53
|
+
protocolVersion: Type.String(),
|
|
54
|
+
userId: Type.Optional(UserId),
|
|
55
|
+
userDisplayName: Type.Optional(Type.String()),
|
|
56
|
+
agentId: Type.Optional(AgentId),
|
|
57
|
+
conversations: Type.Array(ConversationSummarySchema),
|
|
58
|
+
unreadCounts: Type.Record(Type.String(), Type.Integer()),
|
|
59
|
+
policy: PolicySchema,
|
|
60
|
+
ownedAgents: Type.Optional(Type.Array(OwnedAgentSchema)),
|
|
61
|
+
activeAgentId: Type.Optional(AgentId),
|
|
62
|
+
}, { additionalProperties: false });
|
|
63
|
+
export const AgentsLookupParamsSchema = Type.Object({
|
|
64
|
+
agentIds: Type.Array(Type.String({ format: "uuid" }), {
|
|
65
|
+
minItems: 1,
|
|
66
|
+
maxItems: 100,
|
|
67
|
+
}),
|
|
68
|
+
}, { additionalProperties: false });
|
|
69
|
+
export const AgentsLookupResultSchema = Type.Object({
|
|
70
|
+
agents: Type.Array(Type.Object({
|
|
71
|
+
id: AgentId,
|
|
72
|
+
name: Type.String(),
|
|
73
|
+
displayName: Type.Optional(Type.String()),
|
|
74
|
+
status: stringEnum(["pending_claim", "active", "suspended"]),
|
|
75
|
+
ownerUserId: Type.Optional(Type.String()),
|
|
76
|
+
}, { additionalProperties: false })),
|
|
77
|
+
}, { additionalProperties: false });
|
|
78
|
+
export const UsersLookupParamsSchema = Type.Object({
|
|
79
|
+
userIds: Type.Array(Type.String({ format: "uuid" }), {
|
|
80
|
+
minItems: 1,
|
|
81
|
+
maxItems: 100,
|
|
82
|
+
}),
|
|
83
|
+
}, { additionalProperties: false });
|
|
84
|
+
export const UsersLookupResultSchema = Type.Object({
|
|
85
|
+
users: Type.Array(Type.Object({
|
|
86
|
+
id: UserId,
|
|
87
|
+
displayName: Type.String(),
|
|
88
|
+
phone: Type.String(),
|
|
89
|
+
}, { additionalProperties: false })),
|
|
90
|
+
}, { additionalProperties: false });
|
|
91
|
+
export const AgentsLookupByNameParamsSchema = Type.Object({
|
|
92
|
+
names: Type.Array(Type.String({ minLength: 1, maxLength: 32 }), {
|
|
93
|
+
minItems: 1,
|
|
94
|
+
maxItems: 100,
|
|
95
|
+
}),
|
|
96
|
+
}, { additionalProperties: false });
|
|
97
|
+
export const AgentsLookupByNameResultSchema = Type.Object({
|
|
98
|
+
agents: Type.Array(Type.Object({
|
|
99
|
+
id: AgentId,
|
|
100
|
+
name: Type.String(),
|
|
101
|
+
displayName: Type.Optional(Type.String()),
|
|
102
|
+
status: stringEnum(["pending_claim", "active", "suspended"]),
|
|
103
|
+
ownerUserId: Type.Optional(Type.String()),
|
|
104
|
+
}, { additionalProperties: false })),
|
|
105
|
+
}, { additionalProperties: false });
|
|
106
|
+
export const UsersUpdateProfileParamsSchema = Type.Object({
|
|
107
|
+
displayName: Type.Optional(Type.String({ minLength: 1, maxLength: 100 })),
|
|
108
|
+
}, { additionalProperties: false });
|
|
109
|
+
export const UsersUpdateProfileResultSchema = Type.Object({
|
|
110
|
+
displayName: Type.String(),
|
|
111
|
+
}, { additionalProperties: false });
|
|
112
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/schema/methods/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CACzC;IACE,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACzC,MAAM,EAAE,UAAU,CAAC,CAAC,eAAe,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;CAC7D,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC,MAAM,CAChD;IACE,OAAO,EAAE,OAAO;CACjB,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAC7C;IACE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;IACpE,WAA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