@org.ai/examples 0.0.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 (40) hide show
  1. package/.turbo/turbo-build.log +4 -0
  2. package/LICENSE +21 -0
  3. package/README.md +147 -0
  4. package/api-business/index.ts +1179 -0
  5. package/directory/index.ts +1118 -0
  6. package/dist/api-business/index.d.ts +221 -0
  7. package/dist/api-business/index.d.ts.map +1 -0
  8. package/dist/api-business/index.js +1132 -0
  9. package/dist/api-business/index.js.map +1 -0
  10. package/dist/directory/index.d.ts +202 -0
  11. package/dist/directory/index.d.ts.map +1 -0
  12. package/dist/directory/index.js +1073 -0
  13. package/dist/directory/index.js.map +1 -0
  14. package/dist/index.d.ts +75 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +127 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/marketplace/index.d.ts +242 -0
  19. package/dist/marketplace/index.d.ts.map +1 -0
  20. package/dist/marketplace/index.js +1249 -0
  21. package/dist/marketplace/index.js.map +1 -0
  22. package/dist/saas/index.d.ts +151 -0
  23. package/dist/saas/index.d.ts.map +1 -0
  24. package/dist/saas/index.js +1142 -0
  25. package/dist/saas/index.js.map +1 -0
  26. package/dist/startup-studio/index.d.ts +285 -0
  27. package/dist/startup-studio/index.d.ts.map +1 -0
  28. package/dist/startup-studio/index.js +1252 -0
  29. package/dist/startup-studio/index.js.map +1 -0
  30. package/dist/vc-firm/index.d.ts +248 -0
  31. package/dist/vc-firm/index.d.ts.map +1 -0
  32. package/dist/vc-firm/index.js +1335 -0
  33. package/dist/vc-firm/index.js.map +1 -0
  34. package/index.ts +151 -0
  35. package/marketplace/index.ts +1295 -0
  36. package/package.json +58 -0
  37. package/saas/index.ts +1188 -0
  38. package/startup-studio/index.ts +1324 -0
  39. package/tsconfig.json +12 -0
  40. package/vc-firm/index.ts +1430 -0
