@sealant/api-contracts-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.
@@ -24,12 +24,16 @@ export type ConnectedAccountCredential = typeof connectedAccountCredentialSchema
24
24
  /** What the person pays with: their subscription's login, or an API key billed per token. */
25
25
  export declare const connectedAccountLoginClassSchema: Schema.Literals<readonly ["subscription", "api-key"]>;
26
26
  export type ConnectedAccountLoginClass = typeof connectedAccountLoginClassSchema.Type;
27
- /** A Claude or Codex account's login class; a key with its last four characters. */
27
+ /**
28
+ * A Claude or Codex account's login class; a key with its last four characters, and the host of the
29
+ * endpoint it sends its requests to when it has one (the endpoint's full URL is never in a summary).
30
+ */
28
31
  export declare const connectedAccountLoginSchema: Schema.Union<readonly [Schema.Struct<{
29
32
  readonly kind: Schema.Literal<"subscription">;
30
33
  }>, Schema.Struct<{
31
34
  readonly kind: Schema.Literal<"api-key">;
32
35
  readonly suffix: Schema.String;
36
+ readonly endpointHost: Schema.optional<Schema.String>;
33
37
  }>]>;
34
38
  export type ConnectedAccountLogin = typeof connectedAccountLoginSchema.Type;
35
39
  export declare const connectedAccountSummarySchema: Schema.Struct<{
@@ -68,6 +72,7 @@ export declare const connectedAccountSummarySchema: Schema.Struct<{
68
72
  }>, Schema.Struct<{
69
73
  readonly kind: Schema.Literal<"api-key">;
70
74
  readonly suffix: Schema.String;
75
+ readonly endpointHost: Schema.optional<Schema.String>;
71
76
  }>]>>;
72
77
  }>;
73
78
  export type ConnectedAccountSummary = typeof connectedAccountSummarySchema.Type;
@@ -94,6 +99,13 @@ export declare const createConnectedAccountRequestSchema: Schema.Struct<{
94
99
  */
95
100
  readonly login: Schema.optional<Schema.Literals<readonly ["subscription", "api-key"]>>;
96
101
  readonly secret: Schema.String;
102
+ /**
103
+ * Claude and Codex API keys only: the base URL of a compatible endpoint to send this login's
104
+ * requests to, such as a company gateway (an `EndpointUrl`; anything else is refused with a
105
+ * `400`). With one, the key may be any value without spaces, for an endpoint that takes no real
106
+ * key. A reconnect without it stores the login without an endpoint.
107
+ */
108
+ readonly endpoint: Schema.optional<Schema.String>;
97
109
  }>;
98
110
  export type CreateConnectedAccountRequest = typeof createConnectedAccountRequestSchema.Type;
99
111
  export declare const listConnectedAccountsQuerySchema: Schema.Struct<{
@@ -137,6 +149,7 @@ export declare const listConnectedAccountsResponseSchema: Schema.Struct<{
137
149
  }>, Schema.Struct<{
138
150
  readonly kind: Schema.Literal<"api-key">;
139
151
  readonly suffix: Schema.String;
152
+ readonly endpointHost: Schema.optional<Schema.String>;
140
153
  }>]>>;
141
154
  }>>;
142
155
  /**
@@ -191,6 +204,7 @@ export declare const markConnectedAccountInvalidResponseSchema: Schema.Struct<{
191
204
  }>, Schema.Struct<{
192
205
  readonly kind: Schema.Literal<"api-key">;
193
206
  readonly suffix: Schema.String;
207
+ readonly endpointHost: Schema.optional<Schema.String>;
194
208
  }>]>>;
195
209
  /** `marked`: the account is now invalid. `superseded`: a newer credential, left as it was. */
196
210
  readonly outcome: Schema.optional<Schema.Literals<readonly ["marked", "superseded"]>>;
@@ -274,6 +288,7 @@ export declare const ConnectedAccountsGroup: HttpApiGroup.HttpApiGroup<"connecte
274
288
  }>, Schema.Struct<{
275
289
  readonly kind: Schema.Literal<"api-key">;
276
290
  readonly suffix: Schema.String;
291
+ readonly endpointHost: Schema.optional<Schema.String>;
277
292
  }>]>>;
278
293
  }>>, Schema.toCodecJson<typeof ConnectedAccountNotFoundError | typeof ConnectedAccountInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createConnectedAccount", "POST", "/", never, never, Schema.toCodecJson<Schema.Struct<{
279
294
  readonly ownerUserId: Schema.String;
@@ -298,6 +313,13 @@ export declare const ConnectedAccountsGroup: HttpApiGroup.HttpApiGroup<"connecte
298
313
  */
299
314
  readonly login: Schema.optional<Schema.Literals<readonly ["subscription", "api-key"]>>;
300
315
  readonly secret: Schema.String;
