@jini-ai/core 0.6.23 → 0.7.0

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/approval.d.ts +34 -3
  3. package/dist/approval.js +27 -4
  4. package/dist/batch-tool-inputs.d.ts +13 -0
  5. package/dist/batch-tool-inputs.js +37 -6
  6. package/dist/contracts/cards.d.ts +382 -0
  7. package/dist/contracts/cards.js +2 -0
  8. package/dist/contracts/content-types.d.ts +32 -0
  9. package/dist/contracts/content-types.js +3 -0
  10. package/dist/contracts/credentials.d.ts +402 -0
  11. package/dist/contracts/credentials.js +2 -0
  12. package/dist/contracts/hosted-mcp/config.d.ts +253 -0
  13. package/dist/contracts/hosted-mcp/config.js +2 -0
  14. package/dist/contracts/hosted-mcp/record.d.ts +198 -0
  15. package/dist/contracts/hosted-mcp/record.js +2 -0
  16. package/dist/contracts/hosted-mcp/vocabulary.d.ts +14 -0
  17. package/dist/contracts/hosted-mcp/vocabulary.js +2 -0
  18. package/dist/contracts/hosted-mcp.d.ts +5 -0
  19. package/dist/contracts/hosted-mcp.js +2 -0
  20. package/dist/contracts/mail/adapter-module.d.ts +31 -0
  21. package/dist/contracts/mail/adapter-module.js +2 -0
  22. package/dist/contracts/mail/engine-contracts.d.ts +130 -0
  23. package/dist/contracts/mail/engine-contracts.js +2 -0
  24. package/dist/contracts/mail/ports.d.ts +93 -0
  25. package/dist/contracts/mail/ports.js +3 -0
  26. package/dist/contracts/mail/provider.d.ts +84 -0
  27. package/dist/contracts/mail/provider.js +2 -0
  28. package/dist/contracts/mail.d.ts +128 -0
  29. package/dist/contracts/mail.js +3 -0
  30. package/dist/contracts/oauth/details.d.ts +46 -0
  31. package/dist/contracts/oauth/details.js +2 -0
  32. package/dist/contracts/oauth/flow.d.ts +253 -0
  33. package/dist/contracts/oauth/flow.js +2 -0
  34. package/dist/contracts/oauth.d.ts +139 -0
  35. package/dist/contracts/oauth.js +2 -0
  36. package/dist/contracts/vault/ports.d.ts +34 -0
  37. package/dist/contracts/vault/ports.js +2 -0
  38. package/dist/contracts/vault/records.d.ts +149 -0
  39. package/dist/contracts/vault/records.js +2 -0
  40. package/dist/contracts/vault/vendor-credential-sets.d.ts +75 -0
  41. package/dist/contracts/vault/vendor-credential-sets.js +7 -0
  42. package/dist/contracts/vault.d.ts +14 -0
  43. package/dist/contracts/vault.js +2 -0
  44. package/dist/index.d.ts +1 -0
  45. package/dist/primitives/http.d.ts +2 -0
  46. package/dist/settings/agent-value-write-tools.d.ts +3 -1
  47. package/dist/settings/agent-value-write-tools.js +11 -4
  48. package/dist/settings/tool-registrations.js +1 -1
  49. package/dist/surface-cards.d.ts +2 -0
  50. package/dist/surface-cards.js +2 -0
  51. package/dist/text/descriptor-i18n.d.ts +24 -0
  52. package/dist/text/descriptor-i18n.js +65 -0
  53. package/dist/text/index.d.ts +2 -0
  54. package/dist/text/index.js +1 -0
  55. package/dist/tool-metadata-types.d.ts +6 -0
  56. package/dist/user-facing-error.d.ts +28 -1
  57. package/dist/user-facing-error.js +87 -4
  58. package/package.json +44 -2
