@sealant/api-contracts-next 0.40.0-next.763 → 0.40.0-next.764

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.
@@ -152,8 +152,13 @@ export declare class InferenceNotFoundError extends InferenceNotFoundError_base
152
152
  }
153
153
  declare const InferenceConflictError_base: Schema.Class<InferenceConflictError, Schema.TaggedStruct<"InferenceConflictError", {
154
154
  readonly message: Schema.String;
155
+ readonly code: Schema.optional<Schema.Literals<readonly ["connected-account-unsupported"]>>;
155
156
  }>, import("effect/Cause").YieldableError>;
156
- /** The selected account exists but is not usable (status "invalid") — reconnect it. */
157
+ /**
158
+ * The selected account exists but is not usable: its status is "invalid" (reconnect it), or, with
159
+ * `code` `connected-account-unsupported`, it is a login this control plane cannot run on yet (a
160
+ * Claude API key).
161
+ */
157
162
  export declare class InferenceConflictError extends InferenceConflictError_base {
158
163
  }
159
164
  declare const InferenceUnavailableError_base: Schema.Class<InferenceUnavailableError, Schema.TaggedStruct<"InferenceUnavailableError", {
@@ -113,8 +113,15 @@ export class InferenceBadRequestError extends Schema.TaggedError()("InferenceBad
113
113
  /** Unknown account/profile (uniform for foreign owners) or an expired/unknown inference session. */
114
114
  export class InferenceNotFoundError extends Schema.TaggedError()("InferenceNotFoundError", { message: Schema.String }, { httpApiStatus: 404 }) {
115
115
  }
116
- /** The selected account exists but is not usable (status "invalid") — reconnect it. */
117
- export class InferenceConflictError extends Schema.TaggedError()("InferenceConflictError", { message: Schema.String }, { httpApiStatus: 409 }) {
116
+ /**
117
+ * The selected account exists but is not usable: its status is "invalid" (reconnect it), or, with
118
+ * `code` `connected-account-unsupported`, it is a login this control plane cannot run on yet (a
119
+ * Claude API key).
120
+ */
121
+ export class InferenceConflictError extends Schema.TaggedError()("InferenceConflictError", {
122
+ message: Schema.String,
123
+ code: Schema.optional(Schema.Literals(["connected-account-unsupported"])),
124
+ }, { httpApiStatus: 409 }) {
118
125
  }
119
126
  export class InferenceUnavailableError extends Schema.TaggedError()("InferenceUnavailableError", { message: Schema.String }, { httpApiStatus: 503 }) {
120
127
  }
@@ -56,6 +56,12 @@ export declare const profileCredentialBindingWithAccountSchema: Schema.Struct<{
56
56
  }>;
57
57
  readonly isDefault: Schema.optional<Schema.Boolean>;
58
58
  readonly credentialRevision: Schema.optional<Schema.Int>;
59
+ readonly login: Schema.optional<Schema.Union<readonly [Schema.Struct<{
60
+ readonly kind: Schema.Literal<"subscription">;
61
+ }>, Schema.Struct<{
62
+ readonly kind: Schema.Literal<"api-key">;
63
+ readonly suffix: Schema.String;
64
+ }>]>>;
59
65
  }>;
60
66
  }>;
61
67
  export type ProfileCredentialBindingWithAccount = typeof profileCredentialBindingWithAccountSchema.Type;
@@ -84,6 +90,12 @@ export declare const listProfileCredentialBindingsResponseSchema: Schema.Struct<
84
90
  }>;
85
91
  readonly isDefault: Schema.optional<Schema.Boolean>;
86
92
  readonly credentialRevision: Schema.optional<Schema.Int>;
93
+ readonly login: Schema.optional<Schema.Union<readonly [Schema.Struct<{
94
+ readonly kind: Schema.Literal<"subscription">;
95
+ }>, Schema.Struct<{
96
+ readonly kind: Schema.Literal<"api-key">;
97
+ readonly suffix: Schema.String;
98
+ }>]>>;
87
99
  }>;
88
100
  }>>;
89
101
  }>;
@@ -148,6 +160,12 @@ export declare const ProfilesGroup: HttpApiGroup.HttpApiGroup<"profiles", HttpAp
148
160
  }>;
149
161
  readonly isDefault: Schema.optional<Schema.Boolean>;
150
162
  readonly credentialRevision: Schema.optional<Schema.Int>;
163
+ readonly login: Schema.optional<Schema.Union<readonly [Schema.Struct<{
164
+ readonly kind: Schema.Literal<"subscription">;
165
+ }>, Schema.Struct<{
166
+ readonly kind: Schema.Literal<"api-key">;
167
+ readonly suffix: Schema.String;
168
+ }>]>>;
151
169
  }>;
