service-bridge 0.1.4

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 (51) hide show
  1. package/README.md +989 -0
  2. package/biome.json +28 -0
  3. package/bun.lock +249 -0
  4. package/dist/express.d.ts +51 -0
  5. package/dist/express.js +129 -0
  6. package/dist/fastify.d.ts +43 -0
  7. package/dist/fastify.js +122 -0
  8. package/dist/index.js +34507 -0
  9. package/dist/trace.d.ts +19 -0
  10. package/http/dist/express.d.ts +51 -0
  11. package/http/dist/express.d.ts.map +1 -0
  12. package/http/dist/express.test.d.ts +2 -0
  13. package/http/dist/express.test.d.ts.map +1 -0
  14. package/http/dist/fastify.d.ts +43 -0
  15. package/http/dist/fastify.d.ts.map +1 -0
  16. package/http/dist/fastify.test.d.ts +2 -0
  17. package/http/dist/fastify.test.d.ts.map +1 -0
  18. package/http/dist/index.d.ts +7 -0
  19. package/http/dist/index.d.ts.map +1 -0
  20. package/http/dist/trace.d.ts +19 -0
  21. package/http/dist/trace.d.ts.map +1 -0
  22. package/http/dist/trace.test.d.ts +2 -0
  23. package/http/dist/trace.test.d.ts.map +1 -0
  24. package/http/package.json +49 -0
  25. package/http/src/express.test.ts +125 -0
  26. package/http/src/express.ts +209 -0
  27. package/http/src/fastify.test.ts +142 -0
  28. package/http/src/fastify.ts +159 -0
  29. package/http/src/index.ts +10 -0
  30. package/http/src/sdk-augment.d.ts +11 -0
  31. package/http/src/servicebridge.d.ts +23 -0
  32. package/http/src/trace.test.ts +97 -0
  33. package/http/src/trace.ts +56 -0
  34. package/http/tsconfig.json +17 -0
  35. package/http/tsconfig.test.json +6 -0
  36. package/package.json +113 -0
  37. package/sdk/dist/generated/servicebridge-package-definition.d.ts +4912 -0
  38. package/sdk/dist/grpc-client.d.ts +344 -0
  39. package/sdk/dist/grpc-client.test.d.ts +1 -0
  40. package/sdk/dist/index.d.ts +2 -0
  41. package/sdk/package.json +31 -0
  42. package/sdk/scripts/generate-proto.ts +65 -0
  43. package/sdk/src/generated/servicebridge-package-definition.ts +5423 -0
  44. package/sdk/src/grpc-client.d.ts +332 -0
  45. package/sdk/src/grpc-client.d.ts.map +1 -0
  46. package/sdk/src/grpc-client.test.ts +422 -0
  47. package/sdk/src/grpc-client.ts +3088 -0
  48. package/sdk/src/index.d.ts +3 -0
  49. package/sdk/src/index.d.ts.map +1 -0
  50. package/sdk/src/index.ts +31 -0
  51. package/sdk/tsconfig.json +13 -0
@@ -0,0 +1,3 @@
1
+ export type { EventContext, EventOpts, HandleEventOpts, HandleRpcOpts, HttpSpan, RetryPolicy, RpcContext, RpcFieldDef, RpcFieldType, RpcOpts, RpcSchema, RpcSchemaOpts, RunStreamEvent, ScheduleOpts, ServeOpts, ServiceBridgeErrorSeverity, ServiceBridgeOpts, ServiceBridgeService, StreamWriter, TraceCtx, WatchRunOpts, } from "./grpc-client";
2
+ export { getTraceContext, runWithTraceContext, ServiceBridgeError, servicebridge, } from "./grpc-client";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,YAAY,EACZ,SAAS,EACT,eAAe,EACf,aAAa,EACb,QAAQ,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,OAAO,EACP,SAAS,EACT,aAAa,EACb,cAAc,EACd,YAAY,EACZ,SAAS,EACT,0BAA0B,EAC1B,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,QAAQ,EACR,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,GACd,MAAM,eAAe,CAAC"}
@@ -0,0 +1,31 @@
1
+ export type {
2
+ EventContext,
3
+ EventOpts,
4
+ HandleEventOpts,
5
+ HandleRpcOpts,
6
+ HttpSpan,
7
+ RetryPolicy,
8
+ RpcContext,
9
+ RpcFieldDef,
10
+ RpcFieldType,
11
+ RpcOpts,
12
+ RpcSchema,
13
+ RpcSchemaOpts,
14
+ RunStreamEvent,
15
+ RunWorkflowOpts,
16
+ ScheduleOpts,
17
+ ServeOpts,
18
+ ServiceBridgeErrorSeverity,
19
+ ServiceBridgeOpts,
20
+ ServiceBridgeService,
21
+ StreamWriter,
22
+ TraceCtx,
23
+ WatchRunOpts,
24
+ WorkflowOpts,
25
+ } from "./grpc-client";
26
+ export {
27
+ getTraceContext,
28
+ runWithTraceContext,
29
+ ServiceBridgeError,
30
+ servicebridge,
31
+ } from "./grpc-client";
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "strict": true,
7
+ "skipLibCheck": true,
8
+ "declaration": true,
9
+ "declarationDir": "dist",
10
+ "outDir": "dist"
11
+ },
12
+ "include": ["src/**/*"]
13
+ }