@@ -0,0 +1,32 @@
1
+ /** @agent-note Types only. The runtime parts come from the host; this area usually from `@jini-ai/cms`. */
2
+ export type IndexableFieldKind = "text" | "integer" | "real" | "boolean" | "datetime" | "relation";
3
+ export type ContentTypeFieldKind = "text" | "integer" | "real" | "boolean" | "datetime" | "relation" | "json";
4
+ export interface ContentTypeFieldDef {
5
+ name: string;
6
+ kind: ContentTypeFieldKind;
7
+ required: boolean;
8
+ queryable: boolean;
9
+ }
10
+ export type ContentTypeStatus = "active" | "deprecated" | "tombstone";
11
+ /** Sample schema, expressed as the package's in-memory record shape (repo-agnostic). */
12
+ export interface ContentTypeRecord {
13
+ workspaceId: string;
14
+ key: string;
15
+ label: string;
16
+ fields: ContentTypeFieldDef[];
17
+ status: ContentTypeStatus;
18
+ version: number;
19
+ tombstonedAt?: string | null;
20
+ /**
21
+ * The `fieldsJson.ext.<owner>` namespace every entry of this type is stored under. Absent means
22
+ * `"site"`, so every type registered before this property existed keeps its envelope unchanged.
23
+ * It belongs to the TYPE, not to whoever writes an entry: `entries/write-service.ts` reads it off
24
+ * the owning type, so no caller can validate a payload under the wrong namespace and mint a row
25
+ * the type's real reader can never parse (found 2026-09-19: the generic entries route passed no
26
+ * owner and wrote `ext.site` rows into a widget-owned type). Set only by code that registers its
27
+ * own type (`registerContentType`'s optional `owner`); the agent tool and HTTP surfaces never
28
+ * pass it.
29
+ */
30
+ owner?: string;
31
+ }
32
+ //# sourceMappingURL=content-types.d.ts.map
@@ -0,0 +1,3 @@
1
+ /** @agent-note Types only. The runtime parts come from the host; this area usually from `@jini-ai/cms`. */
2
+ export {};
3
+ //# sourceMappingURL=content-types.js.map
@@ -0,0 +1,402 @@
1
+ /** @agent-note Types only. The runtime parts come from the host; this area usually from `@jini-ai/agent-plugins`. */
2
+ import type { SealedSecret, SecretSealerPort, VaultPutRecord, VaultRepoPort } from "./vault.js";
3
+ /** Extra public connection metadata, entered directly on the secure card. */
4
+ export interface PluginCredentialField {
5
+ readonly name: string;
6
+ readonly label: string;
7
+ readonly hint?: string;
8
+ readonly required?: boolean;
9
+ }
10
+ /** One plugin-declared key card, already resolved to the saved row it fills. */
11
+ export interface PluginCredentialCard {
12
+ /** Declaring installed plugin, supplied by the trusted contribution loader. */
13
+ readonly pluginId?: string;
14
+ /** Provider id the assistant passes as `target` (e.g. a mail provider's id). */
15
+ readonly providerId: string;
16
+ /** API credential label, or the connection name for a domain-owned save. */
17
+ readonly label: string;
18
+ /** Explicit ownership of this API card's exact label; conflicting plugins are refused at merge. */
19
+ readonly ownedApiLabel?: string;
20
+ readonly category: string;
21
+ readonly baseUrl: string;
22
+ readonly title: string;
23
+ readonly intro?: string;
24
+ readonly helpUrl?: string;
25
+ readonly helpLabel?: string;
26
+ /** Hint under the key field, e.g. which access the key needs. */
27
+ readonly keyHint?: string;
28
+ /** Plain-text purposes for people and the assistant; never selects or authorizes a key in code. */
29
+ readonly usedFor?: readonly string[];
30
+ readonly fields?: readonly PluginCredentialField[];
31
+ /** Optional read-only GET before sealing; absolute HTTPS on the declared baseUrl origin. */
32
+ readonly probeUrl?: string;
33
+ readonly additionalHosts?: readonly string[];
34
+ /** Absent preserves the original mail/API save path. `provider-settings` saves a provider plugin's
35
+ * declared settings (saveTarget = that plugin's id; see provider-settings-card.ts). */
36
+ readonly saveKind?: "api" | "publish-host" | "source-control" | "agent-plugin-token" | "oauth" | "provider-settings";
37
+ readonly saveTarget?: string;
38
+ /** Permissions explained on a hosted sign-in card; never grants authority itself. */
39
+ readonly permissions?: string;
40
+ }
41
+ /** @agent-note Types only. A safe token hint: the saved token's length and, for long tokens only,
42
+ * its last four characters. Computed by the vault when sealing; reading it never decrypts. */
43
+ export interface CredentialSetTokenHint {
44
+ length: number;
45
+ last4: string | null;
46
+ }
47
+ /** @agent-note The store keyring as credential-set hosts supply it: zero-argument `activeKey`. A keyring
48
+ * whose `activeKey` takes the vault port's required options argument (`KeyringPort`) does NOT
49
+ * satisfy it directly; the host adapts it (`activeKey: () => keyring.activeKey({})`). Only key
50
+ * handles cross this port, never key bytes. */
51
+ export interface CredentialSetKeyringPort {
52
+ activeKey(): Promise<{
53
+ readonly keyId: string;
54
+ }>;
55
+ deriveSigningSecret(input: {
56
+ workspaceId: string;
57
+ subscriptionId: string;
58
+ version: number;
59
+ }): Promise<Uint8Array>;
60
+ derive(input: {
61
+ workspaceId: string;
62
+ purpose: string;
63
+ info: string;
64
+ }): Promise<Uint8Array>;
65
+ }
66
+ /** @agent-note The secret half a caller supplies. Only `token` is sealed; `username` is plaintext
67
+ * account metadata that the store keeps in row metadata, never inside the sealed payload. */
68
+ export interface CredentialSetConnectionInput {
69
+ readonly token: string;
70
+ readonly username?: string;
71
+ }
72
+ /**
73
+ * @agent-note One saved credential set as the store sees it. `vaultRecord` and
74
+ * `vaultExpectedRevision` are private adapter context: hosts MUST attach them non-enumerable
75
+ * (`Object.defineProperty`) so they never serialize, and MUST write them back through the SAME
76
+ * vault object with the SAME expected revision (compare-and-swap). Ownership (owner key, null
77
+ * principal/binding/provider, stored kind and therefore the AAD) is checked against host-trusted
78
+ * values on every read; it is never reconstructed from row data or model input.
79
+ * `C` is the host's category id union (validated by the host's own list).
80
+ */
81
+ export interface CredentialSetRecord<C extends string = string> {
82
+ readonly worksFor?: readonly string[];
83
+ /** Non-enumerable adapter context; not part of any public summary. */
84
+ readonly vaultRecord?: VaultPutRecord;
85
+ readonly vaultExpectedRevision?: number | null;
86
+ readonly workspaceId: string;
87
+ readonly id: string;
88
+ readonly label: string;
89
+ readonly category: C;
90
+ readonly baseUrl: string;
91
+ /** Normalized origins (`https://host[:port]`) beyond `baseUrl`; empty, never null. */
92
+ readonly additionalHosts: readonly string[];
93
+ /** Absent when the credential has no username (never `""`). */
94
+ readonly username?: string;
95
+ readonly sealed: SealedSecret;
96
+ readonly createdAt: string;
97
+ readonly updatedAt: string;
98
+ }
99
+ /** @agent-note Where a row lives: the site's own vault, or a project (owner) store shared by sites. */
100
+ export type CredentialSetScope = "site" | "project";
101
+ /**
102
+ * @agent-note Safe read model. Built from metadata only: listing/describing NEVER opens a sealed
103
+ * envelope and has no field able to carry a token, `sealed` or private context. `scope` appears only
104
+ * where the host attached a project store.
105
+ */
106
+ export interface CredentialSetSummary<C extends string = string> {
107
+ readonly credentialType: "custom";
108
+ readonly worksFor: string[];
109
+ readonly tokenHint?: CredentialSetTokenHint | null;
110
+ readonly id: string;
111
+ readonly label: string;
112
+ readonly category: C;
113
+ readonly baseUrl: string;
114
+ readonly additionalHosts: readonly string[];
115
+ /** Omitted entirely (never `""`) when the credential has no saved username. */
116
+ readonly username?: string;
117
+ readonly configured: true;
118
+ readonly scope?: CredentialSetScope;
119
+ readonly createdAt: string;
120
+ readonly updatedAt: string;
121
+ }
122
+ /**
123
+ * @agent-note The project half of a store, attached only by the host's composition root. Sites read
124
+ * their own rows first and fall back to explicitly granted project rows (site rows of the same label
125
+ * override). `replaceRepo` is for a trusted human replacement only and must recheck the site grant at
126
+ * commit; `inventoryRepo` is owner-session metadata inventory that cannot resolve, open or mutate;
127
+ * `createRepo` is a create-only owner port. Project rows open only with this half's own sealer/keyring.
128
+ */
129
+ export interface CredentialSetProjectScope<C extends string = string> {
130
+ readonly workspaceId: string;
131
+ readonly repo: CredentialSetRepoPort<C>;
132
+ /** Trusted human replacement retains the site-grant boundary. */
133
+ readonly replaceRepo?: CredentialSetRepoPort<C>;
134
+ /** Owner-session inventory only; cannot resolve, open or mutate a credential. */
135
+ readonly inventoryRepo?: Pick<CredentialSetRepoPort<C>, "listByWorkspace">;
136
+ readonly createRepo?: CredentialSetRepoPort<C>;
137
+ readonly sealer: SecretSealerPort;
138
+ readonly keyring: CredentialSetKeyringPort;
139
+ }
140
+ /**
141
+ * @agent-note Workspace-scoped persistence for credential-set records. Writes are compare-and-swap
142
+ * on the record's private vault context and must join the host transaction where the adapter
143
+ * supports one; a failed write publishes nothing. `findByLabel`, when present, must be an indexed
144
+ * lookup that keeps the same authorization as `findById` (it replaces a metadata scan, never widens
145
+ * it). `vault`, when present, is the exact vault object the rows were read from.
146
+ */
147
+ export interface CredentialSetRepoPort<C extends string = string> {
148
+ readonly vault?: VaultRepoPort;
149
+ /** The project store this site's rows fall back to; absent = site only. */
150
+ readonly project?: CredentialSetProjectScope<C>;
151
+ insert(record: CredentialSetRecord<C>): Promise<void>;
152
+ /** Full-row replace by `(workspaceId, id)`. */
153
+ update(record: CredentialSetRecord<C>): Promise<void>;
154
+ findByLabel?(input: {
155
+ workspaceId: string;
156
+ label: string;
157
+ }): Promise<CredentialSetRecord<C> | null>;
158
+ findById(input: {
159
+ workspaceId: string;
160
+ id: string;
161
+ }): Promise<CredentialSetRecord<C> | null>;
162
+ listByWorkspace(input: {
163
+ workspaceId: string;
164
+ }): Promise<CredentialSetRecord<C>[]>;
165
+ /** Idempotent: no-op when no row exists for `(workspaceId, id)`. */
166
+ delete(input: {
167
+ workspaceId: string;
168
+ id: string;
169
+ }): Promise<void>;
170
+ }
171
+ /** @agent-note Authentication facts about a 401/403, never the token, header or username value.
172
+ * `hint` is a hedged hypothesis; `remedyToolId` is a tool id the HOST registered. */
173
+ export interface CredentialAuthFailureDiagnostic {
174
+ readonly schemeSent: string;
175
+ readonly usernameStored: boolean;
176
+ readonly hint?: string;
177
+ readonly remedyToolId?: string;
178
+ }
179
+ /** @agent-note One request that was actually sent. Headers and body are already redacted of every
180
+ * form of the credential; a declined confirmation is the caller's own result, never this one. */
181
+ export interface CredentialedRequestResult {
182
+ readonly executed: true;
183
+ readonly status: number;
184
+ readonly headers: Record<string, string>;
185
+ readonly bodyText: string;
186
+ readonly authDiagnostic?: CredentialAuthFailureDiagnostic;
187
+ }
188
+ /** Transport failure is "unreachable", never "invalid": it says nothing about the credential. */
189
+ export type CredentialCheckStatus = "valid" | "invalid" | "unreachable";
190
+ export interface CredentialVerification {
191
+ readonly status: CredentialCheckStatus;
192
+ readonly message: string;
193
+ readonly checkedAt: string;
194
+ readonly authDiagnostic?: CredentialAuthFailureDiagnostic;
195
+ }
196
+ /** A refusal means only that this GET was refused, not that the key is invalid. */
197
+ export type CredentialProbeStatus = "ok" | "refused" | "unavailable";
198
+ /** A trusted self-describing token scheme rule (e.g. an installed plugin's). */
199
+ export interface CredentialAuthSchemeRule {
200
+ readonly id: string;
201
+ readonly prefix: string;
202
+ readonly scheme: string;
203
+ }
204
+ /** @agent-note `url` is TRUSTED and already resolved by the host against the saved base origin;
205
+ * never pass a model-supplied URL here. `connection` is plaintext and stays in-process. */
206
+ export interface CredentialProbeInput {
207
+ readonly connection: CredentialSetConnectionInput;
208
+ readonly url: string;
209
+ readonly schemes: readonly CredentialAuthSchemeRule[];
210
+ readonly method?: "GET";
211
+ }
212
+ /** Who and what: the label, verb and URL a tool handler already read as strings. */
213
+ export interface CredentialedRequestRequired {
214
+ readonly workspaceId: string;
215
+ readonly label: string;
216
+ readonly method: string;
217
+ readonly url: string;
218
+ }
219
+ /** @agent-note `headers`/`body` are untrusted caller fields; the port validates them (no
220
+ * credential/host override, bounded body). Never pre-trust or pre-serialize them. */
221
+ export interface CredentialedRequestOptional {
222
+ readonly headers?: unknown;
223
+ readonly body?: unknown;
224
+ }
225
+ /** A request target checked against the credential's saved hosts, WITHOUT decrypting it. */
226
+ export interface CredentialedRequestTarget {
227
+ readonly label: string;
228
+ readonly url: URL;
229
+ }
230
+ export type CredentialedRequestErrorCategory = "validation" | "transport" | "egress-refused" | "not-found" | "unknown";
231
+ /**
232
+ * @agent-note `error` is the SAME object that was thrown (identity, class and message unchanged).
233
+ * Only `callerSafeMessage`/`callerSafeError` may reach a model:
234
+ * Classify the original rejection ONCE. For validation and egress-refused, schema-decorate
235
+ * `callerSafeMessage`, never the original `.message`; validation text can be private too.
236
+ * - validation: the caller's own shape/host refusal, with its safe repair message.
237
+ * - egress-refused: `error.message` may name a resolved internal address — keep it in the server
238
+ * audit only. `callerSafeError` retains the class with address-free text for callers that rethrow
239
+ * without schema decoration.
240
+ * - not-found / transport / unknown: never schema-decorated; transport text is raw (addresses), so
241
+ * it carries no caller-safe field. Unknown errors pass through unchanged.
242
+ */
243
+ export type CredentialedRequestErrorClass = {
244
+ readonly category: "validation";
245
+ readonly error: Error;
246
+ readonly callerSafeMessage: string;
247
+ } | {
248
+ readonly category: "egress-refused";
249
+ readonly error: Error;
250
+ readonly callerSafeMessage: string;
251
+ readonly callerSafeError: Error;
252
+ } | {
253
+ readonly category: "not-found";
254
+ readonly error: Error;
255
+ readonly callerSafeMessage: string;
256
+ } | {
257
+ readonly category: "transport";
258
+ readonly error: Error;
259
+ } | {
260
+ readonly category: "unknown";
261
+ readonly error: unknown;
262
+ };
263
+ /**
264
+ * Authenticated requests through a saved, origin-restricted credential.
265
+ * @agent-note Bind each method to ONE call of your existing guarded request adapter (request,
266
+ * target resolution, verification, connection probe) with the SAME repo, sealer, guarded HTTP client, clock, audit and auth-scheme loader your store
267
+ * uses — never by calling a lower-level request function that skips your audit/diagnostic policy.
268
+ * Ordering rules a host must keep:
269
+ * - `resolveTarget` never decrypts; run it before any confirmation dialog or decrypt.
270
+ * - GET/POST/PUT/PATCH may call `request` directly once permitted. DELETE must be held for a human
271
+ * answer first; a decline sends nothing and decrypts nothing. The port itself never confirms.
272
+ * - Results and errors never carry the token, Authorization header or username value.
273
+ */
274
+ export interface CredentialedRequestPort {
275
+ request(required: CredentialedRequestRequired, optional?: CredentialedRequestOptional): Promise<CredentialedRequestResult>;
276
+ resolveTarget(required: {
277
+ readonly workspaceId: string;
278
+ readonly label: string;
279
+ readonly url: string;
280
+ }, optional?: Record<string, never>): Promise<CredentialedRequestTarget>;
281
+ verify(required: {
282
+ readonly workspaceId: string;
283
+ readonly label: string;
284
+ }, optional?: Record<string, never>): Promise<CredentialVerification>;
285
+ probe(required: CredentialProbeInput, optional?: Record<string, never>): Promise<CredentialProbeStatus>;
286
+ classifyError(required: {
287
+ readonly error: unknown;
288
+ }, optional?: Record<string, never>): CredentialedRequestErrorClass;
289
+ }
290
+ /** A repository named by owner and name, before anything is sent. */
291
+ export interface SourceControlRepositoryTarget {
292
+ readonly owner: string;
293
+ readonly repo: string;
294
+ }
295
+ /** Where a credentialed write goes: the credential's API base plus a ready-made Authorization value. */
296
+ export interface SourceControlCredentialedTarget extends SourceControlRepositoryTarget {
297
+ readonly baseUrl: string;
298
+ readonly authorization: string;
299
+ }
300
+ export interface SourceControlWriteFile {
301
+ readonly path: string;
302
+ readonly content: string;
303
+ }
304
+ export interface SourceControlFileWriteState {
305
+ readonly path: string;
306
+ readonly exists: boolean;
307
+ }
308
+ /** @agent-note Read-only reconnaissance: the commit must land on exactly this parent/tree. */
309
+ export interface SourceControlFileWritePlan {
310
+ readonly parentCommitSha: string;
311
+ readonly baseTreeSha: string;
312
+ readonly fileStates: readonly SourceControlFileWriteState[];
313
+ }
314
+ /** @agent-note `logDetail` is for the server log only, never model-facing. */
315
+ export type SourceControlProviderCallFailure = {
316
+ ok: false;
317
+ code: "provider-error";
318
+ message: string;
319
+ } | {
320
+ ok: false;
321
+ code: "network-unreachable";
322
+ message: string;
323
+ logDetail: string;
324
+ };
325
+ export type SourceControlFileWritePlanResult = {
326
+ ok: true;
327
+ plan: SourceControlFileWritePlan;
328
+ } | {
329
+ ok: false;
330
+ code: "branch-not-found";
331
+ message: string;
332
+ } | SourceControlProviderCallFailure;
333
+ export type SourceControlCommitFilesResult = {
334
+ ok: true;
335
+ commitSha: string;
336
+ commitUrl: string;
337
+ } | {
338
+ ok: false;
339
+ code: "diverged";
340
+ message: string;
341
+ } | SourceControlProviderCallFailure;
342
+ /** The provider operations a file write uses; a host's richer provider object satisfies this. */
343
+ export interface SourceControlFileWriter {
344
+ readonly validateTarget?: (target: SourceControlRepositoryTarget) => string | null;
345
+ planFileWrite(input: SourceControlCredentialedTarget & {
346
+ readonly branch: string;
347
+ readonly files: readonly SourceControlWriteFile[];
348
+ }): Promise<SourceControlFileWritePlanResult>;
349
+ commitFiles(input: SourceControlCredentialedTarget & {
350
+ readonly branch: string;
351
+ readonly commitMessage: string;
352
+ readonly files: readonly SourceControlWriteFile[];
353
+ }, plan: SourceControlFileWritePlan): Promise<SourceControlCommitFilesResult>;
354
+ }
355
+ export type SourceControlWriterBuildResult = {
356
+ readonly ok: true;
357
+ readonly provider: SourceControlFileWriter;
358
+ } | {
359
+ readonly ok: false;
360
+ readonly message: string;
361
+ readonly refusals: readonly string[];
362
+ };
363
+ /**
364
+ * Validated file writes to a git host through a saved credential.
365
+ * @agent-note Order: `build` from the credential's plaintext base URL (no decrypt) → `validateTarget`
366
+ * on THAT provider (still no decrypt) → decrypt → `planFileWrite` (read-only) → stop if aborted →
367
+ * `commitFiles` on the SAME provider object with the EXACT plan returned. Never rebuild the provider
368
+ * or re-plan between plan and commit; the provider owns freshness checks and atomic commit.
369
+ * `build` uses the host's current provider registry, guarded HTTP client and observability.
370
+ * `validateTarget` throws the host's validation error (caller-safe text naming the field).
371
+ * Whole-site export commits are a separate contract; this port adds no file-write confirmation.
372
+ */
373
+ export interface SourceControlWritePort {
374
+ build(required: {
375
+ readonly workspaceId: string;
376
+ readonly baseUrl: string;
377
+ }, optional?: Record<string, never>): Promise<SourceControlWriterBuildResult>;
378
+ validateTarget(required: {
379
+ readonly provider: SourceControlFileWriter;
380
+ readonly target: {
381
+ readonly owner: unknown;
382
+ readonly repo: unknown;
383
+ };
384
+ }, optional?: Record<string, never>): SourceControlRepositoryTarget;
385
+ planFileWrite(required: {
386
+ readonly provider: SourceControlFileWriter;
387
+ readonly input: SourceControlCredentialedTarget & {
388
+ readonly branch: string;
389
+ readonly files: readonly SourceControlWriteFile[];
390
+ };
391
+ }, optional?: Record<string, never>): Promise<SourceControlFileWritePlanResult>;
392
+ commitFiles(required: {
393
+ readonly provider: SourceControlFileWriter;
394
+ readonly input: SourceControlCredentialedTarget & {
395
+ readonly branch: string;
396
+ readonly commitMessage: string;
397
+ readonly files: readonly SourceControlWriteFile[];
398
+ };
399
+ readonly plan: SourceControlFileWritePlan;
400
+ }, optional?: Record<string, never>): Promise<SourceControlCommitFilesResult>;
401
+ }
402
+ //# sourceMappingURL=credentials.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=credentials.js.map