@vertesia/common 1.6.0-dev.20260923.085325Z → 1.6.0-dev.20261004.085740Z
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.
- package/lib/access-control-values.d.ts +2 -2
- package/lib/access-control-values.d.ts.map +1 -1
- package/lib/access-control-values.js +2 -2
- package/lib/access-control-values.js.map +1 -1
- package/lib/access-control.d.ts +7 -8
- package/lib/access-control.d.ts.map +1 -1
- package/lib/access-control.js +5 -0
- package/lib/access-control.js.map +1 -1
- package/lib/analytics.d.ts +6 -7
- package/lib/analytics.d.ts.map +1 -1
- package/lib/api-contract/components.generated.json +1389 -45
- package/lib/api-schemas/access-control.d.ts +33 -10
- package/lib/api-schemas/access-control.d.ts.map +1 -1
- package/lib/api-schemas/access-control.js +7 -6
- package/lib/api-schemas/access-control.js.map +1 -1
- package/lib/api-schemas/account.d.ts +5 -4
- package/lib/api-schemas/account.d.ts.map +1 -1
- package/lib/api-schemas/account.js.map +1 -1
- package/lib/api-schemas/agent-budget.d.ts +15 -0
- package/lib/api-schemas/agent-budget.d.ts.map +1 -0
- package/lib/api-schemas/agent-budget.js +55 -0
- package/lib/api-schemas/agent-budget.js.map +1 -0
- package/lib/api-schemas/agent-runs.d.ts +1525 -100
- package/lib/api-schemas/agent-runs.d.ts.map +1 -1
- package/lib/api-schemas/agent-runs.js +60 -28
- package/lib/api-schemas/agent-runs.js.map +1 -1
- package/lib/api-schemas/apikey.d.ts +11 -10
- package/lib/api-schemas/apikey.d.ts.map +1 -1
- package/lib/api-schemas/apikey.js.map +1 -1
- package/lib/api-schemas/app-lifecycle.d.ts +13 -0
- package/lib/api-schemas/app-lifecycle.d.ts.map +1 -1
- package/lib/api-schemas/app-lifecycle.js +4 -0
- package/lib/api-schemas/app-lifecycle.js.map +1 -1
- package/lib/api-schemas/app-runtime.d.ts +1821 -108
- package/lib/api-schemas/app-runtime.d.ts.map +1 -1
- package/lib/api-schemas/audit-trail.d.ts +20 -0
- package/lib/api-schemas/audit-trail.d.ts.map +1 -1
- package/lib/api-schemas/audit-trail.js +7 -1
- package/lib/api-schemas/audit-trail.js.map +1 -1
- package/lib/api-schemas/content.d.ts +665 -30
- package/lib/api-schemas/content.d.ts.map +1 -1
- package/lib/api-schemas/content.js +47 -0
- package/lib/api-schemas/content.js.map +1 -1
- package/lib/api-schemas/cost-analytics.d.ts +18 -0
- package/lib/api-schemas/cost-analytics.d.ts.map +1 -1
- package/lib/api-schemas/cost-analytics.js +31 -2
- package/lib/api-schemas/cost-analytics.js.map +1 -1
- package/lib/api-schemas/document-processing.d.ts +381 -18
- package/lib/api-schemas/document-processing.d.ts.map +1 -1
- package/lib/api-schemas/environment.d.ts +0 -5
- package/lib/api-schemas/environment.d.ts.map +1 -1
- package/lib/api-schemas/environment.js +0 -1
- package/lib/api-schemas/environment.js.map +1 -1
- package/lib/api-schemas/events.d.ts +1143 -54
- package/lib/api-schemas/events.d.ts.map +1 -1
- package/lib/api-schemas/group.d.ts +2 -1
- package/lib/api-schemas/group.d.ts.map +1 -1
- package/lib/api-schemas/group.js.map +1 -1
- package/lib/api-schemas/index.d.ts +1 -0
- package/lib/api-schemas/index.d.ts.map +1 -1
- package/lib/api-schemas/index.js +1 -0
- package/lib/api-schemas/index.js.map +1 -1
- package/lib/api-schemas/inference-profile.d.ts +5017 -0
- package/lib/api-schemas/inference-profile.d.ts.map +1 -0
- package/lib/api-schemas/inference-profile.js +135 -0
- package/lib/api-schemas/inference-profile.js.map +1 -0
- package/lib/api-schemas/integrations.d.ts +6 -6
- package/lib/api-schemas/interaction.d.ts +34391 -703
- package/lib/api-schemas/interaction.d.ts.map +1 -1
- package/lib/api-schemas/interaction.js +34 -1
- package/lib/api-schemas/interaction.js.map +1 -1
- package/lib/api-schemas/invites.d.ts +10 -9
- package/lib/api-schemas/invites.d.ts.map +1 -1
- package/lib/api-schemas/invites.js.map +1 -1
- package/lib/api-schemas/process.d.ts +653 -34
- package/lib/api-schemas/process.d.ts.map +1 -1
- package/lib/api-schemas/process.js +66 -0
- package/lib/api-schemas/process.js.map +1 -1
- package/lib/api-schemas/project-configuration.d.ts +1323 -62
- package/lib/api-schemas/project-configuration.d.ts.map +1 -1
- package/lib/api-schemas/project-configuration.js +15 -1
- package/lib/api-schemas/project-configuration.js.map +1 -1
- package/lib/api-schemas/project.d.ts +2031 -116
- package/lib/api-schemas/project.d.ts.map +1 -1
- package/lib/api-schemas/project.js +9 -1
- package/lib/api-schemas/project.js.map +1 -1
- package/lib/api-schemas/quota.d.ts +7 -6
- package/lib/api-schemas/quota.d.ts.map +1 -1
- package/lib/api-schemas/quota.js.map +1 -1
- package/lib/api-schemas/registry.d.ts +27820 -35892
- package/lib/api-schemas/registry.d.ts.map +1 -1
- package/lib/api-schemas/registry.js +55 -5
- package/lib/api-schemas/registry.js.map +1 -1
- package/lib/api-schemas/run-budget.d.ts +52 -0
- package/lib/api-schemas/run-budget.d.ts.map +1 -0
- package/lib/api-schemas/run-budget.js +55 -0
- package/lib/api-schemas/run-budget.js.map +1 -0
- package/lib/api-schemas/store.d.ts +6388 -338
- package/lib/api-schemas/store.d.ts.map +1 -1
- package/lib/api-schemas/store.js +11 -0
- package/lib/api-schemas/store.js.map +1 -1
- package/lib/api-schemas/user.d.ts +9 -8
- package/lib/api-schemas/user.d.ts.map +1 -1
- package/lib/api-schemas/user.js.map +1 -1
- package/lib/api-schemas/view-execution.d.ts +8 -0
- package/lib/api-schemas/view-execution.d.ts.map +1 -1
- package/lib/api-schemas/views.d.ts +14 -0
- package/lib/api-schemas/views.d.ts.map +1 -1
- package/lib/api-schemas/workflow-runs.d.ts +335 -12
- package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
- package/lib/api-schemas/workflow-runs.js +2 -0
- package/lib/api-schemas/workflow-runs.js.map +1 -1
- package/lib/apikey.d.ts +30 -25
- package/lib/apikey.d.ts.map +1 -1
- package/lib/apikey.js.map +1 -1
- package/lib/apps.d.ts +116 -121
- package/lib/apps.d.ts.map +1 -1
- package/lib/apps.js.map +1 -1
- package/lib/audit-trail.d.ts +17 -18
- package/lib/audit-trail.d.ts.map +1 -1
- package/lib/audit-trail.js +2 -0
- package/lib/audit-trail.js.map +1 -1
- package/lib/browser-credentials.d.ts +11 -12
- package/lib/browser-credentials.d.ts.map +1 -1
- package/lib/common.d.ts +17 -24
- package/lib/common.d.ts.map +1 -1
- package/lib/content-query.d.ts +3 -4
- package/lib/content-query.d.ts.map +1 -1
- package/lib/cost-analytics.d.ts +13 -21
- package/lib/cost-analytics.d.ts.map +1 -1
- package/lib/cost-analytics.js +0 -7
- package/lib/cost-analytics.js.map +1 -1
- package/lib/data-platform.d.ts +79 -88
- package/lib/data-platform.d.ts.map +1 -1
- package/lib/data-platform.js.map +1 -1
- package/lib/delegation.d.ts +4 -5
- package/lib/delegation.d.ts.map +1 -1
- package/lib/email.d.ts +15 -17
- package/lib/email.d.ts.map +1 -1
- package/lib/email.js.map +1 -1
- package/lib/embeddings.d.ts +25 -26
- package/lib/embeddings.d.ts.map +1 -1
- package/lib/environment.d.ts +16 -17
- package/lib/environment.d.ts.map +1 -1
- package/lib/environment.js.map +1 -1
- package/lib/facets.d.ts +3 -4
- package/lib/facets.d.ts.map +1 -1
- package/lib/group.d.ts +6 -7
- package/lib/group.d.ts.map +1 -1
- package/lib/group.js.map +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/inference-profile.d.ts +17 -0
- package/lib/inference-profile.d.ts.map +1 -0
- package/lib/inference-profile.js +2 -0
- package/lib/inference-profile.js.map +1 -0
- package/lib/integrations.d.ts +19 -20
- package/lib/integrations.d.ts.map +1 -1
- package/lib/integrations.js.map +1 -1
- package/lib/interaction.d.ts +68 -73
- package/lib/interaction.d.ts.map +1 -1
- package/lib/interaction.js.map +1 -1
- package/lib/meters.d.ts +4 -5
- package/lib/meters.d.ts.map +1 -1
- package/lib/oauth-server.d.ts +40 -41
- package/lib/oauth-server.d.ts.map +1 -1
- package/lib/oauth.d.ts +9 -10
- package/lib/oauth.d.ts.map +1 -1
- package/lib/payload.d.ts +11 -14
- package/lib/payload.d.ts.map +1 -1
- package/lib/pending-asks.d.ts +8 -13
- package/lib/pending-asks.d.ts.map +1 -1
- package/lib/pending-asks.js +0 -4
- package/lib/pending-asks.js.map +1 -1
- package/lib/platform-event.d.ts +48 -51
- package/lib/platform-event.d.ts.map +1 -1
- package/lib/platform-event.js.map +1 -1
- package/lib/principal-context.d.ts +3 -3
- package/lib/principal-context.d.ts.map +1 -1
- package/lib/project.d.ts +42 -43
- package/lib/project.d.ts.map +1 -1
- package/lib/project.js.map +1 -1
- package/lib/prompt.d.ts +14 -16
- package/lib/prompt.d.ts.map +1 -1
- package/lib/prompt.js.map +1 -1
- package/lib/query.d.ts +10 -13
- package/lib/query.d.ts.map +1 -1
- package/lib/rate-limiter.d.ts +7 -11
- package/lib/rate-limiter.d.ts.map +1 -1
- package/lib/refs.d.ts +2 -3
- package/lib/refs.d.ts.map +1 -1
- package/lib/refs.js.map +1 -1
- package/lib/roles/types.d.ts +5 -6
- package/lib/roles/types.d.ts.map +1 -1
- package/lib/roles/types.js.map +1 -1
- package/lib/run-budget.d.ts +8 -0
- package/lib/run-budget.d.ts.map +1 -0
- package/lib/run-budget.js +2 -0
- package/lib/run-budget.js.map +1 -0
- package/lib/runs.d.ts +9 -10
- package/lib/runs.d.ts.map +1 -1
- package/lib/secrets.d.ts +20 -21
- package/lib/secrets.d.ts.map +1 -1
- package/lib/store/agent-approval.d.ts +4 -5
- package/lib/store/agent-approval.d.ts.map +1 -1
- package/lib/store/agent-approval.js.map +1 -1
- package/lib/store/agent-run.d.ts +50 -52
- package/lib/store/agent-run.d.ts.map +1 -1
- package/lib/store/agent-run.js.map +1 -1
- package/lib/store/collections.d.ts +11 -12
- package/lib/store/collections.d.ts.map +1 -1
- package/lib/store/collections.js.map +1 -1
- package/lib/store/conversation-state.d.ts +14 -8
- package/lib/store/conversation-state.d.ts.map +1 -1
- package/lib/store/doc-analyzer.d.ts +7 -8
- package/lib/store/doc-analyzer.d.ts.map +1 -1
- package/lib/store/dsl-workflow.d.ts +10 -12
- package/lib/store/dsl-workflow.d.ts.map +1 -1
- package/lib/store/dsl-workflow.js.map +1 -1
- package/lib/store/duration.d.ts +12 -0
- package/lib/store/duration.d.ts.map +1 -0
- package/lib/store/duration.js +2 -0
- package/lib/store/duration.js.map +1 -0
- package/lib/store/grounded-extraction.d.ts +6 -7
- package/lib/store/grounded-extraction.d.ts.map +1 -1
- package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
- package/lib/store/intake-policy-schema.generated.js +143 -2
- package/lib/store/intake-policy-schema.generated.js.map +1 -1
- package/lib/store/process.d.ts +70 -69
- package/lib/store/process.d.ts.map +1 -1
- package/lib/store/process.js.map +1 -1
- package/lib/store/rendering.d.ts +6 -12
- package/lib/store/rendering.d.ts.map +1 -1
- package/lib/store/rendering.js +0 -5
- package/lib/store/rendering.js.map +1 -1
- package/lib/store/signals.d.ts +43 -0
- package/lib/store/signals.d.ts.map +1 -1
- package/lib/store/signals.js +6 -1
- package/lib/store/signals.js.map +1 -1
- package/lib/store/store.d.ts +92 -91
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js.map +1 -1
- package/lib/store/task.d.ts +10 -14
- package/lib/store/task.d.ts.map +1 -1
- package/lib/store/workflow.d.ts +35 -41
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js.map +1 -1
- package/lib/sts-token-types.d.ts +14 -19
- package/lib/sts-token-types.d.ts.map +1 -1
- package/lib/tools.d.ts +12 -13
- package/lib/tools.d.ts.map +1 -1
- package/lib/transient-tokens.d.ts +3 -3
- package/lib/transient-tokens.d.ts.map +1 -1
- package/lib/user.d.ts +17 -20
- package/lib/user.d.ts.map +1 -1
- package/lib/user.js.map +1 -1
- package/lib/vertesia-common.js +2 -2
- package/lib/vertesia-common.js.map +1 -1
- package/lib/views.d.ts +61 -64
- package/lib/views.d.ts.map +1 -1
- package/lib/views.js.map +1 -1
- package/lib/wire-types.generated.d.ts +11231 -0
- package/lib/wire-types.generated.d.ts.map +1 -0
- package/lib/wire-types.generated.js +4 -0
- package/lib/wire-types.generated.js.map +1 -0
- package/lib/workflow-analytics.d.ts +21 -19
- package/lib/workflow-analytics.d.ts.map +1 -1
- package/lib/workflow-analytics.js +2 -2
- package/lib/workflow-analytics.js.map +1 -1
- package/package.json +15 -10
- package/src/access-control-values.ts +2 -2
- package/src/access-control.ts +7 -15
- package/src/analytics.ts +6 -13
- package/src/api-contract/components.generated.json +1389 -45
- package/src/api-schemas/access-control.ts +18 -16
- package/src/api-schemas/account.ts +5 -4
- package/src/api-schemas/agent-budget.ts +60 -0
- package/src/api-schemas/agent-runs.ts +63 -27
- package/src/api-schemas/apikey.ts +11 -10
- package/src/api-schemas/app-lifecycle.ts +5 -0
- package/src/api-schemas/audit-trail.ts +7 -1
- package/src/api-schemas/content.ts +55 -0
- package/src/api-schemas/cost-analytics.ts +34 -2
- package/src/api-schemas/environment.ts +0 -1
- package/src/api-schemas/group.ts +2 -1
- package/src/api-schemas/index.ts +1 -0
- package/src/api-schemas/inference-profile.ts +151 -0
- package/src/api-schemas/interaction.ts +40 -1
- package/src/api-schemas/invites.ts +10 -9
- package/src/api-schemas/process.ts +78 -2
- package/src/api-schemas/project-configuration.ts +19 -1
- package/src/api-schemas/project.ts +19 -10
- package/src/api-schemas/quota.ts +7 -6
- package/src/api-schemas/registry.ts +131 -33
- package/src/api-schemas/run-budget.ts +60 -0
- package/src/api-schemas/store.ts +12 -0
- package/src/api-schemas/user.ts +9 -8
- package/src/api-schemas/workflow-runs.ts +2 -0
- package/src/apikey.ts +30 -39
- package/src/apps.ts +116 -239
- package/src/audit-trail.ts +18 -33
- package/src/browser-credentials.ts +11 -23
- package/src/common.ts +17 -37
- package/src/content-query.ts +3 -4
- package/src/cost-analytics.ts +13 -35
- package/src/data-platform.ts +79 -168
- package/src/delegation.ts +4 -9
- package/src/email.ts +15 -29
- package/src/embeddings.ts +25 -51
- package/src/environment.ts +16 -33
- package/src/facets.ts +3 -4
- package/src/group.ts +6 -13
- package/src/index.ts +27 -0
- package/src/inference-profile.ts +20 -0
- package/src/integrations.ts +21 -41
- package/src/interaction.ts +68 -137
- package/src/meters.ts +4 -9
- package/src/oauth-server.ts +40 -81
- package/src/oauth.ts +9 -19
- package/src/payload.ts +11 -25
- package/src/pending-asks.ts +8 -22
- package/src/platform-event.ts +48 -97
- package/src/principal-context.ts +3 -3
- package/src/project.ts +43 -86
- package/src/prompt.ts +14 -31
- package/src/query.ts +10 -20
- package/src/rate-limiter.ts +7 -19
- package/src/refs.ts +2 -3
- package/src/roles/types.ts +5 -11
- package/src/run-budget.ts +8 -0
- package/src/runs.ts +9 -19
- package/src/secrets.ts +20 -41
- package/src/store/agent-approval.ts +4 -9
- package/src/store/agent-run.ts +53 -99
- package/src/store/collections.ts +11 -23
- package/src/store/conversation-state.ts +15 -15
- package/src/store/doc-analyzer.ts +7 -15
- package/src/store/dsl-workflow.ts +10 -23
- package/src/store/duration.ts +45 -0
- package/src/store/grounded-extraction.ts +6 -13
- package/src/store/intake-policy-schema.generated.ts +148 -2
- package/src/store/process.ts +70 -140
- package/src/store/rendering.ts +6 -19
- package/src/store/signals.ts +48 -0
- package/src/store/store.ts +92 -181
- package/src/store/task.ts +10 -24
- package/src/store/workflow.ts +35 -71
- package/src/sts-token-types.ts +14 -33
- package/src/tools.ts +12 -25
- package/src/transient-tokens.ts +3 -3
- package/src/user.ts +17 -39
- package/src/views.ts +61 -125
- package/src/wire-types.generated.ts +11889 -0
- package/src/workflow-analytics.ts +21 -19
- package/src/agent-resources.test.ts +0 -89
- package/src/api-contract/components.contract.test.ts +0 -99
- package/src/api-schemas/access-control.contract.test.ts +0 -209
- package/src/api-schemas/account-apikey.test.ts +0 -60
- package/src/api-schemas/account.contract.test.ts +0 -319
- package/src/api-schemas/adapter-edge-cases.test.ts +0 -499
- package/src/api-schemas/agent-communication.contract.test.ts +0 -90
- package/src/api-schemas/agent-history.contract.test.ts +0 -42
- package/src/api-schemas/agent-runs.contract.test.ts +0 -240
- package/src/api-schemas/api-discriminators.test.ts +0 -185
- package/src/api-schemas/apikey.contract.test.ts +0 -270
- package/src/api-schemas/app-delete-summary.contract.test.ts +0 -67
- package/src/api-schemas/bulk-operation.contract.test.ts +0 -39
- package/src/api-schemas/bundle-isolation.test.ts +0 -44
- package/src/api-schemas/commands.contract.test.ts +0 -51
- package/src/api-schemas/cost-analytics.contract.test.ts +0 -64
- package/src/api-schemas/dashboard.contract.test.ts +0 -138
- package/src/api-schemas/data-store.contract.test.ts +0 -97
- package/src/api-schemas/document-processing.contract.test.ts +0 -76
- package/src/api-schemas/emit-json-schema.test.ts +0 -36
- package/src/api-schemas/environment.contract.test.ts +0 -202
- package/src/api-schemas/group.contract.test.ts +0 -205
- package/src/api-schemas/indexing.contract.test.ts +0 -122
- package/src/api-schemas/interaction.contract.test.ts +0 -307
- package/src/api-schemas/invites.contract.test.ts +0 -268
- package/src/api-schemas/llumiverse.contract.test.ts +0 -179
- package/src/api-schemas/mcp-api-key.contract.test.ts +0 -125
- package/src/api-schemas/oauth.contract.test.ts +0 -181
- package/src/api-schemas/parameters.test.ts +0 -402
- package/src/api-schemas/process.contract.test.ts +0 -115
- package/src/api-schemas/project.contract.test.ts +0 -472
- package/src/api-schemas/pruning-limits.test.ts +0 -189
- package/src/api-schemas/quota.contract.test.ts +0 -147
- package/src/api-schemas/registry-groups.test.ts +0 -99
- package/src/api-schemas/response-pruning.test.ts +0 -260
- package/src/api-schemas/store.contract.test.ts +0 -378
- package/src/api-schemas/sts.contract.test.ts +0 -112
- package/src/api-schemas/user.contract.test.ts +0 -197
- package/src/api-schemas/views.contract.test.ts +0 -112
- package/src/api-schemas/zeno-response-contracts.test.ts +0 -380
- package/src/apps.test.ts +0 -89
- package/src/oauth-scopes.test.ts +0 -15
- package/src/roles.test.ts +0 -33
- package/src/schema-for-extraction.test.ts +0 -191
- package/src/store/agent-approval.test.ts +0 -18
- package/src/store/content-type-editing.test.ts +0 -17
- package/src/store/ms.d.ts +0 -42
- package/src/store/schedule.test.ts +0 -59
- package/src/store/workflow.test.ts +0 -640
- package/src/versions.test.ts +0 -13
package/src/interaction.ts
CHANGED
|
@@ -7,78 +7,13 @@ import type {
|
|
|
7
7
|
StatelessExecutionOptions,
|
|
8
8
|
ToolUse,
|
|
9
9
|
} from '@llumiverse/common';
|
|
10
|
-
import type { z } from 'zod';
|
|
11
|
-
import type {
|
|
12
|
-
AgentResourceActionSchema,
|
|
13
|
-
AgentResourceReferenceSchema,
|
|
14
|
-
AgentResourceTypeSchema,
|
|
15
|
-
AgentRunnerOptionsSchema,
|
|
16
|
-
AsyncCompletionModeSchema,
|
|
17
|
-
AsyncCompletionOptionsSchema,
|
|
18
|
-
AsyncConversationExecutionPayloadSchema,
|
|
19
|
-
AsyncExecutionPayloadSchema,
|
|
20
|
-
AsyncExecutionResultSchema,
|
|
21
|
-
AsyncInteractionExecutionPayloadSchema,
|
|
22
|
-
CachePolicySchema,
|
|
23
|
-
CatalogInteractionRefSchema,
|
|
24
|
-
ConversationStripOptionsSchema,
|
|
25
|
-
ConversationVisibilitySchema,
|
|
26
|
-
ExecutionRunInteractionSchema,
|
|
27
|
-
ExecutionRunRefSchema,
|
|
28
|
-
ExecutionRunWorkflowSchema,
|
|
29
|
-
GeneratedInteractionDefinitionSchema,
|
|
30
|
-
GeneratedInteractionPromptSegmentSchema,
|
|
31
|
-
GeneratedInteractionPromptTemplateSchema,
|
|
32
|
-
GeneratedTestDataRecordSchema,
|
|
33
|
-
GenerateInteractionPayloadSchema,
|
|
34
|
-
GenerateTestDataPayloadSchema,
|
|
35
|
-
ImprovePromptPayloadConfigSchema,
|
|
36
|
-
ImprovePromptPayloadSchema,
|
|
37
|
-
InCodeInteractionSchema,
|
|
38
|
-
InCodePromptSchema,
|
|
39
|
-
InitialToolCallSchema,
|
|
40
|
-
InteractionCreatePayloadSchema,
|
|
41
|
-
InteractionEndpointQuerySchema,
|
|
42
|
-
InteractionEndpointSchema,
|
|
43
|
-
InteractionExecutionErrorSchema,
|
|
44
|
-
InteractionExecutionPayloadSchema,
|
|
45
|
-
InteractionForkPayloadSchema,
|
|
46
|
-
InteractionNameSchema,
|
|
47
|
-
InteractionPublishPayloadSchema,
|
|
48
|
-
InteractionRefSchema,
|
|
49
|
-
InteractionRefWithSchemaSchema,
|
|
50
|
-
InteractionSchema,
|
|
51
|
-
InteractionsExportPayloadSchema,
|
|
52
|
-
InteractionTagsSchema,
|
|
53
|
-
InteractionUpdatePayloadSchema,
|
|
54
|
-
InteractionVisibilitySchema,
|
|
55
|
-
NamedInteractionExecutionPayloadSchema,
|
|
56
|
-
PromptImprovementResponseSchema,
|
|
57
|
-
PromptModalitiesSchema,
|
|
58
|
-
RateLimitRequestPayloadSchema,
|
|
59
|
-
RateLimitRequestResponseSchema,
|
|
60
|
-
ResolvedCatalogInteractionSchema,
|
|
61
|
-
ResolvedEnvironmentInfoSchema,
|
|
62
|
-
ResolvedInteractionExecutionInfoSchema,
|
|
63
|
-
ResolvedRuntimeConfigSchema,
|
|
64
|
-
ResultStorageOptionsSchema,
|
|
65
|
-
RunSourceSchema,
|
|
66
|
-
SchemaRefSchema,
|
|
67
|
-
SkillContextTriggersSchema,
|
|
68
|
-
StreamingOptionsSchema,
|
|
69
|
-
StreamingTelemetryContextSchema,
|
|
70
|
-
ToolResultMetaSchema,
|
|
71
|
-
ToolResultSchema,
|
|
72
|
-
ToolResultsPayloadSchema,
|
|
73
|
-
UpdateExecutionRunPayloadSchema,
|
|
74
|
-
UserMessagePayloadSchema,
|
|
75
|
-
} from './api-schemas/interaction.js';
|
|
76
|
-
import type { InteractionExecutionConfigurationSchema } from './api-schemas/store.js';
|
|
77
10
|
import type { ExecutionEnvironmentRef } from './environment.js';
|
|
11
|
+
import type { InferenceProfileSnapshot } from './inference-profile.js';
|
|
78
12
|
import type { ProjectRef } from './project.js';
|
|
79
13
|
import type { PopulatedPromptSegmentDef } from './prompt.js';
|
|
80
14
|
import type { TextArtifactReference } from './store/conversation-state.js';
|
|
81
15
|
import type { AccountRef } from './user.js';
|
|
16
|
+
import type * as Wire from './wire-types.generated.js';
|
|
82
17
|
|
|
83
18
|
/**
|
|
84
19
|
* `RunDataStorageLevel` and `ConfigModes` live in `./interaction-values.js` so the API schemas can
|
|
@@ -87,13 +22,13 @@ import type { AccountRef } from './user.js';
|
|
|
87
22
|
*/
|
|
88
23
|
export * from './interaction-values.js';
|
|
89
24
|
|
|
90
|
-
export type InteractionExecutionError =
|
|
25
|
+
export type InteractionExecutionError = Wire.InteractionExecutionError;
|
|
91
26
|
|
|
92
27
|
/**
|
|
93
28
|
* Configuration for stripping large data from conversation history
|
|
94
29
|
* to prevent JSON serialization issues and reduce storage bloat.
|
|
95
30
|
*/
|
|
96
|
-
export type ConversationStripOptions =
|
|
31
|
+
export type ConversationStripOptions = Wire.ConversationStripOptions;
|
|
97
32
|
|
|
98
33
|
// ------------------ in code interactions -----------------
|
|
99
34
|
/**
|
|
@@ -102,7 +37,7 @@ export type ConversationStripOptions = z.infer<typeof ConversationStripOptionsSc
|
|
|
102
37
|
* Stored interactions can use `oid:` prefix.
|
|
103
38
|
* If no prefix is used it fallback on `oid:`.
|
|
104
39
|
*/
|
|
105
|
-
export type CatalogInteractionRef =
|
|
40
|
+
export type CatalogInteractionRef = Wire.CatalogInteractionRef;
|
|
106
41
|
|
|
107
42
|
export interface CatalogTagQuery {
|
|
108
43
|
tag?: string;
|
|
@@ -121,35 +56,30 @@ export interface ExecuteInteractionByEndpointHeaders {
|
|
|
121
56
|
'x-interaction-tag'?: string;
|
|
122
57
|
}
|
|
123
58
|
|
|
124
|
-
export
|
|
125
|
-
environment?: string;
|
|
126
|
-
model?: string;
|
|
127
|
-
hasImage?: boolean;
|
|
128
|
-
hasVideo?: boolean;
|
|
129
|
-
}
|
|
59
|
+
export type ResolveInteractionQuery = Wire.ResolveInteractionQuery;
|
|
130
60
|
|
|
131
|
-
export type InCodePrompt =
|
|
132
|
-
export type InCodeInteraction =
|
|
133
|
-
export type ResolvedCatalogInteraction =
|
|
61
|
+
export type InCodePrompt = Wire.InCodePrompt;
|
|
62
|
+
export type InCodeInteraction = Wire.InCodeInteraction;
|
|
63
|
+
export type ResolvedCatalogInteraction = Wire.ResolvedCatalogInteraction;
|
|
134
64
|
export type InteractionSpec = Omit<InCodeInteraction, 'id' | 'runtime' | 'type' | 'published' | 'version'>;
|
|
135
65
|
// ---------------------------------------------------------
|
|
136
66
|
|
|
137
67
|
/**
|
|
138
68
|
* The payload to query the interaction endpoints
|
|
139
69
|
*/
|
|
140
|
-
export type InteractionEndpointQuery =
|
|
70
|
+
export type InteractionEndpointQuery = Wire.InteractionEndpointQuery;
|
|
141
71
|
|
|
142
72
|
/**
|
|
143
73
|
* A description of an interaction endpoint.
|
|
144
74
|
*/
|
|
145
|
-
export type InteractionEndpoint =
|
|
75
|
+
export type InteractionEndpoint = Wire.InteractionEndpoint;
|
|
146
76
|
|
|
147
|
-
export type InteractionTags =
|
|
77
|
+
export type InteractionTags = Wire.InteractionTags;
|
|
148
78
|
|
|
149
|
-
export type InteractionRef =
|
|
79
|
+
export type InteractionRef = Wire.InteractionRef;
|
|
150
80
|
|
|
151
81
|
/** An interaction reduced to the fields a name picker needs. */
|
|
152
|
-
export type InteractionName =
|
|
82
|
+
export type InteractionName = Wire.InteractionName;
|
|
153
83
|
|
|
154
84
|
/**
|
|
155
85
|
* An interaction reference carrying the schemas an export needs to reconstruct it.
|
|
@@ -159,9 +89,9 @@ export type InteractionName = z.infer<typeof InteractionNameSchema>;
|
|
|
159
89
|
* canonical alias — the alias publishes as a bare reference, with no members to omit — and the
|
|
160
90
|
* interface also overstated each prompt template, which an export populates with `inputSchema` alone.
|
|
161
91
|
*/
|
|
162
|
-
export type InteractionRefWithSchema =
|
|
92
|
+
export type InteractionRefWithSchema = Wire.InteractionRefWithSchema;
|
|
163
93
|
|
|
164
|
-
export type InteractionsExportPayload =
|
|
94
|
+
export type InteractionsExportPayload = Wire.InteractionsExportPayload;
|
|
165
95
|
|
|
166
96
|
export enum InteractionStatus {
|
|
167
97
|
draft = 'draft',
|
|
@@ -182,16 +112,16 @@ export enum ExecutionRunStatus {
|
|
|
182
112
|
* Schema can be stored or specified as a reference to an external schema.
|
|
183
113
|
* We only support "store:" references for now
|
|
184
114
|
*/
|
|
185
|
-
export type SchemaRef =
|
|
186
|
-
export type CachePolicy =
|
|
187
|
-
export type InteractionVisibility =
|
|
188
|
-
export type Interaction =
|
|
115
|
+
export type SchemaRef = Wire.SchemaRef;
|
|
116
|
+
export type CachePolicy = Wire.CachePolicy;
|
|
117
|
+
export type InteractionVisibility = Wire.InteractionVisibility;
|
|
118
|
+
export type Interaction = Wire.Interaction;
|
|
189
119
|
|
|
190
|
-
export type InteractionCreatePayload =
|
|
120
|
+
export type InteractionCreatePayload = Wire.InteractionCreatePayload;
|
|
191
121
|
|
|
192
|
-
export type InteractionUpdatePayload =
|
|
122
|
+
export type InteractionUpdatePayload = Wire.InteractionUpdatePayload;
|
|
193
123
|
|
|
194
|
-
export type InteractionPublishPayload =
|
|
124
|
+
export type InteractionPublishPayload = Wire.InteractionPublishPayload;
|
|
195
125
|
|
|
196
126
|
export interface InteractionDeletePayload {
|
|
197
127
|
/**
|
|
@@ -203,13 +133,13 @@ export interface InteractionDeletePayload {
|
|
|
203
133
|
cascade?: boolean;
|
|
204
134
|
}
|
|
205
135
|
|
|
206
|
-
export type InteractionForkPayload =
|
|
136
|
+
export type InteractionForkPayload = Wire.InteractionForkPayload;
|
|
207
137
|
|
|
208
|
-
export type InteractionExecutionPayload =
|
|
138
|
+
export type InteractionExecutionPayload = Wire.InteractionExecutionPayload;
|
|
209
139
|
|
|
210
|
-
export type NamedInteractionExecutionPayload =
|
|
140
|
+
export type NamedInteractionExecutionPayload = Wire.NamedInteractionExecutionPayload;
|
|
211
141
|
|
|
212
|
-
export type ConversationVisibility =
|
|
142
|
+
export type ConversationVisibility = Wire.ConversationVisibility;
|
|
213
143
|
|
|
214
144
|
/**
|
|
215
145
|
* Defines the scope for agent search operations.
|
|
@@ -225,13 +155,13 @@ export enum AgentSearchScope {
|
|
|
225
155
|
* Context triggers for auto-injection of skills.
|
|
226
156
|
* When these conditions match, the skill is automatically injected into the agent context.
|
|
227
157
|
*/
|
|
228
|
-
export type SkillContextTriggers =
|
|
158
|
+
export type SkillContextTriggers = Wire.SkillContextTriggers;
|
|
229
159
|
|
|
230
160
|
/**
|
|
231
161
|
* Configuration options for Agent Runner functionality.
|
|
232
162
|
* These options control how interactions are exposed and executed in the Agent Runner.
|
|
233
163
|
*/
|
|
234
|
-
export type AgentRunnerOptions =
|
|
164
|
+
export type AgentRunnerOptions = Wire.AgentRunnerOptions;
|
|
235
165
|
|
|
236
166
|
// ================= User Communication Channels ====================
|
|
237
167
|
// Import for local use
|
|
@@ -253,50 +183,50 @@ export {
|
|
|
253
183
|
* A tool invocation executed before the first model turn of a conversation.
|
|
254
184
|
* Results are injected into the initial context so the agent starts with them in hand.
|
|
255
185
|
*/
|
|
256
|
-
export type InitialToolCall =
|
|
186
|
+
export type InitialToolCall = Wire.InitialToolCall;
|
|
257
187
|
|
|
258
|
-
export type AsyncConversationExecutionPayload =
|
|
188
|
+
export type AsyncConversationExecutionPayload = Wire.AsyncConversationExecutionPayload;
|
|
259
189
|
|
|
260
|
-
export type AsyncInteractionExecutionPayload =
|
|
190
|
+
export type AsyncInteractionExecutionPayload = Wire.AsyncInteractionExecutionPayload;
|
|
261
191
|
|
|
262
192
|
/**
|
|
263
193
|
* @discriminator type
|
|
264
194
|
*/
|
|
265
|
-
export type AsyncExecutionPayload =
|
|
195
|
+
export type AsyncExecutionPayload = Wire.AsyncExecutionPayload;
|
|
266
196
|
|
|
267
|
-
export type AsyncExecutionResult =
|
|
197
|
+
export type AsyncExecutionResult = Wire.AsyncExecutionResult;
|
|
268
198
|
|
|
269
199
|
/**
|
|
270
200
|
* Telemetry context for streaming mode.
|
|
271
201
|
* Contains info not available in current_state needed to send LlmCallEvent.
|
|
272
202
|
*/
|
|
273
|
-
export type StreamingTelemetryContext =
|
|
203
|
+
export type StreamingTelemetryContext = Wire.StreamingTelemetryContext;
|
|
274
204
|
|
|
275
205
|
/**
|
|
276
206
|
* Options for storing inference results to cloud storage
|
|
277
207
|
*/
|
|
278
|
-
export type ResultStorageOptions =
|
|
208
|
+
export type ResultStorageOptions = Wire.ResultStorageOptions;
|
|
279
209
|
|
|
280
|
-
export type AsyncCompletionMode =
|
|
210
|
+
export type AsyncCompletionMode = Wire.AsyncCompletionMode;
|
|
281
211
|
|
|
282
212
|
/**
|
|
283
213
|
* Streaming-specific options (only needed when stream=true)
|
|
284
214
|
*/
|
|
285
|
-
export type StreamingOptions =
|
|
215
|
+
export type StreamingOptions = Wire.StreamingOptions;
|
|
286
216
|
|
|
287
217
|
/**
|
|
288
218
|
* Options for async completion and/or streaming LLM responses
|
|
289
219
|
*/
|
|
290
|
-
export type AsyncCompletionOptions =
|
|
220
|
+
export type AsyncCompletionOptions = Wire.AsyncCompletionOptions;
|
|
291
221
|
|
|
292
222
|
/**
|
|
293
223
|
* The kinds of Vertesia resource an agent tool can report having created, updated, or deleted.
|
|
294
224
|
* Restricted to resources that have a real detail route to navigate to — do not emit a reference
|
|
295
225
|
* for a mutation with no meaningful navigation target. Add new kinds only once their route exists.
|
|
296
226
|
*/
|
|
297
|
-
export type AgentResourceType =
|
|
227
|
+
export type AgentResourceType = Wire.AgentResourceType;
|
|
298
228
|
|
|
299
|
-
export type AgentResourceAction =
|
|
229
|
+
export type AgentResourceAction = Wire.AgentResourceAction;
|
|
300
230
|
|
|
301
231
|
/**
|
|
302
232
|
* A navigable reference to a resource an agent tool mutated. Tools return these as tool-result
|
|
@@ -304,13 +234,13 @@ export type AgentResourceAction = z.infer<typeof AgentResourceActionSchema>;
|
|
|
304
234
|
* tool's completed lifecycle message so the UI can render deterministic deep links and an
|
|
305
235
|
* end-of-turn "resources changed" summary — independent of any link the model writes in prose.
|
|
306
236
|
*/
|
|
307
|
-
export type AgentResourceReference =
|
|
237
|
+
export type AgentResourceReference = Wire.AgentResourceReference;
|
|
308
238
|
|
|
309
239
|
/**
|
|
310
240
|
* Metadata a tool executor may attach to its result. Kept as an open record for forward
|
|
311
241
|
* compatibility while typing the fields the runtime interprets.
|
|
312
242
|
*/
|
|
313
|
-
export type ToolResultMeta =
|
|
243
|
+
export type ToolResultMeta = Wire.ToolResultMeta;
|
|
314
244
|
|
|
315
245
|
export interface ToolResultContent {
|
|
316
246
|
content: string;
|
|
@@ -376,14 +306,14 @@ export function normalizeAgentResources(value: unknown): AgentResourceReference[
|
|
|
376
306
|
return result;
|
|
377
307
|
}
|
|
378
308
|
|
|
379
|
-
export type ToolResult =
|
|
309
|
+
export type ToolResult = Wire.ToolResult;
|
|
380
310
|
|
|
381
311
|
/**
|
|
382
312
|
* The payload to sent the tool responses back to the target LLM
|
|
383
313
|
*/
|
|
384
|
-
export type ToolResultsPayload =
|
|
314
|
+
export type ToolResultsPayload = Wire.ToolResultsPayload;
|
|
385
315
|
|
|
386
|
-
export type UserMessagePayload =
|
|
316
|
+
export type UserMessagePayload = Wire.UserMessagePayload;
|
|
387
317
|
|
|
388
318
|
// ================= end async execution payloads ====================
|
|
389
319
|
|
|
@@ -397,9 +327,9 @@ export enum RunSourceTypes {
|
|
|
397
327
|
schedule = 'schedule',
|
|
398
328
|
}
|
|
399
329
|
|
|
400
|
-
export type RunSource =
|
|
330
|
+
export type RunSource = Wire.RunSource;
|
|
401
331
|
|
|
402
|
-
export type ExecutionRunInteraction =
|
|
332
|
+
export type ExecutionRunInteraction = Wire.ExecutionRunInteraction;
|
|
403
333
|
|
|
404
334
|
export interface BaseExecutionRun<P = unknown> {
|
|
405
335
|
readonly id: string;
|
|
@@ -449,6 +379,7 @@ export interface BaseExecutionRun<P = unknown> {
|
|
|
449
379
|
account: AccountRef;
|
|
450
380
|
project: ProjectRef;
|
|
451
381
|
config: InteractionExecutionConfiguration;
|
|
382
|
+
inference_profile?: InferenceProfileSnapshot;
|
|
452
383
|
error?: InteractionExecutionError;
|
|
453
384
|
source: RunSource;
|
|
454
385
|
|
|
@@ -477,9 +408,9 @@ export interface PopulatedExecutionRun<P = unknown> extends BaseExecutionRun<P>
|
|
|
477
408
|
interaction?: ExecutionRunInteraction;
|
|
478
409
|
}
|
|
479
410
|
|
|
480
|
-
export type ExecutionRunWorkflow =
|
|
411
|
+
export type ExecutionRunWorkflow = Wire.ExecutionRunWorkflow;
|
|
481
412
|
|
|
482
|
-
export type PromptModalities =
|
|
413
|
+
export type PromptModalities = Wire.PromptModalities;
|
|
483
414
|
|
|
484
415
|
export interface InteractionExecutionResult<P = unknown>
|
|
485
416
|
extends Omit<ExecutionRun<P>, 'account' | 'project' | 'interaction'> {
|
|
@@ -491,31 +422,31 @@ export interface InteractionExecutionResult<P = unknown>
|
|
|
491
422
|
options?: StatelessExecutionOptions;
|
|
492
423
|
}
|
|
493
424
|
|
|
494
|
-
export type ExecutionRunRef =
|
|
425
|
+
export type ExecutionRunRef = Wire.ExecutionRunRef;
|
|
495
426
|
|
|
496
|
-
export type InteractionExecutionConfiguration =
|
|
427
|
+
export type InteractionExecutionConfiguration = Wire.InteractionExecutionConfiguration;
|
|
497
428
|
|
|
498
|
-
export type GenerateInteractionPayload =
|
|
429
|
+
export type GenerateInteractionPayload = Wire.GenerateInteractionPayload;
|
|
499
430
|
|
|
500
|
-
export type GenerateTestDataPayload =
|
|
431
|
+
export type GenerateTestDataPayload = Wire.GenerateTestDataPayload;
|
|
501
432
|
|
|
502
|
-
export type GeneratedTestDataRecord =
|
|
433
|
+
export type GeneratedTestDataRecord = Wire.GeneratedTestDataRecord;
|
|
503
434
|
|
|
504
|
-
export type ImprovePromptPayloadConfig =
|
|
435
|
+
export type ImprovePromptPayloadConfig = Wire.ImprovePromptPayloadConfig;
|
|
505
436
|
|
|
506
|
-
export type ImprovePromptPayload =
|
|
437
|
+
export type ImprovePromptPayload = Wire.ImprovePromptPayload;
|
|
507
438
|
|
|
508
|
-
export type GeneratedInteractionPromptTemplate =
|
|
439
|
+
export type GeneratedInteractionPromptTemplate = Wire.GeneratedInteractionPromptTemplate;
|
|
509
440
|
|
|
510
|
-
export type GeneratedInteractionPromptSegment =
|
|
441
|
+
export type GeneratedInteractionPromptSegment = Wire.GeneratedInteractionPromptSegment;
|
|
511
442
|
|
|
512
|
-
export type GeneratedInteractionDefinition =
|
|
443
|
+
export type GeneratedInteractionDefinition = Wire.GeneratedInteractionDefinition;
|
|
513
444
|
|
|
514
|
-
export type PromptImprovementResponse =
|
|
445
|
+
export type PromptImprovementResponse = Wire.PromptImprovementResponse;
|
|
515
446
|
|
|
516
|
-
export type RateLimitRequestPayload =
|
|
447
|
+
export type RateLimitRequestPayload = Wire.RateLimitRequestPayload;
|
|
517
448
|
|
|
518
|
-
export type RateLimitRequestResponse =
|
|
449
|
+
export type RateLimitRequestResponse = Wire.RateLimitRequestResponse;
|
|
519
450
|
|
|
520
451
|
/**
|
|
521
452
|
* Source of the resolved model configuration
|
|
@@ -540,22 +471,22 @@ export enum ModelSource {
|
|
|
540
471
|
/**
|
|
541
472
|
* Resolved environment information
|
|
542
473
|
*/
|
|
543
|
-
export type ResolvedEnvironmentInfo =
|
|
474
|
+
export type ResolvedEnvironmentInfo = Wire.ResolvedEnvironmentInfo;
|
|
544
475
|
|
|
545
476
|
/**
|
|
546
477
|
* Resolved runtime configuration for an interaction
|
|
547
478
|
*/
|
|
548
|
-
export type ResolvedRuntimeConfig =
|
|
479
|
+
export type ResolvedRuntimeConfig = Wire.ResolvedRuntimeConfig;
|
|
549
480
|
|
|
550
481
|
/**
|
|
551
482
|
* Resolved execution info for an interaction.
|
|
552
483
|
* Contains the interaction ID, basic metadata, and the resolved runtime configuration
|
|
553
484
|
* (environment, model) that would be used at execution time.
|
|
554
485
|
*/
|
|
555
|
-
export type ResolvedInteractionExecutionInfo =
|
|
486
|
+
export type ResolvedInteractionExecutionInfo = Wire.ResolvedInteractionExecutionInfo;
|
|
556
487
|
|
|
557
488
|
export interface PopulatedInteraction extends Omit<Interaction, 'prompts'> {
|
|
558
489
|
prompts: PopulatedPromptSegmentDef[];
|
|
559
490
|
}
|
|
560
491
|
|
|
561
|
-
export type UpdateExecutionRunPayload =
|
|
492
|
+
export type UpdateExecutionRunPayload = Wire.UpdateExecutionRunPayload;
|
package/src/meters.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
3
|
-
StripeBillingDisabledSchema,
|
|
4
|
-
StripeBillingEnabledSchema,
|
|
5
|
-
StripeBillingStatusResponseSchema,
|
|
6
|
-
} from './api-schemas/account.js';
|
|
1
|
+
import type * as Wire from './wire-types.generated.js';
|
|
7
2
|
|
|
8
3
|
interface MeterAdjustment {
|
|
9
4
|
meter: string;
|
|
@@ -23,8 +18,8 @@ export interface AdjustMetersMeterWorkflowParams {
|
|
|
23
18
|
* generated client two unrelated optionals with no way to tell which was populated. Narrowing on
|
|
24
19
|
* `status` now tells TypeScript which fields exist.
|
|
25
20
|
*/
|
|
26
|
-
export type StripeBillingStatusResponse =
|
|
21
|
+
export type StripeBillingStatusResponse = Wire.StripeBillingStatusResponse;
|
|
27
22
|
|
|
28
|
-
export type StripeBillingEnabled =
|
|
23
|
+
export type StripeBillingEnabled = Wire.StripeBillingEnabled;
|
|
29
24
|
|
|
30
|
-
export type StripeBillingDisabled =
|
|
25
|
+
export type StripeBillingDisabled = Wire.StripeBillingDisabled;
|
package/src/oauth-server.ts
CHANGED
|
@@ -1,105 +1,64 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
3
|
-
ApproveOAuthAuthorizationRequestPayloadSchema,
|
|
4
|
-
BulkRevokeOAuthGrantsPayloadSchema,
|
|
5
|
-
CreateOAuthAuthorizationRequestPayloadSchema,
|
|
6
|
-
CreateOAuthClientPayloadSchema,
|
|
7
|
-
ListOAuthGrantsQuerySchema,
|
|
8
|
-
OAuthAuthorizationDecisionResponseSchema,
|
|
9
|
-
OAuthAuthorizationRequestGeneratedAppSchema,
|
|
10
|
-
OAuthAuthorizationRequestSchema,
|
|
11
|
-
OAuthAuthorizationRequestStatusSchema,
|
|
12
|
-
OAuthAuthorizationServerMetadataSchema,
|
|
13
|
-
OAuthAuthorizeQuerySchema,
|
|
14
|
-
OAuthClientCreateResponseSchema,
|
|
15
|
-
OAuthClientDataSchema,
|
|
16
|
-
OAuthClientDisplayMetadataSchema,
|
|
17
|
-
OAuthClientRegistrationModeSchema,
|
|
18
|
-
OAuthClientSchema,
|
|
19
|
-
OAuthClientScopeMetadataSchema,
|
|
20
|
-
OAuthClientStatusSchema,
|
|
21
|
-
OAuthClientTypeSchema,
|
|
22
|
-
OAuthDeviceAuthorizationRequestSchema,
|
|
23
|
-
OAuthDeviceAuthorizationResponseSchema,
|
|
24
|
-
OAuthGrantableScopesResponseSchema,
|
|
25
|
-
OAuthGrantListResponseSchema,
|
|
26
|
-
OAuthGrantRevokeResponseSchema,
|
|
27
|
-
OAuthGrantSchema,
|
|
28
|
-
OAuthGrantSortFieldSchema,
|
|
29
|
-
OAuthGrantSortOrderSchema,
|
|
30
|
-
OAuthGrantStatusSchema,
|
|
31
|
-
OAuthGrantTypeSchema,
|
|
32
|
-
OAuthLoginDecisionResponseSchema,
|
|
33
|
-
OAuthLoginPayloadSchema,
|
|
34
|
-
OAuthLoginUserNotFoundResponseSchema,
|
|
35
|
-
OAuthProjectBindingModeSchema,
|
|
36
|
-
OAuthRegistrationSourceSchema,
|
|
37
|
-
OAuthResponseTypeSchema,
|
|
38
|
-
OAuthTokenEndpointAuthMethodSchema,
|
|
39
|
-
OAuthTokenResponseSchema,
|
|
40
|
-
RevokeOAuthGrantQuerySchema,
|
|
41
|
-
UpdateOAuthClientPayloadSchema,
|
|
42
|
-
} from './api-schemas/oauth-server.js';
|
|
1
|
+
import type * as Wire from './wire-types.generated.js';
|
|
43
2
|
|
|
44
3
|
/**
|
|
45
4
|
* These public OAuth wire types are inferred from `./api-schemas/oauth-server.js` — the same
|
|
46
5
|
* contracts used for runtime parsing and OpenAPI components.
|
|
47
6
|
*/
|
|
48
|
-
export type OAuthClientType =
|
|
49
|
-
export type OAuthClientStatus =
|
|
50
|
-
export type OAuthRegistrationSource =
|
|
51
|
-
export type OAuthProjectBindingMode =
|
|
52
|
-
export type OAuthTokenEndpointAuthMethod =
|
|
53
|
-
export type OAuthGrantType =
|
|
54
|
-
export type OAuthResponseType =
|
|
55
|
-
export type OAuthAuthorizationRequestStatus =
|
|
56
|
-
export type OAuthClientRegistrationMode =
|
|
57
|
-
export type OAuthGrantStatus =
|
|
58
|
-
export type OAuthGrantSortField =
|
|
59
|
-
export type OAuthGrantSortOrder =
|
|
7
|
+
export type OAuthClientType = Wire.OAuthClientType;
|
|
8
|
+
export type OAuthClientStatus = Wire.OAuthClientStatus;
|
|
9
|
+
export type OAuthRegistrationSource = Wire.OAuthRegistrationSource;
|
|
10
|
+
export type OAuthProjectBindingMode = Wire.OAuthProjectBindingMode;
|
|
11
|
+
export type OAuthTokenEndpointAuthMethod = Wire.OAuthTokenEndpointAuthMethod;
|
|
12
|
+
export type OAuthGrantType = Wire.OAuthGrantType;
|
|
13
|
+
export type OAuthResponseType = Wire.OAuthResponseType;
|
|
14
|
+
export type OAuthAuthorizationRequestStatus = Wire.OAuthAuthorizationRequestStatus;
|
|
15
|
+
export type OAuthClientRegistrationMode = Wire.OAuthClientRegistrationMode;
|
|
16
|
+
export type OAuthGrantStatus = Wire.OAuthGrantStatus;
|
|
17
|
+
export type OAuthGrantSortField = Wire.OAuthGrantSortField;
|
|
18
|
+
export type OAuthGrantSortOrder = Wire.OAuthGrantSortOrder;
|
|
60
19
|
|
|
61
20
|
/** An OAuth client's registration, without the id the server issues for it. */
|
|
62
|
-
export type OAuthClientData =
|
|
21
|
+
export type OAuthClientData = Wire.OAuthClientData;
|
|
63
22
|
|
|
64
|
-
export type OAuthClient =
|
|
23
|
+
export type OAuthClient = Wire.OAuthClient;
|
|
65
24
|
|
|
66
25
|
/** The read shape plus the client secret, which is returned by the create call and never again. */
|
|
67
|
-
export type OAuthClientCreateResponse =
|
|
26
|
+
export type OAuthClientCreateResponse = Wire.OAuthClientCreateResponse;
|
|
68
27
|
|
|
69
|
-
export type OAuthClientScopeMetadata =
|
|
28
|
+
export type OAuthClientScopeMetadata = Wire.OAuthClientScopeMetadata;
|
|
70
29
|
|
|
71
|
-
export type OAuthGrant =
|
|
30
|
+
export type OAuthGrant = Wire.OAuthGrant;
|
|
72
31
|
|
|
73
|
-
export type ListOAuthGrantsQuery =
|
|
32
|
+
export type ListOAuthGrantsQuery = Wire.ListOAuthGrantsQuery;
|
|
74
33
|
|
|
75
34
|
/** Whether revoking a grant also withdraws the stored consent behind it. */
|
|
76
|
-
export type RevokeOAuthGrantQuery =
|
|
35
|
+
export type RevokeOAuthGrantQuery = Wire.RevokeOAuthGrantQuery;
|
|
77
36
|
|
|
78
|
-
export type OAuthGrantListResponse =
|
|
37
|
+
export type OAuthGrantListResponse = Wire.OAuthGrantListResponse;
|
|
79
38
|
|
|
80
|
-
export type BulkRevokeOAuthGrantsPayload =
|
|
39
|
+
export type BulkRevokeOAuthGrantsPayload = Wire.BulkRevokeOAuthGrantsPayload;
|
|
81
40
|
|
|
82
|
-
export type OAuthGrantRevokeResponse =
|
|
41
|
+
export type OAuthGrantRevokeResponse = Wire.OAuthGrantRevokeResponse;
|
|
83
42
|
|
|
84
|
-
export type CreateOAuthClientPayload =
|
|
43
|
+
export type CreateOAuthClientPayload = Wire.CreateOAuthClientPayload;
|
|
85
44
|
|
|
86
|
-
export type UpdateOAuthClientPayload =
|
|
45
|
+
export type UpdateOAuthClientPayload = Wire.UpdateOAuthClientPayload;
|
|
87
46
|
|
|
88
|
-
export type OAuthAuthorizationServerMetadata =
|
|
89
|
-
export type OAuthClientDisplayMetadata =
|
|
90
|
-
export type OAuthAuthorizeQuery =
|
|
91
|
-
export type CreateOAuthAuthorizationRequestPayload =
|
|
92
|
-
export type OAuthAuthorizationRequest =
|
|
93
|
-
export type ApproveOAuthAuthorizationRequestPayload =
|
|
94
|
-
export type OAuthGrantableScopesResponse =
|
|
95
|
-
export type OAuthAuthorizationDecisionResponse =
|
|
96
|
-
export type OAuthDeviceAuthorizationRequest =
|
|
97
|
-
export type OAuthDeviceAuthorizationResponse =
|
|
98
|
-
export type OAuthTokenResponse =
|
|
47
|
+
export type OAuthAuthorizationServerMetadata = Wire.OAuthAuthorizationServerMetadata;
|
|
48
|
+
export type OAuthClientDisplayMetadata = Wire.OAuthClientDisplayMetadata;
|
|
49
|
+
export type OAuthAuthorizeQuery = Wire.OAuthAuthorizeQuery;
|
|
50
|
+
export type CreateOAuthAuthorizationRequestPayload = Wire.CreateOAuthAuthorizationRequestPayload;
|
|
51
|
+
export type OAuthAuthorizationRequest = Wire.OAuthAuthorizationRequest;
|
|
52
|
+
export type ApproveOAuthAuthorizationRequestPayload = Wire.ApproveOAuthAuthorizationRequestPayload;
|
|
53
|
+
export type OAuthGrantableScopesResponse = Wire.OAuthGrantableScopesResponse;
|
|
54
|
+
export type OAuthAuthorizationDecisionResponse = Wire.OAuthAuthorizationDecisionResponse;
|
|
55
|
+
export type OAuthDeviceAuthorizationRequest = Wire.OAuthDeviceAuthorizationRequest;
|
|
56
|
+
export type OAuthDeviceAuthorizationResponse = Wire.OAuthDeviceAuthorizationResponse;
|
|
57
|
+
export type OAuthTokenResponse = Wire.OAuthTokenResponse;
|
|
99
58
|
|
|
100
|
-
export type OAuthAuthorizationRequestGeneratedApp =
|
|
59
|
+
export type OAuthAuthorizationRequestGeneratedApp = Wire.OAuthAuthorizationRequestGeneratedApp;
|
|
101
60
|
|
|
102
|
-
export type OAuthLoginPayload =
|
|
103
|
-
export type OAuthLoginDecisionResponse =
|
|
61
|
+
export type OAuthLoginPayload = Wire.OAuthLoginPayload;
|
|
62
|
+
export type OAuthLoginDecisionResponse = Wire.OAuthLoginDecisionResponse;
|
|
104
63
|
|
|
105
|
-
export type OAuthLoginUserNotFoundResponse =
|
|
64
|
+
export type OAuthLoginUserNotFoundResponse = Wire.OAuthLoginUserNotFoundResponse;
|
package/src/oauth.ts
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
3
|
-
CreateOAuthProviderPayloadSchema,
|
|
4
|
-
OAuthProviderAccessTokenResponseSchema,
|
|
5
|
-
OAuthProviderAuthorizeResponseSchema,
|
|
6
|
-
OAuthProviderAuthStatusSchema,
|
|
7
|
-
OAuthProviderDataSchema,
|
|
8
|
-
OAuthProviderExchangePayloadSchema,
|
|
9
|
-
OAuthProviderSchema,
|
|
10
|
-
UpdateOAuthProviderPayloadSchema,
|
|
11
|
-
} from './api-schemas/oauth.js';
|
|
1
|
+
import type * as Wire from './wire-types.generated.js';
|
|
12
2
|
|
|
13
3
|
/**
|
|
14
4
|
* OAuth Provider types for generic, project-level OAuth 2.0 integration.
|
|
@@ -23,38 +13,38 @@ import type {
|
|
|
23
13
|
* OAuth Provider data stored in MongoDB.
|
|
24
14
|
* Represents the configuration for an OAuth 2.0 provider at the project level.
|
|
25
15
|
*/
|
|
26
|
-
export type OAuthProviderData =
|
|
16
|
+
export type OAuthProviderData = Wire.OAuthProviderData;
|
|
27
17
|
|
|
28
18
|
/**
|
|
29
19
|
* OAuth Provider as returned by the API (with id).
|
|
30
20
|
*/
|
|
31
|
-
export type OAuthProvider =
|
|
21
|
+
export type OAuthProvider = Wire.OAuthProvider;
|
|
32
22
|
|
|
33
23
|
/**
|
|
34
24
|
* Payload for creating an OAuth Provider.
|
|
35
25
|
* The client_secret is accepted as plaintext on create and stored encrypted.
|
|
36
26
|
*/
|
|
37
|
-
export type CreateOAuthProviderPayload =
|
|
27
|
+
export type CreateOAuthProviderPayload = Wire.CreateOAuthProviderPayload;
|
|
38
28
|
|
|
39
29
|
/**
|
|
40
30
|
* Payload for updating an OAuth Provider.
|
|
41
31
|
* All fields are optional — only provided fields are updated.
|
|
42
32
|
* To clear the client_secret, set it to an empty string.
|
|
43
33
|
*/
|
|
44
|
-
export type UpdateOAuthProviderPayload =
|
|
34
|
+
export type UpdateOAuthProviderPayload = Wire.UpdateOAuthProviderPayload;
|
|
45
35
|
|
|
46
36
|
/**
|
|
47
37
|
* OAuth authentication status for a user against an OAuth Provider.
|
|
48
38
|
*/
|
|
49
|
-
export type OAuthProviderAuthStatus =
|
|
39
|
+
export type OAuthProviderAuthStatus = Wire.OAuthProviderAuthStatus;
|
|
50
40
|
|
|
51
41
|
/**
|
|
52
42
|
* Response from the OAuth authorize endpoint.
|
|
53
43
|
* For authorization_code flow: contains authorization_url and state for browser redirect.
|
|
54
44
|
* For client_credentials flow: contains connected=true (token was fetched server-side, no redirect needed).
|
|
55
45
|
*/
|
|
56
|
-
export type OAuthProviderAuthorizeResponse =
|
|
46
|
+
export type OAuthProviderAuthorizeResponse = Wire.OAuthProviderAuthorizeResponse;
|
|
57
47
|
|
|
58
|
-
export type OAuthProviderAccessTokenResponse =
|
|
48
|
+
export type OAuthProviderAccessTokenResponse = Wire.OAuthProviderAccessTokenResponse;
|
|
59
49
|
|
|
60
|
-
export type OAuthProviderExchangePayload =
|
|
50
|
+
export type OAuthProviderExchangePayload = Wire.OAuthProviderExchangePayload;
|