@jini-ai/integrations 0.4.2 → 0.4.3

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 (116) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/api-connections/access-token.d.ts +9 -0
  3. package/dist/api-connections/access-token.js +92 -0
  4. package/dist/api-connections/account-actions.d.ts +40 -0
  5. package/dist/api-connections/account-actions.js +110 -0
  6. package/dist/api-connections/attempt-state.d.ts +28 -0
  7. package/dist/api-connections/attempt-state.js +73 -0
  8. package/dist/api-connections/authorization.d.ts +45 -0
  9. package/dist/api-connections/authorization.js +120 -0
  10. package/dist/api-connections/deps.d.ts +41 -0
  11. package/dist/api-connections/deps.js +13 -0
  12. package/dist/api-connections/descriptor.d.ts +6 -0
  13. package/dist/api-connections/descriptor.js +111 -0
  14. package/dist/api-connections/errors.d.ts +23 -0
  15. package/dist/api-connections/errors.js +24 -0
  16. package/dist/api-connections/finish-authorization.d.ts +24 -0
  17. package/dist/api-connections/finish-authorization.js +117 -0
  18. package/dist/api-connections/index.d.ts +18 -0
  19. package/dist/api-connections/index.js +10 -0
  20. package/dist/api-connections/install-credential.d.ts +19 -0
  21. package/dist/api-connections/install-credential.js +12 -0
  22. package/dist/api-connections/keys.d.ts +27 -0
  23. package/dist/api-connections/keys.js +22 -0
  24. package/dist/api-connections/ports.d.ts +73 -0
  25. package/dist/api-connections/ports.js +2 -0
  26. package/dist/api-connections/records.d.ts +27 -0
  27. package/dist/api-connections/records.js +52 -0
  28. package/dist/api-connections/request-checks.d.ts +18 -0
  29. package/dist/api-connections/request-checks.js +67 -0
  30. package/dist/api-connections/service.d.ts +25 -0
  31. package/dist/api-connections/service.js +26 -0
  32. package/dist/api-connections/status.d.ts +28 -0
  33. package/dist/api-connections/status.js +36 -0
  34. package/dist/api-connections/token-store/errors.d.ts +20 -0
  35. package/dist/api-connections/token-store/errors.js +38 -0
  36. package/dist/api-connections/token-store/index.d.ts +6 -0
  37. package/dist/api-connections/token-store/index.js +6 -0
  38. package/dist/api-connections/token-store/record.d.ts +69 -0
  39. package/dist/api-connections/token-store/record.js +97 -0
  40. package/dist/api-connections/token-store/vault-token-store.d.ts +26 -0
  41. package/dist/api-connections/token-store/vault-token-store.js +215 -0
  42. package/dist/api-connections/types.d.ts +101 -0
  43. package/dist/api-connections/types.js +9 -0
  44. package/dist/credentialed-http/auth-schemes.js +8 -4
  45. package/dist/credentialed-http/credentialed-request.js +47 -77
  46. package/dist/credentialed-http/response-redaction.d.ts +5 -0
  47. package/dist/credentialed-http/response-redaction.js +62 -0
  48. package/dist/media-providers/catalog.d.ts +3 -1
  49. package/dist/media-providers/catalog.js +3 -1
  50. package/dist/media-providers/dispatch/async-operation-store.d.ts +31 -0
  51. package/dist/media-providers/dispatch/async-operation-store.js +75 -37
  52. package/dist/media-providers/dispatch/builtin-vendors.d.ts +1 -1
  53. package/dist/media-providers/dispatch/context.js +10 -2
  54. package/dist/media-providers/dispatch/engine.d.ts +6 -3
  55. package/dist/media-providers/dispatch/engine.js +99 -109
  56. package/dist/media-providers/dispatch/index.d.ts +4 -2
  57. package/dist/media-providers/dispatch/index.js +3 -1
  58. package/dist/media-providers/dispatch/media-provider-registry.d.ts +62 -0
  59. package/dist/media-providers/dispatch/media-provider-registry.js +141 -0
  60. package/dist/media-providers/dispatch/node.d.ts +13 -0
  61. package/dist/media-providers/dispatch/node.js +24 -0
  62. package/dist/media-providers/dispatch/openai-compatible.d.ts +1 -1
  63. package/dist/media-providers/dispatch/openai-compatible.js +90 -87
  64. package/dist/media-providers/dispatch/operation-runtime.js +116 -89
  65. package/dist/media-providers/dispatch/outbound.d.ts +8 -4
  66. package/dist/media-providers/dispatch/outbound.js +27 -26
  67. package/dist/media-providers/dispatch/providers/aihubmix.d.ts +1 -1
  68. package/dist/media-providers/dispatch/providers/aihubmix.js +61 -56
  69. package/dist/media-providers/dispatch/providers/custom-image.d.ts +1 -1
  70. package/dist/media-providers/dispatch/providers/elevenlabs.d.ts +1 -1
  71. package/dist/media-providers/dispatch/providers/fishaudio.d.ts +1 -1
  72. package/dist/media-providers/dispatch/providers/grok.d.ts +1 -1
  73. package/dist/media-providers/dispatch/providers/imagerouter-video-async.d.ts +1 -1
  74. package/dist/media-providers/dispatch/providers/imagerouter-video-async.js +53 -49
  75. package/dist/media-providers/dispatch/providers/imagerouter.d.ts +1 -1
  76. package/dist/media-providers/dispatch/providers/imagerouter.js +11 -24
  77. package/dist/media-providers/dispatch/providers/minimax.d.ts +1 -1
  78. package/dist/media-providers/dispatch/providers/nanobanana.d.ts +1 -1
  79. package/dist/media-providers/dispatch/providers/nanobanana.js +22 -30
  80. package/dist/media-providers/dispatch/providers/openai.d.ts +1 -1
  81. package/dist/media-providers/dispatch/providers/openai.js +51 -47
  82. package/dist/media-providers/dispatch/providers/openrouter.d.ts +1 -1
  83. package/dist/media-providers/dispatch/providers/openrouter.js +52 -37
  84. package/dist/media-providers/dispatch/providers/senseaudio.d.ts +1 -1
  85. package/dist/media-providers/dispatch/providers/senseaudio.js +47 -28
  86. package/dist/media-providers/dispatch/providers/volcengine.d.ts +1 -1
  87. package/dist/media-providers/dispatch/response-parsers.js +37 -21
  88. package/dist/media-providers/dispatch/sqlite-async-operation-store.js +9 -29
  89. package/dist/media-providers/dispatch/ssrf-guard.d.ts +3 -2
  90. package/dist/media-providers/dispatch/ssrf-guard.js +6 -5
  91. package/dist/media-providers/dispatch/types.d.ts +76 -2
  92. package/dist/media-providers/dispatch/vendor-adapter.d.ts +2 -43
  93. package/dist/media-providers/dispatch/vendor-adapter.js +2 -2
  94. package/dist/media-providers/dispatch/vendor-registry-core.d.ts +24 -0
  95. package/dist/media-providers/dispatch/vendor-registry-core.js +34 -0
  96. package/dist/media-providers/dispatch/vendor-registry.d.ts +10 -36
  97. package/dist/media-providers/dispatch/vendor-registry.js +14 -42
  98. package/dist/media-providers/policy.js +25 -17
  99. package/dist/media-providers/providers.d.ts +5 -0
  100. package/dist/media-providers/providers.js +2 -0
  101. package/dist/media-providers/sqlite-task-store.js +12 -80
  102. package/dist/media-providers/staging.js +77 -58
  103. package/dist/media-providers/task-lifecycle.d.ts +33 -0
  104. package/dist/media-providers/task-lifecycle.js +124 -0
  105. package/dist/media-providers/task-store.js +8 -86
  106. package/dist/media-providers/ui-defaults.d.ts +10 -0
  107. package/dist/media-providers/ui-defaults.js +167 -0
  108. package/dist/media-providers/video-request.js +112 -90
  109. package/dist/webhooks/delivery.d.ts +14 -0
  110. package/dist/webhooks/delivery.js +41 -10
  111. package/dist/webhooks/index.d.ts +1 -0
  112. package/dist/webhooks/index.js +1 -0
  113. package/dist/webhooks/ports.d.ts +23 -0
  114. package/dist/webhooks/worker.d.ts +83 -0
  115. package/dist/webhooks/worker.js +105 -0
  116. package/package.json +31 -8
