@wildo-ai/external-connectors-models 1.1.3 → 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 (120) hide show
  1. package/dist/esm/core/commons.external-connectors-models.schemas.d.ts +13 -132
  2. package/dist/esm/core/commons.external-connectors-models.schemas.d.ts.map +1 -1
  3. package/dist/esm/core/commons.external-connectors-models.schemas.js +13 -31
  4. package/dist/esm/core/commons.external-connectors-models.schemas.js.map +1 -1
  5. package/dist/esm/core/security.external-connectors-models.schemas.d.ts +40 -8
  6. package/dist/esm/core/security.external-connectors-models.schemas.d.ts.map +1 -1
  7. package/dist/esm/core/security.external-connectors-models.schemas.js +61 -14
  8. package/dist/esm/core/security.external-connectors-models.schemas.js.map +1 -1
  9. package/dist/esm/index.d.ts +2 -2
  10. package/dist/esm/index.d.ts.map +1 -1
  11. package/dist/esm/index.js +2 -2
  12. package/dist/esm/index.js.map +1 -1
  13. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts +167 -164
  14. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts.map +1 -1
  15. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js +188 -94
  16. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js.map +1 -1
  17. package/dist/esm/protocols/billing.standard-interface.schemas.d.ts +130 -10
  18. package/dist/esm/protocols/billing.standard-interface.schemas.d.ts.map +1 -1
  19. package/dist/esm/protocols/billing.standard-interface.schemas.js +42 -1
  20. package/dist/esm/protocols/billing.standard-interface.schemas.js.map +1 -1
  21. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.d.ts +73 -16
  22. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.d.ts.map +1 -1
  23. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.js +76 -7
  24. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.js.map +1 -1
  25. package/dist/esm/protocols/email.external-connectors-models.schemas.d.ts +1 -56
  26. package/dist/esm/protocols/email.external-connectors-models.schemas.d.ts.map +1 -1
  27. package/dist/esm/protocols/email.external-connectors-models.schemas.js +0 -20
  28. package/dist/esm/protocols/email.external-connectors-models.schemas.js.map +1 -1
  29. package/dist/esm/protocols/email.standard-interface.schemas.d.ts +1 -1
  30. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts +1 -16
  31. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts.map +1 -1
  32. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js +4 -9
  33. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js.map +1 -1
  34. package/dist/esm/protocols/frontend.external-connectors-models.schemas.d.ts +6 -13
  35. package/dist/esm/protocols/frontend.external-connectors-models.schemas.d.ts.map +1 -1
  36. package/dist/esm/protocols/frontend.external-connectors-models.schemas.js +0 -9
  37. package/dist/esm/protocols/frontend.external-connectors-models.schemas.js.map +1 -1
  38. package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts +1 -15
  39. package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts.map +1 -1
  40. package/dist/esm/protocols/hooks.external-connectors-models.schemas.js +1 -9
  41. package/dist/esm/protocols/hooks.external-connectors-models.schemas.js.map +1 -1
  42. package/dist/esm/protocols/image.external-connectors-models.schemas.d.ts +1 -18
  43. package/dist/esm/protocols/image.external-connectors-models.schemas.d.ts.map +1 -1
  44. package/dist/esm/protocols/image.external-connectors-models.schemas.js +1 -7
  45. package/dist/esm/protocols/image.external-connectors-models.schemas.js.map +1 -1
  46. package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts +92 -40
  47. package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts.map +1 -1
  48. package/dist/esm/protocols/llm.external-connectors-models.schemas.js +154 -41
  49. package/dist/esm/protocols/llm.external-connectors-models.schemas.js.map +1 -1
  50. package/dist/esm/protocols/oauth2-provider-assurance.definitions.d.ts +7 -0
  51. package/dist/esm/protocols/oauth2-provider-assurance.definitions.d.ts.map +1 -0
  52. package/dist/esm/protocols/oauth2-provider-assurance.definitions.js +36 -0
  53. package/dist/esm/protocols/oauth2-provider-assurance.definitions.js.map +1 -0
  54. package/dist/esm/protocols/oauth2-provider-assurance.schemas.d.ts +23 -0
  55. package/dist/esm/protocols/oauth2-provider-assurance.schemas.d.ts.map +1 -0
  56. package/dist/esm/protocols/oauth2-provider-assurance.schemas.js +25 -0
  57. package/dist/esm/protocols/oauth2-provider-assurance.schemas.js.map +1 -0
  58. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.d.ts +0 -148
  59. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.d.ts.map +1 -1
  60. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.js +1 -40
  61. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.js.map +1 -1
  62. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.d.ts +530 -15
  63. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.d.ts.map +1 -1
  64. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.js +380 -0
  65. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.js.map +1 -1
  66. package/dist/esm/protocols/sms.external-connectors-models.schemas.d.ts +0 -39
  67. package/dist/esm/protocols/sms.external-connectors-models.schemas.d.ts.map +1 -1
  68. package/dist/esm/protocols/sms.external-connectors-models.schemas.js +0 -13
  69. package/dist/esm/protocols/sms.external-connectors-models.schemas.js.map +1 -1
  70. package/dist/esm/protocols/sms.standard-interface.schemas.d.ts +66 -6
  71. package/dist/esm/protocols/sms.standard-interface.schemas.d.ts.map +1 -1
  72. package/dist/esm/protocols/sms.standard-interface.schemas.js +71 -1
  73. package/dist/esm/protocols/sms.standard-interface.schemas.js.map +1 -1
  74. package/dist/tsconfig.build.tsbuildinfo +1 -1
  75. package/package.json +2 -3
  76. package/dist/esm/.native.tsbuildinfo +0 -1
  77. package/dist/esm/core/protocols.external-connectors-models.schemas.d.ts +0 -74
  78. package/dist/esm/core/protocols.external-connectors-models.schemas.d.ts.map +0 -1
  79. package/dist/esm/core/protocols.external-connectors-models.schemas.js +0 -1
  80. package/dist/esm/core/protocols.external-connectors-models.schemas.js.map +0 -1
  81. package/dist/esm/features/core.external-connectors-models.schemas.d.ts +0 -0
  82. package/dist/esm/features/core.external-connectors-models.schemas.d.ts.map +0 -0
  83. package/dist/esm/features/core.external-connectors-models.schemas.js +0 -0
  84. package/dist/esm/features/core.external-connectors-models.schemas.js.map +0 -0
  85. package/dist/esm/features/email.external-connectors-models.schemas.d.ts +0 -0
  86. package/dist/esm/features/email.external-connectors-models.schemas.d.ts.map +0 -0
  87. package/dist/esm/features/email.external-connectors-models.schemas.js +0 -0
  88. package/dist/esm/features/email.external-connectors-models.schemas.js.map +0 -0
  89. package/dist/esm/features/hooks.external-connectors-models.schemas.d.ts +0 -0
  90. package/dist/esm/features/hooks.external-connectors-models.schemas.d.ts.map +0 -0
  91. package/dist/esm/features/hooks.external-connectors-models.schemas.js +0 -0
  92. package/dist/esm/features/hooks.external-connectors-models.schemas.js.map +0 -0
  93. package/dist/esm/features/sms.external-connectors-models.schemas.d.ts +0 -0
  94. package/dist/esm/features/sms.external-connectors-models.schemas.d.ts.map +0 -0
  95. package/dist/esm/features/sms.external-connectors-models.schemas.js +0 -0
  96. package/dist/esm/features/sms.external-connectors-models.schemas.js.map +0 -0
  97. package/dist/esm/protocols/a2a.external-connectors-models.schemas.d.ts +0 -0
  98. package/dist/esm/protocols/a2a.external-connectors-models.schemas.d.ts.map +0 -0
  99. package/dist/esm/protocols/a2a.external-connectors-models.schemas.js +0 -0
  100. package/dist/esm/protocols/a2a.external-connectors-models.schemas.js.map +0 -0
  101. package/dist/esm/protocols/git.external-connectors-models.schemas.d.ts +0 -0
  102. package/dist/esm/protocols/git.external-connectors-models.schemas.d.ts.map +0 -0
  103. package/dist/esm/protocols/git.external-connectors-models.schemas.js +0 -0
  104. package/dist/esm/protocols/git.external-connectors-models.schemas.js.map +0 -0
  105. package/dist/esm/protocols/grpc.external-connectors-models.schemas.d.ts +0 -0
  106. package/dist/esm/protocols/grpc.external-connectors-models.schemas.d.ts.map +0 -0
  107. package/dist/esm/protocols/grpc.external-connectors-models.schemas.js +0 -0
  108. package/dist/esm/protocols/grpc.external-connectors-models.schemas.js.map +0 -0
  109. package/dist/esm/protocols/mcp.external-connectors-models.schemas.d.ts +0 -0
  110. package/dist/esm/protocols/mcp.external-connectors-models.schemas.d.ts.map +0 -0
  111. package/dist/esm/protocols/mcp.external-connectors-models.schemas.js +0 -0
  112. package/dist/esm/protocols/mcp.external-connectors-models.schemas.js.map +0 -0
  113. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.d.ts +0 -37
  114. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.d.ts.map +0 -1
  115. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.js +0 -10
  116. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.js.map +0 -1
  117. package/dist/esm/protocols/saml.external-connectors-models.schemas.d.ts +0 -0
  118. package/dist/esm/protocols/saml.external-connectors-models.schemas.d.ts.map +0 -0
  119. package/dist/esm/protocols/saml.external-connectors-models.schemas.js +0 -0
  120. package/dist/esm/protocols/saml.external-connectors-models.schemas.js.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"rest-operations.external-connectors-models.schemas.d.ts","sourceRoot":"","sources":["../../../../src/protocols/rest-operations.external-connectors-models.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,OAAO,EAAE,gCAAgC,EAAE,MAAM,qEAAqE,CAAC;AACvH,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,qDAAqD,CAAC;AAE7G,oDAAoD;AACpD,oBAAY,6BAA6B;IACvC,sGAAsG;IACtG,IAAI,SAAS;IACb,KAA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G;AACH,oBAAY,yBAAyB;IACnC;;;;;OAKG;IACH,SAAS,cAAc;IACvB;;;;;OAKG;IACH,gBAAgB,qBAAqB;CACtC;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAC3C,8FAA8F;IAC9F,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,sCAAsC;IACtC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IACxC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,UAAU,CAAC,EAAE,iCAAiC,KAC3C,OAAO,CAAC,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"rest-operations.external-connectors-models.schemas.d.ts","sourceRoot":"","sources":["../../../../src/protocols/rest-operations.external-connectors-models.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,OAAO,EAAE,gCAAgC,EAAE,MAAM,qEAAqE,CAAC;AACvH,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,qDAAqD,CAAC;AAE7G,wJAAwJ;A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IAC3C,8FAA8F;IAC9F,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,sCAAsC;IACtC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IACxC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,UAAU,CAAC,EAAE,iCAAiC,KAC3C,OAAO,CAAC,OAAO,CAAC,CAAC"}
@@ -19,7 +19,31 @@
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
  */
46
+ /** @wildo_source:part:start external-connectors.models.rest-operation-contract facet:layer:shared facet:family:provider facet:audience:app-developer */
23
47
  /** Where a declared parameter rides on the wire. */
24
48
  export var ProviderRestParameterLocation;
25
49
  (function (ProviderRestParameterLocation) {
@@ -40,7 +64,31 @@ export var ProviderRestRequestBodyEncoding;
40
64
  ProviderRestRequestBodyEncoding["MULTIPART"] = "multipart";
41
65
  /** A raw text body; `contentType` on the declaration says which media type is sent. */
42
66
  ProviderRestRequestBodyEncoding["TEXT"] = "text";
67
+ /**
68
+ * Raw bytes (#367, folding #364) — an image, a PDF, a file upload a vendor takes as the whole body.
69
+ * `contentType` is REQUIRED, by the TEXT arm's rule: a body without its media type is not addressable.
70
+ * The input must supply a `Uint8Array` (a Node `Buffer` is one); nothing is converted into bytes here,
71
+ * because a string encoded under a guessed charset is exactly how an upload arrives corrupted.
72
+ */
73
+ ProviderRestRequestBodyEncoding["BINARY"] = "binary";
43
74
  })(ProviderRestRequestBodyEncoding || (ProviderRestRequestBodyEncoding = {}));
75
+ /**
76
+ * How the vendor's ANSWER is read (#367, folding #364).
77
+ *
78
+ * The request side could already send TEXT and the transport could already read TEXT and NONE, while
79
+ * the operation declaration could only say JSON — so an operation against a `text/csv` export could be
80
+ * authored and then failed at runtime as `INVALID_JSON`, a contract-breach message for a declaration
81
+ * the contract had no way to state. This is the missing half of that asymmetry.
82
+ */
83
+ export var ProviderRestResponseDecoding;
84
+ (function (ProviderRestResponseDecoding) {
85
+ /** Parse the body as JSON. The default, and what an absent `responseDecoding` means. */
86
+ ProviderRestResponseDecoding["JSON"] = "json";
87
+ /** Keep the body as text — a CSV export, an XML document. The operation's output is that string. */
88
+ ProviderRestResponseDecoding["TEXT"] = "text";
89
+ /** Read nothing — a write whose answer carries no information (a 204). The output is `undefined`. */
90
+ ProviderRestResponseDecoding["NONE"] = "none";
91
+ })(ProviderRestResponseDecoding || (ProviderRestResponseDecoding = {}));
44
92
  /**
45
93
  * How a listing operation continues. A HINT the caller reads, never something the executor acts
46
94
  * on: an executor that paged on its own would decide a caller's memory budget for it, and the
@@ -54,6 +102,338 @@ export var ProviderRestPaginationStyle;
54
102
  /** The vendor returns its own continuation URL (`@odata.nextLink`, `links.next`). */
55
103
  ProviderRestPaginationStyle["LINK"] = "link";
56
104
  })(ProviderRestPaginationStyle || (ProviderRestPaginationStyle = {}));
105
+ /**
106
+ * Where a `{placeholder}` sits inside one OAuth2 SCOPE entry. See {@link classifyProviderOAuth2ScopePlaceholder}.
107
+ *
108
+ * Deliberately not {@link ProviderOAuth2EndpointPlaceholderPosition}: a scope is not a URL, and the
109
+ * endpoint scan would call `{permissions}` an ORIGIN (it begins the string and nothing follows it).
110
+ */
111
+ export var ProviderOAuth2ScopePlaceholderPosition;
112
+ (function (ProviderOAuth2ScopePlaceholderPosition) {
113
+ /**
114
+ * The placeholder begins the scope and is followed by `/` — `{hostUrl}/.default`. Its value is an
115
+ * https ORIGIN, admitted only within {@link ProviderRestOAuth2.endpointHostAllowances}.
116
+ */
117
+ ProviderOAuth2ScopePlaceholderPosition["ORIGIN"] = "ORIGIN";
118
+ /**
119
+ * The placeholder is the entire scope entry — `{permissions}`. Its value is one of
120
+ * {@link ProviderRestOAuth2.scopeValueAllowances}.
121
+ */
122
+ ProviderOAuth2ScopePlaceholderPosition["WHOLE_SCOPE"] = "WHOLE_SCOPE";
123
+ })(ProviderOAuth2ScopePlaceholderPosition || (ProviderOAuth2ScopePlaceholderPosition = {}));
124
+ /** Why a scope entry cannot be resolved safely, whatever is supplied. See {@link findProviderOAuth2ScopeTemplateDefects}. */
125
+ export var ProviderOAuth2ScopeTemplateDefect;
126
+ (function (ProviderOAuth2ScopeTemplateDefect) {
127
+ /**
128
+ * A placeholder sits anywhere except at the start of the scope followed by `/` or the end —
129
+ * `api://{x}/.default`, `{x}.default`, `openid {x}`. Such a value would be concatenated with text
130
+ * around it into a resource or scope nobody declared.
131
+ */
132
+ ProviderOAuth2ScopeTemplateDefect["UNSUPPORTED_PLACEHOLDER_POSITION"] = "UNSUPPORTED_PLACEHOLDER_POSITION";
133
+ /** More than one placeholder in one scope entry: each value validated alone can compose an undeclared one. */
134
+ ProviderOAuth2ScopeTemplateDefect["SEVERAL_PLACEHOLDERS"] = "SEVERAL_PLACEHOLDERS";
135
+ /** A `{` or `}` that is not part of a well-formed placeholder: a vendor can never grant a scope carrying one. */
136
+ ProviderOAuth2ScopeTemplateDefect["STRAY_BRACE"] = "STRAY_BRACE";
137
+ })(ProviderOAuth2ScopeTemplateDefect || (ProviderOAuth2ScopeTemplateDefect = {}));
138
+ /**
139
+ * The defects that make a scope entry unsafe to resolve, or an empty list. Shared by the runtime (which
140
+ * refuses) and the transposer (which refuses to emit), so neither admits a shape the other rejects.
141
+ */
142
+ export function findProviderOAuth2ScopeTemplateDefects(scope) {
143
+ const occurrences = [...scope.matchAll(PROVIDER_OAUTH2_ENDPOINT_PLACEHOLDER_PATTERN)];
144
+ const withoutPlaceholders = scope.replace(PROVIDER_OAUTH2_ENDPOINT_PLACEHOLDER_PATTERN, '');
145
+ const defects = [];
146
+ if (withoutPlaceholders.includes('{') || withoutPlaceholders.includes('}'))
147
+ defects.push(ProviderOAuth2ScopeTemplateDefect.STRAY_BRACE);
148
+ if (occurrences.length > 1)
149
+ defects.push(ProviderOAuth2ScopeTemplateDefect.SEVERAL_PLACEHOLDERS);
150
+ const first = occurrences[0];
151
+ if (first !== undefined) {
152
+ const next = scope.charAt((first.index ?? 0) + first[0].length);
153
+ if ((first.index ?? 0) !== 0 || (next !== '' && next !== '/'))
154
+ defects.push(ProviderOAuth2ScopeTemplateDefect.UNSUPPORTED_PLACEHOLDER_POSITION);
155
+ }
156
+ return defects;
157
+ }
158
+ /**
159
+ * Classify the one placeholder a scope entry may carry, or `undefined` when it carries none.
160
+ *
161
+ * ONE function, shared by the transposer and the runtime, like its endpoint counterpart. Meaningful only
162
+ * for a scope with no {@link findProviderOAuth2ScopeTemplateDefects}; every consumer refuses those first.
163
+ */
164
+ export function classifyProviderOAuth2ScopePlaceholder(scope) {
165
+ const match = /^\{([A-Za-z_][A-Za-z0-9_]*)\}/.exec(scope);
166
+ if (match === null)
167
+ return undefined;
168
+ return {
169
+ name: match[1],
170
+ position: match[0].length === scope.length ? ProviderOAuth2ScopePlaceholderPosition.WHOLE_SCOPE : ProviderOAuth2ScopePlaceholderPosition.ORIGIN,
171
+ token: match[0],
172
+ };
173
+ }
174
+ /**
175
+ * One scope token: printable ASCII except space, `"` and backslash.
176
+ * spec-cite: RFC 6749 §3.3 (scope-token = 1*( %x21 / %x23-5B / %x5D-7E )).
177
+ * Braces are additionally refused: a value carrying one would read as a placeholder nobody resolves.
178
+ */
179
+ const PROVIDER_OAUTH2_SCOPE_TOKEN_PATTERN = /^[\x21\x23-\x5B\x5D-\x7A\x7C\x7E]+$/;
180
+ /**
181
+ * Why a declared whole-scope allowance cannot be applied, or an empty list. Enforced at generation so a
182
+ * broken set refuses the batch; the runtime matches exactly and never trusts a value it did not declare.
183
+ */
184
+ export function describeProviderOAuth2ScopeValueAllowanceDefects(allowance) {
185
+ const defects = [];
186
+ if (!Array.isArray(allowance.values) || allowance.values.length === 0)
187
+ return ['a scope value allowance admits nothing'];
188
+ for (const value of allowance.values) {
189
+ const tokens = typeof value === 'string' ? value.split(' ') : [];
190
+ if (typeof value !== 'string' || value.length === 0 || !tokens.every((token) => PROVIDER_OAUTH2_SCOPE_TOKEN_PATTERN.test(token))) {
191
+ defects.push(`'${String(value)}' is not a space-delimited list of scope tokens`);
192
+ }
193
+ }
194
+ return defects;
195
+ }
196
+ /**
197
+ * Where a `{placeholder}` sits inside an OAuth2 endpoint template — the classification the host
198
+ * allow-list keys on. See {@link classifyProviderOAuth2EndpointPlaceholders}.
199
+ */
200
+ export var ProviderOAuth2EndpointPlaceholderPosition;
201
+ (function (ProviderOAuth2EndpointPlaceholderPosition) {
202
+ /**
203
+ * The placeholder BEGINS the template, so its value is the whole scheme + authority (+ any path
204
+ * prefix): `{baseUrl}/login/oauth/authorize`. The most dangerous position — the value names the
205
+ * scheme as well as the host.
206
+ */
207
+ ProviderOAuth2EndpointPlaceholderPosition["ORIGIN"] = "ORIGIN";
208
+ /**
209
+ * The placeholder sits between `://` and the first `/`, `?` or `#` after it:
210
+ * `https://{cloud}/common/…`, `https://accounts.{location}/…`. Its value decides which host
211
+ * receives the request.
212
+ */
213
+ ProviderOAuth2EndpointPlaceholderPosition["HOST"] = "HOST";
214
+ /** Anywhere after the authority. Percent-encoded, so it cannot move the request to another host. */
215
+ ProviderOAuth2EndpointPlaceholderPosition["PATH_OR_QUERY"] = "PATH_OR_QUERY";
216
+ })(ProviderOAuth2EndpointPlaceholderPosition || (ProviderOAuth2EndpointPlaceholderPosition = {}));
217
+ /** How a host- or origin-forming placeholder may be filled. See {@link ProviderRestOAuth2.endpointHostAllowances}. */
218
+ export var ProviderOAuth2EndpointHostAllowanceKind;
219
+ (function (ProviderOAuth2EndpointHostAllowanceKind) {
220
+ /**
221
+ * Chosen at connect time from values the provider DECLARES — Microsoft's two login clouds,
222
+ * Zoho's data centres. A value outside the set is refused; a declared value is substituted
223
+ * verbatim (it is a hostname or origin, not a path segment to encode).
224
+ *
225
+ * `hostSuffixes` additionally admits `<dns-label>(.<dns-label>)*` followed by one of the suffixes,
226
+ * for a vendor whose per-customer host is a subdomain it controls (Salesforce My Domain,
227
+ * `<name>.my.salesforce.com`). On a HOST placeholder a suffix applies only when the placeholder is
228
+ * the WHOLE host. On an ORIGIN placeholder it admits exactly `https://<dns-labels><suffix>` — the
229
+ * scheme fixed to https, no port, path, userinfo, query or fragment — which is what a per-customer
230
+ * origin such as a Dataverse environment URL (`https://<org>.crm4.dynamics.com`, #991) needs.
231
+ */
232
+ ProviderOAuth2EndpointHostAllowanceKind["DECLARED_VALUES"] = "DECLARED_VALUES";
233
+ /**
234
+ * Filled from the DEPLOYMENT's configured base URL for this provider — the REST contract's
235
+ * `baseUrl`, or the environment variable its `baseUrlEnvVarName` names. For a self-hosted vendor
236
+ * (Gitea) the operator names the instance once; a person connecting an account is never asked, and
237
+ * a value they supply is refused. Admitted in the ORIGIN position only.
238
+ */
239
+ ProviderOAuth2EndpointHostAllowanceKind["DEPLOYMENT_BASE_URL"] = "DEPLOYMENT_BASE_URL";
240
+ /**
241
+ * Filled from a deployment environment variable dedicated to THIS placeholder, named by the
242
+ * allowance's `envVarName` (#992). For a vendor whose endpoints sit on more than one per-tenant host
243
+ * — Workday's `https://{authHost}/…/authorize` and `https://{apiHost}/…/token` — one base URL cannot
244
+ * name both, so each host is its own operator setting (`WORKDAY_AUTH_HOST`, `WORKDAY_API_HOST`).
245
+ *
246
+ * Like DEPLOYMENT_BASE_URL, never asked of a person connecting, and a value they supply is refused.
247
+ * The trade is explicit: the application serves the one vendor tenant (data centre) the operator
248
+ * names. Admitted on a HOST placeholder that is the whole host, with a DNS-name value.
249
+ */
250
+ ProviderOAuth2EndpointHostAllowanceKind["DEPLOYMENT_CONFIGURED"] = "DEPLOYMENT_CONFIGURED";
251
+ })(ProviderOAuth2EndpointHostAllowanceKind || (ProviderOAuth2EndpointHostAllowanceKind = {}));
252
+ /**
253
+ * Why an OAuth2 endpoint TEMPLATE cannot be resolved safely, whatever values are supplied.
254
+ * See {@link findProviderOAuth2EndpointTemplateDefects}.
255
+ */
256
+ export var ProviderOAuth2EndpointTemplateDefect;
257
+ (function (ProviderOAuth2EndpointTemplateDefect) {
258
+ /**
259
+ * The template neither begins `http://` / `https://` nor begins with a placeholder. The WHATWG URL
260
+ * parser reads `https:/{h}/t`, `https:{h}/t` and `https:` + two backslashes + `{h}/t` as `https://h/t`, so a string scan
261
+ * for `://` would call `{h}` a PATH placeholder, encode it (a hostname survives encoding untouched),
262
+ * and send the request — and the client secret — to whatever a caller typed.
263
+ */
264
+ ProviderOAuth2EndpointTemplateDefect["NOT_AN_ABSOLUTE_TEMPLATE"] = "NOT_AN_ABSOLUTE_TEMPLATE";
265
+ /**
266
+ * An ORIGIN placeholder is followed by something other than `/`, `?`, `#` or the end —
267
+ * `{baseUrl}.evil.test/…`, `{baseUrl}:8443/…`, `{a}{b}/…`. The text after it would extend the host
268
+ * the origin value names.
269
+ */
270
+ ProviderOAuth2EndpointTemplateDefect["ORIGIN_NOT_TERMINATED"] = "ORIGIN_NOT_TERMINATED";
271
+ /**
272
+ * One authority carries more than one placeholder (`https://{a}{b}/…`, `https://{sub}.{domain}/…`).
273
+ * Each value validated alone can still compose a host no declaration admits.
274
+ */
275
+ ProviderOAuth2EndpointTemplateDefect["SEVERAL_PLACEHOLDERS_IN_AUTHORITY"] = "SEVERAL_PLACEHOLDERS_IN_AUTHORITY";
276
+ /**
277
+ * The authority after `://` is empty, begins with `/` or a backslash, or carries a backslash or `@`
278
+ * before the first `/`, `?` or `#`. The parser skips extra slashes (`https:///{h}/t` dials `{h}` as the
279
+ * HOST, while the `://` scan sees an empty authority and calls `{h}` a PATH), reads a backslash as a
280
+ * path separator, and
281
+ * reads text before `@` as userinfo — each makes the scan and the parser disagree about the host.
282
+ */
283
+ ProviderOAuth2EndpointTemplateDefect["MALFORMED_AUTHORITY"] = "MALFORMED_AUTHORITY";
284
+ })(ProviderOAuth2EndpointTemplateDefect || (ProviderOAuth2EndpointTemplateDefect = {}));
285
+ /**
286
+ * A DNS name: one or more LDH labels, lower-case (callers lower-case first).
287
+ * spec-cite: RFC 1123 §2.1 (a label may begin with a digit) and RFC 1035 §2.3.1 (letters, digits,
288
+ * hyphen; 63 octets per label).
289
+ */
290
+ export const PROVIDER_OAUTH2_DNS_NAME_PATTERN = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/;
291
+ /**
292
+ * Why a DECLARED host allowance cannot be applied where its placeholder sits — the position rules the
293
+ * transposer enforces at GENERATION time, so a broken declaration refuses the batch instead of being
294
+ * emitted and refused at every connect. Empty when the allowance is sound.
295
+ *
296
+ * The runtime resolver refuses each of these too; this exists so they are caught where a human is
297
+ * already looking at a diff rather than where a person is pressing Connect.
298
+ */
299
+ export function describeProviderOAuth2EndpointHostAllowanceDefects(placeholder, allowance) {
300
+ const defects = [];
301
+ if (placeholder.position === ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY) {
302
+ return ['a PATH or QUERY placeholder takes no host allowance'];
303
+ }
304
+ if (allowance.kind === ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_BASE_URL) {
305
+ if (placeholder.position !== ProviderOAuth2EndpointPlaceholderPosition.ORIGIN) {
306
+ defects.push('DEPLOYMENT_BASE_URL fills an ORIGIN only, and this placeholder does not begin its endpoint');
307
+ }
308
+ if (allowance.baseUrlPathSuffix !== undefined && !/^\/[^?#]*[^/?#]$/.test(allowance.baseUrlPathSuffix)) {
309
+ defects.push(`baseUrlPathSuffix '${allowance.baseUrlPathSuffix}' must begin with '/' and name a path (no trailing '/', query or fragment)`);
310
+ }
311
+ return defects;
312
+ }
313
+ if (allowance.kind === ProviderOAuth2EndpointHostAllowanceKind.DEPLOYMENT_CONFIGURED) {
314
+ if (placeholder.position !== ProviderOAuth2EndpointPlaceholderPosition.HOST || !placeholder.occupiesWholeHost) {
315
+ defects.push('DEPLOYMENT_CONFIGURED fills a WHOLE HOST only, and this placeholder is not one');
316
+ }
317
+ if (typeof allowance.envVarName !== 'string' || !/^[A-Z][A-Z0-9_]*$/.test(allowance.envVarName)) {
318
+ defects.push(`envVarName '${String(allowance.envVarName)}' is not an upper-case environment variable name`);
319
+ }
320
+ return defects;
321
+ }
322
+ if (allowance.originMatchesDeploymentBaseUrl === true && placeholder.position !== ProviderOAuth2EndpointPlaceholderPosition.ORIGIN) {
323
+ defects.push('originMatchesDeploymentBaseUrl applies to an ORIGIN only, and this placeholder is not one');
324
+ }
325
+ if (allowance.values.length === 0 && (allowance.hostSuffixes ?? []).length === 0) {
326
+ defects.push('DECLARED_VALUES admits nothing');
327
+ }
328
+ for (const value of allowance.values) {
329
+ if (placeholder.position === ProviderOAuth2EndpointPlaceholderPosition.ORIGIN) {
330
+ // Matched as text, not with `URL`: this package compiles without a DOM or Node lib. A lower-case
331
+ // `https://` + DNS name, with nothing after the host but an optional port, is exactly an origin as
332
+ // `URL#origin` would print it back.
333
+ const match = /^https:\/\/([^:/?#@]+)(?::\d{1,5})?$/.exec(value);
334
+ if (match === null || !PROVIDER_OAUTH2_DNS_NAME_PATTERN.test(match[1])) {
335
+ defects.push(`'${value}' is not an https origin (scheme and lower-case host only)`);
336
+ }
337
+ }
338
+ else if (!PROVIDER_OAUTH2_DNS_NAME_PATTERN.test(value.toLowerCase())) {
339
+ defects.push(`'${value}' is not a DNS name`);
340
+ }
341
+ }
342
+ for (const suffix of allowance.hostSuffixes ?? []) {
343
+ // An ORIGIN is a whole authority by construction (the scheme is then fixed to https); a HOST
344
+ // placeholder qualifies only when nothing surrounds it inside the authority.
345
+ // A placeholder that OPENS the host qualifies too, but only for the ONE suffix the template itself writes after
346
+ // it (#1015): any other suffix would be concatenated with that literal into a host nobody declared.
347
+ const opensHostWithThisSuffix = placeholder.literalHostSuffix !== undefined && placeholder.literalHostSuffix.toLowerCase() === suffix.toLowerCase();
348
+ if (placeholder.position === ProviderOAuth2EndpointPlaceholderPosition.HOST && !placeholder.occupiesWholeHost && !opensHostWithThisSuffix) {
349
+ defects.push(`host suffix '${suffix}' on a placeholder that is not the whole host`);
350
+ continue;
351
+ }
352
+ const labels = suffix.startsWith('.') ? suffix.slice(1) : '';
353
+ if (!PROVIDER_OAUTH2_DNS_NAME_PATTERN.test(labels.toLowerCase()) || !labels.includes('.')) {
354
+ defects.push(`host suffix '${suffix}' must begin with '.' and name at least two DNS labels (a bare '.com' admits every host under a TLD)`);
355
+ }
356
+ }
357
+ return defects;
358
+ }
359
+ /**
360
+ * The defects that make a template unsafe to resolve, or an empty list. Shared by the runtime (which
361
+ * refuses) and the transposer (which refuses to emit), so neither can admit a shape the other rejects.
362
+ */
363
+ export function findProviderOAuth2EndpointTemplateDefects(template) {
364
+ const defects = [];
365
+ const leadingPlaceholder = /^\{[A-Za-z_][A-Za-z0-9_]*\}/.exec(template);
366
+ if (!/^https?:\/\//i.test(template) && leadingPlaceholder === null) {
367
+ return [ProviderOAuth2EndpointTemplateDefect.NOT_AN_ABSOLUTE_TEMPLATE];
368
+ }
369
+ if (leadingPlaceholder !== null) {
370
+ const next = template.charAt(leadingPlaceholder[0].length);
371
+ if (next !== '' && next !== '/' && next !== '?' && next !== '#')
372
+ defects.push(ProviderOAuth2EndpointTemplateDefect.ORIGIN_NOT_TERMINATED);
373
+ }
374
+ else {
375
+ const afterScheme = template.slice(template.indexOf('://') + 3);
376
+ const authorityEnd = afterScheme.search(/[/?#]/);
377
+ const authority = authorityEnd < 0 ? afterScheme : afterScheme.slice(0, authorityEnd);
378
+ if (authority === '' || authority.includes('\\') || authority.includes('@')) {
379
+ defects.push(ProviderOAuth2EndpointTemplateDefect.MALFORMED_AUTHORITY);
380
+ return defects;
381
+ }
382
+ const hostPlaceholders = classifyProviderOAuth2EndpointPlaceholders(template)
383
+ .filter((occurrence) => occurrence.position === ProviderOAuth2EndpointPlaceholderPosition.HOST);
384
+ if (hostPlaceholders.length > 1)
385
+ defects.push(ProviderOAuth2EndpointTemplateDefect.SEVERAL_PLACEHOLDERS_IN_AUTHORITY);
386
+ }
387
+ return defects;
388
+ }
389
+ /** The placeholder syntax an endpoint template uses — the same braces the operation path templates use. */
390
+ export const PROVIDER_OAUTH2_ENDPOINT_PLACEHOLDER_PATTERN = /\{([A-Za-z_][A-Za-z0-9_]*)\}/g;
391
+ /**
392
+ * Classify every placeholder in an OAuth2 endpoint template by the URL component it forms.
393
+ *
394
+ * ONE function, shared by the transposer (which decides which placeholders need an allowance) and
395
+ * the runtime (which refuses an unallowed one), so the two cannot disagree about what a host is.
396
+ *
397
+ * Deliberately a string scan, not a URL parse: a template whose host is still `{cloud}` is not a
398
+ * parseable URL, which is exactly the population this classifies.
399
+ *
400
+ * - offset 0 → {@link ProviderOAuth2EndpointPlaceholderPosition.ORIGIN};
401
+ * - between the first `://` and the next `/`, `?` or `#` → HOST;
402
+ * - otherwise → PATH_OR_QUERY.
403
+ *
404
+ * This classification is only meaningful for a template with no
405
+ * {@link findProviderOAuth2EndpointTemplateDefects}: a template that does not begin `http(s)://` or a
406
+ * placeholder has no authority this scan can find, and every consumer must refuse it FIRST rather than
407
+ * trust the PATH_OR_QUERY answer it would get here.
408
+ */
409
+ export function classifyProviderOAuth2EndpointPlaceholders(template) {
410
+ const schemeSeparator = template.indexOf('://');
411
+ let authorityEnd = -1;
412
+ if (schemeSeparator >= 0) {
413
+ const rest = template.slice(schemeSeparator + 3);
414
+ const end = rest.search(/[/?#]/);
415
+ authorityEnd = end < 0 ? template.length : schemeSeparator + 3 + end;
416
+ }
417
+ const occurrences = [];
418
+ for (const match of template.matchAll(PROVIDER_OAUTH2_ENDPOINT_PLACEHOLDER_PATTERN)) {
419
+ const index = match.index ?? 0;
420
+ const position = index === 0
421
+ ? ProviderOAuth2EndpointPlaceholderPosition.ORIGIN
422
+ : schemeSeparator >= 0 && index > schemeSeparator && index < authorityEnd
423
+ ? ProviderOAuth2EndpointPlaceholderPosition.HOST
424
+ : ProviderOAuth2EndpointPlaceholderPosition.PATH_OR_QUERY;
425
+ const occupiesWholeHost = position === ProviderOAuth2EndpointPlaceholderPosition.HOST
426
+ && index === schemeSeparator + 3
427
+ && index + match[0].length === authorityEnd;
428
+ const followingLiteral = position === ProviderOAuth2EndpointPlaceholderPosition.HOST && !occupiesWholeHost && index === schemeSeparator + 3
429
+ ? template.slice(index + match[0].length, authorityEnd)
430
+ : undefined;
431
+ // Only a PURELY literal remainder qualifies: a second placeholder in the authority is refused as malformed anyway.
432
+ const literalHostSuffix = followingLiteral !== undefined && followingLiteral.startsWith('.') && !followingLiteral.includes('{') ? followingLiteral : undefined;
433
+ occurrences.push({ name: match[1], position, index, token: match[0], occupiesWholeHost, ...(literalHostSuffix === undefined ? {} : { literalHostSuffix }) });
434
+ }
435
+ return occurrences;
436
+ }
57
437
  /**
58
438
  * Vendors whose credential is COMPUTED per request rather than sent as a fixed header.
59
439
  *