152
170
  }>>;
153
171
  }>>, Schema.toCodecJson<typeof ProfileNotFoundError | typeof ProfileInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listProfiles", "GET", "/", never, Schema.toCodecStringTree<Schema.Struct<{
@@ -200,6 +218,12 @@ export declare const ProfilesGroup: HttpApiGroup.HttpApiGroup<"profiles", HttpAp
200
218
  }>;
201
219
  readonly isDefault: Schema.optional<Schema.Boolean>;
202
220
  readonly credentialRevision: Schema.optional<Schema.Int>;
221
+ readonly login: Schema.optional<Schema.Union<readonly [Schema.Struct<{
222
+ readonly kind: Schema.Literal<"subscription">;
223
+ }>, Schema.Struct<{
224
+ readonly kind: Schema.Literal<"api-key">;
225
+ readonly suffix: Schema.String;
226
+ }>]>>;
203
227
  }>;
204
228
  }>>;
205
229
  }>>, Schema.toCodecJson<typeof ProfileBadRequestError | typeof ProfileNotFoundError | typeof ProfileConflictError | typeof ProfileInternalServerError>, never, never>, false>;
@@ -52,6 +52,12 @@ export declare const systemIndexResponseSchema: Schema.Struct<{
52
52
  * it, a connect takes `accountId` and `makeDefault`, and summaries carry `isDefault`.
53
53
  */
54
54
  readonly connectedAccountDefaults: Schema.optional<Schema.Boolean>;
55
+ /**
56
+ * A connect takes `login` and refuses a secret of the other login class, Claude and Codex
57
+ * API keys connect beside a subscription, summaries carry `login`, and the list carries
58
+ * `hasApiKeyHistory`. Without it, `login` on a connect is dropped unread.
59
+ */
60
+ readonly connectedAccountLoginClass: Schema.optional<Schema.Boolean>;
55
61
  /**
56
62
  * `ownerMap` on a capture source is taken on Kubernetes (runc): the Pod lets each person's
57
63
  * `sudo` work, and the Kubernetes image builder records the image probe the launch checks.
@@ -136,6 +142,12 @@ export declare const SystemGroup: HttpApiGroup.HttpApiGroup<"system", HttpApiEnd
136
142
  * it, a connect takes `accountId` and `makeDefault`, and summaries carry `isDefault`.
137
143
  */
138
144
  readonly connectedAccountDefaults: Schema.optional<Schema.Boolean>;
145
+ /**
146
+ * A connect takes `login` and refuses a secret of the other login class, Claude and Codex
147
+ * API keys connect beside a subscription, summaries carry `login`, and the list carries
148
+ * `hasApiKeyHistory`. Without it, `login` on a connect is dropped unread.
149
+ */
150
+ readonly connectedAccountLoginClass: Schema.optional<Schema.Boolean>;
139
151
  /**
140
152
  * `ownerMap` on a capture source is taken on Kubernetes (runc): the Pod lets each person's
141
153
  * `sudo` work, and the Kubernetes image builder records the image probe the launch checks.
@@ -53,6 +53,12 @@ export const systemIndexResponseSchema = Schema.Struct({
53
53
  * it, a connect takes `accountId` and `makeDefault`, and summaries carry `isDefault`.
54
54
  */
55
55
  connectedAccountDefaults: Schema.optional(Schema.Boolean),
56
+ /**
57
+ * A connect takes `login` and refuses a secret of the other login class, Claude and Codex
58
+ * API keys connect beside a subscription, summaries carry `login`, and the list carries
59
+ * `hasApiKeyHistory`. Without it, `login` on a connect is dropped unread.
60
+ */
61
+ connectedAccountLoginClass: Schema.optional(Schema.Boolean),
56
62
  /**
57
63
  * `ownerMap` on a capture source is taken on Kubernetes (runc): the Pod lets each person's
58
64
  * `sudo` work, and the Kubernetes image builder records the image probe the launch checks.
@@ -793,7 +793,8 @@ export type InspectWorkspaceImageResponse = typeof inspectWorkspaceImageResponse
793
793
  * else's) and `connected-account-invalid` (`WorkspaceConflictError`, 409: the account is marked
794
794
  * invalid, or holds an unusable credential; reconnect it) and `connected-account-unsupported`
795
795
  * (`WorkspaceConflictError`, 409: the account cannot serve what was asked, as a Codex API key cannot
796
- * be pi's or opencode's ChatGPT login). Nothing was written either way.
796
+ * be pi's or opencode's ChatGPT login, and a Claude API key cannot be placed yet). Nothing was
797
+ * written either way.
797
798
  */
798
799
  export declare const connectedAccountRefusalCodes: readonly ["connected-account-missing", "connected-account-invalid", "connected-account-unsupported"];
799
800
  export type ConnectedAccountRefusalCode = (typeof connectedAccountRefusalCodes)[number];
@@ -1031,11 +1032,12 @@ export type ListWorkspaceCredentialsResponse = typeof listWorkspaceCredentialsRe
1031
1032
  * `workspace-not-running` (no ready executor), `connected-account-invalid` (a named account is
1032
1033
  * marked invalid or unusable: reconnect it; `provider` names its provider),
1033
1034
  * `connected-account-unsupported` (a Codex account named for pi or opencode is not a ChatGPT
1034
- * login), `home-held` (the home holds another person's logins: release it
1035
- * first; `/root` while the launch's own logins are at `$HOME`, or for anyone but the workspace's
1036
- * owner), `home-unusable` (the home does not exist, is not a directory, is reached through a
1037
- * symbolic link, or a login directory in it links outside it), `home-busy` (another write into the
1038
- * home, or too many into this workspace, is still running: nothing was done, try again).
1035
+ * login, or a Claude account is an API key, which cannot be placed yet), `home-held` (the home
1036
+ * holds another person's logins: release it first; `/root` while the launch's own logins are at
1037
+ * `$HOME`, or for anyone but the workspace's owner), `home-unusable` (the home does not exist, is
1038
+ * not a directory, is reached through a symbolic link, or a login directory in it links outside
1039
+ * it), `home-busy` (another write into the home, or too many into this workspace, is still
1040
+ * running: nothing was done, try again).
1039
1041
  */