@@ -4,4 +4,5 @@ export * from "./subscriptions.js";
4
4
  export * from "./delivery.js";
5
5
  export * from "./signing.js";
6
6
  export * from "./signing.keyring.js";
7
+ export * from "./worker.js";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,5 @@ export * from "./subscriptions.js";
4
4
  export * from "./delivery.js";
5
5
  export * from "./signing.js";
6
6
  export * from "./signing.keyring.js";
7
+ export * from "./worker.js";
7
8
  //# sourceMappingURL=index.js.map
@@ -50,15 +50,26 @@ export interface WebhookDeliveryRepoPort {
50
50
  }, optional?: {
51
51
  envelope?: WebhookEventEnvelope;
52
52
  }): Promise<void>;
53
+ /**
54
+ * Atomically claim due `pending` rows, increment `attempts` and mark them `delivering`.
55
+ * With `claimLeaseMs`, also reclaim `delivering` rows whose lease has expired and persist
56
+ * nowIso + claimLeaseMs as each claimed row's lease (its `nextAttemptAt` while delivering): a
57
+ * claimer that died or was abandoned at shutdown must not strand its rows in `delivering` forever.
58
+ */
53
59
  claimPending(required: {
54
60
  batchSize: number;
55
61
  nowIso: ISODateTime;
62
+ }, optional?: {
63
+ claimLeaseMs?: number;
56
64
  }): Promise<WebhookDeliveryRecord[]>;
