@odla-ai/chapter 0.28.2 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1406,15 +1406,25 @@ interface IntegrationSetting {
1406
1406
  /** Where the value is stored and read from. */
1407
1407
  source: string;
1408
1408
  }
1409
- /** A secret the capability needs, held in the tenant vault. */
1409
+ /**
1410
+ * A secret the capability needs, held in the tenant vault.
1411
+ *
1412
+ * Structurally the odla CLI's `IntegrationSecret`: `name` is the vault name
1413
+ * byte-for-byte, so `odla-ai doctor`, `odla-ai secrets status`, and the
1414
+ * repo's `check:secrets` gate can hold this declaration against the name the
1415
+ * platform actually reads. `mode` is chapter's own addition and the CLI
1416
+ * ignores it.
1417
+ */
1410
1418
  interface IntegrationSecret {
1411
- key: string;
1419
+ /** Vault name, exactly as `odla-ai secrets set <name>` writes it. */
1420
+ name: string;
1412
1421
  description: string;
1413
1422
  pattern?: string;
1414
1423
  /** Auth mode that requires this secret ("full" pulls user profiles). */
1415
1424
  mode: SecretMode;
1416
- /** Stored in the tenant vault (never in graph rows or wrangler vars)? */
1417
- vault: boolean;
1425
+ /** Whether the capability is broken without it. Both Clerk secrets are
1426
+ * needed only by auth mode "full", so both are optional. */
1427
+ required?: boolean;
1418
1428
  }
1419
1429
  /** One data-sync contract. A capability may declare several (e.g. an inbound
1420
1430
  * webhook mirror AND an outbound write), so {@link IntegrationDescriptor.syncs}
package/dist/index.d.ts CHANGED
@@ -1406,15 +1406,25 @@ interface IntegrationSetting {
1406
1406
  /** Where the value is stored and read from. */
1407
1407
  source: string;
1408
1408
  }
1409
- /** A secret the capability needs, held in the tenant vault. */
1409
+ /**
1410
+ * A secret the capability needs, held in the tenant vault.
1411
+ *
1412
+ * Structurally the odla CLI's `IntegrationSecret`: `name` is the vault name
1413
+ * byte-for-byte, so `odla-ai doctor`, `odla-ai secrets status`, and the
1414
+ * repo's `check:secrets` gate can hold this declaration against the name the
1415
+ * platform actually reads. `mode` is chapter's own addition and the CLI
1416
+ * ignores it.
1417
+ */
1410
1418
  interface IntegrationSecret {
1411
- key: string;
1419
+ /** Vault name, exactly as `odla-ai secrets set <name>` writes it. */
1420
+ name: string;
1412
1421
  description: string;
1413
1422
  pattern?: string;
1414
1423
  /** Auth mode that requires this secret ("full" pulls user profiles). */
1415
1424
  mode: SecretMode;
1416
- /** Stored in the tenant vault (never in graph rows or wrangler vars)? */
1417
- vault: boolean;
1425
+ /** Whether the capability is broken without it. Both Clerk secrets are
1426
+ * needed only by auth mode "full", so both are optional. */
1427
+ required?: boolean;
1418
1428
  }
1419
1429
  /** One data-sync contract. A capability may declare several (e.g. an inbound
1420
1430
  * webhook mirror AND an outbound write), so {@link IntegrationDescriptor.syncs}
package/dist/index.js CHANGED
@@ -2051,18 +2051,22 @@ var clerkIntegration = {
2051
2051
  ],
2052
2052
  secrets: [
2053
2053
  {
2054
- key: "CLERK_WEBHOOK_SECRET",
2054
+ // odla-db reads this exact name (CLERK_WEBHOOK_SECRET_NAME in the
2055
+ // platform's clerk-webhook.ts); it is also what `odla-ai secrets set`
2056
+ // writes. It read "CLERK_WEBHOOK_SECRET" until 0.30.0, which sent
2057
+ // adopters to store the value under a name nothing looks up.
2058
+ name: "clerk_webhook_secret",
2055
2059
  description: "Svix signing secret for Clerk user webhooks \u2014 verifies $users sync events.",
2056
2060
  pattern: "whsec_",
2057
2061
  mode: "full",
2058
- vault: true
2062
+ required: false
2059
2063
  },
2060
2064
  {
2061
- key: "clerk_secret_key",
2065
+ name: "clerk_secret_key",
2062
2066
  description: "Clerk backend key (sk_*) \u2014 powers account creation, the public role claim, and backend-only private profile signals; it also lets odla-db resolve user email/name via the Clerk API.",
2063
2067
  pattern: "sk_",
2064
2068
  mode: "full",
2065
- vault: true
2069
+ required: false
2066
2070
  }
2067
2071
  ],
2068
2072
  syncs: [