1040
1042
  export declare const workspaceCredentialsConflictCodes: readonly ["workspace-not-running", "connected-account-invalid", "connected-account-unsupported", "home-held", "home-unusable", "home-busy"];
1041
1043
  export type WorkspaceCredentialsConflictCode = (typeof workspaceCredentialsConflictCodes)[number];
@@ -663,7 +663,8 @@ export const inspectWorkspaceImageResponseSchema = Schema.Struct({
663
663
  * else's) and `connected-account-invalid` (`WorkspaceConflictError`, 409: the account is marked
664
664
  * invalid, or holds an unusable credential; reconnect it) and `connected-account-unsupported`
665
665
  * (`WorkspaceConflictError`, 409: the account cannot serve what was asked, as a Codex API key cannot
666
- * be pi's or opencode's ChatGPT login). Nothing was written either way.
666
+ * be pi's or opencode's ChatGPT login, and a Claude API key cannot be placed yet). Nothing was
667
+ * written either way.
667
668
  */
668
669
  export const connectedAccountRefusalCodes = [
669
670
  "connected-account-missing",
@@ -803,11 +804,12 @@ export const listWorkspaceCredentialsResponseSchema = Schema.Struct({
803
804
  * `workspace-not-running` (no ready executor), `connected-account-invalid` (a named account is
804
805
  * marked invalid or unusable: reconnect it; `provider` names its provider),
805
806
  * `connected-account-unsupported` (a Codex account named for pi or opencode is not a ChatGPT
806
- * login), `home-held` (the home holds another person's logins: release it
807
- * first; `/root` while the launch's own logins are at `$HOME`, or for anyone but the workspace's
808
- * owner), `home-unusable` (the home does not exist, is not a directory, is reached through a
809
- * symbolic link, or a login directory in it links outside it), `home-busy` (another write into the
810
- * home, or too many into this workspace, is still running: nothing was done, try again).
807
+ * login, or a Claude account is an API key, which cannot be placed yet), `home-held` (the home
808
+ * holds another person's logins: release it first; `/root` while the launch's own logins are at
809
+ * `$HOME`, or for anyone but the workspace's owner), `home-unusable` (the home does not exist, is
810
+ * not a directory, is reached through a symbolic link, or a login directory in it links outside
811
+ * it), `home-busy` (another write into the home, or too many into this workspace, is still
812
+ * running: nothing was done, try again).
811
813
  */
812
814
  export const workspaceCredentialsConflictCodes = [
813
815
  "workspace-not-running",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealant/api-contracts-next",
3
- "version": "0.40.0-next.763",
3
+ "version": "0.40.0-next.764",
4
4
  "description": "Contract-first HTTP API definitions for Sealant services",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "peerDependencies": {
37
37
  "effect": "^4.0.5"
38
38
  },
39
- "gitHead": "c741e10743b2c553b526f93565c256fe8fa4bd8b",
39
+ "gitHead": "4d306e5cd66c40f162f7346370edd82930c1bc02",
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  }