@sealant/sdk-next 0.40.0-next.814 → 0.40.0-next.816

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/client.js CHANGED
@@ -7,7 +7,7 @@ import { makeWorkspace, registerHarnessExecutors, toRuntimeInfo, toWorkspaceImag
7
7
  import { buildCreateWorkspaceRequest } from "./internal/blueprint.js";
8
8
  import { resolveInternalConfig } from "./internal/config.js";
9
9
  import { parseTtlSeconds } from "./internal/duration.js";
10
- import { readFeatures, requireConnectedAccountDefaults, requireConnectedAccountLoginClass, requireInferenceAllowedLogin, } from "./internal/features.js";
10
+ import { readFeatures, requireConnectedAccountDefaults, requireConnectedAccountEndpoints, requireConnectedAccountLoginClass, requireInferenceAllowedLogin, } from "./internal/features.js";
11
11
  import { imageSpecKey } from "./internal/image-key.js";
12
12
  import { buildInferenceRespondRequest, mapInferenceResponse } from "./internal/inference.js";
13
13
  import { requireSshUser } from "./internal/process-user.js";
@@ -276,6 +276,9 @@ export class Sealant {
276
276
  if (options.login !== undefined) {
277
277
  await requireConnectedAccountLoginClass(this.#ctx);
278
278
  }
279
+ if (options.endpoint !== undefined) {
280
+ await requireConnectedAccountEndpoints(this.#ctx);
281
+ }
279
282
  const wire = await this.#runtime.run(createConnectedAccountOp({
280
283
  ownerUserId: this.#ctx.config.hostLocal.ownerUserId,
281
284
  provider: options.provider,
@@ -284,6 +287,7 @@ export class Sealant {
284
287
  ...(options.accountId === undefined ? {} : { accountId: options.accountId }),
285
288
  ...(options.makeDefault === undefined ? {} : { makeDefault: options.makeDefault }),
286
289
  ...(options.login === undefined ? {} : { login: options.login }),
290
+ ...(options.endpoint === undefined ? {} : { endpoint: options.endpoint }),
287
291
  }));
288
292
  return mapConnectedAccount(wire);
289
293
  },
@@ -84,6 +84,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
84
84
  }>, import("effect/Schema").Struct<{
85
85
  readonly kind: import("effect/Schema").Literal<"api-key">;
86
86
  readonly suffix: import("effect/Schema").String;
87
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
87
88
  }>]>>;
88
89
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").ConnectedAccountNotFoundError | typeof import("@sealant/api-contracts").ConnectedAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
89
90
  readonly createConnectedAccount: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createConnectedAccount", "POST", "/v1/connected-accounts/", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -94,6 +95,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
94
95
  readonly makeDefault: import("effect/Schema").optional<import("effect/Schema").Boolean>;
95
96
  readonly login: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["subscription", "api-key"]>>;
96
97
  readonly secret: import("effect/Schema").String;
98
+ readonly endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
97
99
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
98
100
  readonly connectedAccountId: import("effect/Schema").String;
99
101
  readonly ownerUserId: import("effect/Schema").String;
@@ -119,6 +121,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
119
121
  }>, import("effect/Schema").Struct<{
120
122
  readonly kind: import("effect/Schema").Literal<"api-key">;
121
123
  readonly suffix: import("effect/Schema").String;
124
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
122
125
  }>]>>;
123
126
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").ConnectedAccountBadRequestError | typeof import("@sealant/api-contracts").ConnectedAccountNotFoundError | typeof import("@sealant/api-contracts").ConnectedAccountConflictError | typeof import("@sealant/api-contracts").ConnectedAccountServiceUnavailableError | typeof import("@sealant/api-contracts").ConnectedAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
124
127
  readonly listConnectedAccounts: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listConnectedAccounts", "GET", "/v1/connected-accounts/", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
@@ -149,6 +152,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
149
152
  }>, import("effect/Schema").Struct<{
150
153
  readonly kind: import("effect/Schema").Literal<"api-key">;
151
154
  readonly suffix: import("effect/Schema").String;
155
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
152
156
  }>]>>;
