@lssm/example.integration-stripe 0.0.0-canary-20251217080011 → 1.41.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.
Files changed (52) hide show
  1. package/.turbo/turbo-build.log +19 -29
  2. package/dist/blueprint.js +1 -65
  3. package/dist/connection.sample.js +1 -21
  4. package/dist/docs/index.js +1 -1
  5. package/dist/docs/integration-stripe.docblock.js +13 -28
  6. package/dist/example.js +1 -39
  7. package/dist/index.js +1 -8
  8. package/dist/tenant.js +1 -52
  9. package/dist/workflow.js +1 -58
  10. package/package.json +12 -15
  11. package/tsconfig.tsbuildinfo +1 -1
  12. package/.turbo/turbo-build$colon$bundle.log +0 -58
  13. package/CHANGELOG.md +0 -13
  14. package/dist/blueprint.d.ts +0 -6
  15. package/dist/connection.sample.d.ts +0 -6
  16. package/dist/docs/index.d.ts +0 -1
  17. package/dist/docs/integration-stripe.docblock.d.ts +0 -1
  18. package/dist/example.d.ts +0 -33
  19. package/dist/index.d.ts +0 -6
  20. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  21. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  22. package/dist/libs/contracts/dist/docs/index.js +0 -29
  23. package/dist/libs/contracts/dist/docs/presentations.js +0 -71
  24. package/dist/libs/contracts/dist/docs/registry.js +0 -44
  25. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  26. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  27. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  28. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  29. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  30. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  31. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  32. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  33. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  34. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  35. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  36. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  37. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  38. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  39. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  40. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  41. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  42. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  43. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
  44. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  45. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  46. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  47. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  48. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  49. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  50. package/dist/libs/contracts/dist/ownership.js +0 -38
  51. package/dist/tenant.d.ts +0 -6
  52. package/dist/workflow.d.ts +0 -6