65
+ /** With `claimedAttempts`, a stale outcome (the row was reclaimed since) must not overwrite the newer claim. */
57
66
  markDelivered(required: {
58
67
  workspaceId: UUID;
59
68
  id: IntegrationId;
60
69
  responseStatus: number;
61
70
  deliveredAtIso: ISODateTime;
71
+ }, optional?: {
72
+ claimedAttempts?: number;
62
73
  }): Promise<void>;
63
74
  markFailed(required: {
64
75
  workspaceId: UUID;
@@ -69,7 +80,19 @@ export interface WebhookDeliveryRepoPort {
69
80
  nextAttemptAt: ISODateTime;
70
81
  }, optional?: {
71
82
  deadAtIso?: ISODateTime;
83
+ claimedAttempts?: number;
72
84
  }): Promise<void>;
85
+ /**
86
+ * Return a claim that was never attempted (the batch was cancelled first) to `pending`, due at
87
+ * `nextAttemptAt`, undoing the claim's `attempts` increment. Fenced on `claimedAttempts`: a
88
+ * row reclaimed since is left alone. Optional: without it, the claim lease recovers the row.
89
+ */
90
+ releaseClaim?(required: {
91
+ workspaceId: UUID;
92
+ id: IntegrationId;
93
+ claimedAttempts: number;
94
+ nextAttemptAt: ISODateTime;
95
+ }, optional?: Record<string, never>): Promise<void>;
73
96
  findById(required: {
74
97
  workspaceId: UUID;
75
98
  id: IntegrationId;
@@ -0,0 +1,83 @@
1
+ /**
2
+ * @file The generic outbound webhook delivery loop: every interval it runs one delivery pass
3
+ * (`processDueDeliveries` bound to the host's ports), single flight, and on `stop` it cancels the
4
+ * running pass through an AbortSignal so the in-flight request settles and unattempted claims are
5
+ * released before the host closes its storage. Hosts own where it runs and which ports it binds.
6
+ *
7
+ * Single flight: a tick that finds the previous one still running does nothing, so a slow receiver
8
+ * (up to the per-request total deadline times the batch) never stacks claims on top of each other.
9
+ */
10
+ /** Idle wait between ticks. Short enough that a delivery leaves within seconds, long enough that
11
+ * an idle site costs one indexed `SELECT` per interval. */
12
+ export declare const WEBHOOK_DELIVERY_INTERVAL_MS = 15000;
13
+ /**
14
+ * How long `stop` waits for the cancelled pass to settle. Cancellation makes the in-flight request
15
+ * reject at once, so what remains is a few storage writes; a pass still running after the grace is
16
+ * abandoned, not awaited, and its claims are recovered by their lease.
17
+ */
18
+ export declare const WEBHOOK_DELIVERY_STOP_GRACE_MS = 1000;
19
+ /** Prefix of the one line logged for a failed tick; the loop keeps running after it. */
20
+ export declare const WEBHOOK_DELIVERY_FAILED_LINE = "[webhooks] delivery tick failed; retrying after the interval";
21
+ /** Logged when `stop` gives up waiting on a running tick. */
22
+ export declare const WEBHOOK_DELIVERY_STOP_LATE_LINE = "[webhooks] a delivery tick was still running at shutdown; it was abandoned";
23
+ /** A cancellable timer. The default implementation never keeps the process alive. */
24
+ export interface WebhookDeliveryTimer {
25
+ cancel(): void;
26
+ }
27
+ /** Timer port, injected so tests drive ticks with a fake clock. */
28
+ export interface WebhookDeliveryScheduler {
29
+ every(required: {
30
+ ms: number;
31
+ run: () => void;
32
+ }): WebhookDeliveryTimer;
33
+ after(required: {
34
+ ms: number;
35
+ run: () => void;
36
+ }): WebhookDeliveryTimer;
37
+ }
38
+ /** Node timers, unref'd: like the outbox drainer's, the loop must never hold a stopping process open. */
39
+ export declare const nodeWebhookDeliveryScheduler: WebhookDeliveryScheduler;
40
+ export interface WebhookDeliveryWorker {
41
+ /** Runs one tick now, unless one is already running (then resolves with that one). Never rejects. */
42
+ tick(): Promise<void>;
43
+ /** Stops scheduling ticks, cancels a running one and waits up to the stop grace for it. Idempotent. */
44
+ stop(): Promise<void>;
45
+ }
46
+ export interface WebhookDeliveryWorkerRequired {
47
+ /** One delivery pass. `signal` aborts when the worker stops; pass it to `processDueDeliveries`. */
48
+ processDue: (required: {
49
+ signal: AbortSignal;
50
+ }) => Promise<unknown>;
51
+ }
52
+ export interface WebhookDeliveryWorkerOptional {
53
+ intervalMs?: number;
54
+ /** How long `stop` waits for the cancelled pass; default {@link WEBHOOK_DELIVERY_STOP_GRACE_MS}. */
55
+ stopGraceMs?: number;
56
+ scheduler?: WebhookDeliveryScheduler;
57
+ log?: (line: string) => void;
58
+ }
59
+ /** The abort reason a running pass sees; recorded as the interrupted attempt's error. */
60
+ export declare class WebhookDeliveryWorkerStoppedError extends Error {
61
+ constructor();
62
+ }
63
+ /**
64
+ * One log line for a failed tick: the error's name, message (URLs removed, length capped) and
65
+ * `code`. Never the error object itself, its `cause`, stack or extra fields: a repo or transport
66
+ * error can carry a receiver URL with credentials, request headers or a payload.
67
+ *
68
+ * @complexity O(message length).
69
+ */
70
+ export declare function describeWebhookTickError(required: {
71
+ error: unknown;
72
+ }, _optional?: {}): string;
73
+ /**
74
+ * Starts the loop. The first tick runs one interval after start.
75
+ *
76
+ * @param required.processDue one delivery pass, given the worker's stop signal.
77
+ * @param optional.intervalMs idle wait between ticks; default {@link WEBHOOK_DELIVERY_INTERVAL_MS}.
78
+ * @throws RangeError when `intervalMs` or `stopGraceMs` is not a positive finite number.
79
+ * @example const worker = startWebhookDeliveryWorker({ processDue: ({ signal }) => processDueDeliveries({ deps }, { signal }) }); await worker.stop();
80
+ * @complexity O(1) per tick, beyond `processDue`.
81
+ */
82
+ export declare function startWebhookDeliveryWorker(required: WebhookDeliveryWorkerRequired, optional?: WebhookDeliveryWorkerOptional): WebhookDeliveryWorker;
83
+ //# sourceMappingURL=worker.d.ts.map
@@ -0,0 +1,105 @@
1
+ /**
2
+ * @file The generic outbound webhook delivery loop: every interval it runs one delivery pass
3
+ * (`processDueDeliveries` bound to the host's ports), single flight, and on `stop` it cancels the
4
+ * running pass through an AbortSignal so the in-flight request settles and unattempted claims are
5
+ * released before the host closes its storage. Hosts own where it runs and which ports it binds.
6
+ *
7
+ * Single flight: a tick that finds the previous one still running does nothing, so a slow receiver
8
+ * (up to the per-request total deadline times the batch) never stacks claims on top of each other.
9
+ */
10
+ /** Idle wait between ticks. Short enough that a delivery leaves within seconds, long enough that
11
+ * an idle site costs one indexed `SELECT` per interval. */
12
+ export const WEBHOOK_DELIVERY_INTERVAL_MS = 15_000;
13
+ /**
14
+ * How long `stop` waits for the cancelled pass to settle. Cancellation makes the in-flight request
15
+ * reject at once, so what remains is a few storage writes; a pass still running after the grace is
16
+ * abandoned, not awaited, and its claims are recovered by their lease.
17
+ */
18
+ export const WEBHOOK_DELIVERY_STOP_GRACE_MS = 1_000;
19
+ /** Prefix of the one line logged for a failed tick; the loop keeps running after it. */
20
+ export const WEBHOOK_DELIVERY_FAILED_LINE = "[webhooks] delivery tick failed; retrying after the interval";
21
+ /** Logged when `stop` gives up waiting on a running tick. */
22
+ export const WEBHOOK_DELIVERY_STOP_LATE_LINE = "[webhooks] a delivery tick was still running at shutdown; it was abandoned";
23
+ const MAX_LOGGED_MESSAGE_CHARS = 200;
24
+ /** Bounds the scan of a pathological message before URLs are removed. */
25
+ const MAX_SCANNED_MESSAGE_CHARS = 2_000;
26
+ /** Node timers, unref'd: like the outbox drainer's, the loop must never hold a stopping process open. */
27
+ export const nodeWebhookDeliveryScheduler = {
28
+ every: ({ ms, run }) => {
29
+ const handle = setInterval(run, ms);
30
+ handle.unref();
31
+ return { cancel: () => clearInterval(handle) };
32
+ },
33
+ after: ({ ms, run }) => {
34
+ const handle = setTimeout(run, ms);
35
+ handle.unref();
36
+ return { cancel: () => clearTimeout(handle) };
37
+ },
38
+ };
39
+ /** The abort reason a running pass sees; recorded as the interrupted attempt's error. */
40
+ export class WebhookDeliveryWorkerStoppedError extends Error {
41
+ constructor() {
42
+ super("webhook delivery worker stopped");
43
+ this.name = "AbortError";
44
+ }
45
+ }
46
+ /**
47
+ * One log line for a failed tick: the error's name, message (URLs removed, length capped) and
48
+ * `code`. Never the error object itself, its `cause`, stack or extra fields: a repo or transport
49
+ * error can carry a receiver URL with credentials, request headers or a payload.
50
+ *
51
+ * @complexity O(message length).
52
+ */
53
+ export function describeWebhookTickError(required, _optional = {}) {
54
+ const { error } = required;
55
+ if (!(error instanceof Error))
56
+ return `${WEBHOOK_DELIVERY_FAILED_LINE}: a non-Error value was thrown`;
57
+ // Any space-separated word holding "://" is dropped whole (scheme, userinfo, host, query alike).
58
+ const words = error.message.slice(0, MAX_SCANNED_MESSAGE_CHARS).split(" ");
59
+ const message = words.map((word) => (word.includes("://") ? "[url]" : word)).join(" ").slice(0, MAX_LOGGED_MESSAGE_CHARS);
60
+ const code = error.code;
61
+ const codeSuffix = typeof code === "string" || typeof code === "number" ? ` (code ${code})` : "";
62
+ return `${WEBHOOK_DELIVERY_FAILED_LINE}: ${error.name}: ${message}${codeSuffix}`;
63
+ }
64
+ function assertPositiveFinite(value, name) {
65
+ if (!(Number.isFinite(value) && value > 0))
66
+ throw new RangeError(`webhook delivery ${name} must be a positive finite number`);
67
+ }
68
+ /**
69
+ * Starts the loop. The first tick runs one interval after start.
70
+ *
71
+ * @param required.processDue one delivery pass, given the worker's stop signal.
72
+ * @param optional.intervalMs idle wait between ticks; default {@link WEBHOOK_DELIVERY_INTERVAL_MS}.
73
+ * @throws RangeError when `intervalMs` or `stopGraceMs` is not a positive finite number.
74
+ * @example const worker = startWebhookDeliveryWorker({ processDue: ({ signal }) => processDueDeliveries({ deps }, { signal }) }); await worker.stop();
75
+ * @complexity O(1) per tick, beyond `processDue`.
76
+ */
77
+ export function startWebhookDeliveryWorker(required, optional = {}) {
78
+ const { intervalMs = WEBHOOK_DELIVERY_INTERVAL_MS, stopGraceMs = WEBHOOK_DELIVERY_STOP_GRACE_MS, scheduler = nodeWebhookDeliveryScheduler, log = (line) => console.error(line) } = optional;
79
+ assertPositiveFinite(intervalMs, "intervalMs");
80
+ assertPositiveFinite(stopGraceMs, "stopGraceMs");
81
+ const controller = new AbortController();
82
+ let running;
83
+ const tick = () => {
84
+ if (controller.signal.aborted)
85
+ return Promise.resolve();
86
+ running ??= required.processDue({ signal: controller.signal }).then(() => undefined, (error) => log(describeWebhookTickError({ error }))).finally(() => { running = undefined; });
87
+ return running;
88
+ };
89
+ const timer = scheduler.every({ ms: intervalMs, run: () => { void tick(); } });
90
+ const stop = async () => {
91
+ if (!controller.signal.aborted)
92
+ controller.abort(new WebhookDeliveryWorkerStoppedError());
93
+ timer.cancel();
94
+ if (running === undefined)
95
+ return;
96
+ let grace;
97
+ const late = new Promise((resolve) => { grace = scheduler.after({ ms: stopGraceMs, run: () => resolve("late") }); });
98
+ const outcome = await Promise.race([running, late]);
99
+ grace.cancel();
100
+ if (outcome === "late")
101
+ log(WEBHOOK_DELIVERY_STOP_LATE_LINE);
102
+ };
103
+ return { tick, stop };
104
+ }
105
+ //# sourceMappingURL=worker.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jini-ai/integrations",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Third-party vendor integrations and outbound services, each independently importable: media generation, credentialed HTTP and webhooks.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -16,7 +16,9 @@
16
16
  "./media-providers": "node",
17
17
  "./media-providers/catalog": "universal",
18
18
  "./credentialed-http": "node",
19
- "./webhooks": "node"
19
+ "./webhooks": "node",
20
+ "./api-connections": "node",
21
+ "./media-providers/node": "node"
20
22
  }
21
23
  },
22
24
  "type": "module",
@@ -41,6 +43,16 @@
41
43
  "types": "./dist/webhooks/index.d.ts",
42
44
  "import": "./dist/webhooks/index.js",
43
45
  "default": "./dist/webhooks/index.js"
46
+ },
47
+ "./api-connections": {
48
+ "types": "./dist/api-connections/index.d.ts",
49
+ "import": "./dist/api-connections/index.js",
50
+ "default": "./dist/api-connections/index.js"
51
+ },
52
+ "./media-providers/node": {
53
+ "types": "./dist/media-providers/dispatch/node.d.ts",
54
+ "import": "./dist/media-providers/dispatch/node.js",
55
+ "default": "./dist/media-providers/dispatch/node.js"
44
56
  }
