@takeshape/schema 11.144.1 → 11.154.2
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/examples/latest/all-fields-shapes-inline.json +1 -1
- package/examples/latest/all-fields-shapes.json +1 -1
- package/examples/latest/betzino.json +1 -1
- package/examples/latest/blog-schema.json +1 -1
- package/examples/latest/brewery-schema.json +1 -1
- package/examples/latest/chat-agent-schema.json +1 -1
- package/examples/latest/clear-cache-schema.json +1 -1
- package/examples/latest/complex-project-schema.json +1 -1
- package/examples/latest/complex-schema.json +1 -1
- package/examples/latest/edit-schema.json +1 -1
- package/examples/latest/frank-and-fred-schema.json +1 -1
- package/examples/latest/generate-agent-schema.json +1 -1
- package/examples/latest/klirr-schema.json +1 -1
- package/examples/latest/layers/rick-and-morty-layer.json +1 -1
- package/examples/latest/layers/shopify-layer-2023-01.json +1 -1
- package/examples/latest/layers/shopify-storefront-2023-04.json +1 -1
- package/examples/latest/layers/wordpress-2024-01.json +1 -1
- package/examples/latest/massive-schema.json +1 -1
- package/examples/latest/mill-components-schema.json +1 -1
- package/examples/latest/nested-shape-arrays.json +1 -1
- package/examples/latest/one-earth.json +1 -1
- package/examples/latest/pet-oneof-array.json +1 -1
- package/examples/latest/post-schema.json +1 -1
- package/examples/latest/pruned-shopify-product-schema.json +1 -1
- package/examples/latest/rag-example.json +1 -1
- package/examples/latest/real-world-schema.json +1 -1
- package/examples/latest/recursive-repeater-schema.json +1 -1
- package/examples/latest/recursive-schema.json +1 -1
- package/examples/latest/rick-and-morty-ast.json +1 -1
- package/examples/latest/rick-and-morty-graphql.json +1 -1
- package/examples/latest/rick-and-morty-rest.json +1 -1
- package/examples/latest/rick-and-morty-user-schema.json +1 -1
- package/examples/latest/rick-and-morty-with-indexing.json +1 -1
- package/examples/latest/schema-where-filter.json +1 -1
- package/examples/latest/schema-with-repeater-draftjs.json +1 -1
- package/examples/latest/schema-with-rick-and-morty.json +1 -1
- package/examples/latest/shape-books-v3_2_0.json +1 -1
- package/examples/latest/shape-books.json +1 -1
- package/examples/latest/shape-editor-schema-edited.json +1 -1
- package/examples/latest/shape-editor-schema-initial.json +1 -1
- package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
- package/examples/latest/shopify-lookbook.json +1 -1
- package/examples/latest/shopify-product-2022-07.json +1 -1
- package/examples/latest/shopify-product-2023-04.json +1 -1
- package/examples/latest/shopify-store-with-widget.json +1 -1
- package/examples/latest/stripe-product-runtime-schema.json +1 -1
- package/examples/latest/stripe-starter-resolved.json +1 -1
- package/examples/latest/user-schema-no-required.json +1 -1
- package/examples/latest/user-schema-with-defaults.json +1 -1
- package/examples/latest/valvoline-ai-demo.json +1461 -1421
- package/examples/latest/vector-search-schema.json +1 -1
- package/package.json +10 -9
- package/dist/agents.d.ts +0 -62
- package/dist/agents.js +0 -338
- package/dist/api-version.d.ts +0 -5
- package/dist/api-version.js +0 -17
- package/dist/auth-schemas.d.ts +0 -128
- package/dist/auth-schemas.js +0 -7
- package/dist/auth-utils.d.ts +0 -5
- package/dist/auth-utils.js +0 -6
- package/dist/builtin-schema.d.ts +0 -18
- package/dist/builtin-schema.js +0 -683
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -1
- package/dist/content-schema-transform.d.ts +0 -35
- package/dist/content-schema-transform.js +0 -162
- package/dist/create-input-schema.d.ts +0 -9
- package/dist/create-input-schema.js +0 -68
- package/dist/enum.d.ts +0 -2
- package/dist/enum.js +0 -9
- package/dist/flatten-templates.d.ts +0 -2
- package/dist/flatten-templates.js +0 -20
- package/dist/get-is-leaf.d.ts +0 -3
- package/dist/get-is-leaf.js +0 -56
- package/dist/index.d.ts +0 -62
- package/dist/index.js +0 -59
- package/dist/interfaces.d.ts +0 -14
- package/dist/interfaces.js +0 -86
- package/dist/layers/layers.d.ts +0 -26
- package/dist/layers/layers.js +0 -301
- package/dist/layers/refs.d.ts +0 -102
- package/dist/layers/refs.js +0 -220
- package/dist/layers/type-utils.d.ts +0 -59
- package/dist/layers/type-utils.js +0 -118
- package/dist/layers/visitor.d.ts +0 -5
- package/dist/layers/visitor.js +0 -38
- package/dist/migration/index.d.ts +0 -73
- package/dist/migration/index.js +0 -103
- package/dist/migration/to/v3.0.0.d.ts +0 -4
- package/dist/migration/to/v3.0.0.js +0 -212
- package/dist/migration/to/v3.1.0.d.ts +0 -4
- package/dist/migration/to/v3.1.0.js +0 -194
- package/dist/migration/to/v3.10.0.d.ts +0 -4
- package/dist/migration/to/v3.10.0.js +0 -67
- package/dist/migration/to/v3.11.0.d.ts +0 -4
- package/dist/migration/to/v3.11.0.js +0 -85
- package/dist/migration/to/v3.12.3.d.ts +0 -4
- package/dist/migration/to/v3.12.3.js +0 -87
- package/dist/migration/to/v3.13.0.d.ts +0 -4
- package/dist/migration/to/v3.13.0.js +0 -17
- package/dist/migration/to/v3.17.0.d.ts +0 -4
- package/dist/migration/to/v3.17.0.js +0 -22
- package/dist/migration/to/v3.18.0.d.ts +0 -4
- package/dist/migration/to/v3.18.0.js +0 -64
- package/dist/migration/to/v3.18.1.d.ts +0 -4
- package/dist/migration/to/v3.18.1.js +0 -12
- package/dist/migration/to/v3.18.2.d.ts +0 -4
- package/dist/migration/to/v3.18.2.js +0 -19
- package/dist/migration/to/v3.20.0.d.ts +0 -4
- package/dist/migration/to/v3.20.0.js +0 -24
- package/dist/migration/to/v3.22.0.d.ts +0 -4
- package/dist/migration/to/v3.22.0.js +0 -25
- package/dist/migration/to/v3.24.0.d.ts +0 -4
- package/dist/migration/to/v3.24.0.js +0 -11
- package/dist/migration/to/v3.25.0.d.ts +0 -4
- package/dist/migration/to/v3.25.0.js +0 -11
- package/dist/migration/to/v3.3.0.d.ts +0 -4
- package/dist/migration/to/v3.3.0.js +0 -13
- package/dist/migration/to/v3.31.0.d.ts +0 -4
- package/dist/migration/to/v3.31.0.js +0 -38
- package/dist/migration/to/v3.32.0.d.ts +0 -4
- package/dist/migration/to/v3.32.0.js +0 -59
- package/dist/migration/to/v3.34.0.d.ts +0 -6
- package/dist/migration/to/v3.34.0.js +0 -111
- package/dist/migration/to/v3.36.0.d.ts +0 -4
- package/dist/migration/to/v3.36.0.js +0 -22
- package/dist/migration/to/v3.39.0.d.ts +0 -4
- package/dist/migration/to/v3.39.0.js +0 -45
- package/dist/migration/to/v3.40.0.d.ts +0 -4
- package/dist/migration/to/v3.40.0.js +0 -26
- package/dist/migration/to/v3.46.0.d.ts +0 -4
- package/dist/migration/to/v3.46.0.js +0 -35
- package/dist/migration/to/v3.57.0.d.ts +0 -4
- package/dist/migration/to/v3.57.0.js +0 -18
- package/dist/migration/to/v3.9.0.d.ts +0 -4
- package/dist/migration/to/v3.9.0.js +0 -79
- package/dist/migration/types.d.ts +0 -26
- package/dist/migration/types.js +0 -3
- package/dist/migration/utils.d.ts +0 -2
- package/dist/migration/utils.js +0 -6
- package/dist/mocks.d.ts +0 -14
- package/dist/mocks.js +0 -58
- package/dist/models/agent.d.ts +0 -3
- package/dist/models/agent.js +0 -29
- package/dist/models/project-schema.d.ts +0 -18
- package/dist/models/project-schema.js +0 -119
- package/dist/models/query.d.ts +0 -3
- package/dist/models/query.js +0 -38
- package/dist/models/runtime-schema.d.ts +0 -9
- package/dist/models/runtime-schema.js +0 -20
- package/dist/models/shape.d.ts +0 -4
- package/dist/models/shape.js +0 -36
- package/dist/models/types.d.ts +0 -36
- package/dist/models/types.js +0 -1
- package/dist/models/user-schema.d.ts +0 -7
- package/dist/models/user-schema.js +0 -9
- package/dist/patterns.d.ts +0 -12
- package/dist/patterns.js +0 -1
- package/dist/project-schema/index.d.ts +0 -211
- package/dist/project-schema/index.js +0 -83
- package/dist/project-schema/latest.d.ts +0 -2619
- package/dist/project-schema/latest.js +0 -7
- package/dist/project-schema/migrate.d.ts +0 -4
- package/dist/project-schema/migrate.js +0 -218
- package/dist/project-schema/v1.0.0.d.ts +0 -299
- package/dist/project-schema/v1.0.0.js +0 -7
- package/dist/project-schema/v3.0.0.d.ts +0 -478
- package/dist/project-schema/v3.0.0.js +0 -7
- package/dist/project-schema/v3.1.0.d.ts +0 -621
- package/dist/project-schema/v3.1.0.js +0 -7
- package/dist/project-schema/v3.10.0.d.ts +0 -1201
- package/dist/project-schema/v3.10.0.js +0 -7
- package/dist/project-schema/v3.11.0.d.ts +0 -1210
- package/dist/project-schema/v3.11.0.js +0 -7
- package/dist/project-schema/v3.12.0.d.ts +0 -1214
- package/dist/project-schema/v3.12.0.js +0 -7
- package/dist/project-schema/v3.12.1.d.ts +0 -1273
- package/dist/project-schema/v3.12.1.js +0 -7
- package/dist/project-schema/v3.12.2.d.ts +0 -1283
- package/dist/project-schema/v3.12.2.js +0 -7
- package/dist/project-schema/v3.12.3.d.ts +0 -1306
- package/dist/project-schema/v3.12.3.js +0 -7
- package/dist/project-schema/v3.13.0.d.ts +0 -1317
- package/dist/project-schema/v3.13.0.js +0 -7
- package/dist/project-schema/v3.13.1.d.ts +0 -1412
- package/dist/project-schema/v3.13.1.js +0 -7
- package/dist/project-schema/v3.14.0.d.ts +0 -1436
- package/dist/project-schema/v3.14.0.js +0 -7
- package/dist/project-schema/v3.15.0.d.ts +0 -1458
- package/dist/project-schema/v3.15.0.js +0 -7
- package/dist/project-schema/v3.16.0.d.ts +0 -1470
- package/dist/project-schema/v3.16.0.js +0 -7
- package/dist/project-schema/v3.17.0.d.ts +0 -1467
- package/dist/project-schema/v3.17.0.js +0 -7
- package/dist/project-schema/v3.17.1.d.ts +0 -1468
- package/dist/project-schema/v3.17.1.js +0 -7
- package/dist/project-schema/v3.18.0.d.ts +0 -1333
- package/dist/project-schema/v3.18.0.js +0 -7
- package/dist/project-schema/v3.18.1.d.ts +0 -1332
- package/dist/project-schema/v3.18.1.js +0 -7
- package/dist/project-schema/v3.18.2.d.ts +0 -1332
- package/dist/project-schema/v3.18.2.js +0 -7
- package/dist/project-schema/v3.19.0.d.ts +0 -1336
- package/dist/project-schema/v3.19.0.js +0 -7
- package/dist/project-schema/v3.2.0.d.ts +0 -632
- package/dist/project-schema/v3.2.0.js +0 -7
- package/dist/project-schema/v3.20.0.d.ts +0 -1336
- package/dist/project-schema/v3.20.0.js +0 -7
- package/dist/project-schema/v3.21.0.d.ts +0 -1338
- package/dist/project-schema/v3.21.0.js +0 -7
- package/dist/project-schema/v3.22.0.d.ts +0 -1344
- package/dist/project-schema/v3.22.0.js +0 -7
- package/dist/project-schema/v3.23.0.d.ts +0 -1376
- package/dist/project-schema/v3.23.0.js +0 -7
- package/dist/project-schema/v3.24.0.d.ts +0 -1364
- package/dist/project-schema/v3.24.0.js +0 -7
- package/dist/project-schema/v3.25.0.d.ts +0 -1363
- package/dist/project-schema/v3.25.0.js +0 -7
- package/dist/project-schema/v3.26.0.d.ts +0 -1388
- package/dist/project-schema/v3.26.0.js +0 -7
- package/dist/project-schema/v3.27.0.d.ts +0 -1397
- package/dist/project-schema/v3.27.0.js +0 -7
- package/dist/project-schema/v3.28.0.d.ts +0 -1416
- package/dist/project-schema/v3.28.0.js +0 -7
- package/dist/project-schema/v3.29.0.d.ts +0 -1423
- package/dist/project-schema/v3.29.0.js +0 -7
- package/dist/project-schema/v3.3.0.d.ts +0 -632
- package/dist/project-schema/v3.3.0.js +0 -7
- package/dist/project-schema/v3.30.0.d.ts +0 -1416
- package/dist/project-schema/v3.30.0.js +0 -7
- package/dist/project-schema/v3.31.0.d.ts +0 -1448
- package/dist/project-schema/v3.31.0.js +0 -7
- package/dist/project-schema/v3.32.0.d.ts +0 -1439
- package/dist/project-schema/v3.32.0.js +0 -7
- package/dist/project-schema/v3.33.0.d.ts +0 -1445
- package/dist/project-schema/v3.33.0.js +0 -7
- package/dist/project-schema/v3.34.0.d.ts +0 -1445
- package/dist/project-schema/v3.34.0.js +0 -7
- package/dist/project-schema/v3.35.0.d.ts +0 -1464
- package/dist/project-schema/v3.35.0.js +0 -7
- package/dist/project-schema/v3.36.0.d.ts +0 -1470
- package/dist/project-schema/v3.36.0.js +0 -7
- package/dist/project-schema/v3.37.0.d.ts +0 -1522
- package/dist/project-schema/v3.37.0.js +0 -7
- package/dist/project-schema/v3.38.0.d.ts +0 -1522
- package/dist/project-schema/v3.38.0.js +0 -7
- package/dist/project-schema/v3.39.0.d.ts +0 -1529
- package/dist/project-schema/v3.39.0.js +0 -7
- package/dist/project-schema/v3.4.0.d.ts +0 -624
- package/dist/project-schema/v3.4.0.js +0 -7
- package/dist/project-schema/v3.40.0.d.ts +0 -1530
- package/dist/project-schema/v3.40.0.js +0 -7
- package/dist/project-schema/v3.41.0.d.ts +0 -1530
- package/dist/project-schema/v3.41.0.js +0 -7
- package/dist/project-schema/v3.42.0.d.ts +0 -1534
- package/dist/project-schema/v3.42.0.js +0 -7
- package/dist/project-schema/v3.43.0.d.ts +0 -1536
- package/dist/project-schema/v3.43.0.js +0 -7
- package/dist/project-schema/v3.44.0.d.ts +0 -1621
- package/dist/project-schema/v3.44.0.js +0 -7
- package/dist/project-schema/v3.45.0.d.ts +0 -1650
- package/dist/project-schema/v3.45.0.js +0 -7
- package/dist/project-schema/v3.46.0.d.ts +0 -1703
- package/dist/project-schema/v3.46.0.js +0 -7
- package/dist/project-schema/v3.47.0.d.ts +0 -1736
- package/dist/project-schema/v3.47.0.js +0 -7
- package/dist/project-schema/v3.48.0.d.ts +0 -2208
- package/dist/project-schema/v3.48.0.js +0 -7
- package/dist/project-schema/v3.49.0.d.ts +0 -2217
- package/dist/project-schema/v3.49.0.js +0 -7
- package/dist/project-schema/v3.5.0.d.ts +0 -649
- package/dist/project-schema/v3.5.0.js +0 -7
- package/dist/project-schema/v3.5.1.d.ts +0 -649
- package/dist/project-schema/v3.5.1.js +0 -7
- package/dist/project-schema/v3.50.0.d.ts +0 -2269
- package/dist/project-schema/v3.50.0.js +0 -7
- package/dist/project-schema/v3.51.0.d.ts +0 -2269
- package/dist/project-schema/v3.51.0.js +0 -7
- package/dist/project-schema/v3.52.0.d.ts +0 -2269
- package/dist/project-schema/v3.52.0.js +0 -7
- package/dist/project-schema/v3.53.0.d.ts +0 -2350
- package/dist/project-schema/v3.53.0.js +0 -7
- package/dist/project-schema/v3.54.0.d.ts +0 -2369
- package/dist/project-schema/v3.54.0.js +0 -7
- package/dist/project-schema/v3.55.0.d.ts +0 -2369
- package/dist/project-schema/v3.55.0.js +0 -7
- package/dist/project-schema/v3.56.0.d.ts +0 -2405
- package/dist/project-schema/v3.56.0.js +0 -7
- package/dist/project-schema/v3.57.0.d.ts +0 -2601
- package/dist/project-schema/v3.57.0.js +0 -7
- package/dist/project-schema/v3.58.0.d.ts +0 -2601
- package/dist/project-schema/v3.58.0.js +0 -7
- package/dist/project-schema/v3.59.0.d.ts +0 -2619
- package/dist/project-schema/v3.59.0.js +0 -7
- package/dist/project-schema/v3.6.0.d.ts +0 -658
- package/dist/project-schema/v3.6.0.js +0 -7
- package/dist/project-schema/v3.7.0.d.ts +0 -961
- package/dist/project-schema/v3.7.0.js +0 -7
- package/dist/project-schema/v3.8.0.d.ts +0 -979
- package/dist/project-schema/v3.8.0.js +0 -7
- package/dist/project-schema/v3.9.0.d.ts +0 -1178
- package/dist/project-schema/v3.9.0.js +0 -7
- package/dist/project-schema/v4.0.0.d.ts +0 -1328
- package/dist/project-schema/v4.0.0.js +0 -7
- package/dist/refs.d.ts +0 -218
- package/dist/refs.js +0 -616
- package/dist/relationships.d.ts +0 -40
- package/dist/relationships.js +0 -302
- package/dist/resolvers/ai/abort-agent-message-args.d.ts +0 -16
- package/dist/resolvers/ai/abort-agent-message-args.js +0 -13
- package/dist/resolvers/ai/abort-agent-message-response.d.ts +0 -39
- package/dist/resolvers/ai/abort-agent-message-response.js +0 -19
- package/dist/resolvers/ai/agent-chat-args.d.ts +0 -17
- package/dist/resolvers/ai/agent-chat-args.js +0 -14
- package/dist/resolvers/ai/agent-chat-payload.d.ts +0 -35
- package/dist/resolvers/ai/agent-chat-payload.js +0 -26
- package/dist/resolvers/ai/agent-chat-response.d.ts +0 -289
- package/dist/resolvers/ai/agent-chat-response.js +0 -21
- package/dist/resolvers/ai/agent-generate-args.d.ts +0 -17
- package/dist/resolvers/ai/agent-generate-args.js +0 -14
- package/dist/resolvers/ai/agent-message-input.d.ts +0 -73
- package/dist/resolvers/ai/agent-message-input.js +0 -39
- package/dist/resolvers/ai/agent-message-output.d.ts +0 -169
- package/dist/resolvers/ai/agent-message-output.js +0 -77
- package/dist/resolvers/ai/agent-message-payload.d.ts +0 -507
- package/dist/resolvers/ai/agent-message-payload.js +0 -156
- package/dist/resolvers/ai/agent-run-mode.d.ts +0 -7
- package/dist/resolvers/ai/agent-run-mode.js +0 -9
- package/dist/resolvers/ai/agent-session-payload.d.ts +0 -515
- package/dist/resolvers/ai/agent-session-payload.js +0 -175
- package/dist/resolvers/ai/create-agent-session-response.d.ts +0 -199
- package/dist/resolvers/ai/create-agent-session-response.js +0 -9
- package/dist/resolvers/ai/embedding-search.d.ts +0 -54
- package/dist/resolvers/ai/embedding-search.js +0 -46
- package/dist/resolvers/ai/get-agent-message-args.d.ts +0 -16
- package/dist/resolvers/ai/get-agent-message-args.js +0 -13
- package/dist/resolvers/ai/get-agent-message-response.d.ts +0 -805
- package/dist/resolvers/ai/get-agent-message-response.js +0 -63
- package/dist/resolvers/ai/inspect-agent-args.d.ts +0 -16
- package/dist/resolvers/ai/inspect-agent-args.js +0 -13
- package/dist/resolvers/ai/inspect-agent-response.d.ts +0 -504
- package/dist/resolvers/ai/inspect-agent-response.js +0 -48
- package/dist/resolvers/ai/send-agent-feedback-args.d.ts +0 -52
- package/dist/resolvers/ai/send-agent-feedback-args.js +0 -16
- package/dist/resolvers/ai/send-agent-message-args.d.ts +0 -48
- package/dist/resolvers/ai/send-agent-message-args.js +0 -36
- package/dist/resolvers/ai/send-agent-message-response.d.ts +0 -353
- package/dist/resolvers/ai/send-agent-message-response.js +0 -51
- package/dist/resolvers/ai/types.d.ts +0 -6
- package/dist/resolvers/ai/types.js +0 -1
- package/dist/resolvers/takeshape/assets/asset-image-meta.d.ts +0 -79
- package/dist/resolvers/takeshape/assets/asset-image-meta.js +0 -98
- package/dist/resolvers/takeshape/assets/asset-image-params.d.ts +0 -901
- package/dist/resolvers/takeshape/assets/asset-image-params.js +0 -726
- package/dist/resolvers/takeshape/assets/asset-image.d.ts +0 -17
- package/dist/resolvers/takeshape/assets/asset-image.js +0 -15
- package/dist/resolvers/takeshape/assets/asset.d.ts +0 -125
- package/dist/resolvers/takeshape/assets/asset.js +0 -107
- package/dist/resolvers/takeshape/assets/constants.d.ts +0 -11
- package/dist/resolvers/takeshape/assets/constants.js +0 -11
- package/dist/resolvers/takeshape/builtins/constants.d.ts +0 -1
- package/dist/resolvers/takeshape/builtins/constants.js +0 -1
- package/dist/runtime-schema.d.ts +0 -6
- package/dist/runtime-schema.js +0 -85
- package/dist/scalars.d.ts +0 -2
- package/dist/scalars.js +0 -4
- package/dist/schema-transform.d.ts +0 -19
- package/dist/schema-transform.js +0 -74
- package/dist/schema-util.d.ts +0 -266
- package/dist/schema-util.js +0 -1127
- package/dist/schemas/auth-schemas.json +0 -374
- package/dist/schemas/index.d.ts +0 -4
- package/dist/schemas/index.js +0 -170
- package/dist/schemas/project-schema/experimental-2025-07.json +0 -1297
- package/dist/schemas/project-schema/latest.d.ts +0 -180
- package/dist/schemas/project-schema/latest.js +0 -11
- package/dist/schemas/project-schema/latest.json +0 -4846
- package/dist/schemas/project-schema/meta-schema-v1.0.0.json +0 -193
- package/dist/schemas/project-schema/meta-schema-v3.0.0.json +0 -608
- package/dist/schemas/project-schema/meta-schema-v3.1.0.json +0 -608
- package/dist/schemas/project-schema/meta-schema-v3.2.0.json +0 -612
- package/dist/schemas/project-schema/meta-schema-v3.3.0.json +0 -612
- package/dist/schemas/project-schema/meta-schema-v3.4.0.json +0 -637
- package/dist/schemas/project-schema/meta-schema-v3.5.0.json +0 -626
- package/dist/schemas/project-schema/meta-schema-v3.5.1.json +0 -626
- package/dist/schemas/project-schema/meta-schema-v3.6.0.json +0 -629
- package/dist/schemas/project-schema/meta-schema-v3.7.0.json +0 -1137
- package/dist/schemas/project-schema/meta-schema-v3.8.0.json +0 -1137
- package/dist/schemas/project-schema/meta-schema-v3.9.0.json +0 -1477
- package/dist/schemas/project-schema/v1.0.0.json +0 -321
- package/dist/schemas/project-schema/v3.0.0.json +0 -414
- package/dist/schemas/project-schema/v3.1.0.json +0 -572
- package/dist/schemas/project-schema/v3.10.0.json +0 -2097
- package/dist/schemas/project-schema/v3.11.0.json +0 -2141
- package/dist/schemas/project-schema/v3.12.0.json +0 -2144
- package/dist/schemas/project-schema/v3.12.1.json +0 -2282
- package/dist/schemas/project-schema/v3.12.2.json +0 -2304
- package/dist/schemas/project-schema/v3.12.3.json +0 -2357
- package/dist/schemas/project-schema/v3.13.0.json +0 -2377
- package/dist/schemas/project-schema/v3.14.0.json +0 -2385
- package/dist/schemas/project-schema/v3.15.0.json +0 -2365
- package/dist/schemas/project-schema/v3.16.0.json +0 -2373
- package/dist/schemas/project-schema/v3.17.0.json +0 -2378
- package/dist/schemas/project-schema/v3.17.1.json +0 -2380
- package/dist/schemas/project-schema/v3.18.0.json +0 -2356
- package/dist/schemas/project-schema/v3.18.1.json +0 -2357
- package/dist/schemas/project-schema/v3.18.2.json +0 -2357
- package/dist/schemas/project-schema/v3.19.0.json +0 -2369
- package/dist/schemas/project-schema/v3.2.0.json +0 -580
- package/dist/schemas/project-schema/v3.20.0.json +0 -2369
- package/dist/schemas/project-schema/v3.21.0.json +0 -2376
- package/dist/schemas/project-schema/v3.22.0.json +0 -2381
- package/dist/schemas/project-schema/v3.23.0.json +0 -2456
- package/dist/schemas/project-schema/v3.24.0.json +0 -2556
- package/dist/schemas/project-schema/v3.25.0.json +0 -2552
- package/dist/schemas/project-schema/v3.26.0.json +0 -2599
- package/dist/schemas/project-schema/v3.27.0.json +0 -2611
- package/dist/schemas/project-schema/v3.28.0.json +0 -2656
- package/dist/schemas/project-schema/v3.29.0.json +0 -2670
- package/dist/schemas/project-schema/v3.3.0.json +0 -581
- package/dist/schemas/project-schema/v3.30.0.json +0 -2656
- package/dist/schemas/project-schema/v3.31.0.json +0 -2714
- package/dist/schemas/project-schema/v3.32.0.json +0 -2708
- package/dist/schemas/project-schema/v3.33.0.json +0 -2715
- package/dist/schemas/project-schema/v3.34.0.json +0 -2715
- package/dist/schemas/project-schema/v3.35.0.json +0 -2748
- package/dist/schemas/project-schema/v3.36.0.json +0 -2756
- package/dist/schemas/project-schema/v3.37.0.json +0 -2821
- package/dist/schemas/project-schema/v3.38.0.json +0 -2819
- package/dist/schemas/project-schema/v3.39.0.json +0 -2827
- package/dist/schemas/project-schema/v3.4.0.json +0 -571
- package/dist/schemas/project-schema/v3.40.0.json +0 -2830
- package/dist/schemas/project-schema/v3.41.0.json +0 -2830
- package/dist/schemas/project-schema/v3.42.0.json +0 -2835
- package/dist/schemas/project-schema/v3.43.0.json +0 -2841
- package/dist/schemas/project-schema/v3.44.0.json +0 -3013
- package/dist/schemas/project-schema/v3.45.0.json +0 -3064
- package/dist/schemas/project-schema/v3.46.0.json +0 -3136
- package/dist/schemas/project-schema/v3.47.0.json +0 -3189
- package/dist/schemas/project-schema/v3.48.0.json +0 -3196
- package/dist/schemas/project-schema/v3.49.0.json +0 -3239
- package/dist/schemas/project-schema/v3.5.0.json +0 -571
- package/dist/schemas/project-schema/v3.5.1.json +0 -571
- package/dist/schemas/project-schema/v3.50.0.json +0 -3320
- package/dist/schemas/project-schema/v3.51.0.json +0 -3326
- package/dist/schemas/project-schema/v3.52.0.json +0 -3326
- package/dist/schemas/project-schema/v3.53.0.json +0 -3476
- package/dist/schemas/project-schema/v3.54.0.json +0 -3512
- package/dist/schemas/project-schema/v3.55.0.json +0 -3515
- package/dist/schemas/project-schema/v3.56.0.json +0 -3530
- package/dist/schemas/project-schema/v3.57.0.json +0 -4815
- package/dist/schemas/project-schema/v3.58.0.json +0 -4815
- package/dist/schemas/project-schema/v3.59.0.json +0 -4846
- package/dist/schemas/project-schema/v3.6.0.json +0 -587
- package/dist/schemas/project-schema/v3.7.0.json +0 -587
- package/dist/schemas/project-schema/v3.8.0.json +0 -604
- package/dist/schemas/project-schema/v3.9.0.json +0 -604
- package/dist/schemas/project-schema/v4.0.0.json +0 -2316
- package/dist/schemas/project-schema.json +0 -214
- package/dist/service-dependencies.d.ts +0 -13
- package/dist/service-dependencies.js +0 -165
- package/dist/services/services.d.ts +0 -31
- package/dist/services/services.js +0 -145
- package/dist/services/types.d.ts +0 -11
- package/dist/services/types.js +0 -1
- package/dist/services/util.d.ts +0 -16
- package/dist/services/util.js +0 -36
- package/dist/shape-paths.d.ts +0 -7
- package/dist/shape-paths.js +0 -28
- package/dist/taxonomies.d.ts +0 -15
- package/dist/taxonomies.js +0 -24
- package/dist/template-shapes/index.d.ts +0 -7
- package/dist/template-shapes/index.js +0 -33
- package/dist/template-shapes/names.d.ts +0 -10
- package/dist/template-shapes/names.js +0 -21
- package/dist/template-shapes/templates.d.ts +0 -32
- package/dist/template-shapes/templates.js +0 -316
- package/dist/template-shapes/types.d.ts +0 -15
- package/dist/template-shapes/types.js +0 -7
- package/dist/template-shapes/where.d.ts +0 -37
- package/dist/template-shapes/where.js +0 -400
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.js +0 -2
- package/dist/types/transforms.d.ts +0 -15
- package/dist/types/transforms.js +0 -1
- package/dist/types/types.d.ts +0 -200
- package/dist/types/types.js +0 -10
- package/dist/types/utils.d.ts +0 -112
- package/dist/types/utils.js +0 -269
- package/dist/unions.d.ts +0 -14
- package/dist/unions.js +0 -77
- package/dist/util/ai-tools.d.ts +0 -2
- package/dist/util/ai-tools.js +0 -14
- package/dist/util/api-indexing.d.ts +0 -9
- package/dist/util/api-indexing.js +0 -57
- package/dist/util/coerce-value.d.ts +0 -9
- package/dist/util/coerce-value.js +0 -32
- package/dist/util/detect-cycles.d.ts +0 -7
- package/dist/util/detect-cycles.js +0 -45
- package/dist/util/expressions.d.ts +0 -34
- package/dist/util/expressions.js +0 -350
- package/dist/util/find-shape-at-path.d.ts +0 -21
- package/dist/util/find-shape-at-path.js +0 -53
- package/dist/util/form-config.d.ts +0 -11
- package/dist/util/form-config.js +0 -62
- package/dist/util/get-conflicting-properties.d.ts +0 -6
- package/dist/util/get-conflicting-properties.js +0 -55
- package/dist/util/get-return-shape.d.ts +0 -4
- package/dist/util/get-return-shape.js +0 -30
- package/dist/util/has-arg.d.ts +0 -6
- package/dist/util/has-arg.js +0 -25
- package/dist/util/is-asset-property.d.ts +0 -3
- package/dist/util/is-asset-property.js +0 -11
- package/dist/util/mcp.d.ts +0 -8
- package/dist/util/mcp.js +0 -21
- package/dist/util/merge.d.ts +0 -15
- package/dist/util/merge.js +0 -254
- package/dist/util/patch-schema.d.ts +0 -8
- package/dist/util/patch-schema.js +0 -51
- package/dist/util/query-field-path.d.ts +0 -9
- package/dist/util/query-field-path.js +0 -23
- package/dist/util/shapes.d.ts +0 -5
- package/dist/util/shapes.js +0 -22
- package/dist/validate/ai.d.ts +0 -6
- package/dist/validate/ai.js +0 -183
- package/dist/validate/errors.d.ts +0 -3
- package/dist/validate/errors.js +0 -20
- package/dist/validate/types.d.ts +0 -1
- package/dist/validate/types.js +0 -1
- package/dist/validate/util.d.ts +0 -3
- package/dist/validate/util.js +0 -28
- package/dist/validate/validate.d.ts +0 -80
- package/dist/validate/validate.js +0 -1058
- package/dist/versions.d.ts +0 -4
- package/dist/versions.js +0 -4
- package/dist/workflows.d.ts +0 -14
- package/dist/workflows.js +0 -66
|
@@ -1,805 +0,0 @@
|
|
|
1
|
-
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
|
-
import type { PropertySchema } from '../../project-schema/latest.ts';
|
|
3
|
-
import type { CreateShapeSchemaParams } from './types.ts';
|
|
4
|
-
export declare const schema: {
|
|
5
|
-
readonly type: "object";
|
|
6
|
-
readonly properties: {
|
|
7
|
-
readonly session: {
|
|
8
|
-
readonly properties: {
|
|
9
|
-
readonly id: {
|
|
10
|
-
readonly type: "string";
|
|
11
|
-
readonly description: "The unique identifier for the agent session.";
|
|
12
|
-
};
|
|
13
|
-
readonly createdAt: {
|
|
14
|
-
readonly type: "string";
|
|
15
|
-
readonly description: "ISO8601 timestamp when the agent session was created";
|
|
16
|
-
readonly format: "date-time";
|
|
17
|
-
};
|
|
18
|
-
readonly updatedAt: {
|
|
19
|
-
readonly type: "string";
|
|
20
|
-
readonly description: "ISO8601 timestamp when the agent session was updated";
|
|
21
|
-
readonly format: "date-time";
|
|
22
|
-
};
|
|
23
|
-
readonly agentName: {
|
|
24
|
-
readonly type: "string";
|
|
25
|
-
readonly description: "The name of the agent associated with this session.";
|
|
26
|
-
};
|
|
27
|
-
readonly projectId: {
|
|
28
|
-
readonly type: "string";
|
|
29
|
-
readonly description: "The ID of the project to which this agent session belongs.";
|
|
30
|
-
};
|
|
31
|
-
readonly schemaId: {
|
|
32
|
-
readonly type: "string";
|
|
33
|
-
readonly description: "The schema ID associated with the agent session, typically in the format \"production~projectId\".";
|
|
34
|
-
};
|
|
35
|
-
readonly schemaHash: {
|
|
36
|
-
readonly type: "string";
|
|
37
|
-
readonly description: "The hash of the schema version associated with the agent session.";
|
|
38
|
-
};
|
|
39
|
-
readonly done: {
|
|
40
|
-
readonly type: "boolean";
|
|
41
|
-
readonly description: "Indicates whether the agent session is completed.";
|
|
42
|
-
};
|
|
43
|
-
readonly suspended: {
|
|
44
|
-
readonly type: "boolean";
|
|
45
|
-
readonly description: "Indicates whether the agent session is suspended.";
|
|
46
|
-
};
|
|
47
|
-
readonly previousStateId: {
|
|
48
|
-
readonly type: "string";
|
|
49
|
-
readonly description: "The ID of the previous state in the agent session, if any.";
|
|
50
|
-
};
|
|
51
|
-
readonly currentStateId: {
|
|
52
|
-
readonly type: "string";
|
|
53
|
-
readonly description: "The ID of the current state in the agent session.";
|
|
54
|
-
};
|
|
55
|
-
readonly chatSessionIds: {
|
|
56
|
-
readonly type: "object";
|
|
57
|
-
readonly description: "A mapping of chat session IDs to their corresponding state IDs.";
|
|
58
|
-
};
|
|
59
|
-
readonly sessionMemory: {
|
|
60
|
-
readonly type: "object";
|
|
61
|
-
readonly description: "Memory associated with the agent session, which can be used to store stateful information.";
|
|
62
|
-
};
|
|
63
|
-
readonly hasAgentHistory: {
|
|
64
|
-
readonly type: "boolean";
|
|
65
|
-
readonly description: "Indicates whether the agent session has an associated history of agent responses.";
|
|
66
|
-
};
|
|
67
|
-
readonly hasFeedback: {
|
|
68
|
-
readonly type: "boolean";
|
|
69
|
-
readonly description: "Indicates whether the agent session has any messages with feedback.";
|
|
70
|
-
};
|
|
71
|
-
readonly suspend: {
|
|
72
|
-
readonly type: "boolean";
|
|
73
|
-
readonly description: "Indicates whether the agent session is suspended.";
|
|
74
|
-
};
|
|
75
|
-
readonly suspendedTransitionIndices: {
|
|
76
|
-
readonly type: "array";
|
|
77
|
-
readonly description: "An array of indices of suspended transitions in the agent session.";
|
|
78
|
-
readonly items: {
|
|
79
|
-
readonly type: "integer";
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
readonly firstMessageInput: {
|
|
83
|
-
readonly title: "TSAgentMessageInput";
|
|
84
|
-
readonly description: "The input schema for agent messages.";
|
|
85
|
-
readonly discriminator: {
|
|
86
|
-
readonly propertyName: "type";
|
|
87
|
-
};
|
|
88
|
-
readonly oneOf: [{
|
|
89
|
-
readonly title: "TSAgentMessageUnknownInput";
|
|
90
|
-
readonly type: "object";
|
|
91
|
-
readonly properties: {
|
|
92
|
-
readonly type: {
|
|
93
|
-
readonly const: "unknown";
|
|
94
|
-
};
|
|
95
|
-
readonly data: {};
|
|
96
|
-
};
|
|
97
|
-
readonly required: ["type", "data"];
|
|
98
|
-
readonly additionalProperties: false;
|
|
99
|
-
}, {
|
|
100
|
-
readonly title: "TSAgentMessageStringInput";
|
|
101
|
-
readonly type: "object";
|
|
102
|
-
readonly properties: {
|
|
103
|
-
readonly type: {
|
|
104
|
-
readonly const: "string";
|
|
105
|
-
};
|
|
106
|
-
readonly content: {
|
|
107
|
-
readonly type: "string";
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
readonly required: ["type", "content"];
|
|
111
|
-
readonly additionalProperties: false;
|
|
112
|
-
}];
|
|
113
|
-
};
|
|
114
|
-
readonly lastMessageOutput: {
|
|
115
|
-
readonly title: "TSAgentMessageOutput";
|
|
116
|
-
readonly description: "The output schema for agent messages.";
|
|
117
|
-
readonly discriminator: {
|
|
118
|
-
readonly propertyName: "type";
|
|
119
|
-
};
|
|
120
|
-
readonly oneOf: [{
|
|
121
|
-
readonly title: "TSAgentGenerateStateOutput";
|
|
122
|
-
readonly type: "object";
|
|
123
|
-
readonly properties: {
|
|
124
|
-
readonly type: {
|
|
125
|
-
readonly const: "generate";
|
|
126
|
-
};
|
|
127
|
-
readonly data: {};
|
|
128
|
-
};
|
|
129
|
-
readonly required: ["type", "data"];
|
|
130
|
-
readonly additionalProperties: false;
|
|
131
|
-
}, {
|
|
132
|
-
readonly title: "TSAgentGraphQLStateOutput";
|
|
133
|
-
readonly type: "object";
|
|
134
|
-
readonly properties: {
|
|
135
|
-
readonly type: {
|
|
136
|
-
readonly const: "graphql";
|
|
137
|
-
};
|
|
138
|
-
readonly data: {};
|
|
139
|
-
};
|
|
140
|
-
readonly required: ["type", "data"];
|
|
141
|
-
readonly additionalProperties: false;
|
|
142
|
-
}, {
|
|
143
|
-
readonly title: "TSAgentChatStateOutput";
|
|
144
|
-
readonly type: "object";
|
|
145
|
-
readonly properties: {
|
|
146
|
-
readonly type: {
|
|
147
|
-
readonly const: "chat";
|
|
148
|
-
};
|
|
149
|
-
readonly data: {
|
|
150
|
-
readonly type: "object";
|
|
151
|
-
readonly properties: {
|
|
152
|
-
readonly content: {
|
|
153
|
-
readonly type: "string";
|
|
154
|
-
};
|
|
155
|
-
readonly artifact: {
|
|
156
|
-
readonly type: "object";
|
|
157
|
-
};
|
|
158
|
-
readonly references: {
|
|
159
|
-
readonly type: "array";
|
|
160
|
-
readonly items: {
|
|
161
|
-
readonly type: "object";
|
|
162
|
-
readonly properties: {
|
|
163
|
-
readonly _tid: {
|
|
164
|
-
readonly type: "string";
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
readonly required: ["_tid"];
|
|
168
|
-
readonly additionalProperties: false;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
readonly required: ["content", "references"];
|
|
173
|
-
readonly additionalProperties: false;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
readonly required: ["type", "data"];
|
|
177
|
-
readonly additionalProperties: false;
|
|
178
|
-
}, {
|
|
179
|
-
readonly title: "TSAgentUnknownStateOutput";
|
|
180
|
-
readonly type: "object";
|
|
181
|
-
readonly properties: {
|
|
182
|
-
readonly type: {
|
|
183
|
-
readonly const: "unknown";
|
|
184
|
-
};
|
|
185
|
-
readonly data: {};
|
|
186
|
-
};
|
|
187
|
-
readonly required: ["type", "data"];
|
|
188
|
-
readonly additionalProperties: false;
|
|
189
|
-
}];
|
|
190
|
-
};
|
|
191
|
-
readonly totalTokens: {
|
|
192
|
-
readonly type: "number";
|
|
193
|
-
readonly description: "The total number of tokens used in the agent session.";
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "hasAgentHistory", "hasFeedback", "suspend", "projectId", "schemaId", "schemaHash", "totalTokens"];
|
|
197
|
-
readonly additionalProperties: false;
|
|
198
|
-
readonly title: "TSAgentSession";
|
|
199
|
-
readonly type: "object";
|
|
200
|
-
};
|
|
201
|
-
readonly aborted: {
|
|
202
|
-
readonly type: "boolean";
|
|
203
|
-
readonly description: "Indicates if the deferred message was aborted";
|
|
204
|
-
};
|
|
205
|
-
readonly duration: {
|
|
206
|
-
readonly type: "number";
|
|
207
|
-
readonly description: "Duration of the deferred message processing in milliseconds";
|
|
208
|
-
};
|
|
209
|
-
readonly status: {
|
|
210
|
-
readonly enum: ["PENDING", "RUNNING", "DONE"];
|
|
211
|
-
readonly description: "The processing status of the agent message";
|
|
212
|
-
};
|
|
213
|
-
readonly messageId: {
|
|
214
|
-
readonly type: "string";
|
|
215
|
-
readonly description: "ID of the message that was deferred";
|
|
216
|
-
};
|
|
217
|
-
readonly agentName: {
|
|
218
|
-
readonly type: "string";
|
|
219
|
-
readonly description: "Name of the agent this message was created by";
|
|
220
|
-
};
|
|
221
|
-
readonly args: {
|
|
222
|
-
readonly type: "object";
|
|
223
|
-
};
|
|
224
|
-
readonly input: {
|
|
225
|
-
readonly title: "TSAgentMessageInput";
|
|
226
|
-
readonly description: "The input schema for agent messages.";
|
|
227
|
-
readonly discriminator: {
|
|
228
|
-
readonly propertyName: "type";
|
|
229
|
-
};
|
|
230
|
-
readonly oneOf: [{
|
|
231
|
-
readonly title: "TSAgentMessageUnknownInput";
|
|
232
|
-
readonly type: "object";
|
|
233
|
-
readonly properties: {
|
|
234
|
-
readonly type: {
|
|
235
|
-
readonly const: "unknown";
|
|
236
|
-
};
|
|
237
|
-
readonly data: {};
|
|
238
|
-
};
|
|
239
|
-
readonly required: ["type", "data"];
|
|
240
|
-
readonly additionalProperties: false;
|
|
241
|
-
}, {
|
|
242
|
-
readonly title: "TSAgentMessageStringInput";
|
|
243
|
-
readonly type: "object";
|
|
244
|
-
readonly properties: {
|
|
245
|
-
readonly type: {
|
|
246
|
-
readonly const: "string";
|
|
247
|
-
};
|
|
248
|
-
readonly content: {
|
|
249
|
-
readonly type: "string";
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
readonly required: ["type", "content"];
|
|
253
|
-
readonly additionalProperties: false;
|
|
254
|
-
}];
|
|
255
|
-
};
|
|
256
|
-
readonly output: {
|
|
257
|
-
readonly title: "TSAgentMessageOutput";
|
|
258
|
-
readonly description: "The output schema for agent messages.";
|
|
259
|
-
readonly discriminator: {
|
|
260
|
-
readonly propertyName: "type";
|
|
261
|
-
};
|
|
262
|
-
readonly oneOf: [{
|
|
263
|
-
readonly title: "TSAgentGenerateStateOutput";
|
|
264
|
-
readonly type: "object";
|
|
265
|
-
readonly properties: {
|
|
266
|
-
readonly type: {
|
|
267
|
-
readonly const: "generate";
|
|
268
|
-
};
|
|
269
|
-
readonly data: {};
|
|
270
|
-
};
|
|
271
|
-
readonly required: ["type", "data"];
|
|
272
|
-
readonly additionalProperties: false;
|
|
273
|
-
}, {
|
|
274
|
-
readonly title: "TSAgentGraphQLStateOutput";
|
|
275
|
-
readonly type: "object";
|
|
276
|
-
readonly properties: {
|
|
277
|
-
readonly type: {
|
|
278
|
-
readonly const: "graphql";
|
|
279
|
-
};
|
|
280
|
-
readonly data: {};
|
|
281
|
-
};
|
|
282
|
-
readonly required: ["type", "data"];
|
|
283
|
-
readonly additionalProperties: false;
|
|
284
|
-
}, {
|
|
285
|
-
readonly title: "TSAgentChatStateOutput";
|
|
286
|
-
readonly type: "object";
|
|
287
|
-
readonly properties: {
|
|
288
|
-
readonly type: {
|
|
289
|
-
readonly const: "chat";
|
|
290
|
-
};
|
|
291
|
-
readonly data: {
|
|
292
|
-
readonly type: "object";
|
|
293
|
-
readonly properties: {
|
|
294
|
-
readonly content: {
|
|
295
|
-
readonly type: "string";
|
|
296
|
-
};
|
|
297
|
-
readonly artifact: {
|
|
298
|
-
readonly type: "object";
|
|
299
|
-
};
|
|
300
|
-
readonly references: {
|
|
301
|
-
readonly type: "array";
|
|
302
|
-
readonly items: {
|
|
303
|
-
readonly type: "object";
|
|
304
|
-
readonly properties: {
|
|
305
|
-
readonly _tid: {
|
|
306
|
-
readonly type: "string";
|
|
307
|
-
};
|
|
308
|
-
};
|
|
309
|
-
readonly required: ["_tid"];
|
|
310
|
-
readonly additionalProperties: false;
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
|
-
readonly required: ["content", "references"];
|
|
315
|
-
readonly additionalProperties: false;
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
|
-
readonly required: ["type", "data"];
|
|
319
|
-
readonly additionalProperties: false;
|
|
320
|
-
}, {
|
|
321
|
-
readonly title: "TSAgentUnknownStateOutput";
|
|
322
|
-
readonly type: "object";
|
|
323
|
-
readonly properties: {
|
|
324
|
-
readonly type: {
|
|
325
|
-
readonly const: "unknown";
|
|
326
|
-
};
|
|
327
|
-
readonly data: {};
|
|
328
|
-
};
|
|
329
|
-
readonly required: ["type", "data"];
|
|
330
|
-
readonly additionalProperties: false;
|
|
331
|
-
}];
|
|
332
|
-
};
|
|
333
|
-
readonly error: {
|
|
334
|
-
readonly type: "object";
|
|
335
|
-
readonly properties: {
|
|
336
|
-
readonly message: {
|
|
337
|
-
readonly type: "string";
|
|
338
|
-
};
|
|
339
|
-
readonly name: {
|
|
340
|
-
readonly type: "string";
|
|
341
|
-
};
|
|
342
|
-
readonly code: {
|
|
343
|
-
readonly type: "string";
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
readonly additionalProperties: false;
|
|
347
|
-
};
|
|
348
|
-
readonly runMode: {
|
|
349
|
-
readonly enum: ["BACKGROUND", "IMMEDIATE"];
|
|
350
|
-
readonly description: "Indicates how the agent message was run";
|
|
351
|
-
};
|
|
352
|
-
readonly abortedAt: {
|
|
353
|
-
readonly type: "number";
|
|
354
|
-
readonly description: "Timestamp when the message was aborted";
|
|
355
|
-
};
|
|
356
|
-
readonly sentAt: {
|
|
357
|
-
readonly type: "number";
|
|
358
|
-
readonly description: "Timestamp when the message was sent";
|
|
359
|
-
};
|
|
360
|
-
readonly startedAt: {
|
|
361
|
-
readonly type: "number";
|
|
362
|
-
readonly description: "Timestamp when the message started processing";
|
|
363
|
-
};
|
|
364
|
-
readonly finishedAt: {
|
|
365
|
-
readonly type: "number";
|
|
366
|
-
readonly description: "Timestamp when the message finished processing";
|
|
367
|
-
};
|
|
368
|
-
readonly span: {
|
|
369
|
-
readonly type: "object";
|
|
370
|
-
readonly description: "The span for the agent run associated with this message";
|
|
371
|
-
readonly properties: {
|
|
372
|
-
readonly traceId: {
|
|
373
|
-
readonly type: "string";
|
|
374
|
-
};
|
|
375
|
-
readonly spanId: {
|
|
376
|
-
readonly type: "string";
|
|
377
|
-
};
|
|
378
|
-
readonly name: {
|
|
379
|
-
readonly type: "string";
|
|
380
|
-
};
|
|
381
|
-
readonly createdAt: {
|
|
382
|
-
readonly type: "number";
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
readonly required: ["traceId", "spanId", "name", "createdAt"];
|
|
386
|
-
readonly additionalProperties: false;
|
|
387
|
-
};
|
|
388
|
-
readonly feedback: {
|
|
389
|
-
readonly type: "object";
|
|
390
|
-
readonly properties: {
|
|
391
|
-
readonly name: {
|
|
392
|
-
readonly type: "string";
|
|
393
|
-
readonly description: "Name of the feedback, e.g., \"Quality\", \"Relevance\"";
|
|
394
|
-
};
|
|
395
|
-
readonly label: {
|
|
396
|
-
readonly type: "string";
|
|
397
|
-
readonly description: "String feedback for the agent message, e.g., \"helpful\", \"not helpful\". If a label is provided, a score must not be provided.";
|
|
398
|
-
};
|
|
399
|
-
readonly score: {
|
|
400
|
-
readonly type: "number";
|
|
401
|
-
readonly description: "Numeric feedback for the agent message, typically between 1 and 5. If a score is provided, a label must not be provided.";
|
|
402
|
-
};
|
|
403
|
-
readonly text: {
|
|
404
|
-
readonly type: "string";
|
|
405
|
-
readonly description: "Freeform text feedback for the agent message.";
|
|
406
|
-
};
|
|
407
|
-
readonly note: {
|
|
408
|
-
readonly type: "string";
|
|
409
|
-
readonly description: "Optional note for the feedback, e.g., \"This was helpful because...\"";
|
|
410
|
-
};
|
|
411
|
-
readonly updatedBy: {
|
|
412
|
-
readonly type: "string";
|
|
413
|
-
readonly description: "A string identifying the user who is adding the annotation, such as a name or email address.";
|
|
414
|
-
};
|
|
415
|
-
readonly createdAt: {
|
|
416
|
-
readonly type: "number";
|
|
417
|
-
readonly description: "Timestamp when the feedback was created";
|
|
418
|
-
};
|
|
419
|
-
};
|
|
420
|
-
readonly additionalProperties: false;
|
|
421
|
-
readonly required: ["name"];
|
|
422
|
-
};
|
|
423
|
-
readonly blocked: {
|
|
424
|
-
readonly type: "boolean";
|
|
425
|
-
readonly description: "If this message was blocked by a guardrail";
|
|
426
|
-
};
|
|
427
|
-
readonly usage: {
|
|
428
|
-
readonly type: "object";
|
|
429
|
-
readonly description: "LLM token usage for this message";
|
|
430
|
-
readonly properties: {
|
|
431
|
-
readonly completionTokens: {
|
|
432
|
-
readonly type: "number";
|
|
433
|
-
};
|
|
434
|
-
readonly promptTokens: {
|
|
435
|
-
readonly type: "number";
|
|
436
|
-
};
|
|
437
|
-
readonly totalTokens: {
|
|
438
|
-
readonly type: "number";
|
|
439
|
-
};
|
|
440
|
-
readonly guardrailUnits: {
|
|
441
|
-
readonly type: "number";
|
|
442
|
-
};
|
|
443
|
-
};
|
|
444
|
-
readonly additionalProperties: false;
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
readonly required: ["messageId", "status"];
|
|
448
|
-
readonly additionalProperties: true;
|
|
449
|
-
};
|
|
450
|
-
export type GetAgentMessageResponse = FromSchema<typeof schema>;
|
|
451
|
-
export declare const shapeSchema: {
|
|
452
|
-
readonly properties: {
|
|
453
|
-
readonly session: {
|
|
454
|
-
readonly properties: {
|
|
455
|
-
readonly id: {
|
|
456
|
-
readonly type: "string";
|
|
457
|
-
readonly description: "The unique identifier for the agent session.";
|
|
458
|
-
};
|
|
459
|
-
readonly createdAt: {
|
|
460
|
-
readonly type: "string";
|
|
461
|
-
readonly description: "ISO8601 timestamp when the agent session was created";
|
|
462
|
-
readonly format: "date-time";
|
|
463
|
-
};
|
|
464
|
-
readonly updatedAt: {
|
|
465
|
-
readonly type: "string";
|
|
466
|
-
readonly description: "ISO8601 timestamp when the agent session was updated";
|
|
467
|
-
readonly format: "date-time";
|
|
468
|
-
};
|
|
469
|
-
readonly agentName: {
|
|
470
|
-
readonly type: "string";
|
|
471
|
-
readonly description: "The name of the agent associated with this session.";
|
|
472
|
-
};
|
|
473
|
-
readonly done: {
|
|
474
|
-
readonly type: "boolean";
|
|
475
|
-
readonly description: "Indicates whether the agent session is completed.";
|
|
476
|
-
};
|
|
477
|
-
readonly suspended: {
|
|
478
|
-
readonly type: "boolean";
|
|
479
|
-
readonly description: "Indicates whether the agent session is suspended.";
|
|
480
|
-
};
|
|
481
|
-
readonly currentStateId: {
|
|
482
|
-
readonly type: "string";
|
|
483
|
-
readonly description: "The ID of the current state in the agent session.";
|
|
484
|
-
};
|
|
485
|
-
readonly sessionMemory: {
|
|
486
|
-
readonly type: "object";
|
|
487
|
-
readonly description: "Memory associated with the agent session, which can be used to store stateful information.";
|
|
488
|
-
};
|
|
489
|
-
readonly hasAgentHistory: {
|
|
490
|
-
readonly type: "boolean";
|
|
491
|
-
readonly description: "Indicates whether the agent session has an associated history of agent responses.";
|
|
492
|
-
};
|
|
493
|
-
readonly hasFeedback: {
|
|
494
|
-
readonly type: "boolean";
|
|
495
|
-
readonly description: "Indicates whether the agent session has any messages with feedback.";
|
|
496
|
-
};
|
|
497
|
-
readonly suspend: {
|
|
498
|
-
readonly type: "boolean";
|
|
499
|
-
readonly description: "Indicates whether the agent session is suspended.";
|
|
500
|
-
};
|
|
501
|
-
readonly totalTokens: {
|
|
502
|
-
readonly type: "number";
|
|
503
|
-
readonly description: "The total number of tokens used in the agent session.";
|
|
504
|
-
};
|
|
505
|
-
};
|
|
506
|
-
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "sessionMemory", "hasAgentHistory", "hasFeedback", "suspend", "currentStateId", "totalTokens"];
|
|
507
|
-
readonly additionalProperties: false;
|
|
508
|
-
readonly title: "TSAgentSession";
|
|
509
|
-
readonly type: "object";
|
|
510
|
-
};
|
|
511
|
-
readonly aborted: {
|
|
512
|
-
readonly type: "boolean";
|
|
513
|
-
readonly description: "Indicates if the deferred message was aborted";
|
|
514
|
-
};
|
|
515
|
-
readonly duration: {
|
|
516
|
-
readonly type: "number";
|
|
517
|
-
readonly description: "Duration of the deferred message processing in milliseconds";
|
|
518
|
-
};
|
|
519
|
-
readonly status: {
|
|
520
|
-
readonly enum: ["PENDING", "RUNNING", "DONE"];
|
|
521
|
-
readonly description: "The processing status of the agent message";
|
|
522
|
-
};
|
|
523
|
-
readonly input: {};
|
|
524
|
-
readonly output: {};
|
|
525
|
-
readonly messageId: {
|
|
526
|
-
readonly type: "string";
|
|
527
|
-
readonly description: "ID of the message that was deferred";
|
|
528
|
-
};
|
|
529
|
-
readonly agentName: {
|
|
530
|
-
readonly type: "string";
|
|
531
|
-
readonly description: "Name of the agent this message was created by";
|
|
532
|
-
};
|
|
533
|
-
readonly args: {
|
|
534
|
-
readonly type: "object";
|
|
535
|
-
};
|
|
536
|
-
readonly error: {
|
|
537
|
-
readonly type: "object";
|
|
538
|
-
readonly properties: {
|
|
539
|
-
readonly message: {
|
|
540
|
-
readonly type: "string";
|
|
541
|
-
};
|
|
542
|
-
readonly name: {
|
|
543
|
-
readonly type: "string";
|
|
544
|
-
};
|
|
545
|
-
readonly code: {
|
|
546
|
-
readonly type: "string";
|
|
547
|
-
};
|
|
548
|
-
};
|
|
549
|
-
readonly additionalProperties: false;
|
|
550
|
-
};
|
|
551
|
-
readonly runMode: {
|
|
552
|
-
readonly enum: ["BACKGROUND", "IMMEDIATE"];
|
|
553
|
-
readonly description: "Indicates how the agent message was run";
|
|
554
|
-
};
|
|
555
|
-
readonly abortedAt: {
|
|
556
|
-
readonly type: "number";
|
|
557
|
-
readonly description: "Timestamp when the message was aborted";
|
|
558
|
-
};
|
|
559
|
-
readonly sentAt: {
|
|
560
|
-
readonly type: "number";
|
|
561
|
-
readonly description: "Timestamp when the message was sent";
|
|
562
|
-
};
|
|
563
|
-
readonly startedAt: {
|
|
564
|
-
readonly type: "number";
|
|
565
|
-
readonly description: "Timestamp when the message started processing";
|
|
566
|
-
};
|
|
567
|
-
readonly finishedAt: {
|
|
568
|
-
readonly type: "number";
|
|
569
|
-
readonly description: "Timestamp when the message finished processing";
|
|
570
|
-
};
|
|
571
|
-
readonly span: {
|
|
572
|
-
readonly type: "object";
|
|
573
|
-
readonly description: "The span for the agent run associated with this message";
|
|
574
|
-
readonly properties: {
|
|
575
|
-
readonly traceId: {
|
|
576
|
-
readonly type: "string";
|
|
577
|
-
};
|
|
578
|
-
readonly spanId: {
|
|
579
|
-
readonly type: "string";
|
|
580
|
-
};
|
|
581
|
-
readonly name: {
|
|
582
|
-
readonly type: "string";
|
|
583
|
-
};
|
|
584
|
-
readonly createdAt: {
|
|
585
|
-
readonly type: "number";
|
|
586
|
-
};
|
|
587
|
-
};
|
|
588
|
-
readonly required: ["traceId", "spanId", "name", "createdAt"];
|
|
589
|
-
readonly additionalProperties: false;
|
|
590
|
-
};
|
|
591
|
-
readonly feedback: {
|
|
592
|
-
readonly type: "object";
|
|
593
|
-
readonly properties: {
|
|
594
|
-
readonly name: {
|
|
595
|
-
readonly type: "string";
|
|
596
|
-
readonly description: "Name of the feedback, e.g., \"Quality\", \"Relevance\"";
|
|
597
|
-
};
|
|
598
|
-
readonly label: {
|
|
599
|
-
readonly type: "string";
|
|
600
|
-
readonly description: "String feedback for the agent message, e.g., \"helpful\", \"not helpful\". If a label is provided, a score must not be provided.";
|
|
601
|
-
};
|
|
602
|
-
readonly score: {
|
|
603
|
-
readonly type: "number";
|
|
604
|
-
readonly description: "Numeric feedback for the agent message, typically between 1 and 5. If a score is provided, a label must not be provided.";
|
|
605
|
-
};
|
|
606
|
-
readonly text: {
|
|
607
|
-
readonly type: "string";
|
|
608
|
-
readonly description: "Freeform text feedback for the agent message.";
|
|
609
|
-
};
|
|
610
|
-
readonly note: {
|
|
611
|
-
readonly type: "string";
|
|
612
|
-
readonly description: "Optional note for the feedback, e.g., \"This was helpful because...\"";
|
|
613
|
-
};
|
|
614
|
-
readonly updatedBy: {
|
|
615
|
-
readonly type: "string";
|
|
616
|
-
readonly description: "A string identifying the user who is adding the annotation, such as a name or email address.";
|
|
617
|
-
};
|
|
618
|
-
readonly createdAt: {
|
|
619
|
-
readonly type: "number";
|
|
620
|
-
readonly description: "Timestamp when the feedback was created";
|
|
621
|
-
};
|
|
622
|
-
};
|
|
623
|
-
readonly additionalProperties: false;
|
|
624
|
-
readonly required: ["name"];
|
|
625
|
-
};
|
|
626
|
-
readonly blocked: {
|
|
627
|
-
readonly type: "boolean";
|
|
628
|
-
readonly description: "If this message was blocked by a guardrail";
|
|
629
|
-
};
|
|
630
|
-
readonly usage: {
|
|
631
|
-
readonly type: "object";
|
|
632
|
-
readonly description: "LLM token usage for this message";
|
|
633
|
-
readonly properties: {
|
|
634
|
-
readonly completionTokens: {
|
|
635
|
-
readonly type: "number";
|
|
636
|
-
};
|
|
637
|
-
readonly promptTokens: {
|
|
638
|
-
readonly type: "number";
|
|
639
|
-
};
|
|
640
|
-
readonly totalTokens: {
|
|
641
|
-
readonly type: "number";
|
|
642
|
-
};
|
|
643
|
-
readonly guardrailUnits: {
|
|
644
|
-
readonly type: "number";
|
|
645
|
-
};
|
|
646
|
-
};
|
|
647
|
-
readonly additionalProperties: false;
|
|
648
|
-
};
|
|
649
|
-
};
|
|
650
|
-
readonly additionalProperties: false;
|
|
651
|
-
readonly type: "object";
|
|
652
|
-
readonly required: ["messageId", "status"];
|
|
653
|
-
};
|
|
654
|
-
export type GetAgentMessageUserResponse = FromSchema<typeof shapeSchema>;
|
|
655
|
-
export declare function createUserShapeSchema(params?: CreateShapeSchemaParams): {
|
|
656
|
-
properties: {
|
|
657
|
-
session: {
|
|
658
|
-
'@ref': string;
|
|
659
|
-
};
|
|
660
|
-
input: {
|
|
661
|
-
'@ref': string;
|
|
662
|
-
};
|
|
663
|
-
output: PropertySchema | import("../../project-schema/latest.ts").RefSchema;
|
|
664
|
-
aborted: {
|
|
665
|
-
readonly type: "boolean";
|
|
666
|
-
readonly description: "Indicates if the deferred message was aborted";
|
|
667
|
-
};
|
|
668
|
-
duration: {
|
|
669
|
-
readonly type: "number";
|
|
670
|
-
readonly description: "Duration of the deferred message processing in milliseconds";
|
|
671
|
-
};
|
|
672
|
-
status: {
|
|
673
|
-
readonly enum: ["PENDING", "RUNNING", "DONE"];
|
|
674
|
-
readonly description: "The processing status of the agent message";
|
|
675
|
-
};
|
|
676
|
-
messageId: {
|
|
677
|
-
readonly type: "string";
|
|
678
|
-
readonly description: "ID of the message that was deferred";
|
|
679
|
-
};
|
|
680
|
-
agentName: {
|
|
681
|
-
readonly type: "string";
|
|
682
|
-
readonly description: "Name of the agent this message was created by";
|
|
683
|
-
};
|
|
684
|
-
args: {
|
|
685
|
-
readonly type: "object";
|
|
686
|
-
};
|
|
687
|
-
error: {
|
|
688
|
-
readonly type: "object";
|
|
689
|
-
readonly properties: {
|
|
690
|
-
readonly message: {
|
|
691
|
-
readonly type: "string";
|
|
692
|
-
};
|
|
693
|
-
readonly name: {
|
|
694
|
-
readonly type: "string";
|
|
695
|
-
};
|
|
696
|
-
readonly code: {
|
|
697
|
-
readonly type: "string";
|
|
698
|
-
};
|
|
699
|
-
};
|
|
700
|
-
readonly additionalProperties: false;
|
|
701
|
-
};
|
|
702
|
-
runMode: {
|
|
703
|
-
readonly enum: ["BACKGROUND", "IMMEDIATE"];
|
|
704
|
-
readonly description: "Indicates how the agent message was run";
|
|
705
|
-
};
|
|
706
|
-
abortedAt: {
|
|
707
|
-
readonly type: "number";
|
|
708
|
-
readonly description: "Timestamp when the message was aborted";
|
|
709
|
-
};
|
|
710
|
-
sentAt: {
|
|
711
|
-
readonly type: "number";
|
|
712
|
-
readonly description: "Timestamp when the message was sent";
|
|
713
|
-
};
|
|
714
|
-
startedAt: {
|
|
715
|
-
readonly type: "number";
|
|
716
|
-
readonly description: "Timestamp when the message started processing";
|
|
717
|
-
};
|
|
718
|
-
finishedAt: {
|
|
719
|
-
readonly type: "number";
|
|
720
|
-
readonly description: "Timestamp when the message finished processing";
|
|
721
|
-
};
|
|
722
|
-
span: {
|
|
723
|
-
readonly type: "object";
|
|
724
|
-
readonly description: "The span for the agent run associated with this message";
|
|
725
|
-
readonly properties: {
|
|
726
|
-
readonly traceId: {
|
|
727
|
-
readonly type: "string";
|
|
728
|
-
};
|
|
729
|
-
readonly spanId: {
|
|
730
|
-
readonly type: "string";
|
|
731
|
-
};
|
|
732
|
-
readonly name: {
|
|
733
|
-
readonly type: "string";
|
|
734
|
-
};
|
|
735
|
-
readonly createdAt: {
|
|
736
|
-
readonly type: "number";
|
|
737
|
-
};
|
|
738
|
-
};
|
|
739
|
-
readonly required: ["traceId", "spanId", "name", "createdAt"];
|
|
740
|
-
readonly additionalProperties: false;
|
|
741
|
-
};
|
|
742
|
-
feedback: {
|
|
743
|
-
readonly type: "object";
|
|
744
|
-
readonly properties: {
|
|
745
|
-
readonly name: {
|
|
746
|
-
readonly type: "string";
|
|
747
|
-
readonly description: "Name of the feedback, e.g., \"Quality\", \"Relevance\"";
|
|
748
|
-
};
|
|
749
|
-
readonly label: {
|
|
750
|
-
readonly type: "string";
|
|
751
|
-
readonly description: "String feedback for the agent message, e.g., \"helpful\", \"not helpful\". If a label is provided, a score must not be provided.";
|
|
752
|
-
};
|
|
753
|
-
readonly score: {
|
|
754
|
-
readonly type: "number";
|
|
755
|
-
readonly description: "Numeric feedback for the agent message, typically between 1 and 5. If a score is provided, a label must not be provided.";
|
|
756
|
-
};
|
|
757
|
-
readonly text: {
|
|
758
|
-
readonly type: "string";
|
|
759
|
-
readonly description: "Freeform text feedback for the agent message.";
|
|
760
|
-
};
|
|
761
|
-
readonly note: {
|
|
762
|
-
readonly type: "string";
|
|
763
|
-
readonly description: "Optional note for the feedback, e.g., \"This was helpful because...\"";
|
|
764
|
-
};
|
|
765
|
-
readonly updatedBy: {
|
|
766
|
-
readonly type: "string";
|
|
767
|
-
readonly description: "A string identifying the user who is adding the annotation, such as a name or email address.";
|
|
768
|
-
};
|
|
769
|
-
readonly createdAt: {
|
|
770
|
-
readonly type: "number";
|
|
771
|
-
readonly description: "Timestamp when the feedback was created";
|
|
772
|
-
};
|
|
773
|
-
};
|
|
774
|
-
readonly additionalProperties: false;
|
|
775
|
-
readonly required: ["name"];
|
|
776
|
-
};
|
|
777
|
-
blocked: {
|
|
778
|
-
readonly type: "boolean";
|
|
779
|
-
readonly description: "If this message was blocked by a guardrail";
|
|
780
|
-
};
|
|
781
|
-
usage: {
|
|
782
|
-
readonly type: "object";
|
|
783
|
-
readonly description: "LLM token usage for this message";
|
|
784
|
-
readonly properties: {
|
|
785
|
-
readonly completionTokens: {
|
|
786
|
-
readonly type: "number";
|
|
787
|
-
};
|
|
788
|
-
readonly promptTokens: {
|
|
789
|
-
readonly type: "number";
|
|
790
|
-
};
|
|
791
|
-
readonly totalTokens: {
|
|
792
|
-
readonly type: "number";
|
|
793
|
-
};
|
|
794
|
-
readonly guardrailUnits: {
|
|
795
|
-
readonly type: "number";
|
|
796
|
-
};
|
|
797
|
-
};
|
|
798
|
-
readonly additionalProperties: false;
|
|
799
|
-
};
|
|
800
|
-
};
|
|
801
|
-
additionalProperties: false;
|
|
802
|
-
type: "object";
|
|
803
|
-
required: ["messageId", "status"];
|
|
804
|
-
};
|
|
805
|
-
export declare function createUserShapeName(agentName: string): string;
|