153
157
  }>>;
154
158
  readonly hasApiKeyHistory: import("effect/Schema").optional<import("effect/Schema").Boolean>;
@@ -183,6 +187,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
183
187
  }>, import("effect/Schema").Struct<{
184
188
  readonly kind: import("effect/Schema").Literal<"api-key">;
185
189
  readonly suffix: import("effect/Schema").String;
190
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
186
191
  }>]>>;
187
192
  readonly outcome: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["marked", "superseded"]>>;
188
193
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").ConnectedAccountNotFoundError | typeof import("@sealant/api-contracts").ConnectedAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
@@ -216,6 +221,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
216
221
  }>, import("effect/Schema").Struct<{
217
222
  readonly kind: import("effect/Schema").Literal<"api-key">;
218
223
  readonly suffix: import("effect/Schema").String;
224
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
219
225
  }>]>>;
220
226
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").ConnectedAccountNotFoundError | typeof import("@sealant/api-contracts").ConnectedAccountConflictError | typeof import("@sealant/api-contracts").ConnectedAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
221
227
  };
@@ -427,6 +433,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
427
433
  }>, import("effect/Schema").Struct<{
428
434
  readonly kind: import("effect/Schema").Literal<"api-key">;
429
435
  readonly suffix: import("effect/Schema").String;
436
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
430
437
  }>]>>;
431
438
  }>;
432
439
  }>>;
@@ -482,6 +489,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
482
489
  }>, import("effect/Schema").Struct<{
483
490
  readonly kind: import("effect/Schema").Literal<"api-key">;
484
491
  readonly suffix: import("effect/Schema").String;
492
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
485
493
  }>]>>;
486
494
  }>;
487
495
  }>>;
@@ -1502,6 +1510,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
1502
1510
  readonly kubernetesPersonLayout: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1503
1511
  readonly credentialPlacements: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1504
1512
  readonly connectedAccountApiKeys: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1513
+ readonly connectedAccountEndpoints: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1505
1514
  readonly inferenceAllowedLogin: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1506
1515
  }>>;
1507
1516
  }>>, never, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
@@ -2320,6 +2329,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
2320
2329
  readonly kind: import("effect/Schema").Literal<"api-key">;
2321
2330
  readonly suffix: import("effect/Schema").String;
2322
2331
  readonly keyPath: import("effect/Schema").optional<import("effect/Schema").String>;
2332
+ readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").String>, import("effect/Schema").String, never, never>, "EndpointUrl">>;
2323
2333
  }>]>;
2324
2334
  readonly pinned: import("effect/Schema").Boolean;
2325
2335
  readonly provider: import("effect/Schema").Literals<readonly ["claude", "codex", "github", "pi", "opencode"]>;
@@ -2495,6 +2505,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
2495
2505
  readonly kind: import("effect/Schema").Literal<"api-key">;
2496
2506
  readonly suffix: import("effect/Schema").String;
2497
2507
  readonly keyPath: import("effect/Schema").optional<import("effect/Schema").String>;
2508
+ readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").String>, import("effect/Schema").String, never, never>, "EndpointUrl">>;
2498
2509
  }>]>;
2499
2510
  readonly pinned: import("effect/Schema").Boolean;
2500
2511
  readonly provider: import("effect/Schema").Literals<readonly ["claude", "codex", "github", "pi", "opencode"]>;
@@ -2554,6 +2565,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
2554
2565
  readonly kind: import("effect/Schema").Literal<"api-key">;
2555
2566
  readonly suffix: import("effect/Schema").String;
2556
2567
  readonly keyPath: import("effect/Schema").optional<import("effect/Schema").String>;
2568
+ readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").String>, import("effect/Schema").String, never, never>, "EndpointUrl">>;
2557
2569
  }>]>;
2558
2570
  readonly pinned: import("effect/Schema").Boolean;
2559
2571
  readonly provider: import("effect/Schema").Literals<readonly ["claude", "codex", "github", "pi", "opencode"]>;
