@blogmcp/sdk 0.6.1 → 0.7.1

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 (137) hide show
  1. package/dist/consultations/channel-text.d.ts +118 -0
  2. package/dist/consultations/channel-text.js +40 -0
  3. package/dist/consultations/index.d.ts +28 -0
  4. package/dist/consultations/index.js +60 -0
  5. package/dist/consultations/messages.cs.d.ts +149 -0
  6. package/dist/consultations/messages.cs.js +143 -0
  7. package/dist/consultations/messages.d.ts +34 -0
  8. package/dist/consultations/messages.en.d.ts +143 -0
  9. package/dist/consultations/messages.en.js +141 -0
  10. package/dist/consultations/messages.js +48 -0
  11. package/dist/consultations/outcome.d.ts +121 -0
  12. package/dist/consultations/outcome.js +161 -0
  13. package/dist/consultations/public-config.d.ts +71 -0
  14. package/dist/consultations/public-config.js +104 -0
  15. package/dist/consultations/reader.d.ts +83 -0
  16. package/dist/consultations/reader.js +128 -0
  17. package/dist/consultations/routes.d.ts +214 -0
  18. package/dist/consultations/routes.js +149 -0
  19. package/dist/consultations/server/client-ip.d.ts +50 -0
  20. package/dist/consultations/server/client-ip.js +44 -0
  21. package/dist/consultations/server/contact.d.ts +23 -0
  22. package/dist/consultations/server/contact.js +138 -0
  23. package/dist/consultations/server/context.d.ts +246 -0
  24. package/dist/consultations/server/context.js +152 -0
  25. package/dist/consultations/server/cookie.d.ts +60 -0
  26. package/dist/consultations/server/cookie.js +57 -0
  27. package/dist/consultations/server/env.d.ts +20 -0
  28. package/dist/consultations/server/env.js +35 -0
  29. package/dist/consultations/server/http.d.ts +59 -0
  30. package/dist/consultations/server/http.js +64 -0
  31. package/dist/consultations/server/index.d.ts +37 -0
  32. package/dist/consultations/server/index.js +19 -0
  33. package/dist/consultations/server/origin.d.ts +39 -0
  34. package/dist/consultations/server/origin.js +31 -0
  35. package/dist/consultations/server/server.d.ts +106 -0
  36. package/dist/consultations/server/server.js +122 -0
  37. package/dist/consultations/server/session.d.ts +38 -0
  38. package/dist/consultations/server/session.js +210 -0
  39. package/dist/consultations/server/transport.d.ts +69 -0
  40. package/dist/consultations/server/transport.js +117 -0
  41. package/dist/consultations/server/turnstile.d.ts +44 -0
  42. package/dist/consultations/server/turnstile.js +31 -0
  43. package/dist/consultations/site.d.ts +100 -0
  44. package/dist/consultations/site.js +60 -0
  45. package/dist/consultations/submit-new.d.ts +103 -0
  46. package/dist/consultations/submit-new.js +72 -0
  47. package/dist/core/auth.d.ts +2 -2
  48. package/dist/core/auth.js +21 -21
  49. package/dist/core/client.d.ts +25 -4
  50. package/dist/core/client.js +35 -30
  51. package/dist/core/consultation-adapter.d.ts +2 -2
  52. package/dist/core/consultations.d.ts +1 -1
  53. package/dist/core/errors.d.ts +1 -1
  54. package/dist/core/errors.js +16 -15
  55. package/dist/core/index.d.ts +31 -31
  56. package/dist/core/index.js +35 -34
  57. package/dist/core/markdown.d.ts +1 -1
  58. package/dist/core/queries.d.ts +4 -1
  59. package/dist/core/queries.js +131 -86
  60. package/dist/core/review/format.d.ts +1 -1
  61. package/dist/core/review/index.d.ts +2 -2
  62. package/dist/core/seo.d.ts +1 -1
  63. package/dist/core/translations/cs.json.js +1 -1
  64. package/dist/core/translations/en.json.js +1 -1
  65. package/dist/core/types.d.ts +50 -1
  66. package/dist/core/view-model.d.ts +12 -2
  67. package/dist/core/view-model.js +40 -34
  68. package/dist/{packages/tripmap-core/node_modules → node_modules}/pmtiles/dist/esm/index.js +1 -1
  69. package/dist/nuxt/composables/useAsyncKb.d.ts +4 -4
  70. package/dist/nuxt/index.d.ts +1 -1
  71. package/dist/packages/tripmap-core/dist/engine.js +3 -3
  72. package/dist/packages/tripmap-core/dist/generated/maplibre-worker.bundle.js +1 -1
  73. package/dist/react/KbMdxContent.d.ts +1 -1
  74. package/dist/react/context.d.ts +4 -4
  75. package/dist/react/hooks/useImageRenderer.d.ts +1 -1
  76. package/dist/react/hooks/useKbClient.d.ts +1 -1
  77. package/dist/react/hooks/useKbContext.d.ts +1 -1
  78. package/dist/react/hooks/useKbI18n.d.ts +1 -1
  79. package/dist/react/hooks/useKbLanguage.d.ts +1 -1
  80. package/dist/react/hooks/useKbSearch.d.ts +1 -1
  81. package/dist/react/hooks/useMdxContent.d.ts +1 -1
  82. package/dist/react/index.d.ts +15 -15
  83. package/dist/react/provider.d.ts +2 -2
  84. package/dist/react/server/index.d.ts +2 -2
  85. package/dist/vue/components/KbAccessGate.vue.d.ts +4 -1
  86. package/dist/vue/components/KbAccessGate.vue.js +42 -32
  87. package/dist/vue/components/KbArticleCard.vue.d.ts +3 -1
  88. package/dist/vue/components/KbArticleCard.vue.js +67 -39
  89. package/dist/vue/composables/useArticles.d.ts +1 -1
  90. package/dist/vue/composables/useImageRenderer.d.ts +1 -1
  91. package/dist/vue/composables/useKbAuth.d.ts +1 -1
  92. package/dist/vue/composables/useKbClient.d.ts +1 -1
  93. package/dist/vue/composables/useKbComments.d.ts +1 -1
  94. package/dist/vue/composables/useKbI18n.d.ts +1 -1
  95. package/dist/vue/composables/useKbLanguage.d.ts +1 -1
  96. package/dist/vue/composables/useNavigation.d.ts +1 -1
  97. package/dist/vue/composables/useSearch.d.ts +1 -1
  98. package/dist/vue/composables/useTags.d.ts +1 -1
  99. package/dist/vue/index.d.ts +19 -19
  100. package/dist/vue/plugin.d.ts +4 -4
  101. package/package.json +15 -5
  102. package/src/consultations/channel-text.ts +168 -0
  103. package/src/consultations/index.ts +87 -0
  104. package/src/consultations/messages.cs.ts +175 -0
  105. package/src/consultations/messages.en.ts +171 -0
  106. package/src/consultations/messages.ts +91 -0
  107. package/src/consultations/outcome.ts +278 -0
  108. package/src/consultations/public-config.ts +246 -0
  109. package/src/consultations/reader.ts +281 -0
  110. package/src/consultations/routes.ts +341 -0
  111. package/src/consultations/server/client-ip.ts +106 -0
  112. package/src/consultations/server/contact.ts +267 -0
  113. package/src/consultations/server/context.ts +403 -0
  114. package/src/consultations/server/cookie.ts +129 -0
  115. package/src/consultations/server/env.ts +66 -0
  116. package/src/consultations/server/http.ts +148 -0
  117. package/src/consultations/server/index.ts +55 -0
  118. package/src/consultations/server/origin.ts +71 -0
  119. package/src/consultations/server/server.ts +322 -0
  120. package/src/consultations/server/session.ts +414 -0
  121. package/src/consultations/server/transport.ts +196 -0
  122. package/src/consultations/server/turnstile.ts +98 -0
  123. package/src/consultations/site.ts +183 -0
  124. package/src/consultations/submit-new.ts +266 -0
  125. package/src/core/auth.ts +5 -1
  126. package/src/core/client.ts +32 -1
  127. package/src/core/errors.ts +5 -2
  128. package/src/core/index.ts +3 -0
  129. package/src/core/queries.ts +56 -0
  130. package/src/core/translations/cs.json +2 -1
  131. package/src/core/translations/en.json +2 -1
  132. package/src/core/types.ts +51 -0
  133. package/src/core/view-model.ts +18 -0
  134. package/src/vue/components/KbAccessGate.vue +14 -1
  135. package/src/vue/components/KbArticleCard.vue +25 -0
  136. /package/dist/{packages/tripmap-core/node_modules → node_modules}/maplibre-gl/dist/maplibre-gl-shared.js +0 -0
  137. /package/dist/{packages/tripmap-core/node_modules → node_modules}/maplibre-gl/dist/maplibre-gl.js +0 -0
