@wildo-ai/external-connectors-models 1.1.4 → 1.1.5

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 (89) hide show
  1. package/dist/esm/companion-exports.d.ts.map +1 -1
  2. package/dist/esm/core/commons.external-connectors-models.schemas.d.ts +13 -132
  3. package/dist/esm/core/commons.external-connectors-models.schemas.d.ts.map +1 -1
  4. package/dist/esm/core/commons.external-connectors-models.schemas.js +13 -31
  5. package/dist/esm/core/commons.external-connectors-models.schemas.js.map +1 -1
  6. package/dist/esm/core/operation-classification.external-connectors-models.schemas.d.ts.map +1 -1
  7. package/dist/esm/core/operation-classification.external-connectors-models.schemas.js.map +1 -1
  8. package/dist/esm/core/security.external-connectors-models.schemas.d.ts +40 -8
  9. package/dist/esm/core/security.external-connectors-models.schemas.d.ts.map +1 -1
  10. package/dist/esm/core/security.external-connectors-models.schemas.js +61 -14
  11. package/dist/esm/core/security.external-connectors-models.schemas.js.map +1 -1
  12. package/dist/esm/index.d.ts +2 -2
  13. package/dist/esm/index.d.ts.map +1 -1
  14. package/dist/esm/index.js +2 -2
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts +26 -163
  17. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts.map +1 -1
  18. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js +20 -92
  19. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js.map +1 -1
  20. package/dist/esm/protocols/billing.standard-interface.schemas.d.ts +130 -10
  21. package/dist/esm/protocols/billing.standard-interface.schemas.d.ts.map +1 -1
  22. package/dist/esm/protocols/billing.standard-interface.schemas.js +41 -0
  23. package/dist/esm/protocols/billing.standard-interface.schemas.js.map +1 -1
  24. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.d.ts +1 -16
  25. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.d.ts.map +1 -1
  26. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.js +1 -7
  27. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.js.map +1 -1
  28. package/dist/esm/protocols/email.external-connectors-models.schemas.d.ts +1 -56
  29. package/dist/esm/protocols/email.external-connectors-models.schemas.d.ts.map +1 -1
  30. package/dist/esm/protocols/email.external-connectors-models.schemas.js +0 -20
  31. package/dist/esm/protocols/email.external-connectors-models.schemas.js.map +1 -1
  32. package/dist/esm/protocols/email.standard-interface.schemas.d.ts +4 -4
  33. package/dist/esm/protocols/email.standard-interface.schemas.d.ts.map +1 -1
  34. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts +1 -16
  35. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts.map +1 -1
  36. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js +4 -9
  37. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js.map +1 -1
  38. package/dist/esm/protocols/frontend.external-connectors-models.schemas.d.ts +6 -13
  39. package/dist/esm/protocols/frontend.external-connectors-models.schemas.d.ts.map +1 -1
  40. package/dist/esm/protocols/frontend.external-connectors-models.schemas.js +0 -9
  41. package/dist/esm/protocols/frontend.external-connectors-models.schemas.js.map +1 -1
  42. package/dist/esm/protocols/hooks-capability.external-connectors-models.schemas.d.ts.map +1 -1
  43. package/dist/esm/protocols/hooks-capability.external-connectors-models.schemas.js.map +1 -1
  44. package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts +1 -15
  45. package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts.map +1 -1
  46. package/dist/esm/protocols/hooks.external-connectors-models.schemas.js +1 -9
  47. package/dist/esm/protocols/hooks.external-connectors-models.schemas.js.map +1 -1
  48. package/dist/esm/protocols/image.external-connectors-models.schemas.d.ts +1 -18
  49. package/dist/esm/protocols/image.external-connectors-models.schemas.d.ts.map +1 -1
  50. package/dist/esm/protocols/image.external-connectors-models.schemas.js +1 -7
  51. package/dist/esm/protocols/image.external-connectors-models.schemas.js.map +1 -1
  52. package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts +92 -40
  53. package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts.map +1 -1
  54. package/dist/esm/protocols/llm.external-connectors-models.schemas.js +154 -41
  55. package/dist/esm/protocols/llm.external-connectors-models.schemas.js.map +1 -1
  56. package/dist/esm/protocols/oauth2-provider-assurance.definitions.d.ts +7 -0
  57. package/dist/esm/protocols/oauth2-provider-assurance.definitions.d.ts.map +1 -0
  58. package/dist/esm/protocols/oauth2-provider-assurance.definitions.js +36 -0
  59. package/dist/esm/protocols/oauth2-provider-assurance.definitions.js.map +1 -0
  60. package/dist/esm/protocols/oauth2-provider-assurance.schemas.d.ts +23 -0
  61. package/dist/esm/protocols/oauth2-provider-assurance.schemas.d.ts.map +1 -0
  62. package/dist/esm/protocols/oauth2-provider-assurance.schemas.js +25 -0
  63. package/dist/esm/protocols/oauth2-provider-assurance.schemas.js.map +1 -0
  64. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.d.ts +0 -148
  65. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.d.ts.map +1 -1
  66. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.js +1 -40
  67. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.js.map +1 -1
  68. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.d.ts +530 -15
  69. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.d.ts.map +1 -1
  70. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.js +380 -0
  71. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.js.map +1 -1
  72. package/dist/esm/protocols/sms.external-connectors-models.schemas.d.ts +0 -39
  73. package/dist/esm/protocols/sms.external-connectors-models.schemas.d.ts.map +1 -1
  74. package/dist/esm/protocols/sms.external-connectors-models.schemas.js +0 -13
  75. package/dist/esm/protocols/sms.external-connectors-models.schemas.js.map +1 -1
  76. package/dist/esm/protocols/sms.standard-interface.schemas.d.ts +1 -1
  77. package/dist/esm/protocols/sms.standard-interface.schemas.d.ts.map +1 -1
  78. package/dist/esm/protocols/sms.standard-interface.schemas.js.map +1 -1
  79. package/dist/tsconfig.build.tsbuildinfo +1 -1
  80. package/package.json +2 -3
  81. package/dist/esm/.native.tsbuildinfo +0 -1
  82. package/dist/esm/core/protocols.external-connectors-models.schemas.d.ts +0 -74
  83. package/dist/esm/core/protocols.external-connectors-models.schemas.d.ts.map +0 -1
  84. package/dist/esm/core/protocols.external-connectors-models.schemas.js +0 -1
  85. package/dist/esm/core/protocols.external-connectors-models.schemas.js.map +0 -1
  86. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.d.ts +0 -37
  87. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.d.ts.map +0 -1
  88. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.js +0 -10
  89. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.js.map +0 -1