@@ -2760,6 +2772,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
2760
2772
  }>, import("effect/Schema").Struct<{
2761
2773
  readonly kind: import("effect/Schema").Literal<"api-key">;
2762
2774
  readonly suffix: import("effect/Schema").String;
2775
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
2763
2776
  }>]>>;
2764
2777
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").ConnectedAccountNotFoundError | typeof import("@sealant/api-contracts").ConnectedAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
2765
2778
  readonly createConnectedAccount: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createConnectedAccount", "POST", "/v1/connected-accounts/", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -2770,6 +2783,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
2770
2783
  readonly makeDefault: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2771
2784
  readonly login: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["subscription", "api-key"]>>;
2772
2785
  readonly secret: import("effect/Schema").String;
2786
+ readonly endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
2773
2787
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2774
2788
  readonly connectedAccountId: import("effect/Schema").String;
2775
2789
  readonly ownerUserId: import("effect/Schema").String;
@@ -2795,6 +2809,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
2795
2809
  }>, import("effect/Schema").Struct<{
2796
2810
  readonly kind: import("effect/Schema").Literal<"api-key">;
2797
2811
  readonly suffix: import("effect/Schema").String;
2812
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
2798
2813
  }>]>>;
2799
2814
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").ConnectedAccountBadRequestError | typeof import("@sealant/api-contracts").ConnectedAccountNotFoundError | typeof import("@sealant/api-contracts").ConnectedAccountConflictError | typeof import("@sealant/api-contracts").ConnectedAccountServiceUnavailableError | typeof import("@sealant/api-contracts").ConnectedAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
2800
2815
  readonly listConnectedAccounts: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listConnectedAccounts", "GET", "/v1/connected-accounts/", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
@@ -2825,6 +2840,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
2825
2840
  }>, import("effect/Schema").Struct<{
2826
2841
  readonly kind: import("effect/Schema").Literal<"api-key">;
2827
2842
  readonly suffix: import("effect/Schema").String;
2843
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
2828
2844
  }>]>>;
2829
2845
  }>>;
2830
2846
  readonly hasApiKeyHistory: import("effect/Schema").optional<import("effect/Schema").Boolean>;
@@ -2859,6 +2875,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
2859
2875
  }>, import("effect/Schema").Struct<{
2860
2876
  readonly kind: import("effect/Schema").Literal<"api-key">;
2861
2877
  readonly suffix: import("effect/Schema").String;
2878
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
2862
2879
  }>]>>;
2863
2880
  readonly outcome: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["marked", "superseded"]>>;
2864
2881
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").ConnectedAccountNotFoundError | typeof import("@sealant/api-contracts").ConnectedAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
@@ -2892,6 +2909,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
2892
2909
  }>, import("effect/Schema").Struct<{
2893
2910
  readonly kind: import("effect/Schema").Literal<"api-key">;
2894
2911
  readonly suffix: import("effect/Schema").String;
2912
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
2895
2913
  }>]>>;
2896
2914
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").ConnectedAccountNotFoundError | typeof import("@sealant/api-contracts").ConnectedAccountConflictError | typeof import("@sealant/api-contracts").ConnectedAccountInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
2897
2915
  };
@@ -3103,6 +3121,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
3103
3121
  }>, import("effect/Schema").Struct<{
3104
3122
  readonly kind: import("effect/Schema").Literal<"api-key">;
3105
3123
  readonly suffix: import("effect/Schema").String;
3124
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
3106
3125
  }>]>>;
3107
3126
  }>;
3108
3127
  }>>;
@@ -3158,6 +3177,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
3158
3177
  }>, import("effect/Schema").Struct<{
3159
3178
  readonly kind: import("effect/Schema").Literal<"api-key">;
3160
3179
  readonly suffix: import("effect/Schema").String;
3180
+ readonly endpointHost: import("effect/Schema").optional<import("effect/Schema").String>;
3161
3181
  }>]>>;
3162
3182
  }>;
3163
3183
  }>>;
@@ -4178,6 +4198,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
4178
4198
  readonly kubernetesPersonLayout: import("effect/Schema").optional<import("effect/Schema").Boolean>;