@@ -0,0 +1,221 @@
1
+ /**
2
+ * API Business Example
3
+ *
4
+ * A complete example of a developer-focused API business modeled using primitives.org.ai
5
+ * Think: Stripe, Twilio, SendGrid, Algolia
6
+ *
7
+ * @example APIHub - A unified API gateway for third-party integrations
8
+ * @packageDocumentation
9
+ */
10
+ export interface Organization {
11
+ id: string;
12
+ name: string;
13
+ settings?: any;
14
+ departments?: any[];
15
+ teams?: any[];
16
+ roles?: any[];
17
+ approvalChains?: any[];
18
+ routingRules?: any[];
19
+ }
20
+ /**
21
+ * APIHub - Unified API Gateway Platform
22
+ */
23
+ export declare const APIHubBusiness: any;
24
+ export declare const APIHubVision: any;
25
+ export declare const APIHubGoals: any[];
26
+ /**
27
+ * Core API Products
28
+ */
29
+ export declare const APIGateway: any;
30
+ export declare const IntegrationsHub: any;
31
+ export declare const APIAnalytics: any;
32
+ /**
33
+ * Usage-based Pricing
34
+ */
35
+ export declare const Pricing: {
36
+ free: {
37
+ name: string;
38
+ monthlyApiCalls: number;
39
+ price: number;
40
+ features: string[];
41
+ };
42
+ developer: {
43
+ name: string;
44
+ monthlyApiCalls: number;
45
+ price: number;
46
+ overage: number;
47
+ features: string[];
48
+ };
49
+ team: {
50
+ name: string;
51
+ monthlyApiCalls: number;
52
+ price: number;
53
+ overage: number;
54
+ features: string[];
55
+ };
56
+ enterprise: {
57
+ name: string;
58
+ monthlyApiCalls: string;
59
+ price: string;
60
+ features: string[];
61
+ };
62
+ };
63
+ /**
64
+ * Calculate monthly bill for usage
65
+ */
66
+ export declare function calculateMonthlyBill(plan: keyof typeof Pricing, apiCalls: number): number;
67
+ export declare const APIHubOrg: Organization;
68
+ export declare const APIHubKPIs: any[];
69
+ export declare const APIHubOKRs: any[];
70
+ export declare const IntegrationDevelopmentProcess: any;
71
+ export declare const IncidentResponseProcess: any;
72
+ export declare const DeveloperOnboardingProcess: any;
73
+ export declare const UsageAlertWorkflow: any;
74
+ export declare const IncidentAlertWorkflow: any;
75
+ export declare const NewDeveloperWorkflow: any;
76
+ export declare const APIHubFinancials: any;
77
+ export declare const APIMetrics: {
78
+ mrr: number;
79
+ arr: number;
80
+ developers: {
81
+ total: number;
82
+ active: number;
83
+ paying: number;
84
+ };
85
+ apiCalls: {
86
+ monthly: number;
87
+ daily: number;
88
+ peakRps: number;
89
+ };
90
+ arpu: number;
91
+ cac: number;
92
+ ltv: number;
93
+ ltvToCac: number;
94
+ nrr: number;
95
+ freeToConversion: number;
96
+ infrastructureCostPerCall: number;
97
+ grossMargin: number;
98
+ };
99
+ export declare function getBusinessSummary(): {
100
+ company: any;
101
+ vision: any;
102
+ goals: any[];
103
+ products: {
104
+ gateway: any;
105
+ integrations: any;
106
+ analytics: any;
107
+ };
108
+ kpis: any[];
109
+ okrs: any[];
110
+ financials: any;
111
+ metrics: {
112
+ mrr: number;
113
+ arr: number;
114
+ developers: {
115
+ total: number;
116
+ active: number;
117
+ paying: number;
118
+ };
119
+ apiCalls: {
120
+ monthly: number;
121
+ daily: number;
122
+ peakRps: number;
123
+ };
124
+ arpu: number;
125
+ cac: number;
126
+ ltv: number;
127
+ ltvToCac: number;
128
+ nrr: number;
129
+ freeToConversion: number;
130
+ infrastructureCostPerCall: number;
131
+ grossMargin: number;
132
+ };
133
+ };
134
+ export declare function getPlatformHealth(): {
135
+ uptime: string;
136
+ latency: string;
137
+ errorRate: string;
138
+ throughput: string;
139
+ };
140
+ export declare function getDeveloperMetrics(): {
141
+ total: string;
142
+ active: string;
143
+ paying: string;
144
+ conversionRate: string;
145
+ };
146
+ declare const _default: {
147
+ business: any;
148
+ vision: any;
149
+ goals: any[];
150
+ products: {
151
+ gateway: any;
152
+ integrations: any;
153
+ analytics: any;
154
+ };
155
+ pricing: {
156
+ free: {
157
+ name: string;
158
+ monthlyApiCalls: number;
159
+ price: number;
160
+ features: string[];
161
+ };
162
+ developer: {
163
+ name: string;
164
+ monthlyApiCalls: number;
165
+ price: number;
166
+ overage: number;
167
+ features: string[];
168
+ };
169
+ team: {
170
+ name: string;
171
+ monthlyApiCalls: number;
172
+ price: number;
173
+ overage: number;
174
+ features: string[];
175
+ };
176
+ enterprise: {
177
+ name: string;
178
+ monthlyApiCalls: string;
179
+ price: string;
180
+ features: string[];
181
+ };
182
+ };
183
+ organization: Organization;
184
+ kpis: any[];
185
+ okrs: any[];
186
+ processes: {
187
+ integrationDevelopment: any;
188
+ incidentResponse: any;
189
+ developerOnboarding: any;
190
+ };
191
+ workflows: {
192
+ usageAlert: any;
193
+ incidentAlert: any;
194
+ newDeveloper: any;
195
+ };
196
+ financials: any;
197
+ metrics: {
198
+ mrr: number;
199
+ arr: number;
200
+ developers: {
201
+ total: number;
202
+ active: number;
203
+ paying: number;
204
+ };
205
+ apiCalls: {
206
+ monthly: number;
207
+ daily: number;
208
+ peakRps: number;
209
+ };
210
+ arpu: number;
211
+ cac: number;
212
+ ltv: number;
213
+ ltvToCac: number;
214
+ nrr: number;
215
+ freeToConversion: number;
216
+ infrastructureCostPerCall: number;
217
+ grossMargin: number;
218
+ };
219
+ };
220
+ export default _default;
221
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../api-business/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAsBH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,WAAW,CAAC,EAAE,GAAG,EAAE,CAAA;IACnB,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;IACb,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;IACb,cAAc,CAAC,EAAE,GAAG,EAAE,CAAA;IACtB,YAAY,CAAC,EAAE,GAAG,EAAE,CAAA;CACrB;AAaD;;GAEG;AACH,eAAO,MAAM,cAAc,KA6DzB,CAAA;AAMF,eAAO,MAAM,YAAY,KAevB,CAAA;AAEF,eAAO,MAAM,WAAW,OAyCtB,CAAA;AAMF;;GAEG;AACH,eAAO,MAAM,UAAU,KAkBrB,CAAA;AAE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