45
57
  },
46
58
  "typesVersions": {
@@ -56,6 +68,12 @@
56
68
  ],
57
69
  "webhooks": [
58
70
  "./dist/webhooks/index.d.ts"
71
+ ],
72
+ "api-connections": [
73
+ "./dist/api-connections/index.d.ts"
74
+ ],
75
+ "media-providers/node": [
76
+ "./dist/media-providers/dispatch/node.d.ts"
59
77
  ]
60
78
  }
61
79
  },
@@ -76,12 +94,13 @@
76
94
  "registry": "https://registry.npmjs.org"
77
95
  },
78
96
  "dependencies": {
79
- "@jini-ai/core": "^0.4.3"
97
+ "@jini-ai/core": "^0.4.9"
80
98
  },
81
99
  "peerDependencies": {
82
100
  "@jini-ai/db": "^0.3.0",
83
101
  "better-sqlite3": "^13.0.0",
84
- "@jini-ai/platform": "^0.5.1"
102
+ "@jini-ai/platform": "^0.5.1",
103
+ "@jini-ai/oauth": "^0.2.2"
85
104
  },
86
105
  "peerDependenciesMeta": {
87
106
  "@jini-ai/db": {
@@ -92,16 +111,20 @@
92
111
  },
93
112
  "@jini-ai/platform": {
94
113
  "optional": true
114
+ },
115
+ "@jini-ai/oauth": {
116
+ "optional": true
95
117
  }
96
118
  },
97
119
  "devDependencies": {
98
120
  "@types/better-sqlite3": "^7.6.11",
99
121
  "better-sqlite3": "^13.0.0",
100
122
  "@vitest/coverage-v8": "^2.1.9",
101
- "@jini-ai/db": "^0.3.2",
102
- "@jini-ai/core": "0.4.3",
103
- "@jini-ai/agent-plugins": "0.4.3",
104
- "@jini-ai/platform": "0.5.3"
123
+ "@jini-ai/oauth": "0.2.3",
124
+ "@jini-ai/core": "0.4.9",
125
+ "@jini-ai/agent-plugins": "0.4.8",
126
+ "@jini-ai/db": "^0.3.6",
127
+ "@jini-ai/platform": "0.5.10"
105
128
  },
106
129
  "scripts": {
107
130
  "build": "tsc -p tsconfig.json",