4179
4199
  readonly credentialPlacements: import("effect/Schema").optional<import("effect/Schema").Boolean>;
4180
4200
  readonly connectedAccountApiKeys: import("effect/Schema").optional<import("effect/Schema").Boolean>;
4201
+ readonly connectedAccountEndpoints: import("effect/Schema").optional<import("effect/Schema").Boolean>;
4181
4202
  readonly inferenceAllowedLogin: import("effect/Schema").optional<import("effect/Schema").Boolean>;
4182
4203
  }>>;
4183
4204
  }>>, never, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
@@ -4996,6 +5017,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
4996
5017
  readonly kind: import("effect/Schema").Literal<"api-key">;
4997
5018
  readonly suffix: import("effect/Schema").String;
4998
5019
  readonly keyPath: import("effect/Schema").optional<import("effect/Schema").String>;
5020
+ readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").String>, import("effect/Schema").String, never, never>, "EndpointUrl">>;
4999
5021
  }>]>;
5000
5022
  readonly pinned: import("effect/Schema").Boolean;
5001
5023
  readonly provider: import("effect/Schema").Literals<readonly ["claude", "codex", "github", "pi", "opencode"]>;
@@ -5171,6 +5193,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
5171
5193
  readonly kind: import("effect/Schema").Literal<"api-key">;
5172
5194
  readonly suffix: import("effect/Schema").String;
5173
5195
  readonly keyPath: import("effect/Schema").optional<import("effect/Schema").String>;
5196
+ readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").String>, import("effect/Schema").String, never, never>, "EndpointUrl">>;
5174
5197
  }>]>;
5175
5198
  readonly pinned: import("effect/Schema").Boolean;
5176
5199
  readonly provider: import("effect/Schema").Literals<readonly ["claude", "codex", "github", "pi", "opencode"]>;
@@ -5230,6 +5253,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
5230
5253
  readonly kind: import("effect/Schema").Literal<"api-key">;
5231
5254
  readonly suffix: import("effect/Schema").String;
5232
5255
  readonly keyPath: import("effect/Schema").optional<import("effect/Schema").String>;
5256
+ readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").String>, import("effect/Schema").String, never, never>, "EndpointUrl">>;
5233
5257
  }>]>;
5234
5258
  readonly pinned: import("effect/Schema").Boolean;
5235
5259
  readonly provider: import("effect/Schema").Literals<readonly ["claude", "codex", "github", "pi", "opencode"]>;
@@ -663,6 +663,7 @@ export declare const putWorkspaceCredentialsOp: (workspaceId: string, payload: P
663
663
  readonly kind: "api-key";
664
664
  readonly suffix: string;
665
665
  readonly keyPath?: string | undefined;
666
+ readonly baseUrl?: (string & import("effect/Brand").Brand<"EndpointUrl">) | undefined;
666
667
  };
667
668
  readonly pinned: boolean;
668
669
  readonly provider: "claude" | "codex" | "github" | "opencode" | "pi";
@@ -713,6 +714,7 @@ export declare const pruneWorkspaceCredentialsOp: (workspaceId: string, payload:
713
714
  readonly kind: "api-key";
714
715
  readonly suffix: string;
715
716
  readonly keyPath?: string | undefined;
717
+ readonly baseUrl?: (string & import("effect/Brand").Brand<"EndpointUrl">) | undefined;
716
718
  };
717
719
  readonly pinned: boolean;
718
720
  readonly provider: "claude" | "codex" | "github" | "opencode" | "pi";
@@ -763,6 +765,7 @@ export declare const listWorkspaceCredentialsOp: (workspaceId: string, query: Li
763
765
  readonly kind: "api-key";
764
766
  readonly suffix: string;
765
767
  readonly keyPath?: string | undefined;
768
+ readonly baseUrl?: (string & import("effect/Brand").Brand<"EndpointUrl">) | undefined;
766
769
  };
767
770
  readonly pinned: boolean;
768
771
  readonly provider: "claude" | "codex" | "github" | "opencode" | "pi";
