@moltzap/protocol 2026.505.1 → 2026.505.3
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/app/methods/apps.d.ts +30 -103
- package/dist/app/methods/apps.d.ts.map +1 -1
- package/dist/app/methods/apps.js +9 -72
- package/dist/app/methods/apps.js.map +1 -1
- package/dist/rpc-groups.d.ts +92 -10
- package/dist/rpc-groups.d.ts.map +1 -1
- package/dist/rpc-groups.js +39 -9
- package/dist/rpc-groups.js.map +1 -1
- package/dist/rpc-registry.d.ts +29 -241
- package/dist/rpc-registry.d.ts.map +1 -1
- package/dist/rpc-registry.js +2 -9
- package/dist/rpc-registry.js.map +1 -1
- package/dist/schema/apps.d.ts +0 -26
- package/dist/schema/apps.d.ts.map +1 -1
- package/dist/schema/apps.js +1 -19
- package/dist/schema/apps.js.map +1 -1
- package/dist/schema/index.d.ts +0 -1
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +0 -1
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/notifications.d.ts +133 -106
- package/dist/schema/notifications.d.ts.map +1 -1
- package/dist/schema/notifications.js +55 -39
- package/dist/schema/notifications.js.map +1 -1
- package/dist/testing/conformance/boundary.d.ts.map +1 -1
- package/dist/testing/conformance/boundary.js +21 -74
- package/dist/testing/conformance/boundary.js.map +1 -1
- package/dist/testing/conformance/client/adversity.d.ts.map +1 -1
- package/dist/testing/conformance/client/adversity.js +5 -2
- package/dist/testing/conformance/client/adversity.js.map +1 -1
- package/dist/testing/conformance/client/boundary.d.ts.map +1 -1
- package/dist/testing/conformance/client/boundary.js +5 -2
- package/dist/testing/conformance/client/boundary.js.map +1 -1
- package/dist/testing/conformance/client/delivery.d.ts.map +1 -1
- package/dist/testing/conformance/client/delivery.js +7 -2
- package/dist/testing/conformance/client/delivery.js.map +1 -1
- package/dist/testing/conformance/delivery.d.ts +9 -14
- package/dist/testing/conformance/delivery.d.ts.map +1 -1
- package/dist/testing/conformance/delivery.js +32 -198
- package/dist/testing/conformance/delivery.js.map +1 -1
- package/dist/testing/conformance/dispatcher-concurrency.js +5 -5
- package/dist/testing/conformance/dispatcher-concurrency.js.map +1 -1
- package/dist/testing/conformance/suite.js +18 -29
- package/dist/testing/conformance/suite.js.map +1 -1
- package/dist/testing/models/dispatch.d.ts.map +1 -1
- package/dist/testing/models/dispatch.js +12 -9
- package/dist/testing/models/dispatch.js.map +1 -1
- package/dist/types.d.ts +2 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/validators.d.ts +20 -34
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +6 -11
- package/dist/validators.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/schema/delivery.d.ts +0 -22
- package/dist/schema/delivery.d.ts.map +0 -1
- package/dist/schema/delivery.js +0 -13
- package/dist/schema/delivery.js.map +0 -1
package/dist/rpc-groups.js
CHANGED
|
@@ -31,6 +31,13 @@ export function defineNotificationGroup(layer, definitions) {
|
|
|
31
31
|
byDefinition: descriptorSet(definitions),
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
// `DecodedNotificationFrame` (the closed union over the protocol's
|
|
35
|
+
// concrete notification descriptors plus the unknown-method branch) is
|
|
36
|
+
// declared in `schema/notifications.ts` so it can specialize over the
|
|
37
|
+
// concrete `AnyNotificationDefinition` union (vs. the broad
|
|
38
|
+
// `NotificationDefinition<string, TSchema>` constraint visible here).
|
|
39
|
+
// Consumers import it from the package barrel — see
|
|
40
|
+
// `client/runtime/frame.ts` and `client/runtime/subscribers.ts`.
|
|
34
41
|
export class UnknownRpcMethodError extends Data.TaggedError("UnknownRpcMethodError") {
|
|
35
42
|
}
|
|
36
43
|
export class InvalidRpcParamsError extends Data.TaggedError("InvalidRpcParamsError") {
|
|
@@ -77,12 +84,20 @@ export function decodeNotification(group, frame) {
|
|
|
77
84
|
definition,
|
|
78
85
|
}));
|
|
79
86
|
}
|
|
80
|
-
|
|
87
|
+
// `_tag` attaches non-enumerably so the decoded value still satisfies
|
|
88
|
+
// `validators.notificationFrame` (strict `additionalProperties: false`):
|
|
89
|
+
// wire-shape preservation matters for downstream filters / serializers.
|
|
90
|
+
const decoded = {
|
|
81
91
|
...frame,
|
|
82
92
|
definition,
|
|
83
93
|
method: definition.name,
|
|
84
94
|
params,
|
|
95
|
+
};
|
|
96
|
+
Object.defineProperty(decoded, "_tag", {
|
|
97
|
+
value: "Notification",
|
|
98
|
+
enumerable: false,
|
|
85
99
|
});
|
|
100
|
+
return Effect.succeed(decoded);
|
|
86
101
|
}
|
|
87
102
|
export function isDecodedRpcRequest(definition, request) {
|
|
88
103
|
return request.definition === definition;
|
|
@@ -94,21 +109,36 @@ export function isDecodedRpcRequestInGroup(group, request) {
|
|
|
94
109
|
return group.byDefinition.has(request.definition);
|
|
95
110
|
}
|
|
96
111
|
export function isDecodedNotificationInGroup(group, notification) {
|
|
97
|
-
|
|
112
|
+
const { definition } = notification;
|
|
113
|
+
if (definition === undefined)
|
|
114
|
+
return false;
|
|
115
|
+
return group.byDefinition.has(definition);
|
|
98
116
|
}
|
|
99
117
|
export const bindNotificationHandler = (definition, handler) => ({ definition, handler });
|
|
100
118
|
/**
|
|
101
119
|
* Bind a tuple of notification handlers to their descriptors. Returns a
|
|
102
120
|
* dispatcher that routes each `DecodedNotification` to its handler by
|
|
103
|
-
* descriptor identity
|
|
104
|
-
* lookup with no name-string comparison on the hot path.
|
|
121
|
+
* descriptor identity, so dispatch is O(1) with no name-string compare.
|
|
105
122
|
*
|
|
106
123
|
* The internal handler map stores `unknown -> Effect<void, E, R>` because
|
|
107
|
-
* `Definitions[number]` is a union and each
|
|
108
|
-
*
|
|
109
|
-
* the
|
|
110
|
-
*
|
|
111
|
-
*
|
|
124
|
+
* `Definitions[number]` is a union and each binding is keyed to one
|
|
125
|
+
* concrete `D`. Descriptor identity proves the type-level link between
|
|
126
|
+
* the dispatched `params` and the bound handler — but it does NOT prove
|
|
127
|
+
* the runtime params actually conform for *inbound* notifications: the
|
|
128
|
+
* wire decoder is payload-opaque (required so
|
|
129
|
+
* `delivery/payload-opacity-client` and
|
|
130
|
+
* `boundary/schema-exhaustive-fuzz-client` conformance hold). Outbound
|
|
131
|
+
* bindings whose call sites already constructed `params` against the
|
|
132
|
+
* schema are safe. *Inbound* dispatchers MUST route through
|
|
133
|
+
* `client/src/ws-client.ts:validateNotificationParams` before invoking
|
|
134
|
+
* the handler. Current inbound bridges that do so:
|
|
135
|
+
* - `client/src/ws-client.ts:acceptTypedNotification` — typed
|
|
136
|
+
* `waitForNotification` promise resolver.
|
|
137
|
+
* - `client/src/service.ts:handleNotification` — subscriber-fanout
|
|
138
|
+
* dispatch into `notificationHandlers.dispatch`.
|
|
139
|
+
* The cast inside `dispatch(notification.params)` below is sound for
|
|
140
|
+
* outbound, unsound for unguarded inbound — every inbound bridge owns
|
|
141
|
+
* the validation step.
|
|
112
142
|
*/
|
|
113
143
|
export function defineEffectNotificationHandlers(group, bindings) {
|
|
114
144
|
const dispatchHandlers = new Map();
|
package/dist/rpc-groups.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-groups.js","sourceRoot":"","sources":["../src/rpc-groups.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAYtC,MAAM,aAAa,GAAG,CACpB,WAAyB,EACM,EAAE;IACjC,MAAM,GAAG,GAAG,IAAI,GAAG,EAAoB,CAAC;IACxC,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACrC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACvC,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAI,WAAyB,EAAkB,EAAE,CACrE,IAAI,GAAG,C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YACzB,MAAM,OAAO,GAAG,gBAAgB,CAAC,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;YAC9D,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;gBAC1B,OAAO,MAAM,CAAC,GAAG,CACf,IAAI,KAAK,CACP,oCAAoC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAClE,CACF,CAAC;YACJ,CAAC;YACD,OAAO,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/rpc-registry.d.ts
CHANGED
|
@@ -831,78 +831,7 @@ export declare const taskRpcMethods: readonly [RpcDefinition<"conversations/crea
|
|
|
831
831
|
}>>;
|
|
832
832
|
hasMore: import("@sinclair/typebox").TBoolean;
|
|
833
833
|
}>>];
|
|
834
|
-
export declare const appRpcMethods: readonly [RpcDefinition<"apps/
|
|
835
|
-
appId: import("@sinclair/typebox").TString;
|
|
836
|
-
invitedAgentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString & {
|
|
837
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
838
|
-
}>;
|
|
839
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
840
|
-
session: import("@sinclair/typebox").TObject<{
|
|
841
|
-
id: import("@sinclair/typebox").TString & {
|
|
842
|
-
static: import("./brands.js").BrandedString<"AppSessionId">;
|
|
843
|
-
};
|
|
844
|
-
appId: import("@sinclair/typebox").TString;
|
|
845
|
-
initiatorAgentId: import("@sinclair/typebox").TString & {
|
|
846
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
847
|
-
};
|
|
848
|
-
status: import("@sinclair/typebox").TString & {
|
|
849
|
-
static: "active" | "waiting" | "failed" | "closed";
|
|
850
|
-
};
|
|
851
|
-
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString & {
|
|
852
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
853
|
-
}>;
|
|
854
|
-
createdAt: import("@sinclair/typebox").TString;
|
|
855
|
-
closedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
856
|
-
}>;
|
|
857
|
-
}>>, RpcDefinition<"apps/closeSession", import("@sinclair/typebox").TObject<{
|
|
858
|
-
sessionId: import("@sinclair/typebox").TString;
|
|
859
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
860
|
-
closed: import("@sinclair/typebox").TBoolean;
|
|
861
|
-
}>>, RpcDefinition<"apps/getSession", import("@sinclair/typebox").TObject<{
|
|
862
|
-
sessionId: import("@sinclair/typebox").TString;
|
|
863
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
864
|
-
session: import("@sinclair/typebox").TObject<{
|
|
865
|
-
id: import("@sinclair/typebox").TString & {
|
|
866
|
-
static: import("./brands.js").BrandedString<"AppSessionId">;
|
|
867
|
-
};
|
|
868
|
-
appId: import("@sinclair/typebox").TString;
|
|
869
|
-
initiatorAgentId: import("@sinclair/typebox").TString & {
|
|
870
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
871
|
-
};
|
|
872
|
-
status: import("@sinclair/typebox").TString & {
|
|
873
|
-
static: "active" | "waiting" | "failed" | "closed";
|
|
874
|
-
};
|
|
875
|
-
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString & {
|
|
876
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
877
|
-
}>;
|
|
878
|
-
createdAt: import("@sinclair/typebox").TString;
|
|
879
|
-
closedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
880
|
-
}>;
|
|
881
|
-
}>>, RpcDefinition<"apps/listSessions", import("@sinclair/typebox").TObject<{
|
|
882
|
-
appId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
883
|
-
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
884
|
-
static: "active" | "waiting" | "closed";
|
|
885
|
-
}>;
|
|
886
|
-
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
887
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
888
|
-
sessions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
889
|
-
id: import("@sinclair/typebox").TString & {
|
|
890
|
-
static: import("./brands.js").BrandedString<"AppSessionId">;
|
|
891
|
-
};
|
|
892
|
-
appId: import("@sinclair/typebox").TString;
|
|
893
|
-
initiatorAgentId: import("@sinclair/typebox").TString & {
|
|
894
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
895
|
-
};
|
|
896
|
-
status: import("@sinclair/typebox").TString & {
|
|
897
|
-
static: "active" | "waiting" | "failed" | "closed";
|
|
898
|
-
};
|
|
899
|
-
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString & {
|
|
900
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
901
|
-
}>;
|
|
902
|
-
createdAt: import("@sinclair/typebox").TString;
|
|
903
|
-
closedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
904
|
-
}>>;
|
|
905
|
-
}>>, RpcDefinition<"apps/authorizeDispatch", import("@sinclair/typebox").TObject<{
|
|
834
|
+
export declare const appRpcMethods: readonly [RpcDefinition<"apps/authorizeDispatch", import("@sinclair/typebox").TObject<{
|
|
906
835
|
conversationId: import("@sinclair/typebox").TString & {
|
|
907
836
|
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
908
837
|
};
|
|
@@ -980,12 +909,7 @@ export declare const appRpcMethods: readonly [RpcDefinition<"apps/create", impor
|
|
|
980
909
|
decision: import("@sinclair/typebox").TLiteral<"hold">;
|
|
981
910
|
reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
982
911
|
}>]>;
|
|
983
|
-
}
|
|
984
|
-
sessionId: import("@sinclair/typebox").TString;
|
|
985
|
-
conversationId: import("@sinclair/typebox").TString & {
|
|
986
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
987
|
-
};
|
|
988
|
-
}>, import("@sinclair/typebox").TObject<{}>>];
|
|
912
|
+
}>>];
|
|
989
913
|
export declare const rpcMethods: readonly [RpcDefinition<"auth/connect", import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
990
914
|
agentKey: import("@sinclair/typebox").TString;
|
|
991
915
|
minProtocol: import("@sinclair/typebox").TString;
|
|
@@ -1814,77 +1738,6 @@ export declare const rpcMethods: readonly [RpcDefinition<"auth/connect", import(
|
|
|
1814
1738
|
createdAt: import("@sinclair/typebox").TString;
|
|
1815
1739
|
}>>;
|
|
1816
1740
|
hasMore: import("@sinclair/typebox").TBoolean;
|
|
1817
|
-
}>>, RpcDefinition<"apps/create", import("@sinclair/typebox").TObject<{
|
|
1818
|
-
appId: import("@sinclair/typebox").TString;
|
|
1819
|
-
invitedAgentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString & {
|
|
1820
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
1821
|
-
}>;
|
|
1822
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
1823
|
-
session: import("@sinclair/typebox").TObject<{
|
|
1824
|
-
id: import("@sinclair/typebox").TString & {
|
|
1825
|
-
static: import("./brands.js").BrandedString<"AppSessionId">;
|
|
1826
|
-
};
|
|
1827
|
-
appId: import("@sinclair/typebox").TString;
|
|
1828
|
-
initiatorAgentId: import("@sinclair/typebox").TString & {
|
|
1829
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
1830
|
-
};
|
|
1831
|
-
status: import("@sinclair/typebox").TString & {
|
|
1832
|
-
static: "active" | "waiting" | "failed" | "closed";
|
|
1833
|
-
};
|
|
1834
|
-
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString & {
|
|
1835
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
1836
|
-
}>;
|
|
1837
|
-
createdAt: import("@sinclair/typebox").TString;
|
|
1838
|
-
closedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1839
|
-
}>;
|
|
1840
|
-
}>>, RpcDefinition<"apps/closeSession", import("@sinclair/typebox").TObject<{
|
|
1841
|
-
sessionId: import("@sinclair/typebox").TString;
|
|
1842
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
1843
|
-
closed: import("@sinclair/typebox").TBoolean;
|
|
1844
|
-
}>>, RpcDefinition<"apps/getSession", import("@sinclair/typebox").TObject<{
|
|
1845
|
-
sessionId: import("@sinclair/typebox").TString;
|
|
1846
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
1847
|
-
session: import("@sinclair/typebox").TObject<{
|
|
1848
|
-
id: import("@sinclair/typebox").TString & {
|
|
1849
|
-
static: import("./brands.js").BrandedString<"AppSessionId">;
|
|
1850
|
-
};
|
|
1851
|
-
appId: import("@sinclair/typebox").TString;
|
|
1852
|
-
initiatorAgentId: import("@sinclair/typebox").TString & {
|
|
1853
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
1854
|
-
};
|
|
1855
|
-
status: import("@sinclair/typebox").TString & {
|
|
1856
|
-
static: "active" | "waiting" | "failed" | "closed";
|
|
1857
|
-
};
|
|
1858
|
-
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString & {
|
|
1859
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
1860
|
-
}>;
|
|
1861
|
-
createdAt: import("@sinclair/typebox").TString;
|
|
1862
|
-
closedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1863
|
-
}>;
|
|
1864
|
-
}>>, RpcDefinition<"apps/listSessions", import("@sinclair/typebox").TObject<{
|
|
1865
|
-
appId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1866
|
-
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
1867
|
-
static: "active" | "waiting" | "closed";
|
|
1868
|
-
}>;
|
|
1869
|
-
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
1870
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
1871
|
-
sessions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1872
|
-
id: import("@sinclair/typebox").TString & {
|
|
1873
|
-
static: import("./brands.js").BrandedString<"AppSessionId">;
|
|
1874
|
-
};
|
|
1875
|
-
appId: import("@sinclair/typebox").TString;
|
|
1876
|
-
initiatorAgentId: import("@sinclair/typebox").TString & {
|
|
1877
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
1878
|
-
};
|
|
1879
|
-
status: import("@sinclair/typebox").TString & {
|
|
1880
|
-
static: "active" | "waiting" | "failed" | "closed";
|
|
1881
|
-
};
|
|
1882
|
-
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString & {
|
|
1883
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
1884
|
-
}>;
|
|
1885
|
-
createdAt: import("@sinclair/typebox").TString;
|
|
1886
|
-
closedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1887
|
-
}>>;
|
|
1888
1741
|
}>>, RpcDefinition<"apps/authorizeDispatch", import("@sinclair/typebox").TObject<{
|
|
1889
1742
|
conversationId: import("@sinclair/typebox").TString & {
|
|
1890
1743
|
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
@@ -1963,12 +1816,7 @@ export declare const rpcMethods: readonly [RpcDefinition<"auth/connect", import(
|
|
|
1963
1816
|
decision: import("@sinclair/typebox").TLiteral<"hold">;
|
|
1964
1817
|
reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1965
1818
|
}>]>;
|
|
1966
|
-
}
|
|
1967
|
-
sessionId: import("@sinclair/typebox").TString;
|
|
1968
|
-
conversationId: import("@sinclair/typebox").TString & {
|
|
1969
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
1970
|
-
};
|
|
1971
|
-
}>, import("@sinclair/typebox").TObject<{}>>];
|
|
1819
|
+
}>>];
|
|
1972
1820
|
export declare const networkRpcGroup: import("./rpc-groups.js").RpcDescriptorGroup<"network", readonly [RpcDefinition<"auth/connect", import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1973
1821
|
agentKey: import("@sinclair/typebox").TString;
|
|
1974
1822
|
minProtocol: import("@sinclair/typebox").TString;
|
|
@@ -2799,78 +2647,7 @@ export declare const taskRpcGroup: import("./rpc-groups.js").RpcDescriptorGroup<
|
|
|
2799
2647
|
}>>;
|
|
2800
2648
|
hasMore: import("@sinclair/typebox").TBoolean;
|
|
2801
2649
|
}>>]>;
|
|
2802
|
-
export declare const appRpcGroup: import("./rpc-groups.js").RpcDescriptorGroup<"app", readonly [RpcDefinition<"apps/
|
|
2803
|
-
appId: import("@sinclair/typebox").TString;
|
|
2804
|
-
invitedAgentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString & {
|
|
2805
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
2806
|
-
}>;
|
|
2807
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
2808
|
-
session: import("@sinclair/typebox").TObject<{
|
|
2809
|
-
id: import("@sinclair/typebox").TString & {
|
|
2810
|
-
static: import("./brands.js").BrandedString<"AppSessionId">;
|
|
2811
|
-
};
|
|
2812
|
-
appId: import("@sinclair/typebox").TString;
|
|
2813
|
-
initiatorAgentId: import("@sinclair/typebox").TString & {
|
|
2814
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
2815
|
-
};
|
|
2816
|
-
status: import("@sinclair/typebox").TString & {
|
|
2817
|
-
static: "active" | "waiting" | "failed" | "closed";
|
|
2818
|
-
};
|
|
2819
|
-
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString & {
|
|
2820
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
2821
|
-
}>;
|
|
2822
|
-
createdAt: import("@sinclair/typebox").TString;
|
|
2823
|
-
closedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
2824
|
-
}>;
|
|
2825
|
-
}>>, RpcDefinition<"apps/closeSession", import("@sinclair/typebox").TObject<{
|
|
2826
|
-
sessionId: import("@sinclair/typebox").TString;
|
|
2827
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
2828
|
-
closed: import("@sinclair/typebox").TBoolean;
|
|
2829
|
-
}>>, RpcDefinition<"apps/getSession", import("@sinclair/typebox").TObject<{
|
|
2830
|
-
sessionId: import("@sinclair/typebox").TString;
|
|
2831
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
2832
|
-
session: import("@sinclair/typebox").TObject<{
|
|
2833
|
-
id: import("@sinclair/typebox").TString & {
|
|
2834
|
-
static: import("./brands.js").BrandedString<"AppSessionId">;
|
|
2835
|
-
};
|
|
2836
|
-
appId: import("@sinclair/typebox").TString;
|
|
2837
|
-
initiatorAgentId: import("@sinclair/typebox").TString & {
|
|
2838
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
2839
|
-
};
|
|
2840
|
-
status: import("@sinclair/typebox").TString & {
|
|
2841
|
-
static: "active" | "waiting" | "failed" | "closed";
|
|
2842
|
-
};
|
|
2843
|
-
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString & {
|
|
2844
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
2845
|
-
}>;
|
|
2846
|
-
createdAt: import("@sinclair/typebox").TString;
|
|
2847
|
-
closedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
2848
|
-
}>;
|
|
2849
|
-
}>>, RpcDefinition<"apps/listSessions", import("@sinclair/typebox").TObject<{
|
|
2850
|
-
appId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
2851
|
-
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
2852
|
-
static: "active" | "waiting" | "closed";
|
|
2853
|
-
}>;
|
|
2854
|
-
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
2855
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
2856
|
-
sessions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
2857
|
-
id: import("@sinclair/typebox").TString & {
|
|
2858
|
-
static: import("./brands.js").BrandedString<"AppSessionId">;
|
|
2859
|
-
};
|
|
2860
|
-
appId: import("@sinclair/typebox").TString;
|
|
2861
|
-
initiatorAgentId: import("@sinclair/typebox").TString & {
|
|
2862
|
-
static: import("./brands.js").BrandedString<"AgentId">;
|
|
2863
|
-
};
|
|
2864
|
-
status: import("@sinclair/typebox").TString & {
|
|
2865
|
-
static: "active" | "waiting" | "failed" | "closed";
|
|
2866
|
-
};
|
|
2867
|
-
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString & {
|
|
2868
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
2869
|
-
}>;
|
|
2870
|
-
createdAt: import("@sinclair/typebox").TString;
|
|
2871
|
-
closedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
2872
|
-
}>>;
|
|
2873
|
-
}>>, RpcDefinition<"apps/authorizeDispatch", import("@sinclair/typebox").TObject<{
|
|
2650
|
+
export declare const appRpcGroup: import("./rpc-groups.js").RpcDescriptorGroup<"app", readonly [RpcDefinition<"apps/authorizeDispatch", import("@sinclair/typebox").TObject<{
|
|
2874
2651
|
conversationId: import("@sinclair/typebox").TString & {
|
|
2875
2652
|
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
2876
2653
|
};
|
|
@@ -2948,12 +2725,7 @@ export declare const appRpcGroup: import("./rpc-groups.js").RpcDescriptorGroup<"
|
|
|
2948
2725
|
decision: import("@sinclair/typebox").TLiteral<"hold">;
|
|
2949
2726
|
reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
2950
2727
|
}>]>;
|
|
2951
|
-
}
|
|
2952
|
-
sessionId: import("@sinclair/typebox").TString;
|
|
2953
|
-
conversationId: import("@sinclair/typebox").TString & {
|
|
2954
|
-
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
2955
|
-
};
|
|
2956
|
-
}>, import("@sinclair/typebox").TObject<{}>>]>;
|
|
2728
|
+
}>>]>;
|
|
2957
2729
|
export type RpcMethodName = (typeof rpcMethods)[number]["name"];
|
|
2958
2730
|
export type RpcDefinitionFor<Name extends RpcMethodName> = RpcDefinitionForName<typeof rpcMethods, Name>;
|
|
2959
2731
|
export type RpcParams<Name extends RpcMethodName> = ParamsOf<RpcDefinitionFor<Name>>;
|
|
@@ -2963,7 +2735,9 @@ export type TaskRpcMethodName = (typeof taskRpcMethods)[number]["name"];
|
|
|
2963
2735
|
export type AppRpcMethodName = (typeof appRpcMethods)[number]["name"];
|
|
2964
2736
|
export type AnyRpcDefinition = (typeof rpcMethods)[number] & RpcDefinition<string, any, any>;
|
|
2965
2737
|
export declare const appCallbackRpcMethods: readonly [RpcDefinition<"apps/onBeforeDispatch", import("@sinclair/typebox").TObject<{
|
|
2966
|
-
|
|
2738
|
+
taskId: import("@sinclair/typebox").TString & {
|
|
2739
|
+
static: import("./brands.js").BrandedString<"TaskId">;
|
|
2740
|
+
};
|
|
2967
2741
|
appId: import("@sinclair/typebox").TString;
|
|
2968
2742
|
conversationId: import("@sinclair/typebox").TString & {
|
|
2969
2743
|
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
@@ -3051,7 +2825,9 @@ export declare const appCallbackRpcMethods: readonly [RpcDefinition<"apps/onBefo
|
|
|
3051
2825
|
reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
3052
2826
|
}>]>;
|
|
3053
2827
|
}>>, RpcDefinition<"apps/onBeforeMessageDelivery", import("@sinclair/typebox").TObject<{
|
|
3054
|
-
|
|
2828
|
+
taskId: import("@sinclair/typebox").TString & {
|
|
2829
|
+
static: import("./brands.js").BrandedString<"TaskId">;
|
|
2830
|
+
};
|
|
3055
2831
|
appId: import("@sinclair/typebox").TString;
|
|
3056
2832
|
conversationId: import("@sinclair/typebox").TString & {
|
|
3057
2833
|
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
@@ -3109,14 +2885,18 @@ export declare const appCallbackRpcMethods: readonly [RpcDefinition<"apps/onBefo
|
|
|
3109
2885
|
retry: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
3110
2886
|
}>>;
|
|
3111
2887
|
}>>, RpcDefinition<"apps/onSessionActive", import("@sinclair/typebox").TObject<{
|
|
3112
|
-
|
|
2888
|
+
taskId: import("@sinclair/typebox").TString & {
|
|
2889
|
+
static: import("./brands.js").BrandedString<"TaskId">;
|
|
2890
|
+
};
|
|
3113
2891
|
appId: import("@sinclair/typebox").TString;
|
|
3114
2892
|
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
3115
2893
|
admittedAgentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString & {
|
|
3116
2894
|
static: import("./brands.js").BrandedString<"AgentId">;
|
|
3117
2895
|
}>;
|
|
3118
2896
|
}>, import("@sinclair/typebox").TObject<{}>>, RpcDefinition<"apps/onClose", import("@sinclair/typebox").TObject<{
|
|
3119
|
-
|
|
2897
|
+
taskId: import("@sinclair/typebox").TString & {
|
|
2898
|
+
static: import("./brands.js").BrandedString<"TaskId">;
|
|
2899
|
+
};
|
|
3120
2900
|
appId: import("@sinclair/typebox").TString;
|
|
3121
2901
|
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
3122
2902
|
closedBy: import("@sinclair/typebox").TObject<{
|
|
@@ -3127,7 +2907,9 @@ export declare const appCallbackRpcMethods: readonly [RpcDefinition<"apps/onBefo
|
|
|
3127
2907
|
}>;
|
|
3128
2908
|
}>, import("@sinclair/typebox").TObject<{}>>];
|
|
3129
2909
|
export declare const appCallbackRpcGroup: import("./rpc-groups.js").RpcDescriptorGroup<"appCallback", readonly [RpcDefinition<"apps/onBeforeDispatch", import("@sinclair/typebox").TObject<{
|
|
3130
|
-
|
|
2910
|
+
taskId: import("@sinclair/typebox").TString & {
|
|
2911
|
+
static: import("./brands.js").BrandedString<"TaskId">;
|
|
2912
|
+
};
|
|
3131
2913
|
appId: import("@sinclair/typebox").TString;
|
|
3132
2914
|
conversationId: import("@sinclair/typebox").TString & {
|
|
3133
2915
|
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
@@ -3215,7 +2997,9 @@ export declare const appCallbackRpcGroup: import("./rpc-groups.js").RpcDescripto
|
|
|
3215
2997
|
reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
3216
2998
|
}>]>;
|
|
3217
2999
|
}>>, RpcDefinition<"apps/onBeforeMessageDelivery", import("@sinclair/typebox").TObject<{
|
|
3218
|
-
|
|
3000
|
+
taskId: import("@sinclair/typebox").TString & {
|
|
3001
|
+
static: import("./brands.js").BrandedString<"TaskId">;
|
|
3002
|
+
};
|
|
3219
3003
|
appId: import("@sinclair/typebox").TString;
|
|
3220
3004
|
conversationId: import("@sinclair/typebox").TString & {
|
|
3221
3005
|
static: import("./brands.js").BrandedString<"ConversationId">;
|
|
@@ -3273,14 +3057,18 @@ export declare const appCallbackRpcGroup: import("./rpc-groups.js").RpcDescripto
|
|
|
3273
3057
|
retry: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
3274
3058
|
}>>;
|
|
3275
3059
|
}>>, RpcDefinition<"apps/onSessionActive", import("@sinclair/typebox").TObject<{
|
|
3276
|
-
|
|
3060
|
+
taskId: import("@sinclair/typebox").TString & {
|
|
3061
|
+
static: import("./brands.js").BrandedString<"TaskId">;
|
|
3062
|
+
};
|
|
3277
3063
|
appId: import("@sinclair/typebox").TString;
|
|
3278
3064
|
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
3279
3065
|
admittedAgentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString & {
|
|
3280
3066
|
static: import("./brands.js").BrandedString<"AgentId">;
|
|
3281
3067
|
}>;
|
|
3282
3068
|
}>, import("@sinclair/typebox").TObject<{}>>, RpcDefinition<"apps/onClose", import("@sinclair/typebox").TObject<{
|
|
3283
|
-
|
|
3069
|
+
taskId: import("@sinclair/typebox").TString & {
|
|
3070
|
+
static: import("./brands.js").BrandedString<"TaskId">;
|
|
3071
|
+
};
|
|
3284
3072
|
appId: import("@sinclair/typebox").TString;
|
|
3285
3073
|
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
3286
3074
|
closedBy: import("@sinclair/typebox").TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-registry.d.ts","sourceRoot":"","sources":["../src/rpc-registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rpc-registry.d.ts","sourceRoot":"","sources":["../src/rpc-registry.ts"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D,KAAK,oBAAoB,CACvB,OAAO,SAAS,aAAa,CAAC,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EAC9D,IAAI,SAAS,aAAa,IACxB,OAAO,CACT,OAAO,CAAC,MAAM,CAAC,EACf,aAAa,CACX,IAAI,SAAS,aAAa,CAAC,MAAM,OAAO,CAAC,GAAG,OAAO,GAAG,KAAK,EAC3D,GAAG,EACH,GAAG,CACJ,CACF,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAA2B,GACrC,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzC,MAAM,MAAM,2BAA2B,CAAC,IAAI,SAAS,wBAAwB,IAC3E,oBAAoB,CAAC,OAAO,qBAAqB,EAAE,IAAI,CAAC,CAAC;AAE3D,MAAM,MAAM,oBAAoB,CAAC,IAAI,SAAS,wBAAwB,IACpE,QAAQ,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9C,MAAM,MAAM,oBAAoB,CAAC,IAAI,SAAS,wBAAwB,IACpE,QAAQ,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC,CAAC"}
|
package/dist/rpc-registry.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ContactsList, ContactsAdd, ContactsAccept, ContactsById, } from "./task
|
|
|
6
6
|
import { InvitesCreateAgent } from "./task/methods/invites.js";
|
|
7
7
|
import { PresenceUpdate, PresenceSubscribe } from "./task/methods/presence.js";
|
|
8
8
|
import { TasksCreate, TasksGet, TasksList, TasksClose, TasksCreateConversation, TasksCloseConversation, TasksAddParticipant, TasksRemoveParticipant, TasksStoreMessage, TasksGetMessages, TasksGetMessagesSince, } from "./task/methods/tasks.js";
|
|
9
|
-
import {
|
|
9
|
+
import { AppsAuthorizeDispatch, AppsOnBeforeDispatch, AppsOnBeforeMessageDelivery, AppsOnSessionActive, AppsOnClose, } from "./app/methods/apps.js";
|
|
10
10
|
import { SystemPing } from "./network/methods/system.js";
|
|
11
11
|
import { defineRpcGroup } from "./rpc-groups.js";
|
|
12
12
|
export const networkRpcMethods = [
|
|
@@ -54,14 +54,7 @@ export const taskRpcMethods = [
|
|
|
54
54
|
TasksGetMessages,
|
|
55
55
|
TasksGetMessagesSince,
|
|
56
56
|
];
|
|
57
|
-
export const appRpcMethods = [
|
|
58
|
-
AppsCreate,
|
|
59
|
-
AppsCloseSession,
|
|
60
|
-
AppsGetSession,
|
|
61
|
-
AppsListSessions,
|
|
62
|
-
AppsAuthorizeDispatch,
|
|
63
|
-
AppsAttachConversation,
|
|
64
|
-
];
|
|
57
|
+
export const appRpcMethods = [AppsAuthorizeDispatch];
|
|
65
58
|
export const rpcMethods = [
|
|
66
59
|
...networkRpcMethods,
|
|
67
60
|
...taskRpcMethods,
|
package/dist/rpc-registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-registry.js","sourceRoot":"","sources":["../src/rpc-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,UAAU,GACX,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,GAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,2BAA2B,EAC3B,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,YAAY,GACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,UAAU,EACV,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"rpc-registry.js","sourceRoot":"","sources":["../src/rpc-registry.ts"],"names":[],"mappings":"AAAA,OAA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AM,cAAc,GAAG;IAC5B,mBAAmB;IACnB,iBAAiB;IACjB,gBAAgB;IAChB,mBAAmB;IACnB,iBAAiB;IACjB,mBAAmB;IACnB,2BAA2B;IAC3B,8BAA8B;IAC9B,kBAAkB;IAClB,oBAAoB;IACpB,sBAAsB;IACtB,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,cAAc;IACd,YAAY;IACZ,kBAAkB;IAClB,cAAc;IACd,iBAAiB;IACjB,WAAW;IACX,QAAQ;IACR,SAAS;IACT,UAAU;IACV,uBAAuB;IACvB,sBAAsB;IACtB,mBAAmB;IACnB,sBAAsB;IACtB,iBAAiB;IACjB,gBAAgB;IAChB,qBAAqB;CACb,CAAC;AAEX,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,qBAAqB,CAAU,CAAC;AAE9D,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,GAAG,iBAAiB;IACpB,GAAG,cAAc;IACjB,GAAG,aAAa;CACR,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;AAuBhE,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,oBAAoB;IACpB,2BAA2B;IAC3B,mBAAmB;IACnB,WAAW;CACsD,CAAC;AAEpE,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAC/C,aAAa,EACb,qBAAqB,CACtB,CAAC"}
|
package/dist/schema/apps.d.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { type Static } from "@sinclair/typebox";
|
|
2
|
-
export declare const AppSessionId: import("@sinclair/typebox").TString & {
|
|
3
|
-
static: import("../brands.js").BrandedString<"AppSessionId">;
|
|
4
|
-
};
|
|
5
|
-
export declare const appSessionId: (value: string) => Static<typeof AppSessionId>;
|
|
6
|
-
export declare const AppParticipantStatusEnum: import("@sinclair/typebox").TString & {
|
|
7
|
-
static: "pending" | "admitted" | "rejected";
|
|
8
|
-
};
|
|
9
2
|
export declare const AppManifestConversationSchema: import("@sinclair/typebox").TObject<{
|
|
10
3
|
key: import("@sinclair/typebox").TString;
|
|
11
4
|
name: import("@sinclair/typebox").TString;
|
|
@@ -42,25 +35,6 @@ export declare const AppManifestSchema: import("@sinclair/typebox").TObject<{
|
|
|
42
35
|
}>>;
|
|
43
36
|
}>>;
|
|
44
37
|
}>;
|
|
45
|
-
export declare const AppSessionSchema: import("@sinclair/typebox").TObject<{
|
|
46
|
-
id: import("@sinclair/typebox").TString & {
|
|
47
|
-
static: import("../brands.js").BrandedString<"AppSessionId">;
|
|
48
|
-
};
|
|
49
|
-
appId: import("@sinclair/typebox").TString;
|
|
50
|
-
initiatorAgentId: import("@sinclair/typebox").TString & {
|
|
51
|
-
static: import("../brands.js").BrandedString<"AgentId">;
|
|
52
|
-
};
|
|
53
|
-
status: import("@sinclair/typebox").TString & {
|
|
54
|
-
static: "active" | "waiting" | "failed" | "closed";
|
|
55
|
-
};
|
|
56
|
-
conversations: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString & {
|
|
57
|
-
static: import("../brands.js").BrandedString<"ConversationId">;
|
|
58
|
-
}>;
|
|
59
|
-
createdAt: import("@sinclair/typebox").TString;
|
|
60
|
-
closedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
61
|
-
}>;
|
|
62
38
|
export type AppManifest = Static<typeof AppManifestSchema>;
|
|
63
39
|
export type AppManifestConversation = Static<typeof AppManifestConversationSchema>;
|
|
64
|
-
export type AppSession = Static<typeof AppSessionSchema>;
|
|
65
|
-
export type AppParticipantStatus = Static<typeof AppParticipantStatusEnum>;
|
|
66
40
|
//# sourceMappingURL=apps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/schema/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/schema/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,eAAO,MAAM,6BAA6B;;;;;;EAOzC,CAAC;AAaF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B7B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC3D,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAC1C,OAAO,6BAA6B,CACrC,CAAC"}
|
package/dist/schema/apps.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
|
-
import {
|
|
3
|
-
import { stringEnum, brandedId, DateTimeString } from "../helpers.js";
|
|
4
|
-
import { AgentId, ConversationId } from "./primitives.js";
|
|
5
|
-
export const AppSessionId = brandedId("AppSessionId");
|
|
6
|
-
export const appSessionId = (value) => Value.Decode(AppSessionId, value);
|
|
7
|
-
export const AppParticipantStatusEnum = stringEnum([
|
|
8
|
-
"pending",
|
|
9
|
-
"admitted",
|
|
10
|
-
"rejected",
|
|
11
|
-
]);
|
|
2
|
+
import { stringEnum } from "../helpers.js";
|
|
12
3
|
export const AppManifestConversationSchema = Type.Object({
|
|
13
4
|
key: Type.String(),
|
|
14
5
|
name: Type.String(),
|
|
@@ -36,13 +27,4 @@ export const AppManifestSchema = Type.Object({
|
|
|
36
27
|
on_session_active: Type.Optional(HookEntrySchema),
|
|
37
28
|
}, { additionalProperties: false })),
|
|
38
29
|
}, { additionalProperties: false });
|
|
39
|
-
export const AppSessionSchema = Type.Object({
|
|
40
|
-
id: AppSessionId,
|
|
41
|
-
appId: Type.String(),
|
|
42
|
-
initiatorAgentId: AgentId,
|
|
43
|
-
status: stringEnum(["waiting", "active", "failed", "closed"]),
|
|
44
|
-
conversations: Type.Record(Type.String(), ConversationId),
|
|
45
|
-
createdAt: DateTimeString,
|
|
46
|
-
closedAt: Type.Optional(DateTimeString),
|
|
47
|
-
}, { additionalProperties: false });
|
|
48
30
|
//# sourceMappingURL=apps.js.map
|
package/dist/schema/apps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.js","sourceRoot":"","sources":["../../src/schema/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"apps.js","sourceRoot":"","sources":["../../src/schema/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAC,MAAM,CACtD;IACE,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;IACnB,iBAAiB,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;CAC3E,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC;AAEF;;;GAGG;AACH,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,CACjC;IACE,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;CACvE,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAChC,CAAC;AAEF,MAAM,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