@@ -19,11 +19,35 @@
19
19
  * path template, where its parameters ride — and none of that is backend runtime. The arrow already
20
20
  * pointed this way, since this package has no dependency on the private backend and the private
21
21
  * backend depends on it.
22
+ *
23
+ * ## This is the ONLY description of a REST provider — two earlier ones were deleted
24
+ *
25
+ * `rest-api.external-connectors-models.schemas.ts` described REST providers twice over, and both
26
+ * descriptions are gone. Neither should come back beside this module.
27
+ *
28
+ * - **An OpenAPI-shaped operation layer** (`REST_API_OperationSpecSchema`,
29
+ * `REST_API_OperationContextSchema`, `REST_API_OperationDefinition`, `API_Parameter*`,
30
+ * `API_ContentType`) — deleted 2026-09-06 by #331. Ten exported symbols and zero code readers: a
31
+ * provider that authored one compiled, shipped, and was invisible to every runtime.
32
+ * - **A profile / configuration / status triple** (`REST_API_Provider_Profile`,
33
+ * `REST_API_Provider_Configuration`, `REST_APIProvider_StatusSchema`) — deleted 2026-09-12 (#18).
34
+ * Its only reader was the `ExternalProvider_ExchangeProtocol` union, itself read by nothing but a
35
+ * drift test pinning it to the enum, and deleted in the same change. Its `pagination.style` was an
36
+ * anonymous `"offset" | "cursor" | "page" | "link"` restating {@link ProviderRestPaginationStyle}.
37
+ *
38
+ * WHERE a REST API lives and how it authenticates is the `rest` arm of the backend runtime contract
39
+ * (`@wildo-ai/external-connectors-private/backend`); WHAT can be called against it is
40
+ * {@link ProviderRestOperation}, executed by `ProviderOperationExecutorBackendService`. A second
41
+ * description of either is not a missing feature — it is the drift that makes an authoring surface
42
+ * untrustworthy, because an author cannot tell which of two shapes is the one that runs. If an
43
+ * OpenAPI document is ever read (a second mapper input), it feeds `ProviderRestOperation` like
44
+ * every other source.
22
45
  */
23
46
  import { z } from 'zod';
24
47
  import { API_HttpMethod } from '../core/commons.external-connectors-models.schemas';
25
48
  import { ExternalOperation_Classification } from '../core/operation-classification.external-connectors-models.schemas';
26
49
  import type { ExternalProvider_ConnectionTarget } from '../core/security.external-connectors-models.schemas';
50
+ /** @wildo_source:part:start external-connectors.models.rest-operation-contract facet:layer:shared facet:family:provider facet:audience:app-developer */
27
51
  /** Where a declared parameter rides on the wire. */
28
52
  export declare enum ProviderRestParameterLocation {
29
53
  /** Substituted into a `{token}` of the path template. Always required — a path cannot have a hole. */
@@ -41,7 +65,30 @@ export declare enum ProviderRestRequestBodyEncoding {
41
65
  FORM_URLENCODED = "form-urlencoded",
42
66
  MULTIPART = "multipart",
43
67
  /** A raw text body; `contentType` on the declaration says which media type is sent. */
44
- TEXT = "text"
68
+ TEXT = "text",
69
+ /**
70
+ * Raw bytes (#367, folding #364) — an image, a PDF, a file upload a vendor takes as the whole body.
71
+ * `contentType` is REQUIRED, by the TEXT arm's rule: a body without its media type is not addressable.
72
+ * The input must supply a `Uint8Array` (a Node `Buffer` is one); nothing is converted into bytes here,
73
+ * because a string encoded under a guessed charset is exactly how an upload arrives corrupted.
74
+ */
75
+ BINARY = "binary"
76
+ }
77
+ /**
78
+ * How the vendor's ANSWER is read (#367, folding #364).
79
+ *
80
+ * The request side could already send TEXT and the transport could already read TEXT and NONE, while
81
+ * the operation declaration could only say JSON — so an operation against a `text/csv` export could be
82
+ * authored and then failed at runtime as `INVALID_JSON`, a contract-breach message for a declaration
83
+ * the contract had no way to state. This is the missing half of that asymmetry.
84
+ */
85
+ export declare enum ProviderRestResponseDecoding {
86
+ /** Parse the body as JSON. The default, and what an absent `responseDecoding` means. */
87
+ JSON = "json",
88
+ /** Keep the body as text — a CSV export, an XML document. The operation's output is that string. */
89
+ TEXT = "text",
90
+ /** Read nothing — a write whose answer carries no information (a 204). The output is `undefined`. */
91
+ NONE = "none"
45
92
  }
46
93
  /**
47
94
  * How a listing operation continues. A HINT the caller reads, never something the executor acts
@@ -81,8 +128,20 @@ export interface ProviderRestOperationRequestBody {
81
128
  * by a declared parameter — the ordinary shape, and the reason parameters declare `from`.
82
129
  */
83
130
  readonly from?: string;
84
- /** For `TEXT`: the media type actually sent (`text/csv`, `application/xml`). */
131
+ /** For `TEXT` and `BINARY`: the media type actually sent (`text/csv`, `application/pdf`). Required for both. */
85
132
  readonly contentType?: string;
133
+ /**
134
+ * A JSON body sent INSIDE one named property: `envelope: 'data'` sends `{ "data": { …the body… } }` (#333).
135
+ *
136
+ * Asana answers `data: Missing input` to a task whose fields arrive at the top level — its API reads
137
+ * every write from a `data` wrapper, which the source catalogue builds in its request helper and the
138
+ * transposer never saw. Declared here rather than modelled as a nested input, so the INPUT stays flat:
139
+ * the fields a person fills in, and the fields an `inputOptions` key names, are the fields they see.
140
+ *
141
+ * JSON only. Any other encoding with an envelope is refused by name when the request is compiled — a
142
+ * form, text or binary body has no property to wrap it in.
143
+ */
144
+ readonly envelope?: string;
86
145
  }
87
146
  /** Where the payload sits inside a response, and how a listing continues. */
88
147
  export interface ProviderRestOperationPagination {
@@ -95,6 +154,44 @@ export interface ProviderRestOperationPagination {
95
154
  /** CURSOR/LINK: dot-path in the RESPONSE carrying the next cursor or the next URL. */
96
155
  readonly nextPath?: string;
97
156
  }
157
+ /**
158
+ * Where an input's CHOICES come from: another operation of the same provider, run through the SAME
159
+ * connection, whose answer lists the values a person may pick (#333).
160
+ *
161
+ * The shape every workflow product converged on, and deliberately not a value stored on the connection.
162
+ * A workspace, a project, a channel are choices WITHIN an account, made per call: Zapier fills a
163
+ * dynamic dropdown with "a live API call", Make fills a module field through an RPC that "must have the
164
+ * same connection", n8n's resource locator lists through the node's credentials, and the Activepieces
165
+ * source this catalogue is scraped from declares Asana's workspace as a required dropdown whose options
166
+ * are fetched with the connected account. A connection records only what the vendor REPORTED when it
167
+ * was authorized ({@link ProviderRestOAuth2.accountRefResponsePath}).
168
+ *
169
+ * Declaring an options source does not make the options operation reachable from a browser: it is its
170
+ * own operation, and `providers.browserOperations` must list it like any other.
171
+ *
172
+ * @example
173
+ * // Asana: a task's project is chosen from the projects of the chosen workspace.
174
+ * inputOptions: {
175
+ * workspace: { operationId: 'list_workspaces', valuePath: 'gid', labelPath: 'name' },
176
+ * project: { operationId: 'list_projects', valuePath: 'gid', labelPath: 'name', dependsOn: { workspace: 'workspace' } },
177
+ * }
178
+ */
179
+ export interface ProviderRestOperationInputOptions {
180
+ /** The operation that lists the choices. Same provider; its output (after its own `resultPath`) must be an array. */
181
+ readonly operationId: string;
182
+ /** That operation's catalogue domain, when it differs from the one being called. */
183
+ readonly domain?: string;
184
+ /** Dot-path, inside each listed item, to the value the input receives (`gid`). */
185
+ readonly valuePath: string;
186
+ /** Dot-path, inside each listed item, to the text a person reads (`name`). Vendor content, never derived from the value. */
187
+ readonly labelPath: string;
188
+ /**
189
+ * Inputs the options depend on: `{ <options-operation input field>: <this operation's input field> }`.
190
+ * A choice that is not yet made is REFUSED by name rather than listed as empty — "no projects" and
191
+ * "choose a workspace first" are different answers, and only one of them is true.
192
+ */
193
+ readonly dependsOn?: Readonly<Record<string, string>>;
194
+ }
98
195
  /**
99
196
  * A provider operation, hand-authored. The unit an application addresses:
100
197
  * `executeProviderOperation({ providerRef: 'slack', operationId: 'conversations.list', input })`.
@@ -138,14 +235,35 @@ export interface ProviderRestOperation {
138
235
  * value is in naming the fields a caller may rely on, not in policing the vendor.
139
236
  */
140
237
  readonly outputSchema?: z.ZodType;
141
- /** Dot-path to the payload inside the response body. Absent = the body IS the payload. */
238
+ /**
239
+ * How the answer is read. Absent = `JSON`, so every operation authored before this field existed
240
+ * reads exactly as it did.
241
+ *
242
+ * It also sets the default `Accept` header — `application/json` for JSON, `*\/*` otherwise — which a
243
+ * declared `Accept` HEADER parameter overrides when a vendor needs a specific media type.
244
+ *
245
+ * Two combinations are refused by name when the request is compiled, because each describes a payload
246
+ * that cannot exist: `resultPath` beside `TEXT` or `NONE` (there is no structure to walk), and
247
+ * `outputSchema` beside `NONE` (there is nothing to parse). `outputSchema` beside `TEXT` is legal and
248
+ * validates the string.
249
+ */
250
+ readonly responseDecoding?: ProviderRestResponseDecoding;
251
+ /** Dot-path to the payload inside the response body. Absent = the body IS the payload. JSON answers only. */
142
252
  readonly resultPath?: string;
143
253
  readonly pagination?: ProviderRestOperationPagination;
144
254
  /**
145
- * OAuth scopes (or vendor permission names) the credential must carry. DECLARED in S3a and not
146
- * yet CHECKED: checking it needs the composed registry's view of the secrets contract, which is
147
- * #329's. Recorded as owed rather than half-enforced — a check that silently passes is worse
148
- * than no check.
255
+ * OAuth scopes (or vendor permission names) the credential must carry, as the exact strings the vendor
256
+ * grants. CHECKED before the request leaves (#979): `ProviderOperationExecutorBackendService` compares them
257
+ * with the scopes recorded on the spent grant and refuses with the missing ones named when any is absent.
258
+ * A grant that records no scopes (a pasted key, a vendor that does not echo `scope`) proceeds, and the
259
+ * call's audit row says the check could not be made — refusing there would break every such vendor.
260
+ *
261
+ * Until 2026-09-14 this said "declared and not checked"; checking needed the granted set on the grant,
262
+ * which the connected-accounts lane now stores. Two things not to confuse it
263
+ * with: `ProviderRestOAuth2.scopes` is the vendor's ADVISORY default set, and the wildo-cli
264
+ * `getProviderApiKey({ requiredScopes })` parameter is a list of secret-contract SLUGS — a
265
+ * different concept sharing the name, which no production caller feeds from this field. As of
266
+ * 2026-09-12 no generated provider declares it either.
149
267
  */
150
268
  readonly requiredScopes?: readonly string[];
151
269
  /**
@@ -159,6 +277,11 @@ export interface ProviderRestOperation {
159
277
  readonly idempotent?: boolean;
160
278
  /** Narrows the provider's semantics for this one operation (a slow export, a tight endpoint). */
161
279
  readonly remoteCallSemantics?: Partial<ProviderRestCallSemantics>;
280
+ /**
281
+ * Where each input's choices come from, keyed by INPUT field name. Absent for an input a caller types.
282
+ * See {@link ProviderRestOperationInputOptions}.
283
+ */
284
+ readonly inputOptions?: Readonly<Record<string, ProviderRestOperationInputOptions>>;
162
285
  /** Set when the vendor has deprecated it; the executor logs once per operation, never refuses. */
163
286
  readonly deprecated?: {
164
287
  readonly reason: string;
@@ -173,6 +296,7 @@ export interface ProviderRestOperationCatalogue {
173
296
  /** Keyed by `operationId`. */
174
297
  readonly operations: Readonly<Record<string, ProviderRestOperation>>;
175
298
  }
299
+ /** @wildo_source:part:end external-connectors.models.rest-operation-contract */
176
300
  /**
177
301
  * The lazy catalogue loader — the seam #330's host loader consumes (interface note on #331).
178
302
  *
@@ -239,9 +363,57 @@ export interface ProviderRestOAuth2 {
239
363
  /** Where an authorization code (or a refresh token) is exchanged for an access token. */
240
364
  readonly tokenUrl: string;
241
365
  /**
242
- * Scopes the vendor's own catalogue entry asked for. Advisory rather than enforced: an application
243
- * may need fewer, and an operation's `requiredScopes` is the finer statement. Kept because it is
244
- * the only record of what the vendor expects for the operations transposed beside it.
366
+ * Where a token is handed back to the vendor so the GRANT ends there too (#545).
367
+ *
368
+ * Deleting our copy of a token stops US using it. It does not stop the token working, and a
369
+ * refresh token frequently never expires on its own — so without this, "Disconnect" leaves the
370
+ * application listed in the person's own connected-apps screen at the vendor, and their belief
371
+ * that they have withdrawn access is not quite true.
372
+ *
373
+ * ## Why the field names RFC 7009 rather than "revocation"
374
+ *
375
+ * The name is the CONTRACT, not decoration. A URL here is POSTed
376
+ * `application/x-www-form-urlencoded` with a `token` parameter and an optional
377
+ * `token_type_hint`, and a 200 means the grant is gone — including for a token the server does
378
+ * not recognise.
379
+ * spec-cite: RFC 7009 §2.1 (revocation request) and §2.2 (revocation response), fetched
380
+ * 2026-09-18 — §2.2: *"The authorization server responds with HTTP status code 200 if the token
381
+ * has been revoked successfully or if the client submitted an invalid token"*, and *"invalid
382
+ * tokens do not cause an error response since the client cannot handle such an error in a
383
+ * reasonable way."*
384
+ *
385
+ * That last sentence is why the caller is best-effort and never branches on the body: there is
386
+ * nothing to branch on.
387
+ *
388
+ * **A vendor whose revocation is NOT RFC 7009 declares nothing here, deliberately.** Slack's
389
+ * `auth.revoke` is a Web API method and GitHub's is `DELETE /applications/{client_id}/token` with
390
+ * basic auth and a JSON body; neither is expressible as this URL, and bending the field to fit
391
+ * them would make a declaration that names RFC 7009 and means something else entirely. Those vendors
392
+ * need a per-vendor revocation ACTION, which is a bigger surface and is not built on speculation —
393
+ * until then the honest answer is an absent field, and the disconnect surface says so.
394
+ *
395
+ * Absent — not empty — when no revocation is declared, so "this vendor cannot be told" stays
396
+ * distinguishable from "nobody has looked".
397
+ */
398
+ readonly rfc7009RevocationUrl?: string;
399
+ /**
400
+ * Scopes the vendor's own catalogue entry asked for. An application may request FEWER (a subset of
401
+ * these, once resolved), and an operation's `requiredScopes` is the finer statement. Kept because
402
+ * it is the only record of what the vendor expects for the operations transposed beside it.
403
+ *
404
+ * ## A scope may carry a placeholder, and it is resolved like an endpoint's (#991)
405
+ *
406
+ * Two shapes exist, classified by {@link classifyProviderOAuth2ScopePlaceholder}:
407
+ *
408
+ * - `{hostUrl}/.default` — the placeholder BEGINS the scope and is followed by `/`, so its value is
409
+ * an ORIGIN (Microsoft Dataverse names the resource a token is minted FOR by the environment URL).
410
+ * It is filled only within {@link endpointHostAllowances}, exactly like an origin in an endpoint:
411
+ * a caller-chosen resource would have the vendor mint a token for a host nobody declared.
412
+ * - `{permissions}` — the placeholder IS the whole scope entry, and its value is one or more scope
413
+ * tokens chosen from {@link scopeValueAllowances}. Such a value can itself name a resource
414
+ * (`https://graph.microsoft.us/.default`), so it is a closed choice, never free text.
415
+ *
416
+ * Any other placement (`api://{x}`, `{a}{b}`, `{x}.default`) is refused as malformed.
245
417
  */
246
418
  readonly scopes?: readonly string[];
247
419
  /**
@@ -252,12 +424,13 @@ export interface ProviderRestOAuth2 {
252
424
  readonly clientIdSecretRef?: string;
253
425
  readonly clientSecretSecretRef?: string;
254
426
  /**
255
- * Placeholders the endpoints above carry, which a CONNECTION must supply before either URL is a
256
- * URL at all — `{cloud}`, `{tenantId}`, `{region}`, `{domain}`.
427
+ * Placeholders the endpoints above carry, which a CONNECTION must answer before either URL is a
428
+ * URL at all — `{cloud}`, `{tenantId}`, `{region}`, `{domain}`. A PATH placeholder is answered freely;
429
+ * a HOST or ORIGIN one only from {@link ProviderRestOAuth2.endpointHostAllowances}.
257
430
  *
258
- * Measured over the transposed catalogue on 2026-09-08: of the 96 vendors that recovered both
259
- * endpoints, **21 carry at least one placeholder**, led by `{cloud}` (18), `{location}` (10) and
260
- * `{tenantId}` (6). Microsoft's authorize URL is
431
+ * Re-measured over the generated catalogue on 2026-09-12: of the 99 vendors that recovered both
432
+ * endpoints, **20 carry at least one placeholder**, led by `{cloud}` (18 occurrences), `{location}`
433
+ * (10) and `{tenantId}` (6). Microsoft's authorize URL is
261
434
  * `https://{cloud}/{tenantId}/oauth2/v2.0/authorize`, and no amount of application configuration
262
435
  * supplies those: which Azure cloud and which directory are facts about the ACCOUNT BEING
263
436
  * CONNECTED, known only to the person connecting it.
@@ -274,9 +447,351 @@ export interface ProviderRestOAuth2 {
274
447
  * Deliberately NOT a judgement about which connections a provider admits. That is a recorded
275
448
  * decision in the catalogue record and is never read from a vendor's API surface; this is a
276
449
  * mechanical fact about a string.
450
+ *
451
+ * A placeholder filled from {@link ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL} or
452
+ * {@link ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED} is NOT listed: nobody
453
+ * connecting an account is asked for it, and a value they supply is refused.
454
+ *
455
+ * Derived from the {@link scopes} as well as the endpoints (#991): Dataverse's `{hostUrl}/.default`
456
+ * names a fact about the account (its environment URL) that no endpoint carries, and a placeholder
457
+ * only a scope mentions was otherwise never asked for — so the authorize request carried the literal
458
+ * brace to the vendor.
277
459
  */
278
460
  readonly connectionParameters?: readonly string[];
461
+ /**
462
+ * How each placeholder that forms an endpoint's HOST or ORIGIN may be filled, keyed by
463
+ * placeholder name. A host/origin placeholder with NO entry here cannot be filled at all, and the
464
+ * connect flow refuses it.
465
+ *
466
+ * ## Why this exists: the token endpoint receives the application's client secret
467
+ *
468
+ * The exchange POSTs `client_id` and the APPLICATION's `client_secret` to the resolved `tokenUrl`.
469
+ * Until 2026-09-12 every placeholder was answered from the connect-start request body, so where a
470
+ * placeholder formed the HOST — Microsoft's `https://{cloud}/…/token`, Salesforce's
471
+ * `https://{environment}/…`, Zoho's `https://accounts.{location}/…` — any user allowed to start a
472
+ * connection chose where that secret was sent (`cloud=attacker.tld`). Measured over the generated
473
+ * catalogue that day: 34 host-position occurrences across 17 vendors (9 Microsoft, 6 Zoho,
474
+ * Salesforce, Workday), plus two whole-origin
475
+ * placeholders (`gitea`, `bigin-by-zoho`) that were safe only because percent-encoding made them
476
+ * undialable (#623).
477
+ *
478
+ * So a host/origin value is chosen from what the PROVIDER declares, never from what a caller
479
+ * types. Path and query placeholders (`{tenantId}`, Workday's `{tenant}`) stay free and are
480
+ * percent-encoded, because an encoded path segment cannot move the request to another host.
481
+ *
482
+ * Derived by the transposer where the source catalogue states a closed choice (a dropdown), and
483
+ * otherwise taken from a recorded human decision in the catalogue record — never guessed.
484
+ *
485
+ * Also governs a placeholder that forms the ORIGIN of a SCOPE (`{hostUrl}/.default`, #991). One
486
+ * allow-list per placeholder name, wherever the name forms a host: a scope's resource URI decides
487
+ * which host the vendor mints the token for, which is the same question an endpoint's host answers.
488
+ */
489
+ readonly endpointHostAllowances?: Readonly<Record<string, ProviderOAuth2EndpointHostAllowance>>;
490
+ /**
491
+ * The closed set of values a WHOLE-SCOPE placeholder (`scopes: ['{permissions}']`) may be answered
492
+ * with, keyed by placeholder name (#991).
493
+ *
494
+ * Each value is substituted verbatim as that scope entry and may hold several space-delimited scope
495
+ * tokens — Microsoft Entra ID's permission presets are one such string each. Matched exactly, because
496
+ * scope values are case-sensitive.
497
+ * spec-cite: RFC 6749 §3.3 (the scope parameter is a list of space-delimited, case-sensitive strings).
498
+ *
499
+ * Closed rather than free because a scope value can itself name a resource
500
+ * (`https://graph.microsoft.us/.default`), and a whole-scope placeholder with NO entry here cannot be
501
+ * answered at all. Derived by the transposer from the source's own dropdown; never guessed.
502
+ */
503
+ readonly scopeValueAllowances?: Readonly<Record<string, ProviderOAuth2ScopeValueAllowance>>;
504
+ /**
505
+ * Dot-path, inside the TOKEN ENDPOINT'S JSON answer, to the vendor's own identifier for the account
506
+ * that was just authorized — Slack's `team.id` (#333).
507
+ *
508
+ * Read once, at the exchange, into the stored grant's `accountRef`, so a person holding two
509
+ * connections to one vendor can tell which is which and the grant audit names the account. Absent
510
+ * means the vendor reports no account identity in its token answer (Asana's names only the user).
511
+ *
512
+ * Identity only: nothing looks a credential up by it, and an answer that lacks the path stores the
513
+ * grant without it — a missing label is not a reason to discard an authorization the person just gave.
514
+ */
515
+ readonly accountRefResponsePath?: string;
516
+ /**
517
+ * Facts about the connected ACCOUNT that the vendor reports in its token answer and OPERATIONS consume,
518
+ * keyed by the fact's name (#333, #1047) — Salesforce's `instance_url`, Pipedrive's `api_domain`.
519
+ *
520
+ * Captured at the authorization-code exchange and again at every refresh, into the credential row's
521
+ * `connectionFacts` with provenance `REPORTED_BY_VENDOR`. Distinct from {@link accountRefResponsePath}:
522
+ * that is a LABEL a person reads, sealed in the grant; these are values requests are built from, kept
523
+ * client-readable beside the answers a person typed at connect.
524
+ *
525
+ * A fact that carries an `origin` allowance is an https ORIGIN operations may dial, so it decides where a
526
+ * request carrying the credential goes. It is therefore admitted exactly as an ORIGIN placeholder is
527
+ * ({@link endpointHostAllowances}): refused at connect when absent or outside the allowance, and
528
+ * re-checked on every call that uses it.
529
+ */
530
+ readonly reportedAccountFacts?: Readonly<Record<string, ProviderOAuth2ReportedAccountFact>>;
531
+ }
532
+ /** One vendor-reported account fact. See {@link ProviderRestOAuth2.reportedAccountFacts}. */
533
+ export interface ProviderOAuth2ReportedAccountFact {
534
+ /** Dot-path inside the token endpoint's JSON answer. A string or finite number there is the value. */
535
+ readonly responsePath: string;
536
+ /**
537
+ * Present when the value is an https ORIGIN operations dial. The same DECLARED_VALUES vocabulary an
538
+ * ORIGIN placeholder uses: exact origins, or `https://<dns-labels><suffix>` for each dotted suffix.
539
+ */
540
+ readonly origin?: Extract<ProviderOAuth2EndpointHostAllowance, {
541
+ readonly kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES;
542
+ }>;
543
+ }
544
+ /** The values a whole-scope placeholder admits. See {@link ProviderRestOAuth2.scopeValueAllowances}. */
545
+ export interface ProviderOAuth2ScopeValueAllowance {
546
+ readonly values: readonly string[];
279
547
  }
548
+ /**
549
+ * Where a `{placeholder}` sits inside one OAuth2 SCOPE entry. See {@link classifyProviderOAuth2ScopePlaceholder}.
550
+ *
551
+ * Deliberately not {@link ProviderOAuth2EndpointPlaceholderPosition}: a scope is not a URL, and the
552
+ * endpoint scan would call `{permissions}` an ORIGIN (it begins the string and nothing follows it).
553
+ */
554
+ export declare enum ProviderOAuth2ScopePlaceholderPosition {
555
+ /**
556
+ * The placeholder begins the scope and is followed by `/` — `{hostUrl}/.default`. Its value is an
557
+ * https ORIGIN, admitted only within {@link ProviderRestOAuth2.endpointHostAllowances}.
558
+ */
559
+ ORIGIN = "ORIGIN",
560
+ /**
561
+ * The placeholder is the entire scope entry — `{permissions}`. Its value is one of
562
+ * {@link ProviderRestOAuth2.scopeValueAllowances}.
563
+ */
564
+ WHOLE_SCOPE = "WHOLE_SCOPE"
565
+ }
566
+ /** Why a scope entry cannot be resolved safely, whatever is supplied. See {@link findProviderOAuth2ScopeTemplateDefects}. */
567
+ export declare enum ProviderOAuth2ScopeTemplateDefect {
568
+ /**
569
+ * A placeholder sits anywhere except at the start of the scope followed by `/` or the end —
570
+ * `api://{x}/.default`, `{x}.default`, `openid {x}`. Such a value would be concatenated with text
571
+ * around it into a resource or scope nobody declared.
572
+ */
573
+ UNSUPPORTED_PLACEHOLDER_POSITION = "UNSUPPORTED_PLACEHOLDER_POSITION",
574
+ /** More than one placeholder in one scope entry: each value validated alone can compose an undeclared one. */
575
+ SEVERAL_PLACEHOLDERS = "SEVERAL_PLACEHOLDERS",
576
+ /** A `{` or `}` that is not part of a well-formed placeholder: a vendor can never grant a scope carrying one. */
577
+ STRAY_BRACE = "STRAY_BRACE"
578
+ }
579
+ /** One `{placeholder}` in a scope entry. */
580
+ export interface ProviderOAuth2ScopePlaceholderOccurrence {
581
+ readonly name: string;
582
+ readonly position: ProviderOAuth2ScopePlaceholderPosition;
583
+ /** The whole `{name}` token, for substitution. */
584
+ readonly token: string;
585
+ }
586
+ /**
587
+ * The defects that make a scope entry unsafe to resolve, or an empty list. Shared by the runtime (which
588
+ * refuses) and the transposer (which refuses to emit), so neither admits a shape the other rejects.
589
+ */
590
+ export declare function findProviderOAuth2ScopeTemplateDefects(scope: string): readonly ProviderOAuth2ScopeTemplateDefect[];
591
+ /**
592
+ * Classify the one placeholder a scope entry may carry, or `undefined` when it carries none.
593
+ *
594
+ * ONE function, shared by the transposer and the runtime, like its endpoint counterpart. Meaningful only
595
+ * for a scope with no {@link findProviderOAuth2ScopeTemplateDefects}; every consumer refuses those first.
596
+ */
597
+ export declare function classifyProviderOAuth2ScopePlaceholder(scope: string): ProviderOAuth2ScopePlaceholderOccurrence | undefined;
598
+ /**
599
+ * Why a declared whole-scope allowance cannot be applied, or an empty list. Enforced at generation so a
600
+ * broken set refuses the batch; the runtime matches exactly and never trusts a value it did not declare.
601
+ */
602
+ export declare function describeProviderOAuth2ScopeValueAllowanceDefects(allowance: ProviderOAuth2ScopeValueAllowance): readonly string[];
603
+ /**
604
+ * Where a `{placeholder}` sits inside an OAuth2 endpoint template — the classification the host
605
+ * allow-list keys on. See {@link classifyProviderOAuth2EndpointPlaceholders}.
606
+ */
607
+ export declare enum ProviderOAuth2EndpointPlaceholderPosition {
608
+ /**
609
+ * The placeholder BEGINS the template, so its value is the whole scheme + authority (+ any path
610
+ * prefix): `{baseUrl}/login/oauth/authorize`. The most dangerous position — the value names the
611
+ * scheme as well as the host.
612
+ */
613
+ ORIGIN = "ORIGIN",
614
+ /**
615
+ * The placeholder sits between `://` and the first `/`, `?` or `#` after it:
616
+ * `https://{cloud}/common/…`, `https://accounts.{location}/…`. Its value decides which host
617
+ * receives the request.
618
+ */
619
+ HOST = "HOST",
620
+ /** Anywhere after the authority. Percent-encoded, so it cannot move the request to another host. */
621
+ PATH_OR_QUERY = "PATH_OR_QUERY"
622
+ }
623
+ /** How a host- or origin-forming placeholder may be filled. See {@link ProviderRestOAuth2.endpointHostAllowances}. */
624
+ export declare enum ProviderOAuth2EndpointHostAllowanceKind {
625
+ /**
626
+ * Chosen at connect time from values the provider DECLARES — Microsoft's two login clouds,
627
+ * Zoho's data centres. A value outside the set is refused; a declared value is substituted
628
+ * verbatim (it is a hostname or origin, not a path segment to encode).
629
+ *
630
+ * `hostSuffixes` additionally admits `<dns-label>(.<dns-label>)*` followed by one of the suffixes,
631
+ * for a vendor whose per-customer host is a subdomain it controls (Salesforce My Domain,
632
+ * `<name>.my.salesforce.com`). On a HOST placeholder a suffix applies only when the placeholder is
633
+ * the WHOLE host. On an ORIGIN placeholder it admits exactly `https://<dns-labels><suffix>` — the
634
+ * scheme fixed to https, no port, path, userinfo, query or fragment — which is what a per-customer
635
+ * origin such as a Dataverse environment URL (`https://<org>.crm4.dynamics.com`, #991) needs.
636
+ */
637
+ DECLARED_VALUES = "DECLARED_VALUES",
638
+ /**
639
+ * Filled from the DEPLOYMENT's configured base URL for this provider — the REST contract's
640
+ * `baseUrl`, or the environment variable its `baseUrlEnvVarName` names. For a self-hosted vendor
641
+ * (Gitea) the operator names the instance once; a person connecting an account is never asked, and
642
+ * a value they supply is refused. Admitted in the ORIGIN position only.
643
+ */
644
+ DEPLOYMENT_BASE_URL = "DEPLOYMENT_BASE_URL",
645
+ /**
646
+ * Filled from a deployment environment variable dedicated to THIS placeholder, named by the
647
+ * allowance's `envVarName` (#992). For a vendor whose endpoints sit on more than one per-tenant host
648
+ * — Workday's `https://{authHost}/…/authorize` and `https://{apiHost}/…/token` — one base URL cannot
649
+ * name both, so each host is its own operator setting (`WORKDAY_AUTH_HOST`, `WORKDAY_API_HOST`).
650
+ *
651
+ * Like DEPLOYMENT_BASE_URL, never asked of a person connecting, and a value they supply is refused.
652
+ * The trade is explicit: the application serves the one vendor tenant (data centre) the operator
653
+ * names. Admitted on a HOST placeholder that is the whole host, with a DNS-name value.
654
+ */
655
+ DEPLOYMENT_CONFIGURED = "DEPLOYMENT_CONFIGURED"
656
+ }
657
+ export type ProviderOAuth2EndpointHostAllowance = {
658
+ readonly kind: ProviderOAuth2EndpointHostAllowanceKind.DECLARED_VALUES;
659
+ /** Exact admitted values, compared case-insensitively. A hostname for HOST, an origin for ORIGIN. */
660
+ readonly values: readonly string[];
661
+ /**
662
+ * A whole HOST, or an ORIGIN (admitting `https://<labels><suffix>` only). Each MUST begin with `.`,
663
+ * so `evilmy.salesforce.com` never matches `.my.salesforce.com`.
664
+ */
665
+ readonly hostSuffixes?: readonly string[];
666
+ /**
667
+ * ORIGIN only: an admitted value must ALSO have the same origin as the deployment's configured base
668
+ * URL (the REST contract's `baseUrl` / `baseUrlEnvVarName`) (#991 review F4).
669
+ *
670
+ * For a vendor whose token is minted for a per-customer environment and whose operations dial the
671
+ * operator's configured instance — Dataverse mints for the scope's `{hostUrl}` while operations go to
672
+ * `MICROSOFT_DYNAMICS_CRM_BASE_URL` — a connection naming another environment would hold a token that
673
+ * fails every call. So the two are required to agree at connect, and an unset base URL refuses the
674
+ * connect as a deployment gap rather than minting a token nothing can use.
675
+ */
676
+ readonly originMatchesDeploymentBaseUrl?: true;
677
+ } | {
678
+ readonly kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED;
679
+ /**
680
+ * The deployment environment variable holding the host — derived by the transposer as
681
+ * `<PROVIDER_ENV_PREFIX>_<PLACEHOLDER_IN_SCREAMING_SNAKE>` and declared as a REGISTRATION secret slot,
682
+ * without which the runtime environment builder would strip it.
683
+ */
684
+ readonly envVarName: string;
685
+ } | {
686
+ readonly kind: ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL;
687
+ /**
688
+ * A path the configured base URL carries and the OAuth2 endpoints do NOT — stripped before
689
+ * substitution, and REQUIRED to be present. Gitea's operation base is `<instance>/api/v1` while
690
+ * its OAuth2 endpoints hang off `<instance>`; stripping keeps an instance served under a sub-path
691
+ * correct, where taking only the origin would drop it.
692
+ */
693
+ readonly baseUrlPathSuffix?: string;
694
+ };
695
+ /** One `{placeholder}` occurrence in an OAuth2 endpoint template. */
696
+ export interface ProviderOAuth2EndpointPlaceholderOccurrence {
697
+ readonly name: string;
698
+ readonly position: ProviderOAuth2EndpointPlaceholderPosition;
699
+ /** Offset of the opening brace in the template. */
700
+ readonly index: number;
701
+ /** The whole `{name}` token, for substitution. */
702
+ readonly token: string;
703
+ /**
704
+ * HOST only: the token is the ENTIRE authority (`https://{cloud}/…`), as opposed to one part of it
705
+ * (`https://accounts.{location}/…`). A declared host SUFFIX is only meaningful for a whole host — on a
706
+ * partial one it would be concatenated with the text around it and admit a host nobody declared.
707
+ */
708
+ readonly occupiesWholeHost: boolean;
709
+ /**
710
+ * HOST only: when the token OPENS the authority and is followed by literal text up to the end of the authority —
711
+ * `https://{subdomain}.zendesk.com/…` → `.zendesk.com` — that literal text (#1015). A declared host SUFFIX equal to it
712
+ * bounds the composed host exactly as it bounds a whole host: the value is DNS labels, the template's own literal
713
+ * supplies the suffix, and `<labels>.zendesk.com` is the only shape that can result. Absent for a whole host, for a
714
+ * token that does not open the host (`accounts.{location}`), and for an ORIGIN or PATH token.
715
+ */
716
+ readonly literalHostSuffix?: string;
717
+ }
718
+ /**
719
+ * Why an OAuth2 endpoint TEMPLATE cannot be resolved safely, whatever values are supplied.
720
+ * See {@link findProviderOAuth2EndpointTemplateDefects}.
721
+ */
722
+ export declare enum ProviderOAuth2EndpointTemplateDefect {
723
+ /**
724
+ * The template neither begins `http://` / `https://` nor begins with a placeholder. The WHATWG URL
725
+ * parser reads `https:/{h}/t`, `https:{h}/t` and `https:` + two backslashes + `{h}/t` as `https://h/t`, so a string scan
726
+ * for `://` would call `{h}` a PATH placeholder, encode it (a hostname survives encoding untouched),
727
+ * and send the request — and the client secret — to whatever a caller typed.
728
+ */
729
+ NOT_AN_ABSOLUTE_TEMPLATE = "NOT_AN_ABSOLUTE_TEMPLATE",
730
+ /**
731
+ * An ORIGIN placeholder is followed by something other than `/`, `?`, `#` or the end —
732
+ * `{baseUrl}.evil.test/…`, `{baseUrl}:8443/…`, `{a}{b}/…`. The text after it would extend the host
733
+ * the origin value names.
734
+ */
735
+ ORIGIN_NOT_TERMINATED = "ORIGIN_NOT_TERMINATED",
736
+ /**
737
+ * One authority carries more than one placeholder (`https://{a}{b}/…`, `https://{sub}.{domain}/…`).
738
+ * Each value validated alone can still compose a host no declaration admits.
739
+ */
740
+ SEVERAL_PLACEHOLDERS_IN_AUTHORITY = "SEVERAL_PLACEHOLDERS_IN_AUTHORITY",
741
+ /**
742
+ * The authority after `://` is empty, begins with `/` or a backslash, or carries a backslash or `@`
743
+ * before the first `/`, `?` or `#`. The parser skips extra slashes (`https:///{h}/t` dials `{h}` as the
744
+ * HOST, while the `://` scan sees an empty authority and calls `{h}` a PATH), reads a backslash as a
745
+ * path separator, and
746
+ * reads text before `@` as userinfo — each makes the scan and the parser disagree about the host.
747
+ */
748
+ MALFORMED_AUTHORITY = "MALFORMED_AUTHORITY"
749
+ }
750
+ /**
751
+ * A DNS name: one or more LDH labels, lower-case (callers lower-case first).
752
+ * spec-cite: RFC 1123 §2.1 (a label may begin with a digit) and RFC 1035 §2.3.1 (letters, digits,
753
+ * hyphen; 63 octets per label).
754
+ */
755
+ export declare const PROVIDER_OAUTH2_DNS_NAME_PATTERN: RegExp;
756
+ /**
757
+ * Why a DECLARED host allowance cannot be applied where its placeholder sits — the position rules the
758
+ * transposer enforces at GENERATION time, so a broken declaration refuses the batch instead of being
759
+ * emitted and refused at every connect. Empty when the allowance is sound.
760
+ *
761
+ * The runtime resolver refuses each of these too; this exists so they are caught where a human is
762
+ * already looking at a diff rather than where a person is pressing Connect.
763
+ */
764
+ export declare function describeProviderOAuth2EndpointHostAllowanceDefects(placeholder: {
765
+ readonly position: ProviderOAuth2EndpointPlaceholderPosition;
766
+ readonly occupiesWholeHost: boolean;
767
+ readonly literalHostSuffix?: string;
768
+ }, allowance: ProviderOAuth2EndpointHostAllowance): readonly string[];
769
+ /**
770
+ * The defects that make a template unsafe to resolve, or an empty list. Shared by the runtime (which
771
+ * refuses) and the transposer (which refuses to emit), so neither can admit a shape the other rejects.
772
+ */
773
+ export declare function findProviderOAuth2EndpointTemplateDefects(template: string): readonly ProviderOAuth2EndpointTemplateDefect[];
774
+ /** The placeholder syntax an endpoint template uses — the same braces the operation path templates use. */
775
+ export declare const PROVIDER_OAUTH2_ENDPOINT_PLACEHOLDER_PATTERN: RegExp;
776
+ /**
777
+ * Classify every placeholder in an OAuth2 endpoint template by the URL component it forms.
778
+ *
779
+ * ONE function, shared by the transposer (which decides which placeholders need an allowance) and
780
+ * the runtime (which refuses an unallowed one), so the two cannot disagree about what a host is.
781
+ *
782
+ * Deliberately a string scan, not a URL parse: a template whose host is still `{cloud}` is not a
783
+ * parseable URL, which is exactly the population this classifies.
784
+ *
785
+ * - offset 0 → {@link ProviderOAuth2EndpointPlaceholderPosition.ORIGIN};
786
+ * - between the first `://` and the next `/`, `?` or `#` → HOST;
787
+ * - otherwise → PATH_OR_QUERY.
788
+ *
789
+ * This classification is only meaningful for a template with no
790
+ * {@link findProviderOAuth2EndpointTemplateDefects}: a template that does not begin `http(s)://` or a
791
+ * placeholder has no authority this scan can find, and every consumer must refuse it FIRST rather than
792
+ * trust the PATH_OR_QUERY answer it would get here.
793
+ */
794
+ export declare function classifyProviderOAuth2EndpointPlaceholders(template: string): readonly ProviderOAuth2EndpointPlaceholderOccurrence[];
280
795
  /**
281
796
  * Vendors whose credential is COMPUTED per request rather than sent as a fixed header.
282
797
  *