@@ -1152,6 +1155,7 @@ export declare const listConnectedAccountsOp: (ownerUserId: string) => Effect.Ef
1152
1155
  } | {
1153
1156
  readonly kind: "api-key";
1154
1157
  readonly suffix: string;
1158
+ readonly endpointHost?: string | undefined;
1155
1159
  } | undefined;
1156
1160
  }[];
1157
1161
  readonly hasApiKeyHistory?: boolean | undefined;
@@ -1183,6 +1187,7 @@ export declare const createConnectedAccountOp: (payload: CreateConnectedAccountR
1183
1187
  } | {
1184
1188
  readonly kind: "api-key";
1185
1189
  readonly suffix: string;
1190
+ readonly endpointHost?: string | undefined;
1186
1191
  } | undefined;
1187
1192
  }, import("@sealant/api-contracts").BudgetExceededError | import("@sealant/api-contracts").ConnectedAccountBadRequestError | import("@sealant/api-contracts").ConnectedAccountConflictError | import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("@sealant/api-contracts").ConnectedAccountNotFoundError | import("@sealant/api-contracts").ConnectedAccountServiceUnavailableError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | Schema.SchemaError, SealantApiClient>;
1188
1193
  export declare const archiveConnectedAccountOp: (connectedAccountId: string, ownerUserId: string) => Effect.Effect<{
@@ -1212,6 +1217,7 @@ export declare const archiveConnectedAccountOp: (connectedAccountId: string, own
1212
1217
  } | {
1213
1218
  readonly kind: "api-key";
1214
1219
  readonly suffix: string;
1220
+ readonly endpointHost?: string | undefined;
1215
1221
  } | undefined;
1216
1222
  }, import("@sealant/api-contracts").BudgetExceededError | import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("@sealant/api-contracts").ConnectedAccountNotFoundError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | Schema.SchemaError, SealantApiClient>;
1217
1223
  export declare const setConnectedAccountDefaultOp: (provider: ConnectedAccountProvider, payload: SetConnectedAccountDefaultRequest) => Effect.Effect<{
@@ -1241,6 +1247,7 @@ export declare const setConnectedAccountDefaultOp: (provider: ConnectedAccountPr
1241
1247
  } | {
1242
1248
  readonly kind: "api-key";
1243
1249
  readonly suffix: string;
1250
+ readonly endpointHost?: string | undefined;
1244
1251
  } | undefined;
1245
1252
  }, import("@sealant/api-contracts").BudgetExceededError | import("@sealant/api-contracts").ConnectedAccountConflictError | import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("@sealant/api-contracts").ConnectedAccountNotFoundError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | Schema.SchemaError, SealantApiClient>;
1246
1253
  export declare const markConnectedAccountInvalidOp: (connectedAccountId: string, payload: MarkConnectedAccountInvalidRequest) => Effect.Effect<{
@@ -1270,6 +1277,7 @@ export declare const markConnectedAccountInvalidOp: (connectedAccountId: string,
1270
1277
  } | {
1271
1278
  readonly kind: "api-key";
1272
1279
  readonly suffix: string;
1280
+ readonly endpointHost?: string | undefined;
1273
1281
  } | undefined;
1274
1282
  readonly outcome?: "marked" | "superseded" | undefined;
1275
1283
  }, import("@sealant/api-contracts").BudgetExceededError | import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("@sealant/api-contracts").ConnectedAccountNotFoundError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | Schema.SchemaError, SealantApiClient>;
@@ -1317,6 +1325,7 @@ export declare const getIndexOp: () => Effect.Effect<{
1317
1325
  readonly kubernetesPersonLayout?: boolean | undefined;
1318
1326
  readonly credentialPlacements?: boolean | undefined;
1319
1327
  readonly connectedAccountApiKeys?: boolean | undefined;
1328
+ readonly connectedAccountEndpoints?: boolean | undefined;
1320
1329
  readonly inferenceAllowedLogin?: boolean | undefined;
1321
1330
  } | undefined;
1322
1331
  }, import("@sealant/api-contracts").BudgetExceededError | import("effect/http/HttpClientError").HttpClientError | import("@sealant/api-contracts").RequestRefusedError | Schema.SchemaError, SealantApiClient>;
