@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,4846 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://schema.takeshape.io/project-schema/v3.59.0#",
|
|
4
|
-
"title": "Project Schema JSON",
|
|
5
|
-
"definitions": {
|
|
6
|
-
"schemaArray": {
|
|
7
|
-
"title": "Schema Array",
|
|
8
|
-
"type": "array",
|
|
9
|
-
"minItems": 1,
|
|
10
|
-
"items": {
|
|
11
|
-
"$ref": "#/definitions/propertySchema"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"nonNegativeInteger": {
|
|
15
|
-
"title": "Non Negative Integer",
|
|
16
|
-
"type": "integer",
|
|
17
|
-
"minimum": 0
|
|
18
|
-
},
|
|
19
|
-
"nonNegativeIntegerDefault0": {
|
|
20
|
-
"title": "Non Negative Integer Default 0",
|
|
21
|
-
"allOf": [
|
|
22
|
-
{
|
|
23
|
-
"$ref": "#/definitions/nonNegativeInteger"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"default": 0
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"simpleTypes": {
|
|
31
|
-
"title": "Simple Types",
|
|
32
|
-
"enum": ["array", "boolean", "integer", "null", "number", "object", "string"]
|
|
33
|
-
},
|
|
34
|
-
"stringArray": {
|
|
35
|
-
"title": "String Array",
|
|
36
|
-
"type": "array",
|
|
37
|
-
"items": {
|
|
38
|
-
"type": "string"
|
|
39
|
-
},
|
|
40
|
-
"uniqueItems": true,
|
|
41
|
-
"default": []
|
|
42
|
-
},
|
|
43
|
-
"backreference": {
|
|
44
|
-
"title": "Back Reference",
|
|
45
|
-
"description": "A configuration object for a reverse reference in a relationship.",
|
|
46
|
-
"type": "object",
|
|
47
|
-
"properties": {
|
|
48
|
-
"enabled": {
|
|
49
|
-
"type": "boolean"
|
|
50
|
-
},
|
|
51
|
-
"name": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"additionalProperties": false,
|
|
57
|
-
"required": ["enabled"]
|
|
58
|
-
},
|
|
59
|
-
"mappingString": {
|
|
60
|
-
"title": "Mapping String",
|
|
61
|
-
"type": "string",
|
|
62
|
-
"pattern": "^[\\w-]+(?::[\\w-]+)+(?:\\.[\\w%-]+)+$"
|
|
63
|
-
},
|
|
64
|
-
"fieldMapping": {
|
|
65
|
-
"title": "Field Mapping",
|
|
66
|
-
"oneOf": [
|
|
67
|
-
{
|
|
68
|
-
"$ref": "#/definitions/mappingString"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"type": "array",
|
|
72
|
-
"items": {
|
|
73
|
-
"$ref": "#/definitions/mappingString"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
"refSchema": {
|
|
79
|
-
"title": "Ref Schema",
|
|
80
|
-
"type": "object",
|
|
81
|
-
"properties": {
|
|
82
|
-
"@ref": {
|
|
83
|
-
"$ref": "#/definitions/ref"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"required": ["@ref"]
|
|
87
|
-
},
|
|
88
|
-
"refSchemaLegacy": {
|
|
89
|
-
"title": "Ref Schema Legacy",
|
|
90
|
-
"type": "object",
|
|
91
|
-
"properties": {
|
|
92
|
-
"$ref": {
|
|
93
|
-
"$ref": "#/definitions/ref"
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"required": ["$ref"]
|
|
97
|
-
},
|
|
98
|
-
"shapeSchemaEnum": {
|
|
99
|
-
"title": "Shape Schema Enum",
|
|
100
|
-
"type": "object",
|
|
101
|
-
"properties": {
|
|
102
|
-
"enum": {
|
|
103
|
-
"type": "array",
|
|
104
|
-
"minItems": 1,
|
|
105
|
-
"uniqueItems": true
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"additionalProperties": false,
|
|
109
|
-
"required": ["enum"]
|
|
110
|
-
},
|
|
111
|
-
"objectSchema": {
|
|
112
|
-
"title": "Object Schema",
|
|
113
|
-
"type": "object",
|
|
114
|
-
"allOf": [
|
|
115
|
-
{
|
|
116
|
-
"$ref": "#/definitions/propertySchema"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"properties": {
|
|
120
|
-
"type": {
|
|
121
|
-
"type": "string",
|
|
122
|
-
"const": "object"
|
|
123
|
-
},
|
|
124
|
-
"properties": {
|
|
125
|
-
"type": "object",
|
|
126
|
-
"additionalProperties": {
|
|
127
|
-
"$ref": "#/definitions/propertySchema"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
"required": ["type", "properties"]
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
},
|
|
135
|
-
"returnShapeArraySchema": {
|
|
136
|
-
"title": "Return Shape Array Schema",
|
|
137
|
-
"type": "object",
|
|
138
|
-
"allOf": [
|
|
139
|
-
{
|
|
140
|
-
"$ref": "#/definitions/propertySchema"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"properties": {
|
|
144
|
-
"type": {
|
|
145
|
-
"type": "string",
|
|
146
|
-
"const": "array"
|
|
147
|
-
},
|
|
148
|
-
"items": {
|
|
149
|
-
"oneOf": [
|
|
150
|
-
{
|
|
151
|
-
"$ref": "#/definitions/refSchema"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"type": "object",
|
|
155
|
-
"properties": {
|
|
156
|
-
"type": {
|
|
157
|
-
"enum": ["boolean", "integer", "number", "string", "object"]
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"required": ["type"]
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
"required": ["type", "items"]
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
|
-
},
|
|
169
|
-
"objectOrRefArray": {
|
|
170
|
-
"title": "ObjectOrRefArray",
|
|
171
|
-
"type": "array",
|
|
172
|
-
"items": {
|
|
173
|
-
"oneOf": [
|
|
174
|
-
{
|
|
175
|
-
"$ref": "#/definitions/refSchema"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"$ref": "#/definitions/refSchemaLegacy"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"$ref": "#/definitions/objectSchema"
|
|
182
|
-
}
|
|
183
|
-
],
|
|
184
|
-
"unevaluatedProperties": true
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"shapeSchemaAllOf": {
|
|
188
|
-
"title": "Shape Schema All Of",
|
|
189
|
-
"type": "object",
|
|
190
|
-
"properties": {
|
|
191
|
-
"allOf": {
|
|
192
|
-
"$ref": "#/definitions/objectOrRefArray"
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
"required": ["allOf"],
|
|
196
|
-
"additionalProperties": false
|
|
197
|
-
},
|
|
198
|
-
"allOfSchema": {
|
|
199
|
-
"title": "AllOfSchema",
|
|
200
|
-
"allOf": [
|
|
201
|
-
{
|
|
202
|
-
"$ref": "#/definitions/propertySchema"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"type": "object",
|
|
206
|
-
"properties": {
|
|
207
|
-
"allOf": {
|
|
208
|
-
"$ref": "#/definitions/objectOrRefArray"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
"required": ["allOf"]
|
|
212
|
-
}
|
|
213
|
-
]
|
|
214
|
-
},
|
|
215
|
-
"shapeSchemaExtends": {
|
|
216
|
-
"title": "ShapeSchemaExtends",
|
|
217
|
-
"type": "object",
|
|
218
|
-
"properties": {
|
|
219
|
-
"extends": {
|
|
220
|
-
"$ref": "#/definitions/objectOrRefArray"
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
"required": ["extends"],
|
|
224
|
-
"additionalProperties": false
|
|
225
|
-
},
|
|
226
|
-
"extendsSchema": {
|
|
227
|
-
"title": "ExtendsSchema",
|
|
228
|
-
"allOf": [
|
|
229
|
-
{
|
|
230
|
-
"$ref": "#/definitions/propertySchema"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"type": "object",
|
|
234
|
-
"properties": {
|
|
235
|
-
"extends": {
|
|
236
|
-
"$ref": "#/definitions/objectOrRefArray"
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
"required": ["extends"]
|
|
240
|
-
}
|
|
241
|
-
]
|
|
242
|
-
},
|
|
243
|
-
"shapeSchemaOneOf": {
|
|
244
|
-
"title": "Shape Schema One Of",
|
|
245
|
-
"type": "object",
|
|
246
|
-
"properties": {
|
|
247
|
-
"title": {
|
|
248
|
-
"type": "string"
|
|
249
|
-
},
|
|
250
|
-
"description": {
|
|
251
|
-
"type": "string"
|
|
252
|
-
},
|
|
253
|
-
"discriminator": {
|
|
254
|
-
"type": "object",
|
|
255
|
-
"properties": {
|
|
256
|
-
"propertyName": {
|
|
257
|
-
"type": "string"
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
"required": ["propertyName"]
|
|
261
|
-
},
|
|
262
|
-
"oneOf": {
|
|
263
|
-
"$ref": "#/definitions/objectOrRefArray"
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
"required": ["oneOf"],
|
|
267
|
-
"additionalProperties": false
|
|
268
|
-
},
|
|
269
|
-
"oneOfSchema": {
|
|
270
|
-
"title": "OneOfSchema",
|
|
271
|
-
"allOf": [
|
|
272
|
-
{
|
|
273
|
-
"$ref": "#/definitions/propertySchema"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"type": "object",
|
|
277
|
-
"properties": {
|
|
278
|
-
"oneOf": {
|
|
279
|
-
"$ref": "#/definitions/objectOrRefArray"
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
"required": ["oneOf"],
|
|
283
|
-
"additionalProperties": false
|
|
284
|
-
}
|
|
285
|
-
]
|
|
286
|
-
},
|
|
287
|
-
"shapeSchemaAny": {
|
|
288
|
-
"type": "object",
|
|
289
|
-
"title": "ShapeSchemaAny",
|
|
290
|
-
"additionalProperties": false
|
|
291
|
-
},
|
|
292
|
-
"shapeSchema": {
|
|
293
|
-
"title": "Shape Schema",
|
|
294
|
-
"type": "object",
|
|
295
|
-
"oneOf": [
|
|
296
|
-
{
|
|
297
|
-
"$ref": "#/definitions/shapeSchemaAllOf"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"$ref": "#/definitions/shapeSchemaExtends"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"$ref": "#/definitions/shapeSchemaOneOf"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"$ref": "#/definitions/shapeSchemaEnum"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"$ref": "#/definitions/objectSchema"
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"$ref": "#/definitions/shapeSchemaAny"
|
|
313
|
-
}
|
|
314
|
-
]
|
|
315
|
-
},
|
|
316
|
-
"queryMap": {
|
|
317
|
-
"title": "Query Map",
|
|
318
|
-
"type": "object",
|
|
319
|
-
"patternProperties": {
|
|
320
|
-
"^[0-9A-Za-z_]+$": {
|
|
321
|
-
"$ref": "#/definitions/query"
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
"additionalProperties": false
|
|
325
|
-
},
|
|
326
|
-
"args": {
|
|
327
|
-
"title": "Args",
|
|
328
|
-
"oneOf": [
|
|
329
|
-
{
|
|
330
|
-
"type": "string"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"$ref": "#/definitions/objectSchema"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"$ref": "#/definitions/extendsSchema"
|
|
337
|
-
}
|
|
338
|
-
]
|
|
339
|
-
},
|
|
340
|
-
"returnShape": {
|
|
341
|
-
"title": "Return Shape",
|
|
342
|
-
"oneOf": [
|
|
343
|
-
{
|
|
344
|
-
"type": "string"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"$ref": "#/definitions/returnShapeArraySchema"
|
|
348
|
-
}
|
|
349
|
-
]
|
|
350
|
-
},
|
|
351
|
-
"directiveConfigItem": {
|
|
352
|
-
"title": "Directive Config Item",
|
|
353
|
-
"description": "A tuple with a string directive name, and options to pass to the directive",
|
|
354
|
-
"type": "array",
|
|
355
|
-
"items": [
|
|
356
|
-
{
|
|
357
|
-
"title": "Directive Name",
|
|
358
|
-
"type": "string"
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
"title": "Directive Options",
|
|
362
|
-
"type": "object",
|
|
363
|
-
"propertyNames": {
|
|
364
|
-
"pattern": "[0-9A-Za-z_-]+"
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
"parameterSerializeStyleOptions": {
|
|
370
|
-
"title": "Parameter Serialize Style Options",
|
|
371
|
-
"description": "All possible options for the more specific ParameterSerializeStyleOptions types.",
|
|
372
|
-
"type": "object",
|
|
373
|
-
"properties": {
|
|
374
|
-
"style": {
|
|
375
|
-
"type": "string",
|
|
376
|
-
"enum": ["simple", "label", "matrix", "form", "spaceDelimited", "pipeDelimited", "deepObject", "none"]
|
|
377
|
-
},
|
|
378
|
-
"explode": {
|
|
379
|
-
"type": "boolean"
|
|
380
|
-
},
|
|
381
|
-
"allowEmptyValue": {
|
|
382
|
-
"type": "boolean"
|
|
383
|
-
},
|
|
384
|
-
"allowReserved": {
|
|
385
|
-
"description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
|
|
386
|
-
"type": "boolean"
|
|
387
|
-
},
|
|
388
|
-
"skipEncoding": {
|
|
389
|
-
"type": "boolean"
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
"required": ["style"],
|
|
393
|
-
"additionalProperties": false
|
|
394
|
-
},
|
|
395
|
-
"parameterSerializeStyleOptionsForPathParams": {
|
|
396
|
-
"title": "Parameter Serialize Style Options For Path Params",
|
|
397
|
-
"description": "Options to be passed to the serialization routine.",
|
|
398
|
-
"type": "object",
|
|
399
|
-
"properties": {
|
|
400
|
-
"style": {
|
|
401
|
-
"type": "string",
|
|
402
|
-
"enum": ["simple", "label", "matrix", "none"]
|
|
403
|
-
},
|
|
404
|
-
"explode": {
|
|
405
|
-
"type": "boolean"
|
|
406
|
-
},
|
|
407
|
-
"allowEmptyValue": {
|
|
408
|
-
"type": "boolean"
|
|
409
|
-
},
|
|
410
|
-
"allowReserved": {
|
|
411
|
-
"description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
|
|
412
|
-
"type": "boolean"
|
|
413
|
-
},
|
|
414
|
-
"skipEncoding": {
|
|
415
|
-
"type": "boolean"
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
"required": ["style"],
|
|
419
|
-
"additionalProperties": false
|
|
420
|
-
},
|
|
421
|
-
"parameterSerializeStyleOptionsForSearchParams": {
|
|
422
|
-
"title": "Parameter Serialize Style Options For Search Params",
|
|
423
|
-
"description": "Options to be passed to the serialization routine.",
|
|
424
|
-
"type": "object",
|
|
425
|
-
"properties": {
|
|
426
|
-
"style": {
|
|
427
|
-
"type": "string",
|
|
428
|
-
"enum": ["form", "spaceDelimited", "pipeDelimited", "deepObject", "none"]
|
|
429
|
-
},
|
|
430
|
-
"explode": {
|
|
431
|
-
"type": "boolean"
|
|
432
|
-
},
|
|
433
|
-
"allowEmptyValue": {
|
|
434
|
-
"type": "boolean"
|
|
435
|
-
},
|
|
436
|
-
"allowReserved": {
|
|
437
|
-
"description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
|
|
438
|
-
"type": "boolean"
|
|
439
|
-
},
|
|
440
|
-
"skipEncoding": {
|
|
441
|
-
"type": "boolean"
|
|
442
|
-
}
|
|
443
|
-
},
|
|
444
|
-
"required": ["style"],
|
|
445
|
-
"additionalProperties": false
|
|
446
|
-
},
|
|
447
|
-
"parameterSerializeStyleOptionsForHeaders": {
|
|
448
|
-
"title": "Parameter Serialize Style Options For Headers",
|
|
449
|
-
"description": "Options to be passed to the serialization routine.",
|
|
450
|
-
"type": "object",
|
|
451
|
-
"properties": {
|
|
452
|
-
"style": {
|
|
453
|
-
"type": "string",
|
|
454
|
-
"enum": ["simple", "none"]
|
|
455
|
-
},
|
|
456
|
-
"explode": {
|
|
457
|
-
"type": "boolean"
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
"required": ["style"],
|
|
461
|
-
"additionalProperties": false
|
|
462
|
-
},
|
|
463
|
-
"parameterSerializeContentOptions": {
|
|
464
|
-
"title": "Parameter Serialize Content Options",
|
|
465
|
-
"description": "Options to be passed to the serialization routine.",
|
|
466
|
-
"type": "object",
|
|
467
|
-
"properties": {
|
|
468
|
-
"contentType": {
|
|
469
|
-
"type": "string"
|
|
470
|
-
},
|
|
471
|
-
"allowReserved": {
|
|
472
|
-
"description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
|
|
473
|
-
"type": "boolean"
|
|
474
|
-
},
|
|
475
|
-
"skipEncoding": {
|
|
476
|
-
"type": "boolean"
|
|
477
|
-
},
|
|
478
|
-
"options": {
|
|
479
|
-
"description": "Options to be passed directly to the content serializer library. Valid options depend upon your contentType.",
|
|
480
|
-
"type": "object"
|
|
481
|
-
}
|
|
482
|
-
},
|
|
483
|
-
"required": ["contentType"],
|
|
484
|
-
"additionalProperties": false
|
|
485
|
-
},
|
|
486
|
-
"parameterSerializeOptions": {
|
|
487
|
-
"title": "Parameter Serialize Options",
|
|
488
|
-
"description": "Options to be passed to the serialization routine.",
|
|
489
|
-
"type": "object",
|
|
490
|
-
"oneOf": [
|
|
491
|
-
{
|
|
492
|
-
"$ref": "#/definitions/parameterSerializeStyleOptions"
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
496
|
-
}
|
|
497
|
-
]
|
|
498
|
-
},
|
|
499
|
-
"parameterSerializeConfig": {
|
|
500
|
-
"title": "Parameter Serialize Config",
|
|
501
|
-
"description": "All possible options for the more specific ParameterSerializeConfig types.",
|
|
502
|
-
"type": "object",
|
|
503
|
-
"properties": {
|
|
504
|
-
"content": {
|
|
505
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
506
|
-
},
|
|
507
|
-
"defaults": {
|
|
508
|
-
"$ref": "#/definitions/parameterSerializeOptions"
|
|
509
|
-
},
|
|
510
|
-
"paths": {
|
|
511
|
-
"type": "object",
|
|
512
|
-
"patternProperties": {
|
|
513
|
-
"^[^\\n\\r]*$": {
|
|
514
|
-
"$ref": "#/definitions/parameterSerializeOptions"
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
|
-
"additionalProperties": false
|
|
520
|
-
},
|
|
521
|
-
"parameterSerializeConfigForBody": {
|
|
522
|
-
"title": "Parameter Serialize Config For Body",
|
|
523
|
-
"description": "Top-level paths to use serialization options for.",
|
|
524
|
-
"type": "object",
|
|
525
|
-
"properties": {
|
|
526
|
-
"content": {
|
|
527
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
528
|
-
}
|
|
529
|
-
},
|
|
530
|
-
"additionalProperties": false
|
|
531
|
-
},
|
|
532
|
-
"parameterSerializeConfigForPathParams": {
|
|
533
|
-
"title": "Parameter Serialize Config For Path Params",
|
|
534
|
-
"description": "Top-level paths to use path params serialization options for.",
|
|
535
|
-
"type": "object",
|
|
536
|
-
"properties": {
|
|
537
|
-
"template": {
|
|
538
|
-
"description": "For generating the path using tokens frpm the ParameterOps, e.g., '/products/{productId}'",
|
|
539
|
-
"type": "string"
|
|
540
|
-
},
|
|
541
|
-
"defaults": {
|
|
542
|
-
"oneOf": [
|
|
543
|
-
{
|
|
544
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForPathParams"
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
548
|
-
}
|
|
549
|
-
]
|
|
550
|
-
},
|
|
551
|
-
"paths": {
|
|
552
|
-
"type": "object",
|
|
553
|
-
"patternProperties": {
|
|
554
|
-
"^[^\\n\\r]*$": {
|
|
555
|
-
"oneOf": [
|
|
556
|
-
{
|
|
557
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForPathParams"
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
561
|
-
}
|
|
562
|
-
]
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
"required": ["template"],
|
|
568
|
-
"additionalProperties": false
|
|
569
|
-
},
|
|
570
|
-
"parameterSerializeConfigForSearchParams": {
|
|
571
|
-
"title": "Parameter Serialize Config For Search Params",
|
|
572
|
-
"description": "Top-level paths to use search params serialization options for.",
|
|
573
|
-
"type": "object",
|
|
574
|
-
"properties": {
|
|
575
|
-
"defaults": {
|
|
576
|
-
"oneOf": [
|
|
577
|
-
{
|
|
578
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForSearchParams"
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
582
|
-
}
|
|
583
|
-
]
|
|
584
|
-
},
|
|
585
|
-
"paths": {
|
|
586
|
-
"type": "object",
|
|
587
|
-
"patternProperties": {
|
|
588
|
-
"^[^\\n\\r]*$": {
|
|
589
|
-
"oneOf": [
|
|
590
|
-
{
|
|
591
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForSearchParams"
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
595
|
-
}
|
|
596
|
-
]
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
},
|
|
601
|
-
"additionalProperties": false
|
|
602
|
-
},
|
|
603
|
-
"parameterSerializeConfigForHeaders": {
|
|
604
|
-
"title": "Parameter Serialize Config For Headers",
|
|
605
|
-
"description": "Top-level paths to use headers serialization options for.",
|
|
606
|
-
"type": "object",
|
|
607
|
-
"properties": {
|
|
608
|
-
"defaults": {
|
|
609
|
-
"oneOf": [
|
|
610
|
-
{
|
|
611
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForHeaders"
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
615
|
-
}
|
|
616
|
-
]
|
|
617
|
-
},
|
|
618
|
-
"paths": {
|
|
619
|
-
"type": "object",
|
|
620
|
-
"patternProperties": {
|
|
621
|
-
"^[^\\n\\r]*$": {
|
|
622
|
-
"oneOf": [
|
|
623
|
-
{
|
|
624
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForHeaders"
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
628
|
-
}
|
|
629
|
-
]
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
},
|
|
634
|
-
"additionalProperties": false
|
|
635
|
-
},
|
|
636
|
-
"parameterOpNested": {
|
|
637
|
-
"title": "Parameter Op Nested",
|
|
638
|
-
"description": "An object describing an operation to generate a parameter, using a nested OpList.",
|
|
639
|
-
"type": "object",
|
|
640
|
-
"properties": {
|
|
641
|
-
"path": {
|
|
642
|
-
"description": "A path to the parameter for this operation.",
|
|
643
|
-
"type": "string",
|
|
644
|
-
"minLength": 1,
|
|
645
|
-
"pattern": "^[^\\n\\r]*$"
|
|
646
|
-
},
|
|
647
|
-
"op": {
|
|
648
|
-
"description": "A mode for this parameter's operation.",
|
|
649
|
-
"type": "string",
|
|
650
|
-
"enum": ["set", "concat", "extend", "remove"]
|
|
651
|
-
},
|
|
652
|
-
"ops": {
|
|
653
|
-
"description": "A nested op list.",
|
|
654
|
-
"$ref": "#/definitions/parameterOpList"
|
|
655
|
-
}
|
|
656
|
-
},
|
|
657
|
-
"required": ["path", "ops"],
|
|
658
|
-
"additionalProperties": false
|
|
659
|
-
},
|
|
660
|
-
"parameterOpValue": {
|
|
661
|
-
"title": "Parameter Op Value",
|
|
662
|
-
"description": "An object describing an operation to generate a parameter using a value.",
|
|
663
|
-
"type": "object",
|
|
664
|
-
"properties": {
|
|
665
|
-
"path": {
|
|
666
|
-
"description": "A path to the parameter for this operation.",
|
|
667
|
-
"type": "string",
|
|
668
|
-
"minLength": 1,
|
|
669
|
-
"pattern": "^[^\\n\\r]*$"
|
|
670
|
-
},
|
|
671
|
-
"op": {
|
|
672
|
-
"description": "A mode for this parameter's operation.",
|
|
673
|
-
"type": "string",
|
|
674
|
-
"enum": ["set", "concat", "extend", "remove"]
|
|
675
|
-
},
|
|
676
|
-
"value": {
|
|
677
|
-
"description": "A value to set directly at this path.",
|
|
678
|
-
"type": ["number", "string", "boolean", "object", "array", "null"]
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
"required": ["path", "value"],
|
|
682
|
-
"additionalProperties": false
|
|
683
|
-
},
|
|
684
|
-
"parameterOpMapping": {
|
|
685
|
-
"title": "Parameter Op Mapping",
|
|
686
|
-
"description": "An object describing an operation to generate a parameter using a mapping.",
|
|
687
|
-
"type": "object",
|
|
688
|
-
"properties": {
|
|
689
|
-
"path": {
|
|
690
|
-
"description": "A path to the parameter for this operation.",
|
|
691
|
-
"type": "string",
|
|
692
|
-
"minLength": 1,
|
|
693
|
-
"pattern": "^[^\\n\\r]*$"
|
|
694
|
-
},
|
|
695
|
-
"op": {
|
|
696
|
-
"description": "A mode for this parameter's operation.",
|
|
697
|
-
"type": "string",
|
|
698
|
-
"enum": ["set", "concat", "extend", "remove"]
|
|
699
|
-
},
|
|
700
|
-
"mapping": {
|
|
701
|
-
"description": "Either a valid JSONPath or a directive pipeline to evaluate against the query context.",
|
|
702
|
-
"oneOf": [
|
|
703
|
-
{
|
|
704
|
-
"type": "string",
|
|
705
|
-
"minLength": 1
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
"$ref": "#/definitions/directiveConfig"
|
|
709
|
-
}
|
|
710
|
-
]
|
|
711
|
-
}
|
|
712
|
-
},
|
|
713
|
-
"required": ["path", "mapping"],
|
|
714
|
-
"additionalProperties": false
|
|
715
|
-
},
|
|
716
|
-
"parameterOpOp": {
|
|
717
|
-
"title": "Parameter Op Op",
|
|
718
|
-
"description": "An object describing an operation to generate a parameter using a mapping.",
|
|
719
|
-
"type": "object",
|
|
720
|
-
"properties": {
|
|
721
|
-
"path": {
|
|
722
|
-
"description": "A path to the parameter for this operation.",
|
|
723
|
-
"type": "string",
|
|
724
|
-
"minLength": 1,
|
|
725
|
-
"pattern": "^[^\\n\\r]*$"
|
|
726
|
-
},
|
|
727
|
-
"op": {
|
|
728
|
-
"description": "A mode for this parameter's operation.",
|
|
729
|
-
"type": "string",
|
|
730
|
-
"enum": ["set", "concat", "extend", "remove"]
|
|
731
|
-
}
|
|
732
|
-
},
|
|
733
|
-
"required": ["path", "op"],
|
|
734
|
-
"additionalProperties": false
|
|
735
|
-
},
|
|
736
|
-
"parameterOp": {
|
|
737
|
-
"title": "Parameter Op",
|
|
738
|
-
"description": "An object describing an operation to generate a parameter.",
|
|
739
|
-
"oneOf": [
|
|
740
|
-
{
|
|
741
|
-
"$ref": "#/definitions/parameterOpNested"
|
|
742
|
-
},
|
|
743
|
-
{
|
|
744
|
-
"$ref": "#/definitions/parameterOpValue"
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
"$ref": "#/definitions/parameterOpMapping"
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
"$ref": "#/definitions/parameterOpOp"
|
|
751
|
-
}
|
|
752
|
-
]
|
|
753
|
-
},
|
|
754
|
-
"parameterOpList": {
|
|
755
|
-
"title": "Parameter Op List",
|
|
756
|
-
"type": "array",
|
|
757
|
-
"items": {
|
|
758
|
-
"$ref": "#/definitions/parameterOp"
|
|
759
|
-
},
|
|
760
|
-
"minItems": 1
|
|
761
|
-
},
|
|
762
|
-
"parameterConfig": {
|
|
763
|
-
"title": "Parameter Config",
|
|
764
|
-
"description": "All possible options for the more specific ParameterConfig types.",
|
|
765
|
-
"type": "object",
|
|
766
|
-
"properties": {
|
|
767
|
-
"ops": {
|
|
768
|
-
"$ref": "#/definitions/parameterOpList"
|
|
769
|
-
},
|
|
770
|
-
"serialize": {
|
|
771
|
-
"$ref": "#/definitions/parameterSerializeConfig"
|
|
772
|
-
}
|
|
773
|
-
},
|
|
774
|
-
"required": ["ops"],
|
|
775
|
-
"additionalProperties": false
|
|
776
|
-
},
|
|
777
|
-
"parameterConfigForBody": {
|
|
778
|
-
"title": "Parameter Config For Body",
|
|
779
|
-
"type": "object",
|
|
780
|
-
"properties": {
|
|
781
|
-
"ops": {
|
|
782
|
-
"$ref": "#/definitions/parameterOpList"
|
|
783
|
-
},
|
|
784
|
-
"serialize": {
|
|
785
|
-
"$ref": "#/definitions/parameterSerializeConfigForBody"
|
|
786
|
-
}
|
|
787
|
-
},
|
|
788
|
-
"required": ["ops"],
|
|
789
|
-
"additionalProperties": false
|
|
790
|
-
},
|
|
791
|
-
"parameterConfigForPathParams": {
|
|
792
|
-
"title": "Parameter Config For Path Params",
|
|
793
|
-
"type": "object",
|
|
794
|
-
"properties": {
|
|
795
|
-
"ops": {
|
|
796
|
-
"$ref": "#/definitions/parameterOpList"
|
|
797
|
-
},
|
|
798
|
-
"serialize": {
|
|
799
|
-
"$ref": "#/definitions/parameterSerializeConfigForPathParams"
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
"required": ["ops", "serialize"],
|
|
803
|
-
"additionalProperties": false
|
|
804
|
-
},
|
|
805
|
-
"parameterConfigForAwsLambda": {
|
|
806
|
-
"title": "ParameterConfigForAwsLambda",
|
|
807
|
-
"type": "object",
|
|
808
|
-
"properties": {
|
|
809
|
-
"ops": {
|
|
810
|
-
"$ref": "#/definitions/parameterOpList"
|
|
811
|
-
},
|
|
812
|
-
"serialize": {
|
|
813
|
-
"$ref": "#/definitions/parameterSerializeConfigForPathParams"
|
|
814
|
-
}
|
|
815
|
-
},
|
|
816
|
-
"required": ["ops", "serialize"],
|
|
817
|
-
"additionalProperties": false
|
|
818
|
-
},
|
|
819
|
-
"parameterConfigForSearchParams": {
|
|
820
|
-
"title": "Parameter Config For Search Params",
|
|
821
|
-
"type": "object",
|
|
822
|
-
"properties": {
|
|
823
|
-
"ops": {
|
|
824
|
-
"$ref": "#/definitions/parameterOpList"
|
|
825
|
-
},
|
|
826
|
-
"serialize": {
|
|
827
|
-
"$ref": "#/definitions/parameterSerializeConfigForSearchParams"
|
|
828
|
-
}
|
|
829
|
-
},
|
|
830
|
-
"required": ["ops"],
|
|
831
|
-
"additionalProperties": false
|
|
832
|
-
},
|
|
833
|
-
"parameterConfigForHeaders": {
|
|
834
|
-
"title": "Parameter Config For Headers",
|
|
835
|
-
"type": "object",
|
|
836
|
-
"properties": {
|
|
837
|
-
"ops": {
|
|
838
|
-
"$ref": "#/definitions/parameterOpList"
|
|
839
|
-
},
|
|
840
|
-
"serialize": {
|
|
841
|
-
"$ref": "#/definitions/parameterSerializeConfigForHeaders"
|
|
842
|
-
}
|
|
843
|
-
},
|
|
844
|
-
"required": ["ops"],
|
|
845
|
-
"additionalProperties": false
|
|
846
|
-
},
|
|
847
|
-
"parameterConfigForJson": {
|
|
848
|
-
"title": "Parameter Config For Json",
|
|
849
|
-
"type": "object",
|
|
850
|
-
"properties": {
|
|
851
|
-
"ops": {
|
|
852
|
-
"$ref": "#/definitions/parameterOpList"
|
|
853
|
-
}
|
|
854
|
-
},
|
|
855
|
-
"required": ["ops"],
|
|
856
|
-
"additionalProperties": false
|
|
857
|
-
},
|
|
858
|
-
"directiveConfig": {
|
|
859
|
-
"title": "Directive Config",
|
|
860
|
-
"description": "An array of individual directive config items to process in order",
|
|
861
|
-
"type": "array",
|
|
862
|
-
"items": {
|
|
863
|
-
"$ref": "#/definitions/directiveConfigItem"
|
|
864
|
-
},
|
|
865
|
-
"minItems": 1
|
|
866
|
-
},
|
|
867
|
-
"directiveMappingMap": {
|
|
868
|
-
"title": "Directive Mapping Map",
|
|
869
|
-
"description": "An map of object keys / key paths to directive configs",
|
|
870
|
-
"type": "object",
|
|
871
|
-
"patternProperties": {
|
|
872
|
-
"[0-9A-Za-z_-]+": {
|
|
873
|
-
"$ref": "#/definitions/directiveConfig"
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
},
|
|
877
|
-
"directiveMappingArrayItem": {
|
|
878
|
-
"title": "Directive Mapping Array Item",
|
|
879
|
-
"description": "A tuple with a string key and a directive config to evaluate",
|
|
880
|
-
"type": "array",
|
|
881
|
-
"items": [
|
|
882
|
-
{
|
|
883
|
-
"type": "string"
|
|
884
|
-
},
|
|
885
|
-
{
|
|
886
|
-
"$ref": "#/definitions/directiveConfig"
|
|
887
|
-
}
|
|
888
|
-
]
|
|
889
|
-
},
|
|
890
|
-
"directiveMappingArray": {
|
|
891
|
-
"title": "Directive Mapping Array",
|
|
892
|
-
"description": "An array of key / value or directive config tuples",
|
|
893
|
-
"type": "array",
|
|
894
|
-
"items": {
|
|
895
|
-
"$ref": "#/definitions/directiveMappingArrayItem"
|
|
896
|
-
}
|
|
897
|
-
},
|
|
898
|
-
"basicResolver": {
|
|
899
|
-
"title": "BasicResolver",
|
|
900
|
-
"description": "A single resolver, can be composed with the ComposeResolver.",
|
|
901
|
-
"discriminator": {
|
|
902
|
-
"propertyName": "name"
|
|
903
|
-
},
|
|
904
|
-
"oneOf": [
|
|
905
|
-
{
|
|
906
|
-
"$ref": "#/definitions/utilResolver"
|
|
907
|
-
},
|
|
908
|
-
{
|
|
909
|
-
"$ref": "#/definitions/delegateResolver"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
"$ref": "#/definitions/takeshapeResolver"
|
|
913
|
-
},
|
|
914
|
-
{
|
|
915
|
-
"$ref": "#/definitions/shapedbResolver"
|
|
916
|
-
},
|
|
917
|
-
{
|
|
918
|
-
"$ref": "#/definitions/shapedbResolverShapeNameNotRequired"
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
"$ref": "#/definitions/graphqlResolver"
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
"$ref": "#/definitions/restResolver"
|
|
925
|
-
},
|
|
926
|
-
{
|
|
927
|
-
"$ref": "#/definitions/awsLambdaResolver"
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
"$ref": "#/definitions/salsifyResolver"
|
|
931
|
-
},
|
|
932
|
-
{
|
|
933
|
-
"$ref": "#/definitions/syndigoResolver"
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
"$ref": "#/definitions/functionResolver"
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
"$ref": "#/definitions/aiGenerateTextResolver"
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
"$ref": "#/definitions/aiGeneratePropertyResolver"
|
|
943
|
-
},
|
|
944
|
-
{
|
|
945
|
-
"$ref": "#/definitions/aiEmbeddingResolver"
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
"$ref": "#/definitions/aiEmbeddingSearchResolver"
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
"$ref": "#/definitions/aiParseFileResolver"
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
"$ref": "#/definitions/utilChunkResolver"
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
"$ref": "#/definitions/aiRunAgentResolver"
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
"$ref": "#/definitions/aiInspectAgentResolver"
|
|
961
|
-
},
|
|
962
|
-
{
|
|
963
|
-
"$ref": "#/definitions/aiCreateAgentSessionResolver"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"$ref": "#/definitions/aiGetAgentMessageResolver"
|
|
967
|
-
},
|
|
968
|
-
{
|
|
969
|
-
"$ref": "#/definitions/aiAbortAgentMessageResolver"
|
|
970
|
-
},
|
|
971
|
-
{
|
|
972
|
-
"$ref": "#/definitions/aiSendAgentFeedbackResolver"
|
|
973
|
-
}
|
|
974
|
-
]
|
|
975
|
-
},
|
|
976
|
-
"serviceResolver": {
|
|
977
|
-
"title": "ServiceResolver",
|
|
978
|
-
"description": "A resolver which references a specific service",
|
|
979
|
-
"discriminator": {
|
|
980
|
-
"propertyName": "name"
|
|
981
|
-
},
|
|
982
|
-
"oneOf": [
|
|
983
|
-
{
|
|
984
|
-
"$ref": "#/definitions/takeshapeResolver"
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"$ref": "#/definitions/shapedbResolverShapeNameNotRequired"
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
"$ref": "#/definitions/shapedbResolver"
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
"$ref": "#/definitions/graphqlResolver"
|
|
994
|
-
},
|
|
995
|
-
{
|
|
996
|
-
"$ref": "#/definitions/restResolver"
|
|
997
|
-
},
|
|
998
|
-
{
|
|
999
|
-
"$ref": "#/definitions/awsLambdaResolver"
|
|
1000
|
-
}
|
|
1001
|
-
]
|
|
1002
|
-
},
|
|
1003
|
-
"argsMapping": {
|
|
1004
|
-
"title": "ArgsMapping",
|
|
1005
|
-
"description": "Maps a query's input args to the input expected by the service's endpoint.",
|
|
1006
|
-
"oneOf": [
|
|
1007
|
-
{
|
|
1008
|
-
"$ref": "#/definitions/directiveMappingMap"
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
"$ref": "#/definitions/directiveConfig"
|
|
1012
|
-
}
|
|
1013
|
-
]
|
|
1014
|
-
},
|
|
1015
|
-
"searchParamsMapping": {
|
|
1016
|
-
"title": "SearchParamsMapping",
|
|
1017
|
-
"description": "Set or evaluate directives to generate searchParams for the service endpoint.",
|
|
1018
|
-
"$ref": "#/definitions/directiveMappingArray"
|
|
1019
|
-
},
|
|
1020
|
-
"resultsMapping": {
|
|
1021
|
-
"title": "ResultsMapping",
|
|
1022
|
-
"description": "Maps a service endpoint's response results to the expected shape of the query's response.",
|
|
1023
|
-
"oneOf": [
|
|
1024
|
-
{
|
|
1025
|
-
"$ref": "#/definitions/directiveMappingMap"
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"$ref": "#/definitions/directiveConfig"
|
|
1029
|
-
}
|
|
1030
|
-
]
|
|
1031
|
-
},
|
|
1032
|
-
"utilResolver": {
|
|
1033
|
-
"title": "UtilResolver",
|
|
1034
|
-
"type": "object",
|
|
1035
|
-
"properties": {
|
|
1036
|
-
"if": {
|
|
1037
|
-
"type": "string"
|
|
1038
|
-
},
|
|
1039
|
-
"id": {
|
|
1040
|
-
"type": "string",
|
|
1041
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1042
|
-
},
|
|
1043
|
-
"name": {
|
|
1044
|
-
"title": "UtilResolverName",
|
|
1045
|
-
"type": "string",
|
|
1046
|
-
"description": "Name of the resolver function.",
|
|
1047
|
-
"enum": ["util:noop", "util:wrap"]
|
|
1048
|
-
},
|
|
1049
|
-
"options": {
|
|
1050
|
-
"title": "UtilResolverOptions",
|
|
1051
|
-
"type": "object",
|
|
1052
|
-
"additionalProperties": true
|
|
1053
|
-
},
|
|
1054
|
-
"value": {
|
|
1055
|
-
"description": "Optional value to return from the noop resolver.",
|
|
1056
|
-
"type": ["number", "string", "boolean", "object", "array", "null"]
|
|
1057
|
-
},
|
|
1058
|
-
"args": {
|
|
1059
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1060
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1061
|
-
},
|
|
1062
|
-
"results": {
|
|
1063
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1064
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1065
|
-
},
|
|
1066
|
-
"argsMapping": {
|
|
1067
|
-
"$ref": "#/definitions/argsMapping"
|
|
1068
|
-
},
|
|
1069
|
-
"resultsMapping": {
|
|
1070
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1071
|
-
}
|
|
1072
|
-
},
|
|
1073
|
-
"required": ["name"],
|
|
1074
|
-
"additionalProperties": false
|
|
1075
|
-
},
|
|
1076
|
-
"utilChunkResolver": {
|
|
1077
|
-
"title": "ChunkResolver",
|
|
1078
|
-
"type": "object",
|
|
1079
|
-
"properties": {
|
|
1080
|
-
"if": {
|
|
1081
|
-
"type": "string"
|
|
1082
|
-
},
|
|
1083
|
-
"id": {
|
|
1084
|
-
"type": "string",
|
|
1085
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1086
|
-
},
|
|
1087
|
-
"name": {
|
|
1088
|
-
"title": "UtilResolverName",
|
|
1089
|
-
"type": "string",
|
|
1090
|
-
"description": "Name of the resolver function.",
|
|
1091
|
-
"enum": ["util:chunk"]
|
|
1092
|
-
},
|
|
1093
|
-
"options": {
|
|
1094
|
-
"$ref": "#/definitions/utilChunkResolverOptions"
|
|
1095
|
-
},
|
|
1096
|
-
"args": {
|
|
1097
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1098
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1099
|
-
},
|
|
1100
|
-
"results": {
|
|
1101
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1102
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1103
|
-
}
|
|
1104
|
-
},
|
|
1105
|
-
"required": ["name", "options"],
|
|
1106
|
-
"additionalProperties": false
|
|
1107
|
-
},
|
|
1108
|
-
"utilChunkResolverOptions": {
|
|
1109
|
-
"title": "UtilChunkResolverOptions",
|
|
1110
|
-
"oneOf": [
|
|
1111
|
-
{
|
|
1112
|
-
"$ref": "#/definitions/utilChunkResolverOptionsCharacterCount"
|
|
1113
|
-
},
|
|
1114
|
-
{
|
|
1115
|
-
"$ref": "#/definitions/utilChunkResolverOptionsSeparators"
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
"$ref": "#/definitions/utilChunkResolverOptionsMarkdown"
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
"$ref": "#/definitions/utilChunkResolverOptionsSemantic"
|
|
1122
|
-
}
|
|
1123
|
-
]
|
|
1124
|
-
},
|
|
1125
|
-
"utilChunkResolverOptionsCharacterCount": {
|
|
1126
|
-
"title": "UtilChunkResolverOptionsCharacterCount",
|
|
1127
|
-
"type": "object",
|
|
1128
|
-
"properties": {
|
|
1129
|
-
"type": {
|
|
1130
|
-
"enum": ["characterCount"]
|
|
1131
|
-
},
|
|
1132
|
-
"characterCount": {
|
|
1133
|
-
"type": "integer",
|
|
1134
|
-
"minimum": 1
|
|
1135
|
-
}
|
|
1136
|
-
},
|
|
1137
|
-
"required": ["type", "characterCount"],
|
|
1138
|
-
"additionalProperties": false
|
|
1139
|
-
},
|
|
1140
|
-
"utilChunkResolverOptionsSeparators": {
|
|
1141
|
-
"title": "UtilChunkResolverOptionsSeparators",
|
|
1142
|
-
"type": "object",
|
|
1143
|
-
"properties": {
|
|
1144
|
-
"type": {
|
|
1145
|
-
"enum": ["separators"]
|
|
1146
|
-
},
|
|
1147
|
-
"separators": {
|
|
1148
|
-
"type": "array",
|
|
1149
|
-
"minItems": 1,
|
|
1150
|
-
"items": {
|
|
1151
|
-
"type": "string",
|
|
1152
|
-
"minLength": 1
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
},
|
|
1156
|
-
"required": ["type", "separators"],
|
|
1157
|
-
"additionalProperties": false
|
|
1158
|
-
},
|
|
1159
|
-
"utilChunkResolverOptionsMarkdown": {
|
|
1160
|
-
"title": "UtilChunkResolverOptionsMarkdown",
|
|
1161
|
-
"type": "object",
|
|
1162
|
-
"properties": {
|
|
1163
|
-
"type": {
|
|
1164
|
-
"enum": ["markdown"]
|
|
1165
|
-
},
|
|
1166
|
-
"headerLevel": {
|
|
1167
|
-
"description": "New chunks will be created at headers for this level or lower. Default 2.",
|
|
1168
|
-
"type": "integer",
|
|
1169
|
-
"minimum": 1
|
|
1170
|
-
},
|
|
1171
|
-
"maxCharacters": {
|
|
1172
|
-
"description": "A new chunk will be started when this number of characters is reached, regardless of markup.",
|
|
1173
|
-
"type": "integer",
|
|
1174
|
-
"minimum": 1
|
|
1175
|
-
}
|
|
1176
|
-
},
|
|
1177
|
-
"required": ["type"],
|
|
1178
|
-
"additionalProperties": false
|
|
1179
|
-
},
|
|
1180
|
-
"utilChunkResolverOptionsSemantic": {
|
|
1181
|
-
"title": "UtilChunkResolverOptionsSemantic",
|
|
1182
|
-
"type": "object",
|
|
1183
|
-
"properties": {
|
|
1184
|
-
"type": {
|
|
1185
|
-
"enum": ["semantic"]
|
|
1186
|
-
},
|
|
1187
|
-
"serviceId": {
|
|
1188
|
-
"type": "string"
|
|
1189
|
-
},
|
|
1190
|
-
"modelId": {
|
|
1191
|
-
"type": "string"
|
|
1192
|
-
},
|
|
1193
|
-
"similarityThreshold": {
|
|
1194
|
-
"description": "Similarity below which two embeddings are considered different.",
|
|
1195
|
-
"type": "number",
|
|
1196
|
-
"minimum": 0,
|
|
1197
|
-
"maximum": 1
|
|
1198
|
-
},
|
|
1199
|
-
"stride": {
|
|
1200
|
-
"description": "Advanced. How many sentences to advance when grouping sentences to create embeddings. Default 1.",
|
|
1201
|
-
"type": "integer",
|
|
1202
|
-
"minimum": 1
|
|
1203
|
-
},
|
|
1204
|
-
"sentenceCount": {
|
|
1205
|
-
"description": "Advanced. How many sentences are grouped together to create embeddings. Default 3.",
|
|
1206
|
-
"type": "integer",
|
|
1207
|
-
"minimum": 1
|
|
1208
|
-
},
|
|
1209
|
-
"maxCharacters": {
|
|
1210
|
-
"description": "The maximum number of characters in a chunk.",
|
|
1211
|
-
"type": "integer",
|
|
1212
|
-
"min": 1
|
|
1213
|
-
},
|
|
1214
|
-
"maxTokens": {
|
|
1215
|
-
"description": "The maximum number of tokens in a chunk.",
|
|
1216
|
-
"type": "integer",
|
|
1217
|
-
"min": 1
|
|
1218
|
-
}
|
|
1219
|
-
},
|
|
1220
|
-
"required": ["type", "serviceId", "modelId"],
|
|
1221
|
-
"additionalProperties": false
|
|
1222
|
-
},
|
|
1223
|
-
"functionResolver": {
|
|
1224
|
-
"title": "FunctionResolver",
|
|
1225
|
-
"type": "object",
|
|
1226
|
-
"properties": {
|
|
1227
|
-
"if": {
|
|
1228
|
-
"type": "string"
|
|
1229
|
-
},
|
|
1230
|
-
"id": {
|
|
1231
|
-
"type": "string",
|
|
1232
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1233
|
-
},
|
|
1234
|
-
"name": {
|
|
1235
|
-
"title": "FunctionResolverName",
|
|
1236
|
-
"type": "string",
|
|
1237
|
-
"description": "Name of the resolver function.",
|
|
1238
|
-
"enum": ["function:run"]
|
|
1239
|
-
},
|
|
1240
|
-
"options": {
|
|
1241
|
-
"title": "FunctionResolverOptions",
|
|
1242
|
-
"type": "object",
|
|
1243
|
-
"additionalProperties": true
|
|
1244
|
-
},
|
|
1245
|
-
"args": {
|
|
1246
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1247
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1248
|
-
},
|
|
1249
|
-
"results": {
|
|
1250
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1251
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1252
|
-
},
|
|
1253
|
-
"argsMapping": {
|
|
1254
|
-
"$ref": "#/definitions/argsMapping"
|
|
1255
|
-
},
|
|
1256
|
-
"resultsMapping": {
|
|
1257
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1258
|
-
},
|
|
1259
|
-
"javascript": {
|
|
1260
|
-
"title": "FunctionResolverJavascript",
|
|
1261
|
-
"type": "string"
|
|
1262
|
-
}
|
|
1263
|
-
},
|
|
1264
|
-
"required": ["name"],
|
|
1265
|
-
"additionalProperties": false
|
|
1266
|
-
},
|
|
1267
|
-
"delegateResolver": {
|
|
1268
|
-
"title": "DelegateResolver",
|
|
1269
|
-
"type": "object",
|
|
1270
|
-
"properties": {
|
|
1271
|
-
"if": {
|
|
1272
|
-
"type": "string"
|
|
1273
|
-
},
|
|
1274
|
-
"id": {
|
|
1275
|
-
"type": "string",
|
|
1276
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1277
|
-
},
|
|
1278
|
-
"name": {
|
|
1279
|
-
"title": "Delegate Resolver Name",
|
|
1280
|
-
"type": "string",
|
|
1281
|
-
"description": "Name of the resolver function.",
|
|
1282
|
-
"enum": ["delegate"]
|
|
1283
|
-
},
|
|
1284
|
-
"options": {
|
|
1285
|
-
"title": "DelegateResolverOptions",
|
|
1286
|
-
"type": "object",
|
|
1287
|
-
"additionalProperties": true
|
|
1288
|
-
},
|
|
1289
|
-
"argsMapping": {
|
|
1290
|
-
"$ref": "#/definitions/argsMapping"
|
|
1291
|
-
},
|
|
1292
|
-
"resultsMapping": {
|
|
1293
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1294
|
-
},
|
|
1295
|
-
"to": {
|
|
1296
|
-
"description": "A ref to a query/mutation/property to delegate to.",
|
|
1297
|
-
"type": "string",
|
|
1298
|
-
"minLength": 1
|
|
1299
|
-
},
|
|
1300
|
-
"args": {
|
|
1301
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1302
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1303
|
-
},
|
|
1304
|
-
"results": {
|
|
1305
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1306
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1307
|
-
}
|
|
1308
|
-
},
|
|
1309
|
-
"required": ["name", "to"],
|
|
1310
|
-
"additionalProperties": false
|
|
1311
|
-
},
|
|
1312
|
-
"salsifyResolver": {
|
|
1313
|
-
"title": "SalsifyResolver",
|
|
1314
|
-
"type": "object",
|
|
1315
|
-
"properties": {
|
|
1316
|
-
"if": {
|
|
1317
|
-
"type": "string"
|
|
1318
|
-
},
|
|
1319
|
-
"id": {
|
|
1320
|
-
"type": "string",
|
|
1321
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1322
|
-
},
|
|
1323
|
-
"name": {
|
|
1324
|
-
"title": "Salsify Resolver Name",
|
|
1325
|
-
"type": "string",
|
|
1326
|
-
"description": "Name of the resolver function.",
|
|
1327
|
-
"enum": ["salsify:listChannelProducts"]
|
|
1328
|
-
},
|
|
1329
|
-
"service": {
|
|
1330
|
-
"type": "string",
|
|
1331
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1332
|
-
},
|
|
1333
|
-
"options": {
|
|
1334
|
-
"title": "SalsifyResolverOptions",
|
|
1335
|
-
"type": "object",
|
|
1336
|
-
"additionalProperties": true
|
|
1337
|
-
},
|
|
1338
|
-
"args": {
|
|
1339
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1340
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1341
|
-
},
|
|
1342
|
-
"results": {
|
|
1343
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1344
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1345
|
-
},
|
|
1346
|
-
"argsMapping": {
|
|
1347
|
-
"$ref": "#/definitions/argsMapping"
|
|
1348
|
-
},
|
|
1349
|
-
"resultsMapping": {
|
|
1350
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1351
|
-
}
|
|
1352
|
-
},
|
|
1353
|
-
"required": ["name", "service"],
|
|
1354
|
-
"additionalProperties": false
|
|
1355
|
-
},
|
|
1356
|
-
"syndigoResolver": {
|
|
1357
|
-
"title": "SyndigoResolver",
|
|
1358
|
-
"type": "object",
|
|
1359
|
-
"properties": {
|
|
1360
|
-
"if": {
|
|
1361
|
-
"type": "string"
|
|
1362
|
-
},
|
|
1363
|
-
"id": {
|
|
1364
|
-
"type": "string",
|
|
1365
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1366
|
-
},
|
|
1367
|
-
"name": {
|
|
1368
|
-
"title": "Syndigo Resolver Name",
|
|
1369
|
-
"type": "string",
|
|
1370
|
-
"description": "Name of the resolver function.",
|
|
1371
|
-
"enum": ["syndigo:searchProducts"]
|
|
1372
|
-
},
|
|
1373
|
-
"service": {
|
|
1374
|
-
"type": "string",
|
|
1375
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1376
|
-
},
|
|
1377
|
-
"options": {
|
|
1378
|
-
"title": "SyndigoResolverOptions",
|
|
1379
|
-
"type": "object",
|
|
1380
|
-
"additionalProperties": true
|
|
1381
|
-
},
|
|
1382
|
-
"args": {
|
|
1383
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1384
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1385
|
-
},
|
|
1386
|
-
"results": {
|
|
1387
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1388
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1389
|
-
},
|
|
1390
|
-
"argsMapping": {
|
|
1391
|
-
"$ref": "#/definitions/argsMapping"
|
|
1392
|
-
},
|
|
1393
|
-
"resultsMapping": {
|
|
1394
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1395
|
-
}
|
|
1396
|
-
},
|
|
1397
|
-
"required": ["name", "service"],
|
|
1398
|
-
"additionalProperties": false
|
|
1399
|
-
},
|
|
1400
|
-
"shapedbResolver": {
|
|
1401
|
-
"title": "ShapedbResolver",
|
|
1402
|
-
"type": "object",
|
|
1403
|
-
"properties": {
|
|
1404
|
-
"if": {
|
|
1405
|
-
"type": "string"
|
|
1406
|
-
},
|
|
1407
|
-
"id": {
|
|
1408
|
-
"type": "string",
|
|
1409
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1410
|
-
},
|
|
1411
|
-
"name": {
|
|
1412
|
-
"title": "ShapedbResolverName",
|
|
1413
|
-
"type": "string",
|
|
1414
|
-
"description": "Name of the resolver function.",
|
|
1415
|
-
"enum": [
|
|
1416
|
-
"shapedb:get",
|
|
1417
|
-
"shapedb:create",
|
|
1418
|
-
"shapedb:update",
|
|
1419
|
-
"shapedb:delete",
|
|
1420
|
-
"shapedb:duplicate",
|
|
1421
|
-
"shapedb:find"
|
|
1422
|
-
]
|
|
1423
|
-
},
|
|
1424
|
-
"service": {
|
|
1425
|
-
"type": "string",
|
|
1426
|
-
"description": "Internal service identifier.",
|
|
1427
|
-
"enum": ["shapedb"]
|
|
1428
|
-
},
|
|
1429
|
-
"options": {
|
|
1430
|
-
"title": "ShapedbResolverOptions",
|
|
1431
|
-
"type": "object",
|
|
1432
|
-
"additionalProperties": true
|
|
1433
|
-
},
|
|
1434
|
-
"argsMapping": {
|
|
1435
|
-
"$ref": "#/definitions/argsMapping"
|
|
1436
|
-
},
|
|
1437
|
-
"resultsMapping": {
|
|
1438
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1439
|
-
},
|
|
1440
|
-
"shapeName": {
|
|
1441
|
-
"description": "A Shape name for the resolver to use.",
|
|
1442
|
-
"type": "string",
|
|
1443
|
-
"minLength": 1
|
|
1444
|
-
},
|
|
1445
|
-
"args": {
|
|
1446
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1447
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1448
|
-
},
|
|
1449
|
-
"results": {
|
|
1450
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1451
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1452
|
-
}
|
|
1453
|
-
},
|
|
1454
|
-
"required": ["name", "service", "shapeName"],
|
|
1455
|
-
"additionalProperties": false
|
|
1456
|
-
},
|
|
1457
|
-
"shapedbResolverShapeNameNotRequired": {
|
|
1458
|
-
"title": "ShapedbResolverShapeNameNotRequired",
|
|
1459
|
-
"type": "object",
|
|
1460
|
-
"properties": {
|
|
1461
|
-
"if": {
|
|
1462
|
-
"type": "string"
|
|
1463
|
-
},
|
|
1464
|
-
"id": {
|
|
1465
|
-
"type": "string",
|
|
1466
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1467
|
-
},
|
|
1468
|
-
"name": {
|
|
1469
|
-
"title": "ShapedbResolverShapeNameNotRequiredName",
|
|
1470
|
-
"type": "string",
|
|
1471
|
-
"description": "Name of the resolver function.",
|
|
1472
|
-
"enum": ["shapedb:list", "shapedb:taxonomySuggest", "shapedb:getRelated"]
|
|
1473
|
-
},
|
|
1474
|
-
"service": {
|
|
1475
|
-
"type": "string",
|
|
1476
|
-
"description": "Internal service identifier.",
|
|
1477
|
-
"enum": ["shapedb"]
|
|
1478
|
-
},
|
|
1479
|
-
"options": {
|
|
1480
|
-
"title": "ShapedbResolverShapeNameNotRequiredOptions",
|
|
1481
|
-
"type": "object",
|
|
1482
|
-
"additionalProperties": true
|
|
1483
|
-
},
|
|
1484
|
-
"shapeName": {
|
|
1485
|
-
"description": "An optional Shape name for the resolver.",
|
|
1486
|
-
"type": "string",
|
|
1487
|
-
"minLength": 1
|
|
1488
|
-
},
|
|
1489
|
-
"args": {
|
|
1490
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1491
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1492
|
-
},
|
|
1493
|
-
"results": {
|
|
1494
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1495
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1496
|
-
},
|
|
1497
|
-
"argsMapping": {
|
|
1498
|
-
"$ref": "#/definitions/argsMapping"
|
|
1499
|
-
},
|
|
1500
|
-
"resultsMapping": {
|
|
1501
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1502
|
-
}
|
|
1503
|
-
},
|
|
1504
|
-
"required": ["name", "service"],
|
|
1505
|
-
"additionalProperties": false
|
|
1506
|
-
},
|
|
1507
|
-
"aiToolConfig": {
|
|
1508
|
-
"title": "AIToolConfig",
|
|
1509
|
-
"type": "object",
|
|
1510
|
-
"properties": {
|
|
1511
|
-
"ref": {
|
|
1512
|
-
"type": "string"
|
|
1513
|
-
},
|
|
1514
|
-
"selectionSet": {
|
|
1515
|
-
"type": "string"
|
|
1516
|
-
}
|
|
1517
|
-
},
|
|
1518
|
-
"required": ["ref"],
|
|
1519
|
-
"additionalProperties": false
|
|
1520
|
-
},
|
|
1521
|
-
"aiSimilarityGuardrail": {
|
|
1522
|
-
"title": "AISimilarityGuardrail",
|
|
1523
|
-
"type": "object",
|
|
1524
|
-
"properties": {
|
|
1525
|
-
"name": {
|
|
1526
|
-
"enum": ["similarity"]
|
|
1527
|
-
},
|
|
1528
|
-
"shape": {
|
|
1529
|
-
"type": "string"
|
|
1530
|
-
},
|
|
1531
|
-
"defaultResponse": {
|
|
1532
|
-
"type": "string"
|
|
1533
|
-
},
|
|
1534
|
-
"threshold": {
|
|
1535
|
-
"type": "number"
|
|
1536
|
-
}
|
|
1537
|
-
},
|
|
1538
|
-
"required": ["name", "shape", "defaultResponse"],
|
|
1539
|
-
"additionalProperties": false
|
|
1540
|
-
},
|
|
1541
|
-
"aiGuardrail": {
|
|
1542
|
-
"title": "AIGuardrail",
|
|
1543
|
-
"discriminator": {
|
|
1544
|
-
"propertyName": "name"
|
|
1545
|
-
},
|
|
1546
|
-
"oneOf": [
|
|
1547
|
-
{
|
|
1548
|
-
"$ref": "#/definitions/aiSimilarityGuardrail"
|
|
1549
|
-
}
|
|
1550
|
-
]
|
|
1551
|
-
},
|
|
1552
|
-
"aiGenerateTextResolverOptions": {
|
|
1553
|
-
"title": "AIGenerateTextResolverOptions",
|
|
1554
|
-
"type": "object",
|
|
1555
|
-
"properties": {
|
|
1556
|
-
"history": {
|
|
1557
|
-
"title": "history",
|
|
1558
|
-
"type": "boolean"
|
|
1559
|
-
},
|
|
1560
|
-
"maxTokens": {
|
|
1561
|
-
"type": "integer",
|
|
1562
|
-
"title": "Maximum Tokens",
|
|
1563
|
-
"description": "Maximum number of tokens to generate."
|
|
1564
|
-
},
|
|
1565
|
-
"temperature": {
|
|
1566
|
-
"type": "number",
|
|
1567
|
-
"title": "Temperature",
|
|
1568
|
-
"description": "This is a number between 0 (almost no randomness) and 1 (very random). It is recommended to set either `temperature` or `topP`, but not both. Defaults to 0",
|
|
1569
|
-
"minimum": 0,
|
|
1570
|
-
"maximum": 1
|
|
1571
|
-
},
|
|
1572
|
-
"topP": {
|
|
1573
|
-
"type": "number",
|
|
1574
|
-
"title": "Top P",
|
|
1575
|
-
"description": "Nucleus sampling. This is a number between 0 and 1. E.g. 0.1 would mean that only tokens with the top 10% probability mass are considered. It is recommended to set either `temperature` or `topP`, but not both.",
|
|
1576
|
-
"minimum": 0,
|
|
1577
|
-
"maximum": 1
|
|
1578
|
-
},
|
|
1579
|
-
"topK": {
|
|
1580
|
-
"type": "number",
|
|
1581
|
-
"title": "Top K",
|
|
1582
|
-
"description": "Only sample from the top K options for each subsequent token. Used to remove \"long tail\" low probability responses. Recommended for advanced use cases only. You usually only need to use temperature."
|
|
1583
|
-
},
|
|
1584
|
-
"presencePenalty": {
|
|
1585
|
-
"type": "number",
|
|
1586
|
-
"title": "Presence penalty setting",
|
|
1587
|
-
"description": "It affects the likelihood of the model to repeat information that is already in the prompt. The presence penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.",
|
|
1588
|
-
"minimum": -1,
|
|
1589
|
-
"maximum": 1
|
|
1590
|
-
},
|
|
1591
|
-
"frequencyPenalty": {
|
|
1592
|
-
"type": "number",
|
|
1593
|
-
"title": "Frequency penalty setting",
|
|
1594
|
-
"description": "It affects the likelihood of the model to repeatedly use the same words or phrases. The frequency penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.",
|
|
1595
|
-
"minimum": -1,
|
|
1596
|
-
"maximum": 1
|
|
1597
|
-
},
|
|
1598
|
-
"stopSequences": {
|
|
1599
|
-
"title": "Stop sequences",
|
|
1600
|
-
"description": "If set, the model will stop generating text when one of the stop sequences is generated.",
|
|
1601
|
-
"type": "array",
|
|
1602
|
-
"items": {
|
|
1603
|
-
"type": "string"
|
|
1604
|
-
}
|
|
1605
|
-
},
|
|
1606
|
-
"seed": {
|
|
1607
|
-
"type": "integer",
|
|
1608
|
-
"title": "Seed",
|
|
1609
|
-
"description": " The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results."
|
|
1610
|
-
},
|
|
1611
|
-
"maxRetries": {
|
|
1612
|
-
"type": "integer",
|
|
1613
|
-
"description": "Maximum number of retries. Set to 0 to disable retries. Defaults to 2"
|
|
1614
|
-
},
|
|
1615
|
-
"toolChoice": {
|
|
1616
|
-
"type": "string",
|
|
1617
|
-
"description": "The tool choice strategy. Default: 'auto'",
|
|
1618
|
-
"anyOf": [
|
|
1619
|
-
{
|
|
1620
|
-
"enum": ["auto", "none", "required"]
|
|
1621
|
-
},
|
|
1622
|
-
{
|
|
1623
|
-
"type": "string"
|
|
1624
|
-
}
|
|
1625
|
-
]
|
|
1626
|
-
},
|
|
1627
|
-
"maxToolRoundtrips": {
|
|
1628
|
-
"type": "integer",
|
|
1629
|
-
"description": "Maximal number of automatic roundtrips for tool calls."
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
},
|
|
1633
|
-
"aiGenerateTextResolver": {
|
|
1634
|
-
"title": "AIGenerateTextResolver",
|
|
1635
|
-
"type": "object",
|
|
1636
|
-
"properties": {
|
|
1637
|
-
"if": {
|
|
1638
|
-
"type": "string"
|
|
1639
|
-
},
|
|
1640
|
-
"id": {
|
|
1641
|
-
"type": "string",
|
|
1642
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1643
|
-
},
|
|
1644
|
-
"name": {
|
|
1645
|
-
"title": "AI Resolver Name",
|
|
1646
|
-
"type": "string",
|
|
1647
|
-
"description": "Name of the resolver function.",
|
|
1648
|
-
"enum": ["ai:generateText", "ai:chat"]
|
|
1649
|
-
},
|
|
1650
|
-
"service": {
|
|
1651
|
-
"type": "string",
|
|
1652
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1653
|
-
},
|
|
1654
|
-
"options": {
|
|
1655
|
-
"$ref": "#/definitions/aiGenerateTextResolverOptions"
|
|
1656
|
-
},
|
|
1657
|
-
"systemPrompt": {
|
|
1658
|
-
"type": "string"
|
|
1659
|
-
},
|
|
1660
|
-
"inputTemplate": {
|
|
1661
|
-
"type": "string"
|
|
1662
|
-
},
|
|
1663
|
-
"model": {
|
|
1664
|
-
"type": "string"
|
|
1665
|
-
},
|
|
1666
|
-
"tools": {
|
|
1667
|
-
"type": "array",
|
|
1668
|
-
"items": {
|
|
1669
|
-
"oneOf": [
|
|
1670
|
-
{
|
|
1671
|
-
"type": "string"
|
|
1672
|
-
},
|
|
1673
|
-
{
|
|
1674
|
-
"$ref": "#/definitions/aiToolConfig"
|
|
1675
|
-
}
|
|
1676
|
-
]
|
|
1677
|
-
}
|
|
1678
|
-
},
|
|
1679
|
-
"guardrails": {
|
|
1680
|
-
"type": "array",
|
|
1681
|
-
"items": {
|
|
1682
|
-
"$ref": "#/definitions/aiGuardrail"
|
|
1683
|
-
}
|
|
1684
|
-
},
|
|
1685
|
-
"context": {
|
|
1686
|
-
"description": "Mapping and serialization configuration for prompt context.",
|
|
1687
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1688
|
-
},
|
|
1689
|
-
"results": {
|
|
1690
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1691
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1692
|
-
}
|
|
1693
|
-
},
|
|
1694
|
-
"required": ["name", "service", "model", "systemPrompt"],
|
|
1695
|
-
"additionalProperties": false
|
|
1696
|
-
},
|
|
1697
|
-
"aiGeneratePropertyResolver": {
|
|
1698
|
-
"title": "AIGeneratePropertyResolver",
|
|
1699
|
-
"type": "object",
|
|
1700
|
-
"properties": {
|
|
1701
|
-
"id": {
|
|
1702
|
-
"type": "string",
|
|
1703
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1704
|
-
},
|
|
1705
|
-
"name": {
|
|
1706
|
-
"title": "AI Resolver Name",
|
|
1707
|
-
"type": "string",
|
|
1708
|
-
"description": "Name of the resolver function.",
|
|
1709
|
-
"enum": ["ai:generateProperty"]
|
|
1710
|
-
},
|
|
1711
|
-
"service": {
|
|
1712
|
-
"type": "string",
|
|
1713
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1714
|
-
},
|
|
1715
|
-
"model": {
|
|
1716
|
-
"type": "string"
|
|
1717
|
-
},
|
|
1718
|
-
"systemPrompt": {
|
|
1719
|
-
"type": "string"
|
|
1720
|
-
}
|
|
1721
|
-
},
|
|
1722
|
-
"required": ["name", "service", "model"],
|
|
1723
|
-
"additionalProperties": false
|
|
1724
|
-
},
|
|
1725
|
-
"aiEmbeddingResolverOptions": {
|
|
1726
|
-
"title": "AIEmbeddingResolverOptions",
|
|
1727
|
-
"type": "object",
|
|
1728
|
-
"properties": {
|
|
1729
|
-
"useDependencies": {
|
|
1730
|
-
"type": "boolean"
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
},
|
|
1734
|
-
"aiEmbeddingResolver": {
|
|
1735
|
-
"title": "AIEmbeddingResolver",
|
|
1736
|
-
"type": "object",
|
|
1737
|
-
"properties": {
|
|
1738
|
-
"if": {
|
|
1739
|
-
"type": "string"
|
|
1740
|
-
},
|
|
1741
|
-
"id": {
|
|
1742
|
-
"type": "string",
|
|
1743
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1744
|
-
},
|
|
1745
|
-
"name": {
|
|
1746
|
-
"title": "AI Resolver Name",
|
|
1747
|
-
"type": "string",
|
|
1748
|
-
"description": "Name of the resolver function.",
|
|
1749
|
-
"enum": ["ai:createEmbedding"]
|
|
1750
|
-
},
|
|
1751
|
-
"service": {
|
|
1752
|
-
"type": "string",
|
|
1753
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1754
|
-
},
|
|
1755
|
-
"options": {
|
|
1756
|
-
"$ref": "#/definitions/aiEmbeddingResolverOptions"
|
|
1757
|
-
},
|
|
1758
|
-
"model": {
|
|
1759
|
-
"type": "string"
|
|
1760
|
-
},
|
|
1761
|
-
"args": {
|
|
1762
|
-
"description": "Mapping and serialization configuration for prompt context.",
|
|
1763
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1764
|
-
},
|
|
1765
|
-
"results": {
|
|
1766
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1767
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1768
|
-
}
|
|
1769
|
-
},
|
|
1770
|
-
"required": ["name", "service", "model"],
|
|
1771
|
-
"additionalProperties": false
|
|
1772
|
-
},
|
|
1773
|
-
"aiEmbeddingSearchResolver": {
|
|
1774
|
-
"title": "AIEmbeddingSearchResolver",
|
|
1775
|
-
"type": "object",
|
|
1776
|
-
"properties": {
|
|
1777
|
-
"if": {
|
|
1778
|
-
"type": "string"
|
|
1779
|
-
},
|
|
1780
|
-
"id": {
|
|
1781
|
-
"type": "string",
|
|
1782
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1783
|
-
},
|
|
1784
|
-
"name": {
|
|
1785
|
-
"title": "AI Resolver Name",
|
|
1786
|
-
"type": "string",
|
|
1787
|
-
"description": "Name of the resolver function.",
|
|
1788
|
-
"enum": ["ai:embeddingSearch"]
|
|
1789
|
-
},
|
|
1790
|
-
"vectorProperty": {
|
|
1791
|
-
"type": "string",
|
|
1792
|
-
"description": "A vector property ref to use for the query."
|
|
1793
|
-
},
|
|
1794
|
-
"args": {
|
|
1795
|
-
"description": "Mapping and serialization configuration for prompt context.",
|
|
1796
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1797
|
-
},
|
|
1798
|
-
"results": {
|
|
1799
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1800
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1801
|
-
}
|
|
1802
|
-
},
|
|
1803
|
-
"required": ["name", "vectorProperty"],
|
|
1804
|
-
"additionalProperties": false
|
|
1805
|
-
},
|
|
1806
|
-
"aiParseFileResolverOptions": {
|
|
1807
|
-
"title": "AIParseFileResolverOptions",
|
|
1808
|
-
"type": "object"
|
|
1809
|
-
},
|
|
1810
|
-
"aiParseFileResolver": {
|
|
1811
|
-
"title": "AIParseFileResolver",
|
|
1812
|
-
"type": "object",
|
|
1813
|
-
"properties": {
|
|
1814
|
-
"if": {
|
|
1815
|
-
"type": "string"
|
|
1816
|
-
},
|
|
1817
|
-
"id": {
|
|
1818
|
-
"type": "string",
|
|
1819
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1820
|
-
},
|
|
1821
|
-
"name": {
|
|
1822
|
-
"title": "AI Resolver Name",
|
|
1823
|
-
"type": "string",
|
|
1824
|
-
"description": "Name of the resolver function.",
|
|
1825
|
-
"enum": ["ai:parseFile"]
|
|
1826
|
-
},
|
|
1827
|
-
"service": {
|
|
1828
|
-
"type": "string",
|
|
1829
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1830
|
-
},
|
|
1831
|
-
"options": {
|
|
1832
|
-
"$ref": "#/definitions/aiEmbeddingResolverOptions"
|
|
1833
|
-
},
|
|
1834
|
-
"args": {
|
|
1835
|
-
"description": "Mapping and serialization configuration for prompt context.",
|
|
1836
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1837
|
-
},
|
|
1838
|
-
"results": {
|
|
1839
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1840
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1841
|
-
}
|
|
1842
|
-
},
|
|
1843
|
-
"required": ["name", "service"],
|
|
1844
|
-
"additionalProperties": false
|
|
1845
|
-
},
|
|
1846
|
-
"takeshapeResolver": {
|
|
1847
|
-
"title": "TakeshapeResolver",
|
|
1848
|
-
"type": "object",
|
|
1849
|
-
"properties": {
|
|
1850
|
-
"if": {
|
|
1851
|
-
"type": "string"
|
|
1852
|
-
},
|
|
1853
|
-
"id": {
|
|
1854
|
-
"type": "string",
|
|
1855
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1856
|
-
},
|
|
1857
|
-
"name": {
|
|
1858
|
-
"title": "TakeshapeResolverName",
|
|
1859
|
-
"type": "string",
|
|
1860
|
-
"description": "Name of the resolver function.",
|
|
1861
|
-
"enum": [
|
|
1862
|
-
"takeshape:get",
|
|
1863
|
-
"takeshape:getUser",
|
|
1864
|
-
"takeshape:search",
|
|
1865
|
-
"takeshape:vectorSearch",
|
|
1866
|
-
"takeshape:queryApiIndex",
|
|
1867
|
-
"takeshape:assetUrl",
|
|
1868
|
-
"takeshape:assetImage",
|
|
1869
|
-
"takeshape:assetImageMeta"
|
|
1870
|
-
]
|
|
1871
|
-
},
|
|
1872
|
-
"service": {
|
|
1873
|
-
"type": "string",
|
|
1874
|
-
"description": "Internal service identifier.",
|
|
1875
|
-
"enum": ["takeshape"]
|
|
1876
|
-
},
|
|
1877
|
-
"options": {
|
|
1878
|
-
"title": "TakeshapeResolverOptions",
|
|
1879
|
-
"type": "object",
|
|
1880
|
-
"additionalProperties": true
|
|
1881
|
-
},
|
|
1882
|
-
"shapeName": {
|
|
1883
|
-
"description": "An optional Shape name for the resolver.",
|
|
1884
|
-
"type": "string",
|
|
1885
|
-
"minLength": 1
|
|
1886
|
-
},
|
|
1887
|
-
"args": {
|
|
1888
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1889
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1890
|
-
},
|
|
1891
|
-
"results": {
|
|
1892
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1893
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1894
|
-
},
|
|
1895
|
-
"argsMapping": {
|
|
1896
|
-
"$ref": "#/definitions/argsMapping"
|
|
1897
|
-
},
|
|
1898
|
-
"resultsMapping": {
|
|
1899
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1900
|
-
}
|
|
1901
|
-
},
|
|
1902
|
-
"required": ["name", "service"],
|
|
1903
|
-
"additionalProperties": false
|
|
1904
|
-
},
|
|
1905
|
-
"graphqlResolver": {
|
|
1906
|
-
"title": "GraphqlResolver",
|
|
1907
|
-
"type": "object",
|
|
1908
|
-
"properties": {
|
|
1909
|
-
"if": {
|
|
1910
|
-
"type": "string"
|
|
1911
|
-
},
|
|
1912
|
-
"id": {
|
|
1913
|
-
"type": "string",
|
|
1914
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1915
|
-
},
|
|
1916
|
-
"name": {
|
|
1917
|
-
"title": "GraphqlResolverName",
|
|
1918
|
-
"type": "string",
|
|
1919
|
-
"description": "Name of the resolver function.",
|
|
1920
|
-
"enum": ["graphql:query", "graphql:mutation", "shopify:bulkQuery"]
|
|
1921
|
-
},
|
|
1922
|
-
"service": {
|
|
1923
|
-
"type": "string",
|
|
1924
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1925
|
-
},
|
|
1926
|
-
"argsMapping": {
|
|
1927
|
-
"$ref": "#/definitions/argsMapping"
|
|
1928
|
-
},
|
|
1929
|
-
"resultsMapping": {
|
|
1930
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1931
|
-
},
|
|
1932
|
-
"options": {
|
|
1933
|
-
"title": "GraphqlResolverOptions",
|
|
1934
|
-
"type": "object",
|
|
1935
|
-
"properties": {
|
|
1936
|
-
"selectionSet": {
|
|
1937
|
-
"type": "string"
|
|
1938
|
-
},
|
|
1939
|
-
"unboxParentSelectionSet": {
|
|
1940
|
-
"type": "boolean"
|
|
1941
|
-
},
|
|
1942
|
-
"ignoreErrors": {
|
|
1943
|
-
"type": "boolean"
|
|
1944
|
-
},
|
|
1945
|
-
"skipWhenMissingArgs": {
|
|
1946
|
-
"type": "boolean"
|
|
1947
|
-
},
|
|
1948
|
-
"ttl": {
|
|
1949
|
-
"type": "number"
|
|
1950
|
-
},
|
|
1951
|
-
"timeout": {
|
|
1952
|
-
"type": "number"
|
|
1953
|
-
},
|
|
1954
|
-
"allowStream": {
|
|
1955
|
-
"type": "boolean"
|
|
1956
|
-
},
|
|
1957
|
-
"retry": {
|
|
1958
|
-
"oneOf": [
|
|
1959
|
-
{
|
|
1960
|
-
"type": "number"
|
|
1961
|
-
},
|
|
1962
|
-
{
|
|
1963
|
-
"type": "object"
|
|
1964
|
-
}
|
|
1965
|
-
]
|
|
1966
|
-
}
|
|
1967
|
-
},
|
|
1968
|
-
"additionalProperties": true
|
|
1969
|
-
},
|
|
1970
|
-
"fieldName": {
|
|
1971
|
-
"description": "A fieldname to use in queries.",
|
|
1972
|
-
"type": "string"
|
|
1973
|
-
},
|
|
1974
|
-
"headers": {
|
|
1975
|
-
"description": "Mapping and serialization configuration for headers.",
|
|
1976
|
-
"$ref": "#/definitions/parameterConfigForHeaders"
|
|
1977
|
-
},
|
|
1978
|
-
"searchParams": {
|
|
1979
|
-
"description": "Mapping and serialization configuration for searchParams.",
|
|
1980
|
-
"$ref": "#/definitions/parameterConfigForSearchParams"
|
|
1981
|
-
},
|
|
1982
|
-
"args": {
|
|
1983
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1984
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1985
|
-
},
|
|
1986
|
-
"results": {
|
|
1987
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1988
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1989
|
-
}
|
|
1990
|
-
},
|
|
1991
|
-
"required": ["name", "service", "fieldName"],
|
|
1992
|
-
"additionalProperties": false
|
|
1993
|
-
},
|
|
1994
|
-
"restResolver": {
|
|
1995
|
-
"title": "RestResolver",
|
|
1996
|
-
"type": "object",
|
|
1997
|
-
"properties": {
|
|
1998
|
-
"if": {
|
|
1999
|
-
"type": "string"
|
|
2000
|
-
},
|
|
2001
|
-
"id": {
|
|
2002
|
-
"type": "string",
|
|
2003
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
2004
|
-
},
|
|
2005
|
-
"name": {
|
|
2006
|
-
"title": "RestResolverName",
|
|
2007
|
-
"type": "string",
|
|
2008
|
-
"description": "Name of the resolver function.",
|
|
2009
|
-
"enum": ["rest:get", "rest:head", "rest:post", "rest:put", "rest:patch", "rest:delete"]
|
|
2010
|
-
},
|
|
2011
|
-
"service": {
|
|
2012
|
-
"type": "string",
|
|
2013
|
-
"description": "Configuration for a service to use with this resolver."
|
|
2014
|
-
},
|
|
2015
|
-
"argsMapping": {
|
|
2016
|
-
"$ref": "#/definitions/argsMapping"
|
|
2017
|
-
},
|
|
2018
|
-
"searchParamsMapping": {
|
|
2019
|
-
"$ref": "#/definitions/searchParamsMapping"
|
|
2020
|
-
},
|
|
2021
|
-
"resultsMapping": {
|
|
2022
|
-
"$ref": "#/definitions/resultsMapping"
|
|
2023
|
-
},
|
|
2024
|
-
"options": {
|
|
2025
|
-
"title": "RestResolverOptions",
|
|
2026
|
-
"type": "object",
|
|
2027
|
-
"properties": {
|
|
2028
|
-
"trailingSlash": {
|
|
2029
|
-
"type": "boolean"
|
|
2030
|
-
},
|
|
2031
|
-
"allowStream": {
|
|
2032
|
-
"type": "boolean"
|
|
2033
|
-
},
|
|
2034
|
-
"ttl": {
|
|
2035
|
-
"type": "number"
|
|
2036
|
-
},
|
|
2037
|
-
"timeout": {
|
|
2038
|
-
"type": "number"
|
|
2039
|
-
},
|
|
2040
|
-
"retry": {
|
|
2041
|
-
"oneOf": [
|
|
2042
|
-
{
|
|
2043
|
-
"type": "number"
|
|
2044
|
-
},
|
|
2045
|
-
{
|
|
2046
|
-
"type": "object"
|
|
2047
|
-
}
|
|
2048
|
-
]
|
|
2049
|
-
}
|
|
2050
|
-
},
|
|
2051
|
-
"additionalProperties": true
|
|
2052
|
-
},
|
|
2053
|
-
"body": {
|
|
2054
|
-
"description": "Mapping and serialization configuration for a request body.",
|
|
2055
|
-
"$ref": "#/definitions/parameterConfigForBody"
|
|
2056
|
-
},
|
|
2057
|
-
"form": {
|
|
2058
|
-
"description": "Mapping and serialization configuration for form data.",
|
|
2059
|
-
"$ref": "#/definitions/parameterConfigForSearchParams"
|
|
2060
|
-
},
|
|
2061
|
-
"headers": {
|
|
2062
|
-
"description": "Mapping and serialization configuration for headers.",
|
|
2063
|
-
"$ref": "#/definitions/parameterConfigForHeaders"
|
|
2064
|
-
},
|
|
2065
|
-
"json": {
|
|
2066
|
-
"description": "Mapping and serialization configuration for a json request body.",
|
|
2067
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
2068
|
-
},
|
|
2069
|
-
"path": {
|
|
2070
|
-
"description": "Mapping and serialization configuration for the path, or a simple string.",
|
|
2071
|
-
"oneOf": [
|
|
2072
|
-
{
|
|
2073
|
-
"$ref": "#/definitions/parameterConfigForPathParams"
|
|
2074
|
-
},
|
|
2075
|
-
{
|
|
2076
|
-
"type": "string"
|
|
2077
|
-
}
|
|
2078
|
-
]
|
|
2079
|
-
},
|
|
2080
|
-
"searchParams": {
|
|
2081
|
-
"description": "Mapping and serialization configuration for searchParams.",
|
|
2082
|
-
"$ref": "#/definitions/parameterConfigForSearchParams"
|
|
2083
|
-
},
|
|
2084
|
-
"args": {
|
|
2085
|
-
"description": "Mapping and serialization configuration for args.",
|
|
2086
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
2087
|
-
},
|
|
2088
|
-
"results": {
|
|
2089
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
2090
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
2091
|
-
}
|
|
2092
|
-
},
|
|
2093
|
-
"required": ["name", "service", "path"],
|
|
2094
|
-
"additionalProperties": false
|
|
2095
|
-
},
|
|
2096
|
-
"awsLambdaResolver": {
|
|
2097
|
-
"title": "AwsLambdaResolver",
|
|
2098
|
-
"type": "object",
|
|
2099
|
-
"properties": {
|
|
2100
|
-
"if": {
|
|
2101
|
-
"type": "string"
|
|
2102
|
-
},
|
|
2103
|
-
"id": {
|
|
2104
|
-
"type": "string",
|
|
2105
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
2106
|
-
},
|
|
2107
|
-
"name": {
|
|
2108
|
-
"title": "AwsLambdaResolverName",
|
|
2109
|
-
"type": "string",
|
|
2110
|
-
"description": "Name of the resolver function.",
|
|
2111
|
-
"enum": ["awsLambda:invoke"]
|
|
2112
|
-
},
|
|
2113
|
-
"service": {
|
|
2114
|
-
"type": "string",
|
|
2115
|
-
"description": "Configuration for a service to use with this resolver."
|
|
2116
|
-
},
|
|
2117
|
-
"options": {
|
|
2118
|
-
"title": "AwsLambdaResolverOptions",
|
|
2119
|
-
"type": "object",
|
|
2120
|
-
"additionalProperties": true
|
|
2121
|
-
},
|
|
2122
|
-
"payload": {
|
|
2123
|
-
"description": "Mapping configuration the Payload.",
|
|
2124
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
2125
|
-
},
|
|
2126
|
-
"functionName": {
|
|
2127
|
-
"description": "Mapping configuration for the FunctionName.",
|
|
2128
|
-
"oneOf": [
|
|
2129
|
-
{
|
|
2130
|
-
"type": "string"
|
|
2131
|
-
},
|
|
2132
|
-
{
|
|
2133
|
-
"$ref": "#/definitions/parameterConfigForAwsLambda"
|
|
2134
|
-
}
|
|
2135
|
-
]
|
|
2136
|
-
},
|
|
2137
|
-
"clientContext": {
|
|
2138
|
-
"description": "Mapping configuration for the ClientContext.",
|
|
2139
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
2140
|
-
},
|
|
2141
|
-
"args": {
|
|
2142
|
-
"description": "Mapping and serialization configuration for args.",
|
|
2143
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
2144
|
-
},
|
|
2145
|
-
"results": {
|
|
2146
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
2147
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
2148
|
-
},
|
|
2149
|
-
"argsMapping": {
|
|
2150
|
-
"$ref": "#/definitions/argsMapping"
|
|
2151
|
-
},
|
|
2152
|
-
"searchParamsMapping": {
|
|
2153
|
-
"description": "Set or evaluate directives to generate searchParams for the service endpoint.",
|
|
2154
|
-
"$ref": "#/definitions/searchParamsMapping"
|
|
2155
|
-
},
|
|
2156
|
-
"resultsMapping": {
|
|
2157
|
-
"$ref": "#/definitions/resultsMapping"
|
|
2158
|
-
}
|
|
2159
|
-
},
|
|
2160
|
-
"required": ["name", "service", "functionName"],
|
|
2161
|
-
"additionalProperties": false
|
|
2162
|
-
},
|
|
2163
|
-
"composeResolver": {
|
|
2164
|
-
"title": "ComposeResolver",
|
|
2165
|
-
"type": "object",
|
|
2166
|
-
"properties": {
|
|
2167
|
-
"compose": {
|
|
2168
|
-
"type": "array",
|
|
2169
|
-
"items": {
|
|
2170
|
-
"$ref": "#/definitions/basicResolver"
|
|
2171
|
-
}
|
|
2172
|
-
},
|
|
2173
|
-
"resultsMapping": {
|
|
2174
|
-
"oneOf": [
|
|
2175
|
-
{
|
|
2176
|
-
"$ref": "#/definitions/directiveMappingMap"
|
|
2177
|
-
},
|
|
2178
|
-
{
|
|
2179
|
-
"$ref": "#/definitions/directiveConfig"
|
|
2180
|
-
}
|
|
2181
|
-
]
|
|
2182
|
-
},
|
|
2183
|
-
"results": {
|
|
2184
|
-
"description": "Mapping configuration for final query results.",
|
|
2185
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
2186
|
-
}
|
|
2187
|
-
},
|
|
2188
|
-
"required": ["compose"],
|
|
2189
|
-
"additionalProperties": false
|
|
2190
|
-
},
|
|
2191
|
-
"resolver": {
|
|
2192
|
-
"title": "Resolver",
|
|
2193
|
-
"oneOf": [
|
|
2194
|
-
{
|
|
2195
|
-
"$ref": "#/definitions/basicResolver"
|
|
2196
|
-
},
|
|
2197
|
-
{
|
|
2198
|
-
"$ref": "#/definitions/composeResolver"
|
|
2199
|
-
}
|
|
2200
|
-
]
|
|
2201
|
-
},
|
|
2202
|
-
"dependencies": {
|
|
2203
|
-
"title": "Dependencies",
|
|
2204
|
-
"type": "string"
|
|
2205
|
-
},
|
|
2206
|
-
"ref": {
|
|
2207
|
-
"title": "Ref",
|
|
2208
|
-
"type": "string"
|
|
2209
|
-
},
|
|
2210
|
-
"indexed": {
|
|
2211
|
-
"title": "Indexed",
|
|
2212
|
-
"type": "object",
|
|
2213
|
-
"properties": {
|
|
2214
|
-
"nested": {
|
|
2215
|
-
"type": "boolean"
|
|
2216
|
-
}
|
|
2217
|
-
},
|
|
2218
|
-
"additionalProperties": false
|
|
2219
|
-
},
|
|
2220
|
-
"graphql": {
|
|
2221
|
-
"title": "GraphQLConfig",
|
|
2222
|
-
"type": "object",
|
|
2223
|
-
"properties": {
|
|
2224
|
-
"json": {
|
|
2225
|
-
"type": "boolean"
|
|
2226
|
-
}
|
|
2227
|
-
},
|
|
2228
|
-
"additionalProperties": false
|
|
2229
|
-
},
|
|
2230
|
-
"query": {
|
|
2231
|
-
"title": "Query JSON",
|
|
2232
|
-
"type": "object",
|
|
2233
|
-
"properties": {
|
|
2234
|
-
"args": {
|
|
2235
|
-
"description": "The args field specifies the name of a Shape for the input arguments required by your resolver.",
|
|
2236
|
-
"$ref": "#/definitions/args"
|
|
2237
|
-
},
|
|
2238
|
-
"resolver": {
|
|
2239
|
-
"description": "Configures the resolver for your query or mutation.",
|
|
2240
|
-
"$ref": "#/definitions/resolver"
|
|
2241
|
-
},
|
|
2242
|
-
"shape": {
|
|
2243
|
-
"$ref": "#/definitions/returnShape",
|
|
2244
|
-
"description": "Specifies which shape is returned by the query or mutation. The shape can refer to a shape in the schema's \"shapes\" object or a shape that's available on a service schema."
|
|
2245
|
-
},
|
|
2246
|
-
"description": {
|
|
2247
|
-
"type": "string",
|
|
2248
|
-
"description": "Provides more detail about what the query or mutation is for. This will be displayed in the automatically-generated GraphQL API docs."
|
|
2249
|
-
}
|
|
2250
|
-
},
|
|
2251
|
-
"required": ["resolver", "shape"],
|
|
2252
|
-
"additionalProperties": false
|
|
2253
|
-
},
|
|
2254
|
-
"propertySchema": {
|
|
2255
|
-
"title": "PropertySchema",
|
|
2256
|
-
"type": "object",
|
|
2257
|
-
"properties": {
|
|
2258
|
-
"$ref": {
|
|
2259
|
-
"type": "string",
|
|
2260
|
-
"format": "uri-reference"
|
|
2261
|
-
},
|
|
2262
|
-
"title": {
|
|
2263
|
-
"type": "string"
|
|
2264
|
-
},
|
|
2265
|
-
"description": {
|
|
2266
|
-
"type": "string"
|
|
2267
|
-
},
|
|
2268
|
-
"default": {},
|
|
2269
|
-
"readOnly": {
|
|
2270
|
-
"type": "boolean",
|
|
2271
|
-
"default": false
|
|
2272
|
-
},
|
|
2273
|
-
"multipleOf": {
|
|
2274
|
-
"type": "number",
|
|
2275
|
-
"exclusiveMinimum": 0
|
|
2276
|
-
},
|
|
2277
|
-
"maximum": {
|
|
2278
|
-
"type": "number"
|
|
2279
|
-
},
|
|
2280
|
-
"exclusiveMaximum": {
|
|
2281
|
-
"type": "number"
|
|
2282
|
-
},
|
|
2283
|
-
"minimum": {
|
|
2284
|
-
"type": "number"
|
|
2285
|
-
},
|
|
2286
|
-
"exclusiveMinimum": {
|
|
2287
|
-
"type": "number"
|
|
2288
|
-
},
|
|
2289
|
-
"maxLength": {
|
|
2290
|
-
"$ref": "#/definitions/nonNegativeInteger"
|
|
2291
|
-
},
|
|
2292
|
-
"minLength": {
|
|
2293
|
-
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
|
2294
|
-
},
|
|
2295
|
-
"pattern": {
|
|
2296
|
-
"type": "string",
|
|
2297
|
-
"format": "regex"
|
|
2298
|
-
},
|
|
2299
|
-
"additionalItems": {
|
|
2300
|
-
"$ref": "#/definitions/propertySchema"
|
|
2301
|
-
},
|
|
2302
|
-
"items": {
|
|
2303
|
-
"$ref": "#/definitions/propertySchema"
|
|
2304
|
-
},
|
|
2305
|
-
"maxItems": {
|
|
2306
|
-
"$ref": "#/definitions/nonNegativeInteger"
|
|
2307
|
-
},
|
|
2308
|
-
"minItems": {
|
|
2309
|
-
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
|
2310
|
-
},
|
|
2311
|
-
"uniqueItems": {
|
|
2312
|
-
"type": "boolean",
|
|
2313
|
-
"default": false
|
|
2314
|
-
},
|
|
2315
|
-
"contains": {
|
|
2316
|
-
"$ref": "#/definitions/propertySchema"
|
|
2317
|
-
},
|
|
2318
|
-
"maxProperties": {
|
|
2319
|
-
"$ref": "#/definitions/nonNegativeInteger"
|
|
2320
|
-
},
|
|
2321
|
-
"minProperties": {
|
|
2322
|
-
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
|
2323
|
-
},
|
|
2324
|
-
"required": {
|
|
2325
|
-
"$ref": "#/definitions/stringArray"
|
|
2326
|
-
},
|
|
2327
|
-
"additionalProperties": {
|
|
2328
|
-
"oneOf": [
|
|
2329
|
-
{
|
|
2330
|
-
"$ref": "#/definitions/propertySchema"
|
|
2331
|
-
},
|
|
2332
|
-
{
|
|
2333
|
-
"enum": [false]
|
|
2334
|
-
}
|
|
2335
|
-
]
|
|
2336
|
-
},
|
|
2337
|
-
"definitions": {
|
|
2338
|
-
"type": "object",
|
|
2339
|
-
"additionalProperties": {
|
|
2340
|
-
"$ref": "#/definitions/propertySchema"
|
|
2341
|
-
},
|
|
2342
|
-
"default": {}
|
|
2343
|
-
},
|
|
2344
|
-
"properties": {
|
|
2345
|
-
"type": "object",
|
|
2346
|
-
"additionalProperties": {
|
|
2347
|
-
"$ref": "#/definitions/propertySchema"
|
|
2348
|
-
},
|
|
2349
|
-
"default": {}
|
|
2350
|
-
},
|
|
2351
|
-
"const": {},
|
|
2352
|
-
"enum": {
|
|
2353
|
-
"type": "array",
|
|
2354
|
-
"minItems": 1,
|
|
2355
|
-
"uniqueItems": true
|
|
2356
|
-
},
|
|
2357
|
-
"type": {
|
|
2358
|
-
"anyOf": [
|
|
2359
|
-
{
|
|
2360
|
-
"$ref": "#/definitions/simpleTypes"
|
|
2361
|
-
},
|
|
2362
|
-
{
|
|
2363
|
-
"type": "array",
|
|
2364
|
-
"items": {
|
|
2365
|
-
"$ref": "#/definitions/simpleTypes"
|
|
2366
|
-
},
|
|
2367
|
-
"minItems": 1,
|
|
2368
|
-
"uniqueItems": true
|
|
2369
|
-
}
|
|
2370
|
-
]
|
|
2371
|
-
},
|
|
2372
|
-
"format": {
|
|
2373
|
-
"type": "string"
|
|
2374
|
-
},
|
|
2375
|
-
"contentMediaType": {
|
|
2376
|
-
"type": "string"
|
|
2377
|
-
},
|
|
2378
|
-
"contentEncoding": {
|
|
2379
|
-
"type": "string"
|
|
2380
|
-
},
|
|
2381
|
-
"allOf": {
|
|
2382
|
-
"$ref": "#/definitions/schemaArray"
|
|
2383
|
-
},
|
|
2384
|
-
"discriminator": {
|
|
2385
|
-
"type": "object",
|
|
2386
|
-
"properties": {
|
|
2387
|
-
"propertyName": {
|
|
2388
|
-
"type": "string"
|
|
2389
|
-
}
|
|
2390
|
-
}
|
|
2391
|
-
},
|
|
2392
|
-
"oneOf": {
|
|
2393
|
-
"$ref": "#/definitions/schemaArray"
|
|
2394
|
-
},
|
|
2395
|
-
"extends": {
|
|
2396
|
-
"$ref": "#/definitions/objectOrRefArray"
|
|
2397
|
-
},
|
|
2398
|
-
"@backreference": {
|
|
2399
|
-
"$ref": "#/definitions/backreference"
|
|
2400
|
-
},
|
|
2401
|
-
"@input": {
|
|
2402
|
-
"description": "A PropertySchema providing an alternative shape for a GraphQL input type.",
|
|
2403
|
-
"$ref": "#/definitions/propertySchema"
|
|
2404
|
-
},
|
|
2405
|
-
"@output": {
|
|
2406
|
-
"description": "A PropertySchema which is original output.",
|
|
2407
|
-
"$ref": "#/definitions/propertySchema"
|
|
2408
|
-
},
|
|
2409
|
-
"@syncLocaleStructure": {
|
|
2410
|
-
"type": "boolean"
|
|
2411
|
-
},
|
|
2412
|
-
"@sensitive": {
|
|
2413
|
-
"type": "boolean"
|
|
2414
|
-
},
|
|
2415
|
-
"@draftjs": {
|
|
2416
|
-
"type": "boolean"
|
|
2417
|
-
},
|
|
2418
|
-
"@l10n": {
|
|
2419
|
-
"type": "boolean"
|
|
2420
|
-
},
|
|
2421
|
-
"@key": {
|
|
2422
|
-
"type": "string",
|
|
2423
|
-
"pattern": "^[-_a-zA-Z0-9]+$"
|
|
2424
|
-
},
|
|
2425
|
-
"@workflow": {
|
|
2426
|
-
"type": "string"
|
|
2427
|
-
},
|
|
2428
|
-
"@mapping": {
|
|
2429
|
-
"$ref": "#/definitions/fieldMapping"
|
|
2430
|
-
},
|
|
2431
|
-
"@tag": {
|
|
2432
|
-
"type": "string"
|
|
2433
|
-
},
|
|
2434
|
-
"@tags": {
|
|
2435
|
-
"type": "array",
|
|
2436
|
-
"items": {
|
|
2437
|
-
"type": "string"
|
|
2438
|
-
}
|
|
2439
|
-
},
|
|
2440
|
-
"@deprecationReason": {
|
|
2441
|
-
"type": "string"
|
|
2442
|
-
},
|
|
2443
|
-
"@args": {
|
|
2444
|
-
"$ref": "#/definitions/args"
|
|
2445
|
-
},
|
|
2446
|
-
"@resolver": {
|
|
2447
|
-
"$ref": "#/definitions/resolver"
|
|
2448
|
-
},
|
|
2449
|
-
"@dependencies": {
|
|
2450
|
-
"$ref": "#/definitions/dependencies"
|
|
2451
|
-
},
|
|
2452
|
-
"@ref": {
|
|
2453
|
-
"$ref": "#/definitions/ref"
|
|
2454
|
-
},
|
|
2455
|
-
"@derivedFrom": {
|
|
2456
|
-
"type": "string"
|
|
2457
|
-
},
|
|
2458
|
-
"@indexed": {
|
|
2459
|
-
"$ref": "#/definitions/indexed"
|
|
2460
|
-
},
|
|
2461
|
-
"@graphql": {
|
|
2462
|
-
"$ref": "#/definitions/graphql"
|
|
2463
|
-
}
|
|
2464
|
-
},
|
|
2465
|
-
"additionalProperties": false
|
|
2466
|
-
},
|
|
2467
|
-
"shape": {
|
|
2468
|
-
"title": "Shape JSON",
|
|
2469
|
-
"description": "A Shape is a schema object for structuring and storing data from one or more sources, including the TakeShape data store and connected services",
|
|
2470
|
-
"type": "object",
|
|
2471
|
-
"properties": {
|
|
2472
|
-
"name": {
|
|
2473
|
-
"type": "string",
|
|
2474
|
-
"pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
|
|
2475
|
-
"description": "The Pascal-cased human-readable id for a Shape. This value should match the shape's key in the shapes object. This value is used in @ref and @mapping annotations"
|
|
2476
|
-
},
|
|
2477
|
-
"id": {
|
|
2478
|
-
"type": "string",
|
|
2479
|
-
"pattern": "[0-9A-Za-z_-]+",
|
|
2480
|
-
"description": "The machine-readable id for a Shape which should never change. When using TakeShape's built-in database to store Shape data, this value is used database as a stable \"table name\" and changing it will result in orphaning that data."
|
|
2481
|
-
},
|
|
2482
|
-
"title": {
|
|
2483
|
-
"type": "string",
|
|
2484
|
-
"description": "The human-readable name for a Shape for use in a UI."
|
|
2485
|
-
},
|
|
2486
|
-
"description": {
|
|
2487
|
-
"type": "string"
|
|
2488
|
-
},
|
|
2489
|
-
"type": {
|
|
2490
|
-
"enum": ["interface", "input", "output"]
|
|
2491
|
-
},
|
|
2492
|
-
"interfaces": {
|
|
2493
|
-
"type": "array",
|
|
2494
|
-
"items": {
|
|
2495
|
-
"type": "string"
|
|
2496
|
-
}
|
|
2497
|
-
},
|
|
2498
|
-
"model": {
|
|
2499
|
-
"description": "Specifying a model type allows Shape data to be stored in TakeShape's built-in database",
|
|
2500
|
-
"type": "object",
|
|
2501
|
-
"properties": {
|
|
2502
|
-
"type": {
|
|
2503
|
-
"title": "Model Type",
|
|
2504
|
-
"type": "string",
|
|
2505
|
-
"enum": ["single", "multiple", "taxonomy"]
|
|
2506
|
-
}
|
|
2507
|
-
},
|
|
2508
|
-
"required": ["type"],
|
|
2509
|
-
"additionalProperties": false
|
|
2510
|
-
},
|
|
2511
|
-
"workflow": {
|
|
2512
|
-
"type": "string"
|
|
2513
|
-
},
|
|
2514
|
-
"loaders": {
|
|
2515
|
-
"$ref": "#/definitions/shapeLoaders"
|
|
2516
|
-
},
|
|
2517
|
-
"joins": {
|
|
2518
|
-
"$ref": "#/definitions/shapeJoins"
|
|
2519
|
-
},
|
|
2520
|
-
"cache": {
|
|
2521
|
-
"$ref": "#/definitions/shapeCacheConfig"
|
|
2522
|
-
},
|
|
2523
|
-
"schema": {
|
|
2524
|
-
"$ref": "#/definitions/shapeSchema"
|
|
2525
|
-
}
|
|
2526
|
-
},
|
|
2527
|
-
"required": ["name", "title", "id", "schema"],
|
|
2528
|
-
"additionalProperties": false
|
|
2529
|
-
},
|
|
2530
|
-
"shapeWithObjectSchema": {
|
|
2531
|
-
"title": "Shape With Object Schema",
|
|
2532
|
-
"type": "object",
|
|
2533
|
-
"allOf": [
|
|
2534
|
-
{
|
|
2535
|
-
"$ref": "#/definitions/shape"
|
|
2536
|
-
},
|
|
2537
|
-
{
|
|
2538
|
-
"type": "object",
|
|
2539
|
-
"properties": {
|
|
2540
|
-
"schema": {
|
|
2541
|
-
"$ref": "#/definitions/objectSchema"
|
|
2542
|
-
}
|
|
2543
|
-
},
|
|
2544
|
-
"required": ["schema"],
|
|
2545
|
-
"additionalProperties": false
|
|
2546
|
-
}
|
|
2547
|
-
]
|
|
2548
|
-
},
|
|
2549
|
-
"shapeMap": {
|
|
2550
|
-
"title": "Shape Map",
|
|
2551
|
-
"type": "object",
|
|
2552
|
-
"patternProperties": {
|
|
2553
|
-
"^[0-9A-Za-z_]+$": {
|
|
2554
|
-
"$ref": "#/definitions/shape"
|
|
2555
|
-
}
|
|
2556
|
-
},
|
|
2557
|
-
"additionalProperties": false
|
|
2558
|
-
},
|
|
2559
|
-
"formMap": {
|
|
2560
|
-
"title": "Form Map",
|
|
2561
|
-
"type": "object",
|
|
2562
|
-
"patternProperties": {
|
|
2563
|
-
"[0-9A-Za-z_-]+": {
|
|
2564
|
-
"$ref": "#/definitions/formsConfig"
|
|
2565
|
-
}
|
|
2566
|
-
}
|
|
2567
|
-
},
|
|
2568
|
-
"shapeCacheConfig": {
|
|
2569
|
-
"title": "ShapeCacheConfig",
|
|
2570
|
-
"type": "object",
|
|
2571
|
-
"properties": {
|
|
2572
|
-
"enabled": {
|
|
2573
|
-
"type": "boolean"
|
|
2574
|
-
},
|
|
2575
|
-
"idField": {
|
|
2576
|
-
"type": "string"
|
|
2577
|
-
},
|
|
2578
|
-
"searchSummaryField": {
|
|
2579
|
-
"type": "string"
|
|
2580
|
-
},
|
|
2581
|
-
"fragment": {
|
|
2582
|
-
"$ref": "#/definitions/cachedFragmentConfig"
|
|
2583
|
-
},
|
|
2584
|
-
"triggers": {
|
|
2585
|
-
"type": "array",
|
|
2586
|
-
"items": {
|
|
2587
|
-
"$ref": "#/definitions/cacheTriggerConfig"
|
|
2588
|
-
}
|
|
2589
|
-
},
|
|
2590
|
-
"maxAge": {
|
|
2591
|
-
"description": "Number of seconds this Shape should be cached. Default 0.",
|
|
2592
|
-
"type": "number",
|
|
2593
|
-
"minimum": 0
|
|
2594
|
-
},
|
|
2595
|
-
"staleWhileRevalidate": {
|
|
2596
|
-
"description": "Requests after maxAge will send a request to origin to revalidate while serving stale content for this duration in the meantime.",
|
|
2597
|
-
"type": "number",
|
|
2598
|
-
"minimum": 0
|
|
2599
|
-
}
|
|
2600
|
-
},
|
|
2601
|
-
"additionalProperties": false,
|
|
2602
|
-
"required": ["enabled"]
|
|
2603
|
-
},
|
|
2604
|
-
"shapeJoin": {
|
|
2605
|
-
"title": "ShapeJoin",
|
|
2606
|
-
"type": "object",
|
|
2607
|
-
"properties": {
|
|
2608
|
-
"resolver": {
|
|
2609
|
-
"oneOf": [
|
|
2610
|
-
{
|
|
2611
|
-
"$ref": "#/definitions/delegateResolver"
|
|
2612
|
-
},
|
|
2613
|
-
{
|
|
2614
|
-
"$ref": "#/definitions/shapedbResolver"
|
|
2615
|
-
}
|
|
2616
|
-
]
|
|
2617
|
-
},
|
|
2618
|
-
"dependencies": {
|
|
2619
|
-
"type": "string"
|
|
2620
|
-
}
|
|
2621
|
-
},
|
|
2622
|
-
"required": ["resolver"],
|
|
2623
|
-
"additionalProperties": false
|
|
2624
|
-
},
|
|
2625
|
-
"shapeJoins": {
|
|
2626
|
-
"title": "ShapeJoins",
|
|
2627
|
-
"type": "object",
|
|
2628
|
-
"patternProperties": {
|
|
2629
|
-
"[:0-9A-Za-z_-]+": {
|
|
2630
|
-
"$ref": "#/definitions/shapeJoin"
|
|
2631
|
-
}
|
|
2632
|
-
}
|
|
2633
|
-
},
|
|
2634
|
-
"shapeLoaders": {
|
|
2635
|
-
"title": "ShapeLoaders",
|
|
2636
|
-
"type": "object",
|
|
2637
|
-
"properties": {
|
|
2638
|
-
"list": {
|
|
2639
|
-
"oneOf": [
|
|
2640
|
-
{
|
|
2641
|
-
"$ref": "#/definitions/storedListQueryLoaderConfig"
|
|
2642
|
-
},
|
|
2643
|
-
{
|
|
2644
|
-
"type": "array",
|
|
2645
|
-
"items": {
|
|
2646
|
-
"$ref": "#/definitions/storedListQueryLoaderConfig"
|
|
2647
|
-
}
|
|
2648
|
-
}
|
|
2649
|
-
]
|
|
2650
|
-
},
|
|
2651
|
-
"get": {
|
|
2652
|
-
"$ref": "#/definitions/getQueryLoaderConfig"
|
|
2653
|
-
}
|
|
2654
|
-
},
|
|
2655
|
-
"additionalProperties": false,
|
|
2656
|
-
"required": ["list"]
|
|
2657
|
-
},
|
|
2658
|
-
"cachedFragmentConfig": {
|
|
2659
|
-
"title": "Cached Fragment Config",
|
|
2660
|
-
"type": "object",
|
|
2661
|
-
"properties": {
|
|
2662
|
-
"ignoreFields": {
|
|
2663
|
-
"type": "array",
|
|
2664
|
-
"items": {
|
|
2665
|
-
"type": "string"
|
|
2666
|
-
}
|
|
2667
|
-
},
|
|
2668
|
-
"maxDepth": {
|
|
2669
|
-
"type": "number"
|
|
2670
|
-
},
|
|
2671
|
-
"selectionSet": {
|
|
2672
|
-
"type": "string"
|
|
2673
|
-
},
|
|
2674
|
-
"includeDeprecated": {
|
|
2675
|
-
"type": "boolean"
|
|
2676
|
-
}
|
|
2677
|
-
},
|
|
2678
|
-
"additionalProperties": false
|
|
2679
|
-
},
|
|
2680
|
-
"listQueryLoaderConfig": {
|
|
2681
|
-
"title": "ListQueryLoaderConfig",
|
|
2682
|
-
"type": "object",
|
|
2683
|
-
"properties": {
|
|
2684
|
-
"query": {
|
|
2685
|
-
"type": "string"
|
|
2686
|
-
},
|
|
2687
|
-
"args": {
|
|
2688
|
-
"type": "object",
|
|
2689
|
-
"additionalProperties": true
|
|
2690
|
-
},
|
|
2691
|
-
"pagination": {
|
|
2692
|
-
"$ref": "#/definitions/paginationConfig"
|
|
2693
|
-
}
|
|
2694
|
-
},
|
|
2695
|
-
"additionalProperties": false,
|
|
2696
|
-
"required": ["query"]
|
|
2697
|
-
},
|
|
2698
|
-
"storedListQueryLoaderConfig": {
|
|
2699
|
-
"title": "StoredListQueryLoaderConfig",
|
|
2700
|
-
"type": "object",
|
|
2701
|
-
"properties": {
|
|
2702
|
-
"query": {
|
|
2703
|
-
"type": "string"
|
|
2704
|
-
},
|
|
2705
|
-
"args": {
|
|
2706
|
-
"oneOf": [
|
|
2707
|
-
{
|
|
2708
|
-
"type": "object",
|
|
2709
|
-
"additionalProperties": true
|
|
2710
|
-
},
|
|
2711
|
-
{
|
|
2712
|
-
"type": "array",
|
|
2713
|
-
"items": {
|
|
2714
|
-
"type": "object",
|
|
2715
|
-
"additionalProperties": true
|
|
2716
|
-
}
|
|
2717
|
-
}
|
|
2718
|
-
]
|
|
2719
|
-
},
|
|
2720
|
-
"pagination": {
|
|
2721
|
-
"$ref": "#/definitions/paginationConfig"
|
|
2722
|
-
}
|
|
2723
|
-
},
|
|
2724
|
-
"additionalProperties": false,
|
|
2725
|
-
"required": ["query"]
|
|
2726
|
-
},
|
|
2727
|
-
"getQueryLoaderConfig": {
|
|
2728
|
-
"title": "GetQueryLoaderConfig",
|
|
2729
|
-
"type": "object",
|
|
2730
|
-
"properties": {
|
|
2731
|
-
"query": {
|
|
2732
|
-
"type": "string"
|
|
2733
|
-
},
|
|
2734
|
-
"args": {
|
|
2735
|
-
"type": "object",
|
|
2736
|
-
"additionalProperties": true
|
|
2737
|
-
},
|
|
2738
|
-
"idArg": {
|
|
2739
|
-
"type": "string"
|
|
2740
|
-
}
|
|
2741
|
-
},
|
|
2742
|
-
"additionalProperties": false,
|
|
2743
|
-
"required": ["query"]
|
|
2744
|
-
},
|
|
2745
|
-
"paginationConfig": {
|
|
2746
|
-
"title": "Pagination Config",
|
|
2747
|
-
"oneOf": [
|
|
2748
|
-
{
|
|
2749
|
-
"$ref": "#/definitions/paginationCursorConfig"
|
|
2750
|
-
},
|
|
2751
|
-
{
|
|
2752
|
-
"$ref": "#/definitions/paginationPageConfig"
|
|
2753
|
-
},
|
|
2754
|
-
{
|
|
2755
|
-
"$ref": "#/definitions/paginationOffsetConfig"
|
|
2756
|
-
}
|
|
2757
|
-
]
|
|
2758
|
-
},
|
|
2759
|
-
"paginationCursorConfig": {
|
|
2760
|
-
"title": "Pagination Cursor Config",
|
|
2761
|
-
"type": "object",
|
|
2762
|
-
"properties": {
|
|
2763
|
-
"type": {
|
|
2764
|
-
"type": "string",
|
|
2765
|
-
"enum": ["cursor"]
|
|
2766
|
-
},
|
|
2767
|
-
"cursorArg": {
|
|
2768
|
-
"type": "string"
|
|
2769
|
-
},
|
|
2770
|
-
"cursorPath": {
|
|
2771
|
-
"type": "string"
|
|
2772
|
-
},
|
|
2773
|
-
"pageSize": {
|
|
2774
|
-
"type": "number"
|
|
2775
|
-
},
|
|
2776
|
-
"pageSizeArg": {
|
|
2777
|
-
"type": "string"
|
|
2778
|
-
},
|
|
2779
|
-
"hasMorePath": {
|
|
2780
|
-
"type": "string"
|
|
2781
|
-
},
|
|
2782
|
-
"itemsPath": {
|
|
2783
|
-
"type": "string"
|
|
2784
|
-
}
|
|
2785
|
-
},
|
|
2786
|
-
"additionalProperties": false,
|
|
2787
|
-
"required": ["type", "cursorArg", "cursorPath", "pageSizeArg", "hasMorePath", "itemsPath"]
|
|
2788
|
-
},
|
|
2789
|
-
"paginationPageConfig": {
|
|
2790
|
-
"title": "Pagination Page Config",
|
|
2791
|
-
"type": "object",
|
|
2792
|
-
"properties": {
|
|
2793
|
-
"type": {
|
|
2794
|
-
"type": "string",
|
|
2795
|
-
"enum": ["page"]
|
|
2796
|
-
},
|
|
2797
|
-
"pageArg": {
|
|
2798
|
-
"type": "string"
|
|
2799
|
-
},
|
|
2800
|
-
"pageSize": {
|
|
2801
|
-
"type": "number"
|
|
2802
|
-
},
|
|
2803
|
-
"pageSizeArg": {
|
|
2804
|
-
"type": "string"
|
|
2805
|
-
},
|
|
2806
|
-
"itemsPath": {
|
|
2807
|
-
"type": "string"
|
|
2808
|
-
},
|
|
2809
|
-
"pageTotalPath": {
|
|
2810
|
-
"type": "string"
|
|
2811
|
-
}
|
|
2812
|
-
},
|
|
2813
|
-
"additionalProperties": false,
|
|
2814
|
-
"required": ["type", "pageArg", "itemsPath", "pageTotalPath"]
|
|
2815
|
-
},
|
|
2816
|
-
"paginationOffsetConfig": {
|
|
2817
|
-
"title": "Pagination Offset Config",
|
|
2818
|
-
"type": "object",
|
|
2819
|
-
"properties": {
|
|
2820
|
-
"type": {
|
|
2821
|
-
"type": "string",
|
|
2822
|
-
"enum": ["offset"]
|
|
2823
|
-
},
|
|
2824
|
-
"offsetArg": {
|
|
2825
|
-
"type": "string"
|
|
2826
|
-
},
|
|
2827
|
-
"pageSize": {
|
|
2828
|
-
"type": "number"
|
|
2829
|
-
},
|
|
2830
|
-
"pageSizeArg": {
|
|
2831
|
-
"type": "string"
|
|
2832
|
-
},
|
|
2833
|
-
"itemsPath": {
|
|
2834
|
-
"type": "string"
|
|
2835
|
-
},
|
|
2836
|
-
"itemTotalPath": {
|
|
2837
|
-
"type": "string"
|
|
2838
|
-
}
|
|
2839
|
-
},
|
|
2840
|
-
"additionalProperties": false,
|
|
2841
|
-
"required": ["type", "offsetArg", "itemsPath", "itemTotalPath"]
|
|
2842
|
-
},
|
|
2843
|
-
"cacheTriggerConfig": {
|
|
2844
|
-
"title": "CacheTriggerConfig",
|
|
2845
|
-
"oneOf": [
|
|
2846
|
-
{
|
|
2847
|
-
"$ref": "#/definitions/cacheScheduleTriggerConfig"
|
|
2848
|
-
},
|
|
2849
|
-
{
|
|
2850
|
-
"$ref": "#/definitions/cacheWebhookTriggerConfig"
|
|
2851
|
-
}
|
|
2852
|
-
]
|
|
2853
|
-
},
|
|
2854
|
-
"cacheScheduleTriggerConfig": {
|
|
2855
|
-
"title": "CacheScheduleTriggerConfig",
|
|
2856
|
-
"type": "object",
|
|
2857
|
-
"properties": {
|
|
2858
|
-
"type": {
|
|
2859
|
-
"type": "string",
|
|
2860
|
-
"enum": ["schedule"]
|
|
2861
|
-
},
|
|
2862
|
-
"loader": {
|
|
2863
|
-
"enum": ["get", "list"]
|
|
2864
|
-
},
|
|
2865
|
-
"interval": {
|
|
2866
|
-
"type": "number"
|
|
2867
|
-
}
|
|
2868
|
-
},
|
|
2869
|
-
"additionalProperties": false,
|
|
2870
|
-
"required": ["type", "loader", "interval"]
|
|
2871
|
-
},
|
|
2872
|
-
"cacheWebhookTriggerConfig": {
|
|
2873
|
-
"title": "CacheWebhookTriggerConfig",
|
|
2874
|
-
"type": "object",
|
|
2875
|
-
"properties": {
|
|
2876
|
-
"type": {
|
|
2877
|
-
"type": "string",
|
|
2878
|
-
"enum": ["webhook"]
|
|
2879
|
-
},
|
|
2880
|
-
"loader": {
|
|
2881
|
-
"enum": ["get", "list"]
|
|
2882
|
-
},
|
|
2883
|
-
"service": {
|
|
2884
|
-
"type": "string"
|
|
2885
|
-
},
|
|
2886
|
-
"events": {
|
|
2887
|
-
"type": "array",
|
|
2888
|
-
"items": {
|
|
2889
|
-
"type": "string"
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
},
|
|
2893
|
-
"additionalProperties": false,
|
|
2894
|
-
"required": ["type", "loader", "service", "events"]
|
|
2895
|
-
},
|
|
2896
|
-
"formScalarConfig": {
|
|
2897
|
-
"title": "Form Scalar Config",
|
|
2898
|
-
"type": "object",
|
|
2899
|
-
"properties": {
|
|
2900
|
-
"widget": {
|
|
2901
|
-
"type": "string"
|
|
2902
|
-
}
|
|
2903
|
-
},
|
|
2904
|
-
"additionalProperties": false,
|
|
2905
|
-
"required": ["widget"]
|
|
2906
|
-
},
|
|
2907
|
-
"formObjectConfig": {
|
|
2908
|
-
"title": "Form Object Config",
|
|
2909
|
-
"type": "object",
|
|
2910
|
-
"properties": {
|
|
2911
|
-
"widget": {
|
|
2912
|
-
"type": "string"
|
|
2913
|
-
},
|
|
2914
|
-
"order": {
|
|
2915
|
-
"type": "array",
|
|
2916
|
-
"items": {
|
|
2917
|
-
"type": "string"
|
|
2918
|
-
}
|
|
2919
|
-
},
|
|
2920
|
-
"properties": {
|
|
2921
|
-
"patternProperties": {
|
|
2922
|
-
"[0-9A-Za-z_-]+": {
|
|
2923
|
-
"$ref": "#/definitions/formConfig"
|
|
2924
|
-
}
|
|
2925
|
-
}
|
|
2926
|
-
}
|
|
2927
|
-
},
|
|
2928
|
-
"additionalProperties": false
|
|
2929
|
-
},
|
|
2930
|
-
"formArrayConfig": {
|
|
2931
|
-
"title": "Form Array Config",
|
|
2932
|
-
"type": "object",
|
|
2933
|
-
"properties": {
|
|
2934
|
-
"widget": {
|
|
2935
|
-
"type": "string"
|
|
2936
|
-
},
|
|
2937
|
-
"items": {
|
|
2938
|
-
"$ref": "#/definitions/formConfig"
|
|
2939
|
-
}
|
|
2940
|
-
},
|
|
2941
|
-
"additionalProperties": false,
|
|
2942
|
-
"required": ["widget", "items"]
|
|
2943
|
-
},
|
|
2944
|
-
"customAuthentication": {
|
|
2945
|
-
"title": "Custom Authentication",
|
|
2946
|
-
"description": "For use with a custom auth handler on a service provider.",
|
|
2947
|
-
"type": "object",
|
|
2948
|
-
"properties": {
|
|
2949
|
-
"type": {
|
|
2950
|
-
"type": "string",
|
|
2951
|
-
"enum": ["custom"]
|
|
2952
|
-
}
|
|
2953
|
-
},
|
|
2954
|
-
"additionalProperties": true,
|
|
2955
|
-
"required": ["type"]
|
|
2956
|
-
},
|
|
2957
|
-
"searchParamsAuthentication": {
|
|
2958
|
-
"title": "Search Params Authentication",
|
|
2959
|
-
"type": "object",
|
|
2960
|
-
"properties": {
|
|
2961
|
-
"type": {
|
|
2962
|
-
"type": "string",
|
|
2963
|
-
"enum": ["searchParams"]
|
|
2964
|
-
},
|
|
2965
|
-
"params": {
|
|
2966
|
-
"type": "array",
|
|
2967
|
-
"items": {
|
|
2968
|
-
"properties": {
|
|
2969
|
-
"name": {
|
|
2970
|
-
"type": "string"
|
|
2971
|
-
},
|
|
2972
|
-
"value": {
|
|
2973
|
-
"type": "string"
|
|
2974
|
-
}
|
|
2975
|
-
},
|
|
2976
|
-
"required": ["name", "value"],
|
|
2977
|
-
"additionalProperties": false
|
|
2978
|
-
}
|
|
2979
|
-
}
|
|
2980
|
-
},
|
|
2981
|
-
"additionalProperties": false,
|
|
2982
|
-
"required": ["type", "params"]
|
|
2983
|
-
},
|
|
2984
|
-
"bearerAuthentication": {
|
|
2985
|
-
"title": "Bearer Authentication",
|
|
2986
|
-
"type": "object",
|
|
2987
|
-
"properties": {
|
|
2988
|
-
"type": {
|
|
2989
|
-
"type": "string",
|
|
2990
|
-
"enum": ["bearer"]
|
|
2991
|
-
},
|
|
2992
|
-
"token": {
|
|
2993
|
-
"type": "string"
|
|
2994
|
-
},
|
|
2995
|
-
"prefix": {
|
|
2996
|
-
"type": "string"
|
|
2997
|
-
},
|
|
2998
|
-
"header": {
|
|
2999
|
-
"type": "string"
|
|
3000
|
-
}
|
|
3001
|
-
},
|
|
3002
|
-
"additionalProperties": false,
|
|
3003
|
-
"required": ["type", "token"]
|
|
3004
|
-
},
|
|
3005
|
-
"oauth2BearerAuthentication": {
|
|
3006
|
-
"title": "OAuth 2 Bearer Authentication",
|
|
3007
|
-
"type": "object",
|
|
3008
|
-
"properties": {
|
|
3009
|
-
"type": {
|
|
3010
|
-
"type": "string",
|
|
3011
|
-
"enum": ["oauth2Bearer"]
|
|
3012
|
-
},
|
|
3013
|
-
"token": {
|
|
3014
|
-
"type": "string"
|
|
3015
|
-
},
|
|
3016
|
-
"prefix": {
|
|
3017
|
-
"type": "string"
|
|
3018
|
-
},
|
|
3019
|
-
"header": {
|
|
3020
|
-
"type": "string"
|
|
3021
|
-
},
|
|
3022
|
-
"scope": {
|
|
3023
|
-
"type": "string"
|
|
3024
|
-
},
|
|
3025
|
-
"expiresAt": {
|
|
3026
|
-
"type": "string"
|
|
3027
|
-
}
|
|
3028
|
-
},
|
|
3029
|
-
"additionalProperties": false,
|
|
3030
|
-
"required": ["type", "token"]
|
|
3031
|
-
},
|
|
3032
|
-
"basicAuthentication": {
|
|
3033
|
-
"title": "Basic Authentication",
|
|
3034
|
-
"type": "object",
|
|
3035
|
-
"properties": {
|
|
3036
|
-
"type": {
|
|
3037
|
-
"type": "string",
|
|
3038
|
-
"enum": ["basic"]
|
|
3039
|
-
},
|
|
3040
|
-
"username": {
|
|
3041
|
-
"type": "string"
|
|
3042
|
-
},
|
|
3043
|
-
"password": {
|
|
3044
|
-
"type": "string"
|
|
3045
|
-
},
|
|
3046
|
-
"useIso8859": {
|
|
3047
|
-
"type": "boolean"
|
|
3048
|
-
}
|
|
3049
|
-
},
|
|
3050
|
-
"additionalProperties": false,
|
|
3051
|
-
"required": ["type", "username", "password"]
|
|
3052
|
-
},
|
|
3053
|
-
"oauth2Authentication": {
|
|
3054
|
-
"title": "OAuth 2 Authentication",
|
|
3055
|
-
"type": "object",
|
|
3056
|
-
"properties": {
|
|
3057
|
-
"type": {
|
|
3058
|
-
"type": "string",
|
|
3059
|
-
"enum": ["oauth2"]
|
|
3060
|
-
},
|
|
3061
|
-
"grantType": {
|
|
3062
|
-
"type": "string",
|
|
3063
|
-
"enum": ["authorizationCode", "clientCredentials"]
|
|
3064
|
-
},
|
|
3065
|
-
"authorizationUrl": {
|
|
3066
|
-
"type": "string"
|
|
3067
|
-
},
|
|
3068
|
-
"accessTokenUrl": {
|
|
3069
|
-
"type": "string"
|
|
3070
|
-
},
|
|
3071
|
-
"clientId": {
|
|
3072
|
-
"type": "string"
|
|
3073
|
-
},
|
|
3074
|
-
"clientSecret": {
|
|
3075
|
-
"type": "string"
|
|
3076
|
-
},
|
|
3077
|
-
"scope": {
|
|
3078
|
-
"type": "string"
|
|
3079
|
-
},
|
|
3080
|
-
"usePkce": {
|
|
3081
|
-
"type": "boolean"
|
|
3082
|
-
},
|
|
3083
|
-
"redirectUrl": {
|
|
3084
|
-
"type": "string"
|
|
3085
|
-
},
|
|
3086
|
-
"headerPrefix": {
|
|
3087
|
-
"type": "string"
|
|
3088
|
-
},
|
|
3089
|
-
"audience": {
|
|
3090
|
-
"type": "string"
|
|
3091
|
-
},
|
|
3092
|
-
"resource": {
|
|
3093
|
-
"type": "string"
|
|
3094
|
-
}
|
|
3095
|
-
},
|
|
3096
|
-
"additionalProperties": false,
|
|
3097
|
-
"required": ["type", "grantType", "clientId"]
|
|
3098
|
-
},
|
|
3099
|
-
"awsAuthentication": {
|
|
3100
|
-
"title": "AWS Authentication",
|
|
3101
|
-
"type": "object",
|
|
3102
|
-
"properties": {
|
|
3103
|
-
"type": {
|
|
3104
|
-
"type": "string",
|
|
3105
|
-
"enum": ["aws"]
|
|
3106
|
-
},
|
|
3107
|
-
"awsAccessKeyId": {
|
|
3108
|
-
"type": "string"
|
|
3109
|
-
},
|
|
3110
|
-
"awsSecretAccessKey": {
|
|
3111
|
-
"type": "string"
|
|
3112
|
-
}
|
|
3113
|
-
},
|
|
3114
|
-
"additionalProperties": false,
|
|
3115
|
-
"required": ["type", "awsAccessKeyId", "awsSecretAccessKey"]
|
|
3116
|
-
},
|
|
3117
|
-
"googleAuthentication": {
|
|
3118
|
-
"title": "Google Authentication",
|
|
3119
|
-
"type": "object",
|
|
3120
|
-
"properties": {
|
|
3121
|
-
"type": {
|
|
3122
|
-
"type": "string",
|
|
3123
|
-
"enum": ["google"]
|
|
3124
|
-
},
|
|
3125
|
-
"clientEmail": {
|
|
3126
|
-
"type": "string"
|
|
3127
|
-
},
|
|
3128
|
-
"privateKey": {
|
|
3129
|
-
"type": "string"
|
|
3130
|
-
}
|
|
3131
|
-
},
|
|
3132
|
-
"additionalProperties": false,
|
|
3133
|
-
"required": ["type", "clientEmail", "privateKey"]
|
|
3134
|
-
},
|
|
3135
|
-
"serviceAuthentication": {
|
|
3136
|
-
"title": "Service Authentication",
|
|
3137
|
-
"oneOf": [
|
|
3138
|
-
{
|
|
3139
|
-
"$ref": "#/definitions/oauth2Authentication"
|
|
3140
|
-
},
|
|
3141
|
-
{
|
|
3142
|
-
"$ref": "#/definitions/oauth2BearerAuthentication"
|
|
3143
|
-
},
|
|
3144
|
-
{
|
|
3145
|
-
"$ref": "#/definitions/bearerAuthentication"
|
|
3146
|
-
},
|
|
3147
|
-
{
|
|
3148
|
-
"$ref": "#/definitions/basicAuthentication"
|
|
3149
|
-
},
|
|
3150
|
-
{
|
|
3151
|
-
"$ref": "#/definitions/searchParamsAuthentication"
|
|
3152
|
-
},
|
|
3153
|
-
{
|
|
3154
|
-
"$ref": "#/definitions/awsAuthentication"
|
|
3155
|
-
},
|
|
3156
|
-
{
|
|
3157
|
-
"$ref": "#/definitions/googleAuthentication"
|
|
3158
|
-
},
|
|
3159
|
-
{
|
|
3160
|
-
"$ref": "#/definitions/customAuthentication"
|
|
3161
|
-
}
|
|
3162
|
-
]
|
|
3163
|
-
},
|
|
3164
|
-
"serviceHealthCheckTrigger": {
|
|
3165
|
-
"title": "Service Health Check Trigger",
|
|
3166
|
-
"enum": ["manual", "schedule"]
|
|
3167
|
-
},
|
|
3168
|
-
"serviceHealthCheck": {
|
|
3169
|
-
"title": "Service Health Check",
|
|
3170
|
-
"description": "Configuration for ping health checks.",
|
|
3171
|
-
"type": "object",
|
|
3172
|
-
"properties": {
|
|
3173
|
-
"checkName": {
|
|
3174
|
-
"title": "Check Name",
|
|
3175
|
-
"description": "The name of a health check to run",
|
|
3176
|
-
"type": "string",
|
|
3177
|
-
"enum": ["graphqlIntrospection", "ping", "none"]
|
|
3178
|
-
},
|
|
3179
|
-
"endpoint": {
|
|
3180
|
-
"title": "Endpoint",
|
|
3181
|
-
"description": "The endpoint to use when checking the service health.",
|
|
3182
|
-
"type": "string"
|
|
3183
|
-
},
|
|
3184
|
-
"requestMethod": {
|
|
3185
|
-
"title": "Request Method",
|
|
3186
|
-
"description": "A custom method to use for the health check request.",
|
|
3187
|
-
"type": "string",
|
|
3188
|
-
"enum": ["GET", "POST", "PUT", "PATCH", "DELETE"]
|
|
3189
|
-
},
|
|
3190
|
-
"requestHeaders": {
|
|
3191
|
-
"title": "Request Headers",
|
|
3192
|
-
"description": "Any custom headers to set with the health check request.",
|
|
3193
|
-
"type": "object",
|
|
3194
|
-
"propertyNames": {
|
|
3195
|
-
"pattern": "[0-9A-Za-z_-]+"
|
|
3196
|
-
}
|
|
3197
|
-
},
|
|
3198
|
-
"requestSearchParams": {
|
|
3199
|
-
"title": "Request Search Params",
|
|
3200
|
-
"description": "Any custom search params to set with the health check request.",
|
|
3201
|
-
"type": "object",
|
|
3202
|
-
"propertyNames": {
|
|
3203
|
-
"pattern": "[0-9A-Za-z_-]+"
|
|
3204
|
-
}
|
|
3205
|
-
},
|
|
3206
|
-
"requestBody": {
|
|
3207
|
-
"title": "Request Body",
|
|
3208
|
-
"description": "A custom body to send along with the ping request.",
|
|
3209
|
-
"type": "string"
|
|
3210
|
-
},
|
|
3211
|
-
"requestBodyFormat": {
|
|
3212
|
-
"title": "Request Body Format",
|
|
3213
|
-
"description": "A custom body to send along with the ping request.",
|
|
3214
|
-
"type": "string",
|
|
3215
|
-
"enum": ["string", "form", "json", "form-data"]
|
|
3216
|
-
},
|
|
3217
|
-
"requestTimeout": {
|
|
3218
|
-
"title": "Request Timeout",
|
|
3219
|
-
"description": "The amount of time to wait when receiving a response from the health check, in seconds.",
|
|
3220
|
-
"type": "number",
|
|
3221
|
-
"minimum": 2,
|
|
3222
|
-
"maximum": 60
|
|
3223
|
-
},
|
|
3224
|
-
"healthyResponseStatusCode": {
|
|
3225
|
-
"title": "Healthy Response Status Code",
|
|
3226
|
-
"description": "The response status code that qualifies as healthy.",
|
|
3227
|
-
"type": "number",
|
|
3228
|
-
"minimum": 200,
|
|
3229
|
-
"maximum": 399
|
|
3230
|
-
},
|
|
3231
|
-
"triggers": {
|
|
3232
|
-
"type": "array",
|
|
3233
|
-
"items": {
|
|
3234
|
-
"$ref": "#/definitions/serviceHealthCheckTrigger"
|
|
3235
|
-
}
|
|
3236
|
-
}
|
|
3237
|
-
},
|
|
3238
|
-
"required": ["checkName"],
|
|
3239
|
-
"additionalProperties": false
|
|
3240
|
-
},
|
|
3241
|
-
"serviceType": {
|
|
3242
|
-
"title": "Service Type",
|
|
3243
|
-
"description": "The general type of this service, specifying how and where it will be utilized.",
|
|
3244
|
-
"type": "string",
|
|
3245
|
-
"enum": ["deployment", "authentication", "takeshape", "rest", "graphql", "openapi", "aws", "unknown"]
|
|
3246
|
-
},
|
|
3247
|
-
"serviceConfig": {
|
|
3248
|
-
"title": "Service Config",
|
|
3249
|
-
"type": "object",
|
|
3250
|
-
"properties": {
|
|
3251
|
-
"id": {
|
|
3252
|
-
"type": "string",
|
|
3253
|
-
"description": "Machine-readable identifier, should typically be the same as the property name on the services object."
|
|
3254
|
-
},
|
|
3255
|
-
"title": {
|
|
3256
|
-
"type": "string",
|
|
3257
|
-
"description": "Human-readable name for this service."
|
|
3258
|
-
},
|
|
3259
|
-
"provider": {
|
|
3260
|
-
"description": "The service provider id.",
|
|
3261
|
-
"type": "string"
|
|
3262
|
-
},
|
|
3263
|
-
"namespace": {
|
|
3264
|
-
"type": "string",
|
|
3265
|
-
"description": "A namespace to use for the imported types tied to this service."
|
|
3266
|
-
},
|
|
3267
|
-
"serviceType": {
|
|
3268
|
-
"$ref": "#/definitions/serviceType"
|
|
3269
|
-
},
|
|
3270
|
-
"authenticationType": {
|
|
3271
|
-
"type": "string",
|
|
3272
|
-
"enum": [
|
|
3273
|
-
"oauth2",
|
|
3274
|
-
"basic",
|
|
3275
|
-
"bearer",
|
|
3276
|
-
"searchParams",
|
|
3277
|
-
"oauth2Bearer",
|
|
3278
|
-
"custom",
|
|
3279
|
-
"aws",
|
|
3280
|
-
"google",
|
|
3281
|
-
"none",
|
|
3282
|
-
"unknown"
|
|
3283
|
-
]
|
|
3284
|
-
},
|
|
3285
|
-
"authentication": {
|
|
3286
|
-
"$ref": "#/definitions/serviceAuthentication"
|
|
3287
|
-
},
|
|
3288
|
-
"healthCheck": {
|
|
3289
|
-
"$ref": "#/definitions/serviceHealthCheck"
|
|
3290
|
-
},
|
|
3291
|
-
"webhookId": {
|
|
3292
|
-
"type": "string"
|
|
3293
|
-
},
|
|
3294
|
-
"options": {
|
|
3295
|
-
"type": "object",
|
|
3296
|
-
"description": "Configuration options passed to and handled by the provider."
|
|
3297
|
-
}
|
|
3298
|
-
},
|
|
3299
|
-
"required": ["id", "title", "provider", "serviceType", "authenticationType"],
|
|
3300
|
-
"additionalProperties": false
|
|
3301
|
-
},
|
|
3302
|
-
"storedServiceConfig": {
|
|
3303
|
-
"title": "Service Config JSON",
|
|
3304
|
-
"type": "object",
|
|
3305
|
-
"properties": {
|
|
3306
|
-
"id": {
|
|
3307
|
-
"type": "string",
|
|
3308
|
-
"description": "Machine-readable identifier, should typically be the same as the property name on the services object."
|
|
3309
|
-
},
|
|
3310
|
-
"title": {
|
|
3311
|
-
"type": "string",
|
|
3312
|
-
"description": "Human-readable name for this service."
|
|
3313
|
-
},
|
|
3314
|
-
"provider": {
|
|
3315
|
-
"type": "string",
|
|
3316
|
-
"description": "The service provider id."
|
|
3317
|
-
},
|
|
3318
|
-
"namespace": {
|
|
3319
|
-
"type": "string",
|
|
3320
|
-
"description": "A namespace to use for the imported types tied to this service."
|
|
3321
|
-
},
|
|
3322
|
-
"serviceType": {
|
|
3323
|
-
"$ref": "#/definitions/serviceType"
|
|
3324
|
-
},
|
|
3325
|
-
"authenticationType": {
|
|
3326
|
-
"type": "string",
|
|
3327
|
-
"enum": [
|
|
3328
|
-
"oauth2",
|
|
3329
|
-
"basic",
|
|
3330
|
-
"bearer",
|
|
3331
|
-
"searchParams",
|
|
3332
|
-
"oauth2Bearer",
|
|
3333
|
-
"custom",
|
|
3334
|
-
"aws",
|
|
3335
|
-
"google",
|
|
3336
|
-
"none",
|
|
3337
|
-
"unknown"
|
|
3338
|
-
]
|
|
3339
|
-
},
|
|
3340
|
-
"authentication": {
|
|
3341
|
-
"type": "string"
|
|
3342
|
-
},
|
|
3343
|
-
"healthCheck": {
|
|
3344
|
-
"$ref": "#/definitions/serviceHealthCheck"
|
|
3345
|
-
},
|
|
3346
|
-
"webhookId": {
|
|
3347
|
-
"type": "string"
|
|
3348
|
-
},
|
|
3349
|
-
"options": {
|
|
3350
|
-
"type": "object",
|
|
3351
|
-
"description": "Configuration options passed to and handled by the provider."
|
|
3352
|
-
}
|
|
3353
|
-
},
|
|
3354
|
-
"required": ["id", "title", "provider", "serviceType", "authenticationType"],
|
|
3355
|
-
"additionalProperties": false
|
|
3356
|
-
},
|
|
3357
|
-
"anyServiceConfig": {
|
|
3358
|
-
"title": "Any Service Config",
|
|
3359
|
-
"oneOf": [
|
|
3360
|
-
{
|
|
3361
|
-
"$ref": "#/definitions/storedServiceConfig"
|
|
3362
|
-
},
|
|
3363
|
-
{
|
|
3364
|
-
"$ref": "#/definitions/serviceConfig"
|
|
3365
|
-
}
|
|
3366
|
-
]
|
|
3367
|
-
},
|
|
3368
|
-
"storedServiceMap": {
|
|
3369
|
-
"title": "Service Map JSON",
|
|
3370
|
-
"type": "object",
|
|
3371
|
-
"patternProperties": {
|
|
3372
|
-
"[0-9A-Za-z_-]+": {
|
|
3373
|
-
"$ref": "#/definitions/storedServiceConfig"
|
|
3374
|
-
}
|
|
3375
|
-
}
|
|
3376
|
-
},
|
|
3377
|
-
"workflowStep": {
|
|
3378
|
-
"title": "Workflow Step",
|
|
3379
|
-
"type": "object",
|
|
3380
|
-
"properties": {
|
|
3381
|
-
"name": {
|
|
3382
|
-
"type": "string",
|
|
3383
|
-
"title": "Name",
|
|
3384
|
-
"pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
|
|
3385
|
-
"description": "machine-readable slug"
|
|
3386
|
-
},
|
|
3387
|
-
"title": {
|
|
3388
|
-
"title": "Title",
|
|
3389
|
-
"type": "string",
|
|
3390
|
-
"description": "Human-readable id for use in the UI"
|
|
3391
|
-
},
|
|
3392
|
-
"description": {
|
|
3393
|
-
"title": "Description",
|
|
3394
|
-
"type": "string"
|
|
3395
|
-
},
|
|
3396
|
-
"color": {
|
|
3397
|
-
"title": "Color",
|
|
3398
|
-
"type": "string",
|
|
3399
|
-
"description": "Hex color code"
|
|
3400
|
-
},
|
|
3401
|
-
"live": {
|
|
3402
|
-
"title": "Live",
|
|
3403
|
-
"type": "boolean",
|
|
3404
|
-
"description": "Value to indicate whether items in the state should be returned in list queries"
|
|
3405
|
-
},
|
|
3406
|
-
"key": {
|
|
3407
|
-
"title": "Key",
|
|
3408
|
-
"type": "string",
|
|
3409
|
-
"description": "machine-readable id"
|
|
3410
|
-
}
|
|
3411
|
-
},
|
|
3412
|
-
"required": ["name", "title", "color", "live", "key"],
|
|
3413
|
-
"additionalProperties": false
|
|
3414
|
-
},
|
|
3415
|
-
"workflow": {
|
|
3416
|
-
"title": "Workflow",
|
|
3417
|
-
"type": "object",
|
|
3418
|
-
"properties": {
|
|
3419
|
-
"name": {
|
|
3420
|
-
"type": "string",
|
|
3421
|
-
"pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
|
|
3422
|
-
"description": "machine-readable id"
|
|
3423
|
-
},
|
|
3424
|
-
"title": {
|
|
3425
|
-
"type": "string",
|
|
3426
|
-
"title": "Workflow Name",
|
|
3427
|
-
"minLength": 1,
|
|
3428
|
-
"description": "Human-readable id for use in the UI"
|
|
3429
|
-
},
|
|
3430
|
-
"steps": {
|
|
3431
|
-
"type": "array",
|
|
3432
|
-
"title": "Steps",
|
|
3433
|
-
"items": {
|
|
3434
|
-
"$ref": "#/definitions/workflowStep"
|
|
3435
|
-
},
|
|
3436
|
-
"minItems": 1
|
|
3437
|
-
}
|
|
3438
|
-
},
|
|
3439
|
-
"required": ["name", "title", "steps"]
|
|
3440
|
-
},
|
|
3441
|
-
"workflowMap": {
|
|
3442
|
-
"title": "Workflow Map",
|
|
3443
|
-
"type": "object",
|
|
3444
|
-
"patternProperties": {
|
|
3445
|
-
"[0-9A-Za-z_-]+": {
|
|
3446
|
-
"$ref": "#/definitions/workflow"
|
|
3447
|
-
}
|
|
3448
|
-
}
|
|
3449
|
-
},
|
|
3450
|
-
"formConfig": {
|
|
3451
|
-
"title": "Form Config",
|
|
3452
|
-
"type": "object"
|
|
3453
|
-
},
|
|
3454
|
-
"formsConfig": {
|
|
3455
|
-
"title": "Forms Config",
|
|
3456
|
-
"type": "object",
|
|
3457
|
-
"properties": {
|
|
3458
|
-
"default": {
|
|
3459
|
-
"$ref": "#/definitions/formConfig"
|
|
3460
|
-
}
|
|
3461
|
-
},
|
|
3462
|
-
"patternProperties": {
|
|
3463
|
-
"[0-9A-Za-z_-]+": {
|
|
3464
|
-
"$ref": "#/definitions/formConfig"
|
|
3465
|
-
}
|
|
3466
|
-
},
|
|
3467
|
-
"required": ["default"]
|
|
3468
|
-
},
|
|
3469
|
-
"agent": {
|
|
3470
|
-
"title": "Agent JSON",
|
|
3471
|
-
"description": "An Agent is a configuration for an AI service such as a chat bot or a search engine.",
|
|
3472
|
-
"type": "object",
|
|
3473
|
-
"properties": {
|
|
3474
|
-
"description": {
|
|
3475
|
-
"type": "string"
|
|
3476
|
-
},
|
|
3477
|
-
"systemPrompt": {
|
|
3478
|
-
"type": "string"
|
|
3479
|
-
},
|
|
3480
|
-
"api": {
|
|
3481
|
-
"$ref": "#/definitions/agentApi"
|
|
3482
|
-
},
|
|
3483
|
-
"memory": {
|
|
3484
|
-
"$ref": "#/definitions/agentMemory"
|
|
3485
|
-
},
|
|
3486
|
-
"start": {
|
|
3487
|
-
"$ref": "#/definitions/agentStart"
|
|
3488
|
-
},
|
|
3489
|
-
"states": {
|
|
3490
|
-
"$ref": "#/definitions/agentStateMap"
|
|
3491
|
-
},
|
|
3492
|
-
"guards": {
|
|
3493
|
-
"type": "array",
|
|
3494
|
-
"items": {
|
|
3495
|
-
"$ref": "#/definitions/agentGuard"
|
|
3496
|
-
}
|
|
3497
|
-
},
|
|
3498
|
-
"historyStrategies": {
|
|
3499
|
-
"$ref": "#/definitions/historyStrategyMap"
|
|
3500
|
-
},
|
|
3501
|
-
"protection": {
|
|
3502
|
-
"$ref": "#/definitions/agentProtection"
|
|
3503
|
-
}
|
|
3504
|
-
},
|
|
3505
|
-
"required": ["start", "states", "api"],
|
|
3506
|
-
"additionalProperties": false
|
|
3507
|
-
},
|
|
3508
|
-
"historyStrategyMap": {
|
|
3509
|
-
"title": "History Strategy Map",
|
|
3510
|
-
"type": "object",
|
|
3511
|
-
"patternProperties": {
|
|
3512
|
-
"^[0-9A-Za-z_]+$": {
|
|
3513
|
-
"$ref": "#/definitions/historyStrategy"
|
|
3514
|
-
}
|
|
3515
|
-
},
|
|
3516
|
-
"additionalProperties": false
|
|
3517
|
-
},
|
|
3518
|
-
"historyStrategy": {
|
|
3519
|
-
"title": "History Strategy",
|
|
3520
|
-
"type": "object",
|
|
3521
|
-
"properties": {
|
|
3522
|
-
"name": {
|
|
3523
|
-
"type": "string"
|
|
3524
|
-
},
|
|
3525
|
-
"variables": {
|
|
3526
|
-
"title": "Variables",
|
|
3527
|
-
"type": "array",
|
|
3528
|
-
"items": {
|
|
3529
|
-
"$ref": "#/definitions/agentVariable"
|
|
3530
|
-
}
|
|
3531
|
-
},
|
|
3532
|
-
"filter": {
|
|
3533
|
-
"$ref": "#/definitions/historyStrategyFilter"
|
|
3534
|
-
},
|
|
3535
|
-
"transform": {
|
|
3536
|
-
"$ref": "#/definitions/historyStrategyTransform"
|
|
3537
|
-
}
|
|
3538
|
-
},
|
|
3539
|
-
"required": ["name", "transform"],
|
|
3540
|
-
"additionalProperties": false
|
|
3541
|
-
},
|
|
3542
|
-
"historyStrategyFilter": {
|
|
3543
|
-
"title": "History Strategy Filter",
|
|
3544
|
-
"type": "object",
|
|
3545
|
-
"properties": {
|
|
3546
|
-
"toolCalls": {
|
|
3547
|
-
"enum": ["retain", "clear"]
|
|
3548
|
-
}
|
|
3549
|
-
},
|
|
3550
|
-
"additionalProperties": false
|
|
3551
|
-
},
|
|
3552
|
-
"historyStrategyTransform": {
|
|
3553
|
-
"title": "History Strategy Transform",
|
|
3554
|
-
"discriminator": {
|
|
3555
|
-
"propertyName": "type"
|
|
3556
|
-
},
|
|
3557
|
-
"oneOf": [
|
|
3558
|
-
{
|
|
3559
|
-
"$ref": "#/definitions/historyStrategyTransformNone"
|
|
3560
|
-
},
|
|
3561
|
-
{
|
|
3562
|
-
"$ref": "#/definitions/historyStrategyTransformReplace"
|
|
3563
|
-
},
|
|
3564
|
-
{
|
|
3565
|
-
"$ref": "#/definitions/historyStrategyTransformSummarize"
|
|
3566
|
-
}
|
|
3567
|
-
]
|
|
3568
|
-
},
|
|
3569
|
-
"historyStrategyTransformNone": {
|
|
3570
|
-
"title": "History Strategy Transform None",
|
|
3571
|
-
"type": "object",
|
|
3572
|
-
"properties": {
|
|
3573
|
-
"type": {
|
|
3574
|
-
"enum": ["none"]
|
|
3575
|
-
}
|
|
3576
|
-
},
|
|
3577
|
-
"required": ["type"],
|
|
3578
|
-
"additionalProperties": false
|
|
3579
|
-
},
|
|
3580
|
-
"historyStrategyTransformReplace": {
|
|
3581
|
-
"title": "History Strategy Transform Replace",
|
|
3582
|
-
"type": "object",
|
|
3583
|
-
"properties": {
|
|
3584
|
-
"type": {
|
|
3585
|
-
"enum": ["replace"]
|
|
3586
|
-
},
|
|
3587
|
-
"template": {
|
|
3588
|
-
"type": "string"
|
|
3589
|
-
}
|
|
3590
|
-
},
|
|
3591
|
-
"required": ["type", "template"],
|
|
3592
|
-
"additionalProperties": false
|
|
3593
|
-
},
|
|
3594
|
-
"historyStrategyTransformSummarize": {
|
|
3595
|
-
"title": "History Strategy Transform Summarize",
|
|
3596
|
-
"type": "object",
|
|
3597
|
-
"properties": {
|
|
3598
|
-
"type": {
|
|
3599
|
-
"enum": ["generate"]
|
|
3600
|
-
},
|
|
3601
|
-
"service": {
|
|
3602
|
-
"type": "string"
|
|
3603
|
-
},
|
|
3604
|
-
"model": {
|
|
3605
|
-
"type": "string"
|
|
3606
|
-
},
|
|
3607
|
-
"systemPrompt": {
|
|
3608
|
-
"type": "string"
|
|
3609
|
-
},
|
|
3610
|
-
"tools": {
|
|
3611
|
-
"type": "array",
|
|
3612
|
-
"items": {
|
|
3613
|
-
"$ref": "#/definitions/agentToolConfig"
|
|
3614
|
-
}
|
|
3615
|
-
},
|
|
3616
|
-
"options": {
|
|
3617
|
-
"$ref": "#/definitions/agentGenerateOptions"
|
|
3618
|
-
}
|
|
3619
|
-
},
|
|
3620
|
-
"required": ["type", "service", "model", "systemPrompt"],
|
|
3621
|
-
"additionalProperties": false
|
|
3622
|
-
},
|
|
3623
|
-
"tool": {
|
|
3624
|
-
"title": "Tool JSON",
|
|
3625
|
-
"type": "object",
|
|
3626
|
-
"properties": {
|
|
3627
|
-
"name": {
|
|
3628
|
-
"type": "string"
|
|
3629
|
-
},
|
|
3630
|
-
"ref": {
|
|
3631
|
-
"type": "string"
|
|
3632
|
-
},
|
|
3633
|
-
"description": {
|
|
3634
|
-
"type": "string"
|
|
3635
|
-
},
|
|
3636
|
-
"args": {
|
|
3637
|
-
"type": "array",
|
|
3638
|
-
"items": {
|
|
3639
|
-
"$ref": "#/definitions/toolArg"
|
|
3640
|
-
}
|
|
3641
|
-
},
|
|
3642
|
-
"selectionSet": {
|
|
3643
|
-
"type": "string"
|
|
3644
|
-
}
|
|
3645
|
-
},
|
|
3646
|
-
"required": ["name", "ref"],
|
|
3647
|
-
"additionalProperties": false
|
|
3648
|
-
},
|
|
3649
|
-
"toolArg": {
|
|
3650
|
-
"title": "Tool Arg",
|
|
3651
|
-
"type": "object",
|
|
3652
|
-
"discriminator": {
|
|
3653
|
-
"propertyName": "type"
|
|
3654
|
-
},
|
|
3655
|
-
"oneOf": [
|
|
3656
|
-
{
|
|
3657
|
-
"$ref": "#/definitions/agentToolConfigArgAgent"
|
|
3658
|
-
}
|
|
3659
|
-
]
|
|
3660
|
-
},
|
|
3661
|
-
"agentApi": {
|
|
3662
|
-
"title": "Agent API",
|
|
3663
|
-
"type": "object",
|
|
3664
|
-
"properties": {
|
|
3665
|
-
"inputs": {
|
|
3666
|
-
"type": "array",
|
|
3667
|
-
"items": {
|
|
3668
|
-
"$ref": "#/definitions/agentApiInput"
|
|
3669
|
-
}
|
|
3670
|
-
}
|
|
3671
|
-
},
|
|
3672
|
-
"required": ["inputs"],
|
|
3673
|
-
"additionalProperties": false
|
|
3674
|
-
},
|
|
3675
|
-
"agentMemory": {
|
|
3676
|
-
"title": "Agent Memory",
|
|
3677
|
-
"type": "object",
|
|
3678
|
-
"properties": {
|
|
3679
|
-
"sessionMemory": {
|
|
3680
|
-
"$ref": "#/definitions/agentSessionMemory"
|
|
3681
|
-
}
|
|
3682
|
-
},
|
|
3683
|
-
"required": ["sessionMemory"],
|
|
3684
|
-
"additionalProperties": false
|
|
3685
|
-
},
|
|
3686
|
-
"agentSessionMemory": {
|
|
3687
|
-
"title": "Agent Session Memory",
|
|
3688
|
-
"type": "object",
|
|
3689
|
-
"properties": {
|
|
3690
|
-
"shape": {
|
|
3691
|
-
"type": "string"
|
|
3692
|
-
}
|
|
3693
|
-
},
|
|
3694
|
-
"required": [],
|
|
3695
|
-
"additionalProperties": false
|
|
3696
|
-
},
|
|
3697
|
-
"agentVariable": {
|
|
3698
|
-
"title": "Agent Variable",
|
|
3699
|
-
"type": "object",
|
|
3700
|
-
"properties": {
|
|
3701
|
-
"name": {
|
|
3702
|
-
"type": "string"
|
|
3703
|
-
},
|
|
3704
|
-
"steps": {
|
|
3705
|
-
"description": "These are evaluated in order until a value is found.",
|
|
3706
|
-
"type": "array",
|
|
3707
|
-
"items": {
|
|
3708
|
-
"$ref": "#/definitions/agentVariableStep"
|
|
3709
|
-
}
|
|
3710
|
-
}
|
|
3711
|
-
},
|
|
3712
|
-
"required": ["name", "steps"],
|
|
3713
|
-
"additionalProperties": false
|
|
3714
|
-
},
|
|
3715
|
-
"agentVariableStep": {
|
|
3716
|
-
"title": "Agent Variable Step",
|
|
3717
|
-
"type": "object",
|
|
3718
|
-
"properties": {
|
|
3719
|
-
"condition": {
|
|
3720
|
-
"type": "string"
|
|
3721
|
-
},
|
|
3722
|
-
"expression": {
|
|
3723
|
-
"type": "string"
|
|
3724
|
-
}
|
|
3725
|
-
},
|
|
3726
|
-
"required": ["expression"],
|
|
3727
|
-
"additionalProperties": false
|
|
3728
|
-
},
|
|
3729
|
-
"agentStart": {
|
|
3730
|
-
"title": "Agent Start",
|
|
3731
|
-
"description": "Configuration for the start of an agent's execution",
|
|
3732
|
-
"type": "object",
|
|
3733
|
-
"properties": {
|
|
3734
|
-
"transitions": {
|
|
3735
|
-
"type": "array",
|
|
3736
|
-
"items": {
|
|
3737
|
-
"$ref": "#/definitions/agentTransitionSuspend"
|
|
3738
|
-
}
|
|
3739
|
-
}
|
|
3740
|
-
},
|
|
3741
|
-
"required": ["transitions"],
|
|
3742
|
-
"additionalProperties": false
|
|
3743
|
-
},
|
|
3744
|
-
"agentStateMap": {
|
|
3745
|
-
"title": "Agent States",
|
|
3746
|
-
"description": "States that are traversed during the execution of an agent.",
|
|
3747
|
-
"type": "object",
|
|
3748
|
-
"patternProperties": {
|
|
3749
|
-
"^[0-9A-Za-z_]+$": {
|
|
3750
|
-
"$ref": "#/definitions/agentState"
|
|
3751
|
-
}
|
|
3752
|
-
},
|
|
3753
|
-
"additionalProperties": false
|
|
3754
|
-
},
|
|
3755
|
-
"agentState": {
|
|
3756
|
-
"title": "Agent State",
|
|
3757
|
-
"description": "One step of an agent's execution.",
|
|
3758
|
-
"type": "object",
|
|
3759
|
-
"properties": {
|
|
3760
|
-
"name": {
|
|
3761
|
-
"type": "string",
|
|
3762
|
-
"pattern": "^[a-zA-Z][0-9A-Za-z_]*$"
|
|
3763
|
-
},
|
|
3764
|
-
"variables": {
|
|
3765
|
-
"title": "Variables",
|
|
3766
|
-
"type": "array",
|
|
3767
|
-
"items": {
|
|
3768
|
-
"$ref": "#/definitions/agentVariable"
|
|
3769
|
-
}
|
|
3770
|
-
},
|
|
3771
|
-
"execution": {
|
|
3772
|
-
"$ref": "#/definitions/agentExecution"
|
|
3773
|
-
},
|
|
3774
|
-
"transitions": {
|
|
3775
|
-
"type": "array",
|
|
3776
|
-
"items": {
|
|
3777
|
-
"$ref": "#/definitions/agentTransition"
|
|
3778
|
-
}
|
|
3779
|
-
}
|
|
3780
|
-
},
|
|
3781
|
-
"required": ["name", "execution"],
|
|
3782
|
-
"additionalProperties": false
|
|
3783
|
-
},
|
|
3784
|
-
"agentExecution": {
|
|
3785
|
-
"title": "Agent Execution",
|
|
3786
|
-
"discriminator": {
|
|
3787
|
-
"propertyName": "type"
|
|
3788
|
-
},
|
|
3789
|
-
"oneOf": [
|
|
3790
|
-
{
|
|
3791
|
-
"$ref": "#/definitions/agentExecutionGraphql"
|
|
3792
|
-
},
|
|
3793
|
-
{
|
|
3794
|
-
"$ref": "#/definitions/agentExecutionGenerate"
|
|
3795
|
-
},
|
|
3796
|
-
{
|
|
3797
|
-
"$ref": "#/definitions/agentExecutionChat"
|
|
3798
|
-
}
|
|
3799
|
-
]
|
|
3800
|
-
},
|
|
3801
|
-
"agentApiInput": {
|
|
3802
|
-
"title": "Agent API Input",
|
|
3803
|
-
"discriminator": {
|
|
3804
|
-
"propertyName": "type"
|
|
3805
|
-
},
|
|
3806
|
-
"oneOf": [
|
|
3807
|
-
{
|
|
3808
|
-
"$ref": "#/definitions/agentApiMutationInput"
|
|
3809
|
-
}
|
|
3810
|
-
]
|
|
3811
|
-
},
|
|
3812
|
-
"agentApiMutationInput": {
|
|
3813
|
-
"title": "Agent API Mutation Input",
|
|
3814
|
-
"type": "object",
|
|
3815
|
-
"properties": {
|
|
3816
|
-
"type": {
|
|
3817
|
-
"enum": ["mutation"]
|
|
3818
|
-
},
|
|
3819
|
-
"name": {
|
|
3820
|
-
"type": "string",
|
|
3821
|
-
"pattern": "^[0-9A-Za-z_]+$"
|
|
3822
|
-
},
|
|
3823
|
-
"args": {
|
|
3824
|
-
"type": "string"
|
|
3825
|
-
},
|
|
3826
|
-
"interactionTimeout": {
|
|
3827
|
-
"title": "Interaction Timeout (milliseconds)",
|
|
3828
|
-
"type": "integer"
|
|
3829
|
-
}
|
|
3830
|
-
},
|
|
3831
|
-
"required": ["type", "name", "args"],
|
|
3832
|
-
"additionalProperties": false
|
|
3833
|
-
},
|
|
3834
|
-
"agentExecutionGraphql": {
|
|
3835
|
-
"title": "Agent Execution GraphQL",
|
|
3836
|
-
"type": "object",
|
|
3837
|
-
"properties": {
|
|
3838
|
-
"type": {
|
|
3839
|
-
"enum": ["graphql"]
|
|
3840
|
-
},
|
|
3841
|
-
"query": {
|
|
3842
|
-
"type": "string"
|
|
3843
|
-
},
|
|
3844
|
-
"path": {
|
|
3845
|
-
"type": "string"
|
|
3846
|
-
}
|
|
3847
|
-
},
|
|
3848
|
-
"required": ["type", "query"],
|
|
3849
|
-
"additionalProperties": false
|
|
3850
|
-
},
|
|
3851
|
-
"agentStateSessionMemoryAssignment": {
|
|
3852
|
-
"title": "Agent State Session Memory Assignment",
|
|
3853
|
-
"type": "object",
|
|
3854
|
-
"properties": {
|
|
3855
|
-
"memoryPath": {
|
|
3856
|
-
"type": "string"
|
|
3857
|
-
},
|
|
3858
|
-
"expression": {
|
|
3859
|
-
"type": "string"
|
|
3860
|
-
}
|
|
3861
|
-
},
|
|
3862
|
-
"required": ["expression"],
|
|
3863
|
-
"additionalProperties": false
|
|
3864
|
-
},
|
|
3865
|
-
"agentAiStateInputArg": {
|
|
3866
|
-
"title": "Agent AI State Input Argument",
|
|
3867
|
-
"type": "object",
|
|
3868
|
-
"properties": {
|
|
3869
|
-
"type": {
|
|
3870
|
-
"enum": ["arg"]
|
|
3871
|
-
}
|
|
3872
|
-
},
|
|
3873
|
-
"required": ["type"],
|
|
3874
|
-
"additionalProperties": false
|
|
3875
|
-
},
|
|
3876
|
-
"agentAiStateInputTemplate": {
|
|
3877
|
-
"title": "Agent AI State Input Template",
|
|
3878
|
-
"type": "object",
|
|
3879
|
-
"properties": {
|
|
3880
|
-
"type": {
|
|
3881
|
-
"enum": ["template"]
|
|
3882
|
-
},
|
|
3883
|
-
"inputTemplate": {
|
|
3884
|
-
"type": "string"
|
|
3885
|
-
}
|
|
3886
|
-
},
|
|
3887
|
-
"required": ["type", "inputTemplate"],
|
|
3888
|
-
"additionalProperties": false
|
|
3889
|
-
},
|
|
3890
|
-
"agentAiStateInput": {
|
|
3891
|
-
"title": "Agent AI State Input",
|
|
3892
|
-
"type": "object",
|
|
3893
|
-
"discriminator": {
|
|
3894
|
-
"propertyName": "type"
|
|
3895
|
-
},
|
|
3896
|
-
"oneOf": [
|
|
3897
|
-
{
|
|
3898
|
-
"$ref": "#/definitions/agentAiStateInputArg"
|
|
3899
|
-
},
|
|
3900
|
-
{
|
|
3901
|
-
"$ref": "#/definitions/agentAiStateInputTemplate"
|
|
3902
|
-
}
|
|
3903
|
-
]
|
|
3904
|
-
},
|
|
3905
|
-
"agentGenerateOptions": {
|
|
3906
|
-
"title": "AgentGenerateOptions",
|
|
3907
|
-
"type": "object",
|
|
3908
|
-
"properties": {
|
|
3909
|
-
"history": {
|
|
3910
|
-
"title": "history",
|
|
3911
|
-
"type": "boolean"
|
|
3912
|
-
},
|
|
3913
|
-
"maxTokens": {
|
|
3914
|
-
"type": "integer",
|
|
3915
|
-
"title": "Maximum Tokens",
|
|
3916
|
-
"description": "Maximum number of tokens to generate. Defaults to 1024"
|
|
3917
|
-
},
|
|
3918
|
-
"temperature": {
|
|
3919
|
-
"type": "number",
|
|
3920
|
-
"title": "Temperature",
|
|
3921
|
-
"description": "This is a number between 0 (almost no randomness) and 1 (very random). It is recommended to set either `temperature` or `topP`, but not both. Defaults to 0",
|
|
3922
|
-
"minimum": 0,
|
|
3923
|
-
"maximum": 1
|
|
3924
|
-
},
|
|
3925
|
-
"topP": {
|
|
3926
|
-
"type": "number",
|
|
3927
|
-
"title": "Top P",
|
|
3928
|
-
"description": "Nucleus sampling. This is a number between 0 and 1. E.g. 0.1 would mean that only tokens with the top 10% probability mass are considered. It is recommended to set either `temperature` or `topP`, but not both.",
|
|
3929
|
-
"minimum": 0,
|
|
3930
|
-
"maximum": 1
|
|
3931
|
-
},
|
|
3932
|
-
"topK": {
|
|
3933
|
-
"type": "number",
|
|
3934
|
-
"title": "Top K",
|
|
3935
|
-
"description": "Only sample from the top K options for each subsequent token. Used to remove \"long tail\" low probability responses. Recommended for advanced use cases only. You usually only need to use temperature."
|
|
3936
|
-
},
|
|
3937
|
-
"presencePenalty": {
|
|
3938
|
-
"type": "number",
|
|
3939
|
-
"title": "Presence penalty setting",
|
|
3940
|
-
"description": "It affects the likelihood of the model to repeat information that is already in the prompt. The presence penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.",
|
|
3941
|
-
"minimum": -1,
|
|
3942
|
-
"maximum": 1
|
|
3943
|
-
},
|
|
3944
|
-
"frequencyPenalty": {
|
|
3945
|
-
"type": "number",
|
|
3946
|
-
"title": "Frequency penalty setting",
|
|
3947
|
-
"description": "It affects the likelihood of the model to repeatedly use the same words or phrases. The frequency penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.",
|
|
3948
|
-
"minimum": -1,
|
|
3949
|
-
"maximum": 1
|
|
3950
|
-
},
|
|
3951
|
-
"stopSequences": {
|
|
3952
|
-
"title": "Stop sequences",
|
|
3953
|
-
"description": "If set, the model will stop generating text when one of the stop sequences is generated.",
|
|
3954
|
-
"type": "array",
|
|
3955
|
-
"items": {
|
|
3956
|
-
"type": "string"
|
|
3957
|
-
}
|
|
3958
|
-
},
|
|
3959
|
-
"seed": {
|
|
3960
|
-
"type": "integer",
|
|
3961
|
-
"title": "Seed",
|
|
3962
|
-
"description": " The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results."
|
|
3963
|
-
},
|
|
3964
|
-
"maxRetries": {
|
|
3965
|
-
"type": "integer",
|
|
3966
|
-
"description": "Maximum number of retries. Set to 0 to disable retries. Defaults to 2"
|
|
3967
|
-
},
|
|
3968
|
-
"toolChoice": {
|
|
3969
|
-
"type": "string",
|
|
3970
|
-
"description": "The tool choice strategy. Default: 'auto'",
|
|
3971
|
-
"anyOf": [
|
|
3972
|
-
{
|
|
3973
|
-
"enum": ["auto", "none", "required"]
|
|
3974
|
-
},
|
|
3975
|
-
{
|
|
3976
|
-
"type": "string"
|
|
3977
|
-
}
|
|
3978
|
-
]
|
|
3979
|
-
},
|
|
3980
|
-
"maxToolRoundtrips": {
|
|
3981
|
-
"type": "integer",
|
|
3982
|
-
"title": "Max Tool Roundtrips",
|
|
3983
|
-
"description": "Maximal number of automatic roundtrips for tool calls."
|
|
3984
|
-
},
|
|
3985
|
-
"structuredOutputs": {
|
|
3986
|
-
"type": "boolean",
|
|
3987
|
-
"title": "Structured Outputs",
|
|
3988
|
-
"description": "If true, structured outputs will be enabled on the model for non-text requests."
|
|
3989
|
-
},
|
|
3990
|
-
"enableOpenAIFormat": {
|
|
3991
|
-
"type": "boolean",
|
|
3992
|
-
"title": "Enable OpenAI Schema Format",
|
|
3993
|
-
"description": "Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled."
|
|
3994
|
-
},
|
|
3995
|
-
"removePropertyKeyPatterns": {
|
|
3996
|
-
"$ref": "#/definitions/removePropertyKeyPatterns"
|
|
3997
|
-
},
|
|
3998
|
-
"stripMarkdown": {
|
|
3999
|
-
"type": "boolean",
|
|
4000
|
-
"title": "Strip Markdown",
|
|
4001
|
-
"description": "Remove Markdown formatting from the LLM response"
|
|
4002
|
-
}
|
|
4003
|
-
},
|
|
4004
|
-
"additionalProperties": false
|
|
4005
|
-
},
|
|
4006
|
-
"agentGuard": {
|
|
4007
|
-
"title": "Agent Guard",
|
|
4008
|
-
"type": "object",
|
|
4009
|
-
"properties": {
|
|
4010
|
-
"guardId": {
|
|
4011
|
-
"title": "Guard ID",
|
|
4012
|
-
"type": "string"
|
|
4013
|
-
}
|
|
4014
|
-
},
|
|
4015
|
-
"required": ["guardId"],
|
|
4016
|
-
"additionalProperties": false
|
|
4017
|
-
},
|
|
4018
|
-
"agentProtection": {
|
|
4019
|
-
"title": "Agent Protection",
|
|
4020
|
-
"type": "object",
|
|
4021
|
-
"properties": {
|
|
4022
|
-
"enabled": {
|
|
4023
|
-
"title": "Enable Agent Abuse Protection",
|
|
4024
|
-
"description": "Enabling this will require a proof-of-work token to be included with each request. This will prevent abuse and spam.",
|
|
4025
|
-
"type": "boolean"
|
|
4026
|
-
}
|
|
4027
|
-
},
|
|
4028
|
-
"required": ["enabled"],
|
|
4029
|
-
"additionalProperties": false
|
|
4030
|
-
},
|
|
4031
|
-
"agentToolConfig": {
|
|
4032
|
-
"title": "AgentToolConfig",
|
|
4033
|
-
"type": "object",
|
|
4034
|
-
"properties": {
|
|
4035
|
-
"name": {
|
|
4036
|
-
"type": "string"
|
|
4037
|
-
},
|
|
4038
|
-
"ref": {
|
|
4039
|
-
"type": "string"
|
|
4040
|
-
},
|
|
4041
|
-
"description": {
|
|
4042
|
-
"type": "string"
|
|
4043
|
-
},
|
|
4044
|
-
"args": {
|
|
4045
|
-
"type": "array",
|
|
4046
|
-
"items": {
|
|
4047
|
-
"$ref": "#/definitions/agentToolConfigArg"
|
|
4048
|
-
}
|
|
4049
|
-
},
|
|
4050
|
-
"selectionSet": {
|
|
4051
|
-
"type": "string"
|
|
4052
|
-
}
|
|
4053
|
-
},
|
|
4054
|
-
"required": ["name", "ref"],
|
|
4055
|
-
"additionalProperties": false
|
|
4056
|
-
},
|
|
4057
|
-
"agentToolConfigArg": {
|
|
4058
|
-
"title": "Agent Tool Config Arg",
|
|
4059
|
-
"type": "object",
|
|
4060
|
-
"discriminator": {
|
|
4061
|
-
"propertyName": "type"
|
|
4062
|
-
},
|
|
4063
|
-
"oneOf": [
|
|
4064
|
-
{
|
|
4065
|
-
"$ref": "#/definitions/agentToolConfigArgAgent"
|
|
4066
|
-
},
|
|
4067
|
-
{
|
|
4068
|
-
"$ref": "#/definitions/agentToolConfigArgVariable"
|
|
4069
|
-
}
|
|
4070
|
-
]
|
|
4071
|
-
},
|
|
4072
|
-
"agentToolConfigArgAgent": {
|
|
4073
|
-
"title": "Agent-Controlled",
|
|
4074
|
-
"type": "object",
|
|
4075
|
-
"properties": {
|
|
4076
|
-
"type": {
|
|
4077
|
-
"enum": ["agent"]
|
|
4078
|
-
},
|
|
4079
|
-
"argName": {
|
|
4080
|
-
"title": "Tool Argument Name",
|
|
4081
|
-
"type": "string",
|
|
4082
|
-
"description": "The argument name that will be exposed by the tool for the LLM to use."
|
|
4083
|
-
}
|
|
4084
|
-
},
|
|
4085
|
-
"required": ["type", "argName"],
|
|
4086
|
-
"additionalProperties": false
|
|
4087
|
-
},
|
|
4088
|
-
"agentToolConfigArgVariable": {
|
|
4089
|
-
"title": "Variable Value",
|
|
4090
|
-
"type": "object",
|
|
4091
|
-
"properties": {
|
|
4092
|
-
"type": {
|
|
4093
|
-
"enum": ["variable"]
|
|
4094
|
-
},
|
|
4095
|
-
"argName": {
|
|
4096
|
-
"title": "Tool Argument Name",
|
|
4097
|
-
"type": "string",
|
|
4098
|
-
"description": "Name of argument to pass value to. This prevents the LLM from setting the argument."
|
|
4099
|
-
},
|
|
4100
|
-
"variableName": {
|
|
4101
|
-
"title": "State Variable Name",
|
|
4102
|
-
"type": "string",
|
|
4103
|
-
"description": "Name of variable to pull value from."
|
|
4104
|
-
}
|
|
4105
|
-
},
|
|
4106
|
-
"required": ["type", "argName", "variableName"],
|
|
4107
|
-
"additionalProperties": false
|
|
4108
|
-
},
|
|
4109
|
-
"agentExecutionGenerate": {
|
|
4110
|
-
"title": "Agent Execution Generate",
|
|
4111
|
-
"type": "object",
|
|
4112
|
-
"properties": {
|
|
4113
|
-
"type": {
|
|
4114
|
-
"enum": ["generate"]
|
|
4115
|
-
},
|
|
4116
|
-
"service": {
|
|
4117
|
-
"type": "string"
|
|
4118
|
-
},
|
|
4119
|
-
"model": {
|
|
4120
|
-
"type": "string"
|
|
4121
|
-
},
|
|
4122
|
-
"systemPrompt": {
|
|
4123
|
-
"type": "string"
|
|
4124
|
-
},
|
|
4125
|
-
"input": {
|
|
4126
|
-
"$ref": "#/definitions/agentAiStateInput"
|
|
4127
|
-
},
|
|
4128
|
-
"outputShape": {
|
|
4129
|
-
"type": "string"
|
|
4130
|
-
},
|
|
4131
|
-
"tools": {
|
|
4132
|
-
"type": "array",
|
|
4133
|
-
"items": {
|
|
4134
|
-
"$ref": "#/definitions/agentToolConfig"
|
|
4135
|
-
}
|
|
4136
|
-
},
|
|
4137
|
-
"options": {
|
|
4138
|
-
"$ref": "#/definitions/agentGenerateOptions"
|
|
4139
|
-
}
|
|
4140
|
-
},
|
|
4141
|
-
"required": ["type", "service", "model", "input"],
|
|
4142
|
-
"additionalProperties": false
|
|
4143
|
-
},
|
|
4144
|
-
"agentExecutionChat": {
|
|
4145
|
-
"title": "Agent Execution Chat",
|
|
4146
|
-
"type": "object",
|
|
4147
|
-
"properties": {
|
|
4148
|
-
"type": {
|
|
4149
|
-
"enum": ["chat"]
|
|
4150
|
-
},
|
|
4151
|
-
"service": {
|
|
4152
|
-
"type": "string"
|
|
4153
|
-
},
|
|
4154
|
-
"model": {
|
|
4155
|
-
"type": "string"
|
|
4156
|
-
},
|
|
4157
|
-
"systemPrompt": {
|
|
4158
|
-
"type": "string"
|
|
4159
|
-
},
|
|
4160
|
-
"input": {
|
|
4161
|
-
"$ref": "#/definitions/agentAiStateInput"
|
|
4162
|
-
},
|
|
4163
|
-
"artifact": {
|
|
4164
|
-
"type": "string"
|
|
4165
|
-
},
|
|
4166
|
-
"tools": {
|
|
4167
|
-
"type": "array",
|
|
4168
|
-
"items": {
|
|
4169
|
-
"$ref": "#/definitions/agentToolConfig"
|
|
4170
|
-
}
|
|
4171
|
-
},
|
|
4172
|
-
"options": {
|
|
4173
|
-
"$ref": "#/definitions/agentGenerateOptions"
|
|
4174
|
-
}
|
|
4175
|
-
},
|
|
4176
|
-
"required": ["type", "service", "model", "input"],
|
|
4177
|
-
"additionalProperties": false
|
|
4178
|
-
},
|
|
4179
|
-
"agentTransition": {
|
|
4180
|
-
"title": "Agent Transition",
|
|
4181
|
-
"description": "These steps are evaluated in order until a destination is found.",
|
|
4182
|
-
"discriminator": {
|
|
4183
|
-
"propertyName": "type"
|
|
4184
|
-
},
|
|
4185
|
-
"oneOf": [
|
|
4186
|
-
{
|
|
4187
|
-
"$ref": "#/definitions/agentTransitionImmediate"
|
|
4188
|
-
},
|
|
4189
|
-
{
|
|
4190
|
-
"$ref": "#/definitions/agentTransitionSuspend"
|
|
4191
|
-
}
|
|
4192
|
-
]
|
|
4193
|
-
},
|
|
4194
|
-
"agentTransitionSuspend": {
|
|
4195
|
-
"title": "Agent Transition Suspend",
|
|
4196
|
-
"type": "object",
|
|
4197
|
-
"properties": {
|
|
4198
|
-
"type": {
|
|
4199
|
-
"enum": ["suspend"]
|
|
4200
|
-
},
|
|
4201
|
-
"destination": {
|
|
4202
|
-
"type": "string",
|
|
4203
|
-
"pattern": "^[0-9A-Za-z_]+$"
|
|
4204
|
-
},
|
|
4205
|
-
"input": {
|
|
4206
|
-
"type": "string"
|
|
4207
|
-
},
|
|
4208
|
-
"condition": {
|
|
4209
|
-
"type": "string"
|
|
4210
|
-
},
|
|
4211
|
-
"limit": {
|
|
4212
|
-
"type": "integer"
|
|
4213
|
-
},
|
|
4214
|
-
"sessionMemory": {
|
|
4215
|
-
"title": "Agent State Session Memory",
|
|
4216
|
-
"type": "array",
|
|
4217
|
-
"items": {
|
|
4218
|
-
"$ref": "#/definitions/agentStateSessionMemoryAssignment"
|
|
4219
|
-
}
|
|
4220
|
-
},
|
|
4221
|
-
"historyStrategy": {
|
|
4222
|
-
"type": "string"
|
|
4223
|
-
}
|
|
4224
|
-
},
|
|
4225
|
-
"additionalProperties": false,
|
|
4226
|
-
"required": ["type", "destination", "input"]
|
|
4227
|
-
},
|
|
4228
|
-
"agentTransitionImmediate": {
|
|
4229
|
-
"title": "Agent Transition Immediate",
|
|
4230
|
-
"type": "object",
|
|
4231
|
-
"properties": {
|
|
4232
|
-
"type": {
|
|
4233
|
-
"enum": ["immediate"]
|
|
4234
|
-
},
|
|
4235
|
-
"destination": {
|
|
4236
|
-
"type": "string",
|
|
4237
|
-
"pattern": "^[0-9A-Za-z_]+$"
|
|
4238
|
-
},
|
|
4239
|
-
"condition": {
|
|
4240
|
-
"type": "string"
|
|
4241
|
-
},
|
|
4242
|
-
"limit": {
|
|
4243
|
-
"type": "integer"
|
|
4244
|
-
},
|
|
4245
|
-
"sessionMemory": {
|
|
4246
|
-
"title": "Agent State Session Memory",
|
|
4247
|
-
"type": "array",
|
|
4248
|
-
"items": {
|
|
4249
|
-
"$ref": "#/definitions/agentStateSessionMemoryAssignment"
|
|
4250
|
-
}
|
|
4251
|
-
},
|
|
4252
|
-
"historyStrategy": {
|
|
4253
|
-
"type": "string"
|
|
4254
|
-
}
|
|
4255
|
-
},
|
|
4256
|
-
"additionalProperties": false,
|
|
4257
|
-
"required": ["type", "destination"]
|
|
4258
|
-
},
|
|
4259
|
-
"agentMap": {
|
|
4260
|
-
"title": "Agent Map",
|
|
4261
|
-
"type": "object",
|
|
4262
|
-
"patternProperties": {
|
|
4263
|
-
"^[0-9A-Za-z_]+$": {
|
|
4264
|
-
"$ref": "#/definitions/agent"
|
|
4265
|
-
}
|
|
4266
|
-
},
|
|
4267
|
-
"additionalProperties": false
|
|
4268
|
-
},
|
|
4269
|
-
"toolMap": {
|
|
4270
|
-
"title": "Tool Map",
|
|
4271
|
-
"type": "object",
|
|
4272
|
-
"patternProperties": {
|
|
4273
|
-
"^[0-9A-Za-z_]+$": {
|
|
4274
|
-
"$ref": "#/definitions/tool"
|
|
4275
|
-
}
|
|
4276
|
-
},
|
|
4277
|
-
"additionalProperties": false
|
|
4278
|
-
},
|
|
4279
|
-
"mcpConfig": {
|
|
4280
|
-
"title": "MCP Server Configuration",
|
|
4281
|
-
"type": "object",
|
|
4282
|
-
"properties": {
|
|
4283
|
-
"tools": {
|
|
4284
|
-
"$ref": "#/definitions/toolMap",
|
|
4285
|
-
"description": "A Tool is a configuration for an AI tool which can query or mutate data."
|
|
4286
|
-
}
|
|
4287
|
-
},
|
|
4288
|
-
"additionalProperties": false
|
|
4289
|
-
},
|
|
4290
|
-
"aiRunAgentResolver": {
|
|
4291
|
-
"title": "AISendAgentMessageResolver",
|
|
4292
|
-
"type": "object",
|
|
4293
|
-
"properties": {
|
|
4294
|
-
"id": {
|
|
4295
|
-
"type": "string",
|
|
4296
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
4297
|
-
},
|
|
4298
|
-
"name": {
|
|
4299
|
-
"title": "AI Resolver Name",
|
|
4300
|
-
"type": "string",
|
|
4301
|
-
"description": "Name of the resolver function.",
|
|
4302
|
-
"enum": ["ai:sendAgentMessage"]
|
|
4303
|
-
},
|
|
4304
|
-
"agentName": {
|
|
4305
|
-
"type": "string",
|
|
4306
|
-
"pattern": "^[0-9A-Za-z_]+$"
|
|
4307
|
-
},
|
|
4308
|
-
"inputName": {
|
|
4309
|
-
"type": "string",
|
|
4310
|
-
"pattern": "^[0-9A-Za-z_]+$"
|
|
4311
|
-
}
|
|
4312
|
-
},
|
|
4313
|
-
"required": ["name", "agentName", "inputName"],
|
|
4314
|
-
"additionalProperties": false
|
|
4315
|
-
},
|
|
4316
|
-
"aiGetAgentMessageResolver": {
|
|
4317
|
-
"title": "AIGetAgentMessageResolver",
|
|
4318
|
-
"type": "object",
|
|
4319
|
-
"properties": {
|
|
4320
|
-
"id": {
|
|
4321
|
-
"type": "string",
|
|
4322
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
4323
|
-
},
|
|
4324
|
-
"name": {
|
|
4325
|
-
"title": "AI Resolver Name",
|
|
4326
|
-
"type": "string",
|
|
4327
|
-
"description": "Name of the resolver function.",
|
|
4328
|
-
"enum": ["ai:getAgentMessage"]
|
|
4329
|
-
},
|
|
4330
|
-
"agentName": {
|
|
4331
|
-
"type": "string",
|
|
4332
|
-
"pattern": "^[0-9A-Za-z_]+$"
|
|
4333
|
-
}
|
|
4334
|
-
},
|
|
4335
|
-
"required": ["name", "agentName"],
|
|
4336
|
-
"additionalProperties": false
|
|
4337
|
-
},
|
|
4338
|
-
"aiAbortAgentMessageResolver": {
|
|
4339
|
-
"title": "AIAbortAgentMessageResolver",
|
|
4340
|
-
"type": "object",
|
|
4341
|
-
"properties": {
|
|
4342
|
-
"id": {
|
|
4343
|
-
"type": "string",
|
|
4344
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
4345
|
-
},
|
|
4346
|
-
"name": {
|
|
4347
|
-
"title": "AI Resolver Name",
|
|
4348
|
-
"type": "string",
|
|
4349
|
-
"description": "Name of the resolver function.",
|
|
4350
|
-
"enum": ["ai:abortAgentMessage"]
|
|
4351
|
-
},
|
|
4352
|
-
"agentName": {
|
|
4353
|
-
"type": "string",
|
|
4354
|
-
"pattern": "^[0-9A-Za-z_]+$"
|
|
4355
|
-
}
|
|
4356
|
-
},
|
|
4357
|
-
"required": ["name", "agentName"],
|
|
4358
|
-
"additionalProperties": false
|
|
4359
|
-
},
|
|
4360
|
-
"aiSendAgentFeedbackResolver": {
|
|
4361
|
-
"title": "AISendAgentFeedbackResolver",
|
|
4362
|
-
"type": "object",
|
|
4363
|
-
"properties": {
|
|
4364
|
-
"id": {
|
|
4365
|
-
"type": "string",
|
|
4366
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
4367
|
-
},
|
|
4368
|
-
"name": {
|
|
4369
|
-
"title": "AI Resolver Name",
|
|
4370
|
-
"type": "string",
|
|
4371
|
-
"description": "Name of the resolver function.",
|
|
4372
|
-
"enum": ["ai:sendAgentFeedback"]
|
|
4373
|
-
},
|
|
4374
|
-
"agentName": {
|
|
4375
|
-
"type": "string",
|
|
4376
|
-
"pattern": "^[0-9A-Za-z_]+$"
|
|
4377
|
-
}
|
|
4378
|
-
},
|
|
4379
|
-
"required": ["name", "agentName"],
|
|
4380
|
-
"additionalProperties": false
|
|
4381
|
-
},
|
|
4382
|
-
"guard": {
|
|
4383
|
-
"title": "GuardJSON",
|
|
4384
|
-
"description": "A Guard is a configuration for an AI guardrail that can check inputs and outputs and provide safety and compliance.",
|
|
4385
|
-
"type": "object",
|
|
4386
|
-
"properties": {
|
|
4387
|
-
"name": {
|
|
4388
|
-
"type": "string",
|
|
4389
|
-
"title": "Name",
|
|
4390
|
-
"description": "The human-readable name of the Guard."
|
|
4391
|
-
},
|
|
4392
|
-
"description": {
|
|
4393
|
-
"type": "string",
|
|
4394
|
-
"title": "Description",
|
|
4395
|
-
"description": "A description of the Guard."
|
|
4396
|
-
},
|
|
4397
|
-
"enabled": {
|
|
4398
|
-
"type": "boolean",
|
|
4399
|
-
"title": "Enabled",
|
|
4400
|
-
"description": "Guards will not run unless enabled.",
|
|
4401
|
-
"default": true
|
|
4402
|
-
},
|
|
4403
|
-
"guardrailIdentifier": {
|
|
4404
|
-
"type": "string",
|
|
4405
|
-
"title": "Guardrail Identifier",
|
|
4406
|
-
"description": "The remote id of the Guardrail."
|
|
4407
|
-
},
|
|
4408
|
-
"guardrailVersion": {
|
|
4409
|
-
"type": "string",
|
|
4410
|
-
"title": "Guardrail Version",
|
|
4411
|
-
"description": "The remote version of the Guardrail."
|
|
4412
|
-
},
|
|
4413
|
-
"blockedInputMessaging": {
|
|
4414
|
-
"type": "string",
|
|
4415
|
-
"title": "Blocked Input Messaging",
|
|
4416
|
-
"description": "A message to return when the input message is blocked by the Guard."
|
|
4417
|
-
},
|
|
4418
|
-
"blockedOutputsMessaging": {
|
|
4419
|
-
"type": "string",
|
|
4420
|
-
"title": "Blocked Outputs Messaging",
|
|
4421
|
-
"description": "A message to return when the output message is blocked by the Guard."
|
|
4422
|
-
},
|
|
4423
|
-
"topicPolicyConfig": {
|
|
4424
|
-
"type": "object",
|
|
4425
|
-
"title": "Topic Policy",
|
|
4426
|
-
"description": "Topics to identify and block.",
|
|
4427
|
-
"properties": {
|
|
4428
|
-
"topicsConfig": {
|
|
4429
|
-
"title": "Topic",
|
|
4430
|
-
"description": "A topic to block.",
|
|
4431
|
-
"type": "array",
|
|
4432
|
-
"items": {
|
|
4433
|
-
"type": "object",
|
|
4434
|
-
"properties": {
|
|
4435
|
-
"name": {
|
|
4436
|
-
"type": "string"
|
|
4437
|
-
},
|
|
4438
|
-
"definition": {
|
|
4439
|
-
"type": "string"
|
|
4440
|
-
},
|
|
4441
|
-
"examples": {
|
|
4442
|
-
"description": "Examples of the topic that can hint the LLM.",
|
|
4443
|
-
"type": "array",
|
|
4444
|
-
"items": {
|
|
4445
|
-
"title": "Example",
|
|
4446
|
-
"type": "string"
|
|
4447
|
-
},
|
|
4448
|
-
"minItems": 1
|
|
4449
|
-
},
|
|
4450
|
-
"type": {
|
|
4451
|
-
"type": "string",
|
|
4452
|
-
"enum": ["DENY"]
|
|
4453
|
-
}
|
|
4454
|
-
},
|
|
4455
|
-
"required": ["name", "definition", "type"],
|
|
4456
|
-
"additionalProperties": false
|
|
4457
|
-
},
|
|
4458
|
-
"minItems": 1
|
|
4459
|
-
}
|
|
4460
|
-
},
|
|
4461
|
-
"required": ["topicsConfig"],
|
|
4462
|
-
"additionalProperties": false
|
|
4463
|
-
},
|
|
4464
|
-
"contentPolicyConfig": {
|
|
4465
|
-
"type": "object",
|
|
4466
|
-
"title": "Content Policy",
|
|
4467
|
-
"description": "Types of content to filter and strength configuration.",
|
|
4468
|
-
"properties": {
|
|
4469
|
-
"filtersConfig": {
|
|
4470
|
-
"title": "Filter",
|
|
4471
|
-
"description": "Types of content to filter.",
|
|
4472
|
-
"type": "array",
|
|
4473
|
-
"items": {
|
|
4474
|
-
"type": "object",
|
|
4475
|
-
"properties": {
|
|
4476
|
-
"type": {
|
|
4477
|
-
"type": "string",
|
|
4478
|
-
"enum": ["HATE", "INSULTS", "MICONDUCT", "PROMPT_ATTACK", "SEXUAL", "VIOLENCE"]
|
|
4479
|
-
},
|
|
4480
|
-
"inputStrength": {
|
|
4481
|
-
"title": "Input Strength",
|
|
4482
|
-
"type": "string",
|
|
4483
|
-
"enum": ["NONE", "LOW", "MEDIUM", "HIGH"]
|
|
4484
|
-
},
|
|
4485
|
-
"outputStrength": {
|
|
4486
|
-
"title": "Output Strength",
|
|
4487
|
-
"type": "string",
|
|
4488
|
-
"enum": ["NONE", "LOW", "MEDIUM", "HIGH"]
|
|
4489
|
-
},
|
|
4490
|
-
"inputModalities": {
|
|
4491
|
-
"title": "Input Modalities",
|
|
4492
|
-
"description": "Whether to filter images or text",
|
|
4493
|
-
"type": "array",
|
|
4494
|
-
"items": {
|
|
4495
|
-
"$ref": "#/definitions/guardrailModality"
|
|
4496
|
-
},
|
|
4497
|
-
"minItems": 1
|
|
4498
|
-
},
|
|
4499
|
-
"outputModalities": {
|
|
4500
|
-
"title": "Output Modalities",
|
|
4501
|
-
"description": "Whether to filter images or text",
|
|
4502
|
-
"type": "array",
|
|
4503
|
-
"items": {
|
|
4504
|
-
"$ref": "#/definitions/guardrailModality"
|
|
4505
|
-
},
|
|
4506
|
-
"minItems": 1
|
|
4507
|
-
}
|
|
4508
|
-
},
|
|
4509
|
-
"required": ["type", "inputStrength", "outputStrength"],
|
|
4510
|
-
"additionalProperties": false
|
|
4511
|
-
},
|
|
4512
|
-
"minItems": 1
|
|
4513
|
-
}
|
|
4514
|
-
},
|
|
4515
|
-
"required": ["filtersConfig"],
|
|
4516
|
-
"additionalProperties": false
|
|
4517
|
-
},
|
|
4518
|
-
"wordPolicyConfig": {
|
|
4519
|
-
"type": "object",
|
|
4520
|
-
"title": "Word Policy",
|
|
4521
|
-
"description": "Specific words to identify and block.",
|
|
4522
|
-
"properties": {
|
|
4523
|
-
"wordsConfig": {
|
|
4524
|
-
"title": "Word List",
|
|
4525
|
-
"description": "Specific words to block.",
|
|
4526
|
-
"type": "array",
|
|
4527
|
-
"items": {
|
|
4528
|
-
"type": "object",
|
|
4529
|
-
"properties": {
|
|
4530
|
-
"text": {
|
|
4531
|
-
"type": "string"
|
|
4532
|
-
}
|
|
4533
|
-
},
|
|
4534
|
-
"required": ["text"],
|
|
4535
|
-
"additionalProperties": false
|
|
4536
|
-
},
|
|
4537
|
-
"minItems": 1
|
|
4538
|
-
},
|
|
4539
|
-
"managedWordListsConfig": {
|
|
4540
|
-
"title": "Managed Word List",
|
|
4541
|
-
"description": "This is solely used for blocking profanity.",
|
|
4542
|
-
"type": "array",
|
|
4543
|
-
"items": {
|
|
4544
|
-
"type": "object",
|
|
4545
|
-
"properties": {
|
|
4546
|
-
"type": {
|
|
4547
|
-
"type": "string",
|
|
4548
|
-
"enum": ["PROFANITY"]
|
|
4549
|
-
}
|
|
4550
|
-
},
|
|
4551
|
-
"required": ["type"],
|
|
4552
|
-
"additionalProperties": false
|
|
4553
|
-
},
|
|
4554
|
-
"minItems": 1
|
|
4555
|
-
}
|
|
4556
|
-
},
|
|
4557
|
-
"additionalProperties": false
|
|
4558
|
-
},
|
|
4559
|
-
"sensitiveInformationPolicyConfig": {
|
|
4560
|
-
"title": "Sensitive Information Policy",
|
|
4561
|
-
"description": "Filter out and block or obscure sensitive information. Matching text will be handled per the policy.",
|
|
4562
|
-
"type": "object",
|
|
4563
|
-
"properties": {
|
|
4564
|
-
"piiEntitiesConfig": {
|
|
4565
|
-
"title": "PII Entity",
|
|
4566
|
-
"description": "PII entity to infer from the text.",
|
|
4567
|
-
"type": "array",
|
|
4568
|
-
"items": {
|
|
4569
|
-
"type": "object",
|
|
4570
|
-
"properties": {
|
|
4571
|
-
"type": {
|
|
4572
|
-
"type": "string",
|
|
4573
|
-
"enum": [
|
|
4574
|
-
"ADDRESS",
|
|
4575
|
-
"AGE",
|
|
4576
|
-
"AWS_ACCESS_KEY",
|
|
4577
|
-
"AWS_SECRET_KEY",
|
|
4578
|
-
"CA_HEALTH_NUMBER",
|
|
4579
|
-
"CA_SOCIAL_INSURANCE_NUMBER",
|
|
4580
|
-
"CREDIT_DEBIT_CARD_CVV",
|
|
4581
|
-
"CREDIT_DEBIT_CARD_EXPIRY",
|
|
4582
|
-
"CREDIT_DEBIT_CARD_NUMBER",
|
|
4583
|
-
"DRIVER_ID",
|
|
4584
|
-
"EMAIL",
|
|
4585
|
-
"INTERNATIONAL_BANK_ACCOUNT_NUMBER",
|
|
4586
|
-
"IP_ADDRESS",
|
|
4587
|
-
"LICENSE_PLATE",
|
|
4588
|
-
"MAC_ADDRESS",
|
|
4589
|
-
"NAME",
|
|
4590
|
-
"PASSWORD",
|
|
4591
|
-
"PHONE",
|
|
4592
|
-
"PIN",
|
|
4593
|
-
"SWIFT_CODE",
|
|
4594
|
-
"UK_NATIONAL_HEALTH_SERVICE_NUMBER",
|
|
4595
|
-
"UK_NATIONAL_INSURANCE_NUMBER",
|
|
4596
|
-
"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
|
|
4597
|
-
"URL",
|
|
4598
|
-
"USERNAME",
|
|
4599
|
-
"US_BANK_ACCOUNT_NUMBER",
|
|
4600
|
-
"US_BANK_ROUTING_NUMBER",
|
|
4601
|
-
"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
|
|
4602
|
-
"US_PASSPORT_NUMBER",
|
|
4603
|
-
"US_SOCIAL_SECURITY_NUMBER",
|
|
4604
|
-
"VEHICLE_IDENTIFICATION_NUMBER"
|
|
4605
|
-
]
|
|
4606
|
-
},
|
|
4607
|
-
"action": {
|
|
4608
|
-
"$ref": "#/definitions/guardrailSensitiveInformationAction"
|
|
4609
|
-
}
|
|
4610
|
-
},
|
|
4611
|
-
"required": ["type", "action"],
|
|
4612
|
-
"additionalProperties": false
|
|
4613
|
-
},
|
|
4614
|
-
"minItems": 1
|
|
4615
|
-
},
|
|
4616
|
-
"regexesConfig": {
|
|
4617
|
-
"title": "Regular Expression",
|
|
4618
|
-
"description": "A regular expression to match sensitive information.",
|
|
4619
|
-
"type": "array",
|
|
4620
|
-
"items": {
|
|
4621
|
-
"type": "object",
|
|
4622
|
-
"properties": {
|
|
4623
|
-
"name": {
|
|
4624
|
-
"type": "string"
|
|
4625
|
-
},
|
|
4626
|
-
"description": {
|
|
4627
|
-
"type": "string"
|
|
4628
|
-
},
|
|
4629
|
-
"pattern": {
|
|
4630
|
-
"type": "string"
|
|
4631
|
-
},
|
|
4632
|
-
"action": {
|
|
4633
|
-
"$ref": "#/definitions/guardrailSensitiveInformationAction"
|
|
4634
|
-
}
|
|
4635
|
-
},
|
|
4636
|
-
"required": ["name", "pattern", "action"],
|
|
4637
|
-
"additionalProperties": false
|
|
4638
|
-
},
|
|
4639
|
-
"minItems": 1
|
|
4640
|
-
}
|
|
4641
|
-
},
|
|
4642
|
-
"additionalProperties": false
|
|
4643
|
-
},
|
|
4644
|
-
"contextualGroundingPolicyConfig": {
|
|
4645
|
-
"title": "Contextual Grounding Policy",
|
|
4646
|
-
"description": "Provides evaluations based on grounding text supplied by your in-context agent variables. Off-topic conversations can then be blocked.",
|
|
4647
|
-
"type": "object",
|
|
4648
|
-
"properties": {
|
|
4649
|
-
"filtersConfig": {
|
|
4650
|
-
"title": "Filter",
|
|
4651
|
-
"description": "Filter to evaluate grounding text.",
|
|
4652
|
-
"type": "array",
|
|
4653
|
-
"items": {
|
|
4654
|
-
"type": "object",
|
|
4655
|
-
"properties": {
|
|
4656
|
-
"type": {
|
|
4657
|
-
"title": "Type",
|
|
4658
|
-
"description": "The type of filter.",
|
|
4659
|
-
"type": "string",
|
|
4660
|
-
"enum": ["GROUNDING", "RELEVANCE"]
|
|
4661
|
-
},
|
|
4662
|
-
"threshold": {
|
|
4663
|
-
"title": "Threshold",
|
|
4664
|
-
"description": "The threshold for the filter as a floating point value greater than 0.0 and less than 1.0.",
|
|
4665
|
-
"type": "number",
|
|
4666
|
-
"multipleOf": 0.01,
|
|
4667
|
-
"exclusiveMinimum": 0,
|
|
4668
|
-
"exclusiveMaximum": 1
|
|
4669
|
-
}
|
|
4670
|
-
},
|
|
4671
|
-
"required": ["type", "threshold"],
|
|
4672
|
-
"additionalProperties": false
|
|
4673
|
-
},
|
|
4674
|
-
"minItems": 1
|
|
4675
|
-
}
|
|
4676
|
-
},
|
|
4677
|
-
"required": ["filtersConfig"],
|
|
4678
|
-
"additionalProperties": false
|
|
4679
|
-
}
|
|
4680
|
-
},
|
|
4681
|
-
"required": ["name"],
|
|
4682
|
-
"additionalProperties": false
|
|
4683
|
-
},
|
|
4684
|
-
"guardMap": {
|
|
4685
|
-
"title": "GuardMap",
|
|
4686
|
-
"type": "object",
|
|
4687
|
-
"patternProperties": {
|
|
4688
|
-
"^[0-9A-Za-z_]+$": {
|
|
4689
|
-
"$ref": "#/definitions/guard"
|
|
4690
|
-
}
|
|
4691
|
-
},
|
|
4692
|
-
"additionalProperties": false
|
|
4693
|
-
},
|
|
4694
|
-
"guardrailModality": {
|
|
4695
|
-
"title": "Guardrail Modality",
|
|
4696
|
-
"type": "string",
|
|
4697
|
-
"enum": ["TEXT", "IMAGE"]
|
|
4698
|
-
},
|
|
4699
|
-
"guardrailSensitiveInformationAction": {
|
|
4700
|
-
"title": "Guardrail Sensitive Information Action",
|
|
4701
|
-
"type": "string",
|
|
4702
|
-
"enum": ["ANONYMIZE", "BLOCK"]
|
|
4703
|
-
},
|
|
4704
|
-
"aiInspectAgentResolver": {
|
|
4705
|
-
"title": "AIInspectAgentResolver",
|
|
4706
|
-
"type": "object",
|
|
4707
|
-
"properties": {
|
|
4708
|
-
"id": {
|
|
4709
|
-
"type": "string",
|
|
4710
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
4711
|
-
},
|
|
4712
|
-
"name": {
|
|
4713
|
-
"title": "AI Resolver Name",
|
|
4714
|
-
"type": "string",
|
|
4715
|
-
"description": "Name of the resolver function.",
|
|
4716
|
-
"enum": ["ai:inspectAgent"]
|
|
4717
|
-
},
|
|
4718
|
-
"agentName": {
|
|
4719
|
-
"type": "string",
|
|
4720
|
-
"pattern": "^[0-9A-Za-z_]+$"
|
|
4721
|
-
}
|
|
4722
|
-
},
|
|
4723
|
-
"required": ["name", "agentName"],
|
|
4724
|
-
"additionalProperties": false
|
|
4725
|
-
},
|
|
4726
|
-
"aiCreateAgentSessionResolver": {
|
|
4727
|
-
"title": "AICreateAgentSessionResolver",
|
|
4728
|
-
"type": "object",
|
|
4729
|
-
"properties": {
|
|
4730
|
-
"id": {
|
|
4731
|
-
"type": "string",
|
|
4732
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
4733
|
-
},
|
|
4734
|
-
"name": {
|
|
4735
|
-
"title": "AI Resolver Name",
|
|
4736
|
-
"type": "string",
|
|
4737
|
-
"description": "Name of the resolver function.",
|
|
4738
|
-
"enum": ["ai:createAgentSession"]
|
|
4739
|
-
},
|
|
4740
|
-
"agentName": {
|
|
4741
|
-
"type": "string",
|
|
4742
|
-
"pattern": "^[0-9A-Za-z_]+$"
|
|
4743
|
-
}
|
|
4744
|
-
},
|
|
4745
|
-
"required": ["name", "agentName"],
|
|
4746
|
-
"additionalProperties": false
|
|
4747
|
-
},
|
|
4748
|
-
"removePropertyKeyPatterns": {
|
|
4749
|
-
"type": "array",
|
|
4750
|
-
"items": {
|
|
4751
|
-
"title": "Minimatch Pattern",
|
|
4752
|
-
"type": "string"
|
|
4753
|
-
},
|
|
4754
|
-
"title": "Remove Property Key Patterns",
|
|
4755
|
-
"description": "Remove properties from the schema sent to the model with keys matching these minimatch glob patterns."
|
|
4756
|
-
}
|
|
4757
|
-
},
|
|
4758
|
-
"properties": {
|
|
4759
|
-
"$schema": {
|
|
4760
|
-
"type": "string"
|
|
4761
|
-
},
|
|
4762
|
-
"apiVersion": {
|
|
4763
|
-
"type": "string",
|
|
4764
|
-
"description": "The version of the TakeShape API your project is using. We increase the version as we make breaking changes to the API endpoints."
|
|
4765
|
-
},
|
|
4766
|
-
"schemaVersion": {
|
|
4767
|
-
"type": "string",
|
|
4768
|
-
"enum": ["3.59.0"],
|
|
4769
|
-
"description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
|
|
4770
|
-
},
|
|
4771
|
-
"projectId": {
|
|
4772
|
-
"type": "string",
|
|
4773
|
-
"description": "The ID of the TakeShape project this schema belongs to."
|
|
4774
|
-
},
|
|
4775
|
-
"author": {
|
|
4776
|
-
"type": "string",
|
|
4777
|
-
"description": "The ID of the TakeShape user who created the schema."
|
|
4778
|
-
},
|
|
4779
|
-
"deactivated": {
|
|
4780
|
-
"type": "number"
|
|
4781
|
-
},
|
|
4782
|
-
"defaultLocale": {
|
|
4783
|
-
"type": "string",
|
|
4784
|
-
"minLength": 1,
|
|
4785
|
-
"pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{2,3})?$",
|
|
4786
|
-
"description": "The locale that should be preferred when creating new Shape items. This must be an entry in the locales array."
|
|
4787
|
-
},
|
|
4788
|
-
"locales": {
|
|
4789
|
-
"type": "array",
|
|
4790
|
-
"minItems": 1,
|
|
4791
|
-
"items": {
|
|
4792
|
-
"type": "string",
|
|
4793
|
-
"minLength": 1,
|
|
4794
|
-
"pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{2,3})?$"
|
|
4795
|
-
}
|
|
4796
|
-
},
|
|
4797
|
-
"queries": {
|
|
4798
|
-
"$ref": "#/definitions/queryMap",
|
|
4799
|
-
"description": "Queries map directly to queries your project's GraphQL API"
|
|
4800
|
-
},
|
|
4801
|
-
"mutations": {
|
|
4802
|
-
"$ref": "#/definitions/queryMap",
|
|
4803
|
-
"description": "Mutations map directly to mutations your project's GraphQL API"
|
|
4804
|
-
},
|
|
4805
|
-
"shapes": {
|
|
4806
|
-
"$ref": "#/definitions/shapeMap",
|
|
4807
|
-
"description": "A Shape is a schema object for structuring and storing data from one or more sources, including the TakeShape data store and connected services."
|
|
4808
|
-
},
|
|
4809
|
-
"forms": {
|
|
4810
|
-
"$ref": "#/definitions/formMap",
|
|
4811
|
-
"description": "Forms define a visual interface for editing Shapes in the TakeShape UI."
|
|
4812
|
-
},
|
|
4813
|
-
"workflows": {
|
|
4814
|
-
"$ref": "#/definitions/workflowMap",
|
|
4815
|
-
"description": "Workflows describe the status of a shape item. Every schema starts with a default workflow with two steps, Disabled and Enabled"
|
|
4816
|
-
},
|
|
4817
|
-
"services": {
|
|
4818
|
-
"$ref": "#/definitions/storedServiceMap",
|
|
4819
|
-
"description": "By connecting new Services to your project schema, you can add shapes, queries, and mutations from 3rd party sources to your API in TakeShape. This allows you to mesh together exactly the API you need to interact with all of the services your app or business depends upon. Services use an encrypted configuration to keep auth tokens secret. For this reason, services can only be added to a schema through the web client or through the Admin API."
|
|
4820
|
-
},
|
|
4821
|
-
"agents": {
|
|
4822
|
-
"$ref": "#/definitions/agentMap",
|
|
4823
|
-
"description": "An Agent is a configuration for an AI service such as a chat bot or a search engine."
|
|
4824
|
-
},
|
|
4825
|
-
"guards": {
|
|
4826
|
-
"$ref": "#/definitions/guardMap",
|
|
4827
|
-
"description": "A Guard is a configuration for an AI guardrail that can check inputs and outputs and provide safety and compliance."
|
|
4828
|
-
},
|
|
4829
|
-
"mcp": {
|
|
4830
|
-
"$ref": "#/definitions/mcpConfig",
|
|
4831
|
-
"description": "MCP server configuration"
|
|
4832
|
-
}
|
|
4833
|
-
},
|
|
4834
|
-
"additionalProperties": false,
|
|
4835
|
-
"required": [
|
|
4836
|
-
"projectId",
|
|
4837
|
-
"apiVersion",
|
|
4838
|
-
"schemaVersion",
|
|
4839
|
-
"defaultLocale",
|
|
4840
|
-
"locales",
|
|
4841
|
-
"shapes",
|
|
4842
|
-
"queries",
|
|
4843
|
-
"mutations",
|
|
4844
|
-
"workflows"
|
|
4845
|
-
]
|
|
4846
|
-
}
|