@opencode-ai/schema 0.0.0-next-17074 → 0.0.0-next-17077
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/credential.d.ts +2 -0
- package/dist/credential.js +2 -0
- package/dist/durable-event-manifest.d.ts +4 -4
- package/dist/event-manifest.d.ts +8 -8
- package/dist/integration.d.ts +1272 -186
- package/dist/integration.js +3 -26
- package/dist/prompt-input.d.ts +3 -3
- package/dist/prompt.d.ts +5 -5
- package/dist/session-event.d.ts +20 -20
- package/dist/session-message.d.ts +4 -4
- package/dist/session-pending.d.ts +10 -10
- package/dist/session-transfer.d.ts +2 -2
- package/package.json +1 -1
package/dist/credential.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const Key: Schema.Struct<{
|
|
|
20
20
|
readonly type: Schema.Literal<"key">;
|
|
21
21
|
readonly key: Schema.String;
|
|
22
22
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
23
|
+
readonly configuration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
23
24
|
}>;
|
|
24
25
|
export declare const Value: Schema.Union<readonly [Schema.Struct<{
|
|
25
26
|
readonly type: Schema.Literal<"oauth">;
|
|
@@ -32,5 +33,6 @@ export declare const Value: Schema.Union<readonly [Schema.Struct<{
|
|
|
32
33
|
readonly type: Schema.Literal<"key">;
|
|
33
34
|
readonly key: Schema.String;
|
|
34
35
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
36
|
+
readonly configuration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
35
37
|
}>]>;
|
|
36
38
|
export type Value = Schema.Schema.Type<typeof Value>;
|
package/dist/credential.js
CHANGED
|
@@ -4,6 +4,7 @@ import { optional } from "./schema.js";
|
|
|
4
4
|
import { IntegrationMethodID } from "./integration-id.js";
|
|
5
5
|
import { ascending } from "./identifier.js";
|
|
6
6
|
import { NonNegativeInt, statics } from "./schema.js";
|
|
7
|
+
import { Form } from "./form.js";
|
|
7
8
|
export const ID = Schema.String.pipe(Schema.brand("Credential.ID"), statics((schema) => ({ create: () => schema.make("cred_" + ascending()) })));
|
|
8
9
|
export const OAuth = Schema.Struct({
|
|
9
10
|
type: Schema.Literal("oauth"),
|
|
@@ -17,6 +18,7 @@ export const Key = Schema.Struct({
|
|
|
17
18
|
type: Schema.Literal("key"),
|
|
18
19
|
key: Schema.String,
|
|
19
20
|
metadata: optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
21
|
+
configuration: optional(Form.Answer),
|
|
20
22
|
}).annotate({ identifier: "Credential.Key" });
|
|
21
23
|
export const Value = Schema.Union([OAuth, Key])
|
|
22
24
|
.pipe(Schema.toTaggedUnion("type"))
|
|
@@ -736,8 +736,8 @@ export declare const SessionDurable: {
|
|
|
736
736
|
readonly uri: string;
|
|
737
737
|
};
|
|
738
738
|
readonly mime: string;
|
|
739
|
-
readonly name?: string | undefined;
|
|
740
739
|
readonly description?: string | undefined;
|
|
740
|
+
readonly name?: string | undefined;
|
|
741
741
|
readonly mention?: {
|
|
742
742
|
readonly start: number;
|
|
743
743
|
readonly end: number;
|
|
@@ -774,8 +774,8 @@ export declare const SessionDurable: {
|
|
|
774
774
|
readonly uri: string;
|
|
775
775
|
};
|
|
776
776
|
readonly mime: string;
|
|
777
|
-
readonly name?: string | undefined;
|
|
778
777
|
readonly description?: string | undefined;
|
|
778
|
+
readonly name?: string | undefined;
|
|
779
779
|
readonly mention?: {
|
|
780
780
|
readonly start: number;
|
|
781
781
|
readonly end: number;
|
|
@@ -896,8 +896,8 @@ export declare const SessionDurable: {
|
|
|
896
896
|
readonly uri: string;
|
|
897
897
|
};
|
|
898
898
|
readonly mime: string;
|
|
899
|
-
readonly name?: string | undefined;
|
|
900
899
|
readonly description?: string | undefined;
|
|
900
|
+
readonly name?: string | undefined;
|
|
901
901
|
readonly mention?: {
|
|
902
902
|
readonly start: number;
|
|
903
903
|
readonly end: number;
|
|
@@ -934,8 +934,8 @@ export declare const SessionDurable: {
|
|
|
934
934
|
readonly uri: string;
|
|
935
935
|
};
|
|
936
936
|
readonly mime: string;
|
|
937
|
-
readonly name?: string | undefined;
|
|
938
937
|
readonly description?: string | undefined;
|
|
938
|
+
readonly name?: string | undefined;
|
|
939
939
|
readonly mention?: {
|
|
940
940
|
readonly start: number;
|
|
941
941
|
readonly end: number;
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -966,8 +966,8 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
966
966
|
readonly uri: string;
|
|
967
967
|
};
|
|
968
968
|
readonly mime: string;
|
|
969
|
-
readonly name?: string | undefined;
|
|
970
969
|
readonly description?: string | undefined;
|
|
970
|
+
readonly name?: string | undefined;
|
|
971
971
|
readonly mention?: {
|
|
972
972
|
readonly start: number;
|
|
973
973
|
readonly end: number;
|
|
@@ -1004,8 +1004,8 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1004
1004
|
readonly uri: string;
|
|
1005
1005
|
};
|
|
1006
1006
|
readonly mime: string;
|
|
1007
|
-
readonly name?: string | undefined;
|
|
1008
1007
|
readonly description?: string | undefined;
|
|
1008
|
+
readonly name?: string | undefined;
|
|
1009
1009
|
readonly mention?: {
|
|
1010
1010
|
readonly start: number;
|
|
1011
1011
|
readonly end: number;
|
|
@@ -1126,8 +1126,8 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1126
1126
|
readonly uri: string;
|
|
1127
1127
|
};
|
|
1128
1128
|
readonly mime: string;
|
|
1129
|
-
readonly name?: string | undefined;
|
|
1130
1129
|
readonly description?: string | undefined;
|
|
1130
|
+
readonly name?: string | undefined;
|
|
1131
1131
|
readonly mention?: {
|
|
1132
1132
|
readonly start: number;
|
|
1133
1133
|
readonly end: number;
|
|
@@ -1164,8 +1164,8 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1164
1164
|
readonly uri: string;
|
|
1165
1165
|
};
|
|
1166
1166
|
readonly mime: string;
|
|
1167
|
-
readonly name?: string | undefined;
|
|
1168
1167
|
readonly description?: string | undefined;
|
|
1168
|
+
readonly name?: string | undefined;
|
|
1169
1169
|
readonly mention?: {
|
|
1170
1170
|
readonly start: number;
|
|
1171
1171
|
readonly end: number;
|
|
@@ -6492,8 +6492,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6492
6492
|
readonly uri: string;
|
|
6493
6493
|
};
|
|
6494
6494
|
readonly mime: string;
|
|
6495
|
-
readonly name?: string | undefined;
|
|
6496
6495
|
readonly description?: string | undefined;
|
|
6496
|
+
readonly name?: string | undefined;
|
|
6497
6497
|
readonly mention?: {
|
|
6498
6498
|
readonly start: number;
|
|
6499
6499
|
readonly end: number;
|
|
@@ -6530,8 +6530,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6530
6530
|
readonly uri: string;
|
|
6531
6531
|
};
|
|
6532
6532
|
readonly mime: string;
|
|
6533
|
-
readonly name?: string | undefined;
|
|
6534
6533
|
readonly description?: string | undefined;
|
|
6534
|
+
readonly name?: string | undefined;
|
|
6535
6535
|
readonly mention?: {
|
|
6536
6536
|
readonly start: number;
|
|
6537
6537
|
readonly end: number;
|
|
@@ -6652,8 +6652,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6652
6652
|
readonly uri: string;
|
|
6653
6653
|
};
|
|
6654
6654
|
readonly mime: string;
|
|
6655
|
-
readonly name?: string | undefined;
|
|
6656
6655
|
readonly description?: string | undefined;
|
|
6656
|
+
readonly name?: string | undefined;
|
|
6657
6657
|
readonly mention?: {
|
|
6658
6658
|
readonly start: number;
|
|
6659
6659
|
readonly end: number;
|
|
@@ -6690,8 +6690,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6690
6690
|
readonly uri: string;
|
|
6691
6691
|
};
|
|
6692
6692
|
readonly mime: string;
|
|
6693
|
-
readonly name?: string | undefined;
|
|
6694
6693
|
readonly description?: string | undefined;
|
|
6694
|
+
readonly name?: string | undefined;
|
|
6695
6695
|
readonly mention?: {
|
|
6696
6696
|
readonly start: number;
|
|
6697
6697
|
readonly end: number;
|