@@ -1,15 +1,15 @@
1
- import { UPDATE_MY_PROFILE as i, ARTICLE_VERSION as A, UPDATE_MY_REPORT_SETTINGS as S, MY_REPORT_SETTINGS as _, CHANGE_PASSWORD as l, RESEND_VERIFICATION as I, RESET_PASSWORD as R, FORGOT_PASSWORD as c, VERIFY_EMAIL as d, REGISTER as C, LOGIN as p, DELETE_COMMENT as u, UPDATE_COMMENT as L, CREATE_COMMENT as N, GET_COMMENT as O, ARTICLE_COMMENTS as h, GET_TRANSLATION as m, ARTICLE_TRANSLATIONS as G, KB_NAVIGATION as g, KB_LANGUAGES as M, LOCALIZED_TAGS as P, ACCESSIBLE_TAGS as y, GET_KB_CONTEXT as D, SEARCH_KNOWLEDGE_BASE as f, ARTICLE_ALIAS_TARGET as w, ARTICLE_WITH_TRANSLATION_BY_ID as B, ARTICLE_WITH_TRANSLATION as v, ACCESSIBLE_ARTICLES as K } from "./queries.js";
2
- import { createMemoryTokenStorage as W } from "./auth.js";
3
- import { KbGraphQLError as k } from "./errors.js";
4
- import { createConsultationSessionApi as x, createConsultationsApi as V } from "./consultations.js";
5
- function b() {
1
+ import { UPDATE_MY_PROFILE as i, ARTICLE_VERSION as A, UPDATE_MY_REPORT_SETTINGS as S, MY_REPORT_SETTINGS as _, CHANGE_PASSWORD as I, RESEND_VERIFICATION as l, RESET_PASSWORD as R, FORGOT_PASSWORD as C, VERIFY_EMAIL as c, REGISTER as d, LOGIN as L, DELETE_COMMENT as u, UPDATE_COMMENT as O, CREATE_COMMENT as p, GET_COMMENT as N, ARTICLE_COMMENTS as h, GET_TRANSLATION as m, ARTICLE_TRANSLATIONS as G, KB_NAVIGATION as P, KB_LANGUAGES as g, LOCALIZED_TAGS as M, ACCESSIBLE_TAGS as y, GET_KB_CONTEXT as D, SEARCH_KNOWLEDGE_BASE as B, ARTICLE_ALIAS_TARGET as f, ARTICLE_PREVIEW_BY_ID as v, ARTICLE_PREVIEW as w, ARTICLE_WITH_TRANSLATION_BY_ID as W, ARTICLE_WITH_TRANSLATION as K, ACCESSIBLE_ARTICLES_WITH_LOCKED as V, ACCESSIBLE_ARTICLES as k } from "./queries.js";
2
+ import { createMemoryTokenStorage as b } from "./auth.js";
3
+ import { KbGraphQLError as x } from "./errors.js";
4
+ import { createConsultationSessionApi as Y, createConsultationsApi as F } from "./consultations.js";
5
+ function H() {
6
6
  return async (o, n) => (await fetch(o, {
7
7
  method: n.method,
8
8
  headers: n.headers,
9
9
  body: n.body
10
10
  })).json();
11
11
  }
12
- async function F(o, n, s) {
12
+ async function U(o, n, s) {
13
13
  const E = {
14
14
  ...o.headers ?? {},
15
15
  "Content-Type": "application/json"
@@ -21,35 +21,40 @@ async function F(o, n, s) {
21
21
  body: JSON.stringify({ query: n, variables: s })
22
22
  });
23
23
  if (t.errors?.length)
24
- throw new k(t.errors);
24
+ throw new x(t.errors);
25
25
  return t.data;
26
26
  }
27
- function j(o) {
28
- const n = o.fetcher || b(), s = o.tokenStorage || W(), a = { endpoint: o.isServer && o.serverEndpoint ? o.serverEndpoint : o.endpoint, fetcher: n, tokenStorage: s, headers: o.headers };
27
+ function J(o) {
28
+ const n = o.fetcher || H(), s = o.tokenStorage || b(), a = { endpoint: o.isServer && o.serverEndpoint ? o.serverEndpoint : o.endpoint, fetcher: n, tokenStorage: s, headers: o.headers };
29
29
  function t(e, r) {
30
- return F(a, e, r);
30
+ return U(a, e, r);
31
31
  }
32
32
  return {
33
33
  articles: {
34
- list: (e) => t(K, e),
35
- getWithTranslation: (e, r) => t(v, { filename: e, languageCode: r }),
36
- getWithTranslationById: (e, r) => t(B, { id: e, languageCode: r }),
37
- resolveAlias: (e) => t(w, { filename: e }),
34
+ list: (e) => {
35
+ const { includeLocked: r, ...T } = e ?? {};
36
+ return t(r ? V : k, T);
37
+ },
38
+ getWithTranslation: (e, r) => t(K, { filename: e, languageCode: r }),
39
+ getWithTranslationById: (e, r) => t(W, { id: e, languageCode: r }),
40
+ getPreview: (e, r) => t(w, { filename: e, languageCode: r }),
41
+ getPreviewById: (e, r) => t(v, { id: e, languageCode: r }),
42
+ resolveAlias: (e) => t(f, { filename: e }),
38
43
  getVersion: (e, r) => t(A, { versionId: e, previewKey: r?.previewKey ?? null })
39
44
  },
40
45
  search: {
41
- query: (e) => t(f, e),
46
+ query: (e) => t(B, e),
42
47
  getContext: (e, r) => t(D, { query: e, maxChunks: r })
43
48
  },
44
49
  tags: {
45
50
  list: () => t(y),
46
- listLocalized: (e) => t(P, { languageCode: e })
51
+ listLocalized: (e) => t(M, { languageCode: e })
47
52
  },
48
53
  languages: {
49
- list: () => t(M)
54
+ list: () => t(g)
50
55
  },
51
56
  navigation: {
52
- get: (e) => t(g, e ?? {})
57
+ get: (e) => t(P, e ?? {})
53
58
  },
54
59
  translations: {
55
60
  list: (e) => t(G, { articleId: e }),
@@ -57,19 +62,19 @@ function j(o) {
57
62
  },
58
63
  comments: {
59
64
  list: (e, r) => t(h, { articleId: e, languageCode: r }),
60
- get: (e, r) => t(O, { commentId: e, languageCode: r }),
61
- create: (e) => t(N, e),
62
- update: (e, r) => t(L, { commentId: e, content: r }),
65
+ get: (e, r) => t(N, { commentId: e, languageCode: r }),
66
+ create: (e) => t(p, e),
67
+ update: (e, r) => t(O, { commentId: e, content: r }),
63
68
  delete: (e) => t(u, { commentId: e })
64
69
  },
65
70
  auth: {
66
- login: (e, r) => t(p, { email: e, password: r }),
67
- register: (e, r, T) => t(C, { email: e, password: r, name: T }),
68
- verifyEmail: (e) => t(d, { token: e }),
69
- forgotPassword: (e) => t(c, { email: e }),
71
+ login: (e, r) => t(L, { email: e, password: r }),
72
+ register: (e, r, T) => t(d, { email: e, password: r, name: T }),
73
+ verifyEmail: (e) => t(c, { token: e }),
74
+ forgotPassword: (e) => t(C, { email: e }),
70
75
  resetPassword: (e, r) => t(R, { token: e, password: r }),
71
- resendVerification: (e) => t(I, { email: e }),
72
- changePassword: (e, r) => t(l, { currentPassword: e, newPassword: r }),
76
+ resendVerification: (e) => t(l, { email: e }),
77
+ changePassword: (e, r) => t(I, { currentPassword: e, newPassword: r }),
73
78
  updateProfile: (e) => t(i, {
74
79
  name: e.name ?? null,
75
80
  email: e.email ?? null
@@ -79,11 +84,11 @@ function j(o) {
79
84
  get: () => t(_),
80
85
  update: (e) => t(S, e)
81
86
  },
82
- consultations: V(t),
83
- consultationSession: x(t),
87
+ consultations: F(t),
88
+ consultationSession: Y(t),
84
89
  executeGraphQL: t
85
90
  };
86
91
  }
87
92
  export {
88
- j as createKbClient
93
+ J as createKbClient
89
94
  };
@@ -20,8 +20,8 @@
20
20
  * `ConsultationAdapterError` with the contract's `{code}` and the HTTP status;
21
21
  * their message names the operation, status and code only, never a body.
22
22
  */
23
- import type { KbErrorCode } from './errors';
24
- import type { ConsultationAckInput, ConsultationEraseInput, ConsultationEraseResult, ConsultationFailInput, ConsultationIngestInput, ConsultationIngestResult, ConsultationLeaseInput, ConsultationLeaseResult, ConsultationOkResult, ConsultationOutboxStats, ConsultationOwnerRefsInput, ConsultationOwnerRefsResult, ConsultationThreadByNotice, ConsultationThreadOwner } from './types';
23
+ import type { KbErrorCode } from './errors.js';
24
+ import type { ConsultationAckInput, ConsultationEraseInput, ConsultationEraseResult, ConsultationFailInput, ConsultationIngestInput, ConsultationIngestResult, ConsultationLeaseInput, ConsultationLeaseResult, ConsultationOkResult, ConsultationOutboxStats, ConsultationOwnerRefsInput, ConsultationOwnerRefsResult, ConsultationThreadByNotice, ConsultationThreadOwner } from './types.js';
25
25
  export interface ConsultationAdapterClientConfig {
26
26
  /**
27
27
  * The KB API base URL: `https://<tenant host>/api` through the ingress, or
@@ -33,7 +33,7 @@
33
33
  * storefront's one egress IP (link exchange, link requests, session posts).
34
34
  * Nothing here logs: bodies, sessions, tokens and addresses stay in memory.
35
35
  */
36
- import type { ConsultationConsentWithdrawalResult, ConsultationMessageInput, ConsultationPublicConfig, ConsultationSessionResult, CreateMyConsultationInput, ReaderConsultation, ReaderConsultationConsent, ReaderConsultationResult, ReaderConsultationSummary } from './types';
36
+ import type { ConsultationConsentWithdrawalResult, ConsultationMessageInput, ConsultationPublicConfig, ConsultationSessionResult, CreateMyConsultationInput, ReaderConsultation, ReaderConsultationConsent, ReaderConsultationResult, ReaderConsultationSummary } from './types.js';
37
37
  /** Executes one GraphQL document (the client's `executeGraphQL`). */
38
38
  export type GraphQLExec = <T>(query: string, variables?: Record<string, unknown>) => Promise<T>;
39
39
  export interface KbConsultationsApi {
@@ -13,7 +13,7 @@
13
13
  * test compares the two lists.
14
14
  */
15
15
  /** Every reader-consultation error code of the KB API, in its declaration order. */
16
- export declare const CONSULTATION_ERROR_CODES: readonly ["UNAUTHENTICATED", "FORBIDDEN", "NOT_FOUND", "FEATURE_DISABLED", "INVALID_INPUT", "BODY_TOO_LONG", "NOTICE_REQUIRED", "NOTICE_VERSION_UNKNOWN", "CONSENT_REQUIRED", "CONSENT_VERSION_UNKNOWN", "CHANNEL_NOT_ALLOWED", "THREAD_REQUIRED", "SENDER_MISMATCH", "QUOTA_EXCEEDED", "INVALID_LINK", "THREAD_CLOSED", "ATTACH_EMAIL_MISMATCH", "STALE_THREAD", "STALE_LEASE", "NOTHING_TO_DO", "IDEMPOTENCY_CONFLICT", "LEGAL_HOLD", "CONTENT_ACCESS_REQUIRED", "READER_URL_MISSING", "READER_PATH_MISSING", "TEXT_MISSING", "OPERATOR_MISSING", "TEXT_VERSION_EXISTS", "CONTENT_ACCESS_ATTESTATION_REQUIRED", "AI_DRAFTS_DISABLED", "AI_LOCAL_UNAVAILABLE", "PROCESSING_RESTRICTED", "DRAFT_FLAGS_UNACKNOWLEDGED", "REPLY_POLICY_MISSING", "DRAFT_ID_REQUIRED", "CARD_GUARD_FAILED", "CARD_CONFIRMATION_REQUIRED", "STALE_CARD", "RETRY_LATER", "INTERNAL_ERROR"];
16
+ export declare const CONSULTATION_ERROR_CODES: readonly ["UNAUTHENTICATED", "FORBIDDEN", "NOT_FOUND", "FEATURE_DISABLED", "INVALID_INPUT", "BODY_TOO_LONG", "NOTICE_REQUIRED", "NOTICE_VERSION_UNKNOWN", "CONSENT_REQUIRED", "CONSENT_VERSION_UNKNOWN", "CHANNEL_NOT_ALLOWED", "THREAD_REQUIRED", "SENDER_MISMATCH", "QUOTA_EXCEEDED", "INVALID_LINK", "THREAD_CLOSED", "ATTACH_EMAIL_MISMATCH", "STALE_THREAD", "STALE_LEASE", "NOTHING_TO_DO", "IDEMPOTENCY_CONFLICT", "LEGAL_HOLD", "CONTENT_ACCESS_REQUIRED", "READER_URL_MISSING", "READER_PATH_MISSING", "TEXT_MISSING", "OPERATOR_MISSING", "MAIL_TRANSPORT_MISSING", "TEXT_VERSION_EXISTS", "CONTENT_ACCESS_ATTESTATION_REQUIRED", "AI_DRAFTS_DISABLED", "AI_LOCAL_UNAVAILABLE", "PROCESSING_RESTRICTED", "DRAFT_FLAGS_UNACKNOWLEDGED", "REPLY_POLICY_MISSING", "DRAFT_ID_REQUIRED", "CARD_GUARD_FAILED", "CARD_CONFIRMATION_REQUIRED", "STALE_CARD", "RETRY_LATER", "INTERNAL_ERROR"];
17
17
  /** A reader-consultation error code (the `code` of a result or of a thrown error). */
18
18
  export type ConsultationErrorCode = (typeof CONSULTATION_ERROR_CODES)[number];
19
19
  /**
@@ -1,4 +1,4 @@
1
- const R = [
1
+ const T = [
2
2
  "UNAUTHENTICATED",
3
3
  "FORBIDDEN",
4
4
  "NOT_FOUND",
@@ -26,6 +26,7 @@ const R = [
26
26
  "READER_PATH_MISSING",
27
27
  "TEXT_MISSING",
28
28
  "OPERATOR_MISSING",
29
+ "MAIL_TRANSPORT_MISSING",
29
30
  "TEXT_VERSION_EXISTS",
30
31
  "CONTENT_ACCESS_ATTESTATION_REQUIRED",
31
32
  "AI_DRAFTS_DISABLED",
@@ -39,35 +40,35 @@ const R = [
39
40
  "STALE_CARD",
40
41
  "RETRY_LATER",
41
42
  "INTERNAL_ERROR"
42
- ], T = new Set(R);
43
- function e(E) {
44
- return typeof E == "string" && T.has(E);
43
+ ], r = new Set(T);
44
+ function t(E) {
45
+ return typeof E == "string" && r.has(E);
45
46
  }
46
- const r = 128;
47
- function I(E) {
47
+ const I = 128;
48
+ function O(E) {
48
49
  const _ = E ?? {}, A = _.extensions?.code;
49
50
  return {
50
51
  message: typeof _.message == "string" && _.message !== "" ? _.message : "GraphQL error",
51
- code: typeof A == "string" && A !== "" && A.length <= r ? A : null,
52
+ code: typeof A == "string" && A !== "" && A.length <= I ? A : null,
52
53
  path: Array.isArray(_.path) ? [..._.path] : null
53
54
  };
54
55
  }
55
- const N = /* @__PURE__ */ Symbol.for("@blogmcp/sdk/KbGraphQLError");
56
- class O extends Error {
56
+ const R = /* @__PURE__ */ Symbol.for("@blogmcp/sdk/KbGraphQLError");
57
+ class e extends Error {
57
58
  /** `errors[0].extensions.code`, or null when absent. */
58
59
  code;
59
60
  errors;
60
61
  constructor(_) {
61
- const A = (_.length > 0 ? _ : [void 0]).map(I);
62
- super(A[0].message), this.name = "KbGraphQLError", this.code = A[0].code, this.errors = A, Object.defineProperty(this, N, { value: !0 });
62
+ const A = (_.length > 0 ? _ : [void 0]).map(O), N = A[0];
63
+ super(N.message), this.name = "KbGraphQLError", this.code = N.code, this.errors = A, Object.defineProperty(this, R, { value: !0 });
63
64
  }
64
65
  }
65
66
  function D(E) {
66
- return E instanceof O ? !0 : E instanceof Error && E[N] === !0;
67
+ return E instanceof e ? !0 : E instanceof Error && E[R] === !0;
67
68
  }
68
69
  export {
69
- R as CONSULTATION_ERROR_CODES,
70
- O as KbGraphQLError,
71
- e as isConsultationErrorCode,
70
+ T as CONSULTATION_ERROR_CODES,
71
+ e as KbGraphQLError,
72
+ t as isConsultationErrorCode,
72
73
  D as isKbGraphQLError
73
74
  };
@@ -1,34 +1,34 @@
1
- export type { Article, ArticleWithTranslation, ArticleVersionContent, MediaGeo, ContentImageGeo, Tag, LocalizedTag, SearchResult, KBContextChunk, Translation, Language, AccessLevel, Comment, CommentSubscriptionEvent, CommentsConnection, CommentResult, AuthUser, AuthResult, RegisterResult, UpdateProfileResult, ReportSettings, ReportPolicyValue, EmailNotificationFrequency, FeedbackNotificationFrequency, UpdateReportSettingsInput, PaginatedResponse, ReaderConsultationStatus, ReaderConsultationAuthor, ReaderConsultationMessage, ReaderConsultation, ReaderConsultationSummary, ReaderConsultationResult, ConsultationSessionResult, ConsultationLegalMode, ConsultationLegalText, ConsultationChannelConfig, ConsultationPublicConfig, ConsultationLegalInput, CreateMyConsultationInput, ConsultationMessageInput, ReaderConsultationConsent, ConsultationConsentWithdrawalResult, ConsultationOwnerRef, ConsultationConsentInput, ConsultationNewThreadInput, ConsultationIngestInput, ConsultationIngestResult, ConsultationDeliveryKind, ConsultationLeaseInput, ConsultationLeasedDelivery, ConsultationLeaseResult, ConsultationAckInput, ConsultationFailInput, ConsultationOkResult, ConsultationOutboxStats, ConsultationEraseInput, ConsultationEraseResult, ConsultationOwnerRefsInput, ConsultationOwnerRefsResult, ConsultationThreadOwner, ConsultationThreadByNotice, } from './types';
2
- export { ACCESS_LEVEL_ORDER } from './types';
3
- export { KbGraphQLError, isKbGraphQLError, CONSULTATION_ERROR_CODES, isConsultationErrorCode, } from './errors';
4
- export type { KbErrorCode, ConsultationErrorCode, KbGraphQLErrorEntry, RawGraphQLError, } from './errors';
5
- export type { KbClientConfig, Fetcher, TokenStorage, ImageHtmlRenderer, SanitizeFn, } from './client-types';
6
- export type { KbClient } from './client';
7
- export { createKbClient } from './client';
8
- export type { NavNode, NavNodeType, NavBadge, NavGroupLink, NavNextPrev, FlatNavNode } from './navigation';
9
- export { navWalk, findNavNode, navBreadcrumbs, navSiblings, navSubtree, navNextPrev, isNavigable, flattenNav, } from './navigation';
10
- export type { AuthManager } from './auth';
11
- export { createAuthManager, createMemoryTokenStorage, createLocalStorageTokenStorage, decodeJwtUser, hasAccessLevel, } from './auth';
12
- export { createDelegatedTokenMinter, DelegatedTokenError, } from './delegated-identity';
13
- export type { DelegatedTokenMinter, DelegatedTokenMinterConfig, DelegatedMintInput, DelegatedIdentity, } from './delegated-identity';
14
- export type { KbConsultationsApi, KbConsultationSessionApi } from './consultations';
15
- export { createConsultationAdapterClient, ConsultationAdapterError, isConsultationAdapterError, } from './consultation-adapter';
16
- export type { ConsultationAdapterClient, ConsultationAdapterClientConfig, ConsultationAdapterOperation, } from './consultation-adapter';
17
- export { stripLeadingH1, generateDescription } from './article-seo';
18
- export { createMarkedInstance, defaultImageHtml, parseMarkdownSafe } from './markdown';
19
- export type { CreateMarkedOptions } from './markdown';
20
- export { deepMerge } from './blog-config';
21
- export { retryWithBackoff } from './retry';
22
- export { buildThemeCssVars, hexToRgb, hexToHsl, hslToRgb, lightenColor, darkenColor, rgbTriplet, } from './theme';
23
- export type { ThemeColors } from './theme';
24
- export { localizedHref, stripLocalePrefix, pageUrl, buildArticleSeo, buildListPageSeo, buildHomeSeo, } from './seo';
25
- export type { SeoConfig, SeoModel, SeoHreflang, SeoOpenGraph, SeoTwitter, LocalePrefixStrategy, ArticleSeoSource, BuildArticleSeoOptions, BuildListPageSeoOptions, BuildHomeSeoOptions, } from './seo';
26
- export { toIsoDate, formatArticleDate, resolveArticleAccessLevel, buildArticleListItem, } from './view-model';
27
- export type { ArticleListItemVM, BuildArticleListItemOptions } from './view-model';
28
- export { csTranslations, enTranslations, mergeTranslations, createKbI18n, } from './i18n';
29
- export type { TranslateFn, TranslationMap } from './i18n';
30
- export * as queries from './queries';
1
+ export type { Article, ArticlePreview, LockedPreviewMode, ArticleWithTranslation, ArticleVersionContent, MediaGeo, ContentImageGeo, Tag, LocalizedTag, SearchResult, KBContextChunk, Translation, Language, AccessLevel, Comment, CommentSubscriptionEvent, CommentsConnection, CommentResult, AuthUser, AuthResult, RegisterResult, UpdateProfileResult, ReportSettings, ReportPolicyValue, EmailNotificationFrequency, FeedbackNotificationFrequency, UpdateReportSettingsInput, PaginatedResponse, ReaderConsultationStatus, ReaderConsultationAuthor, ReaderConsultationMessage, ReaderConsultation, ReaderConsultationSummary, ReaderConsultationResult, ConsultationSessionResult, ConsultationLegalMode, ConsultationLegalText, ConsultationChannelConfig, ConsultationPublicConfig, ConsultationLegalInput, CreateMyConsultationInput, ConsultationMessageInput, ReaderConsultationConsent, ConsultationConsentWithdrawalResult, ConsultationOwnerRef, ConsultationConsentInput, ConsultationNewThreadInput, ConsultationIngestInput, ConsultationIngestResult, ConsultationDeliveryKind, ConsultationLeaseInput, ConsultationLeasedDelivery, ConsultationLeaseResult, ConsultationAckInput, ConsultationFailInput, ConsultationOkResult, ConsultationOutboxStats, ConsultationEraseInput, ConsultationEraseResult, ConsultationOwnerRefsInput, ConsultationOwnerRefsResult, ConsultationThreadOwner, ConsultationThreadByNotice, } from './types.js';
2
+ export { ACCESS_LEVEL_ORDER } from './types.js';
3
+ export { KbGraphQLError, isKbGraphQLError, CONSULTATION_ERROR_CODES, isConsultationErrorCode, } from './errors.js';
4
+ export type { KbErrorCode, ConsultationErrorCode, KbGraphQLErrorEntry, RawGraphQLError, } from './errors.js';
5
+ export type { KbClientConfig, Fetcher, TokenStorage, ImageHtmlRenderer, SanitizeFn, } from './client-types.js';
6
+ export type { KbClient } from './client.js';
7
+ export { createKbClient } from './client.js';
8
+ export type { NavNode, NavNodeType, NavBadge, NavGroupLink, NavNextPrev, FlatNavNode } from './navigation.js';
9
+ export { navWalk, findNavNode, navBreadcrumbs, navSiblings, navSubtree, navNextPrev, isNavigable, flattenNav, } from './navigation.js';
10
+ export type { AuthManager } from './auth.js';
11
+ export { createAuthManager, createMemoryTokenStorage, createLocalStorageTokenStorage, decodeJwtUser, hasAccessLevel, } from './auth.js';
12
+ export { createDelegatedTokenMinter, DelegatedTokenError, } from './delegated-identity.js';
13
+ export type { DelegatedTokenMinter, DelegatedTokenMinterConfig, DelegatedMintInput, DelegatedIdentity, } from './delegated-identity.js';
14
+ export type { KbConsultationsApi, KbConsultationSessionApi } from './consultations.js';
15
+ export { createConsultationAdapterClient, ConsultationAdapterError, isConsultationAdapterError, } from './consultation-adapter.js';
16
+ export type { ConsultationAdapterClient, ConsultationAdapterClientConfig, ConsultationAdapterOperation, } from './consultation-adapter.js';
17
+ export { stripLeadingH1, generateDescription } from './article-seo.js';
18
+ export { createMarkedInstance, defaultImageHtml, parseMarkdownSafe } from './markdown.js';
19
+ export type { CreateMarkedOptions } from './markdown.js';
20
+ export { deepMerge } from './blog-config.js';
21
+ export { retryWithBackoff } from './retry.js';
22
+ export { buildThemeCssVars, hexToRgb, hexToHsl, hslToRgb, lightenColor, darkenColor, rgbTriplet, } from './theme.js';
23
+ export type { ThemeColors } from './theme.js';
24
+ export { localizedHref, stripLocalePrefix, pageUrl, buildArticleSeo, buildListPageSeo, buildHomeSeo, } from './seo.js';
25
+ export type { SeoConfig, SeoModel, SeoHreflang, SeoOpenGraph, SeoTwitter, LocalePrefixStrategy, ArticleSeoSource, BuildArticleSeoOptions, BuildListPageSeoOptions, BuildHomeSeoOptions, } from './seo.js';
26
+ export { toIsoDate, formatArticleDate, resolveArticleAccessLevel, lockedRequiredAccess, buildArticleListItem, } from './view-model.js';
27
+ export type { ArticleListItemVM, BuildArticleListItemOptions } from './view-model.js';
28
+ export { csTranslations, enTranslations, mergeTranslations, createKbI18n, } from './i18n.js';
29
+ export type { TranslateFn, TranslationMap } from './i18n.js';
30
+ export * as queries from './queries.js';
31
31
  export { prepareProps } from '@blogmcp/mdx-schema/prepareProps';
32
32
  export { getComponentMetadata, getComponentNames, componentMetadata, } from '@blogmcp/mdx-schema/metadata';
33
33
  export type { ComponentMetadata, PropMetadata } from '@blogmcp/mdx-schema/metadata';
34
- export * from './review';
34
+ export * from './review/index.js';
@@ -1,61 +1,61 @@
1
1
  import { ACCESS_LEVEL_ORDER as t } from "./types.js";
2
2
  import { CONSULTATION_ERROR_CODES as n, KbGraphQLError as i, isConsultationErrorCode as s, isKbGraphQLError as l } from "./errors.js";
3
3
  import { createKbClient as m } from "./client.js";
4
- import { findNavNode as d, flattenNav as c, isNavigable as x, navBreadcrumbs as g, navNextPrev as E, navSiblings as T, navSubtree as u, navWalk as b } from "./navigation.js";
5
- import { createAuthManager as C, createLocalStorageTokenStorage as v, createMemoryTokenStorage as R, decodeJwtUser as S, hasAccessLevel as L } from "./auth.js";
6
- import { DelegatedTokenError as k, createDelegatedTokenMinter as N } from "./delegated-identity.js";
4
+ import { findNavNode as d, flattenNav as c, isNavigable as x, navBreadcrumbs as g, navNextPrev as E, navSiblings as T, navSubtree as u, navWalk as A } from "./navigation.js";
5
+ import { createAuthManager as C, createLocalStorageTokenStorage as R, createMemoryTokenStorage as v, decodeJwtUser as S, hasAccessLevel as L } from "./auth.js";
6
+ import { DelegatedTokenError as h, createDelegatedTokenMinter as N } from "./delegated-identity.js";
7
7
  import { ConsultationAdapterError as M, createConsultationAdapterClient as _, isConsultationAdapterError as D } from "./consultation-adapter.js";
8
8
  import { generateDescription as H, stripLeadingH1 as O } from "./article-seo.js";
9
9
  import { createMarkedInstance as K, defaultImageHtml as U, parseMarkdownSafe as V } from "./markdown.js";
10
10
  import { deepMerge as G } from "./blog-config.js";
11
- import { retryWithBackoff as B } from "./retry.js";
12
- import { buildThemeCssVars as Q, darkenColor as q, hexToHsl as z, hexToRgb as J, hslToRgb as j, lightenColor as X, rgbTriplet as Y } from "./theme.js";
11
+ import { retryWithBackoff as y } from "./retry.js";
12
+ import { buildThemeCssVars as F, darkenColor as Q, hexToHsl as z, hexToRgb as J, hslToRgb as j, lightenColor as X, rgbTriplet as Y } from "./theme.js";
13
13
  import { buildArticleSeo as $, buildHomeSeo as ee, buildListPageSeo as re, localizedHref as oe, pageUrl as te, stripLocalePrefix as ae } from "./seo.js";
14
- import { buildArticleListItem as ie, formatArticleDate as se, resolveArticleAccessLevel as le, toIsoDate as pe } from "./view-model.js";
15
- import { createKbI18n as fe, mergeTranslations as de } from "./i18n.js";
14
+ import { buildArticleListItem as ie, formatArticleDate as se, lockedRequiredAccess as le, resolveArticleAccessLevel as pe, toIsoDate as me } from "./view-model.js";
15
+ import { createKbI18n as de, mergeTranslations as ce } from "./i18n.js";
16
16
  import * as e from "./queries.js";
17
- import { prepareProps as xe } from "@blogmcp/mdx-schema/prepareProps";
18
- import { componentMetadata as Ee, getComponentMetadata as Te, getComponentNames as ue } from "@blogmcp/mdx-schema/metadata";
19
- import { REVIEW_PAGE_PATH as Ae, REVIEW_ROUTE_PATTERN as Ce, isReviewTokenFormat as ve } from "./review/types.js";
20
- import { formatReviewForAgent as Se, formatReviewRound as Le } from "./review/format.js";
21
- import { default as ke } from "./translations/cs.json.js";
22
- import { default as Ie } from "./translations/en.json.js";
17
+ import { prepareProps as ge } from "@blogmcp/mdx-schema/prepareProps";
18
+ import { componentMetadata as Te, getComponentMetadata as ue, getComponentNames as Ae } from "@blogmcp/mdx-schema/metadata";
19
+ import { REVIEW_PAGE_PATH as Ce, REVIEW_ROUTE_PATTERN as Re, isReviewTokenFormat as ve } from "./review/types.js";
20
+ import { formatReviewForAgent as Le, formatReviewRound as ke } from "./review/format.js";
21
+ import { default as Ne } from "./translations/cs.json.js";
22
+ import { default as Me } from "./translations/en.json.js";
23
23
  export {
24
24
  t as ACCESS_LEVEL_ORDER,
25
25
  n as CONSULTATION_ERROR_CODES,
26
26
  M as ConsultationAdapterError,
27
- k as DelegatedTokenError,
27
+ h as DelegatedTokenError,
28
28
  i as KbGraphQLError,
29
- Ae as REVIEW_PAGE_PATH,
30
- Ce as REVIEW_ROUTE_PATTERN,
29
+ Ce as REVIEW_PAGE_PATH,
30
+ Re as REVIEW_ROUTE_PATTERN,
31
31
  ie as buildArticleListItem,
32
32
  $ as buildArticleSeo,
33
33
  ee as buildHomeSeo,
34
34
  re as buildListPageSeo,
35
- Q as buildThemeCssVars,
36
- Ee as componentMetadata,
35
+ F as buildThemeCssVars,
36
+ Te as componentMetadata,
37
37
  C as createAuthManager,
38
38
  _ as createConsultationAdapterClient,
39
39
  N as createDelegatedTokenMinter,
40
40
  m as createKbClient,
41
- fe as createKbI18n,
42
- v as createLocalStorageTokenStorage,
41
+ de as createKbI18n,
42
+ R as createLocalStorageTokenStorage,
43
43
  K as createMarkedInstance,
44
- R as createMemoryTokenStorage,
45
- ke as csTranslations,
46
- q as darkenColor,
44
+ v as createMemoryTokenStorage,
45
+ Ne as csTranslations,
46
+ Q as darkenColor,
47
47
  S as decodeJwtUser,
48
48
  G as deepMerge,
49
49
  U as defaultImageHtml,
50
- Ie as enTranslations,
50
+ Me as enTranslations,
51
51
  d as findNavNode,
52
52
  c as flattenNav,
53
53
  se as formatArticleDate,
54
- Se as formatReviewForAgent,
55
- Le as formatReviewRound,
54
+ Le as formatReviewForAgent,
55
+ ke as formatReviewRound,
56
56
  H as generateDescription,
57
- Te as getComponentMetadata,
58
- ue as getComponentNames,
57
+ ue as getComponentMetadata,
58
+ Ae as getComponentNames,
59
59
  L as hasAccessLevel,
60
60
  z as hexToHsl,
61
61
  J as hexToRgb,
@@ -67,20 +67,21 @@ export {
67
67
  ve as isReviewTokenFormat,
68
68
  X as lightenColor,
69
69
  oe as localizedHref,
70
- de as mergeTranslations,
70
+ le as lockedRequiredAccess,
71
+ ce as mergeTranslations,
71
72
  g as navBreadcrumbs,
72
73
  E as navNextPrev,
73
74
  T as navSiblings,
74
75
  u as navSubtree,
75
- b as navWalk,
76
+ A as navWalk,
76
77
  te as pageUrl,
77
78
  V as parseMarkdownSafe,
78
- xe as prepareProps,
79
+ ge as prepareProps,
79
80
  e as queries,
80
- le as resolveArticleAccessLevel,
81
- B as retryWithBackoff,
81
+ pe as resolveArticleAccessLevel,
82
+ y as retryWithBackoff,
82
83
  Y as rgbTriplet,
83
84
  O as stripLeadingH1,
84
85
  ae as stripLocalePrefix,
85
- pe as toIsoDate
86
+ me as toIsoDate
86
87
  };
@@ -13,7 +13,7 @@
13
13
  * competitor-monitor/docs/internal/sanitization-trust-contract.md
14
14
  */
15
15
  import { Marked } from 'marked';
16
- import type { ImageHtmlRenderer, SanitizeFn } from './client-types';
16
+ import type { ImageHtmlRenderer, SanitizeFn } from './client-types.js';
17
17
  /** Default image renderer — plain <img> with lazy loading + safe URL */
18
18
  export declare function defaultImageHtml(href: string, alt: string, title?: string | null): string;
19
19
  export interface CreateMarkedOptions {
@@ -6,8 +6,11 @@
6
6
  * anyway — we skip the parse step entirely.
7
7
  */
8
8
  export declare const ACCESSIBLE_ARTICLES = "\n query AccessibleArticles($status: String, $tags: [String!], $tagMode: String, $limit: Int, $offset: Int) {\n accessibleKbArticles(status: $status, tags: $tags, tagMode: $tagMode, limit: $limit, offset: $offset) {\n articles {\n id\n filename\n title\n description\n contentType\n status\n publishedAt\n updatedAt\n tags\n featuredImageUrl\n }\n totalCount\n }\n }\n";
9
+ export declare const ACCESSIBLE_ARTICLES_WITH_LOCKED = "\n query AccessibleArticlesWithLocked($status: String, $tags: [String!], $tagMode: String, $limit: Int, $offset: Int) {\n accessibleKbArticles(status: $status, tags: $tags, tagMode: $tagMode, limit: $limit, offset: $offset, includeLocked: true) {\n articles {\n id\n filename\n title\n description\n contentType\n status\n publishedAt\n updatedAt\n tags\n featuredImageUrl\n access\n locked\n }\n totalCount\n }\n }\n";
9
10
  export declare const ARTICLE_WITH_TRANSLATION = "\n query ArticleWithTranslation($filename: String!, $languageCode: String!) {\n articleWithTranslation(filename: $filename, languageCode: $languageCode) {\n id\n filename\n contentType\n status\n description\n sourceLanguageCode\n createdAt\n updatedAt\n publishedAt\n title\n content\n languageCode\n isSource\n isFallback\n featuredImageUrl\n featuredImageGeo {\n latitude\n longitude\n altitude\n placeName\n }\n contentImagesGeo {\n url\n slug\n latitude\n longitude\n altitude\n placeName\n capturedAt\n thumbnailUrl\n altText\n width\n height\n }\n accessRights\n}\n }\n";
10
11
  export declare const ARTICLE_WITH_TRANSLATION_BY_ID = "\n query ArticleWithTranslationById($id: ID!, $languageCode: String!) {\n articleWithTranslationById(id: $id, languageCode: $languageCode) {\n id\n filename\n contentType\n status\n description\n sourceLanguageCode\n createdAt\n updatedAt\n publishedAt\n title\n content\n languageCode\n isSource\n isFallback\n featuredImageUrl\n featuredImageGeo {\n latitude\n longitude\n altitude\n placeName\n }\n contentImagesGeo {\n url\n slug\n latitude\n longitude\n altitude\n placeName\n capturedAt\n thumbnailUrl\n altText\n width\n height\n }\n accessRights\n}\n }\n";
12
+ export declare const ARTICLE_PREVIEW = "\n query ArticlePreview($filename: String!, $languageCode: String!) {\n articlePreview(filename: $filename, languageCode: $languageCode) {\n id\n filename\n title\n description\n languageCode\n isFallback\n publishedAt\n featuredImageUrl\n requiredAccess\n mode\n excerpt\n}\n }\n";
13
+ export declare const ARTICLE_PREVIEW_BY_ID = "\n query ArticlePreviewById($id: ID!, $languageCode: String!) {\n articlePreviewById(id: $id, languageCode: $languageCode) {\n id\n filename\n title\n description\n languageCode\n isFallback\n publishedAt\n featuredImageUrl\n requiredAccess\n mode\n excerpt\n}\n }\n";
11
14
  export declare const ARTICLE_ALIAS_TARGET = "\n query ArticleAliasTarget($filename: String!) {\n articleAliasTarget(filename: $filename)\n }\n";
12
15
  export declare const ARTICLE_VERSION = "\n query ArticleVersion($versionId: ID!, $previewKey: String) {\n articleVersion(versionId: $versionId, previewKey: $previewKey) {\n versionId\n articleId\n filename\n versionNumber\n title\n content\n languageCode\n schemaVersion\n createdAt\n }\n }\n";
13
16
  export declare const SEARCH_KNOWLEDGE_BASE = "\n query SearchKnowledgeBase($query: String!, $tags: [String!], $contentType: String, $limit: Int, $minSimilarity: Float, $searchMode: SearchMode) {\n searchKnowledgeBase(query: $query, tags: $tags, contentType: $contentType, limit: $limit, minSimilarity: $minSimilarity, searchMode: $searchMode) {\n articleId\n filename\n title\n chunkText\n similarity\n }\n }\n";
@@ -34,7 +37,7 @@ export declare const CHANGE_PASSWORD = "\n mutation ChangePassword($currentPass
34
37
  export declare const UPDATE_MY_PROFILE = "\n mutation UpdateMyProfile($name: String, $email: String) {\n updateMyProfile(name: $name, email: $email) {\n success\n emailChanged\n user {\n id\n email\n name\n accessLevel\n }\n error\n }\n }\n";
35
38
  export declare const MY_REPORT_SETTINGS = "\n query MyReportSettings {\n myReportSettings {\n autoReportErrors\n autoReportContent\n autoReportPerformance\n includeContextData\n rateLimitPerHour\n emailNotifications\n feedbackNotifications\n }\n }\n";
36
39
  export declare const UPDATE_MY_REPORT_SETTINGS = "\n mutation UpdateMyReportSettings(\n $autoReportErrors: String\n $autoReportContent: String\n $autoReportPerformance: String\n $includeContextData: Boolean\n $rateLimitPerHour: Int\n $emailNotifications: String\n $feedbackNotifications: String\n ) {\n updateMyReportSettings(\n autoReportErrors: $autoReportErrors\n autoReportContent: $autoReportContent\n autoReportPerformance: $autoReportPerformance\n includeContextData: $includeContextData\n rateLimitPerHour: $rateLimitPerHour\n emailNotifications: $emailNotifications\n feedbackNotifications: $feedbackNotifications\n ) {\n autoReportErrors\n autoReportContent\n autoReportPerformance\n includeContextData\n rateLimitPerHour\n emailNotifications\n feedbackNotifications\n }\n }\n";
37
- export declare const CONSULTATION_PUBLIC_CONFIG = "\n query ConsultationPublicConfig($locale: String!) {\n consultationPublicConfig(locale: $locale) {\n enabled\n channels {\n channel\n mode\n text {\n purpose\n version\n locale\n body\n }\n }\n }\n }\n";
40
+ export declare const CONSULTATION_PUBLIC_CONFIG = "\n query ConsultationPublicConfig($locale: String!) {\n consultationPublicConfig(locale: $locale) {\n enabled\n readerSiteUrl\n emailNotices\n channels {\n channel\n mode\n text {\n purpose\n version\n locale\n body\n }\n }\n }\n }\n";
38
41
  export declare const MY_CONSULTATIONS = "\n query MyConsultations($limit: Int, $offset: Int) {\n myConsultations(limit: $limit, offset: $offset) {\n id\n status\n createdAt\n lastActivityAt\n messageCount\n }\n }\n";
39
42
  export declare const MY_CONSULTATION = "\n query MyConsultation($id: ID!) {\n myConsultation(id: $id) {\n id\n status\n canReply\n canAttachToAccount\n createdAt\n lastActivityAt\n messages {\n id\n author\n authorName\n body\n createdAt\n }\n}\n }\n";
40
43
  export declare const CREATE_MY_CONSULTATION = "\n mutation CreateMyConsultation($input: CreateMyConsultationInput!) {\n createMyConsultation(input: $input) {\n success\n code\n error\n duplicate\n consultation {\n id\n status\n canReply\n canAttachToAccount\n createdAt\n lastActivityAt\n messages {\n id\n author\n authorName\n body\n createdAt\n }\n}\n}\n }\n";