@@ -206,6 +206,7 @@ const toPlacementLogin = (login) => login.kind === "subscription"
206
206
  kind: "api-key",
207
207
  suffix: login.suffix,
208
208
  ...(login.keyPath === undefined ? {} : { keyPath: login.keyPath }),
209
+ ...(login.baseUrl === undefined ? {} : { baseUrl: login.baseUrl }),
209
210
  };
210
211
  /** Wire → public credential home. */
211
212
  const toCredentialHome = (home) => ({
@@ -15,5 +15,6 @@ export declare const toFeatures: (index: SystemIndexResponse) => SealantFeatures
15
15
  export declare const readFeatures: (ctx: SdkContext) => Promise<SealantFeatures>;
16
16
  export declare const requireConnectedAccountDefaults: (ctx: SdkContext) => Promise<void>;
17
17
  export declare const requireConnectedAccountLoginClass: (ctx: SdkContext) => Promise<void>;
18
+ export declare const requireConnectedAccountEndpoints: (ctx: SdkContext) => Promise<void>;
18
19
  export declare const requireCredentialPlacements: (ctx: SdkContext) => Promise<void>;
19
20
  export declare const requireInferenceAllowedLogin: (ctx: SdkContext) => Promise<void>;
@@ -25,6 +25,7 @@ export const toFeatures = (index) => {
25
25
  connectedAccountLoginClass: features?.connectedAccountLoginClass === true,
26
26
  kubernetesPersonLayout: features?.kubernetesPersonLayout === true,
27
27
  connectedAccountApiKeys: features?.connectedAccountApiKeys === true,
28
+ connectedAccountEndpoints: features?.connectedAccountEndpoints === true,
28
29
  inferenceAllowedLogin: features?.inferenceAllowedLogin === true,
29
30
  };
30
31
  };
@@ -60,6 +61,12 @@ export const requireConnectedAccountLoginClass = async (ctx) => {
60
61
  throw new SealantError("This control plane cannot check a connect's login class (it does not report the feature, or could not be asked), and would store the secret whatever it is; nothing was sent.", { code: "connected-account-login-class-unsupported" });
61
62
  }
62
63
  };
64
+ export const requireConnectedAccountEndpoints = async (ctx) => {
65
+ const supported = await readFeatures(ctx).then((features) => features.connectedAccountEndpoints, () => false);
66
+ if (!supported) {
67
+ throw new SealantError("This control plane cannot keep an endpoint with a key (it does not report the feature, or could not be asked), and would send the key's requests to the provider; nothing was sent.", { code: "connected-account-endpoints-unsupported" });
68
+ }
69
+ };
63
70
  export const requireCredentialPlacements = async (ctx) => {
64
71
  const supported = await readFeatures(ctx).then((features) => features.credentialPlacements, () => false);
65
72
  if (!supported)
package/dist/types.d.ts CHANGED
@@ -15,7 +15,7 @@
15
15
  * `SealantNotImplementedError` at runtime, see `./errors.js`).
16
16
  */
17
17
  import type { ReadableStream as NodeReadableStream, WritableStream as NodeWritableStream } from "node:stream/web";
18
- import type { WorkspacePublication as WireWorkspacePublication, ConnectedAccountLogin, ConnectedAccountLoginClass, ForwardBinding, ForwardResetReason } from "@sealant/api-contracts";
18
+ import type { WorkspacePublication as WireWorkspacePublication, ConnectedAccountLogin, ConnectedAccountLoginClass, EndpointUrl, ForwardBinding, ForwardResetReason } from "@sealant/api-contracts";
19
19
  /** A request hint. Interactive requests may use the server's reserved capacity. */
20
20
  export type RequestPriority = "normal" | "interactive";