@@ -1,29 +1,19 @@
1
-
2
- $ bun build:bundle && bun build:types
3
- $ tsdown
4
- ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
5
- ℹ config file: /Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/integration-stripe/tsdown.config.js (unrun)
6
- ℹ entry: src/blueprint.ts, src/connection.sample.ts, src/example.ts, src/index.ts, src/tenant.ts, src/workflow.ts, src/docs/index.ts, src/docs/integration-stripe.docblock.ts
7
- ℹ target: esnext
8
- ℹ tsconfig: tsconfig.json
9
- ℹ Build start
10
- ℹ Cleaning 9 files
11
- ℹ dist/docs/integration-stripe.docblock.js 1.36 kB │ gzip: 0.67 kB
12
- ℹ dist/blueprint.js 1.34 kB │ gzip: 0.62 kB
13
- ℹ dist/tenant.js 0.97 kB │ gzip: 0.52 kB
14
- ℹ dist/workflow.js 0.95 kB │ gzip: 0.47 kB
15
- ℹ dist/example.js 0.62 kB │ gzip: 0.37 kB
16
- ℹ dist/connection.sample.js 0.43 kB │ gzip: 0.28 kB
17
- ℹ dist/index.js 0.41 kB │ gzip: 0.20 kB
18
- ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
19
- ℹ dist/example.d.ts 1.08 kB │ gzip: 0.45 kB
20
- ℹ dist/index.d.ts 0.39 kB │ gzip: 0.17 kB
21
- ℹ dist/connection.sample.d.ts 0.23 kB │ gzip: 0.15 kB
22
- ℹ dist/tenant.d.ts 0.21 kB │ gzip: 0.15 kB
23
- ℹ dist/blueprint.d.ts 0.20 kB │ gzip: 0.15 kB
24
- ℹ dist/workflow.d.ts 0.19 kB │ gzip: 0.14 kB
25
- ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
26
- ℹ dist/docs/integration-stripe.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
27
- ℹ 16 files, total: 8.45 kB
28
- ✔ Build complete in 5604ms
29
- $ tsc --noEmit
1
+ $ bun build:bundle && bun build:types
2
+ $ tsdown
3
+ ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/integration-stripe/tsdown.config.js
5
+ ℹ entry: src/blueprint.ts, src/connection.sample.ts, src/example.ts, src/index.ts, src/tenant.ts, src/workflow.ts, src/docs/index.ts, src/docs/integration-stripe.docblock.ts
6
+ ℹ target: esnext
7
+ ℹ tsconfig: tsconfig.json
8
+ ℹ Build start
9
+ ℹ dist/docs/integration-stripe.docblock.js 1.36 kB │ gzip: 0.67 kB
10
+ ℹ dist/blueprint.js 1.34 kB │ gzip: 0.62 kB
11
+ ℹ dist/tenant.js 0.97 kB │ gzip: 0.52 kB
12
+ ℹ dist/workflow.js 0.95 kB │ gzip: 0.47 kB
13
+ ℹ dist/example.js 0.62 kB │ gzip: 0.37 kB
14
+ ℹ dist/connection.sample.js 0.43 kB │ gzip: 0.28 kB
15
+ ℹ dist/index.js 0.41 kB │ gzip: 0.20 kB
16
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
17
+ ℹ 8 files, total: 6.13 kB
18
+ ✔ Build complete in 51ms
19
+ $ tsc --noEmit
package/dist/blueprint.js CHANGED
@@ -1,65 +1 @@
1
- import { OwnersEnum, StabilityEnum, TagsEnum } from "./libs/contracts/dist/ownership.js";
2
-
3
- //#region src/blueprint.ts
4
- const artisanStripeBlueprint = {
5
- meta: {
6
- name: "artisan.payments.stripe",
7
- version: 1,
8
- appId: "artisan",
9
- title: "ArtisanOS Stripe Payments",
10
- description: "Blueprint enabling card payments for ArtisanOS merchants via the Stripe integration.",
11
- domain: "payments",
12
- owners: [OwnersEnum.ProductArtisanos],
13
- tags: [
14
- TagsEnum.Marketplace,
15
- "stripe",
16
- "payments"
17
- ],
18
- stability: StabilityEnum.Experimental
19
- },
20
- capabilities: { enabled: [{
21
- key: "payments.psp",
22
- version: 1
23
- }] },
24
- integrationSlots: [{
25
- slotId: "primary-payments",
26
- requiredCategory: "payments",
27
- allowedModes: ["managed", "byok"],
28
- requiredCapabilities: [{
29
- key: "payments.psp",
30
- version: 1
31
- }],
32
- required: true,
33
- description: "Primary card processor slot. Bind the tenant Stripe connection here."
34
- }],
35
- branding: {
36
- appNameKey: "artisan.payments.appName",
37
- assets: [{
38
- type: "logo",
39
- url: "https://cdn.artisanos.dev/branding/logo.png"
40
- }, {
41
- type: "favicon",
42
- url: "https://cdn.artisanos.dev/branding/favicon.ico"
43
- }],
44
- colorTokens: {
45
- primary: "colors.brand.primary",
46
- secondary: "colors.brand.secondary"
47
- }
48
- },
49
- translationCatalog: {
50
- name: "artisan.payments.catalog",
51
- version: 1
52
- },
53
- workflows: { collectPayment: {
54
- name: "artisan.payments.collectPayment",
55
- version: 1
56
- } },
57
- policies: [{
58
- name: "artisan.payments.default",
59
- version: 1
60
- }],
61
- notes: "Install this blueprint and pair it with the Stripe integration connection to enable card collection."
62
- };
63
-
64
- //#endregion
65
- export { artisanStripeBlueprint };
1
+ import{OwnersEnum as e,StabilityEnum as t,TagsEnum as n}from"@lssm/lib.contracts/ownership";const r={meta:{name:`artisan.payments.stripe`,version:1,appId:`artisan`,title:`ArtisanOS Stripe Payments`,description:`Blueprint enabling card payments for ArtisanOS merchants via the Stripe integration.`,domain:`payments`,owners:[e.ProductArtisanos],tags:[n.Marketplace,`stripe`,`payments`],stability:t.Experimental},capabilities:{enabled:[{key:`payments.psp`,version:1}]},integrationSlots:[{slotId:`primary-payments`,requiredCategory:`payments`,allowedModes:[`managed`,`byok`],requiredCapabilities:[{key:`payments.psp`,version:1}],required:!0,description:`Primary card processor slot. Bind the tenant Stripe connection here.`}],branding:{appNameKey:`artisan.payments.appName`,assets:[{type:`logo`,url:`https://cdn.artisanos.dev/branding/logo.png`},{type:`favicon`,url:`https://cdn.artisanos.dev/branding/favicon.ico`}],colorTokens:{primary:`colors.brand.primary`,secondary:`colors.brand.secondary`}},translationCatalog:{name:`artisan.payments.catalog`,version:1},workflows:{collectPayment:{name:`artisan.payments.collectPayment`,version:1}},policies:[{name:`artisan.payments.default`,version:1}],notes:`Install this blueprint and pair it with the Stripe integration connection to enable card collection.`};export{r as artisanStripeBlueprint};
@@ -1,21 +1 @@
1
- //#region src/connection.sample.ts
2
- const stripeLiveConnection = {
3
- meta: {
4
- id: "conn-stripe-live",
5
- tenantId: "artisan-co",
6
- integrationKey: "payments.stripe",
7
- integrationVersion: 1,
8
- label: "Stripe Production",
9
- environment: "production",
10
- createdAt: "2026-01-01T00:00:00.000Z",
11
- updatedAt: "2026-01-01T00:00:00.000Z"
12
- },
13
- ownershipMode: "managed",
14
- config: { accountId: "acct_xxx" },
15
- secretProvider: "vault",
16
- secretRef: "vault://integrations/artisan-co/conn-stripe-live",
17
- status: "connected"
18
- };
19
-
20
- //#endregion
21
- export { stripeLiveConnection };
1
+ const e={meta:{id:`conn-stripe-live`,tenantId:`artisan-co`,integrationKey:`payments.stripe`,integrationVersion:1,label:`Stripe Production`,environment:`production`,createdAt:`2026-01-01T00:00:00.000Z`,updatedAt:`2026-01-01T00:00:00.000Z`},ownershipMode:`managed`,config:{accountId:`acct_xxx`},secretProvider:`vault`,secretRef:`vault://integrations/artisan-co/conn-stripe-live`,status:`connected`};export{e as stripeLiveConnection};
@@ -1 +1 @@
1
- import "./integration-stripe.docblock.js";
1
+ import"./integration-stripe.docblock.js";
@@ -1,30 +1,15 @@
1
- import { registerDocBlocks } from "../libs/contracts/dist/docs/registry.js";
2
- import "../libs/contracts/dist/docs/index.js";
1
+ import{registerDocBlocks as e}from"@lssm/lib.contracts/docs";e([{id:`docs.examples.integration-stripe`,title:`Integration Example — Stripe Payments`,summary:`How to wire IntegrationSpec/TenantAppConfig + blueprint + workflow to enable Stripe-backed payments.`,kind:`reference`,visibility:`public`,route:`/docs/examples/integration-stripe`,tags:[`stripe`,`payments`,`integrations`,`example`],body:`## Included
2
+ - App blueprint enabling \`payments.psp\` capability.
3
+ - Workflow invoking Stripe operations (prepare → charge → confirm).
4
+ - Tenant app config binding workflow to an IntegrationConnection.
3
5
 
4
- //#region src/docs/integration-stripe.docblock.ts
5
- registerDocBlocks([{
6
- id: "docs.examples.integration-stripe",
7
- title: "Integration Example Stripe Payments",
8
- summary: "How to wire IntegrationSpec/TenantAppConfig + blueprint + workflow to enable Stripe-backed payments.",
9
- kind: "reference",
10
- visibility: "public",
11
- route: "/docs/examples/integration-stripe",
12
- tags: [
13
- "stripe",
14
- "payments",
15
- "integrations",
16
- "example"
17
- ],
18
- body: `## Included\n- App blueprint enabling \`payments.psp\` capability.\n- Workflow invoking Stripe operations (prepare → charge → confirm).\n- Tenant app config binding workflow to an IntegrationConnection.\n\n## Notes\n- Secrets live in secret providers; connection config is non-secret.\n- Use \`ctx.resolvedAppConfig\` in operation executors to access integrations, branding, and translations.`
19
- }, {
20
- id: "docs.examples.integration-stripe.usage",
21
- title: "Stripe Integration Example — Usage",
22
- summary: "How to use the blueprint, workflow, and tenant config together.",
23
- kind: "usage",
24
- visibility: "public",
25
- route: "/docs/examples/integration-stripe/usage",
26
- tags: ["stripe", "usage"],
27
- body: `## Usage\n1) Register the blueprint + workflow + catalog in your registry.\n2) Persist an IntegrationConnection (see connection sample).\n3) Bind the tenant app config to the connection.\n\n## Guardrails\n- Never log secrets.\n- Keep payment semantics spec-defined; gate breaking changes behind flags.`
28
- }]);
6
+ ## Notes
7
+ - Secrets live in secret providers; connection config is non-secret.
8
+ - Use \`ctx.resolvedAppConfig\` in operation executors to access integrations, branding, and translations.`},{id:`docs.examples.integration-stripe.usage`,title:`Stripe Integration Example — Usage`,summary:`How to use the blueprint, workflow, and tenant config together.`,kind:`usage`,visibility:`public`,route:`/docs/examples/integration-stripe/usage`,tags:[`stripe`,`usage`],body:`## Usage
9
+ 1) Register the blueprint + workflow + catalog in your registry.
10
+ 2) Persist an IntegrationConnection (see connection sample).
11
+ 3) Bind the tenant app config to the connection.
29
12
 
30
- //#endregion
13
+ ## Guardrails
14
+ - Never log secrets.
15
+ - Keep payment semantics spec-defined; gate breaking changes behind flags.`}]);
package/dist/example.js CHANGED
@@ -1,39 +1 @@
1
- //#region src/example.ts
2
- const example = {
3
- id: "integration-stripe",
4
- title: "Integration — Stripe Payments",
5
- summary: "Wire AppBlueprint + Workflow + TenantAppConfig to enable Stripe-backed payments (spec-first integration pattern).",
6
- tags: [
7
- "stripe",
8
- "payments",
9
- "integration",
10
- "blueprint",
11
- "workflow"
12
- ],
13
- kind: "integration",
14
- visibility: "public",
15
- docs: {
16
- rootDocId: "docs.examples.integration-stripe",
17
- usageDocId: "docs.examples.integration-stripe.usage"
18
- },
19
- entrypoints: {
20
- packageName: "@lssm/example.integration-stripe",
21
- docs: "./docs"
22
- },
23
- surfaces: {
24
- templates: true,
25
- sandbox: {
26
- enabled: true,
27
- modes: ["markdown", "specs"]
28
- },
29
- studio: {
30
- enabled: true,
31
- installable: true
32
- },
33
- mcp: { enabled: true }
34
- }
35
- };
36
- var example_default = example;
37
-
38
- //#endregion
39
- export { example_default as default };
1
+ var e={id:`integration-stripe`,title:`Integration — Stripe Payments`,summary:`Wire AppBlueprint + Workflow + TenantAppConfig to enable Stripe-backed payments (spec-first integration pattern).`,tags:[`stripe`,`payments`,`integration`,`blueprint`,`workflow`],kind:`integration`,visibility:`public`,docs:{rootDocId:`docs.examples.integration-stripe`,usageDocId:`docs.examples.integration-stripe.usage`},entrypoints:{packageName:`@lssm/example.integration-stripe`,docs:`./docs`},surfaces:{templates:!0,sandbox:{enabled:!0,modes:[`markdown`,`specs`]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}};export{e as default};
package/dist/index.js CHANGED
@@ -1,8 +1 @@
1
- import { artisanStripeBlueprint } from "./blueprint.js";
2
- import { stripeLiveConnection } from "./connection.sample.js";
3
- import example_default from "./example.js";
4
- import { collectPaymentWorkflow } from "./workflow.js";
5
- import { artisanStripeTenantConfig } from "./tenant.js";
6
- import "./docs/index.js";
7
-
8
- export { artisanStripeBlueprint, artisanStripeTenantConfig, collectPaymentWorkflow, example_default as example, stripeLiveConnection };
1
+ import{artisanStripeBlueprint as e}from"./blueprint.js";import{stripeLiveConnection as t}from"./connection.sample.js";import n from"./example.js";import{collectPaymentWorkflow as r}from"./workflow.js";import{artisanStripeTenantConfig as i}from"./tenant.js";import"./docs/index.js";export{e as artisanStripeBlueprint,i as artisanStripeTenantConfig,r as collectPaymentWorkflow,n as example,t as stripeLiveConnection};
package/dist/tenant.js CHANGED
@@ -1,52 +1 @@
1
- //#region src/tenant.ts
2
- const artisanStripeTenantConfig = {
3
- meta: {
4
- id: "tenant-config-artisan-stripe",
5
- tenantId: "artisan-co",
6
- appId: "artisan",
7
- blueprintName: "artisan.payments.stripe",
8
- blueprintVersion: 1,
9
- environment: "production",
10
- version: 1,
11
- status: "published",
12
- createdAt: (/* @__PURE__ */ new Date()).toISOString(),
13
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
14
- },
15
- integrations: [{
16
- slotId: "primary-payments",
17
- connectionId: "conn-stripe-live",
18
- scope: {
19
- workflows: ["collectPayment"],
20
- operations: ["payments.stripe.chargeCard"]
21
- }
22
- }],
23
- knowledge: [],
24
- locales: {
25
- defaultLocale: "en",
26
- enabledLocales: ["en", "fr"]
27
- },
28
- translationOverrides: { entries: [{
29
- key: "artisan.payments.appName",
30
- locale: "en",
31
- value: "Artisan Payments Portal"
32
- }] },
33
- branding: {
34
- appName: { en: "Artisan Payments Portal" },
35
- assets: [{
36
- type: "logo",
37
- url: "https://tenant.artisanos.dev/logo.png"
38
- }, {
39
- type: "logo-dark",
40
- url: "https://tenant.artisanos.dev/logo-dark.png"
41
- }],
42
- colors: {
43
- primary: "#F97316",
44
- secondary: "#1F2937"
45
- },
46
- customDomain: "pay.artisanos.dev"
47
- },
48
- notes: "Stripe connection bound for production payments."
49
- };
50
-
51
- //#endregion
52
- export { artisanStripeTenantConfig };
1
+ const e={meta:{id:`tenant-config-artisan-stripe`,tenantId:`artisan-co`,appId:`artisan`,blueprintName:`artisan.payments.stripe`,blueprintVersion:1,environment:`production`,version:1,status:`published`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},integrations:[{slotId:`primary-payments`,connectionId:`conn-stripe-live`,scope:{workflows:[`collectPayment`],operations:[`payments.stripe.chargeCard`]}}],knowledge:[],locales:{defaultLocale:`en`,enabledLocales:[`en`,`fr`]},translationOverrides:{entries:[{key:`artisan.payments.appName`,locale:`en`,value:`Artisan Payments Portal`}]},branding:{appName:{en:`Artisan Payments Portal`},assets:[{type:`logo`,url:`https://tenant.artisanos.dev/logo.png`},{type:`logo-dark`,url:`https://tenant.artisanos.dev/logo-dark.png`}],colors:{primary:`#F97316`,secondary:`#1F2937`},customDomain:`pay.artisanos.dev`},notes:`Stripe connection bound for production payments.`};export{e as artisanStripeTenantConfig};
package/dist/workflow.js CHANGED
@@ -1,58 +1 @@
1
- import { OwnersEnum, StabilityEnum, TagsEnum } from "./libs/contracts/dist/ownership.js";
2
-
3
- //#region src/workflow.ts
4
- const collectPaymentWorkflow = {
5
- meta: {
6
- name: "artisan.payments.collectPayment",
7
- version: 1,
8
- title: "Collect Card Payment",
9
- description: "Charge a customer using the tenant Stripe connection and record settlement details.",
10
- domain: "payments",
11
- owners: [OwnersEnum.ProductArtisanos],
12
- tags: [TagsEnum.Marketplace, "stripe"],
13
- stability: StabilityEnum.Experimental
14
- },
15
- definition: {
16
- entryStepId: "prepare",
17
- steps: [
18
- {
19
- id: "prepare",
20
- type: "automation",
21
- label: "Prepare charge parameters",
22
- action: { operation: {
23
- name: "payments.prepareCharge",
24
- version: 1
25
- } }
26
- },
27
- {
28
- id: "charge",
29
- type: "automation",
30
- label: "Charge card via Stripe",
31
- action: { operation: {
32
- name: "payments.stripe.chargeCard",
33
- version: 1
34
- } }
35
- },
36
- {
37
- id: "confirm",
38
- type: "automation",
39
- label: "Confirm settlement",
40
- action: { operation: {
41
- name: "payments.recordSettlement",
42
- version: 1
43
- } }
44
- }
45
- ],
46
- transitions: [{
47
- from: "prepare",
48
- to: "charge"
49
- }, {
50
- from: "charge",
51
- to: "confirm",
52
- condition: "output.success === true"
53
- }]
54
- }
55
- };
56
-
57
- //#endregion
58
- export { collectPaymentWorkflow };
1
+ import{OwnersEnum as e,StabilityEnum as t,TagsEnum as n}from"@lssm/lib.contracts/ownership";const r={meta:{name:`artisan.payments.collectPayment`,version:1,title:`Collect Card Payment`,description:`Charge a customer using the tenant Stripe connection and record settlement details.`,domain:`payments`,owners:[e.ProductArtisanos],tags:[n.Marketplace,`stripe`],stability:t.Experimental},definition:{entryStepId:`prepare`,steps:[{id:`prepare`,type:`automation`,label:`Prepare charge parameters`,action:{operation:{name:`payments.prepareCharge`,version:1}}},{id:`charge`,type:`automation`,label:`Charge card via Stripe`,action:{operation:{name:`payments.stripe.chargeCard`,version:1}}},{id:`confirm`,type:`automation`,label:`Confirm settlement`,action:{operation:{name:`payments.recordSettlement`,version:1}}}],transitions:[{from:`prepare`,to:`charge`},{from:`charge`,to:`confirm`,condition:`output.success === true`}]}};export{r as collectPaymentWorkflow};
package/package.json CHANGED
@@ -1,24 +1,22 @@
1
1
  {
2
2
  "name": "@lssm/example.integration-stripe",
3
- "version": "0.0.0-canary-20251217080011",
3
+ "version": "1.41.0",
4
4
  "description": "Integration example – Stripe Payments (blueprint + workflow + tenant config).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "exports": {
9
- ".": "./dist/index.js",
10
- "./blueprint": "./dist/blueprint.js",
11
- "./connection.sample": "./dist/connection.sample.js",
12
- "./docs": "./dist/docs/index.js",
13
- "./docs/integration-stripe.docblock": "./dist/docs/integration-stripe.docblock.js",
14
- "./example": "./dist/example.js",
15
- "./tenant": "./dist/tenant.js",
16
- "./workflow": "./dist/workflow.js",
9
+ ".": "./src/index.ts",
10
+ "./blueprint": "./src/blueprint.ts",
11
+ "./connection.sample": "./src/connection.sample.ts",
12
+ "./docs": "./src/docs/index.ts",
13
+ "./docs/integration-stripe.docblock": "./src/docs/integration-stripe.docblock.ts",
14
+ "./example": "./src/example.ts",
15
+ "./tenant": "./src/tenant.ts",
16
+ "./workflow": "./src/workflow.ts",
17
17
  "./*": "./*"
18
18
  },
19
19
  "scripts": {
20
- "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
21
- "publish:pkg:canary": "bun publish:pkg --tag canary",
22
20
  "build": "bun build:bundle && bun build:types",
23
21
  "build:bundle": "tsdown",
24
22
  "build:types": "tsc --noEmit",
@@ -30,12 +28,11 @@
30
28
  "test": "bun test"
31
29
  },
32
30
  "dependencies": {
33
- "@lssm/lib.schema": "0.0.0-canary-20251217080011",
34
- "@lssm/lib.contracts": "0.0.0-canary-20251217080011"
31
+ "@lssm/lib.contracts": "workspace:*"
35
32
  },
36
33
  "devDependencies": {
37
- "@lssm/tool.tsdown": "0.0.0-canary-20251217080011",
38
- "@lssm/tool.typescript": "0.0.0-canary-20251217080011",
34
+ "@lssm/tool.tsdown": "workspace:*",
35
+ "@lssm/tool.typescript": "workspace:*",
39
36
  "tsdown": "^0.17.4",
40
37
  "typescript": "^5.9.3"
41
38
  },