316
+ /**
317
+ * Claude and Codex API keys only: the base URL of a compatible endpoint to send this login's
318
+ * requests to, such as a company gateway (an `EndpointUrl`; anything else is refused with a
319
+ * `400`). With one, the key may be any value without spaces, for an endpoint that takes no real
320
+ * key. A reconnect without it stores the login without an endpoint.
321
+ */
322
+ readonly endpoint: Schema.optional<Schema.String>;
301
323
  }>>, never, Schema.toCodecJson<Schema.Struct<{
302
324
  readonly connectedAccountId: Schema.String;
303
325
  readonly ownerUserId: Schema.String;
@@ -334,6 +356,7 @@ export declare const ConnectedAccountsGroup: HttpApiGroup.HttpApiGroup<"connecte
334
356
  }>, Schema.Struct<{
335
357
  readonly kind: Schema.Literal<"api-key">;
336
358
  readonly suffix: Schema.String;
359
+ readonly endpointHost: Schema.optional<Schema.String>;
337
360
  }>]>>;
338
361
  }>>, Schema.toCodecJson<typeof ConnectedAccountBadRequestError | typeof ConnectedAccountNotFoundError | typeof ConnectedAccountConflictError | typeof ConnectedAccountServiceUnavailableError | typeof ConnectedAccountInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listConnectedAccounts", "GET", "/", never, Schema.toCodecStringTree<Schema.Struct<{
339
362
  readonly ownerUserId: Schema.String;
@@ -374,6 +397,7 @@ export declare const ConnectedAccountsGroup: HttpApiGroup.HttpApiGroup<"connecte
374
397
  }>, Schema.Struct<{
375
398
  readonly kind: Schema.Literal<"api-key">;
376
399
  readonly suffix: Schema.String;
400
+ readonly endpointHost: Schema.optional<Schema.String>;
377
401
  }>]>>;
378
402
  }>>;
379
403
  /**
@@ -426,6 +450,7 @@ export declare const ConnectedAccountsGroup: HttpApiGroup.HttpApiGroup<"connecte
426
450
  }>, Schema.Struct<{
427
451
  readonly kind: Schema.Literal<"api-key">;
428
452
  readonly suffix: Schema.String;
453
+ readonly endpointHost: Schema.optional<Schema.String>;
429
454
  }>]>>;
430
455
  /** `marked`: the account is now invalid. `superseded`: a newer credential, left as it was. */
431
456
  readonly outcome: Schema.optional<Schema.Literals<readonly ["marked", "superseded"]>>;
@@ -470,6 +495,7 @@ export declare const ConnectedAccountsGroup: HttpApiGroup.HttpApiGroup<"connecte
470
495
  }>, Schema.Struct<{
471
496
  readonly kind: Schema.Literal<"api-key">;
472
497
  readonly suffix: Schema.String;
498
+ readonly endpointHost: Schema.optional<Schema.String>;
473
499
  }>]>>;
474
500
  }>>, Schema.toCodecJson<typeof ConnectedAccountNotFoundError | typeof ConnectedAccountConflictError | typeof ConnectedAccountInternalServerError>, never, never>, false>;
475
501
  export {};
@@ -39,10 +39,17 @@ export const connectedAccountCredentialSchema = Schema.Struct({
39
39
  });
40
40
  /** What the person pays with: their subscription's login, or an API key billed per token. */
41
41
  export const connectedAccountLoginClassSchema = Schema.Literals(["subscription", "api-key"]);
42
- /** A Claude or Codex account's login class; a key with its last four characters. */
42
+ /**
43
+ * A Claude or Codex account's login class; a key with its last four characters, and the host of the
44
+ * endpoint it sends its requests to when it has one (the endpoint's full URL is never in a summary).
45
+ */
43
46
  export const connectedAccountLoginSchema = Schema.Union([
44
47
  Schema.Struct({ kind: Schema.Literal("subscription") }),
45
- Schema.Struct({ kind: Schema.Literal("api-key"), suffix: NonEmptyString }),
48
+ Schema.Struct({
49
+ kind: Schema.Literal("api-key"),
50
+ suffix: NonEmptyString,
51
+ endpointHost: Schema.optional(NonEmptyString),
52
+ }),
46
53
  ]);
47
54
  export const connectedAccountSummarySchema = Schema.Struct({
48
55
  connectedAccountId: NonEmptyString,
@@ -98,6 +105,13 @@ export const createConnectedAccountRequestSchema = Schema.Struct({
98
105
  // never stored or echoed back as-is. Not trimmed here — pasted credential files are stored
99
106
  // verbatim.
100
107
  secret: Schema.String.check(Schema.isNonEmpty()),
108
+ /**
109
+ * Claude and Codex API keys only: the base URL of a compatible endpoint to send this login's
110
+ * requests to, such as a company gateway (an `EndpointUrl`; anything else is refused with a
111
+ * `400`). With one, the key may be any value without spaces, for an endpoint that takes no real
112
+ * key. A reconnect without it stores the login without an endpoint.
113
+ */
114
+ endpoint: Schema.optional(Schema.String),
101
115
  });
102
116
  export const listConnectedAccountsQuerySchema = Schema.Struct({
103
117
  ownerUserId: PersonId,