21
21
  /**
@@ -1366,7 +1366,9 @@ export interface CredentialPlacementReceipt {
1366
1366
  }
1367
1367
  /**
1368
1368
  * What a placed login spends. A key carries its last four characters; a Claude key also the
1369
- * absolute path of its file in the home, for an `apiKeyHelper` such as `cat <keyPath>`.
1369
+ * absolute path of its file in the home, for an `apiKeyHelper` such as `cat <keyPath>`. A key with
1370
+ * an endpoint carries its `baseUrl`, which nothing in the home holds: the harness's launch sets it
1371
+ * (Claude's `ANTHROPIC_BASE_URL`, a Codex model provider).
1370
1372
  */
1371
1373
  export type CredentialPlacementLogin = {
1372
1374
  readonly kind: "subscription";
@@ -1374,6 +1376,7 @@ export type CredentialPlacementLogin = {
1374
1376
  readonly kind: "api-key";
1375
1377
  readonly suffix: string;
1376
1378
  readonly keyPath?: string;
1379
+ readonly baseUrl?: EndpointUrl;
1377
1380
  };
1378
1381
  /** A receipt associated with the provider slot it occupies in this home. */
1379
1382
  export interface WorkspaceCredentialPlacementReceipt extends CredentialPlacementReceipt {
@@ -1490,6 +1493,11 @@ export interface SealantFeatures {
1490
1493
  * file an `apiKeyHelper` reads. A launch at `$HOME` still refuses a Claude key.
1491
1494
  */
1492
1495
  readonly connectedAccountApiKeys: boolean;
1496
+ /**
1497
+ * A Claude or Codex API key connects with an `endpoint`: `login.endpointHost` names its host, a
1498
+ * placement receipt carries its `baseUrl`, and inference sends the exchange there.
1499
+ */
1500
+ readonly connectedAccountEndpoints: boolean;
1493
1501
  /**
1494
1502
  * `allowedLogin` on `inference.respond()` (a key is refused when it says `subscription`),
1495
1503
  * `receipt` on its answers and errors, and inference on a Claude API key.
@@ -2273,7 +2281,7 @@ export interface ConnectedAccountCredential {
2273
2281
  readonly lastRefreshAt: string | null;
2274
2282
  readonly lastRefreshOutcome: "refreshed" | "fresh" | "failed" | null;
2275
2283
  }
2276
- export type { ConnectedAccountLogin, ConnectedAccountLoginClass };
2284
+ export type { ConnectedAccountLogin, ConnectedAccountLoginClass, EndpointUrl };
2277
2285
  export interface ConnectedAccount {
2278
2286
  readonly connectedAccountId: string;
2279
2287
  readonly ownerUserId: string;
@@ -2332,6 +2340,14 @@ interface ConnectConnectedAccountBase {
2332
2340
  * without it. Needs `features().connectedAccountDefaults`.
2333
2341
  */
2334
2342
  readonly makeDefault?: boolean;
2343
+ /**
2344
+ * Claude and Codex API keys: the base URL of a compatible endpoint to send this login's requests
2345
+ * to, such as a company gateway. An absolute `http:` or `https:` URL with no user name, password,
2346
+ * query string or fragment; a trailing slash is dropped. With one, `secret` may be any key without
2347
+ * spaces. Refused with any other login. A reconnect without it removes the endpoint. Needs
2348
+ * `features().connectedAccountEndpoints`.
2349
+ */
2350
+ readonly endpoint?: string;
2335
2351
  }
2336
2352
  /**
2337
2353
  * Which account a connect writes. A person's first account for a provider is named `default`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealant/sdk-next",
3
- "version": "0.40.0-next.814",
3
+ "version": "0.40.0-next.816",
4
4
  "description": "The fluent public SDK for Sealant — create a workspace, run a harness, replay the record.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -26,12 +26,12 @@
26
26
  "node": ">=20"
27
27
  },
28
28
  "dependencies": {
29
- "@sealant/api-contracts": "npm:@sealant/api-contracts-next@0.40.0-next.814"
29
+ "@sealant/api-contracts": "npm:@sealant/api-contracts-next@0.40.0-next.816"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "effect": "^4.0.5"
33
33
  },
34
- "gitHead": "fcc1174e4f3a10476b1f7cbbe209734f557570e6",
34
+ "gitHead": "7e75b0104c9a5c82fd16e73e1862fb5676a38351",
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  }