@opencode/schema 0.0.0-dev-1017 → 0.0.0-dev-1018

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.
@@ -31,12 +31,22 @@ export declare const Event: {
31
31
  create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
32
32
  }>, never, never>;
33
33
  }>>, never, never>;
34
- readonly data: Schema.Struct<{}>;
34
+ readonly data: Schema.Struct<{
35
+ readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
36
+ readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
37
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
38
+ };
39
+ }>;
35
40
  }> & {
36
41
  type: "credential.updated";
37
42
  durability: "ephemeral";
38
43
  durable: undefined;
39
- data: Schema.Struct<{}>;
44
+ data: Schema.Struct<{
45
+ readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
46
+ readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
47
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
48
+ };
49
+ }>;
40
50
  };
41
51
  Switched: Schema.Struct<{
42
52
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -107,12 +117,22 @@ export declare const Event: {
107
117
  create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
108
118
  }>, never, never>;
109
119
  }>>, never, never>;
110
- readonly data: Schema.Struct<{}>;
120
+ readonly data: Schema.Struct<{
121
+ readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
122
+ readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
123
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
124
+ };
125
+ }>;
111
126
  }> & {
112
127
  type: "credential.updated";
113
128
  durability: "ephemeral";
114
129
  durable: undefined;
115
- data: Schema.Struct<{}>;
130
+ data: Schema.Struct<{
131
+ readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
132
+ readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
133
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
134
+ };
135
+ }>;
116
136
  }, Schema.Struct<{
117
137
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
118
138
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -6,9 +6,10 @@ import { IntegrationID, IntegrationMethodID } from "./integration-id.js";
6
6
  import { ascending } from "./identifier.js";
7
7
  import { NonNegativeInt, statics } from "./schema.js";
8
8
  export const ID = Schema.String.pipe(Schema.brand("Credential.ID"), Schema.annotate({ identifier: "Credential.ID" }), statics((schema) => ({ create: () => schema.make("cred_" + ascending()) })));
9
+ // A login was added, renamed or removed. Every change is to exactly one credential.
9
10
  const Updated = ephemeral({
10
11
  type: "credential.updated",
11
- schema: {},
12
+ schema: { integrationID: IntegrationID, credentialID: ID },
12
13
  });
13
14
  const Switched = ephemeral({
14
15
  type: "credential.switched",
@@ -92,12 +92,22 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
92
92
  create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
93
93
  }>, never, never>;
94
94
  }>>, never, never>;
95
- readonly data: Schema.Struct<{}>;
95
+ readonly data: Schema.Struct<{
96
+ readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
97
+ readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
98
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
99
+ };
100
+ }>;
96
101
  }> & {
97
102
  type: "credential.updated";
98
103
  durability: "ephemeral";
99
104
  durable: undefined;
100
- data: Schema.Struct<{}>;
105
+ data: Schema.Struct<{
106
+ readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
107
+ readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
108
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
109
+ };
110
+ }>;
101
111
  }, Schema.Struct<{
102
112
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
103
113
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -6466,12 +6476,22 @@ export declare const Definitions: readonly [Schema.Struct<{
6466
6476
  create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6467
6477
  }>, never, never>;
6468
6478
  }>>, never, never>;
6469
- readonly data: Schema.Struct<{}>;
6479
+ readonly data: Schema.Struct<{
6480
+ readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
6481
+ readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
6482
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
6483
+ };
6484
+ }>;
6470
6485
  }> & {
6471
6486
  type: "credential.updated";
6472
6487
  durability: "ephemeral";
6473
6488
  durable: undefined;
6474
- data: Schema.Struct<{}>;
6489
+ data: Schema.Struct<{
6490
+ readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
6491
+ readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
6492
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
6493
+ };
6494
+ }>;
6475
6495
  }, Schema.Struct<{
6476
6496
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6477
6497
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/schema",
4
- "version": "0.0.0-dev-1017",
4
+ "version": "0.0.0-dev-1018",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {