@wildo-ai/external-connectors-models 1.1.10 → 1.1.12

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 (110) hide show
  1. package/dist/esm/companion-exports.js.map +1 -1
  2. package/dist/esm/core/commons.external-connectors-models.schemas.d.ts +140 -0
  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 +203 -0
  5. package/dist/esm/core/commons.external-connectors-models.schemas.js.map +1 -1
  6. package/dist/esm/core/oauth2.enums.d.ts.map +1 -1
  7. package/dist/esm/core/oauth2.enums.js.map +1 -1
  8. package/dist/esm/core/operation-classification.external-connectors-models.schemas.d.ts.map +1 -1
  9. package/dist/esm/core/operation-classification.external-connectors-models.schemas.js.map +1 -1
  10. package/dist/esm/core/operations.external-connectors-models.schemas.js.map +1 -1
  11. package/dist/esm/core/security.external-connectors-models.schemas.d.ts +4 -2
  12. package/dist/esm/core/security.external-connectors-models.schemas.d.ts.map +1 -1
  13. package/dist/esm/core/security.external-connectors-models.schemas.js +10 -4
  14. package/dist/esm/core/security.external-connectors-models.schemas.js.map +1 -1
  15. package/dist/esm/index.d.ts +8 -0
  16. package/dist/esm/index.d.ts.map +1 -1
  17. package/dist/esm/index.js +8 -0
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts +9 -42
  20. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts.map +1 -1
  21. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js +31 -1
  22. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js.map +1 -1
  23. package/dist/esm/protocols/billing.standard-interface.schemas.d.ts +64 -3
  24. package/dist/esm/protocols/billing.standard-interface.schemas.d.ts.map +1 -1
  25. package/dist/esm/protocols/billing.standard-interface.schemas.js +23 -2
  26. package/dist/esm/protocols/billing.standard-interface.schemas.js.map +1 -1
  27. package/dist/esm/protocols/content-safety.external-connectors-models.schemas.d.ts +150 -0
  28. package/dist/esm/protocols/content-safety.external-connectors-models.schemas.d.ts.map +1 -0
  29. package/dist/esm/protocols/content-safety.external-connectors-models.schemas.js +182 -0
  30. package/dist/esm/protocols/content-safety.external-connectors-models.schemas.js.map +1 -0
  31. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.d.ts +41 -9
  32. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.d.ts.map +1 -1
  33. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.js +40 -14
  34. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.js.map +1 -1
  35. package/dist/esm/protocols/electronic-signature.external-connectors-models.schemas.d.ts +157 -0
  36. package/dist/esm/protocols/electronic-signature.external-connectors-models.schemas.d.ts.map +1 -0
  37. package/dist/esm/protocols/electronic-signature.external-connectors-models.schemas.js +134 -0
  38. package/dist/esm/protocols/electronic-signature.external-connectors-models.schemas.js.map +1 -0
  39. package/dist/esm/protocols/email-inbound.standard-interface.schemas.d.ts +85 -0
  40. package/dist/esm/protocols/email-inbound.standard-interface.schemas.d.ts.map +1 -1
  41. package/dist/esm/protocols/email-inbound.standard-interface.schemas.js +46 -2
  42. package/dist/esm/protocols/email-inbound.standard-interface.schemas.js.map +1 -1
  43. package/dist/esm/protocols/email.external-connectors-models.schemas.js.map +1 -1
  44. package/dist/esm/protocols/email.standard-interface.schemas.d.ts.map +1 -1
  45. package/dist/esm/protocols/email.standard-interface.schemas.js +4 -0
  46. package/dist/esm/protocols/email.standard-interface.schemas.js.map +1 -1
  47. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts +86 -10
  48. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts.map +1 -1
  49. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js +146 -7
  50. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js.map +1 -1
  51. package/dist/esm/protocols/file-storage.standard-interface.d.ts +14 -1
  52. package/dist/esm/protocols/file-storage.standard-interface.d.ts.map +1 -1
  53. package/dist/esm/protocols/file-storage.standard-interface.js +6 -0
  54. package/dist/esm/protocols/file-storage.standard-interface.js.map +1 -1
  55. package/dist/esm/protocols/frontend.external-connectors-models.schemas.js.map +1 -1
  56. package/dist/esm/protocols/graphql-operations.external-connectors-models.schemas.d.ts +254 -0
  57. package/dist/esm/protocols/graphql-operations.external-connectors-models.schemas.d.ts.map +1 -0
  58. package/dist/esm/protocols/graphql-operations.external-connectors-models.schemas.js +480 -0
  59. package/dist/esm/protocols/graphql-operations.external-connectors-models.schemas.js.map +1 -0
  60. package/dist/esm/protocols/hooks-capability.external-connectors-models.schemas.d.ts +7 -2
  61. package/dist/esm/protocols/hooks-capability.external-connectors-models.schemas.d.ts.map +1 -1
  62. package/dist/esm/protocols/hooks-capability.external-connectors-models.schemas.js.map +1 -1
  63. package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts +482 -7
  64. package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts.map +1 -1
  65. package/dist/esm/protocols/hooks.external-connectors-models.schemas.js +348 -0
  66. package/dist/esm/protocols/hooks.external-connectors-models.schemas.js.map +1 -1
  67. package/dist/esm/protocols/image.external-connectors-models.schemas.js.map +1 -1
  68. package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts +165 -8
  69. package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts.map +1 -1
  70. package/dist/esm/protocols/llm.external-connectors-models.schemas.js +243 -20
  71. package/dist/esm/protocols/llm.external-connectors-models.schemas.js.map +1 -1
  72. package/dist/esm/protocols/oauth2-provider-assurance.definitions.js.map +1 -1
  73. package/dist/esm/protocols/oauth2-provider-assurance.schemas.js.map +1 -1
  74. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.js.map +1 -1
  75. package/dist/esm/protocols/provider-configuration-authoring.external-connectors-models.schemas.d.ts +52 -0
  76. package/dist/esm/protocols/provider-configuration-authoring.external-connectors-models.schemas.d.ts.map +1 -0
  77. package/dist/esm/protocols/provider-configuration-authoring.external-connectors-models.schemas.js +132 -0
  78. package/dist/esm/protocols/provider-configuration-authoring.external-connectors-models.schemas.js.map +1 -0
  79. package/dist/esm/protocols/provider-connection-parameters.external-connectors-models.d.ts +111 -0
  80. package/dist/esm/protocols/provider-connection-parameters.external-connectors-models.d.ts.map +1 -0
  81. package/dist/esm/protocols/provider-connection-parameters.external-connectors-models.js +203 -0
  82. package/dist/esm/protocols/provider-connection-parameters.external-connectors-models.js.map +1 -0
  83. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.d.ts +6 -0
  84. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.d.ts.map +1 -1
  85. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.js +13 -7
  86. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.js.map +1 -1
  87. package/dist/esm/protocols/provider-vendor-registration.external-connectors-models.d.ts +50 -0
  88. package/dist/esm/protocols/provider-vendor-registration.external-connectors-models.d.ts.map +1 -0
  89. package/dist/esm/protocols/provider-vendor-registration.external-connectors-models.js +30 -0
  90. package/dist/esm/protocols/provider-vendor-registration.external-connectors-models.js.map +1 -0
  91. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.d.ts +1165 -11
  92. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.d.ts.map +1 -1
  93. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.js +1217 -9
  94. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.js.map +1 -1
  95. package/dist/esm/protocols/service-account-token.external-connectors-models.schemas.d.ts +73 -0
  96. package/dist/esm/protocols/service-account-token.external-connectors-models.schemas.d.ts.map +1 -0
  97. package/dist/esm/protocols/service-account-token.external-connectors-models.schemas.js +82 -0
  98. package/dist/esm/protocols/service-account-token.external-connectors-models.schemas.js.map +1 -0
  99. package/dist/esm/protocols/sms.external-connectors-models.schemas.js.map +1 -1
  100. package/dist/esm/protocols/sms.standard-interface.schemas.d.ts +79 -1
  101. package/dist/esm/protocols/sms.standard-interface.schemas.d.ts.map +1 -1
  102. package/dist/esm/protocols/sms.standard-interface.schemas.js +93 -0
  103. package/dist/esm/protocols/sms.standard-interface.schemas.js.map +1 -1
  104. package/dist/esm/protocols/subject-erasure-effect.standard-interface.d.ts +133 -0
  105. package/dist/esm/protocols/subject-erasure-effect.standard-interface.d.ts.map +1 -0
  106. package/dist/esm/protocols/subject-erasure-effect.standard-interface.js +61 -0
  107. package/dist/esm/protocols/subject-erasure-effect.standard-interface.js.map +1 -0
  108. package/dist/tsconfig.build.tsbuildinfo +1 -1
  109. package/package.json +5 -5
  110. package/dist/esm/.native.tsbuildinfo +0 -1
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Standard Subject Erasure Effect Interface (#2006)
3
+ * --------
4
+ * The contract a PROVIDER implements so a subject erasure reaches what its vendor keeps about the erased
5
+ * person. It is what a provider's `complianceProfile.subjectErasure.stance = EXTERNAL_ERASURE_OPERATION`
6
+ * promises. Before this, only the engine could register such an effect (the billing provider, an HTTP_API
7
+ * resource), so a provider PACKAGE that honestly declared the stance was reported NOT_REGISTERED at every
8
+ * erasure.
9
+ *
10
+ * ## What the effect receives, and what it does not
11
+ *
12
+ * The effect receives the subject's IDENTIFIERS AT THIS VENDOR, and a way to call this provider's own
13
+ * operations. It never receives an execution context, a credential, the subject's personal fields, or any
14
+ * way to read the application's data:
15
+ *
16
+ * - **The references are read by the engine**, from the resource fields the OPERATOR declared hold them
17
+ * (`providerComplianceChoices.<ref>.subjectReferences` in `wildo.saas.config.ts`). A provider package does not
18
+ * know the application's resources, and an open read door into them would hand third-party-authored code
19
+ * every row the application keeps. The engine reads them BEFORE the local scrub, because afterwards the
20
+ * subject's row is erased and hidden.
21
+ * - **`execute` calls this provider's operations only, on the APPLICATION's connection.** The erasure is the
22
+ * operator's obligation, so it spends the operator's account at the vendor. The call goes through the
23
+ * engine's operation executor like any provider call: recorded, rate-budgeted, attributed to this package.
24
+ *
25
+ * ## Why the effect reports no status
26
+ *
27
+ * The engine derives the outcome from the calls IT recorded through `execute`: every call succeeded →
28
+ * COMPLETED, some → PARTIAL, none → FAILED, and an effect that made no call while there were references to
29
+ * erase → FAILED. A package therefore cannot report an erasure it did not perform. `execute` never throws: a
30
+ * vendor error comes back as `{ ok: false }`, so one failing call cannot abort the others, and nothing a
31
+ * vendor already applied is replayed.
32
+ *
33
+ * ## A vendor that finishes the deletion later, or holds nothing (#2181)
34
+ *
35
+ * Some vendors accept a deletion and carry it out on their own schedule: PostHog answers `202` and clears a person's
36
+ * events in a weekly job. Reporting that call COMPLETED would say the data is gone while it is still there. So a call
37
+ * may declare the vendor's published completion window (`vendorCompletion`), and may read the vendor's answer
38
+ * (`readAnswer`) to say what that answer reports: erased, queued, nothing held, or not erased. The engine still
39
+ * decides the outcome, from those recorded answers: a queued deletion makes the effect COMPLETES_AT_VENDOR with the
40
+ * window's lapse, a call whose every answer was "nothing held" makes it NOTHING_TO_ERASE, and an answer the reader
41
+ * cannot classify, or classifies as not erased, is a FAILED call. A reader can only describe an answer the engine
42
+ * received from a call it made; it never invents one.
43
+ */
44
+ /** What a vendor's successful answer to one erasure call reports, as the call's `readAnswer` classifies it. */
45
+ export var ProviderSubjectErasureVendorAnswer;
46
+ (function (ProviderSubjectErasureVendorAnswer) {
47
+ /** The vendor erased what it held under the reference, in this call. */
48
+ ProviderSubjectErasureVendorAnswer["ERASED"] = "erased";
49
+ /**
50
+ * The vendor ACCEPTED the deletion and finishes it on its own schedule. Requires the call's `vendorCompletion`
51
+ * window: the erasure then reports COMPLETES_AT_VENDOR, by the instant the window lapses. Without a window the
52
+ * answer is treated as NOT_ERASED, because nothing bounds when the data leaves.
53
+ */
54
+ ProviderSubjectErasureVendorAnswer["QUEUED"] = "queued";
55
+ /** The vendor holds nothing under the reference. Every call answering this makes the effect NOTHING_TO_ERASE. */
56
+ ProviderSubjectErasureVendorAnswer["NOTHING_HELD"] = "nothing-held";
57
+ /** The vendor answered with a success status but reports it did not erase (a per-record failure inside a 2xx). */
58
+ ProviderSubjectErasureVendorAnswer["NOT_ERASED"] = "not-erased";
59
+ })(ProviderSubjectErasureVendorAnswer || (ProviderSubjectErasureVendorAnswer = {}));
60
+ /** @wildo_source:part:end external-connectors.models.subject-erasure-effect */
61
+ //# sourceMappingURL=subject-erasure-effect.standard-interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subject-erasure-effect.standard-interface.js","sourceRoot":"","sources":["../../../src/protocols/subject-erasure-effect.standard-interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAQH,+GAA+G;AAC/G,MAAM,CAAN,IAAY,kCAaX;AAbD,WAAY,kCAAkC;IAC5C,wEAAwE;IACxE,uDAAiB,CAAA;IACjB;;;;OAIG;IACH,uDAAiB,CAAA;IACjB,iHAAiH;IACjH,mEAA6B,CAAA;IAC7B,kHAAkH;IAClH,+DAAyB,CAAA;AAC3B,CAAC,EAbW,kCAAkC,KAAlC,kCAAkC,QAa7C;AA0ED,+EAA+E","sourcesContent":["/**\n * Standard Subject Erasure Effect Interface (#2006)\n * --------\n * The contract a PROVIDER implements so a subject erasure reaches what its vendor keeps about the erased\n * person. It is what a provider's `complianceProfile.subjectErasure.stance = EXTERNAL_ERASURE_OPERATION`\n * promises. Before this, only the engine could register such an effect (the billing provider, an HTTP_API\n * resource), so a provider PACKAGE that honestly declared the stance was reported NOT_REGISTERED at every\n * erasure.\n *\n * ## What the effect receives, and what it does not\n *\n * The effect receives the subject's IDENTIFIERS AT THIS VENDOR, and a way to call this provider's own\n * operations. It never receives an execution context, a credential, the subject's personal fields, or any\n * way to read the application's data:\n *\n * - **The references are read by the engine**, from the resource fields the OPERATOR declared hold them\n * (`providerComplianceChoices.<ref>.subjectReferences` in `wildo.saas.config.ts`). A provider package does not\n * know the application's resources, and an open read door into them would hand third-party-authored code\n * every row the application keeps. The engine reads them BEFORE the local scrub, because afterwards the\n * subject's row is erased and hidden.\n * - **`execute` calls this provider's operations only, on the APPLICATION's connection.** The erasure is the\n * operator's obligation, so it spends the operator's account at the vendor. The call goes through the\n * engine's operation executor like any provider call: recorded, rate-budgeted, attributed to this package.\n *\n * ## Why the effect reports no status\n *\n * The engine derives the outcome from the calls IT recorded through `execute`: every call succeeded →\n * COMPLETED, some → PARTIAL, none → FAILED, and an effect that made no call while there were references to\n * erase → FAILED. A package therefore cannot report an erasure it did not perform. `execute` never throws: a\n * vendor error comes back as `{ ok: false }`, so one failing call cannot abort the others, and nothing a\n * vendor already applied is replayed.\n *\n * ## A vendor that finishes the deletion later, or holds nothing (#2181)\n *\n * Some vendors accept a deletion and carry it out on their own schedule: PostHog answers `202` and clears a person's\n * events in a weekly job. Reporting that call COMPLETED would say the data is gone while it is still there. So a call\n * may declare the vendor's published completion window (`vendorCompletion`), and may read the vendor's answer\n * (`readAnswer`) to say what that answer reports: erased, queued, nothing held, or not erased. The engine still\n * decides the outcome, from those recorded answers: a queued deletion makes the effect COMPLETES_AT_VENDOR with the\n * window's lapse, a call whose every answer was \"nothing held\" makes it NOTHING_TO_ERASE, and an answer the reader\n * cannot classify, or classifies as not erased, is a FAILED call. A reader can only describe an answer the engine\n * received from a call it made; it never invents one.\n */\n\n/** @wildo_source:part:start external-connectors.models.subject-erasure-effect facet:kind:api facet:audience:app-developer */\n/** The answer to one call an erasure effect made through `execute`. A vendor error is a value, never a throw. */\nexport type ProviderSubjectErasureCallResult =\n | { readonly ok: true; readonly output: unknown }\n | { readonly ok: false; readonly error: string };\n\n/** What a vendor's successful answer to one erasure call reports, as the call's `readAnswer` classifies it. */\nexport enum ProviderSubjectErasureVendorAnswer {\n /** The vendor erased what it held under the reference, in this call. */\n ERASED = 'erased',\n /**\n * The vendor ACCEPTED the deletion and finishes it on its own schedule. Requires the call's `vendorCompletion`\n * window: the erasure then reports COMPLETES_AT_VENDOR, by the instant the window lapses. Without a window the\n * answer is treated as NOT_ERASED, because nothing bounds when the data leaves.\n */\n QUEUED = 'queued',\n /** The vendor holds nothing under the reference. Every call answering this makes the effect NOTHING_TO_ERASE. */\n NOTHING_HELD = 'nothing-held',\n /** The vendor answered with a success status but reports it did not erase (a per-record failure inside a 2xx). */\n NOT_ERASED = 'not-erased',\n}\n\n/**\n * The vendor's PUBLISHED schedule for finishing a deletion it accepted: an upper bound, in whole days, from the call.\n * Copied from the vendor's own documentation by the provider package, never computed from the answer.\n */\nexport interface ProviderSubjectErasureVendorCompletion {\n /** At most this many days after the call, the vendor has finished the deletion. A positive integer. */\n readonly withinDays: number;\n /** Where the vendor publishes that schedule, so a reviewer can check the number against the source. */\n readonly basis: string;\n}\n\n/** How one `execute` call reads the vendor's answer. */\nexport interface ProviderSubjectErasureCallOptions {\n /**\n * The call DELETES something, so a vendor answering 404 or 410 (the record is not there) means it is already erased:\n * the step counts as done instead of failed. Set it only on a deletion: on a read, \"not found\" is not an erasure.\n */\n readonly absentMeansErased?: boolean;\n /**\n * The vendor finishes this deletion on its own schedule after accepting it, within this window. A successful answer\n * is then QUEUED unless `readAnswer` says otherwise. A window that is not a positive whole number of days, or that\n * names no basis, refuses the call before it is made.\n */\n readonly vendorCompletion?: ProviderSubjectErasureVendorCompletion;\n /**\n * Classify the vendor's successful answer (its parsed body). Absent: ERASED, or QUEUED when `vendorCompletion` is\n * declared. A reader that throws, or returns anything outside {@link ProviderSubjectErasureVendorAnswer}, makes the\n * call FAILED: an answer nobody could read is not evidence of an erasure.\n */\n readonly readAnswer?: (output: unknown) => ProviderSubjectErasureVendorAnswer;\n}\n\n/** What the engine hands a provider's erasure effect for one erasure. */\nexport interface ProviderSubjectErasureEffectInput {\n /** The resource type of the subject being erased (`users` for an account holder). */\n readonly subjectResourceType: string;\n /**\n * This vendor's identifiers for the subjects being erased: the values of the fields the operator declared\n * under `providerComplianceChoices.<ref>.subjectReferences`, read before the local scrub. Unique, and never\n * empty: when there is nothing to erase the engine reports NOTHING_TO_ERASE without calling `run`.\n * Identifiers that come from a row under a legal hold, or from a subject the erasure kept under one, are left out.\n */\n readonly references: ReadonlyArray<string>;\n /**\n * Call one of THIS provider's operations on the application's connection, and get its answer. Never throws.\n * Every call is a step of the erasure's outcome, labelled with `targetRef` (pass the reference the call is\n * about), so the receipt says which identifier failed.\n */\n readonly execute: (\n operationId: string,\n input: Readonly<Record<string, unknown>>,\n targetRef?: string,\n options?: ProviderSubjectErasureCallOptions,\n ) => Promise<ProviderSubjectErasureCallResult>;\n}\n\n/**\n * A provider's erasure effect: erase, at the vendor, what it keeps under each reference.\n *\n * Make it IDEMPOTENT: when every call fails (nothing applied), the engine runs it again, up to three times. Pass\n * `{ absentMeansErased: true }` on a deletion so a record the previous attempt already removed is not a failure.\n * It must finish within two minutes; past that the erasure stops waiting, refuses further calls, and reports from the\n * calls already recorded.\n *\n * Make one `execute` call per thing to erase, and keep going when one fails. Do not catch-and-ignore: the\n * outcome is derived from the calls, so a call you never made is a reference that stays at the vendor.\n * Declared on the backend provider module as `subjectErasureEffect`, beside a compliance profile whose\n * `subjectErasure.stance` is `EXTERNAL_ERASURE_OPERATION`; the engine refuses it on any other stance.\n */\nexport interface ProviderSubjectErasureEffect {\n run(input: ProviderSubjectErasureEffectInput): Promise<void>;\n}\n/** @wildo_source:part:end external-connectors.models.subject-erasure-effect */\n"]}