Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion content/docs/kernel/services-checklist.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,11 @@ When an app bundle includes an `i18n` config and `translations` array, `AppPlugi

```typescript
export default defineStack({
manifest: { id: 'com.example.crm', namespace: 'crm' },
manifest: {
id: 'com.example.crm',
namespace: 'crm',
/* …full ObjectStackManifest… */
},
i18n: { defaultLocale: 'en', supportedLocales: ['en', 'zh-CN'], fallbackLocale: 'en' },
translations: [CrmTranslations], // TranslationBundle[]
});
Expand Down
5 changes: 4 additions & 1 deletion content/docs/permissions/authorization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ export const ExportDataCapability = defineCapability({
});

export default defineStack({
manifest: { namespace: 'billing' },
manifest: {
namespace: 'billing',
/* …full ObjectStackManifest… */
},
capabilities: [ExportDataCapability], // ← DEFINE
permissions: [{ name: 'billing_admin', systemPermissions: ['export_data'] }], // ← GRANT
// a resource REQUIRES it: requiredPermissions: ['export_data']
Expand Down
7 changes: 6 additions & 1 deletion content/docs/permissions/capabilities.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ import { defineStack } from '@objectstack/spec';
import { ExportDataCapability } from './capabilities/export-data.capability';

export default defineStack({
manifest: { name: 'billing', namespace: 'billing', version: '1.0.0' },
manifest: {
name: 'billing',
namespace: 'billing',
version: '1.0.0',
/* …full ObjectStackManifest… */
},
capabilities: [ExportDataCapability], // ← ① DEFINE
permissions: [
{ name: 'billing_admin', systemPermissions: ['export_data'] }, // ← ④ GRANT
Expand Down
6 changes: 5 additions & 1 deletion content/docs/permissions/record-view-auditing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ import { defineStack } from '@objectstack/spec';
import { AuditPlugin } from '@objectstack/plugin-audit';

export default defineStack({
manifest: { name: 'my-app', version: '1.0.0' },
manifest: {
name: 'my-app',
version: '1.0.0',
/* …full ObjectStackManifest… */
},
plugins: [
new AuditPlugin({ readAudit: { objects: ['contact', 'account'] } }),
],
Expand Down
8 changes: 7 additions & 1 deletion docs/design/marketplace-publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,13 @@ set of namespaces its plugins use.
```typescript
// objectstack.config.ts
export default defineStack({
manifest: { id: 'com.hotcrm', type: 'app', namespace: 'hotcrm', version: '2.0.0' },
manifest: {
id: 'com.hotcrm',
type: 'app',
namespace: 'hotcrm',
version: '2.0.0',
/* …full ObjectStackManifest… */
},
plugins: [crmPlugin, financePlugin, marketingPlugin, /* … */], // invisible internals
apps: [hotcrmApp], // exactly one consumer app surface (multiple tabs), not a suite
});
Expand Down
Loading